diff --git a/docs/site/assets/session-files-holographic-matrix.png b/docs/site/assets/session-files-holographic-matrix.png new file mode 100644 index 0000000..4a73e02 Binary files /dev/null and b/docs/site/assets/session-files-holographic-matrix.png differ diff --git a/docs/site/index.html b/docs/site/index.html index e0bc6ee..e91037b 100644 --- a/docs/site/index.html +++ b/docs/site/index.html @@ -246,6 +246,7 @@ Code Viewer & In-Page Find Agent Context & Dual-Sourcing Session Agent Brain & Telemetry Cockpit + Holographic Files & Forensic Sorting OpenAPI 3.0 & Swagger UI Telemetry & CLI Quickstart @@ -1751,6 +1752,52 @@

⌨️ Power-User Keyboard & Auto-Catchup

+ +

Universal Session Files & Multi-Dimensional Forensic Sorting Engine

+

+ In complex, multi-turn GenAI coding workflows, agents read dozens of reference files, mutate source code, and create persistent deliverables. Session Explorer provides a Year 2500 Panoramic Files & Artifacts Holographic Matrix (width: min(1560px, 94vw)) with a multi-dimensional forensic sorting engine and touch span telemetry: +

+ +
+
+
+ FIGURE 2.8 + Session Files Holographic Matrix & Multi-Dimensional Forensic Sorting +
+
+ +
+
+
+
+ Session Files Holographic Matrix with Multi-Dimensional Forensic Sorting +
+
+
Figure 2.8: Universal Session Files & Artifacts Holographic Matrix — Panoramic Widescreen Bridge displaying 4 Forensic Lenses, 5-Capsule Telemetry Ribbon, 7-Dimensional Sorting Engine, EC2-Style Greedy Bin-Packed File Cards, and Monospace Touch Span Pills (Span: #95 ➔ #4282) with 1-Click Jump Navigation.
+
+ +
+
+

🗂️ 4 Forensic Lenses

+

Instantly pivot perspective between Universal Catalog (all operations), Artifacts & Deliverables (user-facing markdown reports & diffs), Codebase Mutations (files with active churn), and Churn & Blast Radius Telemetry (read-to-write ratio $R_{\text{RW}}$, extension spectrum bar, and file inspection leaderboard).

+
+
+

⚡ 7-Dimensional Sorting Engine

+

Re-sort file cards on demand by Deliverable Priority (Artifacts → Mutations → Reads), Churn Intensity (mutation count $C(f)$), Last Touched (recency $s_{\text{last}}$), First Touched (chronological $s_{\text{first}}$), Read Volume (reconnaissance frequency), Name (A → Z), or Extension (.go, .js, .md).

+
+
+

⏱️ Touch Span Telemetry

+

Every file card features a monospace capsule pill (e.g., Span: #95 ➔ #4282) showing the file's lifetime access boundary across turns. Step markers (#X) enable 1-click timeline jumping with smooth auto-scroll and neon pulse highlights.

+
+
+

📦 EC2-Style Greedy Bin-Packing

+

Files are packed into 3 fluid columns (desktop), 2 columns (tablet), or 1 column (mobile) using greedy height-load distribution ($\min_k \sum h$), eliminating vertical gaps beneath shorter cards with dynamic reflow under 12ms.

+
+
+

Embedded OpenAPI 3.0 & Swagger UI

Session Explorer embeds an interactive, 100% offline OpenAPI 3.0 specification and Swagger-compatible documentation explorer directly inside the compiled binary: diff --git a/specs/catalog/session-explorer.md b/specs/catalog/session-explorer.md index cc0b782..169f9f3 100644 --- a/specs/catalog/session-explorer.md +++ b/specs/catalog/session-explorer.md @@ -103,6 +103,14 @@ The tool delivers a **glassmorphic, liquid-glass, acrylic-inspired** UI that fee | R-042 | Empirical Skill Invocation Telemetry & Standby Decomposition: 3-tier epistemic taxonomy, step indices, invocation triggers, scope deduplication, and holographic skill card UI/UX | Must | ✅ | 🧪 | context_scanner.go, src/types.go, context_test.go, src/web/ | | R-043 | Bin-Packing Spatial Density & Panoramic Masonry Matrix: EC2-style greedy shortest-column container placement, 3-column panoramic widescreen expansion (width: min(1560px, 94vw)), and zero-vertical-gap flow | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css, src/web/index.html | | R-044 | Live Reactive Telemetry Synchronization & Session Trail Refresh: Real-time dynamic updates of Files & Artifacts and Agent Context during SSE live following, tactile counter pulse animations, and dedicated non-destructive Session Trail refresh button (`#refreshTrailBtn`) | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-045 | Universal Session Files & Artifacts Holographic Matrix: Year 2500 panoramic widescreen dialog shell (`width: min(1560px, 94vw)`), 4 forensic lenses (Universal Catalog, Deliverables & Artifacts, Codebase Mutations, Churn & Blast Radius Telemetry), 5-capsule telemetry ribbon, multi-spectrum filter chips, EC2-style greedy bin-packing, timeline step jump navigation, and native file inspection | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-046 | Universal Multi-Dimensional Forensic Sorting Engine: Interactive holographic sort capsules across Files & Artifacts, In-Session Agent Brain, and Global Machine matrix modals supporting churn intensity, deliverable priority, step recency, chronological flow, read volume, token bloat, and touch span telemetry | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-047 | 1-Click Interactive Session UUID Copy Capsule: Top-left session trail navigation header renders an isomorphic aero-mica capsule with 1-click clipboard copy button, kinetic icon transition (`📋` → `✓`), and tactile toast notification | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-048 | Dual-Temporal Telemetry, Active Recency Engine & Multi-Day Lifespan Tracking: Session tiles render both ⚡ Last Active recency (with live neon pulse) and 🌱 Inception Date; multi-day lifespan badges (span: $t_{\text{init}} \rightarrow t_{\text{active}}$); Date Grouped View partitions by effective recency ($\max(t_{\text{active}}, t_{\text{init}})$); sorting engine supports `active_desc` (Last Active Recent First) across backend and frontend | Must | ✅ | 🧪 | src/scanner.go, src/api.go, src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-049 | Inclusive Lifetime Date Filtering Engine: Date range filtering (`from`/`to` and presets `Today`, `7d`, `30d`) naturally evaluates inclusive lifetime overlap (`lastActive >= from && createdAt <= to`), surfacing all sessions touched or initiated in the window without cluttering toolbar elements | Must | ✅ | 🧪 | src/scanner.go, src/api.go, src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-050 | Session Trail Dual-Temporal Quantum Capsule & Live Recency Telemetry: Top-left Session Trail header modernizes `#detailTime` into a liquid-glass dual-temporal capsule rendering `⚡ Active ` with live neon pulse dot, `🌱 Initiated: `, and multi-day span pill | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css, src/web/index.html | +| R-051 | Session Card 1-Click UUID Copy & Layout Harmonization: Main dashboard session tiles render a subtle 1-click UUID copy button on card header; standardized metadata rows eliminate masonry baseline jitter; line-height padding fixes prompt snippet glyph slicing | Must | ✅ | 🧪 | src/web/src/app.js, src/web/src/styles.css | +| R-052 | Step Counter & Filter State Integrity: Toggling message filter chips (`💬 Dialogue`, `Prompts`, etc.) and clicking `Refresh` preserves filter context and accurately displays `Showing X of Y steps` without losing step subset telemetry | Must | ✅ | 🧪 | src/web/src/app.js | **Priority levels**: Must (required for MVP), Should (important), Could (nice-to-have) @@ -534,6 +542,46 @@ Tests that MUST pass for this spec to be considered satisfied: | AC-074 | Given the Session Trail toolbar (`.tail-stream-control`), a dedicated Refresh button (`#refreshTrailBtn`) allows on-demand non-destructive reload of all steps, agent context, and files/artifacts without full browser reload | R-044 | | AC-075 | Given the user resumes live streaming or toggles Follow Live, the engine triggers an automatic catch-up refresh of session trail messages, agent context, and files/artifacts | R-044 | | AC-076 | Given active turn filters (e.g. Dialogue, Prompts, Search query), live SSE incoming turns and session trail refreshes strictly preserve the filter slice and maintain the 'Showing X of Y steps' counter summary without wiping filter telemetry | R-044 | +| AC-077 | Given the Files & Artifacts button (`#detailFilesBtn`) is clicked, the modal opens in widescreen panoramic dimensions (`width: min(1560px, 94vw); max-width: 1560px; max-height: 90vh;`) with liquid glass backdrop blur, glowing icon pulse, and ESC/close controls | R-045 | +| AC-078 | Given `#sessionFilesModal` is open, user can switch between 4 forensic lenses: `🗂️ Universal Catalog`, `✨ Artifacts & Deliverables`, `✏️ Codebase Mutations`, and `📊 Churn & Blast Radius Telemetry` | R-045 | +| AC-079 | Given session file data, the ribbon renders 5 color-coded metric capsules: `✨ Deliverables`, `✏️ Code Mutations`, `👁️ Inspected Files`, `🎯 Blast Radius`, and `📈 Reconnaissance Ratio ($R_{\text{RW}}$)` | R-045 | +| AC-080 | Given the active lens, filter chips allow 1-click filtering: `🌐 All Files`, `✨ Artifacts`, `✏️ Modified Code`, `👁️ Read Files`, `🔗 Markdown References`, and dynamic language chips (`.go`, `.js`, etc.) with counters | R-045 | +| AC-081 | Given $N$ variable-height forensic file cards, cards are distributed across 3 columns (desktop), 2 columns (tablet), or 1 column (mobile) using greedy bin-packing with zero vertical voids | R-045 | +| AC-082 | Given any file card with step markers (`#X`), clicking a step pill closes the files modal, scrolls smoothly to that exact turn in the conversation timeline, and triggers an animated neon pulse highlight | R-045 | +| AC-083 | Given any file card, clicking `Open ↗` opens the target file inside the embedded Native File Viewer (R-038) with syntax highlighting, line gutter, and anchor scrolling; clicking `📋` copies the path with micro-feedback | R-045 | +| AC-084 | Given generated artifacts, the card renders artifact summaries, user-facing delivery badges, and file preview anchors | R-045 | +| AC-085 | Given real-time SSE streaming or manual Session Trail refresh (`#refreshTrailBtn`), incoming steps dynamically re-aggregate forensic file data, update the `#detailFilesCountBadge` counter with pulse animations, and re-render the open files matrix in-place with zero layout shift | R-045 | +| AC-086 | Given `#sessionFilesModal` is open, the toolbar renders `.agent-matrix-sort-box` with select dropdown `#sessionFilesSortSelect` offering 7 sorting dimensions | R-046 | +| AC-087 | Given user selects `🔥 Churn Intensity (High → Low)`, files are sorted by mutation count descending ($C(f)$), placing heavily edited files at the top of the bin-packed columns | R-046 | +| AC-088 | Given user selects `⏮️ First Touched (Chronological)`, files are sorted by their first appearance turn index ($s_{\text{first}}$) from earliest to latest | R-046 | +| AC-089 | Given user selects `🏷️ File Extension`, files are clustered alphabetically by file extension (.go, .js, .md, .py) and then by name | R-046 | +| AC-090 | Given `#sessionContextModal` is open, the toolbar renders `#sessionMatrixSortSelect` offering execution frequency, step recency, token bloat, precedence, and alphabetical sorting | R-046 | +| AC-091 | Given `#agentMatrixModal` is open, the toolbar renders `#agentMatrixSortSelect` offering token bloat, line count, scope, and name sorting | R-046 | +| AC-092 | Given any active filter chip or search query, changing the sort selection preserves active filter slices, re-computes the bin-pack layout in < 16ms (60 FPS), and maintains zero vertical gaps | R-046 | +| AC-093 | Given file cards in `#sessionFilesModal`, each card displays a subtle monospace touch span badge (`Span: #X ➔ #Y` or turn count) indicating the step range across which the file was accessed | R-046 | +| AC-094 | Given `#detailView` navigation header, clicking the session ID capsule or copy button copies the full session UUID to clipboard and displays instant visual confirmation (`✓ Copied!`) and toast notification | R-047 | +| AC-095 | Given `#copySessionIdBtn`, the button renders a Year 2500 aero-mica glass capsule with smooth hover elevation and tactile click pulse | R-047 | +| AC-096 | Given any session card on the main dashboard or in project drilldown, the card renders both **⚡ Last Active** recency and **🌱 Inception Date** | R-048 | +| AC-097 | Given a session active within the last 3 hours, the card displays an illuminated neon green/amber pulse dot indicating live or ongoing recency | R-048 | +| AC-098 | Given a session spanning $\ge 24\text{ hours}$ between inception and last message, the card displays a monospace Multi-Day Lifespan badge indicating duration and boundary dates | R-048 | +| AC-099 | Given Date Grouped View (`renderDateGroupedView`), sessions are bucketed by effective recency ($\max(t_{\text{active}}, t_{\text{init}})$), ensuring sessions active today appear under `🌟 Today` | R-048 | +| AC-100 | Given `#sortBySelect` and `#projectSortSelect`, the dropdowns offer `⚡ Last Active (Recent First)` as the primary sort option alongside Inception Date options | R-048 | +| AC-101 | Given `GET /api/sessions?sort_by=active`, the Go backend sorts sessions by `LastMessageAt` descending | R-048 | +| AC-102 | Given date range filters (`from`/`to` or presets `today`, `7d`, `30d`), multi-day sessions touched within the window are correctly surfaced | R-048 | +| AC-103 | Given all automated tests and Playwright headless runs, verification passes with 100% assertions and zero visual regressions | R-047, R-048 | +| AC-104 | Given `/api/sessions`, the endpoint accepts `date_mode` query parameter supporting `active` (default), `created`, and `overlap` | R-049 | +| AC-105 | Given `date_mode=active`, sessions match if `last_message_at >= from && last_message_at <= to` (falling back to `created_at` for single-turn sessions) | R-049 | +| AC-106 | Given `date_mode=created`, sessions match if `created_at >= from && created_at <= to` | R-049 | +| AC-107 | Given `date_mode=overlap`, sessions match if `last_message_at >= from && created_at <= to` | R-049 | +| AC-108 | Given global date filter toolbar, the UI renders a clean, uncluttered layout `Date: [From] to [To] [Presets]` without intrusive sandwiched buttons, seamlessly delegating sort order to `#sortBySelect` | R-049 | +| AC-109 | Given in-project drilldown toolbar (`getFilteredAndSortedProjSessions`), temporal date filtering mirrors tri-modal date logic seamlessly | R-049 | +| AC-110 | Given Session Trail navigation header, `#detailTime` is upgraded to `.detail-temporal-capsule` rendering `⚡ Active ` with neon pulse dot, `🌱 Initiated: `, and multi-day span pill | R-050 | +| AC-111 | Given any element in the detail temporal capsule, hovering surfaces a high-precision ISO-8601 tooltip | R-050 | +| AC-112 | Given any session card on the main dashboard grid, the card header renders a subtle 1-click UUID copy button (`.card-copy-btn`) | R-051 | +| AC-113 | Given user clicks `.card-copy-btn`, the full UUID is copied to clipboard with `✓` feedback without triggering card drilldown navigation | R-051 | +| AC-114 | Given session cards grid, multi-day span pills are placed in a standardized metadata row to ensure aligned prompt snippet baselines across columns | R-051 | +| AC-115 | Given prompt snippets in session cards, line-height padding prevents vertical glyph clipping on multi-line text | R-051 | +| AC-116 | Given Session Trail step filters, toggling message types and refreshing the trail maintains `Showing X of Y steps` state integrity | R-052 | --- @@ -611,3 +659,5 @@ Tests that MUST pass for this spec to be considered satisfied: | 2026-09-18 | @vadde | Complete specification with all requirements | | 2026-10-19 | @vadde | Add R-037 (Bounded Diagram Viewports & Fullscreen Theater Mode) and R-038 (Native In-Browser File & Artifact Viewer) | | 2026-11-04 | @vadde | Add R-040 (Session Agent Brain & MCP Behavioral Matrix), R-041 (Command Execution & Tool Breakdown), and R-042 (Empirical Skill Invocation Telemetry & Standby Decomposition) | +| 2026-11-05 | @vadde | Add R-043 (Bin-Packing Spatial Density & Panoramic Masonry Matrix), R-044 (Live Reactive Telemetry Sync), and R-045 (Session Files & Artifacts Holographic Matrix) | +| 2026-11-06 | @vadde | Add R-046 (Universal Multi-Dimensional Forensic Sorting Engine & Touch Span Telemetry) | diff --git a/tools/session-explorer/CHANGELOG.md b/tools/session-explorer/CHANGELOG.md index f756d32..8aaacd7 100644 --- a/tools/session-explorer/CHANGELOG.md +++ b/tools/session-explorer/CHANGELOG.md @@ -7,6 +7,50 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.4.0] - 2026-11-06 + +### Fixed +- **Timezone Boundary Skew & Local Time Offset Alignment (R-010, R-049)**: + - Resolved timezone skew bug where evening sessions created after 00:00:00 UTC (e.g. 7:00 PM EST) fell onto the next UTC calendar day, causing them to be prematurely dropped by naive UTC midnight boundary checks in `Today` and `7 Days` filters. + - Implemented dynamic client timezone offset transmission (`tz_offset`) via API query parameters and `resolveLocation(tzStr)` in Go backend (`time.FixedZone` with fallback to `time.Local`), ensuring date ranges evaluate full 24-hour windows in the user's local timezone. + - Fixed client-side in-project date filtering in `getFilteredAndSortedProjSessions` by removing hardcoded UTC `Z` specifiers, aligning with local browser day boundaries. + - Added `active` (`⚡ Last Touched`) as primary sort option to in-project toolbar dropdown and synchronized Date Grouped view partitioning. + +### Added +- **Inclusive Lifetime Date Filtering Engine (R-049)**: + + - Date filtering naturally evaluates inclusive lifetime overlap (`lastActive >= from && createdAt <= to`), surfacing all sessions active or initiated in the window without cluttering the toolbar. +- **Session Trail Dual-Temporal Quantum Capsule (R-050)**: + - Upgraded Session Trail detail header to `.detail-temporal-capsule` rendering `⚡ Active ` with neon pulse dot, `🌱 Initiated: `, and dynamic `⏳ Multi-Day Span: Xd ( ➔ )` pill. +- **Card-Level 1-Click UUID Copy & Layout Harmonization (R-047, R-051)**: + - Added `.detail-session-capsule` to top-left of Session Trail header with 1-click UUID copy button (`📋 Copy`), visual `✓ Copied!` state, and toast feedback. + - Added `.card-copy-btn` (`[📋 ]`) directly on each session card header on the main grid for frictionless 1-click UUID copying. + - Compact single-line lifespan pill `⏳ Xd Span (Nov 4 ➔ Nov 6)` with CSS `white-space: nowrap; overflow: hidden; text-overflow: ellipsis;` preventing multi-line wrapping in 5-column layouts. + - Standardized `.session-lifespan-row` with uniform minimum height (`1.6rem`), eliminating grid baseline jitter. + - Enhanced `.prompt-snippet` with `line-height: 1.5`, `min-height: 4.8rem`, and glyph padding to prevent character cutoff. +- **Dual-Temporal Telemetry & Multi-Day Lifespan Tracking (R-048)**: + - Added dual temporal badges to session cards (`⚡ Active

${o}
`:`
${o}
`).join("").replace(M_e,(o,l)=>Pyr.renderToString(l,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(//g,""))}return e.replace(M_e,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),qV=I(async(e,r)=>ho(await FUn(e,r),r),"renderKatexSanitized"),ai={getRows:AUn,sanitizeText:ho,sanitizeTextOrArray:IUn,hasBreaks:OUn,splitBreaks:NUn,lineBreakRegex:kP,removeScript:tvr,getUrl:_Xe,evaluate:zE,getMax:MUn,getMin:DUn},$Un=I(function(e,r){for(let i of r)e.attr(i[0],i[1])},"d3Attrs"),UUn=I(function(e,r,i){let a=new Map;if(i)a.set("width","100%"),a.set("style",`max-width: ${r}px;`);else a.set("height",e),a.set("width",r);return a},"calculateSvgSizeAttrs"),Bl=I(function(e,r,i,a){let o=UUn(r,i,a);$Un(e,o)},"configureSvgSize"),n3=I(function(e,r,i,a){let o=r.node().getBBox(),{width:l,height:h}=o;Ze.info(`SVG bounds: ${l}x${h}`,o);let d=0,p=0;Ze.info(`Graph bounds: ${d}x${p}`,e),d=l+i*2,p=h+i*2,Ze.info(`Calculated bounds: ${d}x${p}`),Bl(r,p,d,a);let m=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;r.attr("viewBox",m)},"setupGraphViewbox"),D_e={};I(z_e,"cssStyleSheetToString");GUn=I((e,r,i,a)=>{let o="";if(e in D_e&&D_e[e])o=D_e[e]({...i,svgId:a});else Ze.warn(`No theme found for ${e}`);return`& { +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};BKe={pt:1,mm:2.8452755905511813,cm:28.45275590551181,in:72.27,bp:1.00375,pc:12,dd:1.070008643042351,cc:12.84010371650821,nd:1.0669781931464175,nc:12.80373831775701,sp:0.0000152587890625,px:1.00375},vFn={ex:!0,em:!0,mu:!0},_Fn=/[\s"'>/=\x00-\x1f]/;EFn={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"};Kk={"AMS-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.68889,0,0,0.72222],"66":[0,0.68889,0,0,0.66667],"67":[0,0.68889,0,0,0.72222],"68":[0,0.68889,0,0,0.72222],"69":[0,0.68889,0,0,0.66667],"70":[0,0.68889,0,0,0.61111],"71":[0,0.68889,0,0,0.77778],"72":[0,0.68889,0,0,0.77778],"73":[0,0.68889,0,0,0.38889],"74":[0.16667,0.68889,0,0,0.5],"75":[0,0.68889,0,0,0.77778],"76":[0,0.68889,0,0,0.66667],"77":[0,0.68889,0,0,0.94445],"78":[0,0.68889,0,0,0.72222],"79":[0.16667,0.68889,0,0,0.77778],"80":[0,0.68889,0,0,0.61111],"81":[0.16667,0.68889,0,0,0.77778],"82":[0,0.68889,0,0,0.72222],"83":[0,0.68889,0,0,0.55556],"84":[0,0.68889,0,0,0.66667],"85":[0,0.68889,0,0,0.72222],"86":[0,0.68889,0,0,0.72222],"87":[0,0.68889,0,0,1],"88":[0,0.68889,0,0,0.72222],"89":[0,0.68889,0,0,0.72222],"90":[0,0.68889,0,0,0.66667],"107":[0,0.68889,0,0,0.55556],"160":[0,0,0,0,0.25],"165":[0,0.675,0.025,0,0.75],"174":[0.15559,0.69224,0,0,0.94666],"240":[0,0.68889,0,0,0.55556],"295":[0,0.68889,0,0,0.54028],"710":[0,0.825,0,0,2.33334],"732":[0,0.9,0,0,2.33334],"770":[0,0.825,0,0,2.33334],"771":[0,0.9,0,0,2.33334],"989":[0.08167,0.58167,0,0,0.77778],"1008":[0,0.43056,0.04028,0,0.66667],"8245":[0,0.54986,0,0,0.275],"8463":[0,0.68889,0,0,0.54028],"8487":[0,0.68889,0,0,0.72222],"8498":[0,0.68889,0,0,0.55556],"8502":[0,0.68889,0,0,0.66667],"8503":[0,0.68889,0,0,0.44445],"8504":[0,0.68889,0,0,0.66667],"8513":[0,0.68889,0,0,0.63889],"8592":[-0.03598,0.46402,0,0,0.5],"8594":[-0.03598,0.46402,0,0,0.5],"8602":[-0.13313,0.36687,0,0,1],"8603":[-0.13313,0.36687,0,0,1],"8606":[0.01354,0.52239,0,0,1],"8608":[0.01354,0.52239,0,0,1],"8610":[0.01354,0.52239,0,0,1.11111],"8611":[0.01354,0.52239,0,0,1.11111],"8619":[0,0.54986,0,0,1],"8620":[0,0.54986,0,0,1],"8621":[-0.13313,0.37788,0,0,1.38889],"8622":[-0.13313,0.36687,0,0,1],"8624":[0,0.69224,0,0,0.5],"8625":[0,0.69224,0,0,0.5],"8630":[0,0.43056,0,0,1],"8631":[0,0.43056,0,0,1],"8634":[0.08198,0.58198,0,0,0.77778],"8635":[0.08198,0.58198,0,0,0.77778],"8638":[0.19444,0.69224,0,0,0.41667],"8639":[0.19444,0.69224,0,0,0.41667],"8642":[0.19444,0.69224,0,0,0.41667],"8643":[0.19444,0.69224,0,0,0.41667],"8644":[0.1808,0.675,0,0,1],"8646":[0.1808,0.675,0,0,1],"8647":[0.1808,0.675,0,0,1],"8648":[0.19444,0.69224,0,0,0.83334],"8649":[0.1808,0.675,0,0,1],"8650":[0.19444,0.69224,0,0,0.83334],"8651":[0.01354,0.52239,0,0,1],"8652":[0.01354,0.52239,0,0,1],"8653":[-0.13313,0.36687,0,0,1],"8654":[-0.13313,0.36687,0,0,1],"8655":[-0.13313,0.36687,0,0,1],"8666":[0.13667,0.63667,0,0,1],"8667":[0.13667,0.63667,0,0,1],"8669":[-0.13313,0.37788,0,0,1],"8672":[-0.064,0.437,0,0,1.334],"8674":[-0.064,0.437,0,0,1.334],"8705":[0,0.825,0,0,0.5],"8708":[0,0.68889,0,0,0.55556],"8709":[0.08167,0.58167,0,0,0.77778],"8717":[0,0.43056,0,0,0.42917],"8722":[-0.03598,0.46402,0,0,0.5],"8724":[0.08198,0.69224,0,0,0.77778],"8726":[0.08167,0.58167,0,0,0.77778],"8733":[0,0.69224,0,0,0.77778],"8736":[0,0.69224,0,0,0.72222],"8737":[0,0.69224,0,0,0.72222],"8738":[0.03517,0.52239,0,0,0.72222],"8739":[0.08167,0.58167,0,0,0.22222],"8740":[0.25142,0.74111,0,0,0.27778],"8741":[0.08167,0.58167,0,0,0.38889],"8742":[0.25142,0.74111,0,0,0.5],"8756":[0,0.69224,0,0,0.66667],"8757":[0,0.69224,0,0,0.66667],"8764":[-0.13313,0.36687,0,0,0.77778],"8765":[-0.13313,0.37788,0,0,0.77778],"8769":[-0.13313,0.36687,0,0,0.77778],"8770":[-0.03625,0.46375,0,0,0.77778],"8774":[0.30274,0.79383,0,0,0.77778],"8776":[-0.01688,0.48312,0,0,0.77778],"8778":[0.08167,0.58167,0,0,0.77778],"8782":[0.06062,0.54986,0,0,0.77778],"8783":[0.06062,0.54986,0,0,0.77778],"8785":[0.08198,0.58198,0,0,0.77778],"8786":[0.08198,0.58198,0,0,0.77778],"8787":[0.08198,0.58198,0,0,0.77778],"8790":[0,0.69224,0,0,0.77778],"8791":[0.22958,0.72958,0,0,0.77778],"8796":[0.08198,0.91667,0,0,0.77778],"8806":[0.25583,0.75583,0,0,0.77778],"8807":[0.25583,0.75583,0,0,0.77778],"8808":[0.25142,0.75726,0,0,0.77778],"8809":[0.25142,0.75726,0,0,0.77778],"8812":[0.25583,0.75583,0,0,0.5],"8814":[0.20576,0.70576,0,0,0.77778],"8815":[0.20576,0.70576,0,0,0.77778],"8816":[0.30274,0.79383,0,0,0.77778],"8817":[0.30274,0.79383,0,0,0.77778],"8818":[0.22958,0.72958,0,0,0.77778],"8819":[0.22958,0.72958,0,0,0.77778],"8822":[0.1808,0.675,0,0,0.77778],"8823":[0.1808,0.675,0,0,0.77778],"8828":[0.13667,0.63667,0,0,0.77778],"8829":[0.13667,0.63667,0,0,0.77778],"8830":[0.22958,0.72958,0,0,0.77778],"8831":[0.22958,0.72958,0,0,0.77778],"8832":[0.20576,0.70576,0,0,0.77778],"8833":[0.20576,0.70576,0,0,0.77778],"8840":[0.30274,0.79383,0,0,0.77778],"8841":[0.30274,0.79383,0,0,0.77778],"8842":[0.13597,0.63597,0,0,0.77778],"8843":[0.13597,0.63597,0,0,0.77778],"8847":[0.03517,0.54986,0,0,0.77778],"8848":[0.03517,0.54986,0,0,0.77778],"8858":[0.08198,0.58198,0,0,0.77778],"8859":[0.08198,0.58198,0,0,0.77778],"8861":[0.08198,0.58198,0,0,0.77778],"8862":[0,0.675,0,0,0.77778],"8863":[0,0.675,0,0,0.77778],"8864":[0,0.675,0,0,0.77778],"8865":[0,0.675,0,0,0.77778],"8872":[0,0.69224,0,0,0.61111],"8873":[0,0.69224,0,0,0.72222],"8874":[0,0.69224,0,0,0.88889],"8876":[0,0.68889,0,0,0.61111],"8877":[0,0.68889,0,0,0.61111],"8878":[0,0.68889,0,0,0.72222],"8879":[0,0.68889,0,0,0.72222],"8882":[0.03517,0.54986,0,0,0.77778],"8883":[0.03517,0.54986,0,0,0.77778],"8884":[0.13667,0.63667,0,0,0.77778],"8885":[0.13667,0.63667,0,0,0.77778],"8888":[0,0.54986,0,0,1.11111],"8890":[0.19444,0.43056,0,0,0.55556],"8891":[0.19444,0.69224,0,0,0.61111],"8892":[0.19444,0.69224,0,0,0.61111],"8901":[0,0.54986,0,0,0.27778],"8903":[0.08167,0.58167,0,0,0.77778],"8905":[0.08167,0.58167,0,0,0.77778],"8906":[0.08167,0.58167,0,0,0.77778],"8907":[0,0.69224,0,0,0.77778],"8908":[0,0.69224,0,0,0.77778],"8909":[-0.03598,0.46402,0,0,0.77778],"8910":[0,0.54986,0,0,0.76042],"8911":[0,0.54986,0,0,0.76042],"8912":[0.03517,0.54986,0,0,0.77778],"8913":[0.03517,0.54986,0,0,0.77778],"8914":[0,0.54986,0,0,0.66667],"8915":[0,0.54986,0,0,0.66667],"8916":[0,0.69224,0,0,0.66667],"8918":[0.0391,0.5391,0,0,0.77778],"8919":[0.0391,0.5391,0,0,0.77778],"8920":[0.03517,0.54986,0,0,1.33334],"8921":[0.03517,0.54986,0,0,1.33334],"8922":[0.38569,0.88569,0,0,0.77778],"8923":[0.38569,0.88569,0,0,0.77778],"8926":[0.13667,0.63667,0,0,0.77778],"8927":[0.13667,0.63667,0,0,0.77778],"8928":[0.30274,0.79383,0,0,0.77778],"8929":[0.30274,0.79383,0,0,0.77778],"8934":[0.23222,0.74111,0,0,0.77778],"8935":[0.23222,0.74111,0,0,0.77778],"8936":[0.23222,0.74111,0,0,0.77778],"8937":[0.23222,0.74111,0,0,0.77778],"8938":[0.20576,0.70576,0,0,0.77778],"8939":[0.20576,0.70576,0,0,0.77778],"8940":[0.30274,0.79383,0,0,0.77778],"8941":[0.30274,0.79383,0,0,0.77778],"8994":[0.19444,0.69224,0,0,0.77778],"8995":[0.19444,0.69224,0,0,0.77778],"9416":[0.15559,0.69224,0,0,0.90222],"9484":[0,0.69224,0,0,0.5],"9488":[0,0.69224,0,0,0.5],"9492":[0,0.37788,0,0,0.5],"9496":[0,0.37788,0,0,0.5],"9585":[0.19444,0.68889,0,0,0.88889],"9586":[0.19444,0.74111,0,0,0.88889],"9632":[0,0.675,0,0,0.77778],"9633":[0,0.675,0,0,0.77778],"9650":[0,0.54986,0,0,0.72222],"9651":[0,0.54986,0,0,0.72222],"9654":[0.03517,0.54986,0,0,0.77778],"9660":[0,0.54986,0,0,0.72222],"9661":[0,0.54986,0,0,0.72222],"9664":[0.03517,0.54986,0,0,0.77778],"9674":[0.11111,0.69224,0,0,0.66667],"9733":[0.19444,0.69224,0,0,0.94445],"10003":[0,0.69224,0,0,0.83334],"10016":[0,0.69224,0,0,0.83334],"10731":[0.11111,0.69224,0,0,0.66667],"10846":[0.19444,0.75583,0,0,0.61111],"10877":[0.13667,0.63667,0,0,0.77778],"10878":[0.13667,0.63667,0,0,0.77778],"10885":[0.25583,0.75583,0,0,0.77778],"10886":[0.25583,0.75583,0,0,0.77778],"10887":[0.13597,0.63597,0,0,0.77778],"10888":[0.13597,0.63597,0,0,0.77778],"10889":[0.26167,0.75726,0,0,0.77778],"10890":[0.26167,0.75726,0,0,0.77778],"10891":[0.48256,0.98256,0,0,0.77778],"10892":[0.48256,0.98256,0,0,0.77778],"10901":[0.13667,0.63667,0,0,0.77778],"10902":[0.13667,0.63667,0,0,0.77778],"10933":[0.25142,0.75726,0,0,0.77778],"10934":[0.25142,0.75726,0,0,0.77778],"10935":[0.26167,0.75726,0,0,0.77778],"10936":[0.26167,0.75726,0,0,0.77778],"10937":[0.26167,0.75726,0,0,0.77778],"10938":[0.26167,0.75726,0,0,0.77778],"10949":[0.25583,0.75583,0,0,0.77778],"10950":[0.25583,0.75583,0,0,0.77778],"10955":[0.28481,0.79383,0,0,0.77778],"10956":[0.28481,0.79383,0,0,0.77778],"57350":[0.08167,0.58167,0,0,0.22222],"57351":[0.08167,0.58167,0,0,0.38889],"57352":[0.08167,0.58167,0,0,0.77778],"57353":[0,0.43056,0.04028,0,0.66667],"57356":[0.25142,0.75726,0,0,0.77778],"57357":[0.25142,0.75726,0,0,0.77778],"57358":[0.41951,0.91951,0,0,0.77778],"57359":[0.30274,0.79383,0,0,0.77778],"57360":[0.30274,0.79383,0,0,0.77778],"57361":[0.41951,0.91951,0,0,0.77778],"57366":[0.25142,0.75726,0,0,0.77778],"57367":[0.25142,0.75726,0,0,0.77778],"57368":[0.25142,0.75726,0,0,0.77778],"57369":[0.25142,0.75726,0,0,0.77778],"57370":[0.13597,0.63597,0,0,0.77778],"57371":[0.13597,0.63597,0,0,0.77778]},"Caligraphic-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.68333,0,0.19445,0.79847],"66":[0,0.68333,0.03041,0.13889,0.65681],"67":[0,0.68333,0.05834,0.13889,0.52653],"68":[0,0.68333,0.02778,0.08334,0.77139],"69":[0,0.68333,0.08944,0.11111,0.52778],"70":[0,0.68333,0.09931,0.11111,0.71875],"71":[0.09722,0.68333,0.0593,0.11111,0.59487],"72":[0,0.68333,0.00965,0.11111,0.84452],"73":[0,0.68333,0.07382,0,0.54452],"74":[0.09722,0.68333,0.18472,0.16667,0.67778],"75":[0,0.68333,0.01445,0.05556,0.76195],"76":[0,0.68333,0,0.13889,0.68972],"77":[0,0.68333,0,0.13889,1.2009],"78":[0,0.68333,0.14736,0.08334,0.82049],"79":[0,0.68333,0.02778,0.11111,0.79611],"80":[0,0.68333,0.08222,0.08334,0.69556],"81":[0.09722,0.68333,0,0.11111,0.81667],"82":[0,0.68333,0,0.08334,0.8475],"83":[0,0.68333,0.075,0.13889,0.60556],"84":[0,0.68333,0.25417,0,0.54464],"85":[0,0.68333,0.09931,0.08334,0.62583],"86":[0,0.68333,0.08222,0,0.61278],"87":[0,0.68333,0.08222,0.08334,0.98778],"88":[0,0.68333,0.14643,0.13889,0.7133],"89":[0.09722,0.68333,0.08222,0.08334,0.66834],"90":[0,0.68333,0.07944,0.13889,0.72473],"160":[0,0,0,0,0.25]},"Fraktur-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69141,0,0,0.29574],"34":[0,0.69141,0,0,0.21471],"38":[0,0.69141,0,0,0.73786],"39":[0,0.69141,0,0,0.21201],"40":[0.24982,0.74947,0,0,0.38865],"41":[0.24982,0.74947,0,0,0.38865],"42":[0,0.62119,0,0,0.27764],"43":[0.08319,0.58283,0,0,0.75623],"44":[0,0.10803,0,0,0.27764],"45":[0.08319,0.58283,0,0,0.75623],"46":[0,0.10803,0,0,0.27764],"47":[0.24982,0.74947,0,0,0.50181],"48":[0,0.47534,0,0,0.50181],"49":[0,0.47534,0,0,0.50181],"50":[0,0.47534,0,0,0.50181],"51":[0.18906,0.47534,0,0,0.50181],"52":[0.18906,0.47534,0,0,0.50181],"53":[0.18906,0.47534,0,0,0.50181],"54":[0,0.69141,0,0,0.50181],"55":[0.18906,0.47534,0,0,0.50181],"56":[0,0.69141,0,0,0.50181],"57":[0.18906,0.47534,0,0,0.50181],"58":[0,0.47534,0,0,0.21606],"59":[0.12604,0.47534,0,0,0.21606],"61":[-0.13099,0.36866,0,0,0.75623],"63":[0,0.69141,0,0,0.36245],"65":[0,0.69141,0,0,0.7176],"66":[0,0.69141,0,0,0.88397],"67":[0,0.69141,0,0,0.61254],"68":[0,0.69141,0,0,0.83158],"69":[0,0.69141,0,0,0.66278],"70":[0.12604,0.69141,0,0,0.61119],"71":[0,0.69141,0,0,0.78539],"72":[0.06302,0.69141,0,0,0.7203],"73":[0,0.69141,0,0,0.55448],"74":[0.12604,0.69141,0,0,0.55231],"75":[0,0.69141,0,0,0.66845],"76":[0,0.69141,0,0,0.66602],"77":[0,0.69141,0,0,1.04953],"78":[0,0.69141,0,0,0.83212],"79":[0,0.69141,0,0,0.82699],"80":[0.18906,0.69141,0,0,0.82753],"81":[0.03781,0.69141,0,0,0.82699],"82":[0,0.69141,0,0,0.82807],"83":[0,0.69141,0,0,0.82861],"84":[0,0.69141,0,0,0.66899],"85":[0,0.69141,0,0,0.64576],"86":[0,0.69141,0,0,0.83131],"87":[0,0.69141,0,0,1.04602],"88":[0,0.69141,0,0,0.71922],"89":[0.18906,0.69141,0,0,0.83293],"90":[0.12604,0.69141,0,0,0.60201],"91":[0.24982,0.74947,0,0,0.27764],"93":[0.24982,0.74947,0,0,0.27764],"94":[0,0.69141,0,0,0.49965],"97":[0,0.47534,0,0,0.50046],"98":[0,0.69141,0,0,0.51315],"99":[0,0.47534,0,0,0.38946],"100":[0,0.62119,0,0,0.49857],"101":[0,0.47534,0,0,0.40053],"102":[0.18906,0.69141,0,0,0.32626],"103":[0.18906,0.47534,0,0,0.5037],"104":[0.18906,0.69141,0,0,0.52126],"105":[0,0.69141,0,0,0.27899],"106":[0,0.69141,0,0,0.28088],"107":[0,0.69141,0,0,0.38946],"108":[0,0.69141,0,0,0.27953],"109":[0,0.47534,0,0,0.76676],"110":[0,0.47534,0,0,0.52666],"111":[0,0.47534,0,0,0.48885],"112":[0.18906,0.52396,0,0,0.50046],"113":[0.18906,0.47534,0,0,0.48912],"114":[0,0.47534,0,0,0.38919],"115":[0,0.47534,0,0,0.44266],"116":[0,0.62119,0,0,0.33301],"117":[0,0.47534,0,0,0.5172],"118":[0,0.52396,0,0,0.5118],"119":[0,0.52396,0,0,0.77351],"120":[0.18906,0.47534,0,0,0.38865],"121":[0.18906,0.47534,0,0,0.49884],"122":[0.18906,0.47534,0,0,0.39054],"160":[0,0,0,0,0.25],"8216":[0,0.69141,0,0,0.21471],"8217":[0,0.69141,0,0,0.21471],"58112":[0,0.62119,0,0,0.49749],"58113":[0,0.62119,0,0,0.4983],"58114":[0.18906,0.69141,0,0,0.33328],"58115":[0.18906,0.69141,0,0,0.32923],"58116":[0.18906,0.47534,0,0,0.50343],"58117":[0,0.69141,0,0,0.33301],"58118":[0,0.62119,0,0,0.33409],"58119":[0,0.47534,0,0,0.50073]},"Main-Bold":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.35],"34":[0,0.69444,0,0,0.60278],"35":[0.19444,0.69444,0,0,0.95833],"36":[0.05556,0.75,0,0,0.575],"37":[0.05556,0.75,0,0,0.95833],"38":[0,0.69444,0,0,0.89444],"39":[0,0.69444,0,0,0.31944],"40":[0.25,0.75,0,0,0.44722],"41":[0.25,0.75,0,0,0.44722],"42":[0,0.75,0,0,0.575],"43":[0.13333,0.63333,0,0,0.89444],"44":[0.19444,0.15556,0,0,0.31944],"45":[0,0.44444,0,0,0.38333],"46":[0,0.15556,0,0,0.31944],"47":[0.25,0.75,0,0,0.575],"48":[0,0.64444,0,0,0.575],"49":[0,0.64444,0,0,0.575],"50":[0,0.64444,0,0,0.575],"51":[0,0.64444,0,0,0.575],"52":[0,0.64444,0,0,0.575],"53":[0,0.64444,0,0,0.575],"54":[0,0.64444,0,0,0.575],"55":[0,0.64444,0,0,0.575],"56":[0,0.64444,0,0,0.575],"57":[0,0.64444,0,0,0.575],"58":[0,0.44444,0,0,0.31944],"59":[0.19444,0.44444,0,0,0.31944],"60":[0.08556,0.58556,0,0,0.89444],"61":[-0.10889,0.39111,0,0,0.89444],"62":[0.08556,0.58556,0,0,0.89444],"63":[0,0.69444,0,0,0.54305],"64":[0,0.69444,0,0,0.89444],"65":[0,0.68611,0,0,0.86944],"66":[0,0.68611,0,0,0.81805],"67":[0,0.68611,0,0,0.83055],"68":[0,0.68611,0,0,0.88194],"69":[0,0.68611,0,0,0.75555],"70":[0,0.68611,0,0,0.72361],"71":[0,0.68611,0,0,0.90416],"72":[0,0.68611,0,0,0.9],"73":[0,0.68611,0,0,0.43611],"74":[0,0.68611,0,0,0.59444],"75":[0,0.68611,0,0,0.90138],"76":[0,0.68611,0,0,0.69166],"77":[0,0.68611,0,0,1.09166],"78":[0,0.68611,0,0,0.9],"79":[0,0.68611,0,0,0.86388],"80":[0,0.68611,0,0,0.78611],"81":[0.19444,0.68611,0,0,0.86388],"82":[0,0.68611,0,0,0.8625],"83":[0,0.68611,0,0,0.63889],"84":[0,0.68611,0,0,0.8],"85":[0,0.68611,0,0,0.88472],"86":[0,0.68611,0.01597,0,0.86944],"87":[0,0.68611,0.01597,0,1.18888],"88":[0,0.68611,0,0,0.86944],"89":[0,0.68611,0.02875,0,0.86944],"90":[0,0.68611,0,0,0.70277],"91":[0.25,0.75,0,0,0.31944],"92":[0.25,0.75,0,0,0.575],"93":[0.25,0.75,0,0,0.31944],"94":[0,0.69444,0,0,0.575],"95":[0.31,0.13444,0.03194,0,0.575],"97":[0,0.44444,0,0,0.55902],"98":[0,0.69444,0,0,0.63889],"99":[0,0.44444,0,0,0.51111],"100":[0,0.69444,0,0,0.63889],"101":[0,0.44444,0,0,0.52708],"102":[0,0.69444,0.10903,0,0.35139],"103":[0.19444,0.44444,0.01597,0,0.575],"104":[0,0.69444,0,0,0.63889],"105":[0,0.69444,0,0,0.31944],"106":[0.19444,0.69444,0,0,0.35139],"107":[0,0.69444,0,0,0.60694],"108":[0,0.69444,0,0,0.31944],"109":[0,0.44444,0,0,0.95833],"110":[0,0.44444,0,0,0.63889],"111":[0,0.44444,0,0,0.575],"112":[0.19444,0.44444,0,0,0.63889],"113":[0.19444,0.44444,0,0,0.60694],"114":[0,0.44444,0,0,0.47361],"115":[0,0.44444,0,0,0.45361],"116":[0,0.63492,0,0,0.44722],"117":[0,0.44444,0,0,0.63889],"118":[0,0.44444,0.01597,0,0.60694],"119":[0,0.44444,0.01597,0,0.83055],"120":[0,0.44444,0,0,0.60694],"121":[0.19444,0.44444,0.01597,0,0.60694],"122":[0,0.44444,0,0,0.51111],"123":[0.25,0.75,0,0,0.575],"124":[0.25,0.75,0,0,0.31944],"125":[0.25,0.75,0,0,0.575],"126":[0.35,0.34444,0,0,0.575],"160":[0,0,0,0,0.25],"163":[0,0.69444,0,0,0.86853],"168":[0,0.69444,0,0,0.575],"172":[0,0.44444,0,0,0.76666],"176":[0,0.69444,0,0,0.86944],"177":[0.13333,0.63333,0,0,0.89444],"184":[0.17014,0,0,0,0.51111],"198":[0,0.68611,0,0,1.04166],"215":[0.13333,0.63333,0,0,0.89444],"216":[0.04861,0.73472,0,0,0.89444],"223":[0,0.69444,0,0,0.59722],"230":[0,0.44444,0,0,0.83055],"247":[0.13333,0.63333,0,0,0.89444],"248":[0.09722,0.54167,0,0,0.575],"305":[0,0.44444,0,0,0.31944],"338":[0,0.68611,0,0,1.16944],"339":[0,0.44444,0,0,0.89444],"567":[0.19444,0.44444,0,0,0.35139],"710":[0,0.69444,0,0,0.575],"711":[0,0.63194,0,0,0.575],"713":[0,0.59611,0,0,0.575],"714":[0,0.69444,0,0,0.575],"715":[0,0.69444,0,0,0.575],"728":[0,0.69444,0,0,0.575],"729":[0,0.69444,0,0,0.31944],"730":[0,0.69444,0,0,0.86944],"732":[0,0.69444,0,0,0.575],"733":[0,0.69444,0,0,0.575],"915":[0,0.68611,0,0,0.69166],"916":[0,0.68611,0,0,0.95833],"920":[0,0.68611,0,0,0.89444],"923":[0,0.68611,0,0,0.80555],"926":[0,0.68611,0,0,0.76666],"928":[0,0.68611,0,0,0.9],"931":[0,0.68611,0,0,0.83055],"933":[0,0.68611,0,0,0.89444],"934":[0,0.68611,0,0,0.83055],"936":[0,0.68611,0,0,0.89444],"937":[0,0.68611,0,0,0.83055],"8211":[0,0.44444,0.03194,0,0.575],"8212":[0,0.44444,0.03194,0,1.14999],"8216":[0,0.69444,0,0,0.31944],"8217":[0,0.69444,0,0,0.31944],"8220":[0,0.69444,0,0,0.60278],"8221":[0,0.69444,0,0,0.60278],"8224":[0.19444,0.69444,0,0,0.51111],"8225":[0.19444,0.69444,0,0,0.51111],"8242":[0,0.55556,0,0,0.34444],"8407":[0,0.72444,0.15486,0,0.575],"8463":[0,0.69444,0,0,0.66759],"8465":[0,0.69444,0,0,0.83055],"8467":[0,0.69444,0,0,0.47361],"8472":[0.19444,0.44444,0,0,0.74027],"8476":[0,0.69444,0,0,0.83055],"8501":[0,0.69444,0,0,0.70277],"8592":[-0.10889,0.39111,0,0,1.14999],"8593":[0.19444,0.69444,0,0,0.575],"8594":[-0.10889,0.39111,0,0,1.14999],"8595":[0.19444,0.69444,0,0,0.575],"8596":[-0.10889,0.39111,0,0,1.14999],"8597":[0.25,0.75,0,0,0.575],"8598":[0.19444,0.69444,0,0,1.14999],"8599":[0.19444,0.69444,0,0,1.14999],"8600":[0.19444,0.69444,0,0,1.14999],"8601":[0.19444,0.69444,0,0,1.14999],"8636":[-0.10889,0.39111,0,0,1.14999],"8637":[-0.10889,0.39111,0,0,1.14999],"8640":[-0.10889,0.39111,0,0,1.14999],"8641":[-0.10889,0.39111,0,0,1.14999],"8656":[-0.10889,0.39111,0,0,1.14999],"8657":[0.19444,0.69444,0,0,0.70277],"8658":[-0.10889,0.39111,0,0,1.14999],"8659":[0.19444,0.69444,0,0,0.70277],"8660":[-0.10889,0.39111,0,0,1.14999],"8661":[0.25,0.75,0,0,0.70277],"8704":[0,0.69444,0,0,0.63889],"8706":[0,0.69444,0.06389,0,0.62847],"8707":[0,0.69444,0,0,0.63889],"8709":[0.05556,0.75,0,0,0.575],"8711":[0,0.68611,0,0,0.95833],"8712":[0.08556,0.58556,0,0,0.76666],"8715":[0.08556,0.58556,0,0,0.76666],"8722":[0.13333,0.63333,0,0,0.89444],"8723":[0.13333,0.63333,0,0,0.89444],"8725":[0.25,0.75,0,0,0.575],"8726":[0.25,0.75,0,0,0.575],"8727":[-0.02778,0.47222,0,0,0.575],"8728":[-0.02639,0.47361,0,0,0.575],"8729":[-0.02639,0.47361,0,0,0.575],"8730":[0.18,0.82,0,0,0.95833],"8733":[0,0.44444,0,0,0.89444],"8734":[0,0.44444,0,0,1.14999],"8736":[0,0.69224,0,0,0.72222],"8739":[0.25,0.75,0,0,0.31944],"8741":[0.25,0.75,0,0,0.575],"8743":[0,0.55556,0,0,0.76666],"8744":[0,0.55556,0,0,0.76666],"8745":[0,0.55556,0,0,0.76666],"8746":[0,0.55556,0,0,0.76666],"8747":[0.19444,0.69444,0.12778,0,0.56875],"8764":[-0.10889,0.39111,0,0,0.89444],"8768":[0.19444,0.69444,0,0,0.31944],"8771":[0.00222,0.50222,0,0,0.89444],"8773":[0.027,0.638,0,0,0.894],"8776":[0.02444,0.52444,0,0,0.89444],"8781":[0.00222,0.50222,0,0,0.89444],"8801":[0.00222,0.50222,0,0,0.89444],"8804":[0.19667,0.69667,0,0,0.89444],"8805":[0.19667,0.69667,0,0,0.89444],"8810":[0.08556,0.58556,0,0,1.14999],"8811":[0.08556,0.58556,0,0,1.14999],"8826":[0.08556,0.58556,0,0,0.89444],"8827":[0.08556,0.58556,0,0,0.89444],"8834":[0.08556,0.58556,0,0,0.89444],"8835":[0.08556,0.58556,0,0,0.89444],"8838":[0.19667,0.69667,0,0,0.89444],"8839":[0.19667,0.69667,0,0,0.89444],"8846":[0,0.55556,0,0,0.76666],"8849":[0.19667,0.69667,0,0,0.89444],"8850":[0.19667,0.69667,0,0,0.89444],"8851":[0,0.55556,0,0,0.76666],"8852":[0,0.55556,0,0,0.76666],"8853":[0.13333,0.63333,0,0,0.89444],"8854":[0.13333,0.63333,0,0,0.89444],"8855":[0.13333,0.63333,0,0,0.89444],"8856":[0.13333,0.63333,0,0,0.89444],"8857":[0.13333,0.63333,0,0,0.89444],"8866":[0,0.69444,0,0,0.70277],"8867":[0,0.69444,0,0,0.70277],"8868":[0,0.69444,0,0,0.89444],"8869":[0,0.69444,0,0,0.89444],"8900":[-0.02639,0.47361,0,0,0.575],"8901":[-0.02639,0.47361,0,0,0.31944],"8902":[-0.02778,0.47222,0,0,0.575],"8968":[0.25,0.75,0,0,0.51111],"8969":[0.25,0.75,0,0,0.51111],"8970":[0.25,0.75,0,0,0.51111],"8971":[0.25,0.75,0,0,0.51111],"8994":[-0.13889,0.36111,0,0,1.14999],"8995":[-0.13889,0.36111,0,0,1.14999],"9651":[0.19444,0.69444,0,0,1.02222],"9657":[-0.02778,0.47222,0,0,0.575],"9661":[0.19444,0.69444,0,0,1.02222],"9667":[-0.02778,0.47222,0,0,0.575],"9711":[0.19444,0.69444,0,0,1.14999],"9824":[0.12963,0.69444,0,0,0.89444],"9825":[0.12963,0.69444,0,0,0.89444],"9826":[0.12963,0.69444,0,0,0.89444],"9827":[0.12963,0.69444,0,0,0.89444],"9837":[0,0.75,0,0,0.44722],"9838":[0.19444,0.69444,0,0,0.44722],"9839":[0.19444,0.69444,0,0,0.44722],"10216":[0.25,0.75,0,0,0.44722],"10217":[0.25,0.75,0,0,0.44722],"10815":[0,0.68611,0,0,0.9],"10927":[0.19667,0.69667,0,0,0.89444],"10928":[0.19667,0.69667,0,0,0.89444],"57376":[0.19444,0.69444,0,0,0]},"Main-BoldItalic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.11417,0,0.38611],"34":[0,0.69444,0.07939,0,0.62055],"35":[0.19444,0.69444,0.06833,0,0.94444],"37":[0.05556,0.75,0.12861,0,0.94444],"38":[0,0.69444,0.08528,0,0.88555],"39":[0,0.69444,0.12945,0,0.35555],"40":[0.25,0.75,0.15806,0,0.47333],"41":[0.25,0.75,0.03306,0,0.47333],"42":[0,0.75,0.14333,0,0.59111],"43":[0.10333,0.60333,0.03306,0,0.88555],"44":[0.19444,0.14722,0,0,0.35555],"45":[0,0.44444,0.02611,0,0.41444],"46":[0,0.14722,0,0,0.35555],"47":[0.25,0.75,0.15806,0,0.59111],"48":[0,0.64444,0.13167,0,0.59111],"49":[0,0.64444,0.13167,0,0.59111],"50":[0,0.64444,0.13167,0,0.59111],"51":[0,0.64444,0.13167,0,0.59111],"52":[0.19444,0.64444,0.13167,0,0.59111],"53":[0,0.64444,0.13167,0,0.59111],"54":[0,0.64444,0.13167,0,0.59111],"55":[0.19444,0.64444,0.13167,0,0.59111],"56":[0,0.64444,0.13167,0,0.59111],"57":[0,0.64444,0.13167,0,0.59111],"58":[0,0.44444,0.06695,0,0.35555],"59":[0.19444,0.44444,0.06695,0,0.35555],"61":[-0.10889,0.39111,0.06833,0,0.88555],"63":[0,0.69444,0.11472,0,0.59111],"64":[0,0.69444,0.09208,0,0.88555],"65":[0,0.68611,0,0,0.86555],"66":[0,0.68611,0.0992,0,0.81666],"67":[0,0.68611,0.14208,0,0.82666],"68":[0,0.68611,0.09062,0,0.87555],"69":[0,0.68611,0.11431,0,0.75666],"70":[0,0.68611,0.12903,0,0.72722],"71":[0,0.68611,0.07347,0,0.89527],"72":[0,0.68611,0.17208,0,0.8961],"73":[0,0.68611,0.15681,0,0.47166],"74":[0,0.68611,0.145,0,0.61055],"75":[0,0.68611,0.14208,0,0.89499],"76":[0,0.68611,0,0,0.69777],"77":[0,0.68611,0.17208,0,1.07277],"78":[0,0.68611,0.17208,0,0.8961],"79":[0,0.68611,0.09062,0,0.85499],"80":[0,0.68611,0.0992,0,0.78721],"81":[0.19444,0.68611,0.09062,0,0.85499],"82":[0,0.68611,0.02559,0,0.85944],"83":[0,0.68611,0.11264,0,0.64999],"84":[0,0.68611,0.12903,0,0.7961],"85":[0,0.68611,0.17208,0,0.88083],"86":[0,0.68611,0.18625,0,0.86555],"87":[0,0.68611,0.18625,0,1.15999],"88":[0,0.68611,0.15681,0,0.86555],"89":[0,0.68611,0.19803,0,0.86555],"90":[0,0.68611,0.14208,0,0.70888],"91":[0.25,0.75,0.1875,0,0.35611],"93":[0.25,0.75,0.09972,0,0.35611],"94":[0,0.69444,0.06709,0,0.59111],"95":[0.31,0.13444,0.09811,0,0.59111],"97":[0,0.44444,0.09426,0,0.59111],"98":[0,0.69444,0.07861,0,0.53222],"99":[0,0.44444,0.05222,0,0.53222],"100":[0,0.69444,0.10861,0,0.59111],"101":[0,0.44444,0.085,0,0.53222],"102":[0.19444,0.69444,0.21778,0,0.4],"103":[0.19444,0.44444,0.105,0,0.53222],"104":[0,0.69444,0.09426,0,0.59111],"105":[0,0.69326,0.11387,0,0.35555],"106":[0.19444,0.69326,0.1672,0,0.35555],"107":[0,0.69444,0.11111,0,0.53222],"108":[0,0.69444,0.10861,0,0.29666],"109":[0,0.44444,0.09426,0,0.94444],"110":[0,0.44444,0.09426,0,0.64999],"111":[0,0.44444,0.07861,0,0.59111],"112":[0.19444,0.44444,0.07861,0,0.59111],"113":[0.19444,0.44444,0.105,0,0.53222],"114":[0,0.44444,0.11111,0,0.50167],"115":[0,0.44444,0.08167,0,0.48694],"116":[0,0.63492,0.09639,0,0.385],"117":[0,0.44444,0.09426,0,0.62055],"118":[0,0.44444,0.11111,0,0.53222],"119":[0,0.44444,0.11111,0,0.76777],"120":[0,0.44444,0.12583,0,0.56055],"121":[0.19444,0.44444,0.105,0,0.56166],"122":[0,0.44444,0.13889,0,0.49055],"126":[0.35,0.34444,0.11472,0,0.59111],"160":[0,0,0,0,0.25],"168":[0,0.69444,0.11473,0,0.59111],"176":[0,0.69444,0,0,0.94888],"184":[0.17014,0,0,0,0.53222],"198":[0,0.68611,0.11431,0,1.02277],"216":[0.04861,0.73472,0.09062,0,0.88555],"223":[0.19444,0.69444,0.09736,0,0.665],"230":[0,0.44444,0.085,0,0.82666],"248":[0.09722,0.54167,0.09458,0,0.59111],"305":[0,0.44444,0.09426,0,0.35555],"338":[0,0.68611,0.11431,0,1.14054],"339":[0,0.44444,0.085,0,0.82666],"567":[0.19444,0.44444,0.04611,0,0.385],"710":[0,0.69444,0.06709,0,0.59111],"711":[0,0.63194,0.08271,0,0.59111],"713":[0,0.59444,0.10444,0,0.59111],"714":[0,0.69444,0.08528,0,0.59111],"715":[0,0.69444,0,0,0.59111],"728":[0,0.69444,0.10333,0,0.59111],"729":[0,0.69444,0.12945,0,0.35555],"730":[0,0.69444,0,0,0.94888],"732":[0,0.69444,0.11472,0,0.59111],"733":[0,0.69444,0.11472,0,0.59111],"915":[0,0.68611,0.12903,0,0.69777],"916":[0,0.68611,0,0,0.94444],"920":[0,0.68611,0.09062,0,0.88555],"923":[0,0.68611,0,0,0.80666],"926":[0,0.68611,0.15092,0,0.76777],"928":[0,0.68611,0.17208,0,0.8961],"931":[0,0.68611,0.11431,0,0.82666],"933":[0,0.68611,0.10778,0,0.88555],"934":[0,0.68611,0.05632,0,0.82666],"936":[0,0.68611,0.10778,0,0.88555],"937":[0,0.68611,0.0992,0,0.82666],"8211":[0,0.44444,0.09811,0,0.59111],"8212":[0,0.44444,0.09811,0,1.18221],"8216":[0,0.69444,0.12945,0,0.35555],"8217":[0,0.69444,0.12945,0,0.35555],"8220":[0,0.69444,0.16772,0,0.62055],"8221":[0,0.69444,0.07939,0,0.62055]},"Main-Italic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.12417,0,0.30667],"34":[0,0.69444,0.06961,0,0.51444],"35":[0.19444,0.69444,0.06616,0,0.81777],"37":[0.05556,0.75,0.13639,0,0.81777],"38":[0,0.69444,0.09694,0,0.76666],"39":[0,0.69444,0.12417,0,0.30667],"40":[0.25,0.75,0.16194,0,0.40889],"41":[0.25,0.75,0.03694,0,0.40889],"42":[0,0.75,0.14917,0,0.51111],"43":[0.05667,0.56167,0.03694,0,0.76666],"44":[0.19444,0.10556,0,0,0.30667],"45":[0,0.43056,0.02826,0,0.35778],"46":[0,0.10556,0,0,0.30667],"47":[0.25,0.75,0.16194,0,0.51111],"48":[0,0.64444,0.13556,0,0.51111],"49":[0,0.64444,0.13556,0,0.51111],"50":[0,0.64444,0.13556,0,0.51111],"51":[0,0.64444,0.13556,0,0.51111],"52":[0.19444,0.64444,0.13556,0,0.51111],"53":[0,0.64444,0.13556,0,0.51111],"54":[0,0.64444,0.13556,0,0.51111],"55":[0.19444,0.64444,0.13556,0,0.51111],"56":[0,0.64444,0.13556,0,0.51111],"57":[0,0.64444,0.13556,0,0.51111],"58":[0,0.43056,0.0582,0,0.30667],"59":[0.19444,0.43056,0.0582,0,0.30667],"61":[-0.13313,0.36687,0.06616,0,0.76666],"63":[0,0.69444,0.1225,0,0.51111],"64":[0,0.69444,0.09597,0,0.76666],"65":[0,0.68333,0,0,0.74333],"66":[0,0.68333,0.10257,0,0.70389],"67":[0,0.68333,0.14528,0,0.71555],"68":[0,0.68333,0.09403,0,0.755],"69":[0,0.68333,0.12028,0,0.67833],"70":[0,0.68333,0.13305,0,0.65277],"71":[0,0.68333,0.08722,0,0.77361],"72":[0,0.68333,0.16389,0,0.74333],"73":[0,0.68333,0.15806,0,0.38555],"74":[0,0.68333,0.14028,0,0.525],"75":[0,0.68333,0.14528,0,0.76888],"76":[0,0.68333,0,0,0.62722],"77":[0,0.68333,0.16389,0,0.89666],"78":[0,0.68333,0.16389,0,0.74333],"79":[0,0.68333,0.09403,0,0.76666],"80":[0,0.68333,0.10257,0,0.67833],"81":[0.19444,0.68333,0.09403,0,0.76666],"82":[0,0.68333,0.03868,0,0.72944],"83":[0,0.68333,0.11972,0,0.56222],"84":[0,0.68333,0.13305,0,0.71555],"85":[0,0.68333,0.16389,0,0.74333],"86":[0,0.68333,0.18361,0,0.74333],"87":[0,0.68333,0.18361,0,0.99888],"88":[0,0.68333,0.15806,0,0.74333],"89":[0,0.68333,0.19383,0,0.74333],"90":[0,0.68333,0.14528,0,0.61333],"91":[0.25,0.75,0.1875,0,0.30667],"93":[0.25,0.75,0.10528,0,0.30667],"94":[0,0.69444,0.06646,0,0.51111],"95":[0.31,0.12056,0.09208,0,0.51111],"97":[0,0.43056,0.07671,0,0.51111],"98":[0,0.69444,0.06312,0,0.46],"99":[0,0.43056,0.05653,0,0.46],"100":[0,0.69444,0.10333,0,0.51111],"101":[0,0.43056,0.07514,0,0.46],"102":[0.19444,0.69444,0.21194,0,0.30667],"103":[0.19444,0.43056,0.08847,0,0.46],"104":[0,0.69444,0.07671,0,0.51111],"105":[0,0.65536,0.1019,0,0.30667],"106":[0.19444,0.65536,0.14467,0,0.30667],"107":[0,0.69444,0.10764,0,0.46],"108":[0,0.69444,0.10333,0,0.25555],"109":[0,0.43056,0.07671,0,0.81777],"110":[0,0.43056,0.07671,0,0.56222],"111":[0,0.43056,0.06312,0,0.51111],"112":[0.19444,0.43056,0.06312,0,0.51111],"113":[0.19444,0.43056,0.08847,0,0.46],"114":[0,0.43056,0.10764,0,0.42166],"115":[0,0.43056,0.08208,0,0.40889],"116":[0,0.61508,0.09486,0,0.33222],"117":[0,0.43056,0.07671,0,0.53666],"118":[0,0.43056,0.10764,0,0.46],"119":[0,0.43056,0.10764,0,0.66444],"120":[0,0.43056,0.12042,0,0.46389],"121":[0.19444,0.43056,0.08847,0,0.48555],"122":[0,0.43056,0.12292,0,0.40889],"126":[0.35,0.31786,0.11585,0,0.51111],"160":[0,0,0,0,0.25],"168":[0,0.66786,0.10474,0,0.51111],"176":[0,0.69444,0,0,0.83129],"184":[0.17014,0,0,0,0.46],"198":[0,0.68333,0.12028,0,0.88277],"216":[0.04861,0.73194,0.09403,0,0.76666],"223":[0.19444,0.69444,0.10514,0,0.53666],"230":[0,0.43056,0.07514,0,0.71555],"248":[0.09722,0.52778,0.09194,0,0.51111],"338":[0,0.68333,0.12028,0,0.98499],"339":[0,0.43056,0.07514,0,0.71555],"710":[0,0.69444,0.06646,0,0.51111],"711":[0,0.62847,0.08295,0,0.51111],"713":[0,0.56167,0.10333,0,0.51111],"714":[0,0.69444,0.09694,0,0.51111],"715":[0,0.69444,0,0,0.51111],"728":[0,0.69444,0.10806,0,0.51111],"729":[0,0.66786,0.11752,0,0.30667],"730":[0,0.69444,0,0,0.83129],"732":[0,0.66786,0.11585,0,0.51111],"733":[0,0.69444,0.1225,0,0.51111],"915":[0,0.68333,0.13305,0,0.62722],"916":[0,0.68333,0,0,0.81777],"920":[0,0.68333,0.09403,0,0.76666],"923":[0,0.68333,0,0,0.69222],"926":[0,0.68333,0.15294,0,0.66444],"928":[0,0.68333,0.16389,0,0.74333],"931":[0,0.68333,0.12028,0,0.71555],"933":[0,0.68333,0.11111,0,0.76666],"934":[0,0.68333,0.05986,0,0.71555],"936":[0,0.68333,0.11111,0,0.76666],"937":[0,0.68333,0.10257,0,0.71555],"8211":[0,0.43056,0.09208,0,0.51111],"8212":[0,0.43056,0.09208,0,1.02222],"8216":[0,0.69444,0.12417,0,0.30667],"8217":[0,0.69444,0.12417,0,0.30667],"8220":[0,0.69444,0.1685,0,0.51444],"8221":[0,0.69444,0.06961,0,0.51444],"8463":[0,0.68889,0,0,0.54028]},"Main-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.27778],"34":[0,0.69444,0,0,0.5],"35":[0.19444,0.69444,0,0,0.83334],"36":[0.05556,0.75,0,0,0.5],"37":[0.05556,0.75,0,0,0.83334],"38":[0,0.69444,0,0,0.77778],"39":[0,0.69444,0,0,0.27778],"40":[0.25,0.75,0,0,0.38889],"41":[0.25,0.75,0,0,0.38889],"42":[0,0.75,0,0,0.5],"43":[0.08333,0.58333,0,0,0.77778],"44":[0.19444,0.10556,0,0,0.27778],"45":[0,0.43056,0,0,0.33333],"46":[0,0.10556,0,0,0.27778],"47":[0.25,0.75,0,0,0.5],"48":[0,0.64444,0,0,0.5],"49":[0,0.64444,0,0,0.5],"50":[0,0.64444,0,0,0.5],"51":[0,0.64444,0,0,0.5],"52":[0,0.64444,0,0,0.5],"53":[0,0.64444,0,0,0.5],"54":[0,0.64444,0,0,0.5],"55":[0,0.64444,0,0,0.5],"56":[0,0.64444,0,0,0.5],"57":[0,0.64444,0,0,0.5],"58":[0,0.43056,0,0,0.27778],"59":[0.19444,0.43056,0,0,0.27778],"60":[0.0391,0.5391,0,0,0.77778],"61":[-0.13313,0.36687,0,0,0.77778],"62":[0.0391,0.5391,0,0,0.77778],"63":[0,0.69444,0,0,0.47222],"64":[0,0.69444,0,0,0.77778],"65":[0,0.68333,0,0,0.75],"66":[0,0.68333,0,0,0.70834],"67":[0,0.68333,0,0,0.72222],"68":[0,0.68333,0,0,0.76389],"69":[0,0.68333,0,0,0.68056],"70":[0,0.68333,0,0,0.65278],"71":[0,0.68333,0,0,0.78472],"72":[0,0.68333,0,0,0.75],"73":[0,0.68333,0,0,0.36111],"74":[0,0.68333,0,0,0.51389],"75":[0,0.68333,0,0,0.77778],"76":[0,0.68333,0,0,0.625],"77":[0,0.68333,0,0,0.91667],"78":[0,0.68333,0,0,0.75],"79":[0,0.68333,0,0,0.77778],"80":[0,0.68333,0,0,0.68056],"81":[0.19444,0.68333,0,0,0.77778],"82":[0,0.68333,0,0,0.73611],"83":[0,0.68333,0,0,0.55556],"84":[0,0.68333,0,0,0.72222],"85":[0,0.68333,0,0,0.75],"86":[0,0.68333,0.01389,0,0.75],"87":[0,0.68333,0.01389,0,1.02778],"88":[0,0.68333,0,0,0.75],"89":[0,0.68333,0.025,0,0.75],"90":[0,0.68333,0,0,0.61111],"91":[0.25,0.75,0,0,0.27778],"92":[0.25,0.75,0,0,0.5],"93":[0.25,0.75,0,0,0.27778],"94":[0,0.69444,0,0,0.5],"95":[0.31,0.12056,0.02778,0,0.5],"97":[0,0.43056,0,0,0.5],"98":[0,0.69444,0,0,0.55556],"99":[0,0.43056,0,0,0.44445],"100":[0,0.69444,0,0,0.55556],"101":[0,0.43056,0,0,0.44445],"102":[0,0.69444,0.07778,0,0.30556],"103":[0.19444,0.43056,0.01389,0,0.5],"104":[0,0.69444,0,0,0.55556],"105":[0,0.66786,0,0,0.27778],"106":[0.19444,0.66786,0,0,0.30556],"107":[0,0.69444,0,0,0.52778],"108":[0,0.69444,0,0,0.27778],"109":[0,0.43056,0,0,0.83334],"110":[0,0.43056,0,0,0.55556],"111":[0,0.43056,0,0,0.5],"112":[0.19444,0.43056,0,0,0.55556],"113":[0.19444,0.43056,0,0,0.52778],"114":[0,0.43056,0,0,0.39167],"115":[0,0.43056,0,0,0.39445],"116":[0,0.61508,0,0,0.38889],"117":[0,0.43056,0,0,0.55556],"118":[0,0.43056,0.01389,0,0.52778],"119":[0,0.43056,0.01389,0,0.72222],"120":[0,0.43056,0,0,0.52778],"121":[0.19444,0.43056,0.01389,0,0.52778],"122":[0,0.43056,0,0,0.44445],"123":[0.25,0.75,0,0,0.5],"124":[0.25,0.75,0,0,0.27778],"125":[0.25,0.75,0,0,0.5],"126":[0.35,0.31786,0,0,0.5],"160":[0,0,0,0,0.25],"163":[0,0.69444,0,0,0.76909],"167":[0.19444,0.69444,0,0,0.44445],"168":[0,0.66786,0,0,0.5],"172":[0,0.43056,0,0,0.66667],"176":[0,0.69444,0,0,0.75],"177":[0.08333,0.58333,0,0,0.77778],"182":[0.19444,0.69444,0,0,0.61111],"184":[0.17014,0,0,0,0.44445],"198":[0,0.68333,0,0,0.90278],"215":[0.08333,0.58333,0,0,0.77778],"216":[0.04861,0.73194,0,0,0.77778],"223":[0,0.69444,0,0,0.5],"230":[0,0.43056,0,0,0.72222],"247":[0.08333,0.58333,0,0,0.77778],"248":[0.09722,0.52778,0,0,0.5],"305":[0,0.43056,0,0,0.27778],"338":[0,0.68333,0,0,1.01389],"339":[0,0.43056,0,0,0.77778],"567":[0.19444,0.43056,0,0,0.30556],"710":[0,0.69444,0,0,0.5],"711":[0,0.62847,0,0,0.5],"713":[0,0.56778,0,0,0.5],"714":[0,0.69444,0,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0,0,0.5],"729":[0,0.66786,0,0,0.27778],"730":[0,0.69444,0,0,0.75],"732":[0,0.66786,0,0,0.5],"733":[0,0.69444,0,0,0.5],"915":[0,0.68333,0,0,0.625],"916":[0,0.68333,0,0,0.83334],"920":[0,0.68333,0,0,0.77778],"923":[0,0.68333,0,0,0.69445],"926":[0,0.68333,0,0,0.66667],"928":[0,0.68333,0,0,0.75],"931":[0,0.68333,0,0,0.72222],"933":[0,0.68333,0,0,0.77778],"934":[0,0.68333,0,0,0.72222],"936":[0,0.68333,0,0,0.77778],"937":[0,0.68333,0,0,0.72222],"8211":[0,0.43056,0.02778,0,0.5],"8212":[0,0.43056,0.02778,0,1],"8216":[0,0.69444,0,0,0.27778],"8217":[0,0.69444,0,0,0.27778],"8220":[0,0.69444,0,0,0.5],"8221":[0,0.69444,0,0,0.5],"8224":[0.19444,0.69444,0,0,0.44445],"8225":[0.19444,0.69444,0,0,0.44445],"8230":[0,0.123,0,0,1.172],"8242":[0,0.55556,0,0,0.275],"8407":[0,0.71444,0.15382,0,0.5],"8463":[0,0.68889,0,0,0.54028],"8465":[0,0.69444,0,0,0.72222],"8467":[0,0.69444,0,0.11111,0.41667],"8472":[0.19444,0.43056,0,0.11111,0.63646],"8476":[0,0.69444,0,0,0.72222],"8501":[0,0.69444,0,0,0.61111],"8592":[-0.13313,0.36687,0,0,1],"8593":[0.19444,0.69444,0,0,0.5],"8594":[-0.13313,0.36687,0,0,1],"8595":[0.19444,0.69444,0,0,0.5],"8596":[-0.13313,0.36687,0,0,1],"8597":[0.25,0.75,0,0,0.5],"8598":[0.19444,0.69444,0,0,1],"8599":[0.19444,0.69444,0,0,1],"8600":[0.19444,0.69444,0,0,1],"8601":[0.19444,0.69444,0,0,1],"8614":[0.011,0.511,0,0,1],"8617":[0.011,0.511,0,0,1.126],"8618":[0.011,0.511,0,0,1.126],"8636":[-0.13313,0.36687,0,0,1],"8637":[-0.13313,0.36687,0,0,1],"8640":[-0.13313,0.36687,0,0,1],"8641":[-0.13313,0.36687,0,0,1],"8652":[0.011,0.671,0,0,1],"8656":[-0.13313,0.36687,0,0,1],"8657":[0.19444,0.69444,0,0,0.61111],"8658":[-0.13313,0.36687,0,0,1],"8659":[0.19444,0.69444,0,0,0.61111],"8660":[-0.13313,0.36687,0,0,1],"8661":[0.25,0.75,0,0,0.61111],"8704":[0,0.69444,0,0,0.55556],"8706":[0,0.69444,0.05556,0.08334,0.5309],"8707":[0,0.69444,0,0,0.55556],"8709":[0.05556,0.75,0,0,0.5],"8711":[0,0.68333,0,0,0.83334],"8712":[0.0391,0.5391,0,0,0.66667],"8715":[0.0391,0.5391,0,0,0.66667],"8722":[0.08333,0.58333,0,0,0.77778],"8723":[0.08333,0.58333,0,0,0.77778],"8725":[0.25,0.75,0,0,0.5],"8726":[0.25,0.75,0,0,0.5],"8727":[-0.03472,0.46528,0,0,0.5],"8728":[-0.05555,0.44445,0,0,0.5],"8729":[-0.05555,0.44445,0,0,0.5],"8730":[0.2,0.8,0,0,0.83334],"8733":[0,0.43056,0,0,0.77778],"8734":[0,0.43056,0,0,1],"8736":[0,0.69224,0,0,0.72222],"8739":[0.25,0.75,0,0,0.27778],"8741":[0.25,0.75,0,0,0.5],"8743":[0,0.55556,0,0,0.66667],"8744":[0,0.55556,0,0,0.66667],"8745":[0,0.55556,0,0,0.66667],"8746":[0,0.55556,0,0,0.66667],"8747":[0.19444,0.69444,0.11111,0,0.41667],"8764":[-0.13313,0.36687,0,0,0.77778],"8768":[0.19444,0.69444,0,0,0.27778],"8771":[-0.03625,0.46375,0,0,0.77778],"8773":[-0.022,0.589,0,0,0.778],"8776":[-0.01688,0.48312,0,0,0.77778],"8781":[-0.03625,0.46375,0,0,0.77778],"8784":[-0.133,0.673,0,0,0.778],"8801":[-0.03625,0.46375,0,0,0.77778],"8804":[0.13597,0.63597,0,0,0.77778],"8805":[0.13597,0.63597,0,0,0.77778],"8810":[0.0391,0.5391,0,0,1],"8811":[0.0391,0.5391,0,0,1],"8826":[0.0391,0.5391,0,0,0.77778],"8827":[0.0391,0.5391,0,0,0.77778],"8834":[0.0391,0.5391,0,0,0.77778],"8835":[0.0391,0.5391,0,0,0.77778],"8838":[0.13597,0.63597,0,0,0.77778],"8839":[0.13597,0.63597,0,0,0.77778],"8846":[0,0.55556,0,0,0.66667],"8849":[0.13597,0.63597,0,0,0.77778],"8850":[0.13597,0.63597,0,0,0.77778],"8851":[0,0.55556,0,0,0.66667],"8852":[0,0.55556,0,0,0.66667],"8853":[0.08333,0.58333,0,0,0.77778],"8854":[0.08333,0.58333,0,0,0.77778],"8855":[0.08333,0.58333,0,0,0.77778],"8856":[0.08333,0.58333,0,0,0.77778],"8857":[0.08333,0.58333,0,0,0.77778],"8866":[0,0.69444,0,0,0.61111],"8867":[0,0.69444,0,0,0.61111],"8868":[0,0.69444,0,0,0.77778],"8869":[0,0.69444,0,0,0.77778],"8872":[0.249,0.75,0,0,0.867],"8900":[-0.05555,0.44445,0,0,0.5],"8901":[-0.05555,0.44445,0,0,0.27778],"8902":[-0.03472,0.46528,0,0,0.5],"8904":[0.005,0.505,0,0,0.9],"8942":[0.03,0.903,0,0,0.278],"8943":[-0.19,0.313,0,0,1.172],"8945":[-0.1,0.823,0,0,1.282],"8968":[0.25,0.75,0,0,0.44445],"8969":[0.25,0.75,0,0,0.44445],"8970":[0.25,0.75,0,0,0.44445],"8971":[0.25,0.75,0,0,0.44445],"8994":[-0.14236,0.35764,0,0,1],"8995":[-0.14236,0.35764,0,0,1],"9136":[0.244,0.744,0,0,0.412],"9137":[0.244,0.745,0,0,0.412],"9651":[0.19444,0.69444,0,0,0.88889],"9657":[-0.03472,0.46528,0,0,0.5],"9661":[0.19444,0.69444,0,0,0.88889],"9667":[-0.03472,0.46528,0,0,0.5],"9711":[0.19444,0.69444,0,0,1],"9824":[0.12963,0.69444,0,0,0.77778],"9825":[0.12963,0.69444,0,0,0.77778],"9826":[0.12963,0.69444,0,0,0.77778],"9827":[0.12963,0.69444,0,0,0.77778],"9837":[0,0.75,0,0,0.38889],"9838":[0.19444,0.69444,0,0,0.38889],"9839":[0.19444,0.69444,0,0,0.38889],"10216":[0.25,0.75,0,0,0.38889],"10217":[0.25,0.75,0,0,0.38889],"10222":[0.244,0.744,0,0,0.412],"10223":[0.244,0.745,0,0,0.412],"10229":[0.011,0.511,0,0,1.609],"10230":[0.011,0.511,0,0,1.638],"10231":[0.011,0.511,0,0,1.859],"10232":[0.024,0.525,0,0,1.609],"10233":[0.024,0.525,0,0,1.638],"10234":[0.024,0.525,0,0,1.858],"10236":[0.011,0.511,0,0,1.638],"10815":[0,0.68333,0,0,0.75],"10927":[0.13597,0.63597,0,0,0.77778],"10928":[0.13597,0.63597,0,0,0.77778],"57376":[0.19444,0.69444,0,0,0]},"Math-BoldItalic":{"32":[0,0,0,0,0.25],"48":[0,0.44444,0,0,0.575],"49":[0,0.44444,0,0,0.575],"50":[0,0.44444,0,0,0.575],"51":[0.19444,0.44444,0,0,0.575],"52":[0.19444,0.44444,0,0,0.575],"53":[0.19444,0.44444,0,0,0.575],"54":[0,0.64444,0,0,0.575],"55":[0.19444,0.44444,0,0,0.575],"56":[0,0.64444,0,0,0.575],"57":[0.19444,0.44444,0,0,0.575],"65":[0,0.68611,0,0,0.86944],"66":[0,0.68611,0.04835,0,0.8664],"67":[0,0.68611,0.06979,0,0.81694],"68":[0,0.68611,0.03194,0,0.93812],"69":[0,0.68611,0.05451,0,0.81007],"70":[0,0.68611,0.15972,0,0.68889],"71":[0,0.68611,0,0,0.88673],"72":[0,0.68611,0.08229,0,0.98229],"73":[0,0.68611,0.07778,0,0.51111],"74":[0,0.68611,0.10069,0,0.63125],"75":[0,0.68611,0.06979,0,0.97118],"76":[0,0.68611,0,0,0.75555],"77":[0,0.68611,0.11424,0,1.14201],"78":[0,0.68611,0.11424,0,0.95034],"79":[0,0.68611,0.03194,0,0.83666],"80":[0,0.68611,0.15972,0,0.72309],"81":[0.19444,0.68611,0,0,0.86861],"82":[0,0.68611,0.00421,0,0.87235],"83":[0,0.68611,0.05382,0,0.69271],"84":[0,0.68611,0.15972,0,0.63663],"85":[0,0.68611,0.11424,0,0.80027],"86":[0,0.68611,0.25555,0,0.67778],"87":[0,0.68611,0.15972,0,1.09305],"88":[0,0.68611,0.07778,0,0.94722],"89":[0,0.68611,0.25555,0,0.67458],"90":[0,0.68611,0.06979,0,0.77257],"97":[0,0.44444,0,0,0.63287],"98":[0,0.69444,0,0,0.52083],"99":[0,0.44444,0,0,0.51342],"100":[0,0.69444,0,0,0.60972],"101":[0,0.44444,0,0,0.55361],"102":[0.19444,0.69444,0.11042,0,0.56806],"103":[0.19444,0.44444,0.03704,0,0.5449],"104":[0,0.69444,0,0,0.66759],"105":[0,0.69326,0,0,0.4048],"106":[0.19444,0.69326,0.0622,0,0.47083],"107":[0,0.69444,0.01852,0,0.6037],"108":[0,0.69444,0.0088,0,0.34815],"109":[0,0.44444,0,0,1.0324],"110":[0,0.44444,0,0,0.71296],"111":[0,0.44444,0,0,0.58472],"112":[0.19444,0.44444,0,0,0.60092],"113":[0.19444,0.44444,0.03704,0,0.54213],"114":[0,0.44444,0.03194,0,0.5287],"115":[0,0.44444,0,0,0.53125],"116":[0,0.63492,0,0,0.41528],"117":[0,0.44444,0,0,0.68102],"118":[0,0.44444,0.03704,0,0.56666],"119":[0,0.44444,0.02778,0,0.83148],"120":[0,0.44444,0,0,0.65903],"121":[0.19444,0.44444,0.03704,0,0.59028],"122":[0,0.44444,0.04213,0,0.55509],"160":[0,0,0,0,0.25],"915":[0,0.68611,0.15972,0,0.65694],"916":[0,0.68611,0,0,0.95833],"920":[0,0.68611,0.03194,0,0.86722],"923":[0,0.68611,0,0,0.80555],"926":[0,0.68611,0.07458,0,0.84125],"928":[0,0.68611,0.08229,0,0.98229],"931":[0,0.68611,0.05451,0,0.88507],"933":[0,0.68611,0.15972,0,0.67083],"934":[0,0.68611,0,0,0.76666],"936":[0,0.68611,0.11653,0,0.71402],"937":[0,0.68611,0.04835,0,0.8789],"945":[0,0.44444,0,0,0.76064],"946":[0.19444,0.69444,0.03403,0,0.65972],"947":[0.19444,0.44444,0.06389,0,0.59003],"948":[0,0.69444,0.03819,0,0.52222],"949":[0,0.44444,0,0,0.52882],"950":[0.19444,0.69444,0.06215,0,0.50833],"951":[0.19444,0.44444,0.03704,0,0.6],"952":[0,0.69444,0.03194,0,0.5618],"953":[0,0.44444,0,0,0.41204],"954":[0,0.44444,0,0,0.66759],"955":[0,0.69444,0,0,0.67083],"956":[0.19444,0.44444,0,0,0.70787],"957":[0,0.44444,0.06898,0,0.57685],"958":[0.19444,0.69444,0.03021,0,0.50833],"959":[0,0.44444,0,0,0.58472],"960":[0,0.44444,0.03704,0,0.68241],"961":[0.19444,0.44444,0,0,0.6118],"962":[0.09722,0.44444,0.07917,0,0.42361],"963":[0,0.44444,0.03704,0,0.68588],"964":[0,0.44444,0.13472,0,0.52083],"965":[0,0.44444,0.03704,0,0.63055],"966":[0.19444,0.44444,0,0,0.74722],"967":[0.19444,0.44444,0,0,0.71805],"968":[0.19444,0.69444,0.03704,0,0.75833],"969":[0,0.44444,0.03704,0,0.71782],"977":[0,0.69444,0,0,0.69155],"981":[0.19444,0.69444,0,0,0.7125],"982":[0,0.44444,0.03194,0,0.975],"1009":[0.19444,0.44444,0,0,0.6118],"1013":[0,0.44444,0,0,0.48333],"57649":[0,0.44444,0,0,0.39352],"57911":[0.19444,0.44444,0,0,0.43889]},"Math-Italic":{"32":[0,0,0,0,0.25],"48":[0,0.43056,0,0,0.5],"49":[0,0.43056,0,0,0.5],"50":[0,0.43056,0,0,0.5],"51":[0.19444,0.43056,0,0,0.5],"52":[0.19444,0.43056,0,0,0.5],"53":[0.19444,0.43056,0,0,0.5],"54":[0,0.64444,0,0,0.5],"55":[0.19444,0.43056,0,0,0.5],"56":[0,0.64444,0,0,0.5],"57":[0.19444,0.43056,0,0,0.5],"65":[0,0.68333,0,0.13889,0.75],"66":[0,0.68333,0.05017,0.08334,0.75851],"67":[0,0.68333,0.07153,0.08334,0.71472],"68":[0,0.68333,0.02778,0.05556,0.82792],"69":[0,0.68333,0.05764,0.08334,0.7382],"70":[0,0.68333,0.13889,0.08334,0.64306],"71":[0,0.68333,0,0.08334,0.78625],"72":[0,0.68333,0.08125,0.05556,0.83125],"73":[0,0.68333,0.07847,0.11111,0.43958],"74":[0,0.68333,0.09618,0.16667,0.55451],"75":[0,0.68333,0.07153,0.05556,0.84931],"76":[0,0.68333,0,0.02778,0.68056],"77":[0,0.68333,0.10903,0.08334,0.97014],"78":[0,0.68333,0.10903,0.08334,0.80347],"79":[0,0.68333,0.02778,0.08334,0.76278],"80":[0,0.68333,0.13889,0.08334,0.64201],"81":[0.19444,0.68333,0,0.08334,0.79056],"82":[0,0.68333,0.00773,0.08334,0.75929],"83":[0,0.68333,0.05764,0.08334,0.6132],"84":[0,0.68333,0.13889,0.08334,0.58438],"85":[0,0.68333,0.10903,0.02778,0.68278],"86":[0,0.68333,0.22222,0,0.58333],"87":[0,0.68333,0.13889,0,0.94445],"88":[0,0.68333,0.07847,0.08334,0.82847],"89":[0,0.68333,0.22222,0,0.58056],"90":[0,0.68333,0.07153,0.08334,0.68264],"97":[0,0.43056,0,0,0.52859],"98":[0,0.69444,0,0,0.42917],"99":[0,0.43056,0,0.05556,0.43276],"100":[0,0.69444,0,0.16667,0.52049],"101":[0,0.43056,0,0.05556,0.46563],"102":[0.19444,0.69444,0.10764,0.16667,0.48959],"103":[0.19444,0.43056,0.03588,0.02778,0.47697],"104":[0,0.69444,0,0,0.57616],"105":[0,0.65952,0,0,0.34451],"106":[0.19444,0.65952,0.05724,0,0.41181],"107":[0,0.69444,0.03148,0,0.5206],"108":[0,0.69444,0.01968,0.08334,0.29838],"109":[0,0.43056,0,0,0.87801],"110":[0,0.43056,0,0,0.60023],"111":[0,0.43056,0,0.05556,0.48472],"112":[0.19444,0.43056,0,0.08334,0.50313],"113":[0.19444,0.43056,0.03588,0.08334,0.44641],"114":[0,0.43056,0.02778,0.05556,0.45116],"115":[0,0.43056,0,0.05556,0.46875],"116":[0,0.61508,0,0.08334,0.36111],"117":[0,0.43056,0,0.02778,0.57246],"118":[0,0.43056,0.03588,0.02778,0.48472],"119":[0,0.43056,0.02691,0.08334,0.71592],"120":[0,0.43056,0,0.02778,0.57153],"121":[0.19444,0.43056,0.03588,0.05556,0.49028],"122":[0,0.43056,0.04398,0.05556,0.46505],"160":[0,0,0,0,0.25],"915":[0,0.68333,0.13889,0.08334,0.61528],"916":[0,0.68333,0,0.16667,0.83334],"920":[0,0.68333,0.02778,0.08334,0.76278],"923":[0,0.68333,0,0.16667,0.69445],"926":[0,0.68333,0.07569,0.08334,0.74236],"928":[0,0.68333,0.08125,0.05556,0.83125],"931":[0,0.68333,0.05764,0.08334,0.77986],"933":[0,0.68333,0.13889,0.05556,0.58333],"934":[0,0.68333,0,0.08334,0.66667],"936":[0,0.68333,0.11,0.05556,0.61222],"937":[0,0.68333,0.05017,0.08334,0.7724],"945":[0,0.43056,0.0037,0.02778,0.6397],"946":[0.19444,0.69444,0.05278,0.08334,0.56563],"947":[0.19444,0.43056,0.05556,0,0.51773],"948":[0,0.69444,0.03785,0.05556,0.44444],"949":[0,0.43056,0,0.08334,0.46632],"950":[0.19444,0.69444,0.07378,0.08334,0.4375],"951":[0.19444,0.43056,0.03588,0.05556,0.49653],"952":[0,0.69444,0.02778,0.08334,0.46944],"953":[0,0.43056,0,0.05556,0.35394],"954":[0,0.43056,0,0,0.57616],"955":[0,0.69444,0,0,0.58334],"956":[0.19444,0.43056,0,0.02778,0.60255],"957":[0,0.43056,0.06366,0.02778,0.49398],"958":[0.19444,0.69444,0.04601,0.11111,0.4375],"959":[0,0.43056,0,0.05556,0.48472],"960":[0,0.43056,0.03588,0,0.57003],"961":[0.19444,0.43056,0,0.08334,0.51702],"962":[0.09722,0.43056,0.07986,0.08334,0.36285],"963":[0,0.43056,0.03588,0,0.57141],"964":[0,0.43056,0.1132,0.02778,0.43715],"965":[0,0.43056,0.03588,0.02778,0.54028],"966":[0.19444,0.43056,0,0.08334,0.65417],"967":[0.19444,0.43056,0,0.05556,0.62569],"968":[0.19444,0.69444,0.03588,0.11111,0.65139],"969":[0,0.43056,0.03588,0,0.62245],"977":[0,0.69444,0,0.08334,0.59144],"981":[0.19444,0.69444,0,0.08334,0.59583],"982":[0,0.43056,0.02778,0,0.82813],"1009":[0.19444,0.43056,0,0.08334,0.51702],"1013":[0,0.43056,0,0.05556,0.4059],"57649":[0,0.43056,0,0.02778,0.32246],"57911":[0.19444,0.43056,0,0.08334,0.38403]},"SansSerif-Bold":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.36667],"34":[0,0.69444,0,0,0.55834],"35":[0.19444,0.69444,0,0,0.91667],"36":[0.05556,0.75,0,0,0.55],"37":[0.05556,0.75,0,0,1.02912],"38":[0,0.69444,0,0,0.83056],"39":[0,0.69444,0,0,0.30556],"40":[0.25,0.75,0,0,0.42778],"41":[0.25,0.75,0,0,0.42778],"42":[0,0.75,0,0,0.55],"43":[0.11667,0.61667,0,0,0.85556],"44":[0.10556,0.13056,0,0,0.30556],"45":[0,0.45833,0,0,0.36667],"46":[0,0.13056,0,0,0.30556],"47":[0.25,0.75,0,0,0.55],"48":[0,0.69444,0,0,0.55],"49":[0,0.69444,0,0,0.55],"50":[0,0.69444,0,0,0.55],"51":[0,0.69444,0,0,0.55],"52":[0,0.69444,0,0,0.55],"53":[0,0.69444,0,0,0.55],"54":[0,0.69444,0,0,0.55],"55":[0,0.69444,0,0,0.55],"56":[0,0.69444,0,0,0.55],"57":[0,0.69444,0,0,0.55],"58":[0,0.45833,0,0,0.30556],"59":[0.10556,0.45833,0,0,0.30556],"61":[-0.09375,0.40625,0,0,0.85556],"63":[0,0.69444,0,0,0.51945],"64":[0,0.69444,0,0,0.73334],"65":[0,0.69444,0,0,0.73334],"66":[0,0.69444,0,0,0.73334],"67":[0,0.69444,0,0,0.70278],"68":[0,0.69444,0,0,0.79445],"69":[0,0.69444,0,0,0.64167],"70":[0,0.69444,0,0,0.61111],"71":[0,0.69444,0,0,0.73334],"72":[0,0.69444,0,0,0.79445],"73":[0,0.69444,0,0,0.33056],"74":[0,0.69444,0,0,0.51945],"75":[0,0.69444,0,0,0.76389],"76":[0,0.69444,0,0,0.58056],"77":[0,0.69444,0,0,0.97778],"78":[0,0.69444,0,0,0.79445],"79":[0,0.69444,0,0,0.79445],"80":[0,0.69444,0,0,0.70278],"81":[0.10556,0.69444,0,0,0.79445],"82":[0,0.69444,0,0,0.70278],"83":[0,0.69444,0,0,0.61111],"84":[0,0.69444,0,0,0.73334],"85":[0,0.69444,0,0,0.76389],"86":[0,0.69444,0.01528,0,0.73334],"87":[0,0.69444,0.01528,0,1.03889],"88":[0,0.69444,0,0,0.73334],"89":[0,0.69444,0.0275,0,0.73334],"90":[0,0.69444,0,0,0.67223],"91":[0.25,0.75,0,0,0.34306],"93":[0.25,0.75,0,0,0.34306],"94":[0,0.69444,0,0,0.55],"95":[0.35,0.10833,0.03056,0,0.55],"97":[0,0.45833,0,0,0.525],"98":[0,0.69444,0,0,0.56111],"99":[0,0.45833,0,0,0.48889],"100":[0,0.69444,0,0,0.56111],"101":[0,0.45833,0,0,0.51111],"102":[0,0.69444,0.07639,0,0.33611],"103":[0.19444,0.45833,0.01528,0,0.55],"104":[0,0.69444,0,0,0.56111],"105":[0,0.69444,0,0,0.25556],"106":[0.19444,0.69444,0,0,0.28611],"107":[0,0.69444,0,0,0.53056],"108":[0,0.69444,0,0,0.25556],"109":[0,0.45833,0,0,0.86667],"110":[0,0.45833,0,0,0.56111],"111":[0,0.45833,0,0,0.55],"112":[0.19444,0.45833,0,0,0.56111],"113":[0.19444,0.45833,0,0,0.56111],"114":[0,0.45833,0.01528,0,0.37222],"115":[0,0.45833,0,0,0.42167],"116":[0,0.58929,0,0,0.40417],"117":[0,0.45833,0,0,0.56111],"118":[0,0.45833,0.01528,0,0.5],"119":[0,0.45833,0.01528,0,0.74445],"120":[0,0.45833,0,0,0.5],"121":[0.19444,0.45833,0.01528,0,0.5],"122":[0,0.45833,0,0,0.47639],"126":[0.35,0.34444,0,0,0.55],"160":[0,0,0,0,0.25],"168":[0,0.69444,0,0,0.55],"176":[0,0.69444,0,0,0.73334],"180":[0,0.69444,0,0,0.55],"184":[0.17014,0,0,0,0.48889],"305":[0,0.45833,0,0,0.25556],"567":[0.19444,0.45833,0,0,0.28611],"710":[0,0.69444,0,0,0.55],"711":[0,0.63542,0,0,0.55],"713":[0,0.63778,0,0,0.55],"728":[0,0.69444,0,0,0.55],"729":[0,0.69444,0,0,0.30556],"730":[0,0.69444,0,0,0.73334],"732":[0,0.69444,0,0,0.55],"733":[0,0.69444,0,0,0.55],"915":[0,0.69444,0,0,0.58056],"916":[0,0.69444,0,0,0.91667],"920":[0,0.69444,0,0,0.85556],"923":[0,0.69444,0,0,0.67223],"926":[0,0.69444,0,0,0.73334],"928":[0,0.69444,0,0,0.79445],"931":[0,0.69444,0,0,0.79445],"933":[0,0.69444,0,0,0.85556],"934":[0,0.69444,0,0,0.79445],"936":[0,0.69444,0,0,0.85556],"937":[0,0.69444,0,0,0.79445],"8211":[0,0.45833,0.03056,0,0.55],"8212":[0,0.45833,0.03056,0,1.10001],"8216":[0,0.69444,0,0,0.30556],"8217":[0,0.69444,0,0,0.30556],"8220":[0,0.69444,0,0,0.55834],"8221":[0,0.69444,0,0,0.55834]},"SansSerif-Italic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.05733,0,0.31945],"34":[0,0.69444,0.00316,0,0.5],"35":[0.19444,0.69444,0.05087,0,0.83334],"36":[0.05556,0.75,0.11156,0,0.5],"37":[0.05556,0.75,0.03126,0,0.83334],"38":[0,0.69444,0.03058,0,0.75834],"39":[0,0.69444,0.07816,0,0.27778],"40":[0.25,0.75,0.13164,0,0.38889],"41":[0.25,0.75,0.02536,0,0.38889],"42":[0,0.75,0.11775,0,0.5],"43":[0.08333,0.58333,0.02536,0,0.77778],"44":[0.125,0.08333,0,0,0.27778],"45":[0,0.44444,0.01946,0,0.33333],"46":[0,0.08333,0,0,0.27778],"47":[0.25,0.75,0.13164,0,0.5],"48":[0,0.65556,0.11156,0,0.5],"49":[0,0.65556,0.11156,0,0.5],"50":[0,0.65556,0.11156,0,0.5],"51":[0,0.65556,0.11156,0,0.5],"52":[0,0.65556,0.11156,0,0.5],"53":[0,0.65556,0.11156,0,0.5],"54":[0,0.65556,0.11156,0,0.5],"55":[0,0.65556,0.11156,0,0.5],"56":[0,0.65556,0.11156,0,0.5],"57":[0,0.65556,0.11156,0,0.5],"58":[0,0.44444,0.02502,0,0.27778],"59":[0.125,0.44444,0.02502,0,0.27778],"61":[-0.13,0.37,0.05087,0,0.77778],"63":[0,0.69444,0.11809,0,0.47222],"64":[0,0.69444,0.07555,0,0.66667],"65":[0,0.69444,0,0,0.66667],"66":[0,0.69444,0.08293,0,0.66667],"67":[0,0.69444,0.11983,0,0.63889],"68":[0,0.69444,0.07555,0,0.72223],"69":[0,0.69444,0.11983,0,0.59722],"70":[0,0.69444,0.13372,0,0.56945],"71":[0,0.69444,0.11983,0,0.66667],"72":[0,0.69444,0.08094,0,0.70834],"73":[0,0.69444,0.13372,0,0.27778],"74":[0,0.69444,0.08094,0,0.47222],"75":[0,0.69444,0.11983,0,0.69445],"76":[0,0.69444,0,0,0.54167],"77":[0,0.69444,0.08094,0,0.875],"78":[0,0.69444,0.08094,0,0.70834],"79":[0,0.69444,0.07555,0,0.73611],"80":[0,0.69444,0.08293,0,0.63889],"81":[0.125,0.69444,0.07555,0,0.73611],"82":[0,0.69444,0.08293,0,0.64584],"83":[0,0.69444,0.09205,0,0.55556],"84":[0,0.69444,0.13372,0,0.68056],"85":[0,0.69444,0.08094,0,0.6875],"86":[0,0.69444,0.1615,0,0.66667],"87":[0,0.69444,0.1615,0,0.94445],"88":[0,0.69444,0.13372,0,0.66667],"89":[0,0.69444,0.17261,0,0.66667],"90":[0,0.69444,0.11983,0,0.61111],"91":[0.25,0.75,0.15942,0,0.28889],"93":[0.25,0.75,0.08719,0,0.28889],"94":[0,0.69444,0.0799,0,0.5],"95":[0.35,0.09444,0.08616,0,0.5],"97":[0,0.44444,0.00981,0,0.48056],"98":[0,0.69444,0.03057,0,0.51667],"99":[0,0.44444,0.08336,0,0.44445],"100":[0,0.69444,0.09483,0,0.51667],"101":[0,0.44444,0.06778,0,0.44445],"102":[0,0.69444,0.21705,0,0.30556],"103":[0.19444,0.44444,0.10836,0,0.5],"104":[0,0.69444,0.01778,0,0.51667],"105":[0,0.67937,0.09718,0,0.23889],"106":[0.19444,0.67937,0.09162,0,0.26667],"107":[0,0.69444,0.08336,0,0.48889],"108":[0,0.69444,0.09483,0,0.23889],"109":[0,0.44444,0.01778,0,0.79445],"110":[0,0.44444,0.01778,0,0.51667],"111":[0,0.44444,0.06613,0,0.5],"112":[0.19444,0.44444,0.0389,0,0.51667],"113":[0.19444,0.44444,0.04169,0,0.51667],"114":[0,0.44444,0.10836,0,0.34167],"115":[0,0.44444,0.0778,0,0.38333],"116":[0,0.57143,0.07225,0,0.36111],"117":[0,0.44444,0.04169,0,0.51667],"118":[0,0.44444,0.10836,0,0.46111],"119":[0,0.44444,0.10836,0,0.68334],"120":[0,0.44444,0.09169,0,0.46111],"121":[0.19444,0.44444,0.10836,0,0.46111],"122":[0,0.44444,0.08752,0,0.43472],"126":[0.35,0.32659,0.08826,0,0.5],"160":[0,0,0,0,0.25],"168":[0,0.67937,0.06385,0,0.5],"176":[0,0.69444,0,0,0.73752],"184":[0.17014,0,0,0,0.44445],"305":[0,0.44444,0.04169,0,0.23889],"567":[0.19444,0.44444,0.04169,0,0.26667],"710":[0,0.69444,0.0799,0,0.5],"711":[0,0.63194,0.08432,0,0.5],"713":[0,0.60889,0.08776,0,0.5],"714":[0,0.69444,0.09205,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0.09483,0,0.5],"729":[0,0.67937,0.07774,0,0.27778],"730":[0,0.69444,0,0,0.73752],"732":[0,0.67659,0.08826,0,0.5],"733":[0,0.69444,0.09205,0,0.5],"915":[0,0.69444,0.13372,0,0.54167],"916":[0,0.69444,0,0,0.83334],"920":[0,0.69444,0.07555,0,0.77778],"923":[0,0.69444,0,0,0.61111],"926":[0,0.69444,0.12816,0,0.66667],"928":[0,0.69444,0.08094,0,0.70834],"931":[0,0.69444,0.11983,0,0.72222],"933":[0,0.69444,0.09031,0,0.77778],"934":[0,0.69444,0.04603,0,0.72222],"936":[0,0.69444,0.09031,0,0.77778],"937":[0,0.69444,0.08293,0,0.72222],"8211":[0,0.44444,0.08616,0,0.5],"8212":[0,0.44444,0.08616,0,1],"8216":[0,0.69444,0.07816,0,0.27778],"8217":[0,0.69444,0.07816,0,0.27778],"8220":[0,0.69444,0.14205,0,0.5],"8221":[0,0.69444,0.00316,0,0.5]},"SansSerif-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.31945],"34":[0,0.69444,0,0,0.5],"35":[0.19444,0.69444,0,0,0.83334],"36":[0.05556,0.75,0,0,0.5],"37":[0.05556,0.75,0,0,0.83334],"38":[0,0.69444,0,0,0.75834],"39":[0,0.69444,0,0,0.27778],"40":[0.25,0.75,0,0,0.38889],"41":[0.25,0.75,0,0,0.38889],"42":[0,0.75,0,0,0.5],"43":[0.08333,0.58333,0,0,0.77778],"44":[0.125,0.08333,0,0,0.27778],"45":[0,0.44444,0,0,0.33333],"46":[0,0.08333,0,0,0.27778],"47":[0.25,0.75,0,0,0.5],"48":[0,0.65556,0,0,0.5],"49":[0,0.65556,0,0,0.5],"50":[0,0.65556,0,0,0.5],"51":[0,0.65556,0,0,0.5],"52":[0,0.65556,0,0,0.5],"53":[0,0.65556,0,0,0.5],"54":[0,0.65556,0,0,0.5],"55":[0,0.65556,0,0,0.5],"56":[0,0.65556,0,0,0.5],"57":[0,0.65556,0,0,0.5],"58":[0,0.44444,0,0,0.27778],"59":[0.125,0.44444,0,0,0.27778],"61":[-0.13,0.37,0,0,0.77778],"63":[0,0.69444,0,0,0.47222],"64":[0,0.69444,0,0,0.66667],"65":[0,0.69444,0,0,0.66667],"66":[0,0.69444,0,0,0.66667],"67":[0,0.69444,0,0,0.63889],"68":[0,0.69444,0,0,0.72223],"69":[0,0.69444,0,0,0.59722],"70":[0,0.69444,0,0,0.56945],"71":[0,0.69444,0,0,0.66667],"72":[0,0.69444,0,0,0.70834],"73":[0,0.69444,0,0,0.27778],"74":[0,0.69444,0,0,0.47222],"75":[0,0.69444,0,0,0.69445],"76":[0,0.69444,0,0,0.54167],"77":[0,0.69444,0,0,0.875],"78":[0,0.69444,0,0,0.70834],"79":[0,0.69444,0,0,0.73611],"80":[0,0.69444,0,0,0.63889],"81":[0.125,0.69444,0,0,0.73611],"82":[0,0.69444,0,0,0.64584],"83":[0,0.69444,0,0,0.55556],"84":[0,0.69444,0,0,0.68056],"85":[0,0.69444,0,0,0.6875],"86":[0,0.69444,0.01389,0,0.66667],"87":[0,0.69444,0.01389,0,0.94445],"88":[0,0.69444,0,0,0.66667],"89":[0,0.69444,0.025,0,0.66667],"90":[0,0.69444,0,0,0.61111],"91":[0.25,0.75,0,0,0.28889],"93":[0.25,0.75,0,0,0.28889],"94":[0,0.69444,0,0,0.5],"95":[0.35,0.09444,0.02778,0,0.5],"97":[0,0.44444,0,0,0.48056],"98":[0,0.69444,0,0,0.51667],"99":[0,0.44444,0,0,0.44445],"100":[0,0.69444,0,0,0.51667],"101":[0,0.44444,0,0,0.44445],"102":[0,0.69444,0.06944,0,0.30556],"103":[0.19444,0.44444,0.01389,0,0.5],"104":[0,0.69444,0,0,0.51667],"105":[0,0.67937,0,0,0.23889],"106":[0.19444,0.67937,0,0,0.26667],"107":[0,0.69444,0,0,0.48889],"108":[0,0.69444,0,0,0.23889],"109":[0,0.44444,0,0,0.79445],"110":[0,0.44444,0,0,0.51667],"111":[0,0.44444,0,0,0.5],"112":[0.19444,0.44444,0,0,0.51667],"113":[0.19444,0.44444,0,0,0.51667],"114":[0,0.44444,0.01389,0,0.34167],"115":[0,0.44444,0,0,0.38333],"116":[0,0.57143,0,0,0.36111],"117":[0,0.44444,0,0,0.51667],"118":[0,0.44444,0.01389,0,0.46111],"119":[0,0.44444,0.01389,0,0.68334],"120":[0,0.44444,0,0,0.46111],"121":[0.19444,0.44444,0.01389,0,0.46111],"122":[0,0.44444,0,0,0.43472],"126":[0.35,0.32659,0,0,0.5],"160":[0,0,0,0,0.25],"168":[0,0.67937,0,0,0.5],"176":[0,0.69444,0,0,0.66667],"184":[0.17014,0,0,0,0.44445],"305":[0,0.44444,0,0,0.23889],"567":[0.19444,0.44444,0,0,0.26667],"710":[0,0.69444,0,0,0.5],"711":[0,0.63194,0,0,0.5],"713":[0,0.60889,0,0,0.5],"714":[0,0.69444,0,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0,0,0.5],"729":[0,0.67937,0,0,0.27778],"730":[0,0.69444,0,0,0.66667],"732":[0,0.67659,0,0,0.5],"733":[0,0.69444,0,0,0.5],"915":[0,0.69444,0,0,0.54167],"916":[0,0.69444,0,0,0.83334],"920":[0,0.69444,0,0,0.77778],"923":[0,0.69444,0,0,0.61111],"926":[0,0.69444,0,0,0.66667],"928":[0,0.69444,0,0,0.70834],"931":[0,0.69444,0,0,0.72222],"933":[0,0.69444,0,0,0.77778],"934":[0,0.69444,0,0,0.72222],"936":[0,0.69444,0,0,0.77778],"937":[0,0.69444,0,0,0.72222],"8211":[0,0.44444,0.02778,0,0.5],"8212":[0,0.44444,0.02778,0,1],"8216":[0,0.69444,0,0,0.27778],"8217":[0,0.69444,0,0,0.27778],"8220":[0,0.69444,0,0,0.5],"8221":[0,0.69444,0,0,0.5]},"Script-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.7,0.22925,0,0.80253],"66":[0,0.7,0.04087,0,0.90757],"67":[0,0.7,0.1689,0,0.66619],"68":[0,0.7,0.09371,0,0.77443],"69":[0,0.7,0.18583,0,0.56162],"70":[0,0.7,0.13634,0,0.89544],"71":[0,0.7,0.17322,0,0.60961],"72":[0,0.7,0.29694,0,0.96919],"73":[0,0.7,0.19189,0,0.80907],"74":[0.27778,0.7,0.19189,0,1.05159],"75":[0,0.7,0.31259,0,0.91364],"76":[0,0.7,0.19189,0,0.87373],"77":[0,0.7,0.15981,0,1.08031],"78":[0,0.7,0.3525,0,0.9015],"79":[0,0.7,0.08078,0,0.73787],"80":[0,0.7,0.08078,0,1.01262],"81":[0,0.7,0.03305,0,0.88282],"82":[0,0.7,0.06259,0,0.85],"83":[0,0.7,0.19189,0,0.86767],"84":[0,0.7,0.29087,0,0.74697],"85":[0,0.7,0.25815,0,0.79996],"86":[0,0.7,0.27523,0,0.62204],"87":[0,0.7,0.27523,0,0.80532],"88":[0,0.7,0.26006,0,0.94445],"89":[0,0.7,0.2939,0,0.70961],"90":[0,0.7,0.24037,0,0.8212],"160":[0,0,0,0,0.25]},"Size1-Regular":{"32":[0,0,0,0,0.25],"40":[0.35001,0.85,0,0,0.45834],"41":[0.35001,0.85,0,0,0.45834],"47":[0.35001,0.85,0,0,0.57778],"91":[0.35001,0.85,0,0,0.41667],"92":[0.35001,0.85,0,0,0.57778],"93":[0.35001,0.85,0,0,0.41667],"123":[0.35001,0.85,0,0,0.58334],"125":[0.35001,0.85,0,0,0.58334],"160":[0,0,0,0,0.25],"710":[0,0.72222,0,0,0.55556],"732":[0,0.72222,0,0,0.55556],"770":[0,0.72222,0,0,0.55556],"771":[0,0.72222,0,0,0.55556],"8214":[-0.00099,0.601,0,0,0.77778],"8593":[0.00001,0.6,0,0,0.66667],"8595":[0.00001,0.6,0,0,0.66667],"8657":[0.00001,0.6,0,0,0.77778],"8659":[0.00001,0.6,0,0,0.77778],"8719":[0.25001,0.75,0,0,0.94445],"8720":[0.25001,0.75,0,0,0.94445],"8721":[0.25001,0.75,0,0,1.05556],"8730":[0.35001,0.85,0,0,1],"8739":[-0.00599,0.606,0,0,0.33333],"8741":[-0.00599,0.606,0,0,0.55556],"8747":[0.30612,0.805,0.19445,0,0.47222],"8748":[0.306,0.805,0.19445,0,0.47222],"8749":[0.306,0.805,0.19445,0,0.47222],"8750":[0.30612,0.805,0.19445,0,0.47222],"8896":[0.25001,0.75,0,0,0.83334],"8897":[0.25001,0.75,0,0,0.83334],"8898":[0.25001,0.75,0,0,0.83334],"8899":[0.25001,0.75,0,0,0.83334],"8968":[0.35001,0.85,0,0,0.47222],"8969":[0.35001,0.85,0,0,0.47222],"8970":[0.35001,0.85,0,0,0.47222],"8971":[0.35001,0.85,0,0,0.47222],"9168":[-0.00099,0.601,0,0,0.66667],"10216":[0.35001,0.85,0,0,0.47222],"10217":[0.35001,0.85,0,0,0.47222],"10752":[0.25001,0.75,0,0,1.11111],"10753":[0.25001,0.75,0,0,1.11111],"10754":[0.25001,0.75,0,0,1.11111],"10756":[0.25001,0.75,0,0,0.83334],"10758":[0.25001,0.75,0,0,0.83334]},"Size2-Regular":{"32":[0,0,0,0,0.25],"40":[0.65002,1.15,0,0,0.59722],"41":[0.65002,1.15,0,0,0.59722],"47":[0.65002,1.15,0,0,0.81111],"91":[0.65002,1.15,0,0,0.47222],"92":[0.65002,1.15,0,0,0.81111],"93":[0.65002,1.15,0,0,0.47222],"123":[0.65002,1.15,0,0,0.66667],"125":[0.65002,1.15,0,0,0.66667],"160":[0,0,0,0,0.25],"710":[0,0.75,0,0,1],"732":[0,0.75,0,0,1],"770":[0,0.75,0,0,1],"771":[0,0.75,0,0,1],"8719":[0.55001,1.05,0,0,1.27778],"8720":[0.55001,1.05,0,0,1.27778],"8721":[0.55001,1.05,0,0,1.44445],"8730":[0.65002,1.15,0,0,1],"8747":[0.86225,1.36,0.44445,0,0.55556],"8748":[0.862,1.36,0.44445,0,0.55556],"8749":[0.862,1.36,0.44445,0,0.55556],"8750":[0.86225,1.36,0.44445,0,0.55556],"8896":[0.55001,1.05,0,0,1.11111],"8897":[0.55001,1.05,0,0,1.11111],"8898":[0.55001,1.05,0,0,1.11111],"8899":[0.55001,1.05,0,0,1.11111],"8968":[0.65002,1.15,0,0,0.52778],"8969":[0.65002,1.15,0,0,0.52778],"8970":[0.65002,1.15,0,0,0.52778],"8971":[0.65002,1.15,0,0,0.52778],"10216":[0.65002,1.15,0,0,0.61111],"10217":[0.65002,1.15,0,0,0.61111],"10752":[0.55001,1.05,0,0,1.51112],"10753":[0.55001,1.05,0,0,1.51112],"10754":[0.55001,1.05,0,0,1.51112],"10756":[0.55001,1.05,0,0,1.11111],"10758":[0.55001,1.05,0,0,1.11111]},"Size3-Regular":{"32":[0,0,0,0,0.25],"40":[0.95003,1.45,0,0,0.73611],"41":[0.95003,1.45,0,0,0.73611],"47":[0.95003,1.45,0,0,1.04445],"91":[0.95003,1.45,0,0,0.52778],"92":[0.95003,1.45,0,0,1.04445],"93":[0.95003,1.45,0,0,0.52778],"123":[0.95003,1.45,0,0,0.75],"125":[0.95003,1.45,0,0,0.75],"160":[0,0,0,0,0.25],"710":[0,0.75,0,0,1.44445],"732":[0,0.75,0,0,1.44445],"770":[0,0.75,0,0,1.44445],"771":[0,0.75,0,0,1.44445],"8730":[0.95003,1.45,0,0,1],"8968":[0.95003,1.45,0,0,0.58334],"8969":[0.95003,1.45,0,0,0.58334],"8970":[0.95003,1.45,0,0,0.58334],"8971":[0.95003,1.45,0,0,0.58334],"10216":[0.95003,1.45,0,0,0.75],"10217":[0.95003,1.45,0,0,0.75]},"Size4-Regular":{"32":[0,0,0,0,0.25],"40":[1.25003,1.75,0,0,0.79167],"41":[1.25003,1.75,0,0,0.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,0.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,0.58334],"123":[1.25003,1.75,0,0,0.80556],"125":[1.25003,1.75,0,0,0.80556],"160":[0,0,0,0,0.25],"710":[0,0.825,0,0,1.8889],"732":[0,0.825,0,0,1.8889],"770":[0,0.825,0,0,1.8889],"771":[0,0.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,0.63889],"8969":[1.25003,1.75,0,0,0.63889],"8970":[1.25003,1.75,0,0,0.63889],"8971":[1.25003,1.75,0,0,0.63889],"9115":[0.64502,1.155,0,0,0.875],"9116":[0.00001,0.6,0,0,0.875],"9117":[0.64502,1.155,0,0,0.875],"9118":[0.64502,1.155,0,0,0.875],"9119":[0.00001,0.6,0,0,0.875],"9120":[0.64502,1.155,0,0,0.875],"9121":[0.64502,1.155,0,0,0.66667],"9122":[-0.00099,0.601,0,0,0.66667],"9123":[0.64502,1.155,0,0,0.66667],"9124":[0.64502,1.155,0,0,0.66667],"9125":[-0.00099,0.601,0,0,0.66667],"9126":[0.64502,1.155,0,0,0.66667],"9127":[0.00001,0.9,0,0,0.88889],"9128":[0.65002,1.15,0,0,0.88889],"9129":[0.90001,0,0,0,0.88889],"9130":[0,0.3,0,0,0.88889],"9131":[0.00001,0.9,0,0,0.88889],"9132":[0.65002,1.15,0,0,0.88889],"9133":[0.90001,0,0,0,0.88889],"9143":[0.88502,0.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,0.80556],"10217":[1.25003,1.75,0,0,0.80556],"57344":[-0.00499,0.605,0,0,1.05556],"57345":[-0.00499,0.605,0,0,1.05556],"57680":[0,0.12,0,0,0.45],"57681":[0,0.12,0,0,0.45],"57682":[0,0.12,0,0,0.45],"57683":[0,0.12,0,0,0.45]},"Typewriter-Regular":{"32":[0,0,0,0,0.525],"33":[0,0.61111,0,0,0.525],"34":[0,0.61111,0,0,0.525],"35":[0,0.61111,0,0,0.525],"36":[0.08333,0.69444,0,0,0.525],"37":[0.08333,0.69444,0,0,0.525],"38":[0,0.61111,0,0,0.525],"39":[0,0.61111,0,0,0.525],"40":[0.08333,0.69444,0,0,0.525],"41":[0.08333,0.69444,0,0,0.525],"42":[0,0.52083,0,0,0.525],"43":[-0.08056,0.53055,0,0,0.525],"44":[0.13889,0.125,0,0,0.525],"45":[-0.08056,0.53055,0,0,0.525],"46":[0,0.125,0,0,0.525],"47":[0.08333,0.69444,0,0,0.525],"48":[0,0.61111,0,0,0.525],"49":[0,0.61111,0,0,0.525],"50":[0,0.61111,0,0,0.525],"51":[0,0.61111,0,0,0.525],"52":[0,0.61111,0,0,0.525],"53":[0,0.61111,0,0,0.525],"54":[0,0.61111,0,0,0.525],"55":[0,0.61111,0,0,0.525],"56":[0,0.61111,0,0,0.525],"57":[0,0.61111,0,0,0.525],"58":[0,0.43056,0,0,0.525],"59":[0.13889,0.43056,0,0,0.525],"60":[-0.05556,0.55556,0,0,0.525],"61":[-0.19549,0.41562,0,0,0.525],"62":[-0.05556,0.55556,0,0,0.525],"63":[0,0.61111,0,0,0.525],"64":[0,0.61111,0,0,0.525],"65":[0,0.61111,0,0,0.525],"66":[0,0.61111,0,0,0.525],"67":[0,0.61111,0,0,0.525],"68":[0,0.61111,0,0,0.525],"69":[0,0.61111,0,0,0.525],"70":[0,0.61111,0,0,0.525],"71":[0,0.61111,0,0,0.525],"72":[0,0.61111,0,0,0.525],"73":[0,0.61111,0,0,0.525],"74":[0,0.61111,0,0,0.525],"75":[0,0.61111,0,0,0.525],"76":[0,0.61111,0,0,0.525],"77":[0,0.61111,0,0,0.525],"78":[0,0.61111,0,0,0.525],"79":[0,0.61111,0,0,0.525],"80":[0,0.61111,0,0,0.525],"81":[0.13889,0.61111,0,0,0.525],"82":[0,0.61111,0,0,0.525],"83":[0,0.61111,0,0,0.525],"84":[0,0.61111,0,0,0.525],"85":[0,0.61111,0,0,0.525],"86":[0,0.61111,0,0,0.525],"87":[0,0.61111,0,0,0.525],"88":[0,0.61111,0,0,0.525],"89":[0,0.61111,0,0,0.525],"90":[0,0.61111,0,0,0.525],"91":[0.08333,0.69444,0,0,0.525],"92":[0.08333,0.69444,0,0,0.525],"93":[0.08333,0.69444,0,0,0.525],"94":[0,0.61111,0,0,0.525],"95":[0.09514,0,0,0,0.525],"96":[0,0.61111,0,0,0.525],"97":[0,0.43056,0,0,0.525],"98":[0,0.61111,0,0,0.525],"99":[0,0.43056,0,0,0.525],"100":[0,0.61111,0,0,0.525],"101":[0,0.43056,0,0,0.525],"102":[0,0.61111,0,0,0.525],"103":[0.22222,0.43056,0,0,0.525],"104":[0,0.61111,0,0,0.525],"105":[0,0.61111,0,0,0.525],"106":[0.22222,0.61111,0,0,0.525],"107":[0,0.61111,0,0,0.525],"108":[0,0.61111,0,0,0.525],"109":[0,0.43056,0,0,0.525],"110":[0,0.43056,0,0,0.525],"111":[0,0.43056,0,0,0.525],"112":[0.22222,0.43056,0,0,0.525],"113":[0.22222,0.43056,0,0,0.525],"114":[0,0.43056,0,0,0.525],"115":[0,0.43056,0,0,0.525],"116":[0,0.55358,0,0,0.525],"117":[0,0.43056,0,0,0.525],"118":[0,0.43056,0,0,0.525],"119":[0,0.43056,0,0,0.525],"120":[0,0.43056,0,0,0.525],"121":[0.22222,0.43056,0,0,0.525],"122":[0,0.43056,0,0,0.525],"123":[0.08333,0.69444,0,0,0.525],"124":[0.08333,0.69444,0,0,0.525],"125":[0.08333,0.69444,0,0,0.525],"126":[0,0.61111,0,0,0.525],"127":[0,0.61111,0,0,0.525],"160":[0,0,0,0,0.525],"176":[0,0.61111,0,0,0.525],"184":[0.19445,0,0,0,0.525],"305":[0,0.43056,0,0,0.525],"567":[0.22222,0.43056,0,0,0.525],"711":[0,0.56597,0,0,0.525],"713":[0,0.56555,0,0,0.525],"714":[0,0.61111,0,0,0.525],"715":[0,0.61111,0,0,0.525],"728":[0,0.61111,0,0,0.525],"730":[0,0.61111,0,0,0.525],"770":[0,0.61111,0,0,0.525],"771":[0,0.61111,0,0,0.525],"776":[0,0.61111,0,0,0.525],"915":[0,0.61111,0,0,0.525],"916":[0,0.61111,0,0,0.525],"920":[0,0.61111,0,0,0.525],"923":[0,0.61111,0,0,0.525],"926":[0,0.61111,0,0,0.525],"928":[0,0.61111,0,0,0.525],"931":[0,0.61111,0,0,0.525],"933":[0,0.61111,0,0,0.525],"934":[0,0.61111,0,0,0.525],"936":[0,0.61111,0,0,0.525],"937":[0,0.61111,0,0,0.525],"8216":[0,0.61111,0,0,0.525],"8217":[0,0.61111,0,0,0.525],"8242":[0,0.61111,0,0,0.525],"9251":[0.11111,0.21944,0,0,0.525]}},TKe={slant:[0.25,0.25,0.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[0.431,0.431,0.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[0.677,0.732,0.925],num2:[0.394,0.384,0.387],num3:[0.444,0.471,0.504],denom1:[0.686,0.752,1.025],denom2:[0.345,0.344,0.532],sup1:[0.413,0.503,0.504],sup2:[0.363,0.431,0.404],sup3:[0.289,0.286,0.294],sub1:[0.15,0.143,0.2],sub2:[0.247,0.286,0.4],supDrop:[0.386,0.353,0.494],subDrop:[0.05,0.071,0.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[0.25,0.25,0.25],defaultRuleThickness:[0.04,0.049,0.049],bigOpSpacing1:[0.111,0.111,0.111],bigOpSpacing2:[0.166,0.166,0.166],bigOpSpacing3:[0.2,0.2,0.2],bigOpSpacing4:[0.6,0.611,0.611],bigOpSpacing5:[0.1,0.143,0.143],sqrtRuleThickness:[0.04,0.04,0.04],ptPerEm:[10,10,10],doubleRuleSep:[0.2,0.2,0.2],arrayRuleWidth:[0.04,0.04,0.04],fboxsep:[0.3,0.3,0.3],fboxrule:[0.04,0.04,0.04]},hbr={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};xKe={};gf={math:{},text:{}};Ne($e,lt,hr,"≡","\\equiv",!0);Ne($e,lt,hr,"≺","\\prec",!0);Ne($e,lt,hr,"≻","\\succ",!0);Ne($e,lt,hr,"∼","\\sim",!0);Ne($e,lt,hr,"⊥","\\perp");Ne($e,lt,hr,"⪯","\\preceq",!0);Ne($e,lt,hr,"⪰","\\succeq",!0);Ne($e,lt,hr,"≃","\\simeq",!0);Ne($e,lt,hr,"∣","\\mid",!0);Ne($e,lt,hr,"≪","\\ll",!0);Ne($e,lt,hr,"≫","\\gg",!0);Ne($e,lt,hr,"≍","\\asymp",!0);Ne($e,lt,hr,"∥","\\parallel");Ne($e,lt,hr,"⋈","\\bowtie",!0);Ne($e,lt,hr,"⌣","\\smile",!0);Ne($e,lt,hr,"⊑","\\sqsubseteq",!0);Ne($e,lt,hr,"⊒","\\sqsupseteq",!0);Ne($e,lt,hr,"≐","\\doteq",!0);Ne($e,lt,hr,"⌢","\\frown",!0);Ne($e,lt,hr,"∋","\\ni",!0);Ne($e,lt,hr,"∝","\\propto",!0);Ne($e,lt,hr,"⊢","\\vdash",!0);Ne($e,lt,hr,"⊣","\\dashv",!0);Ne($e,lt,hr,"∋","\\owns");Ne($e,lt,Ire,".","\\ldotp");Ne($e,lt,Ire,"⋅","\\cdotp");Ne($e,lt,Ire,"⋅","·");Ne(Ci,lt,Mr,"⋅","·");Ne($e,lt,Mr,"#","\\#");Ne(Ci,lt,Mr,"#","\\#");Ne($e,lt,Mr,"&","\\&");Ne(Ci,lt,Mr,"&","\\&");Ne($e,lt,Mr,"ℵ","\\aleph",!0);Ne($e,lt,Mr,"∀","\\forall",!0);Ne($e,lt,Mr,"ℏ","\\hbar",!0);Ne($e,lt,Mr,"∃","\\exists",!0);Ne($e,lt,Mr,"∇","\\nabla",!0);Ne($e,lt,Mr,"♭","\\flat",!0);Ne($e,lt,Mr,"ℓ","\\ell",!0);Ne($e,lt,Mr,"♮","\\natural",!0);Ne($e,lt,Mr,"♣","\\clubsuit",!0);Ne($e,lt,Mr,"℘","\\wp",!0);Ne($e,lt,Mr,"♯","\\sharp",!0);Ne($e,lt,Mr,"♢","\\diamondsuit",!0);Ne($e,lt,Mr,"ℜ","\\Re",!0);Ne($e,lt,Mr,"♡","\\heartsuit",!0);Ne($e,lt,Mr,"ℑ","\\Im",!0);Ne($e,lt,Mr,"♠","\\spadesuit",!0);Ne($e,lt,Mr,"§","\\S",!0);Ne(Ci,lt,Mr,"§","\\S");Ne($e,lt,Mr,"¶","\\P",!0);Ne(Ci,lt,Mr,"¶","\\P");Ne($e,lt,Mr,"†","\\dag");Ne(Ci,lt,Mr,"†","\\dag");Ne(Ci,lt,Mr,"†","\\textdagger");Ne($e,lt,Mr,"‡","\\ddag");Ne(Ci,lt,Mr,"‡","\\ddag");Ne(Ci,lt,Mr,"‡","\\textdaggerdbl");Ne($e,lt,dv,"⎱","\\rmoustache",!0);Ne($e,lt,UE,"⎰","\\lmoustache",!0);Ne($e,lt,dv,"⟯","\\rgroup",!0);Ne($e,lt,UE,"⟮","\\lgroup",!0);Ne($e,lt,Xa,"∓","\\mp",!0);Ne($e,lt,Xa,"⊖","\\ominus",!0);Ne($e,lt,Xa,"⊎","\\uplus",!0);Ne($e,lt,Xa,"⊓","\\sqcap",!0);Ne($e,lt,Xa,"∗","\\ast");Ne($e,lt,Xa,"⊔","\\sqcup",!0);Ne($e,lt,Xa,"◯","\\bigcirc",!0);Ne($e,lt,Xa,"∙","\\bullet",!0);Ne($e,lt,Xa,"‡","\\ddagger");Ne($e,lt,Xa,"≀","\\wr",!0);Ne($e,lt,Xa,"⨿","\\amalg");Ne($e,lt,Xa,"&","\\And");Ne($e,lt,hr,"⟵","\\longleftarrow",!0);Ne($e,lt,hr,"⇐","\\Leftarrow",!0);Ne($e,lt,hr,"⟸","\\Longleftarrow",!0);Ne($e,lt,hr,"⟶","\\longrightarrow",!0);Ne($e,lt,hr,"⇒","\\Rightarrow",!0);Ne($e,lt,hr,"⟹","\\Longrightarrow",!0);Ne($e,lt,hr,"↔","\\leftrightarrow",!0);Ne($e,lt,hr,"⟷","\\longleftrightarrow",!0);Ne($e,lt,hr,"⇔","\\Leftrightarrow",!0);Ne($e,lt,hr,"⟺","\\Longleftrightarrow",!0);Ne($e,lt,hr,"↦","\\mapsto",!0);Ne($e,lt,hr,"⟼","\\longmapsto",!0);Ne($e,lt,hr,"↗","\\nearrow",!0);Ne($e,lt,hr,"↩","\\hookleftarrow",!0);Ne($e,lt,hr,"↪","\\hookrightarrow",!0);Ne($e,lt,hr,"↘","\\searrow",!0);Ne($e,lt,hr,"↼","\\leftharpoonup",!0);Ne($e,lt,hr,"⇀","\\rightharpoonup",!0);Ne($e,lt,hr,"↙","\\swarrow",!0);Ne($e,lt,hr,"↽","\\leftharpoondown",!0);Ne($e,lt,hr,"⇁","\\rightharpoondown",!0);Ne($e,lt,hr,"↖","\\nwarrow",!0);Ne($e,lt,hr,"⇌","\\rightleftharpoons",!0);Ne($e,sr,hr,"≮","\\nless",!0);Ne($e,sr,hr,"","\\@nleqslant");Ne($e,sr,hr,"","\\@nleqq");Ne($e,sr,hr,"⪇","\\lneq",!0);Ne($e,sr,hr,"≨","\\lneqq",!0);Ne($e,sr,hr,"","\\@lvertneqq");Ne($e,sr,hr,"⋦","\\lnsim",!0);Ne($e,sr,hr,"⪉","\\lnapprox",!0);Ne($e,sr,hr,"⊀","\\nprec",!0);Ne($e,sr,hr,"⋠","\\npreceq",!0);Ne($e,sr,hr,"⋨","\\precnsim",!0);Ne($e,sr,hr,"⪹","\\precnapprox",!0);Ne($e,sr,hr,"≁","\\nsim",!0);Ne($e,sr,hr,"","\\@nshortmid");Ne($e,sr,hr,"∤","\\nmid",!0);Ne($e,sr,hr,"⊬","\\nvdash",!0);Ne($e,sr,hr,"⊭","\\nvDash",!0);Ne($e,sr,hr,"⋪","\\ntriangleleft");Ne($e,sr,hr,"⋬","\\ntrianglelefteq",!0);Ne($e,sr,hr,"⊊","\\subsetneq",!0);Ne($e,sr,hr,"","\\@varsubsetneq");Ne($e,sr,hr,"⫋","\\subsetneqq",!0);Ne($e,sr,hr,"","\\@varsubsetneqq");Ne($e,sr,hr,"≯","\\ngtr",!0);Ne($e,sr,hr,"","\\@ngeqslant");Ne($e,sr,hr,"","\\@ngeqq");Ne($e,sr,hr,"⪈","\\gneq",!0);Ne($e,sr,hr,"≩","\\gneqq",!0);Ne($e,sr,hr,"","\\@gvertneqq");Ne($e,sr,hr,"⋧","\\gnsim",!0);Ne($e,sr,hr,"⪊","\\gnapprox",!0);Ne($e,sr,hr,"⊁","\\nsucc",!0);Ne($e,sr,hr,"⋡","\\nsucceq",!0);Ne($e,sr,hr,"⋩","\\succnsim",!0);Ne($e,sr,hr,"⪺","\\succnapprox",!0);Ne($e,sr,hr,"≆","\\ncong",!0);Ne($e,sr,hr,"","\\@nshortparallel");Ne($e,sr,hr,"∦","\\nparallel",!0);Ne($e,sr,hr,"⊯","\\nVDash",!0);Ne($e,sr,hr,"⋫","\\ntriangleright");Ne($e,sr,hr,"⋭","\\ntrianglerighteq",!0);Ne($e,sr,hr,"","\\@nsupseteqq");Ne($e,sr,hr,"⊋","\\supsetneq",!0);Ne($e,sr,hr,"","\\@varsupsetneq");Ne($e,sr,hr,"⫌","\\supsetneqq",!0);Ne($e,sr,hr,"","\\@varsupsetneqq");Ne($e,sr,hr,"⊮","\\nVdash",!0);Ne($e,sr,hr,"⪵","\\precneqq",!0);Ne($e,sr,hr,"⪶","\\succneqq",!0);Ne($e,sr,hr,"","\\@nsubseteqq");Ne($e,sr,Xa,"⊴","\\unlhd");Ne($e,sr,Xa,"⊵","\\unrhd");Ne($e,sr,hr,"↚","\\nleftarrow",!0);Ne($e,sr,hr,"↛","\\nrightarrow",!0);Ne($e,sr,hr,"⇍","\\nLeftarrow",!0);Ne($e,sr,hr,"⇏","\\nRightarrow",!0);Ne($e,sr,hr,"↮","\\nleftrightarrow",!0);Ne($e,sr,hr,"⇎","\\nLeftrightarrow",!0);Ne($e,sr,hr,"△","\\vartriangle");Ne($e,sr,Mr,"ℏ","\\hslash");Ne($e,sr,Mr,"▽","\\triangledown");Ne($e,sr,Mr,"◊","\\lozenge");Ne($e,sr,Mr,"Ⓢ","\\circledS");Ne($e,sr,Mr,"®","\\circledR");Ne(Ci,sr,Mr,"®","\\circledR");Ne($e,sr,Mr,"∡","\\measuredangle",!0);Ne($e,sr,Mr,"∄","\\nexists");Ne($e,sr,Mr,"℧","\\mho");Ne($e,sr,Mr,"Ⅎ","\\Finv",!0);Ne($e,sr,Mr,"⅁","\\Game",!0);Ne($e,sr,Mr,"‵","\\backprime");Ne($e,sr,Mr,"▲","\\blacktriangle");Ne($e,sr,Mr,"▼","\\blacktriangledown");Ne($e,sr,Mr,"■","\\blacksquare");Ne($e,sr,Mr,"⧫","\\blacklozenge");Ne($e,sr,Mr,"★","\\bigstar");Ne($e,sr,Mr,"∢","\\sphericalangle",!0);Ne($e,sr,Mr,"∁","\\complement",!0);Ne($e,sr,Mr,"ð","\\eth",!0);Ne(Ci,lt,Mr,"ð","ð");Ne($e,sr,Mr,"╱","\\diagup");Ne($e,sr,Mr,"╲","\\diagdown");Ne($e,sr,Mr,"□","\\square");Ne($e,sr,Mr,"□","\\Box");Ne($e,sr,Mr,"◊","\\Diamond");Ne($e,sr,Mr,"¥","\\yen",!0);Ne(Ci,sr,Mr,"¥","\\yen",!0);Ne($e,sr,Mr,"✓","\\checkmark",!0);Ne(Ci,sr,Mr,"✓","\\checkmark");Ne($e,sr,Mr,"ℶ","\\beth",!0);Ne($e,sr,Mr,"ℸ","\\daleth",!0);Ne($e,sr,Mr,"ℷ","\\gimel",!0);Ne($e,sr,Mr,"ϝ","\\digamma",!0);Ne($e,sr,Mr,"ϰ","\\varkappa");Ne($e,sr,UE,"┌","\\@ulcorner",!0);Ne($e,sr,dv,"┐","\\@urcorner",!0);Ne($e,sr,UE,"└","\\@llcorner",!0);Ne($e,sr,dv,"┘","\\@lrcorner",!0);Ne($e,sr,hr,"≦","\\leqq",!0);Ne($e,sr,hr,"⩽","\\leqslant",!0);Ne($e,sr,hr,"⪕","\\eqslantless",!0);Ne($e,sr,hr,"≲","\\lesssim",!0);Ne($e,sr,hr,"⪅","\\lessapprox",!0);Ne($e,sr,hr,"≊","\\approxeq",!0);Ne($e,sr,Xa,"⋖","\\lessdot");Ne($e,sr,hr,"⋘","\\lll",!0);Ne($e,sr,hr,"≶","\\lessgtr",!0);Ne($e,sr,hr,"⋚","\\lesseqgtr",!0);Ne($e,sr,hr,"⪋","\\lesseqqgtr",!0);Ne($e,sr,hr,"≑","\\doteqdot");Ne($e,sr,hr,"≓","\\risingdotseq",!0);Ne($e,sr,hr,"≒","\\fallingdotseq",!0);Ne($e,sr,hr,"∽","\\backsim",!0);Ne($e,sr,hr,"⋍","\\backsimeq",!0);Ne($e,sr,hr,"⫅","\\subseteqq",!0);Ne($e,sr,hr,"⋐","\\Subset",!0);Ne($e,sr,hr,"⊏","\\sqsubset",!0);Ne($e,sr,hr,"≼","\\preccurlyeq",!0);Ne($e,sr,hr,"⋞","\\curlyeqprec",!0);Ne($e,sr,hr,"≾","\\precsim",!0);Ne($e,sr,hr,"⪷","\\precapprox",!0);Ne($e,sr,hr,"⊲","\\vartriangleleft");Ne($e,sr,hr,"⊴","\\trianglelefteq");Ne($e,sr,hr,"⊨","\\vDash",!0);Ne($e,sr,hr,"⊪","\\Vvdash",!0);Ne($e,sr,hr,"⌣","\\smallsmile");Ne($e,sr,hr,"⌢","\\smallfrown");Ne($e,sr,hr,"≏","\\bumpeq",!0);Ne($e,sr,hr,"≎","\\Bumpeq",!0);Ne($e,sr,hr,"≧","\\geqq",!0);Ne($e,sr,hr,"⩾","\\geqslant",!0);Ne($e,sr,hr,"⪖","\\eqslantgtr",!0);Ne($e,sr,hr,"≳","\\gtrsim",!0);Ne($e,sr,hr,"⪆","\\gtrapprox",!0);Ne($e,sr,Xa,"⋗","\\gtrdot");Ne($e,sr,hr,"⋙","\\ggg",!0);Ne($e,sr,hr,"≷","\\gtrless",!0);Ne($e,sr,hr,"⋛","\\gtreqless",!0);Ne($e,sr,hr,"⪌","\\gtreqqless",!0);Ne($e,sr,hr,"≖","\\eqcirc",!0);Ne($e,sr,hr,"≗","\\circeq",!0);Ne($e,sr,hr,"≜","\\triangleq",!0);Ne($e,sr,hr,"∼","\\thicksim");Ne($e,sr,hr,"≈","\\thickapprox");Ne($e,sr,hr,"⫆","\\supseteqq",!0);Ne($e,sr,hr,"⋑","\\Supset",!0);Ne($e,sr,hr,"⊐","\\sqsupset",!0);Ne($e,sr,hr,"≽","\\succcurlyeq",!0);Ne($e,sr,hr,"⋟","\\curlyeqsucc",!0);Ne($e,sr,hr,"≿","\\succsim",!0);Ne($e,sr,hr,"⪸","\\succapprox",!0);Ne($e,sr,hr,"⊳","\\vartriangleright");Ne($e,sr,hr,"⊵","\\trianglerighteq");Ne($e,sr,hr,"⊩","\\Vdash",!0);Ne($e,sr,hr,"∣","\\shortmid");Ne($e,sr,hr,"∥","\\shortparallel");Ne($e,sr,hr,"≬","\\between",!0);Ne($e,sr,hr,"⋔","\\pitchfork",!0);Ne($e,sr,hr,"∝","\\varpropto");Ne($e,sr,hr,"◀","\\blacktriangleleft");Ne($e,sr,hr,"∴","\\therefore",!0);Ne($e,sr,hr,"∍","\\backepsilon");Ne($e,sr,hr,"▶","\\blacktriangleright");Ne($e,sr,hr,"∵","\\because",!0);Ne($e,sr,hr,"⋘","\\llless");Ne($e,sr,hr,"⋙","\\gggtr");Ne($e,sr,Xa,"⊲","\\lhd");Ne($e,sr,Xa,"⊳","\\rhd");Ne($e,sr,hr,"≂","\\eqsim",!0);Ne($e,lt,hr,"⋈","\\Join");Ne($e,sr,hr,"≑","\\Doteq",!0);Ne($e,sr,Xa,"∔","\\dotplus",!0);Ne($e,sr,Xa,"∖","\\smallsetminus");Ne($e,sr,Xa,"⋒","\\Cap",!0);Ne($e,sr,Xa,"⋓","\\Cup",!0);Ne($e,sr,Xa,"⩞","\\doublebarwedge",!0);Ne($e,sr,Xa,"⊟","\\boxminus",!0);Ne($e,sr,Xa,"⊞","\\boxplus",!0);Ne($e,sr,Xa,"⋇","\\divideontimes",!0);Ne($e,sr,Xa,"⋉","\\ltimes",!0);Ne($e,sr,Xa,"⋊","\\rtimes",!0);Ne($e,sr,Xa,"⋋","\\leftthreetimes",!0);Ne($e,sr,Xa,"⋌","\\rightthreetimes",!0);Ne($e,sr,Xa,"⋏","\\curlywedge",!0);Ne($e,sr,Xa,"⋎","\\curlyvee",!0);Ne($e,sr,Xa,"⊝","\\circleddash",!0);Ne($e,sr,Xa,"⊛","\\circledast",!0);Ne($e,sr,Xa,"⋅","\\centerdot");Ne($e,sr,Xa,"⊺","\\intercal",!0);Ne($e,sr,Xa,"⋒","\\doublecap");Ne($e,sr,Xa,"⋓","\\doublecup");Ne($e,sr,Xa,"⊠","\\boxtimes",!0);Ne($e,sr,hr,"⇢","\\dashrightarrow",!0);Ne($e,sr,hr,"⇠","\\dashleftarrow",!0);Ne($e,sr,hr,"⇇","\\leftleftarrows",!0);Ne($e,sr,hr,"⇆","\\leftrightarrows",!0);Ne($e,sr,hr,"⇚","\\Lleftarrow",!0);Ne($e,sr,hr,"↞","\\twoheadleftarrow",!0);Ne($e,sr,hr,"↢","\\leftarrowtail",!0);Ne($e,sr,hr,"↫","\\looparrowleft",!0);Ne($e,sr,hr,"⇋","\\leftrightharpoons",!0);Ne($e,sr,hr,"↶","\\curvearrowleft",!0);Ne($e,sr,hr,"↺","\\circlearrowleft",!0);Ne($e,sr,hr,"↰","\\Lsh",!0);Ne($e,sr,hr,"⇈","\\upuparrows",!0);Ne($e,sr,hr,"↿","\\upharpoonleft",!0);Ne($e,sr,hr,"⇃","\\downharpoonleft",!0);Ne($e,lt,hr,"⊶","\\origof",!0);Ne($e,lt,hr,"⊷","\\imageof",!0);Ne($e,sr,hr,"⊸","\\multimap",!0);Ne($e,sr,hr,"↭","\\leftrightsquigarrow",!0);Ne($e,sr,hr,"⇉","\\rightrightarrows",!0);Ne($e,sr,hr,"⇄","\\rightleftarrows",!0);Ne($e,sr,hr,"↠","\\twoheadrightarrow",!0);Ne($e,sr,hr,"↣","\\rightarrowtail",!0);Ne($e,sr,hr,"↬","\\looparrowright",!0);Ne($e,sr,hr,"↷","\\curvearrowright",!0);Ne($e,sr,hr,"↻","\\circlearrowright",!0);Ne($e,sr,hr,"↱","\\Rsh",!0);Ne($e,sr,hr,"⇊","\\downdownarrows",!0);Ne($e,sr,hr,"↾","\\upharpoonright",!0);Ne($e,sr,hr,"⇂","\\downharpoonright",!0);Ne($e,sr,hr,"⇝","\\rightsquigarrow",!0);Ne($e,sr,hr,"⇝","\\leadsto");Ne($e,sr,hr,"⇛","\\Rrightarrow",!0);Ne($e,sr,hr,"↾","\\restriction");Ne($e,lt,Mr,"‘","`");Ne($e,lt,Mr,"$","\\$");Ne(Ci,lt,Mr,"$","\\$");Ne(Ci,lt,Mr,"$","\\textdollar");Ne($e,lt,Mr,"%","\\%");Ne(Ci,lt,Mr,"%","\\%");Ne($e,lt,Mr,"_","\\_");Ne(Ci,lt,Mr,"_","\\_");Ne(Ci,lt,Mr,"_","\\textunderscore");Ne($e,lt,Mr,"∠","\\angle",!0);Ne($e,lt,Mr,"∞","\\infty",!0);Ne($e,lt,Mr,"′","\\prime");Ne($e,lt,Mr,"△","\\triangle");Ne($e,lt,Mr,"Γ","\\Gamma",!0);Ne($e,lt,Mr,"Δ","\\Delta",!0);Ne($e,lt,Mr,"Θ","\\Theta",!0);Ne($e,lt,Mr,"Λ","\\Lambda",!0);Ne($e,lt,Mr,"Ξ","\\Xi",!0);Ne($e,lt,Mr,"Π","\\Pi",!0);Ne($e,lt,Mr,"Σ","\\Sigma",!0);Ne($e,lt,Mr,"Υ","\\Upsilon",!0);Ne($e,lt,Mr,"Φ","\\Phi",!0);Ne($e,lt,Mr,"Ψ","\\Psi",!0);Ne($e,lt,Mr,"Ω","\\Omega",!0);Ne($e,lt,Mr,"A","Α");Ne($e,lt,Mr,"B","Β");Ne($e,lt,Mr,"E","Ε");Ne($e,lt,Mr,"Z","Ζ");Ne($e,lt,Mr,"H","Η");Ne($e,lt,Mr,"I","Ι");Ne($e,lt,Mr,"K","Κ");Ne($e,lt,Mr,"M","Μ");Ne($e,lt,Mr,"N","Ν");Ne($e,lt,Mr,"O","Ο");Ne($e,lt,Mr,"P","Ρ");Ne($e,lt,Mr,"T","Τ");Ne($e,lt,Mr,"X","Χ");Ne($e,lt,Mr,"¬","\\neg",!0);Ne($e,lt,Mr,"¬","\\lnot");Ne($e,lt,Mr,"⊤","\\top");Ne($e,lt,Mr,"⊥","\\bot");Ne($e,lt,Mr,"∅","\\emptyset");Ne($e,sr,Mr,"∅","\\varnothing");Ne($e,lt,vo,"α","\\alpha",!0);Ne($e,lt,vo,"β","\\beta",!0);Ne($e,lt,vo,"γ","\\gamma",!0);Ne($e,lt,vo,"δ","\\delta",!0);Ne($e,lt,vo,"ϵ","\\epsilon",!0);Ne($e,lt,vo,"ζ","\\zeta",!0);Ne($e,lt,vo,"η","\\eta",!0);Ne($e,lt,vo,"θ","\\theta",!0);Ne($e,lt,vo,"ι","\\iota",!0);Ne($e,lt,vo,"κ","\\kappa",!0);Ne($e,lt,vo,"λ","\\lambda",!0);Ne($e,lt,vo,"μ","\\mu",!0);Ne($e,lt,vo,"ν","\\nu",!0);Ne($e,lt,vo,"ξ","\\xi",!0);Ne($e,lt,vo,"ο","\\omicron",!0);Ne($e,lt,vo,"π","\\pi",!0);Ne($e,lt,vo,"ρ","\\rho",!0);Ne($e,lt,vo,"σ","\\sigma",!0);Ne($e,lt,vo,"τ","\\tau",!0);Ne($e,lt,vo,"υ","\\upsilon",!0);Ne($e,lt,vo,"ϕ","\\phi",!0);Ne($e,lt,vo,"χ","\\chi",!0);Ne($e,lt,vo,"ψ","\\psi",!0);Ne($e,lt,vo,"ω","\\omega",!0);Ne($e,lt,vo,"ε","\\varepsilon",!0);Ne($e,lt,vo,"ϑ","\\vartheta",!0);Ne($e,lt,vo,"ϖ","\\varpi",!0);Ne($e,lt,vo,"ϱ","\\varrho",!0);Ne($e,lt,vo,"ς","\\varsigma",!0);Ne($e,lt,vo,"φ","\\varphi",!0);Ne($e,lt,Xa,"∗","*",!0);Ne($e,lt,Xa,"+","+");Ne($e,lt,Xa,"−","-",!0);Ne($e,lt,Xa,"⋅","\\cdot",!0);Ne($e,lt,Xa,"∘","\\circ",!0);Ne($e,lt,Xa,"÷","\\div",!0);Ne($e,lt,Xa,"±","\\pm",!0);Ne($e,lt,Xa,"×","\\times",!0);Ne($e,lt,Xa,"∩","\\cap",!0);Ne($e,lt,Xa,"∪","\\cup",!0);Ne($e,lt,Xa,"∖","\\setminus",!0);Ne($e,lt,Xa,"∧","\\land");Ne($e,lt,Xa,"∨","\\lor");Ne($e,lt,Xa,"∧","\\wedge",!0);Ne($e,lt,Xa,"∨","\\vee",!0);Ne($e,lt,Mr,"√","\\surd");Ne($e,lt,UE,"⟨","\\langle",!0);Ne($e,lt,UE,"∣","\\lvert");Ne($e,lt,UE,"∥","\\lVert");Ne($e,lt,dv,"?","?");Ne($e,lt,dv,"!","!");Ne($e,lt,dv,"⟩","\\rangle",!0);Ne($e,lt,dv,"∣","\\rvert");Ne($e,lt,dv,"∥","\\rVert");Ne($e,lt,hr,"=","=");Ne($e,lt,hr,":",":");Ne($e,lt,hr,"≈","\\approx",!0);Ne($e,lt,hr,"≅","\\cong",!0);Ne($e,lt,hr,"≥","\\ge");Ne($e,lt,hr,"≥","\\geq",!0);Ne($e,lt,hr,"←","\\gets");Ne($e,lt,hr,">","\\gt",!0);Ne($e,lt,hr,"∈","\\in",!0);Ne($e,lt,hr,"","\\@not");Ne($e,lt,hr,"⊂","\\subset",!0);Ne($e,lt,hr,"⊃","\\supset",!0);Ne($e,lt,hr,"⊆","\\subseteq",!0);Ne($e,lt,hr,"⊇","\\supseteq",!0);Ne($e,sr,hr,"⊈","\\nsubseteq",!0);Ne($e,sr,hr,"⊉","\\nsupseteq",!0);Ne($e,lt,hr,"⊨","\\models");Ne($e,lt,hr,"←","\\leftarrow",!0);Ne($e,lt,hr,"≤","\\le");Ne($e,lt,hr,"≤","\\leq",!0);Ne($e,lt,hr,"<","\\lt",!0);Ne($e,lt,hr,"→","\\rightarrow",!0);Ne($e,lt,hr,"→","\\to");Ne($e,sr,hr,"≱","\\ngeq",!0);Ne($e,sr,hr,"≰","\\nleq",!0);Ne($e,lt,AR," ","\\ ");Ne($e,lt,AR," ","\\space");Ne($e,lt,AR," ","\\nobreakspace");Ne(Ci,lt,AR," ","\\ ");Ne(Ci,lt,AR," "," ");Ne(Ci,lt,AR," ","\\space");Ne(Ci,lt,AR," ","\\nobreakspace");Ne($e,lt,AR,"","\\nobreak");Ne($e,lt,AR,"","\\allowbreak");Ne($e,lt,Ire,",",",");Ne($e,lt,Ire,";",";");Ne($e,sr,Xa,"⊼","\\barwedge",!0);Ne($e,sr,Xa,"⊻","\\veebar",!0);Ne($e,lt,Xa,"⊙","\\odot",!0);Ne($e,lt,Xa,"⊕","\\oplus",!0);Ne($e,lt,Xa,"⊗","\\otimes",!0);Ne($e,lt,Mr,"∂","\\partial",!0);Ne($e,lt,Xa,"⊘","\\oslash",!0);Ne($e,sr,Xa,"⊚","\\circledcirc",!0);Ne($e,sr,Xa,"⊡","\\boxdot",!0);Ne($e,lt,Xa,"△","\\bigtriangleup");Ne($e,lt,Xa,"▽","\\bigtriangledown");Ne($e,lt,Xa,"†","\\dagger");Ne($e,lt,Xa,"⋄","\\diamond");Ne($e,lt,Xa,"⋆","\\star");Ne($e,lt,Xa,"◃","\\triangleleft");Ne($e,lt,Xa,"▹","\\triangleright");Ne($e,lt,UE,"{","\\{");Ne(Ci,lt,Mr,"{","\\{");Ne(Ci,lt,Mr,"{","\\textbraceleft");Ne($e,lt,dv,"}","\\}");Ne(Ci,lt,Mr,"}","\\}");Ne(Ci,lt,Mr,"}","\\textbraceright");Ne($e,lt,UE,"{","\\lbrace");Ne($e,lt,dv,"}","\\rbrace");Ne($e,lt,UE,"[","\\lbrack",!0);Ne(Ci,lt,Mr,"[","\\lbrack",!0);Ne($e,lt,dv,"]","\\rbrack",!0);Ne(Ci,lt,Mr,"]","\\rbrack",!0);Ne($e,lt,UE,"(","\\lparen",!0);Ne($e,lt,dv,")","\\rparen",!0);Ne(Ci,lt,Mr,"<","\\textless",!0);Ne(Ci,lt,Mr,">","\\textgreater",!0);Ne($e,lt,UE,"⌊","\\lfloor",!0);Ne($e,lt,dv,"⌋","\\rfloor",!0);Ne($e,lt,UE,"⌈","\\lceil",!0);Ne($e,lt,dv,"⌉","\\rceil",!0);Ne($e,lt,Mr,"\\","\\backslash");Ne($e,lt,Mr,"∣","|");Ne($e,lt,Mr,"∣","\\vert");Ne(Ci,lt,Mr,"|","\\textbar",!0);Ne($e,lt,Mr,"∥","\\|");Ne($e,lt,Mr,"∥","\\Vert");Ne(Ci,lt,Mr,"∥","\\textbardbl");Ne(Ci,lt,Mr,"~","\\textasciitilde");Ne(Ci,lt,Mr,"\\","\\textbackslash");Ne(Ci,lt,Mr,"^","\\textasciicircum");Ne($e,lt,hr,"↑","\\uparrow",!0);Ne($e,lt,hr,"⇑","\\Uparrow",!0);Ne($e,lt,hr,"↓","\\downarrow",!0);Ne($e,lt,hr,"⇓","\\Downarrow",!0);Ne($e,lt,hr,"↕","\\updownarrow",!0);Ne($e,lt,hr,"⇕","\\Updownarrow",!0);Ne($e,lt,cg,"∐","\\coprod");Ne($e,lt,cg,"⋁","\\bigvee");Ne($e,lt,cg,"⋀","\\bigwedge");Ne($e,lt,cg,"⨄","\\biguplus");Ne($e,lt,cg,"⋂","\\bigcap");Ne($e,lt,cg,"⋃","\\bigcup");Ne($e,lt,cg,"∫","\\int");Ne($e,lt,cg,"∫","\\intop");Ne($e,lt,cg,"∬","\\iint");Ne($e,lt,cg,"∭","\\iiint");Ne($e,lt,cg,"∏","\\prod");Ne($e,lt,cg,"∑","\\sum");Ne($e,lt,cg,"⨂","\\bigotimes");Ne($e,lt,cg,"⨁","\\bigoplus");Ne($e,lt,cg,"⨀","\\bigodot");Ne($e,lt,cg,"∮","\\oint");Ne($e,lt,cg,"∯","\\oiint");Ne($e,lt,cg,"∰","\\oiiint");Ne($e,lt,cg,"⨆","\\bigsqcup");Ne($e,lt,cg,"∫","\\smallint");Ne(Ci,lt,VV,"…","\\textellipsis");Ne($e,lt,VV,"…","\\mathellipsis");Ne(Ci,lt,VV,"…","\\ldots",!0);Ne($e,lt,VV,"…","\\ldots",!0);Ne($e,lt,VV,"⋯","\\@cdots",!0);Ne($e,lt,VV,"⋱","\\ddots",!0);Ne($e,lt,Mr,"⋮","\\varvdots");Ne(Ci,lt,Mr,"⋮","\\varvdots");Ne($e,lt,mf,"ˊ","\\acute");Ne($e,lt,mf,"ˋ","\\grave");Ne($e,lt,mf,"¨","\\ddot");Ne($e,lt,mf,"~","\\tilde");Ne($e,lt,mf,"ˉ","\\bar");Ne($e,lt,mf,"˘","\\breve");Ne($e,lt,mf,"ˇ","\\check");Ne($e,lt,mf,"^","\\hat");Ne($e,lt,mf,"⃗","\\vec");Ne($e,lt,mf,"˙","\\dot");Ne($e,lt,mf,"˚","\\mathring");Ne($e,lt,vo,"","\\@imath");Ne($e,lt,vo,"","\\@jmath");Ne($e,lt,Mr,"ı","ı");Ne($e,lt,Mr,"ȷ","ȷ");Ne(Ci,lt,Mr,"ı","\\i",!0);Ne(Ci,lt,Mr,"ȷ","\\j",!0);Ne(Ci,lt,Mr,"ß","\\ss",!0);Ne(Ci,lt,Mr,"æ","\\ae",!0);Ne(Ci,lt,Mr,"œ","\\oe",!0);Ne(Ci,lt,Mr,"ø","\\o",!0);Ne(Ci,lt,Mr,"Æ","\\AE",!0);Ne(Ci,lt,Mr,"Œ","\\OE",!0);Ne(Ci,lt,Mr,"Ø","\\O",!0);Ne(Ci,lt,mf,"ˊ","\\'");Ne(Ci,lt,mf,"ˋ","\\`");Ne(Ci,lt,mf,"ˆ","\\^");Ne(Ci,lt,mf,"˜","\\~");Ne(Ci,lt,mf,"ˉ","\\=");Ne(Ci,lt,mf,"˘","\\u");Ne(Ci,lt,mf,"˙","\\.");Ne(Ci,lt,mf,"¸","\\c");Ne(Ci,lt,mf,"˚","\\r");Ne(Ci,lt,mf,"ˇ","\\v");Ne(Ci,lt,mf,"¨","\\\"");Ne(Ci,lt,mf,"˝","\\H");Ne(Ci,lt,mf,"◯","\\textcircled");Jbr={"--":!0,"---":!0,"``":!0,"''":!0};Ne(Ci,lt,Mr,"–","--",!0);Ne(Ci,lt,Mr,"–","\\textendash");Ne(Ci,lt,Mr,"—","---",!0);Ne(Ci,lt,Mr,"—","\\textemdash");Ne(Ci,lt,Mr,"‘","`",!0);Ne(Ci,lt,Mr,"‘","\\textquoteleft");Ne(Ci,lt,Mr,"’","'",!0);Ne(Ci,lt,Mr,"’","\\textquoteright");Ne(Ci,lt,Mr,"“","``",!0);Ne(Ci,lt,Mr,"“","\\textquotedblleft");Ne(Ci,lt,Mr,"”","''",!0);Ne(Ci,lt,Mr,"”","\\textquotedblright");Ne($e,lt,Mr,"°","\\degree",!0);Ne(Ci,lt,Mr,"°","\\degree");Ne(Ci,lt,Mr,"°","\\textdegree",!0);Ne($e,lt,Mr,"£","\\pounds");Ne($e,lt,Mr,"£","\\mathsterling",!0);Ne(Ci,lt,Mr,"£","\\pounds");Ne(Ci,lt,Mr,"£","\\textsterling",!0);Ne($e,sr,Mr,"✠","\\maltese");Ne(Ci,sr,Mr,"✠","\\maltese");for(yre=0;yree.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"};VFn=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],wbr=[0.5,0.6,0.7,0.8,0.9,1,1.2,1.44,1.728,2.074,2.488];TR.BASESIZE=6;YFn={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},WFn={overrightarrow:[["rightarrow"],0.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],0.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],0.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],0.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],0.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],0.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],0.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],0.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],0.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],0.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],0.888,522,"xMaxYMin"],xlongequal:[["longequal"],0.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],0.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],0.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],0.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],0.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],0.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],0.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],0.888,342],undergroup:[["leftgroupunder","rightgroupunder"],0.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},jFn=new Set(["widehat","widecheck","widetilde","utilde"]),XFn=["bin","close","inner","open","punct","rel"],QFn=["accent-token","mathord","op-token","spacing","textord"],ZFn=new Set(XFn),JFn=new Set(QFn);r$n=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e)=>"\\"+e).join("|"));Fa({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:(e,r)=>{var i=kre(r[0]),a=!r$n.test(e.funcName),o=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:o,base:i}},htmlBuilder:uyr,mathmlBuilder:t$n});Fa({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.","\\\"","\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(e,r)=>{var i=r[0],a=e.parser.mode;if(a==="math")V_({strict:e.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+e.funcName+" works only in text mode",report:!0}),a="text";return{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:i}}});Fa({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"accentUnder",mode:i.mode,label:a,base:o}},htmlBuilder:(e,r)=>{var i=Ru(e.base,r),a=R_e(e,r),o=e.label==="\\utilde"?0.12:0,l=ju({positionType:"top",positionData:i.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:i}]});return Gi(["mord","accentunder"],[l],r)},mathmlBuilder:(e,r)=>{var i=A_e(e.label),a=new Ji("munder",[Hh(e.base,r),i]);return a.setAttribute("accentunder","true"),a}});Fa({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(e,r,i){var{parser:a,funcName:o}=e;return{type:"xArrow",mode:a.mode,label:o,body:r[0],below:i[0]}},htmlBuilder(e,r){var i=r.style,a=r.havingStyle(i.sup()),o=zV(Ru(e.body,a,r),r),l=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(l+"-arrow-pad");var h;if(e.below)a=r.havingStyle(i.sub()),h=zV(Ru(e.below,a,r),r),h.classes.push(l+"-arrow-pad");var d=R_e(e,r),p=-r.fontMetrics().axisHeight+0.5*d.height,m=-r.fontMetrics().axisHeight-0.5*d.height-0.111;if(o.depth>0.25||e.label==="\\xleftequilibrium")m-=o.depth;var y;if(h){var v=-r.fontMetrics().axisHeight+h.height+0.5*d.height+0.111;y=ju({positionType:"individualShift",children:[{type:"elem",elem:o,shift:m},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:h,shift:v}]})}else y=ju({positionType:"individualShift",children:[{type:"elem",elem:o,shift:m},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]}]});return Gi(["mrel","x-arrow"],[y],r)},mathmlBuilder(e,r){var i=A_e(e.label);i.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var o=g_e(Hh(e.body,r));if(e.below){var l=g_e(Hh(e.below,r));a=new Ji("munderover",[i,l,o])}else a=new Ji("mover",[i,o])}else if(e.below){var h=g_e(Hh(e.below,r));a=new Ji("munder",[i,h])}else a=g_e(),a=new Ji("mover",[i,a]);return a}});Fa({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"mclass",mode:i.mode,mclass:"m"+a.slice(5),body:lg(o),isCharacterBox:kR(o)}},htmlBuilder:n$n,mathmlBuilder:i$n});Fa({type:"mclass",names:["\\@binrel"],numArgs:2,handler(e,r){var i=e.parser;return{type:"mclass",mode:i.mode,mclass:N_e(r[0]),body:lg(r[1]),isCharacterBox:kR(r[1])}}});Fa({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(e,r){var{parser:i,funcName:a}=e,o=r[1],l=r[0],h;if(a!=="\\stackrel")h=N_e(o);else h="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:lg(o)},p=a==="\\underset"?{type:"supsub",mode:l.mode,base:d,sub:l}:{type:"supsub",mode:l.mode,base:d,sup:l};return{type:"mclass",mode:i.mode,mclass:h,body:[p],isCharacterBox:kR(p)}}});Fa({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser;return{type:"pmb",mode:i.mode,mclass:N_e(r[0]),body:lg(r[0])}},htmlBuilder(e,r){var i=em(e.body,r,!0),a=Gi([e.mclass],i,r);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,r){var i=GE(e.body,r),a=new Ji("mstyle",i);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});a$n={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"};Fa({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e;return{type:"cdlabel",mode:i.mode,side:a.slice(4),label:r[0]}},htmlBuilder(e,r){var i=r.havingStyle(r.style.sup()),a=zV(Ru(e.label,i,r),r);return a.classes.push("cd-label-"+e.side),a.style.bottom=la(0.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,r){var i=new Ji("mrow",[Hh(e.label,r)]);if(i=new Ji("mpadded",[i]),i.setAttribute("width","0"),e.side==="left")i.setAttribute("lspace","-1width");return i.setAttribute("voffset","0.7em"),i=new Ji("mstyle",[i]),i.setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}});Fa({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(e,r){var i=e.parser;return{type:"cdlabelparent",mode:i.mode,fragment:r[0]}},htmlBuilder(e,r){var i=zV(Ru(e.fragment,r),r);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder(e,r){return new Ji("mrow",[Hh(e.fragment,r)])}});Fa({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser,a=mc(r[0],"ordgroup"),o=lXe(a,"\\@char has non-numeric argument"),l=parseInt(o),h;if(isNaN(l))throw new ji("\\@char has non-numeric argument "+o);else if(l<0||l>1114111)throw new ji("\\@char with invalid code point "+o);else if(l<=65535)h=String.fromCharCode(l);else l-=65536,h=String.fromCharCode((l>>10)+55296,(l&1023)+56320);return{type:"textord",mode:i.mode,text:h}}});Fa({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(e,r){var i=e.parser,a=mc(r[0],"color-token").color,o=r[1];return{type:"color",mode:i.mode,color:a,body:lg(o)}},htmlBuilder:c$n,mathmlBuilder:u$n});Fa({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(e,r){var{parser:i,breakOnTokenText:a}=e,o=mc(r[0],"color-token").color;i.gullet.macros.set("\\current@color",o);var l=i.parseExpression(!0,a);return{type:"color",mode:i.mode,color:o,body:l}}});Fa({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var r=e.parser,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!V_({strict:r.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:r.mode,newLine:a,size:i&&mc(i,"size").value}},htmlBuilder(e,r){var i=Gi(["mspace"],[],r);if(e.newLine){if(i.classes.push("katex-newline"),e.size)i.style.marginTop=la(rp(e.size,r))}return i},mathmlBuilder(e,r){var i=new Ji("mspace");if(e.newLine){if(i.setAttribute("linebreak","newline"),e.size)i.setAttribute("height",la(rp(e.size,r)))}return i}});jKe={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"};Fa({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(e){var{parser:r,funcName:i}=e;r.consumeSpaces();var a=r.fetch();if(jKe[a.text]){if(i==="\\global"||i==="\\\\globallong")a.text=jKe[a.text];return mc(r.parseFunction(),"internal")}throw new ji("Invalid token after macro prefix",a)}});Fa({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=r.gullet.popToken(),o=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new ji("Expected a control sequence",a);var l=0,h,d=[[]];while(r.gullet.future().text!=="{")if(a=r.gullet.popToken(),a.text==="#"){if(r.gullet.future().text==="{"){h=r.gullet.future(),d[l].push("{");break}if(a=r.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new ji('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==l+1)throw new ji('Argument number "'+a.text+'" out of order');l++,d.push([])}else if(a.text==="EOF")throw new ji("Expected a macro definition");else d[l].push(a.text);var p=r.gullet.consumeArg(),m=p.tokens;if(h)m.unshift(h);if(i==="\\edef"||i==="\\xdef")m=r.gullet.expandTokens(m),m.reverse();return r.gullet.macros.set(o,{tokens:m,numArgs:l,delimiters:d},i===jKe[i]),{type:"internal",mode:r.mode}}});Fa({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=hyr(r.gullet.popToken());r.gullet.consumeSpaces();var o=h$n(r);return dyr(r,a,o,i==="\\\\globallet"),{type:"internal",mode:r.mode}}});Fa({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=hyr(r.gullet.popToken()),o=r.gullet.popToken(),l=r.gullet.popToken();return dyr(r,a,l,i==="\\\\globalfuture"),r.gullet.pushToken(l),r.gullet.pushToken(o),{type:"internal",mode:r.mode}}});m_e={type:"kern",size:-1*KKe},p$n=new Set(["|","\\lvert","\\rvert","\\vert"]),g$n=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),myr=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),b$n=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),byr=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Sre=[0,1.2,1.8,2.4,3],y$n=[{type:"small",style:hl.SCRIPTSCRIPT},{type:"small",style:hl.SCRIPT},{type:"small",style:hl.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],v$n=[{type:"small",style:hl.SCRIPTSCRIPT},{type:"small",style:hl.SCRIPT},{type:"small",style:hl.TEXT},{type:"stack"}],vyr=[{type:"small",style:hl.SCRIPTSCRIPT},{type:"small",style:hl.SCRIPT},{type:"small",style:hl.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Cbr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},E$n=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);Fa({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(e,r)=>{var i=L_e(kre(r[0]),e);return{type:"delimsizing",mode:e.parser.mode,size:Cbr[e.funcName].size,mclass:Cbr[e.funcName].mclass,delim:i.text}},htmlBuilder:(e,r)=>{if(e.delim===".")return Gi([e.mclass]);return yyr(e.delim,e.size,r,e.mode,[e.mclass])},mathmlBuilder:(e)=>{var r=[];if(e.delim!==".")r.push(HS(e.delim,e.mode));var i=new Ji("mo",r);if(e.mclass==="mopen"||e.mclass==="mclose")i.setAttribute("fence","true");else i.setAttribute("fence","false");i.setAttribute("stretchy","true");var a=la(Sre[e.size]);return i.setAttribute("minsize",a),i.setAttribute("maxsize",a),i}});Fa({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&typeof i!=="string")throw new ji("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:L_e(r[0],e).text,color:i}}});Fa({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=L_e(r[0],e),a=e.parser;++a.leftrightDepth;var o=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var l=mc(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:o,left:i.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,r)=>{Abr(e);var i=em(e.body,r,!0,["mopen","mclose"]),a=0,o=0,l=!1;for(var h=0;h{Abr(e);var i=GE(e.body,r);if(e.left!=="."){var a=new Ji("mo",[HS(e.left,e.mode)]);a.setAttribute("fence","true"),i.unshift(a)}if(e.right!=="."){var o=new Ji("mo",[HS(e.right,e.mode)]);if(o.setAttribute("fence","true"),e.rightColor)o.setAttribute("mathcolor",e.rightColor);i.push(o)}return sXe(i)}});Fa({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=L_e(r[0],e);if(!e.parser.leftrightDepth)throw new ji("\\middle without preceding \\left",i);return{type:"middle",mode:e.parser.mode,delim:i.text}},htmlBuilder:(e,r)=>{var i;if(e.delim===".")i=Are(r,[]);else i=yyr(e.delim,1,r,e.mode,[]),i.isMiddle={delim:e.delim,options:r};return i},mathmlBuilder:(e,r)=>{var i=e.delim==="\\vert"||e.delim==="|"?HS("|","text"):HS(e.delim,e.mode),a=new Ji("mo",[i]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});Fa({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(e,r,i){var{parser:a,funcName:o}=e,l=mc(r[0],"color-token").color,h=r[1];return{type:"enclose",mode:a.mode,label:o,backgroundColor:l,body:h}},htmlBuilder:w$n,mathmlBuilder:S$n});Fa({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(e,r,i){var{parser:a,funcName:o}=e,l=mc(r[0],"color-token").color,h=mc(r[1],"color-token").color,d=r[2];return{type:"enclose",mode:a.mode,label:o,backgroundColor:h,borderColor:l,body:d}}});Fa({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(e,r){var i=e.parser;return{type:"enclose",mode:i.mode,label:"\\fbox",body:r[0]}}});Fa({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"enclose",mode:i.mode,label:a,body:o}}});Fa({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e;if(i.mode==="math")V_({strict:i.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var o=r[0];return{type:"enclose",mode:i.mode,label:a,body:o}}});Fa({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(e,r){var i=e.parser;return{type:"enclose",mode:i.mode,label:"\\angl",body:r[0]}}});Eyr={};wyr={};T$n=new Set(["gather","gather*"]);x$n={c:"center ",l:"left ",r:"right "};Qk({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,r){var i=O_e(r[0]),a=i?[r[0]]:mc(r[0],"ordgroup").body,o=a.map(function(h){var d=I_e(h),p=d.text;if("lcr".includes(p))return{type:"align",align:p};else if(p==="|")return{type:"separator",separator:"|"};else if(p===":")return{type:"separator",separator:":"};throw new ji("Unknown column alignment: "+p,h)}),l={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return aL(e.parser,l,hXe(e.envName))},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],i="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),i=o.fetch().text,!"lcr".includes(i))throw new ji("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),a.cols=[{type:"align",align:i}]}}var l=aL(e.parser,a,hXe(e.envName)),h=Math.max(0,...l.body.map((d)=>d.length));return l.cols=Array(h).fill({type:"align",align:i}),r?{type:"leftright",mode:e.mode,body:[l],left:r[0],right:r[1],rightColor:void 0}:l},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var r={arraystretch:0.5},i=aL(e.parser,r,"script");return i.colSeparationType="small",i},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["subarray"],props:{numArgs:1},handler(e,r){var i=O_e(r[0]),a=i?[r[0]]:mc(r[0],"ordgroup").body,o=a.map(function(d){var p=I_e(d),m=p.text;if("lc".includes(m))return{type:"align",align:m};throw new ji("Unknown column alignment: "+m,d)});if(o.length>1)throw new ji("{subarray} can contain only one column");var l={cols:o,hskipBeforeAndAfter:!1,arraystretch:0.5},h=aL(e.parser,l,"script");if(h.body.length>0&&h.body[0].length>1)throw new ji("{subarray} can contain only one column");return h},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var r={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},i=aL(e.parser,r,hXe(e.envName));return{type:"leftright",mode:e.mode,body:[i],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Syr,htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){if(T$n.has(e.envName))M_e(e);var r={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:uXe(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return aL(e.parser,r,"display")},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Syr,htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){M_e(e);var r={autoTag:uXe(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return aL(e.parser,r,"display")},htmlBuilder:Zk,mathmlBuilder:Jk});Qk({type:"array",names:["CD"],props:{numArgs:0},handler(e){return M_e(e),l$n(e.parser)},htmlBuilder:Zk,mathmlBuilder:Jk});Tt("\\nonumber","\\gdef\\@eqnsw{0}");Tt("\\notag","\\nonumber");Fa({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,r){throw new ji(e.funcName+" valid only within array environment")}});Ibr=Eyr;Fa({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(e,r){var{parser:i,funcName:a}=e,o=r[0];if(o.type!=="ordgroup")throw new ji("Invalid environment name",o);var l=lXe(o,"Environment name should contain only text characters and spaces",!0);if(a==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Ibr,l))throw new ji("No such environment: "+l,o);var h=Ibr[l],d=i.parseArguments("\\begin{"+l+"}",h),{args:p,optArgs:m}=d,y={mode:i.mode,envName:l,parser:i},v=h.handler(y,p,m);i.expect("\\end",!1);var w=i.nextToken,T=mc(i.parseFunction(),"environment");if(T.name!==l)throw new ji("Mismatch: \\begin{"+l+"} matched by \\end{"+T.name+"}",w);return v}return{type:"environment",mode:i.mode,name:l,nameGroup:o}}});Obr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Fa({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=kre(r[0]),l=a in Obr?Obr[a]:a;return{type:"font",mode:i.mode,font:l.slice(1),body:o}},htmlBuilder:C$n,mathmlBuilder:k$n});Fa({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"mclass",mode:i.mode,mclass:N_e(a),body:[{type:"font",mode:i.mode,font:"boldsymbol",body:a}],isCharacterBox:kR(a)}}});Fa({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(e,r)=>{var{parser:i,funcName:a,breakOnTokenText:o}=e,l=i.mode,h=i.parseExpression(!0,o);return{type:"font",mode:l,font:"math"+a.slice(1),body:{type:"ordgroup",mode:i.mode,body:h}}}});Fa({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0],l=r[1],h,d=null,p=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":h=!0;break;case"\\\\atopfrac":h=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":h=!1,d="(",p=")";break;case"\\\\bracefrac":h=!1,d="\\{",p="\\}";break;case"\\\\brackfrac":h=!1,d="[",p="]";break;default:throw Error("Unrecognized genfrac command")}var m=a==="\\cfrac",y=null;if(m||a.startsWith("\\d"))y="display";else if(a.startsWith("\\t"))y="text";return Tyr({type:"genfrac",mode:i.mode,numer:o,denom:l,continued:m,hasBarLine:h,leftDelim:d,rightDelim:p,barSize:null},y)},htmlBuilder:A$n,mathmlBuilder:R$n});Fa({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(e){var{parser:r,funcName:i,token:a}=e,o;switch(i){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:o,token:a}}});Nbr=["display","text","script","scriptscript"];Fa({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(e,r){var i=e.parser,a=r[4],o=r[5],l=kre(r[0]),h=l.type==="atom"&&l.family==="open"?Lbr(l.text):null,d=kre(r[1]),p=d.type==="atom"&&d.family==="close"?Lbr(d.text):null,m=mc(r[2],"size"),y,v=null;if(m.isBlank)y=!0;else v=m.value,y=v.number>0;var w=null,T=r[3];if(T.type==="ordgroup"){if(T.body.length>0){var x=mc(T.body[0],"textord");w=Nbr[Number(x.text)]}}else T=mc(T,"textord"),w=Nbr[Number(T.text)];return Tyr({type:"genfrac",mode:i.mode,numer:a,denom:o,continued:!1,hasBarLine:y,barSize:v,leftDelim:h,rightDelim:p},w)}});Fa({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(e,r){var i=e.parser;e.funcName;var a=e.token;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:mc(r[0],"size").value,token:a}}});Fa({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(e,r)=>{var i=e.parser;e.funcName;var a=r[0],o=mc(r[1],"infix").size;if(!o)throw Error("\\\\abovefrac expected size, but got "+String(o));var l=r[2],h=o.number>0;return{type:"genfrac",mode:i.mode,numer:a,denom:l,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null}}});Fa({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e;return{type:"horizBrace",mode:i.mode,label:a,isOver:a.includes("\\over"),base:r[0]}},htmlBuilder:xyr,mathmlBuilder:I$n});Fa({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[1],o=mc(r[0],"url").url;if(!i.settings.isTrusted({command:"\\href",url:o}))return i.formatUnsupportedCmd("\\href");return{type:"href",mode:i.mode,href:o,body:lg(a)}},htmlBuilder:(e,r)=>{var i=em(e.body,r,!1);return NFn(e.href,[],i,r)},mathmlBuilder:(e,r)=>{var i=iL(e.body,r);if(!(i instanceof Ji))i=new Ji("mrow",[i]);return i.setAttribute("href",e.href),i}});Fa({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=mc(r[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:a}))return i.formatUnsupportedCmd("\\url");var o=[];for(var l=0;l{var{parser:i,funcName:a}=e;e.token;var o=mc(r[0],"raw").string,l=r[1];if(i.settings.strict)V_({strict:i.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var h,d={};switch(a){case"\\htmlClass":d.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":d.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":d.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{var p="{,}",m=[],y="";for(var v=0;v{var i=em(e.body,r,!1),a=["enclosing"];if(e.attributes.class)a.push(...e.attributes.class.trim().split(/\s+/));var o=Gi(a,i,r);for(var l of Object.entries(e.attributes)){var h=l[0],d=l[1];if(h!=="class")o.setAttribute(h,d)}return o},mathmlBuilder:(e,r)=>iL(e.body,r)});Fa({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,r)=>{var i=e.parser;return{type:"htmlmathml",mode:i.mode,html:lg(r[0]),mathml:lg(r[1])}},htmlBuilder:(e,r)=>{var i=em(e.html,r,!1);return RR(i)},mathmlBuilder:(e,r)=>iL(e.mathml,r)});Fa({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(e,r,i)=>{var a=e.parser,o={number:0,unit:"em"},l={number:0.9,unit:"em"},h={number:0,unit:"em"},d="";if(i[0]){var p=mc(i[0],"raw").string,m=p.split(",");for(var y=0;y{var i=rp(e.height,r),a=0;if(e.totalheight.number>0)a=rp(e.totalheight,r)-i;var o=0;if(e.width.number>0)o=rp(e.width,r);var l={height:la(i+a)};if(o>0)l.width=la(o);if(a>0)l.verticalAlign=la(-a);var h=new Zbr(e.src,e.alt,l);return h.height=i,h.depth=a,h},mathmlBuilder:(e,r)=>{var i=new Ji("mglyph",[]);i.setAttribute("alt",e.alt);var a=rp(e.height,r),o=0;if(e.totalheight.number>0)o=rp(e.totalheight,r)-a,i.setAttribute("valign",la(-o));if(i.setAttribute("height",la(a+o)),e.width.number>0){var l=rp(e.width,r);i.setAttribute("width",la(l))}return i.setAttribute("src",e.src),i}});Fa({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e,o=mc(r[0],"size");if(i.settings.strict){var l=a[1]==="m",h=o.value.unit==="mu";if(l){if(!h)V_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" supports only mu units, "+("not "+o.value.unit+" units"),report:!0});if(i.mode!=="math")V_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" works only in math mode",report:!0})}else if(h)V_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" doesn't support mu units",report:!0})}return{type:"kern",mode:i.mode,dimension:o.value}},htmlBuilder(e,r){return tyr(e.dimension,r)},mathmlBuilder(e,r){var i=rp(e.dimension,r);return new aXe(i)}});Fa({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"lap",mode:i.mode,alignment:a.slice(5),body:o}},htmlBuilder:(e,r)=>{var i;if(e.alignment==="clap")i=Gi([],[Ru(e.body,r)]),i=Gi(["katex-inner"],[i],r);else i=Gi(["katex-inner"],[Ru(e.body,r)]);var a=Gi(["katex-fix"],[]),o=Gi([e.alignment],[i,a],r),l=Gi(["katex-strut"]);if(l.style.height=la(o.height+o.depth),o.depth)l.style.verticalAlign=la(-o.depth);return o.children.unshift(l),o=Gi(["katex-thinbox"],[o],r),Gi(["mord","katex-vbox"],[o],r)},mathmlBuilder:(e,r)=>{var i=new Ji("mpadded",[Hh(e.body,r)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";i.setAttribute("lspace",a+"width")}return i.setAttribute("width","0px"),i}});Fa({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,r){var{funcName:i,parser:a}=e,o=a.mode;a.switchMode("math");var l=i==="\\("?"\\)":"$",h=a.parseExpression(!1,l);return a.expect(l),a.switchMode(o),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:h}}});Fa({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,r){throw new ji("Mismatched "+e.funcName)}});Fa({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(e,r)=>{var i=e.parser;return{type:"mathchoice",mode:i.mode,display:lg(r[0]),text:lg(r[1]),script:lg(r[2]),scriptscript:lg(r[3])}},htmlBuilder:(e,r)=>{var i=Mbr(e,r),a=em(i,r,!1);return RR(a)},mathmlBuilder:(e,r)=>{var i=Mbr(e,r);return iL(i,r)}});kyr=new Set(["\\smallint"]),N$n={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Fa({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=a;if(o.length===1)o=N$n[o];return{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Ayr,mathmlBuilder:O$n});Fa({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"op",mode:i.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:lg(a)}}});L$n={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Fa({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(e){var{parser:r,funcName:i}=e;return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:i}}});Fa({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(e){var{parser:r,funcName:i}=e;return{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:i}}});Fa({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(e){var{parser:r,funcName:i}=e,a=i;if(a.length===1)a=L$n[a];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}}});Fa({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"operatorname",mode:i.mode,body:lg(o),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ryr,mathmlBuilder:M$n});Tt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");AP({type:"ordgroup",htmlBuilder(e,r){if(e.semisimple)return RR(em(e.body,r,!1));return Gi(["mord"],em(e.body,r,!0),r)},mathmlBuilder(e,r){return iL(e.body,r,!0)}});Fa({type:"overline",names:["\\overline"],numArgs:1,handler(e,r){var i=e.parser,a=r[0];return{type:"overline",mode:i.mode,body:a}},htmlBuilder(e,r){var i=Ru(e.body,r.havingCrampedStyle()),a=GV("overline-line",r),o=r.fontMetrics().defaultRuleThickness,l=ju({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:a},{type:"kern",size:o}]});return Gi(["mord","katex-overline"],[l],r)},mathmlBuilder(e,r){var i=new Ji("mo",[new C0("‾")]);i.setAttribute("stretchy","true");var a=new Ji("mover",[Hh(e.body,r),i]);return a.setAttribute("accent","true"),a}});Fa({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"phantom",mode:i.mode,body:lg(a)}},htmlBuilder:(e,r)=>{var i=em(e.body,r.withPhantom(),!1);return RR(i)},mathmlBuilder:(e,r)=>{var i=GE(e.body,r);return new Ji("mphantom",i)}});Tt("\\hphantom","\\smash{\\phantom{#1}}");Fa({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"vphantom",mode:i.mode,body:a}},htmlBuilder:(e,r)=>{var i=Gi(["katex-inner"],[Ru(e.body,r.withPhantom())]),a=Gi(["katex-fix"],[]);return Gi(["mord","rlap"],[i,a],r)},mathmlBuilder:(e,r)=>{var i=GE(lg(e.body),r),a=new Ji("mphantom",i),o=new Ji("mpadded",[a]);return o.setAttribute("width","0px"),o}});Fa({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(e,r){var i=e.parser,a=mc(r[0],"size").value,o=r[1];return{type:"raisebox",mode:i.mode,dy:a,body:o}},htmlBuilder(e,r){var i=Ru(e.body,r),a=rp(e.dy,r);return ju({positionType:"shift",positionData:-a,children:[{type:"elem",elem:i}]})},mathmlBuilder(e,r){var i=new Ji("mpadded",[Hh(e.body,r)]),a=e.dy.number+e.dy.unit;return i.setAttribute("voffset",a),i}});Fa({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Iyr,htmlBuilder(e,r){return Gi(["mord","reflectbox"],[Ru(e.body,r)],r)},mathmlBuilder(e,r){return Hh(e.body,r)}});Fa({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Iyr});Fa({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){var r=e.parser;return{type:"internal",mode:r.mode}}});Fa({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(e,r,i){var a=e.parser,o=i[0],l=mc(r[0],"size"),h=mc(r[1],"size");return{type:"rule",mode:a.mode,shift:o&&mc(o,"size").value,width:l.value,height:h.value}},htmlBuilder(e,r){var i=Gi(["mord","katex-rule"],[],r),a=rp(e.width,r),o=rp(e.height,r),l=e.shift?rp(e.shift,r):0;return i.style.borderRightWidth=la(a),i.style.borderTopWidth=la(o),i.style.bottom=la(l),i.width=a,i.height=o+l,i.depth=-l,i.maxFontSize=o*1.125*r.sizeMultiplier,i},mathmlBuilder(e,r){var i=rp(e.width,r),a=rp(e.height,r),o=e.shift?rp(e.shift,r):0,l=r.color&&r.getColor()||"black",h=new Ji("mspace");h.setAttribute("mathbackground",l),h.setAttribute("width",la(i)),h.setAttribute("height",la(a));var d=new Ji("mpadded",[h]);if(o>=0)d.setAttribute("height",la(o));else d.setAttribute("height",la(o)),d.setAttribute("depth",la(-o));return d.setAttribute("voffset",la(o)),d}});Dbr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];Fa({type:"sizing",names:Dbr,numArgs:0,allowedInText:!0,handler:(e,r)=>{var{breakOnTokenText:i,funcName:a,parser:o}=e,l=o.parseExpression(!1,i);return{type:"sizing",mode:o.mode,size:Dbr.indexOf(a)+1,body:l}},htmlBuilder:D$n,mathmlBuilder:(e,r)=>{var i=r.havingSize(e.size),a=GE(e.body,i),o=new Ji("mstyle",a);return o.setAttribute("mathsize",la(i.sizeMultiplier)),o}});Fa({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,r,i)=>{var a=e.parser,o=!1,l=!1,h=i[0]&&mc(i[0],"ordgroup");if(h){var d;for(var p=0;p{var i=Gi([],[Ru(e.body,r)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight)i.height=0;if(e.smashDepth)i.depth=0;if(e.smashHeight&&e.smashDepth)return Gi(["mord","katex-smash"],[i],r);if(i.children)for(var a=0;a{var i=new Ji("mpadded",[Hh(e.body,r)]);if(e.smashHeight)i.setAttribute("height","0px");if(e.smashDepth)i.setAttribute("depth","0px");return i}});Fa({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(e,r,i){var a=e.parser,o=i[0],l=r[0];return{type:"sqrt",mode:a.mode,body:l,index:o}},htmlBuilder(e,r){var i=Ru(e.body,r.havingCrampedStyle());if(i.height===0)i.height=r.fontMetrics().xHeight;i=zV(i,r);var a=r.fontMetrics(),o=a.defaultRuleThickness,l=o;if(r.style.idi.height+i.depth+h)h=(h+w-i.height-i.depth)/2;var T=m.height-i.height-h-y;i.style.paddingLeft=la(v);var x=ju({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+T)},{type:"elem",elem:m},{type:"kern",size:y}]});if(!e.index)return Gi(["mord","sqrt"],[x],r);else{var k=r.havingStyle(hl.SCRIPTSCRIPT),A=Ru(e.index,k,r),R=0.6*(x.height-x.depth),N=ju({positionType:"shift",positionData:-R,children:[{type:"elem",elem:A}]}),L=Gi(["katex-root"],[N]);return Gi(["mord","sqrt"],[L,x],r)}},mathmlBuilder(e,r){var{body:i,index:a}=e;return a?new Ji("mroot",[Hh(i,r),Hh(a,r)]):new Ji("msqrt",[Hh(i,r)])}});QKe={display:hl.DISPLAY,text:hl.TEXT,script:hl.SCRIPT,scriptscript:hl.SCRIPTSCRIPT};Fa({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(e,r){var{breakOnTokenText:i,funcName:a,parser:o}=e,l=o.parseExpression(!0,i),h=a.slice(1,a.length-5);if(!P$n(h))throw Error("Unknown style: "+h);return{type:"styling",mode:o.mode,style:h,body:l}},htmlBuilder(e,r){var i=QKe[e.style],a=r.havingStyle(i);if(e.resetFont)a=a.withFont("");return Oyr(e.body,a,r)},mathmlBuilder(e,r){var i=QKe[e.style],a=r.havingStyle(i);if(e.resetFont)a=a.withFont("");var o=GE(e.body,a),l=new Ji("mstyle",o),h={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=h[e.style];return l.setAttribute("scriptlevel",d[0]),l.setAttribute("displaystyle",d[1]),l}});AP({type:"supsub",htmlBuilder(e,r){var i=B$n(e,r);if(i)return i(e,r);var{base:a,sup:o,sub:l}=e,h=Ru(a,r),d,p,m=r.fontMetrics(),y=0,v=0,w=a&&kR(a);if(o){var T=r.havingStyle(r.style.sup());if(d=Ru(o,T,r),!w)y=h.height-T.fontMetrics().supDrop*T.sizeMultiplier/r.sizeMultiplier}if(l){var x=r.havingStyle(r.style.sub());if(p=Ru(l,x,r),!w)v=h.depth+x.fontMetrics().subDrop*x.sizeMultiplier/r.sizeMultiplier}var k;if(r.style===hl.DISPLAY)k=m.sup1;else if(r.style.cramped)k=m.sup3;else k=m.sup2;var A=r.sizeMultiplier,R=la(0.5/m.ptPerEm/A),N=null;if(p){var L=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(h instanceof H_||L){var B;N=la(-((B=h.italic)!=null?B:0))}}var D;if(d&&p){y=Math.max(y,k,d.depth+0.25*m.xHeight),v=Math.max(v,m.sub2);var P=m.defaultRuleThickness,F=4*P;if(y-d.depth-(p.height-v)0)y+=H,v-=H}var W=[{type:"elem",elem:p,shift:v,marginRight:R,marginLeft:N},{type:"elem",elem:d,shift:-y,marginRight:R}];D=ju({positionType:"individualShift",children:W})}else if(p){v=Math.max(v,m.sub1,p.height-0.8*m.xHeight);var X=[{type:"elem",elem:p,marginLeft:N,marginRight:R}];D=ju({positionType:"shift",positionData:v,children:X})}else if(d)y=Math.max(y,k,d.depth+0.25*m.xHeight),D=ju({positionType:"shift",positionData:-y,children:[{type:"elem",elem:d,marginRight:R}]});else throw Error("supsub must have either sup or sub.");var Q=YKe(h,"right")||"mord";return Gi([Q],[h,Gi(["msupsub"],[D])],r)},mathmlBuilder(e,r){var i=!1,a,o;if(e.base&&e.base.type==="horizBrace"){if(o=!!e.sup,o===e.base.isOver)i=!0,a=e.base.isOver}if(e.base&&(e.base.type==="op"||e.base.type==="operatorname"))e.base.parentIsSupSub=!0;var l=[Hh(e.base,r)];if(e.sub)l.push(Hh(e.sub,r));if(e.sup)l.push(Hh(e.sup,r));var h;if(i)h=a?"mover":"munder";else if(!e.sub){var d=e.base;if(d&&d.type==="op"&&d.limits&&(r.style===hl.DISPLAY||d.alwaysHandleSupSub))h="mover";else if(d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||r.style===hl.DISPLAY))h="mover";else h="msup"}else if(!e.sup){var p=e.base;if(p&&p.type==="op"&&p.limits&&(r.style===hl.DISPLAY||p.alwaysHandleSupSub))h="munder";else if(p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||r.style===hl.DISPLAY))h="munder";else h="msub"}else{var m=e.base;if(m&&m.type==="op"&&m.limits&&r.style===hl.DISPLAY)h="munderover";else if(m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(r.style===hl.DISPLAY||m.limits))h="munderover";else h="msubsup"}return new Ji(h,l)}});AP({type:"atom",htmlBuilder(e,r){return nXe(e.text,e.mode,r,["m"+e.family])},mathmlBuilder(e,r){var i=new Ji("mo",[HS(e.text,e.mode)]);if(e.family==="bin"){var a=oXe(e,r);if(a==="bold-italic")i.setAttribute("mathvariant",a)}else if(e.family==="punct")i.setAttribute("separator","true");else if(e.family==="open"||e.family==="close")i.setAttribute("stretchy","false");return i}});Nyr={mi:"italic",mn:"normal",mtext:"normal"};AP({type:"mathord",htmlBuilder(e,r){return k_e(e,r)},mathmlBuilder(e,r){var i=new Ji("mi",[HS(e.text,e.mode,r)]),a=oXe(e,r)||"italic";if(a!==Nyr[i.type])i.setAttribute("mathvariant",a);return i}});AP({type:"textord",htmlBuilder(e,r){return k_e(e,r)},mathmlBuilder(e,r){var i=HS(e.text,e.mode,r),a=oXe(e,r)||"normal",o;if(e.mode==="text")o=new Ji("mtext",[i]);else if(/[0-9]/.test(e.text))o=new Ji("mn",[i]);else if(e.text==="\\prime")o=new Ji("mo",[i]);else o=new Ji("mi",[i]);if(a!==Nyr[o.type])o.setAttribute("mathvariant",a);return o}});Pbr=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),Bbr=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);AP({type:"spacing",htmlBuilder(e,r){var i=Bbr.get(e.text),a=Pbr.get(e.text);if(i){var o=i.className||"";if(e.mode==="text"){var l=k_e(e,r);return l.classes.push(o),l}else return Gi(["mspace",o],[nXe(e.text,e.mode,r)],r)}else if(a)return Gi(["mspace",a],[],r);else throw new ji('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,r){var i;if(Bbr.has(e.text))i=new Ji("mtext",[new C0(" ")]);else if(Pbr.has(e.text))return new Ji("mspace");else throw new ji('Unknown type of space "'+e.text+'"');return i}});AP({type:"tag",mathmlBuilder(e,r){var i=new Ji("mtable",[new Ji("mtr",[Fbr(),new Ji("mtd",[iL(e.body,r)]),Fbr(),new Ji("mtd",[iL(e.tag,r)])])]);return i.setAttribute("width","100%"),i}});$br={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Ubr={"\\textbf":"textbf","\\textmd":"textmd"},F$n={"\\textit":"textit","\\textup":"textup"};Fa({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"text",mode:i.mode,body:lg(o),font:a}},htmlBuilder(e,r){var i=Gbr(e,r),a=em(e.body,i,!0);return Gi(["mord","text"],a,i)},mathmlBuilder(e,r){var i=Gbr(e,r);return iL(e.body,i)}});Fa({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser;return{type:"underline",mode:i.mode,body:r[0]}},htmlBuilder(e,r){var i=Ru(e.body,r),a=GV("underline-line",r),o=r.fontMetrics().defaultRuleThickness,l=ju({positionType:"top",positionData:i.height,children:[{type:"kern",size:o},{type:"elem",elem:a},{type:"kern",size:3*o},{type:"elem",elem:i}]});return Gi(["mord","katex-underline"],[l],r)},mathmlBuilder(e,r){var i=new Ji("mo",[new C0("‾")]);i.setAttribute("stretchy","true");var a=new Ji("munder",[Hh(e.body,r),i]);return a.setAttribute("accentunder","true"),a}});Fa({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(e,r){var i=e.parser;return{type:"vcenter",mode:i.mode,body:r[0]}},htmlBuilder(e,r){var i=Ru(e.body,r),a=r.fontMetrics().axisHeight,o=0.5*(i.height-a-(i.depth+a));return ju({positionType:"shift",positionData:o,children:[{type:"elem",elem:i}]})},mathmlBuilder(e,r){var i=new Ji("mpadded",[Hh(e.body,r)],["vcenter"]);return new Ji("mrow",[i])}});Fa({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(e,r,i){throw new ji("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,r){var i=zbr(e),a=[],o=r.havingStyle(r.style.text());for(var l=0;l=i)throw new ji("Invalid base-"+i+" digit "+r.text);var o;while((o=Vbr[e.future().text])!=null&&odXe(e,!1,!0,!1));Tt("\\renewcommand",(e)=>dXe(e,!0,!1,!1));Tt("\\providecommand",(e)=>dXe(e,!0,!0,!0));Tt("\\message",(e)=>{var r=e.consumeArgs(1)[0];return console.log(r.reverse().map((i)=>i.text).join("")),""});Tt("\\errmessage",(e)=>{var r=e.consumeArgs(1)[0];return console.error(r.reverse().map((i)=>i.text).join("")),""});Tt("\\show",(e)=>{var r=e.popToken(),i=r.text;return console.log(r,e.macros.get(i),tL[i],gf.math[i],gf.text[i]),""});Tt("\\bgroup","{");Tt("\\egroup","}");Tt("~","\\nobreakspace");Tt("\\lq","`");Tt("\\rq","'");Tt("\\aa","\\r a");Tt("\\AA","\\r A");Tt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Tt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Tt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Tt("ℬ","\\mathscr{B}");Tt("ℰ","\\mathscr{E}");Tt("ℱ","\\mathscr{F}");Tt("ℋ","\\mathscr{H}");Tt("ℐ","\\mathscr{I}");Tt("ℒ","\\mathscr{L}");Tt("ℳ","\\mathscr{M}");Tt("ℛ","\\mathscr{R}");Tt("ℭ","\\mathfrak{C}");Tt("ℌ","\\mathfrak{H}");Tt("ℨ","\\mathfrak{Z}");Tt("\\Bbbk","\\Bbb{k}");Tt("\\llap","\\mathllap{\\textrm{#1}}");Tt("\\rlap","\\mathrlap{\\textrm{#1}}");Tt("\\clap","\\mathclap{\\textrm{#1}}");Tt("\\mathstrut","\\vphantom{(}");Tt("\\underbar","\\underline{\\text{#1}}");Tt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Tt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Tt("\\ne","\\neq");Tt("≠","\\neq");Tt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}"+"{\\mathrel{\\char`∉}}");Tt("∉","\\notin");Tt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}"+"}{\\mathrel{\\char`≘}}");Tt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Tt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Tt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}"+"{\\mathrel{\\char`≛}}");Tt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}"+"{\\mathrel{\\char`≝}}");Tt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}"+"{\\mathrel{\\char`≞}}");Tt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Tt("⟂","\\perp");Tt("‼","\\mathclose{!\\mkern-0.8mu!}");Tt("∌","\\notni");Tt("⌜","\\ulcorner");Tt("⌝","\\urcorner");Tt("⌞","\\llcorner");Tt("⌟","\\lrcorner");Tt("©","\\copyright");Tt("®","\\textregistered");Tt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Tt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Tt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Tt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Tt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Tt("⋮","\\vdots");Tt("\\varGamma","\\mathit{\\Gamma}");Tt("\\varDelta","\\mathit{\\Delta}");Tt("\\varTheta","\\mathit{\\Theta}");Tt("\\varLambda","\\mathit{\\Lambda}");Tt("\\varXi","\\mathit{\\Xi}");Tt("\\varPi","\\mathit{\\Pi}");Tt("\\varSigma","\\mathit{\\Sigma}");Tt("\\varUpsilon","\\mathit{\\Upsilon}");Tt("\\varPhi","\\mathit{\\Phi}");Tt("\\varPsi","\\mathit{\\Psi}");Tt("\\varOmega","\\mathit{\\Omega}");Tt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Tt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Tt("\\boxed","\\fbox{$\\displaystyle{#1}$}");Tt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Tt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Tt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Tt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Tt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");Hbr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},Y$n=new Set(["bin","rel"]);Tt("\\dots",function(e){var r="\\dotso",i=e.expandAfterFuture().text;if(i in Hbr)r=Hbr[i];else if(i.slice(0,4)==="\\not")r="\\dotsb";else if(i in gf.math){if(Y$n.has(gf.math[i].group))r="\\dotsb"}return r});fXe={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Tt("\\dotso",function(e){var r=e.future().text;if(r in fXe)return"\\ldots\\,";else return"\\ldots"});Tt("\\dotsc",function(e){var r=e.future().text;if(r in fXe&&r!==",")return"\\ldots\\,";else return"\\ldots"});Tt("\\cdots",function(e){var r=e.future().text;if(r in fXe)return"\\@cdots\\,";else return"\\@cdots"});Tt("\\dotsb","\\cdots");Tt("\\dotsm","\\cdots");Tt("\\dotsi","\\!\\cdots");Tt("\\dotsx","\\ldots\\,");Tt("\\DOTSI","\\relax");Tt("\\DOTSB","\\relax");Tt("\\DOTSX","\\relax");Tt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Tt("\\,","\\tmspace+{3mu}{.1667em}");Tt("\\thinspace","\\,");Tt("\\>","\\mskip{4mu}");Tt("\\:","\\tmspace+{4mu}{.2222em}");Tt("\\medspace","\\:");Tt("\\;","\\tmspace+{5mu}{.2777em}");Tt("\\thickspace","\\;");Tt("\\!","\\tmspace-{3mu}{.1667em}");Tt("\\negthinspace","\\!");Tt("\\negmedspace","\\tmspace-{4mu}{.2222em}");Tt("\\negthickspace","\\tmspace-{5mu}{.277em}");Tt("\\enspace","\\kern.5em ");Tt("\\enskip","\\hskip.5em\\relax");Tt("\\quad","\\hskip1em\\relax");Tt("\\qquad","\\hskip2em\\relax");Tt("\\tag","\\@ifstar\\tag@literal\\tag@paren");Tt("\\tag@paren","\\tag@literal{({#1})}");Tt("\\tag@literal",(e)=>{if(e.macros.get("\\df@tag"))throw new ji("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Tt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Tt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Tt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Tt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Tt("\\newline","\\\\\\relax");Tt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");Dyr=la(Kk["Main-Regular"][84][1]-0.7*Kk["Main-Regular"][65][1]);Tt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Dyr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Tt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Dyr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Tt("\\hspace","\\@ifstar\\@hspacer\\@hspace");Tt("\\@hspace","\\hskip #1\\relax");Tt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Tt("\\ordinarycolon",":");Tt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Tt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Tt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Tt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Tt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Tt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Tt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Tt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Tt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Tt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Tt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Tt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Tt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Tt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Tt("∷","\\dblcolon");Tt("∹","\\eqcolon");Tt("≔","\\coloneqq");Tt("≕","\\eqqcolon");Tt("⩴","\\Coloneqq");Tt("\\ratio","\\vcentcolon");Tt("\\coloncolon","\\dblcolon");Tt("\\colonequals","\\coloneqq");Tt("\\coloncolonequals","\\Coloneqq");Tt("\\equalscolon","\\eqqcolon");Tt("\\equalscoloncolon","\\Eqqcolon");Tt("\\colonminus","\\coloneq");Tt("\\coloncolonminus","\\Coloneq");Tt("\\minuscolon","\\eqcolon");Tt("\\minuscoloncolon","\\Eqcolon");Tt("\\coloncolonapprox","\\Colonapprox");Tt("\\coloncolonsim","\\Colonsim");Tt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Tt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Tt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Tt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Tt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Tt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Tt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Tt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Tt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Tt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Tt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Tt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Tt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Tt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Tt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Tt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Tt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Tt("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Tt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Tt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Tt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Tt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Tt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Tt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Tt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Tt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Tt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Tt("\\imath","\\html@mathml{\\@imath}{ı}");Tt("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Tt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⟦}}");Tt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}"+"{\\mathclose{\\char`⟧}}");Tt("⟦","\\llbracket");Tt("⟧","\\rrbracket");Tt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⦃}}");Tt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}"+"{\\mathclose{\\char`⦄}}");Tt("↤","\\mapsfrom");Tt("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");Tt("⦃","\\lBrace");Tt("⦄","\\rBrace");Tt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}"+"{\\char`⦵}}");Tt("⦵","\\minuso");Tt("\\darr","\\downarrow");Tt("\\dArr","\\Downarrow");Tt("\\Darr","\\Downarrow");Tt("\\lang","\\langle");Tt("\\rang","\\rangle");Tt("\\uarr","\\uparrow");Tt("\\uArr","\\Uparrow");Tt("\\Uarr","\\Uparrow");Tt("\\N","\\mathbb{N}");Tt("\\R","\\mathbb{R}");Tt("\\Z","\\mathbb{Z}");Tt("\\alef","\\aleph");Tt("\\alefsym","\\aleph");Tt("\\Alpha","\\mathrm{A}");Tt("\\Beta","\\mathrm{B}");Tt("\\bull","\\bullet");Tt("\\Chi","\\mathrm{X}");Tt("\\clubs","\\clubsuit");Tt("\\cnums","\\mathbb{C}");Tt("\\Complex","\\mathbb{C}");Tt("\\Dagger","\\ddagger");Tt("\\diamonds","\\diamondsuit");Tt("\\empty","\\emptyset");Tt("\\Epsilon","\\mathrm{E}");Tt("\\Eta","\\mathrm{H}");Tt("\\exist","\\exists");Tt("\\harr","\\leftrightarrow");Tt("\\hArr","\\Leftrightarrow");Tt("\\Harr","\\Leftrightarrow");Tt("\\hearts","\\heartsuit");Tt("\\image","\\Im");Tt("\\infin","\\infty");Tt("\\Iota","\\mathrm{I}");Tt("\\isin","\\in");Tt("\\Kappa","\\mathrm{K}");Tt("\\larr","\\leftarrow");Tt("\\lArr","\\Leftarrow");Tt("\\Larr","\\Leftarrow");Tt("\\lrarr","\\leftrightarrow");Tt("\\lrArr","\\Leftrightarrow");Tt("\\Lrarr","\\Leftrightarrow");Tt("\\Mu","\\mathrm{M}");Tt("\\natnums","\\mathbb{N}");Tt("\\Nu","\\mathrm{N}");Tt("\\Omicron","\\mathrm{O}");Tt("\\plusmn","\\pm");Tt("\\rarr","\\rightarrow");Tt("\\rArr","\\Rightarrow");Tt("\\Rarr","\\Rightarrow");Tt("\\real","\\Re");Tt("\\reals","\\mathbb{R}");Tt("\\Reals","\\mathbb{R}");Tt("\\Rho","\\mathrm{P}");Tt("\\sdot","\\cdot");Tt("\\sect","\\S");Tt("\\spades","\\spadesuit");Tt("\\sub","\\subset");Tt("\\sube","\\subseteq");Tt("\\supe","\\supseteq");Tt("\\Tau","\\mathrm{T}");Tt("\\thetasym","\\vartheta");Tt("\\weierp","\\wp");Tt("\\Zeta","\\mathrm{Z}");Tt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Tt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Tt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Tt("\\bra","\\mathinner{\\langle{#1}|}");Tt("\\ket","\\mathinner{|{#1}\\rangle}");Tt("\\braket","\\mathinner{\\langle{#1}\\rangle}");Tt("\\Bra","\\left\\langle#1\\right|");Tt("\\Ket","\\left|#1\\right\\rangle");Tt("\\bra@ket",Pyr(!1));Tt("\\bra@set",Pyr(!0));Tt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Tt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Tt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Tt("\\angln","{\\angl n}");Tt("\\blue","\\textcolor{##6495ed}{#1}");Tt("\\orange","\\textcolor{##ffa500}{#1}");Tt("\\pink","\\textcolor{##ff00af}{#1}");Tt("\\red","\\textcolor{##df0030}{#1}");Tt("\\green","\\textcolor{##28ae7b}{#1}");Tt("\\gray","\\textcolor{gray}{#1}");Tt("\\purple","\\textcolor{##9d38bd}{#1}");Tt("\\blueA","\\textcolor{##ccfaff}{#1}");Tt("\\blueB","\\textcolor{##80f6ff}{#1}");Tt("\\blueC","\\textcolor{##63d9ea}{#1}");Tt("\\blueD","\\textcolor{##11accd}{#1}");Tt("\\blueE","\\textcolor{##0c7f99}{#1}");Tt("\\tealA","\\textcolor{##94fff5}{#1}");Tt("\\tealB","\\textcolor{##26edd5}{#1}");Tt("\\tealC","\\textcolor{##01d1c1}{#1}");Tt("\\tealD","\\textcolor{##01a995}{#1}");Tt("\\tealE","\\textcolor{##208170}{#1}");Tt("\\greenA","\\textcolor{##b6ffb0}{#1}");Tt("\\greenB","\\textcolor{##8af281}{#1}");Tt("\\greenC","\\textcolor{##74cf70}{#1}");Tt("\\greenD","\\textcolor{##1fab54}{#1}");Tt("\\greenE","\\textcolor{##0d923f}{#1}");Tt("\\goldA","\\textcolor{##ffd0a9}{#1}");Tt("\\goldB","\\textcolor{##ffbb71}{#1}");Tt("\\goldC","\\textcolor{##ff9c39}{#1}");Tt("\\goldD","\\textcolor{##e07d10}{#1}");Tt("\\goldE","\\textcolor{##a75a05}{#1}");Tt("\\redA","\\textcolor{##fca9a9}{#1}");Tt("\\redB","\\textcolor{##ff8482}{#1}");Tt("\\redC","\\textcolor{##f9685d}{#1}");Tt("\\redD","\\textcolor{##e84d39}{#1}");Tt("\\redE","\\textcolor{##bc2612}{#1}");Tt("\\maroonA","\\textcolor{##ffbde0}{#1}");Tt("\\maroonB","\\textcolor{##ff92c6}{#1}");Tt("\\maroonC","\\textcolor{##ed5fa6}{#1}");Tt("\\maroonD","\\textcolor{##ca337c}{#1}");Tt("\\maroonE","\\textcolor{##9e034e}{#1}");Tt("\\purpleA","\\textcolor{##ddd7ff}{#1}");Tt("\\purpleB","\\textcolor{##c6b9fc}{#1}");Tt("\\purpleC","\\textcolor{##aa87ff}{#1}");Tt("\\purpleD","\\textcolor{##7854ab}{#1}");Tt("\\purpleE","\\textcolor{##543b78}{#1}");Tt("\\mintA","\\textcolor{##f5f9e8}{#1}");Tt("\\mintB","\\textcolor{##edf2df}{#1}");Tt("\\mintC","\\textcolor{##e0e5cc}{#1}");Tt("\\grayA","\\textcolor{##f6f7f7}{#1}");Tt("\\grayB","\\textcolor{##f0f1f2}{#1}");Tt("\\grayC","\\textcolor{##e3e5e6}{#1}");Tt("\\grayD","\\textcolor{##d6d8da}{#1}");Tt("\\grayE","\\textcolor{##babec2}{#1}");Tt("\\grayF","\\textcolor{##888d93}{#1}");Tt("\\grayG","\\textcolor{##626569}{#1}");Tt("\\grayH","\\textcolor{##3b3e40}{#1}");Tt("\\grayI","\\textcolor{##21242c}{#1}");Tt("\\kaBlue","\\textcolor{##314453}{#1}");Tt("\\kaGreen","\\textcolor{##71B307}{#1}");Byr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};qbr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,b_e=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),MKe={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:"\\\"",math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Ybr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};D_e.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);if(typeof document<"u"){if(document.compatMode!=="CSS1Compat")typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),$yr=function(){throw new ji("KaTeX doesn't work in quirks mode.")}}Q$n={Span:kP,Anchor:Rre,SymbolNode:H_,SvgNode:Xk,PathNode:CR,LineNode:S_e},Gyr={version:X$n,render:$yr,renderToString:W$n,ParseError:ji,SETTINGS_SCHEMA:DKe,__parse:j$n,__renderToDomTree:gXe,__renderToHTMLTree:K$n,__setFontMetrics:xFn,__defineSymbol:Ne,__defineFunction:Fa,__defineMacro:Tt,__domTree:Q$n}});function avr(){Wb.addHook("beforeSanitizeAttributes",(r)=>{if(r.tagName==="A"&&r.hasAttribute("target"))r.setAttribute("data-temp-href-target",r.getAttribute("target")??"")}),Wb.addHook("afterSanitizeAttributes",(r)=>{if(r.tagName==="A"&&r.hasAttribute("data-temp-href-target")){if(r.setAttribute("target",r.getAttribute("data-temp-href-target")??""),r.removeAttribute("data-temp-href-target"),r.getAttribute("target")==="_blank")r.setAttribute("rel","noopener")}})}function q_e(e){return[...e.cssRules].map((r)=>r.cssText).join(` +`)}var HV,$_e,Z$n,P_e,J$n,yXe,vXe,sL,qV,V_e,jyr,Kyr,mXe,Sd,t3="#ffffff",r3="#f2f2f2",Bo,Vyr,lC,eUn,tUn,rUn,nUn,iUn,Kb,aUn,sUn,oUn,lUn,cUn,uUn,hUn,dUn,fUn,pUn,gUn,mUn,bUn,yUn,vUn,_Un,e3,k0,Xyr,Qyr,EUn,Fs,wUn,SUn,TUn,xUn,Lre,_Xe,OR,CUn,kUn,AUn,RUn,zE,fv,U_e,G_e,IR,Ore,Nre,IUn,YV,H_e,Zyr,Jyr,evr,EXe,wXe,ea,tvr,rvr,Mre,OUn,Hyr,nvr,NUn,ivr,Mp,RP,LUn,MUn,DUn,svr,qyr,ho,PUn,BUn,FUn,$Un,ovr,SXe,UUn,GUn,n3,bXe,zUn,VUn,Yyr,B_e,bf,WV,HUn,jV,ai,qUn,YUn,Bl,i3,F_e,WUn,jUn,lvr,Y_e,TXe="",xXe="",CXe="",kXe,qs,Ys,oo,Js,lo,_o,fo,Wyr,KUn,Ar,NR,KV,W_e,Dre,XUn,z_e,Pre,j_e,QUn;var eo=Re(()=>{Zs();Ja();x0();x0();x0();x0();x0();x0();x0();x0();x0();x0();x0();x0();SP();HV=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,$_e=/\s/,Z$n=I((e)=>{let r="",i=0,a=0;while(ai&&$_e.test(e[h-1]))h--;r+=e.slice(i,h)+` +`,i=l+1,a=i}return r+e.slice(i)},"stripAnyComments"),P_e=I((e)=>e===` +`||e==="\r","isLineBreak"),J$n=I((e,r)=>{let i=-1;for(let a=r;a{let r=0;while(rP_e(e[y])&&e.startsWith(o,y+1)?J$n(e,y+1+o.length):-1,"closingEnd"),h=a[0]+1,d=-1;for(let y=h;y{for(let{id:r,detector:i,loader:a}of e)jyr(r,i,a)},"registerLazyLoadedDiagrams"),jyr=I((e,r,i)=>{if(sL[e])Ze.warn(`Detector with key ${e} already exists. Overwriting.`);sL[e]={detector:r,loader:i},Ze.debug(`Detector with key ${e} added${i?" with loader":""}`)},"addDetector"),Kyr=I((e)=>sL[e].loader,"getDiagramLoader"),mXe=I((e,r,{depth:i=2}={})=>{let a={depth:i};if(Array.isArray(r)&&!Array.isArray(e))return r.forEach((o)=>mXe(e,o,a)),e;else if(Array.isArray(r)&&Array.isArray(e))return r.forEach((o)=>{if(!e.includes(o))e.push(o)}),e;if(e===void 0||e===null||i<=0)if(e!==void 0&&e!==null&&typeof e==="object"&&typeof r==="object")return Object.assign(e,r);else return r;if(r!==void 0&&r!==null&&typeof e==="object"&&typeof r==="object"){let o=e;Object.entries(r).forEach(([l,h])=>{if(typeof h==="object"){if(h===null)return;if(!Object.hasOwn(e,l))Object.defineProperty(e,l,{value:void 0,writable:!0,enumerable:!0,configurable:!0});if(o[l]===void 0)o[l]=Array.isArray(h)?[]:{};if(typeof o[l]==="object")o[l]=mXe(o[l],h,{depth:i-1})}else if(typeof o[l]!=="object")if(Object.hasOwn(e,l))o[l]=h;else Object.defineProperty(e,l,{value:h,writable:!0,enumerable:!0,configurable:!0})})}return e},"assignWithDepth"),Sd=mXe,Bo=I((e,r)=>r?pt(e,{s:-40,l:10}):pt(e,{s:-40,l:-10}),"mkBorder"),Vyr=I((e)=>typeof e==="object"&&e!==null&&!Array.isArray(e),"isPlainObject"),lC=I((e,r)=>Vyr(e)&&Vyr(r)?{...e,...r}:r,"applyOverride"),eUn=class{static{I(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode)this.rowOdd=this.rowOdd||Zr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Zr(this.mainBkg,10);else this.rowOdd=this.rowOdd||Xr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Xr(this.mainBkg,5);if(this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||pt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||pt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||pt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||pt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||pt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||pt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||pt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||pt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||pt(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])}),Object.hasOwn(e,"nodeBorder")&&!Object.hasOwn(e,"useGradient"))this.useGradient=!1}},tUn=I((e)=>{let r=new eUn;return r.calculate(e),r},"getThemeVariables"),rUn=class{static{I(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xr(this.primaryColor,16),this.tertiaryColor=pt(this.primaryColor,{h:-160}),this.primaryBorderColor=Fr(this.background),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.tertiaryColor),this.lineColor=Fr(this.background),this.textColor=Fr(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xr(Fr("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ep(255,255,255,0.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=Zr("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Zr(this.sectionBkgColor,10),this.taskBorderColor=ep(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ep(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Xr(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Zr(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){this.secondBkg=Xr(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=Xr(this.labelBackground,25),this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=Xr(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=Fr(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=pt(this.primaryColor,{h:64}),this.fillType3=pt(this.secondaryColor,{h:64}),this.fillType4=pt(this.primaryColor,{h:-64}),this.fillType5=pt(this.secondaryColor,{h:-64}),this.fillType6=pt(this.primaryColor,{h:128}),this.fillType7=pt(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||pt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||pt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||pt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||pt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||pt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||pt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||pt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||pt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||pt(this.primaryColor,{h:330});for(let e=0;e{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},nUn=I((e)=>{let r=new rUn;return r.calculate(e),r},"getThemeVariables"),iUn=class{static{I(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=pt(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=pt(this.primaryColor,{h:-160}),this.primaryBorderColor=Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.tertiaryColor),this.lineColor=Fr(this.background),this.textColor=Fr(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Bo(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=ep(102,102,255,0.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||pt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||pt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||pt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||pt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||pt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||pt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||pt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||pt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||pt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Zr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Zr(this.tertiaryColor,40);for(let e=0;e{if(this[i]==="calculated")this[i]=void 0}),typeof e!=="object"){this.updateColors();return}let r=Object.keys(e);r.forEach((i)=>{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},Kb=I((e)=>{let r=new iUn;return r.calculate(e),r},"getThemeVariables"),aUn=class{static{I(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=Xr("#cde498",10),this.primaryBorderColor=Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.primaryColor),this.lineColor=Fr(this.background),this.textColor=Fr(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){this.actorBorder=Zr(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||pt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||pt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||pt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||pt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||pt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||pt(this.primaryColor,{h:210}),this.cScale9=this.cScale9||pt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||pt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||pt(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Zr(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Zr(this.tertiaryColor,40);for(let e=0;e{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},sUn=I((e)=>{let r=new aUn;return r.calculate(e),r},"getThemeVariables"),oUn=class{static{I(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Xr(this.contrast,55),this.background="#ffffff",this.tertiaryColor=pt(this.primaryColor,{h:-160}),this.primaryBorderColor=Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.tertiaryColor),this.lineColor=Fr(this.background),this.textColor=Fr(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||Xr(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){this.secondBkg=Xr(this.contrast,55),this.border2=this.contrast,this.actorBorder=Xr(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},lUn=I((e)=>{let r=new oUn;return r.calculate(e),r},"getThemeVariables"),cUn=class{static{I(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Bo(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(eu(this.background)?Xr(this.background,4):Zr(this.background,4));let e="#ECECFE",r="#E9E9F1",i=pt(e,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||e,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||pt(e,{h:30}),this.cScale4=this.cScale4||pt(e,{h:60}),this.cScale5=this.cScale5||pt(e,{h:90}),this.cScale6=this.cScale6||pt(e,{h:120}),this.cScale7=this.cScale7||pt(e,{h:150}),this.cScale8=this.cScale8||pt(e,{h:210,l:150}),this.cScale9=this.cScale9||pt(e,{h:270}),this.cScale10=this.cScale10||pt(e,{h:300}),this.cScale11=this.cScale11||pt(e,{h:330}),this.darkMode)for(let o=0;o{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},uUn=I((e)=>{let r=new cUn;return r.calculate(e),r},"getThemeVariables"),hUn=class{static{I(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xr(this.primaryColor,16),this.tertiaryColor=pt(this.primaryColor,{h:-160}),this.primaryBorderColor=Fr(this.background),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xr(Fr("#323D47"),10),this.border1="#ccc",this.border2=ep(255,255,255,0.25),this.arrowheadColor=Fr(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?Xr(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||pt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||pt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||pt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||pt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||pt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||pt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||pt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||pt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||pt(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},dUn=I((e)=>{let r=new hUn;return r.calculate(e),r},"getThemeVariables"),fUn=class{static{I(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Bo("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(eu(this.background)?Xr(this.background,4):Zr(this.background,4));let e="#ECECFE",r="#E9E9F1",i=pt(e,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||e,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let o=0;o{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},pUn=I((e)=>{let r=new fUn;return r.calculate(e),r},"getThemeVariables"),gUn=class{static{I(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xr(this.primaryColor,16),this.tertiaryColor=pt(this.primaryColor,{h:-160}),this.primaryBorderColor=Fr(this.background),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xr(Fr("#323D47"),10),this.border1="#ccc",this.border2=ep(255,255,255,0.25),this.arrowheadColor=Fr(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?Xr(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||pt(this.primaryColor,{h:30}),this.cScale4=this.cScale4||pt(this.primaryColor,{h:60}),this.cScale5=this.cScale5||pt(this.primaryColor,{h:90}),this.cScale6=this.cScale6||pt(this.primaryColor,{h:120}),this.cScale7=this.cScale7||pt(this.primaryColor,{h:150}),this.cScale8=this.cScale8||pt(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||pt(this.primaryColor,{h:270}),this.cScale10=this.cScale10||pt(this.primaryColor,{h:300}),this.cScale11=this.cScale11||pt(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},mUn=I((e)=>{let r=new gUn;return r.calculate(e),r},"getThemeVariables"),bUn=class{static{I(this,"Theme")}constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Bo("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.usecaseActorBorder="#A78BFA",this.usecaseActorBkg="#F5F3FF",this.usecaseBorder="#2DD4BF",this.usecaseBkg="#F0FDFA",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseBoundaryBkg="#FAFAFC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#000000"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||(eu(this.background)?Xr(this.background,4):Zr(this.background,4));let e="#ECECFE",r="#E9E9F1",i=pt(e,{h:180,l:5});this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||e,this.activeTaskBorderColor=this.activeTaskBorderColor||e,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(e,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#FFFFFF",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#F9F9FB",this.compositeTitleBackground=this.compositeTitleBackground||"#F9F9FB",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||"white";for(let o=0;o{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},yUn=I((e)=>{let r=new bUn;return r.calculate(e),r},"getThemeVariables"),vUn=class{static{I(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Xr(this.primaryColor,16),this.tertiaryColor=pt(this.primaryColor,{h:-160}),this.primaryBorderColor=Fr(this.background),this.secondaryBorderColor=Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bo(this.tertiaryColor,this.darkMode),this.primaryTextColor=Fr(this.primaryColor),this.secondaryTextColor=Fr(this.secondaryColor),this.tertiaryTextColor=Fr(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Xr(Fr("#323D47"),10),this.border1="#ccc",this.border2=ep(255,255,255,0.25),this.arrowheadColor=Fr(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.usecaseActorBorder="#A78BFA",this.usecaseBorder="#2DD4BF",this.usecaseBoundaryBorder="#BDBCCC",this.usecaseIncludeLine="#38BDF8",this.usecaseExtendLine="#FB923C",this.filterColor="#FFFFFF"}updateColors(){this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||pt(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||pt(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bo(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bo(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bo(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bo(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Fr(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Fr(this.tertiaryColor),this.lineColor=this.lineColor||Fr(this.background),this.arrowheadColor=this.arrowheadColor||Fr(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.secondBkg=this.secondBkg==="calculated"?Xr(this.mainBkg,16):this.secondBkg,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?Zr(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.flowContainerStroke=this.flowContainerStroke||this.secondaryBorderColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||Zr(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Fr(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||Xr(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||this.secondBkg,this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateEdgeLabelBackground=this.stateEdgeLabelBackground||"#16141F",this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||"#16141F",this.altBackground=this.altBackground||"#16141F",this.compositeTitleBackground=this.compositeTitleBackground||"#16141F",this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad",this.sectionBkgColor=this.sectionBkgColor||this.cScale0,this.sectionBkgColor2=this.sectionBkgColor2||this.cScale1,this.altSectionBkgColor=this.altSectionBkgColor||this.background;for(let i=0;i{this["fillType"+a]=this["fillType"+a]||i});for(let i=0;i{this[i]=e[i]}),this.updateColors(),r.forEach((i)=>{this[i]=lC(this[i],e[i])})}},_Un=I((e)=>{let r=new vUn;return r.calculate(e),r},"getThemeVariables"),e3={base:{getThemeVariables:tUn},dark:{getThemeVariables:nUn},default:{getThemeVariables:Kb},forest:{getThemeVariables:sUn},neutral:{getThemeVariables:lUn},neo:{getThemeVariables:uUn},"neo-dark":{getThemeVariables:dUn},redux:{getThemeVariables:pUn},"redux-dark":{getThemeVariables:mUn},"redux-color":{getThemeVariables:yUn},"redux-dark-color":{getThemeVariables:_Un}},k0={flowchart:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,wrappingWidth:120,minNodeWidth:120,inheritDir:!1},swimlane:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"swimlane",lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!1},agentflow:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:8,nodeSpacing:50,rankSpacing:50,wrappingWidth:120,minNodeWidth:120},sequence:{useMaxWidth:!0,theme:"redux-color",look:"neo",hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,htmlLabels:!1,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},state:{useMaxWidth:!0,theme:"redux-color",look:"neo",layout:"elk",wrappingWidth:120,minNodeWidth:120,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5},er:{useMaxWidth:!0,theme:"redux-color",look:"neo",titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:0.75,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,theme:"redux-color",look:"neo",rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,colorBy:"branch",padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,bitOrder:"ascending",paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:0.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:0.17},usecase:{useMaxWidth:!0,theme:"redux-color",look:"neo",wrappingWidth:120,minNodeWidth:120,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:"normal",usecaseFontSize:12,usecaseFontFamily:'"Open Sans", sans-serif',usecaseFontWeight:"normal",nodeSpacing:50,rankSpacing:50,diagramPadding:20,colorScheme:"role"},venn:{useMaxWidth:!0,theme:"redux-color",look:"neo",width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},theme:"default",look:"classic",handDrawnSeed:0,layout:"elk",maxTextSize:50000,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Xyr={...k0,deterministicIDSeed:void 0,elk:{mergeEdges:!1,straightenEdges:!0,lineHops:!0,preset:"default",nodePlacementStrategy:void 0,layeringStrategy:void 0,cycleBreakingStrategy:void 0,layeringLayerBound:4,nodePlacementAlignment:void 0,forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1,orientFeedbackEdges:!0},themeCSS:void 0,themeVariables:e3.default.getThemeVariables(),sequence:{...k0.sequence,messageFont:I(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:I(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:I(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{theme:k0.class?.theme,look:k0.class?.look,layout:k0.class?.layout,hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...k0.gantt,tickInterval:void 0,useWidth:void 0},c4:{...k0.c4,useWidth:void 0,personFont:I(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...k0.flowchart,inheritDir:!1},external_personFont:I(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:I(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:I(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:I(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:I(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:I(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:I(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:I(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:I(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:I(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:I(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:I(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:I(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:I(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:I(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:I(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:I(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:I(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:I(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:I(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:I(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...k0.pie,useWidth:984},xyChart:{...k0.xyChart,useWidth:void 0},requirement:{...k0.requirement,useWidth:void 0},packet:{...k0.packet},eventmodeling:{...k0.eventmodeling},treeView:{...k0.treeView,useWidth:void 0},radar:{...k0.radar},usecase:{...k0.usecase},railroad:{...k0.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...k0.ishikawa},sankey:{...k0.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...k0.venn},cynefin:{...k0.cynefin}},Qyr=I((e,r="")=>Object.keys(e).reduce((i,a)=>{if(Array.isArray(e[a]))return i;else if(typeof e[a]==="object"&&e[a]!==null)return[...i,r+a,...Qyr(e[a],"")];return[...i,r+a]},[]),"keyify"),EUn=new Set(Qyr(Xyr,"")),Fs=Xyr,wUn={"flowchart-v2":"flowchart","flowchart-elk":"flowchart",classDiagram:"class",stateDiagram:"state",xychart:"xyChart",railroadAbnf:"railroad",railroadEbnf:"railroad",railroadPeg:"railroad"},SUn=I((e)=>wUn[e]??e,"getDiagramConfigKey"),TUn={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},xUn=I((e,r)=>{for(let i of Object.keys(e)){let a=e[i];if(i.startsWith("__")||i.includes("proto")||i.includes("constr")||typeof a!=="string"||!r.test(a))Ze.debug("sanitize deleting dictionary entry:",i,a),delete e[i]}},"sanitizeDictionaryConfig"),Lre=I((e)=>{if(Ze.debug("sanitizeDirective called with",e),typeof e!=="object"||e==null)return;if(Array.isArray(e)){e.forEach((r)=>Lre(r));return}for(let r of Object.keys(e)){if(Ze.debug("Checking key",r),r.startsWith("__")||r.includes("proto")||r.includes("constr")||!EUn.has(r)||e[r]==null){Ze.debug("sanitize deleting key: ",r),delete e[r];continue}if(typeof e[r]==="object"){let a=TUn[r];if(a)xUn(e[r],a);else Ze.debug("sanitizing object",r),Lre(e[r]);continue}let i=["themeCSS","fontFamily","altFontFamily"];for(let a of i)if(r.includes(a))Ze.debug("sanitizing css option",r),e[r]=_Xe(e[r])}if(e.themeVariables)for(let r of Object.keys(e.themeVariables)){let i=e.themeVariables[r];if(i?.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/))e.themeVariables[r]=""}Ze.debug("After sanitization",e)},"sanitizeDirective"),_Xe=I((e)=>{let r=0,i=0;for(let a of e){if(r{if(e==="theme")return r==="null"||Object.hasOwn(e3,r);return e!=="look"||kUn.has(r)},"isUsableAppearance"),RUn=I((e,r,i)=>{if(!e)return;return[e[r]?.[i],e[i]].find((o)=>o!==void 0&&AUn(i,o))},"readAppearance"),zE=I((e)=>e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())?!1:!0,"evaluate"),fv=Sd({},OR),G_e={},IR=[],Ore=Sd({},OR),IUn=I((e,r)=>{if(!Nre)return;let i=[r,...[...IR].reverse(),G_e,OR],a=e[Nre];for(let o of CUn)for(let l of i){let h=RUn(l,Nre,o);if(h===void 0)continue;if(e[o]=h,a?.[o]!==void 0)a[o]=h;break}},"resolveAppearance"),YV=I((e,r)=>{let i=Sd({},e),a={};for(let l of r)tvr(l),a=Sd(a,l);if(i=Sd(i,a),IUn(i,a),(Boolean(a.theme)||i.theme!==e.theme)&&i.theme&&Object.hasOwn(e3,i.theme)){let l=Sd({},U_e),h=Sd(l.themeVariables||{},a.themeVariables);i.themeVariables=e3[i.theme].getThemeVariables(h)}return Ore=i,NUn(Ore),Ore},"updateCurrentConfig"),H_e=I((e)=>{Nre=e===void 0?void 0:SUn(e),YV(fv,IR)},"setDiagramConfigScope"),Zyr=I((e)=>{if(fv=Sd({},OR),fv=Sd(fv,e),G_e=Sd({},e),e.theme&&Object.hasOwn(e3,e.theme))fv.themeVariables=e3[e.theme].getThemeVariables(e.themeVariables);return YV(fv,IR),fv},"setSiteConfig"),Jyr=I((e)=>{U_e=Sd({},e)},"saveConfigFromInitialize"),evr=I((e)=>(fv=Sd(fv,e),G_e=Sd(G_e,e),YV(fv,IR),fv),"updateSiteConfig"),EXe=I(()=>Sd({},fv),"getSiteConfig"),wXe=I((e)=>(YV(Ore,[e]),ea()),"setConfig"),ea=I(()=>Sd({},Ore),"getConfig"),tvr=I((e)=>{if(!e)return;["secure",...fv.secure??[]].forEach((r)=>{if(Object.hasOwn(e,r))Ze.debug(`Denied attempt to modify a secure key ${r}`,e[r]),delete e[r]}),Object.keys(e).forEach((r)=>{if(r.startsWith("__"))delete e[r]}),Object.keys(e).forEach((r)=>{if(typeof e[r]==="string"&&(e[r].includes("<")||e[r].includes(">")||e[r].includes("url(data:")))delete e[r];if(typeof e[r]==="object")tvr(e[r])})},"sanitize"),rvr=I((e)=>{if(Lre(e),e.fontFamily&&!e.themeVariables?.fontFamily)e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily};IR.push(e),YV(fv,IR)},"addDirective"),Mre=I((e=fv)=>{IR=[],Nre=void 0,YV(e,IR)},"reset"),OUn={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Hyr={},nvr=I((e)=>{if(Hyr[e])return;Ze.warn(OUn[e]),Hyr[e]=!0},"issueWarning"),NUn=I((e)=>{if(!e)return;if(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)nvr("LAZY_LOAD_DEPRECATED")},"checkConfig"),ivr=I(()=>{let e={};if(U_e)e=Sd(e,U_e);for(let r of IR)e=Sd(e,r);return e},"getUserDefinedConfig"),Mp=I((e)=>{if(e.flowchart?.htmlLabels!=null)nvr("FLOWCHART_HTML_LABELS_DEPRECATED");return zE(e.htmlLabels??e.flowchart?.htmlLabels??!0)},"getEffectiveHtmlLabels"),RP=/<\/?br\s*\/?>/gi,LUn=new RegExp(RP.source,"i"),MUn=I((e)=>{if(!e)return[""];return ovr(e).replace(/\\n/g,"#br#").split("#br#")},"getRows"),DUn=(()=>{let e=!1;return()=>{if(!e)avr(),e=!0}})();I(avr,"setupDompurifyHooks");svr=I((e)=>(DUn(),Wb.sanitize(e)),"removeScript"),qyr=I((e,r)=>{if(Mp(r)){let i=r.securityLevel;if(i==="antiscript"||i==="strict"||i==="sandbox")e=svr(e);else if(i!=="loose")e=ovr(e),e=e.replace(//g,">"),e=e.replace(/=/g,"="),e=$Un(e)}return e},"sanitizeMore"),ho=I((e,r)=>{if(!e)return e;if(r.dompurifyConfig)e=Wb.sanitize(qyr(e,r),r.dompurifyConfig).toString();else e=Wb.sanitize(qyr(e,r),{FORBID_TAGS:["style"]}).toString();return e},"sanitizeText"),PUn=I((e,r)=>{if(typeof e==="string")return ho(e,r);return e.flat().map((i)=>ho(i,r))},"sanitizeTextOrArray"),BUn=I((e)=>LUn.test(e),"hasBreaks"),FUn=I((e)=>e.split(RP),"splitBreaks"),$Un=I((e)=>e.replace(/#br#/g,"
"),"placeholderToBreak"),ovr=I((e)=>e.replace(RP,"#br#"),"breakToPlaceholder"),SXe=I((e)=>{let r="";if(e)r=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,r=CSS.escape(r);return r},"getUrl"),UUn=I(function(...e){let r=e.filter((i)=>!isNaN(i));return Math.max(...r)},"getMax"),GUn=I(function(...e){let r=e.filter((i)=>!isNaN(i));return Math.min(...r)},"getMin"),n3=I(function(e){let r=e.split(/(,)/),i=[];for(let a=0;a0&&a+1Math.max(0,e.split(r).length-1),"countOccurrence"),zUn=I((e,r)=>{let i=bXe(e,"~"),a=bXe(r,"~");return i===1&&a===1},"shouldCombineSets"),VUn=I((e)=>{let r=bXe(e,"~"),i=!1;if(r<=1)return e;if(r%2!==0&&e.startsWith("~"))e=e.substring(1),i=!0;let a=[...e],o=a.indexOf("~"),l=a.lastIndexOf("~");while(o!==-1&&l!==-1&&o!==l)a[o]="<",a[l]=">",o=a.indexOf("~"),l=a.lastIndexOf("~");if(i)a.unshift("~");return a.join("")},"processSet"),Yyr=I(()=>window.MathMLElement!==void 0,"isMathMLSupported"),B_e=/\$\$(.*?)\$\$/g,bf=I((e)=>(e.match(B_e)?.length??0)>0,"hasKatex"),WV=I(async(e,r)=>{let i=document.createElement("div");i.innerHTML=await jV(e,r),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",i);let o={width:i.clientWidth,height:i.clientHeight};return i.remove(),o},"calculateMathMLDimensions"),HUn=I(async(e,r)=>{if(!bf(e))return e;if(!(Yyr()||r.legacyMathML||r.forceLegacyMathML))return e.replace(B_e,"MathML is unsupported in this environment.");{await Promise.resolve().then(() => zyr());let a=r.forceLegacyMathML||!Yyr()&&r.legacyMathML?"htmlAndMathml":"mathml";return e.split(RP).map((o)=>bf(o)?`
${o}
`:`
${o}
`).join("").replace(B_e,(o,l)=>Gyr.renderToString(l,{throwOnError:!0,displayMode:!0,output:a}).replace(/\n/g," ").replace(//g,""))}return e.replace(B_e,"Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.")},"renderKatexUnsanitized"),jV=I(async(e,r)=>ho(await HUn(e,r),r),"renderKatexSanitized"),ai={getRows:MUn,sanitizeText:ho,sanitizeTextOrArray:PUn,hasBreaks:BUn,splitBreaks:FUn,lineBreakRegex:RP,removeScript:svr,getUrl:SXe,evaluate:zE,getMax:UUn,getMin:GUn},qUn=I(function(e,r){for(let i of r)e.attr(i[0],i[1])},"d3Attrs"),YUn=I(function(e,r,i){let a=new Map;if(i)a.set("width","100%"),a.set("style",`max-width: ${r}px;`);else a.set("height",e),a.set("width",r);return a},"calculateSvgSizeAttrs"),Bl=I(function(e,r,i,a){let o=YUn(r,i,a);qUn(e,o)},"configureSvgSize"),i3=I(function(e,r,i,a){let o=r.node().getBBox(),{width:l,height:h}=o;Ze.info(`SVG bounds: ${l}x${h}`,o);let d=0,p=0;Ze.info(`Graph bounds: ${d}x${p}`,e),d=l+i*2,p=h+i*2,Ze.info(`Calculated bounds: ${d}x${p}`),Bl(r,p,d,a);let m=`${o.x-i} ${o.y-i} ${o.width+2*i} ${o.height+2*i}`;r.attr("viewBox",m)},"setupGraphViewbox"),F_e={};I(q_e,"cssStyleSheetToString");WUn=I((e,r,i,a)=>{let o="";if(e in F_e&&F_e[e])o=F_e[e]({...i,svgId:a});else Ze.warn(`No theme found for ${e}`);return`& { font-family: ${i.fontFamily}; font-size: ${i.fontSize}; fill: ${i.textColor} @@ -392,64 +392,64 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};MKe={pt:1,mm:2.845275590 } ${r} -`},"getStyles"),zUn=I((e,r)=>{if(r!==void 0)D_e[e]=r},"addStylesForDiagram"),nvr=GUn,V_e={};XN(V_e,{clear:()=>qs,getAccDescription:()=>lo,getAccTitle:()=>oo,getDiagramTitle:()=>fo,setAccDescription:()=>Js,setAccTitle:()=>Ys,setDiagramTitle:()=>_o});TXe=I((e)=>ho(e,ea()),"sanitizeText"),qs=I(()=>{EXe="",SXe="",wXe=""},"clear"),Ys=I((e)=>{EXe=TXe(e).replace(/^\s+/g,"")},"setAccTitle"),oo=I(()=>EXe,"getAccTitle"),Js=I((e)=>{SXe=TXe(e).replace(/\n\s+/g,` -`)},"setAccDescription"),lo=I(()=>SXe,"getAccDescription"),_o=I((e)=>{wXe=TXe(e)},"setDiagramTitle"),fo=I(()=>wXe,"getDiagramTitle"),zyr=Ze,VUn=sre,Ar=ea,RR=vXe,YV=AR,H_e=I((e)=>ho(e,Ar()),"sanitizeText"),Nre=n3,HUn=I(()=>V_e,"getCommonDb"),$_e={},Lre=I((e,r,i)=>{if($_e[e])zyr.warn(`Diagram with id ${e} already registered. Overwriting.`);if($_e[e]=r,i)Vyr(e,i);zUn(e,r.styles),r.injectUtils?.(zyr,VUn,Ar,H_e,Nre,HUn(),()=>{})},"registerDiagram"),q_e=I((e)=>{if(e in $_e)return $_e[e];throw new qUn(e)},"getDiagram"),qUn=class extends Error{static{I(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}});function AP(e,r){return e==null||r==null?NaN:er?1:e>=r?0:NaN}function xXe(e,r){return e==null||r==null?NaN:re?1:r>=e?0:NaN}function RP(e){let r,i,a;if(e.length!==2)r=AP,i=(d,p)=>AP(e(d),p),a=(d,p)=>e(d)-p;else r=e===AP||e===xXe?e:YUn,i=e,a=e;function o(d,p,m=0,y=d.length){if(m>>1;if(i(d[E],p)<0)m=E+1;else y=E}while(m>>1;if(i(d[E],p)<=0)m=E+1;else y=E}while(mm&&a(d[E-1],p)>-a(d[E],p)?E-1:E}return{left:o,center:h,right:l}}function YUn(){return 0}var CXe=()=>{};function kXe(e){return e===null?NaN:+e}var ivr,avr,WUn,jUn,AXe;var svr=Re(()=>{CXe();ivr=RP(AP),avr=ivr.right,WUn=ivr.left,jUn=RP(kXe).center,AXe=avr});function ovr({_intern:e,_key:r},i){let a=r(i);return e.has(a)?e.get(a):i}function KUn({_intern:e,_key:r},i){let a=r(i);if(e.has(a))return e.get(a);return e.set(a,i),i}function XUn({_intern:e,_key:r},i){let a=r(i);if(e.has(a))i=e.get(a),e.delete(a);return i}function QUn(e){return e!==null&&typeof e==="object"?e.valueOf():e}var Mre;var lvr=Re(()=>{Mre=class Mre extends Map{constructor(e,r=QUn){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,a]of e)this.set(i,a)}get(e){return super.get(ovr(this,e))}has(e){return super.has(ovr(this,e))}set(e,r){return super.set(KUn(this,e),r)}delete(e){return super.delete(XUn(this,e))}}});function Y_e(e,r,i){let a=(r-e)/Math.max(0,i),o=Math.floor(Math.log10(a)),l=a/Math.pow(10,o),h=l>=ZUn?10:l>=JUn?5:l>=eGn?2:1,d,p,m;if(o<0){if(m=Math.pow(10,-o)/h,d=Math.round(e*m),p=Math.round(r*m),d/mr)--p;m=-m}else{if(m=Math.pow(10,o)*h,d=Math.round(e/m),p=Math.round(r/m),d*mr)--p}if(p0))return[];if(e===r)return[e];let a=r=o))return[];let d=l-o+1,p=Array(d);if(a)if(h<0)for(let m=0;m{ZUn=Math.sqrt(50),JUn=Math.sqrt(10),eGn=Math.sqrt(2)});function j_e(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i=o))i=o}return i}function K_e(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i>a||i===void 0&&a>=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i>o||i===void 0&&o>=o))i=o}return i}function X_e(e,r,i){e=+e,r=+r,i=(o=arguments.length)<2?(r=e,e=0,1):o<3?1:+i;var a=-1,o=Math.max(0,Math.ceil((r-e)/i))|0,l=Array(o);while(++a{svr();CXe();cvr();lvr()});function RXe(e){return e}function tGn(e){return"translate("+e+",0)"}function rGn(e){return"translate(0,"+e+")"}function nGn(e){return(r)=>+e(r)}function iGn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(i)=>+e(i)+r}function aGn(){return!this.__axis}function hvr(e,r){var i=[],a=null,o=null,l=6,h=6,d=3,p=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,m=e===Z_e||e===Q_e?-1:1,y=e===Q_e||e===IXe?"x":"y",E=e===Z_e||e===OXe?tGn:rGn;function w(T){var x=a==null?r.ticks?r.ticks.apply(r,i):r.domain():a,k=o==null?r.tickFormat?r.tickFormat.apply(r,i):RXe:o,A=Math.max(l,0)+d,R=r.range(),N=+R[0]+p,L=+R[R.length-1]+p,B=(r.bandwidth?iGn:nGn)(r.copy(),p),D=T.selection?T.selection():T,P=D.selectAll(".domain").data([null]),F=D.selectAll(".tick").data(x,r).order(),H=F.exit(),K=F.enter().append("g").attr("class","tick"),Q=F.select("line"),Z=F.select("text");if(P=P.merge(P.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge(K),Q=Q.merge(K.append("line").attr("stroke","currentColor").attr(y+"2",m*l)),Z=Z.merge(K.append("text").attr("fill","currentColor").attr(y,m*A).attr("dy",e===Z_e?"0em":e===OXe?"0.71em":"0.32em")),T!==D)P=P.transition(T),F=F.transition(T),Q=Q.transition(T),Z=Z.transition(T),H=H.transition(T).attr("opacity",uvr).attr("transform",function(Y){return isFinite(Y=B(Y))?E(Y+p):this.getAttribute("transform")}),K.attr("opacity",uvr).attr("transform",function(Y){var j=this.parentNode.__axis;return E((j&&isFinite(j=j(Y))?j:B(Y))+p)});H.remove(),P.attr("d",e===Q_e||e===IXe?h?"M"+m*h+","+N+"H"+p+"V"+L+"H"+m*h:"M"+p+","+N+"V"+L:h?"M"+N+","+m*h+"V"+p+"H"+L+"V"+m*h:"M"+N+","+p+"H"+L),F.attr("opacity",1).attr("transform",function(Y){return E(B(Y)+p)}),Q.attr(y+"2",m*l),Z.attr(y,m*A).text(k),D.filter(aGn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===IXe?"start":e===Q_e?"end":"middle"),D.each(function(){this.__axis=B})}return w.scale=function(T){return arguments.length?(r=T,w):r},w.ticks=function(){return i=Array.from(arguments),w},w.tickArguments=function(T){return arguments.length?(i=T==null?[]:Array.from(T),w):i.slice()},w.tickValues=function(T){return arguments.length?(a=T==null?null:Array.from(T),w):a&&a.slice()},w.tickFormat=function(T){return arguments.length?(o=T,w):o},w.tickSize=function(T){return arguments.length?(l=h=+T,w):l},w.tickSizeInner=function(T){return arguments.length?(l=+T,w):l},w.tickSizeOuter=function(T){return arguments.length?(h=+T,w):h},w.tickPadding=function(T){return arguments.length?(d=+T,w):d},w.offset=function(T){return arguments.length?(p=+T,w):p},w}function NXe(e){return hvr(Z_e,e)}function LXe(e){return hvr(OXe,e)}var Z_e=1,IXe=2,OXe=3,Q_e=4,uvr=0.000001;var dvr=()=>{};var fvr=Re(()=>{dvr()});function gvr(){for(var e=0,r=arguments.length,i={},a;e=0)a=i.slice(o+1),i=i.slice(0,o);if(i&&!r.hasOwnProperty(i))throw Error("unknown type: "+i);return{type:i,name:a}})}function lGn(e,r){for(var i=0,a=e.length,o;i{sGn={value:()=>{}};J_e.prototype=gvr.prototype={constructor:J_e,on:function(e,r){var i=this._,a=oGn(e+"",i),o,l=-1,h=a.length;if(arguments.length<2){while(++l0)for(var i=Array(o),a=0,o,l;a{mvr()});var e2e="http://www.w3.org/1999/xhtml",PXe;var BXe=Re(()=>{PXe={svg:"http://www.w3.org/2000/svg",xhtml:e2e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function i3(e){var r=e+="",i=r.indexOf(":");if(i>=0&&(r=e.slice(0,i))!=="xmlns")e=e.slice(i+1);return PXe.hasOwnProperty(r)?{space:PXe[r],local:e}:e}var t2e=Re(()=>{BXe()});function cGn(e){return function(){var r=this.ownerDocument,i=this.namespaceURI;return i===e2e&&r.documentElement.namespaceURI===e2e?r.createElement(e):r.createElementNS(i,e)}}function uGn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Pre(e){var r=i3(e);return(r.local?uGn:cGn)(r)}var FXe=Re(()=>{t2e();BXe()});function hGn(){}function sL(e){return e==null?hGn:function(){return this.querySelector(e)}}function $Xe(e){if(typeof e!=="function")e=sL(e);for(var r=this._groups,i=r.length,a=Array(i),o=0;o{oC()});function UXe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function dGn(){return[]}function jV(e){return e==null?dGn:function(){return this.querySelectorAll(e)}}function fGn(e){return function(){return UXe(e.apply(this,arguments))}}function GXe(e){if(typeof e==="function")e=fGn(e);else e=jV(e);for(var r=this._groups,i=r.length,a=[],o=[],l=0;l{oC()});function KV(e){return function(){return this.matches(e)}}function r2e(e){return function(r){return r.matches(e)}}function gGn(e){return function(){return pGn.call(this.children,e)}}function mGn(){return this.firstElementChild}function zXe(e){return this.select(e==null?mGn:gGn(typeof e==="function"?e:r2e(e)))}var pGn;var vvr=Re(()=>{pGn=Array.prototype.find});function yGn(){return Array.from(this.children)}function vGn(e){return function(){return bGn.call(this.children,e)}}function VXe(e){return this.selectAll(e==null?yGn:vGn(typeof e==="function"?e:r2e(e)))}var bGn;var _vr=Re(()=>{bGn=Array.prototype.filter});function HXe(e){if(typeof e!=="function")e=KV(e);for(var r=this._groups,i=r.length,a=Array(i),o=0;o{oC()});function Bre(e){return Array(e.length)}function qXe(){return new Dp(this._enter||this._groups.map(Bre),this._parents)}function Fre(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}var YXe=Re(()=>{oC();Fre.prototype={constructor:Fre,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}});function WXe(e){return function(){return e}}function _Gn(e,r,i,a,o,l){var h=0,d,p=r.length,m=l.length;for(;h=L)L=N+1;while(!(D=A[L])&&++L{oC();YXe()});function KXe(){return new Dp(this._exit||this._groups.map(Bre),this._parents)}var Svr=Re(()=>{oC()});function XXe(e,r,i){var a=this.enter(),o=this,l=this.exit();if(typeof e==="function"){if(a=e(a),a)a=a.selection()}else a=a.append(e+"");if(r!=null){if(o=r(o),o)o=o.selection()}if(i==null)l.remove();else i(l);return a&&o?a.merge(o).order():o}function QXe(e){var r=e.selection?e.selection():e;for(var i=this._groups,a=r._groups,o=i.length,l=a.length,h=Math.min(o,l),d=Array(o),p=0;p{oC()});function ZXe(){for(var e=this._groups,r=-1,i=e.length;++r=0;)if(h=a[o]){if(l&&h.compareDocumentPosition(l)^4)l.parentNode.insertBefore(h,l);l=h}return this}function JXe(e){if(!e)e=TGn;function r(E,w){return E&&w?e(E.__data__,w.__data__):!E-!w}for(var i=this._groups,a=i.length,o=Array(a),l=0;lr?1:e>=r?0:NaN}var xvr=Re(()=>{oC()});function eQe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function tQe(){return Array.from(this)}function rQe(){for(var e=this._groups,r=0,i=e.length;r{t2e()});function $re(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function OGn(e){return function(){this.style.removeProperty(e)}}function NGn(e,r,i){return function(){this.style.setProperty(e,r,i)}}function LGn(e,r,i){return function(){var a=r.apply(this,arguments);if(a==null)this.style.removeProperty(e);else this.style.setProperty(e,a,i)}}function oQe(e,r,i){return arguments.length>1?this.each((r==null?OGn:typeof r==="function"?LGn:NGn)(e,r,i==null?"":i)):oL(this.node(),e)}function oL(e,r){return e.style.getPropertyValue(r)||$re(e).getComputedStyle(e,null).getPropertyValue(r)}var lQe=()=>{};function MGn(e){return function(){delete this[e]}}function DGn(e,r){return function(){this[e]=r}}function PGn(e,r){return function(){var i=r.apply(this,arguments);if(i==null)delete this[e];else this[e]=i}}function cQe(e,r){return arguments.length>1?this.each((r==null?MGn:typeof r==="function"?PGn:DGn)(e,r)):this.node()[e]}function kvr(e){return e.trim().split(/^|\s+/)}function uQe(e){return e.classList||new Avr(e)}function Avr(e){this._node=e,this._names=kvr(e.getAttribute("class")||"")}function Rvr(e,r){var i=uQe(e),a=-1,o=r.length;while(++a{Avr.prototype={add:function(e){var r=this._names.indexOf(e);if(r<0)this._names.push(e),this._node.setAttribute("class",this._names.join(" "))},remove:function(e){var r=this._names.indexOf(e);if(r>=0)this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(e){return this._names.indexOf(e)>=0}}});function UGn(){this.textContent=""}function GGn(e){return function(){this.textContent=e}}function zGn(e){return function(){var r=e.apply(this,arguments);this.textContent=r==null?"":r}}function dQe(e){return arguments.length?this.each(e==null?UGn:(typeof e==="function"?zGn:GGn)(e)):this.node().textContent}function VGn(){this.innerHTML=""}function HGn(e){return function(){this.innerHTML=e}}function qGn(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r==null?"":r}}function fQe(e){return arguments.length?this.each(e==null?VGn:(typeof e==="function"?qGn:HGn)(e)):this.node().innerHTML}function YGn(){if(this.nextSibling)this.parentNode.appendChild(this)}function pQe(){return this.each(YGn)}function WGn(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gQe(){return this.each(WGn)}function mQe(e){var r=typeof e==="function"?e:Pre(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}var Nvr=Re(()=>{FXe()});function jGn(){return null}function bQe(e,r){var i=typeof e==="function"?e:Pre(e),a=r==null?jGn:typeof r==="function"?r:sL(r);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}var Lvr=Re(()=>{FXe()});function KGn(){var e=this.parentNode;if(e)e.removeChild(this)}function yQe(){return this.each(KGn)}function XGn(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function QGn(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function vQe(e){return this.select(e?QGn:XGn)}function _Qe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function ZGn(e){return function(r){e.call(this,r,this.__data__)}}function JGn(e){return e.trim().split(/^|\s+/).map(function(r){var i="",a=r.indexOf(".");if(a>=0)i=r.slice(a+1),r=r.slice(0,a);return{type:r,name:i}})}function ezn(e){return function(){var r=this.__on;if(!r)return;for(var i=0,a=-1,o=r.length,l;i{};function*SQe(){for(var e=this._groups,r=0,i=e.length;r{bvr();yvr();vvr();_vr();Evr();wvr();YXe();Svr();Tvr();xvr();Cvr();lQe();Ovr();Nvr();Lvr();Dvr();TQe=[null];Dp.prototype=Pvr.prototype={constructor:Dp,select:$Xe,selectAll:GXe,selectChild:zXe,selectChildren:VXe,filter:HXe,data:jXe,enter:qXe,exit:KXe,join:XXe,merge:QXe,selection:izn,order:ZXe,sort:JXe,call:eQe,nodes:tQe,node:rQe,size:nQe,empty:iQe,each:aQe,attr:sQe,style:oQe,property:cQe,classed:hQe,text:dQe,html:fQe,raise:pQe,lower:gQe,append:mQe,insert:bQe,remove:yQe,clone:vQe,datum:_Qe,on:EQe,dispatch:wQe,[Symbol.iterator]:SQe};IR=Pvr});function xn(e){return typeof e==="string"?new Dp([[document.querySelector(e)]],[document.documentElement]):new Dp([[e]],TQe)}var Bvr=Re(()=>{oC()});var lC=Re(()=>{t2e();Bvr();oC();lQe()});var Fvr=()=>{};function lL(e,r,i){e.prototype=r.prototype=i,i.constructor=e}function XV(e,r){var i=Object.create(e.prototype);for(var a in r)i[a]=r[a];return i}function cL(){}function Uvr(){return this.rgb().formatHex()}function dzn(){return this.rgb().formatHex8()}function fzn(){return Wvr(this).formatHsl()}function Gvr(){return this.rgb().formatRgb()}function uC(e){var r,i;return e=(e+"").trim().toLowerCase(),(r=azn.exec(e))?(i=r[1].length,r=parseInt(r[1],16),i===6?zvr(r):i===3?new q1(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):i===8?n2e(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):i===4?n2e(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=szn.exec(e))?new q1(r[1],r[2],r[3],1):(r=ozn.exec(e))?new q1(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=lzn.exec(e))?n2e(r[1],r[2],r[3],r[4]):(r=czn.exec(e))?n2e(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=uzn.exec(e))?qvr(r[1],r[2]/100,r[3]/100,1):(r=hzn.exec(e))?qvr(r[1],r[2]/100,r[3]/100,r[4]):$vr.hasOwnProperty(e)?zvr($vr[e]):e==="transparent"?new q1(NaN,NaN,NaN,0):null}function zvr(e){return new q1(e>>16&255,e>>8&255,e&255,1)}function n2e(e,r,i,a){if(a<=0)e=r=i=NaN;return new q1(e,r,i,a)}function CQe(e){if(!(e instanceof cL))e=uC(e);if(!e)return new q1;return e=e.rgb(),new q1(e.r,e.g,e.b,e.opacity)}function ZV(e,r,i,a){return arguments.length===1?CQe(e):new q1(e,r,i,a==null?1:a)}function q1(e,r,i,a){this.r=+e,this.g=+r,this.b=+i,this.opacity=+a}function Vvr(){return`#${IP(this.r)}${IP(this.g)}${IP(this.b)}`}function pzn(){return`#${IP(this.r)}${IP(this.g)}${IP(this.b)}${IP((isNaN(this.opacity)?1:this.opacity)*255)}`}function Hvr(){let e=s2e(this.opacity);return`${e===1?"rgb(":"rgba("}${OP(this.r)}, ${OP(this.g)}, ${OP(this.b)}${e===1?")":`, ${e})`}`}function s2e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function OP(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function IP(e){return e=OP(e),(e<16?"0":"")+e.toString(16)}function qvr(e,r,i,a){if(a<=0)e=r=i=NaN;else if(i<=0||i>=1)e=r=NaN;else if(r<=0)e=NaN;return new cC(e,r,i,a)}function Wvr(e){if(e instanceof cC)return new cC(e.h,e.s,e.l,e.opacity);if(!(e instanceof cL))e=uC(e);if(!e)return new cC;if(e instanceof cC)return e;e=e.rgb();var r=e.r/255,i=e.g/255,a=e.b/255,o=Math.min(r,i,a),l=Math.max(r,i,a),h=NaN,d=l-o,p=(l+o)/2;if(d){if(r===l)h=(i-a)/d+(i0&&p<1?0:h;return new cC(h,d,p,e.opacity)}function jvr(e,r,i,a){return arguments.length===1?Wvr(e):new cC(e,r,i,a==null?1:a)}function cC(e,r,i,a){this.h=+e,this.s=+r,this.l=+i,this.opacity=+a}function Yvr(e){return e=(e||0)%360,e<0?e+360:e}function i2e(e){return Math.max(0,Math.min(1,e||0))}function xQe(e,r,i){return(e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r)*255}var Ure=0.7,a2e,QV="\\s*([+-]?\\d+)\\s*",Gre="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",a3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",azn,szn,ozn,lzn,czn,uzn,hzn,$vr;var kQe=Re(()=>{a2e=1/Ure,azn=/^#([0-9a-f]{3,8})$/,szn=new RegExp(`^rgb\\(${QV},${QV},${QV}\\)$`),ozn=new RegExp(`^rgb\\(${a3},${a3},${a3}\\)$`),lzn=new RegExp(`^rgba\\(${QV},${QV},${QV},${Gre}\\)$`),czn=new RegExp(`^rgba\\(${a3},${a3},${a3},${Gre}\\)$`),uzn=new RegExp(`^hsl\\(${Gre},${a3},${a3}\\)$`),hzn=new RegExp(`^hsla\\(${Gre},${a3},${a3},${Gre}\\)$`),$vr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lL(cL,uC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Uvr,formatHex:Uvr,formatHex8:dzn,formatHsl:fzn,formatRgb:Gvr,toString:Gvr});lL(q1,ZV,XV(cL,{brighter(e){return e=e==null?a2e:Math.pow(a2e,e),new q1(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ure:Math.pow(Ure,e),new q1(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new q1(OP(this.r),OP(this.g),OP(this.b),s2e(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:Vvr,formatHex:Vvr,formatHex8:pzn,formatRgb:Hvr,toString:Hvr}));lL(cC,jvr,XV(cL,{brighter(e){return e=e==null?a2e:Math.pow(a2e,e),new cC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ure:Math.pow(Ure,e),new cC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<0.5?i:1-i)*r,o=2*i-a;return new q1(xQe(e>=240?e-240:e+120,o,a),xQe(e,o,a),xQe(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new cC(Yvr(this.h),i2e(this.s),i2e(this.l),s2e(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let e=s2e(this.opacity);return`${e===1?"hsl(":"hsla("}${Yvr(this.h)}, ${i2e(this.s)*100}%, ${i2e(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var Kvr,Xvr;var Qvr=Re(()=>{Kvr=Math.PI/180,Xvr=180/Math.PI});function n_r(e){if(e instanceof s3)return new s3(e.l,e.a,e.b,e.opacity);if(e instanceof OR)return i_r(e);if(!(e instanceof q1))e=CQe(e);var r=OQe(e.r),i=OQe(e.g),a=OQe(e.b),o=AQe((0.2225045*r+0.7168786*i+0.0606169*a)/Jvr),l,h;if(r===i&&i===a)l=h=o;else l=AQe((0.4360747*r+0.3850649*i+0.1430804*a)/Zvr),h=AQe((0.0139322*r+0.0971045*i+0.7141733*a)/e_r);return new s3(116*o-16,500*(l-o),200*(o-h),e.opacity)}function NQe(e,r,i,a){return arguments.length===1?n_r(e):new s3(e,r,i,a==null?1:a)}function s3(e,r,i,a){this.l=+e,this.a=+r,this.b=+i,this.opacity=+a}function AQe(e){return e>gzn?Math.pow(e,0.3333333333333333):e/r_r+t_r}function RQe(e){return e>JV?e*e*e:r_r*(e-t_r)}function IQe(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function OQe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function mzn(e){if(e instanceof OR)return new OR(e.h,e.c,e.l,e.opacity);if(!(e instanceof s3))e=n_r(e);if(e.a===0&&e.b===0)return new OR(NaN,0{kQe();Qvr();r_r=3*JV*JV,gzn=JV*JV*JV;lL(s3,NQe,XV(cL,{brighter(e){return new s3(this.l+o2e*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new s3(this.l-o2e*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,i=isNaN(this.b)?e:e-this.b/200;return r=Zvr*RQe(r),e=Jvr*RQe(e),i=e_r*RQe(i),new q1(IQe(3.1338561*r-1.6168667*e-0.4906146*i),IQe(-0.9787684*r+1.9161415*e+0.033454*i),IQe(0.0719453*r-0.2289914*e+1.4052427*i),this.opacity)}}));lL(OR,zre,XV(cL,{brighter(e){return new OR(this.h,this.c,this.l+o2e*(e==null?1:e),this.opacity)},darker(e){return new OR(this.h,this.c,this.l-o2e*(e==null?1:e),this.opacity)},rgb(){return i_r(this).rgb()}}))});var eH=Re(()=>{kQe();a_r()});function LQe(e,r,i,a,o){var l=e*e,h=l*e;return((1-3*e+3*l-h)*r+(4-6*l+3*h)*i+(1+3*e+3*l-3*h)*a+h*o)/6}function MQe(e){var r=e.length-1;return function(i){var a=i<=0?i=0:i>=1?(i=1,r-1):Math.floor(i*r),o=e[a],l=e[a+1],h=a>0?e[a-1]:2*o-l,d=a{};var tH=(e)=>()=>e;function o_r(e,r){return function(i){return e+i*r}}function bzn(e,r,i){return e=Math.pow(e,i),r=Math.pow(r,i)-e,i=1/i,function(a){return Math.pow(e+a*r,i)}}function l_r(e,r){var i=r-e;return i?o_r(e,i>180||i<-180?i-360*Math.round(i/360):i):tH(isNaN(e)?r:e)}function c_r(e){return(e=+e)===1?NR:function(r,i){return i-r?bzn(r,i,e):tH(isNaN(r)?i:r)}}function NR(e,r){var i=r-e;return i?o_r(e,i):tH(isNaN(e)?r:e)}var PQe=()=>{};function u_r(e){return function(r){var i=r.length,a=Array(i),o=Array(i),l=Array(i),h,d;for(h=0;h{eH();s_r();PQe();NP=function e(r){var i=c_r(r);function a(o,l){var h=i((o=ZV(o)).r,(l=ZV(l)).r),d=i(o.g,l.g),p=i(o.b,l.b),m=NR(o.opacity,l.opacity);return function(y){return o.r=h(y),o.g=d(y),o.b=p(y),o.opacity=m(y),o+""}}return a.gamma=e,a}(1);yzn=u_r(MQe),vzn=u_r(DQe)});function FQe(e,r){if(!r)r=[];var i=e?Math.min(r.length,e.length):0,a=r.slice(),o;return function(l){for(o=0;o{l2e()});function $Qe(e,r){var i=new Date;return e=+e,r=+r,function(a){return i.setTime(e*(1-a)+r*a),i}}function jm(e,r){return e=+e,r=+r,function(i){return e*(1-i)+r*i}}function UQe(e,r){var i={},a={},o;if(e===null||typeof e!=="object")e={};if(r===null||typeof r!=="object")r={};for(o in r)if(o in e)i[o]=uL(e[o],r[o]);else a[o]=r[o];return function(l){for(o in i)a[o]=i[o](l);return a}}var p_r=Re(()=>{l2e()});function _zn(e){return function(){return e}}function Ezn(e){return function(r){return e(r)+""}}function rH(e,r){var i=zQe.lastIndex=GQe.lastIndex=0,a,o,l,h=-1,d=[],p=[];e=e+"",r=r+"";while((a=zQe.exec(e))&&(o=GQe.exec(r))){if((l=o.index)>i)if(l=r.slice(i,l),d[h])d[h]+=l;else d[++h]=l;if((a=a[0])===(o=o[0]))if(d[h])d[h]+=o;else d[++h]=o;else d[++h]=null,p.push({i:h,x:jm(a,o)});i=GQe.lastIndex}if(i{zQe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GQe=new RegExp(zQe.source,"g")});function uL(e,r){var i=typeof r,a;return r==null||i==="boolean"?tH(r):(i==="number"?jm:i==="string"?(a=uC(r))?(r=a,NP):rH:r instanceof uC?NP:r instanceof Date?$Qe:h_r(r)?FQe:Array.isArray(r)?d_r:typeof r.valueOf!=="function"&&typeof r.toString!=="function"||isNaN(r)?UQe:jm)(e,r)}var l2e=Re(()=>{eH();BQe();f_r();p_r();VQe()});function c2e(e,r){return e=+e,r=+r,function(i){return Math.round(e*(1-i)+r*i)}}function h2e(e,r,i,a,o,l){var h,d,p;if(h=Math.sqrt(e*e+r*r))e/=h,r/=h;if(p=e*i+r*a)i-=e*p,a-=r*p;if(d=Math.sqrt(i*i+a*a))i/=d,a/=d,p/=d;if(e*a{g_r=180/Math.PI,u2e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function b_r(e){let r=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?u2e:h2e(r.a,r.b,r.c,r.d,r.e,r.f)}function y_r(e){if(e==null)return u2e;if(!d2e)d2e=document.createElementNS("http://www.w3.org/2000/svg","g");if(d2e.setAttribute("transform",e),!(e=d2e.transform.baseVal.consolidate()))return u2e;return e=e.matrix,h2e(e.a,e.b,e.c,e.d,e.e,e.f)}var d2e;var v_r=Re(()=>{m_r()});function __r(e,r,i,a){function o(m){return m.length?m.pop()+" ":""}function l(m,y,E,w,T,x){if(m!==E||y!==w){var k=T.push("translate(",null,r,null,i);x.push({i:k-4,x:jm(m,E)},{i:k-2,x:jm(y,w)})}else if(E||w)T.push("translate("+E+r+w+i)}function h(m,y,E,w){if(m!==y){if(m-y>180)y+=360;else if(y-m>180)m+=360;w.push({i:E.push(o(E)+"rotate(",null,a)-2,x:jm(m,y)})}else if(y)E.push(o(E)+"rotate("+y+a)}function d(m,y,E,w){if(m!==y)w.push({i:E.push(o(E)+"skewX(",null,a)-2,x:jm(m,y)});else if(y)E.push(o(E)+"skewX("+y+a)}function p(m,y,E,w,T,x){if(m!==E||y!==w){var k=T.push(o(T)+"scale(",null,",",null,")");x.push({i:k-4,x:jm(m,E)},{i:k-2,x:jm(y,w)})}else if(E!==1||w!==1)T.push(o(T)+"scale("+E+","+w+")")}return function(m,y){var E=[],w=[];return m=e(m),y=e(y),l(m.translateX,m.translateY,y.translateX,y.translateY,E,w),h(m.rotate,y.rotate,E,w),d(m.skewX,y.skewX,E,w),p(m.scaleX,m.scaleY,y.scaleX,y.scaleY,E,w),m=y=null,function(T){var x=-1,k=w.length,A;while(++x{v_r();HQe=__r(b_r,"px, ","px)","deg)"),qQe=__r(y_r,", ",")",")")});function w_r(e){return function(r,i){var a=e((r=zre(r)).h,(i=zre(i)).h),o=NR(r.c,i.c),l=NR(r.l,i.l),h=NR(r.opacity,i.opacity);return function(d){return r.h=a(d),r.c=o(d),r.l=l(d),r.opacity=h(d),r+""}}}var YQe,wzn;var S_r=Re(()=>{eH();PQe();YQe=w_r(l_r),wzn=w_r(NR)});var nH=Re(()=>{l2e();VQe();E_r();BQe();S_r()});function jre(){return LP||(C_r(Szn),LP=Yre.now()+g2e)}function Szn(){LP=0}function Wre(){this._call=this._time=this._next=null}function m2e(e,r,i){var a=new Wre;return a.restart(e,r,i),a}function k_r(){jre(),++iH;var e=f2e,r;while(e){if((r=LP-e._time)>=0)e._call.call(void 0,r);e=e._next}--iH}function T_r(){LP=(p2e=Yre.now())+g2e,iH=Hre=0;try{k_r()}finally{iH=0,xzn(),LP=0}}function Tzn(){var e=Yre.now(),r=e-p2e;if(r>x_r)g2e-=r,p2e=e}function xzn(){var e,r=f2e,i,a=1/0;while(r)if(r._call){if(a>r._time)a=r._time;e=r,r=r._next}else i=r._next,r._next=null,r=e?e._next=i:f2e=i;qre=e,WQe(a)}function WQe(e){if(iH)return;if(Hre)Hre=clearTimeout(Hre);var r=e-LP;if(r>24){if(e<1/0)Hre=setTimeout(T_r,e-Yre.now()-g2e);if(Vre)Vre=clearInterval(Vre)}else{if(!Vre)p2e=Yre.now(),Vre=setInterval(Tzn,x_r);iH=1,C_r(T_r)}}var iH=0,Hre=0,Vre=0,x_r=1000,f2e,qre,p2e=0,LP=0,g2e=0,Yre,C_r;var jQe=Re(()=>{Yre=typeof performance==="object"&&performance.now?performance:Date,C_r=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};Wre.prototype=m2e.prototype={constructor:Wre,restart:function(e,r,i){if(typeof e!=="function")throw TypeError("callback is not a function");if(i=(i==null?jre():+i)+(r==null?0:+r),!this._next&&qre!==this){if(qre)qre._next=this;else f2e=this;qre=this}this._call=e,this._time=i,WQe()},stop:function(){if(this._call)this._call=null,this._time=1/0,WQe()}}});function Kre(e,r,i){var a=new Wre;return r=r==null?0:+r,a.restart((o)=>{a.stop(),e(o+r)},r,i),a}var A_r=Re(()=>{jQe()});var b2e=Re(()=>{jQe();A_r()});function LR(e,r,i,a,o,l){var h=e.__transition;if(!h)e.__transition={};else if(i in h)return;Azn(e,i,{name:r,index:a,group:o,on:Czn,tween:kzn,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:O_r})}function Qre(e,r){var i=tm(e,r);if(i.state>O_r)throw Error("too late; already scheduled");return i}function Y1(e,r){var i=tm(e,r);if(i.state>y2e)throw Error("too late; already running");return i}function tm(e,r){var i=e.__transition;if(!i||!(i=i[r]))throw Error("transition not found");return i}function Azn(e,r,i){var a=e.__transition,o;a[r]=i,i.timer=m2e(l,0,i.time);function l(m){if(i.state=R_r,i.timer.restart(h,i.delay,i.time),i.delay<=m)h(m-i.delay)}function h(m){var y,E,w,T;if(i.state!==R_r)return p();for(y in a){if(T=a[y],T.name!==i.name)continue;if(T.state===y2e)return Kre(h);if(T.state===I_r)T.state=Xre,T.timer.stop(),T.on.call("interrupt",e,e.__data__,T.index,T.group),delete a[y];else if(+y{DXe();b2e();Czn=MXe("start","end","cancel","interrupt"),kzn=[]});function Zre(e,r){var i=e.__transition,a,o,l=!0,h;if(!i)return;r=r==null?null:r+"";for(h in i){if((a=i[h]).name!==r){l=!1;continue}o=a.state>v2e&&a.state<_2e,a.state=Xre,a.timer.stop(),a.on.call(o?"interrupt":"cancel",e,e.__data__,a.index,a.group),delete i[h]}if(l)delete e.__transition}var N_r=Re(()=>{q_()});function KQe(e){return this.each(function(){Zre(this,e)})}var L_r=Re(()=>{N_r()});function Rzn(e,r){var i,a;return function(){var o=Y1(this,e),l=o.tween;if(l!==i){a=i=l;for(var h=0,d=a.length;h{q_()});function ene(e,r){var i;return(typeof r==="number"?jm:r instanceof uC?NP:(i=uC(r))?(r=i,NP):rH)(e,r)}var QQe=Re(()=>{eH();nH()});function Ozn(e){return function(){this.removeAttribute(e)}}function Nzn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Lzn(e,r,i){var a,o=i+"",l;return function(){var h=this.getAttribute(e);return h===o?null:h===a?l:l=r(a=h,i)}}function Mzn(e,r,i){var a,o=i+"",l;return function(){var h=this.getAttributeNS(e.space,e.local);return h===o?null:h===a?l:l=r(a=h,i)}}function Dzn(e,r,i){var a,o,l;return function(){var h,d=i(this),p;if(d==null)return void this.removeAttribute(e);return h=this.getAttribute(e),p=d+"",h===p?null:h===a&&p===o?l:(o=p,l=r(a=h,d))}}function Pzn(e,r,i){var a,o,l;return function(){var h,d=i(this),p;if(d==null)return void this.removeAttributeNS(e.space,e.local);return h=this.getAttributeNS(e.space,e.local),p=d+"",h===p?null:h===a&&p===o?l:(o=p,l=r(a=h,d))}}function ZQe(e,r){var i=i3(e),a=i==="transform"?qQe:ene;return this.attrTween(e,typeof r==="function"?(i.local?Pzn:Dzn)(i,a,aH(this,"attr."+e,r)):r==null?(i.local?Nzn:Ozn)(i):(i.local?Mzn:Lzn)(i,a,r))}var M_r=Re(()=>{nH();lC();Jre();QQe()});function Bzn(e,r){return function(i){this.setAttribute(e,r.call(this,i))}}function Fzn(e,r){return function(i){this.setAttributeNS(e.space,e.local,r.call(this,i))}}function $zn(e,r){var i,a;function o(){var l=r.apply(this,arguments);if(l!==a)i=(a=l)&&Fzn(e,l);return i}return o._value=r,o}function Uzn(e,r){var i,a;function o(){var l=r.apply(this,arguments);if(l!==a)i=(a=l)&&Bzn(e,l);return i}return o._value=r,o}function JQe(e,r){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(r==null)return this.tween(i,null);if(typeof r!=="function")throw Error();var a=i3(e);return this.tween(i,(a.local?$zn:Uzn)(a,r))}var D_r=Re(()=>{lC()});function Gzn(e,r){return function(){Qre(this,e).delay=+r.apply(this,arguments)}}function zzn(e,r){return r=+r,function(){Qre(this,e).delay=r}}function eZe(e){var r=this._id;return arguments.length?this.each((typeof e==="function"?Gzn:zzn)(r,e)):tm(this.node(),r).delay}var P_r=Re(()=>{q_()});function Vzn(e,r){return function(){Y1(this,e).duration=+r.apply(this,arguments)}}function Hzn(e,r){return r=+r,function(){Y1(this,e).duration=r}}function tZe(e){var r=this._id;return arguments.length?this.each((typeof e==="function"?Vzn:Hzn)(r,e)):tm(this.node(),r).duration}var B_r=Re(()=>{q_()});function qzn(e,r){if(typeof r!=="function")throw Error();return function(){Y1(this,e).ease=r}}function rZe(e){var r=this._id;return arguments.length?this.each(qzn(r,e)):tm(this.node(),r).ease}var F_r=Re(()=>{q_()});function Yzn(e,r){return function(){var i=r.apply(this,arguments);if(typeof i!=="function")throw Error();Y1(this,e).ease=i}}function nZe(e){if(typeof e!=="function")throw Error();return this.each(Yzn(this._id,e))}var $_r=Re(()=>{q_()});function iZe(e){if(typeof e!=="function")e=KV(e);for(var r=this._groups,i=r.length,a=Array(i),o=0;o{lC();MP()});function aZe(e){if(e._id!==this._id)throw Error();for(var r=this._groups,i=e._groups,a=r.length,o=i.length,l=Math.min(a,o),h=Array(a),d=0;d{MP()});function Wzn(e){return(e+"").trim().split(/^|\s+/).every(function(r){var i=r.indexOf(".");if(i>=0)r=r.slice(0,i);return!r||r==="start"})}function jzn(e,r,i){var a,o,l=Wzn(r)?Qre:Y1;return function(){var h=l(this,e),d=h.on;if(d!==a)(o=(a=d).copy()).on(r,i);h.on=o}}function sZe(e,r){var i=this._id;return arguments.length<2?tm(this.node(),i).on.on(e):this.each(jzn(i,e,r))}var z_r=Re(()=>{q_()});function Kzn(e){return function(){var r=this.parentNode;for(var i in this.__transition)if(+i!==e)return;if(r)r.removeChild(this)}}function oZe(){return this.on("end.remove",Kzn(this._id))}function lZe(e){var r=this._name,i=this._id;if(typeof e!=="function")e=sL(e);for(var a=this._groups,o=a.length,l=Array(o),h=0;h{lC();MP();q_()});function cZe(e){var r=this._name,i=this._id;if(typeof e!=="function")e=jV(e);for(var a=this._groups,o=a.length,l=[],h=[],d=0;d{lC();MP();q_()});function uZe(){return new Xzn(this._groups,this._parents)}var Xzn;var q_r=Re(()=>{lC();Xzn=IR.prototype.constructor});function Qzn(e,r){var i,a,o;return function(){var l=oL(this,e),h=(this.style.removeProperty(e),oL(this,e));return l===h?null:l===i&&h===a?o:o=r(i=l,a=h)}}function Y_r(e){return function(){this.style.removeProperty(e)}}function Zzn(e,r,i){var a,o=i+"",l;return function(){var h=oL(this,e);return h===o?null:h===a?l:l=r(a=h,i)}}function Jzn(e,r,i){var a,o,l;return function(){var h=oL(this,e),d=i(this),p=d+"";if(d==null)p=d=(this.style.removeProperty(e),oL(this,e));return h===p?null:h===a&&p===o?l:(o=p,l=r(a=h,d))}}function eVn(e,r){var i,a,o,l="style."+r,h="end."+l,d;return function(){var p=Y1(this,e),m=p.on,y=p.value[l]==null?d||(d=Y_r(r)):void 0;if(m!==i||o!==y)(a=(i=m).copy()).on(h,o=y);p.on=a}}function hZe(e,r,i){var a=(e+="")==="transform"?HQe:ene;return r==null?this.styleTween(e,Qzn(e,a)).on("end.style."+e,Y_r(e)):typeof r==="function"?this.styleTween(e,Jzn(e,a,aH(this,"style."+e,r))).each(eVn(this._id,e)):this.styleTween(e,Zzn(e,a,r),i).on("end.style."+e,null)}var W_r=Re(()=>{nH();lC();q_();Jre();QQe()});function tVn(e,r,i){return function(a){this.style.setProperty(e,r.call(this,a),i)}}function rVn(e,r,i){var a,o;function l(){var h=r.apply(this,arguments);if(h!==o)a=(o=h)&&tVn(e,h,i);return a}return l._value=r,l}function dZe(e,r,i){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(r==null)return this.tween(a,null);if(typeof r!=="function")throw Error();return this.tween(a,rVn(e,r,i==null?"":i))}function nVn(e){return function(){this.textContent=e}}function iVn(e){return function(){var r=e(this);this.textContent=r==null?"":r}}function fZe(e){return this.tween("text",typeof e==="function"?iVn(aH(this,"text",e)):nVn(e==null?"":e+""))}var j_r=Re(()=>{Jre()});function aVn(e){return function(r){this.textContent=e.call(this,r)}}function sVn(e){var r,i;function a(){var o=e.apply(this,arguments);if(o!==i)r=(i=o)&&aVn(o);return r}return a._value=e,a}function pZe(e){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!=="function")throw Error();return this.tween(r,sVn(e))}function gZe(){var e=this._name,r=this._id,i=E2e();for(var a=this._groups,o=a.length,l=0;l{MP();q_()});function mZe(){var e,r,i=this,a=i._id,o=i.size();return new Promise(function(l,h){var d={value:h},p={value:function(){if(--o===0)l()}};if(i.each(function(){var m=Y1(this,a),y=m.on;if(y!==e)r=(e=y).copy(),r._.cancel.push(d),r._.interrupt.push(d),r._.end.push(p);m.on=r}),o===0)l()})}var X_r=Re(()=>{q_()});function pv(e,r,i,a){this._groups=e,this._parents=r,this._name=i,this._id=a}function Q_r(e){return IR().transition(e)}function E2e(){return++oVn}var oVn=0,MR;var MP=Re(()=>{lC();M_r();D_r();P_r();B_r();F_r();$_r();U_r();G_r();z_r();V_r();H_r();q_r();W_r();j_r();K_r();Jre();X_r();MR=IR.prototype;pv.prototype=Q_r.prototype={constructor:pv,select:lZe,selectAll:cZe,selectChild:MR.selectChild,selectChildren:MR.selectChildren,filter:iZe,merge:aZe,selection:uZe,transition:gZe,call:MR.call,nodes:MR.nodes,node:MR.node,size:MR.size,empty:MR.empty,each:MR.each,on:sZe,attr:ZQe,attrTween:JQe,style:hZe,styleTween:dZe,text:fZe,textTween:pZe,remove:oZe,tween:XQe,delay:eZe,duration:tZe,ease:rZe,easeVarying:nZe,end:mZe,[Symbol.iterator]:MR[Symbol.iterator]}});function w2e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var bZe=()=>{};function cVn(e,r){var i;while(!(i=e.__transition)||!(i=i[r]))if(!(e=e.parentNode))throw Error(`transition ${r} not found`);return i}function yZe(e){var r,i;if(e instanceof pv)r=e._id,e=e._name;else r=E2e(),(i=lVn).time=jre(),e=e==null?null:e+"";for(var a=this._groups,o=a.length,l=0;l{MP();q_();bZe();b2e();lVn={time:null,delay:0,duration:250,ease:w2e}});var J_r=Re(()=>{lC();L_r();Z_r();IR.prototype.interrupt=KQe;IR.prototype.transition=yZe});var S2e=Re(()=>{J_r()});function e2r(e){return[+e[0],+e[1]]}function uVn(e){return[e2r(e[0]),e2r(e[1])]}function vZe(e){return{type:e}}var J1a,eba,tba,rba,nba,iba;var t2r=Re(()=>{S2e();({abs:J1a,max:eba,min:tba}=Math);rba={name:"x",handles:["w","e"].map(vZe),input:function(e,r){return e==null?null:[[+e[0],r[0][1]],[+e[1],r[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},nba={name:"y",handles:["n","s"].map(vZe),input:function(e,r){return e==null?null:[[r[0][0],+e[0]],[r[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},iba={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(vZe),input:function(e){return e==null?null:uVn(e)},output:function(e){return e}}});var r2r=Re(()=>{t2r()});function n2r(e){this._+=e[0];for(let r=1,i=e.length;r=0))throw Error(`invalid digits: ${e}`);if(r>15)return n2r;let i=10**r;return function(a){this._+=a[0];for(let o=1,l=a.length;o0.000001));else if(!(Math.abs(y*d-p*m)>0.000001)||!o)this._append`L${this._x1=e},${this._y1=r}`;else{let w=i-l,T=a-h,x=d*d+p*p,k=w*w+T*T,A=Math.sqrt(x),R=Math.sqrt(E),N=o*Math.tan((_Ze-Math.acos((x+E-k)/(2*A*R)))/2),L=N/R,B=N/A;if(Math.abs(L-1)>0.000001)this._append`L${e+L*m},${r+L*y}`;this._append`A${o},${o},0,0,${+(y*w>m*T)},${this._x1=e+B*d},${this._y1=r+B*p}`}}arc(e,r,i,a,o,l){if(e=+e,r=+r,i=+i,l=!!l,i<0)throw Error(`negative radius: ${i}`);let h=i*Math.cos(a),d=i*Math.sin(a),p=e+h,m=r+d,y=1^l,E=l?a-o:o-a;if(this._x1===null)this._append`M${p},${m}`;else if(Math.abs(this._x1-p)>0.000001||Math.abs(this._y1-m)>0.000001)this._append`L${p},${m}`;if(!i)return;if(E<0)E=E%EZe+EZe;if(E>hVn)this._append`A${i},${i},0,1,${y},${e-h},${r-d}A${i},${i},0,1,${y},${this._x1=p},${this._y1=m}`;else if(E>0.000001)this._append`A${i},${i},0,${+(E>=_Ze)},${y},${this._x1=e+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`}rect(e,r,i,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+a}h${-i}Z`}toString(){return this._}}function i2r(){return new sH}var _Ze,EZe,hVn;var a2r=Re(()=>{_Ze=Math.PI,EZe=2*_Ze,hVn=EZe-0.000001;i2r.prototype=sH.prototype});var wZe=Re(()=>{a2r()});var s2r=()=>{};var o2r=()=>{};var l2r=()=>{};var c2r=()=>{};var u2r=()=>{};var h2r=()=>{};var d2r=()=>{};function SZe(e){return Math.abs(e=Math.round(e))>=1000000000000000000000?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function DP(e,r){if(!isFinite(e)||e===0)return null;var i=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"),a=e.slice(0,i);return[a.length>1?a[0]+a.slice(2):a,+e.slice(i+1)]}function hC(e){return e=DP(Math.abs(e)),e?e[1]:NaN}var tne=()=>{};function TZe(e,r){return function(i,a){var o=i.length,l=[],h=0,d=e[0],p=0;while(o>0&&d>0){if(p+d+1>a)d=Math.max(1,a-p);if(l.push(i.substring(o-=d,o+d)),(p+=d+1)>a)break;d=e[h=(h+1)%e.length]}return l.reverse().join(r)}}function xZe(e){return function(r){return r.replace(/[0-9]/g,function(i){return e[+i]})}}function hL(e){if(!(r=fVn.exec(e)))throw Error("invalid format: "+e);var r;return new T2e({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function T2e(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}var fVn;var CZe=Re(()=>{fVn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;hL.prototype=T2e.prototype;T2e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function kZe(e){e:for(var r=e.length,i=1,a=-1,o;i0)a=0;break}return a>0?e.slice(0,a)+e.slice(o+1):e}function AZe(e,r){var i=DP(e,r);if(!i)return rne=void 0,e.toPrecision(r);var a=i[0],o=i[1],l=o-(rne=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,h=a.length;return l===h?a:l>h?a+Array(l-h+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+Array(1-l).join("0")+DP(e,Math.max(0,r+l-1))[0]}var rne;var RZe=()=>{};function x2e(e,r){var i=DP(e,r);if(!i)return e+"";var a=i[0],o=i[1];return o<0?"0."+Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+Array(o-a.length+2).join("0")}var f2r=()=>{};var IZe;var p2r=Re(()=>{RZe();f2r();IZe={"%":(e,r)=>(e*100).toFixed(r),b:(e)=>Math.round(e).toString(2),c:(e)=>e+"",d:SZe,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:(e)=>Math.round(e).toString(8),p:(e,r)=>x2e(e*100,r),r:x2e,s:AZe,X:(e)=>Math.round(e).toString(16).toUpperCase(),x:(e)=>Math.round(e).toString(16)}});function C2e(e){return e}function OZe(e){var r=e.grouping===void 0||e.thousands===void 0?C2e:TZe(g2r.call(e.grouping,Number),e.thousands+""),i=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?C2e:xZe(g2r.call(e.numerals,String)),h=e.percent===void 0?"%":e.percent+"",d=e.minus===void 0?"−":e.minus+"",p=e.nan===void 0?"NaN":e.nan+"";function m(E,w){E=hL(E);var T=E.fill,x=E.align,k=E.sign,A=E.symbol,R=E.zero,N=E.width,L=E.comma,B=E.precision,D=E.trim,P=E.type;if(P==="n")L=!0,P="g";else if(!IZe[P])B===void 0&&(B=12),D=!0,P="g";if(R||T==="0"&&x==="=")R=!0,T="0",x="=";var F=(w&&w.prefix!==void 0?w.prefix:"")+(A==="$"?i:A==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),H=(A==="$"?a:/[%p]/.test(P)?h:"")+(w&&w.suffix!==void 0?w.suffix:""),K=IZe[P],Q=/[defgprs%]/.test(P);B=B===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,B)):Math.max(0,Math.min(20,B));function Z(Y){var j=F,te=H,X,W,J;if(P==="c")te=K(Y)+te,Y="";else{Y=+Y;var z=Y<0||1/Y<0;if(Y=isNaN(Y)?p:K(Math.abs(Y),B),D)Y=kZe(Y);if(z&&+Y===0&&k!=="+")z=!1;if(j=(z?k==="("?k:d:k==="-"||k==="("?"":k)+j,te=(P==="s"&&!isNaN(Y)&&rne!==void 0?m2r[8+rne/3]:"")+te+(z&&k==="("?")":""),Q){X=-1,W=Y.length;while(++XJ||J>57){te=(J===46?o+Y.slice(X+1):Y.slice(X))+te,Y=Y.slice(0,X);break}}}if(L&&!R)Y=r(Y,1/0);var ne=j.length+Y.length+te.length,ie=ne>1)+j+Y+te+ie.slice(ne);break;default:Y=ie+j+Y+te;break}return l(Y)}return Z.toString=function(){return E+""},Z}function y(E,w){var T=Math.max(-8,Math.min(8,Math.floor(hC(w)/3)))*3,x=Math.pow(10,-T),k=m((E=hL(E),E.type="f",E),{suffix:m2r[8+T/3]});return function(A){return k(x*A)}}return{format:m,formatPrefix:y}}var g2r,m2r;var b2r=Re(()=>{tne();CZe();p2r();RZe();g2r=Array.prototype.map,m2r=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]});function NZe(e){return k2e=OZe(e),o3=k2e.format,A2e=k2e.formatPrefix,k2e}var k2e,o3,A2e;var y2r=Re(()=>{b2r();NZe({thousands:",",grouping:[3],currency:["$",""]})});function R2e(e){return Math.max(0,-hC(Math.abs(e)))}var v2r=Re(()=>{tne()});function I2e(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(hC(r)/3)))*3-hC(Math.abs(e)))}var _2r=Re(()=>{tne()});function O2e(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,hC(r)-hC(e))+1}var E2r=Re(()=>{tne()});var LZe=Re(()=>{y2r();CZe();v2r();_2r();E2r()});var w2r=()=>{};function pVn(e){var r=0,i=e.children,a=i&&i.length;if(!a)r=1;else while(--a>=0)r+=i[a].value;e.value=r}function MZe(){return this.eachAfter(pVn)}function DZe(e,r){let i=-1;for(let a of this)e.call(r,a,++i,this);return this}function PZe(e,r){var i=this,a=[i],o,l,h=-1;while(i=a.pop())if(e.call(r,i,++h,this),o=i.children)for(l=o.length-1;l>=0;--l)a.push(o[l]);return this}function BZe(e,r){var i=this,a=[i],o=[],l,h,d,p=-1;while(i=a.pop())if(o.push(i),l=i.children)for(h=0,d=l.length;h=0)i+=a[o].value;r.value=i})}function UZe(e){return this.eachBefore(function(r){if(r.children)r.children.sort(e)})}function GZe(e){var r=this,i=gVn(r,e),a=[r];while(r!==i)r=r.parent,a.push(r);var o=a.length;while(e!==i)a.splice(o,0,e),e=e.parent;return a}function gVn(e,r){if(e===r)return e;var i=e.ancestors(),a=r.ancestors(),o=null;e=i.pop(),r=a.pop();while(e===r)o=e,e=i.pop(),r=a.pop();return o}function zZe(){var e=this,r=[e];while(e=e.parent)r.push(e);return r}function VZe(){return Array.from(this)}function HZe(){var e=[];return this.eachBefore(function(r){if(!r.children)e.push(r)}),e}function qZe(){var e=this,r=[];return e.each(function(i){if(i!==e)r.push({source:i.parent,target:i})}),r}function*YZe(){var e=this,r,i=[e],a,o,l;do{r=i.reverse(),i=[];while(e=r.pop())if(yield e,a=e.children)for(o=0,l=a.length;o=0;--d)o.push(l=h[d]=new nne(h[d])),l.parent=a,l.depth=a.depth+1}return i.eachBefore(_Vn)}function mVn(){return oH(this).eachBefore(vVn)}function bVn(e){return e.children}function yVn(e){return Array.isArray(e)?e[1]:null}function vVn(e){if(e.data.value!==void 0)e.value=e.data.value;e.data=e.data.data}function _Vn(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function nne(e){this.data=e,this.depth=this.height=0,this.parent=null}var S2r=Re(()=>{nne.prototype=oH.prototype={constructor:nne,count:MZe,each:DZe,eachAfter:BZe,eachBefore:PZe,find:FZe,sum:$Ze,sort:UZe,path:GZe,ancestors:zZe,descendants:VZe,leaves:HZe,links:qZe,copy:mVn,[Symbol.iterator]:YZe}});function T2r(e){if(typeof e!=="function")throw Error();return e}function lH(){return 0}function PP(e){return function(){return e}}function WZe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function jZe(e,r,i,a,o){var l=e.children,h,d=-1,p=l.length,m=e.value&&(a-r)/e.value;while(++dN)N=m;if(P=A*A*D,L=Math.max(N/P,P/R),L>B){A-=m;break}B=L}if(h.push(p={value:A,dice:T{EVn=(1+Math.sqrt(5))/2;x2r=function e(r){function i(a,o,l,h,d){wVn(r,a,o,l,h,d)}return i.ratio=function(a){return e((a=+a)>1?a:1)},i}(EVn)});function N2e(){var e=x2r,r=!1,i=1,a=1,o=[0],l=lH,h=lH,d=lH,p=lH,m=lH;function y(w){if(w.x0=w.y0=0,w.x1=i,w.y1=a,w.eachBefore(E),o=[0],r)w.eachBefore(WZe);return w}function E(w){var T=o[w.depth],x=w.x0+T,k=w.y0+T,A=w.x1-T,R=w.y1-T;if(A{C2r()});var A2r=Re(()=>{S2r();k2r()});var R2r=()=>{};var I2r=()=>{};function dL(e,r){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(r).domain(e);break}return this}function VE(){var e=new Mre,r=[],i=[],a=XZe;function o(l){let h=e.get(l);if(h===void 0){if(a!==XZe)return a;e.set(l,h=r.push(l)-1)}return i[h%i.length]}return o.domain=function(l){if(!arguments.length)return r.slice();r=[],e=new Mre;for(let h of l){if(e.has(h))continue;e.set(h,r.push(h)-1)}return o},o.range=function(l){return arguments.length?(i=Array.from(l),o):i.slice()},o.unknown=function(l){return arguments.length?(a=l,o):a},o.copy=function(){return VE(r,i).unknown(a)},dL.apply(o,arguments),o}var XZe;var QZe=Re(()=>{aL();XZe=Symbol("implicit")});function cH(){var e=VE().unknown(void 0),{domain:r,range:i}=e,a=0,o=1,l,h,d=!1,p=0,m=0,y=0.5;delete e.unknown;function E(){var w=r().length,T=o{aL();QZe()});function ZZe(e){return function(){return e}}function JZe(e){return+e}function uH(e){return e}function eJe(e,r){return(r-=e=+e)?function(i){return(i-e)/r}:ZZe(isNaN(r)?NaN:0.5)}function SVn(e,r){var i;if(e>r)i=e,e=r,r=i;return function(a){return Math.max(e,Math.min(r,a))}}function TVn(e,r,i){var a=e[0],o=e[1],l=r[0],h=r[1];if(o2?xVn:TVn,p=m=null,E}function E(w){return w==null||isNaN(w=+w)?l:(p||(p=d(e.map(a),r,i)))(a(h(w)))}return E.invert=function(w){return h(o((m||(m=d(r,e.map(a),jm)))(w)))},E.domain=function(w){return arguments.length?(e=Array.from(w,JZe),y()):e.slice()},E.range=function(w){return arguments.length?(r=Array.from(w),y()):r.slice()},E.rangeRound=function(w){return r=Array.from(w),i=c2e,y()},E.clamp=function(w){return arguments.length?(h=w?!0:uH,y()):h!==uH},E.interpolate=function(w){return arguments.length?(i=w,y()):i},E.unknown=function(w){return arguments.length?(l=w,E):l},function(w,T){return a=w,o=T,y()}}function ine(){return CVn()(uH,uH)}var N2r;var tJe=Re(()=>{aL();nH();N2r=[0,1]});function rJe(e,r,i,a){var o=WV(e,r,i),l;switch(a=hL(a==null?",f":a),a.type){case"s":{var h=Math.max(Math.abs(e),Math.abs(r));if(a.precision==null&&!isNaN(l=I2e(o,h)))a.precision=l;return A2e(a,h)}case"":case"e":case"g":case"p":case"r":{if(a.precision==null&&!isNaN(l=O2e(o,Math.max(Math.abs(e),Math.abs(r)))))a.precision=l-(a.type==="e");break}case"f":case"%":{if(a.precision==null&&!isNaN(l=R2e(o)))a.precision=l-(a.type==="%")*2;break}}return o3(a)}var L2r=Re(()=>{aL();LZe()});function kVn(e){var r=e.domain;return e.ticks=function(i){var a=r();return W_e(a[0],a[a.length-1],i==null?10:i)},e.tickFormat=function(i,a){var o=r();return rJe(o[0],o[o.length-1],i==null?10:i,a)},e.nice=function(i){if(i==null)i=10;var a=r(),o=0,l=a.length-1,h=a[o],d=a[l],p,m,y=10;if(d0){if(m=Dre(h,d,i),m===p)return a[o]=h,a[l]=d,r(a);else if(m>0)h=Math.floor(h/m)*m,d=Math.ceil(d/m)*m;else if(m<0)h=Math.ceil(h*m)/m,d=Math.floor(d*m)/m;else break;p=m}return e},e}function dC(){var e=ine();return e.copy=function(){return L2e(e,dC())},dL.apply(e,arguments),kVn(e)}var M2r=Re(()=>{aL();tJe();L2r()});function nJe(e,r){e=e.slice();var i=0,a=e.length-1,o=e[i],l=e[a],h;if(l(e(l=new Date(+l)),l),o.ceil=(l)=>(e(l=new Date(l-1)),r(l,1),e(l),l),o.round=(l)=>{let h=o(l),d=o.ceil(l);return l-h(r(l=new Date(+l),h==null?1:Math.floor(h)),l),o.range=(l,h,d)=>{let p=[];if(l=o.ceil(l),d=d==null?1:Math.floor(d),!(l0))return p;let m;do p.push(m=new Date(+l)),r(l,d),e(l);while(mud((h)=>{if(h>=h)while(e(h),!l(h))h.setTime(h-1)},(h,d)=>{if(h>=h)if(d<0)while(++d<=0)while(r(h,-1),!l(h));else while(--d>=0)while(r(h,1),!l(h));}),i)o.count=(l,h)=>(iJe.setTime(+l),aJe.setTime(+h),e(iJe),e(aJe),Math.floor(i(iJe,aJe))),o.every=(l)=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:!(l>1)?o:o.filter(a?(h)=>a(h)%l===0:(h)=>o.count(0,h)%l===0));return o}var iJe,aJe;var DR=Re(()=>{iJe=new Date,aJe=new Date});var l3,D2r;var sJe=Re(()=>{DR();l3=ud(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);l3.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return l3;return ud((r)=>{r.setTime(Math.floor(r/e)*e)},(r,i)=>{r.setTime(+r+i*e)},(r,i)=>(i-r)/e)};D2r=l3.range});var HS=1000,Xb=60000,c3=3600000,fL=86400000,ane=604800000,oJe=2592000000,M2e=31536000000;var HE,P2r;var lJe=Re(()=>{DR();HE=ud((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*HS)},(e,r)=>(r-e)/HS,(e)=>e.getUTCSeconds()),P2r=HE.range});var PR,AVn,D2e,RVn;var cJe=Re(()=>{DR();PR=ud((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*HS)},(e,r)=>{e.setTime(+e+r*Xb)},(e,r)=>(r-e)/Xb,(e)=>e.getMinutes()),AVn=PR.range,D2e=ud((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Xb)},(e,r)=>(r-e)/Xb,(e)=>e.getUTCMinutes()),RVn=D2e.range});var BR,IVn,P2e,OVn;var uJe=Re(()=>{DR();BR=ud((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*HS-e.getMinutes()*Xb)},(e,r)=>{e.setTime(+e+r*c3)},(e,r)=>(r-e)/c3,(e)=>e.getHours()),IVn=BR.range,P2e=ud((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*c3)},(e,r)=>(r-e)/c3,(e)=>e.getUTCHours()),OVn=P2e.range});var qS,NVn,sne,LVn,B2e,MVn;var hJe=Re(()=>{DR();qS=ud((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Xb)/fL,(e)=>e.getDate()-1),NVn=qS.range,sne=ud((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/fL,(e)=>e.getUTCDate()-1),LVn=sne.range,B2e=ud((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/fL,(e)=>Math.floor(e/fL)),MVn=B2e.range});function BP(e){return ud((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,i)=>{r.setDate(r.getDate()+i*7)},(r,i)=>(i-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*Xb)/ane)}function FP(e){return ud((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,i)=>{r.setUTCDate(r.getUTCDate()+i*7)},(r,i)=>(i-r)/ane)}var fC,pL,F2e,$2e,u3,U2e,G2e,B2r,DVn,PVn,BVn,FVn,$Vn,UVn,$P,hH,F2r,$2r,gL,U2r,G2r,z2r,GVn,zVn,VVn,HVn,qVn,YVn;var dJe=Re(()=>{DR();fC=BP(0),pL=BP(1),F2e=BP(2),$2e=BP(3),u3=BP(4),U2e=BP(5),G2e=BP(6),B2r=fC.range,DVn=pL.range,PVn=F2e.range,BVn=$2e.range,FVn=u3.range,$Vn=U2e.range,UVn=G2e.range;$P=FP(0),hH=FP(1),F2r=FP(2),$2r=FP(3),gL=FP(4),U2r=FP(5),G2r=FP(6),z2r=$P.range,GVn=hH.range,zVn=F2r.range,VVn=$2r.range,HVn=gL.range,qVn=U2r.range,YVn=G2r.range});var FR,WVn,z2e,jVn;var fJe=Re(()=>{DR();FR=ud((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),WVn=FR.range,z2e=ud((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),jVn=z2e.range});var qE,KVn,pC,XVn;var pJe=Re(()=>{DR();qE=ud((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());qE.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ud((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,i)=>{r.setFullYear(r.getFullYear()+i*e)});KVn=qE.range,pC=ud((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());pC.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ud((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,i)=>{r.setUTCFullYear(r.getUTCFullYear()+i*e)});XVn=pC.range});function V2r(e,r,i,a,o,l){let h=[[HE,1,HS],[HE,5,5*HS],[HE,15,15*HS],[HE,30,30*HS],[l,1,Xb],[l,5,5*Xb],[l,15,15*Xb],[l,30,30*Xb],[o,1,c3],[o,3,3*c3],[o,6,6*c3],[o,12,12*c3],[a,1,fL],[a,2,2*fL],[i,1,ane],[r,1,oJe],[r,3,3*oJe],[e,1,M2e]];function d(m,y,E){let w=yA).right(h,w);if(T===h.length)return e.every(WV(m/M2e,y/M2e,E));if(T===0)return l3.every(Math.max(WV(m,y,E),1));let[x,k]=h[w/h[T-1][2]{aL();sJe();lJe();cJe();uJe();hJe();dJe();fJe();pJe();[QVn,ZVn]=V2r(pC,z2e,$P,B2e,P2e,D2e),[gJe,mJe]=V2r(qE,FR,fC,qS,BR,PR)});var V2e=Re(()=>{sJe();lJe();cJe();uJe();hJe();dJe();fJe();pJe();H2r()});function bJe(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function yJe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function one(e,r,i){return{y:e,m:r,d:i,H:0,M:0,S:0,L:0}}function vJe(e){var{dateTime:r,date:i,time:a,periods:o,days:l,shortDays:h,months:d,shortMonths:p}=e,m=lne(o),y=cne(o),E=lne(l),w=cne(l),T=lne(h),x=cne(h),k=lne(d),A=cne(d),R=lne(p),N=cne(p),L={a:J,A:z,b:ne,B:ie,c:null,d:X2r,e:X2r,f:EHn,g:OHn,G:LHn,H:yHn,I:vHn,j:_Hn,L:tEr,m:wHn,M:SHn,p:le,q:se,Q:J2r,s:eEr,S:THn,u:xHn,U:CHn,V:kHn,w:AHn,W:RHn,x:null,X:null,y:IHn,Y:NHn,Z:MHn,"%":Z2r},B={a:he,A:ye,b:xe,B:Ie,c:null,d:Q2r,e:Q2r,f:FHn,g:jHn,G:XHn,H:DHn,I:PHn,j:BHn,L:nEr,m:$Hn,M:UHn,p:Ee,q:Ue,Q:J2r,s:eEr,S:GHn,u:zHn,U:VHn,V:HHn,w:qHn,W:YHn,x:null,X:null,y:WHn,Y:KHn,Z:QHn,"%":Z2r},D={a:Q,A:Z,b:Y,B:j,c:te,d:j2r,e:j2r,f:pHn,g:W2r,G:Y2r,H:K2r,I:K2r,j:uHn,L:fHn,m:cHn,M:hHn,p:K,q:lHn,Q:mHn,s:bHn,S:dHn,u:nHn,U:iHn,V:aHn,w:rHn,W:sHn,x:X,X:W,y:W2r,Y:Y2r,Z:oHn,"%":gHn};L.x=P(i,L),L.X=P(a,L),L.c=P(r,L),B.x=P(i,B),B.X=P(a,B),B.c=P(r,B);function P(Me,Xe){return function(je){var Qe=[],St=-1,pt=0,Vt=Me.length,Xt,rr,We;if(!(je instanceof Date))je=new Date(+je);while(++St53)return null;if(!("w"in Qe))Qe.w=1;if("Z"in Qe)pt=yJe(one(Qe.y,0,1)),Vt=pt.getUTCDay(),pt=Vt>4||Vt===0?hH.ceil(pt):hH(pt),pt=sne.offset(pt,(Qe.V-1)*7),Qe.y=pt.getUTCFullYear(),Qe.m=pt.getUTCMonth(),Qe.d=pt.getUTCDate()+(Qe.w+6)%7;else pt=bJe(one(Qe.y,0,1)),Vt=pt.getDay(),pt=Vt>4||Vt===0?pL.ceil(pt):pL(pt),pt=qS.offset(pt,(Qe.V-1)*7),Qe.y=pt.getFullYear(),Qe.m=pt.getMonth(),Qe.d=pt.getDate()+(Qe.w+6)%7}else if("W"in Qe||"U"in Qe){if(!("w"in Qe))Qe.w="u"in Qe?Qe.u%7:("W"in Qe)?1:0;Vt="Z"in Qe?yJe(one(Qe.y,0,1)).getUTCDay():bJe(one(Qe.y,0,1)).getDay(),Qe.m=0,Qe.d="W"in Qe?(Qe.w+6)%7+Qe.W*7-(Vt+5)%7:Qe.w+Qe.U*7-(Vt+6)%7}if("Z"in Qe)return Qe.H+=Qe.Z/100|0,Qe.M+=Qe.Z%100,yJe(Qe);return bJe(Qe)}}function H(Me,Xe,je,Qe){var St=0,pt=Xe.length,Vt=je.length,Xt,rr;while(St=Vt)return-1;if(Xt=Xe.charCodeAt(St++),Xt===37){if(Xt=Xe.charAt(St++),rr=D[Xt in q2r?Xe.charAt(St++):Xt],!rr||(Qe=rr(Me,je,Qe))<0)return-1}else if(Xt!=je.charCodeAt(Qe++))return-1}return Qe}function K(Me,Xe,je){var Qe=m.exec(Xe.slice(je));return Qe?(Me.p=y.get(Qe[0].toLowerCase()),je+Qe[0].length):-1}function Q(Me,Xe,je){var Qe=T.exec(Xe.slice(je));return Qe?(Me.w=x.get(Qe[0].toLowerCase()),je+Qe[0].length):-1}function Z(Me,Xe,je){var Qe=E.exec(Xe.slice(je));return Qe?(Me.w=w.get(Qe[0].toLowerCase()),je+Qe[0].length):-1}function Y(Me,Xe,je){var Qe=R.exec(Xe.slice(je));return Qe?(Me.m=N.get(Qe[0].toLowerCase()),je+Qe[0].length):-1}function j(Me,Xe,je){var Qe=k.exec(Xe.slice(je));return Qe?(Me.m=A.get(Qe[0].toLowerCase()),je+Qe[0].length):-1}function te(Me,Xe,je){return H(Me,r,Xe,je)}function X(Me,Xe,je){return H(Me,i,Xe,je)}function W(Me,Xe,je){return H(Me,a,Xe,je)}function J(Me){return h[Me.getDay()]}function z(Me){return l[Me.getDay()]}function ne(Me){return p[Me.getMonth()]}function ie(Me){return d[Me.getMonth()]}function le(Me){return o[+(Me.getHours()>=12)]}function se(Me){return 1+~~(Me.getMonth()/3)}function he(Me){return h[Me.getUTCDay()]}function ye(Me){return l[Me.getUTCDay()]}function xe(Me){return p[Me.getUTCMonth()]}function Ie(Me){return d[Me.getUTCMonth()]}function Ee(Me){return o[+(Me.getUTCHours()>=12)]}function Ue(Me){return 1+~~(Me.getUTCMonth()/3)}return{format:function(Me){var Xe=P(Me+="",L);return Xe.toString=function(){return Me},Xe},parse:function(Me){var Xe=F(Me+="",!1);return Xe.toString=function(){return Me},Xe},utcFormat:function(Me){var Xe=P(Me+="",B);return Xe.toString=function(){return Me},Xe},utcParse:function(Me){var Xe=F(Me+="",!0);return Xe.toString=function(){return Me},Xe}}}function Iu(e,r,i){var a=e<0?"-":"",o=(a?-e:e)+"",l=o.length;return a+(l[r.toLowerCase(),i]))}function rHn(e,r,i){var a=Km.exec(r.slice(i,i+1));return a?(e.w=+a[0],i+a[0].length):-1}function nHn(e,r,i){var a=Km.exec(r.slice(i,i+1));return a?(e.u=+a[0],i+a[0].length):-1}function iHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.U=+a[0],i+a[0].length):-1}function aHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.V=+a[0],i+a[0].length):-1}function sHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.W=+a[0],i+a[0].length):-1}function Y2r(e,r,i){var a=Km.exec(r.slice(i,i+4));return a?(e.y=+a[0],i+a[0].length):-1}function W2r(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2000),i+a[0].length):-1}function oHn(e,r,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(i,i+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function lHn(e,r,i){var a=Km.exec(r.slice(i,i+1));return a?(e.q=a[0]*3-3,i+a[0].length):-1}function cHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.m=a[0]-1,i+a[0].length):-1}function j2r(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.d=+a[0],i+a[0].length):-1}function uHn(e,r,i){var a=Km.exec(r.slice(i,i+3));return a?(e.m=0,e.d=+a[0],i+a[0].length):-1}function K2r(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.H=+a[0],i+a[0].length):-1}function hHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.M=+a[0],i+a[0].length):-1}function dHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.S=+a[0],i+a[0].length):-1}function fHn(e,r,i){var a=Km.exec(r.slice(i,i+3));return a?(e.L=+a[0],i+a[0].length):-1}function pHn(e,r,i){var a=Km.exec(r.slice(i,i+6));return a?(e.L=Math.floor(a[0]/1000),i+a[0].length):-1}function gHn(e,r,i){var a=JVn.exec(r.slice(i,i+1));return a?i+a[0].length:-1}function mHn(e,r,i){var a=Km.exec(r.slice(i));return a?(e.Q=+a[0],i+a[0].length):-1}function bHn(e,r,i){var a=Km.exec(r.slice(i));return a?(e.s=+a[0],i+a[0].length):-1}function X2r(e,r){return Iu(e.getDate(),r,2)}function yHn(e,r){return Iu(e.getHours(),r,2)}function vHn(e,r){return Iu(e.getHours()%12||12,r,2)}function _Hn(e,r){return Iu(1+qS.count(qE(e),e),r,3)}function tEr(e,r){return Iu(e.getMilliseconds(),r,3)}function EHn(e,r){return tEr(e,r)+"000"}function wHn(e,r){return Iu(e.getMonth()+1,r,2)}function SHn(e,r){return Iu(e.getMinutes(),r,2)}function THn(e,r){return Iu(e.getSeconds(),r,2)}function xHn(e){var r=e.getDay();return r===0?7:r}function CHn(e,r){return Iu(fC.count(qE(e)-1,e),r,2)}function rEr(e){var r=e.getDay();return r>=4||r===0?u3(e):u3.ceil(e)}function kHn(e,r){return e=rEr(e),Iu(u3.count(qE(e),e)+(qE(e).getDay()===4),r,2)}function AHn(e){return e.getDay()}function RHn(e,r){return Iu(pL.count(qE(e)-1,e),r,2)}function IHn(e,r){return Iu(e.getFullYear()%100,r,2)}function OHn(e,r){return e=rEr(e),Iu(e.getFullYear()%100,r,2)}function NHn(e,r){return Iu(e.getFullYear()%1e4,r,4)}function LHn(e,r){var i=e.getDay();return e=i>=4||i===0?u3(e):u3.ceil(e),Iu(e.getFullYear()%1e4,r,4)}function MHn(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Iu(r/60|0,"0",2)+Iu(r%60,"0",2)}function Q2r(e,r){return Iu(e.getUTCDate(),r,2)}function DHn(e,r){return Iu(e.getUTCHours(),r,2)}function PHn(e,r){return Iu(e.getUTCHours()%12||12,r,2)}function BHn(e,r){return Iu(1+sne.count(pC(e),e),r,3)}function nEr(e,r){return Iu(e.getUTCMilliseconds(),r,3)}function FHn(e,r){return nEr(e,r)+"000"}function $Hn(e,r){return Iu(e.getUTCMonth()+1,r,2)}function UHn(e,r){return Iu(e.getUTCMinutes(),r,2)}function GHn(e,r){return Iu(e.getUTCSeconds(),r,2)}function zHn(e){var r=e.getUTCDay();return r===0?7:r}function VHn(e,r){return Iu($P.count(pC(e)-1,e),r,2)}function iEr(e){var r=e.getUTCDay();return r>=4||r===0?gL(e):gL.ceil(e)}function HHn(e,r){return e=iEr(e),Iu(gL.count(pC(e),e)+(pC(e).getUTCDay()===4),r,2)}function qHn(e){return e.getUTCDay()}function YHn(e,r){return Iu(hH.count(pC(e)-1,e),r,2)}function WHn(e,r){return Iu(e.getUTCFullYear()%100,r,2)}function jHn(e,r){return e=iEr(e),Iu(e.getUTCFullYear()%100,r,2)}function KHn(e,r){return Iu(e.getUTCFullYear()%1e4,r,4)}function XHn(e,r){var i=e.getUTCDay();return e=i>=4||i===0?gL(e):gL.ceil(e),Iu(e.getUTCFullYear()%1e4,r,4)}function QHn(){return"+0000"}function Z2r(){return"%"}function J2r(e){return+e}function eEr(e){return Math.floor(+e/1000)}var q2r,Km,JVn,eHn;var aEr=Re(()=>{V2e();q2r={"-":"",_:" ","0":"0"},Km=/^\s*\d+/,JVn=/^%/,eHn=/[\\^$*+?|[\]().{}]/g});function _Je(e){return dH=vJe(e),UP=dH.format,sEr=dH.parse,oEr=dH.utcFormat,lEr=dH.utcParse,dH}var dH,UP,sEr,oEr,lEr;var cEr=Re(()=>{aEr();_Je({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})});var EJe=Re(()=>{cEr()});function ZHn(e){return new Date(e)}function JHn(e){return e instanceof Date?+e:+new Date(+e)}function uEr(e,r,i,a,o,l,h,d,p,m){var y=ine(),{invert:E,domain:w}=y,T=m(".%L"),x=m(":%S"),k=m("%I:%M"),A=m("%I %p"),R=m("%a %d"),N=m("%b %d"),L=m("%B"),B=m("%Y");function D(P){return(p(P){V2e();EJe();tJe()});var dEr=Re(()=>{O2r();M2r();QZe();hEr()});function wJe(e){var r=e.length/6|0,i=Array(r),a=0;while(a{SJe=wJe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var pEr=Re(()=>{fEr()});function Pd(e){return function(){return e}}function mEr(e){return e>1?0:e<-1?fH:Math.acos(e)}function xJe(e){return e>=1?une:e<=-1?-une:Math.asin(e)}var TJe,W1,mL,gEr,q2e,gC,GP,Xm=0.000000000001,fH,une,pH;var Y2e=Re(()=>{TJe=Math.abs,W1=Math.atan2,mL=Math.cos,gEr=Math.max,q2e=Math.min,gC=Math.sin,GP=Math.sqrt,fH=Math.PI,une=fH/2,pH=2*fH});function W2e(e){let r=3;return e.digits=function(i){if(!arguments.length)return r;if(i==null)r=null;else{let a=Math.floor(i);if(!(a>=0))throw RangeError(`invalid digits: ${i}`);r=a}return e},()=>new sH(r)}var CJe=Re(()=>{wZe()});function eqn(e){return e.innerRadius}function tqn(e){return e.outerRadius}function rqn(e){return e.startAngle}function nqn(e){return e.endAngle}function iqn(e){return e&&e.padAngle}function aqn(e,r,i,a,o,l,h,d){var p=i-e,m=a-r,y=h-o,E=d-l,w=E*p-y*m;if(w*wte*te+X*X)H=Q,K=Z;return{cx:H,cy:K,x01:-y,y01:-E,x11:H*(o/D-1),y11:K*(o/D-1)}}function mC(){var e=eqn,r=tqn,i=Pd(0),a=null,o=rqn,l=nqn,h=iqn,d=null,p=W2e(m);function m(){var y,E,w=+e.apply(this,arguments),T=+r.apply(this,arguments),x=o.apply(this,arguments)-une,k=l.apply(this,arguments)-une,A=TJe(k-x),R=k>x;if(!d)d=y=p();if(TXm))d.moveTo(0,0);else if(A>pH-Xm){if(d.moveTo(T*mL(x),T*gC(x)),d.arc(0,0,T,x,k,!R),w>Xm)d.moveTo(w*mL(k),w*gC(k)),d.arc(0,0,w,k,x,R)}else{var N=x,L=k,B=x,D=k,P=A,F=A,H=h.apply(this,arguments)/2,K=H>Xm&&(a?+a.apply(this,arguments):GP(w*w+T*T)),Q=q2e(TJe(T-w)/2,+i.apply(this,arguments)),Z=Q,Y=Q,j,te;if(K>Xm){var X=xJe(K/w*gC(H)),W=xJe(K/T*gC(H));if((P-=X*2)>Xm)X*=R?1:-1,B+=X,D-=X;else P=0,B=D=(x+k)/2;if((F-=W*2)>Xm)W*=R?1:-1,N+=W,L-=W;else F=0,N=L=(x+k)/2}var J=T*mL(N),z=T*gC(N),ne=w*mL(D),ie=w*gC(D);if(Q>Xm){var le=T*mL(L),se=T*gC(L),he=w*mL(B),ye=w*gC(B),xe;if(AXm))d.moveTo(J,z);else if(Y>Xm)if(j=j2e(he,ye,J,z,T,Y,R),te=j2e(le,se,ne,ie,T,Y,R),d.moveTo(j.cx+j.x01,j.cy+j.y01),YXm)||!(P>Xm))d.lineTo(ne,ie);else if(Z>Xm)if(j=j2e(ne,ie,le,se,w,-Z,R),te=j2e(J,z,he,ye,w,-Z,R),d.lineTo(j.cx+j.x01,j.cy+j.y01),Z{Y2e();CJe()});function hne(e){return typeof e==="object"&&"length"in e?e:Array.from(e)}var q_a;var kJe=Re(()=>{q_a=Array.prototype.slice});function yEr(e){this._context=e}function YS(e){return new yEr(e)}var AJe=Re(()=>{yEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}}});function vEr(e){return e[0]}function _Er(e){return e[1]}function zP(e,r){var i=Pd(!0),a=null,o=YS,l=null,h=W2e(d);e=typeof e==="function"?e:e===void 0?vEr:Pd(e),r=typeof r==="function"?r:r===void 0?_Er:Pd(r);function d(p){var m,y=(p=hne(p)).length,E,w=!1,T;if(a==null)l=o(T=h());for(m=0;m<=y;++m){if(!(m{kJe();AJe();CJe()});function RJe(e,r){return re?1:r>=e?0:NaN}function IJe(e){return e}function K2e(){var e=IJe,r=RJe,i=null,a=Pd(0),o=Pd(pH),l=Pd(0);function h(d){var p,m=(d=hne(d)).length,y,E,w=0,T=Array(m),x=Array(m),k=+a.apply(this,arguments),A=Math.min(pH,Math.max(-pH,o.apply(this,arguments)-k)),R,N=Math.min(Math.abs(A)/m,l.apply(this,arguments)),L=N*(A<0?-1:1),B;for(p=0;p0)w+=B;if(r!=null)T.sort(function(D,P){return r(x[D],x[P])});else if(i!=null)T.sort(function(D,P){return i(d[D],d[P])});for(p=0,E=w?(A-m*L)/w:0;p0?B*E:0)+L,x[y]={data:d[y],index:p,value:B,startAngle:k,endAngle:R,padAngle:N};return x}return h.value=function(d){return arguments.length?(e=typeof d==="function"?d:Pd(+d),h):e},h.sortValues=function(d){return arguments.length?(r=d,i=null,h):r},h.sort=function(d){return arguments.length?(i=d,r=null,h):i},h.startAngle=function(d){return arguments.length?(a=typeof d==="function"?d:Pd(+d),h):a},h.endAngle=function(d){return arguments.length?(o=typeof d==="function"?d:Pd(+d),h):o},h.padAngle=function(d){return arguments.length?(l=typeof d==="function"?d:Pd(+d),h):l},h}var wEr=Re(()=>{kJe();Y2e()});class OJe{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(e,r);else this._context.moveTo(e,r);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function dne(e){return new OJe(e,!0)}function fne(e){return new OJe(e,!1)}var SEr=()=>{};function YE(){}function gH(e,r,i){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+i)/6)}function pne(e){this._context=e}function VP(e){return new pne(e)}var gne=Re(()=>{pne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:gH(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:gH(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}}});function TEr(e){this._context=e}function X2e(e){return new TEr(e)}var xEr=Re(()=>{gne();TEr.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:gH(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}}});function CEr(e){this._context=e}function Q2e(e){return new CEr(e)}var kEr=Re(()=>{gne();CEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 3:this._point=4;default:gH(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}}});function AEr(e,r){this._basis=new pne(e),this._beta=r}var NJe;var REr=Re(()=>{gne();AEr.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,r=this._y,i=e.length-1;if(i>0){var a=e[0],o=r[0],l=e[i]-a,h=r[i]-o,d=-1,p;while(++d<=i)p=d/i,this._basis.point(this._beta*e[d]+(1-this._beta)*(a+p*l),this._beta*r[d]+(1-this._beta)*(o+p*h))}this._x=this._y=null,this._basis.lineEnd()},point:function(e,r){this._x.push(+e),this._y.push(+r)}};NJe=function e(r){function i(a){return r===1?new pne(a):new AEr(a,r)}return i.beta=function(a){return e(+a)},i}(0.85)});function mH(e,r,i){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-r),e._y2+e._k*(e._y1-i),e._x2,e._y2)}function Z2e(e,r){this._context=e,this._k=(1-r)/6}var mne;var bne=Re(()=>{Z2e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:mH(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2,this._x1=e,this._y1=r;break;case 2:this._point=3;default:mH(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};mne=function e(r){function i(a){return new Z2e(a,r)}return i.tension=function(a){return e(+a)},i}(0)});function J2e(e,r){this._context=e,this._k=(1-r)/6}var LJe;var MJe=Re(()=>{bne();J2e.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x3=e,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=r);break;case 2:this._point=3,this._x5=e,this._y5=r;break;default:mH(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};LJe=function e(r){function i(a){return new J2e(a,r)}return i.tension=function(a){return e(+a)},i}(0)});function eEe(e,r){this._context=e,this._k=(1-r)/6}var DJe;var PJe=Re(()=>{bne();eEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:mH(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};DJe=function e(r){function i(a){return new eEe(a,r)}return i.tension=function(a){return e(+a)},i}(0)});function yne(e,r,i){var{_x1:a,_y1:o,_x2:l,_y2:h}=e;if(e._l01_a>Xm){var d=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,p=3*e._l01_a*(e._l01_a+e._l12_a);a=(a*d-e._x0*e._l12_2a+e._x2*e._l01_2a)/p,o=(o*d-e._y0*e._l12_2a+e._y2*e._l01_2a)/p}if(e._l23_a>Xm){var m=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,y=3*e._l23_a*(e._l23_a+e._l12_a);l=(l*m+e._x1*e._l23_2a-r*e._l12_2a)/y,h=(h*m+e._y1*e._l23_2a-i*e._l12_2a)/y}e._context.bezierCurveTo(a,o,l,h,e._x2,e._y2)}function IEr(e,r){this._context=e,this._alpha=r}var vne;var tEe=Re(()=>{Y2e();bne();IEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var i=this._x2-e,a=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:yne(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};vne=function e(r){function i(a){return r?new IEr(a,r):new Z2e(a,0)}return i.alpha=function(a){return e(+a)},i}(0.5)});function OEr(e,r){this._context=e,this._alpha=r}var BJe;var NEr=Re(()=>{MJe();tEe();OEr.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,r){if(e=+e,r=+r,this._point){var i=this._x2-e,a=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=r);break;case 2:this._point=3,this._x5=e,this._y5=r;break;default:yne(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};BJe=function e(r){function i(a){return r?new OEr(a,r):new J2e(a,0)}return i.alpha=function(a){return e(+a)},i}(0.5)});function LEr(e,r){this._context=e,this._alpha=r}var FJe;var MEr=Re(()=>{PJe();tEe();LEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var i=this._x2-e,a=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yne(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};FJe=function e(r){function i(a){return r?new LEr(a,r):new eEe(a,0)}return i.alpha=function(a){return e(+a)},i}(0.5)});function DEr(e){this._context=e}function rEe(e){return new DEr(e)}var PEr=Re(()=>{DEr.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(e,r){if(e=+e,r=+r,this._point)this._context.lineTo(e,r);else this._point=1,this._context.moveTo(e,r)}}});function BEr(e){return e<0?-1:1}function FEr(e,r,i){var a=e._x1-e._x0,o=r-e._x1,l=(e._y1-e._y0)/(a||o<0&&-0),h=(i-e._y1)/(o||a<0&&-0),d=(l*o+h*a)/(a+o);return(BEr(l)+BEr(h))*Math.min(Math.abs(l),Math.abs(h),0.5*Math.abs(d))||0}function $Er(e,r){var i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-r)/2:r}function $Je(e,r,i){var{_x0:a,_y0:o,_x1:l,_y1:h}=e,d=(l-a)/3;e._context.bezierCurveTo(a+d,o+d*r,l-d,h-d*i,l,h)}function nEe(e){this._context=e}function UEr(e){this._context=new GEr(e)}function GEr(e){this._context=e}function _ne(e){return new nEe(e)}function Ene(e){return new UEr(e)}var zEr=Re(()=>{nEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$Je(this,this._t0,$Er(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){var i=NaN;if(e=+e,r=+r,e===this._x1&&r===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,$Je(this,$Er(this,i=FEr(this,e,r)),i);break;default:$Je(this,this._t0,i=FEr(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=i}};(UEr.prototype=Object.create(nEe.prototype)).point=function(e,r){nEe.prototype.point.call(this,r,e)};GEr.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,i,a,o,l){this._context.bezierCurveTo(r,e,a,i,l,o)}}});function HEr(e){this._context=e}function VEr(e){var r,i=e.length-1,a,o=Array(i),l=Array(i),h=Array(i);o[0]=0,l[0]=2,h[0]=e[0]+2*e[1];for(r=1;r=0;--r)o[r]=(h[r]-o[r+1])/l[r];l[i-1]=(e[i]+o[i-1])/2;for(r=0;r{HEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,i=e.length;if(i)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),i===2)this._context.lineTo(e[1],r[1]);else{var a=VEr(e),o=VEr(r);for(var l=0,h=1;h{iEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0=0)this._t=1-this._t,this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var i=this._x*(1-this._t)+e*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,r)}break}}this._x=e,this._y=r}}});var WEr=Re(()=>{bEr();EEr();wEr();xEr();kEr();gne();SEr();REr();MJe();PJe();bne();NEr();MEr();tEe();PEr();AJe();zEr();qEr();YEr()});function bL(e,r,i){this.k=e,this.x=r,this.y=i}function GJe(e){while(!e.__zoom)if(!(e=e.parentNode))return UJe;return e.__zoom}var UJe;var zJe=Re(()=>{bL.prototype={constructor:bL,scale:function(e){return e===1?this:new bL(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new bL(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};UJe=new bL(1,0,0);GJe.prototype=bL.prototype});var jEr=Re(()=>{S2e();zJe()});var KEr=Re(()=>{jEr();zJe()});var dl=Re(()=>{aL();fvr();r2r();s2r();eH();o2r();l2r();DXe();Fvr();c2r();bZe();u2r();d2r();LZe();w2r();A2r();nH();wZe();R2r();h2r();I2r();dEr();pEr();lC();WEr();V2e();EJe();b2e();S2e();KEr()});var Ou;var A0=Re(()=>{eo();Ja();dl();Ou=I((e)=>{let{securityLevel:r}=Ar(),i=xn("body");if(r==="sandbox"){let l=xn(`#i${e}`).node()?.contentDocument??document;i=xn(l.body)}return i.select(`#${e}`)},"selectSvgElement")});function Ewr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vH(){if(XEr)return yL;XEr=1;function e(h){return typeof h>"u"||h===null}I(e,"isNothing");function r(h){return typeof h==="object"&&h!==null}I(r,"isObject");function i(h){if(Array.isArray(h))return h;else if(e(h))return[];return[h]}I(i,"toArray");function a(h,d){if(d){let p=Object.keys(d);for(let m=0,y=p.length;mE)m=" ... ",l=d-E+m.length;if(h-d>E)y=" ...",h=d+E-y.length;return{str:m+o.slice(l,h).replace(/\t/g,"→")+y,pos:d-l+m.length}}I(r,"getLine");function i(o,l){return e.repeat(" ",l-o.length)+o}I(i,"padStart");function a(o,l){if(l=Object.create(l||null),!o.buffer)return null;if(!l.maxLength)l.maxLength=79;if(typeof l.indent!=="number")l.indent=1;if(typeof l.linesBefore!=="number")l.linesBefore=3;if(typeof l.linesAfter!=="number")l.linesAfter=2;let h=/\r?\n|\r|\0/g,d=[0],p=[],m,y=-1;while(m=h.exec(o.buffer))if(p.push(m.index),d.push(m.index+m[0].length),o.position<=m.index&&y<0)y=d.length-2;if(y<0)y=d.length-1;let E="",w=Math.min(o.line+l.linesAfter,p.length).toString().length,T=l.maxLength-(l.indent+w+3);for(let k=1;k<=l.linesBefore;k++){if(y-k<0)break;let A=r(o.buffer,d[y-k],p[y-k],o.position-(d[y]-d[y-k]),T);E=e.repeat(" ",l.indent)+i((o.line-k+1).toString(),w)+" | "+A.str+` -`+E}let x=r(o.buffer,d[y],p[y],o.position,T);E+=e.repeat(" ",l.indent)+i((o.line+1).toString(),w)+" | "+x.str+` -`,E+=e.repeat("-",l.indent+w+3+x.pos)+`^ -`;for(let k=1;k<=l.linesAfter;k++){if(y+k>=p.length)break;let A=r(o.buffer,d[y+k],p[y+k],o.position-(d[y]-d[y+k]),T);E+=e.repeat(" ",l.indent)+i((o.line+k+1).toString(),w)+" | "+A.str+` -`}return E.replace(/\n$/,"")}return I(a,"makeSnippet"),HJe=a,HJe}function Zb(){if(JEr)return qJe;JEr=1;let e=_H(),r=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function a(l){let h={};if(l!==null)Object.keys(l).forEach(function(d){l[d].forEach(function(p){h[String(p)]=d})});return h}I(a,"compileStyleAliases");function o(l,h){if(h=h||{},Object.keys(h).forEach(function(d){if(r.indexOf(d)===-1)throw new e('Unknown option "'+d+'" is met in definition of "'+l+'" YAML type.')}),this.options=h,this.tag=l,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(d){return d},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.representName=h.representName||null,this.defaultStyle=h.defaultStyle||null,this.multi=h.multi||!1,this.styleAliases=a(h.styleAliases||null),i.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+l+'" YAML type.')}return I(o,"Type2"),qJe=o,qJe}function det(){if(ewr)return YJe;ewr=1;let e=_H(),r=Zb();function i(l,h){let d=[];return l[h].forEach(function(p){let m=d.length;d.forEach(function(y,E){if(y.tag===p.tag&&y.kind===p.kind&&y.multi===p.multi)m=E}),d[m]=p}),d}I(i,"compileList");function a(){let l={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function h(d){if(d.multi)l.multi[d.kind].push(d),l.multi.fallback.push(d);else l[d.kind][d.tag]=l.fallback[d.tag]=d}I(h,"collectType");for(let d=0,p=arguments.length;d=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}I(i,"isHexCode");function a(m){return m>=48&&m<=55}I(a,"isOctCode");function o(m){return m>=48&&m<=57}I(o,"isDecCode");function l(m){if(m===null)return!1;let y=m.length,E=0,w=!1;if(!y)return!1;let T=m[E];if(T==="-"||T==="+")T=m[++E];if(T==="0"){if(E+1===y)return!0;if(T=m[++E],T==="b"){E++;for(;E=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},"binary"),octal:I(function(m){return m>=0?"0o"+m.toString(8):"-0o"+m.toString(8).slice(1)},"octal"),decimal:I(function(m){return m.toString(10)},"decimal"),hexadecimal:I(function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),JJe}function _et(){if(lwr)return eet;lwr=1;let e=vH(),r=Zb(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(m){if(m===null)return!1;if(!i.test(m))return!1;if(isFinite(parseFloat(m,10)))return!0;return a.test(m)}I(o,"resolveYamlFloat");function l(m){let y=m.toLowerCase(),E=y[0]==="-"?-1:1;if("+-".indexOf(y[0])>=0)y=y.slice(1);if(y===".inf")return E===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(y===".nan")return NaN;return E*parseFloat(y,10)}I(l,"constructYamlFloat");let h=/^[-+]?[0-9]+e/;function d(m,y){if(isNaN(m))switch(y){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(y){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(y){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(m))return"-0.0";let E=m.toString(10);return h.test(E)?E.replace("e",".e"):E}I(d,"representYamlFloat");function p(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||e.isNegativeZero(m))}return I(p,"isFloat"),eet=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:l,predicate:p,represent:d,defaultStyle:"lowercase"}),eet}function Eet(){if(cwr)return tet;return cwr=1,tet=met().extend({implicit:[bet(),yet(),vet(),_et()]}),tet}function wet(){if(uwr)return ret;return uwr=1,ret=Eet(),ret}function Tet(){if(hwr)return net;hwr=1;let e=Zb(),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a(h){if(h===null)return!1;if(r.exec(h)!==null)return!0;if(i.exec(h)!==null)return!0;return!1}I(a,"resolveYamlTimestamp");function o(h){let d=0,p=null,m=r.exec(h);if(m===null)m=i.exec(h);if(m===null)throw Error("Date resolve error");let y=+m[1],E=+m[2]-1,w=+m[3];if(!m[4])return new Date(Date.UTC(y,E,w));let T=+m[4],x=+m[5],k=+m[6];if(m[7]){d=m[7].slice(0,3);while(d.length<3)d+="0";d=+d}if(m[9]){let R=+m[10],N=+(m[11]||0);if(p=(R*60+N)*60000,m[9]==="-")p=-p}let A=new Date(Date.UTC(y,E,w,T,x,k,d));if(p)A.setTime(A.getTime()-p);return A}I(o,"constructYamlTimestamp");function l(h){return h.toISOString()}return I(l,"representYamlTimestamp"),net=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:o,instanceOf:Date,represent:l}),net}function xet(){if(dwr)return iet;dwr=1;let e=Zb();function r(i){return i==="<<"||i===null}return I(r,"resolveYamlMerge"),iet=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:r}),iet}function Cet(){if(fwr)return aet;fwr=1;let e=Zb(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function i(h){if(h===null)return!1;let d=0,p=h.length,m=r;for(let y=0;y64)continue;if(E<0)return!1;d+=6}return d%8===0}I(i,"resolveYamlBinary");function a(h){let d=h.replace(/[\r\n=]/g,""),p=d.length,m=r,y=0,E=[];for(let T=0;T>16&255),E.push(y>>8&255),E.push(y&255);y=y<<6|m.indexOf(d.charAt(T))}let w=p%4*6;if(w===0)E.push(y>>16&255),E.push(y>>8&255),E.push(y&255);else if(w===18)E.push(y>>10&255),E.push(y>>2&255);else if(w===12)E.push(y>>4&255);return new Uint8Array(E)}I(a,"constructYamlBinary");function o(h){let d="",p=0,m=h.length,y=r;for(let w=0;w>18&63],d+=y[p>>12&63],d+=y[p>>6&63],d+=y[p&63];p=(p<<8)+h[w]}let E=m%3;if(E===0)d+=y[p>>18&63],d+=y[p>>12&63],d+=y[p>>6&63],d+=y[p&63];else if(E===2)d+=y[p>>10&63],d+=y[p>>4&63],d+=y[p<<2&63],d+=y[64];else if(E===1)d+=y[p>>2&63],d+=y[p<<4&63],d+=y[64],d+=y[64];return d}I(o,"representYamlBinary");function l(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}return I(l,"isBinary"),aet=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:a,predicate:l,represent:o}),aet}function ket(){if(pwr)return set;pwr=1;let e=Zb(),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function a(l){if(l===null)return!0;let h=[],d=l;for(let p=0,m=d.length;p=48&&oe<=57)return oe-48;let pe=oe|32;if(pe>=97&&pe<=102)return pe-97+10;return-1}I(P,"fromHexCode");function F(oe){if(oe===120)return 2;if(oe===117)return 4;if(oe===85)return 8;return 0}I(F,"escapedHexLen");function H(oe){if(oe>=48&&oe<=57)return oe-48;return-1}I(H,"fromDecimalCode");function K(oe){switch(oe){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return` -`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}I(K,"simpleEscapeSequence");function Q(oe){if(oe<=65535)return String.fromCharCode(oe);return String.fromCharCode((oe-65536>>10)+55296,(oe-65536&1023)+56320)}I(Q,"charFromCodepoint");function Z(oe,pe,fe){if(pe==="__proto__")Object.defineProperty(oe,pe,{configurable:!0,enumerable:!0,writable:!0,value:fe});else oe[pe]=fe}I(Z,"setProperty");let Y=Array(256),j=Array(256);for(let oe=0;oe<256;oe++)Y[oe]=K(oe)?1:0,j[oe]=K(oe);function te(oe,pe){this.input=oe,this.filename=pe.filename||null,this.schema=pe.schema||a,this.onWarning=pe.onWarning||null,this.legacy=pe.legacy||!1,this.json=pe.json||!1,this.listener=pe.listener||null,this.maxDepth=typeof pe.maxDepth==="number"?pe.maxDepth:100,this.maxTotalMergeKeys=typeof pe.maxTotalMergeKeys==="number"?pe.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=oe.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}I(te,"State");function X(oe,pe){let fe={name:oe.filename,buffer:oe.input.slice(0,-1),position:oe.position,line:oe.line,column:oe.position-oe.lineStart};return fe.snippet=i(fe),new r(pe,fe)}I(X,"generateError");function W(oe,pe){throw X(oe,pe)}I(W,"throwError");function J(oe,pe){if(oe.onWarning)oe.onWarning.call(null,X(oe,pe))}I(J,"throwWarning");function z(oe,pe,fe){let be=oe.anchorMapTransactions;if(be.length!==0){let ze=be[be.length-1];if(!o.call(ze,pe))ze[pe]={existed:o.call(oe.anchorMap,pe),value:oe.anchorMap[pe]}}oe.anchorMap[pe]=fe}I(z,"storeAnchor");function ne(oe){oe.anchorMapTransactions.push(Object.create(null))}I(ne,"beginAnchorTransaction");function ie(oe){let pe=oe.anchorMapTransactions.pop(),fe=oe.anchorMapTransactions;if(fe.length===0)return;let be=fe[fe.length-1],ze=Object.keys(pe);for(let Ce=0,_e=ze.length;Ce<_e;Ce+=1){let ke=ze[Ce];if(!o.call(be,ke))be[ke]=pe[ke]}}I(ie,"commitAnchorTransaction");function le(oe){let pe=oe.anchorMapTransactions.pop(),fe=Object.keys(pe);for(let be=fe.length-1;be>=0;be-=1){let ze=pe[fe[be]];if(ze.existed)oe.anchorMap[fe[be]]=ze.value;else delete oe.anchorMap[fe[be]]}}I(le,"rollbackAnchorTransaction");function se(oe){return{position:oe.position,line:oe.line,lineStart:oe.lineStart,lineIndent:oe.lineIndent,firstTabInLine:oe.firstTabInLine,tag:oe.tag,anchor:oe.anchor,kind:oe.kind,result:oe.result}}I(se,"snapshotState");function he(oe,pe){oe.position=pe.position,oe.line=pe.line,oe.lineStart=pe.lineStart,oe.lineIndent=pe.lineIndent,oe.firstTabInLine=pe.firstTabInLine,oe.tag=pe.tag,oe.anchor=pe.anchor,oe.kind=pe.kind,oe.result=pe.result}I(he,"restoreState");let ye={YAML:I(function(pe,fe,be){if(pe.version!==null)W(pe,"duplication of %YAML directive");if(be.length!==1)W(pe,"YAML directive accepts exactly one argument");let ze=/^([0-9]+)\.([0-9]+)$/.exec(be[0]);if(ze===null)W(pe,"ill-formed argument of the YAML directive");let Ce=parseInt(ze[1],10),_e=parseInt(ze[2],10);if(Ce!==1)W(pe,"unacceptable YAML version of the document");if(pe.version=be[0],pe.checkLineBreaks=_e<2,_e!==1&&_e!==2)J(pe,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:I(function(pe,fe,be){let ze;if(be.length!==2)W(pe,"TAG directive accepts exactly two arguments");let Ce=be[0];if(ze=be[1],!k.test(Ce))W(pe,"ill-formed tag handle (first argument) of the TAG directive");if(o.call(pe.tagMap,Ce))W(pe,'there is a previously declared suffix for "'+Ce+'" tag handle');if(!A.test(ze))W(pe,"ill-formed tag prefix (second argument) of the TAG directive");try{ze=decodeURIComponent(ze)}catch(_e){W(pe,"tag prefix is malformed: "+ze)}pe.tagMap[Ce]=ze},"handleTagDirective")};function xe(oe,pe,fe,be){if(pe=32&&ke<=1114111))W(oe,"expected valid JSON character")}else if(w.test(ze))W(oe,"the stream contains non-printable characters");oe.result+=ze}}I(xe,"captureSegment");function Ie(oe,pe,fe,be){if(!e.isObject(fe))W(oe,"cannot merge mappings; the provided source object is unacceptable");let ze=Object.keys(fe);for(let Ce=0,_e=ze.length;Ce<_e;Ce+=1){let ke=ze[Ce];if(oe.maxTotalMergeKeys!==-1&&++oe.totalMergeKeys>oe.maxTotalMergeKeys)W(oe,"merge keys exceeded maxTotalMergeKeys ("+oe.maxTotalMergeKeys+")");if(!o.call(pe,ke))Z(pe,ke,fe[ke]),be[ke]=!0}}I(Ie,"mergeMappings");function Ee(oe,pe,fe,be,ze,Ce,_e,ke,it){if(Array.isArray(ze)){ze=Array.prototype.slice.call(ze);for(let ut=0,gt=ze.length;ut1)oe.result+=e.repeat(` -`,pe-1)}I(je,"writeFoldedLines");function Qe(oe,pe,fe){let be,ze,Ce,_e,ke,it,{kind:ut,result:gt}=oe,vt=oe.input.charCodeAt(oe.position);if(B(vt)||D(vt)||vt===35||vt===38||vt===42||vt===33||vt===124||vt===62||vt===39||vt===34||vt===37||vt===64||vt===96)return!1;if(vt===63||vt===45){let ir=oe.input.charCodeAt(oe.position+1);if(B(ir)||fe&&D(ir))return!1}oe.kind="scalar",oe.result="",be=ze=oe.position,Ce=!1;while(vt!==0){if(vt===58){let ir=oe.input.charCodeAt(oe.position+1);if(B(ir)||fe&&D(ir))break}else if(vt===35){let ir=oe.input.charCodeAt(oe.position-1);if(B(ir))break}else if(oe.position===oe.lineStart&&Xe(oe)||fe&&D(vt))break;else if(N(vt))if(_e=oe.line,ke=oe.lineStart,it=oe.lineIndent,Me(oe,!1,-1),oe.lineIndent>=pe){Ce=!0,vt=oe.input.charCodeAt(oe.position);continue}else{oe.position=ze,oe.line=_e,oe.lineStart=ke,oe.lineIndent=it;break}if(Ce)xe(oe,be,ze,!1),je(oe,oe.line-_e),be=ze=oe.position,Ce=!1;if(!L(vt))ze=oe.position+1;vt=oe.input.charCodeAt(++oe.position)}if(xe(oe,be,ze,!1),oe.result)return!0;return oe.kind=ut,oe.result=gt,!1}I(Qe,"readPlainScalar");function St(oe,pe){let fe,be,ze=oe.input.charCodeAt(oe.position);if(ze!==39)return!1;oe.kind="scalar",oe.result="",oe.position++,fe=be=oe.position;while((ze=oe.input.charCodeAt(oe.position))!==0)if(ze===39)if(xe(oe,fe,oe.position,!0),ze=oe.input.charCodeAt(++oe.position),ze===39)fe=oe.position,oe.position++,be=oe.position;else return!0;else if(N(ze))xe(oe,fe,be,!0),je(oe,Me(oe,!1,pe)),fe=be=oe.position;else if(oe.position===oe.lineStart&&Xe(oe))W(oe,"unexpected end of the document within a single quoted scalar");else if(oe.position++,!L(ze))be=oe.position;W(oe,"unexpected end of the stream within a single quoted scalar")}I(St,"readSingleQuotedScalar");function pt(oe,pe){let fe,be,ze,Ce=oe.input.charCodeAt(oe.position);if(Ce!==34)return!1;oe.kind="scalar",oe.result="",oe.position++,fe=be=oe.position;while((Ce=oe.input.charCodeAt(oe.position))!==0)if(Ce===34)return xe(oe,fe,oe.position,!0),oe.position++,!0;else if(Ce===92){if(xe(oe,fe,oe.position,!0),Ce=oe.input.charCodeAt(++oe.position),N(Ce))Me(oe,!1,pe);else if(Ce<256&&Y[Ce])oe.result+=j[Ce],oe.position++;else if((ze=F(Ce))>0){let _e=ze,ke=0;for(;_e>0;_e--)if(Ce=oe.input.charCodeAt(++oe.position),(ze=P(Ce))>=0)ke=(ke<<4)+ze;else W(oe,"expected hexadecimal character");oe.result+=Q(ke),oe.position++}else W(oe,"unknown escape sequence");fe=be=oe.position}else if(N(Ce))xe(oe,fe,be,!0),je(oe,Me(oe,!1,pe)),fe=be=oe.position;else if(oe.position===oe.lineStart&&Xe(oe))W(oe,"unexpected end of the document within a double quoted scalar");else if(oe.position++,!L(Ce))be=oe.position;W(oe,"unexpected end of the stream within a double quoted scalar")}I(pt,"readDoubleQuotedScalar");function Vt(oe,pe){let fe=!0,be,ze,Ce,_e=oe.tag,ke,it=oe.anchor,ut,gt,vt,ir,qt=Object.create(null),cr,tr,Zt,lr=oe.input.charCodeAt(oe.position);if(lr===91)ut=93,ir=!1,ke=[];else if(lr===123)ut=125,ir=!0,ke={};else return!1;if(oe.anchor!==null)z(oe,oe.anchor,ke);lr=oe.input.charCodeAt(++oe.position);while(lr!==0){if(Me(oe,!0,pe),lr=oe.input.charCodeAt(oe.position),lr===ut)return oe.position++,oe.tag=_e,oe.anchor=it,oe.kind=ir?"mapping":"sequence",oe.result=ke,!0;else if(!fe)W(oe,"missed comma between flow collection entries");else if(lr===44)W(oe,"expected the node content, but found ','");if(tr=cr=Zt=null,gt=vt=!1,lr===63){let Kt=oe.input.charCodeAt(oe.position+1);if(B(Kt))gt=vt=!0,oe.position++,Me(oe,!0,pe)}if(be=oe.line,ze=oe.lineStart,Ce=oe.position,Ge(oe,pe,l,!1,!0),tr=oe.tag,cr=oe.result,Me(oe,!0,pe),lr=oe.input.charCodeAt(oe.position),(vt||oe.line===be)&&lr===58)gt=!0,lr=oe.input.charCodeAt(++oe.position),Me(oe,!0,pe),Ge(oe,pe,l,!1,!0),Zt=oe.result;if(ir)Ee(oe,ke,qt,tr,cr,Zt,be,ze,Ce);else if(gt)ke.push(Ee(oe,null,qt,tr,cr,Zt,be,ze,Ce));else ke.push(cr);if(Me(oe,!0,pe),lr=oe.input.charCodeAt(oe.position),lr===44)fe=!0,lr=oe.input.charCodeAt(++oe.position);else fe=!1}W(oe,"unexpected end of the stream within a flow collection")}I(Vt,"readFlowCollection");function Xt(oe,pe){let fe,be=m,ze=!1,Ce=!1,_e=pe,ke=0,it=!1,ut,gt=oe.input.charCodeAt(oe.position);if(gt===124)fe=!1;else if(gt===62)fe=!0;else return!1;oe.kind="scalar",oe.result="";while(gt!==0)if(gt=oe.input.charCodeAt(++oe.position),gt===43||gt===45)if(m===be)be=gt===43?E:y;else W(oe,"repeat of a chomping mode identifier");else if((ut=H(gt))>=0)if(ut===0)W(oe,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!Ce)_e=pe+ut-1,Ce=!0;else W(oe,"repeat of an indentation width identifier");else break;if(L(gt)){do gt=oe.input.charCodeAt(++oe.position);while(L(gt));if(gt===35)do gt=oe.input.charCodeAt(++oe.position);while(!N(gt)&>!==0)}while(gt!==0){Ue(oe),oe.lineIndent=0,gt=oe.input.charCodeAt(oe.position);while((!Ce||oe.lineIndent<_e)&>===32)oe.lineIndent++,gt=oe.input.charCodeAt(++oe.position);if(!Ce&&oe.lineIndent>_e)_e=oe.lineIndent;if(N(gt)){ke++;continue}if(!Ce&&_e===0)W(oe,"missing indentation for block scalar");if(oe.lineIndent<_e){if(be===E)oe.result+=e.repeat(` -`,ze?1+ke:ke);else if(be===m){if(ze)oe.result+=` -`}break}if(fe)if(L(gt))it=!0,oe.result+=e.repeat(` -`,ze?1+ke:ke);else if(it)it=!1,oe.result+=e.repeat(` -`,ke+1);else if(ke===0){if(ze)oe.result+=" "}else oe.result+=e.repeat(` -`,ke);else oe.result+=e.repeat(` -`,ze?1+ke:ke);ze=!0,Ce=!0,ke=0;let vt=oe.position;while(!N(gt)&>!==0)gt=oe.input.charCodeAt(++oe.position);xe(oe,vt,oe.position,!1)}return!0}I(Xt,"readBlockScalar");function rr(oe,pe){let{tag:fe,anchor:be}=oe,ze=[],Ce=!1;if(oe.firstTabInLine!==-1)return!1;if(oe.anchor!==null)z(oe,oe.anchor,ze);let _e=oe.input.charCodeAt(oe.position);while(_e!==0){if(oe.firstTabInLine!==-1)oe.position=oe.firstTabInLine,W(oe,"tab characters must not be used in indentation");if(_e!==45)break;let ke=oe.input.charCodeAt(oe.position+1);if(!B(ke))break;if(Ce=!0,oe.position++,Me(oe,!0,-1)){if(oe.lineIndent<=pe){ze.push(null),_e=oe.input.charCodeAt(oe.position);continue}}let it=oe.line;if(Ge(oe,pe,d,!1,!0),ze.push(oe.result),Me(oe,!0,-1),_e=oe.input.charCodeAt(oe.position),(oe.line===it||oe.lineIndent>pe)&&_e!==0)W(oe,"bad indentation of a sequence entry");else if(oe.lineIndentpe){if(cr)ze=oe.line,Ce=oe.lineStart,_e=oe.position;if(Ge(oe,pe,p,!0,be))if(cr)ir=oe.result;else qt=oe.result;if(!cr)Ee(oe,ut,gt,vt,ir,qt,ze,Ce,_e),vt=ir=qt=null;Me(oe,!0,-1),Zt=oe.input.charCodeAt(oe.position)}if((oe.line===Kt||oe.lineIndent>pe)&&Zt!==0)W(oe,"bad indentation of a mapping entry");else if(oe.lineIndent=oe.maxDepth)W(oe,"nesting exceeded maxDepth ("+oe.maxDepth+")");if(oe.depth+=1,oe.listener!==null)oe.listener("open",oe);oe.tag=null,oe.anchor=null,oe.kind=null,oe.result=null;let cr=Ce=_e=p===fe||d===fe;if(be){if(Me(oe,!0,-1)){if(it=!0,oe.lineIndent>pe)ke=1;else if(oe.lineIndent===pe)ke=0;else if(oe.lineIndentpe)ke=1;else if(oe.lineIndent===pe)ke=0;else if(oe.lineIndent tag; it should be "scalar", not "'+oe.kind+'"');for(let tr=0,Zt=oe.implicitTypes.length;tr");if(oe.result!==null&&vt.kind!==oe.kind)W(oe,"unacceptable node kind for !<"+oe.tag+'> tag; it should be "'+vt.kind+'", not "'+oe.kind+'"');if(!vt.resolve(oe.result,oe.tag))W(oe,"cannot resolve a node with !<"+oe.tag+"> explicit tag");else if(oe.result=vt.construct(oe.result,oe.tag),oe.anchor!==null)z(oe,oe.anchor,oe.result)}if(oe.listener!==null)oe.listener("close",oe);return oe.depth-=1,oe.tag!==null||oe.anchor!==null||ut}I(Ge,"composeNode");function qe(oe){let pe=oe.position,fe=!1,be;oe.version=null,oe.checkLineBreaks=oe.legacy,oe.tagMap=Object.create(null),oe.anchorMap=Object.create(null);while((be=oe.input.charCodeAt(oe.position))!==0){if(Me(oe,!0,-1),be=oe.input.charCodeAt(oe.position),oe.lineIndent>0||be!==37)break;fe=!0,be=oe.input.charCodeAt(++oe.position);let ze=oe.position;while(be!==0&&!B(be))be=oe.input.charCodeAt(++oe.position);let Ce=oe.input.slice(ze,oe.position),_e=[];if(Ce.length<1)W(oe,"directive name must not be less than one character in length");while(be!==0){while(L(be))be=oe.input.charCodeAt(++oe.position);if(be===35){do be=oe.input.charCodeAt(++oe.position);while(be!==0&&!N(be));break}if(N(be))break;ze=oe.position;while(be!==0&&!B(be))be=oe.input.charCodeAt(++oe.position);_e.push(oe.input.slice(ze,oe.position))}if(be!==0)Ue(oe);if(o.call(ye,Ce))ye[Ce](oe,Ce,_e);else J(oe,'unknown document directive "'+Ce+'"')}if(Me(oe,!0,-1),oe.lineIndent===0&&oe.input.charCodeAt(oe.position)===45&&oe.input.charCodeAt(oe.position+1)===45&&oe.input.charCodeAt(oe.position+2)===45)oe.position+=3,Me(oe,!0,-1);else if(fe)W(oe,"directives end mark is expected");if(Ge(oe,oe.lineIndent-1,p,!1,!0),Me(oe,!0,-1),oe.checkLineBreaks&&T.test(oe.input.slice(pe,oe.position)))J(oe,"non-ASCII line breaks are interpreted as content");if(oe.documents.push(oe.result),oe.position===oe.lineStart&&Xe(oe)){if(oe.input.charCodeAt(oe.position)===46)oe.position+=3,Me(oe,!0,-1);return}if(oe.position"u")fe=pe,pe=null;let be=Ke(oe,fe);if(typeof pe!=="function")return be;for(let ze=0,Ce=be.length;ze=32&&_e<=126||_e>=161&&_e<=55295&&_e!==8232&&_e!==8233||_e>=57344&&_e<=65533&&_e!==l||_e>=65536&&_e<=1114111}I(Ie,"isPrintable");function Ee(_e){return Ie(_e)&&_e!==l&&_e!==p&&_e!==d}I(Ee,"isNsCharOrWhitespace");function Ue(_e,ke,it){let ut=Ee(_e),gt=ut&&!xe(_e);return(it?ut:ut&&_e!==R&&_e!==H&&_e!==K&&_e!==Z&&_e!==j)&&_e!==w&&!(ke===L&&!gt)||Ee(ke)&&!xe(ke)&&_e===w||ke===L&>}I(Ue,"isPlainSafe");function Me(_e){return Ie(_e)&&_e!==l&&!xe(_e)&&_e!==N&&_e!==P&&_e!==L&&_e!==R&&_e!==H&&_e!==K&&_e!==Z&&_e!==j&&_e!==w&&_e!==x&&_e!==A&&_e!==y&&_e!==Y&&_e!==B&&_e!==D&&_e!==k&&_e!==E&&_e!==T&&_e!==F&&_e!==Q}I(Me,"isPlainSafeFirst");function Xe(_e){return!xe(_e)&&_e!==L}I(Xe,"isPlainSafeLast");function je(_e,ke){let it=_e.charCodeAt(ke),ut;if(it>=55296&&it<=56319&&ke+1<_e.length){if(ut=_e.charCodeAt(ke+1),ut>=56320&&ut<=57343)return(it-55296)*1024+ut-56320+65536}return it}I(je,"codePointAt");function Qe(_e){return/^\n* /.test(_e)}I(Qe,"needIndentIndicator");let St=1,pt=2,Vt=3,Xt=4,rr=5;function We(_e,ke,it,ut,gt,vt,ir,qt){let cr,tr=0,Zt=null,lr=!1,Kt=!1,In=ut!==-1,Et=-1,Xn=Me(je(_e,0))&&Xe(je(_e,_e.length-1));if(ke||ir)for(cr=0;cr<_e.length;tr>=65536?cr+=2:cr++){if(tr=je(_e,cr),!Ie(tr))return rr;Xn=Xn&&Ue(tr,Zt,qt),Zt=tr}else{for(cr=0;cr<_e.length;tr>=65536?cr+=2:cr++){if(tr=je(_e,cr),tr===d){if(lr=!0,In)Kt=Kt||cr-Et-1>ut&&_e[Et+1]!==" ",Et=cr}else if(!Ie(tr))return rr;Xn=Xn&&Ue(tr,Zt,qt),Zt=tr}Kt=Kt||In&&(cr-Et-1>ut&&_e[Et+1]!==" ")}if(!lr&&!Kt){if(Xn&&!ir&&!gt(_e))return St;return vt===ie?rr:pt}if(it>9&&Qe(_e))return rr;if(!ir)return Kt?Xt:Vt;return vt===ie?rr:pt}I(We,"chooseScalarStyle");function Nt(_e,ke,it,ut,gt){_e.dump=function(){if(ke.length===0)return _e.quotingType===ie?'""':"''";if(!_e.noCompatMode){if(X.indexOf(ke)!==-1||W.test(ke))return _e.quotingType===ie?'"'+ke+'"':"'"+ke+"'"}let vt=_e.indent*Math.max(1,it),ir=_e.lineWidth===-1?-1:Math.max(Math.min(_e.lineWidth,40),_e.lineWidth-vt),qt=ut||_e.flowLevel>-1&&it>=_e.flowLevel;function cr(tr){return ye(_e,tr)}switch(I(cr,"testAmbiguity"),We(ke,qt,_e.indent,ir,cr,_e.quotingType,_e.forceQuotes&&!ut,gt)){case St:return ke;case pt:return"'"+ke.replace(/'/g,"''")+"'";case Vt:return"|"+ct(ke,_e.indent)+bt(se(ke,vt));case Xt:return">"+ct(ke,_e.indent)+bt(se(Pe(ke,ir),vt));case rr:return'"'+qe(ke)+'"';default:throw new r("impossible error: invalid scalar style")}}()}I(Nt,"writeScalar");function ct(_e,ke){let it=Qe(_e)?String(ke):"",ut=_e[_e.length-1]===` -`,vt=ut&&(_e[_e.length-2]===` -`||_e===` -`)?"+":ut?"":"-";return it+vt+` -`}I(ct,"blockHeader");function bt(_e){return _e[_e.length-1]===` -`?_e.slice(0,-1):_e}I(bt,"dropEndingNewline");function Pe(_e,ke){let it=/(\n+)([^\n]*)/g,ut=function(){let qt=_e.indexOf(` -`);return qt=qt!==-1?qt:_e.length,it.lastIndex=qt,Ge(_e.slice(0,qt),ke)}(),gt=_e[0]===` -`||_e[0]===" ",vt,ir;while(ir=it.exec(_e)){let qt=ir[1],cr=ir[2];vt=cr[0]===" ",ut+=qt+(!gt&&!vt&&cr!==""?` -`:"")+Ge(cr,ke),gt=vt}return ut}I(Pe,"foldString");function Ge(_e,ke){if(_e===""||_e[0]===" ")return _e;let it=/ [^ ]/g,ut,gt=0,vt,ir=0,qt=0,cr="";while(ut=it.exec(_e)){if(qt=ut.index,qt-gt>ke)vt=ir>gt?ir:qt,cr+=` -`+_e.slice(gt,vt),gt=vt+1;ir=qt}if(cr+=` -`,_e.length-gt>ke&&ir>gt)cr+=_e.slice(gt,ir)+` -`+_e.slice(ir+1);else cr+=_e.slice(gt);return cr.slice(1)}I(Ge,"foldLine");function qe(_e){let ke="",it=0;for(let ut=0;ut<_e.length;it>=65536?ut+=2:ut++){it=je(_e,ut);let gt=te[it];if(!gt&&Ie(it)){if(ke+=_e[ut],it>=65536)ke+=_e[ut+1]}else ke+=gt||z(it)}return ke}I(qe,"escapeString");function Ke(_e,ke,it){let ut="",gt=_e.tag;for(let vt=0,ir=it.length;vt"u"&&fe(_e,ke,null,!1,!1)){if(ut!=="")ut+=","+(!_e.condenseFlow?" ":"");ut+=_e.dump}}_e.tag=gt,_e.dump="["+ut+"]"}I(Ke,"writeFlowSequence");function Je(_e,ke,it,ut){let gt="",vt=_e.tag;for(let ir=0,qt=it.length;ir"u"&&fe(_e,ke+1,null,!0,!0,!1,!0)){if(!ut||gt!=="")gt+=he(_e,ke);if(_e.dump&&d===_e.dump.charCodeAt(0))gt+="-";else gt+="- ";gt+=_e.dump}}_e.tag=vt,_e.dump=gt||"[]"}I(Je,"writeBlockSequence");function De(_e,ke,it){let ut="",gt=_e.tag,vt=Object.keys(it);for(let ir=0,qt=vt.length;ir1024)cr+="? ";if(cr+=_e.dump+(_e.condenseFlow?'"':"")+":"+(_e.condenseFlow?"":" "),!fe(_e,ke,Zt,!1,!1))continue;cr+=_e.dump,ut+=cr}_e.tag=gt,_e.dump="{"+ut+"}"}I(De,"writeFlowMapping");function oe(_e,ke,it,ut){let gt="",vt=_e.tag,ir=Object.keys(it);if(_e.sortKeys===!0)ir.sort();else if(typeof _e.sortKeys==="function")ir.sort(_e.sortKeys);else if(_e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(let qt=0,cr=ir.length;qt1024;if(Kt)if(_e.dump&&d===_e.dump.charCodeAt(0))tr+="?";else tr+="? ";if(tr+=_e.dump,Kt)tr+=he(_e,ke);if(!fe(_e,ke+1,lr,!0,Kt))continue;if(_e.dump&&d===_e.dump.charCodeAt(0))tr+=":";else tr+=": ";tr+=_e.dump,gt+=tr}_e.tag=vt,_e.dump=gt||"{}"}I(oe,"writeBlockMapping");function pe(_e,ke,it){let ut=it?_e.explicitTypes:_e.implicitTypes;for(let gt=0,vt=ut.length;gt tag resolver accepts not "'+qt+'" style');_e.dump=cr}return!0}}return!1}I(pe,"detectType");function fe(_e,ke,it,ut,gt,vt,ir){if(_e.tag=null,_e.dump=it,!pe(_e,it,!1))pe(_e,it,!0);let qt=a.call(_e.dump),cr=ut;if(ut)ut=_e.flowLevel<0||_e.flowLevel>ke;let tr=qt==="[object Object]"||qt==="[object Array]",Zt,lr;if(tr)Zt=_e.duplicates.indexOf(it),lr=Zt!==-1;if(_e.tag!==null&&_e.tag!=="?"||lr||_e.indent!==2&&ke>0)gt=!1;if(lr&&_e.usedDuplicates[Zt])_e.dump="*ref_"+Zt;else{if(tr&&lr&&!_e.usedDuplicates[Zt])_e.usedDuplicates[Zt]=!0;if(qt==="[object Object]"){if(ut&&Object.keys(_e.dump).length!==0){if(oe(_e,ke,_e.dump,gt),lr)_e.dump="&ref_"+Zt+_e.dump}else if(De(_e,ke,_e.dump),lr)_e.dump="&ref_"+Zt+" "+_e.dump}else if(qt==="[object Array]"){if(ut&&_e.dump.length!==0){if(_e.noArrayIndent&&!ir&&ke>0)Je(_e,ke-1,_e.dump,gt);else Je(_e,ke,_e.dump,gt);if(lr)_e.dump="&ref_"+Zt+_e.dump}else if(Ke(_e,ke,_e.dump),lr)_e.dump="&ref_"+Zt+" "+_e.dump}else if(qt==="[object String]"){if(_e.tag!=="?")Nt(_e,_e.dump,ke,vt,cr)}else if(qt==="[object Undefined]")return!1;else{if(_e.skipInvalid)return!1;throw new r("unacceptable kind of an object to dump "+qt)}if(_e.tag!==null&&_e.tag!=="?"){let Kt=encodeURI(_e.tag[0]==="!"?_e.tag.slice(1):_e.tag).replace(/!/g,"%21");if(_e.tag[0]==="!")Kt="!"+Kt;else if(Kt.slice(0,18)==="tag:yaml.org,2002:")Kt="!!"+Kt.slice(18);else Kt="!<"+Kt+">";_e.dump=Kt+" "+_e.dump}}return!0}I(fe,"writeNode");function be(_e,ke){let it=[],ut=[];ze(_e,it,ut);let gt=ut.length;for(let vt=0;vt{Ja();I(Ewr,"getDefaultExportFromCjs");Qb={},aEe={},yL={};I(vH,"requireCommon");I(_H,"requireException");I(wwr,"requireSnippet");I(Zb,"requireType");I(det,"requireSchema");I(fet,"requireStr");I(pet,"requireSeq");I(get,"requireMap");I(met,"requireFailsafe");I(bet,"require_null");I(yet,"requireBool");I(vet,"requireInt");I(_et,"requireFloat");I(Eet,"requireJson");I(wet,"requireCore");I(Tet,"requireTimestamp");I(xet,"requireMerge");I(Cet,"requireBinary");I(ket,"requireOmap");I(Aet,"requirePairs");I(Ret,"requireSet");I(sEe,"require_default");I(Swr,"requireLoader");het={};I(Twr,"requireDumper");I(xwr,"requireJsYaml");sqn=xwr(),oqn=Ewr(sqn),{Type:swa,Schema:owa,FAILSAFE_SCHEMA:lwa,JSON_SCHEMA:bC,CORE_SCHEMA:cwa,DEFAULT_SCHEMA:uwa,load:yC,loadAll:hwa,dump:dwa,YAMLException:fwa,types:pwa,safeLoad:gwa,safeLoadAll:mwa,safeDump:bwa}=oqn});var oEe;var WE=Re(()=>{Ja();oEe=I((e,r)=>{let{theme:i,themeVariables:a}=r,{useGradient:o,gradientStart:l,gradientStop:h}=a??{},d=e.attr("id"),p=i?.includes("dark")?"#FFFFFF":"#000000",m=I((E,w,T)=>e.append("defs").append("filter").attr("id",E).attr("height",w).attr("width",w).append("feDropShadow").attr("dx",T).attr("dy",T).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p),"dropShadow");if(m(`${d}-drop-shadow`,"130%","4"),m(`${d}-drop-shadow-small`,"150%","2"),!o)return;let y=e.append("linearGradient").attr("id",`${d}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");y.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),y.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)},"insertLookDefs")});var Cwr,lqn,h3,cqn,Tne,fa,ga,uqn;var R0=Re(()=>{eo();Ja();Cwr=I((e)=>{let{handDrawnSeed:r}=Ar();return{fill:e,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:e,seed:r}},"solidStateFill"),lqn=I((e)=>{if(Array.isArray(e))return e;if(!e)return[];return e.split(";").map((r)=>r.trim()).filter(Boolean)},"normalizeStyleList"),h3=I((e)=>{let r=cqn([...e.cssCompiledStyles||[],...e.cssStyles||[],...lqn(e.labelStyle)]);return{stylesMap:r,stylesArray:[...r]}},"compileStyles"),cqn=I((e)=>{let r=new Map;return e.forEach((i)=>{let[a,o]=i.split(":");r.set(a.trim(),o?.trim())}),r},"styles2Map"),Tne=I((e)=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),fa=I((e)=>{let{stylesArray:r}=h3(e),i=[],a=[],o=[],l=[];return r.forEach((h)=>{let d=h[0];if(Tne(d))i.push(h.join(":")+" !important");else{if(a.push(h.join(":")+" !important"),d.includes("stroke"))o.push(h.join(":")+" !important");if(d==="fill")l.push(h.join(":")+" !important")}}),{labelStyles:i.join(";"),nodeStyles:a.join(";"),stylesArray:r,borderStyles:o,backgroundStyles:l}},"styles2String"),ga=I((e,r)=>{let{themeVariables:i,handDrawnSeed:a}=Ar(),{nodeBorder:o,mainBkg:l}=i,{stylesMap:h}=h3(e);return Object.assign({roughness:0.7,fill:h.get("fill")||l,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:h.get("stroke")||o,seed:a,strokeWidth:h.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:uqn(h.get("stroke-dasharray"))},r)},"userNodeOverrides"),uqn=I((e)=>{if(!e)return[0,0];let r=e.trim().split(/\s+/).map(Number);if(r.length===1){let o=isNaN(r[0])?0:r[0];return[o,o]}let i=isNaN(r[0])?0:r[0],a=isNaN(r[1])?0:r[1];return[i,a]},"getStrokeDashArray")});var Iet=(e,r,i,a="")=>{let o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;a=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let d=o.pop(),p=o.pop(),m={provider:o.length>0?o[0]:a,prefix:p,name:d};return r&&!lEe(m)?null:m}let l=o[0],h=l.split("-");if(h.length>1){let d={provider:a,prefix:h.shift(),name:h.join("-")};return r&&!lEe(d)?null:d}if(i&&a===""){let d={provider:a,prefix:"",name:l};return r&&!lEe(d,i)?null:d}return null},lEe=(e,r)=>{if(!e)return!1;return!!((r&&e.prefix===""||!!e.prefix)&&!!e.name)};var kwr=()=>{};var hqn,EH,Oet,Awr;var cEe=Re(()=>{hqn=Object.freeze({left:0,top:0,width:16,height:16}),EH=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Oet=Object.freeze({...hqn,...EH}),Awr=Object.freeze({...Oet,body:"",hidden:!1})});function Rwr(e,r){let i={};if(!e.hFlip!==!r.hFlip)i.hFlip=!0;if(!e.vFlip!==!r.vFlip)i.vFlip=!0;let a=((e.rotate||0)+(r.rotate||0))%4;if(a)i.rotate=a;return i}var Iwr=()=>{};function Net(e,r){let i=Rwr(e,r);for(let a in Awr)if(a in EH){if(a in e&&!(a in i))i[a]=EH[a]}else if(a in r)i[a]=r[a];else if(a in e)i[a]=e[a];return i}var Owr=Re(()=>{cEe();Iwr()});function Nwr(e,r){let i=e.icons,a=e.aliases||Object.create(null),o=Object.create(null);function l(h){if(i[h])return o[h]=[];if(!(h in o)){o[h]=null;let d=a[h]&&a[h].parent,p=d&&l(d);if(p)o[h]=[d].concat(p)}return o[h]}return(r||Object.keys(i).concat(Object.keys(a))).forEach(l),o}var Lwr=()=>{};function Mwr(e,r,i){let a=e.icons,o=e.aliases||Object.create(null),l={};function h(d){l=Net(a[d]||o[d],l)}return h(r),i.forEach(h),Net(e,l)}function Let(e,r){if(e.icons[r])return Mwr(e,r,[]);let i=Nwr(e,[r])[r];return i?Mwr(e,r,i):null}var Dwr=Re(()=>{Owr();Lwr()});var dqn,Pwr;var Bwr=Re(()=>{cEe();dqn=Object.freeze({width:null,height:null}),Pwr=Object.freeze({...dqn,...EH})});function Met(e,r,i){if(r===1)return e;if(i=i||100,typeof e==="number")return Math.ceil(e*r*i)/i;if(typeof e!=="string")return e;let a=e.split(fqn);if(a===null||!a.length)return e;let o=[],l=a.shift(),h=pqn.test(l);while(!0){if(h){let d=parseFloat(l);if(isNaN(d))o.push(l);else o.push(Math.ceil(d*r*i)/i)}else o.push(l);if(l=a.shift(),l===void 0)return o.join("");h=!h}}var fqn,pqn;var Fwr=Re(()=>{fqn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,pqn=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function gqn(e,r="defs"){let i="",a=e.indexOf("<"+r);while(a>=0){let o=e.indexOf(">",a),l=e.indexOf("",l);if(h===-1)break;i+=e.slice(o+1,l).trim(),e=e.slice(0,a).trim()+e.slice(h+1)}return{defs:i,content:e}}function mqn(e,r){return e?""+e+""+r:r}function $wr(e,r,i){let a=gqn(e);return mqn(a.defs,r+a.content+i)}var Uwr=()=>{};function Det(e,r){let i={...Oet,...e},a={...Pwr,...r},o={left:i.left,top:i.top,width:i.width,height:i.height},l=i.body;[i,a].forEach((k)=>{let A=[],{hFlip:R,vFlip:N,rotate:L}=k;if(R)if(N)L+=2;else A.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),A.push("scale(-1 1)"),o.top=o.left=0;else if(N)A.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),A.push("scale(1 -1)"),o.top=o.left=0;let B;if(L<0)L-=Math.floor(L/4)*4;switch(L=L%4,L){case 1:B=o.height/2+o.top,A.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:A.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:B=o.width/2+o.left,A.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")")}if(L%2===1){if(o.left!==o.top)B=o.left,o.left=o.top,o.top=B;if(o.width!==o.height)B=o.width,o.width=o.height,o.height=B}if(A.length)l=$wr(l,'',"")});let{width:h,height:d}=a,{width:p,height:m}=o,y,E;if(h===null)E=d===null?"1em":d==="auto"?m:d,y=Met(E,p/m);else y=h==="auto"?p:h,E=d===null?Met(y,m/p):d==="auto"?m:d;let w={},T=(k,A)=>{if(!bqn(A))w[k]=A.toString()};T("width",y),T("height",E);let x=[o.left,o.top,p,m];return w.viewBox=x.join(" "),{attributes:w,viewBox:x,body:l}}var bqn=(e)=>e==="unset"||e==="undefined"||e==="none";var Gwr=Re(()=>{cEe();Bwr();Fwr();Uwr()});function vqn(e){e=e.replace(/[0-9]+$/,"")||"a";let r=zwr.get(e)||0;return zwr.set(e,r+1),r?`${e}${r}`:e}function Pet(e){let r=[],i;while(i=yqn.exec(e))r.push(i[1]);if(!r.length)return e;let a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach((o)=>{let l=vqn(o),h=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+h+')([")]|\\.[a-z])',"g"),"$1"+l+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}var yqn,zwr;var Vwr=Re(()=>{yqn=/\sid="(\S+)"/g,zwr=new Map});function Bet(e,r){let i=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let a in r)i+=" "+a+'="'+r[a]+'"';return'"+e+""}var Hwr=()=>{};var qwr=Re(()=>{kwr();Dwr();Gwr();Vwr();Hwr()});var $et,Fet,Ywr,wH,Wwr,uEe,Y_;var Pp=Re(()=>{eo();Zs();Ja();qwr();$et={body:'?',height:80,width:80},Fet=new Map,Ywr=new Map,wH=I((e)=>{for(let r of e){if(!r.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Ze.debug("Registering icon pack:",r.name),"loader"in r)Ywr.set(r.name,r.loader);else if("icons"in r)Fet.set(r.name,r.icons);else throw Ze.error("Invalid icon loader:",r),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Wwr=I(async(e,r)=>{let i=Iet(e,!0,r!==void 0);if(!i)throw Error(`Invalid icon name: ${e}`);let a=i.prefix||r;if(!a)throw Error(`Icon name must contain a prefix: ${e}`);let o=Fet.get(a);if(!o){let h=Ywr.get(a);if(!h)throw Error(`Icon set not found: ${i.prefix}`);try{o={...await h(),prefix:a},Fet.set(a,o)}catch(d){throw Ze.error(d),Error(`Failed to load icon set: ${i.prefix}`)}}let l=Let(o,i.name);if(!l)throw Error(`Icon not found: ${e}`);return l},"getRegisteredIconData"),uEe=I(async(e)=>{try{return await Wwr(e),!0}catch{return!1}},"isIconAvailable"),Y_=I(async(e,r,i)=>{let a;try{a=await Wwr(e,r?.fallbackPrefix)}catch(h){Ze.error(h),a=$et}let o=Det(a,r),l=Bet(Pet(o.body),{...o.attributes,...i});return ho(l,ea())},"getIconSVG")});var Xwr=Cr(function(jwr){Object.defineProperty(jwr,"__esModule",{value:!0});jwr.BLANK_URL=jwr.relativeFirstCharacters=jwr.whitespaceEscapeCharsRegex=jwr.urlSchemeRegex=jwr.ctrlCharactersRegex=jwr.htmlCtrlEntityRegex=jwr.htmlEntitiesRegex=jwr.invalidProtocolRegex=void 0;jwr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;jwr.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;jwr.htmlCtrlEntityRegex=/&(newline|tab);/gi;jwr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;jwr.urlSchemeRegex=/^.+(:|:)/gim;jwr.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;jwr.relativeFirstCharacters=[".","/"];jwr.BLANK_URL="about:blank"});var xne=Cr(function(Zwr){Object.defineProperty(Zwr,"__esModule",{value:!0});Zwr.sanitizeUrl=Iqn;var Jb=Xwr();function kqn(e){return Jb.relativeFirstCharacters.indexOf(e[0])>-1}function Aqn(e){var r=e.replace(Jb.ctrlCharactersRegex,"");return r.replace(Jb.htmlEntitiesRegex,function(i,a){return String.fromCharCode(a)})}function Rqn(e){return URL.canParse(e)}function Qwr(e){try{return decodeURIComponent(e)}catch(r){return e}}function Iqn(e){if(!e)return Jb.BLANK_URL;var r,i=Qwr(e.trim());do i=Aqn(i).replace(Jb.htmlCtrlEntityRegex,"").replace(Jb.ctrlCharactersRegex,"").replace(Jb.whitespaceEscapeCharsRegex,"").trim(),i=Qwr(i),r=i.match(Jb.ctrlCharactersRegex)||i.match(Jb.htmlEntitiesRegex)||i.match(Jb.htmlCtrlEntityRegex)||i.match(Jb.whitespaceEscapeCharsRegex);while(r&&r.length>0);var a=i;if(!a)return Jb.BLANK_URL;if(kqn(a))return a;var o=a.trimStart(),l=o.match(Jb.urlSchemeRegex);if(!l)return a;var h=l[0].toLowerCase().trim();if(Jb.invalidProtocolRegex.test(h))return Jb.BLANK_URL;var d=o.replace(/\\/g,"/");if(h==="mailto:"||h.includes("://"))return d;if(h==="http:"||h==="https:"){if(!Rqn(d))return Jb.BLANK_URL;var p=new URL(d);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return d}});function HP(e,r){if(typeof e!=="function"||r!=null&&typeof r!=="function")throw TypeError("Expected a function");let i=function(...a){let o=r?r.apply(this,a):a[0],l=i.cache;if(l.has(o))return l.get(o);let h=e.apply(this,a);return i.cache=l.set(o,h)||l,h};return i.cache=new(HP.Cache||Map),i}var Jwr=Re(()=>{HP.Cache=Map});function _L(e){return e==null||typeof e!=="object"&&typeof e!=="function"}var Cne=()=>{};function $R(e){if(e==null)return e===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(e)}var kne=()=>{};var hEe="[object RegExp]",SH="[object String]",TH="[object Number]",xH="[object Boolean]",CH="[object Arguments]",dEe="[object Symbol]",fEe="[object Date]",pEe="[object Map]",gEe="[object Set]",mEe="[object Array]",bEe="[object ArrayBuffer]",yEe="[object Object]",vEe="[object DataView]",_Ee="[object Uint8Array]",EEe="[object Uint8ClampedArray]",wEe="[object Uint16Array]",SEe="[object Uint32Array]",TEe="[object Int8Array]",xEe="[object Int16Array]",CEe="[object Int32Array]",kEe="[object Float32Array]",AEe="[object Float64Array]";var REe=()=>{};function eSr(e){return Array.isArray(e)}var tSr=()=>{};function kH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var IEe=()=>{};function EL(e){return kH(e)}var OEe=Re(()=>{IEe()});function Get(e){if(_L(e))return e;let r=$R(e);if(!Nqn(e))return{};if(eSr(e)){let a=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))a.index=e.index,a.input=e.input;return a}if(EL(e)){let a=e;return new a.constructor(a.buffer,a.byteOffset,a.length)}if(r==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(r==="[object DataView]"){let a=e,{buffer:o,byteOffset:l,byteLength:h}=a,d=new ArrayBuffer(h),p=new Uint8Array(o,l,h);return new Uint8Array(d).set(p),new DataView(d)}if(r==="[object Boolean]"||r==="[object Number]"||r==="[object String]"){let o=new e.constructor(e.valueOf());if(r==="[object String]")Mqn(o,e);else Uet(o,e);return o}if(r==="[object Date]")return new Date(Number(e));if(r==="[object RegExp]"){let a=e,o=new RegExp(a.source,a.flags);return o.lastIndex=a.lastIndex,o}if(r==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(r==="[object Map]"){let a=e,o=new Map;return a.forEach((l,h)=>{o.set(h,l)}),o}if(r==="[object Set]"){let a=e,o=new Set;return a.forEach((l)=>{o.add(l)}),o}if(r==="[object Arguments]"){let a=e,o={};return Uet(o,a),o.length=a.length,o[Symbol.iterator]=a[Symbol.iterator],o}let i={};return Dqn(i,e),Uet(i,e),Lqn(i,e),i}function Nqn(e){switch($R(e)){case CH:case mEe:case bEe:case vEe:case xH:case fEe:case kEe:case AEe:case TEe:case xEe:case CEe:case pEe:case TH:case yEe:case hEe:case gEe:case SH:case dEe:case _Ee:case EEe:case wEe:case SEe:return!0;default:return!1}}function Uet(e,r){for(let i in r)if(Object.hasOwn(r,i))e[i]=r[i]}function Lqn(e,r){let i=Object.getOwnPropertySymbols(r);for(let a=0;a=i))e[a]=r[a]}function Dqn(e,r){let i=Object.getPrototypeOf(r);if(i!==null){if(typeof r.constructor==="function")Object.setPrototypeOf(e,i)}}var rSr=Re(()=>{Cne();kne();REe();tSr();OEe()});function nSr(){}var iSr=()=>{};function aSr(e){if(_L(e))return e;if(Array.isArray(e)||kH(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let r=Object.getPrototypeOf(e);if(r==null)return Object.assign(Object.create(r),e);let i=r.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new i(e);if(e instanceof RegExp){let a=new i(e);return a.lastIndex=e.lastIndex,a}if(e instanceof DataView)return new i(e.buffer.slice(0));if(e instanceof Error){let a;if(e instanceof AggregateError)a=new i(e.errors,e.message,{cause:e.cause});else a=new i(e.message,{cause:e.cause});return a.stack=e.stack,Object.assign(a,e),a}if(typeof File<"u"&&e instanceof File)return new i([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e==="object")return Object.assign(Object.create(r),e);return e}var sSr=Re(()=>{Cne();IEe()});function NEe(e){return Object.getOwnPropertySymbols(e).filter((r)=>Object.prototype.propertyIsEnumerable.call(e,r))}var zet=()=>{};var Vet;var oSr=Re(()=>{Vet=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}()});function AH(e){return typeof Vet.Buffer<"u"&&Vet.Buffer.isBuffer(e)}var LEe=Re(()=>{oSr()});function lSr(e){return e==="__proto__"}var cSr=()=>{};function MEe(e){if(typeof e!=="object")return!1;if(e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let i=e[Symbol.toStringTag];if(i==null)return!1;if(!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable)return!1;return e.toString()===`[object ${i}]`}let r=e;while(Object.getPrototypeOf(r)!==null)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}var uSr=()=>{};function hSr(e,r){return RH(e,void 0,e,new Map,r)}function RH(e,r,i,a=new Map,o=void 0){let l=o?.(e,r,i,a);if(l!==void 0)return l;if(_L(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let h=Array(e.length);a.set(e,h);for(let d=0;d{Cne();IEe();zet();kne();REe();LEe()});function fSr(e,r){return hSr(e,(i,a,o,l)=>{let h=r?.(i,a,o,l);if(h!==void 0)return h;if(typeof e!=="object")return;if($R(e)==="[object Object]"&&typeof e.constructor!=="function"){let d={};return l.set(e,d),WS(d,e,o,l),d}switch(Object.prototype.toString.call(e)){case TH:case SH:case xH:{let d=new e.constructor(e?.valueOf());return WS(d,e),d}case CH:{let d={};return WS(d,e),d.length=e.length,d[Symbol.iterator]=e[Symbol.iterator],d}default:return}})}var pSr=Re(()=>{kne();REe();dSr()});function Het(e){return fSr(e)}var gSr=Re(()=>{pSr()});function Ane(e){return e!==null&&typeof e==="object"&&$R(e)==="[object Arguments]"}var qet=Re(()=>{kne()});function Rne(e){return typeof e==="object"&&e!==null}var Yet=()=>{};function mSr(e){return Number.isSafeInteger(e)&&e>=0}var bSr=()=>{};function DEe(e){return e!=null&&typeof e!=="function"&&mSr(e.length)}var Wet=Re(()=>{bSr()});function ySr(e){return Rne(e)&&DEe(e)}var vSr=Re(()=>{Wet();Yet()});function _Sr(e,...r){let i=r.slice(0,-1),a=r[r.length-1],o=e;for(let l=0;l{Cne();sSr();zet();LEe();cSr();uSr();gSr();qet();Yet();vSr();OEe()});function jet(e,...r){return _Sr(e,...r,nSr)}var wSr=Re(()=>{iSr();ESr()});function SSr(e){let r=e?.constructor;return e===(typeof r==="function"?r.prototype:Object.prototype)}var TSr=()=>{};function BEe(e){if(e==null)return!0;if(DEe(e)){if(typeof e.splice!=="function"&&typeof e!=="string"&&!AH(e)&&!EL(e)&&!Ane(e))return!1;return e.length===0}if(typeof e==="object"||typeof e==="function"){if(e instanceof Map||e instanceof Set)return e.size===0;let r=Object.keys(e);if(SSr(e))return r.filter((i)=>i!=="constructor").length===0;return r.length===0}return!0}var xSr=Re(()=>{LEe();Wet();qet();TSr();OEe()});var FEe=Re(()=>{Jwr();rSr();wSr();xSr()});function UEe(e,r){if(!e)return r;let i=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Bqn[i]??r}function OSr(e,r){let i=e.trim();if(!i)return;if(r.securityLevel!=="loose")return ASr.sanitizeUrl(i);return i}function Xet(e,r){if(!e||!r)return 0;return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function NSr(e){let r,i=0;e.forEach((o)=>{i+=Xet(o,r),r=o});let a=i/2;return Qet(e,a)}function LSr(e){if(e.length===1)return e[0];return NSr(e)}function MSr(e,r,i){let a=structuredClone(i);if(Ze.info("our points",a),r!=="start_left"&&r!=="start_right")a.reverse();let o=25+e,l=Qet(a,o),h=10+e*0.5,d=Math.atan2(a[0].y-l.y,a[0].x-l.x),p={x:0,y:0};if(r==="start_left")p.x=Math.sin(d+Math.PI)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d+Math.PI)*h+(a[0].y+l.y)/2;else if(r==="end_right")p.x=Math.sin(d-Math.PI)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d-Math.PI)*h+(a[0].y+l.y)/2;else if(r==="end_left")p.x=Math.sin(d)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d)*h+(a[0].y+l.y)/2;else p.x=Math.sin(d)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d)*h+(a[0].y+l.y)/2;return p}function GEe(e){let r="",i="";for(let a of e)if(a!==void 0)if(a.startsWith("color:")||a.startsWith("text-align:"))i=i+a+";";else r=r+a+";";return{style:r,labelStyle:i}}function DSr(e){let r="",i="0123456789abcdef",a=i.length;for(let o=0;oMath.round(parseFloat(l)).toString());return o.includes(i.toString())||o.includes(a.toString())}var ASr,Ket="​",Bqn,Fqn,$qn,RSr,ISr,Uqn,Gqn,CSr,Qet,zqn,kSr=0,Zet,Jet,Vqn,Hqn,qP,qqn,One,Yqn,$Ee,Wqn,jqn,W_,Ts,PSr,vC,j_;var Ql=Re(()=>{eo();Zs();Ja();dl();FEe();ASr=sv(xne(),1),Bqn={curveBasis:VP,curveBasisClosed:X2e,curveBasisOpen:Q2e,curveBumpX:dne,curveBumpY:fne,curveBundle:NJe,curveCardinalClosed:LJe,curveCardinalOpen:DJe,curveCardinal:mne,curveCatmullRomClosed:BJe,curveCatmullRomOpen:FJe,curveCatmullRom:vne,curveLinear:YS,curveLinearClosed:rEe,curveMonotoneX:_ne,curveMonotoneY:Ene,curveNatural:bH,curveStep:yH,curveStepAfter:Sne,curveStepBefore:wne},Fqn=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,$qn=I(function(e,r){let i=RSr(e,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(i)){let h=i.map((d)=>d.args);Ire(h),a=Sd(a,[...h])}else a=i.args;if(!a)return;let o=zV(e,r),l="config";if(a[l]!==void 0){if(o==="flowchart-v2")o="flowchart";a[o]=a[l],delete a[l]}return a},"detectInit"),RSr=I(function(e,r=null){try{let i=new RegExp(`[%]{2}(?![{]${Fqn.source})(?=[}][%]{2}).* -`,"ig");e=e.trim().replace(i,"").replace(/'/gm,'"'),Ze.debug(`Detecting diagram directive${r!==null?" type:"+r:""} based on the text:${e}`);let a,o=[];while((a=GV.exec(e))!==null){if(a.index===GV.lastIndex)GV.lastIndex++;if(a&&!r||r&&a[1]?.match(r)||r&&a[2]?.match(r)){let l=a[1]?a[1]:a[2],h=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:l,args:h})}}if(o.length===0)return{type:e,args:null};return o.length===1?o[0]:o}catch(i){return Ze.error(`ERROR: ${i.message} - Unable to parse directive type: '${r}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),ISr=I(function(e){return e.replace(GV,"")},"removeDirectives"),Uqn=I(function(e,r){for(let[i,a]of r.entries())if(a.match(e))return i;return-1},"isSubstringInArray");I(UEe,"interpolateToCurve");I(OSr,"formatUrl");Gqn=I((e,...r)=>{let i=e.split("."),a=i.length-1,o=i[a],l=window;for(let h=0;h{let i=Math.pow(10,r);return Math.round(e*i)/i},"roundNumber"),Qet=I((e,r)=>{let i=void 0,a=r;for(let o of e){if(i){let l=Xet(o,i);if(l===0)return i;if(l=1)return{x:o.x,y:o.y};if(h>0&&h<1)return{x:CSr((1-h)*i.x+h*o.x,5),y:CSr((1-h)*i.y+h*o.y,5)}}}i=o}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),zqn=I((e,r,i)=>{if(Ze.info(`our points ${JSON.stringify(r)}`),r[0]!==i)r=r.reverse();let o=Qet(r,25),l=e?10:5,h=Math.atan2(r[0].y-o.y,r[0].x-o.x),d={x:0,y:0};return d.x=Math.sin(h)*l+(r[0].x+o.x)/2,d.y=-Math.cos(h)*l+(r[0].y+o.y)/2,d},"calcCardinalityPosition");I(MSr,"calcTerminalLabelPosition");I(GEe,"getStylesFromArray");Zet=I(()=>(kSr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+kSr),"generateId");I(DSr,"makeRandomHex");Jet=I((e)=>DSr(e.length),"random"),Vqn=I(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Hqn=I(function(e,r){let i=r.text.replace(ai.lineBreakRegex," "),[,a]=W_(r.fontSize),o=e.append("text");if(o.attr("x",r.x),o.attr("y",r.y),o.style("text-anchor",r.anchor),o.style("font-family",r.fontFamily),o.style("font-size",a),o.style("font-weight",r.fontWeight),o.attr("fill",r.fill),r.class!==void 0)o.attr("class",r.class);let l=o.append("tspan");return l.attr("x",r.x+r.textMargin*2),l.attr("fill",r.fill),l.text(i),o},"drawSimpleText"),qP=HP((e,r,i)=>{if(!e)return e;if(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),ai.hasBreaks(e))return e;let a=e.split(" ").filter(Boolean),o=[],l="";return a.forEach((h,d)=>{let p=ey(`${h} `,i),m=ey(l,i);if(p>r){let{hyphenatedStrings:w,remainingWord:T}=qqn(h,r,"-",i);o.push(l,...w),l=T}else if(m+p>=r)o.push(l),l=h;else l=[l,h].filter(Boolean).join(" ");if(d+1===a.length)o.push(l)}),o.filter((h)=>h!=="").join(i.joinWith)},(e,r,i)=>`${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),qqn=HP((e,r,i="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let o=[...e],l=[],h="";return o.forEach((d,p)=>{let m=`${h}${d}`;if(ey(m,a)>=r){let E=p+1,w=o.length===E,T=`${m}${i}`;l.push(w?m:T),h=""}else h=m}),{hyphenatedStrings:l,remainingWord:h}},(e,r,i="-",a)=>`${e}${r}${i}${a.fontSize}${a.fontWeight}${a.fontFamily}`);I(Ine,"calculateTextHeight");I(ey,"calculateTextWidth");One=HP((e,r)=>{let{fontSize:i=12,fontFamily:a="Arial",fontWeight:o=400}=r;if(!e)return{width:0,height:0};let[,l]=W_(i),h=["sans-serif",a],d=e.split(ai.lineBreakRegex),p=[],m=xn("body");if(!m.remove)return{width:0,height:0,lineHeight:0};let y=m.append("svg");for(let w of h){let T=0,x={width:0,height:0,lineHeight:0};for(let k of d){let A=Vqn();A.text=k||Ket;let R=Hqn(y,A).style("font-size",l).style("font-weight",o).style("font-family",w),N=(R._groups||R)[0][0].getBBox();if(N.width===0&&N.height===0)throw Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,N.width)),T=Math.round(N.height),x.height+=T,x.lineHeight=Math.round(Math.max(x.lineHeight,T))}p.push(x)}y.remove();let E=isNaN(p[1].height)||isNaN(p[1].width)||isNaN(p[1].lineHeight)||p[0].height>p[1].height&&p[0].width>p[1].width&&p[0].lineHeight>p[1].lineHeight?0:1;return p[E]},(e,r)=>`${e}${r.fontSize}${r.fontWeight}${r.fontFamily}`),Yqn=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{I(this,"InitIDGenerator")}},Wqn=I(function(e){return $Ee=$Ee||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),$Ee.innerHTML=e,unescape($Ee.textContent)},"entityDecode");I(zEe,"isDetailedError");I(ett,"getErrorMessage");jqn=I((e,r,i,a)=>{if(!a)return;let o=e.node()?.getBBox();if(!o)return;e.append("text").text(a).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-i).attr("class",r)},"insertTitle"),W_=I((e)=>{if(typeof e==="number")return[e,e+"px"];let r=parseInt(e??"",10);if(Number.isNaN(r))return[void 0,void 0];else if(e===String(r))return[r,e+"px"];else return[r,e]},"parseFontSize");I(bc,"cleanAndMerge");Ts={assignWithDepth:Sd,wrapLabel:qP,calculateTextHeight:Ine,calculateTextWidth:ey,calculateTextDimensions:One,cleanAndMerge:bc,detectInit:$qn,detectDirective:RSr,isSubstringInArray:Uqn,interpolateToCurve:UEe,calcLabelPosition:LSr,calcCardinalityPosition:zqn,calcTerminalLabelPosition:MSr,formatUrl:OSr,getStylesFromArray:GEe,generateId:Zet,random:Jet,runFunc:Gqn,entityDecode:Wqn,insertTitle:jqn,isLabelCoordinateInPath:BSr,parseFontSize:W_,InitIDGenerator:Yqn},PSr=I(function(e){let r=e;return r=r.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),r=r.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),r=r.replace(/#\w+;/g,function(i){let a=i.substring(1,i.length-1);if(/^\+?\d+$/.test(a))return"fl°°"+a+"¶ß";else return"fl°"+a+"¶ß"}),r},"encodeEntities"),vC=I(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),j_=I((e,r,{counter:i=0,prefix:a,suffix:o},l)=>{if(l)return l;return`${a?`${a}_`:""}${e}_${r}_${i}${o?`_${o}`:""}`},"getEdgeId");I(np,"handleUndefinedAttr");I(BSr,"isLabelCoordinateInPath")});function rtt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function HSr(e){WP=e}function Nu(e,r=""){let i=typeof e=="string"?e:e.source,a={replace:(o,l)=>{let h=typeof l=="string"?l:l.source;return h=h.replace(gv.caret,"$1"),i=i.replace(o,h),a},getRegex:()=>new RegExp(i,r)};return a}function d3(e,r){if(r){if(gv.escapeTest.test(e))return e.replace(gv.escapeReplace,USr)}else if(gv.escapeTestNoEncode.test(e))return e.replace(gv.escapeReplaceNoEncode,USr);return e}function GSr(e){try{e=encodeURI(e).replace(gv.percentDecode,"%")}catch{return null}return e}function zSr(e,r){let i=e.replace(gv.findPipe,(l,h,d)=>{let p=!1,m=h;for(;--m>=0&&d[m]==="\\";)p=!p;return p?"|":" |"}),a=i.split(gv.splitPipe),o=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),r)if(a.length>r)a.splice(r);else for(;a.length0?-2:-1}function VSr(e,r,i,a,o){let l=r.href,h=r.title||null,d=e[1].replace(o.other.outputLinkReplace,"$1");a.state.inLink=!0;let p={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:h,text:d,tokens:a.inlineTokens(d)};return a.state.inLink=!1,p}function IYn(e,r,i){let a=e.match(i.other.indentCodeCompensation);if(a===null)return r;let o=a[1];return r.split(` +`},"getStyles"),jUn=I((e,r)=>{if(r!==void 0)F_e[e]=r},"addStylesForDiagram"),lvr=WUn,Y_e={};ZN(Y_e,{clear:()=>qs,getAccDescription:()=>lo,getAccTitle:()=>oo,getDiagramTitle:()=>fo,setAccDescription:()=>Js,setAccTitle:()=>Ys,setDiagramTitle:()=>_o});kXe=I((e)=>ho(e,ea()),"sanitizeText"),qs=I(()=>{TXe="",CXe="",xXe=""},"clear"),Ys=I((e)=>{TXe=kXe(e).replace(/^\s+/g,"")},"setAccTitle"),oo=I(()=>TXe,"getAccTitle"),Js=I((e)=>{CXe=kXe(e).replace(/\n\s+/g,` +`)},"setAccDescription"),lo=I(()=>CXe,"getAccDescription"),_o=I((e)=>{xXe=kXe(e)},"setDiagramTitle"),fo=I(()=>xXe,"getDiagramTitle"),Wyr=Ze,KUn=cre,Ar=ea,NR=wXe,KV=OR,W_e=I((e)=>ho(e,Ar()),"sanitizeText"),Dre=i3,XUn=I(()=>Y_e,"getCommonDb"),z_e={},Pre=I((e,r,i)=>{if(z_e[e])Wyr.warn(`Diagram with id ${e} already registered. Overwriting.`);if(z_e[e]=r,i)jyr(e,i);jUn(e,r.styles),r.injectUtils?.(Wyr,KUn,Ar,W_e,Dre,XUn(),()=>{})},"registerDiagram"),j_e=I((e)=>{if(e in z_e)return z_e[e];throw new QUn(e)},"getDiagram"),QUn=class extends Error{static{I(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}}});function IP(e,r){return e==null||r==null?NaN:er?1:e>=r?0:NaN}function AXe(e,r){return e==null||r==null?NaN:re?1:r>=e?0:NaN}function OP(e){let r,i,a;if(e.length!==2)r=IP,i=(d,p)=>IP(e(d),p),a=(d,p)=>e(d)-p;else r=e===IP||e===AXe?e:ZUn,i=e,a=e;function o(d,p,m=0,y=d.length){if(m>>1;if(i(d[v],p)<0)m=v+1;else y=v}while(m>>1;if(i(d[v],p)<=0)m=v+1;else y=v}while(mm&&a(d[v-1],p)>-a(d[v],p)?v-1:v}return{left:o,center:h,right:l}}function ZUn(){return 0}var RXe=()=>{};function IXe(e){return e===null?NaN:+e}var cvr,uvr,JUn,eGn,OXe;var hvr=Re(()=>{RXe();cvr=OP(IP),uvr=cvr.right,JUn=cvr.left,eGn=OP(IXe).center,OXe=uvr});function dvr({_intern:e,_key:r},i){let a=r(i);return e.has(a)?e.get(a):i}function tGn({_intern:e,_key:r},i){let a=r(i);if(e.has(a))return e.get(a);return e.set(a,i),i}function rGn({_intern:e,_key:r},i){let a=r(i);if(e.has(a))i=e.get(a),e.delete(a);return i}function nGn(e){return e!==null&&typeof e==="object"?e.valueOf():e}var Bre;var fvr=Re(()=>{Bre=class Bre extends Map{constructor(e,r=nGn){super();if(Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,a]of e)this.set(i,a)}get(e){return super.get(dvr(this,e))}has(e){return super.has(dvr(this,e))}set(e,r){return super.set(tGn(this,e),r)}delete(e){return super.delete(rGn(this,e))}}});function K_e(e,r,i){let a=(r-e)/Math.max(0,i),o=Math.floor(Math.log10(a)),l=a/Math.pow(10,o),h=l>=iGn?10:l>=aGn?5:l>=sGn?2:1,d,p,m;if(o<0){if(m=Math.pow(10,-o)/h,d=Math.round(e*m),p=Math.round(r*m),d/mr)--p;m=-m}else{if(m=Math.pow(10,o)*h,d=Math.round(e/m),p=Math.round(r/m),d*mr)--p}if(p0))return[];if(e===r)return[e];let a=r=o))return[];let d=l-o+1,p=Array(d);if(a)if(h<0)for(let m=0;m{iGn=Math.sqrt(50),aGn=Math.sqrt(10),sGn=Math.sqrt(2)});function Q_e(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i=o))i=o}return i}function Z_e(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i>a||i===void 0&&a>=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i>o||i===void 0&&o>=o))i=o}return i}function J_e(e,r,i){e=+e,r=+r,i=(o=arguments.length)<2?(r=e,e=0,1):o<3?1:+i;var a=-1,o=Math.max(0,Math.ceil((r-e)/i))|0,l=Array(o);while(++a{hvr();RXe();pvr();fvr()});function NXe(e){return e}function oGn(e){return"translate("+e+",0)"}function lGn(e){return"translate(0,"+e+")"}function cGn(e){return(r)=>+e(r)}function uGn(e,r){if(r=Math.max(0,e.bandwidth()-r*2)/2,e.round())r=Math.round(r);return(i)=>+e(i)+r}function hGn(){return!this.__axis}function mvr(e,r){var i=[],a=null,o=null,l=6,h=6,d=3,p=typeof window<"u"&&window.devicePixelRatio>1?0:0.5,m=e===t2e||e===e2e?-1:1,y=e===e2e||e===LXe?"x":"y",v=e===t2e||e===MXe?oGn:lGn;function w(T){var x=a==null?r.ticks?r.ticks.apply(r,i):r.domain():a,k=o==null?r.tickFormat?r.tickFormat.apply(r,i):NXe:o,A=Math.max(l,0)+d,R=r.range(),N=+R[0]+p,L=+R[R.length-1]+p,B=(r.bandwidth?uGn:cGn)(r.copy(),p),D=T.selection?T.selection():T,P=D.selectAll(".domain").data([null]),F=D.selectAll(".tick").data(x,r).order(),H=F.exit(),W=F.enter().append("g").attr("class","tick"),X=F.select("line"),Q=F.select("text");if(P=P.merge(P.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),F=F.merge(W),X=X.merge(W.append("line").attr("stroke","currentColor").attr(y+"2",m*l)),Q=Q.merge(W.append("text").attr("fill","currentColor").attr(y,m*A).attr("dy",e===t2e?"0em":e===MXe?"0.71em":"0.32em")),T!==D)P=P.transition(T),F=F.transition(T),X=X.transition(T),Q=Q.transition(T),H=H.transition(T).attr("opacity",gvr).attr("transform",function(Y){return isFinite(Y=B(Y))?v(Y+p):this.getAttribute("transform")}),W.attr("opacity",gvr).attr("transform",function(Y){var K=this.parentNode.__axis;return v((K&&isFinite(K=K(Y))?K:B(Y))+p)});H.remove(),P.attr("d",e===e2e||e===LXe?h?"M"+m*h+","+N+"H"+p+"V"+L+"H"+m*h:"M"+p+","+N+"V"+L:h?"M"+N+","+m*h+"V"+p+"H"+L+"V"+m*h:"M"+N+","+p+"H"+L),F.attr("opacity",1).attr("transform",function(Y){return v(B(Y)+p)}),X.attr(y+"2",m*l),Q.attr(y,m*A).text(k),D.filter(hGn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===LXe?"start":e===e2e?"end":"middle"),D.each(function(){this.__axis=B})}return w.scale=function(T){return arguments.length?(r=T,w):r},w.ticks=function(){return i=Array.from(arguments),w},w.tickArguments=function(T){return arguments.length?(i=T==null?[]:Array.from(T),w):i.slice()},w.tickValues=function(T){return arguments.length?(a=T==null?null:Array.from(T),w):a&&a.slice()},w.tickFormat=function(T){return arguments.length?(o=T,w):o},w.tickSize=function(T){return arguments.length?(l=h=+T,w):l},w.tickSizeInner=function(T){return arguments.length?(l=+T,w):l},w.tickSizeOuter=function(T){return arguments.length?(h=+T,w):h},w.tickPadding=function(T){return arguments.length?(d=+T,w):d},w.offset=function(T){return arguments.length?(p=+T,w):p},w}function DXe(e){return mvr(t2e,e)}function PXe(e){return mvr(MXe,e)}var t2e=1,LXe=2,MXe=3,e2e=4,gvr=0.000001;var bvr=()=>{};var yvr=Re(()=>{bvr()});function _vr(){for(var e=0,r=arguments.length,i={},a;e=0)a=i.slice(o+1),i=i.slice(0,o);if(i&&!r.hasOwnProperty(i))throw Error("unknown type: "+i);return{type:i,name:a}})}function pGn(e,r){for(var i=0,a=e.length,o;i{dGn={value:()=>{}};r2e.prototype=_vr.prototype={constructor:r2e,on:function(e,r){var i=this._,a=fGn(e+"",i),o,l=-1,h=a.length;if(arguments.length<2){while(++l0)for(var i=Array(o),a=0,o,l;a{Evr()});var n2e="http://www.w3.org/1999/xhtml",$Xe;var UXe=Re(()=>{$Xe={svg:"http://www.w3.org/2000/svg",xhtml:n2e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function a3(e){var r=e+="",i=r.indexOf(":");if(i>=0&&(r=e.slice(0,i))!=="xmlns")e=e.slice(i+1);return $Xe.hasOwnProperty(r)?{space:$Xe[r],local:e}:e}var i2e=Re(()=>{UXe()});function gGn(e){return function(){var r=this.ownerDocument,i=this.namespaceURI;return i===n2e&&r.documentElement.namespaceURI===n2e?r.createElement(e):r.createElementNS(i,e)}}function mGn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $re(e){var r=a3(e);return(r.local?mGn:gGn)(r)}var GXe=Re(()=>{i2e();UXe()});function bGn(){}function lL(e){return e==null?bGn:function(){return this.querySelector(e)}}function zXe(e){if(typeof e!=="function")e=lL(e);for(var r=this._groups,i=r.length,a=Array(i),o=0;o{cC()});function VXe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function yGn(){return[]}function QV(e){return e==null?yGn:function(){return this.querySelectorAll(e)}}function vGn(e){return function(){return VXe(e.apply(this,arguments))}}function HXe(e){if(typeof e==="function")e=vGn(e);else e=QV(e);for(var r=this._groups,i=r.length,a=[],o=[],l=0;l{cC()});function ZV(e){return function(){return this.matches(e)}}function a2e(e){return function(r){return r.matches(e)}}function EGn(e){return function(){return _Gn.call(this.children,e)}}function wGn(){return this.firstElementChild}function qXe(e){return this.select(e==null?wGn:EGn(typeof e==="function"?e:a2e(e)))}var _Gn;var Tvr=Re(()=>{_Gn=Array.prototype.find});function TGn(){return Array.from(this.children)}function xGn(e){return function(){return SGn.call(this.children,e)}}function YXe(e){return this.selectAll(e==null?TGn:xGn(typeof e==="function"?e:a2e(e)))}var SGn;var xvr=Re(()=>{SGn=Array.prototype.filter});function WXe(e){if(typeof e!=="function")e=ZV(e);for(var r=this._groups,i=r.length,a=Array(i),o=0;o{cC()});function Ure(e){return Array(e.length)}function jXe(){return new Dp(this._enter||this._groups.map(Ure),this._parents)}function Gre(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}var KXe=Re(()=>{cC();Gre.prototype={constructor:Gre,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,r){return this._parent.insertBefore(e,r)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}});function XXe(e){return function(){return e}}function CGn(e,r,i,a,o,l){var h=0,d,p=r.length,m=l.length;for(;h=L)L=N+1;while(!(D=A[L])&&++L{cC();KXe()});function ZXe(){return new Dp(this._exit||this._groups.map(Ure),this._parents)}var Avr=Re(()=>{cC()});function JXe(e,r,i){var a=this.enter(),o=this,l=this.exit();if(typeof e==="function"){if(a=e(a),a)a=a.selection()}else a=a.append(e+"");if(r!=null){if(o=r(o),o)o=o.selection()}if(i==null)l.remove();else i(l);return a&&o?a.merge(o).order():o}function eQe(e){var r=e.selection?e.selection():e;for(var i=this._groups,a=r._groups,o=i.length,l=a.length,h=Math.min(o,l),d=Array(o),p=0;p{cC()});function tQe(){for(var e=this._groups,r=-1,i=e.length;++r=0;)if(h=a[o]){if(l&&h.compareDocumentPosition(l)^4)l.parentNode.insertBefore(h,l);l=h}return this}function rQe(e){if(!e)e=IGn;function r(v,w){return v&&w?e(v.__data__,w.__data__):!v-!w}for(var i=this._groups,a=i.length,o=Array(a),l=0;lr?1:e>=r?0:NaN}var Ivr=Re(()=>{cC()});function nQe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function iQe(){return Array.from(this)}function aQe(){for(var e=this._groups,r=0,i=e.length;r{i2e()});function zre(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function BGn(e){return function(){this.style.removeProperty(e)}}function FGn(e,r,i){return function(){this.style.setProperty(e,r,i)}}function $Gn(e,r,i){return function(){var a=r.apply(this,arguments);if(a==null)this.style.removeProperty(e);else this.style.setProperty(e,a,i)}}function uQe(e,r,i){return arguments.length>1?this.each((r==null?BGn:typeof r==="function"?$Gn:FGn)(e,r,i==null?"":i)):cL(this.node(),e)}function cL(e,r){return e.style.getPropertyValue(r)||zre(e).getComputedStyle(e,null).getPropertyValue(r)}var hQe=()=>{};function UGn(e){return function(){delete this[e]}}function GGn(e,r){return function(){this[e]=r}}function zGn(e,r){return function(){var i=r.apply(this,arguments);if(i==null)delete this[e];else this[e]=i}}function dQe(e,r){return arguments.length>1?this.each((r==null?UGn:typeof r==="function"?zGn:GGn)(e,r)):this.node()[e]}function Nvr(e){return e.trim().split(/^|\s+/)}function fQe(e){return e.classList||new Lvr(e)}function Lvr(e){this._node=e,this._names=Nvr(e.getAttribute("class")||"")}function Mvr(e,r){var i=fQe(e),a=-1,o=r.length;while(++a{Lvr.prototype={add:function(e){var r=this._names.indexOf(e);if(r<0)this._names.push(e),this._node.setAttribute("class",this._names.join(" "))},remove:function(e){var r=this._names.indexOf(e);if(r>=0)this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" "))},contains:function(e){return this._names.indexOf(e)>=0}}});function YGn(){this.textContent=""}function WGn(e){return function(){this.textContent=e}}function jGn(e){return function(){var r=e.apply(this,arguments);this.textContent=r==null?"":r}}function gQe(e){return arguments.length?this.each(e==null?YGn:(typeof e==="function"?jGn:WGn)(e)):this.node().textContent}function KGn(){this.innerHTML=""}function XGn(e){return function(){this.innerHTML=e}}function QGn(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r==null?"":r}}function mQe(e){return arguments.length?this.each(e==null?KGn:(typeof e==="function"?QGn:XGn)(e)):this.node().innerHTML}function ZGn(){if(this.nextSibling)this.parentNode.appendChild(this)}function bQe(){return this.each(ZGn)}function JGn(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yQe(){return this.each(JGn)}function vQe(e){var r=typeof e==="function"?e:$re(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}var Bvr=Re(()=>{GXe()});function ezn(){return null}function _Qe(e,r){var i=typeof e==="function"?e:$re(e),a=r==null?ezn:typeof r==="function"?r:lL(r);return this.select(function(){return this.insertBefore(i.apply(this,arguments),a.apply(this,arguments)||null)})}var Fvr=Re(()=>{GXe()});function tzn(){var e=this.parentNode;if(e)e.removeChild(this)}function EQe(){return this.each(tzn)}function rzn(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function nzn(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function wQe(e){return this.select(e?nzn:rzn)}function SQe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function izn(e){return function(r){e.call(this,r,this.__data__)}}function azn(e){return e.trim().split(/^|\s+/).map(function(r){var i="",a=r.indexOf(".");if(a>=0)i=r.slice(a+1),r=r.slice(0,a);return{type:r,name:i}})}function szn(e){return function(){var r=this.__on;if(!r)return;for(var i=0,a=-1,o=r.length,l;i{};function*CQe(){for(var e=this._groups,r=0,i=e.length;r{wvr();Svr();Tvr();xvr();Cvr();kvr();KXe();Avr();Rvr();Ivr();Ovr();hQe();Pvr();Bvr();Fvr();Uvr();kQe=[null];Dp.prototype=Gvr.prototype={constructor:Dp,select:zXe,selectAll:HXe,selectChild:qXe,selectChildren:YXe,filter:WXe,data:QXe,enter:jXe,exit:ZXe,join:JXe,merge:eQe,selection:uzn,order:tQe,sort:rQe,call:nQe,nodes:iQe,node:aQe,size:sQe,empty:oQe,each:lQe,attr:cQe,style:uQe,property:dQe,classed:pQe,text:gQe,html:mQe,raise:bQe,lower:yQe,append:vQe,insert:_Qe,remove:EQe,clone:wQe,datum:SQe,on:TQe,dispatch:xQe,[Symbol.iterator]:CQe};LR=Gvr});function xn(e){return typeof e==="string"?new Dp([[document.querySelector(e)]],[document.documentElement]):new Dp([[e]],kQe)}var zvr=Re(()=>{cC()});var uC=Re(()=>{i2e();zvr();cC();hQe()});var Vvr=()=>{};function uL(e,r,i){e.prototype=r.prototype=i,i.constructor=e}function JV(e,r){var i=Object.create(e.prototype);for(var a in r)i[a]=r[a];return i}function hL(){}function qvr(){return this.rgb().formatHex()}function yzn(){return this.rgb().formatHex8()}function vzn(){return Zvr(this).formatHsl()}function Yvr(){return this.rgb().formatRgb()}function dC(e){var r,i;return e=(e+"").trim().toLowerCase(),(r=hzn.exec(e))?(i=r[1].length,r=parseInt(r[1],16),i===6?Wvr(r):i===3?new q1(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):i===8?s2e(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):i===4?s2e(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=dzn.exec(e))?new q1(r[1],r[2],r[3],1):(r=fzn.exec(e))?new q1(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=pzn.exec(e))?s2e(r[1],r[2],r[3],r[4]):(r=gzn.exec(e))?s2e(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=mzn.exec(e))?Xvr(r[1],r[2]/100,r[3]/100,1):(r=bzn.exec(e))?Xvr(r[1],r[2]/100,r[3]/100,r[4]):Hvr.hasOwnProperty(e)?Wvr(Hvr[e]):e==="transparent"?new q1(NaN,NaN,NaN,0):null}function Wvr(e){return new q1(e>>16&255,e>>8&255,e&255,1)}function s2e(e,r,i,a){if(a<=0)e=r=i=NaN;return new q1(e,r,i,a)}function RQe(e){if(!(e instanceof hL))e=dC(e);if(!e)return new q1;return e=e.rgb(),new q1(e.r,e.g,e.b,e.opacity)}function tH(e,r,i,a){return arguments.length===1?RQe(e):new q1(e,r,i,a==null?1:a)}function q1(e,r,i,a){this.r=+e,this.g=+r,this.b=+i,this.opacity=+a}function jvr(){return`#${NP(this.r)}${NP(this.g)}${NP(this.b)}`}function _zn(){return`#${NP(this.r)}${NP(this.g)}${NP(this.b)}${NP((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kvr(){let e=c2e(this.opacity);return`${e===1?"rgb(":"rgba("}${LP(this.r)}, ${LP(this.g)}, ${LP(this.b)}${e===1?")":`, ${e})`}`}function c2e(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function LP(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function NP(e){return e=LP(e),(e<16?"0":"")+e.toString(16)}function Xvr(e,r,i,a){if(a<=0)e=r=i=NaN;else if(i<=0||i>=1)e=r=NaN;else if(r<=0)e=NaN;return new hC(e,r,i,a)}function Zvr(e){if(e instanceof hC)return new hC(e.h,e.s,e.l,e.opacity);if(!(e instanceof hL))e=dC(e);if(!e)return new hC;if(e instanceof hC)return e;e=e.rgb();var r=e.r/255,i=e.g/255,a=e.b/255,o=Math.min(r,i,a),l=Math.max(r,i,a),h=NaN,d=l-o,p=(l+o)/2;if(d){if(r===l)h=(i-a)/d+(i0&&p<1?0:h;return new hC(h,d,p,e.opacity)}function Jvr(e,r,i,a){return arguments.length===1?Zvr(e):new hC(e,r,i,a==null?1:a)}function hC(e,r,i,a){this.h=+e,this.s=+r,this.l=+i,this.opacity=+a}function Qvr(e){return e=(e||0)%360,e<0?e+360:e}function o2e(e){return Math.max(0,Math.min(1,e||0))}function AQe(e,r,i){return(e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r)*255}var Vre=0.7,l2e,eH="\\s*([+-]?\\d+)\\s*",Hre="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s3="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hzn,dzn,fzn,pzn,gzn,mzn,bzn,Hvr;var IQe=Re(()=>{l2e=1/Vre,hzn=/^#([0-9a-f]{3,8})$/,dzn=new RegExp(`^rgb\\(${eH},${eH},${eH}\\)$`),fzn=new RegExp(`^rgb\\(${s3},${s3},${s3}\\)$`),pzn=new RegExp(`^rgba\\(${eH},${eH},${eH},${Hre}\\)$`),gzn=new RegExp(`^rgba\\(${s3},${s3},${s3},${Hre}\\)$`),mzn=new RegExp(`^hsl\\(${Hre},${s3},${s3}\\)$`),bzn=new RegExp(`^hsla\\(${Hre},${s3},${s3},${Hre}\\)$`),Hvr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};uL(hL,dC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qvr,formatHex:qvr,formatHex8:yzn,formatHsl:vzn,formatRgb:Yvr,toString:Yvr});uL(q1,tH,JV(hL,{brighter(e){return e=e==null?l2e:Math.pow(l2e,e),new q1(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vre:Math.pow(Vre,e),new q1(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new q1(LP(this.r),LP(this.g),LP(this.b),c2e(this.opacity))},displayable(){return-0.5<=this.r&&this.r<255.5&&(-0.5<=this.g&&this.g<255.5)&&(-0.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:jvr,formatHex:jvr,formatHex8:_zn,formatRgb:Kvr,toString:Kvr}));uL(hC,Jvr,JV(hL,{brighter(e){return e=e==null?l2e:Math.pow(l2e,e),new hC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vre:Math.pow(Vre,e),new hC(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<0.5?i:1-i)*r,o=2*i-a;return new q1(AQe(e>=240?e-240:e+120,o,a),AQe(e,o,a),AQe(e<120?e+240:e-120,o,a),this.opacity)},clamp(){return new hC(Qvr(this.h),o2e(this.s),o2e(this.l),c2e(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){let e=c2e(this.opacity);return`${e===1?"hsl(":"hsla("}${Qvr(this.h)}, ${o2e(this.s)*100}%, ${o2e(this.l)*100}%${e===1?")":`, ${e})`}`}}))});var e_r,t_r;var r_r=Re(()=>{e_r=Math.PI/180,t_r=180/Math.PI});function l_r(e){if(e instanceof o3)return new o3(e.l,e.a,e.b,e.opacity);if(e instanceof MR)return c_r(e);if(!(e instanceof q1))e=RQe(e);var r=MQe(e.r),i=MQe(e.g),a=MQe(e.b),o=OQe((0.2225045*r+0.7168786*i+0.0606169*a)/i_r),l,h;if(r===i&&i===a)l=h=o;else l=OQe((0.4360747*r+0.3850649*i+0.1430804*a)/n_r),h=OQe((0.0139322*r+0.0971045*i+0.7141733*a)/a_r);return new o3(116*o-16,500*(l-o),200*(o-h),e.opacity)}function DQe(e,r,i,a){return arguments.length===1?l_r(e):new o3(e,r,i,a==null?1:a)}function o3(e,r,i,a){this.l=+e,this.a=+r,this.b=+i,this.opacity=+a}function OQe(e){return e>Ezn?Math.pow(e,0.3333333333333333):e/o_r+s_r}function NQe(e){return e>rH?e*e*e:o_r*(e-s_r)}function LQe(e){return 255*(e<=0.0031308?12.92*e:1.055*Math.pow(e,0.4166666666666667)-0.055)}function MQe(e){return(e/=255)<=0.04045?e/12.92:Math.pow((e+0.055)/1.055,2.4)}function wzn(e){if(e instanceof MR)return new MR(e.h,e.c,e.l,e.opacity);if(!(e instanceof o3))e=l_r(e);if(e.a===0&&e.b===0)return new MR(NaN,0{IQe();r_r();o_r=3*rH*rH,Ezn=rH*rH*rH;uL(o3,DQe,JV(hL,{brighter(e){return new o3(this.l+u2e*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new o3(this.l-u2e*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,r=isNaN(this.a)?e:e+this.a/500,i=isNaN(this.b)?e:e-this.b/200;return r=n_r*NQe(r),e=i_r*NQe(e),i=a_r*NQe(i),new q1(LQe(3.1338561*r-1.6168667*e-0.4906146*i),LQe(-0.9787684*r+1.9161415*e+0.033454*i),LQe(0.0719453*r-0.2289914*e+1.4052427*i),this.opacity)}}));uL(MR,qre,JV(hL,{brighter(e){return new MR(this.h,this.c,this.l+u2e*(e==null?1:e),this.opacity)},darker(e){return new MR(this.h,this.c,this.l-u2e*(e==null?1:e),this.opacity)},rgb(){return c_r(this).rgb()}}))});var nH=Re(()=>{IQe();u_r()});function PQe(e,r,i,a,o){var l=e*e,h=l*e;return((1-3*e+3*l-h)*r+(4-6*l+3*h)*i+(1+3*e+3*l-3*h)*a+h*o)/6}function BQe(e){var r=e.length-1;return function(i){var a=i<=0?i=0:i>=1?(i=1,r-1):Math.floor(i*r),o=e[a],l=e[a+1],h=a>0?e[a-1]:2*o-l,d=a{};var iH=(e)=>()=>e;function d_r(e,r){return function(i){return e+i*r}}function Szn(e,r,i){return e=Math.pow(e,i),r=Math.pow(r,i)-e,i=1/i,function(a){return Math.pow(e+a*r,i)}}function f_r(e,r){var i=r-e;return i?d_r(e,i>180||i<-180?i-360*Math.round(i/360):i):iH(isNaN(e)?r:e)}function p_r(e){return(e=+e)===1?DR:function(r,i){return i-r?Szn(r,i,e):iH(isNaN(r)?i:r)}}function DR(e,r){var i=r-e;return i?d_r(e,i):iH(isNaN(e)?r:e)}var $Qe=()=>{};function g_r(e){return function(r){var i=r.length,a=Array(i),o=Array(i),l=Array(i),h,d;for(h=0;h{nH();h_r();$Qe();MP=function e(r){var i=p_r(r);function a(o,l){var h=i((o=tH(o)).r,(l=tH(l)).r),d=i(o.g,l.g),p=i(o.b,l.b),m=DR(o.opacity,l.opacity);return function(y){return o.r=h(y),o.g=d(y),o.b=p(y),o.opacity=m(y),o+""}}return a.gamma=e,a}(1);Tzn=g_r(BQe),xzn=g_r(FQe)});function GQe(e,r){if(!r)r=[];var i=e?Math.min(r.length,e.length):0,a=r.slice(),o;return function(l){for(o=0;o{h2e()});function zQe(e,r){var i=new Date;return e=+e,r=+r,function(a){return i.setTime(e*(1-a)+r*a),i}}function jm(e,r){return e=+e,r=+r,function(i){return e*(1-i)+r*i}}function VQe(e,r){var i={},a={},o;if(e===null||typeof e!=="object")e={};if(r===null||typeof r!=="object")r={};for(o in r)if(o in e)i[o]=dL(e[o],r[o]);else a[o]=r[o];return function(l){for(o in i)a[o]=i[o](l);return a}}var v_r=Re(()=>{h2e()});function Czn(e){return function(){return e}}function kzn(e){return function(r){return e(r)+""}}function aH(e,r){var i=qQe.lastIndex=HQe.lastIndex=0,a,o,l,h=-1,d=[],p=[];e=e+"",r=r+"";while((a=qQe.exec(e))&&(o=HQe.exec(r))){if((l=o.index)>i)if(l=r.slice(i,l),d[h])d[h]+=l;else d[++h]=l;if((a=a[0])===(o=o[0]))if(d[h])d[h]+=o;else d[++h]=o;else d[++h]=null,p.push({i:h,x:jm(a,o)});i=HQe.lastIndex}if(i{qQe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,HQe=new RegExp(qQe.source,"g")});function dL(e,r){var i=typeof r,a;return r==null||i==="boolean"?iH(r):(i==="number"?jm:i==="string"?(a=dC(r))?(r=a,MP):aH:r instanceof dC?MP:r instanceof Date?zQe:m_r(r)?GQe:Array.isArray(r)?b_r:typeof r.valueOf!=="function"&&typeof r.toString!=="function"||isNaN(r)?VQe:jm)(e,r)}var h2e=Re(()=>{nH();UQe();y_r();v_r();YQe()});function d2e(e,r){return e=+e,r=+r,function(i){return Math.round(e*(1-i)+r*i)}}function p2e(e,r,i,a,o,l){var h,d,p;if(h=Math.sqrt(e*e+r*r))e/=h,r/=h;if(p=e*i+r*a)i-=e*p,a-=r*p;if(d=Math.sqrt(i*i+a*a))i/=d,a/=d,p/=d;if(e*a{__r=180/Math.PI,f2e={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}});function w_r(e){let r=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?f2e:p2e(r.a,r.b,r.c,r.d,r.e,r.f)}function S_r(e){if(e==null)return f2e;if(!g2e)g2e=document.createElementNS("http://www.w3.org/2000/svg","g");if(g2e.setAttribute("transform",e),!(e=g2e.transform.baseVal.consolidate()))return f2e;return e=e.matrix,p2e(e.a,e.b,e.c,e.d,e.e,e.f)}var g2e;var T_r=Re(()=>{E_r()});function x_r(e,r,i,a){function o(m){return m.length?m.pop()+" ":""}function l(m,y,v,w,T,x){if(m!==v||y!==w){var k=T.push("translate(",null,r,null,i);x.push({i:k-4,x:jm(m,v)},{i:k-2,x:jm(y,w)})}else if(v||w)T.push("translate("+v+r+w+i)}function h(m,y,v,w){if(m!==y){if(m-y>180)y+=360;else if(y-m>180)m+=360;w.push({i:v.push(o(v)+"rotate(",null,a)-2,x:jm(m,y)})}else if(y)v.push(o(v)+"rotate("+y+a)}function d(m,y,v,w){if(m!==y)w.push({i:v.push(o(v)+"skewX(",null,a)-2,x:jm(m,y)});else if(y)v.push(o(v)+"skewX("+y+a)}function p(m,y,v,w,T,x){if(m!==v||y!==w){var k=T.push(o(T)+"scale(",null,",",null,")");x.push({i:k-4,x:jm(m,v)},{i:k-2,x:jm(y,w)})}else if(v!==1||w!==1)T.push(o(T)+"scale("+v+","+w+")")}return function(m,y){var v=[],w=[];return m=e(m),y=e(y),l(m.translateX,m.translateY,y.translateX,y.translateY,v,w),h(m.rotate,y.rotate,v,w),d(m.skewX,y.skewX,v,w),p(m.scaleX,m.scaleY,y.scaleX,y.scaleY,v,w),m=y=null,function(T){var x=-1,k=w.length,A;while(++x{T_r();WQe=x_r(w_r,"px, ","px)","deg)"),jQe=x_r(S_r,", ",")",")")});function k_r(e){return function(r,i){var a=e((r=qre(r)).h,(i=qre(i)).h),o=DR(r.c,i.c),l=DR(r.l,i.l),h=DR(r.opacity,i.opacity);return function(d){return r.h=a(d),r.c=o(d),r.l=l(d),r.opacity=h(d),r+""}}}var KQe,Azn;var A_r=Re(()=>{nH();$Qe();KQe=k_r(f_r),Azn=k_r(DR)});var sH=Re(()=>{h2e();YQe();C_r();UQe();A_r()});function Qre(){return DP||(O_r(Rzn),DP=Kre.now()+y2e)}function Rzn(){DP=0}function Xre(){this._call=this._time=this._next=null}function v2e(e,r,i){var a=new Xre;return a.restart(e,r,i),a}function N_r(){Qre(),++oH;var e=m2e,r;while(e){if((r=DP-e._time)>=0)e._call.call(void 0,r);e=e._next}--oH}function R_r(){DP=(b2e=Kre.now())+y2e,oH=Wre=0;try{N_r()}finally{oH=0,Ozn(),DP=0}}function Izn(){var e=Kre.now(),r=e-b2e;if(r>I_r)y2e-=r,b2e=e}function Ozn(){var e,r=m2e,i,a=1/0;while(r)if(r._call){if(a>r._time)a=r._time;e=r,r=r._next}else i=r._next,r._next=null,r=e?e._next=i:m2e=i;jre=e,XQe(a)}function XQe(e){if(oH)return;if(Wre)Wre=clearTimeout(Wre);var r=e-DP;if(r>24){if(e<1/0)Wre=setTimeout(R_r,e-Kre.now()-y2e);if(Yre)Yre=clearInterval(Yre)}else{if(!Yre)b2e=Kre.now(),Yre=setInterval(Izn,I_r);oH=1,O_r(R_r)}}var oH=0,Wre=0,Yre=0,I_r=1000,m2e,jre,b2e=0,DP=0,y2e=0,Kre,O_r;var QQe=Re(()=>{Kre=typeof performance==="object"&&performance.now?performance:Date,O_r=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};Xre.prototype=v2e.prototype={constructor:Xre,restart:function(e,r,i){if(typeof e!=="function")throw TypeError("callback is not a function");if(i=(i==null?Qre():+i)+(r==null?0:+r),!this._next&&jre!==this){if(jre)jre._next=this;else m2e=this;jre=this}this._call=e,this._time=i,XQe()},stop:function(){if(this._call)this._call=null,this._time=1/0,XQe()}}});function Zre(e,r,i){var a=new Xre;return r=r==null?0:+r,a.restart((o)=>{a.stop(),e(o+r)},r,i),a}var L_r=Re(()=>{QQe()});var _2e=Re(()=>{QQe();L_r()});function PR(e,r,i,a,o,l){var h=e.__transition;if(!h)e.__transition={};else if(i in h)return;Mzn(e,i,{name:r,index:a,group:o,on:Nzn,tween:Lzn,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:P_r})}function ene(e,r){var i=tm(e,r);if(i.state>P_r)throw Error("too late; already scheduled");return i}function Y1(e,r){var i=tm(e,r);if(i.state>E2e)throw Error("too late; already running");return i}function tm(e,r){var i=e.__transition;if(!i||!(i=i[r]))throw Error("transition not found");return i}function Mzn(e,r,i){var a=e.__transition,o;a[r]=i,i.timer=v2e(l,0,i.time);function l(m){if(i.state=M_r,i.timer.restart(h,i.delay,i.time),i.delay<=m)h(m-i.delay)}function h(m){var y,v,w,T;if(i.state!==M_r)return p();for(y in a){if(T=a[y],T.name!==i.name)continue;if(T.state===E2e)return Zre(h);if(T.state===D_r)T.state=Jre,T.timer.stop(),T.on.call("interrupt",e,e.__data__,T.index,T.group),delete a[y];else if(+y{FXe();_2e();Nzn=BXe("start","end","cancel","interrupt"),Lzn=[]});function tne(e,r){var i=e.__transition,a,o,l=!0,h;if(!i)return;r=r==null?null:r+"";for(h in i){if((a=i[h]).name!==r){l=!1;continue}o=a.state>w2e&&a.state{q_()});function ZQe(e){return this.each(function(){tne(this,e)})}var F_r=Re(()=>{B_r()});function Dzn(e,r){var i,a;return function(){var o=Y1(this,e),l=o.tween;if(l!==i){a=i=l;for(var h=0,d=a.length;h{q_()});function nne(e,r){var i;return(typeof r==="number"?jm:r instanceof dC?MP:(i=dC(r))?(r=i,MP):aH)(e,r)}var eZe=Re(()=>{nH();sH()});function Bzn(e){return function(){this.removeAttribute(e)}}function Fzn(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $zn(e,r,i){var a,o=i+"",l;return function(){var h=this.getAttribute(e);return h===o?null:h===a?l:l=r(a=h,i)}}function Uzn(e,r,i){var a,o=i+"",l;return function(){var h=this.getAttributeNS(e.space,e.local);return h===o?null:h===a?l:l=r(a=h,i)}}function Gzn(e,r,i){var a,o,l;return function(){var h,d=i(this),p;if(d==null)return void this.removeAttribute(e);return h=this.getAttribute(e),p=d+"",h===p?null:h===a&&p===o?l:(o=p,l=r(a=h,d))}}function zzn(e,r,i){var a,o,l;return function(){var h,d=i(this),p;if(d==null)return void this.removeAttributeNS(e.space,e.local);return h=this.getAttributeNS(e.space,e.local),p=d+"",h===p?null:h===a&&p===o?l:(o=p,l=r(a=h,d))}}function tZe(e,r){var i=a3(e),a=i==="transform"?jQe:nne;return this.attrTween(e,typeof r==="function"?(i.local?zzn:Gzn)(i,a,lH(this,"attr."+e,r)):r==null?(i.local?Fzn:Bzn)(i):(i.local?Uzn:$zn)(i,a,r))}var $_r=Re(()=>{sH();uC();rne();eZe()});function Vzn(e,r){return function(i){this.setAttribute(e,r.call(this,i))}}function Hzn(e,r){return function(i){this.setAttributeNS(e.space,e.local,r.call(this,i))}}function qzn(e,r){var i,a;function o(){var l=r.apply(this,arguments);if(l!==a)i=(a=l)&&Hzn(e,l);return i}return o._value=r,o}function Yzn(e,r){var i,a;function o(){var l=r.apply(this,arguments);if(l!==a)i=(a=l)&&Vzn(e,l);return i}return o._value=r,o}function rZe(e,r){var i="attr."+e;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(r==null)return this.tween(i,null);if(typeof r!=="function")throw Error();var a=a3(e);return this.tween(i,(a.local?qzn:Yzn)(a,r))}var U_r=Re(()=>{uC()});function Wzn(e,r){return function(){ene(this,e).delay=+r.apply(this,arguments)}}function jzn(e,r){return r=+r,function(){ene(this,e).delay=r}}function nZe(e){var r=this._id;return arguments.length?this.each((typeof e==="function"?Wzn:jzn)(r,e)):tm(this.node(),r).delay}var G_r=Re(()=>{q_()});function Kzn(e,r){return function(){Y1(this,e).duration=+r.apply(this,arguments)}}function Xzn(e,r){return r=+r,function(){Y1(this,e).duration=r}}function iZe(e){var r=this._id;return arguments.length?this.each((typeof e==="function"?Kzn:Xzn)(r,e)):tm(this.node(),r).duration}var z_r=Re(()=>{q_()});function Qzn(e,r){if(typeof r!=="function")throw Error();return function(){Y1(this,e).ease=r}}function aZe(e){var r=this._id;return arguments.length?this.each(Qzn(r,e)):tm(this.node(),r).ease}var V_r=Re(()=>{q_()});function Zzn(e,r){return function(){var i=r.apply(this,arguments);if(typeof i!=="function")throw Error();Y1(this,e).ease=i}}function sZe(e){if(typeof e!=="function")throw Error();return this.each(Zzn(this._id,e))}var H_r=Re(()=>{q_()});function oZe(e){if(typeof e!=="function")e=ZV(e);for(var r=this._groups,i=r.length,a=Array(i),o=0;o{uC();PP()});function lZe(e){if(e._id!==this._id)throw Error();for(var r=this._groups,i=e._groups,a=r.length,o=i.length,l=Math.min(a,o),h=Array(a),d=0;d{PP()});function Jzn(e){return(e+"").trim().split(/^|\s+/).every(function(r){var i=r.indexOf(".");if(i>=0)r=r.slice(0,i);return!r||r==="start"})}function eVn(e,r,i){var a,o,l=Jzn(r)?ene:Y1;return function(){var h=l(this,e),d=h.on;if(d!==a)(o=(a=d).copy()).on(r,i);h.on=o}}function cZe(e,r){var i=this._id;return arguments.length<2?tm(this.node(),i).on.on(e):this.each(eVn(i,e,r))}var W_r=Re(()=>{q_()});function tVn(e){return function(){var r=this.parentNode;for(var i in this.__transition)if(+i!==e)return;if(r)r.removeChild(this)}}function uZe(){return this.on("end.remove",tVn(this._id))}function hZe(e){var r=this._name,i=this._id;if(typeof e!=="function")e=lL(e);for(var a=this._groups,o=a.length,l=Array(o),h=0;h{uC();PP();q_()});function dZe(e){var r=this._name,i=this._id;if(typeof e!=="function")e=QV(e);for(var a=this._groups,o=a.length,l=[],h=[],d=0;d{uC();PP();q_()});function fZe(){return new rVn(this._groups,this._parents)}var rVn;var X_r=Re(()=>{uC();rVn=LR.prototype.constructor});function nVn(e,r){var i,a,o;return function(){var l=cL(this,e),h=(this.style.removeProperty(e),cL(this,e));return l===h?null:l===i&&h===a?o:o=r(i=l,a=h)}}function Q_r(e){return function(){this.style.removeProperty(e)}}function iVn(e,r,i){var a,o=i+"",l;return function(){var h=cL(this,e);return h===o?null:h===a?l:l=r(a=h,i)}}function aVn(e,r,i){var a,o,l;return function(){var h=cL(this,e),d=i(this),p=d+"";if(d==null)p=d=(this.style.removeProperty(e),cL(this,e));return h===p?null:h===a&&p===o?l:(o=p,l=r(a=h,d))}}function sVn(e,r){var i,a,o,l="style."+r,h="end."+l,d;return function(){var p=Y1(this,e),m=p.on,y=p.value[l]==null?d||(d=Q_r(r)):void 0;if(m!==i||o!==y)(a=(i=m).copy()).on(h,o=y);p.on=a}}function pZe(e,r,i){var a=(e+="")==="transform"?WQe:nne;return r==null?this.styleTween(e,nVn(e,a)).on("end.style."+e,Q_r(e)):typeof r==="function"?this.styleTween(e,aVn(e,a,lH(this,"style."+e,r))).each(sVn(this._id,e)):this.styleTween(e,iVn(e,a,r),i).on("end.style."+e,null)}var Z_r=Re(()=>{sH();uC();q_();rne();eZe()});function oVn(e,r,i){return function(a){this.style.setProperty(e,r.call(this,a),i)}}function lVn(e,r,i){var a,o;function l(){var h=r.apply(this,arguments);if(h!==o)a=(o=h)&&oVn(e,h,i);return a}return l._value=r,l}function gZe(e,r,i){var a="style."+(e+="");if(arguments.length<2)return(a=this.tween(a))&&a._value;if(r==null)return this.tween(a,null);if(typeof r!=="function")throw Error();return this.tween(a,lVn(e,r,i==null?"":i))}function cVn(e){return function(){this.textContent=e}}function uVn(e){return function(){var r=e(this);this.textContent=r==null?"":r}}function mZe(e){return this.tween("text",typeof e==="function"?uVn(lH(this,"text",e)):cVn(e==null?"":e+""))}var J_r=Re(()=>{rne()});function hVn(e){return function(r){this.textContent=e.call(this,r)}}function dVn(e){var r,i;function a(){var o=e.apply(this,arguments);if(o!==i)r=(i=o)&&hVn(o);return r}return a._value=e,a}function bZe(e){var r="text";if(arguments.length<1)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!=="function")throw Error();return this.tween(r,dVn(e))}function yZe(){var e=this._name,r=this._id,i=T2e();for(var a=this._groups,o=a.length,l=0;l{PP();q_()});function vZe(){var e,r,i=this,a=i._id,o=i.size();return new Promise(function(l,h){var d={value:h},p={value:function(){if(--o===0)l()}};if(i.each(function(){var m=Y1(this,a),y=m.on;if(y!==e)r=(e=y).copy(),r._.cancel.push(d),r._.interrupt.push(d),r._.end.push(p);m.on=r}),o===0)l()})}var t2r=Re(()=>{q_()});function pv(e,r,i,a){this._groups=e,this._parents=r,this._name=i,this._id=a}function r2r(e){return LR().transition(e)}function T2e(){return++fVn}var fVn=0,BR;var PP=Re(()=>{uC();$_r();U_r();G_r();z_r();V_r();H_r();q_r();Y_r();W_r();j_r();K_r();X_r();Z_r();J_r();e2r();rne();t2r();BR=LR.prototype;pv.prototype=r2r.prototype={constructor:pv,select:hZe,selectAll:dZe,selectChild:BR.selectChild,selectChildren:BR.selectChildren,filter:oZe,merge:lZe,selection:fZe,transition:yZe,call:BR.call,nodes:BR.nodes,node:BR.node,size:BR.size,empty:BR.empty,each:BR.each,on:cZe,attr:tZe,attrTween:rZe,style:pZe,styleTween:gZe,text:mZe,textTween:bZe,remove:uZe,tween:JQe,delay:nZe,duration:iZe,ease:aZe,easeVarying:sZe,end:vZe,[Symbol.iterator]:BR[Symbol.iterator]}});function x2e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var _Ze=()=>{};function gVn(e,r){var i;while(!(i=e.__transition)||!(i=i[r]))if(!(e=e.parentNode))throw Error(`transition ${r} not found`);return i}function EZe(e){var r,i;if(e instanceof pv)r=e._id,e=e._name;else r=T2e(),(i=pVn).time=Qre(),e=e==null?null:e+"";for(var a=this._groups,o=a.length,l=0;l{PP();q_();_Ze();_2e();pVn={time:null,delay:0,duration:250,ease:x2e}});var i2r=Re(()=>{uC();F_r();n2r();LR.prototype.interrupt=ZQe;LR.prototype.transition=EZe});var C2e=Re(()=>{i2r()});function a2r(e){return[+e[0],+e[1]]}function mVn(e){return[a2r(e[0]),a2r(e[1])]}function wZe(e){return{type:e}}var lba,cba,uba,hba,dba,fba;var s2r=Re(()=>{C2e();({abs:lba,max:cba,min:uba}=Math);hba={name:"x",handles:["w","e"].map(wZe),input:function(e,r){return e==null?null:[[+e[0],r[0][1]],[+e[1],r[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},dba={name:"y",handles:["n","s"].map(wZe),input:function(e,r){return e==null?null:[[r[0][0],+e[0]],[r[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},fba={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(wZe),input:function(e){return e==null?null:mVn(e)},output:function(e){return e}}});var o2r=Re(()=>{s2r()});function l2r(e){this._+=e[0];for(let r=1,i=e.length;r=0))throw Error(`invalid digits: ${e}`);if(r>15)return l2r;let i=10**r;return function(a){this._+=a[0];for(let o=1,l=a.length;o0.000001));else if(!(Math.abs(y*d-p*m)>0.000001)||!o)this._append`L${this._x1=e},${this._y1=r}`;else{let w=i-l,T=a-h,x=d*d+p*p,k=w*w+T*T,A=Math.sqrt(x),R=Math.sqrt(v),N=o*Math.tan((SZe-Math.acos((x+v-k)/(2*A*R)))/2),L=N/R,B=N/A;if(Math.abs(L-1)>0.000001)this._append`L${e+L*m},${r+L*y}`;this._append`A${o},${o},0,0,${+(y*w>m*T)},${this._x1=e+B*d},${this._y1=r+B*p}`}}arc(e,r,i,a,o,l){if(e=+e,r=+r,i=+i,l=!!l,i<0)throw Error(`negative radius: ${i}`);let h=i*Math.cos(a),d=i*Math.sin(a),p=e+h,m=r+d,y=1^l,v=l?a-o:o-a;if(this._x1===null)this._append`M${p},${m}`;else if(Math.abs(this._x1-p)>0.000001||Math.abs(this._y1-m)>0.000001)this._append`L${p},${m}`;if(!i)return;if(v<0)v=v%TZe+TZe;if(v>bVn)this._append`A${i},${i},0,1,${y},${e-h},${r-d}A${i},${i},0,1,${y},${this._x1=p},${this._y1=m}`;else if(v>0.000001)this._append`A${i},${i},0,${+(v>=SZe)},${y},${this._x1=e+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`}rect(e,r,i,a){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${i=+i}v${+a}h${-i}Z`}toString(){return this._}}function c2r(){return new cH}var SZe,TZe,bVn;var u2r=Re(()=>{SZe=Math.PI,TZe=2*SZe,bVn=TZe-0.000001;c2r.prototype=cH.prototype});var xZe=Re(()=>{u2r()});var h2r=()=>{};var d2r=()=>{};var f2r=()=>{};var p2r=()=>{};var g2r=()=>{};var m2r=()=>{};var b2r=()=>{};function CZe(e){return Math.abs(e=Math.round(e))>=1000000000000000000000?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function BP(e,r){if(!isFinite(e)||e===0)return null;var i=(e=r?e.toExponential(r-1):e.toExponential()).indexOf("e"),a=e.slice(0,i);return[a.length>1?a[0]+a.slice(2):a,+e.slice(i+1)]}function fC(e){return e=BP(Math.abs(e)),e?e[1]:NaN}var ine=()=>{};function kZe(e,r){return function(i,a){var o=i.length,l=[],h=0,d=e[0],p=0;while(o>0&&d>0){if(p+d+1>a)d=Math.max(1,a-p);if(l.push(i.substring(o-=d,o+d)),(p+=d+1)>a)break;d=e[h=(h+1)%e.length]}return l.reverse().join(r)}}function AZe(e){return function(r){return r.replace(/[0-9]/g,function(i){return e[+i]})}}function fL(e){if(!(r=vVn.exec(e)))throw Error("invalid format: "+e);var r;return new k2e({fill:r[1],align:r[2],sign:r[3],symbol:r[4],zero:r[5],width:r[6],comma:r[7],precision:r[8]&&r[8].slice(1),trim:r[9],type:r[10]})}function k2e(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}var vVn;var RZe=Re(()=>{vVn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;fL.prototype=k2e.prototype;k2e.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type}});function IZe(e){e:for(var r=e.length,i=1,a=-1,o;i0)a=0;break}return a>0?e.slice(0,a)+e.slice(o+1):e}function OZe(e,r){var i=BP(e,r);if(!i)return ane=void 0,e.toPrecision(r);var a=i[0],o=i[1],l=o-(ane=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,h=a.length;return l===h?a:l>h?a+Array(l-h+1).join("0"):l>0?a.slice(0,l)+"."+a.slice(l):"0."+Array(1-l).join("0")+BP(e,Math.max(0,r+l-1))[0]}var ane;var NZe=()=>{};function A2e(e,r){var i=BP(e,r);if(!i)return e+"";var a=i[0],o=i[1];return o<0?"0."+Array(-o).join("0")+a:a.length>o+1?a.slice(0,o+1)+"."+a.slice(o+1):a+Array(o-a.length+2).join("0")}var y2r=()=>{};var LZe;var v2r=Re(()=>{NZe();y2r();LZe={"%":(e,r)=>(e*100).toFixed(r),b:(e)=>Math.round(e).toString(2),c:(e)=>e+"",d:CZe,e:(e,r)=>e.toExponential(r),f:(e,r)=>e.toFixed(r),g:(e,r)=>e.toPrecision(r),o:(e)=>Math.round(e).toString(8),p:(e,r)=>A2e(e*100,r),r:A2e,s:OZe,X:(e)=>Math.round(e).toString(16).toUpperCase(),x:(e)=>Math.round(e).toString(16)}});function R2e(e){return e}function MZe(e){var r=e.grouping===void 0||e.thousands===void 0?R2e:kZe(_2r.call(e.grouping,Number),e.thousands+""),i=e.currency===void 0?"":e.currency[0]+"",a=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?R2e:AZe(_2r.call(e.numerals,String)),h=e.percent===void 0?"%":e.percent+"",d=e.minus===void 0?"−":e.minus+"",p=e.nan===void 0?"NaN":e.nan+"";function m(v,w){v=fL(v);var T=v.fill,x=v.align,k=v.sign,A=v.symbol,R=v.zero,N=v.width,L=v.comma,B=v.precision,D=v.trim,P=v.type;if(P==="n")L=!0,P="g";else if(!LZe[P])B===void 0&&(B=12),D=!0,P="g";if(R||T==="0"&&x==="=")R=!0,T="0",x="=";var F=(w&&w.prefix!==void 0?w.prefix:"")+(A==="$"?i:A==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():""),H=(A==="$"?a:/[%p]/.test(P)?h:"")+(w&&w.suffix!==void 0?w.suffix:""),W=LZe[P],X=/[defgprs%]/.test(P);B=B===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,B)):Math.max(0,Math.min(20,B));function Q(Y){var K=F,J=H,Z,j,ee;if(P==="c")J=W(Y)+J,Y="";else{Y=+Y;var z=Y<0||1/Y<0;if(Y=isNaN(Y)?p:W(Math.abs(Y),B),D)Y=IZe(Y);if(z&&+Y===0&&k!=="+")z=!1;if(K=(z?k==="("?k:d:k==="-"||k==="("?"":k)+K,J=(P==="s"&&!isNaN(Y)&&ane!==void 0?E2r[8+ane/3]:"")+J+(z&&k==="("?")":""),X){Z=-1,j=Y.length;while(++Zee||ee>57){J=(ee===46?o+Y.slice(Z+1):Y.slice(Z))+J,Y=Y.slice(0,Z);break}}}if(L&&!R)Y=r(Y,1/0);var ne=K.length+Y.length+J.length,ie=ne>1)+K+Y+J+ie.slice(ne);break;default:Y=ie+K+Y+J;break}return l(Y)}return Q.toString=function(){return v+""},Q}function y(v,w){var T=Math.max(-8,Math.min(8,Math.floor(fC(w)/3)))*3,x=Math.pow(10,-T),k=m((v=fL(v),v.type="f",v),{suffix:E2r[8+T/3]});return function(A){return k(x*A)}}return{format:m,formatPrefix:y}}var _2r,E2r;var w2r=Re(()=>{ine();RZe();v2r();NZe();_2r=Array.prototype.map,E2r=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"]});function DZe(e){return I2e=MZe(e),l3=I2e.format,O2e=I2e.formatPrefix,I2e}var I2e,l3,O2e;var S2r=Re(()=>{w2r();DZe({thousands:",",grouping:[3],currency:["$",""]})});function N2e(e){return Math.max(0,-fC(Math.abs(e)))}var T2r=Re(()=>{ine()});function L2e(e,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fC(r)/3)))*3-fC(Math.abs(e)))}var x2r=Re(()=>{ine()});function M2e(e,r){return e=Math.abs(e),r=Math.abs(r)-e,Math.max(0,fC(r)-fC(e))+1}var C2r=Re(()=>{ine()});var PZe=Re(()=>{S2r();RZe();T2r();x2r();C2r()});var k2r=()=>{};function _Vn(e){var r=0,i=e.children,a=i&&i.length;if(!a)r=1;else while(--a>=0)r+=i[a].value;e.value=r}function BZe(){return this.eachAfter(_Vn)}function FZe(e,r){let i=-1;for(let a of this)e.call(r,a,++i,this);return this}function $Ze(e,r){var i=this,a=[i],o,l,h=-1;while(i=a.pop())if(e.call(r,i,++h,this),o=i.children)for(l=o.length-1;l>=0;--l)a.push(o[l]);return this}function UZe(e,r){var i=this,a=[i],o=[],l,h,d,p=-1;while(i=a.pop())if(o.push(i),l=i.children)for(h=0,d=l.length;h=0)i+=a[o].value;r.value=i})}function VZe(e){return this.eachBefore(function(r){if(r.children)r.children.sort(e)})}function HZe(e){var r=this,i=EVn(r,e),a=[r];while(r!==i)r=r.parent,a.push(r);var o=a.length;while(e!==i)a.splice(o,0,e),e=e.parent;return a}function EVn(e,r){if(e===r)return e;var i=e.ancestors(),a=r.ancestors(),o=null;e=i.pop(),r=a.pop();while(e===r)o=e,e=i.pop(),r=a.pop();return o}function qZe(){var e=this,r=[e];while(e=e.parent)r.push(e);return r}function YZe(){return Array.from(this)}function WZe(){var e=[];return this.eachBefore(function(r){if(!r.children)e.push(r)}),e}function jZe(){var e=this,r=[];return e.each(function(i){if(i!==e)r.push({source:i.parent,target:i})}),r}function*KZe(){var e=this,r,i=[e],a,o,l;do{r=i.reverse(),i=[];while(e=r.pop())if(yield e,a=e.children)for(o=0,l=a.length;o=0;--d)o.push(l=h[d]=new sne(h[d])),l.parent=a,l.depth=a.depth+1}return i.eachBefore(CVn)}function wVn(){return uH(this).eachBefore(xVn)}function SVn(e){return e.children}function TVn(e){return Array.isArray(e)?e[1]:null}function xVn(e){if(e.data.value!==void 0)e.value=e.data.value;e.data=e.data.data}function CVn(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function sne(e){this.data=e,this.depth=this.height=0,this.parent=null}var A2r=Re(()=>{sne.prototype=uH.prototype={constructor:sne,count:BZe,each:FZe,eachAfter:UZe,eachBefore:$Ze,find:GZe,sum:zZe,sort:VZe,path:HZe,ancestors:qZe,descendants:YZe,leaves:WZe,links:jZe,copy:wVn,[Symbol.iterator]:KZe}});function R2r(e){if(typeof e!=="function")throw Error();return e}function hH(){return 0}function FP(e){return function(){return e}}function XZe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function QZe(e,r,i,a,o){var l=e.children,h,d=-1,p=l.length,m=e.value&&(a-r)/e.value;while(++dN)N=m;if(P=A*A*D,L=Math.max(N/P,P/R),L>B){A-=m;break}B=L}if(h.push(p={value:A,dice:T{kVn=(1+Math.sqrt(5))/2;I2r=function e(r){function i(a,o,l,h,d){AVn(r,a,o,l,h,d)}return i.ratio=function(a){return e((a=+a)>1?a:1)},i}(kVn)});function D2e(){var e=I2r,r=!1,i=1,a=1,o=[0],l=hH,h=hH,d=hH,p=hH,m=hH;function y(w){if(w.x0=w.y0=0,w.x1=i,w.y1=a,w.eachBefore(v),o=[0],r)w.eachBefore(XZe);return w}function v(w){var T=o[w.depth],x=w.x0+T,k=w.y0+T,A=w.x1-T,R=w.y1-T;if(A{O2r()});var L2r=Re(()=>{A2r();N2r()});var M2r=()=>{};var D2r=()=>{};function pL(e,r){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(r).domain(e);break}return this}function VE(){var e=new Bre,r=[],i=[],a=JZe;function o(l){let h=e.get(l);if(h===void 0){if(a!==JZe)return a;e.set(l,h=r.push(l)-1)}return i[h%i.length]}return o.domain=function(l){if(!arguments.length)return r.slice();r=[],e=new Bre;for(let h of l){if(e.has(h))continue;e.set(h,r.push(h)-1)}return o},o.range=function(l){return arguments.length?(i=Array.from(l),o):i.slice()},o.unknown=function(l){return arguments.length?(a=l,o):a},o.copy=function(){return VE(r,i).unknown(a)},pL.apply(o,arguments),o}var JZe;var eJe=Re(()=>{oL();JZe=Symbol("implicit")});function dH(){var e=VE().unknown(void 0),{domain:r,range:i}=e,a=0,o=1,l,h,d=!1,p=0,m=0,y=0.5;delete e.unknown;function v(){var w=r().length,T=o{oL();eJe()});function tJe(e){return function(){return e}}function rJe(e){return+e}function fH(e){return e}function nJe(e,r){return(r-=e=+e)?function(i){return(i-e)/r}:tJe(isNaN(r)?NaN:0.5)}function RVn(e,r){var i;if(e>r)i=e,e=r,r=i;return function(a){return Math.max(e,Math.min(r,a))}}function IVn(e,r,i){var a=e[0],o=e[1],l=r[0],h=r[1];if(o2?OVn:IVn,p=m=null,v}function v(w){return w==null||isNaN(w=+w)?l:(p||(p=d(e.map(a),r,i)))(a(h(w)))}return v.invert=function(w){return h(o((m||(m=d(r,e.map(a),jm)))(w)))},v.domain=function(w){return arguments.length?(e=Array.from(w,rJe),y()):e.slice()},v.range=function(w){return arguments.length?(r=Array.from(w),y()):r.slice()},v.rangeRound=function(w){return r=Array.from(w),i=d2e,y()},v.clamp=function(w){return arguments.length?(h=w?!0:fH,y()):h!==fH},v.interpolate=function(w){return arguments.length?(i=w,y()):i},v.unknown=function(w){return arguments.length?(l=w,v):l},function(w,T){return a=w,o=T,y()}}function one(){return NVn()(fH,fH)}var B2r;var iJe=Re(()=>{oL();sH();B2r=[0,1]});function aJe(e,r,i,a){var o=XV(e,r,i),l;switch(a=fL(a==null?",f":a),a.type){case"s":{var h=Math.max(Math.abs(e),Math.abs(r));if(a.precision==null&&!isNaN(l=L2e(o,h)))a.precision=l;return O2e(a,h)}case"":case"e":case"g":case"p":case"r":{if(a.precision==null&&!isNaN(l=M2e(o,Math.max(Math.abs(e),Math.abs(r)))))a.precision=l-(a.type==="e");break}case"f":case"%":{if(a.precision==null&&!isNaN(l=N2e(o)))a.precision=l-(a.type==="%")*2;break}}return l3(a)}var F2r=Re(()=>{oL();PZe()});function LVn(e){var r=e.domain;return e.ticks=function(i){var a=r();return X_e(a[0],a[a.length-1],i==null?10:i)},e.tickFormat=function(i,a){var o=r();return aJe(o[0],o[o.length-1],i==null?10:i,a)},e.nice=function(i){if(i==null)i=10;var a=r(),o=0,l=a.length-1,h=a[o],d=a[l],p,m,y=10;if(d0){if(m=Fre(h,d,i),m===p)return a[o]=h,a[l]=d,r(a);else if(m>0)h=Math.floor(h/m)*m,d=Math.ceil(d/m)*m;else if(m<0)h=Math.ceil(h*m)/m,d=Math.floor(d*m)/m;else break;p=m}return e},e}function pC(){var e=one();return e.copy=function(){return P2e(e,pC())},pL.apply(e,arguments),LVn(e)}var $2r=Re(()=>{oL();iJe();F2r()});function sJe(e,r){e=e.slice();var i=0,a=e.length-1,o=e[i],l=e[a],h;if(l(e(l=new Date(+l)),l),o.ceil=(l)=>(e(l=new Date(l-1)),r(l,1),e(l),l),o.round=(l)=>{let h=o(l),d=o.ceil(l);return l-h(r(l=new Date(+l),h==null?1:Math.floor(h)),l),o.range=(l,h,d)=>{let p=[];if(l=o.ceil(l),d=d==null?1:Math.floor(d),!(l0))return p;let m;do p.push(m=new Date(+l)),r(l,d),e(l);while(mud((h)=>{if(h>=h)while(e(h),!l(h))h.setTime(h-1)},(h,d)=>{if(h>=h)if(d<0)while(++d<=0)while(r(h,-1),!l(h));else while(--d>=0)while(r(h,1),!l(h));}),i)o.count=(l,h)=>(oJe.setTime(+l),lJe.setTime(+h),e(oJe),e(lJe),Math.floor(i(oJe,lJe))),o.every=(l)=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:!(l>1)?o:o.filter(a?(h)=>a(h)%l===0:(h)=>o.count(0,h)%l===0));return o}var oJe,lJe;var FR=Re(()=>{oJe=new Date,lJe=new Date});var c3,U2r;var cJe=Re(()=>{FR();c3=ud(()=>{},(e,r)=>{e.setTime(+e+r)},(e,r)=>r-e);c3.every=(e)=>{if(e=Math.floor(e),!isFinite(e)||!(e>0))return null;if(!(e>1))return c3;return ud((r)=>{r.setTime(Math.floor(r/e)*e)},(r,i)=>{r.setTime(+r+i*e)},(r,i)=>(i-r)/e)};U2r=c3.range});var qS=1000,Xb=60000,u3=3600000,gL=86400000,lne=604800000,uJe=2592000000,B2e=31536000000;var HE,G2r;var hJe=Re(()=>{FR();HE=ud((e)=>{e.setTime(e-e.getMilliseconds())},(e,r)=>{e.setTime(+e+r*qS)},(e,r)=>(r-e)/qS,(e)=>e.getUTCSeconds()),G2r=HE.range});var $R,MVn,F2e,DVn;var dJe=Re(()=>{FR();$R=ud((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qS)},(e,r)=>{e.setTime(+e+r*Xb)},(e,r)=>(r-e)/Xb,(e)=>e.getMinutes()),MVn=$R.range,F2e=ud((e)=>{e.setUTCSeconds(0,0)},(e,r)=>{e.setTime(+e+r*Xb)},(e,r)=>(r-e)/Xb,(e)=>e.getUTCMinutes()),DVn=F2e.range});var UR,PVn,$2e,BVn;var fJe=Re(()=>{FR();UR=ud((e)=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*qS-e.getMinutes()*Xb)},(e,r)=>{e.setTime(+e+r*u3)},(e,r)=>(r-e)/u3,(e)=>e.getHours()),PVn=UR.range,$2e=ud((e)=>{e.setUTCMinutes(0,0,0)},(e,r)=>{e.setTime(+e+r*u3)},(e,r)=>(r-e)/u3,(e)=>e.getUTCHours()),BVn=$2e.range});var YS,FVn,cne,$Vn,U2e,UVn;var pJe=Re(()=>{FR();YS=ud((e)=>e.setHours(0,0,0,0),(e,r)=>e.setDate(e.getDate()+r),(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*Xb)/gL,(e)=>e.getDate()-1),FVn=YS.range,cne=ud((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/gL,(e)=>e.getUTCDate()-1),$Vn=cne.range,U2e=ud((e)=>{e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r)},(e,r)=>(r-e)/gL,(e)=>Math.floor(e/gL)),UVn=U2e.range});function $P(e){return ud((r)=>{r.setDate(r.getDate()-(r.getDay()+7-e)%7),r.setHours(0,0,0,0)},(r,i)=>{r.setDate(r.getDate()+i*7)},(r,i)=>(i-r-(i.getTimezoneOffset()-r.getTimezoneOffset())*Xb)/lne)}function UP(e){return ud((r)=>{r.setUTCDate(r.getUTCDate()-(r.getUTCDay()+7-e)%7),r.setUTCHours(0,0,0,0)},(r,i)=>{r.setUTCDate(r.getUTCDate()+i*7)},(r,i)=>(i-r)/lne)}var gC,mL,G2e,z2e,h3,V2e,H2e,z2r,GVn,zVn,VVn,HVn,qVn,YVn,GP,pH,V2r,H2r,bL,q2r,Y2r,W2r,WVn,jVn,KVn,XVn,QVn,ZVn;var gJe=Re(()=>{FR();gC=$P(0),mL=$P(1),G2e=$P(2),z2e=$P(3),h3=$P(4),V2e=$P(5),H2e=$P(6),z2r=gC.range,GVn=mL.range,zVn=G2e.range,VVn=z2e.range,HVn=h3.range,qVn=V2e.range,YVn=H2e.range;GP=UP(0),pH=UP(1),V2r=UP(2),H2r=UP(3),bL=UP(4),q2r=UP(5),Y2r=UP(6),W2r=GP.range,WVn=pH.range,jVn=V2r.range,KVn=H2r.range,XVn=bL.range,QVn=q2r.range,ZVn=Y2r.range});var GR,JVn,q2e,eHn;var mJe=Re(()=>{FR();GR=ud((e)=>{e.setDate(1),e.setHours(0,0,0,0)},(e,r)=>{e.setMonth(e.getMonth()+r)},(e,r)=>r.getMonth()-e.getMonth()+(r.getFullYear()-e.getFullYear())*12,(e)=>e.getMonth()),JVn=GR.range,q2e=ud((e)=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCMonth(e.getUTCMonth()+r)},(e,r)=>r.getUTCMonth()-e.getUTCMonth()+(r.getUTCFullYear()-e.getUTCFullYear())*12,(e)=>e.getUTCMonth()),eHn=q2e.range});var qE,tHn,mC,rHn;var bJe=Re(()=>{FR();qE=ud((e)=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r)},(e,r)=>r.getFullYear()-e.getFullYear(),(e)=>e.getFullYear());qE.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ud((r)=>{r.setFullYear(Math.floor(r.getFullYear()/e)*e),r.setMonth(0,1),r.setHours(0,0,0,0)},(r,i)=>{r.setFullYear(r.getFullYear()+i*e)});tHn=qE.range,mC=ud((e)=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r)},(e,r)=>r.getUTCFullYear()-e.getUTCFullYear(),(e)=>e.getUTCFullYear());mC.every=(e)=>!isFinite(e=Math.floor(e))||!(e>0)?null:ud((r)=>{r.setUTCFullYear(Math.floor(r.getUTCFullYear()/e)*e),r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0)},(r,i)=>{r.setUTCFullYear(r.getUTCFullYear()+i*e)});rHn=mC.range});function j2r(e,r,i,a,o,l){let h=[[HE,1,qS],[HE,5,5*qS],[HE,15,15*qS],[HE,30,30*qS],[l,1,Xb],[l,5,5*Xb],[l,15,15*Xb],[l,30,30*Xb],[o,1,u3],[o,3,3*u3],[o,6,6*u3],[o,12,12*u3],[a,1,gL],[a,2,2*gL],[i,1,lne],[r,1,uJe],[r,3,3*uJe],[e,1,B2e]];function d(m,y,v){let w=yA).right(h,w);if(T===h.length)return e.every(XV(m/B2e,y/B2e,v));if(T===0)return c3.every(Math.max(XV(m,y,v),1));let[x,k]=h[w/h[T-1][2]{oL();cJe();hJe();dJe();fJe();pJe();gJe();mJe();bJe();[nHn,iHn]=j2r(mC,q2e,GP,U2e,$2e,F2e),[yJe,vJe]=j2r(qE,GR,gC,YS,UR,$R)});var Y2e=Re(()=>{cJe();hJe();dJe();fJe();pJe();gJe();mJe();bJe();K2r()});function _Je(e){if(0<=e.y&&e.y<100){var r=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return r.setFullYear(e.y),r}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function EJe(e){if(0<=e.y&&e.y<100){var r=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return r.setUTCFullYear(e.y),r}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function une(e,r,i){return{y:e,m:r,d:i,H:0,M:0,S:0,L:0}}function wJe(e){var{dateTime:r,date:i,time:a,periods:o,days:l,shortDays:h,months:d,shortMonths:p}=e,m=hne(o),y=dne(o),v=hne(l),w=dne(l),T=hne(h),x=dne(h),k=hne(d),A=dne(d),R=hne(p),N=dne(p),L={a:ee,A:z,b:ne,B:ie,c:null,d:tEr,e:tEr,f:kHn,g:BHn,G:$Hn,H:THn,I:xHn,j:CHn,L:sEr,m:AHn,M:RHn,p:se,q:oe,Q:iEr,s:aEr,S:IHn,u:OHn,U:NHn,V:LHn,w:MHn,W:DHn,x:null,X:null,y:PHn,Y:FHn,Z:UHn,"%":nEr},B={a:he,A:ye,b:Se,B:Ie,c:null,d:rEr,e:rEr,f:HHn,g:eqn,G:rqn,H:GHn,I:zHn,j:VHn,L:lEr,m:qHn,M:YHn,p:Ee,q:ze,Q:iEr,s:aEr,S:WHn,u:jHn,U:KHn,V:XHn,w:QHn,W:ZHn,x:null,X:null,y:JHn,Y:tqn,Z:nqn,"%":nEr},D={a:X,A:Q,b:Y,B:K,c:J,d:J2r,e:J2r,f:_Hn,g:Z2r,G:Q2r,H:eEr,I:eEr,j:mHn,L:vHn,m:gHn,M:bHn,p:W,q:pHn,Q:wHn,s:SHn,S:yHn,u:cHn,U:uHn,V:hHn,w:lHn,W:dHn,x:Z,X:j,y:Z2r,Y:Q2r,Z:fHn,"%":EHn};L.x=P(i,L),L.X=P(a,L),L.c=P(r,L),B.x=P(i,B),B.X=P(a,B),B.c=P(r,B);function P(Me,Xe){return function(Ye){var Qe=[],xt=-1,dt=0,zt=Me.length,Kt,rr,je;if(!(Ye instanceof Date))Ye=new Date(+Ye);while(++xt53)return null;if(!("w"in Qe))Qe.w=1;if("Z"in Qe)dt=EJe(une(Qe.y,0,1)),zt=dt.getUTCDay(),dt=zt>4||zt===0?pH.ceil(dt):pH(dt),dt=cne.offset(dt,(Qe.V-1)*7),Qe.y=dt.getUTCFullYear(),Qe.m=dt.getUTCMonth(),Qe.d=dt.getUTCDate()+(Qe.w+6)%7;else dt=_Je(une(Qe.y,0,1)),zt=dt.getDay(),dt=zt>4||zt===0?mL.ceil(dt):mL(dt),dt=YS.offset(dt,(Qe.V-1)*7),Qe.y=dt.getFullYear(),Qe.m=dt.getMonth(),Qe.d=dt.getDate()+(Qe.w+6)%7}else if("W"in Qe||"U"in Qe){if(!("w"in Qe))Qe.w="u"in Qe?Qe.u%7:("W"in Qe)?1:0;zt="Z"in Qe?EJe(une(Qe.y,0,1)).getUTCDay():_Je(une(Qe.y,0,1)).getDay(),Qe.m=0,Qe.d="W"in Qe?(Qe.w+6)%7+Qe.W*7-(zt+5)%7:Qe.w+Qe.U*7-(zt+6)%7}if("Z"in Qe)return Qe.H+=Qe.Z/100|0,Qe.M+=Qe.Z%100,EJe(Qe);return _Je(Qe)}}function H(Me,Xe,Ye,Qe){var xt=0,dt=Xe.length,zt=Ye.length,Kt,rr;while(xt=zt)return-1;if(Kt=Xe.charCodeAt(xt++),Kt===37){if(Kt=Xe.charAt(xt++),rr=D[Kt in X2r?Xe.charAt(xt++):Kt],!rr||(Qe=rr(Me,Ye,Qe))<0)return-1}else if(Kt!=Ye.charCodeAt(Qe++))return-1}return Qe}function W(Me,Xe,Ye){var Qe=m.exec(Xe.slice(Ye));return Qe?(Me.p=y.get(Qe[0].toLowerCase()),Ye+Qe[0].length):-1}function X(Me,Xe,Ye){var Qe=T.exec(Xe.slice(Ye));return Qe?(Me.w=x.get(Qe[0].toLowerCase()),Ye+Qe[0].length):-1}function Q(Me,Xe,Ye){var Qe=v.exec(Xe.slice(Ye));return Qe?(Me.w=w.get(Qe[0].toLowerCase()),Ye+Qe[0].length):-1}function Y(Me,Xe,Ye){var Qe=R.exec(Xe.slice(Ye));return Qe?(Me.m=N.get(Qe[0].toLowerCase()),Ye+Qe[0].length):-1}function K(Me,Xe,Ye){var Qe=k.exec(Xe.slice(Ye));return Qe?(Me.m=A.get(Qe[0].toLowerCase()),Ye+Qe[0].length):-1}function J(Me,Xe,Ye){return H(Me,r,Xe,Ye)}function Z(Me,Xe,Ye){return H(Me,i,Xe,Ye)}function j(Me,Xe,Ye){return H(Me,a,Xe,Ye)}function ee(Me){return h[Me.getDay()]}function z(Me){return l[Me.getDay()]}function ne(Me){return p[Me.getMonth()]}function ie(Me){return d[Me.getMonth()]}function se(Me){return o[+(Me.getHours()>=12)]}function oe(Me){return 1+~~(Me.getMonth()/3)}function he(Me){return h[Me.getUTCDay()]}function ye(Me){return l[Me.getUTCDay()]}function Se(Me){return p[Me.getUTCMonth()]}function Ie(Me){return d[Me.getUTCMonth()]}function Ee(Me){return o[+(Me.getUTCHours()>=12)]}function ze(Me){return 1+~~(Me.getUTCMonth()/3)}return{format:function(Me){var Xe=P(Me+="",L);return Xe.toString=function(){return Me},Xe},parse:function(Me){var Xe=F(Me+="",!1);return Xe.toString=function(){return Me},Xe},utcFormat:function(Me){var Xe=P(Me+="",B);return Xe.toString=function(){return Me},Xe},utcParse:function(Me){var Xe=F(Me+="",!0);return Xe.toString=function(){return Me},Xe}}}function Iu(e,r,i){var a=e<0?"-":"",o=(a?-e:e)+"",l=o.length;return a+(l[r.toLowerCase(),i]))}function lHn(e,r,i){var a=Km.exec(r.slice(i,i+1));return a?(e.w=+a[0],i+a[0].length):-1}function cHn(e,r,i){var a=Km.exec(r.slice(i,i+1));return a?(e.u=+a[0],i+a[0].length):-1}function uHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.U=+a[0],i+a[0].length):-1}function hHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.V=+a[0],i+a[0].length):-1}function dHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.W=+a[0],i+a[0].length):-1}function Q2r(e,r,i){var a=Km.exec(r.slice(i,i+4));return a?(e.y=+a[0],i+a[0].length):-1}function Z2r(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2000),i+a[0].length):-1}function fHn(e,r,i){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(r.slice(i,i+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),i+a[0].length):-1}function pHn(e,r,i){var a=Km.exec(r.slice(i,i+1));return a?(e.q=a[0]*3-3,i+a[0].length):-1}function gHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.m=a[0]-1,i+a[0].length):-1}function J2r(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.d=+a[0],i+a[0].length):-1}function mHn(e,r,i){var a=Km.exec(r.slice(i,i+3));return a?(e.m=0,e.d=+a[0],i+a[0].length):-1}function eEr(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.H=+a[0],i+a[0].length):-1}function bHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.M=+a[0],i+a[0].length):-1}function yHn(e,r,i){var a=Km.exec(r.slice(i,i+2));return a?(e.S=+a[0],i+a[0].length):-1}function vHn(e,r,i){var a=Km.exec(r.slice(i,i+3));return a?(e.L=+a[0],i+a[0].length):-1}function _Hn(e,r,i){var a=Km.exec(r.slice(i,i+6));return a?(e.L=Math.floor(a[0]/1000),i+a[0].length):-1}function EHn(e,r,i){var a=aHn.exec(r.slice(i,i+1));return a?i+a[0].length:-1}function wHn(e,r,i){var a=Km.exec(r.slice(i));return a?(e.Q=+a[0],i+a[0].length):-1}function SHn(e,r,i){var a=Km.exec(r.slice(i));return a?(e.s=+a[0],i+a[0].length):-1}function tEr(e,r){return Iu(e.getDate(),r,2)}function THn(e,r){return Iu(e.getHours(),r,2)}function xHn(e,r){return Iu(e.getHours()%12||12,r,2)}function CHn(e,r){return Iu(1+YS.count(qE(e),e),r,3)}function sEr(e,r){return Iu(e.getMilliseconds(),r,3)}function kHn(e,r){return sEr(e,r)+"000"}function AHn(e,r){return Iu(e.getMonth()+1,r,2)}function RHn(e,r){return Iu(e.getMinutes(),r,2)}function IHn(e,r){return Iu(e.getSeconds(),r,2)}function OHn(e){var r=e.getDay();return r===0?7:r}function NHn(e,r){return Iu(gC.count(qE(e)-1,e),r,2)}function oEr(e){var r=e.getDay();return r>=4||r===0?h3(e):h3.ceil(e)}function LHn(e,r){return e=oEr(e),Iu(h3.count(qE(e),e)+(qE(e).getDay()===4),r,2)}function MHn(e){return e.getDay()}function DHn(e,r){return Iu(mL.count(qE(e)-1,e),r,2)}function PHn(e,r){return Iu(e.getFullYear()%100,r,2)}function BHn(e,r){return e=oEr(e),Iu(e.getFullYear()%100,r,2)}function FHn(e,r){return Iu(e.getFullYear()%1e4,r,4)}function $Hn(e,r){var i=e.getDay();return e=i>=4||i===0?h3(e):h3.ceil(e),Iu(e.getFullYear()%1e4,r,4)}function UHn(e){var r=e.getTimezoneOffset();return(r>0?"-":(r*=-1,"+"))+Iu(r/60|0,"0",2)+Iu(r%60,"0",2)}function rEr(e,r){return Iu(e.getUTCDate(),r,2)}function GHn(e,r){return Iu(e.getUTCHours(),r,2)}function zHn(e,r){return Iu(e.getUTCHours()%12||12,r,2)}function VHn(e,r){return Iu(1+cne.count(mC(e),e),r,3)}function lEr(e,r){return Iu(e.getUTCMilliseconds(),r,3)}function HHn(e,r){return lEr(e,r)+"000"}function qHn(e,r){return Iu(e.getUTCMonth()+1,r,2)}function YHn(e,r){return Iu(e.getUTCMinutes(),r,2)}function WHn(e,r){return Iu(e.getUTCSeconds(),r,2)}function jHn(e){var r=e.getUTCDay();return r===0?7:r}function KHn(e,r){return Iu(GP.count(mC(e)-1,e),r,2)}function cEr(e){var r=e.getUTCDay();return r>=4||r===0?bL(e):bL.ceil(e)}function XHn(e,r){return e=cEr(e),Iu(bL.count(mC(e),e)+(mC(e).getUTCDay()===4),r,2)}function QHn(e){return e.getUTCDay()}function ZHn(e,r){return Iu(pH.count(mC(e)-1,e),r,2)}function JHn(e,r){return Iu(e.getUTCFullYear()%100,r,2)}function eqn(e,r){return e=cEr(e),Iu(e.getUTCFullYear()%100,r,2)}function tqn(e,r){return Iu(e.getUTCFullYear()%1e4,r,4)}function rqn(e,r){var i=e.getUTCDay();return e=i>=4||i===0?bL(e):bL.ceil(e),Iu(e.getUTCFullYear()%1e4,r,4)}function nqn(){return"+0000"}function nEr(){return"%"}function iEr(e){return+e}function aEr(e){return Math.floor(+e/1000)}var X2r,Km,aHn,sHn;var uEr=Re(()=>{Y2e();X2r={"-":"",_:" ","0":"0"},Km=/^\s*\d+/,aHn=/^%/,sHn=/[\\^$*+?|[\]().{}]/g});function SJe(e){return gH=wJe(e),zP=gH.format,hEr=gH.parse,dEr=gH.utcFormat,fEr=gH.utcParse,gH}var gH,zP,hEr,dEr,fEr;var pEr=Re(()=>{uEr();SJe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})});var TJe=Re(()=>{pEr()});function iqn(e){return new Date(e)}function aqn(e){return e instanceof Date?+e:+new Date(+e)}function gEr(e,r,i,a,o,l,h,d,p,m){var y=one(),{invert:v,domain:w}=y,T=m(".%L"),x=m(":%S"),k=m("%I:%M"),A=m("%I %p"),R=m("%a %d"),N=m("%b %d"),L=m("%B"),B=m("%Y");function D(P){return(p(P){Y2e();TJe();iJe()});var bEr=Re(()=>{P2r();$2r();eJe();mEr()});function xJe(e){var r=e.length/6|0,i=Array(r),a=0;while(a{CJe=xJe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var vEr=Re(()=>{yEr()});function Pd(e){return function(){return e}}function EEr(e){return e>1?0:e<-1?mH:Math.acos(e)}function AJe(e){return e>=1?fne:e<=-1?-fne:Math.asin(e)}var kJe,W1,yL,_Er,j2e,bC,VP,Xm=0.000000000001,mH,fne,bH;var K2e=Re(()=>{kJe=Math.abs,W1=Math.atan2,yL=Math.cos,_Er=Math.max,j2e=Math.min,bC=Math.sin,VP=Math.sqrt,mH=Math.PI,fne=mH/2,bH=2*mH});function X2e(e){let r=3;return e.digits=function(i){if(!arguments.length)return r;if(i==null)r=null;else{let a=Math.floor(i);if(!(a>=0))throw RangeError(`invalid digits: ${i}`);r=a}return e},()=>new cH(r)}var RJe=Re(()=>{xZe()});function sqn(e){return e.innerRadius}function oqn(e){return e.outerRadius}function lqn(e){return e.startAngle}function cqn(e){return e.endAngle}function uqn(e){return e&&e.padAngle}function hqn(e,r,i,a,o,l,h,d){var p=i-e,m=a-r,y=h-o,v=d-l,w=v*p-y*m;if(w*wJ*J+Z*Z)H=X,W=Q;return{cx:H,cy:W,x01:-y,y01:-v,x11:H*(o/D-1),y11:W*(o/D-1)}}function yC(){var e=sqn,r=oqn,i=Pd(0),a=null,o=lqn,l=cqn,h=uqn,d=null,p=X2e(m);function m(){var y,v,w=+e.apply(this,arguments),T=+r.apply(this,arguments),x=o.apply(this,arguments)-fne,k=l.apply(this,arguments)-fne,A=kJe(k-x),R=k>x;if(!d)d=y=p();if(TXm))d.moveTo(0,0);else if(A>bH-Xm){if(d.moveTo(T*yL(x),T*bC(x)),d.arc(0,0,T,x,k,!R),w>Xm)d.moveTo(w*yL(k),w*bC(k)),d.arc(0,0,w,k,x,R)}else{var N=x,L=k,B=x,D=k,P=A,F=A,H=h.apply(this,arguments)/2,W=H>Xm&&(a?+a.apply(this,arguments):VP(w*w+T*T)),X=j2e(kJe(T-w)/2,+i.apply(this,arguments)),Q=X,Y=X,K,J;if(W>Xm){var Z=AJe(W/w*bC(H)),j=AJe(W/T*bC(H));if((P-=Z*2)>Xm)Z*=R?1:-1,B+=Z,D-=Z;else P=0,B=D=(x+k)/2;if((F-=j*2)>Xm)j*=R?1:-1,N+=j,L-=j;else F=0,N=L=(x+k)/2}var ee=T*yL(N),z=T*bC(N),ne=w*yL(D),ie=w*bC(D);if(X>Xm){var se=T*yL(L),oe=T*bC(L),he=w*yL(B),ye=w*bC(B),Se;if(AXm))d.moveTo(ee,z);else if(Y>Xm)if(K=Q2e(he,ye,ee,z,T,Y,R),J=Q2e(se,oe,ne,ie,T,Y,R),d.moveTo(K.cx+K.x01,K.cy+K.y01),YXm)||!(P>Xm))d.lineTo(ne,ie);else if(Q>Xm)if(K=Q2e(ne,ie,se,oe,w,-Q,R),J=Q2e(ee,z,he,ye,w,-Q,R),d.lineTo(K.cx+K.x01,K.cy+K.y01),Q{K2e();RJe()});function pne(e){return typeof e==="object"&&"length"in e?e:Array.from(e)}var e2a;var IJe=Re(()=>{e2a=Array.prototype.slice});function SEr(e){this._context=e}function WS(e){return new SEr(e)}var OJe=Re(()=>{SEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}}});function TEr(e){return e[0]}function xEr(e){return e[1]}function HP(e,r){var i=Pd(!0),a=null,o=WS,l=null,h=X2e(d);e=typeof e==="function"?e:e===void 0?TEr:Pd(e),r=typeof r==="function"?r:r===void 0?xEr:Pd(r);function d(p){var m,y=(p=pne(p)).length,v,w=!1,T;if(a==null)l=o(T=h());for(m=0;m<=y;++m){if(!(m{IJe();OJe();RJe()});function NJe(e,r){return re?1:r>=e?0:NaN}function LJe(e){return e}function Z2e(){var e=LJe,r=NJe,i=null,a=Pd(0),o=Pd(bH),l=Pd(0);function h(d){var p,m=(d=pne(d)).length,y,v,w=0,T=Array(m),x=Array(m),k=+a.apply(this,arguments),A=Math.min(bH,Math.max(-bH,o.apply(this,arguments)-k)),R,N=Math.min(Math.abs(A)/m,l.apply(this,arguments)),L=N*(A<0?-1:1),B;for(p=0;p0)w+=B;if(r!=null)T.sort(function(D,P){return r(x[D],x[P])});else if(i!=null)T.sort(function(D,P){return i(d[D],d[P])});for(p=0,v=w?(A-m*L)/w:0;p0?B*v:0)+L,x[y]={data:d[y],index:p,value:B,startAngle:k,endAngle:R,padAngle:N};return x}return h.value=function(d){return arguments.length?(e=typeof d==="function"?d:Pd(+d),h):e},h.sortValues=function(d){return arguments.length?(r=d,i=null,h):r},h.sort=function(d){return arguments.length?(i=d,r=null,h):i},h.startAngle=function(d){return arguments.length?(a=typeof d==="function"?d:Pd(+d),h):a},h.endAngle=function(d){return arguments.length?(o=typeof d==="function"?d:Pd(+d),h):o},h.padAngle=function(d){return arguments.length?(l=typeof d==="function"?d:Pd(+d),h):l},h}var kEr=Re(()=>{IJe();K2e()});class MJe{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{if(this._point=1,this._line)this._context.lineTo(e,r);else this._context.moveTo(e,r);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function gne(e){return new MJe(e,!0)}function mne(e){return new MJe(e,!1)}var AEr=()=>{};function YE(){}function yH(e,r,i){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+i)/6)}function bne(e){this._context=e}function qP(e){return new bne(e)}var yne=Re(()=>{bne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yH(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yH(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}}});function REr(e){this._context=e}function J2e(e){return new REr(e)}var IEr=Re(()=>{yne();REr.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:yH(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}}});function OEr(e){this._context=e}function eEe(e){return new OEr(e)}var NEr=Re(()=>{yne();OEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 3:this._point=4;default:yH(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}}});function LEr(e,r){this._basis=new bne(e),this._beta=r}var DJe;var MEr=Re(()=>{yne();LEr.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,r=this._y,i=e.length-1;if(i>0){var a=e[0],o=r[0],l=e[i]-a,h=r[i]-o,d=-1,p;while(++d<=i)p=d/i,this._basis.point(this._beta*e[d]+(1-this._beta)*(a+p*l),this._beta*r[d]+(1-this._beta)*(o+p*h))}this._x=this._y=null,this._basis.lineEnd()},point:function(e,r){this._x.push(+e),this._y.push(+r)}};DJe=function e(r){function i(a){return r===1?new bne(a):new LEr(a,r)}return i.beta=function(a){return e(+a)},i}(0.85)});function vH(e,r,i){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-r),e._y2+e._k*(e._y1-i),e._x2,e._y2)}function tEe(e,r){this._context=e,this._k=(1-r)/6}var vne;var _ne=Re(()=>{tEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:vH(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2,this._x1=e,this._y1=r;break;case 2:this._point=3;default:vH(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};vne=function e(r){function i(a){return new tEe(a,r)}return i.tension=function(a){return e(+a)},i}(0)});function rEe(e,r){this._context=e,this._k=(1-r)/6}var PJe;var BJe=Re(()=>{_ne();rEe.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x3=e,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=r);break;case 2:this._point=3,this._x5=e,this._y5=r;break;default:vH(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};PJe=function e(r){function i(a){return new rEe(a,r)}return i.tension=function(a){return e(+a)},i}(0)});function nEe(e,r){this._context=e,this._k=(1-r)/6}var FJe;var $Je=Re(()=>{_ne();nEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vH(this,e,r);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};FJe=function e(r){function i(a){return new nEe(a,r)}return i.tension=function(a){return e(+a)},i}(0)});function Ene(e,r,i){var{_x1:a,_y1:o,_x2:l,_y2:h}=e;if(e._l01_a>Xm){var d=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,p=3*e._l01_a*(e._l01_a+e._l12_a);a=(a*d-e._x0*e._l12_2a+e._x2*e._l01_2a)/p,o=(o*d-e._y0*e._l12_2a+e._y2*e._l01_2a)/p}if(e._l23_a>Xm){var m=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,y=3*e._l23_a*(e._l23_a+e._l12_a);l=(l*m+e._x1*e._l23_2a-r*e._l12_2a)/y,h=(h*m+e._y1*e._l23_2a-i*e._l12_2a)/y}e._context.bezierCurveTo(a,o,l,h,e._x2,e._y2)}function DEr(e,r){this._context=e,this._alpha=r}var wne;var iEe=Re(()=>{K2e();_ne();DEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var i=this._x2-e,a=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:Ene(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};wne=function e(r){function i(a){return r?new DEr(a,r):new tEe(a,0)}return i.alpha=function(a){return e(+a)},i}(0.5)});function PEr(e,r){this._context=e,this._alpha=r}var UJe;var BEr=Re(()=>{BJe();iEe();PEr.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,r){if(e=+e,r=+r,this._point){var i=this._x2-e,a=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=r;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=r);break;case 2:this._point=3,this._x5=e,this._y5=r;break;default:Ene(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};UJe=function e(r){function i(a){return r?new PEr(a,r):new rEe(a,0)}return i.alpha=function(a){return e(+a)},i}(0.5)});function FEr(e,r){this._context=e,this._alpha=r}var GJe;var $Er=Re(()=>{$Je();iEe();FEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var i=this._x2-e,a=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ene(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};GJe=function e(r){function i(a){return r?new FEr(a,r):new nEe(a,0)}return i.alpha=function(a){return e(+a)},i}(0.5)});function UEr(e){this._context=e}function aEe(e){return new UEr(e)}var GEr=Re(()=>{UEr.prototype={areaStart:YE,areaEnd:YE,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(e,r){if(e=+e,r=+r,this._point)this._context.lineTo(e,r);else this._point=1,this._context.moveTo(e,r)}}});function zEr(e){return e<0?-1:1}function VEr(e,r,i){var a=e._x1-e._x0,o=r-e._x1,l=(e._y1-e._y0)/(a||o<0&&-0),h=(i-e._y1)/(o||a<0&&-0),d=(l*o+h*a)/(a+o);return(zEr(l)+zEr(h))*Math.min(Math.abs(l),Math.abs(h),0.5*Math.abs(d))||0}function HEr(e,r){var i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-r)/2:r}function zJe(e,r,i){var{_x0:a,_y0:o,_x1:l,_y1:h}=e,d=(l-a)/3;e._context.bezierCurveTo(a+d,o+d*r,l-d,h-d*i,l,h)}function sEe(e){this._context=e}function qEr(e){this._context=new YEr(e)}function YEr(e){this._context=e}function Sne(e){return new sEe(e)}function Tne(e){return new qEr(e)}var WEr=Re(()=>{sEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zJe(this,this._t0,HEr(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(e,r){var i=NaN;if(e=+e,r=+r,e===this._x1&&r===this._y1)return;switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,zJe(this,HEr(this,i=VEr(this,e,r)),i);break;default:zJe(this,this._t0,i=VEr(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=i}};(qEr.prototype=Object.create(sEe.prototype)).point=function(e,r){sEe.prototype.point.call(this,r,e)};YEr.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,i,a,o,l){this._context.bezierCurveTo(r,e,a,i,l,o)}}});function KEr(e){this._context=e}function jEr(e){var r,i=e.length-1,a,o=Array(i),l=Array(i),h=Array(i);o[0]=0,l[0]=2,h[0]=e[0]+2*e[1];for(r=1;r=0;--r)o[r]=(h[r]-o[r+1])/l[r];l[i-1]=(e[i]+o[i-1])/2;for(r=0;r{KEr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,i=e.length;if(i)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),i===2)this._context.lineTo(e[1],r[1]);else{var a=jEr(e),o=jEr(r);for(var l=0,h=1;h{oEe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){if(0=0)this._t=1-this._t,this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var i=this._x*(1-this._t)+e*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,r)}break}}this._x=e,this._y=r}}});var ZEr=Re(()=>{wEr();CEr();kEr();IEr();NEr();yne();AEr();MEr();BJe();$Je();_ne();BEr();$Er();iEe();GEr();OJe();WEr();XEr();QEr()});function vL(e,r,i){this.k=e,this.x=r,this.y=i}function HJe(e){while(!e.__zoom)if(!(e=e.parentNode))return VJe;return e.__zoom}var VJe;var qJe=Re(()=>{vL.prototype={constructor:vL,scale:function(e){return e===1?this:new vL(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new vL(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};VJe=new vL(1,0,0);HJe.prototype=vL.prototype});var JEr=Re(()=>{C2e();qJe()});var ewr=Re(()=>{JEr();qJe()});var dl=Re(()=>{oL();yvr();o2r();h2r();nH();d2r();f2r();FXe();Vvr();p2r();_Ze();g2r();b2r();PZe();k2r();L2r();sH();xZe();M2r();m2r();D2r();bEr();vEr();uC();ZEr();Y2e();TJe();_2e();C2e();ewr()});var Ou;var A0=Re(()=>{eo();Ja();dl();Ou=I((e)=>{let{securityLevel:r}=Ar(),i=xn("body");if(r==="sandbox"){let l=xn(`#i${e}`).node()?.contentDocument??document;i=xn(l.body)}return i.select(`#${e}`)},"selectSvgElement")});function Cwr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wH(){if(twr)return _L;twr=1;function e(h){return typeof h>"u"||h===null}I(e,"isNothing");function r(h){return typeof h==="object"&&h!==null}I(r,"isObject");function i(h){if(Array.isArray(h))return h;else if(e(h))return[];return[h]}I(i,"toArray");function a(h,d){if(d){let p=Object.keys(d);for(let m=0,y=p.length;mv)m=" ... ",l=d-v+m.length;if(h-d>v)y=" ...",h=d+v-y.length;return{str:m+o.slice(l,h).replace(/\t/g,"→")+y,pos:d-l+m.length}}I(r,"getLine");function i(o,l){return e.repeat(" ",l-o.length)+o}I(i,"padStart");function a(o,l){if(l=Object.create(l||null),!o.buffer)return null;if(!l.maxLength)l.maxLength=79;if(typeof l.indent!=="number")l.indent=1;if(typeof l.linesBefore!=="number")l.linesBefore=3;if(typeof l.linesAfter!=="number")l.linesAfter=2;let h=/\r?\n|\r|\0/g,d=[0],p=[],m,y=-1;while(m=h.exec(o.buffer))if(p.push(m.index),d.push(m.index+m[0].length),o.position<=m.index&&y<0)y=d.length-2;if(y<0)y=d.length-1;let v="",w=Math.min(o.line+l.linesAfter,p.length).toString().length,T=l.maxLength-(l.indent+w+3);for(let k=1;k<=l.linesBefore;k++){if(y-k<0)break;let A=r(o.buffer,d[y-k],p[y-k],o.position-(d[y]-d[y-k]),T);v=e.repeat(" ",l.indent)+i((o.line-k+1).toString(),w)+" | "+A.str+` +`+v}let x=r(o.buffer,d[y],p[y],o.position,T);v+=e.repeat(" ",l.indent)+i((o.line+1).toString(),w)+" | "+x.str+` +`,v+=e.repeat("-",l.indent+w+3+x.pos)+`^ +`;for(let k=1;k<=l.linesAfter;k++){if(y+k>=p.length)break;let A=r(o.buffer,d[y+k],p[y+k],o.position-(d[y]-d[y+k]),T);v+=e.repeat(" ",l.indent)+i((o.line+k+1).toString(),w)+" | "+A.str+` +`}return v.replace(/\n$/,"")}return I(a,"makeSnippet"),WJe=a,WJe}function Zb(){if(iwr)return jJe;iwr=1;let e=SH(),r=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function a(l){let h={};if(l!==null)Object.keys(l).forEach(function(d){l[d].forEach(function(p){h[String(p)]=d})});return h}I(a,"compileStyleAliases");function o(l,h){if(h=h||{},Object.keys(h).forEach(function(d){if(r.indexOf(d)===-1)throw new e('Unknown option "'+d+'" is met in definition of "'+l+'" YAML type.')}),this.options=h,this.tag=l,this.kind=h.kind||null,this.resolve=h.resolve||function(){return!0},this.construct=h.construct||function(d){return d},this.instanceOf=h.instanceOf||null,this.predicate=h.predicate||null,this.represent=h.represent||null,this.representName=h.representName||null,this.defaultStyle=h.defaultStyle||null,this.multi=h.multi||!1,this.styleAliases=a(h.styleAliases||null),i.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+l+'" YAML type.')}return I(o,"Type2"),jJe=o,jJe}function get(){if(awr)return KJe;awr=1;let e=SH(),r=Zb();function i(l,h){let d=[];return l[h].forEach(function(p){let m=d.length;d.forEach(function(y,v){if(y.tag===p.tag&&y.kind===p.kind&&y.multi===p.multi)m=v}),d[m]=p}),d}I(i,"compileList");function a(){let l={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function h(d){if(d.multi)l.multi[d.kind].push(d),l.multi.fallback.push(d);else l[d.kind][d.tag]=l.fallback[d.tag]=d}I(h,"collectType");for(let d=0,p=arguments.length;d=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}I(i,"isHexCode");function a(m){return m>=48&&m<=55}I(a,"isOctCode");function o(m){return m>=48&&m<=57}I(o,"isDecCode");function l(m){if(m===null)return!1;let y=m.length,v=0,w=!1;if(!y)return!1;let T=m[v];if(T==="-"||T==="+")T=m[++v];if(T==="0"){if(v+1===y)return!0;if(T=m[++v],T==="b"){v++;for(;v=0?"0b"+m.toString(2):"-0b"+m.toString(2).slice(1)},"binary"),octal:I(function(m){return m>=0?"0o"+m.toString(8):"-0o"+m.toString(8).slice(1)},"octal"),decimal:I(function(m){return m.toString(10)},"decimal"),hexadecimal:I(function(m){return m>=0?"0x"+m.toString(16).toUpperCase():"-0x"+m.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ret}function Tet(){if(fwr)return net;fwr=1;let e=wH(),r=Zb(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),a=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function o(m){if(m===null)return!1;if(!i.test(m))return!1;if(isFinite(parseFloat(m,10)))return!0;return a.test(m)}I(o,"resolveYamlFloat");function l(m){let y=m.toLowerCase(),v=y[0]==="-"?-1:1;if("+-".indexOf(y[0])>=0)y=y.slice(1);if(y===".inf")return v===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;else if(y===".nan")return NaN;return v*parseFloat(y,10)}I(l,"constructYamlFloat");let h=/^[-+]?[0-9]+e/;function d(m,y){if(isNaN(m))switch(y){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===m)switch(y){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===m)switch(y){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(m))return"-0.0";let v=m.toString(10);return h.test(v)?v.replace("e",".e"):v}I(d,"representYamlFloat");function p(m){return Object.prototype.toString.call(m)==="[object Number]"&&(m%1!==0||e.isNegativeZero(m))}return I(p,"isFloat"),net=new r("tag:yaml.org,2002:float",{kind:"scalar",resolve:o,construct:l,predicate:p,represent:d,defaultStyle:"lowercase"}),net}function xet(){if(pwr)return iet;return pwr=1,iet=vet().extend({implicit:[_et(),Eet(),wet(),Tet()]}),iet}function Cet(){if(gwr)return aet;return gwr=1,aet=xet(),aet}function ket(){if(mwr)return set;mwr=1;let e=Zb(),r=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function a(h){if(h===null)return!1;if(r.exec(h)!==null)return!0;if(i.exec(h)!==null)return!0;return!1}I(a,"resolveYamlTimestamp");function o(h){let d=0,p=null,m=r.exec(h);if(m===null)m=i.exec(h);if(m===null)throw Error("Date resolve error");let y=+m[1],v=+m[2]-1,w=+m[3];if(!m[4])return new Date(Date.UTC(y,v,w));let T=+m[4],x=+m[5],k=+m[6];if(m[7]){d=m[7].slice(0,3);while(d.length<3)d+="0";d=+d}if(m[9]){let R=+m[10],N=+(m[11]||0);if(p=(R*60+N)*60000,m[9]==="-")p=-p}let A=new Date(Date.UTC(y,v,w,T,x,k,d));if(p)A.setTime(A.getTime()-p);return A}I(o,"constructYamlTimestamp");function l(h){return h.toISOString()}return I(l,"representYamlTimestamp"),set=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:a,construct:o,instanceOf:Date,represent:l}),set}function Aet(){if(bwr)return oet;bwr=1;let e=Zb();function r(i){return i==="<<"||i===null}return I(r,"resolveYamlMerge"),oet=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:r}),oet}function Ret(){if(ywr)return cet;ywr=1;let e=Zb(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function i(h){if(h===null)return!1;let d=0,p=h.length,m=r;for(let y=0;y64)continue;if(v<0)return!1;d+=6}return d%8===0}I(i,"resolveYamlBinary");function a(h){let d=h.replace(/[\r\n=]/g,""),p=d.length,m=r,y=0,v=[];for(let T=0;T>16&255),v.push(y>>8&255),v.push(y&255);y=y<<6|m.indexOf(d.charAt(T))}let w=p%4*6;if(w===0)v.push(y>>16&255),v.push(y>>8&255),v.push(y&255);else if(w===18)v.push(y>>10&255),v.push(y>>2&255);else if(w===12)v.push(y>>4&255);return new Uint8Array(v)}I(a,"constructYamlBinary");function o(h){let d="",p=0,m=h.length,y=r;for(let w=0;w>18&63],d+=y[p>>12&63],d+=y[p>>6&63],d+=y[p&63];p=(p<<8)+h[w]}let v=m%3;if(v===0)d+=y[p>>18&63],d+=y[p>>12&63],d+=y[p>>6&63],d+=y[p&63];else if(v===2)d+=y[p>>10&63],d+=y[p>>4&63],d+=y[p<<2&63],d+=y[64];else if(v===1)d+=y[p>>2&63],d+=y[p<<4&63],d+=y[64],d+=y[64];return d}I(o,"representYamlBinary");function l(h){return Object.prototype.toString.call(h)==="[object Uint8Array]"}return I(l,"isBinary"),cet=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:a,predicate:l,represent:o}),cet}function Iet(){if(vwr)return uet;vwr=1;let e=Zb(),r=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function a(l){if(l===null)return!0;let h=[],d=l;for(let p=0,m=d.length;p=48&&le<=57)return le-48;let pe=le|32;if(pe>=97&&pe<=102)return pe-97+10;return-1}I(P,"fromHexCode");function F(le){if(le===120)return 2;if(le===117)return 4;if(le===85)return 8;return 0}I(F,"escapedHexLen");function H(le){if(le>=48&&le<=57)return le-48;return-1}I(H,"fromDecimalCode");function W(le){switch(le){case 48:return"\x00";case 97:return"\x07";case 98:return"\b";case 116:return"\t";case 9:return"\t";case 110:return` +`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}I(W,"simpleEscapeSequence");function X(le){if(le<=65535)return String.fromCharCode(le);return String.fromCharCode((le-65536>>10)+55296,(le-65536&1023)+56320)}I(X,"charFromCodepoint");function Q(le,pe,fe){if(pe==="__proto__")Object.defineProperty(le,pe,{configurable:!0,enumerable:!0,writable:!0,value:fe});else le[pe]=fe}I(Q,"setProperty");let Y=Array(256),K=Array(256);for(let le=0;le<256;le++)Y[le]=W(le)?1:0,K[le]=W(le);function J(le,pe){this.input=le,this.filename=pe.filename||null,this.schema=pe.schema||a,this.onWarning=pe.onWarning||null,this.legacy=pe.legacy||!1,this.json=pe.json||!1,this.listener=pe.listener||null,this.maxDepth=typeof pe.maxDepth==="number"?pe.maxDepth:100,this.maxTotalMergeKeys=typeof pe.maxTotalMergeKeys==="number"?pe.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=le.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}I(J,"State");function Z(le,pe){let fe={name:le.filename,buffer:le.input.slice(0,-1),position:le.position,line:le.line,column:le.position-le.lineStart};return fe.snippet=i(fe),new r(pe,fe)}I(Z,"generateError");function j(le,pe){throw Z(le,pe)}I(j,"throwError");function ee(le,pe){if(le.onWarning)le.onWarning.call(null,Z(le,pe))}I(ee,"throwWarning");function z(le,pe,fe){let be=le.anchorMapTransactions;if(be.length!==0){let Ge=be[be.length-1];if(!o.call(Ge,pe))Ge[pe]={existed:o.call(le.anchorMap,pe),value:le.anchorMap[pe]}}le.anchorMap[pe]=fe}I(z,"storeAnchor");function ne(le){le.anchorMapTransactions.push(Object.create(null))}I(ne,"beginAnchorTransaction");function ie(le){let pe=le.anchorMapTransactions.pop(),fe=le.anchorMapTransactions;if(fe.length===0)return;let be=fe[fe.length-1],Ge=Object.keys(pe);for(let ke=0,we=Ge.length;ke=0;be-=1){let Ge=pe[fe[be]];if(Ge.existed)le.anchorMap[fe[be]]=Ge.value;else delete le.anchorMap[fe[be]]}}I(se,"rollbackAnchorTransaction");function oe(le){return{position:le.position,line:le.line,lineStart:le.lineStart,lineIndent:le.lineIndent,firstTabInLine:le.firstTabInLine,tag:le.tag,anchor:le.anchor,kind:le.kind,result:le.result}}I(oe,"snapshotState");function he(le,pe){le.position=pe.position,le.line=pe.line,le.lineStart=pe.lineStart,le.lineIndent=pe.lineIndent,le.firstTabInLine=pe.firstTabInLine,le.tag=pe.tag,le.anchor=pe.anchor,le.kind=pe.kind,le.result=pe.result}I(he,"restoreState");let ye={YAML:I(function(pe,fe,be){if(pe.version!==null)j(pe,"duplication of %YAML directive");if(be.length!==1)j(pe,"YAML directive accepts exactly one argument");let Ge=/^([0-9]+)\.([0-9]+)$/.exec(be[0]);if(Ge===null)j(pe,"ill-formed argument of the YAML directive");let ke=parseInt(Ge[1],10),we=parseInt(Ge[2],10);if(ke!==1)j(pe,"unacceptable YAML version of the document");if(pe.version=be[0],pe.checkLineBreaks=we<2,we!==1&&we!==2)ee(pe,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:I(function(pe,fe,be){let Ge;if(be.length!==2)j(pe,"TAG directive accepts exactly two arguments");let ke=be[0];if(Ge=be[1],!k.test(ke))j(pe,"ill-formed tag handle (first argument) of the TAG directive");if(o.call(pe.tagMap,ke))j(pe,'there is a previously declared suffix for "'+ke+'" tag handle');if(!A.test(Ge))j(pe,"ill-formed tag prefix (second argument) of the TAG directive");try{Ge=decodeURIComponent(Ge)}catch(we){j(pe,"tag prefix is malformed: "+Ge)}pe.tagMap[ke]=Ge},"handleTagDirective")};function Se(le,pe,fe,be){if(pe=32&&Ae<=1114111))j(le,"expected valid JSON character")}else if(w.test(Ge))j(le,"the stream contains non-printable characters");le.result+=Ge}}I(Se,"captureSegment");function Ie(le,pe,fe,be){if(!e.isObject(fe))j(le,"cannot merge mappings; the provided source object is unacceptable");let Ge=Object.keys(fe);for(let ke=0,we=Ge.length;kele.maxTotalMergeKeys)j(le,"merge keys exceeded maxTotalMergeKeys ("+le.maxTotalMergeKeys+")");if(!o.call(pe,Ae))Q(pe,Ae,fe[Ae]),be[Ae]=!0}}I(Ie,"mergeMappings");function Ee(le,pe,fe,be,Ge,ke,we,Ae,at){if(Array.isArray(Ge)){Ge=Array.prototype.slice.call(Ge);for(let ut=0,gt=Ge.length;ut1)le.result+=e.repeat(` +`,pe-1)}I(Ye,"writeFoldedLines");function Qe(le,pe,fe){let be,Ge,ke,we,Ae,at,{kind:ut,result:gt}=le,vt=le.input.charCodeAt(le.position);if(B(vt)||D(vt)||vt===35||vt===38||vt===42||vt===33||vt===124||vt===62||vt===39||vt===34||vt===37||vt===64||vt===96)return!1;if(vt===63||vt===45){let ir=le.input.charCodeAt(le.position+1);if(B(ir)||fe&&D(ir))return!1}le.kind="scalar",le.result="",be=Ge=le.position,ke=!1;while(vt!==0){if(vt===58){let ir=le.input.charCodeAt(le.position+1);if(B(ir)||fe&&D(ir))break}else if(vt===35){let ir=le.input.charCodeAt(le.position-1);if(B(ir))break}else if(le.position===le.lineStart&&Xe(le)||fe&&D(vt))break;else if(N(vt))if(we=le.line,Ae=le.lineStart,at=le.lineIndent,Me(le,!1,-1),le.lineIndent>=pe){ke=!0,vt=le.input.charCodeAt(le.position);continue}else{le.position=Ge,le.line=we,le.lineStart=Ae,le.lineIndent=at;break}if(ke)Se(le,be,Ge,!1),Ye(le,le.line-we),be=Ge=le.position,ke=!1;if(!L(vt))Ge=le.position+1;vt=le.input.charCodeAt(++le.position)}if(Se(le,be,Ge,!1),le.result)return!0;return le.kind=ut,le.result=gt,!1}I(Qe,"readPlainScalar");function xt(le,pe){let fe,be,Ge=le.input.charCodeAt(le.position);if(Ge!==39)return!1;le.kind="scalar",le.result="",le.position++,fe=be=le.position;while((Ge=le.input.charCodeAt(le.position))!==0)if(Ge===39)if(Se(le,fe,le.position,!0),Ge=le.input.charCodeAt(++le.position),Ge===39)fe=le.position,le.position++,be=le.position;else return!0;else if(N(Ge))Se(le,fe,be,!0),Ye(le,Me(le,!1,pe)),fe=be=le.position;else if(le.position===le.lineStart&&Xe(le))j(le,"unexpected end of the document within a single quoted scalar");else if(le.position++,!L(Ge))be=le.position;j(le,"unexpected end of the stream within a single quoted scalar")}I(xt,"readSingleQuotedScalar");function dt(le,pe){let fe,be,Ge,ke=le.input.charCodeAt(le.position);if(ke!==34)return!1;le.kind="scalar",le.result="",le.position++,fe=be=le.position;while((ke=le.input.charCodeAt(le.position))!==0)if(ke===34)return Se(le,fe,le.position,!0),le.position++,!0;else if(ke===92){if(Se(le,fe,le.position,!0),ke=le.input.charCodeAt(++le.position),N(ke))Me(le,!1,pe);else if(ke<256&&Y[ke])le.result+=K[ke],le.position++;else if((Ge=F(ke))>0){let we=Ge,Ae=0;for(;we>0;we--)if(ke=le.input.charCodeAt(++le.position),(Ge=P(ke))>=0)Ae=(Ae<<4)+Ge;else j(le,"expected hexadecimal character");le.result+=X(Ae),le.position++}else j(le,"unknown escape sequence");fe=be=le.position}else if(N(ke))Se(le,fe,be,!0),Ye(le,Me(le,!1,pe)),fe=be=le.position;else if(le.position===le.lineStart&&Xe(le))j(le,"unexpected end of the document within a double quoted scalar");else if(le.position++,!L(ke))be=le.position;j(le,"unexpected end of the stream within a double quoted scalar")}I(dt,"readDoubleQuotedScalar");function zt(le,pe){let fe=!0,be,Ge,ke,we=le.tag,Ae,at=le.anchor,ut,gt,vt,ir,qt=Object.create(null),cr,tr,Zt,lr=le.input.charCodeAt(le.position);if(lr===91)ut=93,ir=!1,Ae=[];else if(lr===123)ut=125,ir=!0,Ae={};else return!1;if(le.anchor!==null)z(le,le.anchor,Ae);lr=le.input.charCodeAt(++le.position);while(lr!==0){if(Me(le,!0,pe),lr=le.input.charCodeAt(le.position),lr===ut)return le.position++,le.tag=we,le.anchor=at,le.kind=ir?"mapping":"sequence",le.result=Ae,!0;else if(!fe)j(le,"missed comma between flow collection entries");else if(lr===44)j(le,"expected the node content, but found ','");if(tr=cr=Zt=null,gt=vt=!1,lr===63){let Xt=le.input.charCodeAt(le.position+1);if(B(Xt))gt=vt=!0,le.position++,Me(le,!0,pe)}if(be=le.line,Ge=le.lineStart,ke=le.position,Ue(le,pe,l,!1,!0),tr=le.tag,cr=le.result,Me(le,!0,pe),lr=le.input.charCodeAt(le.position),(vt||le.line===be)&&lr===58)gt=!0,lr=le.input.charCodeAt(++le.position),Me(le,!0,pe),Ue(le,pe,l,!1,!0),Zt=le.result;if(ir)Ee(le,Ae,qt,tr,cr,Zt,be,Ge,ke);else if(gt)Ae.push(Ee(le,null,qt,tr,cr,Zt,be,Ge,ke));else Ae.push(cr);if(Me(le,!0,pe),lr=le.input.charCodeAt(le.position),lr===44)fe=!0,lr=le.input.charCodeAt(++le.position);else fe=!1}j(le,"unexpected end of the stream within a flow collection")}I(zt,"readFlowCollection");function Kt(le,pe){let fe,be=m,Ge=!1,ke=!1,we=pe,Ae=0,at=!1,ut,gt=le.input.charCodeAt(le.position);if(gt===124)fe=!1;else if(gt===62)fe=!0;else return!1;le.kind="scalar",le.result="";while(gt!==0)if(gt=le.input.charCodeAt(++le.position),gt===43||gt===45)if(m===be)be=gt===43?v:y;else j(le,"repeat of a chomping mode identifier");else if((ut=H(gt))>=0)if(ut===0)j(le,"bad explicit indentation width of a block scalar; it cannot be less than one");else if(!ke)we=pe+ut-1,ke=!0;else j(le,"repeat of an indentation width identifier");else break;if(L(gt)){do gt=le.input.charCodeAt(++le.position);while(L(gt));if(gt===35)do gt=le.input.charCodeAt(++le.position);while(!N(gt)&>!==0)}while(gt!==0){ze(le),le.lineIndent=0,gt=le.input.charCodeAt(le.position);while((!ke||le.lineIndentwe)we=le.lineIndent;if(N(gt)){Ae++;continue}if(!ke&&we===0)j(le,"missing indentation for block scalar");if(le.lineIndentpe)&&we!==0)j(le,"bad indentation of a sequence entry");else if(le.lineIndentpe){if(cr)Ge=le.line,ke=le.lineStart,we=le.position;if(Ue(le,pe,p,!0,be))if(cr)ir=le.result;else qt=le.result;if(!cr)Ee(le,ut,gt,vt,ir,qt,Ge,ke,we),vt=ir=qt=null;Me(le,!0,-1),Zt=le.input.charCodeAt(le.position)}if((le.line===Xt||le.lineIndent>pe)&&Zt!==0)j(le,"bad indentation of a mapping entry");else if(le.lineIndent=le.maxDepth)j(le,"nesting exceeded maxDepth ("+le.maxDepth+")");if(le.depth+=1,le.listener!==null)le.listener("open",le);le.tag=null,le.anchor=null,le.kind=null,le.result=null;let cr=ke=we=p===fe||d===fe;if(be){if(Me(le,!0,-1)){if(at=!0,le.lineIndent>pe)Ae=1;else if(le.lineIndent===pe)Ae=0;else if(le.lineIndentpe)Ae=1;else if(le.lineIndent===pe)Ae=0;else if(le.lineIndent tag; it should be "scalar", not "'+le.kind+'"');for(let tr=0,Zt=le.implicitTypes.length;tr");if(le.result!==null&&vt.kind!==le.kind)j(le,"unacceptable node kind for !<"+le.tag+'> tag; it should be "'+vt.kind+'", not "'+le.kind+'"');if(!vt.resolve(le.result,le.tag))j(le,"cannot resolve a node with !<"+le.tag+"> explicit tag");else if(le.result=vt.construct(le.result,le.tag),le.anchor!==null)z(le,le.anchor,le.result)}if(le.listener!==null)le.listener("close",le);return le.depth-=1,le.tag!==null||le.anchor!==null||ut}I(Ue,"composeNode");function qe(le){let pe=le.position,fe=!1,be;le.version=null,le.checkLineBreaks=le.legacy,le.tagMap=Object.create(null),le.anchorMap=Object.create(null);while((be=le.input.charCodeAt(le.position))!==0){if(Me(le,!0,-1),be=le.input.charCodeAt(le.position),le.lineIndent>0||be!==37)break;fe=!0,be=le.input.charCodeAt(++le.position);let Ge=le.position;while(be!==0&&!B(be))be=le.input.charCodeAt(++le.position);let ke=le.input.slice(Ge,le.position),we=[];if(ke.length<1)j(le,"directive name must not be less than one character in length");while(be!==0){while(L(be))be=le.input.charCodeAt(++le.position);if(be===35){do be=le.input.charCodeAt(++le.position);while(be!==0&&!N(be));break}if(N(be))break;Ge=le.position;while(be!==0&&!B(be))be=le.input.charCodeAt(++le.position);we.push(le.input.slice(Ge,le.position))}if(be!==0)ze(le);if(o.call(ye,ke))ye[ke](le,ke,we);else ee(le,'unknown document directive "'+ke+'"')}if(Me(le,!0,-1),le.lineIndent===0&&le.input.charCodeAt(le.position)===45&&le.input.charCodeAt(le.position+1)===45&&le.input.charCodeAt(le.position+2)===45)le.position+=3,Me(le,!0,-1);else if(fe)j(le,"directives end mark is expected");if(Ue(le,le.lineIndent-1,p,!1,!0),Me(le,!0,-1),le.checkLineBreaks&&T.test(le.input.slice(pe,le.position)))ee(le,"non-ASCII line breaks are interpreted as content");if(le.documents.push(le.result),le.position===le.lineStart&&Xe(le)){if(le.input.charCodeAt(le.position)===46)le.position+=3,Me(le,!0,-1);return}if(le.position"u")fe=pe,pe=null;let be=Ke(le,fe);if(typeof pe!=="function")return be;for(let Ge=0,ke=be.length;Ge=32&&we<=126||we>=161&&we<=55295&&we!==8232&&we!==8233||we>=57344&&we<=65533&&we!==l||we>=65536&&we<=1114111}I(Ie,"isPrintable");function Ee(we){return Ie(we)&&we!==l&&we!==p&&we!==d}I(Ee,"isNsCharOrWhitespace");function ze(we,Ae,at){let ut=Ee(we),gt=ut&&!Se(we);return(at?ut:ut&&we!==R&&we!==H&&we!==W&&we!==Q&&we!==K)&&we!==w&&!(Ae===L&&!gt)||Ee(Ae)&&!Se(Ae)&&we===w||Ae===L&>}I(ze,"isPlainSafe");function Me(we){return Ie(we)&&we!==l&&!Se(we)&&we!==N&&we!==P&&we!==L&&we!==R&&we!==H&&we!==W&&we!==Q&&we!==K&&we!==w&&we!==x&&we!==A&&we!==y&&we!==Y&&we!==B&&we!==D&&we!==k&&we!==v&&we!==T&&we!==F&&we!==X}I(Me,"isPlainSafeFirst");function Xe(we){return!Se(we)&&we!==L}I(Xe,"isPlainSafeLast");function Ye(we,Ae){let at=we.charCodeAt(Ae),ut;if(at>=55296&&at<=56319&&Ae+1=56320&&ut<=57343)return(at-55296)*1024+ut-56320+65536}return at}I(Ye,"codePointAt");function Qe(we){return/^\n* /.test(we)}I(Qe,"needIndentIndicator");let xt=1,dt=2,zt=3,Kt=4,rr=5;function je(we,Ae,at,ut,gt,vt,ir,qt){let cr,tr=0,Zt=null,lr=!1,Xt=!1,In=ut!==-1,Et=-1,Xn=Me(Ye(we,0))&&Xe(Ye(we,we.length-1));if(Ae||ir)for(cr=0;cr=65536?cr+=2:cr++){if(tr=Ye(we,cr),!Ie(tr))return rr;Xn=Xn&&ze(tr,Zt,qt),Zt=tr}else{for(cr=0;cr=65536?cr+=2:cr++){if(tr=Ye(we,cr),tr===d){if(lr=!0,In)Xt=Xt||cr-Et-1>ut&&we[Et+1]!==" ",Et=cr}else if(!Ie(tr))return rr;Xn=Xn&&ze(tr,Zt,qt),Zt=tr}Xt=Xt||In&&(cr-Et-1>ut&&we[Et+1]!==" ")}if(!lr&&!Xt){if(Xn&&!ir&&!gt(we))return xt;return vt===ie?rr:dt}if(at>9&&Qe(we))return rr;if(!ir)return Xt?Kt:zt;return vt===ie?rr:dt}I(je,"chooseScalarStyle");function Nt(we,Ae,at,ut,gt){we.dump=function(){if(Ae.length===0)return we.quotingType===ie?'""':"''";if(!we.noCompatMode){if(Z.indexOf(Ae)!==-1||j.test(Ae))return we.quotingType===ie?'"'+Ae+'"':"'"+Ae+"'"}let vt=we.indent*Math.max(1,at),ir=we.lineWidth===-1?-1:Math.max(Math.min(we.lineWidth,40),we.lineWidth-vt),qt=ut||we.flowLevel>-1&&at>=we.flowLevel;function cr(tr){return ye(we,tr)}switch(I(cr,"testAmbiguity"),je(Ae,qt,we.indent,ir,cr,we.quotingType,we.forceQuotes&&!ut,gt)){case xt:return Ae;case dt:return"'"+Ae.replace(/'/g,"''")+"'";case zt:return"|"+ct(Ae,we.indent)+bt(oe(Ae,vt));case Kt:return">"+ct(Ae,we.indent)+bt(oe(Pe(Ae,ir),vt));case rr:return'"'+qe(Ae)+'"';default:throw new r("impossible error: invalid scalar style")}}()}I(Nt,"writeScalar");function ct(we,Ae){let at=Qe(we)?String(Ae):"",ut=we[we.length-1]===` +`,vt=ut&&(we[we.length-2]===` +`||we===` +`)?"+":ut?"":"-";return at+vt+` +`}I(ct,"blockHeader");function bt(we){return we[we.length-1]===` +`?we.slice(0,-1):we}I(bt,"dropEndingNewline");function Pe(we,Ae){let at=/(\n+)([^\n]*)/g,ut=function(){let qt=we.indexOf(` +`);return qt=qt!==-1?qt:we.length,at.lastIndex=qt,Ue(we.slice(0,qt),Ae)}(),gt=we[0]===` +`||we[0]===" ",vt,ir;while(ir=at.exec(we)){let qt=ir[1],cr=ir[2];vt=cr[0]===" ",ut+=qt+(!gt&&!vt&&cr!==""?` +`:"")+Ue(cr,Ae),gt=vt}return ut}I(Pe,"foldString");function Ue(we,Ae){if(we===""||we[0]===" ")return we;let at=/ [^ ]/g,ut,gt=0,vt,ir=0,qt=0,cr="";while(ut=at.exec(we)){if(qt=ut.index,qt-gt>Ae)vt=ir>gt?ir:qt,cr+=` +`+we.slice(gt,vt),gt=vt+1;ir=qt}if(cr+=` +`,we.length-gt>Ae&&ir>gt)cr+=we.slice(gt,ir)+` +`+we.slice(ir+1);else cr+=we.slice(gt);return cr.slice(1)}I(Ue,"foldLine");function qe(we){let Ae="",at=0;for(let ut=0;ut=65536?ut+=2:ut++){at=Ye(we,ut);let gt=J[at];if(!gt&&Ie(at)){if(Ae+=we[ut],at>=65536)Ae+=we[ut+1]}else Ae+=gt||z(at)}return Ae}I(qe,"escapeString");function Ke(we,Ae,at){let ut="",gt=we.tag;for(let vt=0,ir=at.length;vt"u"&&fe(we,Ae,null,!1,!1)){if(ut!=="")ut+=","+(!we.condenseFlow?" ":"");ut+=we.dump}}we.tag=gt,we.dump="["+ut+"]"}I(Ke,"writeFlowSequence");function Je(we,Ae,at,ut){let gt="",vt=we.tag;for(let ir=0,qt=at.length;ir"u"&&fe(we,Ae+1,null,!0,!0,!1,!0)){if(!ut||gt!=="")gt+=he(we,Ae);if(we.dump&&d===we.dump.charCodeAt(0))gt+="-";else gt+="- ";gt+=we.dump}}we.tag=vt,we.dump=gt||"[]"}I(Je,"writeBlockSequence");function De(we,Ae,at){let ut="",gt=we.tag,vt=Object.keys(at);for(let ir=0,qt=vt.length;ir1024)cr+="? ";if(cr+=we.dump+(we.condenseFlow?'"':"")+":"+(we.condenseFlow?"":" "),!fe(we,Ae,Zt,!1,!1))continue;cr+=we.dump,ut+=cr}we.tag=gt,we.dump="{"+ut+"}"}I(De,"writeFlowMapping");function le(we,Ae,at,ut){let gt="",vt=we.tag,ir=Object.keys(at);if(we.sortKeys===!0)ir.sort();else if(typeof we.sortKeys==="function")ir.sort(we.sortKeys);else if(we.sortKeys)throw new r("sortKeys must be a boolean or a function");for(let qt=0,cr=ir.length;qt1024;if(Xt)if(we.dump&&d===we.dump.charCodeAt(0))tr+="?";else tr+="? ";if(tr+=we.dump,Xt)tr+=he(we,Ae);if(!fe(we,Ae+1,lr,!0,Xt))continue;if(we.dump&&d===we.dump.charCodeAt(0))tr+=":";else tr+=": ";tr+=we.dump,gt+=tr}we.tag=vt,we.dump=gt||"{}"}I(le,"writeBlockMapping");function pe(we,Ae,at){let ut=at?we.explicitTypes:we.implicitTypes;for(let gt=0,vt=ut.length;gt tag resolver accepts not "'+qt+'" style');we.dump=cr}return!0}}return!1}I(pe,"detectType");function fe(we,Ae,at,ut,gt,vt,ir){if(we.tag=null,we.dump=at,!pe(we,at,!1))pe(we,at,!0);let qt=a.call(we.dump),cr=ut;if(ut)ut=we.flowLevel<0||we.flowLevel>Ae;let tr=qt==="[object Object]"||qt==="[object Array]",Zt,lr;if(tr)Zt=we.duplicates.indexOf(at),lr=Zt!==-1;if(we.tag!==null&&we.tag!=="?"||lr||we.indent!==2&&Ae>0)gt=!1;if(lr&&we.usedDuplicates[Zt])we.dump="*ref_"+Zt;else{if(tr&&lr&&!we.usedDuplicates[Zt])we.usedDuplicates[Zt]=!0;if(qt==="[object Object]"){if(ut&&Object.keys(we.dump).length!==0){if(le(we,Ae,we.dump,gt),lr)we.dump="&ref_"+Zt+we.dump}else if(De(we,Ae,we.dump),lr)we.dump="&ref_"+Zt+" "+we.dump}else if(qt==="[object Array]"){if(ut&&we.dump.length!==0){if(we.noArrayIndent&&!ir&&Ae>0)Je(we,Ae-1,we.dump,gt);else Je(we,Ae,we.dump,gt);if(lr)we.dump="&ref_"+Zt+we.dump}else if(Ke(we,Ae,we.dump),lr)we.dump="&ref_"+Zt+" "+we.dump}else if(qt==="[object String]"){if(we.tag!=="?")Nt(we,we.dump,Ae,vt,cr)}else if(qt==="[object Undefined]")return!1;else{if(we.skipInvalid)return!1;throw new r("unacceptable kind of an object to dump "+qt)}if(we.tag!==null&&we.tag!=="?"){let Xt=encodeURI(we.tag[0]==="!"?we.tag.slice(1):we.tag).replace(/!/g,"%21");if(we.tag[0]==="!")Xt="!"+Xt;else if(Xt.slice(0,18)==="tag:yaml.org,2002:")Xt="!!"+Xt.slice(18);else Xt="!<"+Xt+">";we.dump=Xt+" "+we.dump}}return!0}I(fe,"writeNode");function be(we,Ae){let at=[],ut=[];Ge(we,at,ut);let gt=ut.length;for(let vt=0;vt{Ja();I(Cwr,"getDefaultExportFromCjs");Qb={},lEe={},_L={};I(wH,"requireCommon");I(SH,"requireException");I(kwr,"requireSnippet");I(Zb,"requireType");I(get,"requireSchema");I(met,"requireStr");I(bet,"requireSeq");I(yet,"requireMap");I(vet,"requireFailsafe");I(_et,"require_null");I(Eet,"requireBool");I(wet,"requireInt");I(Tet,"requireFloat");I(xet,"requireJson");I(Cet,"requireCore");I(ket,"requireTimestamp");I(Aet,"requireMerge");I(Ret,"requireBinary");I(Iet,"requireOmap");I(Oet,"requirePairs");I(Net,"requireSet");I(cEe,"require_default");I(Awr,"requireLoader");pet={};I(Rwr,"requireDumper");I(Iwr,"requireJsYaml");dqn=Iwr(),fqn=Cwr(dqn),{Type:gwa,Schema:mwa,FAILSAFE_SCHEMA:bwa,JSON_SCHEMA:vC,CORE_SCHEMA:ywa,DEFAULT_SCHEMA:vwa,load:_C,loadAll:_wa,dump:Ewa,YAMLException:wwa,types:Swa,safeLoad:Twa,safeLoadAll:xwa,safeDump:Cwa}=fqn});var uEe;var WE=Re(()=>{Ja();uEe=I((e,r)=>{let{theme:i,themeVariables:a}=r,{useGradient:o,gradientStart:l,gradientStop:h}=a??{},d=e.attr("id"),p=i?.includes("dark")?"#FFFFFF":"#000000",m=I((v,w,T)=>e.append("defs").append("filter").attr("id",v).attr("height",w).attr("width",w).append("feDropShadow").attr("dx",T).attr("dy",T).attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",p),"dropShadow");if(m(`${d}-drop-shadow`,"130%","4"),m(`${d}-drop-shadow-small`,"150%","2"),!o)return;let y=e.append("linearGradient").attr("id",`${d}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");y.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),y.append("svg:stop").attr("offset","100%").attr("stop-color",h).attr("stop-opacity",1)},"insertLookDefs")});var Owr,pqn,d3,gqn,kne,fa,ga,mqn;var R0=Re(()=>{eo();Ja();Owr=I((e)=>{let{handDrawnSeed:r}=Ar();return{fill:e,hachureAngle:120,hachureGap:1.5,fillWeight:1.5,roughness:0.7,stroke:e,seed:r}},"solidStateFill"),pqn=I((e)=>{if(Array.isArray(e))return e;if(!e)return[];return e.split(";").map((r)=>r.trim()).filter(Boolean)},"normalizeStyleList"),d3=I((e)=>{let r=gqn([...e.cssCompiledStyles||[],...e.cssStyles||[],...pqn(e.labelStyle)]);return{stylesMap:r,stylesArray:[...r]}},"compileStyles"),gqn=I((e)=>{let r=new Map;return e.forEach((i)=>{let[a,o]=i.split(":");r.set(a.trim(),o?.trim())}),r},"styles2Map"),kne=I((e)=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),fa=I((e)=>{let{stylesArray:r}=d3(e),i=[],a=[],o=[],l=[];return r.forEach((h)=>{let d=h[0];if(kne(d))i.push(h.join(":")+" !important");else{if(a.push(h.join(":")+" !important"),d.includes("stroke"))o.push(h.join(":")+" !important");if(d==="fill")l.push(h.join(":")+" !important")}}),{labelStyles:i.join(";"),nodeStyles:a.join(";"),stylesArray:r,borderStyles:o,backgroundStyles:l}},"styles2String"),ga=I((e,r)=>{let{themeVariables:i,handDrawnSeed:a}=Ar(),{nodeBorder:o,mainBkg:l}=i,{stylesMap:h}=d3(e);return Object.assign({roughness:0.7,fill:h.get("fill")||l,fillStyle:"hachure",fillWeight:1.5,hachureGap:1.5,stroke:h.get("stroke")||o,seed:a,strokeWidth:h.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0],strokeLineDash:mqn(h.get("stroke-dasharray"))},r)},"userNodeOverrides"),mqn=I((e)=>{if(!e)return[0,0];let r=e.trim().split(/\s+/).map(Number);if(r.length===1){let o=isNaN(r[0])?0:r[0];return[o,o]}let i=isNaN(r[0])?0:r[0],a=isNaN(r[1])?0:r[1];return[i,a]},"getStrokeDashArray")});var Let=(e,r,i,a="")=>{let o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;a=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){let d=o.pop(),p=o.pop(),m={provider:o.length>0?o[0]:a,prefix:p,name:d};return r&&!hEe(m)?null:m}let l=o[0],h=l.split("-");if(h.length>1){let d={provider:a,prefix:h.shift(),name:h.join("-")};return r&&!hEe(d)?null:d}if(i&&a===""){let d={provider:a,prefix:"",name:l};return r&&!hEe(d,i)?null:d}return null},hEe=(e,r)=>{if(!e)return!1;return!!((r&&e.prefix===""||!!e.prefix)&&!!e.name)};var Nwr=()=>{};var bqn,TH,Met,Lwr;var dEe=Re(()=>{bqn=Object.freeze({left:0,top:0,width:16,height:16}),TH=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Met=Object.freeze({...bqn,...TH}),Lwr=Object.freeze({...Met,body:"",hidden:!1})});function Mwr(e,r){let i={};if(!e.hFlip!==!r.hFlip)i.hFlip=!0;if(!e.vFlip!==!r.vFlip)i.vFlip=!0;let a=((e.rotate||0)+(r.rotate||0))%4;if(a)i.rotate=a;return i}var Dwr=()=>{};function Det(e,r){let i=Mwr(e,r);for(let a in Lwr)if(a in TH){if(a in e&&!(a in i))i[a]=TH[a]}else if(a in r)i[a]=r[a];else if(a in e)i[a]=e[a];return i}var Pwr=Re(()=>{dEe();Dwr()});function Bwr(e,r){let i=e.icons,a=e.aliases||Object.create(null),o=Object.create(null);function l(h){if(i[h])return o[h]=[];if(!(h in o)){o[h]=null;let d=a[h]&&a[h].parent,p=d&&l(d);if(p)o[h]=[d].concat(p)}return o[h]}return(r||Object.keys(i).concat(Object.keys(a))).forEach(l),o}var Fwr=()=>{};function $wr(e,r,i){let a=e.icons,o=e.aliases||Object.create(null),l={};function h(d){l=Det(a[d]||o[d],l)}return h(r),i.forEach(h),Det(e,l)}function Pet(e,r){if(e.icons[r])return $wr(e,r,[]);let i=Bwr(e,[r])[r];return i?$wr(e,r,i):null}var Uwr=Re(()=>{Pwr();Fwr()});var yqn,Gwr;var zwr=Re(()=>{dEe();yqn=Object.freeze({width:null,height:null}),Gwr=Object.freeze({...yqn,...TH})});function Bet(e,r,i){if(r===1)return e;if(i=i||100,typeof e==="number")return Math.ceil(e*r*i)/i;if(typeof e!=="string")return e;let a=e.split(vqn);if(a===null||!a.length)return e;let o=[],l=a.shift(),h=_qn.test(l);while(!0){if(h){let d=parseFloat(l);if(isNaN(d))o.push(l);else o.push(Math.ceil(d*r*i)/i)}else o.push(l);if(l=a.shift(),l===void 0)return o.join("");h=!h}}var vqn,_qn;var Vwr=Re(()=>{vqn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_qn=/^-?[0-9.]*[0-9]+[0-9.]*$/g});function Eqn(e,r="defs"){let i="",a=e.indexOf("<"+r);while(a>=0){let o=e.indexOf(">",a),l=e.indexOf("",l);if(h===-1)break;i+=e.slice(o+1,l).trim(),e=e.slice(0,a).trim()+e.slice(h+1)}return{defs:i,content:e}}function wqn(e,r){return e?""+e+""+r:r}function Hwr(e,r,i){let a=Eqn(e);return wqn(a.defs,r+a.content+i)}var qwr=()=>{};function Fet(e,r){let i={...Met,...e},a={...Gwr,...r},o={left:i.left,top:i.top,width:i.width,height:i.height},l=i.body;[i,a].forEach((k)=>{let A=[],{hFlip:R,vFlip:N,rotate:L}=k;if(R)if(N)L+=2;else A.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),A.push("scale(-1 1)"),o.top=o.left=0;else if(N)A.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),A.push("scale(1 -1)"),o.top=o.left=0;let B;if(L<0)L-=Math.floor(L/4)*4;switch(L=L%4,L){case 1:B=o.height/2+o.top,A.unshift("rotate(90 "+B.toString()+" "+B.toString()+")");break;case 2:A.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:B=o.width/2+o.left,A.unshift("rotate(-90 "+B.toString()+" "+B.toString()+")")}if(L%2===1){if(o.left!==o.top)B=o.left,o.left=o.top,o.top=B;if(o.width!==o.height)B=o.width,o.width=o.height,o.height=B}if(A.length)l=Hwr(l,'',"")});let{width:h,height:d}=a,{width:p,height:m}=o,y,v;if(h===null)v=d===null?"1em":d==="auto"?m:d,y=Bet(v,p/m);else y=h==="auto"?p:h,v=d===null?Bet(y,m/p):d==="auto"?m:d;let w={},T=(k,A)=>{if(!Sqn(A))w[k]=A.toString()};T("width",y),T("height",v);let x=[o.left,o.top,p,m];return w.viewBox=x.join(" "),{attributes:w,viewBox:x,body:l}}var Sqn=(e)=>e==="unset"||e==="undefined"||e==="none";var Ywr=Re(()=>{dEe();zwr();Vwr();qwr()});function xqn(e){e=e.replace(/[0-9]+$/,"")||"a";let r=Wwr.get(e)||0;return Wwr.set(e,r+1),r?`${e}${r}`:e}function $et(e){let r=[],i;while(i=Tqn.exec(e))r.push(i[1]);if(!r.length)return e;let a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach((o)=>{let l=xqn(o),h=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+h+')([")]|\\.[a-z])',"g"),"$1"+l+a+"$3")}),e=e.replace(new RegExp(a,"g"),""),e}var Tqn,Wwr;var jwr=Re(()=>{Tqn=/\sid="(\S+)"/g,Wwr=new Map});function Uet(e,r){let i=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let a in r)i+=" "+a+'="'+r[a]+'"';return'"+e+""}var Kwr=()=>{};var Xwr=Re(()=>{Nwr();Uwr();Ywr();jwr();Kwr()});var zet,Get,Qwr,xH,Zwr,fEe,Y_;var Pp=Re(()=>{eo();Zs();Ja();Xwr();zet={body:'?',height:80,width:80},Get=new Map,Qwr=new Map,xH=I((e)=>{for(let r of e){if(!r.name)throw Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(Ze.debug("Registering icon pack:",r.name),"loader"in r)Qwr.set(r.name,r.loader);else if("icons"in r)Get.set(r.name,r.icons);else throw Ze.error("Invalid icon loader:",r),Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Zwr=I(async(e,r)=>{let i=Let(e,!0,r!==void 0);if(!i)throw Error(`Invalid icon name: ${e}`);let a=i.prefix||r;if(!a)throw Error(`Icon name must contain a prefix: ${e}`);let o=Get.get(a);if(!o){let h=Qwr.get(a);if(!h)throw Error(`Icon set not found: ${i.prefix}`);try{o={...await h(),prefix:a},Get.set(a,o)}catch(d){throw Ze.error(d),Error(`Failed to load icon set: ${i.prefix}`)}}let l=Pet(o,i.name);if(!l)throw Error(`Icon not found: ${e}`);return l},"getRegisteredIconData"),fEe=I(async(e)=>{try{return await Zwr(e),!0}catch{return!1}},"isIconAvailable"),Y_=I(async(e,r,i)=>{let a;try{a=await Zwr(e,r?.fallbackPrefix)}catch(h){Ze.error(h),a=zet}let o=Fet(a,r),l=Uet($et(o.body),{...o.attributes,...i});return ho(l,ea())},"getIconSVG")});var tSr=Cr(function(Jwr){Object.defineProperty(Jwr,"__esModule",{value:!0});Jwr.BLANK_URL=Jwr.relativeFirstCharacters=Jwr.whitespaceEscapeCharsRegex=Jwr.urlSchemeRegex=Jwr.ctrlCharactersRegex=Jwr.htmlCtrlEntityRegex=Jwr.htmlEntitiesRegex=Jwr.invalidProtocolRegex=void 0;Jwr.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Jwr.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;Jwr.htmlCtrlEntityRegex=/&(newline|tab);/gi;Jwr.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Jwr.urlSchemeRegex=/^.+(:|:)/gim;Jwr.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Jwr.relativeFirstCharacters=[".","/"];Jwr.BLANK_URL="about:blank"});var Ane=Cr(function(nSr){Object.defineProperty(nSr,"__esModule",{value:!0});nSr.sanitizeUrl=Pqn;var Jb=tSr();function Lqn(e){return Jb.relativeFirstCharacters.indexOf(e[0])>-1}function Mqn(e){var r=e.replace(Jb.ctrlCharactersRegex,"");return r.replace(Jb.htmlEntitiesRegex,function(i,a){return String.fromCharCode(a)})}function Dqn(e){return URL.canParse(e)}function rSr(e){try{return decodeURIComponent(e)}catch(r){return e}}function Pqn(e){if(!e)return Jb.BLANK_URL;var r,i=rSr(e.trim());do i=Mqn(i).replace(Jb.htmlCtrlEntityRegex,"").replace(Jb.ctrlCharactersRegex,"").replace(Jb.whitespaceEscapeCharsRegex,"").trim(),i=rSr(i),r=i.match(Jb.ctrlCharactersRegex)||i.match(Jb.htmlEntitiesRegex)||i.match(Jb.htmlCtrlEntityRegex)||i.match(Jb.whitespaceEscapeCharsRegex);while(r&&r.length>0);var a=i;if(!a)return Jb.BLANK_URL;if(Lqn(a))return a;var o=a.trimStart(),l=o.match(Jb.urlSchemeRegex);if(!l)return a;var h=l[0].toLowerCase().trim();if(Jb.invalidProtocolRegex.test(h))return Jb.BLANK_URL;var d=o.replace(/\\/g,"/");if(h==="mailto:"||h.includes("://"))return d;if(h==="http:"||h==="https:"){if(!Dqn(d))return Jb.BLANK_URL;var p=new URL(d);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return d}});function YP(e,r){if(typeof e!=="function"||r!=null&&typeof r!=="function")throw TypeError("Expected a function");let i=function(...a){let o=r?r.apply(this,a):a[0],l=i.cache;if(l.has(o))return l.get(o);let h=e.apply(this,a);return i.cache=l.set(o,h)||l,h};return i.cache=new(YP.Cache||Map),i}var iSr=Re(()=>{YP.Cache=Map});function wL(e){return e==null||typeof e!=="object"&&typeof e!=="function"}var Rne=()=>{};function zR(e){if(e==null)return e===void 0?"[object Undefined]":"[object Null]";return Object.prototype.toString.call(e)}var Ine=()=>{};var pEe="[object RegExp]",CH="[object String]",kH="[object Number]",AH="[object Boolean]",RH="[object Arguments]",gEe="[object Symbol]",mEe="[object Date]",bEe="[object Map]",yEe="[object Set]",vEe="[object Array]",_Ee="[object ArrayBuffer]",EEe="[object Object]",wEe="[object DataView]",SEe="[object Uint8Array]",TEe="[object Uint8ClampedArray]",xEe="[object Uint16Array]",CEe="[object Uint32Array]",kEe="[object Int8Array]",AEe="[object Int16Array]",REe="[object Int32Array]",IEe="[object Float32Array]",OEe="[object Float64Array]";var NEe=()=>{};function aSr(e){return Array.isArray(e)}var sSr=()=>{};function IH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var LEe=()=>{};function SL(e){return IH(e)}var MEe=Re(()=>{LEe()});function Het(e){if(wL(e))return e;let r=zR(e);if(!Fqn(e))return{};if(aSr(e)){let a=Array.from(e);if(e.length>0&&typeof e[0]==="string"&&Object.hasOwn(e,"index"))a.index=e.index,a.input=e.input;return a}if(SL(e)){let a=e;return new a.constructor(a.buffer,a.byteOffset,a.length)}if(r==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(r==="[object DataView]"){let a=e,{buffer:o,byteOffset:l,byteLength:h}=a,d=new ArrayBuffer(h),p=new Uint8Array(o,l,h);return new Uint8Array(d).set(p),new DataView(d)}if(r==="[object Boolean]"||r==="[object Number]"||r==="[object String]"){let o=new e.constructor(e.valueOf());if(r==="[object String]")Uqn(o,e);else Vet(o,e);return o}if(r==="[object Date]")return new Date(Number(e));if(r==="[object RegExp]"){let a=e,o=new RegExp(a.source,a.flags);return o.lastIndex=a.lastIndex,o}if(r==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(r==="[object Map]"){let a=e,o=new Map;return a.forEach((l,h)=>{o.set(h,l)}),o}if(r==="[object Set]"){let a=e,o=new Set;return a.forEach((l)=>{o.add(l)}),o}if(r==="[object Arguments]"){let a=e,o={};return Vet(o,a),o.length=a.length,o[Symbol.iterator]=a[Symbol.iterator],o}let i={};return Gqn(i,e),Vet(i,e),$qn(i,e),i}function Fqn(e){switch(zR(e)){case RH:case vEe:case _Ee:case wEe:case AH:case mEe:case IEe:case OEe:case kEe:case AEe:case REe:case bEe:case kH:case EEe:case pEe:case yEe:case CH:case gEe:case SEe:case TEe:case xEe:case CEe:return!0;default:return!1}}function Vet(e,r){for(let i in r)if(Object.hasOwn(r,i))e[i]=r[i]}function $qn(e,r){let i=Object.getOwnPropertySymbols(r);for(let a=0;a=i))e[a]=r[a]}function Gqn(e,r){let i=Object.getPrototypeOf(r);if(i!==null){if(typeof r.constructor==="function")Object.setPrototypeOf(e,i)}}var oSr=Re(()=>{Rne();Ine();NEe();sSr();MEe()});function lSr(){}var cSr=()=>{};function uSr(e){if(wL(e))return e;if(Array.isArray(e)||IH(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);let r=Object.getPrototypeOf(e);if(r==null)return Object.assign(Object.create(r),e);let i=r.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new i(e);if(e instanceof RegExp){let a=new i(e);return a.lastIndex=e.lastIndex,a}if(e instanceof DataView)return new i(e.buffer.slice(0));if(e instanceof Error){let a;if(e instanceof AggregateError)a=new i(e.errors,e.message,{cause:e.cause});else a=new i(e.message,{cause:e.cause});return a.stack=e.stack,Object.assign(a,e),a}if(typeof File<"u"&&e instanceof File)return new i([e],e.name,{type:e.type,lastModified:e.lastModified});if(typeof e==="object")return Object.assign(Object.create(r),e);return e}var hSr=Re(()=>{Rne();LEe()});function DEe(e){return Object.getOwnPropertySymbols(e).filter((r)=>Object.prototype.propertyIsEnumerable.call(e,r))}var qet=()=>{};var Yet;var dSr=Re(()=>{Yet=typeof globalThis==="object"&&globalThis||typeof window==="object"&&window||typeof self==="object"&&self||typeof global==="object"&&global||function(){return this}()});function OH(e){return typeof Yet.Buffer<"u"&&Yet.Buffer.isBuffer(e)}var PEe=Re(()=>{dSr()});function fSr(e){return e==="__proto__"}var pSr=()=>{};function BEe(e){if(typeof e!=="object")return!1;if(e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let i=e[Symbol.toStringTag];if(i==null)return!1;if(!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable)return!1;return e.toString()===`[object ${i}]`}let r=e;while(Object.getPrototypeOf(r)!==null)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}var gSr=()=>{};function mSr(e,r){return NH(e,void 0,e,new Map,r)}function NH(e,r,i,a=new Map,o=void 0){let l=o?.(e,r,i,a);if(l!==void 0)return l;if(wL(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){let h=Array(e.length);a.set(e,h);for(let d=0;d{Rne();LEe();qet();Ine();NEe();PEe()});function ySr(e,r){return mSr(e,(i,a,o,l)=>{let h=r?.(i,a,o,l);if(h!==void 0)return h;if(typeof e!=="object")return;if(zR(e)==="[object Object]"&&typeof e.constructor!=="function"){let d={};return l.set(e,d),jS(d,e,o,l),d}switch(Object.prototype.toString.call(e)){case kH:case CH:case AH:{let d=new e.constructor(e?.valueOf());return jS(d,e),d}case RH:{let d={};return jS(d,e),d.length=e.length,d[Symbol.iterator]=e[Symbol.iterator],d}default:return}})}var vSr=Re(()=>{Ine();NEe();bSr()});function Wet(e){return ySr(e)}var _Sr=Re(()=>{vSr()});function One(e){return e!==null&&typeof e==="object"&&zR(e)==="[object Arguments]"}var jet=Re(()=>{Ine()});function Nne(e){return typeof e==="object"&&e!==null}var Ket=()=>{};function ESr(e){return Number.isSafeInteger(e)&&e>=0}var wSr=()=>{};function FEe(e){return e!=null&&typeof e!=="function"&&ESr(e.length)}var Xet=Re(()=>{wSr()});function SSr(e){return Nne(e)&&FEe(e)}var TSr=Re(()=>{Xet();Ket()});function xSr(e,...r){let i=r.slice(0,-1),a=r[r.length-1],o=e;for(let l=0;l{Rne();hSr();qet();PEe();pSr();gSr();_Sr();jet();Ket();TSr();MEe()});function Qet(e,...r){return xSr(e,...r,lSr)}var kSr=Re(()=>{cSr();CSr()});function ASr(e){let r=e?.constructor;return e===(typeof r==="function"?r.prototype:Object.prototype)}var RSr=()=>{};function UEe(e){if(e==null)return!0;if(FEe(e)){if(typeof e.splice!=="function"&&typeof e!=="string"&&!OH(e)&&!SL(e)&&!One(e))return!1;return e.length===0}if(typeof e==="object"||typeof e==="function"){if(e instanceof Map||e instanceof Set)return e.size===0;let r=Object.keys(e);if(ASr(e))return r.filter((i)=>i!=="constructor").length===0;return r.length===0}return!0}var ISr=Re(()=>{PEe();Xet();jet();RSr();MEe()});var GEe=Re(()=>{iSr();oSr();kSr();ISr()});function VEe(e,r){if(!e)return r;let i=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Vqn[i]??r}function PSr(e,r){let i=e.trim();if(!i)return;if(r.securityLevel!=="loose")return LSr.sanitizeUrl(i);return i}function Jet(e,r){if(!e||!r)return 0;return Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2))}function BSr(e){let r,i=0;e.forEach((o)=>{i+=Jet(o,r),r=o});let a=i/2;return ett(e,a)}function FSr(e){if(e.length===1)return e[0];return BSr(e)}function $Sr(e,r,i){let a=structuredClone(i);if(Ze.info("our points",a),r!=="start_left"&&r!=="start_right")a.reverse();let o=25+e,l=ett(a,o),h=10+e*0.5,d=Math.atan2(a[0].y-l.y,a[0].x-l.x),p={x:0,y:0};if(r==="start_left")p.x=Math.sin(d+Math.PI)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d+Math.PI)*h+(a[0].y+l.y)/2;else if(r==="end_right")p.x=Math.sin(d-Math.PI)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d-Math.PI)*h+(a[0].y+l.y)/2;else if(r==="end_left")p.x=Math.sin(d)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d)*h+(a[0].y+l.y)/2;else p.x=Math.sin(d)*h+(a[0].x+l.x)/2,p.y=-Math.cos(d)*h+(a[0].y+l.y)/2;return p}function HEe(e){let r="",i="";for(let a of e)if(a!==void 0)if(a.startsWith("color:")||a.startsWith("text-align:"))i=i+a+";";else r=r+a+";";return{style:r,labelStyle:i}}function USr(e){let r="",i="0123456789abcdef",a=i.length;for(let o=0;oMath.round(parseFloat(l)).toString());return o.includes(i.toString())||o.includes(a.toString())}var LSr,Zet="​",Vqn,Hqn,qqn,MSr,DSr,Yqn,Wqn,OSr,ett,jqn,NSr=0,ttt,rtt,Kqn,Xqn,WP,Qqn,Mne,Zqn,zEe,Jqn,eYn,W_,Ts,GSr,EC,j_;var Ql=Re(()=>{eo();Zs();Ja();dl();GEe();LSr=sv(Ane(),1),Vqn={curveBasis:qP,curveBasisClosed:J2e,curveBasisOpen:eEe,curveBumpX:gne,curveBumpY:mne,curveBundle:DJe,curveCardinalClosed:PJe,curveCardinalOpen:FJe,curveCardinal:vne,curveCatmullRomClosed:UJe,curveCatmullRomOpen:GJe,curveCatmullRom:wne,curveLinear:WS,curveLinearClosed:aEe,curveMonotoneX:Sne,curveMonotoneY:Tne,curveNatural:_H,curveStep:EH,curveStepAfter:Cne,curveStepBefore:xne},Hqn=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,qqn=I(function(e,r){let i=MSr(e,/(?:init\b)|(?:initialize\b)/),a={};if(Array.isArray(i)){let h=i.map((d)=>d.args);Lre(h),a=Sd(a,[...h])}else a=i.args;if(!a)return;let o=qV(e,r),l="config";if(a[l]!==void 0){if(o==="flowchart-v2")o="flowchart";a[o]=a[l],delete a[l]}return a},"detectInit"),MSr=I(function(e,r=null){try{let i=new RegExp(`[%]{2}(?![{]${Hqn.source})(?=[}][%]{2}).* +`,"ig");e=e.trim().replace(i,"").replace(/'/gm,'"'),Ze.debug(`Detecting diagram directive${r!==null?" type:"+r:""} based on the text:${e}`);let a,o=[];while((a=HV.exec(e))!==null){if(a.index===HV.lastIndex)HV.lastIndex++;if(a&&!r||r&&a[1]?.match(r)||r&&a[2]?.match(r)){let l=a[1]?a[1]:a[2],h=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;o.push({type:l,args:h})}}if(o.length===0)return{type:e,args:null};return o.length===1?o[0]:o}catch(i){return Ze.error(`ERROR: ${i.message} - Unable to parse directive type: '${r}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),DSr=I(function(e){return e.replace(HV,"")},"removeDirectives"),Yqn=I(function(e,r){for(let[i,a]of r.entries())if(a.match(e))return i;return-1},"isSubstringInArray");I(VEe,"interpolateToCurve");I(PSr,"formatUrl");Wqn=I((e,...r)=>{let i=e.split("."),a=i.length-1,o=i[a],l=window;for(let h=0;h{let i=Math.pow(10,r);return Math.round(e*i)/i},"roundNumber"),ett=I((e,r)=>{let i=void 0,a=r;for(let o of e){if(i){let l=Jet(o,i);if(l===0)return i;if(l=1)return{x:o.x,y:o.y};if(h>0&&h<1)return{x:OSr((1-h)*i.x+h*o.x,5),y:OSr((1-h)*i.y+h*o.y,5)}}}i=o}throw Error("Could not find a suitable point for the given distance")},"calculatePoint"),jqn=I((e,r,i)=>{if(Ze.info(`our points ${JSON.stringify(r)}`),r[0]!==i)r=r.reverse();let o=ett(r,25),l=e?10:5,h=Math.atan2(r[0].y-o.y,r[0].x-o.x),d={x:0,y:0};return d.x=Math.sin(h)*l+(r[0].x+o.x)/2,d.y=-Math.cos(h)*l+(r[0].y+o.y)/2,d},"calcCardinalityPosition");I($Sr,"calcTerminalLabelPosition");I(HEe,"getStylesFromArray");ttt=I(()=>(NSr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+NSr),"generateId");I(USr,"makeRandomHex");rtt=I((e)=>USr(e.length),"random"),Kqn=I(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Xqn=I(function(e,r){let i=r.text.replace(ai.lineBreakRegex," "),[,a]=W_(r.fontSize),o=e.append("text");if(o.attr("x",r.x),o.attr("y",r.y),o.style("text-anchor",r.anchor),o.style("font-family",r.fontFamily),o.style("font-size",a),o.style("font-weight",r.fontWeight),o.attr("fill",r.fill),r.class!==void 0)o.attr("class",r.class);let l=o.append("tspan");return l.attr("x",r.x+r.textMargin*2),l.attr("fill",r.fill),l.text(i),o},"drawSimpleText"),WP=YP((e,r,i)=>{if(!e)return e;if(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},i),ai.hasBreaks(e))return e;let a=e.split(" ").filter(Boolean),o=[],l="";return a.forEach((h,d)=>{let p=ey(`${h} `,i),m=ey(l,i);if(p>r){let{hyphenatedStrings:w,remainingWord:T}=Qqn(h,r,"-",i);o.push(l,...w),l=T}else if(m+p>=r)o.push(l),l=h;else l=[l,h].filter(Boolean).join(" ");if(d+1===a.length)o.push(l)}),o.filter((h)=>h!=="").join(i.joinWith)},(e,r,i)=>`${e}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Qqn=YP((e,r,i="-",a)=>{a=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},a);let o=[...e],l=[],h="";return o.forEach((d,p)=>{let m=`${h}${d}`;if(ey(m,a)>=r){let v=p+1,w=o.length===v,T=`${m}${i}`;l.push(w?m:T),h=""}else h=m}),{hyphenatedStrings:l,remainingWord:h}},(e,r,i="-",a)=>`${e}${r}${i}${a.fontSize}${a.fontWeight}${a.fontFamily}`);I(Lne,"calculateTextHeight");I(ey,"calculateTextWidth");Mne=YP((e,r)=>{let{fontSize:i=12,fontFamily:a="Arial",fontWeight:o=400}=r;if(!e)return{width:0,height:0};let[,l]=W_(i),h=["sans-serif",a],d=e.split(ai.lineBreakRegex),p=[],m=xn("body");if(!m.remove)return{width:0,height:0,lineHeight:0};let y=m.append("svg");for(let w of h){let T=0,x={width:0,height:0,lineHeight:0};for(let k of d){let A=Kqn();A.text=k||Zet;let R=Xqn(y,A).style("font-size",l).style("font-weight",o).style("font-family",w),N=(R._groups||R)[0][0].getBBox();if(N.width===0&&N.height===0)throw Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,N.width)),T=Math.round(N.height),x.height+=T,x.lineHeight=Math.round(Math.max(x.lineHeight,T))}p.push(x)}y.remove();let v=isNaN(p[1].height)||isNaN(p[1].width)||isNaN(p[1].lineHeight)||p[0].height>p[1].height&&p[0].width>p[1].width&&p[0].lineHeight>p[1].lineHeight?0:1;return p[v]},(e,r)=>`${e}${r.fontSize}${r.fontWeight}${r.fontFamily}`),Zqn=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{I(this,"InitIDGenerator")}},Jqn=I(function(e){return zEe=zEe||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),zEe.innerHTML=e,unescape(zEe.textContent)},"entityDecode");I(qEe,"isDetailedError");I(ntt,"getErrorMessage");eYn=I((e,r,i,a)=>{if(!a)return;let o=e.node()?.getBBox();if(!o)return;e.append("text").text(a).attr("text-anchor","middle").attr("x",o.x+o.width/2).attr("y",-i).attr("class",r)},"insertTitle"),W_=I((e)=>{if(typeof e==="number")return[e,e+"px"];let r=parseInt(e??"",10);if(Number.isNaN(r))return[void 0,void 0];else if(e===String(r))return[r,e+"px"];else return[r,e]},"parseFontSize");I(bc,"cleanAndMerge");Ts={assignWithDepth:Sd,wrapLabel:WP,calculateTextHeight:Lne,calculateTextWidth:ey,calculateTextDimensions:Mne,cleanAndMerge:bc,detectInit:qqn,detectDirective:MSr,isSubstringInArray:Yqn,interpolateToCurve:VEe,calcLabelPosition:FSr,calcCardinalityPosition:jqn,calcTerminalLabelPosition:$Sr,formatUrl:PSr,getStylesFromArray:HEe,generateId:ttt,random:rtt,runFunc:Wqn,entityDecode:Jqn,insertTitle:eYn,isLabelCoordinateInPath:zSr,parseFontSize:W_,InitIDGenerator:Zqn},GSr=I(function(e){let r=e;return r=r.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),r=r.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),r=r.replace(/#\w+;/g,function(i){let a=i.substring(1,i.length-1);if(/^\+?\d+$/.test(a))return"fl°°"+a+"¶ß";else return"fl°"+a+"¶ß"}),r},"encodeEntities"),EC=I(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),j_=I((e,r,{counter:i=0,prefix:a,suffix:o},l)=>{if(l)return l;return`${a?`${a}_`:""}${e}_${r}_${i}${o?`_${o}`:""}`},"getEdgeId");I(np,"handleUndefinedAttr");I(zSr,"isLabelCoordinateInPath")});function att(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function KSr(e){KP=e}function Nu(e,r=""){let i=typeof e=="string"?e:e.source,a={replace:(o,l)=>{let h=typeof l=="string"?l:l.source;return h=h.replace(gv.caret,"$1"),i=i.replace(o,h),a},getRegex:()=>new RegExp(i,r)};return a}function f3(e,r){if(r){if(gv.escapeTest.test(e))return e.replace(gv.escapeReplace,qSr)}else if(gv.escapeTestNoEncode.test(e))return e.replace(gv.escapeReplaceNoEncode,qSr);return e}function YSr(e){try{e=encodeURI(e).replace(gv.percentDecode,"%")}catch{return null}return e}function WSr(e,r){let i=e.replace(gv.findPipe,(l,h,d)=>{let p=!1,m=h;for(;--m>=0&&d[m]==="\\";)p=!p;return p?"|":" |"}),a=i.split(gv.splitPipe),o=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),r)if(a.length>r)a.splice(r);else for(;a.length0?-2:-1}function jSr(e,r,i,a,o){let l=r.href,h=r.title||null,d=e[1].replace(o.other.outputLinkReplace,"$1");a.state.inLink=!0;let p={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:h,text:d,tokens:a.inlineTokens(d)};return a.state.inLink=!1,p}function PYn(e,r,i){let a=e.match(i.other.indentCodeCompensation);if(a===null)return r;let o=a[1];return r.split(` `).map((l)=>{let h=l.match(i.other.beginningSpace);if(h===null)return l;let[d]=h;return d.length>=o.length?l.slice(o.length):l}).join(` -`)}function Ku(e,r){return YP.parse(e,r)}var WP,Dne,Kqn,gv,Xqn,Qqn,Zqn,Pne,Jqn,ntt,qSr,YSr,eYn,itt,tYn,att,rYn,nYn,WEe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",stt,iYn,WSr,aYn,ott,FSr,sYn,oYn,lYn,cYn,jSr,uYn,jEe,ltt,KSr,hYn,XSr,dYn,fYn,pYn,QSr,gYn,mYn,ZSr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",bYn,yYn,vYn,_Yn,EYn,wYn,SYn,HEe,TYn,JSr,eTr,xYn,$Sr,ctt,CYn,ttt,kYn,VEe,Nne,AYn,USr=(e)=>AYn[e],qEe=class{options;rules;lexer;constructor(e){this.options=e||WP}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Lne(i,` -`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let i=r[0],a=IYn(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=Lne(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:Lne(r[0],` -`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let i=Lne(r[0],` +`)}function Ku(e,r){return jP.parse(e,r)}var KP,Fne,tYn,gv,rYn,nYn,iYn,$ne,aYn,stt,XSr,QSr,sYn,ott,oYn,ltt,lYn,cYn,XEe="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ctt,uYn,ZSr,hYn,utt,VSr,dYn,fYn,pYn,gYn,JSr,mYn,QEe,htt,eTr,bYn,tTr,yYn,vYn,_Yn,rTr,EYn,wYn,nTr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",SYn,TYn,xYn,CYn,kYn,AYn,RYn,WEe,IYn,iTr,aTr,OYn,HSr,dtt,NYn,itt,LYn,YEe,Dne,MYn,qSr=(e)=>MYn[e],jEe=class{options;rules;lexer;constructor(e){this.options=e||KP}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Pne(i,` +`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let i=r[0],a=PYn(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=Pne(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceChar.test(a))&&(i=a.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:Pne(r[0],` +`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let i=Pne(r[0],` `).split(` `),a="",o="",l=[];for(;i.length>0;){let h=!1,d=[],p;for(p=0;p1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),h=!1;for(;e;){let p=!1,m="",y="";if(!(r=l.exec(e))||this.rules.block.hr.test(e))break;m=r[0],e=e.substring(m.length);let E=r[2].split(` +`);continue}}return{type:"blockquote",raw:a,tokens:l,text:o}}}list(e){let r=this.rules.block.list.exec(e);if(r){let i=r[1].trim(),a=i.length>1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),h=!1;for(;e;){let p=!1,m="",y="";if(!(r=l.exec(e))||this.rules.block.hr.test(e))break;m=r[0],e=e.substring(m.length);let v=r[2].split(` `,1)[0].replace(this.rules.other.listReplaceTabs,(R)=>" ".repeat(3*R.length)),w=e.split(` -`,1)[0],T=!E.trim(),x=0;if(this.options.pedantic?(x=2,y=E.trimStart()):T?x=r[1].length+1:(x=r[2].search(this.rules.other.nonSpaceChar),x=x>4?1:x,y=E.slice(x),x+=r[1].length),T&&this.rules.other.blankLine.test(w)&&(m+=w+` +`,1)[0],T=!v.trim(),x=0;if(this.options.pedantic?(x=2,y=v.trimStart()):T?x=r[1].length+1:(x=r[2].search(this.rules.other.nonSpaceChar),x=x>4?1:x,y=v.slice(x),x+=r[1].length),T&&this.rules.other.blankLine.test(w)&&(m+=w+` `,e=e.substring(w.length+1),p=!0),!p){let R=this.rules.other.nextBulletRegex(x),N=this.rules.other.hrRegex(x),L=this.rules.other.fencesBeginRegex(x),B=this.rules.other.headingBeginRegex(x),D=this.rules.other.htmlBeginRegex(x);for(;e;){let P=e.split(` `,1)[0],F;if(w=P,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),F=w):F=w.replace(this.rules.other.tabCharGlobal," "),L.test(w)||B.test(w)||D.test(w)||R.test(w)||N.test(w))break;if(F.search(this.rules.other.nonSpaceChar)>=x||!w.trim())y+=` -`+F.slice(x);else{if(T||E.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(E)||B.test(E)||N.test(E))break;y+=` +`+F.slice(x);else{if(T||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(v)||B.test(v)||N.test(v))break;y+=` `+w}!T&&!w.trim()&&(T=!0),m+=P+` -`,e=e.substring(P.length+1),E=F.slice(x)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(h=!0));let k=null,A;this.options.gfm&&(k=this.rules.other.listIsTask.exec(y),k&&(A=k[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:m,task:!!k,checked:A,loose:!1,text:y,tokens:[]}),o.raw+=m}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p=0;pE.type==="space"),y=m.length>0&&m.some((E)=>this.rules.other.anyLine.test(E.raw));o.loose=y}if(o.loose)for(let p=0;p({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[p]})));return l}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let i=r[1].charAt(r[1].length-1)===` -`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=Lne(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=RYn(r[2],"()");if(l===-2)return;if(l>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let a=r[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],o=l[3])}else o=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),VSr(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[a.toLowerCase()];if(!o){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return VSr(i,o,i[0],this.lexer,this.rules)}}emStrong(e,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i)){let o=[...a[0]].length-1,l,h,d=o,p=0,m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*e.length+o);(a=m.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(h=[...l].length,a[3]||a[4]){d+=h;continue}else if((a[5]||a[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(d-=h,d>0)continue;h=Math.min(h,h+d+p);let y=[...a[0]][0].length,E=e.slice(0,o+a.index+y+h);if(Math.min(o,h)%2){let T=E.slice(1,-1);return{type:"em",raw:E,text:T,tokens:this.lexer.inlineTokens(T)}}let w=E.slice(2,-2);return{type:"strong",raw:E,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},_C=class e{tokens;options;state;tokenizer;inlineQueue;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||WP,this.options.tokenizer=this.options.tokenizer||new qEe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:gv,block:VEe.normal,inline:Nne.normal};this.options.pedantic?(i.block=VEe.pedantic,i.inline=Nne.pedantic):this.options.gfm&&(i.block=VEe.gfm,this.options.breaks?i.inline=Nne.breaks:i.inline=Nne.gfm),this.tokenizer.rules=i}static get rules(){return{block:VEe,inline:Nne}}static lex(r,i){return new e(i).lex(r)}static lexInline(r,i){return new e(i).inlineTokens(r)}lex(r){r=r.replace(gv.carriageReturn,` +`,e=e.substring(P.length+1),v=F.slice(x)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(h=!0));let k=null,A;this.options.gfm&&(k=this.rules.other.listIsTask.exec(y),k&&(A=k[0]!=="[ ] ",y=y.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:m,task:!!k,checked:A,loose:!1,text:y,tokens:[]}),o.raw+=m}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p=0;pv.type==="space"),y=m.length>0&&m.some((v)=>this.rules.other.anyLine.test(v.raw));o.loose=y}if(o.loose)for(let p=0;p({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[p]})));return l}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let i=r[1].charAt(r[1].length-1)===` +`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let l=Pne(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=DYn(r[2],"()");if(l===-2)return;if(l>-1){let h=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,h).trim(),r[3]=""}}let a=r[2],o="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(a);l&&(a=l[1],o=l[3])}else o=r[3]?r[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?a=a.slice(1):a=a.slice(1,-1)),jSr(r,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let a=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[a.toLowerCase()];if(!o){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return jSr(i,o,i[0],this.lexer,this.rules)}}emStrong(e,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[2])||!i||this.rules.inline.punctuation.exec(i)){let o=[...a[0]].length-1,l,h,d=o,p=0,m=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*e.length+o);(a=m.exec(r))!=null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(h=[...l].length,a[3]||a[4]){d+=h;continue}else if((a[5]||a[6])&&o%3&&!((o+h)%3)){p+=h;continue}if(d-=h,d>0)continue;h=Math.min(h,h+d+p);let y=[...a[0]][0].length,v=e.slice(0,o+a.index+y+h);if(Math.min(o,h)%2){let T=v.slice(1,-1);return{type:"em",raw:v,text:T,tokens:this.lexer.inlineTokens(T)}}let w=v.slice(2,-2);return{type:"strong",raw:v,text:w,tokens:this.lexer.inlineTokens(w)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},wC=class e{tokens;options;state;tokenizer;inlineQueue;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||KP,this.options.tokenizer=this.options.tokenizer||new jEe,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:gv,block:YEe.normal,inline:Dne.normal};this.options.pedantic?(i.block=YEe.pedantic,i.inline=Dne.pedantic):this.options.gfm&&(i.block=YEe.gfm,this.options.breaks?i.inline=Dne.breaks:i.inline=Dne.gfm),this.tokenizer.rules=i}static get rules(){return{block:YEe,inline:Dne}}static lex(r,i){return new e(i).lex(r)}static lexInline(r,i){return new e(i).inlineTokens(r)}lex(r){r=r.replace(gv.carriageReturn,` `),this.blockTokens(r,this.tokens);for(let i=0;i(o=h.call({lexer:this},r,i))?(r=r.substring(o.raw.length),i.push(o),!0):!1))continue;if(o=this.tokenizer.space(r)){r=r.substring(o.raw.length);let h=i.at(-1);o.raw.length===1&&h!==void 0?h.raw+=` `:i.push(o);continue}if(o=this.tokenizer.code(r)){r=r.substring(o.raw.length);let h=i.at(-1);h?.type==="paragraph"||h?.type==="text"?(h.raw+=(h.raw.endsWith(` `)?"":` @@ -463,16 +463,16 @@ ${y}`:y;let E=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(o),a=l.length!==r.length,r=r.substring(o.raw.length);continue}if(o=this.tokenizer.text(r)){r=r.substring(o.raw.length);let h=i.at(-1);h?.type==="text"?(h.raw+=(h.raw.endsWith(` `)?"":` `)+o.raw,h.text+=` -`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(o);continue}if(r){let h="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw Error(h)}}return this.state.top=!0,i}inline(r,i=[]){return this.inlineQueue.push({src:r,tokens:i}),i}inlineTokens(r,i=[]){let a=r,o=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)l=o[2]?o[2].length:0,a=a.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let h=!1,d="";for(;r;){h||(d=""),h=!1;let p;if(this.options.extensions?.inline?.some((y)=>(p=y.call({lexer:this},r,i))?(r=r.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(p.raw.length);let y=i.at(-1);p.type==="text"&&y?.type==="text"?(y.raw+=p.raw,y.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(r,a,d)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(r)){r=r.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(r))){r=r.substring(p.raw.length),i.push(p);continue}let m=r;if(this.options.extensions?.startInline){let y=1/0,E=r.slice(1),w;this.options.extensions.startInline.forEach((T)=>{w=T.call({lexer:this},E),typeof w=="number"&&w>=0&&(y=Math.min(y,w))}),y<1/0&&y>=0&&(m=r.substring(0,y+1))}if(p=this.tokenizer.inlineText(m)){r=r.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(d=p.raw.slice(-1)),h=!0;let y=i.at(-1);y?.type==="text"?(y.raw+=p.raw,y.text+=p.text):i.push(p);continue}if(r){let y="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw Error(y)}}return i}},YEe=class{options;parser;constructor(e){this.options=e||WP}space(e){return""}code({text:e,lang:r,escaped:i}){let a=(r||"").match(gv.notSpaceStart)?.[0],o=e.replace(gv.endingNewline,"")+` -`;return a?'
'+(i?o:d3(o,!0))+`
-`:"
"+(i?o:d3(o,!0))+`
+`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):i.push(o);continue}if(r){let h="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw Error(h)}}return this.state.top=!0,i}inline(r,i=[]){return this.inlineQueue.push({src:r,tokens:i}),i}inlineTokens(r,i=[]){let a=r,o=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)p.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)l=o[2]?o[2].length:0,a=a.slice(0,o.index+l)+"["+"a".repeat(o[0].length-l-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let h=!1,d="";for(;r;){h||(d=""),h=!1;let p;if(this.options.extensions?.inline?.some((y)=>(p=y.call({lexer:this},r,i))?(r=r.substring(p.raw.length),i.push(p),!0):!1))continue;if(p=this.tokenizer.escape(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.tag(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.link(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(p.raw.length);let y=i.at(-1);p.type==="text"&&y?.type==="text"?(y.raw+=p.raw,y.text+=p.text):i.push(p);continue}if(p=this.tokenizer.emStrong(r,a,d)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.codespan(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.br(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.del(r)){r=r.substring(p.raw.length),i.push(p);continue}if(p=this.tokenizer.autolink(r)){r=r.substring(p.raw.length),i.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(r))){r=r.substring(p.raw.length),i.push(p);continue}let m=r;if(this.options.extensions?.startInline){let y=1/0,v=r.slice(1),w;this.options.extensions.startInline.forEach((T)=>{w=T.call({lexer:this},v),typeof w=="number"&&w>=0&&(y=Math.min(y,w))}),y<1/0&&y>=0&&(m=r.substring(0,y+1))}if(p=this.tokenizer.inlineText(m)){r=r.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(d=p.raw.slice(-1)),h=!0;let y=i.at(-1);y?.type==="text"?(y.raw+=p.raw,y.text+=p.text):i.push(p);continue}if(r){let y="Infinite loop on byte: "+r.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw Error(y)}}return i}},KEe=class{options;parser;constructor(e){this.options=e||KP}space(e){return""}code({text:e,lang:r,escaped:i}){let a=(r||"").match(gv.notSpaceStart)?.[0],o=e.replace(gv.endingNewline,"")+` +`;return a?'
'+(i?o:f3(o,!0))+`
+`:"
"+(i?o:f3(o,!0))+`
`}blockquote({tokens:e}){return`
${this.parser.parse(e)}
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:r}){return`${this.parser.parseInline(e)} `}hr(e){return`
`}list(e){let{ordered:r,start:i}=e,a="";for(let h=0;h `+a+" -`}listitem(e){let r="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+d3(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`
  • ${r}
  • +`}listitem(e){let r="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+f3(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`
  • ${r}
  • `}checkbox({checked:e}){return"'}paragraph({tokens:e}){return`

    ${this.parser.parseInline(e)}

    `}table(e){let r="",i="";for(let o=0;o${a}`),` @@ -481,25 +481,25 @@ ${this.parser.parse(e)} `}tablerow({text:e}){return` ${e} `}tablecell(e){let r=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+r+` -`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${d3(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:i}){let a=this.parser.parseInline(i),o=GSr(e);if(o===null)return a;e=o;let l='",l}image({href:e,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let o=GSr(e);if(o===null)return d3(i);e=o;let l=`${i}{let h=o[l].flat(1/0);i=i.concat(this.walkTokens(h,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((i)=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let l=r.renderers[o.name];l?r.renderers[o.name]=function(...h){let d=o.renderer.apply(this,h);return d===!1&&(d=l.apply(this,h)),d}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=r[o.level];l?l.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),a.extensions=r),i.renderer){let o=this.defaults.renderer||new YEe(this.defaults);for(let l in i.renderer){if(!(l in o))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let h=l,d=i.renderer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y||""}}a.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new qEe(this.defaults);for(let l in i.tokenizer){if(!(l in o))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let h=l,d=i.tokenizer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Mne;for(let l in i.hooks){if(!(l in o))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let h=l,d=i.hooks[h],p=o[h];Mne.passThroughHooks.has(l)?o[h]=(m)=>{if(this.defaults.async&&Mne.passThroughHooksRespectAsync.has(l))return(async()=>{let E=await d.call(o,m);return p.call(o,E)})();let y=d.call(o,m);return p.call(o,y)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let E=await d.apply(o,m);return E===!1&&(E=await p.apply(o,m)),E})();let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(h){let d=[];return d.push(l.call(this,h)),o&&(d=d.concat(o.call(this,h))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return _C.lex(e,r??this.defaults)}parser(e,r){return EC.parse(e,r??this.defaults)}parseMarkdown(e){return(r,i)=>{let a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,d=await(o.hooks?await o.hooks.provideLexer():e?_C.lex:_C.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(d):d;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?EC.parse:EC.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer():e?_C.lex:_C.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let d=(o.hooks?o.hooks.provideParser():e?EC.parse:EC.parseInline)(h,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(h){return l(h)}}}onError(e,r){return(i)=>{if(i.message+=` -Please report this to https://github.com/markedjs/marked.`,e){let a="

    An error occurred:

    "+d3(i.message+"",!0)+"
    ";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},YP,ILa,OLa,NLa,LLa,MLa,DLa,PLa;var tTr=Re(()=>{WP=rtt();Dne={exec:()=>null};Kqn=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
    /i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(e)=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Xqn=/^(?:[ \t]*(?:\n|$))+/,Qqn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Zqn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pne=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Jqn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ntt=/(?:[*+-]|\d{1,9}[.)])/,qSr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,YSr=Nu(qSr).replace(/bull/g,ntt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),eYn=Nu(qSr).replace(/bull/g,ntt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),itt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,tYn=/^[^\n]+/,att=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,rYn=Nu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",att).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),nYn=Nu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ntt).getRegex(),stt=/|$))/,iYn=Nu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",stt).replace("tag",WEe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),WSr=Nu(itt).replace("hr",Pne).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",WEe).getRegex(),aYn=Nu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",WSr).getRegex(),ott={blockquote:aYn,code:Qqn,def:rYn,fences:Zqn,heading:Jqn,hr:Pne,html:iYn,lheading:YSr,list:nYn,newline:Xqn,paragraph:WSr,table:Dne,text:tYn},FSr=Nu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pne).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",WEe).getRegex(),sYn={...ott,lheading:eYn,table:FSr,paragraph:Nu(itt).replace("hr",Pne).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",FSr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",WEe).getRegex()},oYn={...ott,html:Nu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",stt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Dne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Nu(itt).replace("hr",Pne).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",YSr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},lYn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,cYn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,jSr=/^( {2,}|\\)\n(?!\s*$)/,uYn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Kqn?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),QSr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,gYn=Nu(QSr,"u").replace(/punct/g,jEe).getRegex(),mYn=Nu(QSr,"u").replace(/punct/g,XSr).getRegex(),bYn=Nu(ZSr,"gu").replace(/notPunctSpace/g,KSr).replace(/punctSpace/g,ltt).replace(/punct/g,jEe).getRegex(),yYn=Nu(ZSr,"gu").replace(/notPunctSpace/g,fYn).replace(/punctSpace/g,dYn).replace(/punct/g,XSr).getRegex(),vYn=Nu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,KSr).replace(/punctSpace/g,ltt).replace(/punct/g,jEe).getRegex(),_Yn=Nu(/\\(punct)/,"gu").replace(/punct/g,jEe).getRegex(),EYn=Nu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),wYn=Nu(stt).replace("(?:-->|$)","-->").getRegex(),SYn=Nu("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",wYn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),HEe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,TYn=Nu(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",HEe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),JSr=Nu(/^!?\[(label)\]\[(ref)\]/).replace("label",HEe).replace("ref",att).getRegex(),eTr=Nu(/^!?\[(ref)\](?:\[\])?/).replace("ref",att).getRegex(),xYn=Nu("reflink|nolink(?!\\()","g").replace("reflink",JSr).replace("nolink",eTr).getRegex(),$Sr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ctt={_backpedal:Dne,anyPunctuation:_Yn,autolink:EYn,blockSkip:pYn,br:jSr,code:cYn,del:Dne,emStrongLDelim:gYn,emStrongRDelimAst:bYn,emStrongRDelimUnd:vYn,escape:lYn,link:TYn,nolink:eTr,punctuation:hYn,reflink:JSr,reflinkSearch:xYn,tag:SYn,text:uYn,url:Dne},CYn={...ctt,link:Nu(/^!?\[(label)\]\((.*?)\)/).replace("label",HEe).getRegex(),reflink:Nu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",HEe).getRegex()},ttt={...ctt,emStrongRDelimAst:yYn,emStrongLDelim:mYn,url:Nu(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",$Sr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Nu(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"};Mne=class{options;block;constructor(e){this.options=e||WP}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?_C.lex:_C.lexInline}provideParser(){return this.block?EC.parse:EC.parseInline}},YP=new OYn;Ku.options=Ku.setOptions=function(e){return YP.setOptions(e),Ku.defaults=YP.defaults,HSr(Ku.defaults),Ku};Ku.getDefaults=rtt;Ku.defaults=WP;Ku.use=function(...e){return YP.use(...e),Ku.defaults=YP.defaults,HSr(Ku.defaults),Ku};Ku.walkTokens=function(e,r){return YP.walkTokens(e,r)};Ku.parseInline=YP.parseInline;Ku.Parser=EC;Ku.parser=EC.parse;Ku.Renderer=YEe;Ku.TextRenderer=utt;Ku.Lexer=_C;Ku.lexer=_C.lex;Ku.Tokenizer=qEe;Ku.Hooks=Mne;Ku.parse=Ku;ILa=Ku.options,OLa=Ku.setOptions,NLa=Ku.use,LLa=Ku.walkTokens,MLa=Ku.parseInline,DLa=EC.parse,PLa=_C.lex});function KEe(e){var r=[];for(var i=1;i${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${f3(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,tokens:i}){let a=this.parser.parseInline(i),o=YSr(e);if(o===null)return a;e=o;let l='
    ",l}image({href:e,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let o=YSr(e);if(o===null)return f3(i);e=o;let l=`${i}{let h=o[l].flat(1/0);i=i.concat(this.walkTokens(h,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((i)=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let l=r.renderers[o.name];l?r.renderers[o.name]=function(...h){let d=o.renderer.apply(this,h);return d===!1&&(d=l.apply(this,h)),d}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=r[o.level];l?l.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),a.extensions=r),i.renderer){let o=this.defaults.renderer||new KEe(this.defaults);for(let l in i.renderer){if(!(l in o))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let h=l,d=i.renderer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y||""}}a.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new jEe(this.defaults);for(let l in i.tokenizer){if(!(l in o))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let h=l,d=i.tokenizer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Bne;for(let l in i.hooks){if(!(l in o))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let h=l,d=i.hooks[h],p=o[h];Bne.passThroughHooks.has(l)?o[h]=(m)=>{if(this.defaults.async&&Bne.passThroughHooksRespectAsync.has(l))return(async()=>{let v=await d.call(o,m);return p.call(o,v)})();let y=d.call(o,m);return p.call(o,y)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await d.apply(o,m);return v===!1&&(v=await p.apply(o,m)),v})();let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(h){let d=[];return d.push(l.call(this,h)),o&&(d=d.concat(o.call(this,h))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return wC.lex(e,r??this.defaults)}parser(e,r){return SC.parse(e,r??this.defaults)}parseMarkdown(e){return(r,i)=>{let a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,d=await(o.hooks?await o.hooks.provideLexer():e?wC.lex:wC.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(d):d;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser():e?SC.parse:SC.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer():e?wC.lex:wC.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let d=(o.hooks?o.hooks.provideParser():e?SC.parse:SC.parseInline)(h,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(h){return l(h)}}}onError(e,r){return(i)=>{if(i.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let a="

    An error occurred:

    "+f3(i.message+"",!0)+"
    ";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},jP,$La,ULa,GLa,zLa,VLa,HLa,qLa;var sTr=Re(()=>{KP=att();Fne={exec:()=>null};tYn=(()=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
    /i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(e)=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:(e)=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},rYn=/^(?:[ \t]*(?:\n|$))+/,nYn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,iYn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$ne=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,aYn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,stt=/(?:[*+-]|\d{1,9}[.)])/,XSr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,QSr=Nu(XSr).replace(/bull/g,stt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),sYn=Nu(XSr).replace(/bull/g,stt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ott=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,oYn=/^[^\n]+/,ltt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lYn=Nu(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ltt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),cYn=Nu(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,stt).getRegex(),ctt=/|$))/,uYn=Nu("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",ctt).replace("tag",XEe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ZSr=Nu(ott).replace("hr",$ne).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",XEe).getRegex(),hYn=Nu(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ZSr).getRegex(),utt={blockquote:hYn,code:nYn,def:lYn,fences:iYn,heading:aYn,hr:$ne,html:uYn,lheading:QSr,list:cYn,newline:rYn,paragraph:ZSr,table:Fne,text:oYn},VSr=Nu("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$ne).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",XEe).getRegex(),dYn={...utt,lheading:sYn,table:VSr,paragraph:Nu(ott).replace("hr",$ne).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",VSr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",XEe).getRegex()},fYn={...utt,html:Nu(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ctt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Fne,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Nu(ott).replace("hr",$ne).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",QSr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pYn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,gYn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,JSr=/^( {2,}|\\)\n(?!\s*$)/,mYn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",tYn?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),rTr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,EYn=Nu(rTr,"u").replace(/punct/g,QEe).getRegex(),wYn=Nu(rTr,"u").replace(/punct/g,tTr).getRegex(),SYn=Nu(nTr,"gu").replace(/notPunctSpace/g,eTr).replace(/punctSpace/g,htt).replace(/punct/g,QEe).getRegex(),TYn=Nu(nTr,"gu").replace(/notPunctSpace/g,vYn).replace(/punctSpace/g,yYn).replace(/punct/g,tTr).getRegex(),xYn=Nu("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,eTr).replace(/punctSpace/g,htt).replace(/punct/g,QEe).getRegex(),CYn=Nu(/\\(punct)/,"gu").replace(/punct/g,QEe).getRegex(),kYn=Nu(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),AYn=Nu(ctt).replace("(?:-->|$)","-->").getRegex(),RYn=Nu("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",AYn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),WEe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,IYn=Nu(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",WEe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iTr=Nu(/^!?\[(label)\]\[(ref)\]/).replace("label",WEe).replace("ref",ltt).getRegex(),aTr=Nu(/^!?\[(ref)\](?:\[\])?/).replace("ref",ltt).getRegex(),OYn=Nu("reflink|nolink(?!\\()","g").replace("reflink",iTr).replace("nolink",aTr).getRegex(),HSr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,dtt={_backpedal:Fne,anyPunctuation:CYn,autolink:kYn,blockSkip:_Yn,br:JSr,code:gYn,del:Fne,emStrongLDelim:EYn,emStrongRDelimAst:SYn,emStrongRDelimUnd:xYn,escape:pYn,link:IYn,nolink:aTr,punctuation:bYn,reflink:iTr,reflinkSearch:OYn,tag:RYn,text:mYn,url:Fne},NYn={...dtt,link:Nu(/^!?\[(label)\]\((.*?)\)/).replace("label",WEe).getRegex(),reflink:Nu(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",WEe).getRegex()},itt={...dtt,emStrongRDelimAst:TYn,emStrongLDelim:wYn,url:Nu(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",HSr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Nu(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"};Bne=class{options;block;constructor(e){this.options=e||KP}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?wC.lex:wC.lexInline}provideParser(){return this.block?SC.parse:SC.parseInline}},jP=new BYn;Ku.options=Ku.setOptions=function(e){return jP.setOptions(e),Ku.defaults=jP.defaults,KSr(Ku.defaults),Ku};Ku.getDefaults=att;Ku.defaults=KP;Ku.use=function(...e){return jP.use(...e),Ku.defaults=jP.defaults,KSr(Ku.defaults),Ku};Ku.walkTokens=function(e,r){return jP.walkTokens(e,r)};Ku.parseInline=jP.parseInline;Ku.Parser=SC;Ku.parser=SC.parse;Ku.Renderer=KEe;Ku.TextRenderer=ftt;Ku.Lexer=wC;Ku.lexer=wC.lex;Ku.Tokenizer=jEe;Ku.Hooks=Bne;Ku.parse=Ku;$La=Ku.options,ULa=Ku.setOptions,GLa=Ku.use,zLa=Ku.walkTokens,VLa=Ku.parseInline,HLa=SC.parse,qLa=wC.lex});function ZEe(e){var r=[];for(var i=1;i{};function nTr(e,{markdownAutoWrap:r}){let a=e.replace(//g,` +`);h+=v+a[p+1]}),h}var ptt=()=>{};function lTr(e,{markdownAutoWrap:r}){let a=e.replace(//g,` `).replace(/\n{2,}/g,` -`);return KEe(a)}function iTr(e){return e.split(/\\n|\n|/gi).map((r)=>r.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((i)=>({content:i,type:"normal"}))??[])}function QEe(e,r={}){let i=nTr(e,r),a=Ku.lexer(i),o=[[]],l=0;function h(d,p="normal"){if(d.type==="text")d.text.split(` -`).forEach((y,E)=>{if(E!==0)l++,o.push([]);y.split(" ").forEach((w)=>{if(w=w.replace(/'/g,"'"),w)o[l].push({content:w,type:p})})});else if(d.type==="strong"||d.type==="em")d.tokens.forEach((m)=>{h(m,d.type)});else if(d.type==="html")o[l].push({content:d.text,type:"normal"})}return I(h,"processNode"),a.forEach((d)=>{if(d.type==="paragraph")d.tokens?.forEach((p)=>{h(p)});else if(d.type==="html")o[l].push({content:d.text,type:"normal"});else o[l].push({content:d.raw,type:"normal"})}),o}function aTr(e){if(!e)return"";return`

    ${e.replace(/\\n|\n/g,"
    ")}

    `}function sTr(e,{markdownAutoWrap:r}={}){let i=Ku.lexer(e);function a(o){if(o.type==="text"){if(r===!1)return o.text.replace(/\n */g,"
    ").replace(/ /g," ");return o.text.replace(/\n */g,"
    ")}else if(o.type==="strong")return`${o.tokens?.map(a).join("")}`;else if(o.type==="em")return`${o.tokens?.map(a).join("")}`;else if(o.type==="paragraph")return`

    ${o.tokens?.map(a).join("")}

    `;else if(o.type==="space")return"";else if(o.type==="html")return`${o.text}`;else if(o.type==="escape")return o.text;return Ze.warn(`Unsupported markdown: ${o.type}`),o.raw}return I(a,"output"),i.map(a).join("")}function ptt(e,r,i,a){var{_tasks:o,fastdom:l}=e,h,d=new Promise(function(p,m){h=l[r](function(){o.delete(d);try{p(a?i.call(a):i())}catch(y){m(y)}},a)});return o.set(d,h),d}function lTr(e){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(e)].map((r)=>r.segment);return[...e]}function cTr(e,r){let i=lTr(r.content);return btt(e,[],i,r.type)}function btt(e,r,i,a){if(i.length===0)return[{content:r.join(""),type:a},{content:"",type:a}];let[o,...l]=i,h=[...r,o];if(e([{content:h.join(""),type:a}]))return btt(e,h,l,a);if(r.length===0&&o)r.push(o),i.shift();return[{content:r.join(""),type:a},{content:i.join(""),type:a}]}function uTr(e,r){if(e.some(({content:i})=>i.includes(` -`)))throw Error("splitLineToFitWidth does not support newlines in the line");return XEe(e,r)}function XEe(e,r,i=[],a=[]){if(e.length===0){if(a.length>0)i.push(a);return i.length>0?i:[]}let o="";if(e[0].content===" ")o=" ",e.shift();let l=e.shift()??{content:" ",type:"normal"},h=[...a];if(o!=="")h.push({content:o,type:"normal"});if(h.push(l),r(h))return XEe(e,r,i,h);if(a.length>0)i.push(a),e.unshift(l);else if(l.content){let[d,p]=cTr(r,l);if(i.push([d]),p.content)e.unshift(p)}return XEe(e,r,i)}function gtt(e,r){if(r)e.attr("style",r)}async function hTr(e,r,i,a,o=!1,l=ea(),h=0){let d=e.append("foreignObject");d.attr("width",`${Math.min(10*i,rTr)}px`),d.attr("height",`${Math.min(10*i,rTr)}px`);let p=d.append("xhtml:div"),m=bf(r.label)?await qV(r.label.replace(ai.lineBreakRegex,` -`),l):ho(r.label,l),y=r.isNode?"nodeLabel":"edgeLabel",E=p.append("span");if(E.html(m),gtt(E,r.labelStyle),E.attr("class",`${y} ${a}`),gtt(p,r.labelStyle),p.style("display","table-cell"),p.style("white-space","nowrap"),p.style("line-height","1.5"),i!==Number.POSITIVE_INFINITY)p.style("max-width",i+"px"),p.style("text-align","center");if(p.attr("xmlns","http://www.w3.org/1999/xhtml"),o)p.attr("class","labelBkg");let w=await UR.measure(()=>p.node().getBoundingClientRect());if(w.width===i)p.style("display","table"),p.style("white-space","break-spaces"),p.style("width",i+"px");else if(w.widthdTr(h,1.1,T)<=e,"checkWidth"),w=E(y)?[y]:uTr(y,E);for(let T of w){let x=ZEe(p,m,1.1,o);JEe(x,T),m++}}if(a){let y=p.node().getBBox(),E=2;return d.attr("x",y.x-2).attr("y",y.y-2).attr("width",y.width+4).attr("height",y.height+4),h.node()}else return p.node()}function mtt(e){let r=/&(amp|lt|gt);/g;return e.replace(r,(i,a)=>{switch(a){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return i}})}function JEe(e,r){e.text(""),r.forEach((i,a)=>{let o=e.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");if(a===0)o.text(mtt(i.content));else o.text(" "+mtt(i.content))})}async function pTr(e,r={}){let i=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,l,h)=>(i.push((async()=>{let d=`${l}:${h}`;if(await uEe(d))return await Y_(d,void 0,{class:"label-icon"});else return``})()),o));let a=await Promise.all(i);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}var ftt,IH,dtt="\uD83E\uDDDC ",NYn="Mermaid render",LYn="Mermaid",MYn,KLa,DYn,oTr,ZLa,JLa,e7a,t7a,PYn,BYn,UR,rTr=16384,ug;var Bp=Re(()=>{Pp();Ql();eo();Zs();Ja();tTr();htt();dl();ftt=typeof performance<"u"&&typeof performance.now==="function",IH=I(()=>ftt?performance.now():0,"now"),MYn={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},KLa=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{I(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(e)}tickSync(e,r){if(!this.enabled)return r();let i=IH();try{return r()}finally{this.buckets[e]=(this.buckets[e]??0)+(IH()-i)}}async tick(e,r){if(!this.enabled)return r();let i=IH();try{return await r()}finally{this.buckets[e]=(this.buckets[e]??0)+(IH()-i)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let e=this.roots.at(-1),r=this.runLabel??e?.name;if(e){if(this.records.push({label:r??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(e,r)}return this.runLabel=void 0,e}begin(e){if(!this.enabled)return;let r={name:e,start:IH(),duration:-1,children:[]},i=this.stack.at(-1);if(i)i.children.push(r);else this.roots.push(r);if(this.stack.push(r),ftt&&typeof performance.mark==="function")try{performance.mark(`${dtt}${e} ▶`)}catch{}}end(){if(!this.enabled)return;let e=this.stack.pop();if(!e)return;let r=IH();if(e.duration=r-e.start,ftt&&typeof performance.measure==="function")try{performance.measure(`${dtt}${e.name}`,{start:e.start,end:r,detail:{devtools:{dataType:"track-entry",track:NYn,trackGroup:LYn,color:MYn[e.name]??"primary",tooltipText:`${e.name} — ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,r){if(!this.enabled)return r();this.begin(e);try{return await r()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),r){if(!e)return;let i=e.duration,a=r&&r!==e.name?`${e.name} [${r}]`:e.name,o=["ms % phase"],l=I((d,p)=>{let m=" ".repeat(p),y=d.duration.toFixed(1).padStart(8),E=i>0?`${(d.duration/i*100).toFixed(0).padStart(3)}%`:" -";o.push(`${y} ${E} ${m}${d.name}`);for(let w of d.children)l(w,p+1);if(d.children.length>0){let w=d.children.reduce((x,k)=>x+k.duration,0),T=d.duration-w;if(T>0.5){let x=T.toFixed(1).padStart(8);o.push(`${x} ${m} (self)`)}}},"walk");l(e,0);let h=Object.keys(this.buckets);if(h.length>0){o.push("—— buckets (summed) ——");for(let d of h)o.push(`${this.buckets[d].toFixed(1).padStart(8)} ${d}`)}console.log(`${dtt}mermaid render profile · ${a} +`);return ZEe(a)}function cTr(e){return e.split(/\\n|\n|/gi).map((r)=>r.trim().match(/<[^>]+>|[^\s<>]+/g)?.map((i)=>({content:i,type:"normal"}))??[])}function ewe(e,r={}){let i=lTr(e,r),a=Ku.lexer(i),o=[[]],l=0;function h(d,p="normal"){if(d.type==="text")d.text.split(` +`).forEach((y,v)=>{if(v!==0)l++,o.push([]);y.split(" ").forEach((w)=>{if(w=w.replace(/'/g,"'"),w)o[l].push({content:w,type:p})})});else if(d.type==="strong"||d.type==="em")d.tokens.forEach((m)=>{h(m,d.type)});else if(d.type==="html")o[l].push({content:d.text,type:"normal"})}return I(h,"processNode"),a.forEach((d)=>{if(d.type==="paragraph")d.tokens?.forEach((p)=>{h(p)});else if(d.type==="html")o[l].push({content:d.text,type:"normal"});else o[l].push({content:d.raw,type:"normal"})}),o}function uTr(e){if(!e)return"";return`

    ${e.replace(/\\n|\n/g,"
    ")}

    `}function hTr(e,{markdownAutoWrap:r}={}){let i=Ku.lexer(e);function a(o){if(o.type==="text"){if(r===!1)return o.text.replace(/\n */g,"
    ").replace(/ /g," ");return o.text.replace(/\n */g,"
    ")}else if(o.type==="strong")return`${o.tokens?.map(a).join("")}`;else if(o.type==="em")return`${o.tokens?.map(a).join("")}`;else if(o.type==="paragraph")return`

    ${o.tokens?.map(a).join("")}

    `;else if(o.type==="space")return"";else if(o.type==="html")return`${o.text}`;else if(o.type==="escape")return o.text;return Ze.warn(`Unsupported markdown: ${o.type}`),o.raw}return I(a,"output"),i.map(a).join("")}function btt(e,r,i,a){var{_tasks:o,fastdom:l}=e,h,d=new Promise(function(p,m){h=l[r](function(){o.delete(d);try{p(a?i.call(a):i())}catch(y){m(y)}},a)});return o.set(d,h),d}function fTr(e){if(Intl.Segmenter)return[...new Intl.Segmenter().segment(e)].map((r)=>r.segment);return[...e]}function pTr(e,r){let i=fTr(r.content);return _tt(e,[],i,r.type)}function _tt(e,r,i,a){if(i.length===0)return[{content:r.join(""),type:a},{content:"",type:a}];let[o,...l]=i,h=[...r,o];if(e([{content:h.join(""),type:a}]))return _tt(e,h,l,a);if(r.length===0&&o)r.push(o),i.shift();return[{content:r.join(""),type:a},{content:i.join(""),type:a}]}function gTr(e,r){if(e.some(({content:i})=>i.includes(` +`)))throw Error("splitLineToFitWidth does not support newlines in the line");return JEe(e,r)}function JEe(e,r,i=[],a=[]){if(e.length===0){if(a.length>0)i.push(a);return i.length>0?i:[]}let o="";if(e[0].content===" ")o=" ",e.shift();let l=e.shift()??{content:" ",type:"normal"},h=[...a];if(o!=="")h.push({content:o,type:"normal"});if(h.push(l),r(h))return JEe(e,r,i,h);if(a.length>0)i.push(a),e.unshift(l);else if(l.content){let[d,p]=pTr(r,l);if(i.push([d]),p.content)e.unshift(p)}return JEe(e,r,i)}function ytt(e,r){if(r)e.attr("style",r)}async function mTr(e,r,i,a,o=!1,l=ea(),h=0){let d=e.append("foreignObject");d.attr("width",`${Math.min(10*i,oTr)}px`),d.attr("height",`${Math.min(10*i,oTr)}px`);let p=d.append("xhtml:div"),m=bf(r.label)?await jV(r.label.replace(ai.lineBreakRegex,` +`),l):ho(r.label,l),y=r.isNode?"nodeLabel":"edgeLabel",v=p.append("span");if(v.html(m),ytt(v,r.labelStyle),v.attr("class",`${y} ${a}`),ytt(p,r.labelStyle),p.style("display","table-cell"),p.style("white-space","nowrap"),p.style("line-height","1.5"),i!==Number.POSITIVE_INFINITY)p.style("max-width",i+"px"),p.style("text-align","center");if(p.attr("xmlns","http://www.w3.org/1999/xhtml"),o)p.attr("class","labelBkg");let w=await VR.measure(()=>p.node().getBoundingClientRect());if(w.width===i)p.style("display","table"),p.style("white-space","break-spaces"),p.style("width",i+"px");else if(w.widthbTr(h,1.1,T)<=e,"checkWidth"),w=v(y)?[y]:gTr(y,v);for(let T of w){let x=twe(p,m,1.1,o);rwe(x,T),m++}}if(a){let y=p.node().getBBox(),v=2;return d.attr("x",y.x-2).attr("y",y.y-2).attr("width",y.width+4).attr("height",y.height+4),h.node()}else return p.node()}function vtt(e){let r=/&(amp|lt|gt);/g;return e.replace(r,(i,a)=>{switch(a){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return i}})}function rwe(e,r){e.text(""),r.forEach((i,a)=>{let o=e.append("tspan").attr("font-style",i.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",i.type==="strong"?"bold":"normal");if(a===0)o.text(vtt(i.content));else o.text(" "+vtt(i.content))})}async function vTr(e,r={}){let i=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(o,l,h)=>(i.push((async()=>{let d=`${l}:${h}`;if(await fEe(d))return await Y_(d,void 0,{class:"label-icon"});else return``})()),o));let a=await Promise.all(i);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??"")}var mtt,LH,gtt="\uD83E\uDDDC ",FYn="Mermaid render",$Yn="Mermaid",UYn,i7a,GYn,dTr,o7a,l7a,c7a,u7a,zYn,VYn,VR,oTr=16384,ug;var Bp=Re(()=>{Pp();Ql();eo();Zs();Ja();sTr();ptt();dl();mtt=typeof performance<"u"&&typeof performance.now==="function",LH=I(()=>mtt?performance.now():0,"now"),UYn={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},i7a=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}static{I(this,"Profiler")}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(e){if(!this.enabled)return;this.roots=[],this.stack=[],this.buckets={},this.begin(e)}tickSync(e,r){if(!this.enabled)return r();let i=LH();try{return r()}finally{this.buckets[e]=(this.buckets[e]??0)+(LH()-i)}}async tick(e,r){if(!this.enabled)return r();let i=LH();try{return await r()}finally{this.buckets[e]=(this.buckets[e]??0)+(LH()-i)}}stop(){if(!this.enabled)return;while(this.stack.length>0)this.end();let e=this.roots.at(-1),r=this.runLabel??e?.name;if(e){if(this.records.push({label:r??e.name,tree:e,buckets:{...this.buckets}}),this.records.length>this.maxRecords)this.records.splice(0,this.records.length-this.maxRecords);if(this.autoPrint)this.printSummary(e,r)}return this.runLabel=void 0,e}begin(e){if(!this.enabled)return;let r={name:e,start:LH(),duration:-1,children:[]},i=this.stack.at(-1);if(i)i.children.push(r);else this.roots.push(r);if(this.stack.push(r),mtt&&typeof performance.mark==="function")try{performance.mark(`${gtt}${e} ▶`)}catch{}}end(){if(!this.enabled)return;let e=this.stack.pop();if(!e)return;let r=LH();if(e.duration=r-e.start,mtt&&typeof performance.measure==="function")try{performance.measure(`${gtt}${e.name}`,{start:e.start,end:r,detail:{devtools:{dataType:"track-entry",track:FYn,trackGroup:$Yn,color:UYn[e.name]??"primary",tooltipText:`${e.name} — ${e.duration.toFixed(1)} ms`}}})}catch{}}async span(e,r){if(!this.enabled)return r();this.begin(e);try{return await r()}finally{this.end()}}report(){return this.records.at(-1)?.tree??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(e=this.report(),r){if(!e)return;let i=e.duration,a=r&&r!==e.name?`${e.name} [${r}]`:e.name,o=["ms % phase"],l=I((d,p)=>{let m=" ".repeat(p),y=d.duration.toFixed(1).padStart(8),v=i>0?`${(d.duration/i*100).toFixed(0).padStart(3)}%`:" -";o.push(`${y} ${v} ${m}${d.name}`);for(let w of d.children)l(w,p+1);if(d.children.length>0){let w=d.children.reduce((x,k)=>x+k.duration,0),T=d.duration-w;if(T>0.5){let x=T.toFixed(1).padStart(8);o.push(`${x} ${m} (self)`)}}},"walk");l(e,0);let h=Object.keys(this.buckets);if(h.length>0){o.push("—— buckets (summed) ——");for(let d of h)o.push(`${this.buckets[d].toFixed(1).padStart(8)} ${d}`)}console.log(`${gtt}mermaid render profile · ${a} ${o.join(` -`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};I(nTr,"preprocessMarkdown");I(iTr,"nonMarkdownToLines");I(QEe,"markdownToLines");I(aTr,"nonMarkdownToHTML");I(sTr,"markdownToHTML");DYn=function(e){var r=function(){},i=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(m){return setTimeout(m,16)};function a(){var m=this;m.reads=[],m.writes=[],m.raf=i.bind(e),r("initialized",m)}I(a,"FastDom"),a.prototype={constructor:a,runTasks:I(function(m){r("run tasks");var y;while(y=m.shift())y()},"runTasks"),measure:I(function(m,y){r("measure");var E=!y?m:m.bind(y);return this.reads.push(E),o(this),E},"measure"),mutate:I(function(m,y){r("mutate");var E=!y?m:m.bind(y);return this.writes.push(E),o(this),E},"mutate"),clear:I(function(m){return r("clear",m),h(this.reads,m)||h(this.writes,m)},"clear"),extend:I(function(m){if(r("extend",m),typeof m!="object")throw Error("expected object");var y=Object.create(this);if(d(y,m),y.fastdom=this,y.initialize)y.initialize();return y},"extend"),catch:null};function o(m){if(!m.scheduled)m.scheduled=!0,m.raf(l.bind(null,m)),r("flush scheduled")}I(o,"scheduleFlush");function l(m){r("flush");var{writes:y,reads:E}=m,w;try{r("flushing reads",E.length),m.runTasks(E),r("flushing writes",y.length),m.runTasks(y)}catch(T){w=T}if(m.scheduled=!1,E.length||y.length)o(m);if(w)if(r("task errored",w.message),m.catch)m.catch(w);else throw w}I(l,"flush");function h(m,y){var E=m.indexOf(y);return!!~E&&!!m.splice(E,1)}I(h,"remove");function d(m,y){for(var E in y)if(y.hasOwnProperty(E))m[E]=y[E]}I(d,"mixin");var p=e.fastdom=e.fastdom||new a;return p}(typeof window<"u"?window:globalThis),oTr={initialize:I(function(){this._tasks=new Map},"initialize"),mutate:I(function(e,r){return ptt(this,"mutate",e,r)},"mutate"),measure:I(function(e,r){return ptt(this,"measure",e,r)},"measure"),clear:I(function(e){var r=this._tasks,i=r.get(e);this.fastdom.clear(i),r.delete(e)},"clear")};I(ptt,"create");({initialize:ZLa,mutate:JLa,measure:e7a,clear:t7a}=oTr),PYn=oTr,BYn=DYn.extend({raf(e){if(typeof queueMicrotask==="function")queueMicrotask(e);else setTimeout(e,0)}}).extend(PYn),UR=BYn;I(lTr,"splitTextToChars");I(cTr,"splitWordToFitWidth");I(btt,"splitWordToFitWidthRecursion");I(uTr,"splitLineToFitWidth");I(XEe,"splitLineToFitWidthRecursion");I(gtt,"applyStyle");I(hTr,"addHtmlSpan");I(ZEe,"createTspan");I(dTr,"computeWidthOfText");I(ytt,"computeDimensionOfText");I(fTr,"createFormattedText");I(mtt,"decodeHTMLEntities");I(JEe,"updateTextContentAndStyles");I(pTr,"replaceIconSubstring");ug=I(async(e,r="",{style:i="",isTitle:a=!1,classes:o="",useHtmlLabels:l=!0,markdown:h=!0,isNode:d=!0,width:p=200,minWidth:m=0,addSvgBackground:y=!1}={},E)=>{if(Ze.debug("XYZ createText",r,i,a,o,l,d,"addSvgBackground: ",y),l){let w=h?sTr(r,E):aTr(r),T=await pTr(vC(w),E),x=r.replace(/\\\\/g,"\\"),k={isNode:d,label:bf(r)?x:T,labelStyle:i.replace("fill:","color:")};return await hTr(e,k,p,o,y,E,m)}else{let w=vC(r.replace(//g,"
    ")),T=h?QEe(w.replace("
    ","
    "),E):iTr(w),x=fTr(p,e,T,r?y:!1,!d);if(d){if(/stroke:/.exec(i))i=i.replace("stroke:","lineColor:");let k=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");xn(x).attr("style",k)}else{let k=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");xn(x).select("rect").attr("style",k.replace(/background:/g,"fill:"));let A=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");xn(x).select("text").attr("style",A)}if(a)xn(x).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else xn(x).selectAll("tspan.text-outer-tspan").classed("row",!0);return x}},"createText")});var Bne,FYn=12,$Yn=64,rm,nm,UYn,hg,f3,jS,ty;var I0=Re(()=>{Ja();Bne=new Set(["redux-color","redux-dark-color"]),rm=I((e)=>Array.isArray(e)&&e.length>0,"hasPalette"),nm=I((e,r)=>e!=null&&Bne.has(e)&&rm(r),"isColorTheme"),UYn=/^[\w-]+$/,hg=I((e)=>{let r=typeof e==="string"||typeof e==="number"?String(e):"";return UYn.test(r)?r:"classic"},"safeLook"),f3=I((e)=>rm(e)?e.length:0,"paletteSlotCount"),jS=I((e,r)=>{if(rm(r))return f3(r);return typeof e==="number"&&Number.isInteger(e)&&e>0&&e<=$Yn?e:FYn},"colorSlotCount"),ty=I((e,r,i,a)=>{if(r===void 0||!nm(i,a))return;let o=r%f3(a);e.attr("data-color-id",`color-${o}`)},"stampColorSlot")});function vtt(e,r,i){if(e&&e.length){let[a,o]=r,l=Math.PI/180*i,h=Math.cos(l),d=Math.sin(l);for(let p of e){let[m,y]=p;p[0]=(m-a)*h-(y-o)*d+a,p[1]=(m-a)*d+(y-o)*h+o}}}function GYn(e,r){return e[0]===r[0]&&e[1]===r[1]}function zYn(e,r,i,a=1){let o=i,l=Math.max(r,0.1),h=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,d=[0,0];if(o)for(let m of h)vtt(m,d,o);let p=function(m,y,E){let w=[];for(let N of m){let L=[...N];GYn(L[0],L[L.length-1])||L.push([L[0][0],L[0][1]]),L.length>2&&w.push(L)}let T=[];y=Math.max(y,0.1);let x=[];for(let N of w)for(let L=0;LN.yminL.ymin?1:N.xL.x?1:N.ymax===L.ymax?0:(N.ymax-L.ymax)/Math.abs(N.ymax-L.ymax)),!x.length)return T;let k=[],A=x[0].ymin,R=0;for(;k.length||x.length;){if(x.length){let N=-1;for(let L=0;LA);L++)N=L;x.splice(0,N+1).forEach((L)=>{k.push({s:A,edge:L})})}if(k=k.filter((N)=>!(N.edge.ymax<=A)),k.sort((N,L)=>N.edge.x===L.edge.x?0:(N.edge.x-L.edge.x)/Math.abs(N.edge.x-L.edge.x)),(E!==1||R%y==0)&&k.length>1)for(let N=0;N=k.length)break;let B=k[N].edge,D=k[L].edge;T.push([[Math.round(B.x),A],[Math.round(D.x),A]])}A+=E,k.forEach((N)=>{N.edge.x=N.edge.x+E*N.edge.islope}),R++}return T}(h,l,a);if(o){for(let m of h)vtt(m,d,-o);(function(m,y,E){let w=[];m.forEach((T)=>w.push(...T)),vtt(w,y,E)})(p,d,-o)}return p}function Gne(e,r){var i;let a=r.hachureAngle+90,o=r.hachureGap;o<0&&(o=4*r.strokeWidth),o=Math.round(Math.max(o,0.1));let l=1;return r.roughness>=1&&(((i=r.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>0.7&&(l=o),zYn(e,o,a,l||1)}class lwe{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){let i=Gne(e,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(e,r){let i=[];for(let a of e)i.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return i}}function cwe(e){let r=e[0],i=e[1];return Math.sqrt(Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2))}class xTr{constructor(e){this.helper=e}fillPolygons(e,r){let i=Gne(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(e,r){let i=[],a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,0.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);let l=a/4;for(let h of e){let d=cwe(h),p=d/a,m=Math.ceil(p)-1,y=d-m*a,E=(h[0][0]+h[1][0])/2-a/4,w=Math.min(h[0][1],h[1][1]);for(let T=0;T{let h=cwe(l),d=Math.floor(h/(i+a)),p=(h+a-d*(i+a))/2,m=l[0],y=l[1];m[0]>y[0]&&(m=l[1],y=l[0]);let E=Math.atan((y[1]-m[1])/(y[0]-m[0]));for(let w=0;w{let l=cwe(o),h=Math.round(l/(2*r)),d=o[0],p=o[1];d[0]>p[0]&&(d=o[1],p=o[0]);let m=Math.atan((p[1]-d[1])/(p[0]-d[0]));for(let y=0;yy%2?m+i:m+r);l.push({key:"C",data:p}),r=p[4],i=p[5];break}case"Q":l.push({key:"Q",data:[...d]}),r=d[2],i=d[3];break;case"q":{let p=d.map((m,y)=>y%2?m+i:m+r);l.push({key:"Q",data:p}),r=p[2],i=p[3];break}case"A":l.push({key:"A",data:[...d]}),r=d[5],i=d[6];break;case"a":r+=d[5],i+=d[6],l.push({key:"A",data:[d[0],d[1],d[2],d[3],d[4],r,i]});break;case"H":l.push({key:"H",data:[...d]}),r=d[0];break;case"h":r+=d[0],l.push({key:"H",data:[r]});break;case"V":l.push({key:"V",data:[...d]}),i=d[0];break;case"v":i+=d[0],l.push({key:"V",data:[i]});break;case"S":l.push({key:"S",data:[...d]}),r=d[2],i=d[3];break;case"s":{let p=d.map((m,y)=>y%2?m+i:m+r);l.push({key:"S",data:p}),r=p[2],i=p[3];break}case"T":l.push({key:"T",data:[...d]}),r=d[0],i=d[1];break;case"t":r+=d[0],i+=d[1],l.push({key:"T",data:[r,i]});break;case"Z":case"z":l.push({key:"Z",data:[]}),r=a,i=o}return l}function ITr(e){let r=[],i="",a=0,o=0,l=0,h=0,d=0,p=0;for(let{key:m,data:y}of e){switch(m){case"M":r.push({key:"M",data:[...y]}),[a,o]=y,[l,h]=y;break;case"C":r.push({key:"C",data:[...y]}),a=y[4],o=y[5],d=y[2],p=y[3];break;case"L":r.push({key:"L",data:[...y]}),[a,o]=y;break;case"H":a=y[0],r.push({key:"L",data:[a,o]});break;case"V":o=y[0],r.push({key:"L",data:[a,o]});break;case"S":{let E=0,w=0;i==="C"||i==="S"?(E=a+(a-d),w=o+(o-p)):(E=a,w=o),r.push({key:"C",data:[E,w,...y]}),d=y[0],p=y[1],a=y[2],o=y[3];break}case"T":{let[E,w]=y,T=0,x=0;i==="Q"||i==="T"?(T=a+(a-d),x=o+(o-p)):(T=a,x=o);let k=a+2*(T-a)/3,A=o+2*(x-o)/3,R=E+2*(T-E)/3,N=w+2*(x-w)/3;r.push({key:"C",data:[k,A,R,N,E,w]}),d=T,p=x,a=E,o=w;break}case"Q":{let[E,w,T,x]=y,k=a+2*(E-a)/3,A=o+2*(w-o)/3,R=T+2*(E-T)/3,N=x+2*(w-x)/3;r.push({key:"C",data:[k,A,R,N,T,x]}),d=E,p=w,a=T,o=x;break}case"A":{let E=Math.abs(y[0]),w=Math.abs(y[1]),T=y[2],x=y[3],k=y[4],A=y[5],R=y[6];if(E===0||w===0)r.push({key:"C",data:[a,o,A,R,A,R]}),a=A,o=R;else if(a!==A||o!==R)OTr(a,o,A,R,E,w,T,x,k).forEach(function(N){r.push({key:"C",data:N})}),a=A,o=R;break}case"Z":r.push({key:"Z",data:[]}),a=l,o=h}i=m}return r}function Fne(e,r,i){return[e*Math.cos(i)-r*Math.sin(i),e*Math.sin(i)+r*Math.cos(i)]}function OTr(e,r,i,a,o,l,h,d,p,m){let y=(E=h,Math.PI*E/180);var E;let w=[],T=0,x=0,k=0,A=0;if(m)[T,x,k,A]=m;else{[e,r]=Fne(e,r,-y),[i,a]=Fne(i,a,-y);let j=(e-i)/2,te=(r-a)/2,X=j*j/(o*o)+te*te/(l*l);X>1&&(X=Math.sqrt(X),o*=X,l*=X);let W=o*o,J=l*l,z=W*J-W*te*te-J*j*j,ne=W*te*te+J*j*j,ie=(d===p?-1:1)*Math.sqrt(Math.abs(z/ne));k=ie*o*te/l+(e+i)/2,A=ie*-l*j/o+(r+a)/2,T=Math.asin(parseFloat(((r-A)/l).toFixed(9))),x=Math.asin(parseFloat(((a-A)/l).toFixed(9))),ex&&(T-=2*Math.PI),!p&&x>T&&(x-=2*Math.PI)}let R=x-T;if(Math.abs(R)>120*Math.PI/180){let j=x,te=i,X=a;x=p&&x>T?T+120*Math.PI/180*1:T+120*Math.PI/180*-1,w=OTr(i=k+o*Math.cos(x),a=A+l*Math.sin(x),te,X,o,l,h,0,p,[x,j,k,A])}R=x-T;let N=Math.cos(T),L=Math.sin(T),B=Math.cos(x),D=Math.sin(x),P=Math.tan(R/4),F=1.3333333333333333*o*P,H=1.3333333333333333*l*P,K=[e,r],Q=[e+F*L,r-H*N],Z=[i+F*D,a-H*B],Y=[i,a];if(Q[0]=2*K[0]-Q[0],Q[1]=2*K[1]-Q[1],m)return[Q,Z,Y].concat(w);{w=[Q,Z,Y].concat(w);let j=[];for(let te=0;te2){let o=[];for(let l=0;l2*Math.PI&&(T=0,x=2*Math.PI);let k=2*Math.PI/p.curveStepCount,A=Math.min(k/2,(x-T)/2),R=ETr(A,m,y,E,w,T,x,1,p);if(!p.disableMultiStroke){let N=ETr(A,m,y,E,w,T,x,1.5,p);R.push(...N)}return h&&(d?R.push(...wL(m,y,m+E*Math.cos(T),y+w*Math.sin(T),p),...wL(m,y,m+E*Math.cos(x),y+w*Math.sin(x),p)):R.push({op:"lineTo",data:[m,y]},{op:"lineTo",data:[m+E*Math.cos(T),y+w*Math.sin(T)]})),{type:"path",ops:R}}function yTr(e,r){let i=ITr(RTr(ktt(e))),a=[],o=[0,0],l=[0,0];for(let{key:h,data:d}of i)switch(h){case"M":l=[d[0],d[1]],o=[d[0],d[1]];break;case"L":a.push(...wL(l[0],l[1],d[0],d[1],r)),l=[d[0],d[1]];break;case"C":{let[p,m,y,E,w,T]=d;a.push(...YYn(p,m,y,E,w,T,l,r)),l=[w,T];break}case"Z":a.push(...wL(l[0],l[1],o[0],o[1],r)),l=[o[0],o[1]]}return{type:"path",ops:a}}function wtt(e,r){let i=[];for(let a of e)if(a.length){let o=r.maxRandomnessOffset||0,l=a.length;if(l>2){i.push({op:"move",data:[a[0][0]+Co(o,r),a[0][1]+Co(o,r)]});for(let h=1;h500?0.4:-0.0016668*p+1.233334;let y=o.maxRandomnessOffset||0;y*y*100>d&&(y=p/10);let E=y/2,w=0.2+0.2*MTr(o),T=o.bowing*o.maxRandomnessOffset*(a-r)/200,x=o.bowing*o.maxRandomnessOffset*(e-i)/200;T=Co(T,o,m),x=Co(x,o,m);let k=[],A=()=>Co(E,o,m),R=()=>Co(y,o,m),N=o.preserveVertices;return l&&(h?k.push({op:"move",data:[e+(N?0:A()),r+(N?0:A())]}):k.push({op:"move",data:[e+(N?0:Co(y,o,m)),r+(N?0:Co(y,o,m))]})),h?k.push({op:"bcurveTo",data:[T+e+(i-e)*w+A(),x+r+(a-r)*w+A(),T+e+2*(i-e)*w+A(),x+r+2*(a-r)*w+A(),i+(N?0:A()),a+(N?0:A())]}):k.push({op:"bcurveTo",data:[T+e+(i-e)*w+R(),x+r+(a-r)*w+R(),T+e+2*(i-e)*w+R(),x+r+2*(a-r)*w+R(),i+(N?0:R()),a+(N?0:R())]}),k}function twe(e,r,i){if(!e.length)return[];let a=[];a.push([e[0][0]+Co(r,i),e[0][1]+Co(r,i)]),a.push([e[0][0]+Co(r,i),e[0][1]+Co(r,i)]);for(let o=1;o3){let l=[],h=1-i.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(let d=1;d+21&&o.push(d);else o.push(d);o.push(e[r+3])}else{let p=e[r+0],m=e[r+1],y=e[r+2],E=e[r+3],w=jP(p,m,0.5),T=jP(m,y,0.5),x=jP(y,E,0.5),k=jP(w,T,0.5),A=jP(T,x,0.5),R=jP(k,A,0.5);Ctt([p,w,k,R],0,i,o),Ctt([R,A,x,E],0,i,o)}var l,h;return o}function jYn(e,r){return owe(e,0,e.length,r)}function owe(e,r,i,a,o){let l=o||[],h=e[r],d=e[i-1],p=0,m=1;for(let y=r+1;yp&&(p=E,m=y)}return Math.sqrt(p)>a?(owe(e,r,m+1,a,l),owe(e,m,i,a,l)):(l.length||l.push(h),l.push(d)),l}function Stt(e,r=0.15,i){let a=[],o=(e.length-1)/3;for(let l=0;l0?owe(a,0,a.length,i):a}class Une{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:0.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,i){return{shape:e,sets:r||[],options:i||this.defaultOptions}}line(e,r,i,a,o){let l=this._o(o);return this._d("line",[NTr(e,r,i,a,l)],l)}rectangle(e,r,i,a,o){let l=this._o(o),h=[],d=qYn(e,r,i,a,l);if(l.fill){let p=[[e,r],[e+i,r],[e+i,r+a],[e,r+a]];l.fillStyle==="solid"?h.push(wtt([p],l)):h.push(OH([p],l))}return l.stroke!==jE&&h.push(d),this._d("rectangle",h,l)}ellipse(e,r,i,a,o){let l=this._o(o),h=[],d=LTr(i,a,l),p=Ttt(e,r,l,d);if(l.fill)if(l.fillStyle==="solid"){let m=Ttt(e,r,l,d).opset;m.type="fillPath",h.push(m)}else h.push(OH([p.estimatedPoints],l));return l.stroke!==jE&&h.push(p.opset),this._d("ellipse",h,l)}circle(e,r,i,a){let o=this.ellipse(e,r,i,i,a);return o.shape="circle",o}linearPath(e,r){let i=this._o(r);return this._d("linearPath",[nwe(e,!1,i)],i)}arc(e,r,i,a,o,l,h=!1,d){let p=this._o(d),m=[],y=bTr(e,r,i,a,o,l,h,!0,p);if(h&&p.fill)if(p.fillStyle==="solid"){let E=Object.assign({},p);E.disableMultiStroke=!0;let w=bTr(e,r,i,a,o,l,!0,!1,E);w.type="fillPath",m.push(w)}else m.push(function(E,w,T,x,k,A,R){let N=E,L=w,B=Math.abs(T/2),D=Math.abs(x/2);B+=Co(0.01*B,R),D+=Co(0.01*D,R);let P=k,F=A;for(;P<0;)P+=2*Math.PI,F+=2*Math.PI;F-P>2*Math.PI&&(P=0,F=2*Math.PI);let H=(F-P)/R.curveStepCount,K=[];for(let Q=P;Q<=F;Q+=H)K.push([N+B*Math.cos(Q),L+D*Math.sin(Q)]);return K.push([N+B*Math.cos(F),L+D*Math.sin(F)]),K.push([N,L]),OH([K],R)}(e,r,i,a,o,l,p));return p.stroke!==jE&&m.push(y),this._d("arc",m,p)}curve(e,r){let i=this._o(r),a=[],o=mTr(e,i);if(i.fill&&i.fill!==jE)if(i.fillStyle==="solid"){let l=mTr(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(l.ops)})}else{let l=[],h=e;if(h.length){let d=typeof h[0][0]=="number"?[h]:h;for(let p of d)p.length<3?l.push(...p):p.length===3?l.push(...Stt(wTr([p[0],p[0],p[1],p[2]]),10,(1+i.roughness)/2)):l.push(...Stt(wTr(p),10,(1+i.roughness)/2))}l.length&&a.push(OH([l],i))}return i.stroke!==jE&&a.push(o),this._d("curve",a,i)}polygon(e,r){let i=this._o(r),a=[],o=nwe(e,!0,i);return i.fill&&(i.fillStyle==="solid"?a.push(wtt([e],i)):a.push(OH([e],i))),i.stroke!==jE&&a.push(o),this._d("polygon",a,i)}path(e,r){let i=this._o(r),a=[];if(!e)return this._d("path",a,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=i.fill&&i.fill!=="transparent"&&i.fill!==jE,l=i.stroke!==jE,h=!!(i.simplification&&i.simplification<1),d=function(m,y,E){let w=ITr(RTr(ktt(m))),T=[],x=[],k=[0,0],A=[],R=()=>{A.length>=4&&x.push(...Stt(A,y)),A=[]},N=()=>{R(),x.length&&(T.push(x),x=[])};for(let{key:B,data:D}of w)switch(B){case"M":N(),k=[D[0],D[1]],x.push(k);break;case"L":R(),x.push([D[0],D[1]]);break;case"C":if(!A.length){let P=x.length?x[x.length-1]:k;A.push([P[0],P[1]])}A.push([D[0],D[1]]),A.push([D[2],D[3]]),A.push([D[4],D[5]]);break;case"Z":R(),x.push([k[0],k[1]])}if(N(),!E)return T;let L=[];for(let B of T){let D=jYn(B,E);D.length&&L.push(D)}return L}(e,1,h?4-4*(i.simplification||1):(1+i.roughness)/2),p=yTr(e,i);if(o)if(i.fillStyle==="solid")if(d.length===1){let m=yTr(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(m.ops)})}else a.push(wtt(d,i));else a.push(OH(d,i));return l&&(h?d.forEach((m)=>{a.push(nwe(m,!1,i))}):a.push(p)),this._d("path",a,i)}opsToPath(e,r){let i="";for(let a of e.ops){let o=typeof r=="number"&&r>=0?a.data.map((l)=>+l.toFixed(r)):a.data;switch(a.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(e){let r=e.sets||[],i=e.options||this.defaultOptions,a=[];for(let o of r){let l=null;switch(o.type){case"path":l={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:jE};break;case"fillPath":l={d:this.opsToPath(o),stroke:jE,strokeWidth:0,fill:i.fill||jE};break;case"fillSketch":l=this.fillSketch(o,i)}l&&a.push(l)}return a}fillSketch(e,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||jE,strokeWidth:i,fill:jE}}_mergedShape(e){return e.filter((r,i)=>i===0||r.op!=="move")}}class DTr{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Une(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),a=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(let l of r)switch(l.type){case"path":a.save(),a.strokeStyle=i.stroke==="none"?"transparent":i.stroke,a.lineWidth=i.strokeWidth,i.strokeLineDash&&a.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(a.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(a,l,o),a.restore();break;case"fillPath":{a.save(),a.fillStyle=i.fill||"";let h=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,l,o,h),a.restore();break}case"fillSketch":this.fillSketch(a,l,i)}}fillSketch(e,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=a,this._drawToContext(e,r,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,i,a="nonzero"){e.beginPath();for(let o of r.ops){let l=typeof i=="number"&&i>=0?o.data.map((h)=>+h.toFixed(i)):o.data;switch(o.op){case"move":e.moveTo(l[0],l[1]);break;case"bcurveTo":e.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5]);break;case"lineTo":e.lineTo(l[0],l[1])}}r.type==="fillPath"?e.fill(a):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,i,a,o){let l=this.gen.line(e,r,i,a,o);return this.draw(l),l}rectangle(e,r,i,a,o){let l=this.gen.rectangle(e,r,i,a,o);return this.draw(l),l}ellipse(e,r,i,a,o){let l=this.gen.ellipse(e,r,i,a,o);return this.draw(l),l}circle(e,r,i,a){let o=this.gen.circle(e,r,i,a);return this.draw(o),o}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i),i}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i),i}arc(e,r,i,a,o,l,h=!1,d){let p=this.gen.arc(e,r,i,a,o,l,h,d);return this.draw(p),p}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i),i}path(e,r){let i=this.gen.path(e,r);return this.draw(i),i}}class PTr{constructor(e,r){this.svg=e,this.gen=new Une(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,o=a.createElementNS(rwe,"g"),l=e.options.fixedDecimalPlaceDigits;for(let h of r){let d=null;switch(h.type){case"path":d=a.createElementNS(rwe,"path"),d.setAttribute("d",this.opsToPath(h,l)),d.setAttribute("stroke",i.stroke),d.setAttribute("stroke-width",i.strokeWidth+""),d.setAttribute("fill","none"),i.strokeLineDash&&d.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&d.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":d=a.createElementNS(rwe,"path"),d.setAttribute("d",this.opsToPath(h,l)),d.setAttribute("stroke","none"),d.setAttribute("stroke-width","0"),d.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||d.setAttribute("fill-rule","evenodd");break;case"fillSketch":d=this.fillSketch(a,h,i)}d&&o.appendChild(d)}return o}fillSketch(e,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2);let o=e.createElementNS(rwe,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",a+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,i,a,o){let l=this.gen.line(e,r,i,a,o);return this.draw(l)}rectangle(e,r,i,a,o){let l=this.gen.rectangle(e,r,i,a,o);return this.draw(l)}ellipse(e,r,i,a,o){let l=this.gen.ellipse(e,r,i,a,o);return this.draw(l)}circle(e,r,i,a){let o=this.gen.circle(e,r,i,a);return this.draw(o)}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i)}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i)}arc(e,r,i,a,o,l,h=!1,d){let p=this.gen.arc(e,r,i,a,o,l,h,d);return this.draw(p)}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i)}path(e,r){let i=this.gen.path(e,r);return this.draw(i)}}var STr,TTr,K_,VYn=0,_tt=1,gTr=2,ewe,HYn,jE="none",rwe="http://www.w3.org/2000/svg",ln;var Na=Re(()=>{STr=class STr extends lwe{fillPolygons(e,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,0.1);let a=Gne(e,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,l=[],h=0.5*i*Math.cos(o),d=0.5*i*Math.sin(o);for(let[p,m]of a)cwe([p,m])&&l.push([[p[0]-h,p[1]+d],[...m]],[[p[0]+h,p[1]-d],[...m]]);return{type:"fillSketch",ops:this.renderLines(l,r)}}};TTr=class TTr extends lwe{fillPolygons(e,r){let i=this._fillPolygons(e,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(e,a);return i.ops=i.ops.concat(o.ops),i}};K_={};ewe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};HYn={randOffset:function(e,r){return Co(e,r)},randOffsetWithRange:function(e,r,i){return awe(e,r,i)},ellipse:function(e,r,i,a,o){let l=LTr(i,a,o);return Ttt(e,r,o,l).opset},doubleLineOps:function(e,r,i,a,o){return wL(e,r,i,a,o,!0)}};ln={canvas:(e,r)=>new DTr(e,r),svg:(e,r)=>new PTr(e,r),generator:(e)=>new Une(e),newSeed:()=>Une.newSeed()}});async function $tt(e){let r=e.getElementsByTagName("img");if(!r||r.length===0)return;let i=!Utt(e);await Promise.all([...r].map((a)=>new Promise((o)=>{function l(){if(a.style.display="flex",a.style.flexDirection="column",i){let h=Ar().fontSize?Ar().fontSize:window.getComputedStyle(document.body).fontSize,d=5,[p=Fs.fontSize]=W_(h),m=p*5+"px";a.style.minWidth=m,a.style.maxWidth=m}else a.style.width="100%";o(a)}I(l,"setupImage"),setTimeout(()=>{if(a.complete)l()}),a.addEventListener("error",l),a.addEventListener("load",l)})))}function Utt(e){if(e.nodeType===XYn)return e.textContent?.trim()!=="";if(e.nodeType!==KYn)return!1;if(e.tagName.toLowerCase()==="img")return!1;return[...e.childNodes].some(Utt)}function Yc(e){let r=e.map((i,a)=>`${a===0?"M":"L"}${i.x},${i.y}`);return r.push("Z"),r.join(" ")}function SL(e,r,i,a,o,l){let h=[],d=50,p=i-e,m=a-r,y=p/l,E=2*Math.PI/y,w=r+m/2;for(let T=0;T<=50;T++){let x=T/50,k=e+x*p,A=w+o*Math.sin(E*(k-e));h.push({x:k,y:A})}return h}function g3(e,r,i,a,o,l){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let E=0;Ep.tagName==="path"),i=document.createElementNS("http://www.w3.org/2000/svg","path"),a=r.map((p)=>p.getAttribute("d")).filter((p)=>p!==null).join(" ");i.setAttribute("d",a);let o=r.find((p)=>p.getAttribute("fill")!=="none"),l=r.find((p)=>p.getAttribute("stroke")!=="none"),h=I((p,m)=>p?.getAttribute(m)??void 0,"getAttr");if(o){let p={fill:h(o,"fill"),"fill-opacity":h(o,"fill-opacity")??"1"};Object.entries(p).forEach(([m,y])=>{if(y)i.setAttribute(m,y)})}if(l){let p={stroke:h(l,"stroke"),"stroke-width":h(l,"stroke-width")??"1","stroke-opacity":h(l,"stroke-opacity")??"1"};Object.entries(p).forEach(([m,y])=>{if(y)i.setAttribute(m,y)})}let d=document.createElementNS("http://www.w3.org/2000/svg","g");return d.appendChild(i),d}function sxr(e,r){return e.intersect(r)}function oxr(e,r,i,a){var{x:o,y:l}=e,h=o-a.x,d=l-a.y,p=Math.sqrt(r*r*d*d+i*i*h*h),m=Math.abs(r*i*h/p);if(a.x0}function hxr(e,r,i){let{x:a,y:o}=e,l=[],{POSITIVE_INFINITY:h,POSITIVE_INFINITY:d}=Number;if(typeof r.forEach==="function")r.forEach(function(y){h=Math.min(h,y.x),d=Math.min(d,y.y)});else h=Math.min(h,r.x),d=Math.min(d,r.y);let p=a-e.width/2-h,m=o-e.height/2-d;for(let y=0;y1)l.sort(function(y,E){let w=y.x-i.x,T=y.y-i.y,x=Math.sqrt(w*w+T*T),k=E.x-i.x,A=E.y-i.y,R=Math.sqrt(k*k+A*A);return xy,":first-child");return E.attr("class","anchor").attr("style",np(d)),La(r,E),r.intersect=function(w){return Ze.info("Circle intersect",r,h,w),ca.circle(r,h,w)},l}function Btt(e,r,i,a,o,l,h){let p=(e+i)/2,m=(r+a)/2,y=Math.atan2(a-r,i-e),E=(i-e)/2,w=(a-r)/2,T=E/o,x=w/l,k=Math.sqrt(T**2+x**2);if(k>1)throw Error("The given radii are too small to create an arc between the points.");let A=Math.sqrt(1-k**2),R=p+A*l*Math.sin(y)*(h?-1:1),N=m-A*o*Math.cos(y)*(h?-1:1),L=Math.atan2((r-N)/l,(e-R)/o),D=Math.atan2((a-N)/l,(i-R)/o)-L;if(h&&D<0)D+=2*Math.PI;if(!h&&D>0)D-=2*Math.PI;let P=[];for(let F=0;F<20;F++){let H=F/19,K=L+H*D,Q=R+o*Math.cos(K),Z=N+l*Math.sin(K);P.push({x:Q,y:Z})}return P}function fxr(e,r,i){let[a,o]=[r,i].sort((l,h)=>h-l);return o*(1-Math.sqrt(1-(e/a/2)**2))}async function pxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=I((K)=>K+h,"calcTotalHeight"),p=I((K)=>{let Q=K/2;return[Q/(2.5+K/50),Q]},"calcEllipseRadius"),{shapeSvg:m,bbox:y}=await ss(e,r,bs(r)),E=d(r?.height?r?.height:y.height),[w,T]=p(E),x=fxr(E,w,T),A=(r?.width?r?.width:y.width)+l*2+x-x,R=E,{cssStyles:N}=r,L=[{x:A/2,y:-R/2},{x:-A/2,y:-R/2},...Btt(-A/2,-R/2,-A/2,R/2,w,T,!1),{x:A/2,y:R/2},...Btt(A/2,R/2,A/2,-R/2,w,T,!0)],B=ln.svg(m),D=ga(r,{});if(r.look!=="handDrawn")D.roughness=0,D.fillStyle="solid";let P=Yc(L),F=B.path(P,D),H=m.insert(()=>F,":first-child");if(H.attr("class","basic label-container outer-path"),N&&r.look!=="handDrawn")H.selectAll("path").attr("style",N);if(a&&r.look!=="handDrawn")H.selectAll("path").attr("style",a);return H.attr("transform",`translate(${w/2}, 0)`),La(r,H),r.intersect=function(K){return ca.polygon(r,L,K)},m}async function gxr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,label:d}=await ss(e,r,bs(r)),p=i?.nodeBorder??i?.lineColor??"currentColor",m=r.padding??12,y=Math.max(h.width+m*2,r.width??0,80),E=Math.max(Math.min(y*0.08,12),5),w=Math.max(h.height+m*2+E,r.height??0),T=-w/2+E,x=w/2,k=y*0.72,A=[`M${-y/2},${T}`,`L${-k/2},${x}`,`A${k/2},${E} 0 0 0 ${k/2},${x}`,`L${y/2},${T}`,`A${y/2},${E} 0 0 0 ${-y/2},${T}`,"Z"].join(" "),{cssStyles:R}=r,N=l.insert("g",":first-child").attr("class","basic label-container");if(r.look==="handDrawn"){let H=ln.svg(l).path(A,ga(r,{}));if(N.node()?.appendChild(H),R)N.attr("style",R)}else N.append("path").attr("d",A).attr("style",o);N.append("ellipse").attr("cx",0).attr("cy",T).attr("rx",y/2).attr("ry",E).attr("style",`fill:none;stroke:${p};stroke-width:1px`),La(r,N);let L=T+(x-T)/2;d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${L-h.height/2-(h.y-(h.top??0))})`);let B=12,D=I((F,H,K)=>Array.from({length:B+1},(Q,Z)=>{let Y=Math.PI-Z*Math.PI/B;return{x:F*Math.cos(Y),y:H+K*E*Math.sin(Y)}}),"arc"),P=[...D(y/2,T,-1),...D(k/2,x,1).reverse()];return r.intersect=function(F){return ca.polygon(r,P,F)},l}function mxr(e){let{themeVariables:r}=Ar(),{clusterBkg:i,clusterBorder:a}=r;switch(e){case"flow":return{rx:10,fill:"none",stroke:r.flowContainerStroke||r.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:sWn,fill:i,stroke:a,cssClass:"collapsed-group"}}}async function bxr(e,r){let i=mxr(r.metadata?.containerType),{fill:a,stroke:o}=i,{nodeStyles:l}=fa(r),{shapeSvg:h,bbox:d}=await ss(e,r,bs(r)),{theme:p,themeVariables:m}=Ar();ty(h,r.colorIndex,p,m.borderColorArray);let y=r.padding??8,E=d.height,w=Math.max(d.width+y*2,aWn,r?.width??0),T=Math.max(E+Rtt+Att+y*2,r?.height??0),x=-w/2,k=-T/2,A=-(Rtt+Att)/2,R=h.select(".label");if(R)if(r.useHtmlLabels??Mp(Ar()))R.attr("transform",`translate(${-d.width/2}, ${-d.height/2+A})`);else R.attr("transform",`translate(0, ${-d.height/2+A})`);let N;if(r.look==="handDrawn"){let F=ln.svg(h),H=ga(r,{fill:a,stroke:o,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...a==="none"?{fillWeight:0}:{fillStyle:"solid"}}),K=F.path(X_(x,k,w,T,i.rx),H);N=h.insert(()=>K,":first-child"),N.attr("class","basic label-container "+i.cssClass).attr("style",np(r.cssStyles))}else if(N=h.insert("rect",":first-child"),N.attr("class","basic label-container "+i.cssClass).attr("style",l).attr("rx",i.rx).attr("ry",i.rx).attr("x",x).attr("y",k).attr("width",w).attr("height",T).attr("fill",a).attr("stroke",o),i.strokeWidth!==void 0)N.attr("stroke-width",i.strokeWidth+"px");let L=k+y+E+Rtt;h.append("line").attr("class","collapsed-separator").attr("x1",x+8).attr("y1",L).attr("x2",x+w-8).attr("y2",L).attr("stroke",o).attr("stroke-dasharray","3, 3");let B=L+Att/2,D=2.5,P=10;for(let F=-1;F<=1;F++)h.append("circle").attr("class","collapsed-indicator").attr("cx",F*P).attr("cy",B).attr("r",D).attr("fill",o);return La(r,N),r.calcIntersect=function(F,H){return ca.rect(F,H)},r.intersect=function(F){return ca.rect(r,F)},h}function b3(e,r,i,a){return e.insert("polygon",":first-child").attr("points",a.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-r/2+","+i/2+")")}async function yxr(e,r){let i=r,{shapeSvg:a,bbox:o}=await ss(e,i,bs(i)),l=i.padding??0,h=o.height+2*l,d=h/2,p=o.width+2*d+l,m=i.width??0,E=i.positioned&&(i.widthInColumns??1)>1&&m>p?m:p,w=uWn(i.directions??[],o,i,E),T=b3(a,E,h,w);return T.attr("style",i.style??null),La(i,T),i.intersect=function(x){return ca.polygon(i,w,x)},a}async function vxr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,label:d}=await ss(e,r,bs(r)),p=i?.nodeBorder??i?.lineColor??"currentColor",m=r.padding??12,y=18,E=12,w=Math.max(h.width+m*2,r.width??0,90),T=Math.max(h.height+m*2+y,r.height??0),x=-T/2,{cssStyles:k}=r,A=l.insert("g",":first-child").attr("class","basic label-container");if(r.look==="handDrawn"){let L=ln.svg(l).path(X_(-w/2,x,w,T,E),ga(r,{}));if(A.node()?.appendChild(L),k)A.attr("style",k)}else A.append("rect").attr("x",-w/2).attr("y",x).attr("width",w).attr("height",T).attr("rx",E).attr("ry",E).attr("style",o);A.append("line").attr("x1",-w/2).attr("y1",x+y).attr("x2",w/2).attr("y2",x+y).attr("style",`stroke:${p};stroke-width:1px`);for(let N=0;N<3;N++)A.append("circle").attr("cx",-w/2+12+N*9).attr("cy",x+y/2).attr("r",2.5).attr("style",`fill:${p};stroke:none`);A.append("rect").attr("class","browser-address-bar").attr("x",-w/2+44).attr("y",x+4).attr("width",Math.max(w-56,10)).attr("height",y-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${p};stroke-width:1px;opacity:0.6`),La(r,A);let R=x+y+(T-y)/2;return d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${R-h.height/2-(h.y-(h.top??0))})`),r.intersect=function(N){return ca.rect(r,N)},l}async function _xr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?28:o,h=r.look==="neo"?24:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=(r?.width??p.width)+(r.look==="neo"?l*2:l+uwe),y=(r?.height??p.height)+(r.look==="neo"?h*2:h),E=0,w=m,T=-y,x=0,k=[{x:E+uwe,y:T},{x:w,y:T},{x:w,y:x},{x:E,y:x},{x:E,y:T+uwe},{x:E+uwe,y:T}],A,{cssStyles:R}=r;if(r.look==="handDrawn"){let N=ln.svg(d),L=ga(r,{}),B=Yc(k),D=N.path(B,L);if(A=d.insert(()=>D,":first-child").attr("transform",`translate(${-m/2}, ${y/2})`),R)A.attr("style",R)}else A=b3(d,m,y,k);if(a)A.attr("style",a);return La(r,A),r.intersect=function(N){return ca.polygon(r,k,N)},d}function Exr(e,r){let{nodeStyles:i}=fa(r);r.label="";let a=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),{cssStyles:o}=r,l=Math.max(28,r.width??0),h=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}],d=ln.svg(a),p=ga(r,{});if(r.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let m=Yc(h),y=d.path(m,p),E=a.insert(()=>y,":first-child");if(o&&r.look!=="handDrawn")E.selectAll("path").attr("style",o);if(i&&r.look!=="handDrawn")E.selectAll("path").attr("style",i);return r.width=28,r.height=28,r.intersect=function(w){return ca.polygon(r,h,w)},a}async function ztt(e,r,i){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,halfPadding:d}=await ss(e,r,bs(r),{ignoreMinWidth:!0}),p=16,m=i?.padding??d,y=Math.sqrt(h.width**2+h.height**2)/2,E=r.look==="neo"?y+p:y+m,w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(l),k=ga(r,{}),A=x.circle(0,0,E*2,k);w=l.insert(()=>A,":first-child"),w.attr("class","basic label-container").attr("style",np(T))}else w=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",E).attr("cx",0).attr("cy",0);return La(r,w),r.calcIntersect=function(x,k){let A=x.width/2;return ca.circle(x,A,k)},r.intersect=function(x){return Ze.info("Circle intersect",r,E,x),ca.circle(r,E,x)},l}async function wxr(e,r){let i=r,a=["node",i.cssClasses,i.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:l,halfPadding:h}=await ss(e,i,a),d=o.insert("rect",":first-child"),p=i.padding??0,m=i.positioned?i.width??0:l.width+p,y=i.positioned?i.height??0:l.height+p,E=i.positioned?-m/2:-l.width/2-h,w=i.positioned?-y/2:-l.height/2-h;return d.attr("class","basic cluster composite label-container").attr("style",i.style??null).attr("rx",i.rx??null).attr("ry",i.ry??null).attr("x",E).attr("y",w).attr("width",m).attr("height",y),La(i,d),i.intersect=function(T){return ca.rect(i,T)},o}async function Sxr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,label:d}=await ss(e,r,bs(r)),p=i?.nodeBorder??i?.lineColor??"currentColor",m=r.padding??12,y=20,E=12,w=Math.max(h.width+m*2,r.width??0,90),T=Math.max(h.height+m*2+y,r.height??0),x=-T/2,{cssStyles:k}=r,A=l.insert("g",":first-child").attr("class","basic label-container");if(r.look==="handDrawn"){let L=ln.svg(l).path(X_(-w/2,x,w,T,E),ga(r,{}));if(A.node()?.appendChild(L),k)A.attr("style",k)}else A.append("rect").attr("x",-w/2).attr("y",x).attr("width",w).attr("height",T).attr("rx",E).attr("ry",E).attr("style",o);A.append("text").attr("x",-w/2+12).attr("y",x+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${p}`).text(">_"),La(r,A);let R=x+y+(T-y)/2;return d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${R-h.height/2-(h.y-(h.top??0))})`),r.intersect=function(N){return ca.rect(r,N)},l}function Txr(e){let r=Math.cos(Math.PI/4),i=Math.sin(Math.PI/4),a=e*2,o={x:a/2*r,y:a/2*i},l={x:-(a/2)*r,y:a/2*i},h={x:-(a/2)*r,y:-(a/2)*i},d={x:a/2*r,y:-(a/2)*i};return`M ${l.x},${l.y} L ${d.x},${d.y} - M ${o.x},${o.y} L ${h.x},${h.y}`}function xxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i,r.label="";let o=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),l=Math.max(30,r?.width??0),{cssStyles:h}=r,d=ln.svg(o),p=ga(r,{});if(r.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let m=d.circle(0,0,l*2,p),y=Txr(l),E=d.path(y,p),w=o.insert(()=>m,":first-child");if(w.insert(()=>E),w.attr("class","outer-path"),h&&r.look!=="handDrawn")w.selectAll("path").attr("style",h);if(a&&r.look!=="handDrawn")w.selectAll("path").attr("style",a);return La(r,w),r.intersect=function(T){return Ze.info("crossedCircle intersect",r,{radius:l,point:T}),ca.circle(r,l,T)},o}function GR(e,r,i,a=100,o=0,l=180){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let E=0;ED,":first-child").attr("stroke-opacity",0),P.insert(()=>L,":first-child"),P.attr("class","text"),w&&r.look!=="handDrawn")P.selectAll("path").attr("style",w);if(a&&r.look!=="handDrawn")P.selectAll("path").attr("style",a);return P.attr("transform",`translate(${E}, 0)`),h.attr("transform",`translate(${-m/2+E-(l.x-(l.left??0))},${-y/2+(r.padding??0)/2-(l.y-(l.top??0))})`),La(r,P),r.intersect=function(F){return ca.polygon(r,x,F)},o}function zR(e,r,i,a=100,o=0,l=180){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let E=0;ED,":first-child").attr("stroke-opacity",0),P.insert(()=>L,":first-child"),P.attr("class","text"),w&&r.look!=="handDrawn")P.selectAll("path").attr("style",w);if(a&&r.look!=="handDrawn")P.selectAll("path").attr("style",a);return P.attr("transform",`translate(${-E}, 0)`),h.attr("transform",`translate(${-m/2+(r.padding??0)/2-(l.x-(l.left??0))},${-y/2+(r.padding??0)/2-(l.y-(l.top??0))})`),La(r,P),r.intersect=function(F){return ca.polygon(r,x,F)},o}function j1(e,r,i,a=100,o=0,l=180){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let E=0;EK,":first-child").attr("stroke-opacity",0),Q.insert(()=>B,":first-child"),Q.insert(()=>F,":first-child"),Q.attr("class","text"),w&&r.look!=="handDrawn")Q.selectAll("path").attr("style",w);if(a&&r.look!=="handDrawn")Q.selectAll("path").attr("style",a);return Q.attr("transform",`translate(${E-E/4}, 0)`),h.attr("transform",`translate(${-m/2+(r.padding??0)/2-(l.x-(l.left??0))},${-y/2+(r.padding??0)/2-(l.y-(l.top??0))})`),La(r,Q),r.intersect=function(Z){return ca.polygon(r,k,Z)},o}async function Rxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=20,p=5,{shapeSvg:m,bbox:y}=await ss(e,r,bs(r)),E=Math.max(p,y.height+h*2,r?.height??0),w=E/2,T=w-Math.sqrt(Math.max(0,w**2-(y.height/2)**2)),x=Math.max(E/4,T),k=Math.max(d,y.width+l*2+x*2,(y.width+l*2)*1.25,r?.width??0),{cssStyles:A}=r,R=ln.svg(m),N=ga(r,{});if(r.look!=="handDrawn")N.roughness=0,N.fillStyle="solid";let L=k,B=E,D=L-w,P=B/4,F=[{x:D,y:0},{x:P,y:0},{x:0,y:B/2},{x:P,y:B},{x:D,y:B},...g3(-D,-B/2,w,50,270,90)],H=Yc(F),K=R.path(H,N),Q=m.insert(()=>K,":first-child");if(Q.attr("class","basic label-container outer-path"),A&&r.look!=="handDrawn")Q.selectChildren("path").attr("style",A);if(a&&r.look!=="handDrawn")Q.selectChildren("path").attr("style",a);return Q.attr("transform",`translate(${-k/2}, ${-E/2})`),La(r,Q),r.intersect=function(Z){return ca.polygon(r,F,Z)},m}async function Ixr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=r.padding??20,p=Math.max(l.width+d*2,r.width??0,100),m=Math.min(Math.max(p*0.23,16),56),y=m*0.27,E=Math.max(l.height+d*2,r.height?r.height-(2*m-y):0),w=Math.min(p*0.177,E*0.45),T=E+2*m-y,x=-T/2,k=x+2*m-y,A=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:R}=r;if(r.look==="handDrawn"){let H=ln.svg(o),K=ga(r,{}),Q=H.path(X_(-p/2,k,p,E,w),K),Z=H.circle(0,x+m,m*2,K);if(A.insert(()=>Z,":first-child"),A.insert(()=>Q,":first-child"),R)A.attr("style",R)}else A.append("rect").attr("x",-p/2).attr("y",k).attr("width",p).attr("height",E).attr("rx",w).attr("ry",w).attr("style",a),A.append("circle").attr("cx",0).attr("cy",x+m).attr("r",m).attr("style",a);La(r,A);let N=k+E/2;h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${N-l.height/2-(l.y-(l.top??0))})`);let L=x+m,B=Math.asin(Math.min(1,(k-L)/m))*180/Math.PI,D=24,F=[...g3(0,-L,m,D,180+B,-B),...g3(-(-p/2+w),-(k+w),w,12,90,0),...g3(-(-p/2+w),-(T/2-w),w,12,360,270),...g3(-(p/2-w),-(T/2-w),w,12,270,180),...g3(-(p/2-w),-(k+w),w,12,180,90)];return r.intersect=function(H){return ca.polygon(r,F,H)},o}async function Oxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?24:o,h=r.look==="neo"?24:o,d=r.width??0;if(r.width){if(r.width=r.width-h,r.widthP,":first-child"),k=p.insert(()=>D,":first-child"),k.attr("class","basic label-container"),A)k.attr("style",A)}else{let R=hWn(0,0,E,x,w,T);k=p.insert("path",":first-child").attr("d",R).attr("class","basic label-container outer-path").attr("style",np(A)).attr("style",a)}return k.attr("label-offset-y",T),k.attr("transform",`translate(${-E/2}, ${-(x/2+T)})`),La(r,k),y.attr("transform",`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+(r.padding??0)/1.5-(m.y-(m.top??0))})`),r.intersect=function(R){let N=ca.rect(r,R),L=N.x-(r.x??0);if(w!=0&&(Math.abs(L)<(r.width??0)/2||Math.abs(L)==(r.width??0)/2&&Math.abs(N.y-(r.y??0))>(r.height??0)/2-T)){let B=T*T*(1-L*L/(w*w));if(B>0)B=Math.sqrt(B);if(B=T-B,R.y-(r.y??0)>0)B=-B;N.y+=B}return N},p}async function PH(e,r,i){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h}=await ss(e,r,bs(r)),d=Math.max(h.width+i.labelPaddingX*2,r?.width||0),p=Math.max(h.height+i.labelPaddingY*2,r?.height||0),m=-d/2,y=-p/2,E,{rx:w,ry:T}=r,{cssStyles:x}=r;if(i?.rx&&i.ry)w=i.rx,T=i.ry;if(r.look==="handDrawn"){let k=ln.svg(l),A=ga(r,{}),R=w||T?k.path(X_(m,y,d,p,w||0),A):k.rectangle(m,y,d,p,A);E=l.insert(()=>R,":first-child"),E.attr("class","basic label-container").attr("style",np(x))}else E=l.insert("rect",":first-child"),E.attr("class","basic label-container").attr("style",o).attr("rx",np(w)).attr("ry",np(T)).attr("x",m).attr("y",y).attr("width",d).attr("height",p);return La(r,E,r.look==="handDrawn"?void 0:{width:d,height:p}),r.calcIntersect=function(k,A){return ca.rect(k,A)},r.intersect=function(k){return ca.rect(r,k)},l}async function Nxr(e,r){let{cssClasses:i,labelPaddingX:a,labelPaddingY:o,padding:l,width:h,height:d}=r,p={rx:0,ry:0,classes:i??"",labelPaddingX:a??(l??0)*2,labelPaddingY:o??l??0},m=await PH(e,r,p);if(r.look==="handDrawn"){let T=ln.svg(m),x=ga(r,{}),k=m.select(".basic.label-container > path:nth-child(2)"),A=k.node();if(!A)return m;let R=null;if(A instanceof SVGGraphicsElement)R=A.getBBox();else return m;return m.insert(()=>T.line(R.x,R.y,R.x+R.width,R.y,x),".basic.label-container g.label"),m.insert(()=>T.line(R.x,R.y+R.height,R.x+R.width,R.y+R.height,x),".basic.label-container g.label"),k.remove(),m}let y=m.select(".basic.label-container"),E=(Number(y.attr("width"))||h)??0,w=(Number(y.attr("height"))||d)??0;if(E>0&&w>0)y.attr("stroke-dasharray",`${E} ${w}`);return m}async function Lxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.look==="neo"?16:r.padding??0,l=r.look==="neo"?16:r.padding??0,{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=d.width+o,y=d.height+l,E=y*0.2,w=-m/2,T=-y/2-E/2,{cssStyles:x}=r,k=ln.svg(h),A=ga(r,{});if(r.look!=="handDrawn")A.roughness=0,A.fillStyle="solid";let R=[{x:w,y:T+E},{x:-w,y:T+E},{x:-w,y:-T},{x:w,y:-T},{x:w,y:T},{x:-w,y:T},{x:-w,y:T+E}],N=k.polygon(R.map((B)=>[B.x,B.y]),A),L=h.insert(()=>N,":first-child");if(L.attr("class","basic label-container outer-path"),x&&r.look!=="handDrawn")L.selectAll("path").attr("style",x);if(a&&r.look!=="handDrawn")L.selectAll("path").attr("style",a);return p.attr("transform",`translate(${w+(r.padding??0)/2-(d.x-(d.left??0))}, ${T+E+(r.padding??0)/2-(d.y-(d.top??0))})`),La(r,L),r.intersect=function(B){return ca.rect(r,B)},h}async function Mxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r),o=r.look==="neo"?12:5;r.labelStyle=i;let l=r.padding??0,h=r.look==="neo"?16:l,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r),{ignoreMinWidth:!0}),m=Math.sqrt(p.width**2+p.height**2)/2,y=(r?.width?r?.width/2:m)+(h??0),E=y+o,w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(d),k=ga(r,{roughness:0.2,strokeWidth:2.5}),A=ga(r,{roughness:0.2,strokeWidth:1.5}),R=x.circle(0,0,E*2,k),N=x.circle(0,0,y*2,A);w=d.insert("g",":first-child"),w.attr("class",np(r.cssClasses)).attr("style",np(T)),w.node()?.appendChild(R),w.node()?.appendChild(N)}else{w=d.insert("g",":first-child");let x=w.insert("circle",":first-child"),k=w.insert("circle");w.attr("class","basic label-container").attr("style",a),x.attr("class","outer-circle").attr("style",a).attr("r",E).attr("cx",0).attr("cy",0),k.attr("class","inner-circle").attr("style",a).attr("r",y).attr("cx",0).attr("cy",0)}return La(r,w),r.intersect=function(x){return Ze.info("DoubleCircle intersect",r,E,x),ca.circle(r,E,x)},d}async function Dxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h}=await ss(e,r,bs(r)),{theme:d,themeVariables:p}=Ar();ty(o,r.colorIndex,d,p.borderColorArray);let m=h??10,y=l.width/2+m*2,E=l.height/2+m*2,w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(o),k=ga(r,{}),A=x.ellipse(0,0,y*2,E*2,k);if(w=o.insert(()=>A,":first-child"),w.attr("class","basic label-container"),T)w.attr("style",T)}else w=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",a).attr("rx",y).attr("ry",E).attr("cx",0).attr("cy",0);return r.width=y*2,r.height=E*2,La(r,w),r.calcIntersect=function(x,k){let A=x.width/2,R=x.height/2;return ca.ellipse(x,A,R,k)},r.intersect=function(x){return ca.ellipse(r,y,E,x)},o}function Pxr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.label="",r.labelStyle=a;let l=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),h=7,{cssStyles:d}=r,p=ln.svg(l),{nodeBorder:m}=i,y=ga(r,{fillStyle:"solid"});if(r.look!=="handDrawn")y.roughness=0;let E=p.circle(0,0,h*2,y),w=l.insert(()=>E,":first-child");if(w.selectAll("path").attr("style",`fill: ${m} !important;`),d&&d.length>0&&r.look!=="handDrawn")w.selectAll("path").attr("style",d);if(o&&r.look!=="handDrawn")w.selectAll("path").attr("style",o);return La(r,w),r.intersect=function(T){return Ze.info("filledCircle intersect",r,{radius:h,point:T}),ca.circle(r,h,T)},l}async function Bxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?o*2:o;if(r.width||r.height){if(r.height=r?.height??0,r.heightR,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");if(T&&r.look!=="handDrawn")N.selectChildren("path").attr("style",T);if(a&&r.look!=="handDrawn")N.selectChildren("path").attr("style",a);return r.width=m,r.height=y,La(r,N),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-y/2+(r.padding??0)/2+(d.y-(d.top??0))})`),r.intersect=function(L){return Ze.info("Triangle intersect",r,w,L),ca.polygon(r,w,L)},h}async function Fxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=r.padding??12,p=Math.max(l.width+d*2,r.width??0,90),m=l.height+d*2,y=Math.max(Math.min(m*0.16,14),8),E=Math.max(m+y,r.height??0),w=E-y,T=Math.max(p*0.38,28),x=-E/2,k=[{x:-p/2,y:x},{x:-p/2+T,y:x},{x:-p/2+T,y:x+y},{x:p/2,y:x+y},{x:p/2,y:E/2},{x:-p/2,y:E/2}],A=[`M${k[0].x},${k[0].y}`,...k.slice(1).map((B)=>`L${B.x},${B.y}`),"Z"].join(" "),{cssStyles:R}=r,N;if(r.look==="handDrawn"){let D=ln.svg(o).path(A,ga(r,{}));if(N=o.insert(()=>D,":first-child").attr("class","basic label-container"),R)N.attr("style",R)}else N=o.insert("path",":first-child").attr("d",A).attr("class","basic label-container").attr("style",a);if(r.look==="handDrawn")La(r,N);else La(r,N,{width:p,height:E});let L=x+y+w/2;return h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${L-l.height/2-(l.y-(l.top??0))})`),r.intersect=function(B){return ca.polygon(r,k,B)},o}function $xr(e,r,{dir:i,config:{state:a,themeVariables:o}}){let{nodeStyles:l}=fa(r);r.label="";let h=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),{cssStyles:d}=r,p=Math.max(70,r?.width??0),m=Math.max(10,r?.height??0);if(i==="LR"||i==="RL")p=Math.max(10,r?.width??0),m=Math.max(70,r?.height??0);let y=-1*p/2,E=-1*m/2,w=ln.svg(h),T=ga(r,{stroke:o.lineColor,fill:o.lineColor});if(r.look!=="handDrawn")T.roughness=0,T.fillStyle="solid";let x=w.rectangle(y,E,p,m,T),k=h.insert(()=>x,":first-child");if(d&&r.look!=="handDrawn")k.selectAll("path").attr("style",d);if(l&&r.look!=="handDrawn")k.selectAll("path").attr("style",l);La(r,k);let A=a?.padding??0;if(r.width&&r.height)r.width+=A/2||0,r.height+=A/2||0;return r.intersect=function(R){return ca.rect(r,R)},h}async function Uxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=15,l=10,h=r.look==="neo"?16:r.padding??0,d=r.look==="neo"?12:r.padding??0;if(r.width||r.height){if(r.height=(r?.height??0)-d*2,r.heightL,":first-child");if(B.attr("class","basic label-container outer-path"),x&&r.look!=="handDrawn")B.selectChildren("path").attr("style",x);if(a&&r.look!=="handDrawn")B.selectChildren("path").attr("style",a);return La(r,B),r.intersect=function(D){return Ze.info("Pill intersect",r,{radius:E,point:D}),ca.polygon(r,R,D)},p}async function Gxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r),o=r.look==="neo"?3.5:4;r.labelStyle=i;let l=r.padding??0,h=70,d=32,p=r.look==="neo"?h:l,m=r.look==="neo"?d:l;if(r.width||r.height){let L=(r.height??0)/o;r.width=(r?.width??0)-2*L-m,r.height=(r.height??0)-p}let{shapeSvg:y,bbox:E}=await ss(e,r,bs(r)),w=(r?.height?r?.height:E.height)+p,T=w/o,x=(r?.width?r?.width:E.width)+2*T+m,k=[{x:T,y:0},{x:x-T,y:0},{x,y:-w/2},{x:x-T,y:-w},{x:T,y:-w},{x:0,y:-w/2}],A,{cssStyles:R}=r;if(r.look==="handDrawn"){let N=ln.svg(y),L=ga(r,{}),B=pWn(0,0,x,w,T),D=N.path(B,L);if(A=y.insert(()=>D,":first-child").attr("transform",`translate(${-x/2}, ${w/2})`),R)A.attr("style",R)}else A=b3(y,x,w,k);if(a)A.attr("style",a);return r.width=x,r.height=w,La(r,A),r.intersect=function(N){return ca.polygon(r,k,N)},y}async function zxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.label="",r.labelStyle=i;let{shapeSvg:o}=await ss(e,r,bs(r)),l=Math.max(30,r?.width??0),h=Math.max(30,r?.height??0),{cssStyles:d}=r,p=ln.svg(o),m=ga(r,{});if(r.look!=="handDrawn")m.roughness=0,m.fillStyle="solid";let y=[{x:0,y:0},{x:l,y:0},{x:0,y:h},{x:l,y:h}],E=Yc(y),w=p.path(E,m),T=o.insert(()=>w,":first-child");if(T.attr("class","basic label-container outer-path"),d&&r.look!=="handDrawn")T.selectChildren("path").attr("style",d);if(a&&r.look!=="handDrawn")T.selectChildren("path").attr("style",a);return T.attr("transform",`translate(${-l/2}, ${-h/2})`),La(r,T),r.intersect=function(x){return Ze.info("Pill intersect",r,{points:y}),ca.polygon(r,y,x)},o}async function Vxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,label:E}=await ss(e,r,"icon-shape default"),w=r.pos==="t",T=d,x=d,{nodeBorder:k}=i,{stylesMap:A}=h3(r),R=-x/2,N=-T/2,L=r.label?8:0,B=ln.svg(m),D=ga(r,{stroke:"none",fill:"none"});if(r.look!=="handDrawn")D.roughness=0,D.fillStyle="solid";let P=B.rectangle(R,N,x,T,D),F=Math.max(x,y.width),H=T+y.height+L,K=B.rectangle(-F/2,-H/2,F,H,{...D,fill:"transparent",stroke:"none"}),Q=m.insert(()=>P,":first-child"),Z=m.insert(()=>K);if(r.icon){let Y=m.append("g");Y.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let j=Y.node().getBBox(),{width:te,height:X,x:W,y:J}=j;Y.attr("transform",`translate(${-te/2-W},${w?y.height/2+L/2-X/2-J:-y.height/2-L/2-X/2-J})`),Y.attr("style",`color: ${A.get("stroke")??k};`)}return E.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${w?-H/2:H/2-y.height})`),Q.attr("transform",`translate(0,${w?y.height/2+L/2:-y.height/2-L/2})`),La(r,Z),r.intersect=function(Y){if(Ze.info("iconSquare intersect",r,Y),!r.label)return ca.rect(r,Y);let j=r.x??0,te=r.y??0,X=r.height??0,W=[];if(w)W=[{x:j-y.width/2,y:te-X/2},{x:j+y.width/2,y:te-X/2},{x:j+y.width/2,y:te-X/2+y.height+L},{x:j+x/2,y:te-X/2+y.height+L},{x:j+x/2,y:te+X/2},{x:j-x/2,y:te+X/2},{x:j-x/2,y:te-X/2+y.height+L},{x:j-y.width/2,y:te-X/2+y.height+L}];else W=[{x:j-x/2,y:te-X/2},{x:j+x/2,y:te-X/2},{x:j+x/2,y:te-X/2+T},{x:j+y.width/2,y:te-X/2+T},{x:j+y.width/2/2,y:te+X/2},{x:j-y.width/2,y:te+X/2},{x:j-y.width/2,y:te-X/2+T},{x:j-x/2,y:te-X/2+T}];return ca.polygon(r,W,Y)},m}async function Hxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,label:E}=await ss(e,r,"icon-shape default"),w=20,T=r.label?8:0,x=r.pos==="t",{nodeBorder:k,mainBkg:A}=i,{stylesMap:R}=h3(r),N=ln.svg(m),L=ga(r,{});if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let B=R.get("fill");L.stroke=B??A;let D=m.append("g");if(r.icon)D.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let P=D.node().getBBox(),{width:F,height:H,x:K,y:Q}=P,Z=Math.max(F,H)*Math.SQRT2+w*2,Y=N.circle(0,0,Z,L),j=Math.max(Z,y.width),te=Z+y.height+T,X=N.rectangle(-j/2,-te/2,j,te,{...L,fill:"transparent",stroke:"none"}),W=m.insert(()=>Y,":first-child"),J=m.insert(()=>X);return D.attr("transform",`translate(${-F/2-K},${x?y.height/2+T/2-H/2-Q:-y.height/2-T/2-H/2-Q})`),D.attr("style",`color: ${R.get("stroke")??k};`),E.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-te/2:te/2-y.height})`),W.attr("transform",`translate(0,${x?y.height/2+T/2:-y.height/2-T/2})`),La(r,J),r.intersect=function(z){return Ze.info("iconSquare intersect",r,z),ca.rect(r,z)},m}async function qxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,halfPadding:E,label:w}=await ss(e,r,"icon-shape default"),T=r.pos==="t",x=d+E*2,k=d+E*2,{nodeBorder:A,mainBkg:R}=i,{stylesMap:N}=h3(r),L=-k/2,B=-x/2,D=r.label?8:0,P=ln.svg(m),F=ga(r,{});if(r.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let H=N.get("fill");F.stroke=H??R;let K=P.path(X_(L,B,k,x,5),F),Q=Math.max(k,y.width),Z=x+y.height+D,Y=P.rectangle(-Q/2,-Z/2,Q,Z,{...F,fill:"transparent",stroke:"none"}),j=m.insert(()=>K,":first-child").attr("class","icon-shape2"),te=m.insert(()=>Y);if(r.icon){let X=m.append("g");X.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let W=X.node().getBBox(),{width:J,height:z,x:ne,y:ie}=W;X.attr("transform",`translate(${-J/2-ne},${T?y.height/2+D/2-z/2-ie:-y.height/2-D/2-z/2-ie})`),X.attr("style",`color: ${N.get("stroke")??A};`)}return w.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${T?-Z/2:Z/2-y.height})`),j.attr("transform",`translate(0,${T?y.height/2+D/2:-y.height/2-D/2})`),La(r,te),r.intersect=function(X){if(Ze.info("iconSquare intersect",r,X),!r.label)return ca.rect(r,X);let W=r.x??0,J=r.y??0,z=r.height??0,ne=[];if(T)ne=[{x:W-y.width/2,y:J-z/2},{x:W+y.width/2,y:J-z/2},{x:W+y.width/2,y:J-z/2+y.height+D},{x:W+k/2,y:J-z/2+y.height+D},{x:W+k/2,y:J+z/2},{x:W-k/2,y:J+z/2},{x:W-k/2,y:J-z/2+y.height+D},{x:W-y.width/2,y:J-z/2+y.height+D}];else ne=[{x:W-k/2,y:J-z/2},{x:W+k/2,y:J-z/2},{x:W+k/2,y:J-z/2+x},{x:W+y.width/2,y:J-z/2+x},{x:W+y.width/2/2,y:J+z/2},{x:W-y.width/2,y:J+z/2},{x:W-y.width/2,y:J-z/2+x},{x:W-k/2,y:J-z/2+x}];return ca.polygon(r,ne,X)},m}async function Yxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,halfPadding:E,label:w}=await ss(e,r,"icon-shape default"),T=r.pos==="t",x=d+E*2,k=d+E*2,{nodeBorder:A,mainBkg:R}=i,{stylesMap:N}=h3(r),L=-k/2,B=-x/2,D=r.label?8:0,P=ln.svg(m),F=ga(r,{});if(r.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let H=N.get("fill");F.stroke=H??R;let K=P.path(X_(L,B,k,x,0.1),F),Q=Math.max(k,y.width),Z=x+y.height+D,Y=P.rectangle(-Q/2,-Z/2,Q,Z,{...F,fill:"transparent",stroke:"none"}),j=m.insert(()=>K,":first-child"),te=m.insert(()=>Y);if(r.icon){let X=m.append("g");X.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let W=X.node().getBBox(),{width:J,height:z,x:ne,y:ie}=W;X.attr("transform",`translate(${-J/2-ne},${T?y.height/2+D/2-z/2-ie:-y.height/2-D/2-z/2-ie})`),X.attr("style",`color: ${N.get("stroke")??A};`)}return w.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${T?-Z/2:Z/2-y.height})`),j.attr("transform",`translate(0,${T?y.height/2+D/2:-y.height/2-D/2})`),La(r,te),r.intersect=function(X){if(Ze.info("iconSquare intersect",r,X),!r.label)return ca.rect(r,X);let W=r.x??0,J=r.y??0,z=r.height??0,ne=[];if(T)ne=[{x:W-y.width/2,y:J-z/2},{x:W+y.width/2,y:J-z/2},{x:W+y.width/2,y:J-z/2+y.height+D},{x:W+k/2,y:J-z/2+y.height+D},{x:W+k/2,y:J+z/2},{x:W-k/2,y:J+z/2},{x:W-k/2,y:J-z/2+y.height+D},{x:W-y.width/2,y:J-z/2+y.height+D}];else ne=[{x:W-k/2,y:J-z/2},{x:W+k/2,y:J-z/2},{x:W+k/2,y:J-z/2+x},{x:W+y.width/2,y:J-z/2+x},{x:W+y.width/2/2,y:J+z/2},{x:W-y.width/2,y:J+z/2},{x:W-y.width/2,y:J-z/2+x},{x:W-k/2,y:J-z/2+x}];return ca.polygon(r,ne,X)},m}async function Wxr(e,r,{config:{flowchart:i}}){let a=new Image;a.src=r?.img??"",await a.decode();let o=Number(a.naturalWidth.toString().replace("px","")),l=Number(a.naturalHeight.toString().replace("px",""));r.imageAspectRatio=o/l;let{labelStyles:h}=fa(r);r.labelStyle=h;let d=i?.wrappingWidth;r.defaultWidth=i?.wrappingWidth;let p=Math.max(r.label?d??0:0,r?.assetWidth??o),m=r.constraint==="on"?r?.assetHeight?r.assetHeight*r.imageAspectRatio:p:p,y=r.constraint==="on"?m/r.imageAspectRatio:r?.assetHeight??l;r.width=Math.max(m,d??0);let{shapeSvg:E,bbox:w,label:T}=await ss(e,r,"image-shape default"),x=r.pos==="t",k=-m/2,A=-y/2,R=r.label?8:0,N=ln.svg(E),L=ga(r,{});if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let B=N.rectangle(k,A,m,y,L),D=Math.max(m,w.width),P=y+w.height+R,F=N.rectangle(-D/2,-P/2,D,P,{...L,fill:"none",stroke:"none"}),H=E.insert(()=>B,":first-child"),K=E.insert(()=>F);if(r.img){let Q=E.append("image");Q.attr("href",r.img),Q.attr("width",m),Q.attr("height",y),Q.attr("preserveAspectRatio","none"),Q.attr("transform",`translate(${-m/2},${x?P/2-y:-P/2})`)}return T.attr("transform",`translate(${-w.width/2-(w.x-(w.left??0))},${x?-y/2-w.height/2-R/2:y/2-w.height/2+R/2})`),H.attr("transform",`translate(0,${x?w.height/2+R/2:-w.height/2-R/2})`),La(r,K),r.intersect=function(Q){if(Ze.info("iconSquare intersect",r,Q),!r.label)return ca.rect(r,Q);let Z=r.x??0,Y=r.y??0,j=r.height??0,te=[];if(x)te=[{x:Z-w.width/2,y:Y-j/2},{x:Z+w.width/2,y:Y-j/2},{x:Z+w.width/2,y:Y-j/2+w.height+R},{x:Z+m/2,y:Y-j/2+w.height+R},{x:Z+m/2,y:Y+j/2},{x:Z-m/2,y:Y+j/2},{x:Z-m/2,y:Y-j/2+w.height+R},{x:Z-w.width/2,y:Y-j/2+w.height+R}];else te=[{x:Z-m/2,y:Y-j/2},{x:Z+m/2,y:Y-j/2},{x:Z+m/2,y:Y-j/2+y},{x:Z+w.width/2,y:Y-j/2+y},{x:Z+w.width/2/2,y:Y+j/2},{x:Z-w.width/2,y:Y+j/2},{x:Z-w.width/2,y:Y-j/2+y},{x:Z-m/2,y:Y-j/2+y}];return ca.polygon(r,te,Q)},E}async function jxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l*2,r.height??0),y=Math.max(p.width+h*2,(r.width??0)-m),E=[{x:0,y:0},{x:y,y:0},{x:y+3*m/6,y:-m},{x:-3*m/6,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(d),k=ga(r,{}),A=Yc(E),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=b3(d,y,m,E);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,E,x)},d}async function Kxr(e,r){let{shapeSvg:i,bbox:a,label:o}=await ss(e,r,"label"),l=i.insert("rect",":first-child"),h=0.1,d=0.1;return l.attr("width",0.1).attr("height",0.1),i.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),La(r,l),r.intersect=function(p){return ca.rect(r,p)},i}async function Xxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l,r.height??0),y=Math.max(p.width+h,(r.width??0)-m),E=[{x:0,y:0},{x:y+3*m/6,y:0},{x:y,y:-m},{x:-(3*m)/6,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(d),k=ga(r,{}),A=Yc(E),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=b3(d,y,m,E);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,E,x)},d}async function Qxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l,r.height??0),y=Math.max(p.width+h,(r.width??0)-m),E=[{x:-3*m/6,y:0},{x:y,y:0},{x:y+3*m/6,y:-m},{x:0,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(d),k=ga(r,{}),A=Yc(E),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=b3(d,y,m,E);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,E,x)},d}function Zxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.label="",r.labelStyle=i;let o=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),{cssStyles:l}=r,h=Math.max(35,r?.width??0),d=Math.max(35,r?.height??0),p=7,m=[{x:h,y:0},{x:0,y:d+p/2},{x:h-2*p,y:d+p/2},{x:0,y:2*d},{x:h,y:d-p/2},{x:2*p,y:d-p/2}],y=ln.svg(o),E=ga(r,{});if(r.look!=="handDrawn")E.roughness=0,E.fillStyle="solid";let w=Yc(m),T=y.path(w,E),x=o.insert(()=>T,":first-child");if(x.attr("class","outer-path"),l&&r.look!=="handDrawn")x.selectAll("path").attr("style",l);if(a&&r.look!=="handDrawn")x.selectAll("path").attr("style",a);return x.attr("transform",`translate(-${h/2},${-d})`),La(r,x),r.intersect=function(k){return Ze.info("lightningBolt intersect",r,k),ca.polygon(r,m,k)},o}async function Jxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?24:o;if(r.width||r.height){let R=r.width??0;if(r.width=(r.width??0)-l,r.widthP,":first-child").attr("class","line"),k=d.insert(()=>D,":first-child"),k.attr("class","basic label-container"),A)k.attr("style",A)}else{let R=gWn(0,0,y,T,E,w,x);k=d.insert("path",":first-child").attr("d",R).attr("class","basic label-container outer-path").attr("style",np(A)).attr("style",a)}return k.attr("label-offset-y",w),k.attr("transform",`translate(${-y/2}, ${-(T/2+w)})`),La(r,k),m.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+w-(p.y-(p.top??0))})`),r.intersect=function(R){let N=ca.rect(r,R),L=N.x-(r.x??0);if(E!=0&&(Math.abs(L)<(r.width??0)/2||Math.abs(L)==(r.width??0)/2&&Math.abs(N.y-(r.y??0))>(r.height??0)/2-w)){let B=w*w*(1-L*L/(E*E));if(B>0)B=Math.sqrt(B);if(B=w-B,R.y-(r.y??0)>0)B=-B;N.y+=B}return N},d}async function eCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o;if(r.width||r.height){let B=r.width;if(r.width=(B??0)*10/11-l*2,r.width<10)r.width=10;if(r.height=(r?.height??0)-h*2,r.height<10)r.height=10}let{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=(r?.width?r?.width:p.width)+(l??0)*2,E=(r?.height?r?.height:p.height)+(h??0)*2,w=r.look==="neo"?E/4:E/8,T=E+w,{cssStyles:x}=r,k=ln.svg(d),A=ga(r,{});if(r.look!=="handDrawn")A.roughness=0,A.fillStyle="solid";let R=[{x:-y/2-y/2*0.1,y:-T/2},{x:-y/2-y/2*0.1,y:T/2},...SL(-y/2-y/2*0.1,T/2,y/2+y/2*0.1,T/2,w,0.8),{x:y/2+y/2*0.1,y:-T/2},{x:-y/2-y/2*0.1,y:-T/2},{x:-y/2,y:-T/2},{x:-y/2,y:T/2*1.1},{x:-y/2,y:-T/2}],N=k.polygon(R.map((B)=>[B.x,B.y]),A),L=d.insert(()=>N,":first-child");if(L.attr("class","basic label-container outer-path"),x&&r.look!=="handDrawn")L.selectAll("path").attr("style",x);if(a&&r.look!=="handDrawn")L.selectAll("path").attr("style",a);return L.attr("transform",`translate(0,${-w/2})`),m.attr("transform",`translate(${-y/2+(r.padding??0)+y/2*0.1/2-(p.x-(p.left??0))},${-E/2+(r.padding??0)-w-(p.y-(p.top??0))})`),La(r,L),r.intersect=function(B){return ca.polygon(r,R,B)},d}async function Vne(e,r,i,a){let{labelStyles:o,nodeStyles:l}=fa(r);r.labelStyle=o;let h=i==="icon"||r.stereotype!==void 0?{...r,icon:i==="icon"?void 0:r.icon,stereotype:void 0}:r,{shapeSvg:d,bbox:p,label:m}=await ss(e,h,bs(r,`usecase-actor-variant usecase-actor-${i}`)),y=r.accessibleName??r.label;if(y)d.attr("role","img").attr("aria-label",y);m.attr("class","label actor-label usecase-actor-label");let{theme:E,themeVariables:w}=Ar();ty(d,r.colorIndex,E,w.borderColorArray);let T,x;if(r.stereotype){let H=await XP(d,`«${r.stereotype}»`,{labelStyle:o,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0,width:r.wrappingWidth});T=H.label.attr("class","label usecase-stereotype"),x=H.bbox}let k=d.append("g").attr("class",`usecase-actor-glyph ${_Wn[i]}`).attr("style",l||null);await a(k,r),SWn(k,r,i);let A=r.padding??vWn,R=x?.height??0,N=Itt+YTr+p.height+(x?R+WTr:0),L=Math.max(yWn,p.width,x?.width??0)+A*2,B=N+A*2,D=-N/2;k.attr("transform",`translate(0,${D+Itt/2})`);let P=D+Itt+YTr;if(T&&x)P+=R/2,XTr(T,x,P),P+=R/2+WTr;XTr(m,p,P+p.height/2);let F=d.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-L/2).attr("y",-B/2).attr("width",L).attr("height",B).attr("opacity",0).attr("aria-hidden","true");return La(r,F),r.intersect=(H)=>ca.rect(r,H),d}async function tCr(e,r){return Vne(e,r,"normal",(i,a)=>{Vtt(i,a,TWn,"usecase-actor-stick")})}async function rCr(e,r){return Vne(e,r,"awesome",(i,a)=>{Vtt(i,a,xWn,"usecase-actor-awesome-silhouette")})}async function nCr(e,r){return Vne(e,r,"hollow",(i,a)=>{wWn(i,a,0,-23,9,"usecase-actor-hollow-head",!0),Vtt(i,a,CWn,"usecase-actor-hollow-body",!0)})}async function iCr(e,r){return Vne(e,r,"icon",kWn)}async function aCr(e,r){let i=r,{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let l=i.stereotype?{...r,stereotype:void 0}:r,{shapeSvg:h,bbox:d,halfPadding:p,label:m}=await ss(e,l,bs(r,"usecase-business-shape"));m.attr("class","label usecase-label");let{theme:y,themeVariables:E}=Ar();ty(h,r.colorIndex,y,E.borderColorArray);let w,T;if(i.stereotype){let j=await XP(h,`«${i.stereotype}»`,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0,width:r.wrappingWidth});w=j.label.attr("class","label usecase-stereotype"),T=j.bbox}let x=T?2:0,k=d.height+(T?.height??0)+x,A=Math.max(d.width,T?.width??0),R=p??10,N=A/2+R*2,L=k/2+R*2,B=Math.min(Math.max(R/5,1),R/2),D=A/2+B,P=N-B,F=D/N,H=P/N,K=L*Math.sqrt(Math.max(0,1-F*F)),Q=-L*Math.sqrt(Math.max(0,1-H*H));if(w&&T)JTr(w,T,-k/2+T.height/2);JTr(m,d,k/2-d.height/2);let Z;if(r.look==="handDrawn"){let te=ln.svg(h).ellipse(0,0,N*2,L*2,ga(r,{}));Z=h.insert(()=>te,":first-child").attr("class","basic label-container usecase-business-ellipse")}else Z=h.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",N).attr("ry",L).attr("cx",0).attr("cy",0);h.append("path").attr("class","usecase-business-marker").attr("d",`M ${D} ${K} L ${P} ${Q}`).attr("fill","none").attr("style",o||null);let Y=i.accessibleName??i.label;if(Y)h.attr("role","img").attr("aria-label",Y);return La(r,Z),r.calcIntersect=(j,te)=>ca.ellipse(j,j.width/2,j.height/2,te),r.intersect=(j)=>ca.ellipse(r,N,L,j),h}async function sCr(e,r){let i=r,{labelStyles:a,nodeStyles:o}=fa(r),{stylesMap:l}=h3(r);r.labelStyle=a;let{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r,"usecase-json-table"));if(h.attr("role","img"),i.accessibleName)h.attr("aria-label",i.accessibleName);p.attr("class","label usecase-json-title");let m=h.append("g").attr("class","usecase-json-table-grid"),y=[];for(let j of i.jsonRows??[]){let te=await XP(m,j.key,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0}),X=await XP(m,j.value,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0});y.push({key:{label:te.label.attr("class","label usecase-json-key"),bbox:te.bbox},value:{label:X.label.attr("class","label usecase-json-value"),bbox:X.bbox}})}let E=Math.max(0,...y.map(({key:j})=>j.bbox.width))+Ntt*2,w=Math.max(0,...y.map(({value:j})=>j.bbox.width))+Ntt*2,T=d.width+Ntt*2,x=Math.max(T,E+w),k=w+Math.max(0,x-E-w),A=d.height+exr*2,R=y.map(({key:j,value:te})=>Math.max(j.bbox.height,te.bbox.height)+exr*2),N=A+R.reduce((j,te)=>j+te,0),L=RWn(l.get("stroke-width")),B=x+L*2,D=N+L*2,P=-x/2,F=-N/2,H=r.look==="handDrawn"?ln.svg(h):void 0,K=H?ga(r,{}):void 0,Q=I((j,te,X,W,J,z)=>{if(H&&K){let ne=H.rectangle(X,W,J,z,K);return j.insert(()=>ne,":first-child").attr("class",te)}return j.insert("rect",":first-child").attr("class",te).attr("x",X).attr("y",W).attr("width",J).attr("height",z).attr("style",o)},"insertCell"),Z=Q(h,"label-container usecase-json-border",-B/2,-D/2,B,D);Q(m,"usecase-json-cell usecase-json-title-cell",P,F,x,A),m.node()?.append(p.node()),Ltt(p,d,0,F+A/2);let Y=F+A;return y.forEach(({key:j,value:te},X)=>{let W=R[X],J=m.append("g").attr("class","usecase-json-row").attr("data-row-index",X).attr("transform",`translate(0,${Y})`);Q(J,"usecase-json-cell usecase-json-key-cell",P,0,E,W),Q(J,"usecase-json-cell usecase-json-value-cell",P+E,0,k,W),J.node()?.append(j.label.node(),te.label.node()),Ltt(j.label,j.bbox,P+E/2,W/2),Ltt(te.label,te.bbox,P+E+k/2,W/2),Y+=W}),La(r,Z),r.intersect=(j)=>ca.rect(r,j),h}async function oCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=r.look==="neo"?10:5;if(r.width||r.height)r.width=Math.max((r?.width??0)-l*2-2*d,10),r.height=Math.max((r?.height??0)-h*2-2*d,10);let{shapeSvg:p,bbox:m,label:y}=await ss(e,r,bs(r)),E=(r?.width?r?.width:m.width)+l*2+2*d,w=(r?.height?r?.height:m.height)+h*2+2*d,T=E-2*d,x=w-2*d,k=-T/2,A=-x/2,{cssStyles:R}=r,N=ln.svg(p),L=ga(r,{}),B=[{x:k-d,y:A+d},{x:k-d,y:A+x+d},{x:k+T-d,y:A+x+d},{x:k+T-d,y:A+x},{x:k+T,y:A+x},{x:k+T,y:A+x-d},{x:k+T+d,y:A+x-d},{x:k+T+d,y:A-d},{x:k+d,y:A-d},{x:k+d,y:A},{x:k,y:A},{x:k,y:A+d}],D=[{x:k,y:A+d},{x:k+T-d,y:A+d},{x:k+T-d,y:A+x},{x:k+T,y:A+x},{x:k+T,y:A},{x:k,y:A}];if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let P=Yc(B),F=N.path(P,L),H=Yc(D),K=N.path(H,L);if(r.look!=="handDrawn")F=Dtt(F),K=Dtt(K);let Q=p.insert("g",":first-child");if(Q.insert(()=>F),Q.insert(()=>K),Q.attr("class","basic label-container outer-path"),R&&r.look!=="handDrawn")Q.selectAll("path").attr("style",R);if(a&&r.look!=="handDrawn")Q.selectAll("path").attr("style",a);return y.attr("transform",`translate(${-(m.width/2)-d-(m.x-(m.left??0))}, ${-(m.height/2)+d-(m.y-(m.top??0))})`),La(r,Q),r.intersect=function(Z){return ca.polygon(r,B,Z)},p}async function lCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=r.padding??0,p=r.look==="neo"?16:d,m=r.look==="neo"?12:d,y=!0;if(r.width||r.height)y=!1,r.width=(r?.width??0)-p*2,r.height=(r?.height??0)-m*3;let E=Math.max(l.width,r?.width??0)+p*2,w=Math.max(l.height,r?.height??0)+m*3,T=r.look==="neo"?w/4:w/8,x=w+(y?T/2:-T/2),k=-E/2,A=-x/2,R=10,{cssStyles:N}=r,L=SL(k-R,A+x+R,k+E-R,A+x+R,T,0.8),B=L?.[L.length-1],D=[{x:k-R,y:A+R},{x:k-R,y:A+x+R},...L,{x:k+E-R,y:B.y-R},{x:k+E,y:B.y-R},{x:k+E,y:B.y-2*R},{x:k+E+R,y:B.y-2*R},{x:k+E+R,y:A-R},{x:k+R,y:A-R},{x:k+R,y:A},{x:k,y:A},{x:k,y:A+R}],P=[{x:k,y:A+R},{x:k+E-R,y:A+R},{x:k+E-R,y:B.y-R},{x:k+E,y:B.y-R},{x:k+E,y:A},{x:k,y:A}],F=ln.svg(o),H=ga(r,{});if(r.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let K=Yc(D),Q=F.path(K,H),Z=Yc(P),Y=F.path(Z,H),j=o.insert(()=>Q,":first-child");if(j.insert(()=>Y),j.attr("class","basic label-container outer-path"),N&&r.look!=="handDrawn")j.selectAll("path").attr("style",N);if(a&&r.look!=="handDrawn")j.selectAll("path").attr("style",a);return j.attr("transform",`translate(0,${-T/2})`),h.attr("transform",`translate(${-(l.width/2)-R-(l.x-(l.left??0))}, ${-(l.height/2)+R-T-(l.y-(l.top??0))})`),La(r,j),r.intersect=function(te){return ca.polygon(r,D,te)},o}async function cCr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);if(r.labelStyle=a,!(r.useHtmlLabels||Mp(ea())))r.centerLabel=!0;let{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=Math.max(d.width+(r.padding??0)*2,r?.width??0),y=Math.max(d.height+(r.padding??0)*2,r?.height??0),E=-m/2,w=-y/2,{cssStyles:T}=r,x=ln.svg(h),k=ga(r,{fill:i.noteBkgColor,stroke:i.noteBorderColor});if(r.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let A=x.rectangle(E,w,m,y,k),R=h.insert(()=>A,":first-child");if(R.attr("class","basic label-container outer-path"),p.attr("class","label noteLabel"),T&&r.look!=="handDrawn")R.selectAll("path").attr("style",T);if(o&&r.look!=="handDrawn")R.selectAll("path").attr("style",o);return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),La(r,R),r.intersect=function(N){return ca.rect(r,N)},h}async function uCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l}=await ss(e,r,bs(r)),h=l.width+(r.padding??0),d=l.height+(r.padding??0),p=h+d,m=0.5,y=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],E,{cssStyles:w}=r;if(r.look==="handDrawn"){let T=ln.svg(o),x=ga(r,{}),k=IWn(0,0,p),A=T.path(k,x);if(E=o.insert(()=>A,":first-child").attr("transform",`translate(${-p/2+m}, ${p/2})`),w)E.attr("style",w)}else E=b3(o,p,p,y),E.attr("transform",`translate(${-p/2+m}, ${p/2})`);if(a)E.attr("style",a);return La(r,E),r.calcIntersect=function(T,x){let k=T.width,A=[{x:k/2,y:0},{x:k,y:-k/2},{x:k/2,y:-k},{x:0,y:-k/2}];return ca.polygon(T,A,x)},r.intersect=function(T){return this.calcIntersect(r,T)},o}async function hCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?21:o??0,h=r.look==="neo"?12:o??0,{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=p.width+(r.look==="neo"?l*2:l),E=Math.max(p.height+(r.look==="neo"?h*2:h),r.height??0),w=E/4,x=-Math.max(y,(r.width??0)-w)/2,k=-E/2,A=k/2,R=[{x:x+A,y:k},{x,y:0},{x:x+A,y:-k},{x:-x,y:-k},{x:-x,y:k}],{cssStyles:N}=r,L=ln.svg(d),B=ga(r,{});if(r.look!=="handDrawn")B.roughness=0,B.fillStyle="solid";let D=Yc(R),P=L.path(D,B),F=d.insert(()=>P,":first-child");if(F.attr("class","basic label-container outer-path"),N&&r.look!=="handDrawn")F.selectAll("path").attr("style",N);if(a&&r.look!=="handDrawn")F.selectAll("path").attr("style",a);return F.attr("transform",`translate(${-A/2},0)`),m.attr("transform",`translate(${-A/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),La(r,F),r.intersect=function(H){return ca.polygon(r,R,H)},d}async function dCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o;if(!r.cssClasses)o="node default";else o="node "+r.cssClasses;let l=e.insert("g").attr("class",o).attr("id",r.domId||r.id),h=l.insert("g"),d=l.insert("g").attr("class","label").attr("style",a),{description:p,label:m}=r,y=await wC(d,m,r.labelStyle,!0,!0),E={width:0,height:0};if(Mp(Ar())){let H=y.children[0],K=xn(y);E=H.getBoundingClientRect(),K.attr("width",E.width),K.attr("height",E.height)}Ze.info("Text 2",p);let w=p||[],T=y.getBBox(),x=await wC(d,Array.isArray(w)?w.join("
    "):w,r.labelStyle,!0,!0),k=x.children[0],A=xn(x);E=k.getBoundingClientRect(),A.attr("width",E.width),A.attr("height",E.height);let R=(r.padding||0)/2;xn(x).attr("transform","translate( "+(E.width>T.width?0:(T.width-E.width)/2)+", "+(T.height+R+5)+")"),xn(y).attr("transform","translate( "+(E.width(Ze.debug("Rough node insert CXC",Q),Z),":first-child"),P=l.insert(()=>(Ze.debug("Rough node insert CXC",Q),Q),":first-child")}else P=h.insert("rect",":first-child"),F=h.insert("line"),P.attr("class","outer title-state").attr("style",a).attr("x",-E.width/2-R).attr("y",-E.height/2-R).attr("width",E.width+(r.padding||0)).attr("height",E.height+(r.padding||0)),F.attr("class","divider").attr("x1",-E.width/2-R).attr("x2",E.width/2+R).attr("y1",-E.height/2-R+T.height+R).attr("y2",-E.height/2-R+T.height+R);return La(r,P),r.intersect=function(H){return ca.rect(r,H)},l}async function fCr(e,r,{config:{themeVariables:i}}){let a=i?.radius??5,o={rx:a,ry:a,classes:"",labelPaddingX:(r?.padding??0)*1,labelPaddingY:(r?.padding??0)*1};return PH(e,r,o)}async function pCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.look==="neo"?16:r.padding??0,l=r.look==="neo"?12:r.padding??0,{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=(r?.width??d.width)+o*2+(r.look==="neo"?KP:KP*2),y=(r?.height??d.height)+l*2,E=m-KP,w=y,T=KP-m/2,x=-y/2,{cssStyles:k}=r,A=ln.svg(h),R=ga(r,{});if(r.look!=="handDrawn")R.roughness=0,R.fillStyle="solid";let N=[{x:T,y:x},{x:T+E,y:x},{x:T+E,y:x+w},{x:T-KP,y:x+w},{x:T-KP,y:x},{x:T,y:x},{x:T,y:x+w}],L=A.polygon(N.map((D)=>[D.x,D.y]),R),B=h.insert(()=>L,":first-child");if(B.attr("class","basic label-container outer-path").attr("style",np(k)),a&&r.look!=="handDrawn")B.selectAll("path").attr("style",a);if(k&&r.look!=="handDrawn")B.selectAll("path").attr("style",a);return p.attr("transform",`translate(${KP/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),La(r,B),r.intersect=function(D){return ca.rect(r,D)},h}async function gCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o;if(r.width||r.height)r.width=Math.max((r?.width??0)-l*2,10),r.height=Math.max((r?.height??0)/1.5-h*2,10);let{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=(r?.width?r?.width:p.width)+l*2,E=((r?.height?r?.height:p.height)+h*2)*1.5,w=y,T=E/1.5,x=-w/2,k=-T/2,{cssStyles:A}=r,R=ln.svg(d),N=ga(r,{});if(r.look!=="handDrawn")N.roughness=0,N.fillStyle="solid";let L=[{x,y:k},{x,y:k+T},{x:x+w,y:k+T},{x:x+w,y:k-T/2}],B=Yc(L),D=R.path(B,N),P=d.insert(()=>D,":first-child");if(P.attr("class","basic label-container outer-path"),A&&r.look!=="handDrawn")P.selectChildren("path").attr("style",A);if(a&&r.look!=="handDrawn")P.selectChildren("path").attr("style",a);return P.attr("transform",`translate(0, ${T/4})`),m.attr("transform",`translate(${-w/2+(r.padding??0)-(p.x-(p.left??0))}, ${-T/4+(r.padding??0)-(p.y-(p.top??0))})`),La(r,P),r.intersect=function(F){return ca.polygon(r,L,F)},d}async function mCr(e,r){let i=r.padding??0,a=r.look==="neo"?16:i*2,o=r.look==="neo"?12:i,l={rx:0,ry:0,classes:"",labelPaddingX:r.labelPaddingX??a,labelPaddingY:o},h=await PH(e,r,l);if(r.colorIndex!==void 0){let{theme:d,themeVariables:p}=Ar();ty(h,r.colorIndex,d,p.borderColorArray)}return h}async function bCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?40:o,h=r.look==="neo"?24:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),{w:m,h:y}=OWn(p,l,h),E=y/2,{cssStyles:w}=r,T=ln.svg(d),x=ga(r,{});if(r.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let k=[{x:-m/2+E,y:-y/2},{x:m/2-E,y:-y/2},...g3(-m/2+E,0,E,Ftt,90,270),{x:m/2-E,y:y/2},...g3(m/2-E,0,E,Ftt,270,450)],A=Yc(k),R=T.path(A,x),N=d.insert(()=>R,":first-child");if(N.attr("class","basic label-container outer-path"),w&&r.look!=="handDrawn")N.selectChildren("path").attr("style",w);if(a&&r.look!=="handDrawn")N.selectChildren("path").attr("style",a);return La(r,N),r.intersect=function(L){return ca.polygon(r,k,L)},d}async function yCr(e,r){let i={rx:r.look==="neo"?3:5,ry:r.look==="neo"?3:5,classes:"flowchart-node"};return PH(e,r,i)}function vCr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{cssStyles:l}=r,{lineColor:h,stateBorder:d,nodeBorder:p,nodeShadow:m}=i;if(r.width||r.height){if((r.width??0)<14)r.width=14;if((r.height??0)<14)r.height=14}if(!r.width)r.width=14;if(!r.height)r.height=14;let y=e.insert("g").attr("class","node default").attr("id",r.domId??r.id),E=ln.svg(y),w=ga(r,{});if(r.look!=="handDrawn")w.roughness=0,w.fillStyle="solid";let T=E.circle(0,0,r.width,{...w,stroke:h,strokeWidth:2}),x=d??p,k=(r.width??0)*5/14,A=E.circle(0,0,k,{...w,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),R=y.insert(()=>T,":first-child");if(R.insert(()=>A),r.look!=="handDrawn")R.attr("class","outer-path");if(l)R.selectAll("path").attr("style",l);if(o)R.selectAll("path").attr("style",o);if(r.width<25&&m&&r.look!=="handDrawn"){let N=e.node()?.ownerSVGElement?.id??"",L=N?`${N}-drop-shadow-small`:"drop-shadow-small";R.attr("style",`filter:url(#${L})`)}return La(r,R),r.intersect=function(N){return ca.circle(r,(r.width??0)/2,N)},y}function _Cr(e,r,{config:{themeVariables:i}}){let{lineColor:a,nodeShadow:o}=i;if(r.width||r.height){if((r.width??0)<14)r.width=14;if((r.height??0)<14)r.height=14}if(!r.width)r.width=14;if(!r.height)r.height=14;let l=e.insert("g").attr("class","node default").attr("id",r.domId||r.id),h;if(r.look==="handDrawn"){let p=ln.svg(l).circle(0,0,r.width,Cwr(a));h=l.insert(()=>p),h.attr("class","state-start").attr("r",(r.width??7)/2).attr("width",r.width??14).attr("height",r.height??14)}else h=l.insert("circle",":first-child"),h.attr("class","state-start").attr("r",(r.width??7)/2).attr("width",r.width??14).attr("height",r.height??14);if(r.width<25&&o&&r.look!=="handDrawn"){let d=e.node()?.ownerSVGElement?.id??"",p=d?`${d}-drop-shadow-small`:"drop-shadow-small";h.attr("style",`filter:url(#${p})`)}return La(r,h),r.intersect=function(d){return ca.circle(r,(r.width??7)/2,d)},l}async function ECr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r?.padding??8,l=r.look==="neo"?28:o,h=r.look==="neo"?12:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.width+2*LH+l,r.width??0),y=Math.max(p.height+h,r.height??0),E=m-2*LH,w=y,T=-m/2,x=-y/2,k=[{x:0,y:0},{x:E,y:0},{x:E,y:-w},{x:0,y:-w},{x:0,y:0},{x:-8,y:0},{x:E+8,y:0},{x:E+8,y:-w},{x:-8,y:-w},{x:-8,y:0}];if(r.look==="handDrawn"){let A=ln.svg(d),R=ga(r,{}),N=A.rectangle(T,x,E+16,w,R),L=A.line(T+LH,x,T+LH,x+w,R),B=A.line(T+LH+E,x,T+LH+E,x+w,R);d.insert(()=>L,":first-child"),d.insert(()=>B,":first-child");let D=d.insert(()=>N,":first-child"),{cssStyles:P}=r;D.attr("class","basic label-container").attr("style",np(P)),La(r,D)}else{let A=b3(d,E,w,k);if(a)A.attr("style",a);La(r,A)}return r.intersect=function(A){return ca.polygon(r,k,A)},d}async function wCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o;if(r.width||r.height)r.height=Math.max((r?.height??0)-h*2,10),r.width=Math.max((r?.width??0)-l*2-Mtt*(r.height+h*2),10);let{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=(r?.height?r?.height:p.height)+h*2,y=Mtt*m,E=Mtt*m,T=(r?.width?r?.width:p.width)+l*2+y-y,x=m,k=-T/2,A=-x/2,{cssStyles:R}=r,N=ln.svg(d),L=ga(r,{}),B=[{x:k-y/2,y:A},{x:k+T+y/2,y:A},{x:k+T+y/2,y:A+x},{x:k-y/2,y:A+x}],D=[{x:k+T-y/2,y:A+x},{x:k+T+y/2,y:A+x},{x:k+T+y/2,y:A+x-E}];if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let P=Yc(B),F=N.path(P,L),H=Yc(D),K=N.path(H,{...L,fillStyle:"solid"}),Q=d.insert(()=>K,":first-child");if(Q.insert(()=>F,":first-child"),Q.attr("class","basic label-container outer-path"),R&&r.look!=="handDrawn")Q.selectAll("path").attr("style",R);if(a&&r.look!=="handDrawn")Q.selectAll("path").attr("style",a);return La(r,Q),r.intersect=function(Z){return ca.polygon(r,B,Z)},d}async function SCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=Math.max(l.width+(r.padding??0)*2,r?.width??0),p=Math.max(l.height+(r.padding??0)*2,r?.height??0),m=p/8,y=0.2*d,E=0.2*p,w=p+m,{cssStyles:T}=r,x=ln.svg(o),k=ga(r,{});if(r.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let A=[{x:-d/2-d/2*0.1,y:w/2},...SL(-d/2-d/2*0.1,w/2,d/2+d/2*0.1,w/2,m,0.8),{x:d/2+d/2*0.1,y:-w/2},{x:-d/2-d/2*0.1,y:-w/2}],R=-d/2+d/2*0.1,N=-w/2-E*0.4,L=[{x:R+d-y,y:(N+p)*1.3},{x:R+d,y:N+p-E},{x:R+d,y:(N+p)*0.9},...SL(R+d,(N+p)*1.25,R+d-y,(N+p)*1.3,-p*0.02,0.5)],B=Yc(A),D=x.path(B,k),P=Yc(L),F=x.path(P,{...k,fillStyle:"solid"}),H=o.insert(()=>F,":first-child");if(H.insert(()=>D,":first-child"),H.attr("class","basic label-container outer-path"),T&&r.look!=="handDrawn")H.selectAll("path").attr("style",T);if(a&&r.look!=="handDrawn")H.selectAll("path").attr("style",a);return H.attr("transform",`translate(0,${-m/2})`),h.attr("transform",`translate(${-d/2+(r.padding??0)-(l.x-(l.left??0))},${-p/2+(r.padding??0)-m/2-(l.y-(l.top??0))})`),La(r,H),r.intersect=function(K){return ca.polygon(r,A,K)},o}async function TCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l}=await ss(e,r,bs(r)),h=Math.max(l.width+(r.padding??0),r?.width||0),d=Math.max(l.height+(r.padding??0),r?.height||0),p=-h/2,m=-d/2,y=o.insert("rect",":first-child");return y.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",p).attr("y",m).attr("width",h).attr("height",d),La(r,y),r.intersect=function(E){return ca.rect(r,E)},o}async function xCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?12:o/2,h=r.height??0;if(r.height){if(r.height=r.height-l,r.heightB,":first-child"),k=d.insert(()=>L,":first-child"),k.attr("class","basic label-container"),x)k.attr("style",x)}else{let A=NWn(0,0,T,y,w,E);if(k=d.insert("path",":first-child").attr("d",A).attr("class","basic label-container").attr("style",np(x)).attr("style",a),k.attr("class","basic label-container outer-path"),x)k.selectAll("path").attr("style",x);if(a)k.selectAll("path").attr("style",a)}return k.attr("label-offset-x",w),k.attr("transform",`translate(${-T/2}, ${y/2} )`),m.attr("transform",`translate(${-(p.width/2)-w-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),La(r,k),r.intersect=function(A){let R=ca.rect(r,A),N=R.y-(r.y??0);if(E!=0&&(Math.abs(N)<(r.height??0)/2||Math.abs(N)==(r.height??0)/2&&Math.abs(R.x-(r.x??0))>(r.width??0)/2-w)){let L=w*w*(1-N*N/(E*E));if(L!=0)L=Math.sqrt(Math.abs(L));if(L=w-L,A.x-(r.x??0)>0)L=-L;R.x+=L}return R},d}async function CCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?o:o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l,r.height??0),y=Math.max(p.width+h,(r.width??0)-m),E=[{x:-3*m/6,y:0},{x:y+3*m/6,y:0},{x:y,y:-m},{x:0,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=ln.svg(d),k=ga(r,{}),A=Yc(E),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=b3(d,y,m,E);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,E,x)},d}async function kCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=15,p=5;if(r.width||r.height){if(r.height=(r.height??0)-h*2,r.heightN,":first-child");if(L.attr("class","basic label-container outer-path"),T&&r.look!=="handDrawn")L.selectChildren("path").attr("style",T);if(a&&r.look!=="handDrawn")L.selectChildren("path").attr("style",a);return La(r,L),r.intersect=function(B){return ca.polygon(r,A,B)},m}async function ACr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?o*2:o;if(r.width||r.height){if(r.width=((r?.width??0)-l)/2,r.widthN,":first-child").attr("transform",`translate(${-E/2}, ${E/2})`).attr("class","outer-path");if(x&&r.look!=="handDrawn")L.selectChildren("path").attr("style",x);if(a&&r.look!=="handDrawn")L.selectChildren("path").attr("style",a);return r.width=y,r.height=E,La(r,L),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${E/2-(d.height+(r.padding??0)/(m?2:1)-(d.y-(d.top??0)))})`),r.intersect=function(B){return Ze.info("Triangle intersect",r,T,B),ca.polygon(r,T,B)},h}async function RCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=!0;if(r.width||r.height){if(d=!1,r.width=(r?.width??0)-l*2,r.width<10)r.width=10;if(r.height=(r?.height??0)-h*2,r.height<10)r.height=10}let{shapeSvg:p,bbox:m,label:y}=await ss(e,r,bs(r)),E=(r?.width?r?.width:m.width)+(l??0)*2,w=(r?.height?r?.height:m.height)+(h??0)*2,T=r.look==="neo"?w/4:w/8,x=w+(d?T:-T),{cssStyles:k}=r,R=14-E,N=R>0?R/2:0,L=ln.svg(p),B=ga(r,{});if(r.look!=="handDrawn")B.roughness=0,B.fillStyle="solid";let D=[{x:-E/2-N,y:x/2},...SL(-E/2-N,x/2,E/2+N,x/2,T,0.8),{x:E/2+N,y:-x/2},{x:-E/2-N,y:-x/2}],P=Yc(D),F=L.path(P,B),H=p.insert(()=>F,":first-child");if(H.attr("class","basic label-container outer-path"),k&&r.look!=="handDrawn")H.selectAll("path").attr("style",k);if(a&&r.look!=="handDrawn")H.selectAll("path").attr("style",a);return H.attr("transform",`translate(0,${-T/2})`),y.attr("transform",`translate(${-E/2+(r.padding??0)-(m.x-(m.left??0))},${-w/2+(r.padding??0)-T-(m.y-(m.top??0))})`),La(r,H),r.intersect=function(K){return ca.polygon(r,D,K)},p}async function ICr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?20:o;if(r.width||r.height){if(r.width=r?.width??0,r.width<20)r.width=20;if(r.height=r?.height??0,r.height<10)r.height=10;let B=Math.min(r.height*0.2,r.height/4);r.height=Math.ceil(r.height-h-B*2.2222222222222223),r.width=r.width-l*2}let{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=(r?.width?r?.width:p.width)+l*2,y=(r?.height?r?.height:p.height)+h,E=y/8,w=y+E*2,{cssStyles:T}=r,x=ln.svg(d),k=ga(r,{});if(r.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let A=[{x:-m/2,y:w/2},...SL(-m/2,w/2,m/2,w/2,E,1),{x:m/2,y:-w/2},...SL(m/2,-w/2,-m/2,-w/2,E,-1)],R=Yc(A),N=x.path(R,k),L=d.insert(()=>N,":first-child");if(L.attr("class","basic label-container"),T&&r.look!=="handDrawn")L.selectAll("path").attr("style",T);if(a&&r.look!=="handDrawn")L.selectAll("path").attr("style",a);return La(r,L),r.intersect=function(B){return ca.polygon(r,A,B)},d}async function OCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.look==="neo"?16:r.padding??0,l=r.look==="neo"?12:r.padding??0;if(r.width||r.height)r.width=Math.max((r?.width??0)-o*2-Fp,10),r.height=Math.max((r?.height??0)-l*2-Fp,10);let{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=(r?.width?r?.width:d.width)+o*2+Fp,y=(r?.height?r?.height:d.height)+l*2+Fp,E=m-Fp,w=y-Fp,T=-E/2,x=-w/2,{cssStyles:k}=r,A=ln.svg(h),R=ga(r,{}),N=[{x:T-Fp,y:x-Fp},{x:T-Fp,y:x+w},{x:T+E,y:x+w},{x:T+E,y:x-Fp}],L=`M${T-Fp},${x-Fp} L${T+E},${x-Fp} L${T+E},${x+w} L${T-Fp},${x+w} L${T-Fp},${x-Fp} - M${T-Fp},${x} L${T+E},${x} - M${T},${x-Fp} L${T},${x+w}`;if(r.look!=="handDrawn")R.roughness=0,R.fillStyle="solid";let B=A.path(L,R),D=h.insert(()=>B,":first-child");if(D.attr("transform",`translate(${Fp/2}, ${Fp/2})`),D.attr("class","basic label-container outer-path"),k&&r.look!=="handDrawn")D.selectAll("path").attr("style",k);if(a&&r.look!=="handDrawn")D.selectAll("path").attr("style",a);return p.attr("transform",`translate(${-(d.width/2)+Fp/2-(d.x-(d.left??0))}, ${-(d.height/2)+Fp/2-(d.y-(d.top??0))})`),La(r,D),r.intersect=function(P){return ca.polygon(r,N,P)},h}async function Htt(e,r){let i=r;if(i.alias)r.label=i.alias;let{theme:a,themeVariables:o}=ea(),{rowEven:l,rowOdd:h,nodeBorder:d,borderColorArray:p}=o;if(r.look==="handDrawn"){let{themeVariables:Ie}=ea(),{background:Ee}=Ie,Ue={...r,id:r.id+"-background",domId:(r.domId||r.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Ee}`]};await Htt(e,Ue)}let m=ea();r.useHtmlLabels=m.htmlLabels;let y=m.er?.diagramPadding??10,E=m.er?.entityPadding??6,{cssStyles:w}=r,{labelStyles:T,nodeStyles:x}=fa(r);if(i.attributes.length===0&&r.label){let Ie={rx:0,ry:0,labelPaddingX:y,labelPaddingY:y*1.5,classes:""};if(ey(r.label,m)+Ie.labelPaddingX*20){let Ie=R.width+y*2-(D+P+F+H);if(D+=Ie/Z,P+=Ie/Z,F>0)F+=Ie/Z;if(H>0)H+=Ie/Z}let j=D+P+F+H,te=ln.svg(A),X=ga(r,{});if(r.look!=="handDrawn")X.roughness=0,X.fillStyle="solid";let W=0;if(B.length>0)W=B.reduce((Ie,Ee)=>Ie+(Ee?.rowHeight??0),0);let J=Math.max(Y.width+y*2,r?.width||0,j),z=Math.max((W??0)+R.height,r?.height||0),ne=-J/2,ie=-z/2;if(A.selectAll("g:not(:first-child)").each((Ie,Ee,Ue)=>{let Me=xn(Ue[Ee]),Xe=Me.attr("transform"),je=0,Qe=0;if(Xe){let pt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xe);if(pt){if(je=parseFloat(pt[1]),Qe=parseFloat(pt[2]),Me.attr("class").includes("attribute-name"))je+=D;else if(Me.attr("class").includes("attribute-keys"))je+=D+P;else if(Me.attr("class").includes("attribute-comment"))je+=D+P+F}}Me.attr("transform",`translate(${ne+y/2+je}, ${Qe+ie+R.height+E/2})`)}),A.select(".name").attr("transform","translate("+-R.width/2+", "+(ie+E/2)+")"),a!=null&&axr.has(a)){let Ie=i.colorIndex??0;A.attr("data-color-id",`color-${Ie%p.length}`)}let le=te.rectangle(ne,ie,J,z,X),se=A.insert(()=>le,":first-child").attr("class","outer-path").attr("style",w.join(""));L.push(0);for(let[Ie,Ee]of B.entries()){let Me=(Ie+1)%2===0&&Ee.yOffset!==0,Xe=te.rectangle(ne,R.height+ie+Ee?.yOffset,J,Ee?.rowHeight,{...X,fill:Me?l:h,stroke:d});A.insert(()=>Xe,"g.label").attr("style",w.join("")).attr("class",`row-rect-${Me?"even":"odd"}`)}let he=0.0001,ye=DH(ne,R.height+ie,J+ne,R.height+ie,he),xe=te.polygon(ye.map((Ie)=>[Ie.x,Ie.y]),X);if(A.insert(()=>xe).attr("class","divider"),ye=DH(D+ne,R.height+ie,D+ne,z+ie,he),xe=te.polygon(ye.map((Ie)=>[Ie.x,Ie.y]),X),A.insert(()=>xe).attr("class","divider"),K){let Ie=D+P+ne;ye=DH(Ie,R.height+ie,Ie,z+ie,he),xe=te.polygon(ye.map((Ee)=>[Ee.x,Ee.y]),X),A.insert(()=>xe).attr("class","divider")}if(Q){let Ie=D+P+F+ne;ye=DH(Ie,R.height+ie,Ie,z+ie,he),xe=te.polygon(ye.map((Ee)=>[Ee.x,Ee.y]),X),A.insert(()=>xe).attr("class","divider")}for(let Ie of L){let Ee=R.height+ie+Ie;ye=DH(ne,Ee,J+ne,Ee,he),xe=te.polygon(ye.map((Ue)=>[Ue.x,Ue.y]),X),A.insert(()=>xe).attr("class","divider")}if(La(r,se),x&&r.look!=="handDrawn")if(a!=null&&DWn.has(a))A.selectAll("path").attr("style",x);else{let Ee=x.split(";")?.filter((Ue)=>Ue.includes("stroke"))?.map((Ue)=>`${Ue}`).join("; ");A.selectAll("path").attr("style",Ee??""),A.selectAll(".row-rect-even path").attr("style",x)}return r.intersect=function(Ie){return ca.rect(r,Ie)},A}async function MH(e,r,i,a=0,o=0,l=[],h=""){let d=e.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${a}, ${o})`).attr("style",h);if(r!==r3(r))r=r3(r),r=r.replaceAll("<","<").replaceAll(">",">");let p=d.node().appendChild(await ug(d,r,{width:ey(r,i)+100,style:h,useHtmlLabels:i.htmlLabels},i));if(r.includes("<")||r.includes(">")){let y=p.children[0];y.textContent=y.textContent.replaceAll("<","<").replaceAll(">",">");while(y.childNodes[0])y=y.childNodes[0],y.textContent=y.textContent.replaceAll("<","<").replaceAll(">",">")}let m=p.getBBox();if(zE(i.htmlLabels)){let y=p.children[0];y.style.textAlign="start";let E=xn(p);m=y.getBoundingClientRect(),E.attr("width",m.width),E.attr("height",m.height)}return m}function DH(e,r,i,a,o){if(e===i)return[{x:e-o/2,y:r},{x:e+o/2,y:r},{x:i+o/2,y:a},{x:i-o/2,y:a}];return[{x:e,y:r-o/2},{x:e,y:r+o/2},{x:i,y:a+o/2},{x:i,y:a-o/2}]}async function NCr(e,r,i,a,o=i.class.padding??12){let l=!a?3:0,h=e.insert("g").attr("class",bs(r)).attr("id",r.domId||r.id),d=null,p=null,m=null,y=null,E=0,w=0,T=0;if(d=h.insert("g").attr("class","annotation-group text"),r.annotations.length>0){let N=r.annotations[0];await zne(d,{text:`«${N}»`},0),E=d.node().getBBox().height}p=h.insert("g").attr("class","label-group text"),await zne(p,r,0,["font-weight: bolder"]);let x=p.node().getBBox();w=x.height,m=h.insert("g").attr("class","members-group text");let k=0;for(let N of r.members){let L=await zne(m,N,k,[N.parseClassifier()]);k+=L+l}if(T=m.node().getBBox().height,T<=0)T=o/2;y=h.insert("g").attr("class","methods-group text");let A=0;for(let N of r.methods){let L=await zne(y,N,A,[N.parseClassifier()]);A+=L+l}let R=h.node().getBBox();if(d!==null){let N=d.node().getBBox();d.attr("transform",`translate(${-N.width/2})`)}return p.attr("transform",`translate(${-x.width/2}, ${E})`),R=h.node().getBBox(),m.attr("transform",`translate(0, ${E+w+o*2})`),R=h.node().getBBox(),y.attr("transform",`translate(0, ${E+w+(T?T+o*4:o*2)})`),R=h.node().getBBox(),{shapeSvg:h,bbox:R}}async function zne(e,r,i,a=[]){let o=e.insert("g").attr("class","label").attr("style",a.join("; ")),l=ea(),h="useHtmlLabels"in r?r.useHtmlLabels:zE(l.htmlLabels)??!0,d="";if("text"in r)d=r.text;else d=r.label;if(!h&&d.startsWith("\\"))d=d.substring(1);if(bf(d))h=!0;let p=await ug(o,H_e(vC(d)),{width:ey(d,l)+50,classes:"markdown-node-label",useHtmlLabels:h},l),m,y=1;if(!h){if(a.includes("font-weight: bolder"))xn(p).selectAll("tspan").attr("font-weight","");y=p.children.length;let E=p.children[0];if(p.textContent===""||p.textContent.includes(">")){if(E.textContent=d[0]+d.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),d[1]===" ")E.textContent=E.textContent[0]+" "+E.textContent.substring(1)}if(E.textContent==="undefined")E.textContent="";m=p.getBBox()}else{let E=p.children[0],w=xn(p);if(y=E.innerHTML.split("
    ").length,E.innerHTML.includes(""))y+=E.innerHTML.split("").length-1;await $tt(E),m=E.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}return o.attr("transform","translate(0,"+(-m.height/(2*y)+i)+")"),m.height}async function LCr(e,r){let i=Ar(),{theme:a,themeVariables:o}=i,{useGradient:l,borderColorArray:h}=o,d=i.class.padding??12,p=d,m=r.useHtmlLabels??zE(i.htmlLabels)??!0,y=r;y.annotations=y.annotations??[],y.members=y.members??[],y.methods=y.methods??[];let{shapeSvg:E,bbox:w}=await NCr(e,r,i,m,p);ty(E,r.colorIndex,a,h);let{labelStyles:T,nodeStyles:x}=fa(r);r.labelStyle=T,r.cssStyles=y.styles||"";let k=y.styles?.join(";")||x||"";if(!r.cssStyles)r.cssStyles=k.replaceAll("!important","").split(";");let A=y.members.length===0&&y.methods.length===0&&!i.class?.hideEmptyMembersBox,R=ln.svg(E),N=ga(r,{});if(r.look!=="handDrawn")N.roughness=0,N.fillStyle="solid";let L=Math.max(r.width??0,w.width),B=Math.max(r.height??0,w.height),D=(r.height??0)>w.height;if(y.members.length===0&&y.methods.length===0)B+=p;else if(y.members.length>0&&y.methods.length===0)B+=p*2;let P=-L/2,F=-B/2,H=A?d*2:y.members.length===0&&y.methods.length===0?-d:0;if(D)H=d*2;let K=R.rectangle(P-d,F-d-(A?d:y.members.length===0&&y.methods.length===0?-d/2:0),L+2*d,B+2*d+H,N),Q=E.insert(()=>K,":first-child");Q.attr("class","basic label-container outer-path");let Z=Q.node().getBBox(),Y=E.select(".annotation-group").node().getBBox().height-(A?d/2:0)||0,j=E.select(".label-group").node().getBBox().height-(A?d/2:0)||0,te=E.select(".members-group").node().getBBox().height-(A?d/2:0)||0,X=(Y+j+F+d-(F-d-(A?d:y.members.length===0&&y.methods.length===0?-d/2:0)))/2;if(E.selectAll(".text").each((W,J,z)=>{let ne=xn(z[J]),ie=ne.attr("transform"),le=0;if(ie){let xe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ie);if(xe)le=parseFloat(xe[2])}let se=le+F+d-(A?d:y.members.length===0&&y.methods.length===0?-d/2:0);if(ne.attr("class").includes("methods-group")){let ye=Math.max(te,p/2);if(D)se=Math.max(X,Y+j+ye+F+p*2+d)+p*2;else se=Y+j+ye+F+p*4+d}if(y.members.length===0&&y.methods.length===0&&i.class?.hideEmptyMembersBox)if(y.annotations.length>0)se=le-p;else se=le;if(!m)se-=4;let he=P;if(ne.attr("class").includes("label-group")||ne.attr("class").includes("annotation-group"))he=-ne.node()?.getBBox().width/2||0,E.selectAll("text").each(function(ye,xe,Ie){if(window.getComputedStyle(Ie[xe]).textAnchor==="middle")he=0});ne.attr("transform",`translate(${he}, ${se})`)}),y.members.length>0||y.methods.length>0||A){let W=Y+j+F+d,J=R.line(Z.x,W,Z.x+Z.width,W+0.001,N);E.insert(()=>J).attr("class",`divider${r.look==="neo"&&!l?" neo-line":""}`).attr("style",k)}if(A||y.members.length>0||y.methods.length>0){let W=Y+j+te+F+p*2+d,J=R.line(Z.x,D?Math.max(X,W):W,Z.x+Z.width,(D?Math.max(X,W):W)+0.001,N);E.insert(()=>J).attr("class",`divider${r.look==="neo"&&!l?" neo-line":""}`).attr("style",k)}if(y.look!=="handDrawn")E.selectAll("path").attr("style",k);if(Q.select(":nth-child(2)").attr("style",k),E.selectAll(".divider").select("path").attr("style",k),r.labelStyle)E.selectAll("span").attr("style",r.labelStyle);else E.selectAll("span").attr("style",k);if(!m){let W=RegExp(/color\s*:\s*([^;]*)/),J=W.exec(k);if(J){let z=J[0].replace("color","fill");E.selectAll("tspan").attr("style",z)}else if(T){let z=W.exec(T);if(z){let ne=z[0].replace("color","fill");E.selectAll("tspan").attr("style",ne)}}}return La(r,Q),r.intersect=function(W){return ca.rect(r,W)},E}async function MCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r,l=r,h=20,d=20,p="verifyMethod"in r,m=bs(r),y=Ar(),{themeVariables:E}=y,{borderColorArray:w,requirementEdgeLabelBackground:T}=E,x=y.layout==="elk"?"start":"center",k=e.insert("g").attr("class",m).attr("id",r.domId??r.id),A;if(p)A=await p3(k,`<<${o.type}>>`,0,r.labelStyle);else A=await p3(k,"<<Element>>",0,r.labelStyle);let R=A,N=await p3(k,o.name,R,r.labelStyle+"; font-weight: bold;");if(R+=N+d,p){let Z=await p3(k,`${o.requirementId?`ID: ${o.requirementId}`:""}`,R,r.labelStyle,x);R+=Z;let Y=await p3(k,`${o.text?`Text: ${o.text}`:""}`,R,r.labelStyle,x);R+=Y;let j=await p3(k,`${o.risk?`Risk: ${o.risk}`:""}`,R,r.labelStyle,x);R+=j,await p3(k,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,R,r.labelStyle,x)}else{let Z=await p3(k,`${l.type?`Type: ${l.type}`:""}`,R,r.labelStyle,x);R+=Z,await p3(k,`${l.docRef?`Doc Ref: ${l.docRef}`:""}`,R,r.labelStyle,x)}let L=(k.node()?.getBBox().width??200)+h,B=(k.node()?.getBBox().height??200)+h,D=-L/2,P=-B/2,F=ln.svg(k),H=ga(r,{});if(r.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let K=F.rectangle(D,P,L,B,H),Q=k.insert(()=>K,":first-child");if(Q.attr("class","basic label-container outer-path").attr("style",a),w?.length){let Z=r.colorIndex??0;k.attr("data-color-id",`color-${Z%w.length}`)}if(k.selectAll(".label").each((Z,Y,j)=>{let te=xn(j[Y]),X=te.attr("transform"),W=0,J=0;if(X){let le=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(X);if(le)W=parseFloat(le[1]),J=parseFloat(le[2])}let z=J-B/2,ne=D+h/2;if(Y===0||Y===1)ne=W;te.attr("transform",`translate(${ne}, ${z+h})`)}),R>A+N+d){let Z=P+A+N+d,Y;if(r.look==="neo"){let X=[[D,Z],[D+L,Z],[D+L,Z+0.001],[D,Z+0.001]];Y=F.polygon(X,H)}else Y=F.line(D,Z,D+L,Z,H);k.insert(()=>Y).attr("class","divider")}if(La(r,Q),r.intersect=function(Z){return ca.rect(r,Z)},a&&r.look!=="handDrawn"&&(T||w?.length))k.selectAll("path").attr("style",a);return k}async function p3(e,r,i,a="",o="center"){if(r==="")return 0;let l=e.insert("g").attr("class","label").attr("style",a),h=Ar(),d=h.htmlLabels??!0,p=await ug(l,H_e(vC(r)),{width:ey(r,h)+50,classes:"markdown-node-label",useHtmlLabels:d,style:a},h),m;if(!d){let y=p.children[0];for(let E of y.children)if(a)E.setAttribute("style",a);if(o==="start"){y.setAttribute("text-anchor","start");for(let E of y.children)E.setAttribute("text-anchor","start")}m=p.getBBox(),m.height+=6}else{let y=p.children[0],E=xn(p);if(o==="start")xn(y).style("text-align","left");m=y.getBoundingClientRect(),E.attr("width",m.width),E.attr("height",m.height)}return l.attr("transform",`translate(${-m.width/2},${-m.height/2+i})`),m.height}async function DCr(e,r,{config:i}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a||"";let l=10,h=r.width;r.width=(r.width??200)-10;let{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=r.padding||10,E="",w;if("ticket"in r&&r.ticket&&i?.kanban?.ticketBaseUrl)E=i?.kanban?.ticketBaseUrl.replace("#TICKET#",r.ticket),w=d.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",E).attr("target","_blank");let T={useHtmlLabels:r.useHtmlLabels,labelStyle:r.labelStyle||"",width:r.width,img:r.img,padding:r.padding||8,centerLabel:!1},x,k;if(w)({label:x,bbox:k}=await XP(w,"ticket"in r&&r.ticket||"",T));else({label:x,bbox:k}=await XP(d,"ticket"in r&&r.ticket||"",T));let{label:A,bbox:R}=await XP(d,"assigned"in r&&r.assigned||"",T);r.width=h;let N=10,L=r?.width||0,B=Math.max(k.height,R.height)/2,D=Math.max(p.height+N*2,r?.height||0)+B,P=-L/2,F=-D/2;m.attr("transform","translate("+(y-L/2)+", "+(-B-p.height/2)+")"),x.attr("transform","translate("+(y-L/2)+", "+(-B+p.height/2)+")"),A.attr("transform","translate("+(y+L/2-R.width-2*l)+", "+(-B+p.height/2)+")");let H,{rx:K,ry:Q}=r,{cssStyles:Z}=r;if(r.look==="handDrawn"){let Y=ln.svg(d),j=ga(r,{}),te=K||Q?Y.path(X_(P,F,L,D,K||0),j):Y.rectangle(P,F,L,D,j);H=d.insert(()=>te,":first-child"),H.attr("class","basic label-container").attr("style",Z?Z:null)}else{H=d.insert("rect",":first-child"),H.attr("class","basic label-container __APA__").attr("style",o).attr("rx",K??5).attr("ry",Q??5).attr("x",P).attr("y",F).attr("width",L).attr("height",D);let Y="priority"in r&&r.priority;if(Y){let j=d.append("line"),te=P+2,X=F+Math.floor((K??0)/2),W=F+D-Math.floor((K??0)/2);j.attr("x1",te).attr("y1",X).attr("x2",te).attr("y2",W).attr("stroke-width","4").attr("stroke",PWn(Y))}}return La(r,H),r.height=D,r.intersect=function(Y){return ca.rect(r,Y)},d}async function PCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h,label:d}=await ss(e,r,bs(r)),p=l.width+10*h,m=l.height+8*h,y=0.15*p,{cssStyles:E}=r,w=l.width+20,T=l.height+20,x=Math.max(p,w),k=Math.max(m,T);d.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`);let A,R=`M0 0 +`)}`)}};globalThis.injected??={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"};I(lTr,"preprocessMarkdown");I(cTr,"nonMarkdownToLines");I(ewe,"markdownToLines");I(uTr,"nonMarkdownToHTML");I(hTr,"markdownToHTML");GYn=function(e){var r=function(){},i=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(m){return setTimeout(m,16)};function a(){var m=this;m.reads=[],m.writes=[],m.raf=i.bind(e),r("initialized",m)}I(a,"FastDom"),a.prototype={constructor:a,runTasks:I(function(m){r("run tasks");var y;while(y=m.shift())y()},"runTasks"),measure:I(function(m,y){r("measure");var v=!y?m:m.bind(y);return this.reads.push(v),o(this),v},"measure"),mutate:I(function(m,y){r("mutate");var v=!y?m:m.bind(y);return this.writes.push(v),o(this),v},"mutate"),clear:I(function(m){return r("clear",m),h(this.reads,m)||h(this.writes,m)},"clear"),extend:I(function(m){if(r("extend",m),typeof m!="object")throw Error("expected object");var y=Object.create(this);if(d(y,m),y.fastdom=this,y.initialize)y.initialize();return y},"extend"),catch:null};function o(m){if(!m.scheduled)m.scheduled=!0,m.raf(l.bind(null,m)),r("flush scheduled")}I(o,"scheduleFlush");function l(m){r("flush");var{writes:y,reads:v}=m,w;try{r("flushing reads",v.length),m.runTasks(v),r("flushing writes",y.length),m.runTasks(y)}catch(T){w=T}if(m.scheduled=!1,v.length||y.length)o(m);if(w)if(r("task errored",w.message),m.catch)m.catch(w);else throw w}I(l,"flush");function h(m,y){var v=m.indexOf(y);return!!~v&&!!m.splice(v,1)}I(h,"remove");function d(m,y){for(var v in y)if(y.hasOwnProperty(v))m[v]=y[v]}I(d,"mixin");var p=e.fastdom=e.fastdom||new a;return p}(typeof window<"u"?window:globalThis),dTr={initialize:I(function(){this._tasks=new Map},"initialize"),mutate:I(function(e,r){return btt(this,"mutate",e,r)},"mutate"),measure:I(function(e,r){return btt(this,"measure",e,r)},"measure"),clear:I(function(e){var r=this._tasks,i=r.get(e);this.fastdom.clear(i),r.delete(e)},"clear")};I(btt,"create");({initialize:o7a,mutate:l7a,measure:c7a,clear:u7a}=dTr),zYn=dTr,VYn=GYn.extend({raf(e){if(typeof queueMicrotask==="function")queueMicrotask(e);else setTimeout(e,0)}}).extend(zYn),VR=VYn;I(fTr,"splitTextToChars");I(pTr,"splitWordToFitWidth");I(_tt,"splitWordToFitWidthRecursion");I(gTr,"splitLineToFitWidth");I(JEe,"splitLineToFitWidthRecursion");I(ytt,"applyStyle");I(mTr,"addHtmlSpan");I(twe,"createTspan");I(bTr,"computeWidthOfText");I(Ett,"computeDimensionOfText");I(yTr,"createFormattedText");I(vtt,"decodeHTMLEntities");I(rwe,"updateTextContentAndStyles");I(vTr,"replaceIconSubstring");ug=I(async(e,r="",{style:i="",isTitle:a=!1,classes:o="",useHtmlLabels:l=!0,markdown:h=!0,isNode:d=!0,width:p=200,minWidth:m=0,addSvgBackground:y=!1}={},v)=>{if(Ze.debug("XYZ createText",r,i,a,o,l,d,"addSvgBackground: ",y),l){let w=h?hTr(r,v):uTr(r),T=await vTr(EC(w),v),x=r.replace(/\\\\/g,"\\"),k={isNode:d,label:bf(r)?x:T,labelStyle:i.replace("fill:","color:")};return await mTr(e,k,p,o,y,v,m)}else{let w=EC(r.replace(//g,"
    ")),T=h?ewe(w.replace("
    ","
    "),v):cTr(w),x=yTr(p,e,T,r?y:!1,!d);if(d){if(/stroke:/.exec(i))i=i.replace("stroke:","lineColor:");let k=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");xn(x).attr("style",k)}else{let k=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");xn(x).select("rect").attr("style",k.replace(/background:/g,"fill:"));let A=i.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");xn(x).select("text").attr("style",A)}if(a)xn(x).selectAll("tspan.text-outer-tspan").classed("title-row",!0);else xn(x).selectAll("tspan.text-outer-tspan").classed("row",!0);return x}},"createText")});var Une,HYn=12,qYn=64,rm,nm,YYn,hg,p3,KS,ty;var I0=Re(()=>{Ja();Une=new Set(["redux-color","redux-dark-color"]),rm=I((e)=>Array.isArray(e)&&e.length>0,"hasPalette"),nm=I((e,r)=>e!=null&&Une.has(e)&&rm(r),"isColorTheme"),YYn=/^[\w-]+$/,hg=I((e)=>{let r=typeof e==="string"||typeof e==="number"?String(e):"";return YYn.test(r)?r:"classic"},"safeLook"),p3=I((e)=>rm(e)?e.length:0,"paletteSlotCount"),KS=I((e,r)=>{if(rm(r))return p3(r);return typeof e==="number"&&Number.isInteger(e)&&e>0&&e<=qYn?e:HYn},"colorSlotCount"),ty=I((e,r,i,a)=>{if(r===void 0||!nm(i,a))return;let o=r%p3(a);e.attr("data-color-id",`color-${o}`)},"stampColorSlot")});function wtt(e,r,i){if(e&&e.length){let[a,o]=r,l=Math.PI/180*i,h=Math.cos(l),d=Math.sin(l);for(let p of e){let[m,y]=p;p[0]=(m-a)*h-(y-o)*d+a,p[1]=(m-a)*d+(y-o)*h+o}}}function WYn(e,r){return e[0]===r[0]&&e[1]===r[1]}function jYn(e,r,i,a=1){let o=i,l=Math.max(r,0.1),h=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,d=[0,0];if(o)for(let m of h)wtt(m,d,o);let p=function(m,y,v){let w=[];for(let N of m){let L=[...N];WYn(L[0],L[L.length-1])||L.push([L[0][0],L[0][1]]),L.length>2&&w.push(L)}let T=[];y=Math.max(y,0.1);let x=[];for(let N of w)for(let L=0;LN.yminL.ymin?1:N.xL.x?1:N.ymax===L.ymax?0:(N.ymax-L.ymax)/Math.abs(N.ymax-L.ymax)),!x.length)return T;let k=[],A=x[0].ymin,R=0;for(;k.length||x.length;){if(x.length){let N=-1;for(let L=0;LA);L++)N=L;x.splice(0,N+1).forEach((L)=>{k.push({s:A,edge:L})})}if(k=k.filter((N)=>!(N.edge.ymax<=A)),k.sort((N,L)=>N.edge.x===L.edge.x?0:(N.edge.x-L.edge.x)/Math.abs(N.edge.x-L.edge.x)),(v!==1||R%y==0)&&k.length>1)for(let N=0;N=k.length)break;let B=k[N].edge,D=k[L].edge;T.push([[Math.round(B.x),A],[Math.round(D.x),A]])}A+=v,k.forEach((N)=>{N.edge.x=N.edge.x+v*N.edge.islope}),R++}return T}(h,l,a);if(o){for(let m of h)wtt(m,d,-o);(function(m,y,v){let w=[];m.forEach((T)=>w.push(...T)),wtt(w,y,v)})(p,d,-o)}return p}function Hne(e,r){var i;let a=r.hachureAngle+90,o=r.hachureGap;o<0&&(o=4*r.strokeWidth),o=Math.round(Math.max(o,0.1));let l=1;return r.roughness>=1&&(((i=r.randomizer)===null||i===void 0?void 0:i.next())||Math.random())>0.7&&(l=o),jYn(e,o,a,l||1)}class hwe{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){let i=Hne(e,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(e,r){let i=[];for(let a of e)i.push(...this.helper.doubleLineOps(a[0][0],a[0][1],a[1][0],a[1][1],r));return i}}function dwe(e){let r=e[0],i=e[1];return Math.sqrt(Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2))}class ITr{constructor(e){this.helper=e}fillPolygons(e,r){let i=Hne(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(e,r){let i=[],a=r.hachureGap;a<0&&(a=4*r.strokeWidth),a=Math.max(a,0.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);let l=a/4;for(let h of e){let d=dwe(h),p=d/a,m=Math.ceil(p)-1,y=d-m*a,v=(h[0][0]+h[1][0])/2-a/4,w=Math.min(h[0][1],h[1][1]);for(let T=0;T{let h=dwe(l),d=Math.floor(h/(i+a)),p=(h+a-d*(i+a))/2,m=l[0],y=l[1];m[0]>y[0]&&(m=l[1],y=l[0]);let v=Math.atan((y[1]-m[1])/(y[0]-m[0]));for(let w=0;w{let l=dwe(o),h=Math.round(l/(2*r)),d=o[0],p=o[1];d[0]>p[0]&&(d=o[1],p=o[0]);let m=Math.atan((p[1]-d[1])/(p[0]-d[0]));for(let y=0;yy%2?m+i:m+r);l.push({key:"C",data:p}),r=p[4],i=p[5];break}case"Q":l.push({key:"Q",data:[...d]}),r=d[2],i=d[3];break;case"q":{let p=d.map((m,y)=>y%2?m+i:m+r);l.push({key:"Q",data:p}),r=p[2],i=p[3];break}case"A":l.push({key:"A",data:[...d]}),r=d[5],i=d[6];break;case"a":r+=d[5],i+=d[6],l.push({key:"A",data:[d[0],d[1],d[2],d[3],d[4],r,i]});break;case"H":l.push({key:"H",data:[...d]}),r=d[0];break;case"h":r+=d[0],l.push({key:"H",data:[r]});break;case"V":l.push({key:"V",data:[...d]}),i=d[0];break;case"v":i+=d[0],l.push({key:"V",data:[i]});break;case"S":l.push({key:"S",data:[...d]}),r=d[2],i=d[3];break;case"s":{let p=d.map((m,y)=>y%2?m+i:m+r);l.push({key:"S",data:p}),r=p[2],i=p[3];break}case"T":l.push({key:"T",data:[...d]}),r=d[0],i=d[1];break;case"t":r+=d[0],i+=d[1],l.push({key:"T",data:[r,i]});break;case"Z":case"z":l.push({key:"Z",data:[]}),r=a,i=o}return l}function DTr(e){let r=[],i="",a=0,o=0,l=0,h=0,d=0,p=0;for(let{key:m,data:y}of e){switch(m){case"M":r.push({key:"M",data:[...y]}),[a,o]=y,[l,h]=y;break;case"C":r.push({key:"C",data:[...y]}),a=y[4],o=y[5],d=y[2],p=y[3];break;case"L":r.push({key:"L",data:[...y]}),[a,o]=y;break;case"H":a=y[0],r.push({key:"L",data:[a,o]});break;case"V":o=y[0],r.push({key:"L",data:[a,o]});break;case"S":{let v=0,w=0;i==="C"||i==="S"?(v=a+(a-d),w=o+(o-p)):(v=a,w=o),r.push({key:"C",data:[v,w,...y]}),d=y[0],p=y[1],a=y[2],o=y[3];break}case"T":{let[v,w]=y,T=0,x=0;i==="Q"||i==="T"?(T=a+(a-d),x=o+(o-p)):(T=a,x=o);let k=a+2*(T-a)/3,A=o+2*(x-o)/3,R=v+2*(T-v)/3,N=w+2*(x-w)/3;r.push({key:"C",data:[k,A,R,N,v,w]}),d=T,p=x,a=v,o=w;break}case"Q":{let[v,w,T,x]=y,k=a+2*(v-a)/3,A=o+2*(w-o)/3,R=T+2*(v-T)/3,N=x+2*(w-x)/3;r.push({key:"C",data:[k,A,R,N,T,x]}),d=v,p=w,a=T,o=x;break}case"A":{let v=Math.abs(y[0]),w=Math.abs(y[1]),T=y[2],x=y[3],k=y[4],A=y[5],R=y[6];if(v===0||w===0)r.push({key:"C",data:[a,o,A,R,A,R]}),a=A,o=R;else if(a!==A||o!==R)PTr(a,o,A,R,v,w,T,x,k).forEach(function(N){r.push({key:"C",data:N})}),a=A,o=R;break}case"Z":r.push({key:"Z",data:[]}),a=l,o=h}i=m}return r}function Gne(e,r,i){return[e*Math.cos(i)-r*Math.sin(i),e*Math.sin(i)+r*Math.cos(i)]}function PTr(e,r,i,a,o,l,h,d,p,m){let y=(v=h,Math.PI*v/180);var v;let w=[],T=0,x=0,k=0,A=0;if(m)[T,x,k,A]=m;else{[e,r]=Gne(e,r,-y),[i,a]=Gne(i,a,-y);let K=(e-i)/2,J=(r-a)/2,Z=K*K/(o*o)+J*J/(l*l);Z>1&&(Z=Math.sqrt(Z),o*=Z,l*=Z);let j=o*o,ee=l*l,z=j*ee-j*J*J-ee*K*K,ne=j*J*J+ee*K*K,ie=(d===p?-1:1)*Math.sqrt(Math.abs(z/ne));k=ie*o*J/l+(e+i)/2,A=ie*-l*K/o+(r+a)/2,T=Math.asin(parseFloat(((r-A)/l).toFixed(9))),x=Math.asin(parseFloat(((a-A)/l).toFixed(9))),ex&&(T-=2*Math.PI),!p&&x>T&&(x-=2*Math.PI)}let R=x-T;if(Math.abs(R)>120*Math.PI/180){let K=x,J=i,Z=a;x=p&&x>T?T+120*Math.PI/180*1:T+120*Math.PI/180*-1,w=PTr(i=k+o*Math.cos(x),a=A+l*Math.sin(x),J,Z,o,l,h,0,p,[x,K,k,A])}R=x-T;let N=Math.cos(T),L=Math.sin(T),B=Math.cos(x),D=Math.sin(x),P=Math.tan(R/4),F=1.3333333333333333*o*P,H=1.3333333333333333*l*P,W=[e,r],X=[e+F*L,r-H*N],Q=[i+F*D,a-H*B],Y=[i,a];if(X[0]=2*W[0]-X[0],X[1]=2*W[1]-X[1],m)return[X,Q,Y].concat(w);{w=[X,Q,Y].concat(w);let K=[];for(let J=0;J2){let o=[];for(let l=0;l2*Math.PI&&(T=0,x=2*Math.PI);let k=2*Math.PI/p.curveStepCount,A=Math.min(k/2,(x-T)/2),R=CTr(A,m,y,v,w,T,x,1,p);if(!p.disableMultiStroke){let N=CTr(A,m,y,v,w,T,x,1.5,p);R.push(...N)}return h&&(d?R.push(...TL(m,y,m+v*Math.cos(T),y+w*Math.sin(T),p),...TL(m,y,m+v*Math.cos(x),y+w*Math.sin(x),p)):R.push({op:"lineTo",data:[m,y]},{op:"lineTo",data:[m+v*Math.cos(T),y+w*Math.sin(T)]})),{type:"path",ops:R}}function STr(e,r){let i=DTr(MTr(Itt(e))),a=[],o=[0,0],l=[0,0];for(let{key:h,data:d}of i)switch(h){case"M":l=[d[0],d[1]],o=[d[0],d[1]];break;case"L":a.push(...TL(l[0],l[1],d[0],d[1],r)),l=[d[0],d[1]];break;case"C":{let[p,m,y,v,w,T]=d;a.push(...ZYn(p,m,y,v,w,T,l,r)),l=[w,T];break}case"Z":a.push(...TL(l[0],l[1],o[0],o[1],r)),l=[o[0],o[1]]}return{type:"path",ops:a}}function xtt(e,r){let i=[];for(let a of e)if(a.length){let o=r.maxRandomnessOffset||0,l=a.length;if(l>2){i.push({op:"move",data:[a[0][0]+Co(o,r),a[0][1]+Co(o,r)]});for(let h=1;h500?0.4:-0.0016668*p+1.233334;let y=o.maxRandomnessOffset||0;y*y*100>d&&(y=p/10);let v=y/2,w=0.2+0.2*$Tr(o),T=o.bowing*o.maxRandomnessOffset*(a-r)/200,x=o.bowing*o.maxRandomnessOffset*(e-i)/200;T=Co(T,o,m),x=Co(x,o,m);let k=[],A=()=>Co(v,o,m),R=()=>Co(y,o,m),N=o.preserveVertices;return l&&(h?k.push({op:"move",data:[e+(N?0:A()),r+(N?0:A())]}):k.push({op:"move",data:[e+(N?0:Co(y,o,m)),r+(N?0:Co(y,o,m))]})),h?k.push({op:"bcurveTo",data:[T+e+(i-e)*w+A(),x+r+(a-r)*w+A(),T+e+2*(i-e)*w+A(),x+r+2*(a-r)*w+A(),i+(N?0:A()),a+(N?0:A())]}):k.push({op:"bcurveTo",data:[T+e+(i-e)*w+R(),x+r+(a-r)*w+R(),T+e+2*(i-e)*w+R(),x+r+2*(a-r)*w+R(),i+(N?0:R()),a+(N?0:R())]}),k}function iwe(e,r,i){if(!e.length)return[];let a=[];a.push([e[0][0]+Co(r,i),e[0][1]+Co(r,i)]),a.push([e[0][0]+Co(r,i),e[0][1]+Co(r,i)]);for(let o=1;o3){let l=[],h=1-i.curveTightness;o.push({op:"move",data:[e[1][0],e[1][1]]});for(let d=1;d+21&&o.push(d);else o.push(d);o.push(e[r+3])}else{let p=e[r+0],m=e[r+1],y=e[r+2],v=e[r+3],w=XP(p,m,0.5),T=XP(m,y,0.5),x=XP(y,v,0.5),k=XP(w,T,0.5),A=XP(T,x,0.5),R=XP(k,A,0.5);Rtt([p,w,k,R],0,i,o),Rtt([R,A,x,v],0,i,o)}var l,h;return o}function eWn(e,r){return uwe(e,0,e.length,r)}function uwe(e,r,i,a,o){let l=o||[],h=e[r],d=e[i-1],p=0,m=1;for(let y=r+1;yp&&(p=v,m=y)}return Math.sqrt(p)>a?(uwe(e,r,m+1,a,l),uwe(e,m,i,a,l)):(l.length||l.push(h),l.push(d)),l}function Ctt(e,r=0.15,i){let a=[],o=(e.length-1)/3;for(let l=0;l0?uwe(a,0,a.length,i):a}class Vne{constructor(e){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:0.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:0.8},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2147483648)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,i){return{shape:e,sets:r||[],options:i||this.defaultOptions}}line(e,r,i,a,o){let l=this._o(o);return this._d("line",[BTr(e,r,i,a,l)],l)}rectangle(e,r,i,a,o){let l=this._o(o),h=[],d=QYn(e,r,i,a,l);if(l.fill){let p=[[e,r],[e+i,r],[e+i,r+a],[e,r+a]];l.fillStyle==="solid"?h.push(xtt([p],l)):h.push(MH([p],l))}return l.stroke!==jE&&h.push(d),this._d("rectangle",h,l)}ellipse(e,r,i,a,o){let l=this._o(o),h=[],d=FTr(i,a,l),p=ktt(e,r,l,d);if(l.fill)if(l.fillStyle==="solid"){let m=ktt(e,r,l,d).opset;m.type="fillPath",h.push(m)}else h.push(MH([p.estimatedPoints],l));return l.stroke!==jE&&h.push(p.opset),this._d("ellipse",h,l)}circle(e,r,i,a){let o=this.ellipse(e,r,i,i,a);return o.shape="circle",o}linearPath(e,r){let i=this._o(r);return this._d("linearPath",[swe(e,!1,i)],i)}arc(e,r,i,a,o,l,h=!1,d){let p=this._o(d),m=[],y=wTr(e,r,i,a,o,l,h,!0,p);if(h&&p.fill)if(p.fillStyle==="solid"){let v=Object.assign({},p);v.disableMultiStroke=!0;let w=wTr(e,r,i,a,o,l,!0,!1,v);w.type="fillPath",m.push(w)}else m.push(function(v,w,T,x,k,A,R){let N=v,L=w,B=Math.abs(T/2),D=Math.abs(x/2);B+=Co(0.01*B,R),D+=Co(0.01*D,R);let P=k,F=A;for(;P<0;)P+=2*Math.PI,F+=2*Math.PI;F-P>2*Math.PI&&(P=0,F=2*Math.PI);let H=(F-P)/R.curveStepCount,W=[];for(let X=P;X<=F;X+=H)W.push([N+B*Math.cos(X),L+D*Math.sin(X)]);return W.push([N+B*Math.cos(F),L+D*Math.sin(F)]),W.push([N,L]),MH([W],R)}(e,r,i,a,o,l,p));return p.stroke!==jE&&m.push(y),this._d("arc",m,p)}curve(e,r){let i=this._o(r),a=[],o=ETr(e,i);if(i.fill&&i.fill!==jE)if(i.fillStyle==="solid"){let l=ETr(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(l.ops)})}else{let l=[],h=e;if(h.length){let d=typeof h[0][0]=="number"?[h]:h;for(let p of d)p.length<3?l.push(...p):p.length===3?l.push(...Ctt(kTr([p[0],p[0],p[1],p[2]]),10,(1+i.roughness)/2)):l.push(...Ctt(kTr(p),10,(1+i.roughness)/2))}l.length&&a.push(MH([l],i))}return i.stroke!==jE&&a.push(o),this._d("curve",a,i)}polygon(e,r){let i=this._o(r),a=[],o=swe(e,!0,i);return i.fill&&(i.fillStyle==="solid"?a.push(xtt([e],i)):a.push(MH([e],i))),i.stroke!==jE&&a.push(o),this._d("polygon",a,i)}path(e,r){let i=this._o(r),a=[];if(!e)return this._d("path",a,i);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let o=i.fill&&i.fill!=="transparent"&&i.fill!==jE,l=i.stroke!==jE,h=!!(i.simplification&&i.simplification<1),d=function(m,y,v){let w=DTr(MTr(Itt(m))),T=[],x=[],k=[0,0],A=[],R=()=>{A.length>=4&&x.push(...Ctt(A,y)),A=[]},N=()=>{R(),x.length&&(T.push(x),x=[])};for(let{key:B,data:D}of w)switch(B){case"M":N(),k=[D[0],D[1]],x.push(k);break;case"L":R(),x.push([D[0],D[1]]);break;case"C":if(!A.length){let P=x.length?x[x.length-1]:k;A.push([P[0],P[1]])}A.push([D[0],D[1]]),A.push([D[2],D[3]]),A.push([D[4],D[5]]);break;case"Z":R(),x.push([k[0],k[1]])}if(N(),!v)return T;let L=[];for(let B of T){let D=eWn(B,v);D.length&&L.push(D)}return L}(e,1,h?4-4*(i.simplification||1):(1+i.roughness)/2),p=STr(e,i);if(o)if(i.fillStyle==="solid")if(d.length===1){let m=STr(e,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));a.push({type:"fillPath",ops:this._mergedShape(m.ops)})}else a.push(xtt(d,i));else a.push(MH(d,i));return l&&(h?d.forEach((m)=>{a.push(swe(m,!1,i))}):a.push(p)),this._d("path",a,i)}opsToPath(e,r){let i="";for(let a of e.ops){let o=typeof r=="number"&&r>=0?a.data.map((l)=>+l.toFixed(r)):a.data;switch(a.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(e){let r=e.sets||[],i=e.options||this.defaultOptions,a=[];for(let o of r){let l=null;switch(o.type){case"path":l={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:jE};break;case"fillPath":l={d:this.opsToPath(o),stroke:jE,strokeWidth:0,fill:i.fill||jE};break;case"fillSketch":l=this.fillSketch(o,i)}l&&a.push(l)}return a}fillSketch(e,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||jE,strokeWidth:i,fill:jE}}_mergedShape(e){return e.filter((r,i)=>i===0||r.op!=="move")}}class UTr{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new Vne(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),a=this.ctx,o=e.options.fixedDecimalPlaceDigits;for(let l of r)switch(l.type){case"path":a.save(),a.strokeStyle=i.stroke==="none"?"transparent":i.stroke,a.lineWidth=i.strokeWidth,i.strokeLineDash&&a.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(a.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(a,l,o),a.restore();break;case"fillPath":{a.save(),a.fillStyle=i.fill||"";let h=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(a,l,o,h),a.restore();break}case"fillSketch":this.fillSketch(a,l,i)}}fillSketch(e,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2),e.save(),i.fillLineDash&&e.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(e.lineDashOffset=i.fillLineDashOffset),e.strokeStyle=i.fill||"",e.lineWidth=a,this._drawToContext(e,r,i.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,i,a="nonzero"){e.beginPath();for(let o of r.ops){let l=typeof i=="number"&&i>=0?o.data.map((h)=>+h.toFixed(i)):o.data;switch(o.op){case"move":e.moveTo(l[0],l[1]);break;case"bcurveTo":e.bezierCurveTo(l[0],l[1],l[2],l[3],l[4],l[5]);break;case"lineTo":e.lineTo(l[0],l[1])}}r.type==="fillPath"?e.fill(a):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,i,a,o){let l=this.gen.line(e,r,i,a,o);return this.draw(l),l}rectangle(e,r,i,a,o){let l=this.gen.rectangle(e,r,i,a,o);return this.draw(l),l}ellipse(e,r,i,a,o){let l=this.gen.ellipse(e,r,i,a,o);return this.draw(l),l}circle(e,r,i,a){let o=this.gen.circle(e,r,i,a);return this.draw(o),o}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i),i}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i),i}arc(e,r,i,a,o,l,h=!1,d){let p=this.gen.arc(e,r,i,a,o,l,h,d);return this.draw(p),p}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i),i}path(e,r){let i=this.gen.path(e,r);return this.draw(i),i}}class GTr{constructor(e,r){this.svg=e,this.gen=new Vne(r)}draw(e){let r=e.sets||[],i=e.options||this.getDefaultOptions(),a=this.svg.ownerDocument||window.document,o=a.createElementNS(awe,"g"),l=e.options.fixedDecimalPlaceDigits;for(let h of r){let d=null;switch(h.type){case"path":d=a.createElementNS(awe,"path"),d.setAttribute("d",this.opsToPath(h,l)),d.setAttribute("stroke",i.stroke),d.setAttribute("stroke-width",i.strokeWidth+""),d.setAttribute("fill","none"),i.strokeLineDash&&d.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&d.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":d=a.createElementNS(awe,"path"),d.setAttribute("d",this.opsToPath(h,l)),d.setAttribute("stroke","none"),d.setAttribute("stroke-width","0"),d.setAttribute("fill",i.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||d.setAttribute("fill-rule","evenodd");break;case"fillSketch":d=this.fillSketch(a,h,i)}d&&o.appendChild(d)}return o}fillSketch(e,r,i){let a=i.fillWeight;a<0&&(a=i.strokeWidth/2);let o=e.createElementNS(awe,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",a+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,i,a,o){let l=this.gen.line(e,r,i,a,o);return this.draw(l)}rectangle(e,r,i,a,o){let l=this.gen.rectangle(e,r,i,a,o);return this.draw(l)}ellipse(e,r,i,a,o){let l=this.gen.ellipse(e,r,i,a,o);return this.draw(l)}circle(e,r,i,a){let o=this.gen.circle(e,r,i,a);return this.draw(o)}linearPath(e,r){let i=this.gen.linearPath(e,r);return this.draw(i)}polygon(e,r){let i=this.gen.polygon(e,r);return this.draw(i)}arc(e,r,i,a,o,l,h=!1,d){let p=this.gen.arc(e,r,i,a,o,l,h,d);return this.draw(p)}curve(e,r){let i=this.gen.curve(e,r);return this.draw(i)}path(e,r){let i=this.gen.path(e,r);return this.draw(i)}}var ATr,RTr,K_,KYn=0,Stt=1,_Tr=2,nwe,XYn,jE="none",awe="http://www.w3.org/2000/svg",cn;var Na=Re(()=>{ATr=class ATr extends hwe{fillPolygons(e,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,0.1);let a=Hne(e,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,l=[],h=0.5*i*Math.cos(o),d=0.5*i*Math.sin(o);for(let[p,m]of a)dwe([p,m])&&l.push([[p[0]-h,p[1]+d],[...m]],[[p[0]+h,p[1]-d],[...m]]);return{type:"fillSketch",ops:this.renderLines(l,r)}}};RTr=class RTr extends hwe{fillPolygons(e,r){let i=this._fillPolygons(e,r),a=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(e,a);return i.ops=i.ops.concat(o.ops),i}};K_={};nwe={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};XYn={randOffset:function(e,r){return Co(e,r)},randOffsetWithRange:function(e,r,i){return lwe(e,r,i)},ellipse:function(e,r,i,a,o){let l=FTr(i,a,o);return ktt(e,r,o,l).opset},doubleLineOps:function(e,r,i,a,o){return TL(e,r,i,a,o,!0)}};cn={canvas:(e,r)=>new UTr(e,r),svg:(e,r)=>new GTr(e,r),generator:(e)=>new Vne(e),newSeed:()=>Vne.newSeed()}});async function ztt(e){let r=e.getElementsByTagName("img");if(!r||r.length===0)return;let i=!Vtt(e);await Promise.all([...r].map((a)=>new Promise((o)=>{function l(){if(a.style.display="flex",a.style.flexDirection="column",i){let h=Ar().fontSize?Ar().fontSize:window.getComputedStyle(document.body).fontSize,d=5,[p=Fs.fontSize]=W_(h),m=p*5+"px";a.style.minWidth=m,a.style.maxWidth=m}else a.style.width="100%";o(a)}I(l,"setupImage"),setTimeout(()=>{if(a.complete)l()}),a.addEventListener("error",l),a.addEventListener("load",l)})))}function Vtt(e){if(e.nodeType===rWn)return e.textContent?.trim()!=="";if(e.nodeType!==tWn)return!1;if(e.tagName.toLowerCase()==="img")return!1;return[...e.childNodes].some(Vtt)}function Yc(e){let r=e.map((i,a)=>`${a===0?"M":"L"}${i.x},${i.y}`);return r.push("Z"),r.join(" ")}function xL(e,r,i,a,o,l){let h=[],d=50,p=i-e,m=a-r,y=p/l,v=2*Math.PI/y,w=r+m/2;for(let T=0;T<=50;T++){let x=T/50,k=e+x*p,A=w+o*Math.sin(v*(k-e));h.push({x:k,y:A})}return h}function m3(e,r,i,a,o,l){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let v=0;vp.tagName==="path"),i=document.createElementNS("http://www.w3.org/2000/svg","path"),a=r.map((p)=>p.getAttribute("d")).filter((p)=>p!==null).join(" ");i.setAttribute("d",a);let o=r.find((p)=>p.getAttribute("fill")!=="none"),l=r.find((p)=>p.getAttribute("stroke")!=="none"),h=I((p,m)=>p?.getAttribute(m)??void 0,"getAttr");if(o){let p={fill:h(o,"fill"),"fill-opacity":h(o,"fill-opacity")??"1"};Object.entries(p).forEach(([m,y])=>{if(y)i.setAttribute(m,y)})}if(l){let p={stroke:h(l,"stroke"),"stroke-width":h(l,"stroke-width")??"1","stroke-opacity":h(l,"stroke-opacity")??"1"};Object.entries(p).forEach(([m,y])=>{if(y)i.setAttribute(m,y)})}let d=document.createElementNS("http://www.w3.org/2000/svg","g");return d.appendChild(i),d}function hxr(e,r){return e.intersect(r)}function dxr(e,r,i,a){var{x:o,y:l}=e,h=o-a.x,d=l-a.y,p=Math.sqrt(r*r*d*d+i*i*h*h),m=Math.abs(r*i*h/p);if(a.x0}function mxr(e,r,i){let{x:a,y:o}=e,l=[],{POSITIVE_INFINITY:h,POSITIVE_INFINITY:d}=Number;if(typeof r.forEach==="function")r.forEach(function(y){h=Math.min(h,y.x),d=Math.min(d,y.y)});else h=Math.min(h,r.x),d=Math.min(d,r.y);let p=a-e.width/2-h,m=o-e.height/2-d;for(let y=0;y1)l.sort(function(y,v){let w=y.x-i.x,T=y.y-i.y,x=Math.sqrt(w*w+T*T),k=v.x-i.x,A=v.y-i.y,R=Math.sqrt(k*k+A*A);return xy,":first-child");return v.attr("class","anchor").attr("style",np(d)),La(r,v),r.intersect=function(w){return Ze.info("Circle intersect",r,h,w),ca.circle(r,h,w)},l}function Utt(e,r,i,a,o,l,h){let p=(e+i)/2,m=(r+a)/2,y=Math.atan2(a-r,i-e),v=(i-e)/2,w=(a-r)/2,T=v/o,x=w/l,k=Math.sqrt(T**2+x**2);if(k>1)throw Error("The given radii are too small to create an arc between the points.");let A=Math.sqrt(1-k**2),R=p+A*l*Math.sin(y)*(h?-1:1),N=m-A*o*Math.cos(y)*(h?-1:1),L=Math.atan2((r-N)/l,(e-R)/o),D=Math.atan2((a-N)/l,(i-R)/o)-L;if(h&&D<0)D+=2*Math.PI;if(!h&&D>0)D-=2*Math.PI;let P=[];for(let F=0;F<20;F++){let H=F/19,W=L+H*D,X=R+o*Math.cos(W),Q=N+l*Math.sin(W);P.push({x:X,y:Q})}return P}function yxr(e,r,i){let[a,o]=[r,i].sort((l,h)=>h-l);return o*(1-Math.sqrt(1-(e/a/2)**2))}async function vxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=I((W)=>W+h,"calcTotalHeight"),p=I((W)=>{let X=W/2;return[X/(2.5+W/50),X]},"calcEllipseRadius"),{shapeSvg:m,bbox:y}=await ss(e,r,bs(r)),v=d(r?.height?r?.height:y.height),[w,T]=p(v),x=yxr(v,w,T),A=(r?.width?r?.width:y.width)+l*2+x-x,R=v,{cssStyles:N}=r,L=[{x:A/2,y:-R/2},{x:-A/2,y:-R/2},...Utt(-A/2,-R/2,-A/2,R/2,w,T,!1),{x:A/2,y:R/2},...Utt(A/2,R/2,A/2,-R/2,w,T,!0)],B=cn.svg(m),D=ga(r,{});if(r.look!=="handDrawn")D.roughness=0,D.fillStyle="solid";let P=Yc(L),F=B.path(P,D),H=m.insert(()=>F,":first-child");if(H.attr("class","basic label-container outer-path"),N&&r.look!=="handDrawn")H.selectAll("path").attr("style",N);if(a&&r.look!=="handDrawn")H.selectAll("path").attr("style",a);return H.attr("transform",`translate(${w/2}, 0)`),La(r,H),r.intersect=function(W){return ca.polygon(r,L,W)},m}async function _xr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,label:d}=await ss(e,r,bs(r)),p=i?.nodeBorder??i?.lineColor??"currentColor",m=r.padding??12,y=Math.max(h.width+m*2,r.width??0,80),v=Math.max(Math.min(y*0.08,12),5),w=Math.max(h.height+m*2+v,r.height??0),T=-w/2+v,x=w/2,k=y*0.72,A=[`M${-y/2},${T}`,`L${-k/2},${x}`,`A${k/2},${v} 0 0 0 ${k/2},${x}`,`L${y/2},${T}`,`A${y/2},${v} 0 0 0 ${-y/2},${T}`,"Z"].join(" "),{cssStyles:R}=r,N=l.insert("g",":first-child").attr("class","basic label-container");if(r.look==="handDrawn"){let H=cn.svg(l).path(A,ga(r,{}));if(N.node()?.appendChild(H),R)N.attr("style",R)}else N.append("path").attr("d",A).attr("style",o);N.append("ellipse").attr("cx",0).attr("cy",T).attr("rx",y/2).attr("ry",v).attr("style",`fill:none;stroke:${p};stroke-width:1px`),La(r,N);let L=T+(x-T)/2;d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${L-h.height/2-(h.y-(h.top??0))})`);let B=12,D=I((F,H,W)=>Array.from({length:B+1},(X,Q)=>{let Y=Math.PI-Q*Math.PI/B;return{x:F*Math.cos(Y),y:H+W*v*Math.sin(Y)}}),"arc"),P=[...D(y/2,T,-1),...D(k/2,x,1).reverse()];return r.intersect=function(F){return ca.polygon(r,P,F)},l}function Exr(e){let{themeVariables:r}=Ar(),{clusterBkg:i,clusterBorder:a}=r;switch(e){case"flow":return{rx:10,fill:"none",stroke:r.flowContainerStroke||r.secondaryBorderColor,strokeWidth:0.75,cssClass:"flow-collapsed"};default:return{rx:dWn,fill:i,stroke:a,cssClass:"collapsed-group"}}}async function wxr(e,r){let i=Exr(r.metadata?.containerType),{fill:a,stroke:o}=i,{nodeStyles:l}=fa(r),{shapeSvg:h,bbox:d}=await ss(e,r,bs(r)),{theme:p,themeVariables:m}=Ar();ty(h,r.colorIndex,p,m.borderColorArray);let y=r.padding??8,v=d.height,w=Math.max(d.width+y*2,hWn,r?.width??0),T=Math.max(v+Ntt+Ott+y*2,r?.height??0),x=-w/2,k=-T/2,A=-(Ntt+Ott)/2,R=h.select(".label");if(R)if(r.useHtmlLabels??Mp(Ar()))R.attr("transform",`translate(${-d.width/2}, ${-d.height/2+A})`);else R.attr("transform",`translate(0, ${-d.height/2+A})`);let N;if(r.look==="handDrawn"){let F=cn.svg(h),H=ga(r,{fill:a,stroke:o,...i.strokeWidth===void 0?{}:{strokeWidth:i.strokeWidth},...a==="none"?{fillWeight:0}:{fillStyle:"solid"}}),W=F.path(X_(x,k,w,T,i.rx),H);N=h.insert(()=>W,":first-child"),N.attr("class","basic label-container "+i.cssClass).attr("style",np(r.cssStyles))}else if(N=h.insert("rect",":first-child"),N.attr("class","basic label-container "+i.cssClass).attr("style",l).attr("rx",i.rx).attr("ry",i.rx).attr("x",x).attr("y",k).attr("width",w).attr("height",T).attr("fill",a).attr("stroke",o),i.strokeWidth!==void 0)N.attr("stroke-width",i.strokeWidth+"px");let L=k+y+v+Ntt;h.append("line").attr("class","collapsed-separator").attr("x1",x+8).attr("y1",L).attr("x2",x+w-8).attr("y2",L).attr("stroke",o).attr("stroke-dasharray","3, 3");let B=L+Ott/2,D=2.5,P=10;for(let F=-1;F<=1;F++)h.append("circle").attr("class","collapsed-indicator").attr("cx",F*P).attr("cy",B).attr("r",D).attr("fill",o);return La(r,N),r.calcIntersect=function(F,H){return ca.rect(F,H)},r.intersect=function(F){return ca.rect(r,F)},h}function y3(e,r,i,a){return e.insert("polygon",":first-child").attr("points",a.map(function(o){return o.x+","+o.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-r/2+","+i/2+")")}async function Sxr(e,r){let i=r,{shapeSvg:a,bbox:o}=await ss(e,i,bs(i)),l=i.padding??0,h=o.height+2*l,d=h/2,p=o.width+2*d+l,m=i.width??0,v=i.positioned&&(i.widthInColumns??1)>1&&m>p?m:p,w=mWn(i.directions??[],o,i,v),T=y3(a,v,h,w);return T.attr("style",i.style??null),La(i,T),i.intersect=function(x){return ca.polygon(i,w,x)},a}async function Txr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,label:d}=await ss(e,r,bs(r)),p=i?.nodeBorder??i?.lineColor??"currentColor",m=r.padding??12,y=18,v=12,w=Math.max(h.width+m*2,r.width??0,90),T=Math.max(h.height+m*2+y,r.height??0),x=-T/2,{cssStyles:k}=r,A=l.insert("g",":first-child").attr("class","basic label-container");if(r.look==="handDrawn"){let L=cn.svg(l).path(X_(-w/2,x,w,T,v),ga(r,{}));if(A.node()?.appendChild(L),k)A.attr("style",k)}else A.append("rect").attr("x",-w/2).attr("y",x).attr("width",w).attr("height",T).attr("rx",v).attr("ry",v).attr("style",o);A.append("line").attr("x1",-w/2).attr("y1",x+y).attr("x2",w/2).attr("y2",x+y).attr("style",`stroke:${p};stroke-width:1px`);for(let N=0;N<3;N++)A.append("circle").attr("cx",-w/2+12+N*9).attr("cy",x+y/2).attr("r",2.5).attr("style",`fill:${p};stroke:none`);A.append("rect").attr("class","browser-address-bar").attr("x",-w/2+44).attr("y",x+4).attr("width",Math.max(w-56,10)).attr("height",y-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${p};stroke-width:1px;opacity:0.6`),La(r,A);let R=x+y+(T-y)/2;return d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${R-h.height/2-(h.y-(h.top??0))})`),r.intersect=function(N){return ca.rect(r,N)},l}async function xxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?28:o,h=r.look==="neo"?24:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=(r?.width??p.width)+(r.look==="neo"?l*2:l+fwe),y=(r?.height??p.height)+(r.look==="neo"?h*2:h),v=0,w=m,T=-y,x=0,k=[{x:v+fwe,y:T},{x:w,y:T},{x:w,y:x},{x:v,y:x},{x:v,y:T+fwe},{x:v+fwe,y:T}],A,{cssStyles:R}=r;if(r.look==="handDrawn"){let N=cn.svg(d),L=ga(r,{}),B=Yc(k),D=N.path(B,L);if(A=d.insert(()=>D,":first-child").attr("transform",`translate(${-m/2}, ${y/2})`),R)A.attr("style",R)}else A=y3(d,m,y,k);if(a)A.attr("style",a);return La(r,A),r.intersect=function(N){return ca.polygon(r,k,N)},d}function Cxr(e,r){let{nodeStyles:i}=fa(r);r.label="";let a=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),{cssStyles:o}=r,l=Math.max(28,r.width??0),h=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}],d=cn.svg(a),p=ga(r,{});if(r.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let m=Yc(h),y=d.path(m,p),v=a.insert(()=>y,":first-child");if(o&&r.look!=="handDrawn")v.selectAll("path").attr("style",o);if(i&&r.look!=="handDrawn")v.selectAll("path").attr("style",i);return r.width=28,r.height=28,r.intersect=function(w){return ca.polygon(r,h,w)},a}async function qtt(e,r,i){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,halfPadding:d}=await ss(e,r,bs(r),{ignoreMinWidth:!0}),p=16,m=i?.padding??d,y=Math.sqrt(h.width**2+h.height**2)/2,v=r.look==="neo"?y+p:y+m,w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(l),k=ga(r,{}),A=x.circle(0,0,v*2,k);w=l.insert(()=>A,":first-child"),w.attr("class","basic label-container").attr("style",np(T))}else w=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",o).attr("r",v).attr("cx",0).attr("cy",0);return La(r,w),r.calcIntersect=function(x,k){let A=x.width/2;return ca.circle(x,A,k)},r.intersect=function(x){return Ze.info("Circle intersect",r,v,x),ca.circle(r,v,x)},l}async function kxr(e,r){let i=r,a=["node",i.cssClasses,i.class].filter(Boolean).join(" "),{shapeSvg:o,bbox:l,halfPadding:h}=await ss(e,i,a),d=o.insert("rect",":first-child"),p=i.padding??0,m=i.positioned?i.width??0:l.width+p,y=i.positioned?i.height??0:l.height+p,v=i.positioned?-m/2:-l.width/2-h,w=i.positioned?-y/2:-l.height/2-h;return d.attr("class","basic cluster composite label-container").attr("style",i.style??null).attr("rx",i.rx??null).attr("ry",i.ry??null).attr("x",v).attr("y",w).attr("width",m).attr("height",y),La(i,d),i.intersect=function(T){return ca.rect(i,T)},o}async function Axr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h,label:d}=await ss(e,r,bs(r)),p=i?.nodeBorder??i?.lineColor??"currentColor",m=r.padding??12,y=20,v=12,w=Math.max(h.width+m*2,r.width??0,90),T=Math.max(h.height+m*2+y,r.height??0),x=-T/2,{cssStyles:k}=r,A=l.insert("g",":first-child").attr("class","basic label-container");if(r.look==="handDrawn"){let L=cn.svg(l).path(X_(-w/2,x,w,T,v),ga(r,{}));if(A.node()?.appendChild(L),k)A.attr("style",k)}else A.append("rect").attr("x",-w/2).attr("y",x).attr("width",w).attr("height",T).attr("rx",v).attr("ry",v).attr("style",o);A.append("text").attr("x",-w/2+12).attr("y",x+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${p}`).text(">_"),La(r,A);let R=x+y+(T-y)/2;return d.attr("transform",`translate(${-(h.width/2)-(h.x-(h.left??0))}, ${R-h.height/2-(h.y-(h.top??0))})`),r.intersect=function(N){return ca.rect(r,N)},l}function Rxr(e){let r=Math.cos(Math.PI/4),i=Math.sin(Math.PI/4),a=e*2,o={x:a/2*r,y:a/2*i},l={x:-(a/2)*r,y:a/2*i},h={x:-(a/2)*r,y:-(a/2)*i},d={x:a/2*r,y:-(a/2)*i};return`M ${l.x},${l.y} L ${d.x},${d.y} + M ${o.x},${o.y} L ${h.x},${h.y}`}function Ixr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i,r.label="";let o=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),l=Math.max(30,r?.width??0),{cssStyles:h}=r,d=cn.svg(o),p=ga(r,{});if(r.look!=="handDrawn")p.roughness=0,p.fillStyle="solid";let m=d.circle(0,0,l*2,p),y=Rxr(l),v=d.path(y,p),w=o.insert(()=>m,":first-child");if(w.insert(()=>v),w.attr("class","outer-path"),h&&r.look!=="handDrawn")w.selectAll("path").attr("style",h);if(a&&r.look!=="handDrawn")w.selectAll("path").attr("style",a);return La(r,w),r.intersect=function(T){return Ze.info("crossedCircle intersect",r,{radius:l,point:T}),ca.circle(r,l,T)},o}function HR(e,r,i,a=100,o=0,l=180){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let v=0;vD,":first-child").attr("stroke-opacity",0),P.insert(()=>L,":first-child"),P.attr("class","text"),w&&r.look!=="handDrawn")P.selectAll("path").attr("style",w);if(a&&r.look!=="handDrawn")P.selectAll("path").attr("style",a);return P.attr("transform",`translate(${v}, 0)`),h.attr("transform",`translate(${-m/2+v-(l.x-(l.left??0))},${-y/2+(r.padding??0)/2-(l.y-(l.top??0))})`),La(r,P),r.intersect=function(F){return ca.polygon(r,x,F)},o}function qR(e,r,i,a=100,o=0,l=180){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let v=0;vD,":first-child").attr("stroke-opacity",0),P.insert(()=>L,":first-child"),P.attr("class","text"),w&&r.look!=="handDrawn")P.selectAll("path").attr("style",w);if(a&&r.look!=="handDrawn")P.selectAll("path").attr("style",a);return P.attr("transform",`translate(${-v}, 0)`),h.attr("transform",`translate(${-m/2+(r.padding??0)/2-(l.x-(l.left??0))},${-y/2+(r.padding??0)/2-(l.y-(l.top??0))})`),La(r,P),r.intersect=function(F){return ca.polygon(r,x,F)},o}function j1(e,r,i,a=100,o=0,l=180){let h=[],d=o*Math.PI/180,y=(l*Math.PI/180-d)/(a-1);for(let v=0;vW,":first-child").attr("stroke-opacity",0),X.insert(()=>B,":first-child"),X.insert(()=>F,":first-child"),X.attr("class","text"),w&&r.look!=="handDrawn")X.selectAll("path").attr("style",w);if(a&&r.look!=="handDrawn")X.selectAll("path").attr("style",a);return X.attr("transform",`translate(${v-v/4}, 0)`),h.attr("transform",`translate(${-m/2+(r.padding??0)/2-(l.x-(l.left??0))},${-y/2+(r.padding??0)/2-(l.y-(l.top??0))})`),La(r,X),r.intersect=function(Q){return ca.polygon(r,k,Q)},o}async function Mxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=20,p=5,{shapeSvg:m,bbox:y}=await ss(e,r,bs(r)),v=Math.max(p,y.height+h*2,r?.height??0),w=v/2,T=w-Math.sqrt(Math.max(0,w**2-(y.height/2)**2)),x=Math.max(v/4,T),k=Math.max(d,y.width+l*2+x*2,(y.width+l*2)*1.25,r?.width??0),{cssStyles:A}=r,R=cn.svg(m),N=ga(r,{});if(r.look!=="handDrawn")N.roughness=0,N.fillStyle="solid";let L=k,B=v,D=L-w,P=B/4,F=[{x:D,y:0},{x:P,y:0},{x:0,y:B/2},{x:P,y:B},{x:D,y:B},...m3(-D,-B/2,w,50,270,90)],H=Yc(F),W=R.path(H,N),X=m.insert(()=>W,":first-child");if(X.attr("class","basic label-container outer-path"),A&&r.look!=="handDrawn")X.selectChildren("path").attr("style",A);if(a&&r.look!=="handDrawn")X.selectChildren("path").attr("style",a);return X.attr("transform",`translate(${-k/2}, ${-v/2})`),La(r,X),r.intersect=function(Q){return ca.polygon(r,F,Q)},m}async function Dxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=r.padding??20,p=Math.max(l.width+d*2,r.width??0,100),m=Math.min(Math.max(p*0.23,16),56),y=m*0.27,v=Math.max(l.height+d*2,r.height?r.height-(2*m-y):0),w=Math.min(p*0.177,v*0.45),T=v+2*m-y,x=-T/2,k=x+2*m-y,A=o.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:R}=r;if(r.look==="handDrawn"){let H=cn.svg(o),W=ga(r,{}),X=H.path(X_(-p/2,k,p,v,w),W),Q=H.circle(0,x+m,m*2,W);if(A.insert(()=>Q,":first-child"),A.insert(()=>X,":first-child"),R)A.attr("style",R)}else A.append("rect").attr("x",-p/2).attr("y",k).attr("width",p).attr("height",v).attr("rx",w).attr("ry",w).attr("style",a),A.append("circle").attr("cx",0).attr("cy",x+m).attr("r",m).attr("style",a);La(r,A);let N=k+v/2;h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${N-l.height/2-(l.y-(l.top??0))})`);let L=x+m,B=Math.asin(Math.min(1,(k-L)/m))*180/Math.PI,D=24,F=[...m3(0,-L,m,D,180+B,-B),...m3(-(-p/2+w),-(k+w),w,12,90,0),...m3(-(-p/2+w),-(T/2-w),w,12,360,270),...m3(-(p/2-w),-(T/2-w),w,12,270,180),...m3(-(p/2-w),-(k+w),w,12,180,90)];return r.intersect=function(H){return ca.polygon(r,F,H)},o}async function Pxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?24:o,h=r.look==="neo"?24:o,d=r.width??0;if(r.width){if(r.width=r.width-h,r.widthP,":first-child"),k=p.insert(()=>D,":first-child"),k.attr("class","basic label-container"),A)k.attr("style",A)}else{let R=bWn(0,0,v,x,w,T);k=p.insert("path",":first-child").attr("d",R).attr("class","basic label-container outer-path").attr("style",np(A)).attr("style",a)}return k.attr("label-offset-y",T),k.attr("transform",`translate(${-v/2}, ${-(x/2+T)})`),La(r,k),y.attr("transform",`translate(${-(m.width/2)-(m.x-(m.left??0))}, ${-(m.height/2)+(r.padding??0)/1.5-(m.y-(m.top??0))})`),r.intersect=function(R){let N=ca.rect(r,R),L=N.x-(r.x??0);if(w!=0&&(Math.abs(L)<(r.width??0)/2||Math.abs(L)==(r.width??0)/2&&Math.abs(N.y-(r.y??0))>(r.height??0)/2-T)){let B=T*T*(1-L*L/(w*w));if(B>0)B=Math.sqrt(B);if(B=T-B,R.y-(r.y??0)>0)B=-B;N.y+=B}return N},p}async function $H(e,r,i){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{shapeSvg:l,bbox:h}=await ss(e,r,bs(r)),d=Math.max(h.width+i.labelPaddingX*2,r?.width||0),p=Math.max(h.height+i.labelPaddingY*2,r?.height||0),m=-d/2,y=-p/2,v,{rx:w,ry:T}=r,{cssStyles:x}=r;if(i?.rx&&i.ry)w=i.rx,T=i.ry;if(r.look==="handDrawn"){let k=cn.svg(l),A=ga(r,{}),R=w||T?k.path(X_(m,y,d,p,w||0),A):k.rectangle(m,y,d,p,A);v=l.insert(()=>R,":first-child"),v.attr("class","basic label-container").attr("style",np(x))}else v=l.insert("rect",":first-child"),v.attr("class","basic label-container").attr("style",o).attr("rx",np(w)).attr("ry",np(T)).attr("x",m).attr("y",y).attr("width",d).attr("height",p);return La(r,v,r.look==="handDrawn"?void 0:{width:d,height:p}),r.calcIntersect=function(k,A){return ca.rect(k,A)},r.intersect=function(k){return ca.rect(r,k)},l}async function Bxr(e,r){let{cssClasses:i,labelPaddingX:a,labelPaddingY:o,padding:l,width:h,height:d}=r,p={rx:0,ry:0,classes:i??"",labelPaddingX:a??(l??0)*2,labelPaddingY:o??l??0},m=await $H(e,r,p);if(r.look==="handDrawn"){let T=cn.svg(m),x=ga(r,{}),k=m.select(".basic.label-container > path:nth-child(2)"),A=k.node();if(!A)return m;let R=null;if(A instanceof SVGGraphicsElement)R=A.getBBox();else return m;return m.insert(()=>T.line(R.x,R.y,R.x+R.width,R.y,x),".basic.label-container g.label"),m.insert(()=>T.line(R.x,R.y+R.height,R.x+R.width,R.y+R.height,x),".basic.label-container g.label"),k.remove(),m}let y=m.select(".basic.label-container"),v=(Number(y.attr("width"))||h)??0,w=(Number(y.attr("height"))||d)??0;if(v>0&&w>0)y.attr("stroke-dasharray",`${v} ${w}`);return m}async function Fxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.look==="neo"?16:r.padding??0,l=r.look==="neo"?16:r.padding??0,{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=d.width+o,y=d.height+l,v=y*0.2,w=-m/2,T=-y/2-v/2,{cssStyles:x}=r,k=cn.svg(h),A=ga(r,{});if(r.look!=="handDrawn")A.roughness=0,A.fillStyle="solid";let R=[{x:w,y:T+v},{x:-w,y:T+v},{x:-w,y:-T},{x:w,y:-T},{x:w,y:T},{x:-w,y:T},{x:-w,y:T+v}],N=k.polygon(R.map((B)=>[B.x,B.y]),A),L=h.insert(()=>N,":first-child");if(L.attr("class","basic label-container outer-path"),x&&r.look!=="handDrawn")L.selectAll("path").attr("style",x);if(a&&r.look!=="handDrawn")L.selectAll("path").attr("style",a);return p.attr("transform",`translate(${w+(r.padding??0)/2-(d.x-(d.left??0))}, ${T+v+(r.padding??0)/2-(d.y-(d.top??0))})`),La(r,L),r.intersect=function(B){return ca.rect(r,B)},h}async function $xr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r),o=r.look==="neo"?12:5;r.labelStyle=i;let l=r.padding??0,h=r.look==="neo"?16:l,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r),{ignoreMinWidth:!0}),m=Math.sqrt(p.width**2+p.height**2)/2,y=(r?.width?r?.width/2:m)+(h??0),v=y+o,w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(d),k=ga(r,{roughness:0.2,strokeWidth:2.5}),A=ga(r,{roughness:0.2,strokeWidth:1.5}),R=x.circle(0,0,v*2,k),N=x.circle(0,0,y*2,A);w=d.insert("g",":first-child"),w.attr("class",np(r.cssClasses)).attr("style",np(T)),w.node()?.appendChild(R),w.node()?.appendChild(N)}else{w=d.insert("g",":first-child");let x=w.insert("circle",":first-child"),k=w.insert("circle");w.attr("class","basic label-container").attr("style",a),x.attr("class","outer-circle").attr("style",a).attr("r",v).attr("cx",0).attr("cy",0),k.attr("class","inner-circle").attr("style",a).attr("r",y).attr("cx",0).attr("cy",0)}return La(r,w),r.intersect=function(x){return Ze.info("DoubleCircle intersect",r,v,x),ca.circle(r,v,x)},d}async function Uxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h}=await ss(e,r,bs(r)),{theme:d,themeVariables:p}=Ar();ty(o,r.colorIndex,d,p.borderColorArray);let m=h??10,y=l.width/2+m*2,v=l.height/2+m*2,w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(o),k=ga(r,{}),A=x.ellipse(0,0,y*2,v*2,k);if(w=o.insert(()=>A,":first-child"),w.attr("class","basic label-container"),T)w.attr("style",T)}else w=o.insert("ellipse",":first-child").attr("class","basic label-container").attr("style",a).attr("rx",y).attr("ry",v).attr("cx",0).attr("cy",0);return r.width=y*2,r.height=v*2,La(r,w),r.calcIntersect=function(x,k){let A=x.width/2,R=x.height/2;return ca.ellipse(x,A,R,k)},r.intersect=function(x){return ca.ellipse(r,y,v,x)},o}function Gxr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.label="",r.labelStyle=a;let l=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),h=7,{cssStyles:d}=r,p=cn.svg(l),{nodeBorder:m}=i,y=ga(r,{fillStyle:"solid"});if(r.look!=="handDrawn")y.roughness=0;let v=p.circle(0,0,h*2,y),w=l.insert(()=>v,":first-child");if(w.selectAll("path").attr("style",`fill: ${m} !important;`),d&&d.length>0&&r.look!=="handDrawn")w.selectAll("path").attr("style",d);if(o&&r.look!=="handDrawn")w.selectAll("path").attr("style",o);return La(r,w),r.intersect=function(T){return Ze.info("filledCircle intersect",r,{radius:h,point:T}),ca.circle(r,h,T)},l}async function zxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?o*2:o;if(r.width||r.height){if(r.height=r?.height??0,r.heightR,":first-child").attr("transform",`translate(${-y/2}, ${y/2})`).attr("class","outer-path");if(T&&r.look!=="handDrawn")N.selectChildren("path").attr("style",T);if(a&&r.look!=="handDrawn")N.selectChildren("path").attr("style",a);return r.width=m,r.height=y,La(r,N),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-y/2+(r.padding??0)/2+(d.y-(d.top??0))})`),r.intersect=function(L){return Ze.info("Triangle intersect",r,w,L),ca.polygon(r,w,L)},h}async function Vxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=r.padding??12,p=Math.max(l.width+d*2,r.width??0,90),m=l.height+d*2,y=Math.max(Math.min(m*0.16,14),8),v=Math.max(m+y,r.height??0),w=v-y,T=Math.max(p*0.38,28),x=-v/2,k=[{x:-p/2,y:x},{x:-p/2+T,y:x},{x:-p/2+T,y:x+y},{x:p/2,y:x+y},{x:p/2,y:v/2},{x:-p/2,y:v/2}],A=[`M${k[0].x},${k[0].y}`,...k.slice(1).map((B)=>`L${B.x},${B.y}`),"Z"].join(" "),{cssStyles:R}=r,N;if(r.look==="handDrawn"){let D=cn.svg(o).path(A,ga(r,{}));if(N=o.insert(()=>D,":first-child").attr("class","basic label-container"),R)N.attr("style",R)}else N=o.insert("path",":first-child").attr("d",A).attr("class","basic label-container").attr("style",a);if(r.look==="handDrawn")La(r,N);else La(r,N,{width:p,height:v});let L=x+y+w/2;return h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${L-l.height/2-(l.y-(l.top??0))})`),r.intersect=function(B){return ca.polygon(r,k,B)},o}function Hxr(e,r,{dir:i,config:{state:a,themeVariables:o}}){let{nodeStyles:l}=fa(r);r.label="";let h=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),{cssStyles:d}=r,p=Math.max(70,r?.width??0),m=Math.max(10,r?.height??0);if(i==="LR"||i==="RL")p=Math.max(10,r?.width??0),m=Math.max(70,r?.height??0);let y=-1*p/2,v=-1*m/2,w=cn.svg(h),T=ga(r,{stroke:o.lineColor,fill:o.lineColor});if(r.look!=="handDrawn")T.roughness=0,T.fillStyle="solid";let x=w.rectangle(y,v,p,m,T),k=h.insert(()=>x,":first-child");if(d&&r.look!=="handDrawn")k.selectAll("path").attr("style",d);if(l&&r.look!=="handDrawn")k.selectAll("path").attr("style",l);La(r,k);let A=a?.padding??0;if(r.width&&r.height)r.width+=A/2||0,r.height+=A/2||0;return r.intersect=function(R){return ca.rect(r,R)},h}async function qxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=15,l=10,h=r.look==="neo"?16:r.padding??0,d=r.look==="neo"?12:r.padding??0;if(r.width||r.height){if(r.height=(r?.height??0)-d*2,r.heightL,":first-child");if(B.attr("class","basic label-container outer-path"),x&&r.look!=="handDrawn")B.selectChildren("path").attr("style",x);if(a&&r.look!=="handDrawn")B.selectChildren("path").attr("style",a);return La(r,B),r.intersect=function(D){return Ze.info("Pill intersect",r,{radius:v,point:D}),ca.polygon(r,R,D)},p}async function Yxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r),o=r.look==="neo"?3.5:4;r.labelStyle=i;let l=r.padding??0,h=70,d=32,p=r.look==="neo"?h:l,m=r.look==="neo"?d:l;if(r.width||r.height){let L=(r.height??0)/o;r.width=(r?.width??0)-2*L-m,r.height=(r.height??0)-p}let{shapeSvg:y,bbox:v}=await ss(e,r,bs(r)),w=(r?.height?r?.height:v.height)+p,T=w/o,x=(r?.width?r?.width:v.width)+2*T+m,k=[{x:T,y:0},{x:x-T,y:0},{x,y:-w/2},{x:x-T,y:-w},{x:T,y:-w},{x:0,y:-w/2}],A,{cssStyles:R}=r;if(r.look==="handDrawn"){let N=cn.svg(y),L=ga(r,{}),B=_Wn(0,0,x,w,T),D=N.path(B,L);if(A=y.insert(()=>D,":first-child").attr("transform",`translate(${-x/2}, ${w/2})`),R)A.attr("style",R)}else A=y3(y,x,w,k);if(a)A.attr("style",a);return r.width=x,r.height=w,La(r,A),r.intersect=function(N){return ca.polygon(r,k,N)},y}async function Wxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.label="",r.labelStyle=i;let{shapeSvg:o}=await ss(e,r,bs(r)),l=Math.max(30,r?.width??0),h=Math.max(30,r?.height??0),{cssStyles:d}=r,p=cn.svg(o),m=ga(r,{});if(r.look!=="handDrawn")m.roughness=0,m.fillStyle="solid";let y=[{x:0,y:0},{x:l,y:0},{x:0,y:h},{x:l,y:h}],v=Yc(y),w=p.path(v,m),T=o.insert(()=>w,":first-child");if(T.attr("class","basic label-container outer-path"),d&&r.look!=="handDrawn")T.selectChildren("path").attr("style",d);if(a&&r.look!=="handDrawn")T.selectChildren("path").attr("style",a);return T.attr("transform",`translate(${-l/2}, ${-h/2})`),La(r,T),r.intersect=function(x){return Ze.info("Pill intersect",r,{points:y}),ca.polygon(r,y,x)},o}async function jxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,label:v}=await ss(e,r,"icon-shape default"),w=r.pos==="t",T=d,x=d,{nodeBorder:k}=i,{stylesMap:A}=d3(r),R=-x/2,N=-T/2,L=r.label?8:0,B=cn.svg(m),D=ga(r,{stroke:"none",fill:"none"});if(r.look!=="handDrawn")D.roughness=0,D.fillStyle="solid";let P=B.rectangle(R,N,x,T,D),F=Math.max(x,y.width),H=T+y.height+L,W=B.rectangle(-F/2,-H/2,F,H,{...D,fill:"transparent",stroke:"none"}),X=m.insert(()=>P,":first-child"),Q=m.insert(()=>W);if(r.icon){let Y=m.append("g");Y.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let K=Y.node().getBBox(),{width:J,height:Z,x:j,y:ee}=K;Y.attr("transform",`translate(${-J/2-j},${w?y.height/2+L/2-Z/2-ee:-y.height/2-L/2-Z/2-ee})`),Y.attr("style",`color: ${A.get("stroke")??k};`)}return v.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${w?-H/2:H/2-y.height})`),X.attr("transform",`translate(0,${w?y.height/2+L/2:-y.height/2-L/2})`),La(r,Q),r.intersect=function(Y){if(Ze.info("iconSquare intersect",r,Y),!r.label)return ca.rect(r,Y);let K=r.x??0,J=r.y??0,Z=r.height??0,j=[];if(w)j=[{x:K-y.width/2,y:J-Z/2},{x:K+y.width/2,y:J-Z/2},{x:K+y.width/2,y:J-Z/2+y.height+L},{x:K+x/2,y:J-Z/2+y.height+L},{x:K+x/2,y:J+Z/2},{x:K-x/2,y:J+Z/2},{x:K-x/2,y:J-Z/2+y.height+L},{x:K-y.width/2,y:J-Z/2+y.height+L}];else j=[{x:K-x/2,y:J-Z/2},{x:K+x/2,y:J-Z/2},{x:K+x/2,y:J-Z/2+T},{x:K+y.width/2,y:J-Z/2+T},{x:K+y.width/2/2,y:J+Z/2},{x:K-y.width/2,y:J+Z/2},{x:K-y.width/2,y:J-Z/2+T},{x:K-x/2,y:J-Z/2+T}];return ca.polygon(r,j,Y)},m}async function Kxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,label:v}=await ss(e,r,"icon-shape default"),w=20,T=r.label?8:0,x=r.pos==="t",{nodeBorder:k,mainBkg:A}=i,{stylesMap:R}=d3(r),N=cn.svg(m),L=ga(r,{});if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let B=R.get("fill");L.stroke=B??A;let D=m.append("g");if(r.icon)D.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let P=D.node().getBBox(),{width:F,height:H,x:W,y:X}=P,Q=Math.max(F,H)*Math.SQRT2+w*2,Y=N.circle(0,0,Q,L),K=Math.max(Q,y.width),J=Q+y.height+T,Z=N.rectangle(-K/2,-J/2,K,J,{...L,fill:"transparent",stroke:"none"}),j=m.insert(()=>Y,":first-child"),ee=m.insert(()=>Z);return D.attr("transform",`translate(${-F/2-W},${x?y.height/2+T/2-H/2-X:-y.height/2-T/2-H/2-X})`),D.attr("style",`color: ${R.get("stroke")??k};`),v.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-J/2:J/2-y.height})`),j.attr("transform",`translate(0,${x?y.height/2+T/2:-y.height/2-T/2})`),La(r,ee),r.intersect=function(z){return Ze.info("iconSquare intersect",r,z),ca.rect(r,z)},m}async function Xxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,halfPadding:v,label:w}=await ss(e,r,"icon-shape default"),T=r.pos==="t",x=d+v*2,k=d+v*2,{nodeBorder:A,mainBkg:R}=i,{stylesMap:N}=d3(r),L=-k/2,B=-x/2,D=r.label?8:0,P=cn.svg(m),F=ga(r,{});if(r.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let H=N.get("fill");F.stroke=H??R;let W=P.path(X_(L,B,k,x,5),F),X=Math.max(k,y.width),Q=x+y.height+D,Y=P.rectangle(-X/2,-Q/2,X,Q,{...F,fill:"transparent",stroke:"none"}),K=m.insert(()=>W,":first-child").attr("class","icon-shape2"),J=m.insert(()=>Y);if(r.icon){let Z=m.append("g");Z.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let j=Z.node().getBBox(),{width:ee,height:z,x:ne,y:ie}=j;Z.attr("transform",`translate(${-ee/2-ne},${T?y.height/2+D/2-z/2-ie:-y.height/2-D/2-z/2-ie})`),Z.attr("style",`color: ${N.get("stroke")??A};`)}return w.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${T?-Q/2:Q/2-y.height})`),K.attr("transform",`translate(0,${T?y.height/2+D/2:-y.height/2-D/2})`),La(r,J),r.intersect=function(Z){if(Ze.info("iconSquare intersect",r,Z),!r.label)return ca.rect(r,Z);let j=r.x??0,ee=r.y??0,z=r.height??0,ne=[];if(T)ne=[{x:j-y.width/2,y:ee-z/2},{x:j+y.width/2,y:ee-z/2},{x:j+y.width/2,y:ee-z/2+y.height+D},{x:j+k/2,y:ee-z/2+y.height+D},{x:j+k/2,y:ee+z/2},{x:j-k/2,y:ee+z/2},{x:j-k/2,y:ee-z/2+y.height+D},{x:j-y.width/2,y:ee-z/2+y.height+D}];else ne=[{x:j-k/2,y:ee-z/2},{x:j+k/2,y:ee-z/2},{x:j+k/2,y:ee-z/2+x},{x:j+y.width/2,y:ee-z/2+x},{x:j+y.width/2/2,y:ee+z/2},{x:j-y.width/2,y:ee+z/2},{x:j-y.width/2,y:ee-z/2+x},{x:j-k/2,y:ee-z/2+x}];return ca.polygon(r,ne,Z)},m}async function Qxr(e,r,{config:{themeVariables:i,flowchart:a}}){let{labelStyles:o}=fa(r);r.labelStyle=o;let l=r.assetHeight??48,h=r.assetWidth??48,d=Math.max(l,h),p=a?.wrappingWidth;r.width=Math.max(d,p??0);let{shapeSvg:m,bbox:y,halfPadding:v,label:w}=await ss(e,r,"icon-shape default"),T=r.pos==="t",x=d+v*2,k=d+v*2,{nodeBorder:A,mainBkg:R}=i,{stylesMap:N}=d3(r),L=-k/2,B=-x/2,D=r.label?8:0,P=cn.svg(m),F=ga(r,{});if(r.look!=="handDrawn")F.roughness=0,F.fillStyle="solid";let H=N.get("fill");F.stroke=H??R;let W=P.path(X_(L,B,k,x,0.1),F),X=Math.max(k,y.width),Q=x+y.height+D,Y=P.rectangle(-X/2,-Q/2,X,Q,{...F,fill:"transparent",stroke:"none"}),K=m.insert(()=>W,":first-child"),J=m.insert(()=>Y);if(r.icon){let Z=m.append("g");Z.html(`${await Y_(r.icon,{height:d,width:d,fallbackPrefix:""})}`);let j=Z.node().getBBox(),{width:ee,height:z,x:ne,y:ie}=j;Z.attr("transform",`translate(${-ee/2-ne},${T?y.height/2+D/2-z/2-ie:-y.height/2-D/2-z/2-ie})`),Z.attr("style",`color: ${N.get("stroke")??A};`)}return w.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${T?-Q/2:Q/2-y.height})`),K.attr("transform",`translate(0,${T?y.height/2+D/2:-y.height/2-D/2})`),La(r,J),r.intersect=function(Z){if(Ze.info("iconSquare intersect",r,Z),!r.label)return ca.rect(r,Z);let j=r.x??0,ee=r.y??0,z=r.height??0,ne=[];if(T)ne=[{x:j-y.width/2,y:ee-z/2},{x:j+y.width/2,y:ee-z/2},{x:j+y.width/2,y:ee-z/2+y.height+D},{x:j+k/2,y:ee-z/2+y.height+D},{x:j+k/2,y:ee+z/2},{x:j-k/2,y:ee+z/2},{x:j-k/2,y:ee-z/2+y.height+D},{x:j-y.width/2,y:ee-z/2+y.height+D}];else ne=[{x:j-k/2,y:ee-z/2},{x:j+k/2,y:ee-z/2},{x:j+k/2,y:ee-z/2+x},{x:j+y.width/2,y:ee-z/2+x},{x:j+y.width/2/2,y:ee+z/2},{x:j-y.width/2,y:ee+z/2},{x:j-y.width/2,y:ee-z/2+x},{x:j-k/2,y:ee-z/2+x}];return ca.polygon(r,ne,Z)},m}async function Zxr(e,r,{config:{flowchart:i}}){let a=new Image;a.src=r?.img??"",await a.decode();let o=Number(a.naturalWidth.toString().replace("px","")),l=Number(a.naturalHeight.toString().replace("px",""));r.imageAspectRatio=o/l;let{labelStyles:h}=fa(r);r.labelStyle=h;let d=i?.wrappingWidth;r.defaultWidth=i?.wrappingWidth;let p=Math.max(r.label?d??0:0,r?.assetWidth??o),m=r.constraint==="on"?r?.assetHeight?r.assetHeight*r.imageAspectRatio:p:p,y=r.constraint==="on"?m/r.imageAspectRatio:r?.assetHeight??l;r.width=Math.max(m,d??0);let{shapeSvg:v,bbox:w,label:T}=await ss(e,r,"image-shape default"),x=r.pos==="t",k=-m/2,A=-y/2,R=r.label?8:0,N=cn.svg(v),L=ga(r,{});if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let B=N.rectangle(k,A,m,y,L),D=Math.max(m,w.width),P=y+w.height+R,F=N.rectangle(-D/2,-P/2,D,P,{...L,fill:"none",stroke:"none"}),H=v.insert(()=>B,":first-child"),W=v.insert(()=>F);if(r.img){let X=v.append("image");X.attr("href",r.img),X.attr("width",m),X.attr("height",y),X.attr("preserveAspectRatio","none"),X.attr("transform",`translate(${-m/2},${x?P/2-y:-P/2})`)}return T.attr("transform",`translate(${-w.width/2-(w.x-(w.left??0))},${x?-y/2-w.height/2-R/2:y/2-w.height/2+R/2})`),H.attr("transform",`translate(0,${x?w.height/2+R/2:-w.height/2-R/2})`),La(r,W),r.intersect=function(X){if(Ze.info("iconSquare intersect",r,X),!r.label)return ca.rect(r,X);let Q=r.x??0,Y=r.y??0,K=r.height??0,J=[];if(x)J=[{x:Q-w.width/2,y:Y-K/2},{x:Q+w.width/2,y:Y-K/2},{x:Q+w.width/2,y:Y-K/2+w.height+R},{x:Q+m/2,y:Y-K/2+w.height+R},{x:Q+m/2,y:Y+K/2},{x:Q-m/2,y:Y+K/2},{x:Q-m/2,y:Y-K/2+w.height+R},{x:Q-w.width/2,y:Y-K/2+w.height+R}];else J=[{x:Q-m/2,y:Y-K/2},{x:Q+m/2,y:Y-K/2},{x:Q+m/2,y:Y-K/2+y},{x:Q+w.width/2,y:Y-K/2+y},{x:Q+w.width/2/2,y:Y+K/2},{x:Q-w.width/2,y:Y+K/2},{x:Q-w.width/2,y:Y-K/2+y},{x:Q-m/2,y:Y-K/2+y}];return ca.polygon(r,J,X)},v}async function Jxr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l*2,r.height??0),y=Math.max(p.width+h*2,(r.width??0)-m),v=[{x:0,y:0},{x:y,y:0},{x:y+3*m/6,y:-m},{x:-3*m/6,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(d),k=ga(r,{}),A=Yc(v),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=y3(d,y,m,v);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,v,x)},d}async function eCr(e,r){let{shapeSvg:i,bbox:a,label:o}=await ss(e,r,"label"),l=i.insert("rect",":first-child"),h=0.1,d=0.1;return l.attr("width",0.1).attr("height",0.1),i.attr("class","label edgeLabel"),o.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),La(r,l),r.intersect=function(p){return ca.rect(r,p)},i}async function tCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l,r.height??0),y=Math.max(p.width+h,(r.width??0)-m),v=[{x:0,y:0},{x:y+3*m/6,y:0},{x:y,y:-m},{x:-(3*m)/6,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(d),k=ga(r,{}),A=Yc(v),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=y3(d,y,m,v);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,v,x)},d}async function rCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l,r.height??0),y=Math.max(p.width+h,(r.width??0)-m),v=[{x:-3*m/6,y:0},{x:y,y:0},{x:y+3*m/6,y:-m},{x:0,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(d),k=ga(r,{}),A=Yc(v),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=y3(d,y,m,v);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,v,x)},d}function nCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.label="",r.labelStyle=i;let o=e.insert("g").attr("class",bs(r)).attr("id",r.domId??r.id),{cssStyles:l}=r,h=Math.max(35,r?.width??0),d=Math.max(35,r?.height??0),p=7,m=[{x:h,y:0},{x:0,y:d+p/2},{x:h-2*p,y:d+p/2},{x:0,y:2*d},{x:h,y:d-p/2},{x:2*p,y:d-p/2}],y=cn.svg(o),v=ga(r,{});if(r.look!=="handDrawn")v.roughness=0,v.fillStyle="solid";let w=Yc(m),T=y.path(w,v),x=o.insert(()=>T,":first-child");if(x.attr("class","outer-path"),l&&r.look!=="handDrawn")x.selectAll("path").attr("style",l);if(a&&r.look!=="handDrawn")x.selectAll("path").attr("style",a);return x.attr("transform",`translate(-${h/2},${-d})`),La(r,x),r.intersect=function(k){return Ze.info("lightningBolt intersect",r,k),ca.polygon(r,m,k)},o}async function iCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?24:o;if(r.width||r.height){let R=r.width??0;if(r.width=(r.width??0)-l,r.widthP,":first-child").attr("class","line"),k=d.insert(()=>D,":first-child"),k.attr("class","basic label-container"),A)k.attr("style",A)}else{let R=EWn(0,0,y,T,v,w,x);k=d.insert("path",":first-child").attr("d",R).attr("class","basic label-container outer-path").attr("style",np(A)).attr("style",a)}return k.attr("label-offset-y",w),k.attr("transform",`translate(${-y/2}, ${-(T/2+w)})`),La(r,k),m.attr("transform",`translate(${-(p.width/2)-(p.x-(p.left??0))}, ${-(p.height/2)+w-(p.y-(p.top??0))})`),r.intersect=function(R){let N=ca.rect(r,R),L=N.x-(r.x??0);if(v!=0&&(Math.abs(L)<(r.width??0)/2||Math.abs(L)==(r.width??0)/2&&Math.abs(N.y-(r.y??0))>(r.height??0)/2-w)){let B=w*w*(1-L*L/(v*v));if(B>0)B=Math.sqrt(B);if(B=w-B,R.y-(r.y??0)>0)B=-B;N.y+=B}return N},d}async function aCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o;if(r.width||r.height){let B=r.width;if(r.width=(B??0)*10/11-l*2,r.width<10)r.width=10;if(r.height=(r?.height??0)-h*2,r.height<10)r.height=10}let{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=(r?.width?r?.width:p.width)+(l??0)*2,v=(r?.height?r?.height:p.height)+(h??0)*2,w=r.look==="neo"?v/4:v/8,T=v+w,{cssStyles:x}=r,k=cn.svg(d),A=ga(r,{});if(r.look!=="handDrawn")A.roughness=0,A.fillStyle="solid";let R=[{x:-y/2-y/2*0.1,y:-T/2},{x:-y/2-y/2*0.1,y:T/2},...xL(-y/2-y/2*0.1,T/2,y/2+y/2*0.1,T/2,w,0.8),{x:y/2+y/2*0.1,y:-T/2},{x:-y/2-y/2*0.1,y:-T/2},{x:-y/2,y:-T/2},{x:-y/2,y:T/2*1.1},{x:-y/2,y:-T/2}],N=k.polygon(R.map((B)=>[B.x,B.y]),A),L=d.insert(()=>N,":first-child");if(L.attr("class","basic label-container outer-path"),x&&r.look!=="handDrawn")L.selectAll("path").attr("style",x);if(a&&r.look!=="handDrawn")L.selectAll("path").attr("style",a);return L.attr("transform",`translate(0,${-w/2})`),m.attr("transform",`translate(${-y/2+(r.padding??0)+y/2*0.1/2-(p.x-(p.left??0))},${-v/2+(r.padding??0)-w-(p.y-(p.top??0))})`),La(r,L),r.intersect=function(B){return ca.polygon(r,R,B)},d}async function Yne(e,r,i,a){let{labelStyles:o,nodeStyles:l}=fa(r);r.labelStyle=o;let h=i==="icon"||r.stereotype!==void 0?{...r,icon:i==="icon"?void 0:r.icon,stereotype:void 0}:r,{shapeSvg:d,bbox:p,label:m}=await ss(e,h,bs(r,`usecase-actor-variant usecase-actor-${i}`)),y=r.accessibleName??r.label;if(y)d.attr("role","img").attr("aria-label",y);m.attr("class","label actor-label usecase-actor-label");let{theme:v,themeVariables:w}=Ar();ty(d,r.colorIndex,v,w.borderColorArray);let T,x;if(r.stereotype){let H=await ZP(d,`«${r.stereotype}»`,{labelStyle:o,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0,width:r.wrappingWidth});T=H.label.attr("class","label usecase-stereotype"),x=H.bbox}let k=d.append("g").attr("class",`usecase-actor-glyph ${CWn[i]}`).attr("style",l||null);await a(k,r),RWn(k,r,i);let A=r.padding??xWn,R=x?.height??0,N=Ltt+QTr+p.height+(x?R+ZTr:0),L=Math.max(TWn,p.width,x?.width??0)+A*2,B=N+A*2,D=-N/2;k.attr("transform",`translate(0,${D+Ltt/2})`);let P=D+Ltt+QTr;if(T&&x)P+=R/2,txr(T,x,P),P+=R/2+ZTr;txr(m,p,P+p.height/2);let F=d.insert("rect",":first-child").attr("class","usecase-actor-outline").attr("x",-L/2).attr("y",-B/2).attr("width",L).attr("height",B).attr("opacity",0).attr("aria-hidden","true");return La(r,F),r.intersect=(H)=>ca.rect(r,H),d}async function sCr(e,r){return Yne(e,r,"normal",(i,a)=>{Ytt(i,a,IWn,"usecase-actor-stick")})}async function oCr(e,r){return Yne(e,r,"awesome",(i,a)=>{Ytt(i,a,OWn,"usecase-actor-awesome-silhouette")})}async function lCr(e,r){return Yne(e,r,"hollow",(i,a)=>{AWn(i,a,0,-23,9,"usecase-actor-hollow-head",!0),Ytt(i,a,NWn,"usecase-actor-hollow-body",!0)})}async function cCr(e,r){return Yne(e,r,"icon",LWn)}async function uCr(e,r){let i=r,{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let l=i.stereotype?{...r,stereotype:void 0}:r,{shapeSvg:h,bbox:d,halfPadding:p,label:m}=await ss(e,l,bs(r,"usecase-business-shape"));m.attr("class","label usecase-label");let{theme:y,themeVariables:v}=Ar();ty(h,r.colorIndex,y,v.borderColorArray);let w,T;if(i.stereotype){let K=await ZP(h,`«${i.stereotype}»`,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0,width:r.wrappingWidth});w=K.label.attr("class","label usecase-stereotype"),T=K.bbox}let x=T?2:0,k=d.height+(T?.height??0)+x,A=Math.max(d.width,T?.width??0),R=p??10,N=A/2+R*2,L=k/2+R*2,B=Math.min(Math.max(R/5,1),R/2),D=A/2+B,P=N-B,F=D/N,H=P/N,W=L*Math.sqrt(Math.max(0,1-F*F)),X=-L*Math.sqrt(Math.max(0,1-H*H));if(w&&T)ixr(w,T,-k/2+T.height/2);ixr(m,d,k/2-d.height/2);let Q;if(r.look==="handDrawn"){let J=cn.svg(h).ellipse(0,0,N*2,L*2,ga(r,{}));Q=h.insert(()=>J,":first-child").attr("class","basic label-container usecase-business-ellipse")}else Q=h.insert("ellipse",":first-child").attr("class","basic label-container usecase-business-ellipse").attr("style",o).attr("rx",N).attr("ry",L).attr("cx",0).attr("cy",0);h.append("path").attr("class","usecase-business-marker").attr("d",`M ${D} ${W} L ${P} ${X}`).attr("fill","none").attr("style",o||null);let Y=i.accessibleName??i.label;if(Y)h.attr("role","img").attr("aria-label",Y);return La(r,Q),r.calcIntersect=(K,J)=>ca.ellipse(K,K.width/2,K.height/2,J),r.intersect=(K)=>ca.ellipse(r,N,L,K),h}async function hCr(e,r){let i=r,{labelStyles:a,nodeStyles:o}=fa(r),{stylesMap:l}=d3(r);r.labelStyle=a;let{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r,"usecase-json-table"));if(h.attr("role","img"),i.accessibleName)h.attr("aria-label",i.accessibleName);p.attr("class","label usecase-json-title");let m=h.append("g").attr("class","usecase-json-table-grid"),y=[];for(let K of i.jsonRows??[]){let J=await ZP(m,K.key,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0}),Z=await ZP(m,K.value,{labelStyle:a,useHtmlLabels:r.useHtmlLabels,padding:0,centerLabel:!0});y.push({key:{label:J.label.attr("class","label usecase-json-key"),bbox:J.bbox},value:{label:Z.label.attr("class","label usecase-json-value"),bbox:Z.bbox}})}let v=Math.max(0,...y.map(({key:K})=>K.bbox.width))+Dtt*2,w=Math.max(0,...y.map(({value:K})=>K.bbox.width))+Dtt*2,T=d.width+Dtt*2,x=Math.max(T,v+w),k=w+Math.max(0,x-v-w),A=d.height+axr*2,R=y.map(({key:K,value:J})=>Math.max(K.bbox.height,J.bbox.height)+axr*2),N=A+R.reduce((K,J)=>K+J,0),L=DWn(l.get("stroke-width")),B=x+L*2,D=N+L*2,P=-x/2,F=-N/2,H=r.look==="handDrawn"?cn.svg(h):void 0,W=H?ga(r,{}):void 0,X=I((K,J,Z,j,ee,z)=>{if(H&&W){let ne=H.rectangle(Z,j,ee,z,W);return K.insert(()=>ne,":first-child").attr("class",J)}return K.insert("rect",":first-child").attr("class",J).attr("x",Z).attr("y",j).attr("width",ee).attr("height",z).attr("style",o)},"insertCell"),Q=X(h,"label-container usecase-json-border",-B/2,-D/2,B,D);X(m,"usecase-json-cell usecase-json-title-cell",P,F,x,A),m.node()?.append(p.node()),Ptt(p,d,0,F+A/2);let Y=F+A;return y.forEach(({key:K,value:J},Z)=>{let j=R[Z],ee=m.append("g").attr("class","usecase-json-row").attr("data-row-index",Z).attr("transform",`translate(0,${Y})`);X(ee,"usecase-json-cell usecase-json-key-cell",P,0,v,j),X(ee,"usecase-json-cell usecase-json-value-cell",P+v,0,k,j),ee.node()?.append(K.label.node(),J.label.node()),Ptt(K.label,K.bbox,P+v/2,j/2),Ptt(J.label,J.bbox,P+v+k/2,j/2),Y+=j}),La(r,Q),r.intersect=(K)=>ca.rect(r,K),h}async function dCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=r.look==="neo"?10:5;if(r.width||r.height)r.width=Math.max((r?.width??0)-l*2-2*d,10),r.height=Math.max((r?.height??0)-h*2-2*d,10);let{shapeSvg:p,bbox:m,label:y}=await ss(e,r,bs(r)),v=(r?.width?r?.width:m.width)+l*2+2*d,w=(r?.height?r?.height:m.height)+h*2+2*d,T=v-2*d,x=w-2*d,k=-T/2,A=-x/2,{cssStyles:R}=r,N=cn.svg(p),L=ga(r,{}),B=[{x:k-d,y:A+d},{x:k-d,y:A+x+d},{x:k+T-d,y:A+x+d},{x:k+T-d,y:A+x},{x:k+T,y:A+x},{x:k+T,y:A+x-d},{x:k+T+d,y:A+x-d},{x:k+T+d,y:A-d},{x:k+d,y:A-d},{x:k+d,y:A},{x:k,y:A},{x:k,y:A+d}],D=[{x:k,y:A+d},{x:k+T-d,y:A+d},{x:k+T-d,y:A+x},{x:k+T,y:A+x},{x:k+T,y:A},{x:k,y:A}];if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let P=Yc(B),F=N.path(P,L),H=Yc(D),W=N.path(H,L);if(r.look!=="handDrawn")F=Ftt(F),W=Ftt(W);let X=p.insert("g",":first-child");if(X.insert(()=>F),X.insert(()=>W),X.attr("class","basic label-container outer-path"),R&&r.look!=="handDrawn")X.selectAll("path").attr("style",R);if(a&&r.look!=="handDrawn")X.selectAll("path").attr("style",a);return y.attr("transform",`translate(${-(m.width/2)-d-(m.x-(m.left??0))}, ${-(m.height/2)+d-(m.y-(m.top??0))})`),La(r,X),r.intersect=function(Q){return ca.polygon(r,B,Q)},p}async function fCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=r.padding??0,p=r.look==="neo"?16:d,m=r.look==="neo"?12:d,y=!0;if(r.width||r.height)y=!1,r.width=(r?.width??0)-p*2,r.height=(r?.height??0)-m*3;let v=Math.max(l.width,r?.width??0)+p*2,w=Math.max(l.height,r?.height??0)+m*3,T=r.look==="neo"?w/4:w/8,x=w+(y?T/2:-T/2),k=-v/2,A=-x/2,R=10,{cssStyles:N}=r,L=xL(k-R,A+x+R,k+v-R,A+x+R,T,0.8),B=L?.[L.length-1],D=[{x:k-R,y:A+R},{x:k-R,y:A+x+R},...L,{x:k+v-R,y:B.y-R},{x:k+v,y:B.y-R},{x:k+v,y:B.y-2*R},{x:k+v+R,y:B.y-2*R},{x:k+v+R,y:A-R},{x:k+R,y:A-R},{x:k+R,y:A},{x:k,y:A},{x:k,y:A+R}],P=[{x:k,y:A+R},{x:k+v-R,y:A+R},{x:k+v-R,y:B.y-R},{x:k+v,y:B.y-R},{x:k+v,y:A},{x:k,y:A}],F=cn.svg(o),H=ga(r,{});if(r.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let W=Yc(D),X=F.path(W,H),Q=Yc(P),Y=F.path(Q,H),K=o.insert(()=>X,":first-child");if(K.insert(()=>Y),K.attr("class","basic label-container outer-path"),N&&r.look!=="handDrawn")K.selectAll("path").attr("style",N);if(a&&r.look!=="handDrawn")K.selectAll("path").attr("style",a);return K.attr("transform",`translate(0,${-T/2})`),h.attr("transform",`translate(${-(l.width/2)-R-(l.x-(l.left??0))}, ${-(l.height/2)+R-T-(l.y-(l.top??0))})`),La(r,K),r.intersect=function(J){return ca.polygon(r,D,J)},o}async function pCr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);if(r.labelStyle=a,!(r.useHtmlLabels||Mp(ea())))r.centerLabel=!0;let{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=Math.max(d.width+(r.padding??0)*2,r?.width??0),y=Math.max(d.height+(r.padding??0)*2,r?.height??0),v=-m/2,w=-y/2,{cssStyles:T}=r,x=cn.svg(h),k=ga(r,{fill:i.noteBkgColor,stroke:i.noteBorderColor});if(r.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let A=x.rectangle(v,w,m,y,k),R=h.insert(()=>A,":first-child");if(R.attr("class","basic label-container outer-path"),p.attr("class","label noteLabel"),T&&r.look!=="handDrawn")R.selectAll("path").attr("style",T);if(o&&r.look!=="handDrawn")R.selectAll("path").attr("style",o);return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),La(r,R),r.intersect=function(N){return ca.rect(r,N)},h}async function gCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l}=await ss(e,r,bs(r)),h=l.width+(r.padding??0),d=l.height+(r.padding??0),p=h+d,m=0.5,y=[{x:p/2,y:0},{x:p,y:-p/2},{x:p/2,y:-p},{x:0,y:-p/2}],v,{cssStyles:w}=r;if(r.look==="handDrawn"){let T=cn.svg(o),x=ga(r,{}),k=PWn(0,0,p),A=T.path(k,x);if(v=o.insert(()=>A,":first-child").attr("transform",`translate(${-p/2+m}, ${p/2})`),w)v.attr("style",w)}else v=y3(o,p,p,y),v.attr("transform",`translate(${-p/2+m}, ${p/2})`);if(a)v.attr("style",a);return La(r,v),r.calcIntersect=function(T,x){let k=T.width,A=[{x:k/2,y:0},{x:k,y:-k/2},{x:k/2,y:-k},{x:0,y:-k/2}];return ca.polygon(T,A,x)},r.intersect=function(T){return this.calcIntersect(r,T)},o}async function mCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?21:o??0,h=r.look==="neo"?12:o??0,{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=p.width+(r.look==="neo"?l*2:l),v=Math.max(p.height+(r.look==="neo"?h*2:h),r.height??0),w=v/4,x=-Math.max(y,(r.width??0)-w)/2,k=-v/2,A=k/2,R=[{x:x+A,y:k},{x,y:0},{x:x+A,y:-k},{x:-x,y:-k},{x:-x,y:k}],{cssStyles:N}=r,L=cn.svg(d),B=ga(r,{});if(r.look!=="handDrawn")B.roughness=0,B.fillStyle="solid";let D=Yc(R),P=L.path(D,B),F=d.insert(()=>P,":first-child");if(F.attr("class","basic label-container outer-path"),N&&r.look!=="handDrawn")F.selectAll("path").attr("style",N);if(a&&r.look!=="handDrawn")F.selectAll("path").attr("style",a);return F.attr("transform",`translate(${-A/2},0)`),m.attr("transform",`translate(${-A/2-p.width/2-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),La(r,F),r.intersect=function(H){return ca.polygon(r,R,H)},d}async function bCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o;if(!r.cssClasses)o="node default";else o="node "+r.cssClasses;let l=e.insert("g").attr("class",o).attr("id",r.domId||r.id),h=l.insert("g"),d=l.insert("g").attr("class","label").attr("style",a),{description:p,label:m}=r,y=await TC(d,m,r.labelStyle,!0,!0),v={width:0,height:0};if(Mp(Ar())){let H=y.children[0],W=xn(y);v=H.getBoundingClientRect(),W.attr("width",v.width),W.attr("height",v.height)}Ze.info("Text 2",p);let w=p||[],T=y.getBBox(),x=await TC(d,Array.isArray(w)?w.join("
    "):w,r.labelStyle,!0,!0),k=x.children[0],A=xn(x);v=k.getBoundingClientRect(),A.attr("width",v.width),A.attr("height",v.height);let R=(r.padding||0)/2;xn(x).attr("transform","translate( "+(v.width>T.width?0:(T.width-v.width)/2)+", "+(T.height+R+5)+")"),xn(y).attr("transform","translate( "+(v.width(Ze.debug("Rough node insert CXC",X),Q),":first-child"),P=l.insert(()=>(Ze.debug("Rough node insert CXC",X),X),":first-child")}else P=h.insert("rect",":first-child"),F=h.insert("line"),P.attr("class","outer title-state").attr("style",a).attr("x",-v.width/2-R).attr("y",-v.height/2-R).attr("width",v.width+(r.padding||0)).attr("height",v.height+(r.padding||0)),F.attr("class","divider").attr("x1",-v.width/2-R).attr("x2",v.width/2+R).attr("y1",-v.height/2-R+T.height+R).attr("y2",-v.height/2-R+T.height+R);return La(r,P),r.intersect=function(H){return ca.rect(r,H)},l}async function yCr(e,r,{config:{themeVariables:i}}){let a=i?.radius??5,o={rx:a,ry:a,classes:"",labelPaddingX:(r?.padding??0)*1,labelPaddingY:(r?.padding??0)*1};return $H(e,r,o)}async function vCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.look==="neo"?16:r.padding??0,l=r.look==="neo"?12:r.padding??0,{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=(r?.width??d.width)+o*2+(r.look==="neo"?QP:QP*2),y=(r?.height??d.height)+l*2,v=m-QP,w=y,T=QP-m/2,x=-y/2,{cssStyles:k}=r,A=cn.svg(h),R=ga(r,{});if(r.look!=="handDrawn")R.roughness=0,R.fillStyle="solid";let N=[{x:T,y:x},{x:T+v,y:x},{x:T+v,y:x+w},{x:T-QP,y:x+w},{x:T-QP,y:x},{x:T,y:x},{x:T,y:x+w}],L=A.polygon(N.map((D)=>[D.x,D.y]),R),B=h.insert(()=>L,":first-child");if(B.attr("class","basic label-container outer-path").attr("style",np(k)),a&&r.look!=="handDrawn")B.selectAll("path").attr("style",a);if(k&&r.look!=="handDrawn")B.selectAll("path").attr("style",a);return p.attr("transform",`translate(${QP/2-d.width/2-(d.x-(d.left??0))}, ${-(d.height/2)-(d.y-(d.top??0))})`),La(r,B),r.intersect=function(D){return ca.rect(r,D)},h}async function _Cr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o;if(r.width||r.height)r.width=Math.max((r?.width??0)-l*2,10),r.height=Math.max((r?.height??0)/1.5-h*2,10);let{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=(r?.width?r?.width:p.width)+l*2,v=((r?.height?r?.height:p.height)+h*2)*1.5,w=y,T=v/1.5,x=-w/2,k=-T/2,{cssStyles:A}=r,R=cn.svg(d),N=ga(r,{});if(r.look!=="handDrawn")N.roughness=0,N.fillStyle="solid";let L=[{x,y:k},{x,y:k+T},{x:x+w,y:k+T},{x:x+w,y:k-T/2}],B=Yc(L),D=R.path(B,N),P=d.insert(()=>D,":first-child");if(P.attr("class","basic label-container outer-path"),A&&r.look!=="handDrawn")P.selectChildren("path").attr("style",A);if(a&&r.look!=="handDrawn")P.selectChildren("path").attr("style",a);return P.attr("transform",`translate(0, ${T/4})`),m.attr("transform",`translate(${-w/2+(r.padding??0)-(p.x-(p.left??0))}, ${-T/4+(r.padding??0)-(p.y-(p.top??0))})`),La(r,P),r.intersect=function(F){return ca.polygon(r,L,F)},d}async function ECr(e,r){let i=r.padding??0,a=r.look==="neo"?16:i*2,o=r.look==="neo"?12:i,l={rx:0,ry:0,classes:"",labelPaddingX:r.labelPaddingX??a,labelPaddingY:o},h=await $H(e,r,l);if(r.colorIndex!==void 0){let{theme:d,themeVariables:p}=Ar();ty(h,r.colorIndex,d,p.borderColorArray)}return h}async function wCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?40:o,h=r.look==="neo"?24:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),{w:m,h:y}=BWn(p,l,h),v=y/2,{cssStyles:w}=r,T=cn.svg(d),x=ga(r,{});if(r.look!=="handDrawn")x.roughness=0,x.fillStyle="solid";let k=[{x:-m/2+v,y:-y/2},{x:m/2-v,y:-y/2},...m3(-m/2+v,0,v,Gtt,90,270),{x:m/2-v,y:y/2},...m3(m/2-v,0,v,Gtt,270,450)],A=Yc(k),R=T.path(A,x),N=d.insert(()=>R,":first-child");if(N.attr("class","basic label-container outer-path"),w&&r.look!=="handDrawn")N.selectChildren("path").attr("style",w);if(a&&r.look!=="handDrawn")N.selectChildren("path").attr("style",a);return La(r,N),r.intersect=function(L){return ca.polygon(r,k,L)},d}async function SCr(e,r){let i={rx:r.look==="neo"?3:5,ry:r.look==="neo"?3:5,classes:"flowchart-node"};return $H(e,r,i)}function TCr(e,r,{config:{themeVariables:i}}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a;let{cssStyles:l}=r,{lineColor:h,stateBorder:d,nodeBorder:p,nodeShadow:m}=i;if(r.width||r.height){if((r.width??0)<14)r.width=14;if((r.height??0)<14)r.height=14}if(!r.width)r.width=14;if(!r.height)r.height=14;let y=e.insert("g").attr("class","node default").attr("id",r.domId??r.id),v=cn.svg(y),w=ga(r,{});if(r.look!=="handDrawn")w.roughness=0,w.fillStyle="solid";let T=v.circle(0,0,r.width,{...w,stroke:h,strokeWidth:2}),x=d??p,k=(r.width??0)*5/14,A=v.circle(0,0,k,{...w,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),R=y.insert(()=>T,":first-child");if(R.insert(()=>A),r.look!=="handDrawn")R.attr("class","outer-path");if(l)R.selectAll("path").attr("style",l);if(o)R.selectAll("path").attr("style",o);if(r.width<25&&m&&r.look!=="handDrawn"){let N=e.node()?.ownerSVGElement?.id??"",L=N?`${N}-drop-shadow-small`:"drop-shadow-small";R.attr("style",`filter:url(#${L})`)}return La(r,R),r.intersect=function(N){return ca.circle(r,(r.width??0)/2,N)},y}function xCr(e,r,{config:{themeVariables:i}}){let{lineColor:a,nodeShadow:o}=i;if(r.width||r.height){if((r.width??0)<14)r.width=14;if((r.height??0)<14)r.height=14}if(!r.width)r.width=14;if(!r.height)r.height=14;let l=e.insert("g").attr("class","node default").attr("id",r.domId||r.id),h;if(r.look==="handDrawn"){let p=cn.svg(l).circle(0,0,r.width,Owr(a));h=l.insert(()=>p),h.attr("class","state-start").attr("r",(r.width??7)/2).attr("width",r.width??14).attr("height",r.height??14)}else h=l.insert("circle",":first-child"),h.attr("class","state-start").attr("r",(r.width??7)/2).attr("width",r.width??14).attr("height",r.height??14);if(r.width<25&&o&&r.look!=="handDrawn"){let d=e.node()?.ownerSVGElement?.id??"",p=d?`${d}-drop-shadow-small`:"drop-shadow-small";h.attr("style",`filter:url(#${p})`)}return La(r,h),r.intersect=function(d){return ca.circle(r,(r.width??7)/2,d)},l}async function CCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r?.padding??8,l=r.look==="neo"?28:o,h=r.look==="neo"?12:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.width+2*PH+l,r.width??0),y=Math.max(p.height+h,r.height??0),v=m-2*PH,w=y,T=-m/2,x=-y/2,k=[{x:0,y:0},{x:v,y:0},{x:v,y:-w},{x:0,y:-w},{x:0,y:0},{x:-8,y:0},{x:v+8,y:0},{x:v+8,y:-w},{x:-8,y:-w},{x:-8,y:0}];if(r.look==="handDrawn"){let A=cn.svg(d),R=ga(r,{}),N=A.rectangle(T,x,v+16,w,R),L=A.line(T+PH,x,T+PH,x+w,R),B=A.line(T+PH+v,x,T+PH+v,x+w,R);d.insert(()=>L,":first-child"),d.insert(()=>B,":first-child");let D=d.insert(()=>N,":first-child"),{cssStyles:P}=r;D.attr("class","basic label-container").attr("style",np(P)),La(r,D)}else{let A=y3(d,v,w,k);if(a)A.attr("style",a);La(r,A)}return r.intersect=function(A){return ca.polygon(r,k,A)},d}async function kCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o;if(r.width||r.height)r.height=Math.max((r?.height??0)-h*2,10),r.width=Math.max((r?.width??0)-l*2-Btt*(r.height+h*2),10);let{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=(r?.height?r?.height:p.height)+h*2,y=Btt*m,v=Btt*m,T=(r?.width?r?.width:p.width)+l*2+y-y,x=m,k=-T/2,A=-x/2,{cssStyles:R}=r,N=cn.svg(d),L=ga(r,{}),B=[{x:k-y/2,y:A},{x:k+T+y/2,y:A},{x:k+T+y/2,y:A+x},{x:k-y/2,y:A+x}],D=[{x:k+T-y/2,y:A+x},{x:k+T+y/2,y:A+x},{x:k+T+y/2,y:A+x-v}];if(r.look!=="handDrawn")L.roughness=0,L.fillStyle="solid";let P=Yc(B),F=N.path(P,L),H=Yc(D),W=N.path(H,{...L,fillStyle:"solid"}),X=d.insert(()=>W,":first-child");if(X.insert(()=>F,":first-child"),X.attr("class","basic label-container outer-path"),R&&r.look!=="handDrawn")X.selectAll("path").attr("style",R);if(a&&r.look!=="handDrawn")X.selectAll("path").attr("style",a);return La(r,X),r.intersect=function(Q){return ca.polygon(r,B,Q)},d}async function ACr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,label:h}=await ss(e,r,bs(r)),d=Math.max(l.width+(r.padding??0)*2,r?.width??0),p=Math.max(l.height+(r.padding??0)*2,r?.height??0),m=p/8,y=0.2*d,v=0.2*p,w=p+m,{cssStyles:T}=r,x=cn.svg(o),k=ga(r,{});if(r.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let A=[{x:-d/2-d/2*0.1,y:w/2},...xL(-d/2-d/2*0.1,w/2,d/2+d/2*0.1,w/2,m,0.8),{x:d/2+d/2*0.1,y:-w/2},{x:-d/2-d/2*0.1,y:-w/2}],R=-d/2+d/2*0.1,N=-w/2-v*0.4,L=[{x:R+d-y,y:(N+p)*1.3},{x:R+d,y:N+p-v},{x:R+d,y:(N+p)*0.9},...xL(R+d,(N+p)*1.25,R+d-y,(N+p)*1.3,-p*0.02,0.5)],B=Yc(A),D=x.path(B,k),P=Yc(L),F=x.path(P,{...k,fillStyle:"solid"}),H=o.insert(()=>F,":first-child");if(H.insert(()=>D,":first-child"),H.attr("class","basic label-container outer-path"),T&&r.look!=="handDrawn")H.selectAll("path").attr("style",T);if(a&&r.look!=="handDrawn")H.selectAll("path").attr("style",a);return H.attr("transform",`translate(0,${-m/2})`),h.attr("transform",`translate(${-d/2+(r.padding??0)-(l.x-(l.left??0))},${-p/2+(r.padding??0)-m/2-(l.y-(l.top??0))})`),La(r,H),r.intersect=function(W){return ca.polygon(r,A,W)},o}async function RCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l}=await ss(e,r,bs(r)),h=Math.max(l.width+(r.padding??0),r?.width||0),d=Math.max(l.height+(r.padding??0),r?.height||0),p=-h/2,m=-d/2,y=o.insert("rect",":first-child");return y.attr("class","text").attr("style",a).attr("rx",0).attr("ry",0).attr("x",p).attr("y",m).attr("width",h).attr("height",d),La(r,y),r.intersect=function(v){return ca.rect(r,v)},o}async function ICr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?12:o/2,h=r.height??0;if(r.height){if(r.height=r.height-l,r.heightB,":first-child"),k=d.insert(()=>L,":first-child"),k.attr("class","basic label-container"),x)k.attr("style",x)}else{let A=FWn(0,0,T,y,w,v);if(k=d.insert("path",":first-child").attr("d",A).attr("class","basic label-container").attr("style",np(x)).attr("style",a),k.attr("class","basic label-container outer-path"),x)k.selectAll("path").attr("style",x);if(a)k.selectAll("path").attr("style",a)}return k.attr("label-offset-x",w),k.attr("transform",`translate(${-T/2}, ${y/2} )`),m.attr("transform",`translate(${-(p.width/2)-w-(p.x-(p.left??0))}, ${-(p.height/2)-(p.y-(p.top??0))})`),La(r,k),r.intersect=function(A){let R=ca.rect(r,A),N=R.y-(r.y??0);if(v!=0&&(Math.abs(N)<(r.height??0)/2||Math.abs(N)==(r.height??0)/2&&Math.abs(R.x-(r.x??0))>(r.width??0)/2-w)){let L=w*w*(1-N*N/(v*v));if(L!=0)L=Math.sqrt(Math.abs(L));if(L=w-L,A.x-(r.x??0)>0)L=-L;R.x+=L}return R},d}async function OCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?o:o,h=r.look==="neo"?o*2:o,{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=Math.max(p.height+l,r.height??0),y=Math.max(p.width+h,(r.width??0)-m),v=[{x:-3*m/6,y:0},{x:y+3*m/6,y:0},{x:y,y:-m},{x:0,y:-m}],w,{cssStyles:T}=r;if(r.look==="handDrawn"){let x=cn.svg(d),k=ga(r,{}),A=Yc(v),R=x.path(A,k);if(w=d.insert(()=>R,":first-child").attr("transform",`translate(${-y/2}, ${m/2})`),T)w.attr("style",T)}else w=y3(d,y,m,v);if(a)w.attr("style",a);return r.width=y,r.height=m,La(r,w),r.intersect=function(x){return ca.polygon(r,v,x)},d}async function NCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=15,p=5;if(r.width||r.height){if(r.height=(r.height??0)-h*2,r.heightN,":first-child");if(L.attr("class","basic label-container outer-path"),T&&r.look!=="handDrawn")L.selectChildren("path").attr("style",T);if(a&&r.look!=="handDrawn")L.selectChildren("path").attr("style",a);return La(r,L),r.intersect=function(B){return ca.polygon(r,A,B)},m}async function LCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?o*2:o;if(r.width||r.height){if(r.width=((r?.width??0)-l)/2,r.widthN,":first-child").attr("transform",`translate(${-v/2}, ${v/2})`).attr("class","outer-path");if(x&&r.look!=="handDrawn")L.selectChildren("path").attr("style",x);if(a&&r.look!=="handDrawn")L.selectChildren("path").attr("style",a);return r.width=y,r.height=v,La(r,L),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))}, ${v/2-(d.height+(r.padding??0)/(m?2:1)-(d.y-(d.top??0)))})`),r.intersect=function(B){return Ze.info("Triangle intersect",r,T,B),ca.polygon(r,T,B)},h}async function MCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?12:o,d=!0;if(r.width||r.height){if(d=!1,r.width=(r?.width??0)-l*2,r.width<10)r.width=10;if(r.height=(r?.height??0)-h*2,r.height<10)r.height=10}let{shapeSvg:p,bbox:m,label:y}=await ss(e,r,bs(r)),v=(r?.width?r?.width:m.width)+(l??0)*2,w=(r?.height?r?.height:m.height)+(h??0)*2,T=r.look==="neo"?w/4:w/8,x=w+(d?T:-T),{cssStyles:k}=r,R=14-v,N=R>0?R/2:0,L=cn.svg(p),B=ga(r,{});if(r.look!=="handDrawn")B.roughness=0,B.fillStyle="solid";let D=[{x:-v/2-N,y:x/2},...xL(-v/2-N,x/2,v/2+N,x/2,T,0.8),{x:v/2+N,y:-x/2},{x:-v/2-N,y:-x/2}],P=Yc(D),F=L.path(P,B),H=p.insert(()=>F,":first-child");if(H.attr("class","basic label-container outer-path"),k&&r.look!=="handDrawn")H.selectAll("path").attr("style",k);if(a&&r.look!=="handDrawn")H.selectAll("path").attr("style",a);return H.attr("transform",`translate(0,${-T/2})`),y.attr("transform",`translate(${-v/2+(r.padding??0)-(m.x-(m.left??0))},${-w/2+(r.padding??0)-T-(m.y-(m.top??0))})`),La(r,H),r.intersect=function(W){return ca.polygon(r,D,W)},p}async function DCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.padding??0,l=r.look==="neo"?16:o,h=r.look==="neo"?20:o;if(r.width||r.height){if(r.width=r?.width??0,r.width<20)r.width=20;if(r.height=r?.height??0,r.height<10)r.height=10;let B=Math.min(r.height*0.2,r.height/4);r.height=Math.ceil(r.height-h-B*2.2222222222222223),r.width=r.width-l*2}let{shapeSvg:d,bbox:p}=await ss(e,r,bs(r)),m=(r?.width?r?.width:p.width)+l*2,y=(r?.height?r?.height:p.height)+h,v=y/8,w=y+v*2,{cssStyles:T}=r,x=cn.svg(d),k=ga(r,{});if(r.look!=="handDrawn")k.roughness=0,k.fillStyle="solid";let A=[{x:-m/2,y:w/2},...xL(-m/2,w/2,m/2,w/2,v,1),{x:m/2,y:-w/2},...xL(m/2,-w/2,-m/2,-w/2,v,-1)],R=Yc(A),N=x.path(R,k),L=d.insert(()=>N,":first-child");if(L.attr("class","basic label-container"),T&&r.look!=="handDrawn")L.selectAll("path").attr("style",T);if(a&&r.look!=="handDrawn")L.selectAll("path").attr("style",a);return La(r,L),r.intersect=function(B){return ca.polygon(r,A,B)},d}async function PCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r.look==="neo"?16:r.padding??0,l=r.look==="neo"?12:r.padding??0;if(r.width||r.height)r.width=Math.max((r?.width??0)-o*2-Fp,10),r.height=Math.max((r?.height??0)-l*2-Fp,10);let{shapeSvg:h,bbox:d,label:p}=await ss(e,r,bs(r)),m=(r?.width?r?.width:d.width)+o*2+Fp,y=(r?.height?r?.height:d.height)+l*2+Fp,v=m-Fp,w=y-Fp,T=-v/2,x=-w/2,{cssStyles:k}=r,A=cn.svg(h),R=ga(r,{}),N=[{x:T-Fp,y:x-Fp},{x:T-Fp,y:x+w},{x:T+v,y:x+w},{x:T+v,y:x-Fp}],L=`M${T-Fp},${x-Fp} L${T+v},${x-Fp} L${T+v},${x+w} L${T-Fp},${x+w} L${T-Fp},${x-Fp} + M${T-Fp},${x} L${T+v},${x} + M${T},${x-Fp} L${T},${x+w}`;if(r.look!=="handDrawn")R.roughness=0,R.fillStyle="solid";let B=A.path(L,R),D=h.insert(()=>B,":first-child");if(D.attr("transform",`translate(${Fp/2}, ${Fp/2})`),D.attr("class","basic label-container outer-path"),k&&r.look!=="handDrawn")D.selectAll("path").attr("style",k);if(a&&r.look!=="handDrawn")D.selectAll("path").attr("style",a);return p.attr("transform",`translate(${-(d.width/2)+Fp/2-(d.x-(d.left??0))}, ${-(d.height/2)+Fp/2-(d.y-(d.top??0))})`),La(r,D),r.intersect=function(P){return ca.polygon(r,N,P)},h}async function Wtt(e,r){let i=r;if(i.alias)r.label=i.alias;let{theme:a,themeVariables:o}=ea(),{rowEven:l,rowOdd:h,nodeBorder:d,borderColorArray:p}=o;if(r.look==="handDrawn"){let{themeVariables:Ie}=ea(),{background:Ee}=Ie,ze={...r,id:r.id+"-background",domId:(r.domId||r.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${Ee}`]};await Wtt(e,ze)}let m=ea();r.useHtmlLabels=m.htmlLabels;let y=m.er?.diagramPadding??10,v=m.er?.entityPadding??6,{cssStyles:w}=r,{labelStyles:T,nodeStyles:x}=fa(r);if(i.attributes.length===0&&r.label){let Ie={rx:0,ry:0,labelPaddingX:y,labelPaddingY:y*1.5,classes:""};if(ey(r.label,m)+Ie.labelPaddingX*20){let Ie=R.width+y*2-(D+P+F+H);if(D+=Ie/Q,P+=Ie/Q,F>0)F+=Ie/Q;if(H>0)H+=Ie/Q}let K=D+P+F+H,J=cn.svg(A),Z=ga(r,{});if(r.look!=="handDrawn")Z.roughness=0,Z.fillStyle="solid";let j=0;if(B.length>0)j=B.reduce((Ie,Ee)=>Ie+(Ee?.rowHeight??0),0);let ee=Math.max(Y.width+y*2,r?.width||0,K),z=Math.max((j??0)+R.height,r?.height||0),ne=-ee/2,ie=-z/2;if(A.selectAll("g:not(:first-child)").each((Ie,Ee,ze)=>{let Me=xn(ze[Ee]),Xe=Me.attr("transform"),Ye=0,Qe=0;if(Xe){let dt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Xe);if(dt){if(Ye=parseFloat(dt[1]),Qe=parseFloat(dt[2]),Me.attr("class").includes("attribute-name"))Ye+=D;else if(Me.attr("class").includes("attribute-keys"))Ye+=D+P;else if(Me.attr("class").includes("attribute-comment"))Ye+=D+P+F}}Me.attr("transform",`translate(${ne+y/2+Ye}, ${Qe+ie+R.height+v/2})`)}),A.select(".name").attr("transform","translate("+-R.width/2+", "+(ie+v/2)+")"),a!=null&&uxr.has(a)){let Ie=i.colorIndex??0;A.attr("data-color-id",`color-${Ie%p.length}`)}let se=J.rectangle(ne,ie,ee,z,Z),oe=A.insert(()=>se,":first-child").attr("class","outer-path").attr("style",w.join(""));L.push(0);for(let[Ie,Ee]of B.entries()){let Me=(Ie+1)%2===0&&Ee.yOffset!==0,Xe=J.rectangle(ne,R.height+ie+Ee?.yOffset,ee,Ee?.rowHeight,{...Z,fill:Me?l:h,stroke:d});A.insert(()=>Xe,"g.label").attr("style",w.join("")).attr("class",`row-rect-${Me?"even":"odd"}`)}let he=0.0001,ye=FH(ne,R.height+ie,ee+ne,R.height+ie,he),Se=J.polygon(ye.map((Ie)=>[Ie.x,Ie.y]),Z);if(A.insert(()=>Se).attr("class","divider"),ye=FH(D+ne,R.height+ie,D+ne,z+ie,he),Se=J.polygon(ye.map((Ie)=>[Ie.x,Ie.y]),Z),A.insert(()=>Se).attr("class","divider"),W){let Ie=D+P+ne;ye=FH(Ie,R.height+ie,Ie,z+ie,he),Se=J.polygon(ye.map((Ee)=>[Ee.x,Ee.y]),Z),A.insert(()=>Se).attr("class","divider")}if(X){let Ie=D+P+F+ne;ye=FH(Ie,R.height+ie,Ie,z+ie,he),Se=J.polygon(ye.map((Ee)=>[Ee.x,Ee.y]),Z),A.insert(()=>Se).attr("class","divider")}for(let Ie of L){let Ee=R.height+ie+Ie;ye=FH(ne,Ee,ee+ne,Ee,he),Se=J.polygon(ye.map((ze)=>[ze.x,ze.y]),Z),A.insert(()=>Se).attr("class","divider")}if(La(r,oe),x&&r.look!=="handDrawn")if(a!=null&&GWn.has(a))A.selectAll("path").attr("style",x);else{let Ee=x.split(";")?.filter((ze)=>ze.includes("stroke"))?.map((ze)=>`${ze}`).join("; ");A.selectAll("path").attr("style",Ee??""),A.selectAll(".row-rect-even path").attr("style",x)}return r.intersect=function(Ie){return ca.rect(r,Ie)},A}async function BH(e,r,i,a=0,o=0,l=[],h=""){let d=e.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${a}, ${o})`).attr("style",h);if(r!==n3(r))r=n3(r),r=r.replaceAll("<","<").replaceAll(">",">");let p=d.node().appendChild(await ug(d,r,{width:ey(r,i)+100,style:h,useHtmlLabels:i.htmlLabels},i));if(r.includes("<")||r.includes(">")){let y=p.children[0];y.textContent=y.textContent.replaceAll("<","<").replaceAll(">",">");while(y.childNodes[0])y=y.childNodes[0],y.textContent=y.textContent.replaceAll("<","<").replaceAll(">",">")}let m=p.getBBox();if(zE(i.htmlLabels)){let y=p.children[0];y.style.textAlign="start";let v=xn(p);m=y.getBoundingClientRect(),v.attr("width",m.width),v.attr("height",m.height)}return m}function FH(e,r,i,a,o){if(e===i)return[{x:e-o/2,y:r},{x:e+o/2,y:r},{x:i+o/2,y:a},{x:i-o/2,y:a}];return[{x:e,y:r-o/2},{x:e,y:r+o/2},{x:i,y:a+o/2},{x:i,y:a-o/2}]}async function BCr(e,r,i,a,o=i.class.padding??12){let l=!a?3:0,h=e.insert("g").attr("class",bs(r)).attr("id",r.domId||r.id),d=null,p=null,m=null,y=null,v=0,w=0,T=0;if(d=h.insert("g").attr("class","annotation-group text"),r.annotations.length>0){let N=r.annotations[0];await qne(d,{text:`«${N}»`},0),v=d.node().getBBox().height}p=h.insert("g").attr("class","label-group text"),await qne(p,r,0,["font-weight: bolder"]);let x=p.node().getBBox();w=x.height,m=h.insert("g").attr("class","members-group text");let k=0;for(let N of r.members){let L=await qne(m,N,k,[N.parseClassifier()]);k+=L+l}if(T=m.node().getBBox().height,T<=0)T=o/2;y=h.insert("g").attr("class","methods-group text");let A=0;for(let N of r.methods){let L=await qne(y,N,A,[N.parseClassifier()]);A+=L+l}let R=h.node().getBBox();if(d!==null){let N=d.node().getBBox();d.attr("transform",`translate(${-N.width/2})`)}return p.attr("transform",`translate(${-x.width/2}, ${v})`),R=h.node().getBBox(),m.attr("transform",`translate(0, ${v+w+o*2})`),R=h.node().getBBox(),y.attr("transform",`translate(0, ${v+w+(T?T+o*4:o*2)})`),R=h.node().getBBox(),{shapeSvg:h,bbox:R}}async function qne(e,r,i,a=[]){let o=e.insert("g").attr("class","label").attr("style",a.join("; ")),l=ea(),h="useHtmlLabels"in r?r.useHtmlLabels:zE(l.htmlLabels)??!0,d="";if("text"in r)d=r.text;else d=r.label;if(!h&&d.startsWith("\\"))d=d.substring(1);if(bf(d))h=!0;let p=await ug(o,W_e(EC(d)),{width:ey(d,l)+50,classes:"markdown-node-label",useHtmlLabels:h},l),m,y=1;if(!h){if(a.includes("font-weight: bolder"))xn(p).selectAll("tspan").attr("font-weight","");y=p.children.length;let v=p.children[0];if(p.textContent===""||p.textContent.includes(">")){if(v.textContent=d[0]+d.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),d[1]===" ")v.textContent=v.textContent[0]+" "+v.textContent.substring(1)}if(v.textContent==="undefined")v.textContent="";m=p.getBBox()}else{let v=p.children[0],w=xn(p);if(y=v.innerHTML.split("
    ").length,v.innerHTML.includes(""))y+=v.innerHTML.split("").length-1;await ztt(v),m=v.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}return o.attr("transform","translate(0,"+(-m.height/(2*y)+i)+")"),m.height}async function FCr(e,r){let i=Ar(),{theme:a,themeVariables:o}=i,{useGradient:l,borderColorArray:h}=o,d=i.class.padding??12,p=d,m=r.useHtmlLabels??zE(i.htmlLabels)??!0,y=r;y.annotations=y.annotations??[],y.members=y.members??[],y.methods=y.methods??[];let{shapeSvg:v,bbox:w}=await BCr(e,r,i,m,p);ty(v,r.colorIndex,a,h);let{labelStyles:T,nodeStyles:x}=fa(r);r.labelStyle=T,r.cssStyles=y.styles||"";let k=y.styles?.join(";")||x||"";if(!r.cssStyles)r.cssStyles=k.replaceAll("!important","").split(";");let A=y.members.length===0&&y.methods.length===0&&!i.class?.hideEmptyMembersBox,R=cn.svg(v),N=ga(r,{});if(r.look!=="handDrawn")N.roughness=0,N.fillStyle="solid";let L=Math.max(r.width??0,w.width),B=Math.max(r.height??0,w.height),D=(r.height??0)>w.height;if(y.members.length===0&&y.methods.length===0)B+=p;else if(y.members.length>0&&y.methods.length===0)B+=p*2;let P=-L/2,F=-B/2,H=A?d*2:y.members.length===0&&y.methods.length===0?-d:0;if(D)H=d*2;let W=R.rectangle(P-d,F-d-(A?d:y.members.length===0&&y.methods.length===0?-d/2:0),L+2*d,B+2*d+H,N),X=v.insert(()=>W,":first-child");X.attr("class","basic label-container outer-path");let Q=X.node().getBBox(),Y=v.select(".annotation-group").node().getBBox().height-(A?d/2:0)||0,K=v.select(".label-group").node().getBBox().height-(A?d/2:0)||0,J=v.select(".members-group").node().getBBox().height-(A?d/2:0)||0,Z=(Y+K+F+d-(F-d-(A?d:y.members.length===0&&y.methods.length===0?-d/2:0)))/2;if(v.selectAll(".text").each((j,ee,z)=>{let ne=xn(z[ee]),ie=ne.attr("transform"),se=0;if(ie){let Se=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ie);if(Se)se=parseFloat(Se[2])}let oe=se+F+d-(A?d:y.members.length===0&&y.methods.length===0?-d/2:0);if(ne.attr("class").includes("methods-group")){let ye=Math.max(J,p/2);if(D)oe=Math.max(Z,Y+K+ye+F+p*2+d)+p*2;else oe=Y+K+ye+F+p*4+d}if(y.members.length===0&&y.methods.length===0&&i.class?.hideEmptyMembersBox)if(y.annotations.length>0)oe=se-p;else oe=se;if(!m)oe-=4;let he=P;if(ne.attr("class").includes("label-group")||ne.attr("class").includes("annotation-group"))he=-ne.node()?.getBBox().width/2||0,v.selectAll("text").each(function(ye,Se,Ie){if(window.getComputedStyle(Ie[Se]).textAnchor==="middle")he=0});ne.attr("transform",`translate(${he}, ${oe})`)}),y.members.length>0||y.methods.length>0||A){let j=Y+K+F+d,ee=R.line(Q.x,j,Q.x+Q.width,j+0.001,N);v.insert(()=>ee).attr("class",`divider${r.look==="neo"&&!l?" neo-line":""}`).attr("style",k)}if(A||y.members.length>0||y.methods.length>0){let j=Y+K+J+F+p*2+d,ee=R.line(Q.x,D?Math.max(Z,j):j,Q.x+Q.width,(D?Math.max(Z,j):j)+0.001,N);v.insert(()=>ee).attr("class",`divider${r.look==="neo"&&!l?" neo-line":""}`).attr("style",k)}if(y.look!=="handDrawn")v.selectAll("path").attr("style",k);if(X.select(":nth-child(2)").attr("style",k),v.selectAll(".divider").select("path").attr("style",k),r.labelStyle)v.selectAll("span").attr("style",r.labelStyle);else v.selectAll("span").attr("style",k);if(!m){let j=RegExp(/color\s*:\s*([^;]*)/),ee=j.exec(k);if(ee){let z=ee[0].replace("color","fill");v.selectAll("tspan").attr("style",z)}else if(T){let z=j.exec(T);if(z){let ne=z[0].replace("color","fill");v.selectAll("tspan").attr("style",ne)}}}return La(r,X),r.intersect=function(j){return ca.rect(r,j)},v}async function $Cr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let o=r,l=r,h=20,d=20,p="verifyMethod"in r,m=bs(r),y=Ar(),{themeVariables:v}=y,{borderColorArray:w,requirementEdgeLabelBackground:T}=v,x=y.layout==="elk"?"start":"center",k=e.insert("g").attr("class",m).attr("id",r.domId??r.id),A;if(p)A=await g3(k,`<<${o.type}>>`,0,r.labelStyle);else A=await g3(k,"<<Element>>",0,r.labelStyle);let R=A,N=await g3(k,o.name,R,r.labelStyle+"; font-weight: bold;");if(R+=N+d,p){let Q=await g3(k,`${o.requirementId?`ID: ${o.requirementId}`:""}`,R,r.labelStyle,x);R+=Q;let Y=await g3(k,`${o.text?`Text: ${o.text}`:""}`,R,r.labelStyle,x);R+=Y;let K=await g3(k,`${o.risk?`Risk: ${o.risk}`:""}`,R,r.labelStyle,x);R+=K,await g3(k,`${o.verifyMethod?`Verification: ${o.verifyMethod}`:""}`,R,r.labelStyle,x)}else{let Q=await g3(k,`${l.type?`Type: ${l.type}`:""}`,R,r.labelStyle,x);R+=Q,await g3(k,`${l.docRef?`Doc Ref: ${l.docRef}`:""}`,R,r.labelStyle,x)}let L=(k.node()?.getBBox().width??200)+h,B=(k.node()?.getBBox().height??200)+h,D=-L/2,P=-B/2,F=cn.svg(k),H=ga(r,{});if(r.look!=="handDrawn")H.roughness=0,H.fillStyle="solid";let W=F.rectangle(D,P,L,B,H),X=k.insert(()=>W,":first-child");if(X.attr("class","basic label-container outer-path").attr("style",a),w?.length){let Q=r.colorIndex??0;k.attr("data-color-id",`color-${Q%w.length}`)}if(k.selectAll(".label").each((Q,Y,K)=>{let J=xn(K[Y]),Z=J.attr("transform"),j=0,ee=0;if(Z){let se=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Z);if(se)j=parseFloat(se[1]),ee=parseFloat(se[2])}let z=ee-B/2,ne=D+h/2;if(Y===0||Y===1)ne=j;J.attr("transform",`translate(${ne}, ${z+h})`)}),R>A+N+d){let Q=P+A+N+d,Y;if(r.look==="neo"){let Z=[[D,Q],[D+L,Q],[D+L,Q+0.001],[D,Q+0.001]];Y=F.polygon(Z,H)}else Y=F.line(D,Q,D+L,Q,H);k.insert(()=>Y).attr("class","divider")}if(La(r,X),r.intersect=function(Q){return ca.rect(r,Q)},a&&r.look!=="handDrawn"&&(T||w?.length))k.selectAll("path").attr("style",a);return k}async function g3(e,r,i,a="",o="center"){if(r==="")return 0;let l=e.insert("g").attr("class","label").attr("style",a),h=Ar(),d=h.htmlLabels??!0,p=await ug(l,W_e(EC(r)),{width:ey(r,h)+50,classes:"markdown-node-label",useHtmlLabels:d,style:a},h),m;if(!d){let y=p.children[0];for(let v of y.children)if(a)v.setAttribute("style",a);if(o==="start"){y.setAttribute("text-anchor","start");for(let v of y.children)v.setAttribute("text-anchor","start")}m=p.getBBox(),m.height+=6}else{let y=p.children[0],v=xn(p);if(o==="start")xn(y).style("text-align","left");m=y.getBoundingClientRect(),v.attr("width",m.width),v.attr("height",m.height)}return l.attr("transform",`translate(${-m.width/2},${-m.height/2+i})`),m.height}async function UCr(e,r,{config:i}){let{labelStyles:a,nodeStyles:o}=fa(r);r.labelStyle=a||"";let l=10,h=r.width;r.width=(r.width??200)-10;let{shapeSvg:d,bbox:p,label:m}=await ss(e,r,bs(r)),y=r.padding||10,v="",w;if("ticket"in r&&r.ticket&&i?.kanban?.ticketBaseUrl)v=i?.kanban?.ticketBaseUrl.replace("#TICKET#",r.ticket),w=d.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",v).attr("target","_blank");let T={useHtmlLabels:r.useHtmlLabels,labelStyle:r.labelStyle||"",width:r.width,img:r.img,padding:r.padding||8,centerLabel:!1},x,k;if(w)({label:x,bbox:k}=await ZP(w,"ticket"in r&&r.ticket||"",T));else({label:x,bbox:k}=await ZP(d,"ticket"in r&&r.ticket||"",T));let{label:A,bbox:R}=await ZP(d,"assigned"in r&&r.assigned||"",T);r.width=h;let N=10,L=r?.width||0,B=Math.max(k.height,R.height)/2,D=Math.max(p.height+N*2,r?.height||0)+B,P=-L/2,F=-D/2;m.attr("transform","translate("+(y-L/2)+", "+(-B-p.height/2)+")"),x.attr("transform","translate("+(y-L/2)+", "+(-B+p.height/2)+")"),A.attr("transform","translate("+(y+L/2-R.width-2*l)+", "+(-B+p.height/2)+")");let H,{rx:W,ry:X}=r,{cssStyles:Q}=r;if(r.look==="handDrawn"){let Y=cn.svg(d),K=ga(r,{}),J=W||X?Y.path(X_(P,F,L,D,W||0),K):Y.rectangle(P,F,L,D,K);H=d.insert(()=>J,":first-child"),H.attr("class","basic label-container").attr("style",Q?Q:null)}else{H=d.insert("rect",":first-child"),H.attr("class","basic label-container __APA__").attr("style",o).attr("rx",W??5).attr("ry",X??5).attr("x",P).attr("y",F).attr("width",L).attr("height",D);let Y="priority"in r&&r.priority;if(Y){let K=d.append("line"),J=P+2,Z=F+Math.floor((W??0)/2),j=F+D-Math.floor((W??0)/2);K.attr("x1",J).attr("y1",Z).attr("x2",J).attr("y2",j).attr("stroke-width","4").attr("stroke",zWn(Y))}}return La(r,H),r.height=D,r.intersect=function(Y){return ca.rect(r,Y)},d}async function GCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h,label:d}=await ss(e,r,bs(r)),p=l.width+10*h,m=l.height+8*h,y=0.15*p,{cssStyles:v}=r,w=l.width+20,T=l.height+20,x=Math.max(p,w),k=Math.max(m,T);d.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`);let A,R=`M0 0 a${y},${y} 1 0,0 ${x*0.25},${-1*k*0.1} a${y},${y} 1 0,0 ${x*0.25},0 a${y},${y} 1 0,0 ${x*0.25},0 @@ -517,21 +517,21 @@ ${o.join(` a${y},${y} 1 0,0 ${-1*x*0.1},${-1*k*0.33} a${y*0.8},${y*0.8} 1 0,0 0,${-1*k*0.34} a${y},${y} 1 0,0 ${x*0.1},${-1*k*0.33} - H0 V0 Z`;if(r.look==="handDrawn"){let N=ln.svg(o),L=ga(r,{}),B=N.path(R,L);A=o.insert(()=>B,":first-child"),A.attr("class","basic label-container").attr("style",np(E))}else A=o.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",R);return A.attr("transform",`translate(${-x/2}, ${-k/2})`),La(r,A),r.calcIntersect=function(N,L){return ca.rect(N,L)},r.intersect=function(N){return Ze.info("Bang intersect",r,N),ca.rect(r,N)},o}async function BCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h,label:d}=await ss(e,r,bs(r)),p=l.width+2*h,m=l.height+2*h,y=0.15*p,E=0.25*p,w=0.35*p,T=0.2*p,{cssStyles:x}=r,k,A=`M0 0 + H0 V0 Z`;if(r.look==="handDrawn"){let N=cn.svg(o),L=ga(r,{}),B=N.path(R,L);A=o.insert(()=>B,":first-child"),A.attr("class","basic label-container").attr("style",np(v))}else A=o.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",R);return A.attr("transform",`translate(${-x/2}, ${-k/2})`),La(r,A),r.calcIntersect=function(N,L){return ca.rect(N,L)},r.intersect=function(N){return Ze.info("Bang intersect",r,N),ca.rect(r,N)},o}async function zCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h,label:d}=await ss(e,r,bs(r)),p=l.width+2*h,m=l.height+2*h,y=0.15*p,v=0.25*p,w=0.35*p,T=0.2*p,{cssStyles:x}=r,k,A=`M0 0 a${y},${y} 0 0,1 ${p*0.25},${-1*p*0.1} a${w},${w} 1 0,1 ${p*0.4},${-1*p*0.1} - a${E},${E} 1 0,1 ${p*0.35},${p*0.2} + a${v},${v} 1 0,1 ${p*0.35},${p*0.2} a${y},${y} 1 0,1 ${p*0.15},${m*0.35} a${T},${T} 1 0,1 ${-1*p*0.15},${m*0.65} - a${E},${y} 1 0,1 ${-1*p*0.25},${p*0.15} + a${v},${y} 1 0,1 ${-1*p*0.25},${p*0.15} a${w},${w} 1 0,1 ${-1*p*0.5},0 a${y},${y} 1 0,1 ${-1*p*0.25},${-1*p*0.15} a${y},${y} 1 0,1 ${-1*p*0.1},${-1*m*0.35} a${T},${T} 1 0,1 ${p*0.1},${-1*m*0.65} - H0 V0 Z`;if(r.look==="handDrawn"){let R=ln.svg(o),N=ga(r,{}),L=R.path(A,N);k=o.insert(()=>L,":first-child"),k.attr("class","basic label-container").attr("style",np(x))}else k=o.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",A);return d.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),k.attr("transform",`translate(${-p/2}, ${-m/2})`),La(r,k),r.calcIntersect=function(R,N){return ca.rect(R,N)},r.intersect=function(R){return Ze.info("Cloud intersect",r,R),ca.rect(r,R)},o}async function FCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h,label:d}=await ss(e,r,bs(r)),p=l.width+8*h,m=l.height+2*h,y=5,E=r.look==="neo"?` + H0 V0 Z`;if(r.look==="handDrawn"){let R=cn.svg(o),N=ga(r,{}),L=R.path(A,N);k=o.insert(()=>L,":first-child"),k.attr("class","basic label-container").attr("style",np(x))}else k=o.insert("path",":first-child").attr("class","basic label-container").attr("style",a).attr("d",A);return d.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),k.attr("transform",`translate(${-p/2}, ${-m/2})`),La(r,k),r.calcIntersect=function(R,N){return ca.rect(R,N)},r.intersect=function(R){return Ze.info("Cloud intersect",r,R),ca.rect(r,R)},o}async function VCr(e,r){let{labelStyles:i,nodeStyles:a}=fa(r);r.labelStyle=i;let{shapeSvg:o,bbox:l,halfPadding:h,label:d}=await ss(e,r,bs(r)),p=l.width+8*h,m=l.height+2*h,y=5,v=r.look==="neo"?` M${-p/2} ${m/2-y} v${-m+2*y} q0,-${y} ${y},-${y} @@ -551,32 +551,32 @@ ${o.join(` h${-(p-2*y)} q${-y},0 ${-y},${-y} Z - `;if(!r.domId)throw Error(`defaultMindmapNode: node "${r.id}" is missing a domId — was render.ts domId prefixing skipped?`);let w=o.append("path").attr("id",r.domId).attr("class","node-bkg node-"+r.type).attr("style",a).attr("d",E);return o.append("line").attr("class","node-line-").attr("x1",-p/2).attr("y1",m/2).attr("x2",p/2).attr("y2",m/2),d.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),o.append(()=>d.node()),La(r,w),r.calcIntersect=function(T,x){return ca.rect(T,x)},r.intersect=function(T){return ca.rect(r,T)},o}async function $Cr(e,r){let i={padding:r.padding??0};return ztt(e,r,i)}function qne(e){return e in Hne}var KYn=1,XYn=3,BTr=3,QYn=32,ZYn,FTr,ss,XP,La,bs,JYn,m3,eWn,lxr,tWn,rWn,nWn,ca,X_,iWn,wC,Att=20,Rtt=8,aWn=80,sWn=8,oWn,Gtt="point",lWn,cWn,$Tr,uWn,uwe=12,hWn,dWn,fWn,UTr=8,GTr=8,zTr=10,VTr=10,pWn,gWn,mWn,bWn,HTr=10,qTr=10,yWn=56,Itt=72,YTr=8,WTr=2,vWn=8,_Wn,jTr,KTr=0.6,Ott,EWn,XTr,Vtt,wWn,SWn,TWn,xWn,CWn,NH=52,QTr=42,ZTr=-2,kWn,JTr,Ntt=8,exr=4,AWn=1,Ltt,RWn,IWn,KP=8,Ftt=50,OWn,LH=8,Mtt=0.2,NWn,LWn,MWn,txr=5,rxr=10,nxr=10,ixr=10,Fp=10,axr,DWn,PWn,BWn,FWn,Hne;var ip=Re(()=>{R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();dl();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();dl();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();dl();dl();Na();dl();Na();dl();Na();Na();Na();I($tt,"configureLabelImages");I(Utt,"hasTextBesidesImages");ZYn=I(async(e,r,i)=>{let a=Ar(),o=e.insert("g").attr("class",i??"node default").attr("id",r.domId||r.id),l=o.insert("g").attr("class","label").attr("style",np(r.labelStyle)),d=[{text:typeof r.label==="string"?r.label:r.label?.[0]??"",cssClass:"c4-name"},{text:r.stereotype,cssClass:"c4-type"},...(r.description??[]).map((R)=>({text:R,cssClass:"c4-descr"}))].filter((R)=>R.text),p=r.width?Math.max(r.width-2*(r.padding??0),QYn):Ar().flowchart?.wrappingWidth??200,y=a.c4?.wrap??!0?p:Number.POSITIVE_INFINITY,E=await Promise.all(d.map(async(R)=>{let N=l.append("g").attr("class",R.cssClass),L=await ug(N,ho(vC(R.text??""),a),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:y,style:r.labelStyle},a);return xn(L).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),xn(L).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:N,box:N.node().getBBox()}})),w=Math.max(...E.map(({box:R})=>R.width),0),T=0;for(let{el:R,box:N}of E)R.attr("transform",`translate(${w/2-N.x-N.width/2}, ${T-N.y})`),T+=N.height+BTr;let x=E.length>0?T-BTr:0;l.insert("rect",":first-child"),l.attr("transform",`translate(${-w/2}, ${-x/2})`);let k=l.node().getBBox(),A=(r.padding??0)/2;return{shapeSvg:o,bbox:k,halfPadding:A,label:l}},"c4LabelHelper"),FTr=I((e,r)=>{let{x:i,y:a,width:o,height:l}=e;if(o>=r)return e;if(!("left"in e))return{x:i-(r-o)/2,y:a,width:r,height:l};return{x:i,y:a,width:r,height:l,top:a,left:i,bottom:a+l,right:i+r,toJSON:I(()=>({}),"toJSON")}},"withMinWidth"),ss=I(async(e,r,i,{ignoreMinWidth:a=!1}={})=>{if(r.stereotype!==void 0)return ZYn(e,r,i);let o,l=r.useHtmlLabels||zE(Ar()?.htmlLabels);if(!i)o="node default";else o=i;let h=e.insert("g").attr("class",o).attr("id",r.domId||r.id),d=h.insert("g").attr("class","label").attr("style",np(r.labelStyle)),p;if(r.label===void 0)p="";else p=typeof r.label==="string"?r.label:r.label[0];let m=!!r.icon||!!r.img,y=r.labelType==="markdown",E=p&&!r.width&&!a?r.minWidth??0:0,w=await ug(d,ho(vC(p),Ar()),{useHtmlLabels:l,width:r.width||r.wrappingWidth||Ar().flowchart?.wrappingWidth,minWidth:E,classes:y?"markdown-node-label":"",style:r.labelStyle,addSvgBackground:m,markdown:y},Ar()),T=(r?.padding??0)/2,x;if(l){let k=w.children[0],A=xn(w);await $tt(k),x=await UR.measure(()=>k.getBoundingClientRect()),x=FTr(x,E),A.attr("width",x.width),A.attr("height",x.height)}else x=await UR.measure(()=>w.getBBox()),x=FTr(x,E);if(l)d.attr("transform","translate("+-x.width/2+", "+-x.height/2+")");else d.attr("transform","translate(0, "+-x.height/2+")");if(r.centerLabel)d.attr("transform","translate("+-x.width/2+", "+-x.height/2+")");return d.insert("rect",":first-child"),{shapeSvg:h,bbox:x,halfPadding:T,label:d}},"labelHelper"),XP=I(async(e,r,i)=>{let a=i.useHtmlLabels??Mp(Ar()),o=e.insert("g").attr("class","label").attr("style",i.labelStyle||""),l=await ug(o,ho(vC(r),Ar()),{useHtmlLabels:a,width:i.width||Ar()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),h=i.padding/2,d;if(Mp(Ar())){let p=l.children[0],m=xn(l);d=await UR.measure(()=>p.getBoundingClientRect()),m.attr("width",d.width),m.attr("height",d.height)}else d=await UR.measure(()=>l.getBBox());if(a)o.attr("transform","translate("+-d.width/2+", "+-d.height/2+")");else o.attr("transform","translate(0, "+-d.height/2+")");if(i.centerLabel)o.attr("transform","translate("+-d.width/2+", "+-d.height/2+")");return o.insert("rect",":first-child"),{shapeSvg:e,bbox:d,halfPadding:h,label:o}},"insertLabel"),La=I((e,r,i)=>{if(i){e.width=i.width,e.height=i.height;return}let a=r.node().getBBox();e.width=a.width,e.height=a.height},"updateNodeBounds"),bs=I((e,r)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(r||""),"getNodeClasses");I(Yc,"createPathFromPoints");I(SL,"generateFullSineWavePoints");I(g3,"generateCirclePoints");I(Dtt,"mergePaths");JYn=I((e,r)=>{var{x:i,y:a}=e,o=r.x-i,l=r.y-a,h=e.width/2,d=e.height/2,p,m;if(Math.abs(l)*h>Math.abs(o)*d){if(l<0)d=-d;p=l===0?0:d*o/l,m=d}else{if(o<0)h=-h;p=h,m=o===0?0:h*l/o}return{x:i+p,y:a+m}},"intersectRect"),m3=JYn;I(sxr,"intersectNode");eWn=sxr;I(oxr,"intersectEllipse");lxr=oxr;I(cxr,"intersectCircle");tWn=cxr;I(uxr,"intersectLine");I(Ptt,"sameSign");rWn=uxr;I(hxr,"intersectPolygon");nWn=hxr,ca={node:eWn,circle:tWn,ellipse:lxr,polygon:nWn,rect:m3},X_=I((e,r,i,a,o)=>["M",e+o,r,"H",e+i-o,"A",o,o,0,0,1,e+i,r+o,"V",r+a-o,"A",o,o,0,0,1,e+i-o,r+a,"H",e+o,"A",o,o,0,0,1,e,r+a-o,"V",r+o,"A",o,o,0,0,1,e+o,r,"Z"].join(" "),"createRoundedRectPathD"),iWn=I(async(e,r,i,a=!1,o=!1)=>{let l=r||"";if(typeof l==="object")l=l[0];let h=Ar(),d=Mp(h);return await ug(e,l,{style:i,isTitle:a,useHtmlLabels:d,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},h)},"createLabel"),wC=iWn;I(dxr,"anchor");I(Btt,"generateArcPoints");I(fxr,"calculateArcSagitta");I(pxr,"bowTieRect");I(gxr,"bucket");I(mxr,"getCollapsedStyle");I(bxr,"collapsedGroup");I(b3,"insertPolygonShape");oWn=["right","left","up","down"],lWn=I((e)=>{let r=new Set;for(let i of e)switch(i){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(i);break}return r},"expandAndDeduplicateDirections"),cWn=I((e)=>oWn.filter((r)=>e.has(r)).join("|")||Gtt,"getDirectionKey"),$Tr={"right|left|up|down":I(({height:e,midpoint:r,padding:i,width:a})=>[{x:0,y:0},{x:r,y:0},{x:a/2,y:2*i},{x:a-r,y:0},{x:a,y:0},{x:a,y:-e/3},{x:a+2*i,y:-e/2},{x:a,y:-2*e/3},{x:a,y:-e},{x:a-r,y:-e},{x:a/2,y:-e-2*i},{x:r,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*i,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":I(({height:e,midpoint:r,width:i})=>[{x:r,y:0},{x:i-r,y:0},{x:i,y:-e/2},{x:i-r,y:-e},{x:r,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":I(({height:e,midpoint:r,width:i})=>[{x:0,y:0},{x:r,y:-e},{x:i-r,y:-e},{x:i,y:0}],"right|left|down"),"right|up|down":I(({height:e,midpoint:r,width:i})=>[{x:0,y:0},{x:i,y:-r},{x:i,y:-e+r},{x:0,y:-e}],"right|up|down"),"left|up|down":I(({height:e,midpoint:r,width:i})=>[{x:i,y:0},{x:0,y:-r},{x:0,y:-e+r},{x:i,y:-e}],"left|up|down"),"right|left":I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:0},{x:r,y:-i},{x:a-r,y:-i},{x:a-r,y:0},{x:a,y:-e/2},{x:a-r,y:-e},{x:a-r,y:-e+i},{x:r,y:-e+i},{x:r,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":I(({height:e,midpoint:r,padding:i,width:a})=>[{x:a/2,y:0},{x:0,y:-i},{x:r,y:-i},{x:r,y:-e+i},{x:0,y:-e+i},{x:a/2,y:-e},{x:a,y:-e+i},{x:a-r,y:-e+i},{x:a-r,y:-i},{x:a,y:-i}],"up|down"),"right|up":I(({height:e,midpoint:r,width:i})=>[{x:0,y:0},{x:i,y:-r},{x:0,y:-e}],"right|up"),"right|down":I(({height:e,width:r})=>[{x:0,y:0},{x:r,y:0},{x:0,y:-e}],"right|down"),"left|up":I(({height:e,midpoint:r,width:i})=>[{x:i,y:0},{x:0,y:-r},{x:i,y:-e}],"left|up"),"left|down":I(({height:e,width:r})=>[{x:r,y:0},{x:0,y:0},{x:r,y:-e}],"left|down"),right:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:-i},{x:r,y:-i},{x:a-r,y:-i},{x:a-r,y:0},{x:a,y:-e/2},{x:a-r,y:-e},{x:a-r,y:-e+i},{x:r,y:-e+i},{x:r,y:-e+i}],"right"),left:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:0},{x:r,y:-i},{x:a-r,y:-i},{x:a-r,y:-e+i},{x:r,y:-e+i},{x:r,y:-e},{x:0,y:-e/2}],"left"),up:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:-i},{x:r,y:-e+i},{x:0,y:-e+i},{x:a/2,y:-e},{x:a,y:-e+i},{x:a-r,y:-e+i},{x:a-r,y:-i}],"up"),down:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:a/2,y:0},{x:0,y:-i},{x:r,y:-i},{x:r,y:-e+i},{x:a-r,y:-e+i},{x:a-r,y:-i},{x:a,y:-i}],"down"),[Gtt]:()=>[{x:0,y:0}]},uWn=I((e,r,i,a)=>{let o=lWn(e),l=(i.padding??0)/2,h=r.height+4*l,d=h/2,p=a??r.width+2*d+2*l,m=cWn(o);return($Tr[m]??$Tr[Gtt])({height:h,midpoint:d,padding:l,width:p})},"getArrowPoints");I(yxr,"block_arrow");I(vxr,"browser");I(_xr,"card");I(Exr,"choice");I(ztt,"circle");I(wxr,"composite");I(Sxr,"consoleWindow");I(Txr,"createLine");I(xxr,"crossedCircle");I(GR,"generateCirclePoints");I(Cxr,"curlyBraceLeft");I(zR,"generateCirclePoints");I(kxr,"curlyBraceRight");I(j1,"generateCirclePoints");I(Axr,"curlyBraces");I(Rxr,"curvedTrapezoid");I(Ixr,"person");hWn=I((e,r,i,a,o,l)=>[`M${e},${r+l}`,`a${o},${l} 0,0,0 ${i},0`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),dWn=I((e,r,i,a,o,l)=>[`M${e},${r+l}`,`M${e+i},${r+l}`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),fWn=I((e,r,i,a,o,l)=>[`M${e-i/2},${-a/2}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD");I(Oxr,"cylinder");I(PH,"drawRect");I(Nxr,"datastore");I(Lxr,"dividedRectangle");I(Mxr,"doublecircle");I(Dxr,"usecaseEllipse");I(Pxr,"filledCircle");I(Bxr,"flippedTriangle");I(Fxr,"folder");I($xr,"forkJoin");I(Uxr,"halfRoundedRectangle");pWn=I((e,r,i,a,o)=>[`M${e+o},${r}`,`L${e+i-o},${r}`,`L${e+i},${r-a/2}`,`L${e+i-o},${r-a}`,`L${e+o},${r-a}`,`L${e},${r-a/2}`,"Z"].join(" "),"createHexagonPathD");I(Gxr,"hexagon");I(zxr,"hourglass");I(Vxr,"icon");I(Hxr,"iconCircle");I(qxr,"iconRounded");I(Yxr,"iconSquare");I(Wxr,"imageSquare");I(jxr,"inv_trapezoid");I(Kxr,"labelRect");I(Xxr,"lean_left");I(Qxr,"lean_right");I(Zxr,"lightningBolt");gWn=I((e,r,i,a,o,l,h)=>[`M${e},${r+l}`,`a${o},${l} 0,0,0 ${i},0`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`,`M${e},${r+l+h}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createCylinderPathD"),mWn=I((e,r,i,a,o,l,h)=>[`M${e},${r+l}`,`M${e+i},${r+l}`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`,`M${e},${r+l+h}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createOuterCylinderPathD"),bWn=I((e,r,i,a,o,l)=>[`M${e-i/2},${-a/2}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD");I(Jxr,"linedCylinder");I(eCr,"linedWaveEdgedRect");_Wn={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},jTr=Math.PI/3,Ott=I((e,r)=>{let i=r*KTr,a=r*Math.sqrt(1-KTr**2),o=Math.cos(jTr),l=-Math.sin(jTr),h=i*-l,d=e+i*o,p=a*o,m=a*l;return`M ${h-p} ${d-m} L ${h+p} ${d+m}`},"businessMarkerPathForCircle"),EWn={normal:Ott(-24,12),hollow:Ott(-23,9),awesome:Ott(-21,13),icon:"M 12 -8 L 26 -26"},XTr=I((e,r,i)=>{let a=(r.x??0)-(r.left??0),o=(r.y??0)-(r.top??0);e.attr("transform",`translate(${-r.width/2-a},${i-r.height/2-o})`)},"positionLabel"),Vtt=I((e,r,i,a,o=!1)=>{if(r.look==="handDrawn"){let d=ln.svg(e).path(i,ga(r,o?{fill:"none"}:{}));return e.insert(()=>d,":first-child").attr("class",a)}let l=e.append("path").attr("class",a).attr("d",i);if(o)l.attr("fill","none");return l},"appendActorPath"),wWn=I((e,r,i,a,o,l,h=!1)=>{if(r.look==="handDrawn"){let m=ln.svg(e).circle(i,a,o*2,ga(r,h?{fill:"none"}:{}));return e.insert(()=>m,":first-child").attr("class",l)}let d=e.append("circle").attr("class",l).attr("cx",i).attr("cy",a).attr("r",o);if(h)d.attr("fill","none");return d},"appendActorCircle"),SWn=I((e,r,i)=>{if(!r.business)return;e.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",EWn[i]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");I(Vne,"renderUsecaseActor");TWn=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");I(tCr,"usecaseActor");xWn=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");I(rCr,"usecaseActorAwesome");CWn=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");I(nCr,"usecaseActorHollow");kWn=I(async(e,r)=>{let i=-NH/2,a=ZTr-NH/2;if(r.look==="handDrawn"){let y=ln.svg(e).rectangle(i,a,NH,NH,ga(r,{}));e.insert(()=>y,":first-child").attr("class","usecase-actor-icon-frame")}else e.append("rect").attr("class","usecase-actor-icon-frame").attr("x",i).attr("y",a).attr("width",NH).attr("height",NH).attr("rx",4).attr("ry",4);let o=r.icon??"",l=await uEe(o.includes(":")?o:`fa:${o}`),h=await Y_(o,{height:QTr,width:QTr,fallbackPrefix:"fa"}),d=e.append("g").attr("class",`usecase-actor-icon-symbol${l?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`${h}`),p=d.node()?.getBBox();if(p)d.attr("transform",`translate(${-p.width/2-p.x},${ZTr-p.height/2-p.y})`)},"drawIconActor");I(iCr,"usecaseActorIcon");JTr=I((e,r,i)=>{let a=(r.x??0)-(r.left??0),o=(r.y??0)-(r.top??0);e.attr("transform",`translate(${-r.width/2-a},${i-r.height/2-o})`)},"positionLabel");I(aCr,"usecaseBusiness");Ltt=I((e,r,i,a)=>{let o=(r.x??0)-(r.left??0),l=(r.y??0)-(r.top??0);e.attr("transform",`translate(${i-r.width/2-o},${a-r.height/2-l})`)},"positionLabel"),RWn=I((e)=>{let r=Number.parseFloat(e??"");return Number.isFinite(r)&&r>=0?r:AWn},"numericStrokeWidth");I(sCr,"usecaseJsonTable");I(oCr,"multiRect");I(lCr,"multiWaveEdgedRectangle");I(cCr,"note");IWn=I((e,r,i)=>[`M${e+i/2},${r}`,`L${e+i},${r-i/2}`,`L${e+i/2},${r-i}`,`L${e},${r-i/2}`,"Z"].join(" "),"createDecisionBoxPathD");I(uCr,"question");I(hCr,"rect_left_inv_arrow");I(dCr,"rectWithTitle");I(fCr,"roundedRect");I(pCr,"shadedProcess");I(gCr,"slopedRect");I(mCr,"squareRect");OWn=I((e,r,i)=>{let a=e.height+i,o=a*Math.cos(Math.PI/(2*(Ftt-1))),l=Math.sqrt(Math.max(0,o**2-e.height**2));return{w:Math.max(e.width+a/4+r,1.5*a+(a-o),e.width+r+a-l),h:a}},"stadiumDimensions");I(bCr,"stadium");I(yCr,"state");I(vCr,"stateEnd");I(_Cr,"stateStart");I(ECr,"subroutine");I(wCr,"taggedRect");I(SCr,"taggedWaveEdgedRectangle");I(TCr,"text");NWn=I((e,r,i,a,o,l)=>`M${e},${r} + `;if(!r.domId)throw Error(`defaultMindmapNode: node "${r.id}" is missing a domId — was render.ts domId prefixing skipped?`);let w=o.append("path").attr("id",r.domId).attr("class","node-bkg node-"+r.type).attr("style",a).attr("d",v);return o.append("line").attr("class","node-line-").attr("x1",-p/2).attr("y1",m/2).attr("x2",p/2).attr("y2",m/2),d.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),o.append(()=>d.node()),La(r,w),r.calcIntersect=function(T,x){return ca.rect(T,x)},r.intersect=function(T){return ca.rect(r,T)},o}async function HCr(e,r){let i={padding:r.padding??0};return qtt(e,r,i)}function jne(e){return e in Wne}var tWn=1,rWn=3,zTr=3,nWn=32,iWn,VTr,ss,ZP,La,bs,aWn,b3,sWn,fxr,oWn,lWn,cWn,ca,X_,uWn,TC,Ott=20,Ntt=8,hWn=80,dWn=8,fWn,Htt="point",pWn,gWn,HTr,mWn,fwe=12,bWn,yWn,vWn,qTr=8,YTr=8,WTr=10,jTr=10,_Wn,EWn,wWn,SWn,KTr=10,XTr=10,TWn=56,Ltt=72,QTr=8,ZTr=2,xWn=8,CWn,JTr,exr=0.6,Mtt,kWn,txr,Ytt,AWn,RWn,IWn,OWn,NWn,DH=52,rxr=42,nxr=-2,LWn,ixr,Dtt=8,axr=4,MWn=1,Ptt,DWn,PWn,QP=8,Gtt=50,BWn,PH=8,Btt=0.2,FWn,$Wn,UWn,sxr=5,oxr=10,lxr=10,cxr=10,Fp=10,uxr,GWn,zWn,VWn,HWn,Wne;var ip=Re(()=>{R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();dl();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();dl();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();Na();dl();dl();Na();dl();Na();dl();Na();Na();Na();I(ztt,"configureLabelImages");I(Vtt,"hasTextBesidesImages");iWn=I(async(e,r,i)=>{let a=Ar(),o=e.insert("g").attr("class",i??"node default").attr("id",r.domId||r.id),l=o.insert("g").attr("class","label").attr("style",np(r.labelStyle)),d=[{text:typeof r.label==="string"?r.label:r.label?.[0]??"",cssClass:"c4-name"},{text:r.stereotype,cssClass:"c4-type"},...(r.description??[]).map((R)=>({text:R,cssClass:"c4-descr"}))].filter((R)=>R.text),p=r.width?Math.max(r.width-2*(r.padding??0),nWn):Ar().flowchart?.wrappingWidth??200,y=a.c4?.wrap??!0?p:Number.POSITIVE_INFINITY,v=await Promise.all(d.map(async(R)=>{let N=l.append("g").attr("class",R.cssClass),L=await ug(N,ho(EC(R.text??""),a),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:y,style:r.labelStyle},a);return xn(L).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),xn(L).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:N,box:N.node().getBBox()}})),w=Math.max(...v.map(({box:R})=>R.width),0),T=0;for(let{el:R,box:N}of v)R.attr("transform",`translate(${w/2-N.x-N.width/2}, ${T-N.y})`),T+=N.height+zTr;let x=v.length>0?T-zTr:0;l.insert("rect",":first-child"),l.attr("transform",`translate(${-w/2}, ${-x/2})`);let k=l.node().getBBox(),A=(r.padding??0)/2;return{shapeSvg:o,bbox:k,halfPadding:A,label:l}},"c4LabelHelper"),VTr=I((e,r)=>{let{x:i,y:a,width:o,height:l}=e;if(o>=r)return e;if(!("left"in e))return{x:i-(r-o)/2,y:a,width:r,height:l};return{x:i,y:a,width:r,height:l,top:a,left:i,bottom:a+l,right:i+r,toJSON:I(()=>({}),"toJSON")}},"withMinWidth"),ss=I(async(e,r,i,{ignoreMinWidth:a=!1}={})=>{if(r.stereotype!==void 0)return iWn(e,r,i);let o,l=r.useHtmlLabels||zE(Ar()?.htmlLabels);if(!i)o="node default";else o=i;let h=e.insert("g").attr("class",o).attr("id",r.domId||r.id),d=h.insert("g").attr("class","label").attr("style",np(r.labelStyle)),p;if(r.label===void 0)p="";else p=typeof r.label==="string"?r.label:r.label[0];let m=!!r.icon||!!r.img,y=r.labelType==="markdown",v=p&&!r.width&&!a?r.minWidth??0:0,w=await ug(d,ho(EC(p),Ar()),{useHtmlLabels:l,width:r.width||r.wrappingWidth||Ar().flowchart?.wrappingWidth,minWidth:v,classes:y?"markdown-node-label":"",style:r.labelStyle,addSvgBackground:m,markdown:y},Ar()),T=(r?.padding??0)/2,x;if(l){let k=w.children[0],A=xn(w);await ztt(k),x=await VR.measure(()=>k.getBoundingClientRect()),x=VTr(x,v),A.attr("width",x.width),A.attr("height",x.height)}else x=await VR.measure(()=>w.getBBox()),x=VTr(x,v);if(l)d.attr("transform","translate("+-x.width/2+", "+-x.height/2+")");else d.attr("transform","translate(0, "+-x.height/2+")");if(r.centerLabel)d.attr("transform","translate("+-x.width/2+", "+-x.height/2+")");return d.insert("rect",":first-child"),{shapeSvg:h,bbox:x,halfPadding:T,label:d}},"labelHelper"),ZP=I(async(e,r,i)=>{let a=i.useHtmlLabels??Mp(Ar()),o=e.insert("g").attr("class","label").attr("style",i.labelStyle||""),l=await ug(o,ho(EC(r),Ar()),{useHtmlLabels:a,width:i.width||Ar()?.flowchart?.wrappingWidth,style:i.labelStyle,addSvgBackground:!!i.icon||!!i.img}),h=i.padding/2,d;if(Mp(Ar())){let p=l.children[0],m=xn(l);d=await VR.measure(()=>p.getBoundingClientRect()),m.attr("width",d.width),m.attr("height",d.height)}else d=await VR.measure(()=>l.getBBox());if(a)o.attr("transform","translate("+-d.width/2+", "+-d.height/2+")");else o.attr("transform","translate(0, "+-d.height/2+")");if(i.centerLabel)o.attr("transform","translate("+-d.width/2+", "+-d.height/2+")");return o.insert("rect",":first-child"),{shapeSvg:e,bbox:d,halfPadding:h,label:o}},"insertLabel"),La=I((e,r,i)=>{if(i){e.width=i.width,e.height=i.height;return}let a=r.node().getBBox();e.width=a.width,e.height=a.height},"updateNodeBounds"),bs=I((e,r)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(r||""),"getNodeClasses");I(Yc,"createPathFromPoints");I(xL,"generateFullSineWavePoints");I(m3,"generateCirclePoints");I(Ftt,"mergePaths");aWn=I((e,r)=>{var{x:i,y:a}=e,o=r.x-i,l=r.y-a,h=e.width/2,d=e.height/2,p,m;if(Math.abs(l)*h>Math.abs(o)*d){if(l<0)d=-d;p=l===0?0:d*o/l,m=d}else{if(o<0)h=-h;p=h,m=o===0?0:h*l/o}return{x:i+p,y:a+m}},"intersectRect"),b3=aWn;I(hxr,"intersectNode");sWn=hxr;I(dxr,"intersectEllipse");fxr=dxr;I(pxr,"intersectCircle");oWn=pxr;I(gxr,"intersectLine");I($tt,"sameSign");lWn=gxr;I(mxr,"intersectPolygon");cWn=mxr,ca={node:sWn,circle:oWn,ellipse:fxr,polygon:cWn,rect:b3},X_=I((e,r,i,a,o)=>["M",e+o,r,"H",e+i-o,"A",o,o,0,0,1,e+i,r+o,"V",r+a-o,"A",o,o,0,0,1,e+i-o,r+a,"H",e+o,"A",o,o,0,0,1,e,r+a-o,"V",r+o,"A",o,o,0,0,1,e+o,r,"Z"].join(" "),"createRoundedRectPathD"),uWn=I(async(e,r,i,a=!1,o=!1)=>{let l=r||"";if(typeof l==="object")l=l[0];let h=Ar(),d=Mp(h);return await ug(e,l,{style:i,isTitle:a,useHtmlLabels:d,markdown:!1,isNode:o,width:Number.POSITIVE_INFINITY},h)},"createLabel"),TC=uWn;I(bxr,"anchor");I(Utt,"generateArcPoints");I(yxr,"calculateArcSagitta");I(vxr,"bowTieRect");I(_xr,"bucket");I(Exr,"getCollapsedStyle");I(wxr,"collapsedGroup");I(y3,"insertPolygonShape");fWn=["right","left","up","down"],pWn=I((e)=>{let r=new Set;for(let i of e)switch(i){case"x":r.add("right"),r.add("left");break;case"y":r.add("up"),r.add("down");break;default:r.add(i);break}return r},"expandAndDeduplicateDirections"),gWn=I((e)=>fWn.filter((r)=>e.has(r)).join("|")||Htt,"getDirectionKey"),HTr={"right|left|up|down":I(({height:e,midpoint:r,padding:i,width:a})=>[{x:0,y:0},{x:r,y:0},{x:a/2,y:2*i},{x:a-r,y:0},{x:a,y:0},{x:a,y:-e/3},{x:a+2*i,y:-e/2},{x:a,y:-2*e/3},{x:a,y:-e},{x:a-r,y:-e},{x:a/2,y:-e-2*i},{x:r,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*i,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":I(({height:e,midpoint:r,width:i})=>[{x:r,y:0},{x:i-r,y:0},{x:i,y:-e/2},{x:i-r,y:-e},{x:r,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":I(({height:e,midpoint:r,width:i})=>[{x:0,y:0},{x:r,y:-e},{x:i-r,y:-e},{x:i,y:0}],"right|left|down"),"right|up|down":I(({height:e,midpoint:r,width:i})=>[{x:0,y:0},{x:i,y:-r},{x:i,y:-e+r},{x:0,y:-e}],"right|up|down"),"left|up|down":I(({height:e,midpoint:r,width:i})=>[{x:i,y:0},{x:0,y:-r},{x:0,y:-e+r},{x:i,y:-e}],"left|up|down"),"right|left":I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:0},{x:r,y:-i},{x:a-r,y:-i},{x:a-r,y:0},{x:a,y:-e/2},{x:a-r,y:-e},{x:a-r,y:-e+i},{x:r,y:-e+i},{x:r,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":I(({height:e,midpoint:r,padding:i,width:a})=>[{x:a/2,y:0},{x:0,y:-i},{x:r,y:-i},{x:r,y:-e+i},{x:0,y:-e+i},{x:a/2,y:-e},{x:a,y:-e+i},{x:a-r,y:-e+i},{x:a-r,y:-i},{x:a,y:-i}],"up|down"),"right|up":I(({height:e,midpoint:r,width:i})=>[{x:0,y:0},{x:i,y:-r},{x:0,y:-e}],"right|up"),"right|down":I(({height:e,width:r})=>[{x:0,y:0},{x:r,y:0},{x:0,y:-e}],"right|down"),"left|up":I(({height:e,midpoint:r,width:i})=>[{x:i,y:0},{x:0,y:-r},{x:i,y:-e}],"left|up"),"left|down":I(({height:e,width:r})=>[{x:r,y:0},{x:0,y:0},{x:r,y:-e}],"left|down"),right:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:-i},{x:r,y:-i},{x:a-r,y:-i},{x:a-r,y:0},{x:a,y:-e/2},{x:a-r,y:-e},{x:a-r,y:-e+i},{x:r,y:-e+i},{x:r,y:-e+i}],"right"),left:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:0},{x:r,y:-i},{x:a-r,y:-i},{x:a-r,y:-e+i},{x:r,y:-e+i},{x:r,y:-e},{x:0,y:-e/2}],"left"),up:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:r,y:-i},{x:r,y:-e+i},{x:0,y:-e+i},{x:a/2,y:-e},{x:a,y:-e+i},{x:a-r,y:-e+i},{x:a-r,y:-i}],"up"),down:I(({height:e,midpoint:r,padding:i,width:a})=>[{x:a/2,y:0},{x:0,y:-i},{x:r,y:-i},{x:r,y:-e+i},{x:a-r,y:-e+i},{x:a-r,y:-i},{x:a,y:-i}],"down"),[Htt]:()=>[{x:0,y:0}]},mWn=I((e,r,i,a)=>{let o=pWn(e),l=(i.padding??0)/2,h=r.height+4*l,d=h/2,p=a??r.width+2*d+2*l,m=gWn(o);return(HTr[m]??HTr[Htt])({height:h,midpoint:d,padding:l,width:p})},"getArrowPoints");I(Sxr,"block_arrow");I(Txr,"browser");I(xxr,"card");I(Cxr,"choice");I(qtt,"circle");I(kxr,"composite");I(Axr,"consoleWindow");I(Rxr,"createLine");I(Ixr,"crossedCircle");I(HR,"generateCirclePoints");I(Oxr,"curlyBraceLeft");I(qR,"generateCirclePoints");I(Nxr,"curlyBraceRight");I(j1,"generateCirclePoints");I(Lxr,"curlyBraces");I(Mxr,"curvedTrapezoid");I(Dxr,"person");bWn=I((e,r,i,a,o,l)=>[`M${e},${r+l}`,`a${o},${l} 0,0,0 ${i},0`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`].join(" "),"createCylinderPathD"),yWn=I((e,r,i,a,o,l)=>[`M${e},${r+l}`,`M${e+i},${r+l}`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`].join(" "),"createOuterCylinderPathD"),vWn=I((e,r,i,a,o,l)=>[`M${e-i/2},${-a/2}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD");I(Pxr,"cylinder");I($H,"drawRect");I(Bxr,"datastore");I(Fxr,"dividedRectangle");I($xr,"doublecircle");I(Uxr,"usecaseEllipse");I(Gxr,"filledCircle");I(zxr,"flippedTriangle");I(Vxr,"folder");I(Hxr,"forkJoin");I(qxr,"halfRoundedRectangle");_Wn=I((e,r,i,a,o)=>[`M${e+o},${r}`,`L${e+i-o},${r}`,`L${e+i},${r-a/2}`,`L${e+i-o},${r-a}`,`L${e+o},${r-a}`,`L${e},${r-a/2}`,"Z"].join(" "),"createHexagonPathD");I(Yxr,"hexagon");I(Wxr,"hourglass");I(jxr,"icon");I(Kxr,"iconCircle");I(Xxr,"iconRounded");I(Qxr,"iconSquare");I(Zxr,"imageSquare");I(Jxr,"inv_trapezoid");I(eCr,"labelRect");I(tCr,"lean_left");I(rCr,"lean_right");I(nCr,"lightningBolt");EWn=I((e,r,i,a,o,l,h)=>[`M${e},${r+l}`,`a${o},${l} 0,0,0 ${i},0`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`,`M${e},${r+l+h}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createCylinderPathD"),wWn=I((e,r,i,a,o,l,h)=>[`M${e},${r+l}`,`M${e+i},${r+l}`,`a${o},${l} 0,0,0 ${-i},0`,`l0,${a}`,`a${o},${l} 0,0,0 ${i},0`,`l0,${-a}`,`M${e},${r+l+h}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createOuterCylinderPathD"),SWn=I((e,r,i,a,o,l)=>[`M${e-i/2},${-a/2}`,`a${o},${l} 0,0,0 ${i},0`].join(" "),"createInnerCylinderPathD");I(iCr,"linedCylinder");I(aCr,"linedWaveEdgedRect");CWn={normal:"usecase-actor-shape usecase-actor-normal",hollow:"usecase-actor-hollow",awesome:"usecase-actor-awesome",icon:"usecase-actor-icon"},JTr=Math.PI/3,Mtt=I((e,r)=>{let i=r*exr,a=r*Math.sqrt(1-exr**2),o=Math.cos(JTr),l=-Math.sin(JTr),h=i*-l,d=e+i*o,p=a*o,m=a*l;return`M ${h-p} ${d-m} L ${h+p} ${d+m}`},"businessMarkerPathForCircle"),kWn={normal:Mtt(-24,12),hollow:Mtt(-23,9),awesome:Mtt(-21,13),icon:"M 12 -8 L 26 -26"},txr=I((e,r,i)=>{let a=(r.x??0)-(r.left??0),o=(r.y??0)-(r.top??0);e.attr("transform",`translate(${-r.width/2-a},${i-r.height/2-o})`)},"positionLabel"),Ytt=I((e,r,i,a,o=!1)=>{if(r.look==="handDrawn"){let d=cn.svg(e).path(i,ga(r,o?{fill:"none"}:{}));return e.insert(()=>d,":first-child").attr("class",a)}let l=e.append("path").attr("class",a).attr("d",i);if(o)l.attr("fill","none");return l},"appendActorPath"),AWn=I((e,r,i,a,o,l,h=!1)=>{if(r.look==="handDrawn"){let m=cn.svg(e).circle(i,a,o*2,ga(r,h?{fill:"none"}:{}));return e.insert(()=>m,":first-child").attr("class",l)}let d=e.append("circle").attr("class",l).attr("cx",i).attr("cy",a).attr("r",o);if(h)d.attr("fill","none");return d},"appendActorCircle"),RWn=I((e,r,i)=>{if(!r.business)return;e.append("path").attr("class","usecase-business-marker usecase-actor-business-marker").attr("d",kWn[i]).attr("fill","none").attr("style","stroke: inherit !important; stroke-width: inherit !important")},"appendBusinessActorMarker");I(Yne,"renderUsecaseActor");IWn=["M 0 -12","C 6.627 -12 12 -17.373 12 -24","C 12 -30.627 6.627 -36 0 -36","C -6.627 -36 -12 -30.627 -12 -24","C -12 -17.373 -6.627 -12 0 -12 Z","M 0 -12 V 8","M -17 -5 H 17","M 0 8 L -15 28","M 0 8 L 15 28"].join(" ");I(sCr,"usecaseActor");OWn=["M 0 -34","C 7.18 -34 13 -28.18 13 -21","C 13 -13.82 7.18 -8 0 -8","C -7.18 -8 -13 -13.82 -13 -21","C -13 -28.18 -7.18 -34 0 -34 Z","M -24 25","C -24 7 -14 -3 0 -3","C 14 -3 24 7 24 25","C 24 28 21 30 18 30","H -18","C -21 30 -24 28 -24 25 Z"].join(" ");I(oCr,"usecaseActorAwesome");NWn=["M -22 -10","H 22","V 0","H 6","L 22 17","L 13 28","L 0 13","L -13 28","L -22 17","L -6 0","H -22","Z"].join(" ");I(lCr,"usecaseActorHollow");LWn=I(async(e,r)=>{let i=-DH/2,a=nxr-DH/2;if(r.look==="handDrawn"){let y=cn.svg(e).rectangle(i,a,DH,DH,ga(r,{}));e.insert(()=>y,":first-child").attr("class","usecase-actor-icon-frame")}else e.append("rect").attr("class","usecase-actor-icon-frame").attr("x",i).attr("y",a).attr("width",DH).attr("height",DH).attr("rx",4).attr("ry",4);let o=r.icon??"",l=await fEe(o.includes(":")?o:`fa:${o}`),h=await Y_(o,{height:rxr,width:rxr,fallbackPrefix:"fa"}),d=e.append("g").attr("class",`usecase-actor-icon-symbol${l?"":" usecase-actor-icon-fallback"}`).attr("aria-hidden","true").html(`${h}`),p=d.node()?.getBBox();if(p)d.attr("transform",`translate(${-p.width/2-p.x},${nxr-p.height/2-p.y})`)},"drawIconActor");I(cCr,"usecaseActorIcon");ixr=I((e,r,i)=>{let a=(r.x??0)-(r.left??0),o=(r.y??0)-(r.top??0);e.attr("transform",`translate(${-r.width/2-a},${i-r.height/2-o})`)},"positionLabel");I(uCr,"usecaseBusiness");Ptt=I((e,r,i,a)=>{let o=(r.x??0)-(r.left??0),l=(r.y??0)-(r.top??0);e.attr("transform",`translate(${i-r.width/2-o},${a-r.height/2-l})`)},"positionLabel"),DWn=I((e)=>{let r=Number.parseFloat(e??"");return Number.isFinite(r)&&r>=0?r:MWn},"numericStrokeWidth");I(hCr,"usecaseJsonTable");I(dCr,"multiRect");I(fCr,"multiWaveEdgedRectangle");I(pCr,"note");PWn=I((e,r,i)=>[`M${e+i/2},${r}`,`L${e+i},${r-i/2}`,`L${e+i/2},${r-i}`,`L${e},${r-i/2}`,"Z"].join(" "),"createDecisionBoxPathD");I(gCr,"question");I(mCr,"rect_left_inv_arrow");I(bCr,"rectWithTitle");I(yCr,"roundedRect");I(vCr,"shadedProcess");I(_Cr,"slopedRect");I(ECr,"squareRect");BWn=I((e,r,i)=>{let a=e.height+i,o=a*Math.cos(Math.PI/(2*(Gtt-1))),l=Math.sqrt(Math.max(0,o**2-e.height**2));return{w:Math.max(e.width+a/4+r,1.5*a+(a-o),e.width+r+a-l),h:a}},"stadiumDimensions");I(wCr,"stadium");I(SCr,"state");I(TCr,"stateEnd");I(xCr,"stateStart");I(CCr,"subroutine");I(kCr,"taggedRect");I(ACr,"taggedWaveEdgedRectangle");I(RCr,"text");FWn=I((e,r,i,a,o,l)=>`M${e},${r} a${o},${l} 0,0,1 0,${-a} l${i},0 a${o},${l} 0,0,1 0,${a} M${i},${-a} a${o},${l} 0,0,0 0,${a} - l${-i},0`,"createCylinderPathD"),LWn=I((e,r,i,a,o,l)=>[`M${e},${r}`,`M${e+i},${r}`,`a${o},${l} 0,0,0 0,${-a}`,`l${-i},0`,`a${o},${l} 0,0,0 0,${a}`,`l${i},0`].join(" "),"createOuterCylinderPathD"),MWn=I((e,r,i,a,o,l)=>[`M${e+i/2},${-a/2}`,`a${o},${l} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD");I(xCr,"tiltedCylinder");I(CCr,"trapezoid");I(kCr,"trapezoidalPentagon");I(ACr,"triangle");I(RCr,"waveEdgedRectangle");I(ICr,"waveRectangle");I(OCr,"windowPane");axr=new Set(["redux-color","redux-dark-color"]),DWn=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);I(Htt,"erBox");I(MH,"addText");I(DH,"lineToPolygon");I(NCr,"textHelper");I(zne,"addText");I(LCr,"classBox");I(MCr,"requirementBox");I(p3,"addText");PWn=I((e)=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");I(DCr,"kanbanItem");I(PCr,"bang");I(BCr,"cloud");I(FCr,"defaultMindmapNode");I($Cr,"mindmapCircle");BWn=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:mCr},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:fCr},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:bCr},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:ECr},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Oxr},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Nxr},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Fxr},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:gxr},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Sxr},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:vxr},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Ixr},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:ztt},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:PCr},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:BCr},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:uCr},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Gxr},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Qxr},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Xxr},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:CCr},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:jxr},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Mxr},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:TCr},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:_xr},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:pCr},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:_Cr},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:vCr},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:$xr},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:zxr},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Cxr},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:kxr},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Axr},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Zxr},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:RCr},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Uxr},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:xCr},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Jxr},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Rxr},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Lxr},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:ACr},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:OCr},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Pxr},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:kCr},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Bxr},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:gCr},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:lCr},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:oCr},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:pxr},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:xxr},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:SCr},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:wCr},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:ICr},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:hCr},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:eCr}],FWn=I(()=>{let r=[...Object.entries({state:yCr,choice:Exr,note:cCr,composite:wxr,rectWithTitle:dCr,labelRect:Kxr,block_arrow:yxr,collapsedGroup:bxr,iconSquare:Yxr,iconCircle:Hxr,icon:Vxr,iconRounded:qxr,imageSquare:Wxr,anchor:dxr,kanbanItem:DCr,mindmapCircle:$Cr,defaultMindmapNode:FCr,classBox:LCr,erBox:Htt,requirementBox:MCr,usecaseActor:tCr,usecaseActorHollow:nCr,usecaseActorAwesome:rCr,usecaseActorIcon:iCr,usecaseBusiness:aCr,usecaseEllipse:Dxr,usecaseJsonTable:sCr}),...BWn.flatMap((i)=>[i.shortName,..."aliases"in i?i.aliases:[],..."internalAliases"in i?i.internalAliases:[]].map((o)=>[o,i.handler]))];return Object.fromEntries(r)},"generateShapeMap"),Hne=FWn();I(qne,"isValidShape")});async function y3(e,r,i){let a,o;if(r.shape==="rect")if(r.rx&&r.ry)r.shape="roundedRect";else r.shape="squareRect";let l=r.shape?Hne[r.shape]:void 0;if(!l)throw Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let h;if(i.config.securityLevel==="sandbox")h="_top";else if(r.linkTarget)h=r.linkTarget||"_blank";a=e.insert("svg:a").attr("xlink:href",r.link).attr("target",h??null),o=await l(a,r,i)}else o=await l(e,r,i),a=o;if(a.attr("data-look",np(r.look)),r.tooltip)o.attr("title",r.tooltip);if(hwe.set(r.id,a),r.haveCallback)a.attr("class",a.attr("class")+" clickable");return a}var SC,hwe,UCr,GCr,v3;var dg=Re(()=>{ip();Ql();Zs();Ja();SC=I(({flowchart:e})=>{let r=e?.subGraphTitleMargin?.top??0,i=e?.subGraphTitleMargin?.bottom??0,a=r+i;return{subGraphTitleTopMargin:r,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),hwe=new Map;I(y3,"insertNode");UCr=I((e,r)=>{hwe.set(r.id,e)},"setNodeElem"),GCr=I(()=>{hwe.clear()},"clear"),v3=I((e)=>{let r=hwe.get(e.id);Ze.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let i=8,a=e.diff||0;if(e.clusterNode)r.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-i)+")");else r.attr("transform","translate("+e.x+", "+e.y+")");return a},"positionNode")});var $Wn,zCr,UWn,GWn,zWn,VWn,HWn,qWn,YWn,WWn,jWn,KWn,XWn,qtt,VCr,TL,HCr;var K1=Re(()=>{dg();ip();R0();Bp();I0();eo();Zs();Ja();dl();Na();dl();Na();$Wn=I(async(e,r)=>{let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:h,clusterBorder:d,borderColorArray:p}=o,m=d,{labelStyles:y,nodeStyles:E,borderStyles:w,backgroundStyles:T}=fa(r),x=e.insert("g").attr("class","cluster swimlane "+(r.cssClasses||"")).attr("id",r.domId??r.id).attr("data-id",r.id).attr("data-et","cluster").attr("data-look",r.look);ty(x,r.colorIndex,a,p);let k=zE(i.flowchart.htmlLabels),A=r.direction==="LR",R=x.insert("g").attr("class","cluster-label swimlane-label"),N=await ug(R,r.label,{style:r.labelStyle,useHtmlLabels:k,isNode:!0,width:r.width}),L=N.getBBox();if(k){let X=N.children[0],W=xn(N);L=X.getBoundingClientRect(),W.attr("width",L.width),W.attr("height",L.height)}let B=r.padding??0,D=r.width<=L.width+B?L.width+B:r.width;if(r.width<=L.width+B)r.diff=(D-r.width)/2-B;else r.diff=-B;let P=r.height,F=r.y-P/2,H=r.y+P/2,K=r.x-D/2,Q=r.swimlaneContentTop!==void 0?r.swimlaneContentTop:F+P/3,Z=A?4:0,Y=L.height+2*Z,j,te;if(A){let X=Math.max(Y,L.height+2*Z),W=K+X,J=Math.max(0,D-X);if(r.look==="handDrawn"){let ie=ln.svg(x),le=ga(r,{roughness:0.7,fill:h,stroke:m,seed:l}),se=ga(r,{roughness:0.7,fill:"none",stroke:m,seed:l}),he=ie.rectangle(K,F,X,P,le);j=x.insert(()=>he,":first-child").attr("class","swimlane-title");let ye=ie.rectangle(W,F,J,P,se);te=x.insert(()=>ye,":first-child").attr("class","swimlane-body"),j.select("path:nth-child(2)").attr("style",w.join(";")),j.select("path").attr("style",T.join(";").replace("fill","stroke"))}else j=x.insert("rect",":first-child"),te=x.insert("rect",":first-child"),j.attr("class","swimlane-title").attr("style",E).attr("x",K).attr("y",F).attr("width",X).attr("height",P).attr("fill",h).attr("stroke",m),te.attr("class","swimlane-body").attr("style",E).attr("x",W).attr("y",F).attr("width",J).attr("height",P).attr("fill","none").attr("stroke",m);let z=K+X/2,ne=r.y;R.attr("transform",`translate(${z}, ${ne}) rotate(-90) translate(${-L.width/2}, ${-L.height/2})`)}else{let X=Math.max(0,Q-F),W=Math.min(Y,X),J=F+W,z=Math.max(0,H-J),ne=r.x-D/2;if(r.look==="handDrawn"){let se=ln.svg(x),he=ga(r,{roughness:0.7,fill:h,stroke:m,fillWeight:3,seed:l}),ye=ga(r,{roughness:0.7,fill:"none",stroke:m,seed:l}),xe=se.rectangle(ne,F,D,W,he);j=x.insert(()=>xe,":first-child").attr("class","swimlane-title");let Ie=se.rectangle(ne,J,D,z,ye);te=x.insert(()=>Ie,":first-child").attr("class","swimlane-body"),j.select("path:nth-child(2)").attr("style",w.join(";")),j.select("path").attr("style",T.join(";").replace("fill","stroke"))}else j=x.insert("rect",":first-child"),te=x.insert("rect",":first-child"),j.attr("class","swimlane-title").attr("style",E).attr("x",ne).attr("y",F).attr("width",D).attr("height",W).attr("fill",h).attr("stroke",m),te.attr("class","swimlane-body").attr("style",E).attr("x",ne).attr("y",J).attr("width",D).attr("height",z).attr("fill","none").attr("stroke",m);let ie=r.x-L.width/2,le=F+(W-L.height)/2;R.attr("transform",`translate(${ie}, ${le})`)}if(Ze.trace("Swimlane data ",r,JSON.stringify(r)),y){let X=R.select("span");if(X)X.attr("style",y)}return r.offsetX=0,r.width=D,r.height=P,r.offsetY=L.height-B/2,r.intersect=function(X){return m3(r,X)},{cluster:x,labelBBox:L}},"swimlane"),zCr=I(async(e,r)=>{Ze.info("Creating subgraph rect for ",r.id,r);let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:h,clusterBorder:d,borderColorArray:p}=o,{labelStyles:m,nodeStyles:y,borderStyles:E,backgroundStyles:w}=fa(r),T=e.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.domId).attr("data-look",r.look);ty(T,r.colorIndex,a,p);let x=Mp(i),k=T.insert("g").attr("class","cluster-label "),A;if(r.labelType==="markdown")A=await ug(k,r.label,{style:r.labelStyle,useHtmlLabels:x,isNode:!0,width:r.width});else A=await wC(k,r.label,r.labelStyle||"",!1,!0);let R=A.getBBox();if(Mp(i)){let K=A.children[0],Q=xn(A);R=K.getBoundingClientRect(),Q.attr("width",R.width),Q.attr("height",R.height)}let N=r.width<=R.width+r.padding?R.width+r.padding:r.width;if(r.width<=R.width+r.padding)r.diff=(N-r.width)/2-r.padding;else r.diff=-r.padding;let L=r.height,B=r.x-N/2,D=r.y-L/2;Ze.trace("Data ",r,JSON.stringify(r));let P;if(r.look==="handDrawn"){let K=ln.svg(T),Q=ga(r,{roughness:0.7,fill:h,stroke:d,fillWeight:3,seed:l}),Z=K.path(X_(B,D,N,L,0),Q);P=T.insert(()=>(Ze.debug("Rough node insert CXC",Z),Z),":first-child"),P.select("path:nth-child(2)").attr("style",E.join(";")),P.select("path").attr("style",w.join(";").replace("fill","stroke"))}else P=T.insert("rect",":first-child"),P.attr("style",y).attr("rx",r.rx).attr("ry",r.ry).attr("x",B).attr("y",D).attr("width",N).attr("height",L);let{subGraphTitleTopMargin:F}=SC(i);if(k.attr("transform",`translate(${r.x-R.width/2}, ${r.y-r.height/2+F})`),m){let K=k.select("span");if(K)K.attr("style",m)}let H=P.node().getBBox();return r.offsetX=0,r.width=H.width,r.height=H.height,r.offsetY=R.height-r.padding/2,r.intersect=function(K){return m3(r,K)},{cluster:T,labelBBox:R}},"rect"),UWn=I((e,r)=>{let i=e.insert("g").attr("class","note-cluster").attr("id",r.domId),a=i.insert("rect",":first-child"),o=0*r.padding,l=o/2;a.attr("rx",r.rx).attr("ry",r.ry).attr("x",r.x-r.width/2-l).attr("y",r.y-r.height/2-l).attr("width",r.width+o).attr("height",r.height+o).attr("fill","none");let h=a.node().getBBox();return r.width=h.width,r.height=h.height,r.intersect=function(d){return m3(r,d)},{cluster:i,labelBBox:{width:0,height:0}}},"noteGroup"),GWn=I(async(e,r)=>{let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{altBackground:h,borderColorArray:d,compositeBackground:p,compositeTitleBackground:m,nodeBorder:y}=o,E=e.insert("g").attr("class",r.cssClasses).attr("id",r.domId).attr("data-id",r.id).attr("data-look",r.look);ty(E,r.colorIndex,a,d);let w=E.insert("g",":first-child"),T=E.insert("g").attr("class","cluster-label"),x=E.append("rect"),k=await wC(T,r.label,r.labelStyle,void 0,!0),A=k.getBBox();if(Mp(i)){let Z=k.children[0],Y=xn(k);A=Z.getBoundingClientRect(),Y.attr("width",A.width),Y.attr("height",A.height)}let R=0*r.padding,N=R/2,L=(r.width<=A.width+r.padding?A.width+r.padding:r.width)+R;if(r.width<=A.width+r.padding)r.diff=(L-r.width)/2-r.padding;else r.diff=-r.padding;let B=r.height+R,D=r.height+R-A.height-6,P=r.x-L/2,F=r.y-B/2;r.width=L;let H=r.y-r.height/2-N+A.height+2,K;if(r.look==="handDrawn"){let Z=r.cssClasses.includes("statediagram-cluster-alt"),Y=ln.svg(E),j=r.rx||r.ry?Y.path(X_(P,F,L,B,10),{roughness:0.7,fill:m,fillStyle:"solid",stroke:y,seed:l}):Y.rectangle(P,F,L,B,{seed:l});K=E.insert(()=>j,":first-child");let te=Y.rectangle(P,H,L,D,{fill:Z?h:p,fillStyle:Z?"hachure":"solid",stroke:y,seed:l});K=E.insert(()=>j,":first-child"),x=E.insert(()=>te),K.attr("class","outer"),x.attr("class","inner")}else{K=w.insert("rect",":first-child");let Z="outer";K.attr("class",Z).attr("x",P).attr("y",F).attr("width",L).attr("height",B).attr("data-look",r.look),x.attr("class","inner").attr("x",P).attr("y",H).attr("width",L).attr("height",D)}T.attr("transform",`translate(${r.x-A.width/2}, ${F+1-(Mp(i)?0:3)})`);let Q=K.node().getBBox();return r.height=Q.height,r.offsetX=0,r.offsetY=A.height-r.padding/2,r.labelBBox=A,r.intersect=function(Z){return m3(r,Z)},{cluster:E,labelBBox:A}},"roundedWithTitle"),zWn=I(async(e,r)=>{Ze.info("Creating subgraph rect for ",r.id,r);let i=Ar(),{themeVariables:a,handDrawnSeed:o}=i,{clusterBkg:l,clusterBorder:h}=a,{labelStyles:d,nodeStyles:p,borderStyles:m,backgroundStyles:y}=fa(r),E=e.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.domId).attr("data-look",r.look),w=Mp(i),T=E.insert("g").attr("class","cluster-label "),x=await ug(T,r.label,{style:r.labelStyle,useHtmlLabels:w,isNode:!0,width:r.width}),k=x.getBBox();if(Mp(i)){let F=x.children[0],H=xn(x);k=F.getBoundingClientRect(),H.attr("width",k.width),H.attr("height",k.height)}let A=r.width<=k.width+r.padding?k.width+r.padding:r.width;if(r.width<=k.width+r.padding)r.diff=(A-r.width)/2-r.padding;else r.diff=-r.padding;let R=r.height,N=r.x-A/2,L=r.y-R/2;Ze.trace("Data ",r,JSON.stringify(r));let B;if(r.look==="handDrawn"){let F=ln.svg(E),H=ga(r,{roughness:0.7,fill:l,stroke:h,fillWeight:4,seed:o}),K=F.path(X_(N,L,A,R,r.rx),H);B=E.insert(()=>(Ze.debug("Rough node insert CXC",K),K),":first-child"),B.select("path:nth-child(2)").attr("style",m.join(";")),B.select("path").attr("style",y.join(";").replace("fill","stroke"))}else B=E.insert("rect",":first-child"),B.attr("style",p).attr("rx",r.rx).attr("ry",r.ry).attr("x",N).attr("y",L).attr("width",A).attr("height",R);let{subGraphTitleTopMargin:D}=SC(i);if(T.attr("transform",`translate(${r.x-k.width/2}, ${r.y-r.height/2+D})`),d){let F=T.select("span");if(F)F.attr("style",d)}let P=B.node().getBBox();return r.offsetX=0,r.width=P.width,r.height=P.height,r.offsetY=k.height-r.padding/2,r.intersect=function(F){return m3(r,F)},{cluster:E,labelBBox:k}},"kanbanSection"),VWn=I((e,r)=>{let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{altBackground:h,nodeBorder:d,borderColorArray:p}=o,m=e.insert("g").attr("class",r.cssClasses).attr("id",r.domId).attr("data-look",r.look);ty(m,r.colorIndex,a,p);let y=m.insert("g",":first-child"),E=0*r.padding,w=r.width+E;r.diff=-r.padding;let T=r.height+E,x=r.x-w/2,k=r.y-T/2;r.width=w;let A;if(r.look==="handDrawn"){let L=ln.svg(m).rectangle(x,k,w,T,{fill:h??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:d,seed:l});A=m.insert(()=>L,":first-child").attr("class","divider")}else{A=y.insert("rect",":first-child");let N="outer";if(r.look==="neo")N="divider";else N="divider";A.attr("class",N).attr("x",x).attr("y",k).attr("width",w).attr("height",T).attr("data-look",r.look)}let R=A.node().getBBox();return r.height=R.height,r.offsetX=0,r.offsetY=0,r.intersect=function(N){return m3(r,N)},{cluster:m,labelBBox:{}}},"divider"),HWn=I(async(e,r,i)=>{Ze.info(`Creating ${i.cssClass} for `,r.id,r);let a=Ar(),{theme:o,themeVariables:l,handDrawnSeed:h}=a,{borderColorArray:d}=l,{labelStyles:p,borderStyles:m}=fa(r),y=e.insert("g").attr("class","cluster "+i.cssClass+" "+r.cssClasses).attr("id",r.domId??r.id).attr("data-look",r.look);ty(y,r.colorIndex,o,d);let E=Mp(a),w=y.insert("g").attr("class","cluster-label"),T={width:0,height:0},x=r.label?.trim();if(x){let D;if(r.labelType==="markdown")D=await ug(w,r.label,{style:r.labelStyle,useHtmlLabels:E,isNode:!0,width:r.width});else D=await wC(w,r.label,r.labelStyle||"",!1,!0);if(T=D.getBBox(),E){let P=D.children[0],F=xn(D);T=P.getBoundingClientRect(),F.attr("width",T.width),F.attr("height",T.height)}}let k=r.width<=T.width+r.padding?T.width+r.padding:r.width;if(r.width<=T.width+r.padding)r.diff=(k-r.width)/2-r.padding;else r.diff=-r.padding;let A=r.height,R=r.x-k/2,N=r.y-A/2,L;if(r.look==="handDrawn"){let D=ln.svg(y),P=ga(r,{roughness:i.roughness,fill:i.fill,stroke:i.stroke,strokeWidth:i.strokeWidth,seed:h,...i.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...i.strokeDash?{strokeLineDash:i.strokeDash}:{}}),F=D.path(X_(R,N,k,A,i.rx),P);L=y.insert(()=>F,":first-child"),L.select("path:nth-child(2)").attr("style",m.join(";"))}else if(L=y.insert("rect",":first-child"),L.attr("rx",i.rx).attr("ry",i.rx).attr("x",R).attr("y",N).attr("width",k).attr("height",A).attr("fill",i.fill).attr("stroke",i.stroke).attr("stroke-width",i.strokeWidth+"px"),i.strokeDash)L.attr("stroke-dasharray",i.strokeDash.join(", "));if(x){let{subGraphTitleTopMargin:D}=SC(a);if(w.attr("transform",`translate(${r.x-T.width/2}, ${r.y-r.height/2+D})`),p){let P=w.select("span");if(P)P.attr("style",p)}}let B=L.node().getBBox();return r.offsetX=0,r.width=B.width,r.height=B.height,r.offsetY=T.height-r.padding/2,r.intersect=function(D){return m3(r,D)},{cluster:y,labelBBox:T}},"createContainerGroup"),qWn=I(async(e,r)=>{let{themeVariables:i}=Ar(),a=i.flowContainerStroke||i.secondaryBorderColor;return HWn(e,r,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:a,strokeWidth:0.75,roughness:0.7})},"flowGroup"),YWn=I((e,r)=>{let i=e.boundaryType||"rect",a=i==="package"?20:e.padding,o=i==="package"?r.height+10:0,l=Math.max(e.width,r.width+a),h=i==="package"?Math.max(e.height,o+e.padding*2):e.height,d=e.x-l/2,p=e.y-h/2;return{boundaryType:i,width:l,height:h,x:d,y:p,bodyY:p+o,bodyHeight:h-o,tabHeight:o,tabWidth:i==="package"?Math.min(l,Math.max(80,r.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),WWn=I(async(e,r)=>{Ze.info("Creating usecase system boundary for ",r.id,r);let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:h,clusterBorder:d,borderColorArray:p}=o,{labelStyles:m,nodeStyles:y}=fa(r),{stylesMap:E}=h3(r),w=r.boundaryType||"rect",T=e.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${w} ${r.cssClasses}`).attr("id",typeof r.domId==="string"?r.domId:r.id).attr("data-boundary-type",w).attr("data-look",r.look);ty(T,r.colorIndex,a,p);let x=Mp(i),k=T.insert("g").attr("class","cluster-label system-boundary-title"),A=await ug(k,r.label,{style:m,useHtmlLabels:x,isNode:!0}),R=A.getBBox();if(x){let j=A.children[0],te=xn(A);R=j.getBoundingClientRect(),te.attr("width",R.width),te.attr("height",R.height)}let N=YWn(r,R),{width:L,height:B,x:D,y:P,bodyY:F,bodyHeight:H,tabHeight:K,tabWidth:Q}=N;r.diff=r.width<=R.width+r.padding?(L-r.width)/2-r.padding:-r.padding;let Z=ga(r,{fill:E.get("fill")||h,stroke:E.get("stroke")||d,strokeWidth:E.get("stroke-width")?.replace("px","")||1,seed:l});if(r.look==="handDrawn"){let j=ln.svg(T),te=j.rectangle(D,F,L,H,Z);if(T.insert(()=>te,":first-child").attr("class","boundary-body label-container"),w==="package"){let X=j.rectangle(D,P,Q,K,Z);T.insert(()=>X,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(T.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",y).attr("x",D).attr("y",F).attr("width",L).attr("height",H),w==="package")T.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",y).attr("x",D).attr("y",P).attr("width",Q).attr("height",K);let{subGraphTitleTopMargin:Y}=SC(i);if(w==="package")k.attr("transform",`translate(${D+(Q-R.width)/2}, ${P+(K-R.height)/2})`);else k.attr("transform",`translate(${r.x-R.width/2}, ${P+Y})`);if(m)k.attr("style",m),k.select("span").attr("style",m);return r.offsetX=0,r.width=L,r.height=B,r.offsetY=R.height-r.padding/2,r.labelBBox=R,r.intersect=function(j){return m3(r,j)},{cluster:T,labelBBox:R}},"usecaseSystemBoundary"),jWn=zCr,KWn={rect:zCr,squareRect:jWn,roundedWithTitle:GWn,noteGroup:UWn,divider:VWn,kanbanSection:zWn,flowGroup:qWn,usecaseSystemBoundary:WWn,swimlane:$Wn},XWn=new Set(["noteGroup","divider"]),qtt=I((e)=>!XWn.has(e??"rect"),"clusterPaintsTitle"),VCr=new Map,TL=I(async(e,r)=>{let i=r.shape||"rect",a=await KWn[i](e,r);return VCr.set(r.id,a),a},"insertCluster"),HCr=I(()=>{VCr=new Map},"clear")});function jne(e,r){if(e===void 0||r===void 0)return{angle:0,deltaX:0,deltaY:0};e=yf(e),r=yf(r);let[i,a]=[e.x,e.y],[o,l]=[r.x,r.y],h=o-i,d=l-a;return{angle:Math.atan(d/h),deltaX:h,deltaY:d}}function Kne(e,r,i){e.terminalLabelSizes??={},e.terminalLabelSizes[r]={width:i.width,height:i.height}}function Xne(e,r,i){if(Mp(Ar())&&e)e.style.width=Math.max(r.length*9,i.width)+"px",e.style.height=i.height+"px"}function KCr(e){let r=[],i=[];for(let a=1;a5&&Math.abs(l.y-o.y)>5)r.push(l),i.push(a);else if(o.y===l.y&&l.x===h.x&&Math.abs(l.x-o.x)>5&&Math.abs(l.y-h.y)>5)r.push(l),i.push(a)}return{cornerPoints:r,cornerPointPositions:i}}function XCr(e,r){if(e.length<2)return"";let i="",a=e.length,o=0.00001;for(let l=0;l({...o}));if(e.length>=2&&O0[r.arrowTypeStart]){let o=O0[r.arrowTypeStart],l=e[0],h=e[1],{angle:d}=Ytt(l,h),p=o*Math.cos(d),m=o*Math.sin(d);i[0].x=l.x+p,i[0].y=l.y+m}let a=e.length;if(a>=2&&O0[r.arrowTypeEnd]){let o=O0[r.arrowTypeEnd],l=e[a-1],h=e[a-2],{angle:d}=Ytt(h,l),p=o*Math.cos(d),m=o*Math.sin(d);i[a-1].x=l.x-p,i[a-1].y=l.y-m}return i}var Yne,O0,dwe,yf,QWn,ZWn,JWn,ejn,qCr,tjn,QP,im,jCr,Wtt,Wne,_3,jtt,BH,rjn,njn,ijn,YCr,WCr,ajn,sjn,xL,ojn,ljn,cjn,ujn,hjn,djn,fjn,pjn,gjn,mjn,bjn,yjn,vjn,_jn,Ejn,wjn,Sjn,Tjn,xjn,Cjn,kjn,Ajn,Rjn,Ijn,Ojn,FH;var Qm=Re(()=>{dg();ip();R0();Bp();Ql();eo();Zs();Ja();dl();Na();Yne=I((e,r)=>{if(r)return"translate("+-e.width/2+", "+-e.height/2+")";let i=e.x??0,a=e.y??0;return"translate("+-(i+e.width/2)+", "+-(a+e.height/2)+")"},"computeLabelTransform"),O0={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},dwe={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};I(jne,"calculateDeltaAndAngle");yf=I((e)=>{if(Array.isArray(e))return{x:e[0],y:e[1]};return e},"pointTransformer"),QWn=I((e)=>({x:I(function(r,i,a){let o=0,l=yf(a[0]).x=0?1:-1)}else if(i===a.length-1&&Object.hasOwn(O0,e.arrowTypeEnd)){let{angle:T,deltaX:x}=jne(a[a.length-1],a[a.length-2]);o=O0[e.arrowTypeEnd]*Math.cos(T)*(x>=0?1:-1)}let h=Math.abs(yf(r).x-yf(a[a.length-1]).x),d=Math.abs(yf(r).y-yf(a[a.length-1]).y),p=Math.abs(yf(r).x-yf(a[0]).x),m=Math.abs(yf(r).y-yf(a[0]).y),y=O0[e.arrowTypeStart],E=O0[e.arrowTypeEnd],w=1;if(h0&&d0&&m=0?1:-1)}else if(i===a.length-1&&Object.hasOwn(O0,e.arrowTypeEnd)){let{angle:T,deltaY:x}=jne(a[a.length-1],a[a.length-2]);o=O0[e.arrowTypeEnd]*Math.abs(Math.sin(T))*(x>=0?1:-1)}let h=Math.abs(yf(r).y-yf(a[a.length-1]).y),d=Math.abs(yf(r).x-yf(a[a.length-1]).x),p=Math.abs(yf(r).y-yf(a[0]).y),m=Math.abs(yf(r).x-yf(a[0]).x),y=O0[e.arrowTypeStart],E=O0[e.arrowTypeEnd],w=1;if(h0&&d0&&m{if(r.arrowTypeStart)qCr(e,"start",r.arrowTypeStart,i,a,o,l,h);if(r.arrowTypeEnd)qCr(e,"end",r.arrowTypeEnd,i,a,o,l,h)},"addEdgeMarkers"),JWn={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},ejn=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],qCr=I((e,r,i,a,o,l,h=!1,d)=>{if(!i||i==="none")return;let p=JWn[i],m=p&&ejn.includes(p.type);if(!p){Ze.warn(`Unknown arrow type: ${i}`);return}let y=p.type,T=`${o}_${l}-${y}${r==="start"?"Start":"End"}${h&&m?"-margin":""}`;if(d&&d.trim()!==""){let x=d.replace(/[^\dA-Za-z]/g,"_"),k=`${T}_${x}`;if(!document.getElementById(k)){let A=document.getElementById(T);if(A){let R=A.cloneNode(!0);R.id=k,R.querySelectorAll("path, circle, line").forEach((L)=>{if(L.setAttribute("stroke",d),p.fill)L.setAttribute("fill",d)}),A.parentNode?.appendChild(R)}}e.attr(`marker-${r}`,`url(${a}#${k})`)}else e.attr(`marker-${r}`,`url(${a}#${T})`)},"addEdgeMarker"),tjn=I((e)=>typeof e==="string"?e:Ar()?.flowchart?.curve,"resolveEdgeCurveType"),QP=new Map,im=new Map,jCr=I(()=>{QP.clear(),im.clear()},"clear"),Wtt=I((e)=>Boolean(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),Wne=I((e)=>{if(!e)return"";if(typeof e==="string")return e;return e.reduce((r,i)=>r+";"+i,"")},"getLabelStyles"),_3=I(async(e,r)=>{let i=Ar(),a=Mp(i),{labelStyles:o}=fa(r);r.labelStyle=o;let l=e.insert("g").attr("class","edgeLabel"),h=l.insert("g").attr("class","label").attr("data-id",r.id),d=r.labelType==="markdown",p=void 0,m=await ug(e,r.label,{style:Wne(r.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:d,width:d?p:void 0},i);h.node().appendChild(m),Ze.info("abc82",r,r.labelType);let y,E;if(a){let T=m.children[0],x=xn(m);y=await UR.measure(()=>T.getBoundingClientRect()),E=y,x.attr("width",y.width),x.attr("height",y.height)}else{let T=xn(m).select("text").node();await UR.measure(()=>{if(y=m.getBBox(),T&&typeof T.getBBox==="function")E=T.getBBox();else E=y})}h.attr("transform",Yne(E,a)),QP.set(r.id,l),r.width=y.width,r.height=y.height;let w;if(r.startLabelLeft){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await wC(x,r.startLabelLeft,Wne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Yne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).startLeft=T,Xne(w,r.startLabelLeft,A),Kne(r,"startLeft",A)}if(r.startLabelRight){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await wC(x,r.startLabelRight,Wne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Yne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).startRight=T,Xne(w,r.startLabelRight,A),Kne(r,"startRight",A)}if(r.endLabelLeft){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await wC(x,r.endLabelLeft,Wne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Yne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).endLeft=T,Xne(w,r.endLabelLeft,A),Kne(r,"endLeft",A)}if(r.endLabelRight){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await wC(x,r.endLabelRight,Wne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Yne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).endRight=T,Xne(w,r.endLabelRight,A),Kne(r,"endRight",A)}return m},"insertEdgeLabel");I(Kne,"recordTerminalLabelSize");I(Xne,"setTerminalWidth");jtt=I((e,r)=>{let{x:i,y:a}=e;if(r?.updatedPath){let o=Ts.calcLabelPosition(r.updatedPath);if(r.originalPath){let l=Ts.calcLabelPosition(r.originalPath);i=e.x+(o.x-l.x),a=e.y+(o.y-l.y)}else i=o.x,a=o.y}return{x:i,y:a}},"resolveEdgeLabelPosition"),BH=I((e,r)=>{Ze.debug("Moving label abc88 ",e.id,e.label,QP.get(e.id),r);let i=Ar(),{subGraphTitleTotalMargin:a}=SC(i);if(e.label){let l=QP.get(e.id),{x:h,y:d}=jtt(e,r);Ze.debug("Moving label "+e.label+" from (",e.x,",",e.y,") to (",h,",",d,") abc88"),l.attr("transform",`translate(${h}, ${d+a/2})`)}let o=r.updatedPath?r.updatedPath:r.originalPath;if(e.startLabelLeft){let l=im.get(e.id).startLeft,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}if(e.startLabelRight){let l=im.get(e.id).startRight,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}if(e.endLabelLeft){let l=im.get(e.id).endLeft,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}if(e.endLabelRight){let l=im.get(e.id).endRight,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}},"positionEdgeLabel"),rjn=I((e,r)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(r))return r;if(r.length!==2)return r;let[i,a]=r,o=Math.abs(a.x-i.x),l=Math.abs(a.y-i.y);if(o<0.001||l<0.001)return r;if(l>=o)return[i,{x:i.x,y:a.y},a];return[i,{x:a.x,y:i.y},a]},"orthogonalizeToLabelClippedPoints"),njn=I((e,r)=>{let{x:i,y:a}=e,o=Math.abs(r.x-i),l=Math.abs(r.y-a),h=e.width/2,d=e.height/2;return o>=h||l>=d},"outsideNode"),ijn=I((e,r,i)=>{Ze.debug(`intersection calc abc89: + l${-i},0`,"createCylinderPathD"),$Wn=I((e,r,i,a,o,l)=>[`M${e},${r}`,`M${e+i},${r}`,`a${o},${l} 0,0,0 0,${-a}`,`l${-i},0`,`a${o},${l} 0,0,0 0,${a}`,`l${i},0`].join(" "),"createOuterCylinderPathD"),UWn=I((e,r,i,a,o,l)=>[`M${e+i/2},${-a/2}`,`a${o},${l} 0,0,0 0,${a}`].join(" "),"createInnerCylinderPathD");I(ICr,"tiltedCylinder");I(OCr,"trapezoid");I(NCr,"trapezoidalPentagon");I(LCr,"triangle");I(MCr,"waveEdgedRectangle");I(DCr,"waveRectangle");I(PCr,"windowPane");uxr=new Set(["redux-color","redux-dark-color"]),GWn=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);I(Wtt,"erBox");I(BH,"addText");I(FH,"lineToPolygon");I(BCr,"textHelper");I(qne,"addText");I(FCr,"classBox");I($Cr,"requirementBox");I(g3,"addText");zWn=I((e)=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");I(UCr,"kanbanItem");I(GCr,"bang");I(zCr,"cloud");I(VCr,"defaultMindmapNode");I(HCr,"mindmapCircle");VWn=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:ECr},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:yCr},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:wCr},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:CCr},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Pxr},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Bxr},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Vxr},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:_xr},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Axr},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:Txr},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Dxr},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:qtt},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:GCr},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:zCr},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:gCr},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Yxr},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:rCr},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:tCr},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:OCr},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Jxr},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:$xr},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:RCr},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:xxr},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:vCr},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:xCr},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:TCr},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Hxr},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Wxr},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Oxr},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Nxr},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Lxr},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:nCr},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:MCr},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:qxr},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:ICr},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:iCr},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Mxr},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Fxr},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:LCr},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:PCr},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Gxr},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:NCr},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:zxr},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:_Cr},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:fCr},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:dCr},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:vxr},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Ixr},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ACr},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:kCr},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:DCr},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:mCr},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:aCr}],HWn=I(()=>{let r=[...Object.entries({state:SCr,choice:Cxr,note:pCr,composite:kxr,rectWithTitle:bCr,labelRect:eCr,block_arrow:Sxr,collapsedGroup:wxr,iconSquare:Qxr,iconCircle:Kxr,icon:jxr,iconRounded:Xxr,imageSquare:Zxr,anchor:bxr,kanbanItem:UCr,mindmapCircle:HCr,defaultMindmapNode:VCr,classBox:FCr,erBox:Wtt,requirementBox:$Cr,usecaseActor:sCr,usecaseActorHollow:lCr,usecaseActorAwesome:oCr,usecaseActorIcon:cCr,usecaseBusiness:uCr,usecaseEllipse:Uxr,usecaseJsonTable:hCr}),...VWn.flatMap((i)=>[i.shortName,..."aliases"in i?i.aliases:[],..."internalAliases"in i?i.internalAliases:[]].map((o)=>[o,i.handler]))];return Object.fromEntries(r)},"generateShapeMap"),Wne=HWn();I(jne,"isValidShape")});async function v3(e,r,i){let a,o;if(r.shape==="rect")if(r.rx&&r.ry)r.shape="roundedRect";else r.shape="squareRect";let l=r.shape?Wne[r.shape]:void 0;if(!l)throw Error(`No such shape: ${r.shape}. Please check your syntax.`);if(r.link){let h;if(i.config.securityLevel==="sandbox")h="_top";else if(r.linkTarget)h=r.linkTarget||"_blank";a=e.insert("svg:a").attr("xlink:href",r.link).attr("target",h??null),o=await l(a,r,i)}else o=await l(e,r,i),a=o;if(a.attr("data-look",np(r.look)),r.tooltip)o.attr("title",r.tooltip);if(pwe.set(r.id,a),r.haveCallback)a.attr("class",a.attr("class")+" clickable");return a}var xC,pwe,qCr,YCr,_3;var dg=Re(()=>{ip();Ql();Zs();Ja();xC=I(({flowchart:e})=>{let r=e?.subGraphTitleMargin?.top??0,i=e?.subGraphTitleMargin?.bottom??0,a=r+i;return{subGraphTitleTopMargin:r,subGraphTitleBottomMargin:i,subGraphTitleTotalMargin:a}},"getSubGraphTitleMargins"),pwe=new Map;I(v3,"insertNode");qCr=I((e,r)=>{pwe.set(r.id,e)},"setNodeElem"),YCr=I(()=>{pwe.clear()},"clear"),_3=I((e)=>{let r=pwe.get(e.id);Ze.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let i=8,a=e.diff||0;if(e.clusterNode)r.attr("transform","translate("+(e.x+a-e.width/2)+", "+(e.y-e.height/2-i)+")");else r.attr("transform","translate("+e.x+", "+e.y+")");return a},"positionNode")});var qWn,WCr,YWn,WWn,jWn,KWn,XWn,QWn,ZWn,JWn,ejn,tjn,rjn,jtt,jCr,CL,KCr;var K1=Re(()=>{dg();ip();R0();Bp();I0();eo();Zs();Ja();dl();Na();dl();Na();qWn=I(async(e,r)=>{let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:h,clusterBorder:d,borderColorArray:p}=o,m=d,{labelStyles:y,nodeStyles:v,borderStyles:w,backgroundStyles:T}=fa(r),x=e.insert("g").attr("class","cluster swimlane "+(r.cssClasses||"")).attr("id",r.domId??r.id).attr("data-id",r.id).attr("data-et","cluster").attr("data-look",r.look);ty(x,r.colorIndex,a,p);let k=zE(i.flowchart.htmlLabels),A=r.direction==="LR",R=x.insert("g").attr("class","cluster-label swimlane-label"),N=await ug(R,r.label,{style:r.labelStyle,useHtmlLabels:k,isNode:!0,width:r.width}),L=N.getBBox();if(k){let Z=N.children[0],j=xn(N);L=Z.getBoundingClientRect(),j.attr("width",L.width),j.attr("height",L.height)}let B=r.padding??0,D=r.width<=L.width+B?L.width+B:r.width;if(r.width<=L.width+B)r.diff=(D-r.width)/2-B;else r.diff=-B;let P=r.height,F=r.y-P/2,H=r.y+P/2,W=r.x-D/2,X=r.swimlaneContentTop!==void 0?r.swimlaneContentTop:F+P/3,Q=A?4:0,Y=L.height+2*Q,K,J;if(A){let Z=Math.max(Y,L.height+2*Q),j=W+Z,ee=Math.max(0,D-Z);if(r.look==="handDrawn"){let ie=cn.svg(x),se=ga(r,{roughness:0.7,fill:h,stroke:m,seed:l}),oe=ga(r,{roughness:0.7,fill:"none",stroke:m,seed:l}),he=ie.rectangle(W,F,Z,P,se);K=x.insert(()=>he,":first-child").attr("class","swimlane-title");let ye=ie.rectangle(j,F,ee,P,oe);J=x.insert(()=>ye,":first-child").attr("class","swimlane-body"),K.select("path:nth-child(2)").attr("style",w.join(";")),K.select("path").attr("style",T.join(";").replace("fill","stroke"))}else K=x.insert("rect",":first-child"),J=x.insert("rect",":first-child"),K.attr("class","swimlane-title").attr("style",v).attr("x",W).attr("y",F).attr("width",Z).attr("height",P).attr("fill",h).attr("stroke",m),J.attr("class","swimlane-body").attr("style",v).attr("x",j).attr("y",F).attr("width",ee).attr("height",P).attr("fill","none").attr("stroke",m);let z=W+Z/2,ne=r.y;R.attr("transform",`translate(${z}, ${ne}) rotate(-90) translate(${-L.width/2}, ${-L.height/2})`)}else{let Z=Math.max(0,X-F),j=Math.min(Y,Z),ee=F+j,z=Math.max(0,H-ee),ne=r.x-D/2;if(r.look==="handDrawn"){let oe=cn.svg(x),he=ga(r,{roughness:0.7,fill:h,stroke:m,fillWeight:3,seed:l}),ye=ga(r,{roughness:0.7,fill:"none",stroke:m,seed:l}),Se=oe.rectangle(ne,F,D,j,he);K=x.insert(()=>Se,":first-child").attr("class","swimlane-title");let Ie=oe.rectangle(ne,ee,D,z,ye);J=x.insert(()=>Ie,":first-child").attr("class","swimlane-body"),K.select("path:nth-child(2)").attr("style",w.join(";")),K.select("path").attr("style",T.join(";").replace("fill","stroke"))}else K=x.insert("rect",":first-child"),J=x.insert("rect",":first-child"),K.attr("class","swimlane-title").attr("style",v).attr("x",ne).attr("y",F).attr("width",D).attr("height",j).attr("fill",h).attr("stroke",m),J.attr("class","swimlane-body").attr("style",v).attr("x",ne).attr("y",ee).attr("width",D).attr("height",z).attr("fill","none").attr("stroke",m);let ie=r.x-L.width/2,se=F+(j-L.height)/2;R.attr("transform",`translate(${ie}, ${se})`)}if(Ze.trace("Swimlane data ",r,JSON.stringify(r)),y){let Z=R.select("span");if(Z)Z.attr("style",y)}return r.offsetX=0,r.width=D,r.height=P,r.offsetY=L.height-B/2,r.intersect=function(Z){return b3(r,Z)},{cluster:x,labelBBox:L}},"swimlane"),WCr=I(async(e,r)=>{Ze.info("Creating subgraph rect for ",r.id,r);let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:h,clusterBorder:d,borderColorArray:p}=o,{labelStyles:m,nodeStyles:y,borderStyles:v,backgroundStyles:w}=fa(r),T=e.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.domId).attr("data-look",r.look);ty(T,r.colorIndex,a,p);let x=Mp(i),k=T.insert("g").attr("class","cluster-label "),A;if(r.labelType==="markdown")A=await ug(k,r.label,{style:r.labelStyle,useHtmlLabels:x,isNode:!0,width:r.width});else A=await TC(k,r.label,r.labelStyle||"",!1,!0);let R=A.getBBox();if(Mp(i)){let W=A.children[0],X=xn(A);R=W.getBoundingClientRect(),X.attr("width",R.width),X.attr("height",R.height)}let N=r.width<=R.width+r.padding?R.width+r.padding:r.width;if(r.width<=R.width+r.padding)r.diff=(N-r.width)/2-r.padding;else r.diff=-r.padding;let L=r.height,B=r.x-N/2,D=r.y-L/2;Ze.trace("Data ",r,JSON.stringify(r));let P;if(r.look==="handDrawn"){let W=cn.svg(T),X=ga(r,{roughness:0.7,fill:h,stroke:d,fillWeight:3,seed:l}),Q=W.path(X_(B,D,N,L,0),X);P=T.insert(()=>(Ze.debug("Rough node insert CXC",Q),Q),":first-child"),P.select("path:nth-child(2)").attr("style",v.join(";")),P.select("path").attr("style",w.join(";").replace("fill","stroke"))}else P=T.insert("rect",":first-child"),P.attr("style",y).attr("rx",r.rx).attr("ry",r.ry).attr("x",B).attr("y",D).attr("width",N).attr("height",L);let{subGraphTitleTopMargin:F}=xC(i);if(k.attr("transform",`translate(${r.x-R.width/2}, ${r.y-r.height/2+F})`),m){let W=k.select("span");if(W)W.attr("style",m)}let H=P.node().getBBox();return r.offsetX=0,r.width=H.width,r.height=H.height,r.offsetY=R.height-r.padding/2,r.intersect=function(W){return b3(r,W)},{cluster:T,labelBBox:R}},"rect"),YWn=I((e,r)=>{let i=e.insert("g").attr("class","note-cluster").attr("id",r.domId),a=i.insert("rect",":first-child"),o=0*r.padding,l=o/2;a.attr("rx",r.rx).attr("ry",r.ry).attr("x",r.x-r.width/2-l).attr("y",r.y-r.height/2-l).attr("width",r.width+o).attr("height",r.height+o).attr("fill","none");let h=a.node().getBBox();return r.width=h.width,r.height=h.height,r.intersect=function(d){return b3(r,d)},{cluster:i,labelBBox:{width:0,height:0}}},"noteGroup"),WWn=I(async(e,r)=>{let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{altBackground:h,borderColorArray:d,compositeBackground:p,compositeTitleBackground:m,nodeBorder:y}=o,v=e.insert("g").attr("class",r.cssClasses).attr("id",r.domId).attr("data-id",r.id).attr("data-look",r.look);ty(v,r.colorIndex,a,d);let w=v.insert("g",":first-child"),T=v.insert("g").attr("class","cluster-label"),x=v.append("rect"),k=await TC(T,r.label,r.labelStyle,void 0,!0),A=k.getBBox();if(Mp(i)){let Q=k.children[0],Y=xn(k);A=Q.getBoundingClientRect(),Y.attr("width",A.width),Y.attr("height",A.height)}let R=0*r.padding,N=R/2,L=(r.width<=A.width+r.padding?A.width+r.padding:r.width)+R;if(r.width<=A.width+r.padding)r.diff=(L-r.width)/2-r.padding;else r.diff=-r.padding;let B=r.height+R,D=r.height+R-A.height-6,P=r.x-L/2,F=r.y-B/2;r.width=L;let H=r.y-r.height/2-N+A.height+2,W;if(r.look==="handDrawn"){let Q=r.cssClasses.includes("statediagram-cluster-alt"),Y=cn.svg(v),K=r.rx||r.ry?Y.path(X_(P,F,L,B,10),{roughness:0.7,fill:m,fillStyle:"solid",stroke:y,seed:l}):Y.rectangle(P,F,L,B,{seed:l});W=v.insert(()=>K,":first-child");let J=Y.rectangle(P,H,L,D,{fill:Q?h:p,fillStyle:Q?"hachure":"solid",stroke:y,seed:l});W=v.insert(()=>K,":first-child"),x=v.insert(()=>J),W.attr("class","outer"),x.attr("class","inner")}else{W=w.insert("rect",":first-child");let Q="outer";W.attr("class",Q).attr("x",P).attr("y",F).attr("width",L).attr("height",B).attr("data-look",r.look),x.attr("class","inner").attr("x",P).attr("y",H).attr("width",L).attr("height",D)}T.attr("transform",`translate(${r.x-A.width/2}, ${F+1-(Mp(i)?0:3)})`);let X=W.node().getBBox();return r.height=X.height,r.offsetX=0,r.offsetY=A.height-r.padding/2,r.labelBBox=A,r.intersect=function(Q){return b3(r,Q)},{cluster:v,labelBBox:A}},"roundedWithTitle"),jWn=I(async(e,r)=>{Ze.info("Creating subgraph rect for ",r.id,r);let i=Ar(),{themeVariables:a,handDrawnSeed:o}=i,{clusterBkg:l,clusterBorder:h}=a,{labelStyles:d,nodeStyles:p,borderStyles:m,backgroundStyles:y}=fa(r),v=e.insert("g").attr("class","cluster "+r.cssClasses).attr("id",r.domId).attr("data-look",r.look),w=Mp(i),T=v.insert("g").attr("class","cluster-label "),x=await ug(T,r.label,{style:r.labelStyle,useHtmlLabels:w,isNode:!0,width:r.width}),k=x.getBBox();if(Mp(i)){let F=x.children[0],H=xn(x);k=F.getBoundingClientRect(),H.attr("width",k.width),H.attr("height",k.height)}let A=r.width<=k.width+r.padding?k.width+r.padding:r.width;if(r.width<=k.width+r.padding)r.diff=(A-r.width)/2-r.padding;else r.diff=-r.padding;let R=r.height,N=r.x-A/2,L=r.y-R/2;Ze.trace("Data ",r,JSON.stringify(r));let B;if(r.look==="handDrawn"){let F=cn.svg(v),H=ga(r,{roughness:0.7,fill:l,stroke:h,fillWeight:4,seed:o}),W=F.path(X_(N,L,A,R,r.rx),H);B=v.insert(()=>(Ze.debug("Rough node insert CXC",W),W),":first-child"),B.select("path:nth-child(2)").attr("style",m.join(";")),B.select("path").attr("style",y.join(";").replace("fill","stroke"))}else B=v.insert("rect",":first-child"),B.attr("style",p).attr("rx",r.rx).attr("ry",r.ry).attr("x",N).attr("y",L).attr("width",A).attr("height",R);let{subGraphTitleTopMargin:D}=xC(i);if(T.attr("transform",`translate(${r.x-k.width/2}, ${r.y-r.height/2+D})`),d){let F=T.select("span");if(F)F.attr("style",d)}let P=B.node().getBBox();return r.offsetX=0,r.width=P.width,r.height=P.height,r.offsetY=k.height-r.padding/2,r.intersect=function(F){return b3(r,F)},{cluster:v,labelBBox:k}},"kanbanSection"),KWn=I((e,r)=>{let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{altBackground:h,nodeBorder:d,borderColorArray:p}=o,m=e.insert("g").attr("class",r.cssClasses).attr("id",r.domId).attr("data-look",r.look);ty(m,r.colorIndex,a,p);let y=m.insert("g",":first-child"),v=0*r.padding,w=r.width+v;r.diff=-r.padding;let T=r.height+v,x=r.x-w/2,k=r.y-T/2;r.width=w;let A;if(r.look==="handDrawn"){let L=cn.svg(m).rectangle(x,k,w,T,{fill:h??"#efefef",fillStyle:"solid",roughness:0.5,strokeLineDash:[5],stroke:d,seed:l});A=m.insert(()=>L,":first-child").attr("class","divider")}else{A=y.insert("rect",":first-child");let N="outer";if(r.look==="neo")N="divider";else N="divider";A.attr("class",N).attr("x",x).attr("y",k).attr("width",w).attr("height",T).attr("data-look",r.look)}let R=A.node().getBBox();return r.height=R.height,r.offsetX=0,r.offsetY=0,r.intersect=function(N){return b3(r,N)},{cluster:m,labelBBox:{}}},"divider"),XWn=I(async(e,r,i)=>{Ze.info(`Creating ${i.cssClass} for `,r.id,r);let a=Ar(),{theme:o,themeVariables:l,handDrawnSeed:h}=a,{borderColorArray:d}=l,{labelStyles:p,borderStyles:m}=fa(r),y=e.insert("g").attr("class","cluster "+i.cssClass+" "+r.cssClasses).attr("id",r.domId??r.id).attr("data-look",r.look);ty(y,r.colorIndex,o,d);let v=Mp(a),w=y.insert("g").attr("class","cluster-label"),T={width:0,height:0},x=r.label?.trim();if(x){let D;if(r.labelType==="markdown")D=await ug(w,r.label,{style:r.labelStyle,useHtmlLabels:v,isNode:!0,width:r.width});else D=await TC(w,r.label,r.labelStyle||"",!1,!0);if(T=D.getBBox(),v){let P=D.children[0],F=xn(D);T=P.getBoundingClientRect(),F.attr("width",T.width),F.attr("height",T.height)}}let k=r.width<=T.width+r.padding?T.width+r.padding:r.width;if(r.width<=T.width+r.padding)r.diff=(k-r.width)/2-r.padding;else r.diff=-r.padding;let A=r.height,R=r.x-k/2,N=r.y-A/2,L;if(r.look==="handDrawn"){let D=cn.svg(y),P=ga(r,{roughness:i.roughness,fill:i.fill,stroke:i.stroke,strokeWidth:i.strokeWidth,seed:h,...i.fill==="none"?{fillWeight:0}:{fillStyle:"solid"},...i.strokeDash?{strokeLineDash:i.strokeDash}:{}}),F=D.path(X_(R,N,k,A,i.rx),P);L=y.insert(()=>F,":first-child"),L.select("path:nth-child(2)").attr("style",m.join(";"))}else if(L=y.insert("rect",":first-child"),L.attr("rx",i.rx).attr("ry",i.rx).attr("x",R).attr("y",N).attr("width",k).attr("height",A).attr("fill",i.fill).attr("stroke",i.stroke).attr("stroke-width",i.strokeWidth+"px"),i.strokeDash)L.attr("stroke-dasharray",i.strokeDash.join(", "));if(x){let{subGraphTitleTopMargin:D}=xC(a);if(w.attr("transform",`translate(${r.x-T.width/2}, ${r.y-r.height/2+D})`),p){let P=w.select("span");if(P)P.attr("style",p)}}let B=L.node().getBBox();return r.offsetX=0,r.width=B.width,r.height=B.height,r.offsetY=T.height-r.padding/2,r.intersect=function(D){return b3(r,D)},{cluster:y,labelBBox:T}},"createContainerGroup"),QWn=I(async(e,r)=>{let{themeVariables:i}=Ar(),a=i.flowContainerStroke||i.secondaryBorderColor;return XWn(e,r,{cssClass:"flow-cluster",rx:10,fill:"none",stroke:a,strokeWidth:0.75,roughness:0.7})},"flowGroup"),ZWn=I((e,r)=>{let i=e.boundaryType||"rect",a=i==="package"?20:e.padding,o=i==="package"?r.height+10:0,l=Math.max(e.width,r.width+a),h=i==="package"?Math.max(e.height,o+e.padding*2):e.height,d=e.x-l/2,p=e.y-h/2;return{boundaryType:i,width:l,height:h,x:d,y:p,bodyY:p+o,bodyHeight:h-o,tabHeight:o,tabWidth:i==="package"?Math.min(l,Math.max(80,r.width+20)):0}},"getUsecaseSystemBoundaryGeometry"),JWn=I(async(e,r)=>{Ze.info("Creating usecase system boundary for ",r.id,r);let i=Ar(),{theme:a,themeVariables:o,handDrawnSeed:l}=i,{clusterBkg:h,clusterBorder:d,borderColorArray:p}=o,{labelStyles:m,nodeStyles:y}=fa(r),{stylesMap:v}=d3(r),w=r.boundaryType||"rect",T=e.insert("g").attr("class",`cluster usecase-system-boundary usecase-system-boundary-${w} ${r.cssClasses}`).attr("id",typeof r.domId==="string"?r.domId:r.id).attr("data-boundary-type",w).attr("data-look",r.look);ty(T,r.colorIndex,a,p);let x=Mp(i),k=T.insert("g").attr("class","cluster-label system-boundary-title"),A=await ug(k,r.label,{style:m,useHtmlLabels:x,isNode:!0}),R=A.getBBox();if(x){let K=A.children[0],J=xn(A);R=K.getBoundingClientRect(),J.attr("width",R.width),J.attr("height",R.height)}let N=ZWn(r,R),{width:L,height:B,x:D,y:P,bodyY:F,bodyHeight:H,tabHeight:W,tabWidth:X}=N;r.diff=r.width<=R.width+r.padding?(L-r.width)/2-r.padding:-r.padding;let Q=ga(r,{fill:v.get("fill")||h,stroke:v.get("stroke")||d,strokeWidth:v.get("stroke-width")?.replace("px","")||1,seed:l});if(r.look==="handDrawn"){let K=cn.svg(T),J=K.rectangle(D,F,L,H,Q);if(T.insert(()=>J,":first-child").attr("class","boundary-body label-container"),w==="package"){let Z=K.rectangle(D,P,X,W,Q);T.insert(()=>Z,":first-child").attr("class","boundary-tab system-boundary-package-tab label-container")}}else if(T.insert("rect",":first-child").attr("class","boundary-body label-container").attr("style",y).attr("x",D).attr("y",F).attr("width",L).attr("height",H),w==="package")T.insert("rect",":first-child").attr("class","boundary-tab system-boundary-package-tab label-container").attr("style",y).attr("x",D).attr("y",P).attr("width",X).attr("height",W);let{subGraphTitleTopMargin:Y}=xC(i);if(w==="package")k.attr("transform",`translate(${D+(X-R.width)/2}, ${P+(W-R.height)/2})`);else k.attr("transform",`translate(${r.x-R.width/2}, ${P+Y})`);if(m)k.attr("style",m),k.select("span").attr("style",m);return r.offsetX=0,r.width=L,r.height=B,r.offsetY=R.height-r.padding/2,r.labelBBox=R,r.intersect=function(K){return b3(r,K)},{cluster:T,labelBBox:R}},"usecaseSystemBoundary"),ejn=WCr,tjn={rect:WCr,squareRect:ejn,roundedWithTitle:WWn,noteGroup:YWn,divider:KWn,kanbanSection:jWn,flowGroup:QWn,usecaseSystemBoundary:JWn,swimlane:qWn},rjn=new Set(["noteGroup","divider"]),jtt=I((e)=>!rjn.has(e??"rect"),"clusterPaintsTitle"),jCr=new Map,CL=I(async(e,r)=>{let i=r.shape||"rect",a=await tjn[i](e,r);return jCr.set(r.id,a),a},"insertCluster"),KCr=I(()=>{jCr=new Map},"clear")});function Qne(e,r){if(e===void 0||r===void 0)return{angle:0,deltaX:0,deltaY:0};e=yf(e),r=yf(r);let[i,a]=[e.x,e.y],[o,l]=[r.x,r.y],h=o-i,d=l-a;return{angle:Math.atan(d/h),deltaX:h,deltaY:d}}function Zne(e,r,i){e.terminalLabelSizes??={},e.terminalLabelSizes[r]={width:i.width,height:i.height}}function Jne(e,r,i){if(Mp(Ar())&&e)e.style.width=Math.max(r.length*9,i.width)+"px",e.style.height=i.height+"px"}function e4r(e){let r=[],i=[];for(let a=1;a5&&Math.abs(l.y-o.y)>5)r.push(l),i.push(a);else if(o.y===l.y&&l.x===h.x&&Math.abs(l.x-o.x)>5&&Math.abs(l.y-h.y)>5)r.push(l),i.push(a)}return{cornerPoints:r,cornerPointPositions:i}}function t4r(e,r){if(e.length<2)return"";let i="",a=e.length,o=0.00001;for(let l=0;l({...o}));if(e.length>=2&&O0[r.arrowTypeStart]){let o=O0[r.arrowTypeStart],l=e[0],h=e[1],{angle:d}=Ktt(l,h),p=o*Math.cos(d),m=o*Math.sin(d);i[0].x=l.x+p,i[0].y=l.y+m}let a=e.length;if(a>=2&&O0[r.arrowTypeEnd]){let o=O0[r.arrowTypeEnd],l=e[a-1],h=e[a-2],{angle:d}=Ktt(h,l),p=o*Math.cos(d),m=o*Math.sin(d);i[a-1].x=l.x-p,i[a-1].y=l.y-m}return i}var Kne,O0,gwe,yf,njn,ijn,ajn,sjn,XCr,ojn,JP,im,JCr,Xtt,Xne,E3,Qtt,UH,ljn,cjn,ujn,QCr,ZCr,hjn,djn,kL,fjn,pjn,gjn,mjn,bjn,yjn,vjn,_jn,Ejn,wjn,Sjn,Tjn,xjn,Cjn,kjn,Ajn,Rjn,Ijn,Ojn,Njn,Ljn,Mjn,Djn,Pjn,Bjn,GH;var Qm=Re(()=>{dg();ip();R0();Bp();Ql();eo();Zs();Ja();dl();Na();Kne=I((e,r)=>{if(r)return"translate("+-e.width/2+", "+-e.height/2+")";let i=e.x??0,a=e.y??0;return"translate("+-(i+e.width/2)+", "+-(a+e.height/2)+")"},"computeLabelTransform"),O0={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},gwe={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};I(Qne,"calculateDeltaAndAngle");yf=I((e)=>{if(Array.isArray(e))return{x:e[0],y:e[1]};return e},"pointTransformer"),njn=I((e)=>({x:I(function(r,i,a){let o=0,l=yf(a[0]).x=0?1:-1)}else if(i===a.length-1&&Object.hasOwn(O0,e.arrowTypeEnd)){let{angle:T,deltaX:x}=Qne(a[a.length-1],a[a.length-2]);o=O0[e.arrowTypeEnd]*Math.cos(T)*(x>=0?1:-1)}let h=Math.abs(yf(r).x-yf(a[a.length-1]).x),d=Math.abs(yf(r).y-yf(a[a.length-1]).y),p=Math.abs(yf(r).x-yf(a[0]).x),m=Math.abs(yf(r).y-yf(a[0]).y),y=O0[e.arrowTypeStart],v=O0[e.arrowTypeEnd],w=1;if(h0&&d0&&m=0?1:-1)}else if(i===a.length-1&&Object.hasOwn(O0,e.arrowTypeEnd)){let{angle:T,deltaY:x}=Qne(a[a.length-1],a[a.length-2]);o=O0[e.arrowTypeEnd]*Math.abs(Math.sin(T))*(x>=0?1:-1)}let h=Math.abs(yf(r).y-yf(a[a.length-1]).y),d=Math.abs(yf(r).x-yf(a[a.length-1]).x),p=Math.abs(yf(r).y-yf(a[0]).y),m=Math.abs(yf(r).x-yf(a[0]).x),y=O0[e.arrowTypeStart],v=O0[e.arrowTypeEnd],w=1;if(h0&&d0&&m{if(r.arrowTypeStart)XCr(e,"start",r.arrowTypeStart,i,a,o,l,h);if(r.arrowTypeEnd)XCr(e,"end",r.arrowTypeEnd,i,a,o,l,h)},"addEdgeMarkers"),ajn={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},sjn=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],XCr=I((e,r,i,a,o,l,h=!1,d)=>{if(!i||i==="none")return;let p=ajn[i],m=p&&sjn.includes(p.type);if(!p){Ze.warn(`Unknown arrow type: ${i}`);return}let y=p.type,T=`${o}_${l}-${y}${r==="start"?"Start":"End"}${h&&m?"-margin":""}`;if(d&&d.trim()!==""){let x=d.replace(/[^\dA-Za-z]/g,"_"),k=`${T}_${x}`;if(!document.getElementById(k)){let A=document.getElementById(T);if(A){let R=A.cloneNode(!0);R.id=k,R.querySelectorAll("path, circle, line").forEach((L)=>{if(L.setAttribute("stroke",d),p.fill)L.setAttribute("fill",d)}),A.parentNode?.appendChild(R)}}e.attr(`marker-${r}`,`url(${a}#${k})`)}else e.attr(`marker-${r}`,`url(${a}#${T})`)},"addEdgeMarker"),ojn=I((e)=>typeof e==="string"?e:Ar()?.flowchart?.curve,"resolveEdgeCurveType"),JP=new Map,im=new Map,JCr=I(()=>{JP.clear(),im.clear()},"clear"),Xtt=I((e)=>Boolean(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),Xne=I((e)=>{if(!e)return"";if(typeof e==="string")return e;return e.reduce((r,i)=>r+";"+i,"")},"getLabelStyles"),E3=I(async(e,r)=>{let i=Ar(),a=Mp(i),{labelStyles:o}=fa(r);r.labelStyle=o;let l=e.insert("g").attr("class","edgeLabel"),h=l.insert("g").attr("class","label").attr("data-id",r.id),d=r.labelType==="markdown",p=void 0,m=await ug(e,r.label,{style:Xne(r.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:d,width:d?p:void 0},i);h.node().appendChild(m),Ze.info("abc82",r,r.labelType);let y,v;if(a){let T=m.children[0],x=xn(m);y=await VR.measure(()=>T.getBoundingClientRect()),v=y,x.attr("width",y.width),x.attr("height",y.height)}else{let T=xn(m).select("text").node();await VR.measure(()=>{if(y=m.getBBox(),T&&typeof T.getBBox==="function")v=T.getBBox();else v=y})}h.attr("transform",Kne(v,a)),JP.set(r.id,l),r.width=y.width,r.height=y.height;let w;if(r.startLabelLeft){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await TC(x,r.startLabelLeft,Xne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Kne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).startLeft=T,Jne(w,r.startLabelLeft,A),Zne(r,"startLeft",A)}if(r.startLabelRight){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await TC(x,r.startLabelRight,Xne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Kne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).startRight=T,Jne(w,r.startLabelRight,A),Zne(r,"startRight",A)}if(r.endLabelLeft){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await TC(x,r.endLabelLeft,Xne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Kne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).endLeft=T,Jne(w,r.endLabelLeft,A),Zne(r,"endLeft",A)}if(r.endLabelRight){let T=e.insert("g").attr("class","edgeTerminals"),x=T.insert("g").attr("class","inner"),k=await TC(x,r.endLabelRight,Xne(r.labelStyle)||"",!1,!1);w=k;let A=k.getBBox();if(a){let R=k.children[0],N=xn(k);A=R.getBoundingClientRect(),N.attr("width",A.width),N.attr("height",A.height)}if(x.attr("transform",Kne(A,a)),!im.get(r.id))im.set(r.id,{});im.get(r.id).endRight=T,Jne(w,r.endLabelRight,A),Zne(r,"endRight",A)}return m},"insertEdgeLabel");I(Zne,"recordTerminalLabelSize");I(Jne,"setTerminalWidth");Qtt=I((e,r)=>{let{x:i,y:a}=e;if(r?.updatedPath){let o=Ts.calcLabelPosition(r.updatedPath);if(r.originalPath){let l=Ts.calcLabelPosition(r.originalPath);i=e.x+(o.x-l.x),a=e.y+(o.y-l.y)}else i=o.x,a=o.y}return{x:i,y:a}},"resolveEdgeLabelPosition"),UH=I((e,r)=>{Ze.debug("Moving label abc88 ",e.id,e.label,JP.get(e.id),r);let i=Ar(),{subGraphTitleTotalMargin:a}=xC(i);if(e.label){let l=JP.get(e.id),{x:h,y:d}=Qtt(e,r);Ze.debug("Moving label "+e.label+" from (",e.x,",",e.y,") to (",h,",",d,") abc88"),l.attr("transform",`translate(${h}, ${d+a/2})`)}let o=r.updatedPath?r.updatedPath:r.originalPath;if(e.startLabelLeft){let l=im.get(e.id).startLeft,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}if(e.startLabelRight){let l=im.get(e.id).startRight,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}if(e.endLabelLeft){let l=im.get(e.id).endLeft,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}if(e.endLabelRight){let l=im.get(e.id).endRight,{x:h,y:d}=e;if(o){let p=Ts.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",o);h=p.x,d=p.y}l.attr("transform",`translate(${h}, ${d})`)}},"positionEdgeLabel"),ljn=I((e,r)=>{if(!e?.isLabelEdge||!e?.id?.endsWith("-to-label")||!Array.isArray(r))return r;if(r.length!==2)return r;let[i,a]=r,o=Math.abs(a.x-i.x),l=Math.abs(a.y-i.y);if(o<0.001||l<0.001)return r;if(l>=o)return[i,{x:i.x,y:a.y},a];return[i,{x:a.x,y:i.y},a]},"orthogonalizeToLabelClippedPoints"),cjn=I((e,r)=>{let{x:i,y:a}=e,o=Math.abs(r.x-i),l=Math.abs(r.y-a),h=e.width/2,d=e.height/2;return o>=h||l>=d},"outsideNode"),ujn=I((e,r,i)=>{Ze.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(r)} insidePoint : ${JSON.stringify(i)} - node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let{x:a,y:o}=e,l=Math.abs(a-i.x),h=e.width/2,d=i.xMath.abs(a-r.x)*p){let E=i.y{Ze.warn("abc88 cutPathAtIntersect",e,r);let i=[],a=e[0],o=!1;return e.forEach((l)=>{if(Ze.info("abc88 checking point",l,r),!njn(r,l)&&!o){let h=ijn(r,a,l);Ze.debug("abc88 inside",l,a,h),Ze.debug("abc88 intersection",h,r);let d=!1;if(i.forEach((p)=>{d=d||p.x===h.x&&p.y===h.y}),!i.some((p)=>p.x===h.x&&p.y===h.y))i.push(h);else Ze.warn("abc88 no intersect",h,i);o=!0}else if(Ze.warn("abc88 outside",l,a),a=l,!o)i.push(l)}),Ze.debug("returning points",i),i},"cutPathAtIntersect");I(KCr,"extractCornerPoints");WCr=I(function(e,r,i){let a=r.x-e.x,o=r.y-e.y,l=Math.sqrt(a*a+o*o),h=i/l;return{x:r.x-h*a,y:r.y-h*o}},"findAdjacentPoint"),ajn=I(function(e){let{cornerPointPositions:r}=KCr(e),i=[];for(let a=0;a10&&Math.abs(l.y-o.y)>=10){Ze.debug("Corner point fixing",Math.abs(l.x-o.x),Math.abs(l.y-o.y));let T=5;if(h.x===d.x)w={x:m<0?d.x-T+E:d.x+T-E,y:y<0?d.y-E:d.y+E};else w={x:m<0?d.x-E:d.x+E,y:y<0?d.y-T+E:d.y+T-E}}else Ze.debug("Corner point skipping fixing",Math.abs(l.x-o.x),Math.abs(l.y-o.y));i.push(w,p)}else i.push(e[a]);return i},"fixCorners"),sjn=I((e,r,i)=>{let a=e-r-i,o=2,l=2,h=4,d=Math.floor(a/4),p=Number.isFinite(d)?Math.max(0,d):0,m=Array(p).fill("2 2").join(" ");return`0 ${r} ${m} ${i}`},"generateDashArray"),xL=I(function(e,r,i,a,o,l,h,d=!1,p=void 0){if(!h)throw Error(`insertEdge: missing diagramId for edge "${r.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:m,layout:y}=Ar(),E=p??y,w=r.points,T=!1,x=o;var k=l;let A=[];for(let ie in r.cssCompiledStyles){if(Tne(ie))continue;A.push(r.cssCompiledStyles[ie])}if(E==="swimlane"){if(!d&&k.intersect&&x.intersect&&Array.isArray(w)&&w.length>=2)if(w.length===2)w=[x.intersect(w[0]),k.intersect(w[1])];else{let ie=w.slice(1,-1),le=ie[0],se=ie[ie.length-1],he=0.5,ye=Math.abs(w[w.length-1].x-se.x)<0.5&&Math.abs(w[w.length-1].y-se.y)<0.5,xe=x.intersect(le),Ie=ye?se:k.intersect(se),Ee=Math.abs(Ie.x-se.x)<0.5&&Math.abs(Ie.y-se.y)<0.5,Me=Math.abs(xe.x-le.x)<0.5&&Math.abs(xe.y-le.y)<0.5?[]:[xe],Xe=Ee?[]:[Ie];w=[...Me,...ie,...Xe]}w=rjn(r,w)}else if(k.intersect&&x.intersect&&!d)w=w.slice(1,r.points.length-1),w.unshift(x.intersect(w[0])),w.push(k.intersect(w[w.length-1]));let R=btoa(JSON.stringify(w));if(r.toCluster)Ze.info("to cluster abc88",i.get(r.toCluster)),w=YCr(r.points,i.get(r.toCluster).node),T=!0;if(r.fromCluster)Ze.debug("from cluster abc88",i.get(r.fromCluster),JSON.stringify(w,null,2)),w=YCr(w.reverse(),i.get(r.fromCluster).node).reverse(),T=!0;let N=w.filter((ie)=>!Number.isNaN(ie.y)),L=tjn(r.curve);if(L!=="rounded")N=ajn(N);let B=YS;switch(L){case"linear":B=YS;break;case"basis":B=VP;break;case"cardinal":B=mne;break;case"bumpX":B=dne;break;case"bumpY":B=fne;break;case"catmullRom":B=vne;break;case"monotoneX":B=_ne;break;case"monotoneY":B=Ene;break;case"natural":B=bH;break;case"step":B=yH;break;case"stepAfter":B=Sne;break;case"stepBefore":B=wne;break;case"rounded":B=YS;break;default:B=VP}let{x:D,y:P}=QWn(r),F=zP().x(D).y(P).curve(B),H;switch(r.thickness){case"normal":H="edge-thickness-normal";break;case"thick":H="edge-thickness-thick";break;case"invisible":H="edge-thickness-invisible";break;default:H="edge-thickness-normal"}switch(r.pattern){case"solid":H+=" edge-pattern-solid";break;case"dotted":H+=" edge-pattern-dotted";break;case"dashed":H+=" edge-pattern-dashed";break;default:H+=" edge-pattern-solid"}let K,Q=L==="rounded"?XCr(QCr(N,r),5):F(N),Z=Array.isArray(r.style)?r.style:[r.style],Y=Z.find((ie)=>ie?.startsWith("stroke:")),j="";if(r.animate)j="edge-animation-fast";if(r.animation)j="edge-animation-"+r.animation;let te=!1;if(r.look==="handDrawn"){let ie=ln.svg(e);Object.assign([],N);let le=ie.path(Q,{roughness:0.3,seed:m});H+=" transition",K=xn(le).select("path").attr("id",`${h}-${r.id}`).attr("class"," "+H+(r.classes?" "+r.classes:"")+(j?" "+j:"")).attr("style",Z?Z.reduce((he,ye)=>he+";"+ye,""):"");let se=K.attr("d");K.attr("d",se),e.node().appendChild(K.node())}else{let ie=A.join(";"),le=Z?Z.reduce((Ee,Ue)=>Ee+Ue+";",""):"",se=(ie?ie+";"+le+";":le)+";"+(Z?Z.reduce((Ee,Ue)=>Ee+";"+Ue,""):"");K=e.append("path").attr("d",Q).attr("id",`${h}-${r.id}`).attr("class"," "+H+(r.classes?" "+r.classes:"")+(j?" "+j:"")).attr("style",se),Y=se.match(/stroke:([^;]+)/)?.[1],te=r.animate===!0||!!r.animation||ie.includes("animation");let he=K.node(),ye=typeof he.getTotalLength==="function"?he.getTotalLength():0,xe=dwe[r.arrowTypeStart]||0,Ie=dwe[r.arrowTypeEnd]||0;if(r.look==="neo"&&!te){let Ue=`stroke-dasharray: ${r.pattern==="dotted"||r.pattern==="dashed"?sjn(ye,xe,Ie):`0 ${xe} ${ye-xe-Ie} ${Ie}`}; stroke-dashoffset: 0;`;K.attr("style",Ue+K.attr("style"))}}if(K.attr("data-edge",!0),K.attr("data-et","edge"),K.attr("data-id",r.id),K.attr("data-points",R),K.attr("data-look",np(r.look)),r.showPoints)N.forEach((ie)=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",ie.x).attr("cy",ie.y)});let X="";if(Ar().flowchart.arrowMarkerAbsolute||Ar().state.arrowMarkerAbsolute)X=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,X=X.replace(/\(/g,"\\(").replace(/\)/g,"\\)");Ze.info("arrowTypeStart",r.arrowTypeStart),Ze.info("arrowTypeEnd",r.arrowTypeEnd);let W=!te&&r?.look==="neo";ZWn(K,r,X,h,a,W,Y);let J=Math.floor(w.length/2),z=w[J];if(!Ts.isLabelCoordinateInPath(z,K.attr("d")))T=!0;let ne={};if(T)ne.updatedPath=w;return ne.originalPath=r.points,ne},"insertEdge");I(XCr,"generateRoundedPath");I(Ytt,"calculateDeltaAndAngle");I(QCr,"applyMarkerOffsetsToPoints");ojn=I((e,r,i,a)=>{r.forEach((o)=>{Ojn[o](e,i,a)})},"insertMarkers"),ljn=I((e,r,i)=>{Ze.trace("Making markers for ",i),e.append("defs").append("marker").attr("id",i+"_"+r+"-extensionStart").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",i+"_"+r+"-extensionStart-margin").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",i+"_"+r+"-extensionEnd-margin").attr("class","marker extension "+r).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),cjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionStart-margin").attr("class","marker composition "+r).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionEnd-margin").attr("class","marker composition "+r).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),ujn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationStart-margin").attr("class","marker aggregation "+r).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationEnd-margin").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),hjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyStart-margin").attr("class","marker dependency "+r).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyEnd-margin").attr("class","marker dependency "+r).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),djn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopStart-margin").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopEnd-margin").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),fjn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-pointEnd-margin").attr("class","marker "+r).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-pointStart-margin").attr("class","marker "+r).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),pjn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-circleEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-circleEnd-margin").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-circleStart-margin").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),gjn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-crossEnd").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-crossEnd-margin").attr("class","marker cross "+r).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",i+"_"+r+"-crossStart-margin").attr("class","marker cross "+r).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),mjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),bjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{transitionColor:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${l}`)},"barbNeo"),yjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneStart").attr("class","marker onlyOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneEnd").attr("class","marker onlyOne "+r).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),vjn=I((e,r,i)=>{let a=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneStart").attr("class","marker zeroOrOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let o=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+r).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),_jn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreStart").attr("class","marker oneOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreEnd").attr("class","marker oneOrMore "+r).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Ejn=I((e,r,i)=>{let a=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+r).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),wjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneStart").attr("class","marker onlyOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${l}`),e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneEnd").attr("class","marker onlyOne "+r).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${l}`)},"only_one_neo"),Sjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l,mainBkg:h}=o,d=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneStart").attr("class","marker zeroOrOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",h??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${l}`).attr("r",6),d.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${l}`);let p=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+r).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");p.append("circle").attr("fill",h??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${l}`).attr("r",6),p.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${l}`)},"zero_or_one_neo"),Tjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreStart").attr("class","marker oneOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${l}`),e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreEnd").attr("class","marker oneOrMore "+r).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${l}`)},"one_or_more_neo"),xjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l,mainBkg:h}=o,d=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",h??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${l}`),d.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${l}`);let p=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+r).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");p.append("circle").attr("fill",h??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${l}`),p.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${l}`)},"zero_or_more_neo"),Cjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 + node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let{x:a,y:o}=e,l=Math.abs(a-i.x),h=e.width/2,d=i.xMath.abs(a-r.x)*p){let v=i.y{Ze.warn("abc88 cutPathAtIntersect",e,r);let i=[],a=e[0],o=!1;return e.forEach((l)=>{if(Ze.info("abc88 checking point",l,r),!cjn(r,l)&&!o){let h=ujn(r,a,l);Ze.debug("abc88 inside",l,a,h),Ze.debug("abc88 intersection",h,r);let d=!1;if(i.forEach((p)=>{d=d||p.x===h.x&&p.y===h.y}),!i.some((p)=>p.x===h.x&&p.y===h.y))i.push(h);else Ze.warn("abc88 no intersect",h,i);o=!0}else if(Ze.warn("abc88 outside",l,a),a=l,!o)i.push(l)}),Ze.debug("returning points",i),i},"cutPathAtIntersect");I(e4r,"extractCornerPoints");ZCr=I(function(e,r,i){let a=r.x-e.x,o=r.y-e.y,l=Math.sqrt(a*a+o*o),h=i/l;return{x:r.x-h*a,y:r.y-h*o}},"findAdjacentPoint"),hjn=I(function(e){let{cornerPointPositions:r}=e4r(e),i=[];for(let a=0;a10&&Math.abs(l.y-o.y)>=10){Ze.debug("Corner point fixing",Math.abs(l.x-o.x),Math.abs(l.y-o.y));let T=5;if(h.x===d.x)w={x:m<0?d.x-T+v:d.x+T-v,y:y<0?d.y-v:d.y+v};else w={x:m<0?d.x-v:d.x+v,y:y<0?d.y-T+v:d.y+T-v}}else Ze.debug("Corner point skipping fixing",Math.abs(l.x-o.x),Math.abs(l.y-o.y));i.push(w,p)}else i.push(e[a]);return i},"fixCorners"),djn=I((e,r,i)=>{let a=e-r-i,o=2,l=2,h=4,d=Math.floor(a/4),p=Number.isFinite(d)?Math.max(0,d):0,m=Array(p).fill("2 2").join(" ");return`0 ${r} ${m} ${i}`},"generateDashArray"),kL=I(function(e,r,i,a,o,l,h,d=!1,p=void 0){if(!h)throw Error(`insertEdge: missing diagramId for edge "${r.id}" — edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:m,layout:y}=Ar(),v=p??y,w=r.points,T=!1,x=o;var k=l;let A=[];for(let ie in r.cssCompiledStyles){if(kne(ie))continue;A.push(r.cssCompiledStyles[ie])}if(v==="swimlane"){if(!d&&k.intersect&&x.intersect&&Array.isArray(w)&&w.length>=2)if(w.length===2)w=[x.intersect(w[0]),k.intersect(w[1])];else{let ie=w.slice(1,-1),se=ie[0],oe=ie[ie.length-1],he=0.5,ye=Math.abs(w[w.length-1].x-oe.x)<0.5&&Math.abs(w[w.length-1].y-oe.y)<0.5,Se=x.intersect(se),Ie=ye?oe:k.intersect(oe),Ee=Math.abs(Ie.x-oe.x)<0.5&&Math.abs(Ie.y-oe.y)<0.5,Me=Math.abs(Se.x-se.x)<0.5&&Math.abs(Se.y-se.y)<0.5?[]:[Se],Xe=Ee?[]:[Ie];w=[...Me,...ie,...Xe]}w=ljn(r,w)}else if(k.intersect&&x.intersect&&!d)w=w.slice(1,r.points.length-1),w.unshift(x.intersect(w[0])),w.push(k.intersect(w[w.length-1]));let R=btoa(JSON.stringify(w));if(r.toCluster)Ze.info("to cluster abc88",i.get(r.toCluster)),w=QCr(r.points,i.get(r.toCluster).node),T=!0;if(r.fromCluster)Ze.debug("from cluster abc88",i.get(r.fromCluster),JSON.stringify(w,null,2)),w=QCr(w.reverse(),i.get(r.fromCluster).node).reverse(),T=!0;let N=w.filter((ie)=>!Number.isNaN(ie.y)),L=ojn(r.curve);if(L!=="rounded")N=hjn(N);let B=WS;switch(L){case"linear":B=WS;break;case"basis":B=qP;break;case"cardinal":B=vne;break;case"bumpX":B=gne;break;case"bumpY":B=mne;break;case"catmullRom":B=wne;break;case"monotoneX":B=Sne;break;case"monotoneY":B=Tne;break;case"natural":B=_H;break;case"step":B=EH;break;case"stepAfter":B=Cne;break;case"stepBefore":B=xne;break;case"rounded":B=WS;break;default:B=qP}let{x:D,y:P}=njn(r),F=HP().x(D).y(P).curve(B),H;switch(r.thickness){case"normal":H="edge-thickness-normal";break;case"thick":H="edge-thickness-thick";break;case"invisible":H="edge-thickness-invisible";break;default:H="edge-thickness-normal"}switch(r.pattern){case"solid":H+=" edge-pattern-solid";break;case"dotted":H+=" edge-pattern-dotted";break;case"dashed":H+=" edge-pattern-dashed";break;default:H+=" edge-pattern-solid"}let W,X=L==="rounded"?t4r(r4r(N,r),5):F(N),Q=Array.isArray(r.style)?r.style:[r.style],Y=Q.find((ie)=>ie?.startsWith("stroke:")),K="";if(r.animate)K="edge-animation-fast";if(r.animation)K="edge-animation-"+r.animation;let J=!1;if(r.look==="handDrawn"){let ie=cn.svg(e);Object.assign([],N);let se=ie.path(X,{roughness:0.3,seed:m});H+=" transition",W=xn(se).select("path").attr("id",`${h}-${r.id}`).attr("class"," "+H+(r.classes?" "+r.classes:"")+(K?" "+K:"")).attr("style",Q?Q.reduce((he,ye)=>he+";"+ye,""):"");let oe=W.attr("d");W.attr("d",oe),e.node().appendChild(W.node())}else{let ie=A.join(";"),se=Q?Q.reduce((Ee,ze)=>Ee+ze+";",""):"",oe=(ie?ie+";"+se+";":se)+";"+(Q?Q.reduce((Ee,ze)=>Ee+";"+ze,""):"");W=e.append("path").attr("d",X).attr("id",`${h}-${r.id}`).attr("class"," "+H+(r.classes?" "+r.classes:"")+(K?" "+K:"")).attr("style",oe),Y=oe.match(/stroke:([^;]+)/)?.[1],J=r.animate===!0||!!r.animation||ie.includes("animation");let he=W.node(),ye=typeof he.getTotalLength==="function"?he.getTotalLength():0,Se=gwe[r.arrowTypeStart]||0,Ie=gwe[r.arrowTypeEnd]||0;if(r.look==="neo"&&!J){let ze=`stroke-dasharray: ${r.pattern==="dotted"||r.pattern==="dashed"?djn(ye,Se,Ie):`0 ${Se} ${ye-Se-Ie} ${Ie}`}; stroke-dashoffset: 0;`;W.attr("style",ze+W.attr("style"))}}if(W.attr("data-edge",!0),W.attr("data-et","edge"),W.attr("data-id",r.id),W.attr("data-points",R),W.attr("data-look",np(r.look)),r.showPoints)N.forEach((ie)=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",ie.x).attr("cy",ie.y)});let Z="";if(Ar().flowchart.arrowMarkerAbsolute||Ar().state.arrowMarkerAbsolute)Z=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Z=Z.replace(/\(/g,"\\(").replace(/\)/g,"\\)");Ze.info("arrowTypeStart",r.arrowTypeStart),Ze.info("arrowTypeEnd",r.arrowTypeEnd);let j=!J&&r?.look==="neo";ijn(W,r,Z,h,a,j,Y);let ee=Math.floor(w.length/2),z=w[ee];if(!Ts.isLabelCoordinateInPath(z,W.attr("d")))T=!0;let ne={};if(T)ne.updatedPath=w;return ne.originalPath=r.points,ne},"insertEdge");I(t4r,"generateRoundedPath");I(Ktt,"calculateDeltaAndAngle");I(r4r,"applyMarkerOffsetsToPoints");fjn=I((e,r,i,a)=>{r.forEach((o)=>{Bjn[o](e,i,a)})},"insertMarkers"),pjn=I((e,r,i)=>{Ze.trace("Making markers for ",i),e.append("defs").append("marker").attr("id",i+"_"+r+"-extensionStart").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",i+"_"+r+"-extensionStart-margin").attr("class","marker extension "+r).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",i+"_"+r+"-extensionEnd-margin").attr("class","marker extension "+r).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),gjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionStart-margin").attr("class","marker composition "+r).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-compositionEnd-margin").attr("class","marker composition "+r).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),mjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationStart-margin").attr("class","marker aggregation "+r).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-aggregationEnd-margin").attr("class","marker aggregation "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),bjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyStart-margin").attr("class","marker dependency "+r).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-dependencyEnd-margin").attr("class","marker dependency "+r).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),yjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopStart-margin").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",i+"_"+r+"-lollipopEnd-margin").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),vjn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-pointEnd-margin").attr("class","marker "+r).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-pointStart-margin").attr("class","marker "+r).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),_jn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-circleEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-circleEnd-margin").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-circleStart-margin").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Ejn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-crossEnd").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",i+"_"+r+"-crossEnd-margin").attr("class","marker cross "+r).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",i+"_"+r+"-crossStart-margin").attr("class","marker cross "+r).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),wjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Sjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{transitionColor:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",i+"_"+r+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${l}`)},"barbNeo"),Tjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneStart").attr("class","marker onlyOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneEnd").attr("class","marker onlyOne "+r).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),xjn=I((e,r,i)=>{let a=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneStart").attr("class","marker zeroOrOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let o=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+r).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Cjn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreStart").attr("class","marker oneOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreEnd").attr("class","marker oneOrMore "+r).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),kjn=I((e,r,i)=>{let a=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+r).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Ajn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneStart").attr("class","marker onlyOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${l}`),e.append("defs").append("marker").attr("id",i+"_"+r+"-onlyOneEnd").attr("class","marker onlyOne "+r).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${l}`)},"only_one_neo"),Rjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l,mainBkg:h}=o,d=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneStart").attr("class","marker zeroOrOne "+r).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",h??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${l}`).attr("r",6),d.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${l}`);let p=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+r).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");p.append("circle").attr("fill",h??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${l}`).attr("r",6),p.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${l}`)},"zero_or_one_neo"),Ijn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreStart").attr("class","marker oneOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${l}`),e.append("defs").append("marker").attr("id",i+"_"+r+"-oneOrMoreEnd").attr("class","marker oneOrMore "+r).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${l}`)},"one_or_more_neo"),Ojn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l,mainBkg:h}=o,d=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+r).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",h??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${l}`),d.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${l}`);let p=e.append("defs").append("marker").attr("id",i+"_"+r+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+r).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");p.append("circle").attr("fill",h??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${l}`),p.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${l}`)},"zero_or_more_neo"),Njn=I((e,r,i)=>{e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0 L20,10 M20,10 - L0,20`)},"requirement_arrow"),kjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${l}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 + L0,20`)},"requirement_arrow"),Ljn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o;e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${l}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0 L20,10 M20,10 - L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Ajn=I((e,r,i)=>{let a=e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Rjn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o,h=e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");h.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),h.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),h.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),h.selectAll("*").attr("stroke-width",`${l}`)},"requirement_contains_neo"),Ijn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-hierarchyEnd").attr("class","marker hierarchy "+r).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",i+"_"+r+"-hierarchyStart").attr("class","marker hierarchy "+r).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),Ojn={extension:ljn,composition:cjn,aggregation:ujn,dependency:hjn,lollipop:djn,point:fjn,circle:pjn,cross:gjn,barb:mjn,barbNeo:bjn,hierarchy:Ijn,only_one:yjn,zero_or_one:vjn,one_or_more:_jn,zero_or_more:Ejn,only_one_neo:wjn,zero_or_one_neo:Sjn,one_or_more_neo:Tjn,zero_or_more_neo:xjn,requirement_arrow:Cjn,requirement_contains:Ajn,requirement_arrow_neo:kjn,requirement_contains_neo:Rjn},FH=ojn});function mwe(e){let r=[];for(let i=0;i=1-pwe||w<=pwe||w>=1-pwe)return null;return{point:{x:e.x+E*o,y:e.y+E*l},tA:E,tB:w}}function Ktt(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function Xtt(e,r,i){if(e.curve!=="rounded")return!1;let a=e.points,o=a[r],l=a[r+1];if(!o||!l)return!1;let h=Math.hypot(l.x-o.x,l.y-o.y),d=i*h,p=r>0?Qne(a[r-1],o,l,gwe):null;if(p&&d=Math.abs(i))return r>=0?1:0;return i>=0?1:0}function t4r(e,r){if(e.length<2)return e.map((l)=>({...l}));let i=e.map((l)=>({...l})),a=r.arrowTypeStart&&O0[r.arrowTypeStart];if(a){let l=e[0],h=e[1],d=Math.atan2(h.y-l.y,h.x-l.x);i[0].x=l.x+a*Math.cos(d),i[0].y=l.y+a*Math.sin(d)}let o=r.arrowTypeEnd&&O0[r.arrowTypeEnd];if(o){let l=e.length,h=e[l-2],d=e[l-1],p=Math.atan2(d.y-h.y,d.x-h.x);i[l-1].x=d.x-o*Math.cos(p),i[l-1].y=d.y-o*Math.sin(p)}return i}function r4r(e,r,i,a,o){let l=e.point.x,h=e.point.y,d={x:l-r*e.r,y:h-i*e.r},p={x:l+r*e.r,y:h+i*e.r},m=[`L${$H(d)}`];if(o==="arc")m.push(`A${TC(e.r)},${TC(e.r)} 0 0 ${a} ${$H(p)}`);else m.push(`M${$H(p)}`);return m}function Qne(e,r,i,a){let o=r.x-e.x,l=r.y-e.y,h=i.x-r.x,d=i.y-r.y,p=Math.hypot(o,l),m=Math.hypot(h,d);if(p0){let B=Qne(o[m-1],o[m],o[m+1]??o[m],gwe);if(B)k=B.cutLen}let A=E,R=null;if(l&&mB.t-D.t).filter((B)=>{let D=Math.min(B.d-k,A-B.d)-Njn;return B.r=Math.min(B.r,D),B.r>=N});for(let B=0;BD){let P=D/2;L[B].r=Math.min(L[B].r,P),L[B+1].r=Math.min(L[B+1].r,P)}}for(let B of L){if(B.r=2?a:null}catch{return null}}function Zne(e,r,i){if(!i.enabled)return;let a=e.node();if(!a)return;let o=new Map;for(let m of r)o.set(m.id,m);let l=new Map;for(let m of a.querySelectorAll("path[data-id]")){let y=m.getAttribute("data-id");if(y!==null&&!l.has(y))l.set(y,m)}let h=[];for(let m of r){let y=l.get(m.id);if(!y)continue;let w=s4r(y.getAttribute("data-points"))??m.points;h.push({...m,points:w})}let d=JCr(h);if(d.length===0)return;let p=new Map;for(let m of d){let y=p.get(m.jumpEdgeId)??[];y.push(m),p.set(m.jumpEdgeId,y)}for(let m of h){let y=p.get(m.id);if(!y||y.length===0)continue;let w=o.get(m.id)?.curve;if(w!==void 0&&!a4r(w))continue;let T=l.get(m.id);if(!T)continue;if(w===void 0){let L=T.getAttribute("d")??"";if(!i4r(L))continue}let x=T.getAttribute("style")??"",k=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(x),A=k?Number.parseFloat(k[1]):null,R=k?Number.parseFloat(k[2]):null,N=n4r(m,y,i);if(T.setAttribute("d",N),A!==null&&R!==null&&typeof T.getTotalLength==="function"){let L=T.getTotalLength(),B=Math.max(0,L-A-R),D=`0 ${A} ${B} ${R}`,P=x.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${D};`).replace(/;\s*;+/g,";");T.setAttribute("style",P)}}}var gwe=5,fwe=0.00001,Njn=2,Ljn=0.6,pwe=0.000001;var Qtt=Re(()=>{Qm();Ja();I(mwe,"buildSegmentList");I(ZCr,"segmentIntersection");I(Ktt,"isHorizontalSeg");I(Xtt,"crossingSitsInRoundedCorner");I(JCr,"findEdgeIntersections");I(TC,"fmt");I($H,"pointToString");I(e4r,"getArcSweepFlag");I(t4r,"applyMarkerOffsets");I(r4r,"emitJump");I(Qne,"computeRoundedCorner");I(n4r,"rewriteEdgePath");I(i4r,"isStraightPath");I(a4r,"curveSupportsLineHops");I(s4r,"decodeDataPoints");I(Zne,"applyLineJumpsToSvg")});var Mjn,bwe;var Ztt=Re(()=>{Mjn=typeof global=="object"&&global&&global.Object===Object&&global,bwe=Mjn});var Djn,Pjn,$p;var KS=Re(()=>{Ztt();Djn=typeof self=="object"&&self&&self.Object===Object&&self,Pjn=bwe||Djn||Function("return this")(),$p=Pjn});var Bjn,Zm;var ZP=Re(()=>{KS();Bjn=$p.Symbol,Zm=Bjn});function Ujn(e){var r=Fjn.call(e,Jne),i=e[Jne];try{e[Jne]=void 0;var a=!0}catch(l){}var o=$jn.call(e);if(a)if(r)e[Jne]=i;else delete e[Jne];return o}var o4r,Fjn,$jn,Jne,l4r;var c4r=Re(()=>{ZP();o4r=Object.prototype,Fjn=o4r.hasOwnProperty,$jn=o4r.toString,Jne=Zm?Zm.toStringTag:void 0;l4r=Ujn});function Vjn(e){return zjn.call(e)}var Gjn,zjn,u4r;var h4r=Re(()=>{Gjn=Object.prototype,zjn=Gjn.toString;u4r=Vjn});function Yjn(e){if(e==null)return e===void 0?qjn:Hjn;return d4r&&d4r in Object(e)?l4r(e):u4r(e)}var Hjn="[object Null]",qjn="[object Undefined]",d4r,mv;var CL=Re(()=>{ZP();c4r();h4r();d4r=Zm?Zm.toStringTag:void 0;mv=Yjn});function Wjn(e){return e!=null&&typeof e=="object"}var N0;var xC=Re(()=>{N0=Wjn});function Kjn(e){return typeof e=="symbol"||N0(e)&&mv(e)==jjn}var jjn="[object Symbol]",KE;var JP=Re(()=>{CL();xC();KE=Kjn});function Xjn(e,r){var i=-1,a=e==null?0:e.length,o=Array(a);while(++i{E3=Xjn});var Qjn,Fl;var fg=Re(()=>{Qjn=Array.isArray,Fl=Qjn});function g4r(e){if(typeof e=="string")return e;if(Fl(e))return E3(e,g4r)+"";if(KE(e))return p4r?p4r.call(e):"";var r=e+"";return r=="0"&&1/e==-Zjn?"-0":r}var Zjn=1/0,f4r,p4r,m4r;var b4r=Re(()=>{ZP();eie();fg();JP();f4r=Zm?Zm.prototype:void 0,p4r=f4r?f4r.toString:void 0;m4r=g4r});function eKn(e){var r=e.length;while(r--&&Jjn.test(e.charAt(r)));return r}var Jjn,y4r;var v4r=Re(()=>{Jjn=/\s/;y4r=eKn});function rKn(e){return e?e.slice(0,y4r(e)+1).replace(tKn,""):e}var tKn,_4r;var E4r=Re(()=>{v4r();tKn=/^\s+/;_4r=rKn});function nKn(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var vf;var XS=Re(()=>{vf=nKn});function lKn(e){if(typeof e=="number")return e;if(KE(e))return w4r;if(vf(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=vf(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=_4r(e);var i=aKn.test(e);return i||sKn.test(e)?oKn(e.slice(2),i?2:8):iKn.test(e)?w4r:+e}var w4r=NaN,iKn,aKn,sKn,oKn,S4r;var T4r=Re(()=>{E4r();XS();JP();iKn=/^[-+]0x[0-9a-f]+$/i,aKn=/^0b[01]+$/i,sKn=/^0o[0-7]+$/i,oKn=parseInt;S4r=lKn});function uKn(e){if(!e)return e===0?e:0;if(e=S4r(e),e===x4r||e===-x4r){var r=e<0?-1:1;return r*cKn}return e===e?e:0}var x4r=1/0,cKn=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,UH;var Jtt=Re(()=>{T4r();UH=uKn});function hKn(e){var r=UH(e),i=r%1;return r===r?i?r-i:r:0}var C4r;var k4r=Re(()=>{Jtt();C4r=hKn});function dKn(e){return e}var Q_;var kL=Re(()=>{Q_=dKn});function bKn(e){if(!vf(e))return!1;var r=mv(e);return r==pKn||r==gKn||r==fKn||r==mKn}var fKn="[object AsyncFunction]",pKn="[object Function]",gKn="[object GeneratorFunction]",mKn="[object Proxy]",w3;var tie=Re(()=>{CL();XS();w3=bKn});var yKn,ywe;var A4r=Re(()=>{KS();yKn=$p["__core-js_shared__"],ywe=yKn});function vKn(e){return!!R4r&&R4r in e}var R4r,I4r;var O4r=Re(()=>{A4r();R4r=function(){var e=/[^.]+$/.exec(ywe&&ywe.keys&&ywe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();I4r=vKn});function wKn(e){if(e!=null){try{return EKn.call(e)}catch(r){}try{return e+""}catch(r){}}return""}var _Kn,EKn,VR;var ert=Re(()=>{_Kn=Function.prototype,EKn=_Kn.toString;VR=wKn});function IKn(e){if(!vf(e)||I4r(e))return!1;var r=w3(e)?RKn:TKn;return r.test(VR(e))}var SKn,TKn,xKn,CKn,kKn,AKn,RKn,N4r;var L4r=Re(()=>{tie();O4r();XS();ert();SKn=/[\\^$.*+?()[\]{}|]/g,TKn=/^\[object .+?Constructor\]$/,xKn=Function.prototype,CKn=Object.prototype,kKn=xKn.toString,AKn=CKn.hasOwnProperty,RKn=RegExp("^"+kKn.call(AKn).replace(SKn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");N4r=IKn});function OKn(e,r){return e==null?void 0:e[r]}var M4r;var D4r=Re(()=>{M4r=OKn});function NKn(e,r){var i=M4r(e,r);return N4r(i)?i:void 0}var Z_;var AL=Re(()=>{L4r();D4r();Z_=NKn});var LKn,vwe;var P4r=Re(()=>{AL();KS();LKn=Z_($p,"WeakMap"),vwe=LKn});var B4r,MKn,F4r;var $4r=Re(()=>{XS();B4r=Object.create,MKn=function(){function e(){}return function(r){if(!vf(r))return{};if(B4r)return B4r(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),F4r=MKn});function DKn(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}var U4r;var G4r=Re(()=>{U4r=DKn});function PKn(){}var z4r;var V4r=Re(()=>{z4r=PKn});function BKn(e,r){var i=-1,a=e.length;r||(r=Array(a));while(++i{_we=BKn});function GKn(e){var r=0,i=0;return function(){var a=UKn(),o=$Kn-(a-i);if(i=a,o>0){if(++r>=FKn)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var FKn=800,$Kn=16,UKn,H4r;var q4r=Re(()=>{UKn=Date.now;H4r=GKn});function zKn(e){return function(){return e}}var J_;var rrt=Re(()=>{J_=zKn});var VKn,GH;var nrt=Re(()=>{AL();VKn=function(){try{var e=Z_(Object,"defineProperty");return e({},"",{}),e}catch(r){}}(),GH=VKn});var HKn,Y4r;var W4r=Re(()=>{rrt();nrt();kL();HKn=!GH?Q_:function(e,r){return GH(e,"toString",{configurable:!0,enumerable:!1,value:J_(r),writable:!0})},Y4r=HKn});var qKn,Ewe;var irt=Re(()=>{W4r();q4r();qKn=H4r(Y4r),Ewe=qKn});function YKn(e,r){var i=-1,a=e==null?0:e.length;while(++i{wwe=YKn});function WKn(e,r,i,a){var o=e.length,l=i+(a?1:-1);while(a?l--:++l{Swe=WKn});function jKn(e){return e!==e}var j4r;var K4r=Re(()=>{j4r=jKn});function KKn(e,r,i){var a=i-1,o=e.length;while(++a{X4r=KKn});function XKn(e,r,i){return r===r?X4r(e,r,i):Swe(e,j4r,i)}var Z4r;var J4r=Re(()=>{srt();K4r();Q4r();Z4r=XKn});function QKn(e,r){var i=e==null?0:e.length;return!!i&&Z4r(e,r,0)>-1}var ekr;var tkr=Re(()=>{J4r();ekr=QKn});function eXn(e,r){var i=typeof e;return r=r==null?ZKn:r,!!r&&(i=="number"||i!="symbol"&&JKn.test(e))&&(e>-1&&e%1==0&&e{JKn=/^(?:0|[1-9]\d*)$/;RL=eXn});function tXn(e,r,i){if(r=="__proto__"&&GH)GH(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0});else e[r]=i}var IL;var nie=Re(()=>{nrt();IL=tXn});function rXn(e,r){return e===r||e!==e&&r!==r}var QS;var eB=Re(()=>{QS=rXn});function aXn(e,r,i){var a=e[r];if(!(iXn.call(e,r)&&QS(a,i))||i===void 0&&!(r in e))IL(e,r,i)}var nXn,iXn,OL;var iie=Re(()=>{nie();eB();nXn=Object.prototype,iXn=nXn.hasOwnProperty;OL=aXn});function sXn(e,r,i,a){var o=!i;i||(i={});var l=-1,h=r.length;while(++l{iie();nie();S3=sXn});function oXn(e,r,i){return r=rkr(r===void 0?e.length-1:r,0),function(){var a=arguments,o=-1,l=rkr(a.length-r,0),h=Array(l);while(++o{G4r();rkr=Math.max;Twe=oXn});function lXn(e,r){return Ewe(Twe(e,r,Q_),e+"")}var NL;var aie=Re(()=>{kL();ort();irt();NL=lXn});function uXn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=cXn}var cXn=9007199254740991,VH;var xwe=Re(()=>{VH=uXn});function hXn(e){return e!=null&&VH(e.length)&&!w3(e)}var Jm;var T3=Re(()=>{tie();xwe();Jm=hXn});function dXn(e,r,i){if(!vf(i))return!1;var a=typeof r;if(a=="number"?Jm(i)&&RL(r,i.length):a=="string"&&(r in i))return QS(i[r],e);return!1}var HR;var sie=Re(()=>{eB();T3();rie();XS();HR=dXn});function fXn(e){return NL(function(r,i){var a=-1,o=i.length,l=o>1?i[o-1]:void 0,h=o>2?i[2]:void 0;if(l=e.length>3&&typeof l=="function"?(o--,l):void 0,h&&HR(i[0],i[1],h))l=o<3?void 0:l,o=1;r=Object(r);while(++a{aie();sie();nkr=fXn});function gXn(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||pXn;return e===i}var pXn,LL;var oie=Re(()=>{pXn=Object.prototype;LL=gXn});function mXn(e,r){var i=-1,a=Array(e);while(++i{akr=mXn});function yXn(e){return N0(e)&&mv(e)==bXn}var bXn="[object Arguments]",lrt;var okr=Re(()=>{CL();xC();lrt=yXn});var lkr,vXn,_Xn,EXn,CC;var HH=Re(()=>{okr();xC();lkr=Object.prototype,vXn=lkr.hasOwnProperty,_Xn=lkr.propertyIsEnumerable,EXn=lrt(function(){return arguments}())?lrt:function(e){return N0(e)&&vXn.call(e,"callee")&&!_Xn.call(e,"callee")},CC=EXn});function wXn(){return!1}var ckr;var ukr=Re(()=>{ckr=wXn});var kwe={};GN(kwe,{default:()=>ZS});var fkr,hkr,SXn,dkr,TXn,xXn,ZS;var qH=Re(()=>{KS();ukr();fkr=typeof kwe=="object"&&kwe&&!kwe.nodeType&&kwe,hkr=fkr&&typeof Cwe=="object"&&Cwe&&!Cwe.nodeType&&Cwe,SXn=hkr&&hkr.exports===fkr,dkr=SXn?$p.Buffer:void 0,TXn=dkr?dkr.isBuffer:void 0,xXn=TXn||ckr,ZS=xXn});function XXn(e){return N0(e)&&VH(e.length)&&!!Bd[mv(e)]}var CXn="[object Arguments]",kXn="[object Array]",AXn="[object Boolean]",RXn="[object Date]",IXn="[object Error]",OXn="[object Function]",NXn="[object Map]",LXn="[object Number]",MXn="[object Object]",DXn="[object RegExp]",PXn="[object Set]",BXn="[object String]",FXn="[object WeakMap]",$Xn="[object ArrayBuffer]",UXn="[object DataView]",GXn="[object Float32Array]",zXn="[object Float64Array]",VXn="[object Int8Array]",HXn="[object Int16Array]",qXn="[object Int32Array]",YXn="[object Uint8Array]",WXn="[object Uint8ClampedArray]",jXn="[object Uint16Array]",KXn="[object Uint32Array]",Bd,pkr;var gkr=Re(()=>{CL();xwe();xC();Bd={};Bd[GXn]=Bd[zXn]=Bd[VXn]=Bd[HXn]=Bd[qXn]=Bd[YXn]=Bd[WXn]=Bd[jXn]=Bd[KXn]=!0;Bd[CXn]=Bd[kXn]=Bd[$Xn]=Bd[AXn]=Bd[UXn]=Bd[RXn]=Bd[IXn]=Bd[OXn]=Bd[NXn]=Bd[LXn]=Bd[MXn]=Bd[DXn]=Bd[PXn]=Bd[BXn]=Bd[FXn]=!1;pkr=XXn});function QXn(e){return function(r){return e(r)}}var ML;var lie=Re(()=>{ML=QXn});var Rwe={};GN(Rwe,{default:()=>x3});var mkr,cie,ZXn,crt,JXn,x3;var Iwe=Re(()=>{Ztt();mkr=typeof Rwe=="object"&&Rwe&&!Rwe.nodeType&&Rwe,cie=mkr&&typeof Awe=="object"&&Awe&&!Awe.nodeType&&Awe,ZXn=cie&&cie.exports===mkr,crt=ZXn&&bwe.process,JXn=function(){try{var e=cie&&cie.require&&cie.require("util").types;if(e)return e;return crt&&crt.binding&&crt.binding("util")}catch(r){}}(),x3=JXn});var bkr,eQn,DL;var uie=Re(()=>{gkr();lie();Iwe();bkr=x3&&x3.isTypedArray,eQn=bkr?ML(bkr):pkr,DL=eQn});function nQn(e,r){var i=Fl(e),a=!i&&CC(e),o=!i&&!a&&ZS(e),l=!i&&!a&&!o&&DL(e),h=i||a||o||l,d=h?akr(e.length,String):[],p=d.length;for(var m in e)if((r||rQn.call(e,m))&&!(h&&(m=="length"||o&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||RL(m,p))))d.push(m);return d}var tQn,rQn,Owe;var urt=Re(()=>{skr();HH();fg();qH();rie();uie();tQn=Object.prototype,rQn=tQn.hasOwnProperty;Owe=nQn});function iQn(e,r){return function(i){return e(r(i))}}var Nwe;var hrt=Re(()=>{Nwe=iQn});var aQn,ykr;var vkr=Re(()=>{hrt();aQn=Nwe(Object.keys,Object),ykr=aQn});function lQn(e){if(!LL(e))return ykr(e);var r=[];for(var i in Object(e))if(oQn.call(e,i)&&i!="constructor")r.push(i);return r}var sQn,oQn,YH;var Lwe=Re(()=>{oie();vkr();sQn=Object.prototype,oQn=sQn.hasOwnProperty;YH=lQn});function cQn(e){return Jm(e)?Owe(e):YH(e)}var Up;var qR=Re(()=>{urt();Lwe();T3();Up=cQn});function uQn(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var _kr;var Ekr=Re(()=>{_kr=uQn});function fQn(e){if(!vf(e))return _kr(e);var r=LL(e),i=[];for(var a in e)if(!(a=="constructor"&&(r||!dQn.call(e,a))))i.push(a);return i}var hQn,dQn,wkr;var Skr=Re(()=>{XS();oie();Ekr();hQn=Object.prototype,dQn=hQn.hasOwnProperty;wkr=fQn});function pQn(e){return Jm(e)?Owe(e,!0):wkr(e)}var e2;var PL=Re(()=>{urt();Skr();T3();e2=pQn});function bQn(e,r){if(Fl(e))return!1;var i=typeof e;if(i=="number"||i=="symbol"||i=="boolean"||e==null||KE(e))return!0;return mQn.test(e)||!gQn.test(e)||r!=null&&e in Object(r)}var gQn,mQn,WH;var Mwe=Re(()=>{fg();JP();gQn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mQn=/^\w*$/;WH=bQn});var yQn,YR;var hie=Re(()=>{AL();yQn=Z_(Object,"create"),YR=yQn});function vQn(){this.__data__=YR?YR(null):{},this.size=0}var Tkr;var xkr=Re(()=>{hie();Tkr=vQn});function _Qn(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Ckr;var kkr=Re(()=>{Ckr=_Qn});function TQn(e){var r=this.__data__;if(YR){var i=r[e];return i===EQn?void 0:i}return SQn.call(r,e)?r[e]:void 0}var EQn="__lodash_hash_undefined__",wQn,SQn,Akr;var Rkr=Re(()=>{hie();wQn=Object.prototype,SQn=wQn.hasOwnProperty;Akr=TQn});function kQn(e){var r=this.__data__;return YR?r[e]!==void 0:CQn.call(r,e)}var xQn,CQn,Ikr;var Okr=Re(()=>{hie();xQn=Object.prototype,CQn=xQn.hasOwnProperty;Ikr=kQn});function RQn(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=YR&&r===void 0?AQn:r,this}var AQn="__lodash_hash_undefined__",Nkr;var Lkr=Re(()=>{hie();Nkr=RQn});function jH(e){var r=-1,i=e==null?0:e.length;this.clear();while(++r{xkr();kkr();Rkr();Okr();Lkr();jH.prototype.clear=Tkr;jH.prototype.delete=Ckr;jH.prototype.get=Akr;jH.prototype.has=Ikr;jH.prototype.set=Nkr;drt=jH});function IQn(){this.__data__=[],this.size=0}var Dkr;var Pkr=Re(()=>{Dkr=IQn});function OQn(e,r){var i=e.length;while(i--)if(QS(e[i][0],r))return i;return-1}var BL;var die=Re(()=>{eB();BL=OQn});function MQn(e){var r=this.__data__,i=BL(r,e);if(i<0)return!1;var a=r.length-1;if(i==a)r.pop();else LQn.call(r,i,1);return--this.size,!0}var NQn,LQn,Bkr;var Fkr=Re(()=>{die();NQn=Array.prototype,LQn=NQn.splice;Bkr=MQn});function DQn(e){var r=this.__data__,i=BL(r,e);return i<0?void 0:r[i][1]}var $kr;var Ukr=Re(()=>{die();$kr=DQn});function PQn(e){return BL(this.__data__,e)>-1}var Gkr;var zkr=Re(()=>{die();Gkr=PQn});function BQn(e,r){var i=this.__data__,a=BL(i,e);if(a<0)++this.size,i.push([e,r]);else i[a][1]=r;return this}var Vkr;var Hkr=Re(()=>{die();Vkr=BQn});function KH(e){var r=-1,i=e==null?0:e.length;this.clear();while(++r{Pkr();Fkr();Ukr();zkr();Hkr();KH.prototype.clear=Dkr;KH.prototype.delete=Bkr;KH.prototype.get=$kr;KH.prototype.has=Gkr;KH.prototype.set=Vkr;FL=KH});var FQn,$L;var Dwe=Re(()=>{AL();KS();FQn=Z_($p,"Map"),$L=FQn});function $Qn(){this.size=0,this.__data__={hash:new drt,map:new($L||FL),string:new drt}}var qkr;var Ykr=Re(()=>{Mkr();fie();Dwe();qkr=$Qn});function UQn(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Wkr;var jkr=Re(()=>{Wkr=UQn});function GQn(e,r){var i=e.__data__;return Wkr(r)?i[typeof r=="string"?"string":"hash"]:i.map}var UL;var pie=Re(()=>{jkr();UL=GQn});function zQn(e){var r=UL(this,e).delete(e);return this.size-=r?1:0,r}var Kkr;var Xkr=Re(()=>{pie();Kkr=zQn});function VQn(e){return UL(this,e).get(e)}var Qkr;var Zkr=Re(()=>{pie();Qkr=VQn});function HQn(e){return UL(this,e).has(e)}var Jkr;var e3r=Re(()=>{pie();Jkr=HQn});function qQn(e,r){var i=UL(this,e),a=i.size;return i.set(e,r),this.size+=i.size==a?0:1,this}var t3r;var r3r=Re(()=>{pie();t3r=qQn});function XH(e){var r=-1,i=e==null?0:e.length;this.clear();while(++r{Ykr();Xkr();Zkr();e3r();r3r();XH.prototype.clear=qkr;XH.prototype.delete=Kkr;XH.prototype.get=Qkr;XH.prototype.has=Jkr;XH.prototype.set=t3r;tB=XH});function frt(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw TypeError(YQn);var i=function(){var a=arguments,o=r?r.apply(this,a):a[0],l=i.cache;if(l.has(o))return l.get(o);var h=e.apply(this,a);return i.cache=l.set(o,h)||l,h};return i.cache=new(frt.Cache||tB),i}var YQn="Expected a function",n3r;var i3r=Re(()=>{Pwe();frt.Cache=tB;n3r=frt});function jQn(e){var r=n3r(e,function(a){if(i.size===WQn)i.clear();return a}),i=r.cache;return r}var WQn=500,a3r;var s3r=Re(()=>{i3r();a3r=jQn});var KQn,XQn,QQn,o3r;var l3r=Re(()=>{s3r();KQn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,XQn=/\\(\\)?/g,QQn=a3r(function(e){var r=[];if(e.charCodeAt(0)===46)r.push("");return e.replace(KQn,function(i,a,o,l){r.push(o?l.replace(XQn,"$1"):a||i)}),r}),o3r=QQn});function ZQn(e){return e==null?"":m4r(e)}var Bwe;var prt=Re(()=>{b4r();Bwe=ZQn});function JQn(e,r){if(Fl(e))return e;return WH(e,r)?[e]:o3r(Bwe(e))}var GL;var gie=Re(()=>{fg();Mwe();l3r();prt();GL=JQn});function tZn(e){if(typeof e=="string"||KE(e))return e;var r=e+"";return r=="0"&&1/e==-eZn?"-0":r}var eZn=1/0,C3;var QH=Re(()=>{JP();C3=tZn});function rZn(e,r){r=GL(r,e);var i=0,a=r.length;while(e!=null&&i{gie();QH();zL=rZn});function nZn(e,r,i){var a=e==null?void 0:zL(e,r);return a===void 0?i:a}var c3r;var u3r=Re(()=>{mie();c3r=nZn});function iZn(e,r){var i=-1,a=r.length,o=e.length;while(++i{ZH=iZn});function aZn(e){return Fl(e)||CC(e)||!!(h3r&&e&&e[h3r])}var h3r,d3r;var f3r=Re(()=>{ZP();HH();fg();h3r=Zm?Zm.isConcatSpreadable:void 0;d3r=aZn});function p3r(e,r,i,a,o){var l=-1,h=e.length;i||(i=d3r),o||(o=[]);while(++l0&&i(d))if(r>1)p3r(d,r-1,i,a,o);else ZH(o,d);else if(!a)o[o.length]=d}return o}var JH;var $we=Re(()=>{Fwe();f3r();JH=p3r});function sZn(e){var r=e==null?0:e.length;return r?JH(e,1):[]}var JS;var grt=Re(()=>{$we();JS=sZn});function oZn(e){return Ewe(Twe(e,void 0,JS),e+"")}var g3r;var m3r=Re(()=>{grt();ort();irt();g3r=oZn});var lZn,eq;var Uwe=Re(()=>{hrt();lZn=Nwe(Object.getPrototypeOf,Object),eq=lZn});function pZn(e){if(!N0(e)||mv(e)!=cZn)return!1;var r=eq(e);if(r===null)return!0;var i=dZn.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&b3r.call(i)==fZn}var cZn="[object Object]",uZn,hZn,b3r,dZn,fZn,y3r;var v3r=Re(()=>{CL();Uwe();xC();uZn=Function.prototype,hZn=Object.prototype,b3r=uZn.toString,dZn=hZn.hasOwnProperty,fZn=b3r.call(Object);y3r=pZn});function SZn(e){return wZn.test(e)}var gZn="\\ud800-\\udfff",mZn="\\u0300-\\u036f",bZn="\\ufe20-\\ufe2f",yZn="\\u20d0-\\u20ff",vZn,_Zn="\\ufe0e\\ufe0f",EZn="\\u200d",wZn,_3r;var E3r=Re(()=>{vZn=mZn+bZn+yZn,wZn=RegExp("["+EZn+gZn+vZn+_Zn+"]");_3r=SZn});function TZn(e,r,i,a){var o=-1,l=e==null?0:e.length;if(a&&l)i=e[++o];while(++o{w3r=TZn});function xZn(){this.__data__=new FL,this.size=0}var T3r;var x3r=Re(()=>{fie();T3r=xZn});function CZn(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var C3r;var k3r=Re(()=>{C3r=CZn});function kZn(e){return this.__data__.get(e)}var A3r;var R3r=Re(()=>{A3r=kZn});function AZn(e){return this.__data__.has(e)}var I3r;var O3r=Re(()=>{I3r=AZn});function IZn(e,r){var i=this.__data__;if(i instanceof FL){var a=i.__data__;if(!$L||a.length{fie();Dwe();Pwe();N3r=IZn});function tq(e){var r=this.__data__=new FL(e);this.size=r.size}var k3;var bie=Re(()=>{fie();x3r();k3r();R3r();O3r();L3r();tq.prototype.clear=T3r;tq.prototype.delete=C3r;tq.prototype.get=A3r;tq.prototype.has=I3r;tq.prototype.set=N3r;k3=tq});function OZn(e,r){return e&&S3(r,Up(r),e)}var M3r;var D3r=Re(()=>{zH();qR();M3r=OZn});function NZn(e,r){return e&&S3(r,e2(r),e)}var P3r;var B3r=Re(()=>{zH();PL();P3r=NZn});var zwe={};GN(zwe,{default:()=>yie});function MZn(e,r){if(r)return e.slice();var i=e.length,a=U3r?U3r(i):new e.constructor(i);return e.copy(a),a}var G3r,F3r,LZn,$3r,U3r,yie;var mrt=Re(()=>{KS();G3r=typeof zwe=="object"&&zwe&&!zwe.nodeType&&zwe,F3r=G3r&&typeof Gwe=="object"&&Gwe&&!Gwe.nodeType&&Gwe,LZn=F3r&&F3r.exports===G3r,$3r=LZn?$p.Buffer:void 0,U3r=$3r?$3r.allocUnsafe:void 0;yie=MZn});function DZn(e,r){var i=-1,a=e==null?0:e.length,o=0,l=[];while(++i{Vwe=DZn});function PZn(){return[]}var Hwe;var yrt=Re(()=>{Hwe=PZn});var BZn,FZn,z3r,$Zn,rq;var qwe=Re(()=>{brt();yrt();BZn=Object.prototype,FZn=BZn.propertyIsEnumerable,z3r=Object.getOwnPropertySymbols,$Zn=!z3r?Hwe:function(e){if(e==null)return[];return e=Object(e),Vwe(z3r(e),function(r){return FZn.call(e,r)})},rq=$Zn});function UZn(e,r){return S3(e,rq(e),r)}var V3r;var H3r=Re(()=>{zH();qwe();V3r=UZn});var GZn,zZn,Ywe;var vrt=Re(()=>{Fwe();Uwe();qwe();yrt();GZn=Object.getOwnPropertySymbols,zZn=!GZn?Hwe:function(e){var r=[];while(e)ZH(r,rq(e)),e=eq(e);return r},Ywe=zZn});function VZn(e,r){return S3(e,Ywe(e),r)}var q3r;var Y3r=Re(()=>{zH();vrt();q3r=VZn});function HZn(e,r,i){var a=r(e);return Fl(e)?a:ZH(a,i(e))}var Wwe;var _rt=Re(()=>{Fwe();fg();Wwe=HZn});function qZn(e){return Wwe(e,Up,rq)}var vie;var Ert=Re(()=>{_rt();qwe();qR();vie=qZn});function YZn(e){return Wwe(e,e2,Ywe)}var W3r;var j3r=Re(()=>{_rt();vrt();PL();W3r=YZn});var WZn,jwe;var K3r=Re(()=>{AL();KS();WZn=Z_($p,"DataView"),jwe=WZn});var jZn,Kwe;var X3r=Re(()=>{AL();KS();jZn=Z_($p,"Promise"),Kwe=jZn});var KZn,VL;var wrt=Re(()=>{AL();KS();KZn=Z_($p,"Set"),VL=KZn});var Q3r="[object Map]",XZn="[object Object]",Z3r="[object Promise]",J3r="[object Set]",eAr="[object WeakMap]",tAr="[object DataView]",QZn,ZZn,JZn,eJn,tJn,rB,XE;var nB=Re(()=>{K3r();Dwe();X3r();wrt();P4r();CL();ert();QZn=VR(jwe),ZZn=VR($L),JZn=VR(Kwe),eJn=VR(VL),tJn=VR(vwe),rB=mv;if(jwe&&rB(new jwe(new ArrayBuffer(1)))!=tAr||$L&&rB(new $L)!=Q3r||Kwe&&rB(Kwe.resolve())!=Z3r||VL&&rB(new VL)!=J3r||vwe&&rB(new vwe)!=eAr)rB=function(e){var r=mv(e),i=r==XZn?e.constructor:void 0,a=i?VR(i):"";if(a)switch(a){case QZn:return tAr;case ZZn:return Q3r;case JZn:return Z3r;case eJn:return J3r;case tJn:return eAr}return r};XE=rB});function iJn(e){var r=e.length,i=new e.constructor(r);if(r&&typeof e[0]=="string"&&nJn.call(e,"index"))i.index=e.index,i.input=e.input;return i}var rJn,nJn,rAr;var nAr=Re(()=>{rJn=Object.prototype,nJn=rJn.hasOwnProperty;rAr=iJn});var aJn,nq;var Srt=Re(()=>{KS();aJn=$p.Uint8Array,nq=aJn});function sJn(e){var r=new e.constructor(e.byteLength);return new nq(r).set(new nq(e)),r}var iq;var Xwe=Re(()=>{Srt();iq=sJn});function oJn(e,r){var i=r?iq(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var iAr;var aAr=Re(()=>{Xwe();iAr=oJn});function cJn(e){var r=new e.constructor(e.source,lJn.exec(e));return r.lastIndex=e.lastIndex,r}var lJn,sAr;var oAr=Re(()=>{lJn=/\w*$/;sAr=cJn});function uJn(e){return cAr?Object(cAr.call(e)):{}}var lAr,cAr,uAr;var hAr=Re(()=>{ZP();lAr=Zm?Zm.prototype:void 0,cAr=lAr?lAr.valueOf:void 0;uAr=uJn});function hJn(e,r){var i=r?iq(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var Qwe;var Trt=Re(()=>{Xwe();Qwe=hJn});function OJn(e,r,i){var a=e.constructor;switch(r){case _Jn:return iq(e);case dJn:case fJn:return new a(+e);case EJn:return iAr(e,i);case wJn:case SJn:case TJn:case xJn:case CJn:case kJn:case AJn:case RJn:case IJn:return Qwe(e,i);case pJn:return new a;case gJn:case yJn:return new a(e);case mJn:return sAr(e);case bJn:return new a;case vJn:return uAr(e)}}var dJn="[object Boolean]",fJn="[object Date]",pJn="[object Map]",gJn="[object Number]",mJn="[object RegExp]",bJn="[object Set]",yJn="[object String]",vJn="[object Symbol]",_Jn="[object ArrayBuffer]",EJn="[object DataView]",wJn="[object Float32Array]",SJn="[object Float64Array]",TJn="[object Int8Array]",xJn="[object Int16Array]",CJn="[object Int32Array]",kJn="[object Uint8Array]",AJn="[object Uint8ClampedArray]",RJn="[object Uint16Array]",IJn="[object Uint32Array]",dAr;var fAr=Re(()=>{Xwe();aAr();oAr();hAr();Trt();dAr=OJn});function NJn(e){return typeof e.constructor=="function"&&!LL(e)?F4r(eq(e)):{}}var Zwe;var xrt=Re(()=>{$4r();Uwe();oie();Zwe=NJn});function MJn(e){return N0(e)&&XE(e)==LJn}var LJn="[object Map]",pAr;var gAr=Re(()=>{nB();xC();pAr=MJn});var mAr,DJn,bAr;var yAr=Re(()=>{gAr();lie();Iwe();mAr=x3&&x3.isMap,DJn=mAr?ML(mAr):pAr,bAr=DJn});function BJn(e){return N0(e)&&XE(e)==PJn}var PJn="[object Set]",vAr;var _Ar=Re(()=>{nB();xC();vAr=BJn});var EAr,FJn,wAr;var SAr=Re(()=>{_Ar();lie();Iwe();EAr=x3&&x3.isSet,FJn=EAr?ML(EAr):vAr,wAr=FJn});function Jwe(e,r,i,a,o,l){var h,d=r&$Jn,p=r&UJn,m=r&GJn;if(i)h=o?i(e,a,o,l):i(e);if(h!==void 0)return h;if(!vf(e))return e;var y=Fl(e);if(y){if(h=rAr(e),!d)return _we(e,h)}else{var E=XE(e),w=E==xAr||E==YJn;if(ZS(e))return yie(e,d);if(E==CAr||E==TAr||w&&!o){if(h=p||w?{}:Zwe(e),!d)return p?q3r(e,P3r(h,e)):V3r(e,M3r(h,e))}else{if(!Td[E])return o?e:{};h=dAr(e,E,d)}}l||(l=new k3);var T=l.get(e);if(T)return T;if(l.set(e,h),wAr(e))e.forEach(function(A){h.add(Jwe(A,r,i,A,e,l))});else if(bAr(e))e.forEach(function(A,R){h.set(R,Jwe(A,r,i,R,e,l))});var x=m?p?W3r:vie:p?e2:Up,k=y?void 0:x(e);return wwe(k||e,function(A,R){if(k)R=A,A=e[R];OL(h,R,Jwe(A,r,i,R,e,l))}),h}var $Jn=1,UJn=2,GJn=4,TAr="[object Arguments]",zJn="[object Array]",VJn="[object Boolean]",HJn="[object Date]",qJn="[object Error]",xAr="[object Function]",YJn="[object GeneratorFunction]",WJn="[object Map]",jJn="[object Number]",CAr="[object Object]",KJn="[object RegExp]",XJn="[object Set]",QJn="[object String]",ZJn="[object Symbol]",JJn="[object WeakMap]",eei="[object ArrayBuffer]",tei="[object DataView]",rei="[object Float32Array]",nei="[object Float64Array]",iei="[object Int8Array]",aei="[object Int16Array]",sei="[object Int32Array]",oei="[object Uint8Array]",lei="[object Uint8ClampedArray]",cei="[object Uint16Array]",uei="[object Uint32Array]",Td,kAr;var AAr=Re(()=>{bie();art();iie();D3r();B3r();mrt();trt();H3r();Y3r();Ert();j3r();nB();nAr();fAr();xrt();fg();qH();yAr();XS();SAr();qR();PL();Td={};Td[TAr]=Td[zJn]=Td[eei]=Td[tei]=Td[VJn]=Td[HJn]=Td[rei]=Td[nei]=Td[iei]=Td[aei]=Td[sei]=Td[WJn]=Td[jJn]=Td[CAr]=Td[KJn]=Td[XJn]=Td[QJn]=Td[ZJn]=Td[oei]=Td[lei]=Td[cei]=Td[uei]=!0;Td[qJn]=Td[xAr]=Td[JJn]=!1;kAr=Jwe});function fei(e){return kAr(e,hei|dei)}var hei=1,dei=4,Crt;var RAr=Re(()=>{AAr();Crt=fei});function gei(e){return this.__data__.set(e,pei),this}var pei="__lodash_hash_undefined__",IAr;var OAr=Re(()=>{IAr=gei});function mei(e){return this.__data__.has(e)}var NAr;var LAr=Re(()=>{NAr=mei});function eSe(e){var r=-1,i=e==null?0:e.length;this.__data__=new tB;while(++r{Pwe();OAr();LAr();eSe.prototype.add=eSe.prototype.push=IAr;eSe.prototype.has=NAr;tSe=eSe});function bei(e,r){var i=-1,a=e==null?0:e.length;while(++i{MAr=bei});function yei(e,r){return e.has(r)}var rSe;var Art=Re(()=>{rSe=yei});function Eei(e,r,i,a,o,l){var h=i&vei,d=e.length,p=r.length;if(d!=p&&!(h&&p>d))return!1;var m=l.get(e),y=l.get(r);if(m&&y)return m==r&&y==e;var E=-1,w=!0,T=i&_ei?new tSe:void 0;l.set(e,r),l.set(r,e);while(++E{krt();DAr();Art();nSe=Eei});function wei(e){var r=-1,i=Array(e.size);return e.forEach(function(a,o){i[++r]=[o,a]}),i}var PAr;var BAr=Re(()=>{PAr=wei});function Sei(e){var r=-1,i=Array(e.size);return e.forEach(function(a){i[++r]=a}),i}var aq;var iSe=Re(()=>{aq=Sei});function Bei(e,r,i,a,o,l,h){switch(i){case Pei:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Dei:if(e.byteLength!=r.byteLength||!l(new nq(e),new nq(r)))return!1;return!0;case Cei:case kei:case Iei:return QS(+e,+r);case Aei:return e.name==r.name&&e.message==r.message;case Oei:case Lei:return e==r+"";case Rei:var d=PAr;case Nei:var p=a&Tei;if(d||(d=aq),e.size!=r.size&&!p)return!1;var m=h.get(e);if(m)return m==r;a|=xei,h.set(e,r);var y=nSe(d(e),d(r),a,o,l,h);return h.delete(e),y;case Mei:if(Irt)return Irt.call(e)==Irt.call(r)}return!1}var Tei=1,xei=2,Cei="[object Boolean]",kei="[object Date]",Aei="[object Error]",Rei="[object Map]",Iei="[object Number]",Oei="[object RegExp]",Nei="[object Set]",Lei="[object String]",Mei="[object Symbol]",Dei="[object ArrayBuffer]",Pei="[object DataView]",FAr,Irt,$Ar;var UAr=Re(()=>{ZP();Srt();eB();Rrt();BAr();iSe();FAr=Zm?Zm.prototype:void 0,Irt=FAr?FAr.valueOf:void 0;$Ar=Bei});function Gei(e,r,i,a,o,l){var h=i&Fei,d=vie(e),p=d.length,m=vie(r),y=m.length;if(p!=y&&!h)return!1;var E=p;while(E--){var w=d[E];if(!(h?w in r:Uei.call(r,w)))return!1}var T=l.get(e),x=l.get(r);if(T&&x)return T==r&&x==e;var k=!0;l.set(e,r),l.set(r,e);var A=h;while(++E{Ert();$ei=Object.prototype,Uei=$ei.hasOwnProperty;GAr=Gei});function Hei(e,r,i,a,o,l){var h=Fl(e),d=Fl(r),p=h?HAr:XE(e),m=d?HAr:XE(r);p=p==VAr?aSe:p,m=m==VAr?aSe:m;var y=p==aSe,E=m==aSe,w=p==m;if(w&&ZS(e)){if(!ZS(r))return!1;h=!0,y=!1}if(w&&!y)return l||(l=new k3),h||DL(e)?nSe(e,r,i,a,o,l):$Ar(e,r,p,i,a,o,l);if(!(i&zei)){var T=y&&qAr.call(e,"__wrapped__"),x=E&&qAr.call(r,"__wrapped__");if(T||x){var k=T?e.value():e,A=x?r.value():r;return l||(l=new k3),o(k,A,i,a,l)}}if(!w)return!1;return l||(l=new k3),GAr(e,r,i,a,o,l)}var zei=1,VAr="[object Arguments]",HAr="[object Array]",aSe="[object Object]",Vei,qAr,YAr;var WAr=Re(()=>{bie();Rrt();UAr();zAr();nB();fg();qH();uie();Vei=Object.prototype,qAr=Vei.hasOwnProperty;YAr=Hei});function jAr(e,r,i,a,o){if(e===r)return!0;if(e==null||r==null||!N0(e)&&!N0(r))return e!==e&&r!==r;return YAr(e,r,i,a,jAr,o)}var sSe;var Ort=Re(()=>{WAr();xC();sSe=jAr});function Wei(e,r,i,a){var o=i.length,l=o,h=!a;if(e==null)return!l;e=Object(e);while(o--){var d=i[o];if(h&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++o{bie();Ort();KAr=Wei});function jei(e){return e===e&&!vf(e)}var oSe;var Nrt=Re(()=>{XS();oSe=jei});function Kei(e){var r=Up(e),i=r.length;while(i--){var a=r[i],o=e[a];r[i]=[a,o,oSe(o)]}return r}var QAr;var ZAr=Re(()=>{Nrt();qR();QAr=Kei});function Xei(e,r){return function(i){if(i==null)return!1;return i[e]===r&&(r!==void 0||(e in Object(i)))}}var lSe;var Lrt=Re(()=>{lSe=Xei});function Qei(e){var r=QAr(e);if(r.length==1&&r[0][2])return lSe(r[0][0],r[0][1]);return function(i){return i===e||KAr(i,e,r)}}var JAr;var e5r=Re(()=>{XAr();ZAr();Lrt();JAr=Qei});function Zei(e,r){return e!=null&&r in Object(e)}var t5r;var r5r=Re(()=>{t5r=Zei});function Jei(e,r,i){r=GL(r,e);var a=-1,o=r.length,l=!1;while(++a{gie();HH();fg();rie();xwe();QH();cSe=Jei});function eti(e,r){return e!=null&&cSe(e,r,t5r)}var uSe;var Drt=Re(()=>{r5r();Mrt();uSe=eti});function nti(e,r){if(WH(e)&&oSe(r))return lSe(C3(e),r);return function(i){var a=c3r(i,e);return a===void 0&&a===r?uSe(i,e):sSe(r,a,tti|rti)}}var tti=1,rti=2,n5r;var i5r=Re(()=>{Ort();u3r();Drt();Mwe();Nrt();Lrt();QH();n5r=nti});function iti(e){return function(r){return r==null?void 0:r[e]}}var hSe;var Prt=Re(()=>{hSe=iti});function ati(e){return function(r){return zL(r,e)}}var a5r;var s5r=Re(()=>{mie();a5r=ati});function sti(e){return WH(e)?hSe(C3(e)):a5r(e)}var o5r;var l5r=Re(()=>{Prt();s5r();Mwe();QH();o5r=sti});function oti(e){if(typeof e=="function")return e;if(e==null)return Q_;if(typeof e=="object")return Fl(e)?n5r(e[0],e[1]):JAr(e);return o5r(e)}var ry;var WR=Re(()=>{e5r();i5r();kL();fg();l5r();ry=oti});function lti(e){return function(r,i,a){var o=-1,l=Object(r),h=a(r),d=h.length;while(d--){var p=h[e?d:++o];if(i(l[p],p,l)===!1)break}return r}}var c5r;var u5r=Re(()=>{c5r=lti});var cti,sq;var dSe=Re(()=>{u5r();cti=c5r(),sq=cti});function uti(e,r){return e&&sq(e,r,Up)}var oq;var fSe=Re(()=>{dSe();qR();oq=uti});function hti(e,r){return function(i,a){if(i==null)return i;if(!Jm(i))return e(i,a);var o=i.length,l=r?o:-1,h=Object(i);while(r?l--:++l{T3();h5r=hti});var dti,HL;var _ie=Re(()=>{fSe();d5r();dti=h5r(oq),HL=dti});var fti=function(){return $p.Date.now()},pSe;var f5r=Re(()=>{KS();pSe=fti});var p5r,pti,gti,Brt;var g5r=Re(()=>{aie();eB();sie();PL();p5r=Object.prototype,pti=p5r.hasOwnProperty,gti=NL(function(e,r){e=Object(e);var i=-1,a=r.length,o=a>2?r[2]:void 0;if(o&&HR(r[0],r[1],o))a=1;while(++i{nie();eB();Eie=mti});function bti(e){return N0(e)&&Jm(e)}var gSe;var $rt=Re(()=>{T3();xC();gSe=bti});function yti(e,r){if(r==="constructor"&&typeof e[r]==="function")return;if(r=="__proto__")return;return e[r]}var wie;var Urt=Re(()=>{wie=yti});function vti(e){return S3(e,e2(e))}var m5r;var b5r=Re(()=>{zH();PL();m5r=vti});function _ti(e,r,i,a,o,l,h){var d=wie(e,i),p=wie(r,i),m=h.get(p);if(m){Eie(e,i,m);return}var y=l?l(d,p,i+"",e,r,h):void 0,E=y===void 0;if(E){var w=Fl(p),T=!w&&ZS(p),x=!w&&!T&&DL(p);if(y=p,w||T||x)if(Fl(d))y=d;else if(gSe(d))y=_we(d);else if(T)E=!1,y=yie(p,!0);else if(x)E=!1,y=Qwe(p,!0);else y=[];else if(y3r(p)||CC(p)){if(y=d,CC(d))y=m5r(d);else if(!vf(d)||w3(d))y=Zwe(p)}else E=!1}if(E)h.set(p,y),o(y,p,a,l,h),h.delete(p);Eie(e,i,y)}var y5r;var v5r=Re(()=>{Frt();mrt();Trt();trt();xrt();HH();fg();$rt();qH();tie();XS();v3r();uie();Urt();b5r();y5r=_ti});function _5r(e,r,i,a,o){if(e===r)return;sq(r,function(l,h){if(o||(o=new k3),vf(l))y5r(e,r,h,i,_5r,a,o);else{var d=a?a(wie(e,h),l,h+"",e,r,o):void 0;if(d===void 0)d=l;Eie(e,h,d)}},e2)}var E5r;var w5r=Re(()=>{bie();Frt();dSe();v5r();XS();PL();Urt();E5r=_5r});function Eti(e,r,i){var a=-1,o=e==null?0:e.length;while(++a{S5r=Eti});function wti(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}var qL;var x5r=Re(()=>{qL=wti});function Sti(e){return typeof e=="function"?e:Q_}var lq;var mSe=Re(()=>{kL();lq=Sti});function Tti(e,r){var i=Fl(e)?wwe:HL;return i(e,lq(r))}var Sn;var Grt=Re(()=>{art();_ie();mSe();fg();Sn=Tti});var C5r=Re(()=>{Grt()});function xti(e,r){var i=[];return HL(e,function(a,o,l){if(r(a,o,l))i.push(a)}),i}var k5r;var A5r=Re(()=>{_ie();k5r=xti});function Cti(e,r){var i=Fl(e)?Vwe:k5r;return i(e,ry(r,3))}var bv;var R5r=Re(()=>{brt();A5r();WR();fg();bv=Cti});function kti(e){return function(r,i,a){var o=Object(r);if(!Jm(r)){var l=ry(i,3);r=Up(r),i=function(d){return l(o[d],d,o)}}var h=e(r,i,a);return h>-1?o[l?r[h]:h]:void 0}}var I5r;var O5r=Re(()=>{WR();T3();qR();I5r=kti});function Rti(e,r,i){var a=e==null?0:e.length;if(!a)return-1;var o=i==null?0:C4r(i);if(o<0)o=Ati(a+o,0);return Swe(e,ry(r,3),o)}var Ati,N5r;var L5r=Re(()=>{srt();WR();k4r();Ati=Math.max;N5r=Rti});var Iti,cq;var M5r=Re(()=>{O5r();L5r();Iti=I5r(N5r),cq=Iti});function Oti(e,r){var i=-1,a=Jm(e)?Array(e.length):[];return HL(e,function(o,l,h){a[++i]=r(o,l,h)}),a}var bSe;var zrt=Re(()=>{_ie();T3();bSe=Oti});function Nti(e,r){var i=Fl(e)?E3:bSe;return i(e,ry(r,3))}var Eh;var D5r=Re(()=>{eie();WR();zrt();fg();Eh=Nti});function Lti(e,r){return e==null?e:sq(e,lq(r),e2)}var Vrt;var P5r=Re(()=>{dSe();mSe();PL();Vrt=Lti});function Mti(e,r){return e&&oq(e,lq(r))}var Hrt;var B5r=Re(()=>{fSe();mSe();Hrt=Mti});function Dti(e,r){return e>r}var F5r;var $5r=Re(()=>{F5r=Dti});function Fti(e,r){return e!=null&&Bti.call(e,r)}var Pti,Bti,U5r;var G5r=Re(()=>{Pti=Object.prototype,Bti=Pti.hasOwnProperty;U5r=Fti});function $ti(e,r){return e!=null&&cSe(e,r,U5r)}var Sie;var z5r=Re(()=>{G5r();Mrt();Sie=$ti});function Gti(e){return typeof e=="string"||!Fl(e)&&N0(e)&&mv(e)==Uti}var Uti="[object String]",V5r;var H5r=Re(()=>{CL();fg();xC();V5r=Gti});function zti(e,r){return E3(r,function(i){return e[i]})}var q5r;var Y5r=Re(()=>{eie();q5r=zti});function Vti(e){return e==null?[]:q5r(e,Up(e))}var QE;var W5r=Re(()=>{Y5r();qR();QE=Vti});function jti(e){if(e==null)return!0;if(Jm(e)&&(Fl(e)||typeof e=="string"||typeof e.splice=="function"||ZS(e)||DL(e)||CC(e)))return!e.length;var r=XE(e);if(r==Hti||r==qti)return!e.size;if(LL(e))return!YH(e).length;for(var i in e)if(Wti.call(e,i))return!1;return!0}var Hti="[object Map]",qti="[object Set]",Yti,Wti,ySe;var j5r=Re(()=>{Lwe();nB();HH();fg();T3();qH();oie();uie();Yti=Object.prototype,Wti=Yti.hasOwnProperty;ySe=jti});function Kti(e){return e===void 0}var Gp;var K5r=Re(()=>{Gp=Kti});function Xti(e,r){return e{vSe=Xti});function Qti(e,r){var i={};return r=ry(r,3),oq(e,function(a,o,l){IL(i,o,r(a,o,l))}),i}var iB;var X5r=Re(()=>{nie();fSe();WR();iB=Qti});function Zti(e,r,i){var a=-1,o=e.length;while(++a{JP();uq=Zti});function Jti(e){return e&&e.length?uq(e,Q_,F5r):void 0}var t2;var Q5r=Re(()=>{_Se();$5r();kL();t2=Jti});var eri,hq;var Z5r=Re(()=>{w5r();ikr();eri=nkr(function(e,r,i){E5r(e,r,i)}),hq=eri});function tri(e){return e&&e.length?uq(e,Q_,vSe):void 0}var jR;var J5r=Re(()=>{_Se();qrt();kL();jR=tri});function rri(e,r){return e&&e.length?uq(e,ry(r,2),vSe):void 0}var aB;var eRr=Re(()=>{_Se();WR();qrt();aB=rri});function nri(e,r,i,a){if(!vf(e))return e;r=GL(r,e);var o=-1,l=r.length,h=l-1,d=e;while(d!=null&&++o{iie();gie();rie();XS();QH();tRr=nri});function iri(e,r,i){var a=-1,o=r.length,l={};while(++a{mie();rRr();gie();nRr=iri});function ari(e,r){var i=e.length;e.sort(r);while(i--)e[i]=e[i].value;return e}var aRr;var sRr=Re(()=>{aRr=ari});function sri(e,r){if(e!==r){var i=e!==void 0,a=e===null,o=e===e,l=KE(e),h=r!==void 0,d=r===null,p=r===r,m=KE(r);if(!d&&!m&&!l&&e>r||l&&h&&p&&!d&&!m||a&&h&&p||!i&&p||!o)return 1;if(!a&&!l&&!m&&e{JP();oRr=sri});function ori(e,r,i){var a=-1,o=e.criteria,l=r.criteria,h=o.length,d=i.length;while(++a=d)return p;var m=i[a];return p*(m=="desc"?-1:1)}}return e.index-r.index}var cRr;var uRr=Re(()=>{lRr();cRr=ori});function lri(e,r,i){if(r.length)r=E3(r,function(l){if(Fl(l))return function(h){return zL(h,l.length===1?l[0]:l)};return l});else r=[Q_];var a=-1;r=E3(r,ML(ry));var o=bSe(e,function(l,h,d){var p=E3(r,function(m){return m(l)});return{criteria:p,index:++a,value:l}});return aRr(o,function(l,h){return cRr(l,h,i)})}var hRr;var dRr=Re(()=>{eie();mie();WR();zrt();sRr();lie();uRr();kL();fg();hRr=lri});var cri,fRr;var pRr=Re(()=>{Prt();cri=hSe("length"),fRr=cri});function Eri(e){var r=gRr.lastIndex=0;while(gRr.test(e))++r;return r}var mRr="\\ud800-\\udfff",uri="\\u0300-\\u036f",hri="\\ufe20-\\ufe2f",dri="\\u20d0-\\u20ff",fri,pri="\\ufe0e\\ufe0f",gri,Yrt,Wrt="\\ud83c[\\udffb-\\udfff]",mri,bRr,yRr="(?:\\ud83c[\\udde6-\\uddff]){2}",vRr="[\\ud800-\\udbff][\\udc00-\\udfff]",bri="\\u200d",_Rr,ERr,yri,vri,_ri,gRr,wRr;var SRr=Re(()=>{fri=uri+hri+dri,gri="["+mRr+"]",Yrt="["+fri+"]",mri="(?:"+Yrt+"|"+Wrt+")",bRr="[^"+mRr+"]",_Rr=mri+"?",ERr="["+pri+"]?",yri="(?:"+bri+"(?:"+[bRr,yRr,vRr].join("|")+")"+ERr+_Rr+")*",vri=ERr+_Rr+yri,_ri="(?:"+[bRr+Yrt+"?",Yrt,yRr,vRr,gri].join("|")+")",gRr=RegExp(Wrt+"(?="+Wrt+")|"+_ri+vri,"g");wRr=Eri});function wri(e){return _3r(e)?wRr(e):fRr(e)}var TRr;var xRr=Re(()=>{pRr();E3r();SRr();TRr=wri});function Sri(e,r){return nRr(e,r,function(i,a){return uSe(e,a)})}var CRr;var kRr=Re(()=>{iRr();Drt();CRr=Sri});var Tri,sB;var ARr=Re(()=>{kRr();m3r();Tri=g3r(function(e,r){return e==null?{}:CRr(e,r)}),sB=Tri});function kri(e,r,i,a){var o=-1,l=Cri(xri((r-e)/(i||1)),0),h=Array(l);while(l--)h[a?l:++o]=e,e+=i;return h}var xri,Cri,RRr;var IRr=Re(()=>{xri=Math.ceil,Cri=Math.max;RRr=kri});function Ari(e){return function(r,i,a){if(a&&typeof a!="number"&&HR(r,i,a))i=a=void 0;if(r=UH(r),i===void 0)i=r,r=0;else i=UH(i);return a=a===void 0?r{IRr();sie();Jtt();ORr=Ari});var Rri,eT;var LRr=Re(()=>{NRr();Rri=ORr(),eT=Rri});function Iri(e,r,i,a,o){return o(e,function(l,h,d){i=a?(a=!1,l):r(i,l,h,d)}),i}var MRr;var DRr=Re(()=>{MRr=Iri});function Ori(e,r,i){var a=Fl(e)?w3r:MRr,o=arguments.length<3;return a(e,ry(r,4),i,o,HL)}var A3;var PRr=Re(()=>{S3r();_ie();WR();DRr();fg();A3=Ori});function Mri(e){if(e==null)return 0;if(Jm(e))return V5r(e)?TRr(e):e.length;var r=XE(e);if(r==Nri||r==Lri)return e.size;return YH(e).length}var Nri="[object Map]",Lri="[object Set]",jrt;var BRr=Re(()=>{Lwe();nB();T3();H5r();xRr();jrt=Mri});var Dri,R3;var FRr=Re(()=>{$we();dRr();aie();sie();Dri=NL(function(e,r){if(e==null)return[];var i=r.length;if(i>1&&HR(e,r[0],r[1]))r=[];else if(i>2&&HR(r[0],r[1],r[2]))r=[r[0]];return hRr(e,JH(r,1),[])}),R3=Dri});var Pri=1/0,Bri,$Rr;var URr=Re(()=>{wrt();V4r();iSe();Bri=!(VL&&1/aq(new VL([,-0]))[1]==Pri)?z4r:function(e){return new VL(e)},$Rr=Bri});function $ri(e,r,i){var a=-1,o=ekr,l=e.length,h=!0,d=[],p=d;if(i)h=!1,o=S5r;else if(l>=Fri){var m=r?null:$Rr(e);if(m)return aq(m);h=!1,o=rSe,p=new tSe}else p=r?[]:d;e:while(++a{krt();tkr();T5r();Art();URr();iSe();GRr=$ri});var Uri,Krt;var VRr=Re(()=>{$we();aie();zRr();$rt();Uri=NL(function(e){return GRr(JH(e,1,gSe,!0))}),Krt=Uri});function zri(e){var r=++Gri;return Bwe(e)+r}var Gri=0,oB;var HRr=Re(()=>{prt();oB=zri});function Vri(e,r,i){var a=-1,o=e.length,l=r.length,h={};while(++a{qRr=Vri});function Hri(e,r){return qRr(e||[],r||[],OL)}var ESe;var WRr=Re(()=>{iie();YRr();ESe=Hri});var wh=Re(()=>{RAr();rrt();g5r();C5r();R5r();M5r();grt();Grt();P5r();B5r();z5r();fg();j5r();tie();K5r();qR();x5r();D5r();X5r();Q5r();Z5r();J5r();eRr();f5r();ARr();LRr();PRr();BRr();FRr();VRr();HRr();W5r();WRr()});class Yh{constructor(e={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=J_(void 0),this._defaultEdgeLabelFn=J_(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[lB]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){if(!w3(e))e=J_(e);return this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Up(this._nodes)}sources(){var e=this;return bv(this.nodes(),function(r){return ySe(e._in[r])})}sinks(){var e=this;return bv(this.nodes(),function(r){return ySe(e._out[r])})}setNodes(e,r){var i=arguments,a=this;return Sn(e,function(o){if(i.length>1)a.setNode(o,r);else a.setNode(o)}),this}setNode(e,r){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){if(arguments.length>1)this._nodes[e]=r;return this}if(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound)this._parent[e]=lB,this._children[e]={},this._children[lB][e]=!0;return this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=(i)=>this.removeEdge(this._edgeObjs[i]);if(delete this._nodes[e],this._isCompound)this._removeFromParentsChildList(e),delete this._parent[e],Sn(this.children(e),(i)=>{this.setParent(i)}),delete this._children[e];Sn(Up(this._in[e]),r),delete this._in[e],delete this._preds[e],Sn(Up(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(Gp(r))r=lB;else{r+="";for(var i=r;!Gp(i);i=this.parent(i))if(i===e)throw Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==lB)return r}}children(e){if(Gp(e))e=lB;if(this._isCompound){var r=this._children[e];if(r)return Up(r)}else if(e===lB)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var r=this._preds[e];if(r)return Up(r)}successors(e){var r=this._sucs[e];if(r)return Up(r)}neighbors(e){var r=this.predecessors(e);if(r)return Krt(r,this.successors(e))}isLeaf(e){var r;if(this.isDirected())r=this.successors(e);else r=this.neighbors(e);return r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Sn(this._nodes,function(l,h){if(e(h))r.setNode(h,l)}),Sn(this._edgeObjs,function(l){if(r.hasNode(l.v)&&r.hasNode(l.w))r.setEdge(l,i.edge(l))});var a={};function o(l){var h=i.parent(l);if(h===void 0||r.hasNode(h))return a[l]=h,h;else if(h in a)return a[h];else return o(h)}if(this._isCompound)Sn(r.nodes(),function(l){r.setParent(l,o(l))});return r}setDefaultEdgeLabel(e){if(!w3(e))e=J_(e);return this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return QE(this._edgeObjs)}setPath(e,r){var i=this,a=arguments;return A3(e,function(o,l){if(a.length>1)i.setEdge(o,l,r);else i.setEdge(o,l);return l}),this}setEdge(){var e,r,i,a,o=!1,l=arguments[0];if(typeof l==="object"&&l!==null&&"v"in l){if(e=l.v,r=l.w,i=l.name,arguments.length===2)a=arguments[1],o=!0}else if(e=l,r=arguments[1],i=arguments[3],arguments.length>2)a=arguments[2],o=!0;if(e=""+e,r=""+r,!Gp(i))i=""+i;var h=Tie(this._isDirected,e,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h)){if(o)this._edgeLabels[h]=a;return this}if(!Gp(i)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[h]=o?a:this._defaultEdgeLabelFn(e,r,i);var d=Yri(this._isDirected,e,r,i);return e=d.v,r=d.w,Object.freeze(d),this._edgeObjs[h]=d,KRr(this._preds[r],e),KRr(this._sucs[e],r),this._in[r][h]=d,this._out[e][h]=d,this._edgeCount++,this}edge(e,r,i){var a=arguments.length===1?Xrt(this._isDirected,arguments[0]):Tie(this._isDirected,e,r,i);return this._edgeLabels[a]}hasEdge(e,r,i){var a=arguments.length===1?Xrt(this._isDirected,arguments[0]):Tie(this._isDirected,e,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(e,r,i){var a=arguments.length===1?Xrt(this._isDirected,arguments[0]):Tie(this._isDirected,e,r,i),o=this._edgeObjs[a];if(o)e=o.v,r=o.w,delete this._edgeLabels[a],delete this._edgeObjs[a],XRr(this._preds[r],e),XRr(this._sucs[e],r),delete this._in[r][a],delete this._out[e][a],this._edgeCount--;return this}inEdges(e,r){var i=this._in[e];if(i){var a=QE(i);if(!r)return a;return bv(a,function(o){return o.v===r})}}outEdges(e,r){var i=this._out[e];if(i){var a=QE(i);if(!r)return a;return bv(a,function(o){return o.w===r})}}nodeEdges(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))}}function KRr(e,r){if(e[r])e[r]++;else e[r]=1}function XRr(e,r){if(!--e[r])delete e[r]}function Tie(e,r,i,a){var o=""+r,l=""+i;if(!e&&o>l){var h=o;o=l,l=h}return o+jRr+l+jRr+(Gp(a)?qri:a)}function Yri(e,r,i,a){var o=""+r,l=""+i;if(!e&&o>l){var h=o;o=l,l=h}var d={v:o,w:l};if(a)d.name=a;return d}function Xrt(e,r){return Tie(e,r.v,r.w,r.name)}var qri="\x00",lB="\x00",jRr="\x01";var Qrt=Re(()=>{wh();Yh.prototype._nodeCount=0;Yh.prototype._edgeCount=0});var tT=Re(()=>{Qrt()});function Zrt(){if(typeof globalThis>"u")return;return globalThis}function jri(){return Boolean(Zrt()?.mermaidCaptureSizes)}function QRr(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}function ZRr(e,r){let i=Zrt();if(!i)return;let a=r.node(),l=((a&&"ownerSVGElement"in a?a.ownerSVGElement:null)??a)?.id??"(unknown)";i.mermaidCapturedSizes??=[];let h={svgId:l,sizes:e};i.mermaidCapturedSizes.push(h),i.mermaidLastCapturedSizes=h}function Jrt(e,r){let i=[];for(let a of r.nodes){if(a.isGroup)continue;i.push({id:a.id,width:a.width??0,height:a.height??0})}if(i.length===0)return;ZRr({metadata:{captureVersion:Wri,capturedAt:new Date().toISOString(),capturedFrom:QRr()},nodes:i},e)}var Wri=1;var JRr=Re(()=>{Ja();I(Zrt,"getCaptureGlobal");I(jri,"shouldCaptureSizes");I(QRr,"capturedFromLocation");I(ZRr,"emitCapturedSizes");I(Jrt,"captureNodeSizes")});function SSe(e,{edgePathsClass:r="edges edgePaths"}={}){let i=e.insert("g").attr("class","root"),a=i.insert("g").attr("class","clusters"),o=i.insert("g").attr("class",r),l=i.insert("g").attr("class","edgeLabels"),h=i.insert("g").attr("class","nodes");return{clusters:a,edgePaths:o,edgeLabels:l,nodes:h,rootGroups:i}}async function tIr(e,r,i){if(r.label){let{shapeSvg:a,bbox:o}=await ss(e,i===void 0?r:{...r,width:i});r.labelBBox={width:o.width,height:o.height},a.remove()}else r.labelBBox={width:0,height:0}}async function TSe(e,r,i){let a=await y3(e,r,i),o=a.node()?.getBBox()??{width:0,height:0};return r.width=o.width,r.height=o.height,a}function rIr(e,r,i){let a=e,o=new Set;while(a){if(a.dir)return a.dir;if(!a.parentId||o.has(a.parentId))break;o.add(a.parentId),a=r.get(a.parentId)}return i}async function nIr(e,r,i={}){let a=new Yh({multigraph:!0,compound:!0}),o=[...r.edges],l=Ar(),h=SSe(e),{edgeLabels:d,nodes:p}=h,m=new Map,y=new Map(r.nodes.map((T)=>[T.id,T])),E=r.direction,w=e.node()!=null;await Promise.all(r.nodes.map(async(T)=>{if(T.isGroup){if(w){let x=i.unwrapGroupLabels&&T.labelType!=="markdown";await tIr(p,T,x?Number.POSITIVE_INFINITY:void 0)}a.setNode(T.id,{...T})}else{if(w){let x=await TSe(p,T,{config:l,dir:rIr(T,y,E)});m.set(T.id,x)}a.setNode(T.id,{...T})}}));for(let T of o){if(w&&Wtt(T))await _3(d,T);if(a.setEdge(T.start,T.end,{...T},T.id),!r.edges.some((k)=>k.id===T.id))r.edges.push(T)}if(globalThis.mermaidCaptureSizes){await Promise.resolve().then(() => JRr());Jrt(e,r)}return{graph:a,groups:h,nodeElements:m}}function hB({prepareLayout:e,measureLayout:r,runLayoutCore:i,paintLayout:a,afterPaint:o,paintOptions:l}){let h=r??CSe;return I(async function(p,m,y,E){let w=m.select("g");(y?.insertMarkers??FH)(w,p.markers,p.type,p.diagramId),hIr();let T={element:w,helpers:y,options:E};T.preparedLayout=await e?.(p,T);let x=await h(p,T),k=await i(p,T),A={...T,measure:x};if(a)await a(p,A,k);else await dIr(p,A,l);await o?.(p,A,k)},"render")}function hIr(){GCr(),jCr(),HCr(),Kri()}async function CSe(e,{element:r},i){return await nIr(r,e,i)}async function dIr(e,r,i={}){let{measure:a}=r,{groups:o}=a;for(let h of i.getNodes?.(e,r)??e.nodes){if(i.skipNode?.(h,r))continue;await fIr(o,h,r,i)}let l=gIr(e.nodes);for(let h of e.edges){if(mIr(h,i))continue;await bIr(o,h,l,e,i,r)}}async function fIr(e,r,i,a){if(r.clusterNode)v3(r);else if(pIr(r,i,a))await TL(e.clusters,r);else v3(r)}function pIr(e,r,i){return e.isGroup===!0&&(i.isCluster?.(e,r)??!0)}function gIr(e){let r=new Map;for(let i of e)if(i?.id)r.set(i.id,i);return r}function mIr(e,r){return e.isLayoutOnly||Boolean(r.skipEdge?.(e))}async function bIr(e,r,i,a,o,l){let h=xL(e.edgePaths,{...r},o.clusterDb??new Map,a.type,ent(r.start,r,i,l,o),ent(r.end,r,i,l,o),a.diagramId,yIr(r,o),a.layoutAlgorithm);if(Wtt(r)){if(!QP.has(r.id))await _3(e.edgeLabels,r);vIr(r,h)}}function ent(e,r,i,a,o){return o.getEdgeNode?.(e,r,a)??(e?i.get(e)??{}:{})}function yIr(e,r){return typeof r.skipIntersect==="function"?r.skipIntersect(e):r.skipIntersect??!1}function vIr(e,r){let i=r?.updatedPath??r?.originalPath,a=ea(),{subGraphTitleTotalMargin:o}=SC({flowchart:a.flowchart??{}});if(e.label){let l=QP.get(e.id),{x:h,y:d}=jtt(e,r);l.attr("transform",`translate(${h}, ${d+o/2})`)}for(let[l,h]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(h){let{x:d,y:p}=_Ir(e,l,i);im.get(e.id)[l].attr("transform",`translate(${d}, ${p})`)}}function _Ir(e,r,i){let a=e.terminalLabelCenters?.[r];if(a)return{...a};if(!i)return{x:e.x,y:e.y};let o=r.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return Ts.calcTerminalLabelPosition(o?10:0,Jri[r],i)}var vl,cB,iIr,Kri,xie,Xri,aIr,sIr,Qri,uB,eIr,oIr,lIr,cIr,xSe,uIr,Zri,Jri;var kSe=Re(()=>{K1();Qm();dg();ip();Ql();eo();Zs();Ja();tT();tT();I(SSe,"createLayoutElementGroups");I(tIr,"measureGroupLabel");I(TSe,"insertMeasuredNode");I(rIr,"resolveNodeDir");I(nIr,"createGraphWithElements");vl=new Map,cB=new Map,iIr=new Map,Kri=I(()=>{cB.clear(),iIr.clear(),vl.clear()},"clear"),xie=I((e,r)=>{let i=cB.get(r)||[];return Ze.trace("In isDescendant",r," ",e," = ",i.includes(e)),i.includes(e)},"isDescendant"),Xri=I((e,r)=>{let i=cB.get(r)||[];if(Ze.info("Descendants of ",r," is ",i),Ze.info("Edge is ",e),e.v===r||e.w===r)return!1;if(!i)return Ze.debug("Tilt, ",r,",not in descendants"),!1;return i.includes(e.v)||xie(e.v,r)||xie(e.w,r)||i.includes(e.w)},"edgeInCluster"),aIr=I((e,r,i,a)=>{Ze.debug("Copying children of ",e,"root",a,"data",r.node(e),a);let o=r.children(e)||[];if(e!==a)o.push(e);Ze.debug("Copying (nodes) clusterId",e,"nodes",o),o.forEach((l)=>{if(r.children(l).length>0)aIr(l,r,i,a);else{let h=r.node(l);if(Ze.info("cp ",l," to ",a," with parent ",e),i.setNode(l,h),a!==r.parent(l))Ze.debug("Setting parent",l,r.parent(l)),i.setParent(l,r.parent(l));if(e!==a&&l!==e)Ze.debug("Setting parent",l,e),i.setParent(l,e);else Ze.info("In copy ",e,"root",a,"data",r.node(e),a),Ze.debug("Not Setting parent for node=",l,"cluster!==rootId",e!==a,"node!==clusterId",l!==e);let d=r.edges(l);Ze.debug("Copying Edges",d),d.forEach((p)=>{Ze.info("Edge",p);let m=r.edge(p.v,p.w,p.name);Ze.info("Edge data",m,a);try{if(Xri(p,a))Ze.info("Copying as ",p.v,p.w,m,p.name),i.setEdge(p.v,p.w,m,p.name),Ze.info("newGraph edges ",i.edges(),i.edge(i.edges()[0]));else Ze.info("Skipping copy of edge ",p.v,"-->",p.w," rootId: ",a," clusterId:",e)}catch(y){Ze.error(y)}})}Ze.debug("Removing node",l),r.removeNode(l)})},"copy"),sIr=I((e,r)=>{let i=r.children(e),a=[...i];for(let o of i)iIr.set(o,e),a=[...a,...sIr(o,r)];return a},"extractDescendants"),Qri=I((e,r,i)=>{let a=e.edges().filter((p)=>p.v===r||p.w===r),o=e.edges().filter((p)=>p.v===i||p.w===i),l=a.map((p)=>({v:p.v===r?i:p.v,w:p.w===r?r:p.w})),h=o.map((p)=>({v:p.v,w:p.w}));return l.filter((p)=>h.some((m)=>p.v===m.v&&p.w===m.w))},"findCommonEdges"),uB=I((e,r,i)=>{let a=r.children(e);if(Ze.trace("Searching children of id ",e,a),a.length<1)return e;let o;for(let l of a){let h=uB(l,r,i),d=Qri(r,i,h);if(h)if(d.length>0)o=h;else return h}return o},"findNonClusterChild"),eIr=I((e)=>{if(!vl.has(e))return e;if(!vl.get(e).externalConnections)return e;if(vl.has(e))return vl.get(e).id;return e},"getAnchorId"),oIr=I((e,r)=>{if(!e||r>10){Ze.debug("Opting out, no graph ");return}else Ze.debug("Opting in, graph ");e.nodes().forEach(function(i){if(e.children(i).length>0)Ze.debug("Cluster identified",i," Replacement id in edges: ",uB(i,e,i)),cB.set(i,sIr(i,e)),vl.set(i,{id:uB(i,e,i),clusterData:e.node(i)})}),e.nodes().forEach(function(i){let a=e.children(i),o=e.edges();if(a.length>0)Ze.debug("Cluster identified",i,cB),o.forEach((l)=>{let h=xie(l.v,i),d=xie(l.w,i);if(h^d)Ze.debug("Edge: ",l," leaves cluster ",i),Ze.debug("Descendants of XXX ",i,": ",cB.get(i)),vl.get(i).externalConnections=!0});else Ze.debug("Not a cluster ",i,cB)});for(let i of vl.keys()){let a=vl.get(i).id,o=e.parent(a);if(o!==i&&vl.has(o)&&!vl.get(o).externalConnections)vl.get(i).id=o;let l=e.edges().some((h)=>h.v===i);if(a&&vl.get(i)?.externalConnections&&l&&uIr(e,a,i)){let h=Zri(e,i,e.parent(a));if(h)vl.get(i).id=h}}e.edges().forEach(function(i){let a=e.edge(i);Ze.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),Ze.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(e.edge(i)));let{v:o,w:l}=i;if(Ze.debug("Fix XXX",vl,"ids:",i.v,i.w,"Translating: ",vl.get(i.v)," --- ",vl.get(i.w)),vl.get(i.v)||vl.get(i.w)){if(Ze.debug("Fixing and trying - removing XXX",i.v,i.w,i.name),o=eIr(i.v),l=eIr(i.w),e.removeEdge(i.v,i.w,i.name),o!==i.v){let h=e.parent(o);vl.get(h).externalConnections=!0,a.fromCluster=i.v}if(l!==i.w){let h=e.parent(l);vl.get(h).externalConnections=!0,a.toCluster=i.w}Ze.debug("Fix Replacing with XXX",o,l,i.name),e.setEdge(o,l,a,i.name)}}),lIr(e,0),Ze.trace(vl)},"adjustClustersAndEdges"),lIr=I((e,r)=>{if(r>10){Ze.error("Bailing out");return}let i=e.nodes(),a=!1;for(let o of i){let l=e.children(o);a=a||l.length>0}if(!a){Ze.debug("Done, no node has children",e.nodes());return}Ze.debug("Nodes = ",i,r);for(let o of i)if(Ze.debug("Extracting node",o,vl,vl.has(o)&&!vl.get(o).externalConnections,!e.parent(o),e.node(o),e.children("D")," Depth ",r),!vl.has(o))Ze.debug("Not a cluster",o,r);else if(!vl.get(o).externalConnections&&e.children(o)&&e.children(o).length>0){Ze.debug("Cluster without external connections, without a parent and with children",o,r);let h=e.graph().rankdir==="TB"?"LR":"TB";if(vl.get(o)?.clusterData?.dir)h=vl.get(o).clusterData.dir,Ze.debug("Fixing dir",vl.get(o).clusterData.dir,h);let d=new Yh({multigraph:!0,compound:!0}).setGraph({rankdir:h,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});aIr(o,e,d,o),e.setNode(o,{clusterNode:!0,id:o,clusterData:vl.get(o).clusterData,label:vl.get(o).label,graph:d})}else Ze.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!vl.get(o).externalConnections," no parent: ",!e.parent(o)," children ",e.children(o)&&e.children(o).length>0,e.children("D"),r),Ze.debug(vl);i=e.nodes(),Ze.debug("New list of nodes",i);for(let o of i){let l=e.node(o);if(Ze.debug(" Now next level",o,l),l?.clusterNode)lIr(l.graph,r+1)}},"extractor"),cIr=I((e,r)=>{if(r.length===0)return[];let i=Object.assign([],r);return r.forEach((a)=>{let o=e.children(a),l=cIr(e,o);i=[...i,...l]}),i},"sorter"),xSe=I((e)=>cIr(e,e.children()),"sortNodesByHierarchy"),uIr=I((e,r,i)=>{let a=e.parent(r);while(a&&a!==i){let o=vl.get(a);if(o&&!o.externalConnections)return!0;a=e.parent(a)}return!1},"isNodeInExtractableCluster"),Zri=I((e,r,i)=>{let a=e.children(r)??[];for(let o of a){if(o===i||xie(o,i))continue;let l=uB(o,e,r);if(!l)continue;if(!uIr(e,l,r))return l}return null},"findSafeAnchorNode");I(hB,"createCommonLayoutRenderer");I(hIr,"clearLayoutRenderState");I(CSe,"defaultMeasureLayout");I(dIr,"paintLayoutData");I(fIr,"paintLayoutNode");I(pIr,"shouldPaintAsCluster");I(gIr,"buildNodeLookup");I(mIr,"shouldSkipPaintEdge");I(bIr,"paintLayoutEdge");I(ent,"getRenderedNode");I(yIr,"shouldSkipIntersect");I(vIr,"positionRenderedEdgeLabel");Jri={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};I(_Ir,"terminalLabelTranslate")});var wIr=Cr(function(EIr,tnt){(function(e){if(typeof EIr==="object"&&typeof tnt<"u")tnt.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var r;if(typeof window<"u")r=window;else if(typeof global<"u")r=global;else if(typeof self<"u")r=self;else r=this;r.ELK=e()}})(function(){var e,r,i;return function(){function a(o,l,h){function d(y,E){if(!l[y]){if(!o[y]){var w=WWe;if(!E&&w)return w(y,!0);if(p)return p(y,!0);var T=Error("Cannot find module '"+y+"'");throw T.code="MODULE_NOT_FOUND",T}var x=l[y]={exports:{}};o[y][0].call(x.exports,function(k){var A=o[y][1][k];return d(A||k)},x,x.exports,a,o,l,h)}return l[y].exports}for(var p=WWe,m=0;m0&&arguments[0]!==void 0?arguments[0]:{},T=w.defaultLayoutOptions,x=T===void 0?{}:T,k=w.algorithms,A=k===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:k,{workerFactory:R,workerUrl:N}=w;if(d(this,y),this.defaultLayoutOptions=x,this.initialized=!1,typeof N>"u"&&typeof R>"u")throw Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var L=R;if(typeof N<"u"&&typeof R>"u")L=function(P){return new Worker(P)};var B=L(N);if(typeof B.postMessage!=="function")throw TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new m(B),this.worker.postMessage({cmd:"register",algorithms:A}).then(function(D){return E.initialized=!0}).catch(console.err)}return h(y,[{key:"layout",value:function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=T.layoutOptions,k=x===void 0?this.defaultLayoutOptions:x,A=T.logging,R=A===void 0?!1:A,N=T.measureExecutionTime,L=N===void 0?!1:N;if(!w)return Promise.reject(Error("Missing mandatory parameter 'graph'."));return this.worker.postMessage({cmd:"layout",graph:w,layoutOptions:k,options:{logging:R,measureExecutionTime:L}})}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){if(this.worker)this.worker.terminate()}}]),y}();l.default=p;var m=function(){function y(E){var w=this;if(d(this,y),E===void 0)throw Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=E,this.worker.onmessage=function(T){setTimeout(function(){w.receive(w,T)},0)}}return h(y,[{key:"postMessage",value:function(w){var T=this.id||0;this.id=T+1,w.id=T;var x=this;return new Promise(function(k,A){x.resolvers[T]=function(R,N){if(R)x.convertGwtStyleError(R),A(R);else k(N)},x.worker.postMessage(w)})}},{key:"receive",value:function(w,T){var x=T.data,k=w.resolvers[x.id];if(k)if(delete w.resolvers[x.id],x.error)k(x.error);else k(null,x.data)}},{key:"terminate",value:function(){if(this.worker)this.worker.terminate()}},{key:"convertGwtStyleError",value:function(w){if(!w)return;var T=w.__java$exception;if(T){if(T.cause&&T.cause.backingJsObject)w.cause=T.cause.backingJsObject,this.convertGwtStyleError(w.cause);delete w.__java$exception}}}]),y}()},{}],2:[function(a,o,l){(function(h){(function(){var d;if(typeof window<"u")d=window;else if(typeof h<"u")d=h;else if(typeof self<"u")d=self;var p,m,y,E,w;function T(){}function x(){}function k(){}function A(){}function R(){}function N(){}function L(){}function B(){}function D(){}function P(){}function F(){}function H(){}function K(){}function Q(){}function Z(){}function Y(){}function j(){}function te(){}function X(){}function W(){}function J(){}function z(){}function ne(){}function ie(){}function le(){}function se(){}function he(){}function ye(){}function xe(){}function Ie(){}function Ee(){}function Ue(){}function Me(){}function Xe(){}function je(){}function Qe(){}function St(){}function pt(){}function Vt(){}function Xt(){}function rr(){}function We(){}function Nt(){}function ct(){}function bt(){}function Pe(){}function Ge(){}function qe(){}function Ke(){}function Je(){}function De(){}function oe(){}function pe(){}function fe(){}function be(){}function ze(){}function Ce(){}function _e(){}function ke(){}function it(){}function ut(){}function gt(){}function vt(){}function ir(){}function qt(){}function cr(){}function tr(){}function Zt(){}function lr(){}function Kt(){}function In(){}function Et(){}function Xn(){}function Yt(){}function Bn(){}function si(){}function hn(){}function Ii(){}function Vn(){}function Ei(){}function yn(){}function Li(){}function Ia(){}function tt(){}function Fn(){}function Hn(){}function _t(){}function Sr(){}function on(){}function gn(){}function On(){}function as(){}function Ir(){}function un(){}function zn(){}function Di(){}function aa(){}function Ca(){}function os(){}function ma(){}function Yn(){}function Tn(){}function Pi(){}function Mi(){}function Wn(){}function ba(){}function Lt(){}function Gc(){}function zt(){}function fs(){}function ya(){}function rs(){}function xs(){}function Yr(){}function Zl(){}function dt(){}function ro(){}function yt(){}function fl(){}function lb(){}function dd(){}function cb(){}function $u(){}function c1(){}function pl(){}function kh(){}function Lv(){}function Mv(){}function u1(){}function Kp(){}function xf(){}function Xh(){}function pm(){}function $0(){}function Uu(){}function zF(){}function lA(){}function w2(){}function S2(){}function ub(){}function oi(){}function Mt(){}function Or(){}function $n(){}function Qn(){}function Cs(){}function wo(){}function Il(){}function dp(){}function T2(){}function gm(){}function h1(){}function cA(){}function d1(){}function kW(){}function Vgt(){}function Hgt(){}function qgt(){}function Ygt(){}function Wgt(){}function jgt(){}function Kgt(){}function Xgt(){}function Qgt(){}function Zgt(){}function Jgt(){}function emt(){}function tmt(){}function rmt(){}function nmt(){}function imt(){}function amt(){}function smt(){}function omt(){}function lmt(){}function cmt(){}function umt(){}function hmt(){}function dmt(){}function fmt(){}function pmt(){}function gmt(){}function mmt(){}function bmt(){}function ymt(){}function vmt(){}function _mt(){}function Emt(){}function wmt(){}function Smt(){}function Tmt(){}function xmt(){}function Cmt(){}function kmt(){}function Amt(){}function Rmt(){}function Imt(){}function Omt(){}function Nmt(){}function Lmt(){}function Mmt(){}function Dmt(){}function Pmt(){}function Bmt(){}function Fmt(){}function $mt(){}function Umt(){}function Gmt(){}function zmt(){}function Vmt(){}function Hmt(){}function qmt(){}function Ymt(){}function Wmt(){}function jmt(){}function Kmt(){}function Xmt(){}function Qmt(){}function Zmt(){}function Jmt(){}function e1t(){}function t1t(){}function r1t(){}function n1t(){}function i1t(){}function a1t(){}function s1t(){}function o1t(){}function l1t(){}function c1t(){}function u1t(){}function h1t(){}function d1t(){}function f1t(){}function p1t(){}function g1t(){}function m1t(){}function b1t(){}function y1t(){}function v1t(){}function _1t(){}function E1t(){}function w1t(){}function S1t(){}function mAe(){}function T1t(){}function x1t(){}function C1t(){}function k1t(){}function A1t(){}function R1t(){}function I1t(){}function O1t(){}function N1t(){}function L1t(){}function M1t(){}function D1t(){}function P1t(){}function B1t(){}function F1t(){}function $1t(){}function U1t(){}function G1t(){}function z1t(){}function V1t(){}function H1t(){}function q1t(){}function Y1t(){}function W1t(){}function j1t(){}function K1t(){}function X1t(){}function Q1t(){}function Z1t(){}function J1t(){}function ebt(){}function tbt(){}function rbt(){}function nbt(){}function ibt(){}function abt(){}function sbt(){}function obt(){}function lbt(){}function cbt(){}function ubt(){}function hbt(){}function dbt(){}function fbt(){}function pbt(){}function gbt(){}function mbt(){}function bbt(){}function ybt(){}function vbt(){}function _bt(){}function Ebt(){}function wbt(){}function Sbt(){}function Tbt(){}function xbt(){}function Cbt(){}function kbt(){}function Abt(){}function Rbt(){}function Ibt(){}function Obt(){}function Nbt(){}function Lbt(){}function Mbt(){}function Dbt(){}function Pbt(){}function Bbt(){}function Fbt(){}function $bt(){}function Ubt(){}function Gbt(){}function zbt(){}function bAe(){}function Vbt(){}function Hbt(){}function qbt(){}function Ybt(){}function Wbt(){}function jbt(){}function Kbt(){}function Xbt(){}function Qbt(){}function Zbt(){}function yAe(){}function Jbt(){}function eyt(){}function tyt(){}function ryt(){}function nyt(){}function iyt(){}function vAe(){}function _Ae(){}function ayt(){}function EAe(){}function wAe(){}function syt(){}function oyt(){}function lyt(){}function cyt(){}function uyt(){}function hyt(){}function dyt(){}function fyt(){}function pyt(){}function gyt(){}function myt(){}function SAe(){}function byt(){}function yyt(){}function vyt(){}function _yt(){}function Eyt(){}function wyt(){}function Syt(){}function Tyt(){}function xyt(){}function Cyt(){}function kyt(){}function Ayt(){}function Ryt(){}function Iyt(){}function Oyt(){}function Nyt(){}function Lyt(){}function Myt(){}function Dyt(){}function Pyt(){}function Byt(){}function Fyt(){}function $yt(){}function Uyt(){}function Gyt(){}function zyt(){}function Vyt(){}function Hyt(){}function qyt(){}function Yyt(){}function Wyt(){}function jyt(){}function Kyt(){}function Xyt(){}function Qyt(){}function Zyt(){}function Jyt(){}function evt(){}function tvt(){}function rvt(){}function nvt(){}function ivt(){}function avt(){}function svt(){}function ovt(){}function lvt(){}function cvt(){}function uvt(){}function hvt(){}function dvt(){}function fvt(){}function pvt(){}function gvt(){}function mvt(){}function bvt(){}function yvt(){}function vvt(){}function _vt(){}function Evt(){}function wvt(){}function Svt(){}function Tvt(){}function xvt(){}function Cvt(){}function kvt(){}function Avt(){}function Rvt(){}function Ivt(){}function Ovt(){}function Nvt(){}function Lvt(){}function Mvt(){}function Dvt(){}function Pvt(){}function Bvt(){}function Fvt(){}function $vt(){}function Uvt(){}function Gvt(){}function zvt(){}function Vvt(){}function Hvt(){}function qvt(){}function Yvt(){}function Wvt(){}function jvt(){}function Kvt(){}function Xvt(){}function Qvt(){}function Zvt(){}function Jvt(){}function e_t(){}function t_t(){}function r_t(){}function n_t(){}function i_t(){}function a_t(){}function s_t(){}function o_t(){}function l_t(){}function c_t(){}function u_t(){}function h_t(){}function d_t(){}function f_t(){}function p_t(){}function g_t(){}function m_t(){}function b_t(){}function y_t(){}function v_t(){}function __t(){}function E_t(){}function w_t(){}function ple(){}function gle(){}function S_t(){}function mle(){}function T_t(){}function x_t(){}function C_t(){}function k_t(){}function A_t(){}function R_t(){}function I_t(){}function O_t(){}function N_t(){}function L_t(){}function TAe(){}function M_t(){}function D_t(){}function P_t(){}function B_t(){}function F_t(){}function $_t(){}function U_t(){}function G_t(){}function z_t(){}function V_t(){}function H_t(){}function x2(){}function q_t(){}function uA(){}function xAe(){}function Y_t(){}function W_t(){}function j_t(){}function K_t(){}function X_t(){}function Q_t(){}function Z_t(){}function J_t(){}function e2t(){}function t2t(){}function r2t(){}function n2t(){}function i2t(){}function a2t(){}function s2t(){}function o2t(){}function l2t(){}function c2t(){}function u2t(){}function dr(){}function h2t(){}function d2t(){}function f2t(){}function p2t(){}function g2t(){}function m2t(){}function b2t(){}function y2t(){}function v2t(){}function _2t(){}function E2t(){}function w2t(){}function S2t(){}function ble(){}function T2t(){}function x2t(){}function C2t(){}function AW(){}function k2t(){}function yle(){}function RW(){}function A2t(){}function CAe(){}function R2t(){}function I2t(){}function O2t(){}function N2t(){}function L2t(){}function M2t(){}function IW(){}function D2t(){}function P2t(){}function OW(){}function B2t(){}function NW(){}function F2t(){}function kAe(){}function $2t(){}function vle(){}function AAe(){}function U2t(){}function G2t(){}function z2t(){}function V2t(){}function H2t(){}function q2t(){}function Y2t(){}function W2t(){}function j2t(){}function K2t(){}function X2t(){}function Q2t(){}function Z2t(){}function J2t(){}function eEt(){}function VI(){}function _le(){}function tEt(){}function rEt(){}function nEt(){}function iEt(){}function aEt(){}function sEt(){}function oEt(){}function lEt(){}function cEt(){}function uEt(){}function hEt(){}function dEt(){}function fEt(){}function pEt(){}function gEt(){}function mEt(){}function bEt(){}function yEt(){}function vEt(){}function _Et(){}function EEt(){}function wEt(){}function SEt(){}function TEt(){}function xEt(){}function CEt(){}function kEt(){}function AEt(){}function REt(){}function IEt(){}function OEt(){}function NEt(){}function LEt(){}function MEt(){}function DEt(){}function PEt(){}function BEt(){}function FEt(){}function $Et(){}function UEt(){}function GEt(){}function zEt(){}function VEt(){}function HEt(){}function qEt(){}function YEt(){}function WEt(){}function jEt(){}function KEt(){}function XEt(){}function QEt(){}function ZEt(){}function JEt(){}function ewt(){}function twt(){}function rwt(){}function nwt(){}function iwt(){}function awt(){}function swt(){}function owt(){}function lwt(){}function cwt(){}function uwt(){}function hwt(){}function dwt(){}function fwt(){}function pwt(){}function gwt(){}function mwt(){}function bwt(){}function ywt(){}function vwt(){}function _wt(){}function Ewt(){}function wwt(){}function Swt(){}function Twt(){}function xwt(){}function Cwt(){}function kwt(){}function Awt(){}function Rwt(){}function Iwt(){}function Owt(){}function Nwt(){}function Lwt(){}function Mwt(){}function Dwt(){}function Pwt(){}function Bwt(){}function Fwt(){}function $wt(){}function Uwt(){}function Gwt(){}function zwt(){}function Vwt(){}function Hwt(){}function qwt(){}function Ywt(){}function Wwt(){}function RAe(){}function jwt(){}function Kwt(){}function Xwt(t){}function hA(t){}function Ele(){bM()}function Qwt(){n$()}function Zwt(){vQ()}function Jwt(){kde()}function eSt(){z8()}function tSt(){BMe()}function rSt(){c0()}function nSt(){W7e()}function iSt(){VU()}function aSt(){i$()}function sSt(){N$()}function oSt(){LAt()}function lSt(){QA()}function cSt(){o8t()}function uSt(){YNe()}function hSt(){KLt()}function dSt(){WNe()}function fSt(){F8t()}function pSt(){jLt()}function gSt(){J6()}function mSt(){E9t()}function bSt(){_9t()}function ySt(){H7t()}function vSt(){w9t()}function _St(){a_()}function ESt(){sj()}function wSt(){PDe()}function SSt(){Qt()}function TSt(){S9t()}function xSt(){X9t()}function CSt(){XLt()}function kSt(){E$t()}function ASt(){QLt()}function RSt(){DVt()}function ISt(){p8e()}function OSt(){Tb()}function NSt(){PBt()}function LSt(){Oc()}function MSt(){s7t()}function DSt(){XA()}function PSt(){X8e()}function BSt(){s_()}function FSt(){Q8e()}function $St(){Lg()}function USt(){jU()}function GSt(){Jfe()}function zSt(){lfe()}function U0(){P6t()}function VSt(){aX()}function HSt(){xQ()}function IAe(){Hi()}function qSt(){GX()}function YSt(){S7e()}function OAe(){lde()}function NAe(){WQ()}function WSt(){lDe()}function LAe(t){vn(t)}function jSt(t){this.a=t}function LW(t){this.a=t}function KSt(t){this.a=t}function XSt(t){this.a=t}function QSt(t){this.a=t}function ZSt(t){this.a=t}function JSt(t){this.a=t}function eTt(t){this.a=t}function MAe(t){this.a=t}function DAe(t){this.a=t}function tTt(t){this.a=t}function rTt(t){this.a=t}function wle(t){this.a=t}function nTt(t){this.a=t}function iTt(t){this.a=t}function Sle(t){this.a=t}function Tle(t){this.a=t}function aTt(t){this.a=t}function xle(t){this.a=t}function sTt(t){this.a=t}function oTt(t){this.a=t}function lTt(t){this.a=t}function PAe(t){this.b=t}function cTt(t){this.c=t}function uTt(t){this.a=t}function hTt(t){this.a=t}function dTt(t){this.a=t}function fTt(t){this.a=t}function pTt(t){this.a=t}function gTt(t){this.a=t}function mTt(t){this.a=t}function bTt(t){this.a=t}function yTt(t){this.a=t}function vTt(t){this.a=t}function _Tt(t){this.a=t}function ETt(t){this.a=t}function wTt(t){this.a=t}function BAe(t){this.a=t}function FAe(t){this.a=t}function MW(t){this.a=t}function VF(t){this.a=t}function C2(){this.a=[]}function STt(t,n){t.a=n}function hrn(t,n){t.a=n}function drn(t,n){t.b=n}function frn(t,n){t.b=n}function prn(t,n){t.b=n}function $Ae(t,n){t.j=n}function grn(t,n){t.g=n}function mrn(t,n){t.i=n}function brn(t,n){t.c=n}function yrn(t,n){t.c=n}function vrn(t,n){t.d=n}function _rn(t,n){t.d=n}function k2(t,n){t.k=n}function Ern(t,n){t.c=n}function UAe(t,n){t.c=n}function GAe(t,n){t.a=n}function wrn(t,n){t.a=n}function Srn(t,n){t.f=n}function Trn(t,n){t.a=n}function xrn(t,n){t.b=n}function Cle(t,n){t.d=n}function DW(t,n){t.i=n}function zAe(t,n){t.o=n}function Crn(t,n){t.r=n}function krn(t,n){t.a=n}function Arn(t,n){t.b=n}function TTt(t,n){t.e=n}function Rrn(t,n){t.f=n}function VAe(t,n){t.g=n}function Irn(t,n){t.e=n}function Orn(t,n){t.f=n}function Nrn(t,n){t.f=n}function kle(t,n){t.a=n}function Ale(t,n){t.b=n}function Lrn(t,n){t.n=n}function Mrn(t,n){t.a=n}function Drn(t,n){t.c=n}function Prn(t,n){t.c=n}function Brn(t,n){t.c=n}function Frn(t,n){t.a=n}function $rn(t,n){t.a=n}function Urn(t,n){t.d=n}function Grn(t,n){t.d=n}function zrn(t,n){t.e=n}function Vrn(t,n){t.e=n}function Hrn(t,n){t.g=n}function qrn(t,n){t.f=n}function Yrn(t,n){t.j=n}function Wrn(t,n){t.a=n}function jrn(t,n){t.a=n}function Krn(t,n){t.b=n}function xTt(t){t.b=t.a}function CTt(t){t.c=t.d.d}function HAe(t){this.a=t}function qAe(t){this.a=t}function YAe(t){this.a=t}function A2(t){this.a=t}function R2(t){this.a=t}function HF(t){this.a=t}function kTt(t){this.a=t}function WAe(t){this.a=t}function qF(t){this.a=t}function PW(t){this.a=t}function hb(t){this.a=t}function TT(t){this.a=t}function ATt(t){this.a=t}function RTt(t){this.a=t}function Rle(t){this.b=t}function HI(t){this.b=t}function qI(t){this.b=t}function Ile(t){this.a=t}function ITt(t){this.a=t}function Ole(t){this.c=t}function me(t){this.c=t}function OTt(t){this.c=t}function cM(t){this.d=t}function jAe(t){this.a=t}function pi(t){this.a=t}function NTt(t){this.a=t}function KAe(t){this.a=t}function XAe(t){this.a=t}function QAe(t){this.a=t}function ZAe(t){this.a=t}function JAe(t){this.a=t}function e5e(t){this.a=t}function YI(t){this.a=t}function LTt(t){this.a=t}function MTt(t){this.a=t}function WI(t){this.a=t}function DTt(t){this.a=t}function PTt(t){this.a=t}function BTt(t){this.a=t}function FTt(t){this.a=t}function $Tt(t){this.a=t}function UTt(t){this.a=t}function GTt(t){this.a=t}function zTt(t){this.a=t}function VTt(t){this.a=t}function HTt(t){this.a=t}function qTt(t){this.a=t}function YTt(t){this.a=t}function WTt(t){this.a=t}function jTt(t){this.a=t}function KTt(t){this.a=t}function uM(t){this.a=t}function XTt(t){this.a=t}function QTt(t){this.a=t}function ZTt(t){this.a=t}function JTt(t){this.a=t}function BW(t){this.a=t}function ext(t){this.a=t}function txt(t){this.a=t}function jI(t){this.a=t}function t5e(t){this.a=t}function rxt(t){this.a=t}function nxt(t){this.a=t}function ixt(t){this.a=t}function axt(t){this.a=t}function sxt(t){this.a=t}function oxt(t){this.a=t}function r5e(t){this.a=t}function n5e(t){this.a=t}function i5e(t){this.a=t}function hM(t){this.a=t}function FW(t){this.e=t}function KI(t){this.a=t}function lxt(t){this.a=t}function dA(t){this.a=t}function a5e(t){this.a=t}function cxt(t){this.a=t}function uxt(t){this.a=t}function hxt(t){this.a=t}function dxt(t){this.a=t}function fxt(t){this.a=t}function pxt(t){this.a=t}function gxt(t){this.a=t}function mxt(t){this.a=t}function bxt(t){this.a=t}function yxt(t){this.a=t}function vxt(t){this.a=t}function s5e(t){this.a=t}function _xt(t){this.a=t}function Ext(t){this.a=t}function wxt(t){this.a=t}function Sxt(t){this.a=t}function Txt(t){this.a=t}function xxt(t){this.a=t}function Cxt(t){this.a=t}function kxt(t){this.a=t}function Axt(t){this.a=t}function Rxt(t){this.a=t}function Ixt(t){this.a=t}function Oxt(t){this.a=t}function Nxt(t){this.a=t}function Lxt(t){this.a=t}function Mxt(t){this.a=t}function Dxt(t){this.a=t}function Pxt(t){this.a=t}function Bxt(t){this.a=t}function Fxt(t){this.a=t}function $xt(t){this.a=t}function Uxt(t){this.a=t}function Gxt(t){this.a=t}function zxt(t){this.a=t}function Vxt(t){this.a=t}function Hxt(t){this.a=t}function qxt(t){this.a=t}function Yxt(t){this.a=t}function Wxt(t){this.a=t}function jxt(t){this.a=t}function Kxt(t){this.a=t}function Xxt(t){this.a=t}function Qxt(t){this.a=t}function Zxt(t){this.a=t}function Jxt(t){this.a=t}function eCt(t){this.a=t}function tCt(t){this.a=t}function rCt(t){this.a=t}function nCt(t){this.a=t}function iCt(t){this.c=t}function aCt(t){this.b=t}function sCt(t){this.a=t}function oCt(t){this.a=t}function lCt(t){this.a=t}function cCt(t){this.a=t}function uCt(t){this.a=t}function hCt(t){this.a=t}function dCt(t){this.a=t}function fCt(t){this.a=t}function pCt(t){this.a=t}function gCt(t){this.a=t}function mCt(t){this.a=t}function bCt(t){this.a=t}function yCt(t){this.a=t}function vCt(t){this.a=t}function _Ct(t){this.a=t}function ECt(t){this.a=t}function wCt(t){this.a=t}function SCt(t){this.a=t}function TCt(t){this.a=t}function xCt(t){this.a=t}function CCt(t){this.a=t}function kCt(t){this.a=t}function ACt(t){this.a=t}function RCt(t){this.a=t}function ICt(t){this.a=t}function OCt(t){this.a=t}function NCt(t){this.a=t}function db(t){this.a=t}function jC(t){this.a=t}function LCt(t){this.a=t}function MCt(t){this.a=t}function DCt(t){this.a=t}function PCt(t){this.a=t}function BCt(t){this.a=t}function FCt(t){this.a=t}function $Ct(t){this.a=t}function UCt(t){this.a=t}function GCt(t){this.a=t}function zCt(t){this.a=t}function VCt(t){this.a=t}function HCt(t){this.a=t}function qCt(t){this.a=t}function YCt(t){this.a=t}function WCt(t){this.a=t}function jCt(t){this.a=t}function KCt(t){this.a=t}function XCt(t){this.a=t}function QCt(t){this.a=t}function ZCt(t){this.a=t}function JCt(t){this.a=t}function e4t(t){this.a=t}function t4t(t){this.a=t}function r4t(t){this.a=t}function n4t(t){this.a=t}function i4t(t){this.a=t}function $W(t){this.a=t}function a4t(t){this.f=t}function s4t(t){this.a=t}function o4t(t){this.a=t}function l4t(t){this.a=t}function c4t(t){this.a=t}function u4t(t){this.a=t}function h4t(t){this.a=t}function d4t(t){this.a=t}function f4t(t){this.a=t}function p4t(t){this.a=t}function g4t(t){this.a=t}function m4t(t){this.a=t}function b4t(t){this.a=t}function y4t(t){this.a=t}function v4t(t){this.a=t}function _4t(t){this.a=t}function E4t(t){this.a=t}function w4t(t){this.a=t}function S4t(t){this.a=t}function T4t(t){this.a=t}function x4t(t){this.a=t}function C4t(t){this.a=t}function k4t(t){this.a=t}function A4t(t){this.a=t}function R4t(t){this.a=t}function I4t(t){this.a=t}function O4t(t){this.a=t}function N4t(t){this.a=t}function L4t(t){this.a=t}function Nle(t){this.a=t}function o5e(t){this.a=t}function va(t){this.b=t}function M4t(t){this.a=t}function D4t(t){this.a=t}function P4t(t){this.a=t}function B4t(t){this.a=t}function F4t(t){this.a=t}function $4t(t){this.a=t}function U4t(t){this.a=t}function G4t(t){this.b=t}function z4t(t){this.a=t}function YF(t){this.a=t}function V4t(t){this.a=t}function H4t(t){this.a=t}function l5e(t){this.c=t}function UW(t){this.e=t}function GW(t){this.a=t}function zW(t){this.a=t}function Lle(t){this.a=t}function q4t(t){this.d=t}function Y4t(t){this.a=t}function c5e(t){this.a=t}function u5e(t){this.a=t}function sw(t){this.e=t}function dM(){this.a=0}function Zn(){Jh(this)}function Ut(){Wce(this)}function Mle(){RNt(this)}function W4t(){Xwt(this)}function ow(){this.c=gWe}function j4t(t,n){t.b+=n}function Xrn(t,n){n.Wb(t)}function Qrn(t){return t.a}function Zrn(t){return t.a}function Jrn(t){return t.a}function enn(t){return t.a}function tnn(t){return t.a}function ve(t){return t.e}function rnn(){return null}function nnn(){return null}function inn(){K5e(),BIn()}function ann(t){t.b.Of(t.e)}function K4t(t){t.b=new ece}function fM(t,n){t.b=n-t.b}function pM(t,n){t.a=n-t.a}function rn(t,n){t.push(n)}function X4t(t,n){t.sort(n)}function Q4t(t,n){n.jd(t.a)}function snn(t,n){Xs(n,t)}function onn(t,n,s){t.Yd(s,n)}function WF(t,n){t.e=n,n.b=t}function h5e(t){wm(),this.a=t}function Z4t(t){wm(),this.a=t}function J4t(t){wm(),this.a=t}function Dle(t){Rw(),this.a=t}function ekt(t){x6(),Tme.le(t)}function d5e(){d5e=z,new Zn}function I2(){vIt.call(this)}function f5e(){vIt.call(this)}function p5e(){I2.call(this)}function Ple(){I2.call(this)}function tkt(){I2.call(this)}function jF(){I2.call(this)}function Ah(){I2.call(this)}function fA(){I2.call(this)}function bi(){I2.call(this)}function Cf(){I2.call(this)}function rkt(){I2.call(this)}function yc(){I2.call(this)}function nkt(){I2.call(this)}function ikt(){this.a=this}function VW(){this.Bb|=256}function akt(){this.b=new dRt}function xT(t,n){t.length=n}function HW(t,n){Gt(t.a,n)}function lnn(t,n){$Me(t.c,n)}function cnn(t,n){$s(t.b,n)}function unn(t,n){fQ(t.a,n)}function hnn(t,n){Dde(t.a,n)}function XI(t,n){ha(t.e,n)}function pA(t){RQ(t.c,t.b)}function dnn(t,n){t.kc().Nb(n)}function g5e(t){this.a=iyn(t)}function Rs(){this.a=new Zn}function skt(){this.a=new Zn}function m5e(){this.a=new xAt}function qW(){this.a=new Ut}function Ble(){this.a=new Ut}function b5e(){this.a=new Ut}function fp(){this.a=new Kt}function O2(){this.a=new t8t}function y5e(){this.a=new dt}function v5e(){this.a=new WLt}function _5e(){this.a=new a6t}function okt(){this.a=new Ut}function lkt(){this.a=new Ut}function ckt(){this.a=new Ut}function E5e(){this.a=new Ut}function ukt(){this.d=new Ut}function hkt(){this.a=new f7t}function dkt(){this.a=new Rs}function fkt(){this.a=new Zn}function pkt(){this.b=new Zn}function gkt(){this.b=new Ut}function w5e(){this.e=new Ut}function mkt(){this.a=new _St}function bkt(){this.d=new Ut}function ykt(){yLt.call(this)}function vkt(){yLt.call(this)}function _kt(){Ut.call(this)}function S5e(){p5e.call(this)}function T5e(){qW.call(this)}function Ekt(){Xj.call(this)}function wkt(){E5e.call(this)}function gM(){W4t.call(this)}function Fle(){gM.call(this)}function gA(){W4t.call(this)}function x5e(){gA.call(this)}function Skt(){R5e.call(this)}function Tkt(){R5e.call(this)}function xkt(){R5e.call(this)}function Ckt(){I5e.call(this)}function mM(){k2t.call(this)}function C5e(){k2t.call(this)}function Rh(){Va.call(this)}function kkt(){zkt.call(this)}function Akt(){zkt.call(this)}function Rkt(){Zn.call(this)}function Ikt(){Zn.call(this)}function Okt(){Zn.call(this)}function $le(){C9t.call(this)}function Nkt(){Rs.call(this)}function Lkt(){VW.call(this)}function Ule(){cIe.call(this)}function k5e(){Zn.call(this)}function Gle(){cIe.call(this)}function zle(){Zn.call(this)}function Mkt(){Zn.call(this)}function A5e(){NW.call(this)}function Dkt(){A5e.call(this)}function Pkt(){NW.call(this)}function Bkt(){RAe.call(this)}function R5e(){this.a=new Rs}function Fkt(){this.a=new Zn}function $kt(){this.a=new Ut}function I5e(){this.a=new Zn}function mA(){this.a=new Va}function Ukt(){this.j=new Ut}function Gkt(){this.a=new $3t}function zkt(){this.a=new B2t}function O5e(){this.a=new b_t}function bM(){bM=z,mme=new x}function Vle(){Vle=z,bme=new Hkt}function Hle(){Hle=z,yme=new Vkt}function Vkt(){Sle.call(this,"")}function Hkt(){Sle.call(this,"")}function qkt(t){KDt.call(this,t)}function Ykt(t){KDt.call(this,t)}function N5e(t){MAe.call(this,t)}function L5e(t){pAt.call(this,t)}function fnn(t){pAt.call(this,t)}function pnn(t){L5e.call(this,t)}function gnn(t){L5e.call(this,t)}function mnn(t){L5e.call(this,t)}function Wkt(t){whe.call(this,t)}function jkt(t){whe.call(this,t)}function Kkt(t){k6t.call(this,t)}function Xkt(t){rRe.call(this,t)}function yM(t){rj.call(this,t)}function M5e(t){rj.call(this,t)}function Qkt(t){rj.call(this,t)}function D5e(t){Fwn.call(this,t)}function P5e(t){D5e.call(this,t)}function vc(t){jOt.call(this,t)}function Zkt(t){vc.call(this,t)}function bA(){VF.call(this,{})}function Jkt(){Jkt=z,DXt=new W}function YW(){YW=z,Eme=new KRt}function e3t(){e3t=z,LFe=new T}function B5e(){B5e=z,MFe=new Q}function WW(){WW=z,YD=new j}function qle(t){l6(),this.a=t}function Yle(t){uLe(),this.a=t}function lw(t){Iue(),this.f=t}function Wle(t){Iue(),this.f=t}function t3t(t){D6t(),this.a=t}function r3t(t){t.b=null,t.c=0}function bnn(t,n){t.e=n,Dzt(t,n)}function ynn(t,n){t.a=n,xSn(t)}function jle(t,n,s){t.a[n.g]=s}function vnn(t,n,s){U2n(s,t,n)}function _nn(t,n){gon(n.i,t.n)}function n3t(t,n){$1n(t).Cd(n)}function Enn(t,n){t.a.ec().Mc(n)}function i3t(t,n){return t.g-n.g}function wnn(t,n){return t*t/n}function er(t){return vn(t),t}function rt(t){return vn(t),t}function KF(t){return vn(t),t}function Snn(t){return new MW(t)}function Tnn(t){return new $T(t)}function F5e(t){return vn(t),t}function xnn(t){return vn(t),t}function jW(t){vc.call(this,t)}function Gl(t){vc.call(this,t)}function a3t(t){vc.call(this,t)}function Kle(t){jOt.call(this,t)}function QI(t){vc.call(this,t)}function dn(t){vc.call(this,t)}function zl(t){vc.call(this,t)}function s3t(t){vc.call(this,t)}function yA(t){vc.call(this,t)}function fy(t){vc.call(this,t)}function py(t){vc.call(this,t)}function vA(t){vc.call(this,t)}function mm(t){vc.call(this,t)}function Xle(t){vc.call(this,t)}function Ti(t){vc.call(this,t)}function Qh(t){vn(t),this.a=t}function $5e(t){return X2(t),t}function vM(t){Q6e(t,t.length)}function _M(t){return t.b==t.c}function CT(t){return!!t&&t.b}function Cnn(t){return!!t&&t.k}function knn(t){return!!t&&t.j}function Ann(t,n,s){t.c.Ef(n,s)}function o3t(t,n){t.be(n),n.ae(t)}function _A(t){wm(),this.a=mi(t)}function Qle(){this.a=wi(mi(ll))}function l3t(){throw ve(new bi)}function Rnn(){throw ve(new bi)}function U5e(){throw ve(new bi)}function c3t(){throw ve(new bi)}function Inn(){throw ve(new bi)}function Onn(){throw ve(new bi)}function KW(){KW=z,x6()}function gy(){HF.call(this,"")}function EM(){HF.call(this,"")}function Dv(){HF.call(this,"")}function KC(){HF.call(this,"")}function G5e(t){Gl.call(this,t)}function z5e(t){Gl.call(this,t)}function bm(t){dn.call(this,t)}function ZI(t){qI.call(this,t)}function u3t(t){ZI.call(this,t)}function Zle(t){qj.call(this,t)}function Jle(t){EIe.call(this,t,0)}function ece(){LOe.call(this,12,3)}function we(t,n){return GLt(t,n)}function XW(t,n){return Bhe(t,n)}function Nnn(t,n){return t.a-n.a}function Lnn(t,n){return t.a-n.a}function Mnn(t,n){return t.a-n.a}function Dnn(t,n){return n in t.a}function h3t(t){return t.a?t.b:0}function Pnn(t){return t.a?t.b:0}function Bnn(t,n,s){n.Cd(t.a[s])}function Fnn(t,n,s){n.Pe(t.a[s])}function $nn(t,n){t.b=new sl(n)}function Unn(t,n){return t.b=n,t}function d3t(t,n){return t.c=n,t}function f3t(t,n){return t.f=n,t}function Gnn(t,n){return t.g=n,t}function V5e(t,n){return t.a=n,t}function H5e(t,n){return t.f=n,t}function znn(t,n){return t.k=n,t}function q5e(t,n){return t.a=n,t}function Vnn(t,n){return t.e=n,t}function Y5e(t,n){return t.e=n,t}function Hnn(t,n){return t.f=n,t}function qnn(t,n){t.b=!0,t.d=n}function Ynn(t,n){return t.b-n.b}function Wnn(t,n){return t.g-n.g}function jnn(t,n){return t?0:n-1}function p3t(t,n){return t?0:n-1}function Knn(t,n){return t?n-1:0}function Xnn(t,n){return t.s-n.s}function Qnn(t,n){return n.rg(t)}function cw(t,n){return t.b=n,t}function QW(t,n){return t.a=n,t}function uw(t,n){return t.c=n,t}function hw(t,n){return t.d=n,t}function dw(t,n){return t.e=n,t}function W5e(t,n){return t.f=n,t}function wM(t,n){return t.a=n,t}function JI(t,n){return t.b=n,t}function e6(t,n){return t.c=n,t}function pr(t,n){return t.c=n,t}function $r(t,n){return t.b=n,t}function gr(t,n){return t.d=n,t}function mr(t,n){return t.e=n,t}function Znn(t,n){return t.f=n,t}function br(t,n){return t.g=n,t}function yr(t,n){return t.a=n,t}function vr(t,n){return t.i=n,t}function _r(t,n){return t.j=n,t}function Jnn(t,n){a_(),Ec(n,t)}function ein(t,n,s){mun(t.a,n,s)}function ZW(t){hue.call(this,t)}function g3t(t){vyn.call(this,t)}function m3t(t){KNt.call(this,t)}function j5e(t){KNt.call(this,t)}function Pv(t){$w.call(this,t)}function b3t(t){ehe.call(this,t)}function y3t(t){ehe.call(this,t)}function v3t(){nIe.call(this,"")}function Oo(){this.a=0,this.b=0}function _3t(){this.b=0,this.a=0}function E3t(t,n){t.b=0,KT(t,n)}function w3t(t,n){return t.k=n,t}function tin(t,n){return t.j=n,t}function rin(t,n){t.c=n,t.b=!0}function S3t(){S3t=z,jXt=fEn()}function Bv(){Bv=z,Vsr=T2n()}function T3t(){T3t=z,bo=PEn()}function K5e(){K5e=z,O_=U6()}function t6(){t6=z,pWe=x2n()}function x3t(){x3t=z,Ror=C2n()}function X5e(){X5e=z,qc=wSn()}function G0(t){return t.e&&t.e()}function C3t(t){return t.l|t.m<<22}function k3t(t,n){return t.c._b(n)}function A3t(t,n){return xBt(t.b,n)}function tce(t){return!t?null:t.d}function nin(t){return!t?null:t.g}function iin(t){return!t?null:t.i}function N2(t){return gb(t),t.o}function XC(t,n){return t.a+=n,t}function rce(t,n){return t.a+=n,t}function my(t,n){return t.a+=n,t}function fw(t,n){return t.a+=n,t}function Q5e(t,n){while(t.Bd(n));}function JW(t){this.a=new EA(t)}function R3t(){throw ve(new bi)}function I3t(){throw ve(new bi)}function O3t(){throw ve(new bi)}function N3t(){throw ve(new bi)}function L3t(){throw ve(new bi)}function M3t(){throw ve(new bi)}function by(t){this.a=new Lue(t)}function D3t(){this.a=new nD(cHe)}function P3t(){this.b=new nD(AVe)}function B3t(){this.a=new nD(LHe)}function F3t(){this.b=new nD(gye)}function $3t(){this.b=new nD(gye)}function ej(t){this.a=0,this.b=t}function Z5e(t){fqt(),XIn(this,t)}function r6(t){return Yv(t),t.a}function XF(t){return t.b!=t.d.c}function J5e(t,n){return t.d[n.p]}function U3t(t,n){return f4n(t,n)}function eRe(t,n,s){t.splice(n,s)}function QC(t,n){while(t.Re(n));}function G3t(t){t.c?Jzt(t):eVt(t)}function z3t(){throw ve(new bi)}function V3t(){throw ve(new bi)}function H3t(){throw ve(new bi)}function q3t(){throw ve(new bi)}function Y3t(){throw ve(new bi)}function W3t(){throw ve(new bi)}function j3t(){throw ve(new bi)}function K3t(){throw ve(new bi)}function X3t(){throw ve(new bi)}function Q3t(){throw ve(new bi)}function ain(){throw ve(new yc)}function sin(){throw ve(new yc)}function QF(t){this.a=new Z3t(t)}function Z3t(t){umn(this,t,zwn())}function ZF(t){return!t||ANt(t)}function JF(t){return jg[t]!=-1}function oin(){dJ!=0&&(dJ=0),fJ=-1}function J3t(){gme==null&&(gme=[])}function e$(t,n){h4.call(this,t,n)}function n6(t,n){e$.call(this,t,n)}function eAt(t,n){this.a=t,this.b=n}function tAt(t,n){this.a=t,this.b=n}function rAt(t,n){this.a=t,this.b=n}function nAt(t,n){this.a=t,this.b=n}function iAt(t,n){this.a=t,this.b=n}function aAt(t,n){this.a=t,this.b=n}function sAt(t,n){this.a=t,this.b=n}function i6(t,n){this.e=t,this.d=n}function tRe(t,n){this.b=t,this.c=n}function oAt(t,n){this.b=t,this.a=n}function lAt(t,n){this.b=t,this.a=n}function cAt(t,n){this.b=t,this.a=n}function uAt(t,n){this.b=t,this.a=n}function hAt(t,n){this.a=t,this.b=n}function nce(t,n){this.a=t,this.b=n}function dAt(t,n){this.a=t,this.f=n}function pw(t,n){this.g=t,this.i=n}function ui(t,n){this.f=t,this.g=n}function fAt(t,n){this.b=t,this.c=n}function pAt(t){hIe(t.dc()),this.c=t}function lin(t,n){this.a=t,this.b=n}function gAt(t,n){this.a=t,this.b=n}function mAt(t){this.a=b(mi(t),15)}function rRe(t){this.a=b(mi(t),15)}function bAt(t){this.a=b(mi(t),85)}function tj(t){this.b=b(mi(t),85)}function rj(t){this.b=b(mi(t),51)}function nj(){this.q=new d.Date}function ice(t,n){this.a=t,this.b=n}function yAt(t,n){return Zu(t.b,n)}function t$(t,n){return t.b.Hc(n)}function vAt(t,n){return t.b.Ic(n)}function _At(t,n){return t.b.Qc(n)}function EAt(t,n){return t.b.Hc(n)}function wAt(t,n){return t.c.uc(n)}function SAt(t,n){return da(t.c,n)}function z0(t,n){return t.a._b(n)}function TAt(t,n){return t>n&&n0}function uce(t,n){return Kc(t,n)<0}function UAt(t,n){return Cue(t.a,n)}function kin(t,n){zLt.call(this,t,n)}function cRe(t){que(),k6t.call(this,t)}function uRe(t,n){DOt(t,t.length,n)}function a$(t,n){cNt(t,t.length,n)}function IM(t,n){return t.a.get(n)}function GAt(t,n){return Zu(t.e,n)}function hRe(t){return vn(t),!1}function dRe(t){this.a=b(mi(t),229)}function dj(t){Gr.call(this,t,21)}function fj(t,n){ui.call(this,t,n)}function hce(t,n){ui.call(this,t,n)}function zAt(t,n){this.b=t,this.a=n}function pj(t,n){this.d=t,this.e=n}function VAt(t,n){this.a=t,this.b=n}function HAt(t,n){this.a=t,this.b=n}function qAt(t,n){this.a=t,this.b=n}function YAt(t,n){this.a=t,this.b=n}function SA(t,n){this.a=t,this.b=n}function WAt(t,n){this.b=t,this.a=n}function fRe(t,n){this.b=t,this.a=n}function pRe(t,n){ui.call(this,t,n)}function gRe(t,n){ui.call(this,t,n)}function ZC(t,n){ui.call(this,t,n)}function dce(t,n){ui.call(this,t,n)}function fce(t,n){ui.call(this,t,n)}function pce(t,n){ui.call(this,t,n)}function gj(t,n){ui.call(this,t,n)}function mRe(t,n){this.b=t,this.a=n}function mj(t,n){ui.call(this,t,n)}function bRe(t,n){this.b=t,this.a=n}function bj(t,n){ui.call(this,t,n)}function jAt(t,n){this.b=t,this.a=n}function yRe(t,n){ui.call(this,t,n)}function gce(t,n){ui.call(this,t,n)}function s$(t,n){ui.call(this,t,n)}function OM(t,n,s){t.splice(n,0,s)}function Ain(t,n,s){t.Mb(s)&&n.Cd(s)}function Rin(t,n,s){n.Pe(t.a.Ye(s))}function Iin(t,n,s){n.Dd(t.a.Ze(s))}function Oin(t,n,s){n.Cd(t.a.Kb(s))}function Nin(t,n){return Oh(t.c,n)}function Lin(t,n){return Oh(t.e,n)}function yj(t,n){ui.call(this,t,n)}function vj(t,n){ui.call(this,t,n)}function NM(t,n){ui.call(this,t,n)}function vRe(t,n){ui.call(this,t,n)}function Is(t,n){ui.call(this,t,n)}function _j(t,n){ui.call(this,t,n)}function KAt(t,n){this.a=t,this.b=n}function XAt(t,n){this.a=t,this.b=n}function QAt(t,n){this.a=t,this.b=n}function ZAt(t,n){this.a=t,this.b=n}function JAt(t,n){this.a=t,this.b=n}function e5t(t,n){this.a=t,this.b=n}function t5t(t,n){this.b=t,this.a=n}function r5t(t,n){this.b=t,this.a=n}function _Re(t,n){this.b=t,this.a=n}function o6(t,n){this.c=t,this.d=n}function n5t(t,n){this.e=t,this.d=n}function i5t(t,n){this.a=t,this.b=n}function a5t(t,n){this.a=t,this.b=n}function s5t(t,n){this.a=t,this.b=n}function o5t(t,n){this.b=t,this.a=n}function l5t(t,n){this.b=n,this.c=t}function Ej(t,n){ui.call(this,t,n)}function o$(t,n){ui.call(this,t,n)}function mce(t,n){ui.call(this,t,n)}function ERe(t,n){ui.call(this,t,n)}function LM(t,n){ui.call(this,t,n)}function bce(t,n){ui.call(this,t,n)}function yce(t,n){ui.call(this,t,n)}function l$(t,n){ui.call(this,t,n)}function wRe(t,n){ui.call(this,t,n)}function vce(t,n){ui.call(this,t,n)}function MM(t,n){ui.call(this,t,n)}function SRe(t,n){ui.call(this,t,n)}function DM(t,n){ui.call(this,t,n)}function PM(t,n){ui.call(this,t,n)}function AT(t,n){ui.call(this,t,n)}function _ce(t,n){ui.call(this,t,n)}function Ece(t,n){ui.call(this,t,n)}function TRe(t,n){ui.call(this,t,n)}function c$(t,n){ui.call(this,t,n)}function JC(t,n){ui.call(this,t,n)}function wce(t,n){ui.call(this,t,n)}function wj(t,n){ui.call(this,t,n)}function u$(t,n){ui.call(this,t,n)}function RT(t,n){ui.call(this,t,n)}function Sj(t,n){ui.call(this,t,n)}function xRe(t,n){ui.call(this,t,n)}function Sce(t,n){ui.call(this,t,n)}function Tce(t,n){ui.call(this,t,n)}function xce(t,n){ui.call(this,t,n)}function Cce(t,n){ui.call(this,t,n)}function kce(t,n){ui.call(this,t,n)}function Ace(t,n){ui.call(this,t,n)}function Rce(t,n){ui.call(this,t,n)}function c5t(t,n){this.b=t,this.a=n}function CRe(t,n){ui.call(this,t,n)}function u5t(t,n){this.a=t,this.b=n}function h5t(t,n){this.a=t,this.b=n}function d5t(t,n){this.a=t,this.b=n}function kRe(t,n){ui.call(this,t,n)}function ARe(t,n){ui.call(this,t,n)}function f5t(t,n){this.a=t,this.b=n}function Min(t,n){return p6(),n!=t}function h$(t){return Pn(t.a),t.b}function Ice(t){return GTn(t,t.c),t}function p5t(){return S3t(),new jXt}function g5t(){tK(),this.a=new qIe}function m5t(){FQ(),this.a=new Rs}function b5t(){uhe(),this.b=new Rs}function y5t(t,n){this.b=t,this.d=n}function v5t(t,n){this.a=t,this.b=n}function _5t(t,n){this.a=t,this.b=n}function E5t(t,n){this.a=t,this.b=n}function w5t(t,n){this.b=t,this.a=n}function RRe(t,n){ui.call(this,t,n)}function IRe(t,n){ui.call(this,t,n)}function Tj(t,n){ui.call(this,t,n)}function bw(t,n){ui.call(this,t,n)}function Oce(t,n){ui.call(this,t,n)}function xj(t,n){ui.call(this,t,n)}function ORe(t,n){ui.call(this,t,n)}function NRe(t,n){ui.call(this,t,n)}function d$(t,n){ui.call(this,t,n)}function LRe(t,n){ui.call(this,t,n)}function Nce(t,n){ui.call(this,t,n)}function Cj(t,n){ui.call(this,t,n)}function Lce(t,n){ui.call(this,t,n)}function Mce(t,n){ui.call(this,t,n)}function Dce(t,n){ui.call(this,t,n)}function Pce(t,n){ui.call(this,t,n)}function MRe(t,n){ui.call(this,t,n)}function Bce(t,n){ui.call(this,t,n)}function DRe(t,n){ui.call(this,t,n)}function f$(t,n){ui.call(this,t,n)}function Fce(t,n){ui.call(this,t,n)}function PRe(t,n){ui.call(this,t,n)}function p$(t,n){ui.call(this,t,n)}function BRe(t,n){ui.call(this,t,n)}function S5t(t,n){this.b=t,this.a=n}function T5t(t,n){this.b=t,this.a=n}function x5t(t,n){this.b=t,this.a=n}function C5t(t,n){this.b=t,this.a=n}function FRe(t,n){this.a=t,this.b=n}function k5t(t,n){this.a=t,this.b=n}function A5t(t,n){this.a=t,this.b=n}function Dt(t,n){this.a=t,this.b=n}function BM(t,n){ui.call(this,t,n)}function g$(t,n){ui.call(this,t,n)}function TA(t,n){ui.call(this,t,n)}function FM(t,n){ui.call(this,t,n)}function m$(t,n){ui.call(this,t,n)}function $ce(t,n){ui.call(this,t,n)}function kj(t,n){ui.call(this,t,n)}function $M(t,n){ui.call(this,t,n)}function Uce(t,n){ui.call(this,t,n)}function Aj(t,n){ui.call(this,t,n)}function e4(t,n){ui.call(this,t,n)}function b$(t,n){ui.call(this,t,n)}function UM(t,n){ui.call(this,t,n)}function GM(t,n){ui.call(this,t,n)}function y$(t,n){ui.call(this,t,n)}function Rj(t,n){ui.call(this,t,n)}function t4(t,n){ui.call(this,t,n)}function Gce(t,n){ui.call(this,t,n)}function R5t(t,n){ui.call(this,t,n)}function Ij(t,n){ui.call(this,t,n)}function I5t(t,n){this.a=t,this.b=n}function O5t(t,n){this.a=t,this.b=n}function N5t(t,n){this.a=t,this.b=n}function L5t(t,n){this.a=t,this.b=n}function M5t(t,n){this.a=t,this.b=n}function D5t(t,n){this.a=t,this.b=n}function js(t,n){this.a=t,this.b=n}function P5t(t,n){this.a=t,this.b=n}function B5t(t,n){this.a=t,this.b=n}function F5t(t,n){this.a=t,this.b=n}function $5t(t,n){this.a=t,this.b=n}function U5t(t,n){this.a=t,this.b=n}function G5t(t,n){this.a=t,this.b=n}function z5t(t,n){this.b=t,this.a=n}function V5t(t,n){this.b=t,this.a=n}function H5t(t,n){this.b=t,this.a=n}function q5t(t,n){this.b=t,this.a=n}function Y5t(t,n){this.a=t,this.b=n}function W5t(t,n){this.a=t,this.b=n}function Oj(t,n){ui.call(this,t,n)}function j5t(t,n){this.a=t,this.b=n}function K5t(t,n){this.a=t,this.b=n}function xA(t,n){ui.call(this,t,n)}function X5t(t,n){this.f=t,this.c=n}function $Re(t,n){return Oh(t.g,n)}function Din(t,n){return Oh(n.b,t)}function Q5t(t,n){return qde(t.a,n)}function Pin(t,n){return-t.b.af(n)}function Bin(t,n){!!t&&Ki(oV,t,n)}function URe(t,n){t.i=null,kX(t,n)}function Fin(t,n,s){z$t(n,Bfe(t,s))}function $in(t,n,s){z$t(n,Bfe(t,s))}function Uin(t,n){pCn(t.a,b(n,58))}function Z5t(t,n){ugn(t.a,b(n,12))}function Nj(t,n){this.a=t,this.b=n}function J5t(t,n){this.a=t,this.b=n}function eRt(t,n){this.a=t,this.b=n}function tRt(t,n){this.a=t,this.b=n}function rRt(t,n){this.a=t,this.b=n}function nRt(t,n){this.d=t,this.b=n}function iRt(t,n){this.e=t,this.a=n}function v$(t,n){this.b=t,this.c=n}function GRe(t,n){this.i=t,this.g=n}function zRe(t,n){this.d=t,this.e=n}function Gin(t,n){xgn(new kn(t),n)}function Lj(t){return PU(t.c,t.b)}function Jl(t){return!t?null:t.md()}function nt(t){return t==null?null:t}function So(t){return typeof t===Ipe}function IT(t){return typeof t===d5}function OT(t){return typeof t===FDe}function yw(t,n){return Kc(t,n)==0}function Mj(t,n){return Kc(t,n)>=0}function zM(t,n){return Kc(t,n)!=0}function Dj(t,n){return zmn(t.Kc(),n)}function Uv(t,n){return t.Rd().Xb(n)}function aRt(t){return gd(t),t.d.gc()}function Pj(t){return e8(t==null),t}function VM(t,n){return t.a+=""+n,t}function Ol(t,n){return t.a+=""+n,t}function HM(t,n){return t.a+=""+n,t}function pu(t,n){return t.a+=""+n,t}function Bi(t,n){return t.a+=""+n,t}function VRe(t,n){return t.a+=""+n,t}function zin(t){return""+(vn(t),t)}function sRt(t){Jh(this),C8(this,t)}function oRt(){NOe(),F6e.call(this)}function lRt(t,n){V6e.call(this,t,n)}function cRt(t,n){V6e.call(this,t,n)}function Bj(t,n){V6e.call(this,t,n)}function al(t,n){cs(t,n,t.c.b,t.c)}function r4(t,n){cs(t,n,t.a,t.a.a)}function HRe(t){return qr(t,0),null}function uRt(){this.b=0,this.a=!1}function hRt(){this.b=0,this.a=!1}function dRt(){this.b=new EA(WT(12))}function fRt(){fRt=z,zQt=di(Zde())}function pRt(){pRt=z,uJt=di(Tzt())}function gRt(){gRt=z,Lnr=di(nPt())}function qRe(){qRe=z,d5e(),DFe=new Zn}function V0(t){return t.a=0,t.b=0,t}function mRt(t,n){return t.a=n.g+1,t}function zce(t,n){PT.call(this,t,n)}function Dr(t,n){es.call(this,t,n)}function n4(t,n){GRe.call(this,t,n)}function bRt(t,n){S$.call(this,t,n)}function Vce(t,n){Y6.call(this,t,n)}function qi(t,n){uj(),Ki(Ate,t,n)}function yRt(t,n){t.q.setTime(z2(n))}function Vin(t){d.clearTimeout(t)}function Hin(t){return mi(t),new qM(t)}function vRt(t,n){return nt(t)===nt(n)}function _Rt(t,n){return t.a.a.a.cc(n)}function Hce(t,n){return Of(t.a,0,n)}function YRe(t){return Wun(b(t,74))}function CA(t){return Ks((vn(t),t))}function qin(t){return Ks((vn(t),t))}function ERt(t){return Qu(t.l,t.m,t.h)}function WRe(t,n){return jc(t.a,n.a)}function Yin(t,n){return oNt(t.a,n.a)}function Win(t,n){return Ra(t.a,n.a)}function ym(t,n){return t.indexOf(n)}function jin(t,n){return t.j[n.p]==2}function vw(t,n){return t==n?0:t?1:-1}function Fj(t){return t<10?"0"+t:""+t}function cc(t){return typeof t===FDe}function Kin(t){return t==gS||t==Cx}function Xin(t){return t==gS||t==xx}function wRt(t,n){return jc(t.g,n.g)}function jRe(t){return rc(t.b.b,t,0)}function SRt(){hK.call(this,0,0,0,0)}function vm(){KAe.call(this,new Ty)}function KRe(t,n){O6(t,0,t.length,n)}function Qin(t,n){return Gt(t.a,n),n}function Zin(t,n){return r0(),n.a+=t}function Jin(t,n){return r0(),n.a+=t}function ean(t,n){return r0(),n.c+=t}function tan(t,n){return Gt(t.c,n),t}function XRe(t,n){return Xd(t.a,n),t}function TRt(t){this.a=p5t(),this.b=t}function xRt(t){this.a=p5t(),this.b=t}function sl(t){this.a=t.a,this.b=t.b}function qM(t){this.a=t,Ele.call(this)}function CRt(t){this.a=t,Ele.call(this)}function kA(){If.call(this,0,0,0,0)}function $j(t){return Xd(new Ns,t)}function kRt(t){return RK(b(t,123))}function Ad(t){return t.vh()&&t.wh()}function i4(t){return t!=qg&&t!=A_}function pb(t){return t==Kl||t==sc}function a4(t){return t==jf||t==Vg}function ARt(t){return t==gk||t==pk}function ran(t,n){return jc(t.g,n.g)}function RRt(t,n){return new Y6(n,t)}function nan(t,n){return new Y6(n,t)}function QRe(t){return Tcn(t.b.Kc(),t.a)}function qce(t,n){eO(t,n),$6(t,t.D)}function Yce(t,n,s){vX(t,n),yX(t,s)}function s4(t,n,s){Gw(t,n),Uw(t,s)}function kf(t,n,s){eh(t,n),th(t,s)}function _$(t,n,s){D6(t,n),B6(t,s)}function E$(t,n,s){P6(t,n),F6(t,s)}function IRt(t,n,s){LIe.call(this,t,n,s)}function ZRe(t){X5t.call(this,t,!0)}function ORt(){fj.call(this,"Tail",3)}function NRt(){fj.call(this,"Head",1)}function Gv(t){Am(),Fmn.call(this,t)}function _w(t){hK.call(this,t,t,t,t)}function Wce(t){t.c=mt(ao,en,1,0,5,1)}function JRe(t){return t.b&&dpe(t),t.a}function eIe(t){return t.b&&dpe(t),t.c}function ian(t,n){if(Fg)return;t.b=n}function aan(t,n){return t[t.length]=n}function san(t,n){return t[t.length]=n}function oan(t,n){return jT(n,wg(t))}function lan(t,n){return jT(n,wg(t))}function can(t,n){return TX(Vue(t.d),n)}function uan(t,n){return TX(Vue(t.g),n)}function han(t,n){return TX(Vue(t.j),n)}function No(t,n){es.call(this,t.b,n)}function dan(t,n){ii(nu(t.a),JLt(n))}function fan(t,n){ii(pd(t.a),e7t(n))}function pan(t,n,s){kf(s,s.i+t,s.j+n)}function LRt(t,n,s){ls(t.c[n.g],n.g,s)}function gan(t,n,s){b(t.c,71).Gi(n,s)}function jce(t,n,s){return ls(t,n,s),s}function MRt(t){Ju(t.Sf(),new JTt(t))}function o4(t){return t!=null?Da(t):0}function man(t){return t==null?0:Da(t)}function YM(t){ia(),sw.call(this,t)}function DRt(t){this.a=t,p6e.call(this,t)}function _g(){_g=z,d.Math.log(2)}function Af(){Af=z,$1=(FAt(),Ksr)}function PRt(){PRt=z,Ibe=new $8(Hye)}function yi(){yi=z,new BRt,new Ut}function BRt(){new Zn,new Zn,new Zn}function ban(){throw ve(new fy(vXt))}function yan(){throw ve(new fy(vXt))}function van(){throw ve(new fy(_Xt))}function _an(){throw ve(new fy(_Xt))}function Kce(t){this.a=t,tj.call(this,t)}function Xce(t){this.a=t,tj.call(this,t)}function FRt(t,n){Rw(),this.a=t,this.b=n}function Ean(t,n){mi(n),f4(t).Jc(new P)}function ks(t,n){kue(t.c,t.c.length,n)}function _c(t){return t.an?1:0}function rIe(t,n){return Kc(t,n)>0?t:n}function Qu(t,n,s){return{l:t,m:n,h:s}}function wan(t,n){t.a!=null&&Z5t(n,t.a)}function San(t){tl(t,null),ko(t,null)}function Tan(t,n,s){return Ki(t.g,s,n)}function l4(t,n,s){return x7e(n,s,t.c)}function xan(t,n,s){return Ki(t.k,s,n)}function Can(t,n,s){return hRn(t,n,s),s}function kan(t,n){return qd(),n.n.b+=t}function URt(t){xOe.call(this),this.b=t}function nIe(t){HIe.call(this),this.a=t}function GRt(){fj.call(this,"Range",2)}function Uj(t){this.b=t,this.a=new Ut}function zRt(t){this.b=new Wn,this.a=t}function VRt(t){t.a=new Xe,t.c=new Xe}function HRt(t){t.a=new Zn,t.d=new Zn}function qRt(t){hhe(t,null),dhe(t,null)}function YRt(t,n){return fRn(t.a,n,null)}function Aan(t,n){return Ki(t.a,n.a,n)}function Uo(t){return new Dt(t.a,t.b)}function iIe(t){return new Dt(t.c,t.d)}function Ran(t){return new Dt(t.c,t.d)}function WM(t,n){return x5n(t.c,t.b,n)}function He(t,n){return t!=null&&rfe(t,n)}function Qce(t,n){return y1n(t.Kc(),n)!=-1}function Gj(t){return t.Ob()?t.Pb():null}function Ian(t){this.b=(Hr(),new Ole(t))}function aIe(t){this.a=t,Zn.call(this)}function WRt(){S$.call(this,null,null)}function jRt(){jj.call(this,null,null)}function KRt(){ui.call(this,"INSTANCE",0)}function XRt(){iMe(),this.a=new nD(rUe)}function QRt(t){return yp(t,0,t.length)}function Oan(t,n){return new gIt(t.Kc(),n)}function sIe(t,n){return t.a.Bc(n)!=null}function ZRt(t,n){ni(t),t.Gc(b(n,15))}function Nan(t,n,s){t.c.bd(n,b(s,136))}function Lan(t,n,s){t.c.Ui(n,b(s,136))}function JRt(t,n){if(t.c)k6e(n),xLt(n)}function Man(t,n){t.q.setHours(n),lD(t,n)}function Dan(t,n){Sw(n,t.a.a.a,t.a.a.b)}function Pan(t,n,s,u){ls(t.a[n.g],s.g,u)}function Zce(t,n,s){return t.a[n.g][s.g]}function Ban(t,n){return t.e[n.c.p][n.p]}function Fan(t,n){return t.c[n.c.p][n.p]}function Eg(t,n){return t.a[n.c.p][n.p]}function $an(t,n){return t.j[n.p]=Xxn(n)}function Jce(t,n){return t.a.Bc(n)!=null}function Uan(t,n){return rt(ht(n.a))<=t}function Gan(t,n){return rt(ht(n.a))>=t}function zan(t,n){return uNe(t.f,n.Pg())}function AA(t,n){return t.a*n.a+t.b*n.b}function Van(t,n){return t.a0?n/(t*t):n*100}function psn(t,n){return t>0?n*n/t:n*n*100}function NT(t,n){return b(Ag(t.a,n),34)}function gsn(t,n){return a_(),Ur(t,n.e,n)}function msn(t,n,s){return oj(),s.Mg(t,n)}function bsn(t){return Tb(),t.e.a+t.f.a/2}function ysn(t,n,s){return Tb(),s.e.a-t*n}function vsn(t){return Tb(),t.e.b+t.f.b/2}function _sn(t,n,s){return Tb(),s.e.b-t*n}function RIt(t){t.d=new CIt(t),t.e=new Zn}function IIt(){this.a=new Dw,this.b=new Dw}function OIt(t){this.c=t,this.a=1,this.b=1}function NIt(t){Ape(),K4t(this),this.Ff(t)}function Esn(t,n,s){aX(),t.pf(n)&&s.Cd(t)}function wsn(t,n,s){return Gt(n,VBt(t,s))}function Sw(t,n,s){return t.a+=n,t.b+=s,t}function Ssn(t,n,s){return t.a*=n,t.b*=s,t}function TIe(t,n){return t.a=n.a,t.b=n.b,t}function Kj(t){return t.a=-t.a,t.b=-t.b,t}function QM(t,n,s){return t.a-=n,t.b-=s,t}function LIt(t){Va.call(this),w8(this,t)}function MIt(){ui.call(this,"GROW_TREE",0)}function DIt(){ui.call(this,"POLYOMINO",0)}function Id(t,n,s){Mh.call(this,t,n,s,2)}function Tsn(t,n,s){B8(nu(t.a),n,JLt(s))}function PIt(t,n){RM(),S$.call(this,t,n)}function xIe(t,n){yy(),jj.call(this,t,n)}function BIt(t,n){yy(),xIe.call(this,t,n)}function FIt(t,n){yy(),jj.call(this,t,n)}function xsn(t,n){return t.c.Fc(b(n,136))}function Csn(t,n,s){B8(pd(t.a),n,e7t(s))}function $It(t){this.c=t,eh(t,0),th(t,0)}function aue(t,n){Af(),pK.call(this,t,n)}function UIt(t,n){Af(),aue.call(this,t,n)}function CIe(t,n){Af(),aue.call(this,t,n)}function kIe(t,n){Af(),pK.call(this,t,n)}function GIt(t,n){Af(),CIe.call(this,t,n)}function zIt(t,n){Af(),kIe.call(this,t,n)}function VIt(t,n){Af(),pK.call(this,t,n)}function ksn(t,n,s){return n.zl(t.e,t.c,s)}function Asn(t,n,s){return n.Al(t.e,t.c,s)}function AIe(t,n,s){return XQ(cU(t,n),s)}function sue(t,n){return e_(t.e,b(n,54))}function Rsn(t){return t==null?null:eIn(t)}function Isn(t){return t==null?null:Wwn(t)}function Osn(t){return t==null?null:hc(t)}function Nsn(t){return t==null?null:hc(t)}function Jt(t){return e8(t==null||IT(t)),t}function ht(t){return e8(t==null||OT(t)),t}function wi(t){return e8(t==null||So(t)),t}function gb(t){if(t.o!=null)return;xxn(t)}function RIe(t){if(!t)throw ve(new jF)}function Lsn(t){if(!t)throw ve(new Ple)}function Pn(t){if(!t)throw ve(new yc)}function LT(t){if(!t)throw ve(new Ah)}function HIt(t){if(!t)throw ve(new Cf)}function d6(){d6=z,cV=new kkt,new Akt}function d4(){d4=z,yk=new va("root")}function IIe(){C9t.call(this),this.Bb|=ml}function Msn(t,n){this.d=t,CTt(this),this.b=n}function OIe(t,n){Lhe.call(this,t),this.a=n}function NIe(t,n){Lhe.call(this,t),this.a=n}function LIe(t,n,s){tX.call(this,t,n,s,null)}function qIt(t,n,s){tX.call(this,t,n,s,null)}function C$(t,n){this.c=t,i6.call(this,t,n)}function ZM(t,n){this.a=t,C$.call(this,t,n)}function MIe(t){this.q=new d.Date(z2(t))}function YIt(t){if(t>8)return 0;return t+1}function WIt(t,n){if(Fg)return;Gt(t.a,n)}function Dsn(t,n){return i$(),q6(n.d.i,t)}function Psn(t,n){return QA(),new SVt(n,t)}function Bsn(t,n,s){return t.Ne(n,s)<=0?s:n}function Fsn(t,n,s){return t.Ne(n,s)<=0?n:s}function $sn(t,n){return b(Ag(t.b,n),143)}function Usn(t,n){return b(Ag(t.c,n),233)}function oue(t){return b(nr(t.a,t.b),294)}function jIt(t){return new Dt(t.c,t.d+t.a)}function KIt(t){return(vn(t),t)?1231:1237}function XIt(t){return qd(),ARt(b(t,203))}function MT(){MT=z,I$e=Tr((Md(),IE))}function Gsn(t,n){n.a?qTn(t,n):Jce(t.a,n.b)}function k$(t,n,s){++t.j,t.tj(),Nhe(t,n,s)}function QIt(t,n,s){++t.j,t.qj(n,t.Zi(n,s))}function ZIt(t,n,s){var u=t.fd(n);u.Rb(s)}function DIe(t,n,s){return s=Jd(t,n,6,s),s}function PIe(t,n,s){return s=Jd(t,n,3,s),s}function BIe(t,n,s){return s=Jd(t,n,9,s),s}function Em(t,n){return H$(n,o9e),t.f=n,t}function FIe(t,n){return(n&sa)%t.d.length}function JIt(t,n,s){return bDe(t.c,t.b,n,s)}function e6t(t,n){this.c=t,$w.call(this,n)}function t6t(t,n){this.a=t,G4t.call(this,n)}function A$(t,n){this.a=t,G4t.call(this,n)}function es(t,n){va.call(this,t),this.a=n}function $Ie(t,n){l5e.call(this,t),this.a=n}function lue(t,n){l5e.call(this,t),this.a=n}function zsn(t){v7e.call(this,0,0),this.f=t}function r6t(t,n,s){return t.a+=yp(n,0,s),t}function R$(t){return!t.a&&(t.a=new X),t.a}function UIe(t,n){var s=t.e;return t.e=n,s}function GIe(t,n){var s=n;return!!t.Fe(s)}function Vsn(t,n){return nn(),t==n?0:t?1:-1}function DT(t,n){t.a.bd(t.b,n),++t.b,t.c=-1}function I$(t){t.b?I$(t.b):t.f.c.zc(t.e,t.d)}function n6t(t){Jh(t.e),t.d.b=t.d,t.d.a=t.d}function Hsn(t,n,s){L2(),STt(t,n.Ve(t.a,s))}function zIe(t,n,s){return FA(t,b(n,22),s)}function t0(t,n){return XW(Array(n),t)}function qsn(t){return gi(Vv(t,32))^gi(t)}function cue(t){return String.fromCharCode(t)}function Ysn(t){return t==null?null:t.message}function Wsn(t,n,s){return t.apply(n,s);var u}function jsn(t,n){var s=t[l0e];s.call(t,n)}function Ksn(t,n){var s=t[l0e];s.call(t,n)}function Xsn(t,n){return i$(),!q6(n.d.i,t)}function VIe(t,n,s,u){hK.call(this,t,n,s,u)}function i6t(){Xj.call(this),this.a=new Oo}function HIe(){this.n=new Oo,this.o=new Oo}function a6t(){this.b=new Oo,this.c=new Ut}function s6t(){this.a=new Ut,this.b=new Ut}function o6t(){this.a=new dt,this.b=new akt}function qIe(){this.b=new Ty,this.a=new Ty}function l6t(){this.b=new Rs,this.a=new Rs}function c6t(){this.b=new Zn,this.a=new Zn}function u6t(){this.b=new P3t,this.a=new avt}function h6t(){this.a=new ESt,this.b=new Xbt}function d6t(){this.a=new Ut,this.d=new Ut}function Xj(){this.n=new gA,this.i=new kA}function f6t(t){this.a=(Kd(t,px),new Gu(t))}function p6t(t){this.a=(Kd(t,px),new Gu(t))}function Qsn(t){return t<100?null:new Pv(t)}function Zsn(t,n){return t.n.a=(vn(n),n)+10}function Jsn(t,n){return t.n.a=(vn(n),n)+10}function eon(t,n){return n==t||pO(LQ(n),t)}function g6t(t,n){return Ki(t.a,n,"")==null}function ton(t,n){var s=n.qi(t.a);return s}function ua(t,n){return t.a+=n.a,t.b+=n.b,t}function no(t,n){return t.a-=n.a,t.b-=n.b,t}function ron(t){return xT(t.j.c,0),t.a=-1,t}function YIe(t,n,s){return s=Jd(t,n,11,s),s}function non(t,n,s){s!=null&&xX(n,ffe(t,s))}function ion(t,n,s){s!=null&&CX(n,ffe(t,s))}function OA(t,n,s,u){kt.call(this,t,n,s,u)}function WIe(t,n,s,u){kt.call(this,t,n,s,u)}function m6t(t,n,s,u){WIe.call(this,t,n,s,u)}function b6t(t,n,s,u){EK.call(this,t,n,s,u)}function uue(t,n,s,u){EK.call(this,t,n,s,u)}function jIe(t,n,s,u){EK.call(this,t,n,s,u)}function y6t(t,n,s,u){uue.call(this,t,n,s,u)}function KIe(t,n,s,u){uue.call(this,t,n,s,u)}function Wr(t,n,s,u){jIe.call(this,t,n,s,u)}function v6t(t,n,s,u){KIe.call(this,t,n,s,u)}function _6t(t,n,s,u){W6e.call(this,t,n,s,u)}function PT(t,n){Gl.call(this,BD+t+hE+n)}function XIe(t,n){return t.jk().wi().ri(t,n)}function QIe(t,n){return t.jk().wi().ti(t,n)}function E6t(t,n){return vn(t),nt(t)===nt(n)}function Br(t,n){return vn(t),nt(t)===nt(n)}function aon(t,n){return t.b.Bd(new HAt(t,n))}function son(t,n){return t.b.Bd(new qAt(t,n))}function w6t(t,n){return t.b.Bd(new YAt(t,n))}function oon(t,n){return t.e=b(t.d.Kb(n),159)}function ZIe(t,n,s){return t.lastIndexOf(n,s)}function lon(t,n,s){return Ra(t[n.a],t[s.a])}function con(t,n){return At(n,(Qt(),Ez),t)}function uon(t,n){return jc(n.a.d.p,t.a.d.p)}function hon(t,n){return jc(t.a.d.p,n.a.d.p)}function don(t,n){return Ra(t.c-t.s,n.c-n.s)}function fon(t,n){return Ra(t.b.e.a,n.b.e.a)}function pon(t,n){return Ra(t.c.e.a,n.c.e.a)}function S6t(t){return!t.c?-1:rc(t.c.a,t,0)}function NA(t){return t==RE||t==B1||t==xu}function JIe(t,n){this.c=t,Bue.call(this,t,n)}function T6t(t,n,s){this.a=t,EIe.call(this,n,s)}function x6t(t){this.c=t,Bj.call(this,_G,0)}function C6t(t,n,s){this.c=n,this.b=s,this.a=t}function O$(t){p6(),this.d=t,this.a=new u4}function k6t(t){wm(),this.a=(Hr(),new ZI(t))}function gon(t,n){pb(t.f)?bxn(t,n):jEn(t,n)}function A6t(t,n){Acn.call(this,t,t.length,n)}function mon(t,n){if(Fg)return;!!n&&(t.d=n)}function R6t(t,n){return He(n,15)&&nVt(t.c,n)}function bon(t,n,s){return b(t.c,71).Wk(n,s)}function Qj(t,n,s){return b(t.c,71).Xk(n,s)}function yon(t,n,s){return ksn(t,b(n,343),s)}function e6e(t,n,s){return Asn(t,b(n,343),s)}function von(t,n,s){return X$t(t,b(n,343),s)}function I6t(t,n,s){return own(t,b(n,343),s)}function JM(t,n){return n==null?null:ZT(t.b,n)}function t6e(t){return OT(t)?(vn(t),t):t.ue()}function Zj(t){return!isNaN(t)&&!isFinite(t)}function hue(t){VRt(this),Hd(this),Po(this,t)}function Zh(t){Wce(this),b6e(this.c,0,t.Pc())}function Rf(t,n,s){this.a=t,this.b=n,this.c=s}function O6t(t,n,s){this.a=t,this.b=n,this.c=s}function N6t(t,n,s){this.d=t,this.b=s,this.a=n}function L6t(t){this.a=t,fb(),Vc(Date.now())}function M6t(t){Nd(t.a),mNe(t.c,t.b),t.b=null}function due(){due=z,n$e=new je,KXt=new Qe}function D6t(){D6t=z,tor=mt(ao,en,1,0,5,1)}function P6t(){P6t=z,_or=mt(ao,en,1,0,5,1)}function r6e(){r6e=z,Eor=mt(ao,en,1,0,5,1)}function wm(){wm=z,new h5e((Hr(),Hr(),Jo))}function _on(t){return N6(),hi((z8t(),ZXt),t)}function Eon(t){return rd(),hi((N8t(),iQt),t)}function won(t){return aQ(),hi((bMt(),uQt),t)}function Son(t){return dX(),hi((yMt(),hQt),t)}function Ton(t){return GQ(),hi((bPt(),dQt),t)}function xon(t){return K0(),hi((I8t(),gQt),t)}function Con(t){return td(),hi((R8t(),bQt),t)}function kon(t){return ph(),hi((O8t(),vQt),t)}function Aon(t){return tZ(),hi((fRt(),zQt),t)}function Ron(t){return qw(),hi((H8t(),HQt),t)}function Ion(t){return n5(),hi((Y8t(),YQt),t)}function Oon(t){return H8(),hi((q8t(),KQt),t)}function Non(t){return aj(),hi((V7t(),XQt),t)}function Lon(t){return fX(),hi((vMt(),fZt),t)}function Mon(t){return _8(),hi((L8t(),$Zt),t)}function Don(t){return Xo(),hi((kDt(),VZt),t)}function Pon(t){return j6(),hi((j8t(),jZt),t)}function Bon(t){return Z2(),hi((W8t(),eJt),t)}function n6e(t,n){if(!t)throw ve(new dn(n))}function f6(t){if(!t)throw ve(new zl($De))}function fue(t,n){if(t!=n)throw ve(new Cf)}function B6t(t,n,s){this.a=t,this.b=n,this.c=s}function i6e(t,n,s){this.a=t,this.b=n,this.c=s}function F6t(t,n,s){this.a=t,this.b=n,this.c=s}function Jj(t,n,s){this.b=t,this.a=n,this.c=s}function a6e(t,n,s){this.b=t,this.c=n,this.a=s}function s6e(t,n,s){this.a=t,this.b=n,this.c=s}function eK(t,n,s){this.e=n,this.b=t,this.d=s}function $6t(t,n,s){this.b=t,this.a=n,this.c=s}function Fon(t,n,s){return L2(),t.a.Yd(n,s),n}function pue(t){var n=new In;return n.e=t,n}function o6e(t){var n=new ukt;return n.b=t,n}function N$(){N$=z,OJ=new xmt,NJ=new Cmt}function tK(){tK=z,gJt=new Jmt,pJt=new e1t}function r0(){r0=z,_Jt=new lbt,EJt=new cbt}function $on(t){return Vw(),hi((u8t(),OJt),t)}function Uon(t){return il(),hi((pRt(),uJt),t)}function Gon(t){return FX(),hi((X8t(),fJt),t)}function zon(t){return Ig(),hi((K8t(),TJt),t)}function Von(t){return nx(),hi((ADt(),CJt),t)}function Hon(t){return $Q(),hi((rPt(),NJt),t)}function qon(t){return o5(),hi((JDt(),LJt),t)}function Yon(t){return iX(),hi((CMt(),MJt),t)}function Won(t){return S8(),hi((l8t(),DJt),t)}function jon(t){return EX(),hi((c8t(),PJt),t)}function Kon(t){return My(),hi((RDt(),BJt),t)}function Xon(t){return pU(),hi((wMt(),FJt),t)}function Qon(t){return mO(),hi((r9t(),HJt),t)}function Zon(t){return Tl(),hi((LPt(),qJt),t)}function Jon(t){return W6(),hi((d8t(),YJt),t)}function eln(t){return Sb(),hi((f8t(),jJt),t)}function tln(t){return WK(),hi((EMt(),KJt),t)}function rln(t){return WU(),hi((t9t(),VJt),t)}function nln(t){return K2(),hi((h8t(),UJt),t)}function iln(t){return CQ(),hi((e9t(),GJt),t)}function aln(t){return oU(),hi((SMt(),zJt),t)}function sln(t){return Uf(),hi((ODt(),XJt),t)}function oln(t){return $y(),hi((pPt(),_rr),t)}function lln(t){return L8(),hi((p8t(),Err),t)}function cln(t){return tx(),hi((Q8t(),wrr),t)}function uln(t){return V8(),hi((IDt(),Srr),t)}function hln(t){return _p(),hi((MPt(),Trr),t)}function dln(t){return Cm(),hi((Z8t(),xrr),t)}function fln(t){return dU(),hi((TMt(),Crr),t)}function pln(t){return Sl(),hi((b8t(),Arr),t)}function gln(t){return DX(),hi((g8t(),Rrr),t)}function mln(t){return I8(),hi((m8t(),Irr),t)}function bln(t){return tO(),hi((y8t(),Orr),t)}function yln(t){return _X(),hi((v8t(),Nrr),t)}function vln(t){return $X(),hi((_8t(),Lrr),t)}function _ln(t){return zw(),hi((A8t(),Krr),t)}function Eln(t){return b8(),hi((xMt(),enr),t)}function wln(t){return Tm(),hi((RMt(),onr),t)}function Sln(t){return Sg(),hi((IMt(),cnr),t)}function Tln(t){return Y0(),hi((OMt(),Tnr),t)}function xln(t){return Pw(),hi((NMt(),Onr),t)}function Cln(t){return s5(),hi((aDt(),Nnr),t)}function kln(t){return sD(),hi((gRt(),Lnr),t)}function Aln(t){return O8(),hi((E8t(),Mnr),t)}function Rln(t){return N8(),hi((iDt(),nir),t)}function Iln(t){return HK(),hi((kMt(),iir),t)}function Oln(t){return AX(),hi((AMt(),cir),t)}function Nln(t){return wQ(),hi((NDt(),hir),t)}function Lln(t){return AU(),hi((w8t(),fir),t)}function Mln(t){return sX(),hi((LMt(),dir),t)}function Dln(t){return gQ(),hi((nDt(),Lir),t)}function Pln(t){return MX(),hi((S8t(),Mir),t)}function Bln(t){return eQ(),hi((T8t(),Dir),t)}function Fln(t){return hQ(),hi((x8t(),Bir),t)}function $ln(t){return jX(),hi((C8t(),Uir),t)}function Uln(t){return ZK(),hi((MMt(),oar),t)}function Gln(t){return z6(),hi((_Mt(),cJt),t)}function zln(t){return mn(),hi((n9t(),iJt),t)}function Vln(t){return oX(),hi((k8t(),lar),t)}function Hln(t){return ude(),hi((DMt(),car),t)}function qln(t){return rD(),hi((LDt(),har),t)}function Yln(t){return lj(),hi((Q7t(),far),t)}function Wln(t){return MU(),hi((D8t(),dar),t)}function jln(t){return cj(),hi((Z7t(),gar),t)}function Kln(t){return rU(),hi((PMt(),mar),t)}function Xln(t){return KU(),hi((MDt(),bar),t)}function Qln(t){return CM(),hi((J7t(),Mar),t)}function Zln(t){return TU(),hi((BMt(),Dar),t)}function Jln(t){return Q0(),hi((PDt(),zar),t)}function ecn(t){return Fy(),hi((ePt(),Har),t)}function tcn(t){return _1(),hi((i9t(),qar),t)}function rcn(t){return eE(),hi((a9t(),Qar),t)}function ncn(t){return Ms(),hi((DDt(),msr),t)}function icn(t){return Rg(),hi((P8t(),bsr),t)}function acn(t){return kb(),hi((sDt(),ysr),t)}function scn(t){return TQ(),hi((s9t(),vsr),t)}function ocn(t){return Cb(),hi((M8t(),Esr),t)}function lcn(t){return Qd(),hi((oDt(),Ssr),t)}function ccn(t){return ox(),hi((mPt(),Tsr),t)}function ucn(t){return T4(),hi((BDt(),xsr),t)}function hcn(t){return Ao(),hi((o9t(),Csr),t)}function dcn(t){return nd(),hi((l9t(),ksr),t)}function fcn(t){return Ht(),hi((FDt(),Asr),t)}function pcn(t){return Md(),hi((lDt(),Lsr),t)}function gcn(t){return bd(),hi((gPt(),Msr),t)}function mcn(t){return e5(),hi((B8t(),Dsr),t)}function bcn(t,n){return(vn(t),t)+(vn(n),n)}function ycn(t){return gue(),hi((FMt(),Psr),t)}function vcn(t){return XX(),hi((cDt(),Bsr),t)}function _cn(t){return UX(),hi((uDt(),Usr),t)}function p6(){p6=z,CVe=(Ht(),bn),Bee=Cn}function gue(){gue=z,VYe=new gOt,HYe=new eNt}function Ecn(t){return!t.e&&(t.e=new Ut),t.e}function mue(t,n){this.c=t,this.a=n,this.b=n-t}function U6t(t,n,s){this.a=t,this.b=n,this.c=s}function bue(t,n,s){this.a=t,this.b=n,this.c=s}function l6e(t,n,s){this.a=t,this.b=n,this.c=s}function c6e(t,n,s){this.a=t,this.b=n,this.c=s}function G6t(t,n,s){this.a=t,this.b=n,this.c=s}function z6t(t,n,s){this.a=t,this.b=n,this.c=s}function _y(t,n,s){this.e=t,this.a=n,this.c=s}function V6t(t,n,s){Af(),kOe.call(this,t,n,s)}function yue(t,n,s){Af(),uOe.call(this,t,n,s)}function u6e(t,n,s){Af(),uOe.call(this,t,n,s)}function h6e(t,n,s){Af(),uOe.call(this,t,n,s)}function H6t(t,n,s){Af(),yue.call(this,t,n,s)}function d6e(t,n,s){Af(),yue.call(this,t,n,s)}function q6t(t,n,s){Af(),d6e.call(this,t,n,s)}function Y6t(t,n,s){Af(),u6e.call(this,t,n,s)}function W6t(t,n,s){Af(),h6e.call(this,t,n,s)}function vue(t){hK.call(this,t.d,t.c,t.a,t.b)}function f6e(t){hK.call(this,t.d,t.c,t.a,t.b)}function p6e(t){this.d=t,CTt(this),this.b=_un(t.d)}function wcn(t){return yO(),hi((tPt(),eor),t)}function L$(t,n){return mi(t),mi(n),new tAt(t,n)}function LA(t,n){return mi(t),mi(n),new sOt(t,n)}function Scn(t,n){return mi(t),mi(n),new oOt(t,n)}function Tcn(t,n){return mi(t),mi(n),new uAt(t,n)}function _ue(t){return Pn(t.b!=0),Df(t,t.a.a)}function xcn(t){return Pn(t.b!=0),Df(t,t.c.b)}function Ccn(t){return!t.c&&(t.c=new VI),t.c}function g6(t){var n=new Ut;return Hhe(n,t),n}function kcn(t){var n=new Rs;return Hhe(n,t),n}function j6t(t){var n=new m5e;return nde(n,t),n}function M$(t){var n=new Va;return nde(n,t),n}function b(t,n){return e8(t==null||rfe(t,n)),t}function Acn(t,n,s){WOt.call(this,n,s),this.a=t}function K6t(t,n){this.c=t,this.b=n,this.a=!1}function X6t(){this.a=";,;",this.b="",this.c=""}function Q6t(t,n,s){this.b=t,lRt.call(this,n,s)}function g6e(t,n,s){this.c=t,pj.call(this,n,s)}function m6e(t,n,s){o6.call(this,t,n),this.b=s}function b6e(t,n,s){c8e(s,0,t,n,s.length,!1)}function p1(t,n,s,u,f){t.b=n,t.c=s,t.d=u,t.a=f}function y6e(t,n,s,u,f){t.d=n,t.c=s,t.a=u,t.b=f}function Rcn(t,n){if(n)t.b=n,t.a=(Yv(n),n.a)}function D$(t,n){if(!t)throw ve(new dn(n))}function MA(t,n){if(!t)throw ve(new zl(n))}function v6e(t,n){if(!t)throw ve(new a3t(n))}function Icn(t,n){return sj(),jc(t.d.p,n.d.p)}function Ocn(t,n){return Tb(),Ra(t.e.b,n.e.b)}function Ncn(t,n){return Tb(),Ra(t.e.a,n.e.a)}function Lcn(t,n){return jc(dOt(t.d),dOt(n.d))}function rK(t,n){return!!n&&CK(t,n.d)?n:null}function Mcn(t,n){return n==(Ht(),bn)?t.c:t.d}function _6e(t){return Qv(Lun(cc(t)?mp(t):t))}function Dcn(t){return new Dt(t.c+t.b,t.d+t.a)}function Z6t(t){return t!=null&&!Gde(t,Q9,Z9)}function Pcn(t,n){return(IBt(t)<<4|IBt(n))&Ds}function J6t(t,n,s,u,f){t.c=n,t.d=s,t.b=u,t.a=f}function E6e(t){var n,s;n=t.b,s=t.c,t.b=s,t.c=n}function w6e(t){var n,s;s=t.d,n=t.a,t.d=n,t.a=s}function Bcn(t,n){var s=t.c;return eLe(t,n),s}function S6e(t,n){return n<0?t.g=-1:t.g=n,t}function nK(t,n){return qgn(t),t.a*=n,t.b*=n,t}function eOt(t,n,s){jDt.call(this,n,s),this.d=t}function P$(t,n,s){zRe.call(this,t,n),this.c=s}function iK(t,n,s){zRe.call(this,t,n),this.c=s}function T6e(t){r6e(),NW.call(this),this.ci(t)}function tOt(){R6(),ihn.call(this,(Fv(),Np))}function rOt(t){return ia(),++hs,new g1(0,t)}function nOt(){nOt=z,ave=(Hr(),new Ile(sme))}function aK(){aK=z,new D7e((Hle(),yme),(Vle(),bme))}function iOt(){iOt=z,VFe=mt(qo,Bt,17,256,0,1)}function aOt(){this.b=rt(ht(jt((c0(),Qme))))}function Eue(t){this.b=t,this.a=D2(this.b.a).Od()}function sOt(t,n){this.b=t,this.a=n,Ele.call(this)}function oOt(t,n){this.a=t,this.b=n,Ele.call(this)}function lOt(t,n,s){this.a=t,n4.call(this,n,s)}function cOt(t,n,s){this.a=t,n4.call(this,n,s)}function m6(t,n,s){var u=new $T(s);j0(t,n,u)}function x6e(t,n,s){var u=t[n];return t[n]=s,u}function sK(t){var n=t.slice();return Bhe(n,t)}function oK(t){var n=t.n;return t.a.b+n.d+n.a}function uOt(t){var n=t.n;return t.e.b+n.d+n.a}function C6e(t){var n=t.n;return t.e.a+n.b+n.c}function k6e(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function Oi(t,n){return cs(t,n,t.c.b,t.c),!0}function Fcn(t){if(t.a)return t.a;return Kue(t)}function $cn(t){return zA(),E1(t)==Ya(n_(t))}function Ucn(t){return zA(),n_(t)==Ya(E1(t))}function Tw(t,n){return j8(t,new o6(n.a,n.b))}function Gcn(t,n){return AK(),ufe(t,n),new NNt(t,n)}function zcn(t,n){return t.c=n)throw ve(new S5e)}function BT(t,n){return NU(t,(vn(n),new LTt(n)))}function PA(t,n){return NU(t,(vn(n),new MTt(n)))}function KOt(t,n,s){return p6n(t,b(n,12),b(s,12))}function XOt(t){return Dh(),b(t,12).g.c.length!=0}function QOt(t){return Dh(),b(t,12).e.c.length!=0}function Cun(t,n){return QA(),Ra(n.a.o.a,t.a.o.a)}function kun(t,n){(n.Bb&Hc)!=0&&!t.a.o&&(t.a.o=n)}function Aun(t,n){n.Ug("General 'Rotator",1),zRn(t)}function Run(t,n,s){n.qf(s,rt(ht(An(t.b,s)))*t.a)}function ZOt(t,n,s){return M4(),V6(t,n)&&V6(t,s)}function i8(t){return nd(),!t.Hc(Gb)&&!t.Hc(R_)}function Iun(t){if(t.e)return pNe(t.e);return null}function a8(t){if(cc(t))return""+t;return rVt(t)}function Y6e(t){var n=t;while(n.f)n=n.f;return n}function Oun(t,n,s){return ls(n,0,N6e(n[0],s[0])),n}function Ey(t,n,s,u){var f=t.i;f.i=n,f.a=s,f.b=u}function kt(t,n,s,u){Os.call(this,t,n,s),this.b=u}function go(t,n,s,u,f){Dhe.call(this,t,n,s,u,f,-1)}function s8(t,n,s,u,f){iU.call(this,t,n,s,u,f,-1)}function EK(t,n,s,u){P$.call(this,t,n,s),this.b=u}function JOt(t){X5t.call(this,t,!1),this.a=!1}function eNt(){R5t.call(this,"LOOKAHEAD_LAYOUT",1)}function tNt(t){this.b=t,RA.call(this,t),sIt(this)}function rNt(t){this.b=t,T$.call(this,t),oIt(this)}function FT(t,n,s){this.a=t,OA.call(this,n,s,5,6)}function W6e(t,n,s,u){this.b=t,Os.call(this,n,s,u)}function nNt(t,n){this.b=t,cTt.call(this,t.b),this.a=n}function iNt(t){this.a=GFt(t.a),this.b=new Zh(t.b)}function j6e(t,n){Rw(),lin.call(this,t,HX(new Qh(n)))}function wK(t,n){return ia(),++hs,new cOe(t,n,0)}function Mue(t,n){return ia(),++hs,new cOe(6,t,n)}function Go(t,n){vn(n);while(t.Ob())n.Cd(t.Pb())}function Zu(t,n){return So(n)?nhe(t,n):!!wl(t.f,n)}function Due(t,n){return n.Vh()?e_(t.b,b(n,54)):n}function Nun(t,n){return Br(t.substr(0,n.length),n)}function m1(t){return new Nn(new gIe(t.a.length,t.a))}function SK(t){return new Dt(t.c+t.b/2,t.d+t.a/2)}function Lun(t){return Qu(~t.l&yd,~t.m&yd,~t.h&Mb)}function Pue(t){return typeof t===mG||typeof t===Ope}function Jh(t){t.f=new TRt(t),t.i=new xRt(t),++t.g}function aNt(t){if(!t)throw ve(new yc);return t.d}function BA(t){var n=R8(t);return Pn(n!=null),n}function Mun(t){var n=Xbn(t);return Pn(n!=null),n}function y6(t,n){var s=t.a.gc();return cNe(n,s),s-n}function $s(t,n){var s=t.a.zc(n,t);return s==null}function F$(t,n){return t.a.zc(n,(nn(),g_))==null}function K6e(t){return new Pr(null,$un(t,t.length))}function X6e(t,n,s){return CHt(t,b(n,42),b(s,176))}function FA(t,n,s){return s0(t.a,n),x6e(t.b,n.g,s)}function Dun(t,n,s){b6(s,t.a.c.length),Lf(t.a,s,n)}function st(t,n,s,u){nBt(n,s,t.length),Pun(t,n,s,u)}function Pun(t,n,s,u){var f;for(f=n;f0?d.Math.log(t/n):-100}function oNt(t,n){return Kc(t,n)<0?-1:Kc(t,n)>0?1:0}function $$(t,n){ZRt(t,He(n,160)?n:b(n,2036).Rl())}function eOe(t,n){if(t==null)throw ve(new yA(n))}function $un(t,n){return Ggn(n,t.length),new pOt(t,n)}function tOe(t,n){if(!n)return!1;return Po(t,n)}function Uun(){return YW(),Te(we(AXt,1),Rt,549,0,[Eme])}function l8(t){return t.e==0?t:new B2(-t.e,t.d,t.a)}function Gun(t,n){return Ra(t.c.c+t.c.b,n.c.c+n.c.b)}function U$(t,n){cs(t.d,n,t.b.b,t.b),++t.a,t.c=null}function lNt(t,n){return!t.c?Gt(t.b,n):lNt(t.c,n),t}function zun(t,n,s){var u=YT(t,n);return vhe(t,n,s),u}function cNt(t,n,s){var u;for(u=0;u=t.g}function ls(t,n,s){return Lsn(s==null||k3n(t,s)),t[n]=s}function sOe(t,n){return fn(n,t.length+1),t.substr(n)}function Yue(t,n){vn(n);while(t.c=t)return new nRe;return hmn(t-1)}function zo(t){if(!t.a&&!!t.c)return t.c.b;return t.a}function hOe(t){if(He(t,616))return t;return new ALt(t)}function Yv(t){if(!t.c)t_(t),t.d=!0;else Yv(t.c)}function h8(t){if(!t.c)t.d=!0,RCn(t);else t.c.$e()}function RNt(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function INt(t){var n,s;return n=t.c.i.c,s=t.d.i.c,n==s}function ohn(t,n){var s=t.Ih(n);s>=0?t.ki(s):e8e(t,n)}function ONt(t,n){t.c<0||t.b.b0)t=t<<1|(t<0?1:0);return t}function $Nt(t,n){var s=new gu(t);return rn(n.c,s),s}function UNt(t,n){t.u.Hc((nd(),Gb))&&dTn(t,n),I0n(t,n)}function zc(t,n){return nt(t)===nt(n)||t!=null&&da(t,n)}function Nl(t,n){return Cue(t.a,n)?t.b[b(n,22).g]:null}function _hn(){return aj(),Te(we(L$e,1),Rt,489,0,[Hme])}function Ehn(){return lj(),Te(we(aqe,1),Rt,490,0,[mye])}function whn(){return cj(),Te(we(par,1),Rt,558,0,[bye])}function Shn(){return CM(),Te(we(Cqe,1),Rt,539,0,[$z])}function RK(t){return!t.n&&(t.n=new kt(Dl,t,1,7)),t.n}function jue(t){return!t.c&&(t.c=new kt(ld,t,9,9)),t.c}function gOe(t){return!t.c&&(t.c=new Wr(qn,t,5,8)),t.c}function Thn(t){return!t.b&&(t.b=new Wr(qn,t,4,7)),t.b}function G$(t){return t.j.c.length=0,bOe(t.c),ron(t.a),t}function S6(t){return t.e==ZO&&Vrn(t,yvn(t.g,t.b)),t.e}function z$(t){return t.f==ZO&&qrn(t,c2n(t.g,t.b)),t.f}function Xi(t,n,s,u){return cPt(t,n,s,!1),qX(t,u),t}function GNt(t,n){this.b=t,Bue.call(this,t,n),sIt(this)}function zNt(t,n){this.b=t,JIe.call(this,t,n),oIt(this)}function d8(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function mOe(t,n){this.b=t,this.c=n,this.a=new wA(this.b)}function Ko(t,n){return fn(n,t.length),t.charCodeAt(n)}function xhn(t,n){n7e(t,rt(xb(n,"x")),rt(xb(n,"y")))}function Chn(t,n){n7e(t,rt(xb(n,"x")),rt(xb(n,"y")))}function pa(t,n){return t_(t),new Pr(t,new kNe(n,t.a))}function ec(t,n){return t_(t),new Pr(t,new dNe(n,t.a))}function UT(t,n){return t_(t),new OIe(t,new QMt(n,t.a))}function IK(t,n){return t_(t),new NIe(t,new ZMt(n,t.a))}function khn(t,n){return new dLt(b(mi(t),50),b(mi(n),50))}function Ahn(t,n){return Ra(t.d.c+t.d.b/2,n.d.c+n.d.b/2)}function VNt(t,n,s){s.a?th(t,n.b-t.f/2):eh(t,n.a-t.g/2)}function Rhn(t,n){return Ra(t.g.c+t.g.b/2,n.g.c+n.g.b/2)}function Ihn(t,n){return sRe(),Ra((vn(t),t),(vn(n),n))}function Ohn(t){return t!=null&&t$(Rte,t.toLowerCase())}function bOe(t){var n;for(n=t.Kc();n.Ob();)n.Pb(),n.Qb()}function f4(t){var n=t.b;return!n&&(t.b=n=new tTt(t)),n}function Kue(t){var n=gmn(t);if(n)return n;return null}function HNt(t,n){var s,u;return s=t/n,u=Ks(s),s>u&&++u,u}function Nhn(t,n,s){var u=b(t.d.Kb(s),159);!!u&&u.Nb(n)}function Lhn(t,n,s){DAn(t.a,s),d1n(s),rxn(t.b,s),t5n(n,s)}function OK(t,n,s,u){this.a=t,this.c=n,this.b=s,this.d=u}function yOe(t,n,s,u){this.c=t,this.b=n,this.a=s,this.d=u}function qNt(t,n,s,u){this.c=t,this.b=n,this.d=s,this.a=u}function If(t,n,s,u){this.c=t,this.d=n,this.b=s,this.a=u}function YNt(t,n,s,u){this.a=t,this.d=n,this.c=s,this.b=u}function Xue(t,n,s,u){this.a=t,this.e=n,this.d=s,this.c=u}function WNt(t,n,s,u){this.a=t,this.c=n,this.d=s,this.b=u}function Que(t,n,s){this.a=qDe,this.d=t,this.b=n,this.c=s}function UA(t,n,s,u){ui.call(this,t,n),this.a=s,this.b=u}function jNt(t,n){this.d=(vn(t),t),this.a=16449,this.c=n}function KNt(t){this.a=new Ut,this.e=mt(ci,Bt,53,t,0,2)}function Mhn(t){t.Ug("No crossing minimization",1),t.Vg()}function XNt(){vc.call(this,"There is no more element.")}function QNt(t,n,s,u){this.a=t,this.b=n,this.c=s,this.d=u}function ZNt(t,n,s,u){this.a=t,this.b=n,this.c=s,this.d=u}function F2(t,n,s,u){this.e=t,this.a=n,this.c=s,this.d=u}function JNt(t,n,s,u){this.a=t,this.c=n,this.d=s,this.b=u}function eLt(t,n,s,u){Af(),JMt.call(this,n,s,u),this.a=t}function tLt(t,n,s,u){Af(),JMt.call(this,n,s,u),this.a=t}function Zue(t,n,s){var u,f;return u=ODe(t),f=n.ti(s,u),f}function mb(t){var n,s;return s=(n=new ow,n),M6(s,t),s}function Jue(t){var n,s;return s=(n=new ow,n),MMe(s,t),s}function Dhn(t,n){var s=An(t.f,n);return fLe(n,s),null}function rLt(t){return!t.b&&(t.b=new kt(ws,t,12,3)),t.b}function nLt(t){return e8(t==null||Pue(t)&&t.Tm!==J),t}function NK(t){if(t.n)t.e!==iYt&&t.je(),t.j=null;return t}function T6(t){if(gd(t.d),t.d.d!=t.c)throw ve(new Cf)}function vOe(t){return Pn(t.b0&&D$t(this)}function iLt(t,n){this.a=t,Msn.call(this,t,b(t.d,15).fd(n))}function Phn(t,n){return Ra(Nh(t)*Od(t),Nh(n)*Od(n))}function Bhn(t,n){return Ra(Nh(t)*Od(t),Nh(n)*Od(n))}function Fhn(t){return Zw(t)&&er(Jt(It(t,(Qt(),vE))))}function $hn(t,n){return Ur(t,b(ce(n,(Qt(),yN)),17),n)}function Uhn(t,n){return b(ce(t,(Pt(),D5)),15).Fc(n),n}function _Oe(t,n){return t.b=n.b,t.c=n.c,t.d=n.d,t.a=n.a,t}function aLt(t,n,s,u){this.b=t,this.c=u,Bj.call(this,n,s)}function Ghn(t,n,s){if(t.i=0,t.e=0,n==s)return;zPt(t,n,s)}function zhn(t,n,s){if(t.i=0,t.e=0,n==s)return;VPt(t,n,s)}function Vhn(t,n,s){return xM(),myn(b(An(t.e,n),529),s)}function GA(t){var n;return n=t.f,!n?t.f=new i6(t,t.c):n}function sLt(t,n){return S4(t.j,n.s,n.c)+S4(n.e,t.s,t.c)}function oLt(t,n){if(!!t.e&&!t.e.a)j4t(t.e,n),oLt(t.e,n)}function lLt(t,n){if(!!t.d&&!t.d.a)j4t(t.d,n),lLt(t.d,n)}function Hhn(t,n){return-Ra(Nh(t)*Od(t),Nh(n)*Od(n))}function qhn(t){return b(t.ld(),149).Pg()+":"+hc(t.md())}function cLt(){Nfe(this,new NAe),this.wb=(Hv(),an),t6()}function uLt(t){this.b=new Ut,Us(this.b,this.b),this.a=t}function EOe(t,n){new Va,this.a=new Rh,this.b=t,this.c=n}function Lw(){Lw=z,t$e=new Ie,Rme=new Ie,r$e=new Ee}function Hr(){Hr=z,Jo=new le,I1=new he,bJ=new ye}function wOe(){wOe=z,oQt=new qt,cQt=new B6e,lQt=new cr}function zA(){zA=z,xJ=new Ut,jme=new Zn,Wme=new Ut}function LK(t,n){if(t==null)throw ve(new yA(n));return t}function MK(t){return!t.a&&(t.a=new kt(ra,t,10,11)),t.a}function wa(t){return!t.q&&(t.q=new kt(Op,t,11,10)),t.q}function Ct(t){return!t.s&&(t.s=new kt(_h,t,21,17)),t.s}function Yhn(t){return mi(t),QFt(new Nn(Mn(t.a.Kc(),new L)))}function Whn(t,n){return Ld(t),Ld(n),i3t(b(t,22),b(n,22))}function $2(t,n,s){var u,f;u=t6e(s),f=new MW(u),j0(t,n,f)}function the(t,n,s,u,f,g){iU.call(this,t,n,s,u,f,g?-2:-1)}function hLt(t,n,s,u){zRe.call(this,n,s),this.b=t,this.a=u}function dLt(t,n){pnn.call(this,new Lue(t)),this.a=t,this.b=n}function SOe(t){this.b=t,this.c=t,t.e=null,t.c=null,this.a=1}function jhn(t){r0();var n=b(t.g,10);n.n.a=t.d.c+n.d.b}function x6(){x6=z;var t,n;n=!tvn(),t=new Y,Tme=n?new Z:t}function rhe(t){return Hr(),He(t,59)?new Zle(t):new qj(t)}function DK(t){return He(t,16)?new t8(b(t,16)):kcn(t.Kc())}function Khn(t){return new cIt(t,t.e.Rd().gc()*t.c.Rd().gc())}function Xhn(t){return new uIt(t,t.e.Rd().gc()*t.c.Rd().gc())}function TOe(t){return!!t&&!!t.hashCode?t.hashCode():ww(t)}function nhe(t,n){return n==null?!!wl(t.f,null):dun(t.i,n)}function Qhn(t,n){var s=sIe(t.a,n);return s&&(n.d=null),s}function fLt(t,n,s){if(t.f)return t.f.ef(n,s);return!1}function V$(t,n,s,u){ls(t.c[n.g],s.g,u),ls(t.c[s.g],n.g,u)}function ihe(t,n,s,u){ls(t.c[n.g],n.g,s),ls(t.b[n.g],n.g,u)}function Zhn(t,n,s){return rt(ht(s.a))<=t&&rt(ht(s.b))>=n}function pLt(t,n){this.g=t,this.d=Te(we(N1,1),Gy,10,0,[n])}function gLt(t){this.c=t,this.b=new by(b(mi(new tr),50))}function mLt(t){this.c=t,this.b=new by(b(mi(new Mv),50))}function bLt(t){this.b=t,this.a=new by(b(mi(new Mi),50))}function yLt(){this.b=new Rs,this.d=new Va,this.e=new T5e}function xOe(){this.c=new Oo,this.d=new Oo,this.e=new Oo}function Mw(){this.a=new Rh,this.b=(Kd(3,px),new Gu(3))}function wy(t,n){this.e=t,this.a=ao,this.b=yVt(n),this.c=n}function PK(t){this.c=t.c,this.d=t.d,this.b=t.b,this.a=t.a}function vLt(t,n,s,u,f,g){this.a=t,Xhe.call(this,n,s,u,f,g)}function _Lt(t,n,s,u,f,g){this.a=t,Xhe.call(this,n,s,u,f,g)}function Wv(t,n,s,u,f,g,_){return new Ehe(t.e,n,s,u,f,g,_)}function Jhn(t,n,s){return s>=0&&Br(t.substr(s,n.length),n)}function ELt(t,n){return He(n,149)&&Br(t.b,b(n,149).Pg())}function edn(t,n){return t.a?n.Gh().Kc():b(n.Gh(),71).Ii()}function wLt(t,n){var s=t.b.Qc(n);return mMt(s,t.b.gc()),s}function H$(t,n){if(t==null)throw ve(new yA(n));return t}function tc(t){if(!t.u)fd(t),t.u=new t6t(t,t);return t.u}function ahe(t){this.a=(Hr(),He(t,59)?new Zle(t):new qj(t))}function dh(t){var n=b(cn(t,16),29);return!n?t.ii():n}function BK(t,n){var s=N2(t.Rm);return n==null?s:s+": "+n}function Of(t,n,s){return Do(n,s,t.length),t.substr(n,s-n)}function SLt(t,n){Xj.call(this),PNe(this),this.a=t,this.c=n}function tdn(t){!t||BK(t,t.ie()),String.fromCharCode(10)}function rdn(t){KW(),d.setTimeout(function(){throw t},0)}function ndn(){return aQ(),Te(we(u$e,1),Rt,436,0,[Bme,c$e])}function idn(){return dX(),Te(we(d$e,1),Rt,435,0,[h$e,Fme])}function adn(){return fX(),Te(we(U$e,1),Rt,432,0,[Kme,CJ])}function sdn(){return z6(),Te(we(lJt,1),Rt,517,0,[uz,h1e])}function odn(){return WK(),Te(we(EGe,1),Rt,429,0,[G1e,_Ge])}function ldn(){return pU(),Te(we(aGe,1),Rt,428,0,[ree,iGe])}function cdn(){return iX(),Te(we(QUe,1),Rt,431,0,[XUe,C1e])}function udn(){return dU(),Te(we(fVe,1),Rt,430,0,[wbe,Sbe])}function hdn(){return b8(),Te(we(Jrr,1),Rt,531,0,[E9,_9])}function ddn(){return AX(),Te(we(cHe,1),Rt,501,0,[Yee,vk])}function fdn(){return Tm(),Te(we(snr,1),Rt,523,0,[RS,jy])}function pdn(){return Sg(),Te(we(lnr,1),Rt,522,0,[TE,Gg])}function gdn(){return Y0(),Te(we(Snr,1),Rt,528,0,[zx,w_])}function mdn(){return oU(),Te(we(lGe,1),Rt,488,0,[oGe,iee])}function bdn(){return ZK(),Te(we(ZHe,1),Rt,491,0,[fye,QHe])}function ydn(){return ude(),Te(we(iqe,1),Rt,492,0,[rqe,nqe])}function vdn(){return HK(),Te(we(lHe,1),Rt,433,0,[qbe,oHe])}function _dn(){return sX(),Te(we(hHe,1),Rt,434,0,[uHe,Qbe])}function Edn(){return Pw(),Te(we(Inr,1),Rt,465,0,[S_,mk])}function wdn(){return rU(),Te(we(sqe,1),Rt,438,0,[yye,nte])}function Sdn(){return TU(),Te(we(Aqe,1),Rt,437,0,[ate,kqe])}function Tdn(){return gue(),Te(we(_te,1),Rt,347,0,[VYe,HYe])}function FK(t,n,s,u){return s>=0?t.Uh(n,s,u):t.Ch(null,s,u)}function q$(t){if(t.b.b==0)return t.a.sf();return _ue(t.b)}function xdn(t){if(t.p!=5)throw ve(new Ah);return gi(t.f)}function Cdn(t){if(t.p!=5)throw ve(new Ah);return gi(t.k)}function COe(t){return nt(t.a)===nt((lde(),rve))&&T5n(t),t.a}function kdn(t,n){t.b=n,t.c>0&&t.b>0&&(t.g=dK(t.c,t.b,t.a))}function Adn(t,n){t.c=n,t.c>0&&t.b>0&&(t.g=dK(t.c,t.b,t.a))}function TLt(t,n){krn(this,new Dt(t.a,t.b)),Arn(this,M$(n))}function Dw(){gnn.call(this,new EA(WT(12))),hIe(!0),this.a=2}function she(t,n,s){ia(),sw.call(this,t),this.b=n,this.a=s}function kOe(t,n,s){Af(),UW.call(this,n),this.a=t,this.b=s}function xLt(t){var n=t.c.d.b;t.b=n,t.a=t.c.d,n.a=t.c.d.b=t}function Rdn(t){return t.b==0?null:(Pn(t.b!=0),Df(t,t.a.a))}function mu(t,n){return n==null?Jl(wl(t.f,null)):IM(t.i,n)}function CLt(t,n,s,u,f){return new Mfe(t,(N6(),Lme),n,s,u,f)}function $K(t,n){return fMt(n),Jgn(t,mt(ci,$i,28,n,15,1),n)}function UK(t,n){return LK(t,"set1"),LK(n,"set2"),new gAt(t,n)}function Idn(t,n){var s=Sme[t.charCodeAt(0)];return s==null?t:s}function kLt(t,n){var s,u;return s=n,u=new pt,eqt(t,s,u),u.d}function ohe(t,n,s,u){var f=new i6t;n.a[s.g]=f,FA(t.b,u,f)}function Odn(t,n){var s=Xgn(t.f,n);return ua(Kj(s),t.f.d)}function Y$(t){var n;omn(t.a),MRt(t.a),n=new BW(t.a),f7e(n)}function Ndn(t,n){lVt(t,!0),Ju(t.e.Rf(),new a6e(t,!0,n))}function Ldn(t,n){return zA(),t==Ya(E1(n))||t==Ya(n_(n))}function Mdn(t,n){return Tb(),b(ce(n,(Oc(),Vm)),17).a==t}function Ks(t){return Math.max(Math.min(t,sa),-2147483648)|0}function ALt(t){this.a=b(mi(t),277),this.b=(Hr(),new yIe(t))}function RLt(t,n,s){this.i=new Ut,this.b=t,this.g=n,this.a=s}function AOe(t,n,s){this.a=new Ut,this.e=t,this.f=n,this.c=s}function GK(t,n,s){this.c=new Ut,this.e=t,this.f=n,this.b=s}function ILt(t){Xj.call(this),PNe(this),this.a=t,this.c=!0}function Ddn(t){function n(){}return n.prototype=t||{},new n}function Pdn(t){if(t.Ae())return null;var n=t.n;return hJ[n]}function W$(t){if(t.Db>>16!=3)return null;return b(t.Cb,27)}function wg(t){if(t.Db>>16!=9)return null;return b(t.Cb,27)}function OLt(t){if(t.Db>>16!=6)return null;return b(t.Cb,74)}function Pw(){Pw=z,S_=new IRe(b5,0),mk=new IRe(y5,1)}function Tm(){Tm=z,RS=new kRe(y5,0),jy=new kRe(b5,1)}function Sg(){Sg=z,TE=new ARe(b0e,0),Gg=new ARe("UP",1)}function NLt(){NLt=z,RXt=di((YW(),Te(we(AXt,1),Rt,549,0,[Eme])))}function LLt(t){var n=new JW(WT(t.length));return CLe(n,t),n}function MLt(t,n){return t.b+=n.b,t.c+=n.c,t.d+=n.d,t.a+=n.a,t}function Bdn(t,n){if(_Pt(t,n))return m9t(t),!0;return!1}function bb(t,n){if(n==null)throw ve(new fA);return nvn(t,n)}function j$(t,n){var s=t.q.getHours();t.q.setDate(n),lD(t,s)}function ROe(t,n,s){var u=t.Ih(n);u>=0?t.bi(u,s):k8e(t,n,s)}function DLt(t,n){var s=t.Ih(n);return s>=0?t.Wh(s):Ufe(t,n)}function PLt(t,n){var s;mi(n);for(s=t.a;s;s=s.c)n.Yd(s.g,s.i)}function lhe(t,n,s){var u=UPt(t,n,s);t.b=new IX(u.c.length)}function p4(t,n,s){zK(),!!t&&Ki(Jye,t,n),!!t&&Ki(oV,t,s)}function Fdn(t,n){return tK(),nn(),b(n.a,17).a0}function IOe(t){var n=t.d;return n=t.bj(t.f),ii(t,n),n.Ob()}function BLt(t,n){var s=new M6e(n);return lUt(s,t),new Zh(s)}function Gdn(t){if(t.p!=0)throw ve(new Ah);return zM(t.f,0)}function zdn(t){if(t.p!=0)throw ve(new Ah);return zM(t.k,0)}function FLt(t){if(t.Db>>16!=7)return null;return b(t.Cb,241)}function C6(t){if(t.Db>>16!=6)return null;return b(t.Cb,241)}function $Lt(t){if(t.Db>>16!=7)return null;return b(t.Cb,167)}function Ya(t){if(t.Db>>16!=11)return null;return b(t.Cb,27)}function GT(t){if(t.Db>>16!=17)return null;return b(t.Cb,29)}function ULt(t){if(t.Db>>16!=3)return null;return b(t.Cb,155)}function OOe(t){var n;return t_(t),n=new Rs,pa(t,new YTt(n))}function GLt(t,n){var s=t.a=t.a||[];return s[n]||(s[n]=t.ve(n))}function Vdn(t,n){var s=t.q.getHours();t.q.setMonth(n),lD(t,s)}function zLt(t,n){Vj(this),this.f=n,this.g=t,NK(this),this.je()}function VLt(t,n){this.a=t,this.c=Uo(this.a),this.b=new PK(n)}function HLt(t,n,s){this.a=n,this.c=t,this.b=(mi(s),new Zh(s))}function qLt(t,n,s){this.a=n,this.c=t,this.b=(mi(s),new Zh(s))}function YLt(t){this.a=t,this.b=mt(Xrr,Bt,2043,t.e.length,0,2)}function WLt(){this.a=new vm,this.e=new Rs,this.g=0,this.i=0}function zK(){zK=z,Jye=new Zn,oV=new Zn,Bin(WXt,new M2t)}function jLt(){jLt=z,Mrr=Lh(new Ns,(Xo(),ac),(il(),hz))}function NOe(){NOe=z,Drr=Lh(new Ns,(Xo(),ac),(il(),hz))}function KLt(){KLt=z,Brr=Lh(new Ns,(Xo(),ac),(il(),hz))}function XLt(){XLt=z,tnr=Fi(new Ns,(Xo(),ac),(il(),JD))}function qd(){qd=z,inr=Fi(new Ns,(Xo(),ac),(il(),JD))}function QLt(){QLt=z,anr=Fi(new Ns,(Xo(),ac),(il(),JD))}function uhe(){uhe=z,unr=Fi(new Ns,(Xo(),ac),(il(),JD))}function f8(t,n,s,u,f,g){return new wb(t.e,n,t.Lj(),s,u,f,g)}function Vl(t,n,s){return n==null?Hu(t.f,null,s):Yw(t.i,n,s)}function tl(t,n){!!t.c&&fh(t.c.g,t),t.c=n,!!t.c&&Gt(t.c.g,t)}function Lo(t,n){!!t.c&&fh(t.c.a,t),t.c=n,!!t.c&&Gt(t.c.a,t)}function Ec(t,n){!!t.i&&fh(t.i.j,t),t.i=n,!!t.i&&Gt(t.i.j,t)}function ko(t,n){!!t.d&&fh(t.d.e,t),t.d=n,!!t.d&&Gt(t.d.e,t)}function hhe(t,n){!!t.a&&fh(t.a.k,t),t.a=n,!!t.a&&Gt(t.a.k,t)}function dhe(t,n){!!t.b&&fh(t.b.f,t),t.b=n,!!t.b&&Gt(t.b.f,t)}function ZLt(t,n){thn(t,t.b,t.c),b(t.b.b,68),!!n&&b(n.b,68).b}function Hdn(t,n){return Ra(b(t.c,65).c.e.b,b(n.c,65).c.e.b)}function qdn(t,n){return Ra(b(t.c,65).c.e.a,b(n.c,65).c.e.a)}function Ydn(t){return Ade(),nn(),b(t.a,86).d.e!=0?!0:!1}function VK(t,n){He(t.Cb,184)&&(b(t.Cb,184).tb=null),zu(t,n)}function fhe(t,n){He(t.Cb,90)&&sx(fd(b(t.Cb,90)),4),zu(t,n)}function Wdn(t,n){i7e(t,n),He(t.Cb,90)&&sx(fd(b(t.Cb,90)),2)}function jdn(t,n){var s,u;s=n.c,u=s!=null,u&&$A(t,new $T(n.c))}function JLt(t){var n,s;return s=(t6(),n=new ow,n),M6(s,t),s}function e7t(t){var n,s;return s=(t6(),n=new ow,n),M6(s,t),s}function t7t(t){var n;while(!0)if(n=t.Pb(),!t.Ob())return n}function Kdn(t,n,s){return Gt(t.a,(AK(),ufe(n,s),new pw(n,s))),t}function bu(t,n){return _l(),zhe(n)?new lK(n,t):new v$(n,t)}function K$(t){return Am(),Kc(t,0)>=0?r_(t):l8(r_(ky(t)))}function Xdn(t){var n=b(sK(t.b),9);return new Rf(t.a,n,t.c)}function r7t(t,n){var s=b(ZT(GA(t.a),n),16);return!s?0:s.gc()}function n7t(t,n,s){var u;ABt(n,s,t.c.length),u=s-n,eRe(t.c,n,u)}function Sy(t,n,s){ABt(n,s,t.gc()),this.c=t,this.a=n,this.b=s-n}function VA(t){this.c=new Va,this.b=t.b,this.d=t.c,this.a=t.a}function phe(t){this.a=d.Math.cos(t),this.b=d.Math.sin(t)}function U2(t,n,s,u){this.c=t,this.d=u,hhe(this,n),dhe(this,s)}function LOe(t,n){fnn.call(this,new EA(WT(t))),Kd(n,Zqt),this.a=n}function i7t(t,n,s){return new Mfe(t,(N6(),Nme),null,!1,n,s)}function a7t(t,n,s){return new Mfe(t,(N6(),Mme),n,s,null,!1)}function Qdn(){return rd(),Te(we(Wl,1),Rt,108,0,[l$e,fc,Sx])}function Zdn(){return ph(),Te(we(yQt,1),Rt,472,0,[eg,b_,d0])}function Jdn(){return td(),Te(we(mQt,1),Rt,471,0,[Um,m_,h0])}function efn(){return K0(),Te(we(Tx,1),Rt,237,0,[Mc,qu,Dc])}function tfn(){return _8(),Te(we(tUe,1),Rt,391,0,[Jme,Zme,e1e])}function rfn(){return Vw(),Te(we(b1e,1),Rt,372,0,[bS,y_,mS])}function nfn(){return S8(),Te(we(JUe,1),Rt,322,0,[t9,pz,ZUe])}function ifn(){return EX(),Te(we(tGe,1),Rt,351,0,[eGe,tee,k1e])}function afn(){return K2(),Te(we($Jt,1),Rt,460,0,[I1e,dN,ik])}function sfn(){return W6(),Te(we(U1e,1),Rt,299,0,[F1e,$1e,gz])}function ofn(){return Sb(),Te(we(WJt,1),Rt,311,0,[mz,sk,N5])}function lfn(){return L8(),Te(we(nVe,1),Rt,390,0,[gbe,rVe,Nee])}function cfn(){return Sl(),Te(we(krr,1),Rt,463,0,[b9,ad,Yu])}function ufn(){return DX(),Te(we(mVe,1),Rt,387,0,[pVe,Tbe,gVe])}function hfn(){return I8(),Te(we(bVe,1),Rt,349,0,[Cbe,xbe,kz])}function dfn(){return tO(),Te(we(vVe,1),Rt,350,0,[kbe,yVe,y9])}function ffn(){return _X(),Te(we(wVe,1),Rt,352,0,[EVe,Abe,_Ve])}function pfn(){return $X(),Te(we(SVe,1),Rt,388,0,[Rbe,xN,Gx])}function gfn(){return zw(),Te(we(jrr,1),Rt,464,0,[Az,v9,Pee])}function Tg(t){return Sc(Te(we(uo,1),Bt,8,0,[t.i.n,t.n,t.a]))}function mfn(){return O8(),Te(we(UVe,1),Rt,392,0,[$Ve,Nbe,Iz])}function s7t(){s7t=z,air=Lh(new Ns,(s5(),S9),(sD(),IVe))}function HK(){HK=z,qbe=new ORe("DFS",0),oHe=new ORe("BFS",1)}function o7t(t,n,s){var u=new Uyt;u.b=n,u.a=s,++n.b,Gt(t.d,u)}function bfn(t,n,s){var u=new sl(s.d);ua(u,t),n7e(n,u.a,u.b)}function yfn(t,n){eIt(t,gi(io(Cw(n,24),aZ)),gi(io(n,aZ)))}function zT(t,n){if(t<0||t>n)throw ve(new Gl(e9e+t+t9e+n))}function qr(t,n){if(t<0||t>=n)throw ve(new Gl(e9e+t+t9e+n))}function fn(t,n){if(t<0||t>=n)throw ve(new G5e(e9e+t+t9e+n))}function Gr(t,n){this.b=(vn(t),t),this.a=(n&gx)==0?n|64|Im:n}function MOe(t){var n;return t_(t),n=(Lw(),Lw(),Rme),mX(t,n)}function vfn(t,n,s){var u=hD(t,n,!1);return u.b<=n&&u.a<=s}function _fn(){return oX(),Te(we(tqe,1),Rt,439,0,[pye,eqe,JHe])}function Efn(){return jX(),Te(we(PHe,1),Rt,394,0,[DHe,cye,MHe])}function wfn(){return eQ(),Te(we(LHe,1),Rt,445,0,[Dz,Xee,nye])}function Sfn(){return hQ(),Te(we(Pir,1),Rt,456,0,[iye,sye,aye])}function Tfn(){return AU(),Te(we(pHe,1),Rt,393,0,[Wee,dHe,fHe])}function xfn(){return MX(),Te(we(NHe,1),Rt,300,0,[rye,OHe,IHe])}function Cfn(){return Cb(),Te(we(DYe,1),Rt,346,0,[fte,Zy,z9])}function kfn(){return MU(),Te(we(gye,1),Rt,444,0,[ete,tte,rte])}function Afn(){return Rg(),Te(we(SYe,1),Rt,278,0,[NN,Yx,LN])}function Rfn(){return e5(),Te(we(zYe,1),Rt,280,0,[GYe,jx,vte])}function Bw(t){return mi(t),He(t,16)?new Zh(b(t,16)):g6(t.Kc())}function DOe(t,n){return!!t&&!!t.equals?t.equals(n):nt(t)===nt(n)}function io(t,n){return Qv(Eun(cc(t)?mp(t):t,cc(n)?mp(n):n))}function q0(t,n){return Qv(wun(cc(t)?mp(t):t,cc(n)?mp(n):n))}function ghe(t,n){return Qv(Sun(cc(t)?mp(t):t,cc(n)?mp(n):n))}function Ifn(t,n){var s=(vn(t),t).g;return RIe(!!s),vn(n),s(n)}function l7t(t,n){var s,u;return u=y6(t,n),s=t.a.fd(u),new fAt(t,s)}function Ofn(t){if(t.Db>>16!=6)return null;return b(Vfe(t),241)}function Nfn(t){if(t.p!=2)throw ve(new Ah);return gi(t.f)&Ds}function Lfn(t){if(t.p!=2)throw ve(new Ah);return gi(t.k)&Ds}function ge(t){return Pn(t.au?1:0}function d7t(t,n){var s,u;return s=Fhe(n),u=s,b(An(t.c,u),17).a}function mhe(t,n,s){var u=t.d[n.p];t.d[n.p]=t.d[s.p],t.d[s.p]=u}function Hfn(t,n,s){var u;if(t.n&&!!n&&!!s)u=new x2t,Gt(t.e,u)}function bhe(t,n){if($s(t.a,n),n.d)throw ve(new vc(EYt));n.d=t}function FOe(t,n){this.a=new Ut,this.d=new Ut,this.f=t,this.c=n}function f7t(){this.c=new XRt,this.a=new r8t,this.b=new pkt,NAt()}function p7t(){ZA(),this.b=new Zn,this.a=new Zn,this.c=new Ut}function g7t(t,n,s){this.d=t,this.j=n,this.e=s,this.o=-1,this.p=3}function m7t(t,n,s){this.d=t,this.k=n,this.f=s,this.o=-1,this.p=5}function b7t(t,n,s,u,f,g){FNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function y7t(t,n,s,u,f,g){$Ne.call(this,t,n,s,u,f),g&&(this.o=-2)}function v7t(t,n,s,u,f,g){rNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function _7t(t,n,s,u,f,g){zNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function E7t(t,n,s,u,f,g){nNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function w7t(t,n,s,u,f,g){UNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function S7t(t,n,s,u,f,g){GNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function T7t(t,n,s,u,f,g){iNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function x7t(t,n,s,u){UW.call(this,s),this.b=t,this.c=n,this.d=u}function C7t(t,n){this.f=t,this.a=(R6(),Nte),this.c=Nte,this.b=n}function k7t(t,n){this.g=t,this.d=(R6(),Lte),this.a=Lte,this.b=n}function $Oe(t,n){!t.c&&(t.c=new gs(t,0)),KQ(t.c,(ka(),eP),n)}function qfn(t,n){return kxn(t,n,He(n,102)&&(b(n,19).Bb&ml)!=0)}function Yfn(t,n){return oNt(Vc(t.q.getTime()),Vc(n.q.getTime()))}function A7t(t){return Sue(t.e.Rd().gc()*t.c.Rd().gc(),16,new ZSt(t))}function Wfn(t){return!!t.u&&nu(t.u.a).i!=0&&!(!!t.n&&sfe(t.n))}function jfn(t){return!!t.a&&pd(t.a.a).i!=0&&!(!!t.b&&ofe(t.b))}function UOe(t,n){if(n==0)return!!t.o&&t.o.f!=0;return efe(t,n)}function Kfn(t,n,s){var u=b(t.Zb().xc(n),16);return!!u&&u.Hc(s)}function R7t(t,n,s){var u=b(t.Zb().xc(n),16);return!!u&&u.Mc(s)}function I7t(t,n){var s=1-n;return t.a[s]=RX(t.a[s],s),RX(t,n)}function O7t(t,n){var s,u;return u=io(t,xl),s=n0(n,32),q0(s,u)}function N7t(t,n,s){var u=(mi(t),new Zh(t));Q_n(new HLt(u,n,s))}function X$(t,n,s){var u=(mi(t),new Zh(t));Z_n(new qLt(u,n,s))}function Rc(t,n,s,u,f,g){return cPt(t,n,s,g),KLe(t,u),XLe(t,f),t}function L7t(t,n,s,u){return t.a+=""+Of(n==null?mh:hc(n),s,u),t}function Mo(t,n){this.a=t,cM.call(this,t),zT(n,t.gc()),this.b=n}function M7t(t){this.a=mt(ao,en,1,wLe(d.Math.max(8,t))<<1,5,1)}function Q$(t){return b(Og(t,mt(N1,Gy,10,t.c.length,0,1)),199)}function xm(t){return b(Og(t,mt(o1e,M0e,18,t.c.length,0,1)),483)}function D7t(t){return!t.a?t.c:t.e.length==0?t.a.a:t.a.a+(""+t.e)}function p8(t){while(t.d>0&&t.a[--t.d]==0);t.a[t.d++]==0&&(t.e=0)}function P7t(t){return Pn(t.b.b!=t.d.a),t.c=t.b=t.b.b,--t.a,t.c.c}function Xfn(t,n,s){t.a=n,t.c=s,t.b.a.$b(),Hd(t.d),xT(t.e.a.c,0)}function B7t(t,n){var s;t.e=new O5e,s=lx(n),ks(s,t.c),Qzt(t,s,0)}function Ls(t,n,s,u){var f=new xAe;f.a=n,f.b=s,f.c=u,Oi(t.a,f)}function Ft(t,n,s,u){var f=new xAe;f.a=n,f.b=s,f.c=u,Oi(t.b,f)}function F7t(t,n,s){if(t<0||ns)throw ve(new Gl(cSn(t,n,s)))}function Z$(t,n){if(t<0||t>=n)throw ve(new Gl(USn(t,n)));return t}function Qfn(t){if(!("stack"in t))try{throw t}catch(n){}return t}function g4(t){if(xM(),He(t.g,10))return b(t.g,10);return null}function Zfn(t){if(f4(t).dc())return!1;return Ean(t,new F),!0}function z2(t){var n;if(cc(t))return n=t,n==-0?0:n;return fgn(t)}function $7t(t,n){if(He(n,44))return dfe(t.a,b(n,44));return!1}function U7t(t,n){if(He(n,44))return dfe(t.a,b(n,44));return!1}function G7t(t,n){if(He(n,44))return dfe(t.a,b(n,44));return!1}function GOe(t){var n;return Yv(t),n=new Ue,QC(t.a,new VTt(n)),n}function zOe(){var t,n,s;return n=(s=(t=new ow,t),s),Gt(TWe,n),n}function qK(t){var n;return Yv(t),n=new Me,QC(t.a,new HTt(n)),n}function Jfn(t,n){if(t.a<=t.b)return n.Dd(t.a++),!0;return!1}function z7t(t){ade.call(this,t,(N6(),Ome),null,!1,null,!1)}function V7t(){V7t=z,XQt=di((aj(),Te(we(L$e,1),Rt,489,0,[Hme])))}function H7t(){H7t=z,xVe=PNt($t(1),$t(4)),TVe=PNt($t(1),$t(2))}function epn(t,n){return new bue(n,QM(Uo(n.e),t,t),(nn(),!0))}function YK(t){return new Gu((Kd(t,Dpe),pX(rl(rl(5,t),t/10|0))))}function tpn(t){return Sue(t.e.Rd().gc()*t.c.Rd().gc(),273,new QSt(t))}function q7t(t){return b(Og(t,mt(aJt,ZYt,12,t.c.length,0,1)),2042)}function rpn(t){return qd(),!gl(t)&&!(!gl(t)&&t.c.i.c==t.d.i.c)}function npn(t,n){return XA(),b(ce(n,(Oc(),bk)),17).a>=t.gc()}function g8(t,n){$In(n,t),E6e(t.d),E6e(b(ce(t,(Qt(),xee)),214))}function yhe(t,n){UIn(n,t),w6e(t.d),w6e(b(ce(t,(Qt(),xee)),214))}function ipn(t,n,s){!!t.d&&fh(t.d.e,t),t.d=n,!!t.d&&xw(t.d.e,s,t)}function apn(t,n,s){return s.f.c.length>0?X6e(t.a,n,s):X6e(t.b,n,s)}function spn(t,n,s){var u=Svn();try{return Wsn(t,n,s)}finally{Zpn(u)}}function Fw(t,n){var s,u;return s=bb(t,n),u=null,!!s&&(u=s.pe()),u}function m8(t,n){var s,u;return s=bb(t,n),u=null,!!s&&(u=s.se()),u}function k6(t,n){var s,u;return s=YT(t,n),u=null,!!s&&(u=s.se()),u}function yb(t,n){var s,u;return s=bb(t,n),u=null,!!s&&(u=GMe(s)),u}function opn(t,n,s){var u=cO(s);return HQ(t.g,u,n),HQ(t.i,n,s),n}function VOe(t,n,s){this.d=new rCt(this),this.e=t,this.i=n,this.f=s}function Y7t(t,n,s,u){this.e=null,this.c=t,this.d=n,this.a=s,this.b=u}function W7t(t,n,s,u){HRt(this),this.c=t,this.e=n,this.f=s,this.b=u}function HOe(t,n,s,u){this.d=t,this.n=n,this.g=s,this.o=u,this.p=-1}function j7t(t,n,s,u){return He(s,59)?new TIt(t,n,s,u):new H6e(t,n,s,u)}function A6(t){if(He(t,16))return b(t,16).dc();return!t.Kc().Ob()}function K7t(t){if(t.e.g!=t.b)throw ve(new Cf);return!!t.c&&t.d>0}function Jn(t){return Pn(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function qOe(t,n){vn(n),ls(t.a,t.c,n),t.c=t.c+1&t.a.length-1,b$t(t)}function jv(t,n){vn(n),t.b=t.b-1&t.a.length-1,ls(t.a,t.b,n),b$t(t)}function X7t(t){var n=t.Gh();this.a=He(n,71)?b(n,71).Ii():n.Kc()}function lpn(t){return new Gr(Wgn(b(t.a.md(),16).gc(),t.a.ld()),16)}function Q7t(){Q7t=z,far=di((lj(),Te(we(aqe,1),Rt,490,0,[mye])))}function Z7t(){Z7t=z,gar=di((cj(),Te(we(par,1),Rt,558,0,[bye])))}function J7t(){J7t=z,Mar=di((CM(),Te(we(Cqe,1),Rt,539,0,[$z])))}function cpn(){return Z2(),Te(we(aUe,1),Rt,389,0,[kx,iUe,a1e,s1e])}function upn(){return N6(),Te(we(yJ,1),Rt,304,0,[Ome,Nme,Lme,Mme])}function hpn(){return n5(),Te(we(qQt,1),Rt,332,0,[nz,rz,iz,az])}function dpn(){return H8(),Te(we(jQt,1),Rt,406,0,[sz,wJ,SJ,oz])}function fpn(){return qw(),Te(we(VQt,1),Rt,417,0,[tz,ez,zme,Vme])}function ppn(){return j6(),Te(we(WZt,1),Rt,416,0,[gS,Cx,xx,J4])}function gpn(){return Ig(),Te(we(SJt,1),Rt,421,0,[O5,aN,sN,m1e])}function mpn(){return FX(),Te(we(dJt,1),Rt,371,0,[g1e,KJ,XJ,dz])}function bpn(){return tx(),Te(we(bbe,1),Rt,203,0,[Lee,mbe,gk,pk])}function ypn(){return Cm(),Te(we(dVe,1),Rt,284,0,[Wy,hVe,_be,Ebe])}function vpn(t){var n;return t.j==(Ht(),Kn)&&(n=$Gt(t),Oh(n,Cn))}function _pn(t,n){var s=n.a;tl(s,n.c.d),ko(s,n.d.d),XT(s.a,t.n)}function YOe(t,n){var s=b(Ag(t.b,n),67);return!s&&(s=new Va),s}function qA(t){if(xM(),He(t.g,154))return b(t.g,154);return null}function Epn(t){t.a=null,t.e=null,xT(t.b.c,0),xT(t.f.c,0),t.c=null}function WK(){WK=z,G1e=new TRe(BO,0),_Ge=new TRe("TOP_LEFT",1)}function b8(){b8=z,E9=new CRe("UPPER",0),_9=new CRe("LOWER",1)}function wpn(t,n){return AA(new Dt(n.e.a+n.f.a/2,n.e.b+n.f.b/2),t)}function eMt(t,n){return b(Rd(BT(b(_a(t.k,n),15).Oc(),tk)),113)}function tMt(t,n){return b(Rd(PA(b(_a(t.k,n),15).Oc(),tk)),113)}function Spn(){return s5(),Te(we(AVe,1),Rt,405,0,[Uee,w9,S9,T9])}function Tpn(){return N8(),Te(we(sHe,1),Rt,353,0,[Hbe,qee,Vbe,zbe])}function xpn(){return gQ(),Te(we(RHe,1),Rt,354,0,[tye,kHe,AHe,CHe])}function Cpn(){return Md(),Te(we(W9,1),Rt,386,0,[tV,IE,eV,Wx])}function kpn(){return Qd(),Te(we(wsr,1),Rt,291,0,[Qz,D1,C_,Xz])}function Apn(){return kb(),Te(we(Hye,1),Rt,223,0,[Vye,Kz,MN,Y5])}function Rpn(){return XX(),Te(we(jYe,1),Rt,320,0,[Wye,qYe,WYe,YYe])}function Ipn(){return UX(),Te(we($sr,1),Rt,415,0,[jye,XYe,KYe,QYe])}function Opn(t){return zK(),Zu(Jye,t)?b(An(Jye,t),341).Qg():null}function Nf(t,n,s){return n<0?Ufe(t,s):b(s,69).wk().Bk(t,t.hi(),n)}function Npn(t,n,s){var u=cO(s);return HQ(t.j,u,n),Ki(t.k,n,s),n}function Lpn(t,n,s){var u=cO(s);return HQ(t.d,u,n),Ki(t.e,n,s),n}function rMt(t){var n,s;return n=(Bv(),s=new yle,s),!!t&&MQ(n,t),n}function WOe(t){var n=t.aj(t.i);return t.i>0&&au(t.g,0,n,0,t.i),n}function nMt(t,n){var s;for(s=t.j.c.length;s>24}function Dpn(t){if(t.p!=1)throw ve(new Ah);return gi(t.k)<<24>>24}function Ppn(t){if(t.p!=7)throw ve(new Ah);return gi(t.k)<<16>>16}function Bpn(t){if(t.p!=7)throw ve(new Ah);return gi(t.f)<<16>>16}function m4(t,n){if(n.e==0||t.e==0)return jD;return EO(),Kfe(t,n)}function sMt(t,n){return nt(n)===nt(t)?"(this Map)":n==null?mh:hc(n)}function Fpn(t,n,s){return Nue(ht(Jl(wl(t.f,n))),ht(Jl(wl(t.f,s))))}function $pn(t,n,s){var u=b(An(t.g,s),60);Gt(t.a.c,new js(n,u))}function oMt(t,n,s){if(t.i=0,t.e=0,n==s)return;VPt(t,n,s),zPt(t,n,s)}function Upn(t,n,s,u,f){var g=Gxn(f,s,u);Gt(n,LSn(f,g)),Twn(t,f,n)}function jOe(t,n,s,u,f){this.i=t,this.a=n,this.e=s,this.j=u,this.f=f}function lMt(t,n){xOe.call(this),this.a=t,this.b=n,Gt(this.a.b,this)}function cMt(t){this.b=new Zn,this.c=new Zn,this.d=new Zn,this.a=t}function uMt(t,n){var s=new KC;return t.Gd(s),s.a+="..",n.Hd(s),s.a}function hMt(t,n){var s=n;while(s)Sw(t,s.i,s.j),s=Ya(s);return t}function dMt(t,n,s){var u=cO(s);return Ki(t.b,u,n),Ki(t.c,n,s),n}function vb(t){var n=0;while(t.Ob())t.Pb(),n=rl(n,1);return pX(n)}function y1(t,n){_l();var s=b(t,69).vk();return Uwn(s,n),s.xl(n)}function Gpn(t,n,s){if(s){var u=s.oe();t.a[n]=u(s)}else delete t.a[n]}function KOe(t,n){var s=t.q.getHours();t.q.setFullYear(n+c_),lD(t,s)}function zpn(t,n){return b(n==null?Jl(wl(t.f,null)):IM(t.i,n),288)}function XOe(t,n){return t==(mn(),Es)&&n==Es?4:t==Es||n==Es?8:32}function jK(t,n,s){return YQ(t,n,s,He(n,102)&&(b(n,19).Bb&ml)!=0)}function Vpn(t,n,s){return xO(t,n,s,He(n,102)&&(b(n,19).Bb&ml)!=0)}function Hpn(t,n,s){return Mxn(t,n,s,He(n,102)&&(b(n,19).Bb&ml)!=0)}function QOe(t){if(t.b==t.c)return;t.a=mt(ao,en,1,8,5,1),t.b=0,t.c=0}function y8(t){return Pn(t.a=0&&t.a[s]===n[s];s--);return s<0}function KK(t){var n;if(t)return new M6e(t);return n=new vm,nde(n,t),n}function Qpn(t,n){var s,u;u=!1;do s=NPt(t,n),u=u|s;while(s);return u}function Zpn(t){if(t&&Tgn((B5e(),MFe)),--dJ,t){if(fJ!=-1)Vin(fJ),fJ=-1}}function XK(t){xMe(),eIt(this,gi(io(Cw(t,24),aZ)),gi(io(t,aZ)))}function bMt(){bMt=z,uQt=di((aQ(),Te(we(u$e,1),Rt,436,0,[Bme,c$e])))}function yMt(){yMt=z,hQt=di((dX(),Te(we(d$e,1),Rt,435,0,[h$e,Fme])))}function vMt(){vMt=z,fZt=di((fX(),Te(we(U$e,1),Rt,432,0,[Kme,CJ])))}function _Mt(){_Mt=z,cJt=di((z6(),Te(we(lJt,1),Rt,517,0,[uz,h1e])))}function EMt(){EMt=z,KJt=di((WK(),Te(we(EGe,1),Rt,429,0,[G1e,_Ge])))}function wMt(){wMt=z,FJt=di((pU(),Te(we(aGe,1),Rt,428,0,[ree,iGe])))}function SMt(){SMt=z,zJt=di((oU(),Te(we(lGe,1),Rt,488,0,[oGe,iee])))}function TMt(){TMt=z,Crr=di((dU(),Te(we(fVe,1),Rt,430,0,[wbe,Sbe])))}function xMt(){xMt=z,enr=di((b8(),Te(we(Jrr,1),Rt,531,0,[E9,_9])))}function CMt(){CMt=z,MJt=di((iX(),Te(we(QUe,1),Rt,431,0,[XUe,C1e])))}function kMt(){kMt=z,iir=di((HK(),Te(we(lHe,1),Rt,433,0,[qbe,oHe])))}function AMt(){AMt=z,cir=di((AX(),Te(we(cHe,1),Rt,501,0,[Yee,vk])))}function RMt(){RMt=z,onr=di((Tm(),Te(we(snr,1),Rt,523,0,[RS,jy])))}function IMt(){IMt=z,cnr=di((Sg(),Te(we(lnr,1),Rt,522,0,[TE,Gg])))}function OMt(){OMt=z,Tnr=di((Y0(),Te(we(Snr,1),Rt,528,0,[zx,w_])))}function NMt(){NMt=z,Onr=di((Pw(),Te(we(Inr,1),Rt,465,0,[S_,mk])))}function LMt(){LMt=z,dir=di((sX(),Te(we(hHe,1),Rt,434,0,[uHe,Qbe])))}function MMt(){MMt=z,oar=di((ZK(),Te(we(ZHe,1),Rt,491,0,[fye,QHe])))}function DMt(){DMt=z,car=di((ude(),Te(we(iqe,1),Rt,492,0,[rqe,nqe])))}function PMt(){PMt=z,mar=di((rU(),Te(we(sqe,1),Rt,438,0,[yye,nte])))}function BMt(){BMt=z,Dar=di((TU(),Te(we(Aqe,1),Rt,437,0,[ate,kqe])))}function FMt(){FMt=z,Psr=di((gue(),Te(we(_te,1),Rt,347,0,[VYe,HYe])))}function Jpn(){return Ms(),Te(we(U9,1),Rt,88,0,[Hg,sc,Kl,Vg,jf])}function e0n(){return Ht(),Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn])}function t0n(t,n,s){return b(n==null?Hu(t.f,null,s):Yw(t.i,n,s),288)}function r0n(t){return(t.k==(mn(),Es)||t.k==As)&&$a(t,(Pt(),a9))}function She(t){return!!t.c&&!!t.d?BOe(t.c)+"->"+BOe(t.d):"e_"+ww(t)}function Vo(t,n){var s,u;vn(n);for(u=t.Kc();u.Ob();)s=u.Pb(),n.Cd(s)}function n0n(t,n){var s=new bA;$2(s,"x",n.a),$2(s,"y",n.b),$A(t,s)}function i0n(t,n){var s=new bA;$2(s,"x",n.a),$2(s,"y",n.b),$A(t,s)}function $Mt(t,n){var s=n;while(s)Sw(t,-s.i,-s.j),s=Ya(s);return t}function JOe(t,n){var s,u;s=n,u=0;while(s>0)u+=t.a[s],s-=s&-s;return u}function Lf(t,n,s){var u=(qr(n,t.c.length),t.c[n]);return t.c[n]=s,u}function eNe(t,n,s){t.a.c.length=0,R5n(t,n,s),t.a.c.length==0||r3n(t,n)}function J$(t){t.i=0,a$(t.b,null),a$(t.c,null),t.a=null,t.e=null,++t.g}function QK(){QK=z,Fg=!0,eQt=!1,tQt=!1,nQt=!1,rQt=!1}function The(t){if(QK(),Fg)return;this.c=t,this.e=!0,this.a=new Ut}function UMt(t,n){this.c=0,this.b=n,cRt.call(this,t,17493),this.a=this.c}function GMt(t){Vqt(),K4t(this),this.a=new Va,LLe(this,t),Oi(this.a,t)}function zMt(){Wce(this),this.b=new Dt(Wa,Wa),this.a=new Dt(Gs,Gs)}function ZK(){ZK=z,fye=new MRe(O9e,0),QHe=new MRe("TARGET_WIDTH",1)}function b4(t,n){return(t_(t),r6(new Pr(t,new kNe(n,t.a)))).Bd(A5)}function a0n(){return Xo(),Te(we(rUe,1),Rt,367,0,[f0,O1,su,wu,ac])}function s0n(){return nx(),Te(we(xJt,1),Rt,375,0,[fz,JJ,eee,ZJ,QJ])}function o0n(){return My(),Te(we(nGe,1),Rt,348,0,[A1e,rGe,R1e,hN,uN])}function l0n(){return V8(),Te(we(aVe,1),Rt,323,0,[iVe,ybe,vbe,g9,m9])}function c0n(){return Uf(),Te(we(MGe,1),Rt,171,0,[_z,o9,__,l9,Nx])}function u0n(){return wQ(),Te(we(uir,1),Rt,368,0,[Kbe,Ybe,Xbe,Wbe,jbe])}function h0n(){return rD(),Te(we(uar,1),Rt,373,0,[_k,G5,L9,N9,Fz])}function d0n(){return KU(),Te(we(uqe,1),Rt,324,0,[oqe,vye,cqe,_ye,lqe])}function f0n(){return Q0(),Te(we(M1,1),Rt,170,0,[Qr,Qs,Hm,xE,Xy])}function p0n(){return T4(),Te(we(H9,1),Rt,256,0,[k_,Zz,PYe,V9,BYe])}function g0n(t){return KW(),function(){return spn(t,this,arguments);var n}}function gl(t){if(!t.c||!t.d)return!1;return!!t.c.i&&t.c.i==t.d.i}function tNe(t,n){if(He(n,143))return Br(t.c,b(n,143).c);return!1}function fd(t){if(!t.t)t.t=new $4t(t),B8(new t3t(t),0,t.t);return t.t}function VMt(t){this.b=t,kn.call(this,t),this.a=b(cn(this.b.a,4),129)}function HMt(t){this.b=t,IA.call(this,t),this.a=b(cn(this.b.a,4),129)}function i0(t,n,s,u,f){e8t.call(this,n,u,f),hA(this),this.c=t,this.b=s}function rNe(t,n,s,u,f){g7t.call(this,n,u,f),hA(this),this.c=t,this.a=s}function nNe(t,n,s,u,f){m7t.call(this,n,u,f),hA(this),this.c=t,this.a=s}function iNe(t,n,s,u,f){e8t.call(this,n,u,f),hA(this),this.c=t,this.a=s}function xhe(t,n){var s=b(Ag(t.d,n),23);return s?s:b(Ag(t.e,n),23)}function qMt(t,n){var s,u;return s=n.ld(),u=t.Fe(s),!!u&&zc(u.e,n.md())}function YMt(t,n){var s=n.ld();return new pw(s,t.e.pc(s,b(n.md(),16)))}function m0n(t,n){var s=t.a.get(n);return s==null?mt(ao,en,1,0,5,1):s}function WMt(t){var n=t.length;return Br(wn.substr(wn.length-n,n),t)}function Gn(t){if(ri(t))return t.c=t.a,t.a.Pb();else throw ve(new yc)}function aNe(t,n){if(n==0||t.e==0)return t;return n>0?Pzt(t,n):sFt(t,-n)}function YA(t,n){if(n==0||t.e==0)return t;return n>0?sFt(t,n):Pzt(t,-n)}function sNe(t){kin.call(this,t==null?mh:hc(t),He(t,82)?b(t,82):null)}function jMt(t){var n;if(!t.c)n=t.r,He(n,90)&&(t.c=b(n,29));return t.c}function Che(t){var n=new Mw;return nc(n,t),At(n,(Qt(),jl),null),n}function KMt(t){var n,s;return n=t.c.i,s=t.d.i,n.k==(mn(),As)&&s.k==As}function khe(t){var n,s,u;return n=t&yd,s=t>>22&yd,u=t<0?Mb:0,Qu(n,s,u)}function b0n(t){var n,s,u,f;for(s=t,u=0,f=s.length;u=0?t.Lh(u,s,!0):Jw(t,n,s)}function v0n(t,n,s){return Ra(AA(hO(t),Uo(n.b)),AA(hO(t),Uo(s.b)))}function _0n(t,n,s){return Ra(AA(hO(t),Uo(n.e)),AA(hO(t),Uo(s.e)))}function E0n(t,n){return d.Math.min(Kv(n.a,t.d.d.c),Kv(n.b,t.d.d.c))}function eU(t,n){t._i(t.i+1),jM(t,t.i,t.Zi(t.i,n)),t.Mi(t.i++,n),t.Ni()}function v8(t){var n,s;++t.j,n=t.g,s=t.i,t.g=null,t.i=0,t.Oi(s,n),t.Ni()}function XMt(t,n,s){var u=new aIe(t.a);C8(u,t.a.a),Hu(u.f,n,s),t.a.a=u}function oNe(t,n,s,u){var f;for(f=0;f<_J;f++)bK(t.a[f][n.g],s,u[n.g])}function lNe(t,n,s,u){var f;for(f=0;fn)throw ve(new Gl(XMe(t,n,"index")));return t}function xy(t,n){var s=(qr(n,t.c.length),t.c[n]);return eRe(t.c,n,1),s}function uNe(t,n){var s,u;return s=(vn(t),t),u=(vn(n),n),s==u?0:sn.p)return-1;return 0}function i8t(t){var n;if(!t.a)n=t.r,He(n,156)&&(t.a=b(n,156));return t.a}function k0n(t,n,s){var u;return++t.e,--t.f,u=b(t.d[n].gd(s),136),u.md()}function A0n(t){var n,s;return n=t.ld(),s=b(t.md(),16),L$(s.Nc(),new eTt(n))}function a8t(t,n){if(Zu(t.a,n))return WA(t.a,n),!0;else return!1}function jA(t,n,s){return Z$(n,t.e.Rd().gc()),Z$(s,t.c.Rd().gc()),t.a[n][s]}function eX(t,n,s){this.a=t,this.b=n,this.c=s,Gt(t.t,this),Gt(n.i,this)}function tX(t,n,s,u){this.f=t,this.e=n,this.d=s,this.b=u,this.c=!u?null:u.d}function tU(){this.b=new Va,this.a=new Va,this.b=new Va,this.a=new Va}function R6(){R6=z;var t,n;Nte=(t6(),n=new VW,n),Lte=(t=new $le,t)}function R0n(t){var n;return t_(t),n=new Q6t(t,t.a.e,t.a.d|4),new OIe(t,n)}function s8t(t){var n;Yv(t),n=0;while(t.a.Bd(new it))n=rl(n,1);return n}function rX(t,n){if(vn(n),t.c=0,"Initial capacity must not be negative")}function nX(){nX=z,M9=new va("org.eclipse.elk.labels.labelManager")}function o8t(){o8t=z,qUe=new es("separateLayerConnections",(FX(),g1e))}function Y0(){Y0=z,zx=new RRe("REGULAR",0),w_=new RRe("CRITICAL",1)}function rU(){rU=z,yye=new PRe("FIXED",0),nte=new PRe("CENTER_NODE",1)}function iX(){iX=z,XUe=new ERe("QUADRATIC",0),C1e=new ERe("SCANLINE",1)}function l8t(){l8t=z,DJt=di((S8(),Te(we(JUe,1),Rt,322,0,[t9,pz,ZUe])))}function c8t(){c8t=z,PJt=di((EX(),Te(we(tGe,1),Rt,351,0,[eGe,tee,k1e])))}function u8t(){u8t=z,OJt=di((Vw(),Te(we(b1e,1),Rt,372,0,[bS,y_,mS])))}function h8t(){h8t=z,UJt=di((K2(),Te(we($Jt,1),Rt,460,0,[I1e,dN,ik])))}function d8t(){d8t=z,YJt=di((W6(),Te(we(U1e,1),Rt,299,0,[F1e,$1e,gz])))}function f8t(){f8t=z,jJt=di((Sb(),Te(we(WJt,1),Rt,311,0,[mz,sk,N5])))}function p8t(){p8t=z,Err=di((L8(),Te(we(nVe,1),Rt,390,0,[gbe,rVe,Nee])))}function g8t(){g8t=z,Rrr=di((DX(),Te(we(mVe,1),Rt,387,0,[pVe,Tbe,gVe])))}function m8t(){m8t=z,Irr=di((I8(),Te(we(bVe,1),Rt,349,0,[Cbe,xbe,kz])))}function b8t(){b8t=z,Arr=di((Sl(),Te(we(krr,1),Rt,463,0,[b9,ad,Yu])))}function y8t(){y8t=z,Orr=di((tO(),Te(we(vVe,1),Rt,350,0,[kbe,yVe,y9])))}function v8t(){v8t=z,Nrr=di((_X(),Te(we(wVe,1),Rt,352,0,[EVe,Abe,_Ve])))}function _8t(){_8t=z,Lrr=di(($X(),Te(we(SVe,1),Rt,388,0,[Rbe,xN,Gx])))}function E8t(){E8t=z,Mnr=di((O8(),Te(we(UVe,1),Rt,392,0,[$Ve,Nbe,Iz])))}function w8t(){w8t=z,fir=di((AU(),Te(we(pHe,1),Rt,393,0,[Wee,dHe,fHe])))}function S8t(){S8t=z,Mir=di((MX(),Te(we(NHe,1),Rt,300,0,[rye,OHe,IHe])))}function T8t(){T8t=z,Dir=di((eQ(),Te(we(LHe,1),Rt,445,0,[Dz,Xee,nye])))}function x8t(){x8t=z,Bir=di((hQ(),Te(we(Pir,1),Rt,456,0,[iye,sye,aye])))}function C8t(){C8t=z,Uir=di((jX(),Te(we(PHe,1),Rt,394,0,[DHe,cye,MHe])))}function k8t(){k8t=z,lar=di((oX(),Te(we(tqe,1),Rt,439,0,[pye,eqe,JHe])))}function A8t(){A8t=z,Krr=di((zw(),Te(we(jrr,1),Rt,464,0,[Az,v9,Pee])))}function R8t(){R8t=z,bQt=di((td(),Te(we(mQt,1),Rt,471,0,[Um,m_,h0])))}function I8t(){I8t=z,gQt=di((K0(),Te(we(Tx,1),Rt,237,0,[Mc,qu,Dc])))}function O8t(){O8t=z,vQt=di((ph(),Te(we(yQt,1),Rt,472,0,[eg,b_,d0])))}function N8t(){N8t=z,iQt=di((rd(),Te(we(Wl,1),Rt,108,0,[l$e,fc,Sx])))}function L8t(){L8t=z,$Zt=di((_8(),Te(we(tUe,1),Rt,391,0,[Jme,Zme,e1e])))}function M8t(){M8t=z,Esr=di((Cb(),Te(we(DYe,1),Rt,346,0,[fte,Zy,z9])))}function D8t(){D8t=z,dar=di((MU(),Te(we(gye,1),Rt,444,0,[ete,tte,rte])))}function P8t(){P8t=z,bsr=di((Rg(),Te(we(SYe,1),Rt,278,0,[NN,Yx,LN])))}function B8t(){B8t=z,Dsr=di((e5(),Te(we(zYe,1),Rt,280,0,[GYe,jx,vte])))}function kg(t,n){return!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),qde(t.o,n)}function I0n(t,n){var s;if(t.C)s=b(Nl(t.b,n),127).n,s.d=t.C.d,s.a=t.C.a}function gNe(t){var n,s,u,f;f=t.d,n=t.a,s=t.b,u=t.c,t.d=s,t.a=u,t.b=f,t.c=n}function O0n(t){return!t.g&&(t.g=new OW),!t.g.b&&(t.g.b=new D4t(t)),t.g.b}function nU(t){return!t.g&&(t.g=new OW),!t.g.c&&(t.g.c=new F4t(t)),t.g.c}function N0n(t){return!t.g&&(t.g=new OW),!t.g.d&&(t.g.d=new P4t(t)),t.g.d}function L0n(t){return!t.g&&(t.g=new OW),!t.g.a&&(t.g.a=new B4t(t)),t.g.a}function M0n(t,n,s,u){return!!s&&(u=s.Rh(n,Za(s.Dh(),t.c.uk()),null,u)),u}function D0n(t,n,s,u){return!!s&&(u=s.Th(n,Za(s.Dh(),t.c.uk()),null,u)),u}function Ohe(t,n,s,u){var f=mt(ci,$i,28,n+1,15,1);return $3n(f,t,n,s,u),f}function mt(t,n,s,u,f,g){var _=l$t(f,u);return f!=10&&Te(we(t,g),n,s,f,_),_}function P0n(t,n,s){var u,f;f=new Y6(n,t);for(u=0;us||n=0?t.Lh(s,!0,!0):Jw(t,n,!0)}function J0n(t,n,s){var u=UPt(t,n,s);return t.b=new IX(u.c.length),F8e(t,u)}function egn(t){if(t.b<=0)throw ve(new yc);return--t.b,t.a-=t.c.c,$t(t.a)}function tgn(t){var n;if(!t.a)throw ve(new XNt);return n=t.a,t.a=Ya(t.a),n}function rgn(t){while(!t.a)if(!w6t(t.c,new qTt(t)))return!1;return!0}function KA(t){var n;if(mi(t),He(t,204))return n=b(t,204),n;return new lTt(t)}function ngn(t){aX(),b(t.of((Hi(),qx)),181).Fc((nd(),Jz)),t.qf(Uye,null)}function aX(){aX=z,$ar=new z_t,Gar=new V_t,Uar=q1n((Hi(),Uye),$ar,x_,Gar)}function sX(){sX=z,uHe=new LRe("LEAF_NUMBER",0),Qbe=new LRe("NODE_SIZE",1)}function Phe(t){t.a=mt(ci,$i,28,t.b+1,15,1),t.c=mt(ci,$i,28,t.b,15,1),t.d=0}function ign(t,n){if(t.a.Ne(n.d,t.b)>0)Gt(t.c,new m6e(n.c,n.d,t.d)),t.b=n.d}function xNe(t,n){if(t.g==null||n>=t.i)throw ve(new zce(n,t.i));return t.g[n]}function G8t(t,n,s){if(Z6(t,s),s!=null&&!t.fk(s))throw ve(new Ple);return s}function Bhe(t,n){return fU(n)!=10&&Te(Ld(n),n.Sm,n.__elementTypeId$,fU(n),t),t}function O6(t,n,s,u){var f;u=(Lw(),!u?t$e:u),f=t.slice(n,s),QMe(f,t,n,s,-n,u)}function Mf(t,n,s,u,f){return n<0?Jw(t,s,u):b(s,69).wk().yk(t,t.hi(),n,u,f)}function agn(t,n){return Ra(rt(ht(ce(t,(Pt(),_S)))),rt(ht(ce(n,_S))))}function z8t(){z8t=z,ZXt=di((N6(),Te(we(yJ,1),Rt,304,0,[Ome,Nme,Lme,Mme])))}function N6(){N6=z,Ome=new fj("All",0),Nme=new NRt,Lme=new GRt,Mme=new ORt}function td(){td=z,Um=new fce(b5,0),m_=new fce(BO,1),h0=new fce(y5,2)}function V8t(){V8t=z,WQ(),NWe=Wa,Hor=Gs,LWe=new qF(Wa),qor=new qF(Gs)}function H8t(){H8t=z,HQt=di((qw(),Te(we(VQt,1),Rt,417,0,[tz,ez,zme,Vme])))}function q8t(){q8t=z,KQt=di((H8(),Te(we(jQt,1),Rt,406,0,[sz,wJ,SJ,oz])))}function Y8t(){Y8t=z,YQt=di((n5(),Te(we(qQt,1),Rt,332,0,[nz,rz,iz,az])))}function W8t(){W8t=z,eJt=di((Z2(),Te(we(aUe,1),Rt,389,0,[kx,iUe,a1e,s1e])))}function j8t(){j8t=z,jZt=di((j6(),Te(we(WZt,1),Rt,416,0,[gS,Cx,xx,J4])))}function K8t(){K8t=z,TJt=di((Ig(),Te(we(SJt,1),Rt,421,0,[O5,aN,sN,m1e])))}function X8t(){X8t=z,fJt=di((FX(),Te(we(dJt,1),Rt,371,0,[g1e,KJ,XJ,dz])))}function Q8t(){Q8t=z,wrr=di((tx(),Te(we(bbe,1),Rt,203,0,[Lee,mbe,gk,pk])))}function Z8t(){Z8t=z,xrr=di((Cm(),Te(we(dVe,1),Rt,284,0,[Wy,hVe,_be,Ebe])))}function oU(){oU=z,oGe=new SRe(Dm,0),iee=new SRe("IMPROVE_STRAIGHTNESS",1)}function J8t(t,n){var s,u;return u=n/t.c.Rd().gc()|0,s=n%t.c.Rd().gc(),jA(t,u,s)}function eDt(t){var n;if(t.nl())for(n=t.i-1;n>=0;--n)Ye(t,n);return WOe(t)}function CNe(t){var n,s;if(!t.b)return null;s=t.b;while(n=s.a[0])s=n;return s}function tDt(t){var n,s;if(!t.b)return null;s=t.b;while(n=s.a[1])s=n;return s}function sgn(t){if(He(t,180))return""+b(t,180).a;return t==null?null:hc(t)}function ogn(t){if(He(t,180))return""+b(t,180).a;return t==null?null:hc(t)}function rDt(t,n){if(n.a)throw ve(new vc(EYt));$s(t.a,n),n.a=t,!t.j&&(t.j=n)}function kNe(t,n){Bj.call(this,n.zd(),n.yd()&-16449),vn(t),this.a=t,this.c=n}function lgn(t,n){return new bue(n,Sw(Uo(n.e),n.f.a+t,n.f.b+t),(nn(),!1))}function cgn(t,n){return p6(),Gt(t,new js(n,$t(n.e.c.length+n.g.c.length)))}function ugn(t,n){return p6(),Gt(t,new js(n,$t(n.e.c.length+n.g.c.length)))}function nDt(){nDt=z,Lir=di((gQ(),Te(we(RHe,1),Rt,354,0,[tye,kHe,AHe,CHe])))}function iDt(){iDt=z,nir=di((N8(),Te(we(sHe,1),Rt,353,0,[Hbe,qee,Vbe,zbe])))}function aDt(){aDt=z,Nnr=di((s5(),Te(we(AVe,1),Rt,405,0,[Uee,w9,S9,T9])))}function sDt(){sDt=z,ysr=di((kb(),Te(we(Hye,1),Rt,223,0,[Vye,Kz,MN,Y5])))}function oDt(){oDt=z,Ssr=di((Qd(),Te(we(wsr,1),Rt,291,0,[Qz,D1,C_,Xz])))}function lDt(){lDt=z,Lsr=di((Md(),Te(we(W9,1),Rt,386,0,[tV,IE,eV,Wx])))}function cDt(){cDt=z,Bsr=di((XX(),Te(we(jYe,1),Rt,320,0,[Wye,qYe,WYe,YYe])))}function uDt(){uDt=z,Usr=di((UX(),Te(we($sr,1),Rt,415,0,[jye,XYe,KYe,QYe])))}function oX(){oX=z,pye=new Bce(FWt,0),eqe=new Bce(XPe,1),JHe=new Bce(Dm,2)}function qT(t,n,s,u,f){return vn(t),vn(n),vn(s),vn(u),vn(f),new Z6e(t,n,u)}function hDt(t,n){var s=b(WA(t.e,n),400);if(s)return k6e(s),s.e;return null}function fh(t,n){var s=rc(t,n,0);if(s==-1)return!1;return xy(t,s),!0}function dDt(t,n,s){var u;return Yv(t),u=new _e,u.a=n,t.a.Nb(new WAt(u,s)),u.a}function hgn(t){var n;return Yv(t),n=mt(xo,Ml,28,0,15,1),QC(t.a,new zTt(n)),n}function ANe(t){var n;if(!Jhe(t))throw ve(new yc);return t.e=1,n=t.d,t.d=null,n}function ky(t){var n;if(cc(t)){if(n=0-t,!isNaN(n))return n}return Qv(X6(t))}function rc(t,n,s){for(;s=0?cQ(t,s,!0,!0):Jw(t,n,!0)}function INe(t){var n=H2(cn(t,32));if(n==null)rh(t),n=H2(cn(t,32));return n}function ONe(t){var n;if(!t.Oh())n=Un(t.Dh())-t.ji(),t.$h().Mk(n);return t.zh()}function yDt(t,n){O$e=new ba,WQt=n,XD=t,b(XD.b,68),yNe(XD,O$e,null),LHt(XD)}function _8(){_8=z,Jme=new gce("XY",0),Zme=new gce("X",1),e1e=new gce("Y",2)}function ph(){ph=z,eg=new pce("TOP",0),b_=new pce(BO,1),d0=new pce(l9e,2)}function Sb(){Sb=z,mz=new Ece(Dm,0),sk=new Ece("TOP",1),N5=new Ece(l9e,2)}function dU(){dU=z,wbe=new xRe("INPUT_ORDER",0),Sbe=new xRe("PORT_DEGREE",1)}function L6(){L6=z,PFe=Qu(yd,yd,524287),PXt=Qu(0,0,SG),BFe=khe(1),khe(2),FFe=khe(0)}function zhe(t){var n;if(t.d!=t.r)n=vp(t),t.e=!!n&&n.lk()==PKt,t.d=n;return t.e}function Vhe(t,n,s){var u=t.g[n];return jM(t,n,t.Zi(n,s)),t.Ri(n,s,u),t.Ni(),u}function hX(t,n){var s=t.dd(n);if(s>=0)return t.gd(s),!0;else return!1}function Hhe(t,n){var s;mi(t),mi(n),s=!1;while(n.Ob())s=s|t.Fc(n.Pb());return s}function Ag(t,n){var s=b(An(t.e,n),400);if(s)return JRt(t,s),s.e;return null}function vDt(t){var n,s;if(n=t/60|0,s=t%60,s==0)return""+n;return""+n+":"+(""+s)}function YT(t,n){var s=t.a[n],u=(mde(),xme)[typeof s];return u?u(s):ULe(typeof s)}function wc(t,n){var s,u;return t_(t),u=new dNe(n,t.a),s=new x6t(u),new Pr(t,s)}function qhe(t){var n=t.b.c.length==0?null:nr(t.b,0);return n!=null&&tde(t,0),n}function ggn(t,n){var s,u,f;f=n.c.i,s=b(An(t.f,f),60),u=s.d.c-s.e.c,cLe(n.a,u,0)}function NNe(t,n){var s;++t.d,++t.c[n],s=n+1;while(s=0)++n[0]}function mgn(t,n){eh(t,n==null||Zj((vn(n),n))||isNaN((vn(n),n))?0:(vn(n),n))}function bgn(t,n){th(t,n==null||Zj((vn(n),n))||isNaN((vn(n),n))?0:(vn(n),n))}function ygn(t,n){Gw(t,n==null||Zj((vn(n),n))||isNaN((vn(n),n))?0:(vn(n),n))}function vgn(t,n){Uw(t,n==null||Zj((vn(n),n))||isNaN((vn(n),n))?0:(vn(n),n))}function _gn(t,n,s){return AA(new Dt(s.e.a+s.f.a/2,s.e.b+s.f.b/2),t)==(vn(n),n)}function Egn(t,n){return He(n,102)&&(b(n,19).Bb&ml)!=0?new Vce(n,t):new Y6(n,t)}function wgn(t,n){return He(n,102)&&(b(n,19).Bb&ml)!=0?new Vce(n,t):new Y6(n,t)}function fU(t){return t.__elementTypeCategory$==null?10:t.__elementTypeCategory$}function wDt(t,n){return n==(due(),due(),KXt)?t.toLocaleLowerCase():t.toLowerCase()}function SDt(t){if(!t.e)throw ve(new yc);return t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function LNe(t){if(!t.c)throw ve(new yc);return t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function TDt(t){var n;++t.a;for(n=t.c.a.length;t.at.a[u]&&(u=s);return u}function xDt(t){var n=b(ce(t,(Pt(),yS)),313);if(n)return n.a==t;return!1}function CDt(t){var n=b(ce(t,(Pt(),yS)),313);if(n)return n.i==t;return!1}function kDt(){kDt=z,VZt=di((Xo(),Te(we(rUe,1),Rt,367,0,[f0,O1,su,wu,ac])))}function ADt(){ADt=z,CJt=di((nx(),Te(we(xJt,1),Rt,375,0,[fz,JJ,eee,ZJ,QJ])))}function RDt(){RDt=z,BJt=di((My(),Te(we(nGe,1),Rt,348,0,[A1e,rGe,R1e,hN,uN])))}function IDt(){IDt=z,Srr=di((V8(),Te(we(aVe,1),Rt,323,0,[iVe,ybe,vbe,g9,m9])))}function ODt(){ODt=z,XJt=di((Uf(),Te(we(MGe,1),Rt,171,0,[_z,o9,__,l9,Nx])))}function NDt(){NDt=z,hir=di((wQ(),Te(we(uir,1),Rt,368,0,[Kbe,Ybe,Xbe,Wbe,jbe])))}function LDt(){LDt=z,har=di((rD(),Te(we(uar,1),Rt,373,0,[_k,G5,L9,N9,Fz])))}function MDt(){MDt=z,bar=di((KU(),Te(we(uqe,1),Rt,324,0,[oqe,vye,cqe,_ye,lqe])))}function DDt(){DDt=z,msr=di((Ms(),Te(we(U9,1),Rt,88,0,[Hg,sc,Kl,Vg,jf])))}function PDt(){PDt=z,zar=di((Q0(),Te(we(M1,1),Rt,170,0,[Qr,Qs,Hm,xE,Xy])))}function BDt(){BDt=z,xsr=di((T4(),Te(we(H9,1),Rt,256,0,[k_,Zz,PYe,V9,BYe])))}function FDt(){FDt=z,Asr=di((Ht(),Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn])))}function dX(){dX=z,h$e=new gRe("BY_SIZE",0),Fme=new gRe("BY_SIZE_AND_SHAPE",1)}function fX(){fX=z,Kme=new yRe("EADES",0),CJ=new yRe("FRUCHTERMAN_REINGOLD",1)}function pU(){pU=z,ree=new wRe("READING_DIRECTION",0),iGe=new wRe("ROTATION",1)}function E8(){E8=z,QZt=new xf,ZZt=new Uu,KZt=new zF,XZt=new $0,JZt=new lA}function $Dt(t){this.b=new Ut,this.a=new Ut,this.c=new Ut,this.d=new Ut,this.e=t}function UDt(t){this.g=t,this.f=new Ut,this.a=d.Math.min(this.g.c.c,this.g.d.c)}function GDt(t,n,s){Xj.call(this),PNe(this),this.a=t,this.c=s,this.b=n.d,this.f=n.e}function Agn(t,n,s){var u,f;for(f=new me(s);f.a=0&&n0?n-1:n;return w3t(tin(h9t(S6e(new mA,s),t.n),t.j),t.k)}function ql(t){var n,s;s=(n=new Ule,n),ii((!t.q&&(t.q=new kt(Op,t,11,10)),t.q),s)}function MNe(t){return((t.i&2)!=0?"interface ":(t.i&1)!=0?"":"class ")+(gb(t),t.o)}function pX(t){if(Kc(t,sa)>0)return sa;if(Kc(t,Qo)<0)return Qo;return gi(t)}function WT(t){if(t<3)return Kd(t,rYt),t+1;if(t=-0.01&&t.a<=Dg&&(t.a=0),t.b>=-0.01&&t.b<=Dg&&(t.b=0),t}function y4(t){M4();var n,s;s=JPe;for(n=0;ns&&(s=t[n]);return s}function qDt(t,n){var s=iG(t.Dh(),n);if(!s)throw ve(new dn(f_+n+Fge));return s}function jT(t,n){var s=t;while(Ya(s))if(s=Ya(s),s==n)return!0;return!1}function $gn(t,n){var s,u,f;u=n.a.ld(),s=b(n.a.md(),16).gc();for(f=0;ft||t>n)throw ve(new z5e("fromIndex: 0, toIndex: "+t+XDe+n))}function $w(t){if(t<0)throw ve(new dn("Illegal Capacity: "+t));this.g=this.aj(t)}function DNe(t,n){return _g(),a0(l_),d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)}function jhe(t,n){var s,u,f,g;for(u=t.d,f=0,g=u.length;f0)t.a/=n,t.b/=n;return t}function Wd(t){var n;if(t.w)return t.w;else return n=Ofn(t),!!n&&!n.Vh()&&(t.w=n),n}function M6(t,n){var s,u;u=t.a,s=Dbn(t,n,null),u!=n&&!t.e&&(s=AO(t,n,s)),!!s&&s.oj()}function XDt(t,n,s){var u,f;u=n;do f=rt(t.p[u.p])+s,t.p[u.p]=f,u=t.a[u.p];while(u!=n)}function QDt(t,n,s){var u=function(){return t.apply(u,arguments)};return n.apply(u,s),u}function Ygn(t){var n;if(t==null)return null;else return n=b(t,195),iwn(n,n.length)}function Ye(t,n){if(t.g==null||n>=t.i)throw ve(new zce(n,t.i));return t.Wi(n,t.g[n])}function Wgn(t,n){Hr();var s,u;u=new Ut;for(s=0;s=14&&n<=16))),t}function hi(t,n){var s;return vn(n),s=t[":"+n],D$(!!s,"Enum constant undefined: "+n),s}function ei(t,n,s,u,f,g){var _=Hue(t,n);return d9t(s,_),_.i=f?8:0,_.f=u,_.e=f,_.g=g,_}function FNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=1,this.c=t,this.a=s}function $Ne(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=2,this.c=t,this.a=s}function UNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=6,this.c=t,this.a=s}function GNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=7,this.c=t,this.a=s}function zNe(t,n,s,u,f){this.d=n,this.j=u,this.e=f,this.o=-1,this.p=4,this.c=t,this.a=s}function f9t(t,n){var s,u,f,g;for(u=n,f=0,g=u.length;f=0))throw ve(new dn("tolerance ("+t+") must be >= 0"));return t}function g9t(t,n){var s;if(He(n,44))return t.c.Mc(n);else return s=qde(t,n),tQ(t,n),s}function Ll(t,n,s){return Q2(t,n),zu(t,s),Ay(t,0),KT(t,1),Ly(t,!0),Ny(t,!0),t}function mU(t,n){var s=t.gc();if(n<0||n>s)throw ve(new PT(n,s));return new JIe(t,n)}function wX(t,n){t.b=d.Math.max(t.b,n.d),t.e+=n.r+(t.a.c.length==0?0:t.c),Gt(t.a,n)}function m9t(t){if(LT(t.c>=0),ovn(t.d,t.c)<0)t.a=t.a-1&t.d.a.length-1,t.b=t.d.c;t.c=-1}function SX(t){var n,s;for(s=t.c.Cc().Kc();s.Ob();)n=b(s.Pb(),16),n.$b();t.c.$b(),t.d=0}function nmn(t){var n,s,u,f;for(s=t.a,u=0,f=s.length;u=0}function KNe(t,n){if(t.r>0&&t.c0&&t.g!=0&&KNe(t.i,n/t.r*t.i.d)}function XNe(t,n){var s=t.c;t.c=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,1,s,t.c))}function Qhe(t,n){var s=t.c;t.c=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,4,s,t.c))}function G6(t,n){var s=t.k;t.k=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,2,s,t.k))}function Zhe(t,n){var s=t.D;t.D=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,2,s,t.D))}function xX(t,n){var s=t.f;t.f=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,8,s,t.f))}function CX(t,n){var s=t.i;t.i=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,7,s,t.i))}function QNe(t,n){var s=t.a;t.a=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,8,s,t.a))}function ZNe(t,n){var s=t.b;t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,0,s,t.b))}function JNe(t,n){var s=t.b;t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,0,s,t.b))}function eLe(t,n){var s=t.c;t.c=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,1,s,t.c))}function tLe(t,n){var s=t.d;t.d=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,1,s,t.d))}function umn(t,n,s){var u;t.b=n,t.a=s,u=(t.a&512)==512?new Bkt:new RAe,t.c=T4n(u,t.b,t.a)}function A9t(t,n){return Nb(t.e,n)?(_l(),zhe(n)?new lK(n,t):new v$(n,t)):new rRt(n,t)}function hmn(t){var n,s;if(0>t)return new nRe;return n=t+1,s=new UMt(n,t),new NIe(null,s)}function dmn(t,n){Hr();var s=new EA(1);return So(t)?Vl(s,t,n):Hu(s.f,t,n),new Ole(s)}function fmn(t,n){var s,u;if(s=t.c,u=n.e[t.p],u>0)return b(nr(s.a,u-1),10);return null}function pmn(t,n){var s,u;if(s=t.o+t.p,u=n.o+n.p,sn)return n<<=1,n>0?n:gD;return n}function Jhe(t){switch(dIe(t.e!=3),t.e){case 2:return!1;case 0:return!0}return S0n(t)}function I9t(t,n){var s;if(He(n,8))return s=b(n,8),t.a==s.a&&t.b==s.b;else return!1}function mmn(t,n){var s=new ba;b(n.b,68),b(n.b,68),b(n.b,68),Ju(n.a,new c6e(t,s,n))}function O9t(t,n){var s,u;for(u=n.vc().Kc();u.Ob();)s=b(u.Pb(),44),qU(t,s.ld(),s.md())}function rLe(t,n){var s=t.d;t.d=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,11,s,t.d))}function kX(t,n){var s=t.j;t.j=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,13,s,t.j))}function nLe(t,n){var s=t.b;t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,21,s,t.b))}function bmn(t,n){((QK(),Fg)?null:n.c).length==0&&WIt(n,new rr),Vl(t.a,Fg?null:n.c,n)}function ymn(t,n){n.Ug("Hierarchical port constraint processing",1),Pvn(t),r6n(t),n.Vg()}function Vw(){Vw=z,bS=new mce("START",0),y_=new mce("MIDDLE",1),mS=new mce("END",2)}function AX(){AX=z,Yee=new NRe("P1_NODE_PLACEMENT",0),vk=new NRe("P2_EDGE_ROUTING",1)}function Xv(){Xv=z,I5=new va(E9e),RJ=new va(w9e),ZD=new va(YYt),lz=new va(WYt)}function Hw(t){var n;return fue(t.f.g,t.d),Pn(t.b),t.c=t.a,n=b(t.a.Pb(),44),t.b=mLe(t),n}function iLe(t){var n;if(t.b==null)return yy(),yy(),uV;return n=t.ul()?t.tl():t.sl(),n}function N9t(t,n){var s=n==null?-1:rc(t.b,n,0);if(s<0)return!1;return tde(t,s),!0}function s0(t,n){var s;if(vn(n),s=n.g,!t.b[s])return ls(t.b,s,n),++t.c,!0;return!1}function RX(t,n){var s,u;return s=1-n,u=t.a[s],t.a[s]=u.a[n],u.a[n]=t,t.b=!0,u.b=!1,u}function vmn(t,n){var s,u;for(u=n.Kc();u.Ob();)s=b(u.Pb(),272),t.b=!0,$s(t.e,s),s.b=t}function _mn(t,n){var s,u;return s=b(ce(t,(Qt(),Fx)),8),u=b(ce(n,Fx),8),Ra(s.b,u.b)}function ede(t,n,s){var u,f,g;return g=n>>5,f=n&31,u=io(Vv(t.n[s][g],gi(n0(f,1))),3),u}function L9t(t,n,s){var u,f,g;g=t.a.length-1;for(f=t.b,u=0;u0?1:0;return(!t.c&&(t.c=K$(Vc(t.f))),t.c).e}function z9t(t,n){if(n){if(t.B==null)t.B=t.D,t.D=null}else if(t.B!=null)t.D=t.B,t.B=null}function Tmn(t,n){return j6(),t==gS&&n==Cx||t==Cx&&n==gS||t==J4&&n==xx||t==xx&&n==J4}function xmn(t,n){return j6(),t==gS&&n==xx||t==gS&&n==J4||t==Cx&&n==J4||t==Cx&&n==xx}function V9t(t,n){return _g(),a0(Dg),d.Math.abs(0-n)<=Dg||n==0||isNaN(0)&&isNaN(n)?0:t/n}function H9t(t,n){return rt(ht(Rd(NU(ec(new Pr(null,new Gr(t.c.b,16)),new Qxt(t)),n))))}function lLe(t,n){return rt(ht(Rd(NU(ec(new Pr(null,new Gr(t.c.b,16)),new Xxt(t)),n))))}function Cmn(){return Tl(),Te(we(B1e,1),Rt,259,0,[see,Wf,n9,oee,gN,ak,i9,fN,pN,lee])}function kmn(){return _p(),Te(we(uVe,1),Rt,243,0,[Mee,xz,Cz,oVe,lVe,sVe,cVe,Dee,AS,Ux])}function Amn(t,n){var s;n.Ug("General Compactor",1),s=Lyn(b(It(t,(s_(),Jbe)),393)),s.Cg(t)}function Rmn(t,n){var s,u;return s=b(It(t,(s_(),jee)),17),u=b(It(n,jee),17),jc(s.a,u.a)}function cLe(t,n,s){var u,f;for(f=ti(t,0);f.b!=f.d.c;)u=b(Jn(f),8),u.a+=n,u.b+=s;return t}function T8(t,n,s){var u;for(u=t.b[s&t.f];u;u=u.b)if(s==u.a&&Sm(n,u.g))return u;return null}function x8(t,n,s){var u;for(u=t.c[s&t.f];u;u=u.d)if(s==u.f&&Sm(n,u.i))return u;return null}function Imn(t,n,s){var u,f,g;u=0;for(f=0;f>>31;u!=0&&(t[s]=u)}function ade(t,n,s,u,f,g){var _;this.c=t,_=new Ut,z7e(t,_,n,t.b,s,u,f,g),this.a=new Mo(_,0)}function q9t(){this.c=new ej(0),this.b=new ej(ZPe),this.d=new ej(OWt),this.a=new ej(k0e)}function Pf(t,n,s,u,f,g,_){ui.call(this,t,n),this.d=s,this.e=u,this.c=f,this.b=g,this.a=xg(_)}function vs(t,n,s,u,f,g,_,S,C,O,M,U,q){return XUt(t,n,s,u,f,g,_,S,C,O,M,U,q),Fde(t,!1),t}function Omn(t){if(t.b.c.i.k==(mn(),As))return b(ce(t.b.c.i,(Pt(),Ea)),12);return t.b.c}function Y9t(t){if(t.b.d.i.k==(mn(),As))return b(ce(t.b.d.i,(Pt(),Ea)),12);return t.b.d}function Nmn(t){var n=qK(t);if(yw(n.a,0))return ij(),ij(),XXt;return ij(),new kIt(n.b)}function sde(t){var n=GOe(t);if(yw(n.a,0))return kT(),kT(),Ime;return kT(),new nue(n.b)}function ode(t){var n=GOe(t);if(yw(n.a,0))return kT(),kT(),Ime;return kT(),new nue(n.c)}function W9t(t){switch(t.g){case 2:return Ht(),bn;case 4:return Ht(),Cn;default:return t}}function j9t(t){switch(t.g){case 1:return Ht(),Kn;case 3:return Ht(),pn;default:return t}}function K9t(t){switch(t.g){case 0:return new A_t;case 1:return new R_t;default:return null}}function QA(){QA=z,p1e=new es("edgelabelcenterednessanalysis.includelabel",(nn(),g_))}function uLe(){uLe=z,Wrr=km(mRt(Fi(Fi(new Ns,(Xo(),su),(il(),GJ)),wu,PJ),ac),UJ)}function X9t(){X9t=z,Qrr=km(mRt(Fi(Fi(new Ns,(Xo(),su),(il(),GJ)),wu,PJ),ac),UJ)}function lde(){lde=z,J9=new Nkt,rve=Te(we(_h,1),K4,179,0,[]),wor=Te(we(Op,1),bFe,62,0,[])}function z6(){z6=z,uz=new vRe("TO_INTERNAL_LTR",0),h1e=new vRe("TO_INPUT_DIRECTION",1)}function Dh(){Dh=z,u1e=new Qn,c1e=new Cs,cUe=new wo,lUe=new Il,uUe=new dp,hUe=new T2}function Lmn(t,n){n.Ug(lWt,1),f7e(bin(new BW((TM(),new Xue(t,!1,!1,new Or))))),n.Vg()}function Mmn(t,n,s){s.Ug("DFS Treeifying phase",1),Qyn(t,n),KCn(t,n),t.a=null,t.b=null,s.Vg()}function bU(t,n){return nn(),So(t)?uNe(t,wi(n)):OT(t)?Nue(t,ht(n)):IT(t)?Tun(t,Jt(n)):t.Fd(n)}function C8(t,n){var s,u;vn(n);for(u=n.vc().Kc();u.Ob();)s=b(u.Pb(),44),t.zc(s.ld(),s.md())}function Dmn(t,n,s){var u;for(u=s.Kc();u.Ob();)if(!jK(t,n,u.Pb()))return!1;return!0}function Pmn(t,n,s,u,f){var g;if(s)g=Za(n.Dh(),t.c),f=s.Rh(n,-1-(g==-1?u:g),null,f);return f}function Bmn(t,n,s,u,f){var g;if(s)g=Za(n.Dh(),t.c),f=s.Th(n,-1-(g==-1?u:g),null,f);return f}function Q9t(t){var n;if(t.b==-2){if(t.e==0)n=-1;else for(n=0;t.a[n]==0;n++);t.b=n}return t.b}function Fmn(t){if(vn(t),t.length==0)throw ve(new bm("Zero length BigInteger"));Vkn(this,t)}function hLe(t){if(this.i=t.gc(),this.i>0)this.g=this.aj(this.i+(this.i/8|0)+1),t.Qc(this.g)}function Z9t(t,n,s){this.g=t,this.d=n,this.e=s,this.a=new Ut,XSn(this),Hr(),ks(this.a,null)}function dLe(t,n){n.q=t,t.d=d.Math.max(t.d,n.r),t.b+=n.d+(t.a.c.length==0?0:t.c),Gt(t.a,n)}function V6(t,n){var s,u,f,g;return f=t.c,s=t.c+t.b,g=t.d,u=t.d+t.a,n.a>f&&n.ag&&n.bf?s=f:fn(n,s+1),t.a=Of(t.a,0,n)+(""+u)+sOe(t.a,s)}function oPt(t,n){t.a=rl(t.a,1),t.c=d.Math.min(t.c,n),t.b=d.Math.max(t.b,n),t.d=rl(t.d,n)}function qmn(t,n){return n1||t.Ob())return++t.a,t.g=0,n=t.i,t.Ob(),n;else throw ve(new yc)}function hPt(t){switch(t.a.g){case 1:return new m5t;case 3:return new m$t;default:return new RSt}}function pLe(t,n){switch(n){case 1:return!!t.n&&t.n.i!=0;case 2:return t.k!=null}return UOe(t,n)}function Vc(t){if(TG>22),f=t.h+n.h+(u>>22),Qu(s&yd,u&yd,f&Mb)}function vPt(t,n){var s,u,f;return s=t.l-n.l,u=t.m-n.m+(s>>22),f=t.h-n.h+(u>>22),Qu(s&yd,u&yd,f&Mb)}function d1n(t){var n,s;aIn(t);for(s=new me(t.d);s.au)throw ve(new PT(n,u));return t.Si()&&(s=BLt(t,s)),t.Ei(n,s)}function K6(t,n,s,u,f){var g,_;for(_=s;_<=f;_++)for(g=n;g<=u;g++)C4(t,g,_)||VQ(t,g,_,!0,!1)}function C1n(t){M4();var n,s,u;s=mt(uo,Bt,8,2,0,1),u=0;for(n=0;n<2;n++)u+=0.5,s[n]=v_n(u,t);return s}function X6(t){var n,s,u;return n=~t.l+1&yd,s=~t.m+(n==0?1:0)&yd,u=~t.h+(n==0&&s==0?1:0)&Mb,Qu(n,s,u)}function wLe(t){var n;if(t<0)return Qo;else if(t==0)return 0;else{for(n=gD;(n&t)==0;n>>=1);return n}}function gde(t,n,s){if(t>=128)return!1;return t<64?zM(io(n0(1,t),s),0):zM(io(n0(1,t-64),n),0)}function CU(t,n,s){return s==null?(!t.q&&(t.q=new Zn),WA(t.q,n)):(!t.q&&(t.q=new Zn),Ki(t.q,n,s)),t}function At(t,n,s){return s==null?(!t.q&&(t.q=new Zn),WA(t.q,n)):(!t.q&&(t.q=new Zn),Ki(t.q,n,s)),t}function IPt(t){var n,s;return s=new JK,nc(s,t),At(s,(Xv(),I5),t),n=new Zn,tAn(t,s,n),RRn(t,s,n),s}function OPt(t){var n,s;return n=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,s=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,n||s}function NPt(t,n){var s,u,f,g;s=!1,u=t.a[n].length;for(g=0;g=0,"Negative initial capacity"),D$(n>=0,"Non-positive load factor"),Jh(this)}function A1n(t,n,s,u,f){var g,_;if(_=t.length,g=s.length,n<0||u<0||f<0||n+f>_||u+f>g)throw ve(new p5e)}function CLe(t,n){Hr();var s,u,f,g,_;_=!1;for(u=n,f=0,g=u.length;f1||n>=0&&t.b<3}function yde(t){var n,s,u;n=~t.l+1&yd,s=~t.m+(n==0?1:0)&yd,u=~t.h+(n==0&&s==0?1:0)&Mb,t.l=n,t.m=s,t.h=u}function RLe(t){Hr();var n,s,u;u=1;for(s=t.Kc();s.Ob();)n=s.Pb(),u=31*u+(n!=null?Da(n):0),u=u|0;return u}function L1n(t,n,s,u,f){var g=y8e(t,n);if(s&&yde(g),f)t=C_n(t,n),u?p_=X6(t):p_=Qu(t.l,t.m,t.h);return g}function zPt(t,n,s){if(t.g=Pfe(t,n,(Ht(),Cn),t.b),t.d=Pfe(t,s,Cn,t.b),t.g.c==0||t.d.c==0)return;vUt(t)}function VPt(t,n,s){if(t.g=Pfe(t,n,(Ht(),bn),t.j),t.d=Pfe(t,s,bn,t.j),t.g.c==0||t.d.c==0)return;vUt(t)}function ILe(t,n){switch(n){case 7:return!!t.e&&t.e.i!=0;case 8:return!!t.d&&t.d.i!=0}return p7e(t,n)}function M1n(t,n){switch(n.g){case 0:He(t.b,641)||(t.b=new sPt);break;case 1:He(t.b,642)||(t.b=new aOt)}}function HPt(t){switch(t.g){case 0:return new M_t;default:throw ve(new dn(VZ+(t.f!=null?t.f:""+t.g)))}}function qPt(t){switch(t.g){case 0:return new L_t;default:throw ve(new dn(VZ+(t.f!=null?t.f:""+t.g)))}}function D1n(t,n,s){return!r6(pa(new Pr(null,new Gr(t.c,16)),new WI(new O5t(n,s)))).Bd((L2(),A5))}function YPt(t,n){return AA(hO(b(ce(n,(Oc(),IS)),88)),new Dt(t.c.e.a-t.b.e.a,t.c.e.b-t.b.e.b))<=0}function P1n(t,n){while(t.g==null&&!t.c?IOe(t):t.g==null||t.i!=0&&b(t.g[t.i-1],51).Ob())Uin(n,OQ(t))}function X2(t){var n,s;for(s=new me(t.a.b);s.au?1:0}function $1n(t){if(Gt(t.c,(ZA(),Bar)),DNe(t.a,rt(ht(jt((Hde(),Iee))))))return new E2t;return new r4t(t)}function U1n(t){while(!t.d||!t.d.Ob())if(!!t.b&&!_M(t.b))t.d=b(BA(t.b),51);else return null;return t.d}function NLe(t){switch(t.g){case 1:return OWt;default:case 2:return 0;case 3:return k0e;case 4:return ZPe}}function G1n(){ia();var t;if(lve)return lve;return t=osn(o_("M",!0)),t=fK(o_("M",!1),t),lve=t,lve}function UX(){UX=z,jye=new Oj("ELK",0),XYe=new Oj("JSON",1),KYe=new Oj("DOT",2),QYe=new Oj("SVG",3)}function I8(){I8=z,Cbe=new xce("STACKED",0),xbe=new xce("REVERSE_STACKED",1),kz=new xce("SEQUENCED",2)}function O8(){O8=z,$Ve=new Oce(Dm,0),Nbe=new Oce("MIDDLE_TO_MIDDLE",1),Iz=new Oce("AVOID_OVERLAP",2)}function J6(){J6=z,WUe=new g1t,jUe=new m1t,yJt=new f1t,bJt=new b1t,mJt=new p1t,YUe=(vn(mJt),new xe)}function GX(){GX=z,MYe=new _w(15),_sr=new No((Hi(),Qy),MYe),G9=V5,IYe=Jar,OYe=kE,LYe=kk,NYe=Hx}function _4(t,n){var s,u,f,g,_;for(u=n,f=0,g=u.length;f=t.b.c.length)return;MLe(t,2*n+1),s=2*n+2,s0)n.Cd(s),s.i&&Vbn(s)}function DLe(t,n,s){var u;for(u=s-1;u>=0&&t[u]===n[u];u--);return u<0?0:uce(io(t[u],xl),io(n[u],xl))?-1:1}function KPt(t,n,s){var u,f;this.g=t,this.c=n,this.a=this,this.d=this,f=R9t(s),u=mt(IXt,EG,227,f,0,1),this.b=u}function Sde(t,n,s,u,f){var g,_;for(_=s;_<=f;_++)for(g=n;g<=u;g++)if(C4(t,g,_))return!0;return!1}function W1n(t,n){var s,u;for(u=t.Zb().Cc().Kc();u.Ob();)if(s=b(u.Pb(),16),s.Hc(n))return!0;return!1}function XPt(t,n,s){var u,f,g,_;vn(s),_=!1,g=t.fd(n);for(f=s.Kc();f.Ob();)u=f.Pb(),g.Rb(u),_=!0;return _}function Tde(t,n){var s,u;return u=b(cn(t.a,4),129),s=mt(eve,tme,424,n,0,1),u!=null&&au(u,0,s,0,u.length),s}function QPt(t,n){var s=new Zfe((t.f&256)!=0,t.i,t.a,t.d,(t.f&16)!=0,t.j,t.g,n);return t.e!=null||(s.c=t),s}function j1n(t,n){var s;if(t===n)return!0;else if(He(n,85))return s=b(n,85),FMe(D2(t),s.vc());return!1}function ZPt(t,n,s){var u,f;for(f=s.Kc();f.Ob();)if(u=b(f.Pb(),44),t.Be(n,u.md()))return!0;return!1}function JPt(t,n,s){if(!t.d[n.p][s.p])Qvn(t,n,s),t.d[n.p][s.p]=!0,t.d[s.p][n.p]=!0;return t.a[n.p][s.p]}function K1n(t,n){var s;if(!t||t==n||!$a(n,(Pt(),vS)))return!1;return s=b(ce(n,(Pt(),vS)),10),s!=t}function xde(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.$l()}}function eBt(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t._l()}}function tBt(t){zLt.call(this,"The given string does not match the expected format for individual spacings.",t)}function X1n(t,n){var s;n.Ug("Min Size Preprocessing",1),s=WMe(t),Ta(t,(w1(),R9),s.a),Ta(t,Qee,s.b),n.Vg()}function Q1n(t){var n,s,u;n=0,u=mt(uo,Bt,8,t.b,0,1),s=ti(t,0);while(s.b!=s.d.c)u[n++]=b(Jn(s),8);return u}function Cde(t,n,s){var u,f,g;u=new Va;for(g=ti(s,0);g.b!=g.d.c;)f=b(Jn(g),8),Oi(u,new sl(f));XPt(t,n,u)}function Z1n(t,n){var s=rl(t,n);if(uce(ghe(t,n),0)|Mj(ghe(t,s),0))return s;return rl(_G,ghe(Vv(s,63),1))}function J1n(t,n){var s,u;if(s=b(t.d.Bc(n),16),!s)return null;return u=t.e.hc(),u.Gc(s),t.e.d-=s.gc(),s.$b(),u}function rBt(t){var n=t.a.c.length;if(n>0)return b6(n-1,t.a.c.length),xy(t.a,n-1);else throw ve(new rkt)}function nBt(t,n,s){if(t>n)throw ve(new dn(sZ+t+yYt+n));if(t<0||n>s)throw ve(new z5e(sZ+t+JDe+n+XDe+s))}function eO(t,n){if(t.D==null&&t.B!=null)t.D=t.B,t.B=null;Zhe(t,n==null?null:(vn(n),n)),!!t.C&&t.hl(null)}function ebn(t,n){var s=jt((Hde(),Iee))!=null&&n.Sg()!=null?rt(ht(n.Sg()))/rt(ht(jt(Iee))):1;Ki(t.b,n,s)}function PLe(t,n){var s,u;if(u=t.c[n],u==0)return;t.c[n]=0,t.d-=u,s=n+1;while(sPZ?t-s>PZ:s-t>PZ}function pBt(t,n){var s;for(s=0;sf)H$t(n.q,f),u=s!=n.q.d}return u}function gBt(t,n){var s,u,f,g,_,S,C,O;return C=n.i,O=n.j,u=t.f,f=u.i,g=u.j,_=C-f,S=O-g,s=d.Math.sqrt(_*_+S*S),s}function zLe(t,n){var s,u;if(u=rQ(t),!u)!Qsr&&(Qsr=new H2t),s=(_pe(),rzt(n)),u=new q4t(s),ii(u.El(),t);return u}function IU(t,n){var s,u;if(s=b(t.c.Bc(n),16),!s)return t.jc();return u=t.hc(),u.Gc(s),t.d-=s.gc(),s.$b(),t.mc(u)}function hbn(t,n){var s,u;u=md(t.d,1)!=0,s=!0;while(s)s=!1,s=n.c.mg(n.e,u),s=s|aG(t,n,u,!1),u=!u;sLe(t)}function mBt(t,n,s,u){var f,g;t.a=n,g=u?0:1,t.f=(f=new RUt(t.c,t.a,s,g),new oVt(s,t.a,f,t.e,t.b,t.c==(zw(),v9)))}function VX(t){var n;return Pn(t.a!=t.b),n=t.d.a[t.a],HIt(t.b==t.d.c&&n!=null),t.c=t.a,t.a=t.a+1&t.d.a.length-1,n}function bBt(t){var n;if(t.c!=0)return t.c;for(n=0;n=t.c.b:t.a<=t.c.b))throw ve(new yc);return n=t.a,t.a+=t.c.c,++t.b,$t(n)}function Ode(t){var n=new nIe(t.a);return nc(n,t),At(n,(Pt(),Ea),t),n.o.a=t.g,n.o.b=t.f,n.n.a=t.i,n.n.b=t.j,n}function Nde(t){return(Ht(),yh).Hc(t.j)?rt(ht(ce(t,(Pt(),mN)))):Sc(Te(we(uo,1),Bt,8,0,[t.i.n,t.n,t.a])).b}function fbn(t){var n=$j(Yrr);return b(ce(t,(Pt(),Tu)),21).Hc((Tl(),gN))&&Fi(n,(Xo(),su),(il(),HJ)),n}function pbn(t){var n,s,u,f;f=new Rs;for(u=new me(t);u.a=0?n:-n;while(u>0)if(u%2==0)s*=s,u=u/2|0;else f*=s,u-=1;return n<0?1/f:f}function vbn(t,n){var s,u,f;f=1,s=t,u=n>=0?n:-n;while(u>0)if(u%2==0)s*=s,u=u/2|0;else f*=s,u-=1;return n<0?1/f:f}function e_(t,n){var s,u,f,g;if(g=(f=t?rQ(t):null,ZUt((u=n,f&&f.Gl(),u))),g==n)s=rQ(t),!!s&&s.Gl();return g}function yBt(t,n,s){var u,f;if(f=t.f,t.f=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,0,f,n),!s?s=u:s.nj(u);return s}function vBt(t,n,s){var u,f;if(f=t.b,t.b=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,3,f,n),!s?s=u:s.nj(u);return s}function HLe(t,n,s){var u,f;if(f=t.a,t.a=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,1,f,n),!s?s=u:s.nj(u);return s}function _Bt(t){var n,s,u,f;if(t!=null){for(s=0;s=u||n-129&&t<128)return iOt(),n=t+128,s=VFe[n],!s&&(s=VFe[n]=new HAe(t)),s;return new HAe(t)}function rO(t){var n,s;if(t>-129&&t<128)return EOt(),n=t+128,s=WFe[n],!s&&(s=WFe[n]=new YAe(t)),s;return new YAe(t)}function SBt(t,n){var s;if(t.a.c.length>0){if(s=b(nr(t.a,t.a.c.length-1),579),LLe(s,n))return}Gt(t.a,new GMt(n))}function xbn(t){r0();var n,s;n=t.d.c-t.e.c,s=b(t.g,154),Ju(s.b,new Fxt(n)),Ju(s.c,new $xt(n)),Vo(s.i,new Uxt(n))}function TBt(t){var n=new Dv;return n.a+="VerticalSegment ",pu(n,t.e),n.a+=" ",Bi(n,uIe(new Qle,new me(t.k))),n.a}function Lde(t,n){var s,u,f;s=0;for(f=Tc(t,n).Kc();f.Ob();)u=b(f.Pb(),12),s+=ce(u,(Pt(),id))!=null?1:0;return s}function S4(t,n,s){var u,f,g;u=0;for(g=ti(t,0);g.b!=g.d.c;)if(f=rt(ht(Jn(g))),f>s)break;else f>=n&&++u;return u}function xBt(t,n){mi(t);try{return t._b(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return!1;else throw ve(s)}}function YLe(t,n){mi(t);try{return t.Hc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return!1;else throw ve(s)}}function Cbn(t,n){mi(t);try{return t.Mc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return!1;else throw ve(s)}}function ZT(t,n){mi(t);try{return t.xc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return null;else throw ve(s)}}function kbn(t,n){mi(t);try{return t.Bc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return null;else throw ve(s)}}function M8(t,n){switch(n.g){case 2:case 1:return Tc(t,n);case 3:case 4:return $f(Tc(t,n))}return Hr(),Hr(),Jo}function D8(t){var n;if((t.Db&64)!=0)return o0(t);return n=new pp(o0(t)),n.a+=" (name: ",Ol(n,t.zb),n.a+=")",n.a}function Abn(t){var n=b(Ag(t.c.c,""),233);if(!n)n=new VA(e6(JI(new uA,""),"Other")),Dy(t.c.c,"",n);return n}function WLe(t,n,s){var u,f;if(f=t.sb,t.sb=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,4,f,n),!s?s=u:s.nj(u);return s}function jLe(t,n,s){var u,f;if(f=t.r,t.r=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,8,f,t.r),!s?s=u:s.nj(u);return s}function Rbn(t,n,s){var u,f;return u=new wb(t.e,4,13,(f=n.c,f?f:(Vr(),Wg)),null,Py(t,n),!1),!s?s=u:s.nj(u),s}function Ibn(t,n,s){var u,f;return u=new wb(t.e,3,13,null,(f=n.c,f?f:(Vr(),Wg)),Py(t,n),!1),!s?s=u:s.nj(u),s}function Oy(t,n){var s,u;return s=b(n,691),u=s.el(),!u&&s.fl(u=He(n,90)?new nRt(t,b(n,29)):new C7t(t,b(n,156))),u}function OU(t,n,s){var u;t._i(t.i+1),u=t.Zi(n,s),n!=t.i&&au(t.g,n,t.g,n+1,t.i-n),ls(t.g,n,u),++t.i,t.Mi(n,s),t.Ni()}function Obn(t,n){var s;if(n.a)s=n.a.a.length,!t.a?t.a=new Vd(t.d):Bi(t.a,t.b),L7t(t.a,n.a,n.d.length,s);return t}function Nbn(t,n){var s;t.c=n,t.a=Byn(n),t.a<54&&(t.f=(s=n.d>1?O7t(n.a[0],n.a[1]):O7t(n.a[0],0),z2(n.e>0?s:ky(s))))}function NU(t,n){var s=new _e;if(!t.a.Bd(s))return Yv(t),l6(),l6(),i$e;return l6(),new qle(vn(dDt(t,s.a,n)))}function CBt(t,n){var s;if(t.c.length==0)return;s=b(Og(t,mt(N1,Gy,10,t.c.length,0,1)),199),KRe(s,new Emt),vGt(s,n)}function kBt(t,n){var s;if(t.c.length==0)return;s=b(Og(t,mt(N1,Gy,10,t.c.length,0,1)),199),KRe(s,new wmt),vGt(s,n)}function da(t,n){return So(t)?Br(t,n):OT(t)?E6t(t,n):IT(t)?(vn(t),nt(t)===nt(n)):z6e(t)?t.Fb(n):D6e(t)?vRt(t,n):DOe(t,n)}function Bf(t,n,s){if(n<0)e8e(t,s);else{if(!s.rk())throw ve(new dn(f_+s.xe()+MD));b(s,69).wk().Ek(t,t.hi(),n)}}function ABt(t,n,s){if(t<0||n>s)throw ve(new Gl(sZ+t+JDe+n+", size: "+s));if(t>n)throw ve(new dn(sZ+t+yYt+n))}function RBt(t){var n;if((t.Db&64)!=0)return o0(t);return n=new pp(o0(t)),n.a+=" (source: ",Ol(n,t.d),n.a+=")",n.a}function IBt(t){if(t>=65&&t<=70)return t-65+10;if(t>=97&&t<=102)return t-97+10;if(t>=48&&t<=57)return t-48;return 0}function Lbn(t){tZ();var n,s,u,f;for(s=Zde(),u=0,f=s.length;u=0?r_(t):l8(r_(ky(t))))}function LBt(t,n,s,u,f,g){this.e=new Ut,this.f=(Sl(),b9),Gt(this.e,t),this.d=n,this.a=s,this.b=u,this.f=f,this.c=g}function Pbn(t,n,s){t.n=M2(P_,[Bt,i0e],[376,28],14,[s,Ks(d.Math.ceil(n/32))],2),t.o=n,t.p=s,t.j=n-1>>1,t.k=s-1>>1}function MBt(t){return t-=t>>1&1431655765,t=(t>>2&858993459)+(t&858993459),t=(t>>4)+t&252645135,t+=t>>8,t+=t>>16,t&63}function DBt(t,n){var s,u;for(u=new kn(t);u.e!=u.i.gc();)if(s=b(Dn(u),142),nt(n)===nt(s))return!0;return!1}function Bbn(t,n,s){var u,f,g;if(g=(f=vO(t.b,n),f),g){if(u=b(XQ(cU(t,g),""),29),u)return w8e(t,u,n,s)}return null}function Mde(t,n,s){var u,f,g;if(g=(f=vO(t.b,n),f),g){if(u=b(XQ(cU(t,g),""),29),u)return S8e(t,u,n,s)}return null}function Fbn(t,n){var s=v4(t.i,n);if(s==null)throw ve(new mm("Node did not exist in input."));return fLe(n,s),null}function $bn(t,n){var s=iG(t,n);if(He(s,331))return b(s,35);throw ve(new dn(f_+n+"' is not a valid attribute"))}function B8(t,n,s){var u=t.gc();if(n>u)throw ve(new PT(n,u));if(t.Si()&&t.Hc(s))throw ve(new dn(qG));t.Gi(n,s)}function Ubn(t,n){n.Ug("Sort end labels",1),ys(pa(wc(new Pr(null,new Gr(t.b,16)),new amt),new smt),new omt),n.Vg()}function Ms(){Ms=z,Hg=new m$(_D,0),sc=new m$(y5,1),Kl=new m$(b5,2),Vg=new m$(b0e,3),jf=new m$("UP",4)}function MU(){MU=z,ete=new Fce("P1_STRUCTURE",0),tte=new Fce("P2_PROCESSING_ORDER",1),rte=new Fce("P3_EXECUTION",2)}function PBt(){PBt=z,oir=km(km(AM(km(km(AM(Fi(new Ns,(s5(),w9),(sD(),Obe)),S9),DVe),BVe),T9),OVe),FVe)}function Gbn(t){switch(b(ce(t,(Pt(),mE)),311).g){case 1:At(t,mE,(Sb(),N5));break;case 2:At(t,mE,(Sb(),sk))}}function zbn(t){switch(t){case 0:return new xkt;case 1:return new Skt;case 2:return new Tkt;default:throw ve(new jF)}}function BBt(t){switch(t.g){case 2:return sc;case 1:return Kl;case 4:return Vg;case 3:return jf;default:return Hg}}function ZLe(t,n){switch(t.b.g){case 0:case 1:return n;case 2:case 3:return new If(n.d,0,n.a,n.b);default:return null}}function JLe(t){switch(t.g){case 1:return bn;case 2:return pn;case 3:return Cn;case 4:return Kn;default:return Cc}}function DU(t){switch(t.g){case 1:return Kn;case 2:return bn;case 3:return pn;case 4:return Cn;default:return Cc}}function YX(t){switch(t.g){case 1:return Cn;case 2:return Kn;case 3:return bn;case 4:return pn;default:return Cc}}function e7e(t,n,s,u){switch(n){case 1:return!t.n&&(t.n=new kt(Dl,t,1,7)),t.n;case 2:return t.k}return Y7e(t,n,s,u)}function F8(t,n,s){var u,f;if(t.Pj())return f=t.Qj(),u=Gfe(t,n,s),t.Jj(t.Ij(7,$t(s),u,n,f)),u;else return Gfe(t,n,s)}function Dde(t,n){var s,u,f;if(t.d==null)++t.e,--t.f;else f=n.ld(),s=n.Bi(),u=(s&sa)%t.d.length,k0n(t,u,szt(t,u,s,f))}function nO(t,n){var s=(t.Bb&u0)!=0;n?t.Bb|=u0:t.Bb&=-1025,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,10,s,n))}function iO(t,n){var s=(t.Bb&gx)!=0;n?t.Bb|=gx:t.Bb&=-4097,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,12,s,n))}function aO(t,n){var s=(t.Bb&$h)!=0;n?t.Bb|=$h:t.Bb&=-8193,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,15,s,n))}function sO(t,n){var s=(t.Bb&wx)!=0;n?t.Bb|=wx:t.Bb&=-2049,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,11,s,n))}function Vbn(t){var n;if(t.g)n=t.c.kg()?t.f:t.a,P8e(n.a,t.o,!0),P8e(n.a,t.o,!1),At(t.o,(Qt(),ms),(Ao(),RE))}function Hbn(t){var n;if(!t.a)throw ve(new zl("Cannot offset an unassigned cut."));n=t.c-t.b,t.b+=n,lLt(t,n),oLt(t,n)}function qbn(t,n){var s=An(t.k,n);if(s==null)throw ve(new mm("Port did not exist in input."));return fLe(n,s),null}function Ybn(t){var n,s;for(s=nzt(Wd(t)).Kc();s.Ob();)if(n=wi(s.Pb()),oD(t,n))return Wpn(($At(),cor),n);return null}function FBt(t){var n,s;for(s=t.p.a.ec().Kc();s.Ob();)if(n=b(s.Pb(),218),n.f&&t.b[n.c]<-0.0000000001)return n;return null}function Wbn(t){var n,s;s=qv(new Dv,91),n=!0;while(t.Ob())n||(s.a+=ll),n=!1,pu(s,t.Pb());return(s.a+="]",s).a}function jbn(t){var n,s,u;n=new Ut;for(u=new me(t.b);u.an)return 1;if(t==n)return t==0?Ra(1/t,1/n):0;return isNaN(t)?isNaN(n)?0:1:-1}function Xbn(t){var n=t.a[t.c-1&t.a.length-1];if(n==null)return null;return t.c=t.c-1&t.a.length-1,ls(t.a,t.c,null),n}function Qbn(t){var n,s,u;u=0,s=t.length;for(n=0;n=1?sc:Vg;return s}function tyn(t){switch(b(ce(t,(Qt(),$b)),223).g){case 1:return new Ybt;case 3:return new Qbt;default:return new qbt}}function t_(t){if(t.c)t_(t.c);else if(t.d)throw ve(new zl("Stream already terminated, can't be modified or used"))}function Yw(t,n,s){var u=t.a.get(n);if(t.a.set(n,s===void 0?null:s),u===void 0)++t.c,++t.b.g;else++t.d;return u}function ryn(t,n,s){var u,f;for(f=t.a.ec().Kc();f.Ob();)if(u=b(f.Pb(),10),wU(s,b(nr(n,u.p),16)))return u;return null}function r7e(t,n,s){var u=0;return!!n&&(a4(t.a)?u+=n.f.a/2:u+=n.f.b/2),!!s&&(a4(t.a)?u+=s.f.a/2:u+=s.f.b/2),u}function nyn(t,n,s){var u=s;!u&&(u=S6e(new mA,0)),u.Ug(KYt,2),VFt(t.b,n,u.eh(1)),y5n(t,n,u.eh(1)),EIn(n,u.eh(1)),u.Vg()}function n7e(t,n,s){var u,f;return u=(Bv(),f=new AW,f),vX(u,n),yX(u,s),!!t&&ii((!t.a&&(t.a=new Os(lf,t,5)),t.a),u),u}function Bde(t){var n;if((t.Db&64)!=0)return o0(t);return n=new pp(o0(t)),n.a+=" (identifier: ",Ol(n,t.k),n.a+=")",n.a}function Fde(t,n){var s=(t.Bb&Hc)!=0;n?t.Bb|=Hc:t.Bb&=-32769,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,18,s,n))}function i7e(t,n){var s=(t.Bb&Hc)!=0;n?t.Bb|=Hc:t.Bb&=-32769,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,18,s,n))}function oO(t,n){var s=(t.Bb&Im)!=0;n?t.Bb|=Im:t.Bb&=-16385,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,16,s,n))}function a7e(t,n){var s=(t.Bb&ml)!=0;n?t.Bb|=ml:t.Bb&=-65537,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,20,s,n))}function s7e(t){var n=mt(Qf,Om,28,2,15,1);return t-=ml,n[0]=(t>>10)+xG&Ds,n[1]=(t&1023)+56320&Ds,yp(n,0,n.length)}function iyn(t){var n=ix(t);if(n>340282346638528860000000000000000000000)return Wa;else if(n<-340282346638528860000000000000000000000)return Gs;return n}function rl(t,n){var s;if(cc(t)&&cc(n)){if(s=t+n,TG"+G2(n.c):"e_"+Da(n),!!t.b&&!!t.c?G2(t.b)+"->"+G2(t.c):"e_"+Da(t))}function oyn(t,n){return Br(!!n.b&&!!n.c?G2(n.b)+"->"+G2(n.c):"e_"+Da(n),!!t.b&&!!t.c?G2(t.b)+"->"+G2(t.c):"e_"+Da(t))}function Ww(t,n){return _g(),a0(l_),d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:vw(isNaN(t),isNaN(n))}function kb(){kb=z,Vye=new kj(_D,0),Kz=new kj("POLYLINE",1),MN=new kj("ORTHOGONAL",2),Y5=new kj("SPLINES",3)}function jX(){jX=z,DHe=new Pce("ASPECT_RATIO_DRIVEN",0),cye=new Pce("MAX_SCALE_DRIVEN",1),MHe=new Pce("AREA_DRIVEN",2)}function lyn(t,n,s){var u;try{O1n(t,n,s)}catch(f){if(f=Qa(f),He(f,606))throw u=f,ve(new sNe(u));else throw ve(f)}return n}function cyn(t){var n,s,u;for(s=0,u=t.length;sn&&u.Ne(t[g-1],t[g])>0;--g)_=t[g],ls(t,g,t[g-1]),ls(t,g-1,_)}function Er(t,n){var s,u,f,g,_;if(s=n.f,Dy(t.c.d,s,n),n.g!=null)for(f=n.g,g=0,_=f.length;g<_;++g)u=f[g],Dy(t.c.e,u,n)}function GBt(t,n){var s,u;s=ti(t,0);while(s.b!=s.d.c)if(u=KF(ht(Jn(s))),u==n)return;else if(u>n){P7t(s);break}U$(s,n)}function fyn(t,n){var s,u,f;u=g4(n),f=rt(ht(ex(u,(Qt(),p0)))),s=d.Math.max(0,f/2-0.5),W8(n,s,1),Gt(t,new t5t(n,s))}function pyn(t,n,s){var u;s.Ug("Straight Line Edge Routing",1),s.dh(n,lBe),u=b(It(n,(d4(),yk)),27),THt(t,u),s.dh(n,$Z)}function o7e(t,n){t.n.c.length==0&&Gt(t.n,new GK(t.s,t.t,t.i)),Gt(t.b,n),G7e(b(nr(t.n,t.n.c.length-1),209),n),sHt(t,n)}function $8(t){var n;this.a=(n=b(t.e&&t.e(),9),new Rf(n,b(t0(n,n.length),9),0)),this.b=mt(ao,en,1,this.a.a.length,5,1)}function hc(t){var n;if(Array.isArray(t)&&t.Tm===J)return N2(Ld(t))+"@"+(n=Da(t)>>>0,n.toString(16));return t.toString()}function gyn(t,n){if(t.h==SG&&t.m==0&&t.l==0)return n&&(p_=Qu(0,0,0)),ERt((L6(),BFe));return n&&(p_=Qu(t.l,t.m,t.h)),Qu(0,0,0)}function myn(t,n){switch(n.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function zBt(t,n){switch(n.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function l7e(t,n,s,u){switch(n){case 3:return t.f;case 4:return t.g;case 5:return t.i;case 6:return t.j}return e7e(t,n,s,u)}function KX(t,n){if(n==t.d)return t.e;else if(n==t.e)return t.d;else throw ve(new dn("Node "+n+" not part of edge "+t))}function byn(t,n){var s=iG(t.Dh(),n);if(He(s,102))return b(s,19);throw ve(new dn(f_+n+"' is not a valid reference"))}function Ff(t,n,s,u){if(n<0)k8e(t,s,u);else{if(!s.rk())throw ve(new dn(f_+s.xe()+MD));b(s,69).wk().Ck(t,t.hi(),n,u)}}function gd(t){var n;if(t.b){if(gd(t.b),t.b.d!=t.c)throw ve(new Cf)}else if(t.d.dc())n=b(t.f.c.xc(t.e),16),!!n&&(t.d=n)}function yyn(t){MT();var n,s,u,f;n=t.o.b;for(u=b(b(_a(t.r,(Ht(),Kn)),21),87).Kc();u.Ob();)s=b(u.Pb(),117),f=s.e,f.b+=n}function vyn(t){var n,s,u;this.a=new vm;for(u=new me(t);u.a=f)return n.c+s;return n.c+n.b.gc()}function Eyn(t,n){d6();var s,u,f,g;u=eDt(t),f=n,O6(u,0,u.length,f);for(s=0;s0)u+=f,++s;return s>1&&(u+=t.d*(s-1)),u}function Syn(t){var n,s,u,f,g;if(g=CMe(t),s=ZF(t.c),u=!s,u)f=new C2,j0(g,"knownLayouters",f),n=new N4t(f),Vo(t.c,n);return g}function h7e(t){var n,s,u;u=new gy,u.a+="[";for(n=0,s=t.gc();n0&&(fn(n-1,t.length),t.charCodeAt(n-1)==58)&&!Gde(t,Q9,Z9)}function d7e(t,n){var s;if(nt(t)===nt(n))return!0;if(He(n,92))return s=b(n,92),t.e==s.e&&t.d==s.d&&Xpn(t,s.a);return!1}function t5(t){switch(Ht(),t.g){case 4:return pn;case 1:return Cn;case 3:return Kn;case 2:return bn;default:return Cc}}function kyn(t){var n,s;if(t.b)return t.b;s=Fg?null:t.d;while(s){if(n=Fg?null:s.b,n)return n;s=Fg?null:s.d}return s6(),o$e}function f7e(t){var n,s,u;u=rt(ht(t.a.of((Hi(),ute))));for(s=new me(t.a.Sf());s.a>5,n=t&31,u=mt(ci,$i,28,s+1,15,1),u[s]=1<3)f*=10,--g;t=(t+(f>>1))/f|0}return u.i=t,!0}function Za(t,n){var s,u,f;if(s=(t.i==null&&Rm(t),t.i),u=n.Lj(),u!=-1){for(f=s.length;u=0;--u){n=s[u];for(f=0;f>1,this.k=n-1>>1}function zyn(t){if(aX(),b(t.of((Hi(),x_)),181).Hc((bd(),bte)))b(t.of(qx),181).Fc((nd(),W5)),b(t.of(x_),181).Mc(bte)}function KBt(t){var n,s;n=t.d==(o5(),oN),s=mMe(t),n&&!s||!n&&s?At(t.a,(Qt(),Gm),(_1(),Gz)):At(t.a,(Qt(),Gm),(_1(),Uz))}function Hde(){Hde=z,oj(),Iee=(Qt(),kS),vrr=xg(Te(we(xye,1),KPe,149,0,[Sz,p0,dk,CS,$x,lbe,EN,wN,cbe,f9,hk,SE,fk]))}function Vyn(t,n){var s=b(uc(t,ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15);return s.Qc(mOt(s.gc()))}function XBt(t,n){var s,u;if(u=new YI(t.a.ad(n,!0)),u.a.gc()<=1)throw ve(new fA);return s=u.a.ec().Kc(),s.Pb(),b(s.Pb(),40)}function Hyn(t,n,s){var u,f;return u=rt(t.p[n.i.p])+rt(t.d[n.i.p])+n.n.b+n.a.b,f=rt(t.p[s.i.p])+rt(t.d[s.i.p])+s.n.b+s.a.b,f-u}function _7e(t,n){var s;if(t.i>0){if(n.lengtht.i&&ls(n,t.i,null),n}function QX(t){var n;if((t.Db&64)!=0)return D8(t);return n=new pp(D8(t)),n.a+=" (instanceClassName: ",Ol(n,t.D),n.a+=")",n.a}function ZX(t){var n,s,u,f;f=0;for(s=0,u=t.length;s0)return t._j(),u=n==null?0:Da(n),f=(u&sa)%t.d.length,s=szt(t,f,u,n),s!=-1;else return!1}function QBt(t,n){var s,u;t.a=rl(t.a,1),t.c=d.Math.min(t.c,n),t.b=d.Math.max(t.b,n),t.d+=n,s=n-t.f,u=t.e+s,t.f=u-t.e-s,t.e=u}function E7e(t,n){switch(n){case 3:Uw(t,0);return;case 4:Gw(t,0);return;case 5:eh(t,0);return;case 6:th(t,0);return}qLe(t,n)}function jw(t,n){switch(n.g){case 1:return LA(t.j,(Dh(),c1e));case 2:return LA(t.j,(Dh(),u1e));default:return Hr(),Hr(),Jo}}function w7e(t){Rw();var n=t.Pc();switch(n.length){case 0:return vme;case 1:return new Tue(mi(n[0]));default:return new ahe(cyn(n))}}function ZBt(t,n){t.Xj();try{t.d.bd(t.e++,n),t.f=t.d.j,t.g=-1}catch(s){if(s=Qa(s),He(s,77))throw ve(new Cf);else throw ve(s)}}function Yde(){Yde=z,ive=new Y2t,mWe=new W2t,bWe=new j2t,yWe=new K2t,vWe=new X2t,_We=new Q2t,EWe=new Z2t,wWe=new J2t,SWe=new eEt}function JX(t,n){qRe();var s,u;if(s=R$((WW(),WW(),YD)),u=null,n==s&&(u=b(mu(DFe,t),624)),!u)u=new bNt(t),n==s&&Vl(DFe,t,u);return u}function JBt(t){tx();var n;return(!t.q?(Hr(),Hr(),I1):t.q)._b((Qt(),TS))?n=b(ce(t,TS),203):n=b(ce(zo(t),d9),203),n}function ex(t,n){var s,u;if(u=null,$a(t,(Qt(),Aee)))s=b(ce(t,Aee),96),s.pf(n)&&(u=s.of(n));return u==null&&(u=ce(zo(t),n)),u}function eFt(t,n){var s,u,f;if(He(n,44))return s=b(n,44),u=s.ld(),f=ZT(t.Rc(),u),Sm(f,s.md())&&(f!=null||t.Rc()._b(u));return!1}function X0(t,n){var s,u,f;if(t.f>0){if(t._j(),u=n==null?0:Da(n),f=(u&sa)%t.d.length,s=o8e(t,f,u,n),s)return s.md()}return null}function Vu(t,n,s){var u,f,g;if(t.Pj())u=t.i,g=t.Qj(),OU(t,u,n),f=t.Ij(3,null,n,u,g),!s?s=f:s.nj(f);else OU(t,t.i,n);return s}function Yyn(t,n,s){var u,f;return u=new wb(t.e,4,10,(f=n.c,He(f,90)?b(f,29):(Vr(),Lp)),null,Py(t,n),!1),!s?s=u:s.nj(u),s}function Wyn(t,n,s){var u,f;return u=new wb(t.e,3,10,null,(f=n.c,He(f,90)?b(f,29):(Vr(),Lp)),Py(t,n),!1),!s?s=u:s.nj(u),s}function tFt(t){MT();var n=new sl(b(t.e.of((Hi(),kk)),8));if(t.B.Hc((bd(),PN)))n.a<=0&&(n.a=20),n.b<=0&&(n.b=20);return n}function r_(t){Am();var n,s;if(s=gi(t),n=gi(Vv(t,32)),n!=0)return new c7t(s,n);if(s>10||s<0)return new _b(1,s);return zXt[s]}function BU(t,n){var s;if(cc(t)&&cc(n)){if(s=t%n,TG=0)g=g.a[1];else f=g,g=g.a[0]}return f}function $U(t,n,s){var u,f,g;f=null,g=t.b;while(g){if(u=t.a.Ne(n,g.d),s&&u==0)return g;if(u<=0)g=g.a[0];else f=g,g=g.a[1]}return f}function Jyn(t,n,s,u){var f,g,_;if(f=!1,rRn(t.f,s,u))Evn(t.f,t.a[n][s],t.a[n][u]),g=t.a[n],_=g[u],g[u]=g[s],g[s]=_,f=!0;return f}function aFt(t,n,s){var u,f,g,_;f=b(An(t.b,s),183),u=0;for(_=new me(n.j);_.a<_.c.c.length;)g=b(ge(_),113),f[g.d.p]&&++u;return u}function T7e(t,n,s){var u,f;if(u=b(mu($N,n),122),f=b(mu(iP,n),122),s)Vl($N,t,u),Vl(iP,t,f);else Vl(iP,t,u),Vl($N,t,f)}function sFt(t,n){var s,u,f,g;return s=n>>5,n&=31,f=t.d+s+(n==0?0:1),u=mt(ci,$i,28,f,15,1),QEn(u,t.a,s,n),g=new B2(t.e,f,u),p8(g),g}function evn(t,n){var s,u,f;for(u=new Nn(Mn(Ss(t).a.Kc(),new L));ri(u);)if(s=b(Gn(u),18),f=s.d.i,f.c==n)return!1;return!0}function x7e(t,n,s){var u,f,g,_,S;return _=t.k,S=n.k,u=s[_.g][S.g],f=ht(ex(t,u)),g=ht(ex(n,u)),d.Math.max((vn(f),f),(vn(g),g))}function tvn(){if(Error.stackTraceLimit>0)return d.Error.stackTraceLimit=Error.stackTraceLimit=64,!0;return"stack"in Error()}function rvn(t,n){return _g(),_g(),a0(l_),(d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:vw(isNaN(t),isNaN(n)))>0}function C7e(t,n){return _g(),_g(),a0(l_),(d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:vw(isNaN(t),isNaN(n)))<0}function oFt(t,n){return _g(),_g(),a0(l_),(d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:vw(isNaN(t),isNaN(n)))<=0}function jde(t,n){var s=0;while(!n[s]||n[s]=="")s++;var u=n[s++];for(;s0&&this.b>0&&(this.g=dK(this.c,this.b,this.a))}function nvn(t,n){var s=t.a,u;n=String(n),s.hasOwnProperty(n)&&(u=s[n]);var f=(mde(),xme)[typeof u],g=f?f(u):ULe(typeof u);return g}function cO(t){var n,s,u;if(u=null,n=Fm in t.a,s=!n,s)throw ve(new mm("Every element must have an id."));return u=l5(bb(t,Fm)),u}function Kw(t){var n,s;s=LUt(t),n=null;while(t.c==2){if(na(t),!n)n=(ia(),ia(),++hs,new YM(2)),rE(n,s),s=n;s.Jm(LUt(t))}return s}function tQ(t,n){var s,u,f;if(t._j(),u=n==null?0:Da(n),f=(u&sa)%t.d.length,s=o8e(t,f,u,n),s)return g9t(t,s),s.md();else return null}function pFt(t,n){if(t.e>n.e)return 1;if(t.en.d)return t.e;if(t.d=48&&t<48+d.Math.min(10,10))return t-48;if(t>=97&&t<97)return t-97+10;if(t>=65&&t<65)return t-65+10;return-1}function ivn(t,n){if(n.c==t)return n.d;else if(n.d==t)return n.c;throw ve(new dn("Input edge is not connected to the input port."))}function avn(t){if(nQ(jO,t))return nn(),tN;else if(nQ(Dge,t))return nn(),g_;else throw ve(new dn("Expecting true or false"))}function R7e(t){switch(typeof t){case Ipe:return Ry(t);case FDe:return CA(t);case d5:return KIt(t);default:return t==null?0:ww(t)}}function km(t,n){if(t.a<0)throw ve(new zl("Did not call before(...) or after(...) before calling add(...)."));return SIe(t,t.a,n),t}function I7e(t){if(zK(),He(t,162))return b(An(oV,WXt),295).Rg(t);if(Zu(oV,Ld(t)))return b(An(oV,Ld(t)),295).Rg(t);return null}function rh(t){var n,s;if((t.Db&32)==0)s=(n=b(cn(t,16),29),Un(!n?t.ii():n)-Un(t.ii())),s!=0&&r5(t,32,mt(ao,en,1,s,5,1));return t}function r5(t,n,s){var u;if((t.Db&n)!=0)if(s==null)zTn(t,n);else u=gfe(t,n),u==-1?t.Eb=s:ls(H2(t.Eb),u,s);else s!=null&&h4n(t,n,s)}function svn(t,n,s,u){var f,g;if(n.c.length==0)return;f=tCn(s,u),g=rTn(n),ys(mX(new Pr(null,new Gr(g,1)),new Xyt),new YNt(t,s,f,u))}function ovn(t,n){var s,u,f,g;if(u=t.a.length-1,s=n-t.b&u,g=t.c-n&u,f=t.c-t.b&u,HIt(s=g)return abn(t,n),-1;else return ibn(t,n),1}function rQ(t){var n,s,u;if(u=t.Jh(),!u){n=0;for(s=t.Ph();s;s=s.Ph()){if(++n>a0e)return s.Qh();if(u=s.Jh(),!!u||s==t)break}}return u}function mFt(t,n){var s;if(nt(n)===nt(t))return!0;if(!He(n,21))return!1;if(s=b(n,21),s.gc()!=t.gc())return!1;return t.Ic(s)}function lvn(t,n){if(t.en.e)return 1;else if(t.fn.f)return 1;return Da(t)-Da(n)}function nQ(t,n){if(vn(t),n==null)return!1;if(Br(t,n))return!0;return t.length==n.length&&Br(t.toLowerCase(),n.toLowerCase())}function Rb(t){var n,s;if(Kc(t,-129)>0&&Kc(t,128)<0)return _Ot(),n=gi(t)+128,s=HFe[n],!s&&(s=HFe[n]=new qAe(t)),s;return new qAe(t)}function Z2(){Z2=z,kx=new vj(Dm,0),iUe=new vj("INSIDE_PORT_SIDE_GROUPS",1),a1e=new vj("GROUP_MODEL_ORDER",2),s1e=new vj(A9e,3)}function cvn(t){var n;return t.b||rin(t,(n=ton(t.e,t.a),!n||!Br(Dge,X0((!n.b&&(n.b=new Id((Vr(),yl),Bc,n)),n.b),"qualified")))),t.c}function uvn(t,n){var s,u;s=(fn(n,t.length),t.charCodeAt(n)),u=n+1;while(u2000)NXt=t,fJ=d.setTimeout(oin,10)}if(dJ++==0)return Sgn((B5e(),MFe)),!0;return!1}function Tvn(t,n,s){var u;(eQt?(kyn(t),!0):tQt?(s6(),!0):nQt?(s6(),!0):rQt&&(s6(),!1))&&(u=new L6t(n),u.b=s,Nwn(t,u))}function Xde(t,n){var s=!t.A.Hc((Md(),IE))||t.q==(Ao(),xu);t.u.Hc((nd(),Gb))?s?fIn(t,n):hqt(t,n):t.u.Hc(R_)&&(s?LRn(t,n):Cqt(t,n))}function wFt(t){var n;if(nt(It(t,(Hi(),xk)))===nt((Cb(),fte)))if(!Ya(t))Ta(t,xk,z9);else n=b(It(Ya(t),xk),346),Ta(t,xk,n)}function xvn(t){var n,s;if($a(t.d.i,(Qt(),yN)))return n=b(ce(t.c.i,yN),17),s=b(ce(t.d.i,yN),17),jc(n.a,s.a)>0;else return!1}function SFt(t,n,s){return new If(d.Math.min(t.a,n.a)-s/2,d.Math.min(t.b,n.b)-s/2,d.Math.abs(t.a-n.a)+s,d.Math.abs(t.b-n.b)+s)}function TFt(t){var n;this.d=new Ut,this.j=new Oo,this.g=new Oo,n=t.g.b,this.f=b(ce(zo(n),(Qt(),nf)),88),this.e=rt(ht(oQ(n,$x)))}function xFt(t){this.d=new Ut,this.e=new Ty,this.c=mt(ci,$i,28,(Ht(),Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn])).length,15,1),this.b=t}function L7e(t,n,s){var u=s[t.g][n];switch(t.g){case 1:case 3:return new Dt(0,u);case 2:case 4:return new Dt(u,0);default:return null}}function CFt(t,n,s){var u,f;f=b(q$(n.f),205);try{f.rf(t,s),ONt(n.f,f)}catch(g){if(g=Qa(g),He(g,103))throw u=g,ve(u);else throw ve(g)}}function kFt(t,n,s){var u,f,g,_,S,C;if(u=null,S=TDe(U6(),n),g=null,S)f=null,C=wDe(S,s),_=null,C!=null&&(_=t.qf(S,C)),f=_,g=f;return u=g,u}function Qde(t,n,s,u){var f=t.length;if(n>=f)return f;for(n=n>0?n:0;nu&&ls(n,u,null),n}function AFt(t,n){var s,u;u=t.a.length,n.lengthu&&ls(n,u,null),n}function uO(t,n){var s,u;if(++t.j,n!=null){if(s=(u=t.a.Cb,He(u,99)?b(u,99).th():null),ITn(n,s)){r5(t.a,4,s);return}}r5(t.a,4,b(n,129))}function Cvn(t){var n;if(t==null)return null;if(n=Oxn(vu(t,!0)),n==null)throw ve(new Xle("Invalid hexBinary value: '"+t+"'"));return n}function iQ(t,n,s){var u;if(n.a.length>0)Gt(t.b,new K6t(n.a,s)),u=n.a.length,0u&&(n.a+=QRt(mt(Qf,Om,28,-u,15,1)))}function RFt(t,n,s){var u,f,g;if(s[n.d])return;s[n.d]=!0;for(f=new me(w4(n));f.a=t.b>>1){u=t.c;for(s=t.b;s>n;--s)u=u.b}else{u=t.a.a;for(s=0;s=0?t.Wh(f):Ufe(t,u)):s<0?Ufe(t,u):b(u,69).wk().Bk(t,t.hi(),s)}function LFt(t){var n,s,u;u=(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),t.o);for(s=u.c.Kc();s.e!=s.i.gc();)n=b(s.Yj(),44),n.md();return nU(u)}function jt(t){var n;if(He(t.a,4)){if(n=I7e(t.a),n==null)throw ve(new zl(ejt+t.b+"'. "+JWt+(gb(lV),lV.k)+UBe));return n}else return t.a}function Mvn(t,n){var s,u;if(t.j.length!=n.j.length)return!1;for(s=0,u=t.j.length;s=64&&n<128&&(f=q0(f,n0(1,n-64)));return f}function oQ(t,n){var s,u;if(u=null,$a(t,(Hi(),H5)))s=b(ce(t,H5),96),s.pf(n)&&(u=s.of(n));return u==null&&!!zo(t)&&(u=ce(zo(t),n)),u}function Dvn(t,n){var s=b(ce(t,(Qt(),jl)),75);if(Qce(n,tJt))if(!s)s=new Rh,At(t,jl,s);else Hd(s);else!!s&&At(t,jl,null);return s}function z8(){z8=z,F$e=(Hi(),fYe),Yme=Wqe,eZt=wk,B$e=Qy,iZt=(vQ(),m$e),nZt=p$e,aZt=y$e,rZt=f$e,tZt=(kde(),M$e),qme=QQt,P$e=ZQt,TJ=JQt}function lQ(t){switch(sRe(),this.c=new Ut,this.d=t,t.g){case 0:case 2:this.a=pOe(nUe),this.b=Wa;break;case 3:case 1:this.a=nUe,this.b=Gs}}function Pvn(t){var n;if(!NA(b(ce(t,(Qt(),ms)),101)))return;n=t.b,EGt((qr(0,n.c.length),b(n.c[0],30))),EGt(b(nr(n,n.c.length-1),30))}function Bvn(t,n){n.Ug("Self-Loop post-processing",1),ys(pa(pa(wc(new Pr(null,new Gr(t.b,16)),new x1t),new C1t),new k1t),new A1t),n.Vg()}function MFt(t,n,s){var u,f;if(t.c)eh(t.c,t.c.i+n),th(t.c,t.c.j+s);else for(f=new me(t.b);f.a=0&&(s.d=t.t);break;case 3:t.t>=0&&(s.a=t.t)}if(t.C)s.b=t.C.b,s.c=t.C.c}function V8(){V8=z,iVe=new u$(XPe,0),ybe=new u$(F0e,1),vbe=new u$("LINEAR_SEGMENTS",2),g9=new u$("BRANDES_KOEPF",3),m9=new u$(AWt,4)}function H8(){H8=z,sz=new bj(lZ,0),wJ=new bj(y0e,1),SJ=new bj(v0e,2),oz=new bj(_0e,3),sz.a=!1,wJ.a=!0,SJ.a=!1,oz.a=!0}function n5(){n5=z,nz=new mj(lZ,0),rz=new mj(y0e,1),iz=new mj(v0e,2),az=new mj(_0e,3),nz.a=!1,rz.a=!0,iz.a=!1,az.a=!0}function i5(t,n,s,u){var f;if(s>=0)return t.Sh(n,s,u);else return!!t.Ph()&&(u=(f=t.Fh(),f>=0?t.Ah(u):t.Ph().Th(t,-1-f,null,u))),t.Ch(n,s,u)}function M7e(t,n){switch(n){case 7:!t.e&&(t.e=new Wr(ws,t,7,4)),ni(t.e);return;case 8:!t.d&&(t.d=new Wr(ws,t,8,5)),ni(t.d);return}E7e(t,n)}function Ta(t,n,s){return s==null?(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),tQ(t.o,n)):(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),qU(t.o,n,s)),t}function FFt(t,n){Hr();var s,u,f,g;if(s=t,g=n,He(t,21)&&!He(n,21))s=n,g=t;for(f=s.Kc();f.Ob();)if(u=f.Pb(),g.Hc(u))return!1;return!0}function zvn(t,n,s,u){if(n.as.b)return!0}}return!1}function rfe(t,n){if(So(t))return!!xXt[n];else if(t.Sm)return!!t.Sm[n];else if(OT(t))return!!TXt[n];else if(IT(t))return!!SXt[n];return!1}function Vvn(t){var n=t.a;do n=b(Gn(new Nn(Mn(co(n).a.Kc(),new L))),18).c.i,n.k==(mn(),mo)&&t.b.Fc(n);while(n.k==(mn(),mo));t.b=$f(t.b)}function $Ft(t,n){var s,u,f;f=t;for(u=new Nn(Mn(co(n).a.Kc(),new L));ri(u);)s=b(Gn(u),18),!!s.c.i.c&&(f=d.Math.max(f,s.c.i.c.p));return f}function Hvn(t,n){var s,u,f;f=0,u=b(b(_a(t.r,n),21),87).Kc();while(u.Ob())s=b(u.Pb(),117),f+=s.d.d+s.b.Mf().b+s.d.a,u.Ob()&&(f+=t.w);return f}function qvn(t,n){var s,u,f;f=0,u=b(b(_a(t.r,n),21),87).Kc();while(u.Ob())s=b(u.Pb(),117),f+=s.d.b+s.b.Mf().a+s.d.c,u.Ob()&&(f+=t.w);return f}function UFt(t){var n,s,u,f;if(u=0,f=lx(t),f.c.length==0)return 1;else for(s=new me(f);s.a=0?t.Lh(_,s,!0):Jw(t,g,s)):b(g,69).wk().yk(t,t.hi(),f,s,u)}function Kvn(t,n,s,u){var f,g;if(g=n.pf((Hi(),Ck))?b(n.of(Ck),21):t.j,f=Lbn(g),f==(tZ(),Gme))return;if(s&&!k7e(f))return;$Me(Nxn(t,f,u),n)}function Xvn(t){switch(t.g){case 1:return qw(),tz;case 3:return qw(),ez;case 2:return qw(),Vme;case 4:return qw(),zme;default:return null}}function Qvn(t,n,s){if(t.e)switch(t.b){case 1:Ghn(t.c,n,s);break;case 0:zhn(t.c,n,s)}else oMt(t.c,n,s);t.a[n.p][s.p]=t.c.i,t.a[s.p][n.p]=t.c.e}function GFt(t){var n,s;if(t==null)return null;s=mt(N1,Bt,199,t.length,0,2);for(n=0;n=0)return f;if(t.ol()){for(u=0;u=f)throw ve(new PT(n,f));if(t.Si()){if(u=t.dd(s),u>=0&&u!=n)throw ve(new dn(qG))}return t.Xi(n,s)}function D7e(t,n){if(this.a=b(mi(t),253),this.b=b(mi(n),253),t.Ed(n)>0||t==(Vle(),bme)||n==(Hle(),yme))throw ve(new dn("Invalid range: "+uMt(t,n)))}function zFt(t){var n,s;this.b=new Ut,this.c=t,this.a=!1;for(s=new me(t.a);s.a0),(n&-n)==n)return Ks(n*md(t,31)*0.0000000004656612873077393);do s=md(t,31),u=s%n;while(s-u+(n-1)<0);return Ks(u)}function n_n(t,n,s){switch(s.g){case 1:t.a=n.a/2,t.b=0;break;case 2:t.a=n.a,t.b=n.b/2;break;case 3:t.a=n.a/2,t.b=n.b;break;case 4:t.a=0,t.b=n.b/2}}function UU(t,n,s,u){var f,g;for(f=n;f1&&(g=Jvn(t,n)),g}function qFt(t){var n=rt(ht(It(t,(Hi(),jz))))*d.Math.sqrt((!t.a&&(t.a=new kt(ra,t,10,11)),t.a).i);return new Dt(n,n/rt(ht(It(t,hte))))}function ife(t){var n;if(!!t.f&&t.f.Vh())n=b(t.f,54),t.f=b(e_(t,n),84),t.f!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,8,n,t.f));return t.f}function afe(t){var n;if(!!t.i&&t.i.Vh())n=b(t.i,54),t.i=b(e_(t,n),84),t.i!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,7,n,t.i));return t.i}function El(t){var n;if(!!t.b&&(t.b.Db&64)!=0)n=t.b,t.b=b(e_(t,n),19),t.b!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,21,n,t.b));return t.b}function fQ(t,n){var s,u,f;if(t.d==null)++t.e,++t.f;else u=n.Bi(),CCn(t,t.f+1),f=(u&sa)%t.d.length,s=t.d[f],!s&&(s=t.d[f]=t.dk()),s.Fc(n),++t.f}function F7e(t,n,s){var u;if(n.tk())return!1;else if(n.Ik()!=-2)return u=n.ik(),u==null?s==null:da(u,s);else return n.qk()==t.e.Dh()&&s==null}function pQ(){var t;Kd(16,rYt),t=R9t(16),this.b=mt(_me,EG,303,t,0,1),this.c=mt(_me,EG,303,t,0,1),this.a=null,this.e=null,this.i=0,this.f=t-1,this.g=0}function Ib(t){HIe.call(this),this.k=(mn(),Es),this.j=(Kd(6,px),new Gu(6)),this.b=(Kd(2,px),new Gu(2)),this.d=new Fle,this.f=new x5e,this.a=t}function a_n(t){var n,s;if(t.c.length<=1)return;n=Kzt(t,(Ht(),Kn)),PUt(t,b(n.a,17).a,b(n.b,17).a),s=Kzt(t,bn),PUt(t,b(s.a,17).a,b(s.b,17).a)}function s_n(t,n,s){var u,f;f=t.a.b;for(u=f.c.length;u102)return-1;if(t<=57)return t-48;if(t<65)return-1;if(t<=70)return t-65+10;if(t<97)return-1;return t-97+10}function ufe(t,n){if(t==null)throw ve(new yA("null key in entry: null="+n));else if(n==null)throw ve(new yA("null value in entry: "+t+"=null"))}function c_n(t,n){var s,u;while(t.Ob()){if(!n.Ob())return!1;if(s=t.Pb(),u=n.Pb(),!(nt(s)===nt(u)||s!=null&&da(s,u)))return!1}return!n.Ob()}function jFt(t,n){var s=Te(we(xo,1),Ml,28,15,[Rde(t.a[0],n),Rde(t.a[1],n),Rde(t.a[2],n)]);if(t.d)s[0]=d.Math.max(s[0],s[2]),s[2]=s[0];return s}function KFt(t,n){var s=Te(we(xo,1),Ml,28,15,[zX(t.a[0],n),zX(t.a[1],n),zX(t.a[2],n)]);if(t.d)s[0]=d.Math.max(s[0],s[2]),s[2]=s[0];return s}function U7e(t,n,s){if(!NA(b(ce(n,(Qt(),ms)),101)))eNe(t,n,By(n,s)),eNe(t,n,By(n,(Ht(),Kn))),eNe(t,n,By(n,pn)),Hr(),ks(n.j,new tCt(t))}function XFt(t){var n,s;t.c||A5n(t),s=new Rh,n=new me(t.a),ge(n);while(n.a0&&(fn(0,n.length),n.charCodeAt(0)==43)?(fn(1,n.length+1),n.substr(1)):n))}function S_n(t){var n;return t==null?null:new Gv((n=vu(t,!0),n.length>0&&(fn(0,n.length),n.charCodeAt(0)==43)?(fn(1,n.length+1),n.substr(1)):n))}function z7e(t,n,s,u,f,g,_,S){var C,O;if(!u)return;C=u.a[0],!!C&&z7e(t,n,s,C,f,g,_,S),vfe(t,s,u.d,f,g,_,S)&&n.Fc(u),O=u.a[1],!!O&&z7e(t,n,s,O,f,g,_,S)}function C4(t,n,s){try{return yw(ede(t,n,s),1)}catch(u){if(u=Qa(u),He(u,333))throw ve(new Gl(E0e+t.o+"*"+t.p+w0e+n+ll+s+S0e));else throw ve(u)}}function t$t(t,n,s){try{return yw(ede(t,n,s),0)}catch(u){if(u=Qa(u),He(u,333))throw ve(new Gl(E0e+t.o+"*"+t.p+w0e+n+ll+s+S0e));else throw ve(u)}}function r$t(t,n,s){try{return yw(ede(t,n,s),2)}catch(u){if(u=Qa(u),He(u,333))throw ve(new Gl(E0e+t.o+"*"+t.p+w0e+n+ll+s+S0e));else throw ve(u)}}function n$t(t,n){if(t.g==-1)throw ve(new Ah);t.Xj();try{t.d.hd(t.g,n),t.f=t.d.j}catch(s){if(s=Qa(s),He(s,77))throw ve(new Cf);else throw ve(s)}}function T_n(t){var n,s,u,f,g;for(u=new me(t.b);u.ag&&ls(n,g,null),n}function x_n(t,n){var s,u;if(u=t.gc(),n==null){for(s=0;s0&&(C+=f),O[M]=_,_+=S*(C+u)}function a$t(t){var n,s,u;u=t.f,t.n=mt(xo,Ml,28,u,15,1),t.d=mt(xo,Ml,28,u,15,1);for(n=0;n0?t.c:0),++f;t.b=u,t.d=g}function u$t(t,n){var s=Te(we(xo,1),Ml,28,15,[B7e(t,(K0(),Mc),n),B7e(t,qu,n),B7e(t,Dc,n)]);if(t.f)s[0]=d.Math.max(s[0],s[2]),s[2]=s[0];return s}function L_n(t,n,s){var u;try{VQ(t,n+t.j,s+t.k,!1,!0)}catch(f){if(f=Qa(f),He(f,77))throw u=f,ve(new Gl(u.g+uZ+n+ll+s+")."));else throw ve(f)}}function M_n(t,n,s){var u;try{VQ(t,n+t.j,s+t.k,!0,!1)}catch(f){if(f=Qa(f),He(f,77))throw u=f,ve(new Gl(u.g+uZ+n+ll+s+")."));else throw ve(f)}}function h$t(t){var n;if(!$a(t,(Qt(),SS)))return;if(n=b(ce(t,SS),21),n.Hc((ox(),m0)))n.Mc(m0),n.Fc(b0);else if(n.Hc(b0))n.Mc(b0),n.Fc(m0)}function d$t(t){var n;if(!$a(t,(Qt(),SS)))return;if(n=b(ce(t,SS),21),n.Hc((ox(),v0)))n.Mc(v0),n.Fc(Ap);else if(n.Hc(Ap))n.Mc(Ap),n.Fc(v0)}function mfe(t,n,s,u){var f,g,_,S;return t.a==null&&Pwn(t,n),_=n.b.j.c.length,g=s.d.p,S=u.d.p,f=S-1,f<0&&(f=_-1),g<=f?t.a[f]-t.a[g]:t.a[_-1]-t.a[g]+t.a[f]}function D_n(t){var n,s;if(!t.b){t.b=YK(b(t.f,27).kh().i);for(s=new kn(b(t.f,27).kh());s.e!=s.i.gc();)n=b(Dn(s),135),Gt(t.b,new Wle(n))}return t.b}function P_n(t){var n,s;if(!t.e){t.e=YK(jue(b(t.f,27)).i);for(s=new kn(jue(b(t.f,27)));s.e!=s.i.gc();)n=b(Dn(s),123),Gt(t.e,new a4t(n))}return t.e}function f$t(t){var n,s;if(!t.a){t.a=YK(MK(b(t.f,27)).i);for(s=new kn(MK(b(t.f,27)));s.e!=s.i.gc();)n=b(Dn(s),27),Gt(t.a,new tue(t,n))}return t.a}function Qw(t){var n;if(!t.C&&(t.D!=null||t.B!=null))if(n=SRn(t),n)t.hl(n);else try{t.hl(null)}catch(s){if(s=Qa(s),!He(s,63))throw ve(s)}return t.C}function B_n(t){switch(t.q.g){case 5:B$t(t,(Ht(),pn)),B$t(t,Kn);break;case 4:$Ht(t,(Ht(),pn)),$Ht(t,Kn);break;default:zUt(t,(Ht(),pn)),zUt(t,Kn)}}function F_n(t){switch(t.q.g){case 5:F$t(t,(Ht(),Cn)),F$t(t,bn);break;case 4:UHt(t,(Ht(),Cn)),UHt(t,bn);break;default:VUt(t,(Ht(),Cn)),VUt(t,bn)}}function k4(t,n){var s,u,f;f=new Oo;for(u=t.Kc();u.Ob();)s=b(u.Pb(),36),wO(s,f.a,0),f.a+=s.f.a+n,f.b=d.Math.max(f.b,s.f.b);return f.b>0&&(f.b+=n),f}function bQ(t,n){var s,u,f;f=new Oo;for(u=t.Kc();u.Ob();)s=b(u.Pb(),36),wO(s,0,f.b),f.b+=s.f.b+n,f.a=d.Math.max(f.a,s.f.a);return f.a>0&&(f.a+=n),f}function p$t(t){var n,s,u;u=sa;for(s=new me(t.a);s.a>16==6)return t.Cb.Th(t,5,ng,n);return u=El(b(jr((s=b(cn(t,16),29),!s?t.ii():s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function $_n(t){x6();var n=t.e;if(n&&n.stack){var s=n.stack,u=n+` + L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Mjn=I((e,r,i)=>{let a=e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Djn=I((e,r,i)=>{let a=ea(),{themeVariables:o}=a,{strokeWidth:l}=o,h=e.append("defs").append("marker").attr("id",i+"_"+r+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");h.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),h.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),h.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),h.selectAll("*").attr("stroke-width",`${l}`)},"requirement_contains_neo"),Pjn=I((e,r,i)=>{e.append("marker").attr("id",i+"_"+r+"-hierarchyEnd").attr("class","marker hierarchy "+r).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),e.append("marker").attr("id",i+"_"+r+"-hierarchyStart").attr("class","marker hierarchy "+r).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),Bjn={extension:pjn,composition:gjn,aggregation:mjn,dependency:bjn,lollipop:yjn,point:vjn,circle:_jn,cross:Ejn,barb:wjn,barbNeo:Sjn,hierarchy:Pjn,only_one:Tjn,zero_or_one:xjn,one_or_more:Cjn,zero_or_more:kjn,only_one_neo:Ajn,zero_or_one_neo:Rjn,one_or_more_neo:Ijn,zero_or_more_neo:Ojn,requirement_arrow:Njn,requirement_contains:Mjn,requirement_arrow_neo:Ljn,requirement_contains_neo:Djn},GH=fjn});function vwe(e){let r=[];for(let i=0;i=1-bwe||w<=bwe||w>=1-bwe)return null;return{point:{x:e.x+v*o,y:e.y+v*l},tA:v,tB:w}}function Ztt(e){return Math.abs(e.b.x-e.a.x)>=Math.abs(e.b.y-e.a.y)}function Jtt(e,r,i){if(e.curve!=="rounded")return!1;let a=e.points,o=a[r],l=a[r+1];if(!o||!l)return!1;let h=Math.hypot(l.x-o.x,l.y-o.y),d=i*h,p=r>0?eie(a[r-1],o,l,ywe):null;if(p&&d=Math.abs(i))return r>=0?1:0;return i>=0?1:0}function s4r(e,r){if(e.length<2)return e.map((l)=>({...l}));let i=e.map((l)=>({...l})),a=r.arrowTypeStart&&O0[r.arrowTypeStart];if(a){let l=e[0],h=e[1],d=Math.atan2(h.y-l.y,h.x-l.x);i[0].x=l.x+a*Math.cos(d),i[0].y=l.y+a*Math.sin(d)}let o=r.arrowTypeEnd&&O0[r.arrowTypeEnd];if(o){let l=e.length,h=e[l-2],d=e[l-1],p=Math.atan2(d.y-h.y,d.x-h.x);i[l-1].x=d.x-o*Math.cos(p),i[l-1].y=d.y-o*Math.sin(p)}return i}function o4r(e,r,i,a,o){let l=e.point.x,h=e.point.y,d={x:l-r*e.r,y:h-i*e.r},p={x:l+r*e.r,y:h+i*e.r},m=[`L${zH(d)}`];if(o==="arc")m.push(`A${CC(e.r)},${CC(e.r)} 0 0 ${a} ${zH(p)}`);else m.push(`M${zH(p)}`);return m}function eie(e,r,i,a){let o=r.x-e.x,l=r.y-e.y,h=i.x-r.x,d=i.y-r.y,p=Math.hypot(o,l),m=Math.hypot(h,d);if(p0){let B=eie(o[m-1],o[m],o[m+1]??o[m],ywe);if(B)k=B.cutLen}let A=v,R=null;if(l&&mB.t-D.t).filter((B)=>{let D=Math.min(B.d-k,A-B.d)-Fjn;return B.r=Math.min(B.r,D),B.r>=N});for(let B=0;BD){let P=D/2;L[B].r=Math.min(L[B].r,P),L[B+1].r=Math.min(L[B+1].r,P)}}for(let B of L){if(B.r=2?a:null}catch{return null}}function tie(e,r,i){if(!i.enabled)return;let a=e.node();if(!a)return;let o=new Map;for(let m of r)o.set(m.id,m);let l=new Map;for(let m of a.querySelectorAll("path[data-id]")){let y=m.getAttribute("data-id");if(y!==null&&!l.has(y))l.set(y,m)}let h=[];for(let m of r){let y=l.get(m.id);if(!y)continue;let w=h4r(y.getAttribute("data-points"))??m.points;h.push({...m,points:w})}let d=i4r(h);if(d.length===0)return;let p=new Map;for(let m of d){let y=p.get(m.jumpEdgeId)??[];y.push(m),p.set(m.jumpEdgeId,y)}for(let m of h){let y=p.get(m.id);if(!y||y.length===0)continue;let w=o.get(m.id)?.curve;if(w!==void 0&&!u4r(w))continue;let T=l.get(m.id);if(!T)continue;if(w===void 0){let L=T.getAttribute("d")??"";if(!c4r(L))continue}let x=T.getAttribute("style")??"",k=/stroke-dasharray\s*:\s*0\s+([\d.]+)\s+[\d.]+\s+([\d.]+)/.exec(x),A=k?Number.parseFloat(k[1]):null,R=k?Number.parseFloat(k[2]):null,N=l4r(m,y,i);if(T.setAttribute("d",N),A!==null&&R!==null&&typeof T.getTotalLength==="function"){let L=T.getTotalLength(),B=Math.max(0,L-A-R),D=`0 ${A} ${B} ${R}`,P=x.replace(/stroke-dasharray\s*:[^;]*;?/g,`stroke-dasharray: ${D};`).replace(/;\s*;+/g,";");T.setAttribute("style",P)}}}var ywe=5,mwe=0.00001,Fjn=2,$jn=0.6,bwe=0.000001;var ert=Re(()=>{Qm();Ja();I(vwe,"buildSegmentList");I(n4r,"segmentIntersection");I(Ztt,"isHorizontalSeg");I(Jtt,"crossingSitsInRoundedCorner");I(i4r,"findEdgeIntersections");I(CC,"fmt");I(zH,"pointToString");I(a4r,"getArcSweepFlag");I(s4r,"applyMarkerOffsets");I(o4r,"emitJump");I(eie,"computeRoundedCorner");I(l4r,"rewriteEdgePath");I(c4r,"isStraightPath");I(u4r,"curveSupportsLineHops");I(h4r,"decodeDataPoints");I(tie,"applyLineJumpsToSvg")});var Ujn,_we;var trt=Re(()=>{Ujn=typeof global=="object"&&global&&global.Object===Object&&global,_we=Ujn});var Gjn,zjn,$p;var XS=Re(()=>{trt();Gjn=typeof self=="object"&&self&&self.Object===Object&&self,zjn=_we||Gjn||Function("return this")(),$p=zjn});var Vjn,Zm;var eB=Re(()=>{XS();Vjn=$p.Symbol,Zm=Vjn});function Yjn(e){var r=Hjn.call(e,rie),i=e[rie];try{e[rie]=void 0;var a=!0}catch(l){}var o=qjn.call(e);if(a)if(r)e[rie]=i;else delete e[rie];return o}var d4r,Hjn,qjn,rie,f4r;var p4r=Re(()=>{eB();d4r=Object.prototype,Hjn=d4r.hasOwnProperty,qjn=d4r.toString,rie=Zm?Zm.toStringTag:void 0;f4r=Yjn});function Kjn(e){return jjn.call(e)}var Wjn,jjn,g4r;var m4r=Re(()=>{Wjn=Object.prototype,jjn=Wjn.toString;g4r=Kjn});function Zjn(e){if(e==null)return e===void 0?Qjn:Xjn;return b4r&&b4r in Object(e)?f4r(e):g4r(e)}var Xjn="[object Null]",Qjn="[object Undefined]",b4r,mv;var AL=Re(()=>{eB();p4r();m4r();b4r=Zm?Zm.toStringTag:void 0;mv=Zjn});function Jjn(e){return e!=null&&typeof e=="object"}var N0;var kC=Re(()=>{N0=Jjn});function tKn(e){return typeof e=="symbol"||N0(e)&&mv(e)==eKn}var eKn="[object Symbol]",KE;var tB=Re(()=>{AL();kC();KE=tKn});function rKn(e,r){var i=-1,a=e==null?0:e.length,o=Array(a);while(++i{w3=rKn});var nKn,Fl;var fg=Re(()=>{nKn=Array.isArray,Fl=nKn});function _4r(e){if(typeof e=="string")return e;if(Fl(e))return w3(e,_4r)+"";if(KE(e))return v4r?v4r.call(e):"";var r=e+"";return r=="0"&&1/e==-iKn?"-0":r}var iKn=1/0,y4r,v4r,E4r;var w4r=Re(()=>{eB();nie();fg();tB();y4r=Zm?Zm.prototype:void 0,v4r=y4r?y4r.toString:void 0;E4r=_4r});function sKn(e){var r=e.length;while(r--&&aKn.test(e.charAt(r)));return r}var aKn,S4r;var T4r=Re(()=>{aKn=/\s/;S4r=sKn});function lKn(e){return e?e.slice(0,S4r(e)+1).replace(oKn,""):e}var oKn,x4r;var C4r=Re(()=>{T4r();oKn=/^\s+/;x4r=lKn});function cKn(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var vf;var QS=Re(()=>{vf=cKn});function pKn(e){if(typeof e=="number")return e;if(KE(e))return k4r;if(vf(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=vf(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=x4r(e);var i=hKn.test(e);return i||dKn.test(e)?fKn(e.slice(2),i?2:8):uKn.test(e)?k4r:+e}var k4r=NaN,uKn,hKn,dKn,fKn,A4r;var R4r=Re(()=>{C4r();QS();tB();uKn=/^[-+]0x[0-9a-f]+$/i,hKn=/^0b[01]+$/i,dKn=/^0o[0-7]+$/i,fKn=parseInt;A4r=pKn});function mKn(e){if(!e)return e===0?e:0;if(e=A4r(e),e===I4r||e===-I4r){var r=e<0?-1:1;return r*gKn}return e===e?e:0}var I4r=1/0,gKn=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,VH;var rrt=Re(()=>{R4r();VH=mKn});function bKn(e){var r=VH(e),i=r%1;return r===r?i?r-i:r:0}var O4r;var N4r=Re(()=>{rrt();O4r=bKn});function yKn(e){return e}var Q_;var RL=Re(()=>{Q_=yKn});function SKn(e){if(!vf(e))return!1;var r=mv(e);return r==_Kn||r==EKn||r==vKn||r==wKn}var vKn="[object AsyncFunction]",_Kn="[object Function]",EKn="[object GeneratorFunction]",wKn="[object Proxy]",S3;var iie=Re(()=>{AL();QS();S3=SKn});var TKn,Ewe;var L4r=Re(()=>{XS();TKn=$p["__core-js_shared__"],Ewe=TKn});function xKn(e){return!!M4r&&M4r in e}var M4r,D4r;var P4r=Re(()=>{L4r();M4r=function(){var e=/[^.]+$/.exec(Ewe&&Ewe.keys&&Ewe.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();D4r=xKn});function AKn(e){if(e!=null){try{return kKn.call(e)}catch(r){}try{return e+""}catch(r){}}return""}var CKn,kKn,YR;var nrt=Re(()=>{CKn=Function.prototype,kKn=CKn.toString;YR=AKn});function PKn(e){if(!vf(e)||D4r(e))return!1;var r=S3(e)?DKn:IKn;return r.test(YR(e))}var RKn,IKn,OKn,NKn,LKn,MKn,DKn,B4r;var F4r=Re(()=>{iie();P4r();QS();nrt();RKn=/[\\^$.*+?()[\]{}|]/g,IKn=/^\[object .+?Constructor\]$/,OKn=Function.prototype,NKn=Object.prototype,LKn=OKn.toString,MKn=NKn.hasOwnProperty,DKn=RegExp("^"+LKn.call(MKn).replace(RKn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");B4r=PKn});function BKn(e,r){return e==null?void 0:e[r]}var $4r;var U4r=Re(()=>{$4r=BKn});function FKn(e,r){var i=$4r(e,r);return B4r(i)?i:void 0}var Z_;var IL=Re(()=>{F4r();U4r();Z_=FKn});var $Kn,wwe;var G4r=Re(()=>{IL();XS();$Kn=Z_($p,"WeakMap"),wwe=$Kn});var z4r,UKn,V4r;var H4r=Re(()=>{QS();z4r=Object.create,UKn=function(){function e(){}return function(r){if(!vf(r))return{};if(z4r)return z4r(r);e.prototype=r;var i=new e;return e.prototype=void 0,i}}(),V4r=UKn});function GKn(e,r,i){switch(i.length){case 0:return e.call(r);case 1:return e.call(r,i[0]);case 2:return e.call(r,i[0],i[1]);case 3:return e.call(r,i[0],i[1],i[2])}return e.apply(r,i)}var q4r;var Y4r=Re(()=>{q4r=GKn});function zKn(){}var W4r;var j4r=Re(()=>{W4r=zKn});function VKn(e,r){var i=-1,a=e.length;r||(r=Array(a));while(++i{Swe=VKn});function WKn(e){var r=0,i=0;return function(){var a=YKn(),o=qKn-(a-i);if(i=a,o>0){if(++r>=HKn)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}var HKn=800,qKn=16,YKn,K4r;var X4r=Re(()=>{YKn=Date.now;K4r=WKn});function jKn(e){return function(){return e}}var J_;var art=Re(()=>{J_=jKn});var KKn,HH;var srt=Re(()=>{IL();KKn=function(){try{var e=Z_(Object,"defineProperty");return e({},"",{}),e}catch(r){}}(),HH=KKn});var XKn,Q4r;var Z4r=Re(()=>{art();srt();RL();XKn=!HH?Q_:function(e,r){return HH(e,"toString",{configurable:!0,enumerable:!1,value:J_(r),writable:!0})},Q4r=XKn});var QKn,Twe;var ort=Re(()=>{Z4r();X4r();QKn=K4r(Q4r),Twe=QKn});function ZKn(e,r){var i=-1,a=e==null?0:e.length;while(++i{xwe=ZKn});function JKn(e,r,i,a){var o=e.length,l=i+(a?1:-1);while(a?l--:++l{Cwe=JKn});function eXn(e){return e!==e}var J4r;var ekr=Re(()=>{J4r=eXn});function tXn(e,r,i){var a=i-1,o=e.length;while(++a{tkr=tXn});function rXn(e,r,i){return r===r?tkr(e,r,i):Cwe(e,J4r,i)}var nkr;var ikr=Re(()=>{crt();ekr();rkr();nkr=rXn});function nXn(e,r){var i=e==null?0:e.length;return!!i&&nkr(e,r,0)>-1}var akr;var skr=Re(()=>{ikr();akr=nXn});function sXn(e,r){var i=typeof e;return r=r==null?iXn:r,!!r&&(i=="number"||i!="symbol"&&aXn.test(e))&&(e>-1&&e%1==0&&e{aXn=/^(?:0|[1-9]\d*)$/;OL=sXn});function oXn(e,r,i){if(r=="__proto__"&&HH)HH(e,r,{configurable:!0,enumerable:!0,value:i,writable:!0});else e[r]=i}var NL;var sie=Re(()=>{srt();NL=oXn});function lXn(e,r){return e===r||e!==e&&r!==r}var ZS;var rB=Re(()=>{ZS=lXn});function hXn(e,r,i){var a=e[r];if(!(uXn.call(e,r)&&ZS(a,i))||i===void 0&&!(r in e))NL(e,r,i)}var cXn,uXn,LL;var oie=Re(()=>{sie();rB();cXn=Object.prototype,uXn=cXn.hasOwnProperty;LL=hXn});function dXn(e,r,i,a){var o=!i;i||(i={});var l=-1,h=r.length;while(++l{oie();sie();T3=dXn});function fXn(e,r,i){return r=okr(r===void 0?e.length-1:r,0),function(){var a=arguments,o=-1,l=okr(a.length-r,0),h=Array(l);while(++o{Y4r();okr=Math.max;kwe=fXn});function pXn(e,r){return Twe(kwe(e,r,Q_),e+"")}var ML;var lie=Re(()=>{RL();urt();ort();ML=pXn});function mXn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gXn}var gXn=9007199254740991,YH;var Awe=Re(()=>{YH=mXn});function bXn(e){return e!=null&&YH(e.length)&&!S3(e)}var Jm;var x3=Re(()=>{iie();Awe();Jm=bXn});function yXn(e,r,i){if(!vf(i))return!1;var a=typeof r;if(a=="number"?Jm(i)&&OL(r,i.length):a=="string"&&(r in i))return ZS(i[r],e);return!1}var WR;var cie=Re(()=>{rB();x3();aie();QS();WR=yXn});function vXn(e){return ML(function(r,i){var a=-1,o=i.length,l=o>1?i[o-1]:void 0,h=o>2?i[2]:void 0;if(l=e.length>3&&typeof l=="function"?(o--,l):void 0,h&&WR(i[0],i[1],h))l=o<3?void 0:l,o=1;r=Object(r);while(++a{lie();cie();lkr=vXn});function EXn(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||_Xn;return e===i}var _Xn,DL;var uie=Re(()=>{_Xn=Object.prototype;DL=EXn});function wXn(e,r){var i=-1,a=Array(e);while(++i{ukr=wXn});function TXn(e){return N0(e)&&mv(e)==SXn}var SXn="[object Arguments]",hrt;var dkr=Re(()=>{AL();kC();hrt=TXn});var fkr,xXn,CXn,kXn,AC;var WH=Re(()=>{dkr();kC();fkr=Object.prototype,xXn=fkr.hasOwnProperty,CXn=fkr.propertyIsEnumerable,kXn=hrt(function(){return arguments}())?hrt:function(e){return N0(e)&&xXn.call(e,"callee")&&!CXn.call(e,"callee")},AC=kXn});function AXn(){return!1}var pkr;var gkr=Re(()=>{pkr=AXn});var Iwe={};VN(Iwe,{default:()=>JS});var ykr,mkr,RXn,bkr,IXn,OXn,JS;var jH=Re(()=>{XS();gkr();ykr=typeof Iwe=="object"&&Iwe&&!Iwe.nodeType&&Iwe,mkr=ykr&&typeof Rwe=="object"&&Rwe&&!Rwe.nodeType&&Rwe,RXn=mkr&&mkr.exports===ykr,bkr=RXn?$p.Buffer:void 0,IXn=bkr?bkr.isBuffer:void 0,OXn=IXn||pkr,JS=OXn});function rQn(e){return N0(e)&&YH(e.length)&&!!Bd[mv(e)]}var NXn="[object Arguments]",LXn="[object Array]",MXn="[object Boolean]",DXn="[object Date]",PXn="[object Error]",BXn="[object Function]",FXn="[object Map]",$Xn="[object Number]",UXn="[object Object]",GXn="[object RegExp]",zXn="[object Set]",VXn="[object String]",HXn="[object WeakMap]",qXn="[object ArrayBuffer]",YXn="[object DataView]",WXn="[object Float32Array]",jXn="[object Float64Array]",KXn="[object Int8Array]",XXn="[object Int16Array]",QXn="[object Int32Array]",ZXn="[object Uint8Array]",JXn="[object Uint8ClampedArray]",eQn="[object Uint16Array]",tQn="[object Uint32Array]",Bd,vkr;var _kr=Re(()=>{AL();Awe();kC();Bd={};Bd[WXn]=Bd[jXn]=Bd[KXn]=Bd[XXn]=Bd[QXn]=Bd[ZXn]=Bd[JXn]=Bd[eQn]=Bd[tQn]=!0;Bd[NXn]=Bd[LXn]=Bd[qXn]=Bd[MXn]=Bd[YXn]=Bd[DXn]=Bd[PXn]=Bd[BXn]=Bd[FXn]=Bd[$Xn]=Bd[UXn]=Bd[GXn]=Bd[zXn]=Bd[VXn]=Bd[HXn]=!1;vkr=rQn});function nQn(e){return function(r){return e(r)}}var PL;var hie=Re(()=>{PL=nQn});var Nwe={};VN(Nwe,{default:()=>C3});var Ekr,die,iQn,drt,aQn,C3;var Lwe=Re(()=>{trt();Ekr=typeof Nwe=="object"&&Nwe&&!Nwe.nodeType&&Nwe,die=Ekr&&typeof Owe=="object"&&Owe&&!Owe.nodeType&&Owe,iQn=die&&die.exports===Ekr,drt=iQn&&_we.process,aQn=function(){try{var e=die&&die.require&&die.require("util").types;if(e)return e;return drt&&drt.binding&&drt.binding("util")}catch(r){}}(),C3=aQn});var wkr,sQn,BL;var fie=Re(()=>{_kr();hie();Lwe();wkr=C3&&C3.isTypedArray,sQn=wkr?PL(wkr):vkr,BL=sQn});function cQn(e,r){var i=Fl(e),a=!i&&AC(e),o=!i&&!a&&JS(e),l=!i&&!a&&!o&&BL(e),h=i||a||o||l,d=h?ukr(e.length,String):[],p=d.length;for(var m in e)if((r||lQn.call(e,m))&&!(h&&(m=="length"||o&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||OL(m,p))))d.push(m);return d}var oQn,lQn,Mwe;var frt=Re(()=>{hkr();WH();fg();jH();aie();fie();oQn=Object.prototype,lQn=oQn.hasOwnProperty;Mwe=cQn});function uQn(e,r){return function(i){return e(r(i))}}var Dwe;var prt=Re(()=>{Dwe=uQn});var hQn,Skr;var Tkr=Re(()=>{prt();hQn=Dwe(Object.keys,Object),Skr=hQn});function pQn(e){if(!DL(e))return Skr(e);var r=[];for(var i in Object(e))if(fQn.call(e,i)&&i!="constructor")r.push(i);return r}var dQn,fQn,KH;var Pwe=Re(()=>{uie();Tkr();dQn=Object.prototype,fQn=dQn.hasOwnProperty;KH=pQn});function gQn(e){return Jm(e)?Mwe(e):KH(e)}var Up;var jR=Re(()=>{frt();Pwe();x3();Up=gQn});function mQn(e){var r=[];if(e!=null)for(var i in Object(e))r.push(i);return r}var xkr;var Ckr=Re(()=>{xkr=mQn});function vQn(e){if(!vf(e))return xkr(e);var r=DL(e),i=[];for(var a in e)if(!(a=="constructor"&&(r||!yQn.call(e,a))))i.push(a);return i}var bQn,yQn,kkr;var Akr=Re(()=>{QS();uie();Ckr();bQn=Object.prototype,yQn=bQn.hasOwnProperty;kkr=vQn});function _Qn(e){return Jm(e)?Mwe(e,!0):kkr(e)}var e2;var FL=Re(()=>{frt();Akr();x3();e2=_Qn});function SQn(e,r){if(Fl(e))return!1;var i=typeof e;if(i=="number"||i=="symbol"||i=="boolean"||e==null||KE(e))return!0;return wQn.test(e)||!EQn.test(e)||r!=null&&e in Object(r)}var EQn,wQn,XH;var Bwe=Re(()=>{fg();tB();EQn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wQn=/^\w*$/;XH=SQn});var TQn,KR;var pie=Re(()=>{IL();TQn=Z_(Object,"create"),KR=TQn});function xQn(){this.__data__=KR?KR(null):{},this.size=0}var Rkr;var Ikr=Re(()=>{pie();Rkr=xQn});function CQn(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}var Okr;var Nkr=Re(()=>{Okr=CQn});function IQn(e){var r=this.__data__;if(KR){var i=r[e];return i===kQn?void 0:i}return RQn.call(r,e)?r[e]:void 0}var kQn="__lodash_hash_undefined__",AQn,RQn,Lkr;var Mkr=Re(()=>{pie();AQn=Object.prototype,RQn=AQn.hasOwnProperty;Lkr=IQn});function LQn(e){var r=this.__data__;return KR?r[e]!==void 0:NQn.call(r,e)}var OQn,NQn,Dkr;var Pkr=Re(()=>{pie();OQn=Object.prototype,NQn=OQn.hasOwnProperty;Dkr=LQn});function DQn(e,r){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=KR&&r===void 0?MQn:r,this}var MQn="__lodash_hash_undefined__",Bkr;var Fkr=Re(()=>{pie();Bkr=DQn});function QH(e){var r=-1,i=e==null?0:e.length;this.clear();while(++r{Ikr();Nkr();Mkr();Pkr();Fkr();QH.prototype.clear=Rkr;QH.prototype.delete=Okr;QH.prototype.get=Lkr;QH.prototype.has=Dkr;QH.prototype.set=Bkr;grt=QH});function PQn(){this.__data__=[],this.size=0}var Ukr;var Gkr=Re(()=>{Ukr=PQn});function BQn(e,r){var i=e.length;while(i--)if(ZS(e[i][0],r))return i;return-1}var $L;var gie=Re(()=>{rB();$L=BQn});function UQn(e){var r=this.__data__,i=$L(r,e);if(i<0)return!1;var a=r.length-1;if(i==a)r.pop();else $Qn.call(r,i,1);return--this.size,!0}var FQn,$Qn,zkr;var Vkr=Re(()=>{gie();FQn=Array.prototype,$Qn=FQn.splice;zkr=UQn});function GQn(e){var r=this.__data__,i=$L(r,e);return i<0?void 0:r[i][1]}var Hkr;var qkr=Re(()=>{gie();Hkr=GQn});function zQn(e){return $L(this.__data__,e)>-1}var Ykr;var Wkr=Re(()=>{gie();Ykr=zQn});function VQn(e,r){var i=this.__data__,a=$L(i,e);if(a<0)++this.size,i.push([e,r]);else i[a][1]=r;return this}var jkr;var Kkr=Re(()=>{gie();jkr=VQn});function ZH(e){var r=-1,i=e==null?0:e.length;this.clear();while(++r{Gkr();Vkr();qkr();Wkr();Kkr();ZH.prototype.clear=Ukr;ZH.prototype.delete=zkr;ZH.prototype.get=Hkr;ZH.prototype.has=Ykr;ZH.prototype.set=jkr;UL=ZH});var HQn,GL;var Fwe=Re(()=>{IL();XS();HQn=Z_($p,"Map"),GL=HQn});function qQn(){this.size=0,this.__data__={hash:new grt,map:new(GL||UL),string:new grt}}var Xkr;var Qkr=Re(()=>{$kr();mie();Fwe();Xkr=qQn});function YQn(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}var Zkr;var Jkr=Re(()=>{Zkr=YQn});function WQn(e,r){var i=e.__data__;return Zkr(r)?i[typeof r=="string"?"string":"hash"]:i.map}var zL;var bie=Re(()=>{Jkr();zL=WQn});function jQn(e){var r=zL(this,e).delete(e);return this.size-=r?1:0,r}var e3r;var t3r=Re(()=>{bie();e3r=jQn});function KQn(e){return zL(this,e).get(e)}var r3r;var n3r=Re(()=>{bie();r3r=KQn});function XQn(e){return zL(this,e).has(e)}var i3r;var a3r=Re(()=>{bie();i3r=XQn});function QQn(e,r){var i=zL(this,e),a=i.size;return i.set(e,r),this.size+=i.size==a?0:1,this}var s3r;var o3r=Re(()=>{bie();s3r=QQn});function JH(e){var r=-1,i=e==null?0:e.length;this.clear();while(++r{Qkr();t3r();n3r();a3r();o3r();JH.prototype.clear=Xkr;JH.prototype.delete=e3r;JH.prototype.get=r3r;JH.prototype.has=i3r;JH.prototype.set=s3r;nB=JH});function mrt(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw TypeError(ZQn);var i=function(){var a=arguments,o=r?r.apply(this,a):a[0],l=i.cache;if(l.has(o))return l.get(o);var h=e.apply(this,a);return i.cache=l.set(o,h)||l,h};return i.cache=new(mrt.Cache||nB),i}var ZQn="Expected a function",l3r;var c3r=Re(()=>{$we();mrt.Cache=nB;l3r=mrt});function eZn(e){var r=l3r(e,function(a){if(i.size===JQn)i.clear();return a}),i=r.cache;return r}var JQn=500,u3r;var h3r=Re(()=>{c3r();u3r=eZn});var tZn,rZn,nZn,d3r;var f3r=Re(()=>{h3r();tZn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rZn=/\\(\\)?/g,nZn=u3r(function(e){var r=[];if(e.charCodeAt(0)===46)r.push("");return e.replace(tZn,function(i,a,o,l){r.push(o?l.replace(rZn,"$1"):a||i)}),r}),d3r=nZn});function iZn(e){return e==null?"":E4r(e)}var Uwe;var brt=Re(()=>{w4r();Uwe=iZn});function aZn(e,r){if(Fl(e))return e;return XH(e,r)?[e]:d3r(Uwe(e))}var VL;var yie=Re(()=>{fg();Bwe();f3r();brt();VL=aZn});function oZn(e){if(typeof e=="string"||KE(e))return e;var r=e+"";return r=="0"&&1/e==-sZn?"-0":r}var sZn=1/0,k3;var eq=Re(()=>{tB();k3=oZn});function lZn(e,r){r=VL(r,e);var i=0,a=r.length;while(e!=null&&i{yie();eq();HL=lZn});function cZn(e,r,i){var a=e==null?void 0:HL(e,r);return a===void 0?i:a}var p3r;var g3r=Re(()=>{vie();p3r=cZn});function uZn(e,r){var i=-1,a=r.length,o=e.length;while(++i{tq=uZn});function hZn(e){return Fl(e)||AC(e)||!!(m3r&&e&&e[m3r])}var m3r,b3r;var y3r=Re(()=>{eB();WH();fg();m3r=Zm?Zm.isConcatSpreadable:void 0;b3r=hZn});function v3r(e,r,i,a,o){var l=-1,h=e.length;i||(i=b3r),o||(o=[]);while(++l0&&i(d))if(r>1)v3r(d,r-1,i,a,o);else tq(o,d);else if(!a)o[o.length]=d}return o}var rq;var zwe=Re(()=>{Gwe();y3r();rq=v3r});function dZn(e){var r=e==null?0:e.length;return r?rq(e,1):[]}var eT;var yrt=Re(()=>{zwe();eT=dZn});function fZn(e){return Twe(kwe(e,void 0,eT),e+"")}var _3r;var E3r=Re(()=>{yrt();urt();ort();_3r=fZn});var pZn,nq;var Vwe=Re(()=>{prt();pZn=Dwe(Object.getPrototypeOf,Object),nq=pZn});function _Zn(e){if(!N0(e)||mv(e)!=gZn)return!1;var r=nq(e);if(r===null)return!0;var i=yZn.call(r,"constructor")&&r.constructor;return typeof i=="function"&&i instanceof i&&w3r.call(i)==vZn}var gZn="[object Object]",mZn,bZn,w3r,yZn,vZn,S3r;var T3r=Re(()=>{AL();Vwe();kC();mZn=Function.prototype,bZn=Object.prototype,w3r=mZn.toString,yZn=bZn.hasOwnProperty,vZn=w3r.call(Object);S3r=_Zn});function RZn(e){return AZn.test(e)}var EZn="\\ud800-\\udfff",wZn="\\u0300-\\u036f",SZn="\\ufe20-\\ufe2f",TZn="\\u20d0-\\u20ff",xZn,CZn="\\ufe0e\\ufe0f",kZn="\\u200d",AZn,x3r;var C3r=Re(()=>{xZn=wZn+SZn+TZn,AZn=RegExp("["+kZn+EZn+xZn+CZn+"]");x3r=RZn});function IZn(e,r,i,a){var o=-1,l=e==null?0:e.length;if(a&&l)i=e[++o];while(++o{k3r=IZn});function OZn(){this.__data__=new UL,this.size=0}var R3r;var I3r=Re(()=>{mie();R3r=OZn});function NZn(e){var r=this.__data__,i=r.delete(e);return this.size=r.size,i}var O3r;var N3r=Re(()=>{O3r=NZn});function LZn(e){return this.__data__.get(e)}var L3r;var M3r=Re(()=>{L3r=LZn});function MZn(e){return this.__data__.has(e)}var D3r;var P3r=Re(()=>{D3r=MZn});function PZn(e,r){var i=this.__data__;if(i instanceof UL){var a=i.__data__;if(!GL||a.length{mie();Fwe();$we();B3r=PZn});function iq(e){var r=this.__data__=new UL(e);this.size=r.size}var A3;var _ie=Re(()=>{mie();I3r();N3r();M3r();P3r();F3r();iq.prototype.clear=R3r;iq.prototype.delete=O3r;iq.prototype.get=L3r;iq.prototype.has=D3r;iq.prototype.set=B3r;A3=iq});function BZn(e,r){return e&&T3(r,Up(r),e)}var $3r;var U3r=Re(()=>{qH();jR();$3r=BZn});function FZn(e,r){return e&&T3(r,e2(r),e)}var G3r;var z3r=Re(()=>{qH();FL();G3r=FZn});var qwe={};VN(qwe,{default:()=>Eie});function UZn(e,r){if(r)return e.slice();var i=e.length,a=q3r?q3r(i):new e.constructor(i);return e.copy(a),a}var Y3r,V3r,$Zn,H3r,q3r,Eie;var vrt=Re(()=>{XS();Y3r=typeof qwe=="object"&&qwe&&!qwe.nodeType&&qwe,V3r=Y3r&&typeof Hwe=="object"&&Hwe&&!Hwe.nodeType&&Hwe,$Zn=V3r&&V3r.exports===Y3r,H3r=$Zn?$p.Buffer:void 0,q3r=H3r?H3r.allocUnsafe:void 0;Eie=UZn});function GZn(e,r){var i=-1,a=e==null?0:e.length,o=0,l=[];while(++i{Ywe=GZn});function zZn(){return[]}var Wwe;var Ert=Re(()=>{Wwe=zZn});var VZn,HZn,W3r,qZn,aq;var jwe=Re(()=>{_rt();Ert();VZn=Object.prototype,HZn=VZn.propertyIsEnumerable,W3r=Object.getOwnPropertySymbols,qZn=!W3r?Wwe:function(e){if(e==null)return[];return e=Object(e),Ywe(W3r(e),function(r){return HZn.call(e,r)})},aq=qZn});function YZn(e,r){return T3(e,aq(e),r)}var j3r;var K3r=Re(()=>{qH();jwe();j3r=YZn});var WZn,jZn,Kwe;var wrt=Re(()=>{Gwe();Vwe();jwe();Ert();WZn=Object.getOwnPropertySymbols,jZn=!WZn?Wwe:function(e){var r=[];while(e)tq(r,aq(e)),e=nq(e);return r},Kwe=jZn});function KZn(e,r){return T3(e,Kwe(e),r)}var X3r;var Q3r=Re(()=>{qH();wrt();X3r=KZn});function XZn(e,r,i){var a=r(e);return Fl(e)?a:tq(a,i(e))}var Xwe;var Srt=Re(()=>{Gwe();fg();Xwe=XZn});function QZn(e){return Xwe(e,Up,aq)}var wie;var Trt=Re(()=>{Srt();jwe();jR();wie=QZn});function ZZn(e){return Xwe(e,e2,Kwe)}var Z3r;var J3r=Re(()=>{Srt();wrt();FL();Z3r=ZZn});var JZn,Qwe;var eAr=Re(()=>{IL();XS();JZn=Z_($p,"DataView"),Qwe=JZn});var eJn,Zwe;var tAr=Re(()=>{IL();XS();eJn=Z_($p,"Promise"),Zwe=eJn});var tJn,qL;var xrt=Re(()=>{IL();XS();tJn=Z_($p,"Set"),qL=tJn});var rAr="[object Map]",rJn="[object Object]",nAr="[object Promise]",iAr="[object Set]",aAr="[object WeakMap]",sAr="[object DataView]",nJn,iJn,aJn,sJn,oJn,iB,XE;var aB=Re(()=>{eAr();Fwe();tAr();xrt();G4r();AL();nrt();nJn=YR(Qwe),iJn=YR(GL),aJn=YR(Zwe),sJn=YR(qL),oJn=YR(wwe),iB=mv;if(Qwe&&iB(new Qwe(new ArrayBuffer(1)))!=sAr||GL&&iB(new GL)!=rAr||Zwe&&iB(Zwe.resolve())!=nAr||qL&&iB(new qL)!=iAr||wwe&&iB(new wwe)!=aAr)iB=function(e){var r=mv(e),i=r==rJn?e.constructor:void 0,a=i?YR(i):"";if(a)switch(a){case nJn:return sAr;case iJn:return rAr;case aJn:return nAr;case sJn:return iAr;case oJn:return aAr}return r};XE=iB});function uJn(e){var r=e.length,i=new e.constructor(r);if(r&&typeof e[0]=="string"&&cJn.call(e,"index"))i.index=e.index,i.input=e.input;return i}var lJn,cJn,oAr;var lAr=Re(()=>{lJn=Object.prototype,cJn=lJn.hasOwnProperty;oAr=uJn});var hJn,sq;var Crt=Re(()=>{XS();hJn=$p.Uint8Array,sq=hJn});function dJn(e){var r=new e.constructor(e.byteLength);return new sq(r).set(new sq(e)),r}var oq;var Jwe=Re(()=>{Crt();oq=dJn});function fJn(e,r){var i=r?oq(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var cAr;var uAr=Re(()=>{Jwe();cAr=fJn});function gJn(e){var r=new e.constructor(e.source,pJn.exec(e));return r.lastIndex=e.lastIndex,r}var pJn,hAr;var dAr=Re(()=>{pJn=/\w*$/;hAr=gJn});function mJn(e){return pAr?Object(pAr.call(e)):{}}var fAr,pAr,gAr;var mAr=Re(()=>{eB();fAr=Zm?Zm.prototype:void 0,pAr=fAr?fAr.valueOf:void 0;gAr=mJn});function bJn(e,r){var i=r?oq(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var eSe;var krt=Re(()=>{Jwe();eSe=bJn});function BJn(e,r,i){var a=e.constructor;switch(r){case CJn:return oq(e);case yJn:case vJn:return new a(+e);case kJn:return cAr(e,i);case AJn:case RJn:case IJn:case OJn:case NJn:case LJn:case MJn:case DJn:case PJn:return eSe(e,i);case _Jn:return new a;case EJn:case TJn:return new a(e);case wJn:return hAr(e);case SJn:return new a;case xJn:return gAr(e)}}var yJn="[object Boolean]",vJn="[object Date]",_Jn="[object Map]",EJn="[object Number]",wJn="[object RegExp]",SJn="[object Set]",TJn="[object String]",xJn="[object Symbol]",CJn="[object ArrayBuffer]",kJn="[object DataView]",AJn="[object Float32Array]",RJn="[object Float64Array]",IJn="[object Int8Array]",OJn="[object Int16Array]",NJn="[object Int32Array]",LJn="[object Uint8Array]",MJn="[object Uint8ClampedArray]",DJn="[object Uint16Array]",PJn="[object Uint32Array]",bAr;var yAr=Re(()=>{Jwe();uAr();dAr();mAr();krt();bAr=BJn});function FJn(e){return typeof e.constructor=="function"&&!DL(e)?V4r(nq(e)):{}}var tSe;var Art=Re(()=>{H4r();Vwe();uie();tSe=FJn});function UJn(e){return N0(e)&&XE(e)==$Jn}var $Jn="[object Map]",vAr;var _Ar=Re(()=>{aB();kC();vAr=UJn});var EAr,GJn,wAr;var SAr=Re(()=>{_Ar();hie();Lwe();EAr=C3&&C3.isMap,GJn=EAr?PL(EAr):vAr,wAr=GJn});function VJn(e){return N0(e)&&XE(e)==zJn}var zJn="[object Set]",TAr;var xAr=Re(()=>{aB();kC();TAr=VJn});var CAr,HJn,kAr;var AAr=Re(()=>{xAr();hie();Lwe();CAr=C3&&C3.isSet,HJn=CAr?PL(CAr):TAr,kAr=HJn});function rSe(e,r,i,a,o,l){var h,d=r&qJn,p=r&YJn,m=r&WJn;if(i)h=o?i(e,a,o,l):i(e);if(h!==void 0)return h;if(!vf(e))return e;var y=Fl(e);if(y){if(h=oAr(e),!d)return Swe(e,h)}else{var v=XE(e),w=v==IAr||v==ZJn;if(JS(e))return Eie(e,d);if(v==OAr||v==RAr||w&&!o){if(h=p||w?{}:tSe(e),!d)return p?X3r(e,G3r(h,e)):j3r(e,$3r(h,e))}else{if(!Td[v])return o?e:{};h=bAr(e,v,d)}}l||(l=new A3);var T=l.get(e);if(T)return T;if(l.set(e,h),kAr(e))e.forEach(function(A){h.add(rSe(A,r,i,A,e,l))});else if(wAr(e))e.forEach(function(A,R){h.set(R,rSe(A,r,i,R,e,l))});var x=m?p?Z3r:wie:p?e2:Up,k=y?void 0:x(e);return xwe(k||e,function(A,R){if(k)R=A,A=e[R];LL(h,R,rSe(A,r,i,R,e,l))}),h}var qJn=1,YJn=2,WJn=4,RAr="[object Arguments]",jJn="[object Array]",KJn="[object Boolean]",XJn="[object Date]",QJn="[object Error]",IAr="[object Function]",ZJn="[object GeneratorFunction]",JJn="[object Map]",eei="[object Number]",OAr="[object Object]",tei="[object RegExp]",rei="[object Set]",nei="[object String]",iei="[object Symbol]",aei="[object WeakMap]",sei="[object ArrayBuffer]",oei="[object DataView]",lei="[object Float32Array]",cei="[object Float64Array]",uei="[object Int8Array]",hei="[object Int16Array]",dei="[object Int32Array]",fei="[object Uint8Array]",pei="[object Uint8ClampedArray]",gei="[object Uint16Array]",mei="[object Uint32Array]",Td,NAr;var LAr=Re(()=>{_ie();lrt();oie();U3r();z3r();vrt();irt();K3r();Q3r();Trt();J3r();aB();lAr();yAr();Art();fg();jH();SAr();QS();AAr();jR();FL();Td={};Td[RAr]=Td[jJn]=Td[sei]=Td[oei]=Td[KJn]=Td[XJn]=Td[lei]=Td[cei]=Td[uei]=Td[hei]=Td[dei]=Td[JJn]=Td[eei]=Td[OAr]=Td[tei]=Td[rei]=Td[nei]=Td[iei]=Td[fei]=Td[pei]=Td[gei]=Td[mei]=!0;Td[QJn]=Td[IAr]=Td[aei]=!1;NAr=rSe});function vei(e){return NAr(e,bei|yei)}var bei=1,yei=4,Rrt;var MAr=Re(()=>{LAr();Rrt=vei});function Eei(e){return this.__data__.set(e,_ei),this}var _ei="__lodash_hash_undefined__",DAr;var PAr=Re(()=>{DAr=Eei});function wei(e){return this.__data__.has(e)}var BAr;var FAr=Re(()=>{BAr=wei});function nSe(e){var r=-1,i=e==null?0:e.length;this.__data__=new nB;while(++r{$we();PAr();FAr();nSe.prototype.add=nSe.prototype.push=DAr;nSe.prototype.has=BAr;iSe=nSe});function Sei(e,r){var i=-1,a=e==null?0:e.length;while(++i{$Ar=Sei});function Tei(e,r){return e.has(r)}var aSe;var Ort=Re(()=>{aSe=Tei});function kei(e,r,i,a,o,l){var h=i&xei,d=e.length,p=r.length;if(d!=p&&!(h&&p>d))return!1;var m=l.get(e),y=l.get(r);if(m&&y)return m==r&&y==e;var v=-1,w=!0,T=i&Cei?new iSe:void 0;l.set(e,r),l.set(r,e);while(++v{Irt();UAr();Ort();sSe=kei});function Aei(e){var r=-1,i=Array(e.size);return e.forEach(function(a,o){i[++r]=[o,a]}),i}var GAr;var zAr=Re(()=>{GAr=Aei});function Rei(e){var r=-1,i=Array(e.size);return e.forEach(function(a){i[++r]=a}),i}var lq;var oSe=Re(()=>{lq=Rei});function Vei(e,r,i,a,o,l,h){switch(i){case zei:if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)return!1;e=e.buffer,r=r.buffer;case Gei:if(e.byteLength!=r.byteLength||!l(new sq(e),new sq(r)))return!1;return!0;case Nei:case Lei:case Pei:return ZS(+e,+r);case Mei:return e.name==r.name&&e.message==r.message;case Bei:case $ei:return e==r+"";case Dei:var d=GAr;case Fei:var p=a&Iei;if(d||(d=lq),e.size!=r.size&&!p)return!1;var m=h.get(e);if(m)return m==r;a|=Oei,h.set(e,r);var y=sSe(d(e),d(r),a,o,l,h);return h.delete(e),y;case Uei:if(Lrt)return Lrt.call(e)==Lrt.call(r)}return!1}var Iei=1,Oei=2,Nei="[object Boolean]",Lei="[object Date]",Mei="[object Error]",Dei="[object Map]",Pei="[object Number]",Bei="[object RegExp]",Fei="[object Set]",$ei="[object String]",Uei="[object Symbol]",Gei="[object ArrayBuffer]",zei="[object DataView]",VAr,Lrt,HAr;var qAr=Re(()=>{eB();Crt();rB();Nrt();zAr();oSe();VAr=Zm?Zm.prototype:void 0,Lrt=VAr?VAr.valueOf:void 0;HAr=Vei});function Wei(e,r,i,a,o,l){var h=i&Hei,d=wie(e),p=d.length,m=wie(r),y=m.length;if(p!=y&&!h)return!1;var v=p;while(v--){var w=d[v];if(!(h?w in r:Yei.call(r,w)))return!1}var T=l.get(e),x=l.get(r);if(T&&x)return T==r&&x==e;var k=!0;l.set(e,r),l.set(r,e);var A=h;while(++v{Trt();qei=Object.prototype,Yei=qei.hasOwnProperty;YAr=Wei});function Xei(e,r,i,a,o,l){var h=Fl(e),d=Fl(r),p=h?KAr:XE(e),m=d?KAr:XE(r);p=p==jAr?lSe:p,m=m==jAr?lSe:m;var y=p==lSe,v=m==lSe,w=p==m;if(w&&JS(e)){if(!JS(r))return!1;h=!0,y=!1}if(w&&!y)return l||(l=new A3),h||BL(e)?sSe(e,r,i,a,o,l):HAr(e,r,p,i,a,o,l);if(!(i&jei)){var T=y&&XAr.call(e,"__wrapped__"),x=v&&XAr.call(r,"__wrapped__");if(T||x){var k=T?e.value():e,A=x?r.value():r;return l||(l=new A3),o(k,A,i,a,l)}}if(!w)return!1;return l||(l=new A3),YAr(e,r,i,a,o,l)}var jei=1,jAr="[object Arguments]",KAr="[object Array]",lSe="[object Object]",Kei,XAr,QAr;var ZAr=Re(()=>{_ie();Nrt();qAr();WAr();aB();fg();jH();fie();Kei=Object.prototype,XAr=Kei.hasOwnProperty;QAr=Xei});function JAr(e,r,i,a,o){if(e===r)return!0;if(e==null||r==null||!N0(e)&&!N0(r))return e!==e&&r!==r;return QAr(e,r,i,a,JAr,o)}var cSe;var Mrt=Re(()=>{ZAr();kC();cSe=JAr});function Jei(e,r,i,a){var o=i.length,l=o,h=!a;if(e==null)return!l;e=Object(e);while(o--){var d=i[o];if(h&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++o{_ie();Mrt();e5r=Jei});function eti(e){return e===e&&!vf(e)}var uSe;var Drt=Re(()=>{QS();uSe=eti});function tti(e){var r=Up(e),i=r.length;while(i--){var a=r[i],o=e[a];r[i]=[a,o,uSe(o)]}return r}var r5r;var n5r=Re(()=>{Drt();jR();r5r=tti});function rti(e,r){return function(i){if(i==null)return!1;return i[e]===r&&(r!==void 0||(e in Object(i)))}}var hSe;var Prt=Re(()=>{hSe=rti});function nti(e){var r=r5r(e);if(r.length==1&&r[0][2])return hSe(r[0][0],r[0][1]);return function(i){return i===e||e5r(i,e,r)}}var i5r;var a5r=Re(()=>{t5r();n5r();Prt();i5r=nti});function iti(e,r){return e!=null&&r in Object(e)}var s5r;var o5r=Re(()=>{s5r=iti});function ati(e,r,i){r=VL(r,e);var a=-1,o=r.length,l=!1;while(++a{yie();WH();fg();aie();Awe();eq();dSe=ati});function sti(e,r){return e!=null&&dSe(e,r,s5r)}var fSe;var Frt=Re(()=>{o5r();Brt();fSe=sti});function cti(e,r){if(XH(e)&&uSe(r))return hSe(k3(e),r);return function(i){var a=p3r(i,e);return a===void 0&&a===r?fSe(i,e):cSe(r,a,oti|lti)}}var oti=1,lti=2,l5r;var c5r=Re(()=>{Mrt();g3r();Frt();Bwe();Drt();Prt();eq();l5r=cti});function uti(e){return function(r){return r==null?void 0:r[e]}}var pSe;var $rt=Re(()=>{pSe=uti});function hti(e){return function(r){return HL(r,e)}}var u5r;var h5r=Re(()=>{vie();u5r=hti});function dti(e){return XH(e)?pSe(k3(e)):u5r(e)}var d5r;var f5r=Re(()=>{$rt();h5r();Bwe();eq();d5r=dti});function fti(e){if(typeof e=="function")return e;if(e==null)return Q_;if(typeof e=="object")return Fl(e)?l5r(e[0],e[1]):i5r(e);return d5r(e)}var ry;var XR=Re(()=>{a5r();c5r();RL();fg();f5r();ry=fti});function pti(e){return function(r,i,a){var o=-1,l=Object(r),h=a(r),d=h.length;while(d--){var p=h[e?d:++o];if(i(l[p],p,l)===!1)break}return r}}var p5r;var g5r=Re(()=>{p5r=pti});var gti,cq;var gSe=Re(()=>{g5r();gti=p5r(),cq=gti});function mti(e,r){return e&&cq(e,r,Up)}var uq;var mSe=Re(()=>{gSe();jR();uq=mti});function bti(e,r){return function(i,a){if(i==null)return i;if(!Jm(i))return e(i,a);var o=i.length,l=r?o:-1,h=Object(i);while(r?l--:++l{x3();m5r=bti});var yti,YL;var Sie=Re(()=>{mSe();b5r();yti=m5r(uq),YL=yti});var vti=function(){return $p.Date.now()},bSe;var y5r=Re(()=>{XS();bSe=vti});var v5r,_ti,Eti,Urt;var _5r=Re(()=>{lie();rB();cie();FL();v5r=Object.prototype,_ti=v5r.hasOwnProperty,Eti=ML(function(e,r){e=Object(e);var i=-1,a=r.length,o=a>2?r[2]:void 0;if(o&&WR(r[0],r[1],o))a=1;while(++i{sie();rB();Tie=wti});function Sti(e){return N0(e)&&Jm(e)}var ySe;var zrt=Re(()=>{x3();kC();ySe=Sti});function Tti(e,r){if(r==="constructor"&&typeof e[r]==="function")return;if(r=="__proto__")return;return e[r]}var xie;var Vrt=Re(()=>{xie=Tti});function xti(e){return T3(e,e2(e))}var E5r;var w5r=Re(()=>{qH();FL();E5r=xti});function Cti(e,r,i,a,o,l,h){var d=xie(e,i),p=xie(r,i),m=h.get(p);if(m){Tie(e,i,m);return}var y=l?l(d,p,i+"",e,r,h):void 0,v=y===void 0;if(v){var w=Fl(p),T=!w&&JS(p),x=!w&&!T&&BL(p);if(y=p,w||T||x)if(Fl(d))y=d;else if(ySe(d))y=Swe(d);else if(T)v=!1,y=Eie(p,!0);else if(x)v=!1,y=eSe(p,!0);else y=[];else if(S3r(p)||AC(p)){if(y=d,AC(d))y=E5r(d);else if(!vf(d)||S3(d))y=tSe(p)}else v=!1}if(v)h.set(p,y),o(y,p,a,l,h),h.delete(p);Tie(e,i,y)}var S5r;var T5r=Re(()=>{Grt();vrt();krt();irt();Art();WH();fg();zrt();jH();iie();QS();T3r();fie();Vrt();w5r();S5r=Cti});function x5r(e,r,i,a,o){if(e===r)return;cq(r,function(l,h){if(o||(o=new A3),vf(l))S5r(e,r,h,i,x5r,a,o);else{var d=a?a(xie(e,h),l,h+"",e,r,o):void 0;if(d===void 0)d=l;Tie(e,h,d)}},e2)}var C5r;var k5r=Re(()=>{_ie();Grt();gSe();T5r();QS();FL();Vrt();C5r=x5r});function kti(e,r,i){var a=-1,o=e==null?0:e.length;while(++a{A5r=kti});function Ati(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}var WL;var I5r=Re(()=>{WL=Ati});function Rti(e){return typeof e=="function"?e:Q_}var hq;var vSe=Re(()=>{RL();hq=Rti});function Iti(e,r){var i=Fl(e)?xwe:YL;return i(e,hq(r))}var Sn;var Hrt=Re(()=>{lrt();Sie();vSe();fg();Sn=Iti});var O5r=Re(()=>{Hrt()});function Oti(e,r){var i=[];return YL(e,function(a,o,l){if(r(a,o,l))i.push(a)}),i}var N5r;var L5r=Re(()=>{Sie();N5r=Oti});function Nti(e,r){var i=Fl(e)?Ywe:N5r;return i(e,ry(r,3))}var bv;var M5r=Re(()=>{_rt();L5r();XR();fg();bv=Nti});function Lti(e){return function(r,i,a){var o=Object(r);if(!Jm(r)){var l=ry(i,3);r=Up(r),i=function(d){return l(o[d],d,o)}}var h=e(r,i,a);return h>-1?o[l?r[h]:h]:void 0}}var D5r;var P5r=Re(()=>{XR();x3();jR();D5r=Lti});function Dti(e,r,i){var a=e==null?0:e.length;if(!a)return-1;var o=i==null?0:O4r(i);if(o<0)o=Mti(a+o,0);return Cwe(e,ry(r,3),o)}var Mti,B5r;var F5r=Re(()=>{crt();XR();N4r();Mti=Math.max;B5r=Dti});var Pti,dq;var $5r=Re(()=>{P5r();F5r();Pti=D5r(B5r),dq=Pti});function Bti(e,r){var i=-1,a=Jm(e)?Array(e.length):[];return YL(e,function(o,l,h){a[++i]=r(o,l,h)}),a}var _Se;var qrt=Re(()=>{Sie();x3();_Se=Bti});function Fti(e,r){var i=Fl(e)?w3:_Se;return i(e,ry(r,3))}var Eh;var U5r=Re(()=>{nie();XR();qrt();fg();Eh=Fti});function $ti(e,r){return e==null?e:cq(e,hq(r),e2)}var Yrt;var G5r=Re(()=>{gSe();vSe();FL();Yrt=$ti});function Uti(e,r){return e&&uq(e,hq(r))}var Wrt;var z5r=Re(()=>{mSe();vSe();Wrt=Uti});function Gti(e,r){return e>r}var V5r;var H5r=Re(()=>{V5r=Gti});function Hti(e,r){return e!=null&&Vti.call(e,r)}var zti,Vti,q5r;var Y5r=Re(()=>{zti=Object.prototype,Vti=zti.hasOwnProperty;q5r=Hti});function qti(e,r){return e!=null&&dSe(e,r,q5r)}var Cie;var W5r=Re(()=>{Y5r();Brt();Cie=qti});function Wti(e){return typeof e=="string"||!Fl(e)&&N0(e)&&mv(e)==Yti}var Yti="[object String]",j5r;var K5r=Re(()=>{AL();fg();kC();j5r=Wti});function jti(e,r){return w3(r,function(i){return e[i]})}var X5r;var Q5r=Re(()=>{nie();X5r=jti});function Kti(e){return e==null?[]:X5r(e,Up(e))}var QE;var Z5r=Re(()=>{Q5r();jR();QE=Kti});function eri(e){if(e==null)return!0;if(Jm(e)&&(Fl(e)||typeof e=="string"||typeof e.splice=="function"||JS(e)||BL(e)||AC(e)))return!e.length;var r=XE(e);if(r==Xti||r==Qti)return!e.size;if(DL(e))return!KH(e).length;for(var i in e)if(Jti.call(e,i))return!1;return!0}var Xti="[object Map]",Qti="[object Set]",Zti,Jti,ESe;var J5r=Re(()=>{Pwe();aB();WH();fg();x3();jH();uie();fie();Zti=Object.prototype,Jti=Zti.hasOwnProperty;ESe=eri});function tri(e){return e===void 0}var Gp;var eRr=Re(()=>{Gp=tri});function rri(e,r){return e{wSe=rri});function nri(e,r){var i={};return r=ry(r,3),uq(e,function(a,o,l){NL(i,o,r(a,o,l))}),i}var sB;var tRr=Re(()=>{sie();mSe();XR();sB=nri});function iri(e,r,i){var a=-1,o=e.length;while(++a{tB();fq=iri});function ari(e){return e&&e.length?fq(e,Q_,V5r):void 0}var t2;var rRr=Re(()=>{SSe();H5r();RL();t2=ari});var sri,pq;var nRr=Re(()=>{k5r();ckr();sri=lkr(function(e,r,i){C5r(e,r,i)}),pq=sri});function ori(e){return e&&e.length?fq(e,Q_,wSe):void 0}var QR;var iRr=Re(()=>{SSe();jrt();RL();QR=ori});function lri(e,r){return e&&e.length?fq(e,ry(r,2),wSe):void 0}var oB;var aRr=Re(()=>{SSe();XR();jrt();oB=lri});function cri(e,r,i,a){if(!vf(e))return e;r=VL(r,e);var o=-1,l=r.length,h=l-1,d=e;while(d!=null&&++o{oie();yie();aie();QS();eq();sRr=cri});function uri(e,r,i){var a=-1,o=r.length,l={};while(++a{vie();oRr();yie();lRr=uri});function hri(e,r){var i=e.length;e.sort(r);while(i--)e[i]=e[i].value;return e}var uRr;var hRr=Re(()=>{uRr=hri});function dri(e,r){if(e!==r){var i=e!==void 0,a=e===null,o=e===e,l=KE(e),h=r!==void 0,d=r===null,p=r===r,m=KE(r);if(!d&&!m&&!l&&e>r||l&&h&&p&&!d&&!m||a&&h&&p||!i&&p||!o)return 1;if(!a&&!l&&!m&&e{tB();dRr=dri});function fri(e,r,i){var a=-1,o=e.criteria,l=r.criteria,h=o.length,d=i.length;while(++a=d)return p;var m=i[a];return p*(m=="desc"?-1:1)}}return e.index-r.index}var pRr;var gRr=Re(()=>{fRr();pRr=fri});function pri(e,r,i){if(r.length)r=w3(r,function(l){if(Fl(l))return function(h){return HL(h,l.length===1?l[0]:l)};return l});else r=[Q_];var a=-1;r=w3(r,PL(ry));var o=_Se(e,function(l,h,d){var p=w3(r,function(m){return m(l)});return{criteria:p,index:++a,value:l}});return uRr(o,function(l,h){return pRr(l,h,i)})}var mRr;var bRr=Re(()=>{nie();vie();XR();qrt();hRr();hie();gRr();RL();fg();mRr=pri});var gri,yRr;var vRr=Re(()=>{$rt();gri=pSe("length"),yRr=gri});function kri(e){var r=_Rr.lastIndex=0;while(_Rr.test(e))++r;return r}var ERr="\\ud800-\\udfff",mri="\\u0300-\\u036f",bri="\\ufe20-\\ufe2f",yri="\\u20d0-\\u20ff",vri,_ri="\\ufe0e\\ufe0f",Eri,Krt,Xrt="\\ud83c[\\udffb-\\udfff]",wri,wRr,SRr="(?:\\ud83c[\\udde6-\\uddff]){2}",TRr="[\\ud800-\\udbff][\\udc00-\\udfff]",Sri="\\u200d",xRr,CRr,Tri,xri,Cri,_Rr,kRr;var ARr=Re(()=>{vri=mri+bri+yri,Eri="["+ERr+"]",Krt="["+vri+"]",wri="(?:"+Krt+"|"+Xrt+")",wRr="[^"+ERr+"]",xRr=wri+"?",CRr="["+_ri+"]?",Tri="(?:"+Sri+"(?:"+[wRr,SRr,TRr].join("|")+")"+CRr+xRr+")*",xri=CRr+xRr+Tri,Cri="(?:"+[wRr+Krt+"?",Krt,SRr,TRr,Eri].join("|")+")",_Rr=RegExp(Xrt+"(?="+Xrt+")|"+Cri+xri,"g");kRr=kri});function Ari(e){return x3r(e)?kRr(e):yRr(e)}var RRr;var IRr=Re(()=>{vRr();C3r();ARr();RRr=Ari});function Rri(e,r){return lRr(e,r,function(i,a){return fSe(e,a)})}var ORr;var NRr=Re(()=>{cRr();Frt();ORr=Rri});var Iri,lB;var LRr=Re(()=>{NRr();E3r();Iri=_3r(function(e,r){return e==null?{}:ORr(e,r)}),lB=Iri});function Lri(e,r,i,a){var o=-1,l=Nri(Ori((r-e)/(i||1)),0),h=Array(l);while(l--)h[a?l:++o]=e,e+=i;return h}var Ori,Nri,MRr;var DRr=Re(()=>{Ori=Math.ceil,Nri=Math.max;MRr=Lri});function Mri(e){return function(r,i,a){if(a&&typeof a!="number"&&WR(r,i,a))i=a=void 0;if(r=VH(r),i===void 0)i=r,r=0;else i=VH(i);return a=a===void 0?r{DRr();cie();rrt();PRr=Mri});var Dri,tT;var FRr=Re(()=>{BRr();Dri=PRr(),tT=Dri});function Pri(e,r,i,a,o){return o(e,function(l,h,d){i=a?(a=!1,l):r(i,l,h,d)}),i}var $Rr;var URr=Re(()=>{$Rr=Pri});function Bri(e,r,i){var a=Fl(e)?k3r:$Rr,o=arguments.length<3;return a(e,ry(r,4),i,o,YL)}var R3;var GRr=Re(()=>{A3r();Sie();XR();URr();fg();R3=Bri});function Uri(e){if(e==null)return 0;if(Jm(e))return j5r(e)?RRr(e):e.length;var r=XE(e);if(r==Fri||r==$ri)return e.size;return KH(e).length}var Fri="[object Map]",$ri="[object Set]",Qrt;var zRr=Re(()=>{Pwe();aB();x3();K5r();IRr();Qrt=Uri});var Gri,I3;var VRr=Re(()=>{zwe();bRr();lie();cie();Gri=ML(function(e,r){if(e==null)return[];var i=r.length;if(i>1&&WR(e,r[0],r[1]))r=[];else if(i>2&&WR(r[0],r[1],r[2]))r=[r[0]];return mRr(e,rq(r,1),[])}),I3=Gri});var zri=1/0,Vri,HRr;var qRr=Re(()=>{xrt();j4r();oSe();Vri=!(qL&&1/lq(new qL([,-0]))[1]==zri)?W4r:function(e){return new qL(e)},HRr=Vri});function qri(e,r,i){var a=-1,o=akr,l=e.length,h=!0,d=[],p=d;if(i)h=!1,o=A5r;else if(l>=Hri){var m=r?null:HRr(e);if(m)return lq(m);h=!1,o=aSe,p=new iSe}else p=r?[]:d;e:while(++a{Irt();skr();R5r();Ort();qRr();oSe();YRr=qri});var Yri,Zrt;var jRr=Re(()=>{zwe();lie();WRr();zrt();Yri=ML(function(e){return YRr(rq(e,1,ySe,!0))}),Zrt=Yri});function jri(e){var r=++Wri;return Uwe(e)+r}var Wri=0,cB;var KRr=Re(()=>{brt();cB=jri});function Kri(e,r,i){var a=-1,o=e.length,l=r.length,h={};while(++a{XRr=Kri});function Xri(e,r){return XRr(e||[],r||[],LL)}var TSe;var ZRr=Re(()=>{oie();QRr();TSe=Xri});var wh=Re(()=>{MAr();art();_5r();O5r();M5r();$5r();yrt();Hrt();G5r();z5r();W5r();fg();J5r();iie();eRr();jR();I5r();U5r();tRr();rRr();nRr();iRr();aRr();y5r();LRr();FRr();GRr();zRr();VRr();jRr();KRr();Z5r();ZRr()});class Yh{constructor(e={}){if(this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=J_(void 0),this._defaultEdgeLabelFn=J_(void 0),this._nodes={},this._isCompound)this._parent={},this._children={},this._children[uB]={};this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){if(!S3(e))e=J_(e);return this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Up(this._nodes)}sources(){var e=this;return bv(this.nodes(),function(r){return ESe(e._in[r])})}sinks(){var e=this;return bv(this.nodes(),function(r){return ESe(e._out[r])})}setNodes(e,r){var i=arguments,a=this;return Sn(e,function(o){if(i.length>1)a.setNode(o,r);else a.setNode(o)}),this}setNode(e,r){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){if(arguments.length>1)this._nodes[e]=r;return this}if(this._nodes[e]=arguments.length>1?r:this._defaultNodeLabelFn(e),this._isCompound)this._parent[e]=uB,this._children[e]={},this._children[uB][e]=!0;return this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var r=(i)=>this.removeEdge(this._edgeObjs[i]);if(delete this._nodes[e],this._isCompound)this._removeFromParentsChildList(e),delete this._parent[e],Sn(this.children(e),(i)=>{this.setParent(i)}),delete this._children[e];Sn(Up(this._in[e]),r),delete this._in[e],delete this._preds[e],Sn(Up(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,r){if(!this._isCompound)throw Error("Cannot set parent in a non-compound graph");if(Gp(r))r=uB;else{r+="";for(var i=r;!Gp(i);i=this.parent(i))if(i===e)throw Error("Setting "+r+" as parent of "+e+" would create a cycle");this.setNode(r)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=r,this._children[r][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var r=this._parent[e];if(r!==uB)return r}}children(e){if(Gp(e))e=uB;if(this._isCompound){var r=this._children[e];if(r)return Up(r)}else if(e===uB)return this.nodes();else if(this.hasNode(e))return[]}predecessors(e){var r=this._preds[e];if(r)return Up(r)}successors(e){var r=this._sucs[e];if(r)return Up(r)}neighbors(e){var r=this.predecessors(e);if(r)return Zrt(r,this.successors(e))}isLeaf(e){var r;if(this.isDirected())r=this.successors(e);else r=this.neighbors(e);return r.length===0}filterNodes(e){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Sn(this._nodes,function(l,h){if(e(h))r.setNode(h,l)}),Sn(this._edgeObjs,function(l){if(r.hasNode(l.v)&&r.hasNode(l.w))r.setEdge(l,i.edge(l))});var a={};function o(l){var h=i.parent(l);if(h===void 0||r.hasNode(h))return a[l]=h,h;else if(h in a)return a[h];else return o(h)}if(this._isCompound)Sn(r.nodes(),function(l){r.setParent(l,o(l))});return r}setDefaultEdgeLabel(e){if(!S3(e))e=J_(e);return this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return QE(this._edgeObjs)}setPath(e,r){var i=this,a=arguments;return R3(e,function(o,l){if(a.length>1)i.setEdge(o,l,r);else i.setEdge(o,l);return l}),this}setEdge(){var e,r,i,a,o=!1,l=arguments[0];if(typeof l==="object"&&l!==null&&"v"in l){if(e=l.v,r=l.w,i=l.name,arguments.length===2)a=arguments[1],o=!0}else if(e=l,r=arguments[1],i=arguments[3],arguments.length>2)a=arguments[2],o=!0;if(e=""+e,r=""+r,!Gp(i))i=""+i;var h=kie(this._isDirected,e,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,h)){if(o)this._edgeLabels[h]=a;return this}if(!Gp(i)&&!this._isMultigraph)throw Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(r),this._edgeLabels[h]=o?a:this._defaultEdgeLabelFn(e,r,i);var d=Zri(this._isDirected,e,r,i);return e=d.v,r=d.w,Object.freeze(d),this._edgeObjs[h]=d,eIr(this._preds[r],e),eIr(this._sucs[e],r),this._in[r][h]=d,this._out[e][h]=d,this._edgeCount++,this}edge(e,r,i){var a=arguments.length===1?Jrt(this._isDirected,arguments[0]):kie(this._isDirected,e,r,i);return this._edgeLabels[a]}hasEdge(e,r,i){var a=arguments.length===1?Jrt(this._isDirected,arguments[0]):kie(this._isDirected,e,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,a)}removeEdge(e,r,i){var a=arguments.length===1?Jrt(this._isDirected,arguments[0]):kie(this._isDirected,e,r,i),o=this._edgeObjs[a];if(o)e=o.v,r=o.w,delete this._edgeLabels[a],delete this._edgeObjs[a],tIr(this._preds[r],e),tIr(this._sucs[e],r),delete this._in[r][a],delete this._out[e][a],this._edgeCount--;return this}inEdges(e,r){var i=this._in[e];if(i){var a=QE(i);if(!r)return a;return bv(a,function(o){return o.v===r})}}outEdges(e,r){var i=this._out[e];if(i){var a=QE(i);if(!r)return a;return bv(a,function(o){return o.w===r})}}nodeEdges(e,r){var i=this.inEdges(e,r);if(i)return i.concat(this.outEdges(e,r))}}function eIr(e,r){if(e[r])e[r]++;else e[r]=1}function tIr(e,r){if(!--e[r])delete e[r]}function kie(e,r,i,a){var o=""+r,l=""+i;if(!e&&o>l){var h=o;o=l,l=h}return o+JRr+l+JRr+(Gp(a)?Qri:a)}function Zri(e,r,i,a){var o=""+r,l=""+i;if(!e&&o>l){var h=o;o=l,l=h}var d={v:o,w:l};if(a)d.name=a;return d}function Jrt(e,r){return kie(e,r.v,r.w,r.name)}var Qri="\x00",uB="\x00",JRr="\x01";var ent=Re(()=>{wh();Yh.prototype._nodeCount=0;Yh.prototype._edgeCount=0});var rT=Re(()=>{ent()});function tnt(){if(typeof globalThis>"u")return;return globalThis}function eni(){return Boolean(tnt()?.mermaidCaptureSizes)}function rIr(){if(typeof location>"u")return"browser-dev";return`${location.pathname}${location.search}`}function nIr(e,r){let i=tnt();if(!i)return;let a=r.node(),l=((a&&"ownerSVGElement"in a?a.ownerSVGElement:null)??a)?.id??"(unknown)";i.mermaidCapturedSizes??=[];let h={svgId:l,sizes:e};i.mermaidCapturedSizes.push(h),i.mermaidLastCapturedSizes=h}function rnt(e,r){let i=[];for(let a of r.nodes){if(a.isGroup)continue;i.push({id:a.id,width:a.width??0,height:a.height??0})}if(i.length===0)return;nIr({metadata:{captureVersion:Jri,capturedAt:new Date().toISOString(),capturedFrom:rIr()},nodes:i},e)}var Jri=1;var iIr=Re(()=>{Ja();I(tnt,"getCaptureGlobal");I(eni,"shouldCaptureSizes");I(rIr,"capturedFromLocation");I(nIr,"emitCapturedSizes");I(rnt,"captureNodeSizes")});function CSe(e,{edgePathsClass:r="edges edgePaths"}={}){let i=e.insert("g").attr("class","root"),a=i.insert("g").attr("class","clusters"),o=i.insert("g").attr("class",r),l=i.insert("g").attr("class","edgeLabels"),h=i.insert("g").attr("class","nodes");return{clusters:a,edgePaths:o,edgeLabels:l,nodes:h,rootGroups:i}}async function sIr(e,r,i){if(r.label){let{shapeSvg:a,bbox:o}=await ss(e,i===void 0?r:{...r,width:i});r.labelBBox={width:o.width,height:o.height},a.remove()}else r.labelBBox={width:0,height:0}}async function kSe(e,r,i){let a=await v3(e,r,i),o=a.node()?.getBBox()??{width:0,height:0};return r.width=o.width,r.height=o.height,a}function oIr(e,r,i){let a=e,o=new Set;while(a){if(a.dir)return a.dir;if(!a.parentId||o.has(a.parentId))break;o.add(a.parentId),a=r.get(a.parentId)}return i}async function lIr(e,r,i={}){let a=new Yh({multigraph:!0,compound:!0}),o=[...r.edges],l=Ar(),h=CSe(e),{edgeLabels:d,nodes:p}=h,m=new Map,y=new Map(r.nodes.map((T)=>[T.id,T])),v=r.direction,w=e.node()!=null;await Promise.all(r.nodes.map(async(T)=>{if(T.isGroup){if(w){let x=i.unwrapGroupLabels&&T.labelType!=="markdown";await sIr(p,T,x?Number.POSITIVE_INFINITY:void 0)}a.setNode(T.id,{...T})}else{if(w){let x=await kSe(p,T,{config:l,dir:oIr(T,y,v)});m.set(T.id,x)}a.setNode(T.id,{...T})}}));for(let T of o){if(w&&Xtt(T))await E3(d,T);if(a.setEdge(T.start,T.end,{...T},T.id),!r.edges.some((k)=>k.id===T.id))r.edges.push(T)}if(globalThis.mermaidCaptureSizes){await Promise.resolve().then(() => iIr());rnt(e,r)}return{graph:a,groups:h,nodeElements:m}}function fB({prepareLayout:e,measureLayout:r,runLayoutCore:i,paintLayout:a,afterPaint:o,paintOptions:l}){let h=r??RSe;return I(async function(p,m,y,v){let w=m.select("g");(y?.insertMarkers??GH)(w,p.markers,p.type,p.diagramId),mIr();let T={element:w,helpers:y,options:v};T.preparedLayout=await e?.(p,T);let x=await h(p,T),k=await i(p,T),A={...T,measure:x};if(a)await a(p,A,k);else await bIr(p,A,l);await o?.(p,A,k)},"render")}function mIr(){YCr(),JCr(),KCr(),tni()}async function RSe(e,{element:r},i){return await lIr(r,e,i)}async function bIr(e,r,i={}){let{measure:a}=r,{groups:o}=a;for(let h of i.getNodes?.(e,r)??e.nodes){if(i.skipNode?.(h,r))continue;await yIr(o,h,r,i)}let l=_Ir(e.nodes);for(let h of e.edges){if(EIr(h,i))continue;await wIr(o,h,l,e,i,r)}}async function yIr(e,r,i,a){if(r.clusterNode)_3(r);else if(vIr(r,i,a))await CL(e.clusters,r);else _3(r)}function vIr(e,r,i){return e.isGroup===!0&&(i.isCluster?.(e,r)??!0)}function _Ir(e){let r=new Map;for(let i of e)if(i?.id)r.set(i.id,i);return r}function EIr(e,r){return e.isLayoutOnly||Boolean(r.skipEdge?.(e))}async function wIr(e,r,i,a,o,l){let h=kL(e.edgePaths,{...r},o.clusterDb??new Map,a.type,nnt(r.start,r,i,l,o),nnt(r.end,r,i,l,o),a.diagramId,SIr(r,o),a.layoutAlgorithm);if(Xtt(r)){if(!JP.has(r.id))await E3(e.edgeLabels,r);TIr(r,h)}}function nnt(e,r,i,a,o){return o.getEdgeNode?.(e,r,a)??(e?i.get(e)??{}:{})}function SIr(e,r){return typeof r.skipIntersect==="function"?r.skipIntersect(e):r.skipIntersect??!1}function TIr(e,r){let i=r?.updatedPath??r?.originalPath,a=ea(),{subGraphTitleTotalMargin:o}=xC({flowchart:a.flowchart??{}});if(e.label){let l=JP.get(e.id),{x:h,y:d}=Qtt(e,r);l.attr("transform",`translate(${h}, ${d+o/2})`)}for(let[l,h]of[["startLeft",e.startLabelLeft],["startRight",e.startLabelRight],["endLeft",e.endLabelLeft],["endRight",e.endLabelRight]])if(h){let{x:d,y:p}=xIr(e,l,i);im.get(e.id)[l].attr("transform",`translate(${d}, ${p})`)}}function xIr(e,r,i){let a=e.terminalLabelCenters?.[r];if(a)return{...a};if(!i)return{x:e.x,y:e.y};let o=r.startsWith("start")?e.arrowTypeStart:e.arrowTypeEnd;return Ts.calcTerminalLabelPosition(o?10:0,ani[r],i)}var vl,hB,cIr,tni,Aie,rni,uIr,hIr,nni,dB,aIr,dIr,fIr,pIr,ASe,gIr,ini,ani;var ISe=Re(()=>{K1();Qm();dg();ip();Ql();eo();Zs();Ja();rT();rT();I(CSe,"createLayoutElementGroups");I(sIr,"measureGroupLabel");I(kSe,"insertMeasuredNode");I(oIr,"resolveNodeDir");I(lIr,"createGraphWithElements");vl=new Map,hB=new Map,cIr=new Map,tni=I(()=>{hB.clear(),cIr.clear(),vl.clear()},"clear"),Aie=I((e,r)=>{let i=hB.get(r)||[];return Ze.trace("In isDescendant",r," ",e," = ",i.includes(e)),i.includes(e)},"isDescendant"),rni=I((e,r)=>{let i=hB.get(r)||[];if(Ze.info("Descendants of ",r," is ",i),Ze.info("Edge is ",e),e.v===r||e.w===r)return!1;if(!i)return Ze.debug("Tilt, ",r,",not in descendants"),!1;return i.includes(e.v)||Aie(e.v,r)||Aie(e.w,r)||i.includes(e.w)},"edgeInCluster"),uIr=I((e,r,i,a)=>{Ze.debug("Copying children of ",e,"root",a,"data",r.node(e),a);let o=r.children(e)||[];if(e!==a)o.push(e);Ze.debug("Copying (nodes) clusterId",e,"nodes",o),o.forEach((l)=>{if(r.children(l).length>0)uIr(l,r,i,a);else{let h=r.node(l);if(Ze.info("cp ",l," to ",a," with parent ",e),i.setNode(l,h),a!==r.parent(l))Ze.debug("Setting parent",l,r.parent(l)),i.setParent(l,r.parent(l));if(e!==a&&l!==e)Ze.debug("Setting parent",l,e),i.setParent(l,e);else Ze.info("In copy ",e,"root",a,"data",r.node(e),a),Ze.debug("Not Setting parent for node=",l,"cluster!==rootId",e!==a,"node!==clusterId",l!==e);let d=r.edges(l);Ze.debug("Copying Edges",d),d.forEach((p)=>{Ze.info("Edge",p);let m=r.edge(p.v,p.w,p.name);Ze.info("Edge data",m,a);try{if(rni(p,a))Ze.info("Copying as ",p.v,p.w,m,p.name),i.setEdge(p.v,p.w,m,p.name),Ze.info("newGraph edges ",i.edges(),i.edge(i.edges()[0]));else Ze.info("Skipping copy of edge ",p.v,"-->",p.w," rootId: ",a," clusterId:",e)}catch(y){Ze.error(y)}})}Ze.debug("Removing node",l),r.removeNode(l)})},"copy"),hIr=I((e,r)=>{let i=r.children(e),a=[...i];for(let o of i)cIr.set(o,e),a=[...a,...hIr(o,r)];return a},"extractDescendants"),nni=I((e,r,i)=>{let a=e.edges().filter((p)=>p.v===r||p.w===r),o=e.edges().filter((p)=>p.v===i||p.w===i),l=a.map((p)=>({v:p.v===r?i:p.v,w:p.w===r?r:p.w})),h=o.map((p)=>({v:p.v,w:p.w}));return l.filter((p)=>h.some((m)=>p.v===m.v&&p.w===m.w))},"findCommonEdges"),dB=I((e,r,i)=>{let a=r.children(e);if(Ze.trace("Searching children of id ",e,a),a.length<1)return e;let o;for(let l of a){let h=dB(l,r,i),d=nni(r,i,h);if(h)if(d.length>0)o=h;else return h}return o},"findNonClusterChild"),aIr=I((e)=>{if(!vl.has(e))return e;if(!vl.get(e).externalConnections)return e;if(vl.has(e))return vl.get(e).id;return e},"getAnchorId"),dIr=I((e,r)=>{if(!e||r>10){Ze.debug("Opting out, no graph ");return}else Ze.debug("Opting in, graph ");e.nodes().forEach(function(i){if(e.children(i).length>0)Ze.debug("Cluster identified",i," Replacement id in edges: ",dB(i,e,i)),hB.set(i,hIr(i,e)),vl.set(i,{id:dB(i,e,i),clusterData:e.node(i)})}),e.nodes().forEach(function(i){let a=e.children(i),o=e.edges();if(a.length>0)Ze.debug("Cluster identified",i,hB),o.forEach((l)=>{let h=Aie(l.v,i),d=Aie(l.w,i);if(h^d)Ze.debug("Edge: ",l," leaves cluster ",i),Ze.debug("Descendants of XXX ",i,": ",hB.get(i)),vl.get(i).externalConnections=!0});else Ze.debug("Not a cluster ",i,hB)});for(let i of vl.keys()){let a=vl.get(i).id,o=e.parent(a);if(o!==i&&vl.has(o)&&!vl.get(o).externalConnections)vl.get(i).id=o;let l=e.edges().some((h)=>h.v===i);if(a&&vl.get(i)?.externalConnections&&l&&gIr(e,a,i)){let h=ini(e,i,e.parent(a));if(h)vl.get(i).id=h}}e.edges().forEach(function(i){let a=e.edge(i);Ze.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),Ze.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(e.edge(i)));let{v:o,w:l}=i;if(Ze.debug("Fix XXX",vl,"ids:",i.v,i.w,"Translating: ",vl.get(i.v)," --- ",vl.get(i.w)),vl.get(i.v)||vl.get(i.w)){if(Ze.debug("Fixing and trying - removing XXX",i.v,i.w,i.name),o=aIr(i.v),l=aIr(i.w),e.removeEdge(i.v,i.w,i.name),o!==i.v){let h=e.parent(o);vl.get(h).externalConnections=!0,a.fromCluster=i.v}if(l!==i.w){let h=e.parent(l);vl.get(h).externalConnections=!0,a.toCluster=i.w}Ze.debug("Fix Replacing with XXX",o,l,i.name),e.setEdge(o,l,a,i.name)}}),fIr(e,0),Ze.trace(vl)},"adjustClustersAndEdges"),fIr=I((e,r)=>{if(r>10){Ze.error("Bailing out");return}let i=e.nodes(),a=!1;for(let o of i){let l=e.children(o);a=a||l.length>0}if(!a){Ze.debug("Done, no node has children",e.nodes());return}Ze.debug("Nodes = ",i,r);for(let o of i)if(Ze.debug("Extracting node",o,vl,vl.has(o)&&!vl.get(o).externalConnections,!e.parent(o),e.node(o),e.children("D")," Depth ",r),!vl.has(o))Ze.debug("Not a cluster",o,r);else if(!vl.get(o).externalConnections&&e.children(o)&&e.children(o).length>0){Ze.debug("Cluster without external connections, without a parent and with children",o,r);let h=e.graph().rankdir==="TB"?"LR":"TB";if(vl.get(o)?.clusterData?.dir)h=vl.get(o).clusterData.dir,Ze.debug("Fixing dir",vl.get(o).clusterData.dir,h);let d=new Yh({multigraph:!0,compound:!0}).setGraph({rankdir:h,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});uIr(o,e,d,o),e.setNode(o,{clusterNode:!0,id:o,clusterData:vl.get(o).clusterData,label:vl.get(o).label,graph:d})}else Ze.debug("Cluster ** ",o," **not meeting the criteria !externalConnections:",!vl.get(o).externalConnections," no parent: ",!e.parent(o)," children ",e.children(o)&&e.children(o).length>0,e.children("D"),r),Ze.debug(vl);i=e.nodes(),Ze.debug("New list of nodes",i);for(let o of i){let l=e.node(o);if(Ze.debug(" Now next level",o,l),l?.clusterNode)fIr(l.graph,r+1)}},"extractor"),pIr=I((e,r)=>{if(r.length===0)return[];let i=Object.assign([],r);return r.forEach((a)=>{let o=e.children(a),l=pIr(e,o);i=[...i,...l]}),i},"sorter"),ASe=I((e)=>pIr(e,e.children()),"sortNodesByHierarchy"),gIr=I((e,r,i)=>{let a=e.parent(r);while(a&&a!==i){let o=vl.get(a);if(o&&!o.externalConnections)return!0;a=e.parent(a)}return!1},"isNodeInExtractableCluster"),ini=I((e,r,i)=>{let a=e.children(r)??[];for(let o of a){if(o===i||Aie(o,i))continue;let l=dB(o,e,r);if(!l)continue;if(!gIr(e,l,r))return l}return null},"findSafeAnchorNode");I(fB,"createCommonLayoutRenderer");I(mIr,"clearLayoutRenderState");I(RSe,"defaultMeasureLayout");I(bIr,"paintLayoutData");I(yIr,"paintLayoutNode");I(vIr,"shouldPaintAsCluster");I(_Ir,"buildNodeLookup");I(EIr,"shouldSkipPaintEdge");I(wIr,"paintLayoutEdge");I(nnt,"getRenderedNode");I(SIr,"shouldSkipIntersect");I(TIr,"positionRenderedEdgeLabel");ani={startLeft:"start_left",startRight:"start_right",endLeft:"end_left",endRight:"end_right"};I(xIr,"terminalLabelTranslate")});var kIr=Cr(function(CIr,int){(function(e){if(typeof CIr==="object"&&typeof int<"u")int.exports=e();else if(typeof define==="function"&&define.amd)define([],e);else{var r;if(typeof window<"u")r=window;else if(typeof global<"u")r=global;else if(typeof self<"u")r=self;else r=this;r.ELK=e()}})(function(){var e,r,i;return function(){function a(o,l,h){function d(y,v){if(!l[y]){if(!o[y]){var w=XWe;if(!v&&w)return w(y,!0);if(p)return p(y,!0);var T=Error("Cannot find module '"+y+"'");throw T.code="MODULE_NOT_FOUND",T}var x=l[y]={exports:{}};o[y][0].call(x.exports,function(k){var A=o[y][1][k];return d(A||k)},x,x.exports,a,o,l,h)}return l[y].exports}for(var p=XWe,m=0;m0&&arguments[0]!==void 0?arguments[0]:{},T=w.defaultLayoutOptions,x=T===void 0?{}:T,k=w.algorithms,A=k===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:k,{workerFactory:R,workerUrl:N}=w;if(d(this,y),this.defaultLayoutOptions=x,this.initialized=!1,typeof N>"u"&&typeof R>"u")throw Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var L=R;if(typeof N<"u"&&typeof R>"u")L=function(P){return new Worker(P)};var B=L(N);if(typeof B.postMessage!=="function")throw TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new m(B),this.worker.postMessage({cmd:"register",algorithms:A}).then(function(D){return v.initialized=!0}).catch(console.err)}return h(y,[{key:"layout",value:function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=T.layoutOptions,k=x===void 0?this.defaultLayoutOptions:x,A=T.logging,R=A===void 0?!1:A,N=T.measureExecutionTime,L=N===void 0?!1:N;if(!w)return Promise.reject(Error("Missing mandatory parameter 'graph'."));return this.worker.postMessage({cmd:"layout",graph:w,layoutOptions:k,options:{logging:R,measureExecutionTime:L}})}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){if(this.worker)this.worker.terminate()}}]),y}();l.default=p;var m=function(){function y(v){var w=this;if(d(this,y),v===void 0)throw Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=v,this.worker.onmessage=function(T){setTimeout(function(){w.receive(w,T)},0)}}return h(y,[{key:"postMessage",value:function(w){var T=this.id||0;this.id=T+1,w.id=T;var x=this;return new Promise(function(k,A){x.resolvers[T]=function(R,N){if(R)x.convertGwtStyleError(R),A(R);else k(N)},x.worker.postMessage(w)})}},{key:"receive",value:function(w,T){var x=T.data,k=w.resolvers[x.id];if(k)if(delete w.resolvers[x.id],x.error)k(x.error);else k(null,x.data)}},{key:"terminate",value:function(){if(this.worker)this.worker.terminate()}},{key:"convertGwtStyleError",value:function(w){if(!w)return;var T=w.__java$exception;if(T){if(T.cause&&T.cause.backingJsObject)w.cause=T.cause.backingJsObject,this.convertGwtStyleError(w.cause);delete w.__java$exception}}}]),y}()},{}],2:[function(a,o,l){(function(h){(function(){var d;if(typeof window<"u")d=window;else if(typeof h<"u")d=h;else if(typeof self<"u")d=self;var p,m,y,v,w;function T(){}function x(){}function k(){}function A(){}function R(){}function N(){}function L(){}function B(){}function D(){}function P(){}function F(){}function H(){}function W(){}function X(){}function Q(){}function Y(){}function K(){}function J(){}function Z(){}function j(){}function ee(){}function z(){}function ne(){}function ie(){}function se(){}function oe(){}function he(){}function ye(){}function Se(){}function Ie(){}function Ee(){}function ze(){}function Me(){}function Xe(){}function Ye(){}function Qe(){}function xt(){}function dt(){}function zt(){}function Kt(){}function rr(){}function je(){}function Nt(){}function ct(){}function bt(){}function Pe(){}function Ue(){}function qe(){}function Ke(){}function Je(){}function De(){}function le(){}function pe(){}function fe(){}function be(){}function Ge(){}function ke(){}function we(){}function Ae(){}function at(){}function ut(){}function gt(){}function vt(){}function ir(){}function qt(){}function cr(){}function tr(){}function Zt(){}function lr(){}function Xt(){}function In(){}function Et(){}function Xn(){}function Yt(){}function Bn(){}function si(){}function dn(){}function Ii(){}function Vn(){}function Ei(){}function vn(){}function Li(){}function Ia(){}function tt(){}function Fn(){}function Hn(){}function _t(){}function Sr(){}function ln(){}function mn(){}function On(){}function as(){}function Ir(){}function hn(){}function zn(){}function Di(){}function aa(){}function Ca(){}function os(){}function ma(){}function Yn(){}function Tn(){}function Pi(){}function Mi(){}function Wn(){}function ba(){}function Lt(){}function Gc(){}function Vt(){}function fs(){}function ya(){}function rs(){}function xs(){}function Yr(){}function Zl(){}function ft(){}function ro(){}function yt(){}function fl(){}function lb(){}function dd(){}function cb(){}function $u(){}function c1(){}function pl(){}function kh(){}function Lv(){}function Mv(){}function u1(){}function Kp(){}function xf(){}function Xh(){}function pm(){}function $0(){}function Uu(){}function qF(){}function hA(){}function w2(){}function S2(){}function ub(){}function oi(){}function Mt(){}function Or(){}function $n(){}function Qn(){}function Cs(){}function wo(){}function Il(){}function dp(){}function T2(){}function gm(){}function h1(){}function dA(){}function d1(){}function IW(){}function jgt(){}function Kgt(){}function Xgt(){}function Qgt(){}function Zgt(){}function Jgt(){}function emt(){}function tmt(){}function rmt(){}function nmt(){}function imt(){}function amt(){}function smt(){}function omt(){}function lmt(){}function cmt(){}function umt(){}function hmt(){}function dmt(){}function fmt(){}function pmt(){}function gmt(){}function mmt(){}function bmt(){}function ymt(){}function vmt(){}function _mt(){}function Emt(){}function wmt(){}function Smt(){}function Tmt(){}function xmt(){}function Cmt(){}function kmt(){}function Amt(){}function Rmt(){}function Imt(){}function Omt(){}function Nmt(){}function Lmt(){}function Mmt(){}function Dmt(){}function Pmt(){}function Bmt(){}function Fmt(){}function $mt(){}function Umt(){}function Gmt(){}function zmt(){}function Vmt(){}function Hmt(){}function qmt(){}function Ymt(){}function Wmt(){}function jmt(){}function Kmt(){}function Xmt(){}function Qmt(){}function Zmt(){}function Jmt(){}function e1t(){}function t1t(){}function r1t(){}function n1t(){}function i1t(){}function a1t(){}function s1t(){}function o1t(){}function l1t(){}function c1t(){}function u1t(){}function h1t(){}function d1t(){}function f1t(){}function p1t(){}function g1t(){}function m1t(){}function b1t(){}function y1t(){}function v1t(){}function _1t(){}function E1t(){}function w1t(){}function S1t(){}function T1t(){}function x1t(){}function C1t(){}function k1t(){}function A1t(){}function vAe(){}function R1t(){}function I1t(){}function O1t(){}function N1t(){}function L1t(){}function M1t(){}function D1t(){}function P1t(){}function B1t(){}function F1t(){}function $1t(){}function U1t(){}function G1t(){}function z1t(){}function V1t(){}function H1t(){}function q1t(){}function Y1t(){}function W1t(){}function j1t(){}function K1t(){}function X1t(){}function Q1t(){}function Z1t(){}function J1t(){}function ebt(){}function tbt(){}function rbt(){}function nbt(){}function ibt(){}function abt(){}function sbt(){}function obt(){}function lbt(){}function cbt(){}function ubt(){}function hbt(){}function dbt(){}function fbt(){}function pbt(){}function gbt(){}function mbt(){}function bbt(){}function ybt(){}function vbt(){}function _bt(){}function Ebt(){}function wbt(){}function Sbt(){}function Tbt(){}function xbt(){}function Cbt(){}function kbt(){}function Abt(){}function Rbt(){}function Ibt(){}function Obt(){}function Nbt(){}function Lbt(){}function Mbt(){}function Dbt(){}function Pbt(){}function Bbt(){}function Fbt(){}function $bt(){}function Ubt(){}function Gbt(){}function zbt(){}function Vbt(){}function Hbt(){}function qbt(){}function Ybt(){}function Wbt(){}function _Ae(){}function jbt(){}function Kbt(){}function Xbt(){}function Qbt(){}function Zbt(){}function Jbt(){}function eyt(){}function tyt(){}function ryt(){}function nyt(){}function EAe(){}function iyt(){}function ayt(){}function syt(){}function oyt(){}function lyt(){}function cyt(){}function wAe(){}function SAe(){}function uyt(){}function TAe(){}function xAe(){}function hyt(){}function dyt(){}function fyt(){}function pyt(){}function gyt(){}function myt(){}function byt(){}function yyt(){}function vyt(){}function _yt(){}function Eyt(){}function CAe(){}function wyt(){}function Syt(){}function Tyt(){}function xyt(){}function Cyt(){}function kyt(){}function Ayt(){}function Ryt(){}function Iyt(){}function Oyt(){}function Nyt(){}function Lyt(){}function Myt(){}function Dyt(){}function Pyt(){}function Byt(){}function Fyt(){}function $yt(){}function Uyt(){}function Gyt(){}function zyt(){}function Vyt(){}function Hyt(){}function qyt(){}function Yyt(){}function Wyt(){}function jyt(){}function Kyt(){}function Xyt(){}function Qyt(){}function Zyt(){}function Jyt(){}function evt(){}function tvt(){}function rvt(){}function nvt(){}function ivt(){}function avt(){}function svt(){}function ovt(){}function lvt(){}function cvt(){}function uvt(){}function hvt(){}function dvt(){}function fvt(){}function pvt(){}function gvt(){}function mvt(){}function bvt(){}function yvt(){}function vvt(){}function _vt(){}function Evt(){}function wvt(){}function Svt(){}function Tvt(){}function xvt(){}function Cvt(){}function kvt(){}function Avt(){}function Rvt(){}function Ivt(){}function Ovt(){}function Nvt(){}function Lvt(){}function Mvt(){}function Dvt(){}function Pvt(){}function Bvt(){}function Fvt(){}function $vt(){}function Uvt(){}function Gvt(){}function zvt(){}function Vvt(){}function Hvt(){}function qvt(){}function Yvt(){}function Wvt(){}function jvt(){}function Kvt(){}function Xvt(){}function Qvt(){}function Zvt(){}function Jvt(){}function e_t(){}function t_t(){}function r_t(){}function n_t(){}function i_t(){}function a_t(){}function s_t(){}function o_t(){}function l_t(){}function c_t(){}function u_t(){}function h_t(){}function d_t(){}function f_t(){}function p_t(){}function g_t(){}function m_t(){}function b_t(){}function y_t(){}function v_t(){}function __t(){}function E_t(){}function w_t(){}function S_t(){}function T_t(){}function x_t(){}function C_t(){}function k_t(){}function ble(){}function yle(){}function A_t(){}function vle(){}function R_t(){}function I_t(){}function O_t(){}function N_t(){}function L_t(){}function M_t(){}function D_t(){}function P_t(){}function B_t(){}function F_t(){}function kAe(){}function $_t(){}function U_t(){}function G_t(){}function z_t(){}function V_t(){}function H_t(){}function q_t(){}function Y_t(){}function W_t(){}function j_t(){}function K_t(){}function x2(){}function X_t(){}function fA(){}function AAe(){}function Q_t(){}function Z_t(){}function J_t(){}function e2t(){}function t2t(){}function r2t(){}function n2t(){}function i2t(){}function a2t(){}function s2t(){}function o2t(){}function l2t(){}function c2t(){}function u2t(){}function h2t(){}function d2t(){}function f2t(){}function p2t(){}function g2t(){}function dr(){}function m2t(){}function b2t(){}function y2t(){}function v2t(){}function _2t(){}function E2t(){}function w2t(){}function S2t(){}function T2t(){}function x2t(){}function C2t(){}function k2t(){}function A2t(){}function _le(){}function R2t(){}function I2t(){}function O2t(){}function OW(){}function N2t(){}function Ele(){}function NW(){}function L2t(){}function RAe(){}function M2t(){}function D2t(){}function P2t(){}function B2t(){}function F2t(){}function $2t(){}function LW(){}function U2t(){}function G2t(){}function MW(){}function z2t(){}function DW(){}function V2t(){}function IAe(){}function H2t(){}function wle(){}function OAe(){}function q2t(){}function Y2t(){}function W2t(){}function j2t(){}function K2t(){}function X2t(){}function Q2t(){}function Z2t(){}function J2t(){}function eEt(){}function tEt(){}function rEt(){}function nEt(){}function iEt(){}function aEt(){}function qI(){}function Sle(){}function sEt(){}function oEt(){}function lEt(){}function cEt(){}function uEt(){}function hEt(){}function dEt(){}function fEt(){}function pEt(){}function gEt(){}function mEt(){}function bEt(){}function yEt(){}function vEt(){}function _Et(){}function EEt(){}function wEt(){}function SEt(){}function TEt(){}function xEt(){}function CEt(){}function kEt(){}function AEt(){}function REt(){}function IEt(){}function OEt(){}function NEt(){}function LEt(){}function MEt(){}function DEt(){}function PEt(){}function BEt(){}function FEt(){}function $Et(){}function UEt(){}function GEt(){}function zEt(){}function VEt(){}function HEt(){}function qEt(){}function YEt(){}function WEt(){}function jEt(){}function KEt(){}function XEt(){}function QEt(){}function ZEt(){}function JEt(){}function ewt(){}function twt(){}function rwt(){}function nwt(){}function iwt(){}function awt(){}function swt(){}function owt(){}function lwt(){}function cwt(){}function uwt(){}function hwt(){}function dwt(){}function fwt(){}function pwt(){}function gwt(){}function mwt(){}function bwt(){}function ywt(){}function vwt(){}function _wt(){}function Ewt(){}function wwt(){}function Swt(){}function Twt(){}function xwt(){}function Cwt(){}function kwt(){}function Awt(){}function Rwt(){}function Iwt(){}function Owt(){}function Nwt(){}function Lwt(){}function Mwt(){}function Dwt(){}function Pwt(){}function Bwt(){}function Fwt(){}function $wt(){}function Uwt(){}function Gwt(){}function zwt(){}function Vwt(){}function Hwt(){}function qwt(){}function Ywt(){}function Wwt(){}function jwt(){}function Kwt(){}function Xwt(){}function Qwt(){}function Zwt(){}function NAe(){}function Jwt(){}function eSt(){}function tSt(t){}function pA(t){}function Tle(){vM()}function rSt(){s$()}function nSt(){wQ()}function iSt(){Ide()}function aSt(){H8()}function sSt(){UMe()}function oSt(){c0()}function lSt(){X7e()}function cSt(){YU()}function uSt(){o$()}function hSt(){D$()}function dSt(){FAt()}function fSt(){e5()}function pSt(){d8t()}function gSt(){KNe()}function mSt(){e7t()}function bSt(){XNe()}function ySt(){V8t()}function vSt(){JLt()}function _St(){tO()}function ESt(){C9t()}function wSt(){x9t()}function SSt(){K7t()}function TSt(){k9t()}function xSt(){a_()}function CSt(){cj()}function kSt(){$De()}function ASt(){Qt()}function RSt(){A9t()}function ISt(){tPt()}function OSt(){t7t()}function NSt(){C$t()}function LSt(){r7t()}function MSt(){UVt()}function DSt(){b8e()}function PSt(){Tb()}function BSt(){GBt()}function FSt(){Oc()}function $St(){h7t()}function USt(){JA()}function GSt(){J8e()}function zSt(){s_()}function VSt(){eDe()}function HSt(){Lg()}function qSt(){QU()}function YSt(){rpe()}function WSt(){hfe()}function U0(){G6t()}function jSt(){lX()}function KSt(){AQ()}function LAe(){Hi()}function XSt(){HX()}function QSt(){C7e()}function MAe(){hde()}function DAe(){XQ()}function ZSt(){hDe()}function PAe(t){_n(t)}function JSt(t){this.a=t}function PW(t){this.a=t}function eTt(t){this.a=t}function tTt(t){this.a=t}function rTt(t){this.a=t}function nTt(t){this.a=t}function iTt(t){this.a=t}function aTt(t){this.a=t}function BAe(t){this.a=t}function FAe(t){this.a=t}function sTt(t){this.a=t}function oTt(t){this.a=t}function xle(t){this.a=t}function lTt(t){this.a=t}function cTt(t){this.a=t}function Cle(t){this.a=t}function kle(t){this.a=t}function uTt(t){this.a=t}function Ale(t){this.a=t}function hTt(t){this.a=t}function dTt(t){this.a=t}function fTt(t){this.a=t}function $Ae(t){this.b=t}function pTt(t){this.c=t}function gTt(t){this.a=t}function mTt(t){this.a=t}function bTt(t){this.a=t}function yTt(t){this.a=t}function vTt(t){this.a=t}function _Tt(t){this.a=t}function ETt(t){this.a=t}function wTt(t){this.a=t}function STt(t){this.a=t}function TTt(t){this.a=t}function xTt(t){this.a=t}function CTt(t){this.a=t}function kTt(t){this.a=t}function UAe(t){this.a=t}function GAe(t){this.a=t}function BW(t){this.a=t}function YF(t){this.a=t}function C2(){this.a=[]}function ATt(t,n){t.a=n}function brn(t,n){t.a=n}function yrn(t,n){t.b=n}function vrn(t,n){t.b=n}function _rn(t,n){t.b=n}function zAe(t,n){t.j=n}function Ern(t,n){t.g=n}function wrn(t,n){t.i=n}function Srn(t,n){t.c=n}function Trn(t,n){t.c=n}function xrn(t,n){t.d=n}function Crn(t,n){t.d=n}function k2(t,n){t.k=n}function krn(t,n){t.c=n}function VAe(t,n){t.c=n}function HAe(t,n){t.a=n}function Arn(t,n){t.a=n}function Rrn(t,n){t.f=n}function Irn(t,n){t.a=n}function Orn(t,n){t.b=n}function Rle(t,n){t.d=n}function FW(t,n){t.i=n}function qAe(t,n){t.o=n}function Nrn(t,n){t.r=n}function Lrn(t,n){t.a=n}function Mrn(t,n){t.b=n}function RTt(t,n){t.e=n}function Drn(t,n){t.f=n}function YAe(t,n){t.g=n}function Prn(t,n){t.e=n}function Brn(t,n){t.f=n}function Frn(t,n){t.f=n}function Ile(t,n){t.a=n}function Ole(t,n){t.b=n}function $rn(t,n){t.n=n}function Urn(t,n){t.a=n}function Grn(t,n){t.c=n}function zrn(t,n){t.c=n}function Vrn(t,n){t.c=n}function Hrn(t,n){t.a=n}function qrn(t,n){t.a=n}function Yrn(t,n){t.d=n}function Wrn(t,n){t.d=n}function jrn(t,n){t.e=n}function Krn(t,n){t.e=n}function Xrn(t,n){t.g=n}function Qrn(t,n){t.f=n}function Zrn(t,n){t.j=n}function Jrn(t,n){t.a=n}function enn(t,n){t.a=n}function tnn(t,n){t.b=n}function ITt(t){t.b=t.a}function OTt(t){t.c=t.d.d}function WAe(t){this.a=t}function jAe(t){this.a=t}function KAe(t){this.a=t}function A2(t){this.a=t}function R2(t){this.a=t}function WF(t){this.a=t}function NTt(t){this.a=t}function XAe(t){this.a=t}function jF(t){this.a=t}function $W(t){this.a=t}function hb(t){this.a=t}function CT(t){this.a=t}function LTt(t){this.a=t}function MTt(t){this.a=t}function Nle(t){this.b=t}function YI(t){this.b=t}function WI(t){this.b=t}function Lle(t){this.a=t}function DTt(t){this.a=t}function Mle(t){this.c=t}function me(t){this.c=t}function PTt(t){this.c=t}function hM(t){this.d=t}function QAe(t){this.a=t}function pi(t){this.a=t}function BTt(t){this.a=t}function ZAe(t){this.a=t}function JAe(t){this.a=t}function e5e(t){this.a=t}function t5e(t){this.a=t}function r5e(t){this.a=t}function n5e(t){this.a=t}function jI(t){this.a=t}function FTt(t){this.a=t}function $Tt(t){this.a=t}function KI(t){this.a=t}function UTt(t){this.a=t}function GTt(t){this.a=t}function zTt(t){this.a=t}function VTt(t){this.a=t}function HTt(t){this.a=t}function qTt(t){this.a=t}function YTt(t){this.a=t}function WTt(t){this.a=t}function jTt(t){this.a=t}function KTt(t){this.a=t}function XTt(t){this.a=t}function QTt(t){this.a=t}function ZTt(t){this.a=t}function JTt(t){this.a=t}function ext(t){this.a=t}function dM(t){this.a=t}function txt(t){this.a=t}function rxt(t){this.a=t}function nxt(t){this.a=t}function ixt(t){this.a=t}function UW(t){this.a=t}function axt(t){this.a=t}function sxt(t){this.a=t}function XI(t){this.a=t}function i5e(t){this.a=t}function oxt(t){this.a=t}function lxt(t){this.a=t}function cxt(t){this.a=t}function uxt(t){this.a=t}function hxt(t){this.a=t}function dxt(t){this.a=t}function a5e(t){this.a=t}function s5e(t){this.a=t}function o5e(t){this.a=t}function fM(t){this.a=t}function GW(t){this.e=t}function QI(t){this.a=t}function fxt(t){this.a=t}function gA(t){this.a=t}function l5e(t){this.a=t}function pxt(t){this.a=t}function gxt(t){this.a=t}function mxt(t){this.a=t}function bxt(t){this.a=t}function yxt(t){this.a=t}function vxt(t){this.a=t}function _xt(t){this.a=t}function Ext(t){this.a=t}function wxt(t){this.a=t}function Sxt(t){this.a=t}function Txt(t){this.a=t}function c5e(t){this.a=t}function xxt(t){this.a=t}function Cxt(t){this.a=t}function kxt(t){this.a=t}function Axt(t){this.a=t}function Rxt(t){this.a=t}function Ixt(t){this.a=t}function Oxt(t){this.a=t}function Nxt(t){this.a=t}function Lxt(t){this.a=t}function Mxt(t){this.a=t}function Dxt(t){this.a=t}function Pxt(t){this.a=t}function Bxt(t){this.a=t}function Fxt(t){this.a=t}function $xt(t){this.a=t}function Uxt(t){this.a=t}function Gxt(t){this.a=t}function zxt(t){this.a=t}function Vxt(t){this.a=t}function Hxt(t){this.a=t}function qxt(t){this.a=t}function Yxt(t){this.a=t}function Wxt(t){this.a=t}function jxt(t){this.a=t}function Kxt(t){this.a=t}function Xxt(t){this.a=t}function Qxt(t){this.a=t}function Zxt(t){this.a=t}function Jxt(t){this.a=t}function eCt(t){this.a=t}function tCt(t){this.a=t}function rCt(t){this.a=t}function nCt(t){this.a=t}function iCt(t){this.a=t}function aCt(t){this.a=t}function sCt(t){this.a=t}function oCt(t){this.a=t}function lCt(t){this.a=t}function cCt(t){this.c=t}function uCt(t){this.b=t}function hCt(t){this.a=t}function dCt(t){this.a=t}function fCt(t){this.a=t}function pCt(t){this.a=t}function gCt(t){this.a=t}function mCt(t){this.a=t}function bCt(t){this.a=t}function yCt(t){this.a=t}function vCt(t){this.a=t}function _Ct(t){this.a=t}function ECt(t){this.a=t}function wCt(t){this.a=t}function SCt(t){this.a=t}function TCt(t){this.a=t}function xCt(t){this.a=t}function CCt(t){this.a=t}function kCt(t){this.a=t}function ACt(t){this.a=t}function RCt(t){this.a=t}function ICt(t){this.a=t}function OCt(t){this.a=t}function NCt(t){this.a=t}function LCt(t){this.a=t}function MCt(t){this.a=t}function DCt(t){this.a=t}function PCt(t){this.a=t}function BCt(t){this.a=t}function db(t){this.a=t}function KC(t){this.a=t}function FCt(t){this.a=t}function $Ct(t){this.a=t}function UCt(t){this.a=t}function GCt(t){this.a=t}function zCt(t){this.a=t}function VCt(t){this.a=t}function HCt(t){this.a=t}function qCt(t){this.a=t}function YCt(t){this.a=t}function WCt(t){this.a=t}function jCt(t){this.a=t}function KCt(t){this.a=t}function XCt(t){this.a=t}function QCt(t){this.a=t}function ZCt(t){this.a=t}function JCt(t){this.a=t}function e4t(t){this.a=t}function t4t(t){this.a=t}function r4t(t){this.a=t}function n4t(t){this.a=t}function i4t(t){this.a=t}function a4t(t){this.a=t}function s4t(t){this.a=t}function o4t(t){this.a=t}function l4t(t){this.a=t}function c4t(t){this.a=t}function zW(t){this.a=t}function u4t(t){this.f=t}function h4t(t){this.a=t}function d4t(t){this.a=t}function f4t(t){this.a=t}function p4t(t){this.a=t}function g4t(t){this.a=t}function m4t(t){this.a=t}function b4t(t){this.a=t}function y4t(t){this.a=t}function v4t(t){this.a=t}function _4t(t){this.a=t}function E4t(t){this.a=t}function w4t(t){this.a=t}function S4t(t){this.a=t}function T4t(t){this.a=t}function x4t(t){this.a=t}function C4t(t){this.a=t}function k4t(t){this.a=t}function A4t(t){this.a=t}function R4t(t){this.a=t}function I4t(t){this.a=t}function O4t(t){this.a=t}function N4t(t){this.a=t}function L4t(t){this.a=t}function M4t(t){this.a=t}function D4t(t){this.a=t}function P4t(t){this.a=t}function B4t(t){this.a=t}function F4t(t){this.a=t}function Dle(t){this.a=t}function u5e(t){this.a=t}function va(t){this.b=t}function $4t(t){this.a=t}function U4t(t){this.a=t}function G4t(t){this.a=t}function z4t(t){this.a=t}function V4t(t){this.a=t}function H4t(t){this.a=t}function q4t(t){this.a=t}function Y4t(t){this.b=t}function W4t(t){this.a=t}function KF(t){this.a=t}function j4t(t){this.a=t}function K4t(t){this.a=t}function h5e(t){this.c=t}function VW(t){this.e=t}function HW(t){this.a=t}function qW(t){this.a=t}function Ple(t){this.a=t}function X4t(t){this.d=t}function Q4t(t){this.a=t}function d5e(t){this.a=t}function f5e(t){this.a=t}function ow(t){this.e=t}function pM(){this.a=0}function Zn(){Jh(this)}function Ut(){Xce(this)}function Ble(){MNt(this)}function Z4t(){tSt(this)}function lw(){this.c=yWe}function J4t(t,n){t.b+=n}function rnn(t,n){n.Wb(t)}function nnn(t){return t.a}function inn(t){return t.a}function ann(t){return t.a}function snn(t){return t.a}function onn(t){return t.a}function _e(t){return t.e}function lnn(){return null}function cnn(){return null}function unn(){Z5e(),VIn()}function hnn(t){t.b.Of(t.e)}function ekt(t){t.b=new nce}function gM(t,n){t.b=n-t.b}function mM(t,n){t.a=n-t.a}function rn(t,n){t.push(n)}function tkt(t,n){t.sort(n)}function rkt(t,n){n.jd(t.a)}function dnn(t,n){Xs(n,t)}function fnn(t,n,s){t.Yd(s,n)}function XF(t,n){t.e=n,n.b=t}function p5e(t){wm(),this.a=t}function nkt(t){wm(),this.a=t}function ikt(t){wm(),this.a=t}function Fle(t){Iw(),this.a=t}function akt(t){k6(),kme.le(t)}function g5e(){g5e=z,new Zn}function I2(){TIt.call(this)}function m5e(){TIt.call(this)}function b5e(){I2.call(this)}function $le(){I2.call(this)}function skt(){I2.call(this)}function QF(){I2.call(this)}function Ah(){I2.call(this)}function mA(){I2.call(this)}function bi(){I2.call(this)}function Cf(){I2.call(this)}function okt(){I2.call(this)}function yc(){I2.call(this)}function lkt(){I2.call(this)}function ckt(){this.a=this}function YW(){this.Bb|=256}function ukt(){this.b=new bRt}function kT(t,n){t.length=n}function WW(t,n){Gt(t.a,n)}function pnn(t,n){zMe(t.c,n)}function gnn(t,n){$s(t.b,n)}function mnn(t,n){mQ(t.a,n)}function bnn(t,n){Fde(t.a,n)}function ZI(t,n){ha(t.e,n)}function bA(t){NQ(t.c,t.b)}function ynn(t,n){t.kc().Nb(n)}function y5e(t){this.a=uyn(t)}function Rs(){this.a=new Zn}function hkt(){this.a=new Zn}function v5e(){this.a=new IAt}function jW(){this.a=new Ut}function Ule(){this.a=new Ut}function _5e(){this.a=new Ut}function fp(){this.a=new Xt}function O2(){this.a=new s8t}function E5e(){this.a=new ft}function w5e(){this.a=new ZLt}function S5e(){this.a=new u6t}function dkt(){this.a=new Ut}function fkt(){this.a=new Ut}function pkt(){this.a=new Ut}function T5e(){this.a=new Ut}function gkt(){this.d=new Ut}function mkt(){this.a=new y7t}function bkt(){this.a=new Rs}function ykt(){this.a=new Zn}function vkt(){this.b=new Zn}function _kt(){this.b=new Ut}function x5e(){this.e=new Ut}function Ekt(){this.a=new xSt}function wkt(){this.d=new Ut}function Skt(){SLt.call(this)}function Tkt(){SLt.call(this)}function xkt(){Ut.call(this)}function C5e(){b5e.call(this)}function k5e(){jW.call(this)}function Ckt(){Jj.call(this)}function kkt(){T5e.call(this)}function bM(){Z4t.call(this)}function Gle(){bM.call(this)}function yA(){Z4t.call(this)}function A5e(){yA.call(this)}function Akt(){N5e.call(this)}function Rkt(){N5e.call(this)}function Ikt(){N5e.call(this)}function Okt(){L5e.call(this)}function yM(){N2t.call(this)}function R5e(){N2t.call(this)}function Rh(){Va.call(this)}function Nkt(){Wkt.call(this)}function Lkt(){Wkt.call(this)}function Mkt(){Zn.call(this)}function Dkt(){Zn.call(this)}function Pkt(){Zn.call(this)}function zle(){O9t.call(this)}function Bkt(){Rs.call(this)}function Fkt(){YW.call(this)}function Vle(){dIe.call(this)}function I5e(){Zn.call(this)}function Hle(){dIe.call(this)}function qle(){Zn.call(this)}function $kt(){Zn.call(this)}function O5e(){DW.call(this)}function Ukt(){O5e.call(this)}function Gkt(){DW.call(this)}function zkt(){NAe.call(this)}function N5e(){this.a=new Rs}function Vkt(){this.a=new Zn}function Hkt(){this.a=new Ut}function L5e(){this.a=new Zn}function vA(){this.a=new Va}function qkt(){this.j=new Ut}function Ykt(){this.a=new H3t}function Wkt(){this.a=new z2t}function M5e(){this.a=new w_t}function vM(){vM=z,vme=new x}function Yle(){Yle=z,_me=new Kkt}function Wle(){Wle=z,Eme=new jkt}function jkt(){Cle.call(this,"")}function Kkt(){Cle.call(this,"")}function Xkt(t){e9t.call(this,t)}function Qkt(t){e9t.call(this,t)}function D5e(t){BAe.call(this,t)}function P5e(t){vAt.call(this,t)}function vnn(t){vAt.call(this,t)}function _nn(t){P5e.call(this,t)}function Enn(t){P5e.call(this,t)}function wnn(t){P5e.call(this,t)}function Zkt(t){xhe.call(this,t)}function Jkt(t){xhe.call(this,t)}function e3t(t){N6t.call(this,t)}function t3t(t){aRe.call(this,t)}function _M(t){aj.call(this,t)}function B5e(t){aj.call(this,t)}function r3t(t){aj.call(this,t)}function F5e(t){Hwn.call(this,t)}function $5e(t){F5e.call(this,t)}function vc(t){JOt.call(this,t)}function n3t(t){vc.call(this,t)}function _A(){YF.call(this,{})}function i3t(){i3t=z,UXt=new j}function KW(){KW=z,Tme=new eIt}function a3t(){a3t=z,PFe=new T}function U5e(){U5e=z,BFe=new X}function XW(){XW=z,jD=new K}function jle(t){u6(),this.a=t}function Kle(t){fLe(),this.a=t}function cw(t){Lue(),this.f=t}function Xle(t){Lue(),this.f=t}function s3t(t){U6t(),this.a=t}function o3t(t){t.b=null,t.c=0}function Snn(t,n){t.e=n,Uzt(t,n)}function Tnn(t,n){t.a=n,OSn(t)}function Qle(t,n,s){t.a[n.g]=s}function xnn(t,n,s){Y2n(s,t,n)}function Cnn(t,n){Eon(n.i,t.n)}function l3t(t,n){q1n(t).Cd(n)}function knn(t,n){t.a.ec().Mc(n)}function c3t(t,n){return t.g-n.g}function Ann(t,n){return t*t/n}function er(t){return _n(t),t}function rt(t){return _n(t),t}function ZF(t){return _n(t),t}function Rnn(t){return new BW(t)}function Inn(t){return new GT(t)}function G5e(t){return _n(t),t}function Onn(t){return _n(t),t}function QW(t){vc.call(this,t)}function Gl(t){vc.call(this,t)}function u3t(t){vc.call(this,t)}function Zle(t){JOt.call(this,t)}function JI(t){vc.call(this,t)}function fn(t){vc.call(this,t)}function zl(t){vc.call(this,t)}function h3t(t){vc.call(this,t)}function EA(t){vc.call(this,t)}function fy(t){vc.call(this,t)}function py(t){vc.call(this,t)}function wA(t){vc.call(this,t)}function mm(t){vc.call(this,t)}function Jle(t){vc.call(this,t)}function Ti(t){vc.call(this,t)}function Qh(t){_n(t),this.a=t}function z5e(t){return X2(t),t}function EM(t){eOe(t,t.length)}function wM(t){return t.b==t.c}function AT(t){return!!t&&t.b}function Nnn(t){return!!t&&t.k}function Lnn(t){return!!t&&t.j}function Mnn(t,n,s){t.c.Ef(n,s)}function d3t(t,n){t.be(n),n.ae(t)}function SA(t){wm(),this.a=mi(t)}function ece(){this.a=wi(mi(ll))}function f3t(){throw _e(new bi)}function Dnn(){throw _e(new bi)}function V5e(){throw _e(new bi)}function p3t(){throw _e(new bi)}function Pnn(){throw _e(new bi)}function Bnn(){throw _e(new bi)}function ZW(){ZW=z,k6()}function gy(){WF.call(this,"")}function SM(){WF.call(this,"")}function Dv(){WF.call(this,"")}function XC(){WF.call(this,"")}function H5e(t){Gl.call(this,t)}function q5e(t){Gl.call(this,t)}function bm(t){fn.call(this,t)}function e6(t){WI.call(this,t)}function g3t(t){e6.call(this,t)}function tce(t){jj.call(this,t)}function rce(t){TIe.call(this,t,0)}function nce(){POe.call(this,12,3)}function Te(t,n){return YLt(t,n)}function JW(t,n){return Uhe(t,n)}function Fnn(t,n){return t.a-n.a}function $nn(t,n){return t.a-n.a}function Unn(t,n){return t.a-n.a}function Gnn(t,n){return n in t.a}function m3t(t){return t.a?t.b:0}function znn(t){return t.a?t.b:0}function Vnn(t,n,s){n.Cd(t.a[s])}function Hnn(t,n,s){n.Pe(t.a[s])}function qnn(t,n){t.b=new sl(n)}function Ynn(t,n){return t.b=n,t}function b3t(t,n){return t.c=n,t}function y3t(t,n){return t.f=n,t}function Wnn(t,n){return t.g=n,t}function Y5e(t,n){return t.a=n,t}function W5e(t,n){return t.f=n,t}function jnn(t,n){return t.k=n,t}function j5e(t,n){return t.a=n,t}function Knn(t,n){return t.e=n,t}function K5e(t,n){return t.e=n,t}function Xnn(t,n){return t.f=n,t}function Qnn(t,n){t.b=!0,t.d=n}function Znn(t,n){return t.b-n.b}function Jnn(t,n){return t.g-n.g}function ein(t,n){return t?0:n-1}function v3t(t,n){return t?0:n-1}function tin(t,n){return t?n-1:0}function rin(t,n){return t.s-n.s}function nin(t,n){return n.rg(t)}function uw(t,n){return t.b=n,t}function ej(t,n){return t.a=n,t}function hw(t,n){return t.c=n,t}function dw(t,n){return t.d=n,t}function fw(t,n){return t.e=n,t}function X5e(t,n){return t.f=n,t}function TM(t,n){return t.a=n,t}function t6(t,n){return t.b=n,t}function r6(t,n){return t.c=n,t}function pr(t,n){return t.c=n,t}function $r(t,n){return t.b=n,t}function gr(t,n){return t.d=n,t}function mr(t,n){return t.e=n,t}function iin(t,n){return t.f=n,t}function br(t,n){return t.g=n,t}function yr(t,n){return t.a=n,t}function vr(t,n){return t.i=n,t}function _r(t,n){return t.j=n,t}function ain(t,n){a_(),Ec(n,t)}function sin(t,n,s){wun(t.a,n,s)}function tj(t){pue.call(this,t)}function _3t(t){xyn.call(this,t)}function E3t(t){eLt.call(this,t)}function Q5e(t){eLt.call(this,t)}function Pv(t){Uw.call(this,t)}function w3t(t){nhe.call(this,t)}function S3t(t){nhe.call(this,t)}function T3t(){sIe.call(this,"")}function Oo(){this.a=0,this.b=0}function x3t(){this.b=0,this.a=0}function C3t(t,n){t.b=0,QT(t,n)}function k3t(t,n){return t.k=n,t}function oin(t,n){return t.j=n,t}function lin(t,n){t.c=n,t.b=!0}function A3t(){A3t=z,JXt=vEn()}function Bv(){Bv=z,jsr=I2n()}function R3t(){R3t=z,bo=zEn()}function Z5e(){Z5e=z,O_=z6()}function n6(){n6=z,bWe=O2n()}function I3t(){I3t=z,Mor=N2n()}function J5e(){J5e=z,qc=ASn()}function G0(t){return t.e&&t.e()}function O3t(t){return t.l|t.m<<22}function N3t(t,n){return t.c._b(n)}function L3t(t,n){return IBt(t.b,n)}function ice(t){return!t?null:t.d}function cin(t){return!t?null:t.g}function uin(t){return!t?null:t.i}function N2(t){return gb(t),t.o}function QC(t,n){return t.a+=n,t}function ace(t,n){return t.a+=n,t}function my(t,n){return t.a+=n,t}function pw(t,n){return t.a+=n,t}function eRe(t,n){while(t.Bd(n));}function rj(t){this.a=new TA(t)}function M3t(){throw _e(new bi)}function D3t(){throw _e(new bi)}function P3t(){throw _e(new bi)}function B3t(){throw _e(new bi)}function F3t(){throw _e(new bi)}function $3t(){throw _e(new bi)}function by(t){this.a=new Pue(t)}function U3t(){this.a=new aD(dHe)}function G3t(){this.b=new aD(OVe)}function z3t(){this.a=new aD(PHe)}function V3t(){this.b=new aD(yye)}function H3t(){this.b=new aD(yye)}function nj(t){this.a=0,this.b=t}function tRe(t){yqt(),r6n(this,t)}function i6(t){return Yv(t),t.a}function JF(t){return t.b!=t.d.c}function rRe(t,n){return t.d[n.p]}function q3t(t,n){return v4n(t,n)}function nRe(t,n,s){t.splice(n,s)}function ZC(t,n){while(t.Re(n));}function Y3t(t){t.c?iVt(t):aVt(t)}function W3t(){throw _e(new bi)}function j3t(){throw _e(new bi)}function K3t(){throw _e(new bi)}function X3t(){throw _e(new bi)}function Q3t(){throw _e(new bi)}function Z3t(){throw _e(new bi)}function J3t(){throw _e(new bi)}function eAt(){throw _e(new bi)}function tAt(){throw _e(new bi)}function rAt(){throw _e(new bi)}function hin(){throw _e(new yc)}function din(){throw _e(new yc)}function e$(t){this.a=new nAt(t)}function nAt(t){mmn(this,t,jwn())}function t$(t){return!t||LNt(t)}function r$(t){return jg[t]!=-1}function fin(){gJ!=0&&(gJ=0),mJ=-1}function iAt(){yme==null&&(yme=[])}function n$(t,n){d4.call(this,t,n)}function a6(t,n){n$.call(this,t,n)}function aAt(t,n){this.a=t,this.b=n}function sAt(t,n){this.a=t,this.b=n}function oAt(t,n){this.a=t,this.b=n}function lAt(t,n){this.a=t,this.b=n}function cAt(t,n){this.a=t,this.b=n}function uAt(t,n){this.a=t,this.b=n}function hAt(t,n){this.a=t,this.b=n}function s6(t,n){this.e=t,this.d=n}function iRe(t,n){this.b=t,this.c=n}function dAt(t,n){this.b=t,this.a=n}function fAt(t,n){this.b=t,this.a=n}function pAt(t,n){this.b=t,this.a=n}function gAt(t,n){this.b=t,this.a=n}function mAt(t,n){this.a=t,this.b=n}function sce(t,n){this.a=t,this.b=n}function bAt(t,n){this.a=t,this.f=n}function gw(t,n){this.g=t,this.i=n}function ui(t,n){this.f=t,this.g=n}function yAt(t,n){this.b=t,this.c=n}function vAt(t){pIe(t.dc()),this.c=t}function pin(t,n){this.a=t,this.b=n}function _At(t,n){this.a=t,this.b=n}function EAt(t){this.a=b(mi(t),15)}function aRe(t){this.a=b(mi(t),15)}function wAt(t){this.a=b(mi(t),85)}function ij(t){this.b=b(mi(t),85)}function aj(t){this.b=b(mi(t),51)}function sj(){this.q=new d.Date}function oce(t,n){this.a=t,this.b=n}function SAt(t,n){return Zu(t.b,n)}function i$(t,n){return t.b.Hc(n)}function TAt(t,n){return t.b.Ic(n)}function xAt(t,n){return t.b.Qc(n)}function CAt(t,n){return t.b.Hc(n)}function kAt(t,n){return t.c.uc(n)}function AAt(t,n){return da(t.c,n)}function z0(t,n){return t.a._b(n)}function RAt(t,n){return t>n&&n0}function fce(t,n){return Kc(t,n)<0}function qAt(t,n){return Rue(t.a,n)}function Lin(t,n){WLt.call(this,t,n)}function dRe(t){jue(),N6t.call(this,t)}function fRe(t,n){UOt(t,t.length,n)}function l$(t,n){pNt(t,t.length,n)}function NM(t,n){return t.a.get(n)}function YAt(t,n){return Zu(t.e,n)}function pRe(t){return _n(t),!1}function gRe(t){this.a=b(mi(t),229)}function gj(t){Gr.call(this,t,21)}function mj(t,n){ui.call(this,t,n)}function pce(t,n){ui.call(this,t,n)}function WAt(t,n){this.b=t,this.a=n}function bj(t,n){this.d=t,this.e=n}function jAt(t,n){this.a=t,this.b=n}function KAt(t,n){this.a=t,this.b=n}function XAt(t,n){this.a=t,this.b=n}function QAt(t,n){this.a=t,this.b=n}function CA(t,n){this.a=t,this.b=n}function ZAt(t,n){this.b=t,this.a=n}function mRe(t,n){this.b=t,this.a=n}function bRe(t,n){ui.call(this,t,n)}function yRe(t,n){ui.call(this,t,n)}function JC(t,n){ui.call(this,t,n)}function gce(t,n){ui.call(this,t,n)}function mce(t,n){ui.call(this,t,n)}function bce(t,n){ui.call(this,t,n)}function yj(t,n){ui.call(this,t,n)}function vRe(t,n){this.b=t,this.a=n}function vj(t,n){ui.call(this,t,n)}function _Re(t,n){this.b=t,this.a=n}function _j(t,n){ui.call(this,t,n)}function JAt(t,n){this.b=t,this.a=n}function ERe(t,n){ui.call(this,t,n)}function yce(t,n){ui.call(this,t,n)}function c$(t,n){ui.call(this,t,n)}function LM(t,n,s){t.splice(n,0,s)}function Min(t,n,s){t.Mb(s)&&n.Cd(s)}function Din(t,n,s){n.Pe(t.a.Ye(s))}function Pin(t,n,s){n.Dd(t.a.Ze(s))}function Bin(t,n,s){n.Cd(t.a.Kb(s))}function Fin(t,n){return Oh(t.c,n)}function $in(t,n){return Oh(t.e,n)}function Ej(t,n){ui.call(this,t,n)}function wj(t,n){ui.call(this,t,n)}function MM(t,n){ui.call(this,t,n)}function wRe(t,n){ui.call(this,t,n)}function Is(t,n){ui.call(this,t,n)}function Sj(t,n){ui.call(this,t,n)}function e5t(t,n){this.a=t,this.b=n}function t5t(t,n){this.a=t,this.b=n}function r5t(t,n){this.a=t,this.b=n}function n5t(t,n){this.a=t,this.b=n}function i5t(t,n){this.a=t,this.b=n}function a5t(t,n){this.a=t,this.b=n}function s5t(t,n){this.b=t,this.a=n}function o5t(t,n){this.b=t,this.a=n}function SRe(t,n){this.b=t,this.a=n}function c6(t,n){this.c=t,this.d=n}function l5t(t,n){this.e=t,this.d=n}function c5t(t,n){this.a=t,this.b=n}function u5t(t,n){this.a=t,this.b=n}function h5t(t,n){this.a=t,this.b=n}function d5t(t,n){this.b=t,this.a=n}function f5t(t,n){this.b=n,this.c=t}function Tj(t,n){ui.call(this,t,n)}function u$(t,n){ui.call(this,t,n)}function vce(t,n){ui.call(this,t,n)}function TRe(t,n){ui.call(this,t,n)}function DM(t,n){ui.call(this,t,n)}function _ce(t,n){ui.call(this,t,n)}function Ece(t,n){ui.call(this,t,n)}function h$(t,n){ui.call(this,t,n)}function xRe(t,n){ui.call(this,t,n)}function wce(t,n){ui.call(this,t,n)}function PM(t,n){ui.call(this,t,n)}function CRe(t,n){ui.call(this,t,n)}function BM(t,n){ui.call(this,t,n)}function FM(t,n){ui.call(this,t,n)}function IT(t,n){ui.call(this,t,n)}function Sce(t,n){ui.call(this,t,n)}function Tce(t,n){ui.call(this,t,n)}function kRe(t,n){ui.call(this,t,n)}function d$(t,n){ui.call(this,t,n)}function e4(t,n){ui.call(this,t,n)}function xce(t,n){ui.call(this,t,n)}function xj(t,n){ui.call(this,t,n)}function f$(t,n){ui.call(this,t,n)}function OT(t,n){ui.call(this,t,n)}function Cj(t,n){ui.call(this,t,n)}function ARe(t,n){ui.call(this,t,n)}function Cce(t,n){ui.call(this,t,n)}function kce(t,n){ui.call(this,t,n)}function Ace(t,n){ui.call(this,t,n)}function Rce(t,n){ui.call(this,t,n)}function Ice(t,n){ui.call(this,t,n)}function Oce(t,n){ui.call(this,t,n)}function Nce(t,n){ui.call(this,t,n)}function p5t(t,n){this.b=t,this.a=n}function RRe(t,n){ui.call(this,t,n)}function g5t(t,n){this.a=t,this.b=n}function m5t(t,n){this.a=t,this.b=n}function b5t(t,n){this.a=t,this.b=n}function IRe(t,n){ui.call(this,t,n)}function ORe(t,n){ui.call(this,t,n)}function y5t(t,n){this.a=t,this.b=n}function Uin(t,n){return m6(),n!=t}function p$(t){return Pn(t.a),t.b}function Lce(t){return WTn(t,t.c),t}function v5t(){return A3t(),new JXt}function _5t(){iK(),this.a=new jIe}function E5t(){GQ(),this.a=new Rs}function w5t(){fhe(),this.b=new Rs}function S5t(t,n){this.b=t,this.d=n}function T5t(t,n){this.a=t,this.b=n}function x5t(t,n){this.a=t,this.b=n}function C5t(t,n){this.a=t,this.b=n}function k5t(t,n){this.b=t,this.a=n}function NRe(t,n){ui.call(this,t,n)}function LRe(t,n){ui.call(this,t,n)}function kj(t,n){ui.call(this,t,n)}function yw(t,n){ui.call(this,t,n)}function Mce(t,n){ui.call(this,t,n)}function Aj(t,n){ui.call(this,t,n)}function MRe(t,n){ui.call(this,t,n)}function DRe(t,n){ui.call(this,t,n)}function g$(t,n){ui.call(this,t,n)}function PRe(t,n){ui.call(this,t,n)}function Dce(t,n){ui.call(this,t,n)}function Rj(t,n){ui.call(this,t,n)}function Pce(t,n){ui.call(this,t,n)}function Bce(t,n){ui.call(this,t,n)}function Fce(t,n){ui.call(this,t,n)}function $ce(t,n){ui.call(this,t,n)}function BRe(t,n){ui.call(this,t,n)}function Uce(t,n){ui.call(this,t,n)}function FRe(t,n){ui.call(this,t,n)}function m$(t,n){ui.call(this,t,n)}function Gce(t,n){ui.call(this,t,n)}function $Re(t,n){ui.call(this,t,n)}function b$(t,n){ui.call(this,t,n)}function URe(t,n){ui.call(this,t,n)}function A5t(t,n){this.b=t,this.a=n}function R5t(t,n){this.b=t,this.a=n}function I5t(t,n){this.b=t,this.a=n}function O5t(t,n){this.b=t,this.a=n}function GRe(t,n){this.a=t,this.b=n}function N5t(t,n){this.a=t,this.b=n}function L5t(t,n){this.a=t,this.b=n}function Dt(t,n){this.a=t,this.b=n}function $M(t,n){ui.call(this,t,n)}function y$(t,n){ui.call(this,t,n)}function kA(t,n){ui.call(this,t,n)}function UM(t,n){ui.call(this,t,n)}function v$(t,n){ui.call(this,t,n)}function zce(t,n){ui.call(this,t,n)}function Ij(t,n){ui.call(this,t,n)}function GM(t,n){ui.call(this,t,n)}function Vce(t,n){ui.call(this,t,n)}function Oj(t,n){ui.call(this,t,n)}function t4(t,n){ui.call(this,t,n)}function _$(t,n){ui.call(this,t,n)}function zM(t,n){ui.call(this,t,n)}function VM(t,n){ui.call(this,t,n)}function E$(t,n){ui.call(this,t,n)}function Nj(t,n){ui.call(this,t,n)}function r4(t,n){ui.call(this,t,n)}function Hce(t,n){ui.call(this,t,n)}function M5t(t,n){ui.call(this,t,n)}function Lj(t,n){ui.call(this,t,n)}function D5t(t,n){this.a=t,this.b=n}function P5t(t,n){this.a=t,this.b=n}function B5t(t,n){this.a=t,this.b=n}function F5t(t,n){this.a=t,this.b=n}function $5t(t,n){this.a=t,this.b=n}function U5t(t,n){this.a=t,this.b=n}function js(t,n){this.a=t,this.b=n}function G5t(t,n){this.a=t,this.b=n}function z5t(t,n){this.a=t,this.b=n}function V5t(t,n){this.a=t,this.b=n}function H5t(t,n){this.a=t,this.b=n}function q5t(t,n){this.a=t,this.b=n}function Y5t(t,n){this.a=t,this.b=n}function W5t(t,n){this.b=t,this.a=n}function j5t(t,n){this.b=t,this.a=n}function K5t(t,n){this.b=t,this.a=n}function X5t(t,n){this.b=t,this.a=n}function Q5t(t,n){this.a=t,this.b=n}function Z5t(t,n){this.a=t,this.b=n}function Mj(t,n){ui.call(this,t,n)}function J5t(t,n){this.a=t,this.b=n}function eRt(t,n){this.a=t,this.b=n}function AA(t,n){ui.call(this,t,n)}function tRt(t,n){this.f=t,this.c=n}function zRe(t,n){return Oh(t.g,n)}function Gin(t,n){return Oh(n.b,t)}function rRt(t,n){return jde(t.a,n)}function zin(t,n){return-t.b.af(n)}function Vin(t,n){!!t&&Ki(uV,t,n)}function VRe(t,n){t.i=null,IX(t,n)}function Hin(t,n,s){W$t(n,Ufe(t,s))}function qin(t,n,s){W$t(n,Ufe(t,s))}function Yin(t,n){_Cn(t.a,b(n,58))}function nRt(t,n){mgn(t.a,b(n,12))}function Dj(t,n){this.a=t,this.b=n}function iRt(t,n){this.a=t,this.b=n}function aRt(t,n){this.a=t,this.b=n}function sRt(t,n){this.a=t,this.b=n}function oRt(t,n){this.a=t,this.b=n}function lRt(t,n){this.d=t,this.b=n}function cRt(t,n){this.e=t,this.a=n}function w$(t,n){this.b=t,this.c=n}function HRe(t,n){this.i=t,this.g=n}function qRe(t,n){this.d=t,this.e=n}function Win(t,n){Ogn(new kn(t),n)}function Pj(t){return $U(t.c,t.b)}function Jl(t){return!t?null:t.md()}function it(t){return t==null?null:t}function So(t){return typeof t===Lpe}function NT(t){return typeof t===g5}function LT(t){return typeof t===GDe}function vw(t,n){return Kc(t,n)==0}function Bj(t,n){return Kc(t,n)>=0}function HM(t,n){return Kc(t,n)!=0}function Fj(t,n){return jmn(t.Kc(),n)}function Uv(t,n){return t.Rd().Xb(n)}function uRt(t){return gd(t),t.d.gc()}function $j(t){return r8(t==null),t}function qM(t,n){return t.a+=""+n,t}function Ol(t,n){return t.a+=""+n,t}function YM(t,n){return t.a+=""+n,t}function pu(t,n){return t.a+=""+n,t}function Bi(t,n){return t.a+=""+n,t}function YRe(t,n){return t.a+=""+n,t}function jin(t){return""+(_n(t),t)}function hRt(t){Jh(this),A8(this,t)}function dRt(){DOe(),G6e.call(this)}function fRt(t,n){Y6e.call(this,t,n)}function pRt(t,n){Y6e.call(this,t,n)}function Uj(t,n){Y6e.call(this,t,n)}function al(t,n){cs(t,n,t.c.b,t.c)}function n4(t,n){cs(t,n,t.a,t.a.a)}function WRe(t){return qr(t,0),null}function gRt(){this.b=0,this.a=!1}function mRt(){this.b=0,this.a=!1}function bRt(){this.b=new TA(KT(12))}function yRt(){yRt=z,WQt=di(tfe())}function vRt(){vRt=z,gJt=di(Rzt())}function _Rt(){_Rt=z,Fnr=di(lPt())}function jRe(){jRe=z,g5e(),FFe=new Zn}function V0(t){return t.a=0,t.b=0,t}function ERt(t,n){return t.a=n.g+1,t}function qce(t,n){FT.call(this,t,n)}function Dr(t,n){es.call(this,t,n)}function i4(t,n){HRe.call(this,t,n)}function wRt(t,n){C$.call(this,t,n)}function Yce(t,n){j6.call(this,t,n)}function qi(t,n){fj(),Ki(Ote,t,n)}function SRt(t,n){t.q.setTime(z2(n))}function Kin(t){d.clearTimeout(t)}function Xin(t){return mi(t),new WM(t)}function TRt(t,n){return it(t)===it(n)}function xRt(t,n){return t.a.a.a.cc(n)}function Wce(t,n){return Of(t.a,0,n)}function KRe(t){return Jun(b(t,74))}function RA(t){return Ks((_n(t),t))}function Qin(t){return Ks((_n(t),t))}function CRt(t){return Qu(t.l,t.m,t.h)}function XRe(t,n){return jc(t.a,n.a)}function Zin(t,n){return dNt(t.a,n.a)}function Jin(t,n){return Ra(t.a,n.a)}function ym(t,n){return t.indexOf(n)}function ean(t,n){return t.j[n.p]==2}function _w(t,n){return t==n?0:t?1:-1}function Gj(t){return t<10?"0"+t:""+t}function cc(t){return typeof t===GDe}function tan(t){return t==mS||t==Ax}function ran(t){return t==mS||t==kx}function kRt(t,n){return jc(t.g,n.g)}function QRe(t){return rc(t.b.b,t,0)}function ARt(){pK.call(this,0,0,0,0)}function vm(){ZAe.call(this,new Ty)}function ZRe(t,n){L6(t,0,t.length,n)}function nan(t,n){return Gt(t.a,n),n}function ian(t,n){return r0(),n.a+=t}function aan(t,n){return r0(),n.a+=t}function san(t,n){return r0(),n.c+=t}function oan(t,n){return Gt(t.c,n),t}function JRe(t,n){return Xd(t.a,n),t}function RRt(t){this.a=v5t(),this.b=t}function IRt(t){this.a=v5t(),this.b=t}function sl(t){this.a=t.a,this.b=t.b}function WM(t){this.a=t,Tle.call(this)}function ORt(t){this.a=t,Tle.call(this)}function IA(){If.call(this,0,0,0,0)}function zj(t){return Xd(new Ns,t)}function NRt(t){return NK(b(t,123))}function Ad(t){return t.vh()&&t.wh()}function a4(t){return t!=qg&&t!=A_}function pb(t){return t==Kl||t==sc}function s4(t){return t==jf||t==Vg}function LRt(t){return t==mk||t==gk}function lan(t,n){return jc(t.g,n.g)}function MRt(t,n){return new j6(n,t)}function can(t,n){return new j6(n,t)}function eIe(t){return Icn(t.b.Kc(),t.a)}function jce(t,n){rO(t,n),G6(t,t.D)}function Kce(t,n,s){wX(t,n),EX(t,s)}function o4(t,n,s){zw(t,n),Gw(t,s)}function kf(t,n,s){eh(t,n),th(t,s)}function S$(t,n,s){B6(t,n),$6(t,s)}function T$(t,n,s){F6(t,n),U6(t,s)}function DRt(t,n,s){PIe.call(this,t,n,s)}function tIe(t){tRt.call(this,t,!0)}function PRt(){mj.call(this,"Tail",3)}function BRt(){mj.call(this,"Head",1)}function Gv(t){Am(),Hmn.call(this,t)}function Ew(t){pK.call(this,t,t,t,t)}function Xce(t){t.c=mt(ao,en,1,0,5,1)}function rIe(t){return t.b&&gpe(t),t.a}function nIe(t){return t.b&&gpe(t),t.c}function uan(t,n){if(Fg)return;t.b=n}function han(t,n){return t[t.length]=n}function dan(t,n){return t[t.length]=n}function fan(t,n){return XT(n,wg(t))}function pan(t,n){return XT(n,wg(t))}function gan(t,n){return kX(Yue(t.d),n)}function man(t,n){return kX(Yue(t.g),n)}function ban(t,n){return kX(Yue(t.j),n)}function No(t,n){es.call(this,t.b,n)}function yan(t,n){ii(nu(t.a),i7t(n))}function van(t,n){ii(pd(t.a),a7t(n))}function _an(t,n,s){kf(s,s.i+t,s.j+n)}function FRt(t,n,s){ls(t.c[n.g],n.g,s)}function Ean(t,n,s){b(t.c,71).Gi(n,s)}function Qce(t,n,s){return ls(t,n,s),s}function $Rt(t){Ju(t.Sf(),new ixt(t))}function l4(t){return t!=null?Da(t):0}function wan(t){return t==null?0:Da(t)}function jM(t){ia(),ow.call(this,t)}function URt(t){this.a=t,b6e.call(this,t)}function _g(){_g=z,d.Math.log(2)}function Af(){Af=z,$1=(VAt(),eor)}function GRt(){GRt=z,Lbe=new G8(Wye)}function yi(){yi=z,new zRt,new Ut}function zRt(){new Zn,new Zn,new Zn}function San(){throw _e(new fy(TXt))}function Tan(){throw _e(new fy(TXt))}function xan(){throw _e(new fy(xXt))}function Can(){throw _e(new fy(xXt))}function Zce(t){this.a=t,ij.call(this,t)}function Jce(t){this.a=t,ij.call(this,t)}function VRt(t,n){Iw(),this.a=t,this.b=n}function kan(t,n){mi(n),p4(t).Jc(new P)}function ks(t,n){Iue(t.c,t.c.length,n)}function _c(t){return t.an?1:0}function aIe(t,n){return Kc(t,n)>0?t:n}function Qu(t,n,s){return{l:t,m:n,h:s}}function Aan(t,n){t.a!=null&&nRt(n,t.a)}function Ran(t){tl(t,null),ko(t,null)}function Ian(t,n,s){return Ki(t.g,s,n)}function c4(t,n,s){return A7e(n,s,t.c)}function Oan(t,n,s){return Ki(t.k,s,n)}function Nan(t,n,s){return bRn(t,n,s),s}function Lan(t,n){return qd(),n.n.b+=t}function qRt(t){AOe.call(this),this.b=t}function sIe(t){WIe.call(this),this.a=t}function YRt(){mj.call(this,"Range",2)}function Vj(t){this.b=t,this.a=new Ut}function WRt(t){this.b=new Wn,this.a=t}function jRt(t){t.a=new Xe,t.c=new Xe}function KRt(t){t.a=new Zn,t.d=new Zn}function XRt(t){phe(t,null),ghe(t,null)}function QRt(t,n){return vRn(t.a,n,null)}function Man(t,n){return Ki(t.a,n.a,n)}function Uo(t){return new Dt(t.a,t.b)}function oIe(t){return new Dt(t.c,t.d)}function Dan(t){return new Dt(t.c,t.d)}function KM(t,n){return O5n(t.c,t.b,n)}function He(t,n){return t!=null&&afe(t,n)}function eue(t,n){return T1n(t.Kc(),n)!=-1}function Hj(t){return t.Ob()?t.Pb():null}function Pan(t){this.b=(Hr(),new Mle(t))}function lIe(t){this.a=t,Zn.call(this)}function ZRt(){C$.call(this,null,null)}function JRt(){Qj.call(this,null,null)}function eIt(){ui.call(this,"INSTANCE",0)}function tIt(){oMe(),this.a=new aD(aUe)}function rIt(t){return yp(t,0,t.length)}function Ban(t,n){return new _It(t.Kc(),n)}function cIe(t,n){return t.a.Bc(n)!=null}function nIt(t,n){ni(t),t.Gc(b(n,15))}function Fan(t,n,s){t.c.bd(n,b(s,136))}function $an(t,n,s){t.c.Ui(n,b(s,136))}function iIt(t,n){if(t.c)I6e(n),ILt(n)}function Uan(t,n){t.q.setHours(n),uD(t,n)}function Gan(t,n){Tw(n,t.a.a.a,t.a.a.b)}function zan(t,n,s,u){ls(t.a[n.g],s.g,u)}function tue(t,n,s){return t.a[n.g][s.g]}function Van(t,n){return t.e[n.c.p][n.p]}function Han(t,n){return t.c[n.c.p][n.p]}function Eg(t,n){return t.a[n.c.p][n.p]}function qan(t,n){return t.j[n.p]=rCn(n)}function rue(t,n){return t.a.Bc(n)!=null}function Yan(t,n){return rt(ht(n.a))<=t}function Wan(t,n){return rt(ht(n.a))>=t}function jan(t,n){return fNe(t.f,n.Pg())}function OA(t,n){return t.a*n.a+t.b*n.b}function Kan(t,n){return t.a0?n/(t*t):n*100}function _sn(t,n){return t>0?n*n/t:n*n*100}function MT(t,n){return b(Ag(t.a,n),34)}function Esn(t,n){return a_(),Ur(t,n.e,n)}function wsn(t,n,s){return uj(),s.Mg(t,n)}function Ssn(t){return Tb(),t.e.a+t.f.a/2}function Tsn(t,n,s){return Tb(),s.e.a-t*n}function xsn(t){return Tb(),t.e.b+t.f.b/2}function Csn(t,n,s){return Tb(),s.e.b-t*n}function MIt(t){t.d=new OIt(t),t.e=new Zn}function DIt(){this.a=new Pw,this.b=new Pw}function PIt(t){this.c=t,this.a=1,this.b=1}function BIt(t){Ope(),ekt(this),this.Ff(t)}function ksn(t,n,s){lX(),t.pf(n)&&s.Cd(t)}function Asn(t,n,s){return Gt(n,jBt(t,s))}function Tw(t,n,s){return t.a+=n,t.b+=s,t}function Rsn(t,n,s){return t.a*=n,t.b*=s,t}function kIe(t,n){return t.a=n.a,t.b=n.b,t}function Zj(t){return t.a=-t.a,t.b=-t.b,t}function JM(t,n,s){return t.a-=n,t.b-=s,t}function FIt(t){Va.call(this),T8(this,t)}function $It(){ui.call(this,"GROW_TREE",0)}function UIt(){ui.call(this,"POLYOMINO",0)}function Id(t,n,s){Mh.call(this,t,n,s,2)}function Isn(t,n,s){$8(nu(t.a),n,i7t(s))}function GIt(t,n){OM(),C$.call(this,t,n)}function AIe(t,n){yy(),Qj.call(this,t,n)}function zIt(t,n){yy(),AIe.call(this,t,n)}function VIt(t,n){yy(),Qj.call(this,t,n)}function Osn(t,n){return t.c.Fc(b(n,136))}function Nsn(t,n,s){$8(pd(t.a),n,a7t(s))}function HIt(t){this.c=t,eh(t,0),th(t,0)}function lue(t,n){Af(),bK.call(this,t,n)}function qIt(t,n){Af(),lue.call(this,t,n)}function RIe(t,n){Af(),lue.call(this,t,n)}function IIe(t,n){Af(),bK.call(this,t,n)}function YIt(t,n){Af(),RIe.call(this,t,n)}function WIt(t,n){Af(),IIe.call(this,t,n)}function jIt(t,n){Af(),bK.call(this,t,n)}function Lsn(t,n,s){return n.zl(t.e,t.c,s)}function Msn(t,n,s){return n.Al(t.e,t.c,s)}function OIe(t,n,s){return JQ(dU(t,n),s)}function cue(t,n){return e_(t.e,b(n,54))}function Dsn(t){return t==null?null:sIn(t)}function Psn(t){return t==null?null:Jwn(t)}function Bsn(t){return t==null?null:hc(t)}function Fsn(t){return t==null?null:hc(t)}function Jt(t){return r8(t==null||NT(t)),t}function ht(t){return r8(t==null||LT(t)),t}function wi(t){return r8(t==null||So(t)),t}function gb(t){if(t.o!=null)return;Oxn(t)}function NIe(t){if(!t)throw _e(new QF)}function $sn(t){if(!t)throw _e(new $le)}function Pn(t){if(!t)throw _e(new yc)}function DT(t){if(!t)throw _e(new Ah)}function KIt(t){if(!t)throw _e(new Cf)}function p6(){p6=z,dV=new Nkt,new Lkt}function f4(){f4=z,vk=new va("root")}function LIe(){O9t.call(this),this.Bb|=ml}function Usn(t,n){this.d=t,OTt(this),this.b=n}function MIe(t,n){Phe.call(this,t),this.a=n}function DIe(t,n){Phe.call(this,t),this.a=n}function PIe(t,n,s){iX.call(this,t,n,s,null)}function XIt(t,n,s){iX.call(this,t,n,s,null)}function R$(t,n){this.c=t,s6.call(this,t,n)}function e8(t,n){this.a=t,R$.call(this,t,n)}function BIe(t){this.q=new d.Date(z2(t))}function QIt(t){if(t>8)return 0;return t+1}function ZIt(t,n){if(Fg)return;Gt(t.a,n)}function Gsn(t,n){return o$(),W6(n.d.i,t)}function zsn(t,n){return e5(),new AVt(n,t)}function Vsn(t,n,s){return t.Ne(n,s)<=0?s:n}function Hsn(t,n,s){return t.Ne(n,s)<=0?n:s}function qsn(t,n){return b(Ag(t.b,n),143)}function Ysn(t,n){return b(Ag(t.c,n),233)}function uue(t){return b(nr(t.a,t.b),294)}function JIt(t){return new Dt(t.c,t.d+t.a)}function e6t(t){return(_n(t),t)?1231:1237}function t6t(t){return qd(),LRt(b(t,203))}function PT(){PT=z,L$e=Tr((Md(),IE))}function Wsn(t,n){n.a?QTn(t,n):rue(t.a,n.b)}function I$(t,n,s){++t.j,t.tj(),Dhe(t,n,s)}function r6t(t,n,s){++t.j,t.qj(n,t.Zi(n,s))}function n6t(t,n,s){var u=t.fd(n);u.Rb(s)}function FIe(t,n,s){return s=Jd(t,n,6,s),s}function $Ie(t,n,s){return s=Jd(t,n,3,s),s}function UIe(t,n,s){return s=Jd(t,n,9,s),s}function Em(t,n){return W$(n,u9e),t.f=n,t}function GIe(t,n){return(n&sa)%t.d.length}function i6t(t,n,s){return _De(t.c,t.b,n,s)}function a6t(t,n){this.c=t,Uw.call(this,n)}function s6t(t,n){this.a=t,Y4t.call(this,n)}function O$(t,n){this.a=t,Y4t.call(this,n)}function es(t,n){va.call(this,t),this.a=n}function zIe(t,n){h5e.call(this,t),this.a=n}function hue(t,n){h5e.call(this,t),this.a=n}function jsn(t){w7e.call(this,0,0),this.f=t}function o6t(t,n,s){return t.a+=yp(n,0,s),t}function N$(t){return!t.a&&(t.a=new Z),t.a}function VIe(t,n){var s=t.e;return t.e=n,s}function HIe(t,n){var s=n;return!!t.Fe(s)}function Ksn(t,n){return an(),t==n?0:t?1:-1}function BT(t,n){t.a.bd(t.b,n),++t.b,t.c=-1}function L$(t){t.b?L$(t.b):t.f.c.zc(t.e,t.d)}function l6t(t){Jh(t.e),t.d.b=t.d,t.d.a=t.d}function Xsn(t,n,s){L2(),ATt(t,n.Ve(t.a,s))}function qIe(t,n,s){return GA(t,b(n,22),s)}function t0(t,n){return JW(Array(n),t)}function Qsn(t){return gi(Vv(t,32))^gi(t)}function due(t){return String.fromCharCode(t)}function Zsn(t){return t==null?null:t.message}function Jsn(t,n,s){return t.apply(n,s);var u}function eon(t,n){var s=t[h0e];s.call(t,n)}function ton(t,n){var s=t[h0e];s.call(t,n)}function ron(t,n){return o$(),!W6(n.d.i,t)}function YIe(t,n,s,u){pK.call(this,t,n,s,u)}function c6t(){Jj.call(this),this.a=new Oo}function WIe(){this.n=new Oo,this.o=new Oo}function u6t(){this.b=new Oo,this.c=new Ut}function h6t(){this.a=new Ut,this.b=new Ut}function d6t(){this.a=new ft,this.b=new ukt}function jIe(){this.b=new Ty,this.a=new Ty}function f6t(){this.b=new Rs,this.a=new Rs}function p6t(){this.b=new Zn,this.a=new Zn}function g6t(){this.b=new G3t,this.a=new uvt}function m6t(){this.a=new CSt,this.b=new tyt}function b6t(){this.a=new Ut,this.d=new Ut}function Jj(){this.n=new yA,this.i=new IA}function y6t(t){this.a=(Kd(t,mx),new Gu(t))}function v6t(t){this.a=(Kd(t,mx),new Gu(t))}function non(t){return t<100?null:new Pv(t)}function ion(t,n){return t.n.a=(_n(n),n)+10}function aon(t,n){return t.n.a=(_n(n),n)+10}function son(t,n){return n==t||mO(PQ(n),t)}function _6t(t,n){return Ki(t.a,n,"")==null}function oon(t,n){var s=n.qi(t.a);return s}function ua(t,n){return t.a+=n.a,t.b+=n.b,t}function no(t,n){return t.a-=n.a,t.b-=n.b,t}function lon(t){return kT(t.j.c,0),t.a=-1,t}function KIe(t,n,s){return s=Jd(t,n,11,s),s}function con(t,n,s){s!=null&&AX(n,mfe(t,s))}function uon(t,n,s){s!=null&&RX(n,mfe(t,s))}function MA(t,n,s,u){kt.call(this,t,n,s,u)}function XIe(t,n,s,u){kt.call(this,t,n,s,u)}function E6t(t,n,s,u){XIe.call(this,t,n,s,u)}function w6t(t,n,s,u){TK.call(this,t,n,s,u)}function fue(t,n,s,u){TK.call(this,t,n,s,u)}function QIe(t,n,s,u){TK.call(this,t,n,s,u)}function S6t(t,n,s,u){fue.call(this,t,n,s,u)}function ZIe(t,n,s,u){fue.call(this,t,n,s,u)}function Wr(t,n,s,u){QIe.call(this,t,n,s,u)}function T6t(t,n,s,u){ZIe.call(this,t,n,s,u)}function x6t(t,n,s,u){X6e.call(this,t,n,s,u)}function FT(t,n){Gl.call(this,$D+t+hE+n)}function JIe(t,n){return t.jk().wi().ri(t,n)}function e6e(t,n){return t.jk().wi().ti(t,n)}function C6t(t,n){return _n(t),it(t)===it(n)}function Br(t,n){return _n(t),it(t)===it(n)}function hon(t,n){return t.b.Bd(new KAt(t,n))}function don(t,n){return t.b.Bd(new XAt(t,n))}function k6t(t,n){return t.b.Bd(new QAt(t,n))}function fon(t,n){return t.e=b(t.d.Kb(n),159)}function t6e(t,n,s){return t.lastIndexOf(n,s)}function pon(t,n,s){return Ra(t[n.a],t[s.a])}function gon(t,n){return At(n,(Qt(),Tz),t)}function mon(t,n){return jc(n.a.d.p,t.a.d.p)}function bon(t,n){return jc(t.a.d.p,n.a.d.p)}function yon(t,n){return Ra(t.c-t.s,n.c-n.s)}function von(t,n){return Ra(t.b.e.a,n.b.e.a)}function _on(t,n){return Ra(t.c.e.a,n.c.e.a)}function A6t(t){return!t.c?-1:rc(t.c.a,t,0)}function DA(t){return t==RE||t==B1||t==xu}function r6e(t,n){this.c=t,Uue.call(this,t,n)}function R6t(t,n,s){this.a=t,TIe.call(this,n,s)}function I6t(t){this.c=t,Uj.call(this,SG,0)}function O6t(t,n,s){this.c=n,this.b=s,this.a=t}function M$(t){m6(),this.d=t,this.a=new h4}function N6t(t){wm(),this.a=(Hr(),new e6(t))}function Eon(t,n){pb(t.f)?Sxn(t,n):ewn(t,n)}function L6t(t,n){Mcn.call(this,t,t.length,n)}function won(t,n){if(Fg)return;!!n&&(t.d=n)}function M6t(t,n){return He(n,15)&&lVt(t.c,n)}function Son(t,n,s){return b(t.c,71).Wk(n,s)}function eK(t,n,s){return b(t.c,71).Xk(n,s)}function Ton(t,n,s){return Lsn(t,b(n,343),s)}function n6e(t,n,s){return Msn(t,b(n,343),s)}function xon(t,n,s){return tUt(t,b(n,343),s)}function D6t(t,n,s){return fwn(t,b(n,343),s)}function t8(t,n){return n==null?null:ex(t.b,n)}function i6e(t){return LT(t)?(_n(t),t):t.ue()}function tK(t){return!isNaN(t)&&!isFinite(t)}function pue(t){jRt(this),Hd(this),Po(this,t)}function Zh(t){Xce(this),_6e(this.c,0,t.Pc())}function Rf(t,n,s){this.a=t,this.b=n,this.c=s}function P6t(t,n,s){this.a=t,this.b=n,this.c=s}function B6t(t,n,s){this.d=t,this.b=s,this.a=n}function F6t(t){this.a=t,fb(),Vc(Date.now())}function $6t(t){Nd(t.a),vNe(t.c,t.b),t.b=null}function gue(){gue=z,s$e=new Ye,eQt=new Qe}function U6t(){U6t=z,sor=mt(ao,en,1,0,5,1)}function G6t(){G6t=z,xor=mt(ao,en,1,0,5,1)}function a6e(){a6e=z,Cor=mt(ao,en,1,0,5,1)}function wm(){wm=z,new p5e((Hr(),Hr(),Jo))}function Con(t){return M6(),hi((W8t(),nQt),t)}function kon(t){return rd(),hi((B8t(),cQt),t)}function Aon(t){return lQ(),hi((wMt(),gQt),t)}function Ron(t){return gX(),hi((SMt(),mQt),t)}function Ion(t){return HQ(),hi((wPt(),bQt),t)}function Oon(t){return K0(),hi((D8t(),_Qt),t)}function Non(t){return td(),hi((M8t(),wQt),t)}function Lon(t){return ph(),hi((P8t(),TQt),t)}function Mon(t){return iZ(),hi((yRt(),WQt),t)}function Don(t){return Yw(),hi((K8t(),KQt),t)}function Pon(t){return s5(),hi((Q8t(),QQt),t)}function Bon(t){return Y8(),hi((X8t(),eZt),t)}function Fon(t){return lj(),hi((j7t(),tZt),t)}function $on(t){return mX(),hi((TMt(),yZt),t)}function Uon(t){return w8(),hi((F8t(),HZt),t)}function Gon(t){return Xo(),hi((NDt(),jZt),t)}function zon(t){return X6(),hi((J8t(),JZt),t)}function Von(t){return Z2(),hi((Z8t(),aJt),t)}function s6e(t,n){if(!t)throw _e(new fn(n))}function g6(t){if(!t)throw _e(new zl(zDe))}function mue(t,n){if(t!=n)throw _e(new Cf)}function z6t(t,n,s){this.a=t,this.b=n,this.c=s}function o6e(t,n,s){this.a=t,this.b=n,this.c=s}function V6t(t,n,s){this.a=t,this.b=n,this.c=s}function rK(t,n,s){this.b=t,this.a=n,this.c=s}function l6e(t,n,s){this.b=t,this.c=n,this.a=s}function c6e(t,n,s){this.a=t,this.b=n,this.c=s}function nK(t,n,s){this.e=n,this.b=t,this.d=s}function H6t(t,n,s){this.b=t,this.a=n,this.c=s}function Hon(t,n,s){return L2(),t.a.Yd(n,s),n}function bue(t){var n=new In;return n.e=t,n}function u6e(t){var n=new gkt;return n.b=t,n}function D$(){D$=z,MJ=new Imt,DJ=new Omt}function iK(){iK=z,_Jt=new i1t,vJt=new a1t}function r0(){r0=z,xJt=new fbt,CJt=new pbt}function qon(t){return Hw(),hi((g8t(),PJt),t)}function Yon(t){return il(),hi((vRt(),gJt),t)}function Won(t){return GX(),hi((tDt(),yJt),t)}function jon(t){return Ig(),hi((eDt(),RJt),t)}function Kon(t){return ax(),hi((LDt(),OJt),t)}function Xon(t){return zQ(),hi((oPt(),BJt),t)}function Qon(t){return u5(),hi((i9t(),FJt),t)}function Zon(t){return oX(),hi((OMt(),$Jt),t)}function Jon(t){return x8(),hi((f8t(),UJt),t)}function eln(t){return TX(),hi((p8t(),GJt),t)}function tln(t){return My(),hi((MDt(),zJt),t)}function rln(t){return bU(),hi((kMt(),VJt),t)}function nln(t){return yO(),hi((o9t(),KJt),t)}function iln(t){return Tl(),hi((FPt(),XJt),t)}function aln(t){return K6(),hi((b8t(),QJt),t)}function sln(t){return Sb(),hi((y8t(),JJt),t)}function oln(t){return XK(),hi((CMt(),eer),t)}function lln(t){return XU(),hi((s9t(),jJt),t)}function cln(t){return K2(),hi((m8t(),qJt),t)}function uln(t){return RQ(),hi((a9t(),YJt),t)}function hln(t){return uU(),hi((AMt(),WJt),t)}function dln(t){return Uf(),hi((PDt(),ter),t)}function fln(t){return $y(),hi((vPt(),xrr),t)}function pln(t){return D8(),hi((v8t(),Crr),t)}function gln(t){return nx(),hi((rDt(),krr),t)}function mln(t){return q8(),hi((DDt(),Arr),t)}function bln(t){return _p(),hi(($Pt(),Rrr),t)}function yln(t){return Cm(),hi((nDt(),Irr),t)}function vln(t){return gU(),hi((RMt(),Orr),t)}function _ln(t){return Sl(),hi((w8t(),Lrr),t)}function Eln(t){return FX(),hi((_8t(),Mrr),t)}function wln(t){return N8(),hi((E8t(),Drr),t)}function Sln(t){return nO(),hi((S8t(),Prr),t)}function Tln(t){return SX(),hi((T8t(),Brr),t)}function xln(t){return zX(),hi((x8t(),Frr),t)}function Cln(t){return Vw(),hi((L8t(),enr),t)}function kln(t){return v8(),hi((IMt(),anr),t)}function Aln(t){return Tm(),hi((MMt(),dnr),t)}function Rln(t){return Sg(),hi((DMt(),pnr),t)}function Iln(t){return Y0(),hi((PMt(),Rnr),t)}function Oln(t){return Bw(),hi((BMt(),Pnr),t)}function Nln(t){return c5(),hi((uDt(),Bnr),t)}function Lln(t){return lD(),hi((_Rt(),Fnr),t)}function Mln(t){return L8(),hi((C8t(),$nr),t)}function Dln(t){return M8(),hi((cDt(),lir),t)}function Pln(t){return WK(),hi((NMt(),cir),t)}function Bln(t){return OX(),hi((LMt(),pir),t)}function Fln(t){return xQ(),hi((BDt(),mir),t)}function $ln(t){return OU(),hi((k8t(),yir),t)}function Uln(t){return cX(),hi((FMt(),bir),t)}function Gln(t){return yQ(),hi((lDt(),Fir),t)}function zln(t){return BX(),hi((A8t(),$ir),t)}function Vln(t){return nQ(),hi((R8t(),Uir),t)}function Hln(t){return pQ(),hi((I8t(),zir),t)}function qln(t){return QX(),hi((O8t(),qir),t)}function Yln(t){return tX(),hi(($Mt(),dar),t)}function Wln(t){return H6(),hi((xMt(),pJt),t)}function jln(t){return bn(),hi((l9t(),cJt),t)}function Kln(t){return uX(),hi((N8t(),far),t)}function Xln(t){return fde(),hi((UMt(),par),t)}function Qln(t){return iD(),hi((FDt(),mar),t)}function Zln(t){return hj(),hi((rMt(),yar),t)}function Jln(t){return BU(),hi((U8t(),bar),t)}function ecn(t){return dj(),hi((nMt(),Ear),t)}function tcn(t){return aU(),hi((GMt(),war),t)}function rcn(t){return ZU(),hi(($Dt(),Sar),t)}function ncn(t){return AM(),hi((iMt(),$ar),t)}function icn(t){return kU(),hi((zMt(),Uar),t)}function acn(t){return Q0(),hi((GDt(),War),t)}function scn(t){return Fy(),hi((aPt(),Kar),t)}function ocn(t){return _1(),hi((c9t(),Xar),t)}function lcn(t){return eE(),hi((u9t(),rsr),t)}function ccn(t){return Ms(),hi((UDt(),Esr),t)}function ucn(t){return Rg(),hi((G8t(),wsr),t)}function hcn(t){return kb(),hi((hDt(),Ssr),t)}function dcn(t){return kQ(),hi((h9t(),Tsr),t)}function fcn(t){return Cb(),hi(($8t(),Csr),t)}function pcn(t){return Qd(),hi((dDt(),Asr),t)}function gcn(t){return cx(),hi((EPt(),Rsr),t)}function mcn(t){return x4(),hi((zDt(),Isr),t)}function bcn(t){return Ao(),hi((d9t(),Osr),t)}function ycn(t){return nd(),hi((f9t(),Nsr),t)}function vcn(t){return Ht(),hi((VDt(),Lsr),t)}function _cn(t){return Md(),hi((fDt(),Fsr),t)}function Ecn(t){return bd(),hi((_Pt(),$sr),t)}function wcn(t){return n5(),hi((z8t(),Usr),t)}function Scn(t,n){return(_n(t),t)+(_n(n),n)}function Tcn(t){return yue(),hi((VMt(),Gsr),t)}function xcn(t){return JX(),hi((pDt(),zsr),t)}function Ccn(t){return VX(),hi((gDt(),qsr),t)}function m6(){m6=z,RVe=(Ht(),yn),Uee=Cn}function yue(){yue=z,YYe=new _Ot,WYe=new aNt}function kcn(t){return!t.e&&(t.e=new Ut),t.e}function vue(t,n){this.c=t,this.a=n,this.b=n-t}function q6t(t,n,s){this.a=t,this.b=n,this.c=s}function _ue(t,n,s){this.a=t,this.b=n,this.c=s}function h6e(t,n,s){this.a=t,this.b=n,this.c=s}function d6e(t,n,s){this.a=t,this.b=n,this.c=s}function Y6t(t,n,s){this.a=t,this.b=n,this.c=s}function W6t(t,n,s){this.a=t,this.b=n,this.c=s}function _y(t,n,s){this.e=t,this.a=n,this.c=s}function j6t(t,n,s){Af(),IOe.call(this,t,n,s)}function Eue(t,n,s){Af(),fOe.call(this,t,n,s)}function f6e(t,n,s){Af(),fOe.call(this,t,n,s)}function p6e(t,n,s){Af(),fOe.call(this,t,n,s)}function K6t(t,n,s){Af(),Eue.call(this,t,n,s)}function g6e(t,n,s){Af(),Eue.call(this,t,n,s)}function X6t(t,n,s){Af(),g6e.call(this,t,n,s)}function Q6t(t,n,s){Af(),f6e.call(this,t,n,s)}function Z6t(t,n,s){Af(),p6e.call(this,t,n,s)}function wue(t){pK.call(this,t.d,t.c,t.a,t.b)}function m6e(t){pK.call(this,t.d,t.c,t.a,t.b)}function b6e(t){this.d=t,OTt(this),this.b=Cun(t.d)}function Acn(t){return _O(),hi((sPt(),aor),t)}function P$(t,n){return mi(t),mi(n),new sAt(t,n)}function PA(t,n){return mi(t),mi(n),new hOt(t,n)}function Rcn(t,n){return mi(t),mi(n),new dOt(t,n)}function Icn(t,n){return mi(t),mi(n),new gAt(t,n)}function Sue(t){return Pn(t.b!=0),Df(t,t.a.a)}function Ocn(t){return Pn(t.b!=0),Df(t,t.c.b)}function Ncn(t){return!t.c&&(t.c=new qI),t.c}function b6(t){var n=new Ut;return Whe(n,t),n}function Lcn(t){var n=new Rs;return Whe(n,t),n}function J6t(t){var n=new v5e;return sde(n,t),n}function B$(t){var n=new Va;return sde(n,t),n}function b(t,n){return r8(t==null||afe(t,n)),t}function Mcn(t,n,s){ZOt.call(this,n,s),this.a=t}function eOt(t,n){this.c=t,this.b=n,this.a=!1}function tOt(){this.a=";,;",this.b="",this.c=""}function rOt(t,n,s){this.b=t,fRt.call(this,n,s)}function y6e(t,n,s){this.c=t,bj.call(this,n,s)}function v6e(t,n,s){c6.call(this,t,n),this.b=s}function _6e(t,n,s){d8e(s,0,t,n,s.length,!1)}function p1(t,n,s,u,f){t.b=n,t.c=s,t.d=u,t.a=f}function E6e(t,n,s,u,f){t.d=n,t.c=s,t.a=u,t.b=f}function Dcn(t,n){if(n)t.b=n,t.a=(Yv(n),n.a)}function F$(t,n){if(!t)throw _e(new fn(n))}function BA(t,n){if(!t)throw _e(new zl(n))}function w6e(t,n){if(!t)throw _e(new u3t(n))}function Pcn(t,n){return cj(),jc(t.d.p,n.d.p)}function Bcn(t,n){return Tb(),Ra(t.e.b,n.e.b)}function Fcn(t,n){return Tb(),Ra(t.e.a,n.e.a)}function $cn(t,n){return jc(bOt(t.d),bOt(n.d))}function aK(t,n){return!!n&&RK(t,n.d)?n:null}function Ucn(t,n){return n==(Ht(),yn)?t.c:t.d}function S6e(t){return Qv($un(cc(t)?mp(t):t))}function Gcn(t){return new Dt(t.c+t.b,t.d+t.a)}function nOt(t){return t!=null&&!Hde(t,J9,eP)}function zcn(t,n){return(DBt(t)<<4|DBt(n))&Ds}function iOt(t,n,s,u,f){t.c=n,t.d=s,t.b=u,t.a=f}function T6e(t){var n,s;n=t.b,s=t.c,t.b=s,t.c=n}function x6e(t){var n,s;s=t.d,n=t.a,t.d=n,t.a=s}function Vcn(t,n){var s=t.c;return nLe(t,n),s}function C6e(t,n){return n<0?t.g=-1:t.g=n,t}function sK(t,n){return Qgn(t),t.a*=n,t.b*=n,t}function aOt(t,n,s){JDt.call(this,n,s),this.d=t}function $$(t,n,s){qRe.call(this,t,n),this.c=s}function oK(t,n,s){qRe.call(this,t,n),this.c=s}function k6e(t){a6e(),DW.call(this),this.ci(t)}function sOt(){O6(),uhn.call(this,(Fv(),Np))}function oOt(t){return ia(),++hs,new g1(0,t)}function lOt(){lOt=z,lve=(Hr(),new Lle(cme))}function lK(){lK=z,new F7e((Wle(),Eme),(Yle(),_me))}function cOt(){cOt=z,YFe=mt(qo,Bt,17,256,0,1)}function uOt(){this.b=rt(ht(jt((c0(),e1e))))}function Tue(t){this.b=t,this.a=D2(this.b.a).Od()}function hOt(t,n){this.b=t,this.a=n,Tle.call(this)}function dOt(t,n){this.a=t,this.b=n,Tle.call(this)}function fOt(t,n,s){this.a=t,i4.call(this,n,s)}function pOt(t,n,s){this.a=t,i4.call(this,n,s)}function y6(t,n,s){var u=new GT(s);j0(t,n,u)}function A6e(t,n,s){var u=t[n];return t[n]=s,u}function cK(t){var n=t.slice();return Uhe(n,t)}function uK(t){var n=t.n;return t.a.b+n.d+n.a}function gOt(t){var n=t.n;return t.e.b+n.d+n.a}function R6e(t){var n=t.n;return t.e.a+n.b+n.c}function I6e(t){t.a.b=t.b,t.b.a=t.a,t.a=t.b=null}function Oi(t,n){return cs(t,n,t.c.b,t.c),!0}function Hcn(t){if(t.a)return t.a;return Zue(t)}function qcn(t){return qA(),E1(t)==Ya(n_(t))}function Ycn(t){return qA(),n_(t)==Ya(E1(t))}function xw(t,n){return X8(t,new c6(n.a,n.b))}function Wcn(t,n){return OK(),ffe(t,n),new BNt(t,n)}function jcn(t,n){return t.c=n)throw _e(new C5e)}function $T(t,n){return DU(t,(_n(n),new FTt(n)))}function $A(t,n){return DU(t,(_n(n),new $Tt(n)))}function eNt(t,n,s){return _6n(t,b(n,12),b(s,12))}function tNt(t){return Dh(),b(t,12).g.c.length!=0}function rNt(t){return Dh(),b(t,12).e.c.length!=0}function Nun(t,n){return e5(),Ra(n.a.o.a,t.a.o.a)}function Lun(t,n){(n.Bb&Hc)!=0&&!t.a.o&&(t.a.o=n)}function Mun(t,n){n.Ug("General 'Rotator",1),jRn(t)}function Dun(t,n,s){n.qf(s,rt(ht(An(t.b,s)))*t.a)}function nNt(t,n,s){return D4(),q6(t,n)&&q6(t,s)}function s8(t){return nd(),!t.Hc(Gb)&&!t.Hc(R_)}function Pun(t){if(t.e)return bNe(t.e);return null}function o8(t){if(cc(t))return""+t;return oVt(t)}function K6e(t){var n=t;while(n.f)n=n.f;return n}function Bun(t,n,s){return ls(n,0,D6e(n[0],s[0])),n}function Ey(t,n,s,u){var f=t.i;f.i=n,f.a=s,f.b=u}function kt(t,n,s,u){Os.call(this,t,n,s),this.b=u}function go(t,n,s,u,f){Fhe.call(this,t,n,s,u,f,-1)}function l8(t,n,s,u,f){oU.call(this,t,n,s,u,f,-1)}function TK(t,n,s,u){$$.call(this,t,n,s),this.b=u}function iNt(t){tRt.call(this,t,!1),this.a=!1}function aNt(){M5t.call(this,"LOOKAHEAD_LAYOUT",1)}function sNt(t){this.b=t,NA.call(this,t),hIt(this)}function oNt(t){this.b=t,k$.call(this,t),dIt(this)}function UT(t,n,s){this.a=t,MA.call(this,n,s,5,6)}function X6e(t,n,s,u){this.b=t,Os.call(this,n,s,u)}function lNt(t,n){this.b=t,pTt.call(this,t.b),this.a=n}function cNt(t){this.a=YFt(t.a),this.b=new Zh(t.b)}function Q6e(t,n){Iw(),pin.call(this,t,WX(new Qh(n)))}function xK(t,n){return ia(),++hs,new dOe(t,n,0)}function Bue(t,n){return ia(),++hs,new dOe(6,t,n)}function Go(t,n){_n(n);while(t.Ob())n.Cd(t.Pb())}function Zu(t,n){return So(n)?she(t,n):!!wl(t.f,n)}function Fue(t,n){return n.Vh()?e_(t.b,b(n,54)):n}function Fun(t,n){return Br(t.substr(0,n.length),n)}function m1(t){return new Nn(new yIe(t.a.length,t.a))}function CK(t){return new Dt(t.c+t.b/2,t.d+t.a/2)}function $un(t){return Qu(~t.l&yd,~t.m&yd,~t.h&Mb)}function $ue(t){return typeof t===vG||typeof t===Mpe}function Jh(t){t.f=new RRt(t),t.i=new IRt(t),++t.g}function uNt(t){if(!t)throw _e(new yc);return t.d}function UA(t){var n=O8(t);return Pn(n!=null),n}function Uun(t){var n=ryn(t);return Pn(n!=null),n}function _6(t,n){var s=t.a.gc();return dNe(n,s),s-n}function $s(t,n){var s=t.a.zc(n,t);return s==null}function G$(t,n){return t.a.zc(n,(an(),g_))==null}function Z6e(t){return new Pr(null,qun(t,t.length))}function J6e(t,n,s){return OHt(t,b(n,42),b(s,176))}function GA(t,n,s){return s0(t.a,n),A6e(t.b,n.g,s)}function Gun(t,n,s){v6(s,t.a.c.length),Lf(t.a,s,n)}function st(t,n,s,u){lBt(n,s,t.length),zun(t,n,s,u)}function zun(t,n,s,u){var f;for(f=n;f0?d.Math.log(t/n):-100}function dNt(t,n){return Kc(t,n)<0?-1:Kc(t,n)>0?1:0}function z$(t,n){nIt(t,He(n,160)?n:b(n,2036).Rl())}function nOe(t,n){if(t==null)throw _e(new EA(n))}function qun(t,n){return Wgn(n,t.length),new vOt(t,n)}function iOe(t,n){if(!n)return!1;return Po(t,n)}function Yun(){return KW(),Ce(Te(LXt,1),Rt,549,0,[Tme])}function u8(t){return t.e==0?t:new B2(-t.e,t.d,t.a)}function Wun(t,n){return Ra(t.c.c+t.c.b,n.c.c+n.c.b)}function V$(t,n){cs(t.d,n,t.b.b,t.b),++t.a,t.c=null}function fNt(t,n){return!t.c?Gt(t.b,n):fNt(t.c,n),t}function jun(t,n,s){var u=jT(t,n);return whe(t,n,s),u}function pNt(t,n,s){var u;for(u=0;u=t.g}function ls(t,n,s){return $sn(s==null||L3n(t,s)),t[n]=s}function cOe(t,n){return pn(n,t.length+1),t.substr(n)}function Kue(t,n){_n(n);while(t.c=t)return new sRe;return bmn(t-1)}function zo(t){if(!t.a&&!!t.c)return t.c.b;return t.a}function pOe(t){if(He(t,616))return t;return new LLt(t)}function Yv(t){if(!t.c)t_(t),t.d=!0;else Yv(t.c)}function f8(t){if(!t.c)t.d=!0,DCn(t);else t.c.$e()}function MNt(t){t.b=!1,t.c=!1,t.d=!1,t.a=!1}function DNt(t){var n,s;return n=t.c.i.c,s=t.d.i.c,n==s}function fhn(t,n){var s=t.Ih(n);s>=0?t.ki(s):n8e(t,n)}function PNt(t,n){t.c<0||t.b.b0)t=t<<1|(t<0?1:0);return t}function HNt(t,n){var s=new gu(t);return rn(n.c,s),s}function qNt(t,n){t.u.Hc((nd(),Gb))&&yTn(t,n),P0n(t,n)}function zc(t,n){return it(t)===it(n)||t!=null&&da(t,n)}function Nl(t,n){return Rue(t.a,n)?t.b[b(n,22).g]:null}function Chn(){return lj(),Ce(Te(P$e,1),Rt,489,0,[Wme])}function khn(){return hj(),Ce(Te(lqe,1),Rt,490,0,[vye])}function Ahn(){return dj(),Ce(Te(_ar,1),Rt,558,0,[_ye])}function Rhn(){return AM(),Ce(Te(Rqe,1),Rt,539,0,[zz])}function NK(t){return!t.n&&(t.n=new kt(Dl,t,1,7)),t.n}function Que(t){return!t.c&&(t.c=new kt(ld,t,9,9)),t.c}function yOe(t){return!t.c&&(t.c=new Wr(qn,t,5,8)),t.c}function Ihn(t){return!t.b&&(t.b=new Wr(qn,t,4,7)),t.b}function H$(t){return t.j.c.length=0,_Oe(t.c),lon(t.a),t}function x6(t){return t.e==eN&&Krn(t,Tvn(t.g,t.b)),t.e}function q$(t){return t.f==eN&&Qrn(t,g2n(t.g,t.b)),t.f}function Xi(t,n,s,u){return pPt(t,n,s,!1),jX(t,u),t}function YNt(t,n){this.b=t,Uue.call(this,t,n),hIt(this)}function WNt(t,n){this.b=t,r6e.call(this,t,n),dIt(this)}function p8(t){this.d=t,this.a=this.d.b,this.b=this.d.c}function vOe(t,n){this.b=t,this.c=n,this.a=new xA(this.b)}function Ko(t,n){return pn(n,t.length),t.charCodeAt(n)}function Ohn(t,n){s7e(t,rt(xb(n,"x")),rt(xb(n,"y")))}function Nhn(t,n){s7e(t,rt(xb(n,"x")),rt(xb(n,"y")))}function pa(t,n){return t_(t),new Pr(t,new INe(n,t.a))}function ec(t,n){return t_(t),new Pr(t,new gNe(n,t.a))}function zT(t,n){return t_(t),new MIe(t,new r8t(n,t.a))}function LK(t,n){return t_(t),new DIe(t,new n8t(n,t.a))}function Lhn(t,n){return new bLt(b(mi(t),50),b(mi(n),50))}function Mhn(t,n){return Ra(t.d.c+t.d.b/2,n.d.c+n.d.b/2)}function jNt(t,n,s){s.a?th(t,n.b-t.f/2):eh(t,n.a-t.g/2)}function Dhn(t,n){return Ra(t.g.c+t.g.b/2,n.g.c+n.g.b/2)}function Phn(t,n){return cRe(),Ra((_n(t),t),(_n(n),n))}function Bhn(t){return t!=null&&i$(Nte,t.toLowerCase())}function _Oe(t){var n;for(n=t.Kc();n.Ob();)n.Pb(),n.Qb()}function p4(t){var n=t.b;return!n&&(t.b=n=new sTt(t)),n}function Zue(t){var n=Emn(t);if(n)return n;return null}function KNt(t,n){var s,u;return s=t/n,u=Ks(s),s>u&&++u,u}function Fhn(t,n,s){var u=b(t.d.Kb(s),159);!!u&&u.Nb(n)}function $hn(t,n,s){GAn(t.a,s),y1n(s),lxn(t.b,s),o5n(n,s)}function MK(t,n,s,u){this.a=t,this.c=n,this.b=s,this.d=u}function EOe(t,n,s,u){this.c=t,this.b=n,this.a=s,this.d=u}function XNt(t,n,s,u){this.c=t,this.b=n,this.d=s,this.a=u}function If(t,n,s,u){this.c=t,this.d=n,this.b=s,this.a=u}function QNt(t,n,s,u){this.a=t,this.d=n,this.c=s,this.b=u}function Jue(t,n,s,u){this.a=t,this.e=n,this.d=s,this.c=u}function ZNt(t,n,s,u){this.a=t,this.c=n,this.d=s,this.b=u}function ehe(t,n,s){this.a=jDe,this.d=t,this.b=n,this.c=s}function VA(t,n,s,u){ui.call(this,t,n),this.a=s,this.b=u}function JNt(t,n){this.d=(_n(t),t),this.a=16449,this.c=n}function eLt(t){this.a=new Ut,this.e=mt(ci,Bt,53,t,0,2)}function Uhn(t){t.Ug("No crossing minimization",1),t.Vg()}function tLt(){vc.call(this,"There is no more element.")}function rLt(t,n,s,u){this.a=t,this.b=n,this.c=s,this.d=u}function nLt(t,n,s,u){this.a=t,this.b=n,this.c=s,this.d=u}function F2(t,n,s,u){this.e=t,this.a=n,this.c=s,this.d=u}function iLt(t,n,s,u){this.a=t,this.c=n,this.d=s,this.b=u}function aLt(t,n,s,u){Af(),i8t.call(this,n,s,u),this.a=t}function sLt(t,n,s,u){Af(),i8t.call(this,n,s,u),this.a=t}function the(t,n,s){var u,f;return u=MDe(t),f=n.ti(s,u),f}function mb(t){var n,s;return s=(n=new lw,n),P6(s,t),s}function rhe(t){var n,s;return s=(n=new lw,n),BMe(s,t),s}function Ghn(t,n){var s=An(t.f,n);return mLe(n,s),null}function oLt(t){return!t.b&&(t.b=new kt(ws,t,12,3)),t.b}function lLt(t){return r8(t==null||$ue(t)&&t.Tm!==ee),t}function DK(t){if(t.n)t.e!==cYt&&t.je(),t.j=null;return t}function C6(t){if(gd(t.d),t.d.d!=t.c)throw _e(new Cf)}function wOe(t){return Pn(t.b0&&U$t(this)}function cLt(t,n){this.a=t,Usn.call(this,t,b(t.d,15).fd(n))}function zhn(t,n){return Ra(Nh(t)*Od(t),Nh(n)*Od(n))}function Vhn(t,n){return Ra(Nh(t)*Od(t),Nh(n)*Od(n))}function Hhn(t){return Jw(t)&&er(Jt(It(t,(Qt(),vE))))}function qhn(t,n){return Ur(t,b(ce(n,(Qt(),_N)),17),n)}function Yhn(t,n){return b(ce(t,(Pt(),F5)),15).Fc(n),n}function SOe(t,n){return t.b=n.b,t.c=n.c,t.d=n.d,t.a=n.a,t}function uLt(t,n,s,u){this.b=t,this.c=u,Uj.call(this,n,s)}function Whn(t,n,s){if(t.i=0,t.e=0,n==s)return;WPt(t,n,s)}function jhn(t,n,s){if(t.i=0,t.e=0,n==s)return;jPt(t,n,s)}function Khn(t,n,s){return kM(),wyn(b(An(t.e,n),529),s)}function HA(t){var n;return n=t.f,!n?t.f=new s6(t,t.c):n}function hLt(t,n){return T4(t.j,n.s,n.c)+T4(n.e,t.s,t.c)}function dLt(t,n){if(!!t.e&&!t.e.a)J4t(t.e,n),dLt(t.e,n)}function fLt(t,n){if(!!t.d&&!t.d.a)J4t(t.d,n),fLt(t.d,n)}function Xhn(t,n){return-Ra(Nh(t)*Od(t),Nh(n)*Od(n))}function Qhn(t){return b(t.ld(),149).Pg()+":"+hc(t.md())}function pLt(){Dfe(this,new DAe),this.wb=(Hv(),sn),n6()}function gLt(t){this.b=new Ut,Us(this.b,this.b),this.a=t}function TOe(t,n){new Va,this.a=new Rh,this.b=t,this.c=n}function Mw(){Mw=z,i$e=new Ie,Nme=new Ie,a$e=new Ee}function Hr(){Hr=z,Jo=new se,I1=new he,_J=new ye}function xOe(){xOe=z,dQt=new qt,pQt=new U6e,fQt=new cr}function qA(){qA=z,AJ=new Ut,Qme=new Zn,Xme=new Ut}function PK(t,n){if(t==null)throw _e(new EA(n));return t}function BK(t){return!t.a&&(t.a=new kt(ra,t,10,11)),t.a}function wa(t){return!t.q&&(t.q=new kt(Op,t,11,10)),t.q}function Ct(t){return!t.s&&(t.s=new kt(_h,t,21,17)),t.s}function Zhn(t){return mi(t),r$t(new Nn(Mn(t.a.Kc(),new L)))}function Jhn(t,n){return Ld(t),Ld(n),c3t(b(t,22),b(n,22))}function $2(t,n,s){var u,f;u=i6e(s),f=new BW(u),j0(t,n,f)}function ihe(t,n,s,u,f,g){oU.call(this,t,n,s,u,f,g?-2:-1)}function mLt(t,n,s,u){qRe.call(this,n,s),this.b=t,this.a=u}function bLt(t,n){_nn.call(this,new Pue(t)),this.a=t,this.b=n}function COe(t){this.b=t,this.c=t,t.e=null,t.c=null,this.a=1}function edn(t){r0();var n=b(t.g,10);n.n.a=t.d.c+n.d.b}function k6(){k6=z;var t,n;n=!ovn(),t=new Y,kme=n?new Q:t}function ahe(t){return Hr(),He(t,59)?new tce(t):new jj(t)}function FK(t){return He(t,16)?new n8(b(t,16)):Lcn(t.Kc())}function tdn(t){return new pIt(t,t.e.Rd().gc()*t.c.Rd().gc())}function rdn(t){return new gIt(t,t.e.Rd().gc()*t.c.Rd().gc())}function kOe(t){return!!t&&!!t.hashCode?t.hashCode():Sw(t)}function she(t,n){return n==null?!!wl(t.f,null):yun(t.i,n)}function ndn(t,n){var s=cIe(t.a,n);return s&&(n.d=null),s}function yLt(t,n,s){if(t.f)return t.f.ef(n,s);return!1}function Y$(t,n,s,u){ls(t.c[n.g],s.g,u),ls(t.c[s.g],n.g,u)}function ohe(t,n,s,u){ls(t.c[n.g],n.g,s),ls(t.b[n.g],n.g,u)}function idn(t,n,s){return rt(ht(s.a))<=t&&rt(ht(s.b))>=n}function vLt(t,n){this.g=t,this.d=Ce(Te(N1,1),Gy,10,0,[n])}function _Lt(t){this.c=t,this.b=new by(b(mi(new tr),50))}function ELt(t){this.c=t,this.b=new by(b(mi(new Mv),50))}function wLt(t){this.b=t,this.a=new by(b(mi(new Mi),50))}function SLt(){this.b=new Rs,this.d=new Va,this.e=new k5e}function AOe(){this.c=new Oo,this.d=new Oo,this.e=new Oo}function Dw(){this.a=new Rh,this.b=(Kd(3,mx),new Gu(3))}function wy(t,n){this.e=t,this.a=ao,this.b=SVt(n),this.c=n}function $K(t){this.c=t.c,this.d=t.d,this.b=t.b,this.a=t.a}function TLt(t,n,s,u,f,g){this.a=t,Jhe.call(this,n,s,u,f,g)}function xLt(t,n,s,u,f,g){this.a=t,Jhe.call(this,n,s,u,f,g)}function Wv(t,n,s,u,f,g,E){return new The(t.e,n,s,u,f,g,E)}function adn(t,n,s){return s>=0&&Br(t.substr(s,n.length),n)}function CLt(t,n){return He(n,149)&&Br(t.b,b(n,149).Pg())}function sdn(t,n){return t.a?n.Gh().Kc():b(n.Gh(),71).Ii()}function kLt(t,n){var s=t.b.Qc(n);return EMt(s,t.b.gc()),s}function W$(t,n){if(t==null)throw _e(new EA(n));return t}function tc(t){if(!t.u)fd(t),t.u=new s6t(t,t);return t.u}function lhe(t){this.a=(Hr(),He(t,59)?new tce(t):new jj(t))}function dh(t){var n=b(un(t,16),29);return!n?t.ii():n}function UK(t,n){var s=N2(t.Rm);return n==null?s:s+": "+n}function Of(t,n,s){return Do(n,s,t.length),t.substr(n,s-n)}function ALt(t,n){Jj.call(this),$Ne(this),this.a=t,this.c=n}function odn(t){!t||UK(t,t.ie()),String.fromCharCode(10)}function ldn(t){ZW(),d.setTimeout(function(){throw t},0)}function cdn(){return lQ(),Ce(Te(f$e,1),Rt,436,0,[Ume,d$e])}function udn(){return gX(),Ce(Te(g$e,1),Rt,435,0,[p$e,Gme])}function hdn(){return mX(),Ce(Te(V$e,1),Rt,432,0,[Zme,RJ])}function ddn(){return H6(),Ce(Te(fJt,1),Rt,517,0,[fz,p1e])}function fdn(){return XK(),Ce(Te(TGe,1),Rt,429,0,[H1e,SGe])}function pdn(){return bU(),Ce(Te(lGe,1),Rt,428,0,[aee,oGe])}function gdn(){return oX(),Ce(Te(eGe,1),Rt,431,0,[JUe,R1e])}function mdn(){return gU(),Ce(Te(mVe,1),Rt,430,0,[xbe,Cbe])}function bdn(){return v8(),Ce(Te(inr,1),Rt,531,0,[S9,w9])}function ydn(){return OX(),Ce(Te(dHe,1),Rt,501,0,[Kee,_k])}function vdn(){return Tm(),Ce(Te(hnr,1),Rt,523,0,[IS,jy])}function _dn(){return Sg(),Ce(Te(fnr,1),Rt,522,0,[TE,Gg])}function Edn(){return Y0(),Ce(Te(Anr,1),Rt,528,0,[Hx,w_])}function wdn(){return uU(),Ce(Te(hGe,1),Rt,488,0,[uGe,oee])}function Sdn(){return tX(),Ce(Te(tqe,1),Rt,491,0,[mye,eqe])}function Tdn(){return fde(),Ce(Te(oqe,1),Rt,492,0,[aqe,sqe])}function xdn(){return WK(),Ce(Te(hHe,1),Rt,433,0,[jbe,uHe])}function Cdn(){return cX(),Ce(Te(pHe,1),Rt,434,0,[fHe,eye])}function kdn(){return Bw(),Ce(Te(Dnr,1),Rt,465,0,[S_,bk])}function Adn(){return aU(),Ce(Te(cqe,1),Rt,438,0,[Eye,ste])}function Rdn(){return kU(),Ce(Te(Oqe,1),Rt,437,0,[lte,Iqe])}function Idn(){return yue(),Ce(Te(Ste,1),Rt,347,0,[YYe,WYe])}function GK(t,n,s,u){return s>=0?t.Uh(n,s,u):t.Ch(null,s,u)}function j$(t){if(t.b.b==0)return t.a.sf();return Sue(t.b)}function Odn(t){if(t.p!=5)throw _e(new Ah);return gi(t.f)}function Ndn(t){if(t.p!=5)throw _e(new Ah);return gi(t.k)}function ROe(t){return it(t.a)===it((hde(),ave))&&I5n(t),t.a}function Ldn(t,n){t.b=n,t.c>0&&t.b>0&&(t.g=gK(t.c,t.b,t.a))}function Mdn(t,n){t.c=n,t.c>0&&t.b>0&&(t.g=gK(t.c,t.b,t.a))}function RLt(t,n){Lrn(this,new Dt(t.a,t.b)),Mrn(this,B$(n))}function Pw(){Enn.call(this,new TA(KT(12))),pIe(!0),this.a=2}function che(t,n,s){ia(),ow.call(this,t),this.b=n,this.a=s}function IOe(t,n,s){Af(),VW.call(this,n),this.a=t,this.b=s}function ILt(t){var n=t.c.d.b;t.b=n,t.a=t.c.d,n.a=t.c.d.b=t}function Ddn(t){return t.b==0?null:(Pn(t.b!=0),Df(t,t.a.a))}function mu(t,n){return n==null?Jl(wl(t.f,null)):NM(t.i,n)}function OLt(t,n,s,u,f){return new Bfe(t,(M6(),Pme),n,s,u,f)}function zK(t,n){return yMt(n),amn(t,mt(ci,$i,28,n,15,1),n)}function VK(t,n){return PK(t,"set1"),PK(n,"set2"),new _At(t,n)}function Pdn(t,n){var s=Cme[t.charCodeAt(0)];return s==null?t:s}function NLt(t,n){var s,u;return s=n,u=new dt,aqt(t,s,u),u.d}function uhe(t,n,s,u){var f=new c6t;n.a[s.g]=f,GA(t.b,u,f)}function Bdn(t,n){var s=rmn(t.f,n);return ua(Zj(s),t.f.d)}function K$(t){var n;fmn(t.a),$Rt(t.a),n=new UW(t.a),m7e(n)}function Fdn(t,n){fVt(t,!0),Ju(t.e.Rf(),new l6e(t,!0,n))}function $dn(t,n){return qA(),t==Ya(E1(n))||t==Ya(n_(n))}function Udn(t,n){return Tb(),b(ce(n,(Oc(),Vm)),17).a==t}function Ks(t){return Math.max(Math.min(t,sa),-2147483648)|0}function LLt(t){this.a=b(mi(t),277),this.b=(Hr(),new EIe(t))}function MLt(t,n,s){this.i=new Ut,this.b=t,this.g=n,this.a=s}function OOe(t,n,s){this.a=new Ut,this.e=t,this.f=n,this.c=s}function HK(t,n,s){this.c=new Ut,this.e=t,this.f=n,this.b=s}function DLt(t){Jj.call(this),$Ne(this),this.a=t,this.c=!0}function Gdn(t){function n(){}return n.prototype=t||{},new n}function zdn(t){if(t.Ae())return null;var n=t.n;return pJ[n]}function X$(t){if(t.Db>>16!=3)return null;return b(t.Cb,27)}function wg(t){if(t.Db>>16!=9)return null;return b(t.Cb,27)}function PLt(t){if(t.Db>>16!=6)return null;return b(t.Cb,74)}function Bw(){Bw=z,S_=new LRe(_5,0),bk=new LRe(E5,1)}function Tm(){Tm=z,IS=new IRe(E5,0),jy=new IRe(_5,1)}function Sg(){Sg=z,TE=new ORe(_0e,0),Gg=new ORe("UP",1)}function BLt(){BLt=z,MXt=di((KW(),Ce(Te(LXt,1),Rt,549,0,[Tme])))}function FLt(t){var n=new rj(KT(t.length));return RLe(n,t),n}function $Lt(t,n){return t.b+=n.b,t.c+=n.c,t.d+=n.d,t.a+=n.a,t}function Vdn(t,n){if(xPt(t,n))return E9t(t),!0;return!1}function bb(t,n){if(n==null)throw _e(new mA);return cvn(t,n)}function Q$(t,n){var s=t.q.getHours();t.q.setDate(n),uD(t,s)}function NOe(t,n,s){var u=t.Ih(n);u>=0?t.bi(u,s):I8e(t,n,s)}function ULt(t,n){var s=t.Ih(n);return s>=0?t.Wh(s):Vfe(t,n)}function GLt(t,n){var s;mi(n);for(s=t.a;s;s=s.c)n.Yd(s.g,s.i)}function hhe(t,n,s){var u=qPt(t,n,s);t.b=new LX(u.c.length)}function g4(t,n,s){qK(),!!t&&Ki(rve,t,n),!!t&&Ki(uV,t,s)}function Hdn(t,n){return iK(),an(),b(n.a,17).a0}function LOe(t){var n=t.d;return n=t.bj(t.f),ii(t,n),n.Ob()}function zLt(t,n){var s=new B6e(n);return fUt(s,t),new Zh(s)}function Wdn(t){if(t.p!=0)throw _e(new Ah);return HM(t.f,0)}function jdn(t){if(t.p!=0)throw _e(new Ah);return HM(t.k,0)}function VLt(t){if(t.Db>>16!=7)return null;return b(t.Cb,241)}function A6(t){if(t.Db>>16!=6)return null;return b(t.Cb,241)}function HLt(t){if(t.Db>>16!=7)return null;return b(t.Cb,167)}function Ya(t){if(t.Db>>16!=11)return null;return b(t.Cb,27)}function VT(t){if(t.Db>>16!=17)return null;return b(t.Cb,29)}function qLt(t){if(t.Db>>16!=3)return null;return b(t.Cb,155)}function MOe(t){var n;return t_(t),n=new Rs,pa(t,new QTt(n))}function YLt(t,n){var s=t.a=t.a||[];return s[n]||(s[n]=t.ve(n))}function Kdn(t,n){var s=t.q.getHours();t.q.setMonth(n),uD(t,s)}function WLt(t,n){Yj(this),this.f=n,this.g=t,DK(this),this.je()}function jLt(t,n){this.a=t,this.c=Uo(this.a),this.b=new $K(n)}function KLt(t,n,s){this.a=n,this.c=t,this.b=(mi(s),new Zh(s))}function XLt(t,n,s){this.a=n,this.c=t,this.b=(mi(s),new Zh(s))}function QLt(t){this.a=t,this.b=mt(tnr,Bt,2043,t.e.length,0,2)}function ZLt(){this.a=new vm,this.e=new Rs,this.g=0,this.i=0}function qK(){qK=z,rve=new Zn,uV=new Zn,Vin(ZXt,new $2t)}function JLt(){JLt=z,$rr=Lh(new Ns,(Xo(),ac),(il(),pz))}function DOe(){DOe=z,Urr=Lh(new Ns,(Xo(),ac),(il(),pz))}function e7t(){e7t=z,zrr=Lh(new Ns,(Xo(),ac),(il(),pz))}function t7t(){t7t=z,snr=Fi(new Ns,(Xo(),ac),(il(),t9))}function qd(){qd=z,cnr=Fi(new Ns,(Xo(),ac),(il(),t9))}function r7t(){r7t=z,unr=Fi(new Ns,(Xo(),ac),(il(),t9))}function fhe(){fhe=z,gnr=Fi(new Ns,(Xo(),ac),(il(),t9))}function g8(t,n,s,u,f,g){return new wb(t.e,n,t.Lj(),s,u,f,g)}function Vl(t,n,s){return n==null?Hu(t.f,null,s):Ww(t.i,n,s)}function tl(t,n){!!t.c&&fh(t.c.g,t),t.c=n,!!t.c&&Gt(t.c.g,t)}function Lo(t,n){!!t.c&&fh(t.c.a,t),t.c=n,!!t.c&&Gt(t.c.a,t)}function Ec(t,n){!!t.i&&fh(t.i.j,t),t.i=n,!!t.i&&Gt(t.i.j,t)}function ko(t,n){!!t.d&&fh(t.d.e,t),t.d=n,!!t.d&&Gt(t.d.e,t)}function phe(t,n){!!t.a&&fh(t.a.k,t),t.a=n,!!t.a&&Gt(t.a.k,t)}function ghe(t,n){!!t.b&&fh(t.b.f,t),t.b=n,!!t.b&&Gt(t.b.f,t)}function n7t(t,n){ohn(t,t.b,t.c),b(t.b.b,68),!!n&&b(n.b,68).b}function Xdn(t,n){return Ra(b(t.c,65).c.e.b,b(n.c,65).c.e.b)}function Qdn(t,n){return Ra(b(t.c,65).c.e.a,b(n.c,65).c.e.a)}function Zdn(t){return Ode(),an(),b(t.a,86).d.e!=0?!0:!1}function YK(t,n){He(t.Cb,184)&&(b(t.Cb,184).tb=null),zu(t,n)}function mhe(t,n){He(t.Cb,90)&&lx(fd(b(t.Cb,90)),4),zu(t,n)}function Jdn(t,n){o7e(t,n),He(t.Cb,90)&&lx(fd(b(t.Cb,90)),2)}function efn(t,n){var s,u;s=n.c,u=s!=null,u&&zA(t,new GT(n.c))}function i7t(t){var n,s;return s=(n6(),n=new lw,n),P6(s,t),s}function a7t(t){var n,s;return s=(n6(),n=new lw,n),P6(s,t),s}function s7t(t){var n;while(!0)if(n=t.Pb(),!t.Ob())return n}function tfn(t,n,s){return Gt(t.a,(OK(),ffe(n,s),new gw(n,s))),t}function bu(t,n){return _l(),qhe(n)?new hK(n,t):new w$(n,t)}function Z$(t){return Am(),Kc(t,0)>=0?r_(t):u8(r_(ky(t)))}function rfn(t){var n=b(cK(t.b),9);return new Rf(t.a,n,t.c)}function o7t(t,n){var s=b(ex(HA(t.a),n),16);return!s?0:s.gc()}function l7t(t,n,s){var u;LBt(n,s,t.c.length),u=s-n,nRe(t.c,n,u)}function Sy(t,n,s){LBt(n,s,t.gc()),this.c=t,this.a=n,this.b=s-n}function YA(t){this.c=new Va,this.b=t.b,this.d=t.c,this.a=t.a}function bhe(t){this.a=d.Math.cos(t),this.b=d.Math.sin(t)}function U2(t,n,s,u){this.c=t,this.d=u,phe(this,n),ghe(this,s)}function POe(t,n){vnn.call(this,new TA(KT(t))),Kd(n,nYt),this.a=n}function c7t(t,n,s){return new Bfe(t,(M6(),Dme),null,!1,n,s)}function u7t(t,n,s){return new Bfe(t,(M6(),Bme),n,s,null,!1)}function nfn(){return rd(),Ce(Te(Wl,1),Rt,108,0,[h$e,fc,xx])}function ifn(){return ph(),Ce(Te(SQt,1),Rt,472,0,[eg,b_,d0])}function afn(){return td(),Ce(Te(EQt,1),Rt,471,0,[Um,m_,h0])}function sfn(){return K0(),Ce(Te(Cx,1),Rt,237,0,[Mc,qu,Dc])}function ofn(){return w8(),Ce(Te(iUe,1),Rt,391,0,[r1e,t1e,n1e])}function lfn(){return Hw(),Ce(Te(_1e,1),Rt,372,0,[yS,y_,bS])}function cfn(){return x8(),Ce(Te(rGe,1),Rt,322,0,[n9,bz,tGe])}function ufn(){return TX(),Ce(Te(iGe,1),Rt,351,0,[nGe,iee,I1e])}function hfn(){return K2(),Ce(Te(HJt,1),Rt,460,0,[L1e,pN,ak])}function dfn(){return K6(),Ce(Te(V1e,1),Rt,299,0,[G1e,z1e,yz])}function ffn(){return Sb(),Ce(Te(ZJt,1),Rt,311,0,[vz,ok,D5])}function pfn(){return D8(),Ce(Te(sVe,1),Rt,390,0,[ybe,aVe,Dee])}function gfn(){return Sl(),Ce(Te(Nrr,1),Rt,463,0,[v9,ad,Yu])}function mfn(){return FX(),Ce(Te(vVe,1),Rt,387,0,[bVe,kbe,yVe])}function bfn(){return N8(),Ce(Te(_Ve,1),Rt,349,0,[Rbe,Abe,Iz])}function yfn(){return nO(),Ce(Te(wVe,1),Rt,350,0,[Ibe,EVe,_9])}function vfn(){return SX(),Ce(Te(xVe,1),Rt,352,0,[TVe,Obe,SVe])}function _fn(){return zX(),Ce(Te(CVe,1),Rt,388,0,[Nbe,kN,Vx])}function Efn(){return Vw(),Ce(Te(Jrr,1),Rt,464,0,[Oz,E9,$ee])}function Tg(t){return Sc(Ce(Te(uo,1),Bt,8,0,[t.i.n,t.n,t.a]))}function wfn(){return L8(),Ce(Te(VVe,1),Rt,392,0,[zVe,Dbe,Lz])}function h7t(){h7t=z,uir=Lh(new Ns,(c5(),x9),(lD(),LVe))}function WK(){WK=z,jbe=new MRe("DFS",0),uHe=new MRe("BFS",1)}function d7t(t,n,s){var u=new qyt;u.b=n,u.a=s,++n.b,Gt(t.d,u)}function Sfn(t,n,s){var u=new sl(s.d);ua(u,t),s7e(n,u.a,u.b)}function Tfn(t,n){aIt(t,gi(io(kw(n,24),lZ)),gi(io(n,lZ)))}function HT(t,n){if(t<0||t>n)throw _e(new Gl(n9e+t+i9e+n))}function qr(t,n){if(t<0||t>=n)throw _e(new Gl(n9e+t+i9e+n))}function pn(t,n){if(t<0||t>=n)throw _e(new H5e(n9e+t+i9e+n))}function Gr(t,n){this.b=(_n(t),t),this.a=(n&bx)==0?n|64|Im:n}function BOe(t){var n;return t_(t),n=(Mw(),Mw(),Nme),vX(t,n)}function xfn(t,n,s){var u=fD(t,n,!1);return u.b<=n&&u.a<=s}function Cfn(){return uX(),Ce(Te(iqe,1),Rt,439,0,[bye,nqe,rqe])}function kfn(){return QX(),Ce(Te($He,1),Rt,394,0,[FHe,dye,BHe])}function Afn(){return nQ(),Ce(Te(PHe,1),Rt,445,0,[Fz,Jee,sye])}function Rfn(){return pQ(),Ce(Te(Gir,1),Rt,456,0,[oye,cye,lye])}function Ifn(){return OU(),Ce(Te(bHe,1),Rt,393,0,[Xee,gHe,mHe])}function Ofn(){return BX(),Ce(Te(DHe,1),Rt,300,0,[aye,MHe,LHe])}function Nfn(){return Cb(),Ce(Te(FYe,1),Rt,346,0,[mte,Zy,H9])}function Lfn(){return BU(),Ce(Te(yye,1),Rt,444,0,[nte,ite,ate])}function Mfn(){return Rg(),Ce(Te(CYe,1),Rt,278,0,[MN,jx,DN])}function Dfn(){return n5(),Ce(Te(qYe,1),Rt,280,0,[HYe,Xx,wte])}function Fw(t){return mi(t),He(t,16)?new Zh(b(t,16)):b6(t.Kc())}function FOe(t,n){return!!t&&!!t.equals?t.equals(n):it(t)===it(n)}function io(t,n){return Qv(kun(cc(t)?mp(t):t,cc(n)?mp(n):n))}function q0(t,n){return Qv(Aun(cc(t)?mp(t):t,cc(n)?mp(n):n))}function yhe(t,n){return Qv(Run(cc(t)?mp(t):t,cc(n)?mp(n):n))}function Pfn(t,n){var s=(_n(t),t).g;return NIe(!!s),_n(n),s(n)}function f7t(t,n){var s,u;return u=_6(t,n),s=t.a.fd(u),new yAt(t,s)}function Bfn(t){if(t.Db>>16!=6)return null;return b(Yfe(t),241)}function Ffn(t){if(t.p!=2)throw _e(new Ah);return gi(t.f)&Ds}function $fn(t){if(t.p!=2)throw _e(new Ah);return gi(t.k)&Ds}function ge(t){return Pn(t.au?1:0}function b7t(t,n){var s,u;return s=Ghe(n),u=s,b(An(t.c,u),17).a}function vhe(t,n,s){var u=t.d[n.p];t.d[n.p]=t.d[s.p],t.d[s.p]=u}function Xfn(t,n,s){var u;if(t.n&&!!n&&!!s)u=new I2t,Gt(t.e,u)}function _he(t,n){if($s(t.a,n),n.d)throw _e(new vc(CYt));n.d=t}function GOe(t,n){this.a=new Ut,this.d=new Ut,this.f=t,this.c=n}function y7t(){this.c=new tIt,this.a=new o8t,this.b=new vkt,BAt()}function v7t(){t5(),this.b=new Zn,this.a=new Zn,this.c=new Ut}function _7t(t,n,s){this.d=t,this.j=n,this.e=s,this.o=-1,this.p=3}function E7t(t,n,s){this.d=t,this.k=n,this.f=s,this.o=-1,this.p=5}function w7t(t,n,s,u,f,g){GNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function S7t(t,n,s,u,f,g){zNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function T7t(t,n,s,u,f,g){aNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function x7t(t,n,s,u,f,g){qNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function C7t(t,n,s,u,f,g){sNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function k7t(t,n,s,u,f,g){VNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function A7t(t,n,s,u,f,g){HNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function R7t(t,n,s,u,f,g){oNe.call(this,t,n,s,u,f),g&&(this.o=-2)}function I7t(t,n,s,u){VW.call(this,s),this.b=t,this.c=n,this.d=u}function O7t(t,n){this.f=t,this.a=(O6(),Dte),this.c=Dte,this.b=n}function N7t(t,n){this.g=t,this.d=(O6(),Pte),this.a=Pte,this.b=n}function zOe(t,n){!t.c&&(t.c=new gs(t,0)),ZQ(t.c,(ka(),rP),n)}function Qfn(t,n){return Lxn(t,n,He(n,102)&&(b(n,19).Bb&ml)!=0)}function Zfn(t,n){return dNt(Vc(t.q.getTime()),Vc(n.q.getTime()))}function L7t(t){return Cue(t.e.Rd().gc()*t.c.Rd().gc(),16,new nTt(t))}function Jfn(t){return!!t.u&&nu(t.u.a).i!=0&&!(!!t.n&&cfe(t.n))}function epn(t){return!!t.a&&pd(t.a.a).i!=0&&!(!!t.b&&ufe(t.b))}function VOe(t,n){if(n==0)return!!t.o&&t.o.f!=0;return nfe(t,n)}function tpn(t,n,s){var u=b(t.Zb().xc(n),16);return!!u&&u.Hc(s)}function M7t(t,n,s){var u=b(t.Zb().xc(n),16);return!!u&&u.Mc(s)}function D7t(t,n){var s=1-n;return t.a[s]=NX(t.a[s],s),NX(t,n)}function P7t(t,n){var s,u;return u=io(t,xl),s=n0(n,32),q0(s,u)}function B7t(t,n,s){var u=(mi(t),new Zh(t));n2n(new KLt(u,n,s))}function J$(t,n,s){var u=(mi(t),new Zh(t));i2n(new XLt(u,n,s))}function Rc(t,n,s,u,f,g){return pPt(t,n,s,g),ZLe(t,u),JLe(t,f),t}function F7t(t,n,s,u){return t.a+=""+Of(n==null?mh:hc(n),s,u),t}function Mo(t,n){this.a=t,hM.call(this,t),HT(n,t.gc()),this.b=n}function $7t(t){this.a=mt(ao,en,1,xLe(d.Math.max(8,t))<<1,5,1)}function eU(t){return b(Og(t,mt(N1,Gy,10,t.c.length,0,1)),199)}function xm(t){return b(Og(t,mt(u1e,B0e,18,t.c.length,0,1)),483)}function U7t(t){return!t.a?t.c:t.e.length==0?t.a.a:t.a.a+(""+t.e)}function m8(t){while(t.d>0&&t.a[--t.d]==0);t.a[t.d++]==0&&(t.e=0)}function G7t(t){return Pn(t.b.b!=t.d.a),t.c=t.b=t.b.b,--t.a,t.c.c}function rpn(t,n,s){t.a=n,t.c=s,t.b.a.$b(),Hd(t.d),kT(t.e.a.c,0)}function z7t(t,n){var s;t.e=new M5e,s=ux(n),ks(s,t.c),rVt(t,s,0)}function Ls(t,n,s,u){var f=new AAe;f.a=n,f.b=s,f.c=u,Oi(t.a,f)}function Ft(t,n,s,u){var f=new AAe;f.a=n,f.b=s,f.c=u,Oi(t.b,f)}function V7t(t,n,s){if(t<0||ns)throw _e(new Gl(gSn(t,n,s)))}function tU(t,n){if(t<0||t>=n)throw _e(new Gl(YSn(t,n)));return t}function npn(t){if(!("stack"in t))try{throw t}catch(n){}return t}function m4(t){if(kM(),He(t.g,10))return b(t.g,10);return null}function ipn(t){if(p4(t).dc())return!1;return kan(t,new F),!0}function z2(t){var n;if(cc(t))return n=t,n==-0?0:n;return vgn(t)}function H7t(t,n){if(He(n,44))return gfe(t.a,b(n,44));return!1}function q7t(t,n){if(He(n,44))return gfe(t.a,b(n,44));return!1}function Y7t(t,n){if(He(n,44))return gfe(t.a,b(n,44));return!1}function HOe(t){var n;return Yv(t),n=new ze,ZC(t.a,new jTt(n)),n}function qOe(){var t,n,s;return n=(s=(t=new lw,t),s),Gt(kWe,n),n}function jK(t){var n;return Yv(t),n=new Me,ZC(t.a,new KTt(n)),n}function apn(t,n){if(t.a<=t.b)return n.Dd(t.a++),!0;return!1}function W7t(t){lde.call(this,t,(M6(),Mme),null,!1,null,!1)}function j7t(){j7t=z,tZt=di((lj(),Ce(Te(P$e,1),Rt,489,0,[Wme])))}function K7t(){K7t=z,AVe=GNt($t(1),$t(4)),kVe=GNt($t(1),$t(2))}function spn(t,n){return new _ue(n,JM(Uo(n.e),t,t),(an(),!0))}function KK(t){return new Gu((Kd(t,Fpe),bX(rl(rl(5,t),t/10|0))))}function opn(t){return Cue(t.e.Rd().gc()*t.c.Rd().gc(),273,new rTt(t))}function X7t(t){return b(Og(t,mt(uJt,nWt,12,t.c.length,0,1)),2042)}function lpn(t){return qd(),!gl(t)&&!(!gl(t)&&t.c.i.c==t.d.i.c)}function cpn(t,n){return JA(),b(ce(n,(Oc(),yk)),17).a>=t.gc()}function b8(t,n){qIn(n,t),T6e(t.d),T6e(b(ce(t,(Qt(),Aee)),214))}function Ehe(t,n){YIn(n,t),x6e(t.d),x6e(b(ce(t,(Qt(),Aee)),214))}function upn(t,n,s){!!t.d&&fh(t.d.e,t),t.d=n,!!t.d&&Cw(t.d.e,s,t)}function hpn(t,n,s){return s.f.c.length>0?J6e(t.a,n,s):J6e(t.b,n,s)}function dpn(t,n,s){var u=Rvn();try{return Jsn(t,n,s)}finally{i0n(u)}}function $w(t,n){var s,u;return s=bb(t,n),u=null,!!s&&(u=s.pe()),u}function y8(t,n){var s,u;return s=bb(t,n),u=null,!!s&&(u=s.se()),u}function R6(t,n){var s,u;return s=jT(t,n),u=null,!!s&&(u=s.se()),u}function yb(t,n){var s,u;return s=bb(t,n),u=null,!!s&&(u=HMe(s)),u}function fpn(t,n,s){var u=hO(s);return WQ(t.g,u,n),WQ(t.i,n,s),n}function YOe(t,n,s){this.d=new oCt(this),this.e=t,this.i=n,this.f=s}function Q7t(t,n,s,u){this.e=null,this.c=t,this.d=n,this.a=s,this.b=u}function Z7t(t,n,s,u){KRt(this),this.c=t,this.e=n,this.f=s,this.b=u}function WOe(t,n,s,u){this.d=t,this.n=n,this.g=s,this.o=u,this.p=-1}function J7t(t,n,s,u){return He(s,59)?new RIt(t,n,s,u):new W6e(t,n,s,u)}function I6(t){if(He(t,16))return b(t,16).dc();return!t.Kc().Ob()}function eMt(t){if(t.e.g!=t.b)throw _e(new Cf);return!!t.c&&t.d>0}function Jn(t){return Pn(t.b!=t.d.c),t.c=t.b,t.b=t.b.a,++t.a,t.c.c}function jOe(t,n){_n(n),ls(t.a,t.c,n),t.c=t.c+1&t.a.length-1,w$t(t)}function jv(t,n){_n(n),t.b=t.b-1&t.a.length-1,ls(t.a,t.b,n),w$t(t)}function tMt(t){var n=t.Gh();this.a=He(n,71)?b(n,71).Ii():n.Kc()}function ppn(t){return new Gr(Jgn(b(t.a.md(),16).gc(),t.a.ld()),16)}function rMt(){rMt=z,yar=di((hj(),Ce(Te(lqe,1),Rt,490,0,[vye])))}function nMt(){nMt=z,Ear=di((dj(),Ce(Te(_ar,1),Rt,558,0,[_ye])))}function iMt(){iMt=z,$ar=di((AM(),Ce(Te(Rqe,1),Rt,539,0,[zz])))}function gpn(){return Z2(),Ce(Te(lUe,1),Rt,389,0,[Rx,oUe,l1e,c1e])}function mpn(){return M6(),Ce(Te(EJ,1),Rt,304,0,[Mme,Dme,Pme,Bme])}function bpn(){return s5(),Ce(Te(XQt,1),Rt,332,0,[sz,az,oz,lz])}function ypn(){return Y8(),Ce(Te(JQt,1),Rt,406,0,[cz,xJ,CJ,uz])}function vpn(){return Yw(),Ce(Te(jQt,1),Rt,417,0,[iz,nz,qme,Yme])}function _pn(){return X6(),Ce(Te(ZZt,1),Rt,416,0,[mS,Ax,kx,ek])}function Epn(){return Ig(),Ce(Te(AJt,1),Rt,421,0,[M5,oN,lN,v1e])}function wpn(){return GX(),Ce(Te(bJt,1),Rt,371,0,[y1e,ZJ,JJ,gz])}function Spn(){return nx(),Ce(Te(_be,1),Rt,203,0,[Pee,vbe,mk,gk])}function Tpn(){return Cm(),Ce(Te(gVe,1),Rt,284,0,[Wy,pVe,Sbe,Tbe])}function xpn(t){var n;return t.j==(Ht(),Kn)&&(n=HGt(t),Oh(n,Cn))}function Cpn(t,n){var s=n.a;tl(s,n.c.d),ko(s,n.d.d),ZT(s.a,t.n)}function KOe(t,n){var s=b(Ag(t.b,n),67);return!s&&(s=new Va),s}function jA(t){if(kM(),He(t.g,154))return b(t.g,154);return null}function kpn(t){t.a=null,t.e=null,kT(t.b.c,0),kT(t.f.c,0),t.c=null}function XK(){XK=z,H1e=new kRe($O,0),SGe=new kRe("TOP_LEFT",1)}function v8(){v8=z,S9=new RRe("UPPER",0),w9=new RRe("LOWER",1)}function Apn(t,n){return OA(new Dt(n.e.a+n.f.a/2,n.e.b+n.f.b/2),t)}function aMt(t,n){return b(Rd($T(b(_a(t.k,n),15).Oc(),rk)),113)}function sMt(t,n){return b(Rd($A(b(_a(t.k,n),15).Oc(),rk)),113)}function Rpn(){return c5(),Ce(Te(OVe,1),Rt,405,0,[Vee,T9,x9,C9])}function Ipn(){return M8(),Ce(Te(cHe,1),Rt,353,0,[Wbe,jee,Ybe,qbe])}function Opn(){return yQ(),Ce(Te(NHe,1),Rt,354,0,[iye,IHe,OHe,RHe])}function Npn(){return Md(),Ce(Te(K9,1),Rt,386,0,[iV,IE,nV,Kx])}function Lpn(){return Qd(),Ce(Te(ksr,1),Rt,291,0,[eV,D1,C_,Jz])}function Mpn(){return kb(),Ce(Te(Wye,1),Rt,223,0,[Yye,Zz,PN,K5])}function Dpn(){return JX(),Ce(Te(QYe,1),Rt,320,0,[Xye,jYe,XYe,KYe])}function Ppn(){return VX(),Ce(Te(Hsr,1),Rt,415,0,[Qye,JYe,ZYe,eWe])}function Bpn(t){return qK(),Zu(rve,t)?b(An(rve,t),341).Qg():null}function Nf(t,n,s){return n<0?Vfe(t,s):b(s,69).wk().Bk(t,t.hi(),n)}function Fpn(t,n,s){var u=hO(s);return WQ(t.j,u,n),Ki(t.k,n,s),n}function $pn(t,n,s){var u=hO(s);return WQ(t.d,u,n),Ki(t.e,n,s),n}function oMt(t){var n,s;return n=(Bv(),s=new Ele,s),!!t&&BQ(n,t),n}function XOe(t){var n=t.aj(t.i);return t.i>0&&au(t.g,0,n,0,t.i),n}function lMt(t,n){var s;for(s=t.j.c.length;s>24}function Gpn(t){if(t.p!=1)throw _e(new Ah);return gi(t.k)<<24>>24}function zpn(t){if(t.p!=7)throw _e(new Ah);return gi(t.k)<<16>>16}function Vpn(t){if(t.p!=7)throw _e(new Ah);return gi(t.f)<<16>>16}function b4(t,n){if(n.e==0||t.e==0)return XD;return SO(),Zfe(t,n)}function hMt(t,n){return it(n)===it(t)?"(this Map)":n==null?mh:hc(n)}function Hpn(t,n,s){return Due(ht(Jl(wl(t.f,n))),ht(Jl(wl(t.f,s))))}function qpn(t,n,s){var u=b(An(t.g,s),60);Gt(t.a.c,new js(n,u))}function dMt(t,n,s){if(t.i=0,t.e=0,n==s)return;jPt(t,n,s),WPt(t,n,s)}function Ypn(t,n,s,u,f){var g=Wxn(f,s,u);Gt(n,$Sn(f,g)),Iwn(t,f,n)}function QOe(t,n,s,u,f){this.i=t,this.a=n,this.e=s,this.j=u,this.f=f}function fMt(t,n){AOe.call(this),this.a=t,this.b=n,Gt(this.a.b,this)}function pMt(t){this.b=new Zn,this.c=new Zn,this.d=new Zn,this.a=t}function gMt(t,n){var s=new XC;return t.Gd(s),s.a+="..",n.Hd(s),s.a}function mMt(t,n){var s=n;while(s)Tw(t,s.i,s.j),s=Ya(s);return t}function bMt(t,n,s){var u=hO(s);return Ki(t.b,u,n),Ki(t.c,n,s),n}function vb(t){var n=0;while(t.Ob())t.Pb(),n=rl(n,1);return bX(n)}function y1(t,n){_l();var s=b(t,69).vk();return Ywn(s,n),s.xl(n)}function Wpn(t,n,s){if(s){var u=s.oe();t.a[n]=u(s)}else delete t.a[n]}function ZOe(t,n){var s=t.q.getHours();t.q.setFullYear(n+c_),uD(t,s)}function jpn(t,n){return b(n==null?Jl(wl(t.f,null)):NM(t.i,n),288)}function JOe(t,n){return t==(bn(),Es)&&n==Es?4:t==Es||n==Es?8:32}function QK(t,n,s){return KQ(t,n,s,He(n,102)&&(b(n,19).Bb&ml)!=0)}function Kpn(t,n,s){return kO(t,n,s,He(n,102)&&(b(n,19).Bb&ml)!=0)}function Xpn(t,n,s){return Uxn(t,n,s,He(n,102)&&(b(n,19).Bb&ml)!=0)}function eNe(t){if(t.b==t.c)return;t.a=mt(ao,en,1,8,5,1),t.b=0,t.c=0}function _8(t){return Pn(t.a=0&&t.a[s]===n[s];s--);return s<0}function ZK(t){var n;if(t)return new B6e(t);return n=new vm,sde(n,t),n}function n0n(t,n){var s,u;u=!1;do s=BPt(t,n),u=u|s;while(s);return u}function i0n(t){if(t&&Ign((U5e(),BFe)),--gJ,t){if(mJ!=-1)Kin(mJ),mJ=-1}}function JK(t){AMe(),aIt(this,gi(io(kw(t,24),lZ)),gi(io(t,lZ)))}function wMt(){wMt=z,gQt=di((lQ(),Ce(Te(f$e,1),Rt,436,0,[Ume,d$e])))}function SMt(){SMt=z,mQt=di((gX(),Ce(Te(g$e,1),Rt,435,0,[p$e,Gme])))}function TMt(){TMt=z,yZt=di((mX(),Ce(Te(V$e,1),Rt,432,0,[Zme,RJ])))}function xMt(){xMt=z,pJt=di((H6(),Ce(Te(fJt,1),Rt,517,0,[fz,p1e])))}function CMt(){CMt=z,eer=di((XK(),Ce(Te(TGe,1),Rt,429,0,[H1e,SGe])))}function kMt(){kMt=z,VJt=di((bU(),Ce(Te(lGe,1),Rt,428,0,[aee,oGe])))}function AMt(){AMt=z,WJt=di((uU(),Ce(Te(hGe,1),Rt,488,0,[uGe,oee])))}function RMt(){RMt=z,Orr=di((gU(),Ce(Te(mVe,1),Rt,430,0,[xbe,Cbe])))}function IMt(){IMt=z,anr=di((v8(),Ce(Te(inr,1),Rt,531,0,[S9,w9])))}function OMt(){OMt=z,$Jt=di((oX(),Ce(Te(eGe,1),Rt,431,0,[JUe,R1e])))}function NMt(){NMt=z,cir=di((WK(),Ce(Te(hHe,1),Rt,433,0,[jbe,uHe])))}function LMt(){LMt=z,pir=di((OX(),Ce(Te(dHe,1),Rt,501,0,[Kee,_k])))}function MMt(){MMt=z,dnr=di((Tm(),Ce(Te(hnr,1),Rt,523,0,[IS,jy])))}function DMt(){DMt=z,pnr=di((Sg(),Ce(Te(fnr,1),Rt,522,0,[TE,Gg])))}function PMt(){PMt=z,Rnr=di((Y0(),Ce(Te(Anr,1),Rt,528,0,[Hx,w_])))}function BMt(){BMt=z,Pnr=di((Bw(),Ce(Te(Dnr,1),Rt,465,0,[S_,bk])))}function FMt(){FMt=z,bir=di((cX(),Ce(Te(pHe,1),Rt,434,0,[fHe,eye])))}function $Mt(){$Mt=z,dar=di((tX(),Ce(Te(tqe,1),Rt,491,0,[mye,eqe])))}function UMt(){UMt=z,par=di((fde(),Ce(Te(oqe,1),Rt,492,0,[aqe,sqe])))}function GMt(){GMt=z,war=di((aU(),Ce(Te(cqe,1),Rt,438,0,[Eye,ste])))}function zMt(){zMt=z,Uar=di((kU(),Ce(Te(Oqe,1),Rt,437,0,[lte,Iqe])))}function VMt(){VMt=z,Gsr=di((yue(),Ce(Te(Ste,1),Rt,347,0,[YYe,WYe])))}function a0n(){return Ms(),Ce(Te(z9,1),Rt,88,0,[Hg,sc,Kl,Vg,jf])}function s0n(){return Ht(),Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn])}function o0n(t,n,s){return b(n==null?Hu(t.f,null,s):Ww(t.i,n,s),288)}function l0n(t){return(t.k==(bn(),Es)||t.k==As)&&$a(t,(Pt(),o9))}function Che(t){return!!t.c&&!!t.d?UOe(t.c)+"->"+UOe(t.d):"e_"+Sw(t)}function Vo(t,n){var s,u;_n(n);for(u=t.Kc();u.Ob();)s=u.Pb(),n.Cd(s)}function c0n(t,n){var s=new _A;$2(s,"x",n.a),$2(s,"y",n.b),zA(t,s)}function u0n(t,n){var s=new _A;$2(s,"x",n.a),$2(s,"y",n.b),zA(t,s)}function HMt(t,n){var s=n;while(s)Tw(t,-s.i,-s.j),s=Ya(s);return t}function rNe(t,n){var s,u;s=n,u=0;while(s>0)u+=t.a[s],s-=s&-s;return u}function Lf(t,n,s){var u=(qr(n,t.c.length),t.c[n]);return t.c[n]=s,u}function nNe(t,n,s){t.a.c.length=0,D5n(t,n,s),t.a.c.length==0||l3n(t,n)}function rU(t){t.i=0,l$(t.b,null),l$(t.c,null),t.a=null,t.e=null,++t.g}function eX(){eX=z,Fg=!0,aQt=!1,sQt=!1,lQt=!1,oQt=!1}function khe(t){if(eX(),Fg)return;this.c=t,this.e=!0,this.a=new Ut}function qMt(t,n){this.c=0,this.b=n,pRt.call(this,t,17493),this.a=this.c}function YMt(t){jqt(),ekt(this),this.a=new Va,PLe(this,t),Oi(this.a,t)}function WMt(){Xce(this),this.b=new Dt(Wa,Wa),this.a=new Dt(Gs,Gs)}function tX(){tX=z,mye=new BRe(M9e,0),eqe=new BRe("TARGET_WIDTH",1)}function y4(t,n){return(t_(t),i6(new Pr(t,new INe(n,t.a)))).Bd(O5)}function h0n(){return Xo(),Ce(Te(aUe,1),Rt,367,0,[f0,O1,su,wu,ac])}function d0n(){return ax(),Ce(Te(IJt,1),Rt,375,0,[mz,ree,nee,tee,eee])}function f0n(){return My(),Ce(Te(sGe,1),Rt,348,0,[O1e,aGe,N1e,fN,dN])}function p0n(){return q8(),Ce(Te(lVe,1),Rt,323,0,[oVe,Ebe,wbe,b9,y9])}function g0n(){return Uf(),Ce(Te(BGe,1),Rt,171,0,[Sz,c9,__,u9,Mx])}function m0n(){return xQ(),Ce(Te(gir,1),Rt,368,0,[Zbe,Kbe,Jbe,Xbe,Qbe])}function b0n(){return iD(),Ce(Te(gar,1),Rt,373,0,[Ek,H5,D9,M9,Gz])}function y0n(){return ZU(),Ce(Te(fqe,1),Rt,324,0,[uqe,wye,dqe,Sye,hqe])}function v0n(){return Q0(),Ce(Te(M1,1),Rt,170,0,[Qr,Qs,Hm,xE,Xy])}function _0n(){return x4(),Ce(Te(Y9,1),Rt,256,0,[k_,tV,$Ye,q9,UYe])}function E0n(t){return ZW(),function(){return dpn(t,this,arguments);var n}}function gl(t){if(!t.c||!t.d)return!1;return!!t.c.i&&t.c.i==t.d.i}function iNe(t,n){if(He(n,143))return Br(t.c,b(n,143).c);return!1}function fd(t){if(!t.t)t.t=new H4t(t),$8(new s3t(t),0,t.t);return t.t}function jMt(t){this.b=t,kn.call(this,t),this.a=b(un(this.b.a,4),129)}function KMt(t){this.b=t,LA.call(this,t),this.a=b(un(this.b.a,4),129)}function i0(t,n,s,u,f){a8t.call(this,n,u,f),pA(this),this.c=t,this.b=s}function aNe(t,n,s,u,f){_7t.call(this,n,u,f),pA(this),this.c=t,this.a=s}function sNe(t,n,s,u,f){E7t.call(this,n,u,f),pA(this),this.c=t,this.a=s}function oNe(t,n,s,u,f){a8t.call(this,n,u,f),pA(this),this.c=t,this.a=s}function Ahe(t,n){var s=b(Ag(t.d,n),23);return s?s:b(Ag(t.e,n),23)}function XMt(t,n){var s,u;return s=n.ld(),u=t.Fe(s),!!u&&zc(u.e,n.md())}function QMt(t,n){var s=n.ld();return new gw(s,t.e.pc(s,b(n.md(),16)))}function w0n(t,n){var s=t.a.get(n);return s==null?mt(ao,en,1,0,5,1):s}function ZMt(t){var n=t.length;return Br(wn.substr(wn.length-n,n),t)}function Gn(t){if(ri(t))return t.c=t.a,t.a.Pb();else throw _e(new yc)}function lNe(t,n){if(n==0||t.e==0)return t;return n>0?Gzt(t,n):hFt(t,-n)}function KA(t,n){if(n==0||t.e==0)return t;return n>0?hFt(t,n):Gzt(t,-n)}function cNe(t){Lin.call(this,t==null?mh:hc(t),He(t,82)?b(t,82):null)}function JMt(t){var n;if(!t.c)n=t.r,He(n,90)&&(t.c=b(n,29));return t.c}function Rhe(t){var n=new Dw;return nc(n,t),At(n,(Qt(),jl),null),n}function e8t(t){var n,s;return n=t.c.i,s=t.d.i,n.k==(bn(),As)&&s.k==As}function Ihe(t){var n,s,u;return n=t&yd,s=t>>22&yd,u=t<0?Mb:0,Qu(n,s,u)}function S0n(t){var n,s,u,f;for(s=t,u=0,f=s.length;u=0?t.Lh(u,s,!0):eS(t,n,s)}function x0n(t,n,s){return Ra(OA(fO(t),Uo(n.b)),OA(fO(t),Uo(s.b)))}function C0n(t,n,s){return Ra(OA(fO(t),Uo(n.e)),OA(fO(t),Uo(s.e)))}function k0n(t,n){return d.Math.min(Kv(n.a,t.d.d.c),Kv(n.b,t.d.d.c))}function nU(t,n){t._i(t.i+1),XM(t,t.i,t.Zi(t.i,n)),t.Mi(t.i++,n),t.Ni()}function E8(t){var n,s;++t.j,n=t.g,s=t.i,t.g=null,t.i=0,t.Oi(s,n),t.Ni()}function t8t(t,n,s){var u=new lIe(t.a);A8(u,t.a.a),Hu(u.f,n,s),t.a.a=u}function uNe(t,n,s,u){var f;for(f=0;fn)throw _e(new Gl(JMe(t,n,"index")));return t}function xy(t,n){var s=(qr(n,t.c.length),t.c[n]);return nRe(t.c,n,1),s}function fNe(t,n){var s,u;return s=(_n(t),t),u=(_n(n),n),s==u?0:sn.p)return-1;return 0}function c8t(t){var n;if(!t.a)n=t.r,He(n,156)&&(t.a=b(n,156));return t.a}function L0n(t,n,s){var u;return++t.e,--t.f,u=b(t.d[n].gd(s),136),u.md()}function M0n(t){var n,s;return n=t.ld(),s=b(t.md(),16),P$(s.Nc(),new aTt(n))}function u8t(t,n){if(Zu(t.a,n))return XA(t.a,n),!0;else return!1}function QA(t,n,s){return tU(n,t.e.Rd().gc()),tU(s,t.c.Rd().gc()),t.a[n][s]}function nX(t,n,s){this.a=t,this.b=n,this.c=s,Gt(t.t,this),Gt(n.i,this)}function iX(t,n,s,u){this.f=t,this.e=n,this.d=s,this.b=u,this.c=!u?null:u.d}function iU(){this.b=new Va,this.a=new Va,this.b=new Va,this.a=new Va}function O6(){O6=z;var t,n;Dte=(n6(),n=new YW,n),Pte=(t=new zle,t)}function D0n(t){var n;return t_(t),n=new rOt(t,t.a.e,t.a.d|4),new MIe(t,n)}function h8t(t){var n;Yv(t),n=0;while(t.a.Bd(new at))n=rl(n,1);return n}function aX(t,n){if(_n(n),t.c=0,"Initial capacity must not be negative")}function sX(){sX=z,P9=new va("org.eclipse.elk.labels.labelManager")}function d8t(){d8t=z,jUe=new es("separateLayerConnections",(GX(),y1e))}function Y0(){Y0=z,Hx=new NRe("REGULAR",0),w_=new NRe("CRITICAL",1)}function aU(){aU=z,Eye=new $Re("FIXED",0),ste=new $Re("CENTER_NODE",1)}function oX(){oX=z,JUe=new TRe("QUADRATIC",0),R1e=new TRe("SCANLINE",1)}function f8t(){f8t=z,UJt=di((x8(),Ce(Te(rGe,1),Rt,322,0,[n9,bz,tGe])))}function p8t(){p8t=z,GJt=di((TX(),Ce(Te(iGe,1),Rt,351,0,[nGe,iee,I1e])))}function g8t(){g8t=z,PJt=di((Hw(),Ce(Te(_1e,1),Rt,372,0,[yS,y_,bS])))}function m8t(){m8t=z,qJt=di((K2(),Ce(Te(HJt,1),Rt,460,0,[L1e,pN,ak])))}function b8t(){b8t=z,QJt=di((K6(),Ce(Te(V1e,1),Rt,299,0,[G1e,z1e,yz])))}function y8t(){y8t=z,JJt=di((Sb(),Ce(Te(ZJt,1),Rt,311,0,[vz,ok,D5])))}function v8t(){v8t=z,Crr=di((D8(),Ce(Te(sVe,1),Rt,390,0,[ybe,aVe,Dee])))}function _8t(){_8t=z,Mrr=di((FX(),Ce(Te(vVe,1),Rt,387,0,[bVe,kbe,yVe])))}function E8t(){E8t=z,Drr=di((N8(),Ce(Te(_Ve,1),Rt,349,0,[Rbe,Abe,Iz])))}function w8t(){w8t=z,Lrr=di((Sl(),Ce(Te(Nrr,1),Rt,463,0,[v9,ad,Yu])))}function S8t(){S8t=z,Prr=di((nO(),Ce(Te(wVe,1),Rt,350,0,[Ibe,EVe,_9])))}function T8t(){T8t=z,Brr=di((SX(),Ce(Te(xVe,1),Rt,352,0,[TVe,Obe,SVe])))}function x8t(){x8t=z,Frr=di((zX(),Ce(Te(CVe,1),Rt,388,0,[Nbe,kN,Vx])))}function C8t(){C8t=z,$nr=di((L8(),Ce(Te(VVe,1),Rt,392,0,[zVe,Dbe,Lz])))}function k8t(){k8t=z,yir=di((OU(),Ce(Te(bHe,1),Rt,393,0,[Xee,gHe,mHe])))}function A8t(){A8t=z,$ir=di((BX(),Ce(Te(DHe,1),Rt,300,0,[aye,MHe,LHe])))}function R8t(){R8t=z,Uir=di((nQ(),Ce(Te(PHe,1),Rt,445,0,[Fz,Jee,sye])))}function I8t(){I8t=z,zir=di((pQ(),Ce(Te(Gir,1),Rt,456,0,[oye,cye,lye])))}function O8t(){O8t=z,qir=di((QX(),Ce(Te($He,1),Rt,394,0,[FHe,dye,BHe])))}function N8t(){N8t=z,far=di((uX(),Ce(Te(iqe,1),Rt,439,0,[bye,nqe,rqe])))}function L8t(){L8t=z,enr=di((Vw(),Ce(Te(Jrr,1),Rt,464,0,[Oz,E9,$ee])))}function M8t(){M8t=z,wQt=di((td(),Ce(Te(EQt,1),Rt,471,0,[Um,m_,h0])))}function D8t(){D8t=z,_Qt=di((K0(),Ce(Te(Cx,1),Rt,237,0,[Mc,qu,Dc])))}function P8t(){P8t=z,TQt=di((ph(),Ce(Te(SQt,1),Rt,472,0,[eg,b_,d0])))}function B8t(){B8t=z,cQt=di((rd(),Ce(Te(Wl,1),Rt,108,0,[h$e,fc,xx])))}function F8t(){F8t=z,HZt=di((w8(),Ce(Te(iUe,1),Rt,391,0,[r1e,t1e,n1e])))}function $8t(){$8t=z,Csr=di((Cb(),Ce(Te(FYe,1),Rt,346,0,[mte,Zy,H9])))}function U8t(){U8t=z,bar=di((BU(),Ce(Te(yye,1),Rt,444,0,[nte,ite,ate])))}function G8t(){G8t=z,wsr=di((Rg(),Ce(Te(CYe,1),Rt,278,0,[MN,jx,DN])))}function z8t(){z8t=z,Usr=di((n5(),Ce(Te(qYe,1),Rt,280,0,[HYe,Xx,wte])))}function kg(t,n){return!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),jde(t.o,n)}function P0n(t,n){var s;if(t.C)s=b(Nl(t.b,n),127).n,s.d=t.C.d,s.a=t.C.a}function yNe(t){var n,s,u,f;f=t.d,n=t.a,s=t.b,u=t.c,t.d=s,t.a=u,t.b=f,t.c=n}function B0n(t){return!t.g&&(t.g=new MW),!t.g.b&&(t.g.b=new U4t(t)),t.g.b}function sU(t){return!t.g&&(t.g=new MW),!t.g.c&&(t.g.c=new V4t(t)),t.g.c}function F0n(t){return!t.g&&(t.g=new MW),!t.g.d&&(t.g.d=new G4t(t)),t.g.d}function $0n(t){return!t.g&&(t.g=new MW),!t.g.a&&(t.g.a=new z4t(t)),t.g.a}function U0n(t,n,s,u){return!!s&&(u=s.Rh(n,Za(s.Dh(),t.c.uk()),null,u)),u}function G0n(t,n,s,u){return!!s&&(u=s.Th(n,Za(s.Dh(),t.c.uk()),null,u)),u}function Mhe(t,n,s,u){var f=mt(ci,$i,28,n+1,15,1);return q3n(f,t,n,s,u),f}function mt(t,n,s,u,f,g){var E=f$t(f,u);return f!=10&&Ce(Te(t,g),n,s,f,E),E}function z0n(t,n,s){var u,f;f=new j6(n,t);for(u=0;us||n=0?t.Lh(s,!0,!0):eS(t,n,!0)}function agn(t,n,s){var u=qPt(t,n,s);return t.b=new LX(u.c.length),G8e(t,u)}function sgn(t){if(t.b<=0)throw _e(new yc);return--t.b,t.a-=t.c.c,$t(t.a)}function ogn(t){var n;if(!t.a)throw _e(new tLt);return n=t.a,t.a=Ya(t.a),n}function lgn(t){while(!t.a)if(!k6t(t.c,new XTt(t)))return!1;return!0}function ZA(t){var n;if(mi(t),He(t,204))return n=b(t,204),n;return new fTt(t)}function cgn(t){lX(),b(t.of((Hi(),Wx)),181).Fc((nd(),rV)),t.qf(Vye,null)}function lX(){lX=z,Har=new W_t,Yar=new j_t,qar=Q1n((Hi(),Vye),Har,x_,Yar)}function cX(){cX=z,fHe=new PRe("LEAF_NUMBER",0),eye=new PRe("NODE_SIZE",1)}function $he(t){t.a=mt(ci,$i,28,t.b+1,15,1),t.c=mt(ci,$i,28,t.b,15,1),t.d=0}function ugn(t,n){if(t.a.Ne(n.d,t.b)>0)Gt(t.c,new v6e(n.c,n.d,t.d)),t.b=n.d}function ANe(t,n){if(t.g==null||n>=t.i)throw _e(new qce(n,t.i));return t.g[n]}function Y8t(t,n,s){if(eO(t,s),s!=null&&!t.fk(s))throw _e(new $le);return s}function Uhe(t,n){return mU(n)!=10&&Ce(Ld(n),n.Sm,n.__elementTypeId$,mU(n),t),t}function L6(t,n,s,u){var f;u=(Mw(),!u?i$e:u),f=t.slice(n,s),e8e(f,t,n,s,-n,u)}function Mf(t,n,s,u,f){return n<0?eS(t,s,u):b(s,69).wk().yk(t,t.hi(),n,u,f)}function hgn(t,n){return Ra(rt(ht(ce(t,(Pt(),ES)))),rt(ht(ce(n,ES))))}function W8t(){W8t=z,nQt=di((M6(),Ce(Te(EJ,1),Rt,304,0,[Mme,Dme,Pme,Bme])))}function M6(){M6=z,Mme=new mj("All",0),Dme=new BRt,Pme=new YRt,Bme=new PRt}function td(){td=z,Um=new mce(_5,0),m_=new mce($O,1),h0=new mce(E5,2)}function j8t(){j8t=z,XQ(),DWe=Wa,Kor=Gs,PWe=new jF(Wa),Xor=new jF(Gs)}function K8t(){K8t=z,KQt=di((Yw(),Ce(Te(jQt,1),Rt,417,0,[iz,nz,qme,Yme])))}function X8t(){X8t=z,eZt=di((Y8(),Ce(Te(JQt,1),Rt,406,0,[cz,xJ,CJ,uz])))}function Q8t(){Q8t=z,QQt=di((s5(),Ce(Te(XQt,1),Rt,332,0,[sz,az,oz,lz])))}function Z8t(){Z8t=z,aJt=di((Z2(),Ce(Te(lUe,1),Rt,389,0,[Rx,oUe,l1e,c1e])))}function J8t(){J8t=z,JZt=di((X6(),Ce(Te(ZZt,1),Rt,416,0,[mS,Ax,kx,ek])))}function eDt(){eDt=z,RJt=di((Ig(),Ce(Te(AJt,1),Rt,421,0,[M5,oN,lN,v1e])))}function tDt(){tDt=z,yJt=di((GX(),Ce(Te(bJt,1),Rt,371,0,[y1e,ZJ,JJ,gz])))}function rDt(){rDt=z,krr=di((nx(),Ce(Te(_be,1),Rt,203,0,[Pee,vbe,mk,gk])))}function nDt(){nDt=z,Irr=di((Cm(),Ce(Te(gVe,1),Rt,284,0,[Wy,pVe,Sbe,Tbe])))}function uU(){uU=z,uGe=new CRe(Dm,0),oee=new CRe("IMPROVE_STRAIGHTNESS",1)}function iDt(t,n){var s,u;return u=n/t.c.Rd().gc()|0,s=n%t.c.Rd().gc(),QA(t,u,s)}function aDt(t){var n;if(t.nl())for(n=t.i-1;n>=0;--n)We(t,n);return XOe(t)}function RNe(t){var n,s;if(!t.b)return null;s=t.b;while(n=s.a[0])s=n;return s}function sDt(t){var n,s;if(!t.b)return null;s=t.b;while(n=s.a[1])s=n;return s}function dgn(t){if(He(t,180))return""+b(t,180).a;return t==null?null:hc(t)}function fgn(t){if(He(t,180))return""+b(t,180).a;return t==null?null:hc(t)}function oDt(t,n){if(n.a)throw _e(new vc(CYt));$s(t.a,n),n.a=t,!t.j&&(t.j=n)}function INe(t,n){Uj.call(this,n.zd(),n.yd()&-16449),_n(t),this.a=t,this.c=n}function pgn(t,n){return new _ue(n,Tw(Uo(n.e),n.f.a+t,n.f.b+t),(an(),!1))}function ggn(t,n){return m6(),Gt(t,new js(n,$t(n.e.c.length+n.g.c.length)))}function mgn(t,n){return m6(),Gt(t,new js(n,$t(n.e.c.length+n.g.c.length)))}function lDt(){lDt=z,Fir=di((yQ(),Ce(Te(NHe,1),Rt,354,0,[iye,IHe,OHe,RHe])))}function cDt(){cDt=z,lir=di((M8(),Ce(Te(cHe,1),Rt,353,0,[Wbe,jee,Ybe,qbe])))}function uDt(){uDt=z,Bnr=di((c5(),Ce(Te(OVe,1),Rt,405,0,[Vee,T9,x9,C9])))}function hDt(){hDt=z,Ssr=di((kb(),Ce(Te(Wye,1),Rt,223,0,[Yye,Zz,PN,K5])))}function dDt(){dDt=z,Asr=di((Qd(),Ce(Te(ksr,1),Rt,291,0,[eV,D1,C_,Jz])))}function fDt(){fDt=z,Fsr=di((Md(),Ce(Te(K9,1),Rt,386,0,[iV,IE,nV,Kx])))}function pDt(){pDt=z,zsr=di((JX(),Ce(Te(QYe,1),Rt,320,0,[Xye,jYe,XYe,KYe])))}function gDt(){gDt=z,qsr=di((VX(),Ce(Te(Hsr,1),Rt,415,0,[Qye,JYe,ZYe,eWe])))}function uX(){uX=z,bye=new Uce(VWt,0),nqe=new Uce(JPe,1),rqe=new Uce(Dm,2)}function WT(t,n,s,u,f){return _n(t),_n(n),_n(s),_n(u),_n(f),new tOe(t,n,u)}function mDt(t,n){var s=b(XA(t.e,n),400);if(s)return I6e(s),s.e;return null}function fh(t,n){var s=rc(t,n,0);if(s==-1)return!1;return xy(t,s),!0}function bDt(t,n,s){var u;return Yv(t),u=new we,u.a=n,t.a.Nb(new ZAt(u,s)),u.a}function bgn(t){var n;return Yv(t),n=mt(xo,Ml,28,0,15,1),ZC(t.a,new WTt(n)),n}function ONe(t){var n;if(!rde(t))throw _e(new yc);return t.e=1,n=t.d,t.d=null,n}function ky(t){var n;if(cc(t)){if(n=0-t,!isNaN(n))return n}return Qv(Z6(t))}function rc(t,n,s){for(;s=0?dQ(t,s,!0,!0):eS(t,n,!0)}function LNe(t){var n=H2(un(t,32));if(n==null)rh(t),n=H2(un(t,32));return n}function MNe(t){var n;if(!t.Oh())n=Un(t.Dh())-t.ji(),t.$h().Mk(n);return t.zh()}function SDt(t,n){M$e=new ba,ZQt=n,ZD=t,b(ZD.b,68),ENe(ZD,M$e,null),FHt(ZD)}function w8(){w8=z,r1e=new yce("XY",0),t1e=new yce("X",1),n1e=new yce("Y",2)}function ph(){ph=z,eg=new bce("TOP",0),b_=new bce($O,1),d0=new bce(h9e,2)}function Sb(){Sb=z,vz=new Tce(Dm,0),ok=new Tce("TOP",1),D5=new Tce(h9e,2)}function gU(){gU=z,xbe=new ARe("INPUT_ORDER",0),Cbe=new ARe("PORT_DEGREE",1)}function D6(){D6=z,$Fe=Qu(yd,yd,524287),GXt=Qu(0,0,CG),UFe=Ihe(1),Ihe(2),GFe=Ihe(0)}function qhe(t){var n;if(t.d!=t.r)n=vp(t),t.e=!!n&&n.lk()==GKt,t.d=n;return t.e}function Yhe(t,n,s){var u=t.g[n];return XM(t,n,t.Zi(n,s)),t.Ri(n,s,u),t.Ni(),u}function pX(t,n){var s=t.dd(n);if(s>=0)return t.gd(s),!0;else return!1}function Whe(t,n){var s;mi(t),mi(n),s=!1;while(n.Ob())s=s|t.Fc(n.Pb());return s}function Ag(t,n){var s=b(An(t.e,n),400);if(s)return iIt(t,s),s.e;return null}function TDt(t){var n,s;if(n=t/60|0,s=t%60,s==0)return""+n;return""+n+":"+(""+s)}function jT(t,n){var s=t.a[n],u=(vde(),Ame)[typeof s];return u?u(s):VLe(typeof s)}function wc(t,n){var s,u;return t_(t),u=new gNe(n,t.a),s=new I6t(u),new Pr(t,s)}function jhe(t){var n=t.b.c.length==0?null:nr(t.b,0);return n!=null&&ide(t,0),n}function Egn(t,n){var s,u,f;f=n.c.i,s=b(An(t.f,f),60),u=s.d.c-s.e.c,dLe(n.a,u,0)}function DNe(t,n){var s;++t.d,++t.c[n],s=n+1;while(s=0)++n[0]}function wgn(t,n){eh(t,n==null||tK((_n(n),n))||isNaN((_n(n),n))?0:(_n(n),n))}function Sgn(t,n){th(t,n==null||tK((_n(n),n))||isNaN((_n(n),n))?0:(_n(n),n))}function Tgn(t,n){zw(t,n==null||tK((_n(n),n))||isNaN((_n(n),n))?0:(_n(n),n))}function xgn(t,n){Gw(t,n==null||tK((_n(n),n))||isNaN((_n(n),n))?0:(_n(n),n))}function Cgn(t,n,s){return OA(new Dt(s.e.a+s.f.a/2,s.e.b+s.f.b/2),t)==(_n(n),n)}function kgn(t,n){return He(n,102)&&(b(n,19).Bb&ml)!=0?new Yce(n,t):new j6(n,t)}function Agn(t,n){return He(n,102)&&(b(n,19).Bb&ml)!=0?new Yce(n,t):new j6(n,t)}function mU(t){return t.__elementTypeCategory$==null?10:t.__elementTypeCategory$}function kDt(t,n){return n==(gue(),gue(),eQt)?t.toLocaleLowerCase():t.toLowerCase()}function ADt(t){if(!t.e)throw _e(new yc);return t.c=t.a=t.e,t.e=t.e.e,--t.d,t.a.f}function PNe(t){if(!t.c)throw _e(new yc);return t.e=t.a=t.c,t.c=t.c.c,++t.d,t.a.f}function RDt(t){var n;++t.a;for(n=t.c.a.length;t.at.a[u]&&(u=s);return u}function IDt(t){var n=b(ce(t,(Pt(),vS)),313);if(n)return n.a==t;return!1}function ODt(t){var n=b(ce(t,(Pt(),vS)),313);if(n)return n.i==t;return!1}function NDt(){NDt=z,jZt=di((Xo(),Ce(Te(aUe,1),Rt,367,0,[f0,O1,su,wu,ac])))}function LDt(){LDt=z,OJt=di((ax(),Ce(Te(IJt,1),Rt,375,0,[mz,ree,nee,tee,eee])))}function MDt(){MDt=z,zJt=di((My(),Ce(Te(sGe,1),Rt,348,0,[O1e,aGe,N1e,fN,dN])))}function DDt(){DDt=z,Arr=di((q8(),Ce(Te(lVe,1),Rt,323,0,[oVe,Ebe,wbe,b9,y9])))}function PDt(){PDt=z,ter=di((Uf(),Ce(Te(BGe,1),Rt,171,0,[Sz,c9,__,u9,Mx])))}function BDt(){BDt=z,mir=di((xQ(),Ce(Te(gir,1),Rt,368,0,[Zbe,Kbe,Jbe,Xbe,Qbe])))}function FDt(){FDt=z,mar=di((iD(),Ce(Te(gar,1),Rt,373,0,[Ek,H5,D9,M9,Gz])))}function $Dt(){$Dt=z,Sar=di((ZU(),Ce(Te(fqe,1),Rt,324,0,[uqe,wye,dqe,Sye,hqe])))}function UDt(){UDt=z,Esr=di((Ms(),Ce(Te(z9,1),Rt,88,0,[Hg,sc,Kl,Vg,jf])))}function GDt(){GDt=z,War=di((Q0(),Ce(Te(M1,1),Rt,170,0,[Qr,Qs,Hm,xE,Xy])))}function zDt(){zDt=z,Isr=di((x4(),Ce(Te(Y9,1),Rt,256,0,[k_,tV,$Ye,q9,UYe])))}function VDt(){VDt=z,Lsr=di((Ht(),Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn])))}function gX(){gX=z,p$e=new yRe("BY_SIZE",0),Gme=new yRe("BY_SIZE_AND_SHAPE",1)}function mX(){mX=z,Zme=new ERe("EADES",0),RJ=new ERe("FRUCHTERMAN_REINGOLD",1)}function bU(){bU=z,aee=new xRe("READING_DIRECTION",0),oGe=new xRe("ROTATION",1)}function S8(){S8=z,rJt=new xf,nJt=new Uu,eJt=new qF,tJt=new $0,iJt=new hA}function HDt(t){this.b=new Ut,this.a=new Ut,this.c=new Ut,this.d=new Ut,this.e=t}function qDt(t){this.g=t,this.f=new Ut,this.a=d.Math.min(this.g.c.c,this.g.d.c)}function YDt(t,n,s){Jj.call(this),$Ne(this),this.a=t,this.c=s,this.b=n.d,this.f=n.e}function Mgn(t,n,s){var u,f;for(f=new me(s);f.a=0&&n0?n-1:n;return k3t(oin(m9t(C6e(new vA,s),t.n),t.j),t.k)}function ql(t){var n,s;s=(n=new Vle,n),ii((!t.q&&(t.q=new kt(Op,t,11,10)),t.q),s)}function BNe(t){return((t.i&2)!=0?"interface ":(t.i&1)!=0?"":"class ")+(gb(t),t.o)}function bX(t){if(Kc(t,sa)>0)return sa;if(Kc(t,Qo)<0)return Qo;return gi(t)}function KT(t){if(t<3)return Kd(t,oYt),t+1;if(t=-0.01&&t.a<=Dg&&(t.a=0),t.b>=-0.01&&t.b<=Dg&&(t.b=0),t}function v4(t){D4();var n,s;s=rBe;for(n=0;ns&&(s=t[n]);return s}function XDt(t,n){var s=oG(t.Dh(),n);if(!s)throw _e(new fn(f_+n+Gge));return s}function XT(t,n){var s=t;while(Ya(s))if(s=Ya(s),s==n)return!0;return!1}function qgn(t,n){var s,u,f;u=n.a.ld(),s=b(n.a.md(),16).gc();for(f=0;ft||t>n)throw _e(new q5e("fromIndex: 0, toIndex: "+t+JDe+n))}function Uw(t){if(t<0)throw _e(new fn("Illegal Capacity: "+t));this.g=this.aj(t)}function FNe(t,n){return _g(),a0(l_),d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)}function Qhe(t,n){var s,u,f,g;for(u=t.d,f=0,g=u.length;f0)t.a/=n,t.b/=n;return t}function Wd(t){var n;if(t.w)return t.w;else return n=Bfn(t),!!n&&!n.Vh()&&(t.w=n),n}function P6(t,n){var s,u;u=t.a,s=Gbn(t,n,null),u!=n&&!t.e&&(s=IO(t,n,s)),!!s&&s.oj()}function t9t(t,n,s){var u,f;u=n;do f=rt(t.p[u.p])+s,t.p[u.p]=f,u=t.a[u.p];while(u!=n)}function r9t(t,n,s){var u=function(){return t.apply(u,arguments)};return n.apply(u,s),u}function Zgn(t){var n;if(t==null)return null;else return n=b(t,195),uwn(n,n.length)}function We(t,n){if(t.g==null||n>=t.i)throw _e(new qce(n,t.i));return t.Wi(n,t.g[n])}function Jgn(t,n){Hr();var s,u;u=new Ut;for(s=0;s=14&&n<=16))),t}function hi(t,n){var s;return _n(n),s=t[":"+n],F$(!!s,"Enum constant undefined: "+n),s}function ei(t,n,s,u,f,g){var E=Wue(t,n);return b9t(s,E),E.i=f?8:0,E.f=u,E.e=f,E.g=g,E}function GNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=1,this.c=t,this.a=s}function zNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=2,this.c=t,this.a=s}function VNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=6,this.c=t,this.a=s}function HNe(t,n,s,u,f){this.d=n,this.k=u,this.f=f,this.o=-1,this.p=7,this.c=t,this.a=s}function qNe(t,n,s,u,f){this.d=n,this.j=u,this.e=f,this.o=-1,this.p=4,this.c=t,this.a=s}function y9t(t,n){var s,u,f,g;for(u=n,f=0,g=u.length;f=0))throw _e(new fn("tolerance ("+t+") must be >= 0"));return t}function _9t(t,n){var s;if(He(n,44))return t.c.Mc(n);else return s=jde(t,n),iQ(t,n),s}function Ll(t,n,s){return Q2(t,n),zu(t,s),Ay(t,0),QT(t,1),Ly(t,!0),Ny(t,!0),t}function vU(t,n){var s=t.gc();if(n<0||n>s)throw _e(new FT(n,s));return new r6e(t,n)}function xX(t,n){t.b=d.Math.max(t.b,n.d),t.e+=n.r+(t.a.c.length==0?0:t.c),Gt(t.a,n)}function E9t(t){if(DT(t.c>=0),fvn(t.d,t.c)<0)t.a=t.a-1&t.d.a.length-1,t.b=t.d.c;t.c=-1}function CX(t){var n,s;for(s=t.c.Cc().Kc();s.Ob();)n=b(s.Pb(),16),n.$b();t.c.$b(),t.d=0}function cmn(t){var n,s,u,f;for(s=t.a,u=0,f=s.length;u=0}function ZNe(t,n){if(t.r>0&&t.c0&&t.g!=0&&ZNe(t.i,n/t.r*t.i.d)}function JNe(t,n){var s=t.c;t.c=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,1,s,t.c))}function ede(t,n){var s=t.c;t.c=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,4,s,t.c))}function V6(t,n){var s=t.k;t.k=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,2,s,t.k))}function tde(t,n){var s=t.D;t.D=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,2,s,t.D))}function AX(t,n){var s=t.f;t.f=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,8,s,t.f))}function RX(t,n){var s=t.i;t.i=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,7,s,t.i))}function eLe(t,n){var s=t.a;t.a=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,8,s,t.a))}function tLe(t,n){var s=t.b;t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,0,s,t.b))}function rLe(t,n){var s=t.b;t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,0,s,t.b))}function nLe(t,n){var s=t.c;t.c=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,1,s,t.c))}function iLe(t,n){var s=t.d;t.d=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,1,s,t.d))}function mmn(t,n,s){var u;t.b=n,t.a=s,u=(t.a&512)==512?new zkt:new NAe,t.c=I4n(u,t.b,t.a)}function L9t(t,n){return Nb(t.e,n)?(_l(),qhe(n)?new hK(n,t):new w$(n,t)):new oRt(n,t)}function bmn(t){var n,s;if(0>t)return new sRe;return n=t+1,s=new qMt(n,t),new DIe(null,s)}function ymn(t,n){Hr();var s=new TA(1);return So(t)?Vl(s,t,n):Hu(s.f,t,n),new Mle(s)}function vmn(t,n){var s,u;if(s=t.c,u=n.e[t.p],u>0)return b(nr(s.a,u-1),10);return null}function _mn(t,n){var s,u;if(s=t.o+t.p,u=n.o+n.p,sn)return n<<=1,n>0?n:bD;return n}function rde(t){switch(gIe(t.e!=3),t.e){case 2:return!1;case 0:return!0}return R0n(t)}function D9t(t,n){var s;if(He(n,8))return s=b(n,8),t.a==s.a&&t.b==s.b;else return!1}function wmn(t,n){var s=new ba;b(n.b,68),b(n.b,68),b(n.b,68),Ju(n.a,new d6e(t,s,n))}function P9t(t,n){var s,u;for(u=n.vc().Kc();u.Ob();)s=b(u.Pb(),44),jU(t,s.ld(),s.md())}function aLe(t,n){var s=t.d;t.d=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,11,s,t.d))}function IX(t,n){var s=t.j;t.j=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,13,s,t.j))}function sLe(t,n){var s=t.b;t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,21,s,t.b))}function Smn(t,n){((eX(),Fg)?null:n.c).length==0&&ZIt(n,new rr),Vl(t.a,Fg?null:n.c,n)}function Tmn(t,n){n.Ug("Hierarchical port constraint processing",1),zvn(t),l6n(t),n.Vg()}function Hw(){Hw=z,yS=new vce("START",0),y_=new vce("MIDDLE",1),bS=new vce("END",2)}function OX(){OX=z,Kee=new DRe("P1_NODE_PLACEMENT",0),_k=new DRe("P2_EDGE_ROUTING",1)}function Xv(){Xv=z,L5=new va(T9e),NJ=new va(x9e),e9=new va(QYt),hz=new va(ZYt)}function qw(t){var n;return mue(t.f.g,t.d),Pn(t.b),t.c=t.a,n=b(t.a.Pb(),44),t.b=vLe(t),n}function oLe(t){var n;if(t.b==null)return yy(),yy(),fV;return n=t.ul()?t.tl():t.sl(),n}function B9t(t,n){var s=n==null?-1:rc(t.b,n,0);if(s<0)return!1;return ide(t,s),!0}function s0(t,n){var s;if(_n(n),s=n.g,!t.b[s])return ls(t.b,s,n),++t.c,!0;return!1}function NX(t,n){var s,u;return s=1-n,u=t.a[s],t.a[s]=u.a[n],u.a[n]=t,t.b=!0,u.b=!1,u}function xmn(t,n){var s,u;for(u=n.Kc();u.Ob();)s=b(u.Pb(),272),t.b=!0,$s(t.e,s),s.b=t}function Cmn(t,n){var s,u;return s=b(ce(t,(Qt(),Ux)),8),u=b(ce(n,Ux),8),Ra(s.b,u.b)}function nde(t,n,s){var u,f,g;return g=n>>5,f=n&31,u=io(Vv(t.n[s][g],gi(n0(f,1))),3),u}function F9t(t,n,s){var u,f,g;g=t.a.length-1;for(f=t.b,u=0;u0?1:0;return(!t.c&&(t.c=Z$(Vc(t.f))),t.c).e}function W9t(t,n){if(n){if(t.B==null)t.B=t.D,t.D=null}else if(t.B!=null)t.D=t.B,t.B=null}function Imn(t,n){return X6(),t==mS&&n==Ax||t==Ax&&n==mS||t==ek&&n==kx||t==kx&&n==ek}function Omn(t,n){return X6(),t==mS&&n==kx||t==mS&&n==ek||t==Ax&&n==ek||t==Ax&&n==kx}function j9t(t,n){return _g(),a0(Dg),d.Math.abs(0-n)<=Dg||n==0||isNaN(0)&&isNaN(n)?0:t/n}function K9t(t,n){return rt(ht(Rd(DU(ec(new Pr(null,new Gr(t.c.b,16)),new rCt(t)),n))))}function hLe(t,n){return rt(ht(Rd(DU(ec(new Pr(null,new Gr(t.c.b,16)),new tCt(t)),n))))}function Nmn(){return Tl(),Ce(Te(U1e,1),Rt,259,0,[cee,Wf,a9,uee,bN,sk,s9,gN,mN,hee])}function Lmn(){return _p(),Ce(Te(fVe,1),Rt,243,0,[Bee,Az,Rz,uVe,hVe,cVe,dVe,Fee,RS,zx])}function Mmn(t,n){var s;n.Ug("General Compactor",1),s=$yn(b(It(t,(s_(),rye)),393)),s.Cg(t)}function Dmn(t,n){var s,u;return s=b(It(t,(s_(),Qee)),17),u=b(It(n,Qee),17),jc(s.a,u.a)}function dLe(t,n,s){var u,f;for(f=ti(t,0);f.b!=f.d.c;)u=b(Jn(f),8),u.a+=n,u.b+=s;return t}function C8(t,n,s){var u;for(u=t.b[s&t.f];u;u=u.b)if(s==u.a&&Sm(n,u.g))return u;return null}function k8(t,n,s){var u;for(u=t.c[s&t.f];u;u=u.d)if(s==u.f&&Sm(n,u.i))return u;return null}function Pmn(t,n,s){var u,f,g;u=0;for(f=0;f>>31;u!=0&&(t[s]=u)}function lde(t,n,s,u,f,g){var E;this.c=t,E=new Ut,q7e(t,E,n,t.b,s,u,f,g),this.a=new Mo(E,0)}function X9t(){this.c=new nj(0),this.b=new nj(tBe),this.d=new nj(PWt),this.a=new nj(I0e)}function Pf(t,n,s,u,f,g,E){ui.call(this,t,n),this.d=s,this.e=u,this.c=f,this.b=g,this.a=xg(E)}function vs(t,n,s,u,f,g,E,S,C,O,M,U,q){return tGt(t,n,s,u,f,g,E,S,C,O,M,U,q),Gde(t,!1),t}function Bmn(t){if(t.b.c.i.k==(bn(),As))return b(ce(t.b.c.i,(Pt(),Ea)),12);return t.b.c}function Q9t(t){if(t.b.d.i.k==(bn(),As))return b(ce(t.b.d.i,(Pt(),Ea)),12);return t.b.d}function Fmn(t){var n=jK(t);if(vw(n.a,0))return oj(),oj(),tQt;return oj(),new NIt(n.b)}function cde(t){var n=HOe(t);if(vw(n.a,0))return RT(),RT(),Lme;return RT(),new sue(n.b)}function ude(t){var n=HOe(t);if(vw(n.a,0))return RT(),RT(),Lme;return RT(),new sue(n.c)}function Z9t(t){switch(t.g){case 2:return Ht(),yn;case 4:return Ht(),Cn;default:return t}}function J9t(t){switch(t.g){case 1:return Ht(),Kn;case 3:return Ht(),gn;default:return t}}function ePt(t){switch(t.g){case 0:return new L_t;case 1:return new M_t;default:return null}}function e5(){e5=z,b1e=new es("edgelabelcenterednessanalysis.includelabel",(an(),g_))}function fLe(){fLe=z,Zrr=km(ERt(Fi(Fi(new Ns,(Xo(),su),(il(),HJ)),wu,$J),ac),VJ)}function tPt(){tPt=z,rnr=km(ERt(Fi(Fi(new Ns,(Xo(),su),(il(),HJ)),wu,$J),ac),VJ)}function hde(){hde=z,tP=new Bkt,ave=Ce(Te(_h,1),X4,179,0,[]),kor=Ce(Te(Op,1),_Fe,62,0,[])}function H6(){H6=z,fz=new wRe("TO_INTERNAL_LTR",0),p1e=new wRe("TO_INPUT_DIRECTION",1)}function Dh(){Dh=z,f1e=new Qn,d1e=new Cs,dUe=new wo,hUe=new Il,fUe=new dp,pUe=new T2}function $mn(t,n){n.Ug(fWt,1),m7e(Sin(new UW((CM(),new Jue(t,!1,!1,new Or))))),n.Vg()}function Umn(t,n,s){s.Ug("DFS Treeifying phase",1),nvn(t,n),t4n(t,n),t.a=null,t.b=null,s.Vg()}function _U(t,n){return an(),So(t)?fNe(t,wi(n)):LT(t)?Due(t,ht(n)):NT(t)?Iun(t,Jt(n)):t.Fd(n)}function A8(t,n){var s,u;_n(n);for(u=n.vc().Kc();u.Ob();)s=b(u.Pb(),44),t.zc(s.ld(),s.md())}function Gmn(t,n,s){var u;for(u=s.Kc();u.Ob();)if(!QK(t,n,u.Pb()))return!1;return!0}function zmn(t,n,s,u,f){var g;if(s)g=Za(n.Dh(),t.c),f=s.Rh(n,-1-(g==-1?u:g),null,f);return f}function Vmn(t,n,s,u,f){var g;if(s)g=Za(n.Dh(),t.c),f=s.Th(n,-1-(g==-1?u:g),null,f);return f}function rPt(t){var n;if(t.b==-2){if(t.e==0)n=-1;else for(n=0;t.a[n]==0;n++);t.b=n}return t.b}function Hmn(t){if(_n(t),t.length==0)throw _e(new bm("Zero length BigInteger"));Kkn(this,t)}function pLe(t){if(this.i=t.gc(),this.i>0)this.g=this.aj(this.i+(this.i/8|0)+1),t.Qc(this.g)}function nPt(t,n,s){this.g=t,this.d=n,this.e=s,this.a=new Ut,rTn(this),Hr(),ks(this.a,null)}function gLe(t,n){n.q=t,t.d=d.Math.max(t.d,n.r),t.b+=n.d+(t.a.c.length==0?0:t.c),Gt(t.a,n)}function q6(t,n){var s,u,f,g;return f=t.c,s=t.c+t.b,g=t.d,u=t.d+t.a,n.a>f&&n.ag&&n.bf?s=f:pn(n,s+1),t.a=Of(t.a,0,n)+(""+u)+cOe(t.a,s)}function dPt(t,n){t.a=rl(t.a,1),t.c=d.Math.min(t.c,n),t.b=d.Math.max(t.b,n),t.d=rl(t.d,n)}function Qmn(t,n){return n1||t.Ob())return++t.a,t.g=0,n=t.i,t.Ob(),n;else throw _e(new yc)}function mPt(t){switch(t.a.g){case 1:return new E5t;case 3:return new E$t;default:return new MSt}}function bLe(t,n){switch(n){case 1:return!!t.n&&t.n.i!=0;case 2:return t.k!=null}return VOe(t,n)}function Vc(t){if(kG>22),f=t.h+n.h+(u>>22),Qu(s&yd,u&yd,f&Mb)}function TPt(t,n){var s,u,f;return s=t.l-n.l,u=t.m-n.m+(s>>22),f=t.h-n.h+(u>>22),Qu(s&yd,u&yd,f&Mb)}function y1n(t){var n,s;hIn(t);for(s=new me(t.d);s.au)throw _e(new FT(n,u));return t.Si()&&(s=zLt(t,s)),t.Ei(n,s)}function Q6(t,n,s,u,f){var g,E;for(E=s;E<=f;E++)for(g=n;g<=u;g++)k4(t,g,E)||YQ(t,g,E,!0,!1)}function N1n(t){D4();var n,s,u;s=mt(uo,Bt,8,2,0,1),u=0;for(n=0;n<2;n++)u+=0.5,s[n]=x_n(u,t);return s}function Z6(t){var n,s,u;return n=~t.l+1&yd,s=~t.m+(n==0?1:0)&yd,u=~t.h+(n==0&&s==0?1:0)&Mb,Qu(n,s,u)}function xLe(t){var n;if(t<0)return Qo;else if(t==0)return 0;else{for(n=bD;(n&t)==0;n>>=1);return n}}function yde(t,n,s){if(t>=128)return!1;return t<64?HM(io(n0(1,t),s),0):HM(io(n0(1,t-64),n),0)}function RU(t,n,s){return s==null?(!t.q&&(t.q=new Zn),XA(t.q,n)):(!t.q&&(t.q=new Zn),Ki(t.q,n,s)),t}function At(t,n,s){return s==null?(!t.q&&(t.q=new Zn),XA(t.q,n)):(!t.q&&(t.q=new Zn),Ki(t.q,n,s)),t}function DPt(t){var n,s;return s=new rX,nc(s,t),At(s,(Xv(),L5),t),n=new Zn,oAn(t,s,n),DRn(t,s,n),s}function PPt(t){var n,s;return n=t.t-t.k[t.o.p]*t.d+t.j[t.o.p]>t.f,s=t.u+t.e[t.o.p]*t.d>t.f*t.s*t.d,n||s}function BPt(t,n){var s,u,f,g;s=!1,u=t.a[n].length;for(g=0;g=0,"Negative initial capacity"),F$(n>=0,"Non-positive load factor"),Jh(this)}function M1n(t,n,s,u,f){var g,E;if(E=t.length,g=s.length,n<0||u<0||f<0||n+f>E||u+f>g)throw _e(new b5e)}function RLe(t,n){Hr();var s,u,f,g,E;E=!1;for(u=n,f=0,g=u.length;f1||n>=0&&t.b<3}function Ede(t){var n,s,u;n=~t.l+1&yd,s=~t.m+(n==0?1:0)&yd,u=~t.h+(n==0&&s==0?1:0)&Mb,t.l=n,t.m=s,t.h=u}function NLe(t){Hr();var n,s,u;u=1;for(s=t.Kc();s.Ob();)n=s.Pb(),u=31*u+(n!=null?Da(n):0),u=u|0;return u}function $1n(t,n,s,u,f){var g=E8e(t,n);if(s&&Ede(g),f)t=N_n(t,n),u?p_=Z6(t):p_=Qu(t.l,t.m,t.h);return g}function WPt(t,n,s){if(t.g=$fe(t,n,(Ht(),Cn),t.b),t.d=$fe(t,s,Cn,t.b),t.g.c==0||t.d.c==0)return;TUt(t)}function jPt(t,n,s){if(t.g=$fe(t,n,(Ht(),yn),t.j),t.d=$fe(t,s,yn,t.j),t.g.c==0||t.d.c==0)return;TUt(t)}function LLe(t,n){switch(n){case 7:return!!t.e&&t.e.i!=0;case 8:return!!t.d&&t.d.i!=0}return b7e(t,n)}function U1n(t,n){switch(n.g){case 0:He(t.b,641)||(t.b=new hPt);break;case 1:He(t.b,642)||(t.b=new uOt)}}function KPt(t){switch(t.g){case 0:return new $_t;default:throw _e(new fn(YZ+(t.f!=null?t.f:""+t.g)))}}function XPt(t){switch(t.g){case 0:return new F_t;default:throw _e(new fn(YZ+(t.f!=null?t.f:""+t.g)))}}function G1n(t,n,s){return!i6(pa(new Pr(null,new Gr(t.c,16)),new KI(new P5t(n,s)))).Bd((L2(),O5))}function QPt(t,n){return OA(fO(b(ce(n,(Oc(),OS)),88)),new Dt(t.c.e.a-t.b.e.a,t.c.e.b-t.b.e.b))<=0}function z1n(t,n){while(t.g==null&&!t.c?LOe(t):t.g==null||t.i!=0&&b(t.g[t.i-1],51).Ob())Yin(n,MQ(t))}function X2(t){var n,s;for(s=new me(t.a.b);s.au?1:0}function q1n(t){if(Gt(t.c,(t5(),zar)),FNe(t.a,rt(ht(jt((Wde(),Lee))))))return new C2t;return new o4t(t)}function Y1n(t){while(!t.d||!t.d.Ob())if(!!t.b&&!wM(t.b))t.d=b(UA(t.b),51);else return null;return t.d}function DLe(t){switch(t.g){case 1:return PWt;default:case 2:return 0;case 3:return I0e;case 4:return tBe}}function W1n(){ia();var t;if(hve)return hve;return t=fsn(o_("M",!0)),t=mK(o_("M",!1),t),hve=t,hve}function VX(){VX=z,Qye=new Mj("ELK",0),JYe=new Mj("JSON",1),ZYe=new Mj("DOT",2),eWe=new Mj("SVG",3)}function N8(){N8=z,Rbe=new Ace("STACKED",0),Abe=new Ace("REVERSE_STACKED",1),Iz=new Ace("SEQUENCED",2)}function L8(){L8=z,zVe=new Mce(Dm,0),Dbe=new Mce("MIDDLE_TO_MIDDLE",1),Lz=new Mce("AVOID_OVERLAP",2)}function tO(){tO=z,XUe=new _1t,QUe=new E1t,SJt=new y1t,wJt=new w1t,EJt=new v1t,KUe=(_n(EJt),new Se)}function HX(){HX=z,BYe=new Ew(15),xsr=new No((Hi(),Qy),BYe),V9=Y5,LYe=isr,MYe=kE,PYe=Ak,DYe=Yx}function E4(t,n){var s,u,f,g,E;for(u=n,f=0,g=u.length;f=t.b.c.length)return;BLe(t,2*n+1),s=2*n+2,s0)n.Cd(s),s.i&&Kbn(s)}function FLe(t,n,s){var u;for(u=s-1;u>=0&&t[u]===n[u];u--);return u<0?0:fce(io(t[u],xl),io(n[u],xl))?-1:1}function eBt(t,n,s){var u,f;this.g=t,this.c=n,this.a=this,this.d=this,f=M9t(s),u=mt(DXt,TG,227,f,0,1),this.b=u}function Cde(t,n,s,u,f){var g,E;for(E=s;E<=f;E++)for(g=n;g<=u;g++)if(k4(t,g,E))return!0;return!1}function J1n(t,n){var s,u;for(u=t.Zb().Cc().Kc();u.Ob();)if(s=b(u.Pb(),16),s.Hc(n))return!0;return!1}function tBt(t,n,s){var u,f,g,E;_n(s),E=!1,g=t.fd(n);for(f=s.Kc();f.Ob();)u=f.Pb(),g.Rb(u),E=!0;return E}function kde(t,n){var s,u;return u=b(un(t.a,4),129),s=mt(nve,ime,424,n,0,1),u!=null&&au(u,0,s,0,u.length),s}function rBt(t,n){var s=new tpe((t.f&256)!=0,t.i,t.a,t.d,(t.f&16)!=0,t.j,t.g,n);return t.e!=null||(s.c=t),s}function ebn(t,n){var s;if(t===n)return!0;else if(He(n,85))return s=b(n,85),GMe(D2(t),s.vc());return!1}function nBt(t,n,s){var u,f;for(f=s.Kc();f.Ob();)if(u=b(f.Pb(),44),t.Be(n,u.md()))return!0;return!1}function iBt(t,n,s){if(!t.d[n.p][s.p])n_n(t,n,s),t.d[n.p][s.p]=!0,t.d[s.p][n.p]=!0;return t.a[n.p][s.p]}function tbn(t,n){var s;if(!t||t==n||!$a(n,(Pt(),_S)))return!1;return s=b(ce(n,(Pt(),_S)),10),s!=t}function Ade(t){switch(t.i){case 2:return!0;case 1:return!1;case-1:++t.c;default:return t.$l()}}function aBt(t){switch(t.i){case-2:return!0;case-1:return!1;case 1:--t.c;default:return t._l()}}function sBt(t){WLt.call(this,"The given string does not match the expected format for individual spacings.",t)}function rbn(t,n){var s;n.Ug("Min Size Preprocessing",1),s=XMe(t),Ta(t,(w1(),O9),s.a),Ta(t,ete,s.b),n.Vg()}function nbn(t){var n,s,u;n=0,u=mt(uo,Bt,8,t.b,0,1),s=ti(t,0);while(s.b!=s.d.c)u[n++]=b(Jn(s),8);return u}function Rde(t,n,s){var u,f,g;u=new Va;for(g=ti(s,0);g.b!=g.d.c;)f=b(Jn(g),8),Oi(u,new sl(f));tBt(t,n,u)}function ibn(t,n){var s=rl(t,n);if(fce(yhe(t,n),0)|Bj(yhe(t,s),0))return s;return rl(SG,yhe(Vv(s,63),1))}function abn(t,n){var s,u;if(s=b(t.d.Bc(n),16),!s)return null;return u=t.e.hc(),u.Gc(s),t.e.d-=s.gc(),s.$b(),u}function oBt(t){var n=t.a.c.length;if(n>0)return v6(n-1,t.a.c.length),xy(t.a,n-1);else throw _e(new okt)}function lBt(t,n,s){if(t>n)throw _e(new fn(cZ+t+SYt+n));if(t<0||n>s)throw _e(new q5e(cZ+t+r9e+n+JDe+s))}function rO(t,n){if(t.D==null&&t.B!=null)t.D=t.B,t.B=null;tde(t,n==null?null:(_n(n),n)),!!t.C&&t.hl(null)}function sbn(t,n){var s=jt((Wde(),Lee))!=null&&n.Sg()!=null?rt(ht(n.Sg()))/rt(ht(jt(Lee))):1;Ki(t.b,n,s)}function $Le(t,n){var s,u;if(u=t.c[n],u==0)return;t.c[n]=0,t.d-=u,s=n+1;while(s$Z?t-s>$Z:s-t>$Z}function vBt(t,n){var s;for(s=0;sf)K$t(n.q,f),u=s!=n.q.d}return u}function _Bt(t,n){var s,u,f,g,E,S,C,O;return C=n.i,O=n.j,u=t.f,f=u.i,g=u.j,E=C-f,S=O-g,s=d.Math.sqrt(E*E+S*S),s}function qLe(t,n){var s,u;if(u=aQ(t),!u)!ror&&(ror=new K2t),s=(Spe(),ozt(n)),u=new X4t(s),ii(u.El(),t);return u}function LU(t,n){var s,u;if(s=b(t.c.Bc(n),16),!s)return t.jc();return u=t.hc(),u.Gc(s),t.d-=s.gc(),s.$b(),t.mc(u)}function bbn(t,n){var s,u;u=md(t.d,1)!=0,s=!0;while(s)s=!1,s=n.c.mg(n.e,u),s=s|lG(t,n,u,!1),u=!u;cLe(t)}function EBt(t,n,s,u){var f,g;t.a=n,g=u?0:1,t.f=(f=new MUt(t.c,t.a,s,g),new dVt(s,t.a,f,t.e,t.b,t.c==(Vw(),E9)))}function YX(t){var n;return Pn(t.a!=t.b),n=t.d.a[t.a],KIt(t.b==t.d.c&&n!=null),t.c=t.a,t.a=t.a+1&t.d.a.length-1,n}function wBt(t){var n;if(t.c!=0)return t.c;for(n=0;n=t.c.b:t.a<=t.c.b))throw _e(new yc);return n=t.a,t.a+=t.c.c,++t.b,$t(n)}function Mde(t){var n=new sIe(t.a);return nc(n,t),At(n,(Pt(),Ea),t),n.o.a=t.g,n.o.b=t.f,n.n.a=t.i,n.n.b=t.j,n}function Dde(t){return(Ht(),yh).Hc(t.j)?rt(ht(ce(t,(Pt(),yN)))):Sc(Ce(Te(uo,1),Bt,8,0,[t.i.n,t.n,t.a])).b}function vbn(t){var n=zj(Qrr);return b(ce(t,(Pt(),Tu)),21).Hc((Tl(),bN))&&Fi(n,(Xo(),su),(il(),WJ)),n}function _bn(t){var n,s,u,f;f=new Rs;for(u=new me(t);u.a=0?n:-n;while(u>0)if(u%2==0)s*=s,u=u/2|0;else f*=s,u-=1;return n<0?1/f:f}function xbn(t,n){var s,u,f;f=1,s=t,u=n>=0?n:-n;while(u>0)if(u%2==0)s*=s,u=u/2|0;else f*=s,u-=1;return n<0?1/f:f}function e_(t,n){var s,u,f,g;if(g=(f=t?aQ(t):null,nGt((u=n,f&&f.Gl(),u))),g==n)s=aQ(t),!!s&&s.Gl();return g}function SBt(t,n,s){var u,f;if(f=t.f,t.f=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,0,f,n),!s?s=u:s.nj(u);return s}function TBt(t,n,s){var u,f;if(f=t.b,t.b=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,3,f,n),!s?s=u:s.nj(u);return s}function WLe(t,n,s){var u,f;if(f=t.a,t.a=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,1,f,n),!s?s=u:s.nj(u);return s}function xBt(t){var n,s,u,f;if(t!=null){for(s=0;s=u||n-129&&t<128)return cOt(),n=t+128,s=YFe[n],!s&&(s=YFe[n]=new WAe(t)),s;return new WAe(t)}function iO(t){var n,s;if(t>-129&&t<128)return COt(),n=t+128,s=XFe[n],!s&&(s=XFe[n]=new KAe(t)),s;return new KAe(t)}function ABt(t,n){var s;if(t.a.c.length>0){if(s=b(nr(t.a,t.a.c.length-1),579),PLe(s,n))return}Gt(t.a,new YMt(n))}function Obn(t){r0();var n,s;n=t.d.c-t.e.c,s=b(t.g,154),Ju(s.b,new Vxt(n)),Ju(s.c,new Hxt(n)),Vo(s.i,new qxt(n))}function RBt(t){var n=new Dv;return n.a+="VerticalSegment ",pu(n,t.e),n.a+=" ",Bi(n,fIe(new ece,new me(t.k))),n.a}function Pde(t,n){var s,u,f;s=0;for(f=Tc(t,n).Kc();f.Ob();)u=b(f.Pb(),12),s+=ce(u,(Pt(),id))!=null?1:0;return s}function T4(t,n,s){var u,f,g;u=0;for(g=ti(t,0);g.b!=g.d.c;)if(f=rt(ht(Jn(g))),f>s)break;else f>=n&&++u;return u}function IBt(t,n){mi(t);try{return t._b(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return!1;else throw _e(s)}}function KLe(t,n){mi(t);try{return t.Hc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return!1;else throw _e(s)}}function Nbn(t,n){mi(t);try{return t.Mc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return!1;else throw _e(s)}}function ex(t,n){mi(t);try{return t.xc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return null;else throw _e(s)}}function Lbn(t,n){mi(t);try{return t.Bc(n)}catch(s){if(s=Qa(s),He(s,212)||He(s,169))return null;else throw _e(s)}}function P8(t,n){switch(n.g){case 2:case 1:return Tc(t,n);case 3:case 4:return $f(Tc(t,n))}return Hr(),Hr(),Jo}function B8(t){var n;if((t.Db&64)!=0)return o0(t);return n=new pp(o0(t)),n.a+=" (name: ",Ol(n,t.zb),n.a+=")",n.a}function Mbn(t){var n=b(Ag(t.c.c,""),233);if(!n)n=new YA(r6(t6(new fA,""),"Other")),Dy(t.c.c,"",n);return n}function XLe(t,n,s){var u,f;if(f=t.sb,t.sb=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,4,f,n),!s?s=u:s.nj(u);return s}function QLe(t,n,s){var u,f;if(f=t.r,t.r=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,8,f,t.r),!s?s=u:s.nj(u);return s}function Dbn(t,n,s){var u,f;return u=new wb(t.e,4,13,(f=n.c,f?f:(Vr(),Wg)),null,Py(t,n),!1),!s?s=u:s.nj(u),s}function Pbn(t,n,s){var u,f;return u=new wb(t.e,3,13,null,(f=n.c,f?f:(Vr(),Wg)),Py(t,n),!1),!s?s=u:s.nj(u),s}function Oy(t,n){var s,u;return s=b(n,691),u=s.el(),!u&&s.fl(u=He(n,90)?new lRt(t,b(n,29)):new O7t(t,b(n,156))),u}function MU(t,n,s){var u;t._i(t.i+1),u=t.Zi(n,s),n!=t.i&&au(t.g,n,t.g,n+1,t.i-n),ls(t.g,n,u),++t.i,t.Mi(n,s),t.Ni()}function Bbn(t,n){var s;if(n.a)s=n.a.a.length,!t.a?t.a=new Vd(t.d):Bi(t.a,t.b),F7t(t.a,n.a,n.d.length,s);return t}function Fbn(t,n){var s;t.c=n,t.a=Vyn(n),t.a<54&&(t.f=(s=n.d>1?P7t(n.a[0],n.a[1]):P7t(n.a[0],0),z2(n.e>0?s:ky(s))))}function DU(t,n){var s=new we;if(!t.a.Bd(s))return Yv(t),u6(),u6(),o$e;return u6(),new jle(_n(bDt(t,s.a,n)))}function OBt(t,n){var s;if(t.c.length==0)return;s=b(Og(t,mt(N1,Gy,10,t.c.length,0,1)),199),ZRe(s,new Cmt),TGt(s,n)}function NBt(t,n){var s;if(t.c.length==0)return;s=b(Og(t,mt(N1,Gy,10,t.c.length,0,1)),199),ZRe(s,new kmt),TGt(s,n)}function da(t,n){return So(t)?Br(t,n):LT(t)?C6t(t,n):NT(t)?(_n(t),it(t)===it(n)):q6e(t)?t.Fb(n):F6e(t)?TRt(t,n):FOe(t,n)}function Bf(t,n,s){if(n<0)n8e(t,s);else{if(!s.rk())throw _e(new fn(f_+s.xe()+PD));b(s,69).wk().Ek(t,t.hi(),n)}}function LBt(t,n,s){if(t<0||n>s)throw _e(new Gl(cZ+t+r9e+n+", size: "+s));if(t>n)throw _e(new fn(cZ+t+SYt+n))}function MBt(t){var n;if((t.Db&64)!=0)return o0(t);return n=new pp(o0(t)),n.a+=" (source: ",Ol(n,t.d),n.a+=")",n.a}function DBt(t){if(t>=65&&t<=70)return t-65+10;if(t>=97&&t<=102)return t-97+10;if(t>=48&&t<=57)return t-48;return 0}function $bn(t){iZ();var n,s,u,f;for(s=tfe(),u=0,f=s.length;u=0?r_(t):u8(r_(ky(t))))}function FBt(t,n,s,u,f,g){this.e=new Ut,this.f=(Sl(),v9),Gt(this.e,t),this.d=n,this.a=s,this.b=u,this.f=f,this.c=g}function zbn(t,n,s){t.n=M2(P_,[Bt,o0e],[376,28],14,[s,Ks(d.Math.ceil(n/32))],2),t.o=n,t.p=s,t.j=n-1>>1,t.k=s-1>>1}function $Bt(t){return t-=t>>1&1431655765,t=(t>>2&858993459)+(t&858993459),t=(t>>4)+t&252645135,t+=t>>8,t+=t>>16,t&63}function UBt(t,n){var s,u;for(u=new kn(t);u.e!=u.i.gc();)if(s=b(Dn(u),142),it(n)===it(s))return!0;return!1}function Vbn(t,n,s){var u,f,g;if(g=(f=EO(t.b,n),f),g){if(u=b(JQ(dU(t,g),""),29),u)return x8e(t,u,n,s)}return null}function Bde(t,n,s){var u,f,g;if(g=(f=EO(t.b,n),f),g){if(u=b(JQ(dU(t,g),""),29),u)return C8e(t,u,n,s)}return null}function Hbn(t,n){var s=_4(t.i,n);if(s==null)throw _e(new mm("Node did not exist in input."));return mLe(n,s),null}function qbn(t,n){var s=oG(t,n);if(He(s,331))return b(s,35);throw _e(new fn(f_+n+"' is not a valid attribute"))}function $8(t,n,s){var u=t.gc();if(n>u)throw _e(new FT(n,u));if(t.Si()&&t.Hc(s))throw _e(new fn(jG));t.Gi(n,s)}function Ybn(t,n){n.Ug("Sort end labels",1),ys(pa(wc(new Pr(null,new Gr(t.b,16)),new umt),new hmt),new dmt),n.Vg()}function Ms(){Ms=z,Hg=new v$(wD,0),sc=new v$(E5,1),Kl=new v$(_5,2),Vg=new v$(_0e,3),jf=new v$("UP",4)}function BU(){BU=z,nte=new Gce("P1_STRUCTURE",0),ite=new Gce("P2_PROCESSING_ORDER",1),ate=new Gce("P3_EXECUTION",2)}function GBt(){GBt=z,dir=km(km(IM(km(km(IM(Fi(new Ns,(c5(),T9),(lD(),Mbe)),x9),FVe),UVe),C9),MVe),GVe)}function Wbn(t){switch(b(ce(t,(Pt(),mE)),311).g){case 1:At(t,mE,(Sb(),D5));break;case 2:At(t,mE,(Sb(),ok))}}function jbn(t){switch(t){case 0:return new Ikt;case 1:return new Akt;case 2:return new Rkt;default:throw _e(new QF)}}function zBt(t){switch(t.g){case 2:return sc;case 1:return Kl;case 4:return Vg;case 3:return jf;default:return Hg}}function t7e(t,n){switch(t.b.g){case 0:case 1:return n;case 2:case 3:return new If(n.d,0,n.a,n.b);default:return null}}function r7e(t){switch(t.g){case 1:return yn;case 2:return gn;case 3:return Cn;case 4:return Kn;default:return Cc}}function FU(t){switch(t.g){case 1:return Kn;case 2:return yn;case 3:return gn;case 4:return Cn;default:return Cc}}function KX(t){switch(t.g){case 1:return Cn;case 2:return Kn;case 3:return yn;case 4:return gn;default:return Cc}}function n7e(t,n,s,u){switch(n){case 1:return!t.n&&(t.n=new kt(Dl,t,1,7)),t.n;case 2:return t.k}return K7e(t,n,s,u)}function U8(t,n,s){var u,f;if(t.Pj())return f=t.Qj(),u=Hfe(t,n,s),t.Jj(t.Ij(7,$t(s),u,n,f)),u;else return Hfe(t,n,s)}function Fde(t,n){var s,u,f;if(t.d==null)++t.e,--t.f;else f=n.ld(),s=n.Bi(),u=(s&sa)%t.d.length,L0n(t,u,hzt(t,u,s,f))}function aO(t,n){var s=(t.Bb&u0)!=0;n?t.Bb|=u0:t.Bb&=-1025,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,10,s,n))}function sO(t,n){var s=(t.Bb&bx)!=0;n?t.Bb|=bx:t.Bb&=-4097,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,12,s,n))}function oO(t,n){var s=(t.Bb&$h)!=0;n?t.Bb|=$h:t.Bb&=-8193,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,15,s,n))}function lO(t,n){var s=(t.Bb&Tx)!=0;n?t.Bb|=Tx:t.Bb&=-2049,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,11,s,n))}function Kbn(t){var n;if(t.g)n=t.c.kg()?t.f:t.a,$8e(n.a,t.o,!0),$8e(n.a,t.o,!1),At(t.o,(Qt(),ms),(Ao(),RE))}function Xbn(t){var n;if(!t.a)throw _e(new zl("Cannot offset an unassigned cut."));n=t.c-t.b,t.b+=n,fLt(t,n),dLt(t,n)}function Qbn(t,n){var s=An(t.k,n);if(s==null)throw _e(new mm("Port did not exist in input."));return mLe(n,s),null}function Zbn(t){var n,s;for(s=lzt(Wd(t)).Kc();s.Ob();)if(n=wi(s.Pb()),cD(t,n))return Jpn((HAt(),gor),n);return null}function VBt(t){var n,s;for(s=t.p.a.ec().Kc();s.Ob();)if(n=b(s.Pb(),218),n.f&&t.b[n.c]<-0.0000000001)return n;return null}function Jbn(t){var n,s;s=qv(new Dv,91),n=!0;while(t.Ob())n||(s.a+=ll),n=!1,pu(s,t.Pb());return(s.a+="]",s).a}function eyn(t){var n,s,u;n=new Ut;for(u=new me(t.b);u.an)return 1;if(t==n)return t==0?Ra(1/t,1/n):0;return isNaN(t)?isNaN(n)?0:1:-1}function ryn(t){var n=t.a[t.c-1&t.a.length-1];if(n==null)return null;return t.c=t.c-1&t.a.length-1,ls(t.a,t.c,null),n}function nyn(t){var n,s,u;u=0,s=t.length;for(n=0;n=1?sc:Vg;return s}function oyn(t){switch(b(ce(t,(Qt(),$b)),223).g){case 1:return new Qbt;case 3:return new ryt;default:return new Xbt}}function t_(t){if(t.c)t_(t.c);else if(t.d)throw _e(new zl("Stream already terminated, can't be modified or used"))}function Ww(t,n,s){var u=t.a.get(n);if(t.a.set(n,s===void 0?null:s),u===void 0)++t.c,++t.b.g;else++t.d;return u}function lyn(t,n,s){var u,f;for(f=t.a.ec().Kc();f.Ob();)if(u=b(f.Pb(),10),xU(s,b(nr(n,u.p),16)))return u;return null}function a7e(t,n,s){var u=0;return!!n&&(s4(t.a)?u+=n.f.a/2:u+=n.f.b/2),!!s&&(s4(t.a)?u+=s.f.a/2:u+=s.f.b/2),u}function cyn(t,n,s){var u=s;!u&&(u=C6e(new vA,0)),u.Ug(eWt,2),jFt(t.b,n,u.eh(1)),T5n(t,n,u.eh(1)),kIn(n,u.eh(1)),u.Vg()}function s7e(t,n,s){var u,f;return u=(Bv(),f=new OW,f),wX(u,n),EX(u,s),!!t&&ii((!t.a&&(t.a=new Os(lf,t,5)),t.a),u),u}function Ude(t){var n;if((t.Db&64)!=0)return o0(t);return n=new pp(o0(t)),n.a+=" (identifier: ",Ol(n,t.k),n.a+=")",n.a}function Gde(t,n){var s=(t.Bb&Hc)!=0;n?t.Bb|=Hc:t.Bb&=-32769,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,18,s,n))}function o7e(t,n){var s=(t.Bb&Hc)!=0;n?t.Bb|=Hc:t.Bb&=-32769,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,18,s,n))}function cO(t,n){var s=(t.Bb&Im)!=0;n?t.Bb|=Im:t.Bb&=-16385,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,16,s,n))}function l7e(t,n){var s=(t.Bb&ml)!=0;n?t.Bb|=ml:t.Bb&=-65537,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new i0(t,1,20,s,n))}function c7e(t){var n=mt(Qf,Om,28,2,15,1);return t-=ml,n[0]=(t>>10)+AG&Ds,n[1]=(t&1023)+56320&Ds,yp(n,0,n.length)}function uyn(t){var n=sx(t);if(n>340282346638528860000000000000000000000)return Wa;else if(n<-340282346638528860000000000000000000000)return Gs;return n}function rl(t,n){var s;if(cc(t)&&cc(n)){if(s=t+n,kG"+G2(n.c):"e_"+Da(n),!!t.b&&!!t.c?G2(t.b)+"->"+G2(t.c):"e_"+Da(t))}function fyn(t,n){return Br(!!n.b&&!!n.c?G2(n.b)+"->"+G2(n.c):"e_"+Da(n),!!t.b&&!!t.c?G2(t.b)+"->"+G2(t.c):"e_"+Da(t))}function jw(t,n){return _g(),a0(l_),d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:_w(isNaN(t),isNaN(n))}function kb(){kb=z,Yye=new Ij(wD,0),Zz=new Ij("POLYLINE",1),PN=new Ij("ORTHOGONAL",2),K5=new Ij("SPLINES",3)}function QX(){QX=z,FHe=new $ce("ASPECT_RATIO_DRIVEN",0),dye=new $ce("MAX_SCALE_DRIVEN",1),BHe=new $ce("AREA_DRIVEN",2)}function pyn(t,n,s){var u;try{B1n(t,n,s)}catch(f){if(f=Qa(f),He(f,606))throw u=f,_e(new cNe(u));else throw _e(f)}return n}function gyn(t){var n,s,u;for(s=0,u=t.length;sn&&u.Ne(t[g-1],t[g])>0;--g)E=t[g],ls(t,g,t[g-1]),ls(t,g-1,E)}function Er(t,n){var s,u,f,g,E;if(s=n.f,Dy(t.c.d,s,n),n.g!=null)for(f=n.g,g=0,E=f.length;gn){G7t(s);break}V$(s,n)}function vyn(t,n){var s,u,f;u=m4(n),f=rt(ht(rx(u,(Qt(),p0)))),s=d.Math.max(0,f/2-0.5),K8(n,s,1),Gt(t,new s5t(n,s))}function _yn(t,n,s){var u;s.Ug("Straight Line Edge Routing",1),s.dh(n,hBe),u=b(It(n,(f4(),vk)),27),RHt(t,u),s.dh(n,zZ)}function u7e(t,n){t.n.c.length==0&&Gt(t.n,new HK(t.s,t.t,t.i)),Gt(t.b,n),H7e(b(nr(t.n,t.n.c.length-1),209),n),hHt(t,n)}function G8(t){var n;this.a=(n=b(t.e&&t.e(),9),new Rf(n,b(t0(n,n.length),9),0)),this.b=mt(ao,en,1,this.a.a.length,5,1)}function hc(t){var n;if(Array.isArray(t)&&t.Tm===ee)return N2(Ld(t))+"@"+(n=Da(t)>>>0,n.toString(16));return t.toString()}function Eyn(t,n){if(t.h==CG&&t.m==0&&t.l==0)return n&&(p_=Qu(0,0,0)),CRt((D6(),UFe));return n&&(p_=Qu(t.l,t.m,t.h)),Qu(0,0,0)}function wyn(t,n){switch(n.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function WBt(t,n){switch(n.g){case 2:return t.b;case 1:return t.c;case 4:return t.d;case 3:return t.a;default:return!1}}function h7e(t,n,s,u){switch(n){case 3:return t.f;case 4:return t.g;case 5:return t.i;case 6:return t.j}return n7e(t,n,s,u)}function ZX(t,n){if(n==t.d)return t.e;else if(n==t.e)return t.d;else throw _e(new fn("Node "+n+" not part of edge "+t))}function Syn(t,n){var s=oG(t.Dh(),n);if(He(s,102))return b(s,19);throw _e(new fn(f_+n+"' is not a valid reference"))}function Ff(t,n,s,u){if(n<0)I8e(t,s,u);else{if(!s.rk())throw _e(new fn(f_+s.xe()+PD));b(s,69).wk().Ck(t,t.hi(),n,u)}}function gd(t){var n;if(t.b){if(gd(t.b),t.b.d!=t.c)throw _e(new Cf)}else if(t.d.dc())n=b(t.f.c.xc(t.e),16),!!n&&(t.d=n)}function Tyn(t){PT();var n,s,u,f;n=t.o.b;for(u=b(b(_a(t.r,(Ht(),Kn)),21),87).Kc();u.Ob();)s=b(u.Pb(),117),f=s.e,f.b+=n}function xyn(t){var n,s,u;this.a=new vm;for(u=new me(t);u.a=f)return n.c+s;return n.c+n.b.gc()}function kyn(t,n){p6();var s,u,f,g;u=aDt(t),f=n,L6(u,0,u.length,f);for(s=0;s0)u+=f,++s;return s>1&&(u+=t.d*(s-1)),u}function Ryn(t){var n,s,u,f,g;if(g=RMe(t),s=t$(t.c),u=!s,u)f=new C2,j0(g,"knownLayouters",f),n=new B4t(f),Vo(t.c,n);return g}function p7e(t){var n,s,u;u=new gy,u.a+="[";for(n=0,s=t.gc();n0&&(pn(n-1,t.length),t.charCodeAt(n-1)==58)&&!Hde(t,J9,eP)}function g7e(t,n){var s;if(it(t)===it(n))return!0;if(He(n,92))return s=b(n,92),t.e==s.e&&t.d==s.d&&r0n(t,s.a);return!1}function i5(t){switch(Ht(),t.g){case 4:return gn;case 1:return Cn;case 3:return Kn;case 2:return yn;default:return Cc}}function Lyn(t){var n,s;if(t.b)return t.b;s=Fg?null:t.d;while(s){if(n=Fg?null:s.b,n)return n;s=Fg?null:s.d}return l6(),u$e}function m7e(t){var n,s,u;u=rt(ht(t.a.of((Hi(),fte))));for(s=new me(t.a.Sf());s.a>5,n=t&31,u=mt(ci,$i,28,s+1,15,1),u[s]=1<3)f*=10,--g;t=(t+(f>>1))/f|0}return u.i=t,!0}function Za(t,n){var s,u,f;if(s=(t.i==null&&Rm(t),t.i),u=n.Lj(),u!=-1){for(f=s.length;u=0;--u){n=s[u];for(f=0;f>1,this.k=n-1>>1}function jyn(t){if(lX(),b(t.of((Hi(),x_)),181).Hc((bd(),_te)))b(t.of(Wx),181).Fc((nd(),X5)),b(t.of(x_),181).Mc(_te)}function eFt(t){var n,s;n=t.d==(u5(),cN),s=vMe(t),n&&!s||!n&&s?At(t.a,(Qt(),Gm),(_1(),Hz)):At(t.a,(Qt(),Gm),(_1(),Vz))}function Wde(){Wde=z,uj(),Lee=(Qt(),AS),Trr=xg(Ce(Te(Aye,1),ZPe,149,0,[Cz,p0,fk,kS,Gx,hbe,SN,TN,dbe,g9,dk,SE,pk]))}function Kyn(t,n){var s=b(uc(t,ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15);return s.Qc(EOt(s.gc()))}function tFt(t,n){var s,u;if(u=new jI(t.a.ad(n,!0)),u.a.gc()<=1)throw _e(new mA);return s=u.a.ec().Kc(),s.Pb(),b(s.Pb(),40)}function Xyn(t,n,s){var u,f;return u=rt(t.p[n.i.p])+rt(t.d[n.i.p])+n.n.b+n.a.b,f=rt(t.p[s.i.p])+rt(t.d[s.i.p])+s.n.b+s.a.b,f-u}function S7e(t,n){var s;if(t.i>0){if(n.lengtht.i&&ls(n,t.i,null),n}function eQ(t){var n;if((t.Db&64)!=0)return B8(t);return n=new pp(B8(t)),n.a+=" (instanceClassName: ",Ol(n,t.D),n.a+=")",n.a}function tQ(t){var n,s,u,f;f=0;for(s=0,u=t.length;s0)return t._j(),u=n==null?0:Da(n),f=(u&sa)%t.d.length,s=hzt(t,f,u,n),s!=-1;else return!1}function rFt(t,n){var s,u;t.a=rl(t.a,1),t.c=d.Math.min(t.c,n),t.b=d.Math.max(t.b,n),t.d+=n,s=n-t.f,u=t.e+s,t.f=u-t.e-s,t.e=u}function T7e(t,n){switch(n){case 3:Gw(t,0);return;case 4:zw(t,0);return;case 5:eh(t,0);return;case 6:th(t,0);return}jLe(t,n)}function Kw(t,n){switch(n.g){case 1:return PA(t.j,(Dh(),d1e));case 2:return PA(t.j,(Dh(),f1e));default:return Hr(),Hr(),Jo}}function x7e(t){Iw();var n=t.Pc();switch(n.length){case 0:return wme;case 1:return new kue(mi(n[0]));default:return new lhe(gyn(n))}}function nFt(t,n){t.Xj();try{t.d.bd(t.e++,n),t.f=t.d.j,t.g=-1}catch(s){if(s=Qa(s),He(s,77))throw _e(new Cf);else throw _e(s)}}function Kde(){Kde=z,ove=new Q2t,vWe=new Z2t,_We=new J2t,EWe=new eEt,wWe=new tEt,SWe=new rEt,TWe=new nEt,xWe=new iEt,CWe=new aEt}function rQ(t,n){jRe();var s,u;if(s=N$((XW(),XW(),jD)),u=null,n==s&&(u=b(mu(FFe,t),624)),!u)u=new wNt(t),n==s&&Vl(FFe,t,u);return u}function iFt(t){nx();var n;return(!t.q?(Hr(),Hr(),I1):t.q)._b((Qt(),xS))?n=b(ce(t,xS),203):n=b(ce(zo(t),p9),203),n}function rx(t,n){var s,u;if(u=null,$a(t,(Qt(),Oee)))s=b(ce(t,Oee),96),s.pf(n)&&(u=s.of(n));return u==null&&(u=ce(zo(t),n)),u}function aFt(t,n){var s,u,f;if(He(n,44))return s=b(n,44),u=s.ld(),f=ex(t.Rc(),u),Sm(f,s.md())&&(f!=null||t.Rc()._b(u));return!1}function X0(t,n){var s,u,f;if(t.f>0){if(t._j(),u=n==null?0:Da(n),f=(u&sa)%t.d.length,s=u8e(t,f,u,n),s)return s.md()}return null}function Vu(t,n,s){var u,f,g;if(t.Pj())u=t.i,g=t.Qj(),MU(t,u,n),f=t.Ij(3,null,n,u,g),!s?s=f:s.nj(f);else MU(t,t.i,n);return s}function Zyn(t,n,s){var u,f;return u=new wb(t.e,4,10,(f=n.c,He(f,90)?b(f,29):(Vr(),Lp)),null,Py(t,n),!1),!s?s=u:s.nj(u),s}function Jyn(t,n,s){var u,f;return u=new wb(t.e,3,10,null,(f=n.c,He(f,90)?b(f,29):(Vr(),Lp)),Py(t,n),!1),!s?s=u:s.nj(u),s}function sFt(t){PT();var n=new sl(b(t.e.of((Hi(),Ak)),8));if(t.B.Hc((bd(),FN)))n.a<=0&&(n.a=20),n.b<=0&&(n.b=20);return n}function r_(t){Am();var n,s;if(s=gi(t),n=gi(Vv(t,32)),n!=0)return new p7t(s,n);if(s>10||s<0)return new _b(1,s);return WXt[s]}function UU(t,n){var s;if(cc(t)&&cc(n)){if(s=t%n,kG=0)g=g.a[1];else f=g,g=g.a[0]}return f}function zU(t,n,s){var u,f,g;f=null,g=t.b;while(g){if(u=t.a.Ne(n,g.d),s&&u==0)return g;if(u<=0)g=g.a[0];else f=g,g=g.a[1]}return f}function avn(t,n,s,u){var f,g,E;if(f=!1,lRn(t.f,s,u))kvn(t.f,t.a[n][s],t.a[n][u]),g=t.a[n],E=g[u],g[u]=g[s],g[s]=E,f=!0;return f}function uFt(t,n,s){var u,f,g,E;f=b(An(t.b,s),183),u=0;for(E=new me(n.j);E.a>5,n&=31,f=t.d+s+(n==0?0:1),u=mt(ci,$i,28,f,15,1),nwn(u,t.a,s,n),g=new B2(t.e,f,u),m8(g),g}function svn(t,n){var s,u,f;for(u=new Nn(Mn(Ss(t).a.Kc(),new L));ri(u);)if(s=b(Gn(u),18),f=s.d.i,f.c==n)return!1;return!0}function A7e(t,n,s){var u,f,g,E,S;return E=t.k,S=n.k,u=s[E.g][S.g],f=ht(rx(t,u)),g=ht(rx(n,u)),d.Math.max((_n(f),f),(_n(g),g))}function ovn(){if(Error.stackTraceLimit>0)return d.Error.stackTraceLimit=Error.stackTraceLimit=64,!0;return"stack"in Error()}function lvn(t,n){return _g(),_g(),a0(l_),(d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:_w(isNaN(t),isNaN(n)))>0}function R7e(t,n){return _g(),_g(),a0(l_),(d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:_w(isNaN(t),isNaN(n)))<0}function dFt(t,n){return _g(),_g(),a0(l_),(d.Math.abs(t-n)<=l_||t==n||isNaN(t)&&isNaN(n)?0:tn?1:_w(isNaN(t),isNaN(n)))<=0}function Qde(t,n){var s=0;while(!n[s]||n[s]=="")s++;var u=n[s++];for(;s0&&this.b>0&&(this.g=gK(this.c,this.b,this.a))}function cvn(t,n){var s=t.a,u;n=String(n),s.hasOwnProperty(n)&&(u=s[n]);var f=(vde(),Ame)[typeof u],g=f?f(u):VLe(typeof u);return g}function hO(t){var n,s,u;if(u=null,n=Fm in t.a,s=!n,s)throw _e(new mm("Every element must have an id."));return u=h5(bb(t,Fm)),u}function Xw(t){var n,s;s=FUt(t),n=null;while(t.c==2){if(na(t),!n)n=(ia(),ia(),++hs,new jM(2)),rE(n,s),s=n;s.Jm(FUt(t))}return s}function iQ(t,n){var s,u,f;if(t._j(),u=n==null?0:Da(n),f=(u&sa)%t.d.length,s=u8e(t,f,u,n),s)return _9t(t,s),s.md();else return null}function vFt(t,n){if(t.e>n.e)return 1;if(t.en.d)return t.e;if(t.d=48&&t<48+d.Math.min(10,10))return t-48;if(t>=97&&t<97)return t-97+10;if(t>=65&&t<65)return t-65+10;return-1}function uvn(t,n){if(n.c==t)return n.d;else if(n.d==t)return n.c;throw _e(new fn("Input edge is not connected to the input port."))}function hvn(t){if(sQ(XO,t))return an(),nN;else if(sQ(Fge,t))return an(),g_;else throw _e(new fn("Expecting true or false"))}function N7e(t){switch(typeof t){case Lpe:return Ry(t);case GDe:return RA(t);case g5:return e6t(t);default:return t==null?0:Sw(t)}}function km(t,n){if(t.a<0)throw _e(new zl("Did not call before(...) or after(...) before calling add(...)."));return CIe(t,t.a,n),t}function L7e(t){if(qK(),He(t,162))return b(An(uV,ZXt),295).Rg(t);if(Zu(uV,Ld(t)))return b(An(uV,Ld(t)),295).Rg(t);return null}function rh(t){var n,s;if((t.Db&32)==0)s=(n=b(un(t,16),29),Un(!n?t.ii():n)-Un(t.ii())),s!=0&&a5(t,32,mt(ao,en,1,s,5,1));return t}function a5(t,n,s){var u;if((t.Db&n)!=0)if(s==null)jTn(t,n);else u=yfe(t,n),u==-1?t.Eb=s:ls(H2(t.Eb),u,s);else s!=null&&b4n(t,n,s)}function dvn(t,n,s,u){var f,g;if(n.c.length==0)return;f=oCn(s,u),g=lTn(n),ys(vX(new Pr(null,new Gr(g,1)),new tvt),new QNt(t,s,f,u))}function fvn(t,n){var s,u,f,g;if(u=t.a.length-1,s=n-t.b&u,g=t.c-n&u,f=t.c-t.b&u,KIt(s=g)return hbn(t,n),-1;else return ubn(t,n),1}function aQ(t){var n,s,u;if(u=t.Jh(),!u){n=0;for(s=t.Ph();s;s=s.Ph()){if(++n>l0e)return s.Qh();if(u=s.Jh(),!!u||s==t)break}}return u}function EFt(t,n){var s;if(it(n)===it(t))return!0;if(!He(n,21))return!1;if(s=b(n,21),s.gc()!=t.gc())return!1;return t.Ic(s)}function pvn(t,n){if(t.en.e)return 1;else if(t.fn.f)return 1;return Da(t)-Da(n)}function sQ(t,n){if(_n(t),n==null)return!1;if(Br(t,n))return!0;return t.length==n.length&&Br(t.toLowerCase(),n.toLowerCase())}function Rb(t){var n,s;if(Kc(t,-129)>0&&Kc(t,128)<0)return xOt(),n=gi(t)+128,s=WFe[n],!s&&(s=WFe[n]=new jAe(t)),s;return new jAe(t)}function Z2(){Z2=z,Rx=new wj(Dm,0),oUe=new wj("INSIDE_PORT_SIDE_GROUPS",1),l1e=new wj("GROUP_MODEL_ORDER",2),c1e=new wj(O9e,3)}function gvn(t){var n;return t.b||lin(t,(n=oon(t.e,t.a),!n||!Br(Fge,X0((!n.b&&(n.b=new Id((Vr(),yl),Bc,n)),n.b),"qualified")))),t.c}function mvn(t,n){var s,u;s=(pn(n,t.length),t.charCodeAt(n)),u=n+1;while(u2000)BXt=t,mJ=d.setTimeout(fin,10)}if(gJ++==0)return Rgn((U5e(),BFe)),!0;return!1}function Ivn(t,n,s){var u;(aQt?(Lyn(t),!0):sQt?(l6(),!0):lQt?(l6(),!0):oQt&&(l6(),!1))&&(u=new F6t(n),u.b=s,Fwn(t,u))}function Jde(t,n){var s=!t.A.Hc((Md(),IE))||t.q==(Ao(),xu);t.u.Hc((nd(),Gb))?s?vIn(t,n):mqt(t,n):t.u.Hc(R_)&&(s?$Rn(t,n):Oqt(t,n))}function kFt(t){var n;if(it(It(t,(Hi(),Ck)))===it((Cb(),mte)))if(!Ya(t))Ta(t,Ck,H9);else n=b(It(Ya(t),Ck),346),Ta(t,Ck,n)}function Ovn(t){var n,s;if($a(t.d.i,(Qt(),_N)))return n=b(ce(t.c.i,_N),17),s=b(ce(t.d.i,_N),17),jc(n.a,s.a)>0;else return!1}function AFt(t,n,s){return new If(d.Math.min(t.a,n.a)-s/2,d.Math.min(t.b,n.b)-s/2,d.Math.abs(t.a-n.a)+s,d.Math.abs(t.b-n.b)+s)}function RFt(t){var n;this.d=new Ut,this.j=new Oo,this.g=new Oo,n=t.g.b,this.f=b(ce(zo(n),(Qt(),nf)),88),this.e=rt(ht(uQ(n,Gx)))}function IFt(t){this.d=new Ut,this.e=new Ty,this.c=mt(ci,$i,28,(Ht(),Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn])).length,15,1),this.b=t}function P7e(t,n,s){var u=s[t.g][n];switch(t.g){case 1:case 3:return new Dt(0,u);case 2:case 4:return new Dt(u,0);default:return null}}function OFt(t,n,s){var u,f;f=b(j$(n.f),205);try{f.rf(t,s),PNt(n.f,f)}catch(g){if(g=Qa(g),He(g,103))throw u=g,_e(u);else throw _e(g)}}function NFt(t,n,s){var u,f,g,E,S,C;if(u=null,S=kDe(z6(),n),g=null,S)f=null,C=xDe(S,s),E=null,C!=null&&(E=t.qf(S,C)),f=E,g=f;return u=g,u}function efe(t,n,s,u){var f=t.length;if(n>=f)return f;for(n=n>0?n:0;nu&&ls(n,u,null),n}function LFt(t,n){var s,u;u=t.a.length,n.lengthu&&ls(n,u,null),n}function dO(t,n){var s,u;if(++t.j,n!=null){if(s=(u=t.a.Cb,He(u,99)?b(u,99).th():null),PTn(n,s)){a5(t.a,4,s);return}}a5(t.a,4,b(n,129))}function Nvn(t){var n;if(t==null)return null;if(n=Bxn(vu(t,!0)),n==null)throw _e(new Jle("Invalid hexBinary value: '"+t+"'"));return n}function oQ(t,n,s){var u;if(n.a.length>0)Gt(t.b,new eOt(n.a,s)),u=n.a.length,0u&&(n.a+=rIt(mt(Qf,Om,28,-u,15,1)))}function MFt(t,n,s){var u,f,g;if(s[n.d])return;s[n.d]=!0;for(f=new me(S4(n));f.a=t.b>>1){u=t.c;for(s=t.b;s>n;--s)u=u.b}else{u=t.a.a;for(s=0;s=0?t.Wh(f):Vfe(t,u)):s<0?Vfe(t,u):b(u,69).wk().Bk(t,t.hi(),s)}function FFt(t){var n,s,u;u=(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),t.o);for(s=u.c.Kc();s.e!=s.i.gc();)n=b(s.Yj(),44),n.md();return sU(u)}function jt(t){var n;if(He(t.a,4)){if(n=L7e(t.a),n==null)throw _e(new zl(ajt+t.b+"'. "+ijt+(gb(hV),hV.k)+VBe));return n}else return t.a}function Uvn(t,n){var s,u;if(t.j.length!=n.j.length)return!1;for(s=0,u=t.j.length;s=64&&n<128&&(f=q0(f,n0(1,n-64)));return f}function uQ(t,n){var s,u;if(u=null,$a(t,(Hi(),W5)))s=b(ce(t,W5),96),s.pf(n)&&(u=s.of(n));return u==null&&!!zo(t)&&(u=ce(zo(t),n)),u}function Gvn(t,n){var s=b(ce(t,(Qt(),jl)),75);if(eue(n,sJt))if(!s)s=new Rh,At(t,jl,s);else Hd(s);else!!s&&At(t,jl,null);return s}function H8(){H8=z,G$e=(Hi(),mYe),Kme=Xqe,aZt=Sk,U$e=Qy,cZt=(wQ(),v$e),lZt=b$e,uZt=E$e,oZt=m$e,sZt=(Ide(),B$e),jme=rZt,$$e=nZt,kJ=iZt}function hQ(t){switch(cRe(),this.c=new Ut,this.d=t,t.g){case 0:case 2:this.a=bOe(sUe),this.b=Wa;break;case 3:case 1:this.a=sUe,this.b=Gs}}function zvn(t){var n;if(!DA(b(ce(t,(Qt(),ms)),101)))return;n=t.b,CGt((qr(0,n.c.length),b(n.c[0],30))),CGt(b(nr(n,n.c.length-1),30))}function Vvn(t,n){n.Ug("Self-Loop post-processing",1),ys(pa(pa(wc(new Pr(null,new Gr(t.b,16)),new I1t),new O1t),new N1t),new L1t),n.Vg()}function $Ft(t,n,s){var u,f;if(t.c)eh(t.c,t.c.i+n),th(t.c,t.c.j+s);else for(f=new me(t.b);f.a=0&&(s.d=t.t);break;case 3:t.t>=0&&(s.a=t.t)}if(t.C)s.b=t.C.b,s.c=t.C.c}function q8(){q8=z,oVe=new f$(JPe,0),Ebe=new f$(G0e,1),wbe=new f$("LINEAR_SEGMENTS",2),b9=new f$("BRANDES_KOEPF",3),y9=new f$(LWt,4)}function Y8(){Y8=z,cz=new _j(hZ,0),xJ=new _j(E0e,1),CJ=new _j(w0e,2),uz=new _j(S0e,3),cz.a=!1,xJ.a=!0,CJ.a=!1,uz.a=!0}function s5(){s5=z,sz=new vj(hZ,0),az=new vj(E0e,1),oz=new vj(w0e,2),lz=new vj(S0e,3),sz.a=!1,az.a=!0,oz.a=!1,lz.a=!0}function o5(t,n,s,u){var f;if(s>=0)return t.Sh(n,s,u);else return!!t.Ph()&&(u=(f=t.Fh(),f>=0?t.Ah(u):t.Ph().Th(t,-1-f,null,u))),t.Ch(n,s,u)}function B7e(t,n){switch(n){case 7:!t.e&&(t.e=new Wr(ws,t,7,4)),ni(t.e);return;case 8:!t.d&&(t.d=new Wr(ws,t,8,5)),ni(t.d);return}T7e(t,n)}function Ta(t,n,s){return s==null?(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),iQ(t.o,n)):(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),jU(t.o,n,s)),t}function VFt(t,n){Hr();var s,u,f,g;if(s=t,g=n,He(t,21)&&!He(n,21))s=n,g=t;for(f=s.Kc();f.Ob();)if(u=f.Pb(),g.Hc(u))return!1;return!0}function jvn(t,n,s,u){if(n.as.b)return!0}}return!1}function afe(t,n){if(So(t))return!!IXt[n];else if(t.Sm)return!!t.Sm[n];else if(LT(t))return!!RXt[n];else if(NT(t))return!!AXt[n];return!1}function Kvn(t){var n=t.a;do n=b(Gn(new Nn(Mn(co(n).a.Kc(),new L))),18).c.i,n.k==(bn(),mo)&&t.b.Fc(n);while(n.k==(bn(),mo));t.b=$f(t.b)}function HFt(t,n){var s,u,f;f=t;for(u=new Nn(Mn(co(n).a.Kc(),new L));ri(u);)s=b(Gn(u),18),!!s.c.i.c&&(f=d.Math.max(f,s.c.i.c.p));return f}function Xvn(t,n){var s,u,f;f=0,u=b(b(_a(t.r,n),21),87).Kc();while(u.Ob())s=b(u.Pb(),117),f+=s.d.d+s.b.Mf().b+s.d.a,u.Ob()&&(f+=t.w);return f}function Qvn(t,n){var s,u,f;f=0,u=b(b(_a(t.r,n),21),87).Kc();while(u.Ob())s=b(u.Pb(),117),f+=s.d.b+s.b.Mf().a+s.d.c,u.Ob()&&(f+=t.w);return f}function qFt(t){var n,s,u,f;if(u=0,f=ux(t),f.c.length==0)return 1;else for(s=new me(f);s.a=0?t.Lh(E,s,!0):eS(t,g,s)):b(g,69).wk().yk(t,t.hi(),f,s,u)}function t_n(t,n,s,u){var f,g;if(g=n.pf((Hi(),kk))?b(n.of(kk),21):t.j,f=$bn(g),f==(iZ(),Hme))return;if(s&&!I7e(f))return;zMe(Fxn(t,f,u),n)}function r_n(t){switch(t.g){case 1:return Yw(),iz;case 3:return Yw(),nz;case 2:return Yw(),Yme;case 4:return Yw(),qme;default:return null}}function n_n(t,n,s){if(t.e)switch(t.b){case 1:Whn(t.c,n,s);break;case 0:jhn(t.c,n,s)}else dMt(t.c,n,s);t.a[n.p][s.p]=t.c.i,t.a[s.p][n.p]=t.c.e}function YFt(t){var n,s;if(t==null)return null;s=mt(N1,Bt,199,t.length,0,2);for(n=0;n=0)return f;if(t.ol()){for(u=0;u=f)throw _e(new FT(n,f));if(t.Si()){if(u=t.dd(s),u>=0&&u!=n)throw _e(new fn(jG))}return t.Xi(n,s)}function F7e(t,n){if(this.a=b(mi(t),253),this.b=b(mi(n),253),t.Ed(n)>0||t==(Yle(),_me)||n==(Wle(),Eme))throw _e(new fn("Invalid range: "+gMt(t,n)))}function WFt(t){var n,s;this.b=new Ut,this.c=t,this.a=!1;for(s=new me(t.a);s.a0),(n&-n)==n)return Ks(n*md(t,31)*0.0000000004656612873077393);do s=md(t,31),u=s%n;while(s-u+(n-1)<0);return Ks(u)}function c_n(t,n,s){switch(s.g){case 1:t.a=n.a/2,t.b=0;break;case 2:t.a=n.a,t.b=n.b/2;break;case 3:t.a=n.a/2,t.b=n.b;break;case 4:t.a=0,t.b=n.b/2}}function VU(t,n,s,u){var f,g;for(f=n;f1&&(g=a_n(t,n)),g}function XFt(t){var n=rt(ht(It(t,(Hi(),Qz))))*d.Math.sqrt((!t.a&&(t.a=new kt(ra,t,10,11)),t.a).i);return new Dt(n,n/rt(ht(It(t,pte))))}function ofe(t){var n;if(!!t.f&&t.f.Vh())n=b(t.f,54),t.f=b(e_(t,n),84),t.f!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,8,n,t.f));return t.f}function lfe(t){var n;if(!!t.i&&t.i.Vh())n=b(t.i,54),t.i=b(e_(t,n),84),t.i!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,7,n,t.i));return t.i}function El(t){var n;if(!!t.b&&(t.b.Db&64)!=0)n=t.b,t.b=b(e_(t,n),19),t.b!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,21,n,t.b));return t.b}function mQ(t,n){var s,u,f;if(t.d==null)++t.e,++t.f;else u=n.Bi(),NCn(t,t.f+1),f=(u&sa)%t.d.length,s=t.d[f],!s&&(s=t.d[f]=t.dk()),s.Fc(n),++t.f}function G7e(t,n,s){var u;if(n.tk())return!1;else if(n.Ik()!=-2)return u=n.ik(),u==null?s==null:da(u,s);else return n.qk()==t.e.Dh()&&s==null}function bQ(){var t;Kd(16,oYt),t=M9t(16),this.b=mt(Sme,TG,303,t,0,1),this.c=mt(Sme,TG,303,t,0,1),this.a=null,this.e=null,this.i=0,this.f=t-1,this.g=0}function Ib(t){WIe.call(this),this.k=(bn(),Es),this.j=(Kd(6,mx),new Gu(6)),this.b=(Kd(2,mx),new Gu(2)),this.d=new Gle,this.f=new A5e,this.a=t}function h_n(t){var n,s;if(t.c.length<=1)return;n=eVt(t,(Ht(),Kn)),GUt(t,b(n.a,17).a,b(n.b,17).a),s=eVt(t,yn),GUt(t,b(s.a,17).a,b(s.b,17).a)}function d_n(t,n,s){var u,f;f=t.a.b;for(u=f.c.length;u102)return-1;if(t<=57)return t-48;if(t<65)return-1;if(t<=70)return t-65+10;if(t<97)return-1;return t-97+10}function ffe(t,n){if(t==null)throw _e(new EA("null key in entry: null="+n));else if(n==null)throw _e(new EA("null value in entry: "+t+"=null"))}function g_n(t,n){var s,u;while(t.Ob()){if(!n.Ob())return!1;if(s=t.Pb(),u=n.Pb(),!(it(s)===it(u)||s!=null&&da(s,u)))return!1}return!n.Ob()}function JFt(t,n){var s=Ce(Te(xo,1),Ml,28,15,[Nde(t.a[0],n),Nde(t.a[1],n),Nde(t.a[2],n)]);if(t.d)s[0]=d.Math.max(s[0],s[2]),s[2]=s[0];return s}function e$t(t,n){var s=Ce(Te(xo,1),Ml,28,15,[qX(t.a[0],n),qX(t.a[1],n),qX(t.a[2],n)]);if(t.d)s[0]=d.Math.max(s[0],s[2]),s[2]=s[0];return s}function V7e(t,n,s){if(!DA(b(ce(n,(Qt(),ms)),101)))nNe(t,n,By(n,s)),nNe(t,n,By(n,(Ht(),Kn))),nNe(t,n,By(n,gn)),Hr(),ks(n.j,new sCt(t))}function t$t(t){var n,s;t.c||M5n(t),s=new Rh,n=new me(t.a),ge(n);while(n.a0&&(pn(0,n.length),n.charCodeAt(0)==43)?(pn(1,n.length+1),n.substr(1)):n))}function R_n(t){var n;return t==null?null:new Gv((n=vu(t,!0),n.length>0&&(pn(0,n.length),n.charCodeAt(0)==43)?(pn(1,n.length+1),n.substr(1)):n))}function q7e(t,n,s,u,f,g,E,S){var C,O;if(!u)return;C=u.a[0],!!C&&q7e(t,n,s,C,f,g,E,S),wfe(t,s,u.d,f,g,E,S)&&n.Fc(u),O=u.a[1],!!O&&q7e(t,n,s,O,f,g,E,S)}function k4(t,n,s){try{return vw(nde(t,n,s),1)}catch(u){if(u=Qa(u),He(u,333))throw _e(new Gl(T0e+t.o+"*"+t.p+x0e+n+ll+s+C0e));else throw _e(u)}}function s$t(t,n,s){try{return vw(nde(t,n,s),0)}catch(u){if(u=Qa(u),He(u,333))throw _e(new Gl(T0e+t.o+"*"+t.p+x0e+n+ll+s+C0e));else throw _e(u)}}function o$t(t,n,s){try{return vw(nde(t,n,s),2)}catch(u){if(u=Qa(u),He(u,333))throw _e(new Gl(T0e+t.o+"*"+t.p+x0e+n+ll+s+C0e));else throw _e(u)}}function l$t(t,n){if(t.g==-1)throw _e(new Ah);t.Xj();try{t.d.hd(t.g,n),t.f=t.d.j}catch(s){if(s=Qa(s),He(s,77))throw _e(new Cf);else throw _e(s)}}function I_n(t){var n,s,u,f,g;for(u=new me(t.b);u.ag&&ls(n,g,null),n}function O_n(t,n){var s,u;if(u=t.gc(),n==null){for(s=0;s0&&(C+=f),O[M]=E,E+=S*(C+u)}function u$t(t){var n,s,u;u=t.f,t.n=mt(xo,Ml,28,u,15,1),t.d=mt(xo,Ml,28,u,15,1);for(n=0;n0?t.c:0),++f;t.b=u,t.d=g}function g$t(t,n){var s=Ce(Te(xo,1),Ml,28,15,[U7e(t,(K0(),Mc),n),U7e(t,qu,n),U7e(t,Dc,n)]);if(t.f)s[0]=d.Math.max(s[0],s[2]),s[2]=s[0];return s}function $_n(t,n,s){var u;try{YQ(t,n+t.j,s+t.k,!1,!0)}catch(f){if(f=Qa(f),He(f,77))throw u=f,_e(new Gl(u.g+fZ+n+ll+s+")."));else throw _e(f)}}function U_n(t,n,s){var u;try{YQ(t,n+t.j,s+t.k,!0,!1)}catch(f){if(f=Qa(f),He(f,77))throw u=f,_e(new Gl(u.g+fZ+n+ll+s+")."));else throw _e(f)}}function m$t(t){var n;if(!$a(t,(Qt(),TS)))return;if(n=b(ce(t,TS),21),n.Hc((cx(),m0)))n.Mc(m0),n.Fc(b0);else if(n.Hc(b0))n.Mc(b0),n.Fc(m0)}function b$t(t){var n;if(!$a(t,(Qt(),TS)))return;if(n=b(ce(t,TS),21),n.Hc((cx(),v0)))n.Mc(v0),n.Fc(Ap);else if(n.Hc(Ap))n.Mc(Ap),n.Fc(v0)}function vfe(t,n,s,u){var f,g,E,S;return t.a==null&&zwn(t,n),E=n.b.j.c.length,g=s.d.p,S=u.d.p,f=S-1,f<0&&(f=E-1),g<=f?t.a[f]-t.a[g]:t.a[E-1]-t.a[g]+t.a[f]}function G_n(t){var n,s;if(!t.b){t.b=KK(b(t.f,27).kh().i);for(s=new kn(b(t.f,27).kh());s.e!=s.i.gc();)n=b(Dn(s),135),Gt(t.b,new Xle(n))}return t.b}function z_n(t){var n,s;if(!t.e){t.e=KK(Que(b(t.f,27)).i);for(s=new kn(Que(b(t.f,27)));s.e!=s.i.gc();)n=b(Dn(s),123),Gt(t.e,new u4t(n))}return t.e}function y$t(t){var n,s;if(!t.a){t.a=KK(BK(b(t.f,27)).i);for(s=new kn(BK(b(t.f,27)));s.e!=s.i.gc();)n=b(Dn(s),27),Gt(t.a,new iue(t,n))}return t.a}function Zw(t){var n;if(!t.C&&(t.D!=null||t.B!=null))if(n=RRn(t),n)t.hl(n);else try{t.hl(null)}catch(s){if(s=Qa(s),!He(s,63))throw _e(s)}return t.C}function V_n(t){switch(t.q.g){case 5:z$t(t,(Ht(),gn)),z$t(t,Kn);break;case 4:HHt(t,(Ht(),gn)),HHt(t,Kn);break;default:WUt(t,(Ht(),gn)),WUt(t,Kn)}}function H_n(t){switch(t.q.g){case 5:V$t(t,(Ht(),Cn)),V$t(t,yn);break;case 4:qHt(t,(Ht(),Cn)),qHt(t,yn);break;default:jUt(t,(Ht(),Cn)),jUt(t,yn)}}function A4(t,n){var s,u,f;f=new Oo;for(u=t.Kc();u.Ob();)s=b(u.Pb(),36),TO(s,f.a,0),f.a+=s.f.a+n,f.b=d.Math.max(f.b,s.f.b);return f.b>0&&(f.b+=n),f}function _Q(t,n){var s,u,f;f=new Oo;for(u=t.Kc();u.Ob();)s=b(u.Pb(),36),TO(s,0,f.b),f.b+=s.f.b+n,f.a=d.Math.max(f.a,s.f.a);return f.a>0&&(f.a+=n),f}function v$t(t){var n,s,u;u=sa;for(s=new me(t.a);s.a>16==6)return t.Cb.Th(t,5,ng,n);return u=El(b(jr((s=b(un(t,16),29),!s?t.ii():s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function q_n(t){k6();var n=t.e;if(n&&n.stack){var s=n.stack,u=n+` `;return s.substring(0,u.length)==u&&(s=s.substring(u.length)),s.split(` -`)}return[]}function U_n(t){var n=(y9t(),BXt);return n[t>>>28]|n[t>>24&15]<<4|n[t>>20&15]<<8|n[t>>16&15]<<12|n[t>>12&15]<<16|n[t>>8&15]<<20|n[t>>4&15]<<24|n[t&15]<<28}function b$t(t){var n,s,u;if(t.b!=t.c)return;if(u=t.a.length,s=wLe(d.Math.max(8,u))<<1,t.b!=0)n=t0(t.a,s),L9t(t,n,u),t.a=n,t.b=0;else xT(t.a,s);t.c=u}function G_n(t,n){var s=t.b;return s.pf((Hi(),Ed))?s.ag()==(Ht(),bn)?-s.Mf().a-rt(ht(s.of(Ed))):n+rt(ht(s.of(Ed))):s.ag()==(Ht(),bn)?-s.Mf().a:n}function zU(t){var n;if(t.b.c.length!=0&&!!b(nr(t.b,0),72).a)return b(nr(t.b,0),72).a;if(n=Kue(t),n!=null)return n;return""+(!t.c?-1:rc(t.c.a,t,0))}function yQ(t){var n;if(t.f.c.length!=0&&!!b(nr(t.f,0),72).a)return b(nr(t.f,0),72).a;if(n=Kue(t),n!=null)return n;return""+(!t.i?-1:rc(t.i.j,t,0))}function z_n(t,n){var s,u;if(n<0||n>=t.gc())return null;for(s=n;s0?t.c:0),f=d.Math.max(f,n.d),++u;t.e=g,t.b=f}function H_n(t){var n,s;if(!t.b){t.b=YK(b(t.f,123).kh().i);for(s=new kn(b(t.f,123).kh());s.e!=s.i.gc();)n=b(Dn(s),135),Gt(t.b,new Wle(n))}return t.b}function q_n(t,n){var s,u,f;if(n.dc())return d6(),d6(),cV;else{s=new e6t(t,n.gc());for(f=new kn(t);f.e!=f.i.gc();)u=Dn(f),n.Hc(u)&&ii(s,u);return s}}function Y7e(t,n,s,u){if(n==0)return u?(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),t.o):(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),nU(t.o));return cQ(t,n,s,u)}function yfe(t){var n,s;if(t.rb)for(n=0,s=t.rb.i;n>22),f+=u>>22,f<0)return!1;return t.l=s&yd,t.m=u&yd,t.h=f&Mb,!0}function vfe(t,n,s,u,f,g,_){var S,C;if(n.Te()&&(C=t.a.Ne(s,u),C<0||!f&&C==0))return!1;if(n.Ue()&&(S=t.a.Ne(s,g),S>0||!_&&S==0))return!1;return!0}function K_n(t,n){J6();var s=t.j.g-n.j.g;if(s!=0)return 0;switch(t.j.g){case 2:return $de(n,jUe)-$de(t,jUe);case 4:return $de(t,WUe)-$de(n,WUe)}return 0}function X_n(t){switch(t.g){case 0:return O1e;case 1:return N1e;case 2:return L1e;case 3:return M1e;case 4:return nee;case 5:return D1e;default:return null}}function Yl(t,n,s){var u,f;return u=(f=new Gle,Q2(f,n),zu(f,s),ii((!t.c&&(t.c=new kt(NS,t,12,10)),t.c),f),f),Ay(u,0),KT(u,1),Ly(u,!0),Ny(u,!0),u}function a5(t,n){var s,u;if(n>=t.i)throw ve(new zce(n,t.i));return++t.j,s=t.g[n],u=t.i-n-1,u>0&&au(t.g,n+1,t.g,n,u),ls(t.g,--t.i,null),t.Qi(n,s),t.Ni(),s}function y$t(t,n){var s,u;if(t.Db>>16==17)return t.Cb.Th(t,21,Ip,n);return u=El(b(jr((s=b(cn(t,16),29),!s?t.ii():s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function Q_n(t){var n,s,u,f;Hr(),ks(t.c,t.a);for(f=new me(t.c);f.as.a.c.length))throw ve(new dn("index must be >= 0 and <= layer node count"));!!t.c&&fh(t.c.a,t),t.c=s,!!s&&xw(s.a,n,t)}function S$t(t,n){var s,u,f;for(u=new Nn(Mn(Ab(t).a.Kc(),new L));ri(u);)return s=b(Gn(u),18),f=b(n.Kb(s),10),new LW(mi(f.n.b+f.o.b/2));return bM(),bM(),mme}function T$t(t,n){this.c=new Zn,this.a=t,this.b=n,this.d=b(ce(t,(Pt(),ck)),312),nt(ce(t,(Qt(),Nze)))===nt((oU(),iee))?this.e=new vkt:this.e=new ykt}function Y8(t,n){var s,u;if(u=null,t.pf((Hi(),H5)))s=b(t.of(H5),96),s.pf(n)&&(u=s.of(n));return u==null&&!!t.Tf()&&(u=t.Tf().of(n)),u==null&&(u=jt(n)),u}function _fe(t,n){var s,u;s=t.fd(n);try{return u=s.Pb(),s.Qb(),u}catch(f){if(f=Qa(f),He(f,112))throw ve(new Gl("Can't remove element "+n));else throw ve(f)}}function a2n(t,n){var s,u,f;if(u=new nj,f=new xLe(u.q.getFullYear()-c_,u.q.getMonth(),u.q.getDate()),s=mAn(t,n,f),s==0||s0?n:0),++s;return new Dt(u,f)}function Q7e(t,n){var s,u;if(t.Db>>16==6)return t.Cb.Th(t,6,ws,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Xc(),Ete):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function Z7e(t,n){var s,u;if(t.Db>>16==7)return t.Cb.Th(t,1,iV,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Xc(),JYe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function J7e(t,n){var s,u;if(t.Db>>16==9)return t.Cb.Th(t,9,ra,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Xc(),tWe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function k$t(t,n){var s,u;if(t.Db>>16==5)return t.Cb.Th(t,9,Ite,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Vr(),tv):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function A$t(t,n){var s,u;if(t.Db>>16==7)return t.Cb.Th(t,6,ng,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Vr(),nv):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function eMe(t,n){var s,u;if(t.Db>>16==3)return t.Cb.Th(t,0,sV,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Vr(),ev):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function R$t(){this.a=new N2t,this.g=new pQ,this.j=new pQ,this.b=new Zn,this.d=new pQ,this.i=new pQ,this.k=new Zn,this.c=new Zn,this.e=new Zn,this.f=new Zn}function l2n(t,n,s){var u,f,g;s<0&&(s=0),g=t.i;for(f=s;fa0e)return dO(t,u);if(u==t)return!0}}return!1}function u2n(t){switch(Wj(),t.q.g){case 5:hGt(t,(Ht(),pn)),hGt(t,Kn);break;case 4:dzt(t,(Ht(),pn)),dzt(t,Kn);break;default:gqt(t,(Ht(),pn)),gqt(t,Kn)}}function h2n(t){switch(Wj(),t.q.g){case 5:IGt(t,(Ht(),Cn)),IGt(t,bn);break;case 4:DFt(t,(Ht(),Cn)),DFt(t,bn);break;default:mqt(t,(Ht(),Cn)),mqt(t,bn)}}function d2n(t){var n,s;if(n=b(ce(t,(c0(),wZt)),17),n)s=n.a,s==0?At(t,(Xv(),RJ),new Vde):At(t,(Xv(),RJ),new XK(s));else At(t,(Xv(),RJ),new XK(1))}function f2n(t,n){var s=t.i;switch(n.g){case 1:return-(t.n.b+t.o.b);case 2:return t.n.a-s.o.a;case 3:return t.n.b-s.o.b;case 4:return-(t.n.a+t.o.a)}return 0}function p2n(t,n){switch(t.g){case 0:return n==(Uf(),__)?KJ:XJ;case 1:return n==(Uf(),__)?KJ:dz;case 2:return n==(Uf(),__)?dz:XJ;default:return dz}}function HU(t,n){var s,u,f;fh(t.a,n),t.e-=n.r+(t.a.c.length==0?0:t.c),f=cBe;for(u=new me(t.a);u.a>16==3)return t.Cb.Th(t,12,ra,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Xc(),ZYe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function rMe(t,n){var s,u;if(t.Db>>16==11)return t.Cb.Th(t,10,ra,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Xc(),eWe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function I$t(t,n){var s,u;if(t.Db>>16==10)return t.Cb.Th(t,11,Ip,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Vr(),rv):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function O$t(t,n){var s,u;if(t.Db>>16==10)return t.Cb.Th(t,12,Op,n);return u=El(b(jr((s=b(cn(t,16),29),!s?(Vr(),Jx):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function vp(t){var n;if((t.Bb&1)==0&&!!t.r&&t.r.Vh())n=b(t.r,54),t.r=b(e_(t,n),142),t.r!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,8,n,t.r));return t.r}function Efe(t,n,s){var u=Te(we(xo,1),Ml,28,15,[AMe(t,(K0(),Mc),n,s),AMe(t,qu,n,s),AMe(t,Dc,n,s)]);if(t.f)u[0]=d.Math.max(u[0],u[2]),u[2]=u[0];return u}function g2n(t,n){var s,u,f;if(f=$vn(t,n),f.c.length==0)return;ks(f,new Ymt),s=f.c.length;for(u=0;u>19,O=n.h>>19,C!=O)return O-C;if(f=t.h,S=n.h,f!=S)return f-S;if(u=t.m,_=n.m,u!=_)return u-_;return s=t.l,g=n.l,s-g}function vQ(){vQ=z,v$e=(GQ(),$me),y$e=new Dr(r9e,v$e),b$e=(dX(),Fme),m$e=new Dr(n9e,b$e),g$e=(aQ(),Bme),p$e=new Dr(i9e,g$e),f$e=new Dr(a9e,(nn(),!0))}function W8(t,n,s){var u,f;if(u=n*s,He(t.g,154))if(f=qA(t),f.f.d)f.f.a||(t.d.a+=u+Dg);else t.d.d-=u+Dg,t.d.a+=u+Dg;else if(He(t.g,10))t.d.d-=u,t.d.a+=2*u}function N$t(t,n,s){var u,f,g,_,S;f=t[s.g];for(S=new me(n.d);S.a0?t.b:0),++s;n.b=u,n.e=f}function L$t(t){var n,s,u;if(u=t.b,TAt(t.i,u.length)){s=u.length*2,t.b=mt(_me,EG,303,s,0,1),t.c=mt(_me,EG,303,s,0,1),t.f=s-1,t.i=0;for(n=t.a;n;n=n.c)JU(t,n,n);++t.g}}function w2n(t,n,s,u){var f,g,_,S;for(f=0;f_&&(S=_/u),f>g&&(C=g/f),_m(t,d.Math.min(S,C)),t}function T2n(){WQ();var t,n;try{if(n=b(fMe((Fv(),Np),XO),2113),n)return n}catch(s){if(s=Qa(s),He(s,103))t=s,rOe((yi(),t));else throw ve(s)}return new A2t}function x2n(){WQ();var t,n;try{if(n=b(fMe((Fv(),Np),Sp),2040),n)return n}catch(s){if(s=Qa(s),He(s,103))t=s,rOe((yi(),t));else throw ve(s)}return new tEt}function C2n(){V8t();var t,n;try{if(n=b(fMe((Fv(),Np),fE),2122),n)return n}catch(s){if(s=Qa(s),He(s,103))t=s,rOe((yi(),t));else throw ve(s)}return new jEt}function k2n(t,n,s){var u,f;if(f=t.e,t.e=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,4,f,n),!s?s=u:s.nj(u);return f!=n&&(n?s=AO(t,NQ(t,n),s):s=AO(t,t.a,s)),s}function M$t(){nj.call(this),this.e=-1,this.a=!1,this.p=Qo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Qo}function A2n(t,n){var s,u,f;if(u=t.b.d.d,t.a||(u+=t.b.d.a),f=n.b.d.d,n.a||(f+=n.b.d.a),s=Ra(u,f),s==0){if(!t.a&&n.a)return-1;else if(!n.a&&t.a)return 1}return s}function R2n(t,n){var s,u,f;if(u=t.b.b.d,t.a||(u+=t.b.b.a),f=n.b.b.d,n.a||(f+=n.b.b.a),s=Ra(u,f),s==0){if(!t.a&&n.a)return-1;else if(!n.a&&t.a)return 1}return s}function I2n(t,n){var s,u,f;if(u=t.b.g.d,t.a||(u+=t.b.g.a),f=n.b.g.d,n.a||(f+=n.b.g.a),s=Ra(u,f),s==0){if(!t.a&&n.a)return-1;else if(!n.a&&t.a)return 1}return s}function iMe(){iMe=z,UZt=Lh(Fi(Fi(Fi(new Ns,(Xo(),wu),(il(),LUe)),wu,MUe),ac,DUe),ac,wUe),zZt=Fi(Fi(new Ns,wu,gUe),wu,SUe),GZt=Lh(new Ns,ac,xUe)}function O2n(t){var n,s,u,f,g;n=b(ce(t,(Pt(),a9)),85),g=t.n;for(u=n.Cc().Kc();u.Ob();)s=b(u.Pb(),314),f=s.i,f.c+=g.a,f.d+=g.b,s.c?Jzt(s):eVt(s);At(t,a9,null)}function N2n(t,n,s){var u,f;switch(f=t.b,u=f.d,n.g){case 1:return-u.d-s;case 2:return f.o.a+u.c+s;case 3:return f.o.b+u.a+s;case 4:return-u.b-s;default:return-1}}function L2n(t,n,s){var u,f;s.Ug("Interactive node placement",1),t.a=b(ce(n,(Pt(),ck)),312);for(f=new me(n.b);f.a0){if(_=(g&sa)%t.d.length,f=o8e(t,_,g,n),f)return S=f.nd(s),S}return u=t.ck(g,n,s),t.c.Fc(u),null}function oMe(t,n){var s,u,f,g;switch(Oy(t,n).Kl()){case 3:case 2:{s=P4(n);for(f=0,g=s.i;f=0;u--)if(Br(t[u].d,n)||Br(t[u].d,s)){t.length>=u+1&&t.splice(0,u+1);break}return t}function YU(t,n){var s;if(cc(t)&&cc(n)){if(s=t/n,TG0)t.b+=2,t.a+=u}else t.b+=1,t.a+=d.Math.min(u,f)}function G$t(t){var n=b(ce(b(Gf(t.b,0),40),(Oc(),eHe)),107);At(t,(Ma(),CN),new Dt(0,0)),NVt(new tU,t,n.b+n.c-rt(ht(ce(t,Pbe))),n.d+n.a-rt(ht(ce(t,Bbe))))}function z$t(t,n){var s,u;if(u=!1,So(n))u=!0,$A(t,new $T(wi(n)));if(!u){if(He(n,242))u=!0,$A(t,(s=t6e(b(n,242)),new MW(s)))}if(!u)throw ve(new Kle(aFe))}function X2n(t,n,s,u){var f,g,_;return f=new wb(t.e,1,10,(_=n.c,He(_,90)?b(_,29):(Vr(),Lp)),(g=s.c,He(g,90)?b(g,29):(Vr(),Lp)),Py(t,n),!1),!u?u=f:u.nj(f),u}function uMe(t){var n,s;switch(b(ce(zo(t),(Qt(),xze)),429).g){case 0:return n=t.n,s=t.o,new Dt(n.a+s.a/2,n.b+s.b/2);case 1:return new sl(t.n);default:return null}}function WU(){WU=z,aee=new DM(Dm,0),uGe=new DM("LEFTUP",1),dGe=new DM("RIGHTUP",2),cGe=new DM("LEFTDOWN",3),hGe=new DM("RIGHTDOWN",4),P1e=new DM("BALANCED",5)}function Q2n(t,n,s){var u,f,g;if(u=Ra(t.a[n.p],t.a[s.p]),u==0){if(f=b(ce(n,(Pt(),D5)),15),g=b(ce(s,D5),15),f.Hc(s))return-1;else if(g.Hc(n))return 1}return u}function Z2n(t){switch(t.g){case 1:return new l_t;case 2:return new c_t;case 3:return new o_t;case 0:return null;default:throw ve(new dn(Ege+(t.f!=null?t.f:""+t.g)))}}function hMe(t,n,s){switch(n){case 1:!t.n&&(t.n=new kt(Dl,t,1,7)),ni(t.n),!t.n&&(t.n=new kt(Dl,t,1,7)),ps(t.n,b(s,16));return;case 2:G6(t,wi(s));return}OLe(t,n,s)}function dMe(t,n,s){switch(n){case 3:Uw(t,rt(ht(s)));return;case 4:Gw(t,rt(ht(s)));return;case 5:eh(t,rt(ht(s)));return;case 6:th(t,rt(ht(s)));return}hMe(t,n,s)}function _Q(t,n,s){var u,f,g;g=(u=new Gle,u),f=Ng(g,n,null),!!f&&f.oj(),zu(g,s),ii((!t.c&&(t.c=new kt(NS,t,12,10)),t.c),g),Ay(g,0),KT(g,1),Ly(g,!0),Ny(g,!0)}function fMe(t,n){var s,u,f;if(s=IM(t.i,n),He(s,241))return f=b(s,241),f.zi()==null,f.wi();else if(He(s,507))return u=b(s,2037),f=u.b,f;else return null}function J2n(t,n,s,u){var f,g;return mi(n),mi(s),g=b(JM(t.d,n),17),gDt(!!g,"Row %s not in %s",n,t.e),f=b(JM(t.b,s),17),gDt(!!f,"Column %s not in %s",s,t.c),CPt(t,g.a,f.a,u)}function V$t(t,n,s,u,f,g,_){var S,C,O,M,U;if(M=f[g],O=g==_-1,S=O?u:0,U=l$t(S,M),u!=10&&Te(we(t,_-g),n[g],s[g],S,U),!O){++g;for(C=0;C1||S==-1)g=b(C,15),f.Wb(Pyn(t,g));else f.Wb(spe(t,b(C,58)))}}function sEn(t,n,s,u){J3t();var f=gme;p=n,m=s,S6n=u;function g(){for(var _=0;_0)return!1;return!0}function cEn(t){var n,s,u,f,g;for(u=new W2(new R2(t.b).a);u.b;)s=Hw(u),n=b(s.ld(),10),g=b(b(s.md(),42).a,10),f=b(b(s.md(),42).b,8),ua(V0(n.n),ua(Uo(g.n),f))}function uEn(t){switch(b(ce(t.b,(Qt(),yze)),387).g){case 1:ys(ec(wc(new Pr(null,new Gr(t.d,16)),new Fbt),new $bt),new Ubt);break;case 2:akn(t);break;case 0:BSn(t)}}function hEn(t,n,s){var u,f,g;u=s,!u&&(u=new mA),u.Ug("Layout",t.a.c.length);for(g=new me(t.a);g.abge)return s;else f>-0.000001&&++s;return s}function gMe(t,n){var s;if(n!=t.b)s=null,!!t.b&&(s=FK(t.b,t,-4,s)),!!n&&(s=i5(n,t,-4,s)),s=vBt(t,n,s),!!s&&s.oj();else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,n,n))}function Y$t(t,n){var s;if(n!=t.f)s=null,!!t.f&&(s=FK(t.f,t,-1,s)),!!n&&(s=i5(n,t,-1,s)),s=yBt(t,n,s),!!s&&s.oj();else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,0,n,n))}function gEn(t,n,s,u){var f,g,_,S;if(Ad(t.e))f=n.Lk(),S=n.md(),g=s.md(),_=Wv(t,1,f,S,g,f.Jk()?xO(t,f,g,He(f,102)&&(b(f,19).Bb&ml)!=0):-1,!0),u?u.nj(_):u=_;return u}function W$t(t){var n,s,u;if(t==null)return null;if(s=b(t,15),s.dc())return"";u=new gy;for(n=s.Kc();n.Ob();)Ol(u,(ka(),wi(n.Pb()))),u.a+=" ";return Hce(u,u.a.length-1)}function j$t(t){var n,s,u;if(t==null)return null;if(s=b(t,15),s.dc())return"";u=new gy;for(n=s.Kc();n.Ob();)Ol(u,(ka(),wi(n.Pb()))),u.a+=" ";return Hce(u,u.a.length-1)}function mEn(t,n,s){var u,f;if(u=t.c[n.c.p][n.p],f=t.c[s.c.p][s.p],u.a!=null&&f.a!=null)return Nue(u.a,f.a);else if(u.a!=null)return-1;else if(f.a!=null)return 1;return 0}function bEn(t,n,s){return s.Ug("Tree layout",1),G$(t.b),H0(t.b,(s5(),Uee),Uee),H0(t.b,w9,w9),H0(t.b,S9,S9),H0(t.b,T9,T9),t.a=fG(t.b,n),hEn(t,n,s.eh(1)),s.Vg(),n}function yEn(t,n){var s,u,f,g,_,S;if(n){g=n.a.length,s=new P2(g);for(S=(s.b-s.a)*s.c<0?($v(),D_):new zv(s);S.Ob();)_=b(S.Pb(),17),f=k6(n,_.a),u=new g4t(t),Chn(u.a,f)}}function vEn(t,n){var s,u,f,g,_,S;if(n){g=n.a.length,s=new P2(g);for(S=(s.b-s.a)*s.c<0?($v(),D_):new zv(s);S.Ob();)_=b(S.Pb(),17),f=k6(n,_.a),u=new s4t(t),xhn(u.a,f)}}function _En(t){var n;if(t!=null&&t.length>0&&Ko(t,t.length-1)==33)try{return n=rzt(Of(t,0,t.length-1)),n.e==null}catch(s){if(s=Qa(s),!He(s,33))throw ve(s)}return!1}function EEn(t,n,s){var u,f,g;switch(u=zo(n),f=WX(u),g=new iu,Ec(g,n),s.g){case 1:Xs(g,DU(t5(f)));break;case 2:Xs(g,t5(f))}return At(g,(Qt(),Px),ht(ce(t,Px))),g}function mMe(t){var n,s;return n=b(Gn(new Nn(Mn(co(t.a).a.Kc(),new L))),18),s=b(Gn(new Nn(Mn(Ss(t.a).a.Kc(),new L))),18),er(Jt(ce(n,(Pt(),Ug))))||er(Jt(ce(s,Ug)))}function nx(){nx=z,fz=new o$("ONE_SIDE",0),JJ=new o$("TWO_SIDES_CORNER",1),eee=new o$("TWO_SIDES_OPPOSING",2),ZJ=new o$("THREE_SIDES",3),QJ=new o$("FOUR_SIDES",4)}function K$t(t,n){var s,u,f,g;g=new Ut,f=0,u=n.Kc();while(u.Ob()){s=$t(b(u.Pb(),17).a+f);while(s.a=t.f)break;rn(g.c,s)}return g}function wEn(t,n){var s,u,f,g,_;for(g=new me(n.a);g.a0&&v$t(this,this.c-1,(Ht(),Cn)),this.c0&&t[0].length>0&&(this.c=er(Jt(ce(zo(t[0][0]),(Pt(),kGe))))),this.a=mt(Hrr,Bt,2117,t.length,0,2),this.b=mt(qrr,Bt,2118,t.length,0,2),this.d=new fBt}function kEn(t){if(t.c.length==0)return!1;if((qr(0,t.c.length),b(t.c[0],18)).c.i.k==(mn(),mo))return!0;return b4(ec(new Pr(null,new Gr(t,16)),new vyt),new _yt)}function Z$t(t,n){var s,u,f,g,_,S,C;S=lx(n),g=n.f,C=n.g,_=d.Math.sqrt(g*g+C*C),f=0;for(u=new me(S);u.a=0)s=YU(t,iZ),u=BU(t,iZ);else n=Vv(t,1),s=YU(n,500000000),u=BU(n,500000000),u=rl(n0(u,1),io(t,1));return q0(n0(u,32),io(s,xl))}function tUt(t,n,s){var u,f;switch(u=(Pn(n.b!=0),b(Df(n,n.a.a),8)),s.g){case 0:u.b=0;break;case 2:u.b=t.f;break;case 3:u.a=0;break;default:u.a=t.g}return f=ti(n,0),U$(f,u),n}function rUt(t,n,s,u){var f,g,_,S,C;switch(C=t.b,g=n.d,_=g.j,S=L7e(_,C.d[_.g],s),f=ua(Uo(g.n),g.a),g.j.g){case 1:case 3:S.a+=f.a;break;case 2:case 4:S.b+=f.b}cs(u,S,u.c.b,u.c)}function $En(t,n,s){var u,f,g,_;_=rc(t.e,n,0),g=new w5e,g.b=s,u=new Mo(t.e,_);while(u.b1;n>>=1)(n&1)!=0&&(u=m4(u,s)),s.d==1?s=m4(s,s):s=new yFt(FVt(s.a,s.d,mt(ci,$i,28,s.d<<1,15,1)));return u=m4(u,s),u}function xMe(){xMe=z;var t,n,s,u;a$e=mt(xo,Ml,28,25,15,1),s$e=mt(xo,Ml,28,33,15,1),u=0.0000152587890625;for(n=32;n>=0;n--)s$e[n]=u,u*=0.5;s=1;for(t=24;t>=0;t--)a$e[t]=s,s*=0.5}function qEn(t){var n,s;if(er(Jt(It(t,(Qt(),Dx))))){for(s=new Nn(Mn(Ob(t).a.Kc(),new L));ri(s);)if(n=b(Gn(s),74),Zw(n)){if(er(Jt(It(n,vE))))return!0}}return!1}function nUt(t,n){var s,u,f;if($s(t.f,n)){if(n.b=t,u=n.c,rc(t.j,u,0)!=-1||Gt(t.j,u),f=n.d,rc(t.j,f,0)!=-1||Gt(t.j,f),s=n.a.b,s.c.length!=0)!t.i&&(t.i=new TFt(t)),Xmn(t.i,s)}}function YEn(t){var n,s,u,f,g;if(s=t.c.d,u=s.j,f=t.d.d,g=f.j,u==g)return s.p=0&&Br(t.substr(n,3),"GMT"))return s[0]=n+3,iDe(t,s,u);if(n>=0&&Br(t.substr(n,3),"UTC"))return s[0]=n+3,iDe(t,s,u);return iDe(t,s,u)}function jEn(t,n){var s,u,f,g,_;g=t.g.a,_=t.g.b;for(u=new me(t.d);u.as;g--)t[g]|=n[g-s-1]>>>_,t[g-1]=n[g-s-1]<0&&au(t.g,n,t.g,n+u,S),_=s.Kc(),t.i+=u;for(f=0;f>4&15,g=t[u]&15,_[f++]=rWe[s],_[f++]=rWe[g];return yp(_,0,_.length)}}function gh(t){var n,s;if(t>=ml)return n=xG+(t-ml>>10&1023)&Ds,s=56320+(t-ml&1023)&Ds,String.fromCharCode(n)+(""+String.fromCharCode(s));else return String.fromCharCode(t&Ds)}function awn(t,n){MT();var s,u,f,g;if(f=b(b(_a(t.r,n),21),87),f.gc()>=2)return u=b(f.Kc().Pb(),117),s=t.u.Hc((nd(),Y9)),g=t.u.Hc(W5),!u.a&&!s&&(f.gc()==2||g);else return!1}function sUt(t,n,s,u,f){var g,_,S;g=qzt(t,n,s,u,f),S=!1;while(!g)IQ(t,f,!0),S=!0,g=qzt(t,n,s,u,f);if(S&&IQ(t,f,!1),_=pde(f),_.c.length!=0)!!t.d&&t.d.Gg(_),sUt(t,f,s,u,_)}function TQ(){TQ=z,qye=new $M(Dm,0),CYe=new $M("DIRECTED",1),AYe=new $M("UNDIRECTED",2),TYe=new $M("ASSOCIATION",3),kYe=new $M("GENERALIZATION",4),xYe=new $M("DEPENDENCY",5)}function swn(t,n){var s;if(!wg(t))throw ve(new zl(Sjt));switch(s=wg(t),n.g){case 1:return-(t.j+t.f);case 2:return t.i-s.g;case 3:return t.j-s.f;case 4:return-(t.i+t.g)}return 0}function own(t,n,s){var u,f,g;return u=n.Lk(),g=n.md(),f=u.Jk()?Wv(t,4,u,g,null,xO(t,u,g,He(u,102)&&(b(u,19).Bb&ml)!=0),!0):Wv(t,u.tk()?2:1,u,g,u.ik(),-1,!0),s?s.nj(f):s=f,s}function gO(t,n){var s,u;vn(n),u=t.b.c.length,Gt(t.b,n);while(u>0){if(s=u,u=(u-1)/2|0,t.a.Ne(nr(t.b,u),n)<=0)return Lf(t.b,s,n),!0;Lf(t.b,s,nr(t.b,u))}return Lf(t.b,u,n),!0}function AMe(t,n,s,u){var f,g;if(f=0,!s)for(g=0;g<_J;g++)f=d.Math.max(f,zX(t.a[g][n.g],u));else f=zX(t.a[s.g][n.g],u);return n==(K0(),qu)&&!!t.b&&(f=d.Math.max(f,t.b.a)),f}function lwn(t,n){var s,u,f,g,_,S;if(f=t.i,g=n.i,!f||!g)return!1;if(f.i!=g.i||f.i==(Ht(),Cn)||f.i==(Ht(),bn))return!1;return _=f.g.a,s=_+f.j.a,S=g.g.a,u=S+g.j.a,_<=u&&s>=S}function oUt(t){switch(t.g){case 0:return new S_t;case 1:return new T_t;default:throw ve(new dn("No implementation is available for the width approximator "+(t.f!=null?t.f:""+t.g)))}}function RMe(t,n,s,u){var f=!1;if(So(u))f=!0,m6(n,s,wi(u));if(!f){if(IT(u))f=!0,RMe(t,n,s,u)}if(!f){if(He(u,242))f=!0,$2(n,s,b(u,242))}if(!f)throw ve(new Kle(aFe))}function cwn(t,n){var s,u,f;if(s=n.qi(t.a),s){if(f=X0((!s.b&&(s.b=new Id((Vr(),yl),Bc,s)),s.b),wp),f!=null){for(u=1;u<(Ph(),CWe).length;++u)if(Br(CWe[u],f))return u}}return 0}function uwn(t,n){var s,u,f;if(s=n.qi(t.a),s){if(f=X0((!s.b&&(s.b=new Id((Vr(),yl),Bc,s)),s.b),wp),f!=null){for(u=1;u<(Ph(),kWe).length;++u)if(Br(kWe[u],f))return u}}return 0}function lUt(t,n){var s,u,f,g;if(vn(n),g=t.a.gc(),g0?1:0;while(g.a[f]!=s)g=g.a[f],f=t.a.Ne(s.d,g.d)>0?1:0;g.a[f]=u,u.b=s.b,u.a[0]=s.a[0],u.a[1]=s.a[1],s.a[0]=null,s.a[1]=null}function fwn(t){var n,s,u,f;n=new Ut,s=mt(wd,A1,28,t.a.c.length,16,1),Q6e(s,s.length);for(f=new me(t.a);f.a0&&MVt((qr(0,s.c.length),b(s.c[0],30)),t),s.c.length>1&&MVt(b(nr(s,s.c.length-1),30),t),n.Vg()}function gwn(t){nd();var n,s;if(n=Ua(Gb,Te(we(pte,1),Rt,279,0,[R_])),vU(UK(n,t))>1)return!1;if(s=Ua(Y9,Te(we(pte,1),Rt,279,0,[q9,W5])),vU(UK(s,t))>1)return!1;return!0}function OMe(t,n){var s=mu((Fv(),Np),t);if(He(s,507)?Vl(Np,t,new eRt(this,n)):Vl(Np,t,this),Nfe(this,n),n==(t6(),pWe))this.wb=b(this,2038),b(n,2040);else this.wb=(Hv(),an)}function mwn(t){var n,s,u;if(t==null)return null;n=null;for(s=0;s=Uy?"error":u>=900?"warn":u>=800?"info":"log"),ENt(s,t.a),!!t.b&&L8e(n,s,t.b,"Exception: ",!0)}function ce(t,n){var s,u;if(u=(!t.q&&(t.q=new Zn),An(t.q,n)),u!=null)return u;return s=n.Sg(),He(s,4)&&(s==null?(!t.q&&(t.q=new Zn),WA(t.q,n)):(!t.q&&(t.q=new Zn),Ki(t.q,n,s))),s}function Xo(){Xo=z,f0=new s$("P1_CYCLE_BREAKING",0),O1=new s$("P2_LAYERING",1),su=new s$("P3_NODE_ORDERING",2),wu=new s$("P4_NODE_PLACEMENT",3),ac=new s$("P5_EDGE_ROUTING",4)}function bwn(t,n){E8();var s;if(t.c==n.c){if(t.b==n.b||Tmn(t.b,n.b)){if(s=Kin(t.b)?1:-1,t.a&&!n.a)return s;else if(!t.a&&n.a)return-s}return jc(t.b.g,n.b.g)}else return Ra(t.c,n.c)}function fUt(t,n){var s,u,f;if(LMe(t,n))return!0;for(u=new me(n);u.a=f||n<0)throw ve(new Gl(Kge+n+hE+f));if(s>=f||s<0)throw ve(new Gl(Xge+s+hE+f));return n!=s?u=(g=t.Cj(s),t.qj(n,g),g):u=t.xj(s),u}function mUt(t){var n,s,u;if(u=t,t){n=0;for(s=t.Eh();s;s=s.Eh()){if(++n>a0e)return mUt(s);if(u=s,s==t)throw ve(new zl("There is a cycle in the containment hierarchy of "+t))}}return u}function i_(t){var n,s,u;u=new j2(ll,"[","]");for(s=t.Kc();s.Ob();)n=s.Pb(),Eb(u,nt(n)===nt(t)?"(this Collection)":n==null?mh:hc(n));return!u.a?u.c:u.e.length==0?u.a.a:u.a.a+(""+u.e)}function LMe(t,n){var s,u;if(u=!1,n.gc()<2)return!1;for(s=0;s1&&(t.j.b+=t.e);else t.j.a+=s.a,t.j.b=d.Math.max(t.j.b,s.b),t.d.c.length>1&&(t.j.a+=t.e)}function a_(){a_=z,AJt=Te(we(bl,1),Qc,64,0,[(Ht(),pn),Cn,Kn]),kJt=Te(we(bl,1),Qc,64,0,[Cn,Kn,bn]),RJt=Te(we(bl,1),Qc,64,0,[Kn,bn,pn]),IJt=Te(we(bl,1),Qc,64,0,[bn,pn,Cn])}function vwn(t,n,s,u){var f,g,_,S,C,O,M;if(_=t.c.d,S=t.d.d,_.j==S.j)return;M=t.b,f=_.j,C=null;while(f!=S.j)C=n==0?YX(f):JLe(f),g=L7e(f,M.d[f.g],s),O=L7e(C,M.d[C.g],s),Oi(u,ua(g,O)),f=C}function _wn(t,n,s,u){var f,g,_,S,C;if(_=_$t(t.a,n,s),S=b(_.a,17).a,g=b(_.b,17).a,u){if(C=b(ce(n,(Pt(),id)),10),f=b(ce(s,id),10),!!C&&!!f)oMt(t.b,C,f),S+=t.b.i,g+=t.b.e}return S>g}function yUt(t){var n,s,u,f,g,_,S,C,O;this.a=GFt(t),this.b=new Ut;for(s=t,u=0,f=s.length;uoue(t.d).c)t.i+=t.g.c,Wde(t.d);else if(oue(t.d).c>oue(t.g).c)t.e+=t.d.c,Wde(t.g);else t.i+=ROt(t.g),t.e+=ROt(t.d),Wde(t.g),Wde(t.d)}function Twn(t,n,s){var u,f,g,_;g=n.q,_=n.r,new U2((Y0(),w_),n,g,1),new U2(w_,g,_,1);for(f=new me(s);f.aS&&(C=S/u),f>g&&(O=g/f),_=d.Math.min(C,O),t.a+=_*(n.a-t.a),t.b+=_*(n.b-t.b)}function Awn(t,n,s,u,f){var g,_;_=!1,g=b(nr(s.b,0),27);while(nAn(t,n,g,u,f)){if(_=!0,iEn(s,g),s.b.c.length==0)break;g=b(nr(s.b,0),27)}return s.b.c.length==0&&HU(s.j,s),_&&mQ(n.q),_}function Rwn(t,n){M4();var s,u,f,g;if(n.b<2)return!1;g=ti(n,0),s=b(Jn(g),8),u=s;while(g.b!=g.d.c){if(f=b(Jn(g),8),jfe(t,u,f))return!0;u=f}if(jfe(t,u,s))return!0;return!1}function DMe(t,n,s,u){var f,g;if(s==0)return!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),Qj(t.o,n,u);return g=b(jr((f=b(cn(t,16),29),!f?t.ii():f),s),69),g.wk().Ak(t,rh(t),s-Un(t.ii()),n,u)}function Nfe(t,n){var s;if(n!=t.sb)s=null,!!t.sb&&(s=b(t.sb,54).Th(t,1,K9,s)),!!n&&(s=b(n,54).Rh(t,1,K9,s)),s=WLe(t,n,s),!!s&&s.oj();else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,4,n,n))}function Iwn(t,n){var s,u,f,g;if(n)f=xb(n,"x"),s=new d4t(t),D6(s.a,(vn(f),f)),g=xb(n,"y"),u=new f4t(t),B6(u.a,(vn(g),g));else throw ve(new mm("All edge sections need an end point."))}function Own(t,n){var s,u,f,g;if(n)f=xb(n,"x"),s=new c4t(t),P6(s.a,(vn(f),f)),g=xb(n,"y"),u=new u4t(t),F6(u.a,(vn(g),g));else throw ve(new mm("All edge sections need a start point."))}function Nwn(t,n){var s,u,f,g,_,S,C;for(u=jPt(t),g=0,S=u.length;g>22-n,f=t.h<>22-n;else if(n<44)s=0,u=t.l<>44-n;else s=0,u=0,f=t.l<t)throw ve(new dn("k must be smaller than n"));else return n==0||n==t?1:t==0?0:lMe(t)/(lMe(n)*lMe(t-n))}function PMe(t,n){var s,u,f,g;s=new ZRe(t);while(s.g==null&&!s.c?IOe(s):s.g==null||s.i!=0&&b(s.g[s.i-1],51).Ob())if(g=b(OQ(s),58),He(g,167)){u=b(g,167);for(f=0;f>4],n[s*2+1]=Dte[g&15];return yp(n,0,n.length)}function jwn(t){AK();var n,s,u;switch(u=t.c.length,u){case 0:return CXt;case 1:return n=b(aGt(new me(t)),44),Gcn(n.ld(),n.md());default:return s=b(Og(t,mt(pE,rZ,44,t.c.length,0,1)),173),new D5e(s)}}function Kwn(t){var n,s,u,f,g,_;n=new u4,s=new u4,jv(n,t),jv(s,t);while(s.b!=s.c){f=b(BA(s),36);for(_=new me(f.a);_.a<_.c.c.length;)if(g=b(ge(_),10),g.e)u=g.e,jv(n,u),jv(s,u)}return n}function By(t,n){switch(n.g){case 1:return LA(t.j,(Dh(),cUe));case 2:return LA(t.j,(Dh(),lUe));case 3:return LA(t.j,(Dh(),uUe));case 4:return LA(t.j,(Dh(),hUe));default:return Hr(),Hr(),Jo}}function Xwn(t,n){var s,u,f;if(s=Mcn(n,t.e),u=b(An(t.g.f,s),17).a,f=t.a.c.length-1,t.a.c.length!=0&&b(nr(t.a,f),294).c==u)++b(nr(t.a,f),294).a,++b(nr(t.a,f),294).b;else Gt(t.a,new OIt(u))}function Qwn(t,n,s){var u,f;if(u=fkn(t,n,s),u!=0)return u;if($a(n,(Pt(),Aa))&&$a(s,Aa))return f=jc(b(ce(n,Aa),17).a,b(ce(s,Aa),17).a),f<0?oG(t,n,s):f>0&&oG(t,s,n),f;return BTn(t,n,s)}function s_(){s_=z,Oir=(Hi(),V5),Nir=AE,kir=kE,Air=kk,Rir=x_,Cir=Ck,_He=Yz,Iir=qx,Zbe=(X8e(),gir),Jbe=mir,wHe=_ir,eye=Sir,SHe=Eir,THe=wir,EHe=bir,jee=yir,Kee=vir,Mz=Tir,xHe=xir,vHe=pir}function CUt(t,n){var s,u,f,g,_;if(t.e<=n)return t.g;if(vfn(t,t.g,n))return t.g;g=t.r,u=t.g,_=t.r,f=(g-u)/2+u;while(u+11&&(t.e.b+=t.a);else t.e.a+=s.a,t.e.b=d.Math.max(t.e.b,s.b),t.d.c.length>1&&(t.e.a+=t.a)}function eSn(t){var n,s,u,f;switch(f=t.i,n=f.b,u=f.j,s=f.g,f.a.g){case 0:s.a=(t.g.b.o.a-u.a)/2;break;case 1:s.a=n.d.n.a+n.d.a.a;break;case 2:s.a=n.d.n.a+n.d.a.a-u.a;break;case 3:s.b=n.d.n.b+n.d.a.b}}function tSn(t,n,s){var u,f,g;for(f=new Nn(Mn(Ab(s).a.Kc(),new L));ri(f);){if(u=b(Gn(f),18),!(!gl(u)&&!(!gl(u)&&u.c.i.c==u.d.i.c)))continue;g=mzt(t,u,s,new _kt),g.c.length>1&&rn(n.c,g)}}function AUt(t,n,s,u,f){if(uu&&(t.a=u),t.bf&&(t.b=f),t}function rSn(t){if(He(t,143))return LCn(b(t,143));else if(He(t,233))return Syn(b(t,233));else if(He(t,23))return Mwn(b(t,23));else throw ve(new dn(sFe+i_(new Qh(Te(we(ao,1),en,1,5,[t])))))}function nSn(t,n,s,u,f){var g,_,S;g=!0;for(_=0;_>>f|s[_+u+1]<>>f,++_}return g}function UMe(t,n,s,u){var f,g,_;if(n.k==(mn(),mo)){for(g=new Nn(Mn(co(n).a.Kc(),new L));ri(g);)if(f=b(Gn(g),18),_=f.c.i.k,_==mo&&t.c.a[f.c.i.c.p]==u&&t.c.a[n.c.p]==s)return!0}return!1}function iSn(t,n){var s,u,f,g;if(n&=63,s=t.h&Mb,n<22)g=s>>>n,f=t.m>>n|s<<22-n,u=t.l>>n|t.m<<22-n;else if(n<44)g=0,f=s>>>n-22,u=t.m>>n-22|t.h<<44-n;else g=0,f=0,u=s>>>n-44;return Qu(u&yd,f&yd,g&Mb)}function RUt(t,n,s,u){var f;this.b=u,this.e=t==(zw(),v9),f=n[s],this.d=M2(wd,[Bt,A1],[183,28],16,[f.length,f.length],2),this.a=M2(ci,[Bt,$i],[53,28],15,[f.length,f.length],2),this.c=new EMe(n,s)}function aSn(t){var n,s,u;t.k=new LOe((Ht(),Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn])).length,t.j.c.length);for(u=new me(t.j);u.a=s)return bO(t,n,u.p),!0;return!1}function I4(t,n,s,u){var f,g,_,S,C,O;_=s.length,g=0,f=-1,O=wDt((fn(n,t.length+1),t.substr(n)),(due(),n$e));for(S=0;S<_;++S)if(C=s[S].length,C>g&&Nun(O,wDt(s[S],n$e)))f=S,g=C;return f>=0&&(u[0]=n+g),f}function OUt(t){var n;if((t.Db&64)!=0)return Lfe(t);return n=new Vd(KBe),!t.a||Bi(Bi((n.a+=' "',n),t.a),'"'),Bi(fw(Bi(fw(Bi(fw(Bi(fw((n.a+=" (",n),t.i),","),t.j)," | "),t.g),","),t.f),")"),n.a}function NUt(t,n,s){var u,f,g,_,S;S=nh(t.e.Dh(),n),f=b(t.g,124),u=0;for(_=0;_s)return XMe(t,s,"start index");if(n<0||n>s)return XMe(n,s,"end index");return aD("end index (%s) must not be less than start index (%s)",Te(we(ao,1),en,1,5,[$t(n),$t(t)]))}function MUt(t,n){var s,u,f,g;for(u=0,f=t.length;u0&&DUt(t,g,s))}n.p=0}function fr(t){var n;this.c=new Va,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,!t.i?this.j=(n=b(G0(M1),9),new Rf(n,b(t0(n,n.length),9),0)):this.j=t.i,this.g=t.f}function hSn(t){var n,s,u,f;n=qv(Bi(new Vd("Predicates."),"and"),40),s=!0;for(f=new cM(t);f.b0?S[_-1]:mt(N1,Gy,10,0,0,1),f=S[_],O=_=0?t.ki(f):e8e(t,u);else throw ve(new dn(f_+u.xe()+MD));else Bf(t,s,u)}function GMe(t){var n,s;if(s=null,n=!1,He(t,211))n=!0,s=b(t,211).a;if(!n){if(He(t,263))n=!0,s=""+b(t,263).a}if(!n){if(He(t,493))n=!0,s=""+b(t,493).a}if(!n)throw ve(new Kle(aFe));return s}function zMe(t,n,s){var u,f,g,_,S,C;C=nh(t.e.Dh(),n),u=0,S=t.i,f=b(t.g,124);for(_=0;_=t.d.b.c.length)n=new gu(t.d),n.p=u.p-1,Gt(t.d.b,n),s=new gu(t.d),s.p=u.p,Gt(t.d.b,s);Lo(u,b(nr(t.d.b,u.p),30))}}function qMe(t,n,s){var u,f,g;if(!t.b[n.g]){t.b[n.g]=!0,u=s,!u&&(u=new tU),Oi(u.b,n);for(g=t.a[n.g].Kc();g.Ob();)f=b(g.Pb(),65),f.b!=n&&qMe(t,f.b,u),f.c!=n&&qMe(t,f.c,u),Oi(u.a,f);return u}return null}function gSn(t){switch(t.g){case 0:case 1:case 2:return Ht(),pn;case 3:case 4:case 5:return Ht(),Kn;case 6:case 7:case 8:return Ht(),bn;case 9:case 10:case 11:return Ht(),Cn;default:return Ht(),Cc}}function mSn(t,n){var s;if(t.c.length==0)return!1;if(s=JBt((qr(0,t.c.length),b(t.c[0],18)).c.i),qd(),s==(tx(),gk)||s==pk)return!0;return b4(ec(new Pr(null,new Gr(t,16)),new Eyt),new vCt(n))}function Bfe(t,n){if(He(n,207))return uan(t,b(n,27));else if(He(n,193))return han(t,b(n,123));else if(He(n,452))return can(t,b(n,166));else throw ve(new dn(sFe+i_(new Qh(Te(we(ao,1),en,1,5,[n])))))}function GUt(t,n,s){var u,f;if(this.f=t,u=b(An(t.b,n),260),f=!u?0:u.a,cNe(s,f),s>=(f/2|0)){this.e=!u?null:u.c,this.d=f;while(s++0)LNe(this)}this.b=n,this.a=null}function bSn(t,n){var s,u;n.a?QCn(t,n):(s=b(sce(t.b,n.b),60),!!s&&s==t.a[n.b.f]&&!!s.a&&s.a!=n.b.a&&s.c.Fc(n.b),u=b(ace(t.b,n.b),60),!!u&&t.a[u.f]==n.b&&!!u.a&&u.a!=n.b.a&&n.b.c.Fc(u),Jce(t.b,n.b))}function zUt(t,n){var s,u;if(s=b(Nl(t.b,n),127),b(b(_a(t.r,n),21),87).dc()){s.n.b=0,s.n.c=0;return}s.n.b=t.C.b,s.n.c=t.C.c,t.A.Hc((Md(),IE))&&pVt(t,n),u=qvn(t,n),Xfe(t,n)==(T4(),k_)&&(u+=2*t.w),s.a.a=u}function VUt(t,n){var s,u;if(s=b(Nl(t.b,n),127),b(b(_a(t.r,n),21),87).dc()){s.n.d=0,s.n.a=0;return}s.n.d=t.C.d,s.n.a=t.C.a,t.A.Hc((Md(),IE))&&gVt(t,n),u=Hvn(t,n),Xfe(t,n)==(T4(),k_)&&(u+=2*t.w),s.a.b=u}function ySn(t,n){var s,u,f,g;g=new Ut;for(u=new me(n);u.au&&(fn(n-1,t.length),t.charCodeAt(n-1)<=32))--n;return u>0||ns.a&&(u.Hc((eE(),D9))?f=(n.a-s.a)/2:u.Hc(P9)&&(f=n.a-s.a)),n.b>s.b&&(u.Hc((eE(),F9))?g=(n.b-s.b)/2:u.Hc(B9)&&(g=n.b-s.b)),IMe(t,f,g)}function XUt(t,n,s,u,f,g,_,S,C,O,M,U,q){He(t.Cb,90)&&sx(fd(b(t.Cb,90)),4),zu(t,s),t.f=_,iO(t,S),sO(t,C),nO(t,O),aO(t,M),Ly(t,U),oO(t,q),Ny(t,!0),Ay(t,f),t.Zk(g),Q2(t,n),u!=null&&(t.i=null,kX(t,u))}function XMe(t,n,s){if(t<0)return aD(Wqt,Te(we(ao,1),en,1,5,[s,$t(t)]));else if(n<0)throw ve(new dn(jqt+n));else return aD("%s (%s) must not be greater than size (%s)",Te(we(ao,1),en,1,5,[s,$t(t),$t(n)]))}function QMe(t,n,s,u,f,g){var _,S,C,O;if(_=u-s,_<7){dyn(n,s,u,g);return}if(C=s+f,S=u+f,O=C+(S-C>>1),QMe(n,t,C,O,-f,g),QMe(n,t,O,S,-f,g),g.Ne(t[O-1],t[O])<=0){while(s=0?t.bi(g,s):k8e(t,f,s);else throw ve(new dn(f_+f.xe()+MD));else Ff(t,u,f,s)}function QUt(t){var n,s;if(t.f){while(t.n>0)if(n=b(t.k.Xb(t.n-1),76),s=n.Lk(),He(s,102)&&(b(s,19).Bb&Hc)!=0&&(!t.e||s.pk()!=BN||s.Lj()!=0)&&n.md()!=null)return!0;else--t.n;return!1}else return t.n>0}function ZUt(t){var n,s,u,f;if(s=b(t,54)._h(),s)try{if(u=null,n=vO((Fv(),Np),BVt(Tyn(s))),n)f=n.ai(),!!f&&(u=f.Fl(xnn(s.e)));if(!!u&&u!=t)return ZUt(u)}catch(g){if(g=Qa(g),!He(g,63))throw ve(g)}return t}function MSn(t,n,s){var u,f,g;s.Ug("Remove overlaps",1),s.dh(n,lBe),u=b(It(n,(d4(),yk)),27),t.f=u,t.a=nfe(b(It(n,(s_(),Mz)),300)),f=ht(It(n,(Hi(),AE))),VAe(t,(vn(f),f)),g=lx(u),aqt(t,n,g,s),s.dh(n,$Z)}function DSn(t){var n,s,u;if(er(Jt(It(t,(Hi(),Hz))))){u=new Ut;for(s=new Nn(Mn(Ob(t).a.Kc(),new L));ri(s);)n=b(Gn(s),74),Zw(n)&&er(Jt(It(n,Lye)))&&rn(u.c,n);return u}else return Hr(),Hr(),Jo}function JUt(t){if(!t)return Jkt(),DXt;var n=t.valueOf?t.valueOf():t;if(n!==t){var s=xme[typeof n];return s?s(n):ULe(typeof n)}else if(t instanceof Array||t instanceof d.Array)return new BAe(t);else return new VF(t)}function eGt(t,n,s){var u,f,g;switch(g=t.o,u=b(Nl(t.p,s),252),f=u.i,f.b=Z8(u),f.a=Q8(u),f.b=d.Math.max(f.b,g.a),f.b>g.a&&!n&&(f.b=g.a),f.c=-(f.b-g.a)/2,s.g){case 1:f.d=-f.a;break;case 3:f.d=g.b}cpe(u),upe(u)}function tGt(t,n,s){var u,f,g;switch(g=t.o,u=b(Nl(t.p,s),252),f=u.i,f.b=Z8(u),f.a=Q8(u),f.a=d.Math.max(f.a,g.b),f.a>g.b&&!n&&(f.a=g.b),f.d=-(f.a-g.b)/2,s.g){case 4:f.c=-f.b;break;case 2:f.c=g.a}cpe(u),upe(u)}function PSn(t,n){var s,u,f,g,_;if(n.dc())return;if(f=b(n.Xb(0),131),n.gc()==1){Nzt(t,f,f,1,0,n);return}s=1;while(s0)try{f=Zd(n,Qo,sa)}catch(g){if(g=Qa(g),He(g,130))throw u=g,ve(new lX(u));else throw ve(g)}return s=(!t.a&&(t.a=new Lle(t)),t.a),f=0?b(Ye(s,f),58):null}function USn(t,n){if(t<0)return aD(Wqt,Te(we(ao,1),en,1,5,["index",$t(t)]));else if(n<0)throw ve(new dn(jqt+n));else return aD("%s (%s) must be less than size (%s)",Te(we(ao,1),en,1,5,["index",$t(t),$t(n)]))}function GSn(t){var n,s,u,f,g;if(t==null)return mh;g=new j2(ll,"[","]");for(s=t,u=0,f=s.length;u=0?t.Lh(s,!0,!0):Jw(t,f,!0),160)),b(u,220).Zl(n);else throw ve(new dn(f_+n.xe()+MD))}function t8e(t){var n,s;if(t>-140737488355328&&t<140737488355328){if(t==0)return 0;return n=t<0,n&&(t=-t),s=Ks(d.Math.floor(d.Math.log(t)/0.6931471805599453)),(!n||t!=d.Math.pow(2,s))&&++s,s}return yPt(Vc(t))}function rTn(t){var n,s,u,f,g,_,S;g=new vm;for(s=new me(t);s.a2&&S.e.b+S.j.b<=2)f=S,u=_;g.a.zc(f,g),f.q=u}return g}function nTn(t,n,s){s.Ug("Eades radial",1),s.dh(n,$Z),t.d=b(It(n,(d4(),yk)),27),t.c=rt(ht(It(n,(s_(),Kee)))),t.e=nfe(b(It(n,Mz),300)),t.a=Nyn(b(It(n,xHe),434)),t.b=Z2n(b(It(n,EHe),354)),M2n(t),s.dh(n,$Z)}function iTn(t,n){if(n.Ug("Target Width Setter",1),kg(t,(Lg(),dye)))Ta(t,(w1(),Vx),ht(It(t,dye)));else throw ve(new py("A target width has to be set if the TargetWidthWidthApproximator should be used."));n.Vg()}function sGt(t,n){var s,u,f;return u=new Ib(t),nc(u,n),At(u,(Pt(),dee),n),At(u,(Qt(),ms),(Ao(),xu)),At(u,Gm,(_1(),ote)),k2(u,(mn(),As)),s=new iu,Ec(s,u),Xs(s,(Ht(),bn)),f=new iu,Ec(f,u),Xs(f,Cn),u}function oGt(t){switch(t.g){case 0:return new Yle((zw(),Az));case 1:return new TSt;case 2:return new xSt;default:throw ve(new dn("No implementation is available for the crossing minimizer "+(t.f!=null?t.f:""+t.g)))}}function lGt(t,n){var s,u,f,g,_;t.c[n.p]=!0,Gt(t.a,n);for(_=new me(n.j);_.a<_.c.c.length;){g=b(ge(_),12);for(u=new Cg(g.b);_c(u.a)||_c(u.b);)s=b(_c(u.a)?ge(u.a):ge(u.b),18),f=ivn(g,s).i,t.c[f.p]||lGt(t,f)}}function cGt(t){var n,s,u,f,g,_,S;_=0;for(s=new kn((!t.a&&(t.a=new kt(ra,t,10,11)),t.a));s.e!=s.i.gc();)n=b(Dn(s),27),S=n.g,f=n.f,u=d.Math.sqrt(S*S+f*f),_=d.Math.max(u,_),g=cGt(n),_=d.Math.max(g,_);return _}function nd(){nd=z,R_=new GM("OUTSIDE",0),Gb=new GM("INSIDE",1),Jz=new GM("NEXT_TO_PORT_IF_POSSIBLE",2),Y9=new GM("ALWAYS_SAME_SIDE",3),q9=new GM("ALWAYS_OTHER_SAME_SIDE",4),W5=new GM("SPACE_EFFICIENT",5)}function uGt(t,n,s){var u,f,g,_,S,C;return u=opn(t,(f=(Bv(),g=new mM,g),!!s&&DQ(f,s),f),n),G6(u,yb(n,Fm)),SQ(n,u),yxn(n,u),ZMe(n,u),y=null,_=n,S=Fw(_,"ports"),C=new W5t(t,u),rCn(C.a,C.b,S),bde(t,n,u),u1n(t,n,u),u}function aTn(t){var n,s;if(s=-t.a,n=Te(we(Qf,1),Om,28,15,[43,48,48,58,48,48]),s<0)n[0]=45,s=-s;return n[1]=n[1]+((s/60|0)/10|0)&Ds,n[2]=n[2]+(s/60|0)%10&Ds,n[4]=n[4]+(s%60/10|0)&Ds,n[5]=n[5]+s%10&Ds,yp(n,0,n.length)}function sTn(t){var n=Te(we(Qf,1),Om,28,15,[71,77,84,45,48,48,58,48,48]);if(t<=0)n[3]=43,t=-t;return n[4]=n[4]+((t/60|0)/10|0)&Ds,n[5]=n[5]+(t/60|0)%10&Ds,n[7]=n[7]+(t%60/10|0)&Ds,n[8]=n[8]+t%10&Ds,yp(n,0,n.length)}function oTn(t){var n,s,u,f,g;if(t==null)return mh;g=new j2(ll,"[","]");for(s=t,u=0,f=s.length;u=g)_.$b();else{f=_.Kc();for(u=0;u0?U5e():_<0&&dGt(t,n,-_),!0;else return!1}function Q8(t){var n,s,u,f,g,_,S;if(S=0,t.b==0){_=jFt(t,!0),n=0;for(u=_,f=0,g=u.length;f0)S+=s,++n;n>1&&(S+=t.c*(n-1))}else S=h3t(sde(UT(pa(K6e(t.a),new Yt),new Bn)));return S>0?S+t.n.d+t.n.a:0}function Z8(t){var n,s,u,f,g,_,S;if(S=0,t.b==0)S=h3t(sde(UT(pa(K6e(t.a),new Et),new Xn)));else{_=KFt(t,!0),n=0;for(u=_,f=0,g=u.length;f0)S+=s,++n;n>1&&(S+=t.c*(n-1))}return S>0?S+t.n.b+t.n.c:0}function hTn(t){var n,s;if(t.c.length!=2)throw ve(new zl("Order only allowed for two paths."));if(n=(qr(0,t.c.length),b(t.c[0],18)),s=(qr(1,t.c.length),b(t.c[1],18)),n.d.i!=s.c.i)t.c.length=0,rn(t.c,s),rn(t.c,n)}function fGt(t,n,s){var u;s4(s,n.g,n.f),kf(s,n.i,n.j);for(u=0;u<(!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i;u++)fGt(t,b(Ye((!n.a&&(n.a=new kt(ra,n,10,11)),n.a),u),27),b(Ye((!s.a&&(s.a=new kt(ra,s,10,11)),s.a),u),27))}function dTn(t,n){var s,u,f,g;g=b(Nl(t.b,n),127),s=g.a;for(f=b(b(_a(t.r,n),21),87).Kc();f.Ob();)u=b(f.Pb(),117),!!u.c&&(s.a=d.Math.max(s.a,C6e(u.c)));if(s.a>0)switch(n.g){case 2:g.n.c=t.s;break;case 4:g.n.b=t.s}}function fTn(t,n){var s,u,f;if(s=b(ce(n,(c0(),R5)),17).a-b(ce(t,R5),17).a,s==0)return u=no(Uo(b(ce(t,(Xv(),lz)),8)),b(ce(t,ZD),8)),f=no(Uo(b(ce(n,lz),8)),b(ce(n,ZD),8)),Ra(u.a*u.b,f.a*f.b);return s}function pTn(t,n){var s,u,f;if(s=b(ce(n,(Oc(),Hee)),17).a-b(ce(t,Hee),17).a,s==0)return u=no(Uo(b(ce(t,(Ma(),Oz)),8)),b(ce(t,CN),8)),f=no(Uo(b(ce(n,Oz),8)),b(ce(n,CN),8)),Ra(u.a*u.b,f.a*f.b);return s}function pGt(t){var n,s;if(s=new Dv,s.a+="e_",n=o1n(t),n!=null&&(s.a+=""+n),!!t.c&&!!t.d)Bi((s.a+=" ",s),yQ(t.c)),Bi(pu((s.a+="[",s),t.c.i),"]"),Bi((s.a+=L0e,s),yQ(t.d)),Bi(pu((s.a+="[",s),t.d.i),"]");return s.a}function gGt(t){switch(t.g){case 0:return new MSt;case 1:return new DSt;case 2:return new NSt;case 3:return new OSt;default:throw ve(new dn("No implementation is available for the layout phase "+(t.f!=null?t.f:""+t.g)))}}function i8e(t,n,s,u,f){var g=0;switch(f.g){case 1:g=d.Math.max(0,n.b+t.b-(s.b+u));break;case 3:g=d.Math.max(0,-t.b-u);break;case 2:g=d.Math.max(0,-t.a-u);break;case 4:g=d.Math.max(0,n.a+t.a-(s.a+u))}return g}function gTn(t,n,s){var u,f,g,_,S;if(s){f=s.a.length,u=new P2(f);for(S=(u.b-u.a)*u.c<0?($v(),D_):new zv(u);S.Ob();)_=b(S.Pb(),17),g=k6(s,_.a),JBe in g.a||Wge in g.a?Rkn(t,g,n):jIn(t,g,n),Wan(b(An(t.b,cO(g)),74))}}function a8e(t){var n,s;switch(t.b){case-1:return!0;case 0:if(s=t.t,s>1||s==-1)return t.b=-1,!0;else if(n=vp(t),!!n&&(_l(),n.lk()==PKt))return t.b=-1,!0;else return t.b=1,!1;default:case 1:return!1}}function s8e(t,n){var s,u,f,g;if(na(t),t.c!=0||t.a!=123)throw ve(new Ti(Ai((yi(),iKt))));if(g=n==112,u=t.d,s=c6(t.i,125,u),s<0)throw ve(new Ti(Ai((yi(),aKt))));return f=Of(t.i,u,s),t.d=s+1,$8t(f,g,(t.e&512)==512)}function mGt(t){var n,s,u,f,g,_,S;if(u=t.a.c.length,u>0){_=t.c.d,S=t.d.d,f=_m(no(new Dt(S.a,S.b),_),1/(u+1)),g=new Dt(_.a,_.b);for(s=new me(t.a);s.a=0&&u=0?t.Lh(s,!0,!0):Jw(t,f,!0),160)),b(u,220).Wl(n);else throw ve(new dn(f_+n.xe()+Fge))}function vTn(){lRe();var t;if(Tor)return b(vO((Fv(),Np),Sp),2038);return qi(pE,new UEt),pRn(),t=b(He(mu((Fv(),Np),Sp),560)?mu(Np,Sp):new LNt,560),Tor=!0,g6n(t),w6n(t),Ki((oRe(),fWe),t,new rEt),Vl(Np,Sp,t),t}function _Tn(t,n){var s,u,f,g;if(t.j=-1,Ad(t.e))if(s=t.i,g=t.i!=0,eU(t,n),u=new wb(t.e,3,t.c,null,n,s,g),f=n.zl(t.e,t.c,null),f=X$t(t,n,f),!f)ha(t.e,u);else f.nj(u),f.oj();else eU(t,n),f=n.zl(t.e,t.c,null),!!f&&f.oj()}function AQ(t,n){var s,u,f;if(f=0,u=n[0],u>=t.length)return-1;s=(fn(u,t.length),t.charCodeAt(u));while(s>=48&&s<=57){if(f=f*10+(s-48),++u,u>=t.length)break;s=(fn(u,t.length),t.charCodeAt(u))}return u>n[0]?n[0]=u:f=-1,f}function ETn(t){var n,s,u,f,g;if(f=b(t.a,17).a,g=b(t.b,17).a,s=f,u=g,n=d.Math.max(d.Math.abs(f),d.Math.abs(g)),f<=0&&f==g)s=0,u=g-1;else if(f==-n&&g!=n)s=g,u=f,g>=0&&++s;else s=-g,u=f;return new js($t(s),$t(u))}function wTn(t,n,s,u){var f,g,_,S,C,O;for(f=0;f=0&&O>=0&&C=t.i)throw ve(new Gl(Kge+n+hE+t.i));if(s>=t.i)throw ve(new Gl(Xge+s+hE+t.i));if(u=t.g[s],n!=s)n>16),n=u>>16&16,s=16-n,t=t>>n,u=t-256,n=u>>16&8,s+=n,t<<=n,u=t-gx,n=u>>16&4,s+=n,t<<=n,u=t-Im,n=u>>16&2,s+=n,t<<=n,u=t>>14,n=u&~(u>>1),s+2-n}function TTn(t){zA();var n,s,u,f;xJ=new Ut,jme=new Zn,Wme=new Ut,n=(!t.a&&(t.a=new kt(ra,t,10,11)),t.a),pIn(n);for(f=new kn(n);f.e!=f.i.gc();)if(u=b(Dn(f),27),rc(xJ,u,0)==-1)s=new Ut,Gt(Wme,s),_Ft(u,s);return Wme}function xTn(t,n,s){var u,f,g,_;if(t.a=s.b.d,He(n,326))f=L4(b(n,74),!1,!1),g=XU(f),u=new ixt(t),Vo(g,u),uG(g,f),n.of((Hi(),OS))!=null&&Vo(b(n.of(OS),75),u);else _=b(n,422),_.rh(_.nh()+t.a.a),_.sh(_.oh()+t.a.b)}function CTn(t,n){var s,u,f;f=new Ut;for(u=ti(n.a,0);u.b!=u.d.c;)s=b(Jn(u),65),s.c.g==t.g&&nt(ce(s.b,(Oc(),Vm)))!==nt(ce(s.c,Vm))&&!b4(new Pr(null,new Gr(f,16)),new OCt(s))&&rn(f.c,s);return ks(f,new ovt),f}function yGt(t,n,s){var u,f,g,_;if(He(n,153)&&He(s,153))return g=b(n,153),_=b(s,153),t.a[g.a][_.a]+t.a[_.a][g.a];else if(He(n,250)&&He(s,250)){if(u=b(n,250),f=b(s,250),u.a==f.a)return b(ce(f.a,(c0(),R5)),17).a}return 0}function vGt(t,n){var s,u,f,g,_,S,C,O;O=rt(ht(ce(n,(Qt(),f9)))),C=t[0].n.a+t[0].o.a+t[0].d.c+O;for(S=1;S=0)return s;return S=u8(no(new Dt(_.c+_.b/2,_.d+_.a/2),new Dt(g.c+g.b/2,g.d+g.a/2))),-(qVt(g,_)-1)*S}function ATn(t,n,s){var u;ys(new Pr(null,(!s.a&&(s.a=new kt(Ha,s,6,6)),new Gr(s.a,16))),new M5t(t,n)),ys(new Pr(null,(!s.n&&(s.n=new kt(Dl,s,1,7)),new Gr(s.n,16))),new D5t(t,n)),u=b(It(s,(Hi(),OS)),75),!!u&&cLe(u,t,n)}function Jw(t,n,s){var u,f,g;if(g=B4((Ph(),Yo),t.Dh(),n),g)return _l(),b(g,69).xk()||(g=HA(Hl(Yo,g))),f=(u=t.Ih(g),b(u>=0?t.Lh(u,!0,!0):Jw(t,g,!0),160)),b(f,220).Sl(n,s);else throw ve(new dn(f_+n.xe()+Fge))}function o8e(t,n,s,u){var f,g,_,S,C;if(f=t.d[n],f){if(g=f.g,C=f.i,u!=null){for(S=0;S=s){if(u=n,O=(C.c+C.a)/2,_=O-s,C.c<=O-s)f=new mue(C.c,_),xw(t,u++,f);if(S=O+s,S<=C.a)g=new mue(S,C.a),zT(u,t.c.length),OM(t.c,u,g)}}function wGt(t,n,s){var u,f,g,_,S,C;if(!n.dc()){f=new Va;for(C=n.Kc();C.Ob();){S=b(C.Pb(),40),Ki(t.a,$t(S.g),$t(s));for(_=(u=ti(new db(S).a.d,0),new jC(u));XF(_.a);)g=b(Jn(_.a),65).c,cs(f,g,f.c.b,f.c)}wGt(t,f,s+1)}}function l8e(t){var n;if(!t.c&&t.g==null)t.d=t.bj(t.f),ii(t,t.d),n=t.d;else if(t.g==null)return!0;else if(t.i==0)return!1;else n=b(t.g[t.i-1],51);if(n==t.b&&null.Vm>=null.Um())return OQ(t),l8e(t);else return n.Ob()}function SGt(t){if(this.a=t,t.c.i.k==(mn(),As))this.c=t.c,this.d=b(ce(t.c.i,(Pt(),Pc)),64);else if(t.d.i.k==As)this.c=t.d,this.d=b(ce(t.d.i,(Pt(),Pc)),64);else throw ve(new dn("Edge "+t+" is not an external edge."))}function TGt(t,n){var s,u,f;if(f=t.b,t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,f,t.b)),!n)zu(t,null),Khe(t,0),Qhe(t,null);else if(n!=t)zu(t,n.zb),Khe(t,n.d),s=(u=n.c,u==null?n.zb:u),Qhe(t,s==null||Br(s,n.zb)?null:s)}function xGt(t,n){var s;this.e=(Rw(),mi(t),Rw(),w7e(t)),this.c=(mi(n),w7e(n)),hIe(this.e.Rd().dc()==this.c.Rd().dc()),this.d=UBt(this.e),this.b=UBt(this.c),s=M2(ao,[Bt,en],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=s,nmn(this)}function CGt(t){var n=(!Sme&&(Sme=CIn()),Sme),s=t.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(u){return Idn(u,n)});return'"'+s+'"'}function c8e(t,n,s,u,f,g){var _,S,C,O,M;if(f==0)return;if(nt(t)===nt(s))t=t.slice(n,n+f),n=0;C=s;for(S=n,O=n+f;S=_)throw ve(new PT(n,_));if(f=s[n],_==1)u=null;else u=mt(eve,tme,424,_-1,0,1),au(s,0,u,0,n),g=_-n-1,g>0&&au(s,n+1,u,n,g);return uO(t,u),KUt(t,n,f),f}function AGt(t){var n,s;if(t.f){while(t.n0?g=t5(s):g=DU(t5(s));Ta(n,vN,g)}function DTn(t,n){var s;n.Ug("Partition preprocessing",1),s=b(uc(pa(wc(pa(new Pr(null,new Gr(t.a,16)),new c1t),new u1t),new h1t),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15),ys(s.Oc(),new d1t),n.Vg()}function PTn(t,n){var s,u,f,g,_;_=t.j,n.a!=n.b&&ks(_,new zbt),f=_.c.length/2|0;for(u=0;u0&&oG(t,s,n),g;else if(u.a!=null)return oG(t,n,s),-1;else if(f.a!=null)return oG(t,s,n),1;return 0}function FTn(t,n){var s,u,f,g,_;f=n.b.b,t.a=mt(Yf,mx,15,f,0,1),t.b=mt(wd,A1,28,f,16,1);for(_=ti(n.b,0);_.b!=_.d.c;)g=b(Jn(_),40),t.a[g.g]=new Va;for(u=ti(n.a,0);u.b!=u.d.c;)s=b(Jn(u),65),t.a[s.b.g].Fc(s),t.a[s.c.g].Fc(s)}function NGt(t,n){var s,u,f,g;if(t.Pj())if(s=t.Ej(),g=t.Qj(),++t.j,t.qj(s,t.Zi(s,n)),u=t.Ij(3,null,n,s,g),t.Mj())if(f=t.Nj(n,null),!f)t.Jj(u);else f.nj(u),f.oj();else t.Jj(u);else if(wNt(t,n),t.Mj())f=t.Nj(n,null),!!f&&f.oj()}function u8e(t,n,s){var u,f,g;if(t.Pj())if(g=t.Qj(),OU(t,n,s),u=t.Ij(3,null,s,n,g),t.Mj())if(f=t.Nj(s,null),t.Tj()&&(f=t.Uj(s,f)),!f)t.Jj(u);else f.nj(u),f.oj();else t.Jj(u);else if(OU(t,n,s),t.Mj())f=t.Nj(s,null),!!f&&f.oj()}function RQ(t,n){var s,u,f,g,_;_=nh(t.e.Dh(),n),f=new IW,s=b(t.g,124);for(g=t.i;--g>=0;)u=s[g],_.am(u.Lk())&&ii(f,u);!kqt(t,f)&&Ad(t.e)&&XI(t,n.Jk()?Wv(t,6,n,(Hr(),Jo),null,-1,!1):Wv(t,n.tk()?2:1,n,null,null,-1,!1))}function $Tn(t,n){var s,u,f,g,_;if(t.a==(mO(),r9))return!0;if(g=n.a.c,s=n.a.c+n.a.b,n.j){if(u=n.A,_=u.c.c.a-u.o.a/2,f=g-(u.n.a+u.o.a),f>_)return!1}if(n.q){if(u=n.C,_=u.c.c.a-u.o.a/2,f=u.n.a-s,f>_)return!1}return!0}function LGt(t){uhe();var n,s,u,f,g,_,S;s=new Ty;for(f=new me(t.e.b);f.a1?t.e*=rt(t.a):t.f/=rt(t.a),obn(t),fvn(t),ukn(t),At(t.b,(z8(),TJ),t.g)}function BGt(t,n,s){var u,f,g,_,S,C;if(u=0,C=s,!n)u=s*(t.c.length-1),C*=-1;for(g=new me(t);g.a=0?t.Ah(null):t.Ph().Th(t,-1-n,null,null)),t.Bh(b(f,54),s),!!u&&u.oj(),t.vh()&&t.wh()&&s>-1&&ha(t,new go(t,9,s,g,f)),f}}return g}function f8e(t,n){var s,u,f,g,_;g=t.b.Ce(n),u=(s=t.a.get(g),s==null?mt(ao,en,1,0,5,1):s);for(_=0;_>5,f>=t.d)return t.e<0;if(s=t.a[f],n=1<<(n&31),t.e<0)if(u=Q9t(t),f>16)),15).dd(g),S0)!(pb(t.a.c)&&n.n.d)&&!(a4(t.a.c)&&n.n.b)&&(n.g.d+=d.Math.max(0,u/2-0.5)),!(pb(t.a.c)&&n.n.a)&&!(a4(t.a.c)&&n.n.c)&&(n.g.a-=u-1)}function YGt(t){var n,s,u,f,g;if(f=new Ut,g=GVt(t,f),n=b(ce(t,(Pt(),id)),10),n)for(u=new me(n.j);u.a>n,g=t.m>>n|s<<22-n,f=t.l>>n|t.m<<22-n;else if(n<44)_=u?Mb:0,g=s>>n-22,f=t.m>>n-22|s<<44-n;else _=u?Mb:0,g=u?yd:0,f=s>>n-44;return Qu(f&yd,g&yd,_&Mb)}function Hfe(t){var n,s,u,f,g,_;this.c=new Ut,this.d=t,u=Wa,f=Wa,n=Gs,s=Gs;for(_=ti(t,0);_.b!=_.d.c;)g=b(Jn(_),8),u=d.Math.min(u,g.a),f=d.Math.min(f,g.b),n=d.Math.max(n,g.a),s=d.Math.max(s,g.b);this.a=new If(u,f,n-u,s-f)}function jGt(t,n){var s,u,f,g,_,S;for(g=new me(t.b);g.a0&&He(n,44)){if(t.a._j(),O=b(n,44),C=O.ld(),g=C==null?0:Da(C),_=FIe(t.a,g),s=t.a.d[_],s){u=b(s.g,379),M=s.i;for(S=0;S=2){s=f.Kc(),n=ht(s.Pb());while(s.Ob())g=n,n=ht(s.Pb()),u=d.Math.min(u,(vn(n),n)-(vn(g),g))}return u}function oxn(t,n){var s,u,f;f=new Ut;for(u=ti(n.a,0);u.b!=u.d.c;)s=b(Jn(u),65),s.b.g==t.g&&!Br(s.b.c,BZ)&&nt(ce(s.b,(Oc(),Vm)))!==nt(ce(s.c,Vm))&&!b4(new Pr(null,new Gr(f,16)),new NCt(s))&&rn(f.c,s);return ks(f,new hvt),f}function lxn(t,n){var s,u,f;if(nt(n)===nt(mi(t)))return!0;if(!He(n,15))return!1;if(u=b(n,15),f=t.gc(),f!=u.gc())return!1;if(He(u,59)){for(s=0;s0&&(f=s);for(_=new me(t.f.e);_.a<_.c.c.length;){if(g=b(ge(_),153),er(Jt(ce(g,(VU(),Q$e)))))continue;u=R3n(t,g),ua(V0(g.d),u)}s=zGt(t)}while(!ehn(t,n++,f,s))}function bxn(t,n){var s,u,f,g,_;g=t.g.a,_=t.g.b;for(u=new me(t.d);u.a0)n-=1,s-=1;else if(u>=0&&f<0)n+=1,s+=1;else if(u>0&&f>=0)n-=1,s+=1;else n+=1,s-=1;return new js($t(n),$t(s))}function wxn(t,n){if(t.cn.c)return 1;else if(t.bn.b)return 1;else if(t.a!=n.a)return Da(t.a)-Da(n.a);else if(t.d==(b8(),E9)&&n.d==_9)return-1;else if(t.d==_9&&n.d==E9)return 1;return 0}function tzt(t,n){var s,u,f,g,_;if(g=n.a,g.c.i==n.b?_=g.d:_=g.c,g.c.i==n.b?u=g.c:u=g.d,f=Hyn(t.a,_,u),f>0&&f0;else if(f<0&&-f0;return!1}function Sxn(t,n,s,u){var f,g,_,S,C,O,M,U;f=(n-t.d)/t.c.c.length,g=0,t.a+=s,t.d=n;for(U=new me(t.c);U.a>24;return _}function xxn(t){if(t.ze()){var n=t.c;n.Ae()?t.o="["+n.n:!n.ze()?t.o="[L"+n.xe()+";":t.o="["+n.xe(),t.b=n.we()+"[]",t.k=n.ye()+"[]";return}var{j:s,d:u}=t;u=u.split("/"),t.o=jde(".",[s,jde("$",u)]),t.b=jde(".",[s,jde(".",u)]),t.k=u[u.length-1]}function Cxn(t,n){var s,u,f,g,_;_=null;for(g=new me(t.e.a);g.a=0;n-=2)for(s=0;s<=n;s+=2)if(t.b[s]>t.b[s+2]||t.b[s]===t.b[s+2]&&t.b[s+1]>t.b[s+3])u=t.b[s+2],t.b[s+2]=t.b[s],t.b[s]=u,u=t.b[s+3],t.b[s+3]=t.b[s+1],t.b[s+1]=u;t.c=!0}function Rxn(t,n){var s,u,f,g,_,S,C,O,M;O=-1,M=0;for(_=t,S=0,C=_.length;S0&&++M;++O}return M}function o0(t){var n,s;if(s=new Vd(N2(t.Rm)),s.a+="@",Bi(s,(n=Da(t)>>>0,n.toString(16))),t.Vh()){if(s.a+=" (eProxyURI: ",pu(s,t._h()),t.Kh())s.a+=" eClass: ",pu(s,t.Kh());s.a+=")"}else if(t.Kh())s.a+=" (eClass: ",pu(s,t.Kh()),s.a+=")";return s.a}function tD(t){var n,s,u,f;if(t.e)throw ve(new zl((gb(Pme),f0e+Pme.k+p0e)));t.d==(Ms(),Hg)&&QQ(t,Kl);for(s=new me(t.a.a);s.a>24}return s}function Nxn(t,n,s){var u,f,g;if(f=b(Nl(t.i,n),314),!f)if(f=new GDt(t.d,n,s),FA(t.i,n,f),k7e(n))Pan(t.a,n.c,n.b,f);else switch(g=gSn(n),u=b(Nl(t.p,g),252),g.g){case 1:case 3:f.j=!0,jle(u,n.b,f);break;case 4:case 2:f.k=!0,jle(u,n.c,f)}return f}function Lxn(t,n){var s,u,f,g,_,S,C,O,M;C=f1(t.c-t.b&t.a.length-1),O=null,M=null;for(g=new d8(t);g.a!=g.b;){if(f=b(VX(g),10),s=(S=b(ce(f,(Pt(),tg)),12),!S?null:S.i),u=(_=b(ce(f,Cp),12),!_?null:_.i),O!=s||M!=u)FGt(C,n),O=s,M=u;rn(C.c,f)}FGt(C,n)}function Mxn(t,n,s,u){var f,g,_,S,C,O;if(S=new IW,C=nh(t.e.Dh(),n),f=b(t.g,124),_l(),b(n,69).xk())for(_=0;_=0)return f;else{g=1;for(S=new me(n.j);S.a=0)return f;else{g=1;for(S=new me(n.j);S.a0&&n.Ne((qr(f-1,t.c.length),b(t.c[f-1],10)),g)>0)Lf(t,f,(qr(f-1,t.c.length),b(t.c[f-1],10))),--f;qr(f,t.c.length),t.c[f]=g}s.a=new Zn,s.b=new Zn}function Dxn(t,n,s){var u,f,g,_,S,C,O,M;M=(u=b(n.e&&n.e(),9),new Rf(u,b(t0(u,u.length),9),0)),C=hx(s,"[\\[\\]\\s,]+");for(g=C,_=0,S=g.length;_=0){if(!n)n=new EM,u>0&&Ol(n,(Do(0,u,t.length),t.substr(0,u)));n.a+="\\",_6(n,s&Ds)}else!!n&&_6(n,s&Ds);return n?n.a:t}function Bxn(t){var n,s,u;for(s=new me(t.a.a.b);s.a0)!(pb(t.a.c)&&n.n.d)&&!(a4(t.a.c)&&n.n.b)&&(n.g.d-=d.Math.max(0,u/2-0.5)),!(pb(t.a.c)&&n.n.a)&&!(a4(t.a.c)&&n.n.c)&&(n.g.a+=d.Math.max(0,u-1))}function uzt(t,n,s){var u,f;if((t.c-t.b&t.a.length-1)==2)if(n==(Ht(),pn)||n==Cn)gX(b(R8(t),15),(Qd(),D1)),gX(b(R8(t),15),C_);else gX(b(R8(t),15),(Qd(),C_)),gX(b(R8(t),15),D1);else for(f=new d8(t);f.a!=f.b;)u=b(VX(f),15),gX(u,s)}function Fxn(t,n){var s,u,f,g,_,S,C;f=g6(new o5e(t)),S=new Mo(f,f.c.length),g=g6(new o5e(n)),C=new Mo(g,g.c.length),_=null;while(S.b>0&&C.b>0)if(s=(Pn(S.b>0),b(S.a.Xb(S.c=--S.b),27)),u=(Pn(C.b>0),b(C.a.Xb(C.c=--C.b),27)),s==u)_=s;else break;return _}function hzt(t,n,s){var u,f,g,_;if(d7t(t,n)>d7t(t,s))u=Tc(s,(Ht(),Cn)),t.d=u.dc()?0:wue(b(u.Xb(0),12)),_=Tc(n,bn),t.b=_.dc()?0:wue(b(_.Xb(0),12));else f=Tc(s,(Ht(),bn)),t.d=f.dc()?0:wue(b(f.Xb(0),12)),g=Tc(n,Cn),t.b=g.dc()?0:wue(b(g.Xb(0),12))}function dzt(t,n){var s,u,f,g;s=t.o.a;for(g=b(b(_a(t.r,n),21),87).Kc();g.Ob();)f=b(g.Pb(),117),f.e.a=s*rt(ht(f.b.of(EJ))),f.e.b=(u=f.b,u.pf((Hi(),Ed))?u.ag()==(Ht(),pn)?-u.Mf().b-rt(ht(u.of(Ed))):rt(ht(u.of(Ed))):u.ag()==(Ht(),pn)?-u.Mf().b:0)}function $xn(t,n){var s,u,f,g;n.Ug("Self-Loop pre-processing",1);for(u=new me(t.a);u.at.c)break;else if(f.a>=t.s)g<0&&(g=_),S=_;if(C=(t.s+t.c)/2,g>=0)u=kkn(t,n,g,S),C=xin((qr(u,n.c.length),b(n.c[u],339))),NTn(n,u,s);return C}function fi(t,n,s){var u,f,g,_,S,C,O;_=(g=new kAe,g),tLe(_,(vn(n),n)),O=(!_.b&&(_.b=new Id((Vr(),yl),Bc,_)),_.b);for(C=1;C0&&S5n(this,f)}function T8e(t,n,s,u,f,g){var _,S,C;if(!f[n.a]){f[n.a]=!0,_=u,!_&&(_=new JK),Gt(_.e,n);for(C=g[n.a].Kc();C.Ob();){if(S=b(C.Pb(),290),S.d==s||S.c==s)continue;S.c!=n&&T8e(t,S.c,n,_,f,g),S.d!=n&&T8e(t,S.d,n,_,f,g),Gt(_.c,S),Us(_.d,S.b)}return _}return null}function zxn(t){var n,s,u,f,g,_,S;n=0;for(f=new me(t.e);f.a=2}function Vxn(t,n,s,u,f){var g,_,S,C,O,M;g=t.c.d.j,_=b(Gf(s,0),8);for(M=1;M1)return!1;if(n=Ua(m0,Te(we(Al,1),Rt,95,0,[Ub,b0])),vU(UK(n,t))>1)return!1;if(u=Ua(v0,Te(we(Al,1),Rt,95,0,[P1,Ap])),vU(UK(u,t))>1)return!1;return!0}function x8e(t,n,s){var u,f,g;for(g=new me(t.t);g.a0)u.b.n-=u.c,u.b.n<=0&&u.b.u>0&&Oi(n,u.b);for(f=new me(t.i);f.a0)u.a.u-=u.c,u.a.u<=0&&u.a.n>0&&Oi(s,u.a)}function OQ(t){var n,s,u,f,g;if(t.g==null){if(t.d=t.bj(t.f),ii(t,t.d),t.c)return g=t.f,g}if(n=b(t.g[t.i-1],51),f=n.Pb(),t.e=n,s=t.bj(f),s.Ob())t.d=s,ii(t,s);else{t.d=null;while(!n.Ob()){if(ls(t.g,--t.i,null),t.i==0)break;u=b(t.g[t.i-1],51),n=u}}return f}function qxn(t,n){var s,u,f,g,_,S;if(u=n,f=u.Lk(),Nb(t.e,f)){if(f.Si()&&jK(t,f,u.md()))return!1}else{S=nh(t.e.Dh(),f),s=b(t.g,124);for(g=0;g1||s>1)return 2;if(n+s==1)return 2;return 0}function md(t,n){var s,u,f,g,_,S;if(g=t.a*c0e+t.b*1502,S=t.b*c0e+11,s=d.Math.floor(S*kG),g+=s,S-=s*KDe,g%=KDe,t.a=g,t.b=S,n<=24)return d.Math.floor(t.a*a$e[n]);else return f=t.a*(1<=2147483648&&(u-=4294967296),u}function bzt(t,n,s){var u,f,g,_,S,C,O;g=new Ut,O=new Va,_=new Va,fAn(t,O,_,n),q5n(t,O,_,n,s);for(C=new me(t);C.au.b.g&&rn(g.c,u)}return g}function Qxn(t,n,s){var u,f,g,_,S,C;S=t.c;for(_=(!s.q?(Hr(),Hr(),I1):s.q).vc().Kc();_.Ob();)if(g=b(_.Pb(),44),u=!r6(pa(new Pr(null,new Gr(S,16)),new WI(new k5t(n,g)))).Bd((L2(),A5)),u){if(C=g.md(),He(C,4))f=I7e(C),f!=null&&(C=f);n.qf(b(g.ld(),149),C)}}function Zxn(t,n,s){var u,f;if(G$(t.b),H0(t.b,(MU(),ete),(CM(),$z)),H0(t.b,tte,n.g),H0(t.b,rte,n.a),t.a=fG(t.b,n),s.Ug("Compaction by shrinking a tree",t.a.c.length),n.i.c.length>1)for(f=new me(t.a);f.a=0?t.Lh(u,!0,!0):Jw(t,g,!0),160)),b(f,220).Xl(n,s)}else throw ve(new dn(f_+n.xe()+MD))}function NQ(t,n){var s,u,f,g,_;if(!n)return null;else{g=He(t.Cb,90)||He(t.Cb,102),_=!g&&He(t.Cb,331);for(u=new kn((!n.a&&(n.a=new r8(n,Rl,n)),n.a));u.e!=u.i.gc();)if(s=b(Dn(u),89),f=qQ(s),g?He(f,90):_?He(f,156):!!f)return f;return g?(Vr(),Lp):(Vr(),Wg)}}function Jxn(t,n){var s,u,f,g;n.Ug("Resize child graph to fit parent.",1);for(u=new me(t.b);u.a=2*n&&Gt(s,new mue(_[u-1]+n,_[u]-n));return s}function rCn(t,n,s){var u,f,g,_,S,C,O,M;if(s){g=s.a.length,u=new P2(g);for(S=(u.b-u.a)*u.c<0?($v(),D_):new zv(u);S.Ob();)_=b(S.Pb(),17),f=k6(s,_.a),!!f&&(E=null,C=Npn(t,(O=(Bv(),M=new C5e,M),!!n&&A8e(O,n),O),f),G6(C,yb(f,Fm)),SQ(f,C),ZMe(f,C),bde(t,f,C))}}function LQ(t){var n,s,u,f,g,_;if(!t.j){if(_=new V2t,n=J9,g=n.a.zc(t,n),g==null){for(u=new kn(tc(t));u.e!=u.i.gc();)s=b(Dn(u),29),f=LQ(s),ps(_,f),ii(_,s);n.a.Bc(t)!=null}QT(_),t.j=new n4((b(Ye(Ct((Hv(),an).o),11),19),_.i),_.g),fd(t).b&=-33}return t.j}function nCn(t){var n,s,u,f;if(t==null)return null;else{if(u=vu(t,!0),f=QG.length,Br(u.substr(u.length-f,f),QG)){if(s=u.length,s==4){if(n=(fn(0,u.length),u.charCodeAt(0)),n==43)return LWe;else if(n==45)return qor}else if(s==3)return LWe}return new g5e(u)}}function iCn(t){var n,s,u;if(s=t.l,(s&s-1)!=0)return-1;if(u=t.m,(u&u-1)!=0)return-1;if(n=t.h,(n&n-1)!=0)return-1;if(n==0&&u==0&&s==0)return-1;if(n==0&&u==0&&s!=0)return qNe(s);if(n==0&&u!=0&&s==0)return qNe(u)+22;if(n!=0&&u==0&&s==0)return qNe(n)+44;return-1}function N4(t,n){var s,u,f,g,_;f=n.a&t.f,g=null;for(u=t.b[f];;u=u.b){if(u==n){!g?t.b[f]=n.b:g.b=n.b;break}g=u}_=n.f&t.f,g=null;for(s=t.c[_];;s=s.d){if(s==n){!g?t.c[_]=n.d:g.d=n.d;break}g=s}!n.e?t.a=n.c:n.e.c=n.c,!n.c?t.e=n.e:n.c.e=n.e,--t.i,++t.g}function aCn(t,n){var s;if(n.d?n.d.b=n.b:t.a=n.b,n.b?n.b.d=n.d:t.e=n.d,!n.e&&!n.c)s=b(gp(b(WA(t.b,n.a),260)),260),s.a=0,++t.c;else s=b(gp(b(An(t.b,n.a),260)),260),--s.a,!n.e?s.b=b(gp(n.c),511):n.e.c=n.c,!n.c?s.c=b(gp(n.e),511):n.c.e=n.e;--t.d}function sCn(t){var n,s,u,f,g,_,S,C,O,M;s=t.o,n=t.p,_=sa,f=Qo,S=sa,g=Qo;for(O=0;O0),g.a.Xb(g.c=--g.b),DT(g,f),Pn(g.b3&&v1(t,0,n-3)}function lCn(t){var n,s,u,f;if(nt(ce(t,(Qt(),Mx)))===nt((Cb(),Zy)))return!t.e&&nt(ce(t,Ez))!==nt((W6(),gz));return u=b(ce(t,J1e),299),f=er(Jt(ce(t,ebe)))||nt(ce(t,u9))===nt((S8(),pz)),n=b(ce(t,dze),17).a,s=t.a.c.length,!f&&u!=(W6(),gz)&&(n==0||n>s)}function cCn(t){var n,s;s=0;for(;s0)break;if(s>0&&s0)break;if(n>0&&s>16!=6&&!!n){if(dO(t,n))throw ve(new dn(DD+MGt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?Q7e(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=i5(n,t,6,u)),u=DIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,6,n,n))}function MQ(t,n){var s,u;if(n!=t.Cb||t.Db>>16!=3&&!!n){if(dO(t,n))throw ve(new dn(DD+EHt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?tMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=i5(n,t,12,u)),u=PIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,n,n))}function A8e(t,n){var s,u;if(n!=t.Cb||t.Db>>16!=9&&!!n){if(dO(t,n))throw ve(new dn(DD+vVt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?J7e(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=i5(n,t,9,u)),u=BIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,9,n,n))}function _O(t){var n,s,u,f,g;if(u=vp(t),g=t.j,g==null&&!!u)return t.Jk()?null:u.ik();else if(He(u,156)){if(s=u.jk(),s){if(f=s.wi(),f!=t.i){if(n=b(u,156),n.nk())try{t.g=f.ti(n,g)}catch(_){if(_=Qa(_),He(_,82))t.g=null;else throw ve(_)}t.i=f}}return t.g}return null}function Ezt(t){var n=new Ut;return Gt(n,new SA(new Dt(t.c,t.d),new Dt(t.c+t.b,t.d))),Gt(n,new SA(new Dt(t.c,t.d),new Dt(t.c,t.d+t.a))),Gt(n,new SA(new Dt(t.c+t.b,t.d+t.a),new Dt(t.c+t.b,t.d))),Gt(n,new SA(new Dt(t.c+t.b,t.d+t.a),new Dt(t.c,t.d+t.a))),n}function uCn(t){var n,s,u;if(t==null)return mh;try{return hc(t)}catch(f){if(f=Qa(f),He(f,103))return n=f,u=N2(Ld(t))+"@"+(s=(fb(),R7e(t))>>>0,s.toString(16)),Tvn(c1n(),(s6(),"Exception during lenientFormat for "+u),n),"<"+u+" threw "+N2(n.Rm)+">";else throw ve(f)}}function hCn(t,n,s){var u,f,g;for(g=n.a.ec().Kc();g.Ob();)f=b(g.Pb(),74),u=b(An(t.b,f),272),!u&&(Ya(E1(f))==Ya(n_(f))?ZCn(t,f,s):E1(f)==Ya(n_(f))?An(t.c,f)==null&&An(t.b,n_(f))!=null&&JHt(t,f,s,!1):An(t.d,f)==null&&An(t.b,E1(f))!=null&&JHt(t,f,s,!0))}function dCn(t,n){var s,u,f,g,_,S,C;for(f=t.Kc();f.Ob();){u=b(f.Pb(),10),S=new iu,Ec(S,u),Xs(S,(Ht(),Cn)),At(S,(Pt(),fee),(nn(),!0));for(_=n.Kc();_.Ob();)g=b(_.Pb(),10),C=new iu,Ec(C,g),Xs(C,bn),At(C,fee,!0),s=new Mw,At(s,fee,!0),tl(s,S),ko(s,C)}}function fCn(t,n,s,u){var f,g,_,S;if(f=aFt(t,n,s),g=aFt(t,s,n),_=b(An(t.c,n),118),S=b(An(t.c,s),118),f1){n=Ew((s=new O2,++t.b,s),t.d);for(S=ti(g,0);S.b!=S.d.c;)_=b(Jn(S),125),l0(Zp(Qp(Jp(Xp(new fp,1),0),n),_))}}function mCn(t,n,s){var u,f,g,_,S;s.Ug("Breaking Point Removing",1),t.a=b(ce(n,(Qt(),$b)),223);for(g=new me(n.b);g.a>16!=11&&!!n){if(dO(t,n))throw ve(new dn(DD+j8e(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?rMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=i5(n,t,10,u)),u=YIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,11,n,n))}function bCn(t){var n,s,u,f;for(u=new W2(new R2(t.b).a);u.b;)s=Hw(u),f=b(s.ld(),12),n=b(s.md(),10),At(n,(Pt(),Ea),f),At(f,id,n),At(f,yz,(nn(),!0)),Xs(f,b(ce(n,Pc),64)),ce(n,Pc),At(f.i,(Qt(),ms),(Ao(),DN)),b(ce(zo(f.i),Tu),21).Fc((Tl(),gN))}function yCn(t,n,s){var u,f,g,_,S,C;if(g=0,_=0,t.c)for(C=new me(t.d.i.j);C.ag.a)return-1;else if(f.aC){M=t.d,t.d=mt(iWe,gFe,66,2*C+4,0,1);for(g=0;g=9223372036854776000)return L6(),PFe;if(f=!1,t<0)f=!0,t=-t;if(u=0,t>=iE)u=Ks(t/iE),t-=u*iE;if(s=0,t>=m5)s=Ks(t/m5),t-=s*m5;return n=Ks(t),g=Qu(n,s,u),f&&yde(g),g}function RCn(t){var n,s,u,f,g;if(g=new Ut,Ju(t.b,new KTt(g)),t.b.c.length=0,g.c.length!=0){n=(qr(0,g.c.length),b(g.c[0],82));for(s=1,u=g.c.length;s=-n&&u==n)return new js($t(s-1),$t(u));return new js($t(s),$t(u-1))}function Tzt(){return il(),Te(we(G6n,1),Rt,81,0,[EUe,yUe,ek,d1e,UUe,BJ,WJ,Rx,FUe,RUe,PUe,Ax,$Ue,CUe,GUe,dUe,GJ,f1e,DJ,HJ,VUe,VJ,fUe,BUe,HUe,qJ,zUe,PJ,SUe,MUe,LUe,jJ,mUe,MJ,$J,gUe,iN,OUe,kUe,DUe,JD,vUe,bUe,NUe,AUe,UJ,YJ,pUe,zJ,IUe,FJ,TUe,wUe,hz,LJ,xUe,_Ue])}function NCn(t,n,s){t.d=0,t.b=0,n.k==(mn(),Su)&&s.k==Su&&b(ce(n,(Pt(),Ea)),10)==b(ce(s,Ea),10)&&(Fhe(n).j==(Ht(),pn)?hzt(t,n,s):hzt(t,s,n)),n.k==Su&&s.k==mo?Fhe(n).j==(Ht(),pn)?t.d=1:t.b=1:s.k==Su&&n.k==mo&&(Fhe(s).j==(Ht(),pn)?t.b=1:t.d=1),m_n(t,n,s)}function LCn(t){var n,s,u,f,g,_,S,C,O,M,U;if(U=CMe(t),n=t.a,C=n!=null,C&&m6(U,"category",t.a),f=ZF(new A2(t.d)),_=!f,_)O=new C2,j0(U,"knownOptions",O),s=new I4t(O),Vo(new A2(t.d),s);if(g=ZF(t.g),S=!g,S)M=new C2,j0(U,"supportedFeatures",M),u=new O4t(M),Vo(t.g,u);return U}function MCn(t){var n,s,u,f,g,_,S,C,O;u=!1,n=336,s=0,g=new f6t(t.length);for(S=t,C=0,O=S.length;C>16!=7&&!!n){if(dO(t,n))throw ve(new dn(DD+OUt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?Z7e(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=b(n,54).Rh(t,1,iV,u)),u=$6e(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,7,n,n))}function xzt(t,n){var s,u;if(n!=t.Cb||t.Db>>16!=3&&!!n){if(dO(t,n))throw ve(new dn(DD+RBt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?eMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=b(n,54).Rh(t,0,sV,u)),u=U6e(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,n,n))}function Kfe(t,n){EO();var s,u,f,g,_,S,C,O,M;if(n.d>t.d)S=t,t=n,n=S;if(n.d<63)return w4n(t,n);return _=(t.d&-2)<<4,O=aNe(t,_),M=aNe(n,_),u=gpe(t,YA(O,_)),f=gpe(n,YA(M,_)),C=Kfe(O,M),s=Kfe(u,f),g=Kfe(gpe(O,u),gpe(f,M)),g=wpe(wpe(g,C),s),g=YA(g,_),C=YA(C,_<<1),wpe(wpe(C,g),s)}function $y(){$y=z,pbe=new JC(AWt,0),Zze=new JC("LONGEST_PATH",1),Jze=new JC("LONGEST_PATH_SOURCE",2),fbe=new JC("COFFMAN_GRAHAM",3),Qze=new JC(F0e,4),eVe=new JC("STRETCH_WIDTH",5),Oee=new JC("MIN_WIDTH",6),SN=new JC("BF_MODEL_ORDER",7),TN=new JC("DF_MODEL_ORDER",8)}function PCn(t,n,s){var u,f,g,_,S;_=M8(t,s),S=mt(N1,Gy,10,n.length,0,1),u=0;for(g=_.Kc();g.Ob();)f=b(g.Pb(),12),er(Jt(ce(f,(Pt(),yz))))&&(S[u++]=b(ce(f,id),10));if(u=0;g+=s?1:-1)_=_|n.c.lg(C,g,s,u&&!er(Jt(ce(n.j,(Pt(),v_))))&&!er(Jt(ce(n.j,(Pt(),lk))))),_=_|n.q.ug(C,g,s),_=_|dVt(t,C[g],s,u);return $s(t.c,n),_}function BQ(t,n,s){var u,f,g,_,S,C,O,M,U,q;for(M=q7t(t.j),U=0,q=M.length;U1&&(t.a=!0),gun(b(s.b,68),ua(Uo(b(n.b,68).c),_m(no(Uo(b(s.b,68).a),b(n.b,68).a),f))),ZLt(t,n),Czt(t,s)}function kzt(t){var n,s,u,f,g,_,S;for(g=new me(t.a.a);g.a0&&g>0?_.p=n++:u>0?_.p=s++:g>0?_.p=f++:_.p=s++}Hr(),ks(t.j,new i1t)}function GCn(t){var n,s;s=null,n=b(nr(t.g,0),18);do{if(s=n.d.i,$a(s,(Pt(),Cp)))return b(ce(s,Cp),12).i;if(s.k!=(mn(),Es)&&ri(new Nn(Mn(Ss(s).a.Kc(),new L))))n=b(Gn(new Nn(Mn(Ss(s).a.Kc(),new L))),18);else if(s.k!=Es)return null}while(!!s&&s.k!=(mn(),Es));return s}function zCn(t,n){var s,u,f,g,_,S,C,O,M;S=n.j,_=n.g,C=b(nr(S,S.c.length-1),113),M=(qr(0,S.c.length),b(S.c[0],113)),O=mfe(t,_,C,M);for(g=1;gO)C=s,M=f,O=u;n.a=M,n.c=C}function VCn(t,n,s){var u,f,g,_,S,C,O;O=new by(new pCt(t));for(_=Te(we(aJt,1),ZYt,12,0,[n,s]),S=0,C=_.length;SC-t.b&&SC-t.a&&S0)if(g.a){if(S=g.b.Mf().a,s>S)f=(s-S)/2,g.d.b=f,g.d.c=f}else g.d.c=t.s+s;else if(i8(t.u))u=kMe(g.b),u.c<0&&(g.d.b=-u.c),u.c+u.b>g.b.Mf().a&&(g.d.c=u.c+u.b-g.b.Mf().a)}function s4n(t,n){var s,u,f,g,_;_=new Ut,s=n;do g=b(An(t.b,s),131),g.B=s.c,g.D=s.d,rn(_.c,g),s=b(An(t.k,s),18);while(s);return u=(qr(0,_.c.length),b(_.c[0],131)),u.j=!0,u.A=b(u.d.a.ec().Kc().Pb(),18).c.i,f=b(nr(_,_.c.length-1),131),f.q=!0,f.C=b(f.d.a.ec().Kc().Pb(),18).d.i,_}function o4n(t){var n,s;if(n=b(t.a,17).a,s=b(t.b,17).a,n>=0){if(n==s)return new js($t(-n-1),$t(-n-1));if(n==-s)return new js($t(-n),$t(s+1))}if(d.Math.abs(n)>d.Math.abs(s)){if(n<0)return new js($t(-n),$t(s));return new js($t(-n),$t(s+1))}return new js($t(n+1),$t(s))}function l4n(t){var n,s;if(s=b(ce(t,(Qt(),sh)),171),n=b(ce(t,(Pt(),mE)),311),s==(Uf(),__))At(t,sh,_z),At(t,mE,(Sb(),sk));else if(s==Nx)At(t,sh,_z),At(t,mE,(Sb(),N5));else if(n==(Sb(),sk))At(t,sh,__),At(t,mE,mz);else if(n==N5)At(t,sh,Nx),At(t,mE,mz)}function FQ(){FQ=z,Rz=new Hyt,ynr=Fi(new Ns,(Xo(),su),(il(),DJ)),Enr=Lh(Fi(new Ns,su,VJ),ac,zJ),wnr=km(km(AM(Lh(Fi(new Ns,f0,WJ),ac,YJ),wu),qJ),jJ),vnr=Lh(Fi(Fi(Fi(new Ns,O1,BJ),wu,$J),wu,iN),ac,FJ),_nr=Lh(Fi(Fi(new Ns,wu,iN),wu,MJ),ac,LJ)}function iD(){iD=z,xnr=Fi(Lh(new Ns,(Xo(),ac),(il(),TUe)),su,DJ),Rnr=km(km(AM(Lh(Fi(new Ns,f0,WJ),ac,YJ),wu),qJ),jJ),Cnr=Lh(Fi(Fi(Fi(new Ns,O1,BJ),wu,$J),wu,iN),ac,FJ),Anr=Fi(Fi(new Ns,su,VJ),ac,zJ),knr=Lh(Fi(Fi(new Ns,wu,iN),wu,MJ),ac,LJ)}function c4n(t,n,s,u,f){var g,_;if((!gl(n)&&n.c.i.c==n.d.i.c||!I9t(Sc(Te(we(uo,1),Bt,8,0,[f.i.n,f.n,f.a])),s))&&!gl(n)){if(n.c==f?u6(n.a,0,new sl(s)):Oi(n.a,new sl(s)),u&&!z0(t.a,s)){if(_=b(ce(n,(Qt(),jl)),75),!_)_=new Rh,At(n,jl,_);g=new sl(s),cs(_,g,_.c.b,_.c),$s(t.a,g)}}}function Izt(t,n){var s,u,f,g;g=gi(nl(x1,b1(gi(nl(n==null?0:Da(n),C1)),15))),s=g&t.b.length-1,f=null;for(u=t.b[s];u;f=u,u=u.a)if(u.d==g&&Sm(u.i,n))return!f?t.b[s]=u.a:f.a=u.a,o3t(b(gp(u.c),604),b(gp(u.f),604)),WF(b(gp(u.b),227),b(gp(u.e),227)),--t.f,++t.e,!0;return!1}function u4n(t){var n,s;for(s=new Nn(Mn(co(t).a.Kc(),new L));ri(s);)if(n=b(Gn(s),18),n.c.i.k!=(mn(),Jc))throw ve(new py(B0e+zU(t)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function h4n(t,n,s){var u,f,g,_,S,C,O;if(f=MBt(t.Db&254),f==0)t.Eb=s;else{if(f==1)if(S=mt(ao,en,1,2,5,1),g=gfe(t,n),g==0)S[0]=s,S[1]=t.Eb;else S[0]=t.Eb,S[1]=s;else{S=mt(ao,en,1,f+1,5,1),_=H2(t.Eb);for(u=2,C=0,O=0;u<=128;u<<=1)u==n?S[O++]=s:(t.Db&u)!=0&&(S[O++]=_[C++])}t.Eb=S}t.Db|=n}function Ozt(t,n,s){var u,f,g,_;this.b=new Ut,f=0,u=0;for(_=new me(t);_.a<_.c.c.length;)g=b(ge(_),176),s&&yAn(g),Gt(this.b,g),f+=g.o,u+=g.p;if(this.b.c.length>0)g=b(nr(this.b,0),176),f+=g.o,u+=g.p;f*=2,u*=2,n>1?f=Ks(d.Math.ceil(f*n)):u=Ks(d.Math.ceil(u/n)),this.a=new v7e(f,u)}function Nzt(t,n,s,u,f,g){var _,S,C,O,M,U,q,re,ae,ue,de,Se;if(M=u,n.j&&n.o)re=b(An(t.f,n.A),60),ue=re.d.c+re.d.b,--M;else ue=n.a.c+n.a.b;if(U=f,s.q&&s.o)re=b(An(t.f,s.C),60),O=re.d.c,++U;else O=s.a.c;de=O-ue,C=d.Math.max(2,U-M),S=de/C,ae=ue+S;for(q=M;q=0;_+=f?1:-1){S=n[_],C=u==(Ht(),Cn)?f?Tc(S,u):$f(Tc(S,u)):f?$f(Tc(S,u)):Tc(S,u),g&&(t.c[S.p]=C.gc());for(U=C.Kc();U.Ob();)M=b(U.Pb(),12),t.d[M.p]=O++;Us(s,C)}}function Mzt(t,n,s){var u,f,g,_,S,C,O,M;g=rt(ht(t.b.Kc().Pb())),O=rt(ht(l1n(n.b))),u=_m(Uo(t.a),O-s),f=_m(Uo(n.a),s-g),M=ua(u,f),_m(M,1/(O-g)),this.a=M,this.b=new Ut,S=!0,_=t.b.Kc(),_.Pb();while(_.Ob()){if(C=rt(ht(_.Pb())),S&&C-s>bge)this.b.Fc(s),S=!1;this.b.Fc(C)}S&&this.b.Fc(s)}function d4n(t){var n,s,u,f;if(Ikn(t,t.n),t.d.c.length>0){vM(t.c);while(m8e(t,b(ge(new me(t.e.a)),125))>5,n&=31,u>=t.d)return t.e<0?(Am(),GXt):(Am(),jD);if(g=t.d-u,f=mt(ci,$i,28,g+1,15,1),nSn(f,g,t.a,u,n),t.e<0){for(s=0;s0&&t.a[s]<<32-n!=0){for(s=0;s=0)return!1;else if(s=B4((Ph(),Yo),f,n),!s)return!0;else return u=s.Ik(),(u>1||u==-1)&&Nw(Hl(Yo,s))!=3;else return!1}function m4n(t,n,s,u){var f,g,_,S,C;if(S=ic(b(Ye((!n.b&&(n.b=new Wr(qn,n,4,7)),n.b),0),84)),C=ic(b(Ye((!n.c&&(n.c=new Wr(qn,n,5,8)),n.c),0),84)),Ya(S)==Ya(C))return null;if(jT(C,S))return null;if(_=W$(n),_==s)return u;else if(g=b(An(t.a,_),10),g){if(f=g.e,f)return f}return null}function b4n(t,n,s){var u,f,g,_,S;s.Ug("Longest path to source layering",1),t.a=n,S=t.a.a,t.b=mt(ci,$i,28,S.c.length,15,1),u=0;for(_=new me(S);_.a<_.c.c.length;)f=b(ge(_),10),f.p=u,t.b[u]=-1,++u;for(g=new me(S);g.a0)s[0]+=t.d,_-=s[0];if(s[2]>0)s[2]+=t.d,_-=s[2];if(g=d.Math.max(0,_),s[1]=d.Math.max(s[1],_),oNe(t,qu,f.c+u.b+s[0]-(s[1]-_)/2,s),n==qu)t.c.b=g,t.c.c=f.c+u.b+(g-_)/2}function Hzt(){this.c=mt(xo,Ml,28,(Ht(),Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn])).length,15,1),this.b=mt(xo,Ml,28,Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn]).length,15,1),this.a=mt(xo,Ml,28,Te(we(bl,1),Qc,64,0,[Cc,pn,Cn,Kn,bn]).length,15,1),uRe(this.c,Wa),uRe(this.b,Gs),uRe(this.a,Gs)}function yu(t,n,s){var u,f,g,_;if(n<=s)f=n,g=s;else f=s,g=n;if(u=0,t.b==null)t.b=mt(ci,$i,28,2,15,1),t.b[0]=f,t.b[1]=g,t.c=!0;else{if(u=t.b.length,t.b[u-1]+1==f){t.b[u-1]=g;return}_=mt(ci,$i,28,u+2,15,1),au(t.b,0,_,0,u),t.b=_,t.b[u-1]>=f&&(t.c=!1,t.a=!1),t.b[u++]=f,t.b[u]=g,t.c||O4(t)}}function S4n(t,n,s){var u,f,g,_,S,C,O;O=n.d,t.a=new Gu(O.c.length),t.c=new Zn;for(S=new me(O);S.a=0?t.Lh(O,!1,!0):Jw(t,s,!1),61));e:for(g=U.Kc();g.Ob();){f=b(g.Pb(),58);for(M=0;M1)cx(f,f.i-1)}return u}}function Yzt(t,n){var s,u,f,g,_,S,C;s=new u4;for(g=new me(t.b);g.at.d[_.p])s+=JOe(t.b,g),jv(t.a,$t(g));while(!_M(t.a))NNe(t.b,b(BA(t.a),17).a)}return s}function R4n(t){var n,s,u,f,g,_,S,C,O;t.a=new qIe,O=0,f=0;for(u=new me(t.i.b);u.aS.d&&(M=S.d+S.a+O);s.c.d=M,n.a.zc(s,n),C=d.Math.max(C,s.c.d+s.c.a)}return C}function Tl(){Tl=z,see=new AT("COMMENTS",0),Wf=new AT("EXTERNAL_PORTS",1),n9=new AT("HYPEREDGES",2),oee=new AT("HYPERNODES",3),gN=new AT("NON_FREE_PORTS",4),ak=new AT("NORTH_SOUTH_PORTS",5),i9=new AT(mWt,6),fN=new AT("CENTER_LABELS",7),pN=new AT("END_LABELS",8),lee=new AT("PARTITIONS",9)}function O4n(t,n,s,u,f){if(u<0){if(u=I4(t,f,Te(we(or,1),Bt,2,6,[Fpe,$pe,Upe,Gpe,p5,zpe,Vpe,Hpe,qpe,Ype,Wpe,jpe]),n),u<0&&(u=I4(t,f,Te(we(or,1),Bt,2,6,["Jan","Feb","Mar","Apr",p5,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),u<0)return!1;return s.k=u,!0}else if(u>0)return s.k=u-1,!0;return!1}function N4n(t,n,s,u,f){if(u<0){if(u=I4(t,f,Te(we(or,1),Bt,2,6,[Fpe,$pe,Upe,Gpe,p5,zpe,Vpe,Hpe,qpe,Ype,Wpe,jpe]),n),u<0&&(u=I4(t,f,Te(we(or,1),Bt,2,6,["Jan","Feb","Mar","Apr",p5,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),u<0)return!1;return s.k=u,!0}else if(u>0)return s.k=u-1,!0;return!1}function L4n(t,n,s,u,f,g){var _,S,C,O;if(S=32,u<0){if(n[0]>=t.length)return!1;if(S=Ko(t,n[0]),S!=43&&S!=45)return!1;if(++n[0],u=AQ(t,n),u<0)return!1;S==45&&(u=-u)}if(S==32&&n[0]-s==2&&f.b==2)C=new nj,O=C.q.getFullYear()-c_+c_-80,_=O%100,g.a=u==_,u+=(O/100|0)*100+(u<_?100:0);return g.p=u,!0}function jzt(t,n){var s,u,f,g,_;if(!Ya(t))return;_=b(ce(n,(Qt(),EE)),181),nt(It(t,ms))===nt((Ao(),A_))&&Ta(t,ms,qg),u=(mw(),new lw(Ya(t))),g=new tue(!Ya(t)?null:new lw(Ya(t)),t),f=cqt(u,g,!1,!0),s0(_,(Md(),Wx)),s=b(ce(n,bN),8),s.a=d.Math.max(f.a,s.a),s.b=d.Math.max(f.b,s.b)}function M4n(t,n,s){var u,f,g,_,S,C;for(_=b(ce(t,(Pt(),V1e)),15).Kc();_.Ob();){switch(g=b(_.Pb(),10),b(ce(g,(Qt(),sh)),171).g){case 2:Lo(g,n);break;case 4:Lo(g,s)}for(f=new Nn(Mn(Ab(g).a.Kc(),new L));ri(f);){if(u=b(Gn(f),18),!!u.c&&!!u.d)continue;S=!u.d,C=b(ce(u,OGe),12),S?ko(u,C):tl(u,C)}}}function $Q(){$Q=z,v1e=new UA(lZ,0,(Ht(),pn),pn),w1e=new UA(v0e,1,Kn,Kn),y1e=new UA(y0e,2,Cn,Cn),x1e=new UA(_0e,3,bn,bn),E1e=new UA("NORTH_WEST_CORNER",4,bn,pn),_1e=new UA("NORTH_EAST_CORNER",5,pn,Cn),T1e=new UA("SOUTH_WEST_CORNER",6,Kn,bn),S1e=new UA("SOUTH_EAST_CORNER",7,Cn,Kn)}function D4n(t){var n,s,u,f,g,_;g=new Rs,n=new t8((!t.a&&(t.a=new kt(ra,t,10,11)),t.a));for(f=new Nn(Mn(Ob(t).a.Kc(),new L));ri(f);)if(u=b(Gn(f),74),!He(Ye((!u.b&&(u.b=new Wr(qn,u,4,7)),u.b),0),193))_=ic(b(Ye((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84)),n.a._b(_)||(s=g.a.zc(_,g),s==null);return g}function M4(){M4=z,Oqe=Te(we(P_,1),i0e,28,14,[1,1,2,6,24,120,720,5040,40320,362880,3628800,39916800,479001600,6227020800,87178291200,1307674368000,{l:3506176,m:794077,h:1},{l:884736,m:916411,h:20},{l:3342336,m:3912489,h:363},{l:589824,m:3034138,h:6914},{l:3407872,m:1962506,h:138294}]),d.Math.pow(2,-65)}function EO(){EO=z;var t,n;k5=mt(Q4,Bt,92,32,0,1),KD=mt(Q4,Bt,92,32,0,1),t=1;for(n=0;n<=18;n++)k5[n]=(Am(),Kc(t,0)>=0?r_(t):l8(r_(ky(t)))),KD[n]=Mj(n0(t,n),0)?r_(n0(t,n)):l8(r_(ky(n0(t,n)))),t=nl(t,5);for(;n=O&&(C=u);if(!!C&&(M=d.Math.max(M,C.a.o.a)),M>q)U=O,q=M}return U}function $4n(t){var n,s,u,f,g,_,S;g=new by(b(mi(new Fn),50)),S=Gs;for(s=new me(t.d);s.azWt?ks(C,t.b):u<=zWt&&u>VWt?ks(C,t.d):u<=VWt&&u>HWt?ks(C,t.c):u<=HWt&&ks(C,t.a),g=Qzt(t,C,g);return f}function Zzt(t,n,s,u){var f,g,_,S,C,O;f=(u.c+u.a)/2,Hd(n.j),Oi(n.j,f),Hd(s.e),Oi(s.e,f),O=new _3t;for(S=new me(t.f);S.a1,S)u=new Dt(f,s.b),Oi(n.a,u);w8(n.a,Te(we(uo,1),Bt,8,0,[q,U]))}function $8e(t,n,s){var u,f;if(n=48;s--)nP[s]=s-48<<24>>24;for(u=70;u>=65;u--)nP[u]=u-65+10<<24>>24;for(f=102;f>=97;f--)nP[f]=f-97+10<<24>>24;for(g=0;g<10;g++)Dte[g]=48+g&Ds;for(t=10;t<=15;t++)Dte[t]=65+t-10&Ds}function V4n(t,n){n.Ug("Process graph bounds",1),At(t,(Ma(),Pbe),h$(ode(UT(new Pr(null,new Gr(t.b,16)),new Evt)))),At(t,Bbe,h$(ode(UT(new Pr(null,new Gr(t.b,16)),new wvt)))),At(t,VVe,h$(sde(UT(new Pr(null,new Gr(t.b,16)),new Svt)))),At(t,HVe,h$(sde(UT(new Pr(null,new Gr(t.b,16)),new Tvt)))),n.Vg()}function H4n(t){var n,s,u,f,g;if(f=b(ce(t,(Qt(),EE)),21),g=b(ce(t,kee),21),s=new Dt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),n=new sl(s),f.Hc((Md(),Wx))){if(u=b(ce(t,bN),8),g.Hc((bd(),PN)))u.a<=0&&(u.a=20),u.b<=0&&(u.b=20);n.a=d.Math.max(s.a,u.a),n.b=d.Math.max(s.b,u.b)}er(Jt(ce(t,sbe)))||_An(t,s,n)}function q4n(t,n){var s,u,f,g;for(g=Tc(n,(Ht(),Kn)).Kc();g.Ob();)u=b(g.Pb(),12),s=b(ce(u,(Pt(),id)),10),!!s&&l0(Zp(Qp(Jp(Xp(new fp,0),0.1),t.i[n.p].d),t.i[s.p].a));for(f=Tc(n,pn).Kc();f.Ob();)u=b(f.Pb(),12),s=b(ce(u,(Pt(),id)),10),!!s&&l0(Zp(Qp(Jp(Xp(new fp,0),0.1),t.i[s.p].d),t.i[n.p].a))}function Qfe(t){var n,s,u,f,g,_;if(!t.c){if(_=new $2t,n=J9,g=n.a.zc(t,n),g==null){for(u=new kn(nu(t));u.e!=u.i.gc();)s=b(Dn(u),89),f=qQ(s),He(f,90)&&ps(_,Qfe(b(f,29))),ii(_,s);n.a.Bc(t)!=null,n.a.gc()==0}Uyn(_),QT(_),t.c=new n4((b(Ye(Ct((Hv(),an).o),15),19),_.i),_.g),fd(t).b&=-33}return t.c}function G8e(t){var n;if(t.c!=10)throw ve(new Ti(Ai((yi(),XZ))));switch(n=t.a,n){case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw ve(new Ti(Ai((yi(),qf))))}return n}function rVt(t){var n,s,u,f,g;if(t.l==0&&t.m==0&&t.h==0)return"0";if(t.h==SG&&t.m==0&&t.l==0)return"-9223372036854775808";if(t.h>>19!=0)return"-"+rVt(X6(t));s=t,u="";while(!(s.l==0&&s.m==0&&s.h==0)){if(f=khe(iZ),s=EDe(s,f,!0),n=""+C3t(p_),!(s.l==0&&s.m==0&&s.h==0)){g=9-n.length;for(;g>0;g--)n="0"+n}u=n+u}return u}function Y4n(t){var n,s,u,f,g,_,S;n=!1,s=0;for(f=new me(t.d.b);f.a=t.a)return-1;if(!SMe(n,s))return-1;if(A6(b(u.Kb(n),20)))return 1;f=0;for(_=b(u.Kb(n),20).Kc();_.Ob();){if(g=b(_.Pb(),18),C=g.c.i==n?g.d.i:g.c.i,S=z8e(t,C,s,u),S==-1)return-1;if(f=d.Math.max(f,S),f>t.c-1)return-1}return f+1}function nVt(t,n){var s,u,f,g,_,S;if(nt(n)===nt(t))return!0;if(!He(n,15))return!1;if(u=b(n,15),S=t.gc(),u.gc()!=S)return!1;if(_=u.Kc(),t.Yi()){for(s=0;s0){if(t._j(),n!=null){for(g=0;g>24;case 97:case 98:case 99:case 100:case 101:case 102:return t-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return t-65+10<<24>>24;default:throw ve(new bm("Invalid hexadecimal"))}}function GQ(){GQ=z,k$e=new ZC("SPIRAL",0),S$e=new ZC("LINE_BY_LINE",1),T$e=new ZC("MANHATTAN",2),w$e=new ZC("JITTER",3),$me=new ZC("QUADRANTS_LINE_BY_LINE",4),C$e=new ZC("QUADRANTS_MANHATTAN",5),x$e=new ZC("QUADRANTS_JITTER",6),E$e=new ZC("COMBINE_LINE_BY_LINE_MANHATTAN",7),_$e=new ZC("COMBINE_JITTER_MANHATTAN",8)}function aVt(t,n,s,u){var f,g,_,S,C,O;C=wfe(t,s),O=wfe(n,s),f=!1;while(!!C&&!!O)if(u||V_n(C,O,s)){if(_=wfe(C,s),S=wfe(O,s),lU(n),lU(t),g=C.c,Spe(C,!1),Spe(O,!1),s)rx(n,O.p,g),n.p=O.p,rx(t,C.p+1,g),t.p=C.p;else rx(t,C.p,g),t.p=C.p,rx(n,O.p+1,g),n.p=O.p;Lo(C,null),Lo(O,null),C=_,O=S,f=!0}else break;return f}function sVt(t){switch(t.g){case 0:return new vSt;case 1:return new bSt;case 3:return new MAt;case 4:return new uyt;case 5:return new l6t;case 6:return new ySt;case 2:return new mSt;case 7:return new uSt;case 8:return new dSt;default:throw ve(new dn("No implementation is available for the layerer "+(t.f!=null?t.f:""+t.g)))}}function Z4n(t,n,s,u){var f,g,_,S,C;f=!1,g=!1;for(S=new me(u.j);S.a=n.length)throw ve(new Gl("Greedy SwitchDecider: Free layer not in graph."));this.c=n[t],this.e=new O$(u),rde(this.e,this.c,(Ht(),bn)),this.i=new O$(u),rde(this.i,this.c,Cn),this.f=new xOt(this.c),this.a=!g&&f.i&&!f.s&&this.c[0].k==(mn(),As),this.a&&dSn(this,t,n.length)}function lVt(t,n){var s,u,f,g,_,S;if(g=!t.B.Hc((bd(),rV)),_=t.B.Hc(Yye),t.a=new jBt(_,g,t.c),!!t.n&&_Oe(t.a.n,t.n),jle(t.g,(K0(),qu),t.a),!n)u=new G8(1,g,t.c),u.n.a=t.k,FA(t.p,(Ht(),pn),u),f=new G8(1,g,t.c),f.n.d=t.k,FA(t.p,Kn,f),S=new G8(0,g,t.c),S.n.c=t.k,FA(t.p,bn,S),s=new G8(0,g,t.c),s.n.b=t.k,FA(t.p,Cn,s)}function ekn(t){var n,s,u;switch(n=b(ce(t.d,(Qt(),$b)),223),n.g){case 2:s=zIn(t);break;case 3:s=(u=new Ut,ys(pa(ec(wc(wc(new Pr(null,new Gr(t.d.b,16)),new _bt),new Ebt),new wbt),new obt),new Hxt(u)),u);break;default:throw ve(new zl("Compaction not supported for "+n+" edges."))}u5n(t,s),Vo(new A2(t.g),new zxt(t))}function tkn(t,n){var s,u,f,g,_,S,C;if(n.Ug("Process directions",1),s=b(ce(t,(Oc(),IS)),88),s!=(Ms(),Vg))for(f=ti(t.b,0);f.b!=f.d.c;){switch(u=b(Jn(f),40),S=b(ce(u,(Ma(),Nz)),17).a,C=b(ce(u,Lz),17).a,s.g){case 4:C*=-1;break;case 1:g=S,S=C,C=g;break;case 2:_=S,S=-C,C=_}At(u,Nz,$t(S)),At(u,Lz,$t(C))}n.Vg()}function rkn(t,n){var s=new Tn;if(!!n&&nc(s,b(An(t.a,iV),96)),He(n,422)&&nc(s,b(An(t.a,aV),96)),He(n,366))return nc(s,b(An(t.a,Dl),96)),s;if(He(n,84)&&nc(s,b(An(t.a,qn),96)),He(n,207))return nc(s,b(An(t.a,ra),96)),s;if(He(n,193))return nc(s,b(An(t.a,ld),96)),s;return He(n,326)&&nc(s,b(An(t.a,ws),96)),s}function nkn(t){var n,s,u,f,g,_,S,C;C=new zMt;for(S=new me(t.a);S.a0&&n=0)return!1;else n.p=s.b,Gt(s.e,n);if(f==(mn(),mo)||f==Su)for(_=new me(n.j);_.a<_.c.c.length;){g=b(ge(_),12);for(M=(u=new me(new dA(g).a.g),new a5e(u));_c(M.a);)if(O=b(ge(M.a),18).d,S=O.i,C=S.k,n.c!=S.c){if(C==mo||C==Su){if(mVt(t,S,s))return!0}}}return!0}function zQ(t){var n;if((t.Db&64)!=0)return h8e(t);return n=new pp(h8e(t)),n.a+=" (changeable: ",my(n,(t.Bb&u0)!=0),n.a+=", volatile: ",my(n,(t.Bb&wx)!=0),n.a+=", transient: ",my(n,(t.Bb&gx)!=0),n.a+=", defaultValueLiteral: ",Ol(n,t.j),n.a+=", unsettable: ",my(n,(t.Bb&$h)!=0),n.a+=", derived: ",my(n,(t.Bb&Im)!=0),n.a+=")",n.a}function lkn(t,n){var s,u,f,g,_;if(f=n.qi(t.a),f){if(u=(!f.b&&(f.b=new Id((Vr(),yl),Bc,f)),f.b),s=wi(X0(u,Zo)),s!=null){if(g=s.lastIndexOf("#"),_=g==-1?AIe(t,n.jk(),s):g==0?sU(t,null,(fn(1,s.length+1),s.substr(1))):sU(t,(Do(0,g,s.length),s.substr(0,g)),(fn(g+1,s.length+1),s.substr(g+1))),He(_,156))return b(_,156)}}return null}function ckn(t,n){var s,u,f,g,_;if(u=n.qi(t.a),u){if(s=(!u.b&&(u.b=new Id((Vr(),yl),Bc,u)),u.b),g=wi(X0(s,ame)),g!=null){if(f=g.lastIndexOf("#"),_=f==-1?AIe(t,n.jk(),g):f==0?sU(t,null,(fn(1,g.length+1),g.substr(1))):sU(t,(Do(0,f,g.length),g.substr(0,f)),(fn(f+1,g.length+1),g.substr(f+1))),He(_,156))return b(_,156)}}return null}function ukn(t){var n,s,u,f,g,_,S,C,O,M,U,q;f=sCn(t.d),_=b(ce(t.b,(z8(),B$e)),107),S=_.b+_.c,C=_.d+_.a,M=f.d.a*t.e+S,O=f.b.a*t.f+C,prn(t.b,new Dt(M,O));for(q=new me(t.g);q.at.d[S.p])s+=JOe(t.b,g),jv(t.a,$t(g))}else++_;s+=t.b.d*_;while(!_M(t.a))NNe(t.b,b(BA(t.a),17).a)}return s}function yVt(t){var n,s,u,f,g,_;if(g=0,n=vp(t),!!n.kk()&&(g|=4),(t.Bb&$h)!=0&&(g|=2),He(t,102)){if(s=b(t,19),f=El(s),(s.Bb&Hc)!=0&&(g|=32),f)Un(GT(f)),g|=8,_=f.t,(_>1||_==-1)&&(g|=16),(f.Bb&Hc)!=0&&(g|=64);(s.Bb&ml)!=0&&(g|=wx),g|=u0}else if(He(n,469))g|=512;else u=n.kk(),!!u&&(u.i&1)!=0&&(g|=256);return(t.Bb&512)!=0&&(g|=128),g}function gkn(t,n){var s;if(t.f==ave)return s=Nw(Hl((Ph(),Yo),n)),t.e?s==4&&n!=(c5(),X5)&&n!=(c5(),K5)&&n!=(c5(),sve)&&n!=(c5(),ove):s==2;if(!!t.d&&(t.d.Hc(n)||t.d.Hc(HA(Hl((Ph(),Yo),n)))||t.d.Hc(B4((Ph(),Yo),t.b,n))))return!0;if(t.f){if(R8e((Ph(),t.f),z$(Hl(Yo,n))))return s=Nw(Hl(Yo,n)),t.e?s==4:s==2}return!1}function mkn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re;q=-1,re=0;for(O=t,M=0,U=O.length;M0&&++re}++q}return re}function bkn(t,n,s,u){var f,g,_,S,C,O,M,U;return _=b(It(s,(Hi(),V5)),8),C=_.a,M=_.b+t,f=d.Math.atan2(M,C),f<0&&(f+=cE),f+=n,f>cE&&(f-=cE),S=b(It(u,V5),8),O=S.a,U=S.b+t,g=d.Math.atan2(U,O),g<0&&(g+=cE),g+=n,g>cE&&(g-=cE),_g(),a0(0.0000000001),d.Math.abs(f-g)<=0.0000000001||f==g||isNaN(f)&&isNaN(g)?0:fg?1:vw(isNaN(f),isNaN(g))}function epe(t){var n,s,u,f,g,_,S;S=new Zn;for(u=new me(t.a.b);u.a=t.o)throw ve(new S5e);S=n>>5,_=n&31,g=n0(1,gi(n0(_,1))),f?t.n[s][S]=q0(t.n[s][S],g):t.n[s][S]=io(t.n[s][S],_6e(g)),g=n0(g,1),u?t.n[s][S]=q0(t.n[s][S],g):t.n[s][S]=io(t.n[s][S],_6e(g))}catch(C){if(C=Qa(C),He(C,333))throw ve(new Gl(E0e+t.o+"*"+t.p+w0e+n+ll+s+S0e));else throw ve(C)}}function _kn(t,n,s,u){var f,g,_,S,C,O,M,U,q;q=new by(new fCt(t));for(S=Te(we(N1,1),Gy,10,0,[n,s]),C=0,O=S.length;C0)u=(!t.n&&(t.n=new kt(Dl,t,1,7)),b(Ye(t.n,0),135)).a,!u||Bi(Bi((n.a+=' "',n),u),'"')}else Bi(Bi((n.a+=' "',n),s),'"');return Bi(fw(Bi(fw(Bi(fw(Bi(fw((n.a+=" (",n),t.i),","),t.j)," | "),t.g),","),t.f),")"),n.a}function vVt(t){var n,s,u;if((t.Db&64)!=0)return Lfe(t);if(n=new Vd(QBe),s=t.k,!s){if(!t.n&&(t.n=new kt(Dl,t,1,7)),t.n.i>0)u=(!t.n&&(t.n=new kt(Dl,t,1,7)),b(Ye(t.n,0),135)).a,!u||Bi(Bi((n.a+=' "',n),u),'"')}else Bi(Bi((n.a+=' "',n),s),'"');return Bi(fw(Bi(fw(Bi(fw(Bi(fw((n.a+=" (",n),t.i),","),t.j)," | "),t.g),","),t.f),")"),n.a}function Skn(t,n){var s,u,f,g,_;n==(I8(),xbe)&&QU(b(_a(t.a,(nx(),fz)),15));for(f=b(_a(t.a,(nx(),fz)),15).Kc();f.Ob();)switch(u=b(f.Pb(),105),s=b(nr(u.j,0),113).d.j,g=new Zh(u.j),ks(g,new Rbt),n.g){case 2:kfe(t,g,s,(Vw(),y_),1);break;case 1:case 0:_=cCn(g),kfe(t,new Sy(g,0,_),s,(Vw(),y_),0),kfe(t,new Sy(g,_,g.c.length),s,y_,1)}}function rpe(t,n){var s,u,f,g,_,S,C;if(n==null||n.length==0)return null;if(f=b(mu(t.a,n),143),!f){for(u=(S=new hb(t.b).a.vc().Kc(),new TT(S));u.a.Ob();)if(s=(g=b(u.a.Pb(),44),b(g.md(),143)),_=s.c,C=n.length,Br(_.substr(_.length-C,C),n)&&(n.length==_.length||Ko(_,_.length-n.length-1)==46)){if(f)return null;f=s}!!f&&Vl(t.a,n,f)}return f}function Tkn(t,n){var s,u,f,g;if(s=new On,u=b(uc(ec(new Pr(null,new Gr(t.f,16)),s),qT(new Pe,new Ge,new fe,new be,Te(we(Wl,1),Rt,108,0,[(rd(),Sx),fc]))),21),f=u.gc(),u=b(uc(ec(new Pr(null,new Gr(n.f,16)),s),qT(new Pe,new Ge,new fe,new be,Te(we(Wl,1),Rt,108,0,[Sx,fc]))),21),g=u.gc(),ff.p){if(Xs(g,Kn),g.d)S=g.o.b,n=g.a.b,g.a.b=S-n}else if(g.j==Kn&&f.p>t.p){if(Xs(g,pn),g.d)S=g.o.b,n=g.a.b,g.a.b=-(S-n)}break}return f}function sG(t,n,s,u,f){var g,_,S,C,O,M,U;if(!(He(n,207)||He(n,366)||He(n,193)))throw ve(new dn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return _=t.a/2,C=n.i+u-_,M=n.j+f-_,O=C+n.g+t.a,U=M+n.f+t.a,g=new Rh,Oi(g,new Dt(C,M)),Oi(g,new Dt(C,U)),Oi(g,new Dt(O,U)),Oi(g,new Dt(O,M)),S=new Hfe(g),nc(S,n),s&&Ki(t.b,n,S),S}function wO(t,n,s){var u,f,g,_,S,C,O,M,U,q;g=new Dt(n,s);for(M=new me(t.a);M.a1,S)u=new Dt(f,s.b),Oi(n.a,u);w8(n.a,Te(we(uo,1),Bt,8,0,[q,U]))}function _p(){_p=z,Mee=new RT(Dm,0),xz=new RT("NIKOLOV",1),Cz=new RT("NIKOLOV_PIXEL",2),oVe=new RT("NIKOLOV_IMPROVED",3),lVe=new RT("NIKOLOV_IMPROVED_PIXEL",4),sVe=new RT("DUMMYNODE_PERCENTAGE",5),cVe=new RT("NODECOUNT_PERCENTAGE",6),Dee=new RT("NO_BOUNDARY",7),AS=new RT("MODEL_ORDER_LEFT_TO_RIGHT",8),Ux=new RT("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Mkn(t){var n,s,u,f,g;u=t.length,n=new EM,g=0;while(g=40,_&&D3n(t),VAn(t),d4n(t),s=FBt(t),u=0;while(!!s&&u0&&Oi(t.f,g);else t.c[_]-=O+1,t.c[_]<=0&&t.a[_]>0&&Oi(t.e,g)}}}function NVt(t,n,s,u){var f,g,_,S,C,O,M;C=new Dt(s,u),no(C,b(ce(n,(Ma(),CN)),8));for(M=ti(n.b,0);M.b!=M.d.c;)O=b(Jn(M),40),ua(O.e,C),Oi(t.b,O);for(S=b(uc(OOe(new Pr(null,new Gr(n.a,16))),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15).Kc();S.Ob();){_=b(S.Pb(),65);for(g=ti(_.a,0);g.b!=g.d.c;)f=b(Jn(g),8),f.a+=C.a,f.b+=C.b;Oi(t.a,_)}}function nDe(t,n){var s,u,f,g;if(0<(He(t,16)?b(t,16).gc():vb(t.Kc()))){if(f=n,1=0&&Cg*2)M=new bX(U),O=Nh(_)/Od(_),C=kpe(M,n,new gA,s,u,f,O),ua(V0(M.e),C),U.c.length=0,g=0,rn(U.c,M),rn(U.c,_),g=Nh(M)*Od(M)+Nh(_)*Od(_);else rn(U.c,_),g+=Nh(_)*Od(_);return U}function MVt(t,n){var s,u,f,g,_,S;if(S=b(ce(n,(Qt(),ms)),101),!(S==(Ao(),B1)||S==xu))return;f=new Dt(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a).b;for(_=new me(t.a);_.a<_.c.c.length;){if(g=b(ge(_),10),g.k!=(mn(),As))continue;if(s=b(ce(g,(Pt(),Pc)),64),s!=(Ht(),Cn)&&s!=bn)continue;u=rt(ht(ce(g,_S))),S==B1&&(u*=f),g.n.b=u-b(ce(g,xS),8).b,BX(g,!1,!0)}}function Zkn(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae;if(Ad(t.e)){if(n!=s){if(f=b(t.g,124),re=f[s],_=re.Lk(),Nb(t.e,_)){ae=nh(t.e.Dh(),_),C=-1,S=-1,u=0;for(O=0,U=n>s?n:s;O<=U;++O)if(O==s)S=u++;else g=f[O],M=ae.am(g.Lk()),O==n&&(C=O==U&&!M?u-1:u),M&&++u;return q=b(F8(t,n,s),76),S!=C&&XI(t,new iU(t.e,7,_,$t(S),re.md(),C)),q}}}else return b(Gfe(t,n,s),76);return b(F8(t,n,s),76)}function Jkn(t,n){var s,u,f,g,_,S,C;n.Ug("Port order processing",1),C=b(ce(t,(Qt(),$ze)),430);for(u=new me(t.b);u.a=0){if(S=j_n(t,_),S){if(O<22?C.l|=1<>>1,_.m=M>>>1|(U&1)<<21,_.l=q>>>1|(M&1)<<21,--O}if(s&&yde(C),g)if(u)p_=X6(t),f&&(p_=vPt(p_,(L6(),BFe)));else p_=Qu(t.l,t.m,t.h);return C}function r3n(t,n){var s,u,f,g,_,S,C,O,M,U;O=t.e[n.c.p][n.p]+1,C=n.c.a.c.length+1;for(S=new me(t.a);S.a0&&(fn(0,t.length),t.charCodeAt(0)==45||(fn(0,t.length),t.charCodeAt(0)==43))?1:0;for(u=_;us)throw ve(new bm(aS+t+'"'));return S}function n3n(t){var n,s,u,f,g,_,S;_=new Va;for(g=new me(t.a);g.a1)&&n==1&&b(t.a[t.b],10).k==(mn(),Jc))h5(b(t.a[t.b],10),(Qd(),D1));else if(u&&(!s||(t.c-t.b&t.a.length-1)>1)&&n==1&&b(t.a[t.c-1&t.a.length-1],10).k==(mn(),Jc))h5(b(t.a[t.c-1&t.a.length-1],10),(Qd(),C_));else if((t.c-t.b&t.a.length-1)==2)h5(b(R8(t),10),(Qd(),D1)),h5(b(R8(t),10),C_);else Lxn(t,f);QOe(t)}function s3n(t,n,s){var u,f,g,_,S;g=0;for(f=new kn((!t.a&&(t.a=new kt(ra,t,10,11)),t.a));f.e!=f.i.gc();)u=b(Dn(f),27),_="",(!u.n&&(u.n=new kt(Dl,u,1,7)),u.n).i==0||(_=b(Ye((!u.n&&(u.n=new kt(Dl,u,1,7)),u.n),0),135).a),S=new vde(g++,n,_),nc(S,u),At(S,(Ma(),C9),u),S.e.b=u.j+u.f/2,S.f.a=d.Math.max(u.g,1),S.e.a=u.i+u.g/2,S.f.b=d.Math.max(u.f,1),Oi(n.b,S),Hu(s.f,u,S)}function o3n(t){var n,s,u,f,g;if(u=b(ce(t,(Pt(),Ea)),27),g=b(It(u,(Qt(),EE)),181).Hc((Md(),IE)),!t.e)if(f=b(ce(t,Tu),21),n=new Dt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),f.Hc((Tl(),Wf)))Ta(u,ms,(Ao(),xu)),rS(u,n.a,n.b,!1,!0);else er(Jt(It(u,sbe)))||rS(u,n.a,n.b,!0,!0);g?Ta(u,EE,Tr(IE)):Ta(u,EE,(s=b(G0(W9),9),new Rf(s,b(t0(s,s.length),9),0)))}function iDe(t,n,s){var u,f,g,_;if(n[0]>=t.length)return s.o=0,!0;switch(Ko(t,n[0])){case 43:f=1;break;case 45:f=-1;break;default:return s.o=0,!0}if(++n[0],g=n[0],_=AQ(t,n),_==0&&n[0]==g)return!1;if(n[0]S)S=f,M.c.length=0;f==S&&Gt(M,new js(s.c.i,s))}Hr(),ks(M,t.c),xw(t.b,C.p,M)}}}function h3n(t,n){var s,u,f,g,_,S,C,O,M;for(_=new me(n.b);_.a<_.c.c.length;){g=b(ge(_),30);for(O=new me(g.a);O.aS)S=f,M.c.length=0;f==S&&Gt(M,new js(s.d.i,s))}Hr(),ks(M,t.c),xw(t.f,C.p,M)}}}function d3n(t,n){var s,u,f,g,_,S,C,O;if(O=Jt(ce(n,(Oc(),Znr))),O==null||(vn(O),O)){FTn(t,n),f=new Ut;for(C=ti(n.b,0);C.b!=C.d.c;)if(_=b(Jn(C),40),s=qMe(t,_,null),s)nc(s,n),rn(f.c,s);if(t.a=null,t.b=null,f.c.length>1)for(u=new me(f);u.a=0&&S!=s)g=new go(t,1,S,_,null),!u?u=g:u.nj(g);if(s>=0)g=new go(t,1,s,S==s?_:null,n),!u?u=g:u.nj(g)}return u}function BVt(t){var n,s,u;if(t.b==null){if(u=new gy,t.i!=null)Ol(u,t.i),u.a+=":";if((t.f&256)!=0){if((t.f&256)!=0&&t.a!=null)Ohn(t.i)||(u.a+="//"),Ol(u,t.a);if(t.d!=null)u.a+="/",Ol(u,t.d);(t.f&16)!=0&&(u.a+="/");for(n=0,s=t.j.length;nq)return!1;if(U=(C=hD(u,q,!1),C.a),M+S+U<=n.b){if(aU(s,g-s.s),s.c=!0,aU(u,g-s.s),GU(u,s.s,s.t+s.d+S),u.k=!0,dLe(s.q,u),re=!0,f){if(wX(n,u),u.j=n,t.c.length>_)HU((qr(_,t.c.length),b(t.c[_],186)),u),(qr(_,t.c.length),b(t.c[_],186)).a.c.length==0&&xy(t,_)}}return re}function v3n(t,n){var s,u,f,g,_,S;if(n.Ug("Partition midprocessing",1),f=new Dw,ys(pa(new Pr(null,new Gr(t.a,16)),new s1t),new Oxt(f)),f.d==0)return;S=b(uc(MOe((g=f.i,new Pr(null,(!g?f.i=new h4(f,f.c):g).Nc()))),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15),u=S.Kc(),s=b(u.Pb(),17);while(u.Ob())_=b(u.Pb(),17),dCn(b(_a(f,s),21),b(_a(f,_),21)),s=_;n.Vg()}function UVt(t,n,s){var u,f,g,_,S,C,O,M;if(n.p==0){if(n.p=1,_=s,!_)f=new Ut,g=(u=b(G0(bl),9),new Rf(u,b(t0(u,u.length),9),0)),_=new js(f,g);b(_.a,15).Fc(n),n.k==(mn(),As)&&b(_.b,21).Fc(b(ce(n,(Pt(),Pc)),64));for(C=new me(n.j);C.a0){if(f=b(t.Ab.g,2033),n==null){for(g=0;g<_;++g)if(s=f[g],s.d==null)return s}else for(g=0;g<_;++g)if(s=f[g],Br(n,s.d))return s}}else if(n==null){for(u=new kn(t.Ab);u.e!=u.i.gc();)if(s=b(Dn(u),598),s.d==null)return s}else for(u=new kn(t.Ab);u.e!=u.i.gc();)if(s=b(Dn(u),598),Br(n,s.d))return s}return null}function _3n(t,n,s,u,f){var g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;re=Lpn(t,yLe(n),f),rLe(re,yb(f,Fm)),w=null,ae=f,ue=m8(ae,Ujt),de=new o4t(re),Own(de.a,ue),Se=m8(ae,"endPoint"),Be=new h4t(re),Iwn(Be.a,Se),Ve=Fw(ae,YZ),et=new p4t(re),yEn(et.a,Ve),U=yb(f,rFe),g=new U5t(t,re),non(g.a,g.b,U),q=yb(f,tFe),_=new G5t(t,re),ion(_.a,_.b,q),O=Fw(f,iFe),S=new z5t(s,re),e2n(S.b,S.a,O),M=Fw(f,nFe),C=new V5t(u,re),t2n(C.b,C.a,M)}function aDe(t,n,s){var u,f,g,_,S;switch(S=null,n.g){case 1:for(f=new me(t.j);f.as.s&&S_)return Ht(),Cn;break;case 4:case 3:if(M<0)return Ht(),pn;else if(M+s>g)return Ht(),Kn}return C=(O+S/2)/_,u=(M+s/2)/g,C+u<=1&&C-u<=0?(Ht(),bn):C+u>=1&&C-u>=0?(Ht(),Cn):u<0.5?(Ht(),pn):(Ht(),Kn)}function T3n(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue;s=!1,M=rt(ht(ce(n,(Qt(),kS)))),ae=l_*M;for(f=new me(n.b);f.aC+ae)ue=U.g+q.g,q.a=(q.g*q.a+U.g*U.a)/ue,q.g=ue,U.f=q,s=!0}g=S,U=q}}return s}function HVt(t,n,s,u,f,g,_){var S,C,O,M,U,q;q=new kA;for(O=n.Kc();O.Ob();){S=b(O.Pb(),853);for(U=new me(S.Rf());U.a0)if(S.a){if(O=S.b.Mf().b,f>O)if(t.v||S.c.d.c.length==1)_=(f-O)/2,S.d.d=_,S.d.a=_;else s=b(nr(S.c.d,0),187).Mf().b,u=(s-O)/2,S.d.d=d.Math.max(0,u),S.d.a=f-u-O}else S.d.a=t.t+f;else if(i8(t.u))g=kMe(S.b),g.d<0&&(S.d.d=-g.d),g.d+g.a>S.b.Mf().b&&(S.d.a=g.d+g.a-S.b.Mf().b)}function c0(){c0=z,R5=new No((Hi(),Wz),$t(1)),AJ=new No(AE,80),TZt=new No(pYe,5),pZt=new No(wk,$O),wZt=new No(Gye,$t(1)),SZt=new No(zye,(nn(),!0)),H$e=new _w(50),_Zt=new No(Qy,H$e),G$e=qz,q$e=$9,gZt=new No(Oye,!1),V$e=Yz,yZt=Hx,vZt=x_,bZt=kE,mZt=Ck,EZt=qx,z$e=(BMe(),oZt),Qme=hZt,kJ=sZt,Xme=lZt,Y$e=uZt,kZt=ON,AZt=dte,CZt=jz,xZt=hte,W$e=(e5(),jx),new No(q5,W$e)}function k3n(t,n){var s;switch(fU(t)){case 6:return So(n);case 7:return OT(n);case 8:return IT(n);case 3:return Array.isArray(n)&&(s=fU(n),!(s>=14&&s<=16));case 11:return n!=null&&typeof n===Ope;case 12:return n!=null&&(typeof n===mG||typeof n==Ope);case 0:return rfe(n,t.__elementTypeId$);case 2:return Pue(n)&&n.Tm!==J;case 1:return Pue(n)&&n.Tm!==J||rfe(n,t.__elementTypeId$);default:return!0}}function A3n(t){var n,s,u,f;if(u=t.o,MT(),t.A.dc()||da(t.A,I$e))f=u.a;else{if(t.D?f=d.Math.max(u.a,Z8(t.f)):f=Z8(t.f),t.A.Hc((Md(),eV))&&!t.B.Hc((bd(),j9)))f=d.Math.max(f,Z8(b(Nl(t.p,(Ht(),pn)),252))),f=d.Math.max(f,Z8(b(Nl(t.p,Kn),252)));n=aPt(t),!!n&&(f=d.Math.max(f,n.a))}er(Jt(t.e.Tf().of((Hi(),Hx))))?u.a=d.Math.max(u.a,f):u.a=f,s=t.f.i,s.c=0,s.b=f,cpe(t.f)}function qVt(t,n){var s,u,f,g;if(u=d.Math.min(d.Math.abs(t.c-(n.c+n.b)),d.Math.abs(t.c+t.b-n.c)),g=d.Math.min(d.Math.abs(t.d-(n.d+n.a)),d.Math.abs(t.d+t.a-n.d)),s=d.Math.abs(t.c+t.b/2-(n.c+n.b/2)),s>t.b/2+n.b/2)return 1;if(f=d.Math.abs(t.d+t.a/2-(n.d+n.a/2)),f>t.a/2+n.a/2)return 1;if(s==0&&f==0)return 0;if(s==0)return g/f+1;if(f==0)return u/s+1;return d.Math.min(u/s,g/f)+1}function R3n(t,n){var s,u,f,g,_,S,C;g=0,S=0,C=0;for(f=new me(t.f.e);f.a0&&t.d!=(_8(),e1e)&&(S+=_*(u.d.a+t.a[n.a][u.a]*(n.d.a-u.d.a)/s)),s>0&&t.d!=(_8(),Zme)&&(C+=_*(u.d.b+t.a[n.a][u.a]*(n.d.b-u.d.b)/s))}switch(t.d.g){case 1:return new Dt(S/g,n.d.b);case 2:return new Dt(n.d.a,C/g);default:return new Dt(S/g,C/g)}}function YVt(t){var n,s,u,f,g,_;s=(!t.a&&(t.a=new Os(lf,t,5)),t.a).i+2,_=new Gu(s),Gt(_,new Dt(t.j,t.k)),ys(new Pr(null,(!t.a&&(t.a=new Os(lf,t,5)),new Gr(t.a,16))),new n4t(_)),Gt(_,new Dt(t.b,t.c)),n=1;while(n<_.c.length-1)u=(qr(n-1,_.c.length),b(_.c[n-1],8)),f=(qr(n,_.c.length),b(_.c[n],8)),g=(qr(n+1,_.c.length),b(_.c[n+1],8)),u.a==f.a&&f.a==g.a||u.b==f.b&&f.b==g.b?xy(_,n):++n;return _}function WVt(t,n){J6();var s,u,f,g,_;if(_=b(ce(t.i,(Qt(),ms)),101),g=t.j.g-n.j.g,g!=0||!(_==(Ao(),RE)||_==B1||_==xu))return 0;if(_==(Ao(),RE)){if(s=b(ce(t,Yy),17),u=b(ce(n,Yy),17),!!s&&!!u){if(f=s.a-u.a,f!=0)return f}}switch(t.j.g){case 1:return Ra(t.n.a,n.n.a);case 2:return Ra(t.n.b,n.n.b);case 3:return Ra(n.n.a,t.n.a);case 4:return Ra(n.n.b,t.n.b);default:throw ve(new zl(R9e))}}function jVt(t,n){var s,u,f,g,_,S,C;s=wIt(RAt(kAt(AAt(new _5e,n),new PK(n.e)),EJt),t.a),n.j.c.length==0||rDt(b(nr(n.j,0),60).a,s),C=new Mle,Ki(t.e,s,C),_=new Rs,S=new Rs;for(g=new me(n.k);g.a0)xU(C,!1,(Ms(),Kl)),xU(C,!0,sc);Ju(n.g,new s5t(t,s)),Ki(t.g,n,s)}function KVt(){KVt=z;var t;qFe=Te(we(ci,1),$i,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Cme=mt(ci,$i,28,37,15,1),FXt=Te(we(ci,1),$i,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),YFe=mt(P_,i0e,28,37,14,1);for(t=2;t<=36;t++)Cme[t]=Ks(d.Math.pow(t,qFe[t])),YFe[t]=YU(_G,Cme[t])}function I3n(t){var n;if((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i!=1)throw ve(new dn(Tjt+(!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i));return n=new Rh,!!SU(b(Ye((!t.b&&(t.b=new Wr(qn,t,4,7)),t.b),0),84))&&Po(n,Bqt(t,SU(b(Ye((!t.b&&(t.b=new Wr(qn,t,4,7)),t.b),0),84)),!1)),!!SU(b(Ye((!t.c&&(t.c=new Wr(qn,t,5,8)),t.c),0),84))&&Po(n,Bqt(t,SU(b(Ye((!t.c&&(t.c=new Wr(qn,t,5,8)),t.c),0),84)),!0)),n}function XVt(t,n){var s,u,f,g,_;n.d?f=t.a.c==(Tm(),RS)?co(n.b):Ss(n.b):f=t.a.c==(Tm(),jy)?co(n.b):Ss(n.b),g=!1;for(u=new Nn(Mn(f.a.Kc(),new L));ri(u);){if(s=b(Gn(u),18),_=er(t.a.f[t.a.g[n.b.p].p]),!_&&!gl(s)&&s.c.i.c==s.d.i.c)continue;if(er(t.a.n[t.a.g[n.b.p].p])||er(t.a.n[t.a.g[n.b.p].p]))continue;if(g=!0,z0(t.b,t.a.g[I_n(s,n.b).p]))return n.c=!0,n.a=s,n}return n.c=g,n.a=null,n}function sDe(t,n,s){var u,f,g,_,S,C,O;if(u=s.gc(),u==0)return!1;else{if(t.Pj())if(C=t.Qj(),g7e(t,n,s),_=u==1?t.Ij(3,null,s.Kc().Pb(),n,C):t.Ij(5,null,s,n,C),t.Mj()){S=u<100?null:new Pv(u),g=n+u;for(f=n;f0){for(_=0;_>16==-15&&t.Cb.Yh()&&Uhe(new Dhe(t.Cb,9,13,s,t.c,Py(pd(b(t.Cb,62)),t)));else if(He(t.Cb,90)){if(t.Db>>16==-23&&t.Cb.Yh())n=t.c,He(n,90)||(n=(Vr(),Lp)),He(s,90)||(s=(Vr(),Lp)),Uhe(new Dhe(t.Cb,9,10,s,n,Py(nu(b(t.Cb,29)),t)))}}}return t.c}function L3n(t,n,s){var u,f,g,_,S,C,O,M,U;s.Ug("Hyperedge merging",1),nxn(t,n),C=new Mo(n.b,0);while(C.b0,S=KX(n,g),s?vIe(S.b,n):vIe(S.g,n),w4(S).c.length==1&&cs(u,S,u.c.b,u.c),f=new js(g,n),jv(t.o,f),fh(t.e.a,g)}}function nHt(t,n){var s,u,f,g,_,S,C;if(u=d.Math.abs(SK(t.b).a-SK(n.b).a),S=d.Math.abs(SK(t.b).b-SK(n.b).b),f=0,C=0,s=1,_=1,u>t.b.b/2+n.b.b/2)f=d.Math.min(d.Math.abs(t.b.c-(n.b.c+n.b.b)),d.Math.abs(t.b.c+t.b.b-n.b.c)),s=1-f/u;if(S>t.b.a/2+n.b.a/2)C=d.Math.min(d.Math.abs(t.b.d-(n.b.d+n.b.a)),d.Math.abs(t.b.d+t.b.a-n.b.d)),_=1-C/S;return g=d.Math.min(s,_),(1-g)*d.Math.sqrt(u*u+S*S)}function P3n(t){var n,s,u,f;Cpe(t,t.e,t.f,(Pw(),S_),!0,t.c,t.i),Cpe(t,t.e,t.f,S_,!1,t.c,t.i),Cpe(t,t.e,t.f,mk,!0,t.c,t.i),Cpe(t,t.e,t.f,mk,!1,t.c,t.i),N3n(t,t.c,t.e,t.f,t.i),u=new Mo(t.i,0);while(u.b=65;s--)jg[s]=s-65<<24>>24;for(u=122;u>=97;u--)jg[u]=u-97+26<<24>>24;for(f=57;f>=48;f--)jg[f]=f-48+52<<24>>24;jg[43]=62,jg[47]=63;for(g=0;g<=25;g++)iv[g]=65+g&Ds;for(_=26,C=0;_<=51;++_,C++)iv[_]=97+C&Ds;for(t=52,S=0;t<=61;++t,S++)iv[t]=48+S&Ds;iv[62]=43,iv[63]=47}function iHt(t,n){var s,u,f,g,_,S;if(f=oLe(t),S=oLe(n),f==S){if(t.e==n.e&&t.a<54&&n.a<54)return t.fn.f?1:0;if(u=t.e-n.e,s=(t.d>0?t.d:d.Math.floor((t.a-1)*hYt)+1)-(n.d>0?n.d:d.Math.floor((n.a-1)*hYt)+1),s>u+1)return f;else if(s0&&(_=m4(_,gHt(u))),pFt(g,_)}else return fO)q=0,re+=C+n,C=0;wO(_,q,re),s=d.Math.max(s,q+M.a),C=d.Math.max(C,M.b),q+=M.a+n}return new Dt(s+n,re+C+n)}function uDe(t,n){var s,u,f,g,_,S,C;if(!wg(t))throw ve(new zl(Sjt));if(u=wg(t),g=u.g,f=u.f,g<=0&&f<=0)return Ht(),Cc;switch(S=t.i,C=t.j,n.g){case 2:case 1:if(S<0)return Ht(),bn;else if(S+t.g>g)return Ht(),Cn;break;case 4:case 3:if(C<0)return Ht(),pn;else if(C+t.f>f)return Ht(),Kn}return _=(S+t.g/2)/g,s=(C+t.f/2)/f,_+s<=1&&_-s<=0?(Ht(),bn):_+s>=1&&_-s>=0?(Ht(),Cn):s<0.5?(Ht(),pn):(Ht(),Kn)}function $3n(t,n,s,u,f){var g,_;if(g=rl(io(n[0],xl),io(u[0],xl)),t[0]=gi(g),g=Cw(g,32),s>=f){for(_=1;_0)f.b[_++]=0,f.b[_++]=g.b[0]-1;for(n=1;n0)Cle(C,C.d-f.d),f.c==(Y0(),w_)&&Trn(C,C.a-f.d),C.d<=0&&C.i>0&&cs(n,C,n.c.b,n.c)}for(g=new me(t.f);g.a0)DW(S,S.i-f.d),f.c==(Y0(),w_)&&xrn(S,S.b-f.d),S.i<=0&&S.d>0&&cs(s,S,s.c.b,s.c)}}function z3n(t,n,s,u,f){var g,_,S,C,O,M,U,q,re;Hr(),ks(t,new g2t),_=M$(t),re=new Ut,q=new Ut,S=null,C=0;while(_.b!=0)if(g=b(_.b==0?null:(Pn(_.b!=0),Df(_,_.a.a)),163),!S||Nh(S)*Od(S)/21&&(C>Nh(S)*Od(S)/2||_.b==0))U=new bX(q),M=Nh(S)/Od(S),O=kpe(U,n,new gA,s,u,f,M),ua(V0(U.e),O),S=U,rn(re.c,U),C=0,q.c.length=0;return Us(re,q),re}function au(t,n,s,u,f){fb();var g,_,S,C,O,M,U;if(eOe(t,"src"),eOe(s,"dest"),U=Ld(t),C=Ld(s),v6e((U.i&4)!=0,"srcType is not an array"),v6e((C.i&4)!=0,"destType is not an array"),M=U.c,_=C.c,v6e((M.i&1)!=0?M==_:(_.i&1)==0,"Array types don't match"),A1n(t,n,s,u,f),(M.i&1)==0&&U!=C)if(O=H2(t),g=H2(s),nt(t)===nt(s)&&nu;)ls(g,S,O[--n])}else for(S=u+f;u0),u.a.Xb(u.c=--u.b),U>q+C&&Nd(u);for(_=new me(re);_.a<_.c.c.length;)g=b(ge(_),418),DT(u,g);if(C0),u.a.Xb(u.c=--u.b)}}function H3n(){ia();var t,n,s,u,f,g;if(cve)return cve;t=(++hs,new Yd(4)),dx(t,o_(fme,!0)),pD(t,o_("M",!0)),pD(t,o_("C",!0)),g=(++hs,new Yd(4));for(u=0;u<11;u++)yu(g,u,u);return n=(++hs,new Yd(4)),dx(n,o_("M",!0)),yu(n,4448,4607),yu(n,65438,65439),f=(++hs,new YM(2)),rE(f,t),rE(f,aP),s=(++hs,new YM(2)),s.Jm(fK(g,o_("L",!0))),s.Jm(n),s=(++hs,new VT(3,s)),s=(++hs,new J6e(f,s)),cve=s,cve}function hx(t,n){var s,u,f,g,_,S,C,O;s=new RegExp(n,"g"),C=mt(or,Bt,2,0,6,1),u=0,O=t,g=null;while(!0)if(S=s.exec(O),S==null||O==""){C[u]=O;break}else{if(_=S.index,C[u]=(Do(0,_,O.length),O.substr(0,_)),O=Of(O,_+S[0].length,O.length),s.lastIndex=0,g==O)C[u]=(Do(0,1,O.length),O.substr(0,1)),O=(fn(1,O.length+1),O.substr(1));g=O,++u}if(t.length>0){f=C.length;while(f>0&&C[f-1]=="")--f;f0)U-=u[0]+t.c,u[0]+=t.c;u[2]>0&&(U-=u[2]+t.c),u[1]=d.Math.max(u[1],U),bK(t.a[1],s.c+n.b+u[0]-(u[1]-U)/2,u[1])}for(g=t.a,S=0,O=g.length;S0?(t.n.c.length-1)*t.i:0;for(u=new me(t.n);u.a1)for(u=ti(f,0);u.b!=u.d.c;){s=b(Jn(u),235),g=0;for(C=new me(s.e);C.a0)n[0]+=t.c,U-=n[0];n[2]>0&&(U-=n[2]+t.c),n[1]=d.Math.max(n[1],U),yK(t.a[1],u.d+s.d+n[0]-(n[1]-U)/2,n[1])}else{ae=u.d+s.d,re=u.a-s.d-s.a;for(_=t.a,C=0,M=_.length;C0||Ww(f.b.d,t.b.d+t.b.a)==0&&u.b<0||Ww(f.b.d+f.b.a,t.b.d)==0&&u.b>0){S=0;break}}else S=d.Math.min(S,nGt(t,f,u));S=d.Math.min(S,lHt(t,g,S,u))}return S}function uG(t,n){var s,u,f,g,_,S,C;if(t.b<2)throw ve(new dn("The vector chain must contain at least a source and a target point."));f=(Pn(t.b!=0),b(t.a.a.c,8)),E$(n,f.a,f.b),C=new RA((!n.a&&(n.a=new Os(lf,n,5)),n.a)),_=ti(t,1);while(_.a=0&&g!=s)throw ve(new dn(qG))}f=0;for(C=0;Crt(Eg(_.g,_.d[0]).a))Pn(C.b>0),C.a.Xb(C.c=--C.b),DT(C,_),f=!0;else if(!!S.e&&S.e.gc()>0){if(g=(!S.e&&(S.e=new Ut),S.e).Mc(n),O=(!S.e&&(S.e=new Ut),S.e).Mc(s),g||O)(!S.e&&(S.e=new Ut),S.e).Fc(_),++_.c}f||rn(u.c,_)}function Q3n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se;if(U=t.a.i+t.a.g/2,q=t.a.i+t.a.g/2,ae=n.i+n.g/2,de=n.j+n.f/2,S=new Dt(ae,de),O=b(It(n,(Hi(),V5)),8),O.a=O.a+U,O.b=O.b+q,g=(S.b-O.b)/(S.a-O.a),u=S.b-g*S.a,ue=s.i+s.g/2,Se=s.j+s.f/2,C=new Dt(ue,Se),M=b(It(s,V5),8),M.a=M.a+U,M.b=M.b+q,_=(C.b-M.b)/(C.a-M.a),f=C.b-_*C.a,re=(u-f)/(_-g),O.a>>0,"0"+n.toString(16)),u="\\x"+Of(s,s.length-2,s.length);else if(t>=ml)s=(n=t>>>0,"0"+n.toString(16)),u="\\v"+Of(s,s.length-6,s.length);else u=""+String.fromCharCode(t&Ds)}return u}function dHt(t){var n,s,u;if(i4(b(ce(t,(Qt(),ms)),101)))for(s=new me(t.j);s.a=n.o&&s.f<=n.f||n.a*0.5<=s.f&&n.a*1.5>=s.f){if(_=b(nr(n.n,n.n.c.length-1),209),_.e+_.d+s.g+f<=u&&(g=b(nr(n.n,n.n.c.length-1),209),g.f-t.f+s.f<=t.b||t.a.c.length==1))return o7e(n,s),!0;else if(n.s+s.g<=u&&(n.t+n.d+s.f+f<=t.b||t.a.c.length==1))return Gt(n.b,s),S=b(nr(n.n,n.n.c.length-1),209),Gt(n.n,new GK(n.s,S.f+S.a+n.i,n.i)),G7e(b(nr(n.n,n.n.c.length-1),209),s),sHt(n,s),!0}return!1}function pHt(t,n,s){var u,f,g,_;if(t.Pj()){if(f=null,g=t.Qj(),u=t.Ij(1,_=Vhe(t,n,s),s,n,g),t.Mj()&&!(t.Yi()&&_!=null?da(_,s):nt(_)===nt(s)))if(_!=null&&(f=t.Oj(_,f)),f=t.Nj(s,f),t.Tj()&&(f=t.Wj(_,s,f)),!f)t.Jj(u);else f.nj(u),f.oj();else if(t.Tj()&&(f=t.Wj(_,s,f)),!f)t.Jj(u);else f.nj(u),f.oj();return _}else{if(_=Vhe(t,n,s),t.Mj()&&!(t.Yi()&&_!=null?da(_,s):nt(_)===nt(s)))f=null,_!=null&&(f=t.Oj(_,null)),f=t.Nj(s,f),!!f&&f.oj();return _}}function iAn(t,n){var s,u,f,g,_;if(n.Ug("Path-Like Graph Wrapping",1),t.b.c.length==0){n.Vg();return}if(f=new b8e(t),_=(f.i==null&&(f.i=lLe(f,new vAe)),rt(f.i)*f.f),s=_/(f.i==null&&(f.i=lLe(f,new vAe)),rt(f.i)),f.b>s){n.Vg();return}switch(b(ce(t,(Qt(),hbe)),351).g){case 2:g=new EAe;break;case 0:g=new yAe;break;default:g=new wAe}if(u=g.og(t,f),!g.pg())switch(b(ce(t,Ree),352).g){case 2:u=iGt(f,u);break;case 1:u=K$t(f,u)}JAn(t,f,u),n.Vg()}function lD(t,n){var s,u,f,g,_,S,C,O;if(n%=24,t.q.getHours()!=n){if(u=new d.Date(t.q.getTime()),u.setDate(u.getDate()+1),S=t.q.getTimezoneOffset()-u.getTimezoneOffset(),S>0)C=S/60|0,O=S%60,f=t.q.getDate(),s=t.q.getHours(),s+C>=24&&++f,g=new d.Date(t.q.getFullYear(),t.q.getMonth(),f,n+C,t.q.getMinutes()+O,t.q.getSeconds(),t.q.getMilliseconds()),t.q.setTime(g.getTime())}_=t.q.getTime(),t.q.setTime(_+3600000),t.q.getHours()!=n&&t.q.setTime(_)}function aAn(t,n){var s,u,f,g;if(yfn(t.d,t.e),t.c.a.$b(),rt(ht(ce(n.j,(Qt(),bee))))!=0||rt(ht(ce(n.j,bee)))!=0){s=V4,nt(ce(n.j,L1))!==nt((Cm(),Wy))&&At(n.j,(Pt(),v_),(nn(),!0)),g=b(ce(n.j,p9),17).a;for(f=0;ff&&++O,Gt(_,(qr(S+O,n.c.length),b(n.c[S+O],17))),C+=(qr(S+O,n.c.length),b(n.c[S+O],17)).a-u,++s;while(s=de&&t.e[C.p]>ae*t.b||Ve>=s*de)rn(q.c,S),S=new Ut,Po(_,g),g.a.$b(),O-=M,re=d.Math.max(re,O*t.b+ue),O+=Ve,Be=Ve,Ve=0,M=0,ue=0}return new js(re,q)}function hpe(t){var n,s,u,f,g,_,S;if(!t.d){if(S=new G2t,n=J9,g=n.a.zc(t,n),g==null){for(u=new kn(tc(t));u.e!=u.i.gc();)s=b(Dn(u),29),ps(S,hpe(s));n.a.Bc(t)!=null,n.a.gc()==0}_=S.i;for(f=(!t.q&&(t.q=new kt(Op,t,11,10)),new kn(t.q));f.e!=f.i.gc();++_)b(Dn(f),411);ps(S,(!t.q&&(t.q=new kt(Op,t,11,10)),t.q)),QT(S),t.d=new n4((b(Ye(Ct((Hv(),an).o),9),19),S.i),S.g),t.e=b(S.g,688),t.e==null&&(t.e=wor),fd(t).b&=-17}return t.d}function xO(t,n,s,u){var f,g,_,S,C,O;if(O=nh(t.e.Dh(),n),C=0,f=b(t.g,124),_l(),b(n,69).xk()){for(_=0;_1||ae==-1)if(U=b(ue,71),q=b(M,71),U.dc())q.$b();else{_=!!El(n),g=0;for(S=t.a?U.Kc():U.Ii();S.Ob();)if(O=b(S.Pb(),58),f=b(Ag(t,O),58),!f){if(t.b&&!_)q.Gi(g,O),++g}else{if(_)C=q.dd(f),C==-1?q.Gi(g,f):g!=C&&q.Ui(g,f);else q.Gi(g,f);++g}}else if(ue==null)M.Wb(null);else f=Ag(t,ue),f==null?t.b&&!El(n)&&M.Wb(ue):M.Wb(f)}}function uAn(t,n){var s,u,f,g,_,S,C,O;s=new Tmt;for(f=new Nn(Mn(co(n).a.Kc(),new L));ri(f);){if(u=b(Gn(f),18),gl(u))continue;if(S=u.c.i,SMe(S,NJ)){if(O=z8e(t,S,NJ,OJ),O==-1)continue;s.b=d.Math.max(s.b,O),!s.a&&(s.a=new Ut),Gt(s.a,S)}}for(_=new Nn(Mn(Ss(n).a.Kc(),new L));ri(_);){if(g=b(Gn(_),18),gl(g))continue;if(C=g.d.i,SMe(C,OJ)){if(O=z8e(t,C,OJ,NJ),O==-1)continue;s.d=d.Math.max(s.d,O),!s.c&&(s.c=new Ut),Gt(s.c,C)}}return s}function hAn(t,n,s,u){var f,g,_,S,C,O,M;if(s.d.i==n.i)return;f=new Ib(t),k2(f,(mn(),mo)),At(f,(Pt(),Ea),s),At(f,(Qt(),ms),(Ao(),xu)),rn(u.c,f),_=new iu,Ec(_,f),Xs(_,(Ht(),bn)),S=new iu,Ec(S,f),Xs(S,Cn),M=s.d,ko(s,_),g=new Mw,nc(g,s),At(g,jl,null),tl(g,S),ko(g,M),O=new Mo(s.b,0);while(O.b1e6)throw ve(new jW("power of ten too big"));if(t<=sa)return YA(tG(k5[1],n),n);u=tG(k5[1],sa),f=u,s=Vc(t-sa),n=Ks(t%sa);while(Kc(s,sa)>0)f=m4(f,u),s=bp(s,sa);f=m4(f,tG(k5[1],n)),f=YA(f,sa),s=Vc(t-sa);while(Kc(s,sa)>0)f=YA(f,sa),s=bp(s,sa);return f=YA(f,n),f}function mHt(t){var n,s,u,f,g,_,S,C,O,M;for(C=new me(t.a);C.aO&&u>O)M=S,O=rt(n.p[S.p])+rt(n.d[S.p])+S.o.b+S.d.a;else{f=!1,s._g()&&s.bh("bk node placement breaks on "+S+" which should have been after "+M);break}if(!f)break}return s._g()&&s.bh(n+" is feasible: "+f),f}function pDe(t,n,s,u){var f,g,_,S,C,O,M,U,q;if(g=new Ib(t),k2(g,(mn(),Su)),At(g,(Qt(),ms),(Ao(),xu)),f=0,n){_=new iu,At(_,(Pt(),Ea),n),At(g,Ea,n.i),Xs(_,(Ht(),bn)),Ec(_,g),q=xm(n.e);for(O=q,M=0,U=O.length;M0){if(f<0&&M.a)f=C,g=O[0],u=0;if(f>=0){if(S=M.b,C==f){if(S-=u++,S==0)return 0}if(!_qt(n,O,M,S,_)){C=f-1,O[0]=g;continue}}else if(f=-1,!_qt(n,O,M,0,_))return 0}else{if(f=-1,Ko(M.c,0)==32){if(U=O[0],EDt(n,O),O[0]>U)continue}else if(Jhn(n,M.c,O[0])){O[0]+=M.c.length;continue}return 0}if(!tIn(_,s))return 0;return O[0]}function bAn(t,n,s){var u,f,g,_,S,C,O,M,U,q;M=new _K(new axt(s)),S=mt(wd,A1,28,t.f.e.c.length,16,1),Q6e(S,S.length),s[n.a]=0;for(O=new me(t.f.e);O.a=0&&!C4(t,M,U))--U;f[M]=U}for(re=0;re=0&&!C4(t,S,ae))--S;g[ae]=S}for(C=0;C<_;C++)for(q=0;qn[q]&&qu[C]&&VQ(t,C,q,!1,!0)}function gDe(t){var n,s,u,f,g,_,S,C;if(s=er(Jt(ce(t,(c0(),gZt)))),g=t.a.c.d,S=t.a.d.d,s)_=_m(no(new Dt(S.a,S.b),g),0.5),C=_m(Uo(t.e),0.5),n=no(ua(new Dt(g.a,g.b),_),C),TIe(t.d,n);else if(f=rt(ht(ce(t.a,TZt))),u=t.d,g.a>=S.a)if(g.b>=S.b)u.a=S.a+(g.a-S.a)/2+f,u.b=S.b+(g.b-S.b)/2-f-t.e.b;else u.a=S.a+(g.a-S.a)/2+f,u.b=g.b+(S.b-g.b)/2+f;else if(g.b>=S.b)u.a=g.a+(S.a-g.a)/2+f,u.b=S.b+(g.b-S.b)/2+f;else u.a=g.a+(S.a-g.a)/2+f,u.b=g.b+(S.b-g.b)/2-f-t.e.b}function uD(t){var n,s,u,f,g,_,S,C;if(!t.f){if(C=new AAe,S=new AAe,n=J9,_=n.a.zc(t,n),_==null){for(g=new kn(tc(t));g.e!=g.i.gc();)f=b(Dn(g),29),ps(C,uD(f));n.a.Bc(t)!=null,n.a.gc()==0}for(u=(!t.s&&(t.s=new kt(_h,t,21,17)),new kn(t.s));u.e!=u.i.gc();)s=b(Dn(u),179),He(s,102)&&ii(S,b(s,19));QT(S),t.r=new lOt(t,(b(Ye(Ct((Hv(),an).o),6),19),S.i),S.g),ps(C,t.r),QT(C),t.f=new n4((b(Ye(Ct(an.o),5),19),C.i),C.g),fd(t).b&=-3}return t.f}function yHt(t){gw(t,new tE(dw(cw(hw(uw(new x2,oE),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new zt))),Ft(t,oE,x0e,jt(F$e)),Ft(t,oE,C0e,jt(Yme)),Ft(t,oE,_5,jt(eZt)),Ft(t,oE,sS,jt(B$e)),Ft(t,oE,n9e,jt(iZt)),Ft(t,oE,i9e,jt(nZt)),Ft(t,oE,r9e,jt(aZt)),Ft(t,oE,a9e,jt(rZt)),Ft(t,oE,d9e,jt(tZt)),Ft(t,oE,f9e,jt(qme)),Ft(t,oE,p9e,jt(P$e)),Ft(t,oE,g9e,jt(TJ))}function WQ(){WQ=z,rWe=Te(we(Qf,1),Om,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),Xsr=new RegExp(`[ -\r\f]+`);try{X9=Te(we(J6n,1),en,2114,0,[new YF((qRe(),JX("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",R$((WW(),WW(),YD))))),new YF(JX("yyyy-MM-dd'T'HH:mm:ss'.'SSS",R$(YD))),new YF(JX("yyyy-MM-dd'T'HH:mm:ss",R$(YD))),new YF(JX("yyyy-MM-dd'T'HH:mm",R$(YD))),new YF(JX("yyyy-MM-dd",R$(YD)))])}catch(t){if(t=Qa(t),!He(t,82))throw ve(t)}}function vAn(t,n){var s,u,f,g;if(f=md(t.d,1)!=0,u=K8e(t,n),u==0&&er(Jt(ce(n.j,(Pt(),v_)))))return 0;if(!er(Jt(ce(n.j,(Pt(),v_))))&&!er(Jt(ce(n.j,lk)))||nt(ce(n.j,(Qt(),L1)))===nt((Cm(),Wy))?n.c.mg(n.e,f):f=er(Jt(ce(n.j,v_))),aG(t,n,f,!0),er(Jt(ce(n.j,lk)))&&At(n.j,lk,(nn(),!1)),er(Jt(ce(n.j,v_))))At(n.j,v_,(nn(),!1)),At(n.j,lk,!0);s=K8e(t,n);do{if(sLe(t),s==0)return 0;f=!f,g=s,aG(t,n,f,!1),s=K8e(t,n)}while(g>s);return g}function vHt(t,n){var s,u,f,g;if(f=md(t.d,1)!=0,u=kQ(t,n),u==0&&er(Jt(ce(n.j,(Pt(),v_)))))return 0;if(!er(Jt(ce(n.j,(Pt(),v_))))&&!er(Jt(ce(n.j,lk)))||nt(ce(n.j,(Qt(),L1)))===nt((Cm(),Wy))?n.c.mg(n.e,f):f=er(Jt(ce(n.j,v_))),aG(t,n,f,!0),er(Jt(ce(n.j,lk)))&&At(n.j,lk,(nn(),!1)),er(Jt(ce(n.j,v_))))At(n.j,v_,(nn(),!1)),At(n.j,lk,!0);s=kQ(t,n);do{if(sLe(t),s==0)return 0;f=!f,g=s,aG(t,n,f,!1),s=kQ(t,n)}while(g>s);return g}function mDe(t,n,s,u){var f,g,_,S,C,O,M,U,q;if(C=no(new Dt(s.a,s.b),t),O=C.a*n.b-C.b*n.a,M=n.a*u.b-n.b*u.a,U=(C.a*u.b-C.b*u.a)/M,q=O/M,M==0)if(O==0){if(f=ua(new Dt(s.a,s.b),_m(new Dt(u.a,u.b),0.5)),g=Kv(t,f),_=Kv(ua(new Dt(t.a,t.b),n),f),S=d.Math.sqrt(u.a*u.a+u.b*u.b)*0.5,g<_&&g<=S)return new Dt(t.a,t.b);if(_<=S)return ua(new Dt(t.a,t.b),n);return null}else return null;else return U>=0&&U<=1&&q>=0&&q<=1?ua(new Dt(t.a,t.b),_m(new Dt(n.a,n.b),U)):null}function _An(t,n,s){var u,f,g,_,S;if(u=b(ce(t,(Qt(),Z1e)),21),s.a>n.a&&(u.Hc((eE(),D9))?t.c.a+=(s.a-n.a)/2:u.Hc(P9)&&(t.c.a+=s.a-n.a)),s.b>n.b&&(u.Hc((eE(),F9))?t.c.b+=(s.b-n.b)/2:u.Hc(B9)&&(t.c.b+=s.b-n.b)),b(ce(t,(Pt(),Tu)),21).Hc((Tl(),Wf))&&(s.a>n.a||s.b>n.b)){for(S=new me(t.a);S.an.a&&(u.Hc((eE(),D9))?t.c.a+=(s.a-n.a)/2:u.Hc(P9)&&(t.c.a+=s.a-n.a)),s.b>n.b&&(u.Hc((eE(),F9))?t.c.b+=(s.b-n.b)/2:u.Hc(B9)&&(t.c.b+=s.b-n.b)),b(ce(t,(Pt(),Tu)),21).Hc((Tl(),Wf))&&(s.a>n.a||s.b>n.b)){for(_=new me(t.a);_.a<_.c.c.length;)if(g=b(ge(_),10),g.k==(mn(),As))f=b(ce(g,Pc),64),f==(Ht(),Cn)?g.n.a+=s.a-n.a:f==Kn&&(g.n.b+=s.b-n.b)}S=t.d,t.f.a=s.a-S.b-S.c,t.f.b=s.b-S.d-S.a}function wAn(t){var n,s,u,f,g,_,S,C,O,M,U,q;n=LGt(t);for(M=(S=new A2(n).a.vc().Kc(),new PW(S));M.a.Ob();){O=(f=b(M.a.Pb(),44),b(f.ld(),10)),U=0,q=0,U=O.d.d,q=O.o.b+O.d.a,t.d[O.p]=0,s=O;while((g=t.a[s.p])!=O)u=bvn(s,g),C=0,t.c==(Tm(),jy)?C=u.d.n.b+u.d.a.b-u.c.n.b-u.c.a.b:C=u.c.n.b+u.c.a.b-u.d.n.b-u.d.a.b,_=rt(t.d[s.p])+C,t.d[g.p]=_,U=d.Math.max(U,g.d.d-_),q=d.Math.max(q,_+g.o.b+g.d.a),s=g;s=O;do t.d[s.p]=rt(t.d[s.p])+U,s=t.a[s.p];while(s!=O);t.b[O.p]=U+q}}function hD(t,n,s){var u,f,g,_,S,C,O,M,U,q;if(g=0,_=t.t,f=0,u=0,C=0,q=0,U=0,s)t.n.c.length=0,Gt(t.n,new GK(t.s,t.t,t.i));S=0;for(M=new me(t.b);M.a0?t.i:0)>n&&C>0){if(g=0,_+=C+t.i,f=d.Math.max(f,q),u+=C+t.i,C=0,q=0,s)++U,Gt(t.n,new GK(t.s,_,t.i));S=0}q+=O.g+(S>0?t.i:0),C=d.Math.max(C,O.f),s&&G7e(b(nr(t.n,U),209),O),g+=O.g+(S>0?t.i:0),++S}if(f=d.Math.max(f,q),u+=C,s)t.r=f,t.d=u,q7e(t.j);return new If(t.s,t.t,f,u)}function dpe(t){var n,s,u,f,g,_,S,C,O,M,U,q;t.b=!1,U=Wa,C=Gs,q=Wa,O=Gs;for(u=t.e.a.ec().Kc();u.Ob();){s=b(u.Pb(),272),f=s.a,U=d.Math.min(U,f.c),C=d.Math.max(C,f.c+f.b),q=d.Math.min(q,f.d),O=d.Math.max(O,f.d+f.a);for(_=new me(s.c);_.a<_.c.c.length;)if(g=b(ge(_),407),n=g.a,n.a)M=f.d+g.b.b,S=M+g.c,q=d.Math.min(q,M),O=d.Math.max(O,S);else M=f.c+g.b.a,S=M+g.c,U=d.Math.min(U,M),C=d.Math.max(C,S)}t.a=new Dt(C-U,O-q),t.c=new Dt(U+t.d.a,q+t.d.b)}function P4(t){var n,s,u,f,g,_,S,C;if(!t.a){if(t.o=null,C=new U4t(t),n=new U2t,s=J9,S=s.a.zc(t,s),S==null){for(_=new kn(tc(t));_.e!=_.i.gc();)g=b(Dn(_),29),ps(C,P4(g));s.a.Bc(t)!=null,s.a.gc()==0}for(f=(!t.s&&(t.s=new kt(_h,t,21,17)),new kn(t.s));f.e!=f.i.gc();)u=b(Dn(f),179),He(u,331)&&ii(n,b(u,35));QT(n),t.k=new cOt(t,(b(Ye(Ct((Hv(),an).o),7),19),n.i),n.g),ps(C,t.k),QT(C),t.a=new n4((b(Ye(Ct(an.o),4),19),C.i),C.g),fd(t).b&=-2}return t.a}function bDe(t,n,s,u){var f,g,_,S,C,O,M;if(M=nh(t.e.Dh(),n),f=0,g=b(t.g,124),C=null,_l(),b(n,69).xk()){for(S=0;St.o.a)M=(C-t.o.a)/2,S.b=d.Math.max(S.b,M),S.c=d.Math.max(S.c,M)}function TAn(t){var n,s,u,f,g,_,S,C;g=new p7t,tan(g,(ZA(),Par));for(u=(f=ide(t,mt(or,Bt,2,0,6,1)),new cM(new Qh(new ice(t,f).b)));u.bS?1:-1:DLe(t.a,n.a,g),f==-1)U=-C,M=_==C?Rhe(n.a,S,t.a,g):Ohe(n.a,S,t.a,g);else if(U=_,_==C){if(f==0)return Am(),jD;M=Rhe(t.a,g,n.a,S)}else M=Ohe(t.a,g,n.a,S);return O=new B2(U,M.length,M),p8(O),O}function xAn(t,n){var s,u,f,g;if(g=rHt(n),!n.c&&(n.c=new kt(ld,n,9,9)),ys(new Pr(null,(!n.c&&(n.c=new kt(ld,n,9,9)),new Gr(n.c,16))),new cxt(g)),f=b(ce(g,(Pt(),Tu)),21),bRn(n,f),f.Hc((Tl(),Wf)))for(u=new kn((!n.c&&(n.c=new kt(ld,n,9,9)),n.c));u.e!=u.i.gc();)s=b(Dn(u),123),YRn(t,n,g,s);return b(It(n,(Qt(),EE)),181).gc()!=0&&jzt(n,g),er(Jt(ce(g,Pze)))&&f.Fc(lee),$a(g,wz)&&n3t(new y7e(rt(ht(ce(g,wz)))),g),nt(It(n,Mx))===nt((Cb(),Zy))?m6n(t,n,g):e6n(t,n,g),g}function CAn(t){var n,s,u,f,g,_,S,C;for(f=new me(t.b);f.a0?Of(s.a,0,g-1):"";else return!s?t:s.a}function kAn(t,n){var s,u,f,g,_,S,C;n.Ug("Sort By Input Model "+ce(t,(Qt(),L1)),1),f=0;for(u=new me(t.b);u.a=t.b.length)g[f++]=_.b[u++],g[f++]=_.b[u++];else if(u>=_.b.length)g[f++]=t.b[s++],g[f++]=t.b[s++];else if(_.b[u]0?t.i:0);++n}t7e(t.n,C),t.d=s,t.r=u,t.g=0,t.f=0,t.e=0,t.o=Wa,t.p=Wa;for(g=new me(t.b);g.a0)f=(!t.n&&(t.n=new kt(Dl,t,1,7)),b(Ye(t.n,0),135)).a,!f||Bi(Bi((n.a+=' "',n),f),'"')}else Bi(Bi((n.a+=' "',n),u),'"');return s=(!t.b&&(t.b=new Wr(qn,t,4,7)),!(t.b.i<=1&&(!t.c&&(t.c=new Wr(qn,t,5,8)),t.c.i<=1))),s?n.a+=" [":n.a+=" ",Bi(n,uIe(new Qle,new kn(t.b))),s&&(n.a+="]"),n.a+=L0e,s&&(n.a+="["),Bi(n,uIe(new Qle,new kn(t.c))),s&&(n.a+="]"),n.a}function RAn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;wt=t.c,Ot=n.c,s=rc(wt.a,t,0),u=rc(Ot.a,n,0),Ve=b(jw(t,(Sl(),ad)).Kc().Pb(),12),wr=b(jw(t,Yu).Kc().Pb(),12),et=b(jw(n,ad).Kc().Pb(),12),tn=b(jw(n,Yu).Kc().Pb(),12),Se=xm(Ve.e),Wt=xm(wr.g),Be=xm(et.e),xr=xm(tn.g),rx(t,u,Ot);for(_=Be,M=0,ae=_.length;MM)new U2((Y0(),zx),s,n,O-M);else if(O>0&&M>0)new U2((Y0(),zx),n,s,0),new U2(zx,s,n,0);return _}function NAn(t,n,s){var u,f,g;t.a=new Ut;for(g=ti(n.b,0);g.b!=g.d.c;){f=b(Jn(g),40);while(b(ce(f,(Oc(),Vm)),17).a>t.a.c.length-1)Gt(t.a,new js(V4,JPe));if(u=b(ce(f,Vm),17).a,s==(Ms(),Kl)||s==sc)f.e.art(ht(b(nr(t.a,u),42).b))&&Ale(b(nr(t.a,u),42),f.e.a+f.f.a);else f.e.brt(ht(b(nr(t.a,u),42).b))&&Ale(b(nr(t.a,u),42),f.e.b+f.f.b)}}function wHt(t,n,s,u){var f,g,_,S,C,O,M;if(g=WX(u),S=er(Jt(ce(u,(Qt(),Ize)))),(S||er(Jt(ce(t,wee))))&&!i4(b(ce(t,ms),101)))f=t5(g),C=aDe(t,s,s==(Sl(),Yu)?f:DU(f));else{if(C=new iu,Ec(C,t),n)M=C.n,M.a=n.a-t.n.a,M.b=n.b-t.n.b,AUt(M,0,0,t.o.a,t.o.b),Xs(C,VVt(C,g));else f=t5(g),Xs(C,s==(Sl(),Yu)?f:DU(f));switch(_=b(ce(u,(Pt(),Tu)),21),O=C.j,g.g){case 2:case 1:(O==(Ht(),pn)||O==Kn)&&_.Fc((Tl(),ak));break;case 4:case 3:(O==(Ht(),Cn)||O==bn)&&_.Fc((Tl(),ak))}}return C}function SHt(t,n){var s,u,f,g,_,S;for(_=new W2(new R2(t.f.b).a);_.b;){if(g=Hw(_),f=b(g.ld(),602),n==1){if(f.Af()!=(Ms(),jf)&&f.Af()!=Vg)continue}else if(f.Af()!=(Ms(),Kl)&&f.Af()!=sc)continue;switch(u=b(b(g.md(),42).b,86),S=b(b(g.md(),42).a,194),s=S.c,f.Af().g){case 2:u.g.c=t.e.a,u.g.b=d.Math.max(1,u.g.b+s);break;case 1:u.g.c=u.g.c+s,u.g.b=d.Math.max(1,u.g.b-s);break;case 4:u.g.d=t.e.b,u.g.a=d.Math.max(1,u.g.a+s);break;case 3:u.g.d=u.g.d+s,u.g.a=d.Math.max(1,u.g.a-s)}}}function LAn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue;S=mt(ci,$i,28,n.b.c.length,15,1),O=mt(l1e,Rt,273,n.b.c.length,0,1),C=mt(N1,Gy,10,n.b.c.length,0,1);for(U=t.a,q=0,re=U.length;q0&&!!C[u]&&(ae=l4(t.b,C[u],f)),ue=d.Math.max(ue,f.c.c.b+ae);for(g=new me(M.e);g.a1)throw ve(new dn(XG));if(!C)g=y1(n,u.Kc().Pb()),_.Fc(g)}return ELe(t,zMe(t,n,s),_)}function KQ(t,n,s){var u,f,g,_,S,C,O,M;if(Nb(t.e,n))C=(_l(),b(n,69).xk()?new lK(n,t):new v$(n,t)),RQ(C.c,C.b),WM(C,b(s,16));else{M=nh(t.e.Dh(),n),u=b(t.g,124);for(_=0;_"}C!=null&&(n.a+=""+C)}else if(t.e)S=t.e.zb,S!=null&&(n.a+=""+S);else if(n.a+="?",t.b)n.a+=" super ",bpe(t.b,n);else if(t.f)n.a+=" extends ",bpe(t.f,n)}function FAn(t){t.b=null,t.a=null,t.o=null,t.q=null,t.v=null,t.w=null,t.B=null,t.p=null,t.Q=null,t.R=null,t.S=null,t.T=null,t.U=null,t.V=null,t.W=null,t.bb=null,t.eb=null,t.ab=null,t.H=null,t.db=null,t.c=null,t.d=null,t.f=null,t.n=null,t.r=null,t.s=null,t.u=null,t.G=null,t.J=null,t.e=null,t.j=null,t.i=null,t.g=null,t.k=null,t.t=null,t.F=null,t.I=null,t.L=null,t.M=null,t.O=null,t.P=null,t.$=null,t.N=null,t.Z=null,t.cb=null,t.K=null,t.D=null,t.A=null,t.C=null,t._=null,t.fb=null,t.X=null,t.Y=null,t.gb=!1,t.hb=!1}function $An(t){var n,s,u,f;if(u=Rpe((!t.c&&(t.c=K$(Vc(t.f))),t.c),0),t.e==0||t.a==0&&t.f!=-1&&t.e<0)return u;if(n=oLe(t)<0?1:0,s=t.e,f=(u.length+1+d.Math.abs(Ks(t.e)),new KC),n==1&&(f.a+="-"),t.e>0)if(s-=u.length-n,s>=0){f.a+="0.";for(;s>gE.length;s-=gE.length)yOt(f,gE);r6t(f,gE,Ks(s)),Bi(f,(fn(n,u.length+1),u.substr(n)))}else s=n-s,Bi(f,Of(u,n,Ks(s))),f.a+=".",Bi(f,sOe(u,Ks(s)));else{Bi(f,(fn(n,u.length+1),u.substr(n)));for(;s<-gE.length;s+=gE.length)yOt(f,gE);r6t(f,gE,Ks(-s))}return f.a}function ype(t){var n,s,u,f,g,_,S,C,O;if(t.k!=(mn(),Es))return!1;if(t.j.c.length<=1)return!1;if(g=b(ce(t,(Qt(),ms)),101),g==(Ao(),xu))return!1;if(f=(tx(),(!t.q?(Hr(),Hr(),I1):t.q)._b(TS)?u=b(ce(t,TS),203):u=b(ce(zo(t),d9),203),u),f==Lee)return!1;if(!(f==gk||f==pk)){if(_=rt(ht(ex(t,f9))),n=b(ce(t,Tz),140),!n&&(n=new VIe(_,_,_,_)),O=Tc(t,(Ht(),bn)),C=n.d+n.a+(O.gc()-1)*_,C>t.o.b)return!1;if(s=Tc(t,Cn),S=n.d+n.a+(s.gc()-1)*_,S>t.o.b)return!1}return!0}function UAn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;n.Ug("Orthogonal edge routing",1),O=rt(ht(ce(t,(Qt(),fk)))),s=rt(ht(ce(t,hk))),u=rt(ht(ce(t,SE))),q=new Gue(0,s),de=0,_=new Mo(t.b,0),S=null,M=null,C=null,U=null;do{if(M=_.b<_.d.gc()?(Pn(_.b<_.d.gc()),b(_.d.Xb(_.c=_.b++),30)):null,U=!M?null:M.a,S)_De(S,de),de+=S.c.a;if(ue=!S?de:de+u,ae=xDe(q,t,C,U,ue),f=!S||Dj(C,(FQ(),Rz)),g=!M||Dj(U,(FQ(),Rz)),ae>0)re=(ae-1)*s,!!S&&(re+=u),!!M&&(re+=u),ren||er(Jt(It(C,(Lg(),Bz)))))f=0,g+=M.b+s,rn(U.c,M),M=new FOe(g,s),u=new _de(0,M.f,M,s),wX(M,u),f=0;if(u.b.c.length==0||!er(Jt(It(Ya(C),(Lg(),hye))))&&(C.f>=u.o&&C.f<=u.f||u.a*0.5<=C.f&&u.a*1.5>=C.f))o7e(u,C);else _=new _de(u.s+u.r+s,M.f,M,s),wX(M,_),o7e(_,C);f=C.i+C.g}return rn(U.c,M),U}function dD(t){var n,s,u,f;if(t.b==null||t.b.length<=2)return;if(t.a)return;n=0,f=0;while(f=t.b[f+1])f+=2;else if(s0){u=new Zh(b(_a(t.a,g),21)),Hr(),ks(u,new i5e(n)),f=new Mo(g.b,0);while(f.b0&&u>=-6)if(u>=0)w$(g,s-Ks(t.e),String.fromCharCode(46));else cde(g,n-1,n-1,"0."),w$(g,n+1,yp(gE,0,-Ks(u)-1));else{if(s-n>=1)w$(g,n,String.fromCharCode(46)),++s;w$(g,s,String.fromCharCode(69)),u>0&&w$(g,++s,String.fromCharCode(43)),w$(g,++s,""+a8(Vc(u)))}return t.g=g.a,t.g}function XAn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt;u=rt(ht(ce(n,(Qt(),Lze)))),wt=b(ce(n,p9),17).a,q=4,f=3,Ot=20/wt,re=!1,C=0,_=sa;do{g=C!=1,U=C!=0,Wt=0;for(de=t.a,Be=0,et=de.length;Bewt))C=2,_=sa;else if(C==0)C=1,_=Wt;else C=0,_=Wt;else re=Wt>=_||_-Wt0?1:vw(isNaN(u),isNaN(0)))>=0^(a0(Bm),(d.Math.abs(S)<=Bm||S==0||isNaN(S)&&isNaN(0)?0:S<0?-1:S>0?1:vw(isNaN(S),isNaN(0)))>=0))return d.Math.max(S,u);if(a0(Bm),(d.Math.abs(u)<=Bm||u==0||isNaN(u)&&isNaN(0)?0:u<0?-1:u>0?1:vw(isNaN(u),isNaN(0)))>0)return d.Math.sqrt(S*S+u*u);return-d.Math.sqrt(S*S+u*u)}function rE(t,n){var s,u,f,g,_,S;if(!n)return;if(!t.a&&(t.a=new qW),t.e==2){HW(t.a,n);return}if(n.e==1){for(f=0;f=ml?Ol(s,s7e(u)):_6(s,u&Ds),_=(++hs,new she(10,null,0)),Dun(t.a,_,S-1);else s=(_.Mm().length+g,new EM),Ol(s,_.Mm());if(n.e==0)u=n.Km(),u>=ml?Ol(s,s7e(u)):_6(s,u&Ds);else Ol(s,n.Mm());b(_,530).b=s.a}function JAn(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(s.dc())return;S=0,q=0,u=s.Kc(),ae=b(u.Pb(),17).a;while(S1&&(C=O.Hg(C,t.a,S));if(C.c.length==1)return b(nr(C,C.c.length-1),238);if(C.c.length==2)return zAn((qr(0,C.c.length),b(C.c[0],238)),(qr(1,C.c.length),b(C.c[1],238)),_,g);return null}function i5n(t,n,s){var u,f,g,_,S,C,O;s.Ug("Find roots",1),t.a.c.length=0;for(f=ti(n.b,0);f.b!=f.d.c;)if(u=b(Jn(f),40),u.b.b==0)At(u,(Ma(),T_),(nn(),!0)),Gt(t.a,u);switch(t.a.c.length){case 0:g=new vde(0,n,"DUMMY_ROOT"),At(g,(Ma(),T_),(nn(),!0)),At(g,Mbe,!0),Oi(n.b,g);break;case 1:break;default:_=new vde(0,n,BZ);for(C=new me(t.a);C.a=d.Math.abs(u.b))u.b=0,g.d+g.a>_.d&&g.d<_.d+_.a&&nK(u,d.Math.max(_.c-(g.c+g.b),g.c-(_.c+_.b)));else u.a=0,g.c+g.b>_.c&&g.c<_.c+_.b&&nK(u,d.Math.max(_.d-(g.d+g.a),g.d-(_.d+_.a)));else nK(u,nHt(b(t.b,68),b(n.b,68)));f=d.Math.sqrt(u.a*u.a+u.b*u.b),f=Q$t(XD,n,f,u),nK(u,f),Aue(b(n.b,68),u),Ju(n.a,new t5e(u)),b(XD.b,68),yNe(XD,O$e,n)}}function a5n(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae;t.f=new Ble,O=0,f=0;for(_=new me(t.e.b);_.a<_.c.c.length;){g=b(ge(_),30);for(C=new me(g.a);C.a0){if(n=new GRe(t.i,t.g),s=t.i,g=s<100?null:new Pv(s),t.Tj())for(u=0;u0){S=t.g,O=t.i,v8(t),g=O<100?null:new Pv(O);for(u=0;u>13|(t.m&15)<<9,f=t.m>>4&8191,g=t.m>>17|(t.h&255)<<5,_=(t.h&1048320)>>8,S=n.l&8191,C=n.l>>13|(n.m&15)<<9,O=n.m>>4&8191,M=n.m>>17|(n.h&255)<<5,U=(n.h&1048320)>>8,xr=s*S,wr=u*S,tn=f*S,Kr=g*S,Rn=_*S,C!=0)wr+=s*C,tn+=u*C,Kr+=f*C,Rn+=g*C;if(O!=0)tn+=s*O,Kr+=u*O,Rn+=f*O;if(M!=0)Kr+=s*M,Rn+=u*M;return U!=0&&(Rn+=s*U),re=xr&yd,ae=(wr&511)<<13,q=re+ae,de=xr>>22,Se=wr>>9,Be=(tn&262143)<<4,Ve=(Kr&31)<<17,ue=de+Se+Be+Ve,wt=tn>>18,Ot=Kr>>5,Wt=(Rn&4095)<<8,et=wt+Ot+Wt,ue+=q>>22,q&=yd,et+=ue>>22,ue&=yd,et&=Mb,Qu(q,ue,et)}function MHt(t){var n,s,u,f,g,_,S;if(S=b(nr(t.j,0),12),S.g.c.length!=0&&S.e.c.length!=0)throw ve(new zl("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(S.g.c.length!=0){g=Wa;for(s=new me(S.g);s.a4)if(t.fk(n)){if(t.al()){if(f=b(n,54),u=f.Eh(),C=u==t.e&&(t.ml()?f.yh(f.Fh(),t.il())==t.jl():-1-f.Fh()==t.Lj()),t.nl()&&!C&&!u&&!!f.Jh()){for(g=0;g0&&DUt(t,S,U);for(f=new me(U);f.at.d[_.p])s+=JOe(t.b,g)*b(C.b,17).a,jv(t.a,$t(g));while(!_M(t.a))NNe(t.b,b(BA(t.a),17).a)}return s}function c5n(t,n){var s,u,f,g,_,S,C,O,M,U;if(M=b(ce(t,(Pt(),Pc)),64),u=b(nr(t.j,0),12),M==(Ht(),pn)?Xs(u,Kn):M==Kn&&Xs(u,pn),b(ce(n,(Qt(),EE)),181).Hc((Md(),IE))){if(C=rt(ht(ce(t,EN))),O=rt(ht(ce(t,wN))),_=rt(ht(ce(t,$x))),S=b(ce(n,Bx),21),S.Hc((nd(),Gb))){s=O,U=t.o.a/2-u.n.a;for(g=new me(u.f);g.a0&&(O=t.n.a/g);break;case 2:case 4:f=t.i.o.b,f>0&&(O=t.n.b/f)}At(t,(Pt(),_S),O)}if(C=t.o,_=t.a,u)_.a=u.a,_.b=u.b,t.d=!0;else if(n!=qg&&n!=A_&&S!=Cc)switch(S.g){case 1:_.a=C.a/2;break;case 2:_.a=C.a,_.b=C.b/2;break;case 3:_.a=C.a/2,_.b=C.b;break;case 4:_.b=C.b/2}else _.a=C.a/2,_.b=C.b/2}function fD(t){var n,s,u,f,g,_,S,C,O,M;if(t.Pj())if(M=t.Ej(),C=t.Qj(),M>0)if(n=new hLe(t.pj()),s=M,g=s<100?null:new Pv(s),k$(t,s,n.g),f=s==1?t.Ij(4,Ye(n,0),null,0,C):t.Ij(6,n,null,-1,C),t.Mj()){for(u=new kn(n);u.e!=u.i.gc();)g=t.Oj(Dn(u),g);if(!g)t.Jj(f);else g.nj(f),g.oj()}else if(!g)t.Jj(f);else g.nj(f),g.oj();else k$(t,t.Ej(),t.Fj()),t.Jj(t.Ij(6,(Hr(),Jo),null,-1,C));else if(t.Mj())if(M=t.Ej(),M>0){S=t.Fj(),O=M,k$(t,M,S),g=O<100?null:new Pv(O);for(u=0;u1&&Nh(_)*Od(_)/2>S[0]){g=0;while(gS[g])++g;ae=new Sy(ue,0,g+1),U=new bX(ae),M=Nh(_)/Od(_),C=kpe(U,n,new gA,s,u,f,M),ua(V0(U.e),C),MA(gO(q,U),DO),re=new Sy(ue,g+1,ue.c.length),K7e(q,re),ue.c.length=0,O=0,DOt(S,S.length,0)}else de=q.b.c.length==0?null:nr(q.b,0),de!=null&&tde(q,0),O>0&&(S[O]=S[O-1]),S[O]+=Nh(_)*Od(_),++O,rn(ue.c,_);return ue}function g5n(t,n){var s,u,f,g;s=n.b,g=new Zh(s.j),f=0,u=s.j,u.c.length=0,kw(b(Y2(t.b,(Ht(),pn),(Vw(),bS)),15),s),f=UU(g,f,new Obt,u),kw(b(Y2(t.b,pn,y_),15),s),f=UU(g,f,new Tbt,u),kw(b(Y2(t.b,pn,mS),15),s),kw(b(Y2(t.b,Cn,bS),15),s),kw(b(Y2(t.b,Cn,y_),15),s),f=UU(g,f,new Nbt,u),kw(b(Y2(t.b,Cn,mS),15),s),kw(b(Y2(t.b,Kn,bS),15),s),f=UU(g,f,new Lbt,u),kw(b(Y2(t.b,Kn,y_),15),s),f=UU(g,f,new Mbt,u),kw(b(Y2(t.b,Kn,mS),15),s),kw(b(Y2(t.b,bn,bS),15),s),f=UU(g,f,new kbt,u),kw(b(Y2(t.b,bn,y_),15),s),kw(b(Y2(t.b,bn,mS),15),s)}function m5n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re;for(S=new me(n);S.a0.5?Se-=_*2*(ae-0.5):ae<0.5&&(Se+=g*2*(0.5-ae)),f=S.d.b,Sede.a-ue-M&&(Se=de.a-ue-M),S.n.a=n+Se}}function _5n(t){var n,s,u,f,g;if(u=b(ce(t,(Qt(),sh)),171),u==(Uf(),__)){for(s=new Nn(Mn(co(t).a.Kc(),new L));ri(s);)if(n=b(Gn(s),18),!KMt(n))throw ve(new py(B0e+zU(t)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(u==Nx){for(g=new Nn(Mn(Ss(t).a.Kc(),new L));ri(g);)if(f=b(Gn(g),18),!KMt(f))throw ve(new py(B0e+zU(t)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function fG(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae;if(t.e&&t.c.c>19!=0)n=X6(n),C=!C;if(_=iCn(n),g=!1,f=!1,u=!1,t.h==SG&&t.m==0&&t.l==0)if(f=!0,g=!0,_==-1)t=ERt((L6(),PFe)),u=!0,C=!C;else return S=y8e(t,_),C&&yde(S),s&&(p_=Qu(0,0,0)),S;else if(t.h>>19!=0)g=!0,t=X6(t),u=!0,C=!C;if(_!=-1)return L1n(t,_,C,g,s);if(nMe(t,n)<0)return s&&(g?p_=X6(t):p_=Qu(t.l,t.m,t.h)),Qu(0,0,0);return t3n(u?t:Qu(t.l,t.m,t.h),n,C,g,f,s)}function wpe(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae;if(_=t.e,C=n.e,_==0)return n;if(C==0)return t;if(g=t.d,S=n.d,g+S==2){if(s=io(t.a[0],xl),u=io(n.a[0],xl),_==C)return M=rl(s,u),ae=gi(M),re=gi(Vv(M,32)),re==0?new _b(_,ae):new B2(_,2,Te(we(ci,1),$i,28,15,[ae,re]));return Am(),Mj(_<0?bp(u,s):bp(s,u),0)?r_(_<0?bp(u,s):bp(s,u)):l8(r_(ky(_<0?bp(u,s):bp(s,u))))}else if(_==C)q=_,U=g>=S?Ohe(t.a,g,n.a,S):Ohe(n.a,S,t.a,g);else{if(f=g!=S?g>S?1:-1:DLe(t.a,n.a,g),f==0)return Am(),jD;if(f==1)q=_,U=Rhe(t.a,g,n.a,S);else q=C,U=Rhe(n.a,S,t.a,g)}return O=new B2(q,U.length,U),p8(O),O}function w5n(t,n){var s,u,f,g,_,S,C;if(t.g>n.f||n.g>t.f)return;s=0,u=0;for(_=t.w.a.ec().Kc();_.Ob();)f=b(_.Pb(),12),Ide(Sc(Te(we(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,n.g,n.f)&&++s;for(S=t.r.a.ec().Kc();S.Ob();)f=b(S.Pb(),12),Ide(Sc(Te(we(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,n.g,n.f)&&--s;for(C=n.w.a.ec().Kc();C.Ob();)f=b(C.Pb(),12),Ide(Sc(Te(we(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,t.g,t.f)&&++u;for(g=n.r.a.ec().Kc();g.Ob();)f=b(g.Pb(),12),Ide(Sc(Te(we(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,t.g,t.f)&&--u;if(s=0)return s;switch(Nw(Hl(t,s))){case 2:{if(Br("",Oy(t,s.qk()).xe())){if(C=z$(Hl(t,s)),S=S6(Hl(t,s)),M=w8e(t,n,C,S),M)return M;f=Z8e(t,n);for(_=0,U=f.gc();_1)throw ve(new dn(XG));M=nh(t.e.Dh(),n),u=b(t.g,124);for(_=0;_1;for(O=new Cg(q.b);_c(O.a)||_c(O.b);)C=b(_c(O.a)?ge(O.a):ge(O.b),18),U=C.c==q?C.d:C.c,d.Math.abs(Sc(Te(we(uo,1),Bt,8,0,[U.i.n,U.n,U.a])).b-_.b)>1&&c4n(t,C,_,g,q)}}function A5n(t){var n,s,u,f,g,_;if(f=new Mo(t.e,0),u=new Mo(t.a,0),t.d)for(s=0;sbge){g=n,_=0;while(d.Math.abs(n-g)0),f.a.Xb(f.c=--f.b),V3n(t,t.b-_,g,u,f),Pn(f.b0),u.a.Xb(u.c=--u.b)}if(!t.d)for(s=0;s0)t.f[M.p]=re/(M.e.c.length+M.g.c.length),t.c=d.Math.min(t.c,t.f[M.p]),t.b=d.Math.max(t.b,t.f[M.p]);else S&&(t.f[M.p]=re)}}function I5n(t){t.b=null,t.bb=null,t.fb=null,t.qb=null,t.a=null,t.c=null,t.d=null,t.e=null,t.f=null,t.n=null,t.M=null,t.L=null,t.Q=null,t.R=null,t.K=null,t.db=null,t.eb=null,t.g=null,t.i=null,t.j=null,t.k=null,t.gb=null,t.o=null,t.p=null,t.q=null,t.r=null,t.$=null,t.ib=null,t.S=null,t.T=null,t.t=null,t.s=null,t.u=null,t.v=null,t.w=null,t.B=null,t.A=null,t.C=null,t.D=null,t.F=null,t.G=null,t.H=null,t.I=null,t.J=null,t.P=null,t.Z=null,t.U=null,t.V=null,t.W=null,t.X=null,t.Y=null,t._=null,t.ab=null,t.cb=null,t.hb=null,t.nb=null,t.lb=null,t.mb=null,t.ob=null,t.pb=null,t.jb=null,t.kb=null,t.N=!1,t.O=!1}function O5n(t,n,s){var u,f,g,_;s.Ug("Graph transformation ("+t.a+")",1),_=Bw(n.a);for(g=new me(n.b);g.a=S.b.c)&&(S.b=n),!S.c||n.c<=S.c.c)S.d=S.c,S.c=n;(!S.e||n.d>=S.e.d)&&(S.e=n),(!S.f||n.d<=S.f.d)&&(S.f=n)}return u=new lQ((j6(),gS)),X$(t,ZZt,new Qh(Te(we(cz,1),en,382,0,[u]))),_=new lQ(Cx),X$(t,QZt,new Qh(Te(we(cz,1),en,382,0,[_]))),f=new lQ(xx),X$(t,XZt,new Qh(Te(we(cz,1),en,382,0,[f]))),g=new lQ(J4),X$(t,KZt,new Qh(Te(we(cz,1),en,382,0,[g]))),Wfe(u.c,gS),Wfe(f.c,xx),Wfe(g.c,J4),Wfe(_.c,Cx),S.a.c.length=0,Us(S.a,u.c),Us(S.a,$f(f.c)),Us(S.a,g.c),Us(S.a,$f(_.c)),S}function M5n(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae;n.Ug(jWt,1),re=rt(ht(It(t,(w1(),Vx)))),_=rt(ht(It(t,(Lg(),O9)))),S=b(It(t,I9),107),aLe((!t.a&&(t.a=new kt(ra,t,10,11)),t.a)),M=IHt((!t.a&&(t.a=new kt(ra,t,10,11)),t.a),re,_),!t.a&&(t.a=new kt(ra,t,10,11));for(O=new me(M);O.a0)t.a=C+(re-1)*g,n.c.b+=t.a,n.f.b+=t.a}if(ae.a.gc()!=0)q=new Gue(1,g),re=xDe(q,n,ae,ue,n.f.b+C-n.c.b),re>0&&(n.f.b+=C+(re-1)*g)}function BHt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;M=rt(ht(ce(t,(Qt(),CS)))),u=rt(ht(ce(t,Vze))),q=new ble,At(q,CS,M+u),O=n,Se=O.d,ue=O.c.i,Be=O.d.i,de=jRe(ue.c),Ve=jRe(Be.c),f=new Ut;for(U=de;U<=Ve;U++){if(S=new Ib(t),k2(S,(mn(),mo)),At(S,(Pt(),Ea),O),At(S,ms,(Ao(),xu)),At(S,Aee,q),re=b(nr(t.b,U),30),U==de?rx(S,re.a.c.length-s,re):Lo(S,re),et=rt(ht(ce(O,qy))),et<0)et=0,At(O,qy,et);S.o.b=et,ae=d.Math.floor(et/2),_=new iu,Xs(_,(Ht(),bn)),Ec(_,S),_.n.b=ae,C=new iu,Xs(C,Cn),Ec(C,S),C.n.b=ae,ko(O,_),g=new Mw,nc(g,O),At(g,jl,null),tl(g,C),ko(g,Se),S2n(S,O,g),rn(f.c,g),O=g}return f}function Spe(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve;C=b(By(t,(Ht(),bn)).Kc().Pb(),12).e,re=b(By(t,Cn).Kc().Pb(),12).g,S=C.c.length,Ve=Tg(b(nr(t.j,0),12));while(S-- >0){ue=(qr(0,C.c.length),b(C.c[0],18)),f=(qr(0,re.c.length),b(re.c[0],18)),Be=f.d.e,g=rc(Be,f,0),ipn(ue,f.d,g),tl(f,null),ko(f,null),ae=ue.a,n&&Oi(ae,new sl(Ve));for(u=ti(f.a,0);u.b!=u.d.c;)s=b(Jn(u),8),Oi(ae,new sl(s));Se=ue.b;for(q=new me(f.b);q.a_)&&$s(t.b,b(de.b,18));++S}g=_}}}function wDe(t,n){var s;if(n==null||Br(n,mh))return null;if(n.length==0&&t.k!=(Fy(),z5))return null;switch(t.k.g){case 1:return nQ(n,jO)?(nn(),tN):nQ(n,Dge)?(nn(),g_):null;case 2:try{return $t(Zd(n,Qo,sa))}catch(u){if(u=Qa(u),He(u,130))return null;else throw ve(u)}case 4:try{return ix(n)}catch(u){if(u=Qa(u),He(u,130))return null;else throw ve(u)}case 3:return n;case 5:return iBt(t),bGt(t,n);case 6:return iBt(t),Dxn(t,t.a,n);case 7:try{return s=YTn(t),s.cg(n),s}catch(u){if(u=Qa(u),He(u,33))return null;else throw ve(u)}default:throw ve(new zl("Invalid type set for this layout option."))}}function SDe(t){var n;switch(t.d){case 1:{if(t.Sj())return t.o!=-2;break}case 2:{if(t.Sj())return t.o==-2;break}case 3:case 5:case 4:case 6:case 7:return t.o>-2;default:return!1}switch(n=t.Rj(),t.p){case 0:return n!=null&&er(Jt(n))!=zM(t.k,0);case 1:return n!=null&&b(n,222).a!=gi(t.k)<<24>>24;case 2:return n!=null&&b(n,180).a!=(gi(t.k)&Ds);case 6:return n!=null&&zM(b(n,168).a,t.k);case 5:return n!=null&&b(n,17).a!=gi(t.k);case 7:return n!=null&&b(n,191).a!=gi(t.k)<<16>>16;case 3:return n!=null&&rt(ht(n))!=t.j;case 4:return n!=null&&b(n,161).a!=t.j;default:return n==null?t.n!=null:!da(n,t.n)}}function pG(t,n,s){var u,f,g,_;if(t.ol()&&t.nl()){if(_=Due(t,b(s,58)),nt(_)!==nt(s)){if(t.xj(n),t.Dj(n,G8t(t,n,_)),t.al())g=(f=b(s,54),t.ml()?t.kl()?f.Th(t.b,El(b(jr(dh(t.b),t.Lj()),19)).n,b(jr(dh(t.b),t.Lj()).Hk(),29).kk(),null):f.Th(t.b,Za(f.Dh(),El(b(jr(dh(t.b),t.Lj()),19))),null,null):f.Th(t.b,-1-t.Lj(),null,null)),!b(_,54).Ph()&&(g=(u=b(_,54),t.ml()?t.kl()?u.Rh(t.b,El(b(jr(dh(t.b),t.Lj()),19)).n,b(jr(dh(t.b),t.Lj()).Hk(),29).kk(),g):u.Rh(t.b,Za(u.Dh(),El(b(jr(dh(t.b),t.Lj()),19))),null,g):u.Rh(t.b,-1-t.Lj(),null,g))),!!g&&g.oj();return Ad(t.b)&&t.Jj(t.Ij(9,s,_,n,!1)),_}}return s}function FHt(t){var n,s,u,f,g,_,S,C,O,M;u=new Ut;for(_=new me(t.e.a);_.a<_.c.c.length;){f=b(ge(_),125),M=0,f.k.c.length=0;for(s=new me(w4(f));s.a0&&(_=d.Math.max(_,V9t(t.C.b+u.d.b,f)));else re=q+M.d.c+t.w+u.d.b,_=d.Math.max(_,(_g(),a0(Dg),d.Math.abs(U-f)<=Dg||U==f||isNaN(U)&&isNaN(f)?0:re/(f-U)));M=u,U=f,q=g}if(!!t.C&&t.C.c>0)re=q+t.C.c,O&&(re+=M.d.c),_=d.Math.max(_,(_g(),a0(Dg),d.Math.abs(U-1)<=Dg||U==1||isNaN(U)&&isNaN(1)?0:re/(1-U)));s.n.b=0,s.a.a=_}function UHt(t,n){var s,u,f,g,_,S,C,O,M,U,q,re;if(s=b(Nl(t.b,n),127),C=b(b(_a(t.r,n),21),87),C.dc()){s.n.d=0,s.n.a=0;return}O=t.u.Hc((nd(),Gb)),_=0,t.A.Hc((Md(),IE))&&gVt(t,n),S=C.Kc(),M=null,q=0,U=0;while(S.Ob()){if(u=b(S.Pb(),117),g=rt(ht(u.b.of((Wj(),EJ)))),f=u.b.Mf().b,!M)!!t.C&&t.C.d>0&&(_=d.Math.max(_,V9t(t.C.d+u.d.d,g)));else re=U+M.d.a+t.w+u.d.d,_=d.Math.max(_,(_g(),a0(Dg),d.Math.abs(q-g)<=Dg||q==g||isNaN(q)&&isNaN(g)?0:re/(g-q)));M=u,q=g,U=f}if(!!t.C&&t.C.a>0)re=U+t.C.a,O&&(re+=M.d.a),_=d.Math.max(_,(_g(),a0(Dg),d.Math.abs(q-1)<=Dg||q==1||isNaN(q)&&isNaN(1)?0:re/(1-q)));s.n.d=0,s.a.b=_}function B5n(t,n,s,u,f,g,_,S){var C,O,M,U,q,re,ae,ue,de,Se;if(ae=!1,O=I8e(s.q,n.f+n.b-s.q.f),re=u.f>n.b&&S,Se=f-(s.q.e+O-_),U=(C=hD(u,Se,!1),C.a),re&&U>u.f)return!1;if(re){q=0;for(de=new me(n.d);de.a=(qr(g,t.c.length),b(t.c[g],186)).e,!re&&U>n.b&&!M)return!1;if(M||re||U<=n.b){if(M&&U>n.b)s.d=U,aU(s,CUt(s,U));else H$t(s.q,O),s.c=!0;if(aU(u,f-(s.s+s.r)),GU(u,s.q.e+s.q.d,n.f),wX(n,u),t.c.length>g)HU((qr(g,t.c.length),b(t.c[g],186)),u),(qr(g,t.c.length),b(t.c[g],186)).a.c.length==0&&xy(t,g);ae=!0}return ae}function GHt(t,n,s){var u,f,g,_,S,C;this.g=t,S=n.d.length,C=s.d.length,this.d=mt(N1,Gy,10,S+C,0,1);for(_=0;_0?jhe(this,this.f/this.a):Eg(n.g,n.d[0]).a!=null&&Eg(s.g,s.d[0]).a!=null?jhe(this,(rt(Eg(n.g,n.d[0]).a)+rt(Eg(s.g,s.d[0]).a))/2):Eg(n.g,n.d[0]).a!=null?jhe(this,Eg(n.g,n.d[0]).a):Eg(s.g,s.d[0]).a!=null&&jhe(this,Eg(s.g,s.d[0]).a)}function F5n(t,n){var s,u,f,g,_,S,C,O,M,U;t.a=new _Nt(_1n(U9));for(u=new me(n.a);u.a=1){if(de-_>0&&U>=0)C.n.a+=ue,C.n.b+=g*_;else if(de-_<0&&M>=0)C.n.a+=ue*de,C.n.b+=g}t.o.a=n.a,t.o.b=n.b,At(t,(Qt(),EE),(Md(),u=b(G0(W9),9),new Rf(u,b(t0(u,u.length),9),0)))}function G5n(t,n,s,u,f,g){var _;if(!(n==null||!Gde(n,uWe,hWe)))throw ve(new dn("invalid scheme: "+n));if(!t&&!(s!=null&&ym(s,gh(35))==-1&&s.length>0&&(fn(0,s.length),s.charCodeAt(0)!=47)))throw ve(new dn("invalid opaquePart: "+s));if(t&&!(n!=null&&t$(Rte,n.toLowerCase()))&&!(s==null||!Gde(s,Q9,Z9)))throw ve(new dn(TKt+s));if(t&&n!=null&&t$(Rte,n.toLowerCase())&&!_En(s))throw ve(new dn(TKt+s));if(!Cyn(u))throw ve(new dn("invalid device: "+u));if(!ubn(f))throw _=f==null?"invalid segments: null":"invalid segment: "+sbn(f),ve(new dn(_));if(!(g==null||ym(g,gh(35))==-1))throw ve(new dn("invalid query: "+g))}function z5n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se;if(s.Ug("Network simplex layering",1),t.b=n,Se=b(ce(n,(Qt(),p9)),17).a*4,de=t.b.a,de.c.length<1){s.Vg();return}g=$kn(t,de),ue=null;for(f=ti(g,0);f.b!=f.d.c;){u=b(Jn(f),15),S=Se*Ks(d.Math.sqrt(u.gc())),_=e3n(u),ape(V5e(znn(H5e(pue(_),S),ue),!0),s.eh(1)),q=t.b.b;for(ae=new me(_.a);ae.a1){ue=mt(ci,$i,28,t.b.b.c.length,15,1),U=0;for(O=new me(t.b.b);O.a0){iQ(t,s,0),s.a+=String.fromCharCode(u),f=uvn(n,g),iQ(t,s,f),g+=f-1;continue}if(u==39)if(g+10&&ae.a<=0){C.c.length=0,rn(C.c,ae);break}if(re=ae.i-ae.d,re>=S){if(re>S)C.c.length=0,S=re;rn(C.c,ae)}}if(C.c.length!=0)_=b(nr(C,dQ(f,C.c.length)),118),Ve.a.Bc(_)!=null,_.g=M++,hDe(_,n,s,u),C.c.length=0}de=t.c.length+1;for(q=new me(t);q.aGs||n.o==TE&&M=S&&f<=C)if(S<=f&&g<=C)s[M++]=f,s[M++]=g,u+=2;else if(S<=f)s[M++]=f,s[M++]=C,t.b[u]=C+1,_+=2;else if(g<=C)s[M++]=S,s[M++]=g,u+=2;else s[M++]=S,s[M++]=C,t.b[u]=C+1;else if(Cl_)&&S<10);Y5e(t.c,new pl),qHt(t),Bun(t.c),N5n(t.f)}function Q5n(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue;s=b(ce(t,(Qt(),ms)),101),_=t.f,g=t.d,S=_.a+g.b+g.c,C=0-g.d-t.c.b,M=_.b+g.d+g.a-t.c.b,O=new Ut,U=new Ut;for(f=new me(n);f.a=2){C=ti(s,0),_=b(Jn(C),8),S=b(Jn(C),8);while(S.a0&&xU(O,!0,(Ms(),sc)),S.k==(mn(),As)&&RNt(O),Ki(t.f,S,n)}}}function eRn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;f=b(ce(t,(Ma(),C9)),27),O=sa,M=sa,S=Qo,C=Qo;for(Ve=ti(t.b,0);Ve.b!=Ve.d.c;)Se=b(Jn(Ve),40),re=Se.e,ae=Se.f,O=d.Math.min(O,re.a-ae.a/2),M=d.Math.min(M,re.b-ae.b/2),S=d.Math.max(S,re.a+ae.a/2),C=d.Math.max(C,re.b+ae.b/2);q=b(It(f,(Oc(),eHe)),107);for(Be=ti(t.b,0);Be.b!=Be.d.c;)if(Se=b(Jn(Be),40),U=ce(Se,C9),He(U,207))g=b(U,27),kf(g,Se.e.a,Se.e.b),nG(g,Se);for(de=ti(t.a,0);de.b!=de.d.c;)if(ue=b(Jn(de),65),u=b(ce(ue,C9),74),u)n=ue.a,s=L4(u,!0,!0),uG(n,s);et=S-O+(q.b+q.c),_=C-M+(q.d+q.a),er(Jt(It(f,(Hi(),Hx))))||rS(f,et,_,!1,!1),Ta(f,Tk,et-(q.b+q.c)),Ta(f,Sk,_-(q.d+q.a))}function WHt(t,n){var s,u,f,g,_,S,C,O,M,U;if(C=!0,f=0,O=t.g[n.p],M=n.o.b+t.o,s=t.d[n.p][2],Lf(t.b,O,$t(b(nr(t.b,O),17).a-1+s)),Lf(t.c,O,rt(ht(nr(t.c,O)))-M+s*t.f),++O,O>=t.j)++t.j,Gt(t.b,$t(1)),Gt(t.c,M);else u=t.d[n.p][1],Lf(t.b,O,$t(b(nr(t.b,O),17).a+1-u)),Lf(t.c,O,rt(ht(nr(t.c,O)))+M-u*t.f);(t.r==(_p(),xz)&&(b(nr(t.b,O),17).a>t.k||b(nr(t.b,O-1),17).a>t.k)||t.r==Cz&&(rt(ht(nr(t.c,O)))>t.n||rt(ht(nr(t.c,O-1)))>t.n))&&(C=!1);for(_=new Nn(Mn(co(n).a.Kc(),new L));ri(_);)if(g=b(Gn(_),18),S=g.c.i,t.g[S.p]==O)U=WHt(t,S),f=f+b(U.a,17).a,C=C&&er(Jt(U.b));return t.g[n.p]=O,f=f+t.d[n.p][0],new js($t(f),(nn(),C?!0:!1))}function jHt(t,n){var s,u,f,g,_;s=rt(ht(ce(n,(Qt(),p0)))),s<2&&At(n,p0,2),u=b(ce(n,nf),88),u==(Ms(),Hg)&&At(n,nf,WX(n)),f=b(ce(n,drr),17),f.a==0?At(n,(Pt(),B5),new Vde):At(n,(Pt(),B5),new XK(f.a)),g=Jt(ce(n,h9)),g==null&&At(n,h9,(nn(),nt(ce(n,$b))===nt((kb(),MN))?!0:!1)),ys(new Pr(null,new Gr(n.a,16)),new r5e(t)),ys(wc(new Pr(null,new Gr(n.b,16)),new fl),new n5e(t)),_=new zHt(n),At(n,(Pt(),ck),_),G$(t.a),H0(t.a,(Xo(),f0),b(ce(n,yE),188)),H0(t.a,O1,b(ce(n,_E),188)),H0(t.a,su,b(ce(n,u9),188)),H0(t.a,wu,b(ce(n,Cee),188)),H0(t.a,ac,e1n(b(ce(n,$b),223))),XRe(t.a,KIn(n)),At(n,W1e,fG(t.a,n))}function xDe(t,n,s,u,f){var g,_,S,C,O,M,U,q,re,ae,ue,de,Se;U=new Zn,_=new Ut,WUt(t,s,t.d.Ag(),_,U),WUt(t,u,t.d.Bg(),_,U),t.b=0.2*(ue=ZGt(wc(new Pr(null,new Gr(_,16)),new evt)),de=ZGt(wc(new Pr(null,new Gr(_,16)),new tvt)),d.Math.min(ue,de)),g=0;for(S=0;S<_.c.length-1;S++){C=(qr(S,_.c.length),b(_.c[S],118));for(ae=S+1;ae<_.c.length;ae++)g+=yDe(t,C,(qr(ae,_.c.length),b(_.c[ae],118)))}q=b(ce(n,(Pt(),B5)),234),g>=2&&(Se=bzt(_,!0,q),!t.e&&(t.e=new ACt(t)),svn(t.e,Se,_,t.b)),eUt(_,q),sRn(_),re=-1;for(M=new me(_);M.aS}function KHt(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be;O=Wa,M=Wa,S=Gs,C=Gs;for(q=new me(n.i);q.a-1){for(f=ti(S,0);f.b!=f.d.c;)u=b(Jn(f),131),u.v=_;while(S.b!=0){u=b(_fe(S,0),131);for(s=new me(u.i);s.a-1){for(g=new me(S);g.a0)continue;zAe(C,d.Math.min(C.o,f.o-1)),DW(C,C.i-1),C.i==0&&rn(S.c,C)}}}}function QHt(t,n,s,u,f){var g,_,S,C;return C=Wa,_=!1,S=mDe(t,no(new Dt(n.a,n.b),t),ua(new Dt(s.a,s.b),f),no(new Dt(u.a,u.b),s)),g=!!S&&!(d.Math.abs(S.a-t.a)<=cS&&d.Math.abs(S.b-t.b)<=cS||d.Math.abs(S.a-n.a)<=cS&&d.Math.abs(S.b-n.b)<=cS),S=mDe(t,no(new Dt(n.a,n.b),t),s,f),!!S&&((d.Math.abs(S.a-t.a)<=cS&&d.Math.abs(S.b-t.b)<=cS)==(d.Math.abs(S.a-n.a)<=cS&&d.Math.abs(S.b-n.b)<=cS)||g?C=d.Math.min(C,u8(no(S,s))):_=!0),S=mDe(t,no(new Dt(n.a,n.b),t),u,f),!!S&&(_||(d.Math.abs(S.a-t.a)<=cS&&d.Math.abs(S.b-t.b)<=cS)==(d.Math.abs(S.a-n.a)<=cS&&d.Math.abs(S.b-n.b)<=cS)||g)&&(C=d.Math.min(C,u8(no(S,u)))),C}function ZHt(t){gw(t,new tE(QW(dw(cw(hw(uw(new x2,u_),jYt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new lb),ih))),Ft(t,u_,SD,jt(Z$e)),Ft(t,u_,pZ,(nn(),!0)),Ft(t,u_,H4,jt(DZt)),Ft(t,u_,w5,jt(PZt)),Ft(t,u_,E5,jt(BZt)),Ft(t,u_,GO,jt(MZt)),Ft(t,u_,TD,jt(eUe)),Ft(t,u_,zO,jt(FZt)),Ft(t,u_,S9e,jt(Q$e)),Ft(t,u_,x9e,jt(K$e)),Ft(t,u_,C9e,jt(X$e)),Ft(t,u_,k9e,jt(J$e)),Ft(t,u_,T9e,jt(IJ))}function oRn(t){var n,s,u,f,g,_,S,C;n=null;for(u=new me(t);u.a0&&s.c==0)!n&&(n=new Ut),rn(n.c,s);if(n)while(n.c.length!=0){if(s=b(xy(n,0),239),!!s.b&&s.b.c.length>0){for(g=(!s.b&&(s.b=new Ut),new me(s.b));g.arc(t,s,0))return new js(f,s)}else if(rt(Eg(f.g,f.d[0]).a)>rt(Eg(s.g,s.d[0]).a))return new js(f,s)}for(S=(!s.e&&(s.e=new Ut),s.e).Kc();S.Ob();)_=b(S.Pb(),239),C=(!_.b&&(_.b=new Ut),_.b),zT(0,C.c.length),OM(C.c,0,s),_.c==C.c.length&&rn(n.c,_)}return null}function lRn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se;n.Ug("Interactive crossing minimization",1),_=0;for(g=new me(t.b);g.a0)s+=C.n.a+C.o.a/2,++U;for(ae=new me(C.j);ae.a0&&(s/=U),Se=mt(xo,Ml,28,u.a.c.length,15,1),S=0;for(O=new me(u.a);O.a=S&&f<=C)if(S<=f&&g<=C)u+=2;else if(S<=f)t.b[u]=C+1,_+=2;else if(g<=C)s[M++]=f,s[M++]=S-1,u+=2;else s[M++]=f,s[M++]=S-1,t.b[u]=C+1,_+=2;else if(C2)M=new Ut,Us(M,new Sy(Se,1,Se.b)),g=$qt(M,Ve+t.a),Be=new Hfe(g),nc(Be,n),rn(s.c,Be);else u?Be=b(An(t.b,E1(n)),272):Be=b(An(t.b,n_(n)),272);if(C=E1(n),u&&(C=n_(n)),_=oSn(de,C),O=Ve+t.a,_.a)O+=d.Math.abs(de.b-U.b),ue=new Dt(U.a,(U.b+de.b)/2);else O+=d.Math.abs(de.a-U.a),ue=new Dt((U.a+de.a)/2,U.b);u?Ki(t.d,n,new V7e(Be,_,ue,O)):Ki(t.c,n,new V7e(Be,_,ue,O)),Ki(t.b,n,Be),ae=(!n.n&&(n.n=new kt(Dl,n,1,7)),n.n);for(re=new kn(ae);re.e!=re.i.gc();)q=b(Dn(re),135),f=sG(t,q,!0,0,0),rn(s.c,f)}function cRn(t){var n,s,u,f,g,_,S;if(t.A.dc())return;if(t.A.Hc((Md(),tV))){if(b(Nl(t.b,(Ht(),pn)),127).k=!0,b(Nl(t.b,Kn),127).k=!0,n=t.q!=(Ao(),B1)&&t.q!=xu,$Ae(b(Nl(t.b,Cn),127),n),$Ae(b(Nl(t.b,bn),127),n),$Ae(t.g,n),t.A.Hc(IE))b(Nl(t.b,pn),127).j=!0,b(Nl(t.b,Kn),127).j=!0,b(Nl(t.b,Cn),127).k=!0,b(Nl(t.b,bn),127).k=!0,t.g.k=!0}if(t.A.Hc(eV)){t.a.j=!0,t.a.k=!0,t.g.j=!0,t.g.k=!0,S=t.B.Hc((bd(),j9));for(f=Zde(),g=0,_=f.length;g<_;++g)if(u=f[g],s=b(Nl(t.i,u),314),s)if(k7e(u))s.j=!0,s.k=!0;else s.j=!S,s.k=!S}if(t.A.Hc(Wx)&&t.B.Hc((bd(),nV))){if(t.g.j=!0,t.g.j=!0,!t.a.j)t.a.j=!0,t.a.k=!0,t.a.e=!0}}function uRn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se;for(u=new me(t.e.b);u.a0),b(M.a.Xb(M.c=--M.b),18));while(g!=u&&M.b>0)t.a[g.p]=!0,t.a[u.p]=!0,g=(Pn(M.b>0),b(M.a.Xb(M.c=--M.b),18));M.b>0&&Nd(M)}}}}}function eqt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re;if(!t.b)return!1;_=null,q=null,C=new Mhe(null,null),f=1,C.a[1]=t.b,U=C;while(U.a[f])if(O=f,S=q,q=U,U=U.a[f],u=t.a.Ne(n,U.d),f=u<0?0:1,u==0&&(!s.c||zc(U.e,s.d))&&(_=U),!(!!U&&U.b)&&!CT(U.a[f])){if(CT(U.a[1-f]))q=q.a[O]=RX(U,f);else if(!CT(U.a[1-f])){if(re=q.a[1-O],re)if(!CT(re.a[1-O])&&!CT(re.a[O]))q.b=!1,re.b=!0,U.b=!0;else g=S.a[1]==q?1:0,CT(re.a[O])?S.a[g]=I7t(q,O):CT(re.a[1-O])&&(S.a[g]=RX(q,O)),U.b=S.a[g].b=!0,S.a[g].a[0].b=!1,S.a[g].a[1].b=!1}}if(_){if(s.b=!0,s.d=_.e,U!=_)M=new Mhe(U.d,U.e),dwn(t,C,_,M),q==_&&(q=M);q.a[q.a[1]==U?1:0]=U.a[!U.a[0]?1:0],--t.c}return t.b=C.a[1],!!t.b&&(t.b.b=!1),s.b}function dRn(t){var n,s,u,f,g,_,S,C,O,M,U,q;for(f=new me(t.a.a.b);f.a0?f-=86400000:f+=86400000,C=new MIe(rl(Vc(n.q.getTime()),f));M=new KC,O=t.a.length;for(g=0;g=97&&u<=122||u>=65&&u<=90){for(_=g+1;_=O)throw ve(new dn("Missing trailing '"));_+1=14&&M<=16)))if(n.a._b(u))!s.a?s.a=new Vd(s.d):Bi(s.a,s.b),HM(s.a,"[...]");else S=H2(u),O=new t8(n),Eb(s,rqt(S,O));else He(u,183)?Eb(s,HSn(b(u,183))):He(u,195)?Eb(s,REn(b(u,195))):He(u,201)?Eb(s,$wn(b(u,201))):He(u,2111)?Eb(s,IEn(b(u,2111))):He(u,53)?Eb(s,VSn(b(u,53))):He(u,376)?Eb(s,oTn(b(u,376))):He(u,846)?Eb(s,zSn(b(u,846))):He(u,109)&&Eb(s,GSn(b(u,109)));else Eb(s,u==null?mh:hc(u));return!s.a?s.c:s.e.length==0?s.a.a:s.a.a+(""+s.e)}function kO(t,n){var s,u,f,g;if(g=t.F,n==null)t.F=null,eO(t,null);else if(t.F=(vn(n),n),u=ym(n,gh(60)),u!=-1)f=(Do(0,u,n.length),n.substr(0,u)),ym(n,gh(46))==-1&&!Br(f,d5)&&!Br(f,FD)&&!Br(f,ZZ)&&!Br(f,$D)&&!Br(f,UD)&&!Br(f,GD)&&!Br(f,zD)&&!Br(f,VD)&&(f=BKt),s=Hj(n,gh(62)),s!=-1&&(f+=""+(fn(s+1,n.length+1),n.substr(s+1))),eO(t,f);else{if(f=n,ym(n,gh(46))==-1)if(u=ym(n,gh(91)),u!=-1&&(f=(Do(0,u,n.length),n.substr(0,u))),!Br(f,d5)&&!Br(f,FD)&&!Br(f,ZZ)&&!Br(f,$D)&&!Br(f,UD)&&!Br(f,GD)&&!Br(f,zD)&&!Br(f,VD))f=BKt,u!=-1&&(f+=""+(fn(u,n.length+1),n.substr(u)));else f=n;eO(t,f),f==n&&(t.F=t.D)}(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,5,g,n))}function nqt(t,n){var s,u,f,g,_,S,C,O,M,U;if(C=n.length-1,S=(fn(C,n.length),n.charCodeAt(C)),S==93){if(_=ym(n,gh(91)),_>=0)return f=byn(t,(Do(1,_,n.length),n.substr(1,_-1))),M=(Do(_+1,C,n.length),n.substr(_+1,C-(_+1))),VIn(t,M,f)}else{if(s=-1,GFe==null&&(GFe=new RegExp("\\d")),GFe.test(String.fromCharCode(S))){if(s=ZIe(n,gh(46),C-1),s>=0){u=b(Ahe(t,qDt(t,(Do(1,s,n.length),n.substr(1,s-1))),!1),61),O=0;try{O=Zd((fn(s+1,n.length+1),n.substr(s+1)),Qo,sa)}catch(q){if(q=Qa(q),He(q,130))throw g=q,ve(new lX(g));else throw ve(q)}if(O>16==-10)s=b(t.Cb,292).Yk(n,s);else if(t.Db>>16==-15){if(!n&&(n=(Vr(),Wg)),!O&&(O=(Vr(),Wg)),t.Cb.Yh())C=new wb(t.Cb,1,13,O,n,Py(pd(b(t.Cb,62)),t),!1),!s?s=C:s.nj(C)}}else if(He(t.Cb,90)){if(t.Db>>16==-23){if(He(n,90)||(n=(Vr(),Lp)),He(O,90)||(O=(Vr(),Lp)),t.Cb.Yh())C=new wb(t.Cb,1,10,O,n,Py(nu(b(t.Cb,29)),t),!1),!s?s=C:s.nj(C)}}else if(He(t.Cb,457)){S=b(t.Cb,850),_=(!S.b&&(S.b=new GW(new zle)),S.b);for(g=(u=new W2(new R2(_.a).a),new zW(u));g.a.b;)f=b(Hw(g.a).ld(),89),s=AO(f,NQ(f,S),s)}}return s}function bRn(t,n){var s,u,f,g,_,S,C,O,M,U,q;_=er(Jt(It(t,(Qt(),Dx)))),q=b(It(t,Bx),21),C=!1,O=!1,U=new kn((!t.c&&(t.c=new kt(ld,t,9,9)),t.c));while(U.e!=U.i.gc()&&(!C||!O)){g=b(Dn(U),123),S=0;for(f=m1(jd(Te(we(rf,1),en,20,0,[(!g.d&&(g.d=new Wr(ws,g,8,5)),g.d),(!g.e&&(g.e=new Wr(ws,g,7,4)),g.e)])));ri(f);)if(u=b(Gn(f),74),M=_&&Zw(u)&&er(Jt(It(u,vE))),s=DHt((!u.b&&(u.b=new Wr(qn,u,4,7)),u.b),g)?t==Ya(ic(b(Ye((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84))):t==Ya(ic(b(Ye((!u.b&&(u.b=new Wr(qn,u,4,7)),u.b),0),84))),M||s){if(++S,S>1)break}S>0?C=!0:q.Hc((nd(),Gb))&&(!g.n&&(g.n=new kt(Dl,g,1,7)),g.n).i>0&&(C=!0),S>1&&(O=!0)}C&&n.Fc((Tl(),Wf)),O&&n.Fc((Tl(),n9))}function iqt(t){var n,s,u,f,g,_,S,C,O,M,U,q;if(q=b(It(t,(Hi(),kE)),21),q.dc())return null;if(S=0,_=0,q.Hc((Md(),tV))){M=b(It(t,$9),101),u=2,s=2,f=2,g=2,n=!Ya(t)?b(It(t,CE),88):b(It(Ya(t),CE),88);for(O=new kn((!t.c&&(t.c=new kt(ld,t,9,9)),t.c));O.e!=O.i.gc();){if(C=b(Dn(O),123),U=b(It(C,Ak),64),U==(Ht(),Cc))U=uDe(C,n),Ta(C,Ak,U);if(M==(Ao(),xu))switch(U.g){case 1:u=d.Math.max(u,C.i+C.g);break;case 2:s=d.Math.max(s,C.j+C.f);break;case 3:f=d.Math.max(f,C.i+C.g);break;case 4:g=d.Math.max(g,C.j+C.f)}else switch(U.g){case 1:u+=C.g+2;break;case 2:s+=C.f+2;break;case 3:f+=C.g+2;break;case 4:g+=C.f+2}}S=d.Math.max(u,f),_=d.Math.max(s,g)}return rS(t,S,_,!0,!0)}function Tpe(t,n,s,u,f){var g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;Be=b(uc(mX(pa(new Pr(null,new Gr(n.d,16)),new jxt(s)),new Kxt(s)),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15),U=sa,M=Qo;for(C=new me(n.b.j);C.a0,O){if(O)q=Se.p,_?++q:--q,U=b(nr(Se.c.a,q),10),u=APt(U),re=!(jfe(u,Ot,s[0])||ZOt(u,Ot,s[0]))}else re=!0;if(ae=!1,wt=n.D.i,!!wt&&!!wt.c&&S.e)if(M=_&&wt.p>0||!_&&wt.p=0){C=null,S=new Mo(M.a,O+1);while(S.b_?1:vw(isNaN(0),isNaN(_)))<0&&(a0(Bm),(d.Math.abs(_-1)<=Bm||_==1||isNaN(_)&&isNaN(1)?0:_<1?-1:_>1?1:vw(isNaN(_),isNaN(1)))<0)&&(a0(Bm),(d.Math.abs(0-S)<=Bm||S==0||isNaN(0)&&isNaN(S)?0:0S?1:vw(isNaN(0),isNaN(S)))<0)&&(a0(Bm),(d.Math.abs(S-1)<=Bm||S==1||isNaN(S)&&isNaN(1)?0:S<1?-1:S>1?1:vw(isNaN(S),isNaN(1)))<0)),g}function SRn(t){var n,s,u,f;if(s=t.D!=null?t.D:t.B,n=ym(s,gh(91)),n!=-1){u=(Do(0,n,s.length),s.substr(0,n)),f=new gy;do f.a+="[";while((n=c6(s,91,++n))!=-1);if(Br(u,d5))f.a+="Z";else if(Br(u,FD))f.a+="B";else if(Br(u,ZZ))f.a+="C";else if(Br(u,$D))f.a+="D";else if(Br(u,UD))f.a+="F";else if(Br(u,GD))f.a+="I";else if(Br(u,zD))f.a+="J";else if(Br(u,VD))f.a+="S";else f.a+="L",f.a+=""+u,f.a+=";";try{return null}catch(g){if(g=Qa(g),!He(g,63))throw ve(g)}}else if(ym(s,gh(46))==-1){if(Br(s,d5))return wd;else if(Br(s,FD))return Gh;else if(Br(s,ZZ))return Qf;else if(Br(s,$D))return xo;else if(Br(s,UD))return tC;else if(Br(s,GD))return ci;else if(Br(s,zD))return P_;else if(Br(s,VD))return Mk}return null}function TRn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt;t.e=n,S=TTn(n),Ot=new Ut;for(u=new me(S);u.a=0&&ue=O.c.c.length?M=XOe((mn(),Es),mo):M=XOe((mn(),mo),mo),M*=2,g=s.a.g,s.a.g=d.Math.max(g,g+(M-g)),_=s.b.g,s.b.g=d.Math.max(_,_+(M-_)),f=n}}function ARn(t){var n,s,u,f;if(ys(pa(new Pr(null,new Gr(t.a.b,16)),new ubt),new hbt),cEn(t),ys(pa(new Pr(null,new Gr(t.a.b,16)),new dbt),new fbt),t.c==(kb(),Y5))ys(pa(wc(new Pr(null,new Gr(new A2(t.f),1)),new pbt),new gbt),new Gxt(t)),ys(pa(ec(wc(wc(new Pr(null,new Gr(t.d.b,16)),new mbt),new bbt),new ybt),new vbt),new Vxt(t));f=new Dt(Wa,Wa),n=new Dt(Gs,Gs);for(u=new me(t.a.b);u.a0&&(n.a+=ll),ZQ(b(Dn(S),167),n);n.a+=L0e,C=new RA((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c));while(C.e!=C.i.gc())C.e>0&&(n.a+=ll),ZQ(b(Dn(C),167),n);n.a+=")"}}}function RRn(t,n,s){var u,f,g,_,S,C,O,M;for(C=new kn((!t.a&&(t.a=new kt(ra,t,10,11)),t.a));C.e!=C.i.gc();){S=b(Dn(C),27);for(f=new Nn(Mn(Ob(S).a.Kc(),new L));ri(f);){if(u=b(Gn(f),74),!u.b&&(u.b=new Wr(qn,u,4,7)),!(u.b.i<=1&&(!u.c&&(u.c=new Wr(qn,u,5,8)),u.c.i<=1)))throw ve(new vA("Graph must not contain hyperedges."));if(!eD(u)&&S!=ic(b(Ye((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84))){O=new s6t,nc(O,u),At(O,(Xv(),I5),u),brn(O,b(Jl(wl(s.f,S)),153)),_rn(O,b(An(s,ic(b(Ye((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84))),153)),Gt(n.c,O);for(_=new kn((!u.n&&(u.n=new kt(Dl,u,1,7)),u.n));_.e!=_.i.gc();)g=b(Dn(_),135),M=new lMt(O,g.a),nc(M,g),At(M,I5,g),M.e.a=d.Math.max(g.g,1),M.e.b=d.Math.max(g.f,1),gDe(M),Gt(n.d,M)}}}}function IRn(t,n,s){var u,f,g,_,S,C,O,M,U,q;switch(s.Ug("Node promotion heuristic",1),t.i=n,t.r=b(ce(n,(Qt(),E_)),243),t.r!=(_p(),AS)&&t.r!=Ux?nIn(t):R4n(t),M=b(ce(t.i,Rze),17).a,g=new t1t,t.r.g){case 2:case 1:CO(t,g);break;case 3:t.r=Dee,CO(t,g),C=0;for(S=new me(t.b);S.at.k)t.r=xz,CO(t,g);break;case 4:t.r=Dee,CO(t,g),O=0;for(f=new me(t.c);f.at.n)t.r=Cz,CO(t,g);break;case 6:q=Ks(d.Math.ceil(t.g.length*M/100)),CO(t,new Rxt(q));break;case 5:U=Ks(d.Math.ceil(t.e*M/100)),CO(t,new Ixt(U));break;case 8:zqt(t,!0);break;case 9:zqt(t,!1);break;default:CO(t,g)}t.r!=AS&&t.r!=Ux?JCn(t,n):vkn(t,n),s.Vg()}function ORn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve;U=t.b,M=new Mo(U,0),DT(M,new gu(t)),Be=!1,_=1;while(M.b0)q.d+=M.n.d,q.d+=M.d;if(q.a>0)q.a+=M.n.a,q.a+=M.d;if(q.b>0)q.b+=M.n.b,q.b+=M.d;if(q.c>0)q.c+=M.n.c,q.c+=M.d;return q}function sqt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae;q=s.d,U=s.c,g=new Dt(s.f.a+s.d.b+s.d.c,s.f.b+s.d.d+s.d.a),_=g.b;for(O=new me(t.a);O.a0)t.c[n.c.p][n.p].d+=md(t.i,24)*kG*0.07000000029802322-0.03500000014901161,t.c[n.c.p][n.p].a=t.c[n.c.p][n.p].d/t.c[n.c.p][n.p].b}function MRn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;for(ae=new me(t);ae.au.d,u.d=d.Math.max(u.d,n),S&&s)u.d=d.Math.max(u.d,u.a),u.a=u.d+f;break;case 3:if(s=n>u.a,u.a=d.Math.max(u.a,n),S&&s)u.a=d.Math.max(u.a,u.d),u.d=u.a+f;break;case 2:if(s=n>u.c,u.c=d.Math.max(u.c,n),S&&s)u.c=d.Math.max(u.b,u.c),u.b=u.c+f;break;case 4:if(s=n>u.b,u.b=d.Math.max(u.b,n),S&&s)u.b=d.Math.max(u.b,u.c),u.c=u.b+f}}}function lqt(t,n){var s,u,f,g,_,S,C,O,M;if(O="",n.length==0)return t.ne(qDe,Ppe,-1,-1);if(M=ax(n),Br(M.substr(0,3),"at ")&&(M=(fn(3,M.length+1),M.substr(3))),M=M.replace(/\[.*?\]/g,""),_=M.indexOf("("),_==-1)if(_=M.indexOf("@"),_==-1)O=M,M="";else O=ax((fn(_+1,M.length+1),M.substr(_+1))),M=ax((Do(0,_,M.length),M.substr(0,_)));else s=M.indexOf(")",_),O=(Do(_+1,s,M.length),M.substr(_+1,s-(_+1))),M=ax((Do(0,_,M.length),M.substr(0,_)));if(_=ym(M,gh(46)),_!=-1&&(M=(fn(_+1,M.length+1),M.substr(_+1))),(M.length==0||Br(M,"Anonymous function"))&&(M=Ppe),S=Hj(O,gh(58)),f=ZIe(O,gh(58),S-1),C=-1,u=-1,g=qDe,S!=-1&&f!=-1)g=(Do(0,f,O.length),O.substr(0,f)),C=xIt((Do(f+1,S,O.length),O.substr(f+1,S-(f+1)))),u=xIt((fn(S+1,O.length+1),O.substr(S+1)));return t.ne(g,M,C,u)}function BRn(t){var n,s,u,f,g,_,S,C,O,M,U;for(O=new me(t);O.a0||M.j==bn&&M.e.c.length-M.g.c.length<0)){n=!1;break}for(f=new me(M.g);f.a=O&&wt>=de)q+=ae.n.b+ue.n.b+ue.a.b-et,++S}}if(s){for(_=new me(Be.e);_.a<_.c.c.length;)if(g=b(ge(_),18),ue=g.c,ae=ue.i,n!=t.a[ae.p]){if(de=d.Math.max(b(ce(ae,Fee),17).a,b(ce(ae,$ee),17).a),wt=b(ce(g,(Qt(),$5)),17).a,wt>=O&&wt>=de)q+=ae.n.b+ue.n.b+ue.a.b-et,++S}}}if(S>0)Ot+=q/S,++re}if(re>0)n.a=f*Ot/re,n.g=re;else n.a=0,n.g=0}function $Rn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt;g=t.f.b,q=g.a,M=g.b,ae=t.e.g,re=t.e.f,s4(t.e,g.a,g.b),Ot=q/ae,Wt=M/re;for(O=new kn(RK(t.e));O.e!=O.i.gc();)C=b(Dn(O),135),eh(C,C.i*Ot),th(C,C.j*Wt);for(Be=new kn(jue(t.e));Be.e!=Be.i.gc();)Se=b(Dn(Be),123),et=Se.i,wt=Se.j,et>0&&eh(Se,et*Ot),wt>0&&th(Se,wt*Wt);k8(t.b,new Zl),n=new Ut;for(S=new W2(new R2(t.c).a);S.b;)if(_=Hw(S),u=b(_.ld(),74),s=b(_.md(),407).a,f=L4(u,!1,!1),U=tUt(E1(u),XU(f),s),uG(U,f),Ve=pUt(u),!!Ve&&rc(n,Ve,0)==-1)rn(n.c,Ve),VNt(Ve,(Pn(U.b!=0),b(U.a.a.c,8)),s);for(de=new W2(new R2(t.d).a);de.b;)if(ue=Hw(de),u=b(ue.ld(),74),s=b(ue.md(),407).a,f=L4(u,!1,!1),U=tUt(n_(u),kU(XU(f)),s),U=kU(U),uG(U,f),Ve=gUt(u),!!Ve&&rc(n,Ve,0)==-1)rn(n.c,Ve),VNt(Ve,(Pn(U.b!=0),b(U.c.b.c,8)),s)}function cqt(t,n,s,u){var f,g,_,S,C;if(S=new RDe(n),ICn(S,u),f=!0,!!t&&t.pf((Hi(),CE)))g=b(t.of((Hi(),CE)),88),f=g==(Ms(),Hg)||g==Kl||g==sc;if(lVt(S,!1),Ju(S.e.Rf(),new a6e(S,!1,f)),ohe(S,S.f,(K0(),Mc),(Ht(),pn)),ohe(S,S.f,Dc,Kn),ohe(S,S.g,Mc,bn),ohe(S,S.g,Dc,Cn),BFt(S,pn),BFt(S,Kn),UNt(S,Cn),UNt(S,bn),MT(),_=S.A.Hc((Md(),Wx))&&S.B.Hc((bd(),nV))?tFt(S):null,!!_&&$nn(S.a,_),PRn(S),B_n(S),F_n(S),cRn(S),A3n(S),u2n(S),Xde(S,pn),Xde(S,Kn),pkn(S),r5n(S),!s)return S.o;return yyn(S),h2n(S),Xde(S,Cn),Xde(S,bn),C=S.B.Hc((bd(),j9)),eGt(S,C,pn),eGt(S,C,Kn),tGt(S,C,Cn),tGt(S,C,bn),ys(new Pr(null,new Gr(new hb(S.i),0)),new Ii),ys(pa(new Pr(null,nOe(S.r).a.oc()),new Vn),new Ei),xEn(S),S.e.Pf(S.o),ys(new Pr(null,nOe(S.r).a.oc()),new yn),S.o}function URn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue;O=Wa;for(u=new me(t.a.b);u.a1){re=new vDe(ae,Ve,u),Vo(Ve,new v5t(t,re)),rn(_.c,re);for(U=Ve.a.ec().Kc();U.Ob();)M=b(U.Pb(),42),fh(g,M.b)}if(S.a.gc()>1){re=new vDe(ae,S,u),Vo(S,new _5t(t,re)),rn(_.c,re);for(U=S.a.ec().Kc();U.Ob();)M=b(U.Pb(),42),fh(g,M.b)}}}function HRn(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se;if(ue=t.n,de=t.o,q=t.d,U=rt(ht(ex(t,(Qt(),obe)))),n){M=U*(n.gc()-1),re=0;for(C=n.Kc();C.Ob();)_=b(C.Pb(),10),M+=_.o.a,re=d.Math.max(re,_.o.b);Se=ue.a-(M-de.a)/2,g=ue.b-q.d+re,u=de.a/(n.gc()+1),f=u;for(S=n.Kc();S.Ob();){if(_=b(S.Pb(),10),_.n.a=Se,_.n.b=g-_.o.b,Se+=_.o.a+U,O=yzt(_),O.n.a=_.o.a/2-O.a.a,O.n.b=_.o.b,ae=b(ce(_,(Pt(),cee)),12),ae.e.c.length+ae.g.c.length==1)ae.n.a=f-ae.a.a,ae.n.b=0,Ec(ae,t);f+=u}}if(s){M=U*(s.gc()-1),re=0;for(C=s.Kc();C.Ob();)_=b(C.Pb(),10),M+=_.o.a,re=d.Math.max(re,_.o.b);Se=ue.a-(M-de.a)/2,g=ue.b+de.b+q.a-re,u=de.a/(s.gc()+1),f=u;for(S=s.Kc();S.Ob();){if(_=b(S.Pb(),10),_.n.a=Se,_.n.b=g,Se+=_.o.a+U,O=yzt(_),O.n.a=_.o.a/2-O.a.a,O.n.b=0,ae=b(ce(_,(Pt(),cee)),12),ae.e.c.length+ae.g.c.length==1)ae.n.a=f-ae.a.a,ae.n.b=de.b,Ec(ae,t);f+=u}}}function qRn(t,n){var s,u,f,g,_,S;if(!b(ce(n,(Pt(),Tu)),21).Hc((Tl(),Wf)))return;for(S=new me(n.a);S.a=0&&_0&&(b(Nl(t.b,n),127).a.b=s)}function XRn(t,n,s,u){var f,g,_,S,C,O,M,U,q,re,ae,ue;if(q=rt(ht(ce(t,(Qt(),EN)))),re=rt(ht(ce(t,wN))),U=rt(ht(ce(t,$x))),S=t.o,g=b(nr(t.j,0),12),_=g.n,ue=fSn(g,U),!ue)return;if(n.Hc((nd(),Gb)))switch(b(ce(t,(Pt(),Pc)),64).g){case 1:ue.c=(S.a-ue.b)/2-_.a,ue.d=re;break;case 3:ue.c=(S.a-ue.b)/2-_.a,ue.d=-re-ue.a;break;case 2:if(s&&g.e.c.length==0&&g.g.c.length==0)M=u?ue.a:b(nr(g.f,0),72).o.b,ue.d=(S.b-M)/2-_.b;else ue.d=S.b+re-_.b;ue.c=-q-ue.b;break;case 4:if(s&&g.e.c.length==0&&g.g.c.length==0)M=u?ue.a:b(nr(g.f,0),72).o.b,ue.d=(S.b-M)/2-_.b;else ue.d=S.b+re-_.b;ue.c=q}else if(n.Hc(R_))switch(b(ce(t,(Pt(),Pc)),64).g){case 1:case 3:ue.c=_.a+q;break;case 2:case 4:if(s&&!g.c)M=u?ue.a:b(nr(g.f,0),72).o.b,ue.d=(S.b-M)/2-_.b;else ue.d=_.b+re}f=ue.d;for(O=new me(g.f);O.a=n.length)return{done:!0};var f=n[u++];return{value:[f,s.get(f)],done:!1}}}},!W4n())t.prototype.createObject=function(){return{}},t.prototype.get=function(n){return this.obj[":"+n]},t.prototype.set=function(n,s){this.obj[":"+n]=s},t.prototype[l0e]=function(n){delete this.obj[":"+n]},t.prototype.keys=function(){var n=[];for(var s in this.obj)s.charCodeAt(0)==58&&n.push(s.substring(1));return n};return t}function Ma(){Ma=z,C9=new va(E9e),new va(w9e),new es("DEPTH",$t(0)),Dbe=new es("FAN",$t(0)),zVe=new es(MWt,$t(0)),T_=new es("ROOT",(nn(),!1)),Fbe=new es("LEFTNEIGHBOR",null),Dnr=new es("RIGHTNEIGHBOR",null),zee=new es("LEFTSIBLING",null),$be=new es("RIGHTSIBLING",null),Mbe=new es("DUMMY",!1),new es("LEVEL",$t(0)),qVe=new es("REMOVABLE_EDGES",new Va),Nz=new es("XCOOR",$t(0)),Lz=new es("YCOOR",$t(0)),Vee=new es("LEVELHEIGHT",0),rg=new es("LEVELMIN",0),g0=new es("LEVELMAX",0),Pbe=new es("GRAPH_XMIN",0),Bbe=new es("GRAPH_YMIN",0),VVe=new es("GRAPH_XMAX",0),HVe=new es("GRAPH_YMAX",0),GVe=new es("COMPACT_LEVEL_ASCENSION",!1),Lbe=new es("COMPACT_CONSTRAINTS",new Ut),x9=new es("ID",""),k9=new es("POSITION",$t(0)),Ky=new es("PRELIM",0),kN=new es("MODIFIER",0),CN=new va(YYt),Oz=new va(WYt)}function eIn(t){cDe();var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(t==null)return null;if(U=t.length*8,U==0)return"";S=U%24,re=U/24|0,q=S!=0?re+1:re,g=null,g=mt(Qf,Om,28,q*4,15,1),O=0,M=0,n=0,s=0,u=0,_=0,f=0;for(C=0;C>24,O=(n&3)<<24>>24,ae=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,ue=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,de=(u&-128)==0?u>>6<<24>>24:(u>>6^252)<<24>>24,g[_++]=iv[ae],g[_++]=iv[ue|O<<4],g[_++]=iv[M<<2|de],g[_++]=iv[u&63];if(S==8)n=t[f],O=(n&3)<<24>>24,ae=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,g[_++]=iv[ae],g[_++]=iv[O<<4],g[_++]=61,g[_++]=61;else if(S==16)n=t[f],s=t[f+1],M=(s&15)<<24>>24,O=(n&3)<<24>>24,ae=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,ue=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,g[_++]=iv[ae],g[_++]=iv[ue|O<<4],g[_++]=iv[M<<2],g[_++]=61;return yp(g,0,g.length)}function tIn(t,n){var s,u,f,g,_,S,C;if(t.e==0&&t.p>0&&(t.p=-(t.p-1)),t.p>Qo&&KOe(n,t.p-c_),_=n.q.getDate(),j$(n,1),t.k>=0&&Vdn(n,t.k),t.c>=0)j$(n,t.c);else if(t.k>=0)C=new xLe(n.q.getFullYear()-c_,n.q.getMonth(),35),u=35-C.q.getDate(),j$(n,d.Math.min(u,_));else j$(n,_);if(t.f<0&&(t.f=n.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),Man(n,t.f==24&&t.g?0:t.f),t.j>=0&&x0n(n,t.j),t.n>=0&&B0n(n,t.n),t.i>=0&&yRt(n,rl(nl(YU(Vc(n.q.getTime()),Uy),Uy),t.i)),t.a)f=new nj,KOe(f,f.q.getFullYear()-c_-80),uce(Vc(n.q.getTime()),Vc(f.q.getTime()))&&KOe(n,f.q.getFullYear()-c_+100);if(t.d>=0){if(t.c==-1)s=(7+t.d-n.q.getDay())%7,s>3&&(s-=7),S=n.q.getMonth(),j$(n,n.q.getDate()+s),n.q.getMonth()!=S&&j$(n,n.q.getDate()+(s>0?-7:7));else if(n.q.getDay()!=t.d)return!1}if(t.o>Qo)g=n.q.getTimezoneOffset(),yRt(n,rl(Vc(n.q.getTime()),(t.o-g)*60*Uy));return!0}function pqt(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;if(f=ce(n,(Pt(),Ea)),!He(f,207))return;if(ae=b(f,27),ue=n.e,q=new sl(n.c),g=n.d,q.a+=g.b,q.b+=g.d,et=b(It(ae,(Qt(),kee)),181),Oh(et,(bd(),gte)))re=b(It(ae,Mze),107),hrn(re,g.a),vrn(re,g.d),drn(re,g.b),yrn(re,g.c);s=new Ut;for(M=new me(n.a);M.au.c.length-1)Gt(u,new js(V4,JPe));if(s=b(ce(f,Vm),17).a,pb(b(ce(t,IS),88)))f.e.art(ht((qr(s,u.c.length),b(u.c[s],42)).b))&&Ale((qr(s,u.c.length),b(u.c[s],42)),f.e.a+f.f.a);else f.e.brt(ht((qr(s,u.c.length),b(u.c[s],42)).b))&&Ale((qr(s,u.c.length),b(u.c[s],42)),f.e.b+f.f.b)}for(g=ti(t.b,0);g.b!=g.d.c;)f=b(Jn(g),40),s=b(ce(f,(Oc(),Vm)),17).a,At(f,(Ma(),rg),ht((qr(s,u.c.length),b(u.c[s],42)).a)),At(f,g0,ht((qr(s,u.c.length),b(u.c[s],42)).b));n.Vg()}function nIn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue;t.o=rt(ht(ce(t.i,(Qt(),kS)))),t.f=rt(ht(ce(t.i,SE))),t.j=t.i.b.c.length,S=t.j-1,q=0,t.k=0,t.n=0,t.b=xg(mt(qo,Bt,17,t.j,0,1)),t.c=xg(mt(Bs,Bt,345,t.j,7,1));for(_=new me(t.i.b);_.a<_.c.c.length;){f=b(ge(_),30),f.p=S;for(U=new me(f.a);U.a0&&Gt(t.q,M),Gt(t.p,M);n-=u,re=C+n,O+=n*t.f,Lf(t.b,S,$t(re)),Lf(t.c,S,O),t.k=d.Math.max(t.k,re),t.n=d.Math.max(t.n,O),t.e+=n,n+=ue}}function Ht(){Ht=z;var t;Cc=new y$(_D,0),pn=new y$(lZ,1),Cn=new y$(y0e,2),Kn=new y$(v0e,3),bn=new y$(_0e,4),Yg=(Hr(),new ZI((t=b(G0(bl),9),new Rf(t,b(t0(t,t.length),9),0)))),_0=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[]))),Kf=Iy(Ua(Cn,Te(we(bl,1),Qc,64,0,[]))),sf=Iy(Ua(Kn,Te(we(bl,1),Qc,64,0,[]))),Rp=Iy(Ua(bn,Te(we(bl,1),Qc,64,0,[]))),yh=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[Kn]))),oh=Iy(Ua(Cn,Te(we(bl,1),Qc,64,0,[bn]))),E0=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[bn]))),sd=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[Cn]))),of=Iy(Ua(Kn,Te(we(bl,1),Qc,64,0,[bn]))),Xf=Iy(Ua(Cn,Te(we(bl,1),Qc,64,0,[Kn]))),od=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[Cn,bn]))),bh=Iy(Ua(Cn,Te(we(bl,1),Qc,64,0,[Kn,bn]))),vh=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[Kn,bn]))),Uh=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[Cn,Kn]))),Cu=Iy(Ua(pn,Te(we(bl,1),Qc,64,0,[Cn,Kn,bn])))}function iIn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt;n.Ug(fWt,1),ue=new Ut,Ot=new Ut;for(O=new me(t.b);O.a0&&(Ve-=re),_De(_,Ve),M=0;for(q=new me(_.a);q.a0),S.a.Xb(S.c=--S.b);C=0.4*u*M,!g&&S.b0){if(C=(fn(0,n.length),n.charCodeAt(0)),C!=64){if(C==37){if(U=n.lastIndexOf("%"),O=!1,U!=0&&(U==q-1||(O=(fn(U+1,n.length),n.charCodeAt(U+1)==46)))){if(_=(Do(1,U,n.length),n.substr(1,U-1)),Ve=Br("%",_)?null:ODe(_),u=0,O)try{u=Zd((fn(U+2,n.length+1),n.substr(U+2)),Qo,sa)}catch(et){if(et=Qa(et),He(et,130))throw S=et,ve(new lX(S));else throw ve(et)}for(de=iLe(t.Gh());de.Ob();)if(ae=PX(de),He(ae,519)){if(f=b(ae,598),Be=f.d,(Ve==null?Be==null:Br(Ve,Be))&&u--==0)return f}return null}}if(M=n.lastIndexOf("."),re=M==-1?n:(Do(0,M,n.length),n.substr(0,M)),s=0,M!=-1)try{s=Zd((fn(M+1,n.length+1),n.substr(M+1)),Qo,sa)}catch(et){if(et=Qa(et),He(et,130))re=n;else throw ve(et)}re=Br("%",re)?null:ODe(re);for(ue=iLe(t.Gh());ue.Ob();)if(ae=PX(ue),He(ae,197)){if(g=b(ae,197),Se=g.xe(),(re==null?Se==null:Br(re,Se))&&s--==0)return g}return null}}return nqt(t,n)}function dIn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be;M=new Zn,C=new Dw;for(u=new me(t.a.a.b);u.an.d.c){if(re=t.c[n.a.d],de=t.c[U.a.d],re==de)continue;l0(Zp(Qp(Jp(Xp(new fp,1),100),re),de))}}}}function fIn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot;if(q=b(b(_a(t.r,n),21),87),n==(Ht(),Cn)||n==bn){hqt(t,n);return}g=n==pn?(qw(),ez):(qw(),tz),et=n==pn?(ph(),eg):(ph(),d0),s=b(Nl(t.b,n),127),u=s.i,f=u.c+y4(Te(we(xo,1),Ml,28,15,[s.n.b,t.C.b,t.k])),Se=u.c+u.b-y4(Te(we(xo,1),Ml,28,15,[s.n.c,t.C.c,t.k])),_=q5e(o6e(g),t.t),Be=n==pn?Gs:Wa;for(U=q.Kc();U.Ob();){if(O=b(U.Pb(),117),!O.c||O.c.d.c.length<=0)continue;de=O.b.Mf(),ue=O.e,re=O.c,ae=re.i,ae.b=(C=re.n,re.e.a+C.b+C.c),ae.a=(S=re.n,re.e.b+S.d+S.a),H$(et,o9e),re.f=et,W0(re,(td(),h0)),ae.c=ue.a-(ae.b-de.a)/2,wt=d.Math.min(f,ue.a),Ot=d.Math.max(Se,ue.a+de.a),ae.cOt&&(ae.c=Ot-ae.b),Gt(_.d,new Rue(ae,ZLe(_,ae))),Be=n==pn?d.Math.max(Be,ue.b+O.b.Mf().b):d.Math.min(Be,ue.b)}Be+=n==pn?t.t:-t.t,Ve=b7e((_.e=Be,_)),Ve>0&&(b(Nl(t.b,n),127).a.b=Ve);for(M=q.Kc();M.Ob();){if(O=b(M.Pb(),117),!O.c||O.c.d.c.length<=0)continue;ae=O.c.i,ae.c-=O.e.a,ae.d-=O.e.b}}function pIn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re;n=new Zn;for(C=new kn(t);C.e!=C.i.gc();){S=b(Dn(C),27),s=new Rs,Ki(jme,S,s),re=new fs,f=b(uc(new Pr(null,new Aw(new Nn(Mn(rG(S).a.Kc(),new L)))),MOt(re,ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)])))),85),p9t(s,b(f.xc((nn(),!0)),16),new ya),u=b(uc(pa(b(f.xc(!1),15).Lc(),new rs),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc]))),15);for(_=u.Kc();_.Ob();)if(g=b(_.Pb(),74),q=pUt(g),q){if(O=b(Jl(wl(n.f,q)),21),!O)O=Bzt(q),Hu(n.f,q,O);Po(s,O)}f=b(uc(new Pr(null,new Aw(new Nn(Mn(Ob(S).a.Kc(),new L)))),MOt(re,ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc])))),85),p9t(s,b(f.xc(!0),16),new xs),u=b(uc(pa(b(f.xc(!1),15).Lc(),new Yr),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc]))),15);for(U=u.Kc();U.Ob();)if(M=b(U.Pb(),74),q=gUt(M),q){if(O=b(Jl(wl(n.f,q)),21),!O)O=Bzt(q),Hu(n.f,q,O);Po(s,O)}}}function gIn(t,n){ppe();var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue;if(C=Kc(t,0)<0,C&&(t=ky(t)),Kc(t,0)==0)switch(n){case 0:return"0";case 1:return MO;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return re=new Dv,n<0?re.a+="0E+":re.a+="0E",re.a+=n==Qo?"2147483648":""+-n,re.a}M=18,U=mt(Qf,Om,28,M+1,15,1),s=M,ue=t;do O=ue,ue=YU(ue,10),U[--s]=gi(rl(48,bp(O,nl(ue,10))))&Ds;while(Kc(ue,0)!=0);if(f=bp(bp(bp(M,s),n),1),n==0)return C&&(U[--s]=45),yp(U,s,M-s);if(n>0&&Kc(f,-6)>=0){if(Kc(f,0)>=0){g=s+gi(f);for(S=M-1;S>=g;S--)U[S+1]=U[S];return U[++g]=46,C&&(U[--s]=45),yp(U,s,M-s+1)}for(_=2;uce(_,rl(ky(f),1));_++)U[--s]=48;return U[--s]=46,U[--s]=48,C&&(U[--s]=45),yp(U,s,M-s)}if(ae=s+1,u=M,q=new KC,C&&(q.a+="-"),u-ae>=1)qv(q,U[s]),q.a+=".",q.a+=yp(U,s+1,M-s-1);else q.a+=yp(U,s,M-s);return q.a+="E",Kc(f,0)>0&&(q.a+="+"),q.a+=""+a8(f),q.a}function rS(t,n,s,u,f){var g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot;if(de=new Dt(t.g,t.f),ue=WMe(t),ue.a=d.Math.max(ue.a,n),ue.b=d.Math.max(ue.b,s),Ot=ue.a/de.a,M=ue.b/de.b,et=ue.a-de.a,C=ue.b-de.b,u){_=!Ya(t)?b(It(t,(Hi(),CE)),88):b(It(Ya(t),(Hi(),CE)),88),S=nt(It(t,(Hi(),$9)))===nt((Ao(),xu));for(Be=new kn((!t.c&&(t.c=new kt(ld,t,9,9)),t.c));Be.e!=Be.i.gc();){if(Se=b(Dn(Be),123),Ve=b(It(Se,Ak),64),Ve==(Ht(),Cc))Ve=uDe(Se,_),Ta(Se,Ak,Ve);switch(Ve.g){case 1:S||eh(Se,Se.i*Ot);break;case 2:eh(Se,Se.i+et),S||th(Se,Se.j*M);break;case 3:S||eh(Se,Se.i*Ot),th(Se,Se.j+C);break;case 4:S||th(Se,Se.j*M)}}}if(s4(t,ue.a,ue.b),f){for(q=new kn((!t.n&&(t.n=new kt(Dl,t,1,7)),t.n));q.e!=q.i.gc();)if(U=b(Dn(q),135),re=U.i+U.g/2,ae=U.j+U.f/2,wt=re/de.a,O=ae/de.b,wt+O>=1){if(wt-O>0&&ae>=0)eh(U,U.i+et),th(U,U.j+C*O);else if(wt-O<0&&re>=0)eh(U,U.i+et*wt),th(U,U.j+C)}}return Ta(t,(Hi(),kE),(Md(),g=b(G0(W9),9),new Rf(g,b(t0(g,g.length),9),0))),new Dt(Ot,M)}function yqt(t){gw(t,new tE(QW(dw(cw(hw(uw(new x2,Vf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new d_t),Vf))),Ft(t,Vf,LZ,jt(Oir)),Ft(t,Vf,bx,jt(Nir)),Ft(t,Vf,H4,jt(kir)),Ft(t,Vf,w5,jt(Air)),Ft(t,Vf,E5,jt(Rir)),Ft(t,Vf,GO,jt(Cir)),Ft(t,Vf,TD,jt(_He)),Ft(t,Vf,zO,jt(Iir)),Ft(t,Vf,Sge,jt(Zbe)),Ft(t,Vf,wge,jt(Jbe)),Ft(t,Vf,UZ,jt(wHe)),Ft(t,Vf,Tge,jt(eye)),Ft(t,Vf,xge,jt(SHe)),Ft(t,Vf,yBe,jt(THe)),Ft(t,Vf,bBe,jt(EHe)),Ft(t,Vf,fBe,jt(jee)),Ft(t,Vf,pBe,jt(Kee)),Ft(t,Vf,gBe,jt(Mz)),Ft(t,Vf,mBe,jt(xHe)),Ft(t,Vf,dBe,jt(vHe))}function JQ(t){var n,s,u,f,g,_,S,C,O,M,U;if(t==null)throw ve(new bm(mh));if(O=t,g=t.length,C=!1,g>0){if(n=(fn(0,t.length),t.charCodeAt(0)),n==45||n==43)t=(fn(1,t.length+1),t.substr(1)),--g,C=n==45}if(g==0)throw ve(new bm(aS+O+'"'));while(t.length>0&&(fn(0,t.length),t.charCodeAt(0)==48))t=(fn(1,t.length+1),t.substr(1)),--g;if(g>(KVt(),FXt)[10])throw ve(new bm(aS+O+'"'));for(f=0;f0)U=-parseInt((Do(0,u,t.length),t.substr(0,u)),10),t=(fn(u,t.length+1),t.substr(u)),g-=u,s=!1;while(g>=_){if(u=parseInt((Do(0,_,t.length),t.substr(0,_)),10),t=(fn(_,t.length+1),t.substr(_)),g-=_,s)s=!1;else{if(Kc(U,S)<0)throw ve(new bm(aS+O+'"'));U=nl(U,M)}U=bp(U,u)}if(Kc(U,0)>0)throw ve(new bm(aS+O+'"'));if(!C){if(U=ky(U),Kc(U,0)<0)throw ve(new bm(aS+O+'"'))}return U}function ODe(t){_pe();var n,s,u,f,g,_,S,C;if(t==null)return null;if(f=ym(t,gh(37)),f<0)return t;else{C=new Vd((Do(0,f,t.length),t.substr(0,f))),n=mt(Gh,j4,28,4,15,1),S=0,u=0;for(_=t.length;f<_;f++)if(fn(f,t.length),t.charCodeAt(f)==37&&t.length>f+2&&gde((fn(f+1,t.length),t.charCodeAt(f+1)),lWe,cWe)&&gde((fn(f+2,t.length),t.charCodeAt(f+2)),lWe,cWe)){if(s=Pcn((fn(f+1,t.length),t.charCodeAt(f+1)),(fn(f+2,t.length),t.charCodeAt(f+2))),f+=2,u>0)(s&192)==128?n[S++]=s<<24>>24:u=0;else if(s>=128){if((s&224)==192)n[S++]=s<<24>>24,u=2;else if((s&240)==224)n[S++]=s<<24>>24,u=3;else if((s&248)==240)n[S++]=s<<24>>24,u=4}if(u>0){if(S==u){switch(S){case 2:{qv(C,((n[0]&31)<<6|n[1]&63)&Ds);break}case 3:{qv(C,((n[0]&15)<<12|(n[1]&63)<<6|n[2]&63)&Ds);break}}S=0,u=0}}else{for(g=0;g=2){if((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i==0)s=(Bv(),f=new RW,f),ii((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),s);else if((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i>1){q=new RA((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a));while(q.e!=q.i.gc())K8(q)}uG(n,b(Ye((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),0),166))}if(U)for(u=new kn((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a));u.e!=u.i.gc();){s=b(Dn(u),166);for(O=new kn((!s.a&&(s.a=new Os(lf,s,5)),s.a));O.e!=O.i.gc();)C=b(Dn(O),377),S.a=d.Math.max(S.a,C.a),S.b=d.Math.max(S.b,C.b)}for(_=new kn((!t.n&&(t.n=new kt(Dl,t,1,7)),t.n));_.e!=_.i.gc();)if(g=b(Dn(_),135),M=b(It(g,G9),8),!!M&&kf(g,M.a,M.b),U)S.a=d.Math.max(S.a,g.i+g.g),S.b=d.Math.max(S.b,g.j+g.f);return S}function _qt(t,n,s,u,f){var g,_,S;if(EDt(t,n),_=n[0],g=Ko(s.c,0),S=-1,ALe(s))if(u>0){if(_+u>t.length)return!1;S=AQ((Do(0,_+u,t.length),t.substr(0,_+u)),n)}else S=AQ(t,n);switch(g){case 71:return S=I4(t,_,Te(we(or,1),Bt,2,6,[aYt,sYt]),n),f.e=S,!0;case 77:return O4n(t,n,f,S,_);case 76:return N4n(t,n,f,S,_);case 69:return SSn(t,n,_,f);case 99:return TSn(t,n,_,f);case 97:return S=I4(t,_,Te(we(or,1),Bt,2,6,["AM","PM"]),n),f.b=S,!0;case 121:return L4n(t,n,_,S,s,f);case 100:if(S<=0)return!1;return f.c=S,!0;case 83:if(S<0)return!1;return $yn(S,_,n[0],f);case 104:S==12&&(S=0);case 75:case 72:if(S<0)return!1;return f.f=S,f.g=!1,!0;case 107:if(S<0)return!1;return f.f=S,f.g=!0,!0;case 109:if(S<0)return!1;return f.j=S,!0;case 115:if(S<0)return!1;return f.n=S,!0;case 90:if(_xr[C]&&(de=C);for(U=new me(t.a.b);U.a1){if(f=TCn(n),U=g.g,ae=b(It(n,I9),107),ue=rt(ht(It(n,Jee))),(!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i>1&&rt(ht(It(n,(w1(),lye))))!=Wa&&(g.c+(ae.b+ae.c))/(g.b+(ae.d+ae.a))1&&rt(ht(It(n,(w1(),oye))))!=Wa&&(g.c+(ae.b+ae.c))/(g.b+(ae.d+ae.a))>ue&&Ta(f,(w1(),Vx),d.Math.max(rt(ht(It(n,R9))),rt(ht(It(f,Vx)))-rt(ht(It(n,oye))))),re=new FRe(u,M),C=Uqt(re,f,q),O=C.g,O>=U&&O==O){for(_=0;_<(!f.a&&(f.a=new kt(ra,f,10,11)),f.a).i;_++)fGt(t,b(Ye((!f.a&&(f.a=new kt(ra,f,10,11)),f.a),_),27),b(Ye((!n.a&&(n.a=new kt(ra,n,10,11)),n.a),_),27));WDt(n,re),Adn(g,C.c),kdn(g,C.b)}--S}Ta(n,(w1(),AN),g.b),Ta(n,U5,g.c),s.Vg()}function vIn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be;n.Ug("Interactive node layering",1),s=new Ut;for(q=new me(t.a);q.a=S){Pn(Be.b>0),Be.a.Xb(Be.c=--Be.b);break}else if(de.a>C)if(!u)Gt(de.b,M),de.c=d.Math.min(de.c,C),de.a=d.Math.max(de.a,S),u=de;else Us(u.b,de.b),u.a=d.Math.max(u.a,de.a),Nd(Be);if(!u)u=new gkt,u.c=C,u.a=S,DT(Be,u),Gt(u.b,M)}_=t.b,O=0;for(Se=new me(s);Se.are){if(g)al(Ot,q),al(xr,$t(O.b-1));Ri=s.b,ts+=q+n,q=0,M=d.Math.max(M,s.b+s.c+Rn)}eh(S,Ri),th(S,ts),M=d.Math.max(M,Ri+Rn+s.c),q=d.Math.max(q,U),Ri+=Rn+n}if(M=d.Math.max(M,u),Kr=ts+q+s.a,KrMm,wr=d.Math.abs(q.b-ae.b)>Mm,(!s&&xr&&wr||s&&(xr||wr))&&Oi(de.a,et);if(Po(de.a,u),u.b==0?q=et:q=(Pn(u.b!=0),b(u.c.b.c,8)),a1n(re,U,ue),Y9t(f)==Wt){if(zo(Wt.i)!=f.a)ue=new Oo,VMe(ue,zo(Wt.i),Be);At(de,K1e,ue)}Gwn(re,de,Be),M.a.zc(re,M)}tl(de,wt),ko(de,Wt)}for(O=M.a.ec().Kc();O.Ob();)C=b(O.Pb(),18),tl(C,null),ko(C,null);n.Vg()}function wIn(t,n){var s,u,f,g,_,S,C,O,M,U,q;f=b(ce(t,(Oc(),IS)),88),M=f==(Ms(),Kl)||f==sc?Vg:sc,s=b(uc(pa(new Pr(null,new Gr(t.b,16)),new bvt),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15),C=b(uc(ec(s.Oc(),new PCt(n)),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc]))),15),C.Gc(b(uc(ec(s.Oc(),new BCt(n)),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc]))),16)),C.jd(new FCt(M)),q=new by(new $Ct(f)),u=new Zn;for(S=C.Kc();S.Ob();)if(_=b(S.Pb(),240),O=b(_.a,40),er(Jt(_.c)))q.a.zc(O,(nn(),g_))==null,new YI(q.a.Zc(O,!1)).a.gc()>0&&Ki(u,O,b(new YI(q.a.Zc(O,!1)).a.Vc(),40)),new YI(q.a.ad(O,!0)).a.gc()>1&&Ki(u,XBt(q,O),O);else{if(new YI(q.a.Zc(O,!1)).a.gc()>0)g=b(new YI(q.a.Zc(O,!1)).a.Vc(),40),nt(g)===nt(Jl(wl(u.f,O)))&&b(ce(O,(Ma(),Lbe)),15).Fc(g);if(new YI(q.a.ad(O,!0)).a.gc()>1)U=XBt(q,O),nt(Jl(wl(u.f,U)))===nt(O)&&b(ce(U,(Ma(),Lbe)),15).Fc(O);q.a.Bc(O)!=null}}function Eqt(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;if(t.gc()==1)return b(t.Xb(0),235);else if(t.gc()<=0)return new JK;for(f=t.Kc();f.Ob();){s=b(f.Pb(),235),ae=0,M=sa,U=sa,C=Qo,O=Qo;for(re=new me(s.e);re.aS)Ve=0,et+=_+Se,_=0;jkn(ue,s,Ve,et),n=d.Math.max(n,Ve+de.a),_=d.Math.max(_,de.b),Ve+=de.a+Se}return ue}function SIn(t){cDe();var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(t==null)return null;if(g=uX(t),ae=Qbn(g),ae%4!=0)return null;if(ue=ae/4|0,ue==0)return mt(Gh,j4,28,0,15,1);U=null,n=0,s=0,u=0,f=0,_=0,S=0,C=0,O=0,re=0,q=0,M=0,U=mt(Gh,j4,28,ue*3,15,1);for(;re>4)<<24>>24,U[q++]=((s&15)<<4|u>>2&15)<<24>>24,U[q++]=(u<<6|f)<<24>>24}if(!JF(_=g[M++])||!JF(S=g[M++]))return null;if(n=jg[_],s=jg[S],C=g[M++],O=g[M++],jg[C]==-1||jg[O]==-1)if(C==61&&O==61){if((s&15)!=0)return null;return de=mt(Gh,j4,28,re*3+1,15,1),au(U,0,de,0,re*3),de[q]=(n<<2|s>>4)<<24>>24,de}else if(C!=61&&O==61){if(u=jg[C],(u&3)!=0)return null;return de=mt(Gh,j4,28,re*3+2,15,1),au(U,0,de,0,re*3),de[q++]=(n<<2|s>>4)<<24>>24,de[q]=((s&15)<<4|u>>2&15)<<24>>24,de}else return null;else u=jg[C],f=jg[O],U[q++]=(n<<2|s>>4)<<24>>24,U[q++]=((s&15)<<4|u>>2&15)<<24>>24,U[q++]=(u<<6|f)<<24>>24;return U}function TIn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt;n.Ug(fWt,1),ae=b(ce(t,(Qt(),$b)),223);for(f=new me(t.b);f.a=2){ue=!0,q=new me(g.j),s=b(ge(q),12),re=null;while(q.a0){if(u=U.gc(),O=Ks(d.Math.floor((u+1)/2))-1,f=Ks(d.Math.ceil((u+1)/2))-1,n.o==Gg){for(M=f;M>=O;M--)if(n.a[et.p]==et){if(ue=b(U.Xb(M),42),ae=b(ue.a,10),!z0(s,ue.b)&&re>t.b.e[ae.p])n.a[ae.p]=et,n.g[et.p]=n.g[ae.p],n.a[et.p]=n.g[et.p],n.f[n.g[et.p].p]=(nn(),er(n.f[n.g[et.p].p])&et.k==(mn(),mo)?!0:!1),re=t.b.e[ae.p]}}else for(M=O;M<=f;M++)if(n.a[et.p]==et){if(Se=b(U.Xb(M),42),de=b(Se.a,10),!z0(s,Se.b)&&re0)f=b(nr(de.c.a,Ot-1),10),_=t.i[f.p],xr=d.Math.ceil(l4(t.n,f,de)),g=wt.a.e-de.d.d-(_.a.e+f.o.b+f.d.a)-xr;if(O=Wa,Ot0&&Wt.a.e.e-Wt.a.a-(Wt.b.e.e-Wt.b.a)<0,ae=Ve.a.e.e-Ve.a.a-(Ve.b.e.e-Ve.b.a)<0&&Wt.a.e.e-Wt.a.a-(Wt.b.e.e-Wt.b.a)>0,re=Ve.a.e.e+Ve.b.aWt.b.e.e+Wt.a.a,et=0,!ue&&!ae&&(q?g+U>0?et=U:O-u>0&&(et=u):re&&(g+S>0?et=S:O-Be>0&&(et=Be))),wt.a.e+=et,wt.b&&(wt.d.e+=et),!1}function Sqt(t,n,s){var u,f,g,_,S,C,O,M,U,q;if(u=new If(n.Lf().a,n.Lf().b,n.Mf().a,n.Mf().b),f=new kA,t.c)for(_=new me(n.Rf());_.a<_.c.c.length;)g=b(ge(_),187),f.c=g.Lf().a+n.Lf().a,f.d=g.Lf().b+n.Lf().b,f.b=g.Mf().a,f.a=g.Mf().b,X8(u,f);for(O=new me(n.Xf());O.aO&&(u.a+=QRt(mt(Qf,Om,28,-O,15,1))),u.a+="Is",ym(C,gh(32))>=0)for(f=0;f=u.o.b/2}else Be=!U;if(Be)if(Se=b(ce(u,(Pt(),F5)),15),!Se)g=new Ut,At(u,F5,g);else if(q)g=Se;else if(f=b(ce(u,L5),15),!f)g=new Ut,At(u,L5,g);else Se.gc()<=f.gc()?g=Se:g=f;else if(f=b(ce(u,(Pt(),L5)),15),!f)g=new Ut,At(u,L5,g);else if(U)g=f;else if(Se=b(ce(u,F5),15),!Se)g=new Ut,At(u,F5,g);else f.gc()<=Se.gc()?g=f:g=Se;if(g.Fc(t),At(t,(Pt(),cee),s),n.d==s)ko(n,null),s.e.c.length+s.g.c.length==0&&Ec(s,null),z1n(s);else tl(n,null),s.e.c.length+s.g.c.length==0&&Ec(s,null);Hd(n.a)}function AIn(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts;s.Ug("MinWidth layering",1),re=n.b,Wt=n.a,ts=b(ce(n,(Qt(),kze)),17).a,S=b(ce(n,Aze),17).a,t.b=rt(ht(ce(n,p0))),t.d=Wa;for(et=new me(Wt);et.a0){if(O=0,!!de&&(O+=S),O+=(wr-1)*_,!!Ve&&(O+=S),xr&&!!Ve&&(O=d.Math.max(O,jCn(Ve,_,Be,Wt))),O=t.a)u=uAn(t,Be),M=d.Math.max(M,u.b),et=d.Math.max(et,u.d),Gt(S,new js(Be,u));xr=new Ut;for(O=0;O0),de.a.Xb(de.c=--de.b),wr=new gu(t.b),DT(de,wr),Pn(de.b0){q=M<100?null:new Pv(M),O=new hLe(n),ae=O.g,Se=mt(ci,$i,28,M,15,1),u=0,et=new $w(M);for(f=0;f=0;)if(re!=null?da(re,ae[C]):nt(re)===nt(ae[C])){if(Se.length<=u)de=Se,Se=mt(ci,$i,28,2*Se.length,15,1),au(de,0,Se,0,u);Se[u++]=f,ii(et,ae[C]);break e}if(re=re,nt(re)===nt(S))break}}if(O=et,ae=et.g,M=u,u>Se.length)de=Se,Se=mt(ci,$i,28,u,15,1),au(de,0,Se,0,u);if(u>0){Ve=!0;for(g=0;g=0;)a5(t,Se[_]);if(u!=M){for(f=M;--f>=u;)a5(O,f);de=Se,Se=mt(ci,$i,28,u,15,1),au(de,0,Se,0,u)}n=O}}}else{n=q_n(t,n);for(f=t.i;--f>=0;)if(n.Hc(t.g[f]))a5(t,f),Ve=!0}if(Ve){if(Se!=null){s=n.gc(),U=s==1?f8(t,4,n.Kc().Pb(),null,Se[0],ue):f8(t,6,n,Se,Se[0],ue),q=s<100?null:new Pv(s);for(f=n.Kc();f.Ob();)re=f.Pb(),q=e6e(t,b(re,76),q);if(!q)ha(t.e,U);else q.nj(U),q.oj()}else{q=Qsn(n.gc());for(f=n.Kc();f.Ob();)re=f.Pb(),q=e6e(t,b(re,76),q);!!q&&q.oj()}return!0}else return!1}function OIn(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve;s=new zFt(n),s.a||a3n(n),O=nkn(n),C=new Dw,de=new Hzt;for(ue=new me(n.a);ue.a0||s.o==Gg&&f=s}function LIn(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn;Ve=n,Be=new Dw,et=new Dw,M=Fw(Ve,eFe),u=new QNt(t,s,Be,et),Jwn(u.a,u.b,u.c,u.d,M),C=(Wt=Be.i,!Wt?Be.i=new h4(Be,Be.c):Wt);for(wr=C.Kc();wr.Ob();){xr=b(wr.Pb(),166),f=b(_a(Be,xr),21);for(ue=f.Kc();ue.Ob();)if(ae=ue.Pb(),wt=b(v4(t.d,ae),166),wt)S=(!xr.e&&(xr.e=new Wr(Ha,xr,10,9)),xr.e),ii(S,wt);else throw _=yb(Ve,Fm),q=zjt+ae+Vjt+_,re=q+QO,ve(new mm(re))}O=(Ot=et.i,!Ot?et.i=new h4(et,et.c):Ot);for(Kr=O.Kc();Kr.Ob();){tn=b(Kr.Pb(),166),g=b(_a(et,tn),21);for(Se=g.Kc();Se.Ob();)if(de=Se.Pb(),wt=b(v4(t.d,de),166),wt)U=(!tn.g&&(tn.g=new Wr(Ha,tn,9,10)),tn.g),ii(U,wt);else throw _=yb(Ve,Fm),q=zjt+de+Vjt+_,re=q+QO,ve(new mm(re))}if(!s.b&&(s.b=new Wr(qn,s,4,7)),s.b.i!=0&&(!s.c&&(s.c=new Wr(qn,s,5,8)),s.c.i!=0)&&(!s.b&&(s.b=new Wr(qn,s,4,7)),s.b.i<=1&&(!s.c&&(s.c=new Wr(qn,s,5,8)),s.c.i<=1))&&(!s.a&&(s.a=new kt(Ha,s,6,6)),s.a).i==1){if(Rn=b(Ye((!s.a&&(s.a=new kt(Ha,s,6,6)),s.a),0),166),!ife(Rn)&&!afe(Rn))xX(Rn,b(Ye((!s.b&&(s.b=new Wr(qn,s,4,7)),s.b),0),84)),CX(Rn,b(Ye((!s.c&&(s.c=new Wr(qn,s,5,8)),s.c),0),84))}}function MIn(t){var n,s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;for(Ve=t.a,et=0,wt=Ve.length;et0)U=b(nr(q.c.a,_-1),10),xr=l4(t.b,q,U),de=q.n.b-q.d.d-(U.n.b+U.o.b+U.d.a+xr);else de=q.n.b-q.d.d;if(O=d.Math.min(de,O),_1&&(_=d.Math.min(_,d.Math.abs(b(Gf(S.a,1),8).b-M.b)))}}}else for(ue=new me(n.j);ue.af)g=q.a-f,_=sa,u.c.length=0,f=q.a;if(q.a>=f)rn(u.c,S),S.a.b>1&&(_=d.Math.min(_,d.Math.abs(b(Gf(S.a,S.a.b-2),8).b-q.b)))}}if(u.c.length!=0&&g>n.o.a/2&&_>n.o.b/2){re=new iu,Ec(re,n),Xs(re,(Ht(),pn)),re.n.a=n.o.a/2,Se=new iu,Ec(Se,n),Xs(Se,Kn),Se.n.a=n.o.a/2,Se.n.b=n.o.b;for(C=new me(u);C.a=O.b?tl(S,Se):tl(S,re);else O=b(xcn(S.a),8),de=S.a.b==0?Tg(S.c):b(e0(S.a),8),de.b>=O.b?ko(S,Se):ko(S,re);U=b(ce(S,(Qt(),jl)),75),!!U&&JT(U,O,!0)}n.n.a=f-n.o.a/2}}function PIn(t,n,s){var u,f,g,_,S,C,O,M,U,q;for(S=ti(t.b,0);S.b!=S.d.c;){if(_=b(Jn(S),40),Br(_.c,BZ))continue;O=oxn(_,t),n==(Ms(),Kl)||n==sc?ks(O,new zvt):ks(O,new Vvt),C=O.c.length;for(u=0;u=0?re=t5(S):re=DU(t5(S)),t.qf(vN,re);if(O=new Oo,q=!1,t.pf(xS))TIe(O,b(t.of(xS),8)),q=!0;else Yan(O,_.a/2,_.b/2);switch(re.g){case 4:At(M,sh,(Uf(),__)),At(M,hee,(K2(),ik)),M.o.b=_.b,ue<0&&(M.o.a=-ue),Xs(U,(Ht(),Cn)),q||(O.a=_.a),O.a-=_.a;break;case 2:At(M,sh,(Uf(),Nx)),At(M,hee,(K2(),dN)),M.o.b=_.b,ue<0&&(M.o.a=-ue),Xs(U,(Ht(),bn)),q||(O.a=0);break;case 1:At(M,mE,(Sb(),sk)),M.o.a=_.a,ue<0&&(M.o.b=-ue),Xs(U,(Ht(),Kn)),q||(O.b=_.b),O.b-=_.b;break;case 3:At(M,mE,(Sb(),N5)),M.o.a=_.a,ue<0&&(M.o.b=-ue),Xs(U,(Ht(),pn)),q||(O.b=0)}if(TIe(U.n,O),At(M,xS,O),n==RE||n==B1||n==xu){if(ae=0,n==RE&&t.pf(Yy))switch(re.g){case 1:case 2:ae=b(t.of(Yy),17).a;break;case 3:case 4:ae=-b(t.of(Yy),17).a}else switch(re.g){case 4:case 2:ae=g.b,n==B1&&(ae/=f.b);break;case 1:case 3:ae=g.a,n==B1&&(ae/=f.a)}At(M,_S,ae)}return At(M,Pc,re),M}function BIn(){K5e();function t(u){var f=this;this.dispatch=function(g){var _=g.data;switch(_.cmd){case"algorithms":var S=m7e((Hr(),new qI(new hb(O_.b))));u.postMessage({id:_.id,data:S});break;case"categories":var C=m7e((Hr(),new qI(new hb(O_.c))));u.postMessage({id:_.id,data:C});break;case"options":var O=m7e((Hr(),new qI(new hb(O_.d))));u.postMessage({id:_.id,data:O});break;case"register":U5n(_.algorithms),u.postMessage({id:_.id});break;case"layout":gAn(_.graph,_.layoutOptions||{},_.options||{}),u.postMessage({id:_.id,data:_.graph});break}},this.saveDispatch=function(g){try{f.dispatch(g)}catch(_){u.postMessage({id:g.data.id,error:_})}}}function n(u){var f=this;this.dispatcher=new t({postMessage:function(g){f.onmessage({data:g})}}),this.postMessage=function(g){setTimeout(function(){f.dispatcher.saveDispatch({data:g})},0)}}if(typeof document===d0e&&typeof self!==d0e){var s=new t(self);self.onmessage=s.saveDispatch}else if(typeof o!==d0e&&o.exports)Object.defineProperty(l,"__esModule",{value:!0}),o.exports={default:n,Worker:n}}function Rqt(t,n,s){var u,f,g,_,S,C,O,M,U,q;M=new Ib(s),nc(M,n),At(M,(Pt(),Ea),n),M.o.a=n.g,M.o.b=n.f,M.n.a=n.i,M.n.b=n.j,Gt(s.a,M),Ki(t.a,n,M),((!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i!=0||er(Jt(It(n,(Qt(),Dx)))))&&At(M,SGe,(nn(),!0)),O=b(ce(s,Tu),21),U=b(ce(M,(Qt(),ms)),101),U==(Ao(),A_)?At(M,ms,qg):U!=qg&&O.Fc((Tl(),gN)),q=0,u=b(ce(s,nf),88);for(C=new kn((!n.c&&(n.c=new kt(ld,n,9,9)),n.c));C.e!=C.i.gc();)S=b(Dn(C),123),f=Ya(n),(nt(It(f,L1))!==nt((Cm(),Wy))||nt(It(f,yE))===nt((My(),hN))||nt(It(f,yE))===nt((My(),uN))||er(Jt(It(f,wS)))||nt(It(f,Lx))!==nt((Z2(),kx))||nt(It(f,E_))===nt((_p(),AS))||nt(It(f,E_))===nt((_p(),Ux))||nt(It(f,_E))===nt(($y(),SN))||nt(It(f,_E))===nt(($y(),TN)))&&!er(Jt(It(n,yee)))&&Ta(S,Aa,$t(q++)),er(Jt(It(S,wE)))||WRn(t,S,M,O,u,U);for(_=new kn((!n.n&&(n.n=new kt(Dl,n,1,7)),n.n));_.e!=_.i.gc();)g=b(Dn(_),135),!er(Jt(It(g,wE)))&&!!g.a&&Gt(M.b,Ode(g));if(er(Jt(ce(M,c9)))&&O.Fc((Tl(),see)),er(Jt(ce(M,wee))))O.Fc((Tl(),oee)),O.Fc(n9),At(M,ms,qg);return M}function kpe(t,n,s,u,f,g,_){var S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts;ue=0,tn=0;for(O=new me(t.b);O.aue){if(g)al(Ot,re),al(xr,$t(M.b-1)),Gt(t.d,ae),S.c.length=0;Ri=s.b,ts+=re+n,re=0,U=d.Math.max(U,s.b+s.c+Rn)}rn(S.c,C),MFt(C,Ri,ts),U=d.Math.max(U,Ri+Rn+s.c),re=d.Math.max(re,q),Ri+=Rn+n,ae=C}if(Us(t.a,S),Gt(t.d,b(nr(S,S.c.length-1),163)),U=d.Math.max(U,u),Kr=ts+re+s.a,Krf.d.d+f.d.a)M.f.d=!0;else M.f.d=!0,M.f.a=!0}u.b!=u.d.c&&(n=s)}if(M)if(g=b(An(t.f,_.d.i),60),n.bg.d.d+g.d.a)M.f.d=!0;else M.f.d=!0,M.f.a=!0}for(S=new Nn(Mn(co(re).a.Kc(),new L));ri(S);)if(_=b(Gn(S),18),_.a.b!=0){if(n=b(e0(_.a),8),_.d.j==(Ht(),pn))de=new cD(n,new Dt(n.a,f.d.d),f,_),de.f.a=!0,de.a=_.d,rn(ue.c,de);if(_.d.j==Kn)de=new cD(n,new Dt(n.a,f.d.d+f.d.a),f,_),de.f.d=!0,de.a=_.d,rn(ue.c,de)}}}return ue}function VIn(t,n,s){var u,f,g,_,S,C,O,M,U,q;C=new Ut,U=n.length,_=kLe(s);for(O=0;O=ae){if(Be>ae)re.c.length=0,ae=Be;rn(re.c,_)}if(re.c.length!=0)q=b(nr(re,dQ(n,re.c.length)),131),Kr.a.Bc(q)!=null,q.s=ue++,x8e(q,wr,Ot),re.c.length=0}et=t.c.length+1;for(S=new me(t);S.atn.s){if(Nd(s),fh(tn.i,u),u.c>0)u.a=tn,Gt(tn.t,u),u.b=Wt,Gt(Wt.i,u)}}}function Iqt(t,n,s,u,f){var g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr;ue=new Gu(n.b),et=new Gu(n.b),q=new Gu(n.b),xr=new Gu(n.b),de=new Gu(n.b);for(Wt=ti(n,0);Wt.b!=Wt.d.c;){wt=b(Jn(Wt),12);for(S=new me(wt.g);S.a0,Se=wt.g.c.length>0,O&&Se?rn(q.c,wt):O?rn(ue.c,wt):Se&&rn(et.c,wt);for(ae=new me(ue);ae.aBe.nh()-O.b&&(q=Be.nh()-O.b),re>Be.oh()-O.d&&(re=Be.oh()-O.d),M0){for(Ve=ti(t.f,0);Ve.b!=Ve.d.c;)Be=b(Jn(Ve),10),Be.p+=q-t.e;HMe(t),Hd(t.f),$8e(t,u,re)}else{Oi(t.f,re),re.p=u,t.e=d.Math.max(t.e,u);for(g=new Nn(Mn(co(re).a.Kc(),new L));ri(g);)if(f=b(Gn(g),18),!f.c.i.c&&f.c.i.k==(mn(),Jc))Oi(t.f,f.c.i),f.c.i.p=u-1;t.c=u}else if(HMe(t),Hd(t.f),u=0,ri(new Nn(Mn(co(re).a.Kc(),new L))))q=0,q=$Ft(q,re),u=q+2,$8e(t,u,re);else Oi(t.f,re),re.p=0,t.e=d.Math.max(t.e,0),t.b=b(nr(t.d.b,0),30),t.c=0;t.f.b==0||HMe(t),t.d.a.c.length=0,Se=new Ut;for(O=new me(t.d.b);O.a=48&&n<=57){u=n-48;while(f=48&&n<=57)if(u=u*10+n-48,u<0)throw ve(new Ti(Ai((yi(),fFe))))}else throw ve(new Ti(Ai((yi(),gKt))));if(s=u,n==44)if(f>=t.j)throw ve(new Ti(Ai((yi(),bKt))));else if((n=Ko(t.i,f++))>=48&&n<=57){s=n-48;while(f=48&&n<=57)if(s=s*10+n-48,s<0)throw ve(new Ti(Ai((yi(),fFe))));if(u>s)throw ve(new Ti(Ai((yi(),yKt))))}else s=-1;if(n!=125)throw ve(new Ti(Ai((yi(),mKt))));if(t.bm(f))g=(ia(),ia(),++hs,new VT(9,g)),t.d=f+1;else g=(ia(),ia(),++hs,new VT(3,g)),t.d=f;g.Om(u),g.Nm(s),na(t)}}return g}function KIn(t){var n,s,u,f,g;switch(s=b(ce(t,(Pt(),Tu)),21),n=$j(UZt),f=b(ce(t,(Qt(),Mx)),346),f==(Cb(),Zy)&&Xd(n,GZt),er(Jt(ce(t,ibe)))?Fi(n,(Xo(),f0),(il(),f1e)):Fi(n,(Xo(),su),(il(),f1e)),ce(t,(nX(),M9))!=null&&Xd(n,zZt),(er(Jt(ce(t,Tze)))||er(Jt(ce(t,_ze))))&&Lh(n,(Xo(),ac),(il(),vUe)),b(ce(t,nf),88).g){case 2:case 3:case 4:Lh(Fi(n,(Xo(),f0),(il(),EUe)),ac,_Ue)}if(s.Hc((Tl(),see))&&Lh(Fi(Fi(n,(Xo(),f0),(il(),yUe)),wu,mUe),ac,bUe),nt(ce(t,E_))!==nt((_p(),Mee))&&Fi(n,(Xo(),su),(il(),PUe)),s.Hc(lee))Fi(n,(Xo(),f0),(il(),UUe)),Fi(n,O1,FUe),Fi(n,su,$Ue);if(nt(ce(t,mee))!==nt((mO(),r9))&&nt(ce(t,$b))!==nt((kb(),Kz))&&Lh(n,(Xo(),ac),(il(),IUe)),er(Jt(ce(t,wze)))&&Fi(n,(Xo(),su),(il(),RUe)),er(Jt(ce(t,ebe)))&&Fi(n,(Xo(),su),(il(),GUe)),lCn(t))nt(ce(t,Mx))===nt(Zy)?u=b(ce(t,Ez),299):u=b(ce(t,J1e),299),g=u==(W6(),F1e)?(il(),BUe):(il(),HUe),Fi(n,(Xo(),wu),g);switch(b(ce(t,Xze),388).g){case 1:Fi(n,(Xo(),wu),(il(),zUe));break;case 2:Lh(Fi(Fi(n,(Xo(),su),(il(),dUe)),wu,fUe),ac,pUe)}return nt(ce(t,L1))!==nt((Cm(),Wy))&&Fi(n,(Xo(),su),(il(),VUe)),n}function Mqt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve;if(Zu(t.a,n)){if(z0(b(An(t.a,n),49),s))return 1}else Ki(t.a,n,new Rs);if(Zu(t.a,s)){if(z0(b(An(t.a,s),49),n))return-1}else Ki(t.a,s,new Rs);if(Zu(t.e,n)){if(z0(b(An(t.e,n),49),s))return-1}else Ki(t.e,n,new Rs);if(Zu(t.e,s)){if(z0(b(An(t.a,s),49),n))return 1}else Ki(t.e,s,new Rs);if(t.c==(Cm(),_be)||!$a(n,(Pt(),Aa))||!$a(s,(Pt(),Aa))){U=null;for(O=new me(n.j);O.a_?SO(t,n,s):SO(t,s,n),f<_?-1:f>_?1:0}return u=b(ce(n,(Pt(),Aa)),17).a,g=b(ce(s,Aa),17).a,u>g?SO(t,n,s):SO(t,s,n),ug?1:0}function nS(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(s==null)return null;if(t.a!=n.jk())throw ve(new dn(KO+n.xe()+hS));if(He(n,469)){if(de=U4n(b(n,685),s),!de)throw ve(new dn($ge+s+"' is not a valid enumerator of '"+n.xe()+"'"));return de}switch(Oy((Ph(),Yo),n).Nl()){case 2:{s=vu(s,!1);break}case 3:{s=vu(s,!0);break}}if(u=Oy(Yo,n).Jl(),u)return u.jk().wi().ti(u,s);if(q=Oy(Yo,n).Ll(),q){de=new Ut;for(O=wde(s),M=0,U=O.length;M1){ae=new RA((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a));while(ae.e!=ae.i.gc())K8(ae)}_=b(Ye((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),0),166),de=Ri,Ri>wt+et?de=wt+et:RiOt+ue?Se=Ot+ue:tswt-et&&deOt-ue&&SeRi+Rn?xr=Ri+Rn:wtts+Wt?wr=ts+Wt:OtRi-Rn&&xrts-Wt&&wrs&&(q=s-1),re=av+md(n,24)*kG*U-U/2,re<0?re=1:re>u&&(re=u-1),f=(Bv(),C=new AW,C),vX(f,q),yX(f,re),ii((!_.a&&(_.a=new Os(lf,_,5)),_.a),f)}function Dqt(t){gw(t,new tE(dw(cw(hw(uw(new x2,vd),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new w_t))),Ft(t,vd,_5,1.3),Ft(t,vd,UO,(nn(),!1)),Ft(t,vd,sS,HHe),Ft(t,vd,bx,15),Ft(t,vd,NZ,jt(Jir)),Ft(t,vd,H4,jt(rar)),Ft(t,vd,w5,jt(iar)),Ft(t,vd,E5,jt(aar)),Ft(t,vd,GO,jt(tar)),Ft(t,vd,TD,jt(uye)),Ft(t,vd,zO,jt(sar)),Ft(t,vd,kBe,jt(jHe)),Ft(t,vd,ABe,jt(WHe)),Ft(t,vd,CBe,jt(dye)),Ft(t,vd,xBe,jt(KHe)),Ft(t,vd,RBe,jt(VHe)),Ft(t,vd,IBe,jt(hye)),Ft(t,vd,OBe,jt(zHe)),Ft(t,vd,NBe,jt(YHe)),Ft(t,vd,SD,jt(GHe)),Ft(t,vd,MZ,jt(ear)),Ft(t,vd,SBe,jt(Pz)),Ft(t,vd,wBe,jt(UHe)),Ft(t,vd,TBe,jt(Bz)),Ft(t,vd,EBe,jt(qHe))}function Rpe(t,n){ppe();var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri;if(xr=t.e,ae=t.d,f=t.a,xr==0)switch(n){case 0:return"0";case 1:return MO;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Ot=new Dv,n<0?Ot.a+="0E+":Ot.a+="0E",Ot.a+=-n,Ot.a}if(Ve=ae*10+1+7,et=mt(Qf,Om,28,Ve+1,15,1),s=Ve,ae==1)if(S=f[0],S<0){Ri=io(S,xl);do ue=Ri,Ri=YU(Ri,10),et[--s]=48+gi(bp(ue,nl(Ri,10)))&Ds;while(Kc(Ri,0)!=0)}else{Ri=S;do ue=Ri,Ri=Ri/10|0,et[--s]=48+(ue-Ri*10)&Ds;while(Ri!=0)}else{tn=mt(ci,$i,28,ae,15,1),Rn=ae,au(f,0,tn,0,Rn);e:while(!0){Wt=0;for(O=Rn-1;O>=0;O--)Kr=rl(n0(Wt,32),io(tn[O],xl)),Se=FEn(Kr),tn[O]=gi(Se),Wt=gi(Cw(Se,32));Be=gi(Wt),de=s;do et[--s]=48+Be%10&Ds;while((Be=Be/10|0)!=0&&s!=0);u=9-de+s;for(C=0;C0;C++)et[--s]=48;U=Rn-1;for(;tn[U]==0;U--)if(U==0)break e;Rn=U+1}while(et[s]==48)++s}if(re=xr<0,_=Ve-s-n-1,n==0)return re&&(et[--s]=45),yp(et,s,Ve-s);if(n>0&&_>=-6){if(_>=0){M=s+_;for(q=Ve-1;q>=M;q--)et[q+1]=et[q];return et[++M]=46,re&&(et[--s]=45),yp(et,s,Ve-s+1)}for(U=2;U<-_+1;U++)et[--s]=48;return et[--s]=46,et[--s]=48,re&&(et[--s]=45),yp(et,s,Ve-s)}if(wr=s+1,g=Ve,wt=new KC,re&&(wt.a+="-"),g-wr>=1)qv(wt,et[s]),wt.a+=".",wt.a+=yp(et,s+1,Ve-s-1);else wt.a+=yp(et,s,Ve-s);return wt.a+="E",_>0&&(wt.a+="+"),wt.a+=""+_,wt.a}function Pqt(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot;switch(t.c=n,t.g=new Zn,s=(mw(),new lw(t.c)),u=new BW(s),f7e(u),Ve=wi(It(t.c,(jU(),pqe))),C=b(It(t.c,wye),324),wt=b(It(t.c,Sye),437),_=b(It(t.c,hqe),490),et=b(It(t.c,Eye),438),t.j=rt(ht(It(t.c,Ear))),S=t.a,C.g){case 0:S=t.a;break;case 1:S=t.b;break;case 2:S=t.i;break;case 3:S=t.e;break;case 4:S=t.f;break;default:throw ve(new dn(VZ+(C.f!=null?C.f:""+C.g)))}if(t.d=new RLt(S,wt,_),At(t.d,(H6(),QD),Jt(It(t.c,yar))),t.d.c=er(Jt(It(t.c,dqe))),MK(t.c).i==0)return t.d;for(U=new kn(MK(t.c));U.e!=U.i.gc();){M=b(Dn(U),27),re=M.g/2,q=M.f/2,Ot=new Dt(M.i+re,M.j+q);while(Zu(t.g,Ot))Sw(Ot,(d.Math.random()-0.5)*Mm,(d.Math.random()-0.5)*Mm);ue=b(It(M,(Hi(),IN)),140),de=new VLt(Ot,new If(Ot.a-re-t.j/2-ue.b,Ot.b-q-t.j/2-ue.d,M.g+t.j+(ue.b+ue.c),M.f+t.j+(ue.d+ue.a))),Gt(t.d.i,de),Ki(t.g,Ot,new js(de,M))}switch(et.g){case 0:if(Ve==null)t.d.d=b(nr(t.d.i,0),68);else for(Be=new me(t.d.i);Be.a0?Rn+1:1}for(_=new me(Ot.g);_.a<_.c.c.length;){if(u=b(ge(_),18),u.d.i==ue)continue;Rn=b(ce(u,(Qt(),_N)),17).a,t.c[O]+=Rn>0?Rn+1:1}}t.c[O]==0?Oi(t.e,ue):t.a[O]==0&&Oi(t.f,ue),++O}ae=-1,re=1,U=new Ut,t.d=b(ce(n,(Pt(),B5)),234);while(cf>0){while(t.e.b!=0)ts=b(_ue(t.e),10),t.b[ts.p]=ae--,rDe(t,ts),--cf;while(t.f.b!=0)cd=b(_ue(t.f),10),t.b[cd.p]=re++,rDe(t,cd),--cf;if(cf>0){q=Qo;for(Be=new me(Ve);Be.a=q){if(et>q)U.c.length=0,q=et;rn(U.c,ue)}}M=t.sg(U),t.b[M.p]=re++,rDe(t,M),--cf}}Ri=Ve.c.length+1;for(O=0;Ot.b[Xl])tS(u,!0),At(n,bz,(nn(),!0))}}t.a=null,t.c=null,t.b=null,Hd(t.f),Hd(t.e),s.Vg()}function Bqt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot;wt=b(Ye((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),0),166),M=new Rh,et=new Zn,Ot=YVt(wt),Hu(et.f,wt,Ot),q=new Zn,u=new Va;for(ae=m1(jd(Te(we(rf,1),en,20,0,[(!n.d&&(n.d=new Wr(ws,n,8,5)),n.d),(!n.e&&(n.e=new Wr(ws,n,7,4)),n.e)])));ri(ae);){if(re=b(Gn(ae),74),(!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i!=1)throw ve(new dn(Tjt+(!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i));if(re!=t){if(de=b(Ye((!re.a&&(re.a=new kt(Ha,re,6,6)),re.a),0),166),cs(u,de,u.c.b,u.c),ue=b(Jl(wl(et.f,de)),13),!ue)ue=YVt(de),Hu(et.f,de,ue);U=s?no(new sl(b(nr(Ot,Ot.c.length-1),8)),b(nr(ue,ue.c.length-1),8)):no(new sl((qr(0,Ot.c.length),b(Ot.c[0],8))),(qr(0,ue.c.length),b(ue.c[0],8))),Hu(q.f,de,U)}}if(u.b!=0){Se=b(nr(Ot,s?Ot.c.length-1:0),8);for(O=1;O1&&cs(M,Se,M.c.b,M.c),Whe(f);Se=Be}}return M}function Fqt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;s.Ug(BWt,1),tn=b(uc(pa(new Pr(null,new Gr(n,16)),new Qvt),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15),M=b(uc(pa(new Pr(null,new Gr(n,16)),new GCt(n)),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc]))),15),ae=b(uc(pa(new Pr(null,new Gr(n,16)),new UCt(n)),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[fc]))),15),ue=mt(Gee,FZ,40,n.gc(),0,1);for(_=0;_=0&&wr=0&&!ue[re]){ue[re]=f,M.gd(S),--S;break}if(re=wr-q,re=0&&!ue[re]){ue[re]=f,M.gd(S),--S;break}}}ae.jd(new Zvt);for(C=ue.length-1;C>=0;C--)if(!ue[C]&&!ae.dc())ue[C]=b(ae.Xb(0),40),ae.gd(0);for(O=0;O=0;C--)Oi(s,(qr(C,_.c.length),b(_.c[C],8)));return s}function Uqt(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;Ve=rt(ht(It(n,(w1(),Vx)))),re=rt(ht(It(n,R9))),q=rt(ht(It(n,Qee))),aLe((!n.a&&(n.a=new kt(ra,n,10,11)),n.a)),Se=IHt((!n.a&&(n.a=new kt(ra,n,10,11)),n.a),Ve,t.b);for(de=0;deq&&HU((qr(q,n.c.length),b(n.c[q],186)),M),M=null;while(n.c.length>q&&(qr(q,n.c.length),b(n.c[q],186)).a.c.length==0)fh(n,(qr(q,n.c.length),n.c[q]))}if(!M){--_;continue}if(!er(Jt(b(nr(M.b,0),27).of((Lg(),Bz))))&&y3n(n,ae,g,M,de,s,q,u)){ue=!0;continue}if(de){if(re=ae.b,U=M.f,!er(Jt(b(nr(M.b,0),27).of(Bz)))&&B5n(n,ae,g,M,s,q,u,f)){if(ue=!0,re=t.j){t.a=-1,t.c=1;return}if(n=Ko(t.i,t.d++),t.a=n,t.b==1){switch(n){case 92:if(u=10,t.d>=t.j)throw ve(new Ti(Ai((yi(),XZ))));t.a=Ko(t.i,t.d++);break;case 45:if((t.e&512)==512&&t.d=t.j)break;if(Ko(t.i,t.d)!=63)break;if(++t.d>=t.j)throw ve(new Ti(Ai((yi(),Zge))));switch(n=Ko(t.i,t.d++),n){case 58:u=13;break;case 61:u=14;break;case 33:u=15;break;case 91:u=19;break;case 62:u=18;break;case 60:if(t.d>=t.j)throw ve(new Ti(Ai((yi(),Zge))));if(n=Ko(t.i,t.d++),n==61)u=16;else if(n==33)u=17;else throw ve(new Ti(Ai((yi(),Qjt))));break;case 35:while(t.d=t.j)throw ve(new Ti(Ai((yi(),XZ))));t.a=Ko(t.i,t.d++);break;default:u=0}t.c=u}function a6n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(s.Ug("Process compaction",1),!er(Jt(ce(n,(Oc(),KVe)))))return;f=b(ce(n,IS),88),re=rt(ht(ce(n,Gbe))),NAn(t,n,f),wIn(n,re/2/2),ae=n.b,q2(ae,new LCt(f));for(O=ti(ae,0);O.b!=O.d.c;)if(C=b(Jn(O),40),!er(Jt(ce(C,(Ma(),T_))))){if(u=ikn(C,f),ue=J3n(C,n),U=0,q=0,u)switch(de=u.e,f.g){case 2:U=de.a-re-C.f.a,ue.e.a-re-C.f.aU&&(U=ue.e.a+ue.f.a+re),q=U+C.f.a;break;case 4:U=de.b-re-C.f.b,ue.e.b-re-C.f.bU&&(U=ue.e.b+ue.f.b+re),q=U+C.f.b}else if(ue)switch(f.g){case 2:U=ue.e.a-re-C.f.a,q=U+C.f.a;break;case 1:U=ue.e.a+ue.f.a+re,q=U+C.f.a;break;case 4:U=ue.e.b-re-C.f.b,q=U+C.f.b;break;case 3:U=ue.e.b+ue.f.b+re,q=U+C.f.b}if(nt(ce(n,Ube))===nt((O8(),Iz))){if(g=U,_=q,S=Q6(pa(new Pr(null,new Gr(t.a,16)),new w5t(g,_))),S.a!=null)f==(Ms(),Kl)||f==sc?C.e.a=U:C.e.b=U;else f==(Ms(),Kl)||f==jf?S=Q6(pa(ZDt(new Pr(null,new Gr(t.a,16))),new MCt(g))):S=Q6(pa(ZDt(new Pr(null,new Gr(t.a,16))),new DCt(g))),S.a!=null&&(f==Kl||f==sc?C.e.a=rt(ht((Pn(S.a!=null),b(S.a,42)).a)):C.e.b=rt(ht((Pn(S.a!=null),b(S.a,42)).a)));if(S.a!=null){if(M=rc(t.a,(Pn(S.a!=null),S.a),0),M>0&&M!=b(ce(C,Vm),17).a)At(C,GVe,(nn(),!0)),At(C,Vm,$t(M))}}else f==(Ms(),Kl)||f==sc?C.e.a=U:C.e.b=U}s.Vg()}function Gqt(t){var n,s,u,f,g,_,S,C,O;if(t.b=1,na(t),n=null,t.c==0&&t.a==94)na(t),n=(ia(),ia(),++hs,new Yd(4)),yu(n,0,JO),S=(++hs,new Yd(4));else S=(ia(),ia(),++hs,new Yd(4));f=!0;while((O=t.c)!=1){if(O==0&&t.a==93&&!f){if(n)pD(n,S),S=n;break}if(s=t.a,u=!1,O==10)switch(s){case 100:case 68:case 119:case 87:case 115:case 83:dx(S,TO(s)),u=!0;break;case 105:case 73:case 99:case 67:s=(dx(S,TO(s)),-1),s<0&&(u=!0);break;case 112:case 80:if(C=s8e(t,s),!C)throw ve(new Ti(Ai((yi(),Jge))));dx(S,C),u=!0;break;default:s=G8e(t)}else if(O==24&&!f){if(n)pD(n,S),S=n;if(g=Gqt(t),pD(S,g),t.c!=0||t.a!=93)throw ve(new Ti(Ai((yi(),oKt))));break}if(na(t),!u){if(O==0){if(s==91)throw ve(new Ti(Ai((yi(),hFe))));if(s==93)throw ve(new Ti(Ai((yi(),dFe))));if(s==45&&!f&&t.a!=93)throw ve(new Ti(Ai((yi(),eme))))}if(t.c!=0||t.a!=45||s==45&&f)yu(S,s,s);else{if(na(t),(O=t.c)==1)throw ve(new Ti(Ai((yi(),QZ))));if(O==0&&t.a==93)yu(S,s,s),yu(S,45,45);else if(O==0&&t.a==93||O==24)throw ve(new Ti(Ai((yi(),eme))));else{if(_=t.a,O==0){if(_==91)throw ve(new Ti(Ai((yi(),hFe))));if(_==93)throw ve(new Ti(Ai((yi(),dFe))));if(_==45)throw ve(new Ti(Ai((yi(),eme))))}else O==10&&(_=G8e(t));if(na(t),s>_)throw ve(new Ti(Ai((yi(),uKt))));yu(S,s,_)}}}f=!1}if(t.c==1)throw ve(new Ti(Ai((yi(),QZ))));return O4(S),dD(S),t.b=0,na(t),S}function s6n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt;if(s.Ug("Coffman-Graham Layering",1),n.a.c.length==0){s.Vg();return}wt=b(ce(n,(Qt(),Cze)),17).a,C=0,_=0;for(q=new me(n.a);q.a=wt||!evn(Se,u))&&(u=$Nt(n,M)),Lo(Se,u);for(g=new Nn(Mn(co(Se).a.Kc(),new L));ri(g);){if(f=b(Gn(g),18),t.a[f.p])continue;ue=f.c.i,--t.e[ue.p],t.e[ue.p]==0&&MA(gO(re,ue),DO)}}for(O=M.c.length-1;O>=0;--O)Gt(n.b,(qr(O,M.c.length),b(M.c[O],30)));n.a.c.length=0,s.Vg()}function zqt(t,n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et;et=!1;do{et=!1;for(g=n?new A2(t.a.b).a.gc()-2:1;n?g>=0:gb(ce(de,Aa),17).a)&&(Ve=!1);if(!Ve)continue;C=n?g+1:g-1,S=YOe(t.a,$t(C)),_=!1,Be=!0,u=!1;for(M=ti(S,0);M.b!=M.d.c;)if(O=b(Jn(M),10),$a(O,Aa)){if(O.p!=U.p)_=_|(n?b(ce(O,Aa),17).ab(ce(U,Aa),17).a),Be=!1}else if(!_&&Be){if(O.k==(mn(),Jc)){if(u=!0,n?q=b(Gn(new Nn(Mn(co(O).a.Kc(),new L))),18).c.i:q=b(Gn(new Nn(Mn(Ss(O).a.Kc(),new L))),18).d.i,q==U)n?s=b(Gn(new Nn(Mn(Ss(O).a.Kc(),new L))),18).d.i:s=b(Gn(new Nn(Mn(co(O).a.Kc(),new L))),18).c.i,(n?b(NT(t.a,s),17).a-b(NT(t.a,q),17).a:b(NT(t.a,q),17).a-b(NT(t.a,s),17).a)<=2&&(Be=!1)}}if(u&&Be)n?s=b(Gn(new Nn(Mn(Ss(U).a.Kc(),new L))),18).d.i:s=b(Gn(new Nn(Mn(co(U).a.Kc(),new L))),18).c.i,(n?b(NT(t.a,s),17).a-b(NT(t.a,U),17).a:b(NT(t.a,U),17).a-b(NT(t.a,s),17).a)<=2&&s.k==(mn(),Es)&&(Be=!1);if(_||Be){ue=vzt(t,U,n);while(ue.a.gc()!=0)ae=b(ue.a.ec().Kc().Pb(),10),ue.a.Bc(ae)!=null,Po(ue,vzt(t,ae,n));--re,et=!0}}}}while(et)}function o6n(t){fi(t.c,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#decimal"])),fi(t.d,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#integer"])),fi(t.e,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#boolean"])),fi(t.f,Ni,Te(we(or,1),Bt,2,6,[Zo,"EBoolean",ta,"EBoolean:Object"])),fi(t.i,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#byte"])),fi(t.g,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),fi(t.j,Ni,Te(we(or,1),Bt,2,6,[Zo,"EByte",ta,"EByte:Object"])),fi(t.n,Ni,Te(we(or,1),Bt,2,6,[Zo,"EChar",ta,"EChar:Object"])),fi(t.t,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#double"])),fi(t.u,Ni,Te(we(or,1),Bt,2,6,[Zo,"EDouble",ta,"EDouble:Object"])),fi(t.F,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#float"])),fi(t.G,Ni,Te(we(or,1),Bt,2,6,[Zo,"EFloat",ta,"EFloat:Object"])),fi(t.I,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#int"])),fi(t.J,Ni,Te(we(or,1),Bt,2,6,[Zo,"EInt",ta,"EInt:Object"])),fi(t.N,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#long"])),fi(t.O,Ni,Te(we(or,1),Bt,2,6,[Zo,"ELong",ta,"ELong:Object"])),fi(t.Z,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#short"])),fi(t.$,Ni,Te(we(or,1),Bt,2,6,[Zo,"EShort",ta,"EShort:Object"])),fi(t._,Ni,Te(we(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#string"]))}function l6n(t,n,s,u,f,g,_){var S,C,O,M,U,q,re,ae;if(q=b(u.a,17).a,re=b(u.b,17).a,U=t.b,ae=t.c,S=0,M=0,n==(Ms(),Kl)||n==sc)if(M=h$(NBt(UT(ec(new Pr(null,new Gr(s.b,16)),new e_t),new Dvt))),U.e.b+U.f.b/2>M)O=++re,S=rt(ht(Rd(BT(ec(new Pr(null,new Gr(s.b,16)),new x5t(f,O)),new Pvt))));else C=++q,S=rt(ht(Rd(PA(ec(new Pr(null,new Gr(s.b,16)),new C5t(f,C)),new Bvt))));else if(M=h$(NBt(UT(ec(new Pr(null,new Gr(s.b,16)),new Gvt),new Mvt))),U.e.a+U.f.a/2>M)O=++re,S=rt(ht(Rd(BT(ec(new Pr(null,new Gr(s.b,16)),new S5t(f,O)),new Fvt))));else C=++q,S=rt(ht(Rd(PA(ec(new Pr(null,new Gr(s.b,16)),new T5t(f,C)),new $vt))));if(n==Kl)al(t.a,new Dt(rt(ht(ce(U,(Ma(),rg))))-f,S)),al(t.a,new Dt(ae.e.a+ae.f.a+f+g,S)),al(t.a,new Dt(ae.e.a+ae.f.a+f+g,ae.e.b+ae.f.b/2)),al(t.a,new Dt(ae.e.a+ae.f.a,ae.e.b+ae.f.b/2));else if(n==sc)al(t.a,new Dt(rt(ht(ce(U,(Ma(),g0))))+f,U.e.b+U.f.b/2)),al(t.a,new Dt(U.e.a+U.f.a+f,S)),al(t.a,new Dt(ae.e.a-f-g,S)),al(t.a,new Dt(ae.e.a-f-g,ae.e.b+ae.f.b/2)),al(t.a,new Dt(ae.e.a,ae.e.b+ae.f.b/2));else if(n==jf)al(t.a,new Dt(S,rt(ht(ce(U,(Ma(),rg))))-f)),al(t.a,new Dt(S,ae.e.b+ae.f.b+f+g)),al(t.a,new Dt(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+f+g)),al(t.a,new Dt(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+f));else t.a.b==0||(b(e0(t.a),8).b=rt(ht(ce(U,(Ma(),g0))))+f*b(_.b,17).a),al(t.a,new Dt(S,rt(ht(ce(U,(Ma(),g0))))+f*b(_.b,17).a)),al(t.a,new Dt(S,ae.e.b-f*b(_.a,17).a-g));return new js($t(q),$t(re))}function c6n(t){var n,s,u,f,g,_,S,C,O,M,U,q,re;if(_=!0,U=null,u=null,f=null,n=!1,re=sor,O=null,g=null,S=0,C=Qde(t,S,uWe,hWe),C=0&&Br(t.substr(S,2),"//"))S+=2,C=Qde(t,S,Q9,Z9),u=(Do(S,C,t.length),t.substr(S,C-S)),S=C;else if(U!=null&&(S==t.length||(fn(S,t.length),t.charCodeAt(S)!=47)))_=!1,C=mIe(t,gh(35),S),C==-1&&(C=t.length),u=(Do(S,C,t.length),t.substr(S,C-S)),S=C;if(!s&&S0&&Ko(M,M.length-1)==58)f=M,S=C}if(SYfe(g))&&(U=g);!U&&(U=(qr(0,de.c.length),b(de.c[0],185)));for(ue=new me(n.b);ue.aU)Kr=0,Rn+=M+Wt,M=0;NVt(wt,_,Kr,Rn),n=d.Math.max(n,Kr+Ot.a),M=d.Math.max(M,Ot.b),Kr+=Ot.a+Wt}et=new Zn,s=new Zn;for(wr=new me(t);wr.a=-1900?1:0,s>=4?Bi(t,Te(we(or,1),Bt,2,6,[aYt,sYt])[S]):Bi(t,Te(we(or,1),Bt,2,6,["BC","AD"])[S]);break;case 121:Rvn(t,s,u);break;case 77:Wkn(t,s,u);break;case 107:C=f.q.getHours(),C==0?v1(t,24,s):v1(t,C,s);break;case 83:oCn(t,s,f);break;case 69:M=u.q.getDay(),s==5?Bi(t,Te(we(or,1),Bt,2,6,["S","M","T","W","T","F","S"])[M]):s==4?Bi(t,Te(we(or,1),Bt,2,6,[Kpe,Xpe,Qpe,Zpe,Jpe,e0e,t0e])[M]):Bi(t,Te(we(or,1),Bt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[M]);break;case 97:f.q.getHours()>=12&&f.q.getHours()<24?Bi(t,Te(we(or,1),Bt,2,6,["AM","PM"])[1]):Bi(t,Te(we(or,1),Bt,2,6,["AM","PM"])[0]);break;case 104:U=f.q.getHours()%12,U==0?v1(t,12,s):v1(t,U,s);break;case 75:q=f.q.getHours()%12,v1(t,q,s);break;case 72:re=f.q.getHours(),v1(t,re,s);break;case 99:ae=u.q.getDay(),s==5?Bi(t,Te(we(or,1),Bt,2,6,["S","M","T","W","T","F","S"])[ae]):s==4?Bi(t,Te(we(or,1),Bt,2,6,[Kpe,Xpe,Qpe,Zpe,Jpe,e0e,t0e])[ae]):s==3?Bi(t,Te(we(or,1),Bt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[ae]):v1(t,ae,1);break;case 76:ue=u.q.getMonth(),s==5?Bi(t,Te(we(or,1),Bt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[ue]):s==4?Bi(t,Te(we(or,1),Bt,2,6,[Fpe,$pe,Upe,Gpe,p5,zpe,Vpe,Hpe,qpe,Ype,Wpe,jpe])[ue]):s==3?Bi(t,Te(we(or,1),Bt,2,6,["Jan","Feb","Mar","Apr",p5,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[ue]):v1(t,ue+1,s);break;case 81:de=u.q.getMonth()/3|0,s<4?Bi(t,Te(we(or,1),Bt,2,6,["Q1","Q2","Q3","Q4"])[de]):Bi(t,Te(we(or,1),Bt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[de]);break;case 100:Se=u.q.getDate(),v1(t,Se,s);break;case 109:O=f.q.getMinutes(),v1(t,O,s);break;case 115:_=f.q.getSeconds(),v1(t,_,s);break;case 122:s<4?Bi(t,g.c[0]):Bi(t,g.c[1]);break;case 118:Bi(t,g.b);break;case 90:s<3?Bi(t,eTn(g)):s==3?Bi(t,aTn(g)):Bi(t,sTn(g.a));break;default:return!1}return!0}function DDe(t,n,s,u){var f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri;if(EVt(n),C=b(Ye((!n.b&&(n.b=new Wr(qn,n,4,7)),n.b),0),84),M=b(Ye((!n.c&&(n.c=new Wr(qn,n,5,8)),n.c),0),84),S=ic(C),O=ic(M),_=(!n.a&&(n.a=new kt(Ha,n,6,6)),n.a).i==0?null:b(Ye((!n.a&&(n.a=new kt(Ha,n,6,6)),n.a),0),166),Wt=b(An(t.a,S),10),Kr=b(An(t.a,O),10),xr=null,Rn=null,He(C,193)){if(Ot=b(An(t.a,C),305),He(Ot,12))xr=b(Ot,12);else if(He(Ot,10))Wt=b(Ot,10),xr=b(nr(Wt.j,0),12)}if(He(M,193)){if(tn=b(An(t.a,M),305),He(tn,12))Rn=b(tn,12);else if(He(tn,10))Kr=b(tn,10),Rn=b(nr(Kr.j,0),12)}if(!Wt||!Kr)throw ve(new vA("The source or the target of edge "+n+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));if(ue=new Mw,nc(ue,n),At(ue,(Pt(),Ea),n),At(ue,(Qt(),jl),null),re=b(ce(u,Tu),21),Wt==Kr&&re.Fc((Tl(),i9)),!xr){if(wt=(Sl(),Yu),wr=null,!!_&&i4(b(ce(Wt,ms),101))){if(wr=new Dt(_.j,_.k),hMt(wr,W$(n)),$Mt(wr,s),jT(O,S))wt=ad,ua(wr,Wt.n)}xr=wHt(Wt,wr,wt,u)}if(!Rn){if(wt=(Sl(),ad),Ri=null,!!_&&i4(b(ce(Kr,ms),101)))Ri=new Dt(_.b,_.c),hMt(Ri,W$(n)),$Mt(Ri,s);Rn=wHt(Kr,Ri,wt,zo(Kr))}tl(ue,xr),ko(ue,Rn),(xr.e.c.length>1||xr.g.c.length>1||Rn.e.c.length>1||Rn.g.c.length>1)&&re.Fc((Tl(),n9));for(q=new kn((!n.n&&(n.n=new kt(Dl,n,1,7)),n.n));q.e!=q.i.gc();)if(U=b(Dn(q),135),!er(Jt(It(U,wE)))&&!!U.a)switch(de=Ode(U),Gt(ue.b,de),b(ce(de,zm),278).g){case 1:case 2:re.Fc((Tl(),pN));break;case 0:re.Fc((Tl(),fN)),At(de,zm,(Rg(),NN))}if(g=b(ce(u,u9),322),Se=b(ce(u,Cee),323),f=g==(S8(),pz)||Se==(V8(),ybe),!!_&&(!_.a&&(_.a=new Os(lf,_,5)),_.a).i!=0&&f){Be=XU(_),ae=new Rh;for(et=ti(Be,0);et.b!=et.d.c;)Ve=b(Jn(et),8),Oi(ae,new sl(Ve));At(ue,AGe,ae)}return ue}function f6n(t,n,s,u){var f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts;wr=0,tn=0,Wt=new Zn,wt=b(Rd(BT(ec(new Pr(null,new Gr(t.b,16)),new Uvt),new jvt)),17).a+1,xr=mt(ci,$i,28,wt,15,1),de=mt(ci,$i,28,wt,15,1);for(ue=0;ue1)for(S=Rn+1;SO.b.e.b*(1-Se)+O.c.e.b*Se)break;if(Ot.gc()>0){if(Ri=O.a.b==0?Uo(O.b.e):b(e0(O.a),8),Ve=ua(Uo(b(Ot.Xb(Ot.gc()-1),40).e),b(Ot.Xb(Ot.gc()-1),40).f),q=ua(Uo(b(Ot.Xb(0),40).e),b(Ot.Xb(0),40).f),ae>=Ot.gc()-1&&Ri.b>Ve.b&&O.c.e.b>Ve.b)continue;if(ae<=0&&Ri.bO.b.e.a*(1-Se)+O.c.e.a*Se)break;if(Ot.gc()>0){if(Ri=O.a.b==0?Uo(O.b.e):b(e0(O.a),8),Ve=ua(Uo(b(Ot.Xb(Ot.gc()-1),40).e),b(Ot.Xb(Ot.gc()-1),40).f),q=ua(Uo(b(Ot.Xb(0),40).e),b(Ot.Xb(0),40).f),ae>=Ot.gc()-1&&Ri.a>Ve.a&&O.c.e.a>Ve.a)continue;if(ae<=0&&Ri.a=rt(ht(ce(t,(Ma(),HVe))))&&++tn;else re.f&&re.d.e.a<=rt(ht(ce(t,(Ma(),Pbe))))&&++wr,re.g&&re.c.e.a+re.c.f.a>=rt(ht(ce(t,(Ma(),VVe))))&&++tn}else if(et==0)n8e(O);else if(et<0)++xr[Rn],++de[ts],Kr=l6n(O,n,t,new js($t(wr),$t(tn)),s,u,new js($t(de[ts]),$t(xr[Rn]))),wr=b(Kr.a,17).a,tn=b(Kr.b,17).a}function p6n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be;if(u=n,C=s,t.b&&u.j==(Ht(),bn)&&C.j==(Ht(),bn))Be=u,u=C,C=Be;if(Zu(t.a,u)){if(z0(b(An(t.a,u),49),C))return 1}else Ki(t.a,u,new Rs);if(Zu(t.a,C)){if(z0(b(An(t.a,C),49),u))return-1}else Ki(t.a,C,new Rs);if(Zu(t.d,u)){if(z0(b(An(t.d,u),49),C))return-1}else Ki(t.d,u,new Rs);if(Zu(t.d,C)){if(z0(b(An(t.a,C),49),u))return 1}else Ki(t.d,C,new Rs);if(u.j!=C.j)return Se=ran(u.j,C.j),Se==-1?zf(t,C,u):zf(t,u,C),Se;if(u.e.c.length!=0&&C.e.c.length!=0){if(t.b){if(Se=sBt(u,C),Se!=0)return Se==-1?zf(t,C,u):Se==1&&zf(t,u,C),Se}if(g=b(nr(u.e,0),18).c.i,M=b(nr(C.e,0),18).c.i,g==M)return f=b(ce(b(nr(u.e,0),18),(Pt(),Aa)),17).a,O=b(ce(b(nr(C.e,0),18),Aa),17).a,f>O?zf(t,u,C):zf(t,C,u),fO?1:0;for(ae=t.c,ue=0,de=ae.length;ueO?zf(t,u,C):zf(t,C,u),fO?1:0;if(t.b){if(Se=sBt(u,C),Se!=0)return Se==-1?zf(t,C,u):Se==1&&zf(t,u,C),Se}if(_=0,U=0,$a(b(nr(u.g,0),18),Aa)&&(_=b(ce(b(nr(u.g,0),18),Aa),17).a),$a(b(nr(C.g,0),18),Aa)&&(U=b(ce(b(nr(u.g,0),18),Aa),17).a),!!S&&S==q){if(er(Jt(ce(b(nr(u.g,0),18),Ug)))&&!er(Jt(ce(b(nr(C.g,0),18),Ug))))return zf(t,u,C),1;else if(!er(Jt(ce(b(nr(u.g,0),18),Ug)))&&er(Jt(ce(b(nr(C.g,0),18),Ug))))return zf(t,C,u),-1;return _>U?zf(t,u,C):zf(t,C,u),_U?1:0}if(t.f)t.f._b(S)&&(_=b(t.f.xc(S),17).a),t.f._b(q)&&(U=b(t.f.xc(q),17).a);return _>U?zf(t,u,C):zf(t,C,u),_U?1:0}if(u.e.c.length!=0&&C.g.c.length!=0)return zf(t,u,C),1;else if(u.g.c.length!=0&&C.e.c.length!=0)return zf(t,C,u),-1;else if($a(u,(Pt(),Aa))&&$a(C,Aa))return f=b(ce(u,Aa),17).a,O=b(ce(C,Aa),17).a,f>O?zf(t,u,C):zf(t,C,u),fO?1:0;else return zf(t,C,u),-1}function g6n(t){if(t.gb)return;t.gb=!0,t.b=Ic(t,0),us(t.b,18),Ga(t.b,19),t.a=Ic(t,1),us(t.a,1),Ga(t.a,2),Ga(t.a,3),Ga(t.a,4),Ga(t.a,5),t.o=Ic(t,2),us(t.o,8),us(t.o,9),Ga(t.o,10),Ga(t.o,11),Ga(t.o,12),Ga(t.o,13),Ga(t.o,14),Ga(t.o,15),Ga(t.o,16),Ga(t.o,17),Ga(t.o,18),Ga(t.o,19),Ga(t.o,20),Ga(t.o,21),Ga(t.o,22),Ga(t.o,23),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),t.p=Ic(t,3),us(t.p,2),us(t.p,3),us(t.p,4),us(t.p,5),Ga(t.p,6),Ga(t.p,7),ql(t.p),ql(t.p),t.q=Ic(t,4),us(t.q,8),t.v=Ic(t,5),Ga(t.v,9),ql(t.v),ql(t.v),ql(t.v),t.w=Ic(t,6),us(t.w,2),us(t.w,3),us(t.w,4),Ga(t.w,5),t.B=Ic(t,7),Ga(t.B,1),ql(t.B),ql(t.B),ql(t.B),t.Q=Ic(t,8),Ga(t.Q,0),ql(t.Q),t.R=Ic(t,9),us(t.R,1),t.S=Ic(t,10),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),t.T=Ic(t,11),Ga(t.T,10),Ga(t.T,11),Ga(t.T,12),Ga(t.T,13),Ga(t.T,14),ql(t.T),ql(t.T),t.U=Ic(t,12),us(t.U,2),us(t.U,3),Ga(t.U,4),Ga(t.U,5),Ga(t.U,6),Ga(t.U,7),ql(t.U),t.V=Ic(t,13),Ga(t.V,10),t.W=Ic(t,14),us(t.W,18),us(t.W,19),us(t.W,20),Ga(t.W,21),Ga(t.W,22),Ga(t.W,23),t.bb=Ic(t,15),us(t.bb,10),us(t.bb,11),us(t.bb,12),us(t.bb,13),us(t.bb,14),us(t.bb,15),us(t.bb,16),Ga(t.bb,17),ql(t.bb),ql(t.bb),t.eb=Ic(t,16),us(t.eb,2),us(t.eb,3),us(t.eb,4),us(t.eb,5),us(t.eb,6),us(t.eb,7),Ga(t.eb,8),Ga(t.eb,9),t.ab=Ic(t,17),us(t.ab,0),us(t.ab,1),t.H=Ic(t,18),Ga(t.H,0),Ga(t.H,1),Ga(t.H,2),Ga(t.H,3),Ga(t.H,4),Ga(t.H,5),ql(t.H),t.db=Ic(t,19),Ga(t.db,2),t.c=Qi(t,20),t.d=Qi(t,21),t.e=Qi(t,22),t.f=Qi(t,23),t.i=Qi(t,24),t.g=Qi(t,25),t.j=Qi(t,26),t.k=Qi(t,27),t.n=Qi(t,28),t.r=Qi(t,29),t.s=Qi(t,30),t.t=Qi(t,31),t.u=Qi(t,32),t.fb=Qi(t,33),t.A=Qi(t,34),t.C=Qi(t,35),t.D=Qi(t,36),t.F=Qi(t,37),t.G=Qi(t,38),t.I=Qi(t,39),t.J=Qi(t,40),t.L=Qi(t,41),t.M=Qi(t,42),t.N=Qi(t,43),t.O=Qi(t,44),t.P=Qi(t,45),t.X=Qi(t,46),t.Y=Qi(t,47),t.Z=Qi(t,48),t.$=Qi(t,49),t._=Qi(t,50),t.cb=Qi(t,51),t.K=Qi(t,52)}function m6n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn;_=new Va,Ot=b(ce(s,(Qt(),nf)),88),ue=0,Po(_,(!n.a&&(n.a=new kt(ra,n,10,11)),n.a));while(_.b!=0)if(M=b(_.b==0?null:(Pn(_.b!=0),Df(_,_.a.a)),27),O=Ya(M),(nt(It(O,L1))!==nt((Cm(),Wy))||nt(It(O,yE))===nt((My(),hN))||nt(It(O,yE))===nt((My(),uN))||er(Jt(It(O,wS)))||nt(It(O,Lx))!==nt((Z2(),kx))||nt(It(O,E_))===nt((_p(),AS))||nt(It(O,E_))===nt((_p(),Ux))||nt(It(O,_E))===nt(($y(),SN))||nt(It(O,_E))===nt(($y(),TN)))&&!er(Jt(It(M,yee)))&&Ta(M,(Pt(),Aa),$t(ue++)),Se=!er(Jt(It(M,wE))),Se){if(q=(!M.a&&(M.a=new kt(ra,M,10,11)),M.a).i!=0,ae=qEn(M),re=nt(It(M,Mx))===nt((Cb(),Zy)),Rn=!kg(M,(Hi(),RN))||WMt(wi(It(M,RN))),et=null,Rn&&re&&(q||ae)){if(et=rHt(M),At(et,nf,Ot),$a(et,wz)&&n3t(new y7e(rt(ht(ce(et,wz)))),et),b(It(M,EE),181).gc()!=0)U=et,ys(new Pr(null,(!M.c&&(M.c=new kt(ld,M,9,9)),new Gr(M.c,16))),new uxt(U)),jzt(M,et)}if(Wt=s,xr=b(An(t.a,Ya(M)),10),!!xr&&(Wt=xr.e),Ve=Rqt(t,M,Wt),et)Ve.e=et,et.e=Ve,Po(_,(!M.a&&(M.a=new kt(ra,M,10,11)),M.a))}ue=0,cs(_,n,_.c.b,_.c);while(_.b!=0){g=b(_.b==0?null:(Pn(_.b!=0),Df(_,_.a.a)),27);for(C=new kn((!g.b&&(g.b=new kt(ws,g,12,3)),g.b));C.e!=C.i.gc();){if(S=b(Dn(C),74),EVt(S),(nt(It(n,L1))!==nt((Cm(),Wy))||nt(It(n,yE))===nt((My(),hN))||nt(It(n,yE))===nt((My(),uN))||er(Jt(It(n,wS)))||nt(It(n,Lx))!==nt((Z2(),kx))||nt(It(n,E_))===nt((_p(),AS))||nt(It(n,E_))===nt((_p(),Ux))||nt(It(n,_E))===nt(($y(),SN))||nt(It(n,_E))===nt(($y(),TN)))&&Ta(S,(Pt(),Aa),$t(ue++)),tn=ic(b(Ye((!S.b&&(S.b=new Wr(qn,S,4,7)),S.b),0),84)),Kr=ic(b(Ye((!S.c&&(S.c=new Wr(qn,S,5,8)),S.c),0),84)),er(Jt(It(S,wE)))||er(Jt(It(tn,wE)))||er(Jt(It(Kr,wE))))continue;de=Zw(S)&&er(Jt(It(tn,Dx)))&&er(Jt(It(S,vE))),wt=g,de||jT(Kr,tn)?wt=tn:jT(tn,Kr)&&(wt=Kr),Wt=s,xr=b(An(t.a,wt),10),!!xr&&(Wt=xr.e),Be=DDe(t,S,wt,Wt),At(Be,(Pt(),TGe),m4n(t,S,n,s))}if(re=nt(It(g,Mx))===nt((Cb(),Zy)),re)for(f=new kn((!g.a&&(g.a=new kt(ra,g,10,11)),g.a));f.e!=f.i.gc();)u=b(Dn(f),27),Rn=!kg(u,(Hi(),RN))||WMt(wi(It(u,RN))),wr=nt(It(u,Mx))===nt(Zy),Rn&&wr&&cs(_,u,_.c.b,_.c)}}function Pt(){Pt=z;var t,n;Ea=new va(E9e),TGe=new va("coordinateOrigin"),W1e=new va("processors"),SGe=new es("compoundNode",(nn(),!1)),yz=new es("insideConnections",!1),AGe=new va("originalBendpoints"),RGe=new va("originalDummyNodePosition"),IGe=new va("originalLabelEdge"),s9=new va("representedLabels"),a9=new va("endLabels"),M5=new va("endLabel.origin"),P5=new es("labelSide",(Qd(),Qz)),ok=new es("maxEdgeThickness",0),Ug=new es("reversed",!1),B5=new va(w9e),tg=new es("longEdgeSource",null),Cp=new es("longEdgeTarget",null),Ox=new es("longEdgeHasLabelDummies",!1),vz=new es("longEdgeBeforeLabelDummy",!1),hee=new es("edgeConstraint",(K2(),I1e)),vS=new va("inLayerLayoutUnit"),mE=new es("inLayerConstraint",(Sb(),mz)),D5=new es("inLayerSuccessorConstraint",new Ut),kGe=new es("inLayerSuccessorConstraintBetweenNonDummies",!1),id=new va("portDummy"),uee=new es("crossingHint",$t(0)),Tu=new es("graphProperties",(n=b(G0(B1e),9),new Rf(n,b(t0(n,n.length),9),0))),Pc=new es("externalPortSide",(Ht(),Cc)),CGe=new es("externalPortSize",new Oo),z1e=new va("externalPortReplacedDummies"),dee=new va("externalPortReplacedDummy"),Fb=new es("externalPortConnections",(t=b(G0(bl),9),new Rf(t,b(t0(t,t.length),9),0))),_S=new es(BYt,0),wGe=new va("barycenterAssociates"),F5=new va("TopSideComments"),L5=new va("BottomSideComments"),cee=new va("CommentConnectionPort"),H1e=new es("inputCollect",!1),Y1e=new es("outputCollect",!1),bz=new es("cyclic",!1),xGe=new va("crossHierarchyMap"),K1e=new va("targetOffset"),new es("splineLabelSize",new Oo),ck=new va("spacings"),fee=new es("partitionConstraint",!1),yS=new va("breakingPoint.info"),LGe=new va("splines.survivingEdge"),bE=new va("splines.route.start"),uk=new va("splines.edgeChain"),NGe=new va("originalPortConstraints"),ES=new va("selfLoopHolder"),mN=new va("splines.nsPortY"),Aa=new va("modelOrder"),q1e=new va("longEdgeTargetNode"),v_=new es(bWt,!1),lk=new es(bWt,!1),V1e=new va("layerConstraints.hiddenNodes"),OGe=new va("layerConstraints.opposidePort"),j1e=new va("targetNode.modelOrder")}function b6n(t,n,s,u){var f,g,_,S,C,O,M,U,q,re,ae;for(U=ti(t.b,0);U.b!=U.d.c;){if(M=b(Jn(U),40),Br(M.c,BZ))continue;g=b(uc(new Pr(null,new Gr(CTn(M,t),16)),ed(new bt,new ct,new pe,Te(we(Wl,1),Rt,108,0,[(rd(),fc)]))),15),n==(Ms(),Kl)||n==sc?g.jd(new Hvt):g.jd(new qvt),ae=g.gc();for(f=0;f0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(C-re)/(d.Math.abs(S-q)/40)>50&&(re>C?al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a+u/5.3,M.e.b+M.f.b*_-u/2)):al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a+u/5.3,M.e.b+M.f.b*_+u/2)));al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a,M.e.b+M.f.b*_))}else if(n==sc){if(O=rt(ht(ce(M,(Ma(),rg)))),M.e.a-u>O)al(b(g.Xb(f),65).a,new Dt(O-s,M.e.b+M.f.b*_));else if(b(g.Xb(f),65).a.b>0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(C-re)/(d.Math.abs(S-q)/40)>50&&(re>C?al(b(g.Xb(f),65).a,new Dt(M.e.a-u/5.3,M.e.b+M.f.b*_-u/2)):al(b(g.Xb(f),65).a,new Dt(M.e.a-u/5.3,M.e.b+M.f.b*_+u/2)));al(b(g.Xb(f),65).a,new Dt(M.e.a,M.e.b+M.f.b*_))}else if(n==jf){if(O=rt(ht(ce(M,(Ma(),g0)))),M.e.b+M.f.b+u0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(S-q)/(d.Math.abs(C-re)/40)>50&&(q>S?al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_-u/2,M.e.b+u/5.3+M.f.b)):al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_+u/2,M.e.b+u/5.3+M.f.b)));al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_,M.e.b+M.f.b))}else{if(O=rt(ht(ce(M,(Ma(),rg)))),YPt(b(g.Xb(f),65),t))al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_,b(e0(b(g.Xb(f),65).a),8).b));else if(M.e.b-u>O)al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_,O-s));else if(b(g.Xb(f),65).a.b>0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(S-q)/(d.Math.abs(C-re)/40)>50&&(q>S?al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_-u/2,M.e.b-u/5.3)):al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_+u/2,M.e.b-u/5.3)));al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*_,M.e.b))}}}function Hi(){Hi=z;var t,n;RN=new va(rjt),Rk=new va(njt),Uqe=(_1(),Cye),Zar=new Dr(IPe,Uqe),new dM,wk=new Dr(_5,null),Jar=new va(VBe),zqe=(eE(),Ua(Rye,Te(we(Iye,1),Rt,298,0,[Aye]))),zz=new Dr(NZ,zqe),Vz=new Dr(GG,(nn(),!1)),Vqe=(Ms(),Hg),CE=new Dr(dge,Vqe),Yqe=(kb(),Vye),qqe=new Dr(UG,Yqe),rsr=new Dr(GBe,!1),Kqe=(Cb(),fte),xk=new Dr(OZ,Kqe),iYe=new _w(12),Qy=new Dr(sS,iYe),qz=new Dr(SD,!1),Mye=new Dr(MZ,!1),Yz=new Dr(TD,!1),cYe=(Ao(),A_),$9=new Dr(N0e,cYe),V5=new va(LZ),Wz=new va(OG),Gye=new va(fZ),zye=new va(wD),Xqe=new Rh,OS=new Dr(GPe,Xqe),tsr=new Dr(HPe,!1),nsr=new Dr(qPe,!1),new va(ijt),Qqe=new gM,IN=new Dr(WPe,Qqe),cte=new Dr(APe,!1),new dM,osr=new Dr(ajt,1),Tk=new va(sjt),Sk=new va(ojt),ON=new Dr(NG,!1),new Dr(ljt,!0),$t(0),new Dr(cjt,$t(100)),new Dr(ujt,!1),$t(0),new Dr(hjt,$t(4000)),$t(0),new Dr(djt,$t(400)),new Dr(fjt,!1),new Dr(pjt,!1),new Dr(gjt,!0),new Dr(mjt,!1),Gqe=(XX(),Wye),esr=new Dr(zBe,Gqe),lsr=new Dr(bPe,10),csr=new Dr(yPe,10),fYe=new Dr(x0e,20),usr=new Dr(vPe,10),pYe=new Dr(O0e,2),gYe=new Dr(hge,10),mYe=new Dr(_Pe,0),ute=new Dr(SPe,5),bYe=new Dr(EPe,1),yYe=new Dr(wPe,1),AE=new Dr(bx,20),hsr=new Dr(TPe,10),EYe=new Dr(xPe,10),H5=new va(CPe),_Ye=new SRt,vYe=new Dr(jPe,_Ye),asr=new va(pge),aYe=!1,isr=new Dr(fge,aYe),Jqe=new _w(5),Zqe=new Dr(LPe,Jqe),eYe=(ox(),n=b(G0(Al),9),new Rf(n,b(t0(n,n.length),9),0)),Ck=new Dr(GO,eYe),oYe=(T4(),k_),sYe=new Dr(PPe,oYe),Pye=new va(BPe),Bye=new va(FPe),Fye=new va($Pe),Dye=new va(UPe),tYe=(t=b(G0(W9),9),new Rf(t,b(t0(t,t.length),9),0)),kE=new Dr(H4,tYe),nYe=Tr((bd(),PN)),x_=new Dr(E5,nYe),rYe=new Dt(0,0),kk=new Dr(w5,rYe),Hx=new Dr(UO,!1),Hqe=(Rg(),NN),Nye=new Dr(zPe,Hqe),Oye=new Dr(pZ,!1),new va(bjt),$t(1),new Dr(yjt,null),lYe=new va(YPe),$ye=new va(VPe),dYe=(Ht(),Cc),Ak=new Dr(RPe,dYe),Ed=new va(kPe),uYe=(nd(),Tr(R_)),qx=new Dr(zO,uYe),Uye=new Dr(MPe,!1),hYe=new Dr(DPe,!0),new dM,dte=new Dr(LG,1),wYe=new Dr(HBe,null),jz=new Dr(MG,150),hte=new Dr(DG,1.414),q5=new Dr(oS,null),dsr=new Dr(qBe,1),Hz=new Dr(OPe,!1),Lye=new Dr(NPe,!1),Wqe=new Dr(C0e,1),jqe=(TQ(),qye),new Dr(vjt,jqe),ssr=!0,psr=(e5(),jx),gsr=jx,fsr=jx}function il(){il=z,EUe=new Is("DIRECTION_PREPROCESSOR",0),yUe=new Is("COMMENT_PREPROCESSOR",1),ek=new Is("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),d1e=new Is("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),UUe=new Is("PARTITION_PREPROCESSOR",4),BJ=new Is("LABEL_DUMMY_INSERTER",5),WJ=new Is("SELF_LOOP_PREPROCESSOR",6),Rx=new Is("LAYER_CONSTRAINT_PREPROCESSOR",7),FUe=new Is("PARTITION_MIDPROCESSOR",8),RUe=new Is("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),PUe=new Is("NODE_PROMOTION",10),Ax=new Is("LAYER_CONSTRAINT_POSTPROCESSOR",11),$Ue=new Is("PARTITION_POSTPROCESSOR",12),CUe=new Is("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),GUe=new Is("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),dUe=new Is("BREAKING_POINT_INSERTER",15),GJ=new Is("LONG_EDGE_SPLITTER",16),f1e=new Is("PORT_SIDE_PROCESSOR",17),DJ=new Is("INVERTED_PORT_PROCESSOR",18),HJ=new Is("PORT_LIST_SORTER",19),VUe=new Is("SORT_BY_INPUT_ORDER_OF_MODEL",20),VJ=new Is("NORTH_SOUTH_PORT_PREPROCESSOR",21),fUe=new Is("BREAKING_POINT_PROCESSOR",22),BUe=new Is(cWt,23),HUe=new Is(uWt,24),qJ=new Is("SELF_LOOP_PORT_RESTORER",25),zUe=new Is("SINGLE_EDGE_GRAPH_WRAPPER",26),PJ=new Is("IN_LAYER_CONSTRAINT_PROCESSOR",27),SUe=new Is("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),MUe=new Is("LABEL_AND_NODE_SIZE_PROCESSOR",29),LUe=new Is("INNERMOST_NODE_MARGIN_CALCULATOR",30),jJ=new Is("SELF_LOOP_ROUTER",31),mUe=new Is("COMMENT_NODE_MARGIN_CALCULATOR",32),MJ=new Is("END_LABEL_PREPROCESSOR",33),$J=new Is("LABEL_DUMMY_SWITCHER",34),gUe=new Is("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),iN=new Is("LABEL_SIDE_SELECTOR",36),OUe=new Is("HYPEREDGE_DUMMY_MERGER",37),kUe=new Is("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),DUe=new Is("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),JD=new Is("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),vUe=new Is("CONSTRAINTS_POSTPROCESSOR",41),bUe=new Is("COMMENT_POSTPROCESSOR",42),NUe=new Is("HYPERNODE_PROCESSOR",43),AUe=new Is("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),UJ=new Is("LONG_EDGE_JOINER",45),YJ=new Is("SELF_LOOP_POSTPROCESSOR",46),pUe=new Is("BREAKING_POINT_REMOVER",47),zJ=new Is("NORTH_SOUTH_PORT_POSTPROCESSOR",48),IUe=new Is("HORIZONTAL_COMPACTOR",49),FJ=new Is("LABEL_DUMMY_REMOVER",50),TUe=new Is("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),wUe=new Is("END_LABEL_SORTER",52),hz=new Is("REVERSED_EDGE_RESTORER",53),LJ=new Is("END_LABEL_POSTPROCESSOR",54),xUe=new Is("HIERARCHICAL_NODE_RESIZER",55),_Ue=new Is("DIRECTION_POSTPROCESSOR",56)}function PDe(){PDe=z,HGe=(pU(),ree),xer=new Dr(N9e,HGe),Ber=new Dr(L9e,(nn(),!1)),XGe=(WK(),G1e),zer=new Dr(yZ,XGe),ntr=new Dr(M9e,!1),itr=new Dr(D9e,!0),QJt=new Dr(P9e,!1),ize=(dU(),wbe),vtr=new Dr(B9e,ize),$t(1),ktr=new Dr(F9e,$t(7)),Atr=new Dr($9e,!1),Fer=new Dr(U9e,!1),VGe=(My(),A1e),Ter=new Dr($0e,VGe),JGe=($y(),pbe),rtr=new Dr($G,JGe),QGe=(Uf(),_z),jer=new Dr(G9e,QGe),$t(-1),Wer=new Dr(z9e,null),$t(-1),Ker=new Dr(V9e,$t(-1)),$t(-1),Xer=new Dr(U0e,$t(4)),$t(-1),Zer=new Dr(G0e,$t(2)),ZGe=(_p(),Mee),ttr=new Dr(z0e,ZGe),$t(0),etr=new Dr(V0e,$t(0)),qer=new Dr(H0e,$t(sa)),zGe=(S8(),t9),Ser=new Dr(kD,zGe),ler=new Dr(H9e,!1),ger=new Dr(q0e,0.1),Eer=new Dr(Y0e,!1),ber=new Dr(q9e,null),yer=new Dr(Y9e,null),$t(-1),ver=new Dr(W9e,null),$t(-1),_er=new Dr(j9e,$t(-1)),$t(0),cer=new Dr(K9e,$t(40)),GGe=(W6(),$1e),fer=new Dr(W0e,GGe),UGe=gz,uer=new Dr(vZ,UGe),nze=(V8(),g9),ytr=new Dr(q4,nze),ctr=new va(_Z),eze=(oU(),iee),atr=new Dr(j0e,eze),tze=(WU(),aee),otr=new Dr(K0e,tze),new dM,dtr=new Dr(X0e,0.3),ptr=new va(Q0e),rze=(tx(),Lee),gtr=new Dr(Z0e,rze),WGe=(DX(),Tbe),Ier=new Dr(X9e,WGe),jGe=(I8(),Cbe),Oer=new Dr(Q9e,jGe),KGe=(tO(),y9),Ner=new Dr(EZ,KGe),Mer=new Dr(wZ,0.2),Aer=new Dr(J0e,2),Str=new Dr(Z9e,null),xtr=new Dr(J9e,10),Ttr=new Dr(ePe,10),Ctr=new Dr(tPe,20),$t(0),_tr=new Dr(rPe,$t(0)),$t(0),Etr=new Dr(nPe,$t(0)),$t(0),wtr=new Dr(iPe,$t(0)),ZJt=new Dr(ege,!1),PGe=(mO(),r9),eer=new Dr(aPe,PGe),DGe=(iX(),C1e),JJt=new Dr(sPe,DGe),Uer=new Dr(SZ,!1),$t(0),$er=new Dr(tge,$t(16)),$t(0),Ger=new Dr(rge,$t(5)),oze=($X(),Rbe),jtr=new Dr(Db,oze),Rtr=new Dr(TZ,10),Ntr=new Dr(xZ,1),sze=(EX(),tee),$tr=new Dr(AD,sze),Dtr=new va(nge),aze=$t(1),$t(0),Btr=new Dr(ige,aze),lze=(_X(),Abe),Ztr=new Dr(CZ,lze),Ktr=new va(kZ),Htr=new Dr(AZ,!0),ztr=new Dr(RZ,2),Ytr=new Dr(age,!0),YGe=(CQ(),nee),ker=new Dr(oPe,YGe),qGe=(o5(),lN),Cer=new Dr(lPe,qGe),$Ge=(Cm(),Wy),oer=new Dr(IZ,$Ge),ser=new Dr(cPe,!1),aer=new Dr(uPe,!1),BGe=(Z2(),kx),ter=new Dr(sge,BGe),FGe=(L8(),gbe),ier=new Dr(hPe,FGe),rer=new Dr(oge,0),ner=new Dr(lge,0),Her=R1e,Ver=pz,Qer=Oee,Jer=Oee,Yer=fbe,mer=(Cb(),Zy),wer=t9,per=t9,her=t9,der=Zy,utr=m9,htr=g9,str=g9,ltr=g9,ftr=vbe,btr=m9,mtr=m9,Ler=(kb(),Y5),Der=Y5,Per=y9,Rer=Kz,Itr=xN,Otr=Gx,Ltr=xN,Mtr=Gx,Utr=xN,Gtr=Gx,Ptr=k1e,Ftr=tee,Jtr=xN,err=Gx,Xtr=xN,Qtr=Gx,qtr=Gx,Vtr=Gx,Wtr=Gx}function y6n(t,n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts,cd,Xl,cf,Dk,av,w0,S0,NE,Z5,B_,J5,qm,U1,PS,eR,Pk,Ym,LE,Vb,ilr,qWe,BS,sP,uve,tR,oP,rC,lP,hve,alr;qWe=0;for(Ri=n,Xl=0,av=Ri.length;Xl0&&(t.a[qm.p]=qWe++)}}oP=0;for(ts=s,cf=0,w0=ts.length;cf0){qm=(Pn(Pk.b>0),b(Pk.a.Xb(Pk.c=--Pk.b),12)),eR=0;for(S=new me(qm.e);S.a0)if(qm.j==(Ht(),pn))t.a[qm.p]=oP,++oP;else t.a[qm.p]=oP+S0+Z5,++Z5}oP+=Z5}PS=new Zn,ae=new vm;for(Rn=n,cd=0,Dk=Rn.length;cdO.b&&(O.b=Ym);else if(qm.i.c==ilr)YmO.c&&(O.c=Ym)}O6(ue,0,ue.length,null),tR=mt(ci,$i,28,ue.length,15,1),u=mt(ci,$i,28,oP+1,15,1);for(Se=0;Se0)Wt%2>0&&(f+=hve[Wt+1]),Wt=(Wt-1)/2|0,++hve[Wt]}wr=mt(Zrr,en,374,ue.length*2,0,1);for(et=0;et0&&q$(cd.f),It(Se,wYe)!=null)S=b(It(Se,wYe),347),PS=S.Tg(Se),s4(Se,d.Math.max(Se.g,PS.a),d.Math.max(Se.f,PS.b))}if(w0=b(It(n,Qy),107),re=n.g-(w0.b+w0.c),q=n.f-(w0.d+w0.a),Ym.bh("Available Child Area: ("+re+"|"+q+")"),Ta(n,wk,re/q),CFt(n,f,u.eh(Dk)),b(It(n,q5),280)==vte)NDe(n),s4(n,w0.b+rt(ht(It(n,Tk)))+w0.c,w0.d+rt(ht(It(n,Sk)))+w0.a);if(Ym.bh("Executed layout algorithm: "+wi(It(n,RN))+" on node "+n.k),b(It(n,q5),280)==jx){if(re<0||q<0)throw ve(new py("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+n.k));kg(n,Tk)||kg(n,Sk)||NDe(n),ue=rt(ht(It(n,Tk))),ae=rt(ht(It(n,Sk))),Ym.bh("Desired Child Area: ("+ue+"|"+ae+")"),NE=re/ue,Z5=q/ae,S0=d.Math.min(NE,d.Math.min(Z5,rt(ht(It(n,dsr))))),Ta(n,dte,S0),Ym.bh(n.k+" -- Local Scale Factor (X|Y): ("+NE+"|"+Z5+")"),et=b(It(n,zz),21),g=0,_=0,S0'?":Br(Qjt,t)?"'(?<' or '(? toIndex: ",JDe=", toIndex: ",e9e="Index: ",t9e=", Size: ",PO="org.eclipse.elk.alg.common",ki={50:1},vYt="org.eclipse.elk.alg.common.compaction",_Yt="Scanline/EventHandler",k1="org.eclipse.elk.alg.common.compaction.oned",EYt="CNode belongs to another CGroup.",wYt="ISpacingsHandler/1",f0e="The ",p0e=" instance has been finished already.",SYt="The direction ",TYt=" is not supported by the CGraph instance.",xYt="OneDimensionalCompactor",CYt="OneDimensionalCompactor/lambda$0$Type",kYt="Quadruplet",AYt="ScanlineConstraintCalculator",RYt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",IYt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",OYt="ScanlineConstraintCalculator/Timestamp",NYt="ScanlineConstraintCalculator/lambda$0$Type",Nm={178:1,46:1},g0e="org.eclipse.elk.alg.common.compaction.options",xc="org.eclipse.elk.core.data",r9e="org.eclipse.elk.polyomino.traversalStrategy",n9e="org.eclipse.elk.polyomino.lowLevelSort",i9e="org.eclipse.elk.polyomino.highLevelSort",a9e="org.eclipse.elk.polyomino.fill",Ep={134:1},m0e="polyomino",vD="org.eclipse.elk.alg.common.networksimplex",A1={183:1,3:1,4:1},LYt="org.eclipse.elk.alg.common.nodespacing",aE="org.eclipse.elk.alg.common.nodespacing.cellsystem",BO="CENTER",MYt={217:1,336:1},s9e={3:1,4:1,5:1,603:1},b5="LEFT",y5="RIGHT",o9e="Vertical alignment cannot be null",l9e="BOTTOM",oZ="org.eclipse.elk.alg.common.nodespacing.internal",_D="UNDEFINED",Dg=0.01,AG="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",DYt="LabelPlacer/lambda$0$Type",PYt="LabelPlacer/lambda$1$Type",BYt="portRatioOrPosition",FO="org.eclipse.elk.alg.common.overlaps",b0e="DOWN",Lm="org.eclipse.elk.alg.common.polyomino",lZ="NORTH",y0e="EAST",v0e="SOUTH",_0e="WEST",cZ="org.eclipse.elk.alg.common.polyomino.structures",c9e="Direction",E0e="Grid is only of size ",w0e=". Requested point (",S0e=") is out of bounds.",uZ=" Given center based coordinates were (",RG="org.eclipse.elk.graph.properties",FYt="IPropertyHolder",u9e={3:1,96:1,137:1},v5="org.eclipse.elk.alg.common.spore",$Yt="org.eclipse.elk.alg.common.utils",sE={205:1},G4="org.eclipse.elk.core",UYt="Connected Components Compaction",GYt="org.eclipse.elk.alg.disco",hZ="org.eclipse.elk.alg.disco.graph",T0e="org.eclipse.elk.alg.disco.options",h9e="CompactionStrategy",d9e="org.eclipse.elk.disco.componentCompaction.strategy",f9e="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",p9e="org.eclipse.elk.disco.debug.discoGraph",g9e="org.eclipse.elk.disco.debug.discoPolys",zYt="componentCompaction",oE="org.eclipse.elk.disco",x0e="org.eclipse.elk.spacing.componentComponent",C0e="org.eclipse.elk.edge.thickness",_5="org.eclipse.elk.aspectRatio",sS="org.eclipse.elk.padding",z4="org.eclipse.elk.alg.disco.transform",k0e=1.5707963267948966,V4=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,mx={3:1,4:1,5:1,198:1},VYt={3:1,6:1,4:1,5:1,100:1,115:1},A0e="org.eclipse.elk.alg.force",m9e="ComponentsProcessor",HYt="ComponentsProcessor/1",b9e="ElkGraphImporter/lambda$0$Type",IG="org.eclipse.elk.alg.force.graph",qYt="Component Layout",y9e="org.eclipse.elk.alg.force.model",dZ="org.eclipse.elk.force.model",v9e="org.eclipse.elk.force.iterations",_9e="org.eclipse.elk.force.repulsivePower",R0e="org.eclipse.elk.force.temperature",Mm=0.001,I0e="org.eclipse.elk.force.repulsion",ED="org.eclipse.elk.alg.force.options",$O=1.600000023841858,ih="org.eclipse.elk.force",OG="org.eclipse.elk.priority",bx="org.eclipse.elk.spacing.nodeNode",O0e="org.eclipse.elk.spacing.edgeLabel",fZ="org.eclipse.elk.randomSeed",wD="org.eclipse.elk.separateConnectedComponents",SD="org.eclipse.elk.interactive",N0e="org.eclipse.elk.portConstraints",pZ="org.eclipse.elk.edgeLabels.inline",TD="org.eclipse.elk.omitNodeMicroLayout",UO="org.eclipse.elk.nodeSize.fixedGraphSize",E5="org.eclipse.elk.nodeSize.options",H4="org.eclipse.elk.nodeSize.constraints",GO="org.eclipse.elk.nodeLabels.placement",zO="org.eclipse.elk.portLabels.placement",NG="org.eclipse.elk.topdownLayout",LG="org.eclipse.elk.topdown.scaleFactor",MG="org.eclipse.elk.topdown.hierarchicalNodeWidth",DG="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",oS="org.eclipse.elk.topdown.nodeType",E9e="origin",w9e="random",YYt="boundingBox.upLeft",WYt="boundingBox.lowRight",S9e="org.eclipse.elk.stress.fixed",T9e="org.eclipse.elk.stress.desiredEdgeLength",x9e="org.eclipse.elk.stress.dimension",C9e="org.eclipse.elk.stress.epsilon",k9e="org.eclipse.elk.stress.iterationLimit",u_="org.eclipse.elk.stress",jYt="ELK Stress",w5="org.eclipse.elk.nodeSize.minimum",gZ="org.eclipse.elk.alg.force.stress",KYt="Layered layout",S5="org.eclipse.elk.alg.layered",PG="org.eclipse.elk.alg.layered.compaction.components",xD="org.eclipse.elk.alg.layered.compaction.oned",mZ="org.eclipse.elk.alg.layered.compaction.oned.algs",lE="org.eclipse.elk.alg.layered.compaction.recthull",Pg="org.eclipse.elk.alg.layered.components",Dm="NONE",A9e="MODEL_ORDER",Qc={3:1,6:1,4:1,9:1,5:1,126:1},XYt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},bZ="org.eclipse.elk.alg.layered.compound",Pa={47:1},_u="org.eclipse.elk.alg.layered.graph",L0e=" -> ",QYt="Not supported by LGraph",R9e="Port side is undefined",M0e={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},Gy={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},ZYt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},JYt=`([{"' \r -`,eWt=`)]}"' \r -`,tWt="The given string contains parts that cannot be parsed as numbers.",BG="org.eclipse.elk.core.math",rWt={3:1,4:1,140:1,214:1,423:1},nWt={3:1,4:1,107:1,214:1,423:1},zy="org.eclipse.elk.alg.layered.graph.transform",iWt="ElkGraphImporter",aWt="ElkGraphImporter/lambda$1$Type",sWt="ElkGraphImporter/lambda$2$Type",oWt="ElkGraphImporter/lambda$4$Type",_n="org.eclipse.elk.alg.layered.intermediate",lWt="Node margin calculation",cWt="ONE_SIDED_GREEDY_SWITCH",uWt="TWO_SIDED_GREEDY_SWITCH",D0e="No implementation is available for the layout processor ",P0e="IntermediateProcessorStrategy",B0e="Node '",hWt="FIRST_SEPARATE",dWt="LAST_SEPARATE",fWt="Odd port side processing",Vs="org.eclipse.elk.alg.layered.intermediate.compaction",CD="org.eclipse.elk.alg.layered.intermediate.greedyswitch",R1="org.eclipse.elk.alg.layered.p3order.counting",FG={230:1},T5="org.eclipse.elk.alg.layered.intermediate.loops",tf="org.eclipse.elk.alg.layered.intermediate.loops.ordering",h_="org.eclipse.elk.alg.layered.intermediate.loops.routing",I9e="org.eclipse.elk.alg.layered.intermediate.preserveorder",Pm="org.eclipse.elk.alg.layered.intermediate.wrapping",Zc="org.eclipse.elk.alg.layered.options",F0e="INTERACTIVE",O9e="GREEDY",pWt="DEPTH_FIRST",gWt="EDGE_LENGTH",mWt="SELF_LOOPS",bWt="firstTryWithInitialOrder",N9e="org.eclipse.elk.layered.directionCongruency",L9e="org.eclipse.elk.layered.feedbackEdges",yZ="org.eclipse.elk.layered.interactiveReferencePoint",M9e="org.eclipse.elk.layered.mergeEdges",D9e="org.eclipse.elk.layered.mergeHierarchyEdges",P9e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",B9e="org.eclipse.elk.layered.portSortingStrategy",F9e="org.eclipse.elk.layered.thoroughness",$9e="org.eclipse.elk.layered.unnecessaryBendpoints",U9e="org.eclipse.elk.layered.generatePositionAndLayerIds",$0e="org.eclipse.elk.layered.cycleBreaking.strategy",$G="org.eclipse.elk.layered.layering.strategy",G9e="org.eclipse.elk.layered.layering.layerConstraint",z9e="org.eclipse.elk.layered.layering.layerChoiceConstraint",V9e="org.eclipse.elk.layered.layering.layerId",U0e="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",G0e="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",z0e="org.eclipse.elk.layered.layering.nodePromotion.strategy",V0e="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",H0e="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",kD="org.eclipse.elk.layered.crossingMinimization.strategy",H9e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",q0e="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",Y0e="org.eclipse.elk.layered.crossingMinimization.semiInteractive",q9e="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",Y9e="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",W9e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",j9e="org.eclipse.elk.layered.crossingMinimization.positionId",K9e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",W0e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",vZ="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",q4="org.eclipse.elk.layered.nodePlacement.strategy",_Z="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",j0e="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",K0e="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",X0e="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",Q0e="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",Z0e="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",X9e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Q9e="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",EZ="org.eclipse.elk.layered.edgeRouting.splines.mode",wZ="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",J0e="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Z9e="org.eclipse.elk.layered.spacing.baseValue",J9e="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",ePe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",tPe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",rPe="org.eclipse.elk.layered.priority.direction",nPe="org.eclipse.elk.layered.priority.shortness",iPe="org.eclipse.elk.layered.priority.straightness",ege="org.eclipse.elk.layered.compaction.connectedComponents",aPe="org.eclipse.elk.layered.compaction.postCompaction.strategy",sPe="org.eclipse.elk.layered.compaction.postCompaction.constraints",SZ="org.eclipse.elk.layered.highDegreeNodes.treatment",tge="org.eclipse.elk.layered.highDegreeNodes.threshold",rge="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Db="org.eclipse.elk.layered.wrapping.strategy",TZ="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",xZ="org.eclipse.elk.layered.wrapping.correctionFactor",AD="org.eclipse.elk.layered.wrapping.cutting.strategy",nge="org.eclipse.elk.layered.wrapping.cutting.cuts",ige="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",CZ="org.eclipse.elk.layered.wrapping.validify.strategy",kZ="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",AZ="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",RZ="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",age="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",oPe="org.eclipse.elk.layered.edgeLabels.sideSelection",lPe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",IZ="org.eclipse.elk.layered.considerModelOrder.strategy",cPe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",uPe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",sge="org.eclipse.elk.layered.considerModelOrder.components",hPe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",oge="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",lge="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",cge="layering",yWt="layering.minWidth",vWt="layering.nodePromotion",VO="crossingMinimization",OZ="org.eclipse.elk.hierarchyHandling",_Wt="crossingMinimization.greedySwitch",EWt="nodePlacement",wWt="nodePlacement.bk",SWt="edgeRouting",UG="org.eclipse.elk.edgeRouting",Bg="spacing",dPe="priority",fPe="compaction",TWt="compaction.postCompaction",xWt="Specifies whether and how post-process compaction is applied.",pPe="highDegreeNodes",gPe="wrapping",CWt="wrapping.cutting",kWt="wrapping.validify",mPe="wrapping.multiEdge",uge="edgeLabels",RD="considerModelOrder",bPe="org.eclipse.elk.spacing.commentComment",yPe="org.eclipse.elk.spacing.commentNode",vPe="org.eclipse.elk.spacing.edgeEdge",hge="org.eclipse.elk.spacing.edgeNode",_Pe="org.eclipse.elk.spacing.labelLabel",EPe="org.eclipse.elk.spacing.labelPortHorizontal",wPe="org.eclipse.elk.spacing.labelPortVertical",SPe="org.eclipse.elk.spacing.labelNode",TPe="org.eclipse.elk.spacing.nodeSelfLoop",xPe="org.eclipse.elk.spacing.portPort",CPe="org.eclipse.elk.spacing.individual",kPe="org.eclipse.elk.port.borderOffset",APe="org.eclipse.elk.noLayout",RPe="org.eclipse.elk.port.side",GG="org.eclipse.elk.debugMode",IPe="org.eclipse.elk.alignment",OPe="org.eclipse.elk.insideSelfLoops.activate",NPe="org.eclipse.elk.insideSelfLoops.yo",dge="org.eclipse.elk.direction",LPe="org.eclipse.elk.nodeLabels.padding",MPe="org.eclipse.elk.portLabels.nextToPortIfPossible",DPe="org.eclipse.elk.portLabels.treatAsGroup",PPe="org.eclipse.elk.portAlignment.default",BPe="org.eclipse.elk.portAlignment.north",FPe="org.eclipse.elk.portAlignment.south",$Pe="org.eclipse.elk.portAlignment.west",UPe="org.eclipse.elk.portAlignment.east",NZ="org.eclipse.elk.contentAlignment",GPe="org.eclipse.elk.junctionPoints",zPe="org.eclipse.elk.edgeLabels.placement",VPe="org.eclipse.elk.port.index",HPe="org.eclipse.elk.commentBox",qPe="org.eclipse.elk.hypernode",YPe="org.eclipse.elk.port.anchor",fge="org.eclipse.elk.partitioning.activate",pge="org.eclipse.elk.partitioning.partition",LZ="org.eclipse.elk.position",WPe="org.eclipse.elk.margins",jPe="org.eclipse.elk.spacing.portsSurrounding",MZ="org.eclipse.elk.interactiveLayout",Lc="org.eclipse.elk.core.util",KPe={3:1,4:1,5:1,601:1},AWt="NETWORK_SIMPLEX",XPe="SIMPLE",Cl={106:1,47:1},DZ="org.eclipse.elk.alg.layered.p1cycles",Pb="org.eclipse.elk.alg.layered.p2layers",QPe={413:1,230:1},RWt={846:1,3:1,4:1},Fh="org.eclipse.elk.alg.layered.p3order",kl="org.eclipse.elk.alg.layered.p4nodes",IWt={3:1,4:1,5:1,854:1},Bm=0.00001,d_="org.eclipse.elk.alg.layered.p4nodes.bk",gge="org.eclipse.elk.alg.layered.p5edges",Z0="org.eclipse.elk.alg.layered.p5edges.orthogonal",mge="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",bge=0.000001,yx="org.eclipse.elk.alg.layered.p5edges.splines",yge=0.09999999999999998,PZ=0.00000001,OWt=4.71238898038469,ZPe=3.141592653589793,Bb="org.eclipse.elk.alg.mrtree",vge=0.10000000149011612,BZ="SUPER_ROOT",ID="org.eclipse.elk.alg.mrtree.graph",JPe=-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,Eu="org.eclipse.elk.alg.mrtree.intermediate",NWt="Processor compute fanout",FZ={3:1,6:1,4:1,5:1,534:1,100:1,115:1},LWt="Set neighbors in level",zG="org.eclipse.elk.alg.mrtree.options",MWt="DESCENDANTS",eBe="org.eclipse.elk.mrtree.compaction",tBe="org.eclipse.elk.mrtree.edgeEndTextureLength",rBe="org.eclipse.elk.mrtree.treeLevel",nBe="org.eclipse.elk.mrtree.positionConstraint",iBe="org.eclipse.elk.mrtree.weighting",aBe="org.eclipse.elk.mrtree.edgeRoutingMode",sBe="org.eclipse.elk.mrtree.searchOrder",DWt="Position Constraint",ah="org.eclipse.elk.mrtree",PWt="org.eclipse.elk.tree",BWt="Processor arrange level",HO="org.eclipse.elk.alg.mrtree.p2order",Dd="org.eclipse.elk.alg.mrtree.p4route",oBe="org.eclipse.elk.alg.radial",cE=6.283185307179586,lBe="Before",cBe=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,$Z="After",uBe="org.eclipse.elk.alg.radial.intermediate",FWt="COMPACTION",_ge="org.eclipse.elk.alg.radial.intermediate.compaction",$Wt={3:1,4:1,5:1,100:1},hBe="org.eclipse.elk.alg.radial.intermediate.optimization",Ege="No implementation is available for the layout option ",OD="org.eclipse.elk.alg.radial.options",dBe="org.eclipse.elk.radial.centerOnRoot",fBe="org.eclipse.elk.radial.orderId",pBe="org.eclipse.elk.radial.radius",UZ="org.eclipse.elk.radial.rotate",wge="org.eclipse.elk.radial.compactor",Sge="org.eclipse.elk.radial.compactionStepSize",gBe="org.eclipse.elk.radial.sorter",mBe="org.eclipse.elk.radial.wedgeCriteria",bBe="org.eclipse.elk.radial.optimizationCriteria",Tge="org.eclipse.elk.radial.rotation.targetAngle",xge="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",yBe="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",UWt="Compaction",vBe="rotation",Vf="org.eclipse.elk.radial",GWt="org.eclipse.elk.alg.radial.p1position.wedge",_Be="org.eclipse.elk.alg.radial.sorting",zWt=5.497787143782138,VWt=3.9269908169872414,HWt=2.356194490192345,qWt="org.eclipse.elk.alg.rectpacking",GZ="org.eclipse.elk.alg.rectpacking.intermediate",Cge="org.eclipse.elk.alg.rectpacking.options",EBe="org.eclipse.elk.rectpacking.trybox",wBe="org.eclipse.elk.rectpacking.currentPosition",SBe="org.eclipse.elk.rectpacking.desiredPosition",TBe="org.eclipse.elk.rectpacking.inNewRow",xBe="org.eclipse.elk.rectpacking.widthApproximation.strategy",CBe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",kBe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",ABe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",RBe="org.eclipse.elk.rectpacking.packing.strategy",IBe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",OBe="org.eclipse.elk.rectpacking.packing.compaction.iterations",NBe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",kge="widthApproximation",YWt="Compaction Strategy",WWt="packing.compaction",vd="org.eclipse.elk.rectpacking",qO="org.eclipse.elk.alg.rectpacking.p1widthapproximation",zZ="org.eclipse.elk.alg.rectpacking.p2packing",jWt="No Compaction",LBe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",VG="org.eclipse.elk.alg.rectpacking.util",VZ="No implementation available for ",vx="org.eclipse.elk.alg.spore",_x="org.eclipse.elk.alg.spore.options",lS="org.eclipse.elk.sporeCompaction",Age="org.eclipse.elk.underlyingLayoutAlgorithm",MBe="org.eclipse.elk.processingOrder.treeConstruction",DBe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",Rge="org.eclipse.elk.processingOrder.preferredRoot",Ige="org.eclipse.elk.processingOrder.rootSelection",Oge="org.eclipse.elk.structure.structureExtractionStrategy",PBe="org.eclipse.elk.compaction.compactionStrategy",BBe="org.eclipse.elk.compaction.orthogonal",FBe="org.eclipse.elk.overlapRemoval.maxIterations",$Be="org.eclipse.elk.overlapRemoval.runScanline",Nge="processingOrder",KWt="overlapRemoval",YO="org.eclipse.elk.sporeOverlap",XWt="org.eclipse.elk.alg.spore.p1structure",Lge="org.eclipse.elk.alg.spore.p2processingorder",Mge="org.eclipse.elk.alg.spore.p3execution",QWt="Topdown Layout",ZWt="Invalid index: ",WO="org.eclipse.elk.core.alg",Y4={341:1},Ex={295:1},JWt="Make sure its type is registered with the ",UBe=" utility class.",jO="true",Dge="false",ejt="Couldn't clone property '",cS=0.05,_d="org.eclipse.elk.core.options",tjt=1.2999999523162842,uS="org.eclipse.elk.box",GBe="org.eclipse.elk.expandNodes",zBe="org.eclipse.elk.box.packingMode",rjt="org.eclipse.elk.algorithm",njt="org.eclipse.elk.resolvedAlgorithm",VBe="org.eclipse.elk.bendPoints",ijt="org.eclipse.elk.labelManager",ajt="org.eclipse.elk.scaleFactor",sjt="org.eclipse.elk.childAreaWidth",ojt="org.eclipse.elk.childAreaHeight",ljt="org.eclipse.elk.animate",cjt="org.eclipse.elk.animTimeFactor",ujt="org.eclipse.elk.layoutAncestors",hjt="org.eclipse.elk.maxAnimTime",djt="org.eclipse.elk.minAnimTime",fjt="org.eclipse.elk.progressBar",pjt="org.eclipse.elk.validateGraph",gjt="org.eclipse.elk.validateOptions",mjt="org.eclipse.elk.zoomToFit",bjt="org.eclipse.elk.font.name",yjt="org.eclipse.elk.font.size",HBe="org.eclipse.elk.topdown.sizeApproximator",qBe="org.eclipse.elk.topdown.scaleCap",vjt="org.eclipse.elk.edge.type",_jt="partitioning",Ejt="nodeLabels",HZ="portAlignment",Pge="nodeSize",Bge="port",YBe="portLabels",HG="topdown",wjt="insideSelfLoops",ND="org.eclipse.elk.fixed",qZ="org.eclipse.elk.random",WBe={3:1,34:1,22:1,347:1},Sjt="port must have a parent node to calculate the port side",Tjt="The edge needs to have exactly one edge section. Found: ",LD="org.eclipse.elk.core.util.adapters",Hf="org.eclipse.emf.ecore",W4="org.eclipse.elk.graph",xjt="EMapPropertyHolder",Cjt="ElkBendPoint",kjt="ElkGraphElement",Ajt="ElkConnectableShape",jBe="ElkEdge",Rjt="ElkEdgeSection",Ijt="EModelElement",Ojt="ENamedElement",KBe="ElkLabel",XBe="ElkNode",QBe="ElkPort",Njt={94:1,93:1},x5="org.eclipse.emf.common.notify.impl",f_="The feature '",MD="' is not a valid changeable feature",Ljt="Expecting null",Fge="' is not a valid feature",Mjt="The feature ID",Djt=" is not a valid feature ID",Hc=32768,Pjt={110:1,94:1,93:1,58:1,54:1,99:1},sn="org.eclipse.emf.ecore.impl",uE="org.eclipse.elk.graph.impl",DD="Recursive containment not allowed for ",KO="The datatype '",hS="' is not a valid classifier",$ge="The value '",j4={195:1,3:1,4:1},Uge="The class '",XO="http://www.eclipse.org/elk/ElkGraph",ZBe="property",PD="value",Gge="source",Bjt="properties",Fjt="identifier",zge="height",Vge="width",Hge="parent",qge="text",Yge="children",$jt="hierarchical",JBe="sources",Wge="targets",eFe="sections",YZ="bendPoints",tFe="outgoingShape",rFe="incomingShape",nFe="outgoingSections",iFe="incomingSections",cl="org.eclipse.emf.common.util",aFe="Severe implementation error in the Json to ElkGraph importer.",Fm="id",Ho="org.eclipse.elk.graph.json",sFe="Unhandled parameter types: ",Ujt="startPoint",Gjt="An edge must have at least one source and one target (edge id: '",QO="').",zjt="Referenced edge section does not exist: ",Vjt=" (edge id: '",oFe="target",Hjt="sourcePoint",qjt="targetPoint",WZ="group",ta="name",Yjt="connectableShape cannot be null",Wjt="edge cannot be null",jge="Passed edge is not 'simple'.",jZ="org.eclipse.elk.graph.util",qG="The 'no duplicates' constraint is violated",Kge="targetIndex=",hE=", size=",Xge="sourceIndex=",$m={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},Qge={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},KZ="logging",jjt="measureExecutionTime",Kjt="parser.parse.1",Xjt="parser.parse.2",XZ="parser.next.1",Zge="parser.next.2",Qjt="parser.next.3",Zjt="parser.next.4",dE="parser.factor.1",lFe="parser.factor.2",Jjt="parser.factor.3",eKt="parser.factor.4",tKt="parser.factor.5",rKt="parser.factor.6",nKt="parser.atom.1",iKt="parser.atom.2",aKt="parser.atom.3",cFe="parser.atom.4",Jge="parser.atom.5",uFe="parser.cc.1",QZ="parser.cc.2",sKt="parser.cc.3",oKt="parser.cc.5",hFe="parser.cc.6",dFe="parser.cc.7",eme="parser.cc.8",lKt="parser.ope.1",cKt="parser.ope.2",uKt="parser.ope.3",Vy="parser.descape.1",hKt="parser.descape.2",dKt="parser.descape.3",fKt="parser.descape.4",pKt="parser.descape.5",qf="parser.process.1",gKt="parser.quantifier.1",mKt="parser.quantifier.2",bKt="parser.quantifier.3",yKt="parser.quantifier.4",fFe="parser.quantifier.5",vKt="org.eclipse.emf.common.notify",pFe={424:1,686:1},_Kt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},YG={378:1,152:1},BD="index=",tme={3:1,4:1,5:1,129:1},EKt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},gFe={3:1,6:1,4:1,5:1,198:1},wKt={3:1,4:1,5:1,173:1,379:1},SKt=";/?:@&=+$,",TKt="invalid authority: ",xKt="EAnnotation",CKt="ETypedElement",kKt="EStructuralFeature",AKt="EAttribute",RKt="EClassifier",IKt="EEnumLiteral",OKt="EGenericType",NKt="EOperation",LKt="EParameter",MKt="EReference",DKt="ETypeParameter",qa="org.eclipse.emf.ecore.util",rme={79:1},mFe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},PKt="org.eclipse.emf.ecore.util.FeatureMap$Entry",$h=8192,wx=2048,FD="byte",ZZ="char",$D="double",UD="float",GD="int",zD="long",VD="short",BKt="java.lang.Object",K4={3:1,4:1,5:1,254:1},bFe={3:1,4:1,5:1,688:1},FKt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},dc={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},WG="mixed",Ni="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",wp="kind",$Kt={3:1,4:1,5:1,689:1},yFe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},JZ={20:1,31:1,56:1,16:1,15:1,61:1,71:1},eJ={51:1,128:1,287:1},tJ={76:1,343:1},rJ="The value of type '",nJ="' must be of type '",X4=1352,Sp="http://www.eclipse.org/emf/2002/Ecore",iJ=-32768,dS="constraints",Zo="baseType",UKt="getEStructuralFeature",GKt="getFeatureID",HD="feature",zKt="getOperationID",vFe="operation",VKt="defaultValue",HKt="eTypeParameters",qKt="isInstance",YKt="getEEnumLiteral",WKt="eContainingClass",Yi={57:1},jKt={3:1,4:1,5:1,124:1},KKt="org.eclipse.emf.ecore.resource",XKt={94:1,93:1,599:1,2034:1},nme="org.eclipse.emf.ecore.resource.impl",_Fe="unspecified",jG="simple",aJ="attribute",QKt="attributeWildcard",sJ="element",ime="elementWildcard",J0="collapse",ame="itemType",oJ="namespace",KG="##targetNamespace",Tp="whiteSpace",EFe="wildcards",fE="http://www.eclipse.org/emf/2003/XMLType",sme="##any",ZO="uninitialized",XG="The multiplicity constraint is violated",lJ="org.eclipse.emf.ecore.xml.type",ZKt="ProcessingInstruction",JKt="SimpleAnyType",eXt="XMLTypeDocumentRoot",Ps="org.eclipse.emf.ecore.xml.type.impl",QG="INF",tXt="processing",rXt="ENTITIES_._base",wFe="minLength",SFe="ENTITY",cJ="NCName",nXt="IDREFS_._base",TFe="integer",ome="token",lme="pattern",iXt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",xFe="\\i\\c*",aXt="[\\i-[:]][\\c-[:]]*",sXt="nonPositiveInteger",ZG="maxInclusive",CFe="NMTOKEN",oXt="NMTOKENS_._base",kFe="nonNegativeInteger",JG="minInclusive",lXt="normalizedString",cXt="unsignedByte",uXt="unsignedInt",hXt="18446744073709551615",dXt="unsignedShort",fXt="processingInstruction",Hy="org.eclipse.emf.ecore.xml.type.internal",JO=1114111,pXt="Internal Error: shorthands: \\u",qD="xml:isDigit",cme="xml:isWord",ume="xml:isSpace",hme="xml:isNameChar",dme="xml:isInitialNameChar",gXt="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",mXt="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",bXt="Private Use",fme="ASSIGNED",pme="\x00€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",AFe="UNASSIGNED",eN={3:1,122:1},yXt="org.eclipse.emf.ecore.xml.type.util",uJ={3:1,4:1,5:1,381:1},RFe="org.eclipse.xtext.xbase.lib",vXt="Cannot add elements to a Range",_Xt="Cannot set elements in a Range",EXt="Cannot remove elements from a Range",wXt="user.agent",v,hJ,gme,S6n=-1;d.goog=d.goog||{},d.goog.global=d.goog.global||d,hJ={},G(1,null,{},T),v.Fb=function(n){return vRt(this,n)},v.Gb=function(){return this.Rm},v.Hb=function(){return ww(this)},v.Ib=function(){var n;return N2(Ld(this))+"@"+(n=Da(this)>>>0,n.toString(16))},v.equals=function(t){return this.Fb(t)},v.hashCode=function(){return this.Hb()},v.toString=function(){return this.Ib()};var SXt,TXt,xXt;G(297,1,{297:1,2124:1},SLe),v.ve=function(n){var s=new SLe;return s.i=4,n>1?s.c=GLt(this,n-1):s.c=this,s},v.we=function(){return gb(this),this.b},v.xe=function(){return N2(this)},v.ye=function(){return gb(this),this.k},v.ze=function(){return(this.i&4)!=0},v.Ae=function(){return(this.i&1)!=0},v.Ib=function(){return MNe(this)},v.i=0;var T6n=1,ao=V(Nc,"Object",1),IFe=V(Nc,"Class",297);G(2096,1,bG);var mOi=V(yG,"Optional",2096);G(1191,2096,bG,x),v.Fb=function(n){return n===this},v.Hb=function(){return 2040732332},v.Ib=function(){return"Optional.absent()"},v.Jb=function(n){return mi(n),bM(),mme};var mme,bOi=V(yG,"Absent",1191);G(636,1,{},Qle);var yOi=V(yG,"Joiner",636),x6n=ns(yG,"Predicate");G(589,1,{178:1,589:1,3:1,46:1},jSt),v.Mb=function(n){return GPt(this,n)},v.Lb=function(n){return GPt(this,n)},v.Fb=function(n){var s;if(He(n,589))return s=b(n,589),_8e(this.a,s.a);return!1},v.Hb=function(){return RLe(this.a)+306654252},v.Ib=function(){return hSn(this.a)};var vOi=V(yG,"Predicates/AndPredicate",589);G(419,2096,{419:1,3:1},LW),v.Fb=function(n){var s;if(He(n,419))return s=b(n,419),da(this.a,s.a);return!1},v.Hb=function(){return 1502476572+Da(this.a)},v.Ib=function(){return Kqt+this.a+")"},v.Jb=function(n){return new LW(LK(n.Kb(this.a),"the Function passed to Optional.transform() must not return null."))};var _Oi=V(yG,"Present",419);G(204,1,RO),v.Nb=function(n){Go(this,n)},v.Qb=function(){l3t()};var EOi=V(kr,"UnmodifiableIterator",204);G(2076,204,IO),v.Qb=function(){l3t()},v.Rb=function(n){throw ve(new bi)},v.Wb=function(n){throw ve(new bi)};var wOi=V(kr,"UnmodifiableListIterator",2076);G(399,2076,IO),v.Ob=function(){return this.c0},v.Pb=function(){if(this.c>=this.d)throw ve(new yc);return this.Xb(this.c++)},v.Tb=function(){return this.c},v.Ub=function(){if(this.c<=0)throw ve(new yc);return this.Xb(--this.c)},v.Vb=function(){return this.c-1},v.c=0,v.d=0;var SOi=V(kr,"AbstractIndexedListIterator",399);G(713,204,RO),v.Ob=function(){return Jhe(this)},v.Pb=function(){return ANe(this)},v.e=1;var TOi=V(kr,"AbstractIterator",713);G(2084,1,{229:1}),v.Zb=function(){var n;return n=this.f,!n?this.f=this.ac():n},v.Fb=function(n){return Ede(this,n)},v.Hb=function(){return Da(this.Zb())},v.dc=function(){return this.gc()==0},v.ec=function(){return DA(this)},v.Ib=function(){return hc(this.Zb())};var xOi=V(kr,"AbstractMultimap",2084);G(742,2084,nE),v.$b=function(){SX(this)},v._b=function(n){return k3t(this,n)},v.ac=function(){return new i6(this,this.c)},v.ic=function(n){return this.hc()},v.bc=function(){return new h4(this,this.c)},v.jc=function(){return this.mc(this.hc())},v.kc=function(){return new Ykt(this)},v.lc=function(){return Ife(this.c.vc().Nc(),new A,64,this.d)},v.cc=function(n){return _a(this,n)},v.fc=function(n){return IU(this,n)},v.gc=function(){return this.d},v.mc=function(n){return Hr(),new qI(n)},v.nc=function(){return new qkt(this)},v.oc=function(){return Ife(this.c.Cc().Nc(),new k,64,this.d)},v.pc=function(n,s){return new tX(this,n,s,null)},v.d=0;var COi=V(kr,"AbstractMapBasedMultimap",742);G(1696,742,nE),v.hc=function(){return new Gu(this.a)},v.jc=function(){return Hr(),Hr(),Jo},v.cc=function(n){return b(_a(this,n),15)},v.fc=function(n){return b(IU(this,n),15)},v.Zb=function(){return GA(this)},v.Fb=function(n){return Ede(this,n)},v.qc=function(n){return b(_a(this,n),15)},v.rc=function(n){return b(IU(this,n),15)},v.mc=function(n){return rhe(b(n,15))},v.pc=function(n,s){return j7t(this,n,b(s,15),null)};var kOi=V(kr,"AbstractListMultimap",1696);G(748,1,To),v.Nb=function(n){Go(this,n)},v.Ob=function(){return this.c.Ob()||this.e.Ob()},v.Pb=function(){var n;if(!this.e.Ob())n=b(this.c.Pb(),44),this.b=n.ld(),this.a=b(n.md(),16),this.e=this.a.Kc();return this.sc(this.b,this.e.Pb())},v.Qb=function(){this.e.Qb(),b(gp(this.a),16).dc()&&this.c.Qb(),--this.d.d};var AOi=V(kr,"AbstractMapBasedMultimap/Itr",748);G(1129,748,To,qkt),v.sc=function(n,s){return s};var ROi=V(kr,"AbstractMapBasedMultimap/1",1129);G(1130,1,{},k),v.Kb=function(n){return b(n,16).Nc()};var IOi=V(kr,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130);G(1131,748,To,Ykt),v.sc=function(n,s){return new pw(n,s)};var OOi=V(kr,"AbstractMapBasedMultimap/2",1131),OFe=ns(jn,"Map");G(2065,1,iS),v.wc=function(n){k8(this,n)},v.yc=function(n,s,u){return Ude(this,n,s,u)},v.$b=function(){this.vc().$b()},v.tc=function(n){return dfe(this,n)},v._b=function(n){return!!yMe(this,n,!1)},v.uc=function(n){var s,u,f;for(u=this.vc().Kc();u.Ob();)if(s=b(u.Pb(),44),f=s.md(),nt(n)===nt(f)||n!=null&&da(n,f))return!0;return!1},v.Fb=function(n){var s,u,f;if(n===this)return!0;if(!He(n,85))return!1;if(f=b(n,85),this.gc()!=f.gc())return!1;for(u=f.vc().Kc();u.Ob();)if(s=b(u.Pb(),44),!this.tc(s))return!1;return!0},v.xc=function(n){return Jl(yMe(this,n,!1))},v.Hb=function(){return vLe(this.vc())},v.dc=function(){return this.gc()==0},v.ec=function(){return new A2(this)},v.zc=function(n,s){throw ve(new fy("Put not supported on this map"))},v.Ac=function(n){C8(this,n)},v.Bc=function(n){return Jl(yMe(this,n,!0))},v.gc=function(){return this.vc().gc()},v.Ib=function(){return J$t(this)},v.Cc=function(){return new hb(this)};var NOi=V(jn,"AbstractMap",2065);G(2085,2065,iS),v.bc=function(){return new tj(this)},v.vc=function(){return HOt(this)},v.ec=function(){var n=this.g;return!n?this.g=this.bc():n},v.Cc=function(){var n=this.i;return!n?this.i=new bAt(this):n};var LOi=V(kr,"Maps/ViewCachingAbstractMap",2085);G(402,2085,iS,i6),v.xc=function(n){return Ign(this,n)},v.Bc=function(n){return J1n(this,n)},v.$b=function(){this.d==this.e.c?this.e.$b():uK(new O6e(this))},v._b=function(n){return xBt(this.d,n)},v.Ec=function(){return new KSt(this)},v.Dc=function(){return this.Ec()},v.Fb=function(n){return this===n||da(this.d,n)},v.Hb=function(){return Da(this.d)},v.ec=function(){return this.e.ec()},v.gc=function(){return this.d.gc()},v.Ib=function(){return hc(this.d)};var MOi=V(kr,"AbstractMapBasedMultimap/AsMap",402),rf=ns(Nc,"Iterable");G(31,1,fx),v.Jc=function(n){Vo(this,n)},v.Lc=function(){return this.Oc()},v.Nc=function(){return new Gr(this,0)},v.Oc=function(){return new Pr(null,this.Nc())},v.Fc=function(n){throw ve(new fy("Add not supported on this collection"))},v.Gc=function(n){return Po(this,n)},v.$b=function(){bOe(this)},v.Hc=function(n){return JT(this,n,!1)},v.Ic=function(n){return wU(this,n)},v.dc=function(){return this.gc()==0},v.Mc=function(n){return JT(this,n,!0)},v.Pc=function(){return G6e(this)},v.Qc=function(n){return q8(this,n)},v.Ib=function(){return i_(this)};var DOi=V(jn,"AbstractCollection",31),xp=ns(jn,"Set");G(Mg,31,Bh),v.Nc=function(){return new Gr(this,1)},v.Fb=function(n){return mFt(this,n)},v.Hb=function(){return vLe(this)};var POi=V(jn,"AbstractSet",Mg);G(2068,Mg,Bh);var BOi=V(kr,"Sets/ImprovedAbstractSet",2068);G(2069,2068,Bh),v.$b=function(){this.Rc().$b()},v.Hc=function(n){return eFt(this,n)},v.dc=function(){return this.Rc().dc()},v.Mc=function(n){var s;if(this.Hc(n)&&He(n,44))return s=b(n,44),this.Rc().ec().Mc(s.ld());return!1},v.gc=function(){return this.Rc().gc()};var FOi=V(kr,"Maps/EntrySet",2069);G(1127,2069,Bh,KSt),v.Hc=function(n){return YLe(this.a.d.vc(),n)},v.Kc=function(){return new O6e(this.a)},v.Rc=function(){return this.a},v.Mc=function(n){var s;if(!YLe(this.a.d.vc(),n))return!1;return s=b(gp(b(n,44)),44),y0n(this.a.e,s.ld()),!0},v.Nc=function(){return L$(this.a.d.vc().Nc(),new XSt(this.a))};var $Oi=V(kr,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127);G(1128,1,{},XSt),v.Kb=function(n){return YMt(this.a,b(n,44))};var UOi=V(kr,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128);G(746,1,To,O6e),v.Nb=function(n){Go(this,n)},v.Pb=function(){var n;return n=b(this.b.Pb(),44),this.a=b(n.md(),16),YMt(this.c,n)},v.Ob=function(){return this.b.Ob()},v.Qb=function(){f6(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null};var GOi=V(kr,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746);G(542,2068,Bh,tj),v.$b=function(){this.b.$b()},v.Hc=function(n){return this.b._b(n)},v.Jc=function(n){mi(n),this.b.wc(new fTt(n))},v.dc=function(){return this.b.dc()},v.Kc=function(){return new yM(this.b.vc().Kc())},v.Mc=function(n){if(this.b._b(n))return this.b.Bc(n),!0;return!1},v.gc=function(){return this.b.gc()};var zOi=V(kr,"Maps/KeySet",542);G(327,542,Bh,h4),v.$b=function(){var n;uK((n=this.b.vc().Kc(),new tRe(this,n)))},v.Ic=function(n){return this.b.ec().Ic(n)},v.Fb=function(n){return this===n||da(this.b.ec(),n)},v.Hb=function(){return Da(this.b.ec())},v.Kc=function(){var n;return n=this.b.vc().Kc(),new tRe(this,n)},v.Mc=function(n){var s,u;if(u=0,s=b(this.b.Bc(n),16),s)u=s.gc(),s.$b(),this.a.d-=u;return u>0},v.Nc=function(){return this.b.ec().Nc()};var VOi=V(kr,"AbstractMapBasedMultimap/KeySet",327);G(747,1,To,tRe),v.Nb=function(n){Go(this,n)},v.Ob=function(){return this.c.Ob()},v.Pb=function(){return this.a=b(this.c.Pb(),44),this.a.ld()},v.Qb=function(){var n;f6(!!this.a),n=b(this.a.md(),16),this.c.Qb(),this.b.a.d-=n.gc(),n.$b(),this.a=null};var HOi=V(kr,"AbstractMapBasedMultimap/KeySet/1",747);G(503,402,{85:1,133:1},C$),v.bc=function(){return this.Sc()},v.ec=function(){return this.Uc()},v.Sc=function(){return new e$(this.c,this.Wc())},v.Tc=function(){return this.Wc().Tc()},v.Uc=function(){var n;return n=this.b,!n?this.b=this.Sc():n},v.Vc=function(){return this.Wc().Vc()},v.Wc=function(){return b(this.d,133)};var qOi=V(kr,"AbstractMapBasedMultimap/SortedAsMap",503);G(446,503,UDe,ZM),v.bc=function(){return new n6(this.a,b(b(this.d,133),139))},v.Sc=function(){return new n6(this.a,b(b(this.d,133),139))},v.ec=function(){var n;return n=this.b,b(!n?this.b=new n6(this.a,b(b(this.d,133),139)):n,277)},v.Uc=function(){var n;return n=this.b,b(!n?this.b=new n6(this.a,b(b(this.d,133),139)):n,277)},v.Wc=function(){return b(b(this.d,133),139)},v.Xc=function(n){return b(b(this.d,133),139).Xc(n)},v.Yc=function(n){return b(b(this.d,133),139).Yc(n)},v.Zc=function(n,s){return new ZM(this.a,b(b(this.d,133),139).Zc(n,s))},v.$c=function(n){return b(b(this.d,133),139).$c(n)},v._c=function(n){return b(b(this.d,133),139)._c(n)},v.ad=function(n,s){return new ZM(this.a,b(b(this.d,133),139).ad(n,s))};var YOi=V(kr,"AbstractMapBasedMultimap/NavigableAsMap",446);G(502,327,Xqt,e$),v.Nc=function(){return this.b.ec().Nc()};var WOi=V(kr,"AbstractMapBasedMultimap/SortedKeySet",502);G(401,502,GDe,n6);var jOi=V(kr,"AbstractMapBasedMultimap/NavigableKeySet",401);G(551,31,fx,tX),v.Fc=function(n){var s,u;if(gd(this),u=this.d.dc(),s=this.d.Fc(n),s)++this.f.d,u&&I$(this);return s},v.Gc=function(n){var s,u,f;if(n.dc())return!1;if(f=(gd(this),this.d.gc()),s=this.d.Gc(n),s)u=this.d.gc(),this.f.d+=u-f,f==0&&I$(this);return s},v.$b=function(){var n=(gd(this),this.d.gc());if(n==0)return;this.d.$b(),this.f.d-=n,mK(this)},v.Hc=function(n){return gd(this),this.d.Hc(n)},v.Ic=function(n){return gd(this),this.d.Ic(n)},v.Fb=function(n){if(n===this)return!0;return gd(this),da(this.d,n)},v.Hb=function(){return gd(this),Da(this.d)},v.Kc=function(){return gd(this),new p6e(this)},v.Mc=function(n){var s;if(gd(this),s=this.d.Mc(n),s)--this.f.d,mK(this);return s},v.gc=function(){return aRt(this)},v.Nc=function(){return gd(this),this.d.Nc()},v.Ib=function(){return gd(this),hc(this.d)};var KOi=V(kr,"AbstractMapBasedMultimap/WrappedCollection",551),Yf=ns(jn,"List");G(744,551,{20:1,31:1,16:1,15:1},H6e),v.jd=function(n){q2(this,n)},v.Nc=function(){return gd(this),this.d.Nc()},v.bd=function(n,s){var u;gd(this),u=this.d.dc(),b(this.d,15).bd(n,s),++this.a.d,u&&I$(this)},v.cd=function(n,s){var u,f,g;if(s.dc())return!1;if(g=(gd(this),this.d.gc()),u=b(this.d,15).cd(n,s),u)f=this.d.gc(),this.a.d+=f-g,g==0&&I$(this);return u},v.Xb=function(n){return gd(this),b(this.d,15).Xb(n)},v.dd=function(n){return gd(this),b(this.d,15).dd(n)},v.ed=function(){return gd(this),new DRt(this)},v.fd=function(n){return gd(this),new iLt(this,n)},v.gd=function(n){var s;return gd(this),s=b(this.d,15).gd(n),--this.a.d,mK(this),s},v.hd=function(n,s){return gd(this),b(this.d,15).hd(n,s)},v.kd=function(n,s){return gd(this),j7t(this.a,this.e,b(this.d,15).kd(n,s),!this.b?this:this.b)};var XOi=V(kr,"AbstractMapBasedMultimap/WrappedList",744);G(1126,744,{20:1,31:1,16:1,15:1,59:1},TIt);var QOi=V(kr,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126);G(628,1,To,p6e),v.Nb=function(n){Go(this,n)},v.Ob=function(){return T6(this),this.b.Ob()},v.Pb=function(){return T6(this),this.b.Pb()},v.Qb=function(){lIt(this)};var ZOi=V(kr,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628);G(745,628,S1,DRt,iLt),v.Qb=function(){lIt(this)},v.Rb=function(n){var s=aRt(this.a)==0;(T6(this),b(this.b,128)).Rb(n),++this.a.a.d,s&&I$(this.a)},v.Sb=function(){return(T6(this),b(this.b,128)).Sb()},v.Tb=function(){return(T6(this),b(this.b,128)).Tb()},v.Ub=function(){return(T6(this),b(this.b,128)).Ub()},v.Vb=function(){return(T6(this),b(this.b,128)).Vb()},v.Wb=function(n){(T6(this),b(this.b,128)).Wb(n)};var JOi=V(kr,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745);G(743,551,Xqt,LIe),v.Nc=function(){return gd(this),this.d.Nc()};var eNi=V(kr,"AbstractMapBasedMultimap/WrappedSortedSet",743);G(1125,743,GDe,IRt);var tNi=V(kr,"AbstractMapBasedMultimap/WrappedNavigableSet",1125);G(1124,551,Bh,qIt),v.Nc=function(){return gd(this),this.d.Nc()};var rNi=V(kr,"AbstractMapBasedMultimap/WrappedSet",1124);G(1133,1,{},A),v.Kb=function(n){return A0n(b(n,44))};var nNi=V(kr,"AbstractMapBasedMultimap/lambda$1$Type",1133);G(1132,1,{},eTt),v.Kb=function(n){return new pw(this.a,n)};var iNi=V(kr,"AbstractMapBasedMultimap/lambda$2$Type",1132),pE=ns(jn,"Map/Entry");G(358,1,Npe),v.Fb=function(n){var s;if(He(n,44))return s=b(n,44),Sm(this.ld(),s.ld())&&Sm(this.md(),s.md());return!1},v.Hb=function(){var n,s;return n=this.ld(),s=this.md(),(n==null?0:Da(n))^(s==null?0:Da(s))},v.nd=function(n){throw ve(new bi)},v.Ib=function(){return this.ld()+"="+this.md()};var aNi=V(kr,Qqt,358);G(2086,31,fx),v.$b=function(){this.od().$b()},v.Hc=function(n){var s;if(He(n,44))return s=b(n,44),Kfn(this.od(),s.ld(),s.md());return!1},v.Mc=function(n){var s;if(He(n,44))return s=b(n,44),R7t(this.od(),s.ld(),s.md());return!1},v.gc=function(){return this.od().d};var sNi=V(kr,"Multimaps/Entries",2086);G(749,2086,fx,MAe),v.Kc=function(){return this.a.kc()},v.od=function(){return this.a},v.Nc=function(){return this.a.lc()};var oNi=V(kr,"AbstractMultimap/Entries",749);G(750,749,Bh,N5e),v.Nc=function(){return this.a.lc()},v.Fb=function(n){return FMe(this,n)},v.Hb=function(){return U9t(this)};var lNi=V(kr,"AbstractMultimap/EntrySet",750);G(751,31,fx,DAe),v.$b=function(){this.a.$b()},v.Hc=function(n){return W1n(this.a,n)},v.Kc=function(){return this.a.nc()},v.gc=function(){return this.a.d},v.Nc=function(){return this.a.oc()};var cNi=V(kr,"AbstractMultimap/Values",751);G(2087,31,{849:1,20:1,31:1,16:1}),v.Jc=function(n){mi(n),f4(this).Jc(new vTt(n))},v.Nc=function(){var n;return n=f4(this).Nc(),Ife(n,new H,64|n.yd()&1296,this.a.d)},v.Fc=function(n){return U5e(),!0},v.Gc=function(n){return mi(this),mi(n),He(n,552)?Zfn(b(n,849)):!n.dc()&&Hhe(this,n.Kc())},v.Hc=function(n){var s;return s=b(ZT(GA(this.a),n),16),(!s?0:s.gc())>0},v.Fb=function(n){return _xn(this,n)},v.Hb=function(){return Da(f4(this))},v.dc=function(){return f4(this).dc()},v.Mc=function(n){return dGt(this,n,1)>0},v.Ib=function(){return hc(f4(this))};var uNi=V(kr,"AbstractMultiset",2087);G(2089,2068,Bh),v.$b=function(){SX(this.a.a)},v.Hc=function(n){var s,u;if(He(n,504)){if(u=b(n,425),b(u.a.md(),16).gc()<=0)return!1;return s=r7t(this.a,u.a.ld()),s==b(u.a.md(),16).gc()}return!1},v.Mc=function(n){var s,u,f,g;if(He(n,504)){if(u=b(n,425),s=u.a.ld(),f=b(u.a.md(),16).gc(),f!=0)return g=this.a,uTn(g,s,f)}return!1};var hNi=V(kr,"Multisets/EntrySet",2089);G(1139,2089,Bh,tTt),v.Kc=function(){return new Qkt(HOt(GA(this.a.a)).Kc())},v.gc=function(){return GA(this.a.a).gc()};var dNi=V(kr,"AbstractMultiset/EntrySet",1139);G(627,742,nE),v.hc=function(){return this.pd()},v.jc=function(){return this.qd()},v.cc=function(n){return this.rd(n)},v.fc=function(n){return this.sd(n)},v.Zb=function(){var n;return n=this.f,!n?this.f=this.ac():n},v.qd=function(){return Hr(),Hr(),bJ},v.Fb=function(n){return Ede(this,n)},v.rd=function(n){return b(_a(this,n),21)},v.sd=function(n){return b(IU(this,n),21)},v.mc=function(n){return Hr(),new ZI(b(n,21))},v.pc=function(n,s){return new qIt(this,n,b(s,21))};var fNi=V(kr,"AbstractSetMultimap",627);G(1723,627,nE),v.hc=function(){return new by(this.b)},v.pd=function(){return new by(this.b)},v.jc=function(){return hOe(new by(this.b))},v.qd=function(){return hOe(new by(this.b))},v.cc=function(n){return b(b(_a(this,n),21),87)},v.rd=function(n){return b(b(_a(this,n),21),87)},v.fc=function(n){return b(b(IU(this,n),21),87)},v.sd=function(n){return b(b(IU(this,n),21),87)},v.mc=function(n){return He(n,277)?hOe(b(n,277)):(Hr(),new yIe(b(n,87)))},v.Zb=function(){var n;return n=this.f,!n?this.f=He(this.c,139)?new ZM(this,b(this.c,139)):He(this.c,133)?new C$(this,b(this.c,133)):new i6(this,this.c):n},v.pc=function(n,s){return He(s,277)?new IRt(this,n,b(s,277)):new LIe(this,n,b(s,87))};var pNi=V(kr,"AbstractSortedSetMultimap",1723);G(1724,1723,nE),v.Zb=function(){var n;return n=this.f,b(b(!n?this.f=He(this.c,139)?new ZM(this,b(this.c,139)):He(this.c,133)?new C$(this,b(this.c,133)):new i6(this,this.c):n,133),139)},v.ec=function(){var n;return n=this.i,b(b(!n?this.i=He(this.c,139)?new n6(this,b(this.c,139)):He(this.c,133)?new e$(this,b(this.c,133)):new h4(this,this.c):n,87),277)},v.bc=function(){return He(this.c,139)?new n6(this,b(this.c,139)):He(this.c,133)?new e$(this,b(this.c,133)):new h4(this,this.c)};var gNi=V(kr,"AbstractSortedKeySortedSetMultimap",1724);G(2109,1,{2046:1}),v.Fb=function(n){return q2n(this,n)},v.Hb=function(){var n;return vLe((n=this.g,!n?this.g=new wle(this):n))},v.Ib=function(){var n;return J$t((n=this.f,!n?this.f=new pIe(this):n))};var mNi=V(kr,"AbstractTable",2109);G(679,Mg,Bh,wle),v.$b=function(){c3t()},v.Hc=function(n){var s,u;if(He(n,479))return s=b(n,697),u=b(ZT(pNt(this.a),Uv(s.c.e,s.b)),85),!!u&&YLe(u.vc(),new pw(Uv(s.c.c,s.a),jA(s.c,s.b,s.a)));return!1},v.Kc=function(){return Khn(this.a)},v.Mc=function(n){var s,u;if(He(n,479))return s=b(n,697),u=b(ZT(pNt(this.a),Uv(s.c.e,s.b)),85),!!u&&Cbn(u.vc(),new pw(Uv(s.c.c,s.a),jA(s.c,s.b,s.a)));return!1},v.gc=function(){return bOt(this.a)},v.Nc=function(){return tpn(this.a)};var bNi=V(kr,"AbstractTable/CellSet",679);G(2025,31,fx,nTt),v.$b=function(){c3t()},v.Hc=function(n){return BEn(this.a,n)},v.Kc=function(){return Xhn(this.a)},v.gc=function(){return bOt(this.a)},v.Nc=function(){return A7t(this.a)};var yNi=V(kr,"AbstractTable/Values",2025);G(1697,1696,nE);var vNi=V(kr,"ArrayListMultimapGwtSerializationDependencies",1697);G(520,1697,nE,ece,LOe),v.hc=function(){return new Gu(this.a)},v.a=0;var _Ni=V(kr,"ArrayListMultimap",520);G(678,2109,{678:1,2046:1,3:1},xGt);var ENi=V(kr,"ArrayTable",678);G(2021,399,IO,cIt),v.Xb=function(n){return new TLe(this.a,n)};var wNi=V(kr,"ArrayTable/1",2021);G(2022,1,{},QSt),v.td=function(n){return new TLe(this.a,n)};var SNi=V(kr,"ArrayTable/1methodref$getCell$Type",2022);G(2110,1,{697:1}),v.Fb=function(n){var s;if(n===this)return!0;if(He(n,479))return s=b(n,697),Sm(Uv(this.c.e,this.b),Uv(s.c.e,s.b))&&Sm(Uv(this.c.c,this.a),Uv(s.c.c,s.a))&&Sm(jA(this.c,this.b,this.a),jA(s.c,s.b,s.a));return!1},v.Hb=function(){return RU(Te(we(ao,1),en,1,5,[Uv(this.c.e,this.b),Uv(this.c.c,this.a),jA(this.c,this.b,this.a)]))},v.Ib=function(){return"("+Uv(this.c.e,this.b)+","+Uv(this.c.c,this.a)+")="+jA(this.c,this.b,this.a)};var TNi=V(kr,"Tables/AbstractCell",2110);G(479,2110,{479:1,697:1},TLe),v.a=0,v.b=0,v.d=0;var xNi=V(kr,"ArrayTable/2",479);G(2024,1,{},ZSt),v.td=function(n){return J8t(this.a,n)};var CNi=V(kr,"ArrayTable/2methodref$getValue$Type",2024);G(2023,399,IO,uIt),v.Xb=function(n){return J8t(this.a,n)};var kNi=V(kr,"ArrayTable/3",2023);G(2077,2065,iS),v.$b=function(){uK(this.kc())},v.vc=function(){return new dTt(this)},v.lc=function(){return new jNt(this.kc(),this.gc())};var ANi=V(kr,"Maps/IteratorBasedAbstractMap",2077);G(842,2077,iS),v.$b=function(){throw ve(new bi)},v._b=function(n){return A3t(this.c,n)},v.kc=function(){return new hIt(this,this.c.b.c.gc())},v.lc=function(){return Sue(this.c.b.c.gc(),16,new JSt(this))},v.xc=function(n){var s=b(JM(this.c,n),17);return!s?null:this.vd(s.a)},v.dc=function(){return this.c.b.c.dc()},v.ec=function(){return Oue(this.c)},v.zc=function(n,s){var u=b(JM(this.c,n),17);if(!u)throw ve(new dn(this.ud()+" "+n+" not in "+Oue(this.c)));return this.wd(u.a,s)},v.Bc=function(n){throw ve(new bi)},v.gc=function(){return this.c.b.c.gc()};var RNi=V(kr,"ArrayTable/ArrayMap",842);G(2020,1,{},JSt),v.td=function(n){return mNt(this.a,n)};var INi=V(kr,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020);G(2018,358,Npe,eAt),v.ld=function(){return csn(this.a,this.b)},v.md=function(){return this.a.vd(this.b)},v.nd=function(n){return this.a.wd(this.b,n)},v.b=0;var ONi=V(kr,"ArrayTable/ArrayMap/1",2018);G(2019,399,IO,hIt),v.Xb=function(n){return mNt(this.a,n)};var NNi=V(kr,"ArrayTable/ArrayMap/2",2019);G(2017,842,iS,nNt),v.ud=function(){return"Column"},v.vd=function(n){return jA(this.b,this.a,n)},v.wd=function(n,s){return CPt(this.b,this.a,n,s)},v.a=0;var LNi=V(kr,"ArrayTable/Row",2017);G(843,842,iS,pIe),v.vd=function(n){return new nNt(this.a,n)},v.zc=function(n,s){return b(s,85),Inn()},v.wd=function(n,s){return b(s,85),Onn()},v.ud=function(){return"Row"};var MNi=V(kr,"ArrayTable/RowMap",843);G(1157,1,ef,tAt),v.Ad=function(n){return(this.a.yd()&-262&n)!=0},v.yd=function(){return this.a.yd()&-262},v.zd=function(){return this.a.zd()},v.Nb=function(n){this.a.Nb(new nAt(n,this.b))},v.Bd=function(n){return this.a.Bd(new rAt(n,this.b))};var DNi=V(kr,"CollectSpliterators/1",1157);G(1158,1,Ln,rAt),v.Cd=function(n){this.a.Cd(this.b.Kb(n))};var PNi=V(kr,"CollectSpliterators/1/lambda$0$Type",1158);G(1159,1,Ln,nAt),v.Cd=function(n){this.a.Cd(this.b.Kb(n))};var BNi=V(kr,"CollectSpliterators/1/lambda$1$Type",1159);G(1154,1,ef,C6t),v.Ad=function(n){return((16464|this.b)&n)!=0},v.yd=function(){return 16464|this.b},v.zd=function(){return this.a.zd()},v.Nb=function(n){this.a.Qe(new aAt(n,this.c))},v.Bd=function(n){return this.a.Re(new iAt(n,this.c))},v.b=0;var FNi=V(kr,"CollectSpliterators/1WithCharacteristics",1154);G(1155,1,vG,iAt),v.Dd=function(n){this.a.Cd(this.b.td(n))};var $Ni=V(kr,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155);G(1156,1,vG,aAt),v.Dd=function(n){this.a.Cd(this.b.td(n))};var UNi=V(kr,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156);G(1150,1,ef),v.Ad=function(n){return(this.a&n)!=0},v.yd=function(){return this.a},v.zd=function(){return!!this.e&&(this.b=rIe(this.b,this.e.zd())),rIe(this.b,0)},v.Nb=function(n){if(this.e)this.e.Nb(n),this.e=null;this.c.Nb(new sAt(this,n)),this.b=0},v.Bd=function(n){while(!0){if(!!this.e&&this.e.Bd(n))return zM(this.b,_G)&&(this.b=bp(this.b,1)),!0;else this.e=null;if(!this.c.Bd(new iTt(this)))return!1}},v.a=0,v.b=0;var GNi=V(kr,"CollectSpliterators/FlatMapSpliterator",1150);G(1152,1,Ln,iTt),v.Cd=function(n){oon(this.a,n)};var zNi=V(kr,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152);G(1153,1,Ln,sAt),v.Cd=function(n){Nhn(this.a,this.b,n)};var VNi=V(kr,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153);G(1151,1150,ef,Y7t);var HNi=V(kr,"CollectSpliterators/FlatMapSpliteratorOfObject",1151);G(253,1,Lpe),v.Fd=function(n){return this.Ed(b(n,253))},v.Ed=function(n){var s;if(n==(Hle(),yme))return 1;if(n==(Vle(),bme))return-1;if(s=(aK(),bU(this.a,n.a)),s!=0)return s;return He(this,526)==He(n,526)?0:He(this,526)?1:-1},v.Id=function(){return this.a},v.Fb=function(n){return H7e(this,n)};var qNi=V(kr,"Cut",253);G(1823,253,Lpe,Hkt),v.Ed=function(n){return n==this?0:1},v.Gd=function(n){throw ve(new f5e)},v.Hd=function(n){n.a+="+∞)"},v.Id=function(){throw ve(new zl(Jqt))},v.Hb=function(){return fb(),R7e(this)},v.Jd=function(n){return!1},v.Ib=function(){return"+∞"};var bme,YNi=V(kr,"Cut/AboveAll",1823);G(526,253,{253:1,526:1,3:1,34:1},bIt),v.Gd=function(n){pu((n.a+="(",n),this.a)},v.Hd=function(n){qv(pu(n,this.a),93)},v.Hb=function(){return~Da(this.a)},v.Jd=function(n){return aK(),bU(this.a,n)<0},v.Ib=function(){return"/"+this.a+"\\"};var WNi=V(kr,"Cut/AboveValue",526);G(1822,253,Lpe,Vkt),v.Ed=function(n){return n==this?0:-1},v.Gd=function(n){n.a+="(-∞"},v.Hd=function(n){throw ve(new f5e)},v.Id=function(){throw ve(new zl(Jqt))},v.Hb=function(){return fb(),R7e(this)},v.Jd=function(n){return!0},v.Ib=function(){return"-∞"};var yme,jNi=V(kr,"Cut/BelowAll",1822);G(1824,253,Lpe,yIt),v.Gd=function(n){pu((n.a+="[",n),this.a)},v.Hd=function(n){qv(pu(n,this.a),41)},v.Hb=function(){return Da(this.a)},v.Jd=function(n){return aK(),bU(this.a,n)<=0},v.Ib=function(){return"\\"+this.a+"/"};var KNi=V(kr,"Cut/BelowValue",1824);G(547,1,T1),v.Jc=function(n){Vo(this,n)},v.Ib=function(){return Wbn(b(LK(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())};var XNi=V(kr,"FluentIterable",547);G(442,547,T1,qM),v.Kc=function(){return new Nn(Mn(this.a.Kc(),new L))};var QNi=V(kr,"FluentIterable/2",442);G(1059,547,T1,CRt),v.Kc=function(){return m1(this)};var ZNi=V(kr,"FluentIterable/3",1059);G(724,399,IO,gIe),v.Xb=function(n){return this.a[n].Kc()};var JNi=V(kr,"FluentIterable/3/1",724);G(2070,1,{}),v.Ib=function(){return hc(this.Kd().b)};var eLi=V(kr,"ForwardingObject",2070);G(2071,2070,eYt),v.Kd=function(){return this.Ld()},v.Jc=function(n){Vo(this,n)},v.Lc=function(){return this.Oc()},v.Nc=function(){return new Gr(this,0)},v.Oc=function(){return new Pr(null,this.Nc())},v.Fc=function(n){return this.Ld(),I3t()},v.Gc=function(n){return this.Ld(),O3t()},v.$b=function(){this.Ld(),N3t()},v.Hc=function(n){return this.Ld().Hc(n)},v.Ic=function(n){return this.Ld().Ic(n)},v.dc=function(){return this.Ld().b.dc()},v.Kc=function(){return this.Ld().Kc()},v.Mc=function(n){return this.Ld(),L3t()},v.gc=function(){return this.Ld().b.gc()},v.Pc=function(){return this.Ld().Pc()},v.Qc=function(n){return this.Ld().Qc(n)};var tLi=V(kr,"ForwardingCollection",2071);G(2078,31,zDe),v.Kc=function(){return this.Od()},v.Fc=function(n){throw ve(new bi)},v.Gc=function(n){throw ve(new bi)},v.Md=function(){var n=this.c;return!n?this.c=this.Nd():n},v.$b=function(){throw ve(new bi)},v.Hc=function(n){return n!=null&&JT(this,n,!1)},v.Nd=function(){switch(this.gc()){case 0:return Rw(),Rw(),vme;case 1:return Rw(),new Tue(mi(this.Od().Pb()));default:return new j6e(this,this.Pc())}},v.Mc=function(n){throw ve(new bi)};var rLi=V(kr,"ImmutableCollection",2078);G(727,2078,zDe,h5e),v.Kc=function(){return KA(this.a.Kc())},v.Hc=function(n){return n!=null&&this.a.Hc(n)},v.Ic=function(n){return this.a.Ic(n)},v.dc=function(){return this.a.dc()},v.Od=function(){return KA(this.a.Kc())},v.gc=function(){return this.a.gc()},v.Pc=function(){return this.a.Pc()},v.Qc=function(n){return this.a.Qc(n)},v.Ib=function(){return hc(this.a)};var nLi=V(kr,"ForwardingImmutableCollection",727);G(307,2078,OO),v.Kc=function(){return this.Od()},v.ed=function(){return this.Pd(0)},v.fd=function(n){return this.Pd(n)},v.jd=function(n){q2(this,n)},v.Nc=function(){return new Gr(this,16)},v.kd=function(n,s){return this.Qd(n,s)},v.bd=function(n,s){throw ve(new bi)},v.cd=function(n,s){throw ve(new bi)},v.Md=function(){return this},v.Fb=function(n){return lxn(this,n)},v.Hb=function(){return r1n(this)},v.dd=function(n){return n==null?-1:x_n(this,n)},v.Od=function(){return this.Pd(0)},v.Pd=function(n){return rue(this,n)},v.gd=function(n){throw ve(new bi)},v.hd=function(n,s){throw ve(new bi)},v.Qd=function(n,s){var u;return HX((u=new mAt(this),new Sy(u,n,s)))};var vme,iLi=V(kr,"ImmutableList",307);G(2105,307,OO),v.Kc=function(){return KA(this.Rd().Kc())},v.kd=function(n,s){return HX(this.Rd().kd(n,s))},v.Hc=function(n){return n!=null&&this.Rd().Hc(n)},v.Ic=function(n){return this.Rd().Ic(n)},v.Fb=function(n){return da(this.Rd(),n)},v.Xb=function(n){return Uv(this,n)},v.Hb=function(){return Da(this.Rd())},v.dd=function(n){return this.Rd().dd(n)},v.dc=function(){return this.Rd().dc()},v.Od=function(){return KA(this.Rd().Kc())},v.gc=function(){return this.Rd().gc()},v.Qd=function(n,s){return HX(this.Rd().kd(n,s))},v.Pc=function(){return this.Rd().Qc(mt(ao,en,1,this.Rd().gc(),5,1))},v.Qc=function(n){return this.Rd().Qc(n)},v.Ib=function(){return hc(this.Rd())};var aLi=V(kr,"ForwardingImmutableList",2105);G(729,1,NO),v.vc=function(){return D2(this)},v.wc=function(n){k8(this,n)},v.ec=function(){return Oue(this)},v.yc=function(n,s,u){return Ude(this,n,s,u)},v.Cc=function(){return this.Vd()},v.$b=function(){throw ve(new bi)},v._b=function(n){return this.xc(n)!=null},v.uc=function(n){return this.Vd().Hc(n)},v.Td=function(){return new Z4t(this)},v.Ud=function(){return new J4t(this)},v.Fb=function(n){return j1n(this,n)},v.Hb=function(){return D2(this).Hb()},v.dc=function(){return this.gc()==0},v.zc=function(n,s){return Rnn()},v.Bc=function(n){throw ve(new bi)},v.Ib=function(){return Dwn(this)},v.Vd=function(){if(this.e)return this.e;return this.e=this.Ud()},v.c=null,v.d=null,v.e=null;var CXt,sLi=V(kr,"ImmutableMap",729);G(730,729,NO),v._b=function(n){return A3t(this,n)},v.uc=function(n){return wAt(this.b,n)},v.Sd=function(){return wBt(new rTt(this))},v.Td=function(){return wBt(FNt(this.b))},v.Ud=function(){return wm(),new h5e(BNt(this.b))},v.Fb=function(n){return SAt(this.b,n)},v.xc=function(n){return JM(this,n)},v.Hb=function(){return Da(this.b.c)},v.dc=function(){return this.b.c.dc()},v.gc=function(){return this.b.c.gc()},v.Ib=function(){return hc(this.b.c)};var oLi=V(kr,"ForwardingImmutableMap",730);G(2072,2071,Mpe),v.Kd=function(){return this.Wd()},v.Ld=function(){return this.Wd()},v.Nc=function(){return new Gr(this,1)},v.Fb=function(n){return n===this||this.Wd().Fb(n)},v.Hb=function(){return this.Wd().Hb()};var lLi=V(kr,"ForwardingSet",2072);G(1085,2072,Mpe,rTt),v.Kd=function(){return w6(this.a.b)},v.Ld=function(){return w6(this.a.b)},v.Hc=function(n){if(He(n,44)&&b(n,44).ld()==null)return!1;try{return EAt(w6(this.a.b),n)}catch(s){if(s=Qa(s),He(s,212))return!1;else throw ve(s)}},v.Wd=function(){return w6(this.a.b)},v.Qc=function(n){var s=wLt(w6(this.a.b),n);return w6(this.a.b).b.gc()=0?"+":"")+(u/60|0),s=Fj(d.Math.abs(u)%60),(hUt(),qXt)[this.q.getDay()]+" "+YXt[this.q.getMonth()]+" "+Fj(this.q.getDate())+" "+Fj(this.q.getHours())+":"+Fj(this.q.getMinutes())+":"+Fj(this.q.getSeconds())+" GMT"+n+s+" "+this.q.getFullYear()};var pJ=V(jn,"Date",206);G(2015,206,cYt,M$t),v.a=!1,v.b=0,v.c=0,v.d=0,v.e=0,v.f=0,v.g=!1,v.i=0,v.j=0,v.k=0,v.n=0,v.o=0,v.p=0;var RMi=V("com.google.gwt.i18n.shared.impl","DateRecord",2015);G(2064,1,{}),v.pe=function(){return null},v.qe=function(){return null},v.re=function(){return null},v.se=function(){return null},v.te=function(){return null};var IMi=V(g5,"JSONValue",2064);G(221,2064,{221:1},C2,BAe),v.Fb=function(n){if(!He(n,221))return!1;return DOe(this.a,b(n,221).a)},v.oe=function(){return enn},v.Hb=function(){return TOe(this.a)},v.pe=function(){return this},v.Ib=function(){var n,s,u;u=new Vd("[");for(s=0,n=this.a.length;s0&&(u.a+=","),pu(u,YT(this,s));return u.a+="]",u.a};var OMi=V(g5,"JSONArray",221);G(493,2064,{493:1},FAe),v.oe=function(){return tnn},v.qe=function(){return this},v.Ib=function(){return nn(),""+this.a},v.a=!1;var LXt,MXt,NMi=V(g5,"JSONBoolean",493);G(997,63,Lb,Zkt);var LMi=V(g5,"JSONException",997);G(1036,2064,{},W),v.oe=function(){return rnn},v.Ib=function(){return mh};var DXt,MMi=V(g5,"JSONNull",1036);G(263,2064,{263:1},MW),v.Fb=function(n){if(!He(n,263))return!1;return this.a==b(n,263).a},v.oe=function(){return Zrn},v.Hb=function(){return CA(this.a)},v.re=function(){return this},v.Ib=function(){return this.a+""},v.a=0;var DMi=V(g5,"JSONNumber",263);G(190,2064,{190:1},bA,VF),v.Fb=function(n){if(!He(n,190))return!1;return DOe(this.a,b(n,190).a)},v.oe=function(){return Jrn},v.Hb=function(){return TOe(this.a)},v.se=function(){return this},v.Ib=function(){var n,s,u,f,g,_,S;S=new Vd("{"),n=!0,_=ide(this,mt(or,Bt,2,0,6,1));for(u=_,f=0,g=u.length;f=0?":"+this.c:"")+")"},v.c=0;var jFe=V(Nc,"StackTraceElement",319);xXt={3:1,484:1,34:1,2:1};var or=V(Nc,VDe,2);G(111,427,{484:1},gy,EM,pp);var r8i=V(Nc,"StringBuffer",111);G(104,427,{484:1},Dv,KC,Vd);var n8i=V(Nc,"StringBuilder",104);G(702,77,n0e,G5e);var i8i=V(Nc,"StringIndexOutOfBoundsException",702);G(2145,1,{});var $Xt;G(48,63,{3:1,103:1,63:1,82:1,48:1},bi,fy);var a8i=V(Nc,"UnsupportedOperationException",48);G(247,242,{3:1,34:1,242:1,247:1},LU,Z5e),v.Fd=function(n){return iHt(this,b(n,247))},v.ue=function(){return ix(NHt(this))},v.Fb=function(n){var s;if(this===n)return!0;if(He(n,247))return s=b(n,247),this.e==s.e&&iHt(this,s)==0;return!1},v.Hb=function(){var n;if(this.b!=0)return this.b;if(this.a<54)return n=Vc(this.f),this.b=gi(io(n,-1)),this.b=33*this.b+gi(io(Cw(n,32),-1)),this.b=17*this.b+Ks(this.e),this.b;return this.b=17*bBt(this.c)+Ks(this.e),this.b},v.Ib=function(){return NHt(this)},v.a=0,v.b=0,v.d=0,v.e=0,v.f=0;var UXt,gE,KFe,XFe,QFe,ZFe,JFe,e$e,kme=V("java.math","BigDecimal",247);G(92,242,{3:1,34:1,242:1,92:1},_b,c7t,B2,yFt,Gv),v.Fd=function(n){return pFt(this,b(n,92))},v.ue=function(){return ix(Rpe(this,0))},v.Fb=function(n){return d7e(this,n)},v.Hb=function(){return bBt(this)},v.Ib=function(){return Rpe(this,0)},v.b=-2,v.c=0,v.d=0,v.e=0;var GXt,gJ,zXt,Ame,mJ,jD,Q4=V("java.math","BigInteger",92),VXt,HXt,k5,KD;G(498,2065,iS),v.$b=function(){Jh(this)},v._b=function(n){return Zu(this,n)},v.uc=function(n){return ZPt(this,n,this.i)||ZPt(this,n,this.f)},v.vc=function(){return new R2(this)},v.xc=function(n){return An(this,n)},v.zc=function(n,s){return Ki(this,n,s)},v.Bc=function(n){return WA(this,n)},v.gc=function(){return SM(this)},v.g=0;var s8i=V(jn,"AbstractHashMap",498);G(267,Mg,Bh,R2),v.$b=function(){this.a.$b()},v.Hc=function(n){return $7t(this,n)},v.Kc=function(){return new W2(this.a)},v.Mc=function(n){var s;if($7t(this,n))return s=b(n,44).ld(),this.a.Bc(s),!0;return!1},v.gc=function(){return this.a.gc()};var o8i=V(jn,"AbstractHashMap/EntrySet",267);G(268,1,To,W2),v.Nb=function(n){Go(this,n)},v.Pb=function(){return Hw(this)},v.Ob=function(){return this.b},v.Qb=function(){pDt(this)},v.b=!1,v.d=0;var l8i=V(jn,"AbstractHashMap/EntrySetIterator",268);G(426,1,To,cM),v.Nb=function(n){Go(this,n)},v.Ob=function(){return lce(this)},v.Pb=function(){return vOe(this)},v.Qb=function(){Nd(this)},v.b=0,v.c=-1;var c8i=V(jn,"AbstractList/IteratorImpl",426);G(98,426,S1,Mo),v.Qb=function(){Nd(this)},v.Rb=function(n){DT(this,n)},v.Sb=function(){return this.b>0},v.Tb=function(){return this.b},v.Ub=function(){return Pn(this.b>0),this.a.Xb(this.c=--this.b)},v.Vb=function(){return this.b-1},v.Wb=function(n){LT(this.c!=-1),this.a.hd(this.c,n)};var u8i=V(jn,"AbstractList/ListIteratorImpl",98);G(244,56,LO,Sy),v.bd=function(n,s){zT(n,this.b),this.c.bd(this.a+n,s),++this.b},v.Xb=function(n){return qr(n,this.b),this.c.Xb(this.a+n)},v.gd=function(n){var s;return qr(n,this.b),s=this.c.gd(this.a+n),--this.b,s},v.hd=function(n,s){return qr(n,this.b),this.c.hd(this.a+n,s)},v.gc=function(){return this.b},v.a=0,v.b=0;var h8i=V(jn,"AbstractList/SubList",244);G(266,Mg,Bh,A2),v.$b=function(){this.a.$b()},v.Hc=function(n){return this.a._b(n)},v.Kc=function(){var n;return n=this.a.vc().Kc(),new PW(n)},v.Mc=function(n){if(this.a._b(n))return this.a.Bc(n),!0;return!1},v.gc=function(){return this.a.gc()};var d8i=V(jn,"AbstractMap/1",266);G(541,1,To,PW),v.Nb=function(n){Go(this,n)},v.Ob=function(){return this.a.Ob()},v.Pb=function(){var n;return n=b(this.a.Pb(),44),n.ld()},v.Qb=function(){this.a.Qb()};var f8i=V(jn,"AbstractMap/1/1",541);G(231,31,fx,hb),v.$b=function(){this.a.$b()},v.Hc=function(n){return this.a.uc(n)},v.Kc=function(){var n;return n=this.a.vc().Kc(),new TT(n)},v.gc=function(){return this.a.gc()};var p8i=V(jn,"AbstractMap/2",231);G(301,1,To,TT),v.Nb=function(n){Go(this,n)},v.Ob=function(){return this.a.Ob()},v.Pb=function(){var n;return n=b(this.a.Pb(),44),n.md()},v.Qb=function(){this.a.Qb()};var g8i=V(jn,"AbstractMap/2/1",301);G(494,1,{494:1,44:1}),v.Fb=function(n){var s;if(!He(n,44))return!1;return s=b(n,44),zc(this.d,s.ld())&&zc(this.e,s.md())},v.ld=function(){return this.d},v.md=function(){return this.e},v.Hb=function(){return o4(this.d)^o4(this.e)},v.nd=function(n){return UIe(this,n)},v.Ib=function(){return this.d+"="+this.e};var m8i=V(jn,"AbstractMap/AbstractEntry",494);G(397,494,{494:1,397:1,44:1},pj);var b8i=V(jn,"AbstractMap/SimpleEntry",397);G(2082,1,s0e),v.Fb=function(n){var s;if(!He(n,44))return!1;return s=b(n,44),zc(this.ld(),s.ld())&&zc(this.md(),s.md())},v.Hb=function(){return o4(this.ld())^o4(this.md())},v.Ib=function(){return this.ld()+"="+this.md()};var y8i=V(jn,Qqt,2082);G(2090,2065,UDe),v.Xc=function(n){return tce(this.Ee(n))},v.tc=function(n){return qMt(this,n)},v._b=function(n){return GIe(this,n)},v.vc=function(){return new Rle(this)},v.Tc=function(){return aNt(this.Ge())},v.Yc=function(n){return tce(this.He(n))},v.xc=function(n){var s=n;return Jl(this.Fe(s))},v.$c=function(n){return tce(this.Ie(n))},v.ec=function(){return new ATt(this)},v.Vc=function(){return aNt(this.Je())},v._c=function(n){return tce(this.Ke(n))};var v8i=V(jn,"AbstractNavigableMap",2090);G(629,Mg,Bh,Rle),v.Hc=function(n){return He(n,44)&&qMt(this.b,b(n,44))},v.Kc=function(){return this.b.De()},v.Mc=function(n){var s;if(He(n,44))return s=b(n,44),this.b.Le(s);return!1},v.gc=function(){return this.b.gc()};var _8i=V(jn,"AbstractNavigableMap/EntrySet",629);G(1146,Mg,GDe,ATt),v.Nc=function(){return new dj(this)},v.$b=function(){this.a.$b()},v.Hc=function(n){return GIe(this.a,n)},v.Kc=function(){var n=this.a.vc().b.De();return new RTt(n)},v.Mc=function(n){if(GIe(this.a,n))return this.a.Bc(n),!0;return!1},v.gc=function(){return this.a.gc()};var E8i=V(jn,"AbstractNavigableMap/NavigableKeySet",1146);G(1147,1,To,RTt),v.Nb=function(n){Go(this,n)},v.Ob=function(){return lce(this.a.a)},v.Pb=function(){var n=AIt(this.a);return n.ld()},v.Qb=function(){M6t(this.a)};var w8i=V(jn,"AbstractNavigableMap/NavigableKeySet/1",1147);G(2103,31,fx),v.Fc=function(n){return MA(gO(this,n),DO),!0},v.Gc=function(n){return vn(n),D$(n!=this,"Can't add a queue to itself"),Po(this,n)},v.$b=function(){while(qhe(this)!=null);};var S8i=V(jn,"AbstractQueue",2103);G(310,31,{4:1,20:1,31:1,16:1},u4,M7t),v.Fc=function(n){return qOe(this,n),!0},v.$b=function(){QOe(this)},v.Hc=function(n){return _Pt(new d8(this),n)},v.dc=function(){return _M(this)},v.Kc=function(){return new d8(this)},v.Mc=function(n){return Bdn(new d8(this),n)},v.gc=function(){return this.c-this.b&this.a.length-1},v.Nc=function(){return new Gr(this,272)},v.Qc=function(n){var s=this.c-this.b&this.a.length-1;return n.lengths&&ls(n,s,null),n},v.b=0,v.c=0;var T8i=V(jn,"ArrayDeque",310);G(459,1,To,d8),v.Nb=function(n){Go(this,n)},v.Ob=function(){return this.a!=this.b},v.Pb=function(){return VX(this)},v.Qb=function(){m9t(this)},v.a=0,v.b=0,v.c=-1;var x8i=V(jn,"ArrayDeque/IteratorImpl",459);G(13,56,dYt,Ut,Gu,Zh),v.bd=function(n,s){xw(this,n,s)},v.Fc=function(n){return Gt(this,n)},v.cd=function(n,s){return FLe(this,n,s)},v.Gc=function(n){return Us(this,n)},v.$b=function(){xT(this.c,0)},v.Hc=function(n){return rc(this,n,0)!=-1},v.Jc=function(n){Ju(this,n)},v.Xb=function(n){return nr(this,n)},v.dd=function(n){return rc(this,n,0)},v.dc=function(){return this.c.length==0},v.Kc=function(){return new me(this)},v.gd=function(n){return xy(this,n)},v.Mc=function(n){return fh(this,n)},v.ce=function(n,s){n7t(this,n,s)},v.hd=function(n,s){return Lf(this,n,s)},v.gc=function(){return this.c.length},v.jd=function(n){ks(this,n)},v.Pc=function(){return sK(this.c)},v.Qc=function(n){return Og(this,n)};var C6n=V(jn,"ArrayList",13);G(7,1,To,me),v.Nb=function(n){Go(this,n)},v.Ob=function(){return _c(this)},v.Pb=function(){return ge(this)},v.Qb=function(){o8(this)},v.a=0,v.b=-1;var C8i=V(jn,"ArrayList/1",7);G(2112,d.Function,{},ie),v.Me=function(n,s){return Ra(n,s)},G(151,56,fYt,Qh),v.Hc=function(n){return b9t(this,n)!=-1},v.Jc=function(n){var s,u,f,g;vn(n);for(u=this.a,f=0,g=u.length;f0)throw ve(new dn(QDe+n+" greater than "+this.e));return this.f.Te()?CLt(this.c,this.b,this.a,n,s):i7t(this.c,n,s)},v.zc=function(n,s){if(!vfe(this.c,this.f,n,this.b,this.a,this.e,this.d))throw ve(new dn(n+" outside the range "+this.b+" to "+this.e));return BPt(this.c,n,s)},v.Bc=function(n){var s=n;if(!vfe(this.c,this.f,s,this.b,this.a,this.e,this.d))return null;return kLt(this.c,s)},v.Le=function(n){return CK(this,n.ld())&&mNe(this.c,n)},v.gc=function(){var n,s,u;if(this.f.Te()?this.a?s=lO(this.c,this.b,!0):s=lO(this.c,this.b,!1):s=CNe(this.c),!(!!s&&CK(this,s.d)?s:null))return 0;n=0;for(u=new ade(this.c,this.f,this.b,this.a,this.e,this.d);lce(u.a);u.b=b(vOe(u.a),44))++n;return n},v.ad=function(n,s){if(this.f.Te()&&this.c.a.Ne(n,this.b)<0)throw ve(new dn(QDe+n+mYt+this.b));return this.f.Ue()?CLt(this.c,n,s,this.e,this.d):a7t(this.c,n,s)},v.a=!1,v.d=!1;var jDi=V(jn,"TreeMap/SubMap",631);G(304,22,u0e,fj),v.Te=function(){return!1},v.Ue=function(){return!1};var Ome,Nme,Lme,Mme,yJ=ei(jn,"TreeMap/SubMapType",304,li,upn,_on);G(1143,304,u0e,NRt),v.Ue=function(){return!0};var KDi=ei(jn,"TreeMap/SubMapType/1",1143,yJ,null,null);G(1144,304,u0e,GRt),v.Te=function(){return!0},v.Ue=function(){return!0};var XDi=ei(jn,"TreeMap/SubMapType/2",1144,yJ,null,null);G(1145,304,u0e,ORt),v.Te=function(){return!0};var QDi=ei(jn,"TreeMap/SubMapType/3",1145,yJ,null,null),ZXt;G(157,Mg,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},m5e,by,YI),v.Nc=function(){return new dj(this)},v.Fc=function(n){return F$(this,n)},v.$b=function(){this.a.$b()},v.Hc=function(n){return this.a._b(n)},v.Kc=function(){return this.a.ec().Kc()},v.Mc=function(n){return Jce(this,n)},v.gc=function(){return this.a.gc()};var N6n=V(jn,"TreeSet",157);G(1082,1,{},LTt),v.Ve=function(n,s){return Bsn(this.a,n,s)};var ZDi=V(h0e,"BinaryOperator/lambda$0$Type",1082);G(1083,1,{},MTt),v.Ve=function(n,s){return Fsn(this.a,n,s)};var JDi=V(h0e,"BinaryOperator/lambda$1$Type",1083);G(952,1,{},Vt),v.Kb=function(n){return n};var e9i=V(h0e,"Function/lambda$0$Type",952);G(395,1,Si,WI),v.Mb=function(n){return!this.a.Mb(n)};var t9i=V(h0e,"Predicate/lambda$2$Type",395);G(581,1,{581:1});var JXt=V(yD,"Handler",581);G(2107,1,bG),v.xe=function(){return"DUMMY"},v.Ib=function(){return this.xe()};var o$e,r9i=V(yD,"Level",2107);G(1706,2107,bG,Xt),v.xe=function(){return"INFO"};var n9i=V(yD,"Level/LevelInfo",1706);G(1843,1,{},skt);var Dme,i9i=V(yD,"LogManager",1843);G(1896,1,bG,L6t),v.b=null;var a9i=V(yD,"LogRecord",1896);G(525,1,{525:1},The),v.e=!1;var eQt=!1,tQt=!1,Fg=!1,rQt=!1,nQt=!1,s9i=V(yD,"Logger",525);G(835,581,{581:1},rr);var o9i=V(yD,"SimpleConsoleLogHandler",835);G(108,22,{3:1,34:1,22:1,108:1},hce);var l$e,fc,Sx,Wl=ei(zs,"Collector/Characteristics",108,li,Qdn,Eon),iQt;G(758,1,{},Z6e);var l9i=V(zs,"CollectorImpl",758);G(1074,1,{},We),v.Ve=function(n,s){return Obn(b(n,213),b(s,213))};var c9i=V(zs,"Collectors/10methodref$merge$Type",1074);G(1075,1,{},Nt),v.Kb=function(n){return D7t(b(n,213))};var u9i=V(zs,"Collectors/11methodref$toString$Type",1075);G(1076,1,{},DTt),v.Kb=function(n){return nn(),YRe(n)?!0:!1};var h9i=V(zs,"Collectors/12methodref$test$Type",1076);G(144,1,{},ct),v.Yd=function(n,s){b(n,16).Fc(s)};var d9i=V(zs,"Collectors/20methodref$add$Type",144);G(146,1,{},bt),v.Xe=function(){return new Ut};var f9i=V(zs,"Collectors/21methodref$ctor$Type",146);G(359,1,{},Pe),v.Xe=function(){return new Rs};var p9i=V(zs,"Collectors/23methodref$ctor$Type",359);G(360,1,{},Ge),v.Yd=function(n,s){$s(b(n,49),s)};var g9i=V(zs,"Collectors/24methodref$add$Type",360);G(1069,1,{},qe),v.Ve=function(n,s){return CAt(b(n,15),b(s,16))};var m9i=V(zs,"Collectors/4methodref$addAll$Type",1069);G(1073,1,{},Ke),v.Yd=function(n,s){Eb(b(n,213),b(s,484))};var b9i=V(zs,"Collectors/9methodref$add$Type",1073);G(1072,1,{},X6t),v.Xe=function(){return new j2(this.a,this.b,this.c)};var y9i=V(zs,"Collectors/lambda$15$Type",1072);G(1077,1,{},Je),v.Xe=function(){var n;return n=new Ty,Dy(n,(nn(),!1),new Ut),Dy(n,!0,new Ut),n};var v9i=V(zs,"Collectors/lambda$22$Type",1077);G(1078,1,{},PTt),v.Xe=function(){return Te(we(ao,1),en,1,5,[this.a])};var _9i=V(zs,"Collectors/lambda$25$Type",1078);G(1079,1,{},BTt),v.Yd=function(n,s){nun(this.a,H2(n))};var E9i=V(zs,"Collectors/lambda$26$Type",1079);G(1080,1,{},FTt),v.Ve=function(n,s){return Oun(this.a,H2(n),H2(s))};var w9i=V(zs,"Collectors/lambda$27$Type",1080);G(1081,1,{},De),v.Kb=function(n){return H2(n)[0]};var S9i=V(zs,"Collectors/lambda$28$Type",1081);G(728,1,{},oe),v.Ve=function(n,s){return N6e(n,s)};var T9i=V(zs,"Collectors/lambda$4$Type",728);G(145,1,{},pe),v.Ve=function(n,s){return din(b(n,16),b(s,16))};var x9i=V(zs,"Collectors/lambda$42$Type",145);G(361,1,{},fe),v.Ve=function(n,s){return fin(b(n,49),b(s,49))};var C9i=V(zs,"Collectors/lambda$50$Type",361);G(362,1,{},be),v.Kb=function(n){return b(n,49)};var k9i=V(zs,"Collectors/lambda$51$Type",362);G(1068,1,{},$Tt),v.Yd=function(n,s){B1n(this.a,b(n,85),s)};var A9i=V(zs,"Collectors/lambda$7$Type",1068);G(1070,1,{},ze),v.Ve=function(n,s){return f1n(b(n,85),b(s,85),new qe)};var R9i=V(zs,"Collectors/lambda$8$Type",1070);G(1071,1,{},UTt),v.Kb=function(n){return uyn(this.a,b(n,85))};var I9i=V(zs,"Collectors/lambda$9$Type",1071);G(550,1,{}),v.$e=function(){h8(this)},v.d=!1;var O9i=V(zs,"TerminatableStream",550);G(827,550,ZDe,OIe),v.$e=function(){h8(this)};var N9i=V(zs,"DoubleStreamImpl",827);G(1847,736,ef,Q6t),v.Re=function(n){return f_n(this,b(n,189))},v.a=null;var L9i=V(zs,"DoubleStreamImpl/2",1847);G(1848,1,CG,GTt),v.Pe=function(n){san(this.a,n)};var M9i=V(zs,"DoubleStreamImpl/2/lambda$0$Type",1848);G(1845,1,CG,zTt),v.Pe=function(n){aan(this.a,n)};var D9i=V(zs,"DoubleStreamImpl/lambda$0$Type",1845);G(1846,1,CG,VTt),v.Pe=function(n){QBt(this.a,n)};var P9i=V(zs,"DoubleStreamImpl/lambda$2$Type",1846);G(1397,735,ef,UMt),v.Re=function(n){return Jfn(this,b(n,202))},v.a=0,v.b=0,v.c=0;var B9i=V(zs,"IntStream/5",1397);G(806,550,ZDe,NIe),v.$e=function(){h8(this)},v._e=function(){return Yv(this),this.a};var F9i=V(zs,"IntStreamImpl",806);G(807,550,ZDe,nRe),v.$e=function(){h8(this)},v._e=function(){return Yv(this),fIe(),QXt};var $9i=V(zs,"IntStreamImpl/Empty",807);G(1687,1,vG,HTt),v.Dd=function(n){oPt(this.a,n)};var U9i=V(zs,"IntStreamImpl/lambda$4$Type",1687),L6n=ns(zs,"Stream");G(26,550,{533:1,687:1,848:1},Pr),v.$e=function(){h8(this)};var A5,G9i=V(zs,"StreamImpl",26);G(1102,500,ef,x6t),v.Bd=function(n){while(rgn(this))if(this.a.Bd(n))return!0;else h8(this.b),this.b=null,this.a=null;return!1};var z9i=V(zs,"StreamImpl/1",1102);G(1103,1,Ln,qTt),v.Cd=function(n){Rcn(this.a,b(n,848))};var V9i=V(zs,"StreamImpl/1/lambda$0$Type",1103);G(1104,1,Si,YTt),v.Mb=function(n){return $s(this.a,n)};var H9i=V(zs,"StreamImpl/1methodref$add$Type",1104);G(1105,500,ef,aLt),v.Bd=function(n){var s;if(!this.a)s=new Ut,this.b.a.Nb(new WTt(s)),Hr(),ks(s,this.c),this.a=new Gr(s,16);return zDt(this.a,n)},v.a=null;var q9i=V(zs,"StreamImpl/5",1105);G(1106,1,Ln,WTt),v.Cd=function(n){Gt(this.a,n)};var Y9i=V(zs,"StreamImpl/5/2methodref$add$Type",1106);G(737,500,ef,kNe),v.Bd=function(n){this.b=!1;while(!this.b&&this.c.Bd(new VAt(this,n)));return this.b},v.b=!1;var W9i=V(zs,"StreamImpl/FilterSpliterator",737);G(1096,1,Ln,VAt),v.Cd=function(n){xun(this.a,this.b,n)};var j9i=V(zs,"StreamImpl/FilterSpliterator/lambda$0$Type",1096);G(1091,736,ef,QMt),v.Re=function(n){return aon(this,b(n,189))};var K9i=V(zs,"StreamImpl/MapToDoubleSpliterator",1091);G(1095,1,Ln,HAt),v.Cd=function(n){Rin(this.a,this.b,n)};var X9i=V(zs,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095);G(1090,735,ef,ZMt),v.Re=function(n){return son(this,b(n,202))};var Q9i=V(zs,"StreamImpl/MapToIntSpliterator",1090);G(1094,1,Ln,qAt),v.Cd=function(n){Iin(this.a,this.b,n)};var Z9i=V(zs,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094);G(734,500,ef,dNe),v.Bd=function(n){return w6t(this,n)};var J9i=V(zs,"StreamImpl/MapToObjSpliterator",734);G(1093,1,Ln,YAt),v.Cd=function(n){Oin(this.a,this.b,n)};var ePi=V(zs,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093);G(1092,500,ef,k9t),v.Bd=function(n){while(cce(this.b,0)){if(!this.a.Bd(new Ce))return!1;this.b=bp(this.b,1)}return this.a.Bd(n)},v.b=0;var tPi=V(zs,"StreamImpl/SkipSpliterator",1092);G(1097,1,Ln,Ce),v.Cd=function(n){};var rPi=V(zs,"StreamImpl/SkipSpliterator/lambda$0$Type",1097);G(626,1,Ln,_e),v.Cd=function(n){STt(this,n)};var nPi=V(zs,"StreamImpl/ValueConsumer",626);G(1098,1,Ln,ke),v.Cd=function(n){L2()};var iPi=V(zs,"StreamImpl/lambda$0$Type",1098);G(1099,1,Ln,it),v.Cd=function(n){L2()};var aPi=V(zs,"StreamImpl/lambda$1$Type",1099);G(1100,1,{},jTt),v.Ve=function(n,s){return Fon(this.a,n,s)};var sPi=V(zs,"StreamImpl/lambda$4$Type",1100);G(1101,1,Ln,WAt),v.Cd=function(n){Hsn(this.b,this.a,n)};var oPi=V(zs,"StreamImpl/lambda$5$Type",1101);G(1107,1,Ln,KTt),v.Cd=function(n){t1n(this.a,b(n,380))};var lPi=V(zs,"TerminatableStream/lambda$0$Type",1107);G(2142,1,{}),G(2014,1,{},ut);var cPi=V("javaemul.internal","ConsoleLogger",2014),M6n=0;G(2134,1,{}),G(1830,1,Ln,gt),v.Cd=function(n){b(n,317)};var uPi=V(PO,"BowyerWatsonTriangulation/lambda$0$Type",1830);G(1831,1,Ln,XTt),v.Cd=function(n){Po(this.a,b(n,317).e)};var hPi=V(PO,"BowyerWatsonTriangulation/lambda$1$Type",1831);G(1832,1,Ln,vt),v.Cd=function(n){b(n,177)};var dPi=V(PO,"BowyerWatsonTriangulation/lambda$2$Type",1832);G(1827,1,ki,QTt),v.Ne=function(n,s){return Fpn(this.a,b(n,177),b(s,177))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var fPi=V(PO,"NaiveMinST/lambda$0$Type",1827);G(449,1,{},uM);var pPi=V(PO,"NodeMicroLayout",449);G(177,1,{177:1},SA),v.Fb=function(n){var s;if(He(n,177))return s=b(n,177),zc(this.a,s.a)&&zc(this.b,s.b)||zc(this.a,s.b)&&zc(this.b,s.a);else return!1},v.Hb=function(){return o4(this.a)+o4(this.b)};var D6n=V(PO,"TEdge",177);G(317,1,{317:1},dDe),v.Fb=function(n){var s;if(He(n,317))return s=b(n,317),cX(this,s.a)&&cX(this,s.b)&&cX(this,s.c);else return!1},v.Hb=function(){return o4(this.a)+o4(this.b)+o4(this.c)};var gPi=V(PO,"TTriangle",317);G(225,1,{225:1},Uj);var mPi=V(PO,"Tree",225);G(1218,1,{},HLt);var bPi=V(vYt,"Scanline",1218),aQt=ns(vYt,_Yt);G(1758,1,{},$Dt);var yPi=V(k1,"CGraph",1758);G(316,1,{316:1},WLt),v.b=0,v.c=0,v.d=0,v.g=0,v.i=0,v.k=Gs;var vPi=V(k1,"CGroup",316);G(830,1,{},v5e);var _Pi=V(k1,"CGroup/CGroupBuilder",830);G(60,1,{60:1},a6t),v.Ib=function(){var n;if(this.j)return wi(this.j.Kb(this));return gb(vJ),vJ.o+"@"+(n=ww(this)>>>0,n.toString(16))},v.f=0,v.i=Gs;var vJ=V(k1,"CNode",60);G(829,1,{},_5e);var EPi=V(k1,"CNode/CNodeBuilder",829),sQt;G(1590,1,{},ir),v.ff=function(n,s){return 0},v.gf=function(n,s){return 0};var wPi=V(k1,wYt,1590);G(1853,1,{},qt),v.cf=function(n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de;M=Wa;for(f=new me(n.a.b);f.af.d.c||f.d.c==_.d.c&&f.d.b<_.d.b)&&rvn(_.d.d+_.d.a+C,f.d.d)&&C7e(_.d.d,f.d.d+f.d.a+C)&&f.c.Fc(_)}}};var xPi=V(k1,"QuadraticConstraintCalculation",1854);G(529,1,{529:1},Mle),v.a=!1,v.b=!1,v.c=!1,v.d=!1;var CPi=V(k1,kYt,529);G(817,1,{},B6e),v.df=function(n){this.c=n,ZU(this,new lr)};var kPi=V(k1,AYt,817);G(1784,1,{693:1},gLt),v.bf=function(n){bSn(this,b(n,473))};var APi=V(k1,RYt,1784);G(1785,1,ki,tr),v.Ne=function(n,s){return Ahn(b(n,60),b(s,60))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var RPi=V(k1,IYt,1785);G(473,1,{473:1},fRe),v.a=!1;var IPi=V(k1,OYt,473);G(1786,1,ki,Zt),v.Ne=function(n,s){return A2n(b(n,473),b(s,473))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var OPi=V(k1,NYt,1786);G(1787,1,Nm,lr),v.Lb=function(n){return b(n,60),!0},v.Fb=function(n){return this===n},v.Mb=function(n){return b(n,60),!0};var NPi=V(k1,"ScanlineConstraintCalculator/lambda$1$Type",1787);G(436,22,{3:1,34:1,22:1,436:1},pRe);var c$e,Bme,u$e=ei(g0e,"HighLevelSortingCriterion",436,li,ndn,won),uQt;G(435,22,{3:1,34:1,22:1,435:1},gRe);var h$e,Fme,d$e=ei(g0e,"LowLevelSortingCriterion",435,li,idn,Son),hQt,Z4=ns(xc,"ILayoutMetaDataProvider");G(864,1,Ep,Zwt),v.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,r9e),m0e),"Polyomino Traversal Strategy"),"Traversal strategy for trying different candidate positions for polyominoes."),v$e),(Fy(),ja)),A$e),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,n9e),m0e),"Polyomino Secondary Sorting Criterion"),"Possible secondary sorting criteria for the processing order of polyominoes. They are used when polyominoes are equal according to the primary sorting criterion HighLevelSortingCriterion."),b$e),ja),d$e),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,i9e),m0e),"Polyomino Primary Sorting Criterion"),"Possible primary sorting criteria for the processing order of polyominoes."),g$e),ja),u$e),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,a9e),m0e),"Fill Polyominoes"),"Use the Profile Fill algorithm to fill polyominoes to prevent small polyominoes from being placed inside of big polyominoes with large holes. Might increase packing area."),(nn(),!0)),so),_s),Tr(Qr))))};var f$e,p$e,g$e,m$e,b$e,y$e,v$e,LPi=V(g0e,"PolyominoOptions",864);G(257,22,{3:1,34:1,22:1,257:1},ZC);var _$e,E$e,w$e,S$e,T$e,x$e,$me,C$e,k$e,A$e=ei(g0e,"TraversalStrategy",257,li,tmn,Ton),dQt;G(218,1,{218:1},Kt),v.Ib=function(){return"NEdge[id="+this.b+" w="+this.g+" d="+this.a+"]"},v.a=1,v.b=0,v.c=0,v.f=!1,v.g=0;var fQt=V(vD,"NEdge",218);G(182,1,{},fp);var MPi=V(vD,"NEdge/NEdgeBuilder",182);G(662,1,{},Ble);var DPi=V(vD,"NGraph",662);G(125,1,{125:1},t8t),v.c=-1,v.d=0,v.e=0,v.i=-1,v.j=!1;var R$e=V(vD,"NNode",125);G(808,1,pYt,b5e),v.Jc=function(n){Vo(this,n)},v.Lc=function(){return new Pr(null,new Gr(this,16))},v.jd=function(n){q2(this,n)},v.Nc=function(){return new Gr(this,16)},v.Oc=function(){return new Pr(null,new Gr(this,16))},v.bd=function(n,s){++this.b,xw(this.a,n,s)},v.Fc=function(n){return Yj(this,n)},v.cd=function(n,s){return++this.b,FLe(this.a,n,s)},v.Gc=function(n){return++this.b,Us(this.a,n)},v.$b=function(){++this.b,xT(this.a.c,0)},v.Hc=function(n){return rc(this.a,n,0)!=-1},v.Ic=function(n){return wU(this.a,n)},v.Xb=function(n){return nr(this.a,n)},v.dd=function(n){return rc(this.a,n,0)},v.dc=function(){return this.a.c.length==0},v.Kc=function(){return KA(new me(this.a))},v.ed=function(){throw ve(new bi)},v.fd=function(n){throw ve(new bi)},v.gd=function(n){return++this.b,xy(this.a,n)},v.Mc=function(n){return vIe(this,n)},v.hd=function(n,s){return++this.b,Lf(this.a,n,s)},v.gc=function(){return this.a.c.length},v.kd=function(n,s){return new Sy(this.a,n,s)},v.Pc=function(){return sK(this.a.c)},v.Qc=function(n){return Og(this.a,n)},v.b=0;var PPi=V(vD,"NNode/ChangeAwareArrayList",808);G(275,1,{},O2);var BPi=V(vD,"NNode/NNodeBuilder",275);G(1695,1,{},In),v.a=!1,v.f=sa,v.j=0;var FPi=V(vD,"NetworkSimplex",1695);G(1314,1,Ln,JTt),v.Cd=function(n){cqt(this.a,b(n,695),!0,!1)};var $Pi=V(LYt,"NodeLabelAndSizeCalculator/lambda$0$Type",1314);G(565,1,{},BW),v.b=!0,v.c=!0,v.d=!0,v.e=!0;var UPi=V(LYt,"NodeMarginCalculator",565);G(217,1,{217:1}),v.j=!1,v.k=!1;var pQt=V(aE,"Cell",217);G(127,217,{127:1,217:1},i6t),v.jf=function(){return oK(this)},v.kf=function(){var n=this.n;return this.a.a+n.b+n.c};var GPi=V(aE,"AtomicCell",127);G(237,22,{3:1,34:1,22:1,237:1},dce);var Mc,qu,Dc,Tx=ei(aE,"ContainerArea",237,li,efn,xon),gQt;G(336,217,MYt);var zPi=V(aE,"ContainerCell",336);G(1538,336,MYt,jBt),v.jf=function(){var n=0;return this.e?this.b?n=this.b.b:!!this.a[1][1]&&(n=this.a[1][1].jf()):n=u7e(this,u$t(this,!0)),n>0?n+this.n.d+this.n.a:0},v.kf=function(){var n,s,u,f,g;if(g=0,this.e)this.b?g=this.b.a:!!this.a[1][1]&&(g=this.a[1][1].kf());else if(this.g)g=u7e(this,Efe(this,null,!0));else for(s=(K0(),Te(we(Tx,1),Rt,237,0,[Mc,qu,Dc])),u=0,f=s.length;u0?g+this.n.b+this.n.c:0},v.lf=function(){var n,s,u,f,g;if(this.g){n=Efe(this,null,!1);for(u=(K0(),Te(we(Tx,1),Rt,237,0,[Mc,qu,Dc])),f=0,g=u.length;f0)f[0]+=this.d,u-=f[0];if(f[2]>0)f[2]+=this.d,u-=f[2];this.c.a=d.Math.max(0,u),this.c.d=s.d+n.d+(this.c.a-u)/2,f[1]=d.Math.max(f[1],u),lNe(this,qu,s.d+n.d+f[0]-(f[1]-u)/2,f)},v.b=null,v.d=0,v.e=!1,v.f=!1,v.g=!1;var Ume=0,_J=0,VPi=V(aE,"GridContainerCell",1538);G(471,22,{3:1,34:1,22:1,471:1},fce);var m_,Um,h0,mQt=ei(aE,"HorizontalLabelAlignment",471,li,Jdn,Con),bQt;G(314,217,{217:1,314:1},ILt,GDt,SLt),v.jf=function(){return uOt(this)},v.kf=function(){return C6e(this)},v.a=0,v.c=!1;var P6n=V(aE,"LabelCell",314);G(252,336,{217:1,336:1,252:1},G8),v.jf=function(){return Q8(this)},v.kf=function(){return Z8(this)},v.lf=function(){cpe(this)},v.mf=function(){upe(this)},v.b=0,v.c=0,v.d=!1;var HPi=V(aE,"StripContainerCell",252);G(1691,1,Si,Et),v.Mb=function(n){return Cnn(b(n,217))};var qPi=V(aE,"StripContainerCell/lambda$0$Type",1691);G(1692,1,{},Xn),v.Ye=function(n){return b(n,217).kf()};var YPi=V(aE,"StripContainerCell/lambda$1$Type",1692);G(1693,1,Si,Yt),v.Mb=function(n){return knn(b(n,217))};var WPi=V(aE,"StripContainerCell/lambda$2$Type",1693);G(1694,1,{},Bn),v.Ye=function(n){return b(n,217).jf()};var jPi=V(aE,"StripContainerCell/lambda$3$Type",1694);G(472,22,{3:1,34:1,22:1,472:1},pce);var d0,b_,eg,yQt=ei(aE,"VerticalLabelAlignment",472,li,Zdn,kon),vQt;G(800,1,{},RDe),v.c=0,v.d=0,v.k=0,v.s=0,v.t=0,v.v=!1,v.w=0,v.D=!1,v.F=!1;var KPi=V(oZ,"NodeContext",800);G(1536,1,ki,si),v.Ne=function(n,s){return wRt(b(n,64),b(s,64))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var XPi=V(oZ,"NodeContext/0methodref$comparePortSides$Type",1536);G(1537,1,ki,hn),v.Ne=function(n,s){return rwn(b(n,117),b(s,117))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var QPi=V(oZ,"NodeContext/1methodref$comparePortContexts$Type",1537);G(164,22,{3:1,34:1,22:1,164:1},Pf);var _Qt,EQt,wQt,SQt,TQt,xQt,CQt,kQt,AQt,RQt,IQt,OQt,NQt,LQt,MQt,DQt,PQt,BQt,FQt,$Qt,UQt,Gme,GQt=ei(oZ,"NodeLabelLocation",164,li,Zde,Aon),zQt;G(117,1,{117:1},RGt),v.a=!1;var ZPi=V(oZ,"PortContext",117);G(1541,1,Ln,Ii),v.Cd=function(n){G3t(b(n,314))};var JPi=V(AG,DYt,1541);G(1542,1,Si,Vn),v.Mb=function(n){return!!b(n,117).c};var eBi=V(AG,PYt,1542);G(1543,1,Ln,Ei),v.Cd=function(n){G3t(b(n,117).c)};var tBi=V(AG,"LabelPlacer/lambda$2$Type",1543),I$e;G(1540,1,Ln,yn),v.Cd=function(n){MT(),ann(b(n,117))};var rBi=V(AG,"NodeLabelAndSizeUtilities/lambda$0$Type",1540);G(801,1,Ln,a6e),v.Cd=function(n){vin(this.b,this.c,this.a,b(n,187))},v.a=!1,v.c=!1;var nBi=V(AG,"NodeLabelCellCreator/lambda$0$Type",801);G(1539,1,Ln,ext),v.Cd=function(n){lnn(this.a,b(n,187))};var iBi=V(AG,"PortContextCreator/lambda$0$Type",1539),EJ;G(1902,1,{},Li);var aBi=V(FO,"GreedyRectangleStripOverlapRemover",1902);G(1903,1,ki,Ia),v.Ne=function(n,s){return Qan(b(n,226),b(s,226))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var sBi=V(FO,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903);G(1849,1,{},ukt),v.a=5,v.e=0;var oBi=V(FO,"RectangleStripOverlapRemover",1849);G(1850,1,ki,tt),v.Ne=function(n,s){return Zan(b(n,226),b(s,226))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var lBi=V(FO,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850);G(1852,1,ki,Fn),v.Ne=function(n,s){return Gun(b(n,226),b(s,226))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var cBi=V(FO,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852);G(417,22,{3:1,34:1,22:1,417:1},gj);var ez,zme,Vme,tz,VQt=ei(FO,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,li,fpn,Ron),HQt;G(226,1,{226:1},Rue);var uBi=V(FO,"RectangleStripOverlapRemover/RectangleNode",226);G(1851,1,Ln,txt),v.Cd=function(n){A_n(this.a,b(n,226))};var hBi=V(FO,"RectangleStripOverlapRemover/lambda$1$Type",1851);G(1323,1,ki,Hn),v.Ne=function(n,s){return WAn(b(n,176),b(s,176))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var dBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323);G(1326,1,{},_t),v.Kb=function(n){return b(n,334).a};var fBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326);G(1327,1,Si,Sr),v.Mb=function(n){return b(n,332).a};var pBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327);G(1328,1,Si,on),v.Mb=function(n){return b(n,332).a};var gBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328);G(1321,1,ki,gn),v.Ne=function(n,s){return Tkn(b(n,176),b(s,176))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var mBi=V(Lm,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321);G(1324,1,{},On),v.Kb=function(n){return b(n,334).a};var bBi=V(Lm,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324);G(781,1,ki,as),v.Ne=function(n,s){return s1n(b(n,176),b(s,176))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var yBi=V(Lm,"PolyominoCompactor/MinNumOfExtensionsComparator",781);G(1319,1,ki,Ir),v.Ne=function(n,s){return pmn(b(n,330),b(s,330))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var vBi=V(Lm,"PolyominoCompactor/MinPerimeterComparator",1319);G(1320,1,ki,un),v.Ne=function(n,s){return Zvn(b(n,330),b(s,330))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var _Bi=V(Lm,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320);G(1322,1,ki,zn),v.Ne=function(n,s){return Hkn(b(n,176),b(s,176))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var EBi=V(Lm,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322);G(1325,1,{},Di),v.Kb=function(n){return b(n,334).a};var wBi=V(Lm,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325);G(782,1,{},mRe),v.Ve=function(n,s){return apn(this,b(n,42),b(s,176))};var SBi=V(Lm,"SuccessorCombination",782);G(649,1,{},aa),v.Ve=function(n,s){var u;return ETn((u=b(n,42),b(s,176),u))};var TBi=V(Lm,"SuccessorJitter",649);G(648,1,{},Ca),v.Ve=function(n,s){var u;return o4n((u=b(n,42),b(s,176),u))};var xBi=V(Lm,"SuccessorLineByLine",648);G(573,1,{},os),v.Ve=function(n,s){var u;return Exn((u=b(n,42),b(s,176),u))};var CBi=V(Lm,"SuccessorManhattan",573);G(1344,1,{},ma),v.Ve=function(n,s){var u;return OCn((u=b(n,42),b(s,176),u))};var kBi=V(Lm,"SuccessorMaxNormWindingInMathPosSense",1344);G(409,1,{},jI),v.Ve=function(n,s){return X6e(this,n,s)},v.c=!1,v.d=!1,v.e=!1,v.f=!1;var ABi=V(Lm,"SuccessorQuadrantsGeneric",409);G(1345,1,{},Yn),v.Kb=function(n){return b(n,334).a};var RBi=V(Lm,"SuccessorQuadrantsGeneric/lambda$0$Type",1345);G(332,22,{3:1,34:1,22:1,332:1},mj),v.a=!1;var rz,nz,iz,az,qQt=ei(cZ,c9e,332,li,hpn,Ion),YQt;G(1317,1,{}),v.Ib=function(){var n,s,u,f,g,_;u=" ",n=$t(0);for(g=0;g=0?"b"+n+"["+She(this.a)+"]":"b["+She(this.a)+"]";return"b_"+ww(this)};var yFi=V(IG,"FBendpoint",250);G(290,137,{3:1,290:1,96:1,137:1},s6t),v.Ib=function(){return She(this)};var vFi=V(IG,"FEdge",290);G(235,137,{3:1,235:1,96:1,137:1},JK);var F6n=V(IG,"FGraph",235);G(454,309,{3:1,454:1,309:1,96:1,137:1},lMt),v.Ib=function(){return this.b==null||this.b.length==0?"l["+She(this.a)+"]":"l_"+this.b};var _Fi=V(IG,"FLabel",454);G(153,309,{3:1,153:1,309:1,96:1,137:1},URt),v.Ib=function(){return BOe(this)},v.a=0;var EFi=V(IG,"FNode",153);G(2100,1,{}),v.vf=function(n){oDe(this,n)},v.wf=function(){c$t(this)},v.d=0;var wFi=V(y9e,"AbstractForceModel",2100);G(641,2100,{641:1},sPt),v.uf=function(n,s){var u,f,g,_,S;return PHt(this.f,n,s),g=no(Uo(s.d),n.d),S=d.Math.sqrt(g.a*g.a+g.b*g.b),f=d.Math.max(0,S-u8(n.e)/2-u8(s.e)/2),u=yGt(this.e,n,s),u>0?_=-Fun(f,this.c)*u:_=fsn(f,this.b)*b(ce(n,(c0(),R5)),17).a,_m(g,_/S),g},v.vf=function(n){oDe(this,n),this.a=b(ce(n,(c0(),kJ)),17).a,this.c=rt(ht(ce(n,AJ))),this.b=rt(ht(ce(n,Xme)))},v.xf=function(n){return n0&&(_-=wnn(f,this.a)*u),_m(g,_*this.b/S),g},v.vf=function(n){var s,u,f,g,_,S,C;oDe(this,n),this.b=rt(ht(ce(n,(c0(),Qme)))),this.c=this.b/b(ce(n,kJ),17).a,f=n.e.c.length,_=0,g=0;for(C=new me(n.e);C.a0},v.a=0,v.b=0,v.c=0;var TFi=V(y9e,"FruchtermanReingoldModel",642);G(860,1,Ep,tSt),v.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,dZ),""),"Force Model"),"Determines the model for force calculation."),$$e),(Fy(),ja)),U$e),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,v9e),""),"Iterations"),"The number of iterations on the force model."),$t(300)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,_9e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,R0e),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Mm),el),Bs),Tr(Qr)))),Ls(n,R0e,dZ,dZt),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,I0e),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),el),Bs),Tr(Qr)))),Ls(n,I0e,dZ,cZt),Tqt((new rSt,n))};var sZt,oZt,$$e,lZt,cZt,uZt,hZt,dZt,xFi=V(ED,"ForceMetaDataProvider",860);G(432,22,{3:1,34:1,22:1,432:1},yRe);var Kme,CJ,U$e=ei(ED,"ForceModelStrategy",432,li,adn,Lon),fZt;G(Uy,1,Ep,rSt),v.hf=function(n){Tqt(n)};var pZt,gZt,G$e,kJ,z$e,mZt,bZt,yZt,vZt,V$e,_Zt,H$e,q$e,EZt,R5,wZt,Xme,Y$e,SZt,TZt,AJ,Qme,xZt,CZt,kZt,W$e,AZt,CFi=V(ED,"ForceOptions",Uy);G(1001,1,{},cb),v.sf=function(){var n;return n=new y5e,n},v.tf=function(n){};var kFi=V(ED,"ForceOptions/ForceFactory",1001),lz,ZD,I5,RJ;G(861,1,Ep,nSt),v.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,S9e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(nn(),!1)),(Fy(),so)),_s),Tr((Q0(),Qs))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,T9e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),el),Bs),Ua(Qr,Te(we(M1,1),Rt,170,0,[Hm]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,x9e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),j$e),ja),tUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,C9e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Mm),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,k9e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),$t(sa)),pc),qo),Tr(Qr)))),ZHt((new iSt,n))};var RZt,IZt,j$e,OZt,NZt,LZt,AFi=V(ED,"StressMetaDataProvider",861);G(1004,1,Ep,iSt),v.hf=function(n){ZHt(n)};var IJ,K$e,X$e,Q$e,Z$e,J$e,MZt,DZt,PZt,BZt,eUe,FZt,RFi=V(ED,"StressOptions",1004);G(1005,1,{},lb),v.sf=function(){var n;return n=new o6t,n},v.tf=function(n){};var IFi=V(ED,"StressOptions/StressFactory",1005);G(1110,205,sE,o6t),v.rf=function(n,s){var u,f,g,_,S;s.Ug(jYt,1),er(Jt(It(n,(VU(),Z$e))))?er(Jt(It(n,eUe)))||Y$((u=new uM((mw(),new lw(n))),u)):gzt(new y5e,n,s.eh(1)),g=IPt(n),f=oHt(this.a,g);for(S=f.Kc();S.Ob();){if(_=b(S.Pb(),235),_.e.c.length<=1)continue;HAn(this.b,_),mxn(this.b),Ju(_.d,new dd)}g=Eqt(f),Oqt(g),s.Vg()};var OFi=V(gZ,"StressLayoutProvider",1110);G(1111,1,Ln,dd),v.Cd=function(n){gDe(b(n,454))};var NFi=V(gZ,"StressLayoutProvider/lambda$0$Type",1111);G(1002,1,{},akt),v.c=0,v.e=0,v.g=0;var LFi=V(gZ,"StressMajorization",1002);G(391,22,{3:1,34:1,22:1,391:1},gce);var Zme,Jme,e1e,tUe=ei(gZ,"StressMajorization/Dimension",391,li,tfn,Mon),$Zt;G(1003,1,ki,axt),v.Ne=function(n,s){return lon(this.a,b(n,153),b(s,153))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var MFi=V(gZ,"StressMajorization/lambda$0$Type",1003);G(1192,1,{},f7t);var DFi=V(S5,"ElkLayered",1192);G(1193,1,Ln,sxt),v.Cd=function(n){qSn(this.a,b(n,36))};var PFi=V(S5,"ElkLayered/lambda$0$Type",1193);G(1194,1,Ln,oxt),v.Cd=function(n){con(this.a,b(n,36))};var BFi=V(S5,"ElkLayered/lambda$1$Type",1194);G(1281,1,{},XRt);var UZt,GZt,zZt,FFi=V(S5,"GraphConfigurator",1281);G(770,1,Ln,r5e),v.Cd=function(n){wUt(this.a,b(n,10))};var $Fi=V(S5,"GraphConfigurator/lambda$0$Type",770);G(771,1,{},fl),v.Kb=function(n){return iMe(),new Pr(null,new Gr(b(n,30).a,16))};var UFi=V(S5,"GraphConfigurator/lambda$1$Type",771);G(772,1,Ln,n5e),v.Cd=function(n){wUt(this.a,b(n,10))};var GFi=V(S5,"GraphConfigurator/lambda$2$Type",772);G(1109,205,sE,hkt),v.rf=function(n,s){var u=xAn(new fkt,n);nt(It(n,(Qt(),Mx)))===nt((Cb(),Zy))?nyn(this.a,u,s):dxn(this.a,u,s),s.$g()||pqt(new aSt,u)};var zFi=V(S5,"LayeredLayoutProvider",1109);G(367,22,{3:1,34:1,22:1,367:1},s$);var f0,O1,su,wu,ac,rUe=ei(S5,"LayeredPhases",367,li,a0n,Don),VZt;G(1717,1,{},T9t),v.i=0;var HZt,VFi=V(PG,"ComponentsToCGraphTransformer",1717),qZt;G(1718,1,{},yt),v.yf=function(n,s){return d.Math.min(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)},v.zf=function(n,s){return d.Math.min(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)};var HFi=V(PG,"ComponentsToCGraphTransformer/1",1718);G(86,1,{86:1}),v.i=0,v.k=!0,v.o=Gs;var t1e=V(xD,"CNode",86);G(470,86,{470:1,86:1},wIe,N7e),v.Ib=function(){return""};var qFi=V(PG,"ComponentsToCGraphTransformer/CRectNode",470);G(1688,1,{},$u);var r1e,n1e,YFi=V(PG,"OneDimensionalComponentsCompaction",1688);G(1689,1,{},c1),v.Kb=function(n){return Ydn(b(n,42))},v.Fb=function(n){return this===n};var WFi=V(PG,"OneDimensionalComponentsCompaction/lambda$0$Type",1689);G(1690,1,{},pl),v.Kb=function(n){return ayn(b(n,42))},v.Fb=function(n){return this===n};var jFi=V(PG,"OneDimensionalComponentsCompaction/lambda$1$Type",1690);G(1720,1,{},_Nt);var KFi=V(xD,"CGraph",1720);G(194,1,{194:1},Kde),v.b=0,v.c=0,v.e=0,v.g=!0,v.i=Gs;var XFi=V(xD,"CGroup",194);G(1719,1,{},kh),v.yf=function(n,s){return d.Math.max(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)},v.zf=function(n,s){return d.Math.max(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)};var QFi=V(xD,wYt,1719);G(1721,1,{},_Gt),v.d=!1;var YZt,i1e=V(xD,xYt,1721);G(1722,1,{},Lv),v.Kb=function(n){return aRe(),nn(),b(b(n,42).a,86).d.e!=0?!0:!1},v.Fb=function(n){return this===n};var ZFi=V(xD,CYt,1722);G(833,1,{},L6e),v.a=!1,v.b=!1,v.c=!1,v.d=!1;var JFi=V(xD,kYt,833);G(1898,1,{},POt);var e$i=V(mZ,AYt,1898),cz=ns(lE,_Yt);G(1899,1,{382:1},mLt),v.bf=function(n){_4n(this,b(n,476))};var t$i=V(mZ,RYt,1899);G(c_,1,ki,Mv),v.Ne=function(n,s){return Rhn(b(n,86),b(s,86))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var r$i=V(mZ,IYt,c_);G(476,1,{476:1},_Re),v.a=!1;var n$i=V(mZ,OYt,476);G(1901,1,ki,u1),v.Ne=function(n,s){return I2n(b(n,476),b(s,476))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var i$i=V(mZ,NYt,1901);G(148,1,{148:1},o6,m6e),v.Fb=function(n){var s;if(n==null)return!1;if($6n!=Ld(n))return!1;return s=b(n,148),zc(this.c,s.c)&&zc(this.d,s.d)},v.Hb=function(){return RU(Te(we(ao,1),en,1,5,[this.c,this.d]))},v.Ib=function(){return"("+this.c+ll+this.d+(this.a?"cx":"")+this.b+")"},v.a=!0,v.c=0,v.d=0;var $6n=V(lE,"Point",148);G(416,22,{3:1,34:1,22:1,416:1},yj);var gS,xx,J4,Cx,WZt=ei(lE,"Point/Quadrant",416,li,ppn,Pon),jZt;G(1708,1,{},ckt),v.b=null,v.c=null,v.d=null,v.e=null,v.f=null;var KZt,XZt,QZt,ZZt,JZt,a$i=V(lE,"RectilinearConvexHull",1708);G(583,1,{382:1},lQ),v.bf=function(n){ign(this,b(n,148))},v.b=0;var nUe,s$i=V(lE,"RectilinearConvexHull/MaximalElementsEventHandler",583);G(1710,1,ki,Kp),v.Ne=function(n,s){return Ihn(ht(n),ht(s))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var o$i=V(lE,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710);G(1709,1,{382:1},UDt),v.bf=function(n){DCn(this,b(n,148))},v.a=0,v.b=null,v.c=null,v.d=null,v.e=null;var l$i=V(lE,"RectilinearConvexHull/RectangleEventHandler",1709);G(1711,1,ki,xf),v.Ne=function(n,s){return Ffn(b(n,148),b(s,148))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var c$i=V(lE,"RectilinearConvexHull/lambda$0$Type",1711);G(1712,1,ki,Uu),v.Ne=function(n,s){return $fn(b(n,148),b(s,148))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var u$i=V(lE,"RectilinearConvexHull/lambda$1$Type",1712);G(1713,1,ki,zF),v.Ne=function(n,s){return Bfn(b(n,148),b(s,148))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var h$i=V(lE,"RectilinearConvexHull/lambda$2$Type",1713);G(1714,1,ki,$0),v.Ne=function(n,s){return Ufn(b(n,148),b(s,148))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var d$i=V(lE,"RectilinearConvexHull/lambda$3$Type",1714);G(1715,1,ki,lA),v.Ne=function(n,s){return bwn(b(n,148),b(s,148))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var f$i=V(lE,"RectilinearConvexHull/lambda$4$Type",1715);G(1716,1,{},qLt);var p$i=V(lE,"Scanline",1716);G(2104,1,{});var g$i=V(Pg,"AbstractGraphPlacer",2104);G(335,1,{335:1},NIt),v.Ff=function(n){if(this.Gf(n))return Ur(this.b,b(ce(n,(Pt(),Fb)),21),n),!0;else return!1},v.Gf=function(n){var s,u,f,g;s=b(ce(n,(Pt(),Fb)),21),g=b(_a(Oa,s),21);for(f=g.Kc();f.Ob();)if(u=b(f.Pb(),21),!b(_a(this.b,u),15).dc())return!1;return!0};var Oa,m$i=V(Pg,"ComponentGroup",335);G(779,2104,{},E5e),v.Hf=function(n){var s,u;for(u=new me(this.a);u.au)U=0,q+=C+f,C=0;O=_.c,wO(_,U+O.a,q+O.b),V0(O),g=d.Math.max(g,U+M.a),C=d.Math.max(C,M.b),U+=M.a+f}s.f.a=g,s.f.b=q+C},v.Jf=function(n,s){var u,f,g,_,S;if(nt(ce(s,(Qt(),Lx)))===nt((Z2(),kx))){for(f=n.Kc();f.Ob();){u=b(f.Pb(),36),S=0;for(_=new me(u.a);_.a<_.c.c.length;)g=b(ge(_),10),S+=b(ce(g,hrr),17).a;u.p=S}Hr(),n.jd(new ub)}};var I$i=V(Pg,"SimpleRowGraphPlacer",1310);G(1313,1310,{},Xh),v.If=function(n,s,u,f){var g,_,S,C,O,M,U,q,re,ae;re=0,ae=0,C=0,g=f,O=null,q=0;for(S=n.Kc();S.Ob();){if(_=b(S.Pb(),36),U=_.f,re+U.a>u&&!b(ce(_,(Pt(),Fb)),21).Hc((Ht(),pn))||!!O&&b(ce(O,(Pt(),Fb)),21).Hc((Ht(),Cn))||b(ce(_,(Pt(),Fb)),21).Hc((Ht(),bn)))re=q,ae+=C+f,C=0;M=_.c,b(ce(_,(Pt(),Fb)),21).Hc((Ht(),pn))&&(re=g+f),wO(_,re+M.a,ae+M.b),g=d.Math.max(g,re+U.a),b(ce(_,Fb),21).Hc(Kn)&&(q=d.Math.max(q,re+U.a+f)),V0(M),C=d.Math.max(C,U.b),re+=U.a+f,O=_}s.f.a=g,s.f.b=ae+C},v.Jf=function(n,s){};var O$i=V(Pg,"ModelOrderRowGraphPlacer",1313);G(1311,1,ki,ub),v.Ne=function(n,s){return n1n(b(n,36),b(s,36))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var N$i=V(Pg,"SimpleRowGraphPlacer/1",1311),tJt;G(1280,1,Nm,oi),v.Lb=function(n){var s;return s=b(ce(b(n,249).b,(Qt(),jl)),75),!!s&&s.b!=0},v.Fb=function(n){return this===n},v.Mb=function(n){var s;return s=b(ce(b(n,249).b,(Qt(),jl)),75),!!s&&s.b!=0};var L$i=V(bZ,"CompoundGraphPostprocessor/1",1280);G(1279,1,Pa,pkt),v.Kf=function(n,s){VFt(this,b(n,36),s)};var M$i=V(bZ,"CompoundGraphPreprocessor",1279);G(453,1,{453:1},LBt),v.c=!1;var D$i=V(bZ,"CompoundGraphPreprocessor/ExternalPort",453);G(249,1,{249:1},Jj),v.Ib=function(){return iue(this.c)+":"+pGt(this.b)};var P$i=V(bZ,"CrossHierarchyEdge",249);G(777,1,ki,i5e),v.Ne=function(n,s){return i2n(this,b(n,249),b(s,249))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var B$i=V(bZ,"CrossHierarchyEdgeComparator",777);G(305,137,{3:1,305:1,96:1,137:1}),v.p=0;var F$i=V(_u,"LGraphElement",305);G(18,305,{3:1,18:1,305:1,96:1,137:1},Mw),v.Ib=function(){return pGt(this)};var o1e=V(_u,"LEdge",18);G(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},jNe),v.Jc=function(n){Vo(this,n)},v.Kc=function(){return new me(this.b)},v.Ib=function(){if(this.b.c.length==0)return"G-unlayered"+i_(this.a);else if(this.a.c.length==0)return"G-layered"+i_(this.b);return"G[layerless"+i_(this.a)+", layers"+i_(this.b)+"]"};var rJt=V(_u,"LGraph",36),nJt;G(666,1,{}),v.Lf=function(){return this.e.n},v.of=function(n){return ce(this.e,n)},v.Mf=function(){return this.e.o},v.Nf=function(){return this.e.p},v.pf=function(n){return $a(this.e,n)},v.Of=function(n){this.e.n.a=n.a,this.e.n.b=n.b},v.Pf=function(n){this.e.o.a=n.a,this.e.o.b=n.b},v.Qf=function(n){this.e.p=n};var $$i=V(_u,"LGraphAdapters/AbstractLShapeAdapter",666);G(474,1,{853:1},hM),v.Rf=function(){var n,s;if(!this.b){this.b=f1(this.a.b.c.length);for(s=new me(this.a.b);s.a0&&uBt((fn(s-1,n.length),n.charCodeAt(s-1)),eWt))--s;if(_> ",n),yQ(u)),Bi(pu((n.a+="[",n),u.i),"]");return n.a},v.c=!0,v.d=!1;var lUe,c1e,cUe,u1e,uUe,hUe,aJt=V(_u,"LPort",12);G(408,1,T1,KI),v.Jc=function(n){Vo(this,n)},v.Kc=function(){var n=new me(this.a.e);return new lxt(n)};var J$i=V(_u,"LPort/1",408);G(1309,1,To,lxt),v.Nb=function(n){Go(this,n)},v.Pb=function(){return b(ge(this.a),18).c},v.Ob=function(){return _c(this.a)},v.Qb=function(){o8(this.a)};var eUi=V(_u,"LPort/1/1",1309);G(369,1,T1,dA),v.Jc=function(n){Vo(this,n)},v.Kc=function(){var n;return n=new me(this.a.g),new a5e(n)};var tUi=V(_u,"LPort/2",369);G(776,1,To,a5e),v.Nb=function(n){Go(this,n)},v.Pb=function(){return b(ge(this.a),18).d},v.Ob=function(){return _c(this.a)},v.Qb=function(){o8(this.a)};var rUi=V(_u,"LPort/2/1",776);G(1302,1,T1,QAt),v.Jc=function(n){Vo(this,n)},v.Kc=function(){return new Cg(this)};var nUi=V(_u,"LPort/CombineIter",1302);G(208,1,To,Cg),v.Nb=function(n){Go(this,n)},v.Qb=function(){R3t()},v.Ob=function(){return XM(this)},v.Pb=function(){return _c(this.a)?ge(this.a):ge(this.b)};var iUi=V(_u,"LPort/CombineIter/1",208);G(1303,1,Nm,Qn),v.Lb=function(n){return XOt(n)},v.Fb=function(n){return this===n},v.Mb=function(n){return Dh(),b(n,12).g.c.length!=0};var aUi=V(_u,"LPort/lambda$0$Type",1303);G(1304,1,Nm,Cs),v.Lb=function(n){return QOt(n)},v.Fb=function(n){return this===n},v.Mb=function(n){return Dh(),b(n,12).e.c.length!=0};var sUi=V(_u,"LPort/lambda$1$Type",1304);G(1305,1,Nm,wo),v.Lb=function(n){return Dh(),b(n,12).j==(Ht(),pn)},v.Fb=function(n){return this===n},v.Mb=function(n){return Dh(),b(n,12).j==(Ht(),pn)};var oUi=V(_u,"LPort/lambda$2$Type",1305);G(1306,1,Nm,Il),v.Lb=function(n){return Dh(),b(n,12).j==(Ht(),Cn)},v.Fb=function(n){return this===n},v.Mb=function(n){return Dh(),b(n,12).j==(Ht(),Cn)};var lUi=V(_u,"LPort/lambda$3$Type",1306);G(1307,1,Nm,dp),v.Lb=function(n){return Dh(),b(n,12).j==(Ht(),Kn)},v.Fb=function(n){return this===n},v.Mb=function(n){return Dh(),b(n,12).j==(Ht(),Kn)};var cUi=V(_u,"LPort/lambda$4$Type",1307);G(1308,1,Nm,T2),v.Lb=function(n){return Dh(),b(n,12).j==(Ht(),bn)},v.Fb=function(n){return this===n},v.Mb=function(n){return Dh(),b(n,12).j==(Ht(),bn)};var uUi=V(_u,"LPort/lambda$5$Type",1308);G(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},gu),v.Jc=function(n){Vo(this,n)},v.Kc=function(){return new me(this.a)},v.Ib=function(){return"L_"+rc(this.b.b,this,0)+i_(this.a)};var hUi=V(_u,"Layer",30);G(1330,1,{},fkt);var dUi=V(zy,iWt,1330);G(1334,1,{},gm),v.Kb=function(n){return ic(b(n,84))};var fUi=V(zy,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334);G(1337,1,{},h1),v.Kb=function(n){return ic(b(n,84))};var pUi=V(zy,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337);G(1331,1,Ln,cxt),v.Cd=function(n){OGt(this.a,b(n,123))};var gUi=V(zy,b9e,1331);G(1332,1,Ln,uxt),v.Cd=function(n){OGt(this.a,b(n,123))};var mUi=V(zy,aWt,1332);G(1333,1,{},cA),v.Kb=function(n){return new Pr(null,new Gr(gOe(b(n,74)),16))};var bUi=V(zy,sWt,1333);G(1335,1,Si,hxt),v.Mb=function(n){return oan(this.a,b(n,27))};var yUi=V(zy,oWt,1335);G(1336,1,{},d1),v.Kb=function(n){return new Pr(null,new Gr(Thn(b(n,74)),16))};var vUi=V(zy,"ElkGraphImporter/lambda$5$Type",1336);G(1338,1,Si,dxt),v.Mb=function(n){return lan(this.a,b(n,27))};var _Ui=V(zy,"ElkGraphImporter/lambda$7$Type",1338);G(1339,1,Si,kW),v.Mb=function(n){return Fhn(b(n,74))};var EUi=V(zy,"ElkGraphImporter/lambda$8$Type",1339);G(1297,1,{},aSt);var sJt,wUi=V(zy,"ElkGraphLayoutTransferrer",1297);G(1298,1,Si,fxt),v.Mb=function(n){return Xsn(this.a,b(n,18))};var SUi=V(zy,"ElkGraphLayoutTransferrer/lambda$0$Type",1298);G(1299,1,Ln,pxt),v.Cd=function(n){i$(),Gt(this.a,b(n,18))};var TUi=V(zy,"ElkGraphLayoutTransferrer/lambda$1$Type",1299);G(1300,1,Si,gxt),v.Mb=function(n){return Dsn(this.a,b(n,18))};var xUi=V(zy,"ElkGraphLayoutTransferrer/lambda$2$Type",1300);G(1301,1,Ln,mxt),v.Cd=function(n){i$(),Gt(this.a,b(n,18))};var CUi=V(zy,"ElkGraphLayoutTransferrer/lambda$3$Type",1301);G(819,1,{},qIe);var kUi=V(_n,"BiLinkedHashMultiMap",819);G(1550,1,Pa,Vgt),v.Kf=function(n,s){Smn(b(n,36),s)};var AUi=V(_n,"CommentNodeMarginCalculator",1550);G(1551,1,{},Hgt),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var RUi=V(_n,"CommentNodeMarginCalculator/lambda$0$Type",1551);G(1552,1,Ln,qgt),v.Cd=function(n){SAn(b(n,10))};var IUi=V(_n,"CommentNodeMarginCalculator/lambda$1$Type",1552);G(1553,1,Pa,Ygt),v.Kf=function(n,s){k4n(b(n,36),s)};var OUi=V(_n,"CommentPostprocessor",1553);G(1554,1,Pa,Wgt),v.Kf=function(n,s){KRn(b(n,36),s)};var NUi=V(_n,"CommentPreprocessor",1554);G(1555,1,Pa,jgt),v.Kf=function(n,s){HCn(b(n,36),s)};var LUi=V(_n,"ConstraintsPostprocessor",1555);G(1556,1,Pa,Kgt),v.Kf=function(n,s){Qmn(b(n,36),s)};var MUi=V(_n,"EdgeAndLayerConstraintEdgeReverser",1556);G(1557,1,Pa,Xgt),v.Kf=function(n,s){Gyn(b(n,36),s)};var DUi=V(_n,"EndLabelPostprocessor",1557);G(1558,1,{},Qgt),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var PUi=V(_n,"EndLabelPostprocessor/lambda$0$Type",1558);G(1559,1,Si,Zgt),v.Mb=function(n){return r0n(b(n,10))};var BUi=V(_n,"EndLabelPostprocessor/lambda$1$Type",1559);G(1560,1,Ln,Jgt),v.Cd=function(n){O2n(b(n,10))};var FUi=V(_n,"EndLabelPostprocessor/lambda$2$Type",1560);G(1561,1,Pa,emt),v.Kf=function(n,s){vSn(b(n,36),s)};var $Ui=V(_n,"EndLabelPreprocessor",1561);G(1562,1,{},tmt),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var UUi=V(_n,"EndLabelPreprocessor/lambda$0$Type",1562);G(1563,1,Ln,F6t),v.Cd=function(n){_in(this.a,this.b,this.c,b(n,10))},v.a=0,v.b=0,v.c=!1;var GUi=V(_n,"EndLabelPreprocessor/lambda$1$Type",1563);G(1564,1,Si,rmt),v.Mb=function(n){return nt(ce(b(n,72),(Qt(),zm)))===nt((Rg(),LN))};var zUi=V(_n,"EndLabelPreprocessor/lambda$2$Type",1564);G(1565,1,Ln,bxt),v.Cd=function(n){Oi(this.a,b(n,72))};var VUi=V(_n,"EndLabelPreprocessor/lambda$3$Type",1565);G(1566,1,Si,nmt),v.Mb=function(n){return nt(ce(b(n,72),(Qt(),zm)))===nt((Rg(),Yx))};var HUi=V(_n,"EndLabelPreprocessor/lambda$4$Type",1566);G(1567,1,Ln,yxt),v.Cd=function(n){Oi(this.a,b(n,72))};var qUi=V(_n,"EndLabelPreprocessor/lambda$5$Type",1567);G(1615,1,Pa,Qwt),v.Kf=function(n,s){Ubn(b(n,36),s)};var oJt,YUi=V(_n,"EndLabelSorter",1615);G(1616,1,ki,imt),v.Ne=function(n,s){return vvn(b(n,466),b(s,466))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var WUi=V(_n,"EndLabelSorter/1",1616);G(466,1,{466:1},uLt);var jUi=V(_n,"EndLabelSorter/LabelGroup",466);G(1617,1,{},amt),v.Kb=function(n){return n$(),new Pr(null,new Gr(b(n,30).a,16))};var KUi=V(_n,"EndLabelSorter/lambda$0$Type",1617);G(1618,1,Si,smt),v.Mb=function(n){return n$(),b(n,10).k==(mn(),Es)};var XUi=V(_n,"EndLabelSorter/lambda$1$Type",1618);G(1619,1,Ln,omt),v.Cd=function(n){Lwn(b(n,10))};var QUi=V(_n,"EndLabelSorter/lambda$2$Type",1619);G(1620,1,Si,lmt),v.Mb=function(n){return n$(),nt(ce(b(n,72),(Qt(),zm)))===nt((Rg(),Yx))};var ZUi=V(_n,"EndLabelSorter/lambda$3$Type",1620);G(1621,1,Si,cmt),v.Mb=function(n){return n$(),nt(ce(b(n,72),(Qt(),zm)))===nt((Rg(),LN))};var JUi=V(_n,"EndLabelSorter/lambda$4$Type",1621);G(1568,1,Pa,umt),v.Kf=function(n,s){BAn(this,b(n,36))},v.b=0,v.c=0;var eGi=V(_n,"FinalSplineBendpointsCalculator",1568);G(1569,1,{},hmt),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var tGi=V(_n,"FinalSplineBendpointsCalculator/lambda$0$Type",1569);G(1570,1,{},dmt),v.Kb=function(n){return new Pr(null,new Aw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var rGi=V(_n,"FinalSplineBendpointsCalculator/lambda$1$Type",1570);G(1571,1,Si,fmt),v.Mb=function(n){return!gl(b(n,18))};var nGi=V(_n,"FinalSplineBendpointsCalculator/lambda$2$Type",1571);G(1572,1,Si,pmt),v.Mb=function(n){return $a(b(n,18),(Pt(),bE))};var iGi=V(_n,"FinalSplineBendpointsCalculator/lambda$3$Type",1572);G(1573,1,Ln,vxt),v.Cd=function(n){Ykn(this.a,b(n,131))};var aGi=V(_n,"FinalSplineBendpointsCalculator/lambda$4$Type",1573);G(1574,1,Ln,gmt),v.Cd=function(n){QU(b(n,18).a)};var sGi=V(_n,"FinalSplineBendpointsCalculator/lambda$5$Type",1574);G(803,1,Pa,s5e),v.Kf=function(n,s){O5n(this,b(n,36),s)};var oGi=V(_n,"GraphTransformer",803);G(517,22,{3:1,34:1,22:1,517:1},vRe);var h1e,uz,lJt=ei(_n,"GraphTransformer/Mode",517,li,sdn,Gln),cJt;G(1575,1,Pa,mmt),v.Kf=function(n,s){Jxn(b(n,36),s)};var lGi=V(_n,"HierarchicalNodeResizingProcessor",1575);G(1576,1,Pa,bmt),v.Kf=function(n,s){ymn(b(n,36),s)};var cGi=V(_n,"HierarchicalPortConstraintProcessor",1576);G(1577,1,ki,ymt),v.Ne=function(n,s){return Uvn(b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var uGi=V(_n,"HierarchicalPortConstraintProcessor/NodeComparator",1577);G(1578,1,Pa,vmt),v.Kf=function(n,s){G3n(b(n,36),s)};var hGi=V(_n,"HierarchicalPortDummySizeProcessor",1578);G(1579,1,Pa,_mt),v.Kf=function(n,s){Q4n(this,b(n,36),s)},v.a=0;var dGi=V(_n,"HierarchicalPortOrthogonalEdgeRouter",1579);G(1580,1,ki,Emt),v.Ne=function(n,s){return Jan(b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var fGi=V(_n,"HierarchicalPortOrthogonalEdgeRouter/1",1580);G(1581,1,ki,wmt),v.Ne=function(n,s){return agn(b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var pGi=V(_n,"HierarchicalPortOrthogonalEdgeRouter/2",1581);G(1582,1,Pa,Smt),v.Kf=function(n,s){pwn(b(n,36),s)};var gGi=V(_n,"HierarchicalPortPositionProcessor",1582);G(1583,1,Pa,sSt),v.Kf=function(n,s){IIn(this,b(n,36))},v.a=0,v.c=0;var OJ,NJ,mGi=V(_n,"HighDegreeNodeLayeringProcessor",1583);G(580,1,{580:1},Tmt),v.b=-1,v.d=-1;var bGi=V(_n,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580);G(1584,1,{},xmt),v.Kb=function(n){return N$(),co(b(n,10))},v.Fb=function(n){return this===n};var yGi=V(_n,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584);G(1585,1,{},Cmt),v.Kb=function(n){return N$(),Ss(b(n,10))},v.Fb=function(n){return this===n};var vGi=V(_n,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585);G(1591,1,Pa,kmt),v.Kf=function(n,s){L3n(this,b(n,36),s)};var _Gi=V(_n,"HyperedgeDummyMerger",1591);G(804,1,{},s6e),v.a=!1,v.b=!1,v.c=!1;var EGi=V(_n,"HyperedgeDummyMerger/MergeState",804);G(1592,1,{},Amt),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var wGi=V(_n,"HyperedgeDummyMerger/lambda$0$Type",1592);G(1593,1,{},Rmt),v.Kb=function(n){return new Pr(null,new Gr(b(n,10).j,16))};var SGi=V(_n,"HyperedgeDummyMerger/lambda$1$Type",1593);G(1594,1,Ln,Imt),v.Cd=function(n){b(n,12).p=-1};var TGi=V(_n,"HyperedgeDummyMerger/lambda$2$Type",1594);G(1595,1,Pa,Omt),v.Kf=function(n,s){O3n(b(n,36),s)};var xGi=V(_n,"HypernodesProcessor",1595);G(1596,1,Pa,Nmt),v.Kf=function(n,s){U3n(b(n,36),s)};var CGi=V(_n,"InLayerConstraintProcessor",1596);G(1597,1,Pa,Lmt),v.Kf=function(n,s){Lmn(b(n,36),s)};var kGi=V(_n,"InnermostNodeMarginCalculator",1597);G(1598,1,Pa,Mmt),v.Kf=function(n,s){qRn(this,b(n,36))},v.a=Gs,v.b=Gs,v.c=Wa,v.d=Wa;var U6n=V(_n,"InteractiveExternalPortPositioner",1598);G(1599,1,{},Dmt),v.Kb=function(n){return b(n,18).d.i},v.Fb=function(n){return this===n};var AGi=V(_n,"InteractiveExternalPortPositioner/lambda$0$Type",1599);G(1600,1,{},_xt),v.Kb=function(n){return esn(this.a,ht(n))},v.Fb=function(n){return this===n};var RGi=V(_n,"InteractiveExternalPortPositioner/lambda$1$Type",1600);G(1601,1,{},Pmt),v.Kb=function(n){return b(n,18).c.i},v.Fb=function(n){return this===n};var IGi=V(_n,"InteractiveExternalPortPositioner/lambda$2$Type",1601);G(1602,1,{},Ext),v.Kb=function(n){return tsn(this.a,ht(n))},v.Fb=function(n){return this===n};var OGi=V(_n,"InteractiveExternalPortPositioner/lambda$3$Type",1602);G(1603,1,{},wxt),v.Kb=function(n){return Zsn(this.a,ht(n))},v.Fb=function(n){return this===n};var NGi=V(_n,"InteractiveExternalPortPositioner/lambda$4$Type",1603);G(1604,1,{},Sxt),v.Kb=function(n){return Jsn(this.a,ht(n))},v.Fb=function(n){return this===n};var LGi=V(_n,"InteractiveExternalPortPositioner/lambda$5$Type",1604);G(81,22,{3:1,34:1,22:1,81:1,196:1},Is),v.dg=function(){switch(this.g){case 15:return new Jbt;case 22:return new eyt;case 47:return new nyt;case 28:case 35:return new Wmt;case 32:return new Vgt;case 42:return new Ygt;case 1:return new Wgt;case 41:return new jgt;case 56:return new s5e((z6(),uz));case 0:return new s5e((z6(),h1e));case 2:return new Kgt;case 54:return new Xgt;case 33:return new emt;case 51:return new umt;case 55:return new mmt;case 13:return new bmt;case 38:return new vmt;case 44:return new _mt;case 40:return new Smt;case 9:return new sSt;case 49:return new SIt;case 37:return new kmt;case 43:return new Omt;case 27:return new Nmt;case 30:return new Lmt;case 3:return new Mmt;case 18:return new Fmt;case 29:return new $mt;case 5:return new oSt;case 50:return new Bmt;case 34:return new lSt;case 36:return new jmt;case 52:return new Qwt;case 11:return new Kmt;case 7:return new cSt;case 39:return new Xmt;case 45:return new Qmt;case 16:return new Zmt;case 10:return new g5t;case 48:return new r1t;case 21:return new n1t;case 23:return new Yle((zw(),v9));case 8:return new a1t;case 12:return new o1t;case 4:return new l1t;case 19:return new gSt;case 17:return new y1t;case 53:return new v1t;case 6:return new O1t;case 25:return new mkt;case 46:return new T1t;case 31:return new h6t;case 14:return new $1t;case 26:return new syt;case 20:return new H1t;case 24:return new Yle((zw(),Pee));default:throw ve(new dn(D0e+(this.f!=null?this.f:""+this.g)))}};var dUe,fUe,pUe,gUe,mUe,bUe,yUe,vUe,_Ue,EUe,ek,LJ,MJ,wUe,SUe,TUe,xUe,CUe,kUe,AUe,JD,RUe,IUe,OUe,NUe,LUe,d1e,DJ,PJ,MUe,BJ,FJ,$J,iN,Ax,Rx,DUe,UJ,GJ,PUe,zJ,VJ,BUe,FUe,$Ue,UUe,HJ,f1e,hz,qJ,YJ,WJ,jJ,GUe,zUe,VUe,HUe,G6n=ei(_n,P0e,81,li,Tzt,Uon),uJt;G(1605,1,Pa,Fmt),v.Kf=function(n,s){VRn(b(n,36),s)};var MGi=V(_n,"InvertedPortProcessor",1605);G(1606,1,Pa,$mt),v.Kf=function(n,s){Fkn(b(n,36),s)};var DGi=V(_n,"LabelAndNodeSizeProcessor",1606);G(1607,1,Si,Umt),v.Mb=function(n){return b(n,10).k==(mn(),Es)};var PGi=V(_n,"LabelAndNodeSizeProcessor/lambda$0$Type",1607);G(1608,1,Si,Gmt),v.Mb=function(n){return b(n,10).k==(mn(),As)};var BGi=V(_n,"LabelAndNodeSizeProcessor/lambda$1$Type",1608);G(1609,1,Ln,$6t),v.Cd=function(n){Ein(this.b,this.a,this.c,b(n,10))},v.a=!1,v.c=!1;var FGi=V(_n,"LabelAndNodeSizeProcessor/lambda$2$Type",1609);G(1610,1,Pa,oSt),v.Kf=function(n,s){gRn(b(n,36),s)};var hJt,$Gi=V(_n,"LabelDummyInserter",1610);G(1611,1,Nm,zmt),v.Lb=function(n){return nt(ce(b(n,72),(Qt(),zm)))===nt((Rg(),NN))},v.Fb=function(n){return this===n},v.Mb=function(n){return nt(ce(b(n,72),(Qt(),zm)))===nt((Rg(),NN))};var UGi=V(_n,"LabelDummyInserter/1",1611);G(1612,1,Pa,Bmt),v.Kf=function(n,s){nRn(b(n,36),s)};var GGi=V(_n,"LabelDummyRemover",1612);G(1613,1,Si,Vmt),v.Mb=function(n){return er(Jt(ce(b(n,72),(Qt(),tbe))))};var zGi=V(_n,"LabelDummyRemover/lambda$0$Type",1613);G(1378,1,Pa,lSt),v.Kf=function(n,s){K5n(this,b(n,36),s)},v.a=null;var p1e,VGi=V(_n,"LabelDummySwitcher",1378);G(293,1,{293:1},SVt),v.c=0,v.d=null,v.f=0;var HGi=V(_n,"LabelDummySwitcher/LabelDummyInfo",293);G(1379,1,{},Hmt),v.Kb=function(n){return QA(),new Pr(null,new Gr(b(n,30).a,16))};var qGi=V(_n,"LabelDummySwitcher/lambda$0$Type",1379);G(1380,1,Si,qmt),v.Mb=function(n){return QA(),b(n,10).k==(mn(),Jc)};var YGi=V(_n,"LabelDummySwitcher/lambda$1$Type",1380);G(1381,1,{},Txt),v.Kb=function(n){return Psn(this.a,b(n,10))};var WGi=V(_n,"LabelDummySwitcher/lambda$2$Type",1381);G(1382,1,Ln,xxt),v.Cd=function(n){rhn(this.a,b(n,293))};var jGi=V(_n,"LabelDummySwitcher/lambda$3$Type",1382);G(1383,1,ki,Ymt),v.Ne=function(n,s){return Cun(b(n,293),b(s,293))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var KGi=V(_n,"LabelDummySwitcher/lambda$4$Type",1383);G(802,1,Pa,Wmt),v.Kf=function(n,s){F0n(b(n,36),s)};var XGi=V(_n,"LabelManagementProcessor",802);G(1614,1,Pa,jmt),v.Kf=function(n,s){g4n(b(n,36),s)};var QGi=V(_n,"LabelSideSelector",1614);G(1622,1,Pa,Kmt),v.Kf=function(n,s){rAn(b(n,36),s)};var ZGi=V(_n,"LayerConstraintPostprocessor",1622);G(1623,1,Pa,cSt),v.Kf=function(n,s){QTn(b(n,36),s)};var qUe,JGi=V(_n,"LayerConstraintPreprocessor",1623);G(371,22,{3:1,34:1,22:1,371:1},_j);var dz,KJ,XJ,g1e,dJt=ei(_n,"LayerConstraintPreprocessor/HiddenNodeConnections",371,li,mpn,Gon),fJt;G(1624,1,Pa,Xmt),v.Kf=function(n,s){v5n(b(n,36),s)};var ezi=V(_n,"LayerSizeAndGraphHeightCalculator",1624);G(1625,1,Pa,Qmt),v.Kf=function(n,s){eCn(b(n,36),s)};var tzi=V(_n,"LongEdgeJoiner",1625);G(1626,1,Pa,Zmt),v.Kf=function(n,s){jAn(b(n,36),s)};var rzi=V(_n,"LongEdgeSplitter",1626);G(1627,1,Pa,g5t),v.Kf=function(n,s){IRn(this,b(n,36),s)},v.e=0,v.f=0,v.j=0,v.k=0,v.n=0,v.o=0;var pJt,gJt,nzi=V(_n,"NodePromotion",1627);G(1628,1,ki,Jmt),v.Ne=function(n,s){return V1n(b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var izi=V(_n,"NodePromotion/1",1628);G(1629,1,ki,e1t),v.Ne=function(n,s){return H1n(b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var azi=V(_n,"NodePromotion/2",1629);G(1630,1,{},t1t),v.Kb=function(n){return b(n,42),tK(),nn(),!0},v.Fb=function(n){return this===n};var szi=V(_n,"NodePromotion/lambda$0$Type",1630);G(1631,1,{},Rxt),v.Kb=function(n){return $dn(this.a,b(n,42))},v.Fb=function(n){return this===n},v.a=0;var ozi=V(_n,"NodePromotion/lambda$1$Type",1631);G(1632,1,{},Ixt),v.Kb=function(n){return Fdn(this.a,b(n,42))},v.Fb=function(n){return this===n},v.a=0;var lzi=V(_n,"NodePromotion/lambda$2$Type",1632);G(1633,1,Pa,r1t),v.Kf=function(n,s){TIn(b(n,36),s)};var czi=V(_n,"NorthSouthPortPostprocessor",1633);G(1634,1,Pa,n1t),v.Kf=function(n,s){iIn(b(n,36),s)};var uzi=V(_n,"NorthSouthPortPreprocessor",1634);G(1635,1,ki,i1t),v.Ne=function(n,s){return i1n(b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var hzi=V(_n,"NorthSouthPortPreprocessor/lambda$0$Type",1635);G(1636,1,Pa,a1t),v.Kf=function(n,s){v3n(b(n,36),s)};var dzi=V(_n,"PartitionMidprocessor",1636);G(1637,1,Si,s1t),v.Mb=function(n){return $a(b(n,10),(Qt(),yN))};var fzi=V(_n,"PartitionMidprocessor/lambda$0$Type",1637);G(1638,1,Ln,Oxt),v.Cd=function(n){$hn(this.a,b(n,10))};var pzi=V(_n,"PartitionMidprocessor/lambda$1$Type",1638);G(1639,1,Pa,o1t),v.Kf=function(n,s){ECn(b(n,36),s)};var gzi=V(_n,"PartitionPostprocessor",1639);G(1640,1,Pa,l1t),v.Kf=function(n,s){DTn(b(n,36),s)};var mzi=V(_n,"PartitionPreprocessor",1640);G(1641,1,Si,c1t),v.Mb=function(n){return $a(b(n,10),(Qt(),yN))};var bzi=V(_n,"PartitionPreprocessor/lambda$0$Type",1641);G(1642,1,{},u1t),v.Kb=function(n){return new Pr(null,new Aw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var yzi=V(_n,"PartitionPreprocessor/lambda$1$Type",1642);G(1643,1,Si,h1t),v.Mb=function(n){return xvn(b(n,18))};var vzi=V(_n,"PartitionPreprocessor/lambda$2$Type",1643);G(1644,1,Ln,d1t),v.Cd=function(n){E1n(b(n,18))};var _zi=V(_n,"PartitionPreprocessor/lambda$3$Type",1644);G(1645,1,Pa,gSt),v.Kf=function(n,s){Jkn(b(n,36),s)};var YUe,mJt,bJt,yJt,WUe,jUe,Ezi=V(_n,"PortListSorter",1645);G(1648,1,ki,f1t),v.Ne=function(n,s){return pMt(b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var wzi=V(_n,"PortListSorter/lambda$0$Type",1648);G(1650,1,ki,p1t),v.Ne=function(n,s){return WVt(b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Szi=V(_n,"PortListSorter/lambda$1$Type",1650);G(1646,1,{},g1t),v.Kb=function(n){return J6(),b(n,12).e};var Tzi=V(_n,"PortListSorter/lambda$2$Type",1646);G(1647,1,{},m1t),v.Kb=function(n){return J6(),b(n,12).g};var xzi=V(_n,"PortListSorter/lambda$3$Type",1647);G(1649,1,ki,b1t),v.Ne=function(n,s){return K_n(b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Czi=V(_n,"PortListSorter/lambda$4$Type",1649);G(1651,1,Pa,y1t),v.Kf=function(n,s){uxn(b(n,36),s)};var kzi=V(_n,"PortSideProcessor",1651);G(1652,1,Pa,v1t),v.Kf=function(n,s){hkn(b(n,36),s)};var Azi=V(_n,"ReversedEdgeRestorer",1652);G(1657,1,Pa,mkt),v.Kf=function(n,s){O_n(this,b(n,36),s)};var Rzi=V(_n,"SelfLoopPortRestorer",1657);G(1658,1,{},_1t),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var Izi=V(_n,"SelfLoopPortRestorer/lambda$0$Type",1658);G(1659,1,Si,E1t),v.Mb=function(n){return b(n,10).k==(mn(),Es)};var Ozi=V(_n,"SelfLoopPortRestorer/lambda$1$Type",1659);G(1660,1,Si,w1t),v.Mb=function(n){return $a(b(n,10),(Pt(),ES))};var Nzi=V(_n,"SelfLoopPortRestorer/lambda$2$Type",1660);G(1661,1,{},S1t),v.Kb=function(n){return b(ce(b(n,10),(Pt(),ES)),337)};var Lzi=V(_n,"SelfLoopPortRestorer/lambda$3$Type",1661);G(1662,1,Ln,kxt),v.Cd=function(n){Ywn(this.a,b(n,337))};var Mzi=V(_n,"SelfLoopPortRestorer/lambda$4$Type",1662);G(805,1,Ln,mAe),v.Cd=function(n){aSn(b(n,105))};var Dzi=V(_n,"SelfLoopPortRestorer/lambda$5$Type",805);G(1663,1,Pa,T1t),v.Kf=function(n,s){Bvn(b(n,36),s)};var Pzi=V(_n,"SelfLoopPostProcessor",1663);G(1664,1,{},x1t),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var Bzi=V(_n,"SelfLoopPostProcessor/lambda$0$Type",1664);G(1665,1,Si,C1t),v.Mb=function(n){return b(n,10).k==(mn(),Es)};var Fzi=V(_n,"SelfLoopPostProcessor/lambda$1$Type",1665);G(1666,1,Si,k1t),v.Mb=function(n){return $a(b(n,10),(Pt(),ES))};var $zi=V(_n,"SelfLoopPostProcessor/lambda$2$Type",1666);G(1667,1,Ln,A1t),v.Cd=function(n){j2n(b(n,10))};var Uzi=V(_n,"SelfLoopPostProcessor/lambda$3$Type",1667);G(1668,1,{},R1t),v.Kb=function(n){return new Pr(null,new Gr(b(n,105).f,1))};var Gzi=V(_n,"SelfLoopPostProcessor/lambda$4$Type",1668);G(1669,1,Ln,Cxt),v.Cd=function(n){_pn(this.a,b(n,340))};var zzi=V(_n,"SelfLoopPostProcessor/lambda$5$Type",1669);G(1670,1,Si,I1t),v.Mb=function(n){return!!b(n,105).i};var Vzi=V(_n,"SelfLoopPostProcessor/lambda$6$Type",1670);G(1671,1,Ln,Axt),v.Cd=function(n){_nn(this.a,b(n,105))};var Hzi=V(_n,"SelfLoopPostProcessor/lambda$7$Type",1671);G(1653,1,Pa,O1t),v.Kf=function(n,s){$xn(b(n,36),s)};var qzi=V(_n,"SelfLoopPreProcessor",1653);G(1654,1,{},N1t),v.Kb=function(n){return new Pr(null,new Gr(b(n,105).f,1))};var Yzi=V(_n,"SelfLoopPreProcessor/lambda$0$Type",1654);G(1655,1,{},L1t),v.Kb=function(n){return b(n,340).a};var Wzi=V(_n,"SelfLoopPreProcessor/lambda$1$Type",1655);G(1656,1,Ln,M1t),v.Cd=function(n){San(b(n,18))};var jzi=V(_n,"SelfLoopPreProcessor/lambda$2$Type",1656);G(1672,1,Pa,h6t),v.Kf=function(n,s){kwn(this,b(n,36),s)};var Kzi=V(_n,"SelfLoopRouter",1672);G(1673,1,{},D1t),v.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var Xzi=V(_n,"SelfLoopRouter/lambda$0$Type",1673);G(1674,1,Si,P1t),v.Mb=function(n){return b(n,10).k==(mn(),Es)};var Qzi=V(_n,"SelfLoopRouter/lambda$1$Type",1674);G(1675,1,Si,B1t),v.Mb=function(n){return $a(b(n,10),(Pt(),ES))};var Zzi=V(_n,"SelfLoopRouter/lambda$2$Type",1675);G(1676,1,{},F1t),v.Kb=function(n){return b(ce(b(n,10),(Pt(),ES)),337)};var Jzi=V(_n,"SelfLoopRouter/lambda$3$Type",1676);G(1677,1,Ln,KAt),v.Cd=function(n){Lhn(this.a,this.b,b(n,337))};var eVi=V(_n,"SelfLoopRouter/lambda$4$Type",1677);G(1678,1,Pa,$1t),v.Kf=function(n,s){n4n(b(n,36),s)};var tVi=V(_n,"SemiInteractiveCrossMinProcessor",1678);G(1679,1,Si,U1t),v.Mb=function(n){return b(n,10).k==(mn(),Es)};var rVi=V(_n,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679);G(1680,1,Si,G1t),v.Mb=function(n){return AOt(b(n,10))._b((Qt(),Fx))};var nVi=V(_n,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680);G(1681,1,ki,z1t),v.Ne=function(n,s){return _mn(b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var iVi=V(_n,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681);G(1682,1,{},V1t),v.Ve=function(n,s){return Uhn(b(n,10),b(s,10))};var aVi=V(_n,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682);G(1684,1,Pa,H1t),v.Kf=function(n,s){kAn(b(n,36),s)};var sVi=V(_n,"SortByInputModelProcessor",1684);G(1685,1,Si,q1t),v.Mb=function(n){return b(n,12).g.c.length!=0};var oVi=V(_n,"SortByInputModelProcessor/lambda$0$Type",1685);G(1686,1,Ln,Nxt),v.Cd=function(n){uSn(this.a,b(n,12))};var lVi=V(_n,"SortByInputModelProcessor/lambda$1$Type",1686);G(1759,817,{},F9t),v.df=function(n){var s,u,f,g;switch(this.c=n,this.a.g){case 2:s=new Ut,ys(pa(new Pr(null,new Gr(this.c.a.b,16)),new abt),new i5t(this,s)),ZU(this,new W1t),Ju(s,new j1t),s.c.length=0,ys(pa(new Pr(null,new Gr(this.c.a.b,16)),new K1t),new Mxt(s)),ZU(this,new X1t),Ju(s,new Q1t),s.c.length=0,u=$Rt(ode(UT(new Pr(null,new Gr(this.c.a.b,16)),new Dxt(this))),new Z1t),ys(new Pr(null,new Gr(this.c.a.a,16)),new ZAt(u,s)),ZU(this,new ebt),Ju(s,new tbt),s.c.length=0;break;case 3:f=new Ut,ZU(this,new Y1t),g=$Rt(ode(UT(new Pr(null,new Gr(this.c.a.b,16)),new Lxt(this))),new J1t),ys(pa(new Pr(null,new Gr(this.c.a.b,16)),new rbt),new e5t(g,f)),ZU(this,new nbt),Ju(f,new ibt),f.c.length=0;break;default:throw ve(new nkt)}},v.b=0;var cVi=V(Vs,"EdgeAwareScanlineConstraintCalculation",1759);G(1760,1,Nm,Y1t),v.Lb=function(n){return He(b(n,60).g,154)},v.Fb=function(n){return this===n},v.Mb=function(n){return He(b(n,60).g,154)};var uVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760);G(1761,1,{},Lxt),v.Ye=function(n){return WSn(this.a,b(n,60))};var hVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761);G(1769,1,nZ,XAt),v.de=function(){W8(this.a,this.b,-1)},v.b=0;var dVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769);G(1771,1,Nm,W1t),v.Lb=function(n){return He(b(n,60).g,154)},v.Fb=function(n){return this===n},v.Mb=function(n){return He(b(n,60).g,154)};var fVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771);G(1772,1,Ln,j1t),v.Cd=function(n){b(n,380).de()};var pVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772);G(1773,1,Si,K1t),v.Mb=function(n){return He(b(n,60).g,10)};var gVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773);G(1775,1,Ln,Mxt),v.Cd=function(n){fyn(this.a,b(n,60))};var mVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775);G(1774,1,nZ,t5t),v.de=function(){W8(this.b,this.a,-1)},v.a=0;var bVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774);G(1776,1,Nm,X1t),v.Lb=function(n){return He(b(n,60).g,10)},v.Fb=function(n){return this===n},v.Mb=function(n){return He(b(n,60).g,10)};var yVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776);G(1777,1,Ln,Q1t),v.Cd=function(n){b(n,380).de()};var vVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777);G(1778,1,{},Dxt),v.Ye=function(n){return jSn(this.a,b(n,60))};var _Vi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778);G(1779,1,{},Z1t),v.We=function(){return 0};var EVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779);G(1762,1,{},J1t),v.We=function(){return 0};var wVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762);G(1781,1,Ln,ZAt),v.Cd=function(n){yun(this.a,this.b,b(n,316))},v.a=0;var SVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781);G(1780,1,nZ,JAt),v.de=function(){JGt(this.a,this.b,-1)},v.b=0;var TVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780);G(1782,1,Nm,ebt),v.Lb=function(n){return b(n,60),!0},v.Fb=function(n){return this===n},v.Mb=function(n){return b(n,60),!0};var xVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782);G(1783,1,Ln,tbt),v.Cd=function(n){b(n,380).de()};var CVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783);G(1763,1,Si,rbt),v.Mb=function(n){return He(b(n,60).g,10)};var kVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763);G(1765,1,Ln,e5t),v.Cd=function(n){vun(this.a,this.b,b(n,60))},v.a=0;var AVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765);G(1764,1,nZ,r5t),v.de=function(){W8(this.b,this.a,-1)},v.a=0;var RVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764);G(1766,1,Nm,nbt),v.Lb=function(n){return b(n,60),!0},v.Fb=function(n){return this===n},v.Mb=function(n){return b(n,60),!0};var IVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766);G(1767,1,Ln,ibt),v.Cd=function(n){b(n,380).de()};var OVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767);G(1768,1,Si,abt),v.Mb=function(n){return He(b(n,60).g,154)};var NVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768);G(1770,1,Ln,i5t),v.Cd=function(n){Bgn(this.a,this.b,b(n,60))};var LVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770);G(1586,1,Pa,SIt),v.Kf=function(n,s){e5n(this,b(n,36),s)};var vJt,MVi=V(Vs,"HorizontalGraphCompactor",1586);G(1587,1,{},Pxt),v.ff=function(n,s){var u,f,g;if(RNe(n,s))return 0;if(u=g4(n),f=g4(s),!!u&&u.k==(mn(),As)||!!f&&f.k==(mn(),As))return 0;return g=b(ce(this.a.a,(Pt(),ck)),312),asn(g,u?u.k:(mn(),mo),f?f.k:(mn(),mo))},v.gf=function(n,s){var u,f,g;if(RNe(n,s))return 1;return u=g4(n),f=g4(s),g=b(ce(this.a.a,(Pt(),ck)),312),_Ie(g,u?u.k:(mn(),mo),f?f.k:(mn(),mo))};var DVi=V(Vs,"HorizontalGraphCompactor/1",1587);G(1588,1,{},sbt),v.ef=function(n,s){return xM(),n.a.i==0};var PVi=V(Vs,"HorizontalGraphCompactor/lambda$0$Type",1588);G(1589,1,{},Bxt),v.ef=function(n,s){return Vhn(this.a,n,s)};var BVi=V(Vs,"HorizontalGraphCompactor/lambda$1$Type",1589);G(1730,1,{},fDt);var _Jt,EJt,FVi=V(Vs,"LGraphToCGraphTransformer",1730);G(1738,1,Si,obt),v.Mb=function(n){return n!=null};var $Vi=V(Vs,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738);G(1731,1,{},lbt),v.Kb=function(n){return r0(),hc(ce(b(b(n,60).g,10),(Pt(),Ea)))};var UVi=V(Vs,"LGraphToCGraphTransformer/lambda$0$Type",1731);G(1732,1,{},cbt),v.Kb=function(n){return r0(),TBt(b(b(n,60).g,154))};var GVi=V(Vs,"LGraphToCGraphTransformer/lambda$1$Type",1732);G(1741,1,Si,ubt),v.Mb=function(n){return r0(),He(b(n,60).g,10)};var zVi=V(Vs,"LGraphToCGraphTransformer/lambda$10$Type",1741);G(1742,1,Ln,hbt),v.Cd=function(n){jhn(b(n,60))};var VVi=V(Vs,"LGraphToCGraphTransformer/lambda$11$Type",1742);G(1743,1,Si,dbt),v.Mb=function(n){return r0(),He(b(n,60).g,154)};var HVi=V(Vs,"LGraphToCGraphTransformer/lambda$12$Type",1743);G(1747,1,Ln,fbt),v.Cd=function(n){xbn(b(n,60))};var qVi=V(Vs,"LGraphToCGraphTransformer/lambda$13$Type",1747);G(1744,1,Ln,Fxt),v.Cd=function(n){Zin(this.a,b(n,8))},v.a=0;var YVi=V(Vs,"LGraphToCGraphTransformer/lambda$14$Type",1744);G(1745,1,Ln,$xt),v.Cd=function(n){ean(this.a,b(n,116))},v.a=0;var WVi=V(Vs,"LGraphToCGraphTransformer/lambda$15$Type",1745);G(1746,1,Ln,Uxt),v.Cd=function(n){Jin(this.a,b(n,8))},v.a=0;var jVi=V(Vs,"LGraphToCGraphTransformer/lambda$16$Type",1746);G(1748,1,{},pbt),v.Kb=function(n){return r0(),new Pr(null,new Aw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var KVi=V(Vs,"LGraphToCGraphTransformer/lambda$17$Type",1748);G(1749,1,Si,gbt),v.Mb=function(n){return r0(),gl(b(n,18))};var XVi=V(Vs,"LGraphToCGraphTransformer/lambda$18$Type",1749);G(1750,1,Ln,Gxt),v.Cd=function(n){ggn(this.a,b(n,18))};var QVi=V(Vs,"LGraphToCGraphTransformer/lambda$19$Type",1750);G(1734,1,Ln,zxt),v.Cd=function(n){zfn(this.a,b(n,154))};var ZVi=V(Vs,"LGraphToCGraphTransformer/lambda$2$Type",1734);G(1751,1,{},mbt),v.Kb=function(n){return r0(),new Pr(null,new Gr(b(n,30).a,16))};var JVi=V(Vs,"LGraphToCGraphTransformer/lambda$20$Type",1751);G(1752,1,{},bbt),v.Kb=function(n){return r0(),new Pr(null,new Aw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var eHi=V(Vs,"LGraphToCGraphTransformer/lambda$21$Type",1752);G(1753,1,{},ybt),v.Kb=function(n){return r0(),b(ce(b(n,18),(Pt(),bE)),15)};var tHi=V(Vs,"LGraphToCGraphTransformer/lambda$22$Type",1753);G(1754,1,Si,vbt),v.Mb=function(n){return ssn(b(n,15))};var rHi=V(Vs,"LGraphToCGraphTransformer/lambda$23$Type",1754);G(1755,1,Ln,Vxt),v.Cd=function(n){PSn(this.a,b(n,15))};var nHi=V(Vs,"LGraphToCGraphTransformer/lambda$24$Type",1755);G(1733,1,Ln,a5t),v.Cd=function(n){$pn(this.a,this.b,b(n,154))};var iHi=V(Vs,"LGraphToCGraphTransformer/lambda$3$Type",1733);G(1735,1,{},_bt),v.Kb=function(n){return r0(),new Pr(null,new Gr(b(n,30).a,16))};var aHi=V(Vs,"LGraphToCGraphTransformer/lambda$4$Type",1735);G(1736,1,{},Ebt),v.Kb=function(n){return r0(),new Pr(null,new Aw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var sHi=V(Vs,"LGraphToCGraphTransformer/lambda$5$Type",1736);G(1737,1,{},wbt),v.Kb=function(n){return r0(),b(ce(b(n,18),(Pt(),bE)),15)};var oHi=V(Vs,"LGraphToCGraphTransformer/lambda$6$Type",1737);G(1739,1,Ln,Hxt),v.Cd=function(n){KSn(this.a,b(n,15))};var lHi=V(Vs,"LGraphToCGraphTransformer/lambda$8$Type",1739);G(1740,1,Ln,s5t),v.Cd=function(n){Tan(this.a,this.b,b(n,154))};var cHi=V(Vs,"LGraphToCGraphTransformer/lambda$9$Type",1740);G(1729,1,{},Sbt),v.cf=function(n){var s,u,f,g,_;this.a=n,this.d=new Ble,this.c=mt(R$e,en,125,this.a.a.a.c.length,0,1),this.b=0;for(u=new me(this.a.a.a);u.a>>28]|n[t>>24&15]<<4|n[t>>20&15]<<8|n[t>>16&15]<<12|n[t>>12&15]<<16|n[t>>8&15]<<20|n[t>>4&15]<<24|n[t&15]<<28}function w$t(t){var n,s,u;if(t.b!=t.c)return;if(u=t.a.length,s=xLe(d.Math.max(8,u))<<1,t.b!=0)n=t0(t.a,s),F9t(t,n,u),t.a=n,t.b=0;else kT(t.a,s);t.c=u}function W_n(t,n){var s=t.b;return s.pf((Hi(),Ed))?s.ag()==(Ht(),yn)?-s.Mf().a-rt(ht(s.of(Ed))):n+rt(ht(s.of(Ed))):s.ag()==(Ht(),yn)?-s.Mf().a:n}function qU(t){var n;if(t.b.c.length!=0&&!!b(nr(t.b,0),72).a)return b(nr(t.b,0),72).a;if(n=Zue(t),n!=null)return n;return""+(!t.c?-1:rc(t.c.a,t,0))}function EQ(t){var n;if(t.f.c.length!=0&&!!b(nr(t.f,0),72).a)return b(nr(t.f,0),72).a;if(n=Zue(t),n!=null)return n;return""+(!t.i?-1:rc(t.i.j,t,0))}function j_n(t,n){var s,u;if(n<0||n>=t.gc())return null;for(s=n;s0?t.c:0),f=d.Math.max(f,n.d),++u;t.e=g,t.b=f}function X_n(t){var n,s;if(!t.b){t.b=KK(b(t.f,123).kh().i);for(s=new kn(b(t.f,123).kh());s.e!=s.i.gc();)n=b(Dn(s),135),Gt(t.b,new Xle(n))}return t.b}function Q_n(t,n){var s,u,f;if(n.dc())return p6(),p6(),dV;else{s=new a6t(t,n.gc());for(f=new kn(t);f.e!=f.i.gc();)u=Dn(f),n.Hc(u)&&ii(s,u);return s}}function K7e(t,n,s,u){if(n==0)return u?(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),t.o):(!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),sU(t.o));return dQ(t,n,s,u)}function Efe(t){var n,s;if(t.rb)for(n=0,s=t.rb.i;n>22),f+=u>>22,f<0)return!1;return t.l=s&yd,t.m=u&yd,t.h=f&Mb,!0}function wfe(t,n,s,u,f,g,E){var S,C;if(n.Te()&&(C=t.a.Ne(s,u),C<0||!f&&C==0))return!1;if(n.Ue()&&(S=t.a.Ne(s,g),S>0||!E&&S==0))return!1;return!0}function t2n(t,n){tO();var s=t.j.g-n.j.g;if(s!=0)return 0;switch(t.j.g){case 2:return zde(n,QUe)-zde(t,QUe);case 4:return zde(t,XUe)-zde(n,XUe)}return 0}function r2n(t){switch(t.g){case 0:return M1e;case 1:return D1e;case 2:return P1e;case 3:return B1e;case 4:return see;case 5:return F1e;default:return null}}function Yl(t,n,s){var u,f;return u=(f=new Hle,Q2(f,n),zu(f,s),ii((!t.c&&(t.c=new kt(LS,t,12,10)),t.c),f),f),Ay(u,0),QT(u,1),Ly(u,!0),Ny(u,!0),u}function l5(t,n){var s,u;if(n>=t.i)throw _e(new qce(n,t.i));return++t.j,s=t.g[n],u=t.i-n-1,u>0&&au(t.g,n+1,t.g,n,u),ls(t.g,--t.i,null),t.Qi(n,s),t.Ni(),s}function S$t(t,n){var s,u;if(t.Db>>16==17)return t.Cb.Th(t,21,Ip,n);return u=El(b(jr((s=b(un(t,16),29),!s?t.ii():s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function n2n(t){var n,s,u,f;Hr(),ks(t.c,t.a);for(f=new me(t.c);f.as.a.c.length))throw _e(new fn("index must be >= 0 and <= layer node count"));!!t.c&&fh(t.c.a,t),t.c=s,!!s&&Cw(s.a,n,t)}function A$t(t,n){var s,u,f;for(u=new Nn(Mn(Ab(t).a.Kc(),new L));ri(u);)return s=b(Gn(u),18),f=b(n.Kb(s),10),new PW(mi(f.n.b+f.o.b/2));return vM(),vM(),vme}function R$t(t,n){this.c=new Zn,this.a=t,this.b=n,this.d=b(ce(t,(Pt(),uk)),312),it(ce(t,(Qt(),Dze)))===it((uU(),oee))?this.e=new Tkt:this.e=new Skt}function j8(t,n){var s,u;if(u=null,t.pf((Hi(),W5)))s=b(t.of(W5),96),s.pf(n)&&(u=s.of(n));return u==null&&!!t.Tf()&&(u=t.Tf().of(n)),u==null&&(u=jt(n)),u}function Sfe(t,n){var s,u;s=t.fd(n);try{return u=s.Pb(),s.Qb(),u}catch(f){if(f=Qa(f),He(f,112))throw _e(new Gl("Can't remove element "+n));else throw _e(f)}}function h2n(t,n){var s,u,f;if(u=new sj,f=new ALe(u.q.getFullYear()-c_,u.q.getMonth(),u.q.getDate()),s=wAn(t,n,f),s==0||s0?n:0),++s;return new Dt(u,f)}function eMe(t,n){var s,u;if(t.Db>>16==6)return t.Cb.Th(t,6,ws,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Xc(),Tte):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function tMe(t,n){var s,u;if(t.Db>>16==7)return t.Cb.Th(t,1,oV,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Xc(),rWe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function rMe(t,n){var s,u;if(t.Db>>16==9)return t.Cb.Th(t,9,ra,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Xc(),iWe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function N$t(t,n){var s,u;if(t.Db>>16==5)return t.Cb.Th(t,9,Lte,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Vr(),tv):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function L$t(t,n){var s,u;if(t.Db>>16==7)return t.Cb.Th(t,6,ng,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Vr(),nv):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function nMe(t,n){var s,u;if(t.Db>>16==3)return t.Cb.Th(t,0,cV,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Vr(),ev):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function M$t(){this.a=new B2t,this.g=new bQ,this.j=new bQ,this.b=new Zn,this.d=new bQ,this.i=new bQ,this.k=new Zn,this.c=new Zn,this.e=new Zn,this.f=new Zn}function p2n(t,n,s){var u,f,g;s<0&&(s=0),g=t.i;for(f=s;fl0e)return pO(t,u);if(u==t)return!0}}return!1}function m2n(t){switch(Xj(),t.q.g){case 5:mGt(t,(Ht(),gn)),mGt(t,Kn);break;case 4:bzt(t,(Ht(),gn)),bzt(t,Kn);break;default:_qt(t,(Ht(),gn)),_qt(t,Kn)}}function b2n(t){switch(Xj(),t.q.g){case 5:DGt(t,(Ht(),Cn)),DGt(t,yn);break;case 4:UFt(t,(Ht(),Cn)),UFt(t,yn);break;default:Eqt(t,(Ht(),Cn)),Eqt(t,yn)}}function y2n(t){var n,s;if(n=b(ce(t,(c0(),kZt)),17),n)s=n.a,s==0?At(t,(Xv(),NJ),new Yde):At(t,(Xv(),NJ),new JK(s));else At(t,(Xv(),NJ),new JK(1))}function v2n(t,n){var s=t.i;switch(n.g){case 1:return-(t.n.b+t.o.b);case 2:return t.n.a-s.o.a;case 3:return t.n.b-s.o.b;case 4:return-(t.n.a+t.o.a)}return 0}function _2n(t,n){switch(t.g){case 0:return n==(Uf(),__)?ZJ:JJ;case 1:return n==(Uf(),__)?ZJ:gz;case 2:return n==(Uf(),__)?gz:JJ;default:return gz}}function WU(t,n){var s,u,f;fh(t.a,n),t.e-=n.r+(t.a.c.length==0?0:t.c),f=dBe;for(u=new me(t.a);u.a>16==3)return t.Cb.Th(t,12,ra,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Xc(),tWe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function aMe(t,n){var s,u;if(t.Db>>16==11)return t.Cb.Th(t,10,ra,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Xc(),nWe):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function D$t(t,n){var s,u;if(t.Db>>16==10)return t.Cb.Th(t,11,Ip,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Vr(),rv):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function P$t(t,n){var s,u;if(t.Db>>16==10)return t.Cb.Th(t,12,Op,n);return u=El(b(jr((s=b(un(t,16),29),!s?(Vr(),tC):s),t.Db>>16),19)),t.Cb.Th(t,u.n,u.f,n)}function vp(t){var n;if((t.Bb&1)==0&&!!t.r&&t.r.Vh())n=b(t.r,54),t.r=b(e_(t,n),142),t.r!=n&&(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,9,8,n,t.r));return t.r}function Tfe(t,n,s){var u=Ce(Te(xo,1),Ml,28,15,[OMe(t,(K0(),Mc),n,s),OMe(t,qu,n,s),OMe(t,Dc,n,s)]);if(t.f)u[0]=d.Math.max(u[0],u[2]),u[2]=u[0];return u}function E2n(t,n){var s,u,f;if(f=qvn(t,n),f.c.length==0)return;ks(f,new Qmt),s=f.c.length;for(u=0;u>19,O=n.h>>19,C!=O)return O-C;if(f=t.h,S=n.h,f!=S)return f-S;if(u=t.m,E=n.m,u!=E)return u-E;return s=t.l,g=n.l,s-g}function wQ(){wQ=z,w$e=(HQ(),zme),E$e=new Dr(a9e,w$e),_$e=(gX(),Gme),v$e=new Dr(s9e,_$e),y$e=(lQ(),Ume),b$e=new Dr(o9e,y$e),m$e=new Dr(l9e,(an(),!0))}function K8(t,n,s){var u,f;if(u=n*s,He(t.g,154))if(f=jA(t),f.f.d)f.f.a||(t.d.a+=u+Dg);else t.d.d-=u+Dg,t.d.a+=u+Dg;else if(He(t.g,10))t.d.d-=u,t.d.a+=2*u}function B$t(t,n,s){var u,f,g,E,S;f=t[s.g];for(S=new me(n.d);S.a0?t.b:0),++s;n.b=u,n.e=f}function F$t(t){var n,s,u;if(u=t.b,RAt(t.i,u.length)){s=u.length*2,t.b=mt(Sme,TG,303,s,0,1),t.c=mt(Sme,TG,303,s,0,1),t.f=s-1,t.i=0;for(n=t.a;n;n=n.c)rG(t,n,n);++t.g}}function A2n(t,n,s,u){var f,g,E,S;for(f=0;fE&&(S=E/u),f>g&&(C=g/f),_m(t,d.Math.min(S,C)),t}function I2n(){XQ();var t,n;try{if(n=b(mMe((Fv(),Np),ZO),2113),n)return n}catch(s){if(s=Qa(s),He(s,103))t=s,aOe((yi(),t));else throw _e(s)}return new L2t}function O2n(){XQ();var t,n;try{if(n=b(mMe((Fv(),Np),Sp),2040),n)return n}catch(s){if(s=Qa(s),He(s,103))t=s,aOe((yi(),t));else throw _e(s)}return new sEt}function N2n(){j8t();var t,n;try{if(n=b(mMe((Fv(),Np),fE),2122),n)return n}catch(s){if(s=Qa(s),He(s,103))t=s,aOe((yi(),t));else throw _e(s)}return new JEt}function L2n(t,n,s){var u,f;if(f=t.e,t.e=n,(t.Db&4)!=0&&(t.Db&1)==0)u=new go(t,1,4,f,n),!s?s=u:s.nj(u);return f!=n&&(n?s=IO(t,DQ(t,n),s):s=IO(t,t.a,s)),s}function $$t(){sj.call(this),this.e=-1,this.a=!1,this.p=Qo,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Qo}function M2n(t,n){var s,u,f;if(u=t.b.d.d,t.a||(u+=t.b.d.a),f=n.b.d.d,n.a||(f+=n.b.d.a),s=Ra(u,f),s==0){if(!t.a&&n.a)return-1;else if(!n.a&&t.a)return 1}return s}function D2n(t,n){var s,u,f;if(u=t.b.b.d,t.a||(u+=t.b.b.a),f=n.b.b.d,n.a||(f+=n.b.b.a),s=Ra(u,f),s==0){if(!t.a&&n.a)return-1;else if(!n.a&&t.a)return 1}return s}function P2n(t,n){var s,u,f;if(u=t.b.g.d,t.a||(u+=t.b.g.a),f=n.b.g.d,n.a||(f+=n.b.g.a),s=Ra(u,f),s==0){if(!t.a&&n.a)return-1;else if(!n.a&&t.a)return 1}return s}function oMe(){oMe=z,qZt=Lh(Fi(Fi(Fi(new Ns,(Xo(),wu),(il(),PUe)),wu,BUe),ac,FUe),ac,xUe),WZt=Fi(Fi(new Ns,wu,yUe),wu,CUe),YZt=Lh(new Ns,ac,AUe)}function B2n(t){var n,s,u,f,g;n=b(ce(t,(Pt(),o9)),85),g=t.n;for(u=n.Cc().Kc();u.Ob();)s=b(u.Pb(),314),f=s.i,f.c+=g.a,f.d+=g.b,s.c?iVt(s):aVt(s);At(t,o9,null)}function F2n(t,n,s){var u,f;switch(f=t.b,u=f.d,n.g){case 1:return-u.d-s;case 2:return f.o.a+u.c+s;case 3:return f.o.b+u.a+s;case 4:return-u.b-s;default:return-1}}function $2n(t,n,s){var u,f;s.Ug("Interactive node placement",1),t.a=b(ce(n,(Pt(),uk)),312);for(f=new me(n.b);f.a0){if(E=(g&sa)%t.d.length,f=u8e(t,E,g,n),f)return S=f.nd(s),S}return u=t.ck(g,n,s),t.c.Fc(u),null}function uMe(t,n){var s,u,f,g;switch(Oy(t,n).Kl()){case 3:case 2:{s=B4(n);for(f=0,g=s.i;f=0;u--)if(Br(t[u].d,n)||Br(t[u].d,s)){t.length>=u+1&&t.splice(0,u+1);break}return t}function KU(t,n){var s;if(cc(t)&&cc(n)){if(s=t/n,kG0)t.b+=2,t.a+=u}else t.b+=1,t.a+=d.Math.min(u,f)}function Y$t(t){var n=b(ce(b(Gf(t.b,0),40),(Oc(),nHe)),107);At(t,(Ma(),AN),new Dt(0,0)),BVt(new iU,t,n.b+n.c-rt(ht(ce(t,$be))),n.d+n.a-rt(ht(ce(t,Ube))))}function W$t(t,n){var s,u;if(u=!1,So(n))u=!0,zA(t,new GT(wi(n)));if(!u){if(He(n,242))u=!0,zA(t,(s=i6e(b(n,242)),new BW(s)))}if(!u)throw _e(new Zle(lFe))}function rEn(t,n,s,u){var f,g,E;return f=new wb(t.e,1,10,(E=n.c,He(E,90)?b(E,29):(Vr(),Lp)),(g=s.c,He(g,90)?b(g,29):(Vr(),Lp)),Py(t,n),!1),!u?u=f:u.nj(f),u}function fMe(t){var n,s;switch(b(ce(zo(t),(Qt(),Aze)),429).g){case 0:return n=t.n,s=t.o,new Dt(n.a+s.a/2,n.b+s.b/2);case 1:return new sl(t.n);default:return null}}function XU(){XU=z,lee=new BM(Dm,0),fGe=new BM("LEFTUP",1),gGe=new BM("RIGHTUP",2),dGe=new BM("LEFTDOWN",3),pGe=new BM("RIGHTDOWN",4),$1e=new BM("BALANCED",5)}function nEn(t,n,s){var u,f,g;if(u=Ra(t.a[n.p],t.a[s.p]),u==0){if(f=b(ce(n,(Pt(),F5)),15),g=b(ce(s,F5),15),f.Hc(s))return-1;else if(g.Hc(n))return 1}return u}function iEn(t){switch(t.g){case 1:return new f_t;case 2:return new p_t;case 3:return new d_t;case 0:return null;default:throw _e(new fn(Tge+(t.f!=null?t.f:""+t.g)))}}function pMe(t,n,s){switch(n){case 1:!t.n&&(t.n=new kt(Dl,t,1,7)),ni(t.n),!t.n&&(t.n=new kt(Dl,t,1,7)),ps(t.n,b(s,16));return;case 2:V6(t,wi(s));return}MLe(t,n,s)}function gMe(t,n,s){switch(n){case 3:Gw(t,rt(ht(s)));return;case 4:zw(t,rt(ht(s)));return;case 5:eh(t,rt(ht(s)));return;case 6:th(t,rt(ht(s)));return}pMe(t,n,s)}function SQ(t,n,s){var u,f,g;g=(u=new Hle,u),f=Ng(g,n,null),!!f&&f.oj(),zu(g,s),ii((!t.c&&(t.c=new kt(LS,t,12,10)),t.c),g),Ay(g,0),QT(g,1),Ly(g,!0),Ny(g,!0)}function mMe(t,n){var s,u,f;if(s=NM(t.i,n),He(s,241))return f=b(s,241),f.zi()==null,f.wi();else if(He(s,507))return u=b(s,2037),f=u.b,f;else return null}function aEn(t,n,s,u){var f,g;return mi(n),mi(s),g=b(t8(t.d,n),17),_Dt(!!g,"Row %s not in %s",n,t.e),f=b(t8(t.b,s),17),_Dt(!!f,"Column %s not in %s",s,t.c),OPt(t,g.a,f.a,u)}function j$t(t,n,s,u,f,g,E){var S,C,O,M,U;if(M=f[g],O=g==E-1,S=O?u:0,U=f$t(S,M),u!=10&&Ce(Te(t,E-g),n[g],s[g],S,U),!O){++g;for(C=0;C1||S==-1)g=b(C,15),f.Wb(zyn(t,g));else f.Wb(cpe(t,b(C,58)))}}function dEn(t,n,s,u){iAt();var f=yme;p=n,m=s,R6n=u;function g(){for(var E=0;E0)return!1;return!0}function gEn(t){var n,s,u,f,g;for(u=new W2(new R2(t.b).a);u.b;)s=qw(u),n=b(s.ld(),10),g=b(b(s.md(),42).a,10),f=b(b(s.md(),42).b,8),ua(V0(n.n),ua(Uo(g.n),f))}function mEn(t){switch(b(ce(t.b,(Qt(),Eze)),387).g){case 1:ys(ec(wc(new Pr(null,new Gr(t.d,16)),new Vbt),new Hbt),new qbt);break;case 2:hkn(t);break;case 0:VSn(t)}}function bEn(t,n,s){var u,f,g;u=s,!u&&(u=new vA),u.Ug("Layout",t.a.c.length);for(g=new me(t.a);g.a_ge)return s;else f>-0.000001&&++s;return s}function yMe(t,n){var s;if(n!=t.b)s=null,!!t.b&&(s=GK(t.b,t,-4,s)),!!n&&(s=o5(n,t,-4,s)),s=TBt(t,n,s),!!s&&s.oj();else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,n,n))}function Q$t(t,n){var s;if(n!=t.f)s=null,!!t.f&&(s=GK(t.f,t,-1,s)),!!n&&(s=o5(n,t,-1,s)),s=SBt(t,n,s),!!s&&s.oj();else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,0,n,n))}function EEn(t,n,s,u){var f,g,E,S;if(Ad(t.e))f=n.Lk(),S=n.md(),g=s.md(),E=Wv(t,1,f,S,g,f.Jk()?kO(t,f,g,He(f,102)&&(b(f,19).Bb&ml)!=0):-1,!0),u?u.nj(E):u=E;return u}function Z$t(t){var n,s,u;if(t==null)return null;if(s=b(t,15),s.dc())return"";u=new gy;for(n=s.Kc();n.Ob();)Ol(u,(ka(),wi(n.Pb()))),u.a+=" ";return Wce(u,u.a.length-1)}function J$t(t){var n,s,u;if(t==null)return null;if(s=b(t,15),s.dc())return"";u=new gy;for(n=s.Kc();n.Ob();)Ol(u,(ka(),wi(n.Pb()))),u.a+=" ";return Wce(u,u.a.length-1)}function wEn(t,n,s){var u,f;if(u=t.c[n.c.p][n.p],f=t.c[s.c.p][s.p],u.a!=null&&f.a!=null)return Due(u.a,f.a);else if(u.a!=null)return-1;else if(f.a!=null)return 1;return 0}function SEn(t,n,s){return s.Ug("Tree layout",1),H$(t.b),H0(t.b,(c5(),Vee),Vee),H0(t.b,T9,T9),H0(t.b,x9,x9),H0(t.b,C9,C9),t.a=mG(t.b,n),bEn(t,n,s.eh(1)),s.Vg(),n}function TEn(t,n){var s,u,f,g,E,S;if(n){g=n.a.length,s=new P2(g);for(S=(s.b-s.a)*s.c<0?($v(),D_):new zv(s);S.Ob();)E=b(S.Pb(),17),f=R6(n,E.a),u=new _4t(t),Nhn(u.a,f)}}function xEn(t,n){var s,u,f,g,E,S;if(n){g=n.a.length,s=new P2(g);for(S=(s.b-s.a)*s.c<0?($v(),D_):new zv(s);S.Ob();)E=b(S.Pb(),17),f=R6(n,E.a),u=new h4t(t),Ohn(u.a,f)}}function CEn(t){var n;if(t!=null&&t.length>0&&Ko(t,t.length-1)==33)try{return n=ozt(Of(t,0,t.length-1)),n.e==null}catch(s){if(s=Qa(s),!He(s,33))throw _e(s)}return!1}function kEn(t,n,s){var u,f,g;switch(u=zo(n),f=XX(u),g=new iu,Ec(g,n),s.g){case 1:Xs(g,FU(i5(f)));break;case 2:Xs(g,i5(f))}return At(g,(Qt(),Fx),ht(ce(t,Fx))),g}function vMe(t){var n,s;return n=b(Gn(new Nn(Mn(co(t.a).a.Kc(),new L))),18),s=b(Gn(new Nn(Mn(Ss(t.a).a.Kc(),new L))),18),er(Jt(ce(n,(Pt(),Ug))))||er(Jt(ce(s,Ug)))}function ax(){ax=z,mz=new u$("ONE_SIDE",0),ree=new u$("TWO_SIDES_CORNER",1),nee=new u$("TWO_SIDES_OPPOSING",2),tee=new u$("THREE_SIDES",3),eee=new u$("FOUR_SIDES",4)}function eUt(t,n){var s,u,f,g;g=new Ut,f=0,u=n.Kc();while(u.Ob()){s=$t(b(u.Pb(),17).a+f);while(s.a=t.f)break;rn(g.c,s)}return g}function AEn(t,n){var s,u,f,g,E;for(g=new me(n.a);g.a0&&T$t(this,this.c-1,(Ht(),Cn)),this.c0&&t[0].length>0&&(this.c=er(Jt(ce(zo(t[0][0]),(Pt(),IGe))))),this.a=mt(Krr,Bt,2117,t.length,0,2),this.b=mt(Xrr,Bt,2118,t.length,0,2),this.d=new yBt}function LEn(t){if(t.c.length==0)return!1;if((qr(0,t.c.length),b(t.c[0],18)).c.i.k==(bn(),mo))return!0;return y4(ec(new Pr(null,new Gr(t,16)),new Tyt),new xyt)}function nUt(t,n){var s,u,f,g,E,S,C;S=ux(n),g=n.f,C=n.g,E=d.Math.sqrt(g*g+C*C),f=0;for(u=new me(S);u.a=0)s=KU(t,oZ),u=UU(t,oZ);else n=Vv(t,1),s=KU(n,500000000),u=UU(n,500000000),u=rl(n0(u,1),io(t,1));return q0(n0(u,32),io(s,xl))}function sUt(t,n,s){var u,f;switch(u=(Pn(n.b!=0),b(Df(n,n.a.a),8)),s.g){case 0:u.b=0;break;case 2:u.b=t.f;break;case 3:u.a=0;break;default:u.a=t.g}return f=ti(n,0),V$(f,u),n}function oUt(t,n,s,u){var f,g,E,S,C;switch(C=t.b,g=n.d,E=g.j,S=P7e(E,C.d[E.g],s),f=ua(Uo(g.n),g.a),g.j.g){case 1:case 3:S.a+=f.a;break;case 2:case 4:S.b+=f.b}cs(u,S,u.c.b,u.c)}function qEn(t,n,s){var u,f,g,E;E=rc(t.e,n,0),g=new x5e,g.b=s,u=new Mo(t.e,E);while(u.b1;n>>=1)(n&1)!=0&&(u=b4(u,s)),s.d==1?s=b4(s,s):s=new SFt(VVt(s.a,s.d,mt(ci,$i,28,s.d<<1,15,1)));return u=b4(u,s),u}function AMe(){AMe=z;var t,n,s,u;l$e=mt(xo,Ml,28,25,15,1),c$e=mt(xo,Ml,28,33,15,1),u=0.0000152587890625;for(n=32;n>=0;n--)c$e[n]=u,u*=0.5;s=1;for(t=24;t>=0;t--)l$e[t]=s,s*=0.5}function QEn(t){var n,s;if(er(Jt(It(t,(Qt(),Bx))))){for(s=new Nn(Mn(Ob(t).a.Kc(),new L));ri(s);)if(n=b(Gn(s),74),Jw(n)){if(er(Jt(It(n,vE))))return!0}}return!1}function lUt(t,n){var s,u,f;if($s(t.f,n)){if(n.b=t,u=n.c,rc(t.j,u,0)!=-1||Gt(t.j,u),f=n.d,rc(t.j,f,0)!=-1||Gt(t.j,f),s=n.a.b,s.c.length!=0)!t.i&&(t.i=new RFt(t)),r1n(t.i,s)}}function ZEn(t){var n,s,u,f,g;if(s=t.c.d,u=s.j,f=t.d.d,g=f.j,u==g)return s.p=0&&Br(t.substr(n,3),"GMT"))return s[0]=n+3,oDe(t,s,u);if(n>=0&&Br(t.substr(n,3),"UTC"))return s[0]=n+3,oDe(t,s,u);return oDe(t,s,u)}function ewn(t,n){var s,u,f,g,E;g=t.g.a,E=t.g.b;for(u=new me(t.d);u.as;g--)t[g]|=n[g-s-1]>>>E,t[g-1]=n[g-s-1]<0&&au(t.g,n,t.g,n+u,S),E=s.Kc(),t.i+=u;for(f=0;f>4&15,g=t[u]&15,E[f++]=aWe[s],E[f++]=aWe[g];return yp(E,0,E.length)}}function gh(t){var n,s;if(t>=ml)return n=AG+(t-ml>>10&1023)&Ds,s=56320+(t-ml&1023)&Ds,String.fromCharCode(n)+(""+String.fromCharCode(s));else return String.fromCharCode(t&Ds)}function hwn(t,n){PT();var s,u,f,g;if(f=b(b(_a(t.r,n),21),87),f.gc()>=2)return u=b(f.Kc().Pb(),117),s=t.u.Hc((nd(),j9)),g=t.u.Hc(X5),!u.a&&!s&&(f.gc()==2||g);else return!1}function hUt(t,n,s,u,f){var g,E,S;g=Xzt(t,n,s,u,f),S=!1;while(!g)LQ(t,f,!0),S=!0,g=Xzt(t,n,s,u,f);if(S&&LQ(t,f,!1),E=bde(f),E.c.length!=0)!!t.d&&t.d.Gg(E),hUt(t,f,s,u,E)}function kQ(){kQ=z,jye=new GM(Dm,0),RYe=new GM("DIRECTED",1),OYe=new GM("UNDIRECTED",2),kYe=new GM("ASSOCIATION",3),IYe=new GM("GENERALIZATION",4),AYe=new GM("DEPENDENCY",5)}function dwn(t,n){var s;if(!wg(t))throw _e(new zl(Ajt));switch(s=wg(t),n.g){case 1:return-(t.j+t.f);case 2:return t.i-s.g;case 3:return t.j-s.f;case 4:return-(t.i+t.g)}return 0}function fwn(t,n,s){var u,f,g;return u=n.Lk(),g=n.md(),f=u.Jk()?Wv(t,4,u,g,null,kO(t,u,g,He(u,102)&&(b(u,19).Bb&ml)!=0),!0):Wv(t,u.tk()?2:1,u,g,u.ik(),-1,!0),s?s.nj(f):s=f,s}function bO(t,n){var s,u;_n(n),u=t.b.c.length,Gt(t.b,n);while(u>0){if(s=u,u=(u-1)/2|0,t.a.Ne(nr(t.b,u),n)<=0)return Lf(t.b,s,n),!0;Lf(t.b,s,nr(t.b,u))}return Lf(t.b,u,n),!0}function OMe(t,n,s,u){var f,g;if(f=0,!s)for(g=0;g=S}function dUt(t){switch(t.g){case 0:return new A_t;case 1:return new R_t;default:throw _e(new fn("No implementation is available for the width approximator "+(t.f!=null?t.f:""+t.g)))}}function NMe(t,n,s,u){var f=!1;if(So(u))f=!0,y6(n,s,wi(u));if(!f){if(NT(u))f=!0,NMe(t,n,s,u)}if(!f){if(He(u,242))f=!0,$2(n,s,b(u,242))}if(!f)throw _e(new Zle(lFe))}function gwn(t,n){var s,u,f;if(s=n.qi(t.a),s){if(f=X0((!s.b&&(s.b=new Id((Vr(),yl),Bc,s)),s.b),wp),f!=null){for(u=1;u<(Ph(),RWe).length;++u)if(Br(RWe[u],f))return u}}return 0}function mwn(t,n){var s,u,f;if(s=n.qi(t.a),s){if(f=X0((!s.b&&(s.b=new Id((Vr(),yl),Bc,s)),s.b),wp),f!=null){for(u=1;u<(Ph(),IWe).length;++u)if(Br(IWe[u],f))return u}}return 0}function fUt(t,n){var s,u,f,g;if(_n(n),g=t.a.gc(),g0?1:0;while(g.a[f]!=s)g=g.a[f],f=t.a.Ne(s.d,g.d)>0?1:0;g.a[f]=u,u.b=s.b,u.a[0]=s.a[0],u.a[1]=s.a[1],s.a[0]=null,s.a[1]=null}function vwn(t){var n,s,u,f;n=new Ut,s=mt(wd,A1,28,t.a.c.length,16,1),eOe(s,s.length);for(f=new me(t.a);f.a0&&$Vt((qr(0,s.c.length),b(s.c[0],30)),t),s.c.length>1&&$Vt(b(nr(s,s.c.length-1),30),t),n.Vg()}function Ewn(t){nd();var n,s;if(n=Ua(Gb,Ce(Te(bte,1),Rt,279,0,[R_])),wU(VK(n,t))>1)return!1;if(s=Ua(j9,Ce(Te(bte,1),Rt,279,0,[W9,X5])),wU(VK(s,t))>1)return!1;return!0}function MMe(t,n){var s=mu((Fv(),Np),t);if(He(s,507)?Vl(Np,t,new aRt(this,n)):Vl(Np,t,this),Dfe(this,n),n==(n6(),bWe))this.wb=b(this,2038),b(n,2040);else this.wb=(Hv(),sn)}function wwn(t){var n,s,u;if(t==null)return null;n=null;for(s=0;s=Uy?"error":u>=900?"warn":u>=800?"info":"log"),CNt(s,t.a),!!t.b&&P8e(n,s,t.b,"Exception: ",!0)}function ce(t,n){var s,u;if(u=(!t.q&&(t.q=new Zn),An(t.q,n)),u!=null)return u;return s=n.Sg(),He(s,4)&&(s==null?(!t.q&&(t.q=new Zn),XA(t.q,n)):(!t.q&&(t.q=new Zn),Ki(t.q,n,s))),s}function Xo(){Xo=z,f0=new c$("P1_CYCLE_BREAKING",0),O1=new c$("P2_LAYERING",1),su=new c$("P3_NODE_ORDERING",2),wu=new c$("P4_NODE_PLACEMENT",3),ac=new c$("P5_EDGE_ROUTING",4)}function Swn(t,n){S8();var s;if(t.c==n.c){if(t.b==n.b||Imn(t.b,n.b)){if(s=tan(t.b)?1:-1,t.a&&!n.a)return s;else if(!t.a&&n.a)return-s}return jc(t.b.g,n.b.g)}else return Ra(t.c,n.c)}function yUt(t,n){var s,u,f;if(PMe(t,n))return!0;for(u=new me(n);u.a=f||n<0)throw _e(new Gl(Zge+n+hE+f));if(s>=f||s<0)throw _e(new Gl(Jge+s+hE+f));return n!=s?u=(g=t.Cj(s),t.qj(n,g),g):u=t.xj(s),u}function EUt(t){var n,s,u;if(u=t,t){n=0;for(s=t.Eh();s;s=s.Eh()){if(++n>l0e)return EUt(s);if(u=s,s==t)throw _e(new zl("There is a cycle in the containment hierarchy of "+t))}}return u}function i_(t){var n,s,u;u=new j2(ll,"[","]");for(s=t.Kc();s.Ob();)n=s.Pb(),Eb(u,it(n)===it(t)?"(this Collection)":n==null?mh:hc(n));return!u.a?u.c:u.e.length==0?u.a.a:u.a.a+(""+u.e)}function PMe(t,n){var s,u;if(u=!1,n.gc()<2)return!1;for(s=0;s1&&(t.j.b+=t.e);else t.j.a+=s.a,t.j.b=d.Math.max(t.j.b,s.b),t.d.c.length>1&&(t.j.a+=t.e)}function a_(){a_=z,LJt=Ce(Te(bl,1),Qc,64,0,[(Ht(),gn),Cn,Kn]),NJt=Ce(Te(bl,1),Qc,64,0,[Cn,Kn,yn]),MJt=Ce(Te(bl,1),Qc,64,0,[Kn,yn,gn]),DJt=Ce(Te(bl,1),Qc,64,0,[yn,gn,Cn])}function xwn(t,n,s,u){var f,g,E,S,C,O,M;if(E=t.c.d,S=t.d.d,E.j==S.j)return;M=t.b,f=E.j,C=null;while(f!=S.j)C=n==0?KX(f):r7e(f),g=P7e(f,M.d[f.g],s),O=P7e(C,M.d[C.g],s),Oi(u,ua(g,O)),f=C}function Cwn(t,n,s,u){var f,g,E,S,C;if(E=x$t(t.a,n,s),S=b(E.a,17).a,g=b(E.b,17).a,u){if(C=b(ce(n,(Pt(),id)),10),f=b(ce(s,id),10),!!C&&!!f)dMt(t.b,C,f),S+=t.b.i,g+=t.b.e}return S>g}function SUt(t){var n,s,u,f,g,E,S,C,O;this.a=YFt(t),this.b=new Ut;for(s=t,u=0,f=s.length;uuue(t.d).c)t.i+=t.g.c,Xde(t.d);else if(uue(t.d).c>uue(t.g).c)t.e+=t.d.c,Xde(t.g);else t.i+=MOt(t.g),t.e+=MOt(t.d),Xde(t.g),Xde(t.d)}function Iwn(t,n,s){var u,f,g,E;g=n.q,E=n.r,new U2((Y0(),w_),n,g,1),new U2(w_,g,E,1);for(f=new me(s);f.aS&&(C=S/u),f>g&&(O=g/f),E=d.Math.min(C,O),t.a+=E*(n.a-t.a),t.b+=E*(n.b-t.b)}function Mwn(t,n,s,u,f){var g,E;E=!1,g=b(nr(s.b,0),27);while(cAn(t,n,g,u,f)){if(E=!0,uEn(s,g),s.b.c.length==0)break;g=b(nr(s.b,0),27)}return s.b.c.length==0&&WU(s.j,s),E&&vQ(n.q),E}function Dwn(t,n){D4();var s,u,f,g;if(n.b<2)return!1;g=ti(n,0),s=b(Jn(g),8),u=s;while(g.b!=g.d.c){if(f=b(Jn(g),8),Qfe(t,u,f))return!0;u=f}if(Qfe(t,u,s))return!0;return!1}function FMe(t,n,s,u){var f,g;if(s==0)return!t.o&&(t.o=new Mh((Xc(),F1),Jy,t,0)),eK(t.o,n,u);return g=b(jr((f=b(un(t,16),29),!f?t.ii():f),s),69),g.wk().Ak(t,rh(t),s-Un(t.ii()),n,u)}function Dfe(t,n){var s;if(n!=t.sb)s=null,!!t.sb&&(s=b(t.sb,54).Th(t,1,Q9,s)),!!n&&(s=b(n,54).Rh(t,1,Q9,s)),s=XLe(t,n,s),!!s&&s.oj();else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,4,n,n))}function Pwn(t,n){var s,u,f,g;if(n)f=xb(n,"x"),s=new b4t(t),B6(s.a,(_n(f),f)),g=xb(n,"y"),u=new y4t(t),$6(u.a,(_n(g),g));else throw _e(new mm("All edge sections need an end point."))}function Bwn(t,n){var s,u,f,g;if(n)f=xb(n,"x"),s=new p4t(t),F6(s.a,(_n(f),f)),g=xb(n,"y"),u=new g4t(t),U6(u.a,(_n(g),g));else throw _e(new mm("All edge sections need a start point."))}function Fwn(t,n){var s,u,f,g,E,S,C;for(u=JPt(t),g=0,S=u.length;g>22-n,f=t.h<>22-n;else if(n<44)s=0,u=t.l<>44-n;else s=0,u=0,f=t.l<t)throw _e(new fn("k must be smaller than n"));else return n==0||n==t?1:t==0?0:hMe(t)/(hMe(n)*hMe(t-n))}function $Me(t,n){var s,u,f,g;s=new tIe(t);while(s.g==null&&!s.c?LOe(s):s.g==null||s.i!=0&&b(s.g[s.i-1],51).Ob())if(g=b(MQ(s),58),He(g,167)){u=b(g,167);for(f=0;f>4],n[s*2+1]=Fte[g&15];return yp(n,0,n.length)}function eSn(t){OK();var n,s,u;switch(u=t.c.length,u){case 0:return OXt;case 1:return n=b(uGt(new me(t)),44),Wcn(n.ld(),n.md());default:return s=b(Og(t,mt(pE,aZ,44,t.c.length,0,1)),173),new F5e(s)}}function tSn(t){var n,s,u,f,g,E;n=new h4,s=new h4,jv(n,t),jv(s,t);while(s.b!=s.c){f=b(UA(s),36);for(E=new me(f.a);E.a0&&uG(t,s,n),f;return VTn(t,n,s)}function s_(){s_=z,Pir=(Hi(),Y5),Bir=AE,Nir=kE,Lir=Ak,Mir=x_,Oir=kk,SHe=Kz,Dir=Wx,tye=(J8e(),_ir),rye=Eir,xHe=xir,nye=Air,CHe=Cir,kHe=kir,THe=wir,Qee=Sir,Zee=Tir,Bz=Rir,AHe=Iir,wHe=vir}function OUt(t,n){var s,u,f,g,E;if(t.e<=n)return t.g;if(xfn(t,t.g,n))return t.g;g=t.r,u=t.g,E=t.r,f=(g-u)/2+u;while(u+11&&(t.e.b+=t.a);else t.e.a+=s.a,t.e.b=d.Math.max(t.e.b,s.b),t.d.c.length>1&&(t.e.a+=t.a)}function sSn(t){var n,s,u,f;switch(f=t.i,n=f.b,u=f.j,s=f.g,f.a.g){case 0:s.a=(t.g.b.o.a-u.a)/2;break;case 1:s.a=n.d.n.a+n.d.a.a;break;case 2:s.a=n.d.n.a+n.d.a.a-u.a;break;case 3:s.b=n.d.n.b+n.d.a.b}}function oSn(t,n,s){var u,f,g;for(f=new Nn(Mn(Ab(s).a.Kc(),new L));ri(f);){if(u=b(Gn(f),18),!(!gl(u)&&!(!gl(u)&&u.c.i.c==u.d.i.c)))continue;g=Ezt(t,u,s,new xkt),g.c.length>1&&rn(n.c,g)}}function LUt(t,n,s,u,f){if(uu&&(t.a=u),t.bf&&(t.b=f),t}function lSn(t){if(He(t,143))return $Cn(b(t,143));else if(He(t,233))return Ryn(b(t,233));else if(He(t,23))return Uwn(b(t,23));else throw _e(new fn(cFe+i_(new Qh(Ce(Te(ao,1),en,1,5,[t])))))}function cSn(t,n,s,u,f){var g,E,S;g=!0;for(E=0;E>>f|s[E+u+1]<>>f,++E}return g}function VMe(t,n,s,u){var f,g,E;if(n.k==(bn(),mo)){for(g=new Nn(Mn(co(n).a.Kc(),new L));ri(g);)if(f=b(Gn(g),18),E=f.c.i.k,E==mo&&t.c.a[f.c.i.c.p]==u&&t.c.a[n.c.p]==s)return!0}return!1}function uSn(t,n){var s,u,f,g;if(n&=63,s=t.h&Mb,n<22)g=s>>>n,f=t.m>>n|s<<22-n,u=t.l>>n|t.m<<22-n;else if(n<44)g=0,f=s>>>n-22,u=t.m>>n-22|t.h<<44-n;else g=0,f=0,u=s>>>n-44;return Qu(u&yd,f&yd,g&Mb)}function MUt(t,n,s,u){var f;this.b=u,this.e=t==(Vw(),E9),f=n[s],this.d=M2(wd,[Bt,A1],[183,28],16,[f.length,f.length],2),this.a=M2(ci,[Bt,$i],[53,28],15,[f.length,f.length],2),this.c=new TMe(n,s)}function hSn(t){var n,s,u;t.k=new POe((Ht(),Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn])).length,t.j.c.length);for(u=new me(t.j);u.a=s)return vO(t,n,u.p),!0;return!1}function O4(t,n,s,u){var f,g,E,S,C,O;E=s.length,g=0,f=-1,O=kDt((pn(n,t.length+1),t.substr(n)),(gue(),s$e));for(S=0;Sg&&Fun(O,kDt(s[S],s$e)))f=S,g=C;return f>=0&&(u[0]=n+g),f}function PUt(t){var n;if((t.Db&64)!=0)return Pfe(t);return n=new Vd(ZBe),!t.a||Bi(Bi((n.a+=' "',n),t.a),'"'),Bi(pw(Bi(pw(Bi(pw(Bi(pw((n.a+=" (",n),t.i),","),t.j)," | "),t.g),","),t.f),")"),n.a}function BUt(t,n,s){var u,f,g,E,S;S=nh(t.e.Dh(),n),f=b(t.g,124),u=0;for(E=0;Es)return JMe(t,s,"start index");if(n<0||n>s)return JMe(n,s,"end index");return oD("end index (%s) must not be less than start index (%s)",Ce(Te(ao,1),en,1,5,[$t(n),$t(t)]))}function $Ut(t,n){var s,u,f,g;for(u=0,f=t.length;u0&&UUt(t,g,s))}n.p=0}function fr(t){var n;this.c=new Va,this.f=t.e,this.e=t.d,this.i=t.g,this.d=t.c,this.b=t.b,this.k=t.j,this.a=t.a,!t.i?this.j=(n=b(G0(M1),9),new Rf(n,b(t0(n,n.length),9),0)):this.j=t.i,this.g=t.f}function bSn(t){var n,s,u,f;n=qv(Bi(new Vd("Predicates."),"and"),40),s=!0;for(f=new hM(t);f.b0?S[E-1]:mt(N1,Gy,10,0,0,1),f=S[E],O=E=0?t.ki(f):n8e(t,u);else throw _e(new fn(f_+u.xe()+PD));else Bf(t,s,u)}function HMe(t){var n,s;if(s=null,n=!1,He(t,211))n=!0,s=b(t,211).a;if(!n){if(He(t,263))n=!0,s=""+b(t,263).a}if(!n){if(He(t,493))n=!0,s=""+b(t,493).a}if(!n)throw _e(new Zle(lFe));return s}function qMe(t,n,s){var u,f,g,E,S,C;C=nh(t.e.Dh(),n),u=0,S=t.i,f=b(t.g,124);for(E=0;E=t.d.b.c.length)n=new gu(t.d),n.p=u.p-1,Gt(t.d.b,n),s=new gu(t.d),s.p=u.p,Gt(t.d.b,s);Lo(u,b(nr(t.d.b,u.p),30))}}function jMe(t,n,s){var u,f,g;if(!t.b[n.g]){t.b[n.g]=!0,u=s,!u&&(u=new iU),Oi(u.b,n);for(g=t.a[n.g].Kc();g.Ob();)f=b(g.Pb(),65),f.b!=n&&jMe(t,f.b,u),f.c!=n&&jMe(t,f.c,u),Oi(u.a,f);return u}return null}function ESn(t){switch(t.g){case 0:case 1:case 2:return Ht(),gn;case 3:case 4:case 5:return Ht(),Kn;case 6:case 7:case 8:return Ht(),yn;case 9:case 10:case 11:return Ht(),Cn;default:return Ht(),Cc}}function wSn(t,n){var s;if(t.c.length==0)return!1;if(s=iFt((qr(0,t.c.length),b(t.c[0],18)).c.i),qd(),s==(nx(),mk)||s==gk)return!0;return y4(ec(new Pr(null,new Gr(t,16)),new Cyt),new TCt(n))}function Ufe(t,n){if(He(n,207))return man(t,b(n,27));else if(He(n,193))return ban(t,b(n,123));else if(He(n,452))return gan(t,b(n,166));else throw _e(new fn(cFe+i_(new Qh(Ce(Te(ao,1),en,1,5,[n])))))}function YUt(t,n,s){var u,f;if(this.f=t,u=b(An(t.b,n),260),f=!u?0:u.a,dNe(s,f),s>=(f/2|0)){this.e=!u?null:u.c,this.d=f;while(s++0)PNe(this)}this.b=n,this.a=null}function SSn(t,n){var s,u;n.a?n4n(t,n):(s=b(cce(t.b,n.b),60),!!s&&s==t.a[n.b.f]&&!!s.a&&s.a!=n.b.a&&s.c.Fc(n.b),u=b(lce(t.b,n.b),60),!!u&&t.a[u.f]==n.b&&!!u.a&&u.a!=n.b.a&&n.b.c.Fc(u),rue(t.b,n.b))}function WUt(t,n){var s,u;if(s=b(Nl(t.b,n),127),b(b(_a(t.r,n),21),87).dc()){s.n.b=0,s.n.c=0;return}s.n.b=t.C.b,s.n.c=t.C.c,t.A.Hc((Md(),IE))&&vVt(t,n),u=Qvn(t,n),Jfe(t,n)==(x4(),k_)&&(u+=2*t.w),s.a.a=u}function jUt(t,n){var s,u;if(s=b(Nl(t.b,n),127),b(b(_a(t.r,n),21),87).dc()){s.n.d=0,s.n.a=0;return}s.n.d=t.C.d,s.n.a=t.C.a,t.A.Hc((Md(),IE))&&_Vt(t,n),u=Xvn(t,n),Jfe(t,n)==(x4(),k_)&&(u+=2*t.w),s.a.b=u}function TSn(t,n){var s,u,f,g;g=new Ut;for(u=new me(n);u.au&&(pn(n-1,t.length),t.charCodeAt(n-1)<=32))--n;return u>0||ns.a&&(u.Hc((eE(),B9))?f=(n.a-s.a)/2:u.Hc(F9)&&(f=n.a-s.a)),n.b>s.b&&(u.Hc((eE(),U9))?g=(n.b-s.b)/2:u.Hc($9)&&(g=n.b-s.b)),LMe(t,f,g)}function tGt(t,n,s,u,f,g,E,S,C,O,M,U,q){He(t.Cb,90)&&lx(fd(b(t.Cb,90)),4),zu(t,s),t.f=E,sO(t,S),lO(t,C),aO(t,O),oO(t,M),Ly(t,U),cO(t,q),Ny(t,!0),Ay(t,f),t.Zk(g),Q2(t,n),u!=null&&(t.i=null,IX(t,u))}function JMe(t,n,s){if(t<0)return oD(Zqt,Ce(Te(ao,1),en,1,5,[s,$t(t)]));else if(n<0)throw _e(new fn(Jqt+n));else return oD("%s (%s) must not be greater than size (%s)",Ce(Te(ao,1),en,1,5,[s,$t(t),$t(n)]))}function e8e(t,n,s,u,f,g){var E,S,C,O;if(E=u-s,E<7){yyn(n,s,u,g);return}if(C=s+f,S=u+f,O=C+(S-C>>1),e8e(n,t,C,O,-f,g),e8e(n,t,O,S,-f,g),g.Ne(t[O-1],t[O])<=0){while(s=0?t.bi(g,s):I8e(t,f,s);else throw _e(new fn(f_+f.xe()+PD));else Ff(t,u,f,s)}function rGt(t){var n,s;if(t.f){while(t.n>0)if(n=b(t.k.Xb(t.n-1),76),s=n.Lk(),He(s,102)&&(b(s,19).Bb&Hc)!=0&&(!t.e||s.pk()!=$N||s.Lj()!=0)&&n.md()!=null)return!0;else--t.n;return!1}else return t.n>0}function nGt(t){var n,s,u,f;if(s=b(t,54)._h(),s)try{if(u=null,n=EO((Fv(),Np),zVt(Iyn(s))),n)f=n.ai(),!!f&&(u=f.Fl(Onn(s.e)));if(!!u&&u!=t)return nGt(u)}catch(g){if(g=Qa(g),!He(g,63))throw _e(g)}return t}function USn(t,n,s){var u,f,g;s.Ug("Remove overlaps",1),s.dh(n,hBe),u=b(It(n,(f4(),vk)),27),t.f=u,t.a=sfe(b(It(n,(s_(),Bz)),300)),f=ht(It(n,(Hi(),AE))),YAe(t,(_n(f),f)),g=ux(u),uqt(t,n,g,s),s.dh(n,zZ)}function GSn(t){var n,s,u;if(er(Jt(It(t,(Hi(),Wz))))){u=new Ut;for(s=new Nn(Mn(Ob(t).a.Kc(),new L));ri(s);)n=b(Gn(s),74),Jw(n)&&er(Jt(It(n,Pye)))&&rn(u.c,n);return u}else return Hr(),Hr(),Jo}function iGt(t){if(!t)return i3t(),UXt;var n=t.valueOf?t.valueOf():t;if(n!==t){var s=Ame[typeof n];return s?s(n):VLe(typeof n)}else if(t instanceof Array||t instanceof d.Array)return new UAe(t);else return new YF(t)}function aGt(t,n,s){var u,f,g;switch(g=t.o,u=b(Nl(t.p,s),252),f=u.i,f.b=eD(u),f.a=J8(u),f.b=d.Math.max(f.b,g.a),f.b>g.a&&!n&&(f.b=g.a),f.c=-(f.b-g.a)/2,s.g){case 1:f.d=-f.a;break;case 3:f.d=g.b}dpe(u),fpe(u)}function sGt(t,n,s){var u,f,g;switch(g=t.o,u=b(Nl(t.p,s),252),f=u.i,f.b=eD(u),f.a=J8(u),f.a=d.Math.max(f.a,g.b),f.a>g.b&&!n&&(f.a=g.b),f.d=-(f.a-g.b)/2,s.g){case 4:f.c=-f.b;break;case 2:f.c=g.a}dpe(u),fpe(u)}function zSn(t,n){var s,u,f,g,E;if(n.dc())return;if(f=b(n.Xb(0),131),n.gc()==1){Bzt(t,f,f,1,0,n);return}s=1;while(s0)try{f=Zd(n,Qo,sa)}catch(g){if(g=Qa(g),He(g,130))throw u=g,_e(new hX(u));else throw _e(g)}return s=(!t.a&&(t.a=new Ple(t)),t.a),f=0?b(We(s,f),58):null}function YSn(t,n){if(t<0)return oD(Zqt,Ce(Te(ao,1),en,1,5,["index",$t(t)]));else if(n<0)throw _e(new fn(Jqt+n));else return oD("%s (%s) must be less than size (%s)",Ce(Te(ao,1),en,1,5,["index",$t(t),$t(n)]))}function WSn(t){var n,s,u,f,g;if(t==null)return mh;g=new j2(ll,"[","]");for(s=t,u=0,f=s.length;u=0?t.Lh(s,!0,!0):eS(t,f,!0),160)),b(u,220).Zl(n);else throw _e(new fn(f_+n.xe()+PD))}function i8e(t){var n,s;if(t>-140737488355328&&t<140737488355328){if(t==0)return 0;return n=t<0,n&&(t=-t),s=Ks(d.Math.floor(d.Math.log(t)/0.6931471805599453)),(!n||t!=d.Math.pow(2,s))&&++s,s}return SPt(Vc(t))}function lTn(t){var n,s,u,f,g,E,S;g=new vm;for(s=new me(t);s.a2&&S.e.b+S.j.b<=2)f=S,u=E;g.a.zc(f,g),f.q=u}return g}function cTn(t,n,s){s.Ug("Eades radial",1),s.dh(n,zZ),t.d=b(It(n,(f4(),vk)),27),t.c=rt(ht(It(n,(s_(),Zee)))),t.e=sfe(b(It(n,Bz),300)),t.a=Fyn(b(It(n,AHe),434)),t.b=iEn(b(It(n,THe),354)),U2n(t),s.dh(n,zZ)}function uTn(t,n){if(n.Ug("Target Width Setter",1),kg(t,(Lg(),gye)))Ta(t,(w1(),qx),ht(It(t,gye)));else throw _e(new py("A target width has to be set if the TargetWidthWidthApproximator should be used."));n.Vg()}function hGt(t,n){var s,u,f;return u=new Ib(t),nc(u,n),At(u,(Pt(),gee),n),At(u,(Qt(),ms),(Ao(),xu)),At(u,Gm,(_1(),ute)),k2(u,(bn(),As)),s=new iu,Ec(s,u),Xs(s,(Ht(),yn)),f=new iu,Ec(f,u),Xs(f,Cn),u}function dGt(t){switch(t.g){case 0:return new Kle((Vw(),Oz));case 1:return new RSt;case 2:return new ISt;default:throw _e(new fn("No implementation is available for the crossing minimizer "+(t.f!=null?t.f:""+t.g)))}}function fGt(t,n){var s,u,f,g,E;t.c[n.p]=!0,Gt(t.a,n);for(E=new me(n.j);E.a=g)E.$b();else{f=E.Kc();for(u=0;u0?V5e():E<0&&bGt(t,n,-E),!0;else return!1}function J8(t){var n,s,u,f,g,E,S;if(S=0,t.b==0){E=JFt(t,!0),n=0;for(u=E,f=0,g=u.length;f0)S+=s,++n;n>1&&(S+=t.c*(n-1))}else S=m3t(cde(zT(pa(Z6e(t.a),new Yt),new Bn)));return S>0?S+t.n.d+t.n.a:0}function eD(t){var n,s,u,f,g,E,S;if(S=0,t.b==0)S=m3t(cde(zT(pa(Z6e(t.a),new Et),new Xn)));else{E=e$t(t,!0),n=0;for(u=E,f=0,g=u.length;f0)S+=s,++n;n>1&&(S+=t.c*(n-1))}return S>0?S+t.n.b+t.n.c:0}function bTn(t){var n,s;if(t.c.length!=2)throw _e(new zl("Order only allowed for two paths."));if(n=(qr(0,t.c.length),b(t.c[0],18)),s=(qr(1,t.c.length),b(t.c[1],18)),n.d.i!=s.c.i)t.c.length=0,rn(t.c,s),rn(t.c,n)}function yGt(t,n,s){var u;o4(s,n.g,n.f),kf(s,n.i,n.j);for(u=0;u<(!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i;u++)yGt(t,b(We((!n.a&&(n.a=new kt(ra,n,10,11)),n.a),u),27),b(We((!s.a&&(s.a=new kt(ra,s,10,11)),s.a),u),27))}function yTn(t,n){var s,u,f,g;g=b(Nl(t.b,n),127),s=g.a;for(f=b(b(_a(t.r,n),21),87).Kc();f.Ob();)u=b(f.Pb(),117),!!u.c&&(s.a=d.Math.max(s.a,R6e(u.c)));if(s.a>0)switch(n.g){case 2:g.n.c=t.s;break;case 4:g.n.b=t.s}}function vTn(t,n){var s,u,f;if(s=b(ce(n,(c0(),N5)),17).a-b(ce(t,N5),17).a,s==0)return u=no(Uo(b(ce(t,(Xv(),hz)),8)),b(ce(t,e9),8)),f=no(Uo(b(ce(n,hz),8)),b(ce(n,e9),8)),Ra(u.a*u.b,f.a*f.b);return s}function _Tn(t,n){var s,u,f;if(s=b(ce(n,(Oc(),Wee)),17).a-b(ce(t,Wee),17).a,s==0)return u=no(Uo(b(ce(t,(Ma(),Mz)),8)),b(ce(t,AN),8)),f=no(Uo(b(ce(n,Mz),8)),b(ce(n,AN),8)),Ra(u.a*u.b,f.a*f.b);return s}function vGt(t){var n,s;if(s=new Dv,s.a+="e_",n=f1n(t),n!=null&&(s.a+=""+n),!!t.c&&!!t.d)Bi((s.a+=" ",s),EQ(t.c)),Bi(pu((s.a+="[",s),t.c.i),"]"),Bi((s.a+=P0e,s),EQ(t.d)),Bi(pu((s.a+="[",s),t.d.i),"]");return s.a}function _Gt(t){switch(t.g){case 0:return new $St;case 1:return new USt;case 2:return new BSt;case 3:return new PSt;default:throw _e(new fn("No implementation is available for the layout phase "+(t.f!=null?t.f:""+t.g)))}}function o8e(t,n,s,u,f){var g=0;switch(f.g){case 1:g=d.Math.max(0,n.b+t.b-(s.b+u));break;case 3:g=d.Math.max(0,-t.b-u);break;case 2:g=d.Math.max(0,-t.a-u);break;case 4:g=d.Math.max(0,n.a+t.a-(s.a+u))}return g}function ETn(t,n,s){var u,f,g,E,S;if(s){f=s.a.length,u=new P2(f);for(S=(u.b-u.a)*u.c<0?($v(),D_):new zv(u);S.Ob();)E=b(S.Pb(),17),g=R6(s,E.a),rFe in g.a||Xge in g.a?Dkn(t,g,n):e6n(t,g,n),Jan(b(An(t.b,hO(g)),74))}}function l8e(t){var n,s;switch(t.b){case-1:return!0;case 0:if(s=t.t,s>1||s==-1)return t.b=-1,!0;else if(n=vp(t),!!n&&(_l(),n.lk()==GKt))return t.b=-1,!0;else return t.b=1,!1;default:case 1:return!1}}function c8e(t,n){var s,u,f,g;if(na(t),t.c!=0||t.a!=123)throw _e(new Ti(Ai((yi(),cKt))));if(g=n==112,u=t.d,s=h6(t.i,125,u),s<0)throw _e(new Ti(Ai((yi(),uKt))));return f=Of(t.i,u,s),t.d=s+1,H8t(f,g,(t.e&512)==512)}function EGt(t){var n,s,u,f,g,E,S;if(u=t.a.c.length,u>0){E=t.c.d,S=t.d.d,f=_m(no(new Dt(S.a,S.b),E),1/(u+1)),g=new Dt(E.a,E.b);for(s=new me(t.a);s.a=0&&u=0?t.Lh(s,!0,!0):eS(t,f,!0),160)),b(u,220).Wl(n);else throw _e(new fn(f_+n.xe()+Gge))}function xTn(){hRe();var t;if(Ror)return b(EO((Fv(),Np),Sp),2038);return qi(pE,new qEt),_Rn(),t=b(He(mu((Fv(),Np),Sp),560)?mu(Np,Sp):new FNt,560),Ror=!0,E6n(t),A6n(t),Ki((uRe(),mWe),t,new oEt),Vl(Np,Sp,t),t}function CTn(t,n){var s,u,f,g;if(t.j=-1,Ad(t.e))if(s=t.i,g=t.i!=0,nU(t,n),u=new wb(t.e,3,t.c,null,n,s,g),f=n.zl(t.e,t.c,null),f=tUt(t,n,f),!f)ha(t.e,u);else f.nj(u),f.oj();else nU(t,n),f=n.zl(t.e,t.c,null),!!f&&f.oj()}function OQ(t,n){var s,u,f;if(f=0,u=n[0],u>=t.length)return-1;s=(pn(u,t.length),t.charCodeAt(u));while(s>=48&&s<=57){if(f=f*10+(s-48),++u,u>=t.length)break;s=(pn(u,t.length),t.charCodeAt(u))}return u>n[0]?n[0]=u:f=-1,f}function kTn(t){var n,s,u,f,g;if(f=b(t.a,17).a,g=b(t.b,17).a,s=f,u=g,n=d.Math.max(d.Math.abs(f),d.Math.abs(g)),f<=0&&f==g)s=0,u=g-1;else if(f==-n&&g!=n)s=g,u=f,g>=0&&++s;else s=-g,u=f;return new js($t(s),$t(u))}function ATn(t,n,s,u){var f,g,E,S,C,O;for(f=0;f=0&&O>=0&&C=t.i)throw _e(new Gl(Zge+n+hE+t.i));if(s>=t.i)throw _e(new Gl(Jge+s+hE+t.i));if(u=t.g[s],n!=s)n>16),n=u>>16&16,s=16-n,t=t>>n,u=t-256,n=u>>16&8,s+=n,t<<=n,u=t-bx,n=u>>16&4,s+=n,t<<=n,u=t-Im,n=u>>16&2,s+=n,t<<=n,u=t>>14,n=u&~(u>>1),s+2-n}function ITn(t){qA();var n,s,u,f;AJ=new Ut,Qme=new Zn,Xme=new Ut,n=(!t.a&&(t.a=new kt(ra,t,10,11)),t.a),_In(n);for(f=new kn(n);f.e!=f.i.gc();)if(u=b(Dn(f),27),rc(AJ,u,0)==-1)s=new Ut,Gt(Xme,s),xFt(u,s);return Xme}function OTn(t,n,s){var u,f,g,E;if(t.a=s.b.d,He(n,326))f=M4(b(n,74),!1,!1),g=JU(f),u=new cxt(t),Vo(g,u),fG(g,f),n.of((Hi(),NS))!=null&&Vo(b(n.of(NS),75),u);else E=b(n,422),E.rh(E.nh()+t.a.a),E.sh(E.oh()+t.a.b)}function NTn(t,n){var s,u,f;f=new Ut;for(u=ti(n.a,0);u.b!=u.d.c;)s=b(Jn(u),65),s.c.g==t.g&&it(ce(s.b,(Oc(),Vm)))!==it(ce(s.c,Vm))&&!y4(new Pr(null,new Gr(f,16)),new PCt(s))&&rn(f.c,s);return ks(f,new dvt),f}function SGt(t,n,s){var u,f,g,E;if(He(n,153)&&He(s,153))return g=b(n,153),E=b(s,153),t.a[g.a][E.a]+t.a[E.a][g.a];else if(He(n,250)&&He(s,250)){if(u=b(n,250),f=b(s,250),u.a==f.a)return b(ce(f.a,(c0(),N5)),17).a}return 0}function TGt(t,n){var s,u,f,g,E,S,C,O;O=rt(ht(ce(n,(Qt(),g9)))),C=t[0].n.a+t[0].o.a+t[0].d.c+O;for(S=1;S=0)return s;return S=d8(no(new Dt(E.c+E.b/2,E.d+E.a/2),new Dt(g.c+g.b/2,g.d+g.a/2))),-(XVt(g,E)-1)*S}function MTn(t,n,s){var u;ys(new Pr(null,(!s.a&&(s.a=new kt(Ha,s,6,6)),new Gr(s.a,16))),new $5t(t,n)),ys(new Pr(null,(!s.n&&(s.n=new kt(Dl,s,1,7)),new Gr(s.n,16))),new U5t(t,n)),u=b(It(s,(Hi(),NS)),75),!!u&&dLe(u,t,n)}function eS(t,n,s){var u,f,g;if(g=F4((Ph(),Yo),t.Dh(),n),g)return _l(),b(g,69).xk()||(g=WA(Hl(Yo,g))),f=(u=t.Ih(g),b(u>=0?t.Lh(u,!0,!0):eS(t,g,!0),160)),b(f,220).Sl(n,s);else throw _e(new fn(f_+n.xe()+Gge))}function u8e(t,n,s,u){var f,g,E,S,C;if(f=t.d[n],f){if(g=f.g,C=f.i,u!=null){for(S=0;S=s){if(u=n,O=(C.c+C.a)/2,E=O-s,C.c<=O-s)f=new vue(C.c,E),Cw(t,u++,f);if(S=O+s,S<=C.a)g=new vue(S,C.a),HT(u,t.c.length),LM(t.c,u,g)}}function kGt(t,n,s){var u,f,g,E,S,C;if(!n.dc()){f=new Va;for(C=n.Kc();C.Ob();){S=b(C.Pb(),40),Ki(t.a,$t(S.g),$t(s));for(E=(u=ti(new db(S).a.d,0),new KC(u));JF(E.a);)g=b(Jn(E.a),65).c,cs(f,g,f.c.b,f.c)}kGt(t,f,s+1)}}function h8e(t){var n;if(!t.c&&t.g==null)t.d=t.bj(t.f),ii(t,t.d),n=t.d;else if(t.g==null)return!0;else if(t.i==0)return!1;else n=b(t.g[t.i-1],51);if(n==t.b&&null.Vm>=null.Um())return MQ(t),h8e(t);else return n.Ob()}function AGt(t){if(this.a=t,t.c.i.k==(bn(),As))this.c=t.c,this.d=b(ce(t.c.i,(Pt(),Pc)),64);else if(t.d.i.k==As)this.c=t.d,this.d=b(ce(t.d.i,(Pt(),Pc)),64);else throw _e(new fn("Edge "+t+" is not an external edge."))}function RGt(t,n){var s,u,f;if(f=t.b,t.b=n,(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,f,t.b)),!n)zu(t,null),Zhe(t,0),ede(t,null);else if(n!=t)zu(t,n.zb),Zhe(t,n.d),s=(u=n.c,u==null?n.zb:u),ede(t,s==null||Br(s,n.zb)?null:s)}function IGt(t,n){var s;this.e=(Iw(),mi(t),Iw(),x7e(t)),this.c=(mi(n),x7e(n)),pIe(this.e.Rd().dc()==this.c.Rd().dc()),this.d=qBt(this.e),this.b=qBt(this.c),s=M2(ao,[Bt,en],[5,1],5,[this.e.Rd().gc(),this.c.Rd().gc()],2),this.a=s,cmn(this)}function OGt(t){var n=(!Cme&&(Cme=NIn()),Cme),s=t.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(u){return Pdn(u,n)});return'"'+s+'"'}function d8e(t,n,s,u,f,g){var E,S,C,O,M;if(f==0)return;if(it(t)===it(s))t=t.slice(n,n+f),n=0;C=s;for(S=n,O=n+f;S=E)throw _e(new FT(n,E));if(f=s[n],E==1)u=null;else u=mt(nve,ime,424,E-1,0,1),au(s,0,u,0,n),g=E-n-1,g>0&&au(s,n+1,u,n,g);return dO(t,u),eGt(t,n,f),f}function LGt(t){var n,s;if(t.f){while(t.n0?g=i5(s):g=FU(i5(s));Ta(n,EN,g)}function GTn(t,n){var s;n.Ug("Partition preprocessing",1),s=b(uc(pa(wc(pa(new Pr(null,new Gr(t.a,16)),new p1t),new g1t),new m1t),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15),ys(s.Oc(),new b1t),n.Vg()}function zTn(t,n){var s,u,f,g,E;E=t.j,n.a!=n.b&&ks(E,new Wbt),f=E.c.length/2|0;for(u=0;u0&&uG(t,s,n),g;else if(u.a!=null)return uG(t,n,s),-1;else if(f.a!=null)return uG(t,s,n),1;return 0}function HTn(t,n){var s,u,f,g,E;f=n.b.b,t.a=mt(Yf,yx,15,f,0,1),t.b=mt(wd,A1,28,f,16,1);for(E=ti(n.b,0);E.b!=E.d.c;)g=b(Jn(E),40),t.a[g.g]=new Va;for(u=ti(n.a,0);u.b!=u.d.c;)s=b(Jn(u),65),t.a[s.b.g].Fc(s),t.a[s.c.g].Fc(s)}function BGt(t,n){var s,u,f,g;if(t.Pj())if(s=t.Ej(),g=t.Qj(),++t.j,t.qj(s,t.Zi(s,n)),u=t.Ij(3,null,n,s,g),t.Mj())if(f=t.Nj(n,null),!f)t.Jj(u);else f.nj(u),f.oj();else t.Jj(u);else if(kNt(t,n),t.Mj())f=t.Nj(n,null),!!f&&f.oj()}function f8e(t,n,s){var u,f,g;if(t.Pj())if(g=t.Qj(),MU(t,n,s),u=t.Ij(3,null,s,n,g),t.Mj())if(f=t.Nj(s,null),t.Tj()&&(f=t.Uj(s,f)),!f)t.Jj(u);else f.nj(u),f.oj();else t.Jj(u);else if(MU(t,n,s),t.Mj())f=t.Nj(s,null),!!f&&f.oj()}function NQ(t,n){var s,u,f,g,E;E=nh(t.e.Dh(),n),f=new LW,s=b(t.g,124);for(g=t.i;--g>=0;)u=s[g],E.am(u.Lk())&&ii(f,u);!Nqt(t,f)&&Ad(t.e)&&ZI(t,n.Jk()?Wv(t,6,n,(Hr(),Jo),null,-1,!1):Wv(t,n.tk()?2:1,n,null,null,-1,!1))}function qTn(t,n){var s,u,f,g,E;if(t.a==(yO(),i9))return!0;if(g=n.a.c,s=n.a.c+n.a.b,n.j){if(u=n.A,E=u.c.c.a-u.o.a/2,f=g-(u.n.a+u.o.a),f>E)return!1}if(n.q){if(u=n.C,E=u.c.c.a-u.o.a/2,f=u.n.a-s,f>E)return!1}return!0}function FGt(t){fhe();var n,s,u,f,g,E,S;s=new Ty;for(f=new me(t.e.b);f.a1?t.e*=rt(t.a):t.f/=rt(t.a),fbn(t),vvn(t),mkn(t),At(t.b,(H8(),kJ),t.g)}function zGt(t,n,s){var u,f,g,E,S,C;if(u=0,C=s,!n)u=s*(t.c.length-1),C*=-1;for(g=new me(t);g.a=0?t.Ah(null):t.Ph().Th(t,-1-n,null,null)),t.Bh(b(f,54),s),!!u&&u.oj(),t.vh()&&t.wh()&&s>-1&&ha(t,new go(t,9,s,g,f)),f}}return g}function m8e(t,n){var s,u,f,g,E;g=t.b.Ce(n),u=(s=t.a.get(g),s==null?mt(ao,en,1,0,5,1):s);for(E=0;E>5,f>=t.d)return t.e<0;if(s=t.a[f],n=1<<(n&31),t.e<0)if(u=rPt(t),f>16)),15).dd(g),S0)!(pb(t.a.c)&&n.n.d)&&!(s4(t.a.c)&&n.n.b)&&(n.g.d+=d.Math.max(0,u/2-0.5)),!(pb(t.a.c)&&n.n.a)&&!(s4(t.a.c)&&n.n.c)&&(n.g.a-=u-1)}function QGt(t){var n,s,u,f,g;if(f=new Ut,g=YVt(t,f),n=b(ce(t,(Pt(),id)),10),n)for(u=new me(n.j);u.a>n,g=t.m>>n|s<<22-n,f=t.l>>n|t.m<<22-n;else if(n<44)E=u?Mb:0,g=s>>n-22,f=t.m>>n-22|s<<44-n;else E=u?Mb:0,g=u?yd:0,f=s>>n-44;return Qu(f&yd,g&yd,E&Mb)}function Wfe(t){var n,s,u,f,g,E;this.c=new Ut,this.d=t,u=Wa,f=Wa,n=Gs,s=Gs;for(E=ti(t,0);E.b!=E.d.c;)g=b(Jn(E),8),u=d.Math.min(u,g.a),f=d.Math.min(f,g.b),n=d.Math.max(n,g.a),s=d.Math.max(s,g.b);this.a=new If(u,f,n-u,s-f)}function JGt(t,n){var s,u,f,g,E,S;for(g=new me(t.b);g.a0&&He(n,44)){if(t.a._j(),O=b(n,44),C=O.ld(),g=C==null?0:Da(C),E=GIe(t.a,g),s=t.a.d[E],s){u=b(s.g,379),M=s.i;for(S=0;S=2){s=f.Kc(),n=ht(s.Pb());while(s.Ob())g=n,n=ht(s.Pb()),u=d.Math.min(u,(_n(n),n)-(_n(g),g))}return u}function fxn(t,n){var s,u,f;f=new Ut;for(u=ti(n.a,0);u.b!=u.d.c;)s=b(Jn(u),65),s.b.g==t.g&&!Br(s.b.c,UZ)&&it(ce(s.b,(Oc(),Vm)))!==it(ce(s.c,Vm))&&!y4(new Pr(null,new Gr(f,16)),new BCt(s))&&rn(f.c,s);return ks(f,new mvt),f}function pxn(t,n){var s,u,f;if(it(n)===it(mi(t)))return!0;if(!He(n,15))return!1;if(u=b(n,15),f=t.gc(),f!=u.gc())return!1;if(He(u,59)){for(s=0;s0&&(f=s);for(E=new me(t.f.e);E.a0)n-=1,s-=1;else if(u>=0&&f<0)n+=1,s+=1;else if(u>0&&f>=0)n-=1,s+=1;else n+=1,s-=1;return new js($t(n),$t(s))}function Axn(t,n){if(t.cn.c)return 1;else if(t.bn.b)return 1;else if(t.a!=n.a)return Da(t.a)-Da(n.a);else if(t.d==(v8(),S9)&&n.d==w9)return-1;else if(t.d==w9&&n.d==S9)return 1;return 0}function szt(t,n){var s,u,f,g,E;if(g=n.a,g.c.i==n.b?E=g.d:E=g.c,g.c.i==n.b?u=g.c:u=g.d,f=Xyn(t.a,E,u),f>0&&f0;else if(f<0&&-f0;return!1}function Rxn(t,n,s,u){var f,g,E,S,C,O,M,U;f=(n-t.d)/t.c.c.length,g=0,t.a+=s,t.d=n;for(U=new me(t.c);U.a>24;return E}function Oxn(t){if(t.ze()){var n=t.c;n.Ae()?t.o="["+n.n:!n.ze()?t.o="[L"+n.xe()+";":t.o="["+n.xe(),t.b=n.we()+"[]",t.k=n.ye()+"[]";return}var{j:s,d:u}=t;u=u.split("/"),t.o=Qde(".",[s,Qde("$",u)]),t.b=Qde(".",[s,Qde(".",u)]),t.k=u[u.length-1]}function Nxn(t,n){var s,u,f,g,E;E=null;for(g=new me(t.e.a);g.a=0;n-=2)for(s=0;s<=n;s+=2)if(t.b[s]>t.b[s+2]||t.b[s]===t.b[s+2]&&t.b[s+1]>t.b[s+3])u=t.b[s+2],t.b[s+2]=t.b[s],t.b[s]=u,u=t.b[s+3],t.b[s+3]=t.b[s+1],t.b[s+1]=u;t.c=!0}function Dxn(t,n){var s,u,f,g,E,S,C,O,M;O=-1,M=0;for(E=t,S=0,C=E.length;S0&&++M;++O}return M}function o0(t){var n,s;if(s=new Vd(N2(t.Rm)),s.a+="@",Bi(s,(n=Da(t)>>>0,n.toString(16))),t.Vh()){if(s.a+=" (eProxyURI: ",pu(s,t._h()),t.Kh())s.a+=" eClass: ",pu(s,t.Kh());s.a+=")"}else if(t.Kh())s.a+=" (eClass: ",pu(s,t.Kh()),s.a+=")";return s.a}function nD(t){var n,s,u,f;if(t.e)throw _e(new zl((gb($me),m0e+$me.k+b0e)));t.d==(Ms(),Hg)&&eZ(t,Kl);for(s=new me(t.a.a);s.a>24}return s}function Fxn(t,n,s){var u,f,g;if(f=b(Nl(t.i,n),314),!f)if(f=new YDt(t.d,n,s),GA(t.i,n,f),I7e(n))zan(t.a,n.c,n.b,f);else switch(g=ESn(n),u=b(Nl(t.p,g),252),g.g){case 1:case 3:f.j=!0,Qle(u,n.b,f);break;case 4:case 2:f.k=!0,Qle(u,n.c,f)}return f}function $xn(t,n){var s,u,f,g,E,S,C,O,M;C=f1(t.c-t.b&t.a.length-1),O=null,M=null;for(g=new p8(t);g.a!=g.b;){if(f=b(YX(g),10),s=(S=b(ce(f,(Pt(),tg)),12),!S?null:S.i),u=(E=b(ce(f,Cp),12),!E?null:E.i),O!=s||M!=u)VGt(C,n),O=s,M=u;rn(C.c,f)}VGt(C,n)}function Uxn(t,n,s,u){var f,g,E,S,C,O;if(S=new LW,C=nh(t.e.Dh(),n),f=b(t.g,124),_l(),b(n,69).xk())for(E=0;E=0)return f;else{g=1;for(S=new me(n.j);S.a=0)return f;else{g=1;for(S=new me(n.j);S.a0&&n.Ne((qr(f-1,t.c.length),b(t.c[f-1],10)),g)>0)Lf(t,f,(qr(f-1,t.c.length),b(t.c[f-1],10))),--f;qr(f,t.c.length),t.c[f]=g}s.a=new Zn,s.b=new Zn}function Gxn(t,n,s){var u,f,g,E,S,C,O,M;M=(u=b(n.e&&n.e(),9),new Rf(u,b(t0(u,u.length),9),0)),C=fx(s,"[\\[\\]\\s,]+");for(g=C,E=0,S=g.length;E=0){if(!n)n=new SM,u>0&&Ol(n,(Do(0,u,t.length),t.substr(0,u)));n.a+="\\",w6(n,s&Ds)}else!!n&&w6(n,s&Ds);return n?n.a:t}function Vxn(t){var n,s,u;for(s=new me(t.a.a.b);s.a0)!(pb(t.a.c)&&n.n.d)&&!(s4(t.a.c)&&n.n.b)&&(n.g.d-=d.Math.max(0,u/2-0.5)),!(pb(t.a.c)&&n.n.a)&&!(s4(t.a.c)&&n.n.c)&&(n.g.a+=d.Math.max(0,u-1))}function gzt(t,n,s){var u,f;if((t.c-t.b&t.a.length-1)==2)if(n==(Ht(),gn)||n==Cn)yX(b(O8(t),15),(Qd(),D1)),yX(b(O8(t),15),C_);else yX(b(O8(t),15),(Qd(),C_)),yX(b(O8(t),15),D1);else for(f=new p8(t);f.a!=f.b;)u=b(YX(f),15),yX(u,s)}function Hxn(t,n){var s,u,f,g,E,S,C;f=b6(new u5e(t)),S=new Mo(f,f.c.length),g=b6(new u5e(n)),C=new Mo(g,g.c.length),E=null;while(S.b>0&&C.b>0)if(s=(Pn(S.b>0),b(S.a.Xb(S.c=--S.b),27)),u=(Pn(C.b>0),b(C.a.Xb(C.c=--C.b),27)),s==u)E=s;else break;return E}function mzt(t,n,s){var u,f,g,E;if(b7t(t,n)>b7t(t,s))u=Tc(s,(Ht(),Cn)),t.d=u.dc()?0:xue(b(u.Xb(0),12)),E=Tc(n,yn),t.b=E.dc()?0:xue(b(E.Xb(0),12));else f=Tc(s,(Ht(),yn)),t.d=f.dc()?0:xue(b(f.Xb(0),12)),g=Tc(n,Cn),t.b=g.dc()?0:xue(b(g.Xb(0),12))}function bzt(t,n){var s,u,f,g;s=t.o.a;for(g=b(b(_a(t.r,n),21),87).Kc();g.Ob();)f=b(g.Pb(),117),f.e.a=s*rt(ht(f.b.of(TJ))),f.e.b=(u=f.b,u.pf((Hi(),Ed))?u.ag()==(Ht(),gn)?-u.Mf().b-rt(ht(u.of(Ed))):rt(ht(u.of(Ed))):u.ag()==(Ht(),gn)?-u.Mf().b:0)}function qxn(t,n){var s,u,f,g;n.Ug("Self-Loop pre-processing",1);for(u=new me(t.a);u.at.c)break;else if(f.a>=t.s)g<0&&(g=E),S=E;if(C=(t.s+t.c)/2,g>=0)u=Lkn(t,n,g,S),C=Oin((qr(u,n.c.length),b(n.c[u],339))),FTn(n,u,s);return C}function fi(t,n,s){var u,f,g,E,S,C,O;E=(g=new IAe,g),iLe(E,(_n(n),n)),O=(!E.b&&(E.b=new Id((Vr(),yl),Bc,E)),E.b);for(C=1;C0&&R5n(this,f)}function k8e(t,n,s,u,f,g){var E,S,C;if(!f[n.a]){f[n.a]=!0,E=u,!E&&(E=new rX),Gt(E.e,n);for(C=g[n.a].Kc();C.Ob();){if(S=b(C.Pb(),290),S.d==s||S.c==s)continue;S.c!=n&&k8e(t,S.c,n,E,f,g),S.d!=n&&k8e(t,S.d,n,E,f,g),Gt(E.c,S),Us(E.d,S.b)}return E}return null}function jxn(t){var n,s,u,f,g,E,S;n=0;for(f=new me(t.e);f.a=2}function Kxn(t,n,s,u,f){var g,E,S,C,O,M;g=t.c.d.j,E=b(Gf(s,0),8);for(M=1;M1)return!1;if(n=Ua(m0,Ce(Te(Al,1),Rt,95,0,[Ub,b0])),wU(VK(n,t))>1)return!1;if(u=Ua(v0,Ce(Te(Al,1),Rt,95,0,[P1,Ap])),wU(VK(u,t))>1)return!1;return!0}function A8e(t,n,s){var u,f,g;for(g=new me(t.t);g.a0)u.b.n-=u.c,u.b.n<=0&&u.b.u>0&&Oi(n,u.b);for(f=new me(t.i);f.a0)u.a.u-=u.c,u.a.u<=0&&u.a.n>0&&Oi(s,u.a)}function MQ(t){var n,s,u,f,g;if(t.g==null){if(t.d=t.bj(t.f),ii(t,t.d),t.c)return g=t.f,g}if(n=b(t.g[t.i-1],51),f=n.Pb(),t.e=n,s=t.bj(f),s.Ob())t.d=s,ii(t,s);else{t.d=null;while(!n.Ob()){if(ls(t.g,--t.i,null),t.i==0)break;u=b(t.g[t.i-1],51),n=u}}return f}function Qxn(t,n){var s,u,f,g,E,S;if(u=n,f=u.Lk(),Nb(t.e,f)){if(f.Si()&&QK(t,f,u.md()))return!1}else{S=nh(t.e.Dh(),f),s=b(t.g,124);for(g=0;g1||s>1)return 2;if(n+s==1)return 2;return 0}function md(t,n){var s,u,f,g,E,S;if(g=t.a*d0e+t.b*1502,S=t.b*d0e+11,s=d.Math.floor(S*IG),g+=s,S-=s*ZDe,g%=ZDe,t.a=g,t.b=S,n<=24)return d.Math.floor(t.a*l$e[n]);else return f=t.a*(1<=2147483648&&(u-=4294967296),u}function wzt(t,n,s){var u,f,g,E,S,C,O;g=new Ut,O=new Va,E=new Va,vAn(t,O,E,n),Q5n(t,O,E,n,s);for(C=new me(t);C.au.b.g&&rn(g.c,u)}return g}function nCn(t,n,s){var u,f,g,E,S,C;S=t.c;for(E=(!s.q?(Hr(),Hr(),I1):s.q).vc().Kc();E.Ob();)if(g=b(E.Pb(),44),u=!i6(pa(new Pr(null,new Gr(S,16)),new KI(new N5t(n,g)))).Bd((L2(),O5)),u){if(C=g.md(),He(C,4))f=L7e(C),f!=null&&(C=f);n.qf(b(g.ld(),149),C)}}function iCn(t,n,s){var u,f;if(H$(t.b),H0(t.b,(BU(),nte),(AM(),zz)),H0(t.b,ite,n.g),H0(t.b,ate,n.a),t.a=mG(t.b,n),s.Ug("Compaction by shrinking a tree",t.a.c.length),n.i.c.length>1)for(f=new me(t.a);f.a=0?t.Lh(u,!0,!0):eS(t,g,!0),160)),b(f,220).Xl(n,s)}else throw _e(new fn(f_+n.xe()+PD))}function DQ(t,n){var s,u,f,g,E;if(!n)return null;else{g=He(t.Cb,90)||He(t.Cb,102),E=!g&&He(t.Cb,331);for(u=new kn((!n.a&&(n.a=new i8(n,Rl,n)),n.a));u.e!=u.i.gc();)if(s=b(Dn(u),89),f=jQ(s),g?He(f,90):E?He(f,156):!!f)return f;return g?(Vr(),Lp):(Vr(),Wg)}}function aCn(t,n){var s,u,f,g;n.Ug("Resize child graph to fit parent.",1);for(u=new me(t.b);u.a=2*n&&Gt(s,new vue(E[u-1]+n,E[u]-n));return s}function lCn(t,n,s){var u,f,g,E,S,C,O,M;if(s){g=s.a.length,u=new P2(g);for(S=(u.b-u.a)*u.c<0?($v(),D_):new zv(u);S.Ob();)E=b(S.Pb(),17),f=R6(s,E.a),!!f&&(v=null,C=Fpn(t,(O=(Bv(),M=new R5e,M),!!n&&O8e(O,n),O),f),V6(C,yb(f,Fm)),CQ(f,C),t8e(f,C),_de(t,f,C))}}function PQ(t){var n,s,u,f,g,E;if(!t.j){if(E=new j2t,n=tP,g=n.a.zc(t,n),g==null){for(u=new kn(tc(t));u.e!=u.i.gc();)s=b(Dn(u),29),f=PQ(s),ps(E,f),ii(E,s);n.a.Bc(t)!=null}JT(E),t.j=new i4((b(We(Ct((Hv(),sn).o),11),19),E.i),E.g),fd(t).b&=-33}return t.j}function cCn(t){var n,s,u,f;if(t==null)return null;else{if(u=vu(t,!0),f=ez.length,Br(u.substr(u.length-f,f),ez)){if(s=u.length,s==4){if(n=(pn(0,u.length),u.charCodeAt(0)),n==43)return PWe;else if(n==45)return Xor}else if(s==3)return PWe}return new y5e(u)}}function uCn(t){var n,s,u;if(s=t.l,(s&s-1)!=0)return-1;if(u=t.m,(u&u-1)!=0)return-1;if(n=t.h,(n&n-1)!=0)return-1;if(n==0&&u==0&&s==0)return-1;if(n==0&&u==0&&s!=0)return jNe(s);if(n==0&&u!=0&&s==0)return jNe(u)+22;if(n!=0&&u==0&&s==0)return jNe(n)+44;return-1}function L4(t,n){var s,u,f,g,E;f=n.a&t.f,g=null;for(u=t.b[f];;u=u.b){if(u==n){!g?t.b[f]=n.b:g.b=n.b;break}g=u}E=n.f&t.f,g=null;for(s=t.c[E];;s=s.d){if(s==n){!g?t.c[E]=n.d:g.d=n.d;break}g=s}!n.e?t.a=n.c:n.e.c=n.c,!n.c?t.e=n.e:n.c.e=n.e,--t.i,++t.g}function hCn(t,n){var s;if(n.d?n.d.b=n.b:t.a=n.b,n.b?n.b.d=n.d:t.e=n.d,!n.e&&!n.c)s=b(gp(b(XA(t.b,n.a),260)),260),s.a=0,++t.c;else s=b(gp(b(An(t.b,n.a),260)),260),--s.a,!n.e?s.b=b(gp(n.c),511):n.e.c=n.c,!n.c?s.c=b(gp(n.e),511):n.c.e=n.e;--t.d}function dCn(t){var n,s,u,f,g,E,S,C,O,M;s=t.o,n=t.p,E=sa,f=Qo,S=sa,g=Qo;for(O=0;O0),g.a.Xb(g.c=--g.b),BT(g,f),Pn(g.b3&&v1(t,0,n-3)}function pCn(t){var n,s,u,f;if(it(ce(t,(Qt(),Px)))===it((Cb(),Zy)))return!t.e&&it(ce(t,Tz))!==it((K6(),yz));return u=b(ce(t,rbe),299),f=er(Jt(ce(t,nbe)))||it(ce(t,d9))===it((x8(),bz)),n=b(ce(t,gze),17).a,s=t.a.c.length,!f&&u!=(K6(),yz)&&(n==0||n>s)}function gCn(t){var n,s;s=0;for(;s0)break;if(s>0&&s0)break;if(n>0&&s>16!=6&&!!n){if(pO(t,n))throw _e(new fn(BD+$Gt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?eMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=o5(n,t,6,u)),u=FIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,6,n,n))}function BQ(t,n){var s,u;if(n!=t.Cb||t.Db>>16!=3&&!!n){if(pO(t,n))throw _e(new fn(BD+CHt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?iMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=o5(n,t,12,u)),u=$Ie(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,n,n))}function O8e(t,n){var s,u;if(n!=t.Cb||t.Db>>16!=9&&!!n){if(pO(t,n))throw _e(new fn(BD+TVt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?rMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=o5(n,t,9,u)),u=UIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,9,n,n))}function wO(t){var n,s,u,f,g;if(u=vp(t),g=t.j,g==null&&!!u)return t.Jk()?null:u.ik();else if(He(u,156)){if(s=u.jk(),s){if(f=s.wi(),f!=t.i){if(n=b(u,156),n.nk())try{t.g=f.ti(n,g)}catch(E){if(E=Qa(E),He(E,82))t.g=null;else throw _e(E)}t.i=f}}return t.g}return null}function Czt(t){var n=new Ut;return Gt(n,new CA(new Dt(t.c,t.d),new Dt(t.c+t.b,t.d))),Gt(n,new CA(new Dt(t.c,t.d),new Dt(t.c,t.d+t.a))),Gt(n,new CA(new Dt(t.c+t.b,t.d+t.a),new Dt(t.c+t.b,t.d))),Gt(n,new CA(new Dt(t.c+t.b,t.d+t.a),new Dt(t.c,t.d+t.a))),n}function mCn(t){var n,s,u;if(t==null)return mh;try{return hc(t)}catch(f){if(f=Qa(f),He(f,103))return n=f,u=N2(Ld(t))+"@"+(s=(fb(),N7e(t))>>>0,s.toString(16)),Ivn(g1n(),(l6(),"Exception during lenientFormat for "+u),n),"<"+u+" threw "+N2(n.Rm)+">";else throw _e(f)}}function bCn(t,n,s){var u,f,g;for(g=n.a.ec().Kc();g.Ob();)f=b(g.Pb(),74),u=b(An(t.b,f),272),!u&&(Ya(E1(f))==Ya(n_(f))?i4n(t,f,s):E1(f)==Ya(n_(f))?An(t.c,f)==null&&An(t.b,n_(f))!=null&&iqt(t,f,s,!1):An(t.d,f)==null&&An(t.b,E1(f))!=null&&iqt(t,f,s,!0))}function yCn(t,n){var s,u,f,g,E,S,C;for(f=t.Kc();f.Ob();){u=b(f.Pb(),10),S=new iu,Ec(S,u),Xs(S,(Ht(),Cn)),At(S,(Pt(),mee),(an(),!0));for(E=n.Kc();E.Ob();)g=b(E.Pb(),10),C=new iu,Ec(C,g),Xs(C,yn),At(C,mee,!0),s=new Dw,At(s,mee,!0),tl(s,S),ko(s,C)}}function vCn(t,n,s,u){var f,g,E,S;if(f=uFt(t,n,s),g=uFt(t,s,n),E=b(An(t.c,n),118),S=b(An(t.c,s),118),f1){n=ww((s=new O2,++t.b,s),t.d);for(S=ti(g,0);S.b!=S.d.c;)E=b(Jn(S),125),l0(Zp(Qp(Jp(Xp(new fp,1),0),n),E))}}function wCn(t,n,s){var u,f,g,E,S;s.Ug("Breaking Point Removing",1),t.a=b(ce(n,(Qt(),$b)),223);for(g=new me(n.b);g.a>16!=11&&!!n){if(pO(t,n))throw _e(new fn(BD+Q8e(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?aMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=o5(n,t,10,u)),u=KIe(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,11,n,n))}function SCn(t){var n,s,u,f;for(u=new W2(new R2(t.b).a);u.b;)s=qw(u),f=b(s.ld(),12),n=b(s.md(),10),At(n,(Pt(),Ea),f),At(f,id,n),At(f,Ez,(an(),!0)),Xs(f,b(ce(n,Pc),64)),ce(n,Pc),At(f.i,(Qt(),ms),(Ao(),BN)),b(ce(zo(f.i),Tu),21).Fc((Tl(),bN))}function TCn(t,n,s){var u,f,g,E,S,C;if(g=0,E=0,t.c)for(C=new me(t.d.i.j);C.ag.a)return-1;else if(f.aC){M=t.d,t.d=mt(oWe,yFe,66,2*C+4,0,1);for(g=0;g=9223372036854776000)return D6(),$Fe;if(f=!1,t<0)f=!0,t=-t;if(u=0,t>=iE)u=Ks(t/iE),t-=u*iE;if(s=0,t>=v5)s=Ks(t/v5),t-=s*v5;return n=Ks(t),g=Qu(n,s,u),f&&Ede(g),g}function DCn(t){var n,s,u,f,g;if(g=new Ut,Ju(t.b,new ext(g)),t.b.c.length=0,g.c.length!=0){n=(qr(0,g.c.length),b(g.c[0],82));for(s=1,u=g.c.length;s=-n&&u==n)return new js($t(s-1),$t(u));return new js($t(s),$t(u-1))}function Rzt(){return il(),Ce(Te(W6n,1),Rt,81,0,[TUe,EUe,tk,g1e,VUe,UJ,XJ,Ox,GUe,NUe,$Ue,Ix,zUe,RUe,HUe,gUe,HJ,m1e,FJ,WJ,YUe,YJ,mUe,UUe,WUe,jJ,qUe,$J,CUe,BUe,PUe,QJ,vUe,BJ,zJ,yUe,sN,MUe,IUe,FUe,t9,wUe,_Ue,DUe,OUe,VJ,KJ,bUe,qJ,LUe,GJ,kUe,xUe,pz,PJ,AUe,SUe])}function FCn(t,n,s){t.d=0,t.b=0,n.k==(bn(),Su)&&s.k==Su&&b(ce(n,(Pt(),Ea)),10)==b(ce(s,Ea),10)&&(Ghe(n).j==(Ht(),gn)?mzt(t,n,s):mzt(t,s,n)),n.k==Su&&s.k==mo?Ghe(n).j==(Ht(),gn)?t.d=1:t.b=1:s.k==Su&&n.k==mo&&(Ghe(s).j==(Ht(),gn)?t.b=1:t.d=1),w_n(t,n,s)}function $Cn(t){var n,s,u,f,g,E,S,C,O,M,U;if(U=RMe(t),n=t.a,C=n!=null,C&&y6(U,"category",t.a),f=t$(new A2(t.d)),E=!f,E)O=new C2,j0(U,"knownOptions",O),s=new D4t(O),Vo(new A2(t.d),s);if(g=t$(t.g),S=!g,S)M=new C2,j0(U,"supportedFeatures",M),u=new P4t(M),Vo(t.g,u);return U}function UCn(t){var n,s,u,f,g,E,S,C,O;u=!1,n=336,s=0,g=new y6t(t.length);for(S=t,C=0,O=S.length;C>16!=7&&!!n){if(pO(t,n))throw _e(new fn(BD+PUt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?tMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=b(n,54).Rh(t,1,oV,u)),u=z6e(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,7,n,n))}function Izt(t,n){var s,u;if(n!=t.Cb||t.Db>>16!=3&&!!n){if(pO(t,n))throw _e(new fn(BD+MBt(t)));u=null,!!t.Cb&&(u=(s=t.Db>>16,s>=0?nMe(t,u):t.Cb.Th(t,-1-s,null,u))),!!n&&(u=b(n,54).Rh(t,0,cV,u)),u=V6e(t,n,u),!!u&&u.oj()}else(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,3,n,n))}function Zfe(t,n){SO();var s,u,f,g,E,S,C,O,M;if(n.d>t.d)S=t,t=n,n=S;if(n.d<63)return A4n(t,n);return E=(t.d&-2)<<4,O=lNe(t,E),M=lNe(n,E),u=ype(t,KA(O,E)),f=ype(n,KA(M,E)),C=Zfe(O,M),s=Zfe(u,f),g=Zfe(ype(O,u),ype(f,M)),g=xpe(xpe(g,C),s),g=KA(g,E),C=KA(C,E<<1),xpe(xpe(C,g),s)}function $y(){$y=z,bbe=new e4(LWt,0),tVe=new e4("LONGEST_PATH",1),rVe=new e4("LONGEST_PATH_SOURCE",2),mbe=new e4("COFFMAN_GRAHAM",3),eVe=new e4(G0e,4),nVe=new e4("STRETCH_WIDTH",5),Mee=new e4("MIN_WIDTH",6),xN=new e4("BF_MODEL_ORDER",7),CN=new e4("DF_MODEL_ORDER",8)}function zCn(t,n,s){var u,f,g,E,S;E=P8(t,s),S=mt(N1,Gy,10,n.length,0,1),u=0;for(g=E.Kc();g.Ob();)f=b(g.Pb(),12),er(Jt(ce(f,(Pt(),Ez))))&&(S[u++]=b(ce(f,id),10));if(u=0;g+=s?1:-1)E=E|n.c.lg(C,g,s,u&&!er(Jt(ce(n.j,(Pt(),v_))))&&!er(Jt(ce(n.j,(Pt(),ck))))),E=E|n.q.ug(C,g,s),E=E|bVt(t,C[g],s,u);return $s(t.c,n),E}function UQ(t,n,s){var u,f,g,E,S,C,O,M,U,q;for(M=X7t(t.j),U=0,q=M.length;U1&&(t.a=!0),Eun(b(s.b,68),ua(Uo(b(n.b,68).c),_m(no(Uo(b(s.b,68).a),b(n.b,68).a),f))),n7t(t,n),Ozt(t,s)}function Nzt(t){var n,s,u,f,g,E,S;for(g=new me(t.a.a);g.a0&&g>0?E.p=n++:u>0?E.p=s++:g>0?E.p=f++:E.p=s++}Hr(),ks(t.j,new c1t)}function WCn(t){var n,s;s=null,n=b(nr(t.g,0),18);do{if(s=n.d.i,$a(s,(Pt(),Cp)))return b(ce(s,Cp),12).i;if(s.k!=(bn(),Es)&&ri(new Nn(Mn(Ss(s).a.Kc(),new L))))n=b(Gn(new Nn(Mn(Ss(s).a.Kc(),new L))),18);else if(s.k!=Es)return null}while(!!s&&s.k!=(bn(),Es));return s}function jCn(t,n){var s,u,f,g,E,S,C,O,M;S=n.j,E=n.g,C=b(nr(S,S.c.length-1),113),M=(qr(0,S.c.length),b(S.c[0],113)),O=vfe(t,E,C,M);for(g=1;gO)C=s,M=f,O=u;n.a=M,n.c=C}function KCn(t,n,s){var u,f,g,E,S,C,O;O=new by(new vCt(t));for(E=Ce(Te(uJt,1),nWt,12,0,[n,s]),S=0,C=E.length;SC-t.b&&SC-t.a&&S0)if(g.a){if(S=g.b.Mf().a,s>S)f=(s-S)/2,g.d.b=f,g.d.c=f}else g.d.c=t.s+s;else if(s8(t.u))u=IMe(g.b),u.c<0&&(g.d.b=-u.c),u.c+u.b>g.b.Mf().a&&(g.d.c=u.c+u.b-g.b.Mf().a)}function d4n(t,n){var s,u,f,g,E;E=new Ut,s=n;do g=b(An(t.b,s),131),g.B=s.c,g.D=s.d,rn(E.c,g),s=b(An(t.k,s),18);while(s);return u=(qr(0,E.c.length),b(E.c[0],131)),u.j=!0,u.A=b(u.d.a.ec().Kc().Pb(),18).c.i,f=b(nr(E,E.c.length-1),131),f.q=!0,f.C=b(f.d.a.ec().Kc().Pb(),18).d.i,E}function f4n(t){var n,s;if(n=b(t.a,17).a,s=b(t.b,17).a,n>=0){if(n==s)return new js($t(-n-1),$t(-n-1));if(n==-s)return new js($t(-n),$t(s+1))}if(d.Math.abs(n)>d.Math.abs(s)){if(n<0)return new js($t(-n),$t(s));return new js($t(-n),$t(s+1))}return new js($t(n+1),$t(s))}function p4n(t){var n,s;if(s=b(ce(t,(Qt(),sh)),171),n=b(ce(t,(Pt(),mE)),311),s==(Uf(),__))At(t,sh,Sz),At(t,mE,(Sb(),ok));else if(s==Mx)At(t,sh,Sz),At(t,mE,(Sb(),D5));else if(n==(Sb(),ok))At(t,sh,__),At(t,mE,vz);else if(n==D5)At(t,sh,Mx),At(t,mE,vz)}function GQ(){GQ=z,Nz=new Kyt,Snr=Fi(new Ns,(Xo(),su),(il(),FJ)),Cnr=Lh(Fi(new Ns,su,YJ),ac,qJ),knr=km(km(IM(Lh(Fi(new Ns,f0,XJ),ac,KJ),wu),jJ),QJ),Tnr=Lh(Fi(Fi(Fi(new Ns,O1,UJ),wu,zJ),wu,sN),ac,GJ),xnr=Lh(Fi(Fi(new Ns,wu,sN),wu,BJ),ac,PJ)}function sD(){sD=z,Inr=Fi(Lh(new Ns,(Xo(),ac),(il(),kUe)),su,FJ),Mnr=km(km(IM(Lh(Fi(new Ns,f0,XJ),ac,KJ),wu),jJ),QJ),Onr=Lh(Fi(Fi(Fi(new Ns,O1,UJ),wu,zJ),wu,sN),ac,GJ),Lnr=Fi(Fi(new Ns,su,YJ),ac,qJ),Nnr=Lh(Fi(Fi(new Ns,wu,sN),wu,BJ),ac,PJ)}function g4n(t,n,s,u,f){var g,E;if((!gl(n)&&n.c.i.c==n.d.i.c||!D9t(Sc(Ce(Te(uo,1),Bt,8,0,[f.i.n,f.n,f.a])),s))&&!gl(n)){if(n.c==f?d6(n.a,0,new sl(s)):Oi(n.a,new sl(s)),u&&!z0(t.a,s)){if(E=b(ce(n,(Qt(),jl)),75),!E)E=new Rh,At(n,jl,E);g=new sl(s),cs(E,g,E.c.b,E.c),$s(t.a,g)}}}function Dzt(t,n){var s,u,f,g;g=gi(nl(x1,b1(gi(nl(n==null?0:Da(n),C1)),15))),s=g&t.b.length-1,f=null;for(u=t.b[s];u;f=u,u=u.a)if(u.d==g&&Sm(u.i,n))return!f?t.b[s]=u.a:f.a=u.a,d3t(b(gp(u.c),604),b(gp(u.f),604)),XF(b(gp(u.b),227),b(gp(u.e),227)),--t.f,++t.e,!0;return!1}function m4n(t){var n,s;for(s=new Nn(Mn(co(t).a.Kc(),new L));ri(s);)if(n=b(Gn(s),18),n.c.i.k!=(bn(),Jc))throw _e(new py(U0e+qU(t)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function b4n(t,n,s){var u,f,g,E,S,C,O;if(f=$Bt(t.Db&254),f==0)t.Eb=s;else{if(f==1)if(S=mt(ao,en,1,2,5,1),g=yfe(t,n),g==0)S[0]=s,S[1]=t.Eb;else S[0]=t.Eb,S[1]=s;else{S=mt(ao,en,1,f+1,5,1),E=H2(t.Eb);for(u=2,C=0,O=0;u<=128;u<<=1)u==n?S[O++]=s:(t.Db&u)!=0&&(S[O++]=E[C++])}t.Eb=S}t.Db|=n}function Pzt(t,n,s){var u,f,g,E;this.b=new Ut,f=0,u=0;for(E=new me(t);E.a0)g=b(nr(this.b,0),176),f+=g.o,u+=g.p;f*=2,u*=2,n>1?f=Ks(d.Math.ceil(f*n)):u=Ks(d.Math.ceil(u/n)),this.a=new w7e(f,u)}function Bzt(t,n,s,u,f,g){var E,S,C,O,M,U,q,re,ae,ue,de,xe;if(M=u,n.j&&n.o)re=b(An(t.f,n.A),60),ue=re.d.c+re.d.b,--M;else ue=n.a.c+n.a.b;if(U=f,s.q&&s.o)re=b(An(t.f,s.C),60),O=re.d.c,++U;else O=s.a.c;de=O-ue,C=d.Math.max(2,U-M),S=de/C,ae=ue+S;for(q=M;q=0;E+=f?1:-1){S=n[E],C=u==(Ht(),Cn)?f?Tc(S,u):$f(Tc(S,u)):f?$f(Tc(S,u)):Tc(S,u),g&&(t.c[S.p]=C.gc());for(U=C.Kc();U.Ob();)M=b(U.Pb(),12),t.d[M.p]=O++;Us(s,C)}}function $zt(t,n,s){var u,f,g,E,S,C,O,M;g=rt(ht(t.b.Kc().Pb())),O=rt(ht(p1n(n.b))),u=_m(Uo(t.a),O-s),f=_m(Uo(n.a),s-g),M=ua(u,f),_m(M,1/(O-g)),this.a=M,this.b=new Ut,S=!0,E=t.b.Kc(),E.Pb();while(E.Ob()){if(C=rt(ht(E.Pb())),S&&C-s>_ge)this.b.Fc(s),S=!1;this.b.Fc(C)}S&&this.b.Fc(s)}function y4n(t){var n,s,u,f;if(Pkn(t,t.n),t.d.c.length>0){EM(t.c);while(v8e(t,b(ge(new me(t.e.a)),125))>5,n&=31,u>=t.d)return t.e<0?(Am(),YXt):(Am(),XD);if(g=t.d-u,f=mt(ci,$i,28,g+1,15,1),cSn(f,g,t.a,u,n),t.e<0){for(s=0;s0&&t.a[s]<<32-n!=0){for(s=0;s=0)return!1;else if(s=F4((Ph(),Yo),f,n),!s)return!0;else return u=s.Ik(),(u>1||u==-1)&&Lw(Hl(Yo,s))!=3;else return!1}function w4n(t,n,s,u){var f,g,E,S,C;if(S=ic(b(We((!n.b&&(n.b=new Wr(qn,n,4,7)),n.b),0),84)),C=ic(b(We((!n.c&&(n.c=new Wr(qn,n,5,8)),n.c),0),84)),Ya(S)==Ya(C))return null;if(XT(C,S))return null;if(E=X$(n),E==s)return u;else if(g=b(An(t.a,E),10),g){if(f=g.e,f)return f}return null}function S4n(t,n,s){var u,f,g,E,S;s.Ug("Longest path to source layering",1),t.a=n,S=t.a.a,t.b=mt(ci,$i,28,S.c.length,15,1),u=0;for(E=new me(S);E.a0)s[0]+=t.d,E-=s[0];if(s[2]>0)s[2]+=t.d,E-=s[2];if(g=d.Math.max(0,E),s[1]=d.Math.max(s[1],E),uNe(t,qu,f.c+u.b+s[0]-(s[1]-E)/2,s),n==qu)t.c.b=g,t.c.c=f.c+u.b+(g-E)/2}function Kzt(){this.c=mt(xo,Ml,28,(Ht(),Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn])).length,15,1),this.b=mt(xo,Ml,28,Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn]).length,15,1),this.a=mt(xo,Ml,28,Ce(Te(bl,1),Qc,64,0,[Cc,gn,Cn,Kn,yn]).length,15,1),fRe(this.c,Wa),fRe(this.b,Gs),fRe(this.a,Gs)}function yu(t,n,s){var u,f,g,E;if(n<=s)f=n,g=s;else f=s,g=n;if(u=0,t.b==null)t.b=mt(ci,$i,28,2,15,1),t.b[0]=f,t.b[1]=g,t.c=!0;else{if(u=t.b.length,t.b[u-1]+1==f){t.b[u-1]=g;return}E=mt(ci,$i,28,u+2,15,1),au(t.b,0,E,0,u),t.b=E,t.b[u-1]>=f&&(t.c=!1,t.a=!1),t.b[u++]=f,t.b[u]=g,t.c||N4(t)}}function R4n(t,n,s){var u,f,g,E,S,C,O;O=n.d,t.a=new Gu(O.c.length),t.c=new Zn;for(S=new me(O);S.a=0?t.Lh(O,!1,!0):eS(t,s,!1),61));e:for(g=U.Kc();g.Ob();){f=b(g.Pb(),58);for(M=0;M1)hx(f,f.i-1)}return u}}function Qzt(t,n){var s,u,f,g,E,S,C;s=new h4;for(g=new me(t.b);g.at.d[E.p])s+=rNe(t.b,g),jv(t.a,$t(g));while(!wM(t.a))DNe(t.b,b(UA(t.a),17).a)}return s}function D4n(t){var n,s,u,f,g,E,S,C,O;t.a=new jIe,O=0,f=0;for(u=new me(t.i.b);u.aS.d&&(M=S.d+S.a+O);s.c.d=M,n.a.zc(s,n),C=d.Math.max(C,s.c.d+s.c.a)}return C}function Tl(){Tl=z,cee=new IT("COMMENTS",0),Wf=new IT("EXTERNAL_PORTS",1),a9=new IT("HYPEREDGES",2),uee=new IT("HYPERNODES",3),bN=new IT("NON_FREE_PORTS",4),sk=new IT("NORTH_SOUTH_PORTS",5),s9=new IT(EWt,6),gN=new IT("CENTER_LABELS",7),mN=new IT("END_LABELS",8),hee=new IT("PARTITIONS",9)}function B4n(t,n,s,u,f){if(u<0){if(u=O4(t,f,Ce(Te(or,1),Bt,2,6,[Gpe,zpe,Vpe,Hpe,b5,qpe,Ype,Wpe,jpe,Kpe,Xpe,Qpe]),n),u<0&&(u=O4(t,f,Ce(Te(or,1),Bt,2,6,["Jan","Feb","Mar","Apr",b5,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),u<0)return!1;return s.k=u,!0}else if(u>0)return s.k=u-1,!0;return!1}function F4n(t,n,s,u,f){if(u<0){if(u=O4(t,f,Ce(Te(or,1),Bt,2,6,[Gpe,zpe,Vpe,Hpe,b5,qpe,Ype,Wpe,jpe,Kpe,Xpe,Qpe]),n),u<0&&(u=O4(t,f,Ce(Te(or,1),Bt,2,6,["Jan","Feb","Mar","Apr",b5,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),u<0)return!1;return s.k=u,!0}else if(u>0)return s.k=u-1,!0;return!1}function $4n(t,n,s,u,f,g){var E,S,C,O;if(S=32,u<0){if(n[0]>=t.length)return!1;if(S=Ko(t,n[0]),S!=43&&S!=45)return!1;if(++n[0],u=OQ(t,n),u<0)return!1;S==45&&(u=-u)}if(S==32&&n[0]-s==2&&f.b==2)C=new sj,O=C.q.getFullYear()-c_+c_-80,E=O%100,g.a=u==E,u+=(O/100|0)*100+(u=0?r_(t):u8(r_(ky(t)))),QD[n]=Bj(n0(t,n),0)?r_(n0(t,n)):u8(r_(ky(n0(t,n)))),t=nl(t,5);for(;n=O&&(C=u);if(!!C&&(M=d.Math.max(M,C.a.o.a)),M>q)U=O,q=M}return U}function q4n(t){var n,s,u,f,g,E,S;g=new by(b(mi(new Fn),50)),S=Gs;for(s=new me(t.d);s.aWWt?ks(C,t.b):u<=WWt&&u>jWt?ks(C,t.d):u<=jWt&&u>KWt?ks(C,t.c):u<=KWt&&ks(C,t.a),g=rVt(t,C,g);return f}function nVt(t,n,s,u){var f,g,E,S,C,O;f=(u.c+u.a)/2,Hd(n.j),Oi(n.j,f),Hd(s.e),Oi(s.e,f),O=new x3t;for(S=new me(t.f);S.a1,S)u=new Dt(f,s.b),Oi(n.a,u);T8(n.a,Ce(Te(uo,1),Bt,8,0,[q,U]))}function z8e(t,n,s){var u,f;if(n=48;s--)aP[s]=s-48<<24>>24;for(u=70;u>=65;u--)aP[u]=u-65+10<<24>>24;for(f=102;f>=97;f--)aP[f]=f-97+10<<24>>24;for(g=0;g<10;g++)Fte[g]=48+g&Ds;for(t=10;t<=15;t++)Fte[t]=65+t-10&Ds}function K4n(t,n){n.Ug("Process graph bounds",1),At(t,(Ma(),$be),p$(ude(zT(new Pr(null,new Gr(t.b,16)),new Cvt)))),At(t,Ube,p$(ude(zT(new Pr(null,new Gr(t.b,16)),new kvt)))),At(t,YVe,p$(cde(zT(new Pr(null,new Gr(t.b,16)),new Avt)))),At(t,WVe,p$(cde(zT(new Pr(null,new Gr(t.b,16)),new Rvt)))),n.Vg()}function X4n(t){var n,s,u,f,g;if(f=b(ce(t,(Qt(),EE)),21),g=b(ce(t,Iee),21),s=new Dt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),n=new sl(s),f.Hc((Md(),Kx))){if(u=b(ce(t,vN),8),g.Hc((bd(),FN)))u.a<=0&&(u.a=20),u.b<=0&&(u.b=20);n.a=d.Math.max(s.a,u.a),n.b=d.Math.max(s.b,u.b)}er(Jt(ce(t,cbe)))||CAn(t,s,n)}function Q4n(t,n){var s,u,f,g;for(g=Tc(n,(Ht(),Kn)).Kc();g.Ob();)u=b(g.Pb(),12),s=b(ce(u,(Pt(),id)),10),!!s&&l0(Zp(Qp(Jp(Xp(new fp,0),0.1),t.i[n.p].d),t.i[s.p].a));for(f=Tc(n,gn).Kc();f.Ob();)u=b(f.Pb(),12),s=b(ce(u,(Pt(),id)),10),!!s&&l0(Zp(Qp(Jp(Xp(new fp,0),0.1),t.i[s.p].d),t.i[n.p].a))}function epe(t){var n,s,u,f,g,E;if(!t.c){if(E=new H2t,n=tP,g=n.a.zc(t,n),g==null){for(u=new kn(nu(t));u.e!=u.i.gc();)s=b(Dn(u),89),f=jQ(s),He(f,90)&&ps(E,epe(b(f,29))),ii(E,s);n.a.Bc(t)!=null,n.a.gc()==0}Yyn(E),JT(E),t.c=new i4((b(We(Ct((Hv(),sn).o),15),19),E.i),E.g),fd(t).b&=-33}return t.c}function H8e(t){var n;if(t.c!=10)throw _e(new Ti(Ai((yi(),JZ))));switch(n=t.a,n){case 110:n=10;break;case 114:n=13;break;case 116:n=9;break;case 92:case 124:case 46:case 94:case 45:case 63:case 42:case 43:case 123:case 125:case 40:case 41:case 91:case 93:break;default:throw _e(new Ti(Ai((yi(),qf))))}return n}function oVt(t){var n,s,u,f,g;if(t.l==0&&t.m==0&&t.h==0)return"0";if(t.h==CG&&t.m==0&&t.l==0)return"-9223372036854775808";if(t.h>>19!=0)return"-"+oVt(Z6(t));s=t,u="";while(!(s.l==0&&s.m==0&&s.h==0)){if(f=Ihe(oZ),s=TDe(s,f,!0),n=""+O3t(p_),!(s.l==0&&s.m==0&&s.h==0)){g=9-n.length;for(;g>0;g--)n="0"+n}u=n+u}return u}function Z4n(t){var n,s,u,f,g,E,S;n=!1,s=0;for(f=new me(t.d.b);f.a=t.a)return-1;if(!CMe(n,s))return-1;if(I6(b(u.Kb(n),20)))return 1;f=0;for(E=b(u.Kb(n),20).Kc();E.Ob();){if(g=b(E.Pb(),18),C=g.c.i==n?g.d.i:g.c.i,S=q8e(t,C,s,u),S==-1)return-1;if(f=d.Math.max(f,S),f>t.c-1)return-1}return f+1}function lVt(t,n){var s,u,f,g,E,S;if(it(n)===it(t))return!0;if(!He(n,15))return!1;if(u=b(n,15),S=t.gc(),u.gc()!=S)return!1;if(E=u.Kc(),t.Yi()){for(s=0;s0){if(t._j(),n!=null){for(g=0;g>24;case 97:case 98:case 99:case 100:case 101:case 102:return t-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return t-65+10<<24>>24;default:throw _e(new bm("Invalid hexadecimal"))}}function HQ(){HQ=z,I$e=new JC("SPIRAL",0),C$e=new JC("LINE_BY_LINE",1),k$e=new JC("MANHATTAN",2),x$e=new JC("JITTER",3),zme=new JC("QUADRANTS_LINE_BY_LINE",4),R$e=new JC("QUADRANTS_MANHATTAN",5),A$e=new JC("QUADRANTS_JITTER",6),T$e=new JC("COMBINE_LINE_BY_LINE_MANHATTAN",7),S$e=new JC("COMBINE_JITTER_MANHATTAN",8)}function uVt(t,n,s,u){var f,g,E,S,C,O;C=xfe(t,s),O=xfe(n,s),f=!1;while(!!C&&!!O)if(u||K_n(C,O,s)){if(E=xfe(C,s),S=xfe(O,s),hU(n),hU(t),g=C.c,Cpe(C,!1),Cpe(O,!1),s)ix(n,O.p,g),n.p=O.p,ix(t,C.p+1,g),t.p=C.p;else ix(t,C.p,g),t.p=C.p,ix(n,O.p+1,g),n.p=O.p;Lo(C,null),Lo(O,null),C=E,O=S,f=!0}else break;return f}function hVt(t){switch(t.g){case 0:return new TSt;case 1:return new wSt;case 3:return new $At;case 4:return new gyt;case 5:return new f6t;case 6:return new SSt;case 2:return new ESt;case 7:return new gSt;case 8:return new bSt;default:throw _e(new fn("No implementation is available for the layerer "+(t.f!=null?t.f:""+t.g)))}}function ikn(t,n,s,u){var f,g,E,S,C;f=!1,g=!1;for(S=new me(u.j);S.a=n.length)throw _e(new Gl("Greedy SwitchDecider: Free layer not in graph."));this.c=n[t],this.e=new M$(u),ade(this.e,this.c,(Ht(),yn)),this.i=new M$(u),ade(this.i,this.c,Cn),this.f=new IOt(this.c),this.a=!g&&f.i&&!f.s&&this.c[0].k==(bn(),As),this.a&&ySn(this,t,n.length)}function fVt(t,n){var s,u,f,g,E,S;if(g=!t.B.Hc((bd(),aV)),E=t.B.Hc(Kye),t.a=new JBt(E,g,t.c),!!t.n&&SOe(t.a.n,t.n),Qle(t.g,(K0(),qu),t.a),!n)u=new V8(1,g,t.c),u.n.a=t.k,GA(t.p,(Ht(),gn),u),f=new V8(1,g,t.c),f.n.d=t.k,GA(t.p,Kn,f),S=new V8(0,g,t.c),S.n.c=t.k,GA(t.p,yn,S),s=new V8(0,g,t.c),s.n.b=t.k,GA(t.p,Cn,s)}function skn(t){var n,s,u;switch(n=b(ce(t.d,(Qt(),$b)),223),n.g){case 2:s=jIn(t);break;case 3:s=(u=new Ut,ys(pa(ec(wc(wc(new Pr(null,new Gr(t.d.b,16)),new xbt),new Cbt),new kbt),new dbt),new Kxt(u)),u);break;default:throw _e(new zl("Compaction not supported for "+n+" edges."))}m5n(t,s),Vo(new A2(t.g),new Wxt(t))}function okn(t,n){var s,u,f,g,E,S,C;if(n.Ug("Process directions",1),s=b(ce(t,(Oc(),OS)),88),s!=(Ms(),Vg))for(f=ti(t.b,0);f.b!=f.d.c;){switch(u=b(Jn(f),40),S=b(ce(u,(Ma(),Dz)),17).a,C=b(ce(u,Pz),17).a,s.g){case 4:C*=-1;break;case 1:g=S,S=C,C=g;break;case 2:E=S,S=-C,C=E}At(u,Dz,$t(S)),At(u,Pz,$t(C))}n.Vg()}function lkn(t,n){var s=new Tn;if(!!n&&nc(s,b(An(t.a,oV),96)),He(n,422)&&nc(s,b(An(t.a,lV),96)),He(n,366))return nc(s,b(An(t.a,Dl),96)),s;if(He(n,84)&&nc(s,b(An(t.a,qn),96)),He(n,207))return nc(s,b(An(t.a,ra),96)),s;if(He(n,193))return nc(s,b(An(t.a,ld),96)),s;return He(n,326)&&nc(s,b(An(t.a,ws),96)),s}function ckn(t){var n,s,u,f,g,E,S,C;C=new WMt;for(S=new me(t.a);S.a0&&n=0)return!1;else n.p=s.b,Gt(s.e,n);if(f==(bn(),mo)||f==Su)for(E=new me(n.j);E.at.d[S.p])s+=rNe(t.b,g),jv(t.a,$t(g))}else++E;s+=t.b.d*E;while(!wM(t.a))DNe(t.b,b(UA(t.a),17).a)}return s}function SVt(t){var n,s,u,f,g,E;if(g=0,n=vp(t),!!n.kk()&&(g|=4),(t.Bb&$h)!=0&&(g|=2),He(t,102)){if(s=b(t,19),f=El(s),(s.Bb&Hc)!=0&&(g|=32),f)Un(VT(f)),g|=8,E=f.t,(E>1||E==-1)&&(g|=16),(f.Bb&Hc)!=0&&(g|=64);(s.Bb&ml)!=0&&(g|=Tx),g|=u0}else if(He(n,469))g|=512;else u=n.kk(),!!u&&(u.i&1)!=0&&(g|=256);return(t.Bb&512)!=0&&(g|=128),g}function Ekn(t,n){var s;if(t.f==lve)return s=Lw(Hl((Ph(),Yo),n)),t.e?s==4&&n!=(d5(),J5)&&n!=(d5(),Z5)&&n!=(d5(),cve)&&n!=(d5(),uve):s==2;if(!!t.d&&(t.d.Hc(n)||t.d.Hc(WA(Hl((Ph(),Yo),n)))||t.d.Hc(F4((Ph(),Yo),t.b,n))))return!0;if(t.f){if(N8e((Ph(),t.f),q$(Hl(Yo,n))))return s=Lw(Hl(Yo,n)),t.e?s==4:s==2}return!1}function wkn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re;q=-1,re=0;for(O=t,M=0,U=O.length;M0&&++re}++q}return re}function Skn(t,n,s,u){var f,g,E,S,C,O,M,U;return E=b(It(s,(Hi(),Y5)),8),C=E.a,M=E.b+t,f=d.Math.atan2(M,C),f<0&&(f+=cE),f+=n,f>cE&&(f-=cE),S=b(It(u,Y5),8),O=S.a,U=S.b+t,g=d.Math.atan2(U,O),g<0&&(g+=cE),g+=n,g>cE&&(g-=cE),_g(),a0(0.0000000001),d.Math.abs(f-g)<=0.0000000001||f==g||isNaN(f)&&isNaN(g)?0:fg?1:_w(isNaN(f),isNaN(g))}function npe(t){var n,s,u,f,g,E,S;S=new Zn;for(u=new me(t.a.b);u.a=t.o)throw _e(new C5e);S=n>>5,E=n&31,g=n0(1,gi(n0(E,1))),f?t.n[s][S]=q0(t.n[s][S],g):t.n[s][S]=io(t.n[s][S],S6e(g)),g=n0(g,1),u?t.n[s][S]=q0(t.n[s][S],g):t.n[s][S]=io(t.n[s][S],S6e(g))}catch(C){if(C=Qa(C),He(C,333))throw _e(new Gl(T0e+t.o+"*"+t.p+x0e+n+ll+s+C0e));else throw _e(C)}}function Ckn(t,n,s,u){var f,g,E,S,C,O,M,U,q;q=new by(new yCt(t));for(S=Ce(Te(N1,1),Gy,10,0,[n,s]),C=0,O=S.length;C0)u=(!t.n&&(t.n=new kt(Dl,t,1,7)),b(We(t.n,0),135)).a,!u||Bi(Bi((n.a+=' "',n),u),'"')}else Bi(Bi((n.a+=' "',n),s),'"');return Bi(pw(Bi(pw(Bi(pw(Bi(pw((n.a+=" (",n),t.i),","),t.j)," | "),t.g),","),t.f),")"),n.a}function TVt(t){var n,s,u;if((t.Db&64)!=0)return Pfe(t);if(n=new Vd(eFe),s=t.k,!s){if(!t.n&&(t.n=new kt(Dl,t,1,7)),t.n.i>0)u=(!t.n&&(t.n=new kt(Dl,t,1,7)),b(We(t.n,0),135)).a,!u||Bi(Bi((n.a+=' "',n),u),'"')}else Bi(Bi((n.a+=' "',n),s),'"');return Bi(pw(Bi(pw(Bi(pw(Bi(pw((n.a+=" (",n),t.i),","),t.j)," | "),t.g),","),t.f),")"),n.a}function Rkn(t,n){var s,u,f,g,E;n==(N8(),Abe)&&eG(b(_a(t.a,(ax(),mz)),15));for(f=b(_a(t.a,(ax(),mz)),15).Kc();f.Ob();)switch(u=b(f.Pb(),105),s=b(nr(u.j,0),113).d.j,g=new Zh(u.j),ks(g,new Mbt),n.g){case 2:Ife(t,g,s,(Hw(),y_),1);break;case 1:case 0:E=gCn(g),Ife(t,new Sy(g,0,E),s,(Hw(),y_),0),Ife(t,new Sy(g,E,g.c.length),s,y_,1)}}function ape(t,n){var s,u,f,g,E,S,C;if(n==null||n.length==0)return null;if(f=b(mu(t.a,n),143),!f){for(u=(S=new hb(t.b).a.vc().Kc(),new CT(S));u.a.Ob();)if(s=(g=b(u.a.Pb(),44),b(g.md(),143)),E=s.c,C=n.length,Br(E.substr(E.length-C,C),n)&&(n.length==E.length||Ko(E,E.length-n.length-1)==46)){if(f)return null;f=s}!!f&&Vl(t.a,n,f)}return f}function Ikn(t,n){var s,u,f,g;if(s=new On,u=b(uc(ec(new Pr(null,new Gr(t.f,16)),s),WT(new Pe,new Ue,new fe,new be,Ce(Te(Wl,1),Rt,108,0,[(rd(),xx),fc]))),21),f=u.gc(),u=b(uc(ec(new Pr(null,new Gr(n.f,16)),s),WT(new Pe,new Ue,new fe,new be,Ce(Te(Wl,1),Rt,108,0,[xx,fc]))),21),g=u.gc(),ff.p){if(Xs(g,Kn),g.d)S=g.o.b,n=g.a.b,g.a.b=S-n}else if(g.j==Kn&&f.p>t.p){if(Xs(g,gn),g.d)S=g.o.b,n=g.a.b,g.a.b=-(S-n)}break}return f}function cG(t,n,s,u,f){var g,E,S,C,O,M,U;if(!(He(n,207)||He(n,366)||He(n,193)))throw _e(new fn("Method only works for ElkNode-, ElkLabel and ElkPort-objects."));return E=t.a/2,C=n.i+u-E,M=n.j+f-E,O=C+n.g+t.a,U=M+n.f+t.a,g=new Rh,Oi(g,new Dt(C,M)),Oi(g,new Dt(C,U)),Oi(g,new Dt(O,U)),Oi(g,new Dt(O,M)),S=new Wfe(g),nc(S,n),s&&Ki(t.b,n,S),S}function TO(t,n,s){var u,f,g,E,S,C,O,M,U,q;g=new Dt(n,s);for(M=new me(t.a);M.a1,S)u=new Dt(f,s.b),Oi(n.a,u);T8(n.a,Ce(Te(uo,1),Bt,8,0,[q,U]))}function _p(){_p=z,Bee=new OT(Dm,0),Az=new OT("NIKOLOV",1),Rz=new OT("NIKOLOV_PIXEL",2),uVe=new OT("NIKOLOV_IMPROVED",3),hVe=new OT("NIKOLOV_IMPROVED_PIXEL",4),cVe=new OT("DUMMYNODE_PERCENTAGE",5),dVe=new OT("NODECOUNT_PERCENTAGE",6),Fee=new OT("NO_BOUNDARY",7),RS=new OT("MODEL_ORDER_LEFT_TO_RIGHT",8),zx=new OT("MODEL_ORDER_RIGHT_TO_LEFT",9)}function Ukn(t){var n,s,u,f,g;u=t.length,n=new SM,g=0;while(g=40,E&&G3n(t),KAn(t),y4n(t),s=VBt(t),u=0;while(!!s&&u0&&Oi(t.f,g);else t.c[E]-=O+1,t.c[E]<=0&&t.a[E]>0&&Oi(t.e,g)}}}function BVt(t,n,s,u){var f,g,E,S,C,O,M;C=new Dt(s,u),no(C,b(ce(n,(Ma(),AN)),8));for(M=ti(n.b,0);M.b!=M.d.c;)O=b(Jn(M),40),ua(O.e,C),Oi(t.b,O);for(S=b(uc(MOe(new Pr(null,new Gr(n.a,16))),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15).Kc();S.Ob();){E=b(S.Pb(),65);for(g=ti(E.a,0);g.b!=g.d.c;)f=b(Jn(g),8),f.a+=C.a,f.b+=C.b;Oi(t.a,E)}}function sDe(t,n){var s,u,f,g;if(0<(He(t,16)?b(t,16).gc():vb(t.Kc()))){if(f=n,1=0&&Cg*2)M=new _X(U),O=Nh(E)/Od(E),C=Ipe(M,n,new yA,s,u,f,O),ua(V0(M.e),C),U.c.length=0,g=0,rn(U.c,M),rn(U.c,E),g=Nh(M)*Od(M)+Nh(E)*Od(E);else rn(U.c,E),g+=Nh(E)*Od(E);return U}function $Vt(t,n){var s,u,f,g,E,S;if(S=b(ce(n,(Qt(),ms)),101),!(S==(Ao(),B1)||S==xu))return;f=new Dt(n.f.a+n.d.b+n.d.c,n.f.b+n.d.d+n.d.a).b;for(E=new me(t.a);E.as?n:s;O<=U;++O)if(O==s)S=u++;else g=f[O],M=ae.am(g.Lk()),O==n&&(C=O==U&&!M?u-1:u),M&&++u;return q=b(U8(t,n,s),76),S!=C&&ZI(t,new oU(t.e,7,E,$t(S),re.md(),C)),q}}}else return b(Hfe(t,n,s),76);return b(U8(t,n,s),76)}function a3n(t,n){var s,u,f,g,E,S,C;n.Ug("Port order processing",1),C=b(ce(t,(Qt(),zze)),430);for(u=new me(t.b);u.a=0){if(S=e2n(t,E),S){if(O<22?C.l|=1<>>1,E.m=M>>>1|(U&1)<<21,E.l=q>>>1|(M&1)<<21,--O}if(s&&Ede(C),g)if(u)p_=Z6(t),f&&(p_=TPt(p_,(D6(),UFe)));else p_=Qu(t.l,t.m,t.h);return C}function l3n(t,n){var s,u,f,g,E,S,C,O,M,U;O=t.e[n.c.p][n.p]+1,C=n.c.a.c.length+1;for(S=new me(t.a);S.a0&&(pn(0,t.length),t.charCodeAt(0)==45||(pn(0,t.length),t.charCodeAt(0)==43))?1:0;for(u=E;us)throw _e(new bm(sS+t+'"'));return S}function c3n(t){var n,s,u,f,g,E,S;E=new Va;for(g=new me(t.a);g.a1)&&n==1&&b(t.a[t.b],10).k==(bn(),Jc))p5(b(t.a[t.b],10),(Qd(),D1));else if(u&&(!s||(t.c-t.b&t.a.length-1)>1)&&n==1&&b(t.a[t.c-1&t.a.length-1],10).k==(bn(),Jc))p5(b(t.a[t.c-1&t.a.length-1],10),(Qd(),C_));else if((t.c-t.b&t.a.length-1)==2)p5(b(O8(t),10),(Qd(),D1)),p5(b(O8(t),10),C_);else $xn(t,f);eNe(t)}function d3n(t,n,s){var u,f,g,E,S;g=0;for(f=new kn((!t.a&&(t.a=new kt(ra,t,10,11)),t.a));f.e!=f.i.gc();)u=b(Dn(f),27),E="",(!u.n&&(u.n=new kt(Dl,u,1,7)),u.n).i==0||(E=b(We((!u.n&&(u.n=new kt(Dl,u,1,7)),u.n),0),135).a),S=new wde(g++,n,E),nc(S,u),At(S,(Ma(),A9),u),S.e.b=u.j+u.f/2,S.f.a=d.Math.max(u.g,1),S.e.a=u.i+u.g/2,S.f.b=d.Math.max(u.f,1),Oi(n.b,S),Hu(s.f,u,S)}function f3n(t){var n,s,u,f,g;if(u=b(ce(t,(Pt(),Ea)),27),g=b(It(u,(Qt(),EE)),181).Hc((Md(),IE)),!t.e)if(f=b(ce(t,Tu),21),n=new Dt(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),f.Hc((Tl(),Wf)))Ta(u,ms,(Ao(),xu)),nS(u,n.a,n.b,!1,!0);else er(Jt(It(u,cbe)))||nS(u,n.a,n.b,!0,!0);g?Ta(u,EE,Tr(IE)):Ta(u,EE,(s=b(G0(K9),9),new Rf(s,b(t0(s,s.length),9),0)))}function oDe(t,n,s){var u,f,g,E;if(n[0]>=t.length)return s.o=0,!0;switch(Ko(t,n[0])){case 43:f=1;break;case 45:f=-1;break;default:return s.o=0,!0}if(++n[0],g=n[0],E=OQ(t,n),E==0&&n[0]==g)return!1;if(n[0]S)S=f,M.c.length=0;f==S&&Gt(M,new js(s.c.i,s))}Hr(),ks(M,t.c),Cw(t.b,C.p,M)}}}function b3n(t,n){var s,u,f,g,E,S,C,O,M;for(E=new me(n.b);E.aS)S=f,M.c.length=0;f==S&&Gt(M,new js(s.d.i,s))}Hr(),ks(M,t.c),Cw(t.f,C.p,M)}}}function y3n(t,n){var s,u,f,g,E,S,C,O;if(O=Jt(ce(n,(Oc(),nir))),O==null||(_n(O),O)){HTn(t,n),f=new Ut;for(C=ti(n.b,0);C.b!=C.d.c;)if(E=b(Jn(C),40),s=jMe(t,E,null),s)nc(s,n),rn(f.c,s);if(t.a=null,t.b=null,f.c.length>1)for(u=new me(f);u.a=0&&S!=s)g=new go(t,1,S,E,null),!u?u=g:u.nj(g);if(s>=0)g=new go(t,1,s,S==s?E:null,n),!u?u=g:u.nj(g)}return u}function zVt(t){var n,s,u;if(t.b==null){if(u=new gy,t.i!=null)Ol(u,t.i),u.a+=":";if((t.f&256)!=0){if((t.f&256)!=0&&t.a!=null)Bhn(t.i)||(u.a+="//"),Ol(u,t.a);if(t.d!=null)u.a+="/",Ol(u,t.d);(t.f&16)!=0&&(u.a+="/");for(n=0,s=t.j.length;nq)return!1;if(U=(C=fD(u,q,!1),C.a),M+S+U<=n.b){if(lU(s,g-s.s),s.c=!0,lU(u,g-s.s),HU(u,s.s,s.t+s.d+S),u.k=!0,gLe(s.q,u),re=!0,f){if(xX(n,u),u.j=n,t.c.length>E)WU((qr(E,t.c.length),b(t.c[E],186)),u),(qr(E,t.c.length),b(t.c[E],186)).a.c.length==0&&xy(t,E)}}return re}function x3n(t,n){var s,u,f,g,E,S;if(n.Ug("Partition midprocessing",1),f=new Pw,ys(pa(new Pr(null,new Gr(t.a,16)),new h1t),new Pxt(f)),f.d==0)return;S=b(uc(BOe((g=f.i,new Pr(null,(!g?f.i=new d4(f,f.c):g).Nc()))),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15),u=S.Kc(),s=b(u.Pb(),17);while(u.Ob())E=b(u.Pb(),17),yCn(b(_a(f,s),21),b(_a(f,E),21)),s=E;n.Vg()}function qVt(t,n,s){var u,f,g,E,S,C,O,M;if(n.p==0){if(n.p=1,E=s,!E)f=new Ut,g=(u=b(G0(bl),9),new Rf(u,b(t0(u,u.length),9),0)),E=new js(f,g);b(E.a,15).Fc(n),n.k==(bn(),As)&&b(E.b,21).Fc(b(ce(n,(Pt(),Pc)),64));for(C=new me(n.j);C.a0){if(f=b(t.Ab.g,2033),n==null){for(g=0;gs.s&&SE)return Ht(),Cn;break;case 4:case 3:if(M<0)return Ht(),gn;else if(M+s>g)return Ht(),Kn}return C=(O+S/2)/E,u=(M+s/2)/g,C+u<=1&&C-u<=0?(Ht(),yn):C+u>=1&&C-u>=0?(Ht(),Cn):u<0.5?(Ht(),gn):(Ht(),Kn)}function I3n(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue;s=!1,M=rt(ht(ce(n,(Qt(),AS)))),ae=l_*M;for(f=new me(n.b);f.aC+ae)ue=U.g+q.g,q.a=(q.g*q.a+U.g*U.a)/ue,q.g=ue,U.f=q,s=!0}g=S,U=q}}return s}function KVt(t,n,s,u,f,g,E){var S,C,O,M,U,q;q=new IA;for(O=n.Kc();O.Ob();){S=b(O.Pb(),853);for(U=new me(S.Rf());U.a0)if(S.a){if(O=S.b.Mf().b,f>O)if(t.v||S.c.d.c.length==1)E=(f-O)/2,S.d.d=E,S.d.a=E;else s=b(nr(S.c.d,0),187).Mf().b,u=(s-O)/2,S.d.d=d.Math.max(0,u),S.d.a=f-u-O}else S.d.a=t.t+f;else if(s8(t.u))g=IMe(S.b),g.d<0&&(S.d.d=-g.d),g.d+g.a>S.b.Mf().b&&(S.d.a=g.d+g.a-S.b.Mf().b)}function c0(){c0=z,N5=new No((Hi(),Xz),$t(1)),OJ=new No(AE,80),RZt=new No(bYe,5),vZt=new No(Sk,GO),kZt=new No(Hye,$t(1)),AZt=new No(qye,(an(),!0)),W$e=new Ew(50),xZt=new No(Qy,W$e),H$e=jz,j$e=G9,_Zt=new No(Mye,!1),Y$e=Kz,SZt=Yx,TZt=x_,wZt=kE,EZt=kk,CZt=Wx,q$e=(UMe(),dZt),e1e=mZt,IJ=hZt,Jme=fZt,K$e=gZt,NZt=LN,LZt=gte,OZt=Qz,IZt=pte,X$e=(n5(),Xx),new No(j5,X$e)}function L3n(t,n){var s;switch(mU(t)){case 6:return So(n);case 7:return LT(n);case 8:return NT(n);case 3:return Array.isArray(n)&&(s=mU(n),!(s>=14&&s<=16));case 11:return n!=null&&typeof n===Mpe;case 12:return n!=null&&(typeof n===vG||typeof n==Mpe);case 0:return afe(n,t.__elementTypeId$);case 2:return $ue(n)&&n.Tm!==ee;case 1:return $ue(n)&&n.Tm!==ee||afe(n,t.__elementTypeId$);default:return!0}}function M3n(t){var n,s,u,f;if(u=t.o,PT(),t.A.dc()||da(t.A,L$e))f=u.a;else{if(t.D?f=d.Math.max(u.a,eD(t.f)):f=eD(t.f),t.A.Hc((Md(),nV))&&!t.B.Hc((bd(),X9)))f=d.Math.max(f,eD(b(Nl(t.p,(Ht(),gn)),252))),f=d.Math.max(f,eD(b(Nl(t.p,Kn),252)));n=uPt(t),!!n&&(f=d.Math.max(f,n.a))}er(Jt(t.e.Tf().of((Hi(),Yx))))?u.a=d.Math.max(u.a,f):u.a=f,s=t.f.i,s.c=0,s.b=f,dpe(t.f)}function XVt(t,n){var s,u,f,g;if(u=d.Math.min(d.Math.abs(t.c-(n.c+n.b)),d.Math.abs(t.c+t.b-n.c)),g=d.Math.min(d.Math.abs(t.d-(n.d+n.a)),d.Math.abs(t.d+t.a-n.d)),s=d.Math.abs(t.c+t.b/2-(n.c+n.b/2)),s>t.b/2+n.b/2)return 1;if(f=d.Math.abs(t.d+t.a/2-(n.d+n.a/2)),f>t.a/2+n.a/2)return 1;if(s==0&&f==0)return 0;if(s==0)return g/f+1;if(f==0)return u/s+1;return d.Math.min(u/s,g/f)+1}function D3n(t,n){var s,u,f,g,E,S,C;g=0,S=0,C=0;for(f=new me(t.f.e);f.a0&&t.d!=(w8(),n1e)&&(S+=E*(u.d.a+t.a[n.a][u.a]*(n.d.a-u.d.a)/s)),s>0&&t.d!=(w8(),t1e)&&(C+=E*(u.d.b+t.a[n.a][u.a]*(n.d.b-u.d.b)/s))}switch(t.d.g){case 1:return new Dt(S/g,n.d.b);case 2:return new Dt(n.d.a,C/g);default:return new Dt(S/g,C/g)}}function QVt(t){var n,s,u,f,g,E;s=(!t.a&&(t.a=new Os(lf,t,5)),t.a).i+2,E=new Gu(s),Gt(E,new Dt(t.j,t.k)),ys(new Pr(null,(!t.a&&(t.a=new Os(lf,t,5)),new Gr(t.a,16))),new l4t(E)),Gt(E,new Dt(t.b,t.c)),n=1;while(n0)AU(C,!1,(Ms(),Kl)),AU(C,!0,sc);Ju(n.g,new h5t(t,s)),Ki(t.g,n,s)}function eHt(){eHt=z;var t;jFe=Ce(Te(ci,1),$i,28,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),Rme=mt(ci,$i,28,37,15,1),VXt=Ce(Te(ci,1),$i,28,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),KFe=mt(P_,o0e,28,37,14,1);for(t=2;t<=36;t++)Rme[t]=Ks(d.Math.pow(t,jFe[t])),KFe[t]=KU(SG,Rme[t])}function P3n(t){var n;if((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i!=1)throw _e(new fn(Rjt+(!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i));return n=new Rh,!!CU(b(We((!t.b&&(t.b=new Wr(qn,t,4,7)),t.b),0),84))&&Po(n,zqt(t,CU(b(We((!t.b&&(t.b=new Wr(qn,t,4,7)),t.b),0),84)),!1)),!!CU(b(We((!t.c&&(t.c=new Wr(qn,t,5,8)),t.c),0),84))&&Po(n,zqt(t,CU(b(We((!t.c&&(t.c=new Wr(qn,t,5,8)),t.c),0),84)),!0)),n}function tHt(t,n){var s,u,f,g,E;n.d?f=t.a.c==(Tm(),IS)?co(n.b):Ss(n.b):f=t.a.c==(Tm(),jy)?co(n.b):Ss(n.b),g=!1;for(u=new Nn(Mn(f.a.Kc(),new L));ri(u);){if(s=b(Gn(u),18),E=er(t.a.f[t.a.g[n.b.p].p]),!E&&!gl(s)&&s.c.i.c==s.d.i.c)continue;if(er(t.a.n[t.a.g[n.b.p].p])||er(t.a.n[t.a.g[n.b.p].p]))continue;if(g=!0,z0(t.b,t.a.g[P_n(s,n.b).p]))return n.c=!0,n.a=s,n}return n.c=g,n.a=null,n}function cDe(t,n,s){var u,f,g,E,S,C,O;if(u=s.gc(),u==0)return!1;else{if(t.Pj())if(C=t.Qj(),y7e(t,n,s),E=u==1?t.Ij(3,null,s.Kc().Pb(),n,C):t.Ij(5,null,s,n,C),t.Mj()){S=u<100?null:new Pv(u),g=n+u;for(f=n;f0){for(E=0;E>16==-15&&t.Cb.Yh()&&Vhe(new Fhe(t.Cb,9,13,s,t.c,Py(pd(b(t.Cb,62)),t)));else if(He(t.Cb,90)){if(t.Db>>16==-23&&t.Cb.Yh())n=t.c,He(n,90)||(n=(Vr(),Lp)),He(s,90)||(s=(Vr(),Lp)),Vhe(new Fhe(t.Cb,9,10,s,n,Py(nu(b(t.Cb,29)),t)))}}}return t.c}function $3n(t,n,s){var u,f,g,E,S,C,O,M,U;s.Ug("Hyperedge merging",1),cxn(t,n),C=new Mo(n.b,0);while(C.b0,S=ZX(n,g),s?wIe(S.b,n):wIe(S.g,n),S4(S).c.length==1&&cs(u,S,u.c.b,u.c),f=new js(g,n),jv(t.o,f),fh(t.e.a,g)}}function lHt(t,n){var s,u,f,g,E,S,C;if(u=d.Math.abs(CK(t.b).a-CK(n.b).a),S=d.Math.abs(CK(t.b).b-CK(n.b).b),f=0,C=0,s=1,E=1,u>t.b.b/2+n.b.b/2)f=d.Math.min(d.Math.abs(t.b.c-(n.b.c+n.b.b)),d.Math.abs(t.b.c+t.b.b-n.b.c)),s=1-f/u;if(S>t.b.a/2+n.b.a/2)C=d.Math.min(d.Math.abs(t.b.d-(n.b.d+n.b.a)),d.Math.abs(t.b.d+t.b.a-n.b.d)),E=1-C/S;return g=d.Math.min(s,E),(1-g)*d.Math.sqrt(u*u+S*S)}function z3n(t){var n,s,u,f;Rpe(t,t.e,t.f,(Bw(),S_),!0,t.c,t.i),Rpe(t,t.e,t.f,S_,!1,t.c,t.i),Rpe(t,t.e,t.f,bk,!0,t.c,t.i),Rpe(t,t.e,t.f,bk,!1,t.c,t.i),F3n(t,t.c,t.e,t.f,t.i),u=new Mo(t.i,0);while(u.b=65;s--)jg[s]=s-65<<24>>24;for(u=122;u>=97;u--)jg[u]=u-97+26<<24>>24;for(f=57;f>=48;f--)jg[f]=f-48+52<<24>>24;jg[43]=62,jg[47]=63;for(g=0;g<=25;g++)iv[g]=65+g&Ds;for(E=26,C=0;E<=51;++E,C++)iv[E]=97+C&Ds;for(t=52,S=0;t<=61;++t,S++)iv[t]=48+S&Ds;iv[62]=43,iv[63]=47}function cHt(t,n){var s,u,f,g,E,S;if(f=uLe(t),S=uLe(n),f==S){if(t.e==n.e&&t.a<54&&n.a<54)return t.fn.f?1:0;if(u=t.e-n.e,s=(t.d>0?t.d:d.Math.floor((t.a-1)*mYt)+1)-(n.d>0?n.d:d.Math.floor((n.a-1)*mYt)+1),s>u+1)return f;else if(s0&&(E=b4(E,_Ht(u))),vFt(g,E)}else return fO)q=0,re+=C+n,C=0;TO(E,q,re),s=d.Math.max(s,q+M.a),C=d.Math.max(C,M.b),q+=M.a+n}return new Dt(s+n,re+C+n)}function fDe(t,n){var s,u,f,g,E,S,C;if(!wg(t))throw _e(new zl(Ajt));if(u=wg(t),g=u.g,f=u.f,g<=0&&f<=0)return Ht(),Cc;switch(S=t.i,C=t.j,n.g){case 2:case 1:if(S<0)return Ht(),yn;else if(S+t.g>g)return Ht(),Cn;break;case 4:case 3:if(C<0)return Ht(),gn;else if(C+t.f>f)return Ht(),Kn}return E=(S+t.g/2)/g,s=(C+t.f/2)/f,E+s<=1&&E-s<=0?(Ht(),yn):E+s>=1&&E-s>=0?(Ht(),Cn):s<0.5?(Ht(),gn):(Ht(),Kn)}function q3n(t,n,s,u,f){var g,E;if(g=rl(io(n[0],xl),io(u[0],xl)),t[0]=gi(g),g=kw(g,32),s>=f){for(E=1;E0)f.b[E++]=0,f.b[E++]=g.b[0]-1;for(n=1;n0)Rle(C,C.d-f.d),f.c==(Y0(),w_)&&Irn(C,C.a-f.d),C.d<=0&&C.i>0&&cs(n,C,n.c.b,n.c)}for(g=new me(t.f);g.a0)FW(S,S.i-f.d),f.c==(Y0(),w_)&&Orn(S,S.b-f.d),S.i<=0&&S.d>0&&cs(s,S,s.c.b,s.c)}}function j3n(t,n,s,u,f){var g,E,S,C,O,M,U,q,re;Hr(),ks(t,new _2t),E=B$(t),re=new Ut,q=new Ut,S=null,C=0;while(E.b!=0)if(g=b(E.b==0?null:(Pn(E.b!=0),Df(E,E.a.a)),163),!S||Nh(S)*Od(S)/21&&(C>Nh(S)*Od(S)/2||E.b==0))U=new _X(q),M=Nh(S)/Od(S),O=Ipe(U,n,new yA,s,u,f,M),ua(V0(U.e),O),S=U,rn(re.c,U),C=0,q.c.length=0;return Us(re,q),re}function au(t,n,s,u,f){fb();var g,E,S,C,O,M,U;if(nOe(t,"src"),nOe(s,"dest"),U=Ld(t),C=Ld(s),w6e((U.i&4)!=0,"srcType is not an array"),w6e((C.i&4)!=0,"destType is not an array"),M=U.c,E=C.c,w6e((M.i&1)!=0?M==E:(E.i&1)==0,"Array types don't match"),M1n(t,n,s,u,f),(M.i&1)==0&&U!=C)if(O=H2(t),g=H2(s),it(t)===it(s)&&nu;)ls(g,S,O[--n])}else for(S=u+f;u0),u.a.Xb(u.c=--u.b),U>q+C&&Nd(u);for(E=new me(re);E.a0),u.a.Xb(u.c=--u.b)}}function X3n(){ia();var t,n,s,u,f,g;if(dve)return dve;t=(++hs,new Yd(4)),px(t,o_(mme,!0)),mD(t,o_("M",!0)),mD(t,o_("C",!0)),g=(++hs,new Yd(4));for(u=0;u<11;u++)yu(g,u,u);return n=(++hs,new Yd(4)),px(n,o_("M",!0)),yu(n,4448,4607),yu(n,65438,65439),f=(++hs,new jM(2)),rE(f,t),rE(f,oP),s=(++hs,new jM(2)),s.Jm(mK(g,o_("L",!0))),s.Jm(n),s=(++hs,new qT(3,s)),s=(++hs,new rOe(f,s)),dve=s,dve}function fx(t,n){var s,u,f,g,E,S,C,O;s=new RegExp(n,"g"),C=mt(or,Bt,2,0,6,1),u=0,O=t,g=null;while(!0)if(S=s.exec(O),S==null||O==""){C[u]=O;break}else{if(E=S.index,C[u]=(Do(0,E,O.length),O.substr(0,E)),O=Of(O,E+S[0].length,O.length),s.lastIndex=0,g==O)C[u]=(Do(0,1,O.length),O.substr(0,1)),O=(pn(1,O.length+1),O.substr(1));g=O,++u}if(t.length>0){f=C.length;while(f>0&&C[f-1]=="")--f;f0)U-=u[0]+t.c,u[0]+=t.c;u[2]>0&&(U-=u[2]+t.c),u[1]=d.Math.max(u[1],U),_K(t.a[1],s.c+n.b+u[0]-(u[1]-U)/2,u[1])}for(g=t.a,S=0,O=g.length;S0?(t.n.c.length-1)*t.i:0;for(u=new me(t.n);u.a1)for(u=ti(f,0);u.b!=u.d.c;){s=b(Jn(u),235),g=0;for(C=new me(s.e);C.a0)n[0]+=t.c,U-=n[0];n[2]>0&&(U-=n[2]+t.c),n[1]=d.Math.max(n[1],U),EK(t.a[1],u.d+s.d+n[0]-(n[1]-U)/2,n[1])}else{ae=u.d+s.d,re=u.a-s.d-s.a;for(E=t.a,C=0,M=E.length;C0||jw(f.b.d,t.b.d+t.b.a)==0&&u.b<0||jw(f.b.d+f.b.a,t.b.d)==0&&u.b>0){S=0;break}}else S=d.Math.min(S,lGt(t,f,u));S=d.Math.min(S,fHt(t,g,S,u))}return S}function fG(t,n){var s,u,f,g,E,S,C;if(t.b<2)throw _e(new fn("The vector chain must contain at least a source and a target point."));f=(Pn(t.b!=0),b(t.a.a.c,8)),T$(n,f.a,f.b),C=new NA((!n.a&&(n.a=new Os(lf,n,5)),n.a)),E=ti(t,1);while(E.a=0&&g!=s)throw _e(new fn(jG))}f=0;for(C=0;Crt(Eg(E.g,E.d[0]).a))Pn(C.b>0),C.a.Xb(C.c=--C.b),BT(C,E),f=!0;else if(!!S.e&&S.e.gc()>0){if(g=(!S.e&&(S.e=new Ut),S.e).Mc(n),O=(!S.e&&(S.e=new Ut),S.e).Mc(s),g||O)(!S.e&&(S.e=new Ut),S.e).Fc(E),++E.c}f||rn(u.c,E)}function nAn(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe;if(U=t.a.i+t.a.g/2,q=t.a.i+t.a.g/2,ae=n.i+n.g/2,de=n.j+n.f/2,S=new Dt(ae,de),O=b(It(n,(Hi(),Y5)),8),O.a=O.a+U,O.b=O.b+q,g=(S.b-O.b)/(S.a-O.a),u=S.b-g*S.a,ue=s.i+s.g/2,xe=s.j+s.f/2,C=new Dt(ue,xe),M=b(It(s,Y5),8),M.a=M.a+U,M.b=M.b+q,E=(C.b-M.b)/(C.a-M.a),f=C.b-E*C.a,re=(u-f)/(E-g),O.a>>0,"0"+n.toString(16)),u="\\x"+Of(s,s.length-2,s.length);else if(t>=ml)s=(n=t>>>0,"0"+n.toString(16)),u="\\v"+Of(s,s.length-6,s.length);else u=""+String.fromCharCode(t&Ds)}return u}function bHt(t){var n,s,u;if(a4(b(ce(t,(Qt(),ms)),101)))for(s=new me(t.j);s.a=n.o&&s.f<=n.f||n.a*0.5<=s.f&&n.a*1.5>=s.f){if(E=b(nr(n.n,n.n.c.length-1),209),E.e+E.d+s.g+f<=u&&(g=b(nr(n.n,n.n.c.length-1),209),g.f-t.f+s.f<=t.b||t.a.c.length==1))return u7e(n,s),!0;else if(n.s+s.g<=u&&(n.t+n.d+s.f+f<=t.b||t.a.c.length==1))return Gt(n.b,s),S=b(nr(n.n,n.n.c.length-1),209),Gt(n.n,new HK(n.s,S.f+S.a+n.i,n.i)),H7e(b(nr(n.n,n.n.c.length-1),209),s),hHt(n,s),!0}return!1}function vHt(t,n,s){var u,f,g,E;if(t.Pj()){if(f=null,g=t.Qj(),u=t.Ij(1,E=Yhe(t,n,s),s,n,g),t.Mj()&&!(t.Yi()&&E!=null?da(E,s):it(E)===it(s)))if(E!=null&&(f=t.Oj(E,f)),f=t.Nj(s,f),t.Tj()&&(f=t.Wj(E,s,f)),!f)t.Jj(u);else f.nj(u),f.oj();else if(t.Tj()&&(f=t.Wj(E,s,f)),!f)t.Jj(u);else f.nj(u),f.oj();return E}else{if(E=Yhe(t,n,s),t.Mj()&&!(t.Yi()&&E!=null?da(E,s):it(E)===it(s)))f=null,E!=null&&(f=t.Oj(E,null)),f=t.Nj(s,f),!!f&&f.oj();return E}}function uAn(t,n){var s,u,f,g,E;if(n.Ug("Path-Like Graph Wrapping",1),t.b.c.length==0){n.Vg();return}if(f=new _8e(t),E=(f.i==null&&(f.i=hLe(f,new wAe)),rt(f.i)*f.f),s=E/(f.i==null&&(f.i=hLe(f,new wAe)),rt(f.i)),f.b>s){n.Vg();return}switch(b(ce(t,(Qt(),pbe)),351).g){case 2:g=new TAe;break;case 0:g=new EAe;break;default:g=new xAe}if(u=g.og(t,f),!g.pg())switch(b(ce(t,Nee),352).g){case 2:u=cGt(f,u);break;case 1:u=eUt(f,u)}a5n(t,f,u),n.Vg()}function uD(t,n){var s,u,f,g,E,S,C,O;if(n%=24,t.q.getHours()!=n){if(u=new d.Date(t.q.getTime()),u.setDate(u.getDate()+1),S=t.q.getTimezoneOffset()-u.getTimezoneOffset(),S>0)C=S/60|0,O=S%60,f=t.q.getDate(),s=t.q.getHours(),s+C>=24&&++f,g=new d.Date(t.q.getFullYear(),t.q.getMonth(),f,n+C,t.q.getMinutes()+O,t.q.getSeconds(),t.q.getMilliseconds()),t.q.setTime(g.getTime())}E=t.q.getTime(),t.q.setTime(E+3600000),t.q.getHours()!=n&&t.q.setTime(E)}function hAn(t,n){var s,u,f,g;if(Tfn(t.d,t.e),t.c.a.$b(),rt(ht(ce(n.j,(Qt(),_ee))))!=0||rt(ht(ce(n.j,_ee)))!=0){s=H4,it(ce(n.j,L1))!==it((Cm(),Wy))&&At(n.j,(Pt(),v_),(an(),!0)),g=b(ce(n.j,m9),17).a;for(f=0;ff&&++O,Gt(E,(qr(S+O,n.c.length),b(n.c[S+O],17))),C+=(qr(S+O,n.c.length),b(n.c[S+O],17)).a-u,++s;while(s=de&&t.e[C.p]>ae*t.b||Ve>=s*de)rn(q.c,S),S=new Ut,Po(E,g),g.a.$b(),O-=M,re=d.Math.max(re,O*t.b+ue),O+=Ve,Be=Ve,Ve=0,M=0,ue=0}return new js(re,q)}function ppe(t){var n,s,u,f,g,E,S;if(!t.d){if(S=new Y2t,n=tP,g=n.a.zc(t,n),g==null){for(u=new kn(tc(t));u.e!=u.i.gc();)s=b(Dn(u),29),ps(S,ppe(s));n.a.Bc(t)!=null,n.a.gc()==0}E=S.i;for(f=(!t.q&&(t.q=new kt(Op,t,11,10)),new kn(t.q));f.e!=f.i.gc();++E)b(Dn(f),411);ps(S,(!t.q&&(t.q=new kt(Op,t,11,10)),t.q)),JT(S),t.d=new i4((b(We(Ct((Hv(),sn).o),9),19),S.i),S.g),t.e=b(S.g,688),t.e==null&&(t.e=kor),fd(t).b&=-17}return t.d}function kO(t,n,s,u){var f,g,E,S,C,O;if(O=nh(t.e.Dh(),n),C=0,f=b(t.g,124),_l(),b(n,69).xk()){for(E=0;E1||ae==-1)if(U=b(ue,71),q=b(M,71),U.dc())q.$b();else{E=!!El(n),g=0;for(S=t.a?U.Kc():U.Ii();S.Ob();)if(O=b(S.Pb(),58),f=b(Ag(t,O),58),!f){if(t.b&&!E)q.Gi(g,O),++g}else{if(E)C=q.dd(f),C==-1?q.Gi(g,f):g!=C&&q.Ui(g,f);else q.Gi(g,f);++g}}else if(ue==null)M.Wb(null);else f=Ag(t,ue),f==null?t.b&&!El(n)&&M.Wb(ue):M.Wb(f)}}function mAn(t,n){var s,u,f,g,E,S,C,O;s=new Rmt;for(f=new Nn(Mn(co(n).a.Kc(),new L));ri(f);){if(u=b(Gn(f),18),gl(u))continue;if(S=u.c.i,CMe(S,DJ)){if(O=q8e(t,S,DJ,MJ),O==-1)continue;s.b=d.Math.max(s.b,O),!s.a&&(s.a=new Ut),Gt(s.a,S)}}for(E=new Nn(Mn(Ss(n).a.Kc(),new L));ri(E);){if(g=b(Gn(E),18),gl(g))continue;if(C=g.d.i,CMe(C,MJ)){if(O=q8e(t,C,MJ,DJ),O==-1)continue;s.d=d.Math.max(s.d,O),!s.c&&(s.c=new Ut),Gt(s.c,C)}}return s}function bAn(t,n,s,u){var f,g,E,S,C,O,M;if(s.d.i==n.i)return;f=new Ib(t),k2(f,(bn(),mo)),At(f,(Pt(),Ea),s),At(f,(Qt(),ms),(Ao(),xu)),rn(u.c,f),E=new iu,Ec(E,f),Xs(E,(Ht(),yn)),S=new iu,Ec(S,f),Xs(S,Cn),M=s.d,ko(s,E),g=new Dw,nc(g,s),At(g,jl,null),tl(g,S),ko(g,M),O=new Mo(s.b,0);while(O.b1e6)throw _e(new QW("power of ten too big"));if(t<=sa)return KA(iG(I5[1],n),n);u=iG(I5[1],sa),f=u,s=Vc(t-sa),n=Ks(t%sa);while(Kc(s,sa)>0)f=b4(f,u),s=bp(s,sa);f=b4(f,iG(I5[1],n)),f=KA(f,sa),s=Vc(t-sa);while(Kc(s,sa)>0)f=KA(f,sa),s=bp(s,sa);return f=KA(f,n),f}function EHt(t){var n,s,u,f,g,E,S,C,O,M;for(C=new me(t.a);C.aO&&u>O)M=S,O=rt(n.p[S.p])+rt(n.d[S.p])+S.o.b+S.d.a;else{f=!1,s._g()&&s.bh("bk node placement breaks on "+S+" which should have been after "+M);break}if(!f)break}return s._g()&&s.bh(n+" is feasible: "+f),f}function bDe(t,n,s,u){var f,g,E,S,C,O,M,U,q;if(g=new Ib(t),k2(g,(bn(),Su)),At(g,(Qt(),ms),(Ao(),xu)),f=0,n){E=new iu,At(E,(Pt(),Ea),n),At(g,Ea,n.i),Xs(E,(Ht(),yn)),Ec(E,g),q=xm(n.e);for(O=q,M=0,U=O.length;M0){if(f<0&&M.a)f=C,g=O[0],u=0;if(f>=0){if(S=M.b,C==f){if(S-=u++,S==0)return 0}if(!xqt(n,O,M,S,E)){C=f-1,O[0]=g;continue}}else if(f=-1,!xqt(n,O,M,0,E))return 0}else{if(f=-1,Ko(M.c,0)==32){if(U=O[0],CDt(n,O),O[0]>U)continue}else if(adn(n,M.c,O[0])){O[0]+=M.c.length;continue}return 0}if(!oIn(E,s))return 0;return O[0]}function SAn(t,n,s){var u,f,g,E,S,C,O,M,U,q;M=new SK(new uxt(s)),S=mt(wd,A1,28,t.f.e.c.length,16,1),eOe(S,S.length),s[n.a]=0;for(O=new me(t.f.e);O.a=0&&!k4(t,M,U))--U;f[M]=U}for(re=0;re=0&&!k4(t,S,ae))--S;g[ae]=S}for(C=0;Cn[q]&&qu[C]&&YQ(t,C,q,!1,!0)}function yDe(t){var n,s,u,f,g,E,S,C;if(s=er(Jt(ce(t,(c0(),_Zt)))),g=t.a.c.d,S=t.a.d.d,s)E=_m(no(new Dt(S.a,S.b),g),0.5),C=_m(Uo(t.e),0.5),n=no(ua(new Dt(g.a,g.b),E),C),kIe(t.d,n);else if(f=rt(ht(ce(t.a,RZt))),u=t.d,g.a>=S.a)if(g.b>=S.b)u.a=S.a+(g.a-S.a)/2+f,u.b=S.b+(g.b-S.b)/2-f-t.e.b;else u.a=S.a+(g.a-S.a)/2+f,u.b=g.b+(S.b-g.b)/2+f;else if(g.b>=S.b)u.a=g.a+(S.a-g.a)/2+f,u.b=S.b+(g.b-S.b)/2+f;else u.a=g.a+(S.a-g.a)/2+f,u.b=g.b+(S.b-g.b)/2-f-t.e.b}function dD(t){var n,s,u,f,g,E,S,C;if(!t.f){if(C=new OAe,S=new OAe,n=tP,E=n.a.zc(t,n),E==null){for(g=new kn(tc(t));g.e!=g.i.gc();)f=b(Dn(g),29),ps(C,dD(f));n.a.Bc(t)!=null,n.a.gc()==0}for(u=(!t.s&&(t.s=new kt(_h,t,21,17)),new kn(t.s));u.e!=u.i.gc();)s=b(Dn(u),179),He(s,102)&&ii(S,b(s,19));JT(S),t.r=new fOt(t,(b(We(Ct((Hv(),sn).o),6),19),S.i),S.g),ps(C,t.r),JT(C),t.f=new i4((b(We(Ct(sn.o),5),19),C.i),C.g),fd(t).b&=-3}return t.f}function SHt(t){mw(t,new tE(fw(uw(dw(hw(new x2,oE),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new Vt))),Ft(t,oE,A0e,jt(G$e)),Ft(t,oE,R0e,jt(Kme)),Ft(t,oE,S5,jt(aZt)),Ft(t,oE,oS,jt(U$e)),Ft(t,oE,s9e,jt(cZt)),Ft(t,oE,o9e,jt(lZt)),Ft(t,oE,a9e,jt(uZt)),Ft(t,oE,l9e,jt(oZt)),Ft(t,oE,g9e,jt(sZt)),Ft(t,oE,m9e,jt(jme)),Ft(t,oE,b9e,jt($$e)),Ft(t,oE,y9e,jt(kJ))}function XQ(){XQ=z,aWe=Ce(Te(Qf,1),Om,28,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),tor=new RegExp(`[ +\r\f]+`);try{Z9=Ce(Te(aOn,1),en,2114,0,[new KF((jRe(),rQ("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",N$((XW(),XW(),jD))))),new KF(rQ("yyyy-MM-dd'T'HH:mm:ss'.'SSS",N$(jD))),new KF(rQ("yyyy-MM-dd'T'HH:mm:ss",N$(jD))),new KF(rQ("yyyy-MM-dd'T'HH:mm",N$(jD))),new KF(rQ("yyyy-MM-dd",N$(jD)))])}catch(t){if(t=Qa(t),!He(t,82))throw _e(t)}}function xAn(t,n){var s,u,f,g;if(f=md(t.d,1)!=0,u=Z8e(t,n),u==0&&er(Jt(ce(n.j,(Pt(),v_)))))return 0;if(!er(Jt(ce(n.j,(Pt(),v_))))&&!er(Jt(ce(n.j,ck)))||it(ce(n.j,(Qt(),L1)))===it((Cm(),Wy))?n.c.mg(n.e,f):f=er(Jt(ce(n.j,v_))),lG(t,n,f,!0),er(Jt(ce(n.j,ck)))&&At(n.j,ck,(an(),!1)),er(Jt(ce(n.j,v_))))At(n.j,v_,(an(),!1)),At(n.j,ck,!0);s=Z8e(t,n);do{if(cLe(t),s==0)return 0;f=!f,g=s,lG(t,n,f,!1),s=Z8e(t,n)}while(g>s);return g}function THt(t,n){var s,u,f,g;if(f=md(t.d,1)!=0,u=IQ(t,n),u==0&&er(Jt(ce(n.j,(Pt(),v_)))))return 0;if(!er(Jt(ce(n.j,(Pt(),v_))))&&!er(Jt(ce(n.j,ck)))||it(ce(n.j,(Qt(),L1)))===it((Cm(),Wy))?n.c.mg(n.e,f):f=er(Jt(ce(n.j,v_))),lG(t,n,f,!0),er(Jt(ce(n.j,ck)))&&At(n.j,ck,(an(),!1)),er(Jt(ce(n.j,v_))))At(n.j,v_,(an(),!1)),At(n.j,ck,!0);s=IQ(t,n);do{if(cLe(t),s==0)return 0;f=!f,g=s,lG(t,n,f,!1),s=IQ(t,n)}while(g>s);return g}function vDe(t,n,s,u){var f,g,E,S,C,O,M,U,q;if(C=no(new Dt(s.a,s.b),t),O=C.a*n.b-C.b*n.a,M=n.a*u.b-n.b*u.a,U=(C.a*u.b-C.b*u.a)/M,q=O/M,M==0)if(O==0){if(f=ua(new Dt(s.a,s.b),_m(new Dt(u.a,u.b),0.5)),g=Kv(t,f),E=Kv(ua(new Dt(t.a,t.b),n),f),S=d.Math.sqrt(u.a*u.a+u.b*u.b)*0.5,g=0&&U<=1&&q>=0&&q<=1?ua(new Dt(t.a,t.b),_m(new Dt(n.a,n.b),U)):null}function CAn(t,n,s){var u,f,g,E,S;if(u=b(ce(t,(Qt(),tbe)),21),s.a>n.a&&(u.Hc((eE(),B9))?t.c.a+=(s.a-n.a)/2:u.Hc(F9)&&(t.c.a+=s.a-n.a)),s.b>n.b&&(u.Hc((eE(),U9))?t.c.b+=(s.b-n.b)/2:u.Hc($9)&&(t.c.b+=s.b-n.b)),b(ce(t,(Pt(),Tu)),21).Hc((Tl(),Wf))&&(s.a>n.a||s.b>n.b)){for(S=new me(t.a);S.an.a&&(u.Hc((eE(),B9))?t.c.a+=(s.a-n.a)/2:u.Hc(F9)&&(t.c.a+=s.a-n.a)),s.b>n.b&&(u.Hc((eE(),U9))?t.c.b+=(s.b-n.b)/2:u.Hc($9)&&(t.c.b+=s.b-n.b)),b(ce(t,(Pt(),Tu)),21).Hc((Tl(),Wf))&&(s.a>n.a||s.b>n.b)){for(E=new me(t.a);E.a0?t.i:0)>n&&C>0){if(g=0,E+=C+t.i,f=d.Math.max(f,q),u+=C+t.i,C=0,q=0,s)++U,Gt(t.n,new HK(t.s,E,t.i));S=0}q+=O.g+(S>0?t.i:0),C=d.Math.max(C,O.f),s&&H7e(b(nr(t.n,U),209),O),g+=O.g+(S>0?t.i:0),++S}if(f=d.Math.max(f,q),u+=C,s)t.r=f,t.d=u,j7e(t.j);return new If(t.s,t.t,f,u)}function gpe(t){var n,s,u,f,g,E,S,C,O,M,U,q;t.b=!1,U=Wa,C=Gs,q=Wa,O=Gs;for(u=t.e.a.ec().Kc();u.Ob();){s=b(u.Pb(),272),f=s.a,U=d.Math.min(U,f.c),C=d.Math.max(C,f.c+f.b),q=d.Math.min(q,f.d),O=d.Math.max(O,f.d+f.a);for(E=new me(s.c);E.at.o.a)M=(C-t.o.a)/2,S.b=d.Math.max(S.b,M),S.c=d.Math.max(S.c,M)}function IAn(t){var n,s,u,f,g,E,S,C;g=new v7t,oan(g,(t5(),Gar));for(u=(f=ode(t,mt(or,Bt,2,0,6,1)),new hM(new Qh(new oce(t,f).b)));u.bS?1:-1:FLe(t.a,n.a,g),f==-1)U=-C,M=E==C?Nhe(n.a,S,t.a,g):Mhe(n.a,S,t.a,g);else if(U=E,E==C){if(f==0)return Am(),XD;M=Nhe(t.a,g,n.a,S)}else M=Mhe(t.a,g,n.a,S);return O=new B2(U,M.length,M),m8(O),O}function OAn(t,n){var s,u,f,g;if(g=oHt(n),!n.c&&(n.c=new kt(ld,n,9,9)),ys(new Pr(null,(!n.c&&(n.c=new kt(ld,n,9,9)),new Gr(n.c,16))),new pxt(g)),f=b(ce(g,(Pt(),Tu)),21),SRn(n,f),f.Hc((Tl(),Wf)))for(u=new kn((!n.c&&(n.c=new kt(ld,n,9,9)),n.c));u.e!=u.i.gc();)s=b(Dn(u),123),ZRn(t,n,g,s);return b(It(n,(Qt(),EE)),181).gc()!=0&&Jzt(n,g),er(Jt(ce(g,$ze)))&&f.Fc(hee),$a(g,xz)&&l3t(new E7e(rt(ht(ce(g,xz)))),g),it(It(n,Px))===it((Cb(),Zy))?w6n(t,n,g):s6n(t,n,g),g}function NAn(t){var n,s,u,f,g,E,S,C;for(f=new me(t.b);f.a0?Of(s.a,0,g-1):"";else return!s?t:s.a}function LAn(t,n){var s,u,f,g,E,S,C;n.Ug("Sort By Input Model "+ce(t,(Qt(),L1)),1),f=0;for(u=new me(t.b);u.a=t.b.length)g[f++]=E.b[u++],g[f++]=E.b[u++];else if(u>=E.b.length)g[f++]=t.b[s++],g[f++]=t.b[s++];else if(E.b[u]0?t.i:0);++n}i7e(t.n,C),t.d=s,t.r=u,t.g=0,t.f=0,t.e=0,t.o=Wa,t.p=Wa;for(g=new me(t.b);g.a0)f=(!t.n&&(t.n=new kt(Dl,t,1,7)),b(We(t.n,0),135)).a,!f||Bi(Bi((n.a+=' "',n),f),'"')}else Bi(Bi((n.a+=' "',n),u),'"');return s=(!t.b&&(t.b=new Wr(qn,t,4,7)),!(t.b.i<=1&&(!t.c&&(t.c=new Wr(qn,t,5,8)),t.c.i<=1))),s?n.a+=" [":n.a+=" ",Bi(n,fIe(new ece,new kn(t.b))),s&&(n.a+="]"),n.a+=P0e,s&&(n.a+="["),Bi(n,fIe(new ece,new kn(t.c))),s&&(n.a+="]"),n.a}function DAn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;wt=t.c,Ot=n.c,s=rc(wt.a,t,0),u=rc(Ot.a,n,0),Ve=b(Kw(t,(Sl(),ad)).Kc().Pb(),12),wr=b(Kw(t,Yu).Kc().Pb(),12),et=b(Kw(n,ad).Kc().Pb(),12),tn=b(Kw(n,Yu).Kc().Pb(),12),xe=xm(Ve.e),Wt=xm(wr.g),Be=xm(et.e),xr=xm(tn.g),ix(t,u,Ot);for(E=Be,M=0,ae=E.length;MM)new U2((Y0(),Hx),s,n,O-M);else if(O>0&&M>0)new U2((Y0(),Hx),n,s,0),new U2(Hx,s,n,0);return E}function FAn(t,n,s){var u,f,g;t.a=new Ut;for(g=ti(n.b,0);g.b!=g.d.c;){f=b(Jn(g),40);while(b(ce(f,(Oc(),Vm)),17).a>t.a.c.length-1)Gt(t.a,new js(H4,rBe));if(u=b(ce(f,Vm),17).a,s==(Ms(),Kl)||s==sc)f.e.art(ht(b(nr(t.a,u),42).b))&&Ole(b(nr(t.a,u),42),f.e.a+f.f.a);else f.e.brt(ht(b(nr(t.a,u),42).b))&&Ole(b(nr(t.a,u),42),f.e.b+f.f.b)}}function kHt(t,n,s,u){var f,g,E,S,C,O,M;if(g=XX(u),S=er(Jt(ce(u,(Qt(),Lze)))),(S||er(Jt(ce(t,xee))))&&!a4(b(ce(t,ms),101)))f=i5(g),C=lDe(t,s,s==(Sl(),Yu)?f:FU(f));else{if(C=new iu,Ec(C,t),n)M=C.n,M.a=n.a-t.n.a,M.b=n.b-t.n.b,LUt(M,0,0,t.o.a,t.o.b),Xs(C,jVt(C,g));else f=i5(g),Xs(C,s==(Sl(),Yu)?f:FU(f));switch(E=b(ce(u,(Pt(),Tu)),21),O=C.j,g.g){case 2:case 1:(O==(Ht(),gn)||O==Kn)&&E.Fc((Tl(),sk));break;case 4:case 3:(O==(Ht(),Cn)||O==yn)&&E.Fc((Tl(),sk))}}return C}function AHt(t,n){var s,u,f,g,E,S;for(E=new W2(new R2(t.f.b).a);E.b;){if(g=qw(E),f=b(g.ld(),602),n==1){if(f.Af()!=(Ms(),jf)&&f.Af()!=Vg)continue}else if(f.Af()!=(Ms(),Kl)&&f.Af()!=sc)continue;switch(u=b(b(g.md(),42).b,86),S=b(b(g.md(),42).a,194),s=S.c,f.Af().g){case 2:u.g.c=t.e.a,u.g.b=d.Math.max(1,u.g.b+s);break;case 1:u.g.c=u.g.c+s,u.g.b=d.Math.max(1,u.g.b-s);break;case 4:u.g.d=t.e.b,u.g.a=d.Math.max(1,u.g.a+s);break;case 3:u.g.d=u.g.d+s,u.g.a=d.Math.max(1,u.g.a-s)}}}function $An(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue;S=mt(ci,$i,28,n.b.c.length,15,1),O=mt(h1e,Rt,273,n.b.c.length,0,1),C=mt(N1,Gy,10,n.b.c.length,0,1);for(U=t.a,q=0,re=U.length;q0&&!!C[u]&&(ae=c4(t.b,C[u],f)),ue=d.Math.max(ue,f.c.c.b+ae);for(g=new me(M.e);g.a1)throw _e(new fn(JG));if(!C)g=y1(n,u.Kc().Pb()),E.Fc(g)}return TLe(t,qMe(t,n,s),E)}function ZQ(t,n,s){var u,f,g,E,S,C,O,M;if(Nb(t.e,n))C=(_l(),b(n,69).xk()?new hK(n,t):new w$(n,t)),NQ(C.c,C.b),KM(C,b(s,16));else{M=nh(t.e.Dh(),n),u=b(t.g,124);for(E=0;E"}C!=null&&(n.a+=""+C)}else if(t.e)S=t.e.zb,S!=null&&(n.a+=""+S);else if(n.a+="?",t.b)n.a+=" super ",_pe(t.b,n);else if(t.f)n.a+=" extends ",_pe(t.f,n)}function HAn(t){t.b=null,t.a=null,t.o=null,t.q=null,t.v=null,t.w=null,t.B=null,t.p=null,t.Q=null,t.R=null,t.S=null,t.T=null,t.U=null,t.V=null,t.W=null,t.bb=null,t.eb=null,t.ab=null,t.H=null,t.db=null,t.c=null,t.d=null,t.f=null,t.n=null,t.r=null,t.s=null,t.u=null,t.G=null,t.J=null,t.e=null,t.j=null,t.i=null,t.g=null,t.k=null,t.t=null,t.F=null,t.I=null,t.L=null,t.M=null,t.O=null,t.P=null,t.$=null,t.N=null,t.Z=null,t.cb=null,t.K=null,t.D=null,t.A=null,t.C=null,t._=null,t.fb=null,t.X=null,t.Y=null,t.gb=!1,t.hb=!1}function qAn(t){var n,s,u,f;if(u=Npe((!t.c&&(t.c=Z$(Vc(t.f))),t.c),0),t.e==0||t.a==0&&t.f!=-1&&t.e<0)return u;if(n=uLe(t)<0?1:0,s=t.e,f=(u.length+1+d.Math.abs(Ks(t.e)),new XC),n==1&&(f.a+="-"),t.e>0)if(s-=u.length-n,s>=0){f.a+="0.";for(;s>gE.length;s-=gE.length)SOt(f,gE);o6t(f,gE,Ks(s)),Bi(f,(pn(n,u.length+1),u.substr(n)))}else s=n-s,Bi(f,Of(u,n,Ks(s))),f.a+=".",Bi(f,cOe(u,Ks(s)));else{Bi(f,(pn(n,u.length+1),u.substr(n)));for(;s<-gE.length;s+=gE.length)SOt(f,gE);o6t(f,gE,Ks(-s))}return f.a}function Epe(t){var n,s,u,f,g,E,S,C,O;if(t.k!=(bn(),Es))return!1;if(t.j.c.length<=1)return!1;if(g=b(ce(t,(Qt(),ms)),101),g==(Ao(),xu))return!1;if(f=(nx(),(!t.q?(Hr(),Hr(),I1):t.q)._b(xS)?u=b(ce(t,xS),203):u=b(ce(zo(t),p9),203),u),f==Pee)return!1;if(!(f==mk||f==gk)){if(E=rt(ht(rx(t,g9))),n=b(ce(t,kz),140),!n&&(n=new YIe(E,E,E,E)),O=Tc(t,(Ht(),yn)),C=n.d+n.a+(O.gc()-1)*E,C>t.o.b)return!1;if(s=Tc(t,Cn),S=n.d+n.a+(s.gc()-1)*E,S>t.o.b)return!1}return!0}function YAn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;n.Ug("Orthogonal edge routing",1),O=rt(ht(ce(t,(Qt(),pk)))),s=rt(ht(ce(t,dk))),u=rt(ht(ce(t,SE))),q=new Hue(0,s),de=0,E=new Mo(t.b,0),S=null,M=null,C=null,U=null;do{if(M=E.b0)re=(ae-1)*s,!!S&&(re+=u),!!M&&(re+=u),ren||er(Jt(It(C,(Lg(),Uz)))))f=0,g+=M.b+s,rn(U.c,M),M=new GOe(g,s),u=new Sde(0,M.f,M,s),xX(M,u),f=0;if(u.b.c.length==0||!er(Jt(It(Ya(C),(Lg(),pye))))&&(C.f>=u.o&&C.f<=u.f||u.a*0.5<=C.f&&u.a*1.5>=C.f))u7e(u,C);else E=new Sde(u.s+u.r+s,M.f,M,s),xX(M,E),u7e(E,C);f=C.i+C.g}return rn(U.c,M),U}function pD(t){var n,s,u,f;if(t.b==null||t.b.length<=2)return;if(t.a)return;n=0,f=0;while(f=t.b[f+1])f+=2;else if(s0){u=new Zh(b(_a(t.a,g),21)),Hr(),ks(u,new o5e(n)),f=new Mo(g.b,0);while(f.b0&&u>=-6)if(u>=0)x$(g,s-Ks(t.e),String.fromCharCode(46));else dde(g,n-1,n-1,"0."),x$(g,n+1,yp(gE,0,-Ks(u)-1));else{if(s-n>=1)x$(g,n,String.fromCharCode(46)),++s;x$(g,s,String.fromCharCode(69)),u>0&&x$(g,++s,String.fromCharCode(43)),x$(g,++s,""+o8(Vc(u)))}return t.g=g.a,t.g}function r5n(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt;u=rt(ht(ce(n,(Qt(),Pze)))),wt=b(ce(n,m9),17).a,q=4,f=3,Ot=20/wt,re=!1,C=0,E=sa;do{g=C!=1,U=C!=0,Wt=0;for(de=t.a,Be=0,et=de.length;Bewt))C=2,E=sa;else if(C==0)C=1,E=Wt;else C=0,E=Wt;else re=Wt>=E||E-Wt0?1:_w(isNaN(u),isNaN(0)))>=0^(a0(Bm),(d.Math.abs(S)<=Bm||S==0||isNaN(S)&&isNaN(0)?0:S<0?-1:S>0?1:_w(isNaN(S),isNaN(0)))>=0))return d.Math.max(S,u);if(a0(Bm),(d.Math.abs(u)<=Bm||u==0||isNaN(u)&&isNaN(0)?0:u<0?-1:u>0?1:_w(isNaN(u),isNaN(0)))>0)return d.Math.sqrt(S*S+u*u);return-d.Math.sqrt(S*S+u*u)}function rE(t,n){var s,u,f,g,E,S;if(!n)return;if(!t.a&&(t.a=new jW),t.e==2){WW(t.a,n);return}if(n.e==1){for(f=0;f=ml?Ol(s,c7e(u)):w6(s,u&Ds),E=(++hs,new che(10,null,0)),Gun(t.a,E,S-1);else s=(E.Mm().length+g,new SM),Ol(s,E.Mm());if(n.e==0)u=n.Km(),u>=ml?Ol(s,c7e(u)):w6(s,u&Ds);else Ol(s,n.Mm());b(E,530).b=s.a}function a5n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(s.dc())return;S=0,q=0,u=s.Kc(),ae=b(u.Pb(),17).a;while(S1&&(C=O.Hg(C,t.a,S));if(C.c.length==1)return b(nr(C,C.c.length-1),238);if(C.c.length==2)return jAn((qr(0,C.c.length),b(C.c[0],238)),(qr(1,C.c.length),b(C.c[1],238)),E,g);return null}function u5n(t,n,s){var u,f,g,E,S,C,O;s.Ug("Find roots",1),t.a.c.length=0;for(f=ti(n.b,0);f.b!=f.d.c;)if(u=b(Jn(f),40),u.b.b==0)At(u,(Ma(),T_),(an(),!0)),Gt(t.a,u);switch(t.a.c.length){case 0:g=new wde(0,n,"DUMMY_ROOT"),At(g,(Ma(),T_),(an(),!0)),At(g,Bbe,!0),Oi(n.b,g);break;case 1:break;default:E=new wde(0,n,UZ);for(C=new me(t.a);C.a=d.Math.abs(u.b))u.b=0,g.d+g.a>E.d&&g.dE.c&&g.c0){if(n=new HRe(t.i,t.g),s=t.i,g=s<100?null:new Pv(s),t.Tj())for(u=0;u0){S=t.g,O=t.i,E8(t),g=O<100?null:new Pv(O);for(u=0;u>13|(t.m&15)<<9,f=t.m>>4&8191,g=t.m>>17|(t.h&255)<<5,E=(t.h&1048320)>>8,S=n.l&8191,C=n.l>>13|(n.m&15)<<9,O=n.m>>4&8191,M=n.m>>17|(n.h&255)<<5,U=(n.h&1048320)>>8,xr=s*S,wr=u*S,tn=f*S,Kr=g*S,Rn=E*S,C!=0)wr+=s*C,tn+=u*C,Kr+=f*C,Rn+=g*C;if(O!=0)tn+=s*O,Kr+=u*O,Rn+=f*O;if(M!=0)Kr+=s*M,Rn+=u*M;return U!=0&&(Rn+=s*U),re=xr&yd,ae=(wr&511)<<13,q=re+ae,de=xr>>22,xe=wr>>9,Be=(tn&262143)<<4,Ve=(Kr&31)<<17,ue=de+xe+Be+Ve,wt=tn>>18,Ot=Kr>>5,Wt=(Rn&4095)<<8,et=wt+Ot+Wt,ue+=q>>22,q&=yd,et+=ue>>22,ue&=yd,et&=Mb,Qu(q,ue,et)}function $Ht(t){var n,s,u,f,g,E,S;if(S=b(nr(t.j,0),12),S.g.c.length!=0&&S.e.c.length!=0)throw _e(new zl("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(S.g.c.length!=0){g=Wa;for(s=new me(S.g);s.a4)if(t.fk(n)){if(t.al()){if(f=b(n,54),u=f.Eh(),C=u==t.e&&(t.ml()?f.yh(f.Fh(),t.il())==t.jl():-1-f.Fh()==t.Lj()),t.nl()&&!C&&!u&&!!f.Jh()){for(g=0;g0&&UUt(t,S,U);for(f=new me(U);f.at.d[E.p])s+=rNe(t.b,g)*b(C.b,17).a,jv(t.a,$t(g));while(!wM(t.a))DNe(t.b,b(UA(t.a),17).a)}return s}function g5n(t,n){var s,u,f,g,E,S,C,O,M,U;if(M=b(ce(t,(Pt(),Pc)),64),u=b(nr(t.j,0),12),M==(Ht(),gn)?Xs(u,Kn):M==Kn&&Xs(u,gn),b(ce(n,(Qt(),EE)),181).Hc((Md(),IE))){if(C=rt(ht(ce(t,SN))),O=rt(ht(ce(t,TN))),E=rt(ht(ce(t,Gx))),S=b(ce(n,$x),21),S.Hc((nd(),Gb))){s=O,U=t.o.a/2-u.n.a;for(g=new me(u.f);g.a0&&(O=t.n.a/g);break;case 2:case 4:f=t.i.o.b,f>0&&(O=t.n.b/f)}At(t,(Pt(),ES),O)}if(C=t.o,E=t.a,u)E.a=u.a,E.b=u.b,t.d=!0;else if(n!=qg&&n!=A_&&S!=Cc)switch(S.g){case 1:E.a=C.a/2;break;case 2:E.a=C.a,E.b=C.b/2;break;case 3:E.a=C.a/2,E.b=C.b;break;case 4:E.b=C.b/2}else E.a=C.a/2,E.b=C.b/2}function gD(t){var n,s,u,f,g,E,S,C,O,M;if(t.Pj())if(M=t.Ej(),C=t.Qj(),M>0)if(n=new pLe(t.pj()),s=M,g=s<100?null:new Pv(s),I$(t,s,n.g),f=s==1?t.Ij(4,We(n,0),null,0,C):t.Ij(6,n,null,-1,C),t.Mj()){for(u=new kn(n);u.e!=u.i.gc();)g=t.Oj(Dn(u),g);if(!g)t.Jj(f);else g.nj(f),g.oj()}else if(!g)t.Jj(f);else g.nj(f),g.oj();else I$(t,t.Ej(),t.Fj()),t.Jj(t.Ij(6,(Hr(),Jo),null,-1,C));else if(t.Mj())if(M=t.Ej(),M>0){S=t.Fj(),O=M,I$(t,M,S),g=O<100?null:new Pv(O);for(u=0;u1&&Nh(E)*Od(E)/2>S[0]){g=0;while(gS[g])++g;ae=new Sy(ue,0,g+1),U=new _X(ae),M=Nh(E)/Od(E),C=Ipe(U,n,new yA,s,u,f,M),ua(V0(U.e),C),BA(bO(q,U),BO),re=new Sy(ue,g+1,ue.c.length),Z7e(q,re),ue.c.length=0,O=0,UOt(S,S.length,0)}else de=q.b.c.length==0?null:nr(q.b,0),de!=null&&ide(q,0),O>0&&(S[O]=S[O-1]),S[O]+=Nh(E)*Od(E),++O,rn(ue.c,E);return ue}function E5n(t,n){var s,u,f,g;s=n.b,g=new Zh(s.j),f=0,u=s.j,u.c.length=0,Aw(b(Y2(t.b,(Ht(),gn),(Hw(),yS)),15),s),f=VU(g,f,new Pbt,u),Aw(b(Y2(t.b,gn,y_),15),s),f=VU(g,f,new Rbt,u),Aw(b(Y2(t.b,gn,bS),15),s),Aw(b(Y2(t.b,Cn,yS),15),s),Aw(b(Y2(t.b,Cn,y_),15),s),f=VU(g,f,new Bbt,u),Aw(b(Y2(t.b,Cn,bS),15),s),Aw(b(Y2(t.b,Kn,yS),15),s),f=VU(g,f,new Fbt,u),Aw(b(Y2(t.b,Kn,y_),15),s),f=VU(g,f,new $bt,u),Aw(b(Y2(t.b,Kn,bS),15),s),Aw(b(Y2(t.b,yn,yS),15),s),f=VU(g,f,new Nbt,u),Aw(b(Y2(t.b,yn,y_),15),s),Aw(b(Y2(t.b,yn,bS),15),s)}function w5n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re;for(S=new me(n);S.a0.5?xe-=E*2*(ae-0.5):ae<0.5&&(xe+=g*2*(0.5-ae)),f=S.d.b,xede.a-ue-M&&(xe=de.a-ue-M),S.n.a=n+xe}}function C5n(t){var n,s,u,f,g;if(u=b(ce(t,(Qt(),sh)),171),u==(Uf(),__)){for(s=new Nn(Mn(co(t).a.Kc(),new L));ri(s);)if(n=b(Gn(s),18),!e8t(n))throw _e(new py(U0e+qU(t)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(u==Mx){for(g=new Nn(Mn(Ss(t).a.Kc(),new L));ri(g);)if(f=b(Gn(g),18),!e8t(f))throw _e(new py(U0e+qU(t)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function mG(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae;if(t.e&&t.c.c>19!=0)n=Z6(n),C=!C;if(E=uCn(n),g=!1,f=!1,u=!1,t.h==CG&&t.m==0&&t.l==0)if(f=!0,g=!0,E==-1)t=CRt((D6(),$Fe)),u=!0,C=!C;else return S=E8e(t,E),C&&Ede(S),s&&(p_=Qu(0,0,0)),S;else if(t.h>>19!=0)g=!0,t=Z6(t),u=!0,C=!C;if(E!=-1)return $1n(t,E,C,g,s);if(sMe(t,n)<0)return s&&(g?p_=Z6(t):p_=Qu(t.l,t.m,t.h)),Qu(0,0,0);return o3n(u?t:Qu(t.l,t.m,t.h),n,C,g,f,s)}function xpe(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae;if(E=t.e,C=n.e,E==0)return n;if(C==0)return t;if(g=t.d,S=n.d,g+S==2){if(s=io(t.a[0],xl),u=io(n.a[0],xl),E==C)return M=rl(s,u),ae=gi(M),re=gi(Vv(M,32)),re==0?new _b(E,ae):new B2(E,2,Ce(Te(ci,1),$i,28,15,[ae,re]));return Am(),Bj(E<0?bp(u,s):bp(s,u),0)?r_(E<0?bp(u,s):bp(s,u)):u8(r_(ky(E<0?bp(u,s):bp(s,u))))}else if(E==C)q=E,U=g>=S?Mhe(t.a,g,n.a,S):Mhe(n.a,S,t.a,g);else{if(f=g!=S?g>S?1:-1:FLe(t.a,n.a,g),f==0)return Am(),XD;if(f==1)q=E,U=Nhe(t.a,g,n.a,S);else q=C,U=Nhe(n.a,S,t.a,g)}return O=new B2(q,U.length,U),m8(O),O}function A5n(t,n){var s,u,f,g,E,S,C;if(t.g>n.f||n.g>t.f)return;s=0,u=0;for(E=t.w.a.ec().Kc();E.Ob();)f=b(E.Pb(),12),Lde(Sc(Ce(Te(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,n.g,n.f)&&++s;for(S=t.r.a.ec().Kc();S.Ob();)f=b(S.Pb(),12),Lde(Sc(Ce(Te(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,n.g,n.f)&&--s;for(C=n.w.a.ec().Kc();C.Ob();)f=b(C.Pb(),12),Lde(Sc(Ce(Te(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,t.g,t.f)&&++u;for(g=n.r.a.ec().Kc();g.Ob();)f=b(g.Pb(),12),Lde(Sc(Ce(Te(uo,1),Bt,8,0,[f.i.n,f.n,f.a])).b,t.g,t.f)&&--u;if(s=0)return s;switch(Lw(Hl(t,s))){case 2:{if(Br("",Oy(t,s.qk()).xe())){if(C=q$(Hl(t,s)),S=x6(Hl(t,s)),M=x8e(t,n,C,S),M)return M;f=tDe(t,n);for(E=0,U=f.gc();E1)throw _e(new fn(JG));M=nh(t.e.Dh(),n),u=b(t.g,124);for(E=0;E1;for(O=new Cg(q.b);_c(O.a)||_c(O.b);)C=b(_c(O.a)?ge(O.a):ge(O.b),18),U=C.c==q?C.d:C.c,d.Math.abs(Sc(Ce(Te(uo,1),Bt,8,0,[U.i.n,U.n,U.a])).b-E.b)>1&&g4n(t,C,E,g,q)}}function M5n(t){var n,s,u,f,g,E;if(f=new Mo(t.e,0),u=new Mo(t.a,0),t.d)for(s=0;s_ge){g=n,E=0;while(d.Math.abs(n-g)<_ge)++E,n=rt((Pn(f.b0),f.a.Xb(f.c=--f.b),K3n(t,t.b-E,g,u,f),Pn(f.b0),u.a.Xb(u.c=--u.b)}if(!t.d)for(s=0;s0)t.f[M.p]=re/(M.e.c.length+M.g.c.length),t.c=d.Math.min(t.c,t.f[M.p]),t.b=d.Math.max(t.b,t.f[M.p]);else S&&(t.f[M.p]=re)}}function P5n(t){t.b=null,t.bb=null,t.fb=null,t.qb=null,t.a=null,t.c=null,t.d=null,t.e=null,t.f=null,t.n=null,t.M=null,t.L=null,t.Q=null,t.R=null,t.K=null,t.db=null,t.eb=null,t.g=null,t.i=null,t.j=null,t.k=null,t.gb=null,t.o=null,t.p=null,t.q=null,t.r=null,t.$=null,t.ib=null,t.S=null,t.T=null,t.t=null,t.s=null,t.u=null,t.v=null,t.w=null,t.B=null,t.A=null,t.C=null,t.D=null,t.F=null,t.G=null,t.H=null,t.I=null,t.J=null,t.P=null,t.Z=null,t.U=null,t.V=null,t.W=null,t.X=null,t.Y=null,t._=null,t.ab=null,t.cb=null,t.hb=null,t.nb=null,t.lb=null,t.mb=null,t.ob=null,t.pb=null,t.jb=null,t.kb=null,t.N=!1,t.O=!1}function B5n(t,n,s){var u,f,g,E;s.Ug("Graph transformation ("+t.a+")",1),E=Fw(n.a);for(g=new me(n.b);g.a=S.b.c)&&(S.b=n),!S.c||n.c<=S.c.c)S.d=S.c,S.c=n;(!S.e||n.d>=S.e.d)&&(S.e=n),(!S.f||n.d<=S.f.d)&&(S.f=n)}return u=new hQ((X6(),mS)),J$(t,nJt,new Qh(Ce(Te(dz,1),en,382,0,[u]))),E=new hQ(Ax),J$(t,rJt,new Qh(Ce(Te(dz,1),en,382,0,[E]))),f=new hQ(kx),J$(t,tJt,new Qh(Ce(Te(dz,1),en,382,0,[f]))),g=new hQ(ek),J$(t,eJt,new Qh(Ce(Te(dz,1),en,382,0,[g]))),Xfe(u.c,mS),Xfe(f.c,kx),Xfe(g.c,ek),Xfe(E.c,Ax),S.a.c.length=0,Us(S.a,u.c),Us(S.a,$f(f.c)),Us(S.a,g.c),Us(S.a,$f(E.c)),S}function U5n(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae;n.Ug(JWt,1),re=rt(ht(It(t,(w1(),qx)))),E=rt(ht(It(t,(Lg(),L9)))),S=b(It(t,N9),107),lLe((!t.a&&(t.a=new kt(ra,t,10,11)),t.a)),M=DHt((!t.a&&(t.a=new kt(ra,t,10,11)),t.a),re,E),!t.a&&(t.a=new kt(ra,t,10,11));for(O=new me(M);O.a0)t.a=C+(re-1)*g,n.c.b+=t.a,n.f.b+=t.a}if(ae.a.gc()!=0)q=new Hue(1,g),re=ADe(q,n,ae,ue,n.f.b+C-n.c.b),re>0&&(n.f.b+=C+(re-1)*g)}function zHt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;M=rt(ht(ce(t,(Qt(),kS)))),u=rt(ht(ce(t,Yze))),q=new _le,At(q,kS,M+u),O=n,xe=O.d,ue=O.c.i,Be=O.d.i,de=QRe(ue.c),Ve=QRe(Be.c),f=new Ut;for(U=de;U<=Ve;U++){if(S=new Ib(t),k2(S,(bn(),mo)),At(S,(Pt(),Ea),O),At(S,ms,(Ao(),xu)),At(S,Oee,q),re=b(nr(t.b,U),30),U==de?ix(S,re.a.c.length-s,re):Lo(S,re),et=rt(ht(ce(O,qy))),et<0)et=0,At(O,qy,et);S.o.b=et,ae=d.Math.floor(et/2),E=new iu,Xs(E,(Ht(),yn)),Ec(E,S),E.n.b=ae,C=new iu,Xs(C,Cn),Ec(C,S),C.n.b=ae,ko(O,E),g=new Dw,nc(g,O),At(g,jl,null),tl(g,C),ko(g,xe),R2n(S,O,g),rn(f.c,g),O=g}return f}function Cpe(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve;C=b(By(t,(Ht(),yn)).Kc().Pb(),12).e,re=b(By(t,Cn).Kc().Pb(),12).g,S=C.c.length,Ve=Tg(b(nr(t.j,0),12));while(S-- >0){ue=(qr(0,C.c.length),b(C.c[0],18)),f=(qr(0,re.c.length),b(re.c[0],18)),Be=f.d.e,g=rc(Be,f,0),upn(ue,f.d,g),tl(f,null),ko(f,null),ae=ue.a,n&&Oi(ae,new sl(Ve));for(u=ti(f.a,0);u.b!=u.d.c;)s=b(Jn(u),8),Oi(ae,new sl(s));xe=ue.b;for(q=new me(f.b);q.aE)&&$s(t.b,b(de.b,18));++S}g=E}}}function xDe(t,n){var s;if(n==null||Br(n,mh))return null;if(n.length==0&&t.k!=(Fy(),q5))return null;switch(t.k.g){case 1:return sQ(n,XO)?(an(),nN):sQ(n,Fge)?(an(),g_):null;case 2:try{return $t(Zd(n,Qo,sa))}catch(u){if(u=Qa(u),He(u,130))return null;else throw _e(u)}case 4:try{return sx(n)}catch(u){if(u=Qa(u),He(u,130))return null;else throw _e(u)}case 3:return n;case 5:return cBt(t),wGt(t,n);case 6:return cBt(t),Gxn(t,t.a,n);case 7:try{return s=ZTn(t),s.cg(n),s}catch(u){if(u=Qa(u),He(u,33))return null;else throw _e(u)}default:throw _e(new zl("Invalid type set for this layout option."))}}function CDe(t){var n;switch(t.d){case 1:{if(t.Sj())return t.o!=-2;break}case 2:{if(t.Sj())return t.o==-2;break}case 3:case 5:case 4:case 6:case 7:return t.o>-2;default:return!1}switch(n=t.Rj(),t.p){case 0:return n!=null&&er(Jt(n))!=HM(t.k,0);case 1:return n!=null&&b(n,222).a!=gi(t.k)<<24>>24;case 2:return n!=null&&b(n,180).a!=(gi(t.k)&Ds);case 6:return n!=null&&HM(b(n,168).a,t.k);case 5:return n!=null&&b(n,17).a!=gi(t.k);case 7:return n!=null&&b(n,191).a!=gi(t.k)<<16>>16;case 3:return n!=null&&rt(ht(n))!=t.j;case 4:return n!=null&&b(n,161).a!=t.j;default:return n==null?t.n!=null:!da(n,t.n)}}function bG(t,n,s){var u,f,g,E;if(t.ol()&&t.nl()){if(E=Fue(t,b(s,58)),it(E)!==it(s)){if(t.xj(n),t.Dj(n,Y8t(t,n,E)),t.al())g=(f=b(s,54),t.ml()?t.kl()?f.Th(t.b,El(b(jr(dh(t.b),t.Lj()),19)).n,b(jr(dh(t.b),t.Lj()).Hk(),29).kk(),null):f.Th(t.b,Za(f.Dh(),El(b(jr(dh(t.b),t.Lj()),19))),null,null):f.Th(t.b,-1-t.Lj(),null,null)),!b(E,54).Ph()&&(g=(u=b(E,54),t.ml()?t.kl()?u.Rh(t.b,El(b(jr(dh(t.b),t.Lj()),19)).n,b(jr(dh(t.b),t.Lj()).Hk(),29).kk(),g):u.Rh(t.b,Za(u.Dh(),El(b(jr(dh(t.b),t.Lj()),19))),null,g):u.Rh(t.b,-1-t.Lj(),null,g))),!!g&&g.oj();return Ad(t.b)&&t.Jj(t.Ij(9,s,E,n,!1)),E}}return s}function VHt(t){var n,s,u,f,g,E,S,C,O,M;u=new Ut;for(E=new me(t.e.a);E.a0&&(E=d.Math.max(E,j9t(t.C.b+u.d.b,f)));else re=q+M.d.c+t.w+u.d.b,E=d.Math.max(E,(_g(),a0(Dg),d.Math.abs(U-f)<=Dg||U==f||isNaN(U)&&isNaN(f)?0:re/(f-U)));M=u,U=f,q=g}if(!!t.C&&t.C.c>0)re=q+t.C.c,O&&(re+=M.d.c),E=d.Math.max(E,(_g(),a0(Dg),d.Math.abs(U-1)<=Dg||U==1||isNaN(U)&&isNaN(1)?0:re/(1-U)));s.n.b=0,s.a.a=E}function qHt(t,n){var s,u,f,g,E,S,C,O,M,U,q,re;if(s=b(Nl(t.b,n),127),C=b(b(_a(t.r,n),21),87),C.dc()){s.n.d=0,s.n.a=0;return}O=t.u.Hc((nd(),Gb)),E=0,t.A.Hc((Md(),IE))&&_Vt(t,n),S=C.Kc(),M=null,q=0,U=0;while(S.Ob()){if(u=b(S.Pb(),117),g=rt(ht(u.b.of((Xj(),TJ)))),f=u.b.Mf().b,!M)!!t.C&&t.C.d>0&&(E=d.Math.max(E,j9t(t.C.d+u.d.d,g)));else re=U+M.d.a+t.w+u.d.d,E=d.Math.max(E,(_g(),a0(Dg),d.Math.abs(q-g)<=Dg||q==g||isNaN(q)&&isNaN(g)?0:re/(g-q)));M=u,q=g,U=f}if(!!t.C&&t.C.a>0)re=U+t.C.a,O&&(re+=M.d.a),E=d.Math.max(E,(_g(),a0(Dg),d.Math.abs(q-1)<=Dg||q==1||isNaN(q)&&isNaN(1)?0:re/(1-q)));s.n.d=0,s.a.b=E}function V5n(t,n,s,u,f,g,E,S){var C,O,M,U,q,re,ae,ue,de,xe;if(ae=!1,O=L8e(s.q,n.f+n.b-s.q.f),re=u.f>n.b&&S,xe=f-(s.q.e+O-E),U=(C=fD(u,xe,!1),C.a),re&&U>u.f)return!1;if(re){q=0;for(de=new me(n.d);de.a=(qr(g,t.c.length),b(t.c[g],186)).e,!re&&U>n.b&&!M)return!1;if(M||re||U<=n.b){if(M&&U>n.b)s.d=U,lU(s,OUt(s,U));else K$t(s.q,O),s.c=!0;if(lU(u,f-(s.s+s.r)),HU(u,s.q.e+s.q.d,n.f),xX(n,u),t.c.length>g)WU((qr(g,t.c.length),b(t.c[g],186)),u),(qr(g,t.c.length),b(t.c[g],186)).a.c.length==0&&xy(t,g);ae=!0}return ae}function YHt(t,n,s){var u,f,g,E,S,C;this.g=t,S=n.d.length,C=s.d.length,this.d=mt(N1,Gy,10,S+C,0,1);for(E=0;E0?Qhe(this,this.f/this.a):Eg(n.g,n.d[0]).a!=null&&Eg(s.g,s.d[0]).a!=null?Qhe(this,(rt(Eg(n.g,n.d[0]).a)+rt(Eg(s.g,s.d[0]).a))/2):Eg(n.g,n.d[0]).a!=null?Qhe(this,Eg(n.g,n.d[0]).a):Eg(s.g,s.d[0]).a!=null&&Qhe(this,Eg(s.g,s.d[0]).a)}function H5n(t,n){var s,u,f,g,E,S,C,O,M,U;t.a=new xNt(C1n(z9));for(u=new me(n.a);u.a=1){if(de-E>0&&U>=0)C.n.a+=ue,C.n.b+=g*E;else if(de-E<0&&M>=0)C.n.a+=ue*de,C.n.b+=g}t.o.a=n.a,t.o.b=n.b,At(t,(Qt(),EE),(Md(),u=b(G0(K9),9),new Rf(u,b(t0(u,u.length),9),0)))}function W5n(t,n,s,u,f,g){var E;if(!(n==null||!Hde(n,fWe,pWe)))throw _e(new fn("invalid scheme: "+n));if(!t&&!(s!=null&&ym(s,gh(35))==-1&&s.length>0&&(pn(0,s.length),s.charCodeAt(0)!=47)))throw _e(new fn("invalid opaquePart: "+s));if(t&&!(n!=null&&i$(Nte,n.toLowerCase()))&&!(s==null||!Hde(s,J9,eP)))throw _e(new fn(RKt+s));if(t&&n!=null&&i$(Nte,n.toLowerCase())&&!CEn(s))throw _e(new fn(RKt+s));if(!Nyn(u))throw _e(new fn("invalid device: "+u));if(!mbn(f))throw E=f==null?"invalid segments: null":"invalid segment: "+dbn(f),_e(new fn(E));if(!(g==null||ym(g,gh(35))==-1))throw _e(new fn("invalid query: "+g))}function j5n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe;if(s.Ug("Network simplex layering",1),t.b=n,xe=b(ce(n,(Qt(),m9)),17).a*4,de=t.b.a,de.c.length<1){s.Vg();return}g=qkn(t,de),ue=null;for(f=ti(g,0);f.b!=f.d.c;){u=b(Jn(f),15),S=xe*Ks(d.Math.sqrt(u.gc())),E=s3n(u),lpe(Y5e(jnn(W5e(bue(E),S),ue),!0),s.eh(1)),q=t.b.b;for(ae=new me(E.a);ae.a1){ue=mt(ci,$i,28,t.b.b.c.length,15,1),U=0;for(O=new me(t.b.b);O.a0){oQ(t,s,0),s.a+=String.fromCharCode(u),f=mvn(n,g),oQ(t,s,f),g+=f-1;continue}if(u==39)if(g+10&&ae.a<=0){C.c.length=0,rn(C.c,ae);break}if(re=ae.i-ae.d,re>=S){if(re>S)C.c.length=0,S=re;rn(C.c,ae)}}if(C.c.length!=0)E=b(nr(C,gQ(f,C.c.length)),118),Ve.a.Bc(E)!=null,E.g=M++,pDe(E,n,s,u),C.c.length=0}de=t.c.length+1;for(q=new me(t);q.aGs||n.o==TE&&M=S&&f<=C)if(S<=f&&g<=C)s[M++]=f,s[M++]=g,u+=2;else if(S<=f)s[M++]=f,s[M++]=C,t.b[u]=C+1,E+=2;else if(g<=C)s[M++]=S,s[M++]=g,u+=2;else s[M++]=S,s[M++]=C,t.b[u]=C+1;else if(Cl_)&&S<10);K5e(t.c,new pl),XHt(t),Vun(t.c),F5n(t.f)}function nRn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue;s=b(ce(t,(Qt(),ms)),101),E=t.f,g=t.d,S=E.a+g.b+g.c,C=0-g.d-t.c.b,M=E.b+g.d+g.a-t.c.b,O=new Ut,U=new Ut;for(f=new me(n);f.a=2){C=ti(s,0),E=b(Jn(C),8),S=b(Jn(C),8);while(S.a0&&AU(O,!0,(Ms(),sc)),S.k==(bn(),As)&&MNt(O),Ki(t.f,S,n)}}}function sRn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;f=b(ce(t,(Ma(),A9)),27),O=sa,M=sa,S=Qo,C=Qo;for(Ve=ti(t.b,0);Ve.b!=Ve.d.c;)xe=b(Jn(Ve),40),re=xe.e,ae=xe.f,O=d.Math.min(O,re.a-ae.a/2),M=d.Math.min(M,re.b-ae.b/2),S=d.Math.max(S,re.a+ae.a/2),C=d.Math.max(C,re.b+ae.b/2);q=b(It(f,(Oc(),nHe)),107);for(Be=ti(t.b,0);Be.b!=Be.d.c;)if(xe=b(Jn(Be),40),U=ce(xe,A9),He(U,207))g=b(U,27),kf(g,xe.e.a,xe.e.b),sG(g,xe);for(de=ti(t.a,0);de.b!=de.d.c;)if(ue=b(Jn(de),65),u=b(ce(ue,A9),74),u)n=ue.a,s=M4(u,!0,!0),fG(n,s);et=S-O+(q.b+q.c),E=C-M+(q.d+q.a),er(Jt(It(f,(Hi(),Yx))))||nS(f,et,E,!1,!1),Ta(f,xk,et-(q.b+q.c)),Ta(f,Tk,E-(q.d+q.a))}function ZHt(t,n){var s,u,f,g,E,S,C,O,M,U;if(C=!0,f=0,O=t.g[n.p],M=n.o.b+t.o,s=t.d[n.p][2],Lf(t.b,O,$t(b(nr(t.b,O),17).a-1+s)),Lf(t.c,O,rt(ht(nr(t.c,O)))-M+s*t.f),++O,O>=t.j)++t.j,Gt(t.b,$t(1)),Gt(t.c,M);else u=t.d[n.p][1],Lf(t.b,O,$t(b(nr(t.b,O),17).a+1-u)),Lf(t.c,O,rt(ht(nr(t.c,O)))+M-u*t.f);(t.r==(_p(),Az)&&(b(nr(t.b,O),17).a>t.k||b(nr(t.b,O-1),17).a>t.k)||t.r==Rz&&(rt(ht(nr(t.c,O)))>t.n||rt(ht(nr(t.c,O-1)))>t.n))&&(C=!1);for(E=new Nn(Mn(co(n).a.Kc(),new L));ri(E);)if(g=b(Gn(E),18),S=g.c.i,t.g[S.p]==O)U=ZHt(t,S),f=f+b(U.a,17).a,C=C&&er(Jt(U.b));return t.g[n.p]=O,f=f+t.d[n.p][0],new js($t(f),(an(),C?!0:!1))}function JHt(t,n){var s,u,f,g,E;s=rt(ht(ce(n,(Qt(),p0)))),s<2&&At(n,p0,2),u=b(ce(n,nf),88),u==(Ms(),Hg)&&At(n,nf,XX(n)),f=b(ce(n,brr),17),f.a==0?At(n,(Pt(),U5),new Yde):At(n,(Pt(),U5),new JK(f.a)),g=Jt(ce(n,f9)),g==null&&At(n,f9,(an(),it(ce(n,$b))===it((kb(),PN))?!0:!1)),ys(new Pr(null,new Gr(n.a,16)),new a5e(t)),ys(wc(new Pr(null,new Gr(n.b,16)),new fl),new s5e(t)),E=new WHt(n),At(n,(Pt(),uk),E),H$(t.a),H0(t.a,(Xo(),f0),b(ce(n,yE),188)),H0(t.a,O1,b(ce(n,_E),188)),H0(t.a,su,b(ce(n,d9),188)),H0(t.a,wu,b(ce(n,Ree),188)),H0(t.a,ac,s1n(b(ce(n,$b),223))),JRe(t.a,t6n(n)),At(n,X1e,mG(t.a,n))}function ADe(t,n,s,u,f){var g,E,S,C,O,M,U,q,re,ae,ue,de,xe;U=new Zn,E=new Ut,ZUt(t,s,t.d.Ag(),E,U),ZUt(t,u,t.d.Bg(),E,U),t.b=0.2*(ue=nzt(wc(new Pr(null,new Gr(E,16)),new avt)),de=nzt(wc(new Pr(null,new Gr(E,16)),new svt)),d.Math.min(ue,de)),g=0;for(S=0;S=2&&(xe=wzt(E,!0,q),!t.e&&(t.e=new LCt(t)),dvn(t.e,xe,E,t.b)),aUt(E,q),dRn(E),re=-1;for(M=new me(E);M.aS}function eqt(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be;O=Wa,M=Wa,S=Gs,C=Gs;for(q=new me(n.i);q.a-1){for(f=ti(S,0);f.b!=f.d.c;)u=b(Jn(f),131),u.v=E;while(S.b!=0){u=b(Sfe(S,0),131);for(s=new me(u.i);s.a-1){for(g=new me(S);g.a0)continue;qAe(C,d.Math.min(C.o,f.o-1)),FW(C,C.i-1),C.i==0&&rn(S.c,C)}}}}function rqt(t,n,s,u,f){var g,E,S,C;return C=Wa,E=!1,S=vDe(t,no(new Dt(n.a,n.b),t),ua(new Dt(s.a,s.b),f),no(new Dt(u.a,u.b),s)),g=!!S&&!(d.Math.abs(S.a-t.a)<=uS&&d.Math.abs(S.b-t.b)<=uS||d.Math.abs(S.a-n.a)<=uS&&d.Math.abs(S.b-n.b)<=uS),S=vDe(t,no(new Dt(n.a,n.b),t),s,f),!!S&&((d.Math.abs(S.a-t.a)<=uS&&d.Math.abs(S.b-t.b)<=uS)==(d.Math.abs(S.a-n.a)<=uS&&d.Math.abs(S.b-n.b)<=uS)||g?C=d.Math.min(C,d8(no(S,s))):E=!0),S=vDe(t,no(new Dt(n.a,n.b),t),u,f),!!S&&(E||(d.Math.abs(S.a-t.a)<=uS&&d.Math.abs(S.b-t.b)<=uS)==(d.Math.abs(S.a-n.a)<=uS&&d.Math.abs(S.b-n.b)<=uS)||g)&&(C=d.Math.min(C,d8(no(S,u)))),C}function nqt(t){mw(t,new tE(ej(fw(uw(dw(hw(new x2,u_),JYt),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new lb),ih))),Ft(t,u_,xD,jt(tUe)),Ft(t,u_,bZ,(an(),!0)),Ft(t,u_,q4,jt(UZt)),Ft(t,u_,x5,jt(GZt)),Ft(t,u_,T5,jt(zZt)),Ft(t,u_,VO,jt($Zt)),Ft(t,u_,CD,jt(nUe)),Ft(t,u_,HO,jt(VZt)),Ft(t,u_,C9e,jt(eUe)),Ft(t,u_,A9e,jt(Z$e)),Ft(t,u_,R9e,jt(J$e)),Ft(t,u_,I9e,jt(rUe)),Ft(t,u_,k9e,jt(LJ))}function fRn(t){var n,s,u,f,g,E,S,C;n=null;for(u=new me(t);u.a0&&s.c==0)!n&&(n=new Ut),rn(n.c,s);if(n)while(n.c.length!=0){if(s=b(xy(n,0),239),!!s.b&&s.b.c.length>0){for(g=(!s.b&&(s.b=new Ut),new me(s.b));g.arc(t,s,0))return new js(f,s)}else if(rt(Eg(f.g,f.d[0]).a)>rt(Eg(s.g,s.d[0]).a))return new js(f,s)}for(S=(!s.e&&(s.e=new Ut),s.e).Kc();S.Ob();)E=b(S.Pb(),239),C=(!E.b&&(E.b=new Ut),E.b),HT(0,C.c.length),LM(C.c,0,s),E.c==C.c.length&&rn(n.c,E)}return null}function pRn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe;n.Ug("Interactive crossing minimization",1),E=0;for(g=new me(t.b);g.a0)s+=C.n.a+C.o.a/2,++U;for(ae=new me(C.j);ae.a0&&(s/=U),xe=mt(xo,Ml,28,u.a.c.length,15,1),S=0;for(O=new me(u.a);O.a=S&&f<=C)if(S<=f&&g<=C)u+=2;else if(S<=f)t.b[u]=C+1,E+=2;else if(g<=C)s[M++]=f,s[M++]=S-1,u+=2;else s[M++]=f,s[M++]=S-1,t.b[u]=C+1,E+=2;else if(C2)M=new Ut,Us(M,new Sy(xe,1,xe.b)),g=Hqt(M,Ve+t.a),Be=new Wfe(g),nc(Be,n),rn(s.c,Be);else u?Be=b(An(t.b,E1(n)),272):Be=b(An(t.b,n_(n)),272);if(C=E1(n),u&&(C=n_(n)),E=fSn(de,C),O=Ve+t.a,E.a)O+=d.Math.abs(de.b-U.b),ue=new Dt(U.a,(U.b+de.b)/2);else O+=d.Math.abs(de.a-U.a),ue=new Dt((U.a+de.a)/2,U.b);u?Ki(t.d,n,new Y7e(Be,E,ue,O)):Ki(t.c,n,new Y7e(Be,E,ue,O)),Ki(t.b,n,Be),ae=(!n.n&&(n.n=new kt(Dl,n,1,7)),n.n);for(re=new kn(ae);re.e!=re.i.gc();)q=b(Dn(re),135),f=cG(t,q,!0,0,0),rn(s.c,f)}function gRn(t){var n,s,u,f,g,E,S;if(t.A.dc())return;if(t.A.Hc((Md(),iV))){if(b(Nl(t.b,(Ht(),gn)),127).k=!0,b(Nl(t.b,Kn),127).k=!0,n=t.q!=(Ao(),B1)&&t.q!=xu,zAe(b(Nl(t.b,Cn),127),n),zAe(b(Nl(t.b,yn),127),n),zAe(t.g,n),t.A.Hc(IE))b(Nl(t.b,gn),127).j=!0,b(Nl(t.b,Kn),127).j=!0,b(Nl(t.b,Cn),127).k=!0,b(Nl(t.b,yn),127).k=!0,t.g.k=!0}if(t.A.Hc(nV)){t.a.j=!0,t.a.k=!0,t.g.j=!0,t.g.k=!0,S=t.B.Hc((bd(),X9));for(f=tfe(),g=0,E=f.length;g0),b(M.a.Xb(M.c=--M.b),18));while(g!=u&&M.b>0)t.a[g.p]=!0,t.a[u.p]=!0,g=(Pn(M.b>0),b(M.a.Xb(M.c=--M.b),18));M.b>0&&Nd(M)}}}}}function aqt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re;if(!t.b)return!1;E=null,q=null,C=new Bhe(null,null),f=1,C.a[1]=t.b,U=C;while(U.a[f])if(O=f,S=q,q=U,U=U.a[f],u=t.a.Ne(n,U.d),f=u<0?0:1,u==0&&(!s.c||zc(U.e,s.d))&&(E=U),!(!!U&&U.b)&&!AT(U.a[f])){if(AT(U.a[1-f]))q=q.a[O]=NX(U,f);else if(!AT(U.a[1-f])){if(re=q.a[1-O],re)if(!AT(re.a[1-O])&&!AT(re.a[O]))q.b=!1,re.b=!0,U.b=!0;else g=S.a[1]==q?1:0,AT(re.a[O])?S.a[g]=D7t(q,O):AT(re.a[1-O])&&(S.a[g]=NX(q,O)),U.b=S.a[g].b=!0,S.a[g].a[0].b=!1,S.a[g].a[1].b=!1}}if(E){if(s.b=!0,s.d=E.e,U!=E)M=new Bhe(U.d,U.e),ywn(t,C,E,M),q==E&&(q=M);q.a[q.a[1]==U?1:0]=U.a[!U.a[0]?1:0],--t.c}return t.b=C.a[1],!!t.b&&(t.b.b=!1),s.b}function yRn(t){var n,s,u,f,g,E,S,C,O,M,U,q;for(f=new me(t.a.a.b);f.a0?f-=86400000:f+=86400000,C=new BIe(rl(Vc(n.q.getTime()),f));M=new XC,O=t.a.length;for(g=0;g=97&&u<=122||u>=65&&u<=90){for(E=g+1;E=O)throw _e(new fn("Missing trailing '"));E+1=14&&M<=16)))if(n.a._b(u))!s.a?s.a=new Vd(s.d):Bi(s.a,s.b),YM(s.a,"[...]");else S=H2(u),O=new n8(n),Eb(s,oqt(S,O));else He(u,183)?Eb(s,XSn(b(u,183))):He(u,195)?Eb(s,DEn(b(u,195))):He(u,201)?Eb(s,qwn(b(u,201))):He(u,2111)?Eb(s,PEn(b(u,2111))):He(u,53)?Eb(s,KSn(b(u,53))):He(u,376)?Eb(s,fTn(b(u,376))):He(u,846)?Eb(s,jSn(b(u,846))):He(u,109)&&Eb(s,WSn(b(u,109)));else Eb(s,u==null?mh:hc(u));return!s.a?s.c:s.e.length==0?s.a.a:s.a.a+(""+s.e)}function RO(t,n){var s,u,f,g;if(g=t.F,n==null)t.F=null,rO(t,null);else if(t.F=(_n(n),n),u=ym(n,gh(60)),u!=-1)f=(Do(0,u,n.length),n.substr(0,u)),ym(n,gh(46))==-1&&!Br(f,g5)&&!Br(f,UD)&&!Br(f,tJ)&&!Br(f,GD)&&!Br(f,zD)&&!Br(f,VD)&&!Br(f,HD)&&!Br(f,qD)&&(f=zKt),s=Wj(n,gh(62)),s!=-1&&(f+=""+(pn(s+1,n.length+1),n.substr(s+1))),rO(t,f);else{if(f=n,ym(n,gh(46))==-1)if(u=ym(n,gh(91)),u!=-1&&(f=(Do(0,u,n.length),n.substr(0,u))),!Br(f,g5)&&!Br(f,UD)&&!Br(f,tJ)&&!Br(f,GD)&&!Br(f,zD)&&!Br(f,VD)&&!Br(f,HD)&&!Br(f,qD))f=zKt,u!=-1&&(f+=""+(pn(u,n.length+1),n.substr(u)));else f=n;rO(t,f),f==n&&(t.F=t.D)}(t.Db&4)!=0&&(t.Db&1)==0&&ha(t,new go(t,1,5,g,n))}function lqt(t,n){var s,u,f,g,E,S,C,O,M,U;if(C=n.length-1,S=(pn(C,n.length),n.charCodeAt(C)),S==93){if(E=ym(n,gh(91)),E>=0)return f=Syn(t,(Do(1,E,n.length),n.substr(1,E-1))),M=(Do(E+1,C,n.length),n.substr(E+1,C-(E+1))),KIn(t,M,f)}else{if(s=-1,HFe==null&&(HFe=new RegExp("\\d")),HFe.test(String.fromCharCode(S))){if(s=t6e(n,gh(46),C-1),s>=0){u=b(Ohe(t,XDt(t,(Do(1,s,n.length),n.substr(1,s-1))),!1),61),O=0;try{O=Zd((pn(s+1,n.length+1),n.substr(s+1)),Qo,sa)}catch(q){if(q=Qa(q),He(q,130))throw g=q,_e(new hX(g));else throw _e(q)}if(O>16==-10)s=b(t.Cb,292).Yk(n,s);else if(t.Db>>16==-15){if(!n&&(n=(Vr(),Wg)),!O&&(O=(Vr(),Wg)),t.Cb.Yh())C=new wb(t.Cb,1,13,O,n,Py(pd(b(t.Cb,62)),t),!1),!s?s=C:s.nj(C)}}else if(He(t.Cb,90)){if(t.Db>>16==-23){if(He(n,90)||(n=(Vr(),Lp)),He(O,90)||(O=(Vr(),Lp)),t.Cb.Yh())C=new wb(t.Cb,1,10,O,n,Py(nu(b(t.Cb,29)),t),!1),!s?s=C:s.nj(C)}}else if(He(t.Cb,457)){S=b(t.Cb,850),E=(!S.b&&(S.b=new HW(new qle)),S.b);for(g=(u=new W2(new R2(E.a).a),new qW(u));g.a.b;)f=b(qw(g.a).ld(),89),s=IO(f,DQ(f,S),s)}}return s}function SRn(t,n){var s,u,f,g,E,S,C,O,M,U,q;E=er(Jt(It(t,(Qt(),Bx)))),q=b(It(t,$x),21),C=!1,O=!1,U=new kn((!t.c&&(t.c=new kt(ld,t,9,9)),t.c));while(U.e!=U.i.gc()&&(!C||!O)){g=b(Dn(U),123),S=0;for(f=m1(jd(Ce(Te(rf,1),en,20,0,[(!g.d&&(g.d=new Wr(ws,g,8,5)),g.d),(!g.e&&(g.e=new Wr(ws,g,7,4)),g.e)])));ri(f);)if(u=b(Gn(f),74),M=E&&Jw(u)&&er(Jt(It(u,vE))),s=UHt((!u.b&&(u.b=new Wr(qn,u,4,7)),u.b),g)?t==Ya(ic(b(We((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84))):t==Ya(ic(b(We((!u.b&&(u.b=new Wr(qn,u,4,7)),u.b),0),84))),M||s){if(++S,S>1)break}S>0?C=!0:q.Hc((nd(),Gb))&&(!g.n&&(g.n=new kt(Dl,g,1,7)),g.n).i>0&&(C=!0),S>1&&(O=!0)}C&&n.Fc((Tl(),Wf)),O&&n.Fc((Tl(),a9))}function cqt(t){var n,s,u,f,g,E,S,C,O,M,U,q;if(q=b(It(t,(Hi(),kE)),21),q.dc())return null;if(S=0,E=0,q.Hc((Md(),iV))){M=b(It(t,G9),101),u=2,s=2,f=2,g=2,n=!Ya(t)?b(It(t,CE),88):b(It(Ya(t),CE),88);for(O=new kn((!t.c&&(t.c=new kt(ld,t,9,9)),t.c));O.e!=O.i.gc();){if(C=b(Dn(O),123),U=b(It(C,Rk),64),U==(Ht(),Cc))U=fDe(C,n),Ta(C,Rk,U);if(M==(Ao(),xu))switch(U.g){case 1:u=d.Math.max(u,C.i+C.g);break;case 2:s=d.Math.max(s,C.j+C.f);break;case 3:f=d.Math.max(f,C.i+C.g);break;case 4:g=d.Math.max(g,C.j+C.f)}else switch(U.g){case 1:u+=C.g+2;break;case 2:s+=C.f+2;break;case 3:f+=C.g+2;break;case 4:g+=C.f+2}}S=d.Math.max(u,f),E=d.Math.max(s,g)}return nS(t,S,E,!0,!0)}function kpe(t,n,s,u,f){var g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;Be=b(uc(vX(pa(new Pr(null,new Gr(n.d,16)),new Jxt(s)),new eCt(s)),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15),U=sa,M=Qo;for(C=new me(n.b.j);C.a0,O){if(O)q=xe.p,E?++q:--q,U=b(nr(xe.c.a,q),10),u=LPt(U),re=!(Qfe(u,Ot,s[0])||nNt(u,Ot,s[0]))}else re=!0;if(ae=!1,wt=n.D.i,!!wt&&!!wt.c&&S.e)if(M=E&&wt.p>0||!E&&wt.p=0){C=null,S=new Mo(M.a,O+1);while(S.bE?1:_w(isNaN(0),isNaN(E)))<0&&(a0(Bm),(d.Math.abs(E-1)<=Bm||E==1||isNaN(E)&&isNaN(1)?0:E<1?-1:E>1?1:_w(isNaN(E),isNaN(1)))<0)&&(a0(Bm),(d.Math.abs(0-S)<=Bm||S==0||isNaN(0)&&isNaN(S)?0:0S?1:_w(isNaN(0),isNaN(S)))<0)&&(a0(Bm),(d.Math.abs(S-1)<=Bm||S==1||isNaN(S)&&isNaN(1)?0:S<1?-1:S>1?1:_w(isNaN(S),isNaN(1)))<0)),g}function RRn(t){var n,s,u,f;if(s=t.D!=null?t.D:t.B,n=ym(s,gh(91)),n!=-1){u=(Do(0,n,s.length),s.substr(0,n)),f=new gy;do f.a+="[";while((n=h6(s,91,++n))!=-1);if(Br(u,g5))f.a+="Z";else if(Br(u,UD))f.a+="B";else if(Br(u,tJ))f.a+="C";else if(Br(u,GD))f.a+="D";else if(Br(u,zD))f.a+="F";else if(Br(u,VD))f.a+="I";else if(Br(u,HD))f.a+="J";else if(Br(u,qD))f.a+="S";else f.a+="L",f.a+=""+u,f.a+=";";try{return null}catch(g){if(g=Qa(g),!He(g,63))throw _e(g)}}else if(ym(s,gh(46))==-1){if(Br(s,g5))return wd;else if(Br(s,UD))return Gh;else if(Br(s,tJ))return Qf;else if(Br(s,GD))return xo;else if(Br(s,zD))return nC;else if(Br(s,VD))return ci;else if(Br(s,HD))return P_;else if(Br(s,qD))return Dk}return null}function IRn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt;t.e=n,S=ITn(n),Ot=new Ut;for(u=new me(S);u.a=0&&ue=O.c.c.length?M=JOe((bn(),Es),mo):M=JOe((bn(),mo),mo),M*=2,g=s.a.g,s.a.g=d.Math.max(g,g+(M-g)),E=s.b.g,s.b.g=d.Math.max(E,E+(M-E)),f=n}}function MRn(t){var n,s,u,f;if(ys(pa(new Pr(null,new Gr(t.a.b,16)),new gbt),new mbt),gEn(t),ys(pa(new Pr(null,new Gr(t.a.b,16)),new bbt),new ybt),t.c==(kb(),K5))ys(pa(wc(new Pr(null,new Gr(new A2(t.f),1)),new vbt),new _bt),new Yxt(t)),ys(pa(ec(wc(wc(new Pr(null,new Gr(t.d.b,16)),new Ebt),new wbt),new Sbt),new Tbt),new jxt(t));f=new Dt(Wa,Wa),n=new Dt(Gs,Gs);for(u=new me(t.a.b);u.a0&&(n.a+=ll),tZ(b(Dn(S),167),n);n.a+=P0e,C=new NA((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c));while(C.e!=C.i.gc())C.e>0&&(n.a+=ll),tZ(b(Dn(C),167),n);n.a+=")"}}}function DRn(t,n,s){var u,f,g,E,S,C,O,M;for(C=new kn((!t.a&&(t.a=new kt(ra,t,10,11)),t.a));C.e!=C.i.gc();){S=b(Dn(C),27);for(f=new Nn(Mn(Ob(S).a.Kc(),new L));ri(f);){if(u=b(Gn(f),74),!u.b&&(u.b=new Wr(qn,u,4,7)),!(u.b.i<=1&&(!u.c&&(u.c=new Wr(qn,u,5,8)),u.c.i<=1)))throw _e(new wA("Graph must not contain hyperedges."));if(!rD(u)&&S!=ic(b(We((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84))){O=new h6t,nc(O,u),At(O,(Xv(),L5),u),Srn(O,b(Jl(wl(s.f,S)),153)),Crn(O,b(An(s,ic(b(We((!u.c&&(u.c=new Wr(qn,u,5,8)),u.c),0),84))),153)),Gt(n.c,O);for(E=new kn((!u.n&&(u.n=new kt(Dl,u,1,7)),u.n));E.e!=E.i.gc();)g=b(Dn(E),135),M=new fMt(O,g.a),nc(M,g),At(M,L5,g),M.e.a=d.Math.max(g.g,1),M.e.b=d.Math.max(g.f,1),yDe(M),Gt(n.d,M)}}}}function PRn(t,n,s){var u,f,g,E,S,C,O,M,U,q;switch(s.Ug("Node promotion heuristic",1),t.i=n,t.r=b(ce(n,(Qt(),E_)),243),t.r!=(_p(),RS)&&t.r!=zx?cIn(t):D4n(t),M=b(ce(t.i,Nze),17).a,g=new s1t,t.r.g){case 2:case 1:AO(t,g);break;case 3:t.r=Fee,AO(t,g),C=0;for(S=new me(t.b);S.at.k)t.r=Az,AO(t,g);break;case 4:t.r=Fee,AO(t,g),O=0;for(f=new me(t.c);f.at.n)t.r=Rz,AO(t,g);break;case 6:q=Ks(d.Math.ceil(t.g.length*M/100)),AO(t,new Mxt(q));break;case 5:U=Ks(d.Math.ceil(t.e*M/100)),AO(t,new Dxt(U));break;case 8:Wqt(t,!0);break;case 9:Wqt(t,!1);break;default:AO(t,g)}t.r!=RS&&t.r!=zx?a4n(t,n):xkn(t,n),s.Vg()}function BRn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve;U=t.b,M=new Mo(U,0),BT(M,new gu(t)),Be=!1,E=1;while(M.b0)q.d+=M.n.d,q.d+=M.d;if(q.a>0)q.a+=M.n.a,q.a+=M.d;if(q.b>0)q.b+=M.n.b,q.b+=M.d;if(q.c>0)q.c+=M.n.c,q.c+=M.d;return q}function hqt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae;q=s.d,U=s.c,g=new Dt(s.f.a+s.d.b+s.d.c,s.f.b+s.d.d+s.d.a),E=g.b;for(O=new me(t.a);O.a0)t.c[n.c.p][n.p].d+=md(t.i,24)*IG*0.07000000029802322-0.03500000014901161,t.c[n.c.p][n.p].a=t.c[n.c.p][n.p].d/t.c[n.c.p][n.p].b}function URn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;for(ae=new me(t);ae.au.d,u.d=d.Math.max(u.d,n),S&&s)u.d=d.Math.max(u.d,u.a),u.a=u.d+f;break;case 3:if(s=n>u.a,u.a=d.Math.max(u.a,n),S&&s)u.a=d.Math.max(u.a,u.d),u.d=u.a+f;break;case 2:if(s=n>u.c,u.c=d.Math.max(u.c,n),S&&s)u.c=d.Math.max(u.b,u.c),u.b=u.c+f;break;case 4:if(s=n>u.b,u.b=d.Math.max(u.b,n),S&&s)u.b=d.Math.max(u.b,u.c),u.c=u.b+f}}}function fqt(t,n){var s,u,f,g,E,S,C,O,M;if(O="",n.length==0)return t.ne(jDe,$pe,-1,-1);if(M=ox(n),Br(M.substr(0,3),"at ")&&(M=(pn(3,M.length+1),M.substr(3))),M=M.replace(/\[.*?\]/g,""),E=M.indexOf("("),E==-1)if(E=M.indexOf("@"),E==-1)O=M,M="";else O=ox((pn(E+1,M.length+1),M.substr(E+1))),M=ox((Do(0,E,M.length),M.substr(0,E)));else s=M.indexOf(")",E),O=(Do(E+1,s,M.length),M.substr(E+1,s-(E+1))),M=ox((Do(0,E,M.length),M.substr(0,E)));if(E=ym(M,gh(46)),E!=-1&&(M=(pn(E+1,M.length+1),M.substr(E+1))),(M.length==0||Br(M,"Anonymous function"))&&(M=$pe),S=Wj(O,gh(58)),f=t6e(O,gh(58),S-1),C=-1,u=-1,g=jDe,S!=-1&&f!=-1)g=(Do(0,f,O.length),O.substr(0,f)),C=IIt((Do(f+1,S,O.length),O.substr(f+1,S-(f+1)))),u=IIt((pn(S+1,O.length+1),O.substr(S+1)));return t.ne(g,M,C,u)}function VRn(t){var n,s,u,f,g,E,S,C,O,M,U;for(O=new me(t);O.a0||M.j==yn&&M.e.c.length-M.g.c.length<0)){n=!1;break}for(f=new me(M.g);f.a=O&&wt>=de)q+=ae.n.b+ue.n.b+ue.a.b-et,++S}}if(s){for(E=new me(Be.e);E.a=O&&wt>=de)q+=ae.n.b+ue.n.b+ue.a.b-et,++S}}}if(S>0)Ot+=q/S,++re}if(re>0)n.a=f*Ot/re,n.g=re;else n.a=0,n.g=0}function qRn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt;g=t.f.b,q=g.a,M=g.b,ae=t.e.g,re=t.e.f,o4(t.e,g.a,g.b),Ot=q/ae,Wt=M/re;for(O=new kn(NK(t.e));O.e!=O.i.gc();)C=b(Dn(O),135),eh(C,C.i*Ot),th(C,C.j*Wt);for(Be=new kn(Que(t.e));Be.e!=Be.i.gc();)xe=b(Dn(Be),123),et=xe.i,wt=xe.j,et>0&&eh(xe,et*Ot),wt>0&&th(xe,wt*Wt);R8(t.b,new Zl),n=new Ut;for(S=new W2(new R2(t.c).a);S.b;)if(E=qw(S),u=b(E.ld(),74),s=b(E.md(),407).a,f=M4(u,!1,!1),U=sUt(E1(u),JU(f),s),fG(U,f),Ve=vUt(u),!!Ve&&rc(n,Ve,0)==-1)rn(n.c,Ve),jNt(Ve,(Pn(U.b!=0),b(U.a.a.c,8)),s);for(de=new W2(new R2(t.d).a);de.b;)if(ue=qw(de),u=b(ue.ld(),74),s=b(ue.md(),407).a,f=M4(u,!1,!1),U=sUt(n_(u),IU(JU(f)),s),U=IU(U),fG(U,f),Ve=_Ut(u),!!Ve&&rc(n,Ve,0)==-1)rn(n.c,Ve),jNt(Ve,(Pn(U.b!=0),b(U.c.b.c,8)),s)}function pqt(t,n,s,u){var f,g,E,S,C;if(S=new NDe(n),PCn(S,u),f=!0,!!t&&t.pf((Hi(),CE)))g=b(t.of((Hi(),CE)),88),f=g==(Ms(),Hg)||g==Kl||g==sc;if(fVt(S,!1),Ju(S.e.Rf(),new l6e(S,!1,f)),uhe(S,S.f,(K0(),Mc),(Ht(),gn)),uhe(S,S.f,Dc,Kn),uhe(S,S.g,Mc,yn),uhe(S,S.g,Dc,Cn),zFt(S,gn),zFt(S,Kn),qNt(S,Cn),qNt(S,yn),PT(),E=S.A.Hc((Md(),Kx))&&S.B.Hc((bd(),sV))?sFt(S):null,!!E&&qnn(S.a,E),zRn(S),V_n(S),H_n(S),gRn(S),M3n(S),m2n(S),Jde(S,gn),Jde(S,Kn),_kn(S),l5n(S),!s)return S.o;return Tyn(S),b2n(S),Jde(S,Cn),Jde(S,yn),C=S.B.Hc((bd(),X9)),aGt(S,C,gn),aGt(S,C,Kn),sGt(S,C,Cn),sGt(S,C,yn),ys(new Pr(null,new Gr(new hb(S.i),0)),new Ii),ys(pa(new Pr(null,sOe(S.r).a.oc()),new Vn),new Ei),OEn(S),S.e.Pf(S.o),ys(new Pr(null,sOe(S.r).a.oc()),new vn),S.o}function YRn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue;O=Wa;for(u=new me(t.a.b);u.a1){re=new wDe(ae,Ve,u),Vo(Ve,new T5t(t,re)),rn(E.c,re);for(U=Ve.a.ec().Kc();U.Ob();)M=b(U.Pb(),42),fh(g,M.b)}if(S.a.gc()>1){re=new wDe(ae,S,u),Vo(S,new x5t(t,re)),rn(E.c,re);for(U=S.a.ec().Kc();U.Ob();)M=b(U.Pb(),42),fh(g,M.b)}}}function XRn(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe;if(ue=t.n,de=t.o,q=t.d,U=rt(ht(rx(t,(Qt(),ube)))),n){M=U*(n.gc()-1),re=0;for(C=n.Kc();C.Ob();)E=b(C.Pb(),10),M+=E.o.a,re=d.Math.max(re,E.o.b);xe=ue.a-(M-de.a)/2,g=ue.b-q.d+re,u=de.a/(n.gc()+1),f=u;for(S=n.Kc();S.Ob();){if(E=b(S.Pb(),10),E.n.a=xe,E.n.b=g-E.o.b,xe+=E.o.a+U,O=Szt(E),O.n.a=E.o.a/2-O.a.a,O.n.b=E.o.b,ae=b(ce(E,(Pt(),dee)),12),ae.e.c.length+ae.g.c.length==1)ae.n.a=f-ae.a.a,ae.n.b=0,Ec(ae,t);f+=u}}if(s){M=U*(s.gc()-1),re=0;for(C=s.Kc();C.Ob();)E=b(C.Pb(),10),M+=E.o.a,re=d.Math.max(re,E.o.b);xe=ue.a-(M-de.a)/2,g=ue.b+de.b+q.a-re,u=de.a/(s.gc()+1),f=u;for(S=s.Kc();S.Ob();){if(E=b(S.Pb(),10),E.n.a=xe,E.n.b=g,xe+=E.o.a+U,O=Szt(E),O.n.a=E.o.a/2-O.a.a,O.n.b=0,ae=b(ce(E,(Pt(),dee)),12),ae.e.c.length+ae.g.c.length==1)ae.n.a=f-ae.a.a,ae.n.b=de.b,Ec(ae,t);f+=u}}}function QRn(t,n){var s,u,f,g,E,S;if(!b(ce(n,(Pt(),Tu)),21).Hc((Tl(),Wf)))return;for(S=new me(n.a);S.a=0&&E0&&(b(Nl(t.b,n),127).a.b=s)}function rIn(t,n,s,u){var f,g,E,S,C,O,M,U,q,re,ae,ue;if(q=rt(ht(ce(t,(Qt(),SN)))),re=rt(ht(ce(t,TN))),U=rt(ht(ce(t,Gx))),S=t.o,g=b(nr(t.j,0),12),E=g.n,ue=vSn(g,U),!ue)return;if(n.Hc((nd(),Gb)))switch(b(ce(t,(Pt(),Pc)),64).g){case 1:ue.c=(S.a-ue.b)/2-E.a,ue.d=re;break;case 3:ue.c=(S.a-ue.b)/2-E.a,ue.d=-re-ue.a;break;case 2:if(s&&g.e.c.length==0&&g.g.c.length==0)M=u?ue.a:b(nr(g.f,0),72).o.b,ue.d=(S.b-M)/2-E.b;else ue.d=S.b+re-E.b;ue.c=-q-ue.b;break;case 4:if(s&&g.e.c.length==0&&g.g.c.length==0)M=u?ue.a:b(nr(g.f,0),72).o.b,ue.d=(S.b-M)/2-E.b;else ue.d=S.b+re-E.b;ue.c=q}else if(n.Hc(R_))switch(b(ce(t,(Pt(),Pc)),64).g){case 1:case 3:ue.c=E.a+q;break;case 2:case 4:if(s&&!g.c)M=u?ue.a:b(nr(g.f,0),72).o.b,ue.d=(S.b-M)/2-E.b;else ue.d=E.b+re}f=ue.d;for(O=new me(g.f);O.a=n.length)return{done:!0};var f=n[u++];return{value:[f,s.get(f)],done:!1}}}},!J4n())t.prototype.createObject=function(){return{}},t.prototype.get=function(n){return this.obj[":"+n]},t.prototype.set=function(n,s){this.obj[":"+n]=s},t.prototype[h0e]=function(n){delete this.obj[":"+n]},t.prototype.keys=function(){var n=[];for(var s in this.obj)s.charCodeAt(0)==58&&n.push(s.substring(1));return n};return t}function Ma(){Ma=z,A9=new va(T9e),new va(x9e),new es("DEPTH",$t(0)),Fbe=new es("FAN",$t(0)),qVe=new es($Wt,$t(0)),T_=new es("ROOT",(an(),!1)),Gbe=new es("LEFTNEIGHBOR",null),Unr=new es("RIGHTNEIGHBOR",null),qee=new es("LEFTSIBLING",null),zbe=new es("RIGHTSIBLING",null),Bbe=new es("DUMMY",!1),new es("LEVEL",$t(0)),jVe=new es("REMOVABLE_EDGES",new Va),Dz=new es("XCOOR",$t(0)),Pz=new es("YCOOR",$t(0)),Yee=new es("LEVELHEIGHT",0),rg=new es("LEVELMIN",0),g0=new es("LEVELMAX",0),$be=new es("GRAPH_XMIN",0),Ube=new es("GRAPH_YMIN",0),YVe=new es("GRAPH_XMAX",0),WVe=new es("GRAPH_YMAX",0),HVe=new es("COMPACT_LEVEL_ASCENSION",!1),Pbe=new es("COMPACT_CONSTRAINTS",new Ut),k9=new es("ID",""),R9=new es("POSITION",$t(0)),Ky=new es("PRELIM",0),RN=new es("MODIFIER",0),AN=new va(QYt),Mz=new va(ZYt)}function sIn(t){dDe();var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(t==null)return null;if(U=t.length*8,U==0)return"";S=U%24,re=U/24|0,q=S!=0?re+1:re,g=null,g=mt(Qf,Om,28,q*4,15,1),O=0,M=0,n=0,s=0,u=0,E=0,f=0;for(C=0;C>24,O=(n&3)<<24>>24,ae=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,ue=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,de=(u&-128)==0?u>>6<<24>>24:(u>>6^252)<<24>>24,g[E++]=iv[ae],g[E++]=iv[ue|O<<4],g[E++]=iv[M<<2|de],g[E++]=iv[u&63];if(S==8)n=t[f],O=(n&3)<<24>>24,ae=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,g[E++]=iv[ae],g[E++]=iv[O<<4],g[E++]=61,g[E++]=61;else if(S==16)n=t[f],s=t[f+1],M=(s&15)<<24>>24,O=(n&3)<<24>>24,ae=(n&-128)==0?n>>2<<24>>24:(n>>2^192)<<24>>24,ue=(s&-128)==0?s>>4<<24>>24:(s>>4^240)<<24>>24,g[E++]=iv[ae],g[E++]=iv[ue|O<<4],g[E++]=iv[M<<2],g[E++]=61;return yp(g,0,g.length)}function oIn(t,n){var s,u,f,g,E,S,C;if(t.e==0&&t.p>0&&(t.p=-(t.p-1)),t.p>Qo&&ZOe(n,t.p-c_),E=n.q.getDate(),Q$(n,1),t.k>=0&&Kdn(n,t.k),t.c>=0)Q$(n,t.c);else if(t.k>=0)C=new ALe(n.q.getFullYear()-c_,n.q.getMonth(),35),u=35-C.q.getDate(),Q$(n,d.Math.min(u,E));else Q$(n,E);if(t.f<0&&(t.f=n.q.getHours()),t.b>0&&t.f<12&&(t.f+=12),Uan(n,t.f==24&&t.g?0:t.f),t.j>=0&&O0n(n,t.j),t.n>=0&&V0n(n,t.n),t.i>=0&&SRt(n,rl(nl(KU(Vc(n.q.getTime()),Uy),Uy),t.i)),t.a)f=new sj,ZOe(f,f.q.getFullYear()-c_-80),fce(Vc(n.q.getTime()),Vc(f.q.getTime()))&&ZOe(n,f.q.getFullYear()-c_+100);if(t.d>=0){if(t.c==-1)s=(7+t.d-n.q.getDay())%7,s>3&&(s-=7),S=n.q.getMonth(),Q$(n,n.q.getDate()+s),n.q.getMonth()!=S&&Q$(n,n.q.getDate()+(s>0?-7:7));else if(n.q.getDay()!=t.d)return!1}if(t.o>Qo)g=n.q.getTimezoneOffset(),SRt(n,rl(Vc(n.q.getTime()),(t.o-g)*60*Uy));return!0}function vqt(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;if(f=ce(n,(Pt(),Ea)),!He(f,207))return;if(ae=b(f,27),ue=n.e,q=new sl(n.c),g=n.d,q.a+=g.b,q.b+=g.d,et=b(It(ae,(Qt(),Iee)),181),Oh(et,(bd(),yte)))re=b(It(ae,Bze),107),brn(re,g.a),xrn(re,g.d),yrn(re,g.b),Trn(re,g.c);s=new Ut;for(M=new me(n.a);M.au.c.length-1)Gt(u,new js(H4,rBe));if(s=b(ce(f,Vm),17).a,pb(b(ce(t,OS),88)))f.e.art(ht((qr(s,u.c.length),b(u.c[s],42)).b))&&Ole((qr(s,u.c.length),b(u.c[s],42)),f.e.a+f.f.a);else f.e.brt(ht((qr(s,u.c.length),b(u.c[s],42)).b))&&Ole((qr(s,u.c.length),b(u.c[s],42)),f.e.b+f.f.b)}for(g=ti(t.b,0);g.b!=g.d.c;)f=b(Jn(g),40),s=b(ce(f,(Oc(),Vm)),17).a,At(f,(Ma(),rg),ht((qr(s,u.c.length),b(u.c[s],42)).a)),At(f,g0,ht((qr(s,u.c.length),b(u.c[s],42)).b));n.Vg()}function cIn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue;t.o=rt(ht(ce(t.i,(Qt(),AS)))),t.f=rt(ht(ce(t.i,SE))),t.j=t.i.b.c.length,S=t.j-1,q=0,t.k=0,t.n=0,t.b=xg(mt(qo,Bt,17,t.j,0,1)),t.c=xg(mt(Bs,Bt,345,t.j,7,1));for(E=new me(t.i.b);E.a0&&Gt(t.q,M),Gt(t.p,M);n-=u,re=C+n,O+=n*t.f,Lf(t.b,S,$t(re)),Lf(t.c,S,O),t.k=d.Math.max(t.k,re),t.n=d.Math.max(t.n,O),t.e+=n,n+=ue}}function Ht(){Ht=z;var t;Cc=new E$(wD,0),gn=new E$(hZ,1),Cn=new E$(E0e,2),Kn=new E$(w0e,3),yn=new E$(S0e,4),Yg=(Hr(),new e6((t=b(G0(bl),9),new Rf(t,b(t0(t,t.length),9),0)))),_0=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[]))),Kf=Iy(Ua(Cn,Ce(Te(bl,1),Qc,64,0,[]))),sf=Iy(Ua(Kn,Ce(Te(bl,1),Qc,64,0,[]))),Rp=Iy(Ua(yn,Ce(Te(bl,1),Qc,64,0,[]))),yh=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[Kn]))),oh=Iy(Ua(Cn,Ce(Te(bl,1),Qc,64,0,[yn]))),E0=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[yn]))),sd=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[Cn]))),of=Iy(Ua(Kn,Ce(Te(bl,1),Qc,64,0,[yn]))),Xf=Iy(Ua(Cn,Ce(Te(bl,1),Qc,64,0,[Kn]))),od=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[Cn,yn]))),bh=Iy(Ua(Cn,Ce(Te(bl,1),Qc,64,0,[Kn,yn]))),vh=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[Kn,yn]))),Uh=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[Cn,Kn]))),Cu=Iy(Ua(gn,Ce(Te(bl,1),Qc,64,0,[Cn,Kn,yn])))}function uIn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt;n.Ug(yWt,1),ue=new Ut,Ot=new Ut;for(O=new me(t.b);O.a0&&(Ve-=re),SDe(E,Ve),M=0;for(q=new me(E.a);q.a0),S.a.Xb(S.c=--S.b);C=0.4*u*M,!g&&S.b0){if(C=(pn(0,n.length),n.charCodeAt(0)),C!=64){if(C==37){if(U=n.lastIndexOf("%"),O=!1,U!=0&&(U==q-1||(O=(pn(U+1,n.length),n.charCodeAt(U+1)==46)))){if(E=(Do(1,U,n.length),n.substr(1,U-1)),Ve=Br("%",E)?null:MDe(E),u=0,O)try{u=Zd((pn(U+2,n.length+1),n.substr(U+2)),Qo,sa)}catch(et){if(et=Qa(et),He(et,130))throw S=et,_e(new hX(S));else throw _e(et)}for(de=oLe(t.Gh());de.Ob();)if(ae=$X(de),He(ae,519)){if(f=b(ae,598),Be=f.d,(Ve==null?Be==null:Br(Ve,Be))&&u--==0)return f}return null}}if(M=n.lastIndexOf("."),re=M==-1?n:(Do(0,M,n.length),n.substr(0,M)),s=0,M!=-1)try{s=Zd((pn(M+1,n.length+1),n.substr(M+1)),Qo,sa)}catch(et){if(et=Qa(et),He(et,130))re=n;else throw _e(et)}re=Br("%",re)?null:MDe(re);for(ue=oLe(t.Gh());ue.Ob();)if(ae=$X(ue),He(ae,197)){if(g=b(ae,197),xe=g.xe(),(re==null?xe==null:Br(re,xe))&&s--==0)return g}return null}}return lqt(t,n)}function yIn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be;M=new Zn,C=new Pw;for(u=new me(t.a.a.b);u.an.d.c){if(re=t.c[n.a.d],de=t.c[U.a.d],re==de)continue;l0(Zp(Qp(Jp(Xp(new fp,1),100),re),de))}}}}function vIn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot;if(q=b(b(_a(t.r,n),21),87),n==(Ht(),Cn)||n==yn){mqt(t,n);return}g=n==gn?(Yw(),nz):(Yw(),iz),et=n==gn?(ph(),eg):(ph(),d0),s=b(Nl(t.b,n),127),u=s.i,f=u.c+v4(Ce(Te(xo,1),Ml,28,15,[s.n.b,t.C.b,t.k])),xe=u.c+u.b-v4(Ce(Te(xo,1),Ml,28,15,[s.n.c,t.C.c,t.k])),E=j5e(u6e(g),t.t),Be=n==gn?Gs:Wa;for(U=q.Kc();U.Ob();){if(O=b(U.Pb(),117),!O.c||O.c.d.c.length<=0)continue;de=O.b.Mf(),ue=O.e,re=O.c,ae=re.i,ae.b=(C=re.n,re.e.a+C.b+C.c),ae.a=(S=re.n,re.e.b+S.d+S.a),W$(et,u9e),re.f=et,W0(re,(td(),h0)),ae.c=ue.a-(ae.b-de.a)/2,wt=d.Math.min(f,ue.a),Ot=d.Math.max(xe,ue.a+de.a),ae.cOt&&(ae.c=Ot-ae.b),Gt(E.d,new Nue(ae,t7e(E,ae))),Be=n==gn?d.Math.max(Be,ue.b+O.b.Mf().b):d.Math.min(Be,ue.b)}Be+=n==gn?t.t:-t.t,Ve=_7e((E.e=Be,E)),Ve>0&&(b(Nl(t.b,n),127).a.b=Ve);for(M=q.Kc();M.Ob();){if(O=b(M.Pb(),117),!O.c||O.c.d.c.length<=0)continue;ae=O.c.i,ae.c-=O.e.a,ae.d-=O.e.b}}function _In(t){var n,s,u,f,g,E,S,C,O,M,U,q,re;n=new Zn;for(C=new kn(t);C.e!=C.i.gc();){S=b(Dn(C),27),s=new Rs,Ki(Qme,S,s),re=new fs,f=b(uc(new Pr(null,new Rw(new Nn(Mn(aG(S).a.Kc(),new L)))),$Ot(re,ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)])))),85),v9t(s,b(f.xc((an(),!0)),16),new ya),u=b(uc(pa(b(f.xc(!1),15).Lc(),new rs),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc]))),15);for(E=u.Kc();E.Ob();)if(g=b(E.Pb(),74),q=vUt(g),q){if(O=b(Jl(wl(n.f,q)),21),!O)O=zzt(q),Hu(n.f,q,O);Po(s,O)}f=b(uc(new Pr(null,new Rw(new Nn(Mn(Ob(S).a.Kc(),new L)))),$Ot(re,ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc])))),85),v9t(s,b(f.xc(!0),16),new xs),u=b(uc(pa(b(f.xc(!1),15).Lc(),new Yr),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc]))),15);for(U=u.Kc();U.Ob();)if(M=b(U.Pb(),74),q=_Ut(M),q){if(O=b(Jl(wl(n.f,q)),21),!O)O=zzt(q),Hu(n.f,q,O);Po(s,O)}}}function EIn(t,n){bpe();var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue;if(C=Kc(t,0)<0,C&&(t=ky(t)),Kc(t,0)==0)switch(n){case 0:return"0";case 1:return PO;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return re=new Dv,n<0?re.a+="0E+":re.a+="0E",re.a+=n==Qo?"2147483648":""+-n,re.a}M=18,U=mt(Qf,Om,28,M+1,15,1),s=M,ue=t;do O=ue,ue=KU(ue,10),U[--s]=gi(rl(48,bp(O,nl(ue,10))))&Ds;while(Kc(ue,0)!=0);if(f=bp(bp(bp(M,s),n),1),n==0)return C&&(U[--s]=45),yp(U,s,M-s);if(n>0&&Kc(f,-6)>=0){if(Kc(f,0)>=0){g=s+gi(f);for(S=M-1;S>=g;S--)U[S+1]=U[S];return U[++g]=46,C&&(U[--s]=45),yp(U,s,M-s+1)}for(E=2;fce(E,rl(ky(f),1));E++)U[--s]=48;return U[--s]=46,U[--s]=48,C&&(U[--s]=45),yp(U,s,M-s)}if(ae=s+1,u=M,q=new XC,C&&(q.a+="-"),u-ae>=1)qv(q,U[s]),q.a+=".",q.a+=yp(U,s+1,M-s-1);else q.a+=yp(U,s,M-s);return q.a+="E",Kc(f,0)>0&&(q.a+="+"),q.a+=""+o8(f),q.a}function nS(t,n,s,u,f){var g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot;if(de=new Dt(t.g,t.f),ue=XMe(t),ue.a=d.Math.max(ue.a,n),ue.b=d.Math.max(ue.b,s),Ot=ue.a/de.a,M=ue.b/de.b,et=ue.a-de.a,C=ue.b-de.b,u){E=!Ya(t)?b(It(t,(Hi(),CE)),88):b(It(Ya(t),(Hi(),CE)),88),S=it(It(t,(Hi(),G9)))===it((Ao(),xu));for(Be=new kn((!t.c&&(t.c=new kt(ld,t,9,9)),t.c));Be.e!=Be.i.gc();){if(xe=b(Dn(Be),123),Ve=b(It(xe,Rk),64),Ve==(Ht(),Cc))Ve=fDe(xe,E),Ta(xe,Rk,Ve);switch(Ve.g){case 1:S||eh(xe,xe.i*Ot);break;case 2:eh(xe,xe.i+et),S||th(xe,xe.j*M);break;case 3:S||eh(xe,xe.i*Ot),th(xe,xe.j+C);break;case 4:S||th(xe,xe.j*M)}}}if(o4(t,ue.a,ue.b),f){for(q=new kn((!t.n&&(t.n=new kt(Dl,t,1,7)),t.n));q.e!=q.i.gc();)if(U=b(Dn(q),135),re=U.i+U.g/2,ae=U.j+U.f/2,wt=re/de.a,O=ae/de.b,wt+O>=1){if(wt-O>0&&ae>=0)eh(U,U.i+et),th(U,U.j+C*O);else if(wt-O<0&&re>=0)eh(U,U.i+et*wt),th(U,U.j+C)}}return Ta(t,(Hi(),kE),(Md(),g=b(G0(K9),9),new Rf(g,b(t0(g,g.length),9),0))),new Dt(Ot,M)}function Sqt(t){mw(t,new tE(ej(fw(uw(dw(hw(new x2,Vf),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new b_t),Vf))),Ft(t,Vf,PZ,jt(Pir)),Ft(t,Vf,vx,jt(Bir)),Ft(t,Vf,q4,jt(Nir)),Ft(t,Vf,x5,jt(Lir)),Ft(t,Vf,T5,jt(Mir)),Ft(t,Vf,VO,jt(Oir)),Ft(t,Vf,CD,jt(SHe)),Ft(t,Vf,HO,jt(Dir)),Ft(t,Vf,Cge,jt(tye)),Ft(t,Vf,xge,jt(rye)),Ft(t,Vf,VZ,jt(xHe)),Ft(t,Vf,kge,jt(nye)),Ft(t,Vf,Age,jt(CHe)),Ft(t,Vf,EBe,jt(kHe)),Ft(t,Vf,_Be,jt(THe)),Ft(t,Vf,mBe,jt(Qee)),Ft(t,Vf,bBe,jt(Zee)),Ft(t,Vf,yBe,jt(Bz)),Ft(t,Vf,vBe,jt(AHe)),Ft(t,Vf,gBe,jt(wHe))}function rZ(t){var n,s,u,f,g,E,S,C,O,M,U;if(t==null)throw _e(new bm(mh));if(O=t,g=t.length,C=!1,g>0){if(n=(pn(0,t.length),t.charCodeAt(0)),n==45||n==43)t=(pn(1,t.length+1),t.substr(1)),--g,C=n==45}if(g==0)throw _e(new bm(sS+O+'"'));while(t.length>0&&(pn(0,t.length),t.charCodeAt(0)==48))t=(pn(1,t.length+1),t.substr(1)),--g;if(g>(eHt(),VXt)[10])throw _e(new bm(sS+O+'"'));for(f=0;f0)U=-parseInt((Do(0,u,t.length),t.substr(0,u)),10),t=(pn(u,t.length+1),t.substr(u)),g-=u,s=!1;while(g>=E){if(u=parseInt((Do(0,E,t.length),t.substr(0,E)),10),t=(pn(E,t.length+1),t.substr(E)),g-=E,s)s=!1;else{if(Kc(U,S)<0)throw _e(new bm(sS+O+'"'));U=nl(U,M)}U=bp(U,u)}if(Kc(U,0)>0)throw _e(new bm(sS+O+'"'));if(!C){if(U=ky(U),Kc(U,0)<0)throw _e(new bm(sS+O+'"'))}return U}function MDe(t){Spe();var n,s,u,f,g,E,S,C;if(t==null)return null;if(f=ym(t,gh(37)),f<0)return t;else{C=new Vd((Do(0,f,t.length),t.substr(0,f))),n=mt(Gh,K4,28,4,15,1),S=0,u=0;for(E=t.length;ff+2&&yde((pn(f+1,t.length),t.charCodeAt(f+1)),hWe,dWe)&&yde((pn(f+2,t.length),t.charCodeAt(f+2)),hWe,dWe)){if(s=zcn((pn(f+1,t.length),t.charCodeAt(f+1)),(pn(f+2,t.length),t.charCodeAt(f+2))),f+=2,u>0)(s&192)==128?n[S++]=s<<24>>24:u=0;else if(s>=128){if((s&224)==192)n[S++]=s<<24>>24,u=2;else if((s&240)==224)n[S++]=s<<24>>24,u=3;else if((s&248)==240)n[S++]=s<<24>>24,u=4}if(u>0){if(S==u){switch(S){case 2:{qv(C,((n[0]&31)<<6|n[1]&63)&Ds);break}case 3:{qv(C,((n[0]&15)<<12|(n[1]&63)<<6|n[2]&63)&Ds);break}}S=0,u=0}}else{for(g=0;g=2){if((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i==0)s=(Bv(),f=new NW,f),ii((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),s);else if((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i>1){q=new NA((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a));while(q.e!=q.i.gc())Q8(q)}fG(n,b(We((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),0),166))}if(U)for(u=new kn((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a));u.e!=u.i.gc();){s=b(Dn(u),166);for(O=new kn((!s.a&&(s.a=new Os(lf,s,5)),s.a));O.e!=O.i.gc();)C=b(Dn(O),377),S.a=d.Math.max(S.a,C.a),S.b=d.Math.max(S.b,C.b)}for(E=new kn((!t.n&&(t.n=new kt(Dl,t,1,7)),t.n));E.e!=E.i.gc();)if(g=b(Dn(E),135),M=b(It(g,V9),8),!!M&&kf(g,M.a,M.b),U)S.a=d.Math.max(S.a,g.i+g.g),S.b=d.Math.max(S.b,g.j+g.f);return S}function xqt(t,n,s,u,f){var g,E,S;if(CDt(t,n),E=n[0],g=Ko(s.c,0),S=-1,OLe(s))if(u>0){if(E+u>t.length)return!1;S=OQ((Do(0,E+u,t.length),t.substr(0,E+u)),n)}else S=OQ(t,n);switch(g){case 71:return S=O4(t,E,Ce(Te(or,1),Bt,2,6,[uYt,hYt]),n),f.e=S,!0;case 77:return B4n(t,n,f,S,E);case 76:return F4n(t,n,f,S,E);case 69:return RSn(t,n,E,f);case 99:return ISn(t,n,E,f);case 97:return S=O4(t,E,Ce(Te(or,1),Bt,2,6,["AM","PM"]),n),f.b=S,!0;case 121:return $4n(t,n,E,S,s,f);case 100:if(S<=0)return!1;return f.c=S,!0;case 83:if(S<0)return!1;return qyn(S,E,n[0],f);case 104:S==12&&(S=0);case 75:case 72:if(S<0)return!1;return f.f=S,f.g=!1,!0;case 107:if(S<0)return!1;return f.f=S,f.g=!0,!0;case 109:if(S<0)return!1;return f.j=S,!0;case 115:if(S<0)return!1;return f.n=S,!0;case 90:if(Exr[C]&&(de=C);for(U=new me(t.a.b);U.a1){if(f=ICn(n),U=g.g,ae=b(It(n,N9),107),ue=rt(ht(It(n,rte))),(!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i>1&&rt(ht(It(n,(w1(),hye))))!=Wa&&(g.c+(ae.b+ae.c))/(g.b+(ae.d+ae.a))1&&rt(ht(It(n,(w1(),uye))))!=Wa&&(g.c+(ae.b+ae.c))/(g.b+(ae.d+ae.a))>ue&&Ta(f,(w1(),qx),d.Math.max(rt(ht(It(n,O9))),rt(ht(It(f,qx)))-rt(ht(It(n,uye))))),re=new GRe(u,M),C=qqt(re,f,q),O=C.g,O>=U&&O==O){for(E=0;E<(!f.a&&(f.a=new kt(ra,f,10,11)),f.a).i;E++)yGt(t,b(We((!f.a&&(f.a=new kt(ra,f,10,11)),f.a),E),27),b(We((!n.a&&(n.a=new kt(ra,n,10,11)),n.a),E),27));ZDt(n,re),Mdn(g,C.c),Ldn(g,C.b)}--S}Ta(n,(w1(),IN),g.b),Ta(n,V5,g.c),s.Vg()}function xIn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be;n.Ug("Interactive node layering",1),s=new Ut;for(q=new me(t.a);q.a=S){Pn(Be.b>0),Be.a.Xb(Be.c=--Be.b);break}else if(de.a>C)if(!u)Gt(de.b,M),de.c=d.Math.min(de.c,C),de.a=d.Math.max(de.a,S),u=de;else Us(u.b,de.b),u.a=d.Math.max(u.a,de.a),Nd(Be);if(!u)u=new _kt,u.c=C,u.a=S,BT(Be,u),Gt(u.b,M)}E=t.b,O=0;for(xe=new me(s);xe.are){if(g)al(Ot,q),al(xr,$t(O.b-1));Ri=s.b,ts+=q+n,q=0,M=d.Math.max(M,s.b+s.c+Rn)}eh(S,Ri),th(S,ts),M=d.Math.max(M,Ri+Rn+s.c),q=d.Math.max(q,U),Ri+=Rn+n}if(M=d.Math.max(M,u),Kr=ts+q+s.a,KrMm,wr=d.Math.abs(q.b-ae.b)>Mm,(!s&&xr&&wr||s&&(xr||wr))&&Oi(de.a,et);if(Po(de.a,u),u.b==0?q=et:q=(Pn(u.b!=0),b(u.c.b.c,8)),h1n(re,U,ue),Q9t(f)==Wt){if(zo(Wt.i)!=f.a)ue=new Oo,YMe(ue,zo(Wt.i),Be);At(de,Z1e,ue)}Wwn(re,de,Be),M.a.zc(re,M)}tl(de,wt),ko(de,Wt)}for(O=M.a.ec().Kc();O.Ob();)C=b(O.Pb(),18),tl(C,null),ko(C,null);n.Vg()}function AIn(t,n){var s,u,f,g,E,S,C,O,M,U,q;f=b(ce(t,(Oc(),OS)),88),M=f==(Ms(),Kl)||f==sc?Vg:sc,s=b(uc(pa(new Pr(null,new Gr(t.b,16)),new wvt),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15),C=b(uc(ec(s.Oc(),new GCt(n)),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc]))),15),C.Gc(b(uc(ec(s.Oc(),new zCt(n)),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc]))),16)),C.jd(new VCt(M)),q=new by(new HCt(f)),u=new Zn;for(S=C.Kc();S.Ob();)if(E=b(S.Pb(),240),O=b(E.a,40),er(Jt(E.c)))q.a.zc(O,(an(),g_))==null,new jI(q.a.Zc(O,!1)).a.gc()>0&&Ki(u,O,b(new jI(q.a.Zc(O,!1)).a.Vc(),40)),new jI(q.a.ad(O,!0)).a.gc()>1&&Ki(u,tFt(q,O),O);else{if(new jI(q.a.Zc(O,!1)).a.gc()>0)g=b(new jI(q.a.Zc(O,!1)).a.Vc(),40),it(g)===it(Jl(wl(u.f,O)))&&b(ce(O,(Ma(),Pbe)),15).Fc(g);if(new jI(q.a.ad(O,!0)).a.gc()>1)U=tFt(q,O),it(Jl(wl(u.f,U)))===it(O)&&b(ce(U,(Ma(),Pbe)),15).Fc(O);q.a.Bc(O)!=null}}function Cqt(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;if(t.gc()==1)return b(t.Xb(0),235);else if(t.gc()<=0)return new rX;for(f=t.Kc();f.Ob();){s=b(f.Pb(),235),ae=0,M=sa,U=sa,C=Qo,O=Qo;for(re=new me(s.e);re.aS)Ve=0,et+=E+xe,E=0;e3n(ue,s,Ve,et),n=d.Math.max(n,Ve+de.a),E=d.Math.max(E,de.b),Ve+=de.a+xe}return ue}function RIn(t){dDe();var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(t==null)return null;if(g=fX(t),ae=nyn(g),ae%4!=0)return null;if(ue=ae/4|0,ue==0)return mt(Gh,K4,28,0,15,1);U=null,n=0,s=0,u=0,f=0,E=0,S=0,C=0,O=0,re=0,q=0,M=0,U=mt(Gh,K4,28,ue*3,15,1);for(;re>4)<<24>>24,U[q++]=((s&15)<<4|u>>2&15)<<24>>24,U[q++]=(u<<6|f)<<24>>24}if(!r$(E=g[M++])||!r$(S=g[M++]))return null;if(n=jg[E],s=jg[S],C=g[M++],O=g[M++],jg[C]==-1||jg[O]==-1)if(C==61&&O==61){if((s&15)!=0)return null;return de=mt(Gh,K4,28,re*3+1,15,1),au(U,0,de,0,re*3),de[q]=(n<<2|s>>4)<<24>>24,de}else if(C!=61&&O==61){if(u=jg[C],(u&3)!=0)return null;return de=mt(Gh,K4,28,re*3+2,15,1),au(U,0,de,0,re*3),de[q++]=(n<<2|s>>4)<<24>>24,de[q]=((s&15)<<4|u>>2&15)<<24>>24,de}else return null;else u=jg[C],f=jg[O],U[q++]=(n<<2|s>>4)<<24>>24,U[q++]=((s&15)<<4|u>>2&15)<<24>>24,U[q++]=(u<<6|f)<<24>>24;return U}function IIn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt;n.Ug(yWt,1),ae=b(ce(t,(Qt(),$b)),223);for(f=new me(t.b);f.a=2){ue=!0,q=new me(g.j),s=b(ge(q),12),re=null;while(q.a0){if(u=U.gc(),O=Ks(d.Math.floor((u+1)/2))-1,f=Ks(d.Math.ceil((u+1)/2))-1,n.o==Gg){for(M=f;M>=O;M--)if(n.a[et.p]==et){if(ue=b(U.Xb(M),42),ae=b(ue.a,10),!z0(s,ue.b)&&re>t.b.e[ae.p])n.a[ae.p]=et,n.g[et.p]=n.g[ae.p],n.a[et.p]=n.g[et.p],n.f[n.g[et.p].p]=(an(),er(n.f[n.g[et.p].p])&et.k==(bn(),mo)?!0:!1),re=t.b.e[ae.p]}}else for(M=O;M<=f;M++)if(n.a[et.p]==et){if(xe=b(U.Xb(M),42),de=b(xe.a,10),!z0(s,xe.b)&&re0)f=b(nr(de.c.a,Ot-1),10),E=t.i[f.p],xr=d.Math.ceil(c4(t.n,f,de)),g=wt.a.e-de.d.d-(E.a.e+f.o.b+f.d.a)-xr;if(O=Wa,Ot0&&Wt.a.e.e-Wt.a.a-(Wt.b.e.e-Wt.b.a)<0,ae=Ve.a.e.e-Ve.a.a-(Ve.b.e.e-Ve.b.a)<0&&Wt.a.e.e-Wt.a.a-(Wt.b.e.e-Wt.b.a)>0,re=Ve.a.e.e+Ve.b.aWt.b.e.e+Wt.a.a,et=0,!ue&&!ae&&(q?g+U>0?et=U:O-u>0&&(et=u):re&&(g+S>0?et=S:O-Be>0&&(et=Be))),wt.a.e+=et,wt.b&&(wt.d.e+=et),!1}function Aqt(t,n,s){var u,f,g,E,S,C,O,M,U,q;if(u=new If(n.Lf().a,n.Lf().b,n.Mf().a,n.Mf().b),f=new IA,t.c)for(E=new me(n.Rf());E.aO&&(u.a+=rIt(mt(Qf,Om,28,-O,15,1))),u.a+="Is",ym(C,gh(32))>=0)for(f=0;f=u.o.b/2}else Be=!U;if(Be)if(xe=b(ce(u,(Pt(),G5)),15),!xe)g=new Ut,At(u,G5,g);else if(q)g=xe;else if(f=b(ce(u,P5),15),!f)g=new Ut,At(u,P5,g);else xe.gc()<=f.gc()?g=xe:g=f;else if(f=b(ce(u,(Pt(),P5)),15),!f)g=new Ut,At(u,P5,g);else if(U)g=f;else if(xe=b(ce(u,G5),15),!xe)g=new Ut,At(u,G5,g);else f.gc()<=xe.gc()?g=f:g=xe;if(g.Fc(t),At(t,(Pt(),dee),s),n.d==s)ko(n,null),s.e.c.length+s.g.c.length==0&&Ec(s,null),j1n(s);else tl(n,null),s.e.c.length+s.g.c.length==0&&Ec(s,null);Hd(n.a)}function MIn(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts;s.Ug("MinWidth layering",1),re=n.b,Wt=n.a,ts=b(ce(n,(Qt(),Ize)),17).a,S=b(ce(n,Oze),17).a,t.b=rt(ht(ce(n,p0))),t.d=Wa;for(et=new me(Wt);et.a0){if(O=0,!!de&&(O+=S),O+=(wr-1)*E,!!Ve&&(O+=S),xr&&!!Ve&&(O=d.Math.max(O,e4n(Ve,E,Be,Wt))),O=t.a)u=mAn(t,Be),M=d.Math.max(M,u.b),et=d.Math.max(et,u.d),Gt(S,new js(Be,u));xr=new Ut;for(O=0;O0),de.a.Xb(de.c=--de.b),wr=new gu(t.b),BT(de,wr),Pn(de.b0){q=M<100?null:new Pv(M),O=new pLe(n),ae=O.g,xe=mt(ci,$i,28,M,15,1),u=0,et=new Uw(M);for(f=0;f=0;)if(re!=null?da(re,ae[C]):it(re)===it(ae[C])){if(xe.length<=u)de=xe,xe=mt(ci,$i,28,2*xe.length,15,1),au(de,0,xe,0,u);xe[u++]=f,ii(et,ae[C]);break e}if(re=re,it(re)===it(S))break}}if(O=et,ae=et.g,M=u,u>xe.length)de=xe,xe=mt(ci,$i,28,u,15,1),au(de,0,xe,0,u);if(u>0){Ve=!0;for(g=0;g=0;)l5(t,xe[E]);if(u!=M){for(f=M;--f>=u;)l5(O,f);de=xe,xe=mt(ci,$i,28,u,15,1),au(de,0,xe,0,u)}n=O}}}else{n=Q_n(t,n);for(f=t.i;--f>=0;)if(n.Hc(t.g[f]))l5(t,f),Ve=!0}if(Ve){if(xe!=null){s=n.gc(),U=s==1?g8(t,4,n.Kc().Pb(),null,xe[0],ue):g8(t,6,n,xe,xe[0],ue),q=s<100?null:new Pv(s);for(f=n.Kc();f.Ob();)re=f.Pb(),q=n6e(t,b(re,76),q);if(!q)ha(t.e,U);else q.nj(U),q.oj()}else{q=non(n.gc());for(f=n.Kc();f.Ob();)re=f.Pb(),q=n6e(t,b(re,76),q);!!q&&q.oj()}return!0}else return!1}function BIn(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve;s=new WFt(n),s.a||h3n(n),O=ckn(n),C=new Pw,de=new Kzt;for(ue=new me(n.a);ue.a0||s.o==Gg&&f=s}function $In(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn;Ve=n,Be=new Pw,et=new Pw,M=$w(Ve,nFe),u=new rLt(t,s,Be,et),aSn(u.a,u.b,u.c,u.d,M),C=(Wt=Be.i,!Wt?Be.i=new d4(Be,Be.c):Wt);for(wr=C.Kc();wr.Ob();){xr=b(wr.Pb(),166),f=b(_a(Be,xr),21);for(ue=f.Kc();ue.Ob();)if(ae=ue.Pb(),wt=b(_4(t.d,ae),166),wt)S=(!xr.e&&(xr.e=new Wr(Ha,xr,10,9)),xr.e),ii(S,wt);else throw E=yb(Ve,Fm),q=Wjt+ae+jjt+E,re=q+JO,_e(new mm(re))}O=(Ot=et.i,!Ot?et.i=new d4(et,et.c):Ot);for(Kr=O.Kc();Kr.Ob();){tn=b(Kr.Pb(),166),g=b(_a(et,tn),21);for(xe=g.Kc();xe.Ob();)if(de=xe.Pb(),wt=b(_4(t.d,de),166),wt)U=(!tn.g&&(tn.g=new Wr(Ha,tn,9,10)),tn.g),ii(U,wt);else throw E=yb(Ve,Fm),q=Wjt+de+jjt+E,re=q+JO,_e(new mm(re))}if(!s.b&&(s.b=new Wr(qn,s,4,7)),s.b.i!=0&&(!s.c&&(s.c=new Wr(qn,s,5,8)),s.c.i!=0)&&(!s.b&&(s.b=new Wr(qn,s,4,7)),s.b.i<=1&&(!s.c&&(s.c=new Wr(qn,s,5,8)),s.c.i<=1))&&(!s.a&&(s.a=new kt(Ha,s,6,6)),s.a).i==1){if(Rn=b(We((!s.a&&(s.a=new kt(Ha,s,6,6)),s.a),0),166),!ofe(Rn)&&!lfe(Rn))AX(Rn,b(We((!s.b&&(s.b=new Wr(qn,s,4,7)),s.b),0),84)),RX(Rn,b(We((!s.c&&(s.c=new Wr(qn,s,5,8)),s.c),0),84))}}function UIn(t){var n,s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;for(Ve=t.a,et=0,wt=Ve.length;et0)U=b(nr(q.c.a,E-1),10),xr=c4(t.b,q,U),de=q.n.b-q.d.d-(U.n.b+U.o.b+U.d.a+xr);else de=q.n.b-q.d.d;if(O=d.Math.min(de,O),E1&&(E=d.Math.min(E,d.Math.abs(b(Gf(S.a,1),8).b-M.b)))}}}else for(ue=new me(n.j);ue.af)g=q.a-f,E=sa,u.c.length=0,f=q.a;if(q.a>=f)rn(u.c,S),S.a.b>1&&(E=d.Math.min(E,d.Math.abs(b(Gf(S.a,S.a.b-2),8).b-q.b)))}}if(u.c.length!=0&&g>n.o.a/2&&E>n.o.b/2){re=new iu,Ec(re,n),Xs(re,(Ht(),gn)),re.n.a=n.o.a/2,xe=new iu,Ec(xe,n),Xs(xe,Kn),xe.n.a=n.o.a/2,xe.n.b=n.o.b;for(C=new me(u);C.a=O.b?tl(S,xe):tl(S,re);else O=b(Ocn(S.a),8),de=S.a.b==0?Tg(S.c):b(e0(S.a),8),de.b>=O.b?ko(S,xe):ko(S,re);U=b(ce(S,(Qt(),jl)),75),!!U&&tx(U,O,!0)}n.n.a=f-n.o.a/2}}function zIn(t,n,s){var u,f,g,E,S,C,O,M,U,q;for(S=ti(t.b,0);S.b!=S.d.c;){if(E=b(Jn(S),40),Br(E.c,UZ))continue;O=fxn(E,t),n==(Ms(),Kl)||n==sc?ks(O,new Wvt):ks(O,new jvt),C=O.c.length;for(u=0;u=0?re=i5(S):re=FU(i5(S)),t.qf(EN,re);if(O=new Oo,q=!1,t.pf(CS))kIe(O,b(t.of(CS),8)),q=!0;else Zan(O,E.a/2,E.b/2);switch(re.g){case 4:At(M,sh,(Uf(),__)),At(M,pee,(K2(),ak)),M.o.b=E.b,ue<0&&(M.o.a=-ue),Xs(U,(Ht(),Cn)),q||(O.a=E.a),O.a-=E.a;break;case 2:At(M,sh,(Uf(),Mx)),At(M,pee,(K2(),pN)),M.o.b=E.b,ue<0&&(M.o.a=-ue),Xs(U,(Ht(),yn)),q||(O.a=0);break;case 1:At(M,mE,(Sb(),ok)),M.o.a=E.a,ue<0&&(M.o.b=-ue),Xs(U,(Ht(),Kn)),q||(O.b=E.b),O.b-=E.b;break;case 3:At(M,mE,(Sb(),D5)),M.o.a=E.a,ue<0&&(M.o.b=-ue),Xs(U,(Ht(),gn)),q||(O.b=0)}if(kIe(U.n,O),At(M,CS,O),n==RE||n==B1||n==xu){if(ae=0,n==RE&&t.pf(Yy))switch(re.g){case 1:case 2:ae=b(t.of(Yy),17).a;break;case 3:case 4:ae=-b(t.of(Yy),17).a}else switch(re.g){case 4:case 2:ae=g.b,n==B1&&(ae/=f.b);break;case 1:case 3:ae=g.a,n==B1&&(ae/=f.a)}At(M,ES,ae)}return At(M,Pc,re),M}function VIn(){Z5e();function t(u){var f=this;this.dispatch=function(g){var E=g.data;switch(E.cmd){case"algorithms":var S=v7e((Hr(),new WI(new hb(O_.b))));u.postMessage({id:E.id,data:S});break;case"categories":var C=v7e((Hr(),new WI(new hb(O_.c))));u.postMessage({id:E.id,data:C});break;case"options":var O=v7e((Hr(),new WI(new hb(O_.d))));u.postMessage({id:E.id,data:O});break;case"register":Y5n(E.algorithms),u.postMessage({id:E.id});break;case"layout":EAn(E.graph,E.layoutOptions||{},E.options||{}),u.postMessage({id:E.id,data:E.graph});break}},this.saveDispatch=function(g){try{f.dispatch(g)}catch(E){u.postMessage({id:g.data.id,error:E})}}}function n(u){var f=this;this.dispatcher=new t({postMessage:function(g){f.onmessage({data:g})}}),this.postMessage=function(g){setTimeout(function(){f.dispatcher.saveDispatch({data:g})},0)}}if(typeof document===g0e&&typeof self!==g0e){var s=new t(self);self.onmessage=s.saveDispatch}else if(typeof o!==g0e&&o.exports)Object.defineProperty(l,"__esModule",{value:!0}),o.exports={default:n,Worker:n}}function Mqt(t,n,s){var u,f,g,E,S,C,O,M,U,q;M=new Ib(s),nc(M,n),At(M,(Pt(),Ea),n),M.o.a=n.g,M.o.b=n.f,M.n.a=n.i,M.n.b=n.j,Gt(s.a,M),Ki(t.a,n,M),((!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i!=0||er(Jt(It(n,(Qt(),Bx)))))&&At(M,CGe,(an(),!0)),O=b(ce(s,Tu),21),U=b(ce(M,(Qt(),ms)),101),U==(Ao(),A_)?At(M,ms,qg):U!=qg&&O.Fc((Tl(),bN)),q=0,u=b(ce(s,nf),88);for(C=new kn((!n.c&&(n.c=new kt(ld,n,9,9)),n.c));C.e!=C.i.gc();)S=b(Dn(C),123),f=Ya(n),(it(It(f,L1))!==it((Cm(),Wy))||it(It(f,yE))===it((My(),fN))||it(It(f,yE))===it((My(),dN))||er(Jt(It(f,SS)))||it(It(f,Dx))!==it((Z2(),Rx))||it(It(f,E_))===it((_p(),RS))||it(It(f,E_))===it((_p(),zx))||it(It(f,_E))===it(($y(),xN))||it(It(f,_E))===it(($y(),CN)))&&!er(Jt(It(n,Eee)))&&Ta(S,Aa,$t(q++)),er(Jt(It(S,wE)))||JRn(t,S,M,O,u,U);for(E=new kn((!n.n&&(n.n=new kt(Dl,n,1,7)),n.n));E.e!=E.i.gc();)g=b(Dn(E),135),!er(Jt(It(g,wE)))&&!!g.a&&Gt(M.b,Mde(g));if(er(Jt(ce(M,h9)))&&O.Fc((Tl(),cee)),er(Jt(ce(M,xee))))O.Fc((Tl(),uee)),O.Fc(a9),At(M,ms,qg);return M}function Ipe(t,n,s,u,f,g,E){var S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts;ue=0,tn=0;for(O=new me(t.b);O.aue){if(g)al(Ot,re),al(xr,$t(M.b-1)),Gt(t.d,ae),S.c.length=0;Ri=s.b,ts+=re+n,re=0,U=d.Math.max(U,s.b+s.c+Rn)}rn(S.c,C),$Ft(C,Ri,ts),U=d.Math.max(U,Ri+Rn+s.c),re=d.Math.max(re,q),Ri+=Rn+n,ae=C}if(Us(t.a,S),Gt(t.d,b(nr(S,S.c.length-1),163)),U=d.Math.max(U,u),Kr=ts+re+s.a,Krf.d.d+f.d.a)M.f.d=!0;else M.f.d=!0,M.f.a=!0}u.b!=u.d.c&&(n=s)}if(M)if(g=b(An(t.f,E.d.i),60),n.bg.d.d+g.d.a)M.f.d=!0;else M.f.d=!0,M.f.a=!0}for(S=new Nn(Mn(co(re).a.Kc(),new L));ri(S);)if(E=b(Gn(S),18),E.a.b!=0){if(n=b(e0(E.a),8),E.d.j==(Ht(),gn))de=new hD(n,new Dt(n.a,f.d.d),f,E),de.f.a=!0,de.a=E.d,rn(ue.c,de);if(E.d.j==Kn)de=new hD(n,new Dt(n.a,f.d.d+f.d.a),f,E),de.f.d=!0,de.a=E.d,rn(ue.c,de)}}}return ue}function KIn(t,n,s){var u,f,g,E,S,C,O,M,U,q;C=new Ut,U=n.length,E=ILe(s);for(O=0;O=ae){if(Be>ae)re.c.length=0,ae=Be;rn(re.c,E)}if(re.c.length!=0)q=b(nr(re,gQ(n,re.c.length)),131),Kr.a.Bc(q)!=null,q.s=ue++,A8e(q,wr,Ot),re.c.length=0}et=t.c.length+1;for(S=new me(t);S.atn.s){if(Nd(s),fh(tn.i,u),u.c>0)u.a=tn,Gt(tn.t,u),u.b=Wt,Gt(Wt.i,u)}}}function Dqt(t,n,s,u,f){var g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr;ue=new Gu(n.b),et=new Gu(n.b),q=new Gu(n.b),xr=new Gu(n.b),de=new Gu(n.b);for(Wt=ti(n,0);Wt.b!=Wt.d.c;){wt=b(Jn(Wt),12);for(S=new me(wt.g);S.a0,xe=wt.g.c.length>0,O&&xe?rn(q.c,wt):O?rn(ue.c,wt):xe&&rn(et.c,wt);for(ae=new me(ue);ae.aBe.nh()-O.b&&(q=Be.nh()-O.b),re>Be.oh()-O.d&&(re=Be.oh()-O.d),M0){for(Ve=ti(t.f,0);Ve.b!=Ve.d.c;)Be=b(Jn(Ve),10),Be.p+=q-t.e;WMe(t),Hd(t.f),z8e(t,u,re)}else{Oi(t.f,re),re.p=u,t.e=d.Math.max(t.e,u);for(g=new Nn(Mn(co(re).a.Kc(),new L));ri(g);)if(f=b(Gn(g),18),!f.c.i.c&&f.c.i.k==(bn(),Jc))Oi(t.f,f.c.i),f.c.i.p=u-1;t.c=u}else if(WMe(t),Hd(t.f),u=0,ri(new Nn(Mn(co(re).a.Kc(),new L))))q=0,q=HFt(q,re),u=q+2,z8e(t,u,re);else Oi(t.f,re),re.p=0,t.e=d.Math.max(t.e,0),t.b=b(nr(t.d.b,0),30),t.c=0;t.f.b==0||WMe(t),t.d.a.c.length=0,xe=new Ut;for(O=new me(t.d.b);O.a=48&&n<=57){u=n-48;while(f=48&&n<=57)if(u=u*10+n-48,u<0)throw _e(new Ti(Ai((yi(),mFe))))}else throw _e(new Ti(Ai((yi(),_Kt))));if(s=u,n==44)if(f>=t.j)throw _e(new Ti(Ai((yi(),wKt))));else if((n=Ko(t.i,f++))>=48&&n<=57){s=n-48;while(f=48&&n<=57)if(s=s*10+n-48,s<0)throw _e(new Ti(Ai((yi(),mFe))));if(u>s)throw _e(new Ti(Ai((yi(),SKt))))}else s=-1;if(n!=125)throw _e(new Ti(Ai((yi(),EKt))));if(t.bm(f))g=(ia(),ia(),++hs,new qT(9,g)),t.d=f+1;else g=(ia(),ia(),++hs,new qT(3,g)),t.d=f;g.Om(u),g.Nm(s),na(t)}}return g}function t6n(t){var n,s,u,f,g;switch(s=b(ce(t,(Pt(),Tu)),21),n=zj(qZt),f=b(ce(t,(Qt(),Px)),346),f==(Cb(),Zy)&&Xd(n,YZt),er(Jt(ce(t,obe)))?Fi(n,(Xo(),f0),(il(),m1e)):Fi(n,(Xo(),su),(il(),m1e)),ce(t,(sX(),P9))!=null&&Xd(n,WZt),(er(Jt(ce(t,kze)))||er(Jt(ce(t,Sze))))&&Lh(n,(Xo(),ac),(il(),wUe)),b(ce(t,nf),88).g){case 2:case 3:case 4:Lh(Fi(n,(Xo(),f0),(il(),TUe)),ac,SUe)}if(s.Hc((Tl(),cee))&&Lh(Fi(Fi(n,(Xo(),f0),(il(),EUe)),wu,vUe),ac,_Ue),it(ce(t,E_))!==it((_p(),Bee))&&Fi(n,(Xo(),su),(il(),$Ue)),s.Hc(hee))Fi(n,(Xo(),f0),(il(),VUe)),Fi(n,O1,GUe),Fi(n,su,zUe);if(it(ce(t,vee))!==it((yO(),i9))&&it(ce(t,$b))!==it((kb(),Zz))&&Lh(n,(Xo(),ac),(il(),LUe)),er(Jt(ce(t,xze)))&&Fi(n,(Xo(),su),(il(),NUe)),er(Jt(ce(t,nbe)))&&Fi(n,(Xo(),su),(il(),HUe)),pCn(t))it(ce(t,Px))===it(Zy)?u=b(ce(t,Tz),299):u=b(ce(t,rbe),299),g=u==(K6(),G1e)?(il(),UUe):(il(),WUe),Fi(n,(Xo(),wu),g);switch(b(ce(t,Jze),388).g){case 1:Fi(n,(Xo(),wu),(il(),qUe));break;case 2:Lh(Fi(Fi(n,(Xo(),su),(il(),gUe)),wu,mUe),ac,bUe)}return it(ce(t,L1))!==it((Cm(),Wy))&&Fi(n,(Xo(),su),(il(),YUe)),n}function $qt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve;if(Zu(t.a,n)){if(z0(b(An(t.a,n),49),s))return 1}else Ki(t.a,n,new Rs);if(Zu(t.a,s)){if(z0(b(An(t.a,s),49),n))return-1}else Ki(t.a,s,new Rs);if(Zu(t.e,n)){if(z0(b(An(t.e,n),49),s))return-1}else Ki(t.e,n,new Rs);if(Zu(t.e,s)){if(z0(b(An(t.a,s),49),n))return 1}else Ki(t.e,s,new Rs);if(t.c==(Cm(),Sbe)||!$a(n,(Pt(),Aa))||!$a(s,(Pt(),Aa))){U=null;for(O=new me(n.j);O.aE?xO(t,n,s):xO(t,s,n),fE?1:0}return u=b(ce(n,(Pt(),Aa)),17).a,g=b(ce(s,Aa),17).a,u>g?xO(t,n,s):xO(t,s,n),ug?1:0}function iS(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(s==null)return null;if(t.a!=n.jk())throw _e(new fn(QO+n.xe()+dS));if(He(n,469)){if(de=Y4n(b(n,685),s),!de)throw _e(new fn(zge+s+"' is not a valid enumerator of '"+n.xe()+"'"));return de}switch(Oy((Ph(),Yo),n).Nl()){case 2:{s=vu(s,!1);break}case 3:{s=vu(s,!0);break}}if(u=Oy(Yo,n).Jl(),u)return u.jk().wi().ti(u,s);if(q=Oy(Yo,n).Ll(),q){de=new Ut;for(O=xde(s),M=0,U=O.length;M1){ae=new NA((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a));while(ae.e!=ae.i.gc())Q8(ae)}E=b(We((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),0),166),de=Ri,Ri>wt+et?de=wt+et:RiOt+ue?xe=Ot+ue:tswt-et&&deOt-ue&&xeRi+Rn?xr=Ri+Rn:wtts+Wt?wr=ts+Wt:OtRi-Rn&&xrts-Wt&&wrs&&(q=s-1),re=av+md(n,24)*IG*U-U/2,re<0?re=1:re>u&&(re=u-1),f=(Bv(),C=new OW,C),wX(f,q),EX(f,re),ii((!E.a&&(E.a=new Os(lf,E,5)),E.a),f)}function Uqt(t){mw(t,new tE(fw(uw(dw(hw(new x2,vd),"ELK Rectangle Packing"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges. The given order of the boxes is always preserved and the main reading direction of the boxes is left to right. The algorithm is divided into two phases. One phase approximates the width in which the rectangles can be placed. The next phase places the rectangles in rows using the previously calculated width as bounding width and bundles rectangles with a similar height in blocks. A compaction step reduces the size of the drawing. Finally, the rectangles are expanded to fill their bounding box and eliminate empty unused spaces."),new k_t))),Ft(t,vd,S5,1.3),Ft(t,vd,zO,(an(),!1)),Ft(t,vd,oS,WHe),Ft(t,vd,vx,15),Ft(t,vd,DZ,jt(iar)),Ft(t,vd,q4,jt(oar)),Ft(t,vd,x5,jt(car)),Ft(t,vd,T5,jt(uar)),Ft(t,vd,VO,jt(sar)),Ft(t,vd,CD,jt(fye)),Ft(t,vd,HO,jt(har)),Ft(t,vd,IBe,jt(QHe)),Ft(t,vd,OBe,jt(XHe)),Ft(t,vd,RBe,jt(gye)),Ft(t,vd,ABe,jt(ZHe)),Ft(t,vd,NBe,jt(YHe)),Ft(t,vd,LBe,jt(pye)),Ft(t,vd,MBe,jt(qHe)),Ft(t,vd,DBe,jt(KHe)),Ft(t,vd,xD,jt(HHe)),Ft(t,vd,BZ,jt(aar)),Ft(t,vd,CBe,jt($z)),Ft(t,vd,xBe,jt(VHe)),Ft(t,vd,kBe,jt(Uz)),Ft(t,vd,TBe,jt(jHe))}function Npe(t,n){bpe();var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri;if(xr=t.e,ae=t.d,f=t.a,xr==0)switch(n){case 0:return"0";case 1:return PO;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return Ot=new Dv,n<0?Ot.a+="0E+":Ot.a+="0E",Ot.a+=-n,Ot.a}if(Ve=ae*10+1+7,et=mt(Qf,Om,28,Ve+1,15,1),s=Ve,ae==1)if(S=f[0],S<0){Ri=io(S,xl);do ue=Ri,Ri=KU(Ri,10),et[--s]=48+gi(bp(ue,nl(Ri,10)))&Ds;while(Kc(Ri,0)!=0)}else{Ri=S;do ue=Ri,Ri=Ri/10|0,et[--s]=48+(ue-Ri*10)&Ds;while(Ri!=0)}else{tn=mt(ci,$i,28,ae,15,1),Rn=ae,au(f,0,tn,0,Rn);e:while(!0){Wt=0;for(O=Rn-1;O>=0;O--)Kr=rl(n0(Wt,32),io(tn[O],xl)),xe=HEn(Kr),tn[O]=gi(xe),Wt=gi(kw(xe,32));Be=gi(Wt),de=s;do et[--s]=48+Be%10&Ds;while((Be=Be/10|0)!=0&&s!=0);u=9-de+s;for(C=0;C0;C++)et[--s]=48;U=Rn-1;for(;tn[U]==0;U--)if(U==0)break e;Rn=U+1}while(et[s]==48)++s}if(re=xr<0,E=Ve-s-n-1,n==0)return re&&(et[--s]=45),yp(et,s,Ve-s);if(n>0&&E>=-6){if(E>=0){M=s+E;for(q=Ve-1;q>=M;q--)et[q+1]=et[q];return et[++M]=46,re&&(et[--s]=45),yp(et,s,Ve-s+1)}for(U=2;U<-E+1;U++)et[--s]=48;return et[--s]=46,et[--s]=48,re&&(et[--s]=45),yp(et,s,Ve-s)}if(wr=s+1,g=Ve,wt=new XC,re&&(wt.a+="-"),g-wr>=1)qv(wt,et[s]),wt.a+=".",wt.a+=yp(et,s+1,Ve-s-1);else wt.a+=yp(et,s,Ve-s);return wt.a+="E",E>0&&(wt.a+="+"),wt.a+=""+E,wt.a}function Gqt(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot;switch(t.c=n,t.g=new Zn,s=(bw(),new cw(t.c)),u=new UW(s),m7e(u),Ve=wi(It(t.c,(QU(),bqe))),C=b(It(t.c,xye),324),wt=b(It(t.c,Cye),437),E=b(It(t.c,pqe),490),et=b(It(t.c,Tye),438),t.j=rt(ht(It(t.c,Car))),S=t.a,C.g){case 0:S=t.a;break;case 1:S=t.b;break;case 2:S=t.i;break;case 3:S=t.e;break;case 4:S=t.f;break;default:throw _e(new fn(YZ+(C.f!=null?C.f:""+C.g)))}if(t.d=new MLt(S,wt,E),At(t.d,(Y6(),JD),Jt(It(t.c,Tar))),t.d.c=er(Jt(It(t.c,gqe))),BK(t.c).i==0)return t.d;for(U=new kn(BK(t.c));U.e!=U.i.gc();){M=b(Dn(U),27),re=M.g/2,q=M.f/2,Ot=new Dt(M.i+re,M.j+q);while(Zu(t.g,Ot))Tw(Ot,(d.Math.random()-0.5)*Mm,(d.Math.random()-0.5)*Mm);ue=b(It(M,(Hi(),NN)),140),de=new jLt(Ot,new If(Ot.a-re-t.j/2-ue.b,Ot.b-q-t.j/2-ue.d,M.g+t.j+(ue.b+ue.c),M.f+t.j+(ue.d+ue.a))),Gt(t.d.i,de),Ki(t.g,Ot,new js(de,M))}switch(et.g){case 0:if(Ve==null)t.d.d=b(nr(t.d.i,0),68);else for(Be=new me(t.d.i);Be.a0?Rn+1:1}for(E=new me(Ot.g);E.a0?Rn+1:1}}t.c[O]==0?Oi(t.e,ue):t.a[O]==0&&Oi(t.f,ue),++O}ae=-1,re=1,U=new Ut,t.d=b(ce(n,(Pt(),U5)),234);while(cf>0){while(t.e.b!=0)ts=b(Sue(t.e),10),t.b[ts.p]=ae--,aDe(t,ts),--cf;while(t.f.b!=0)cd=b(Sue(t.f),10),t.b[cd.p]=re++,aDe(t,cd),--cf;if(cf>0){q=Qo;for(Be=new me(Ve);Be.a=q){if(et>q)U.c.length=0,q=et;rn(U.c,ue)}}M=t.sg(U),t.b[M.p]=re++,aDe(t,M),--cf}}Ri=Ve.c.length+1;for(O=0;Ot.b[Xl])rS(u,!0),At(n,_z,(an(),!0))}}t.a=null,t.c=null,t.b=null,Hd(t.f),Hd(t.e),s.Vg()}function zqt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot;wt=b(We((!t.a&&(t.a=new kt(Ha,t,6,6)),t.a),0),166),M=new Rh,et=new Zn,Ot=QVt(wt),Hu(et.f,wt,Ot),q=new Zn,u=new Va;for(ae=m1(jd(Ce(Te(rf,1),en,20,0,[(!n.d&&(n.d=new Wr(ws,n,8,5)),n.d),(!n.e&&(n.e=new Wr(ws,n,7,4)),n.e)])));ri(ae);){if(re=b(Gn(ae),74),(!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i!=1)throw _e(new fn(Rjt+(!t.a&&(t.a=new kt(Ha,t,6,6)),t.a).i));if(re!=t){if(de=b(We((!re.a&&(re.a=new kt(Ha,re,6,6)),re.a),0),166),cs(u,de,u.c.b,u.c),ue=b(Jl(wl(et.f,de)),13),!ue)ue=QVt(de),Hu(et.f,de,ue);U=s?no(new sl(b(nr(Ot,Ot.c.length-1),8)),b(nr(ue,ue.c.length-1),8)):no(new sl((qr(0,Ot.c.length),b(Ot.c[0],8))),(qr(0,ue.c.length),b(ue.c[0],8))),Hu(q.f,de,U)}}if(u.b!=0){xe=b(nr(Ot,s?Ot.c.length-1:0),8);for(O=1;O1&&cs(M,xe,M.c.b,M.c),Xhe(f);xe=Be}}return M}function Vqt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;s.Ug(zWt,1),tn=b(uc(pa(new Pr(null,new Gr(n,16)),new r_t),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15),M=b(uc(pa(new Pr(null,new Gr(n,16)),new YCt(n)),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc]))),15),ae=b(uc(pa(new Pr(null,new Gr(n,16)),new qCt(n)),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[fc]))),15),ue=mt(Hee,GZ,40,n.gc(),0,1);for(E=0;E=0&&wr=0&&!ue[re]){ue[re]=f,M.gd(S),--S;break}if(re=wr-q,re=0&&!ue[re]){ue[re]=f,M.gd(S),--S;break}}}ae.jd(new n_t);for(C=ue.length-1;C>=0;C--)if(!ue[C]&&!ae.dc())ue[C]=b(ae.Xb(0),40),ae.gd(0);for(O=0;O=0;C--)Oi(s,(qr(C,E.c.length),b(E.c[C],8)));return s}function qqt(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;Ve=rt(ht(It(n,(w1(),qx)))),re=rt(ht(It(n,O9))),q=rt(ht(It(n,ete))),lLe((!n.a&&(n.a=new kt(ra,n,10,11)),n.a)),xe=DHt((!n.a&&(n.a=new kt(ra,n,10,11)),n.a),Ve,t.b);for(de=0;deq&&WU((qr(q,n.c.length),b(n.c[q],186)),M),M=null;while(n.c.length>q&&(qr(q,n.c.length),b(n.c[q],186)).a.c.length==0)fh(n,(qr(q,n.c.length),n.c[q]))}if(!M){--E;continue}if(!er(Jt(b(nr(M.b,0),27).of((Lg(),Uz))))&&T3n(n,ae,g,M,de,s,q,u)){ue=!0;continue}if(de){if(re=ae.b,U=M.f,!er(Jt(b(nr(M.b,0),27).of(Uz)))&&V5n(n,ae,g,M,s,q,u,f)){if(ue=!0,re=t.j){t.a=-1,t.c=1;return}if(n=Ko(t.i,t.d++),t.a=n,t.b==1){switch(n){case 92:if(u=10,t.d>=t.j)throw _e(new Ti(Ai((yi(),JZ))));t.a=Ko(t.i,t.d++);break;case 45:if((t.e&512)==512&&t.d=t.j)break;if(Ko(t.i,t.d)!=63)break;if(++t.d>=t.j)throw _e(new Ti(Ai((yi(),tme))));switch(n=Ko(t.i,t.d++),n){case 58:u=13;break;case 61:u=14;break;case 33:u=15;break;case 91:u=19;break;case 62:u=18;break;case 60:if(t.d>=t.j)throw _e(new Ti(Ai((yi(),tme))));if(n=Ko(t.i,t.d++),n==61)u=16;else if(n==33)u=17;else throw _e(new Ti(Ai((yi(),rKt))));break;case 35:while(t.d=t.j)throw _e(new Ti(Ai((yi(),JZ))));t.a=Ko(t.i,t.d++);break;default:u=0}t.c=u}function h6n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(s.Ug("Process compaction",1),!er(Jt(ce(n,(Oc(),ZVe)))))return;f=b(ce(n,OS),88),re=rt(ht(ce(n,Hbe))),FAn(t,n,f),AIn(n,re/2/2),ae=n.b,q2(ae,new FCt(f));for(O=ti(ae,0);O.b!=O.d.c;)if(C=b(Jn(O),40),!er(Jt(ce(C,(Ma(),T_))))){if(u=ukn(C,f),ue=aAn(C,n),U=0,q=0,u)switch(de=u.e,f.g){case 2:U=de.a-re-C.f.a,ue.e.a-re-C.f.aU&&(U=ue.e.a+ue.f.a+re),q=U+C.f.a;break;case 4:U=de.b-re-C.f.b,ue.e.b-re-C.f.bU&&(U=ue.e.b+ue.f.b+re),q=U+C.f.b}else if(ue)switch(f.g){case 2:U=ue.e.a-re-C.f.a,q=U+C.f.a;break;case 1:U=ue.e.a+ue.f.a+re,q=U+C.f.a;break;case 4:U=ue.e.b-re-C.f.b,q=U+C.f.b;break;case 3:U=ue.e.b+ue.f.b+re,q=U+C.f.b}if(it(ce(n,Vbe))===it((L8(),Lz))){if(g=U,E=q,S=J6(pa(new Pr(null,new Gr(t.a,16)),new k5t(g,E))),S.a!=null)f==(Ms(),Kl)||f==sc?C.e.a=U:C.e.b=U;else f==(Ms(),Kl)||f==jf?S=J6(pa(n9t(new Pr(null,new Gr(t.a,16))),new $Ct(g))):S=J6(pa(n9t(new Pr(null,new Gr(t.a,16))),new UCt(g))),S.a!=null&&(f==Kl||f==sc?C.e.a=rt(ht((Pn(S.a!=null),b(S.a,42)).a)):C.e.b=rt(ht((Pn(S.a!=null),b(S.a,42)).a)));if(S.a!=null){if(M=rc(t.a,(Pn(S.a!=null),S.a),0),M>0&&M!=b(ce(C,Vm),17).a)At(C,HVe,(an(),!0)),At(C,Vm,$t(M))}}else f==(Ms(),Kl)||f==sc?C.e.a=U:C.e.b=U}s.Vg()}function Yqt(t){var n,s,u,f,g,E,S,C,O;if(t.b=1,na(t),n=null,t.c==0&&t.a==94)na(t),n=(ia(),ia(),++hs,new Yd(4)),yu(n,0,tN),S=(++hs,new Yd(4));else S=(ia(),ia(),++hs,new Yd(4));f=!0;while((O=t.c)!=1){if(O==0&&t.a==93&&!f){if(n)mD(n,S),S=n;break}if(s=t.a,u=!1,O==10)switch(s){case 100:case 68:case 119:case 87:case 115:case 83:px(S,CO(s)),u=!0;break;case 105:case 73:case 99:case 67:s=(px(S,CO(s)),-1),s<0&&(u=!0);break;case 112:case 80:if(C=c8e(t,s),!C)throw _e(new Ti(Ai((yi(),rme))));px(S,C),u=!0;break;default:s=H8e(t)}else if(O==24&&!f){if(n)mD(n,S),S=n;if(g=Yqt(t),mD(S,g),t.c!=0||t.a!=93)throw _e(new Ti(Ai((yi(),dKt))));break}if(na(t),!u){if(O==0){if(s==91)throw _e(new Ti(Ai((yi(),pFe))));if(s==93)throw _e(new Ti(Ai((yi(),gFe))));if(s==45&&!f&&t.a!=93)throw _e(new Ti(Ai((yi(),nme))))}if(t.c!=0||t.a!=45||s==45&&f)yu(S,s,s);else{if(na(t),(O=t.c)==1)throw _e(new Ti(Ai((yi(),eJ))));if(O==0&&t.a==93)yu(S,s,s),yu(S,45,45);else if(O==0&&t.a==93||O==24)throw _e(new Ti(Ai((yi(),nme))));else{if(E=t.a,O==0){if(E==91)throw _e(new Ti(Ai((yi(),pFe))));if(E==93)throw _e(new Ti(Ai((yi(),gFe))));if(E==45)throw _e(new Ti(Ai((yi(),nme))))}else O==10&&(E=H8e(t));if(na(t),s>E)throw _e(new Ti(Ai((yi(),gKt))));yu(S,s,E)}}}f=!1}if(t.c==1)throw _e(new Ti(Ai((yi(),eJ))));return N4(S),pD(S),t.b=0,na(t),S}function d6n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt;if(s.Ug("Coffman-Graham Layering",1),n.a.c.length==0){s.Vg();return}wt=b(ce(n,(Qt(),Rze)),17).a,C=0,E=0;for(q=new me(n.a);q.a=wt||!svn(xe,u))&&(u=HNt(n,M)),Lo(xe,u);for(g=new Nn(Mn(co(xe).a.Kc(),new L));ri(g);){if(f=b(Gn(g),18),t.a[f.p])continue;ue=f.c.i,--t.e[ue.p],t.e[ue.p]==0&&BA(bO(re,ue),BO)}}for(O=M.c.length-1;O>=0;--O)Gt(n.b,(qr(O,M.c.length),b(M.c[O],30)));n.a.c.length=0,s.Vg()}function Wqt(t,n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et;et=!1;do{et=!1;for(g=n?new A2(t.a.b).a.gc()-2:1;n?g>=0:gb(ce(de,Aa),17).a)&&(Ve=!1);if(!Ve)continue;C=n?g+1:g-1,S=KOe(t.a,$t(C)),E=!1,Be=!0,u=!1;for(M=ti(S,0);M.b!=M.d.c;)if(O=b(Jn(M),10),$a(O,Aa)){if(O.p!=U.p)E=E|(n?b(ce(O,Aa),17).ab(ce(U,Aa),17).a),Be=!1}else if(!E&&Be){if(O.k==(bn(),Jc)){if(u=!0,n?q=b(Gn(new Nn(Mn(co(O).a.Kc(),new L))),18).c.i:q=b(Gn(new Nn(Mn(Ss(O).a.Kc(),new L))),18).d.i,q==U)n?s=b(Gn(new Nn(Mn(Ss(O).a.Kc(),new L))),18).d.i:s=b(Gn(new Nn(Mn(co(O).a.Kc(),new L))),18).c.i,(n?b(MT(t.a,s),17).a-b(MT(t.a,q),17).a:b(MT(t.a,q),17).a-b(MT(t.a,s),17).a)<=2&&(Be=!1)}}if(u&&Be)n?s=b(Gn(new Nn(Mn(Ss(U).a.Kc(),new L))),18).d.i:s=b(Gn(new Nn(Mn(co(U).a.Kc(),new L))),18).c.i,(n?b(MT(t.a,s),17).a-b(MT(t.a,U),17).a:b(MT(t.a,U),17).a-b(MT(t.a,s),17).a)<=2&&s.k==(bn(),Es)&&(Be=!1);if(E||Be){ue=Tzt(t,U,n);while(ue.a.gc()!=0)ae=b(ue.a.ec().Kc().Pb(),10),ue.a.Bc(ae)!=null,Po(ue,Tzt(t,ae,n));--re,et=!0}}}}while(et)}function f6n(t){fi(t.c,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#decimal"])),fi(t.d,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#integer"])),fi(t.e,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#boolean"])),fi(t.f,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EBoolean",ta,"EBoolean:Object"])),fi(t.i,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#byte"])),fi(t.g,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#hexBinary"])),fi(t.j,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EByte",ta,"EByte:Object"])),fi(t.n,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EChar",ta,"EChar:Object"])),fi(t.t,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#double"])),fi(t.u,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EDouble",ta,"EDouble:Object"])),fi(t.F,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#float"])),fi(t.G,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EFloat",ta,"EFloat:Object"])),fi(t.I,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#int"])),fi(t.J,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EInt",ta,"EInt:Object"])),fi(t.N,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#long"])),fi(t.O,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"ELong",ta,"ELong:Object"])),fi(t.Z,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#short"])),fi(t.$,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"EShort",ta,"EShort:Object"])),fi(t._,Ni,Ce(Te(or,1),Bt,2,6,[Zo,"http://www.w3.org/2001/XMLSchema#string"]))}function p6n(t,n,s,u,f,g,E){var S,C,O,M,U,q,re,ae;if(q=b(u.a,17).a,re=b(u.b,17).a,U=t.b,ae=t.c,S=0,M=0,n==(Ms(),Kl)||n==sc)if(M=p$(BBt(zT(ec(new Pr(null,new Gr(s.b,16)),new a_t),new Uvt))),U.e.b+U.f.b/2>M)O=++re,S=rt(ht(Rd($T(ec(new Pr(null,new Gr(s.b,16)),new I5t(f,O)),new Gvt))));else C=++q,S=rt(ht(Rd($A(ec(new Pr(null,new Gr(s.b,16)),new O5t(f,C)),new zvt))));else if(M=p$(BBt(zT(ec(new Pr(null,new Gr(s.b,16)),new Yvt),new $vt))),U.e.a+U.f.a/2>M)O=++re,S=rt(ht(Rd($T(ec(new Pr(null,new Gr(s.b,16)),new A5t(f,O)),new Vvt))));else C=++q,S=rt(ht(Rd($A(ec(new Pr(null,new Gr(s.b,16)),new R5t(f,C)),new Hvt))));if(n==Kl)al(t.a,new Dt(rt(ht(ce(U,(Ma(),rg))))-f,S)),al(t.a,new Dt(ae.e.a+ae.f.a+f+g,S)),al(t.a,new Dt(ae.e.a+ae.f.a+f+g,ae.e.b+ae.f.b/2)),al(t.a,new Dt(ae.e.a+ae.f.a,ae.e.b+ae.f.b/2));else if(n==sc)al(t.a,new Dt(rt(ht(ce(U,(Ma(),g0))))+f,U.e.b+U.f.b/2)),al(t.a,new Dt(U.e.a+U.f.a+f,S)),al(t.a,new Dt(ae.e.a-f-g,S)),al(t.a,new Dt(ae.e.a-f-g,ae.e.b+ae.f.b/2)),al(t.a,new Dt(ae.e.a,ae.e.b+ae.f.b/2));else if(n==jf)al(t.a,new Dt(S,rt(ht(ce(U,(Ma(),rg))))-f)),al(t.a,new Dt(S,ae.e.b+ae.f.b+f+g)),al(t.a,new Dt(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+f+g)),al(t.a,new Dt(ae.e.a+ae.f.a/2,ae.e.b+ae.f.b+f));else t.a.b==0||(b(e0(t.a),8).b=rt(ht(ce(U,(Ma(),g0))))+f*b(E.b,17).a),al(t.a,new Dt(S,rt(ht(ce(U,(Ma(),g0))))+f*b(E.b,17).a)),al(t.a,new Dt(S,ae.e.b-f*b(E.a,17).a-g));return new js($t(q),$t(re))}function g6n(t){var n,s,u,f,g,E,S,C,O,M,U,q,re;if(E=!0,U=null,u=null,f=null,n=!1,re=hor,O=null,g=null,S=0,C=efe(t,S,fWe,pWe),C=0&&Br(t.substr(S,2),"//"))S+=2,C=efe(t,S,J9,eP),u=(Do(S,C,t.length),t.substr(S,C-S)),S=C;else if(U!=null&&(S==t.length||(pn(S,t.length),t.charCodeAt(S)!=47)))E=!1,C=vIe(t,gh(35),S),C==-1&&(C=t.length),u=(Do(S,C,t.length),t.substr(S,C-S)),S=C;if(!s&&S0&&Ko(M,M.length-1)==58)f=M,S=C}if(SKfe(g))&&(U=g);!U&&(U=(qr(0,de.c.length),b(de.c[0],185)));for(ue=new me(n.b);ue.aU)Kr=0,Rn+=M+Wt,M=0;BVt(wt,E,Kr,Rn),n=d.Math.max(n,Kr+Ot.a),M=d.Math.max(M,Ot.b),Kr+=Ot.a+Wt}et=new Zn,s=new Zn;for(wr=new me(t);wr.a=-1900?1:0,s>=4?Bi(t,Ce(Te(or,1),Bt,2,6,[uYt,hYt])[S]):Bi(t,Ce(Te(or,1),Bt,2,6,["BC","AD"])[S]);break;case 121:Dvn(t,s,u);break;case 77:Jkn(t,s,u);break;case 107:C=f.q.getHours(),C==0?v1(t,24,s):v1(t,C,s);break;case 83:fCn(t,s,f);break;case 69:M=u.q.getDay(),s==5?Bi(t,Ce(Te(or,1),Bt,2,6,["S","M","T","W","T","F","S"])[M]):s==4?Bi(t,Ce(Te(or,1),Bt,2,6,[Zpe,Jpe,e0e,t0e,r0e,n0e,i0e])[M]):Bi(t,Ce(Te(or,1),Bt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[M]);break;case 97:f.q.getHours()>=12&&f.q.getHours()<24?Bi(t,Ce(Te(or,1),Bt,2,6,["AM","PM"])[1]):Bi(t,Ce(Te(or,1),Bt,2,6,["AM","PM"])[0]);break;case 104:U=f.q.getHours()%12,U==0?v1(t,12,s):v1(t,U,s);break;case 75:q=f.q.getHours()%12,v1(t,q,s);break;case 72:re=f.q.getHours(),v1(t,re,s);break;case 99:ae=u.q.getDay(),s==5?Bi(t,Ce(Te(or,1),Bt,2,6,["S","M","T","W","T","F","S"])[ae]):s==4?Bi(t,Ce(Te(or,1),Bt,2,6,[Zpe,Jpe,e0e,t0e,r0e,n0e,i0e])[ae]):s==3?Bi(t,Ce(Te(or,1),Bt,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[ae]):v1(t,ae,1);break;case 76:ue=u.q.getMonth(),s==5?Bi(t,Ce(Te(or,1),Bt,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[ue]):s==4?Bi(t,Ce(Te(or,1),Bt,2,6,[Gpe,zpe,Vpe,Hpe,b5,qpe,Ype,Wpe,jpe,Kpe,Xpe,Qpe])[ue]):s==3?Bi(t,Ce(Te(or,1),Bt,2,6,["Jan","Feb","Mar","Apr",b5,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[ue]):v1(t,ue+1,s);break;case 81:de=u.q.getMonth()/3|0,s<4?Bi(t,Ce(Te(or,1),Bt,2,6,["Q1","Q2","Q3","Q4"])[de]):Bi(t,Ce(Te(or,1),Bt,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[de]);break;case 100:xe=u.q.getDate(),v1(t,xe,s);break;case 109:O=f.q.getMinutes(),v1(t,O,s);break;case 115:E=f.q.getSeconds(),v1(t,E,s);break;case 122:s<4?Bi(t,g.c[0]):Bi(t,g.c[1]);break;case 118:Bi(t,g.b);break;case 90:s<3?Bi(t,sTn(g)):s==3?Bi(t,hTn(g)):Bi(t,dTn(g.a));break;default:return!1}return!0}function FDe(t,n,s,u){var f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri;if(CVt(n),C=b(We((!n.b&&(n.b=new Wr(qn,n,4,7)),n.b),0),84),M=b(We((!n.c&&(n.c=new Wr(qn,n,5,8)),n.c),0),84),S=ic(C),O=ic(M),E=(!n.a&&(n.a=new kt(Ha,n,6,6)),n.a).i==0?null:b(We((!n.a&&(n.a=new kt(Ha,n,6,6)),n.a),0),166),Wt=b(An(t.a,S),10),Kr=b(An(t.a,O),10),xr=null,Rn=null,He(C,193)){if(Ot=b(An(t.a,C),305),He(Ot,12))xr=b(Ot,12);else if(He(Ot,10))Wt=b(Ot,10),xr=b(nr(Wt.j,0),12)}if(He(M,193)){if(tn=b(An(t.a,M),305),He(tn,12))Rn=b(tn,12);else if(He(tn,10))Kr=b(tn,10),Rn=b(nr(Kr.j,0),12)}if(!Wt||!Kr)throw _e(new wA("The source or the target of edge "+n+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));if(ue=new Dw,nc(ue,n),At(ue,(Pt(),Ea),n),At(ue,(Qt(),jl),null),re=b(ce(u,Tu),21),Wt==Kr&&re.Fc((Tl(),s9)),!xr){if(wt=(Sl(),Yu),wr=null,!!E&&a4(b(ce(Wt,ms),101))){if(wr=new Dt(E.j,E.k),mMt(wr,X$(n)),HMt(wr,s),XT(O,S))wt=ad,ua(wr,Wt.n)}xr=kHt(Wt,wr,wt,u)}if(!Rn){if(wt=(Sl(),ad),Ri=null,!!E&&a4(b(ce(Kr,ms),101)))Ri=new Dt(E.b,E.c),mMt(Ri,X$(n)),HMt(Ri,s);Rn=kHt(Kr,Ri,wt,zo(Kr))}tl(ue,xr),ko(ue,Rn),(xr.e.c.length>1||xr.g.c.length>1||Rn.e.c.length>1||Rn.g.c.length>1)&&re.Fc((Tl(),a9));for(q=new kn((!n.n&&(n.n=new kt(Dl,n,1,7)),n.n));q.e!=q.i.gc();)if(U=b(Dn(q),135),!er(Jt(It(U,wE)))&&!!U.a)switch(de=Mde(U),Gt(ue.b,de),b(ce(de,zm),278).g){case 1:case 2:re.Fc((Tl(),mN));break;case 0:re.Fc((Tl(),gN)),At(de,zm,(Rg(),MN))}if(g=b(ce(u,d9),322),xe=b(ce(u,Ree),323),f=g==(x8(),bz)||xe==(q8(),Ebe),!!E&&(!E.a&&(E.a=new Os(lf,E,5)),E.a).i!=0&&f){Be=JU(E),ae=new Rh;for(et=ti(Be,0);et.b!=et.d.c;)Ve=b(Jn(et),8),Oi(ae,new sl(Ve));At(ue,OGe,ae)}return ue}function v6n(t,n,s,u){var f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts;wr=0,tn=0,Wt=new Zn,wt=b(Rd($T(ec(new Pr(null,new Gr(t.b,16)),new qvt),new Jvt)),17).a+1,xr=mt(ci,$i,28,wt,15,1),de=mt(ci,$i,28,wt,15,1);for(ue=0;ue1)for(S=Rn+1;SO.b.e.b*(1-xe)+O.c.e.b*xe)break;if(Ot.gc()>0){if(Ri=O.a.b==0?Uo(O.b.e):b(e0(O.a),8),Ve=ua(Uo(b(Ot.Xb(Ot.gc()-1),40).e),b(Ot.Xb(Ot.gc()-1),40).f),q=ua(Uo(b(Ot.Xb(0),40).e),b(Ot.Xb(0),40).f),ae>=Ot.gc()-1&&Ri.b>Ve.b&&O.c.e.b>Ve.b)continue;if(ae<=0&&Ri.bO.b.e.a*(1-xe)+O.c.e.a*xe)break;if(Ot.gc()>0){if(Ri=O.a.b==0?Uo(O.b.e):b(e0(O.a),8),Ve=ua(Uo(b(Ot.Xb(Ot.gc()-1),40).e),b(Ot.Xb(Ot.gc()-1),40).f),q=ua(Uo(b(Ot.Xb(0),40).e),b(Ot.Xb(0),40).f),ae>=Ot.gc()-1&&Ri.a>Ve.a&&O.c.e.a>Ve.a)continue;if(ae<=0&&Ri.a=rt(ht(ce(t,(Ma(),WVe))))&&++tn;else re.f&&re.d.e.a<=rt(ht(ce(t,(Ma(),$be))))&&++wr,re.g&&re.c.e.a+re.c.f.a>=rt(ht(ce(t,(Ma(),YVe))))&&++tn}else if(et==0)s8e(O);else if(et<0)++xr[Rn],++de[ts],Kr=p6n(O,n,t,new js($t(wr),$t(tn)),s,u,new js($t(de[ts]),$t(xr[Rn]))),wr=b(Kr.a,17).a,tn=b(Kr.b,17).a}function _6n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be;if(u=n,C=s,t.b&&u.j==(Ht(),yn)&&C.j==(Ht(),yn))Be=u,u=C,C=Be;if(Zu(t.a,u)){if(z0(b(An(t.a,u),49),C))return 1}else Ki(t.a,u,new Rs);if(Zu(t.a,C)){if(z0(b(An(t.a,C),49),u))return-1}else Ki(t.a,C,new Rs);if(Zu(t.d,u)){if(z0(b(An(t.d,u),49),C))return-1}else Ki(t.d,u,new Rs);if(Zu(t.d,C)){if(z0(b(An(t.a,C),49),u))return 1}else Ki(t.d,C,new Rs);if(u.j!=C.j)return xe=lan(u.j,C.j),xe==-1?zf(t,C,u):zf(t,u,C),xe;if(u.e.c.length!=0&&C.e.c.length!=0){if(t.b){if(xe=hBt(u,C),xe!=0)return xe==-1?zf(t,C,u):xe==1&&zf(t,u,C),xe}if(g=b(nr(u.e,0),18).c.i,M=b(nr(C.e,0),18).c.i,g==M)return f=b(ce(b(nr(u.e,0),18),(Pt(),Aa)),17).a,O=b(ce(b(nr(C.e,0),18),Aa),17).a,f>O?zf(t,u,C):zf(t,C,u),fO?1:0;for(ae=t.c,ue=0,de=ae.length;ueO?zf(t,u,C):zf(t,C,u),fO?1:0;if(t.b){if(xe=hBt(u,C),xe!=0)return xe==-1?zf(t,C,u):xe==1&&zf(t,u,C),xe}if(E=0,U=0,$a(b(nr(u.g,0),18),Aa)&&(E=b(ce(b(nr(u.g,0),18),Aa),17).a),$a(b(nr(C.g,0),18),Aa)&&(U=b(ce(b(nr(u.g,0),18),Aa),17).a),!!S&&S==q){if(er(Jt(ce(b(nr(u.g,0),18),Ug)))&&!er(Jt(ce(b(nr(C.g,0),18),Ug))))return zf(t,u,C),1;else if(!er(Jt(ce(b(nr(u.g,0),18),Ug)))&&er(Jt(ce(b(nr(C.g,0),18),Ug))))return zf(t,C,u),-1;return E>U?zf(t,u,C):zf(t,C,u),EU?1:0}if(t.f)t.f._b(S)&&(E=b(t.f.xc(S),17).a),t.f._b(q)&&(U=b(t.f.xc(q),17).a);return E>U?zf(t,u,C):zf(t,C,u),EU?1:0}if(u.e.c.length!=0&&C.g.c.length!=0)return zf(t,u,C),1;else if(u.g.c.length!=0&&C.e.c.length!=0)return zf(t,C,u),-1;else if($a(u,(Pt(),Aa))&&$a(C,Aa))return f=b(ce(u,Aa),17).a,O=b(ce(C,Aa),17).a,f>O?zf(t,u,C):zf(t,C,u),fO?1:0;else return zf(t,C,u),-1}function E6n(t){if(t.gb)return;t.gb=!0,t.b=Ic(t,0),us(t.b,18),Ga(t.b,19),t.a=Ic(t,1),us(t.a,1),Ga(t.a,2),Ga(t.a,3),Ga(t.a,4),Ga(t.a,5),t.o=Ic(t,2),us(t.o,8),us(t.o,9),Ga(t.o,10),Ga(t.o,11),Ga(t.o,12),Ga(t.o,13),Ga(t.o,14),Ga(t.o,15),Ga(t.o,16),Ga(t.o,17),Ga(t.o,18),Ga(t.o,19),Ga(t.o,20),Ga(t.o,21),Ga(t.o,22),Ga(t.o,23),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),ql(t.o),t.p=Ic(t,3),us(t.p,2),us(t.p,3),us(t.p,4),us(t.p,5),Ga(t.p,6),Ga(t.p,7),ql(t.p),ql(t.p),t.q=Ic(t,4),us(t.q,8),t.v=Ic(t,5),Ga(t.v,9),ql(t.v),ql(t.v),ql(t.v),t.w=Ic(t,6),us(t.w,2),us(t.w,3),us(t.w,4),Ga(t.w,5),t.B=Ic(t,7),Ga(t.B,1),ql(t.B),ql(t.B),ql(t.B),t.Q=Ic(t,8),Ga(t.Q,0),ql(t.Q),t.R=Ic(t,9),us(t.R,1),t.S=Ic(t,10),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),ql(t.S),t.T=Ic(t,11),Ga(t.T,10),Ga(t.T,11),Ga(t.T,12),Ga(t.T,13),Ga(t.T,14),ql(t.T),ql(t.T),t.U=Ic(t,12),us(t.U,2),us(t.U,3),Ga(t.U,4),Ga(t.U,5),Ga(t.U,6),Ga(t.U,7),ql(t.U),t.V=Ic(t,13),Ga(t.V,10),t.W=Ic(t,14),us(t.W,18),us(t.W,19),us(t.W,20),Ga(t.W,21),Ga(t.W,22),Ga(t.W,23),t.bb=Ic(t,15),us(t.bb,10),us(t.bb,11),us(t.bb,12),us(t.bb,13),us(t.bb,14),us(t.bb,15),us(t.bb,16),Ga(t.bb,17),ql(t.bb),ql(t.bb),t.eb=Ic(t,16),us(t.eb,2),us(t.eb,3),us(t.eb,4),us(t.eb,5),us(t.eb,6),us(t.eb,7),Ga(t.eb,8),Ga(t.eb,9),t.ab=Ic(t,17),us(t.ab,0),us(t.ab,1),t.H=Ic(t,18),Ga(t.H,0),Ga(t.H,1),Ga(t.H,2),Ga(t.H,3),Ga(t.H,4),Ga(t.H,5),ql(t.H),t.db=Ic(t,19),Ga(t.db,2),t.c=Qi(t,20),t.d=Qi(t,21),t.e=Qi(t,22),t.f=Qi(t,23),t.i=Qi(t,24),t.g=Qi(t,25),t.j=Qi(t,26),t.k=Qi(t,27),t.n=Qi(t,28),t.r=Qi(t,29),t.s=Qi(t,30),t.t=Qi(t,31),t.u=Qi(t,32),t.fb=Qi(t,33),t.A=Qi(t,34),t.C=Qi(t,35),t.D=Qi(t,36),t.F=Qi(t,37),t.G=Qi(t,38),t.I=Qi(t,39),t.J=Qi(t,40),t.L=Qi(t,41),t.M=Qi(t,42),t.N=Qi(t,43),t.O=Qi(t,44),t.P=Qi(t,45),t.X=Qi(t,46),t.Y=Qi(t,47),t.Z=Qi(t,48),t.$=Qi(t,49),t._=Qi(t,50),t.cb=Qi(t,51),t.K=Qi(t,52)}function w6n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn;E=new Va,Ot=b(ce(s,(Qt(),nf)),88),ue=0,Po(E,(!n.a&&(n.a=new kt(ra,n,10,11)),n.a));while(E.b!=0)if(M=b(E.b==0?null:(Pn(E.b!=0),Df(E,E.a.a)),27),O=Ya(M),(it(It(O,L1))!==it((Cm(),Wy))||it(It(O,yE))===it((My(),fN))||it(It(O,yE))===it((My(),dN))||er(Jt(It(O,SS)))||it(It(O,Dx))!==it((Z2(),Rx))||it(It(O,E_))===it((_p(),RS))||it(It(O,E_))===it((_p(),zx))||it(It(O,_E))===it(($y(),xN))||it(It(O,_E))===it(($y(),CN)))&&!er(Jt(It(M,Eee)))&&Ta(M,(Pt(),Aa),$t(ue++)),xe=!er(Jt(It(M,wE))),xe){if(q=(!M.a&&(M.a=new kt(ra,M,10,11)),M.a).i!=0,ae=QEn(M),re=it(It(M,Px))===it((Cb(),Zy)),Rn=!kg(M,(Hi(),ON))||ZMt(wi(It(M,ON))),et=null,Rn&&re&&(q||ae)){if(et=oHt(M),At(et,nf,Ot),$a(et,xz)&&l3t(new E7e(rt(ht(ce(et,xz)))),et),b(It(M,EE),181).gc()!=0)U=et,ys(new Pr(null,(!M.c&&(M.c=new kt(ld,M,9,9)),new Gr(M.c,16))),new gxt(U)),Jzt(M,et)}if(Wt=s,xr=b(An(t.a,Ya(M)),10),!!xr&&(Wt=xr.e),Ve=Mqt(t,M,Wt),et)Ve.e=et,et.e=Ve,Po(E,(!M.a&&(M.a=new kt(ra,M,10,11)),M.a))}ue=0,cs(E,n,E.c.b,E.c);while(E.b!=0){g=b(E.b==0?null:(Pn(E.b!=0),Df(E,E.a.a)),27);for(C=new kn((!g.b&&(g.b=new kt(ws,g,12,3)),g.b));C.e!=C.i.gc();){if(S=b(Dn(C),74),CVt(S),(it(It(n,L1))!==it((Cm(),Wy))||it(It(n,yE))===it((My(),fN))||it(It(n,yE))===it((My(),dN))||er(Jt(It(n,SS)))||it(It(n,Dx))!==it((Z2(),Rx))||it(It(n,E_))===it((_p(),RS))||it(It(n,E_))===it((_p(),zx))||it(It(n,_E))===it(($y(),xN))||it(It(n,_E))===it(($y(),CN)))&&Ta(S,(Pt(),Aa),$t(ue++)),tn=ic(b(We((!S.b&&(S.b=new Wr(qn,S,4,7)),S.b),0),84)),Kr=ic(b(We((!S.c&&(S.c=new Wr(qn,S,5,8)),S.c),0),84)),er(Jt(It(S,wE)))||er(Jt(It(tn,wE)))||er(Jt(It(Kr,wE))))continue;de=Jw(S)&&er(Jt(It(tn,Bx)))&&er(Jt(It(S,vE))),wt=g,de||XT(Kr,tn)?wt=tn:XT(tn,Kr)&&(wt=Kr),Wt=s,xr=b(An(t.a,wt),10),!!xr&&(Wt=xr.e),Be=FDe(t,S,wt,Wt),At(Be,(Pt(),kGe),w4n(t,S,n,s))}if(re=it(It(g,Px))===it((Cb(),Zy)),re)for(f=new kn((!g.a&&(g.a=new kt(ra,g,10,11)),g.a));f.e!=f.i.gc();)u=b(Dn(f),27),Rn=!kg(u,(Hi(),ON))||ZMt(wi(It(u,ON))),wr=it(It(u,Px))===it(Zy),Rn&&wr&&cs(E,u,E.c.b,E.c)}}function Pt(){Pt=z;var t,n;Ea=new va(T9e),kGe=new va("coordinateOrigin"),X1e=new va("processors"),CGe=new es("compoundNode",(an(),!1)),Ez=new es("insideConnections",!1),OGe=new va("originalBendpoints"),NGe=new va("originalDummyNodePosition"),LGe=new va("originalLabelEdge"),l9=new va("representedLabels"),o9=new va("endLabels"),B5=new va("endLabel.origin"),$5=new es("labelSide",(Qd(),eV)),lk=new es("maxEdgeThickness",0),Ug=new es("reversed",!1),U5=new va(x9e),tg=new es("longEdgeSource",null),Cp=new es("longEdgeTarget",null),Lx=new es("longEdgeHasLabelDummies",!1),wz=new es("longEdgeBeforeLabelDummy",!1),pee=new es("edgeConstraint",(K2(),L1e)),_S=new va("inLayerLayoutUnit"),mE=new es("inLayerConstraint",(Sb(),vz)),F5=new es("inLayerSuccessorConstraint",new Ut),IGe=new es("inLayerSuccessorConstraintBetweenNonDummies",!1),id=new va("portDummy"),fee=new es("crossingHint",$t(0)),Tu=new es("graphProperties",(n=b(G0(U1e),9),new Rf(n,b(t0(n,n.length),9),0))),Pc=new es("externalPortSide",(Ht(),Cc)),RGe=new es("externalPortSize",new Oo),q1e=new va("externalPortReplacedDummies"),gee=new va("externalPortReplacedDummy"),Fb=new es("externalPortConnections",(t=b(G0(bl),9),new Rf(t,b(t0(t,t.length),9),0))),ES=new es(zYt,0),xGe=new va("barycenterAssociates"),G5=new va("TopSideComments"),P5=new va("BottomSideComments"),dee=new va("CommentConnectionPort"),W1e=new es("inputCollect",!1),K1e=new es("outputCollect",!1),_z=new es("cyclic",!1),AGe=new va("crossHierarchyMap"),Z1e=new va("targetOffset"),new es("splineLabelSize",new Oo),uk=new va("spacings"),mee=new es("partitionConstraint",!1),vS=new va("breakingPoint.info"),PGe=new va("splines.survivingEdge"),bE=new va("splines.route.start"),hk=new va("splines.edgeChain"),DGe=new va("originalPortConstraints"),wS=new va("selfLoopHolder"),yN=new va("splines.nsPortY"),Aa=new va("modelOrder"),j1e=new va("longEdgeTargetNode"),v_=new es(wWt,!1),ck=new es(wWt,!1),Y1e=new va("layerConstraints.hiddenNodes"),MGe=new va("layerConstraints.opposidePort"),Q1e=new va("targetNode.modelOrder")}function S6n(t,n,s,u){var f,g,E,S,C,O,M,U,q,re,ae;for(U=ti(t.b,0);U.b!=U.d.c;){if(M=b(Jn(U),40),Br(M.c,UZ))continue;g=b(uc(new Pr(null,new Gr(NTn(M,t),16)),ed(new bt,new ct,new pe,Ce(Te(Wl,1),Rt,108,0,[(rd(),fc)]))),15),n==(Ms(),Kl)||n==sc?g.jd(new Kvt):g.jd(new Xvt),ae=g.gc();for(f=0;f0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(C-re)/(d.Math.abs(S-q)/40)>50&&(re>C?al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a+u/5.3,M.e.b+M.f.b*E-u/2)):al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a+u/5.3,M.e.b+M.f.b*E+u/2)));al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a,M.e.b+M.f.b*E))}else if(n==sc){if(O=rt(ht(ce(M,(Ma(),rg)))),M.e.a-u>O)al(b(g.Xb(f),65).a,new Dt(O-s,M.e.b+M.f.b*E));else if(b(g.Xb(f),65).a.b>0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(C-re)/(d.Math.abs(S-q)/40)>50&&(re>C?al(b(g.Xb(f),65).a,new Dt(M.e.a-u/5.3,M.e.b+M.f.b*E-u/2)):al(b(g.Xb(f),65).a,new Dt(M.e.a-u/5.3,M.e.b+M.f.b*E+u/2)));al(b(g.Xb(f),65).a,new Dt(M.e.a,M.e.b+M.f.b*E))}else if(n==jf){if(O=rt(ht(ce(M,(Ma(),g0)))),M.e.b+M.f.b+u0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(S-q)/(d.Math.abs(C-re)/40)>50&&(q>S?al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E-u/2,M.e.b+u/5.3+M.f.b)):al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E+u/2,M.e.b+u/5.3+M.f.b)));al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E,M.e.b+M.f.b))}else{if(O=rt(ht(ce(M,(Ma(),rg)))),QPt(b(g.Xb(f),65),t))al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E,b(e0(b(g.Xb(f),65).a),8).b));else if(M.e.b-u>O)al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E,O-s));else if(b(g.Xb(f),65).a.b>0)S=b(e0(b(g.Xb(f),65).a),8).a,q=M.e.a+M.f.a/2,C=b(e0(b(g.Xb(f),65).a),8).b,re=M.e.b+M.f.b/2,u>0&&d.Math.abs(S-q)/(d.Math.abs(C-re)/40)>50&&(q>S?al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E-u/2,M.e.b-u/5.3)):al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E+u/2,M.e.b-u/5.3)));al(b(g.Xb(f),65).a,new Dt(M.e.a+M.f.a*E,M.e.b))}}}function Hi(){Hi=z;var t,n;ON=new va(ojt),Ik=new va(ljt),Vqe=(_1(),Rye),nsr=new Dr(LPe,Vqe),new pM,Sk=new Dr(S5,null),isr=new va(YBe),qqe=(eE(),Ua(Nye,Ce(Te(Lye,1),Rt,298,0,[Oye]))),qz=new Dr(DZ,qqe),Yz=new Dr(HG,(an(),!1)),Yqe=(Ms(),Hg),CE=new Dr(gge,Yqe),Kqe=(kb(),Yye),jqe=new Dr(VG,Kqe),osr=new Dr(HBe,!1),Zqe=(Cb(),mte),Ck=new Dr(MZ,Zqe),oYe=new Ew(12),Qy=new Dr(oS,oYe),jz=new Dr(xD,!1),Bye=new Dr(BZ,!1),Kz=new Dr(CD,!1),dYe=(Ao(),A_),G9=new Dr(D0e,dYe),Y5=new va(PZ),Xz=new va(MG),Hye=new va(mZ),qye=new va(TD),Jqe=new Rh,NS=new Dr(HPe,Jqe),ssr=new Dr(WPe,!1),lsr=new Dr(jPe,!1),new va(cjt),eYe=new bM,NN=new Dr(XPe,eYe),dte=new Dr(OPe,!1),new pM,dsr=new Dr(ujt,1),xk=new va(hjt),Tk=new va(djt),LN=new Dr(DG,!1),new Dr(fjt,!0),$t(0),new Dr(pjt,$t(100)),new Dr(gjt,!1),$t(0),new Dr(mjt,$t(4000)),$t(0),new Dr(bjt,$t(400)),new Dr(yjt,!1),new Dr(vjt,!1),new Dr(_jt,!0),new Dr(Ejt,!1),Hqe=(JX(),Xye),asr=new Dr(qBe,Hqe),fsr=new Dr(_Pe,10),psr=new Dr(EPe,10),mYe=new Dr(A0e,20),gsr=new Dr(wPe,10),bYe=new Dr(M0e,2),yYe=new Dr(pge,10),vYe=new Dr(SPe,0),fte=new Dr(CPe,5),_Ye=new Dr(TPe,1),EYe=new Dr(xPe,1),AE=new Dr(vx,20),msr=new Dr(kPe,10),TYe=new Dr(APe,10),W5=new va(RPe),SYe=new ARt,wYe=new Dr(QPe,SYe),usr=new va(bge),lYe=!1,csr=new Dr(mge,lYe),rYe=new Ew(5),tYe=new Dr(PPe,rYe),nYe=(cx(),n=b(G0(Al),9),new Rf(n,b(t0(n,n.length),9),0)),kk=new Dr(VO,nYe),uYe=(x4(),k_),cYe=new Dr($Pe,uYe),$ye=new va(UPe),Uye=new va(GPe),Gye=new va(zPe),Fye=new va(VPe),iYe=(t=b(G0(K9),9),new Rf(t,b(t0(t,t.length),9),0)),kE=new Dr(q4,iYe),sYe=Tr((bd(),FN)),x_=new Dr(T5,sYe),aYe=new Dt(0,0),Ak=new Dr(x5,aYe),Yx=new Dr(zO,!1),Wqe=(Rg(),MN),Dye=new Dr(qPe,Wqe),Mye=new Dr(bZ,!1),new va(wjt),$t(1),new Dr(Sjt,null),hYe=new va(KPe),zye=new va(YPe),gYe=(Ht(),Cc),Rk=new Dr(NPe,gYe),Ed=new va(IPe),fYe=(nd(),Tr(R_)),Wx=new Dr(HO,fYe),Vye=new Dr(BPe,!1),pYe=new Dr(FPe,!0),new pM,gte=new Dr(PG,1),xYe=new Dr(WBe,null),Qz=new Dr(BG,150),pte=new Dr(FG,1.414),j5=new Dr(lS,null),bsr=new Dr(jBe,1),Wz=new Dr(MPe,!1),Pye=new Dr(DPe,!1),Xqe=new Dr(R0e,1),Qqe=(kQ(),jye),new Dr(Tjt,Qqe),hsr=!0,vsr=(n5(),Xx),_sr=Xx,ysr=Xx}function il(){il=z,TUe=new Is("DIRECTION_PREPROCESSOR",0),EUe=new Is("COMMENT_PREPROCESSOR",1),tk=new Is("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),g1e=new Is("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),VUe=new Is("PARTITION_PREPROCESSOR",4),UJ=new Is("LABEL_DUMMY_INSERTER",5),XJ=new Is("SELF_LOOP_PREPROCESSOR",6),Ox=new Is("LAYER_CONSTRAINT_PREPROCESSOR",7),GUe=new Is("PARTITION_MIDPROCESSOR",8),NUe=new Is("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),$Ue=new Is("NODE_PROMOTION",10),Ix=new Is("LAYER_CONSTRAINT_POSTPROCESSOR",11),zUe=new Is("PARTITION_POSTPROCESSOR",12),RUe=new Is("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),HUe=new Is("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),gUe=new Is("BREAKING_POINT_INSERTER",15),HJ=new Is("LONG_EDGE_SPLITTER",16),m1e=new Is("PORT_SIDE_PROCESSOR",17),FJ=new Is("INVERTED_PORT_PROCESSOR",18),WJ=new Is("PORT_LIST_SORTER",19),YUe=new Is("SORT_BY_INPUT_ORDER_OF_MODEL",20),YJ=new Is("NORTH_SOUTH_PORT_PREPROCESSOR",21),mUe=new Is("BREAKING_POINT_PROCESSOR",22),UUe=new Is(pWt,23),WUe=new Is(gWt,24),jJ=new Is("SELF_LOOP_PORT_RESTORER",25),qUe=new Is("SINGLE_EDGE_GRAPH_WRAPPER",26),$J=new Is("IN_LAYER_CONSTRAINT_PROCESSOR",27),CUe=new Is("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),BUe=new Is("LABEL_AND_NODE_SIZE_PROCESSOR",29),PUe=new Is("INNERMOST_NODE_MARGIN_CALCULATOR",30),QJ=new Is("SELF_LOOP_ROUTER",31),vUe=new Is("COMMENT_NODE_MARGIN_CALCULATOR",32),BJ=new Is("END_LABEL_PREPROCESSOR",33),zJ=new Is("LABEL_DUMMY_SWITCHER",34),yUe=new Is("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),sN=new Is("LABEL_SIDE_SELECTOR",36),MUe=new Is("HYPEREDGE_DUMMY_MERGER",37),IUe=new Is("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),FUe=new Is("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),t9=new Is("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),wUe=new Is("CONSTRAINTS_POSTPROCESSOR",41),_Ue=new Is("COMMENT_POSTPROCESSOR",42),DUe=new Is("HYPERNODE_PROCESSOR",43),OUe=new Is("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),VJ=new Is("LONG_EDGE_JOINER",45),KJ=new Is("SELF_LOOP_POSTPROCESSOR",46),bUe=new Is("BREAKING_POINT_REMOVER",47),qJ=new Is("NORTH_SOUTH_PORT_POSTPROCESSOR",48),LUe=new Is("HORIZONTAL_COMPACTOR",49),GJ=new Is("LABEL_DUMMY_REMOVER",50),kUe=new Is("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),xUe=new Is("END_LABEL_SORTER",52),pz=new Is("REVERSED_EDGE_RESTORER",53),PJ=new Is("END_LABEL_POSTPROCESSOR",54),AUe=new Is("HIERARCHICAL_NODE_RESIZER",55),SUe=new Is("DIRECTION_POSTPROCESSOR",56)}function $De(){$De=z,WGe=(bU(),aee),Ier=new Dr(D9e,WGe),zer=new Dr(P9e,(an(),!1)),JGe=(XK(),H1e),Wer=new Dr(EZ,JGe),ltr=new Dr(B9e,!1),ctr=new Dr(F9e,!0),rer=new Dr($9e,!1),oze=(gU(),xbe),Ttr=new Dr(U9e,oze),$t(1),Ntr=new Dr(G9e,$t(7)),Ltr=new Dr(z9e,!1),Ver=new Dr(V9e,!1),YGe=(My(),O1e),Rer=new Dr(z0e,YGe),rze=($y(),bbe),otr=new Dr(zG,rze),eze=(Uf(),Sz),Jer=new Dr(H9e,eze),$t(-1),Zer=new Dr(q9e,null),$t(-1),etr=new Dr(Y9e,$t(-1)),$t(-1),ttr=new Dr(V0e,$t(4)),$t(-1),ntr=new Dr(H0e,$t(2)),tze=(_p(),Bee),str=new Dr(q0e,tze),$t(0),atr=new Dr(Y0e,$t(0)),Xer=new Dr(W0e,$t(sa)),qGe=(x8(),n9),Aer=new Dr(RD,qGe),fer=new Dr(W9e,!1),_er=new Dr(j0e,0.1),Cer=new Dr(K0e,!1),wer=new Dr(j9e,null),Ser=new Dr(K9e,null),$t(-1),Ter=new Dr(X9e,null),$t(-1),xer=new Dr(Q9e,$t(-1)),$t(0),per=new Dr(Z9e,$t(40)),HGe=(K6(),z1e),yer=new Dr(X0e,HGe),VGe=yz,ger=new Dr(wZ,VGe),sze=(q8(),b9),Str=new Dr(Y4,sze),ptr=new va(SZ),nze=(uU(),oee),utr=new Dr(Q0e,nze),ize=(XU(),lee),dtr=new Dr(Z0e,ize),new pM,btr=new Dr(J0e,0.3),vtr=new va(ege),aze=(nx(),Pee),_tr=new Dr(tge,aze),XGe=(FX(),kbe),Der=new Dr(J9e,XGe),QGe=(N8(),Rbe),Per=new Dr(ePe,QGe),ZGe=(nO(),_9),Ber=new Dr(TZ,ZGe),$er=new Dr(xZ,0.2),Ler=new Dr(rge,2),Atr=new Dr(tPe,null),Itr=new Dr(rPe,10),Rtr=new Dr(nPe,10),Otr=new Dr(iPe,20),$t(0),xtr=new Dr(aPe,$t(0)),$t(0),Ctr=new Dr(sPe,$t(0)),$t(0),ktr=new Dr(oPe,$t(0)),ner=new Dr(nge,!1),$Ge=(yO(),i9),aer=new Dr(lPe,$Ge),FGe=(oX(),R1e),ier=new Dr(cPe,FGe),qer=new Dr(CZ,!1),$t(0),Her=new Dr(ige,$t(16)),$t(0),Yer=new Dr(age,$t(5)),uze=(zX(),Nbe),Jtr=new Dr(Db,uze),Mtr=new Dr(kZ,10),Btr=new Dr(AZ,1),cze=(TX(),iee),Htr=new Dr(ID,cze),Utr=new va(sge),lze=$t(1),$t(0),ztr=new Dr(oge,lze),hze=(SX(),Obe),nrr=new Dr(RZ,hze),err=new va(IZ),Ktr=new Dr(OZ,!0),Wtr=new Dr(NZ,2),Qtr=new Dr(lge,!0),KGe=(RQ(),see),Ner=new Dr(uPe,KGe),jGe=(u5(),uN),Oer=new Dr(hPe,jGe),zGe=(Cm(),Wy),der=new Dr(LZ,zGe),her=new Dr(dPe,!1),uer=new Dr(fPe,!1),UGe=(Z2(),Rx),ser=new Dr(cge,UGe),GGe=(D8(),ybe),cer=new Dr(pPe,GGe),oer=new Dr(uge,0),ler=new Dr(hge,0),Ker=N1e,jer=bz,rtr=Mee,itr=Mee,Qer=mbe,Eer=(Cb(),Zy),ker=n9,ver=n9,mer=n9,ber=Zy,gtr=y9,mtr=b9,htr=b9,ftr=b9,ytr=wbe,wtr=y9,Etr=y9,Fer=(kb(),K5),Uer=K5,Ger=_9,Mer=Zz,Dtr=kN,Ptr=Vx,Ftr=kN,$tr=Vx,qtr=kN,Ytr=Vx,Gtr=I1e,Vtr=iee,irr=kN,arr=Vx,trr=kN,rrr=Vx,Xtr=Vx,jtr=Vx,Ztr=Vx}function T6n(t,n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn,Kr,Rn,Ri,ts,cd,Xl,cf,Pk,av,w0,S0,NE,tR,B_,rR,qm,U1,BS,nR,Bk,Ym,LE,Vb,clr,jWe,FS,lP,fve,iR,cP,iC,uP,pve,ulr;jWe=0;for(Ri=n,Xl=0,av=Ri.length;Xl0&&(t.a[qm.p]=jWe++)}}cP=0;for(ts=s,cf=0,w0=ts.length;cf0){qm=(Pn(Bk.b>0),b(Bk.a.Xb(Bk.c=--Bk.b),12)),nR=0;for(S=new me(qm.e);S.a0)if(qm.j==(Ht(),gn))t.a[qm.p]=cP,++cP;else t.a[qm.p]=cP+S0+tR,++tR}cP+=tR}BS=new Zn,ae=new vm;for(Rn=n,cd=0,Pk=Rn.length;cdO.b&&(O.b=Ym);else if(qm.i.c==clr)YmO.c&&(O.c=Ym)}L6(ue,0,ue.length,null),iR=mt(ci,$i,28,ue.length,15,1),u=mt(ci,$i,28,cP+1,15,1);for(xe=0;xe0)Wt%2>0&&(f+=pve[Wt+1]),Wt=(Wt-1)/2|0,++pve[Wt]}wr=mt(nnr,en,374,ue.length*2,0,1);for(et=0;et0&&j$(cd.f),It(xe,xYe)!=null)S=b(It(xe,xYe),347),BS=S.Tg(xe),o4(xe,d.Math.max(xe.g,BS.a),d.Math.max(xe.f,BS.b))}if(w0=b(It(n,Qy),107),re=n.g-(w0.b+w0.c),q=n.f-(w0.d+w0.a),Ym.bh("Available Child Area: ("+re+"|"+q+")"),Ta(n,Sk,re/q),OFt(n,f,u.eh(Pk)),b(It(n,j5),280)==wte)DDe(n),o4(n,w0.b+rt(ht(It(n,xk)))+w0.c,w0.d+rt(ht(It(n,Tk)))+w0.a);if(Ym.bh("Executed layout algorithm: "+wi(It(n,ON))+" on node "+n.k),b(It(n,j5),280)==Xx){if(re<0||q<0)throw _e(new py("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+n.k));kg(n,xk)||kg(n,Tk)||DDe(n),ue=rt(ht(It(n,xk))),ae=rt(ht(It(n,Tk))),Ym.bh("Desired Child Area: ("+ue+"|"+ae+")"),NE=re/ue,tR=q/ae,S0=d.Math.min(NE,d.Math.min(tR,rt(ht(It(n,bsr))))),Ta(n,gte,S0),Ym.bh(n.k+" -- Local Scale Factor (X|Y): ("+NE+"|"+tR+")"),et=b(It(n,qz),21),g=0,E=0,S0'?":Br(rKt,t)?"'(?<' or '(? toIndex: ",r9e=", toIndex: ",n9e="Index: ",i9e=", Size: ",FO="org.eclipse.elk.alg.common",ki={50:1},TYt="org.eclipse.elk.alg.common.compaction",xYt="Scanline/EventHandler",k1="org.eclipse.elk.alg.common.compaction.oned",CYt="CNode belongs to another CGroup.",kYt="ISpacingsHandler/1",m0e="The ",b0e=" instance has been finished already.",AYt="The direction ",RYt=" is not supported by the CGraph instance.",IYt="OneDimensionalCompactor",OYt="OneDimensionalCompactor/lambda$0$Type",NYt="Quadruplet",LYt="ScanlineConstraintCalculator",MYt="ScanlineConstraintCalculator/ConstraintsScanlineHandler",DYt="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",PYt="ScanlineConstraintCalculator/Timestamp",BYt="ScanlineConstraintCalculator/lambda$0$Type",Nm={178:1,46:1},y0e="org.eclipse.elk.alg.common.compaction.options",xc="org.eclipse.elk.core.data",a9e="org.eclipse.elk.polyomino.traversalStrategy",s9e="org.eclipse.elk.polyomino.lowLevelSort",o9e="org.eclipse.elk.polyomino.highLevelSort",l9e="org.eclipse.elk.polyomino.fill",Ep={134:1},v0e="polyomino",ED="org.eclipse.elk.alg.common.networksimplex",A1={183:1,3:1,4:1},FYt="org.eclipse.elk.alg.common.nodespacing",aE="org.eclipse.elk.alg.common.nodespacing.cellsystem",$O="CENTER",$Yt={217:1,336:1},c9e={3:1,4:1,5:1,603:1},_5="LEFT",E5="RIGHT",u9e="Vertical alignment cannot be null",h9e="BOTTOM",uZ="org.eclipse.elk.alg.common.nodespacing.internal",wD="UNDEFINED",Dg=0.01,OG="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",UYt="LabelPlacer/lambda$0$Type",GYt="LabelPlacer/lambda$1$Type",zYt="portRatioOrPosition",UO="org.eclipse.elk.alg.common.overlaps",_0e="DOWN",Lm="org.eclipse.elk.alg.common.polyomino",hZ="NORTH",E0e="EAST",w0e="SOUTH",S0e="WEST",dZ="org.eclipse.elk.alg.common.polyomino.structures",d9e="Direction",T0e="Grid is only of size ",x0e=". Requested point (",C0e=") is out of bounds.",fZ=" Given center based coordinates were (",NG="org.eclipse.elk.graph.properties",VYt="IPropertyHolder",f9e={3:1,96:1,137:1},w5="org.eclipse.elk.alg.common.spore",HYt="org.eclipse.elk.alg.common.utils",sE={205:1},z4="org.eclipse.elk.core",qYt="Connected Components Compaction",YYt="org.eclipse.elk.alg.disco",pZ="org.eclipse.elk.alg.disco.graph",k0e="org.eclipse.elk.alg.disco.options",p9e="CompactionStrategy",g9e="org.eclipse.elk.disco.componentCompaction.strategy",m9e="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",b9e="org.eclipse.elk.disco.debug.discoGraph",y9e="org.eclipse.elk.disco.debug.discoPolys",WYt="componentCompaction",oE="org.eclipse.elk.disco",A0e="org.eclipse.elk.spacing.componentComponent",R0e="org.eclipse.elk.edge.thickness",S5="org.eclipse.elk.aspectRatio",oS="org.eclipse.elk.padding",V4="org.eclipse.elk.alg.disco.transform",I0e=1.5707963267948966,H4=179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,yx={3:1,4:1,5:1,198:1},jYt={3:1,6:1,4:1,5:1,100:1,115:1},O0e="org.eclipse.elk.alg.force",v9e="ComponentsProcessor",KYt="ComponentsProcessor/1",_9e="ElkGraphImporter/lambda$0$Type",LG="org.eclipse.elk.alg.force.graph",XYt="Component Layout",E9e="org.eclipse.elk.alg.force.model",gZ="org.eclipse.elk.force.model",w9e="org.eclipse.elk.force.iterations",S9e="org.eclipse.elk.force.repulsivePower",N0e="org.eclipse.elk.force.temperature",Mm=0.001,L0e="org.eclipse.elk.force.repulsion",SD="org.eclipse.elk.alg.force.options",GO=1.600000023841858,ih="org.eclipse.elk.force",MG="org.eclipse.elk.priority",vx="org.eclipse.elk.spacing.nodeNode",M0e="org.eclipse.elk.spacing.edgeLabel",mZ="org.eclipse.elk.randomSeed",TD="org.eclipse.elk.separateConnectedComponents",xD="org.eclipse.elk.interactive",D0e="org.eclipse.elk.portConstraints",bZ="org.eclipse.elk.edgeLabels.inline",CD="org.eclipse.elk.omitNodeMicroLayout",zO="org.eclipse.elk.nodeSize.fixedGraphSize",T5="org.eclipse.elk.nodeSize.options",q4="org.eclipse.elk.nodeSize.constraints",VO="org.eclipse.elk.nodeLabels.placement",HO="org.eclipse.elk.portLabels.placement",DG="org.eclipse.elk.topdownLayout",PG="org.eclipse.elk.topdown.scaleFactor",BG="org.eclipse.elk.topdown.hierarchicalNodeWidth",FG="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",lS="org.eclipse.elk.topdown.nodeType",T9e="origin",x9e="random",QYt="boundingBox.upLeft",ZYt="boundingBox.lowRight",C9e="org.eclipse.elk.stress.fixed",k9e="org.eclipse.elk.stress.desiredEdgeLength",A9e="org.eclipse.elk.stress.dimension",R9e="org.eclipse.elk.stress.epsilon",I9e="org.eclipse.elk.stress.iterationLimit",u_="org.eclipse.elk.stress",JYt="ELK Stress",x5="org.eclipse.elk.nodeSize.minimum",yZ="org.eclipse.elk.alg.force.stress",eWt="Layered layout",C5="org.eclipse.elk.alg.layered",$G="org.eclipse.elk.alg.layered.compaction.components",kD="org.eclipse.elk.alg.layered.compaction.oned",vZ="org.eclipse.elk.alg.layered.compaction.oned.algs",lE="org.eclipse.elk.alg.layered.compaction.recthull",Pg="org.eclipse.elk.alg.layered.components",Dm="NONE",O9e="MODEL_ORDER",Qc={3:1,6:1,4:1,9:1,5:1,126:1},tWt={3:1,6:1,4:1,5:1,150:1,100:1,115:1},_Z="org.eclipse.elk.alg.layered.compound",Pa={47:1},_u="org.eclipse.elk.alg.layered.graph",P0e=" -> ",rWt="Not supported by LGraph",N9e="Port side is undefined",B0e={3:1,6:1,4:1,5:1,483:1,150:1,100:1,115:1},Gy={3:1,6:1,4:1,5:1,150:1,199:1,210:1,100:1,115:1},nWt={3:1,6:1,4:1,5:1,150:1,2042:1,210:1,100:1,115:1},iWt=`([{"' \r +`,aWt=`)]}"' \r +`,sWt="The given string contains parts that cannot be parsed as numbers.",UG="org.eclipse.elk.core.math",oWt={3:1,4:1,140:1,214:1,423:1},lWt={3:1,4:1,107:1,214:1,423:1},zy="org.eclipse.elk.alg.layered.graph.transform",cWt="ElkGraphImporter",uWt="ElkGraphImporter/lambda$1$Type",hWt="ElkGraphImporter/lambda$2$Type",dWt="ElkGraphImporter/lambda$4$Type",En="org.eclipse.elk.alg.layered.intermediate",fWt="Node margin calculation",pWt="ONE_SIDED_GREEDY_SWITCH",gWt="TWO_SIDED_GREEDY_SWITCH",F0e="No implementation is available for the layout processor ",$0e="IntermediateProcessorStrategy",U0e="Node '",mWt="FIRST_SEPARATE",bWt="LAST_SEPARATE",yWt="Odd port side processing",Vs="org.eclipse.elk.alg.layered.intermediate.compaction",AD="org.eclipse.elk.alg.layered.intermediate.greedyswitch",R1="org.eclipse.elk.alg.layered.p3order.counting",GG={230:1},k5="org.eclipse.elk.alg.layered.intermediate.loops",tf="org.eclipse.elk.alg.layered.intermediate.loops.ordering",h_="org.eclipse.elk.alg.layered.intermediate.loops.routing",L9e="org.eclipse.elk.alg.layered.intermediate.preserveorder",Pm="org.eclipse.elk.alg.layered.intermediate.wrapping",Zc="org.eclipse.elk.alg.layered.options",G0e="INTERACTIVE",M9e="GREEDY",vWt="DEPTH_FIRST",_Wt="EDGE_LENGTH",EWt="SELF_LOOPS",wWt="firstTryWithInitialOrder",D9e="org.eclipse.elk.layered.directionCongruency",P9e="org.eclipse.elk.layered.feedbackEdges",EZ="org.eclipse.elk.layered.interactiveReferencePoint",B9e="org.eclipse.elk.layered.mergeEdges",F9e="org.eclipse.elk.layered.mergeHierarchyEdges",$9e="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",U9e="org.eclipse.elk.layered.portSortingStrategy",G9e="org.eclipse.elk.layered.thoroughness",z9e="org.eclipse.elk.layered.unnecessaryBendpoints",V9e="org.eclipse.elk.layered.generatePositionAndLayerIds",z0e="org.eclipse.elk.layered.cycleBreaking.strategy",zG="org.eclipse.elk.layered.layering.strategy",H9e="org.eclipse.elk.layered.layering.layerConstraint",q9e="org.eclipse.elk.layered.layering.layerChoiceConstraint",Y9e="org.eclipse.elk.layered.layering.layerId",V0e="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",H0e="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",q0e="org.eclipse.elk.layered.layering.nodePromotion.strategy",Y0e="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",W0e="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",RD="org.eclipse.elk.layered.crossingMinimization.strategy",W9e="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",j0e="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",K0e="org.eclipse.elk.layered.crossingMinimization.semiInteractive",j9e="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",K9e="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",X9e="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Q9e="org.eclipse.elk.layered.crossingMinimization.positionId",Z9e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",X0e="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",wZ="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",Y4="org.eclipse.elk.layered.nodePlacement.strategy",SZ="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",Q0e="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",Z0e="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",J0e="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",ege="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",tge="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",J9e="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",ePe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",TZ="org.eclipse.elk.layered.edgeRouting.splines.mode",xZ="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",rge="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",tPe="org.eclipse.elk.layered.spacing.baseValue",rPe="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",nPe="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",iPe="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",aPe="org.eclipse.elk.layered.priority.direction",sPe="org.eclipse.elk.layered.priority.shortness",oPe="org.eclipse.elk.layered.priority.straightness",nge="org.eclipse.elk.layered.compaction.connectedComponents",lPe="org.eclipse.elk.layered.compaction.postCompaction.strategy",cPe="org.eclipse.elk.layered.compaction.postCompaction.constraints",CZ="org.eclipse.elk.layered.highDegreeNodes.treatment",ige="org.eclipse.elk.layered.highDegreeNodes.threshold",age="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Db="org.eclipse.elk.layered.wrapping.strategy",kZ="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",AZ="org.eclipse.elk.layered.wrapping.correctionFactor",ID="org.eclipse.elk.layered.wrapping.cutting.strategy",sge="org.eclipse.elk.layered.wrapping.cutting.cuts",oge="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",RZ="org.eclipse.elk.layered.wrapping.validify.strategy",IZ="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",OZ="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",NZ="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",lge="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",uPe="org.eclipse.elk.layered.edgeLabels.sideSelection",hPe="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",LZ="org.eclipse.elk.layered.considerModelOrder.strategy",dPe="org.eclipse.elk.layered.considerModelOrder.portModelOrder",fPe="org.eclipse.elk.layered.considerModelOrder.noModelOrder",cge="org.eclipse.elk.layered.considerModelOrder.components",pPe="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",uge="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",hge="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",dge="layering",SWt="layering.minWidth",TWt="layering.nodePromotion",qO="crossingMinimization",MZ="org.eclipse.elk.hierarchyHandling",xWt="crossingMinimization.greedySwitch",CWt="nodePlacement",kWt="nodePlacement.bk",AWt="edgeRouting",VG="org.eclipse.elk.edgeRouting",Bg="spacing",gPe="priority",mPe="compaction",RWt="compaction.postCompaction",IWt="Specifies whether and how post-process compaction is applied.",bPe="highDegreeNodes",yPe="wrapping",OWt="wrapping.cutting",NWt="wrapping.validify",vPe="wrapping.multiEdge",fge="edgeLabels",OD="considerModelOrder",_Pe="org.eclipse.elk.spacing.commentComment",EPe="org.eclipse.elk.spacing.commentNode",wPe="org.eclipse.elk.spacing.edgeEdge",pge="org.eclipse.elk.spacing.edgeNode",SPe="org.eclipse.elk.spacing.labelLabel",TPe="org.eclipse.elk.spacing.labelPortHorizontal",xPe="org.eclipse.elk.spacing.labelPortVertical",CPe="org.eclipse.elk.spacing.labelNode",kPe="org.eclipse.elk.spacing.nodeSelfLoop",APe="org.eclipse.elk.spacing.portPort",RPe="org.eclipse.elk.spacing.individual",IPe="org.eclipse.elk.port.borderOffset",OPe="org.eclipse.elk.noLayout",NPe="org.eclipse.elk.port.side",HG="org.eclipse.elk.debugMode",LPe="org.eclipse.elk.alignment",MPe="org.eclipse.elk.insideSelfLoops.activate",DPe="org.eclipse.elk.insideSelfLoops.yo",gge="org.eclipse.elk.direction",PPe="org.eclipse.elk.nodeLabels.padding",BPe="org.eclipse.elk.portLabels.nextToPortIfPossible",FPe="org.eclipse.elk.portLabels.treatAsGroup",$Pe="org.eclipse.elk.portAlignment.default",UPe="org.eclipse.elk.portAlignment.north",GPe="org.eclipse.elk.portAlignment.south",zPe="org.eclipse.elk.portAlignment.west",VPe="org.eclipse.elk.portAlignment.east",DZ="org.eclipse.elk.contentAlignment",HPe="org.eclipse.elk.junctionPoints",qPe="org.eclipse.elk.edgeLabels.placement",YPe="org.eclipse.elk.port.index",WPe="org.eclipse.elk.commentBox",jPe="org.eclipse.elk.hypernode",KPe="org.eclipse.elk.port.anchor",mge="org.eclipse.elk.partitioning.activate",bge="org.eclipse.elk.partitioning.partition",PZ="org.eclipse.elk.position",XPe="org.eclipse.elk.margins",QPe="org.eclipse.elk.spacing.portsSurrounding",BZ="org.eclipse.elk.interactiveLayout",Lc="org.eclipse.elk.core.util",ZPe={3:1,4:1,5:1,601:1},LWt="NETWORK_SIMPLEX",JPe="SIMPLE",Cl={106:1,47:1},FZ="org.eclipse.elk.alg.layered.p1cycles",Pb="org.eclipse.elk.alg.layered.p2layers",eBe={413:1,230:1},MWt={846:1,3:1,4:1},Fh="org.eclipse.elk.alg.layered.p3order",kl="org.eclipse.elk.alg.layered.p4nodes",DWt={3:1,4:1,5:1,854:1},Bm=0.00001,d_="org.eclipse.elk.alg.layered.p4nodes.bk",yge="org.eclipse.elk.alg.layered.p5edges",Z0="org.eclipse.elk.alg.layered.p5edges.orthogonal",vge="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",_ge=0.000001,_x="org.eclipse.elk.alg.layered.p5edges.splines",Ege=0.09999999999999998,$Z=0.00000001,PWt=4.71238898038469,tBe=3.141592653589793,Bb="org.eclipse.elk.alg.mrtree",wge=0.10000000149011612,UZ="SUPER_ROOT",ND="org.eclipse.elk.alg.mrtree.graph",rBe=-179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,Eu="org.eclipse.elk.alg.mrtree.intermediate",BWt="Processor compute fanout",GZ={3:1,6:1,4:1,5:1,534:1,100:1,115:1},FWt="Set neighbors in level",qG="org.eclipse.elk.alg.mrtree.options",$Wt="DESCENDANTS",nBe="org.eclipse.elk.mrtree.compaction",iBe="org.eclipse.elk.mrtree.edgeEndTextureLength",aBe="org.eclipse.elk.mrtree.treeLevel",sBe="org.eclipse.elk.mrtree.positionConstraint",oBe="org.eclipse.elk.mrtree.weighting",lBe="org.eclipse.elk.mrtree.edgeRoutingMode",cBe="org.eclipse.elk.mrtree.searchOrder",UWt="Position Constraint",ah="org.eclipse.elk.mrtree",GWt="org.eclipse.elk.tree",zWt="Processor arrange level",YO="org.eclipse.elk.alg.mrtree.p2order",Dd="org.eclipse.elk.alg.mrtree.p4route",uBe="org.eclipse.elk.alg.radial",cE=6.283185307179586,hBe="Before",dBe=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,zZ="After",fBe="org.eclipse.elk.alg.radial.intermediate",VWt="COMPACTION",Sge="org.eclipse.elk.alg.radial.intermediate.compaction",HWt={3:1,4:1,5:1,100:1},pBe="org.eclipse.elk.alg.radial.intermediate.optimization",Tge="No implementation is available for the layout option ",LD="org.eclipse.elk.alg.radial.options",gBe="org.eclipse.elk.radial.centerOnRoot",mBe="org.eclipse.elk.radial.orderId",bBe="org.eclipse.elk.radial.radius",VZ="org.eclipse.elk.radial.rotate",xge="org.eclipse.elk.radial.compactor",Cge="org.eclipse.elk.radial.compactionStepSize",yBe="org.eclipse.elk.radial.sorter",vBe="org.eclipse.elk.radial.wedgeCriteria",_Be="org.eclipse.elk.radial.optimizationCriteria",kge="org.eclipse.elk.radial.rotation.targetAngle",Age="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",EBe="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",qWt="Compaction",wBe="rotation",Vf="org.eclipse.elk.radial",YWt="org.eclipse.elk.alg.radial.p1position.wedge",SBe="org.eclipse.elk.alg.radial.sorting",WWt=5.497787143782138,jWt=3.9269908169872414,KWt=2.356194490192345,XWt="org.eclipse.elk.alg.rectpacking",HZ="org.eclipse.elk.alg.rectpacking.intermediate",Rge="org.eclipse.elk.alg.rectpacking.options",TBe="org.eclipse.elk.rectpacking.trybox",xBe="org.eclipse.elk.rectpacking.currentPosition",CBe="org.eclipse.elk.rectpacking.desiredPosition",kBe="org.eclipse.elk.rectpacking.inNewRow",ABe="org.eclipse.elk.rectpacking.widthApproximation.strategy",RBe="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",IBe="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",OBe="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",NBe="org.eclipse.elk.rectpacking.packing.strategy",LBe="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",MBe="org.eclipse.elk.rectpacking.packing.compaction.iterations",DBe="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",Ige="widthApproximation",QWt="Compaction Strategy",ZWt="packing.compaction",vd="org.eclipse.elk.rectpacking",WO="org.eclipse.elk.alg.rectpacking.p1widthapproximation",qZ="org.eclipse.elk.alg.rectpacking.p2packing",JWt="No Compaction",PBe="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",YG="org.eclipse.elk.alg.rectpacking.util",YZ="No implementation available for ",Ex="org.eclipse.elk.alg.spore",wx="org.eclipse.elk.alg.spore.options",cS="org.eclipse.elk.sporeCompaction",Oge="org.eclipse.elk.underlyingLayoutAlgorithm",BBe="org.eclipse.elk.processingOrder.treeConstruction",FBe="org.eclipse.elk.processingOrder.spanningTreeCostFunction",Nge="org.eclipse.elk.processingOrder.preferredRoot",Lge="org.eclipse.elk.processingOrder.rootSelection",Mge="org.eclipse.elk.structure.structureExtractionStrategy",$Be="org.eclipse.elk.compaction.compactionStrategy",UBe="org.eclipse.elk.compaction.orthogonal",GBe="org.eclipse.elk.overlapRemoval.maxIterations",zBe="org.eclipse.elk.overlapRemoval.runScanline",Dge="processingOrder",ejt="overlapRemoval",jO="org.eclipse.elk.sporeOverlap",tjt="org.eclipse.elk.alg.spore.p1structure",Pge="org.eclipse.elk.alg.spore.p2processingorder",Bge="org.eclipse.elk.alg.spore.p3execution",rjt="Topdown Layout",njt="Invalid index: ",KO="org.eclipse.elk.core.alg",W4={341:1},Sx={295:1},ijt="Make sure its type is registered with the ",VBe=" utility class.",XO="true",Fge="false",ajt="Couldn't clone property '",uS=0.05,_d="org.eclipse.elk.core.options",sjt=1.2999999523162842,hS="org.eclipse.elk.box",HBe="org.eclipse.elk.expandNodes",qBe="org.eclipse.elk.box.packingMode",ojt="org.eclipse.elk.algorithm",ljt="org.eclipse.elk.resolvedAlgorithm",YBe="org.eclipse.elk.bendPoints",cjt="org.eclipse.elk.labelManager",ujt="org.eclipse.elk.scaleFactor",hjt="org.eclipse.elk.childAreaWidth",djt="org.eclipse.elk.childAreaHeight",fjt="org.eclipse.elk.animate",pjt="org.eclipse.elk.animTimeFactor",gjt="org.eclipse.elk.layoutAncestors",mjt="org.eclipse.elk.maxAnimTime",bjt="org.eclipse.elk.minAnimTime",yjt="org.eclipse.elk.progressBar",vjt="org.eclipse.elk.validateGraph",_jt="org.eclipse.elk.validateOptions",Ejt="org.eclipse.elk.zoomToFit",wjt="org.eclipse.elk.font.name",Sjt="org.eclipse.elk.font.size",WBe="org.eclipse.elk.topdown.sizeApproximator",jBe="org.eclipse.elk.topdown.scaleCap",Tjt="org.eclipse.elk.edge.type",xjt="partitioning",Cjt="nodeLabels",WZ="portAlignment",$ge="nodeSize",Uge="port",KBe="portLabels",WG="topdown",kjt="insideSelfLoops",MD="org.eclipse.elk.fixed",jZ="org.eclipse.elk.random",XBe={3:1,34:1,22:1,347:1},Ajt="port must have a parent node to calculate the port side",Rjt="The edge needs to have exactly one edge section. Found: ",DD="org.eclipse.elk.core.util.adapters",Hf="org.eclipse.emf.ecore",j4="org.eclipse.elk.graph",Ijt="EMapPropertyHolder",Ojt="ElkBendPoint",Njt="ElkGraphElement",Ljt="ElkConnectableShape",QBe="ElkEdge",Mjt="ElkEdgeSection",Djt="EModelElement",Pjt="ENamedElement",ZBe="ElkLabel",JBe="ElkNode",eFe="ElkPort",Bjt={94:1,93:1},A5="org.eclipse.emf.common.notify.impl",f_="The feature '",PD="' is not a valid changeable feature",Fjt="Expecting null",Gge="' is not a valid feature",$jt="The feature ID",Ujt=" is not a valid feature ID",Hc=32768,Gjt={110:1,94:1,93:1,58:1,54:1,99:1},on="org.eclipse.emf.ecore.impl",uE="org.eclipse.elk.graph.impl",BD="Recursive containment not allowed for ",QO="The datatype '",dS="' is not a valid classifier",zge="The value '",K4={195:1,3:1,4:1},Vge="The class '",ZO="http://www.eclipse.org/elk/ElkGraph",tFe="property",FD="value",Hge="source",zjt="properties",Vjt="identifier",qge="height",Yge="width",Wge="parent",jge="text",Kge="children",Hjt="hierarchical",rFe="sources",Xge="targets",nFe="sections",KZ="bendPoints",iFe="outgoingShape",aFe="incomingShape",sFe="outgoingSections",oFe="incomingSections",cl="org.eclipse.emf.common.util",lFe="Severe implementation error in the Json to ElkGraph importer.",Fm="id",Ho="org.eclipse.elk.graph.json",cFe="Unhandled parameter types: ",qjt="startPoint",Yjt="An edge must have at least one source and one target (edge id: '",JO="').",Wjt="Referenced edge section does not exist: ",jjt=" (edge id: '",uFe="target",Kjt="sourcePoint",Xjt="targetPoint",XZ="group",ta="name",Qjt="connectableShape cannot be null",Zjt="edge cannot be null",Qge="Passed edge is not 'simple'.",QZ="org.eclipse.elk.graph.util",jG="The 'no duplicates' constraint is violated",Zge="targetIndex=",hE=", size=",Jge="sourceIndex=",$m={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1},eme={3:1,4:1,20:1,31:1,56:1,16:1,51:1,15:1,59:1,70:1,66:1,61:1,596:1},ZZ="logging",Jjt="measureExecutionTime",eKt="parser.parse.1",tKt="parser.parse.2",JZ="parser.next.1",tme="parser.next.2",rKt="parser.next.3",nKt="parser.next.4",dE="parser.factor.1",hFe="parser.factor.2",iKt="parser.factor.3",aKt="parser.factor.4",sKt="parser.factor.5",oKt="parser.factor.6",lKt="parser.atom.1",cKt="parser.atom.2",uKt="parser.atom.3",dFe="parser.atom.4",rme="parser.atom.5",fFe="parser.cc.1",eJ="parser.cc.2",hKt="parser.cc.3",dKt="parser.cc.5",pFe="parser.cc.6",gFe="parser.cc.7",nme="parser.cc.8",fKt="parser.ope.1",pKt="parser.ope.2",gKt="parser.ope.3",Vy="parser.descape.1",mKt="parser.descape.2",bKt="parser.descape.3",yKt="parser.descape.4",vKt="parser.descape.5",qf="parser.process.1",_Kt="parser.quantifier.1",EKt="parser.quantifier.2",wKt="parser.quantifier.3",SKt="parser.quantifier.4",mFe="parser.quantifier.5",TKt="org.eclipse.emf.common.notify",bFe={424:1,686:1},xKt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1},KG={378:1,152:1},$D="index=",ime={3:1,4:1,5:1,129:1},CKt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,61:1},yFe={3:1,6:1,4:1,5:1,198:1},kKt={3:1,4:1,5:1,173:1,379:1},AKt=";/?:@&=+$,",RKt="invalid authority: ",IKt="EAnnotation",OKt="ETypedElement",NKt="EStructuralFeature",LKt="EAttribute",MKt="EClassifier",DKt="EEnumLiteral",PKt="EGenericType",BKt="EOperation",FKt="EParameter",$Kt="EReference",UKt="ETypeParameter",qa="org.eclipse.emf.ecore.util",ame={79:1},vFe={3:1,20:1,16:1,15:1,61:1,597:1,79:1,71:1,97:1},GKt="org.eclipse.emf.ecore.util.FeatureMap$Entry",$h=8192,Tx=2048,UD="byte",tJ="char",GD="double",zD="float",VD="int",HD="long",qD="short",zKt="java.lang.Object",X4={3:1,4:1,5:1,254:1},_Fe={3:1,4:1,5:1,688:1},VKt={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,71:1},dc={3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,71:1,97:1},XG="mixed",Ni="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",wp="kind",HKt={3:1,4:1,5:1,689:1},EFe={3:1,4:1,20:1,31:1,56:1,16:1,15:1,70:1,61:1,79:1,71:1,97:1},rJ={20:1,31:1,56:1,16:1,15:1,61:1,71:1},nJ={51:1,128:1,287:1},iJ={76:1,343:1},aJ="The value of type '",sJ="' must be of type '",Q4=1352,Sp="http://www.eclipse.org/emf/2002/Ecore",oJ=-32768,fS="constraints",Zo="baseType",qKt="getEStructuralFeature",YKt="getFeatureID",YD="feature",WKt="getOperationID",wFe="operation",jKt="defaultValue",KKt="eTypeParameters",XKt="isInstance",QKt="getEEnumLiteral",ZKt="eContainingClass",Yi={57:1},JKt={3:1,4:1,5:1,124:1},eXt="org.eclipse.emf.ecore.resource",tXt={94:1,93:1,599:1,2034:1},sme="org.eclipse.emf.ecore.resource.impl",SFe="unspecified",QG="simple",lJ="attribute",rXt="attributeWildcard",cJ="element",ome="elementWildcard",J0="collapse",lme="itemType",uJ="namespace",ZG="##targetNamespace",Tp="whiteSpace",TFe="wildcards",fE="http://www.eclipse.org/emf/2003/XMLType",cme="##any",eN="uninitialized",JG="The multiplicity constraint is violated",hJ="org.eclipse.emf.ecore.xml.type",nXt="ProcessingInstruction",iXt="SimpleAnyType",aXt="XMLTypeDocumentRoot",Ps="org.eclipse.emf.ecore.xml.type.impl",ez="INF",sXt="processing",oXt="ENTITIES_._base",xFe="minLength",CFe="ENTITY",dJ="NCName",lXt="IDREFS_._base",kFe="integer",ume="token",hme="pattern",cXt="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",AFe="\\i\\c*",uXt="[\\i-[:]][\\c-[:]]*",hXt="nonPositiveInteger",tz="maxInclusive",RFe="NMTOKEN",dXt="NMTOKENS_._base",IFe="nonNegativeInteger",rz="minInclusive",fXt="normalizedString",pXt="unsignedByte",gXt="unsignedInt",mXt="18446744073709551615",bXt="unsignedShort",yXt="processingInstruction",Hy="org.eclipse.emf.ecore.xml.type.internal",tN=1114111,vXt="Internal Error: shorthands: \\u",WD="xml:isDigit",dme="xml:isWord",fme="xml:isSpace",pme="xml:isNameChar",gme="xml:isInitialNameChar",_Xt="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",EXt="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",wXt="Private Use",mme="ASSIGNED",bme="\x00€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",OFe="UNASSIGNED",rN={3:1,122:1},SXt="org.eclipse.emf.ecore.xml.type.util",fJ={3:1,4:1,5:1,381:1},NFe="org.eclipse.xtext.xbase.lib",TXt="Cannot add elements to a Range",xXt="Cannot set elements in a Range",CXt="Cannot remove elements from a Range",kXt="user.agent",_,pJ,yme,R6n=-1;d.goog=d.goog||{},d.goog.global=d.goog.global||d,pJ={},G(1,null,{},T),_.Fb=function(n){return TRt(this,n)},_.Gb=function(){return this.Rm},_.Hb=function(){return Sw(this)},_.Ib=function(){var n;return N2(Ld(this))+"@"+(n=Da(this)>>>0,n.toString(16))},_.equals=function(t){return this.Fb(t)},_.hashCode=function(){return this.Hb()},_.toString=function(){return this.Ib()};var AXt,RXt,IXt;G(297,1,{297:1,2124:1},CLe),_.ve=function(n){var s=new CLe;return s.i=4,n>1?s.c=YLt(this,n-1):s.c=this,s},_.we=function(){return gb(this),this.b},_.xe=function(){return N2(this)},_.ye=function(){return gb(this),this.k},_.ze=function(){return(this.i&4)!=0},_.Ae=function(){return(this.i&1)!=0},_.Ib=function(){return BNe(this)},_.i=0;var I6n=1,ao=V(Nc,"Object",1),LFe=V(Nc,"Class",297);G(2096,1,_G);var xOi=V(EG,"Optional",2096);G(1191,2096,_G,x),_.Fb=function(n){return n===this},_.Hb=function(){return 2040732332},_.Ib=function(){return"Optional.absent()"},_.Jb=function(n){return mi(n),vM(),vme};var vme,COi=V(EG,"Absent",1191);G(636,1,{},ece);var kOi=V(EG,"Joiner",636),O6n=ns(EG,"Predicate");G(589,1,{178:1,589:1,3:1,46:1},JSt),_.Mb=function(n){return YPt(this,n)},_.Lb=function(n){return YPt(this,n)},_.Fb=function(n){var s;if(He(n,589))return s=b(n,589),S8e(this.a,s.a);return!1},_.Hb=function(){return NLe(this.a)+306654252},_.Ib=function(){return bSn(this.a)};var AOi=V(EG,"Predicates/AndPredicate",589);G(419,2096,{419:1,3:1},PW),_.Fb=function(n){var s;if(He(n,419))return s=b(n,419),da(this.a,s.a);return!1},_.Hb=function(){return 1502476572+Da(this.a)},_.Ib=function(){return eYt+this.a+")"},_.Jb=function(n){return new PW(PK(n.Kb(this.a),"the Function passed to Optional.transform() must not return null."))};var ROi=V(EG,"Present",419);G(204,1,OO),_.Nb=function(n){Go(this,n)},_.Qb=function(){f3t()};var IOi=V(kr,"UnmodifiableIterator",204);G(2076,204,NO),_.Qb=function(){f3t()},_.Rb=function(n){throw _e(new bi)},_.Wb=function(n){throw _e(new bi)};var OOi=V(kr,"UnmodifiableListIterator",2076);G(399,2076,NO),_.Ob=function(){return this.c0},_.Pb=function(){if(this.c>=this.d)throw _e(new yc);return this.Xb(this.c++)},_.Tb=function(){return this.c},_.Ub=function(){if(this.c<=0)throw _e(new yc);return this.Xb(--this.c)},_.Vb=function(){return this.c-1},_.c=0,_.d=0;var NOi=V(kr,"AbstractIndexedListIterator",399);G(713,204,OO),_.Ob=function(){return rde(this)},_.Pb=function(){return ONe(this)},_.e=1;var LOi=V(kr,"AbstractIterator",713);G(2084,1,{229:1}),_.Zb=function(){var n;return n=this.f,!n?this.f=this.ac():n},_.Fb=function(n){return Tde(this,n)},_.Hb=function(){return Da(this.Zb())},_.dc=function(){return this.gc()==0},_.ec=function(){return FA(this)},_.Ib=function(){return hc(this.Zb())};var MOi=V(kr,"AbstractMultimap",2084);G(742,2084,nE),_.$b=function(){CX(this)},_._b=function(n){return N3t(this,n)},_.ac=function(){return new s6(this,this.c)},_.ic=function(n){return this.hc()},_.bc=function(){return new d4(this,this.c)},_.jc=function(){return this.mc(this.hc())},_.kc=function(){return new Qkt(this)},_.lc=function(){return Lfe(this.c.vc().Nc(),new A,64,this.d)},_.cc=function(n){return _a(this,n)},_.fc=function(n){return LU(this,n)},_.gc=function(){return this.d},_.mc=function(n){return Hr(),new WI(n)},_.nc=function(){return new Xkt(this)},_.oc=function(){return Lfe(this.c.Cc().Nc(),new k,64,this.d)},_.pc=function(n,s){return new iX(this,n,s,null)},_.d=0;var DOi=V(kr,"AbstractMapBasedMultimap",742);G(1696,742,nE),_.hc=function(){return new Gu(this.a)},_.jc=function(){return Hr(),Hr(),Jo},_.cc=function(n){return b(_a(this,n),15)},_.fc=function(n){return b(LU(this,n),15)},_.Zb=function(){return HA(this)},_.Fb=function(n){return Tde(this,n)},_.qc=function(n){return b(_a(this,n),15)},_.rc=function(n){return b(LU(this,n),15)},_.mc=function(n){return ahe(b(n,15))},_.pc=function(n,s){return J7t(this,n,b(s,15),null)};var POi=V(kr,"AbstractListMultimap",1696);G(748,1,To),_.Nb=function(n){Go(this,n)},_.Ob=function(){return this.c.Ob()||this.e.Ob()},_.Pb=function(){var n;if(!this.e.Ob())n=b(this.c.Pb(),44),this.b=n.ld(),this.a=b(n.md(),16),this.e=this.a.Kc();return this.sc(this.b,this.e.Pb())},_.Qb=function(){this.e.Qb(),b(gp(this.a),16).dc()&&this.c.Qb(),--this.d.d};var BOi=V(kr,"AbstractMapBasedMultimap/Itr",748);G(1129,748,To,Xkt),_.sc=function(n,s){return s};var FOi=V(kr,"AbstractMapBasedMultimap/1",1129);G(1130,1,{},k),_.Kb=function(n){return b(n,16).Nc()};var $Oi=V(kr,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1130);G(1131,748,To,Qkt),_.sc=function(n,s){return new gw(n,s)};var UOi=V(kr,"AbstractMapBasedMultimap/2",1131),MFe=ns(jn,"Map");G(2065,1,aS),_.wc=function(n){R8(this,n)},_.yc=function(n,s,u){return Vde(this,n,s,u)},_.$b=function(){this.vc().$b()},_.tc=function(n){return gfe(this,n)},_._b=function(n){return!!EMe(this,n,!1)},_.uc=function(n){var s,u,f;for(u=this.vc().Kc();u.Ob();)if(s=b(u.Pb(),44),f=s.md(),it(n)===it(f)||n!=null&&da(n,f))return!0;return!1},_.Fb=function(n){var s,u,f;if(n===this)return!0;if(!He(n,85))return!1;if(f=b(n,85),this.gc()!=f.gc())return!1;for(u=f.vc().Kc();u.Ob();)if(s=b(u.Pb(),44),!this.tc(s))return!1;return!0},_.xc=function(n){return Jl(EMe(this,n,!1))},_.Hb=function(){return wLe(this.vc())},_.dc=function(){return this.gc()==0},_.ec=function(){return new A2(this)},_.zc=function(n,s){throw _e(new fy("Put not supported on this map"))},_.Ac=function(n){A8(this,n)},_.Bc=function(n){return Jl(EMe(this,n,!0))},_.gc=function(){return this.vc().gc()},_.Ib=function(){return iUt(this)},_.Cc=function(){return new hb(this)};var GOi=V(jn,"AbstractMap",2065);G(2085,2065,aS),_.bc=function(){return new ij(this)},_.vc=function(){return KOt(this)},_.ec=function(){var n=this.g;return!n?this.g=this.bc():n},_.Cc=function(){var n=this.i;return!n?this.i=new wAt(this):n};var zOi=V(kr,"Maps/ViewCachingAbstractMap",2085);G(402,2085,aS,s6),_.xc=function(n){return Pgn(this,n)},_.Bc=function(n){return abn(this,n)},_.$b=function(){this.d==this.e.c?this.e.$b():fK(new M6e(this))},_._b=function(n){return IBt(this.d,n)},_.Ec=function(){return new eTt(this)},_.Dc=function(){return this.Ec()},_.Fb=function(n){return this===n||da(this.d,n)},_.Hb=function(){return Da(this.d)},_.ec=function(){return this.e.ec()},_.gc=function(){return this.d.gc()},_.Ib=function(){return hc(this.d)};var VOi=V(kr,"AbstractMapBasedMultimap/AsMap",402),rf=ns(Nc,"Iterable");G(31,1,gx),_.Jc=function(n){Vo(this,n)},_.Lc=function(){return this.Oc()},_.Nc=function(){return new Gr(this,0)},_.Oc=function(){return new Pr(null,this.Nc())},_.Fc=function(n){throw _e(new fy("Add not supported on this collection"))},_.Gc=function(n){return Po(this,n)},_.$b=function(){_Oe(this)},_.Hc=function(n){return tx(this,n,!1)},_.Ic=function(n){return xU(this,n)},_.dc=function(){return this.gc()==0},_.Mc=function(n){return tx(this,n,!0)},_.Pc=function(){return H6e(this)},_.Qc=function(n){return W8(this,n)},_.Ib=function(){return i_(this)};var HOi=V(jn,"AbstractCollection",31),xp=ns(jn,"Set");G(Mg,31,Bh),_.Nc=function(){return new Gr(this,1)},_.Fb=function(n){return EFt(this,n)},_.Hb=function(){return wLe(this)};var qOi=V(jn,"AbstractSet",Mg);G(2068,Mg,Bh);var YOi=V(kr,"Sets/ImprovedAbstractSet",2068);G(2069,2068,Bh),_.$b=function(){this.Rc().$b()},_.Hc=function(n){return aFt(this,n)},_.dc=function(){return this.Rc().dc()},_.Mc=function(n){var s;if(this.Hc(n)&&He(n,44))return s=b(n,44),this.Rc().ec().Mc(s.ld());return!1},_.gc=function(){return this.Rc().gc()};var WOi=V(kr,"Maps/EntrySet",2069);G(1127,2069,Bh,eTt),_.Hc=function(n){return KLe(this.a.d.vc(),n)},_.Kc=function(){return new M6e(this.a)},_.Rc=function(){return this.a},_.Mc=function(n){var s;if(!KLe(this.a.d.vc(),n))return!1;return s=b(gp(b(n,44)),44),T0n(this.a.e,s.ld()),!0},_.Nc=function(){return P$(this.a.d.vc().Nc(),new tTt(this.a))};var jOi=V(kr,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1127);G(1128,1,{},tTt),_.Kb=function(n){return QMt(this.a,b(n,44))};var KOi=V(kr,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1128);G(746,1,To,M6e),_.Nb=function(n){Go(this,n)},_.Pb=function(){var n;return n=b(this.b.Pb(),44),this.a=b(n.md(),16),QMt(this.c,n)},_.Ob=function(){return this.b.Ob()},_.Qb=function(){g6(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null};var XOi=V(kr,"AbstractMapBasedMultimap/AsMap/AsMapIterator",746);G(542,2068,Bh,ij),_.$b=function(){this.b.$b()},_.Hc=function(n){return this.b._b(n)},_.Jc=function(n){mi(n),this.b.wc(new yTt(n))},_.dc=function(){return this.b.dc()},_.Kc=function(){return new _M(this.b.vc().Kc())},_.Mc=function(n){if(this.b._b(n))return this.b.Bc(n),!0;return!1},_.gc=function(){return this.b.gc()};var QOi=V(kr,"Maps/KeySet",542);G(327,542,Bh,d4),_.$b=function(){var n;fK((n=this.b.vc().Kc(),new iRe(this,n)))},_.Ic=function(n){return this.b.ec().Ic(n)},_.Fb=function(n){return this===n||da(this.b.ec(),n)},_.Hb=function(){return Da(this.b.ec())},_.Kc=function(){var n;return n=this.b.vc().Kc(),new iRe(this,n)},_.Mc=function(n){var s,u;if(u=0,s=b(this.b.Bc(n),16),s)u=s.gc(),s.$b(),this.a.d-=u;return u>0},_.Nc=function(){return this.b.ec().Nc()};var ZOi=V(kr,"AbstractMapBasedMultimap/KeySet",327);G(747,1,To,iRe),_.Nb=function(n){Go(this,n)},_.Ob=function(){return this.c.Ob()},_.Pb=function(){return this.a=b(this.c.Pb(),44),this.a.ld()},_.Qb=function(){var n;g6(!!this.a),n=b(this.a.md(),16),this.c.Qb(),this.b.a.d-=n.gc(),n.$b(),this.a=null};var JOi=V(kr,"AbstractMapBasedMultimap/KeySet/1",747);G(503,402,{85:1,133:1},R$),_.bc=function(){return this.Sc()},_.ec=function(){return this.Uc()},_.Sc=function(){return new n$(this.c,this.Wc())},_.Tc=function(){return this.Wc().Tc()},_.Uc=function(){var n;return n=this.b,!n?this.b=this.Sc():n},_.Vc=function(){return this.Wc().Vc()},_.Wc=function(){return b(this.d,133)};var eNi=V(kr,"AbstractMapBasedMultimap/SortedAsMap",503);G(446,503,VDe,e8),_.bc=function(){return new a6(this.a,b(b(this.d,133),139))},_.Sc=function(){return new a6(this.a,b(b(this.d,133),139))},_.ec=function(){var n;return n=this.b,b(!n?this.b=new a6(this.a,b(b(this.d,133),139)):n,277)},_.Uc=function(){var n;return n=this.b,b(!n?this.b=new a6(this.a,b(b(this.d,133),139)):n,277)},_.Wc=function(){return b(b(this.d,133),139)},_.Xc=function(n){return b(b(this.d,133),139).Xc(n)},_.Yc=function(n){return b(b(this.d,133),139).Yc(n)},_.Zc=function(n,s){return new e8(this.a,b(b(this.d,133),139).Zc(n,s))},_.$c=function(n){return b(b(this.d,133),139).$c(n)},_._c=function(n){return b(b(this.d,133),139)._c(n)},_.ad=function(n,s){return new e8(this.a,b(b(this.d,133),139).ad(n,s))};var tNi=V(kr,"AbstractMapBasedMultimap/NavigableAsMap",446);G(502,327,tYt,n$),_.Nc=function(){return this.b.ec().Nc()};var rNi=V(kr,"AbstractMapBasedMultimap/SortedKeySet",502);G(401,502,HDe,a6);var nNi=V(kr,"AbstractMapBasedMultimap/NavigableKeySet",401);G(551,31,gx,iX),_.Fc=function(n){var s,u;if(gd(this),u=this.d.dc(),s=this.d.Fc(n),s)++this.f.d,u&&L$(this);return s},_.Gc=function(n){var s,u,f;if(n.dc())return!1;if(f=(gd(this),this.d.gc()),s=this.d.Gc(n),s)u=this.d.gc(),this.f.d+=u-f,f==0&&L$(this);return s},_.$b=function(){var n=(gd(this),this.d.gc());if(n==0)return;this.d.$b(),this.f.d-=n,vK(this)},_.Hc=function(n){return gd(this),this.d.Hc(n)},_.Ic=function(n){return gd(this),this.d.Ic(n)},_.Fb=function(n){if(n===this)return!0;return gd(this),da(this.d,n)},_.Hb=function(){return gd(this),Da(this.d)},_.Kc=function(){return gd(this),new b6e(this)},_.Mc=function(n){var s;if(gd(this),s=this.d.Mc(n),s)--this.f.d,vK(this);return s},_.gc=function(){return uRt(this)},_.Nc=function(){return gd(this),this.d.Nc()},_.Ib=function(){return gd(this),hc(this.d)};var iNi=V(kr,"AbstractMapBasedMultimap/WrappedCollection",551),Yf=ns(jn,"List");G(744,551,{20:1,31:1,16:1,15:1},W6e),_.jd=function(n){q2(this,n)},_.Nc=function(){return gd(this),this.d.Nc()},_.bd=function(n,s){var u;gd(this),u=this.d.dc(),b(this.d,15).bd(n,s),++this.a.d,u&&L$(this)},_.cd=function(n,s){var u,f,g;if(s.dc())return!1;if(g=(gd(this),this.d.gc()),u=b(this.d,15).cd(n,s),u)f=this.d.gc(),this.a.d+=f-g,g==0&&L$(this);return u},_.Xb=function(n){return gd(this),b(this.d,15).Xb(n)},_.dd=function(n){return gd(this),b(this.d,15).dd(n)},_.ed=function(){return gd(this),new URt(this)},_.fd=function(n){return gd(this),new cLt(this,n)},_.gd=function(n){var s;return gd(this),s=b(this.d,15).gd(n),--this.a.d,vK(this),s},_.hd=function(n,s){return gd(this),b(this.d,15).hd(n,s)},_.kd=function(n,s){return gd(this),J7t(this.a,this.e,b(this.d,15).kd(n,s),!this.b?this:this.b)};var aNi=V(kr,"AbstractMapBasedMultimap/WrappedList",744);G(1126,744,{20:1,31:1,16:1,15:1,59:1},RIt);var sNi=V(kr,"AbstractMapBasedMultimap/RandomAccessWrappedList",1126);G(628,1,To,b6e),_.Nb=function(n){Go(this,n)},_.Ob=function(){return C6(this),this.b.Ob()},_.Pb=function(){return C6(this),this.b.Pb()},_.Qb=function(){fIt(this)};var oNi=V(kr,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",628);G(745,628,S1,URt,cLt),_.Qb=function(){fIt(this)},_.Rb=function(n){var s=uRt(this.a)==0;(C6(this),b(this.b,128)).Rb(n),++this.a.a.d,s&&L$(this.a)},_.Sb=function(){return(C6(this),b(this.b,128)).Sb()},_.Tb=function(){return(C6(this),b(this.b,128)).Tb()},_.Ub=function(){return(C6(this),b(this.b,128)).Ub()},_.Vb=function(){return(C6(this),b(this.b,128)).Vb()},_.Wb=function(n){(C6(this),b(this.b,128)).Wb(n)};var lNi=V(kr,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",745);G(743,551,tYt,PIe),_.Nc=function(){return gd(this),this.d.Nc()};var cNi=V(kr,"AbstractMapBasedMultimap/WrappedSortedSet",743);G(1125,743,HDe,DRt);var uNi=V(kr,"AbstractMapBasedMultimap/WrappedNavigableSet",1125);G(1124,551,Bh,XIt),_.Nc=function(){return gd(this),this.d.Nc()};var hNi=V(kr,"AbstractMapBasedMultimap/WrappedSet",1124);G(1133,1,{},A),_.Kb=function(n){return M0n(b(n,44))};var dNi=V(kr,"AbstractMapBasedMultimap/lambda$1$Type",1133);G(1132,1,{},aTt),_.Kb=function(n){return new gw(this.a,n)};var fNi=V(kr,"AbstractMapBasedMultimap/lambda$2$Type",1132),pE=ns(jn,"Map/Entry");G(358,1,Dpe),_.Fb=function(n){var s;if(He(n,44))return s=b(n,44),Sm(this.ld(),s.ld())&&Sm(this.md(),s.md());return!1},_.Hb=function(){var n,s;return n=this.ld(),s=this.md(),(n==null?0:Da(n))^(s==null?0:Da(s))},_.nd=function(n){throw _e(new bi)},_.Ib=function(){return this.ld()+"="+this.md()};var pNi=V(kr,rYt,358);G(2086,31,gx),_.$b=function(){this.od().$b()},_.Hc=function(n){var s;if(He(n,44))return s=b(n,44),tpn(this.od(),s.ld(),s.md());return!1},_.Mc=function(n){var s;if(He(n,44))return s=b(n,44),M7t(this.od(),s.ld(),s.md());return!1},_.gc=function(){return this.od().d};var gNi=V(kr,"Multimaps/Entries",2086);G(749,2086,gx,BAe),_.Kc=function(){return this.a.kc()},_.od=function(){return this.a},_.Nc=function(){return this.a.lc()};var mNi=V(kr,"AbstractMultimap/Entries",749);G(750,749,Bh,D5e),_.Nc=function(){return this.a.lc()},_.Fb=function(n){return GMe(this,n)},_.Hb=function(){return q9t(this)};var bNi=V(kr,"AbstractMultimap/EntrySet",750);G(751,31,gx,FAe),_.$b=function(){this.a.$b()},_.Hc=function(n){return J1n(this.a,n)},_.Kc=function(){return this.a.nc()},_.gc=function(){return this.a.d},_.Nc=function(){return this.a.oc()};var yNi=V(kr,"AbstractMultimap/Values",751);G(2087,31,{849:1,20:1,31:1,16:1}),_.Jc=function(n){mi(n),p4(this).Jc(new TTt(n))},_.Nc=function(){var n;return n=p4(this).Nc(),Lfe(n,new H,64|n.yd()&1296,this.a.d)},_.Fc=function(n){return V5e(),!0},_.Gc=function(n){return mi(this),mi(n),He(n,552)?ipn(b(n,849)):!n.dc()&&Whe(this,n.Kc())},_.Hc=function(n){var s;return s=b(ex(HA(this.a),n),16),(!s?0:s.gc())>0},_.Fb=function(n){return Cxn(this,n)},_.Hb=function(){return Da(p4(this))},_.dc=function(){return p4(this).dc()},_.Mc=function(n){return bGt(this,n,1)>0},_.Ib=function(){return hc(p4(this))};var vNi=V(kr,"AbstractMultiset",2087);G(2089,2068,Bh),_.$b=function(){CX(this.a.a)},_.Hc=function(n){var s,u;if(He(n,504)){if(u=b(n,425),b(u.a.md(),16).gc()<=0)return!1;return s=o7t(this.a,u.a.ld()),s==b(u.a.md(),16).gc()}return!1},_.Mc=function(n){var s,u,f,g;if(He(n,504)){if(u=b(n,425),s=u.a.ld(),f=b(u.a.md(),16).gc(),f!=0)return g=this.a,mTn(g,s,f)}return!1};var _Ni=V(kr,"Multisets/EntrySet",2089);G(1139,2089,Bh,sTt),_.Kc=function(){return new r3t(KOt(HA(this.a.a)).Kc())},_.gc=function(){return HA(this.a.a).gc()};var ENi=V(kr,"AbstractMultiset/EntrySet",1139);G(627,742,nE),_.hc=function(){return this.pd()},_.jc=function(){return this.qd()},_.cc=function(n){return this.rd(n)},_.fc=function(n){return this.sd(n)},_.Zb=function(){var n;return n=this.f,!n?this.f=this.ac():n},_.qd=function(){return Hr(),Hr(),_J},_.Fb=function(n){return Tde(this,n)},_.rd=function(n){return b(_a(this,n),21)},_.sd=function(n){return b(LU(this,n),21)},_.mc=function(n){return Hr(),new e6(b(n,21))},_.pc=function(n,s){return new XIt(this,n,b(s,21))};var wNi=V(kr,"AbstractSetMultimap",627);G(1723,627,nE),_.hc=function(){return new by(this.b)},_.pd=function(){return new by(this.b)},_.jc=function(){return pOe(new by(this.b))},_.qd=function(){return pOe(new by(this.b))},_.cc=function(n){return b(b(_a(this,n),21),87)},_.rd=function(n){return b(b(_a(this,n),21),87)},_.fc=function(n){return b(b(LU(this,n),21),87)},_.sd=function(n){return b(b(LU(this,n),21),87)},_.mc=function(n){return He(n,277)?pOe(b(n,277)):(Hr(),new EIe(b(n,87)))},_.Zb=function(){var n;return n=this.f,!n?this.f=He(this.c,139)?new e8(this,b(this.c,139)):He(this.c,133)?new R$(this,b(this.c,133)):new s6(this,this.c):n},_.pc=function(n,s){return He(s,277)?new DRt(this,n,b(s,277)):new PIe(this,n,b(s,87))};var SNi=V(kr,"AbstractSortedSetMultimap",1723);G(1724,1723,nE),_.Zb=function(){var n;return n=this.f,b(b(!n?this.f=He(this.c,139)?new e8(this,b(this.c,139)):He(this.c,133)?new R$(this,b(this.c,133)):new s6(this,this.c):n,133),139)},_.ec=function(){var n;return n=this.i,b(b(!n?this.i=He(this.c,139)?new a6(this,b(this.c,139)):He(this.c,133)?new n$(this,b(this.c,133)):new d4(this,this.c):n,87),277)},_.bc=function(){return He(this.c,139)?new a6(this,b(this.c,139)):He(this.c,133)?new n$(this,b(this.c,133)):new d4(this,this.c)};var TNi=V(kr,"AbstractSortedKeySortedSetMultimap",1724);G(2109,1,{2046:1}),_.Fb=function(n){return Q2n(this,n)},_.Hb=function(){var n;return wLe((n=this.g,!n?this.g=new xle(this):n))},_.Ib=function(){var n;return iUt((n=this.f,!n?this.f=new bIe(this):n))};var xNi=V(kr,"AbstractTable",2109);G(679,Mg,Bh,xle),_.$b=function(){p3t()},_.Hc=function(n){var s,u;if(He(n,479))return s=b(n,697),u=b(ex(vNt(this.a),Uv(s.c.e,s.b)),85),!!u&&KLe(u.vc(),new gw(Uv(s.c.c,s.a),QA(s.c,s.b,s.a)));return!1},_.Kc=function(){return tdn(this.a)},_.Mc=function(n){var s,u;if(He(n,479))return s=b(n,697),u=b(ex(vNt(this.a),Uv(s.c.e,s.b)),85),!!u&&Nbn(u.vc(),new gw(Uv(s.c.c,s.a),QA(s.c,s.b,s.a)));return!1},_.gc=function(){return wOt(this.a)},_.Nc=function(){return opn(this.a)};var CNi=V(kr,"AbstractTable/CellSet",679);G(2025,31,gx,lTt),_.$b=function(){p3t()},_.Hc=function(n){return VEn(this.a,n)},_.Kc=function(){return rdn(this.a)},_.gc=function(){return wOt(this.a)},_.Nc=function(){return L7t(this.a)};var kNi=V(kr,"AbstractTable/Values",2025);G(1697,1696,nE);var ANi=V(kr,"ArrayListMultimapGwtSerializationDependencies",1697);G(520,1697,nE,nce,POe),_.hc=function(){return new Gu(this.a)},_.a=0;var RNi=V(kr,"ArrayListMultimap",520);G(678,2109,{678:1,2046:1,3:1},IGt);var INi=V(kr,"ArrayTable",678);G(2021,399,NO,pIt),_.Xb=function(n){return new kLe(this.a,n)};var ONi=V(kr,"ArrayTable/1",2021);G(2022,1,{},rTt),_.td=function(n){return new kLe(this.a,n)};var NNi=V(kr,"ArrayTable/1methodref$getCell$Type",2022);G(2110,1,{697:1}),_.Fb=function(n){var s;if(n===this)return!0;if(He(n,479))return s=b(n,697),Sm(Uv(this.c.e,this.b),Uv(s.c.e,s.b))&&Sm(Uv(this.c.c,this.a),Uv(s.c.c,s.a))&&Sm(QA(this.c,this.b,this.a),QA(s.c,s.b,s.a));return!1},_.Hb=function(){return NU(Ce(Te(ao,1),en,1,5,[Uv(this.c.e,this.b),Uv(this.c.c,this.a),QA(this.c,this.b,this.a)]))},_.Ib=function(){return"("+Uv(this.c.e,this.b)+","+Uv(this.c.c,this.a)+")="+QA(this.c,this.b,this.a)};var LNi=V(kr,"Tables/AbstractCell",2110);G(479,2110,{479:1,697:1},kLe),_.a=0,_.b=0,_.d=0;var MNi=V(kr,"ArrayTable/2",479);G(2024,1,{},nTt),_.td=function(n){return iDt(this.a,n)};var DNi=V(kr,"ArrayTable/2methodref$getValue$Type",2024);G(2023,399,NO,gIt),_.Xb=function(n){return iDt(this.a,n)};var PNi=V(kr,"ArrayTable/3",2023);G(2077,2065,aS),_.$b=function(){fK(this.kc())},_.vc=function(){return new bTt(this)},_.lc=function(){return new JNt(this.kc(),this.gc())};var BNi=V(kr,"Maps/IteratorBasedAbstractMap",2077);G(842,2077,aS),_.$b=function(){throw _e(new bi)},_._b=function(n){return L3t(this.c,n)},_.kc=function(){return new mIt(this,this.c.b.c.gc())},_.lc=function(){return Cue(this.c.b.c.gc(),16,new iTt(this))},_.xc=function(n){var s=b(t8(this.c,n),17);return!s?null:this.vd(s.a)},_.dc=function(){return this.c.b.c.dc()},_.ec=function(){return Mue(this.c)},_.zc=function(n,s){var u=b(t8(this.c,n),17);if(!u)throw _e(new fn(this.ud()+" "+n+" not in "+Mue(this.c)));return this.wd(u.a,s)},_.Bc=function(n){throw _e(new bi)},_.gc=function(){return this.c.b.c.gc()};var FNi=V(kr,"ArrayTable/ArrayMap",842);G(2020,1,{},iTt),_.td=function(n){return ENt(this.a,n)};var $Ni=V(kr,"ArrayTable/ArrayMap/0methodref$getEntry$Type",2020);G(2018,358,Dpe,aAt),_.ld=function(){return gsn(this.a,this.b)},_.md=function(){return this.a.vd(this.b)},_.nd=function(n){return this.a.wd(this.b,n)},_.b=0;var UNi=V(kr,"ArrayTable/ArrayMap/1",2018);G(2019,399,NO,mIt),_.Xb=function(n){return ENt(this.a,n)};var GNi=V(kr,"ArrayTable/ArrayMap/2",2019);G(2017,842,aS,lNt),_.ud=function(){return"Column"},_.vd=function(n){return QA(this.b,this.a,n)},_.wd=function(n,s){return OPt(this.b,this.a,n,s)},_.a=0;var zNi=V(kr,"ArrayTable/Row",2017);G(843,842,aS,bIe),_.vd=function(n){return new lNt(this.a,n)},_.zc=function(n,s){return b(s,85),Pnn()},_.wd=function(n,s){return b(s,85),Bnn()},_.ud=function(){return"Row"};var VNi=V(kr,"ArrayTable/RowMap",843);G(1157,1,ef,sAt),_.Ad=function(n){return(this.a.yd()&-262&n)!=0},_.yd=function(){return this.a.yd()&-262},_.zd=function(){return this.a.zd()},_.Nb=function(n){this.a.Nb(new lAt(n,this.b))},_.Bd=function(n){return this.a.Bd(new oAt(n,this.b))};var HNi=V(kr,"CollectSpliterators/1",1157);G(1158,1,Ln,oAt),_.Cd=function(n){this.a.Cd(this.b.Kb(n))};var qNi=V(kr,"CollectSpliterators/1/lambda$0$Type",1158);G(1159,1,Ln,lAt),_.Cd=function(n){this.a.Cd(this.b.Kb(n))};var YNi=V(kr,"CollectSpliterators/1/lambda$1$Type",1159);G(1154,1,ef,O6t),_.Ad=function(n){return((16464|this.b)&n)!=0},_.yd=function(){return 16464|this.b},_.zd=function(){return this.a.zd()},_.Nb=function(n){this.a.Qe(new uAt(n,this.c))},_.Bd=function(n){return this.a.Re(new cAt(n,this.c))},_.b=0;var WNi=V(kr,"CollectSpliterators/1WithCharacteristics",1154);G(1155,1,wG,cAt),_.Dd=function(n){this.a.Cd(this.b.td(n))};var jNi=V(kr,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1155);G(1156,1,wG,uAt),_.Dd=function(n){this.a.Cd(this.b.td(n))};var KNi=V(kr,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1156);G(1150,1,ef),_.Ad=function(n){return(this.a&n)!=0},_.yd=function(){return this.a},_.zd=function(){return!!this.e&&(this.b=aIe(this.b,this.e.zd())),aIe(this.b,0)},_.Nb=function(n){if(this.e)this.e.Nb(n),this.e=null;this.c.Nb(new hAt(this,n)),this.b=0},_.Bd=function(n){while(!0){if(!!this.e&&this.e.Bd(n))return HM(this.b,SG)&&(this.b=bp(this.b,1)),!0;else this.e=null;if(!this.c.Bd(new cTt(this)))return!1}},_.a=0,_.b=0;var XNi=V(kr,"CollectSpliterators/FlatMapSpliterator",1150);G(1152,1,Ln,cTt),_.Cd=function(n){fon(this.a,n)};var QNi=V(kr,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1152);G(1153,1,Ln,hAt),_.Cd=function(n){Fhn(this.a,this.b,n)};var ZNi=V(kr,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1153);G(1151,1150,ef,Q7t);var JNi=V(kr,"CollectSpliterators/FlatMapSpliteratorOfObject",1151);G(253,1,Ppe),_.Fd=function(n){return this.Ed(b(n,253))},_.Ed=function(n){var s;if(n==(Wle(),Eme))return 1;if(n==(Yle(),_me))return-1;if(s=(lK(),_U(this.a,n.a)),s!=0)return s;return He(this,526)==He(n,526)?0:He(this,526)?1:-1},_.Id=function(){return this.a},_.Fb=function(n){return W7e(this,n)};var eLi=V(kr,"Cut",253);G(1823,253,Ppe,Kkt),_.Ed=function(n){return n==this?0:1},_.Gd=function(n){throw _e(new m5e)},_.Hd=function(n){n.a+="+∞)"},_.Id=function(){throw _e(new zl(iYt))},_.Hb=function(){return fb(),N7e(this)},_.Jd=function(n){return!1},_.Ib=function(){return"+∞"};var _me,tLi=V(kr,"Cut/AboveAll",1823);G(526,253,{253:1,526:1,3:1,34:1},wIt),_.Gd=function(n){pu((n.a+="(",n),this.a)},_.Hd=function(n){qv(pu(n,this.a),93)},_.Hb=function(){return~Da(this.a)},_.Jd=function(n){return lK(),_U(this.a,n)<0},_.Ib=function(){return"/"+this.a+"\\"};var rLi=V(kr,"Cut/AboveValue",526);G(1822,253,Ppe,jkt),_.Ed=function(n){return n==this?0:-1},_.Gd=function(n){n.a+="(-∞"},_.Hd=function(n){throw _e(new m5e)},_.Id=function(){throw _e(new zl(iYt))},_.Hb=function(){return fb(),N7e(this)},_.Jd=function(n){return!0},_.Ib=function(){return"-∞"};var Eme,nLi=V(kr,"Cut/BelowAll",1822);G(1824,253,Ppe,SIt),_.Gd=function(n){pu((n.a+="[",n),this.a)},_.Hd=function(n){qv(pu(n,this.a),41)},_.Hb=function(){return Da(this.a)},_.Jd=function(n){return lK(),_U(this.a,n)<=0},_.Ib=function(){return"\\"+this.a+"/"};var iLi=V(kr,"Cut/BelowValue",1824);G(547,1,T1),_.Jc=function(n){Vo(this,n)},_.Ib=function(){return Jbn(b(PK(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())};var aLi=V(kr,"FluentIterable",547);G(442,547,T1,WM),_.Kc=function(){return new Nn(Mn(this.a.Kc(),new L))};var sLi=V(kr,"FluentIterable/2",442);G(1059,547,T1,ORt),_.Kc=function(){return m1(this)};var oLi=V(kr,"FluentIterable/3",1059);G(724,399,NO,yIe),_.Xb=function(n){return this.a[n].Kc()};var lLi=V(kr,"FluentIterable/3/1",724);G(2070,1,{}),_.Ib=function(){return hc(this.Kd().b)};var cLi=V(kr,"ForwardingObject",2070);G(2071,2070,aYt),_.Kd=function(){return this.Ld()},_.Jc=function(n){Vo(this,n)},_.Lc=function(){return this.Oc()},_.Nc=function(){return new Gr(this,0)},_.Oc=function(){return new Pr(null,this.Nc())},_.Fc=function(n){return this.Ld(),D3t()},_.Gc=function(n){return this.Ld(),P3t()},_.$b=function(){this.Ld(),B3t()},_.Hc=function(n){return this.Ld().Hc(n)},_.Ic=function(n){return this.Ld().Ic(n)},_.dc=function(){return this.Ld().b.dc()},_.Kc=function(){return this.Ld().Kc()},_.Mc=function(n){return this.Ld(),F3t()},_.gc=function(){return this.Ld().b.gc()},_.Pc=function(){return this.Ld().Pc()},_.Qc=function(n){return this.Ld().Qc(n)};var uLi=V(kr,"ForwardingCollection",2071);G(2078,31,qDe),_.Kc=function(){return this.Od()},_.Fc=function(n){throw _e(new bi)},_.Gc=function(n){throw _e(new bi)},_.Md=function(){var n=this.c;return!n?this.c=this.Nd():n},_.$b=function(){throw _e(new bi)},_.Hc=function(n){return n!=null&&tx(this,n,!1)},_.Nd=function(){switch(this.gc()){case 0:return Iw(),Iw(),wme;case 1:return Iw(),new kue(mi(this.Od().Pb()));default:return new Q6e(this,this.Pc())}},_.Mc=function(n){throw _e(new bi)};var hLi=V(kr,"ImmutableCollection",2078);G(727,2078,qDe,p5e),_.Kc=function(){return ZA(this.a.Kc())},_.Hc=function(n){return n!=null&&this.a.Hc(n)},_.Ic=function(n){return this.a.Ic(n)},_.dc=function(){return this.a.dc()},_.Od=function(){return ZA(this.a.Kc())},_.gc=function(){return this.a.gc()},_.Pc=function(){return this.a.Pc()},_.Qc=function(n){return this.a.Qc(n)},_.Ib=function(){return hc(this.a)};var dLi=V(kr,"ForwardingImmutableCollection",727);G(307,2078,LO),_.Kc=function(){return this.Od()},_.ed=function(){return this.Pd(0)},_.fd=function(n){return this.Pd(n)},_.jd=function(n){q2(this,n)},_.Nc=function(){return new Gr(this,16)},_.kd=function(n,s){return this.Qd(n,s)},_.bd=function(n,s){throw _e(new bi)},_.cd=function(n,s){throw _e(new bi)},_.Md=function(){return this},_.Fb=function(n){return pxn(this,n)},_.Hb=function(){return l1n(this)},_.dd=function(n){return n==null?-1:O_n(this,n)},_.Od=function(){return this.Pd(0)},_.Pd=function(n){return aue(this,n)},_.gd=function(n){throw _e(new bi)},_.hd=function(n,s){throw _e(new bi)},_.Qd=function(n,s){var u;return WX((u=new EAt(this),new Sy(u,n,s)))};var wme,fLi=V(kr,"ImmutableList",307);G(2105,307,LO),_.Kc=function(){return ZA(this.Rd().Kc())},_.kd=function(n,s){return WX(this.Rd().kd(n,s))},_.Hc=function(n){return n!=null&&this.Rd().Hc(n)},_.Ic=function(n){return this.Rd().Ic(n)},_.Fb=function(n){return da(this.Rd(),n)},_.Xb=function(n){return Uv(this,n)},_.Hb=function(){return Da(this.Rd())},_.dd=function(n){return this.Rd().dd(n)},_.dc=function(){return this.Rd().dc()},_.Od=function(){return ZA(this.Rd().Kc())},_.gc=function(){return this.Rd().gc()},_.Qd=function(n,s){return WX(this.Rd().kd(n,s))},_.Pc=function(){return this.Rd().Qc(mt(ao,en,1,this.Rd().gc(),5,1))},_.Qc=function(n){return this.Rd().Qc(n)},_.Ib=function(){return hc(this.Rd())};var pLi=V(kr,"ForwardingImmutableList",2105);G(729,1,MO),_.vc=function(){return D2(this)},_.wc=function(n){R8(this,n)},_.ec=function(){return Mue(this)},_.yc=function(n,s,u){return Vde(this,n,s,u)},_.Cc=function(){return this.Vd()},_.$b=function(){throw _e(new bi)},_._b=function(n){return this.xc(n)!=null},_.uc=function(n){return this.Vd().Hc(n)},_.Td=function(){return new nkt(this)},_.Ud=function(){return new ikt(this)},_.Fb=function(n){return ebn(this,n)},_.Hb=function(){return D2(this).Hb()},_.dc=function(){return this.gc()==0},_.zc=function(n,s){return Dnn()},_.Bc=function(n){throw _e(new bi)},_.Ib=function(){return Gwn(this)},_.Vd=function(){if(this.e)return this.e;return this.e=this.Ud()},_.c=null,_.d=null,_.e=null;var OXt,gLi=V(kr,"ImmutableMap",729);G(730,729,MO),_._b=function(n){return L3t(this,n)},_.uc=function(n){return kAt(this.b,n)},_.Sd=function(){return kBt(new oTt(this))},_.Td=function(){return kBt(VNt(this.b))},_.Ud=function(){return wm(),new p5e(zNt(this.b))},_.Fb=function(n){return AAt(this.b,n)},_.xc=function(n){return t8(this,n)},_.Hb=function(){return Da(this.b.c)},_.dc=function(){return this.b.c.dc()},_.gc=function(){return this.b.c.gc()},_.Ib=function(){return hc(this.b.c)};var mLi=V(kr,"ForwardingImmutableMap",730);G(2072,2071,Bpe),_.Kd=function(){return this.Wd()},_.Ld=function(){return this.Wd()},_.Nc=function(){return new Gr(this,1)},_.Fb=function(n){return n===this||this.Wd().Fb(n)},_.Hb=function(){return this.Wd().Hb()};var bLi=V(kr,"ForwardingSet",2072);G(1085,2072,Bpe,oTt),_.Kd=function(){return T6(this.a.b)},_.Ld=function(){return T6(this.a.b)},_.Hc=function(n){if(He(n,44)&&b(n,44).ld()==null)return!1;try{return CAt(T6(this.a.b),n)}catch(s){if(s=Qa(s),He(s,212))return!1;else throw _e(s)}},_.Wd=function(){return T6(this.a.b)},_.Qc=function(n){var s=kLt(T6(this.a.b),n);return T6(this.a.b).b.gc()=0?"+":"")+(u/60|0),s=Gj(d.Math.abs(u)%60),(mUt(),XXt)[this.q.getDay()]+" "+QXt[this.q.getMonth()]+" "+Gj(this.q.getDate())+" "+Gj(this.q.getHours())+":"+Gj(this.q.getMinutes())+":"+Gj(this.q.getSeconds())+" GMT"+n+s+" "+this.q.getFullYear()};var bJ=V(jn,"Date",206);G(2015,206,pYt,$$t),_.a=!1,_.b=0,_.c=0,_.d=0,_.e=0,_.f=0,_.g=!1,_.i=0,_.j=0,_.k=0,_.n=0,_.o=0,_.p=0;var FMi=V("com.google.gwt.i18n.shared.impl","DateRecord",2015);G(2064,1,{}),_.pe=function(){return null},_.qe=function(){return null},_.re=function(){return null},_.se=function(){return null},_.te=function(){return null};var $Mi=V(y5,"JSONValue",2064);G(221,2064,{221:1},C2,UAe),_.Fb=function(n){if(!He(n,221))return!1;return FOe(this.a,b(n,221).a)},_.oe=function(){return snn},_.Hb=function(){return kOe(this.a)},_.pe=function(){return this},_.Ib=function(){var n,s,u;u=new Vd("[");for(s=0,n=this.a.length;s0&&(u.a+=","),pu(u,jT(this,s));return u.a+="]",u.a};var UMi=V(y5,"JSONArray",221);G(493,2064,{493:1},GAe),_.oe=function(){return onn},_.qe=function(){return this},_.Ib=function(){return an(),""+this.a},_.a=!1;var FXt,$Xt,GMi=V(y5,"JSONBoolean",493);G(997,63,Lb,n3t);var zMi=V(y5,"JSONException",997);G(1036,2064,{},j),_.oe=function(){return lnn},_.Ib=function(){return mh};var UXt,VMi=V(y5,"JSONNull",1036);G(263,2064,{263:1},BW),_.Fb=function(n){if(!He(n,263))return!1;return this.a==b(n,263).a},_.oe=function(){return inn},_.Hb=function(){return RA(this.a)},_.re=function(){return this},_.Ib=function(){return this.a+""},_.a=0;var HMi=V(y5,"JSONNumber",263);G(190,2064,{190:1},_A,YF),_.Fb=function(n){if(!He(n,190))return!1;return FOe(this.a,b(n,190).a)},_.oe=function(){return ann},_.Hb=function(){return kOe(this.a)},_.se=function(){return this},_.Ib=function(){var n,s,u,f,g,E,S;S=new Vd("{"),n=!0,E=ode(this,mt(or,Bt,2,0,6,1));for(u=E,f=0,g=u.length;f=0?":"+this.c:"")+")"},_.c=0;var QFe=V(Nc,"StackTraceElement",319);IXt={3:1,484:1,34:1,2:1};var or=V(Nc,YDe,2);G(111,427,{484:1},gy,SM,pp);var h8i=V(Nc,"StringBuffer",111);G(104,427,{484:1},Dv,XC,Vd);var d8i=V(Nc,"StringBuilder",104);G(702,77,s0e,H5e);var f8i=V(Nc,"StringIndexOutOfBoundsException",702);G(2145,1,{});var HXt;G(48,63,{3:1,103:1,63:1,82:1,48:1},bi,fy);var p8i=V(Nc,"UnsupportedOperationException",48);G(247,242,{3:1,34:1,242:1,247:1},PU,tRe),_.Fd=function(n){return cHt(this,b(n,247))},_.ue=function(){return sx(BHt(this))},_.Fb=function(n){var s;if(this===n)return!0;if(He(n,247))return s=b(n,247),this.e==s.e&&cHt(this,s)==0;return!1},_.Hb=function(){var n;if(this.b!=0)return this.b;if(this.a<54)return n=Vc(this.f),this.b=gi(io(n,-1)),this.b=33*this.b+gi(io(kw(n,32),-1)),this.b=17*this.b+Ks(this.e),this.b;return this.b=17*wBt(this.c)+Ks(this.e),this.b},_.Ib=function(){return BHt(this)},_.a=0,_.b=0,_.d=0,_.e=0,_.f=0;var qXt,gE,ZFe,JFe,e$e,t$e,r$e,n$e,Ime=V("java.math","BigDecimal",247);G(92,242,{3:1,34:1,242:1,92:1},_b,p7t,B2,SFt,Gv),_.Fd=function(n){return vFt(this,b(n,92))},_.ue=function(){return sx(Npe(this,0))},_.Fb=function(n){return g7e(this,n)},_.Hb=function(){return wBt(this)},_.Ib=function(){return Npe(this,0)},_.b=-2,_.c=0,_.d=0,_.e=0;var YXt,yJ,WXt,Ome,vJ,XD,Z4=V("java.math","BigInteger",92),jXt,KXt,I5,QD;G(498,2065,aS),_.$b=function(){Jh(this)},_._b=function(n){return Zu(this,n)},_.uc=function(n){return nBt(this,n,this.i)||nBt(this,n,this.f)},_.vc=function(){return new R2(this)},_.xc=function(n){return An(this,n)},_.zc=function(n,s){return Ki(this,n,s)},_.Bc=function(n){return XA(this,n)},_.gc=function(){return xM(this)},_.g=0;var g8i=V(jn,"AbstractHashMap",498);G(267,Mg,Bh,R2),_.$b=function(){this.a.$b()},_.Hc=function(n){return H7t(this,n)},_.Kc=function(){return new W2(this.a)},_.Mc=function(n){var s;if(H7t(this,n))return s=b(n,44).ld(),this.a.Bc(s),!0;return!1},_.gc=function(){return this.a.gc()};var m8i=V(jn,"AbstractHashMap/EntrySet",267);G(268,1,To,W2),_.Nb=function(n){Go(this,n)},_.Pb=function(){return qw(this)},_.Ob=function(){return this.b},_.Qb=function(){vDt(this)},_.b=!1,_.d=0;var b8i=V(jn,"AbstractHashMap/EntrySetIterator",268);G(426,1,To,hM),_.Nb=function(n){Go(this,n)},_.Ob=function(){return hce(this)},_.Pb=function(){return wOe(this)},_.Qb=function(){Nd(this)},_.b=0,_.c=-1;var y8i=V(jn,"AbstractList/IteratorImpl",426);G(98,426,S1,Mo),_.Qb=function(){Nd(this)},_.Rb=function(n){BT(this,n)},_.Sb=function(){return this.b>0},_.Tb=function(){return this.b},_.Ub=function(){return Pn(this.b>0),this.a.Xb(this.c=--this.b)},_.Vb=function(){return this.b-1},_.Wb=function(n){DT(this.c!=-1),this.a.hd(this.c,n)};var v8i=V(jn,"AbstractList/ListIteratorImpl",98);G(244,56,DO,Sy),_.bd=function(n,s){HT(n,this.b),this.c.bd(this.a+n,s),++this.b},_.Xb=function(n){return qr(n,this.b),this.c.Xb(this.a+n)},_.gd=function(n){var s;return qr(n,this.b),s=this.c.gd(this.a+n),--this.b,s},_.hd=function(n,s){return qr(n,this.b),this.c.hd(this.a+n,s)},_.gc=function(){return this.b},_.a=0,_.b=0;var _8i=V(jn,"AbstractList/SubList",244);G(266,Mg,Bh,A2),_.$b=function(){this.a.$b()},_.Hc=function(n){return this.a._b(n)},_.Kc=function(){var n;return n=this.a.vc().Kc(),new $W(n)},_.Mc=function(n){if(this.a._b(n))return this.a.Bc(n),!0;return!1},_.gc=function(){return this.a.gc()};var E8i=V(jn,"AbstractMap/1",266);G(541,1,To,$W),_.Nb=function(n){Go(this,n)},_.Ob=function(){return this.a.Ob()},_.Pb=function(){var n;return n=b(this.a.Pb(),44),n.ld()},_.Qb=function(){this.a.Qb()};var w8i=V(jn,"AbstractMap/1/1",541);G(231,31,gx,hb),_.$b=function(){this.a.$b()},_.Hc=function(n){return this.a.uc(n)},_.Kc=function(){var n;return n=this.a.vc().Kc(),new CT(n)},_.gc=function(){return this.a.gc()};var S8i=V(jn,"AbstractMap/2",231);G(301,1,To,CT),_.Nb=function(n){Go(this,n)},_.Ob=function(){return this.a.Ob()},_.Pb=function(){var n;return n=b(this.a.Pb(),44),n.md()},_.Qb=function(){this.a.Qb()};var T8i=V(jn,"AbstractMap/2/1",301);G(494,1,{494:1,44:1}),_.Fb=function(n){var s;if(!He(n,44))return!1;return s=b(n,44),zc(this.d,s.ld())&&zc(this.e,s.md())},_.ld=function(){return this.d},_.md=function(){return this.e},_.Hb=function(){return l4(this.d)^l4(this.e)},_.nd=function(n){return VIe(this,n)},_.Ib=function(){return this.d+"="+this.e};var x8i=V(jn,"AbstractMap/AbstractEntry",494);G(397,494,{494:1,397:1,44:1},bj);var C8i=V(jn,"AbstractMap/SimpleEntry",397);G(2082,1,c0e),_.Fb=function(n){var s;if(!He(n,44))return!1;return s=b(n,44),zc(this.ld(),s.ld())&&zc(this.md(),s.md())},_.Hb=function(){return l4(this.ld())^l4(this.md())},_.Ib=function(){return this.ld()+"="+this.md()};var k8i=V(jn,rYt,2082);G(2090,2065,VDe),_.Xc=function(n){return ice(this.Ee(n))},_.tc=function(n){return XMt(this,n)},_._b=function(n){return HIe(this,n)},_.vc=function(){return new Nle(this)},_.Tc=function(){return uNt(this.Ge())},_.Yc=function(n){return ice(this.He(n))},_.xc=function(n){var s=n;return Jl(this.Fe(s))},_.$c=function(n){return ice(this.Ie(n))},_.ec=function(){return new LTt(this)},_.Vc=function(){return uNt(this.Je())},_._c=function(n){return ice(this.Ke(n))};var A8i=V(jn,"AbstractNavigableMap",2090);G(629,Mg,Bh,Nle),_.Hc=function(n){return He(n,44)&&XMt(this.b,b(n,44))},_.Kc=function(){return this.b.De()},_.Mc=function(n){var s;if(He(n,44))return s=b(n,44),this.b.Le(s);return!1},_.gc=function(){return this.b.gc()};var R8i=V(jn,"AbstractNavigableMap/EntrySet",629);G(1146,Mg,HDe,LTt),_.Nc=function(){return new gj(this)},_.$b=function(){this.a.$b()},_.Hc=function(n){return HIe(this.a,n)},_.Kc=function(){var n=this.a.vc().b.De();return new MTt(n)},_.Mc=function(n){if(HIe(this.a,n))return this.a.Bc(n),!0;return!1},_.gc=function(){return this.a.gc()};var I8i=V(jn,"AbstractNavigableMap/NavigableKeySet",1146);G(1147,1,To,MTt),_.Nb=function(n){Go(this,n)},_.Ob=function(){return hce(this.a.a)},_.Pb=function(){var n=LIt(this.a);return n.ld()},_.Qb=function(){$6t(this.a)};var O8i=V(jn,"AbstractNavigableMap/NavigableKeySet/1",1147);G(2103,31,gx),_.Fc=function(n){return BA(bO(this,n),BO),!0},_.Gc=function(n){return _n(n),F$(n!=this,"Can't add a queue to itself"),Po(this,n)},_.$b=function(){while(jhe(this)!=null);};var N8i=V(jn,"AbstractQueue",2103);G(310,31,{4:1,20:1,31:1,16:1},h4,$7t),_.Fc=function(n){return jOe(this,n),!0},_.$b=function(){eNe(this)},_.Hc=function(n){return xPt(new p8(this),n)},_.dc=function(){return wM(this)},_.Kc=function(){return new p8(this)},_.Mc=function(n){return Vdn(new p8(this),n)},_.gc=function(){return this.c-this.b&this.a.length-1},_.Nc=function(){return new Gr(this,272)},_.Qc=function(n){var s=this.c-this.b&this.a.length-1;return n.lengths&&ls(n,s,null),n},_.b=0,_.c=0;var L8i=V(jn,"ArrayDeque",310);G(459,1,To,p8),_.Nb=function(n){Go(this,n)},_.Ob=function(){return this.a!=this.b},_.Pb=function(){return YX(this)},_.Qb=function(){E9t(this)},_.a=0,_.b=0,_.c=-1;var M8i=V(jn,"ArrayDeque/IteratorImpl",459);G(13,56,bYt,Ut,Gu,Zh),_.bd=function(n,s){Cw(this,n,s)},_.Fc=function(n){return Gt(this,n)},_.cd=function(n,s){return GLe(this,n,s)},_.Gc=function(n){return Us(this,n)},_.$b=function(){kT(this.c,0)},_.Hc=function(n){return rc(this,n,0)!=-1},_.Jc=function(n){Ju(this,n)},_.Xb=function(n){return nr(this,n)},_.dd=function(n){return rc(this,n,0)},_.dc=function(){return this.c.length==0},_.Kc=function(){return new me(this)},_.gd=function(n){return xy(this,n)},_.Mc=function(n){return fh(this,n)},_.ce=function(n,s){l7t(this,n,s)},_.hd=function(n,s){return Lf(this,n,s)},_.gc=function(){return this.c.length},_.jd=function(n){ks(this,n)},_.Pc=function(){return cK(this.c)},_.Qc=function(n){return Og(this,n)};var N6n=V(jn,"ArrayList",13);G(7,1,To,me),_.Nb=function(n){Go(this,n)},_.Ob=function(){return _c(this)},_.Pb=function(){return ge(this)},_.Qb=function(){c8(this)},_.a=0,_.b=-1;var D8i=V(jn,"ArrayList/1",7);G(2112,d.Function,{},ie),_.Me=function(n,s){return Ra(n,s)},G(151,56,yYt,Qh),_.Hc=function(n){return w9t(this,n)!=-1},_.Jc=function(n){var s,u,f,g;_n(n);for(u=this.a,f=0,g=u.length;f0)throw _e(new fn(e9e+n+" greater than "+this.e));return this.f.Te()?OLt(this.c,this.b,this.a,n,s):c7t(this.c,n,s)},_.zc=function(n,s){if(!wfe(this.c,this.f,n,this.b,this.a,this.e,this.d))throw _e(new fn(n+" outside the range "+this.b+" to "+this.e));return zPt(this.c,n,s)},_.Bc=function(n){var s=n;if(!wfe(this.c,this.f,s,this.b,this.a,this.e,this.d))return null;return NLt(this.c,s)},_.Le=function(n){return RK(this,n.ld())&&vNe(this.c,n)},_.gc=function(){var n,s,u;if(this.f.Te()?this.a?s=uO(this.c,this.b,!0):s=uO(this.c,this.b,!1):s=RNe(this.c),!(!!s&&RK(this,s.d)?s:null))return 0;n=0;for(u=new lde(this.c,this.f,this.b,this.a,this.e,this.d);hce(u.a);u.b=b(wOe(u.a),44))++n;return n},_.ad=function(n,s){if(this.f.Te()&&this.c.a.Ne(n,this.b)<0)throw _e(new fn(e9e+n+EYt+this.b));return this.f.Ue()?OLt(this.c,n,s,this.e,this.d):u7t(this.c,n,s)},_.a=!1,_.d=!1;var n9i=V(jn,"TreeMap/SubMap",631);G(304,22,f0e,mj),_.Te=function(){return!1},_.Ue=function(){return!1};var Mme,Dme,Pme,Bme,EJ=ei(jn,"TreeMap/SubMapType",304,li,mpn,Con);G(1143,304,f0e,BRt),_.Ue=function(){return!0};var i9i=ei(jn,"TreeMap/SubMapType/1",1143,EJ,null,null);G(1144,304,f0e,YRt),_.Te=function(){return!0},_.Ue=function(){return!0};var a9i=ei(jn,"TreeMap/SubMapType/2",1144,EJ,null,null);G(1145,304,f0e,PRt),_.Te=function(){return!0};var s9i=ei(jn,"TreeMap/SubMapType/3",1145,EJ,null,null),nQt;G(157,Mg,{3:1,20:1,31:1,16:1,277:1,21:1,87:1,157:1},v5e,by,jI),_.Nc=function(){return new gj(this)},_.Fc=function(n){return G$(this,n)},_.$b=function(){this.a.$b()},_.Hc=function(n){return this.a._b(n)},_.Kc=function(){return this.a.ec().Kc()},_.Mc=function(n){return rue(this,n)},_.gc=function(){return this.a.gc()};var F6n=V(jn,"TreeSet",157);G(1082,1,{},FTt),_.Ve=function(n,s){return Vsn(this.a,n,s)};var o9i=V(p0e,"BinaryOperator/lambda$0$Type",1082);G(1083,1,{},$Tt),_.Ve=function(n,s){return Hsn(this.a,n,s)};var l9i=V(p0e,"BinaryOperator/lambda$1$Type",1083);G(952,1,{},zt),_.Kb=function(n){return n};var c9i=V(p0e,"Function/lambda$0$Type",952);G(395,1,Si,KI),_.Mb=function(n){return!this.a.Mb(n)};var u9i=V(p0e,"Predicate/lambda$2$Type",395);G(581,1,{581:1});var iQt=V(_D,"Handler",581);G(2107,1,_G),_.xe=function(){return"DUMMY"},_.Ib=function(){return this.xe()};var u$e,h9i=V(_D,"Level",2107);G(1706,2107,_G,Kt),_.xe=function(){return"INFO"};var d9i=V(_D,"Level/LevelInfo",1706);G(1843,1,{},hkt);var Fme,f9i=V(_D,"LogManager",1843);G(1896,1,_G,F6t),_.b=null;var p9i=V(_D,"LogRecord",1896);G(525,1,{525:1},khe),_.e=!1;var aQt=!1,sQt=!1,Fg=!1,oQt=!1,lQt=!1,g9i=V(_D,"Logger",525);G(835,581,{581:1},rr);var m9i=V(_D,"SimpleConsoleLogHandler",835);G(108,22,{3:1,34:1,22:1,108:1},pce);var h$e,fc,xx,Wl=ei(zs,"Collector/Characteristics",108,li,nfn,kon),cQt;G(758,1,{},tOe);var b9i=V(zs,"CollectorImpl",758);G(1074,1,{},je),_.Ve=function(n,s){return Bbn(b(n,213),b(s,213))};var y9i=V(zs,"Collectors/10methodref$merge$Type",1074);G(1075,1,{},Nt),_.Kb=function(n){return U7t(b(n,213))};var v9i=V(zs,"Collectors/11methodref$toString$Type",1075);G(1076,1,{},UTt),_.Kb=function(n){return an(),KRe(n)?!0:!1};var _9i=V(zs,"Collectors/12methodref$test$Type",1076);G(144,1,{},ct),_.Yd=function(n,s){b(n,16).Fc(s)};var E9i=V(zs,"Collectors/20methodref$add$Type",144);G(146,1,{},bt),_.Xe=function(){return new Ut};var w9i=V(zs,"Collectors/21methodref$ctor$Type",146);G(359,1,{},Pe),_.Xe=function(){return new Rs};var S9i=V(zs,"Collectors/23methodref$ctor$Type",359);G(360,1,{},Ue),_.Yd=function(n,s){$s(b(n,49),s)};var T9i=V(zs,"Collectors/24methodref$add$Type",360);G(1069,1,{},qe),_.Ve=function(n,s){return OAt(b(n,15),b(s,16))};var x9i=V(zs,"Collectors/4methodref$addAll$Type",1069);G(1073,1,{},Ke),_.Yd=function(n,s){Eb(b(n,213),b(s,484))};var C9i=V(zs,"Collectors/9methodref$add$Type",1073);G(1072,1,{},tOt),_.Xe=function(){return new j2(this.a,this.b,this.c)};var k9i=V(zs,"Collectors/lambda$15$Type",1072);G(1077,1,{},Je),_.Xe=function(){var n;return n=new Ty,Dy(n,(an(),!1),new Ut),Dy(n,!0,new Ut),n};var A9i=V(zs,"Collectors/lambda$22$Type",1077);G(1078,1,{},GTt),_.Xe=function(){return Ce(Te(ao,1),en,1,5,[this.a])};var R9i=V(zs,"Collectors/lambda$25$Type",1078);G(1079,1,{},zTt),_.Yd=function(n,s){cun(this.a,H2(n))};var I9i=V(zs,"Collectors/lambda$26$Type",1079);G(1080,1,{},VTt),_.Ve=function(n,s){return Bun(this.a,H2(n),H2(s))};var O9i=V(zs,"Collectors/lambda$27$Type",1080);G(1081,1,{},De),_.Kb=function(n){return H2(n)[0]};var N9i=V(zs,"Collectors/lambda$28$Type",1081);G(728,1,{},le),_.Ve=function(n,s){return D6e(n,s)};var L9i=V(zs,"Collectors/lambda$4$Type",728);G(145,1,{},pe),_.Ve=function(n,s){return yin(b(n,16),b(s,16))};var M9i=V(zs,"Collectors/lambda$42$Type",145);G(361,1,{},fe),_.Ve=function(n,s){return vin(b(n,49),b(s,49))};var D9i=V(zs,"Collectors/lambda$50$Type",361);G(362,1,{},be),_.Kb=function(n){return b(n,49)};var P9i=V(zs,"Collectors/lambda$51$Type",362);G(1068,1,{},HTt),_.Yd=function(n,s){V1n(this.a,b(n,85),s)};var B9i=V(zs,"Collectors/lambda$7$Type",1068);G(1070,1,{},Ge),_.Ve=function(n,s){return v1n(b(n,85),b(s,85),new qe)};var F9i=V(zs,"Collectors/lambda$8$Type",1070);G(1071,1,{},qTt),_.Kb=function(n){return myn(this.a,b(n,85))};var $9i=V(zs,"Collectors/lambda$9$Type",1071);G(550,1,{}),_.$e=function(){f8(this)},_.d=!1;var U9i=V(zs,"TerminatableStream",550);G(827,550,t9e,MIe),_.$e=function(){f8(this)};var G9i=V(zs,"DoubleStreamImpl",827);G(1847,736,ef,rOt),_.Re=function(n){return v_n(this,b(n,189))},_.a=null;var z9i=V(zs,"DoubleStreamImpl/2",1847);G(1848,1,RG,YTt),_.Pe=function(n){dan(this.a,n)};var V9i=V(zs,"DoubleStreamImpl/2/lambda$0$Type",1848);G(1845,1,RG,WTt),_.Pe=function(n){han(this.a,n)};var H9i=V(zs,"DoubleStreamImpl/lambda$0$Type",1845);G(1846,1,RG,jTt),_.Pe=function(n){rFt(this.a,n)};var q9i=V(zs,"DoubleStreamImpl/lambda$2$Type",1846);G(1397,735,ef,qMt),_.Re=function(n){return apn(this,b(n,202))},_.a=0,_.b=0,_.c=0;var Y9i=V(zs,"IntStream/5",1397);G(806,550,t9e,DIe),_.$e=function(){f8(this)},_._e=function(){return Yv(this),this.a};var W9i=V(zs,"IntStreamImpl",806);G(807,550,t9e,sRe),_.$e=function(){f8(this)},_._e=function(){return Yv(this),mIe(),rQt};var j9i=V(zs,"IntStreamImpl/Empty",807);G(1687,1,wG,KTt),_.Dd=function(n){dPt(this.a,n)};var K9i=V(zs,"IntStreamImpl/lambda$4$Type",1687),$6n=ns(zs,"Stream");G(26,550,{533:1,687:1,848:1},Pr),_.$e=function(){f8(this)};var O5,X9i=V(zs,"StreamImpl",26);G(1102,500,ef,I6t),_.Bd=function(n){while(lgn(this))if(this.a.Bd(n))return!0;else f8(this.b),this.b=null,this.a=null;return!1};var Q9i=V(zs,"StreamImpl/1",1102);G(1103,1,Ln,XTt),_.Cd=function(n){Dcn(this.a,b(n,848))};var Z9i=V(zs,"StreamImpl/1/lambda$0$Type",1103);G(1104,1,Si,QTt),_.Mb=function(n){return $s(this.a,n)};var J9i=V(zs,"StreamImpl/1methodref$add$Type",1104);G(1105,500,ef,uLt),_.Bd=function(n){var s;if(!this.a)s=new Ut,this.b.a.Nb(new ZTt(s)),Hr(),ks(s,this.c),this.a=new Gr(s,16);return WDt(this.a,n)},_.a=null;var ePi=V(zs,"StreamImpl/5",1105);G(1106,1,Ln,ZTt),_.Cd=function(n){Gt(this.a,n)};var tPi=V(zs,"StreamImpl/5/2methodref$add$Type",1106);G(737,500,ef,INe),_.Bd=function(n){this.b=!1;while(!this.b&&this.c.Bd(new jAt(this,n)));return this.b},_.b=!1;var rPi=V(zs,"StreamImpl/FilterSpliterator",737);G(1096,1,Ln,jAt),_.Cd=function(n){Oun(this.a,this.b,n)};var nPi=V(zs,"StreamImpl/FilterSpliterator/lambda$0$Type",1096);G(1091,736,ef,r8t),_.Re=function(n){return hon(this,b(n,189))};var iPi=V(zs,"StreamImpl/MapToDoubleSpliterator",1091);G(1095,1,Ln,KAt),_.Cd=function(n){Din(this.a,this.b,n)};var aPi=V(zs,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1095);G(1090,735,ef,n8t),_.Re=function(n){return don(this,b(n,202))};var sPi=V(zs,"StreamImpl/MapToIntSpliterator",1090);G(1094,1,Ln,XAt),_.Cd=function(n){Pin(this.a,this.b,n)};var oPi=V(zs,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1094);G(734,500,ef,gNe),_.Bd=function(n){return k6t(this,n)};var lPi=V(zs,"StreamImpl/MapToObjSpliterator",734);G(1093,1,Ln,QAt),_.Cd=function(n){Bin(this.a,this.b,n)};var cPi=V(zs,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1093);G(1092,500,ef,N9t),_.Bd=function(n){while(dce(this.b,0)){if(!this.a.Bd(new ke))return!1;this.b=bp(this.b,1)}return this.a.Bd(n)},_.b=0;var uPi=V(zs,"StreamImpl/SkipSpliterator",1092);G(1097,1,Ln,ke),_.Cd=function(n){};var hPi=V(zs,"StreamImpl/SkipSpliterator/lambda$0$Type",1097);G(626,1,Ln,we),_.Cd=function(n){ATt(this,n)};var dPi=V(zs,"StreamImpl/ValueConsumer",626);G(1098,1,Ln,Ae),_.Cd=function(n){L2()};var fPi=V(zs,"StreamImpl/lambda$0$Type",1098);G(1099,1,Ln,at),_.Cd=function(n){L2()};var pPi=V(zs,"StreamImpl/lambda$1$Type",1099);G(1100,1,{},JTt),_.Ve=function(n,s){return Hon(this.a,n,s)};var gPi=V(zs,"StreamImpl/lambda$4$Type",1100);G(1101,1,Ln,ZAt),_.Cd=function(n){Xsn(this.b,this.a,n)};var mPi=V(zs,"StreamImpl/lambda$5$Type",1101);G(1107,1,Ln,ext),_.Cd=function(n){o1n(this.a,b(n,380))};var bPi=V(zs,"TerminatableStream/lambda$0$Type",1107);G(2142,1,{}),G(2014,1,{},ut);var yPi=V("javaemul.internal","ConsoleLogger",2014),U6n=0;G(2134,1,{}),G(1830,1,Ln,gt),_.Cd=function(n){b(n,317)};var vPi=V(FO,"BowyerWatsonTriangulation/lambda$0$Type",1830);G(1831,1,Ln,txt),_.Cd=function(n){Po(this.a,b(n,317).e)};var _Pi=V(FO,"BowyerWatsonTriangulation/lambda$1$Type",1831);G(1832,1,Ln,vt),_.Cd=function(n){b(n,177)};var EPi=V(FO,"BowyerWatsonTriangulation/lambda$2$Type",1832);G(1827,1,ki,rxt),_.Ne=function(n,s){return Hpn(this.a,b(n,177),b(s,177))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var wPi=V(FO,"NaiveMinST/lambda$0$Type",1827);G(449,1,{},dM);var SPi=V(FO,"NodeMicroLayout",449);G(177,1,{177:1},CA),_.Fb=function(n){var s;if(He(n,177))return s=b(n,177),zc(this.a,s.a)&&zc(this.b,s.b)||zc(this.a,s.b)&&zc(this.b,s.a);else return!1},_.Hb=function(){return l4(this.a)+l4(this.b)};var G6n=V(FO,"TEdge",177);G(317,1,{317:1},gDe),_.Fb=function(n){var s;if(He(n,317))return s=b(n,317),dX(this,s.a)&&dX(this,s.b)&&dX(this,s.c);else return!1},_.Hb=function(){return l4(this.a)+l4(this.b)+l4(this.c)};var TPi=V(FO,"TTriangle",317);G(225,1,{225:1},Vj);var xPi=V(FO,"Tree",225);G(1218,1,{},KLt);var CPi=V(TYt,"Scanline",1218),uQt=ns(TYt,xYt);G(1758,1,{},HDt);var kPi=V(k1,"CGraph",1758);G(316,1,{316:1},ZLt),_.b=0,_.c=0,_.d=0,_.g=0,_.i=0,_.k=Gs;var APi=V(k1,"CGroup",316);G(830,1,{},w5e);var RPi=V(k1,"CGroup/CGroupBuilder",830);G(60,1,{60:1},u6t),_.Ib=function(){var n;if(this.j)return wi(this.j.Kb(this));return gb(wJ),wJ.o+"@"+(n=Sw(this)>>>0,n.toString(16))},_.f=0,_.i=Gs;var wJ=V(k1,"CNode",60);G(829,1,{},S5e);var IPi=V(k1,"CNode/CNodeBuilder",829),hQt;G(1590,1,{},ir),_.ff=function(n,s){return 0},_.gf=function(n,s){return 0};var OPi=V(k1,kYt,1590);G(1853,1,{},qt),_.cf=function(n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de;M=Wa;for(f=new me(n.a.b);f.af.d.c||f.d.c==E.d.c&&f.d.b0?n+this.n.d+this.n.a:0},_.kf=function(){var n,s,u,f,g;if(g=0,this.e)this.b?g=this.b.a:!!this.a[1][1]&&(g=this.a[1][1].kf());else if(this.g)g=f7e(this,Tfe(this,null,!0));else for(s=(K0(),Ce(Te(Cx,1),Rt,237,0,[Mc,qu,Dc])),u=0,f=s.length;u0?g+this.n.b+this.n.c:0},_.lf=function(){var n,s,u,f,g;if(this.g){n=Tfe(this,null,!1);for(u=(K0(),Ce(Te(Cx,1),Rt,237,0,[Mc,qu,Dc])),f=0,g=u.length;f0)f[0]+=this.d,u-=f[0];if(f[2]>0)f[2]+=this.d,u-=f[2];this.c.a=d.Math.max(0,u),this.c.d=s.d+n.d+(this.c.a-u)/2,f[1]=d.Math.max(f[1],u),hNe(this,qu,s.d+n.d+f[0]-(f[1]-u)/2,f)},_.b=null,_.d=0,_.e=!1,_.f=!1,_.g=!1;var Vme=0,SJ=0,ZPi=V(aE,"GridContainerCell",1538);G(471,22,{3:1,34:1,22:1,471:1},mce);var m_,Um,h0,EQt=ei(aE,"HorizontalLabelAlignment",471,li,afn,Non),wQt;G(314,217,{217:1,314:1},DLt,YDt,ALt),_.jf=function(){return gOt(this)},_.kf=function(){return R6e(this)},_.a=0,_.c=!1;var z6n=V(aE,"LabelCell",314);G(252,336,{217:1,336:1,252:1},V8),_.jf=function(){return J8(this)},_.kf=function(){return eD(this)},_.lf=function(){dpe(this)},_.mf=function(){fpe(this)},_.b=0,_.c=0,_.d=!1;var JPi=V(aE,"StripContainerCell",252);G(1691,1,Si,Et),_.Mb=function(n){return Nnn(b(n,217))};var eBi=V(aE,"StripContainerCell/lambda$0$Type",1691);G(1692,1,{},Xn),_.Ye=function(n){return b(n,217).kf()};var tBi=V(aE,"StripContainerCell/lambda$1$Type",1692);G(1693,1,Si,Yt),_.Mb=function(n){return Lnn(b(n,217))};var rBi=V(aE,"StripContainerCell/lambda$2$Type",1693);G(1694,1,{},Bn),_.Ye=function(n){return b(n,217).jf()};var nBi=V(aE,"StripContainerCell/lambda$3$Type",1694);G(472,22,{3:1,34:1,22:1,472:1},bce);var d0,b_,eg,SQt=ei(aE,"VerticalLabelAlignment",472,li,ifn,Lon),TQt;G(800,1,{},NDe),_.c=0,_.d=0,_.k=0,_.s=0,_.t=0,_.v=!1,_.w=0,_.D=!1,_.F=!1;var iBi=V(uZ,"NodeContext",800);G(1536,1,ki,si),_.Ne=function(n,s){return kRt(b(n,64),b(s,64))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var aBi=V(uZ,"NodeContext/0methodref$comparePortSides$Type",1536);G(1537,1,ki,dn),_.Ne=function(n,s){return lwn(b(n,117),b(s,117))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var sBi=V(uZ,"NodeContext/1methodref$comparePortContexts$Type",1537);G(164,22,{3:1,34:1,22:1,164:1},Pf);var xQt,CQt,kQt,AQt,RQt,IQt,OQt,NQt,LQt,MQt,DQt,PQt,BQt,FQt,$Qt,UQt,GQt,zQt,VQt,HQt,qQt,Hme,YQt=ei(uZ,"NodeLabelLocation",164,li,tfe,Mon),WQt;G(117,1,{117:1},MGt),_.a=!1;var oBi=V(uZ,"PortContext",117);G(1541,1,Ln,Ii),_.Cd=function(n){Y3t(b(n,314))};var lBi=V(OG,UYt,1541);G(1542,1,Si,Vn),_.Mb=function(n){return!!b(n,117).c};var cBi=V(OG,GYt,1542);G(1543,1,Ln,Ei),_.Cd=function(n){Y3t(b(n,117).c)};var uBi=V(OG,"LabelPlacer/lambda$2$Type",1543),L$e;G(1540,1,Ln,vn),_.Cd=function(n){PT(),hnn(b(n,117))};var hBi=V(OG,"NodeLabelAndSizeUtilities/lambda$0$Type",1540);G(801,1,Ln,l6e),_.Cd=function(n){xin(this.b,this.c,this.a,b(n,187))},_.a=!1,_.c=!1;var dBi=V(OG,"NodeLabelCellCreator/lambda$0$Type",801);G(1539,1,Ln,axt),_.Cd=function(n){pnn(this.a,b(n,187))};var fBi=V(OG,"PortContextCreator/lambda$0$Type",1539),TJ;G(1902,1,{},Li);var pBi=V(UO,"GreedyRectangleStripOverlapRemover",1902);G(1903,1,ki,Ia),_.Ne=function(n,s){return nsn(b(n,226),b(s,226))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var gBi=V(UO,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1903);G(1849,1,{},gkt),_.a=5,_.e=0;var mBi=V(UO,"RectangleStripOverlapRemover",1849);G(1850,1,ki,tt),_.Ne=function(n,s){return isn(b(n,226),b(s,226))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var bBi=V(UO,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1850);G(1852,1,ki,Fn),_.Ne=function(n,s){return Wun(b(n,226),b(s,226))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var yBi=V(UO,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1852);G(417,22,{3:1,34:1,22:1,417:1},yj);var nz,qme,Yme,iz,jQt=ei(UO,"RectangleStripOverlapRemover/OverlapRemovalDirection",417,li,vpn,Don),KQt;G(226,1,{226:1},Nue);var vBi=V(UO,"RectangleStripOverlapRemover/RectangleNode",226);G(1851,1,Ln,sxt),_.Cd=function(n){M_n(this.a,b(n,226))};var _Bi=V(UO,"RectangleStripOverlapRemover/lambda$1$Type",1851);G(1323,1,ki,Hn),_.Ne=function(n,s){return JAn(b(n,176),b(s,176))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var EBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1323);G(1326,1,{},_t),_.Kb=function(n){return b(n,334).a};var wBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1326);G(1327,1,Si,Sr),_.Mb=function(n){return b(n,332).a};var SBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1327);G(1328,1,Si,ln),_.Mb=function(n){return b(n,332).a};var TBi=V(Lm,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1328);G(1321,1,ki,mn),_.Ne=function(n,s){return Ikn(b(n,176),b(s,176))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var xBi=V(Lm,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1321);G(1324,1,{},On),_.Kb=function(n){return b(n,334).a};var CBi=V(Lm,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1324);G(781,1,ki,as),_.Ne=function(n,s){return d1n(b(n,176),b(s,176))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var kBi=V(Lm,"PolyominoCompactor/MinNumOfExtensionsComparator",781);G(1319,1,ki,Ir),_.Ne=function(n,s){return _mn(b(n,330),b(s,330))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var ABi=V(Lm,"PolyominoCompactor/MinPerimeterComparator",1319);G(1320,1,ki,hn),_.Ne=function(n,s){return i_n(b(n,330),b(s,330))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var RBi=V(Lm,"PolyominoCompactor/MinPerimeterComparatorWithShape",1320);G(1322,1,ki,zn),_.Ne=function(n,s){return Xkn(b(n,176),b(s,176))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var IBi=V(Lm,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1322);G(1325,1,{},Di),_.Kb=function(n){return b(n,334).a};var OBi=V(Lm,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1325);G(782,1,{},vRe),_.Ve=function(n,s){return hpn(this,b(n,42),b(s,176))};var NBi=V(Lm,"SuccessorCombination",782);G(649,1,{},aa),_.Ve=function(n,s){var u;return kTn((u=b(n,42),b(s,176),u))};var LBi=V(Lm,"SuccessorJitter",649);G(648,1,{},Ca),_.Ve=function(n,s){var u;return f4n((u=b(n,42),b(s,176),u))};var MBi=V(Lm,"SuccessorLineByLine",648);G(573,1,{},os),_.Ve=function(n,s){var u;return kxn((u=b(n,42),b(s,176),u))};var DBi=V(Lm,"SuccessorManhattan",573);G(1344,1,{},ma),_.Ve=function(n,s){var u;return BCn((u=b(n,42),b(s,176),u))};var PBi=V(Lm,"SuccessorMaxNormWindingInMathPosSense",1344);G(409,1,{},XI),_.Ve=function(n,s){return J6e(this,n,s)},_.c=!1,_.d=!1,_.e=!1,_.f=!1;var BBi=V(Lm,"SuccessorQuadrantsGeneric",409);G(1345,1,{},Yn),_.Kb=function(n){return b(n,334).a};var FBi=V(Lm,"SuccessorQuadrantsGeneric/lambda$0$Type",1345);G(332,22,{3:1,34:1,22:1,332:1},vj),_.a=!1;var az,sz,oz,lz,XQt=ei(dZ,d9e,332,li,bpn,Pon),QQt;G(1317,1,{}),_.Ib=function(){var n,s,u,f,g,E;u=" ",n=$t(0);for(g=0;g=0?"b"+n+"["+Che(this.a)+"]":"b["+Che(this.a)+"]";return"b_"+Sw(this)};var kFi=V(LG,"FBendpoint",250);G(290,137,{3:1,290:1,96:1,137:1},h6t),_.Ib=function(){return Che(this)};var AFi=V(LG,"FEdge",290);G(235,137,{3:1,235:1,96:1,137:1},rX);var H6n=V(LG,"FGraph",235);G(454,309,{3:1,454:1,309:1,96:1,137:1},fMt),_.Ib=function(){return this.b==null||this.b.length==0?"l["+Che(this.a)+"]":"l_"+this.b};var RFi=V(LG,"FLabel",454);G(153,309,{3:1,153:1,309:1,96:1,137:1},qRt),_.Ib=function(){return UOe(this)},_.a=0;var IFi=V(LG,"FNode",153);G(2100,1,{}),_.vf=function(n){uDe(this,n)},_.wf=function(){p$t(this)},_.d=0;var OFi=V(E9e,"AbstractForceModel",2100);G(641,2100,{641:1},hPt),_.uf=function(n,s){var u,f,g,E,S;return GHt(this.f,n,s),g=no(Uo(s.d),n.d),S=d.Math.sqrt(g.a*g.a+g.b*g.b),f=d.Math.max(0,S-d8(n.e)/2-d8(s.e)/2),u=SGt(this.e,n,s),u>0?E=-Hun(f,this.c)*u:E=vsn(f,this.b)*b(ce(n,(c0(),N5)),17).a,_m(g,E/S),g},_.vf=function(n){uDe(this,n),this.a=b(ce(n,(c0(),IJ)),17).a,this.c=rt(ht(ce(n,OJ))),this.b=rt(ht(ce(n,Jme)))},_.xf=function(n){return n0&&(E-=Ann(f,this.a)*u),_m(g,E*this.b/S),g},_.vf=function(n){var s,u,f,g,E,S,C;uDe(this,n),this.b=rt(ht(ce(n,(c0(),e1e)))),this.c=this.b/b(ce(n,IJ),17).a,f=n.e.c.length,E=0,g=0;for(C=new me(n.e);C.a0},_.a=0,_.b=0,_.c=0;var LFi=V(E9e,"FruchtermanReingoldModel",642);G(860,1,Ep,sSt),_.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,gZ),""),"Force Model"),"Determines the model for force calculation."),z$e),(Fy(),ja)),V$e),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,w9e),""),"Iterations"),"The number of iterations on the force model."),$t(300)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,S9e),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,N0e),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Mm),el),Bs),Tr(Qr)))),Ls(n,N0e,gZ,bZt),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,L0e),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),el),Bs),Tr(Qr)))),Ls(n,L0e,gZ,pZt),Rqt((new oSt,n))};var hZt,dZt,z$e,fZt,pZt,gZt,mZt,bZt,MFi=V(SD,"ForceMetaDataProvider",860);G(432,22,{3:1,34:1,22:1,432:1},ERe);var Zme,RJ,V$e=ei(SD,"ForceModelStrategy",432,li,hdn,$on),yZt;G(Uy,1,Ep,oSt),_.hf=function(n){Rqt(n)};var vZt,_Zt,H$e,IJ,q$e,EZt,wZt,SZt,TZt,Y$e,xZt,W$e,j$e,CZt,N5,kZt,Jme,K$e,AZt,RZt,OJ,e1e,IZt,OZt,NZt,X$e,LZt,DFi=V(SD,"ForceOptions",Uy);G(1001,1,{},cb),_.sf=function(){var n;return n=new E5e,n},_.tf=function(n){};var PFi=V(SD,"ForceOptions/ForceFactory",1001),hz,e9,L5,NJ;G(861,1,Ep,lSt),_.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,C9e),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(an(),!1)),(Fy(),so)),_s),Tr((Q0(),Qs))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,k9e),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),el),Bs),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Hm]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,A9e),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Q$e),ja),iUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,R9e),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Mm),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,I9e),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),$t(sa)),pc),qo),Tr(Qr)))),nqt((new cSt,n))};var MZt,DZt,Q$e,PZt,BZt,FZt,BFi=V(SD,"StressMetaDataProvider",861);G(1004,1,Ep,cSt),_.hf=function(n){nqt(n)};var LJ,Z$e,J$e,eUe,tUe,rUe,$Zt,UZt,GZt,zZt,nUe,VZt,FFi=V(SD,"StressOptions",1004);G(1005,1,{},lb),_.sf=function(){var n;return n=new d6t,n},_.tf=function(n){};var $Fi=V(SD,"StressOptions/StressFactory",1005);G(1110,205,sE,d6t),_.rf=function(n,s){var u,f,g,E,S;s.Ug(JYt,1),er(Jt(It(n,(YU(),tUe))))?er(Jt(It(n,nUe)))||K$((u=new dM((bw(),new cw(n))),u)):_zt(new E5e,n,s.eh(1)),g=DPt(n),f=dHt(this.a,g);for(S=f.Kc();S.Ob();){if(E=b(S.Pb(),235),E.e.c.length<=1)continue;XAn(this.b,E),wxn(this.b),Ju(E.d,new dd)}g=Cqt(f),Pqt(g),s.Vg()};var UFi=V(yZ,"StressLayoutProvider",1110);G(1111,1,Ln,dd),_.Cd=function(n){yDe(b(n,454))};var GFi=V(yZ,"StressLayoutProvider/lambda$0$Type",1111);G(1002,1,{},ukt),_.c=0,_.e=0,_.g=0;var zFi=V(yZ,"StressMajorization",1002);G(391,22,{3:1,34:1,22:1,391:1},yce);var t1e,r1e,n1e,iUe=ei(yZ,"StressMajorization/Dimension",391,li,ofn,Uon),HZt;G(1003,1,ki,uxt),_.Ne=function(n,s){return pon(this.a,b(n,153),b(s,153))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var VFi=V(yZ,"StressMajorization/lambda$0$Type",1003);G(1192,1,{},y7t);var HFi=V(C5,"ElkLayered",1192);G(1193,1,Ln,hxt),_.Cd=function(n){QSn(this.a,b(n,36))};var qFi=V(C5,"ElkLayered/lambda$0$Type",1193);G(1194,1,Ln,dxt),_.Cd=function(n){gon(this.a,b(n,36))};var YFi=V(C5,"ElkLayered/lambda$1$Type",1194);G(1281,1,{},tIt);var qZt,YZt,WZt,WFi=V(C5,"GraphConfigurator",1281);G(770,1,Ln,a5e),_.Cd=function(n){kUt(this.a,b(n,10))};var jFi=V(C5,"GraphConfigurator/lambda$0$Type",770);G(771,1,{},fl),_.Kb=function(n){return oMe(),new Pr(null,new Gr(b(n,30).a,16))};var KFi=V(C5,"GraphConfigurator/lambda$1$Type",771);G(772,1,Ln,s5e),_.Cd=function(n){kUt(this.a,b(n,10))};var XFi=V(C5,"GraphConfigurator/lambda$2$Type",772);G(1109,205,sE,mkt),_.rf=function(n,s){var u=OAn(new ykt,n);it(It(n,(Qt(),Px)))===it((Cb(),Zy))?cyn(this.a,u,s):yxn(this.a,u,s),s.$g()||vqt(new uSt,u)};var QFi=V(C5,"LayeredLayoutProvider",1109);G(367,22,{3:1,34:1,22:1,367:1},c$);var f0,O1,su,wu,ac,aUe=ei(C5,"LayeredPhases",367,li,h0n,Gon),jZt;G(1717,1,{},R9t),_.i=0;var KZt,ZFi=V($G,"ComponentsToCGraphTransformer",1717),XZt;G(1718,1,{},yt),_.yf=function(n,s){return d.Math.min(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)},_.zf=function(n,s){return d.Math.min(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)};var JFi=V($G,"ComponentsToCGraphTransformer/1",1718);G(86,1,{86:1}),_.i=0,_.k=!0,_.o=Gs;var i1e=V(kD,"CNode",86);G(470,86,{470:1,86:1},xIe,D7e),_.Ib=function(){return""};var e$i=V($G,"ComponentsToCGraphTransformer/CRectNode",470);G(1688,1,{},$u);var a1e,s1e,t$i=V($G,"OneDimensionalComponentsCompaction",1688);G(1689,1,{},c1),_.Kb=function(n){return Zdn(b(n,42))},_.Fb=function(n){return this===n};var r$i=V($G,"OneDimensionalComponentsCompaction/lambda$0$Type",1689);G(1690,1,{},pl),_.Kb=function(n){return hyn(b(n,42))},_.Fb=function(n){return this===n};var n$i=V($G,"OneDimensionalComponentsCompaction/lambda$1$Type",1690);G(1720,1,{},xNt);var i$i=V(kD,"CGraph",1720);G(194,1,{194:1},Zde),_.b=0,_.c=0,_.e=0,_.g=!0,_.i=Gs;var a$i=V(kD,"CGroup",194);G(1719,1,{},kh),_.yf=function(n,s){return d.Math.max(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)},_.zf=function(n,s){return d.Math.max(n.a!=null?rt(n.a):n.c.i,s.a!=null?rt(s.a):s.c.i)};var s$i=V(kD,kYt,1719);G(1721,1,{},xGt),_.d=!1;var QZt,o1e=V(kD,IYt,1721);G(1722,1,{},Lv),_.Kb=function(n){return lRe(),an(),b(b(n,42).a,86).d.e!=0?!0:!1},_.Fb=function(n){return this===n};var o$i=V(kD,OYt,1722);G(833,1,{},P6e),_.a=!1,_.b=!1,_.c=!1,_.d=!1;var l$i=V(kD,NYt,833);G(1898,1,{},GOt);var c$i=V(vZ,LYt,1898),dz=ns(lE,xYt);G(1899,1,{382:1},ELt),_.bf=function(n){C4n(this,b(n,476))};var u$i=V(vZ,MYt,1899);G(c_,1,ki,Mv),_.Ne=function(n,s){return Dhn(b(n,86),b(s,86))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var h$i=V(vZ,DYt,c_);G(476,1,{476:1},SRe),_.a=!1;var d$i=V(vZ,PYt,476);G(1901,1,ki,u1),_.Ne=function(n,s){return P2n(b(n,476),b(s,476))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var f$i=V(vZ,BYt,1901);G(148,1,{148:1},c6,v6e),_.Fb=function(n){var s;if(n==null)return!1;if(q6n!=Ld(n))return!1;return s=b(n,148),zc(this.c,s.c)&&zc(this.d,s.d)},_.Hb=function(){return NU(Ce(Te(ao,1),en,1,5,[this.c,this.d]))},_.Ib=function(){return"("+this.c+ll+this.d+(this.a?"cx":"")+this.b+")"},_.a=!0,_.c=0,_.d=0;var q6n=V(lE,"Point",148);G(416,22,{3:1,34:1,22:1,416:1},Ej);var mS,kx,ek,Ax,ZZt=ei(lE,"Point/Quadrant",416,li,_pn,zon),JZt;G(1708,1,{},pkt),_.b=null,_.c=null,_.d=null,_.e=null,_.f=null;var eJt,tJt,rJt,nJt,iJt,p$i=V(lE,"RectilinearConvexHull",1708);G(583,1,{382:1},hQ),_.bf=function(n){ugn(this,b(n,148))},_.b=0;var sUe,g$i=V(lE,"RectilinearConvexHull/MaximalElementsEventHandler",583);G(1710,1,ki,Kp),_.Ne=function(n,s){return Phn(ht(n),ht(s))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var m$i=V(lE,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1710);G(1709,1,{382:1},qDt),_.bf=function(n){GCn(this,b(n,148))},_.a=0,_.b=null,_.c=null,_.d=null,_.e=null;var b$i=V(lE,"RectilinearConvexHull/RectangleEventHandler",1709);G(1711,1,ki,xf),_.Ne=function(n,s){return Hfn(b(n,148),b(s,148))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var y$i=V(lE,"RectilinearConvexHull/lambda$0$Type",1711);G(1712,1,ki,Uu),_.Ne=function(n,s){return qfn(b(n,148),b(s,148))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var v$i=V(lE,"RectilinearConvexHull/lambda$1$Type",1712);G(1713,1,ki,qF),_.Ne=function(n,s){return Vfn(b(n,148),b(s,148))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var _$i=V(lE,"RectilinearConvexHull/lambda$2$Type",1713);G(1714,1,ki,$0),_.Ne=function(n,s){return Yfn(b(n,148),b(s,148))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var E$i=V(lE,"RectilinearConvexHull/lambda$3$Type",1714);G(1715,1,ki,hA),_.Ne=function(n,s){return Swn(b(n,148),b(s,148))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var w$i=V(lE,"RectilinearConvexHull/lambda$4$Type",1715);G(1716,1,{},XLt);var S$i=V(lE,"Scanline",1716);G(2104,1,{});var T$i=V(Pg,"AbstractGraphPlacer",2104);G(335,1,{335:1},BIt),_.Ff=function(n){if(this.Gf(n))return Ur(this.b,b(ce(n,(Pt(),Fb)),21),n),!0;else return!1},_.Gf=function(n){var s,u,f,g;s=b(ce(n,(Pt(),Fb)),21),g=b(_a(Oa,s),21);for(f=g.Kc();f.Ob();)if(u=b(f.Pb(),21),!b(_a(this.b,u),15).dc())return!1;return!0};var Oa,x$i=V(Pg,"ComponentGroup",335);G(779,2104,{},T5e),_.Hf=function(n){var s,u;for(u=new me(this.a);u.au)U=0,q+=C+f,C=0;O=E.c,TO(E,U+O.a,q+O.b),V0(O),g=d.Math.max(g,U+M.a),C=d.Math.max(C,M.b),U+=M.a+f}s.f.a=g,s.f.b=q+C},_.Jf=function(n,s){var u,f,g,E,S;if(it(ce(s,(Qt(),Dx)))===it((Z2(),Rx))){for(f=n.Kc();f.Ob();){u=b(f.Pb(),36),S=0;for(E=new me(u.a);E.au&&!b(ce(E,(Pt(),Fb)),21).Hc((Ht(),gn))||!!O&&b(ce(O,(Pt(),Fb)),21).Hc((Ht(),Cn))||b(ce(E,(Pt(),Fb)),21).Hc((Ht(),yn)))re=q,ae+=C+f,C=0;M=E.c,b(ce(E,(Pt(),Fb)),21).Hc((Ht(),gn))&&(re=g+f),TO(E,re+M.a,ae+M.b),g=d.Math.max(g,re+U.a),b(ce(E,Fb),21).Hc(Kn)&&(q=d.Math.max(q,re+U.a+f)),V0(M),C=d.Math.max(C,U.b),re+=U.a+f,O=E}s.f.a=g,s.f.b=ae+C},_.Jf=function(n,s){};var U$i=V(Pg,"ModelOrderRowGraphPlacer",1313);G(1311,1,ki,ub),_.Ne=function(n,s){return c1n(b(n,36),b(s,36))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var G$i=V(Pg,"SimpleRowGraphPlacer/1",1311),sJt;G(1280,1,Nm,oi),_.Lb=function(n){var s;return s=b(ce(b(n,249).b,(Qt(),jl)),75),!!s&&s.b!=0},_.Fb=function(n){return this===n},_.Mb=function(n){var s;return s=b(ce(b(n,249).b,(Qt(),jl)),75),!!s&&s.b!=0};var z$i=V(_Z,"CompoundGraphPostprocessor/1",1280);G(1279,1,Pa,vkt),_.Kf=function(n,s){jFt(this,b(n,36),s)};var V$i=V(_Z,"CompoundGraphPreprocessor",1279);G(453,1,{453:1},FBt),_.c=!1;var H$i=V(_Z,"CompoundGraphPreprocessor/ExternalPort",453);G(249,1,{249:1},rK),_.Ib=function(){return oue(this.c)+":"+vGt(this.b)};var q$i=V(_Z,"CrossHierarchyEdge",249);G(777,1,ki,o5e),_.Ne=function(n,s){return u2n(this,b(n,249),b(s,249))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Y$i=V(_Z,"CrossHierarchyEdgeComparator",777);G(305,137,{3:1,305:1,96:1,137:1}),_.p=0;var W$i=V(_u,"LGraphElement",305);G(18,305,{3:1,18:1,305:1,96:1,137:1},Dw),_.Ib=function(){return vGt(this)};var u1e=V(_u,"LEdge",18);G(36,305,{3:1,20:1,36:1,305:1,96:1,137:1},QNe),_.Jc=function(n){Vo(this,n)},_.Kc=function(){return new me(this.b)},_.Ib=function(){if(this.b.c.length==0)return"G-unlayered"+i_(this.a);else if(this.a.c.length==0)return"G-layered"+i_(this.b);return"G[layerless"+i_(this.a)+", layers"+i_(this.b)+"]"};var oJt=V(_u,"LGraph",36),lJt;G(666,1,{}),_.Lf=function(){return this.e.n},_.of=function(n){return ce(this.e,n)},_.Mf=function(){return this.e.o},_.Nf=function(){return this.e.p},_.pf=function(n){return $a(this.e,n)},_.Of=function(n){this.e.n.a=n.a,this.e.n.b=n.b},_.Pf=function(n){this.e.o.a=n.a,this.e.o.b=n.b},_.Qf=function(n){this.e.p=n};var j$i=V(_u,"LGraphAdapters/AbstractLShapeAdapter",666);G(474,1,{853:1},fM),_.Rf=function(){var n,s;if(!this.b){this.b=f1(this.a.b.c.length);for(s=new me(this.a.b);s.a0&&gBt((pn(s-1,n.length),n.charCodeAt(s-1)),aWt))--s;if(E> ",n),EQ(u)),Bi(pu((n.a+="[",n),u.i),"]");return n.a},_.c=!0,_.d=!1;var hUe,d1e,dUe,f1e,fUe,pUe,uJt=V(_u,"LPort",12);G(408,1,T1,QI),_.Jc=function(n){Vo(this,n)},_.Kc=function(){var n=new me(this.a.e);return new fxt(n)};var lUi=V(_u,"LPort/1",408);G(1309,1,To,fxt),_.Nb=function(n){Go(this,n)},_.Pb=function(){return b(ge(this.a),18).c},_.Ob=function(){return _c(this.a)},_.Qb=function(){c8(this.a)};var cUi=V(_u,"LPort/1/1",1309);G(369,1,T1,gA),_.Jc=function(n){Vo(this,n)},_.Kc=function(){var n;return n=new me(this.a.g),new l5e(n)};var uUi=V(_u,"LPort/2",369);G(776,1,To,l5e),_.Nb=function(n){Go(this,n)},_.Pb=function(){return b(ge(this.a),18).d},_.Ob=function(){return _c(this.a)},_.Qb=function(){c8(this.a)};var hUi=V(_u,"LPort/2/1",776);G(1302,1,T1,r5t),_.Jc=function(n){Vo(this,n)},_.Kc=function(){return new Cg(this)};var dUi=V(_u,"LPort/CombineIter",1302);G(208,1,To,Cg),_.Nb=function(n){Go(this,n)},_.Qb=function(){M3t()},_.Ob=function(){return ZM(this)},_.Pb=function(){return _c(this.a)?ge(this.a):ge(this.b)};var fUi=V(_u,"LPort/CombineIter/1",208);G(1303,1,Nm,Qn),_.Lb=function(n){return tNt(n)},_.Fb=function(n){return this===n},_.Mb=function(n){return Dh(),b(n,12).g.c.length!=0};var pUi=V(_u,"LPort/lambda$0$Type",1303);G(1304,1,Nm,Cs),_.Lb=function(n){return rNt(n)},_.Fb=function(n){return this===n},_.Mb=function(n){return Dh(),b(n,12).e.c.length!=0};var gUi=V(_u,"LPort/lambda$1$Type",1304);G(1305,1,Nm,wo),_.Lb=function(n){return Dh(),b(n,12).j==(Ht(),gn)},_.Fb=function(n){return this===n},_.Mb=function(n){return Dh(),b(n,12).j==(Ht(),gn)};var mUi=V(_u,"LPort/lambda$2$Type",1305);G(1306,1,Nm,Il),_.Lb=function(n){return Dh(),b(n,12).j==(Ht(),Cn)},_.Fb=function(n){return this===n},_.Mb=function(n){return Dh(),b(n,12).j==(Ht(),Cn)};var bUi=V(_u,"LPort/lambda$3$Type",1306);G(1307,1,Nm,dp),_.Lb=function(n){return Dh(),b(n,12).j==(Ht(),Kn)},_.Fb=function(n){return this===n},_.Mb=function(n){return Dh(),b(n,12).j==(Ht(),Kn)};var yUi=V(_u,"LPort/lambda$4$Type",1307);G(1308,1,Nm,T2),_.Lb=function(n){return Dh(),b(n,12).j==(Ht(),yn)},_.Fb=function(n){return this===n},_.Mb=function(n){return Dh(),b(n,12).j==(Ht(),yn)};var vUi=V(_u,"LPort/lambda$5$Type",1308);G(30,305,{3:1,20:1,305:1,30:1,96:1,137:1},gu),_.Jc=function(n){Vo(this,n)},_.Kc=function(){return new me(this.a)},_.Ib=function(){return"L_"+rc(this.b.b,this,0)+i_(this.a)};var _Ui=V(_u,"Layer",30);G(1330,1,{},ykt);var EUi=V(zy,cWt,1330);G(1334,1,{},gm),_.Kb=function(n){return ic(b(n,84))};var wUi=V(zy,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1334);G(1337,1,{},h1),_.Kb=function(n){return ic(b(n,84))};var SUi=V(zy,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1337);G(1331,1,Ln,pxt),_.Cd=function(n){PGt(this.a,b(n,123))};var TUi=V(zy,_9e,1331);G(1332,1,Ln,gxt),_.Cd=function(n){PGt(this.a,b(n,123))};var xUi=V(zy,uWt,1332);G(1333,1,{},dA),_.Kb=function(n){return new Pr(null,new Gr(yOe(b(n,74)),16))};var CUi=V(zy,hWt,1333);G(1335,1,Si,mxt),_.Mb=function(n){return fan(this.a,b(n,27))};var kUi=V(zy,dWt,1335);G(1336,1,{},d1),_.Kb=function(n){return new Pr(null,new Gr(Ihn(b(n,74)),16))};var AUi=V(zy,"ElkGraphImporter/lambda$5$Type",1336);G(1338,1,Si,bxt),_.Mb=function(n){return pan(this.a,b(n,27))};var RUi=V(zy,"ElkGraphImporter/lambda$7$Type",1338);G(1339,1,Si,IW),_.Mb=function(n){return Hhn(b(n,74))};var IUi=V(zy,"ElkGraphImporter/lambda$8$Type",1339);G(1297,1,{},uSt);var hJt,OUi=V(zy,"ElkGraphLayoutTransferrer",1297);G(1298,1,Si,yxt),_.Mb=function(n){return ron(this.a,b(n,18))};var NUi=V(zy,"ElkGraphLayoutTransferrer/lambda$0$Type",1298);G(1299,1,Ln,vxt),_.Cd=function(n){o$(),Gt(this.a,b(n,18))};var LUi=V(zy,"ElkGraphLayoutTransferrer/lambda$1$Type",1299);G(1300,1,Si,_xt),_.Mb=function(n){return Gsn(this.a,b(n,18))};var MUi=V(zy,"ElkGraphLayoutTransferrer/lambda$2$Type",1300);G(1301,1,Ln,Ext),_.Cd=function(n){o$(),Gt(this.a,b(n,18))};var DUi=V(zy,"ElkGraphLayoutTransferrer/lambda$3$Type",1301);G(819,1,{},jIe);var PUi=V(En,"BiLinkedHashMultiMap",819);G(1550,1,Pa,jgt),_.Kf=function(n,s){Rmn(b(n,36),s)};var BUi=V(En,"CommentNodeMarginCalculator",1550);G(1551,1,{},Kgt),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var FUi=V(En,"CommentNodeMarginCalculator/lambda$0$Type",1551);G(1552,1,Ln,Xgt),_.Cd=function(n){RAn(b(n,10))};var $Ui=V(En,"CommentNodeMarginCalculator/lambda$1$Type",1552);G(1553,1,Pa,Qgt),_.Kf=function(n,s){L4n(b(n,36),s)};var UUi=V(En,"CommentPostprocessor",1553);G(1554,1,Pa,Zgt),_.Kf=function(n,s){tIn(b(n,36),s)};var GUi=V(En,"CommentPreprocessor",1554);G(1555,1,Pa,Jgt),_.Kf=function(n,s){XCn(b(n,36),s)};var zUi=V(En,"ConstraintsPostprocessor",1555);G(1556,1,Pa,emt),_.Kf=function(n,s){n1n(b(n,36),s)};var VUi=V(En,"EdgeAndLayerConstraintEdgeReverser",1556);G(1557,1,Pa,tmt),_.Kf=function(n,s){Wyn(b(n,36),s)};var HUi=V(En,"EndLabelPostprocessor",1557);G(1558,1,{},rmt),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var qUi=V(En,"EndLabelPostprocessor/lambda$0$Type",1558);G(1559,1,Si,nmt),_.Mb=function(n){return l0n(b(n,10))};var YUi=V(En,"EndLabelPostprocessor/lambda$1$Type",1559);G(1560,1,Ln,imt),_.Cd=function(n){B2n(b(n,10))};var WUi=V(En,"EndLabelPostprocessor/lambda$2$Type",1560);G(1561,1,Pa,amt),_.Kf=function(n,s){xSn(b(n,36),s)};var jUi=V(En,"EndLabelPreprocessor",1561);G(1562,1,{},smt),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var KUi=V(En,"EndLabelPreprocessor/lambda$0$Type",1562);G(1563,1,Ln,V6t),_.Cd=function(n){Cin(this.a,this.b,this.c,b(n,10))},_.a=0,_.b=0,_.c=!1;var XUi=V(En,"EndLabelPreprocessor/lambda$1$Type",1563);G(1564,1,Si,omt),_.Mb=function(n){return it(ce(b(n,72),(Qt(),zm)))===it((Rg(),DN))};var QUi=V(En,"EndLabelPreprocessor/lambda$2$Type",1564);G(1565,1,Ln,wxt),_.Cd=function(n){Oi(this.a,b(n,72))};var ZUi=V(En,"EndLabelPreprocessor/lambda$3$Type",1565);G(1566,1,Si,lmt),_.Mb=function(n){return it(ce(b(n,72),(Qt(),zm)))===it((Rg(),jx))};var JUi=V(En,"EndLabelPreprocessor/lambda$4$Type",1566);G(1567,1,Ln,Sxt),_.Cd=function(n){Oi(this.a,b(n,72))};var eGi=V(En,"EndLabelPreprocessor/lambda$5$Type",1567);G(1615,1,Pa,rSt),_.Kf=function(n,s){Ybn(b(n,36),s)};var dJt,tGi=V(En,"EndLabelSorter",1615);G(1616,1,ki,cmt),_.Ne=function(n,s){return xvn(b(n,466),b(s,466))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var rGi=V(En,"EndLabelSorter/1",1616);G(466,1,{466:1},gLt);var nGi=V(En,"EndLabelSorter/LabelGroup",466);G(1617,1,{},umt),_.Kb=function(n){return s$(),new Pr(null,new Gr(b(n,30).a,16))};var iGi=V(En,"EndLabelSorter/lambda$0$Type",1617);G(1618,1,Si,hmt),_.Mb=function(n){return s$(),b(n,10).k==(bn(),Es)};var aGi=V(En,"EndLabelSorter/lambda$1$Type",1618);G(1619,1,Ln,dmt),_.Cd=function(n){$wn(b(n,10))};var sGi=V(En,"EndLabelSorter/lambda$2$Type",1619);G(1620,1,Si,fmt),_.Mb=function(n){return s$(),it(ce(b(n,72),(Qt(),zm)))===it((Rg(),jx))};var oGi=V(En,"EndLabelSorter/lambda$3$Type",1620);G(1621,1,Si,pmt),_.Mb=function(n){return s$(),it(ce(b(n,72),(Qt(),zm)))===it((Rg(),DN))};var lGi=V(En,"EndLabelSorter/lambda$4$Type",1621);G(1568,1,Pa,gmt),_.Kf=function(n,s){VAn(this,b(n,36))},_.b=0,_.c=0;var cGi=V(En,"FinalSplineBendpointsCalculator",1568);G(1569,1,{},mmt),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var uGi=V(En,"FinalSplineBendpointsCalculator/lambda$0$Type",1569);G(1570,1,{},bmt),_.Kb=function(n){return new Pr(null,new Rw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var hGi=V(En,"FinalSplineBendpointsCalculator/lambda$1$Type",1570);G(1571,1,Si,ymt),_.Mb=function(n){return!gl(b(n,18))};var dGi=V(En,"FinalSplineBendpointsCalculator/lambda$2$Type",1571);G(1572,1,Si,vmt),_.Mb=function(n){return $a(b(n,18),(Pt(),bE))};var fGi=V(En,"FinalSplineBendpointsCalculator/lambda$3$Type",1572);G(1573,1,Ln,Txt),_.Cd=function(n){Zkn(this.a,b(n,131))};var pGi=V(En,"FinalSplineBendpointsCalculator/lambda$4$Type",1573);G(1574,1,Ln,_mt),_.Cd=function(n){eG(b(n,18).a)};var gGi=V(En,"FinalSplineBendpointsCalculator/lambda$5$Type",1574);G(803,1,Pa,c5e),_.Kf=function(n,s){B5n(this,b(n,36),s)};var mGi=V(En,"GraphTransformer",803);G(517,22,{3:1,34:1,22:1,517:1},wRe);var p1e,fz,fJt=ei(En,"GraphTransformer/Mode",517,li,ddn,Wln),pJt;G(1575,1,Pa,Emt),_.Kf=function(n,s){aCn(b(n,36),s)};var bGi=V(En,"HierarchicalNodeResizingProcessor",1575);G(1576,1,Pa,wmt),_.Kf=function(n,s){Tmn(b(n,36),s)};var yGi=V(En,"HierarchicalPortConstraintProcessor",1576);G(1577,1,ki,Smt),_.Ne=function(n,s){return Yvn(b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var vGi=V(En,"HierarchicalPortConstraintProcessor/NodeComparator",1577);G(1578,1,Pa,Tmt),_.Kf=function(n,s){W3n(b(n,36),s)};var _Gi=V(En,"HierarchicalPortDummySizeProcessor",1578);G(1579,1,Pa,xmt),_.Kf=function(n,s){nkn(this,b(n,36),s)},_.a=0;var EGi=V(En,"HierarchicalPortOrthogonalEdgeRouter",1579);G(1580,1,ki,Cmt),_.Ne=function(n,s){return asn(b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var wGi=V(En,"HierarchicalPortOrthogonalEdgeRouter/1",1580);G(1581,1,ki,kmt),_.Ne=function(n,s){return hgn(b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var SGi=V(En,"HierarchicalPortOrthogonalEdgeRouter/2",1581);G(1582,1,Pa,Amt),_.Kf=function(n,s){_wn(b(n,36),s)};var TGi=V(En,"HierarchicalPortPositionProcessor",1582);G(1583,1,Pa,hSt),_.Kf=function(n,s){PIn(this,b(n,36))},_.a=0,_.c=0;var MJ,DJ,xGi=V(En,"HighDegreeNodeLayeringProcessor",1583);G(580,1,{580:1},Rmt),_.b=-1,_.d=-1;var CGi=V(En,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",580);G(1584,1,{},Imt),_.Kb=function(n){return D$(),co(b(n,10))},_.Fb=function(n){return this===n};var kGi=V(En,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1584);G(1585,1,{},Omt),_.Kb=function(n){return D$(),Ss(b(n,10))},_.Fb=function(n){return this===n};var AGi=V(En,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1585);G(1591,1,Pa,Nmt),_.Kf=function(n,s){$3n(this,b(n,36),s)};var RGi=V(En,"HyperedgeDummyMerger",1591);G(804,1,{},c6e),_.a=!1,_.b=!1,_.c=!1;var IGi=V(En,"HyperedgeDummyMerger/MergeState",804);G(1592,1,{},Lmt),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var OGi=V(En,"HyperedgeDummyMerger/lambda$0$Type",1592);G(1593,1,{},Mmt),_.Kb=function(n){return new Pr(null,new Gr(b(n,10).j,16))};var NGi=V(En,"HyperedgeDummyMerger/lambda$1$Type",1593);G(1594,1,Ln,Dmt),_.Cd=function(n){b(n,12).p=-1};var LGi=V(En,"HyperedgeDummyMerger/lambda$2$Type",1594);G(1595,1,Pa,Pmt),_.Kf=function(n,s){B3n(b(n,36),s)};var MGi=V(En,"HypernodesProcessor",1595);G(1596,1,Pa,Bmt),_.Kf=function(n,s){Y3n(b(n,36),s)};var DGi=V(En,"InLayerConstraintProcessor",1596);G(1597,1,Pa,Fmt),_.Kf=function(n,s){$mn(b(n,36),s)};var PGi=V(En,"InnermostNodeMarginCalculator",1597);G(1598,1,Pa,$mt),_.Kf=function(n,s){QRn(this,b(n,36))},_.a=Gs,_.b=Gs,_.c=Wa,_.d=Wa;var Y6n=V(En,"InteractiveExternalPortPositioner",1598);G(1599,1,{},Umt),_.Kb=function(n){return b(n,18).d.i},_.Fb=function(n){return this===n};var BGi=V(En,"InteractiveExternalPortPositioner/lambda$0$Type",1599);G(1600,1,{},xxt),_.Kb=function(n){return ssn(this.a,ht(n))},_.Fb=function(n){return this===n};var FGi=V(En,"InteractiveExternalPortPositioner/lambda$1$Type",1600);G(1601,1,{},Gmt),_.Kb=function(n){return b(n,18).c.i},_.Fb=function(n){return this===n};var $Gi=V(En,"InteractiveExternalPortPositioner/lambda$2$Type",1601);G(1602,1,{},Cxt),_.Kb=function(n){return osn(this.a,ht(n))},_.Fb=function(n){return this===n};var UGi=V(En,"InteractiveExternalPortPositioner/lambda$3$Type",1602);G(1603,1,{},kxt),_.Kb=function(n){return ion(this.a,ht(n))},_.Fb=function(n){return this===n};var GGi=V(En,"InteractiveExternalPortPositioner/lambda$4$Type",1603);G(1604,1,{},Axt),_.Kb=function(n){return aon(this.a,ht(n))},_.Fb=function(n){return this===n};var zGi=V(En,"InteractiveExternalPortPositioner/lambda$5$Type",1604);G(81,22,{3:1,34:1,22:1,81:1,196:1},Is),_.dg=function(){switch(this.g){case 15:return new iyt;case 22:return new ayt;case 47:return new lyt;case 28:case 35:return new Zmt;case 32:return new jgt;case 42:return new Qgt;case 1:return new Zgt;case 41:return new Jgt;case 56:return new c5e((H6(),fz));case 0:return new c5e((H6(),p1e));case 2:return new emt;case 54:return new tmt;case 33:return new amt;case 51:return new gmt;case 55:return new Emt;case 13:return new wmt;case 38:return new Tmt;case 44:return new xmt;case 40:return new Amt;case 9:return new hSt;case 49:return new AIt;case 37:return new Nmt;case 43:return new Pmt;case 27:return new Bmt;case 30:return new Fmt;case 3:return new $mt;case 18:return new Vmt;case 29:return new Hmt;case 5:return new dSt;case 50:return new zmt;case 34:return new fSt;case 36:return new Jmt;case 52:return new rSt;case 11:return new e1t;case 7:return new pSt;case 39:return new t1t;case 45:return new r1t;case 16:return new n1t;case 10:return new _5t;case 48:return new o1t;case 21:return new l1t;case 23:return new Kle((Vw(),E9));case 8:return new u1t;case 12:return new d1t;case 4:return new f1t;case 19:return new _St;case 17:return new S1t;case 53:return new T1t;case 6:return new P1t;case 25:return new Ekt;case 46:return new R1t;case 31:return new m6t;case 14:return new H1t;case 26:return new hyt;case 20:return new K1t;case 24:return new Kle((Vw(),$ee));default:throw _e(new fn(F0e+(this.f!=null?this.f:""+this.g)))}};var gUe,mUe,bUe,yUe,vUe,_Ue,EUe,wUe,SUe,TUe,tk,PJ,BJ,xUe,CUe,kUe,AUe,RUe,IUe,OUe,t9,NUe,LUe,MUe,DUe,PUe,g1e,FJ,$J,BUe,UJ,GJ,zJ,sN,Ix,Ox,FUe,VJ,HJ,$Ue,qJ,YJ,UUe,GUe,zUe,VUe,WJ,m1e,pz,jJ,KJ,XJ,QJ,HUe,qUe,YUe,WUe,W6n=ei(En,$0e,81,li,Rzt,Yon),gJt;G(1605,1,Pa,Vmt),_.Kf=function(n,s){KRn(b(n,36),s)};var VGi=V(En,"InvertedPortProcessor",1605);G(1606,1,Pa,Hmt),_.Kf=function(n,s){Hkn(b(n,36),s)};var HGi=V(En,"LabelAndNodeSizeProcessor",1606);G(1607,1,Si,qmt),_.Mb=function(n){return b(n,10).k==(bn(),Es)};var qGi=V(En,"LabelAndNodeSizeProcessor/lambda$0$Type",1607);G(1608,1,Si,Ymt),_.Mb=function(n){return b(n,10).k==(bn(),As)};var YGi=V(En,"LabelAndNodeSizeProcessor/lambda$1$Type",1608);G(1609,1,Ln,H6t),_.Cd=function(n){kin(this.b,this.a,this.c,b(n,10))},_.a=!1,_.c=!1;var WGi=V(En,"LabelAndNodeSizeProcessor/lambda$2$Type",1609);G(1610,1,Pa,dSt),_.Kf=function(n,s){ERn(b(n,36),s)};var mJt,jGi=V(En,"LabelDummyInserter",1610);G(1611,1,Nm,Wmt),_.Lb=function(n){return it(ce(b(n,72),(Qt(),zm)))===it((Rg(),MN))},_.Fb=function(n){return this===n},_.Mb=function(n){return it(ce(b(n,72),(Qt(),zm)))===it((Rg(),MN))};var KGi=V(En,"LabelDummyInserter/1",1611);G(1612,1,Pa,zmt),_.Kf=function(n,s){cRn(b(n,36),s)};var XGi=V(En,"LabelDummyRemover",1612);G(1613,1,Si,jmt),_.Mb=function(n){return er(Jt(ce(b(n,72),(Qt(),ibe))))};var QGi=V(En,"LabelDummyRemover/lambda$0$Type",1613);G(1378,1,Pa,fSt),_.Kf=function(n,s){tRn(this,b(n,36),s)},_.a=null;var b1e,ZGi=V(En,"LabelDummySwitcher",1378);G(293,1,{293:1},AVt),_.c=0,_.d=null,_.f=0;var JGi=V(En,"LabelDummySwitcher/LabelDummyInfo",293);G(1379,1,{},Kmt),_.Kb=function(n){return e5(),new Pr(null,new Gr(b(n,30).a,16))};var ezi=V(En,"LabelDummySwitcher/lambda$0$Type",1379);G(1380,1,Si,Xmt),_.Mb=function(n){return e5(),b(n,10).k==(bn(),Jc)};var tzi=V(En,"LabelDummySwitcher/lambda$1$Type",1380);G(1381,1,{},Rxt),_.Kb=function(n){return zsn(this.a,b(n,10))};var rzi=V(En,"LabelDummySwitcher/lambda$2$Type",1381);G(1382,1,Ln,Ixt),_.Cd=function(n){lhn(this.a,b(n,293))};var nzi=V(En,"LabelDummySwitcher/lambda$3$Type",1382);G(1383,1,ki,Qmt),_.Ne=function(n,s){return Nun(b(n,293),b(s,293))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var izi=V(En,"LabelDummySwitcher/lambda$4$Type",1383);G(802,1,Pa,Zmt),_.Kf=function(n,s){H0n(b(n,36),s)};var azi=V(En,"LabelManagementProcessor",802);G(1614,1,Pa,Jmt),_.Kf=function(n,s){E4n(b(n,36),s)};var szi=V(En,"LabelSideSelector",1614);G(1622,1,Pa,e1t),_.Kf=function(n,s){lAn(b(n,36),s)};var ozi=V(En,"LayerConstraintPostprocessor",1622);G(1623,1,Pa,pSt),_.Kf=function(n,s){nxn(b(n,36),s)};var jUe,lzi=V(En,"LayerConstraintPreprocessor",1623);G(371,22,{3:1,34:1,22:1,371:1},Sj);var gz,ZJ,JJ,y1e,bJt=ei(En,"LayerConstraintPreprocessor/HiddenNodeConnections",371,li,wpn,Won),yJt;G(1624,1,Pa,t1t),_.Kf=function(n,s){x5n(b(n,36),s)};var czi=V(En,"LayerSizeAndGraphHeightCalculator",1624);G(1625,1,Pa,r1t),_.Kf=function(n,s){sCn(b(n,36),s)};var uzi=V(En,"LongEdgeJoiner",1625);G(1626,1,Pa,n1t),_.Kf=function(n,s){e5n(b(n,36),s)};var hzi=V(En,"LongEdgeSplitter",1626);G(1627,1,Pa,_5t),_.Kf=function(n,s){PRn(this,b(n,36),s)},_.e=0,_.f=0,_.j=0,_.k=0,_.n=0,_.o=0;var vJt,_Jt,dzi=V(En,"NodePromotion",1627);G(1628,1,ki,i1t),_.Ne=function(n,s){return K1n(b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var fzi=V(En,"NodePromotion/1",1628);G(1629,1,ki,a1t),_.Ne=function(n,s){return X1n(b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var pzi=V(En,"NodePromotion/2",1629);G(1630,1,{},s1t),_.Kb=function(n){return b(n,42),iK(),an(),!0},_.Fb=function(n){return this===n};var gzi=V(En,"NodePromotion/lambda$0$Type",1630);G(1631,1,{},Mxt),_.Kb=function(n){return qdn(this.a,b(n,42))},_.Fb=function(n){return this===n},_.a=0;var mzi=V(En,"NodePromotion/lambda$1$Type",1631);G(1632,1,{},Dxt),_.Kb=function(n){return Hdn(this.a,b(n,42))},_.Fb=function(n){return this===n},_.a=0;var bzi=V(En,"NodePromotion/lambda$2$Type",1632);G(1633,1,Pa,o1t),_.Kf=function(n,s){IIn(b(n,36),s)};var yzi=V(En,"NorthSouthPortPostprocessor",1633);G(1634,1,Pa,l1t),_.Kf=function(n,s){uIn(b(n,36),s)};var vzi=V(En,"NorthSouthPortPreprocessor",1634);G(1635,1,ki,c1t),_.Ne=function(n,s){return u1n(b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var _zi=V(En,"NorthSouthPortPreprocessor/lambda$0$Type",1635);G(1636,1,Pa,u1t),_.Kf=function(n,s){x3n(b(n,36),s)};var Ezi=V(En,"PartitionMidprocessor",1636);G(1637,1,Si,h1t),_.Mb=function(n){return $a(b(n,10),(Qt(),_N))};var wzi=V(En,"PartitionMidprocessor/lambda$0$Type",1637);G(1638,1,Ln,Pxt),_.Cd=function(n){qhn(this.a,b(n,10))};var Szi=V(En,"PartitionMidprocessor/lambda$1$Type",1638);G(1639,1,Pa,d1t),_.Kf=function(n,s){kCn(b(n,36),s)};var Tzi=V(En,"PartitionPostprocessor",1639);G(1640,1,Pa,f1t),_.Kf=function(n,s){GTn(b(n,36),s)};var xzi=V(En,"PartitionPreprocessor",1640);G(1641,1,Si,p1t),_.Mb=function(n){return $a(b(n,10),(Qt(),_N))};var Czi=V(En,"PartitionPreprocessor/lambda$0$Type",1641);G(1642,1,{},g1t),_.Kb=function(n){return new Pr(null,new Rw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var kzi=V(En,"PartitionPreprocessor/lambda$1$Type",1642);G(1643,1,Si,m1t),_.Mb=function(n){return Ovn(b(n,18))};var Azi=V(En,"PartitionPreprocessor/lambda$2$Type",1643);G(1644,1,Ln,b1t),_.Cd=function(n){k1n(b(n,18))};var Rzi=V(En,"PartitionPreprocessor/lambda$3$Type",1644);G(1645,1,Pa,_St),_.Kf=function(n,s){a3n(b(n,36),s)};var KUe,EJt,wJt,SJt,XUe,QUe,Izi=V(En,"PortListSorter",1645);G(1648,1,ki,y1t),_.Ne=function(n,s){return vMt(b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Ozi=V(En,"PortListSorter/lambda$0$Type",1648);G(1650,1,ki,v1t),_.Ne=function(n,s){return ZVt(b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Nzi=V(En,"PortListSorter/lambda$1$Type",1650);G(1646,1,{},_1t),_.Kb=function(n){return tO(),b(n,12).e};var Lzi=V(En,"PortListSorter/lambda$2$Type",1646);G(1647,1,{},E1t),_.Kb=function(n){return tO(),b(n,12).g};var Mzi=V(En,"PortListSorter/lambda$3$Type",1647);G(1649,1,ki,w1t),_.Ne=function(n,s){return t2n(b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Dzi=V(En,"PortListSorter/lambda$4$Type",1649);G(1651,1,Pa,S1t),_.Kf=function(n,s){mxn(b(n,36),s)};var Pzi=V(En,"PortSideProcessor",1651);G(1652,1,Pa,T1t),_.Kf=function(n,s){bkn(b(n,36),s)};var Bzi=V(En,"ReversedEdgeRestorer",1652);G(1657,1,Pa,Ekt),_.Kf=function(n,s){B_n(this,b(n,36),s)};var Fzi=V(En,"SelfLoopPortRestorer",1657);G(1658,1,{},x1t),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var $zi=V(En,"SelfLoopPortRestorer/lambda$0$Type",1658);G(1659,1,Si,C1t),_.Mb=function(n){return b(n,10).k==(bn(),Es)};var Uzi=V(En,"SelfLoopPortRestorer/lambda$1$Type",1659);G(1660,1,Si,k1t),_.Mb=function(n){return $a(b(n,10),(Pt(),wS))};var Gzi=V(En,"SelfLoopPortRestorer/lambda$2$Type",1660);G(1661,1,{},A1t),_.Kb=function(n){return b(ce(b(n,10),(Pt(),wS)),337)};var zzi=V(En,"SelfLoopPortRestorer/lambda$3$Type",1661);G(1662,1,Ln,Nxt),_.Cd=function(n){Zwn(this.a,b(n,337))};var Vzi=V(En,"SelfLoopPortRestorer/lambda$4$Type",1662);G(805,1,Ln,vAe),_.Cd=function(n){hSn(b(n,105))};var Hzi=V(En,"SelfLoopPortRestorer/lambda$5$Type",805);G(1663,1,Pa,R1t),_.Kf=function(n,s){Vvn(b(n,36),s)};var qzi=V(En,"SelfLoopPostProcessor",1663);G(1664,1,{},I1t),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var Yzi=V(En,"SelfLoopPostProcessor/lambda$0$Type",1664);G(1665,1,Si,O1t),_.Mb=function(n){return b(n,10).k==(bn(),Es)};var Wzi=V(En,"SelfLoopPostProcessor/lambda$1$Type",1665);G(1666,1,Si,N1t),_.Mb=function(n){return $a(b(n,10),(Pt(),wS))};var jzi=V(En,"SelfLoopPostProcessor/lambda$2$Type",1666);G(1667,1,Ln,L1t),_.Cd=function(n){eEn(b(n,10))};var Kzi=V(En,"SelfLoopPostProcessor/lambda$3$Type",1667);G(1668,1,{},M1t),_.Kb=function(n){return new Pr(null,new Gr(b(n,105).f,1))};var Xzi=V(En,"SelfLoopPostProcessor/lambda$4$Type",1668);G(1669,1,Ln,Oxt),_.Cd=function(n){Cpn(this.a,b(n,340))};var Qzi=V(En,"SelfLoopPostProcessor/lambda$5$Type",1669);G(1670,1,Si,D1t),_.Mb=function(n){return!!b(n,105).i};var Zzi=V(En,"SelfLoopPostProcessor/lambda$6$Type",1670);G(1671,1,Ln,Lxt),_.Cd=function(n){Cnn(this.a,b(n,105))};var Jzi=V(En,"SelfLoopPostProcessor/lambda$7$Type",1671);G(1653,1,Pa,P1t),_.Kf=function(n,s){qxn(b(n,36),s)};var eVi=V(En,"SelfLoopPreProcessor",1653);G(1654,1,{},B1t),_.Kb=function(n){return new Pr(null,new Gr(b(n,105).f,1))};var tVi=V(En,"SelfLoopPreProcessor/lambda$0$Type",1654);G(1655,1,{},F1t),_.Kb=function(n){return b(n,340).a};var rVi=V(En,"SelfLoopPreProcessor/lambda$1$Type",1655);G(1656,1,Ln,$1t),_.Cd=function(n){Ran(b(n,18))};var nVi=V(En,"SelfLoopPreProcessor/lambda$2$Type",1656);G(1672,1,Pa,m6t),_.Kf=function(n,s){Lwn(this,b(n,36),s)};var iVi=V(En,"SelfLoopRouter",1672);G(1673,1,{},U1t),_.Kb=function(n){return new Pr(null,new Gr(b(n,30).a,16))};var aVi=V(En,"SelfLoopRouter/lambda$0$Type",1673);G(1674,1,Si,G1t),_.Mb=function(n){return b(n,10).k==(bn(),Es)};var sVi=V(En,"SelfLoopRouter/lambda$1$Type",1674);G(1675,1,Si,z1t),_.Mb=function(n){return $a(b(n,10),(Pt(),wS))};var oVi=V(En,"SelfLoopRouter/lambda$2$Type",1675);G(1676,1,{},V1t),_.Kb=function(n){return b(ce(b(n,10),(Pt(),wS)),337)};var lVi=V(En,"SelfLoopRouter/lambda$3$Type",1676);G(1677,1,Ln,e5t),_.Cd=function(n){$hn(this.a,this.b,b(n,337))};var cVi=V(En,"SelfLoopRouter/lambda$4$Type",1677);G(1678,1,Pa,H1t),_.Kf=function(n,s){c4n(b(n,36),s)};var uVi=V(En,"SemiInteractiveCrossMinProcessor",1678);G(1679,1,Si,q1t),_.Mb=function(n){return b(n,10).k==(bn(),Es)};var hVi=V(En,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1679);G(1680,1,Si,Y1t),_.Mb=function(n){return LOt(b(n,10))._b((Qt(),Ux))};var dVi=V(En,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1680);G(1681,1,ki,W1t),_.Ne=function(n,s){return Cmn(b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var fVi=V(En,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1681);G(1682,1,{},j1t),_.Ve=function(n,s){return Yhn(b(n,10),b(s,10))};var pVi=V(En,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1682);G(1684,1,Pa,K1t),_.Kf=function(n,s){LAn(b(n,36),s)};var gVi=V(En,"SortByInputModelProcessor",1684);G(1685,1,Si,X1t),_.Mb=function(n){return b(n,12).g.c.length!=0};var mVi=V(En,"SortByInputModelProcessor/lambda$0$Type",1685);G(1686,1,Ln,Bxt),_.Cd=function(n){mSn(this.a,b(n,12))};var bVi=V(En,"SortByInputModelProcessor/lambda$1$Type",1686);G(1759,817,{},V9t),_.df=function(n){var s,u,f,g;switch(this.c=n,this.a.g){case 2:s=new Ut,ys(pa(new Pr(null,new Gr(this.c.a.b,16)),new ubt),new c5t(this,s)),tG(this,new Z1t),Ju(s,new J1t),s.c.length=0,ys(pa(new Pr(null,new Gr(this.c.a.b,16)),new ebt),new $xt(s)),tG(this,new tbt),Ju(s,new rbt),s.c.length=0,u=HRt(ude(zT(new Pr(null,new Gr(this.c.a.b,16)),new Uxt(this))),new nbt),ys(new Pr(null,new Gr(this.c.a.a,16)),new n5t(u,s)),tG(this,new abt),Ju(s,new sbt),s.c.length=0;break;case 3:f=new Ut,tG(this,new Q1t),g=HRt(ude(zT(new Pr(null,new Gr(this.c.a.b,16)),new Fxt(this))),new ibt),ys(pa(new Pr(null,new Gr(this.c.a.b,16)),new obt),new a5t(g,f)),tG(this,new lbt),Ju(f,new cbt),f.c.length=0;break;default:throw _e(new lkt)}},_.b=0;var yVi=V(Vs,"EdgeAwareScanlineConstraintCalculation",1759);G(1760,1,Nm,Q1t),_.Lb=function(n){return He(b(n,60).g,154)},_.Fb=function(n){return this===n},_.Mb=function(n){return He(b(n,60).g,154)};var vVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1760);G(1761,1,{},Fxt),_.Ye=function(n){return JSn(this.a,b(n,60))};var _Vi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1761);G(1769,1,sZ,t5t),_.de=function(){K8(this.a,this.b,-1)},_.b=0;var EVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1769);G(1771,1,Nm,Z1t),_.Lb=function(n){return He(b(n,60).g,154)},_.Fb=function(n){return this===n},_.Mb=function(n){return He(b(n,60).g,154)};var wVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1771);G(1772,1,Ln,J1t),_.Cd=function(n){b(n,380).de()};var SVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1772);G(1773,1,Si,ebt),_.Mb=function(n){return He(b(n,60).g,10)};var TVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1773);G(1775,1,Ln,$xt),_.Cd=function(n){vyn(this.a,b(n,60))};var xVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1775);G(1774,1,sZ,s5t),_.de=function(){K8(this.b,this.a,-1)},_.a=0;var CVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1774);G(1776,1,Nm,tbt),_.Lb=function(n){return He(b(n,60).g,10)},_.Fb=function(n){return this===n},_.Mb=function(n){return He(b(n,60).g,10)};var kVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1776);G(1777,1,Ln,rbt),_.Cd=function(n){b(n,380).de()};var AVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1777);G(1778,1,{},Uxt),_.Ye=function(n){return eTn(this.a,b(n,60))};var RVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1778);G(1779,1,{},nbt),_.We=function(){return 0};var IVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1779);G(1762,1,{},ibt),_.We=function(){return 0};var OVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1762);G(1781,1,Ln,n5t),_.Cd=function(n){Tun(this.a,this.b,b(n,316))},_.a=0;var NVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1781);G(1780,1,sZ,i5t),_.de=function(){izt(this.a,this.b,-1)},_.b=0;var LVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1780);G(1782,1,Nm,abt),_.Lb=function(n){return b(n,60),!0},_.Fb=function(n){return this===n},_.Mb=function(n){return b(n,60),!0};var MVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1782);G(1783,1,Ln,sbt),_.Cd=function(n){b(n,380).de()};var DVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1783);G(1763,1,Si,obt),_.Mb=function(n){return He(b(n,60).g,10)};var PVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1763);G(1765,1,Ln,a5t),_.Cd=function(n){xun(this.a,this.b,b(n,60))},_.a=0;var BVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1765);G(1764,1,sZ,o5t),_.de=function(){K8(this.b,this.a,-1)},_.a=0;var FVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1764);G(1766,1,Nm,lbt),_.Lb=function(n){return b(n,60),!0},_.Fb=function(n){return this===n},_.Mb=function(n){return b(n,60),!0};var $Vi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1766);G(1767,1,Ln,cbt),_.Cd=function(n){b(n,380).de()};var UVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1767);G(1768,1,Si,ubt),_.Mb=function(n){return He(b(n,60).g,154)};var GVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1768);G(1770,1,Ln,c5t),_.Cd=function(n){Vgn(this.a,this.b,b(n,60))};var zVi=V(Vs,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1770);G(1586,1,Pa,AIt),_.Kf=function(n,s){s5n(this,b(n,36),s)};var TJt,VVi=V(Vs,"HorizontalGraphCompactor",1586);G(1587,1,{},Gxt),_.ff=function(n,s){var u,f,g;if(NNe(n,s))return 0;if(u=m4(n),f=m4(s),!!u&&u.k==(bn(),As)||!!f&&f.k==(bn(),As))return 0;return g=b(ce(this.a.a,(Pt(),uk)),312),hsn(g,u?u.k:(bn(),mo),f?f.k:(bn(),mo))},_.gf=function(n,s){var u,f,g;if(NNe(n,s))return 1;return u=m4(n),f=m4(s),g=b(ce(this.a.a,(Pt(),uk)),312),SIe(g,u?u.k:(bn(),mo),f?f.k:(bn(),mo))};var HVi=V(Vs,"HorizontalGraphCompactor/1",1587);G(1588,1,{},hbt),_.ef=function(n,s){return kM(),n.a.i==0};var qVi=V(Vs,"HorizontalGraphCompactor/lambda$0$Type",1588);G(1589,1,{},zxt),_.ef=function(n,s){return Khn(this.a,n,s)};var YVi=V(Vs,"HorizontalGraphCompactor/lambda$1$Type",1589);G(1730,1,{},yDt);var xJt,CJt,WVi=V(Vs,"LGraphToCGraphTransformer",1730);G(1738,1,Si,dbt),_.Mb=function(n){return n!=null};var jVi=V(Vs,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1738);G(1731,1,{},fbt),_.Kb=function(n){return r0(),hc(ce(b(b(n,60).g,10),(Pt(),Ea)))};var KVi=V(Vs,"LGraphToCGraphTransformer/lambda$0$Type",1731);G(1732,1,{},pbt),_.Kb=function(n){return r0(),RBt(b(b(n,60).g,154))};var XVi=V(Vs,"LGraphToCGraphTransformer/lambda$1$Type",1732);G(1741,1,Si,gbt),_.Mb=function(n){return r0(),He(b(n,60).g,10)};var QVi=V(Vs,"LGraphToCGraphTransformer/lambda$10$Type",1741);G(1742,1,Ln,mbt),_.Cd=function(n){edn(b(n,60))};var ZVi=V(Vs,"LGraphToCGraphTransformer/lambda$11$Type",1742);G(1743,1,Si,bbt),_.Mb=function(n){return r0(),He(b(n,60).g,154)};var JVi=V(Vs,"LGraphToCGraphTransformer/lambda$12$Type",1743);G(1747,1,Ln,ybt),_.Cd=function(n){Obn(b(n,60))};var eHi=V(Vs,"LGraphToCGraphTransformer/lambda$13$Type",1747);G(1744,1,Ln,Vxt),_.Cd=function(n){ian(this.a,b(n,8))},_.a=0;var tHi=V(Vs,"LGraphToCGraphTransformer/lambda$14$Type",1744);G(1745,1,Ln,Hxt),_.Cd=function(n){san(this.a,b(n,116))},_.a=0;var rHi=V(Vs,"LGraphToCGraphTransformer/lambda$15$Type",1745);G(1746,1,Ln,qxt),_.Cd=function(n){aan(this.a,b(n,8))},_.a=0;var nHi=V(Vs,"LGraphToCGraphTransformer/lambda$16$Type",1746);G(1748,1,{},vbt),_.Kb=function(n){return r0(),new Pr(null,new Rw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var iHi=V(Vs,"LGraphToCGraphTransformer/lambda$17$Type",1748);G(1749,1,Si,_bt),_.Mb=function(n){return r0(),gl(b(n,18))};var aHi=V(Vs,"LGraphToCGraphTransformer/lambda$18$Type",1749);G(1750,1,Ln,Yxt),_.Cd=function(n){Egn(this.a,b(n,18))};var sHi=V(Vs,"LGraphToCGraphTransformer/lambda$19$Type",1750);G(1734,1,Ln,Wxt),_.Cd=function(n){jfn(this.a,b(n,154))};var oHi=V(Vs,"LGraphToCGraphTransformer/lambda$2$Type",1734);G(1751,1,{},Ebt),_.Kb=function(n){return r0(),new Pr(null,new Gr(b(n,30).a,16))};var lHi=V(Vs,"LGraphToCGraphTransformer/lambda$20$Type",1751);G(1752,1,{},wbt),_.Kb=function(n){return r0(),new Pr(null,new Rw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var cHi=V(Vs,"LGraphToCGraphTransformer/lambda$21$Type",1752);G(1753,1,{},Sbt),_.Kb=function(n){return r0(),b(ce(b(n,18),(Pt(),bE)),15)};var uHi=V(Vs,"LGraphToCGraphTransformer/lambda$22$Type",1753);G(1754,1,Si,Tbt),_.Mb=function(n){return dsn(b(n,15))};var hHi=V(Vs,"LGraphToCGraphTransformer/lambda$23$Type",1754);G(1755,1,Ln,jxt),_.Cd=function(n){zSn(this.a,b(n,15))};var dHi=V(Vs,"LGraphToCGraphTransformer/lambda$24$Type",1755);G(1733,1,Ln,u5t),_.Cd=function(n){qpn(this.a,this.b,b(n,154))};var fHi=V(Vs,"LGraphToCGraphTransformer/lambda$3$Type",1733);G(1735,1,{},xbt),_.Kb=function(n){return r0(),new Pr(null,new Gr(b(n,30).a,16))};var pHi=V(Vs,"LGraphToCGraphTransformer/lambda$4$Type",1735);G(1736,1,{},Cbt),_.Kb=function(n){return r0(),new Pr(null,new Rw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var gHi=V(Vs,"LGraphToCGraphTransformer/lambda$5$Type",1736);G(1737,1,{},kbt),_.Kb=function(n){return r0(),b(ce(b(n,18),(Pt(),bE)),15)};var mHi=V(Vs,"LGraphToCGraphTransformer/lambda$6$Type",1737);G(1739,1,Ln,Kxt),_.Cd=function(n){tTn(this.a,b(n,15))};var bHi=V(Vs,"LGraphToCGraphTransformer/lambda$8$Type",1739);G(1740,1,Ln,h5t),_.Cd=function(n){Ian(this.a,this.b,b(n,154))};var yHi=V(Vs,"LGraphToCGraphTransformer/lambda$9$Type",1740);G(1729,1,{},Abt),_.cf=function(n){var s,u,f,g,E;this.a=n,this.d=new Ule,this.c=mt(N$e,en,125,this.a.a.a.c.length,0,1),this.b=0;for(u=new me(this.a.a.a);u.a=de)Gt(_,$t(U)),Ve=d.Math.max(Ve,et[U-1]-q),C+=ue,Se+=et[U-1]-Se,q=et[U-1],ue=O[U];ue=d.Math.max(ue,O[U]),++U}C+=ue}if(ae=d.Math.min(1/Ve,1/s.b/C),ae>f)f=ae,u=_}return u},v.pg=function(){return!1};var kqi=V(Pm,"MSDCutIndexHeuristic",816);G(1683,1,Pa,syt),v.Kf=function(n,s){iAn(b(n,36),s)};var Aqi=V(Pm,"SingleEdgeGraphWrapper",1683);G(232,22,{3:1,34:1,22:1,232:1},LM);var rk,oN,lN,Ix,e9,nk,cN=ei(Zc,"CenterEdgeLabelPlacementStrategy",232,li,V0n,qon),LJt;G(431,22,{3:1,34:1,22:1,431:1},ERe);var XUe,C1e,QUe=ei(Zc,"ConstraintCalculationStrategy",431,li,cdn,Yon),MJt;G(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},bce),v.dg=function(){return oGt(this)},v.qg=function(){return oGt(this)};var pz,t9,ZUe,JUe=ei(Zc,"CrossingMinimizationStrategy",322,li,nfn,Won),DJt;G(351,22,{3:1,34:1,22:1,351:1},yce);var eGe,k1e,tee,tGe=ei(Zc,"CuttingStrategy",351,li,ifn,jon),PJt;G(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},l$),v.dg=function(){return QGt(this)},v.qg=function(){return QGt(this)};var rGe,A1e,uN,R1e,hN,nGe=ei(Zc,"CycleBreakingStrategy",348,li,o0n,Kon),BJt;G(428,22,{3:1,34:1,22:1,428:1},wRe);var ree,iGe,aGe=ei(Zc,"DirectionCongruency",428,li,ldn,Xon),FJt;G(460,22,{3:1,34:1,22:1,460:1},vce);var dN,I1e,ik,$Jt=ei(Zc,"EdgeConstraint",460,li,afn,nln),UJt;G(283,22,{3:1,34:1,22:1,283:1},MM);var O1e,N1e,L1e,M1e,nee,D1e,sGe=ei(Zc,"EdgeLabelSideSelection",283,li,U0n,iln),GJt;G(488,22,{3:1,34:1,22:1,488:1},SRe);var iee,oGe,lGe=ei(Zc,"EdgeStraighteningStrategy",488,li,mdn,aln),zJt;G(281,22,{3:1,34:1,22:1,281:1},DM);var P1e,cGe,uGe,aee,hGe,dGe,fGe=ei(Zc,"FixedAlignment",281,li,G0n,rln),VJt;G(282,22,{3:1,34:1,22:1,282:1},PM);var pGe,gGe,mGe,bGe,r9,yGe,vGe=ei(Zc,"GraphCompactionStrategy",282,li,z0n,Qon),HJt;G(259,22,{3:1,34:1,22:1,259:1},AT);var fN,see,pN,Wf,n9,oee,gN,ak,lee,i9,B1e=ei(Zc,"GraphProperties",259,li,Cmn,Zon),qJt;G(299,22,{3:1,34:1,22:1,299:1},_ce);var gz,F1e,$1e,U1e=ei(Zc,"GreedySwitchType",299,li,sfn,Jon),YJt;G(311,22,{3:1,34:1,22:1,311:1},Ece);var N5,mz,sk,WJt=ei(Zc,"InLayerConstraint",311,li,ofn,eln),jJt;G(429,22,{3:1,34:1,22:1,429:1},TRe);var G1e,_Ge,EGe=ei(Zc,"InteractiveReferencePoint",429,li,odn,tln),KJt,wGe,L5,yS,cee,SGe,TGe,uee,xGe,bz,hee,a9,M5,Fb,z1e,dee,Pc,CGe,v_,Tu,V1e,H1e,yz,mE,vS,D5,kGe,P5,vz,Ox,tg,Cp,q1e,ok,Aa,Ea,AGe,RGe,IGe,OGe,NGe,Y1e,fee,id,_S,W1e,B5,s9,Ug,lk,ES,ck,uk,mN,bE,LGe,j1e,K1e,F5;G(171,22,{3:1,34:1,22:1,171:1},c$);var o9,__,l9,Nx,_z,MGe=ei(Zc,"LayerConstraint",171,li,c0n,sln),XJt;G(859,1,Ep,wSt),v.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,N9e),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),HGe),(Fy(),ja)),aGe),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,L9e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(nn(),!1)),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,yZ),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),XGe),ja),EGe),Tr(Qr)))),Ls(n,yZ,$0e,Her),Ls(n,yZ,kD,Ver),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,M9e),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,D9e),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),so),_s),Tr(Qr)))),Er(n,new fr(Znn(vr(yr(_r($r(pr(br(gr(mr(new dr,P9e),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),so),_s),Tr(xE)),Te(we(or,1),Bt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,B9e),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),ize),ja),fVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,F9e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),$t(7)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,$9e),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,U9e),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,$0e),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),VGe),ja),nGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,$G),cge),"Node Layering Strategy"),"Strategy for node layering."),JGe),ja),tVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,G9e),cge),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),QGe),ja),MGe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,z9e),cge),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,V9e),cge),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),$t(-1)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,U0e),yWt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),$t(4)),pc),qo),Tr(Qr)))),Ls(n,U0e,$G,Qer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,G0e),yWt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),$t(2)),pc),qo),Tr(Qr)))),Ls(n,G0e,$G,Jer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,z0e),vWt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),ZGe),ja),uVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,V0e),vWt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),$t(0)),pc),qo),Tr(Qr)))),Ls(n,V0e,z0e,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,H0e),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),$t(sa)),pc),qo),Tr(Qr)))),Ls(n,H0e,$G,Yer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,kD),VO),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),zGe),ja),JUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,H9e),VO),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,q0e),VO),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),0.1),el),Bs),Tr(Qr)))),Ls(n,q0e,OZ,mer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Y0e),VO),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),so),_s),Tr(Qr)))),Ls(n,Y0e,kD,wer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,q9e),VO),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),Ek),or),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Y9e),VO),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),Ek),or),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,W9e),VO),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,j9e),VO),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),$t(-1)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,K9e),_Wt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),$t(40)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,W0e),_Wt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),GGe),ja),U1e),Tr(Qr)))),Ls(n,W0e,kD,per),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,vZ),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),UGe),ja),U1e),Tr(Qr)))),Ls(n,vZ,kD,her),Ls(n,vZ,OZ,der),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,q4),EWt),"Node Placement Strategy"),"Strategy for node placement."),nze),ja),aVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,_Z),EWt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),so),_s),Tr(Qr)))),Ls(n,_Z,q4,utr),Ls(n,_Z,q4,htr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,j0e),wWt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),eze),ja),lGe),Tr(Qr)))),Ls(n,j0e,q4,str),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,K0e),wWt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),tze),ja),fGe),Tr(Qr)))),Ls(n,K0e,q4,ltr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,X0e),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),0.3),el),Bs),Tr(Qr)))),Ls(n,X0e,q4,ftr),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,Q0e),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),ja),bbe),Tr(Qs)))),Ls(n,Q0e,q4,btr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Z0e),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),rze),ja),bbe),Tr(Qr)))),Ls(n,Z0e,q4,mtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,X9e),SWt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),WGe),ja),mVe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Q9e),SWt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),jGe),ja),bVe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,EZ),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),KGe),ja),vVe),Tr(Qr)))),Ls(n,EZ,UG,Ler),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,wZ),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),0.2),el),Bs),Tr(Qr)))),Ls(n,wZ,UG,Der),Ls(n,wZ,EZ,Per),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,J0e),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),el),Bs),Tr(Qr)))),Ls(n,J0e,UG,Rer),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,Z9e),Bg),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,J9e),Bg),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ePe),Bg),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,tPe),Bg),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,rPe),dPe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,nPe),dPe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,iPe),dPe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ege),fPe),UYt),"Tries to further compact components (disconnected sub-graphs)."),!1),so),_s),Tr(Qr)))),Ls(n,ege,wD,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,aPe),TWt),"Post Compaction Strategy"),xWt),PGe),ja),vGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,sPe),TWt),"Post Compaction Constraint Calculation"),xWt),DGe),ja),QUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,SZ),pPe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,tge),pPe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),$t(16)),pc),qo),Tr(Qr)))),Ls(n,tge,SZ,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,rge),pPe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),$t(5)),pc),qo),Tr(Qr)))),Ls(n,rge,SZ,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Db),gPe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),oze),ja),SVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,TZ),gPe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),el),Bs),Tr(Qr)))),Ls(n,TZ,Db,Itr),Ls(n,TZ,Db,Otr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,xZ),gPe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),el),Bs),Tr(Qr)))),Ls(n,xZ,Db,Ltr),Ls(n,xZ,Db,Mtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,AD),CWt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),sze),ja),tGe),Tr(Qr)))),Ls(n,AD,Db,Utr),Ls(n,AD,Db,Gtr),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,nge),CWt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),zg),Yf),Tr(Qr)))),Ls(n,nge,AD,Ptr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ige),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),aze),pc),qo),Tr(Qr)))),Ls(n,ige,AD,Ftr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,CZ),kWt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),lze),ja),wVe),Tr(Qr)))),Ls(n,CZ,Db,Jtr),Ls(n,CZ,Db,err),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,kZ),kWt),"Valid Indices for Wrapping"),null),zg),Yf),Tr(Qr)))),Ls(n,kZ,Db,Xtr),Ls(n,kZ,Db,Qtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,AZ),mPe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),so),_s),Tr(Qr)))),Ls(n,AZ,Db,qtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,RZ),mPe),"Distance Penalty When Improving Cuts"),null),2),el),Bs),Tr(Qr)))),Ls(n,RZ,Db,Vtr),Ls(n,RZ,AZ,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,age),mPe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),so),_s),Tr(Qr)))),Ls(n,age,Db,Wtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oPe),uge),"Edge Label Side Selection"),"Method to decide on edge label sides."),YGe),ja),sGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,lPe),uge),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),qGe),ja),cN),Ua(Qr,Te(we(M1,1),Rt,170,0,[Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,IZ),RD),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),$Ge),ja),dVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,cPe),RD),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,uPe),RD),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,sge),RD),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),BGe),ja),aUe),Tr(Qr)))),Ls(n,sge,wD,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,hPe),RD),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),FGe),ja),nVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oge),RD),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),el),Bs),Tr(Qr)))),Ls(n,oge,IZ,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,lge),RD),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),el),Bs),Tr(Qr)))),Ls(n,lge,IZ,null),qqt((new SSt,n))};var QJt,ZJt,JJt,DGe,eer,PGe,ter,BGe,rer,ner,ier,FGe,aer,ser,oer,$Ge,ler,cer,uer,UGe,her,der,fer,GGe,per,ger,mer,ber,yer,ver,_er,Eer,wer,Ser,zGe,Ter,VGe,xer,HGe,Cer,qGe,ker,YGe,Aer,Rer,Ier,WGe,Oer,jGe,Ner,KGe,Ler,Mer,Der,Per,Ber,Fer,$er,Uer,Ger,zer,XGe,Ver,Her,qer,Yer,Wer,jer,QGe,Ker,Xer,Qer,Zer,Jer,etr,ttr,ZGe,rtr,JGe,ntr,itr,atr,eze,str,otr,tze,ltr,ctr,utr,htr,dtr,ftr,ptr,gtr,rze,mtr,btr,ytr,nze,vtr,ize,_tr,Etr,wtr,Str,Ttr,xtr,Ctr,ktr,Atr,Rtr,Itr,Otr,Ntr,Ltr,Mtr,Dtr,Ptr,Btr,aze,Ftr,$tr,sze,Utr,Gtr,ztr,Vtr,Htr,qtr,Ytr,Wtr,jtr,oze,Ktr,Xtr,Qtr,Ztr,lze,Jtr,err,Rqi=V(Zc,"LayeredMetaDataProvider",859);G(998,1,Ep,SSt),v.hf=function(n){qqt(n)};var Gm,X1e,pee,c9,gee,cze,mee,Lx,bee,uze,hze,yee,Q1e,L1,Z1e,wS,dze,Ez,J1e,fze,trr,rrr,nrr,vee,ebe,u9,yE,irr,nf,pze,gze,_ee,tbe,zm,Eee,$b,mze,bze,yze,rbe,nbe,vze,qy,ibe,_ze,Mx,Eze,wze,Sze,wee,Dx,vE,Tze,xze,jl,Cze,arr,sh,See,kze,Aze,Rze,E_,_E,Tee,Ize,Oze,xee,SS,Nze,abe,h9,Lze,TS,d9,Cee,EE,sbe,bN,kee,wE,Mze,Dze,Pze,yN,Bze,srr,orr,lrr,crr,xS,Px,ms,Yy,urr,Bx,Fze,vN,$ze,Fx,hrr,_N,Uze,$5,drr,frr,wz,obe,Gze,Sz,p0,hk,dk,CS,SE,Aee,$x,lbe,EN,wN,kS,fk,cbe,Tz,f9,p9,prr,grr,mrr,zze,brr,ube,Vze,Hze,qze,Yze,hbe,Wze,jze,Kze,Xze,dbe,Ree,Iqi=V(Zc,"LayeredOptions",998);G(999,1,{},oyt),v.sf=function(){var n;return n=new hkt,n},v.tf=function(n){};var Oqi=V(Zc,"LayeredOptions/LayeredFactory",999);G(1391,1,{}),v.a=0;var yrr,Nqi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder",1391);G(792,1391,{},y7e);var Iee,vrr,Lqi=V(Zc,"LayeredSpacings/LayeredSpacingsBuilder",792);G(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},JC),v.dg=function(){return sVt(this)},v.qg=function(){return sVt(this)};var SN,fbe,TN,Qze,Zze,Jze,Oee,pbe,eVe,tVe=ei(Zc,"LayeringStrategy",265,li,rmn,oln),_rr;G(390,22,{3:1,34:1,22:1,390:1},wce);var gbe,rVe,Nee,nVe=ei(Zc,"LongEdgeOrderingStrategy",390,li,lfn,lln),Err;G(203,22,{3:1,34:1,22:1,203:1},wj);var pk,gk,Lee,mbe,bbe=ei(Zc,"NodeFlexibility",203,li,bpn,cln),wrr;G(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},u$),v.dg=function(){return XGt(this)},v.qg=function(){return XGt(this)};var g9,ybe,vbe,m9,iVe,aVe=ei(Zc,"NodePlacementStrategy",323,li,l0n,uln),Srr;G(243,22,{3:1,34:1,22:1,243:1},RT);var sVe,AS,Ux,xz,oVe,lVe,Cz,cVe,Mee,Dee,uVe=ei(Zc,"NodePromotionStrategy",243,li,kmn,hln),Trr;G(284,22,{3:1,34:1,22:1,284:1},Sj);var hVe,Wy,_be,Ebe,dVe=ei(Zc,"OrderingStrategy",284,li,ypn,dln),xrr;G(430,22,{3:1,34:1,22:1,430:1},xRe);var wbe,Sbe,fVe=ei(Zc,"PortSortingStrategy",430,li,udn,fln),Crr;G(463,22,{3:1,34:1,22:1,463:1},Sce);var ad,Yu,b9,krr=ei(Zc,"PortType",463,li,cfn,pln),Arr;G(387,22,{3:1,34:1,22:1,387:1},Tce);var pVe,Tbe,gVe,mVe=ei(Zc,"SelfLoopDistributionStrategy",387,li,ufn,gln),Rrr;G(349,22,{3:1,34:1,22:1,349:1},xce);var xbe,kz,Cbe,bVe=ei(Zc,"SelfLoopOrderingStrategy",349,li,hfn,mln),Irr;G(312,1,{312:1},zHt);var Mqi=V(Zc,"Spacings",312);G(350,22,{3:1,34:1,22:1,350:1},Cce);var kbe,yVe,y9,vVe=ei(Zc,"SplineRoutingMode",350,li,dfn,bln),Orr;G(352,22,{3:1,34:1,22:1,352:1},kce);var Abe,_Ve,EVe,wVe=ei(Zc,"ValidifyStrategy",352,li,ffn,yln),Nrr;G(388,22,{3:1,34:1,22:1,388:1},Ace);var Gx,Rbe,xN,SVe=ei(Zc,"WrappingStrategy",388,li,pfn,vln),Lrr;G(1398,1,Cl,pSt),v.rg=function(n){return b(n,36),Mrr},v.Kf=function(n,s){QAn(this,b(n,36),s)};var Mrr,Dqi=V(DZ,"DepthFirstCycleBreaker",1398);G(793,1,Cl,F6e),v.rg=function(n){return b(n,36),Drr},v.Kf=function(n,s){t6n(this,b(n,36),s)},v.sg=function(n){return b(nr(n,dQ(this.d,n.c.length)),10)};var Drr,Pqi=V(DZ,"GreedyCycleBreaker",793);G(1401,793,Cl,oRt),v.sg=function(n){var s,u,f,g;g=null,s=sa;for(f=new me(n);f.a1)er(Jt(ce(zo((qr(0,n.c.length),b(n.c[0],10))),(Qt(),wS))))?czt(n,this.d,b(this,669)):(Hr(),ks(n,this.d)),uPt(this.e,n)},v.lg=function(n,s,u,f){var g,_,S,C,O,M,U;if(s!=kOt(u,n.length))_=n[s-(u?1:-1)],fNe(this.f,_,u?(Sl(),Yu):(Sl(),ad));g=n[s][0],U=!f||g.k==(mn(),As),M=xg(n[s]),this.vg(M,U,!1,u),S=0;for(O=new me(M);O.a"),n0?lhe(this.a,n[s-1],n[s]):!u&&s1)er(Jt(ce(zo((qr(0,n.c.length),b(n.c[0],10))),(Qt(),wS))))?czt(n,this.d,this):(Hr(),ks(n,this.d)),er(Jt(ce(zo((qr(0,n.c.length),b(n.c[0],10))),wS)))||uPt(this.e,n)};var EYi=V(Fh,"ModelOrderBarycenterHeuristic",669);G(1866,1,ki,uCt),v.Ne=function(n,s){return Qwn(this.a,b(n,10),b(s,10))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var wYi=V(Fh,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866);G(1423,1,Cl,xSt),v.rg=function(n){var s;return b(n,36),s=$j(Qrr),Fi(s,(Xo(),su),(il(),HJ)),s},v.Kf=function(n,s){Mhn((b(n,36),s))};var Qrr,SYi=V(Fh,"NoCrossingMinimizer",1423);G(809,413,QPe,j5e),v.tg=function(n,s,u){var f,g,_,S,C,O,M,U,q,re,ae;switch(q=this.g,u.g){case 1:{g=0,_=0;for(U=new me(n.j);U.a1&&(g.j==(Ht(),Cn)?this.b[n]=!0:g.j==bn&&n>0&&(this.b[n-1]=!0))},v.f=0;var CYi=V(R1,"AllCrossingsCounter",1861);G(595,1,{},IX),v.b=0,v.d=0;var kYi=V(R1,"BinaryIndexedTree",595);G(532,1,{},O$);var CVe,Bee,AYi=V(R1,"CrossingsCounter",532);G(1950,1,ki,hCt),v.Ne=function(n,s){return sun(this.a,b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var RYi=V(R1,"CrossingsCounter/lambda$0$Type",1950);G(1951,1,ki,dCt),v.Ne=function(n,s){return oun(this.a,b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var IYi=V(R1,"CrossingsCounter/lambda$1$Type",1951);G(1952,1,ki,fCt),v.Ne=function(n,s){return lun(this.a,b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var OYi=V(R1,"CrossingsCounter/lambda$2$Type",1952);G(1953,1,ki,pCt),v.Ne=function(n,s){return cun(this.a,b(n,12),b(s,12))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var NYi=V(R1,"CrossingsCounter/lambda$3$Type",1953);G(1954,1,Ln,gCt),v.Cd=function(n){cgn(this.a,b(n,12))};var LYi=V(R1,"CrossingsCounter/lambda$4$Type",1954);G(1955,1,Si,mCt),v.Mb=function(n){return Min(this.a,b(n,12))};var MYi=V(R1,"CrossingsCounter/lambda$5$Type",1955);G(1956,1,Ln,bCt),v.Cd=function(n){Z5t(this,n)};var DYi=V(R1,"CrossingsCounter/lambda$6$Type",1956);G(1957,1,Ln,c5t),v.Cd=function(n){var s;p6(),jv(this.b,(s=this.a,b(n,12),s))};var PYi=V(R1,"CrossingsCounter/lambda$7$Type",1957);G(839,1,Nm,SAe),v.Lb=function(n){return p6(),$a(b(n,12),(Pt(),id))},v.Fb=function(n){return this===n},v.Mb=function(n){return p6(),$a(b(n,12),(Pt(),id))};var BYi=V(R1,"CrossingsCounter/lambda$8$Type",839);G(1949,1,{},yCt);var FYi=V(R1,"HyperedgeCrossingsCounter",1949);G(478,1,{34:1,478:1},d6t),v.Fd=function(n){return lvn(this,b(n,478))},v.b=0,v.c=0,v.e=0,v.f=0;var z6n=V(R1,"HyperedgeCrossingsCounter/Hyperedge",478);G(374,1,{34:1,374:1},OK),v.Fd=function(n){return wxn(this,b(n,374))},v.b=0,v.c=0;var Zrr=V(R1,"HyperedgeCrossingsCounter/HyperedgeCorner",374);G(531,22,{3:1,34:1,22:1,531:1},CRe);var _9,E9,Jrr=ei(R1,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,li,hdn,Eln),enr;G(1425,1,Cl,CSt),v.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?tnr:null},v.Kf=function(n,s){L2n(this,b(n,36),s)};var tnr,$Yi=V(kl,"InteractiveNodePlacer",1425);G(1426,1,Cl,kSt),v.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?rnr:null},v.Kf=function(n,s){b_n(this,b(n,36),s)};var rnr,Fee,$ee,UYi=V(kl,"LinearSegmentsNodePlacer",1426);G(261,1,{34:1,261:1},w5e),v.Fd=function(n){return Ynn(this,b(n,261))},v.Fb=function(n){var s;if(He(n,261))return s=b(n,261),this.b==s.b;return!1},v.Hb=function(){return this.b},v.Ib=function(){return"ls"+i_(this.e)},v.a=0,v.b=0,v.c=-1,v.d=-1,v.g=0;var nnr=V(kl,"LinearSegmentsNodePlacer/LinearSegment",261);G(1428,1,Cl,BOt),v.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?inr:null},v.Kf=function(n,s){YIn(this,b(n,36),s)},v.b=0,v.g=0;var inr,GYi=V(kl,"NetworkSimplexPlacer",1428);G(1447,1,ki,byt),v.Ne=function(n,s){return jc(b(n,17).a,b(s,17).a)},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var zYi=V(kl,"NetworkSimplexPlacer/0methodref$compare$Type",1447);G(1449,1,ki,yyt),v.Ne=function(n,s){return jc(b(n,17).a,b(s,17).a)},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var VYi=V(kl,"NetworkSimplexPlacer/1methodref$compare$Type",1449);G(655,1,{655:1},u5t);var V6n=V(kl,"NetworkSimplexPlacer/EdgeRep",655);G(412,1,{412:1},yOe),v.b=!1;var H6n=V(kl,"NetworkSimplexPlacer/NodeRep",412);G(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},_kt);var HYi=V(kl,"NetworkSimplexPlacer/Path",515);G(1429,1,{},vyt),v.Kb=function(n){return b(n,18).d.i.k};var qYi=V(kl,"NetworkSimplexPlacer/Path/lambda$0$Type",1429);G(1430,1,Si,_yt),v.Mb=function(n){return b(n,273)==(mn(),mo)};var YYi=V(kl,"NetworkSimplexPlacer/Path/lambda$1$Type",1430);G(1431,1,{},Eyt),v.Kb=function(n){return b(n,18).d.i};var WYi=V(kl,"NetworkSimplexPlacer/Path/lambda$2$Type",1431);G(1432,1,Si,vCt),v.Mb=function(n){return XIt(JBt(b(n,10)))};var jYi=V(kl,"NetworkSimplexPlacer/Path/lambda$3$Type",1432);G(1433,1,Si,wyt),v.Mb=function(n){return Hcn(b(n,12))};var KYi=V(kl,"NetworkSimplexPlacer/lambda$0$Type",1433);G(1434,1,Ln,h5t),v.Cd=function(n){xan(this.a,this.b,b(n,12))};var XYi=V(kl,"NetworkSimplexPlacer/lambda$1$Type",1434);G(1443,1,Ln,_Ct),v.Cd=function(n){QSn(this.a,b(n,18))};var QYi=V(kl,"NetworkSimplexPlacer/lambda$10$Type",1443);G(1444,1,{},Syt),v.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var ZYi=V(kl,"NetworkSimplexPlacer/lambda$11$Type",1444);G(1445,1,Ln,ECt),v.Cd=function(n){q4n(this.a,b(n,10))};var JYi=V(kl,"NetworkSimplexPlacer/lambda$12$Type",1445);G(1446,1,{},Tyt),v.Kb=function(n){return qd(),$t(b(n,125).e)};var eWi=V(kl,"NetworkSimplexPlacer/lambda$13$Type",1446);G(1448,1,{},xyt),v.Kb=function(n){return qd(),$t(b(n,125).e)};var tWi=V(kl,"NetworkSimplexPlacer/lambda$15$Type",1448);G(1450,1,Si,Cyt),v.Mb=function(n){return qd(),b(n,412).c.k==(mn(),Es)};var rWi=V(kl,"NetworkSimplexPlacer/lambda$17$Type",1450);G(1451,1,Si,kyt),v.Mb=function(n){return qd(),b(n,412).c.j.c.length>1};var nWi=V(kl,"NetworkSimplexPlacer/lambda$18$Type",1451);G(1452,1,Ln,qNt),v.Cd=function(n){Iyn(this.c,this.b,this.d,this.a,b(n,412))},v.c=0,v.d=0;var iWi=V(kl,"NetworkSimplexPlacer/lambda$19$Type",1452);G(1435,1,{},Ayt),v.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var aWi=V(kl,"NetworkSimplexPlacer/lambda$2$Type",1435);G(1453,1,Ln,wCt),v.Cd=function(n){kan(this.a,b(n,12))},v.a=0;var sWi=V(kl,"NetworkSimplexPlacer/lambda$20$Type",1453);G(1454,1,{},Ryt),v.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var oWi=V(kl,"NetworkSimplexPlacer/lambda$21$Type",1454);G(1455,1,Ln,SCt),v.Cd=function(n){$an(this.a,b(n,10))};var lWi=V(kl,"NetworkSimplexPlacer/lambda$22$Type",1455);G(1456,1,Si,Iyt),v.Mb=function(n){return XIt(n)};var cWi=V(kl,"NetworkSimplexPlacer/lambda$23$Type",1456);G(1457,1,{},Oyt),v.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var uWi=V(kl,"NetworkSimplexPlacer/lambda$24$Type",1457);G(1458,1,Si,TCt),v.Mb=function(n){return jin(this.a,b(n,10))};var hWi=V(kl,"NetworkSimplexPlacer/lambda$25$Type",1458);G(1459,1,Ln,d5t),v.Cd=function(n){tSn(this.a,this.b,b(n,10))};var dWi=V(kl,"NetworkSimplexPlacer/lambda$26$Type",1459);G(1460,1,Si,Nyt),v.Mb=function(n){return qd(),!gl(b(n,18))};var fWi=V(kl,"NetworkSimplexPlacer/lambda$27$Type",1460);G(1461,1,Si,Lyt),v.Mb=function(n){return qd(),!gl(b(n,18))};var pWi=V(kl,"NetworkSimplexPlacer/lambda$28$Type",1461);G(1462,1,{},xCt),v.Ve=function(n,s){return Can(this.a,b(n,30),b(s,30))};var gWi=V(kl,"NetworkSimplexPlacer/lambda$29$Type",1462);G(1436,1,{},Myt),v.Kb=function(n){return qd(),new Pr(null,new Aw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var mWi=V(kl,"NetworkSimplexPlacer/lambda$3$Type",1436);G(1437,1,Si,Dyt),v.Mb=function(n){return qd(),rpn(b(n,18))};var bWi=V(kl,"NetworkSimplexPlacer/lambda$4$Type",1437);G(1438,1,Ln,CCt),v.Cd=function(n){eAn(this.a,b(n,18))};var yWi=V(kl,"NetworkSimplexPlacer/lambda$5$Type",1438);G(1439,1,{},Pyt),v.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var vWi=V(kl,"NetworkSimplexPlacer/lambda$6$Type",1439);G(1440,1,Si,Byt),v.Mb=function(n){return qd(),b(n,10).k==(mn(),Es)};var _Wi=V(kl,"NetworkSimplexPlacer/lambda$7$Type",1440);G(1441,1,{},Fyt),v.Kb=function(n){return qd(),new Pr(null,new Aw(new Nn(Mn(Ab(b(n,10)).a.Kc(),new L))))};var EWi=V(kl,"NetworkSimplexPlacer/lambda$8$Type",1441);G(1442,1,Si,$yt),v.Mb=function(n){return qd(),Vcn(b(n,18))};var wWi=V(kl,"NetworkSimplexPlacer/lambda$9$Type",1442);G(1424,1,Cl,ASt),v.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?anr:null},v.Kf=function(n,s){MAn(b(n,36),s)};var anr,SWi=V(kl,"SimpleNodePlacer",1424);G(185,1,{185:1},D4),v.Ib=function(){var n="";return this.c==(Tm(),RS)?n+=y5:this.c==jy&&(n+=b5),this.o==(Sg(),TE)?n+=b0e:this.o==Gg?n+="UP":n+="BALANCED",n};var TWi=V(d_,"BKAlignedLayout",185);G(523,22,{3:1,34:1,22:1,523:1},kRe);var jy,RS,snr=ei(d_,"BKAlignedLayout/HDirection",523,li,fdn,wln),onr;G(522,22,{3:1,34:1,22:1,522:1},ARe);var TE,Gg,lnr=ei(d_,"BKAlignedLayout/VDirection",522,li,pdn,Sln),cnr;G(1699,1,{},f5t);var xWi=V(d_,"BKAligner",1699);G(1702,1,{},T$t);var CWi=V(d_,"BKCompactor",1702);G(663,1,{663:1},Uyt),v.a=0;var kWi=V(d_,"BKCompactor/ClassEdge",663);G(467,1,{467:1},bkt),v.a=null,v.b=0;var AWi=V(d_,"BKCompactor/ClassNode",467);G(1427,1,Cl,b5t),v.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?unr:null},v.Kf=function(n,s){u6n(this,b(n,36),s)},v.d=!1;var unr,RWi=V(d_,"BKNodePlacer",1427);G(1700,1,{},Gyt),v.d=0;var IWi=V(d_,"NeighborhoodInformation",1700);G(1701,1,ki,kCt),v.Ne=function(n,s){return Fgn(this,b(n,42),b(s,42))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var OWi=V(d_,"NeighborhoodInformation/NeighborComparator",1701);G(823,1,{});var NWi=V(d_,"ThresholdStrategy",823);G(1825,823,{},ykt),v.wg=function(n,s,u){return this.a.o==(Sg(),Gg)?Wa:Gs},v.xg=function(){};var LWi=V(d_,"ThresholdStrategy/NullThresholdStrategy",1825);G(587,1,{587:1},y5t),v.c=!1,v.d=!1;var MWi=V(d_,"ThresholdStrategy/Postprocessable",587);G(1826,823,{},vkt),v.wg=function(n,s,u){var f,g,_;if(g=s==u,f=this.a.a[u.p]==s,!(g||f))return n;if(_=n,this.a.c==(Tm(),RS))g&&(_=mpe(this,s,!0)),!isNaN(_)&&!isFinite(_)&&f&&(_=mpe(this,u,!1));else g&&(_=mpe(this,s,!0)),!isNaN(_)&&!isFinite(_)&&f&&(_=mpe(this,u,!1));return _},v.xg=function(){var n,s,u,f,g;while(this.d.b!=0){if(g=b(Rdn(this.d),587),f=XVt(this,g),!f.a)continue;if(n=f.a,u=er(this.a.f[this.a.g[g.b.p].p]),!u&&!gl(n)&&n.c.i.c==n.d.i.c)continue;s=tzt(this,g),s||Qin(this.e,g)}while(this.e.a.c.length!=0)tzt(this,b(rBt(this.e),587))};var DWi=V(d_,"ThresholdStrategy/SimpleThresholdStrategy",1826);G(645,1,{645:1,188:1,196:1},zyt),v.dg=function(){return hPt(this)},v.qg=function(){return hPt(this)};var Ibe,PWi=V(gge,"EdgeRouterFactory",645);G(1485,1,Cl,RSt),v.rg=function(n){return E4n(b(n,36))},v.Kf=function(n,s){UAn(b(n,36),s)};var hnr,dnr,fnr,pnr,gnr,kVe,mnr,bnr,BWi=V(gge,"OrthogonalEdgeRouter",1485);G(1478,1,Cl,m5t),v.rg=function(n){return V2n(b(n,36))},v.Kf=function(n,s){uIn(this,b(n,36),s)};var ynr,vnr,_nr,Enr,Rz,wnr,FWi=V(gge,"PolylineEdgeRouter",1478);G(1479,1,Nm,Hyt),v.Lb=function(n){return gLe(b(n,10))},v.Fb=function(n){return this===n},v.Mb=function(n){return gLe(b(n,10))};var $Wi=V(gge,"PolylineEdgeRouter/1",1479);G(1872,1,Si,qyt),v.Mb=function(n){return b(n,132).c==(Y0(),w_)};var UWi=V(Z0,"HyperEdgeCycleDetector/lambda$0$Type",1872);G(1873,1,{},Yyt),v.Ze=function(n){return b(n,132).d};var GWi=V(Z0,"HyperEdgeCycleDetector/lambda$1$Type",1873);G(1874,1,Si,Wyt),v.Mb=function(n){return b(n,132).c==(Y0(),w_)};var zWi=V(Z0,"HyperEdgeCycleDetector/lambda$2$Type",1874);G(1875,1,{},jyt),v.Ze=function(n){return b(n,132).d};var VWi=V(Z0,"HyperEdgeCycleDetector/lambda$3$Type",1875);G(1876,1,{},Kyt),v.Ze=function(n){return b(n,132).d};var HWi=V(Z0,"HyperEdgeCycleDetector/lambda$4$Type",1876);G(1877,1,{},Vyt),v.Ze=function(n){return b(n,132).d};var qWi=V(Z0,"HyperEdgeCycleDetector/lambda$5$Type",1877);G(118,1,{34:1,118:1},_U),v.Fd=function(n){return Wnn(this,b(n,118))},v.Fb=function(n){var s;if(He(n,118))return s=b(n,118),this.g==s.g;return!1},v.Hb=function(){return this.g},v.Ib=function(){var n,s,u,f;n=new Vd("{"),f=new me(this.n);while(f.a"+this.b+" ("+dsn(this.c)+")"},v.d=0;var WWi=V(Z0,"HyperEdgeSegmentDependency",132);G(528,22,{3:1,34:1,22:1,528:1},RRe);var w_,zx,Snr=ei(Z0,"HyperEdgeSegmentDependency/DependencyType",528,li,gdn,Tln),Tnr;G(1878,1,{},ACt);var jWi=V(Z0,"HyperEdgeSegmentSplitter",1878);G(1879,1,{},_3t),v.a=0,v.b=0;var KWi=V(Z0,"HyperEdgeSegmentSplitter/AreaRating",1879);G(339,1,{339:1},mue),v.a=0,v.b=0,v.c=0;var XWi=V(Z0,"HyperEdgeSegmentSplitter/FreeArea",339);G(1880,1,ki,Xyt),v.Ne=function(n,s){return don(b(n,118),b(s,118))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var QWi=V(Z0,"HyperEdgeSegmentSplitter/lambda$0$Type",1880);G(1881,1,Ln,YNt),v.Cd=function(n){Upn(this.a,this.d,this.c,this.b,b(n,118))},v.b=0;var ZWi=V(Z0,"HyperEdgeSegmentSplitter/lambda$1$Type",1881);G(1882,1,{},Qyt),v.Kb=function(n){return new Pr(null,new Gr(b(n,118).e,16))};var JWi=V(Z0,"HyperEdgeSegmentSplitter/lambda$2$Type",1882);G(1883,1,{},Zyt),v.Kb=function(n){return new Pr(null,new Gr(b(n,118).j,16))};var eji=V(Z0,"HyperEdgeSegmentSplitter/lambda$3$Type",1883);G(1884,1,{},Jyt),v.Ye=function(n){return rt(ht(n))};var tji=V(Z0,"HyperEdgeSegmentSplitter/lambda$4$Type",1884);G(664,1,{},Gue),v.a=0,v.b=0,v.c=0;var rji=V(Z0,"OrthogonalRoutingGenerator",664);G(1703,1,{},evt),v.Kb=function(n){return new Pr(null,new Gr(b(n,118).e,16))};var nji=V(Z0,"OrthogonalRoutingGenerator/lambda$0$Type",1703);G(1704,1,{},tvt),v.Kb=function(n){return new Pr(null,new Gr(b(n,118).j,16))};var iji=V(Z0,"OrthogonalRoutingGenerator/lambda$1$Type",1704);G(670,1,{});var aji=V(mge,"BaseRoutingDirectionStrategy",670);G(1870,670,{},Skt),v.yg=function(n,s,u){var f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(!!n.r&&!n.q)return;U=s+n.o*u;for(M=new me(n.n);M.aMm){if(_=U,g=n,f=new Dt(q,_),Oi(S.a,f),eS(this,S,g,f,!1),re=n.r,re)ae=rt(ht(Gf(re.e,0))),f=new Dt(ae,_),Oi(S.a,f),eS(this,S,g,f,!1),_=s+re.o*u,g=re,f=new Dt(ae,_),Oi(S.a,f),eS(this,S,g,f,!1);f=new Dt(de,_),Oi(S.a,f),eS(this,S,g,f,!1)}}}},v.zg=function(n){return n.i.n.a+n.n.a+n.a.a},v.Ag=function(){return Ht(),Kn},v.Bg=function(){return Ht(),pn};var sji=V(mge,"NorthToSouthRoutingStrategy",1870);G(1871,670,{},Tkt),v.yg=function(n,s,u){var f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(!!n.r&&!n.q)return;U=s-n.o*u;for(M=new me(n.n);M.aMm){if(_=U,g=n,f=new Dt(q,_),Oi(S.a,f),eS(this,S,g,f,!1),re=n.r,re)ae=rt(ht(Gf(re.e,0))),f=new Dt(ae,_),Oi(S.a,f),eS(this,S,g,f,!1),_=s-re.o*u,g=re,f=new Dt(ae,_),Oi(S.a,f),eS(this,S,g,f,!1);f=new Dt(de,_),Oi(S.a,f),eS(this,S,g,f,!1)}}}},v.zg=function(n){return n.i.n.a+n.n.a+n.a.a},v.Ag=function(){return Ht(),pn},v.Bg=function(){return Ht(),Kn};var oji=V(mge,"SouthToNorthRoutingStrategy",1871);G(1869,670,{},xkt),v.yg=function(n,s,u){var f,g,_,S,C,O,M,U,q,re,ae,ue,de;if(!!n.r&&!n.q)return;U=s+n.o*u;for(M=new me(n.n);M.aMm){if(_=U,g=n,f=new Dt(_,q),Oi(S.a,f),eS(this,S,g,f,!0),re=n.r,re)ae=rt(ht(Gf(re.e,0))),f=new Dt(_,ae),Oi(S.a,f),eS(this,S,g,f,!0),_=s+re.o*u,g=re,f=new Dt(_,ae),Oi(S.a,f),eS(this,S,g,f,!0);f=new Dt(_,de),Oi(S.a,f),eS(this,S,g,f,!0)}}}},v.zg=function(n){return n.i.n.b+n.n.b+n.a.b},v.Ag=function(){return Ht(),Cn},v.Bg=function(){return Ht(),bn};var lji=V(mge,"WestToEastRoutingStrategy",1869);G(828,1,{},fDe),v.Ib=function(){return i_(this.a)},v.b=0,v.c=!1,v.d=!1,v.f=0;var cji=V(yx,"NubSpline",828);G(418,1,{418:1},Mzt,TLt);var uji=V(yx,"NubSpline/PolarCP",418);G(1480,1,Cl,m$t),v.rg=function(n){return NEn(b(n,36))},v.Kf=function(n,s){RIn(this,b(n,36),s)};var xnr,Cnr,knr,Anr,Rnr,hji=V(yx,"SplineEdgeRouter",1480);G(274,1,{274:1},eX),v.Ib=function(){return this.a+" ->("+this.c+") "+this.b},v.c=0;var dji=V(yx,"SplineEdgeRouter/Dependency",274);G(465,22,{3:1,34:1,22:1,465:1},IRe);var S_,mk,Inr=ei(yx,"SplineEdgeRouter/SideToProcess",465,li,Edn,xln),Onr;G(1481,1,Si,rvt),v.Mb=function(n){return iD(),!b(n,131).o};var fji=V(yx,"SplineEdgeRouter/lambda$0$Type",1481);G(1482,1,{},nvt),v.Ze=function(n){return iD(),b(n,131).v+1};var pji=V(yx,"SplineEdgeRouter/lambda$1$Type",1482);G(1483,1,Ln,v5t),v.Cd=function(n){Wcn(this.a,this.b,b(n,42))};var gji=V(yx,"SplineEdgeRouter/lambda$2$Type",1483);G(1484,1,Ln,_5t),v.Cd=function(n){jcn(this.a,this.b,b(n,42))};var mji=V(yx,"SplineEdgeRouter/lambda$3$Type",1484);G(131,1,{34:1,131:1},jUt,vDe),v.Fd=function(n){return Xnn(this,b(n,131))},v.b=0,v.e=!1,v.f=0,v.g=0,v.j=!1,v.k=!1,v.n=0,v.o=!1,v.p=!1,v.q=!1,v.s=0,v.u=0,v.v=0,v.F=0;var bji=V(yx,"SplineSegment",131);G(468,1,{468:1},ivt),v.a=0,v.b=!1,v.c=!1,v.d=!1,v.e=!1,v.f=0;var yji=V(yx,"SplineSegment/EdgeInformation",468);G(1198,1,{},avt);var vji=V(Bb,m9e,1198);G(1199,1,ki,svt),v.Ne=function(n,s){return pTn(b(n,121),b(s,121))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var _ji=V(Bb,HYt,1199);G(1197,1,{},P3t);var Eji=V(Bb,"MrTree",1197);G(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},Tj),v.dg=function(){return gGt(this)},v.qg=function(){return gGt(this)};var Uee,w9,S9,T9,AVe=ei(Bb,"TreeLayoutPhases",405,li,Spn,Cln),Nnr;G(1112,205,sE,u6t),v.rf=function(n,s){var u,f,g,_,S,C,O,M;er(Jt(It(n,(Oc(),JVe))))||Y$((u=new uM((mw(),new lw(n))),u)),S=s.eh(vge),S.Ug("build tGraph",1),C=(O=new tU,nc(O,n),At(O,(Ma(),C9),n),M=new Zn,s3n(n,O,M),x3n(n,O,M),O),S.Vg(),S=s.eh(vge),S.Ug("Split graph",1),_=d3n(this.a,C),S.Vg();for(g=new me(_);g.a"+G2(this.c):"e_"+Da(this)};var Dji=V(ID,"TEdge",65);G(121,137,{3:1,121:1,96:1,137:1},tU),v.Ib=function(){var n,s,u,f,g;g=null;for(f=ti(this.b,0);f.b!=f.d.c;)u=b(Jn(f),40),g+=(u.c==null||u.c.length==0?"n_"+u.g:"n_"+u.c)+` + endInLayerEdge=`,pu(n,this.c),n.a};var wqi=V(Pm,"BreakingPointInserter/BPInfo",313);G(661,1,{661:1},uCt),_.a=!1,_.b=0,_.c=0;var Sqi=V(Pm,"BreakingPointInserter/Cut",661);G(1545,1,Pa,ayt),_.Kf=function(n,s){eCn(b(n,36),s)};var Tqi=V(Pm,"BreakingPointProcessor",1545);G(1546,1,Si,syt),_.Mb=function(n){return IDt(b(n,10))};var xqi=V(Pm,"BreakingPointProcessor/0methodref$isEnd$Type",1546);G(1547,1,Si,oyt),_.Mb=function(n){return ODt(b(n,10))};var Cqi=V(Pm,"BreakingPointProcessor/1methodref$isStart$Type",1547);G(1548,1,Pa,lyt),_.Kf=function(n,s){wCn(this,b(n,36),s)};var kqi=V(Pm,"BreakingPointRemover",1548);G(1549,1,Ln,cyt),_.Cd=function(n){b(n,131).k=!0};var Aqi=V(Pm,"BreakingPointRemover/lambda$0$Type",1549);G(811,1,{},_8e),_.b=0,_.e=0,_.f=0,_.j=0;var Rqi=V(Pm,"GraphStats",811);G(812,1,{},wAe),_.Ve=function(n,s){return d.Math.max(rt(ht(n)),rt(ht(s)))};var Iqi=V(Pm,"GraphStats/0methodref$max$Type",812);G(813,1,{},SAe),_.Ve=function(n,s){return d.Math.max(rt(ht(n)),rt(ht(s)))};var Oqi=V(Pm,"GraphStats/2methodref$max$Type",813);G(1726,1,{},uyt),_.Ve=function(n,s){return Scn(ht(n),ht(s))};var Nqi=V(Pm,"GraphStats/lambda$1$Type",1726);G(1727,1,{},tCt),_.Kb=function(n){return PFt(this.a,b(n,30))};var Lqi=V(Pm,"GraphStats/lambda$2$Type",1727);G(1728,1,{},rCt),_.Kb=function(n){return kzt(this.a,b(n,30))};var Mqi=V(Pm,"GraphStats/lambda$6$Type",1728);G(814,1,{},TAe),_.og=function(n,s){var u=b(ce(n,(Qt(),jze)),15);return u?u:(Hr(),Hr(),Jo)},_.pg=function(){return!1};var Dqi=V(Pm,"ICutIndexCalculator/ManualCutIndexCalculator",814);G(816,1,{},xAe),_.og=function(n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt;wt=(s.n==null&&u$t(s),s.n),O=(s.d==null&&u$t(s),s.d),et=mt(xo,Ml,28,wt.length,15,1),et[0]=wt[0],Be=wt[0];for(M=1;M=de)Gt(E,$t(U)),Ve=d.Math.max(Ve,et[U-1]-q),C+=ue,xe+=et[U-1]-xe,q=et[U-1],ue=O[U];ue=d.Math.max(ue,O[U]),++U}C+=ue}if(ae=d.Math.min(1/Ve,1/s.b/C),ae>f)f=ae,u=E}return u},_.pg=function(){return!1};var Pqi=V(Pm,"MSDCutIndexHeuristic",816);G(1683,1,Pa,hyt),_.Kf=function(n,s){uAn(b(n,36),s)};var Bqi=V(Pm,"SingleEdgeGraphWrapper",1683);G(232,22,{3:1,34:1,22:1,232:1},DM);var nk,cN,uN,Nx,r9,ik,hN=ei(Zc,"CenterEdgeLabelPlacementStrategy",232,li,K0n,Qon),FJt;G(431,22,{3:1,34:1,22:1,431:1},TRe);var JUe,R1e,eGe=ei(Zc,"ConstraintCalculationStrategy",431,li,gdn,Zon),$Jt;G(322,22,{3:1,34:1,22:1,322:1,188:1,196:1},_ce),_.dg=function(){return dGt(this)},_.qg=function(){return dGt(this)};var bz,n9,tGe,rGe=ei(Zc,"CrossingMinimizationStrategy",322,li,cfn,Jon),UJt;G(351,22,{3:1,34:1,22:1,351:1},Ece);var nGe,I1e,iee,iGe=ei(Zc,"CuttingStrategy",351,li,ufn,eln),GJt;G(348,22,{3:1,34:1,22:1,348:1,188:1,196:1},h$),_.dg=function(){return rzt(this)},_.qg=function(){return rzt(this)};var aGe,O1e,dN,N1e,fN,sGe=ei(Zc,"CycleBreakingStrategy",348,li,f0n,tln),zJt;G(428,22,{3:1,34:1,22:1,428:1},xRe);var aee,oGe,lGe=ei(Zc,"DirectionCongruency",428,li,pdn,rln),VJt;G(460,22,{3:1,34:1,22:1,460:1},wce);var pN,L1e,ak,HJt=ei(Zc,"EdgeConstraint",460,li,hfn,cln),qJt;G(283,22,{3:1,34:1,22:1,283:1},PM);var M1e,D1e,P1e,B1e,see,F1e,cGe=ei(Zc,"EdgeLabelSideSelection",283,li,Y0n,uln),YJt;G(488,22,{3:1,34:1,22:1,488:1},CRe);var oee,uGe,hGe=ei(Zc,"EdgeStraighteningStrategy",488,li,wdn,hln),WJt;G(281,22,{3:1,34:1,22:1,281:1},BM);var $1e,dGe,fGe,lee,pGe,gGe,mGe=ei(Zc,"FixedAlignment",281,li,W0n,lln),jJt;G(282,22,{3:1,34:1,22:1,282:1},FM);var bGe,yGe,vGe,_Ge,i9,EGe,wGe=ei(Zc,"GraphCompactionStrategy",282,li,j0n,nln),KJt;G(259,22,{3:1,34:1,22:1,259:1},IT);var gN,cee,mN,Wf,a9,uee,bN,sk,hee,s9,U1e=ei(Zc,"GraphProperties",259,li,Nmn,iln),XJt;G(299,22,{3:1,34:1,22:1,299:1},Sce);var yz,G1e,z1e,V1e=ei(Zc,"GreedySwitchType",299,li,dfn,aln),QJt;G(311,22,{3:1,34:1,22:1,311:1},Tce);var D5,vz,ok,ZJt=ei(Zc,"InLayerConstraint",311,li,ffn,sln),JJt;G(429,22,{3:1,34:1,22:1,429:1},kRe);var H1e,SGe,TGe=ei(Zc,"InteractiveReferencePoint",429,li,fdn,oln),eer,xGe,P5,vS,dee,CGe,kGe,fee,AGe,_z,pee,o9,B5,Fb,q1e,gee,Pc,RGe,v_,Tu,Y1e,W1e,Ez,mE,_S,F5,IGe,$5,wz,Lx,tg,Cp,j1e,lk,Aa,Ea,OGe,NGe,LGe,MGe,DGe,K1e,mee,id,ES,X1e,U5,l9,Ug,ck,wS,uk,hk,yN,bE,PGe,Q1e,Z1e,G5;G(171,22,{3:1,34:1,22:1,171:1},d$);var c9,__,u9,Mx,Sz,BGe=ei(Zc,"LayerConstraint",171,li,g0n,dln),ter;G(859,1,Ep,kSt),_.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,D9e),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),WGe),(Fy(),ja)),lGe),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,P9e),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(an(),!1)),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,EZ),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),JGe),ja),TGe),Tr(Qr)))),Ls(n,EZ,z0e,Ker),Ls(n,EZ,RD,jer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,B9e),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,F9e),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),so),_s),Tr(Qr)))),Er(n,new fr(iin(vr(yr(_r($r(pr(br(gr(mr(new dr,$9e),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),so),_s),Tr(xE)),Ce(Te(or,1),Bt,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,U9e),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),oze),ja),mVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,G9e),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),$t(7)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,z9e),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,V9e),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,z0e),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),YGe),ja),sGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,zG),dge),"Node Layering Strategy"),"Strategy for node layering."),rze),ja),iVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,H9e),dge),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),eze),ja),BGe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,q9e),dge),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Y9e),dge),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),$t(-1)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,V0e),SWt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),$t(4)),pc),qo),Tr(Qr)))),Ls(n,V0e,zG,rtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,H0e),SWt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),$t(2)),pc),qo),Tr(Qr)))),Ls(n,H0e,zG,itr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,q0e),TWt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),tze),ja),fVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Y0e),TWt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),$t(0)),pc),qo),Tr(Qr)))),Ls(n,Y0e,q0e,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,W0e),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),$t(sa)),pc),qo),Tr(Qr)))),Ls(n,W0e,zG,Qer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,RD),qO),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),qGe),ja),rGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,W9e),qO),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,j0e),qO),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),0.1),el),Bs),Tr(Qr)))),Ls(n,j0e,MZ,Eer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,K0e),qO),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),so),_s),Tr(Qr)))),Ls(n,K0e,RD,ker),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,j9e),qO),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),wk),or),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,K9e),qO),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),wk),or),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,X9e),qO),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Q9e),qO),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),$t(-1)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Z9e),xWt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),$t(40)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,X0e),xWt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),HGe),ja),V1e),Tr(Qr)))),Ls(n,X0e,RD,ver),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,wZ),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),VGe),ja),V1e),Tr(Qr)))),Ls(n,wZ,RD,mer),Ls(n,wZ,MZ,ber),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Y4),CWt),"Node Placement Strategy"),"Strategy for node placement."),sze),ja),lVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,SZ),CWt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),so),_s),Tr(Qr)))),Ls(n,SZ,Y4,gtr),Ls(n,SZ,Y4,mtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Q0e),kWt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),nze),ja),hGe),Tr(Qr)))),Ls(n,Q0e,Y4,htr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Z0e),kWt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),ize),ja),mGe),Tr(Qr)))),Ls(n,Z0e,Y4,ftr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,J0e),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),0.3),el),Bs),Tr(Qr)))),Ls(n,J0e,Y4,ytr),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,ege),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),ja),_be),Tr(Qs)))),Ls(n,ege,Y4,wtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,tge),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),aze),ja),_be),Tr(Qr)))),Ls(n,tge,Y4,Etr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,J9e),AWt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),XGe),ja),vVe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ePe),AWt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),QGe),ja),_Ve),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,TZ),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),ZGe),ja),wVe),Tr(Qr)))),Ls(n,TZ,VG,Fer),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,xZ),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),0.2),el),Bs),Tr(Qr)))),Ls(n,xZ,VG,Uer),Ls(n,xZ,TZ,Ger),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,rge),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),el),Bs),Tr(Qr)))),Ls(n,rge,VG,Mer),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,tPe),Bg),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,rPe),Bg),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,nPe),Bg),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,iPe),Bg),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,aPe),gPe),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,sPe),gPe),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oPe),gPe),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),$t(0)),pc),qo),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,nge),mPe),qYt),"Tries to further compact components (disconnected sub-graphs)."),!1),so),_s),Tr(Qr)))),Ls(n,nge,TD,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,lPe),RWt),"Post Compaction Strategy"),IWt),$Ge),ja),wGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,cPe),RWt),"Post Compaction Constraint Calculation"),IWt),FGe),ja),eGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,CZ),bPe),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ige),bPe),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),$t(16)),pc),qo),Tr(Qr)))),Ls(n,ige,CZ,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,age),bPe),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),$t(5)),pc),qo),Tr(Qr)))),Ls(n,age,CZ,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Db),yPe),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),uze),ja),CVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,kZ),yPe),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),el),Bs),Tr(Qr)))),Ls(n,kZ,Db,Dtr),Ls(n,kZ,Db,Ptr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,AZ),yPe),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),el),Bs),Tr(Qr)))),Ls(n,AZ,Db,Ftr),Ls(n,AZ,Db,$tr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ID),OWt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),cze),ja),iGe),Tr(Qr)))),Ls(n,ID,Db,qtr),Ls(n,ID,Db,Ytr),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,sge),OWt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),zg),Yf),Tr(Qr)))),Ls(n,sge,ID,Gtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oge),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),lze),pc),qo),Tr(Qr)))),Ls(n,oge,ID,Vtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,RZ),NWt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),hze),ja),xVe),Tr(Qr)))),Ls(n,RZ,Db,irr),Ls(n,RZ,Db,arr),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,IZ),NWt),"Valid Indices for Wrapping"),null),zg),Yf),Tr(Qr)))),Ls(n,IZ,Db,trr),Ls(n,IZ,Db,rrr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,OZ),vPe),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),so),_s),Tr(Qr)))),Ls(n,OZ,Db,Xtr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,NZ),vPe),"Distance Penalty When Improving Cuts"),null),2),el),Bs),Tr(Qr)))),Ls(n,NZ,Db,jtr),Ls(n,NZ,OZ,!0),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,lge),vPe),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),so),_s),Tr(Qr)))),Ls(n,lge,Db,Ztr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,uPe),fge),"Edge Label Side Selection"),"Method to decide on edge label sides."),KGe),ja),cGe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,hPe),fge),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),jGe),ja),hN),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,LZ),OD),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),zGe),ja),gVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,dPe),OD),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,fPe),OD),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,cge),OD),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),UGe),ja),lUe),Tr(Qr)))),Ls(n,cge,TD,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,pPe),OD),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),GGe),ja),sVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,uge),OD),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),el),Bs),Tr(Qr)))),Ls(n,uge,LZ,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,hge),OD),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),el),Bs),Tr(Qr)))),Ls(n,hge,LZ,null),Xqt((new ASt,n))};var rer,ner,ier,FGe,aer,$Ge,ser,UGe,oer,ler,cer,GGe,uer,her,der,zGe,fer,per,ger,VGe,mer,ber,yer,HGe,ver,_er,Eer,wer,Ser,Ter,xer,Cer,ker,Aer,qGe,Rer,YGe,Ier,WGe,Oer,jGe,Ner,KGe,Ler,Mer,Der,XGe,Per,QGe,Ber,ZGe,Fer,$er,Uer,Ger,zer,Ver,Her,qer,Yer,Wer,JGe,jer,Ker,Xer,Qer,Zer,Jer,eze,etr,ttr,rtr,ntr,itr,atr,str,tze,otr,rze,ltr,ctr,utr,nze,htr,dtr,ize,ftr,ptr,gtr,mtr,btr,ytr,vtr,_tr,aze,Etr,wtr,Str,sze,Ttr,oze,xtr,Ctr,ktr,Atr,Rtr,Itr,Otr,Ntr,Ltr,Mtr,Dtr,Ptr,Btr,Ftr,$tr,Utr,Gtr,ztr,lze,Vtr,Htr,cze,qtr,Ytr,Wtr,jtr,Ktr,Xtr,Qtr,Ztr,Jtr,uze,err,trr,rrr,nrr,hze,irr,arr,Fqi=V(Zc,"LayeredMetaDataProvider",859);G(998,1,Ep,ASt),_.hf=function(n){Xqt(n)};var Gm,J1e,bee,h9,yee,dze,vee,Dx,_ee,fze,pze,Eee,ebe,L1,tbe,SS,gze,Tz,rbe,mze,srr,orr,lrr,wee,nbe,d9,yE,crr,nf,bze,yze,See,ibe,zm,Tee,$b,vze,_ze,Eze,abe,sbe,wze,qy,obe,Sze,Px,Tze,xze,Cze,xee,Bx,vE,kze,Aze,jl,Rze,urr,sh,Cee,Ize,Oze,Nze,E_,_E,kee,Lze,Mze,Aee,TS,Dze,lbe,f9,Pze,xS,p9,Ree,EE,cbe,vN,Iee,wE,Bze,Fze,$ze,_N,Uze,hrr,drr,frr,prr,CS,Fx,ms,Yy,grr,$x,Gze,EN,zze,Ux,mrr,wN,Vze,z5,brr,yrr,xz,ube,Hze,Cz,p0,dk,fk,kS,SE,Oee,Gx,hbe,SN,TN,AS,pk,dbe,kz,g9,m9,vrr,_rr,Err,qze,wrr,fbe,Yze,Wze,jze,Kze,pbe,Xze,Qze,Zze,Jze,gbe,Nee,$qi=V(Zc,"LayeredOptions",998);G(999,1,{},dyt),_.sf=function(){var n;return n=new mkt,n},_.tf=function(n){};var Uqi=V(Zc,"LayeredOptions/LayeredFactory",999);G(1391,1,{}),_.a=0;var Srr,Gqi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder",1391);G(792,1391,{},E7e);var Lee,Trr,zqi=V(Zc,"LayeredSpacings/LayeredSpacingsBuilder",792);G(265,22,{3:1,34:1,22:1,265:1,188:1,196:1},e4),_.dg=function(){return hVt(this)},_.qg=function(){return hVt(this)};var xN,mbe,CN,eVe,tVe,rVe,Mee,bbe,nVe,iVe=ei(Zc,"LayeringStrategy",265,li,lmn,fln),xrr;G(390,22,{3:1,34:1,22:1,390:1},xce);var ybe,aVe,Dee,sVe=ei(Zc,"LongEdgeOrderingStrategy",390,li,pfn,pln),Crr;G(203,22,{3:1,34:1,22:1,203:1},xj);var gk,mk,Pee,vbe,_be=ei(Zc,"NodeFlexibility",203,li,Spn,gln),krr;G(323,22,{3:1,34:1,22:1,323:1,188:1,196:1},f$),_.dg=function(){return tzt(this)},_.qg=function(){return tzt(this)};var b9,Ebe,wbe,y9,oVe,lVe=ei(Zc,"NodePlacementStrategy",323,li,p0n,mln),Arr;G(243,22,{3:1,34:1,22:1,243:1},OT);var cVe,RS,zx,Az,uVe,hVe,Rz,dVe,Bee,Fee,fVe=ei(Zc,"NodePromotionStrategy",243,li,Lmn,bln),Rrr;G(284,22,{3:1,34:1,22:1,284:1},Cj);var pVe,Wy,Sbe,Tbe,gVe=ei(Zc,"OrderingStrategy",284,li,Tpn,yln),Irr;G(430,22,{3:1,34:1,22:1,430:1},ARe);var xbe,Cbe,mVe=ei(Zc,"PortSortingStrategy",430,li,mdn,vln),Orr;G(463,22,{3:1,34:1,22:1,463:1},Cce);var ad,Yu,v9,Nrr=ei(Zc,"PortType",463,li,gfn,_ln),Lrr;G(387,22,{3:1,34:1,22:1,387:1},kce);var bVe,kbe,yVe,vVe=ei(Zc,"SelfLoopDistributionStrategy",387,li,mfn,Eln),Mrr;G(349,22,{3:1,34:1,22:1,349:1},Ace);var Abe,Iz,Rbe,_Ve=ei(Zc,"SelfLoopOrderingStrategy",349,li,bfn,wln),Drr;G(312,1,{312:1},WHt);var Vqi=V(Zc,"Spacings",312);G(350,22,{3:1,34:1,22:1,350:1},Rce);var Ibe,EVe,_9,wVe=ei(Zc,"SplineRoutingMode",350,li,yfn,Sln),Prr;G(352,22,{3:1,34:1,22:1,352:1},Ice);var Obe,SVe,TVe,xVe=ei(Zc,"ValidifyStrategy",352,li,vfn,Tln),Brr;G(388,22,{3:1,34:1,22:1,388:1},Oce);var Vx,Nbe,kN,CVe=ei(Zc,"WrappingStrategy",388,li,_fn,xln),Frr;G(1398,1,Cl,vSt),_.rg=function(n){return b(n,36),$rr},_.Kf=function(n,s){n5n(this,b(n,36),s)};var $rr,Hqi=V(FZ,"DepthFirstCycleBreaker",1398);G(793,1,Cl,G6e),_.rg=function(n){return b(n,36),Urr},_.Kf=function(n,s){o6n(this,b(n,36),s)},_.sg=function(n){return b(nr(n,gQ(this.d,n.c.length)),10)};var Urr,qqi=V(FZ,"GreedyCycleBreaker",793);G(1401,793,Cl,dRt),_.sg=function(n){var s,u,f,g;g=null,s=sa;for(f=new me(n);f.a1)er(Jt(ce(zo((qr(0,n.c.length),b(n.c[0],10))),(Qt(),SS))))?pzt(n,this.d,b(this,669)):(Hr(),ks(n,this.d)),gPt(this.e,n)},_.lg=function(n,s,u,f){var g,E,S,C,O,M,U;if(s!=NOt(u,n.length))E=n[s-(u?1:-1)],mNe(this.f,E,u?(Sl(),Yu):(Sl(),ad));g=n[s][0],U=!f||g.k==(bn(),As),M=xg(n[s]),this.vg(M,U,!1,u),S=0;for(O=new me(M);O.a"),n0?hhe(this.a,n[s-1],n[s]):!u&&s1)er(Jt(ce(zo((qr(0,n.c.length),b(n.c[0],10))),(Qt(),SS))))?pzt(n,this.d,this):(Hr(),ks(n,this.d)),er(Jt(ce(zo((qr(0,n.c.length),b(n.c[0],10))),SS)))||gPt(this.e,n)};var IYi=V(Fh,"ModelOrderBarycenterHeuristic",669);G(1866,1,ki,gCt),_.Ne=function(n,s){return nSn(this.a,b(n,10),b(s,10))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var OYi=V(Fh,"ModelOrderBarycenterHeuristic/lambda$0$Type",1866);G(1423,1,Cl,ISt),_.rg=function(n){var s;return b(n,36),s=zj(rnr),Fi(s,(Xo(),su),(il(),WJ)),s},_.Kf=function(n,s){Uhn((b(n,36),s))};var rnr,NYi=V(Fh,"NoCrossingMinimizer",1423);G(809,413,eBe,Q5e),_.tg=function(n,s,u){var f,g,E,S,C,O,M,U,q,re,ae;switch(q=this.g,u.g){case 1:{g=0,E=0;for(U=new me(n.j);U.a1&&(g.j==(Ht(),Cn)?this.b[n]=!0:g.j==yn&&n>0&&(this.b[n-1]=!0))},_.f=0;var DYi=V(R1,"AllCrossingsCounter",1861);G(595,1,{},LX),_.b=0,_.d=0;var PYi=V(R1,"BinaryIndexedTree",595);G(532,1,{},M$);var RVe,Uee,BYi=V(R1,"CrossingsCounter",532);G(1950,1,ki,mCt),_.Ne=function(n,s){return dun(this.a,b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var FYi=V(R1,"CrossingsCounter/lambda$0$Type",1950);G(1951,1,ki,bCt),_.Ne=function(n,s){return fun(this.a,b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var $Yi=V(R1,"CrossingsCounter/lambda$1$Type",1951);G(1952,1,ki,yCt),_.Ne=function(n,s){return pun(this.a,b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var UYi=V(R1,"CrossingsCounter/lambda$2$Type",1952);G(1953,1,ki,vCt),_.Ne=function(n,s){return gun(this.a,b(n,12),b(s,12))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var GYi=V(R1,"CrossingsCounter/lambda$3$Type",1953);G(1954,1,Ln,_Ct),_.Cd=function(n){ggn(this.a,b(n,12))};var zYi=V(R1,"CrossingsCounter/lambda$4$Type",1954);G(1955,1,Si,ECt),_.Mb=function(n){return Uin(this.a,b(n,12))};var VYi=V(R1,"CrossingsCounter/lambda$5$Type",1955);G(1956,1,Ln,wCt),_.Cd=function(n){nRt(this,n)};var HYi=V(R1,"CrossingsCounter/lambda$6$Type",1956);G(1957,1,Ln,p5t),_.Cd=function(n){var s;m6(),jv(this.b,(s=this.a,b(n,12),s))};var qYi=V(R1,"CrossingsCounter/lambda$7$Type",1957);G(839,1,Nm,CAe),_.Lb=function(n){return m6(),$a(b(n,12),(Pt(),id))},_.Fb=function(n){return this===n},_.Mb=function(n){return m6(),$a(b(n,12),(Pt(),id))};var YYi=V(R1,"CrossingsCounter/lambda$8$Type",839);G(1949,1,{},SCt);var WYi=V(R1,"HyperedgeCrossingsCounter",1949);G(478,1,{34:1,478:1},b6t),_.Fd=function(n){return pvn(this,b(n,478))},_.b=0,_.c=0,_.e=0,_.f=0;var j6n=V(R1,"HyperedgeCrossingsCounter/Hyperedge",478);G(374,1,{34:1,374:1},MK),_.Fd=function(n){return Axn(this,b(n,374))},_.b=0,_.c=0;var nnr=V(R1,"HyperedgeCrossingsCounter/HyperedgeCorner",374);G(531,22,{3:1,34:1,22:1,531:1},RRe);var w9,S9,inr=ei(R1,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",531,li,bdn,kln),anr;G(1425,1,Cl,OSt),_.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?snr:null},_.Kf=function(n,s){$2n(this,b(n,36),s)};var snr,jYi=V(kl,"InteractiveNodePlacer",1425);G(1426,1,Cl,NSt),_.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?onr:null},_.Kf=function(n,s){S_n(this,b(n,36),s)};var onr,Gee,zee,KYi=V(kl,"LinearSegmentsNodePlacer",1426);G(261,1,{34:1,261:1},x5e),_.Fd=function(n){return Znn(this,b(n,261))},_.Fb=function(n){var s;if(He(n,261))return s=b(n,261),this.b==s.b;return!1},_.Hb=function(){return this.b},_.Ib=function(){return"ls"+i_(this.e)},_.a=0,_.b=0,_.c=-1,_.d=-1,_.g=0;var lnr=V(kl,"LinearSegmentsNodePlacer/LinearSegment",261);G(1428,1,Cl,zOt),_.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?cnr:null},_.Kf=function(n,s){ZIn(this,b(n,36),s)},_.b=0,_.g=0;var cnr,XYi=V(kl,"NetworkSimplexPlacer",1428);G(1447,1,ki,wyt),_.Ne=function(n,s){return jc(b(n,17).a,b(s,17).a)},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var QYi=V(kl,"NetworkSimplexPlacer/0methodref$compare$Type",1447);G(1449,1,ki,Syt),_.Ne=function(n,s){return jc(b(n,17).a,b(s,17).a)},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var ZYi=V(kl,"NetworkSimplexPlacer/1methodref$compare$Type",1449);G(655,1,{655:1},g5t);var K6n=V(kl,"NetworkSimplexPlacer/EdgeRep",655);G(412,1,{412:1},EOe),_.b=!1;var X6n=V(kl,"NetworkSimplexPlacer/NodeRep",412);G(515,13,{3:1,4:1,20:1,31:1,56:1,13:1,16:1,15:1,59:1,515:1},xkt);var JYi=V(kl,"NetworkSimplexPlacer/Path",515);G(1429,1,{},Tyt),_.Kb=function(n){return b(n,18).d.i.k};var eWi=V(kl,"NetworkSimplexPlacer/Path/lambda$0$Type",1429);G(1430,1,Si,xyt),_.Mb=function(n){return b(n,273)==(bn(),mo)};var tWi=V(kl,"NetworkSimplexPlacer/Path/lambda$1$Type",1430);G(1431,1,{},Cyt),_.Kb=function(n){return b(n,18).d.i};var rWi=V(kl,"NetworkSimplexPlacer/Path/lambda$2$Type",1431);G(1432,1,Si,TCt),_.Mb=function(n){return t6t(iFt(b(n,10)))};var nWi=V(kl,"NetworkSimplexPlacer/Path/lambda$3$Type",1432);G(1433,1,Si,kyt),_.Mb=function(n){return Xcn(b(n,12))};var iWi=V(kl,"NetworkSimplexPlacer/lambda$0$Type",1433);G(1434,1,Ln,m5t),_.Cd=function(n){Oan(this.a,this.b,b(n,12))};var aWi=V(kl,"NetworkSimplexPlacer/lambda$1$Type",1434);G(1443,1,Ln,xCt),_.Cd=function(n){nTn(this.a,b(n,18))};var sWi=V(kl,"NetworkSimplexPlacer/lambda$10$Type",1443);G(1444,1,{},Ayt),_.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var oWi=V(kl,"NetworkSimplexPlacer/lambda$11$Type",1444);G(1445,1,Ln,CCt),_.Cd=function(n){Q4n(this.a,b(n,10))};var lWi=V(kl,"NetworkSimplexPlacer/lambda$12$Type",1445);G(1446,1,{},Ryt),_.Kb=function(n){return qd(),$t(b(n,125).e)};var cWi=V(kl,"NetworkSimplexPlacer/lambda$13$Type",1446);G(1448,1,{},Iyt),_.Kb=function(n){return qd(),$t(b(n,125).e)};var uWi=V(kl,"NetworkSimplexPlacer/lambda$15$Type",1448);G(1450,1,Si,Oyt),_.Mb=function(n){return qd(),b(n,412).c.k==(bn(),Es)};var hWi=V(kl,"NetworkSimplexPlacer/lambda$17$Type",1450);G(1451,1,Si,Nyt),_.Mb=function(n){return qd(),b(n,412).c.j.c.length>1};var dWi=V(kl,"NetworkSimplexPlacer/lambda$18$Type",1451);G(1452,1,Ln,XNt),_.Cd=function(n){Pyn(this.c,this.b,this.d,this.a,b(n,412))},_.c=0,_.d=0;var fWi=V(kl,"NetworkSimplexPlacer/lambda$19$Type",1452);G(1435,1,{},Lyt),_.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var pWi=V(kl,"NetworkSimplexPlacer/lambda$2$Type",1435);G(1453,1,Ln,kCt),_.Cd=function(n){Lan(this.a,b(n,12))},_.a=0;var gWi=V(kl,"NetworkSimplexPlacer/lambda$20$Type",1453);G(1454,1,{},Myt),_.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var mWi=V(kl,"NetworkSimplexPlacer/lambda$21$Type",1454);G(1455,1,Ln,ACt),_.Cd=function(n){qan(this.a,b(n,10))};var bWi=V(kl,"NetworkSimplexPlacer/lambda$22$Type",1455);G(1456,1,Si,Dyt),_.Mb=function(n){return t6t(n)};var yWi=V(kl,"NetworkSimplexPlacer/lambda$23$Type",1456);G(1457,1,{},Pyt),_.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var vWi=V(kl,"NetworkSimplexPlacer/lambda$24$Type",1457);G(1458,1,Si,RCt),_.Mb=function(n){return ean(this.a,b(n,10))};var _Wi=V(kl,"NetworkSimplexPlacer/lambda$25$Type",1458);G(1459,1,Ln,b5t),_.Cd=function(n){oSn(this.a,this.b,b(n,10))};var EWi=V(kl,"NetworkSimplexPlacer/lambda$26$Type",1459);G(1460,1,Si,Byt),_.Mb=function(n){return qd(),!gl(b(n,18))};var wWi=V(kl,"NetworkSimplexPlacer/lambda$27$Type",1460);G(1461,1,Si,Fyt),_.Mb=function(n){return qd(),!gl(b(n,18))};var SWi=V(kl,"NetworkSimplexPlacer/lambda$28$Type",1461);G(1462,1,{},ICt),_.Ve=function(n,s){return Nan(this.a,b(n,30),b(s,30))};var TWi=V(kl,"NetworkSimplexPlacer/lambda$29$Type",1462);G(1436,1,{},$yt),_.Kb=function(n){return qd(),new Pr(null,new Rw(new Nn(Mn(Ss(b(n,10)).a.Kc(),new L))))};var xWi=V(kl,"NetworkSimplexPlacer/lambda$3$Type",1436);G(1437,1,Si,Uyt),_.Mb=function(n){return qd(),lpn(b(n,18))};var CWi=V(kl,"NetworkSimplexPlacer/lambda$4$Type",1437);G(1438,1,Ln,OCt),_.Cd=function(n){sAn(this.a,b(n,18))};var kWi=V(kl,"NetworkSimplexPlacer/lambda$5$Type",1438);G(1439,1,{},Gyt),_.Kb=function(n){return qd(),new Pr(null,new Gr(b(n,30).a,16))};var AWi=V(kl,"NetworkSimplexPlacer/lambda$6$Type",1439);G(1440,1,Si,zyt),_.Mb=function(n){return qd(),b(n,10).k==(bn(),Es)};var RWi=V(kl,"NetworkSimplexPlacer/lambda$7$Type",1440);G(1441,1,{},Vyt),_.Kb=function(n){return qd(),new Pr(null,new Rw(new Nn(Mn(Ab(b(n,10)).a.Kc(),new L))))};var IWi=V(kl,"NetworkSimplexPlacer/lambda$8$Type",1441);G(1442,1,Si,Hyt),_.Mb=function(n){return qd(),Kcn(b(n,18))};var OWi=V(kl,"NetworkSimplexPlacer/lambda$9$Type",1442);G(1424,1,Cl,LSt),_.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?unr:null},_.Kf=function(n,s){UAn(b(n,36),s)};var unr,NWi=V(kl,"SimpleNodePlacer",1424);G(185,1,{185:1},P4),_.Ib=function(){var n="";return this.c==(Tm(),IS)?n+=E5:this.c==jy&&(n+=_5),this.o==(Sg(),TE)?n+=_0e:this.o==Gg?n+="UP":n+="BALANCED",n};var LWi=V(d_,"BKAlignedLayout",185);G(523,22,{3:1,34:1,22:1,523:1},IRe);var jy,IS,hnr=ei(d_,"BKAlignedLayout/HDirection",523,li,vdn,Aln),dnr;G(522,22,{3:1,34:1,22:1,522:1},ORe);var TE,Gg,fnr=ei(d_,"BKAlignedLayout/VDirection",522,li,_dn,Rln),pnr;G(1699,1,{},y5t);var MWi=V(d_,"BKAligner",1699);G(1702,1,{},R$t);var DWi=V(d_,"BKCompactor",1702);G(663,1,{663:1},qyt),_.a=0;var PWi=V(d_,"BKCompactor/ClassEdge",663);G(467,1,{467:1},wkt),_.a=null,_.b=0;var BWi=V(d_,"BKCompactor/ClassNode",467);G(1427,1,Cl,w5t),_.rg=function(n){return b(ce(b(n,36),(Pt(),Tu)),21).Hc((Tl(),Wf))?gnr:null},_.Kf=function(n,s){m6n(this,b(n,36),s)},_.d=!1;var gnr,FWi=V(d_,"BKNodePlacer",1427);G(1700,1,{},Yyt),_.d=0;var $Wi=V(d_,"NeighborhoodInformation",1700);G(1701,1,ki,NCt),_.Ne=function(n,s){return Hgn(this,b(n,42),b(s,42))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var UWi=V(d_,"NeighborhoodInformation/NeighborComparator",1701);G(823,1,{});var GWi=V(d_,"ThresholdStrategy",823);G(1825,823,{},Skt),_.wg=function(n,s,u){return this.a.o==(Sg(),Gg)?Wa:Gs},_.xg=function(){};var zWi=V(d_,"ThresholdStrategy/NullThresholdStrategy",1825);G(587,1,{587:1},S5t),_.c=!1,_.d=!1;var VWi=V(d_,"ThresholdStrategy/Postprocessable",587);G(1826,823,{},Tkt),_.wg=function(n,s,u){var f,g,E;if(g=s==u,f=this.a.a[u.p]==s,!(g||f))return n;if(E=n,this.a.c==(Tm(),IS))g&&(E=vpe(this,s,!0)),!isNaN(E)&&!isFinite(E)&&f&&(E=vpe(this,u,!1));else g&&(E=vpe(this,s,!0)),!isNaN(E)&&!isFinite(E)&&f&&(E=vpe(this,u,!1));return E},_.xg=function(){var n,s,u,f,g;while(this.d.b!=0){if(g=b(Ddn(this.d),587),f=tHt(this,g),!f.a)continue;if(n=f.a,u=er(this.a.f[this.a.g[g.b.p].p]),!u&&!gl(n)&&n.c.i.c==n.d.i.c)continue;s=szt(this,g),s||nan(this.e,g)}while(this.e.a.c.length!=0)szt(this,b(oBt(this.e),587))};var HWi=V(d_,"ThresholdStrategy/SimpleThresholdStrategy",1826);G(645,1,{645:1,188:1,196:1},Wyt),_.dg=function(){return mPt(this)},_.qg=function(){return mPt(this)};var Lbe,qWi=V(yge,"EdgeRouterFactory",645);G(1485,1,Cl,MSt),_.rg=function(n){return k4n(b(n,36))},_.Kf=function(n,s){YAn(b(n,36),s)};var mnr,bnr,ynr,vnr,_nr,IVe,Enr,wnr,YWi=V(yge,"OrthogonalEdgeRouter",1485);G(1478,1,Cl,E5t),_.rg=function(n){return K2n(b(n,36))},_.Kf=function(n,s){mIn(this,b(n,36),s)};var Snr,Tnr,xnr,Cnr,Nz,knr,WWi=V(yge,"PolylineEdgeRouter",1478);G(1479,1,Nm,Kyt),_.Lb=function(n){return yLe(b(n,10))},_.Fb=function(n){return this===n},_.Mb=function(n){return yLe(b(n,10))};var jWi=V(yge,"PolylineEdgeRouter/1",1479);G(1872,1,Si,Xyt),_.Mb=function(n){return b(n,132).c==(Y0(),w_)};var KWi=V(Z0,"HyperEdgeCycleDetector/lambda$0$Type",1872);G(1873,1,{},Qyt),_.Ze=function(n){return b(n,132).d};var XWi=V(Z0,"HyperEdgeCycleDetector/lambda$1$Type",1873);G(1874,1,Si,Zyt),_.Mb=function(n){return b(n,132).c==(Y0(),w_)};var QWi=V(Z0,"HyperEdgeCycleDetector/lambda$2$Type",1874);G(1875,1,{},Jyt),_.Ze=function(n){return b(n,132).d};var ZWi=V(Z0,"HyperEdgeCycleDetector/lambda$3$Type",1875);G(1876,1,{},evt),_.Ze=function(n){return b(n,132).d};var JWi=V(Z0,"HyperEdgeCycleDetector/lambda$4$Type",1876);G(1877,1,{},jyt),_.Ze=function(n){return b(n,132).d};var eji=V(Z0,"HyperEdgeCycleDetector/lambda$5$Type",1877);G(118,1,{34:1,118:1},SU),_.Fd=function(n){return Jnn(this,b(n,118))},_.Fb=function(n){var s;if(He(n,118))return s=b(n,118),this.g==s.g;return!1},_.Hb=function(){return this.g},_.Ib=function(){var n,s,u,f;n=new Vd("{"),f=new me(this.n);while(f.a"+this.b+" ("+ysn(this.c)+")"},_.d=0;var rji=V(Z0,"HyperEdgeSegmentDependency",132);G(528,22,{3:1,34:1,22:1,528:1},NRe);var w_,Hx,Anr=ei(Z0,"HyperEdgeSegmentDependency/DependencyType",528,li,Edn,Iln),Rnr;G(1878,1,{},LCt);var nji=V(Z0,"HyperEdgeSegmentSplitter",1878);G(1879,1,{},x3t),_.a=0,_.b=0;var iji=V(Z0,"HyperEdgeSegmentSplitter/AreaRating",1879);G(339,1,{339:1},vue),_.a=0,_.b=0,_.c=0;var aji=V(Z0,"HyperEdgeSegmentSplitter/FreeArea",339);G(1880,1,ki,tvt),_.Ne=function(n,s){return yon(b(n,118),b(s,118))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var sji=V(Z0,"HyperEdgeSegmentSplitter/lambda$0$Type",1880);G(1881,1,Ln,QNt),_.Cd=function(n){Ypn(this.a,this.d,this.c,this.b,b(n,118))},_.b=0;var oji=V(Z0,"HyperEdgeSegmentSplitter/lambda$1$Type",1881);G(1882,1,{},rvt),_.Kb=function(n){return new Pr(null,new Gr(b(n,118).e,16))};var lji=V(Z0,"HyperEdgeSegmentSplitter/lambda$2$Type",1882);G(1883,1,{},nvt),_.Kb=function(n){return new Pr(null,new Gr(b(n,118).j,16))};var cji=V(Z0,"HyperEdgeSegmentSplitter/lambda$3$Type",1883);G(1884,1,{},ivt),_.Ye=function(n){return rt(ht(n))};var uji=V(Z0,"HyperEdgeSegmentSplitter/lambda$4$Type",1884);G(664,1,{},Hue),_.a=0,_.b=0,_.c=0;var hji=V(Z0,"OrthogonalRoutingGenerator",664);G(1703,1,{},avt),_.Kb=function(n){return new Pr(null,new Gr(b(n,118).e,16))};var dji=V(Z0,"OrthogonalRoutingGenerator/lambda$0$Type",1703);G(1704,1,{},svt),_.Kb=function(n){return new Pr(null,new Gr(b(n,118).j,16))};var fji=V(Z0,"OrthogonalRoutingGenerator/lambda$1$Type",1704);G(670,1,{});var pji=V(vge,"BaseRoutingDirectionStrategy",670);G(1870,670,{},Akt),_.yg=function(n,s,u){var f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(!!n.r&&!n.q)return;U=s+n.o*u;for(M=new me(n.n);M.aMm){if(E=U,g=n,f=new Dt(q,E),Oi(S.a,f),tS(this,S,g,f,!1),re=n.r,re)ae=rt(ht(Gf(re.e,0))),f=new Dt(ae,E),Oi(S.a,f),tS(this,S,g,f,!1),E=s+re.o*u,g=re,f=new Dt(ae,E),Oi(S.a,f),tS(this,S,g,f,!1);f=new Dt(de,E),Oi(S.a,f),tS(this,S,g,f,!1)}}}},_.zg=function(n){return n.i.n.a+n.n.a+n.a.a},_.Ag=function(){return Ht(),Kn},_.Bg=function(){return Ht(),gn};var gji=V(vge,"NorthToSouthRoutingStrategy",1870);G(1871,670,{},Rkt),_.yg=function(n,s,u){var f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(!!n.r&&!n.q)return;U=s-n.o*u;for(M=new me(n.n);M.aMm){if(E=U,g=n,f=new Dt(q,E),Oi(S.a,f),tS(this,S,g,f,!1),re=n.r,re)ae=rt(ht(Gf(re.e,0))),f=new Dt(ae,E),Oi(S.a,f),tS(this,S,g,f,!1),E=s-re.o*u,g=re,f=new Dt(ae,E),Oi(S.a,f),tS(this,S,g,f,!1);f=new Dt(de,E),Oi(S.a,f),tS(this,S,g,f,!1)}}}},_.zg=function(n){return n.i.n.a+n.n.a+n.a.a},_.Ag=function(){return Ht(),gn},_.Bg=function(){return Ht(),Kn};var mji=V(vge,"SouthToNorthRoutingStrategy",1871);G(1869,670,{},Ikt),_.yg=function(n,s,u){var f,g,E,S,C,O,M,U,q,re,ae,ue,de;if(!!n.r&&!n.q)return;U=s+n.o*u;for(M=new me(n.n);M.aMm){if(E=U,g=n,f=new Dt(E,q),Oi(S.a,f),tS(this,S,g,f,!0),re=n.r,re)ae=rt(ht(Gf(re.e,0))),f=new Dt(E,ae),Oi(S.a,f),tS(this,S,g,f,!0),E=s+re.o*u,g=re,f=new Dt(E,ae),Oi(S.a,f),tS(this,S,g,f,!0);f=new Dt(E,de),Oi(S.a,f),tS(this,S,g,f,!0)}}}},_.zg=function(n){return n.i.n.b+n.n.b+n.a.b},_.Ag=function(){return Ht(),Cn},_.Bg=function(){return Ht(),yn};var bji=V(vge,"WestToEastRoutingStrategy",1869);G(828,1,{},mDe),_.Ib=function(){return i_(this.a)},_.b=0,_.c=!1,_.d=!1,_.f=0;var yji=V(_x,"NubSpline",828);G(418,1,{418:1},$zt,RLt);var vji=V(_x,"NubSpline/PolarCP",418);G(1480,1,Cl,E$t),_.rg=function(n){return FEn(b(n,36))},_.Kf=function(n,s){DIn(this,b(n,36),s)};var Inr,Onr,Nnr,Lnr,Mnr,_ji=V(_x,"SplineEdgeRouter",1480);G(274,1,{274:1},nX),_.Ib=function(){return this.a+" ->("+this.c+") "+this.b},_.c=0;var Eji=V(_x,"SplineEdgeRouter/Dependency",274);G(465,22,{3:1,34:1,22:1,465:1},LRe);var S_,bk,Dnr=ei(_x,"SplineEdgeRouter/SideToProcess",465,li,kdn,Oln),Pnr;G(1481,1,Si,ovt),_.Mb=function(n){return sD(),!b(n,131).o};var wji=V(_x,"SplineEdgeRouter/lambda$0$Type",1481);G(1482,1,{},lvt),_.Ze=function(n){return sD(),b(n,131).v+1};var Sji=V(_x,"SplineEdgeRouter/lambda$1$Type",1482);G(1483,1,Ln,T5t),_.Cd=function(n){Jcn(this.a,this.b,b(n,42))};var Tji=V(_x,"SplineEdgeRouter/lambda$2$Type",1483);G(1484,1,Ln,x5t),_.Cd=function(n){eun(this.a,this.b,b(n,42))};var xji=V(_x,"SplineEdgeRouter/lambda$3$Type",1484);G(131,1,{34:1,131:1},JUt,wDe),_.Fd=function(n){return rin(this,b(n,131))},_.b=0,_.e=!1,_.f=0,_.g=0,_.j=!1,_.k=!1,_.n=0,_.o=!1,_.p=!1,_.q=!1,_.s=0,_.u=0,_.v=0,_.F=0;var Cji=V(_x,"SplineSegment",131);G(468,1,{468:1},cvt),_.a=0,_.b=!1,_.c=!1,_.d=!1,_.e=!1,_.f=0;var kji=V(_x,"SplineSegment/EdgeInformation",468);G(1198,1,{},uvt);var Aji=V(Bb,v9e,1198);G(1199,1,ki,hvt),_.Ne=function(n,s){return _Tn(b(n,121),b(s,121))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Rji=V(Bb,KYt,1199);G(1197,1,{},G3t);var Iji=V(Bb,"MrTree",1197);G(405,22,{3:1,34:1,22:1,405:1,188:1,196:1},kj),_.dg=function(){return _Gt(this)},_.qg=function(){return _Gt(this)};var Vee,T9,x9,C9,OVe=ei(Bb,"TreeLayoutPhases",405,li,Rpn,Nln),Bnr;G(1112,205,sE,g6t),_.rf=function(n,s){var u,f,g,E,S,C,O,M;er(Jt(It(n,(Oc(),rHe))))||K$((u=new dM((bw(),new cw(n))),u)),S=s.eh(wge),S.Ug("build tGraph",1),C=(O=new iU,nc(O,n),At(O,(Ma(),A9),n),M=new Zn,d3n(n,O,M),O3n(n,O,M),O),S.Vg(),S=s.eh(wge),S.Ug("Split graph",1),E=y3n(this.a,C),S.Vg();for(g=new me(E);g.a"+G2(this.c):"e_"+Da(this)};var Hji=V(ND,"TEdge",65);G(121,137,{3:1,121:1,96:1,137:1},iU),_.Ib=function(){var n,s,u,f,g;g=null;for(f=ti(this.b,0);f.b!=f.d.c;)u=b(Jn(f),40),g+=(u.c==null||u.c.length==0?"n_"+u.g:"n_"+u.c)+` `;for(s=ti(this.a,0);s.b!=s.d.c;)n=b(Jn(s),65),g+=(!!n.b&&!!n.c?G2(n.b)+"->"+G2(n.c):"e_"+Da(n))+` -`;return g};var q6n=V(ID,"TGraph",121);G(643,508,{3:1,508:1,643:1,96:1,137:1});var Pji=V(ID,"TShape",643);G(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},vde),v.Ib=function(){return G2(this)};var Gee=V(ID,"TNode",40);G(236,1,T1,db),v.Jc=function(n){Vo(this,n)},v.Kc=function(){var n;return n=ti(this.a.d,0),new jC(n)};var Bji=V(ID,"TNode/2",236);G(329,1,To,jC),v.Nb=function(n){Go(this,n)},v.Pb=function(){return b(Jn(this.a),65).c},v.Ob=function(){return XF(this.a)},v.Qb=function(){Whe(this.a)};var Fji=V(ID,"TNode/2/1",329);G(1923,1,Pa,fvt),v.Kf=function(n,s){a6n(this,b(n,121),s)};var $ji=V(Eu,"CompactionProcessor",1923);G(1924,1,ki,LCt),v.Ne=function(n,s){return Ymn(this.a,b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Uji=V(Eu,"CompactionProcessor/lambda$0$Type",1924);G(1925,1,Si,w5t),v.Mb=function(n){return Zhn(this.b,this.a,b(n,42))},v.a=0,v.b=0;var Gji=V(Eu,"CompactionProcessor/lambda$1$Type",1925);G(1934,1,ki,pvt),v.Ne=function(n,s){return Vun(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var zji=V(Eu,"CompactionProcessor/lambda$10$Type",1934);G(1935,1,ki,gvt),v.Ne=function(n,s){return nsn(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Vji=V(Eu,"CompactionProcessor/lambda$11$Type",1935);G(1936,1,ki,mvt),v.Ne=function(n,s){return Hun(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Hji=V(Eu,"CompactionProcessor/lambda$12$Type",1936);G(1926,1,Si,MCt),v.Mb=function(n){return Uan(this.a,b(n,42))},v.a=0;var qji=V(Eu,"CompactionProcessor/lambda$2$Type",1926);G(1927,1,Si,DCt),v.Mb=function(n){return Gan(this.a,b(n,42))},v.a=0;var Yji=V(Eu,"CompactionProcessor/lambda$3$Type",1927);G(1928,1,Si,bvt),v.Mb=function(n){return b(n,40).c.indexOf(BZ)==-1};var Wji=V(Eu,"CompactionProcessor/lambda$4$Type",1928);G(1929,1,{},PCt),v.Kb=function(n){return epn(this.a,b(n,40))},v.a=0;var jji=V(Eu,"CompactionProcessor/lambda$5$Type",1929);G(1930,1,{},BCt),v.Kb=function(n){return lgn(this.a,b(n,40))},v.a=0;var Kji=V(Eu,"CompactionProcessor/lambda$6$Type",1930);G(1931,1,ki,FCt),v.Ne=function(n,s){return v0n(this.a,b(n,240),b(s,240))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Xji=V(Eu,"CompactionProcessor/lambda$7$Type",1931);G(1932,1,ki,$Ct),v.Ne=function(n,s){return _0n(this.a,b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Qji=V(Eu,"CompactionProcessor/lambda$8$Type",1932);G(1933,1,ki,yvt),v.Ne=function(n,s){return isn(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var Zji=V(Eu,"CompactionProcessor/lambda$9$Type",1933);G(1921,1,Pa,vvt),v.Kf=function(n,s){tkn(b(n,121),s)};var Jji=V(Eu,"DirectionProcessor",1921);G(1913,1,Pa,c6t),v.Kf=function(n,s){S3n(this,b(n,121),s)};var eKi=V(Eu,"FanProcessor",1913);G(1937,1,Pa,_vt),v.Kf=function(n,s){V4n(b(n,121),s)};var tKi=V(Eu,"GraphBoundsProcessor",1937);G(1938,1,{},Evt),v.Ye=function(n){return b(n,40).e.a};var rKi=V(Eu,"GraphBoundsProcessor/lambda$0$Type",1938);G(1939,1,{},wvt),v.Ye=function(n){return b(n,40).e.b};var nKi=V(Eu,"GraphBoundsProcessor/lambda$1$Type",1939);G(1940,1,{},Svt),v.Ye=function(n){return Sin(b(n,40))};var iKi=V(Eu,"GraphBoundsProcessor/lambda$2$Type",1940);G(1941,1,{},Tvt),v.Ye=function(n){return win(b(n,40))};var aKi=V(Eu,"GraphBoundsProcessor/lambda$3$Type",1941);G(262,22,{3:1,34:1,22:1,262:1,196:1},bw),v.dg=function(){switch(this.g){case 0:return new $kt;case 1:return new c6t;case 2:return new Fkt;case 3:return new Rvt;case 4:return new Cvt;case 8:return new xvt;case 5:return new vvt;case 6:return new Ovt;case 7:return new fvt;case 9:return new _vt;case 10:return new Nvt;default:throw ve(new dn(D0e+(this.f!=null?this.f:""+this.g)))}};var RVe,IVe,OVe,NVe,LVe,MVe,DVe,PVe,BVe,FVe,Obe,Y6n=ei(Eu,P0e,262,li,nPt,kln),Lnr;G(1920,1,Pa,xvt),v.Kf=function(n,s){rIn(b(n,121),s)};var sKi=V(Eu,"LevelCoordinatesProcessor",1920);G(1918,1,Pa,Cvt),v.Kf=function(n,s){SCn(this,b(n,121),s)},v.a=0;var oKi=V(Eu,"LevelHeightProcessor",1918);G(1919,1,T1,kvt),v.Jc=function(n){Vo(this,n)},v.Kc=function(){return Hr(),a6(),nN};var lKi=V(Eu,"LevelHeightProcessor/1",1919);G(1914,1,Pa,Fkt),v.Kf=function(n,s){B4n(this,b(n,121),s)};var cKi=V(Eu,"LevelProcessor",1914);G(1915,1,Si,Avt),v.Mb=function(n){return er(Jt(ce(b(n,40),(Ma(),T_))))};var uKi=V(Eu,"LevelProcessor/lambda$0$Type",1915);G(1916,1,Pa,Rvt),v.Kf=function(n,s){_Sn(this,b(n,121),s)},v.a=0;var hKi=V(Eu,"NeighborsProcessor",1916);G(1917,1,T1,Ivt),v.Jc=function(n){Vo(this,n)},v.Kc=function(){return Hr(),a6(),nN};var dKi=V(Eu,"NeighborsProcessor/1",1917);G(1922,1,Pa,Ovt),v.Kf=function(n,s){w3n(this,b(n,121),s)},v.a=0;var fKi=V(Eu,"NodePositionProcessor",1922);G(1912,1,Pa,$kt),v.Kf=function(n,s){i5n(this,b(n,121),s)};var pKi=V(Eu,"RootProcessor",1912);G(1942,1,Pa,Nvt),v.Kf=function(n,s){e_n(b(n,121),s)};var gKi=V(Eu,"Untreeifyer",1942);G(392,22,{3:1,34:1,22:1,392:1},Oce);var Iz,Nbe,$Ve,UVe=ei(zG,"EdgeRoutingMode",392,li,mfn,Aln),Mnr,Oz,CN,Lbe,GVe,zVe,Mbe,Dbe,VVe,Pbe,HVe,Bbe,x9,Fbe,zee,Vee,g0,rg,kN,C9,k9,Ky,qVe,Dnr,$be,T_,Nz,Lz;G(862,1,Ep,ISt),v.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,eBe),""),DWt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(nn(),!1)),(Fy(),so)),_s),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,tBe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,rBe),""),"Tree Level"),"The index for the tree level the node is in"),$t(0)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,nBe),""),DWt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),$t(-1)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,iBe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),jVe),ja),sHe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,aBe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),YVe),ja),UVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,sBe),""),"Search Order"),"Which search order to use when computing a spanning tree."),WVe),ja),lHe),Tr(Qr)))),xqt((new LSt,n))};var Pnr,Bnr,Fnr,YVe,$nr,Unr,WVe,Gnr,znr,jVe,mKi=V(zG,"MrTreeMetaDataProvider",862);G(1006,1,Ep,LSt),v.hf=function(n){xqt(n)};var Vnr,KVe,XVe,IS,QVe,ZVe,Ube,Hnr,qnr,Ynr,Wnr,jnr,Knr,Xnr,JVe,eHe,tHe,Qnr,bk,Hee,rHe,Znr,nHe,Gbe,Jnr,eir,tir,iHe,rir,Vm,aHe,bKi=V(zG,"MrTreeOptions",1006);G(1007,1,{},Lvt),v.sf=function(){var n;return n=new u6t,n},v.tf=function(n){};var yKi=V(zG,"MrTreeOptions/MrtreeFactory",1007);G(353,22,{3:1,34:1,22:1,353:1},xj);var zbe,qee,Vbe,Hbe,sHe=ei(zG,"OrderWeighting",353,li,Tpn,Rln),nir;G(433,22,{3:1,34:1,22:1,433:1},ORe);var oHe,qbe,lHe=ei(zG,"TreeifyingOrder",433,li,vdn,Iln),iir;G(1486,1,Cl,MSt),v.rg=function(n){return b(n,121),air},v.Kf=function(n,s){Mmn(this,b(n,121),s)};var air,vKi=V("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486);G(1487,1,Cl,DSt),v.rg=function(n){return b(n,121),sir},v.Kf=function(n,s){G4n(this,b(n,121),s)};var sir,_Ki=V(HO,"NodeOrderer",1487);G(1494,1,{},Kvt),v.td=function(n){return mOt(n)};var EKi=V(HO,"NodeOrderer/0methodref$lambda$6$Type",1494);G(1488,1,Si,Xvt),v.Mb=function(n){return XA(),er(Jt(ce(b(n,40),(Ma(),T_))))};var wKi=V(HO,"NodeOrderer/lambda$0$Type",1488);G(1489,1,Si,Qvt),v.Mb=function(n){return XA(),b(ce(b(n,40),(Oc(),bk)),17).a<0};var SKi=V(HO,"NodeOrderer/lambda$1$Type",1489);G(1490,1,Si,GCt),v.Mb=function(n){return cmn(this.a,b(n,40))};var TKi=V(HO,"NodeOrderer/lambda$2$Type",1490);G(1491,1,Si,UCt),v.Mb=function(n){return npn(this.a,b(n,40))};var xKi=V(HO,"NodeOrderer/lambda$3$Type",1491);G(1492,1,ki,Zvt),v.Ne=function(n,s){return Ngn(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var CKi=V(HO,"NodeOrderer/lambda$4$Type",1492);G(1493,1,Si,Jvt),v.Mb=function(n){return XA(),b(ce(b(n,40),(Ma(),Dbe)),17).a!=0};var kKi=V(HO,"NodeOrderer/lambda$5$Type",1493);G(1495,1,Cl,NSt),v.rg=function(n){return b(n,121),oir},v.Kf=function(n,s){Kkn(this,b(n,121),s)},v.b=0;var oir,AKi=V("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495);G(1496,1,Cl,OSt),v.rg=function(n){return b(n,121),lir},v.Kf=function(n,s){Okn(b(n,121),s)};var lir,W6n=V(Dd,"EdgeRouter",1496);G(1498,1,ki,jvt),v.Ne=function(n,s){return jc(b(n,17).a,b(s,17).a)},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var RKi=V(Dd,"EdgeRouter/0methodref$compare$Type",1498);G(1503,1,{},Dvt),v.Ye=function(n){return rt(ht(n))};var IKi=V(Dd,"EdgeRouter/1methodref$doubleValue$Type",1503);G(1505,1,ki,Pvt),v.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var OKi=V(Dd,"EdgeRouter/2methodref$compare$Type",1505);G(1507,1,ki,Bvt),v.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var NKi=V(Dd,"EdgeRouter/3methodref$compare$Type",1507);G(1509,1,{},Mvt),v.Ye=function(n){return rt(ht(n))};var LKi=V(Dd,"EdgeRouter/4methodref$doubleValue$Type",1509);G(1511,1,ki,Fvt),v.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var MKi=V(Dd,"EdgeRouter/5methodref$compare$Type",1511);G(1513,1,ki,$vt),v.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var DKi=V(Dd,"EdgeRouter/6methodref$compare$Type",1513);G(1497,1,{},Uvt),v.Kb=function(n){return Tb(),b(ce(b(n,40),(Oc(),Vm)),17)};var PKi=V(Dd,"EdgeRouter/lambda$0$Type",1497);G(1508,1,{},Gvt),v.Kb=function(n){return bsn(b(n,40))};var BKi=V(Dd,"EdgeRouter/lambda$11$Type",1508);G(1510,1,{},S5t),v.Kb=function(n){return qcn(this.b,this.a,b(n,40))},v.a=0,v.b=0;var FKi=V(Dd,"EdgeRouter/lambda$13$Type",1510);G(1512,1,{},T5t),v.Kb=function(n){return ysn(this.b,this.a,b(n,40))},v.a=0,v.b=0;var $Ki=V(Dd,"EdgeRouter/lambda$15$Type",1512);G(1514,1,ki,zvt),v.Ne=function(n,s){return Ivn(b(n,65),b(s,65))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var UKi=V(Dd,"EdgeRouter/lambda$17$Type",1514);G(1515,1,ki,Vvt),v.Ne=function(n,s){return Ovn(b(n,65),b(s,65))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var GKi=V(Dd,"EdgeRouter/lambda$18$Type",1515);G(1516,1,ki,Hvt),v.Ne=function(n,s){return Lvn(b(n,65),b(s,65))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var zKi=V(Dd,"EdgeRouter/lambda$19$Type",1516);G(1499,1,Si,zCt),v.Mb=function(n){return Mdn(this.a,b(n,40))},v.a=0;var VKi=V(Dd,"EdgeRouter/lambda$2$Type",1499);G(1517,1,ki,qvt),v.Ne=function(n,s){return Nvn(b(n,65),b(s,65))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var HKi=V(Dd,"EdgeRouter/lambda$20$Type",1517);G(1500,1,ki,Yvt),v.Ne=function(n,s){return Ocn(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var qKi=V(Dd,"EdgeRouter/lambda$3$Type",1500);G(1501,1,ki,Wvt),v.Ne=function(n,s){return Ncn(b(n,40),b(s,40))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var YKi=V(Dd,"EdgeRouter/lambda$4$Type",1501);G(1502,1,{},e_t),v.Kb=function(n){return vsn(b(n,40))};var WKi=V(Dd,"EdgeRouter/lambda$5$Type",1502);G(1504,1,{},x5t),v.Kb=function(n){return Ycn(this.b,this.a,b(n,40))},v.a=0,v.b=0;var jKi=V(Dd,"EdgeRouter/lambda$7$Type",1504);G(1506,1,{},C5t),v.Kb=function(n){return _sn(this.b,this.a,b(n,40))},v.a=0,v.b=0;var KKi=V(Dd,"EdgeRouter/lambda$9$Type",1506);G(675,1,{675:1},i$t),v.e=0,v.f=!1,v.g=!1;var XKi=V(Dd,"MultiLevelEdgeNodeNodeGap",675);G(1943,1,ki,t_t),v.Ne=function(n,s){return Hdn(b(n,240),b(s,240))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var QKi=V(Dd,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943);G(1944,1,ki,r_t),v.Ne=function(n,s){return qdn(b(n,240),b(s,240))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var ZKi=V(Dd,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944),yk;G(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},NRe),v.dg=function(){return HBt(this)},v.qg=function(){return HBt(this)};var Yee,vk,cHe=ei(oBe,"RadialLayoutPhases",501,li,ddn,Oln),cir;G(1113,205,sE,D3t),v.rf=function(n,s){var u,f,g,_,S,C;if(u=Rzt(this,n),s.Ug("Radial layout",u.c.length),er(Jt(It(n,(s_(),_He))))||Y$((f=new uM((mw(),new lw(n))),f)),C=DEn(n),Ta(n,(d4(),yk),C),!C)throw ve(new dn("The given graph is not a tree!"));g=rt(ht(It(n,Kee))),g==0&&(g=cGt(n)),Ta(n,Kee,g);for(S=new me(Rzt(this,n));S.a=3){Ot=b(Ye(et,0),27),Wt=b(Ye(et,1),27),_=0;while(_+2=Ot.f+Wt.f+U||Wt.f>=wt.f+Ot.f+U){wr=!0;break}else++_}else wr=!0;if(!wr){re=et.i;for(C=new kn(et);C.e!=C.i.gc();)S=b(Dn(C),27),Ta(S,(Hi(),Wz),$t(re)),--re;aHt(n,new mA),s.Vg();return}u=(G$(this.a),H0(this.a,(eQ(),Dz),b(It(n,KHe),188)),H0(this.a,Xee,b(It(n,VHe),188)),H0(this.a,nye,b(It(n,YHe),188)),XRe(this.a,(Kr=new Ns,Fi(Kr,Dz,(hQ(),sye)),Fi(Kr,Xee,aye),er(Jt(It(n,GHe)))&&Fi(Kr,Dz,iye),Kr)),fG(this.a,n)),M=1/u.c.length,xr=0;for(ue=new me(u);ue.a0&&pBt((fn(s-1,n.length),n.charCodeAt(s-1)),eWt))--s;if(f>=s)throw ve(new dn("The given string does not contain any numbers."));if(g=hx((Do(f,s,n.length),n.substr(f,s-f)),`,|;|\r| -`),g.length!=2)throw ve(new dn("Exactly two numbers are expected, "+g.length+" were found."));try{this.a=ix(ax(g[0])),this.b=ix(ax(g[1]))}catch(_){if(_=Qa(_),He(_,130))throw u=_,ve(new dn(tWt+u));else throw ve(_)}},v.Ib=function(){return"("+this.a+","+this.b+")"},v.a=0,v.b=0;var uo=V(BG,"KVector",8);G(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Rh,ZW,LIt),v.Pc=function(){return Q1n(this)},v.cg=function(n){var s,u,f,g,_,S;f=hx(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | -`),Hd(this);try{u=0,_=0,g=0,S=0;while(u0)_%2==0?g=ix(f[u]):S=ix(f[u]),_>0&&_%2!=0&&Oi(this,new Dt(g,S)),++_;++u}}catch(C){if(C=Qa(C),He(C,130))throw s=C,ve(new dn("The given string does not match the expected format for vectors."+s));else throw ve(C)}},v.Ib=function(){var n,s,u;n=new Vd("("),s=ti(this,0);while(s.b!=s.d.c)u=b(Jn(s),8),Bi(n,u.a+","+u.b),s.b!=s.d.c&&(n.a+="; ");return(n.a+=")",n).a};var Nqe=V(BG,"KVectorChain",75);G(255,22,{3:1,34:1,22:1,255:1},BM);var Cye,ste,ote,Uz,Gz,lte,Lqe=ei(_d,"Alignment",255,li,j0n,tcn),qar;G(991,1,Ep,HSt),v.hf=function(n){zVt(n)};var Mqe,kye,Yar,Dqe,Pqe,War,Bqe,jar,Kar,Fqe,$qe,Xar,gZi=V(_d,"BoxLayouterOptions",991);G(992,1,{},h2t),v.sf=function(){var n;return n=new p2t,n},v.tf=function(n){};var mZi=V(_d,"BoxLayouterOptions/BoxFactory",992);G(298,22,{3:1,34:1,22:1,298:1},FM);var D9,Aye,P9,B9,F9,Rye,Iye=ei(_d,"ContentAlignment",298,li,K0n,rcn),Qar;G(699,1,Ep,IAe),v.hf=function(n){Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,rjt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Fy(),Ek)),or),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,njt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),zg),X6n),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,IPe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Uqe),ja),Lqe),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,_5),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,VBe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),zg),Nqe),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,NZ),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),zqe),z5),Iye),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,GG),""),"Debug Mode"),"Whether additional debug information shall be generated."),(nn(),!1)),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,dge),""),c9e),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Vqe),ja),U9),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,UG),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),Yqe),ja),Hye),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,GBe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,OZ),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Kqe),ja),DYe),Ua(Qr,Te(we(M1,1),Rt,170,0,[Qs]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,sS),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),iYe),zg),oUe),Ua(Qr,Te(we(M1,1),Rt,170,0,[Qs]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,SD),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,MZ),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,TD),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,N0e),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),cYe),ja),FYe),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,LZ),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),zg),uo),Ua(Qs,Te(we(M1,1),Rt,170,0,[xE,Xy]))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,OG),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),pc),qo),Ua(Qs,Te(we(M1,1),Rt,170,0,[Hm]))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,fZ),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,wD),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,GPe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Xqe),zg),Nqe),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,HPe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,qPe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,ijt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),zg),tOn),Ua(Qr,Te(we(M1,1),Rt,170,0,[Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,WPe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),Qqe),zg),sUe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,APe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),so),_s),Ua(Qs,Te(we(M1,1),Rt,170,0,[Hm,xE,Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ajt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),el),Bs),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,sjt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,ojt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,NG),""),QWt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),so),_s),Tr(Qr)))),Ls(n,NG,oS,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ljt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,cjt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),$t(100)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ujt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,hjt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),$t(4000)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,djt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),$t(400)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,fjt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,pjt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,gjt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,mjt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,zBe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Gqe),ja),jYe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,bPe),Bg),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,yPe),Bg),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,x0e),Bg),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,vPe),Bg),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,O0e),Bg),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,hge),Bg),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,_Pe),Bg),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,SPe),Bg),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,EPe),Bg),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,wPe),Bg),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,bx),Bg),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,TPe),Bg),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,xPe),Bg),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),el),Bs),Ua(Qr,Te(we(M1,1),Rt,170,0,[Qs]))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,CPe),Bg),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),zg),Fsr),Ua(Qs,Te(we(M1,1),Rt,170,0,[Hm,xE,Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,jPe),Bg),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),_Ye),zg),sUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,pge),_jt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),pc),qo),Ua(Qr,Te(we(M1,1),Rt,170,0,[Qs]))))),Ls(n,pge,fge,ssr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,fge),_jt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),aYe),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,LPe),Ejt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),Jqe),zg),oUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,GO),Ejt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),eYe),z5),Al),Ua(Qs,Te(we(M1,1),Rt,170,0,[Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,PPe),HZ),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),oYe),ja),H9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,BPe),HZ),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),ja),H9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,FPe),HZ),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),ja),H9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,$Pe),HZ),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),ja),H9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,UPe),HZ),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),ja),H9),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,H4),Pge),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),tYe),z5),W9),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,E5),Pge),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),nYe),z5),UYe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,w5),Pge),"Node Size Minimum"),"The minimal size to which a node can be reduced."),rYe),zg),uo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,UO),Pge),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,zPe),uge),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Hqe),ja),SYe),Tr(Xy)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,pZ),uge),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),so),_s),Tr(Xy)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,bjt),"font"),"Font Name"),"Font name used for a label."),Ek),or),Tr(Xy)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,yjt),"font"),"Font Size"),"Font size used for a label."),pc),qo),Tr(Xy)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,YPe),Bge),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),zg),uo),Tr(xE)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,VPe),Bge),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),pc),qo),Tr(xE)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,RPe),Bge),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),dYe),ja),bl),Tr(xE)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,kPe),Bge),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),el),Bs),Tr(xE)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,zO),YBe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),uYe),z5),pte),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,MPe),YBe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,DPe),YBe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,LG),HG),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),el),Bs),Tr(Qr)))),Ls(n,LG,oS,psr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,HBe),HG),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),ja),_te),Tr(Qs)))),Ls(n,HBe,oS,gsr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,MG),HG),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),el),Bs),Ua(Qr,Te(we(M1,1),Rt,170,0,[Qs]))))),Ls(n,MG,oS,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,DG),HG),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),el),Bs),Ua(Qr,Te(we(M1,1),Rt,170,0,[Qs]))))),Ls(n,DG,oS,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oS),HG),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),ja),zYe),Tr(Qs)))),Ls(n,oS,UO,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,qBe),HG),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),el),Bs),Tr(Qr)))),Ls(n,qBe,oS,fsr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,OPe),wjt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,NPe),wjt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),so),_s),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,C0e),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),el),Bs),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,vjt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),jqe),ja),RYe),Tr(Hm)))),kM(n,new VA(wM(e6(JI(new uA,wn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),kM(n,new VA(wM(e6(JI(new uA,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),kM(n,new VA(wM(e6(JI(new uA,ih),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),kM(n,new VA(wM(e6(JI(new uA,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),kM(n,new VA(wM(e6(JI(new uA,PWt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),kM(n,new VA(wM(e6(JI(new uA,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),kM(n,new VA(wM(e6(JI(new uA,Vf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),kVt((new qSt,n)),zVt((new HSt,n)),tVt((new YSt,n))};var RN,Zar,Uqe,wk,Jar,esr,Gqe,Sk,Tk,tsr,zz,zqe,Vz,CE,Vqe,Oye,Nye,Hqe,qqe,Yqe,Wqe,jqe,rsr,xk,Kqe,nsr,Hz,Lye,qz,Mye,OS,Xqe,IN,Qqe,Zqe,Jqe,Ck,eYe,kE,tYe,Hx,kk,rYe,x_,nYe,cte,Yz,Qy,iYe,isr,aYe,asr,ssr,sYe,oYe,Dye,Pye,Bye,Fye,lYe,Ed,$9,cYe,$ye,Uye,qx,uYe,hYe,Ak,dYe,V5,Wz,Gye,Rk,osr,zye,lsr,csr,fYe,usr,pYe,gYe,H5,mYe,ute,bYe,yYe,AE,hsr,vYe,_Ye,EYe,hte,jz,ON,q5,dsr,fsr,dte,psr,wYe,gsr,bZi=V(_d,"CoreOptions",699);G(88,22,{3:1,34:1,22:1,88:1},m$);var Vg,Kl,sc,Hg,jf,U9=ei(_d,c9e,88,li,Jpn,ncn),msr;G(278,22,{3:1,34:1,22:1,278:1},$ce);var NN,Yx,LN,SYe=ei(_d,"EdgeLabelPlacement",278,li,Afn,icn),bsr;G(223,22,{3:1,34:1,22:1,223:1},kj);var MN,Kz,Y5,Vye,Hye=ei(_d,"EdgeRouting",223,li,Apn,acn),ysr;G(321,22,{3:1,34:1,22:1,321:1},$M);var TYe,xYe,CYe,kYe,qye,AYe,RYe=ei(_d,"EdgeType",321,li,W0n,scn),vsr;G(989,1,Ep,qSt),v.hf=function(n){kVt(n)};var IYe,OYe,NYe,LYe,_sr,MYe,G9,yZi=V(_d,"FixedLayouterOptions",989);G(990,1,{},d2t),v.sf=function(){var n;return n=new S2t,n},v.tf=function(n){};var vZi=V(_d,"FixedLayouterOptions/FixedFactory",990);G(346,22,{3:1,34:1,22:1,346:1},Uce);var Zy,fte,z9,DYe=ei(_d,"HierarchyHandling",346,li,Cfn,ocn),Esr;G(291,22,{3:1,34:1,22:1,291:1},Aj);var D1,C_,Xz,Qz,wsr=ei(_d,"LabelSide",291,li,kpn,lcn),Ssr;G(95,22,{3:1,34:1,22:1,95:1},e4);var Ub,m0,kp,b0,af,y0,Ap,P1,v0,Al=ei(_d,"NodeLabelPlacement",95,li,jgn,ccn),Tsr;G(256,22,{3:1,34:1,22:1,256:1},b$);var PYe,V9,k_,BYe,Zz,H9=ei(_d,"PortAlignment",256,li,p0n,ucn),xsr;G(101,22,{3:1,34:1,22:1,101:1},UM);var RE,xu,B1,DN,qg,A_,FYe=ei(_d,"PortConstraints",101,li,Y0n,hcn),Csr;G(279,22,{3:1,34:1,22:1,279:1},GM);var q9,Y9,Gb,Jz,R_,W5,pte=ei(_d,"PortLabelPlacement",279,li,q0n,dcn),ksr;G(64,22,{3:1,34:1,22:1,64:1},y$);var Cn,pn,Kf,Xf,bh,oh,Yg,_0,sd,Uh,Cu,od,yh,vh,E0,sf,of,Rp,Kn,Cc,bn,bl=ei(_d,"PortSide",64,li,e0n,fcn),Asr;G(993,1,Ep,YSt),v.hf=function(n){tVt(n)};var Rsr,Isr,$Ye,Osr,Nsr,_Zi=V(_d,"RandomLayouterOptions",993);G(994,1,{},f2t),v.sf=function(){var n;return n=new _2t,n},v.tf=function(n){};var EZi=V(_d,"RandomLayouterOptions/RandomFactory",994);G(386,22,{3:1,34:1,22:1,386:1},Rj);var Wx,eV,tV,IE,W9=ei(_d,"SizeConstraint",386,li,Cpn,pcn),Lsr;G(264,22,{3:1,34:1,22:1,264:1},t4);var rV,gte,PN,Yye,nV,j9,mte,bte,yte,UYe=ei(_d,"SizeOptions",264,li,smn,gcn),Msr;G(280,22,{3:1,34:1,22:1,280:1},Gce);var jx,GYe,vte,zYe=ei(_d,"TopdownNodeTypes",280,li,Rfn,mcn),Dsr;G(347,22,WBe);var VYe,HYe,_te=ei(_d,"TopdownSizeApproximator",347,li,Tdn,ycn);G(987,347,WBe,gOt),v.Tg=function(n){return qFt(n)};var wZi=ei(_d,"TopdownSizeApproximator/1",987,_te,null,null);G(988,347,WBe,eNt),v.Tg=function(n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;s=b(It(n,(Hi(),Rk)),143),Wt=(Bv(),ae=new mM,ae),nG(Wt,n),xr=new Zn;for(_=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));_.e!=_.i.gc();)f=b(Dn(_),27),Ve=(re=new mM,re),DQ(Ve,Wt),nG(Ve,f),tn=qFt(f),s4(Ve,d.Math.max(f.g,tn.a),d.Math.max(f.f,tn.b)),Hu(xr.f,f,Ve);for(g=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));g.e!=g.i.gc();){f=b(Dn(g),27);for(U=new kn((!f.e&&(f.e=new Wr(ws,f,7,4)),f.e));U.e!=U.i.gc();)M=b(Dn(U),74),wt=b(Jl(wl(xr.f,f)),27),Ot=b(An(xr,Ye((!M.c&&(M.c=new Wr(qn,M,5,8)),M.c),0)),27),et=(q=new yle,q),ii((!et.b&&(et.b=new Wr(qn,et,4,7)),et.b),wt),ii((!et.c&&(et.c=new Wr(qn,et,5,8)),et.c),Ot),MQ(et,Ya(wt)),nG(et,M)}de=b(q$(s.f),205);try{de.rf(Wt,new C2t),ONt(s.f,de)}catch(Kr){if(Kr=Qa(Kr),He(Kr,103))throw ue=Kr,ve(ue);else throw ve(Kr)}return kg(Wt,Tk)||kg(Wt,Sk)||NDe(Wt),O=rt(ht(It(Wt,Tk))),C=rt(ht(It(Wt,Sk))),S=O/C,u=rt(ht(It(Wt,jz)))*d.Math.sqrt((!Wt.a&&(Wt.a=new kt(ra,Wt,10,11)),Wt.a).i),wr=b(It(Wt,Qy),107),Be=wr.b+wr.c+1,Se=wr.d+wr.a+1,new Dt(d.Math.max(Be,u),d.Math.max(Se,u/S))};var SZi=ei(_d,"TopdownSizeApproximator/2",988,_te,null,null),Psr;G(344,1,{871:1},mA),v.Ug=function(n,s){return iUt(this,n,s)},v.Vg=function(){kUt(this)},v.Wg=function(){return this.q},v.Xg=function(){return!this.f?null:rhe(this.f)},v.Yg=function(){return rhe(this.a)},v.Zg=function(){return this.p},v.$g=function(){return!1},v._g=function(){return this.n},v.ah=function(){return this.p!=null&&!this.b},v.bh=function(n){var s;if(this.n)s=n,Gt(this.f,s)},v.dh=function(n,s){var u,f;this.n&&!!n&&Hfn(this,(u=new dNt,f=spe(u,n),xRn(u),f),(UX(),jye))},v.eh=function(n){var s;if(this.b)return null;else return s=Rgn(this,this.g),Oi(this.a,s),s.i=this,this.d=n,s},v.fh=function(n){n>0&&!this.b&&KNe(this,n)},v.b=!1,v.c=0,v.d=-1,v.e=null,v.f=null,v.g=-1,v.j=!1,v.k=!1,v.n=!1,v.o=0,v.q=0,v.r=0;var TZi=V(Lc,"BasicProgressMonitor",344);G(717,205,sE,p2t),v.rf=function(n,s){aHt(n,s)};var xZi=V(Lc,"BoxLayoutProvider",717);G(983,1,ki,e4t),v.Ne=function(n,s){return xCn(this,b(n,27),b(s,27))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)},v.a=!1;var CZi=V(Lc,"BoxLayoutProvider/1",983);G(163,1,{163:1},bX,$It),v.Ib=function(){return this.c?j8e(this.c):i_(this.b)};var kZi=V(Lc,"BoxLayoutProvider/Group",163);G(320,22,{3:1,34:1,22:1,320:1},Ij);var qYe,YYe,WYe,Wye,jYe=ei(Lc,"BoxLayoutProvider/PackingMode",320,li,Rpn,vcn),Bsr;G(984,1,ki,g2t),v.Ne=function(n,s){return Hhn(b(n,163),b(s,163))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var AZi=V(Lc,"BoxLayoutProvider/lambda$0$Type",984);G(985,1,ki,m2t),v.Ne=function(n,s){return Phn(b(n,163),b(s,163))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var RZi=V(Lc,"BoxLayoutProvider/lambda$1$Type",985);G(986,1,ki,b2t),v.Ne=function(n,s){return Bhn(b(n,163),b(s,163))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var IZi=V(Lc,"BoxLayoutProvider/lambda$2$Type",986);G(1384,1,{845:1},y2t),v.Mg=function(n,s){return oj(),!He(s,167)||U3t((ZA(),b(n,167)),s)};var OZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384);G(1385,1,Ln,t4t),v.Cd=function(n){ebn(this.a,b(n,149))};var NZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385);G(1386,1,Ln,E2t),v.Cd=function(n){b(n,96),oj()};var LZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386);G(1390,1,Ln,r4t),v.Cd=function(n){wmn(this.a,b(n,96))};var MZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390);G(1388,1,Si,I5t),v.Mb=function(n){return D1n(this.a,this.b,b(n,149))};var DZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388);G(1387,1,Si,O5t),v.Mb=function(n){return msn(this.a,this.b,b(n,845))};var PZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387);G(1389,1,Ln,N5t),v.Cd=function(n){Run(this.a,this.b,b(n,149))};var BZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389);G(947,1,{},w2t),v.Kb=function(n){return kRt(n)},v.Fb=function(n){return this===n};var FZi=V(Lc,"ElkUtil/lambda$0$Type",947);G(948,1,Ln,L5t),v.Cd=function(n){ATn(this.a,this.b,b(n,74))},v.a=0,v.b=0;var $Zi=V(Lc,"ElkUtil/lambda$1$Type",948);G(949,1,Ln,M5t),v.Cd=function(n){vnn(this.a,this.b,b(n,166))},v.a=0,v.b=0;var UZi=V(Lc,"ElkUtil/lambda$2$Type",949);G(950,1,Ln,D5t),v.Cd=function(n){pan(this.a,this.b,b(n,135))},v.a=0,v.b=0;var GZi=V(Lc,"ElkUtil/lambda$3$Type",950);G(951,1,Ln,n4t),v.Cd=function(n){Xcn(this.a,b(n,377))};var zZi=V(Lc,"ElkUtil/lambda$4$Type",951);G(325,1,{34:1,325:1},dM),v.Fd=function(n){return Van(this,b(n,242))},v.Fb=function(n){var s;if(He(n,325))return s=b(n,325),this.a==s.a;return!1},v.Hb=function(){return Ks(this.a)},v.Ib=function(){return this.a+" (exclusive)"},v.a=0;var VZi=V(Lc,"ExclusiveBounds/ExclusiveLowerBound",325);G(1119,205,sE,S2t),v.rf=function(n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be,Ve,et,wt,Ot,Wt,xr,wr;s.Ug("Fixed Layout",1),_=b(It(n,(Hi(),qqe)),223),q=0,re=0;for(Ve=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));Ve.e!=Ve.i.gc();){if(Se=b(Dn(Ve),27),wr=b(It(Se,(GX(),G9)),8),wr){if(kf(Se,wr.a,wr.b),b(It(Se,OYe),181).Hc((Md(),Wx)))ae=b(It(Se,LYe),8),ae.a>0&&ae.b>0&&rS(Se,ae.a,ae.b,!0,!0)}q=d.Math.max(q,Se.i+Se.g),re=d.Math.max(re,Se.j+Se.f);for(M=new kn((!Se.n&&(Se.n=new kt(Dl,Se,1,7)),Se.n));M.e!=M.i.gc();)C=b(Dn(M),135),wr=b(It(C,G9),8),!!wr&&kf(C,wr.a,wr.b),q=d.Math.max(q,Se.i+C.i+C.g),re=d.Math.max(re,Se.j+C.j+C.f);for(Ot=new kn((!Se.c&&(Se.c=new kt(ld,Se,9,9)),Se.c));Ot.e!=Ot.i.gc();){wt=b(Dn(Ot),123),wr=b(It(wt,G9),8),!!wr&&kf(wt,wr.a,wr.b),Wt=Se.i+wt.i,xr=Se.j+wt.j,q=d.Math.max(q,Wt+wt.g),re=d.Math.max(re,xr+wt.f);for(O=new kn((!wt.n&&(wt.n=new kt(Dl,wt,1,7)),wt.n));O.e!=O.i.gc();)C=b(Dn(O),135),wr=b(It(C,G9),8),!!wr&&kf(C,wr.a,wr.b),q=d.Math.max(q,Wt+C.i+C.g),re=d.Math.max(re,xr+C.j+C.f)}for(g=new Nn(Mn(Ob(Se).a.Kc(),new L));ri(g);)u=b(Gn(g),74),U=vqt(u),q=d.Math.max(q,U.a),re=d.Math.max(re,U.b);for(f=new Nn(Mn(rG(Se).a.Kc(),new L));ri(f);)if(u=b(Gn(f),74),Ya(E1(u))!=n)U=vqt(u),q=d.Math.max(q,U.a),re=d.Math.max(re,U.b)}if(_==(kb(),MN))for(Be=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));Be.e!=Be.i.gc();){Se=b(Dn(Be),27);for(f=new Nn(Mn(Ob(Se).a.Kc(),new L));ri(f);)u=b(Gn(f),74),S=I3n(u),S.b==0?Ta(u,OS,null):Ta(u,OS,S)}if(!er(Jt(It(n,(GX(),NYe)))))et=b(It(n,_sr),107),de=q+et.b+et.c,ue=re+et.d+et.a,rS(n,de,ue,!0,!0);s.Vg()};var HZi=V(Lc,"FixedLayoutProvider",1119);G(385,137,{3:1,423:1,385:1,96:1,137:1},ble,bDt),v.cg=function(n){var s,u,f,g,_,S,C,O,M;if(!n)return;try{O=hx(n,";,;");for(_=O,S=0,C=_.length;S>16&Ds|s^f<<16},v.Kc=function(){return new i4t(this)},v.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+hc(this.b)+")":this.b==null?"pair("+hc(this.a)+",null)":"pair("+hc(this.a)+","+hc(this.b)+")"};var KZi=V(Lc,"Pair",42);G(995,1,To,i4t),v.Nb=function(n){Go(this,n)},v.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},v.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;else if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw ve(new yc)},v.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),ve(new Ah)},v.b=!1,v.c=!1;var XZi=V(Lc,"Pair/1",995);G(455,1,{455:1},WNt),v.Fb=function(n){return zc(this.a,b(n,455).a)&&zc(this.c,b(n,455).c)&&zc(this.d,b(n,455).d)&&zc(this.b,b(n,455).b)},v.Hb=function(){return RU(Te(we(ao,1),en,1,5,[this.a,this.c,this.d,this.b]))},v.Ib=function(){return"("+this.a+ll+this.c+ll+this.d+ll+this.b+")"};var QZi=V(Lc,"Quadruple",455);G(1108,205,sE,_2t),v.rf=function(n,s){var u,f,g,_,S;if(s.Ug("Random Layout",1),(!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i==0){s.Vg();return}_=b(It(n,(S7e(),Osr)),17),!!_&&_.a!=0?g=new XK(_.a):g=new Vde,u=KF(ht(It(n,Rsr))),S=KF(ht(It(n,Nsr))),f=b(It(n,Isr),107),jRn(n,g,u,S,f),s.Vg()};var ZZi=V(Lc,"RandomLayoutProvider",1108);G(240,1,{240:1},bue),v.Fb=function(n){return zc(this.a,b(n,240).a)&&zc(this.b,b(n,240).b)&&zc(this.c,b(n,240).c)},v.Hb=function(){return RU(Te(we(ao,1),en,1,5,[this.a,this.b,this.c]))},v.Ib=function(){return"("+this.a+ll+this.b+ll+this.c+")"};var JZi=V(Lc,"Triple",240),Gsr;G(562,1,{}),v.Lf=function(){return new Dt(this.f.i,this.f.j)},v.of=function(n){if(ELt(n,(Hi(),Ed)))return It(this.f,zsr);return It(this.f,n)},v.Mf=function(){return new Dt(this.f.g,this.f.f)},v.Nf=function(){return this.g},v.pf=function(n){return kg(this.f,n)},v.Of=function(n){eh(this.f,n.a),th(this.f,n.b)},v.Pf=function(n){Gw(this.f,n.a),Uw(this.f,n.b)},v.Qf=function(n){this.g=n},v.g=0;var zsr,eJi=V(LD,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562);G(563,1,{853:1},$W),v.Rf=function(){var n,s;if(!this.b){this.b=YK(RK(this.a).i);for(s=new kn(RK(this.a));s.e!=s.i.gc();)n=b(Dn(s),135),Gt(this.b,new Wle(n))}return this.b},v.b=null;var tJi=V(LD,"ElkGraphAdapters/ElkEdgeAdapter",563);G(289,562,{},lw),v.Sf=function(){return f$t(this)},v.a=null;var rJi=V(LD,"ElkGraphAdapters/ElkGraphAdapter",289);G(640,562,{187:1},Wle);var nJi=V(LD,"ElkGraphAdapters/ElkLabelAdapter",640);G(639,562,{695:1},tue),v.Rf=function(){return D_n(this)},v.Vf=function(){var n;return n=b(It(this.f,(Hi(),IN)),140),!n&&(n=new gM),n},v.Xf=function(){return P_n(this)},v.Zf=function(n){var s=new vue(n);Ta(this.f,(Hi(),IN),s)},v.$f=function(n){Ta(this.f,(Hi(),Qy),new f6e(n))},v.Tf=function(){return this.d},v.Uf=function(){var n,s;if(!this.a){this.a=new Ut;for(s=new Nn(Mn(rG(b(this.f,27)).a.Kc(),new L));ri(s);)n=b(Gn(s),74),Gt(this.a,new $W(n))}return this.a},v.Wf=function(){var n,s;if(!this.c){this.c=new Ut;for(s=new Nn(Mn(Ob(b(this.f,27)).a.Kc(),new L));ri(s);)n=b(Gn(s),74),Gt(this.c,new $W(n))}return this.c},v.Yf=function(){return MK(b(this.f,27)).i!=0||er(Jt(b(this.f,27).of((Hi(),Hz))))},v._f=function(){pgn(this,(mw(),Gsr))},v.a=null,v.b=null,v.c=null,v.d=null,v.e=null;var iJi=V(LD,"ElkGraphAdapters/ElkNodeAdapter",639);G(1284,562,{852:1},a4t),v.Rf=function(){return H_n(this)},v.Uf=function(){var n,s;if(!this.a){this.a=f1(b(this.f,123).hh().i);for(s=new kn(b(this.f,123).hh());s.e!=s.i.gc();)n=b(Dn(s),74),Gt(this.a,new $W(n))}return this.a},v.Wf=function(){var n,s;if(!this.c){this.c=f1(b(this.f,123).ih().i);for(s=new kn(b(this.f,123).ih());s.e!=s.i.gc();)n=b(Dn(s),74),Gt(this.c,new $W(n))}return this.c},v.ag=function(){return b(b(this.f,123).of((Hi(),Ak)),64)},v.bg=function(){var n,s,u,f,g,_,S,C;f=wg(b(this.f,123));for(u=new kn(b(this.f,123).ih());u.e!=u.i.gc();){n=b(Dn(u),74);for(C=new kn((!n.c&&(n.c=new Wr(qn,n,5,8)),n.c));C.e!=C.i.gc();)if(S=b(Dn(C),84),jT(ic(S),f))return!0;else if(ic(S)==f&&er(Jt(It(n,(Hi(),Lye)))))return!0}for(s=new kn(b(this.f,123).hh());s.e!=s.i.gc();){n=b(Dn(s),74);for(_=new kn((!n.b&&(n.b=new Wr(qn,n,4,7)),n.b));_.e!=_.i.gc();)if(g=b(Dn(_),84),jT(ic(g),f))return!0}return!1},v.a=null,v.b=null,v.c=null;var aJi=V(LD,"ElkGraphAdapters/ElkPortAdapter",1284);G(1285,1,ki,v2t),v.Ne=function(n,s){return wkn(b(n,123),b(s,123))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var sJi=V(LD,"ElkGraphAdapters/PortComparator",1285),I_=ns(Hf,"EObject"),BN=ns(W4,xjt),lf=ns(W4,Cjt),iV=ns(W4,kjt),aV=ns(W4,"ElkShape"),qn=ns(W4,Ajt),ws=ns(W4,jBe),Ha=ns(W4,Rjt),sV=ns(Hf,Ijt),K9=ns(Hf,"EFactory"),Vsr,Kye=ns(Hf,Ojt),ng=ns(Hf,"EPackage"),bo,Hsr,qsr,ZYe,Ete,Ysr,JYe,eWe,tWe,F1,Wsr,jsr,Dl=ns(W4,KBe),ra=ns(W4,XBe),ld=ns(W4,QBe);G(93,1,Njt),v.th=function(){return this.uh(),null},v.uh=function(){return null},v.vh=function(){return this.uh(),!1},v.wh=function(){return!1},v.xh=function(n){ha(this,n)};var oJi=V(x5,"BasicNotifierImpl",93);G(99,93,Pjt),v.Yh=function(){return Ad(this)},v.yh=function(n,s){return n},v.zh=function(){throw ve(new bi)},v.Ah=function(n){var s;return s=El(b(jr(this.Dh(),this.Fh()),19)),this.Ph().Th(this,s.n,s.f,n)},v.Bh=function(n,s){throw ve(new bi)},v.Ch=function(n,s,u){return Jd(this,n,s,u)},v.Dh=function(){var n;if(this.zh()){if(n=this.zh().Nk(),n)return n}return this.ii()},v.Eh=function(){return Vfe(this)},v.Fh=function(){throw ve(new bi)},v.Gh=function(){var n,s;return s=this.$h().Ok(),!s&&this.zh().Tk(s=(RM(),n=COe(Rm(this.Dh())),n==null?nve:new S$(this,n))),s},v.Hh=function(n,s){return n},v.Ih=function(n){var s=n.pk();return!s?Za(this.Dh(),n):n.Lj()},v.Jh=function(){var n=this.zh();return!n?null:n.Qk()},v.Kh=function(){return!this.zh()?null:this.zh().Nk()},v.Lh=function(n,s,u){return cQ(this,n,s,u)},v.Mh=function(n){return I6(this,n)},v.Nh=function(n,s){return Ahe(this,n,s)},v.Oh=function(){var n=this.zh();return!!n&&n.Rk()},v.Ph=function(){throw ve(new bi)},v.Qh=function(){return rQ(this)},v.Rh=function(n,s,u,f){return i5(this,n,s,f)},v.Sh=function(n,s,u){var f;return f=b(jr(this.Dh(),s),69),f.wk().zk(this,this.hi(),s-this.ji(),n,u)},v.Th=function(n,s,u,f){return FK(this,n,s,f)},v.Uh=function(n,s,u){var f;return f=b(jr(this.Dh(),s),69),f.wk().Ak(this,this.hi(),s-this.ji(),n,u)},v.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},v.Wh=function(n){return efe(this,n)},v.Xh=function(n){return DLt(this,n)},v.Zh=function(n){return nqt(this,n)},v.$h=function(){throw ve(new bi)},v._h=function(){return!this.zh()?null:this.zh().Pk()},v.ai=function(){return rQ(this)},v.bi=function(n,s){Ffe(this,n,s)},v.ci=function(n){this.$h().Sk(n)},v.di=function(n){this.$h().Vk(n)},v.ei=function(n){this.$h().Uk(n)},v.fi=function(n,s){var u,f,g,_;if(_=this.Jh(),!!_&&!!n)s=ol(_.El(),this,s),_.Il(this);if(f=this.Ph(),f)if((npe(this,this.Ph(),this.Fh()).Bb&ml)!=0)g=f.Qh(),!!g&&(!n?g.Hl(this):!_&&g.Il(this));else s=(u=this.Fh(),u>=0?this.Ah(s):this.Ph().Th(this,-1-u,null,s)),s=this.Ch(null,-1,s);return this.di(n),s},v.gi=function(n){var s,u,f,g,_,S,C,O;if(u=this.Dh(),_=Za(u,n),s=this.ji(),_>=s)return b(n,69).wk().Dk(this,this.hi(),_-s);else if(_<=-1)if(S=B4((Ph(),Yo),u,n),S){if(_l(),b(S,69).xk()||(S=HA(Hl(Yo,S))),g=(f=this.Ih(S),b(f>=0?this.Lh(f,!0,!0):Jw(this,S,!0),160)),O=S.Ik(),O>1||O==-1)return b(b(g,220).Sl(n,!1),79)}else throw ve(new dn(f_+n.xe()+Fge));else if(n.Jk())return f=this.Ih(n),b(f>=0?this.Lh(f,!1,!0):Jw(this,n,!1),79);return C=new J5t(this,n),C},v.hi=function(){return ONe(this)},v.ii=function(){return(Hv(),an).S},v.ji=function(){return Un(this.ii())},v.ki=function(n){Dfe(this,n)},v.Ib=function(){return o0(this)};var lJi=V(sn,"BasicEObjectImpl",99),Ksr;G(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),v.li=function(n){var s=INe(this);return s[n]},v.mi=function(n,s){var u=INe(this);ls(u,n,s)},v.ni=function(n){var s=INe(this);ls(s,n,null)},v.th=function(){return b(cn(this,4),129)},v.uh=function(){throw ve(new bi)},v.vh=function(){return(this.Db&4)!=0},v.zh=function(){throw ve(new bi)},v.oi=function(n){r5(this,2,n)},v.Bh=function(n,s){this.Db=s<<16|this.Db&255,this.oi(n)},v.Dh=function(){return dh(this)},v.Fh=function(){return this.Db>>16},v.Gh=function(){var n,s;return RM(),s=COe(Rm((n=b(cn(this,16),29),!n?this.ii():n))),s==null?nve:new S$(this,s)},v.wh=function(){return(this.Db&1)==0},v.Jh=function(){return b(cn(this,128),2034)},v.Kh=function(){return b(cn(this,16),29)},v.Oh=function(){return(this.Db&32)!=0},v.Ph=function(){return b(cn(this,2),54)},v.Vh=function(){return(this.Db&64)!=0},v.$h=function(){throw ve(new bi)},v._h=function(){return b(cn(this,64),288)},v.ci=function(n){r5(this,16,n)},v.di=function(n){r5(this,128,n)},v.ei=function(n){r5(this,64,n)},v.hi=function(){return rh(this)},v.Db=0;var cJi=V(sn,"MinimalEObjectImpl",119);G(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),v.oi=function(n){this.Cb=n},v.Ph=function(){return this.Cb};var uJi=V(sn,"MinimalEObjectImpl/Container",120);G(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),v.Lh=function(n,s,u){return Y7e(this,n,s,u)},v.Uh=function(n,s,u){return DMe(this,n,s,u)},v.Wh=function(n){return UOe(this,n)},v.bi=function(n,s){OLe(this,n,s)},v.ii=function(){return Xc(),jsr},v.ki=function(n){_Le(this,n)},v.nf=function(){return LFt(this)},v.gh=function(){return!this.o&&(this.o=new Mh((Xc(),F1),Jy,this,0)),this.o},v.of=function(n){return It(this,n)},v.pf=function(n){return kg(this,n)},v.qf=function(n,s){return Ta(this,n,s)};var hJi=V(uE,"EMapPropertyHolderImpl",2083);G(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},AW),v.Lh=function(n,s,u){switch(n){case 0:return this.a;case 1:return this.b}return cQ(this,n,s,u)},v.Wh=function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return efe(this,n)},v.bi=function(n,s){switch(n){case 0:vX(this,rt(ht(s)));return;case 1:yX(this,rt(ht(s)));return}Ffe(this,n,s)},v.ii=function(){return Xc(),Hsr},v.ki=function(n){switch(n){case 0:vX(this,0);return;case 1:yX(this,0);return}Dfe(this,n)},v.Ib=function(){var n;if((this.Db&64)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (x: ",XC(n,this.a),n.a+=", y: ",XC(n,this.b),n.a+=")",n.a},v.a=0,v.b=0;var dJi=V(uE,"ElkBendPointImpl",572);G(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),v.Lh=function(n,s,u){return e7e(this,n,s,u)},v.Sh=function(n,s,u){return Afe(this,n,s,u)},v.Uh=function(n,s,u){return hde(this,n,s,u)},v.Wh=function(n){return pLe(this,n)},v.bi=function(n,s){hMe(this,n,s)},v.ii=function(){return Xc(),Ysr},v.ki=function(n){qLe(this,n)},v.jh=function(){return this.k},v.kh=function(){return RK(this)},v.Ib=function(){return Bde(this)},v.k=null;var fJi=V(uE,"ElkGraphElementImpl",739);G(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),v.Lh=function(n,s,u){return l7e(this,n,s,u)},v.Wh=function(n){return p7e(this,n)},v.bi=function(n,s){dMe(this,n,s)},v.ii=function(){return Xc(),Wsr},v.ki=function(n){E7e(this,n)},v.lh=function(){return this.f},v.mh=function(){return this.g},v.nh=function(){return this.i},v.oh=function(){return this.j},v.ph=function(n,s){s4(this,n,s)},v.qh=function(n,s){kf(this,n,s)},v.rh=function(n){eh(this,n)},v.sh=function(n){th(this,n)},v.Ib=function(){return Lfe(this)},v.f=0,v.g=0,v.i=0,v.j=0;var pJi=V(uE,"ElkShapeImpl",740);G(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),v.Lh=function(n,s,u){return $7e(this,n,s,u)},v.Sh=function(n,s,u){return aMe(this,n,s,u)},v.Uh=function(n,s,u){return sMe(this,n,s,u)},v.Wh=function(n){return ILe(this,n)},v.bi=function(n,s){v8e(this,n,s)},v.ii=function(){return Xc(),qsr},v.ki=function(n){M7e(this,n)},v.hh=function(){return!this.d&&(this.d=new Wr(ws,this,8,5)),this.d},v.ih=function(){return!this.e&&(this.e=new Wr(ws,this,7,4)),this.e};var gJi=V(uE,"ElkConnectableShapeImpl",741);G(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yle),v.Ah=function(n){return tMe(this,n)},v.Lh=function(n,s,u){switch(n){case 3:return W$(this);case 4:return!this.b&&(this.b=new Wr(qn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Wr(qn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new kt(Ha,this,6,6)),this.a;case 7:return nn(),!this.b&&(this.b=new Wr(qn,this,4,7)),this.b.i<=1&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i<=1)?!1:!0;case 8:return nn(),eD(this)?!0:!1;case 9:return nn(),Zw(this)?!0:!1;case 10:return nn(),!this.b&&(this.b=new Wr(qn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i!=0)?!0:!1}return e7e(this,n,s,u)},v.Sh=function(n,s,u){var f;switch(s){case 3:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?tMe(this,u):this.Cb.Th(this,-1-f,null,u))),PIe(this,b(n,27),u);case 4:return!this.b&&(this.b=new Wr(qn,this,4,7)),Vu(this.b,n,u);case 5:return!this.c&&(this.c=new Wr(qn,this,5,8)),Vu(this.c,n,u);case 6:return!this.a&&(this.a=new kt(Ha,this,6,6)),Vu(this.a,n,u)}return Afe(this,n,s,u)},v.Uh=function(n,s,u){switch(s){case 3:return PIe(this,null,u);case 4:return!this.b&&(this.b=new Wr(qn,this,4,7)),ol(this.b,n,u);case 5:return!this.c&&(this.c=new Wr(qn,this,5,8)),ol(this.c,n,u);case 6:return!this.a&&(this.a=new kt(Ha,this,6,6)),ol(this.a,n,u)}return hde(this,n,s,u)},v.Wh=function(n){switch(n){case 3:return!!W$(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Wr(qn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i<=1));case 8:return eD(this);case 9:return Zw(this);case 10:return!this.b&&(this.b=new Wr(qn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i!=0)}return pLe(this,n)},v.bi=function(n,s){switch(n){case 3:MQ(this,b(s,27));return;case 4:!this.b&&(this.b=new Wr(qn,this,4,7)),ni(this.b),!this.b&&(this.b=new Wr(qn,this,4,7)),ps(this.b,b(s,16));return;case 5:!this.c&&(this.c=new Wr(qn,this,5,8)),ni(this.c),!this.c&&(this.c=new Wr(qn,this,5,8)),ps(this.c,b(s,16));return;case 6:!this.a&&(this.a=new kt(Ha,this,6,6)),ni(this.a),!this.a&&(this.a=new kt(Ha,this,6,6)),ps(this.a,b(s,16));return}hMe(this,n,s)},v.ii=function(){return Xc(),ZYe},v.ki=function(n){switch(n){case 3:MQ(this,null);return;case 4:!this.b&&(this.b=new Wr(qn,this,4,7)),ni(this.b);return;case 5:!this.c&&(this.c=new Wr(qn,this,5,8)),ni(this.c);return;case 6:!this.a&&(this.a=new kt(Ha,this,6,6)),ni(this.a);return}qLe(this,n)},v.Ib=function(){return EHt(this)};var mJi=V(uE,"ElkEdgeImpl",326);G(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},RW),v.Ah=function(n){return Q7e(this,n)},v.Lh=function(n,s,u){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Os(lf,this,5)),this.a;case 6:return OLt(this);case 7:if(s)return afe(this);return this.i;case 8:if(s)return ife(this);return this.f;case 9:return!this.g&&(this.g=new Wr(Ha,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Wr(Ha,this,10,9)),this.e;case 11:return this.d}return Y7e(this,n,s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 6:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?Q7e(this,u):this.Cb.Th(this,-1-g,null,u))),DIe(this,b(n,74),u);case 9:return!this.g&&(this.g=new Wr(Ha,this,9,10)),Vu(this.g,n,u);case 10:return!this.e&&(this.e=new Wr(Ha,this,10,9)),Vu(this.e,n,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Xc(),Ete):f),s),69),_.wk().zk(this,rh(this),s-Un((Xc(),Ete)),n,u)},v.Uh=function(n,s,u){switch(s){case 5:return!this.a&&(this.a=new Os(lf,this,5)),ol(this.a,n,u);case 6:return DIe(this,null,u);case 9:return!this.g&&(this.g=new Wr(Ha,this,9,10)),ol(this.g,n,u);case 10:return!this.e&&(this.e=new Wr(Ha,this,10,9)),ol(this.e,n,u)}return DMe(this,n,s,u)},v.Wh=function(n){switch(n){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!OLt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return UOe(this,n)},v.bi=function(n,s){switch(n){case 1:P6(this,rt(ht(s)));return;case 2:F6(this,rt(ht(s)));return;case 3:D6(this,rt(ht(s)));return;case 4:B6(this,rt(ht(s)));return;case 5:!this.a&&(this.a=new Os(lf,this,5)),ni(this.a),!this.a&&(this.a=new Os(lf,this,5)),ps(this.a,b(s,16));return;case 6:_zt(this,b(s,74));return;case 7:CX(this,b(s,84));return;case 8:xX(this,b(s,84));return;case 9:!this.g&&(this.g=new Wr(Ha,this,9,10)),ni(this.g),!this.g&&(this.g=new Wr(Ha,this,9,10)),ps(this.g,b(s,16));return;case 10:!this.e&&(this.e=new Wr(Ha,this,10,9)),ni(this.e),!this.e&&(this.e=new Wr(Ha,this,10,9)),ps(this.e,b(s,16));return;case 11:rLe(this,wi(s));return}OLe(this,n,s)},v.ii=function(){return Xc(),Ete},v.ki=function(n){switch(n){case 1:P6(this,0);return;case 2:F6(this,0);return;case 3:D6(this,0);return;case 4:B6(this,0);return;case 5:!this.a&&(this.a=new Os(lf,this,5)),ni(this.a);return;case 6:_zt(this,null);return;case 7:CX(this,null);return;case 8:xX(this,null);return;case 9:!this.g&&(this.g=new Wr(Ha,this,9,10)),ni(this.g);return;case 10:!this.e&&(this.e=new Wr(Ha,this,10,9)),ni(this.e);return;case 11:rLe(this,null);return}_Le(this,n)},v.Ib=function(){return MGt(this)},v.b=0,v.c=0,v.d=null,v.j=0,v.k=0;var bJi=V(uE,"ElkEdgeSectionImpl",452);G(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),v.Lh=function(n,s,u){var f;if(n==0)return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;return Mf(this,n-Un(this.ii()),jr((f=b(cn(this,16),29),!f?this.ii():f),n),s,u)},v.Sh=function(n,s,u){var f,g;if(s==0)return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);return g=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),g.wk().zk(this,rh(this),s-Un(this.ii()),n,u)},v.Uh=function(n,s,u){var f,g;if(s==0)return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);return g=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},v.Wh=function(n){var s;if(n==0)return!!this.Ab&&this.Ab.i!=0;return Nf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.Zh=function(n){return IDe(this,n)},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return}Ff(this,n-Un(this.ii()),jr((u=b(cn(this,16),29),!u?this.ii():u),n),s)},v.di=function(n){r5(this,128,n)},v.ii=function(){return Vr(),gor},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return}Bf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.pi=function(){this.Bb|=1},v.qi=function(n){return oD(this,n)},v.Bb=0;var yJi=V(sn,"EModelElementImpl",158);G(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},NAe),v.ri=function(n,s){return XHt(this,n,s)},v.si=function(n){var s,u,f,g,_;if(this.a!=Wd(n)||(n.Bb&256)!=0)throw ve(new dn(Uge+n.zb+hS));for(f=tc(n);nu(f.a).i!=0;){if(u=b(pG(f,0,(s=b(Ye(nu(f.a),0),89),_=s.c,He(_,90)?b(_,29):(Vr(),Lp))),29),Qw(u))return g=Wd(u).wi().si(u),b(g,54).ci(n),g;f=tc(u)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new fOt(n):new T6e(n)},v.ti=function(n,s){return nS(this,n,s)},v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.a}return Mf(this,n-Un((Vr(),M_)),jr((f=b(cn(this,16),29),!f?M_:f),n),s,u)},v.Sh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 1:return!!this.a&&(u=b(this.a,54).Th(this,4,ng,u)),HLe(this,b(n,241),u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),M_):f),s),69),g.wk().zk(this,rh(this),s-Un((Vr(),M_)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 1:return HLe(this,null,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),M_):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),M_)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Nf(this,n-Un((Vr(),M_)),jr((s=b(cn(this,16),29),!s?M_:s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:bUt(this,b(s,241));return}Ff(this,n-Un((Vr(),M_)),jr((u=b(cn(this,16),29),!u?M_:u),n),s)},v.ii=function(){return Vr(),M_},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:bUt(this,null);return}Bf(this,n-Un((Vr(),M_)),jr((s=b(cn(this,16),29),!s?M_:s),n))};var X9,rWe,Xsr,vJi=V(sn,"EFactoryImpl",720);G(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},A2t),v.ri=function(n,s){switch(n.hk()){case 12:return b(s,149).Pg();case 13:return hc(s);default:throw ve(new dn(KO+n.xe()+hS))}},v.si=function(n){var s,u,f,g,_,S,C,O;switch(n.G==-1&&(n.G=(s=Wd(n),s?Py(s.vi(),n):-1)),n.G){case 4:return _=new CAe,_;case 6:return S=new mM,S;case 7:return C=new C5e,C;case 8:return f=new yle,f;case 9:return u=new AW,u;case 10:return g=new RW,g;case 11:return O=new R2t,O;default:throw ve(new dn(Uge+n.zb+hS))}},v.ti=function(n,s){switch(n.hk()){case 13:case 12:return null;default:throw ve(new dn(KO+n.xe()+hS))}};var _Ji=V(uE,"ElkGraphFactoryImpl",1037);G(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),v.Gh=function(){var n,s;return s=(n=b(cn(this,16),29),COe(Rm(!n?this.ii():n))),s==null?(RM(),RM(),nve):new PIt(this,s)},v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.xe()}return Mf(this,n-Un(this.ii()),jr((f=b(cn(this,16),29),!f?this.ii():f),n),s,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Nf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:this.ui(wi(s));return}Ff(this,n-Un(this.ii()),jr((u=b(cn(this,16),29),!u?this.ii():u),n),s)},v.ii=function(){return Vr(),mor},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:this.ui(null);return}Bf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.xe=function(){return this.zb},v.ui=function(n){zu(this,n)},v.Ib=function(){return D8(this)},v.zb=null;var EJi=V(sn,"ENamedElementImpl",448);G(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},cLt),v.Ah=function(n){return A$t(this,n)},v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new FT(this,ig,this)),this.rb;case 6:return!this.vb&&(this.vb=new OA(ng,this,6,7)),this.vb;case 7:if(s)return this.Db>>16==7?b(this.Cb,241):null;return FLt(this)}return Mf(this,n-Un((Vr(),nv)),jr((f=b(cn(this,16),29),!f?nv:f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 4:return!!this.sb&&(u=b(this.sb,54).Th(this,1,K9,u)),WLe(this,b(n,480),u);case 5:return!this.rb&&(this.rb=new FT(this,ig,this)),Vu(this.rb,n,u);case 6:return!this.vb&&(this.vb=new OA(ng,this,6,7)),Vu(this.vb,n,u);case 7:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?A$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,7,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),nv):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),nv)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 4:return WLe(this,null,u);case 5:return!this.rb&&(this.rb=new FT(this,ig,this)),ol(this.rb,n,u);case 6:return!this.vb&&(this.vb=new OA(ng,this,6,7)),ol(this.vb,n,u);case 7:return Jd(this,null,7,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),nv):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),nv)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!FLt(this)}return Nf(this,n-Un((Vr(),nv)),jr((s=b(cn(this,16),29),!s?nv:s),n))},v.Zh=function(n){var s=BCn(this,n);return s?s:IDe(this,n)},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:NX(this,wi(s));return;case 3:OX(this,wi(s));return;case 4:Nfe(this,b(s,480));return;case 5:!this.rb&&(this.rb=new FT(this,ig,this)),ni(this.rb),!this.rb&&(this.rb=new FT(this,ig,this)),ps(this.rb,b(s,16));return;case 6:!this.vb&&(this.vb=new OA(ng,this,6,7)),ni(this.vb),!this.vb&&(this.vb=new OA(ng,this,6,7)),ps(this.vb,b(s,16));return}Ff(this,n-Un((Vr(),nv)),jr((u=b(cn(this,16),29),!u?nv:u),n),s)},v.ei=function(n){var s,u;if(!!n&&!!this.rb)for(u=new kn(this.rb);u.e!=u.i.gc();)s=Dn(u),He(s,364)&&(b(s,364).w=null);r5(this,64,n)},v.ii=function(){return Vr(),nv},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:NX(this,null);return;case 3:OX(this,null);return;case 4:Nfe(this,null);return;case 5:!this.rb&&(this.rb=new FT(this,ig,this)),ni(this.rb);return;case 6:!this.vb&&(this.vb=new OA(ng,this,6,7)),ni(this.vb);return}Bf(this,n-Un((Vr(),nv)),jr((s=b(cn(this,16),29),!s?nv:s),n))},v.pi=function(){yfe(this)},v.vi=function(){return!this.rb&&(this.rb=new FT(this,ig,this)),this.rb},v.wi=function(){return this.sb},v.xi=function(){return this.ub},v.yi=function(){return this.xb},v.zi=function(){return this.yb},v.Ai=function(n){this.ub=n},v.Ib=function(){var n;if((this.Db&64)!=0)return D8(this);return n=new pp(D8(this)),n.a+=" (nsURI: ",Ol(n,this.yb),n.a+=", nsPrefix: ",Ol(n,this.xb),n.a+=")",n.a},v.xb=null,v.yb=null;var Qsr,wJi=V(sn,"EPackageImpl",184);G(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},VGt),v.q=!1,v.r=!1;var Zsr=!1,SJi=V(uE,"ElkGraphPackageImpl",569);G(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},CAe),v.Ah=function(n){return Z7e(this,n)},v.Lh=function(n,s,u){switch(n){case 7:return $Lt(this);case 8:return this.a}return l7e(this,n,s,u)},v.Sh=function(n,s,u){var f;switch(s){case 7:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?Z7e(this,u):this.Cb.Th(this,-1-f,null,u))),$6e(this,b(n,167),u)}return Afe(this,n,s,u)},v.Uh=function(n,s,u){if(s==7)return $6e(this,null,u);return hde(this,n,s,u)},v.Wh=function(n){switch(n){case 7:return!!$Lt(this);case 8:return!Br("",this.a)}return p7e(this,n)},v.bi=function(n,s){switch(n){case 7:N8e(this,b(s,167));return;case 8:QNe(this,wi(s));return}dMe(this,n,s)},v.ii=function(){return Xc(),JYe},v.ki=function(n){switch(n){case 7:N8e(this,null);return;case 8:QNe(this,"");return}E7e(this,n)},v.Ib=function(){return OUt(this)},v.a="";var TJi=V(uE,"ElkLabelImpl",366);G(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},mM),v.Ah=function(n){return rMe(this,n)},v.Lh=function(n,s,u){switch(n){case 9:return!this.c&&(this.c=new kt(ld,this,9,9)),this.c;case 10:return!this.a&&(this.a=new kt(ra,this,10,11)),this.a;case 11:return Ya(this);case 12:return!this.b&&(this.b=new kt(ws,this,12,3)),this.b;case 13:return nn(),!this.a&&(this.a=new kt(ra,this,10,11)),this.a.i>0?!0:!1}return $7e(this,n,s,u)},v.Sh=function(n,s,u){var f;switch(s){case 9:return!this.c&&(this.c=new kt(ld,this,9,9)),Vu(this.c,n,u);case 10:return!this.a&&(this.a=new kt(ra,this,10,11)),Vu(this.a,n,u);case 11:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?rMe(this,u):this.Cb.Th(this,-1-f,null,u))),YIe(this,b(n,27),u);case 12:return!this.b&&(this.b=new kt(ws,this,12,3)),Vu(this.b,n,u)}return aMe(this,n,s,u)},v.Uh=function(n,s,u){switch(s){case 9:return!this.c&&(this.c=new kt(ld,this,9,9)),ol(this.c,n,u);case 10:return!this.a&&(this.a=new kt(ra,this,10,11)),ol(this.a,n,u);case 11:return YIe(this,null,u);case 12:return!this.b&&(this.b=new kt(ws,this,12,3)),ol(this.b,n,u)}return sMe(this,n,s,u)},v.Wh=function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Ya(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new kt(ra,this,10,11)),this.a.i>0}return ILe(this,n)},v.bi=function(n,s){switch(n){case 9:!this.c&&(this.c=new kt(ld,this,9,9)),ni(this.c),!this.c&&(this.c=new kt(ld,this,9,9)),ps(this.c,b(s,16));return;case 10:!this.a&&(this.a=new kt(ra,this,10,11)),ni(this.a),!this.a&&(this.a=new kt(ra,this,10,11)),ps(this.a,b(s,16));return;case 11:DQ(this,b(s,27));return;case 12:!this.b&&(this.b=new kt(ws,this,12,3)),ni(this.b),!this.b&&(this.b=new kt(ws,this,12,3)),ps(this.b,b(s,16));return}v8e(this,n,s)},v.ii=function(){return Xc(),eWe},v.ki=function(n){switch(n){case 9:!this.c&&(this.c=new kt(ld,this,9,9)),ni(this.c);return;case 10:!this.a&&(this.a=new kt(ra,this,10,11)),ni(this.a);return;case 11:DQ(this,null);return;case 12:!this.b&&(this.b=new kt(ws,this,12,3)),ni(this.b);return}M7e(this,n)},v.Ib=function(){return j8e(this)};var xJi=V(uE,"ElkNodeImpl",207);G(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},C5e),v.Ah=function(n){return J7e(this,n)},v.Lh=function(n,s,u){if(n==9)return wg(this);return $7e(this,n,s,u)},v.Sh=function(n,s,u){var f;switch(s){case 9:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?J7e(this,u):this.Cb.Th(this,-1-f,null,u))),BIe(this,b(n,27),u)}return aMe(this,n,s,u)},v.Uh=function(n,s,u){if(s==9)return BIe(this,null,u);return sMe(this,n,s,u)},v.Wh=function(n){if(n==9)return!!wg(this);return ILe(this,n)},v.bi=function(n,s){switch(n){case 9:A8e(this,b(s,27));return}v8e(this,n,s)},v.ii=function(){return Xc(),tWe},v.ki=function(n){switch(n){case 9:A8e(this,null);return}M7e(this,n)},v.Ib=function(){return vVt(this)};var CJi=V(uE,"ElkPortImpl",193),Jsr=ns(cl,"BasicEMap/Entry");G(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},R2t),v.Fb=function(n){return this===n},v.ld=function(){return this.b},v.Hb=function(){return ww(this)},v.Di=function(n){ZNe(this,b(n,149))},v.Lh=function(n,s,u){switch(n){case 0:return this.b;case 1:return this.c}return cQ(this,n,s,u)},v.Wh=function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return efe(this,n)},v.bi=function(n,s){switch(n){case 0:ZNe(this,b(s,149));return;case 1:XNe(this,s);return}Ffe(this,n,s)},v.ii=function(){return Xc(),F1},v.ki=function(n){switch(n){case 0:ZNe(this,null);return;case 1:XNe(this,null);return}Dfe(this,n)},v.Bi=function(){var n;if(this.a==-1)n=this.b,this.a=!n?0:Da(n);return this.a},v.md=function(){return this.c},v.Ci=function(n){this.a=n},v.nd=function(n){var s=this.c;return XNe(this,n),s},v.Ib=function(){var n;if((this.Db&64)!=0)return o0(this);return n=new Dv,Bi(Bi(Bi(n,this.b?this.b.Pg():mh),L0e),KM(this.c)),n.a},v.a=-1,v.c=null;var Jy=V(uE,"ElkPropertyToValueMapEntryImpl",1122);G(996,1,{},N2t);var kJi=V(Ho,"JsonAdapter",996);G(216,63,Lb,mm);var AJi=V(Ho,"JsonImportException",216);G(868,1,{},R$t);var RJi=V(Ho,"JsonImporter",868);G(903,1,{},P5t);var IJi=V(Ho,"JsonImporter/lambda$0$Type",903);G(904,1,{},B5t);var OJi=V(Ho,"JsonImporter/lambda$1$Type",904);G(912,1,{},s4t);var NJi=V(Ho,"JsonImporter/lambda$10$Type",912);G(914,1,{},F5t);var LJi=V(Ho,"JsonImporter/lambda$11$Type",914);G(915,1,{},$5t);var MJi=V(Ho,"JsonImporter/lambda$12$Type",915);G(921,1,{},QNt);var DJi=V(Ho,"JsonImporter/lambda$13$Type",921);G(920,1,{},ZNt);var PJi=V(Ho,"JsonImporter/lambda$14$Type",920);G(916,1,{},U5t);var BJi=V(Ho,"JsonImporter/lambda$15$Type",916);G(917,1,{},G5t);var FJi=V(Ho,"JsonImporter/lambda$16$Type",917);G(918,1,{},z5t);var $Ji=V(Ho,"JsonImporter/lambda$17$Type",918);G(919,1,{},V5t);var UJi=V(Ho,"JsonImporter/lambda$18$Type",919);G(924,1,{},o4t);var GJi=V(Ho,"JsonImporter/lambda$19$Type",924);G(905,1,{},l4t);var zJi=V(Ho,"JsonImporter/lambda$2$Type",905);G(922,1,{},c4t);var VJi=V(Ho,"JsonImporter/lambda$20$Type",922);G(923,1,{},u4t);var HJi=V(Ho,"JsonImporter/lambda$21$Type",923);G(927,1,{},h4t);var qJi=V(Ho,"JsonImporter/lambda$22$Type",927);G(925,1,{},d4t);var YJi=V(Ho,"JsonImporter/lambda$23$Type",925);G(926,1,{},f4t);var WJi=V(Ho,"JsonImporter/lambda$24$Type",926);G(929,1,{},p4t);var jJi=V(Ho,"JsonImporter/lambda$25$Type",929);G(928,1,{},g4t);var KJi=V(Ho,"JsonImporter/lambda$26$Type",928);G(930,1,Ln,H5t),v.Cd=function(n){Q0n(this.b,this.a,wi(n))};var XJi=V(Ho,"JsonImporter/lambda$27$Type",930);G(931,1,Ln,q5t),v.Cd=function(n){Z0n(this.b,this.a,wi(n))};var QJi=V(Ho,"JsonImporter/lambda$28$Type",931);G(932,1,{},Y5t);var ZJi=V(Ho,"JsonImporter/lambda$29$Type",932);G(908,1,{},m4t);var JJi=V(Ho,"JsonImporter/lambda$3$Type",908);G(933,1,{},W5t);var eea=V(Ho,"JsonImporter/lambda$30$Type",933);G(934,1,{},b4t);var tea=V(Ho,"JsonImporter/lambda$31$Type",934);G(935,1,{},y4t);var rea=V(Ho,"JsonImporter/lambda$32$Type",935);G(936,1,{},v4t);var nea=V(Ho,"JsonImporter/lambda$33$Type",936);G(937,1,{},_4t);var iea=V(Ho,"JsonImporter/lambda$34$Type",937);G(870,1,{},E4t);var aea=V(Ho,"JsonImporter/lambda$35$Type",870);G(941,1,{},G6t);var sea=V(Ho,"JsonImporter/lambda$36$Type",941);G(938,1,Ln,w4t),v.Cd=function(n){n0n(this.a,b(n,377))};var oea=V(Ho,"JsonImporter/lambda$37$Type",938);G(939,1,Ln,j5t),v.Cd=function(n){Fin(this.a,this.b,b(n,166))};var lea=V(Ho,"JsonImporter/lambda$38$Type",939);G(940,1,Ln,K5t),v.Cd=function(n){$in(this.a,this.b,b(n,166))};var cea=V(Ho,"JsonImporter/lambda$39$Type",940);G(906,1,{},S4t);var uea=V(Ho,"JsonImporter/lambda$4$Type",906);G(942,1,Ln,T4t),v.Cd=function(n){i0n(this.a,b(n,8))};var hea=V(Ho,"JsonImporter/lambda$40$Type",942);G(907,1,{},x4t);var dea=V(Ho,"JsonImporter/lambda$5$Type",907);G(911,1,{},C4t);var fea=V(Ho,"JsonImporter/lambda$6$Type",911);G(909,1,{},k4t);var pea=V(Ho,"JsonImporter/lambda$7$Type",909);G(910,1,{},A4t);var gea=V(Ho,"JsonImporter/lambda$8$Type",910);G(913,1,{},R4t);var mea=V(Ho,"JsonImporter/lambda$9$Type",913);G(961,1,Ln,I4t),v.Cd=function(n){$A(this.a,new $T(wi(n)))};var bea=V(Ho,"JsonMetaDataConverter/lambda$0$Type",961);G(962,1,Ln,O4t),v.Cd=function(n){Kun(this.a,b(n,245))};var yea=V(Ho,"JsonMetaDataConverter/lambda$1$Type",962);G(963,1,Ln,N4t),v.Cd=function(n){jdn(this.a,b(n,143))};var vea=V(Ho,"JsonMetaDataConverter/lambda$2$Type",963);G(964,1,Ln,L4t),v.Cd=function(n){Xun(this.a,b(n,170))};var _ea=V(Ho,"JsonMetaDataConverter/lambda$3$Type",964);G(245,22,{3:1,34:1,22:1,245:1},xA);var wte,Ste,Xye,Tte,xte,Cte,Qye,Zye,kte=ei(RG,"GraphFeature",245,li,Lgn,wcn),eor;G(11,1,{34:1,149:1},va,es,Dr,No),v.Fd=function(n){return Han(this,b(n,149))},v.Fb=function(n){return ELt(this,n)},v.Sg=function(){return jt(this)},v.Pg=function(){return this.b},v.Hb=function(){return Ry(this.b)},v.Ib=function(){return this.b};var Eea=V(RG,"Property",11);G(671,1,ki,Nle),v.Ne=function(n,s){return eyn(this,b(n,96),b(s,96))},v.Fb=function(n){return this===n},v.Oe=function(){return new pi(this)};var wea=V(RG,"PropertyHolderComparator",671);G(709,1,To,o5e),v.Nb=function(n){Go(this,n)},v.Pb=function(){return tgn(this)},v.Qb=function(){R3t()},v.Ob=function(){return!!this.a};var Sea=V(jZ,"ElkGraphUtil/AncestorIterator",709),nWe=ns(cl,"EList");G(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),v.bd=function(n,s){B8(this,n,s)},v.Fc=function(n){return ii(this,n)},v.cd=function(n,s){return ELe(this,n,s)},v.Gc=function(n){return ps(this,n)},v.Ii=function(){return new IA(this)},v.Ji=function(){return new T$(this)},v.Ki=function(n){return mU(this,n)},v.Li=function(){return!0},v.Mi=function(n,s){},v.Ni=function(){},v.Oi=function(n,s){Nhe(this,n,s)},v.Pi=function(n,s,u){},v.Qi=function(n,s){},v.Ri=function(n,s,u){},v.Fb=function(n){return nVt(this,n)},v.Hb=function(){return bLe(this)},v.Si=function(){return!1},v.Kc=function(){return new kn(this)},v.ed=function(){return new RA(this)},v.fd=function(n){var s=this.gc();if(n<0||n>s)throw ve(new PT(n,s));return new Bue(this,n)},v.Ui=function(n,s){this.Ti(n,this.dd(s))},v.Mc=function(n){return hX(this,n)},v.Wi=function(n,s){return s},v.hd=function(n,s){return x4(this,n,s)},v.Ib=function(){return h7e(this)},v.Yi=function(){return!0},v.Zi=function(n,s){return Z6(this,s)};var Tea=V(cl,"AbstractEList",70);G(66,70,$m,IW,$w,hLe),v.Ei=function(n,s){return Rfe(this,n,s)},v.Fi=function(n){return e$t(this,n)},v.Gi=function(n,s){OU(this,n,s)},v.Hi=function(n){eU(this,n)},v.$i=function(n){return xNe(this,n)},v.$b=function(){v8(this)},v.Hc=function(n){return pO(this,n)},v.Xb=function(n){return Ye(this,n)},v._i=function(n){var s,u,f;if(++this.j,u=this.g==null?0:this.g.length,n>u)f=this.g,s=u+(u/2|0)+4,s=0)return this.gd(s),!0;else return!1},v.Xi=function(n,s){return this.Dj(n,this.Zi(n,s))},v.gc=function(){return this.Ej()},v.Pc=function(){return this.Fj()},v.Qc=function(n){return this.Gj(n)},v.Ib=function(){return this.Hj()};var Lea=V(cl,"DelegatingEList",2093);G(2094,2093,_Kt),v.Ei=function(n,s){return sDe(this,n,s)},v.Fi=function(n){return this.Ei(this.Ej(),n)},v.Gi=function(n,s){HGt(this,n,s)},v.Hi=function(n){NGt(this,n)},v.Li=function(){return!this.Mj()},v.$b=function(){fD(this)},v.Ij=function(n,s,u,f,g){return new _Lt(this,n,s,u,f,g)},v.Jj=function(n){ha(this.jj(),n)},v.Kj=function(){return null},v.Lj=function(){return-1},v.jj=function(){return null},v.Mj=function(){return!1},v.Nj=function(n,s){return s},v.Oj=function(n,s){return s},v.Pj=function(){return!1},v.Qj=function(){return!this.Aj()},v.Ti=function(n,s){var u,f;if(this.Pj())return f=this.Qj(),u=NMe(this,n,s),this.Jj(this.Ij(7,$t(s),u,n,f)),u;else return NMe(this,n,s)},v.gd=function(n){var s,u,f,g;if(this.Pj()){if(u=null,f=this.Qj(),s=this.Ij(4,g=cK(this,n),null,n,f),this.Mj()&&!!g)if(u=this.Oj(g,u),!u)this.Jj(s);else u.nj(s),u.oj();else if(!u)this.Jj(s);else u.nj(s),u.oj();return g}else{if(g=cK(this,n),this.Mj()&&!!g)u=this.Oj(g,null),!!u&&u.oj();return g}},v.Xi=function(n,s){return QVt(this,n,s)};var Mea=V(x5,"DelegatingNotifyingListImpl",2094);G(152,1,YG),v.nj=function(n){return bMe(this,n)},v.oj=function(){Uhe(this)},v.gj=function(){return this.d},v.Kj=function(){return null},v.Rj=function(){return null},v.hj=function(n){return-1},v.ij=function(){return Fzt(this)},v.jj=function(){return null},v.kj=function(){return B8e(this)},v.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},v.Sj=function(){return!1},v.mj=function(n){var s,u,f,g,_,S,C,O,M,U,q;switch(this.d){case 1:case 2:switch(g=n.gj(),g){case 1:case 2:if(_=n.jj(),nt(_)===nt(this.jj())&&this.hj(null)==n.hj(null))return this.g=n.ij(),n.gj()==1&&(this.d=1),!0}case 4:{switch(g=n.gj(),g){case 4:{if(_=n.jj(),nt(_)===nt(this.jj())&&this.hj(null)==n.hj(null)){if(M=SDe(this),O=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,S=n.lj(),this.d=6,q=new $w(2),O<=S)ii(q,this.n),ii(q,n.kj()),this.g=Te(we(ci,1),$i,28,15,[this.o=O,S+1]);else ii(q,n.kj()),ii(q,this.n),this.g=Te(we(ci,1),$i,28,15,[this.o=S,O]);return this.n=q,M||(this.o=-2-this.o-1),!0}break}}break}case 6:{switch(g=n.gj(),g){case 4:{if(_=n.jj(),nt(_)===nt(this.jj())&&this.hj(null)==n.hj(null)){M=SDe(this),S=n.lj(),U=b(this.g,53),f=mt(ci,$i,28,U.length+1,15,1),s=0;while(s>>0,s.toString(16))),f.a+=" (eventType: ",this.d){case 1:{f.a+="SET";break}case 2:{f.a+="UNSET";break}case 3:{f.a+="ADD";break}case 5:{f.a+="ADD_MANY";break}case 4:{f.a+="REMOVE";break}case 6:{f.a+="REMOVE_MANY";break}case 7:{f.a+="MOVE";break}case 8:{f.a+="REMOVING_ADAPTER";break}case 9:{f.a+="RESOLVE";break}default:{rce(f,this.d);break}}if(xVt(this)&&(f.a+=", touch: true"),f.a+=", position: ",rce(f,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),f.a+=", notifier: ",VM(f,this.jj()),f.a+=", feature: ",VM(f,this.Kj()),f.a+=", oldValue: ",VM(f,B8e(this)),f.a+=", newValue: ",this.d==6&&He(this.g,53)){u=b(this.g,53),f.a+="[";for(n=0;n10){if(!this.b||this.c.j!=this.a)this.b=new t8(this),this.a=this.j;return z0(this.b,n)}else return pO(this,n)},v.Yi=function(){return!0},v.a=0;var Gea=V(cl,"AbstractEList/1",966);G(302,77,n0e,PT);var zea=V(cl,"AbstractEList/BasicIndexOutOfBoundsException",302);G(37,1,To,kn),v.Nb=function(n){Go(this,n)},v.Xj=function(){if(this.i.j!=this.f)throw ve(new Cf)},v.Yj=function(){return Dn(this)},v.Ob=function(){return this.e!=this.i.gc()},v.Pb=function(){return this.Yj()},v.Qb=function(){K8(this)},v.e=0,v.f=0,v.g=-1;var Vea=V(cl,"AbstractEList/EIterator",37);G(286,37,S1,RA,Bue),v.Qb=function(){K8(this)},v.Rb=function(n){ZBt(this,n)},v.Zj=function(){var n;try{return n=this.d.Xb(--this.e),this.Xj(),this.g=this.e,n}catch(s){if(s=Qa(s),He(s,77))throw this.Xj(),ve(new yc);else throw ve(s)}},v.$j=function(n){n$t(this,n)},v.Sb=function(){return this.e!=0},v.Tb=function(){return this.e},v.Ub=function(){return this.Zj()},v.Vb=function(){return this.e-1},v.Wb=function(n){this.$j(n)};var Hea=V(cl,"AbstractEList/EListIterator",286);G(355,37,To,IA),v.Yj=function(){return tfe(this)},v.Qb=function(){throw ve(new bi)};var qea=V(cl,"AbstractEList/NonResolvingEIterator",355);G(398,286,S1,T$,JIe),v.Rb=function(n){throw ve(new bi)},v.Yj=function(){var n;try{return n=this.c.Vi(this.e),this.Xj(),this.g=this.e++,n}catch(s){if(s=Qa(s),He(s,77))throw this.Xj(),ve(new yc);else throw ve(s)}},v.Zj=function(){var n;try{return n=this.c.Vi(--this.e),this.Xj(),this.g=this.e,n}catch(s){if(s=Qa(s),He(s,77))throw this.Xj(),ve(new yc);else throw ve(s)}},v.Qb=function(){throw ve(new bi)},v.Wb=function(n){throw ve(new bi)};var Yea=V(cl,"AbstractEList/NonResolvingEListIterator",398);G(2080,70,EKt),v.Ei=function(n,s){var u,f,g,_,S,C,O,M,U,q,re;if(g=s.gc(),g!=0){M=b(cn(this.a,4),129),U=M==null?0:M.length,re=U+g,f=Tde(this,re),q=U-n,q>0&&au(M,n,f,n+g,q),O=s.Kc();for(S=0;Su)throw ve(new PT(n,u));return new zNt(this,n)},v.$b=function(){var n,s;++this.j,n=b(cn(this.a,4),129),s=n==null?0:n.length,uO(this,null),Nhe(this,s,n)},v.Hc=function(n){var s,u,f,g,_;if(s=b(cn(this.a,4),129),s!=null){if(n!=null){for(f=s,g=0,_=f.length;g<_;++g)if(u=f[g],da(n,u))return!0}else for(f=s,g=0,_=f.length;g<_;++g)if(u=f[g],nt(u)===nt(n))return!0}return!1},v.Xb=function(n){var s,u;if(s=b(cn(this.a,4),129),u=s==null?0:s.length,n>=u)throw ve(new PT(n,u));return s[n]},v.dd=function(n){var s,u,f;if(s=b(cn(this.a,4),129),s!=null){if(n!=null){for(u=0,f=s.length;uu)throw ve(new PT(n,u));return new GNt(this,n)},v.Ti=function(n,s){var u,f,g;if(u=lFt(this),g=u==null?0:u.length,n>=g)throw ve(new Gl(Kge+n+hE+g));if(s>=g)throw ve(new Gl(Xge+s+hE+g));if(f=u[s],n!=s)n0&&au(n,0,s,0,u),s},v.Qc=function(n){var s,u,f;if(s=b(cn(this.a,4),129),f=s==null?0:s.length,f>0){if(n.lengthf&&ls(n,f,null),n};var tor,Wea=V(cl,"ArrayDelegatingEList",2080);G(1051,37,To,VMt),v.Xj=function(){if(this.b.j!=this.f||nt(b(cn(this.b.a,4),129))!==nt(this.a))throw ve(new Cf)},v.Qb=function(){K8(this),this.a=b(cn(this.b.a,4),129)};var jea=V(cl,"ArrayDelegatingEList/EIterator",1051);G(722,286,S1,tNt,GNt),v.Xj=function(){if(this.b.j!=this.f||nt(b(cn(this.b.a,4),129))!==nt(this.a))throw ve(new Cf)},v.$j=function(n){n$t(this,n),this.a=b(cn(this.b.a,4),129)},v.Qb=function(){K8(this),this.a=b(cn(this.b.a,4),129)};var Kea=V(cl,"ArrayDelegatingEList/EListIterator",722);G(1052,355,To,HMt),v.Xj=function(){if(this.b.j!=this.f||nt(b(cn(this.b.a,4),129))!==nt(this.a))throw ve(new Cf)};var Xea=V(cl,"ArrayDelegatingEList/NonResolvingEIterator",1052);G(723,398,S1,rNt,zNt),v.Xj=function(){if(this.b.j!=this.f||nt(b(cn(this.b.a,4),129))!==nt(this.a))throw ve(new Cf)};var Qea=V(cl,"ArrayDelegatingEList/NonResolvingEListIterator",723);G(615,302,n0e,zce);var Zea=V(cl,"BasicEList/BasicIndexOutOfBoundsException",615);G(710,66,$m,GRe),v.bd=function(n,s){throw ve(new bi)},v.Fc=function(n){throw ve(new bi)},v.cd=function(n,s){throw ve(new bi)},v.Gc=function(n){throw ve(new bi)},v.$b=function(){throw ve(new bi)},v._i=function(n){throw ve(new bi)},v.Kc=function(){return this.Ii()},v.ed=function(){return this.Ji()},v.fd=function(n){return this.Ki(n)},v.Ti=function(n,s){throw ve(new bi)},v.Ui=function(n,s){throw ve(new bi)},v.gd=function(n){throw ve(new bi)},v.Mc=function(n){throw ve(new bi)},v.hd=function(n,s){throw ve(new bi)};var Jea=V(cl,"BasicEList/UnmodifiableEList",710);G(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),v.bd=function(n,s){Nan(this,n,b(s,44))},v.Fc=function(n){return xsn(this,b(n,44))},v.Jc=function(n){Vo(this,n)},v.Xb=function(n){return b(Ye(this.c,n),136)},v.Ti=function(n,s){return b(this.c.Ti(n,s),44)},v.Ui=function(n,s){Lan(this,n,b(s,44))},v.Lc=function(){return new Pr(null,new Gr(this,16))},v.gd=function(n){return b(this.c.gd(n),44)},v.hd=function(n,s){return jun(this,n,b(s,44))},v.jd=function(n){q2(this,n)},v.Nc=function(){return new Gr(this,16)},v.Oc=function(){return new Pr(null,new Gr(this,16))},v.cd=function(n,s){return this.c.cd(n,s)},v.Gc=function(n){return this.c.Gc(n)},v.$b=function(){this.c.$b()},v.Hc=function(n){return this.c.Hc(n)},v.Ic=function(n){return wU(this.c,n)},v._j=function(){var n,s,u;if(this.d==null){this.d=mt(iWe,gFe,66,2*this.f+1,0,1),u=this.e,this.f=0;for(s=this.c.Kc();s.e!=s.i.gc();)n=b(s.Yj(),136),fQ(this,n);this.e=u}},v.Fb=function(n){return R6t(this,n)},v.Hb=function(){return bLe(this.c)},v.dd=function(n){return this.c.dd(n)},v.ak=function(){this.c=new M4t(this)},v.dc=function(){return this.f==0},v.Kc=function(){return this.c.Kc()},v.ed=function(){return this.c.ed()},v.fd=function(n){return this.c.fd(n)},v.bk=function(){return nU(this)},v.ck=function(n,s,u){return new z6t(n,s,u)},v.dk=function(){return new P2t},v.Mc=function(n){return g9t(this,n)},v.gc=function(){return this.f},v.kd=function(n,s){return new Sy(this.c,n,s)},v.Pc=function(){return this.c.Pc()},v.Qc=function(n){return this.c.Qc(n)},v.Ib=function(){return h7e(this.c)},v.e=0,v.f=0;var eta=V(cl,"BasicEMap",721);G(1046,66,$m,M4t),v.Mi=function(n,s){unn(this,b(s,136))},v.Pi=function(n,s,u){var f;++(f=this,b(s,136),f).a.e},v.Qi=function(n,s){hnn(this,b(s,136))},v.Ri=function(n,s,u){usn(this,b(s,136),b(u,136))},v.Oi=function(n,s){lPt(this.a)};var tta=V(cl,"BasicEMap/1",1046);G(1047,66,$m,P2t),v.aj=function(n){return mt(Z6n,wKt,621,n,0,1)};var rta=V(cl,"BasicEMap/2",1047);G(1048,Mg,Bh,D4t),v.$b=function(){this.a.c.$b()},v.Hc=function(n){return qde(this.a,n)},v.Kc=function(){return this.a.f==0?(d6(),cV.a):new b3t(this.a)},v.Mc=function(n){var s=this.a.f;return tQ(this.a,n),this.a.f!=s},v.gc=function(){return this.a.f};var nta=V(cl,"BasicEMap/3",1048);G(1049,31,fx,P4t),v.$b=function(){this.a.c.$b()},v.Hc=function(n){return iVt(this.a,n)},v.Kc=function(){return this.a.f==0?(d6(),cV.a):new y3t(this.a)},v.gc=function(){return this.a.f};var ita=V(cl,"BasicEMap/4",1049);G(1050,Mg,Bh,B4t),v.$b=function(){this.a.c.$b()},v.Hc=function(n){var s,u,f,g,_,S,C,O,M;if(this.a.f>0&&He(n,44)){if(this.a._j(),O=b(n,44),C=O.ld(),g=C==null?0:Da(C),_=FIe(this.a,g),s=this.a.d[_],s){u=b(s.g,379),M=s.i;for(S=0;S"+this.c},v.a=0;var Z6n=V(cl,"BasicEMap/EntryImpl",621);G(546,1,{},OW);var uta=V(cl,"BasicEMap/View",546),cV;G(783,1,{}),v.Fb=function(n){return _8e((Hr(),Jo),n)},v.Hb=function(){return RLe((Hr(),Jo))},v.Ib=function(){return i_((Hr(),Jo))};var hta=V(cl,"ECollections/BasicEmptyUnmodifiableEList",783);G(1348,1,S1,B2t),v.Nb=function(n){Go(this,n)},v.Rb=function(n){throw ve(new bi)},v.Ob=function(){return!1},v.Sb=function(){return!1},v.Pb=function(){throw ve(new yc)},v.Tb=function(){return 0},v.Ub=function(){throw ve(new yc)},v.Vb=function(){return-1},v.Qb=function(){throw ve(new bi)},v.Wb=function(n){throw ve(new bi)};var dta=V(cl,"ECollections/BasicEmptyUnmodifiableEList/1",1348);G(1346,783,{20:1,16:1,15:1,61:1},kkt),v.bd=function(n,s){z3t()},v.Fc=function(n){return V3t()},v.cd=function(n,s){return H3t()},v.Gc=function(n){return q3t()},v.$b=function(){Y3t()},v.Hc=function(n){return!1},v.Ic=function(n){return!1},v.Jc=function(n){Vo(this,n)},v.Xb=function(n){return HRe((Hr(),n)),null},v.dd=function(n){return-1},v.dc=function(){return!0},v.Kc=function(){return this.a},v.ed=function(){return this.a},v.fd=function(n){return this.a},v.Ti=function(n,s){return W3t()},v.Ui=function(n,s){j3t()},v.Lc=function(){return new Pr(null,new Gr(this,16))},v.gd=function(n){return K3t()},v.Mc=function(n){return X3t()},v.hd=function(n,s){return Q3t()},v.gc=function(){return 0},v.jd=function(n){q2(this,n)},v.Nc=function(){return new Gr(this,16)},v.Oc=function(){return new Pr(null,new Gr(this,16))},v.kd=function(n,s){return Hr(),new Sy(Jo,n,s)},v.Pc=function(){return G6e((Hr(),Jo))},v.Qc=function(n){return Hr(),q8(Jo,n)};var fta=V(cl,"ECollections/EmptyUnmodifiableEList",1346);G(1347,783,{20:1,16:1,15:1,61:1,597:1},Akt),v.bd=function(n,s){z3t()},v.Fc=function(n){return V3t()},v.cd=function(n,s){return H3t()},v.Gc=function(n){return q3t()},v.$b=function(){Y3t()},v.Hc=function(n){return!1},v.Ic=function(n){return!1},v.Jc=function(n){Vo(this,n)},v.Xb=function(n){return HRe((Hr(),n)),null},v.dd=function(n){return-1},v.dc=function(){return!0},v.Kc=function(){return this.a},v.ed=function(){return this.a},v.fd=function(n){return this.a},v.Ti=function(n,s){return W3t()},v.Ui=function(n,s){j3t()},v.Lc=function(){return new Pr(null,new Gr(this,16))},v.gd=function(n){return K3t()},v.Mc=function(n){return X3t()},v.hd=function(n,s){return Q3t()},v.gc=function(){return 0},v.jd=function(n){q2(this,n)},v.Nc=function(){return new Gr(this,16)},v.Oc=function(){return new Pr(null,new Gr(this,16))},v.kd=function(n,s){return Hr(),new Sy(Jo,n,s)},v.Pc=function(){return G6e((Hr(),Jo))},v.Qc=function(n){return Hr(),q8(Jo,n)},v.bk=function(){return Hr(),Hr(),I1};var pta=V(cl,"ECollections/EmptyUnmodifiableEMap",1347),sWe=ns(cl,"Enumerator"),Ate;G(288,1,{288:1},Zfe),v.Fb=function(n){var s;if(this===n)return!0;if(!He(n,288))return!1;return s=b(n,288),this.f==s.f&&uun(this.i,s.i)&&xue(this.a,(this.f&256)!=0?(s.f&256)!=0?s.a:null:(s.f&256)!=0?null:s.a)&&xue(this.d,s.d)&&xue(this.g,s.g)&&xue(this.e,s.e)&&Mvn(this,s)},v.Hb=function(){return this.f},v.Ib=function(){return BVt(this)},v.f=0;var ror=0,nor=0,ior=0,aor=0,oWe=0,lWe=0,cWe=0,uWe=0,hWe=0,sor,Q9=0,Z9=0,oor=0,lor=0,Rte,dWe,gta=V(cl,"URI",288);G(1121,45,U4,Rkt),v.zc=function(n,s){return b(Vl(this,wi(n),b(s,288)),288)};var mta=V(cl,"URI/URICache",1121);G(506,66,$m,O2t,gK),v.Si=function(){return!0};var bta=V(cl,"UniqueEList",506);G(590,63,Lb,lX);var yta=V(cl,"WrappedException",590),Vi=ns(Hf,xKt),Kx=ns(Hf,CKt),_h=ns(Hf,kKt),Xx=ns(Hf,AKt),ig=ns(Hf,RKt),Ip=ns(Hf,"EClass"),tve=ns(Hf,"EDataType"),cor;G(1233,45,U4,Ikt),v.xc=function(n){return So(n)?mu(this,n):Jl(wl(this.f,n))};var vta=V(Hf,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233),Ite=ns(Hf,"EEnum"),zb=ns(Hf,IKt),Rl=ns(Hf,OKt),Op=ns(Hf,NKt),Np,NS=ns(Hf,LKt),Qx=ns(Hf,MKt);G(1042,1,{},I2t),v.Ib=function(){return"NIL"};var _ta=V(Hf,"EStructuralFeature/Internal/DynamicValueHolder/1",1042),uor;G(1041,45,U4,Okt),v.xc=function(n){return So(n)?mu(this,n):Jl(wl(this.f,n))};var Eta=V(Hf,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041),lh=ns(Hf,DKt),j5=ns(Hf,"EValidator/PatternMatcher"),fWe,pWe,an,ev,Zx,N_,hor,dor,por,L_,tv,M_,LS,Wg,gor,mor,Lp,rv,bor,nv,Jx,Ik,yl,yor,vor,MS,Ote=ns(qa,"FeatureMap/Entry");G(545,1,{76:1},Nj),v.Lk=function(){return this.a},v.md=function(){return this.b};var wta=V(sn,"BasicEObjectImpl/1",545);G(1040,1,rme,J5t),v.Fk=function(n){return Ahe(this.a,this.b,n)},v.Qj=function(){return DLt(this.a,this.b)},v.Wb=function(n){ROe(this.a,this.b,n)},v.Gk=function(){ohn(this.a,this.b)};var Sta=V(sn,"BasicEObjectImpl/4",1040);G(2081,1,{114:1}),v.Mk=function(n){this.e=n==0?_or:mt(ao,en,1,n,5,1)},v.li=function(n){return this.e[n]},v.mi=function(n,s){this.e[n]=s},v.ni=function(n){this.e[n]=null},v.Nk=function(){return this.c},v.Ok=function(){throw ve(new bi)},v.Pk=function(){throw ve(new bi)},v.Qk=function(){return this.d},v.Rk=function(){return this.e!=null},v.Sk=function(n){this.c=n},v.Tk=function(n){throw ve(new bi)},v.Uk=function(n){throw ve(new bi)},v.Vk=function(n){this.d=n};var _or,Tta=V(sn,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081);G(192,2081,{114:1},U0),v.Ok=function(){return this.a},v.Pk=function(){return this.b},v.Tk=function(n){this.a=n},v.Uk=function(n){this.b=n};var xta=V(sn,"BasicEObjectImpl/EPropertiesHolderImpl",192);G(516,99,Pjt,NW),v.uh=function(){return this.f},v.zh=function(){return this.k},v.Bh=function(n,s){this.g=n,this.i=s},v.Dh=function(){return(this.j&2)==0?this.ii():this.$h().Nk()},v.Fh=function(){return this.i},v.wh=function(){return(this.j&1)!=0},v.Ph=function(){return this.g},v.Vh=function(){return(this.j&4)!=0},v.$h=function(){return!this.k&&(this.k=new U0),this.k},v.ci=function(n){this.$h().Sk(n),n?this.j|=2:this.j&=-3},v.ei=function(n){this.$h().Uk(n),n?this.j|=4:this.j&=-5},v.ii=function(){return(Hv(),an).S},v.i=0,v.j=1;var Cta=V(sn,"EObjectImpl",516);G(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},T6e),v.li=function(n){return this.e[n]},v.mi=function(n,s){this.e[n]=s},v.ni=function(n){this.e[n]=null},v.Dh=function(){return this.d},v.Ih=function(n){return Za(this.d,n)},v.Kh=function(){return this.d},v.Oh=function(){return this.e!=null},v.$h=function(){return!this.k&&(this.k=new F2t),this.k},v.ci=function(n){this.d=n},v.hi=function(){var n;if(this.e==null)n=Un(this.d),this.e=n==0?Eor:mt(ao,en,1,n,5,1);return this},v.ji=function(){return 0};var Eor,kta=V(sn,"DynamicEObjectImpl",798);G(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},fOt),v.Fb=function(n){return this===n},v.Hb=function(){return ww(this)},v.ci=function(n){this.d=n,this.b=iG(n,"key"),this.c=iG(n,PD)},v.Bi=function(){var n;if(this.a==-1)n=Ghe(this,this.b),this.a=n==null?0:Da(n);return this.a},v.ld=function(){return Ghe(this,this.b)},v.md=function(){return Ghe(this,this.c)},v.Ci=function(n){this.a=n},v.Di=function(n){ROe(this,this.b,n)},v.nd=function(n){var s=Ghe(this,this.c);return ROe(this,this.c,n),s},v.a=0;var Ata=V(sn,"DynamicEObjectImpl/BasicEMapEntry",1522);G(1523,1,{114:1},F2t),v.Mk=function(n){throw ve(new bi)},v.li=function(n){throw ve(new bi)},v.mi=function(n,s){throw ve(new bi)},v.ni=function(n){throw ve(new bi)},v.Nk=function(){throw ve(new bi)},v.Ok=function(){return this.a},v.Pk=function(){return this.b},v.Qk=function(){return this.c},v.Rk=function(){throw ve(new bi)},v.Sk=function(n){throw ve(new bi)},v.Tk=function(n){this.a=n},v.Uk=function(n){this.b=n},v.Vk=function(n){this.c=n};var Rta=V(sn,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523);G(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},kAe),v.Ah=function(n){return eMe(this,n)},v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.d;case 2:return u?(!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),this.b):(!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),nU(this.b));case 3:return ULt(this);case 4:return!this.a&&(this.a=new Os(I_,this,4)),this.a;case 5:return!this.c&&(this.c=new c4(I_,this,5)),this.c}return Mf(this,n-Un((Vr(),ev)),jr((f=b(cn(this,16),29),!f?ev:f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 3:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?eMe(this,u):this.Cb.Th(this,-1-g,null,u))),U6e(this,b(n,155),u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),ev):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),ev)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 2:return!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),Qj(this.b,n,u);case 3:return U6e(this,null,u);case 4:return!this.a&&(this.a=new Os(I_,this,4)),ol(this.a,n,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),ev):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),ev)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!ULt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Nf(this,n-Un((Vr(),ev)),jr((s=b(cn(this,16),29),!s?ev:s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:Qcn(this,wi(s));return;case 2:!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),LX(this.b,s);return;case 3:xzt(this,b(s,155));return;case 4:!this.a&&(this.a=new Os(I_,this,4)),ni(this.a),!this.a&&(this.a=new Os(I_,this,4)),ps(this.a,b(s,16));return;case 5:!this.c&&(this.c=new c4(I_,this,5)),ni(this.c),!this.c&&(this.c=new c4(I_,this,5)),ps(this.c,b(s,16));return}Ff(this,n-Un((Vr(),ev)),jr((u=b(cn(this,16),29),!u?ev:u),n),s)},v.ii=function(){return Vr(),ev},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:tLe(this,null);return;case 2:!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),this.b.c.$b();return;case 3:xzt(this,null);return;case 4:!this.a&&(this.a=new Os(I_,this,4)),ni(this.a);return;case 5:!this.c&&(this.c=new c4(I_,this,5)),ni(this.c);return}Bf(this,n-Un((Vr(),ev)),jr((s=b(cn(this,16),29),!s?ev:s),n))},v.Ib=function(){return RBt(this)},v.d=null;var Ita=V(sn,"EAnnotationImpl",519);G(141,721,mFe,Mh),v.Gi=function(n,s){gan(this,n,b(s,44))},v.Wk=function(n,s){return bon(this,b(n,44),s)},v.$i=function(n){return b(b(this.c,71).$i(n),136)},v.Ii=function(){return b(this.c,71).Ii()},v.Ji=function(){return b(this.c,71).Ji()},v.Ki=function(n){return b(this.c,71).Ki(n)},v.Xk=function(n,s){return Qj(this,n,s)},v.Fk=function(n){return b(this.c,79).Fk(n)},v.ak=function(){},v.Qj=function(){return b(this.c,79).Qj()},v.ck=function(n,s,u){var f=b(Wd(this.b).wi().si(this.b),136);return f.Ci(n),f.Di(s),f.nd(u),f},v.dk=function(){return new c5e(this)},v.Wb=function(n){LX(this,n)},v.Gk=function(){b(this.c,79).Gk()};var Ota=V(qa,"EcoreEMap",141);G(165,141,mFe,Id),v._j=function(){var n,s,u,f,g,_;if(this.d==null){_=mt(iWe,gFe,66,2*this.f+1,0,1);for(u=this.c.Kc();u.e!=u.i.gc();)s=b(u.Yj(),136),f=s.Bi(),g=(f&sa)%_.length,n=_[g],!n&&(n=_[g]=new c5e(this)),n.Fc(s);this.d=_}};var Nta=V(sn,"EAnnotationImpl/1",165);G(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),v.Lh=function(n,s,u){var f,g;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nn(),(this.Bb&256)!=0?!0:!1;case 3:return nn(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return nn(),this.Jk()?!0:!1;case 7:return nn(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q}return Mf(this,n-Un(this.ii()),jr((f=b(cn(this,16),29),!f?this.ii():f),n),s,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Uue(this,u)}return g=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},v.Wh=function(n){var s,u;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Iw(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Iw(this.q).i==0)}return Nf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:this.ui(wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:this.Zk(b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return}Ff(this,n-Un(this.ii()),jr((u=b(cn(this,16),29),!u?this.ii():u),n),s)},v.ii=function(){return Vr(),vor},v.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:this.ui(null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:this.Zk(1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return}Bf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.pi=function(){vp(this),this.Bb|=1},v.Hk=function(){return vp(this)},v.Ik=function(){return this.t},v.Jk=function(){var n;return n=this.t,n>1||n==-1},v.Si=function(){return(this.Bb&512)!=0},v.Yk=function(n,s){return jLe(this,n,s)},v.Zk=function(n){KT(this,n)},v.Ib=function(){return h8e(this)},v.s=0,v.t=1;var Lta=V(sn,"ETypedElementImpl",292);G(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),v.Ah=function(n){return y$t(this,n)},v.Lh=function(n,s,u){var f,g;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nn(),(this.Bb&256)!=0?!0:!1;case 3:return nn(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return nn(),this.Jk()?!0:!1;case 7:return nn(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return nn(),(this.Bb&u0)!=0?!0:!1;case 11:return nn(),(this.Bb&wx)!=0?!0:!1;case 12:return nn(),(this.Bb&gx)!=0?!0:!1;case 13:return this.j;case 14:return _O(this);case 15:return nn(),(this.Bb&$h)!=0?!0:!1;case 16:return nn(),(this.Bb&Im)!=0?!0:!1;case 17:return GT(this)}return Mf(this,n-Un(this.ii()),jr((f=b(cn(this,16),29),!f?this.ii():f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 17:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?y$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,17,u)}return _=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),_.wk().zk(this,rh(this),s-Un(this.ii()),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Uue(this,u);case 17:return Jd(this,null,17,u)}return g=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},v.Wh=function(n){var s,u;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Iw(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Iw(this.q).i==0);case 10:return(this.Bb&u0)==0;case 11:return(this.Bb&wx)!=0;case 12:return(this.Bb&gx)!=0;case 13:return this.j!=null;case 14:return _O(this)!=null;case 15:return(this.Bb&$h)!=0;case 16:return(this.Bb&Im)!=0;case 17:return!!GT(this)}return Nf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:fhe(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:this.Zk(b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 10:nO(this,er(Jt(s)));return;case 11:sO(this,er(Jt(s)));return;case 12:iO(this,er(Jt(s)));return;case 13:URe(this,wi(s));return;case 15:aO(this,er(Jt(s)));return;case 16:oO(this,er(Jt(s)));return}Ff(this,n-Un(this.ii()),jr((u=b(cn(this,16),29),!u?this.ii():u),n),s)},v.ii=function(){return Vr(),yor},v.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,90)&&sx(fd(b(this.Cb,90)),4),zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:this.Zk(1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 10:nO(this,!0);return;case 11:sO(this,!1);return;case 12:iO(this,!1);return;case 13:this.i=null,kX(this,null);return;case 15:aO(this,!1);return;case 16:oO(this,!1);return}Bf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.pi=function(){S6(Hl((Ph(),Yo),this)),vp(this),this.Bb|=1},v.pk=function(){return this.f},v.ik=function(){return _O(this)},v.qk=function(){return GT(this)},v.uk=function(){return null},v.$k=function(){return this.k},v.Lj=function(){return this.n},v.vk=function(){return EQ(this)},v.wk=function(){var n,s,u,f,g,_,S,C,O;if(!this.p)u=GT(this),(u.i==null&&Rm(u),u.i).length,f=this.uk(),!!f&&Un(GT(f)),g=vp(this),S=g.kk(),n=!S?null:(S.i&1)!=0?S==wd?_s:S==ci?qo:S==tC?rN:S==xo?Bs:S==P_?fS:S==Mk?pS:S==Gh?C5:WD:S,s=_O(this),C=g.ik(),hyn(this),(this.Bb&Im)!=0&&(!!(_=oMe((Ph(),Yo),u))&&_!=this||!!(_=HA(Hl(Yo,this))))?this.p=new tRt(this,_):this.Jk()?this.al()?!f?(this.Bb&$h)!=0?!n?this.bl()?this.p=new wy(42,this):this.p=new wy(0,this):n==pE?this.p=new _y(50,Jsr,this):this.bl()?this.p=new _y(43,n,this):this.p=new _y(1,n,this):!n?this.bl()?this.p=new wy(44,this):this.p=new wy(2,this):n==pE?this.p=new _y(41,Jsr,this):this.bl()?this.p=new _y(45,n,this):this.p=new _y(3,n,this):(this.Bb&$h)!=0?!n?this.bl()?this.p=new V2(46,this,f):this.p=new V2(4,this,f):this.bl()?this.p=new F2(47,n,this,f):this.p=new F2(5,n,this,f):!n?this.bl()?this.p=new V2(48,this,f):this.p=new V2(6,this,f):this.bl()?this.p=new F2(49,n,this,f):this.p=new F2(7,n,this,f):He(g,156)?n==Ote?this.p=new wy(40,this):(this.Bb&512)!=0?(this.Bb&$h)!=0?!n?this.p=new wy(8,this):this.p=new _y(9,n,this):!n?this.p=new wy(10,this):this.p=new _y(11,n,this):(this.Bb&$h)!=0?!n?this.p=new wy(12,this):this.p=new _y(13,n,this):!n?this.p=new wy(14,this):this.p=new _y(15,n,this):!f?this.bl()?(this.Bb&$h)!=0?!n?this.p=new wy(16,this):this.p=new _y(17,n,this):!n?this.p=new wy(18,this):this.p=new _y(19,n,this):(this.Bb&$h)!=0?!n?this.p=new wy(20,this):this.p=new _y(21,n,this):!n?this.p=new wy(22,this):this.p=new _y(23,n,this):(O=f.t,O>1||O==-1?this.bl()?(this.Bb&$h)!=0?!n?this.p=new V2(24,this,f):this.p=new F2(25,n,this,f):!n?this.p=new V2(26,this,f):this.p=new F2(27,n,this,f):(this.Bb&$h)!=0?!n?this.p=new V2(28,this,f):this.p=new F2(29,n,this,f):!n?this.p=new V2(30,this,f):this.p=new F2(31,n,this,f):this.bl()?(this.Bb&$h)!=0?!n?this.p=new V2(32,this,f):this.p=new F2(33,n,this,f):!n?this.p=new V2(34,this,f):this.p=new F2(35,n,this,f):(this.Bb&$h)!=0?!n?this.p=new V2(36,this,f):this.p=new F2(37,n,this,f):!n?this.p=new V2(38,this,f):this.p=new F2(39,n,this,f)):this._k()?this.bl()?this.p=new V6t(b(g,29),this,f):this.p=new kOe(b(g,29),this,f):He(g,156)?n==Ote?this.p=new wy(40,this):(this.Bb&$h)!=0?!n?this.p=new tLt(b(g,156),s,C,this):this.p=new zOt(s,C,this,(Yde(),S==ci?EWe:S==wd?mWe:S==P_?wWe:S==tC?_We:S==xo?vWe:S==Mk?SWe:S==Gh?bWe:S==Qf?yWe:ive)):!n?this.p=new eLt(b(g,156),s,C,this):this.p=new GOt(s,C,this,(Yde(),S==ci?EWe:S==wd?mWe:S==P_?wWe:S==tC?_We:S==xo?vWe:S==Mk?SWe:S==Gh?bWe:S==Qf?yWe:ive)):this.al()?!f?(this.Bb&$h)!=0?this.bl()?this.p=new GIt(b(g,29),this):this.p=new CIe(b(g,29),this):this.bl()?this.p=new UIt(b(g,29),this):this.p=new aue(b(g,29),this):(this.Bb&$h)!=0?this.bl()?this.p=new q6t(b(g,29),this,f):this.p=new d6e(b(g,29),this,f):this.bl()?this.p=new H6t(b(g,29),this,f):this.p=new yue(b(g,29),this,f):this.bl()?!f?(this.Bb&$h)!=0?this.p=new zIt(b(g,29),this):this.p=new kIe(b(g,29),this):(this.Bb&$h)!=0?this.p=new Y6t(b(g,29),this,f):this.p=new u6e(b(g,29),this,f):!f?(this.Bb&$h)!=0?this.p=new VIt(b(g,29),this):this.p=new pK(b(g,29),this):(this.Bb&$h)!=0?this.p=new W6t(b(g,29),this,f):this.p=new h6e(b(g,29),this,f);return this.p},v.rk=function(){return(this.Bb&u0)!=0},v._k=function(){return!1},v.al=function(){return!1},v.sk=function(){return(this.Bb&Im)!=0},v.xk=function(){return zhe(this)},v.bl=function(){return!1},v.tk=function(){return(this.Bb&$h)!=0},v.cl=function(n){this.k=n},v.ui=function(n){fhe(this,n)},v.Ib=function(){return zQ(this)},v.e=!1,v.n=0;var Mta=V(sn,"EStructuralFeatureImpl",462);G(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},$le),v.Lh=function(n,s,u){var f,g;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nn(),(this.Bb&256)!=0?!0:!1;case 3:return nn(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return nn(),a8e(this)?!0:!1;case 7:return nn(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return nn(),(this.Bb&u0)!=0?!0:!1;case 11:return nn(),(this.Bb&wx)!=0?!0:!1;case 12:return nn(),(this.Bb&gx)!=0?!0:!1;case 13:return this.j;case 14:return _O(this);case 15:return nn(),(this.Bb&$h)!=0?!0:!1;case 16:return nn(),(this.Bb&Im)!=0?!0:!1;case 17:return GT(this);case 18:return nn(),(this.Bb&Hc)!=0?!0:!1;case 19:if(s)return dde(this);return i8t(this)}return Mf(this,n-Un((Vr(),Zx)),jr((f=b(cn(this,16),29),!f?Zx:f),n),s,u)},v.Wh=function(n){var s,u;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a8e(this);case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Iw(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Iw(this.q).i==0);case 10:return(this.Bb&u0)==0;case 11:return(this.Bb&wx)!=0;case 12:return(this.Bb&gx)!=0;case 13:return this.j!=null;case 14:return _O(this)!=null;case 15:return(this.Bb&$h)!=0;case 16:return(this.Bb&Im)!=0;case 17:return!!GT(this);case 18:return(this.Bb&Hc)!=0;case 19:return!!i8t(this)}return Nf(this,n-Un((Vr(),Zx)),jr((s=b(cn(this,16),29),!s?Zx:s),n))},v.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:fhe(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:E3t(this,b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 10:nO(this,er(Jt(s)));return;case 11:sO(this,er(Jt(s)));return;case 12:iO(this,er(Jt(s)));return;case 13:URe(this,wi(s));return;case 15:aO(this,er(Jt(s)));return;case 16:oO(this,er(Jt(s)));return;case 18:Fde(this,er(Jt(s)));return}Ff(this,n-Un((Vr(),Zx)),jr((u=b(cn(this,16),29),!u?Zx:u),n),s)},v.ii=function(){return Vr(),Zx},v.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,90)&&sx(fd(b(this.Cb,90)),4),zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:this.b=0,KT(this,1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 10:nO(this,!0);return;case 11:sO(this,!1);return;case 12:iO(this,!1);return;case 13:this.i=null,kX(this,null);return;case 15:aO(this,!1);return;case 16:oO(this,!1);return;case 18:Fde(this,!1);return}Bf(this,n-Un((Vr(),Zx)),jr((s=b(cn(this,16),29),!s?Zx:s),n))},v.pi=function(){dde(this),S6(Hl((Ph(),Yo),this)),vp(this),this.Bb|=1},v.Jk=function(){return a8e(this)},v.Yk=function(n,s){return this.b=0,this.a=null,jLe(this,n,s)},v.Zk=function(n){E3t(this,n)},v.Ib=function(){var n;if((this.Db&64)!=0)return zQ(this);return n=new pp(zQ(this)),n.a+=" (iD: ",my(n,(this.Bb&Hc)!=0),n.a+=")",n.a},v.b=0;var Dta=V(sn,"EAttributeImpl",331);G(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),v.dl=function(n){return n.Dh()==this},v.Ah=function(n){return bfe(this,n)},v.Bh=function(n,s){this.w=null,this.Db=s<<16|this.Db&255,this.Cb=n},v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Qw(this);case 4:return this.ik();case 5:return this.F;case 6:if(s)return Wd(this);return C6(this);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),this.A}return Mf(this,n-Un(this.ii()),jr((f=b(cn(this,16),29),!f?this.ii():f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 6:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?bfe(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,6,u)}return _=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),_.wk().zk(this,rh(this),s-Un(this.ii()),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 6:return Jd(this,null,6,u);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),ol(this.A,n,u)}return g=b(jr((f=b(cn(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Qw(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!C6(this);case 7:return!!this.A&&this.A.i!=0}return Nf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:VK(this,wi(s));return;case 2:qce(this,wi(s));return;case 5:kO(this,wi(s));return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A),!this.A&&(this.A=new Ih(lh,this,7)),ps(this.A,b(s,16));return}Ff(this,n-Un(this.ii()),jr((u=b(cn(this,16),29),!u?this.ii():u),n),s)},v.ii=function(){return Vr(),hor},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,184)&&(b(this.Cb,184).tb=null),zu(this,null);return;case 2:eO(this,null),$6(this,this.D);return;case 5:kO(this,null);return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A);return}Bf(this,n-Un(this.ii()),jr((s=b(cn(this,16),29),!s?this.ii():s),n))},v.hk=function(){var n;return this.G==-1&&(this.G=(n=Wd(this),n?Py(n.vi(),this):-1)),this.G},v.ik=function(){return null},v.jk=function(){return Wd(this)},v.el=function(){return this.v},v.kk=function(){return Qw(this)},v.lk=function(){return this.D!=null?this.D:this.B},v.mk=function(){return this.F},v.fk=function(n){return ope(this,n)},v.fl=function(n){this.v=n},v.gl=function(n){z9t(this,n)},v.hl=function(n){this.C=n},v.ui=function(n){VK(this,n)},v.Ib=function(){return QX(this)},v.C=null,v.D=null,v.G=-1;var Pta=V(sn,"EClassifierImpl",364);G(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},OAe),v.dl=function(n){return eon(this,n.Dh())},v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Qw(this);case 4:return null;case 5:return this.F;case 6:if(s)return Wd(this);return C6(this);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),this.A;case 8:return nn(),(this.Bb&256)!=0?!0:!1;case 9:return nn(),(this.Bb&512)!=0?!0:!1;case 10:return tc(this);case 11:return!this.q&&(this.q=new kt(Op,this,11,10)),this.q;case 12:return P4(this);case 13:return uD(this);case 14:return uD(this),this.r;case 15:return P4(this),this.k;case 16:return jMe(this);case 17:return hpe(this);case 18:return Rm(this);case 19:return LQ(this);case 20:return P4(this),this.o;case 21:return!this.s&&(this.s=new kt(_h,this,21,17)),this.s;case 22:return nu(this);case 23:return Qfe(this)}return Mf(this,n-Un((Vr(),N_)),jr((f=b(cn(this,16),29),!f?N_:f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 6:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?bfe(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,6,u);case 11:return!this.q&&(this.q=new kt(Op,this,11,10)),Vu(this.q,n,u);case 21:return!this.s&&(this.s=new kt(_h,this,21,17)),Vu(this.s,n,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),N_):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),N_)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 6:return Jd(this,null,6,u);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),ol(this.A,n,u);case 11:return!this.q&&(this.q=new kt(Op,this,11,10)),ol(this.q,n,u);case 21:return!this.s&&(this.s=new kt(_h,this,21,17)),ol(this.s,n,u);case 22:return ol(nu(this),n,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),N_):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),N_)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Qw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!C6(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&nu(this.u.a).i!=0&&!(!!this.n&&sfe(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return P4(this).i!=0;case 13:return uD(this).i!=0;case 14:return uD(this),this.r.i!=0;case 15:return P4(this),this.k.i!=0;case 16:return jMe(this).i!=0;case 17:return hpe(this).i!=0;case 18:return Rm(this).i!=0;case 19:return LQ(this).i!=0;case 20:return P4(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&sfe(this.n);case 23:return Qfe(this).i!=0}return Nf(this,n-Un((Vr(),N_)),jr((s=b(cn(this,16),29),!s?N_:s),n))},v.Zh=function(n){var s=this.i==null||!!this.q&&this.q.i!=0?null:iG(this,n);return s?s:IDe(this,n)},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:VK(this,wi(s));return;case 2:qce(this,wi(s));return;case 5:kO(this,wi(s));return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A),!this.A&&(this.A=new Ih(lh,this,7)),ps(this.A,b(s,16));return;case 8:KLe(this,er(Jt(s)));return;case 9:XLe(this,er(Jt(s)));return;case 10:fD(tc(this)),ps(tc(this),b(s,16));return;case 11:!this.q&&(this.q=new kt(Op,this,11,10)),ni(this.q),!this.q&&(this.q=new kt(Op,this,11,10)),ps(this.q,b(s,16));return;case 21:!this.s&&(this.s=new kt(_h,this,21,17)),ni(this.s),!this.s&&(this.s=new kt(_h,this,21,17)),ps(this.s,b(s,16));return;case 22:ni(nu(this)),ps(nu(this),b(s,16));return}Ff(this,n-Un((Vr(),N_)),jr((u=b(cn(this,16),29),!u?N_:u),n),s)},v.ii=function(){return Vr(),N_},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,184)&&(b(this.Cb,184).tb=null),zu(this,null);return;case 2:eO(this,null),$6(this,this.D);return;case 5:kO(this,null);return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A);return;case 8:KLe(this,!1);return;case 9:XLe(this,!1);return;case 10:!!this.u&&fD(this.u);return;case 11:!this.q&&(this.q=new kt(Op,this,11,10)),ni(this.q);return;case 21:!this.s&&(this.s=new kt(_h,this,21,17)),ni(this.s);return;case 22:!!this.n&&ni(this.n);return}Bf(this,n-Un((Vr(),N_)),jr((s=b(cn(this,16),29),!s?N_:s),n))},v.pi=function(){var n,s;if(P4(this),uD(this),jMe(this),hpe(this),Rm(this),LQ(this),Qfe(this),v8(Ccn(fd(this))),this.s)for(n=0,s=this.s.i;n=0;--s)Ye(this,s);return _7e(this,n)},v.Gk=function(){ni(this)},v.Zi=function(n,s){return u9t(this,n,s)};var $ta=V(qa,"EcoreEList",632);G(505,632,dc,P$),v.Li=function(){return!1},v.Lj=function(){return this.c},v.Mj=function(){return!1},v.ol=function(){return!0},v.Si=function(){return!0},v.Wi=function(n,s){return s},v.Yi=function(){return!1},v.c=0;var Uta=V(qa,"EObjectEList",505);G(83,505,dc,Os),v.Mj=function(){return!0},v.ml=function(){return!1},v.al=function(){return!0};var Gta=V(qa,"EObjectContainmentEList",83);G(555,83,dc,zj),v.Ni=function(){this.b=!0},v.Qj=function(){return this.b},v.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.b,this.b=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.b=!1},v.b=!1;var zta=V(qa,"EObjectContainmentEList/Unsettable",555);G(1161,555,dc,$Ot),v.Ti=function(n,s){var u,f;return u=b(F8(this,n,s),89),Ad(this.e)&&XI(this,new iU(this.a,7,(Vr(),dor),$t(s),(f=u.c,He(f,90)?b(f,29):Lp),n)),u},v.Uj=function(n,s){return Wyn(this,b(n,89),s)},v.Vj=function(n,s){return Yyn(this,b(n,89),s)},v.Wj=function(n,s,u){return X2n(this,b(n,89),b(s,89),u)},v.Ij=function(n,s,u,f,g){switch(n){case 3:return f8(this,n,s,u,f,this.i>1);case 5:return f8(this,n,s,u,f,this.i-b(u,15).gc()>0);default:return new wb(this.e,n,this.c,s,u,f,!0)}},v.Tj=function(){return!0},v.Qj=function(){return sfe(this)},v.Gk=function(){ni(this)};var Vta=V(sn,"EClassImpl/1",1161);G(1175,1174,pFe),v.dj=function(n){var s,u,f,g,_,S,C;if(u=n.gj(),u!=8){if(f=Avn(n),f==0)switch(u){case 1:case 9:{if(C=n.kj(),C!=null)s=fd(b(C,482)),!s.c&&(s.c=new VI),hX(s.c,n.jj());if(S=n.ij(),S!=null){if(g=b(S,482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new VI),ii(s.c,b(n.jj(),29))}break}case 3:{if(S=n.ij(),S!=null){if(g=b(S,482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new VI),ii(s.c,b(n.jj(),29))}break}case 5:{if(S=n.ij(),S!=null){for(_=b(S,16).Kc();_.Ob();)if(g=b(_.Pb(),482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new VI),ii(s.c,b(n.jj(),29))}break}case 4:{if(C=n.kj(),C!=null){if(g=b(C,482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new VI),hX(s.c,n.jj())}break}case 6:{if(C=n.kj(),C!=null){for(_=b(C,16).Kc();_.Ob();)if(g=b(_.Pb(),482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new VI),hX(s.c,n.jj())}break}}this.ql(f)}},v.ql=function(n){hVt(this,n)},v.b=63;var Hta=V(sn,"ESuperAdapter",1175);G(1176,1175,pFe,$4t),v.ql=function(n){sx(this,n)};var qta=V(sn,"EClassImpl/10",1176);G(1165,710,dc),v.Ei=function(n,s){return Rfe(this,n,s)},v.Fi=function(n){return e$t(this,n)},v.Gi=function(n,s){OU(this,n,s)},v.Hi=function(n){eU(this,n)},v.$i=function(n){return xNe(this,n)},v.Xi=function(n,s){return Vhe(this,n,s)},v.Wk=function(n,s){throw ve(new bi)},v.Ii=function(){return new IA(this)},v.Ji=function(){return new T$(this)},v.Ki=function(n){return mU(this,n)},v.Xk=function(n,s){throw ve(new bi)},v.Fk=function(n){return this},v.Qj=function(){return this.i!=0},v.Wb=function(n){throw ve(new bi)},v.Gk=function(){throw ve(new bi)};var Yta=V(qa,"EcoreEList/UnmodifiableEList",1165);G(328,1165,dc,n4),v.Yi=function(){return!1};var Wta=V(qa,"EcoreEList/UnmodifiableEList/FastCompare",328);G(1168,328,dc,DPt),v.dd=function(n){var s,u,f;if(He(n,179)){if(s=b(n,179),u=s.Lj(),u!=-1){for(f=this.i;u4)if(this.fk(n)){if(this.al()){if(f=b(n,54),u=f.Eh(),C=u==this.b&&(this.ml()?f.yh(f.Fh(),b(jr(dh(this.b),this.Lj()).Hk(),29).kk())==El(b(jr(dh(this.b),this.Lj()),19)).n:-1-f.Fh()==this.Lj()),this.nl()&&!C&&!u&&!!f.Jh()){for(g=0;g1||f==-1);else return!1},v.ml=function(){var n,s,u;if(s=jr(dh(this.b),this.Lj()),He(s,102))return n=b(s,19),u=El(n),!!u;else return!1},v.nl=function(){var n,s;if(s=jr(dh(this.b),this.Lj()),He(s,102))return n=b(s,19),(n.Bb&ml)!=0;else return!1},v.dd=function(n){var s,u,f,g;if(f=this.zj(n),f>=0)return f;if(this.ol()){for(u=0,g=this.Ej();u=0;--n)pG(this,n,this.xj(n));return this.Fj()},v.Qc=function(n){var s;if(this.nl())for(s=this.Ej()-1;s>=0;--s)pG(this,s,this.xj(s));return this.Gj(n)},v.Gk=function(){fD(this)},v.Zi=function(n,s){return G8t(this,n,s)};var ara=V(qa,"DelegatingEcoreEList",756);G(1171,756,yFe,t6t),v.qj=function(n,s){Tsn(this,n,b(s,29))},v.rj=function(n){dan(this,b(n,29))},v.xj=function(n){var s,u;return s=b(Ye(nu(this.a),n),89),u=s.c,He(u,90)?b(u,29):(Vr(),Lp)},v.Cj=function(n){var s,u;return s=b(cx(nu(this.a),n),89),u=s.c,He(u,90)?b(u,29):(Vr(),Lp)},v.Dj=function(n,s){return E_n(this,n,b(s,29))},v.Li=function(){return!1},v.Ij=function(n,s,u,f,g){return null},v.sj=function(){return new z4t(this)},v.tj=function(){ni(nu(this.a))},v.uj=function(n){return OBt(this,n)},v.vj=function(n){var s,u;for(u=n.Kc();u.Ob();)if(s=u.Pb(),!OBt(this,s))return!1;return!0},v.wj=function(n){var s,u,f;if(He(n,15)){if(f=b(n,15),f.gc()==nu(this.a).i){for(s=f.Kc(),u=new kn(this);s.Ob();)if(nt(s.Pb())!==nt(Dn(u)))return!1;return!0}}return!1},v.yj=function(){var n,s,u,f,g;u=1;for(s=new kn(nu(this.a));s.e!=s.i.gc();)n=b(Dn(s),89),f=(g=n.c,He(g,90)?b(g,29):(Vr(),Lp)),u=31*u+(!f?0:ww(f));return u},v.zj=function(n){var s,u,f,g;f=0;for(u=new kn(nu(this.a));u.e!=u.i.gc();){if(s=b(Dn(u),89),nt(n)===nt((g=s.c,He(g,90)?b(g,29):(Vr(),Lp))))return f;++f}return-1},v.Aj=function(){return nu(this.a).i==0},v.Bj=function(){return null},v.Ej=function(){return nu(this.a).i},v.Fj=function(){var n,s,u,f,g,_;_=nu(this.a).i,g=mt(ao,en,1,_,5,1),u=0;for(s=new kn(nu(this.a));s.e!=s.i.gc();)n=b(Dn(s),89),g[u++]=(f=n.c,He(f,90)?b(f,29):(Vr(),Lp));return g},v.Gj=function(n){var s,u,f,g,_,S,C;if(C=nu(this.a).i,n.lengthC&&ls(n,C,null),f=0;for(u=new kn(nu(this.a));u.e!=u.i.gc();)s=b(Dn(u),89),_=(S=s.c,He(S,90)?b(S,29):(Vr(),Lp)),ls(n,f++,_);return n},v.Hj=function(){var n,s,u,f,g;g=new gy,g.a+="[",n=nu(this.a);for(s=0,f=nu(this.a).i;s>16,g>=0?bfe(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,6,u);case 9:return!this.a&&(this.a=new kt(zb,this,9,5)),Vu(this.a,n,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),L_):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),L_)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 6:return Jd(this,null,6,u);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),ol(this.A,n,u);case 9:return!this.a&&(this.a=new kt(zb,this,9,5)),ol(this.a,n,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),L_):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),L_)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Qw(this);case 4:return!!BLe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!C6(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Nf(this,n-Un((Vr(),L_)),jr((s=b(cn(this,16),29),!s?L_:s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:VK(this,wi(s));return;case 2:qce(this,wi(s));return;case 5:kO(this,wi(s));return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A),!this.A&&(this.A=new Ih(lh,this,7)),ps(this.A,b(s,16));return;case 8:qX(this,er(Jt(s)));return;case 9:!this.a&&(this.a=new kt(zb,this,9,5)),ni(this.a),!this.a&&(this.a=new kt(zb,this,9,5)),ps(this.a,b(s,16));return}Ff(this,n-Un((Vr(),L_)),jr((u=b(cn(this,16),29),!u?L_:u),n),s)},v.ii=function(){return Vr(),L_},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,184)&&(b(this.Cb,184).tb=null),zu(this,null);return;case 2:eO(this,null),$6(this,this.D);return;case 5:kO(this,null);return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A);return;case 8:qX(this,!0);return;case 9:!this.a&&(this.a=new kt(zb,this,9,5)),ni(this.a);return}Bf(this,n-Un((Vr(),L_)),jr((s=b(cn(this,16),29),!s?L_:s),n))},v.pi=function(){var n,s;if(this.a)for(n=0,s=this.a.i;n>16==5?b(this.Cb,685):null}return Mf(this,n-Un((Vr(),tv)),jr((f=b(cn(this,16),29),!f?tv:f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 5:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?k$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,5,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),tv):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),tv)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 5:return Jd(this,null,5,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),tv):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),tv)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5?b(this.Cb,685):null)}return Nf(this,n-Un((Vr(),tv)),jr((s=b(cn(this,16),29),!s?tv:s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:Khe(this,b(s,17).a);return;case 3:TGt(this,b(s,2039));return;case 4:Qhe(this,wi(s));return}Ff(this,n-Un((Vr(),tv)),jr((u=b(cn(this,16),29),!u?tv:u),n),s)},v.ii=function(){return Vr(),tv},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:Khe(this,0);return;case 3:TGt(this,null);return;case 4:Qhe(this,null);return}Bf(this,n-Un((Vr(),tv)),jr((s=b(cn(this,16),29),!s?tv:s),n))},v.Ib=function(){var n;return n=this.c,n==null?this.zb:n},v.b=null,v.c=null,v.d=0;var dra=V(sn,"EEnumLiteralImpl",582),J6n=ns(sn,"EFactoryImpl/InternalEDateTimeFormat");G(499,1,{2114:1},YF);var fra=V(sn,"EFactoryImpl/1ClientInternalEDateTimeFormat",499);G(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},ow),v.Ch=function(n,s,u){var f;if(u=Jd(this,n,s,u),!!this.e&&He(n,179))f=NQ(this,this.e),f!=this.c&&(u=AO(this,f,u));return u},v.Lh=function(n,s,u){var f;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new Os(Rl,this,1)),this.d;case 2:if(s)return qQ(this);return this.c;case 3:return this.b;case 4:return this.e;case 5:if(s)return cfe(this);return this.a}return Mf(this,n-Un((Vr(),LS)),jr((f=b(cn(this,16),29),!f?LS:f),n),s,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return yBt(this,null,u);case 1:return!this.d&&(this.d=new Os(Rl,this,1)),ol(this.d,n,u);case 3:return vBt(this,null,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),LS):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),LS)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Nf(this,n-Un((Vr(),LS)),jr((s=b(cn(this,16),29),!s?LS:s),n))},v.bi=function(n,s){var u;switch(n){case 0:Y$t(this,b(s,89));return;case 1:!this.d&&(this.d=new Os(Rl,this,1)),ni(this.d),!this.d&&(this.d=new Os(Rl,this,1)),ps(this.d,b(s,16));return;case 3:gMe(this,b(s,89));return;case 4:MMe(this,b(s,850));return;case 5:M6(this,b(s,142));return}Ff(this,n-Un((Vr(),LS)),jr((u=b(cn(this,16),29),!u?LS:u),n),s)},v.ii=function(){return Vr(),LS},v.ki=function(n){var s;switch(n){case 0:Y$t(this,null);return;case 1:!this.d&&(this.d=new Os(Rl,this,1)),ni(this.d);return;case 3:gMe(this,null);return;case 4:MMe(this,null);return;case 5:M6(this,null);return}Bf(this,n-Un((Vr(),LS)),jr((s=b(cn(this,16),29),!s?LS:s),n))},v.Ib=function(){var n=new Vd(o0(this));return n.a+=" (expression: ",bpe(this,n),n.a+=")",n.a};var gWe,pra=V(sn,"EGenericTypeImpl",248);G(2067,2062,JZ),v.Gi=function(n,s){ZIt(this,n,s)},v.Wk=function(n,s){return ZIt(this,this.gc(),n),s},v.$i=function(n){return Gf(this.pj(),n)},v.Ii=function(){return this.Ji()},v.pj=function(){return new Y4t(this)},v.Ji=function(){return this.Ki(0)},v.Ki=function(n){return this.pj().fd(n)},v.Xk=function(n,s){return JT(this,n,!0),s},v.Ti=function(n,s){var u,f;return f=_fe(this,s),u=this.fd(n),u.Rb(f),f},v.Ui=function(n,s){var u;JT(this,s,!0),u=this.fd(n),u.Rb(s)};var gra=V(qa,"AbstractSequentialInternalEList",2067);G(496,2067,JZ,S$),v.$i=function(n){return Gf(this.pj(),n)},v.Ii=function(){if(this.b==null)return yy(),yy(),uV;return this.sl()},v.pj=function(){return new bRt(this.a,this.b)},v.Ji=function(){if(this.b==null)return yy(),yy(),uV;return this.sl()},v.Ki=function(n){var s,u;if(this.b==null){if(n<0||n>1)throw ve(new Gl(BD+n+", size=0"));return yy(),yy(),uV}u=this.sl();for(s=0;s0)if(s=this.c[--this.d],(!this.e||s.pk()!=BN||s.Lj()!=0)&&(!this.vl()||this.b.Xh(s))){if(_=this.b.Nh(s,this.ul()),this.f=(_l(),b(s,69).xk()),this.f||s.Jk()){if(this.ul())f=b(_,15),this.k=f;else f=b(_,71),this.k=this.j=f;if(He(this.k,59))this.o=this.k.gc(),this.n=this.o;else this.p=!this.j?this.k.fd(this.k.gc()):this.j.Ki(this.k.gc());if(!this.p?QUt(this):UUt(this,this.p)){if(g=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub(),this.f)n=b(g,76),n.Lk(),u=n.md(),this.i=u;else u=g,this.i=u;return this.g=-3,!0}}else if(_!=null)return this.k=null,this.p=null,u=_,this.i=u,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else{if(g=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub(),this.f)n=b(g,76),n.Lk(),u=n.md(),this.i=u;else u=g,this.i=u;return this.g=-3,!0}}},v.Pb=function(){return PX(this)},v.Tb=function(){return this.a},v.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;else throw ve(new yc)},v.Vb=function(){return this.a-1},v.Qb=function(){throw ve(new bi)},v.ul=function(){return!1},v.Wb=function(n){throw ve(new bi)},v.vl=function(){return!0},v.a=0,v.d=0,v.f=!1,v.g=0,v.n=0,v.o=0;var uV,yra=V(qa,"EContentsEList/FeatureIteratorImpl",287);G(711,287,eJ,xIe),v.ul=function(){return!0};var vra=V(qa,"EContentsEList/ResolvingFeatureIteratorImpl",711);G(1178,711,eJ,BIt),v.vl=function(){return!1};var _ra=V(sn,"ENamedElementImpl/1/1",1178);G(1179,287,eJ,FIt),v.vl=function(){return!1};var Era=V(sn,"ENamedElementImpl/1/2",1179);G(39,152,YG,HT,_he,go,Dhe,wb,i0,FNe,b7t,$Ne,y7t,rNe,v7t,zNe,_7t,nNe,E7t,UNe,w7t,s8,iU,the,GNe,S7t,iNe,T7t),v.Kj=function(){return ENe(this)},v.Rj=function(){var n=ENe(this);if(n)return n.ik();return null},v.hj=function(n){return this.b==-1&&!!this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,n)},v.jj=function(){return this.c},v.Sj=function(){var n=ENe(this);if(n)return n.tk();return!1},v.b=-1;var wra=V(sn,"ENotificationImpl",39);G(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},Ule),v.Ah=function(n){return I$t(this,n)},v.Lh=function(n,s,u){var f,g,_;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nn(),(this.Bb&256)!=0?!0:!1;case 3:return nn(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return nn(),_=this.t,_>1||_==-1?!0:!1;case 7:return nn(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?b(this.Cb,29):null;case 11:return!this.d&&(this.d=new Ih(lh,this,11)),this.d;case 12:return!this.c&&(this.c=new kt(NS,this,12,10)),this.c;case 13:return!this.a&&(this.a=new A$(this,this)),this.a;case 14:return pd(this)}return Mf(this,n-Un((Vr(),rv)),jr((f=b(cn(this,16),29),!f?rv:f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 10:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?I$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,10,u);case 12:return!this.c&&(this.c=new kt(NS,this,12,10)),Vu(this.c,n,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),rv):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),rv)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Uue(this,u);case 10:return Jd(this,null,10,u);case 11:return!this.d&&(this.d=new Ih(lh,this,11)),ol(this.d,n,u);case 12:return!this.c&&(this.c=new kt(NS,this,12,10)),ol(this.c,n,u);case 14:return ol(pd(this),n,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),rv):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),rv)),n,u)},v.Wh=function(n){var s,u,f;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f=this.t,f>1||f==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Iw(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Iw(this.q).i==0);case 10:return!!(this.Db>>16==10?b(this.Cb,29):null);case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&pd(this.a.a).i!=0&&!(!!this.b&&ofe(this.b));case 14:return!!this.b&&ofe(this.b)}return Nf(this,n-Un((Vr(),rv)),jr((s=b(cn(this,16),29),!s?rv:s),n))},v.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:KT(this,b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 11:!this.d&&(this.d=new Ih(lh,this,11)),ni(this.d),!this.d&&(this.d=new Ih(lh,this,11)),ps(this.d,b(s,16));return;case 12:!this.c&&(this.c=new kt(NS,this,12,10)),ni(this.c),!this.c&&(this.c=new kt(NS,this,12,10)),ps(this.c,b(s,16));return;case 13:!this.a&&(this.a=new A$(this,this)),fD(this.a),!this.a&&(this.a=new A$(this,this)),ps(this.a,b(s,16));return;case 14:ni(pd(this)),ps(pd(this),b(s,16));return}Ff(this,n-Un((Vr(),rv)),jr((u=b(cn(this,16),29),!u?rv:u),n),s)},v.ii=function(){return Vr(),rv},v.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:KT(this,1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 11:!this.d&&(this.d=new Ih(lh,this,11)),ni(this.d);return;case 12:!this.c&&(this.c=new kt(NS,this,12,10)),ni(this.c);return;case 13:!!this.a&&fD(this.a);return;case 14:!!this.b&&ni(this.b);return}Bf(this,n-Un((Vr(),rv)),jr((s=b(cn(this,16),29),!s?rv:s),n))},v.pi=function(){var n,s;if(this.c)for(n=0,s=this.c.i;nC&&ls(n,C,null),f=0;for(u=new kn(pd(this.a));u.e!=u.i.gc();)s=b(Dn(u),89),_=(S=s.c,S?S:(Vr(),Wg)),ls(n,f++,_);return n},v.Hj=function(){var n,s,u,f,g;g=new gy,g.a+="[",n=pd(this.a);for(s=0,f=pd(this.a).i;s1);case 5:return f8(this,n,s,u,f,this.i-b(u,15).gc()>0);default:return new wb(this.e,n,this.c,s,u,f,!0)}},v.Tj=function(){return!0},v.Qj=function(){return ofe(this)},v.Gk=function(){ni(this)};var Cra=V(sn,"EOperationImpl/2",1377);G(507,1,{2037:1,507:1},eRt);var kra=V(sn,"EPackageImpl/1",507);G(14,83,dc,kt),v.il=function(){return this.d},v.jl=function(){return this.b},v.ml=function(){return!0},v.b=0;var Ara=V(qa,"EObjectContainmentWithInverseEList",14);G(365,14,dc,OA),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var Rra=V(qa,"EObjectContainmentWithInverseEList/Resolving",365);G(308,365,dc,FT),v.Ni=function(){this.a.tb=null};var Ira=V(sn,"EPackageImpl/2",308);G(1278,1,{},H2t);var Ora=V(sn,"EPackageImpl/3",1278);G(733,45,U4,k5e),v._b=function(n){return So(n)?nhe(this,n):!!wl(this.f,n)};var Nra=V(sn,"EPackageRegistryImpl",733);G(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},Gle),v.Ah=function(n){return O$t(this,n)},v.Lh=function(n,s,u){var f,g,_;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nn(),(this.Bb&256)!=0?!0:!1;case 3:return nn(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return nn(),_=this.t,_>1||_==-1?!0:!1;case 7:return nn(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?b(this.Cb,62):null}return Mf(this,n-Un((Vr(),Jx)),jr((f=b(cn(this,16),29),!f?Jx:f),n),s,u)},v.Sh=function(n,s,u){var f,g,_;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 10:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?O$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,10,u)}return _=b(jr((f=b(cn(this,16),29),!f?(Vr(),Jx):f),s),69),_.wk().zk(this,rh(this),s-Un((Vr(),Jx)),n,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Uue(this,u);case 10:return Jd(this,null,10,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),Jx):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),Jx)),n,u)},v.Wh=function(n){var s,u,f;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f=this.t,f>1||f==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Iw(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Iw(this.q).i==0);case 10:return!!(this.Db>>16==10?b(this.Cb,62):null)}return Nf(this,n-Un((Vr(),Jx)),jr((s=b(cn(this,16),29),!s?Jx:s),n))},v.ii=function(){return Vr(),Jx};var Lra=V(sn,"EParameterImpl",518);G(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},IIe),v.Lh=function(n,s,u){var f,g,_,S;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return nn(),(this.Bb&256)!=0?!0:!1;case 3:return nn(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return nn(),S=this.t,S>1||S==-1?!0:!1;case 7:return nn(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return nn(),(this.Bb&u0)!=0?!0:!1;case 11:return nn(),(this.Bb&wx)!=0?!0:!1;case 12:return nn(),(this.Bb&gx)!=0?!0:!1;case 13:return this.j;case 14:return _O(this);case 15:return nn(),(this.Bb&$h)!=0?!0:!1;case 16:return nn(),(this.Bb&Im)!=0?!0:!1;case 17:return GT(this);case 18:return nn(),(this.Bb&Hc)!=0?!0:!1;case 19:return nn(),_=El(this),!!_&&(_.Bb&Hc)!=0?!0:!1;case 20:return nn(),(this.Bb&ml)!=0?!0:!1;case 21:if(s)return El(this);return this.b;case 22:if(s)return kLe(this);return jMt(this);case 23:return!this.a&&(this.a=new c4(Xx,this,23)),this.a}return Mf(this,n-Un((Vr(),Ik)),jr((f=b(cn(this,16),29),!f?Ik:f),n),s,u)},v.Wh=function(n){var s,u,f,g;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return g=this.t,g>1||g==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Iw(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Iw(this.q).i==0);case 10:return(this.Bb&u0)==0;case 11:return(this.Bb&wx)!=0;case 12:return(this.Bb&gx)!=0;case 13:return this.j!=null;case 14:return _O(this)!=null;case 15:return(this.Bb&$h)!=0;case 16:return(this.Bb&Im)!=0;case 17:return!!GT(this);case 18:return(this.Bb&Hc)!=0;case 19:return f=El(this),!!f&&(f.Bb&Hc)!=0;case 20:return(this.Bb&ml)==0;case 21:return!!this.b;case 22:return!!jMt(this);case 23:return!!this.a&&this.a.i!=0}return Nf(this,n-Un((Vr(),Ik)),jr((s=b(cn(this,16),29),!s?Ik:s),n))},v.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:fhe(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:KT(this,b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 10:nO(this,er(Jt(s)));return;case 11:sO(this,er(Jt(s)));return;case 12:iO(this,er(Jt(s)));return;case 13:URe(this,wi(s));return;case 15:aO(this,er(Jt(s)));return;case 16:oO(this,er(Jt(s)));return;case 18:Wdn(this,er(Jt(s)));return;case 20:a7e(this,er(Jt(s)));return;case 21:nLe(this,b(s,19));return;case 23:!this.a&&(this.a=new c4(Xx,this,23)),ni(this.a),!this.a&&(this.a=new c4(Xx,this,23)),ps(this.a,b(s,16));return}Ff(this,n-Un((Vr(),Ik)),jr((u=b(cn(this,16),29),!u?Ik:u),n),s)},v.ii=function(){return Vr(),Ik},v.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,90)&&sx(fd(b(this.Cb,90)),4),zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:KT(this,1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 10:nO(this,!0);return;case 11:sO(this,!1);return;case 12:iO(this,!1);return;case 13:this.i=null,kX(this,null);return;case 15:aO(this,!1);return;case 16:oO(this,!1);return;case 18:i7e(this,!1),He(this.Cb,90)&&sx(fd(b(this.Cb,90)),2);return;case 20:a7e(this,!0);return;case 21:nLe(this,null);return;case 23:!this.a&&(this.a=new c4(Xx,this,23)),ni(this.a);return}Bf(this,n-Un((Vr(),Ik)),jr((s=b(cn(this,16),29),!s?Ik:s),n))},v.pi=function(){kLe(this),S6(Hl((Ph(),Yo),this)),vp(this),this.Bb|=1},v.uk=function(){return El(this)},v._k=function(){var n;return n=El(this),!!n&&(n.Bb&Hc)!=0},v.al=function(){return(this.Bb&Hc)!=0},v.bl=function(){return(this.Bb&ml)!=0},v.Yk=function(n,s){return this.c=null,jLe(this,n,s)},v.Ib=function(){var n;if((this.Db&64)!=0)return zQ(this);return n=new pp(zQ(this)),n.a+=" (containment: ",my(n,(this.Bb&Hc)!=0),n.a+=", resolveProxies: ",my(n,(this.Bb&ml)!=0),n.a+=")",n.a};var Mra=V(sn,"EReferenceImpl",102);G(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},q2t),v.Fb=function(n){return this===n},v.ld=function(){return this.b},v.md=function(){return this.c},v.Hb=function(){return ww(this)},v.Di=function(n){Zcn(this,wi(n))},v.nd=function(n){return Bcn(this,wi(n))},v.Lh=function(n,s,u){var f;switch(n){case 0:return this.b;case 1:return this.c}return Mf(this,n-Un((Vr(),yl)),jr((f=b(cn(this,16),29),!f?yl:f),n),s,u)},v.Wh=function(n){var s;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return Nf(this,n-Un((Vr(),yl)),jr((s=b(cn(this,16),29),!s?yl:s),n))},v.bi=function(n,s){var u;switch(n){case 0:Jcn(this,wi(s));return;case 1:eLe(this,wi(s));return}Ff(this,n-Un((Vr(),yl)),jr((u=b(cn(this,16),29),!u?yl:u),n),s)},v.ii=function(){return Vr(),yl},v.ki=function(n){var s;switch(n){case 0:JNe(this,null);return;case 1:eLe(this,null);return}Bf(this,n-Un((Vr(),yl)),jr((s=b(cn(this,16),29),!s?yl:s),n))},v.Bi=function(){var n;if(this.a==-1)n=this.b,this.a=n==null?0:Ry(n);return this.a},v.Ci=function(n){this.a=n},v.Ib=function(){var n;if((this.Db&64)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (key: ",Ol(n,this.b),n.a+=", value: ",Ol(n,this.c),n.a+=")",n.a},v.a=-1,v.b=null,v.c=null;var Bc=V(sn,"EStringToStringMapEntryImpl",561),Sor=ns(qa,"FeatureMap/Entry/Internal");G(576,1,tJ),v.xl=function(n){return this.yl(b(n,54))},v.yl=function(n){return this.xl(n)},v.Fb=function(n){var s,u;if(this===n)return!0;else if(He(n,76))if(s=b(n,76),s.Lk()==this.c)return u=this.md(),u==null?s.md()==null:da(u,s.md());else return!1;else return!1},v.Lk=function(){return this.c},v.Hb=function(){var n=this.md();return Da(this.c)^(n==null?0:Da(n))},v.Ib=function(){var n,s;return n=this.c,s=Wd(n.qk()).yi(),n.xe(),(s!=null&&s.length!=0?s+":"+n.xe():n.xe())+"="+this.md()};var Dra=V(sn,"EStructuralFeatureImpl/BasicFeatureMapEntry",576);G(791,576,tJ,$Ie),v.yl=function(n){return new $Ie(this.c,n)},v.md=function(){return this.a},v.zl=function(n,s,u){return Pmn(this,n,this.a,s,u)},v.Al=function(n,s,u){return Bmn(this,n,this.a,s,u)};var Pra=V(sn,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791);G(1350,1,{},tRt),v.yk=function(n,s,u,f,g){var _=b(I6(n,this.b),220);return _.Yl(this.a).Fk(f)},v.zk=function(n,s,u,f,g){var _=b(I6(n,this.b),220);return _.Pl(this.a,f,g)},v.Ak=function(n,s,u,f,g){var _=b(I6(n,this.b),220);return _.Ql(this.a,f,g)},v.Bk=function(n,s,u){var f=b(I6(n,this.b),220);return f.Yl(this.a).Qj()},v.Ck=function(n,s,u,f){var g=b(I6(n,this.b),220);g.Yl(this.a).Wb(f)},v.Dk=function(n,s,u){return b(I6(n,this.b),220).Yl(this.a)},v.Ek=function(n,s,u){var f=b(I6(n,this.b),220);f.Yl(this.a).Gk()};var Bra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350);G(91,1,{},_y,F2,wy,V2),v.yk=function(n,s,u,f,g){var _=s.li(u);if(_==null&&s.mi(u,_=eZ(this,n)),!g)switch(this.e){case 50:case 41:return b(_,597).bk();case 40:return b(_,220).Vl()}return _},v.zk=function(n,s,u,f,g){var _,S;return S=s.li(u),S==null&&s.mi(u,S=eZ(this,n)),_=b(S,71).Wk(f,g),_},v.Ak=function(n,s,u,f,g){var _=s.li(u);return _!=null&&(g=b(_,71).Xk(f,g)),g},v.Bk=function(n,s,u){var f=s.li(u);return f!=null&&b(f,79).Qj()},v.Ck=function(n,s,u,f){var g=b(s.li(u),79);!g&&s.mi(u,g=eZ(this,n)),g.Wb(f)},v.Dk=function(n,s,u){var f,g;if(g=s.li(u),g==null&&s.mi(u,g=eZ(this,n)),He(g,79))return b(g,79);else return f=b(s.li(u),15),new H4t(f)},v.Ek=function(n,s,u){var f=b(s.li(u),79);!f&&s.mi(u,f=eZ(this,n)),f.Gk()},v.b=0,v.e=0;var Fra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateMany",91);G(512,1,{}),v.zk=function(n,s,u,f,g){throw ve(new bi)},v.Ak=function(n,s,u,f,g){throw ve(new bi)},v.Dk=function(n,s,u){return new JNt(this,n,s,u)};var $1,$ra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512);G(1367,1,rme,JNt),v.Fk=function(n){return this.a.yk(this.c,this.d,this.b,n,!0)},v.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},v.Wb=function(n){this.a.Ck(this.c,this.d,this.b,n)},v.Gk=function(){this.a.Ek(this.c,this.d,this.b)},v.b=0;var Ura=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367);G(784,512,{},kOe),v.yk=function(n,s,u,f,g){return npe(n,n.Ph(),n.Fh())==this.b?this.bl()&&f?Vfe(n):n.Ph():null},v.zk=function(n,s,u,f,g){var _,S;return!!n.Ph()&&(g=(_=n.Fh(),_>=0?n.Ah(g):n.Ph().Th(n,-1-_,null,g))),S=Za(n.Dh(),this.e),n.Ch(f,S,g)},v.Ak=function(n,s,u,f,g){var _=Za(n.Dh(),this.e);return n.Ch(null,_,g)},v.Bk=function(n,s,u){var f=Za(n.Dh(),this.e);return!!n.Ph()&&n.Fh()==f},v.Ck=function(n,s,u,f){var g,_,S,C,O;if(f!=null&&!ope(this.a,f))throw ve(new QI(rJ+(He(f,58)?pMe(b(f,58).Dh()):MNe(Ld(f)))+nJ+this.a+"'"));if(g=n.Ph(),S=Za(n.Dh(),this.e),nt(f)!==nt(g)||n.Fh()!=S&&f!=null){if(dO(n,b(f,58)))throw ve(new dn(DD+n.Ib()));O=null,!!g&&(O=(_=n.Fh(),_>=0?n.Ah(O):n.Ph().Th(n,-1-_,null,O))),C=b(f,54),!!C&&(O=C.Rh(n,Za(C.Dh(),this.b),null,O)),O=n.Ch(C,S,O),!!O&&O.oj()}else n.vh()&&n.wh()&&ha(n,new go(n,1,S,f,f))},v.Ek=function(n,s,u){var f,g,_,S;if(f=n.Ph(),f)S=(g=n.Fh(),g>=0?n.Ah(null):n.Ph().Th(n,-1-g,null,null)),_=Za(n.Dh(),this.e),S=n.Ch(null,_,S),!!S&&S.oj();else n.vh()&&n.wh()&&ha(n,new s8(n,1,this.e,null,null))},v.bl=function(){return!1};var Gra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784);G(1351,784,{},V6t),v.bl=function(){return!0};var zra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351);G(574,512,{}),v.yk=function(n,s,u,f,g){var _;return _=s.li(u),_==null?this.b:nt(_)===nt($1)?null:_},v.Bk=function(n,s,u){var f=s.li(u);return f!=null&&(nt(f)===nt($1)||!da(f,this.b))},v.Ck=function(n,s,u,f){var g,_;if(n.vh()&&n.wh()){if(g=(_=s.li(u),_==null?this.b:nt(_)===nt($1)?null:_),f==null)if(this.c!=null)s.mi(u,null),f=this.b;else this.b!=null?s.mi(u,$1):s.mi(u,null);else this.Bl(f),s.mi(u,f);ha(n,this.d.Cl(n,1,this.e,g,f))}else if(f==null)this.c!=null?s.mi(u,null):this.b!=null?s.mi(u,$1):s.mi(u,null);else this.Bl(f),s.mi(u,f)},v.Ek=function(n,s,u){var f,g;if(n.vh()&&n.wh())f=(g=s.li(u),g==null?this.b:nt(g)===nt($1)?null:g),s.ni(u),ha(n,this.d.Cl(n,1,this.e,f,this.b));else s.ni(u)},v.Bl=function(n){throw ve(new tkt)};var Vra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574);G(X4,1,{},Y2t),v.Cl=function(n,s,u,f,g){return new s8(n,s,u,f,g)},v.Dl=function(n,s,u,f,g,_){return new the(n,s,u,f,g,_)};var mWe,bWe,yWe,vWe,_We,EWe,wWe,ive,SWe,Hra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",X4);G(1368,X4,{},W2t),v.Cl=function(n,s,u,f,g){return new iNe(n,s,u,er(Jt(f)),er(Jt(g)))},v.Dl=function(n,s,u,f,g,_){return new T7t(n,s,u,er(Jt(f)),er(Jt(g)),_)};var qra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368);G(1369,X4,{},j2t),v.Cl=function(n,s,u,f,g){return new FNe(n,s,u,b(f,222).a,b(g,222).a)},v.Dl=function(n,s,u,f,g,_){return new b7t(n,s,u,b(f,222).a,b(g,222).a,_)};var Yra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369);G(1370,X4,{},K2t),v.Cl=function(n,s,u,f,g){return new $Ne(n,s,u,b(f,180).a,b(g,180).a)},v.Dl=function(n,s,u,f,g,_){return new y7t(n,s,u,b(f,180).a,b(g,180).a,_)};var Wra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370);G(1371,X4,{},X2t),v.Cl=function(n,s,u,f,g){return new rNe(n,s,u,rt(ht(f)),rt(ht(g)))},v.Dl=function(n,s,u,f,g,_){return new v7t(n,s,u,rt(ht(f)),rt(ht(g)),_)};var jra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371);G(1372,X4,{},Q2t),v.Cl=function(n,s,u,f,g){return new zNe(n,s,u,b(f,161).a,b(g,161).a)},v.Dl=function(n,s,u,f,g,_){return new _7t(n,s,u,b(f,161).a,b(g,161).a,_)};var Kra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372);G(1373,X4,{},Z2t),v.Cl=function(n,s,u,f,g){return new nNe(n,s,u,b(f,17).a,b(g,17).a)},v.Dl=function(n,s,u,f,g,_){return new E7t(n,s,u,b(f,17).a,b(g,17).a,_)};var Xra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373);G(1374,X4,{},J2t),v.Cl=function(n,s,u,f,g){return new UNe(n,s,u,b(f,168).a,b(g,168).a)},v.Dl=function(n,s,u,f,g,_){return new w7t(n,s,u,b(f,168).a,b(g,168).a,_)};var Qra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374);G(1375,X4,{},eEt),v.Cl=function(n,s,u,f,g){return new GNe(n,s,u,b(f,191).a,b(g,191).a)},v.Dl=function(n,s,u,f,g,_){return new S7t(n,s,u,b(f,191).a,b(g,191).a,_)};var Zra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375);G(1353,574,{},eLt),v.Bl=function(n){if(!this.a.fk(n))throw ve(new QI(rJ+Ld(n)+nJ+this.a+"'"))};var Jra=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353);G(1354,574,{},GOt),v.Bl=function(n){};var ena=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354);G(785,574,{}),v.Bk=function(n,s,u){var f=s.li(u);return f!=null},v.Ck=function(n,s,u,f){var g,_;if(n.vh()&&n.wh()){if(g=!0,_=s.li(u),_==null)g=!1,_=this.b;else nt(_)===nt($1)&&(_=null);if(f==null)if(this.c!=null)s.mi(u,null),f=this.b;else s.mi(u,$1);else this.Bl(f),s.mi(u,f);ha(n,this.d.Dl(n,1,this.e,_,f,!g))}else if(f==null)this.c!=null?s.mi(u,null):s.mi(u,$1);else this.Bl(f),s.mi(u,f)},v.Ek=function(n,s,u){var f,g;if(n.vh()&&n.wh()){if(f=!0,g=s.li(u),g==null)f=!1,g=this.b;else nt(g)===nt($1)&&(g=null);s.ni(u),ha(n,this.d.Dl(n,2,this.e,g,this.b,f))}else s.ni(u)};var tna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785);G(1355,785,{},tLt),v.Bl=function(n){if(!this.a.fk(n))throw ve(new QI(rJ+Ld(n)+nJ+this.a+"'"))};var rna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355);G(1356,785,{},zOt),v.Bl=function(n){};var nna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356);G(410,512,{},pK),v.yk=function(n,s,u,f,g){var _,S,C,O,M;if(M=s.li(u),this.tk()&&nt(M)===nt($1))return null;else if(this.bl()&&f&&M!=null){if(C=b(M,54),C.Vh()){if(O=e_(n,C),C!=O){if(!ope(this.a,O))throw ve(new QI(rJ+Ld(O)+nJ+this.a+"'"));if(s.mi(u,M=O),this.al())_=b(O,54),S=C.Th(n,!this.b?-1-Za(n.Dh(),this.e):Za(C.Dh(),this.b),null,null),!_.Ph()&&(S=_.Rh(n,!this.b?-1-Za(n.Dh(),this.e):Za(_.Dh(),this.b),null,S)),!!S&&S.oj();n.vh()&&n.wh()&&ha(n,new s8(n,9,this.e,C,O))}}return M}else return M},v.zk=function(n,s,u,f,g){var _,S;if(S=s.li(u),nt(S)===nt($1)&&(S=null),s.mi(u,f),this.Mj()){if(nt(S)!==nt(f)&&S!=null)_=b(S,54),g=_.Th(n,Za(_.Dh(),this.b),null,g)}else this.al()&&S!=null&&(g=b(S,54).Th(n,-1-Za(n.Dh(),this.e),null,g));if(n.vh()&&n.wh())!g&&(g=new Pv(4)),g.nj(new s8(n,1,this.e,S,f));return g},v.Ak=function(n,s,u,f,g){var _=s.li(u);if(nt(_)===nt($1)&&(_=null),s.ni(u),n.vh()&&n.wh())!g&&(g=new Pv(4)),this.tk()?g.nj(new s8(n,2,this.e,_,null)):g.nj(new s8(n,1,this.e,_,null));return g},v.Bk=function(n,s,u){var f=s.li(u);return f!=null},v.Ck=function(n,s,u,f){var g,_,S,C,O;if(f!=null&&!ope(this.a,f))throw ve(new QI(rJ+(He(f,58)?pMe(b(f,58).Dh()):MNe(Ld(f)))+nJ+this.a+"'"));if(O=s.li(u),C=O!=null,this.tk()&&nt(O)===nt($1)&&(O=null),S=null,this.Mj()){if(nt(O)!==nt(f)){if(O!=null)g=b(O,54),S=g.Th(n,Za(g.Dh(),this.b),null,S);if(f!=null)g=b(f,54),S=g.Rh(n,Za(g.Dh(),this.b),null,S)}}else if(this.al()){if(nt(O)!==nt(f))O!=null&&(S=b(O,54).Th(n,-1-Za(n.Dh(),this.e),null,S)),f!=null&&(S=b(f,54).Rh(n,-1-Za(n.Dh(),this.e),null,S))}if(f==null&&this.tk()?s.mi(u,$1):s.mi(u,f),n.vh()&&n.wh())if(_=new the(n,1,this.e,O,f,this.tk()&&!C),!S)ha(n,_);else S.nj(_),S.oj();else!!S&&S.oj()},v.Ek=function(n,s,u){var f,g,_,S,C;if(C=s.li(u),S=C!=null,this.tk()&&nt(C)===nt($1)&&(C=null),_=null,C!=null)if(this.Mj())f=b(C,54),_=f.Th(n,Za(f.Dh(),this.b),null,_);else this.al()&&(_=b(C,54).Th(n,-1-Za(n.Dh(),this.e),null,_));if(s.ni(u),n.vh()&&n.wh())if(g=new the(n,this.tk()?2:1,this.e,C,null,S),!_)ha(n,g);else _.nj(g),_.oj();else!!_&&_.oj()},v.Mj=function(){return!1},v.al=function(){return!1},v.bl=function(){return!1},v.tk=function(){return!1};var ina=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410);G(575,410,{},aue),v.al=function(){return!0};var ana=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575);G(1359,575,{},UIt),v.bl=function(){return!0};var sna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359);G(787,575,{},CIe),v.tk=function(){return!0};var ona=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787);G(1361,787,{},GIt),v.bl=function(){return!0};var lna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361);G(650,575,{},yue),v.Mj=function(){return!0};var cna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650);G(1360,650,{},H6t),v.bl=function(){return!0};var una=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360);G(788,650,{},d6e),v.tk=function(){return!0};var hna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788);G(1362,788,{},q6t),v.bl=function(){return!0};var dna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362);G(651,410,{},kIe),v.bl=function(){return!0};var fna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651);G(1363,651,{},zIt),v.tk=function(){return!0};var pna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363);G(789,651,{},u6e),v.Mj=function(){return!0};var gna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789);G(1364,789,{},Y6t),v.tk=function(){return!0};var mna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364);G(1357,410,{},VIt),v.tk=function(){return!0};var bna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357);G(786,410,{},h6e),v.Mj=function(){return!0};var yna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786);G(1358,786,{},W6t),v.tk=function(){return!0};var vna=V(sn,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358);G(790,576,tJ,lOe),v.yl=function(n){return new lOe(this.a,this.c,n)},v.md=function(){return this.b},v.zl=function(n,s,u){return M0n(this,n,this.b,u)},v.Al=function(n,s,u){return D0n(this,n,this.b,u)};var _na=V(sn,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790);G(1365,1,rme,H4t),v.Fk=function(n){return this.a},v.Qj=function(){return He(this.a,97)?b(this.a,97).Qj():!this.a.dc()},v.Wb=function(n){this.a.$b(),this.a.Gc(b(n,15))},v.Gk=function(){He(this.a,97)?b(this.a,97).Gk():this.a.$b()};var Ena=V(sn,"EStructuralFeatureImpl/SettingMany",1365);G(1366,576,tJ,gMt),v.xl=function(n){return new lue((ka(),rP),this.b.ri(this.a,n))},v.md=function(){return null},v.zl=function(n,s,u){return u},v.Al=function(n,s,u){return u};var wna=V(sn,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366);G(652,576,tJ,lue),v.xl=function(n){return new lue(this.c,n)},v.md=function(){return this.a},v.zl=function(n,s,u){return u},v.Al=function(n,s,u){return u};var Sna=V(sn,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652);G(403,506,$m,VI),v.aj=function(n){return mt(Ip,en,29,n,0,1)},v.Yi=function(){return!1};var Tna=V(sn,"ESuperAdapter/1",403);G(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},_le),v.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new r8(this,Rl,this)),this.a}return Mf(this,n-Un((Vr(),MS)),jr((f=b(cn(this,16),29),!f?MS:f),n),s,u)},v.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 2:return!this.a&&(this.a=new r8(this,Rl,this)),ol(this.a,n,u)}return g=b(jr((f=b(cn(this,16),29),!f?(Vr(),MS):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),MS)),n,u)},v.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Nf(this,n-Un((Vr(),MS)),jr((s=b(cn(this,16),29),!s?MS:s),n))},v.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:!this.a&&(this.a=new r8(this,Rl,this)),ni(this.a),!this.a&&(this.a=new r8(this,Rl,this)),ps(this.a,b(s,16));return}Ff(this,n-Un((Vr(),MS)),jr((u=b(cn(this,16),29),!u?MS:u),n),s)},v.ii=function(){return Vr(),MS},v.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:!this.a&&(this.a=new r8(this,Rl,this)),ni(this.a);return}Bf(this,n-Un((Vr(),MS)),jr((s=b(cn(this,16),29),!s?MS:s),n))};var xna=V(sn,"ETypeParameterImpl",457);G(458,83,dc,r8),v.Nj=function(n,s){return KEn(this,b(n,89),s)},v.Oj=function(n,s){return XEn(this,b(n,89),s)};var Cna=V(sn,"ETypeParameterImpl/1",458);G(647,45,U4,zle),v.ec=function(){return new GW(this)};var kna=V(sn,"ETypeParameterImpl/2",647);G(570,Mg,Bh,GW),v.Fc=function(n){return g6t(this,b(n,89))},v.Gc=function(n){var s,u,f;f=!1;for(u=n.Kc();u.Ob();)s=b(u.Pb(),89),Ki(this.a,s,"")==null&&(f=!0);return f},v.$b=function(){Jh(this.a)},v.Hc=function(n){return Zu(this.a,n)},v.Kc=function(){var n;return n=new W2(new R2(this.a).a),new zW(n)},v.Mc=function(n){return a8t(this,n)},v.gc=function(){return SM(this.a)};var Ana=V(sn,"ETypeParameterImpl/2/1",570);G(571,1,To,zW),v.Nb=function(n){Go(this,n)},v.Pb=function(){return b(Hw(this.a).ld(),89)},v.Ob=function(){return this.a.b},v.Qb=function(){pDt(this.a)};var Rna=V(sn,"ETypeParameterImpl/2/1/1",571);G(1329,45,U4,Mkt),v._b=function(n){return So(n)?nhe(this,n):!!wl(this.f,n)},v.xc=function(n){var s,u;if(s=So(n)?mu(this,n):Jl(wl(this.f,n)),He(s,851))return u=b(s,851),s=u.Kk(),Ki(this,b(n,241),s),s;else return s!=null?s:n==null?(oce(),xor):null};var Ina=V(sn,"EValidatorRegistryImpl",1329);G(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},tEt),v.ri=function(n,s){switch(n.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return s==null?null:hc(s);case 25:return Ygn(s);case 27:return sgn(s);case 28:return ogn(s);case 29:return s==null?null:YRt(X9[0],b(s,206));case 41:return s==null?"":N2(b(s,297));case 42:return hc(s);case 50:return wi(s);default:throw ve(new dn(KO+n.xe()+hS))}},v.si=function(n){var s,u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se;switch(n.G==-1&&(n.G=(re=Wd(n),re?Py(re.vi(),n):-1)),n.G){case 0:return u=new $le,u;case 1:return s=new kAe,s;case 2:return f=new OAe,f;case 4:return g=new VW,g;case 5:return _=new Lkt,_;case 6:return S=new ikt,S;case 7:return C=new NAe,C;case 10:return M=new NW,M;case 11:return U=new Ule,U;case 12:return q=new cLt,q;case 13:return ae=new Gle,ae;case 14:return ue=new IIe,ue;case 17:return de=new q2t,de;case 18:return O=new ow,O;case 19:return Se=new _le,Se;default:throw ve(new dn(Uge+n.zb+hS))}},v.ti=function(n,s){switch(n.hk()){case 20:return s==null?null:new Z5e(s);case 21:return s==null?null:new Gv(s);case 23:case 22:return s==null?null:avn(s);case 26:case 24:return s==null?null:hU(Zd(s,-128,127)<<24>>24);case 25:return Txn(s);case 27:return Y_n(s);case 28:return W_n(s);case 29:return mwn(s);case 32:case 31:return s==null?null:ix(s);case 38:case 37:return s==null?null:new g5e(s);case 40:case 39:return s==null?null:$t(Zd(s,Qo,sa));case 41:return null;case 42:return s==null?null:null;case 44:case 43:return s==null?null:Rb(JQ(s));case 49:case 48:return s==null?null:rO(Zd(s,iJ,32767)<<16>>16);case 50:return s;default:throw ve(new dn(KO+n.xe()+hS))}};var Ona=V(sn,"EcoreFactoryImpl",1349);G(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},LNt),v.gb=!1,v.hb=!1;var TWe,Tor=!1,Nna=V(sn,"EcorePackageImpl",560);G(1234,1,{851:1},rEt),v.Kk=function(){return aIt(),Cor};var Lna=V(sn,"EcorePackageImpl/1",1234);G(1243,1,Yi,nEt),v.fk=function(n){return He(n,155)},v.gk=function(n){return mt(sV,en,155,n,0,1)};var Mna=V(sn,"EcorePackageImpl/10",1243);G(1244,1,Yi,iEt),v.fk=function(n){return He(n,197)},v.gk=function(n){return mt(Kye,en,197,n,0,1)};var Dna=V(sn,"EcorePackageImpl/11",1244);G(1245,1,Yi,aEt),v.fk=function(n){return He(n,58)},v.gk=function(n){return mt(I_,en,58,n,0,1)};var Pna=V(sn,"EcorePackageImpl/12",1245);G(1246,1,Yi,sEt),v.fk=function(n){return He(n,411)},v.gk=function(n){return mt(Op,bFe,62,n,0,1)};var Bna=V(sn,"EcorePackageImpl/13",1246);G(1247,1,Yi,oEt),v.fk=function(n){return He(n,241)},v.gk=function(n){return mt(ng,en,241,n,0,1)};var Fna=V(sn,"EcorePackageImpl/14",1247);G(1248,1,Yi,lEt),v.fk=function(n){return He(n,518)},v.gk=function(n){return mt(NS,en,2116,n,0,1)};var $na=V(sn,"EcorePackageImpl/15",1248);G(1249,1,Yi,cEt),v.fk=function(n){return He(n,102)},v.gk=function(n){return mt(Qx,K4,19,n,0,1)};var Una=V(sn,"EcorePackageImpl/16",1249);G(1250,1,Yi,uEt),v.fk=function(n){return He(n,179)},v.gk=function(n){return mt(_h,K4,179,n,0,1)};var Gna=V(sn,"EcorePackageImpl/17",1250);G(1251,1,Yi,hEt),v.fk=function(n){return He(n,481)},v.gk=function(n){return mt(Kx,en,481,n,0,1)};var zna=V(sn,"EcorePackageImpl/18",1251);G(1252,1,Yi,dEt),v.fk=function(n){return He(n,561)},v.gk=function(n){return mt(Bc,wKt,561,n,0,1)};var Vna=V(sn,"EcorePackageImpl/19",1252);G(1235,1,Yi,fEt),v.fk=function(n){return He(n,331)},v.gk=function(n){return mt(Xx,K4,35,n,0,1)};var Hna=V(sn,"EcorePackageImpl/2",1235);G(1253,1,Yi,pEt),v.fk=function(n){return He(n,248)},v.gk=function(n){return mt(Rl,$Kt,89,n,0,1)};var qna=V(sn,"EcorePackageImpl/20",1253);G(1254,1,Yi,gEt),v.fk=function(n){return He(n,457)},v.gk=function(n){return mt(lh,en,850,n,0,1)};var Yna=V(sn,"EcorePackageImpl/21",1254);G(1255,1,Yi,mEt),v.fk=function(n){return IT(n)},v.gk=function(n){return mt(_s,Bt,485,n,8,1)};var Wna=V(sn,"EcorePackageImpl/22",1255);G(1256,1,Yi,bEt),v.fk=function(n){return He(n,195)},v.gk=function(n){return mt(Gh,Bt,195,n,0,2)};var jna=V(sn,"EcorePackageImpl/23",1256);G(1257,1,Yi,yEt),v.fk=function(n){return He(n,222)},v.gk=function(n){return mt(C5,Bt,222,n,0,1)};var Kna=V(sn,"EcorePackageImpl/24",1257);G(1258,1,Yi,vEt),v.fk=function(n){return He(n,180)},v.gk=function(n){return mt(WD,Bt,180,n,0,1)};var Xna=V(sn,"EcorePackageImpl/25",1258);G(1259,1,Yi,_Et),v.fk=function(n){return He(n,206)},v.gk=function(n){return mt(pJ,Bt,206,n,0,1)};var Qna=V(sn,"EcorePackageImpl/26",1259);G(1260,1,Yi,EEt),v.fk=function(n){return!1},v.gk=function(n){return mt(zWe,en,2215,n,0,1)};var Zna=V(sn,"EcorePackageImpl/27",1260);G(1261,1,Yi,wEt),v.fk=function(n){return OT(n)},v.gk=function(n){return mt(Bs,Bt,345,n,7,1)};var Jna=V(sn,"EcorePackageImpl/28",1261);G(1262,1,Yi,SEt),v.fk=function(n){return He(n,61)},v.gk=function(n){return mt(nWe,mx,61,n,0,1)};var eia=V(sn,"EcorePackageImpl/29",1262);G(1236,1,Yi,TEt),v.fk=function(n){return He(n,519)},v.gk=function(n){return mt(Vi,{3:1,4:1,5:1,2033:1},598,n,0,1)};var tia=V(sn,"EcorePackageImpl/3",1236);G(1263,1,Yi,xEt),v.fk=function(n){return He(n,582)},v.gk=function(n){return mt(sWe,en,2039,n,0,1)};var ria=V(sn,"EcorePackageImpl/30",1263);G(1264,1,Yi,CEt),v.fk=function(n){return He(n,160)},v.gk=function(n){return mt(RWe,mx,160,n,0,1)};var nia=V(sn,"EcorePackageImpl/31",1264);G(1265,1,Yi,kEt),v.fk=function(n){return He(n,76)},v.gk=function(n){return mt(Ote,jKt,76,n,0,1)};var iia=V(sn,"EcorePackageImpl/32",1265);G(1266,1,Yi,AEt),v.fk=function(n){return He(n,161)},v.gk=function(n){return mt(rN,Bt,161,n,0,1)};var aia=V(sn,"EcorePackageImpl/33",1266);G(1267,1,Yi,REt),v.fk=function(n){return He(n,17)},v.gk=function(n){return mt(qo,Bt,17,n,0,1)};var sia=V(sn,"EcorePackageImpl/34",1267);G(1268,1,Yi,IEt),v.fk=function(n){return He(n,297)},v.gk=function(n){return mt(IFe,en,297,n,0,1)};var oia=V(sn,"EcorePackageImpl/35",1268);G(1269,1,Yi,OEt),v.fk=function(n){return He(n,168)},v.gk=function(n){return mt(fS,Bt,168,n,0,1)};var lia=V(sn,"EcorePackageImpl/36",1269);G(1270,1,Yi,NEt),v.fk=function(n){return He(n,85)},v.gk=function(n){return mt(OFe,en,85,n,0,1)};var cia=V(sn,"EcorePackageImpl/37",1270);G(1271,1,Yi,LEt),v.fk=function(n){return He(n,599)},v.gk=function(n){return mt(xWe,en,599,n,0,1)};var uia=V(sn,"EcorePackageImpl/38",1271);G(1272,1,Yi,MEt),v.fk=function(n){return!1},v.gk=function(n){return mt(VWe,en,2216,n,0,1)};var hia=V(sn,"EcorePackageImpl/39",1272);G(1237,1,Yi,DEt),v.fk=function(n){return He(n,90)},v.gk=function(n){return mt(Ip,en,29,n,0,1)};var dia=V(sn,"EcorePackageImpl/4",1237);G(1273,1,Yi,PEt),v.fk=function(n){return He(n,191)},v.gk=function(n){return mt(pS,Bt,191,n,0,1)};var fia=V(sn,"EcorePackageImpl/40",1273);G(1274,1,Yi,BEt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var pia=V(sn,"EcorePackageImpl/41",1274);G(1275,1,Yi,FEt),v.fk=function(n){return He(n,596)},v.gk=function(n){return mt(aWe,en,596,n,0,1)};var gia=V(sn,"EcorePackageImpl/42",1275);G(1276,1,Yi,$Et),v.fk=function(n){return!1},v.gk=function(n){return mt(HWe,Bt,2217,n,0,1)};var mia=V(sn,"EcorePackageImpl/43",1276);G(1277,1,Yi,UEt),v.fk=function(n){return He(n,44)},v.gk=function(n){return mt(pE,rZ,44,n,0,1)};var bia=V(sn,"EcorePackageImpl/44",1277);G(1238,1,Yi,GEt),v.fk=function(n){return He(n,142)},v.gk=function(n){return mt(ig,en,142,n,0,1)};var yia=V(sn,"EcorePackageImpl/5",1238);G(1239,1,Yi,zEt),v.fk=function(n){return He(n,156)},v.gk=function(n){return mt(tve,en,156,n,0,1)};var via=V(sn,"EcorePackageImpl/6",1239);G(1240,1,Yi,VEt),v.fk=function(n){return He(n,469)},v.gk=function(n){return mt(Ite,en,685,n,0,1)};var _ia=V(sn,"EcorePackageImpl/7",1240);G(1241,1,Yi,HEt),v.fk=function(n){return He(n,582)},v.gk=function(n){return mt(zb,en,694,n,0,1)};var Eia=V(sn,"EcorePackageImpl/8",1241);G(1242,1,Yi,qEt),v.fk=function(n){return He(n,480)},v.gk=function(n){return mt(K9,en,480,n,0,1)};var wia=V(sn,"EcorePackageImpl/9",1242);G(1038,2080,EKt,t3t),v.Mi=function(n,s){Mbn(this,b(s,424))},v.Qi=function(n,s){KUt(this,n,b(s,424))};var Sia=V(sn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038);G(1039,152,YG,SNt),v.jj=function(){return this.a.a};var Tia=V(sn,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039);G(1067,1066,{},BRt);var xia=V("org.eclipse.emf.ecore.plugin","EcorePlugin",1067),xWe=ns(KKt,"Resource");G(799,1524,XKt),v.Hl=function(n){},v.Il=function(n){},v.El=function(){return!this.a&&(this.a=new Lle(this)),this.a},v.Fl=function(n){var s,u,f,g,_;if(f=n.length,f>0){if(fn(0,n.length),n.charCodeAt(0)==47){_=new Gu(4),g=1;for(s=1;s0&&(n=(Do(0,u,n.length),n.substr(0,u)))}return cTn(this,n)},v.Gl=function(){return this.c},v.Ib=function(){var n;return N2(this.Rm)+"@"+(n=Da(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},v.b=!1;var Cia=V(nme,"ResourceImpl",799);G(1525,799,XKt,q4t);var kia=V(nme,"BinaryResourceImpl",1525);G(1190,708,Qge),v.bj=function(n){return He(n,58)?edn(this,b(n,58)):He(n,599)?new kn(b(n,599).El()):nt(n)===nt(this.f)?b(n,16).Kc():(d6(),cV.a)},v.Ob=function(){return l8e(this)},v.a=!1;var Aia=V(qa,"EcoreUtil/ContentTreeIterator",1190);G(1526,1190,Qge,JOt),v.bj=function(n){return nt(n)===nt(this.f)?b(n,15).Kc():new X7t(b(n,58))};var Ria=V(nme,"ResourceImpl/5",1526);G(658,2092,FKt,Lle),v.Hc=function(n){return this.i<=4?pO(this,n):He(n,54)&&b(n,54).Jh()==this.a},v.Mi=function(n,s){n==this.i-1&&(this.a.b||(this.a.b=!0))},v.Oi=function(n,s){n==0?this.a.b||(this.a.b=!0):Nhe(this,n,s)},v.Qi=function(n,s){},v.Ri=function(n,s,u){},v.Lj=function(){return 2},v.jj=function(){return this.a},v.Mj=function(){return!0},v.Nj=function(n,s){var u=b(n,54);return s=u.fi(this.a,s),s},v.Oj=function(n,s){var u=b(n,54);return u.fi(null,s)},v.Pj=function(){return!1},v.Si=function(){return!0},v.aj=function(n){return mt(I_,en,58,n,0,1)},v.Yi=function(){return!1};var Iia=V(nme,"ResourceImpl/ContentsEList",658);G(970,2062,LO,Y4t),v.fd=function(n){return this.a.Ki(n)},v.gc=function(){return this.a.gc()};var Oia=V(qa,"AbstractSequentialInternalEList/1",970),CWe,kWe,Yo,AWe;G(634,1,{},tOt);var Nte,Lte,Nia=V(qa,"BasicExtendedMetaData",634);G(1181,1,{},nRt),v.Jl=function(){return null},v.Kl=function(){return this.a==-2&&Mrn(this,cwn(this.d,this.b)),this.a},v.Ll=function(){return null},v.Ml=function(){return Hr(),Hr(),Jo},v.xe=function(){return this.c==ZO&&Drn(this,vFt(this.d,this.b)),this.c},v.Nl=function(){return 0},v.a=-2,v.c=ZO;var Lia=V(qa,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181);G(1182,1,{},C7t),v.Jl=function(){return this.a==(R6(),Nte)&&Frn(this,lkn(this.f,this.b)),this.a},v.Kl=function(){return 0},v.Ll=function(){return this.c==(R6(),Nte)&&Prn(this,ckn(this.f,this.b)),this.c},v.Ml=function(){return!this.d&&Urn(this,W3n(this.f,this.b)),this.d},v.xe=function(){return this.e==ZO&&zrn(this,vFt(this.f,this.b)),this.e},v.Nl=function(){return this.g==-2&&Hrn(this,AEn(this.f,this.b)),this.g},v.e=ZO,v.g=-2;var Mia=V(qa,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182);G(1180,1,{},iRt),v.b=!1,v.c=!1;var Dia=V(qa,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180);G(1183,1,{},k7t),v.c=-2,v.e=ZO,v.f=ZO;var Pia=V(qa,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183);G(593,632,dc,iK),v.Lj=function(){return this.c},v.ol=function(){return!1},v.Wi=function(n,s){return s},v.c=0;var Bia=V(qa,"EDataTypeEList",593),RWe=ns(qa,"FeatureMap");G(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},gs),v.bd=function(n,s){kCn(this,n,b(s,76))},v.Fc=function(n){return qxn(this,b(n,76))},v.Hi=function(n){Qun(this,b(n,76))},v.Nj=function(n,s){return yon(this,b(n,76),s)},v.Oj=function(n,s){return e6e(this,b(n,76),s)},v.Ti=function(n,s){return Zkn(this,n,s)},v.Wi=function(n,s){return $5n(this,n,b(s,76))},v.hd=function(n,s){return p4n(this,n,b(s,76))},v.Uj=function(n,s){return von(this,b(n,76),s)},v.Vj=function(n,s){return I6t(this,b(n,76),s)},v.Wj=function(n,s,u){return gEn(this,b(n,76),b(s,76),u)},v.Zi=function(n,s){return Cfe(this,n,b(s,76))},v.Ol=function(n,s){return J8e(this,n,s)},v.cd=function(n,s){var u,f,g,_,S,C,O,M,U;M=new $w(s.gc());for(g=s.Kc();g.Ob();)if(f=b(g.Pb(),76),_=f.Lk(),Nb(this.e,_))(!_.Si()||!jK(this,_,f.md())&&!pO(M,f))&&ii(M,f);else{U=nh(this.e.Dh(),_),u=b(this.g,124),S=!0;for(C=0;C=0)if(s=n[this.c],this.k.am(s.Lk()))return this.j=this.f?s:s.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1};var Uia=V(qa,"BasicFeatureMap/FeatureEIterator",420);G(676,420,S1,Vce),v.ul=function(){return!0};var Gia=V(qa,"BasicFeatureMap/ResolvingFeatureEIterator",676);G(968,496,JZ,WRt),v.pj=function(){return this};var zia=V(qa,"EContentsEList/1",968);G(969,496,JZ,bRt),v.ul=function(){return!1};var Via=V(qa,"EContentsEList/2",969);G(967,287,eJ,jRt),v.wl=function(n){},v.Ob=function(){return!1},v.Sb=function(){return!1};var Hia=V(qa,"EContentsEList/FeatureIteratorImpl/1",967);G(840,593,dc,oIe),v.Ni=function(){this.a=!0},v.Qj=function(){return this.a},v.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},v.a=!1;var qia=V(qa,"EDataTypeEList/Unsettable",840);G(1958,593,dc,tIt),v.Si=function(){return!0};var Yia=V(qa,"EDataTypeUniqueEList",1958);G(1959,840,dc,rIt),v.Si=function(){return!0};var Wia=V(qa,"EDataTypeUniqueEList/Unsettable",1959);G(147,83,dc,Ih),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var jia=V(qa,"EObjectContainmentEList/Resolving",147);G(1184,555,dc,nIt),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var Kia=V(qa,"EObjectContainmentEList/Unsettable/Resolving",1184);G(766,14,dc,WIe),v.Ni=function(){this.a=!0},v.Qj=function(){return this.a},v.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},v.a=!1;var Xia=V(qa,"EObjectContainmentWithInverseEList/Unsettable",766);G(1222,766,dc,m6t),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var Qia=V(qa,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222);G(757,505,dc,lIe),v.Ni=function(){this.a=!0},v.Qj=function(){return this.a},v.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},v.a=!1;var Zia=V(qa,"EObjectEList/Unsettable",757);G(338,505,dc,c4),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var Jia=V(qa,"EObjectResolvingEList",338);G(1844,757,dc,iIt),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var eaa=V(qa,"EObjectResolvingEList/Unsettable",1844);G(1527,1,{},YEt);var xor,taa=V(qa,"EObjectValidator",1527);G(559,505,dc,EK),v.il=function(){return this.d},v.jl=function(){return this.b},v.Mj=function(){return!0},v.ml=function(){return!0},v.b=0;var raa=V(qa,"EObjectWithInverseEList",559);G(1225,559,dc,b6t),v.ll=function(){return!0};var naa=V(qa,"EObjectWithInverseEList/ManyInverse",1225);G(635,559,dc,uue),v.Ni=function(){this.a=!0},v.Qj=function(){return this.a},v.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},v.a=!1;var iaa=V(qa,"EObjectWithInverseEList/Unsettable",635);G(1224,635,dc,y6t),v.ll=function(){return!0};var aaa=V(qa,"EObjectWithInverseEList/Unsettable/ManyInverse",1224);G(767,559,dc,jIe),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var saa=V(qa,"EObjectWithInverseResolvingEList",767);G(32,767,dc,Wr),v.ll=function(){return!0};var oaa=V(qa,"EObjectWithInverseResolvingEList/ManyInverse",32);G(768,635,dc,KIe),v.nl=function(){return!0},v.Wi=function(n,s){return u5(this,n,b(s,58))};var laa=V(qa,"EObjectWithInverseResolvingEList/Unsettable",768);G(1223,768,dc,v6t),v.ll=function(){return!0};var caa=V(qa,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223);G(1185,632,dc),v.Li=function(){return(this.b&1792)==0},v.Ni=function(){this.b|=1},v.kl=function(){return(this.b&4)!=0},v.Mj=function(){return(this.b&40)!=0},v.ll=function(){return(this.b&16)!=0},v.ml=function(){return(this.b&8)!=0},v.nl=function(){return(this.b&wx)!=0},v.al=function(){return(this.b&32)!=0},v.ol=function(){return(this.b&u0)!=0},v.fk=function(n){return!this.d?this.Lk().Hk().fk(n):aMt(this.d,n)},v.Qj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},v.Si=function(){return(this.b&128)!=0},v.Gk=function(){var n;if(ni(this),(this.b&2)!=0)if(Ad(this.e))n=(this.b&1)!=0,this.b&=-2,XI(this,new i0(this.e,2,Za(this.e.Dh(),this.Lk()),n,!1));else this.b&=-2},v.Yi=function(){return(this.b&1536)==0},v.b=0;var uaa=V(qa,"EcoreEList/Generic",1185);G(1186,1185,dc,hLt),v.Lk=function(){return this.a};var haa=V(qa,"EcoreEList/Dynamic",1186);G(765,66,$m,c5e),v.aj=function(n){return gU(this.a.a,n)};var daa=V(qa,"EcoreEMap/1",765);G(764,83,dc,W6e),v.Mi=function(n,s){fQ(this.b,b(s,136))},v.Oi=function(n,s){lPt(this.b)},v.Pi=function(n,s,u){var f;++(f=this.b,b(s,136),f).e},v.Qi=function(n,s){Dde(this.b,b(s,136))},v.Ri=function(n,s,u){Dde(this.b,b(u,136)),nt(u)===nt(s)&&b(u,136).Ci(man(b(s,136).ld())),fQ(this.b,b(s,136))};var faa=V(qa,"EcoreEMap/DelegateEObjectContainmentEList",764);G(1220,141,mFe,x9t);var paa=V(qa,"EcoreEMap/Unsettable",1220);G(1221,764,dc,_6t),v.Ni=function(){this.a=!0},v.Qj=function(){return this.a},v.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},v.a=!1;var gaa=V(qa,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221);G(1189,215,U4,dNt),v.a=!1,v.b=!1;var maa=V(qa,"EcoreUtil/Copier",1189);G(759,1,To,X7t),v.Nb=function(n){Go(this,n)},v.Ob=function(){return iFt(this)},v.Pb=function(){var n;return iFt(this),n=this.b,this.b=null,n},v.Qb=function(){this.a.Qb()};var baa=V(qa,"EcoreUtil/ProperContentIterator",759);G(1528,1527,{},WSt);var Cor,yaa=V(qa,"EcoreValidator",1528),kor,vaa=ns(qa,"FeatureMapUtil/Validator");G(1295,1,{2041:1},WEt),v.am=function(n){return!0};var _aa=V(qa,"FeatureMapUtil/1",1295);G(773,1,{2041:1},ADe),v.am=function(n){var s;if(this.c==n)return!0;if(s=Jt(An(this.a,n)),s==null)if(gkn(this,n))return XMt(this.a,n,(nn(),tN)),!0;else return XMt(this.a,n,(nn(),g_)),!1;else return s==(nn(),tN)},v.e=!1;var ave,Eaa=V(qa,"FeatureMapUtil/BasicValidator",773);G(774,45,U4,aIe);var waa=V(qa,"FeatureMapUtil/BasicValidator/Cache",774);G(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},v$),v.bd=function(n,s){$zt(this.c,this.b,n,s)},v.Fc=function(n){return J8e(this.c,this.b,n)},v.cd=function(n,s){return PAn(this.c,this.b,n,s)},v.Gc=function(n){return WM(this,n)},v.Gi=function(n,s){Ogn(this.c,this.b,n,s)},v.Wk=function(n,s){return q8e(this.c,this.b,n,s)},v.$i=function(n){return jQ(this.c,this.b,n,!1)},v.Ii=function(){return RRt(this.c,this.b)},v.Ji=function(){return nan(this.c,this.b)},v.Ki=function(n){return P0n(this.c,this.b,n)},v.Xk=function(n,s){return JIt(this,n,s)},v.$b=function(){pA(this)},v.Hc=function(n){return jK(this.c,this.b,n)},v.Ic=function(n){return Dmn(this.c,this.b,n)},v.Xb=function(n){return jQ(this.c,this.b,n,!0)},v.Fk=function(n){return this},v.dd=function(n){return Vpn(this.c,this.b,n)},v.dc=function(){return Lj(this)},v.Qj=function(){return!PU(this.c,this.b)},v.Kc=function(){return Egn(this.c,this.b)},v.ed=function(){return wgn(this.c,this.b)},v.fd=function(n){return Jbn(this.c,this.b,n)},v.Ti=function(n,s){return eHt(this.c,this.b,n,s)},v.Ui=function(n,s){$0n(this.c,this.b,n,s)},v.gd=function(n){return NUt(this.c,this.b,n)},v.Mc=function(n){return Bkn(this.c,this.b,n)},v.hd=function(n,s){return cHt(this.c,this.b,n,s)},v.Wb=function(n){RQ(this.c,this.b),WM(this,b(n,15))},v.gc=function(){return Zbn(this.c,this.b)},v.Pc=function(){return qfn(this.c,this.b)},v.Qc=function(n){return Hpn(this.c,this.b,n)},v.Ib=function(){var n,s;s=new gy,s.a+="[";for(n=RRt(this.c,this.b);xde(n);)Ol(s,KM(uQ(n))),xde(n)&&(s.a+=ll);return s.a+="]",s.a},v.Gk=function(){RQ(this.c,this.b)};var Saa=V(qa,"FeatureMapUtil/FeatureEList",509);G(644,39,YG,Ehe),v.hj=function(n){return P8(this,n)},v.mj=function(n){var s,u,f,g,_,S,C;switch(this.d){case 1:case 2:{if(_=n.jj(),nt(_)===nt(this.c)&&P8(this,null)==n.hj(null))return this.g=n.ij(),n.gj()==1&&(this.d=1),!0;break}case 3:{switch(g=n.gj(),g){case 3:{if(_=n.jj(),nt(_)===nt(this.c)&&P8(this,null)==n.hj(null))return this.d=5,s=new $w(2),ii(s,this.g),ii(s,n.ij()),this.g=s,!0;break}}break}case 5:{switch(g=n.gj(),g){case 3:{if(_=n.jj(),nt(_)===nt(this.c)&&P8(this,null)==n.hj(null))return u=b(this.g,16),u.Fc(n.ij()),!0;break}}break}case 4:{switch(g=n.gj(),g){case 3:{if(_=n.jj(),nt(_)===nt(this.c)&&P8(this,null)==n.hj(null))return this.d=1,this.g=n.ij(),!0;break}case 4:{if(_=n.jj(),nt(_)===nt(this.c)&&P8(this,null)==n.hj(null))return this.d=6,C=new $w(2),ii(C,this.n),ii(C,n.kj()),this.n=C,S=Te(we(ci,1),$i,28,15,[this.o,n.lj()]),this.g=S,!0;break}}break}case 6:{switch(g=n.gj(),g){case 4:{if(_=n.jj(),nt(_)===nt(this.c)&&P8(this,null)==n.hj(null))return u=b(this.n,16),u.Fc(n.kj()),S=b(this.g,53),f=mt(ci,$i,28,S.length+1,15,1),au(S,0,f,0,S.length),f[S.length]=n.lj(),this.g=f,!0;break}}break}}return!1};var Taa=V(qa,"FeatureMapUtil/FeatureENotificationImpl",644);G(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},lK),v.Ol=function(n,s){return J8e(this.c,n,s)},v.Pl=function(n,s,u){return q8e(this.c,n,s,u)},v.Ql=function(n,s,u){return bDe(this.c,n,s,u)},v.Rl=function(){return this},v.Sl=function(n,s){return dG(this.c,n,s)},v.Tl=function(n){return b(jQ(this.c,this.b,n,!1),76).Lk()},v.Ul=function(n){return b(jQ(this.c,this.b,n,!1),76).md()},v.Vl=function(){return this.a},v.Wl=function(n){return!PU(this.c,n)},v.Xl=function(n,s){KQ(this.c,n,s)},v.Yl=function(n){return A9t(this.c,n)},v.Zl=function(n){s$t(this.c,n)};var xaa=V(qa,"FeatureMapUtil/FeatureFeatureMap",564);G(1294,1,rme,rRt),v.Fk=function(n){return jQ(this.b,this.a,-1,n)},v.Qj=function(){return!PU(this.b,this.a)},v.Wb=function(n){KQ(this.b,this.a,n)},v.Gk=function(){RQ(this.b,this.a)};var Caa=V(qa,"FeatureMapUtil/FeatureValue",1294),K5,sve,ove,X5,Aor,hV=ns(lJ,"AnyType");G(680,63,Lb,Xle);var kaa=V(lJ,"InvalidDatatypeValueException",680),Mte=ns(lJ,ZKt),dV=ns(lJ,JKt),IWe=ns(lJ,eXt),Ror,qc,OWe,OE,Ior,Oor,Nor,Lor,Mor,Dor,Por,Bor,For,$or,Uor,Ok,Gor,Nk,eP,zor,DS,fV,pV,Vor,tP,rP;G(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},A5e),v.Lh=function(n,s,u){switch(n){case 0:if(u)return!this.c&&(this.c=new gs(this,0)),this.c;return!this.c&&(this.c=new gs(this,0)),this.c.b;case 1:if(u)return!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160);return(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Vl();case 2:if(u)return!this.b&&(this.b=new gs(this,2)),this.b;return!this.b&&(this.b=new gs(this,2)),this.b.b}return Mf(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},v.Uh=function(n,s,u){var f;switch(s){case 0:return!this.c&&(this.c=new gs(this,0)),lG(this.c,n,u);case 1:return(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),71)).Xk(n,u);case 2:return!this.b&&(this.b=new gs(this,2)),lG(this.b,n,u)}return f=b(jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),s),69),f.wk().Ak(this,ONe(this),s-Un(this.ii()),n,u)},v.Wh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Nf(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.bi=function(n,s){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),$$(this.c,s);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Wb(s);return;case 2:!this.b&&(this.b=new gs(this,2)),$$(this.b,s);return}Ff(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},v.ii=function(){return ka(),OWe},v.ki=function(n){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),ni(this.c);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).$b();return;case 2:!this.b&&(this.b=new gs(this,2)),ni(this.b);return}Bf(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.Ib=function(){var n;if((this.j&4)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (mixed: ",VM(n,this.c),n.a+=", anyAttribute: ",VM(n,this.b),n.a+=")",n.a};var Aaa=V(Ps,"AnyTypeImpl",844);G(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},iwt),v.Lh=function(n,s,u){switch(n){case 0:return this.a;case 1:return this.b}return Mf(this,n-Un((ka(),Ok)),jr((this.j&2)==0?Ok:(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},v.Wh=function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return Nf(this,n-Un((ka(),Ok)),jr((this.j&2)==0?Ok:(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.bi=function(n,s){switch(n){case 0:Wrn(this,wi(s));return;case 1:Krn(this,wi(s));return}Ff(this,n-Un((ka(),Ok)),jr((this.j&2)==0?Ok:(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},v.ii=function(){return ka(),Ok},v.ki=function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}Bf(this,n-Un((ka(),Ok)),jr((this.j&2)==0?Ok:(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.Ib=function(){var n;if((this.j&4)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (data: ",Ol(n,this.a),n.a+=", target: ",Ol(n,this.b),n.a+=")",n.a},v.a=null,v.b=null;var Raa=V(Ps,"ProcessingInstructionImpl",681);G(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},Dkt),v.Lh=function(n,s,u){switch(n){case 0:if(u)return!this.c&&(this.c=new gs(this,0)),this.c;return!this.c&&(this.c=new gs(this,0)),this.c.b;case 1:if(u)return!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160);return(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Vl();case 2:if(u)return!this.b&&(this.b=new gs(this,2)),this.b;return!this.b&&(this.b=new gs(this,2)),this.b.b;case 3:return!this.c&&(this.c=new gs(this,0)),wi(dG(this.c,(ka(),eP),!0));case 4:return QIe(this.a,(!this.c&&(this.c=new gs(this,0)),wi(dG(this.c,(ka(),eP),!0))));case 5:return this.a}return Mf(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},v.Wh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new gs(this,0)),wi(dG(this.c,(ka(),eP),!0))!=null;case 4:return QIe(this.a,(!this.c&&(this.c=new gs(this,0)),wi(dG(this.c,(ka(),eP),!0))))!=null;case 5:return!!this.a}return Nf(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.bi=function(n,s){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),$$(this.c,s);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Wb(s);return;case 2:!this.b&&(this.b=new gs(this,2)),$$(this.b,s);return;case 3:$Oe(this,wi(s));return;case 4:$Oe(this,XIe(this.a,s));return;case 5:jrn(this,b(s,156));return}Ff(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},v.ii=function(){return ka(),Nk},v.ki=function(n){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),ni(this.c);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).$b();return;case 2:!this.b&&(this.b=new gs(this,2)),ni(this.b);return;case 3:!this.c&&(this.c=new gs(this,0)),KQ(this.c,(ka(),eP),null);return;case 4:$Oe(this,XIe(this.a,null));return;case 5:this.a=null;return}Bf(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n))};var Iaa=V(Ps,"SimpleAnyTypeImpl",682);G(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},Pkt),v.Lh=function(n,s,u){switch(n){case 0:if(u)return!this.a&&(this.a=new gs(this,0)),this.a;return!this.a&&(this.a=new gs(this,0)),this.a.b;case 1:return u?(!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),this.b):(!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),nU(this.b));case 2:return u?(!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),this.c):(!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),nU(this.c));case 3:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),fV));case 4:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),pV));case 5:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),tP));case 6:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),rP))}return Mf(this,n-Un((ka(),DS)),jr((this.j&2)==0?DS:(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},v.Uh=function(n,s,u){var f;switch(s){case 0:return!this.a&&(this.a=new gs(this,0)),lG(this.a,n,u);case 1:return!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),Qj(this.b,n,u);case 2:return!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),Qj(this.c,n,u);case 5:return!this.a&&(this.a=new gs(this,0)),JIt(bu(this.a,(ka(),tP)),n,u)}return f=b(jr((this.j&2)==0?(ka(),DS):(!this.k&&(this.k=new U0),this.k).Nk(),s),69),f.wk().Ak(this,ONe(this),s-Un((ka(),DS)),n,u)},v.Wh=function(n){switch(n){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new gs(this,0)),!Lj(bu(this.a,(ka(),fV)));case 4:return!this.a&&(this.a=new gs(this,0)),!Lj(bu(this.a,(ka(),pV)));case 5:return!this.a&&(this.a=new gs(this,0)),!Lj(bu(this.a,(ka(),tP)));case 6:return!this.a&&(this.a=new gs(this,0)),!Lj(bu(this.a,(ka(),rP)))}return Nf(this,n-Un((ka(),DS)),jr((this.j&2)==0?DS:(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.bi=function(n,s){switch(n){case 0:!this.a&&(this.a=new gs(this,0)),$$(this.a,s);return;case 1:!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),LX(this.b,s);return;case 2:!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),LX(this.c,s);return;case 3:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),fV))),!this.a&&(this.a=new gs(this,0)),WM(bu(this.a,fV),b(s,16));return;case 4:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),pV))),!this.a&&(this.a=new gs(this,0)),WM(bu(this.a,pV),b(s,16));return;case 5:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),tP))),!this.a&&(this.a=new gs(this,0)),WM(bu(this.a,tP),b(s,16));return;case 6:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),rP))),!this.a&&(this.a=new gs(this,0)),WM(bu(this.a,rP),b(s,16));return}Ff(this,n-Un((ka(),DS)),jr((this.j&2)==0?DS:(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},v.ii=function(){return ka(),DS},v.ki=function(n){switch(n){case 0:!this.a&&(this.a=new gs(this,0)),ni(this.a);return;case 1:!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),fV)));return;case 4:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),pV)));return;case 5:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),tP)));return;case 6:!this.a&&(this.a=new gs(this,0)),pA(bu(this.a,(ka(),rP)));return}Bf(this,n-Un((ka(),DS)),jr((this.j&2)==0?DS:(!this.k&&(this.k=new U0),this.k).Nk(),n))},v.Ib=function(){var n;if((this.j&4)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (mixed: ",VM(n,this.a),n.a+=")",n.a};var Oaa=V(Ps,"XMLTypeDocumentRootImpl",683);G(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},jEt),v.ri=function(n,s){switch(n.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return s==null?null:hc(s);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return wi(s);case 6:return Rsn(b(s,195));case 12:case 47:case 49:case 11:return XHt(this,n,s);case 13:return s==null?null:$An(b(s,247));case 15:case 14:return s==null?null:qun(rt(ht(s)));case 17:return W$t((ka(),s));case 18:return W$t(s);case 21:case 20:return s==null?null:Yun(b(s,161).a);case 27:return Isn(b(s,195));case 30:return o$t((ka(),b(s,15)));case 31:return o$t(b(s,15));case 40:return Nsn((ka(),s));case 42:return j$t((ka(),s));case 43:return j$t(s);case 59:case 48:return Osn((ka(),s));default:throw ve(new dn(KO+n.xe()+hS))}},v.si=function(n){var s,u,f,g,_;switch(n.G==-1&&(n.G=(u=Wd(n),u?Py(u.vi(),n):-1)),n.G){case 0:return s=new A5e,s;case 1:return f=new iwt,f;case 2:return g=new Dkt,g;case 3:return _=new Pkt,_;default:throw ve(new dn(Uge+n.zb+hS))}},v.ti=function(n,s){var u,f,g,_,S,C,O,M,U,q,re,ae,ue,de,Se,Be;switch(n.hk()){case 5:case 52:case 4:return s;case 6:return Fvn(s);case 8:case 7:return s==null?null:TEn(s);case 9:return s==null?null:hU(Zd((f=vu(s,!0),f.length>0&&(fn(0,f.length),f.charCodeAt(0)==43)?(fn(1,f.length+1),f.substr(1)):f),-128,127)<<24>>24);case 10:return s==null?null:hU(Zd((g=vu(s,!0),g.length>0&&(fn(0,g.length),g.charCodeAt(0)==43)?(fn(1,g.length+1),g.substr(1)):g),-128,127)<<24>>24);case 11:return wi(nS(this,(ka(),Nor),s));case 12:return wi(nS(this,(ka(),Lor),s));case 13:return s==null?null:new Z5e(vu(s,!0));case 15:case 14:return Wxn(s);case 16:return wi(nS(this,(ka(),Mor),s));case 17:return cFt((ka(),s));case 18:return cFt(s);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return vu(s,!0);case 21:case 20:return nCn(s);case 22:return wi(nS(this,(ka(),Dor),s));case 23:return wi(nS(this,(ka(),Por),s));case 24:return wi(nS(this,(ka(),Bor),s));case 25:return wi(nS(this,(ka(),For),s));case 26:return wi(nS(this,(ka(),$or),s));case 27:return Cvn(s);case 30:return uFt((ka(),s));case 31:return uFt(s);case 32:return s==null?null:$t(Zd((U=vu(s,!0),U.length>0&&(fn(0,U.length),U.charCodeAt(0)==43)?(fn(1,U.length+1),U.substr(1)):U),Qo,sa));case 33:return s==null?null:new Gv((q=vu(s,!0),q.length>0&&(fn(0,q.length),q.charCodeAt(0)==43)?(fn(1,q.length+1),q.substr(1)):q));case 34:return s==null?null:$t(Zd((re=vu(s,!0),re.length>0&&(fn(0,re.length),re.charCodeAt(0)==43)?(fn(1,re.length+1),re.substr(1)):re),Qo,sa));case 36:return s==null?null:Rb(JQ((ae=vu(s,!0),ae.length>0&&(fn(0,ae.length),ae.charCodeAt(0)==43)?(fn(1,ae.length+1),ae.substr(1)):ae)));case 37:return s==null?null:Rb(JQ((ue=vu(s,!0),ue.length>0&&(fn(0,ue.length),ue.charCodeAt(0)==43)?(fn(1,ue.length+1),ue.substr(1)):ue)));case 40:return S_n((ka(),s));case 42:return hFt((ka(),s));case 43:return hFt(s);case 44:return s==null?null:new Gv((de=vu(s,!0),de.length>0&&(fn(0,de.length),de.charCodeAt(0)==43)?(fn(1,de.length+1),de.substr(1)):de));case 45:return s==null?null:new Gv((Se=vu(s,!0),Se.length>0&&(fn(0,Se.length),Se.charCodeAt(0)==43)?(fn(1,Se.length+1),Se.substr(1)):Se));case 46:return vu(s,!1);case 47:return wi(nS(this,(ka(),Uor),s));case 59:case 48:return w_n((ka(),s));case 49:return wi(nS(this,(ka(),Gor),s));case 50:return s==null?null:rO(Zd((Be=vu(s,!0),Be.length>0&&(fn(0,Be.length),Be.charCodeAt(0)==43)?(fn(1,Be.length+1),Be.substr(1)):Be),iJ,32767)<<16>>16);case 51:return s==null?null:rO(Zd((_=vu(s,!0),_.length>0&&(fn(0,_.length),_.charCodeAt(0)==43)?(fn(1,_.length+1),_.substr(1)):_),iJ,32767)<<16>>16);case 53:return wi(nS(this,(ka(),zor),s));case 55:return s==null?null:rO(Zd((S=vu(s,!0),S.length>0&&(fn(0,S.length),S.charCodeAt(0)==43)?(fn(1,S.length+1),S.substr(1)):S),iJ,32767)<<16>>16);case 56:return s==null?null:rO(Zd((C=vu(s,!0),C.length>0&&(fn(0,C.length),C.charCodeAt(0)==43)?(fn(1,C.length+1),C.substr(1)):C),iJ,32767)<<16>>16);case 57:return s==null?null:Rb(JQ((O=vu(s,!0),O.length>0&&(fn(0,O.length),O.charCodeAt(0)==43)?(fn(1,O.length+1),O.substr(1)):O)));case 58:return s==null?null:Rb(JQ((M=vu(s,!0),M.length>0&&(fn(0,M.length),M.charCodeAt(0)==43)?(fn(1,M.length+1),M.substr(1)):M)));case 60:return s==null?null:$t(Zd((u=vu(s,!0),u.length>0&&(fn(0,u.length),u.charCodeAt(0)==43)?(fn(1,u.length+1),u.substr(1)):u),Qo,sa));case 61:return s==null?null:$t(Zd(vu(s,!0),Qo,sa));default:throw ve(new dn(KO+n.xe()+hS))}};var Hor,NWe,qor,LWe,Naa=V(Ps,"XMLTypeFactoryImpl",2028);G(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},MNt),v.N=!1,v.O=!1;var Yor=!1,Laa=V(Ps,"XMLTypePackageImpl",594);G(1961,1,{851:1},KEt),v.Kk=function(){return lDe(),tlr};var Maa=V(Ps,"XMLTypePackageImpl/1",1961);G(1970,1,Yi,XEt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Daa=V(Ps,"XMLTypePackageImpl/10",1970);G(1971,1,Yi,QEt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Paa=V(Ps,"XMLTypePackageImpl/11",1971);G(1972,1,Yi,ZEt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Baa=V(Ps,"XMLTypePackageImpl/12",1972);G(1973,1,Yi,JEt),v.fk=function(n){return OT(n)},v.gk=function(n){return mt(Bs,Bt,345,n,7,1)};var Faa=V(Ps,"XMLTypePackageImpl/13",1973);G(1974,1,Yi,ewt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var $aa=V(Ps,"XMLTypePackageImpl/14",1974);G(1975,1,Yi,twt),v.fk=function(n){return He(n,15)},v.gk=function(n){return mt(Yf,mx,15,n,0,1)};var Uaa=V(Ps,"XMLTypePackageImpl/15",1975);G(1976,1,Yi,rwt),v.fk=function(n){return He(n,15)},v.gk=function(n){return mt(Yf,mx,15,n,0,1)};var Gaa=V(Ps,"XMLTypePackageImpl/16",1976);G(1977,1,Yi,nwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var zaa=V(Ps,"XMLTypePackageImpl/17",1977);G(1978,1,Yi,awt),v.fk=function(n){return He(n,161)},v.gk=function(n){return mt(rN,Bt,161,n,0,1)};var Vaa=V(Ps,"XMLTypePackageImpl/18",1978);G(1979,1,Yi,swt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Haa=V(Ps,"XMLTypePackageImpl/19",1979);G(1962,1,Yi,owt),v.fk=function(n){return He(n,857)},v.gk=function(n){return mt(hV,en,857,n,0,1)};var qaa=V(Ps,"XMLTypePackageImpl/2",1962);G(1980,1,Yi,lwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Yaa=V(Ps,"XMLTypePackageImpl/20",1980);G(1981,1,Yi,cwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Waa=V(Ps,"XMLTypePackageImpl/21",1981);G(1982,1,Yi,uwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var jaa=V(Ps,"XMLTypePackageImpl/22",1982);G(1983,1,Yi,hwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Kaa=V(Ps,"XMLTypePackageImpl/23",1983);G(1984,1,Yi,dwt),v.fk=function(n){return He(n,195)},v.gk=function(n){return mt(Gh,Bt,195,n,0,2)};var Xaa=V(Ps,"XMLTypePackageImpl/24",1984);G(1985,1,Yi,fwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Qaa=V(Ps,"XMLTypePackageImpl/25",1985);G(1986,1,Yi,pwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Zaa=V(Ps,"XMLTypePackageImpl/26",1986);G(1987,1,Yi,gwt),v.fk=function(n){return He(n,15)},v.gk=function(n){return mt(Yf,mx,15,n,0,1)};var Jaa=V(Ps,"XMLTypePackageImpl/27",1987);G(1988,1,Yi,mwt),v.fk=function(n){return He(n,15)},v.gk=function(n){return mt(Yf,mx,15,n,0,1)};var esa=V(Ps,"XMLTypePackageImpl/28",1988);G(1989,1,Yi,bwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var tsa=V(Ps,"XMLTypePackageImpl/29",1989);G(1963,1,Yi,ywt),v.fk=function(n){return He(n,681)},v.gk=function(n){return mt(Mte,en,2119,n,0,1)};var rsa=V(Ps,"XMLTypePackageImpl/3",1963);G(1990,1,Yi,vwt),v.fk=function(n){return He(n,17)},v.gk=function(n){return mt(qo,Bt,17,n,0,1)};var nsa=V(Ps,"XMLTypePackageImpl/30",1990);G(1991,1,Yi,_wt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var isa=V(Ps,"XMLTypePackageImpl/31",1991);G(1992,1,Yi,Ewt),v.fk=function(n){return He(n,168)},v.gk=function(n){return mt(fS,Bt,168,n,0,1)};var asa=V(Ps,"XMLTypePackageImpl/32",1992);G(1993,1,Yi,wwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var ssa=V(Ps,"XMLTypePackageImpl/33",1993);G(1994,1,Yi,Swt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var osa=V(Ps,"XMLTypePackageImpl/34",1994);G(1995,1,Yi,Twt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var lsa=V(Ps,"XMLTypePackageImpl/35",1995);G(1996,1,Yi,xwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var csa=V(Ps,"XMLTypePackageImpl/36",1996);G(1997,1,Yi,Cwt),v.fk=function(n){return He(n,15)},v.gk=function(n){return mt(Yf,mx,15,n,0,1)};var usa=V(Ps,"XMLTypePackageImpl/37",1997);G(1998,1,Yi,kwt),v.fk=function(n){return He(n,15)},v.gk=function(n){return mt(Yf,mx,15,n,0,1)};var hsa=V(Ps,"XMLTypePackageImpl/38",1998);G(1999,1,Yi,Awt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var dsa=V(Ps,"XMLTypePackageImpl/39",1999);G(1964,1,Yi,Rwt),v.fk=function(n){return He(n,682)},v.gk=function(n){return mt(dV,en,2120,n,0,1)};var fsa=V(Ps,"XMLTypePackageImpl/4",1964);G(2000,1,Yi,Iwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var psa=V(Ps,"XMLTypePackageImpl/40",2000);G(2001,1,Yi,Owt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var gsa=V(Ps,"XMLTypePackageImpl/41",2001);G(2002,1,Yi,Nwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var msa=V(Ps,"XMLTypePackageImpl/42",2002);G(2003,1,Yi,Lwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var bsa=V(Ps,"XMLTypePackageImpl/43",2003);G(2004,1,Yi,Mwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var ysa=V(Ps,"XMLTypePackageImpl/44",2004);G(2005,1,Yi,Dwt),v.fk=function(n){return He(n,191)},v.gk=function(n){return mt(pS,Bt,191,n,0,1)};var vsa=V(Ps,"XMLTypePackageImpl/45",2005);G(2006,1,Yi,Pwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var _sa=V(Ps,"XMLTypePackageImpl/46",2006);G(2007,1,Yi,Bwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Esa=V(Ps,"XMLTypePackageImpl/47",2007);G(2008,1,Yi,Fwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var wsa=V(Ps,"XMLTypePackageImpl/48",2008);G(2009,1,Yi,$wt),v.fk=function(n){return He(n,191)},v.gk=function(n){return mt(pS,Bt,191,n,0,1)};var Ssa=V(Ps,"XMLTypePackageImpl/49",2009);G(1965,1,Yi,Uwt),v.fk=function(n){return He(n,683)},v.gk=function(n){return mt(IWe,en,2121,n,0,1)};var Tsa=V(Ps,"XMLTypePackageImpl/5",1965);G(2010,1,Yi,Gwt),v.fk=function(n){return He(n,168)},v.gk=function(n){return mt(fS,Bt,168,n,0,1)};var xsa=V(Ps,"XMLTypePackageImpl/50",2010);G(2011,1,Yi,zwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Csa=V(Ps,"XMLTypePackageImpl/51",2011);G(2012,1,Yi,Vwt),v.fk=function(n){return He(n,17)},v.gk=function(n){return mt(qo,Bt,17,n,0,1)};var ksa=V(Ps,"XMLTypePackageImpl/52",2012);G(1966,1,Yi,Hwt),v.fk=function(n){return So(n)},v.gk=function(n){return mt(or,Bt,2,n,6,1)};var Asa=V(Ps,"XMLTypePackageImpl/6",1966);G(1967,1,Yi,qwt),v.fk=function(n){return He(n,195)},v.gk=function(n){return mt(Gh,Bt,195,n,0,2)};var Rsa=V(Ps,"XMLTypePackageImpl/7",1967);G(1968,1,Yi,Ywt),v.fk=function(n){return IT(n)},v.gk=function(n){return mt(_s,Bt,485,n,8,1)};var Isa=V(Ps,"XMLTypePackageImpl/8",1968);G(1969,1,Yi,Wwt),v.fk=function(n){return He(n,222)},v.gk=function(n){return mt(C5,Bt,222,n,0,1)};var Osa=V(Ps,"XMLTypePackageImpl/9",1969),jg,iv,nP,Dte,Le;G(55,63,Lb,Ti);var Nsa=V(Hy,"RegEx/ParseException",55);G(836,1,{},RAe),v.bm=function(n){return nu*16)throw ve(new Ti(Ai((yi(),hKt))));u=u*16+g}while(!0);if(this.a!=125)throw ve(new Ti(Ai((yi(),dKt))));if(u>JO)throw ve(new Ti(Ai((yi(),fKt))));n=u}else{if(g=0,this.c!=0||(g=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(u=g,na(this),this.c!=0||(g=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));u=u*16+g,n=u}break;case 117:if(f=0,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));s=s*16+f,n=s;break;case 118:if(na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw ve(new Ti(Ai((yi(),Vy))));if(s=s*16+f,s>JO)throw ve(new Ti(Ai((yi(),"parser.descappe.4"))));n=s;break;case 65:case 90:case 122:throw ve(new Ti(Ai((yi(),pKt))))}return n},v.dm=function(n){var s,u;switch(n){case 100:u=(this.e&32)==32?o_("Nd",!0):(ia(),Pte);break;case 68:u=(this.e&32)==32?o_("Nd",!1):(ia(),$We);break;case 119:u=(this.e&32)==32?o_("IsWord",!0):(ia(),UN);break;case 87:u=(this.e&32)==32?o_("IsWord",!1):(ia(),GWe);break;case 115:u=(this.e&32)==32?o_("IsSpace",!0):(ia(),Q5);break;case 83:u=(this.e&32)==32?o_("IsSpace",!1):(ia(),UWe);break;default:throw ve(new vc((s=n,pXt+s.toString(16))))}return u},v.em=function(n){var s,u,f,g,_,S,C,O,M,U,q,re;if(this.b=1,na(this),s=null,this.c==0&&this.a==94)if(na(this),n)U=(ia(),ia(),++hs,new Yd(5));else s=(ia(),ia(),++hs,new Yd(4)),yu(s,0,JO),U=(++hs,new Yd(4));else U=(ia(),ia(),++hs,new Yd(4));g=!0;while((re=this.c)!=1){if(re==0&&this.a==93&&!g)break;if(g=!1,u=this.a,f=!1,re==10)switch(u){case 100:case 68:case 119:case 87:case 115:case 83:dx(U,this.dm(u)),f=!0;break;case 105:case 73:case 99:case 67:u=this.um(U,u),u<0&&(f=!0);break;case 112:case 80:if(q=s8e(this,u),!q)throw ve(new Ti(Ai((yi(),Jge))));dx(U,q),f=!0;break;default:u=this.cm()}else if(re==20){if(S=c6(this.i,58,this.d),S<0)throw ve(new Ti(Ai((yi(),uFe))));if(C=!0,Ko(this.i,this.d)==94)++this.d,C=!1;if(_=Of(this.i,this.d,S),O=$8t(_,C,(this.e&512)==512),!O)throw ve(new Ti(Ai((yi(),sKt))));if(dx(U,O),f=!0,S+1>=this.j||Ko(this.i,S+1)!=93)throw ve(new Ti(Ai((yi(),uFe))));this.d=S+2}if(na(this),!f)if(this.c!=0||this.a!=45)yu(U,u,u);else{if(na(this),(re=this.c)==1)throw ve(new Ti(Ai((yi(),QZ))));if(re==0&&this.a==93)yu(U,u,u),yu(U,45,45);else M=this.a,re==10&&(M=this.cm()),na(this),yu(U,u,M)}(this.e&u0)==u0&&this.c==0&&this.a==44&&na(this)}if(this.c==1)throw ve(new Ti(Ai((yi(),QZ))));if(s)pD(s,U),U=s;return O4(U),dD(U),this.b=0,na(this),U},v.fm=function(){var n,s,u,f;u=this.em(!1);while((f=this.c)!=7)if(n=this.a,f==0&&(n==45||n==38)||f==4){if(na(this),this.c!=9)throw ve(new Ti(Ai((yi(),lKt))));if(s=this.em(!1),f==4)dx(u,s);else if(n==45)pD(u,s);else if(n==38)YHt(u,s);else throw ve(new vc("ASSERT"))}else throw ve(new Ti(Ai((yi(),cKt))));return na(this),u},v.gm=function(){var n,s;return n=this.a-48,s=(ia(),ia(),++hs,new she(12,null,n)),!this.g&&(this.g=new qW),HW(this.g,new u5e(n)),na(this),s},v.hm=function(){return na(this),ia(),Kor},v.im=function(){return na(this),ia(),jor},v.jm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.km=function(){throw ve(new Ti(Ai((yi(),qf))))},v.lm=function(){return na(this),G1n()},v.mm=function(){return na(this),ia(),Qor},v.nm=function(){return na(this),ia(),Jor},v.om=function(){var n;if(this.d>=this.j||((n=Ko(this.i,this.d++))&65504)!=64)throw ve(new Ti(Ai((yi(),nKt))));return na(this),ia(),ia(),++hs,new g1(0,n-64)},v.pm=function(){return na(this),H3n()},v.qm=function(){return na(this),ia(),elr},v.rm=function(){var n=(ia(),ia(),++hs,new g1(0,105));return na(this),n},v.sm=function(){return na(this),ia(),Zor},v.tm=function(){return na(this),ia(),Xor},v.um=function(n,s){return this.cm()},v.vm=function(){return na(this),ia(),BWe},v.wm=function(){var n,s,u,f,g;if(this.d+1>=this.j)throw ve(new Ti(Ai((yi(),eKt))));if(f=-1,s=null,n=Ko(this.i,this.d),49<=n&&n<=57){if(f=n-48,!this.g&&(this.g=new qW),HW(this.g,new u5e(f)),++this.d,Ko(this.i,this.d)!=41)throw ve(new Ti(Ai((yi(),dE))));++this.d}else switch(n==63&&--this.d,na(this),s=LDe(this),s.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw ve(new Ti(Ai((yi(),dE))));break;default:throw ve(new Ti(Ai((yi(),tKt))))}if(na(this),g=Kw(this),u=null,g.e==2){if(g.Pm()!=2)throw ve(new Ti(Ai((yi(),rKt))));u=g.Lm(1),g=g.Lm(0)}if(this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),ia(),ia(),++hs,new _Dt(f,s,g,u)},v.xm=function(){return na(this),ia(),FWe},v.ym=function(){var n;if(na(this),n=wK(24,Kw(this)),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.zm=function(){var n;if(na(this),n=wK(20,Kw(this)),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.Am=function(){var n;if(na(this),n=wK(22,Kw(this)),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.Bm=function(){var n,s,u,f,g;n=0,u=0,s=-1;while(this.d=this.j)throw ve(new Ti(Ai((yi(),lFe))));if(s==45){++this.d;while(this.d=this.j)throw ve(new Ti(Ai((yi(),lFe))))}if(s==58){if(++this.d,na(this),f=gNt(Kw(this),n,u),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));na(this)}else if(s==41)++this.d,na(this),f=gNt(Kw(this),n,u);else throw ve(new Ti(Ai((yi(),Jjt))));return f},v.Cm=function(){var n;if(na(this),n=wK(21,Kw(this)),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.Dm=function(){var n;if(na(this),n=wK(23,Kw(this)),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.Em=function(){var n,s;if(na(this),n=this.f++,s=Mue(Kw(this),n),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),s},v.Fm=function(){var n;if(na(this),n=Mue(Kw(this),0),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.Gm=function(n){if(na(this),this.c==5)return na(this),fK(n,(ia(),ia(),++hs,new VT(9,n)));else return fK(n,(ia(),ia(),++hs,new VT(3,n)))},v.Hm=function(n){var s;if(na(this),s=(ia(),ia(),++hs,new YM(2)),this.c==5)na(this),rE(s,aP),rE(s,n);else rE(s,n),rE(s,aP);return s},v.Im=function(n){if(na(this),this.c==5)return na(this),ia(),ia(),++hs,new VT(9,n);else return ia(),ia(),++hs,new VT(3,n)},v.a=0,v.b=0,v.c=0,v.d=0,v.e=0,v.f=1,v.g=null,v.j=0;var Lsa=V(Hy,"RegEx/RegexParser",836);G(1947,836,{},Bkt),v.bm=function(n){return!1},v.cm=function(){return G8e(this)},v.dm=function(n){return TO(n)},v.em=function(n){return Gqt(this)},v.fm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.gm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.hm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.im=function(){throw ve(new Ti(Ai((yi(),qf))))},v.jm=function(){return na(this),TO(67)},v.km=function(){return na(this),TO(73)},v.lm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.mm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.nm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.om=function(){return na(this),TO(99)},v.pm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.qm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.rm=function(){return na(this),TO(105)},v.sm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.tm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.um=function(n,s){return dx(n,TO(s)),-1},v.vm=function(){return na(this),ia(),ia(),++hs,new g1(0,94)},v.wm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.xm=function(){return na(this),ia(),ia(),++hs,new g1(0,36)},v.ym=function(){throw ve(new Ti(Ai((yi(),qf))))},v.zm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.Am=function(){throw ve(new Ti(Ai((yi(),qf))))},v.Bm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.Cm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.Dm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.Em=function(){var n;if(na(this),n=Mue(Kw(this),0),this.c!=7)throw ve(new Ti(Ai((yi(),dE))));return na(this),n},v.Fm=function(){throw ve(new Ti(Ai((yi(),qf))))},v.Gm=function(n){return na(this),fK(n,(ia(),ia(),++hs,new VT(3,n)))},v.Hm=function(n){var s;return na(this),s=(ia(),ia(),++hs,new YM(2)),rE(s,n),rE(s,aP),s},v.Im=function(n){return na(this),ia(),ia(),++hs,new VT(3,n)};var Lk=null,FN=null,Msa=V(Hy,"RegEx/ParserForXMLSchema",1947);G(122,1,eN,sw),v.Jm=function(n){throw ve(new vc("Not supported."))},v.Km=function(){return-1},v.Lm=function(n){return null},v.Mm=function(){return null},v.Nm=function(n){},v.Om=function(n){},v.Pm=function(){return 0},v.Ib=function(){return this.Qm(0)},v.Qm=function(n){return this.e==11?".":""},v.e=0;var MWe,$N,iP,Wor,DWe,eC=null,Pte,lve=null,PWe,aP,cve=null,BWe,FWe,$We,UWe,GWe,jor,Q5,Kor,Xor,Qor,Zor,UN,Jor,elr,hs=0,eOn=V(Hy,"RegEx/Token",122);G(138,122,{3:1,138:1,122:1},Yd),v.Qm=function(n){var s,u,f;if(this.e==4)if(this==PWe)u=".";else if(this==Pte)u="\\d";else if(this==UN)u="\\w";else if(this==Q5)u="\\s";else{f=new gy,f.a+="[";for(s=0;s0&&(f.a+=","),this.b[s]===this.b[s+1])Ol(f,hG(this.b[s]));else Ol(f,hG(this.b[s])),f.a+="-",Ol(f,hG(this.b[s+1]));f.a+="]",u=f.a}else if(this==$We)u="\\D";else if(this==GWe)u="\\W";else if(this==UWe)u="\\S";else{f=new gy,f.a+="[^";for(s=0;s0&&(f.a+=","),this.b[s]===this.b[s+1])Ol(f,hG(this.b[s]));else Ol(f,hG(this.b[s])),f.a+="-",Ol(f,hG(this.b[s+1]));f.a+="]",u=f.a}return u},v.a=!1,v.c=!1;var Dsa=V(Hy,"RegEx/RangeToken",138);G(592,1,{592:1},u5e),v.a=0;var Psa=V(Hy,"RegEx/RegexParser/ReferencePosition",592);G(591,1,{3:1,591:1},Z3t),v.Fb=function(n){var s;if(n==null)return!1;if(!He(n,591))return!1;return s=b(n,591),Br(this.b,s.b)&&this.a==s.a},v.Hb=function(){return Ry(this.b+"/"+M8e(this.a))},v.Ib=function(){return this.c.Qm(this.a)},v.a=0;var Bsa=V(Hy,"RegEx/RegularExpression",591);G(228,122,eN,g1),v.Km=function(){return this.a},v.Qm=function(n){var s,u,f;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:f="\\"+cue(this.a&Ds);break;case 12:f="\\f";break;case 10:f="\\n";break;case 13:f="\\r";break;case 9:f="\\t";break;case 27:f="\\e";break;default:if(this.a>=ml)u=(s=this.a>>>0,"0"+s.toString(16)),f="\\v"+Of(u,u.length-6,u.length);else f=""+cue(this.a&Ds)}break;case 8:this==BWe||this==FWe?f=""+cue(this.a&Ds):f="\\"+cue(this.a&Ds);break;default:f=null}return f},v.a=0;var Fsa=V(Hy,"RegEx/Token/CharToken",228);G(318,122,eN,VT),v.Lm=function(n){return this.a},v.Nm=function(n){this.b=n},v.Om=function(n){this.c=n},v.Pm=function(){return 1},v.Qm=function(n){var s;if(this.e==3)if(this.c<0&&this.b<0)s=this.a.Qm(n)+"*";else if(this.c==this.b)s=this.a.Qm(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)s=this.a.Qm(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)s=this.a.Qm(n)+"{"+this.c+",}";else throw ve(new vc("Token#toString(): CLOSURE "+this.c+ll+this.b));else if(this.c<0&&this.b<0)s=this.a.Qm(n)+"*?";else if(this.c==this.b)s=this.a.Qm(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)s=this.a.Qm(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)s=this.a.Qm(n)+"{"+this.c+",}?";else throw ve(new vc("Token#toString(): NONGREEDYCLOSURE "+this.c+ll+this.b));return s},v.b=0,v.c=0;var $sa=V(Hy,"RegEx/Token/ClosureToken",318);G(837,122,eN,J6e),v.Lm=function(n){return n==0?this.a:this.b},v.Pm=function(){return 2},v.Qm=function(n){var s;return this.b.e==3&&this.b.Lm(0)==this.a?s=this.a.Qm(n)+"+":this.b.e==9&&this.b.Lm(0)==this.a?s=this.a.Qm(n)+"+?":s=this.a.Qm(n)+(""+this.b.Qm(n)),s};var Usa=V(Hy,"RegEx/Token/ConcatToken",837);G(1945,122,eN,_Dt),v.Lm=function(n){if(n==0)return this.d;if(n==1)return this.b;throw ve(new vc("Internal Error: "+n))},v.Pm=function(){return!this.b?1:2},v.Qm=function(n){var s;return this.c>0?s="(?("+this.c+")":this.a.e==8?s="(?("+this.a+")":s="(?"+this.a,!this.b?s+=this.d+")":s+=this.d+"|"+this.b+")",s},v.c=0;var Gsa=V(Hy,"RegEx/Token/ConditionToken",1945);G(1946,122,eN,u7t),v.Lm=function(n){return this.b},v.Pm=function(){return 1},v.Qm=function(n){return"(?"+(this.a==0?"":M8e(this.a))+(this.c==0?"":M8e(this.c))+":"+this.b.Qm(n)+")"},v.a=0,v.c=0;var zsa=V(Hy,"RegEx/Token/ModifierToken",1946);G(838,122,eN,cOe),v.Lm=function(n){return this.a},v.Pm=function(){return 1},v.Qm=function(n){var s=null;switch(this.e){case 6:this.b==0?s="(?:"+this.a.Qm(n)+")":s="("+this.a.Qm(n)+")";break;case 20:s="(?="+this.a.Qm(n)+")";break;case 21:s="(?!"+this.a.Qm(n)+")";break;case 22:s="(?<="+this.a.Qm(n)+")";break;case 23:s="(?"+this.a.Qm(n)+")"}return s},v.b=0;var Vsa=V(Hy,"RegEx/Token/ParenToken",838);G(530,122,{3:1,122:1,530:1},she),v.Mm=function(){return this.b},v.Qm=function(n){return this.e==12?"\\"+this.a:Pxn(this.b)},v.a=0;var Hsa=V(Hy,"RegEx/Token/StringToken",530);G(477,122,eN,YM),v.Jm=function(n){rE(this,n)},v.Lm=function(n){return b(Ow(this.a,n),122)},v.Pm=function(){return!this.a?0:this.a.a.c.length},v.Qm=function(n){var s,u,f,g,_;if(this.e==1){if(this.a.a.c.length==2)s=b(Ow(this.a,0),122),u=b(Ow(this.a,1),122),u.e==3&&u.Lm(0)==s?g=s.Qm(n)+"+":u.e==9&&u.Lm(0)==s?g=s.Qm(n)+"+?":g=s.Qm(n)+(""+u.Qm(n));else{_=new gy;for(f=0;f=this.c.b:this.a<=this.c.b},v.Sb=function(){return this.b>0},v.Tb=function(){return this.b},v.Vb=function(){return this.b-1},v.Qb=function(){throw ve(new fy(EXt))},v.a=0,v.b=0;var Xsa=V(RFe,"ExclusiveRange/RangeIterator",258),Qf=E6(ZZ,"C"),ci=E6(GD,"I"),wd=E6(d5,"Z"),P_=E6(zD,"J"),Gh=E6(FD,"B"),xo=E6($D,"D"),tC=E6(UD,"F"),Mk=E6(VD,"S"),tOn=ns("org.eclipse.elk.core.labels","ILabelManager"),zWe=ns(cl,"DiagnosticChain"),VWe=ns(KKt,"ResourceSet"),HWe=V(cl,"InvocationTargetException",null),rlr=(KW(),g0n),nlr=nlr=sEn;lmn(inn),imn("permProps",[[["locale","default"],[wXt,"gecko1_8"]],[["locale","default"],[wXt,"safari"]]]),nlr(null,"elk",null)}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(a,o,l){function h(E,w){if(!(E instanceof w))throw TypeError("Cannot call a class as a function")}function d(E,w){if(!E)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w==="object"||typeof w==="function")?w:E}function p(E,w){if(typeof w!=="function"&&w!==null)throw TypeError("Super expression must either be null or a function, not "+typeof w);if(E.prototype=Object.create(w&&w.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),w)Object.setPrototypeOf?Object.setPrototypeOf(E,w):E.__proto__=w}var m=a("./elk-api.js").default,y=function(E){p(w,E);function w(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};h(this,w);var x=Object.assign({},T),k=!1;try{a.resolve("web-worker"),k=!0}catch(L){}if(T.workerUrl)if(k){var A=a("web-worker");x.workerFactory=function(L){return new A(L)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +`;return g};var Q6n=V(ND,"TGraph",121);G(643,508,{3:1,508:1,643:1,96:1,137:1});var qji=V(ND,"TShape",643);G(40,643,{3:1,508:1,40:1,643:1,96:1,137:1},wde),_.Ib=function(){return G2(this)};var Hee=V(ND,"TNode",40);G(236,1,T1,db),_.Jc=function(n){Vo(this,n)},_.Kc=function(){var n;return n=ti(this.a.d,0),new KC(n)};var Yji=V(ND,"TNode/2",236);G(329,1,To,KC),_.Nb=function(n){Go(this,n)},_.Pb=function(){return b(Jn(this.a),65).c},_.Ob=function(){return JF(this.a)},_.Qb=function(){Xhe(this.a)};var Wji=V(ND,"TNode/2/1",329);G(1923,1,Pa,yvt),_.Kf=function(n,s){h6n(this,b(n,121),s)};var jji=V(Eu,"CompactionProcessor",1923);G(1924,1,ki,FCt),_.Ne=function(n,s){return Zmn(this.a,b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Kji=V(Eu,"CompactionProcessor/lambda$0$Type",1924);G(1925,1,Si,k5t),_.Mb=function(n){return idn(this.b,this.a,b(n,42))},_.a=0,_.b=0;var Xji=V(Eu,"CompactionProcessor/lambda$1$Type",1925);G(1934,1,ki,vvt),_.Ne=function(n,s){return Kun(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Qji=V(Eu,"CompactionProcessor/lambda$10$Type",1934);G(1935,1,ki,_vt),_.Ne=function(n,s){return csn(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Zji=V(Eu,"CompactionProcessor/lambda$11$Type",1935);G(1936,1,ki,Evt),_.Ne=function(n,s){return Xun(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Jji=V(Eu,"CompactionProcessor/lambda$12$Type",1936);G(1926,1,Si,$Ct),_.Mb=function(n){return Yan(this.a,b(n,42))},_.a=0;var eKi=V(Eu,"CompactionProcessor/lambda$2$Type",1926);G(1927,1,Si,UCt),_.Mb=function(n){return Wan(this.a,b(n,42))},_.a=0;var tKi=V(Eu,"CompactionProcessor/lambda$3$Type",1927);G(1928,1,Si,wvt),_.Mb=function(n){return b(n,40).c.indexOf(UZ)==-1};var rKi=V(Eu,"CompactionProcessor/lambda$4$Type",1928);G(1929,1,{},GCt),_.Kb=function(n){return spn(this.a,b(n,40))},_.a=0;var nKi=V(Eu,"CompactionProcessor/lambda$5$Type",1929);G(1930,1,{},zCt),_.Kb=function(n){return pgn(this.a,b(n,40))},_.a=0;var iKi=V(Eu,"CompactionProcessor/lambda$6$Type",1930);G(1931,1,ki,VCt),_.Ne=function(n,s){return x0n(this.a,b(n,240),b(s,240))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var aKi=V(Eu,"CompactionProcessor/lambda$7$Type",1931);G(1932,1,ki,HCt),_.Ne=function(n,s){return C0n(this.a,b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var sKi=V(Eu,"CompactionProcessor/lambda$8$Type",1932);G(1933,1,ki,Svt),_.Ne=function(n,s){return usn(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var oKi=V(Eu,"CompactionProcessor/lambda$9$Type",1933);G(1921,1,Pa,Tvt),_.Kf=function(n,s){okn(b(n,121),s)};var lKi=V(Eu,"DirectionProcessor",1921);G(1913,1,Pa,p6t),_.Kf=function(n,s){R3n(this,b(n,121),s)};var cKi=V(Eu,"FanProcessor",1913);G(1937,1,Pa,xvt),_.Kf=function(n,s){K4n(b(n,121),s)};var uKi=V(Eu,"GraphBoundsProcessor",1937);G(1938,1,{},Cvt),_.Ye=function(n){return b(n,40).e.a};var hKi=V(Eu,"GraphBoundsProcessor/lambda$0$Type",1938);G(1939,1,{},kvt),_.Ye=function(n){return b(n,40).e.b};var dKi=V(Eu,"GraphBoundsProcessor/lambda$1$Type",1939);G(1940,1,{},Avt),_.Ye=function(n){return Rin(b(n,40))};var fKi=V(Eu,"GraphBoundsProcessor/lambda$2$Type",1940);G(1941,1,{},Rvt),_.Ye=function(n){return Ain(b(n,40))};var pKi=V(Eu,"GraphBoundsProcessor/lambda$3$Type",1941);G(262,22,{3:1,34:1,22:1,262:1,196:1},yw),_.dg=function(){switch(this.g){case 0:return new Hkt;case 1:return new p6t;case 2:return new Vkt;case 3:return new Mvt;case 4:return new Ovt;case 8:return new Ivt;case 5:return new Tvt;case 6:return new Pvt;case 7:return new yvt;case 9:return new xvt;case 10:return new Bvt;default:throw _e(new fn(F0e+(this.f!=null?this.f:""+this.g)))}};var NVe,LVe,MVe,DVe,PVe,BVe,FVe,$Ve,UVe,GVe,Mbe,Z6n=ei(Eu,$0e,262,li,lPt,Lln),Fnr;G(1920,1,Pa,Ivt),_.Kf=function(n,s){lIn(b(n,121),s)};var gKi=V(Eu,"LevelCoordinatesProcessor",1920);G(1918,1,Pa,Ovt),_.Kf=function(n,s){RCn(this,b(n,121),s)},_.a=0;var mKi=V(Eu,"LevelHeightProcessor",1918);G(1919,1,T1,Nvt),_.Jc=function(n){Vo(this,n)},_.Kc=function(){return Hr(),o6(),aN};var bKi=V(Eu,"LevelHeightProcessor/1",1919);G(1914,1,Pa,Vkt),_.Kf=function(n,s){V4n(this,b(n,121),s)};var yKi=V(Eu,"LevelProcessor",1914);G(1915,1,Si,Lvt),_.Mb=function(n){return er(Jt(ce(b(n,40),(Ma(),T_))))};var vKi=V(Eu,"LevelProcessor/lambda$0$Type",1915);G(1916,1,Pa,Mvt),_.Kf=function(n,s){CSn(this,b(n,121),s)},_.a=0;var _Ki=V(Eu,"NeighborsProcessor",1916);G(1917,1,T1,Dvt),_.Jc=function(n){Vo(this,n)},_.Kc=function(){return Hr(),o6(),aN};var EKi=V(Eu,"NeighborsProcessor/1",1917);G(1922,1,Pa,Pvt),_.Kf=function(n,s){A3n(this,b(n,121),s)},_.a=0;var wKi=V(Eu,"NodePositionProcessor",1922);G(1912,1,Pa,Hkt),_.Kf=function(n,s){u5n(this,b(n,121),s)};var SKi=V(Eu,"RootProcessor",1912);G(1942,1,Pa,Bvt),_.Kf=function(n,s){s_n(b(n,121),s)};var TKi=V(Eu,"Untreeifyer",1942);G(392,22,{3:1,34:1,22:1,392:1},Mce);var Lz,Dbe,zVe,VVe=ei(qG,"EdgeRoutingMode",392,li,wfn,Mln),$nr,Mz,AN,Pbe,HVe,qVe,Bbe,Fbe,YVe,$be,WVe,Ube,k9,Gbe,qee,Yee,g0,rg,RN,A9,R9,Ky,jVe,Unr,zbe,T_,Dz,Pz;G(862,1,Ep,DSt),_.hf=function(n){Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,nBe),""),UWt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(an(),!1)),(Fy(),so)),_s),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,iBe),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,aBe),""),"Tree Level"),"The index for the tree level the node is in"),$t(0)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,sBe),""),UWt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),$t(-1)),pc),qo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oBe),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),QVe),ja),cHe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,lBe),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),KVe),ja),VVe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,cBe),""),"Search Order"),"Which search order to use when computing a spanning tree."),XVe),ja),hHe),Tr(Qr)))),Iqt((new FSt,n))};var Gnr,znr,Vnr,KVe,Hnr,qnr,XVe,Ynr,Wnr,QVe,xKi=V(qG,"MrTreeMetaDataProvider",862);G(1006,1,Ep,FSt),_.hf=function(n){Iqt(n)};var jnr,ZVe,JVe,OS,eHe,tHe,Vbe,Knr,Xnr,Qnr,Znr,Jnr,eir,tir,rHe,nHe,iHe,rir,yk,Wee,aHe,nir,sHe,Hbe,iir,air,sir,oHe,oir,Vm,lHe,CKi=V(qG,"MrTreeOptions",1006);G(1007,1,{},Fvt),_.sf=function(){var n;return n=new g6t,n},_.tf=function(n){};var kKi=V(qG,"MrTreeOptions/MrtreeFactory",1007);G(353,22,{3:1,34:1,22:1,353:1},Aj);var qbe,jee,Ybe,Wbe,cHe=ei(qG,"OrderWeighting",353,li,Ipn,Dln),lir;G(433,22,{3:1,34:1,22:1,433:1},MRe);var uHe,jbe,hHe=ei(qG,"TreeifyingOrder",433,li,xdn,Pln),cir;G(1486,1,Cl,$St),_.rg=function(n){return b(n,121),uir},_.Kf=function(n,s){Umn(this,b(n,121),s)};var uir,AKi=V("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1486);G(1487,1,Cl,USt),_.rg=function(n){return b(n,121),hir},_.Kf=function(n,s){W4n(this,b(n,121),s)};var hir,RKi=V(YO,"NodeOrderer",1487);G(1494,1,{},e_t),_.td=function(n){return EOt(n)};var IKi=V(YO,"NodeOrderer/0methodref$lambda$6$Type",1494);G(1488,1,Si,t_t),_.Mb=function(n){return JA(),er(Jt(ce(b(n,40),(Ma(),T_))))};var OKi=V(YO,"NodeOrderer/lambda$0$Type",1488);G(1489,1,Si,r_t),_.Mb=function(n){return JA(),b(ce(b(n,40),(Oc(),yk)),17).a<0};var NKi=V(YO,"NodeOrderer/lambda$1$Type",1489);G(1490,1,Si,YCt),_.Mb=function(n){return gmn(this.a,b(n,40))};var LKi=V(YO,"NodeOrderer/lambda$2$Type",1490);G(1491,1,Si,qCt),_.Mb=function(n){return cpn(this.a,b(n,40))};var MKi=V(YO,"NodeOrderer/lambda$3$Type",1491);G(1492,1,ki,n_t),_.Ne=function(n,s){return Fgn(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var DKi=V(YO,"NodeOrderer/lambda$4$Type",1492);G(1493,1,Si,i_t),_.Mb=function(n){return JA(),b(ce(b(n,40),(Ma(),Fbe)),17).a!=0};var PKi=V(YO,"NodeOrderer/lambda$5$Type",1493);G(1495,1,Cl,BSt),_.rg=function(n){return b(n,121),dir},_.Kf=function(n,s){t3n(this,b(n,121),s)},_.b=0;var dir,BKi=V("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1495);G(1496,1,Cl,PSt),_.rg=function(n){return b(n,121),fir},_.Kf=function(n,s){Bkn(b(n,121),s)};var fir,J6n=V(Dd,"EdgeRouter",1496);G(1498,1,ki,Jvt),_.Ne=function(n,s){return jc(b(n,17).a,b(s,17).a)},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var FKi=V(Dd,"EdgeRouter/0methodref$compare$Type",1498);G(1503,1,{},Uvt),_.Ye=function(n){return rt(ht(n))};var $Ki=V(Dd,"EdgeRouter/1methodref$doubleValue$Type",1503);G(1505,1,ki,Gvt),_.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var UKi=V(Dd,"EdgeRouter/2methodref$compare$Type",1505);G(1507,1,ki,zvt),_.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var GKi=V(Dd,"EdgeRouter/3methodref$compare$Type",1507);G(1509,1,{},$vt),_.Ye=function(n){return rt(ht(n))};var zKi=V(Dd,"EdgeRouter/4methodref$doubleValue$Type",1509);G(1511,1,ki,Vvt),_.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var VKi=V(Dd,"EdgeRouter/5methodref$compare$Type",1511);G(1513,1,ki,Hvt),_.Ne=function(n,s){return Ra(rt(ht(n)),rt(ht(s)))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var HKi=V(Dd,"EdgeRouter/6methodref$compare$Type",1513);G(1497,1,{},qvt),_.Kb=function(n){return Tb(),b(ce(b(n,40),(Oc(),Vm)),17)};var qKi=V(Dd,"EdgeRouter/lambda$0$Type",1497);G(1508,1,{},Yvt),_.Kb=function(n){return Ssn(b(n,40))};var YKi=V(Dd,"EdgeRouter/lambda$11$Type",1508);G(1510,1,{},A5t),_.Kb=function(n){return Qcn(this.b,this.a,b(n,40))},_.a=0,_.b=0;var WKi=V(Dd,"EdgeRouter/lambda$13$Type",1510);G(1512,1,{},R5t),_.Kb=function(n){return Tsn(this.b,this.a,b(n,40))},_.a=0,_.b=0;var jKi=V(Dd,"EdgeRouter/lambda$15$Type",1512);G(1514,1,ki,Wvt),_.Ne=function(n,s){return Pvn(b(n,65),b(s,65))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var KKi=V(Dd,"EdgeRouter/lambda$17$Type",1514);G(1515,1,ki,jvt),_.Ne=function(n,s){return Bvn(b(n,65),b(s,65))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var XKi=V(Dd,"EdgeRouter/lambda$18$Type",1515);G(1516,1,ki,Kvt),_.Ne=function(n,s){return $vn(b(n,65),b(s,65))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var QKi=V(Dd,"EdgeRouter/lambda$19$Type",1516);G(1499,1,Si,WCt),_.Mb=function(n){return Udn(this.a,b(n,40))},_.a=0;var ZKi=V(Dd,"EdgeRouter/lambda$2$Type",1499);G(1517,1,ki,Xvt),_.Ne=function(n,s){return Fvn(b(n,65),b(s,65))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var JKi=V(Dd,"EdgeRouter/lambda$20$Type",1517);G(1500,1,ki,Qvt),_.Ne=function(n,s){return Bcn(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var eXi=V(Dd,"EdgeRouter/lambda$3$Type",1500);G(1501,1,ki,Zvt),_.Ne=function(n,s){return Fcn(b(n,40),b(s,40))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var tXi=V(Dd,"EdgeRouter/lambda$4$Type",1501);G(1502,1,{},a_t),_.Kb=function(n){return xsn(b(n,40))};var rXi=V(Dd,"EdgeRouter/lambda$5$Type",1502);G(1504,1,{},I5t),_.Kb=function(n){return Zcn(this.b,this.a,b(n,40))},_.a=0,_.b=0;var nXi=V(Dd,"EdgeRouter/lambda$7$Type",1504);G(1506,1,{},O5t),_.Kb=function(n){return Csn(this.b,this.a,b(n,40))},_.a=0,_.b=0;var iXi=V(Dd,"EdgeRouter/lambda$9$Type",1506);G(675,1,{675:1},c$t),_.e=0,_.f=!1,_.g=!1;var aXi=V(Dd,"MultiLevelEdgeNodeNodeGap",675);G(1943,1,ki,s_t),_.Ne=function(n,s){return Xdn(b(n,240),b(s,240))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var sXi=V(Dd,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1943);G(1944,1,ki,o_t),_.Ne=function(n,s){return Qdn(b(n,240),b(s,240))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var oXi=V(Dd,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1944),vk;G(501,22,{3:1,34:1,22:1,501:1,188:1,196:1},DRe),_.dg=function(){return KBt(this)},_.qg=function(){return KBt(this)};var Kee,_k,dHe=ei(uBe,"RadialLayoutPhases",501,li,ydn,Bln),pir;G(1113,205,sE,U3t),_.rf=function(n,s){var u,f,g,E,S,C;if(u=Mzt(this,n),s.Ug("Radial layout",u.c.length),er(Jt(It(n,(s_(),SHe))))||K$((f=new dM((bw(),new cw(n))),f)),C=GEn(n),Ta(n,(f4(),vk),C),!C)throw _e(new fn("The given graph is not a tree!"));g=rt(ht(It(n,Zee))),g==0&&(g=pGt(n)),Ta(n,Zee,g);for(S=new me(Mzt(this,n));S.a=3){Ot=b(We(et,0),27),Wt=b(We(et,1),27),E=0;while(E+2=Ot.f+Wt.f+U||Wt.f>=wt.f+Ot.f+U){wr=!0;break}else++E}else wr=!0;if(!wr){re=et.i;for(C=new kn(et);C.e!=C.i.gc();)S=b(Dn(C),27),Ta(S,(Hi(),Xz),$t(re)),--re;uHt(n,new vA),s.Vg();return}u=(H$(this.a),H0(this.a,(nQ(),Fz),b(It(n,ZHe),188)),H0(this.a,Jee,b(It(n,YHe),188)),H0(this.a,sye,b(It(n,KHe),188)),JRe(this.a,(Kr=new Ns,Fi(Kr,Fz,(pQ(),cye)),Fi(Kr,Jee,lye),er(Jt(It(n,HHe)))&&Fi(Kr,Fz,oye),Kr)),mG(this.a,n)),M=1/u.c.length,xr=0;for(ue=new me(u);ue.a0&&vBt((pn(s-1,n.length),n.charCodeAt(s-1)),aWt))--s;if(f>=s)throw _e(new fn("The given string does not contain any numbers."));if(g=fx((Do(f,s,n.length),n.substr(f,s-f)),`,|;|\r| +`),g.length!=2)throw _e(new fn("Exactly two numbers are expected, "+g.length+" were found."));try{this.a=sx(ox(g[0])),this.b=sx(ox(g[1]))}catch(E){if(E=Qa(E),He(E,130))throw u=E,_e(new fn(sWt+u));else throw _e(E)}},_.Ib=function(){return"("+this.a+","+this.b+")"},_.a=0,_.b=0;var uo=V(UG,"KVector",8);G(75,67,{3:1,4:1,20:1,31:1,56:1,16:1,67:1,15:1,75:1,423:1},Rh,tj,FIt),_.Pc=function(){return nbn(this)},_.cg=function(n){var s,u,f,g,E,S;f=fx(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),Hd(this);try{u=0,E=0,g=0,S=0;while(u0)E%2==0?g=sx(f[u]):S=sx(f[u]),E>0&&E%2!=0&&Oi(this,new Dt(g,S)),++E;++u}}catch(C){if(C=Qa(C),He(C,130))throw s=C,_e(new fn("The given string does not match the expected format for vectors."+s));else throw _e(C)}},_.Ib=function(){var n,s,u;n=new Vd("("),s=ti(this,0);while(s.b!=s.d.c)u=b(Jn(s),8),Bi(n,u.a+","+u.b),s.b!=s.d.c&&(n.a+="; ");return(n.a+=")",n).a};var Dqe=V(UG,"KVectorChain",75);G(255,22,{3:1,34:1,22:1,255:1},$M);var Rye,cte,ute,Vz,Hz,hte,Pqe=ei(_d,"Alignment",255,li,egn,ocn),Xar;G(991,1,Ep,KSt),_.hf=function(n){WVt(n)};var Bqe,Iye,Qar,Fqe,$qe,Zar,Uqe,Jar,esr,Gqe,zqe,tsr,TZi=V(_d,"BoxLayouterOptions",991);G(992,1,{},m2t),_.sf=function(){var n;return n=new v2t,n},_.tf=function(n){};var xZi=V(_d,"BoxLayouterOptions/BoxFactory",992);G(298,22,{3:1,34:1,22:1,298:1},UM);var B9,Oye,F9,$9,U9,Nye,Lye=ei(_d,"ContentAlignment",298,li,tgn,lcn),rsr;G(699,1,Ep,LAe),_.hf=function(n){Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,ojt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(Fy(),wk)),or),Tr((Q0(),Qr))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,ljt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),zg),rOn),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,LPe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Vqe),ja),Pqe),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,S5),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,YBe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),zg),Dqe),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,DZ),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),qqe),q5),Lye),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,HG),""),"Debug Mode"),"Whether additional debug information shall be generated."),(an(),!1)),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,gge),""),d9e),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Yqe),ja),z9),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,VG),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),Kqe),ja),Wye),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,HBe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,MZ),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),Zqe),ja),FYe),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Qs]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,oS),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),oYe),zg),uUe),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Qs]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,xD),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,BZ),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,CD),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,D0e),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),dYe),ja),GYe),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,PZ),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),zg),uo),Ua(Qs,Ce(Te(M1,1),Rt,170,0,[xE,Xy]))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,MG),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),pc),qo),Ua(Qs,Ce(Te(M1,1),Rt,170,0,[Hm]))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,mZ),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,TD),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,HPe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),Jqe),zg),Dqe),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,WPe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,jPe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,cjt),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),zg),oOn),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,XPe),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),eYe),zg),cUe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,OPe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),so),_s),Ua(Qs,Ce(Te(M1,1),Rt,170,0,[Hm,xE,Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,ujt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),el),Bs),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,hjt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,djt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,DG),""),rjt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),so),_s),Tr(Qr)))),Ls(n,DG,lS,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,fjt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,pjt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),$t(100)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,gjt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,mjt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),$t(4000)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,bjt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),$t(400)),pc),qo),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,yjt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,vjt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,_jt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Ejt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,qBe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Hqe),ja),QYe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,_Pe),Bg),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,EPe),Bg),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,A0e),Bg),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,wPe),Bg),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,M0e),Bg),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,pge),Bg),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,SPe),Bg),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,CPe),Bg),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,TPe),Bg),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,xPe),Bg),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,vx),Bg),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,kPe),Bg),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),el),Bs),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,APe),Bg),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),el),Bs),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Qs]))))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,RPe),Bg),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),zg),Vsr),Ua(Qs,Ce(Te(M1,1),Rt,170,0,[Hm,xE,Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,QPe),Bg),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),SYe),zg),cUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,bge),xjt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),pc),qo),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Qs]))))),Ls(n,bge,mge,hsr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,mge),xjt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),lYe),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,PPe),Cjt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),rYe),zg),uUe),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,VO),Cjt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),nYe),q5),Al),Ua(Qs,Ce(Te(M1,1),Rt,170,0,[Xy]))))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,$Pe),WZ),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),uYe),ja),Y9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,UPe),WZ),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),ja),Y9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,GPe),WZ),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),ja),Y9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,zPe),WZ),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),ja),Y9),Tr(Qs)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,VPe),WZ),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),ja),Y9),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,q4),$ge),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),iYe),q5),K9),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,T5),$ge),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),sYe),q5),VYe),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,x5),$ge),"Node Size Minimum"),"The minimal size to which a node can be reduced."),aYe),zg),uo),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,zO),$ge),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),so),_s),Tr(Qr)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,qPe),fge),"Edge Label Placement"),"Gives a hint on where to put edge labels."),Wqe),ja),CYe),Tr(Xy)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,bZ),fge),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),so),_s),Tr(Xy)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,wjt),"font"),"Font Name"),"Font name used for a label."),wk),or),Tr(Xy)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,Sjt),"font"),"Font Size"),"Font size used for a label."),pc),qo),Tr(Xy)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,KPe),Uge),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),zg),uo),Tr(xE)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,YPe),Uge),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),pc),qo),Tr(xE)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,NPe),Uge),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),gYe),ja),bl),Tr(xE)))),Er(n,new fr(vr(yr(_r(pr(br(gr(mr(new dr,IPe),Uge),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),el),Bs),Tr(xE)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,HO),KBe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),fYe),q5),bte),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,BPe),KBe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,FPe),KBe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,PG),WG),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),el),Bs),Tr(Qr)))),Ls(n,PG,lS,vsr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,WBe),WG),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),ja),Ste),Tr(Qs)))),Ls(n,WBe,lS,_sr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,BG),WG),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),el),Bs),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Qs]))))),Ls(n,BG,lS,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,FG),WG),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),el),Bs),Ua(Qr,Ce(Te(M1,1),Rt,170,0,[Qs]))))),Ls(n,FG,lS,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,lS),WG),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),ja),qYe),Tr(Qs)))),Ls(n,lS,zO,null),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,jBe),WG),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),el),Bs),Tr(Qr)))),Ls(n,jBe,lS,ysr),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,MPe),kjt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),so),_s),Tr(Qs)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,DPe),kjt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),so),_s),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,R0e),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),el),Bs),Tr(Hm)))),Er(n,new fr(vr(yr(_r($r(pr(br(gr(mr(new dr,Tjt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),Qqe),ja),NYe),Tr(Hm)))),RM(n,new YA(TM(r6(t6(new fA,wn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),RM(n,new YA(TM(r6(t6(new fA,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),RM(n,new YA(TM(r6(t6(new fA,ih),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),RM(n,new YA(TM(r6(t6(new fA,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),RM(n,new YA(TM(r6(t6(new fA,GWt),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),RM(n,new YA(TM(r6(t6(new fA,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),RM(n,new YA(TM(r6(t6(new fA,Vf),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),NVt((new XSt,n)),WVt((new KSt,n)),sVt((new QSt,n))};var ON,nsr,Vqe,Sk,isr,asr,Hqe,Tk,xk,ssr,qz,qqe,Yz,CE,Yqe,Mye,Dye,Wqe,jqe,Kqe,Xqe,Qqe,osr,Ck,Zqe,lsr,Wz,Pye,jz,Bye,NS,Jqe,NN,eYe,tYe,rYe,kk,nYe,kE,iYe,Yx,Ak,aYe,x_,sYe,dte,Kz,Qy,oYe,csr,lYe,usr,hsr,cYe,uYe,Fye,$ye,Uye,Gye,hYe,Ed,G9,dYe,zye,Vye,Wx,fYe,pYe,Rk,gYe,Y5,Xz,Hye,Ik,dsr,qye,fsr,psr,mYe,gsr,bYe,yYe,W5,vYe,fte,_Ye,EYe,AE,msr,wYe,SYe,TYe,pte,Qz,LN,j5,bsr,ysr,gte,vsr,xYe,_sr,CZi=V(_d,"CoreOptions",699);G(88,22,{3:1,34:1,22:1,88:1},v$);var Vg,Kl,sc,Hg,jf,z9=ei(_d,d9e,88,li,a0n,ccn),Esr;G(278,22,{3:1,34:1,22:1,278:1},zce);var MN,jx,DN,CYe=ei(_d,"EdgeLabelPlacement",278,li,Mfn,ucn),wsr;G(223,22,{3:1,34:1,22:1,223:1},Ij);var PN,Zz,K5,Yye,Wye=ei(_d,"EdgeRouting",223,li,Mpn,hcn),Ssr;G(321,22,{3:1,34:1,22:1,321:1},GM);var kYe,AYe,RYe,IYe,jye,OYe,NYe=ei(_d,"EdgeType",321,li,J0n,dcn),Tsr;G(989,1,Ep,XSt),_.hf=function(n){NVt(n)};var LYe,MYe,DYe,PYe,xsr,BYe,V9,kZi=V(_d,"FixedLayouterOptions",989);G(990,1,{},b2t),_.sf=function(){var n;return n=new A2t,n},_.tf=function(n){};var AZi=V(_d,"FixedLayouterOptions/FixedFactory",990);G(346,22,{3:1,34:1,22:1,346:1},Vce);var Zy,mte,H9,FYe=ei(_d,"HierarchyHandling",346,li,Nfn,fcn),Csr;G(291,22,{3:1,34:1,22:1,291:1},Oj);var D1,C_,Jz,eV,ksr=ei(_d,"LabelSide",291,li,Lpn,pcn),Asr;G(95,22,{3:1,34:1,22:1,95:1},t4);var Ub,m0,kp,b0,af,y0,Ap,P1,v0,Al=ei(_d,"NodeLabelPlacement",95,li,emn,gcn),Rsr;G(256,22,{3:1,34:1,22:1,256:1},_$);var $Ye,q9,k_,UYe,tV,Y9=ei(_d,"PortAlignment",256,li,_0n,mcn),Isr;G(101,22,{3:1,34:1,22:1,101:1},zM);var RE,xu,B1,BN,qg,A_,GYe=ei(_d,"PortConstraints",101,li,Z0n,bcn),Osr;G(279,22,{3:1,34:1,22:1,279:1},VM);var W9,j9,Gb,rV,R_,X5,bte=ei(_d,"PortLabelPlacement",279,li,Q0n,ycn),Nsr;G(64,22,{3:1,34:1,22:1,64:1},E$);var Cn,gn,Kf,Xf,bh,oh,Yg,_0,sd,Uh,Cu,od,yh,vh,E0,sf,of,Rp,Kn,Cc,yn,bl=ei(_d,"PortSide",64,li,s0n,vcn),Lsr;G(993,1,Ep,QSt),_.hf=function(n){sVt(n)};var Msr,Dsr,zYe,Psr,Bsr,RZi=V(_d,"RandomLayouterOptions",993);G(994,1,{},y2t),_.sf=function(){var n;return n=new x2t,n},_.tf=function(n){};var IZi=V(_d,"RandomLayouterOptions/RandomFactory",994);G(386,22,{3:1,34:1,22:1,386:1},Nj);var Kx,nV,iV,IE,K9=ei(_d,"SizeConstraint",386,li,Npn,_cn),Fsr;G(264,22,{3:1,34:1,22:1,264:1},r4);var aV,yte,FN,Kye,sV,X9,vte,_te,Ete,VYe=ei(_d,"SizeOptions",264,li,dmn,Ecn),$sr;G(280,22,{3:1,34:1,22:1,280:1},Hce);var Xx,HYe,wte,qYe=ei(_d,"TopdownNodeTypes",280,li,Dfn,wcn),Usr;G(347,22,XBe);var YYe,WYe,Ste=ei(_d,"TopdownSizeApproximator",347,li,Idn,Tcn);G(987,347,XBe,_Ot),_.Tg=function(n){return XFt(n)};var OZi=ei(_d,"TopdownSizeApproximator/1",987,Ste,null,null);G(988,347,XBe,aNt),_.Tg=function(n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr,tn;s=b(It(n,(Hi(),Ik)),143),Wt=(Bv(),ae=new yM,ae),sG(Wt,n),xr=new Zn;for(E=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));E.e!=E.i.gc();)f=b(Dn(E),27),Ve=(re=new yM,re),FQ(Ve,Wt),sG(Ve,f),tn=XFt(f),o4(Ve,d.Math.max(f.g,tn.a),d.Math.max(f.f,tn.b)),Hu(xr.f,f,Ve);for(g=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));g.e!=g.i.gc();){f=b(Dn(g),27);for(U=new kn((!f.e&&(f.e=new Wr(ws,f,7,4)),f.e));U.e!=U.i.gc();)M=b(Dn(U),74),wt=b(Jl(wl(xr.f,f)),27),Ot=b(An(xr,We((!M.c&&(M.c=new Wr(qn,M,5,8)),M.c),0)),27),et=(q=new Ele,q),ii((!et.b&&(et.b=new Wr(qn,et,4,7)),et.b),wt),ii((!et.c&&(et.c=new Wr(qn,et,5,8)),et.c),Ot),BQ(et,Ya(wt)),sG(et,M)}de=b(j$(s.f),205);try{de.rf(Wt,new O2t),PNt(s.f,de)}catch(Kr){if(Kr=Qa(Kr),He(Kr,103))throw ue=Kr,_e(ue);else throw _e(Kr)}return kg(Wt,xk)||kg(Wt,Tk)||DDe(Wt),O=rt(ht(It(Wt,xk))),C=rt(ht(It(Wt,Tk))),S=O/C,u=rt(ht(It(Wt,Qz)))*d.Math.sqrt((!Wt.a&&(Wt.a=new kt(ra,Wt,10,11)),Wt.a).i),wr=b(It(Wt,Qy),107),Be=wr.b+wr.c+1,xe=wr.d+wr.a+1,new Dt(d.Math.max(Be,u),d.Math.max(xe,u/S))};var NZi=ei(_d,"TopdownSizeApproximator/2",988,Ste,null,null),Gsr;G(344,1,{871:1},vA),_.Ug=function(n,s){return cUt(this,n,s)},_.Vg=function(){NUt(this)},_.Wg=function(){return this.q},_.Xg=function(){return!this.f?null:ahe(this.f)},_.Yg=function(){return ahe(this.a)},_.Zg=function(){return this.p},_.$g=function(){return!1},_._g=function(){return this.n},_.ah=function(){return this.p!=null&&!this.b},_.bh=function(n){var s;if(this.n)s=n,Gt(this.f,s)},_.dh=function(n,s){var u,f;this.n&&!!n&&Xfn(this,(u=new bNt,f=cpe(u,n),ORn(u),f),(VX(),Qye))},_.eh=function(n){var s;if(this.b)return null;else return s=Dgn(this,this.g),Oi(this.a,s),s.i=this,this.d=n,s},_.fh=function(n){n>0&&!this.b&&ZNe(this,n)},_.b=!1,_.c=0,_.d=-1,_.e=null,_.f=null,_.g=-1,_.j=!1,_.k=!1,_.n=!1,_.o=0,_.q=0,_.r=0;var LZi=V(Lc,"BasicProgressMonitor",344);G(717,205,sE,v2t),_.rf=function(n,s){uHt(n,s)};var MZi=V(Lc,"BoxLayoutProvider",717);G(983,1,ki,a4t),_.Ne=function(n,s){return OCn(this,b(n,27),b(s,27))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)},_.a=!1;var DZi=V(Lc,"BoxLayoutProvider/1",983);G(163,1,{163:1},_X,HIt),_.Ib=function(){return this.c?Q8e(this.c):i_(this.b)};var PZi=V(Lc,"BoxLayoutProvider/Group",163);G(320,22,{3:1,34:1,22:1,320:1},Lj);var jYe,KYe,XYe,Xye,QYe=ei(Lc,"BoxLayoutProvider/PackingMode",320,li,Dpn,xcn),zsr;G(984,1,ki,_2t),_.Ne=function(n,s){return Xhn(b(n,163),b(s,163))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var BZi=V(Lc,"BoxLayoutProvider/lambda$0$Type",984);G(985,1,ki,E2t),_.Ne=function(n,s){return zhn(b(n,163),b(s,163))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var FZi=V(Lc,"BoxLayoutProvider/lambda$1$Type",985);G(986,1,ki,w2t),_.Ne=function(n,s){return Vhn(b(n,163),b(s,163))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var $Zi=V(Lc,"BoxLayoutProvider/lambda$2$Type",986);G(1384,1,{845:1},S2t),_.Mg=function(n,s){return uj(),!He(s,167)||q3t((t5(),b(n,167)),s)};var UZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1384);G(1385,1,Ln,s4t),_.Cd=function(n){sbn(this.a,b(n,149))};var GZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1385);G(1386,1,Ln,C2t),_.Cd=function(n){b(n,96),uj()};var zZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1386);G(1390,1,Ln,o4t),_.Cd=function(n){Amn(this.a,b(n,96))};var VZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1390);G(1388,1,Si,D5t),_.Mb=function(n){return G1n(this.a,this.b,b(n,149))};var HZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1388);G(1387,1,Si,P5t),_.Mb=function(n){return wsn(this.a,this.b,b(n,845))};var qZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1387);G(1389,1,Ln,B5t),_.Cd=function(n){Dun(this.a,this.b,b(n,149))};var YZi=V(Lc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1389);G(947,1,{},k2t),_.Kb=function(n){return NRt(n)},_.Fb=function(n){return this===n};var WZi=V(Lc,"ElkUtil/lambda$0$Type",947);G(948,1,Ln,F5t),_.Cd=function(n){MTn(this.a,this.b,b(n,74))},_.a=0,_.b=0;var jZi=V(Lc,"ElkUtil/lambda$1$Type",948);G(949,1,Ln,$5t),_.Cd=function(n){xnn(this.a,this.b,b(n,166))},_.a=0,_.b=0;var KZi=V(Lc,"ElkUtil/lambda$2$Type",949);G(950,1,Ln,U5t),_.Cd=function(n){_an(this.a,this.b,b(n,135))},_.a=0,_.b=0;var XZi=V(Lc,"ElkUtil/lambda$3$Type",950);G(951,1,Ln,l4t),_.Cd=function(n){run(this.a,b(n,377))};var QZi=V(Lc,"ElkUtil/lambda$4$Type",951);G(325,1,{34:1,325:1},pM),_.Fd=function(n){return Kan(this,b(n,242))},_.Fb=function(n){var s;if(He(n,325))return s=b(n,325),this.a==s.a;return!1},_.Hb=function(){return Ks(this.a)},_.Ib=function(){return this.a+" (exclusive)"},_.a=0;var ZZi=V(Lc,"ExclusiveBounds/ExclusiveLowerBound",325);G(1119,205,sE,A2t),_.rf=function(n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be,Ve,et,wt,Ot,Wt,xr,wr;s.Ug("Fixed Layout",1),E=b(It(n,(Hi(),jqe)),223),q=0,re=0;for(Ve=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));Ve.e!=Ve.i.gc();){if(xe=b(Dn(Ve),27),wr=b(It(xe,(HX(),V9)),8),wr){if(kf(xe,wr.a,wr.b),b(It(xe,MYe),181).Hc((Md(),Kx)))ae=b(It(xe,PYe),8),ae.a>0&&ae.b>0&&nS(xe,ae.a,ae.b,!0,!0)}q=d.Math.max(q,xe.i+xe.g),re=d.Math.max(re,xe.j+xe.f);for(M=new kn((!xe.n&&(xe.n=new kt(Dl,xe,1,7)),xe.n));M.e!=M.i.gc();)C=b(Dn(M),135),wr=b(It(C,V9),8),!!wr&&kf(C,wr.a,wr.b),q=d.Math.max(q,xe.i+C.i+C.g),re=d.Math.max(re,xe.j+C.j+C.f);for(Ot=new kn((!xe.c&&(xe.c=new kt(ld,xe,9,9)),xe.c));Ot.e!=Ot.i.gc();){wt=b(Dn(Ot),123),wr=b(It(wt,V9),8),!!wr&&kf(wt,wr.a,wr.b),Wt=xe.i+wt.i,xr=xe.j+wt.j,q=d.Math.max(q,Wt+wt.g),re=d.Math.max(re,xr+wt.f);for(O=new kn((!wt.n&&(wt.n=new kt(Dl,wt,1,7)),wt.n));O.e!=O.i.gc();)C=b(Dn(O),135),wr=b(It(C,V9),8),!!wr&&kf(C,wr.a,wr.b),q=d.Math.max(q,Wt+C.i+C.g),re=d.Math.max(re,xr+C.j+C.f)}for(g=new Nn(Mn(Ob(xe).a.Kc(),new L));ri(g);)u=b(Gn(g),74),U=Tqt(u),q=d.Math.max(q,U.a),re=d.Math.max(re,U.b);for(f=new Nn(Mn(aG(xe).a.Kc(),new L));ri(f);)if(u=b(Gn(f),74),Ya(E1(u))!=n)U=Tqt(u),q=d.Math.max(q,U.a),re=d.Math.max(re,U.b)}if(E==(kb(),PN))for(Be=new kn((!n.a&&(n.a=new kt(ra,n,10,11)),n.a));Be.e!=Be.i.gc();){xe=b(Dn(Be),27);for(f=new Nn(Mn(Ob(xe).a.Kc(),new L));ri(f);)u=b(Gn(f),74),S=P3n(u),S.b==0?Ta(u,NS,null):Ta(u,NS,S)}if(!er(Jt(It(n,(HX(),DYe)))))et=b(It(n,xsr),107),de=q+et.b+et.c,ue=re+et.d+et.a,nS(n,de,ue,!0,!0);s.Vg()};var JZi=V(Lc,"FixedLayoutProvider",1119);G(385,137,{3:1,423:1,385:1,96:1,137:1},_le,wDt),_.cg=function(n){var s,u,f,g,E,S,C,O,M;if(!n)return;try{O=fx(n,";,;");for(E=O,S=0,C=E.length;S>16&Ds|s^f<<16},_.Kc=function(){return new c4t(this)},_.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+hc(this.b)+")":this.b==null?"pair("+hc(this.a)+",null)":"pair("+hc(this.a)+","+hc(this.b)+")"};var iJi=V(Lc,"Pair",42);G(995,1,To,c4t),_.Nb=function(n){Go(this,n)},_.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},_.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;else if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw _e(new yc)},_.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),_e(new Ah)},_.b=!1,_.c=!1;var aJi=V(Lc,"Pair/1",995);G(455,1,{455:1},ZNt),_.Fb=function(n){return zc(this.a,b(n,455).a)&&zc(this.c,b(n,455).c)&&zc(this.d,b(n,455).d)&&zc(this.b,b(n,455).b)},_.Hb=function(){return NU(Ce(Te(ao,1),en,1,5,[this.a,this.c,this.d,this.b]))},_.Ib=function(){return"("+this.a+ll+this.c+ll+this.d+ll+this.b+")"};var sJi=V(Lc,"Quadruple",455);G(1108,205,sE,x2t),_.rf=function(n,s){var u,f,g,E,S;if(s.Ug("Random Layout",1),(!n.a&&(n.a=new kt(ra,n,10,11)),n.a).i==0){s.Vg();return}E=b(It(n,(C7e(),Psr)),17),!!E&&E.a!=0?g=new JK(E.a):g=new Yde,u=ZF(ht(It(n,Msr))),S=ZF(ht(It(n,Bsr))),f=b(It(n,Dsr),107),eIn(n,g,u,S,f),s.Vg()};var oJi=V(Lc,"RandomLayoutProvider",1108);G(240,1,{240:1},_ue),_.Fb=function(n){return zc(this.a,b(n,240).a)&&zc(this.b,b(n,240).b)&&zc(this.c,b(n,240).c)},_.Hb=function(){return NU(Ce(Te(ao,1),en,1,5,[this.a,this.b,this.c]))},_.Ib=function(){return"("+this.a+ll+this.b+ll+this.c+")"};var lJi=V(Lc,"Triple",240),Ysr;G(562,1,{}),_.Lf=function(){return new Dt(this.f.i,this.f.j)},_.of=function(n){if(CLt(n,(Hi(),Ed)))return It(this.f,Wsr);return It(this.f,n)},_.Mf=function(){return new Dt(this.f.g,this.f.f)},_.Nf=function(){return this.g},_.pf=function(n){return kg(this.f,n)},_.Of=function(n){eh(this.f,n.a),th(this.f,n.b)},_.Pf=function(n){zw(this.f,n.a),Gw(this.f,n.b)},_.Qf=function(n){this.g=n},_.g=0;var Wsr,cJi=V(DD,"ElkGraphAdapters/AbstractElkGraphElementAdapter",562);G(563,1,{853:1},zW),_.Rf=function(){var n,s;if(!this.b){this.b=KK(NK(this.a).i);for(s=new kn(NK(this.a));s.e!=s.i.gc();)n=b(Dn(s),135),Gt(this.b,new Xle(n))}return this.b},_.b=null;var uJi=V(DD,"ElkGraphAdapters/ElkEdgeAdapter",563);G(289,562,{},cw),_.Sf=function(){return y$t(this)},_.a=null;var hJi=V(DD,"ElkGraphAdapters/ElkGraphAdapter",289);G(640,562,{187:1},Xle);var dJi=V(DD,"ElkGraphAdapters/ElkLabelAdapter",640);G(639,562,{695:1},iue),_.Rf=function(){return G_n(this)},_.Vf=function(){var n;return n=b(It(this.f,(Hi(),NN)),140),!n&&(n=new bM),n},_.Xf=function(){return z_n(this)},_.Zf=function(n){var s=new wue(n);Ta(this.f,(Hi(),NN),s)},_.$f=function(n){Ta(this.f,(Hi(),Qy),new m6e(n))},_.Tf=function(){return this.d},_.Uf=function(){var n,s;if(!this.a){this.a=new Ut;for(s=new Nn(Mn(aG(b(this.f,27)).a.Kc(),new L));ri(s);)n=b(Gn(s),74),Gt(this.a,new zW(n))}return this.a},_.Wf=function(){var n,s;if(!this.c){this.c=new Ut;for(s=new Nn(Mn(Ob(b(this.f,27)).a.Kc(),new L));ri(s);)n=b(Gn(s),74),Gt(this.c,new zW(n))}return this.c},_.Yf=function(){return BK(b(this.f,27)).i!=0||er(Jt(b(this.f,27).of((Hi(),Wz))))},_._f=function(){_gn(this,(bw(),Ysr))},_.a=null,_.b=null,_.c=null,_.d=null,_.e=null;var fJi=V(DD,"ElkGraphAdapters/ElkNodeAdapter",639);G(1284,562,{852:1},u4t),_.Rf=function(){return X_n(this)},_.Uf=function(){var n,s;if(!this.a){this.a=f1(b(this.f,123).hh().i);for(s=new kn(b(this.f,123).hh());s.e!=s.i.gc();)n=b(Dn(s),74),Gt(this.a,new zW(n))}return this.a},_.Wf=function(){var n,s;if(!this.c){this.c=f1(b(this.f,123).ih().i);for(s=new kn(b(this.f,123).ih());s.e!=s.i.gc();)n=b(Dn(s),74),Gt(this.c,new zW(n))}return this.c},_.ag=function(){return b(b(this.f,123).of((Hi(),Rk)),64)},_.bg=function(){var n,s,u,f,g,E,S,C;f=wg(b(this.f,123));for(u=new kn(b(this.f,123).ih());u.e!=u.i.gc();){n=b(Dn(u),74);for(C=new kn((!n.c&&(n.c=new Wr(qn,n,5,8)),n.c));C.e!=C.i.gc();)if(S=b(Dn(C),84),XT(ic(S),f))return!0;else if(ic(S)==f&&er(Jt(It(n,(Hi(),Pye)))))return!0}for(s=new kn(b(this.f,123).hh());s.e!=s.i.gc();){n=b(Dn(s),74);for(E=new kn((!n.b&&(n.b=new Wr(qn,n,4,7)),n.b));E.e!=E.i.gc();)if(g=b(Dn(E),84),XT(ic(g),f))return!0}return!1},_.a=null,_.b=null,_.c=null;var pJi=V(DD,"ElkGraphAdapters/ElkPortAdapter",1284);G(1285,1,ki,T2t),_.Ne=function(n,s){return Akn(b(n,123),b(s,123))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var gJi=V(DD,"ElkGraphAdapters/PortComparator",1285),I_=ns(Hf,"EObject"),$N=ns(j4,Ijt),lf=ns(j4,Ojt),oV=ns(j4,Njt),lV=ns(j4,"ElkShape"),qn=ns(j4,Ljt),ws=ns(j4,QBe),Ha=ns(j4,Mjt),cV=ns(Hf,Djt),Q9=ns(Hf,"EFactory"),jsr,Zye=ns(Hf,Pjt),ng=ns(Hf,"EPackage"),bo,Ksr,Xsr,tWe,Tte,Qsr,rWe,nWe,iWe,F1,Zsr,Jsr,Dl=ns(j4,ZBe),ra=ns(j4,JBe),ld=ns(j4,eFe);G(93,1,Bjt),_.th=function(){return this.uh(),null},_.uh=function(){return null},_.vh=function(){return this.uh(),!1},_.wh=function(){return!1},_.xh=function(n){ha(this,n)};var mJi=V(A5,"BasicNotifierImpl",93);G(99,93,Gjt),_.Yh=function(){return Ad(this)},_.yh=function(n,s){return n},_.zh=function(){throw _e(new bi)},_.Ah=function(n){var s;return s=El(b(jr(this.Dh(),this.Fh()),19)),this.Ph().Th(this,s.n,s.f,n)},_.Bh=function(n,s){throw _e(new bi)},_.Ch=function(n,s,u){return Jd(this,n,s,u)},_.Dh=function(){var n;if(this.zh()){if(n=this.zh().Nk(),n)return n}return this.ii()},_.Eh=function(){return Yfe(this)},_.Fh=function(){throw _e(new bi)},_.Gh=function(){var n,s;return s=this.$h().Ok(),!s&&this.zh().Tk(s=(OM(),n=ROe(Rm(this.Dh())),n==null?sve:new C$(this,n))),s},_.Hh=function(n,s){return n},_.Ih=function(n){var s=n.pk();return!s?Za(this.Dh(),n):n.Lj()},_.Jh=function(){var n=this.zh();return!n?null:n.Qk()},_.Kh=function(){return!this.zh()?null:this.zh().Nk()},_.Lh=function(n,s,u){return dQ(this,n,s,u)},_.Mh=function(n){return N6(this,n)},_.Nh=function(n,s){return Ohe(this,n,s)},_.Oh=function(){var n=this.zh();return!!n&&n.Rk()},_.Ph=function(){throw _e(new bi)},_.Qh=function(){return aQ(this)},_.Rh=function(n,s,u,f){return o5(this,n,s,f)},_.Sh=function(n,s,u){var f;return f=b(jr(this.Dh(),s),69),f.wk().zk(this,this.hi(),s-this.ji(),n,u)},_.Th=function(n,s,u,f){return GK(this,n,s,f)},_.Uh=function(n,s,u){var f;return f=b(jr(this.Dh(),s),69),f.wk().Ak(this,this.hi(),s-this.ji(),n,u)},_.Vh=function(){return!!this.zh()&&!!this.zh().Pk()},_.Wh=function(n){return nfe(this,n)},_.Xh=function(n){return ULt(this,n)},_.Zh=function(n){return lqt(this,n)},_.$h=function(){throw _e(new bi)},_._h=function(){return!this.zh()?null:this.zh().Pk()},_.ai=function(){return aQ(this)},_.bi=function(n,s){Gfe(this,n,s)},_.ci=function(n){this.$h().Sk(n)},_.di=function(n){this.$h().Vk(n)},_.ei=function(n){this.$h().Uk(n)},_.fi=function(n,s){var u,f,g,E;if(E=this.Jh(),!!E&&!!n)s=ol(E.El(),this,s),E.Il(this);if(f=this.Ph(),f)if((spe(this,this.Ph(),this.Fh()).Bb&ml)!=0)g=f.Qh(),!!g&&(!n?g.Hl(this):!E&&g.Il(this));else s=(u=this.Fh(),u>=0?this.Ah(s):this.Ph().Th(this,-1-u,null,s)),s=this.Ch(null,-1,s);return this.di(n),s},_.gi=function(n){var s,u,f,g,E,S,C,O;if(u=this.Dh(),E=Za(u,n),s=this.ji(),E>=s)return b(n,69).wk().Dk(this,this.hi(),E-s);else if(E<=-1)if(S=F4((Ph(),Yo),u,n),S){if(_l(),b(S,69).xk()||(S=WA(Hl(Yo,S))),g=(f=this.Ih(S),b(f>=0?this.Lh(f,!0,!0):eS(this,S,!0),160)),O=S.Ik(),O>1||O==-1)return b(b(g,220).Sl(n,!1),79)}else throw _e(new fn(f_+n.xe()+Gge));else if(n.Jk())return f=this.Ih(n),b(f>=0?this.Lh(f,!1,!0):eS(this,n,!1),79);return C=new iRt(this,n),C},_.hi=function(){return MNe(this)},_.ii=function(){return(Hv(),sn).S},_.ji=function(){return Un(this.ii())},_.ki=function(n){Ffe(this,n)},_.Ib=function(){return o0(this)};var bJi=V(on,"BasicEObjectImpl",99),eor;G(119,99,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1}),_.li=function(n){var s=LNe(this);return s[n]},_.mi=function(n,s){var u=LNe(this);ls(u,n,s)},_.ni=function(n){var s=LNe(this);ls(s,n,null)},_.th=function(){return b(un(this,4),129)},_.uh=function(){throw _e(new bi)},_.vh=function(){return(this.Db&4)!=0},_.zh=function(){throw _e(new bi)},_.oi=function(n){a5(this,2,n)},_.Bh=function(n,s){this.Db=s<<16|this.Db&255,this.oi(n)},_.Dh=function(){return dh(this)},_.Fh=function(){return this.Db>>16},_.Gh=function(){var n,s;return OM(),s=ROe(Rm((n=b(un(this,16),29),!n?this.ii():n))),s==null?sve:new C$(this,s)},_.wh=function(){return(this.Db&1)==0},_.Jh=function(){return b(un(this,128),2034)},_.Kh=function(){return b(un(this,16),29)},_.Oh=function(){return(this.Db&32)!=0},_.Ph=function(){return b(un(this,2),54)},_.Vh=function(){return(this.Db&64)!=0},_.$h=function(){throw _e(new bi)},_._h=function(){return b(un(this,64),288)},_.ci=function(n){a5(this,16,n)},_.di=function(n){a5(this,128,n)},_.ei=function(n){a5(this,64,n)},_.hi=function(){return rh(this)},_.Db=0;var yJi=V(on,"MinimalEObjectImpl",119);G(120,119,{110:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),_.oi=function(n){this.Cb=n},_.Ph=function(){return this.Cb};var vJi=V(on,"MinimalEObjectImpl/Container",120);G(2083,120,{110:1,342:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),_.Lh=function(n,s,u){return K7e(this,n,s,u)},_.Uh=function(n,s,u){return FMe(this,n,s,u)},_.Wh=function(n){return VOe(this,n)},_.bi=function(n,s){MLe(this,n,s)},_.ii=function(){return Xc(),Jsr},_.ki=function(n){SLe(this,n)},_.nf=function(){return FFt(this)},_.gh=function(){return!this.o&&(this.o=new Mh((Xc(),F1),Jy,this,0)),this.o},_.of=function(n){return It(this,n)},_.pf=function(n){return kg(this,n)},_.qf=function(n,s){return Ta(this,n,s)};var _Ji=V(uE,"EMapPropertyHolderImpl",2083);G(572,120,{110:1,377:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},OW),_.Lh=function(n,s,u){switch(n){case 0:return this.a;case 1:return this.b}return dQ(this,n,s,u)},_.Wh=function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return nfe(this,n)},_.bi=function(n,s){switch(n){case 0:wX(this,rt(ht(s)));return;case 1:EX(this,rt(ht(s)));return}Gfe(this,n,s)},_.ii=function(){return Xc(),Ksr},_.ki=function(n){switch(n){case 0:wX(this,0);return;case 1:EX(this,0);return}Ffe(this,n)},_.Ib=function(){var n;if((this.Db&64)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (x: ",QC(n,this.a),n.a+=", y: ",QC(n,this.b),n.a+=")",n.a},_.a=0,_.b=0;var EJi=V(uE,"ElkBendPointImpl",572);G(739,2083,{110:1,342:1,167:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),_.Lh=function(n,s,u){return n7e(this,n,s,u)},_.Sh=function(n,s,u){return Ofe(this,n,s,u)},_.Uh=function(n,s,u){return pde(this,n,s,u)},_.Wh=function(n){return bLe(this,n)},_.bi=function(n,s){pMe(this,n,s)},_.ii=function(){return Xc(),Qsr},_.ki=function(n){jLe(this,n)},_.jh=function(){return this.k},_.kh=function(){return NK(this)},_.Ib=function(){return Ude(this)},_.k=null;var wJi=V(uE,"ElkGraphElementImpl",739);G(740,739,{110:1,342:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),_.Lh=function(n,s,u){return h7e(this,n,s,u)},_.Wh=function(n){return b7e(this,n)},_.bi=function(n,s){gMe(this,n,s)},_.ii=function(){return Xc(),Zsr},_.ki=function(n){T7e(this,n)},_.lh=function(){return this.f},_.mh=function(){return this.g},_.nh=function(){return this.i},_.oh=function(){return this.j},_.ph=function(n,s){o4(this,n,s)},_.qh=function(n,s){kf(this,n,s)},_.rh=function(n){eh(this,n)},_.sh=function(n){th(this,n)},_.Ib=function(){return Pfe(this)},_.f=0,_.g=0,_.i=0,_.j=0;var SJi=V(uE,"ElkShapeImpl",740);G(741,740,{110:1,342:1,84:1,167:1,422:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1}),_.Lh=function(n,s,u){return z7e(this,n,s,u)},_.Sh=function(n,s,u){return lMe(this,n,s,u)},_.Uh=function(n,s,u){return cMe(this,n,s,u)},_.Wh=function(n){return LLe(this,n)},_.bi=function(n,s){w8e(this,n,s)},_.ii=function(){return Xc(),Xsr},_.ki=function(n){B7e(this,n)},_.hh=function(){return!this.d&&(this.d=new Wr(ws,this,8,5)),this.d},_.ih=function(){return!this.e&&(this.e=new Wr(ws,this,7,4)),this.e};var TJi=V(uE,"ElkConnectableShapeImpl",741);G(326,739,{110:1,342:1,74:1,167:1,326:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},Ele),_.Ah=function(n){return iMe(this,n)},_.Lh=function(n,s,u){switch(n){case 3:return X$(this);case 4:return!this.b&&(this.b=new Wr(qn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Wr(qn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new kt(Ha,this,6,6)),this.a;case 7:return an(),!this.b&&(this.b=new Wr(qn,this,4,7)),this.b.i<=1&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i<=1)?!1:!0;case 8:return an(),rD(this)?!0:!1;case 9:return an(),Jw(this)?!0:!1;case 10:return an(),!this.b&&(this.b=new Wr(qn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i!=0)?!0:!1}return n7e(this,n,s,u)},_.Sh=function(n,s,u){var f;switch(s){case 3:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?iMe(this,u):this.Cb.Th(this,-1-f,null,u))),$Ie(this,b(n,27),u);case 4:return!this.b&&(this.b=new Wr(qn,this,4,7)),Vu(this.b,n,u);case 5:return!this.c&&(this.c=new Wr(qn,this,5,8)),Vu(this.c,n,u);case 6:return!this.a&&(this.a=new kt(Ha,this,6,6)),Vu(this.a,n,u)}return Ofe(this,n,s,u)},_.Uh=function(n,s,u){switch(s){case 3:return $Ie(this,null,u);case 4:return!this.b&&(this.b=new Wr(qn,this,4,7)),ol(this.b,n,u);case 5:return!this.c&&(this.c=new Wr(qn,this,5,8)),ol(this.c,n,u);case 6:return!this.a&&(this.a=new kt(Ha,this,6,6)),ol(this.a,n,u)}return pde(this,n,s,u)},_.Wh=function(n){switch(n){case 3:return!!X$(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Wr(qn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i<=1));case 8:return rD(this);case 9:return Jw(this);case 10:return!this.b&&(this.b=new Wr(qn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Wr(qn,this,5,8)),this.c.i!=0)}return bLe(this,n)},_.bi=function(n,s){switch(n){case 3:BQ(this,b(s,27));return;case 4:!this.b&&(this.b=new Wr(qn,this,4,7)),ni(this.b),!this.b&&(this.b=new Wr(qn,this,4,7)),ps(this.b,b(s,16));return;case 5:!this.c&&(this.c=new Wr(qn,this,5,8)),ni(this.c),!this.c&&(this.c=new Wr(qn,this,5,8)),ps(this.c,b(s,16));return;case 6:!this.a&&(this.a=new kt(Ha,this,6,6)),ni(this.a),!this.a&&(this.a=new kt(Ha,this,6,6)),ps(this.a,b(s,16));return}pMe(this,n,s)},_.ii=function(){return Xc(),tWe},_.ki=function(n){switch(n){case 3:BQ(this,null);return;case 4:!this.b&&(this.b=new Wr(qn,this,4,7)),ni(this.b);return;case 5:!this.c&&(this.c=new Wr(qn,this,5,8)),ni(this.c);return;case 6:!this.a&&(this.a=new kt(Ha,this,6,6)),ni(this.a);return}jLe(this,n)},_.Ib=function(){return CHt(this)};var xJi=V(uE,"ElkEdgeImpl",326);G(452,2083,{110:1,342:1,166:1,452:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},NW),_.Ah=function(n){return eMe(this,n)},_.Lh=function(n,s,u){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Os(lf,this,5)),this.a;case 6:return PLt(this);case 7:if(s)return lfe(this);return this.i;case 8:if(s)return ofe(this);return this.f;case 9:return!this.g&&(this.g=new Wr(Ha,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Wr(Ha,this,10,9)),this.e;case 11:return this.d}return K7e(this,n,s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 6:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?eMe(this,u):this.Cb.Th(this,-1-g,null,u))),FIe(this,b(n,74),u);case 9:return!this.g&&(this.g=new Wr(Ha,this,9,10)),Vu(this.g,n,u);case 10:return!this.e&&(this.e=new Wr(Ha,this,10,9)),Vu(this.e,n,u)}return E=b(jr((f=b(un(this,16),29),!f?(Xc(),Tte):f),s),69),E.wk().zk(this,rh(this),s-Un((Xc(),Tte)),n,u)},_.Uh=function(n,s,u){switch(s){case 5:return!this.a&&(this.a=new Os(lf,this,5)),ol(this.a,n,u);case 6:return FIe(this,null,u);case 9:return!this.g&&(this.g=new Wr(Ha,this,9,10)),ol(this.g,n,u);case 10:return!this.e&&(this.e=new Wr(Ha,this,10,9)),ol(this.e,n,u)}return FMe(this,n,s,u)},_.Wh=function(n){switch(n){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!PLt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return VOe(this,n)},_.bi=function(n,s){switch(n){case 1:F6(this,rt(ht(s)));return;case 2:U6(this,rt(ht(s)));return;case 3:B6(this,rt(ht(s)));return;case 4:$6(this,rt(ht(s)));return;case 5:!this.a&&(this.a=new Os(lf,this,5)),ni(this.a),!this.a&&(this.a=new Os(lf,this,5)),ps(this.a,b(s,16));return;case 6:xzt(this,b(s,74));return;case 7:RX(this,b(s,84));return;case 8:AX(this,b(s,84));return;case 9:!this.g&&(this.g=new Wr(Ha,this,9,10)),ni(this.g),!this.g&&(this.g=new Wr(Ha,this,9,10)),ps(this.g,b(s,16));return;case 10:!this.e&&(this.e=new Wr(Ha,this,10,9)),ni(this.e),!this.e&&(this.e=new Wr(Ha,this,10,9)),ps(this.e,b(s,16));return;case 11:aLe(this,wi(s));return}MLe(this,n,s)},_.ii=function(){return Xc(),Tte},_.ki=function(n){switch(n){case 1:F6(this,0);return;case 2:U6(this,0);return;case 3:B6(this,0);return;case 4:$6(this,0);return;case 5:!this.a&&(this.a=new Os(lf,this,5)),ni(this.a);return;case 6:xzt(this,null);return;case 7:RX(this,null);return;case 8:AX(this,null);return;case 9:!this.g&&(this.g=new Wr(Ha,this,9,10)),ni(this.g);return;case 10:!this.e&&(this.e=new Wr(Ha,this,10,9)),ni(this.e);return;case 11:aLe(this,null);return}SLe(this,n)},_.Ib=function(){return $Gt(this)},_.b=0,_.c=0,_.d=null,_.j=0,_.k=0;var CJi=V(uE,"ElkEdgeSectionImpl",452);G(158,120,{110:1,94:1,93:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),_.Lh=function(n,s,u){var f;if(n==0)return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;return Mf(this,n-Un(this.ii()),jr((f=b(un(this,16),29),!f?this.ii():f),n),s,u)},_.Sh=function(n,s,u){var f,g;if(s==0)return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);return g=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),g.wk().zk(this,rh(this),s-Un(this.ii()),n,u)},_.Uh=function(n,s,u){var f,g;if(s==0)return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);return g=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},_.Wh=function(n){var s;if(n==0)return!!this.Ab&&this.Ab.i!=0;return Nf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.Zh=function(n){return LDe(this,n)},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return}Ff(this,n-Un(this.ii()),jr((u=b(un(this,16),29),!u?this.ii():u),n),s)},_.di=function(n){a5(this,128,n)},_.ii=function(){return Vr(),_or},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return}Bf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.pi=function(){this.Bb|=1},_.qi=function(n){return cD(this,n)},_.Bb=0;var kJi=V(on,"EModelElementImpl",158);G(720,158,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},DAe),_.ri=function(n,s){return tqt(this,n,s)},_.si=function(n){var s,u,f,g,E;if(this.a!=Wd(n)||(n.Bb&256)!=0)throw _e(new fn(Vge+n.zb+dS));for(f=tc(n);nu(f.a).i!=0;){if(u=b(bG(f,0,(s=b(We(nu(f.a),0),89),E=s.c,He(E,90)?b(E,29):(Vr(),Lp))),29),Zw(u))return g=Wd(u).wi().si(u),b(g,54).ci(n),g;f=tc(u)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new yOt(n):new k6e(n)},_.ti=function(n,s){return iS(this,n,s)},_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.a}return Mf(this,n-Un((Vr(),M_)),jr((f=b(un(this,16),29),!f?M_:f),n),s,u)},_.Sh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 1:return!!this.a&&(u=b(this.a,54).Th(this,4,ng,u)),WLe(this,b(n,241),u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),M_):f),s),69),g.wk().zk(this,rh(this),s-Un((Vr(),M_)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 1:return WLe(this,null,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),M_):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),M_)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Nf(this,n-Un((Vr(),M_)),jr((s=b(un(this,16),29),!s?M_:s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:wUt(this,b(s,241));return}Ff(this,n-Un((Vr(),M_)),jr((u=b(un(this,16),29),!u?M_:u),n),s)},_.ii=function(){return Vr(),M_},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:wUt(this,null);return}Bf(this,n-Un((Vr(),M_)),jr((s=b(un(this,16),29),!s?M_:s),n))};var Z9,aWe,tor,AJi=V(on,"EFactoryImpl",720);G(1037,720,{110:1,2113:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1},L2t),_.ri=function(n,s){switch(n.hk()){case 12:return b(s,149).Pg();case 13:return hc(s);default:throw _e(new fn(QO+n.xe()+dS))}},_.si=function(n){var s,u,f,g,E,S,C,O;switch(n.G==-1&&(n.G=(s=Wd(n),s?Py(s.vi(),n):-1)),n.G){case 4:return E=new RAe,E;case 6:return S=new yM,S;case 7:return C=new R5e,C;case 8:return f=new Ele,f;case 9:return u=new OW,u;case 10:return g=new NW,g;case 11:return O=new M2t,O;default:throw _e(new fn(Vge+n.zb+dS))}},_.ti=function(n,s){switch(n.hk()){case 13:case 12:return null;default:throw _e(new fn(QO+n.xe()+dS))}};var RJi=V(uE,"ElkGraphFactoryImpl",1037);G(448,158,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1}),_.Gh=function(){var n,s;return s=(n=b(un(this,16),29),ROe(Rm(!n?this.ii():n))),s==null?(OM(),OM(),sve):new GIt(this,s)},_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.xe()}return Mf(this,n-Un(this.ii()),jr((f=b(un(this,16),29),!f?this.ii():f),n),s,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Nf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:this.ui(wi(s));return}Ff(this,n-Un(this.ii()),jr((u=b(un(this,16),29),!u?this.ii():u),n),s)},_.ii=function(){return Vr(),Eor},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:this.ui(null);return}Bf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.xe=function(){return this.zb},_.ui=function(n){zu(this,n)},_.Ib=function(){return B8(this)},_.zb=null;var IJi=V(on,"ENamedElementImpl",448);G(184,448,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},pLt),_.Ah=function(n){return L$t(this,n)},_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new UT(this,ig,this)),this.rb;case 6:return!this.vb&&(this.vb=new MA(ng,this,6,7)),this.vb;case 7:if(s)return this.Db>>16==7?b(this.Cb,241):null;return VLt(this)}return Mf(this,n-Un((Vr(),nv)),jr((f=b(un(this,16),29),!f?nv:f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 4:return!!this.sb&&(u=b(this.sb,54).Th(this,1,Q9,u)),XLe(this,b(n,480),u);case 5:return!this.rb&&(this.rb=new UT(this,ig,this)),Vu(this.rb,n,u);case 6:return!this.vb&&(this.vb=new MA(ng,this,6,7)),Vu(this.vb,n,u);case 7:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?L$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,7,u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),nv):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),nv)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 4:return XLe(this,null,u);case 5:return!this.rb&&(this.rb=new UT(this,ig,this)),ol(this.rb,n,u);case 6:return!this.vb&&(this.vb=new MA(ng,this,6,7)),ol(this.vb,n,u);case 7:return Jd(this,null,7,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),nv):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),nv)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!VLt(this)}return Nf(this,n-Un((Vr(),nv)),jr((s=b(un(this,16),29),!s?nv:s),n))},_.Zh=function(n){var s=VCn(this,n);return s?s:LDe(this,n)},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:DX(this,wi(s));return;case 3:MX(this,wi(s));return;case 4:Dfe(this,b(s,480));return;case 5:!this.rb&&(this.rb=new UT(this,ig,this)),ni(this.rb),!this.rb&&(this.rb=new UT(this,ig,this)),ps(this.rb,b(s,16));return;case 6:!this.vb&&(this.vb=new MA(ng,this,6,7)),ni(this.vb),!this.vb&&(this.vb=new MA(ng,this,6,7)),ps(this.vb,b(s,16));return}Ff(this,n-Un((Vr(),nv)),jr((u=b(un(this,16),29),!u?nv:u),n),s)},_.ei=function(n){var s,u;if(!!n&&!!this.rb)for(u=new kn(this.rb);u.e!=u.i.gc();)s=Dn(u),He(s,364)&&(b(s,364).w=null);a5(this,64,n)},_.ii=function(){return Vr(),nv},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:DX(this,null);return;case 3:MX(this,null);return;case 4:Dfe(this,null);return;case 5:!this.rb&&(this.rb=new UT(this,ig,this)),ni(this.rb);return;case 6:!this.vb&&(this.vb=new MA(ng,this,6,7)),ni(this.vb);return}Bf(this,n-Un((Vr(),nv)),jr((s=b(un(this,16),29),!s?nv:s),n))},_.pi=function(){Efe(this)},_.vi=function(){return!this.rb&&(this.rb=new UT(this,ig,this)),this.rb},_.wi=function(){return this.sb},_.xi=function(){return this.ub},_.yi=function(){return this.xb},_.zi=function(){return this.yb},_.Ai=function(n){this.ub=n},_.Ib=function(){var n;if((this.Db&64)!=0)return B8(this);return n=new pp(B8(this)),n.a+=" (nsURI: ",Ol(n,this.yb),n.a+=", nsPrefix: ",Ol(n,this.xb),n.a+=")",n.a},_.xb=null,_.yb=null;var ror,OJi=V(on,"EPackageImpl",184);G(569,184,{110:1,2115:1,569:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1},jGt),_.q=!1,_.r=!1;var nor=!1,NJi=V(uE,"ElkGraphPackageImpl",569);G(366,740,{110:1,342:1,167:1,135:1,422:1,366:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},RAe),_.Ah=function(n){return tMe(this,n)},_.Lh=function(n,s,u){switch(n){case 7:return HLt(this);case 8:return this.a}return h7e(this,n,s,u)},_.Sh=function(n,s,u){var f;switch(s){case 7:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?tMe(this,u):this.Cb.Th(this,-1-f,null,u))),z6e(this,b(n,167),u)}return Ofe(this,n,s,u)},_.Uh=function(n,s,u){if(s==7)return z6e(this,null,u);return pde(this,n,s,u)},_.Wh=function(n){switch(n){case 7:return!!HLt(this);case 8:return!Br("",this.a)}return b7e(this,n)},_.bi=function(n,s){switch(n){case 7:D8e(this,b(s,167));return;case 8:eLe(this,wi(s));return}gMe(this,n,s)},_.ii=function(){return Xc(),rWe},_.ki=function(n){switch(n){case 7:D8e(this,null);return;case 8:eLe(this,"");return}T7e(this,n)},_.Ib=function(){return PUt(this)},_.a="";var LJi=V(uE,"ElkLabelImpl",366);G(207,741,{110:1,342:1,84:1,167:1,27:1,422:1,207:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},yM),_.Ah=function(n){return aMe(this,n)},_.Lh=function(n,s,u){switch(n){case 9:return!this.c&&(this.c=new kt(ld,this,9,9)),this.c;case 10:return!this.a&&(this.a=new kt(ra,this,10,11)),this.a;case 11:return Ya(this);case 12:return!this.b&&(this.b=new kt(ws,this,12,3)),this.b;case 13:return an(),!this.a&&(this.a=new kt(ra,this,10,11)),this.a.i>0?!0:!1}return z7e(this,n,s,u)},_.Sh=function(n,s,u){var f;switch(s){case 9:return!this.c&&(this.c=new kt(ld,this,9,9)),Vu(this.c,n,u);case 10:return!this.a&&(this.a=new kt(ra,this,10,11)),Vu(this.a,n,u);case 11:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?aMe(this,u):this.Cb.Th(this,-1-f,null,u))),KIe(this,b(n,27),u);case 12:return!this.b&&(this.b=new kt(ws,this,12,3)),Vu(this.b,n,u)}return lMe(this,n,s,u)},_.Uh=function(n,s,u){switch(s){case 9:return!this.c&&(this.c=new kt(ld,this,9,9)),ol(this.c,n,u);case 10:return!this.a&&(this.a=new kt(ra,this,10,11)),ol(this.a,n,u);case 11:return KIe(this,null,u);case 12:return!this.b&&(this.b=new kt(ws,this,12,3)),ol(this.b,n,u)}return cMe(this,n,s,u)},_.Wh=function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Ya(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new kt(ra,this,10,11)),this.a.i>0}return LLe(this,n)},_.bi=function(n,s){switch(n){case 9:!this.c&&(this.c=new kt(ld,this,9,9)),ni(this.c),!this.c&&(this.c=new kt(ld,this,9,9)),ps(this.c,b(s,16));return;case 10:!this.a&&(this.a=new kt(ra,this,10,11)),ni(this.a),!this.a&&(this.a=new kt(ra,this,10,11)),ps(this.a,b(s,16));return;case 11:FQ(this,b(s,27));return;case 12:!this.b&&(this.b=new kt(ws,this,12,3)),ni(this.b),!this.b&&(this.b=new kt(ws,this,12,3)),ps(this.b,b(s,16));return}w8e(this,n,s)},_.ii=function(){return Xc(),nWe},_.ki=function(n){switch(n){case 9:!this.c&&(this.c=new kt(ld,this,9,9)),ni(this.c);return;case 10:!this.a&&(this.a=new kt(ra,this,10,11)),ni(this.a);return;case 11:FQ(this,null);return;case 12:!this.b&&(this.b=new kt(ws,this,12,3)),ni(this.b);return}B7e(this,n)},_.Ib=function(){return Q8e(this)};var MJi=V(uE,"ElkNodeImpl",207);G(193,741,{110:1,342:1,84:1,167:1,123:1,422:1,193:1,96:1,94:1,93:1,58:1,114:1,54:1,99:1,119:1,120:1},R5e),_.Ah=function(n){return rMe(this,n)},_.Lh=function(n,s,u){if(n==9)return wg(this);return z7e(this,n,s,u)},_.Sh=function(n,s,u){var f;switch(s){case 9:return!!this.Cb&&(u=(f=this.Db>>16,f>=0?rMe(this,u):this.Cb.Th(this,-1-f,null,u))),UIe(this,b(n,27),u)}return lMe(this,n,s,u)},_.Uh=function(n,s,u){if(s==9)return UIe(this,null,u);return cMe(this,n,s,u)},_.Wh=function(n){if(n==9)return!!wg(this);return LLe(this,n)},_.bi=function(n,s){switch(n){case 9:O8e(this,b(s,27));return}w8e(this,n,s)},_.ii=function(){return Xc(),iWe},_.ki=function(n){switch(n){case 9:O8e(this,null);return}B7e(this,n)},_.Ib=function(){return TVt(this)};var DJi=V(uE,"ElkPortImpl",193),ior=ns(cl,"BasicEMap/Entry");G(1122,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,119:1,120:1},M2t),_.Fb=function(n){return this===n},_.ld=function(){return this.b},_.Hb=function(){return Sw(this)},_.Di=function(n){tLe(this,b(n,149))},_.Lh=function(n,s,u){switch(n){case 0:return this.b;case 1:return this.c}return dQ(this,n,s,u)},_.Wh=function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return nfe(this,n)},_.bi=function(n,s){switch(n){case 0:tLe(this,b(s,149));return;case 1:JNe(this,s);return}Gfe(this,n,s)},_.ii=function(){return Xc(),F1},_.ki=function(n){switch(n){case 0:tLe(this,null);return;case 1:JNe(this,null);return}Ffe(this,n)},_.Bi=function(){var n;if(this.a==-1)n=this.b,this.a=!n?0:Da(n);return this.a},_.md=function(){return this.c},_.Ci=function(n){this.a=n},_.nd=function(n){var s=this.c;return JNe(this,n),s},_.Ib=function(){var n;if((this.Db&64)!=0)return o0(this);return n=new Dv,Bi(Bi(Bi(n,this.b?this.b.Pg():mh),P0e),QM(this.c)),n.a},_.a=-1,_.c=null;var Jy=V(uE,"ElkPropertyToValueMapEntryImpl",1122);G(996,1,{},B2t);var PJi=V(Ho,"JsonAdapter",996);G(216,63,Lb,mm);var BJi=V(Ho,"JsonImportException",216);G(868,1,{},M$t);var FJi=V(Ho,"JsonImporter",868);G(903,1,{},G5t);var $Ji=V(Ho,"JsonImporter/lambda$0$Type",903);G(904,1,{},z5t);var UJi=V(Ho,"JsonImporter/lambda$1$Type",904);G(912,1,{},h4t);var GJi=V(Ho,"JsonImporter/lambda$10$Type",912);G(914,1,{},V5t);var zJi=V(Ho,"JsonImporter/lambda$11$Type",914);G(915,1,{},H5t);var VJi=V(Ho,"JsonImporter/lambda$12$Type",915);G(921,1,{},rLt);var HJi=V(Ho,"JsonImporter/lambda$13$Type",921);G(920,1,{},nLt);var qJi=V(Ho,"JsonImporter/lambda$14$Type",920);G(916,1,{},q5t);var YJi=V(Ho,"JsonImporter/lambda$15$Type",916);G(917,1,{},Y5t);var WJi=V(Ho,"JsonImporter/lambda$16$Type",917);G(918,1,{},W5t);var jJi=V(Ho,"JsonImporter/lambda$17$Type",918);G(919,1,{},j5t);var KJi=V(Ho,"JsonImporter/lambda$18$Type",919);G(924,1,{},d4t);var XJi=V(Ho,"JsonImporter/lambda$19$Type",924);G(905,1,{},f4t);var QJi=V(Ho,"JsonImporter/lambda$2$Type",905);G(922,1,{},p4t);var ZJi=V(Ho,"JsonImporter/lambda$20$Type",922);G(923,1,{},g4t);var JJi=V(Ho,"JsonImporter/lambda$21$Type",923);G(927,1,{},m4t);var eea=V(Ho,"JsonImporter/lambda$22$Type",927);G(925,1,{},b4t);var tea=V(Ho,"JsonImporter/lambda$23$Type",925);G(926,1,{},y4t);var rea=V(Ho,"JsonImporter/lambda$24$Type",926);G(929,1,{},v4t);var nea=V(Ho,"JsonImporter/lambda$25$Type",929);G(928,1,{},_4t);var iea=V(Ho,"JsonImporter/lambda$26$Type",928);G(930,1,Ln,K5t),_.Cd=function(n){ngn(this.b,this.a,wi(n))};var aea=V(Ho,"JsonImporter/lambda$27$Type",930);G(931,1,Ln,X5t),_.Cd=function(n){ign(this.b,this.a,wi(n))};var sea=V(Ho,"JsonImporter/lambda$28$Type",931);G(932,1,{},Q5t);var oea=V(Ho,"JsonImporter/lambda$29$Type",932);G(908,1,{},E4t);var lea=V(Ho,"JsonImporter/lambda$3$Type",908);G(933,1,{},Z5t);var cea=V(Ho,"JsonImporter/lambda$30$Type",933);G(934,1,{},w4t);var uea=V(Ho,"JsonImporter/lambda$31$Type",934);G(935,1,{},S4t);var hea=V(Ho,"JsonImporter/lambda$32$Type",935);G(936,1,{},T4t);var dea=V(Ho,"JsonImporter/lambda$33$Type",936);G(937,1,{},x4t);var fea=V(Ho,"JsonImporter/lambda$34$Type",937);G(870,1,{},C4t);var pea=V(Ho,"JsonImporter/lambda$35$Type",870);G(941,1,{},Y6t);var gea=V(Ho,"JsonImporter/lambda$36$Type",941);G(938,1,Ln,k4t),_.Cd=function(n){c0n(this.a,b(n,377))};var mea=V(Ho,"JsonImporter/lambda$37$Type",938);G(939,1,Ln,J5t),_.Cd=function(n){Hin(this.a,this.b,b(n,166))};var bea=V(Ho,"JsonImporter/lambda$38$Type",939);G(940,1,Ln,eRt),_.Cd=function(n){qin(this.a,this.b,b(n,166))};var yea=V(Ho,"JsonImporter/lambda$39$Type",940);G(906,1,{},A4t);var vea=V(Ho,"JsonImporter/lambda$4$Type",906);G(942,1,Ln,R4t),_.Cd=function(n){u0n(this.a,b(n,8))};var _ea=V(Ho,"JsonImporter/lambda$40$Type",942);G(907,1,{},I4t);var Eea=V(Ho,"JsonImporter/lambda$5$Type",907);G(911,1,{},O4t);var wea=V(Ho,"JsonImporter/lambda$6$Type",911);G(909,1,{},N4t);var Sea=V(Ho,"JsonImporter/lambda$7$Type",909);G(910,1,{},L4t);var Tea=V(Ho,"JsonImporter/lambda$8$Type",910);G(913,1,{},M4t);var xea=V(Ho,"JsonImporter/lambda$9$Type",913);G(961,1,Ln,D4t),_.Cd=function(n){zA(this.a,new GT(wi(n)))};var Cea=V(Ho,"JsonMetaDataConverter/lambda$0$Type",961);G(962,1,Ln,P4t),_.Cd=function(n){thn(this.a,b(n,245))};var kea=V(Ho,"JsonMetaDataConverter/lambda$1$Type",962);G(963,1,Ln,B4t),_.Cd=function(n){efn(this.a,b(n,143))};var Aea=V(Ho,"JsonMetaDataConverter/lambda$2$Type",963);G(964,1,Ln,F4t),_.Cd=function(n){rhn(this.a,b(n,170))};var Rea=V(Ho,"JsonMetaDataConverter/lambda$3$Type",964);G(245,22,{3:1,34:1,22:1,245:1},AA);var xte,Cte,Jye,kte,Ate,Rte,eve,tve,Ite=ei(NG,"GraphFeature",245,li,$gn,Acn),aor;G(11,1,{34:1,149:1},va,es,Dr,No),_.Fd=function(n){return Xan(this,b(n,149))},_.Fb=function(n){return CLt(this,n)},_.Sg=function(){return jt(this)},_.Pg=function(){return this.b},_.Hb=function(){return Ry(this.b)},_.Ib=function(){return this.b};var Iea=V(NG,"Property",11);G(671,1,ki,Dle),_.Ne=function(n,s){return syn(this,b(n,96),b(s,96))},_.Fb=function(n){return this===n},_.Oe=function(){return new pi(this)};var Oea=V(NG,"PropertyHolderComparator",671);G(709,1,To,u5e),_.Nb=function(n){Go(this,n)},_.Pb=function(){return ogn(this)},_.Qb=function(){M3t()},_.Ob=function(){return!!this.a};var Nea=V(QZ,"ElkGraphUtil/AncestorIterator",709),sWe=ns(cl,"EList");G(70,56,{20:1,31:1,56:1,16:1,15:1,70:1,61:1}),_.bd=function(n,s){$8(this,n,s)},_.Fc=function(n){return ii(this,n)},_.cd=function(n,s){return TLe(this,n,s)},_.Gc=function(n){return ps(this,n)},_.Ii=function(){return new LA(this)},_.Ji=function(){return new k$(this)},_.Ki=function(n){return vU(this,n)},_.Li=function(){return!0},_.Mi=function(n,s){},_.Ni=function(){},_.Oi=function(n,s){Dhe(this,n,s)},_.Pi=function(n,s,u){},_.Qi=function(n,s){},_.Ri=function(n,s,u){},_.Fb=function(n){return lVt(this,n)},_.Hb=function(){return _Le(this)},_.Si=function(){return!1},_.Kc=function(){return new kn(this)},_.ed=function(){return new NA(this)},_.fd=function(n){var s=this.gc();if(n<0||n>s)throw _e(new FT(n,s));return new Uue(this,n)},_.Ui=function(n,s){this.Ti(n,this.dd(s))},_.Mc=function(n){return pX(this,n)},_.Wi=function(n,s){return s},_.hd=function(n,s){return C4(this,n,s)},_.Ib=function(){return p7e(this)},_.Yi=function(){return!0},_.Zi=function(n,s){return eO(this,s)};var Lea=V(cl,"AbstractEList",70);G(66,70,$m,LW,Uw,pLe),_.Ei=function(n,s){return Nfe(this,n,s)},_.Fi=function(n){return a$t(this,n)},_.Gi=function(n,s){MU(this,n,s)},_.Hi=function(n){nU(this,n)},_.$i=function(n){return ANe(this,n)},_.$b=function(){E8(this)},_.Hc=function(n){return mO(this,n)},_.Xb=function(n){return We(this,n)},_._i=function(n){var s,u,f;if(++this.j,u=this.g==null?0:this.g.length,n>u)f=this.g,s=u+(u/2|0)+4,s=0)return this.gd(s),!0;else return!1},_.Xi=function(n,s){return this.Dj(n,this.Zi(n,s))},_.gc=function(){return this.Ej()},_.Pc=function(){return this.Fj()},_.Qc=function(n){return this.Gj(n)},_.Ib=function(){return this.Hj()};var zea=V(cl,"DelegatingEList",2093);G(2094,2093,xKt),_.Ei=function(n,s){return cDe(this,n,s)},_.Fi=function(n){return this.Ei(this.Ej(),n)},_.Gi=function(n,s){KGt(this,n,s)},_.Hi=function(n){BGt(this,n)},_.Li=function(){return!this.Mj()},_.$b=function(){gD(this)},_.Ij=function(n,s,u,f,g){return new xLt(this,n,s,u,f,g)},_.Jj=function(n){ha(this.jj(),n)},_.Kj=function(){return null},_.Lj=function(){return-1},_.jj=function(){return null},_.Mj=function(){return!1},_.Nj=function(n,s){return s},_.Oj=function(n,s){return s},_.Pj=function(){return!1},_.Qj=function(){return!this.Aj()},_.Ti=function(n,s){var u,f;if(this.Pj())return f=this.Qj(),u=DMe(this,n,s),this.Jj(this.Ij(7,$t(s),u,n,f)),u;else return DMe(this,n,s)},_.gd=function(n){var s,u,f,g;if(this.Pj()){if(u=null,f=this.Qj(),s=this.Ij(4,g=dK(this,n),null,n,f),this.Mj()&&!!g)if(u=this.Oj(g,u),!u)this.Jj(s);else u.nj(s),u.oj();else if(!u)this.Jj(s);else u.nj(s),u.oj();return g}else{if(g=dK(this,n),this.Mj()&&!!g)u=this.Oj(g,null),!!u&&u.oj();return g}},_.Xi=function(n,s){return rHt(this,n,s)};var Vea=V(A5,"DelegatingNotifyingListImpl",2094);G(152,1,KG),_.nj=function(n){return _Me(this,n)},_.oj=function(){Vhe(this)},_.gj=function(){return this.d},_.Kj=function(){return null},_.Rj=function(){return null},_.hj=function(n){return-1},_.ij=function(){return Vzt(this)},_.jj=function(){return null},_.kj=function(){return U8e(this)},_.lj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},_.Sj=function(){return!1},_.mj=function(n){var s,u,f,g,E,S,C,O,M,U,q;switch(this.d){case 1:case 2:switch(g=n.gj(),g){case 1:case 2:if(E=n.jj(),it(E)===it(this.jj())&&this.hj(null)==n.hj(null))return this.g=n.ij(),n.gj()==1&&(this.d=1),!0}case 4:{switch(g=n.gj(),g){case 4:{if(E=n.jj(),it(E)===it(this.jj())&&this.hj(null)==n.hj(null)){if(M=CDe(this),O=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,S=n.lj(),this.d=6,q=new Uw(2),O<=S)ii(q,this.n),ii(q,n.kj()),this.g=Ce(Te(ci,1),$i,28,15,[this.o=O,S+1]);else ii(q,n.kj()),ii(q,this.n),this.g=Ce(Te(ci,1),$i,28,15,[this.o=S,O]);return this.n=q,M||(this.o=-2-this.o-1),!0}break}}break}case 6:{switch(g=n.gj(),g){case 4:{if(E=n.jj(),it(E)===it(this.jj())&&this.hj(null)==n.hj(null)){M=CDe(this),S=n.lj(),U=b(this.g,53),f=mt(ci,$i,28,U.length+1,15,1),s=0;while(s>>0,s.toString(16))),f.a+=" (eventType: ",this.d){case 1:{f.a+="SET";break}case 2:{f.a+="UNSET";break}case 3:{f.a+="ADD";break}case 5:{f.a+="ADD_MANY";break}case 4:{f.a+="REMOVE";break}case 6:{f.a+="REMOVE_MANY";break}case 7:{f.a+="MOVE";break}case 8:{f.a+="REMOVING_ADAPTER";break}case 9:{f.a+="RESOLVE";break}default:{ace(f,this.d);break}}if(IVt(this)&&(f.a+=", touch: true"),f.a+=", position: ",ace(f,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),f.a+=", notifier: ",qM(f,this.jj()),f.a+=", feature: ",qM(f,this.Kj()),f.a+=", oldValue: ",qM(f,U8e(this)),f.a+=", newValue: ",this.d==6&&He(this.g,53)){u=b(this.g,53),f.a+="[";for(n=0;n10){if(!this.b||this.c.j!=this.a)this.b=new n8(this),this.a=this.j;return z0(this.b,n)}else return mO(this,n)},_.Yi=function(){return!0},_.a=0;var Xea=V(cl,"AbstractEList/1",966);G(302,77,s0e,FT);var Qea=V(cl,"AbstractEList/BasicIndexOutOfBoundsException",302);G(37,1,To,kn),_.Nb=function(n){Go(this,n)},_.Xj=function(){if(this.i.j!=this.f)throw _e(new Cf)},_.Yj=function(){return Dn(this)},_.Ob=function(){return this.e!=this.i.gc()},_.Pb=function(){return this.Yj()},_.Qb=function(){Q8(this)},_.e=0,_.f=0,_.g=-1;var Zea=V(cl,"AbstractEList/EIterator",37);G(286,37,S1,NA,Uue),_.Qb=function(){Q8(this)},_.Rb=function(n){nFt(this,n)},_.Zj=function(){var n;try{return n=this.d.Xb(--this.e),this.Xj(),this.g=this.e,n}catch(s){if(s=Qa(s),He(s,77))throw this.Xj(),_e(new yc);else throw _e(s)}},_.$j=function(n){l$t(this,n)},_.Sb=function(){return this.e!=0},_.Tb=function(){return this.e},_.Ub=function(){return this.Zj()},_.Vb=function(){return this.e-1},_.Wb=function(n){this.$j(n)};var Jea=V(cl,"AbstractEList/EListIterator",286);G(355,37,To,LA),_.Yj=function(){return ife(this)},_.Qb=function(){throw _e(new bi)};var eta=V(cl,"AbstractEList/NonResolvingEIterator",355);G(398,286,S1,k$,r6e),_.Rb=function(n){throw _e(new bi)},_.Yj=function(){var n;try{return n=this.c.Vi(this.e),this.Xj(),this.g=this.e++,n}catch(s){if(s=Qa(s),He(s,77))throw this.Xj(),_e(new yc);else throw _e(s)}},_.Zj=function(){var n;try{return n=this.c.Vi(--this.e),this.Xj(),this.g=this.e,n}catch(s){if(s=Qa(s),He(s,77))throw this.Xj(),_e(new yc);else throw _e(s)}},_.Qb=function(){throw _e(new bi)},_.Wb=function(n){throw _e(new bi)};var tta=V(cl,"AbstractEList/NonResolvingEListIterator",398);G(2080,70,CKt),_.Ei=function(n,s){var u,f,g,E,S,C,O,M,U,q,re;if(g=s.gc(),g!=0){M=b(un(this.a,4),129),U=M==null?0:M.length,re=U+g,f=kde(this,re),q=U-n,q>0&&au(M,n,f,n+g,q),O=s.Kc();for(S=0;Su)throw _e(new FT(n,u));return new WNt(this,n)},_.$b=function(){var n,s;++this.j,n=b(un(this.a,4),129),s=n==null?0:n.length,dO(this,null),Dhe(this,s,n)},_.Hc=function(n){var s,u,f,g,E;if(s=b(un(this.a,4),129),s!=null){if(n!=null){for(f=s,g=0,E=f.length;g=u)throw _e(new FT(n,u));return s[n]},_.dd=function(n){var s,u,f;if(s=b(un(this.a,4),129),s!=null){if(n!=null){for(u=0,f=s.length;uu)throw _e(new FT(n,u));return new YNt(this,n)},_.Ti=function(n,s){var u,f,g;if(u=fFt(this),g=u==null?0:u.length,n>=g)throw _e(new Gl(Zge+n+hE+g));if(s>=g)throw _e(new Gl(Jge+s+hE+g));if(f=u[s],n!=s)n0&&au(n,0,s,0,u),s},_.Qc=function(n){var s,u,f;if(s=b(un(this.a,4),129),f=s==null?0:s.length,f>0){if(n.lengthf&&ls(n,f,null),n};var sor,rta=V(cl,"ArrayDelegatingEList",2080);G(1051,37,To,jMt),_.Xj=function(){if(this.b.j!=this.f||it(b(un(this.b.a,4),129))!==it(this.a))throw _e(new Cf)},_.Qb=function(){Q8(this),this.a=b(un(this.b.a,4),129)};var nta=V(cl,"ArrayDelegatingEList/EIterator",1051);G(722,286,S1,sNt,YNt),_.Xj=function(){if(this.b.j!=this.f||it(b(un(this.b.a,4),129))!==it(this.a))throw _e(new Cf)},_.$j=function(n){l$t(this,n),this.a=b(un(this.b.a,4),129)},_.Qb=function(){Q8(this),this.a=b(un(this.b.a,4),129)};var ita=V(cl,"ArrayDelegatingEList/EListIterator",722);G(1052,355,To,KMt),_.Xj=function(){if(this.b.j!=this.f||it(b(un(this.b.a,4),129))!==it(this.a))throw _e(new Cf)};var ata=V(cl,"ArrayDelegatingEList/NonResolvingEIterator",1052);G(723,398,S1,oNt,WNt),_.Xj=function(){if(this.b.j!=this.f||it(b(un(this.b.a,4),129))!==it(this.a))throw _e(new Cf)};var sta=V(cl,"ArrayDelegatingEList/NonResolvingEListIterator",723);G(615,302,s0e,qce);var ota=V(cl,"BasicEList/BasicIndexOutOfBoundsException",615);G(710,66,$m,HRe),_.bd=function(n,s){throw _e(new bi)},_.Fc=function(n){throw _e(new bi)},_.cd=function(n,s){throw _e(new bi)},_.Gc=function(n){throw _e(new bi)},_.$b=function(){throw _e(new bi)},_._i=function(n){throw _e(new bi)},_.Kc=function(){return this.Ii()},_.ed=function(){return this.Ji()},_.fd=function(n){return this.Ki(n)},_.Ti=function(n,s){throw _e(new bi)},_.Ui=function(n,s){throw _e(new bi)},_.gd=function(n){throw _e(new bi)},_.Mc=function(n){throw _e(new bi)},_.hd=function(n,s){throw _e(new bi)};var lta=V(cl,"BasicEList/UnmodifiableEList",710);G(721,1,{3:1,20:1,16:1,15:1,61:1,597:1}),_.bd=function(n,s){Fan(this,n,b(s,44))},_.Fc=function(n){return Osn(this,b(n,44))},_.Jc=function(n){Vo(this,n)},_.Xb=function(n){return b(We(this.c,n),136)},_.Ti=function(n,s){return b(this.c.Ti(n,s),44)},_.Ui=function(n,s){$an(this,n,b(s,44))},_.Lc=function(){return new Pr(null,new Gr(this,16))},_.gd=function(n){return b(this.c.gd(n),44)},_.hd=function(n,s){return ehn(this,n,b(s,44))},_.jd=function(n){q2(this,n)},_.Nc=function(){return new Gr(this,16)},_.Oc=function(){return new Pr(null,new Gr(this,16))},_.cd=function(n,s){return this.c.cd(n,s)},_.Gc=function(n){return this.c.Gc(n)},_.$b=function(){this.c.$b()},_.Hc=function(n){return this.c.Hc(n)},_.Ic=function(n){return xU(this.c,n)},_._j=function(){var n,s,u;if(this.d==null){this.d=mt(oWe,yFe,66,2*this.f+1,0,1),u=this.e,this.f=0;for(s=this.c.Kc();s.e!=s.i.gc();)n=b(s.Yj(),136),mQ(this,n);this.e=u}},_.Fb=function(n){return M6t(this,n)},_.Hb=function(){return _Le(this.c)},_.dd=function(n){return this.c.dd(n)},_.ak=function(){this.c=new $4t(this)},_.dc=function(){return this.f==0},_.Kc=function(){return this.c.Kc()},_.ed=function(){return this.c.ed()},_.fd=function(n){return this.c.fd(n)},_.bk=function(){return sU(this)},_.ck=function(n,s,u){return new W6t(n,s,u)},_.dk=function(){return new G2t},_.Mc=function(n){return _9t(this,n)},_.gc=function(){return this.f},_.kd=function(n,s){return new Sy(this.c,n,s)},_.Pc=function(){return this.c.Pc()},_.Qc=function(n){return this.c.Qc(n)},_.Ib=function(){return p7e(this.c)},_.e=0,_.f=0;var cta=V(cl,"BasicEMap",721);G(1046,66,$m,$4t),_.Mi=function(n,s){mnn(this,b(s,136))},_.Pi=function(n,s,u){var f;++(f=this,b(s,136),f).a.e},_.Qi=function(n,s){bnn(this,b(s,136))},_.Ri=function(n,s,u){msn(this,b(s,136),b(u,136))},_.Oi=function(n,s){fPt(this.a)};var uta=V(cl,"BasicEMap/1",1046);G(1047,66,$m,G2t),_.aj=function(n){return mt(iOn,kKt,621,n,0,1)};var hta=V(cl,"BasicEMap/2",1047);G(1048,Mg,Bh,U4t),_.$b=function(){this.a.c.$b()},_.Hc=function(n){return jde(this.a,n)},_.Kc=function(){return this.a.f==0?(p6(),dV.a):new w3t(this.a)},_.Mc=function(n){var s=this.a.f;return iQ(this.a,n),this.a.f!=s},_.gc=function(){return this.a.f};var dta=V(cl,"BasicEMap/3",1048);G(1049,31,gx,G4t),_.$b=function(){this.a.c.$b()},_.Hc=function(n){return cVt(this.a,n)},_.Kc=function(){return this.a.f==0?(p6(),dV.a):new S3t(this.a)},_.gc=function(){return this.a.f};var fta=V(cl,"BasicEMap/4",1049);G(1050,Mg,Bh,z4t),_.$b=function(){this.a.c.$b()},_.Hc=function(n){var s,u,f,g,E,S,C,O,M;if(this.a.f>0&&He(n,44)){if(this.a._j(),O=b(n,44),C=O.ld(),g=C==null?0:Da(C),E=GIe(this.a,g),s=this.a.d[E],s){u=b(s.g,379),M=s.i;for(S=0;S"+this.c},_.a=0;var iOn=V(cl,"BasicEMap/EntryImpl",621);G(546,1,{},MW);var vta=V(cl,"BasicEMap/View",546),dV;G(783,1,{}),_.Fb=function(n){return S8e((Hr(),Jo),n)},_.Hb=function(){return NLe((Hr(),Jo))},_.Ib=function(){return i_((Hr(),Jo))};var _ta=V(cl,"ECollections/BasicEmptyUnmodifiableEList",783);G(1348,1,S1,z2t),_.Nb=function(n){Go(this,n)},_.Rb=function(n){throw _e(new bi)},_.Ob=function(){return!1},_.Sb=function(){return!1},_.Pb=function(){throw _e(new yc)},_.Tb=function(){return 0},_.Ub=function(){throw _e(new yc)},_.Vb=function(){return-1},_.Qb=function(){throw _e(new bi)},_.Wb=function(n){throw _e(new bi)};var Eta=V(cl,"ECollections/BasicEmptyUnmodifiableEList/1",1348);G(1346,783,{20:1,16:1,15:1,61:1},Nkt),_.bd=function(n,s){W3t()},_.Fc=function(n){return j3t()},_.cd=function(n,s){return K3t()},_.Gc=function(n){return X3t()},_.$b=function(){Q3t()},_.Hc=function(n){return!1},_.Ic=function(n){return!1},_.Jc=function(n){Vo(this,n)},_.Xb=function(n){return WRe((Hr(),n)),null},_.dd=function(n){return-1},_.dc=function(){return!0},_.Kc=function(){return this.a},_.ed=function(){return this.a},_.fd=function(n){return this.a},_.Ti=function(n,s){return Z3t()},_.Ui=function(n,s){J3t()},_.Lc=function(){return new Pr(null,new Gr(this,16))},_.gd=function(n){return eAt()},_.Mc=function(n){return tAt()},_.hd=function(n,s){return rAt()},_.gc=function(){return 0},_.jd=function(n){q2(this,n)},_.Nc=function(){return new Gr(this,16)},_.Oc=function(){return new Pr(null,new Gr(this,16))},_.kd=function(n,s){return Hr(),new Sy(Jo,n,s)},_.Pc=function(){return H6e((Hr(),Jo))},_.Qc=function(n){return Hr(),W8(Jo,n)};var wta=V(cl,"ECollections/EmptyUnmodifiableEList",1346);G(1347,783,{20:1,16:1,15:1,61:1,597:1},Lkt),_.bd=function(n,s){W3t()},_.Fc=function(n){return j3t()},_.cd=function(n,s){return K3t()},_.Gc=function(n){return X3t()},_.$b=function(){Q3t()},_.Hc=function(n){return!1},_.Ic=function(n){return!1},_.Jc=function(n){Vo(this,n)},_.Xb=function(n){return WRe((Hr(),n)),null},_.dd=function(n){return-1},_.dc=function(){return!0},_.Kc=function(){return this.a},_.ed=function(){return this.a},_.fd=function(n){return this.a},_.Ti=function(n,s){return Z3t()},_.Ui=function(n,s){J3t()},_.Lc=function(){return new Pr(null,new Gr(this,16))},_.gd=function(n){return eAt()},_.Mc=function(n){return tAt()},_.hd=function(n,s){return rAt()},_.gc=function(){return 0},_.jd=function(n){q2(this,n)},_.Nc=function(){return new Gr(this,16)},_.Oc=function(){return new Pr(null,new Gr(this,16))},_.kd=function(n,s){return Hr(),new Sy(Jo,n,s)},_.Pc=function(){return H6e((Hr(),Jo))},_.Qc=function(n){return Hr(),W8(Jo,n)},_.bk=function(){return Hr(),Hr(),I1};var Sta=V(cl,"ECollections/EmptyUnmodifiableEMap",1347),cWe=ns(cl,"Enumerator"),Ote;G(288,1,{288:1},tpe),_.Fb=function(n){var s;if(this===n)return!0;if(!He(n,288))return!1;return s=b(n,288),this.f==s.f&&mun(this.i,s.i)&&Aue(this.a,(this.f&256)!=0?(s.f&256)!=0?s.a:null:(s.f&256)!=0?null:s.a)&&Aue(this.d,s.d)&&Aue(this.g,s.g)&&Aue(this.e,s.e)&&Uvn(this,s)},_.Hb=function(){return this.f},_.Ib=function(){return zVt(this)},_.f=0;var oor=0,lor=0,cor=0,uor=0,uWe=0,hWe=0,dWe=0,fWe=0,pWe=0,hor,J9=0,eP=0,dor=0,por=0,Nte,gWe,Tta=V(cl,"URI",288);G(1121,45,G4,Mkt),_.zc=function(n,s){return b(Vl(this,wi(n),b(s,288)),288)};var xta=V(cl,"URI/URICache",1121);G(506,66,$m,P2t,yK),_.Si=function(){return!0};var Cta=V(cl,"UniqueEList",506);G(590,63,Lb,hX);var kta=V(cl,"WrappedException",590),Vi=ns(Hf,IKt),Qx=ns(Hf,OKt),_h=ns(Hf,NKt),Zx=ns(Hf,LKt),ig=ns(Hf,MKt),Ip=ns(Hf,"EClass"),ive=ns(Hf,"EDataType"),gor;G(1233,45,G4,Dkt),_.xc=function(n){return So(n)?mu(this,n):Jl(wl(this.f,n))};var Ata=V(Hf,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1233),Lte=ns(Hf,"EEnum"),zb=ns(Hf,DKt),Rl=ns(Hf,PKt),Op=ns(Hf,BKt),Np,LS=ns(Hf,FKt),Jx=ns(Hf,$Kt);G(1042,1,{},D2t),_.Ib=function(){return"NIL"};var Rta=V(Hf,"EStructuralFeature/Internal/DynamicValueHolder/1",1042),mor;G(1041,45,G4,Pkt),_.xc=function(n){return So(n)?mu(this,n):Jl(wl(this.f,n))};var Ita=V(Hf,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1041),lh=ns(Hf,UKt),Q5=ns(Hf,"EValidator/PatternMatcher"),mWe,bWe,sn,ev,eC,N_,bor,yor,vor,L_,tv,M_,MS,Wg,_or,Eor,Lp,rv,wor,nv,tC,Ok,yl,Sor,Tor,DS,Mte=ns(qa,"FeatureMap/Entry");G(545,1,{76:1},Dj),_.Lk=function(){return this.a},_.md=function(){return this.b};var Ota=V(on,"BasicEObjectImpl/1",545);G(1040,1,ame,iRt),_.Fk=function(n){return Ohe(this.a,this.b,n)},_.Qj=function(){return ULt(this.a,this.b)},_.Wb=function(n){NOe(this.a,this.b,n)},_.Gk=function(){fhn(this.a,this.b)};var Nta=V(on,"BasicEObjectImpl/4",1040);G(2081,1,{114:1}),_.Mk=function(n){this.e=n==0?xor:mt(ao,en,1,n,5,1)},_.li=function(n){return this.e[n]},_.mi=function(n,s){this.e[n]=s},_.ni=function(n){this.e[n]=null},_.Nk=function(){return this.c},_.Ok=function(){throw _e(new bi)},_.Pk=function(){throw _e(new bi)},_.Qk=function(){return this.d},_.Rk=function(){return this.e!=null},_.Sk=function(n){this.c=n},_.Tk=function(n){throw _e(new bi)},_.Uk=function(n){throw _e(new bi)},_.Vk=function(n){this.d=n};var xor,Lta=V(on,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2081);G(192,2081,{114:1},U0),_.Ok=function(){return this.a},_.Pk=function(){return this.b},_.Tk=function(n){this.a=n},_.Uk=function(n){this.b=n};var Mta=V(on,"BasicEObjectImpl/EPropertiesHolderImpl",192);G(516,99,Gjt,DW),_.uh=function(){return this.f},_.zh=function(){return this.k},_.Bh=function(n,s){this.g=n,this.i=s},_.Dh=function(){return(this.j&2)==0?this.ii():this.$h().Nk()},_.Fh=function(){return this.i},_.wh=function(){return(this.j&1)!=0},_.Ph=function(){return this.g},_.Vh=function(){return(this.j&4)!=0},_.$h=function(){return!this.k&&(this.k=new U0),this.k},_.ci=function(n){this.$h().Sk(n),n?this.j|=2:this.j&=-3},_.ei=function(n){this.$h().Uk(n),n?this.j|=4:this.j&=-5},_.ii=function(){return(Hv(),sn).S},_.i=0,_.j=1;var Dta=V(on,"EObjectImpl",516);G(798,516,{110:1,94:1,93:1,58:1,114:1,54:1,99:1},k6e),_.li=function(n){return this.e[n]},_.mi=function(n,s){this.e[n]=s},_.ni=function(n){this.e[n]=null},_.Dh=function(){return this.d},_.Ih=function(n){return Za(this.d,n)},_.Kh=function(){return this.d},_.Oh=function(){return this.e!=null},_.$h=function(){return!this.k&&(this.k=new V2t),this.k},_.ci=function(n){this.d=n},_.hi=function(){var n;if(this.e==null)n=Un(this.d),this.e=n==0?Cor:mt(ao,en,1,n,5,1);return this},_.ji=function(){return 0};var Cor,Pta=V(on,"DynamicEObjectImpl",798);G(1522,798,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1},yOt),_.Fb=function(n){return this===n},_.Hb=function(){return Sw(this)},_.ci=function(n){this.d=n,this.b=oG(n,"key"),this.c=oG(n,FD)},_.Bi=function(){var n;if(this.a==-1)n=Hhe(this,this.b),this.a=n==null?0:Da(n);return this.a},_.ld=function(){return Hhe(this,this.b)},_.md=function(){return Hhe(this,this.c)},_.Ci=function(n){this.a=n},_.Di=function(n){NOe(this,this.b,n)},_.nd=function(n){var s=Hhe(this,this.c);return NOe(this,this.c,n),s},_.a=0;var Bta=V(on,"DynamicEObjectImpl/BasicEMapEntry",1522);G(1523,1,{114:1},V2t),_.Mk=function(n){throw _e(new bi)},_.li=function(n){throw _e(new bi)},_.mi=function(n,s){throw _e(new bi)},_.ni=function(n){throw _e(new bi)},_.Nk=function(){throw _e(new bi)},_.Ok=function(){return this.a},_.Pk=function(){return this.b},_.Qk=function(){return this.c},_.Rk=function(){throw _e(new bi)},_.Sk=function(n){throw _e(new bi)},_.Tk=function(n){this.a=n},_.Uk=function(n){this.b=n},_.Vk=function(n){this.c=n};var Fta=V(on,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1523);G(519,158,{110:1,94:1,93:1,598:1,155:1,58:1,114:1,54:1,99:1,519:1,158:1,119:1,120:1},IAe),_.Ah=function(n){return nMe(this,n)},_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.d;case 2:return u?(!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),this.b):(!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),sU(this.b));case 3:return qLt(this);case 4:return!this.a&&(this.a=new Os(I_,this,4)),this.a;case 5:return!this.c&&(this.c=new u4(I_,this,5)),this.c}return Mf(this,n-Un((Vr(),ev)),jr((f=b(un(this,16),29),!f?ev:f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 3:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?nMe(this,u):this.Cb.Th(this,-1-g,null,u))),V6e(this,b(n,155),u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),ev):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),ev)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 2:return!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),eK(this.b,n,u);case 3:return V6e(this,null,u);case 4:return!this.a&&(this.a=new Os(I_,this,4)),ol(this.a,n,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),ev):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),ev)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!qLt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Nf(this,n-Un((Vr(),ev)),jr((s=b(un(this,16),29),!s?ev:s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:nun(this,wi(s));return;case 2:!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),PX(this.b,s);return;case 3:Izt(this,b(s,155));return;case 4:!this.a&&(this.a=new Os(I_,this,4)),ni(this.a),!this.a&&(this.a=new Os(I_,this,4)),ps(this.a,b(s,16));return;case 5:!this.c&&(this.c=new u4(I_,this,5)),ni(this.c),!this.c&&(this.c=new u4(I_,this,5)),ps(this.c,b(s,16));return}Ff(this,n-Un((Vr(),ev)),jr((u=b(un(this,16),29),!u?ev:u),n),s)},_.ii=function(){return Vr(),ev},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:iLe(this,null);return;case 2:!this.b&&(this.b=new Id((Vr(),yl),Bc,this)),this.b.c.$b();return;case 3:Izt(this,null);return;case 4:!this.a&&(this.a=new Os(I_,this,4)),ni(this.a);return;case 5:!this.c&&(this.c=new u4(I_,this,5)),ni(this.c);return}Bf(this,n-Un((Vr(),ev)),jr((s=b(un(this,16),29),!s?ev:s),n))},_.Ib=function(){return MBt(this)},_.d=null;var $ta=V(on,"EAnnotationImpl",519);G(141,721,vFe,Mh),_.Gi=function(n,s){Ean(this,n,b(s,44))},_.Wk=function(n,s){return Son(this,b(n,44),s)},_.$i=function(n){return b(b(this.c,71).$i(n),136)},_.Ii=function(){return b(this.c,71).Ii()},_.Ji=function(){return b(this.c,71).Ji()},_.Ki=function(n){return b(this.c,71).Ki(n)},_.Xk=function(n,s){return eK(this,n,s)},_.Fk=function(n){return b(this.c,79).Fk(n)},_.ak=function(){},_.Qj=function(){return b(this.c,79).Qj()},_.ck=function(n,s,u){var f=b(Wd(this.b).wi().si(this.b),136);return f.Ci(n),f.Di(s),f.nd(u),f},_.dk=function(){return new d5e(this)},_.Wb=function(n){PX(this,n)},_.Gk=function(){b(this.c,79).Gk()};var Uta=V(qa,"EcoreEMap",141);G(165,141,vFe,Id),_._j=function(){var n,s,u,f,g,E;if(this.d==null){E=mt(oWe,yFe,66,2*this.f+1,0,1);for(u=this.c.Kc();u.e!=u.i.gc();)s=b(u.Yj(),136),f=s.Bi(),g=(f&sa)%E.length,n=E[g],!n&&(n=E[g]=new d5e(this)),n.Fc(s);this.d=E}};var Gta=V(on,"EAnnotationImpl/1",165);G(292,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,481:1,54:1,99:1,158:1,292:1,119:1,120:1}),_.Lh=function(n,s,u){var f,g;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return an(),(this.Bb&256)!=0?!0:!1;case 3:return an(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return an(),this.Jk()?!0:!1;case 7:return an(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q}return Mf(this,n-Un(this.ii()),jr((f=b(un(this,16),29),!f?this.ii():f),n),s,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Vue(this,u)}return g=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},_.Wh=function(n){var s,u;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Ow(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Ow(this.q).i==0)}return Nf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:this.ui(wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:this.Zk(b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return}Ff(this,n-Un(this.ii()),jr((u=b(un(this,16),29),!u?this.ii():u),n),s)},_.ii=function(){return Vr(),Tor},_.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:this.ui(null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:this.Zk(1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return}Bf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.pi=function(){vp(this),this.Bb|=1},_.Hk=function(){return vp(this)},_.Ik=function(){return this.t},_.Jk=function(){var n;return n=this.t,n>1||n==-1},_.Si=function(){return(this.Bb&512)!=0},_.Yk=function(n,s){return QLe(this,n,s)},_.Zk=function(n){QT(this,n)},_.Ib=function(){return p8e(this)},_.s=0,_.t=1;var zta=V(on,"ETypedElementImpl",292);G(462,292,{110:1,94:1,93:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,462:1,292:1,119:1,120:1,692:1}),_.Ah=function(n){return S$t(this,n)},_.Lh=function(n,s,u){var f,g;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return an(),(this.Bb&256)!=0?!0:!1;case 3:return an(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return an(),this.Jk()?!0:!1;case 7:return an(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return an(),(this.Bb&u0)!=0?!0:!1;case 11:return an(),(this.Bb&Tx)!=0?!0:!1;case 12:return an(),(this.Bb&bx)!=0?!0:!1;case 13:return this.j;case 14:return wO(this);case 15:return an(),(this.Bb&$h)!=0?!0:!1;case 16:return an(),(this.Bb&Im)!=0?!0:!1;case 17:return VT(this)}return Mf(this,n-Un(this.ii()),jr((f=b(un(this,16),29),!f?this.ii():f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 17:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?S$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,17,u)}return E=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),E.wk().zk(this,rh(this),s-Un(this.ii()),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Vue(this,u);case 17:return Jd(this,null,17,u)}return g=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},_.Wh=function(n){var s,u;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Jk();case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Ow(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Ow(this.q).i==0);case 10:return(this.Bb&u0)==0;case 11:return(this.Bb&Tx)!=0;case 12:return(this.Bb&bx)!=0;case 13:return this.j!=null;case 14:return wO(this)!=null;case 15:return(this.Bb&$h)!=0;case 16:return(this.Bb&Im)!=0;case 17:return!!VT(this)}return Nf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:mhe(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:this.Zk(b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 10:aO(this,er(Jt(s)));return;case 11:lO(this,er(Jt(s)));return;case 12:sO(this,er(Jt(s)));return;case 13:VRe(this,wi(s));return;case 15:oO(this,er(Jt(s)));return;case 16:cO(this,er(Jt(s)));return}Ff(this,n-Un(this.ii()),jr((u=b(un(this,16),29),!u?this.ii():u),n),s)},_.ii=function(){return Vr(),Sor},_.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,90)&&lx(fd(b(this.Cb,90)),4),zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:this.Zk(1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 10:aO(this,!0);return;case 11:lO(this,!1);return;case 12:sO(this,!1);return;case 13:this.i=null,IX(this,null);return;case 15:oO(this,!1);return;case 16:cO(this,!1);return}Bf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.pi=function(){x6(Hl((Ph(),Yo),this)),vp(this),this.Bb|=1},_.pk=function(){return this.f},_.ik=function(){return wO(this)},_.qk=function(){return VT(this)},_.uk=function(){return null},_.$k=function(){return this.k},_.Lj=function(){return this.n},_.vk=function(){return TQ(this)},_.wk=function(){var n,s,u,f,g,E,S,C,O;if(!this.p)u=VT(this),(u.i==null&&Rm(u),u.i).length,f=this.uk(),!!f&&Un(VT(f)),g=vp(this),S=g.kk(),n=!S?null:(S.i&1)!=0?S==wd?_s:S==ci?qo:S==nC?iN:S==xo?Bs:S==P_?pS:S==Dk?gS:S==Gh?R5:KD:S,s=wO(this),C=g.ik(),byn(this),(this.Bb&Im)!=0&&(!!(E=uMe((Ph(),Yo),u))&&E!=this||!!(E=WA(Hl(Yo,this))))?this.p=new sRt(this,E):this.Jk()?this.al()?!f?(this.Bb&$h)!=0?!n?this.bl()?this.p=new wy(42,this):this.p=new wy(0,this):n==pE?this.p=new _y(50,ior,this):this.bl()?this.p=new _y(43,n,this):this.p=new _y(1,n,this):!n?this.bl()?this.p=new wy(44,this):this.p=new wy(2,this):n==pE?this.p=new _y(41,ior,this):this.bl()?this.p=new _y(45,n,this):this.p=new _y(3,n,this):(this.Bb&$h)!=0?!n?this.bl()?this.p=new V2(46,this,f):this.p=new V2(4,this,f):this.bl()?this.p=new F2(47,n,this,f):this.p=new F2(5,n,this,f):!n?this.bl()?this.p=new V2(48,this,f):this.p=new V2(6,this,f):this.bl()?this.p=new F2(49,n,this,f):this.p=new F2(7,n,this,f):He(g,156)?n==Mte?this.p=new wy(40,this):(this.Bb&512)!=0?(this.Bb&$h)!=0?!n?this.p=new wy(8,this):this.p=new _y(9,n,this):!n?this.p=new wy(10,this):this.p=new _y(11,n,this):(this.Bb&$h)!=0?!n?this.p=new wy(12,this):this.p=new _y(13,n,this):!n?this.p=new wy(14,this):this.p=new _y(15,n,this):!f?this.bl()?(this.Bb&$h)!=0?!n?this.p=new wy(16,this):this.p=new _y(17,n,this):!n?this.p=new wy(18,this):this.p=new _y(19,n,this):(this.Bb&$h)!=0?!n?this.p=new wy(20,this):this.p=new _y(21,n,this):!n?this.p=new wy(22,this):this.p=new _y(23,n,this):(O=f.t,O>1||O==-1?this.bl()?(this.Bb&$h)!=0?!n?this.p=new V2(24,this,f):this.p=new F2(25,n,this,f):!n?this.p=new V2(26,this,f):this.p=new F2(27,n,this,f):(this.Bb&$h)!=0?!n?this.p=new V2(28,this,f):this.p=new F2(29,n,this,f):!n?this.p=new V2(30,this,f):this.p=new F2(31,n,this,f):this.bl()?(this.Bb&$h)!=0?!n?this.p=new V2(32,this,f):this.p=new F2(33,n,this,f):!n?this.p=new V2(34,this,f):this.p=new F2(35,n,this,f):(this.Bb&$h)!=0?!n?this.p=new V2(36,this,f):this.p=new F2(37,n,this,f):!n?this.p=new V2(38,this,f):this.p=new F2(39,n,this,f)):this._k()?this.bl()?this.p=new j6t(b(g,29),this,f):this.p=new IOe(b(g,29),this,f):He(g,156)?n==Mte?this.p=new wy(40,this):(this.Bb&$h)!=0?!n?this.p=new sLt(b(g,156),s,C,this):this.p=new WOt(s,C,this,(Kde(),S==ci?TWe:S==wd?vWe:S==P_?xWe:S==nC?SWe:S==xo?wWe:S==Dk?CWe:S==Gh?_We:S==Qf?EWe:ove)):!n?this.p=new aLt(b(g,156),s,C,this):this.p=new YOt(s,C,this,(Kde(),S==ci?TWe:S==wd?vWe:S==P_?xWe:S==nC?SWe:S==xo?wWe:S==Dk?CWe:S==Gh?_We:S==Qf?EWe:ove)):this.al()?!f?(this.Bb&$h)!=0?this.bl()?this.p=new YIt(b(g,29),this):this.p=new RIe(b(g,29),this):this.bl()?this.p=new qIt(b(g,29),this):this.p=new lue(b(g,29),this):(this.Bb&$h)!=0?this.bl()?this.p=new X6t(b(g,29),this,f):this.p=new g6e(b(g,29),this,f):this.bl()?this.p=new K6t(b(g,29),this,f):this.p=new Eue(b(g,29),this,f):this.bl()?!f?(this.Bb&$h)!=0?this.p=new WIt(b(g,29),this):this.p=new IIe(b(g,29),this):(this.Bb&$h)!=0?this.p=new Q6t(b(g,29),this,f):this.p=new f6e(b(g,29),this,f):!f?(this.Bb&$h)!=0?this.p=new jIt(b(g,29),this):this.p=new bK(b(g,29),this):(this.Bb&$h)!=0?this.p=new Z6t(b(g,29),this,f):this.p=new p6e(b(g,29),this,f);return this.p},_.rk=function(){return(this.Bb&u0)!=0},_._k=function(){return!1},_.al=function(){return!1},_.sk=function(){return(this.Bb&Im)!=0},_.xk=function(){return qhe(this)},_.bl=function(){return!1},_.tk=function(){return(this.Bb&$h)!=0},_.cl=function(n){this.k=n},_.ui=function(n){mhe(this,n)},_.Ib=function(){return qQ(this)},_.e=!1,_.n=0;var Vta=V(on,"EStructuralFeatureImpl",462);G(331,462,{110:1,94:1,93:1,35:1,155:1,197:1,58:1,179:1,69:1,114:1,481:1,54:1,99:1,331:1,158:1,462:1,292:1,119:1,120:1,692:1},zle),_.Lh=function(n,s,u){var f,g;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return an(),(this.Bb&256)!=0?!0:!1;case 3:return an(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return an(),l8e(this)?!0:!1;case 7:return an(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return an(),(this.Bb&u0)!=0?!0:!1;case 11:return an(),(this.Bb&Tx)!=0?!0:!1;case 12:return an(),(this.Bb&bx)!=0?!0:!1;case 13:return this.j;case 14:return wO(this);case 15:return an(),(this.Bb&$h)!=0?!0:!1;case 16:return an(),(this.Bb&Im)!=0?!0:!1;case 17:return VT(this);case 18:return an(),(this.Bb&Hc)!=0?!0:!1;case 19:if(s)return gde(this);return c8t(this)}return Mf(this,n-Un((Vr(),eC)),jr((f=b(un(this,16),29),!f?eC:f),n),s,u)},_.Wh=function(n){var s,u;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return l8e(this);case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Ow(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Ow(this.q).i==0);case 10:return(this.Bb&u0)==0;case 11:return(this.Bb&Tx)!=0;case 12:return(this.Bb&bx)!=0;case 13:return this.j!=null;case 14:return wO(this)!=null;case 15:return(this.Bb&$h)!=0;case 16:return(this.Bb&Im)!=0;case 17:return!!VT(this);case 18:return(this.Bb&Hc)!=0;case 19:return!!c8t(this)}return Nf(this,n-Un((Vr(),eC)),jr((s=b(un(this,16),29),!s?eC:s),n))},_.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:mhe(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:C3t(this,b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 10:aO(this,er(Jt(s)));return;case 11:lO(this,er(Jt(s)));return;case 12:sO(this,er(Jt(s)));return;case 13:VRe(this,wi(s));return;case 15:oO(this,er(Jt(s)));return;case 16:cO(this,er(Jt(s)));return;case 18:Gde(this,er(Jt(s)));return}Ff(this,n-Un((Vr(),eC)),jr((u=b(un(this,16),29),!u?eC:u),n),s)},_.ii=function(){return Vr(),eC},_.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,90)&&lx(fd(b(this.Cb,90)),4),zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:this.b=0,QT(this,1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 10:aO(this,!0);return;case 11:lO(this,!1);return;case 12:sO(this,!1);return;case 13:this.i=null,IX(this,null);return;case 15:oO(this,!1);return;case 16:cO(this,!1);return;case 18:Gde(this,!1);return}Bf(this,n-Un((Vr(),eC)),jr((s=b(un(this,16),29),!s?eC:s),n))},_.pi=function(){gde(this),x6(Hl((Ph(),Yo),this)),vp(this),this.Bb|=1},_.Jk=function(){return l8e(this)},_.Yk=function(n,s){return this.b=0,this.a=null,QLe(this,n,s)},_.Zk=function(n){C3t(this,n)},_.Ib=function(){var n;if((this.Db&64)!=0)return qQ(this);return n=new pp(qQ(this)),n.a+=" (iD: ",my(n,(this.Bb&Hc)!=0),n.a+=")",n.a},_.b=0;var Hta=V(on,"EAttributeImpl",331);G(364,448,{110:1,94:1,93:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,364:1,158:1,119:1,120:1,691:1}),_.dl=function(n){return n.Dh()==this},_.Ah=function(n){return _fe(this,n)},_.Bh=function(n,s){this.w=null,this.Db=s<<16|this.Db&255,this.Cb=n},_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Zw(this);case 4:return this.ik();case 5:return this.F;case 6:if(s)return Wd(this);return A6(this);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),this.A}return Mf(this,n-Un(this.ii()),jr((f=b(un(this,16),29),!f?this.ii():f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 6:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?_fe(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,6,u)}return E=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),E.wk().zk(this,rh(this),s-Un(this.ii()),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 6:return Jd(this,null,6,u);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),ol(this.A,n,u)}return g=b(jr((f=b(un(this,16),29),!f?this.ii():f),s),69),g.wk().Ak(this,rh(this),s-Un(this.ii()),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zw(this);case 4:return this.ik()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!A6(this);case 7:return!!this.A&&this.A.i!=0}return Nf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:YK(this,wi(s));return;case 2:jce(this,wi(s));return;case 5:RO(this,wi(s));return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A),!this.A&&(this.A=new Ih(lh,this,7)),ps(this.A,b(s,16));return}Ff(this,n-Un(this.ii()),jr((u=b(un(this,16),29),!u?this.ii():u),n),s)},_.ii=function(){return Vr(),bor},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,184)&&(b(this.Cb,184).tb=null),zu(this,null);return;case 2:rO(this,null),G6(this,this.D);return;case 5:RO(this,null);return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A);return}Bf(this,n-Un(this.ii()),jr((s=b(un(this,16),29),!s?this.ii():s),n))},_.hk=function(){var n;return this.G==-1&&(this.G=(n=Wd(this),n?Py(n.vi(),this):-1)),this.G},_.ik=function(){return null},_.jk=function(){return Wd(this)},_.el=function(){return this.v},_.kk=function(){return Zw(this)},_.lk=function(){return this.D!=null?this.D:this.B},_.mk=function(){return this.F},_.fk=function(n){return upe(this,n)},_.fl=function(n){this.v=n},_.gl=function(n){W9t(this,n)},_.hl=function(n){this.C=n},_.ui=function(n){YK(this,n)},_.Ib=function(){return eQ(this)},_.C=null,_.D=null,_.G=-1;var qta=V(on,"EClassifierImpl",364);G(90,364,{110:1,94:1,93:1,29:1,142:1,155:1,197:1,58:1,114:1,54:1,99:1,90:1,364:1,158:1,482:1,119:1,120:1,691:1},MAe),_.dl=function(n){return son(this,n.Dh())},_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return Zw(this);case 4:return null;case 5:return this.F;case 6:if(s)return Wd(this);return A6(this);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),this.A;case 8:return an(),(this.Bb&256)!=0?!0:!1;case 9:return an(),(this.Bb&512)!=0?!0:!1;case 10:return tc(this);case 11:return!this.q&&(this.q=new kt(Op,this,11,10)),this.q;case 12:return B4(this);case 13:return dD(this);case 14:return dD(this),this.r;case 15:return B4(this),this.k;case 16:return QMe(this);case 17:return ppe(this);case 18:return Rm(this);case 19:return PQ(this);case 20:return B4(this),this.o;case 21:return!this.s&&(this.s=new kt(_h,this,21,17)),this.s;case 22:return nu(this);case 23:return epe(this)}return Mf(this,n-Un((Vr(),N_)),jr((f=b(un(this,16),29),!f?N_:f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 6:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?_fe(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,6,u);case 11:return!this.q&&(this.q=new kt(Op,this,11,10)),Vu(this.q,n,u);case 21:return!this.s&&(this.s=new kt(_h,this,21,17)),Vu(this.s,n,u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),N_):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),N_)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 6:return Jd(this,null,6,u);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),ol(this.A,n,u);case 11:return!this.q&&(this.q=new kt(Op,this,11,10)),ol(this.q,n,u);case 21:return!this.s&&(this.s=new kt(_h,this,21,17)),ol(this.s,n,u);case 22:return ol(nu(this),n,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),N_):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),N_)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zw(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!A6(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&nu(this.u.a).i!=0&&!(!!this.n&&cfe(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return B4(this).i!=0;case 13:return dD(this).i!=0;case 14:return dD(this),this.r.i!=0;case 15:return B4(this),this.k.i!=0;case 16:return QMe(this).i!=0;case 17:return ppe(this).i!=0;case 18:return Rm(this).i!=0;case 19:return PQ(this).i!=0;case 20:return B4(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&cfe(this.n);case 23:return epe(this).i!=0}return Nf(this,n-Un((Vr(),N_)),jr((s=b(un(this,16),29),!s?N_:s),n))},_.Zh=function(n){var s=this.i==null||!!this.q&&this.q.i!=0?null:oG(this,n);return s?s:LDe(this,n)},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:YK(this,wi(s));return;case 2:jce(this,wi(s));return;case 5:RO(this,wi(s));return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A),!this.A&&(this.A=new Ih(lh,this,7)),ps(this.A,b(s,16));return;case 8:ZLe(this,er(Jt(s)));return;case 9:JLe(this,er(Jt(s)));return;case 10:gD(tc(this)),ps(tc(this),b(s,16));return;case 11:!this.q&&(this.q=new kt(Op,this,11,10)),ni(this.q),!this.q&&(this.q=new kt(Op,this,11,10)),ps(this.q,b(s,16));return;case 21:!this.s&&(this.s=new kt(_h,this,21,17)),ni(this.s),!this.s&&(this.s=new kt(_h,this,21,17)),ps(this.s,b(s,16));return;case 22:ni(nu(this)),ps(nu(this),b(s,16));return}Ff(this,n-Un((Vr(),N_)),jr((u=b(un(this,16),29),!u?N_:u),n),s)},_.ii=function(){return Vr(),N_},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,184)&&(b(this.Cb,184).tb=null),zu(this,null);return;case 2:rO(this,null),G6(this,this.D);return;case 5:RO(this,null);return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A);return;case 8:ZLe(this,!1);return;case 9:JLe(this,!1);return;case 10:!!this.u&&gD(this.u);return;case 11:!this.q&&(this.q=new kt(Op,this,11,10)),ni(this.q);return;case 21:!this.s&&(this.s=new kt(_h,this,21,17)),ni(this.s);return;case 22:!!this.n&&ni(this.n);return}Bf(this,n-Un((Vr(),N_)),jr((s=b(un(this,16),29),!s?N_:s),n))},_.pi=function(){var n,s;if(B4(this),dD(this),QMe(this),ppe(this),Rm(this),PQ(this),epe(this),E8(Ncn(fd(this))),this.s)for(n=0,s=this.s.i;n=0;--s)We(this,s);return S7e(this,n)},_.Gk=function(){ni(this)},_.Zi=function(n,s){return g9t(this,n,s)};var jta=V(qa,"EcoreEList",632);G(505,632,dc,$$),_.Li=function(){return!1},_.Lj=function(){return this.c},_.Mj=function(){return!1},_.ol=function(){return!0},_.Si=function(){return!0},_.Wi=function(n,s){return s},_.Yi=function(){return!1},_.c=0;var Kta=V(qa,"EObjectEList",505);G(83,505,dc,Os),_.Mj=function(){return!0},_.ml=function(){return!1},_.al=function(){return!0};var Xta=V(qa,"EObjectContainmentEList",83);G(555,83,dc,qj),_.Ni=function(){this.b=!0},_.Qj=function(){return this.b},_.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.b,this.b=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.b=!1},_.b=!1;var Qta=V(qa,"EObjectContainmentEList/Unsettable",555);G(1161,555,dc,HOt),_.Ti=function(n,s){var u,f;return u=b(U8(this,n,s),89),Ad(this.e)&&ZI(this,new oU(this.a,7,(Vr(),yor),$t(s),(f=u.c,He(f,90)?b(f,29):Lp),n)),u},_.Uj=function(n,s){return Jyn(this,b(n,89),s)},_.Vj=function(n,s){return Zyn(this,b(n,89),s)},_.Wj=function(n,s,u){return rEn(this,b(n,89),b(s,89),u)},_.Ij=function(n,s,u,f,g){switch(n){case 3:return g8(this,n,s,u,f,this.i>1);case 5:return g8(this,n,s,u,f,this.i-b(u,15).gc()>0);default:return new wb(this.e,n,this.c,s,u,f,!0)}},_.Tj=function(){return!0},_.Qj=function(){return cfe(this)},_.Gk=function(){ni(this)};var Zta=V(on,"EClassImpl/1",1161);G(1175,1174,bFe),_.dj=function(n){var s,u,f,g,E,S,C;if(u=n.gj(),u!=8){if(f=Mvn(n),f==0)switch(u){case 1:case 9:{if(C=n.kj(),C!=null)s=fd(b(C,482)),!s.c&&(s.c=new qI),pX(s.c,n.jj());if(S=n.ij(),S!=null){if(g=b(S,482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new qI),ii(s.c,b(n.jj(),29))}break}case 3:{if(S=n.ij(),S!=null){if(g=b(S,482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new qI),ii(s.c,b(n.jj(),29))}break}case 5:{if(S=n.ij(),S!=null){for(E=b(S,16).Kc();E.Ob();)if(g=b(E.Pb(),482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new qI),ii(s.c,b(n.jj(),29))}break}case 4:{if(C=n.kj(),C!=null){if(g=b(C,482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new qI),pX(s.c,n.jj())}break}case 6:{if(C=n.kj(),C!=null){for(E=b(C,16).Kc();E.Ob();)if(g=b(E.Pb(),482),(g.Bb&1)==0)s=fd(g),!s.c&&(s.c=new qI),pX(s.c,n.jj())}break}}this.ql(f)}},_.ql=function(n){mVt(this,n)},_.b=63;var Jta=V(on,"ESuperAdapter",1175);G(1176,1175,bFe,H4t),_.ql=function(n){lx(this,n)};var era=V(on,"EClassImpl/10",1176);G(1165,710,dc),_.Ei=function(n,s){return Nfe(this,n,s)},_.Fi=function(n){return a$t(this,n)},_.Gi=function(n,s){MU(this,n,s)},_.Hi=function(n){nU(this,n)},_.$i=function(n){return ANe(this,n)},_.Xi=function(n,s){return Yhe(this,n,s)},_.Wk=function(n,s){throw _e(new bi)},_.Ii=function(){return new LA(this)},_.Ji=function(){return new k$(this)},_.Ki=function(n){return vU(this,n)},_.Xk=function(n,s){throw _e(new bi)},_.Fk=function(n){return this},_.Qj=function(){return this.i!=0},_.Wb=function(n){throw _e(new bi)},_.Gk=function(){throw _e(new bi)};var tra=V(qa,"EcoreEList/UnmodifiableEList",1165);G(328,1165,dc,i4),_.Yi=function(){return!1};var rra=V(qa,"EcoreEList/UnmodifiableEList/FastCompare",328);G(1168,328,dc,UPt),_.dd=function(n){var s,u,f;if(He(n,179)){if(s=b(n,179),u=s.Lj(),u!=-1){for(f=this.i;u4)if(this.fk(n)){if(this.al()){if(f=b(n,54),u=f.Eh(),C=u==this.b&&(this.ml()?f.yh(f.Fh(),b(jr(dh(this.b),this.Lj()).Hk(),29).kk())==El(b(jr(dh(this.b),this.Lj()),19)).n:-1-f.Fh()==this.Lj()),this.nl()&&!C&&!u&&!!f.Jh()){for(g=0;g1||f==-1);else return!1},_.ml=function(){var n,s,u;if(s=jr(dh(this.b),this.Lj()),He(s,102))return n=b(s,19),u=El(n),!!u;else return!1},_.nl=function(){var n,s;if(s=jr(dh(this.b),this.Lj()),He(s,102))return n=b(s,19),(n.Bb&ml)!=0;else return!1},_.dd=function(n){var s,u,f,g;if(f=this.zj(n),f>=0)return f;if(this.ol()){for(u=0,g=this.Ej();u=0;--n)bG(this,n,this.xj(n));return this.Fj()},_.Qc=function(n){var s;if(this.nl())for(s=this.Ej()-1;s>=0;--s)bG(this,s,this.xj(s));return this.Gj(n)},_.Gk=function(){gD(this)},_.Zi=function(n,s){return Y8t(this,n,s)};var pra=V(qa,"DelegatingEcoreEList",756);G(1171,756,EFe,s6t),_.qj=function(n,s){Isn(this,n,b(s,29))},_.rj=function(n){yan(this,b(n,29))},_.xj=function(n){var s,u;return s=b(We(nu(this.a),n),89),u=s.c,He(u,90)?b(u,29):(Vr(),Lp)},_.Cj=function(n){var s,u;return s=b(hx(nu(this.a),n),89),u=s.c,He(u,90)?b(u,29):(Vr(),Lp)},_.Dj=function(n,s){return k_n(this,n,b(s,29))},_.Li=function(){return!1},_.Ij=function(n,s,u,f,g){return null},_.sj=function(){return new W4t(this)},_.tj=function(){ni(nu(this.a))},_.uj=function(n){return PBt(this,n)},_.vj=function(n){var s,u;for(u=n.Kc();u.Ob();)if(s=u.Pb(),!PBt(this,s))return!1;return!0},_.wj=function(n){var s,u,f;if(He(n,15)){if(f=b(n,15),f.gc()==nu(this.a).i){for(s=f.Kc(),u=new kn(this);s.Ob();)if(it(s.Pb())!==it(Dn(u)))return!1;return!0}}return!1},_.yj=function(){var n,s,u,f,g;u=1;for(s=new kn(nu(this.a));s.e!=s.i.gc();)n=b(Dn(s),89),f=(g=n.c,He(g,90)?b(g,29):(Vr(),Lp)),u=31*u+(!f?0:Sw(f));return u},_.zj=function(n){var s,u,f,g;f=0;for(u=new kn(nu(this.a));u.e!=u.i.gc();){if(s=b(Dn(u),89),it(n)===it((g=s.c,He(g,90)?b(g,29):(Vr(),Lp))))return f;++f}return-1},_.Aj=function(){return nu(this.a).i==0},_.Bj=function(){return null},_.Ej=function(){return nu(this.a).i},_.Fj=function(){var n,s,u,f,g,E;E=nu(this.a).i,g=mt(ao,en,1,E,5,1),u=0;for(s=new kn(nu(this.a));s.e!=s.i.gc();)n=b(Dn(s),89),g[u++]=(f=n.c,He(f,90)?b(f,29):(Vr(),Lp));return g},_.Gj=function(n){var s,u,f,g,E,S,C;if(C=nu(this.a).i,n.lengthC&&ls(n,C,null),f=0;for(u=new kn(nu(this.a));u.e!=u.i.gc();)s=b(Dn(u),89),E=(S=s.c,He(S,90)?b(S,29):(Vr(),Lp)),ls(n,f++,E);return n},_.Hj=function(){var n,s,u,f,g;g=new gy,g.a+="[",n=nu(this.a);for(s=0,f=nu(this.a).i;s>16,g>=0?_fe(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,6,u);case 9:return!this.a&&(this.a=new kt(zb,this,9,5)),Vu(this.a,n,u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),L_):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),L_)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 6:return Jd(this,null,6,u);case 7:return!this.A&&(this.A=new Ih(lh,this,7)),ol(this.A,n,u);case 9:return!this.a&&(this.a=new kt(zb,this,9,5)),ol(this.a,n,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),L_):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),L_)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!Zw(this);case 4:return!!ULe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!A6(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Nf(this,n-Un((Vr(),L_)),jr((s=b(un(this,16),29),!s?L_:s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:YK(this,wi(s));return;case 2:jce(this,wi(s));return;case 5:RO(this,wi(s));return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A),!this.A&&(this.A=new Ih(lh,this,7)),ps(this.A,b(s,16));return;case 8:jX(this,er(Jt(s)));return;case 9:!this.a&&(this.a=new kt(zb,this,9,5)),ni(this.a),!this.a&&(this.a=new kt(zb,this,9,5)),ps(this.a,b(s,16));return}Ff(this,n-Un((Vr(),L_)),jr((u=b(un(this,16),29),!u?L_:u),n),s)},_.ii=function(){return Vr(),L_},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,184)&&(b(this.Cb,184).tb=null),zu(this,null);return;case 2:rO(this,null),G6(this,this.D);return;case 5:RO(this,null);return;case 7:!this.A&&(this.A=new Ih(lh,this,7)),ni(this.A);return;case 8:jX(this,!0);return;case 9:!this.a&&(this.a=new kt(zb,this,9,5)),ni(this.a);return}Bf(this,n-Un((Vr(),L_)),jr((s=b(un(this,16),29),!s?L_:s),n))},_.pi=function(){var n,s;if(this.a)for(n=0,s=this.a.i;n>16==5?b(this.Cb,685):null}return Mf(this,n-Un((Vr(),tv)),jr((f=b(un(this,16),29),!f?tv:f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 5:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?N$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,5,u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),tv):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),tv)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 5:return Jd(this,null,5,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),tv):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),tv)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5?b(this.Cb,685):null)}return Nf(this,n-Un((Vr(),tv)),jr((s=b(un(this,16),29),!s?tv:s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:Zhe(this,b(s,17).a);return;case 3:RGt(this,b(s,2039));return;case 4:ede(this,wi(s));return}Ff(this,n-Un((Vr(),tv)),jr((u=b(un(this,16),29),!u?tv:u),n),s)},_.ii=function(){return Vr(),tv},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:Zhe(this,0);return;case 3:RGt(this,null);return;case 4:ede(this,null);return}Bf(this,n-Un((Vr(),tv)),jr((s=b(un(this,16),29),!s?tv:s),n))},_.Ib=function(){var n;return n=this.c,n==null?this.zb:n},_.b=null,_.c=null,_.d=0;var Era=V(on,"EEnumLiteralImpl",582),aOn=ns(on,"EFactoryImpl/InternalEDateTimeFormat");G(499,1,{2114:1},KF);var wra=V(on,"EFactoryImpl/1ClientInternalEDateTimeFormat",499);G(248,120,{110:1,94:1,93:1,89:1,58:1,114:1,54:1,99:1,248:1,119:1,120:1},lw),_.Ch=function(n,s,u){var f;if(u=Jd(this,n,s,u),!!this.e&&He(n,179))f=DQ(this,this.e),f!=this.c&&(u=IO(this,f,u));return u},_.Lh=function(n,s,u){var f;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new Os(Rl,this,1)),this.d;case 2:if(s)return jQ(this);return this.c;case 3:return this.b;case 4:return this.e;case 5:if(s)return dfe(this);return this.a}return Mf(this,n-Un((Vr(),MS)),jr((f=b(un(this,16),29),!f?MS:f),n),s,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return SBt(this,null,u);case 1:return!this.d&&(this.d=new Os(Rl,this,1)),ol(this.d,n,u);case 3:return TBt(this,null,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),MS):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),MS)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Nf(this,n-Un((Vr(),MS)),jr((s=b(un(this,16),29),!s?MS:s),n))},_.bi=function(n,s){var u;switch(n){case 0:Q$t(this,b(s,89));return;case 1:!this.d&&(this.d=new Os(Rl,this,1)),ni(this.d),!this.d&&(this.d=new Os(Rl,this,1)),ps(this.d,b(s,16));return;case 3:yMe(this,b(s,89));return;case 4:BMe(this,b(s,850));return;case 5:P6(this,b(s,142));return}Ff(this,n-Un((Vr(),MS)),jr((u=b(un(this,16),29),!u?MS:u),n),s)},_.ii=function(){return Vr(),MS},_.ki=function(n){var s;switch(n){case 0:Q$t(this,null);return;case 1:!this.d&&(this.d=new Os(Rl,this,1)),ni(this.d);return;case 3:yMe(this,null);return;case 4:BMe(this,null);return;case 5:P6(this,null);return}Bf(this,n-Un((Vr(),MS)),jr((s=b(un(this,16),29),!s?MS:s),n))},_.Ib=function(){var n=new Vd(o0(this));return n.a+=" (expression: ",_pe(this,n),n.a+=")",n.a};var yWe,Sra=V(on,"EGenericTypeImpl",248);G(2067,2062,rJ),_.Gi=function(n,s){n6t(this,n,s)},_.Wk=function(n,s){return n6t(this,this.gc(),n),s},_.$i=function(n){return Gf(this.pj(),n)},_.Ii=function(){return this.Ji()},_.pj=function(){return new Q4t(this)},_.Ji=function(){return this.Ki(0)},_.Ki=function(n){return this.pj().fd(n)},_.Xk=function(n,s){return tx(this,n,!0),s},_.Ti=function(n,s){var u,f;return f=Sfe(this,s),u=this.fd(n),u.Rb(f),f},_.Ui=function(n,s){var u;tx(this,s,!0),u=this.fd(n),u.Rb(s)};var Tra=V(qa,"AbstractSequentialInternalEList",2067);G(496,2067,rJ,C$),_.$i=function(n){return Gf(this.pj(),n)},_.Ii=function(){if(this.b==null)return yy(),yy(),fV;return this.sl()},_.pj=function(){return new wRt(this.a,this.b)},_.Ji=function(){if(this.b==null)return yy(),yy(),fV;return this.sl()},_.Ki=function(n){var s,u;if(this.b==null){if(n<0||n>1)throw _e(new Gl($D+n+", size=0"));return yy(),yy(),fV}u=this.sl();for(s=0;s0)if(s=this.c[--this.d],(!this.e||s.pk()!=$N||s.Lj()!=0)&&(!this.vl()||this.b.Xh(s))){if(E=this.b.Nh(s,this.ul()),this.f=(_l(),b(s,69).xk()),this.f||s.Jk()){if(this.ul())f=b(E,15),this.k=f;else f=b(E,71),this.k=this.j=f;if(He(this.k,59))this.o=this.k.gc(),this.n=this.o;else this.p=!this.j?this.k.fd(this.k.gc()):this.j.Ki(this.k.gc());if(!this.p?rGt(this):qUt(this,this.p)){if(g=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub(),this.f)n=b(g,76),n.Lk(),u=n.md(),this.i=u;else u=g,this.i=u;return this.g=-3,!0}}else if(E!=null)return this.k=null,this.p=null,u=E,this.i=u,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else{if(g=!this.p?!this.j?this.k.Xb(--this.n):this.j.$i(--this.n):this.p.Ub(),this.f)n=b(g,76),n.Lk(),u=n.md(),this.i=u;else u=g,this.i=u;return this.g=-3,!0}}},_.Pb=function(){return $X(this)},_.Tb=function(){return this.a},_.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;else throw _e(new yc)},_.Vb=function(){return this.a-1},_.Qb=function(){throw _e(new bi)},_.ul=function(){return!1},_.Wb=function(n){throw _e(new bi)},_.vl=function(){return!0},_.a=0,_.d=0,_.f=!1,_.g=0,_.n=0,_.o=0;var fV,kra=V(qa,"EContentsEList/FeatureIteratorImpl",287);G(711,287,nJ,AIe),_.ul=function(){return!0};var Ara=V(qa,"EContentsEList/ResolvingFeatureIteratorImpl",711);G(1178,711,nJ,zIt),_.vl=function(){return!1};var Rra=V(on,"ENamedElementImpl/1/1",1178);G(1179,287,nJ,VIt),_.vl=function(){return!1};var Ira=V(on,"ENamedElementImpl/1/2",1179);G(39,152,KG,YT,She,go,Fhe,wb,i0,GNe,w7t,zNe,S7t,aNe,T7t,qNe,x7t,sNe,C7t,VNe,k7t,l8,oU,ihe,HNe,A7t,oNe,R7t),_.Kj=function(){return TNe(this)},_.Rj=function(){var n=TNe(this);if(n)return n.ik();return null},_.hj=function(n){return this.b==-1&&!!this.a&&(this.b=this.c.Hh(this.a.Lj(),this.a.pk())),this.c.yh(this.b,n)},_.jj=function(){return this.c},_.Sj=function(){var n=TNe(this);if(n)return n.tk();return!1},_.b=-1;var Ora=V(on,"ENotificationImpl",39);G(411,292,{110:1,94:1,93:1,155:1,197:1,58:1,62:1,114:1,481:1,54:1,99:1,158:1,411:1,292:1,119:1,120:1},Vle),_.Ah=function(n){return D$t(this,n)},_.Lh=function(n,s,u){var f,g,E;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return an(),(this.Bb&256)!=0?!0:!1;case 3:return an(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return an(),E=this.t,E>1||E==-1?!0:!1;case 7:return an(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?b(this.Cb,29):null;case 11:return!this.d&&(this.d=new Ih(lh,this,11)),this.d;case 12:return!this.c&&(this.c=new kt(LS,this,12,10)),this.c;case 13:return!this.a&&(this.a=new O$(this,this)),this.a;case 14:return pd(this)}return Mf(this,n-Un((Vr(),rv)),jr((f=b(un(this,16),29),!f?rv:f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 10:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?D$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,10,u);case 12:return!this.c&&(this.c=new kt(LS,this,12,10)),Vu(this.c,n,u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),rv):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),rv)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Vue(this,u);case 10:return Jd(this,null,10,u);case 11:return!this.d&&(this.d=new Ih(lh,this,11)),ol(this.d,n,u);case 12:return!this.c&&(this.c=new kt(LS,this,12,10)),ol(this.c,n,u);case 14:return ol(pd(this),n,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),rv):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),rv)),n,u)},_.Wh=function(n){var s,u,f;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f=this.t,f>1||f==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Ow(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Ow(this.q).i==0);case 10:return!!(this.Db>>16==10?b(this.Cb,29):null);case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&pd(this.a.a).i!=0&&!(!!this.b&&ufe(this.b));case 14:return!!this.b&&ufe(this.b)}return Nf(this,n-Un((Vr(),rv)),jr((s=b(un(this,16),29),!s?rv:s),n))},_.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:QT(this,b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 11:!this.d&&(this.d=new Ih(lh,this,11)),ni(this.d),!this.d&&(this.d=new Ih(lh,this,11)),ps(this.d,b(s,16));return;case 12:!this.c&&(this.c=new kt(LS,this,12,10)),ni(this.c),!this.c&&(this.c=new kt(LS,this,12,10)),ps(this.c,b(s,16));return;case 13:!this.a&&(this.a=new O$(this,this)),gD(this.a),!this.a&&(this.a=new O$(this,this)),ps(this.a,b(s,16));return;case 14:ni(pd(this)),ps(pd(this),b(s,16));return}Ff(this,n-Un((Vr(),rv)),jr((u=b(un(this,16),29),!u?rv:u),n),s)},_.ii=function(){return Vr(),rv},_.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:QT(this,1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 11:!this.d&&(this.d=new Ih(lh,this,11)),ni(this.d);return;case 12:!this.c&&(this.c=new kt(LS,this,12,10)),ni(this.c);return;case 13:!!this.a&&gD(this.a);return;case 14:!!this.b&&ni(this.b);return}Bf(this,n-Un((Vr(),rv)),jr((s=b(un(this,16),29),!s?rv:s),n))},_.pi=function(){var n,s;if(this.c)for(n=0,s=this.c.i;nC&&ls(n,C,null),f=0;for(u=new kn(pd(this.a));u.e!=u.i.gc();)s=b(Dn(u),89),E=(S=s.c,S?S:(Vr(),Wg)),ls(n,f++,E);return n},_.Hj=function(){var n,s,u,f,g;g=new gy,g.a+="[",n=pd(this.a);for(s=0,f=pd(this.a).i;s1);case 5:return g8(this,n,s,u,f,this.i-b(u,15).gc()>0);default:return new wb(this.e,n,this.c,s,u,f,!0)}},_.Tj=function(){return!0},_.Qj=function(){return ufe(this)},_.Gk=function(){ni(this)};var Dra=V(on,"EOperationImpl/2",1377);G(507,1,{2037:1,507:1},aRt);var Pra=V(on,"EPackageImpl/1",507);G(14,83,dc,kt),_.il=function(){return this.d},_.jl=function(){return this.b},_.ml=function(){return!0},_.b=0;var Bra=V(qa,"EObjectContainmentWithInverseEList",14);G(365,14,dc,MA),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var Fra=V(qa,"EObjectContainmentWithInverseEList/Resolving",365);G(308,365,dc,UT),_.Ni=function(){this.a.tb=null};var $ra=V(on,"EPackageImpl/2",308);G(1278,1,{},K2t);var Ura=V(on,"EPackageImpl/3",1278);G(733,45,G4,I5e),_._b=function(n){return So(n)?she(this,n):!!wl(this.f,n)};var Gra=V(on,"EPackageRegistryImpl",733);G(518,292,{110:1,94:1,93:1,155:1,197:1,58:1,2116:1,114:1,481:1,54:1,99:1,158:1,518:1,292:1,119:1,120:1},Hle),_.Ah=function(n){return P$t(this,n)},_.Lh=function(n,s,u){var f,g,E;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return an(),(this.Bb&256)!=0?!0:!1;case 3:return an(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return an(),E=this.t,E>1||E==-1?!0:!1;case 7:return an(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return this.Db>>16==10?b(this.Cb,62):null}return Mf(this,n-Un((Vr(),tC)),jr((f=b(un(this,16),29),!f?tC:f),n),s,u)},_.Sh=function(n,s,u){var f,g,E;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),Vu(this.Ab,n,u);case 10:return!!this.Cb&&(u=(g=this.Db>>16,g>=0?P$t(this,u):this.Cb.Th(this,-1-g,null,u))),Jd(this,n,10,u)}return E=b(jr((f=b(un(this,16),29),!f?(Vr(),tC):f),s),69),E.wk().zk(this,rh(this),s-Un((Vr(),tC)),n,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 9:return Vue(this,u);case 10:return Jd(this,null,10,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),tC):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),tC)),n,u)},_.Wh=function(n){var s,u,f;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f=this.t,f>1||f==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Ow(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Ow(this.q).i==0);case 10:return!!(this.Db>>16==10?b(this.Cb,62):null)}return Nf(this,n-Un((Vr(),tC)),jr((s=b(un(this,16),29),!s?tC:s),n))},_.ii=function(){return Vr(),tC};var zra=V(on,"EParameterImpl",518);G(102,462,{110:1,94:1,93:1,155:1,197:1,58:1,19:1,179:1,69:1,114:1,481:1,54:1,99:1,158:1,102:1,462:1,292:1,119:1,120:1,692:1},LIe),_.Lh=function(n,s,u){var f,g,E,S;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return an(),(this.Bb&256)!=0?!0:!1;case 3:return an(),(this.Bb&512)!=0?!0:!1;case 4:return $t(this.s);case 5:return $t(this.t);case 6:return an(),S=this.t,S>1||S==-1?!0:!1;case 7:return an(),g=this.s,g>=1?!0:!1;case 8:if(s)return vp(this);return this.r;case 9:return this.q;case 10:return an(),(this.Bb&u0)!=0?!0:!1;case 11:return an(),(this.Bb&Tx)!=0?!0:!1;case 12:return an(),(this.Bb&bx)!=0?!0:!1;case 13:return this.j;case 14:return wO(this);case 15:return an(),(this.Bb&$h)!=0?!0:!1;case 16:return an(),(this.Bb&Im)!=0?!0:!1;case 17:return VT(this);case 18:return an(),(this.Bb&Hc)!=0?!0:!1;case 19:return an(),E=El(this),!!E&&(E.Bb&Hc)!=0?!0:!1;case 20:return an(),(this.Bb&ml)!=0?!0:!1;case 21:if(s)return El(this);return this.b;case 22:if(s)return ILe(this);return JMt(this);case 23:return!this.a&&(this.a=new u4(Zx,this,23)),this.a}return Mf(this,n-Un((Vr(),Ok)),jr((f=b(un(this,16),29),!f?Ok:f),n),s,u)},_.Wh=function(n){var s,u,f,g;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return g=this.t,g>1||g==-1;case 7:return u=this.s,u>=1;case 8:return!!this.r&&!this.q.e&&Ow(this.q).i==0;case 9:return!!this.q&&!(!!this.r&&!this.q.e&&Ow(this.q).i==0);case 10:return(this.Bb&u0)==0;case 11:return(this.Bb&Tx)!=0;case 12:return(this.Bb&bx)!=0;case 13:return this.j!=null;case 14:return wO(this)!=null;case 15:return(this.Bb&$h)!=0;case 16:return(this.Bb&Im)!=0;case 17:return!!VT(this);case 18:return(this.Bb&Hc)!=0;case 19:return f=El(this),!!f&&(f.Bb&Hc)!=0;case 20:return(this.Bb&ml)==0;case 21:return!!this.b;case 22:return!!JMt(this);case 23:return!!this.a&&this.a.i!=0}return Nf(this,n-Un((Vr(),Ok)),jr((s=b(un(this,16),29),!s?Ok:s),n))},_.bi=function(n,s){var u,f;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:mhe(this,wi(s));return;case 2:Ny(this,er(Jt(s)));return;case 3:Ly(this,er(Jt(s)));return;case 4:Ay(this,b(s,17).a);return;case 5:QT(this,b(s,17).a);return;case 8:Q2(this,b(s,142));return;case 9:f=Ng(this,b(s,89),null),!!f&&f.oj();return;case 10:aO(this,er(Jt(s)));return;case 11:lO(this,er(Jt(s)));return;case 12:sO(this,er(Jt(s)));return;case 13:VRe(this,wi(s));return;case 15:oO(this,er(Jt(s)));return;case 16:cO(this,er(Jt(s)));return;case 18:Jdn(this,er(Jt(s)));return;case 20:l7e(this,er(Jt(s)));return;case 21:sLe(this,b(s,19));return;case 23:!this.a&&(this.a=new u4(Zx,this,23)),ni(this.a),!this.a&&(this.a=new u4(Zx,this,23)),ps(this.a,b(s,16));return}Ff(this,n-Un((Vr(),Ok)),jr((u=b(un(this,16),29),!u?Ok:u),n),s)},_.ii=function(){return Vr(),Ok},_.ki=function(n){var s,u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:He(this.Cb,90)&&lx(fd(b(this.Cb,90)),4),zu(this,null);return;case 2:Ny(this,!0);return;case 3:Ly(this,!0);return;case 4:Ay(this,0);return;case 5:QT(this,1);return;case 8:Q2(this,null);return;case 9:u=Ng(this,null,null),!!u&&u.oj();return;case 10:aO(this,!0);return;case 11:lO(this,!1);return;case 12:sO(this,!1);return;case 13:this.i=null,IX(this,null);return;case 15:oO(this,!1);return;case 16:cO(this,!1);return;case 18:o7e(this,!1),He(this.Cb,90)&&lx(fd(b(this.Cb,90)),2);return;case 20:l7e(this,!0);return;case 21:sLe(this,null);return;case 23:!this.a&&(this.a=new u4(Zx,this,23)),ni(this.a);return}Bf(this,n-Un((Vr(),Ok)),jr((s=b(un(this,16),29),!s?Ok:s),n))},_.pi=function(){ILe(this),x6(Hl((Ph(),Yo),this)),vp(this),this.Bb|=1},_.uk=function(){return El(this)},_._k=function(){var n;return n=El(this),!!n&&(n.Bb&Hc)!=0},_.al=function(){return(this.Bb&Hc)!=0},_.bl=function(){return(this.Bb&ml)!=0},_.Yk=function(n,s){return this.c=null,QLe(this,n,s)},_.Ib=function(){var n;if((this.Db&64)!=0)return qQ(this);return n=new pp(qQ(this)),n.a+=" (containment: ",my(n,(this.Bb&Hc)!=0),n.a+=", resolveProxies: ",my(n,(this.Bb&ml)!=0),n.a+=")",n.a};var Vra=V(on,"EReferenceImpl",102);G(561,120,{110:1,44:1,94:1,93:1,136:1,58:1,114:1,54:1,99:1,561:1,119:1,120:1},X2t),_.Fb=function(n){return this===n},_.ld=function(){return this.b},_.md=function(){return this.c},_.Hb=function(){return Sw(this)},_.Di=function(n){iun(this,wi(n))},_.nd=function(n){return Vcn(this,wi(n))},_.Lh=function(n,s,u){var f;switch(n){case 0:return this.b;case 1:return this.c}return Mf(this,n-Un((Vr(),yl)),jr((f=b(un(this,16),29),!f?yl:f),n),s,u)},_.Wh=function(n){var s;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return Nf(this,n-Un((Vr(),yl)),jr((s=b(un(this,16),29),!s?yl:s),n))},_.bi=function(n,s){var u;switch(n){case 0:aun(this,wi(s));return;case 1:nLe(this,wi(s));return}Ff(this,n-Un((Vr(),yl)),jr((u=b(un(this,16),29),!u?yl:u),n),s)},_.ii=function(){return Vr(),yl},_.ki=function(n){var s;switch(n){case 0:rLe(this,null);return;case 1:nLe(this,null);return}Bf(this,n-Un((Vr(),yl)),jr((s=b(un(this,16),29),!s?yl:s),n))},_.Bi=function(){var n;if(this.a==-1)n=this.b,this.a=n==null?0:Ry(n);return this.a},_.Ci=function(n){this.a=n},_.Ib=function(){var n;if((this.Db&64)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (key: ",Ol(n,this.b),n.a+=", value: ",Ol(n,this.c),n.a+=")",n.a},_.a=-1,_.b=null,_.c=null;var Bc=V(on,"EStringToStringMapEntryImpl",561),Aor=ns(qa,"FeatureMap/Entry/Internal");G(576,1,iJ),_.xl=function(n){return this.yl(b(n,54))},_.yl=function(n){return this.xl(n)},_.Fb=function(n){var s,u;if(this===n)return!0;else if(He(n,76))if(s=b(n,76),s.Lk()==this.c)return u=this.md(),u==null?s.md()==null:da(u,s.md());else return!1;else return!1},_.Lk=function(){return this.c},_.Hb=function(){var n=this.md();return Da(this.c)^(n==null?0:Da(n))},_.Ib=function(){var n,s;return n=this.c,s=Wd(n.qk()).yi(),n.xe(),(s!=null&&s.length!=0?s+":"+n.xe():n.xe())+"="+this.md()};var Hra=V(on,"EStructuralFeatureImpl/BasicFeatureMapEntry",576);G(791,576,iJ,zIe),_.yl=function(n){return new zIe(this.c,n)},_.md=function(){return this.a},_.zl=function(n,s,u){return zmn(this,n,this.a,s,u)},_.Al=function(n,s,u){return Vmn(this,n,this.a,s,u)};var qra=V(on,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",791);G(1350,1,{},sRt),_.yk=function(n,s,u,f,g){var E=b(N6(n,this.b),220);return E.Yl(this.a).Fk(f)},_.zk=function(n,s,u,f,g){var E=b(N6(n,this.b),220);return E.Pl(this.a,f,g)},_.Ak=function(n,s,u,f,g){var E=b(N6(n,this.b),220);return E.Ql(this.a,f,g)},_.Bk=function(n,s,u){var f=b(N6(n,this.b),220);return f.Yl(this.a).Qj()},_.Ck=function(n,s,u,f){var g=b(N6(n,this.b),220);g.Yl(this.a).Wb(f)},_.Dk=function(n,s,u){return b(N6(n,this.b),220).Yl(this.a)},_.Ek=function(n,s,u){var f=b(N6(n,this.b),220);f.Yl(this.a).Gk()};var Yra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1350);G(91,1,{},_y,F2,wy,V2),_.yk=function(n,s,u,f,g){var E=s.li(u);if(E==null&&s.mi(u,E=nZ(this,n)),!g)switch(this.e){case 50:case 41:return b(E,597).bk();case 40:return b(E,220).Vl()}return E},_.zk=function(n,s,u,f,g){var E,S;return S=s.li(u),S==null&&s.mi(u,S=nZ(this,n)),E=b(S,71).Wk(f,g),E},_.Ak=function(n,s,u,f,g){var E=s.li(u);return E!=null&&(g=b(E,71).Xk(f,g)),g},_.Bk=function(n,s,u){var f=s.li(u);return f!=null&&b(f,79).Qj()},_.Ck=function(n,s,u,f){var g=b(s.li(u),79);!g&&s.mi(u,g=nZ(this,n)),g.Wb(f)},_.Dk=function(n,s,u){var f,g;if(g=s.li(u),g==null&&s.mi(u,g=nZ(this,n)),He(g,79))return b(g,79);else return f=b(s.li(u),15),new K4t(f)},_.Ek=function(n,s,u){var f=b(s.li(u),79);!f&&s.mi(u,f=nZ(this,n)),f.Gk()},_.b=0,_.e=0;var Wra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateMany",91);G(512,1,{}),_.zk=function(n,s,u,f,g){throw _e(new bi)},_.Ak=function(n,s,u,f,g){throw _e(new bi)},_.Dk=function(n,s,u){return new iLt(this,n,s,u)};var $1,jra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingle",512);G(1367,1,ame,iLt),_.Fk=function(n){return this.a.yk(this.c,this.d,this.b,n,!0)},_.Qj=function(){return this.a.Bk(this.c,this.d,this.b)},_.Wb=function(n){this.a.Ck(this.c,this.d,this.b,n)},_.Gk=function(){this.a.Ek(this.c,this.d,this.b)},_.b=0;var Kra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1367);G(784,512,{},IOe),_.yk=function(n,s,u,f,g){return spe(n,n.Ph(),n.Fh())==this.b?this.bl()&&f?Yfe(n):n.Ph():null},_.zk=function(n,s,u,f,g){var E,S;return!!n.Ph()&&(g=(E=n.Fh(),E>=0?n.Ah(g):n.Ph().Th(n,-1-E,null,g))),S=Za(n.Dh(),this.e),n.Ch(f,S,g)},_.Ak=function(n,s,u,f,g){var E=Za(n.Dh(),this.e);return n.Ch(null,E,g)},_.Bk=function(n,s,u){var f=Za(n.Dh(),this.e);return!!n.Ph()&&n.Fh()==f},_.Ck=function(n,s,u,f){var g,E,S,C,O;if(f!=null&&!upe(this.a,f))throw _e(new JI(aJ+(He(f,58)?bMe(b(f,58).Dh()):BNe(Ld(f)))+sJ+this.a+"'"));if(g=n.Ph(),S=Za(n.Dh(),this.e),it(f)!==it(g)||n.Fh()!=S&&f!=null){if(pO(n,b(f,58)))throw _e(new fn(BD+n.Ib()));O=null,!!g&&(O=(E=n.Fh(),E>=0?n.Ah(O):n.Ph().Th(n,-1-E,null,O))),C=b(f,54),!!C&&(O=C.Rh(n,Za(C.Dh(),this.b),null,O)),O=n.Ch(C,S,O),!!O&&O.oj()}else n.vh()&&n.wh()&&ha(n,new go(n,1,S,f,f))},_.Ek=function(n,s,u){var f,g,E,S;if(f=n.Ph(),f)S=(g=n.Fh(),g>=0?n.Ah(null):n.Ph().Th(n,-1-g,null,null)),E=Za(n.Dh(),this.e),S=n.Ch(null,E,S),!!S&&S.oj();else n.vh()&&n.wh()&&ha(n,new l8(n,1,this.e,null,null))},_.bl=function(){return!1};var Xra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",784);G(1351,784,{},j6t),_.bl=function(){return!0};var Qra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1351);G(574,512,{}),_.yk=function(n,s,u,f,g){var E;return E=s.li(u),E==null?this.b:it(E)===it($1)?null:E},_.Bk=function(n,s,u){var f=s.li(u);return f!=null&&(it(f)===it($1)||!da(f,this.b))},_.Ck=function(n,s,u,f){var g,E;if(n.vh()&&n.wh()){if(g=(E=s.li(u),E==null?this.b:it(E)===it($1)?null:E),f==null)if(this.c!=null)s.mi(u,null),f=this.b;else this.b!=null?s.mi(u,$1):s.mi(u,null);else this.Bl(f),s.mi(u,f);ha(n,this.d.Cl(n,1,this.e,g,f))}else if(f==null)this.c!=null?s.mi(u,null):this.b!=null?s.mi(u,$1):s.mi(u,null);else this.Bl(f),s.mi(u,f)},_.Ek=function(n,s,u){var f,g;if(n.vh()&&n.wh())f=(g=s.li(u),g==null?this.b:it(g)===it($1)?null:g),s.ni(u),ha(n,this.d.Cl(n,1,this.e,f,this.b));else s.ni(u)},_.Bl=function(n){throw _e(new skt)};var Zra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",574);G(Q4,1,{},Q2t),_.Cl=function(n,s,u,f,g){return new l8(n,s,u,f,g)},_.Dl=function(n,s,u,f,g,E){return new ihe(n,s,u,f,g,E)};var vWe,_We,EWe,wWe,SWe,TWe,xWe,ove,CWe,Jra=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",Q4);G(1368,Q4,{},Z2t),_.Cl=function(n,s,u,f,g){return new oNe(n,s,u,er(Jt(f)),er(Jt(g)))},_.Dl=function(n,s,u,f,g,E){return new R7t(n,s,u,er(Jt(f)),er(Jt(g)),E)};var ena=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1368);G(1369,Q4,{},J2t),_.Cl=function(n,s,u,f,g){return new GNe(n,s,u,b(f,222).a,b(g,222).a)},_.Dl=function(n,s,u,f,g,E){return new w7t(n,s,u,b(f,222).a,b(g,222).a,E)};var tna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1369);G(1370,Q4,{},eEt),_.Cl=function(n,s,u,f,g){return new zNe(n,s,u,b(f,180).a,b(g,180).a)},_.Dl=function(n,s,u,f,g,E){return new S7t(n,s,u,b(f,180).a,b(g,180).a,E)};var rna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1370);G(1371,Q4,{},tEt),_.Cl=function(n,s,u,f,g){return new aNe(n,s,u,rt(ht(f)),rt(ht(g)))},_.Dl=function(n,s,u,f,g,E){return new T7t(n,s,u,rt(ht(f)),rt(ht(g)),E)};var nna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1371);G(1372,Q4,{},rEt),_.Cl=function(n,s,u,f,g){return new qNe(n,s,u,b(f,161).a,b(g,161).a)},_.Dl=function(n,s,u,f,g,E){return new x7t(n,s,u,b(f,161).a,b(g,161).a,E)};var ina=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1372);G(1373,Q4,{},nEt),_.Cl=function(n,s,u,f,g){return new sNe(n,s,u,b(f,17).a,b(g,17).a)},_.Dl=function(n,s,u,f,g,E){return new C7t(n,s,u,b(f,17).a,b(g,17).a,E)};var ana=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1373);G(1374,Q4,{},iEt),_.Cl=function(n,s,u,f,g){return new VNe(n,s,u,b(f,168).a,b(g,168).a)},_.Dl=function(n,s,u,f,g,E){return new k7t(n,s,u,b(f,168).a,b(g,168).a,E)};var sna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1374);G(1375,Q4,{},aEt),_.Cl=function(n,s,u,f,g){return new HNe(n,s,u,b(f,191).a,b(g,191).a)},_.Dl=function(n,s,u,f,g,E){return new A7t(n,s,u,b(f,191).a,b(g,191).a,E)};var ona=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1375);G(1353,574,{},aLt),_.Bl=function(n){if(!this.a.fk(n))throw _e(new JI(aJ+Ld(n)+sJ+this.a+"'"))};var lna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1353);G(1354,574,{},YOt),_.Bl=function(n){};var cna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1354);G(785,574,{}),_.Bk=function(n,s,u){var f=s.li(u);return f!=null},_.Ck=function(n,s,u,f){var g,E;if(n.vh()&&n.wh()){if(g=!0,E=s.li(u),E==null)g=!1,E=this.b;else it(E)===it($1)&&(E=null);if(f==null)if(this.c!=null)s.mi(u,null),f=this.b;else s.mi(u,$1);else this.Bl(f),s.mi(u,f);ha(n,this.d.Dl(n,1,this.e,E,f,!g))}else if(f==null)this.c!=null?s.mi(u,null):s.mi(u,$1);else this.Bl(f),s.mi(u,f)},_.Ek=function(n,s,u){var f,g;if(n.vh()&&n.wh()){if(f=!0,g=s.li(u),g==null)f=!1,g=this.b;else it(g)===it($1)&&(g=null);s.ni(u),ha(n,this.d.Dl(n,2,this.e,g,this.b,f))}else s.ni(u)};var una=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",785);G(1355,785,{},sLt),_.Bl=function(n){if(!this.a.fk(n))throw _e(new JI(aJ+Ld(n)+sJ+this.a+"'"))};var hna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1355);G(1356,785,{},WOt),_.Bl=function(n){};var dna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1356);G(410,512,{},bK),_.yk=function(n,s,u,f,g){var E,S,C,O,M;if(M=s.li(u),this.tk()&&it(M)===it($1))return null;else if(this.bl()&&f&&M!=null){if(C=b(M,54),C.Vh()){if(O=e_(n,C),C!=O){if(!upe(this.a,O))throw _e(new JI(aJ+Ld(O)+sJ+this.a+"'"));if(s.mi(u,M=O),this.al())E=b(O,54),S=C.Th(n,!this.b?-1-Za(n.Dh(),this.e):Za(C.Dh(),this.b),null,null),!E.Ph()&&(S=E.Rh(n,!this.b?-1-Za(n.Dh(),this.e):Za(E.Dh(),this.b),null,S)),!!S&&S.oj();n.vh()&&n.wh()&&ha(n,new l8(n,9,this.e,C,O))}}return M}else return M},_.zk=function(n,s,u,f,g){var E,S;if(S=s.li(u),it(S)===it($1)&&(S=null),s.mi(u,f),this.Mj()){if(it(S)!==it(f)&&S!=null)E=b(S,54),g=E.Th(n,Za(E.Dh(),this.b),null,g)}else this.al()&&S!=null&&(g=b(S,54).Th(n,-1-Za(n.Dh(),this.e),null,g));if(n.vh()&&n.wh())!g&&(g=new Pv(4)),g.nj(new l8(n,1,this.e,S,f));return g},_.Ak=function(n,s,u,f,g){var E=s.li(u);if(it(E)===it($1)&&(E=null),s.ni(u),n.vh()&&n.wh())!g&&(g=new Pv(4)),this.tk()?g.nj(new l8(n,2,this.e,E,null)):g.nj(new l8(n,1,this.e,E,null));return g},_.Bk=function(n,s,u){var f=s.li(u);return f!=null},_.Ck=function(n,s,u,f){var g,E,S,C,O;if(f!=null&&!upe(this.a,f))throw _e(new JI(aJ+(He(f,58)?bMe(b(f,58).Dh()):BNe(Ld(f)))+sJ+this.a+"'"));if(O=s.li(u),C=O!=null,this.tk()&&it(O)===it($1)&&(O=null),S=null,this.Mj()){if(it(O)!==it(f)){if(O!=null)g=b(O,54),S=g.Th(n,Za(g.Dh(),this.b),null,S);if(f!=null)g=b(f,54),S=g.Rh(n,Za(g.Dh(),this.b),null,S)}}else if(this.al()){if(it(O)!==it(f))O!=null&&(S=b(O,54).Th(n,-1-Za(n.Dh(),this.e),null,S)),f!=null&&(S=b(f,54).Rh(n,-1-Za(n.Dh(),this.e),null,S))}if(f==null&&this.tk()?s.mi(u,$1):s.mi(u,f),n.vh()&&n.wh())if(E=new ihe(n,1,this.e,O,f,this.tk()&&!C),!S)ha(n,E);else S.nj(E),S.oj();else!!S&&S.oj()},_.Ek=function(n,s,u){var f,g,E,S,C;if(C=s.li(u),S=C!=null,this.tk()&&it(C)===it($1)&&(C=null),E=null,C!=null)if(this.Mj())f=b(C,54),E=f.Th(n,Za(f.Dh(),this.b),null,E);else this.al()&&(E=b(C,54).Th(n,-1-Za(n.Dh(),this.e),null,E));if(s.ni(u),n.vh()&&n.wh())if(g=new ihe(n,this.tk()?2:1,this.e,C,null,S),!E)ha(n,g);else E.nj(g),E.oj();else!!E&&E.oj()},_.Mj=function(){return!1},_.al=function(){return!1},_.bl=function(){return!1},_.tk=function(){return!1};var fna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",410);G(575,410,{},lue),_.al=function(){return!0};var pna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",575);G(1359,575,{},qIt),_.bl=function(){return!0};var gna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1359);G(787,575,{},RIe),_.tk=function(){return!0};var mna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",787);G(1361,787,{},YIt),_.bl=function(){return!0};var bna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1361);G(650,575,{},Eue),_.Mj=function(){return!0};var yna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",650);G(1360,650,{},K6t),_.bl=function(){return!0};var vna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1360);G(788,650,{},g6e),_.tk=function(){return!0};var _na=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",788);G(1362,788,{},X6t),_.bl=function(){return!0};var Ena=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1362);G(651,410,{},IIe),_.bl=function(){return!0};var wna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",651);G(1363,651,{},WIt),_.tk=function(){return!0};var Sna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1363);G(789,651,{},f6e),_.Mj=function(){return!0};var Tna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",789);G(1364,789,{},Q6t),_.tk=function(){return!0};var xna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1364);G(1357,410,{},jIt),_.tk=function(){return!0};var Cna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1357);G(786,410,{},p6e),_.Mj=function(){return!0};var kna=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",786);G(1358,786,{},Z6t),_.tk=function(){return!0};var Ana=V(on,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1358);G(790,576,iJ,hOe),_.yl=function(n){return new hOe(this.a,this.c,n)},_.md=function(){return this.b},_.zl=function(n,s,u){return U0n(this,n,this.b,u)},_.Al=function(n,s,u){return G0n(this,n,this.b,u)};var Rna=V(on,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",790);G(1365,1,ame,K4t),_.Fk=function(n){return this.a},_.Qj=function(){return He(this.a,97)?b(this.a,97).Qj():!this.a.dc()},_.Wb=function(n){this.a.$b(),this.a.Gc(b(n,15))},_.Gk=function(){He(this.a,97)?b(this.a,97).Gk():this.a.$b()};var Ina=V(on,"EStructuralFeatureImpl/SettingMany",1365);G(1366,576,iJ,_Mt),_.xl=function(n){return new hue((ka(),iP),this.b.ri(this.a,n))},_.md=function(){return null},_.zl=function(n,s,u){return u},_.Al=function(n,s,u){return u};var Ona=V(on,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1366);G(652,576,iJ,hue),_.xl=function(n){return new hue(this.c,n)},_.md=function(){return this.a},_.zl=function(n,s,u){return u},_.Al=function(n,s,u){return u};var Nna=V(on,"EStructuralFeatureImpl/SimpleFeatureMapEntry",652);G(403,506,$m,qI),_.aj=function(n){return mt(Ip,en,29,n,0,1)},_.Yi=function(){return!1};var Lna=V(on,"ESuperAdapter/1",403);G(457,448,{110:1,94:1,93:1,155:1,197:1,58:1,114:1,850:1,54:1,99:1,158:1,457:1,119:1,120:1},Sle),_.Lh=function(n,s,u){var f;switch(n){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new i8(this,Rl,this)),this.a}return Mf(this,n-Un((Vr(),DS)),jr((f=b(un(this,16),29),!f?DS:f),n),s,u)},_.Uh=function(n,s,u){var f,g;switch(s){case 0:return!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ol(this.Ab,n,u);case 2:return!this.a&&(this.a=new i8(this,Rl,this)),ol(this.a,n,u)}return g=b(jr((f=b(un(this,16),29),!f?(Vr(),DS):f),s),69),g.wk().Ak(this,rh(this),s-Un((Vr(),DS)),n,u)},_.Wh=function(n){var s;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Nf(this,n-Un((Vr(),DS)),jr((s=b(un(this,16),29),!s?DS:s),n))},_.bi=function(n,s){var u;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab),!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ps(this.Ab,b(s,16));return;case 1:zu(this,wi(s));return;case 2:!this.a&&(this.a=new i8(this,Rl,this)),ni(this.a),!this.a&&(this.a=new i8(this,Rl,this)),ps(this.a,b(s,16));return}Ff(this,n-Un((Vr(),DS)),jr((u=b(un(this,16),29),!u?DS:u),n),s)},_.ii=function(){return Vr(),DS},_.ki=function(n){var s;switch(n){case 0:!this.Ab&&(this.Ab=new kt(Vi,this,0,3)),ni(this.Ab);return;case 1:zu(this,null);return;case 2:!this.a&&(this.a=new i8(this,Rl,this)),ni(this.a);return}Bf(this,n-Un((Vr(),DS)),jr((s=b(un(this,16),29),!s?DS:s),n))};var Mna=V(on,"ETypeParameterImpl",457);G(458,83,dc,i8),_.Nj=function(n,s){return twn(this,b(n,89),s)},_.Oj=function(n,s){return rwn(this,b(n,89),s)};var Dna=V(on,"ETypeParameterImpl/1",458);G(647,45,G4,qle),_.ec=function(){return new HW(this)};var Pna=V(on,"ETypeParameterImpl/2",647);G(570,Mg,Bh,HW),_.Fc=function(n){return _6t(this,b(n,89))},_.Gc=function(n){var s,u,f;f=!1;for(u=n.Kc();u.Ob();)s=b(u.Pb(),89),Ki(this.a,s,"")==null&&(f=!0);return f},_.$b=function(){Jh(this.a)},_.Hc=function(n){return Zu(this.a,n)},_.Kc=function(){var n;return n=new W2(new R2(this.a).a),new qW(n)},_.Mc=function(n){return u8t(this,n)},_.gc=function(){return xM(this.a)};var Bna=V(on,"ETypeParameterImpl/2/1",570);G(571,1,To,qW),_.Nb=function(n){Go(this,n)},_.Pb=function(){return b(qw(this.a).ld(),89)},_.Ob=function(){return this.a.b},_.Qb=function(){vDt(this.a)};var Fna=V(on,"ETypeParameterImpl/2/1/1",571);G(1329,45,G4,$kt),_._b=function(n){return So(n)?she(this,n):!!wl(this.f,n)},_.xc=function(n){var s,u;if(s=So(n)?mu(this,n):Jl(wl(this.f,n)),He(s,851))return u=b(s,851),s=u.Kk(),Ki(this,b(n,241),s),s;else return s!=null?s:n==null?(uce(),Ior):null};var $na=V(on,"EValidatorRegistryImpl",1329);G(1349,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,2040:1,54:1,99:1,158:1,119:1,120:1},sEt),_.ri=function(n,s){switch(n.hk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return s==null?null:hc(s);case 25:return Zgn(s);case 27:return dgn(s);case 28:return fgn(s);case 29:return s==null?null:QRt(Z9[0],b(s,206));case 41:return s==null?"":N2(b(s,297));case 42:return hc(s);case 50:return wi(s);default:throw _e(new fn(QO+n.xe()+dS))}},_.si=function(n){var s,u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe;switch(n.G==-1&&(n.G=(re=Wd(n),re?Py(re.vi(),n):-1)),n.G){case 0:return u=new zle,u;case 1:return s=new IAe,s;case 2:return f=new MAe,f;case 4:return g=new YW,g;case 5:return E=new Fkt,E;case 6:return S=new ckt,S;case 7:return C=new DAe,C;case 10:return M=new DW,M;case 11:return U=new Vle,U;case 12:return q=new pLt,q;case 13:return ae=new Hle,ae;case 14:return ue=new LIe,ue;case 17:return de=new X2t,de;case 18:return O=new lw,O;case 19:return xe=new Sle,xe;default:throw _e(new fn(Vge+n.zb+dS))}},_.ti=function(n,s){switch(n.hk()){case 20:return s==null?null:new tRe(s);case 21:return s==null?null:new Gv(s);case 23:case 22:return s==null?null:hvn(s);case 26:case 24:return s==null?null:pU(Zd(s,-128,127)<<24>>24);case 25:return Ixn(s);case 27:return Z_n(s);case 28:return J_n(s);case 29:return wwn(s);case 32:case 31:return s==null?null:sx(s);case 38:case 37:return s==null?null:new y5e(s);case 40:case 39:return s==null?null:$t(Zd(s,Qo,sa));case 41:return null;case 42:return s==null?null:null;case 44:case 43:return s==null?null:Rb(rZ(s));case 49:case 48:return s==null?null:iO(Zd(s,oJ,32767)<<16>>16);case 50:return s;default:throw _e(new fn(QO+n.xe()+dS))}};var Una=V(on,"EcoreFactoryImpl",1349);G(560,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,2038:1,54:1,99:1,158:1,184:1,560:1,119:1,120:1,690:1},FNt),_.gb=!1,_.hb=!1;var kWe,Ror=!1,Gna=V(on,"EcorePackageImpl",560);G(1234,1,{851:1},oEt),_.Kk=function(){return uIt(),Oor};var zna=V(on,"EcorePackageImpl/1",1234);G(1243,1,Yi,lEt),_.fk=function(n){return He(n,155)},_.gk=function(n){return mt(cV,en,155,n,0,1)};var Vna=V(on,"EcorePackageImpl/10",1243);G(1244,1,Yi,cEt),_.fk=function(n){return He(n,197)},_.gk=function(n){return mt(Zye,en,197,n,0,1)};var Hna=V(on,"EcorePackageImpl/11",1244);G(1245,1,Yi,uEt),_.fk=function(n){return He(n,58)},_.gk=function(n){return mt(I_,en,58,n,0,1)};var qna=V(on,"EcorePackageImpl/12",1245);G(1246,1,Yi,hEt),_.fk=function(n){return He(n,411)},_.gk=function(n){return mt(Op,_Fe,62,n,0,1)};var Yna=V(on,"EcorePackageImpl/13",1246);G(1247,1,Yi,dEt),_.fk=function(n){return He(n,241)},_.gk=function(n){return mt(ng,en,241,n,0,1)};var Wna=V(on,"EcorePackageImpl/14",1247);G(1248,1,Yi,fEt),_.fk=function(n){return He(n,518)},_.gk=function(n){return mt(LS,en,2116,n,0,1)};var jna=V(on,"EcorePackageImpl/15",1248);G(1249,1,Yi,pEt),_.fk=function(n){return He(n,102)},_.gk=function(n){return mt(Jx,X4,19,n,0,1)};var Kna=V(on,"EcorePackageImpl/16",1249);G(1250,1,Yi,gEt),_.fk=function(n){return He(n,179)},_.gk=function(n){return mt(_h,X4,179,n,0,1)};var Xna=V(on,"EcorePackageImpl/17",1250);G(1251,1,Yi,mEt),_.fk=function(n){return He(n,481)},_.gk=function(n){return mt(Qx,en,481,n,0,1)};var Qna=V(on,"EcorePackageImpl/18",1251);G(1252,1,Yi,bEt),_.fk=function(n){return He(n,561)},_.gk=function(n){return mt(Bc,kKt,561,n,0,1)};var Zna=V(on,"EcorePackageImpl/19",1252);G(1235,1,Yi,yEt),_.fk=function(n){return He(n,331)},_.gk=function(n){return mt(Zx,X4,35,n,0,1)};var Jna=V(on,"EcorePackageImpl/2",1235);G(1253,1,Yi,vEt),_.fk=function(n){return He(n,248)},_.gk=function(n){return mt(Rl,HKt,89,n,0,1)};var eia=V(on,"EcorePackageImpl/20",1253);G(1254,1,Yi,_Et),_.fk=function(n){return He(n,457)},_.gk=function(n){return mt(lh,en,850,n,0,1)};var tia=V(on,"EcorePackageImpl/21",1254);G(1255,1,Yi,EEt),_.fk=function(n){return NT(n)},_.gk=function(n){return mt(_s,Bt,485,n,8,1)};var ria=V(on,"EcorePackageImpl/22",1255);G(1256,1,Yi,wEt),_.fk=function(n){return He(n,195)},_.gk=function(n){return mt(Gh,Bt,195,n,0,2)};var nia=V(on,"EcorePackageImpl/23",1256);G(1257,1,Yi,SEt),_.fk=function(n){return He(n,222)},_.gk=function(n){return mt(R5,Bt,222,n,0,1)};var iia=V(on,"EcorePackageImpl/24",1257);G(1258,1,Yi,TEt),_.fk=function(n){return He(n,180)},_.gk=function(n){return mt(KD,Bt,180,n,0,1)};var aia=V(on,"EcorePackageImpl/25",1258);G(1259,1,Yi,xEt),_.fk=function(n){return He(n,206)},_.gk=function(n){return mt(bJ,Bt,206,n,0,1)};var sia=V(on,"EcorePackageImpl/26",1259);G(1260,1,Yi,CEt),_.fk=function(n){return!1},_.gk=function(n){return mt(qWe,en,2215,n,0,1)};var oia=V(on,"EcorePackageImpl/27",1260);G(1261,1,Yi,kEt),_.fk=function(n){return LT(n)},_.gk=function(n){return mt(Bs,Bt,345,n,7,1)};var lia=V(on,"EcorePackageImpl/28",1261);G(1262,1,Yi,AEt),_.fk=function(n){return He(n,61)},_.gk=function(n){return mt(sWe,yx,61,n,0,1)};var cia=V(on,"EcorePackageImpl/29",1262);G(1236,1,Yi,REt),_.fk=function(n){return He(n,519)},_.gk=function(n){return mt(Vi,{3:1,4:1,5:1,2033:1},598,n,0,1)};var uia=V(on,"EcorePackageImpl/3",1236);G(1263,1,Yi,IEt),_.fk=function(n){return He(n,582)},_.gk=function(n){return mt(cWe,en,2039,n,0,1)};var hia=V(on,"EcorePackageImpl/30",1263);G(1264,1,Yi,OEt),_.fk=function(n){return He(n,160)},_.gk=function(n){return mt(NWe,yx,160,n,0,1)};var dia=V(on,"EcorePackageImpl/31",1264);G(1265,1,Yi,NEt),_.fk=function(n){return He(n,76)},_.gk=function(n){return mt(Mte,JKt,76,n,0,1)};var fia=V(on,"EcorePackageImpl/32",1265);G(1266,1,Yi,LEt),_.fk=function(n){return He(n,161)},_.gk=function(n){return mt(iN,Bt,161,n,0,1)};var pia=V(on,"EcorePackageImpl/33",1266);G(1267,1,Yi,MEt),_.fk=function(n){return He(n,17)},_.gk=function(n){return mt(qo,Bt,17,n,0,1)};var gia=V(on,"EcorePackageImpl/34",1267);G(1268,1,Yi,DEt),_.fk=function(n){return He(n,297)},_.gk=function(n){return mt(LFe,en,297,n,0,1)};var mia=V(on,"EcorePackageImpl/35",1268);G(1269,1,Yi,PEt),_.fk=function(n){return He(n,168)},_.gk=function(n){return mt(pS,Bt,168,n,0,1)};var bia=V(on,"EcorePackageImpl/36",1269);G(1270,1,Yi,BEt),_.fk=function(n){return He(n,85)},_.gk=function(n){return mt(MFe,en,85,n,0,1)};var yia=V(on,"EcorePackageImpl/37",1270);G(1271,1,Yi,FEt),_.fk=function(n){return He(n,599)},_.gk=function(n){return mt(AWe,en,599,n,0,1)};var via=V(on,"EcorePackageImpl/38",1271);G(1272,1,Yi,$Et),_.fk=function(n){return!1},_.gk=function(n){return mt(YWe,en,2216,n,0,1)};var _ia=V(on,"EcorePackageImpl/39",1272);G(1237,1,Yi,UEt),_.fk=function(n){return He(n,90)},_.gk=function(n){return mt(Ip,en,29,n,0,1)};var Eia=V(on,"EcorePackageImpl/4",1237);G(1273,1,Yi,GEt),_.fk=function(n){return He(n,191)},_.gk=function(n){return mt(gS,Bt,191,n,0,1)};var wia=V(on,"EcorePackageImpl/40",1273);G(1274,1,Yi,zEt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Sia=V(on,"EcorePackageImpl/41",1274);G(1275,1,Yi,VEt),_.fk=function(n){return He(n,596)},_.gk=function(n){return mt(lWe,en,596,n,0,1)};var Tia=V(on,"EcorePackageImpl/42",1275);G(1276,1,Yi,HEt),_.fk=function(n){return!1},_.gk=function(n){return mt(WWe,Bt,2217,n,0,1)};var xia=V(on,"EcorePackageImpl/43",1276);G(1277,1,Yi,qEt),_.fk=function(n){return He(n,44)},_.gk=function(n){return mt(pE,aZ,44,n,0,1)};var Cia=V(on,"EcorePackageImpl/44",1277);G(1238,1,Yi,YEt),_.fk=function(n){return He(n,142)},_.gk=function(n){return mt(ig,en,142,n,0,1)};var kia=V(on,"EcorePackageImpl/5",1238);G(1239,1,Yi,WEt),_.fk=function(n){return He(n,156)},_.gk=function(n){return mt(ive,en,156,n,0,1)};var Aia=V(on,"EcorePackageImpl/6",1239);G(1240,1,Yi,jEt),_.fk=function(n){return He(n,469)},_.gk=function(n){return mt(Lte,en,685,n,0,1)};var Ria=V(on,"EcorePackageImpl/7",1240);G(1241,1,Yi,KEt),_.fk=function(n){return He(n,582)},_.gk=function(n){return mt(zb,en,694,n,0,1)};var Iia=V(on,"EcorePackageImpl/8",1241);G(1242,1,Yi,XEt),_.fk=function(n){return He(n,480)},_.gk=function(n){return mt(Q9,en,480,n,0,1)};var Oia=V(on,"EcorePackageImpl/9",1242);G(1038,2080,CKt,s3t),_.Mi=function(n,s){Ubn(this,b(s,424))},_.Qi=function(n,s){eGt(this,n,b(s,424))};var Nia=V(on,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1038);G(1039,152,KG,ANt),_.jj=function(){return this.a.a};var Lia=V(on,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1039);G(1067,1066,{},zRt);var Mia=V("org.eclipse.emf.ecore.plugin","EcorePlugin",1067),AWe=ns(eXt,"Resource");G(799,1524,tXt),_.Hl=function(n){},_.Il=function(n){},_.El=function(){return!this.a&&(this.a=new Ple(this)),this.a},_.Fl=function(n){var s,u,f,g,E;if(f=n.length,f>0){if(pn(0,n.length),n.charCodeAt(0)==47){E=new Gu(4),g=1;for(s=1;s0&&(n=(Do(0,u,n.length),n.substr(0,u)))}return gTn(this,n)},_.Gl=function(){return this.c},_.Ib=function(){var n;return N2(this.Rm)+"@"+(n=Da(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},_.b=!1;var Dia=V(sme,"ResourceImpl",799);G(1525,799,tXt,X4t);var Pia=V(sme,"BinaryResourceImpl",1525);G(1190,708,eme),_.bj=function(n){return He(n,58)?sdn(this,b(n,58)):He(n,599)?new kn(b(n,599).El()):it(n)===it(this.f)?b(n,16).Kc():(p6(),dV.a)},_.Ob=function(){return h8e(this)},_.a=!1;var Bia=V(qa,"EcoreUtil/ContentTreeIterator",1190);G(1526,1190,eme,iNt),_.bj=function(n){return it(n)===it(this.f)?b(n,15).Kc():new tMt(b(n,58))};var Fia=V(sme,"ResourceImpl/5",1526);G(658,2092,VKt,Ple),_.Hc=function(n){return this.i<=4?mO(this,n):He(n,54)&&b(n,54).Jh()==this.a},_.Mi=function(n,s){n==this.i-1&&(this.a.b||(this.a.b=!0))},_.Oi=function(n,s){n==0?this.a.b||(this.a.b=!0):Dhe(this,n,s)},_.Qi=function(n,s){},_.Ri=function(n,s,u){},_.Lj=function(){return 2},_.jj=function(){return this.a},_.Mj=function(){return!0},_.Nj=function(n,s){var u=b(n,54);return s=u.fi(this.a,s),s},_.Oj=function(n,s){var u=b(n,54);return u.fi(null,s)},_.Pj=function(){return!1},_.Si=function(){return!0},_.aj=function(n){return mt(I_,en,58,n,0,1)},_.Yi=function(){return!1};var $ia=V(sme,"ResourceImpl/ContentsEList",658);G(970,2062,DO,Q4t),_.fd=function(n){return this.a.Ki(n)},_.gc=function(){return this.a.gc()};var Uia=V(qa,"AbstractSequentialInternalEList/1",970),RWe,IWe,Yo,OWe;G(634,1,{},sOt);var Dte,Pte,Gia=V(qa,"BasicExtendedMetaData",634);G(1181,1,{},lRt),_.Jl=function(){return null},_.Kl=function(){return this.a==-2&&Urn(this,gwn(this.d,this.b)),this.a},_.Ll=function(){return null},_.Ml=function(){return Hr(),Hr(),Jo},_.xe=function(){return this.c==eN&&Grn(this,TFt(this.d,this.b)),this.c},_.Nl=function(){return 0},_.a=-2,_.c=eN;var zia=V(qa,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1181);G(1182,1,{},O7t),_.Jl=function(){return this.a==(O6(),Dte)&&Hrn(this,pkn(this.f,this.b)),this.a},_.Kl=function(){return 0},_.Ll=function(){return this.c==(O6(),Dte)&&zrn(this,gkn(this.f,this.b)),this.c},_.Ml=function(){return!this.d&&Yrn(this,J3n(this.f,this.b)),this.d},_.xe=function(){return this.e==eN&&jrn(this,TFt(this.f,this.b)),this.e},_.Nl=function(){return this.g==-2&&Xrn(this,MEn(this.f,this.b)),this.g},_.e=eN,_.g=-2;var Via=V(qa,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1182);G(1180,1,{},cRt),_.b=!1,_.c=!1;var Hia=V(qa,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1180);G(1183,1,{},N7t),_.c=-2,_.e=eN,_.f=eN;var qia=V(qa,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1183);G(593,632,dc,oK),_.Lj=function(){return this.c},_.ol=function(){return!1},_.Wi=function(n,s){return s},_.c=0;var Yia=V(qa,"EDataTypeEList",593),NWe=ns(qa,"FeatureMap");G(78,593,{3:1,4:1,20:1,31:1,56:1,16:1,15:1,59:1,70:1,66:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},gs),_.bd=function(n,s){LCn(this,n,b(s,76))},_.Fc=function(n){return Qxn(this,b(n,76))},_.Hi=function(n){nhn(this,b(n,76))},_.Nj=function(n,s){return Ton(this,b(n,76),s)},_.Oj=function(n,s){return n6e(this,b(n,76),s)},_.Ti=function(n,s){return i3n(this,n,s)},_.Wi=function(n,s){return q5n(this,n,b(s,76))},_.hd=function(n,s){return _4n(this,n,b(s,76))},_.Uj=function(n,s){return xon(this,b(n,76),s)},_.Vj=function(n,s){return D6t(this,b(n,76),s)},_.Wj=function(n,s,u){return EEn(this,b(n,76),b(s,76),u)},_.Zi=function(n,s){return Rfe(this,n,b(s,76))},_.Ol=function(n,s){return rDe(this,n,s)},_.cd=function(n,s){var u,f,g,E,S,C,O,M,U;M=new Uw(s.gc());for(g=s.Kc();g.Ob();)if(f=b(g.Pb(),76),E=f.Lk(),Nb(this.e,E))(!E.Si()||!QK(this,E,f.md())&&!mO(M,f))&&ii(M,f);else{U=nh(this.e.Dh(),E),u=b(this.g,124),S=!0;for(C=0;C=0)if(s=n[this.c],this.k.am(s.Lk()))return this.j=this.f?s:s.md(),this.i=-2,!0;return this.i=-1,this.g=-1,!1};var Kia=V(qa,"BasicFeatureMap/FeatureEIterator",420);G(676,420,S1,Yce),_.ul=function(){return!0};var Xia=V(qa,"BasicFeatureMap/ResolvingFeatureEIterator",676);G(968,496,rJ,ZRt),_.pj=function(){return this};var Qia=V(qa,"EContentsEList/1",968);G(969,496,rJ,wRt),_.ul=function(){return!1};var Zia=V(qa,"EContentsEList/2",969);G(967,287,nJ,JRt),_.wl=function(n){},_.Ob=function(){return!1},_.Sb=function(){return!1};var Jia=V(qa,"EContentsEList/FeatureIteratorImpl/1",967);G(840,593,dc,uIe),_.Ni=function(){this.a=!0},_.Qj=function(){return this.a},_.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},_.a=!1;var eaa=V(qa,"EDataTypeEList/Unsettable",840);G(1958,593,dc,sIt),_.Si=function(){return!0};var taa=V(qa,"EDataTypeUniqueEList",1958);G(1959,840,dc,oIt),_.Si=function(){return!0};var raa=V(qa,"EDataTypeUniqueEList/Unsettable",1959);G(147,83,dc,Ih),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var naa=V(qa,"EObjectContainmentEList/Resolving",147);G(1184,555,dc,lIt),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var iaa=V(qa,"EObjectContainmentEList/Unsettable/Resolving",1184);G(766,14,dc,XIe),_.Ni=function(){this.a=!0},_.Qj=function(){return this.a},_.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},_.a=!1;var aaa=V(qa,"EObjectContainmentWithInverseEList/Unsettable",766);G(1222,766,dc,E6t),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var saa=V(qa,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1222);G(757,505,dc,hIe),_.Ni=function(){this.a=!0},_.Qj=function(){return this.a},_.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},_.a=!1;var oaa=V(qa,"EObjectEList/Unsettable",757);G(338,505,dc,u4),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var laa=V(qa,"EObjectResolvingEList",338);G(1844,757,dc,cIt),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var caa=V(qa,"EObjectResolvingEList/Unsettable",1844);G(1527,1,{},QEt);var Ior,uaa=V(qa,"EObjectValidator",1527);G(559,505,dc,TK),_.il=function(){return this.d},_.jl=function(){return this.b},_.Mj=function(){return!0},_.ml=function(){return!0},_.b=0;var haa=V(qa,"EObjectWithInverseEList",559);G(1225,559,dc,w6t),_.ll=function(){return!0};var daa=V(qa,"EObjectWithInverseEList/ManyInverse",1225);G(635,559,dc,fue),_.Ni=function(){this.a=!0},_.Qj=function(){return this.a},_.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},_.a=!1;var faa=V(qa,"EObjectWithInverseEList/Unsettable",635);G(1224,635,dc,S6t),_.ll=function(){return!0};var paa=V(qa,"EObjectWithInverseEList/Unsettable/ManyInverse",1224);G(767,559,dc,QIe),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var gaa=V(qa,"EObjectWithInverseResolvingEList",767);G(32,767,dc,Wr),_.ll=function(){return!0};var maa=V(qa,"EObjectWithInverseResolvingEList/ManyInverse",32);G(768,635,dc,ZIe),_.nl=function(){return!0},_.Wi=function(n,s){return f5(this,n,b(s,58))};var baa=V(qa,"EObjectWithInverseResolvingEList/Unsettable",768);G(1223,768,dc,T6t),_.ll=function(){return!0};var yaa=V(qa,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1223);G(1185,632,dc),_.Li=function(){return(this.b&1792)==0},_.Ni=function(){this.b|=1},_.kl=function(){return(this.b&4)!=0},_.Mj=function(){return(this.b&40)!=0},_.ll=function(){return(this.b&16)!=0},_.ml=function(){return(this.b&8)!=0},_.nl=function(){return(this.b&Tx)!=0},_.al=function(){return(this.b&32)!=0},_.ol=function(){return(this.b&u0)!=0},_.fk=function(n){return!this.d?this.Lk().Hk().fk(n):uMt(this.d,n)},_.Qj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},_.Si=function(){return(this.b&128)!=0},_.Gk=function(){var n;if(ni(this),(this.b&2)!=0)if(Ad(this.e))n=(this.b&1)!=0,this.b&=-2,ZI(this,new i0(this.e,2,Za(this.e.Dh(),this.Lk()),n,!1));else this.b&=-2},_.Yi=function(){return(this.b&1536)==0},_.b=0;var vaa=V(qa,"EcoreEList/Generic",1185);G(1186,1185,dc,mLt),_.Lk=function(){return this.a};var _aa=V(qa,"EcoreEList/Dynamic",1186);G(765,66,$m,d5e),_.aj=function(n){return yU(this.a.a,n)};var Eaa=V(qa,"EcoreEMap/1",765);G(764,83,dc,X6e),_.Mi=function(n,s){mQ(this.b,b(s,136))},_.Oi=function(n,s){fPt(this.b)},_.Pi=function(n,s,u){var f;++(f=this.b,b(s,136),f).e},_.Qi=function(n,s){Fde(this.b,b(s,136))},_.Ri=function(n,s,u){Fde(this.b,b(u,136)),it(u)===it(s)&&b(u,136).Ci(wan(b(s,136).ld())),mQ(this.b,b(s,136))};var waa=V(qa,"EcoreEMap/DelegateEObjectContainmentEList",764);G(1220,141,vFe,I9t);var Saa=V(qa,"EcoreEMap/Unsettable",1220);G(1221,764,dc,x6t),_.Ni=function(){this.a=!0},_.Qj=function(){return this.a},_.Gk=function(){var n;if(ni(this),Ad(this.e))n=this.a,this.a=!1,ha(this.e,new i0(this.e,2,this.c,n,!1));else this.a=!1},_.a=!1;var Taa=V(qa,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1221);G(1189,215,G4,bNt),_.a=!1,_.b=!1;var xaa=V(qa,"EcoreUtil/Copier",1189);G(759,1,To,tMt),_.Nb=function(n){Go(this,n)},_.Ob=function(){return cFt(this)},_.Pb=function(){var n;return cFt(this),n=this.b,this.b=null,n},_.Qb=function(){this.a.Qb()};var Caa=V(qa,"EcoreUtil/ProperContentIterator",759);G(1528,1527,{},ZSt);var Oor,kaa=V(qa,"EcoreValidator",1528),Nor,Aaa=ns(qa,"FeatureMapUtil/Validator");G(1295,1,{2041:1},ZEt),_.am=function(n){return!0};var Raa=V(qa,"FeatureMapUtil/1",1295);G(773,1,{2041:1},ODe),_.am=function(n){var s;if(this.c==n)return!0;if(s=Jt(An(this.a,n)),s==null)if(Ekn(this,n))return t8t(this.a,n,(an(),nN)),!0;else return t8t(this.a,n,(an(),g_)),!1;else return s==(an(),nN)},_.e=!1;var lve,Iaa=V(qa,"FeatureMapUtil/BasicValidator",773);G(774,45,G4,lIe);var Oaa=V(qa,"FeatureMapUtil/BasicValidator/Cache",774);G(509,56,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,71:1,97:1},w$),_.bd=function(n,s){Hzt(this.c,this.b,n,s)},_.Fc=function(n){return rDe(this.c,this.b,n)},_.cd=function(n,s){return zAn(this.c,this.b,n,s)},_.Gc=function(n){return KM(this,n)},_.Gi=function(n,s){Bgn(this.c,this.b,n,s)},_.Wk=function(n,s){return j8e(this.c,this.b,n,s)},_.$i=function(n){return QQ(this.c,this.b,n,!1)},_.Ii=function(){return MRt(this.c,this.b)},_.Ji=function(){return can(this.c,this.b)},_.Ki=function(n){return z0n(this.c,this.b,n)},_.Xk=function(n,s){return i6t(this,n,s)},_.$b=function(){bA(this)},_.Hc=function(n){return QK(this.c,this.b,n)},_.Ic=function(n){return Gmn(this.c,this.b,n)},_.Xb=function(n){return QQ(this.c,this.b,n,!0)},_.Fk=function(n){return this},_.dd=function(n){return Kpn(this.c,this.b,n)},_.dc=function(){return Pj(this)},_.Qj=function(){return!$U(this.c,this.b)},_.Kc=function(){return kgn(this.c,this.b)},_.ed=function(){return Agn(this.c,this.b)},_.fd=function(n){return ayn(this.c,this.b,n)},_.Ti=function(n,s){return aHt(this.c,this.b,n,s)},_.Ui=function(n,s){q0n(this.c,this.b,n,s)},_.gd=function(n){return BUt(this.c,this.b,n)},_.Mc=function(n){return Vkn(this.c,this.b,n)},_.hd=function(n,s){return pHt(this.c,this.b,n,s)},_.Wb=function(n){NQ(this.c,this.b),KM(this,b(n,15))},_.gc=function(){return iyn(this.c,this.b)},_.Pc=function(){return Qfn(this.c,this.b)},_.Qc=function(n){return Xpn(this.c,this.b,n)},_.Ib=function(){var n,s;s=new gy,s.a+="[";for(n=MRt(this.c,this.b);Ade(n);)Ol(s,QM(fQ(n))),Ade(n)&&(s.a+=ll);return s.a+="]",s.a},_.Gk=function(){NQ(this.c,this.b)};var Naa=V(qa,"FeatureMapUtil/FeatureEList",509);G(644,39,KG,The),_.hj=function(n){return F8(this,n)},_.mj=function(n){var s,u,f,g,E,S,C;switch(this.d){case 1:case 2:{if(E=n.jj(),it(E)===it(this.c)&&F8(this,null)==n.hj(null))return this.g=n.ij(),n.gj()==1&&(this.d=1),!0;break}case 3:{switch(g=n.gj(),g){case 3:{if(E=n.jj(),it(E)===it(this.c)&&F8(this,null)==n.hj(null))return this.d=5,s=new Uw(2),ii(s,this.g),ii(s,n.ij()),this.g=s,!0;break}}break}case 5:{switch(g=n.gj(),g){case 3:{if(E=n.jj(),it(E)===it(this.c)&&F8(this,null)==n.hj(null))return u=b(this.g,16),u.Fc(n.ij()),!0;break}}break}case 4:{switch(g=n.gj(),g){case 3:{if(E=n.jj(),it(E)===it(this.c)&&F8(this,null)==n.hj(null))return this.d=1,this.g=n.ij(),!0;break}case 4:{if(E=n.jj(),it(E)===it(this.c)&&F8(this,null)==n.hj(null))return this.d=6,C=new Uw(2),ii(C,this.n),ii(C,n.kj()),this.n=C,S=Ce(Te(ci,1),$i,28,15,[this.o,n.lj()]),this.g=S,!0;break}}break}case 6:{switch(g=n.gj(),g){case 4:{if(E=n.jj(),it(E)===it(this.c)&&F8(this,null)==n.hj(null))return u=b(this.n,16),u.Fc(n.kj()),S=b(this.g,53),f=mt(ci,$i,28,S.length+1,15,1),au(S,0,f,0,S.length),f[S.length]=n.lj(),this.g=f,!0;break}}break}}return!1};var Laa=V(qa,"FeatureMapUtil/FeatureENotificationImpl",644);G(564,509,{20:1,31:1,56:1,16:1,15:1,61:1,79:1,160:1,220:1,2036:1,71:1,97:1},hK),_.Ol=function(n,s){return rDe(this.c,n,s)},_.Pl=function(n,s,u){return j8e(this.c,n,s,u)},_.Ql=function(n,s,u){return _De(this.c,n,s,u)},_.Rl=function(){return this},_.Sl=function(n,s){return gG(this.c,n,s)},_.Tl=function(n){return b(QQ(this.c,this.b,n,!1),76).Lk()},_.Ul=function(n){return b(QQ(this.c,this.b,n,!1),76).md()},_.Vl=function(){return this.a},_.Wl=function(n){return!$U(this.c,n)},_.Xl=function(n,s){ZQ(this.c,n,s)},_.Yl=function(n){return L9t(this.c,n)},_.Zl=function(n){h$t(this.c,n)};var Maa=V(qa,"FeatureMapUtil/FeatureFeatureMap",564);G(1294,1,ame,oRt),_.Fk=function(n){return QQ(this.b,this.a,-1,n)},_.Qj=function(){return!$U(this.b,this.a)},_.Wb=function(n){ZQ(this.b,this.a,n)},_.Gk=function(){NQ(this.b,this.a)};var Daa=V(qa,"FeatureMapUtil/FeatureValue",1294),Z5,cve,uve,J5,Lor,pV=ns(hJ,"AnyType");G(680,63,Lb,Jle);var Paa=V(hJ,"InvalidDatatypeValueException",680),Bte=ns(hJ,nXt),gV=ns(hJ,iXt),LWe=ns(hJ,aXt),Mor,qc,MWe,OE,Dor,Por,Bor,For,$or,Uor,Gor,zor,Vor,Hor,qor,Nk,Yor,Lk,rP,Wor,PS,mV,bV,jor,nP,iP;G(844,516,{110:1,94:1,93:1,58:1,54:1,99:1,857:1},O5e),_.Lh=function(n,s,u){switch(n){case 0:if(u)return!this.c&&(this.c=new gs(this,0)),this.c;return!this.c&&(this.c=new gs(this,0)),this.c.b;case 1:if(u)return!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160);return(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Vl();case 2:if(u)return!this.b&&(this.b=new gs(this,2)),this.b;return!this.b&&(this.b=new gs(this,2)),this.b.b}return Mf(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},_.Uh=function(n,s,u){var f;switch(s){case 0:return!this.c&&(this.c=new gs(this,0)),hG(this.c,n,u);case 1:return(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),71)).Xk(n,u);case 2:return!this.b&&(this.b=new gs(this,2)),hG(this.b,n,u)}return f=b(jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),s),69),f.wk().Ak(this,MNe(this),s-Un(this.ii()),n,u)},_.Wh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).dc();case 2:return!!this.b&&this.b.i!=0}return Nf(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.bi=function(n,s){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),z$(this.c,s);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Wb(s);return;case 2:!this.b&&(this.b=new gs(this,2)),z$(this.b,s);return}Ff(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},_.ii=function(){return ka(),MWe},_.ki=function(n){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),ni(this.c);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).$b();return;case 2:!this.b&&(this.b=new gs(this,2)),ni(this.b);return}Bf(this,n-Un(this.ii()),jr((this.j&2)==0?this.ii():(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.Ib=function(){var n;if((this.j&4)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (mixed: ",qM(n,this.c),n.a+=", anyAttribute: ",qM(n,this.b),n.a+=")",n.a};var Baa=V(Ps,"AnyTypeImpl",844);G(681,516,{110:1,94:1,93:1,58:1,54:1,99:1,2119:1,681:1},cwt),_.Lh=function(n,s,u){switch(n){case 0:return this.a;case 1:return this.b}return Mf(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},_.Wh=function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return Nf(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.bi=function(n,s){switch(n){case 0:Jrn(this,wi(s));return;case 1:tnn(this,wi(s));return}Ff(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},_.ii=function(){return ka(),Nk},_.ki=function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}Bf(this,n-Un((ka(),Nk)),jr((this.j&2)==0?Nk:(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.Ib=function(){var n;if((this.j&4)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (data: ",Ol(n,this.a),n.a+=", target: ",Ol(n,this.b),n.a+=")",n.a},_.a=null,_.b=null;var Faa=V(Ps,"ProcessingInstructionImpl",681);G(682,844,{110:1,94:1,93:1,58:1,54:1,99:1,857:1,2120:1,682:1},Ukt),_.Lh=function(n,s,u){switch(n){case 0:if(u)return!this.c&&(this.c=new gs(this,0)),this.c;return!this.c&&(this.c=new gs(this,0)),this.c.b;case 1:if(u)return!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160);return(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Vl();case 2:if(u)return!this.b&&(this.b=new gs(this,2)),this.b;return!this.b&&(this.b=new gs(this,2)),this.b.b;case 3:return!this.c&&(this.c=new gs(this,0)),wi(gG(this.c,(ka(),rP),!0));case 4:return e6e(this.a,(!this.c&&(this.c=new gs(this,0)),wi(gG(this.c,(ka(),rP),!0))));case 5:return this.a}return Mf(this,n-Un((ka(),Lk)),jr((this.j&2)==0?Lk:(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},_.Wh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new gs(this,0)),wi(gG(this.c,(ka(),rP),!0))!=null;case 4:return e6e(this.a,(!this.c&&(this.c=new gs(this,0)),wi(gG(this.c,(ka(),rP),!0))))!=null;case 5:return!!this.a}return Nf(this,n-Un((ka(),Lk)),jr((this.j&2)==0?Lk:(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.bi=function(n,s){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),z$(this.c,s);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(b(bu(this.c,(ka(),OE)),160),220)).Wb(s);return;case 2:!this.b&&(this.b=new gs(this,2)),z$(this.b,s);return;case 3:zOe(this,wi(s));return;case 4:zOe(this,JIe(this.a,s));return;case 5:enn(this,b(s,156));return}Ff(this,n-Un((ka(),Lk)),jr((this.j&2)==0?Lk:(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},_.ii=function(){return ka(),Lk},_.ki=function(n){switch(n){case 0:!this.c&&(this.c=new gs(this,0)),ni(this.c);return;case 1:(!this.c&&(this.c=new gs(this,0)),b(bu(this.c,(ka(),OE)),160)).$b();return;case 2:!this.b&&(this.b=new gs(this,2)),ni(this.b);return;case 3:!this.c&&(this.c=new gs(this,0)),ZQ(this.c,(ka(),rP),null);return;case 4:zOe(this,JIe(this.a,null));return;case 5:this.a=null;return}Bf(this,n-Un((ka(),Lk)),jr((this.j&2)==0?Lk:(!this.k&&(this.k=new U0),this.k).Nk(),n))};var $aa=V(Ps,"SimpleAnyTypeImpl",682);G(683,516,{110:1,94:1,93:1,58:1,54:1,99:1,2121:1,683:1},Gkt),_.Lh=function(n,s,u){switch(n){case 0:if(u)return!this.a&&(this.a=new gs(this,0)),this.a;return!this.a&&(this.a=new gs(this,0)),this.a.b;case 1:return u?(!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),this.b):(!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),sU(this.b));case 2:return u?(!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),this.c):(!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),sU(this.c));case 3:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),mV));case 4:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),bV));case 5:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),nP));case 6:return!this.a&&(this.a=new gs(this,0)),bu(this.a,(ka(),iP))}return Mf(this,n-Un((ka(),PS)),jr((this.j&2)==0?PS:(!this.k&&(this.k=new U0),this.k).Nk(),n),s,u)},_.Uh=function(n,s,u){var f;switch(s){case 0:return!this.a&&(this.a=new gs(this,0)),hG(this.a,n,u);case 1:return!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),eK(this.b,n,u);case 2:return!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),eK(this.c,n,u);case 5:return!this.a&&(this.a=new gs(this,0)),i6t(bu(this.a,(ka(),nP)),n,u)}return f=b(jr((this.j&2)==0?(ka(),PS):(!this.k&&(this.k=new U0),this.k).Nk(),s),69),f.wk().Ak(this,MNe(this),s-Un((ka(),PS)),n,u)},_.Wh=function(n){switch(n){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new gs(this,0)),!Pj(bu(this.a,(ka(),mV)));case 4:return!this.a&&(this.a=new gs(this,0)),!Pj(bu(this.a,(ka(),bV)));case 5:return!this.a&&(this.a=new gs(this,0)),!Pj(bu(this.a,(ka(),nP)));case 6:return!this.a&&(this.a=new gs(this,0)),!Pj(bu(this.a,(ka(),iP)))}return Nf(this,n-Un((ka(),PS)),jr((this.j&2)==0?PS:(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.bi=function(n,s){switch(n){case 0:!this.a&&(this.a=new gs(this,0)),z$(this.a,s);return;case 1:!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),PX(this.b,s);return;case 2:!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),PX(this.c,s);return;case 3:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),mV))),!this.a&&(this.a=new gs(this,0)),KM(bu(this.a,mV),b(s,16));return;case 4:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),bV))),!this.a&&(this.a=new gs(this,0)),KM(bu(this.a,bV),b(s,16));return;case 5:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),nP))),!this.a&&(this.a=new gs(this,0)),KM(bu(this.a,nP),b(s,16));return;case 6:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),iP))),!this.a&&(this.a=new gs(this,0)),KM(bu(this.a,iP),b(s,16));return}Ff(this,n-Un((ka(),PS)),jr((this.j&2)==0?PS:(!this.k&&(this.k=new U0),this.k).Nk(),n),s)},_.ii=function(){return ka(),PS},_.ki=function(n){switch(n){case 0:!this.a&&(this.a=new gs(this,0)),ni(this.a);return;case 1:!this.b&&(this.b=new Mh((Vr(),yl),Bc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Mh((Vr(),yl),Bc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),mV)));return;case 4:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),bV)));return;case 5:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),nP)));return;case 6:!this.a&&(this.a=new gs(this,0)),bA(bu(this.a,(ka(),iP)));return}Bf(this,n-Un((ka(),PS)),jr((this.j&2)==0?PS:(!this.k&&(this.k=new U0),this.k).Nk(),n))},_.Ib=function(){var n;if((this.j&4)!=0)return o0(this);return n=new pp(o0(this)),n.a+=" (mixed: ",qM(n,this.a),n.a+=")",n.a};var Uaa=V(Ps,"XMLTypeDocumentRootImpl",683);G(2028,720,{110:1,94:1,93:1,480:1,155:1,58:1,114:1,54:1,99:1,158:1,119:1,120:1,2122:1},JEt),_.ri=function(n,s){switch(n.hk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return s==null?null:hc(s);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return wi(s);case 6:return Dsn(b(s,195));case 12:case 47:case 49:case 11:return tqt(this,n,s);case 13:return s==null?null:qAn(b(s,247));case 15:case 14:return s==null?null:Qun(rt(ht(s)));case 17:return Z$t((ka(),s));case 18:return Z$t(s);case 21:case 20:return s==null?null:Zun(b(s,161).a);case 27:return Psn(b(s,195));case 30:return d$t((ka(),b(s,15)));case 31:return d$t(b(s,15));case 40:return Fsn((ka(),s));case 42:return J$t((ka(),s));case 43:return J$t(s);case 59:case 48:return Bsn((ka(),s));default:throw _e(new fn(QO+n.xe()+dS))}},_.si=function(n){var s,u,f,g,E;switch(n.G==-1&&(n.G=(u=Wd(n),u?Py(u.vi(),n):-1)),n.G){case 0:return s=new O5e,s;case 1:return f=new cwt,f;case 2:return g=new Ukt,g;case 3:return E=new Gkt,E;default:throw _e(new fn(Vge+n.zb+dS))}},_.ti=function(n,s){var u,f,g,E,S,C,O,M,U,q,re,ae,ue,de,xe,Be;switch(n.hk()){case 5:case 52:case 4:return s;case 6:return Hvn(s);case 8:case 7:return s==null?null:IEn(s);case 9:return s==null?null:pU(Zd((f=vu(s,!0),f.length>0&&(pn(0,f.length),f.charCodeAt(0)==43)?(pn(1,f.length+1),f.substr(1)):f),-128,127)<<24>>24);case 10:return s==null?null:pU(Zd((g=vu(s,!0),g.length>0&&(pn(0,g.length),g.charCodeAt(0)==43)?(pn(1,g.length+1),g.substr(1)):g),-128,127)<<24>>24);case 11:return wi(iS(this,(ka(),Bor),s));case 12:return wi(iS(this,(ka(),For),s));case 13:return s==null?null:new tRe(vu(s,!0));case 15:case 14:return Jxn(s);case 16:return wi(iS(this,(ka(),$or),s));case 17:return pFt((ka(),s));case 18:return pFt(s);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return vu(s,!0);case 21:case 20:return cCn(s);case 22:return wi(iS(this,(ka(),Uor),s));case 23:return wi(iS(this,(ka(),Gor),s));case 24:return wi(iS(this,(ka(),zor),s));case 25:return wi(iS(this,(ka(),Vor),s));case 26:return wi(iS(this,(ka(),Hor),s));case 27:return Nvn(s);case 30:return gFt((ka(),s));case 31:return gFt(s);case 32:return s==null?null:$t(Zd((U=vu(s,!0),U.length>0&&(pn(0,U.length),U.charCodeAt(0)==43)?(pn(1,U.length+1),U.substr(1)):U),Qo,sa));case 33:return s==null?null:new Gv((q=vu(s,!0),q.length>0&&(pn(0,q.length),q.charCodeAt(0)==43)?(pn(1,q.length+1),q.substr(1)):q));case 34:return s==null?null:$t(Zd((re=vu(s,!0),re.length>0&&(pn(0,re.length),re.charCodeAt(0)==43)?(pn(1,re.length+1),re.substr(1)):re),Qo,sa));case 36:return s==null?null:Rb(rZ((ae=vu(s,!0),ae.length>0&&(pn(0,ae.length),ae.charCodeAt(0)==43)?(pn(1,ae.length+1),ae.substr(1)):ae)));case 37:return s==null?null:Rb(rZ((ue=vu(s,!0),ue.length>0&&(pn(0,ue.length),ue.charCodeAt(0)==43)?(pn(1,ue.length+1),ue.substr(1)):ue)));case 40:return R_n((ka(),s));case 42:return mFt((ka(),s));case 43:return mFt(s);case 44:return s==null?null:new Gv((de=vu(s,!0),de.length>0&&(pn(0,de.length),de.charCodeAt(0)==43)?(pn(1,de.length+1),de.substr(1)):de));case 45:return s==null?null:new Gv((xe=vu(s,!0),xe.length>0&&(pn(0,xe.length),xe.charCodeAt(0)==43)?(pn(1,xe.length+1),xe.substr(1)):xe));case 46:return vu(s,!1);case 47:return wi(iS(this,(ka(),qor),s));case 59:case 48:return A_n((ka(),s));case 49:return wi(iS(this,(ka(),Yor),s));case 50:return s==null?null:iO(Zd((Be=vu(s,!0),Be.length>0&&(pn(0,Be.length),Be.charCodeAt(0)==43)?(pn(1,Be.length+1),Be.substr(1)):Be),oJ,32767)<<16>>16);case 51:return s==null?null:iO(Zd((E=vu(s,!0),E.length>0&&(pn(0,E.length),E.charCodeAt(0)==43)?(pn(1,E.length+1),E.substr(1)):E),oJ,32767)<<16>>16);case 53:return wi(iS(this,(ka(),Wor),s));case 55:return s==null?null:iO(Zd((S=vu(s,!0),S.length>0&&(pn(0,S.length),S.charCodeAt(0)==43)?(pn(1,S.length+1),S.substr(1)):S),oJ,32767)<<16>>16);case 56:return s==null?null:iO(Zd((C=vu(s,!0),C.length>0&&(pn(0,C.length),C.charCodeAt(0)==43)?(pn(1,C.length+1),C.substr(1)):C),oJ,32767)<<16>>16);case 57:return s==null?null:Rb(rZ((O=vu(s,!0),O.length>0&&(pn(0,O.length),O.charCodeAt(0)==43)?(pn(1,O.length+1),O.substr(1)):O)));case 58:return s==null?null:Rb(rZ((M=vu(s,!0),M.length>0&&(pn(0,M.length),M.charCodeAt(0)==43)?(pn(1,M.length+1),M.substr(1)):M)));case 60:return s==null?null:$t(Zd((u=vu(s,!0),u.length>0&&(pn(0,u.length),u.charCodeAt(0)==43)?(pn(1,u.length+1),u.substr(1)):u),Qo,sa));case 61:return s==null?null:$t(Zd(vu(s,!0),Qo,sa));default:throw _e(new fn(QO+n.xe()+dS))}};var Kor,DWe,Xor,PWe,Gaa=V(Ps,"XMLTypeFactoryImpl",2028);G(594,184,{110:1,94:1,93:1,155:1,197:1,58:1,241:1,114:1,54:1,99:1,158:1,184:1,119:1,120:1,690:1,2044:1,594:1},$Nt),_.N=!1,_.O=!1;var Qor=!1,zaa=V(Ps,"XMLTypePackageImpl",594);G(1961,1,{851:1},ewt),_.Kk=function(){return hDe(),slr};var Vaa=V(Ps,"XMLTypePackageImpl/1",1961);G(1970,1,Yi,twt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Haa=V(Ps,"XMLTypePackageImpl/10",1970);G(1971,1,Yi,rwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var qaa=V(Ps,"XMLTypePackageImpl/11",1971);G(1972,1,Yi,nwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Yaa=V(Ps,"XMLTypePackageImpl/12",1972);G(1973,1,Yi,iwt),_.fk=function(n){return LT(n)},_.gk=function(n){return mt(Bs,Bt,345,n,7,1)};var Waa=V(Ps,"XMLTypePackageImpl/13",1973);G(1974,1,Yi,awt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var jaa=V(Ps,"XMLTypePackageImpl/14",1974);G(1975,1,Yi,swt),_.fk=function(n){return He(n,15)},_.gk=function(n){return mt(Yf,yx,15,n,0,1)};var Kaa=V(Ps,"XMLTypePackageImpl/15",1975);G(1976,1,Yi,owt),_.fk=function(n){return He(n,15)},_.gk=function(n){return mt(Yf,yx,15,n,0,1)};var Xaa=V(Ps,"XMLTypePackageImpl/16",1976);G(1977,1,Yi,lwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Qaa=V(Ps,"XMLTypePackageImpl/17",1977);G(1978,1,Yi,uwt),_.fk=function(n){return He(n,161)},_.gk=function(n){return mt(iN,Bt,161,n,0,1)};var Zaa=V(Ps,"XMLTypePackageImpl/18",1978);G(1979,1,Yi,hwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Jaa=V(Ps,"XMLTypePackageImpl/19",1979);G(1962,1,Yi,dwt),_.fk=function(n){return He(n,857)},_.gk=function(n){return mt(pV,en,857,n,0,1)};var esa=V(Ps,"XMLTypePackageImpl/2",1962);G(1980,1,Yi,fwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var tsa=V(Ps,"XMLTypePackageImpl/20",1980);G(1981,1,Yi,pwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var rsa=V(Ps,"XMLTypePackageImpl/21",1981);G(1982,1,Yi,gwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var nsa=V(Ps,"XMLTypePackageImpl/22",1982);G(1983,1,Yi,mwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var isa=V(Ps,"XMLTypePackageImpl/23",1983);G(1984,1,Yi,bwt),_.fk=function(n){return He(n,195)},_.gk=function(n){return mt(Gh,Bt,195,n,0,2)};var asa=V(Ps,"XMLTypePackageImpl/24",1984);G(1985,1,Yi,ywt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var ssa=V(Ps,"XMLTypePackageImpl/25",1985);G(1986,1,Yi,vwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var osa=V(Ps,"XMLTypePackageImpl/26",1986);G(1987,1,Yi,_wt),_.fk=function(n){return He(n,15)},_.gk=function(n){return mt(Yf,yx,15,n,0,1)};var lsa=V(Ps,"XMLTypePackageImpl/27",1987);G(1988,1,Yi,Ewt),_.fk=function(n){return He(n,15)},_.gk=function(n){return mt(Yf,yx,15,n,0,1)};var csa=V(Ps,"XMLTypePackageImpl/28",1988);G(1989,1,Yi,wwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var usa=V(Ps,"XMLTypePackageImpl/29",1989);G(1963,1,Yi,Swt),_.fk=function(n){return He(n,681)},_.gk=function(n){return mt(Bte,en,2119,n,0,1)};var hsa=V(Ps,"XMLTypePackageImpl/3",1963);G(1990,1,Yi,Twt),_.fk=function(n){return He(n,17)},_.gk=function(n){return mt(qo,Bt,17,n,0,1)};var dsa=V(Ps,"XMLTypePackageImpl/30",1990);G(1991,1,Yi,xwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var fsa=V(Ps,"XMLTypePackageImpl/31",1991);G(1992,1,Yi,Cwt),_.fk=function(n){return He(n,168)},_.gk=function(n){return mt(pS,Bt,168,n,0,1)};var psa=V(Ps,"XMLTypePackageImpl/32",1992);G(1993,1,Yi,kwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var gsa=V(Ps,"XMLTypePackageImpl/33",1993);G(1994,1,Yi,Awt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var msa=V(Ps,"XMLTypePackageImpl/34",1994);G(1995,1,Yi,Rwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var bsa=V(Ps,"XMLTypePackageImpl/35",1995);G(1996,1,Yi,Iwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var ysa=V(Ps,"XMLTypePackageImpl/36",1996);G(1997,1,Yi,Owt),_.fk=function(n){return He(n,15)},_.gk=function(n){return mt(Yf,yx,15,n,0,1)};var vsa=V(Ps,"XMLTypePackageImpl/37",1997);G(1998,1,Yi,Nwt),_.fk=function(n){return He(n,15)},_.gk=function(n){return mt(Yf,yx,15,n,0,1)};var _sa=V(Ps,"XMLTypePackageImpl/38",1998);G(1999,1,Yi,Lwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Esa=V(Ps,"XMLTypePackageImpl/39",1999);G(1964,1,Yi,Mwt),_.fk=function(n){return He(n,682)},_.gk=function(n){return mt(gV,en,2120,n,0,1)};var wsa=V(Ps,"XMLTypePackageImpl/4",1964);G(2000,1,Yi,Dwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Ssa=V(Ps,"XMLTypePackageImpl/40",2000);G(2001,1,Yi,Pwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Tsa=V(Ps,"XMLTypePackageImpl/41",2001);G(2002,1,Yi,Bwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var xsa=V(Ps,"XMLTypePackageImpl/42",2002);G(2003,1,Yi,Fwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Csa=V(Ps,"XMLTypePackageImpl/43",2003);G(2004,1,Yi,$wt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var ksa=V(Ps,"XMLTypePackageImpl/44",2004);G(2005,1,Yi,Uwt),_.fk=function(n){return He(n,191)},_.gk=function(n){return mt(gS,Bt,191,n,0,1)};var Asa=V(Ps,"XMLTypePackageImpl/45",2005);G(2006,1,Yi,Gwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Rsa=V(Ps,"XMLTypePackageImpl/46",2006);G(2007,1,Yi,zwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Isa=V(Ps,"XMLTypePackageImpl/47",2007);G(2008,1,Yi,Vwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Osa=V(Ps,"XMLTypePackageImpl/48",2008);G(2009,1,Yi,Hwt),_.fk=function(n){return He(n,191)},_.gk=function(n){return mt(gS,Bt,191,n,0,1)};var Nsa=V(Ps,"XMLTypePackageImpl/49",2009);G(1965,1,Yi,qwt),_.fk=function(n){return He(n,683)},_.gk=function(n){return mt(LWe,en,2121,n,0,1)};var Lsa=V(Ps,"XMLTypePackageImpl/5",1965);G(2010,1,Yi,Ywt),_.fk=function(n){return He(n,168)},_.gk=function(n){return mt(pS,Bt,168,n,0,1)};var Msa=V(Ps,"XMLTypePackageImpl/50",2010);G(2011,1,Yi,Wwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Dsa=V(Ps,"XMLTypePackageImpl/51",2011);G(2012,1,Yi,jwt),_.fk=function(n){return He(n,17)},_.gk=function(n){return mt(qo,Bt,17,n,0,1)};var Psa=V(Ps,"XMLTypePackageImpl/52",2012);G(1966,1,Yi,Kwt),_.fk=function(n){return So(n)},_.gk=function(n){return mt(or,Bt,2,n,6,1)};var Bsa=V(Ps,"XMLTypePackageImpl/6",1966);G(1967,1,Yi,Xwt),_.fk=function(n){return He(n,195)},_.gk=function(n){return mt(Gh,Bt,195,n,0,2)};var Fsa=V(Ps,"XMLTypePackageImpl/7",1967);G(1968,1,Yi,Qwt),_.fk=function(n){return NT(n)},_.gk=function(n){return mt(_s,Bt,485,n,8,1)};var $sa=V(Ps,"XMLTypePackageImpl/8",1968);G(1969,1,Yi,Zwt),_.fk=function(n){return He(n,222)},_.gk=function(n){return mt(R5,Bt,222,n,0,1)};var Usa=V(Ps,"XMLTypePackageImpl/9",1969),jg,iv,aP,Fte,Le;G(55,63,Lb,Ti);var Gsa=V(Hy,"RegEx/ParseException",55);G(836,1,{},NAe),_.bm=function(n){return nu*16)throw _e(new Ti(Ai((yi(),mKt))));u=u*16+g}while(!0);if(this.a!=125)throw _e(new Ti(Ai((yi(),bKt))));if(u>tN)throw _e(new Ti(Ai((yi(),yKt))));n=u}else{if(g=0,this.c!=0||(g=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(u=g,na(this),this.c!=0||(g=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));u=u*16+g,n=u}break;case 117:if(f=0,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));s=s*16+f,n=s;break;case 118:if(na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,na(this),this.c!=0||(f=J2(this.a))<0)throw _e(new Ti(Ai((yi(),Vy))));if(s=s*16+f,s>tN)throw _e(new Ti(Ai((yi(),"parser.descappe.4"))));n=s;break;case 65:case 90:case 122:throw _e(new Ti(Ai((yi(),vKt))))}return n},_.dm=function(n){var s,u;switch(n){case 100:u=(this.e&32)==32?o_("Nd",!0):(ia(),$te);break;case 68:u=(this.e&32)==32?o_("Nd",!1):(ia(),zWe);break;case 119:u=(this.e&32)==32?o_("IsWord",!0):(ia(),zN);break;case 87:u=(this.e&32)==32?o_("IsWord",!1):(ia(),HWe);break;case 115:u=(this.e&32)==32?o_("IsSpace",!0):(ia(),eR);break;case 83:u=(this.e&32)==32?o_("IsSpace",!1):(ia(),VWe);break;default:throw _e(new vc((s=n,vXt+s.toString(16))))}return u},_.em=function(n){var s,u,f,g,E,S,C,O,M,U,q,re;if(this.b=1,na(this),s=null,this.c==0&&this.a==94)if(na(this),n)U=(ia(),ia(),++hs,new Yd(5));else s=(ia(),ia(),++hs,new Yd(4)),yu(s,0,tN),U=(++hs,new Yd(4));else U=(ia(),ia(),++hs,new Yd(4));g=!0;while((re=this.c)!=1){if(re==0&&this.a==93&&!g)break;if(g=!1,u=this.a,f=!1,re==10)switch(u){case 100:case 68:case 119:case 87:case 115:case 83:px(U,this.dm(u)),f=!0;break;case 105:case 73:case 99:case 67:u=this.um(U,u),u<0&&(f=!0);break;case 112:case 80:if(q=c8e(this,u),!q)throw _e(new Ti(Ai((yi(),rme))));px(U,q),f=!0;break;default:u=this.cm()}else if(re==20){if(S=h6(this.i,58,this.d),S<0)throw _e(new Ti(Ai((yi(),fFe))));if(C=!0,Ko(this.i,this.d)==94)++this.d,C=!1;if(E=Of(this.i,this.d,S),O=H8t(E,C,(this.e&512)==512),!O)throw _e(new Ti(Ai((yi(),hKt))));if(px(U,O),f=!0,S+1>=this.j||Ko(this.i,S+1)!=93)throw _e(new Ti(Ai((yi(),fFe))));this.d=S+2}if(na(this),!f)if(this.c!=0||this.a!=45)yu(U,u,u);else{if(na(this),(re=this.c)==1)throw _e(new Ti(Ai((yi(),eJ))));if(re==0&&this.a==93)yu(U,u,u),yu(U,45,45);else M=this.a,re==10&&(M=this.cm()),na(this),yu(U,u,M)}(this.e&u0)==u0&&this.c==0&&this.a==44&&na(this)}if(this.c==1)throw _e(new Ti(Ai((yi(),eJ))));if(s)mD(s,U),U=s;return N4(U),pD(U),this.b=0,na(this),U},_.fm=function(){var n,s,u,f;u=this.em(!1);while((f=this.c)!=7)if(n=this.a,f==0&&(n==45||n==38)||f==4){if(na(this),this.c!=9)throw _e(new Ti(Ai((yi(),fKt))));if(s=this.em(!1),f==4)px(u,s);else if(n==45)mD(u,s);else if(n==38)QHt(u,s);else throw _e(new vc("ASSERT"))}else throw _e(new Ti(Ai((yi(),pKt))));return na(this),u},_.gm=function(){var n,s;return n=this.a-48,s=(ia(),ia(),++hs,new che(12,null,n)),!this.g&&(this.g=new jW),WW(this.g,new f5e(n)),na(this),s},_.hm=function(){return na(this),ia(),elr},_.im=function(){return na(this),ia(),Jor},_.jm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.km=function(){throw _e(new Ti(Ai((yi(),qf))))},_.lm=function(){return na(this),W1n()},_.mm=function(){return na(this),ia(),rlr},_.nm=function(){return na(this),ia(),ilr},_.om=function(){var n;if(this.d>=this.j||((n=Ko(this.i,this.d++))&65504)!=64)throw _e(new Ti(Ai((yi(),lKt))));return na(this),ia(),ia(),++hs,new g1(0,n-64)},_.pm=function(){return na(this),X3n()},_.qm=function(){return na(this),ia(),alr},_.rm=function(){var n=(ia(),ia(),++hs,new g1(0,105));return na(this),n},_.sm=function(){return na(this),ia(),nlr},_.tm=function(){return na(this),ia(),tlr},_.um=function(n,s){return this.cm()},_.vm=function(){return na(this),ia(),UWe},_.wm=function(){var n,s,u,f,g;if(this.d+1>=this.j)throw _e(new Ti(Ai((yi(),aKt))));if(f=-1,s=null,n=Ko(this.i,this.d),49<=n&&n<=57){if(f=n-48,!this.g&&(this.g=new jW),WW(this.g,new f5e(f)),++this.d,Ko(this.i,this.d)!=41)throw _e(new Ti(Ai((yi(),dE))));++this.d}else switch(n==63&&--this.d,na(this),s=PDe(this),s.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw _e(new Ti(Ai((yi(),dE))));break;default:throw _e(new Ti(Ai((yi(),sKt))))}if(na(this),g=Xw(this),u=null,g.e==2){if(g.Pm()!=2)throw _e(new Ti(Ai((yi(),oKt))));u=g.Lm(1),g=g.Lm(0)}if(this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),ia(),ia(),++hs,new xDt(f,s,g,u)},_.xm=function(){return na(this),ia(),GWe},_.ym=function(){var n;if(na(this),n=xK(24,Xw(this)),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.zm=function(){var n;if(na(this),n=xK(20,Xw(this)),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.Am=function(){var n;if(na(this),n=xK(22,Xw(this)),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.Bm=function(){var n,s,u,f,g;n=0,u=0,s=-1;while(this.d=this.j)throw _e(new Ti(Ai((yi(),hFe))));if(s==45){++this.d;while(this.d=this.j)throw _e(new Ti(Ai((yi(),hFe))))}if(s==58){if(++this.d,na(this),f=_Nt(Xw(this),n,u),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));na(this)}else if(s==41)++this.d,na(this),f=_Nt(Xw(this),n,u);else throw _e(new Ti(Ai((yi(),iKt))));return f},_.Cm=function(){var n;if(na(this),n=xK(21,Xw(this)),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.Dm=function(){var n;if(na(this),n=xK(23,Xw(this)),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.Em=function(){var n,s;if(na(this),n=this.f++,s=Bue(Xw(this),n),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),s},_.Fm=function(){var n;if(na(this),n=Bue(Xw(this),0),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.Gm=function(n){if(na(this),this.c==5)return na(this),mK(n,(ia(),ia(),++hs,new qT(9,n)));else return mK(n,(ia(),ia(),++hs,new qT(3,n)))},_.Hm=function(n){var s;if(na(this),s=(ia(),ia(),++hs,new jM(2)),this.c==5)na(this),rE(s,oP),rE(s,n);else rE(s,n),rE(s,oP);return s},_.Im=function(n){if(na(this),this.c==5)return na(this),ia(),ia(),++hs,new qT(9,n);else return ia(),ia(),++hs,new qT(3,n)},_.a=0,_.b=0,_.c=0,_.d=0,_.e=0,_.f=1,_.g=null,_.j=0;var zsa=V(Hy,"RegEx/RegexParser",836);G(1947,836,{},zkt),_.bm=function(n){return!1},_.cm=function(){return H8e(this)},_.dm=function(n){return CO(n)},_.em=function(n){return Yqt(this)},_.fm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.gm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.hm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.im=function(){throw _e(new Ti(Ai((yi(),qf))))},_.jm=function(){return na(this),CO(67)},_.km=function(){return na(this),CO(73)},_.lm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.mm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.nm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.om=function(){return na(this),CO(99)},_.pm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.qm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.rm=function(){return na(this),CO(105)},_.sm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.tm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.um=function(n,s){return px(n,CO(s)),-1},_.vm=function(){return na(this),ia(),ia(),++hs,new g1(0,94)},_.wm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.xm=function(){return na(this),ia(),ia(),++hs,new g1(0,36)},_.ym=function(){throw _e(new Ti(Ai((yi(),qf))))},_.zm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.Am=function(){throw _e(new Ti(Ai((yi(),qf))))},_.Bm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.Cm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.Dm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.Em=function(){var n;if(na(this),n=Bue(Xw(this),0),this.c!=7)throw _e(new Ti(Ai((yi(),dE))));return na(this),n},_.Fm=function(){throw _e(new Ti(Ai((yi(),qf))))},_.Gm=function(n){return na(this),mK(n,(ia(),ia(),++hs,new qT(3,n)))},_.Hm=function(n){var s;return na(this),s=(ia(),ia(),++hs,new jM(2)),rE(s,n),rE(s,oP),s},_.Im=function(n){return na(this),ia(),ia(),++hs,new qT(3,n)};var Mk=null,UN=null,Vsa=V(Hy,"RegEx/ParserForXMLSchema",1947);G(122,1,rN,ow),_.Jm=function(n){throw _e(new vc("Not supported."))},_.Km=function(){return-1},_.Lm=function(n){return null},_.Mm=function(){return null},_.Nm=function(n){},_.Om=function(n){},_.Pm=function(){return 0},_.Ib=function(){return this.Qm(0)},_.Qm=function(n){return this.e==11?".":""},_.e=0;var BWe,GN,sP,Zor,FWe,rC=null,$te,hve=null,$We,oP,dve=null,UWe,GWe,zWe,VWe,HWe,Jor,eR,elr,tlr,rlr,nlr,zN,ilr,alr,hs=0,sOn=V(Hy,"RegEx/Token",122);G(138,122,{3:1,138:1,122:1},Yd),_.Qm=function(n){var s,u,f;if(this.e==4)if(this==$We)u=".";else if(this==$te)u="\\d";else if(this==zN)u="\\w";else if(this==eR)u="\\s";else{f=new gy,f.a+="[";for(s=0;s0&&(f.a+=","),this.b[s]===this.b[s+1])Ol(f,pG(this.b[s]));else Ol(f,pG(this.b[s])),f.a+="-",Ol(f,pG(this.b[s+1]));f.a+="]",u=f.a}else if(this==zWe)u="\\D";else if(this==HWe)u="\\W";else if(this==VWe)u="\\S";else{f=new gy,f.a+="[^";for(s=0;s0&&(f.a+=","),this.b[s]===this.b[s+1])Ol(f,pG(this.b[s]));else Ol(f,pG(this.b[s])),f.a+="-",Ol(f,pG(this.b[s+1]));f.a+="]",u=f.a}return u},_.a=!1,_.c=!1;var Hsa=V(Hy,"RegEx/RangeToken",138);G(592,1,{592:1},f5e),_.a=0;var qsa=V(Hy,"RegEx/RegexParser/ReferencePosition",592);G(591,1,{3:1,591:1},nAt),_.Fb=function(n){var s;if(n==null)return!1;if(!He(n,591))return!1;return s=b(n,591),Br(this.b,s.b)&&this.a==s.a},_.Hb=function(){return Ry(this.b+"/"+B8e(this.a))},_.Ib=function(){return this.c.Qm(this.a)},_.a=0;var Ysa=V(Hy,"RegEx/RegularExpression",591);G(228,122,rN,g1),_.Km=function(){return this.a},_.Qm=function(n){var s,u,f;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:f="\\"+due(this.a&Ds);break;case 12:f="\\f";break;case 10:f="\\n";break;case 13:f="\\r";break;case 9:f="\\t";break;case 27:f="\\e";break;default:if(this.a>=ml)u=(s=this.a>>>0,"0"+s.toString(16)),f="\\v"+Of(u,u.length-6,u.length);else f=""+due(this.a&Ds)}break;case 8:this==UWe||this==GWe?f=""+due(this.a&Ds):f="\\"+due(this.a&Ds);break;default:f=null}return f},_.a=0;var Wsa=V(Hy,"RegEx/Token/CharToken",228);G(318,122,rN,qT),_.Lm=function(n){return this.a},_.Nm=function(n){this.b=n},_.Om=function(n){this.c=n},_.Pm=function(){return 1},_.Qm=function(n){var s;if(this.e==3)if(this.c<0&&this.b<0)s=this.a.Qm(n)+"*";else if(this.c==this.b)s=this.a.Qm(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)s=this.a.Qm(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)s=this.a.Qm(n)+"{"+this.c+",}";else throw _e(new vc("Token#toString(): CLOSURE "+this.c+ll+this.b));else if(this.c<0&&this.b<0)s=this.a.Qm(n)+"*?";else if(this.c==this.b)s=this.a.Qm(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)s=this.a.Qm(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)s=this.a.Qm(n)+"{"+this.c+",}?";else throw _e(new vc("Token#toString(): NONGREEDYCLOSURE "+this.c+ll+this.b));return s},_.b=0,_.c=0;var jsa=V(Hy,"RegEx/Token/ClosureToken",318);G(837,122,rN,rOe),_.Lm=function(n){return n==0?this.a:this.b},_.Pm=function(){return 2},_.Qm=function(n){var s;return this.b.e==3&&this.b.Lm(0)==this.a?s=this.a.Qm(n)+"+":this.b.e==9&&this.b.Lm(0)==this.a?s=this.a.Qm(n)+"+?":s=this.a.Qm(n)+(""+this.b.Qm(n)),s};var Ksa=V(Hy,"RegEx/Token/ConcatToken",837);G(1945,122,rN,xDt),_.Lm=function(n){if(n==0)return this.d;if(n==1)return this.b;throw _e(new vc("Internal Error: "+n))},_.Pm=function(){return!this.b?1:2},_.Qm=function(n){var s;return this.c>0?s="(?("+this.c+")":this.a.e==8?s="(?("+this.a+")":s="(?"+this.a,!this.b?s+=this.d+")":s+=this.d+"|"+this.b+")",s},_.c=0;var Xsa=V(Hy,"RegEx/Token/ConditionToken",1945);G(1946,122,rN,g7t),_.Lm=function(n){return this.b},_.Pm=function(){return 1},_.Qm=function(n){return"(?"+(this.a==0?"":B8e(this.a))+(this.c==0?"":B8e(this.c))+":"+this.b.Qm(n)+")"},_.a=0,_.c=0;var Qsa=V(Hy,"RegEx/Token/ModifierToken",1946);G(838,122,rN,dOe),_.Lm=function(n){return this.a},_.Pm=function(){return 1},_.Qm=function(n){var s=null;switch(this.e){case 6:this.b==0?s="(?:"+this.a.Qm(n)+")":s="("+this.a.Qm(n)+")";break;case 20:s="(?="+this.a.Qm(n)+")";break;case 21:s="(?!"+this.a.Qm(n)+")";break;case 22:s="(?<="+this.a.Qm(n)+")";break;case 23:s="(?"+this.a.Qm(n)+")"}return s},_.b=0;var Zsa=V(Hy,"RegEx/Token/ParenToken",838);G(530,122,{3:1,122:1,530:1},che),_.Mm=function(){return this.b},_.Qm=function(n){return this.e==12?"\\"+this.a:zxn(this.b)},_.a=0;var Jsa=V(Hy,"RegEx/Token/StringToken",530);G(477,122,rN,jM),_.Jm=function(n){rE(this,n)},_.Lm=function(n){return b(Nw(this.a,n),122)},_.Pm=function(){return!this.a?0:this.a.a.c.length},_.Qm=function(n){var s,u,f,g,E;if(this.e==1){if(this.a.a.c.length==2)s=b(Nw(this.a,0),122),u=b(Nw(this.a,1),122),u.e==3&&u.Lm(0)==s?g=s.Qm(n)+"+":u.e==9&&u.Lm(0)==s?g=s.Qm(n)+"+?":g=s.Qm(n)+(""+u.Qm(n));else{E=new gy;for(f=0;f=this.c.b:this.a<=this.c.b},_.Sb=function(){return this.b>0},_.Tb=function(){return this.b},_.Vb=function(){return this.b-1},_.Qb=function(){throw _e(new fy(CXt))},_.a=0,_.b=0;var aoa=V(NFe,"ExclusiveRange/RangeIterator",258),Qf=S6(tJ,"C"),ci=S6(VD,"I"),wd=S6(g5,"Z"),P_=S6(HD,"J"),Gh=S6(UD,"B"),xo=S6(GD,"D"),nC=S6(zD,"F"),Dk=S6(qD,"S"),oOn=ns("org.eclipse.elk.core.labels","ILabelManager"),qWe=ns(cl,"DiagnosticChain"),YWe=ns(eXt,"ResourceSet"),WWe=V(cl,"InvocationTargetException",null),olr=(ZW(),E0n),llr=llr=dEn;pmn(unn),umn("permProps",[[["locale","default"],[kXt,"gecko1_8"]],[["locale","default"],[kXt,"safari"]]]),llr(null,"elk",null)}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(a,o,l){function h(v,w){if(!(v instanceof w))throw TypeError("Cannot call a class as a function")}function d(v,w){if(!v)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w==="object"||typeof w==="function")?w:v}function p(v,w){if(typeof w!=="function"&&w!==null)throw TypeError("Super expression must either be null or a function, not "+typeof w);if(v.prototype=Object.create(w&&w.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),w)Object.setPrototypeOf?Object.setPrototypeOf(v,w):v.__proto__=w}var m=a("./elk-api.js").default,y=function(v){p(w,v);function w(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};h(this,w);var x=Object.assign({},T),k=!1;try{a.resolve("web-worker"),k=!0}catch(L){}if(T.workerUrl)if(k){var A=a("web-worker");x.workerFactory=function(L){return new A(L)}}else console.warn(`Web worker requested but 'web-worker' package not installed. Consider installing the package or pass your own 'workerFactory' to ELK's constructor. -... Falling back to non-web worker version.`);if(!x.workerFactory){var R=a("./elk-worker.min.js"),N=R.Worker;x.workerFactory=function(L){return new N(L)}}return d(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,x))}return w}(m);Object.defineProperty(o.exports,"__esModule",{value:!0}),o.exports=y,y.default=y},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(a,o,l){o.exports=Worker},{}]},{},[3])(3)})});var A6r={};GN(A6r,{render:()=>gni});function ant(e,r,{parentById:i}){let a=e;while((i[a]??eni)!==r)a=i[a];return a}function kIr(e,r){let i=e.map(()=>!1),a=new Map;e.forEach(({source:o,target:l},h)=>{if(o===l)return;let d=ynt(o,l,r);if(d===o||d===l)return;let p=ant(o,d,r),m=ant(l,d,r),y=a.get(d)??[];y.push({index:h,from:p,to:m,collapsed:p!==o||m!==l}),a.set(d,y)});for(let o of a.values()){let l=new Map,h=[],d=new Map;for(let w of o){for(let T of[w.from,w.to])if(!l.has(T))l.set(T,[]),h.push(T),d.set(T,0);l.get(w.from).push(w),d.set(w.to,d.get(w.to)+1)}let p=1,m=2,y=new Map,E=[...h.filter((w)=>d.get(w)===0),...h];for(let w of E){if(y.has(w))continue;y.set(w,p);let T=[{node:w,next:0}];while(T.length>0){let x=T[T.length-1],k=l.get(x.node);if(x.next>=k.length){y.set(x.node,m),T.pop();continue}let A=k[x.next++],R=y.get(A.to);if(R===p)i[A.index]=A.collapsed;else if(R===void 0)y.set(A.to,p),T.push({node:A.to,next:0})}}}return i}function AIr(e,{measure:r}){let i=e.config?.elk?.lineHops;if(i===!1)return;let a=e.edges.filter((o)=>Array.isArray(o.points)&&o.points.length>=2).map((o)=>({id:o.id,points:o.points,curve:o.curve,arrowTypeStart:o.arrowTypeStart,arrowTypeEnd:o.arrowTypeEnd}));Zne(r.groups.edgePaths,a,{enabled:!0,jumpRadius:tni,jumpStyle:i==="gap"?"gap":"arc"})}function MIr(e){for(let r of pni)delete e[r];e["spacing.baseValue"]=NIr,e["spacing.nodeNode"]=LIr}function _nt(e,r){if(typeof e!=="string")return;if(!xIr.has(e)){r?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...xIr].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return e}function Ent(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}function LSe(e){if(!qtt(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}function wnt(e){if(!qtt(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${LSe(e)}, 0)`}}function DIr(e,r,i,a){let o=e.labelData?.width??0,l=e.padding??0,h=o+2*l,d=e.labelData?.height??0,p=Tnt(r?.preset),m={...wnt(e),"spacing.baseValue":NIr,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":LIr,"elk.padding":`[top=${dB},left=${dB},bottom=${dB},right=${dB}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":r?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":r?.nodePlacementAlignment??p.alignment,"elk.layered.nodePlacement.strategy":r?.nodePlacementStrategy??p.containerPlacement,"elk.layered.cycleBreaking.strategy":r?.cycleBreakingStrategy??p.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":OIr},y=_nt(e.metadata?.algorithm,a);if(y){let E=d+Cie;if(m["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",m["nodeSize.minimum"]=`(${h}, ${E+Cie})`,m["elk.algorithm"]=y,m["elk.hierarchyHandling"]="SEPARATE_CHILDREN",m["elk.aspectRatio"]="2.0",m["elk.contentAlignment"]="H_CENTER V_TOP",m["elk.expandNodes"]="true",m["elk.padding"]=`[top=${E},left=${Cie},bottom=${Cie},right=${Cie}]`,y==="elk.rectpacking"){let w=d+kie;Object.assign(m,vnt,{"elk.padding":`[top=${w},left=${kie},bottom=${kie},right=${kie}]`,"nodeSize.minimum":`(${h}, ${w+kie})`})}}else if(e.dir)m["elk.algorithm"]=i,m["elk.direction"]=Ent(e.dir),m["elk.hierarchyHandling"]="SEPARATE_CHILDREN";return Object.assign(m,ani),m}function PIr(e,r){let i=new Set,a=new Map;for(let{id:o,parentId:l}of e){let h=a.get(l);if(h)h.push(o);else a.set(l,[o])}for(let o of a.values()){let l=new Set(o),h=new Map(o.map((A)=>[A,0])),d=new Map(o.map((A)=>[A,[]])),p=[];for(let A of r){let R=A.source==null?void 0:String(A.source),N=A.target==null?void 0:String(A.target);if(!R||!N||R===N)continue;if(!l.has(R)||!l.has(N))continue;h.set(N,(h.get(N)??0)+1),d.get(R).push(N),d.get(N).push(R),p.push([R,N])}let m=new Map,y=0;for(let A of o){if(m.has(A))continue;let R=[A];m.set(A,y);while(R.length>0){let N=R.pop();for(let L of d.get(N))if(!m.has(L))m.set(L,y),R.push(L)}y++}let E=Array(y).fill(!1);for(let A of o)if((h.get(A)??0)===0)E[m.get(A)]=!0;if(!E.includes(!1))continue;let w=new Map(o.map((A)=>[A,[]])),T=new Map(o.map((A)=>[A,0])),x=I((A,R)=>{let N=new Set([A]),L=[A];while(L.length>0){let B=L.pop();if(B===R)return!0;for(let D of w.get(B))if(!N.has(D))N.add(D),L.push(D)}return!1},"reaches");for(let[A,R]of p){if(x(R,A))continue;w.get(A).push(R),T.set(R,(T.get(R)??0)+1)}let k=Array(y).fill(!1);for(let A of o){let R=m.get(A);if(!E[R]&&!k[R]&&T.get(A)===0)i.add(A),k[R]=!0}}return i}function BIr(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let i=PIr(e.nodes,e.edges.map((a)=>({source:a.start,target:a.end})));for(let a of i){let o=r[a];if(o)o.layoutOptions={...o.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"}}}function FIr(e,r){let i=Snt(r);return zIr(i),v6r(e,i),{algorithm:i.algorithm}}async function $Ir(e,r){let i=Snt(r),a=UIr(e,i),o=new CIr.default;i.log.info("Drawing flowchart using v4 renderer",o);let l=await e6r(o,a.elkGraph,i.log);return t6r(e,l,a,i.log),VIr(e.nodes),l}function UIr(e,r){let i={},a=HIr(e,r.algorithm,r.rootLayoutOptions),o=e.direction??"DOWN";a.layoutOptions["elk.direction"]=Ent(o);let l=qIr(e.nodes,r.log);if(xnt(e.nodes,a,i,r),KIr(e,a,i,r),ZIr(e,i,l,r),JIr(a,i,l,r.log),e.config.elk?.orientFeedbackEdges!==!1)GIr(a,l);return BIr(e,i),{elkGraph:a,nodeDb:i,parentLookupDb:l}}function GIr(e,r){let i=kIr(e.edges.map((a)=>({source:a.sources[0],target:a.targets[0]})),r);e.edges.forEach((a,o)=>{if(i[o])[a.sources,a.targets]=[a.targets,a.sources],a.layoutReversed=!0})}function zIr(e){RR(e.getConfig())}function VIr(e){let r=new Map(e.map((i)=>[i.id,i]));e.sort((i,a)=>{if(i.isGroup!==a.isGroup)return i.isGroup?-1:1;if(i.isGroup&&a.isGroup)return snt(i,r)-snt(a,r);return 0})}function snt(e,r){let i=0,a=new Set,o=e.parentId;while(o&&!a.has(o)){a.add(o);let l=r.get(o);if(!l?.isGroup)break;i++,o=l.parentId}return i}function Snt(e){let r=e.helpers;if(!r)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:r.common,getConfig:r.getConfig,interpolateToCurve:r.interpolateToCurve,log:r.log}}function Tnt(e){return e!==void 0&&Object.hasOwn(nnt,e)?nnt[e]:nnt.default}function HIr(e,r,i){let a=Tnt(e.config.elk?.preset),o={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":r,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??a.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??a.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??a.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??a.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":OIr},children:[],edges:[]};if(r==="elk.rectpacking")Object.assign(o.layoutOptions,vnt,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"});if(i)Object.assign(o.layoutOptions,i);return Object.assign(o.layoutOptions,rni,nni,ini),o}function qIr(e,r){let i={parentById:{},childrenById:{}},a=e.filter((o)=>o.isGroup);return r.info("Subgraphs - ",a),a.forEach((o)=>{e.filter((h)=>h.parentId===o.id).forEach((h)=>{i.parentById[h.id]=o.id,i.childrenById[o.id]??=[],i.childrenById[o.id].push(h.id)})}),i}function xnt(e,r,i,a,o){let l=e.filter((h)=>h?.parentId===o);return a.log.info("addVertices APA12",l,o),l.forEach((h)=>{YIr(r,e,h,i,a)}),r}function YIr(e,r,i,a,o){let l=WIr(i);if(e.children.push(l),a[i.id]=l,i.isGroup)l.children=[],xnt(r,l,a,o,i.id),l.labelData=jIr(i,o.getConfig())}function WIr(e){let r={...e};if(delete r.domId,e.isGroup)r.children=[];else if(r.width=e.width??0,r.height=e.height??0,e.spreadPorts)r.layoutOptions={...r.layoutOptions,"elk.portAlignment.default":"CENTER"};return r}function jIr(e,r){let i=e.labelData;if(i)return i;if(e.labelBBox)return{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth};return{width:0,height:0,wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth}}function KIr(e,r,i,a){a.log.info("abc78 DAGA edges = ",e);let o={};return e.edges.forEach((l)=>{let h=l.id;o[h]=(o[h]??-1)+1;let d=h;l.id=d,a.log.info("abc78 new link id to be used is",h,d,o[h]);let{source:p,target:m,sourceId:y,targetId:E}=QIr(l,i);a.log.debug("abc78 source and target",p,m),r.edges.push({...l,sources:[p],targets:[m],sourceId:y,targetId:E,labels:[{width:l.width??0,height:l.height??0,orgWidth:l.width??0,orgHeight:l.height??0,text:l.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}},...(a.rootLayoutOptions?.["elk.algorithm"]??a.algorithm??"elk.layered")==="elk.layered"?XIr(l):[]]})}),r}function XIr(e){let r={startLeft:e.startLabelLeft,startRight:e.startLabelRight,endLeft:e.endLabelLeft,endRight:e.endLabelRight};return Object.entries(e.terminalLabelSizes??{}).map(([i,a])=>{let o=i.startsWith("start"),l=o?e.arrowTypeStart:e.arrowTypeEnd,h=l&&l!=="none"?mni:0;return{terminal:i,text:r[i],width:a.width+2*h,height:a.height+2*h,layoutOptions:{"edgeLabels.placement":o?"TAIL":"HEAD"}}})}function QIr(e,r){let{start:i,end:a}=e,o=i,l=a,h=i?r[i]:void 0,d=a?r[a]:void 0;if(!h||!d)return{source:o,target:l};return{source:o,target:l,sourceId:i,targetId:a}}function ZIr(e,r,i,a){e.nodes.forEach((o)=>{let l=r[o.id];if(!l||i.childrenById[l.id]===void 0)return;l.labels=[{text:l.label,width:l?.labelData?.width??50,height:l?.labelData?.height??50}],a.log.debug("UIO node label",l?.labelData?.width,l.padding),l.layoutOptions=DIr(l,e.config.elk,a.algorithm,a.log),delete l.x,delete l.y,delete l.width,delete l.height})}function JIr(e,r,i,a){a.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((o,l)=>{a.debug("APA01 processing edge",l,":",o);let h=o.sources[0],d=o.targets[0];if(a.debug("APA01 source:",h,"target:",d),a.debug("APA01 nodeDb[source]:",r[h]),a.debug("APA01 nodeDb[target]:",r[d]),r[h]&&r[d]&&r[h].parentId!==r[d].parentId){let p=ynt(h,d,i);ISe(r,h,p,a),ISe(r,d,p,a)}})}function ISe(e,r,i,a){let o=e[r];if(!o)return;if(o.layoutOptions??={},o.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&_nt(o.metadata?.algorithm))a.debug("Dropping explicit algorithm for node",o.id,"due to cross-boundary edges"),MIr(o.layoutOptions),Object.assign(o.layoutOptions,wnt(o));if(o.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",o.id!==i&&o.parentId)ISe(e,o.parentId,i,a)}async function e6r(e,r,i){let a=globalThis.__mermaidProfiler;try{a?.begin("layoutCore");let o;try{o=await e.layout(r)}finally{a?.end()}return i.debug("APA01 after - success"),i.debug("APA01 layout result:",o),o}catch(o){throw i.error("ELK layout error:",o),o}}function t6r(e,r,i,a){let o=new Map(e.nodes.map((l)=>[l.id,l]));Ant(r.children??[],i,o,0,0,0,a),knt(r.children??[],i,o,r),o6r(e,r,i,a)}function Cnt(e,r=new Set){for(let i of e.children??[])r.add(i.id),Cnt(i,r);return r}function r6r(e,r,i,a){let o=[];for(let l of e.edges??[]){let h=l.sources?.[0]??l.start,d=l.targets?.[0]??l.end,p=r.has(h)&&r.has(d),m=h===a,y=d===a;if(!p&&!m&&!y)continue;let E=NSe(h,d,i.parentLookupDb,i.nodeDb);for(let w of l.sections??[]){let T=p?[w.startPoint,...w.bendPoints??[],w.endPoint]:[m?w.startPoint:null,y?w.endPoint:null];for(let x of T)if(x)o.push({x:x.x+E.x,y:x.y+E.y})}}return o}function knt(e,r,i,a={}){for(let o of e){if(!o?.isGroup)continue;let l=o.children??[];knt(l,r,i,a);let h=r.nodeDb[o.id],d=l.map((D)=>r.nodeDb[D.id]).filter((D)=>D?.offset&&D.width&&D.height);if(!h?.offset||d.length===0)continue;let p=r6r(a,Cnt(o),r,o.id),m=[...d.map((D)=>D.offset.posX),...d.map((D)=>D.offset.posX+D.width),...p.map((D)=>D.x)],y=[...d.map((D)=>D.offset.posY),...d.map((D)=>D.offset.posY+D.height),...p.map((D)=>D.y)],E=h.offset,w=Math.max(E.posX,Math.min(...m)-dB),T=Math.min(E.posX+h.width,Math.max(...m)+dB),x=Math.min(E.posY+h.height,Math.max(...y)+dB),k=E.posY,A=LSe(o),R=w,N=T-w;if(N{if(!d)return;let p=r.nodeDb[d.id]??d,m=Math.max(d.width,d.labels?d.labels[0]?.width||0:0),y={posX:d.x+a,posY:d.y+o,x:a,y:o,depth:l,width:m,height:d.height};p.offset=y,p.x=y.posX+d.width/2,p.y=y.posY+d.height/2,p.width=d.width,p.height=d.height;let E=i.get(d.id);if(E){E.x=p.x,E.y=p.y,E.width=d.isGroup?Math.max(d.width,d.labelData?.width??0):d.width,E.height=d.height;let w=E;w.labelData=d.labelData,w.labels=d.labels}if(d.isGroup)h.debug("Id abc88 subgraph = ",d.id,d.x,d.y,d.labelData),Ant(d.children??[],r,i,y.posX,y.posY,l+1,h);else h.info("Id NODE = ",d.id,d.x,d.y,a,o,`translate(${p.x}, ${p.y})`)})}function Iie(e,r){let i=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);if(i>Rie&&a<=Rie)return"h";if(a>Rie&&i<=Rie)return"v";return}function n6r(e){let r=[],i=e,a=ont(i);if(a)i=a.points,r.push(a.run);let o=[...i].reverse(),l=ont(o);if(l)i=l.points.reverse(),r.push(l.run);return{points:i,runs:r}}function ont(e){if(e.length<5)return null;let[r,i,a,o]=e,l=Iie(r,i);if(!l||Iie(a,o)!==l||Iie(i,a)!==(l==="h"?"v":"h"))return null;if(Math.hypot(i.x-r.x,i.y-r.y)>yni)return null;let h=l==="h"?Math.abs(a.y-i.y):Math.abs(a.x-i.x);if(hbni)return null;if(!(l==="h"?Math.sign(i.x-r.x)===Math.sign(o.x-a.x):Math.sign(i.y-r.y)===Math.sign(o.y-a.y)))return null;let p=3;while(p+1(y.x-m.x)*(E.y-m.y)-(y.y-m.y)*(E.x-m.x),"side"),l=o(i,a,e),h=o(i,a,r),d=o(e,r,i),p=o(e,r,a);return(l>0&&h<0||l<0&&h>0)&&(d>0&&p<0||d<0&&p>0)}function lnt(e,r){let i=0;for(let a=0;al.points??[]),i=e.map((l)=>l.x==null||l.y==null||!l.label||!l.width||!l.height?void 0:{centre:{x:l.x,y:l.y},size:{width:l.width,height:l.height}}),a=I((l,h)=>{let d=h&&fB(h.centre,h.size);return!!d&&l.some((p,m)=>mT||A>k)continue;h.points=p,r[l]=p,i[l]=w,o.push({edge:h,runs:m})}return o}function o6r(e,r,i,a){let o=new Map(e.edges.map((m)=>[m.id,m])),l=e.config.elk?.straightenEdges!==!1,h=new Map;for(let m of e.edges)delete m.terminalLabelCenters;let d=new Map(e.nodes.map((m)=>[m.id,m])),p=new Set;if(r.edges?.forEach((m)=>{if(!m.sections?.length)return;let y=i.nodeDb[m.sources?.[0]??m.start],E=i.nodeDb[m.targets?.[0]??m.end];if(!y||!E)return;let w=m.start??m.sourceId??m.sources?.[0],T=m.end??m.targetId??m.targets?.[0],x=NSe(w,T,i.parentLookupDb,i.nodeDb),k=m.sections[0];if(y.shape!=="rect33")unt(y,{x:k.startPoint.x+x.x,y:k.startPoint.y+x.y},d,p);if(E.shape!=="rect33")unt(E,{x:k.endPoint.x+x.x,y:k.endPoint.y+x.y},d,p)}),r.edges?.forEach((m)=>{let y=o.get(m.id);if(!y)return;let E=m.layoutReversed===!0,w=m.sources?.[0]??m.start,T=m.targets?.[0]??m.end;if(E)[w,T]=[T,w];let x=i.nodeDb[w],k=i.nodeDb[T];if(!x||!k)return;if(!m.sections?.length){let H=I((te)=>({x:(te.offset?.posX??te.x??0)+(te.width??0)/2,y:(te.offset?.posY??te.y??0)+(te.height??0)/2}),"centre"),K=H(x),Q=H(k);x.x=K.x,x.y=K.y,k.x=Q.x,k.y=Q.y;let Z=hnt([K,Q],x,k,a);y.points=Z,y.curve="linear";let Y=Z[0],j=Z[Z.length-1];y.x=(Y.x+j.x)/2,y.y=(Y.y+j.y)/2,a.debug("APA18 no edge sections, using a straight line",m.id,y.points);return}let A=m.start??m.sourceId??w,R=m.end??m.targetId??T,N=NSe(A,R,i.parentLookupDb,i.nodeDb);a.debug("APA18 offset",N,A," ==> ",R,"edge:",m,x);let L=m.sections[0],B=d6r(L,N);if(E)B.reverse();let D={start:B[0],end:B[B.length-1]};if(x.x=x.offset.posX+x.width/2,x.y=x.offset.posY+x.height/2,k.x=k.offset.posX+k.width/2,k.y=k.offset.posY+k.height/2,x.shape!=="rect33")B.unshift({x:x.x,y:x.y});if(k.shape!=="rect33")B.push({x:k.x,y:k.y});let P=hnt(B,x,k,a);y.points=b6r(y6r(P,YL(k),g6r(y),a),YL(x),m6r(y),a),y.curve="rounded";let F=m.labels?.[0];if(F)y.x=F.x+N.x+F.width/2,y.y=F.y+N.y+F.height/2;for(let H of m.labels??[]){if(!H.terminal||!H.x&&!H.y)continue;y.terminalLabelCenters??={},y.terminalLabelCenters[H.terminal]={x:H.x+N.x+H.width/2,y:H.y+N.y+H.height/2}}if(y.terminalLabelCenters)h.set(y,D)}),l){let m=s6r(e.edges);for(let{edge:y,runs:E}of m){if(y.x==null||y.y==null)continue;let w=Rnt({x:y.x,y:y.y},E);if(w)y.x=w.x,y.y=w.y}}for(let[m,y]of h)h6r(m,y);c6r(e.edges,e.nodes),u6r(e.edges,e.nodes),l6r(e.edges)}function l6r(e){let r=new Map;for(let i of e){if(i.x==null||i.y==null||!i.label||!i.width)continue;let a=[i.start??"",i.end??""].sort().join("\x00"),o=r.get(a);if(o)o.push(i);else r.set(a,[i])}for(let i of r.values()){if(i.length!==2)continue;let[a,o]=i;if(Math.abs(a.y-o.y)>Math.max(a.height??0,o.height??0))continue;let l=a.width/2+o.width/2+vni,h=o.x-a.x,d=l-Math.abs(h);if(d<=0)continue;let p=Math.sign(h)||1;a.x=a.x-p*d/2,o.x=o.x+p*d/2}}function Int(e,r){let i=r.filter((m)=>m.x!==void 0&&m.y!==void 0),a=I((m)=>fB({x:m.x,y:m.y},{width:m.width??0,height:m.height??0}),"boxOf"),o=i.filter((m)=>!m.isGroup).map(a),l=i.filter((m)=>m.isGroup).map(a).flatMap(({x1:m,y1:y,x2:E,y2:w})=>[[{x:m,y},{x:E,y}],[{x:E,y},{x:E,y:w}],[{x:E,y:w},{x:m,y:w}],[{x:m,y:w},{x:m,y}]]),h=e.filter((m)=>m.label&&m.width&&m.height&&m.x!==void 0).map((m)=>fB({x:m.x,y:m.y},{width:m.width,height:m.height})),d=I((m,y=0)=>{let E={x1:m.x1-y,y1:m.y1-y,x2:m.x2+y,y2:m.y2+y};return l.some(([w,T])=>OSe(w,T,E))},"hitsFrame");return{hitsFrame:d,blocked:I((m,y,E,w,T=0)=>o.some((x)=>int(m,x))||h.some((x)=>int(m,x))||d(m,T)||e.some((x)=>(x.points??[]).some((k,A,R)=>AObject.entries(x.terminalLabelCenters??{}).some(([k,A])=>{let R=x.terminalLabelSizes?.[k];return!(x===y&&k===E)&&R!==void 0&&int(m,fB(A,R))})),"blocked")}}function*Ont(e){for(let r of e){let i=r.points;if(!i||i.length<2||!r.terminalLabelCenters||!r.terminalLabelSizes)continue;for(let[a,o]of Object.entries(r.terminalLabelCenters)){let l=r.terminalLabelSizes[a],h=a.startsWith("start"),d=h?0:i.length-2,[p,m]=[i[d],i[d+1]],y=Math.hypot(m.x-p.x,m.y-p.y);if(!l||y===0)continue;yield{edge:r,key:a,center:o,size:l,atStart:h,segment:d,from:p,to:m,length:y}}}}function c6r(e,r){let{hitsFrame:i,blocked:a}=Int(e,r);for(let{edge:o,key:l,center:h,size:d,atStart:p,segment:m,from:y,to:E,length:w}of Ont(e)){if(!i(fB(h,d)))continue;let[T,x]=p?[E,y]:[y,E],k={x:(x.x-T.x)/w,y:(x.y-T.y)/w},A=(Math.abs(k.x)*d.width+Math.abs(k.y)*d.height)/2,R=I((L)=>(L.x-x.x)*k.x+(L.y-x.y)*k.y,"along"),N=I((L)=>R(L)+A<=0&&R(L)-A>=-w,"onSegment");for(let L=1;L<=w;L++){let B=[L,-L].map((D)=>({x:h.x+D*k.x,y:h.y+D*k.y})).find((D)=>N(D)&&!a(fB(D,d),o,l,m,_ni));if(B){o.terminalLabelCenters[l]=B;break}}}}function u6r(e,r){let{blocked:i}=Int(e,r);for(let{edge:a,key:o,center:l,size:h,segment:d,from:p,to:m,length:y}of Ont(e)){let E={x:-(m.y-p.y)/y,y:(m.x-p.x)/y},w=(l.x-p.x)*E.x+(l.y-p.y)*E.y;if(w===0||w>0===o.endsWith("Right"))continue;let T={x:l.x-2*w*E.x,y:l.y-2*w*E.y};if(!i(fB(T,h),a,o,d))a.terminalLabelCenters[o]=T}}function h6r(e,r){let i=e.points;if(!i?.length||!e.terminalLabelCenters)return;let a={start:{x:i[0].x-r.start.x,y:i[0].y-r.start.y},end:{x:i[i.length-1].x-r.end.x,y:i[i.length-1].y-r.end.y}};for(let[o,l]of Object.entries(e.terminalLabelCenters)){let h=o.startsWith("start")?a.start:a.end;e.terminalLabelCenters[o]={x:l.x+h.x,y:l.y+h.y}}}function unt(e,r,i,a){let o=e.width??0,l=e.height??0,h=e.offset.posY,d=h+l,p=0.5,m=Math.abs(r.y-h)<=0.5||Math.abs(r.y-d)<=0.5;if((m?o:l)>=2*Aie)return;if(a.has(e.id))return;a.add(e.id);let y=m?r.x-(e.offset.posX+o/2):r.y-(e.offset.posY+l/2);if(Math.abs(y)<0.01)return;if(m)e.offset.posX+=y,e.x=e.offset.posX+o/2;else e.offset.posY+=y,e.y=e.offset.posY+l/2;let E=i.get(e.id);if(E)E.x=e.offset.posX+o/2,E.y=e.offset.posY+l/2}function d6r(e,r){let{startPoint:i,endPoint:a}=e,l=(e.bendPoints?e.bendPoints:[]).map((h)=>({x:h.x+r.x,y:h.y+r.y}));return[{x:i.x+r.x,y:i.y+r.y},...l,{x:a.x+r.x,y:a.y+r.y}]}function NSe(e,r,i,a){let o=ynt(e,r,i);if(o===void 0||o==="root")return{x:0,y:0};let l=a[o],h=l?.elkOrigin??l?.offset;return{x:h?.posX??0,y:h?.posY??0}}function hnt(e,r,i,a){let o=Array.isArray(e)?[...e]:[],l=YL(i);a.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",l,Oie(l,e[e.length-1]));let h;{let d=YL(r),p=YL(i),m=!!r?.isGroup,y=!!i?.isGroup,{candidate:E,centerApprox:w}=pnt(o,r,"start"),{candidate:T,centerApprox:x}=pnt(o,i,"end"),k=m&&Oie(d,E),A=y&&Oie(p,T);if(gnt(o,"start",k&&w),gnt(o,"end",A&&x),m&&!k)k=mnt(o,d,"start");if(y&&!A)A=mnt(o,p,"end");if(k||A){if(!k)x6r(o,r,d,a);if(!A)C6r(o,i,p,a);a.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:k,skipEnd:A,startCenterApprox:w,endCenterApprox:x,startCandidate:E,endCandidate:T}),h=o}else h=k6r(r,i,o,a)}if(a.debug("PPP cutter2: Points after cutter2:",JSON.stringify(h)),!Array.isArray(h)||h.length<2||f6r(h)){a.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",h);let d=o.filter((p)=>Number.isFinite(p?.x)&&Number.isFinite(p?.y));h=d.length>=2?d:o}return a.debug("UIO cutter2: Points after cutter2 (sanitized):",h),p6r(h,a)}function f6r(e){return e?.some((r)=>!Number.isFinite(r?.x)||!Number.isFinite(r?.y))}function p6r(e,r){let i=e.filter((a,o,l)=>{if(o===0)return!0;let h=l[o-1];return Math.abs(a.x-h.x)>0.000001||Math.abs(a.y-h.y)>0.000001});if(i.length!==e.length)r.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:i});return i}function g6r(e){return IIr(e.arrowTypeEnd)}function m6r(e){return IIr(e.arrowTypeStart)}function b6r(e,r,i,a){if(i<=0||e.length<3)return e;let o=e[0],l=e[1],h=Math.hypot(l.x-o.x,l.y-o.y);if(h>=Math.max(RIr,i*2))return e;if(!Oie(r,l,1))return e;let d=[o,...e.slice(2)];return a.debug("UIO cutter2: removed short start marker segment",{before:e,after:d,markerOffset:i,segmentLength:h}),d}function y6r(e,r,i,a){if(i<=0||e.length<3)return e;let o=e[e.length-1],l=e[e.length-2],h=Math.hypot(o.x-l.x,o.y-l.y);if(h>=Math.max(RIr,i*2))return e;if(!Oie(r,l,1))return e;let d=[...e.slice(0,-2),o];return a.debug("UIO cutter2: removed short end marker segment",{before:e,after:d,markerOffset:i,segmentLength:h}),d}function v6r(e,r){let i=e.edges.defaultInterpolate,a=e.edges.defaultStyle,o=r.getConfig();e.edges.forEach((l)=>{let h=S6r(l,{defaultStyle:a,defaultInterpolate:i,confCurve:o.curve},r);Object.assign(l,h)})}function _6r(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`;return}function E6r(e,r,i){let a="normal",o="solid",l=[],h=[];if(e==="dotted")o="dotted",l=["fill:none","stroke-width:2px","stroke-dasharray:3"];else if(e==="thick")a="thick",l=["stroke-width: 3.5px","fill:none"];else if(l=r??["fill:none"],i!==void 0)h=i;return{thickness:a,pattern:o,style:l,labelStyle:h}}function w6r(e,r,i){if(e!==void 0)return e;if(r!==void 0)return r;return i}function S6r(e,r,i){let a={};a.minlen=e.minlen??e.length??1,a.text=e.text??e.label,a.arrowhead=e.arrowhead??(e.type==="arrow_open"?"none":"normal");let o=TIr[e.type??"arrow_open"]??TIr.arrow_open;a.arrowTypeStart=e.arrowTypeStart??o[0],a.arrowTypeEnd=e.arrowTypeEnd??o[1],a.startLabelRight=e.startLabelRight,a.endLabelLeft=e.endLabelLeft;let l=E6r(e.stroke,r.defaultStyle,r.defaultLabelStyle);a.thickness=e.thickness??l.thickness,a.pattern=e.pattern??l.pattern,a.style=e.style??l.style,a.labelStyle=e.labelStyle??l.labelStyle,a.classes=_6r(e),a.curve=i.interpolateToCurve(w6r(e.curve??e.interpolate,r.defaultInterpolate,r.confCurve),YS);let h=(a.text??"")!=="";if(e.arrowheadStyle!==void 0)a.arrowheadStyle=e.arrowheadStyle;else if(h||e.style!==void 0)a.arrowheadStyle="fill: #333";return a.labelpos=e.labelpos??(h?"c":void 0),a.labelType=e.labelType,a.label=(e.label??a.text??"").replace(i.common.lineBreakRegex,` -`),a}function T6r(e){return Math.max(e.width??0,LSe(e))}function YL(e){let r=e?.isGroup?T6r(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:r??0,height:e.height??0,padding:e.padding}}function dnt(e,r,i=0.000001){return Math.abs(e-r)1?e[1]:a,centerApprox:o}}else{let a=e[e.length-1],o=fnt(a,r);return{candidate:o&&e.length>1?e[e.length-2]:a,centerApprox:o}}}function gnt(e,r,i){if(!i)return;if(r==="start"){if(e.length>0)e.shift()}else if(e.length>0)e.pop()}function mnt(e,r,i){let a=i==="start"?1:-1,o=i==="start"?0:e.length-1,l=o;while(o>=0&&o=e.length)return!1;let h=e[o],d=e[o-a],p=h.x-d.x,m=h.y-d.y,y=p===0?1/0:(r.x+Math.sign(p)*r.width/2-d.x)/p,E=m===0?1/0:(r.y+Math.sign(m)*r.height/2-d.y)/m,w=Math.min(y,E),T={x:d.x+w*p,y:d.y+w*m};if(i==="start")e.splice(0,o,T);else e.splice(o+1,e.length-o-1,T);return!0}function x6r(e,r,i,a){let o=-1;for(let[l,h]of e.entries())if(Lie(i,h)){o=l;break}if(o!==-1){let l=e[o],h=e[0],d=ASe(r,i,l,h);RSe(e,"start",d),a.debug("UIO cutter2: start-only intersection applied",{startIntersection:d})}}function C6r(e,r,i,a){let o=-1;for(let l=e.length-1;l>=0;l--)if(Lie(i,e[l])){o=l;break}if(o!==-1){let l=e[o],h=e[e.length-1],d=ASe(r,i,l,h);RSe(e,"end",d),a.debug("UIO cutter2: end-only intersection applied",{endIntersection:d})}}function bnt(e,r,i,a,o){if(e?.isGroup)return null;let l=i[a],h=i[a+o];if(!l||!h)return null;return fni(e,r,l,h)}function k6r(e,r,i,a){let o=YL(e),l=YL(r);if(i.length===0)return[];let h=[...i],d=h[0],p=h[h.length-1];a.debug("PPP cutter2: bounds",{startBounds:o,endBounds:l}),a.debug("PPP cutter2: original points",i);let m=-1;for(let[w,T]of h.entries())if(m===-1&&Lie(o,T))m=w;if(m!==-1){let w=h[m],T=bnt(e,o,h,m,1)??ASe(e,o,w,d);a.debug("UIO cutter2: start intersection",T),RSe(h,"start",T)}let y=null,E=-1;for(let w=h.length-1;w>=0;w--)if(Lie(l,h[w])){y=h[w],E=w;break}if(!y&&h.length>1)y=h[h.length-2],E=h.length-2;if(y){let w=bnt(r,l,h,E,-1)??ASe(r,l,y,p);a.debug("UIO cutter2: end intersection",{endIntersection:w,outsideIndexForEnd:E}),RSe(h,"end",w)}if(h.length>1){let w=h[h.length-1],T=h[h.length-2],x=Math.sqrt((w.x-T.x)**2+(w.y-T.y)**2);if(x<2)a.debug("UIO cutter2: trimming tail point (too close)",{distance:x,lastPoint:w,secondLastPoint:T}),h.pop()}return a.debug("UIO cutter2: final points",h),h}var CIr,ynt,eni="root",tni=6,rni,nni,ini,ani,Nie=1,sni=10,Oie,oni,Lie,lni,cni,uni,hni,dni=20,SIr=0.000001,rnt,fni,ASe,RSe,RIr=8,IIr,TIr,Aie=12,OIr,dB=24,NIr=24,LIr=50,Cie=15,kie=10,vnt,pni,xIr,gni,nnt,mni=6,bni=16,yni=30,Rie=0.01,fB,vni=4,int,_ni=2;var R6r=Re(()=>{Qtt();kSe();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();CIr=sv(wIr(),1),ynt=I((e,r,{parentById:i})=>{let a=new Set,o=e;if(e===r)return i[e]||"root";while(o){if(a.add(o),o===r)return o;o=i[o]}o=r;while(o){if(a.has(o))return o;o=i[o]}return"root"},"findCommonAncestor");I(ant,"childOnPath");I(kIr,"findSubgraphFeedbackEdges");I(AIr,"applyElkLineJumps");rni={},nni={},ini={},ani={},Oie=I((e,r,i=0.5)=>{let a=e.width/2,o=e.height/2,l=e.x-a,h=e.x+a,d=e.y-o,p=e.y+o,m=Math.abs(r.x-l)<=i&&r.y>=d-i&&r.y<=p+i,y=Math.abs(r.x-h)<=i&&r.y>=d-i&&r.y<=p+i,E=Math.abs(r.y-d)<=i&&r.x>=l-i&&r.x<=h+i,w=Math.abs(r.y-p)<=i&&r.x>=l-i&&r.x<=h+i;return m||y||E||w},"onBorder"),oni=I((e,r,i)=>{let{x:a,y:o}=e,l=Math.abs(a-i.x),h=e.width/2,d=i.xMath.abs(a-r.x)*p){let E=i.y{let{x:i,y:a}=e,o=Math.abs(r.x-i),l=Math.abs(r.y-a),h=e.width/2,d=e.height/2;return o>=h||l>=d},"outsideNode"),lni=I((e,r,i=sni)=>{let a=Math.abs(r.x-e.x),o=Math.abs(r.y-e.y),l=e.width/2,h=e.height/2;if(Math.abs(a-l)0)return{x:e.x+d/m*(m+i),y:e.y+p/m*(m+i)}}return r},"ensureTrulyOutside"),cni=I((e,r,i)=>{let a=Math.abs(r.x-e.x){if(!e?.intersect)return null;let a=e.intersect(i);if(!a)return null;if(i.xr.x||i.x>r.x&&a.x{let a=cni(e,r,i);return oni(e,r,a)},"fallbackIntersection"),rnt=I((e,r,i)=>{let a=e.intersect?.(i);if(!a)return!1;let o=Math.hypot(i.x-r.x,i.y-r.y),l=Math.hypot(a.x-r.x,a.y-r.y);return o<=l+0.000000001},"insideOutline"),fni=I((e,r,i,a)=>{if(!e?.intersect)return null;let o=a.x-i.x,l=a.y-i.y;if(o===0&&l===0)return null;if(Math.abs(o)>SIr&&Math.abs(l)>SIr)return null;let h={x:r.x,y:r.y},d=Math.abs(o)>Math.abs(l),p=I((E)=>d?{x:E,y:i.y}:{x:i.x,y:E},"along"),m=d?h.x:h.y,y=d?i.x:i.y;if(!rnt(e,h,p(m)))return null;if(rnt(e,h,p(y)))return{...i};for(let E=0;E{let o=lni(r,i);return uni(e,r,o)??hni(r,o,a)},"computeNodeIntersection"),RSe=I((e,r,i,a=0.1)=>{if(!i||e.length===0)return;if(r==="start")if(e.length>0&&Math.abs(e[0].x-i.x)0&&Math.abs(e[o].x-i.x){if(typeof e!=="string")return 0;return Math.max(O0[e]??0,dwe[e]??0)},"markerPathOffset"),TIr={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},OIr=`[top=${Aie},left=${Aie},bottom=${Aie},right=${Aie}]`,vnt={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},pni=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(vnt)];I(MIr,"clearContainerAlgorithmOptions");xIr=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);I(_nt,"resolveContainerAlgorithm");I(Ent,"dir2ElkDirection");I(LSe,"groupTitleWidth");I(wnt,"groupTitleSizeOptions");I(DIr,"buildSubgraphLayoutOptions");I(PIr,"findCyclicEntryNodes");I(BIr,"applyCyclicEntryConstraint");I(FIr,"prepareLayoutForElk");I($Ir,"runElkLayoutCore");I(UIr,"buildElkGraphFromLayoutData");I(GIr,"reverseSubgraphFeedbackEdges");gni=hB({afterPaint:AIr,prepareLayout:FIr,measureLayout:I((e,r)=>CSe(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:$Ir,paintOptions:{skipIntersect:!0}});I(zIr,"syncHostConfig");I(VIr,"orderNodesForElkPaint");I(snt,"getGroupDepth");I(Snt,"getElkLayoutContext");nnt={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};I(Tnt,"resolveElkPreset");I(HIr,"createRootElkGraph");I(qIr,"addSubGraphs");I(xnt,"addVertices");I(YIr,"addVertex");I(WIr,"createElkNode");I(jIr,"getMeasuredLabelData");I(KIr,"addEdgesToElkGraph");I(XIr,"terminalElkLabels");I(QIr,"getEdgeStartEndPoint");I(ZIr,"configureSubgraphNodes");I(JIr,"configureCrossHierarchyEdges");I(ISe,"setIncludeChildrenPolicy");I(e6r,"runElkLayout");I(t6r,"applyElkLayoutResult");I(Cnt,"collectDescendantIds");I(r6r,"internalEdgePoints");I(knt,"evenGroupFrames");I(Ant,"applyElkNodePositions");I(Iie,"axisOf");I(n6r,"straightenTerminalJogsWithRuns");I(ont,"straightenFront");I(i6r,"segmentsCrossStrict");I(lnt,"crossingCount");I(a6r,"paramOnSegment");I(cnt,"pointAtParam");I(Rnt,"projectLabelOntoStraightenedRun");I(OSe,"segmentHitsBox");fB=I((e,r)=>({x1:e.x-r.width/2,y1:e.y-r.height/2,x2:e.x+r.width/2,y2:e.y+r.height/2}),"labelBox");I(s6r,"straightenEdgeTerminals");I(o6r,"applyElkEdgeLayout");I(l6r,"separateOppositeEdgeLabels");int=I((e,r)=>e.x1{};function N6r(e,r){if(e.nodeCount()<=1)return[];var i=Tni(e,r||wni),a=Sni(i.graph,i.buckets,i.zeroIdx);return JS(Eh(a,function(o){return e.outEdges(o.v,o.w)}))}function Sni(e,r,i){var a=[],o=r[r.length-1],l=r[0],h;while(e.nodeCount()){while(h=l.dequeue())Lnt(e,r,i,h);while(h=o.dequeue())Lnt(e,r,i,h);if(e.nodeCount()){for(var d=r.length-2;d>0;--d)if(h=r[d].dequeue(),h){a=a.concat(Lnt(e,r,i,h,!0));break}}}return a}function Lnt(e,r,i,a,o){var l=o?[]:void 0;return Sn(e.inEdges(a.v),function(h){var d=e.edge(h),p=e.node(h.v);if(o)l.push({v:h.v,w:h.w});p.out-=d,Mnt(r,i,p)}),Sn(e.outEdges(a.v),function(h){var d=e.edge(h),p=h.w,m=e.node(p);m.in-=d,Mnt(r,i,m)}),e.removeNode(a.v),l}function Tni(e,r){var i=new Yh,a=0,o=0;Sn(e.nodes(),function(d){i.setNode(d,{v:d,in:0,out:0})}),Sn(e.edges(),function(d){var p=i.edge(d.v,d.w)||0,m=r(d),y=p+m;i.setEdge(d.v,d.w,y),o=Math.max(o,i.node(d.v).out+=m),a=Math.max(a,i.node(d.w).in+=m)});var l=eT(o+a+3).map(function(){return new Nnt}),h=a+1;return Sn(i.nodes(),function(d){Mnt(l,h,i.node(d))}),{graph:i,buckets:l,zeroIdx:h}}function Mnt(e,r,i){if(!i.out)e[0].enqueue(i);else if(!i.in)e[e.length-1].enqueue(i);else e[i.out-i.in+r].enqueue(i)}var wni;var L6r=Re(()=>{wh();tT();O6r();wni=J_(1)});function M6r(e){var r=e.graph().acyclicer==="greedy"?N6r(e,i(e)):xni(e);Sn(r,function(a){var o=e.edge(a);e.removeEdge(a),o.forwardName=a.name,o.reversed=!0,e.setEdge(a.w,a.v,o,oB("rev"))});function i(a){return function(o){return a.edge(o).weight}}}function xni(e){var r=[],i={},a={};function o(l){if(Object.prototype.hasOwnProperty.call(a,l))return;a[l]=!0,i[l]=!0,Sn(e.outEdges(l),function(h){if(Object.prototype.hasOwnProperty.call(i,h.w))r.push(h);else o(h.w)}),delete i[l]}return Sn(e.nodes(),o),r}function D6r(e){Sn(e.edges(),function(r){var i=e.edge(r);if(i.reversed){e.removeEdge(r);var a=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(r.w,r.v,i,a)}})}var Dnt=Re(()=>{wh();L6r()});function I3(e,r,i,a){var o;do o=oB(a);while(e.hasNode(o));return i.dummy=r,e.setNode(o,i),o}function B6r(e){var r=new Yh().setGraph(e.graph());return Sn(e.nodes(),function(i){r.setNode(i,e.node(i))}),Sn(e.edges(),function(i){var a=r.edge(i.v,i.w)||{weight:0,minlen:1},o=e.edge(i);r.setEdge(i.v,i.w,{weight:a.weight+o.weight,minlen:Math.max(a.minlen,o.minlen)})}),r}function MSe(e){var r=new Yh({multigraph:e.isMultigraph()}).setGraph(e.graph());return Sn(e.nodes(),function(i){if(!e.children(i).length)r.setNode(i,e.node(i))}),Sn(e.edges(),function(i){r.setEdge(i,e.edge(i))}),r}function Pnt(e,r){var{x:i,y:a}=e,o=r.x-i,l=r.y-a,h=e.width/2,d=e.height/2;if(!o&&!l)throw Error("Not possible to find intersection inside of the rectangle");var p,m;if(Math.abs(l)*h>Math.abs(o)*d){if(l<0)d=-d;p=d*o/l,m=d}else{if(o<0)h=-h;p=h,m=h*l/o}return{x:i+p,y:a+m}}function WL(e){var r=Eh(eT(Fnt(e)+1),function(){return[]});return Sn(e.nodes(),function(i){var a=e.node(i),o=a.rank;if(!Gp(o))r[o][a.order]=i}),r}function F6r(e){var r=jR(Eh(e.nodes(),function(i){return e.node(i).rank}));Sn(e.nodes(),function(i){var a=e.node(i);if(Sie(a,"rank"))a.rank-=r})}function $6r(e){var r=jR(Eh(e.nodes(),function(l){return e.node(l).rank})),i=[];Sn(e.nodes(),function(l){var h=e.node(l).rank-r;if(!i[h])i[h]=[];i[h].push(l)});var a=0,o=e.graph().nodeRankFactor;Sn(i,function(l,h){if(Gp(l)&&h%o!==0)--a;else if(a)Sn(l,function(d){e.node(d).rank+=a})})}function Bnt(e,r,i,a){var o={width:0,height:0};if(arguments.length>=4)o.rank=i,o.order=a;return I3(e,"border",o,r)}function Fnt(e){return t2(Eh(e.nodes(),function(r){var i=e.node(r).rank;if(!Gp(i))return i}))}function U6r(e,r){var i={lhs:[],rhs:[]};return Sn(e,function(a){if(r(a))i.lhs.push(a);else i.rhs.push(a)}),i}function G6r(e,r){var i=pSe();try{return r()}finally{console.log(e+" time: "+(pSe()-i)+"ms")}}function z6r(e,r){return r()}var O3=Re(()=>{wh();tT()});function H6r(e){function r(i){var a=e.children(i),o=e.node(i);if(a.length)Sn(a,r);if(Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var l=o.minRank,h=o.maxRank+1;l{wh();O3()});function W6r(e){var r=e.graph().rankdir.toLowerCase();if(r==="lr"||r==="rl")K6r(e)}function j6r(e){var r=e.graph().rankdir.toLowerCase();if(r==="bt"||r==="rl")Cni(e);if(r==="lr"||r==="rl")kni(e),K6r(e)}function K6r(e){Sn(e.nodes(),function(r){Y6r(e.node(r))}),Sn(e.edges(),function(r){Y6r(e.edge(r))})}function Y6r(e){var r=e.width;e.width=e.height,e.height=r}function Cni(e){Sn(e.nodes(),function(r){$nt(e.node(r))}),Sn(e.edges(),function(r){var i=e.edge(r);if(Sn(i.points,$nt),Object.prototype.hasOwnProperty.call(i,"y"))$nt(i)})}function $nt(e){e.y=-e.y}function kni(e){Sn(e.nodes(),function(r){Unt(e.node(r))}),Sn(e.edges(),function(r){var i=e.edge(r);if(Sn(i.points,Unt),Object.prototype.hasOwnProperty.call(i,"x"))Unt(i)})}function Unt(e){var r=e.x;e.x=e.y,e.y=r}var X6r=Re(()=>{wh()});function Q6r(e){e.graph().dummyChains=[],Sn(e.edges(),function(r){Rni(e,r)})}function Rni(e,r){var i=r.v,a=e.node(i).rank,o=r.w,l=e.node(o).rank,h=r.name,d=e.edge(r),p=d.labelRank;if(l===a+1)return;e.removeEdge(r);var m=void 0,y,E;for(E=0,++a;a{wh();O3()});function Mie(e){var r={};function i(a){var o=e.node(a);if(Object.prototype.hasOwnProperty.call(r,a))return o.rank;r[a]=!0;var l=jR(Eh(e.outEdges(a),function(h){return i(h.w)-e.edge(h).minlen}));if(l===Number.POSITIVE_INFINITY||l===void 0||l===null)l=0;return o.rank=l}Sn(e.sources(),i)}function pB(e,r){return e.node(r.w).rank-e.node(r.v).rank-e.edge(r).minlen}var DSe=Re(()=>{wh()});function PSe(e){var r=new Yh({directed:!1}),i=e.nodes()[0],a=e.nodeCount();r.setNode(i,{});var o,l;while(Ini(r,e){wh();tT();DSe()});var eOr=()=>{};var Vnt=()=>{};var BWa;var Hnt=Re(()=>{wh();Vnt();BWa=J_(1)});var tOr=Re(()=>{Hnt()});var qnt=()=>{};var rOr=Re(()=>{qnt()});var HWa;var nOr=Re(()=>{wh();HWa=J_(1)});function Ynt(e){var r={},i={},a=[];function o(l){if(Object.prototype.hasOwnProperty.call(i,l))throw new Die;if(!Object.prototype.hasOwnProperty.call(r,l))i[l]=!0,r[l]=!0,Sn(e.predecessors(l),o),delete i[l],a.push(l)}if(Sn(e.sinks(),o),jrt(r)!==e.nodeCount())throw new Die;return a}function Die(){}var Wnt=Re(()=>{wh();Ynt.CycleException=Die;Die.prototype=Error()});var iOr=Re(()=>{Wnt()});function BSe(e,r,i){if(!Fl(r))r=[r];var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],l={};return Sn(r,function(h){if(!e.hasNode(h))throw Error("Graph does not have node: "+h);aOr(e,h,i==="post",l,a,o)}),o}function aOr(e,r,i,a,o,l){if(!Object.prototype.hasOwnProperty.call(a,r)){if(a[r]=!0,!i)l.push(r);if(Sn(o(r),function(h){aOr(e,h,i,a,o,l)}),i)l.push(r)}}var jnt=Re(()=>{wh()});function Knt(e,r){return BSe(e,r,"post")}var sOr=Re(()=>{jnt()});function Xnt(e,r){return BSe(e,r,"pre")}var oOr=Re(()=>{jnt()});var lOr=Re(()=>{Vnt();Qrt()});var cOr=Re(()=>{eOr();Hnt();tOr();rOr();nOr();iOr();sOr();oOr();lOr();qnt();Wnt()});function KL(e){e=B6r(e),Mie(e);var r=PSe(e);Znt(r),Qnt(r,e);var i,a;while(i=fOr(r))a=pOr(r,e,i),gOr(r,e,i,a)}function Qnt(e,r){var i=Knt(e,e.nodes());i=i.slice(0,i.length-1),Sn(i,function(a){Bni(e,r,a)})}function Bni(e,r,i){var a=e.node(i),o=a.parent;e.edge(i,o).cutvalue=hOr(e,r,i)}function hOr(e,r,i){var a=e.node(i),o=a.parent,l=!0,h=r.edge(i,o),d=0;if(!h)l=!1,h=r.edge(o,i);return d=h.weight,Sn(r.nodeEdges(i),function(p){var m=p.v===i,y=m?p.w:p.v;if(y!==o){var E=m===l,w=r.edge(p).weight;if(d+=E?w:-w,$ni(e,i,y)){var T=e.edge(i,y).cutvalue;d+=E?-T:T}}}),d}function Znt(e,r){if(arguments.length<2)r=e.nodes()[0];dOr(e,{},1,r)}function dOr(e,r,i,a,o){var l=i,h=e.node(a);if(r[a]=!0,Sn(e.neighbors(a),function(d){if(!Object.prototype.hasOwnProperty.call(r,d))i=dOr(e,r,i,d,a)}),h.low=l,h.lim=i++,o)h.parent=o;else delete h.parent;return i}function fOr(e){return cq(e.edges(),function(r){return e.edge(r).cutvalue<0})}function pOr(e,r,i){var{v:a,w:o}=i;if(!r.hasEdge(a,o))a=i.w,o=i.v;var l=e.node(a),h=e.node(o),d=l,p=!1;if(l.lim>h.lim)d=h,p=!0;var m=bv(r.edges(),function(y){return p===uOr(e,e.node(y.v),d)&&p!==uOr(e,e.node(y.w),d)});return aB(m,function(y){return pB(r,y)})}function gOr(e,r,i,a){var{v:o,w:l}=i;e.removeEdge(o,l),e.setEdge(a.v,a.w,{}),Znt(e),Qnt(e,r),Fni(e,r)}function Fni(e,r){var i=cq(e.nodes(),function(o){return!r.node(o).parent}),a=Xnt(e,i);a=a.slice(1),Sn(a,function(o){var l=e.node(o).parent,h=r.edge(o,l),d=!1;if(!h)h=r.edge(l,o),d=!0;r.node(o).rank=r.node(l).rank+(d?h.minlen:-h.minlen)})}function $ni(e,r,i){return e.hasEdge(r,i)}function uOr(e,r,i){return i.low<=r.lim&&r.lim<=i.lim}var mOr=Re(()=>{wh();cOr();O3();znt();DSe();KL.initLowLimValues=Znt;KL.initCutValues=Qnt;KL.calcCutValue=hOr;KL.leaveEdge=fOr;KL.enterEdge=pOr;KL.exchangeEdges=gOr});function Jnt(e){switch(e.graph().ranker){case"network-simplex":bOr(e);break;case"tight-tree":Gni(e);break;case"longest-path":Uni(e);break;default:bOr(e)}}function Gni(e){Mie(e),PSe(e)}function bOr(e){KL(e)}var Uni;var eit=Re(()=>{znt();mOr();DSe();Uni=Mie});function yOr(e){var r=I3(e,"root",{},"_root"),i=zni(e),a=t2(QE(i))-1,o=2*a+1;e.graph().nestingRoot=r,Sn(e.edges(),function(h){e.edge(h).minlen*=o});var l=Vni(e)+1;Sn(e.children(),function(h){vOr(e,r,o,l,a,i,h)}),e.graph().nodeRankFactor=o}function vOr(e,r,i,a,o,l,h){var d=e.children(h);if(!d.length){if(h!==r)e.setEdge(r,h,{weight:0,minlen:i});return}var p=Bnt(e,"_bt"),m=Bnt(e,"_bb"),y=e.node(h);if(e.setParent(p,h),y.borderTop=p,e.setParent(m,h),y.borderBottom=m,Sn(d,function(E){vOr(e,r,i,a,o,l,E);var w=e.node(E),T=w.borderTop?w.borderTop:E,x=w.borderBottom?w.borderBottom:E,k=w.borderTop?a:2*a,A=T!==x?1:o-l[h]+1;e.setEdge(p,T,{weight:k,minlen:A,nestingEdge:!0}),e.setEdge(x,m,{weight:k,minlen:A,nestingEdge:!0})}),!e.parent(h))e.setEdge(r,p,{weight:0,minlen:o+l[h]})}function zni(e){var r={};function i(a,o){var l=e.children(a);if(l&&l.length)Sn(l,function(h){i(h,o+1)});r[a]=o}return Sn(e.children(),function(a){i(a,1)}),r}function Vni(e){return A3(e.edges(),function(r,i){return r+e.edge(i).weight},0)}function _Or(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,Sn(e.edges(),function(i){var a=e.edge(i);if(a.nestingEdge)e.removeEdge(i)})}var EOr=Re(()=>{wh();O3()});function wOr(e,r,i){var a={},o;Sn(i,function(l){var h=e.parent(l),d,p;while(h){if(d=e.parent(h),d)p=a[d],a[d]=h;else p=o,o=h;if(p&&p!==h){r.setEdge(p,h);return}h=d}})}var SOr=Re(()=>{wh()});function TOr(e,r,i){var a=qni(e),o=new Yh({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(l){return e.node(l)});return Sn(e.nodes(),function(l){var h=e.node(l),d=e.parent(l);if(h.rank===r||h.minRank<=r&&r<=h.maxRank){if(o.setNode(l),o.setParent(l,d||a),Sn(e[i](l),function(p){var m=p.v===l?p.w:p.v,y=o.edge(m,l),E=!Gp(y)?y.weight:0;o.setEdge(m,l,{weight:e.edge(p).weight+E})}),Object.prototype.hasOwnProperty.call(h,"minRank"))o.setNode(l,{borderLeft:h.borderLeft[r],borderRight:h.borderRight[r]})}}),o}function qni(e){var r;while(e.hasNode(r=oB("_root")));return r}var xOr=Re(()=>{wh();tT()});function COr(e,r){var i=0;for(var a=1;a0){if(y%2)E+=d[y+1];y=y-1>>1,d[y]+=m.weight}p+=m.weight*E})),p}var kOr=Re(()=>{wh()});function AOr(e){var r={},i=bv(e.nodes(),function(d){return!e.children(d).length}),a=t2(Eh(i,function(d){return e.node(d).rank})),o=Eh(eT(a+1),function(){return[]});function l(d){if(Sie(r,d))return;r[d]=!0;var p=e.node(d);o[p.rank].push(d),Sn(e.successors(d),l)}var h=R3(i,function(d){return e.node(d).rank});return Sn(h,l),o}var ROr=Re(()=>{wh()});function IOr(e,r){return Eh(r,function(i){var a=e.inEdges(i);if(!a.length)return{v:i};else{var o=A3(a,function(l,h){var d=e.edge(h),p=e.node(h.v);return{sum:l.sum+d.weight*p.order,weight:l.weight+d.weight}},{sum:0,weight:0});return{v:i,barycenter:o.sum/o.weight,weight:o.weight}}})}var OOr=Re(()=>{wh()});function NOr(e,r){var i={};Sn(e,function(o,l){var h=i[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:l};if(!Gp(o.barycenter))h.barycenter=o.barycenter,h.weight=o.weight}),Sn(r.edges(),function(o){var l=i[o.v],h=i[o.w];if(!Gp(l)&&!Gp(h))h.indegree++,l.out.push(i[o.w])});var a=bv(i,function(o){return!o.indegree});return Wni(a)}function Wni(e){var r=[];function i(l){return function(h){if(h.merged)return;if(Gp(h.barycenter)||Gp(l.barycenter)||h.barycenter>=l.barycenter)jni(l,h)}}function a(l){return function(h){if(h.in.push(l),--h.indegree===0)e.push(h)}}while(e.length){var o=e.pop();r.push(o),Sn(o.in.reverse(),i(o)),Sn(o.out,a(o))}return Eh(bv(r,function(l){return!l.merged}),function(l){return sB(l,["vs","i","barycenter","weight"])})}function jni(e,r){var i=0,a=0;if(e.weight)i+=e.barycenter*e.weight,a+=e.weight;if(r.weight)i+=r.barycenter*r.weight,a+=r.weight;e.vs=r.vs.concat(e.vs),e.barycenter=i/a,e.weight=a,e.i=Math.min(r.i,e.i),r.merged=!0}var LOr=Re(()=>{wh()});function DOr(e,r){var i=U6r(e,function(y){return Object.prototype.hasOwnProperty.call(y,"barycenter")}),a=i.lhs,o=R3(i.rhs,function(y){return-y.i}),l=[],h=0,d=0,p=0;a.sort(Kni(!!r)),p=MOr(l,o,p),Sn(a,function(y){p+=y.vs.length,l.push(y.vs),h+=y.barycenter*y.weight,d+=y.weight,p=MOr(l,o,p)});var m={vs:JS(l)};if(d)m.barycenter=h/d,m.weight=d;return m}function MOr(e,r,i){var a;while(r.length&&(a=qL(r)).i<=i)r.pop(),e.push(a.vs),i++;return i}function Kni(e){return function(r,i){if(r.barycenteri.barycenter)return 1;return!e?r.i-i.i:i.i-r.i}}var POr=Re(()=>{wh();O3()});function tit(e,r,i,a){var o=e.children(r),l=e.node(r),h=l?l.borderLeft:void 0,d=l?l.borderRight:void 0,p={};if(h)o=bv(o,function(x){return x!==h&&x!==d});var m=IOr(e,o);Sn(m,function(x){if(e.children(x.v).length){var k=tit(e,x.v,i,a);if(p[x.v]=k,Object.prototype.hasOwnProperty.call(k,"barycenter"))Qni(x,k)}});var y=NOr(m,i);Xni(y,p);var E=DOr(y,a);if(h){if(E.vs=JS([h,E.vs,d]),e.predecessors(h).length){var w=e.node(e.predecessors(h)[0]),T=e.node(e.predecessors(d)[0]);if(!Object.prototype.hasOwnProperty.call(E,"barycenter"))E.barycenter=0,E.weight=0;E.barycenter=(E.barycenter*E.weight+w.order+T.order)/(E.weight+2),E.weight+=2}}return E}function Xni(e,r){Sn(e,function(i){i.vs=JS(i.vs.map(function(a){if(r[a])return r[a].vs;return a}))})}function Qni(e,r){if(!Gp(e.barycenter))e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight;else e.barycenter=r.barycenter,e.weight=r.weight}var BOr=Re(()=>{wh();OOr();LOr();POr()});function UOr(e){var r=Fnt(e),i=FOr(e,eT(1,r+1),"inEdges"),a=FOr(e,eT(r-1,-1,-1),"outEdges"),o=AOr(e);$Or(e,o);var l=Number.POSITIVE_INFINITY,h;for(var d=0,p=0;p<4;++d,++p){Zni(d%2?i:a,d%4>=2),o=WL(e);var m=COr(e,o);if(m{wh();tT();O3();SOr();xOr();kOr();ROr();BOr()});function zOr(e){var r=eii(e);Sn(e.graph().dummyChains,function(i){var a=e.node(i),o=a.edgeObj,l=Jni(e,r,o.v,o.w),{path:h,lca:d}=l,p=0,m=h[p],y=!0;while(i!==o.w){if(a=e.node(i),y){while((m=h[p])!==d&&e.node(m).maxRankh||d>r[p].lim));m=p,p=a;while((p=e.parent(p))!==m)l.push(p);return{path:o.concat(l.reverse()),lca:m}}function eii(e){var r={},i=0;function a(o){var l=i;Sn(e.children(o),a),r[o]={low:l,lim:i++}}return Sn(e.children(),a),r}var VOr=Re(()=>{wh()});function tii(e,r){var i={};function a(o,l){var h=0,d=0,p=o.length,m=qL(l);return Sn(l,function(y,E){var w=nii(e,y),T=w?e.node(w).order:p;if(w||y===m)Sn(l.slice(d,E+1),function(x){Sn(e.predecessors(x),function(k){var A=e.node(k),R=A.order;if((Rm))HOr(i,w,y)})})}function o(l,h){var d=-1,p,m=0;return Sn(h,function(y,E){if(e.node(y).dummy==="border"){var w=e.predecessors(y);if(w.length)p=e.node(w[0]).order,a(h,m,E,d,p),m=E,d=p}a(h,m,h.length,p,l.length)}),h}return A3(r,o),i}function nii(e,r){if(e.node(r).dummy)return cq(e.predecessors(r),function(i){return e.node(i).dummy})}function HOr(e,r,i){if(r>i){var a=r;r=i,i=a}if(!Object.prototype.hasOwnProperty.call(e,r))Object.defineProperty(e,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=e[r];Object.defineProperty(o,i,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function iii(e,r,i){if(r>i){var a=r;r=i,i=a}return!!e[r]&&Object.prototype.hasOwnProperty.call(e[r],i)}function aii(e,r,i,a){var o={},l={},h={};return Sn(r,function(d){Sn(d,function(p,m){o[p]=p,l[p]=p,h[p]=m})}),Sn(r,function(d){var p=-1;Sn(d,function(m){var y=a(m);if(y.length){y=R3(y,function(k){return h[k]});var E=(y.length-1)/2;for(var w=Math.floor(E),T=Math.ceil(E);w<=T;++w){var x=y[w];if(l[m]===m&&p{wh();tT();O3()});function WOr(e){e=MSe(e),fii(e),Hrt(qOr(e),function(r,i){e.node(i).x=r})}function fii(e){var r=WL(e),i=e.graph().ranksep,a=0;Sn(r,function(o){var l=t2(Eh(o,function(h){return e.node(h).height}));Sn(o,function(h){e.node(h).y=a+l/2}),a+=l+i})}var jOr=Re(()=>{wh();O3();YOr()});function iit(e,r){var i=r&&r.debugTiming?G6r:z6r;i("layout",()=>{var a=i(" buildLayoutGraph",()=>Tii(e));i(" runLayout",()=>pii(a,i)),i(" updateInputGraph",()=>gii(e,a))})}function pii(e,r){r(" makeSpaceForEdgeLabels",()=>xii(e)),r(" removeSelfEdges",()=>Mii(e)),r(" acyclic",()=>M6r(e)),r(" nestingGraph.run",()=>yOr(e)),r(" rank",()=>Jnt(MSe(e))),r(" injectEdgeLabelProxies",()=>Cii(e)),r(" removeEmptyRanks",()=>$6r(e)),r(" nestingGraph.cleanup",()=>_Or(e)),r(" normalizeRanks",()=>F6r(e)),r(" assignRankMinMax",()=>kii(e)),r(" removeEdgeLabelProxies",()=>Aii(e)),r(" normalize.run",()=>Q6r(e)),r(" parentDummyChains",()=>zOr(e)),r(" addBorderSegments",()=>H6r(e)),r(" order",()=>UOr(e)),r(" insertSelfEdges",()=>Dii(e)),r(" adjustCoordinateSystem",()=>W6r(e)),r(" position",()=>WOr(e)),r(" positionSelfEdges",()=>Pii(e)),r(" removeBorderNodes",()=>Lii(e)),r(" normalize.undo",()=>Z6r(e)),r(" fixupEdgeLabelCoords",()=>Oii(e)),r(" undoCoordinateSystem",()=>j6r(e)),r(" translateGraph",()=>Rii(e)),r(" assignNodeIntersects",()=>Iii(e)),r(" reversePoints",()=>Nii(e)),r(" acyclic.undo",()=>D6r(e))}function gii(e,r){Sn(e.nodes(),function(i){var a=e.node(i),o=r.node(i);if(a){if(a.x=o.x,a.y=o.y,r.children(i).length)a.width=o.width,a.height=o.height}}),Sn(e.edges(),function(i){var a=e.edge(i),o=r.edge(i);if(a.points=o.points,Object.prototype.hasOwnProperty.call(o,"x"))a.x=o.x,a.y=o.y}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}function Tii(e){var r=new Yh({multigraph:!0,compound:!0}),i=nit(e.graph());return r.setGraph(hq({},bii,rit(i,mii),sB(i,yii))),Sn(e.nodes(),function(a){var o=nit(e.node(a));r.setNode(a,Brt(rit(o,vii),_ii)),r.setParent(a,e.parent(a))}),Sn(e.edges(),function(a){var o=nit(e.edge(a));r.setEdge(a,hq({},wii,rit(o,Eii),sB(o,Sii)))}),r}function xii(e){var r=e.graph();r.ranksep/=2,Sn(e.edges(),function(i){var a=e.edge(i);if(a.minlen*=2,a.labelpos.toLowerCase()!=="c")if(r.rankdir==="TB"||r.rankdir==="BT")a.width+=a.labeloffset;else a.height+=a.labeloffset})}function Cii(e){Sn(e.edges(),function(r){var i=e.edge(r);if(i.width&&i.height){var a=e.node(r.v),o=e.node(r.w),l={rank:(o.rank-a.rank)/2+a.rank,e:r};I3(e,"edge-proxy",l,"_ep")}})}function kii(e){var r=0;Sn(e.nodes(),function(i){var a=e.node(i);if(a.borderTop)a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,r=t2(r,a.maxRank)}),e.graph().maxRank=r}function Aii(e){Sn(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="edge-proxy")e.edge(i.e).labelRank=i.rank,e.removeNode(r)})}function Rii(e){var r=Number.POSITIVE_INFINITY,i=0,a=Number.POSITIVE_INFINITY,o=0,l=e.graph(),h=l.marginx||0,d=l.marginy||0;function p(m){var{x:y,y:E,width:w,height:T}=m;r=Math.min(r,y-w/2),i=Math.max(i,y+w/2),a=Math.min(a,E-T/2),o=Math.max(o,E+T/2)}Sn(e.nodes(),function(m){p(e.node(m))}),Sn(e.edges(),function(m){var y=e.edge(m);if(Object.prototype.hasOwnProperty.call(y,"x"))p(y)}),r-=h,a-=d,Sn(e.nodes(),function(m){var y=e.node(m);y.x-=r,y.y-=a}),Sn(e.edges(),function(m){var y=e.edge(m);if(Sn(y.points,function(E){E.x-=r,E.y-=a}),Object.prototype.hasOwnProperty.call(y,"x"))y.x-=r;if(Object.prototype.hasOwnProperty.call(y,"y"))y.y-=a}),l.width=i-r+h,l.height=o-a+d}function Iii(e){Sn(e.edges(),function(r){var i=e.edge(r),a=e.node(r.v),o=e.node(r.w),l,h;if(!i.points)i.points=[],l=o,h=a;else l=i.points[0],h=i.points[i.points.length-1];i.points.unshift(Pnt(a,l)),i.points.push(Pnt(o,h))})}function Oii(e){Sn(e.edges(),function(r){var i=e.edge(r);if(Object.prototype.hasOwnProperty.call(i,"x")){if(i.labelpos==="l"||i.labelpos==="r")i.width-=i.labeloffset;switch(i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}}})}function Nii(e){Sn(e.edges(),function(r){var i=e.edge(r);if(i.reversed)i.points.reverse()})}function Lii(e){Sn(e.nodes(),function(r){if(e.children(r).length){var i=e.node(r),a=e.node(i.borderTop),o=e.node(i.borderBottom),l=e.node(qL(i.borderLeft)),h=e.node(qL(i.borderRight));i.width=Math.abs(h.x-l.x),i.height=Math.abs(o.y-a.y),i.x=l.x+i.width/2,i.y=a.y+i.height/2}}),Sn(e.nodes(),function(r){if(e.node(r).dummy==="border")e.removeNode(r)})}function Mii(e){Sn(e.edges(),function(r){if(r.v===r.w){var i=e.node(r.v);if(!i.selfEdges)i.selfEdges=[];i.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function Dii(e){var r=WL(e);Sn(r,function(i){var a=0;Sn(i,function(o,l){var h=e.node(o);h.order=l+a,Sn(h.selfEdges,function(d){I3(e,"selfedge",{width:d.label.width,height:d.label.height,rank:h.rank,order:l+ ++a,e:d.e,label:d.label},"_se")}),delete h.selfEdges})})}function Pii(e){Sn(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="selfedge"){var a=e.node(i.e.v),o=a.x+a.width/2,l=a.y,h=i.x-o,d=a.height/2;e.setEdge(i.e,i.label),e.removeNode(r),i.label.points=[{x:o+2*h/3,y:l-d},{x:o+5*h/6,y:l-d},{x:o+h,y:l},{x:o+5*h/6,y:l+d},{x:o+2*h/3,y:l+d}],i.label.x=i.x,i.label.y=i.y}})}function rit(e,r){return iB(sB(e,r),Number)}function nit(e){var r={};return Sn(e,function(i,a){r[a.toLowerCase()]=i}),r}var mii,bii,yii,vii,_ii,Eii,wii,Sii;var KOr=Re(()=>{wh();tT();q6r();X6r();Dnt();Gnt();eit();EOr();GOr();VOr();jOr();O3();mii=["nodesep","edgesep","ranksep","marginx","marginy"],bii={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},yii=["acyclicer","ranker","rankdir","align"],vii=["width","height"],_ii={width:0,height:0},Eii=["minlen","weight","width","height","labeloffset"],wii={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Sii=["labelpos"]});var XOr=Re(()=>{Dnt();KOr();Gnt();eit()});var aNr={};GN(aNr,{applyDagreLayoutResult:()=>rNr,getEdgesToRender:()=>ait,measureDagreLayout:()=>nNr,prepareLayoutForDagre:()=>sit,render:()=>jii,runDagreLayoutCore:()=>iNr});var QOr,ZOr,Bii,Fii,$ii,Uii,Gii,ait,eNr,tNr,zii,JOr,Vii,rNr,Hii,qii,sit,nNr,iNr,Yii,Wii,jii;var sNr=Re(()=>{kSe();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();XOr();tT();QOr=I((e,r,i)=>Math.max(r,Math.min(i,e)),"clamp"),ZOr=I((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),Bii=I((e)=>e==="flowchart"||e==="flowchart-v2"||e==="stateDiagram"||e==="er"||e==="classDiagram","shouldMergeSelfLoopSegments"),Fii=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],$ii=I((e,r,i,a,o)=>{let l=[],h=new Set;if(i.forEach(({start:y,end:E})=>{if(y!==a)h.add(y);if(E!==a)h.add(E)}),h.forEach((y)=>{let E=e.node(y);if(typeof E?.x==="number"&&typeof E?.y==="number")l.push(E)}),l.length===0)i.forEach(({edge:y})=>{(y.points??[]).forEach((E)=>{if(typeof E?.x==="number"&&typeof E?.y==="number")l.push(E)})});if(l.length===0)return ZOr(o);let d=l.reduce((y,E)=>({x:y.x+E.x/l.length,y:y.y+E.y/l.length}),{x:0,y:0}),p=d.x-r.x,m=d.y-r.y;if(Math.abs(p)>Math.abs(m))return p>0?"right":"left";if(Math.abs(m)>0)return m>0?"bottom":"top";return ZOr(o)},"getSelfLoopSide"),Uii=I((e,r="top",i=0,a=0)=>{let o=e.x,l=e.y-i,h=e.width/2,d=e.height/2,p=Math.max(36,Math.min(100,e.width*0.8)),m=QOr(Math.max(a,e.width*0.35),36,p),y=QOr(Math.min(e.width,e.height)*0.45,24,48);switch(r){case"bottom":{let E=l+d;return[{x:o-m/2,y:E},{x:o-m/2,y:E+y},{x:o+m/2,y:E+y},{x:o+m/2,y:E}]}case"right":{let E=o+h;return[{x:E,y:l-m/2},{x:E+y,y:l-m/2},{x:E+y,y:l+m/2},{x:E,y:l+m/2}]}case"left":{let E=o-h;return[{x:E,y:l-m/2},{x:E-y,y:l-m/2},{x:E-y,y:l+m/2},{x:E,y:l+m/2}]}case"top":default:{let E=l-d;return[{x:o-m/2,y:E},{x:o-m/2,y:E-y},{x:o+m/2,y:E-y},{x:o+m/2,y:E}]}}},"getSelfLoopPoints"),Gii=I((e,r,i="top",a=0,o={})=>{let h=e.x,d=e.y-a,p=o.width??0,m=o.height??0;switch(i){case"bottom":return{x:h,y:Math.max(...r.map((y)=>y.y))+m/2+4};case"right":return{x:Math.max(...r.map((y)=>y.x))+p/2+4,y:d};case"left":return{x:Math.min(...r.map((y)=>y.x))-p/2-4,y:d};case"top":default:return{x:h,y:Math.min(...r.map((y)=>y.y))-m/2-4}}},"getSelfLoopLabelPosition"),ait=I((e,r=0,{mergeSelfLoops:i=!0}={})=>{let a=new Map,o=[],l=e.graph()?.rankdir;return e.edges().forEach((h)=>{let d=e.edge(h);if(i&&d.selfLoop){let p=d.selfLoop.id;if(!a.has(p))a.set(p,[]);a.get(p).push({edge:d,start:h.v,end:h.w})}else o.push({edge:d,start:h.v,end:h.w})}),a.forEach((h)=>{if(h.length!==3){h.forEach((R)=>o.push(R));return}h.sort((R,N)=>R.edge.selfLoop.order-N.edge.selfLoop.order);let[d,p,m]=h,y=d.edge.originalEdge??p.edge.originalEdge??m.edge.originalEdge??p.edge,E=e.node(y.start);if(!E){h.forEach((R)=>o.push(R));return}let w={width:p.edge.width,height:p.edge.height},T=$ii(e,E,h,y.start,l),x=Uii(E,T,r,w.width??0),k=Gii(E,x,T,r,w),A={...p.edge,...y,id:y.id,points:x,start:y.start,end:y.end,x:k.x,y:k.y,width:w.width,height:w.height,labelStyle:p.edge.labelStyle,fromCluster:d.edge.fromCluster??p.edge.fromCluster??m.edge.fromCluster,toCluster:d.edge.toCluster??p.edge.toCluster??m.edge.toCluster};delete A.selfLoop,delete A.originalEdge,o.push({edge:A,start:A.start,end:A.end})}),o},"getEdgesToRender"),eNr=I(async({element:e,graph:r,diagramType:i,id:a,parentCluster:o,siteConfig:l})=>{let h=r.graph().rankdir;Ze.trace("Dir in recursive render - dir:",h);let{clusters:d,edgePaths:p,edgeLabels:m,nodes:y,rootGroups:E}=SSe(e,{edgePathsClass:"edgePaths"});if(!r.nodes())Ze.info("No nodes found for",r);else Ze.info("Recursive render XXX",r.nodes());if(r.edges().length>0)Ze.info("Recursive edges",r.edge(r.edges()[0]));let w=Bii(i);await Promise.all(r.nodes().map(async function(k){let A=r.node(k);if(o!==void 0){let R=JSON.parse(JSON.stringify(o.clusterData));if(Ze.trace(`Setting data for parent cluster XXX +... Falling back to non-web worker version.`);if(!x.workerFactory){var R=a("./elk-worker.min.js"),N=R.Worker;x.workerFactory=function(L){return new N(L)}}return d(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,x))}return w}(m);Object.defineProperty(o.exports,"__esModule",{value:!0}),o.exports=y,y.default=y},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(a,o,l){o.exports=Worker},{}]},{},[3])(3)})});var L6r={};VN(L6r,{render:()=>Eni});function lnt(e,r,{parentById:i}){let a=e;while((i[a]??sni)!==r)a=i[a];return a}function NIr(e,r){let i=e.map(()=>!1),a=new Map;e.forEach(({source:o,target:l},h)=>{if(o===l)return;let d=Ent(o,l,r);if(d===o||d===l)return;let p=lnt(o,d,r),m=lnt(l,d,r),y=a.get(d)??[];y.push({index:h,from:p,to:m,collapsed:p!==o||m!==l}),a.set(d,y)});for(let o of a.values()){let l=new Map,h=[],d=new Map;for(let w of o){for(let T of[w.from,w.to])if(!l.has(T))l.set(T,[]),h.push(T),d.set(T,0);l.get(w.from).push(w),d.set(w.to,d.get(w.to)+1)}let p=1,m=2,y=new Map,v=[...h.filter((w)=>d.get(w)===0),...h];for(let w of v){if(y.has(w))continue;y.set(w,p);let T=[{node:w,next:0}];while(T.length>0){let x=T[T.length-1],k=l.get(x.node);if(x.next>=k.length){y.set(x.node,m),T.pop();continue}let A=k[x.next++],R=y.get(A.to);if(R===p)i[A.index]=A.collapsed;else if(R===void 0)y.set(A.to,p),T.push({node:A.to,next:0})}}}return i}function LIr(e,{measure:r}){let i=e.config?.elk?.lineHops;if(i===!1)return;let a=e.edges.filter((o)=>Array.isArray(o.points)&&o.points.length>=2).map((o)=>({id:o.id,points:o.points,curve:o.curve,arrowTypeStart:o.arrowTypeStart,arrowTypeEnd:o.arrowTypeEnd}));tie(r.groups.edgePaths,a,{enabled:!0,jumpRadius:oni,jumpStyle:i==="gap"?"gap":"arc"})}function $Ir(e){for(let r of _ni)delete e[r];e["spacing.baseValue"]=BIr,e["spacing.nodeNode"]=FIr}function Snt(e,r){if(typeof e!=="string")return;if(!IIr.has(e)){r?.warn(`Unknown container layout algorithm "${e}". Supported values: ${[...IIr].join(", ")}. Falling back to the diagram's layout algorithm.`);return}return e}function Tnt(e){switch(e){case"LR":return"RIGHT";case"RL":return"LEFT";case"TB":case"TD":return"DOWN";case"BT":return"UP";default:return"DOWN"}}function PSe(e){if(!jtt(e.shape))return 0;return(e.labelData?.width??e.labels?.[0]?.width??0)+(e.padding??0)}function xnt(e){if(!jtt(e.shape))return{};return{"nodeSize.constraints":"[MINIMUM_SIZE, NODE_LABELS]","nodeSize.minimum":`(${PSe(e)}, 0)`}}function UIr(e,r,i,a){let o=e.labelData?.width??0,l=e.padding??0,h=o+2*l,d=e.labelData?.height??0,p=knt(r?.preset),m={...xnt(e),"spacing.baseValue":BIr,"elk.layered.spacing.edgeNodeBetweenLayers":30,"elk.spacing.edgeEdge":20,"spacing.nodeNode":FIr,"elk.padding":`[top=${pB},left=${pB},bottom=${pB},right=${pB}]`,"nodeLabels.placement":"[H_CENTER V_TOP, INSIDE]","elk.layered.mergeEdges":r?.mergeEdges,"elk.layered.nodePlacement.bk.fixedAlignment":r?.nodePlacementAlignment??p.alignment,"elk.layered.nodePlacement.strategy":r?.nodePlacementStrategy??p.containerPlacement,"elk.layered.cycleBreaking.strategy":r?.cycleBreakingStrategy??p.cycleBreaking,"elk.layered.nodePlacement.networkSimplex.nodeFlexibility":"PORT_POSITION","elk.spacing.portsSurrounding":PIr},y=Snt(e.metadata?.algorithm,a);if(y){let v=d+Rie;if(m["nodeSize.constraints"]="[MINIMUM_SIZE, NODE_LABELS]",m["nodeSize.minimum"]=`(${h}, ${v+Rie})`,m["elk.algorithm"]=y,m["elk.hierarchyHandling"]="SEPARATE_CHILDREN",m["elk.aspectRatio"]="2.0",m["elk.contentAlignment"]="H_CENTER V_TOP",m["elk.expandNodes"]="true",m["elk.padding"]=`[top=${v},left=${Rie},bottom=${Rie},right=${Rie}]`,y==="elk.rectpacking"){let w=d+Iie;Object.assign(m,wnt,{"elk.padding":`[top=${w},left=${Iie},bottom=${Iie},right=${Iie}]`,"nodeSize.minimum":`(${h}, ${w+Iie})`})}}else if(e.dir)m["elk.algorithm"]=i,m["elk.direction"]=Tnt(e.dir),m["elk.hierarchyHandling"]="SEPARATE_CHILDREN";return Object.assign(m,hni),m}function GIr(e,r){let i=new Set,a=new Map;for(let{id:o,parentId:l}of e){let h=a.get(l);if(h)h.push(o);else a.set(l,[o])}for(let o of a.values()){let l=new Set(o),h=new Map(o.map((A)=>[A,0])),d=new Map(o.map((A)=>[A,[]])),p=[];for(let A of r){let R=A.source==null?void 0:String(A.source),N=A.target==null?void 0:String(A.target);if(!R||!N||R===N)continue;if(!l.has(R)||!l.has(N))continue;h.set(N,(h.get(N)??0)+1),d.get(R).push(N),d.get(N).push(R),p.push([R,N])}let m=new Map,y=0;for(let A of o){if(m.has(A))continue;let R=[A];m.set(A,y);while(R.length>0){let N=R.pop();for(let L of d.get(N))if(!m.has(L))m.set(L,y),R.push(L)}y++}let v=Array(y).fill(!1);for(let A of o)if((h.get(A)??0)===0)v[m.get(A)]=!0;if(!v.includes(!1))continue;let w=new Map(o.map((A)=>[A,[]])),T=new Map(o.map((A)=>[A,0])),x=I((A,R)=>{let N=new Set([A]),L=[A];while(L.length>0){let B=L.pop();if(B===R)return!0;for(let D of w.get(B))if(!N.has(D))N.add(D),L.push(D)}return!1},"reaches");for(let[A,R]of p){if(x(R,A))continue;w.get(A).push(R),T.set(R,(T.get(R)??0)+1)}let k=Array(y).fill(!1);for(let A of o){let R=m.get(A);if(!v[R]&&!k[R]&&T.get(A)===0)i.add(A),k[R]=!0}}return i}function zIr(e,r){if(!e.config.elk?.keepEntryNodeOnTop)return;let i=GIr(e.nodes,e.edges.map((a)=>({source:a.start,target:a.end})));for(let a of i){let o=r[a];if(o)o.layoutOptions={...o.layoutOptions,"elk.layered.layering.layerConstraint":"FIRST"}}}function VIr(e,r){let i=Cnt(r);return WIr(i),T6r(e,i),{algorithm:i.algorithm}}async function HIr(e,r){let i=Cnt(r),a=qIr(e,i),o=new OIr.default;i.log.info("Drawing flowchart using v4 renderer",o);let l=await a6r(o,a.elkGraph,i.log);return s6r(e,l,a,i.log),jIr(e.nodes),l}function qIr(e,r){let i={},a=KIr(e,r.algorithm,r.rootLayoutOptions),o=e.direction??"DOWN";a.layoutOptions["elk.direction"]=Tnt(o);let l=XIr(e.nodes,r.log);if(Ant(e.nodes,a,i,r),e6r(e,a,i,r),n6r(e,i,l,r),i6r(a,i,l,r.log),e.config.elk?.orientFeedbackEdges!==!1)YIr(a,l);return zIr(e,i),{elkGraph:a,nodeDb:i,parentLookupDb:l}}function YIr(e,r){let i=NIr(e.edges.map((a)=>({source:a.sources[0],target:a.targets[0]})),r);e.edges.forEach((a,o)=>{if(i[o])[a.sources,a.targets]=[a.targets,a.sources],a.layoutReversed=!0})}function WIr(e){NR(e.getConfig())}function jIr(e){let r=new Map(e.map((i)=>[i.id,i]));e.sort((i,a)=>{if(i.isGroup!==a.isGroup)return i.isGroup?-1:1;if(i.isGroup&&a.isGroup)return cnt(i,r)-cnt(a,r);return 0})}function cnt(e,r){let i=0,a=new Set,o=e.parentId;while(o&&!a.has(o)){a.add(o);let l=r.get(o);if(!l?.isGroup)break;i++,o=l.parentId}return i}function Cnt(e){let r=e.helpers;if(!r)throw Error("ELK layout requires Mermaid internal helpers");return{algorithm:e.preparedLayout?.algorithm??e.options?.algorithm,rootLayoutOptions:e.options?.rootLayoutOptions,common:r.common,getConfig:r.getConfig,interpolateToCurve:r.interpolateToCurve,log:r.log}}function knt(e){return e!==void 0&&Object.hasOwn(snt,e)?snt[e]:snt.default}function KIr(e,r,i){let a=knt(e.config.elk?.preset),o={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","elk.algorithm":r,"elk.layered.nodePlacement.strategy":e.config.elk?.nodePlacementStrategy??a.placement,"elk.layered.nodePlacement.bk.fixedAlignment":e.config.elk?.nodePlacementAlignment??a.alignment,"elk.layered.mergeEdges":e.config.elk?.mergeEdges,"elk.direction":"DOWN","spacing.baseValue":40,"elk.layered.crossingMinimization.forceNodeModelOrder":e.config.elk?.forceNodeModelOrder,"elk.layered.considerModelOrder.strategy":e.config.elk?.considerModelOrder,"elk.layered.unnecessaryBendpoints":!0,"elk.layered.cycleBreaking.strategy":e.config.elk?.cycleBreakingStrategy??a.cycleBreaking,"elk.layered.layering.strategy":e.config.elk?.layeringStrategy??a.layering,"elk.layered.layering.coffmanGraham.layerBound":e.config.elk?.layeringLayerBound,"elk.layered.wrapping.multiEdge.improveCuts":!0,"elk.layered.wrapping.multiEdge.improveWrappedEdges":!0,"elk.layered.edgeRouting.selfLoopDistribution":"EQUALLY","elk.layered.mergeHierarchyEdges":!0,"elk.spacing.portsSurrounding":PIr},children:[],edges:[]};if(r==="elk.rectpacking")Object.assign(o.layoutOptions,wnt,{"elk.contentAlignment":"H_CENTER V_TOP","elk.padding":"[top=15,left=15,bottom=15,right=15]"});if(i)Object.assign(o.layoutOptions,i);return Object.assign(o.layoutOptions,lni,cni,uni),o}function XIr(e,r){let i={parentById:{},childrenById:{}},a=e.filter((o)=>o.isGroup);return r.info("Subgraphs - ",a),a.forEach((o)=>{e.filter((h)=>h.parentId===o.id).forEach((h)=>{i.parentById[h.id]=o.id,i.childrenById[o.id]??=[],i.childrenById[o.id].push(h.id)})}),i}function Ant(e,r,i,a,o){let l=e.filter((h)=>h?.parentId===o);return a.log.info("addVertices APA12",l,o),l.forEach((h)=>{QIr(r,e,h,i,a)}),r}function QIr(e,r,i,a,o){let l=ZIr(i);if(e.children.push(l),a[i.id]=l,i.isGroup)l.children=[],Ant(r,l,a,o,i.id),l.labelData=JIr(i,o.getConfig())}function ZIr(e){let r={...e};if(delete r.domId,e.isGroup)r.children=[];else if(r.width=e.width??0,r.height=e.height??0,e.spreadPorts)r.layoutOptions={...r.layoutOptions,"elk.portAlignment.default":"CENTER"};return r}function JIr(e,r){let i=e.labelData;if(i)return i;if(e.labelBBox)return{width:e.labelBBox.width,height:Math.max(0,e.labelBBox.height-2),wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth};return{width:0,height:0,wrappingWidth:e.wrappingWidth??r.flowchart?.wrappingWidth}}function e6r(e,r,i,a){a.log.info("abc78 DAGA edges = ",e);let o={};return e.edges.forEach((l)=>{let h=l.id;o[h]=(o[h]??-1)+1;let d=h;l.id=d,a.log.info("abc78 new link id to be used is",h,d,o[h]);let{source:p,target:m,sourceId:y,targetId:v}=r6r(l,i);a.log.debug("abc78 source and target",p,m),r.edges.push({...l,sources:[p],targets:[m],sourceId:y,targetId:v,labels:[{width:l.width??0,height:l.height??0,orgWidth:l.width??0,orgHeight:l.height??0,text:l.label??"",layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}},...(a.rootLayoutOptions?.["elk.algorithm"]??a.algorithm??"elk.layered")==="elk.layered"?t6r(l):[]]})}),r}function t6r(e){let r={startLeft:e.startLabelLeft,startRight:e.startLabelRight,endLeft:e.endLabelLeft,endRight:e.endLabelRight};return Object.entries(e.terminalLabelSizes??{}).map(([i,a])=>{let o=i.startsWith("start"),l=o?e.arrowTypeStart:e.arrowTypeEnd,h=l&&l!=="none"?wni:0;return{terminal:i,text:r[i],width:a.width+2*h,height:a.height+2*h,layoutOptions:{"edgeLabels.placement":o?"TAIL":"HEAD"}}})}function r6r(e,r){let{start:i,end:a}=e,o=i,l=a,h=i?r[i]:void 0,d=a?r[a]:void 0;if(!h||!d)return{source:o,target:l};return{source:o,target:l,sourceId:i,targetId:a}}function n6r(e,r,i,a){e.nodes.forEach((o)=>{let l=r[o.id];if(!l||i.childrenById[l.id]===void 0)return;l.labels=[{text:l.label,width:l?.labelData?.width??50,height:l?.labelData?.height??50}],a.log.debug("UIO node label",l?.labelData?.width,l.padding),l.layoutOptions=UIr(l,e.config.elk,a.algorithm,a.log),delete l.x,delete l.y,delete l.width,delete l.height})}function i6r(e,r,i,a){a.debug("APA01 processing edges, count:",e.edges.length),e.edges.forEach((o,l)=>{a.debug("APA01 processing edge",l,":",o);let h=o.sources[0],d=o.targets[0];if(a.debug("APA01 source:",h,"target:",d),a.debug("APA01 nodeDb[source]:",r[h]),a.debug("APA01 nodeDb[target]:",r[d]),r[h]&&r[d]&&r[h].parentId!==r[d].parentId){let p=Ent(h,d,i);LSe(r,h,p,a),LSe(r,d,p,a)}})}function LSe(e,r,i,a){let o=e[r];if(!o)return;if(o.layoutOptions??={},o.layoutOptions["elk.hierarchyHandling"]==="SEPARATE_CHILDREN"&&Snt(o.metadata?.algorithm))a.debug("Dropping explicit algorithm for node",o.id,"due to cross-boundary edges"),$Ir(o.layoutOptions),Object.assign(o.layoutOptions,xnt(o));if(o.layoutOptions["elk.hierarchyHandling"]="INCLUDE_CHILDREN",o.id!==i&&o.parentId)LSe(e,o.parentId,i,a)}async function a6r(e,r,i){let a=globalThis.__mermaidProfiler;try{a?.begin("layoutCore");let o;try{o=await e.layout(r)}finally{a?.end()}return i.debug("APA01 after - success"),i.debug("APA01 layout result:",o),o}catch(o){throw i.error("ELK layout error:",o),o}}function s6r(e,r,i,a){let o=new Map(e.nodes.map((l)=>[l.id,l]));Ont(r.children??[],i,o,0,0,0,a),Int(r.children??[],i,o,r),d6r(e,r,i,a)}function Rnt(e,r=new Set){for(let i of e.children??[])r.add(i.id),Rnt(i,r);return r}function o6r(e,r,i,a){let o=[];for(let l of e.edges??[]){let h=l.sources?.[0]??l.start,d=l.targets?.[0]??l.end,p=r.has(h)&&r.has(d),m=h===a,y=d===a;if(!p&&!m&&!y)continue;let v=DSe(h,d,i.parentLookupDb,i.nodeDb);for(let w of l.sections??[]){let T=p?[w.startPoint,...w.bendPoints??[],w.endPoint]:[m?w.startPoint:null,y?w.endPoint:null];for(let x of T)if(x)o.push({x:x.x+v.x,y:x.y+v.y})}}return o}function Int(e,r,i,a={}){for(let o of e){if(!o?.isGroup)continue;let l=o.children??[];Int(l,r,i,a);let h=r.nodeDb[o.id],d=l.map((D)=>r.nodeDb[D.id]).filter((D)=>D?.offset&&D.width&&D.height);if(!h?.offset||d.length===0)continue;let p=o6r(a,Rnt(o),r,o.id),m=[...d.map((D)=>D.offset.posX),...d.map((D)=>D.offset.posX+D.width),...p.map((D)=>D.x)],y=[...d.map((D)=>D.offset.posY),...d.map((D)=>D.offset.posY+D.height),...p.map((D)=>D.y)],v=h.offset,w=Math.max(v.posX,Math.min(...m)-pB),T=Math.min(v.posX+h.width,Math.max(...m)+pB),x=Math.min(v.posY+h.height,Math.max(...y)+pB),k=v.posY,A=PSe(o),R=w,N=T-w;if(N{if(!d)return;let p=r.nodeDb[d.id]??d,m=Math.max(d.width,d.labels?d.labels[0]?.width||0:0),y={posX:d.x+a,posY:d.y+o,x:a,y:o,depth:l,width:m,height:d.height};p.offset=y,p.x=y.posX+d.width/2,p.y=y.posY+d.height/2,p.width=d.width,p.height=d.height;let v=i.get(d.id);if(v){v.x=p.x,v.y=p.y,v.width=d.isGroup?Math.max(d.width,d.labelData?.width??0):d.width,v.height=d.height;let w=v;w.labelData=d.labelData,w.labels=d.labels}if(d.isGroup)h.debug("Id abc88 subgraph = ",d.id,d.x,d.y,d.labelData),Ont(d.children??[],r,i,y.posX,y.posY,l+1,h);else h.info("Id NODE = ",d.id,d.x,d.y,a,o,`translate(${p.x}, ${p.y})`)})}function Lie(e,r){let i=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);if(i>Nie&&a<=Nie)return"h";if(a>Nie&&i<=Nie)return"v";return}function l6r(e){let r=[],i=e,a=unt(i);if(a)i=a.points,r.push(a.run);let o=[...i].reverse(),l=unt(o);if(l)i=l.points.reverse(),r.push(l.run);return{points:i,runs:r}}function unt(e){if(e.length<5)return null;let[r,i,a,o]=e,l=Lie(r,i);if(!l||Lie(a,o)!==l||Lie(i,a)!==(l==="h"?"v":"h"))return null;if(Math.hypot(i.x-r.x,i.y-r.y)>Tni)return null;let h=l==="h"?Math.abs(a.y-i.y):Math.abs(a.x-i.x);if(hSni)return null;if(!(l==="h"?Math.sign(i.x-r.x)===Math.sign(o.x-a.x):Math.sign(i.y-r.y)===Math.sign(o.y-a.y)))return null;let p=3;while(p+1(y.x-m.x)*(v.y-m.y)-(y.y-m.y)*(v.x-m.x),"side"),l=o(i,a,e),h=o(i,a,r),d=o(e,r,i),p=o(e,r,a);return(l>0&&h<0||l<0&&h>0)&&(d>0&&p<0||d<0&&p>0)}function hnt(e,r){let i=0;for(let a=0;al.points??[]),i=e.map((l)=>l.x==null||l.y==null||!l.label||!l.width||!l.height?void 0:{centre:{x:l.x,y:l.y},size:{width:l.width,height:l.height}}),a=I((l,h)=>{let d=h&&gB(h.centre,h.size);return!!d&&l.some((p,m)=>mT||A>k)continue;h.points=p,r[l]=p,i[l]=w,o.push({edge:h,runs:m})}return o}function d6r(e,r,i,a){let o=new Map(e.edges.map((m)=>[m.id,m])),l=e.config.elk?.straightenEdges!==!1,h=new Map;for(let m of e.edges)delete m.terminalLabelCenters;let d=new Map(e.nodes.map((m)=>[m.id,m])),p=new Set;if(r.edges?.forEach((m)=>{if(!m.sections?.length)return;let y=i.nodeDb[m.sources?.[0]??m.start],v=i.nodeDb[m.targets?.[0]??m.end];if(!y||!v)return;let w=m.start??m.sourceId??m.sources?.[0],T=m.end??m.targetId??m.targets?.[0],x=DSe(w,T,i.parentLookupDb,i.nodeDb),k=m.sections[0];if(y.shape!=="rect33")fnt(y,{x:k.startPoint.x+x.x,y:k.startPoint.y+x.y},d,p);if(v.shape!=="rect33")fnt(v,{x:k.endPoint.x+x.x,y:k.endPoint.y+x.y},d,p)}),r.edges?.forEach((m)=>{let y=o.get(m.id);if(!y)return;let v=m.layoutReversed===!0,w=m.sources?.[0]??m.start,T=m.targets?.[0]??m.end;if(v)[w,T]=[T,w];let x=i.nodeDb[w],k=i.nodeDb[T];if(!x||!k)return;if(!m.sections?.length){let H=I((J)=>({x:(J.offset?.posX??J.x??0)+(J.width??0)/2,y:(J.offset?.posY??J.y??0)+(J.height??0)/2}),"centre"),W=H(x),X=H(k);x.x=W.x,x.y=W.y,k.x=X.x,k.y=X.y;let Q=pnt([W,X],x,k,a);y.points=Q,y.curve="linear";let Y=Q[0],K=Q[Q.length-1];y.x=(Y.x+K.x)/2,y.y=(Y.y+K.y)/2,a.debug("APA18 no edge sections, using a straight line",m.id,y.points);return}let A=m.start??m.sourceId??w,R=m.end??m.targetId??T,N=DSe(A,R,i.parentLookupDb,i.nodeDb);a.debug("APA18 offset",N,A," ==> ",R,"edge:",m,x);let L=m.sections[0],B=b6r(L,N);if(v)B.reverse();let D={start:B[0],end:B[B.length-1]};if(x.x=x.offset.posX+x.width/2,x.y=x.offset.posY+x.height/2,k.x=k.offset.posX+k.width/2,k.y=k.offset.posY+k.height/2,x.shape!=="rect33")B.unshift({x:x.x,y:x.y});if(k.shape!=="rect33")B.push({x:k.x,y:k.y});let P=pnt(B,x,k,a);y.points=w6r(S6r(P,jL(k),_6r(y),a),jL(x),E6r(y),a),y.curve="rounded";let F=m.labels?.[0];if(F)y.x=F.x+N.x+F.width/2,y.y=F.y+N.y+F.height/2;for(let H of m.labels??[]){if(!H.terminal||!H.x&&!H.y)continue;y.terminalLabelCenters??={},y.terminalLabelCenters[H.terminal]={x:H.x+N.x+H.width/2,y:H.y+N.y+H.height/2}}if(y.terminalLabelCenters)h.set(y,D)}),l){let m=h6r(e.edges);for(let{edge:y,runs:v}of m){if(y.x==null||y.y==null)continue;let w=Nnt({x:y.x,y:y.y},v);if(w)y.x=w.x,y.y=w.y}}for(let[m,y]of h)m6r(m,y);p6r(e.edges,e.nodes),g6r(e.edges,e.nodes),f6r(e.edges)}function f6r(e){let r=new Map;for(let i of e){if(i.x==null||i.y==null||!i.label||!i.width)continue;let a=[i.start??"",i.end??""].sort().join("\x00"),o=r.get(a);if(o)o.push(i);else r.set(a,[i])}for(let i of r.values()){if(i.length!==2)continue;let[a,o]=i;if(Math.abs(a.y-o.y)>Math.max(a.height??0,o.height??0))continue;let l=a.width/2+o.width/2+xni,h=o.x-a.x,d=l-Math.abs(h);if(d<=0)continue;let p=Math.sign(h)||1;a.x=a.x-p*d/2,o.x=o.x+p*d/2}}function Lnt(e,r){let i=r.filter((m)=>m.x!==void 0&&m.y!==void 0),a=I((m)=>gB({x:m.x,y:m.y},{width:m.width??0,height:m.height??0}),"boxOf"),o=i.filter((m)=>!m.isGroup).map(a),l=i.filter((m)=>m.isGroup).map(a).flatMap(({x1:m,y1:y,x2:v,y2:w})=>[[{x:m,y},{x:v,y}],[{x:v,y},{x:v,y:w}],[{x:v,y:w},{x:m,y:w}],[{x:m,y:w},{x:m,y}]]),h=e.filter((m)=>m.label&&m.width&&m.height&&m.x!==void 0).map((m)=>gB({x:m.x,y:m.y},{width:m.width,height:m.height})),d=I((m,y=0)=>{let v={x1:m.x1-y,y1:m.y1-y,x2:m.x2+y,y2:m.y2+y};return l.some(([w,T])=>MSe(w,T,v))},"hitsFrame");return{hitsFrame:d,blocked:I((m,y,v,w,T=0)=>o.some((x)=>ont(m,x))||h.some((x)=>ont(m,x))||d(m,T)||e.some((x)=>(x.points??[]).some((k,A,R)=>AObject.entries(x.terminalLabelCenters??{}).some(([k,A])=>{let R=x.terminalLabelSizes?.[k];return!(x===y&&k===v)&&R!==void 0&&ont(m,gB(A,R))})),"blocked")}}function*Mnt(e){for(let r of e){let i=r.points;if(!i||i.length<2||!r.terminalLabelCenters||!r.terminalLabelSizes)continue;for(let[a,o]of Object.entries(r.terminalLabelCenters)){let l=r.terminalLabelSizes[a],h=a.startsWith("start"),d=h?0:i.length-2,[p,m]=[i[d],i[d+1]],y=Math.hypot(m.x-p.x,m.y-p.y);if(!l||y===0)continue;yield{edge:r,key:a,center:o,size:l,atStart:h,segment:d,from:p,to:m,length:y}}}}function p6r(e,r){let{hitsFrame:i,blocked:a}=Lnt(e,r);for(let{edge:o,key:l,center:h,size:d,atStart:p,segment:m,from:y,to:v,length:w}of Mnt(e)){if(!i(gB(h,d)))continue;let[T,x]=p?[v,y]:[y,v],k={x:(x.x-T.x)/w,y:(x.y-T.y)/w},A=(Math.abs(k.x)*d.width+Math.abs(k.y)*d.height)/2,R=I((L)=>(L.x-x.x)*k.x+(L.y-x.y)*k.y,"along"),N=I((L)=>R(L)+A<=0&&R(L)-A>=-w,"onSegment");for(let L=1;L<=w;L++){let B=[L,-L].map((D)=>({x:h.x+D*k.x,y:h.y+D*k.y})).find((D)=>N(D)&&!a(gB(D,d),o,l,m,Cni));if(B){o.terminalLabelCenters[l]=B;break}}}}function g6r(e,r){let{blocked:i}=Lnt(e,r);for(let{edge:a,key:o,center:l,size:h,segment:d,from:p,to:m,length:y}of Mnt(e)){let v={x:-(m.y-p.y)/y,y:(m.x-p.x)/y},w=(l.x-p.x)*v.x+(l.y-p.y)*v.y;if(w===0||w>0===o.endsWith("Right"))continue;let T={x:l.x-2*w*v.x,y:l.y-2*w*v.y};if(!i(gB(T,h),a,o,d))a.terminalLabelCenters[o]=T}}function m6r(e,r){let i=e.points;if(!i?.length||!e.terminalLabelCenters)return;let a={start:{x:i[0].x-r.start.x,y:i[0].y-r.start.y},end:{x:i[i.length-1].x-r.end.x,y:i[i.length-1].y-r.end.y}};for(let[o,l]of Object.entries(e.terminalLabelCenters)){let h=o.startsWith("start")?a.start:a.end;e.terminalLabelCenters[o]={x:l.x+h.x,y:l.y+h.y}}}function fnt(e,r,i,a){let o=e.width??0,l=e.height??0,h=e.offset.posY,d=h+l,p=0.5,m=Math.abs(r.y-h)<=0.5||Math.abs(r.y-d)<=0.5;if((m?o:l)>=2*Oie)return;if(a.has(e.id))return;a.add(e.id);let y=m?r.x-(e.offset.posX+o/2):r.y-(e.offset.posY+l/2);if(Math.abs(y)<0.01)return;if(m)e.offset.posX+=y,e.x=e.offset.posX+o/2;else e.offset.posY+=y,e.y=e.offset.posY+l/2;let v=i.get(e.id);if(v)v.x=e.offset.posX+o/2,v.y=e.offset.posY+l/2}function b6r(e,r){let{startPoint:i,endPoint:a}=e,l=(e.bendPoints?e.bendPoints:[]).map((h)=>({x:h.x+r.x,y:h.y+r.y}));return[{x:i.x+r.x,y:i.y+r.y},...l,{x:a.x+r.x,y:a.y+r.y}]}function DSe(e,r,i,a){let o=Ent(e,r,i);if(o===void 0||o==="root")return{x:0,y:0};let l=a[o],h=l?.elkOrigin??l?.offset;return{x:h?.posX??0,y:h?.posY??0}}function pnt(e,r,i,a){let o=Array.isArray(e)?[...e]:[],l=jL(i);a.debug("PPP cutter2: Points before cutter2:",JSON.stringify(e),"endBounds:",l,Mie(l,e[e.length-1]));let h;{let d=jL(r),p=jL(i),m=!!r?.isGroup,y=!!i?.isGroup,{candidate:v,centerApprox:w}=bnt(o,r,"start"),{candidate:T,centerApprox:x}=bnt(o,i,"end"),k=m&&Mie(d,v),A=y&&Mie(p,T);if(ynt(o,"start",k&&w),ynt(o,"end",A&&x),m&&!k)k=vnt(o,d,"start");if(y&&!A)A=vnt(o,p,"end");if(k||A){if(!k)I6r(o,r,d,a);if(!A)O6r(o,i,p,a);a.debug("PPP cutter2: skipping cutter2 due to on-border group endpoint(s)",{skipStart:k,skipEnd:A,startCenterApprox:w,endCenterApprox:x,startCandidate:v,endCandidate:T}),h=o}else h=N6r(r,i,o,a)}if(a.debug("PPP cutter2: Points after cutter2:",JSON.stringify(h)),!Array.isArray(h)||h.length<2||y6r(h)){a.warn("POI cutter2: Invalid points from cutter2, falling back to prevPoints",h);let d=o.filter((p)=>Number.isFinite(p?.x)&&Number.isFinite(p?.y));h=d.length>=2?d:o}return a.debug("UIO cutter2: Points after cutter2 (sanitized):",h),v6r(h,a)}function y6r(e){return e?.some((r)=>!Number.isFinite(r?.x)||!Number.isFinite(r?.y))}function v6r(e,r){let i=e.filter((a,o,l)=>{if(o===0)return!0;let h=l[o-1];return Math.abs(a.x-h.x)>0.000001||Math.abs(a.y-h.y)>0.000001});if(i.length!==e.length)r.debug("UIO cutter2: removed consecutive duplicate points",{before:e,after:i});return i}function _6r(e){return DIr(e.arrowTypeEnd)}function E6r(e){return DIr(e.arrowTypeStart)}function w6r(e,r,i,a){if(i<=0||e.length<3)return e;let o=e[0],l=e[1],h=Math.hypot(l.x-o.x,l.y-o.y);if(h>=Math.max(MIr,i*2))return e;if(!Mie(r,l,1))return e;let d=[o,...e.slice(2)];return a.debug("UIO cutter2: removed short start marker segment",{before:e,after:d,markerOffset:i,segmentLength:h}),d}function S6r(e,r,i,a){if(i<=0||e.length<3)return e;let o=e[e.length-1],l=e[e.length-2],h=Math.hypot(o.x-l.x,o.y-l.y);if(h>=Math.max(MIr,i*2))return e;if(!Mie(r,l,1))return e;let d=[...e.slice(0,-2),o];return a.debug("UIO cutter2: removed short end marker segment",{before:e,after:d,markerOffset:i,segmentLength:h}),d}function T6r(e,r){let i=e.edges.defaultInterpolate,a=e.edges.defaultStyle,o=r.getConfig();e.edges.forEach((l)=>{let h=A6r(l,{defaultStyle:a,defaultInterpolate:i,confCurve:o.curve},r);Object.assign(l,h)})}function x6r(e){if(e.classes!==void 0)return e.classes;if(e.start&&e.end)return`flowchart-link LS_${e.start} LE_${e.end}`;return}function C6r(e,r,i){let a="normal",o="solid",l=[],h=[];if(e==="dotted")o="dotted",l=["fill:none","stroke-width:2px","stroke-dasharray:3"];else if(e==="thick")a="thick",l=["stroke-width: 3.5px","fill:none"];else if(l=r??["fill:none"],i!==void 0)h=i;return{thickness:a,pattern:o,style:l,labelStyle:h}}function k6r(e,r,i){if(e!==void 0)return e;if(r!==void 0)return r;return i}function A6r(e,r,i){let a={};a.minlen=e.minlen??e.length??1,a.text=e.text??e.label,a.arrowhead=e.arrowhead??(e.type==="arrow_open"?"none":"normal");let o=RIr[e.type??"arrow_open"]??RIr.arrow_open;a.arrowTypeStart=e.arrowTypeStart??o[0],a.arrowTypeEnd=e.arrowTypeEnd??o[1],a.startLabelRight=e.startLabelRight,a.endLabelLeft=e.endLabelLeft;let l=C6r(e.stroke,r.defaultStyle,r.defaultLabelStyle);a.thickness=e.thickness??l.thickness,a.pattern=e.pattern??l.pattern,a.style=e.style??l.style,a.labelStyle=e.labelStyle??l.labelStyle,a.classes=x6r(e),a.curve=i.interpolateToCurve(k6r(e.curve??e.interpolate,r.defaultInterpolate,r.confCurve),WS);let h=(a.text??"")!=="";if(e.arrowheadStyle!==void 0)a.arrowheadStyle=e.arrowheadStyle;else if(h||e.style!==void 0)a.arrowheadStyle="fill: #333";return a.labelpos=e.labelpos??(h?"c":void 0),a.labelType=e.labelType,a.label=(e.label??a.text??"").replace(i.common.lineBreakRegex,` +`),a}function R6r(e){return Math.max(e.width??0,PSe(e))}function jL(e){let r=e?.isGroup?R6r(e):e.width;return{x:e.offset.posX+e.width/2,y:e.offset.posY+e.height/2,width:r??0,height:e.height??0,padding:e.padding}}function gnt(e,r,i=0.000001){return Math.abs(e-r)1?e[1]:a,centerApprox:o}}else{let a=e[e.length-1],o=mnt(a,r);return{candidate:o&&e.length>1?e[e.length-2]:a,centerApprox:o}}}function ynt(e,r,i){if(!i)return;if(r==="start"){if(e.length>0)e.shift()}else if(e.length>0)e.pop()}function vnt(e,r,i){let a=i==="start"?1:-1,o=i==="start"?0:e.length-1,l=o;while(o>=0&&o=e.length)return!1;let h=e[o],d=e[o-a],p=h.x-d.x,m=h.y-d.y,y=p===0?1/0:(r.x+Math.sign(p)*r.width/2-d.x)/p,v=m===0?1/0:(r.y+Math.sign(m)*r.height/2-d.y)/m,w=Math.min(y,v),T={x:d.x+w*p,y:d.y+w*m};if(i==="start")e.splice(0,o,T);else e.splice(o+1,e.length-o-1,T);return!0}function I6r(e,r,i,a){let o=-1;for(let[l,h]of e.entries())if(Pie(i,h)){o=l;break}if(o!==-1){let l=e[o],h=e[0],d=OSe(r,i,l,h);NSe(e,"start",d),a.debug("UIO cutter2: start-only intersection applied",{startIntersection:d})}}function O6r(e,r,i,a){let o=-1;for(let l=e.length-1;l>=0;l--)if(Pie(i,e[l])){o=l;break}if(o!==-1){let l=e[o],h=e[e.length-1],d=OSe(r,i,l,h);NSe(e,"end",d),a.debug("UIO cutter2: end-only intersection applied",{endIntersection:d})}}function _nt(e,r,i,a,o){if(e?.isGroup)return null;let l=i[a],h=i[a+o];if(!l||!h)return null;return vni(e,r,l,h)}function N6r(e,r,i,a){let o=jL(e),l=jL(r);if(i.length===0)return[];let h=[...i],d=h[0],p=h[h.length-1];a.debug("PPP cutter2: bounds",{startBounds:o,endBounds:l}),a.debug("PPP cutter2: original points",i);let m=-1;for(let[w,T]of h.entries())if(m===-1&&Pie(o,T))m=w;if(m!==-1){let w=h[m],T=_nt(e,o,h,m,1)??OSe(e,o,w,d);a.debug("UIO cutter2: start intersection",T),NSe(h,"start",T)}let y=null,v=-1;for(let w=h.length-1;w>=0;w--)if(Pie(l,h[w])){y=h[w],v=w;break}if(!y&&h.length>1)y=h[h.length-2],v=h.length-2;if(y){let w=_nt(r,l,h,v,-1)??OSe(r,l,y,p);a.debug("UIO cutter2: end intersection",{endIntersection:w,outsideIndexForEnd:v}),NSe(h,"end",w)}if(h.length>1){let w=h[h.length-1],T=h[h.length-2],x=Math.sqrt((w.x-T.x)**2+(w.y-T.y)**2);if(x<2)a.debug("UIO cutter2: trimming tail point (too close)",{distance:x,lastPoint:w,secondLastPoint:T}),h.pop()}return a.debug("UIO cutter2: final points",h),h}var OIr,Ent,sni="root",oni=6,lni,cni,uni,hni,Die=1,dni=10,Mie,fni,Pie,pni,gni,mni,bni,yni=20,AIr=0.000001,ant,vni,OSe,NSe,MIr=8,DIr,RIr,Oie=12,PIr,pB=24,BIr=24,FIr=50,Rie=15,Iie=10,wnt,_ni,IIr,Eni,snt,wni=6,Sni=16,Tni=30,Nie=0.01,gB,xni=4,ont,Cni=2;var M6r=Re(()=>{ert();ISe();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();OIr=sv(kIr(),1),Ent=I((e,r,{parentById:i})=>{let a=new Set,o=e;if(e===r)return i[e]||"root";while(o){if(a.add(o),o===r)return o;o=i[o]}o=r;while(o){if(a.has(o))return o;o=i[o]}return"root"},"findCommonAncestor");I(lnt,"childOnPath");I(NIr,"findSubgraphFeedbackEdges");I(LIr,"applyElkLineJumps");lni={},cni={},uni={},hni={},Mie=I((e,r,i=0.5)=>{let a=e.width/2,o=e.height/2,l=e.x-a,h=e.x+a,d=e.y-o,p=e.y+o,m=Math.abs(r.x-l)<=i&&r.y>=d-i&&r.y<=p+i,y=Math.abs(r.x-h)<=i&&r.y>=d-i&&r.y<=p+i,v=Math.abs(r.y-d)<=i&&r.x>=l-i&&r.x<=h+i,w=Math.abs(r.y-p)<=i&&r.x>=l-i&&r.x<=h+i;return m||y||v||w},"onBorder"),fni=I((e,r,i)=>{let{x:a,y:o}=e,l=Math.abs(a-i.x),h=e.width/2,d=i.xMath.abs(a-r.x)*p){let v=i.y{let{x:i,y:a}=e,o=Math.abs(r.x-i),l=Math.abs(r.y-a),h=e.width/2,d=e.height/2;return o>=h||l>=d},"outsideNode"),pni=I((e,r,i=dni)=>{let a=Math.abs(r.x-e.x),o=Math.abs(r.y-e.y),l=e.width/2,h=e.height/2;if(Math.abs(a-l)0)return{x:e.x+d/m*(m+i),y:e.y+p/m*(m+i)}}return r},"ensureTrulyOutside"),gni=I((e,r,i)=>{let a=Math.abs(r.x-e.x){if(!e?.intersect)return null;let a=e.intersect(i);if(!a)return null;if(i.xr.x||i.x>r.x&&a.x{let a=gni(e,r,i);return fni(e,r,a)},"fallbackIntersection"),ant=I((e,r,i)=>{let a=e.intersect?.(i);if(!a)return!1;let o=Math.hypot(i.x-r.x,i.y-r.y),l=Math.hypot(a.x-r.x,a.y-r.y);return o<=l+0.000000001},"insideOutline"),vni=I((e,r,i,a)=>{if(!e?.intersect)return null;let o=a.x-i.x,l=a.y-i.y;if(o===0&&l===0)return null;if(Math.abs(o)>AIr&&Math.abs(l)>AIr)return null;let h={x:r.x,y:r.y},d=Math.abs(o)>Math.abs(l),p=I((v)=>d?{x:v,y:i.y}:{x:i.x,y:v},"along"),m=d?h.x:h.y,y=d?i.x:i.y;if(!ant(e,h,p(m)))return null;if(ant(e,h,p(y)))return{...i};for(let v=0;v{let o=pni(r,i);return mni(e,r,o)??bni(r,o,a)},"computeNodeIntersection"),NSe=I((e,r,i,a=0.1)=>{if(!i||e.length===0)return;if(r==="start")if(e.length>0&&Math.abs(e[0].x-i.x)0&&Math.abs(e[o].x-i.x){if(typeof e!=="string")return 0;return Math.max(O0[e]??0,gwe[e]??0)},"markerPathOffset"),RIr={arrow_open:["none","none"],arrow_cross:["none","arrow_cross"],double_arrow_cross:["arrow_cross","arrow_cross"],arrow_point:["none","arrow_point"],double_arrow_point:["arrow_point","arrow_point"],arrow_circle:["none","arrow_circle"],double_arrow_circle:["arrow_circle","arrow_circle"]},PIr=`[top=${Oie},left=${Oie},bottom=${Oie},right=${Oie}]`,wnt={"spacing.baseValue":15,"spacing.nodeNode":15,"elk.aspectRatio":"1.6","elk.expandNodes":"true","elk.rectpacking.trybox":"true","elk.rectpacking.packing.compaction.rowHeightReevaluation":"true","elk.rectpacking.packing.compaction.iterations":10,"elk.rectpacking.whiteSpaceElimination.strategy":"EQUAL_BETWEEN_STRUCTURES","elk.rectpacking.widthApproximation.strategy":"SCANLINE"},_ni=["nodeSize.constraints","nodeSize.minimum","elk.algorithm","elk.aspectRatio","elk.contentAlignment","elk.expandNodes","elk.padding",...Object.keys(wnt)];I($Ir,"clearContainerAlgorithmOptions");IIr=new Set(["elk.layered","elk.box","elk.rectpacking","elk.stress","elk.force","elk.mrtree","elk.radial","elk.sporeOverlap"]);I(Snt,"resolveContainerAlgorithm");I(Tnt,"dir2ElkDirection");I(PSe,"groupTitleWidth");I(xnt,"groupTitleSizeOptions");I(UIr,"buildSubgraphLayoutOptions");I(GIr,"findCyclicEntryNodes");I(zIr,"applyCyclicEntryConstraint");I(VIr,"prepareLayoutForElk");I(HIr,"runElkLayoutCore");I(qIr,"buildElkGraphFromLayoutData");I(YIr,"reverseSubgraphFeedbackEdges");Eni=fB({afterPaint:LIr,prepareLayout:VIr,measureLayout:I((e,r)=>RSe(e,r,{unwrapGroupLabels:!0}),"measureLayout"),runLayoutCore:HIr,paintOptions:{skipIntersect:!0}});I(WIr,"syncHostConfig");I(jIr,"orderNodesForElkPaint");I(cnt,"getGroupDepth");I(Cnt,"getElkLayoutContext");snt={default:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"BALANCED",cycleBreaking:"DEPTH_FIRST"},legacy:{layering:"NETWORK_SIMPLEX",placement:"BRANDES_KOEPF",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY"},modelOrder:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"GREEDY_MODEL_ORDER"},depthFirst:{layering:"NETWORK_SIMPLEX",placement:"NETWORK_SIMPLEX",containerPlacement:"BRANDES_KOEPF",alignment:"NONE",cycleBreaking:"DEPTH_FIRST"}};I(knt,"resolveElkPreset");I(KIr,"createRootElkGraph");I(XIr,"addSubGraphs");I(Ant,"addVertices");I(QIr,"addVertex");I(ZIr,"createElkNode");I(JIr,"getMeasuredLabelData");I(e6r,"addEdgesToElkGraph");I(t6r,"terminalElkLabels");I(r6r,"getEdgeStartEndPoint");I(n6r,"configureSubgraphNodes");I(i6r,"configureCrossHierarchyEdges");I(LSe,"setIncludeChildrenPolicy");I(a6r,"runElkLayout");I(s6r,"applyElkLayoutResult");I(Rnt,"collectDescendantIds");I(o6r,"internalEdgePoints");I(Int,"evenGroupFrames");I(Ont,"applyElkNodePositions");I(Lie,"axisOf");I(l6r,"straightenTerminalJogsWithRuns");I(unt,"straightenFront");I(c6r,"segmentsCrossStrict");I(hnt,"crossingCount");I(u6r,"paramOnSegment");I(dnt,"pointAtParam");I(Nnt,"projectLabelOntoStraightenedRun");I(MSe,"segmentHitsBox");gB=I((e,r)=>({x1:e.x-r.width/2,y1:e.y-r.height/2,x2:e.x+r.width/2,y2:e.y+r.height/2}),"labelBox");I(h6r,"straightenEdgeTerminals");I(d6r,"applyElkEdgeLayout");I(f6r,"separateOppositeEdgeLabels");ont=I((e,r)=>e.x1{};function B6r(e,r){if(e.nodeCount()<=1)return[];var i=Ini(e,r||Ani),a=Rni(i.graph,i.buckets,i.zeroIdx);return eT(Eh(a,function(o){return e.outEdges(o.v,o.w)}))}function Rni(e,r,i){var a=[],o=r[r.length-1],l=r[0],h;while(e.nodeCount()){while(h=l.dequeue())Pnt(e,r,i,h);while(h=o.dequeue())Pnt(e,r,i,h);if(e.nodeCount()){for(var d=r.length-2;d>0;--d)if(h=r[d].dequeue(),h){a=a.concat(Pnt(e,r,i,h,!0));break}}}return a}function Pnt(e,r,i,a,o){var l=o?[]:void 0;return Sn(e.inEdges(a.v),function(h){var d=e.edge(h),p=e.node(h.v);if(o)l.push({v:h.v,w:h.w});p.out-=d,Bnt(r,i,p)}),Sn(e.outEdges(a.v),function(h){var d=e.edge(h),p=h.w,m=e.node(p);m.in-=d,Bnt(r,i,m)}),e.removeNode(a.v),l}function Ini(e,r){var i=new Yh,a=0,o=0;Sn(e.nodes(),function(d){i.setNode(d,{v:d,in:0,out:0})}),Sn(e.edges(),function(d){var p=i.edge(d.v,d.w)||0,m=r(d),y=p+m;i.setEdge(d.v,d.w,y),o=Math.max(o,i.node(d.v).out+=m),a=Math.max(a,i.node(d.w).in+=m)});var l=tT(o+a+3).map(function(){return new Dnt}),h=a+1;return Sn(i.nodes(),function(d){Bnt(l,h,i.node(d))}),{graph:i,buckets:l,zeroIdx:h}}function Bnt(e,r,i){if(!i.out)e[0].enqueue(i);else if(!i.in)e[e.length-1].enqueue(i);else e[i.out-i.in+r].enqueue(i)}var Ani;var F6r=Re(()=>{wh();rT();P6r();Ani=J_(1)});function $6r(e){var r=e.graph().acyclicer==="greedy"?B6r(e,i(e)):Oni(e);Sn(r,function(a){var o=e.edge(a);e.removeEdge(a),o.forwardName=a.name,o.reversed=!0,e.setEdge(a.w,a.v,o,cB("rev"))});function i(a){return function(o){return a.edge(o).weight}}}function Oni(e){var r=[],i={},a={};function o(l){if(Object.prototype.hasOwnProperty.call(a,l))return;a[l]=!0,i[l]=!0,Sn(e.outEdges(l),function(h){if(Object.prototype.hasOwnProperty.call(i,h.w))r.push(h);else o(h.w)}),delete i[l]}return Sn(e.nodes(),o),r}function U6r(e){Sn(e.edges(),function(r){var i=e.edge(r);if(i.reversed){e.removeEdge(r);var a=i.forwardName;delete i.reversed,delete i.forwardName,e.setEdge(r.w,r.v,i,a)}})}var Fnt=Re(()=>{wh();F6r()});function O3(e,r,i,a){var o;do o=cB(a);while(e.hasNode(o));return i.dummy=r,e.setNode(o,i),o}function z6r(e){var r=new Yh().setGraph(e.graph());return Sn(e.nodes(),function(i){r.setNode(i,e.node(i))}),Sn(e.edges(),function(i){var a=r.edge(i.v,i.w)||{weight:0,minlen:1},o=e.edge(i);r.setEdge(i.v,i.w,{weight:a.weight+o.weight,minlen:Math.max(a.minlen,o.minlen)})}),r}function BSe(e){var r=new Yh({multigraph:e.isMultigraph()}).setGraph(e.graph());return Sn(e.nodes(),function(i){if(!e.children(i).length)r.setNode(i,e.node(i))}),Sn(e.edges(),function(i){r.setEdge(i,e.edge(i))}),r}function $nt(e,r){var{x:i,y:a}=e,o=r.x-i,l=r.y-a,h=e.width/2,d=e.height/2;if(!o&&!l)throw Error("Not possible to find intersection inside of the rectangle");var p,m;if(Math.abs(l)*h>Math.abs(o)*d){if(l<0)d=-d;p=d*o/l,m=d}else{if(o<0)h=-h;p=h,m=h*l/o}return{x:i+p,y:a+m}}function KL(e){var r=Eh(tT(Gnt(e)+1),function(){return[]});return Sn(e.nodes(),function(i){var a=e.node(i),o=a.rank;if(!Gp(o))r[o][a.order]=i}),r}function V6r(e){var r=QR(Eh(e.nodes(),function(i){return e.node(i).rank}));Sn(e.nodes(),function(i){var a=e.node(i);if(Cie(a,"rank"))a.rank-=r})}function H6r(e){var r=QR(Eh(e.nodes(),function(l){return e.node(l).rank})),i=[];Sn(e.nodes(),function(l){var h=e.node(l).rank-r;if(!i[h])i[h]=[];i[h].push(l)});var a=0,o=e.graph().nodeRankFactor;Sn(i,function(l,h){if(Gp(l)&&h%o!==0)--a;else if(a)Sn(l,function(d){e.node(d).rank+=a})})}function Unt(e,r,i,a){var o={width:0,height:0};if(arguments.length>=4)o.rank=i,o.order=a;return O3(e,"border",o,r)}function Gnt(e){return t2(Eh(e.nodes(),function(r){var i=e.node(r).rank;if(!Gp(i))return i}))}function q6r(e,r){var i={lhs:[],rhs:[]};return Sn(e,function(a){if(r(a))i.lhs.push(a);else i.rhs.push(a)}),i}function Y6r(e,r){var i=bSe();try{return r()}finally{console.log(e+" time: "+(bSe()-i)+"ms")}}function W6r(e,r){return r()}var N3=Re(()=>{wh();rT()});function K6r(e){function r(i){var a=e.children(i),o=e.node(i);if(a.length)Sn(a,r);if(Object.prototype.hasOwnProperty.call(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var l=o.minRank,h=o.maxRank+1;l{wh();N3()});function Z6r(e){var r=e.graph().rankdir.toLowerCase();if(r==="lr"||r==="rl")eOr(e)}function J6r(e){var r=e.graph().rankdir.toLowerCase();if(r==="bt"||r==="rl")Nni(e);if(r==="lr"||r==="rl")Lni(e),eOr(e)}function eOr(e){Sn(e.nodes(),function(r){Q6r(e.node(r))}),Sn(e.edges(),function(r){Q6r(e.edge(r))})}function Q6r(e){var r=e.width;e.width=e.height,e.height=r}function Nni(e){Sn(e.nodes(),function(r){znt(e.node(r))}),Sn(e.edges(),function(r){var i=e.edge(r);if(Sn(i.points,znt),Object.prototype.hasOwnProperty.call(i,"y"))znt(i)})}function znt(e){e.y=-e.y}function Lni(e){Sn(e.nodes(),function(r){Vnt(e.node(r))}),Sn(e.edges(),function(r){var i=e.edge(r);if(Sn(i.points,Vnt),Object.prototype.hasOwnProperty.call(i,"x"))Vnt(i)})}function Vnt(e){var r=e.x;e.x=e.y,e.y=r}var tOr=Re(()=>{wh()});function rOr(e){e.graph().dummyChains=[],Sn(e.edges(),function(r){Dni(e,r)})}function Dni(e,r){var i=r.v,a=e.node(i).rank,o=r.w,l=e.node(o).rank,h=r.name,d=e.edge(r),p=d.labelRank;if(l===a+1)return;e.removeEdge(r);var m=void 0,y,v;for(v=0,++a;a{wh();N3()});function Bie(e){var r={};function i(a){var o=e.node(a);if(Object.prototype.hasOwnProperty.call(r,a))return o.rank;r[a]=!0;var l=QR(Eh(e.outEdges(a),function(h){return i(h.w)-e.edge(h).minlen}));if(l===Number.POSITIVE_INFINITY||l===void 0||l===null)l=0;return o.rank=l}Sn(e.sources(),i)}function mB(e,r){return e.node(r.w).rank-e.node(r.v).rank-e.edge(r).minlen}var FSe=Re(()=>{wh()});function $Se(e){var r=new Yh({directed:!1}),i=e.nodes()[0],a=e.nodeCount();r.setNode(i,{});var o,l;while(Pni(r,e){wh();rT();FSe()});var aOr=()=>{};var Ynt=()=>{};var YWa;var Wnt=Re(()=>{wh();Ynt();YWa=J_(1)});var sOr=Re(()=>{Wnt()});var jnt=()=>{};var oOr=Re(()=>{jnt()});var JWa;var lOr=Re(()=>{wh();JWa=J_(1)});function Knt(e){var r={},i={},a=[];function o(l){if(Object.prototype.hasOwnProperty.call(i,l))throw new Fie;if(!Object.prototype.hasOwnProperty.call(r,l))i[l]=!0,r[l]=!0,Sn(e.predecessors(l),o),delete i[l],a.push(l)}if(Sn(e.sinks(),o),Qrt(r)!==e.nodeCount())throw new Fie;return a}function Fie(){}var Xnt=Re(()=>{wh();Knt.CycleException=Fie;Fie.prototype=Error()});var cOr=Re(()=>{Xnt()});function USe(e,r,i){if(!Fl(r))r=[r];var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],l={};return Sn(r,function(h){if(!e.hasNode(h))throw Error("Graph does not have node: "+h);uOr(e,h,i==="post",l,a,o)}),o}function uOr(e,r,i,a,o,l){if(!Object.prototype.hasOwnProperty.call(a,r)){if(a[r]=!0,!i)l.push(r);if(Sn(o(r),function(h){uOr(e,h,i,a,o,l)}),i)l.push(r)}}var Qnt=Re(()=>{wh()});function Znt(e,r){return USe(e,r,"post")}var hOr=Re(()=>{Qnt()});function Jnt(e,r){return USe(e,r,"pre")}var dOr=Re(()=>{Qnt()});var fOr=Re(()=>{Ynt();ent()});var pOr=Re(()=>{aOr();Wnt();sOr();oOr();lOr();cOr();hOr();dOr();fOr();jnt();Xnt()});function QL(e){e=z6r(e),Bie(e);var r=$Se(e);tit(r),eit(r,e);var i,a;while(i=yOr(r))a=vOr(r,e,i),_Or(r,e,i,a)}function eit(e,r){var i=Znt(e,e.nodes());i=i.slice(0,i.length-1),Sn(i,function(a){Vni(e,r,a)})}function Vni(e,r,i){var a=e.node(i),o=a.parent;e.edge(i,o).cutvalue=mOr(e,r,i)}function mOr(e,r,i){var a=e.node(i),o=a.parent,l=!0,h=r.edge(i,o),d=0;if(!h)l=!1,h=r.edge(o,i);return d=h.weight,Sn(r.nodeEdges(i),function(p){var m=p.v===i,y=m?p.w:p.v;if(y!==o){var v=m===l,w=r.edge(p).weight;if(d+=v?w:-w,qni(e,i,y)){var T=e.edge(i,y).cutvalue;d+=v?-T:T}}}),d}function tit(e,r){if(arguments.length<2)r=e.nodes()[0];bOr(e,{},1,r)}function bOr(e,r,i,a,o){var l=i,h=e.node(a);if(r[a]=!0,Sn(e.neighbors(a),function(d){if(!Object.prototype.hasOwnProperty.call(r,d))i=bOr(e,r,i,d,a)}),h.low=l,h.lim=i++,o)h.parent=o;else delete h.parent;return i}function yOr(e){return dq(e.edges(),function(r){return e.edge(r).cutvalue<0})}function vOr(e,r,i){var{v:a,w:o}=i;if(!r.hasEdge(a,o))a=i.w,o=i.v;var l=e.node(a),h=e.node(o),d=l,p=!1;if(l.lim>h.lim)d=h,p=!0;var m=bv(r.edges(),function(y){return p===gOr(e,e.node(y.v),d)&&p!==gOr(e,e.node(y.w),d)});return oB(m,function(y){return mB(r,y)})}function _Or(e,r,i,a){var{v:o,w:l}=i;e.removeEdge(o,l),e.setEdge(a.v,a.w,{}),tit(e),eit(e,r),Hni(e,r)}function Hni(e,r){var i=dq(e.nodes(),function(o){return!r.node(o).parent}),a=Jnt(e,i);a=a.slice(1),Sn(a,function(o){var l=e.node(o).parent,h=r.edge(o,l),d=!1;if(!h)h=r.edge(l,o),d=!0;r.node(o).rank=r.node(l).rank+(d?h.minlen:-h.minlen)})}function qni(e,r,i){return e.hasEdge(r,i)}function gOr(e,r,i){return i.low<=r.lim&&r.lim<=i.lim}var EOr=Re(()=>{wh();pOr();N3();qnt();FSe();QL.initLowLimValues=tit;QL.initCutValues=eit;QL.calcCutValue=mOr;QL.leaveEdge=yOr;QL.enterEdge=vOr;QL.exchangeEdges=_Or});function rit(e){switch(e.graph().ranker){case"network-simplex":wOr(e);break;case"tight-tree":Wni(e);break;case"longest-path":Yni(e);break;default:wOr(e)}}function Wni(e){Bie(e),$Se(e)}function wOr(e){QL(e)}var Yni;var nit=Re(()=>{qnt();EOr();FSe();Yni=Bie});function SOr(e){var r=O3(e,"root",{},"_root"),i=jni(e),a=t2(QE(i))-1,o=2*a+1;e.graph().nestingRoot=r,Sn(e.edges(),function(h){e.edge(h).minlen*=o});var l=Kni(e)+1;Sn(e.children(),function(h){TOr(e,r,o,l,a,i,h)}),e.graph().nodeRankFactor=o}function TOr(e,r,i,a,o,l,h){var d=e.children(h);if(!d.length){if(h!==r)e.setEdge(r,h,{weight:0,minlen:i});return}var p=Unt(e,"_bt"),m=Unt(e,"_bb"),y=e.node(h);if(e.setParent(p,h),y.borderTop=p,e.setParent(m,h),y.borderBottom=m,Sn(d,function(v){TOr(e,r,i,a,o,l,v);var w=e.node(v),T=w.borderTop?w.borderTop:v,x=w.borderBottom?w.borderBottom:v,k=w.borderTop?a:2*a,A=T!==x?1:o-l[h]+1;e.setEdge(p,T,{weight:k,minlen:A,nestingEdge:!0}),e.setEdge(x,m,{weight:k,minlen:A,nestingEdge:!0})}),!e.parent(h))e.setEdge(r,p,{weight:0,minlen:o+l[h]})}function jni(e){var r={};function i(a,o){var l=e.children(a);if(l&&l.length)Sn(l,function(h){i(h,o+1)});r[a]=o}return Sn(e.children(),function(a){i(a,1)}),r}function Kni(e){return R3(e.edges(),function(r,i){return r+e.edge(i).weight},0)}function xOr(e){var r=e.graph();e.removeNode(r.nestingRoot),delete r.nestingRoot,Sn(e.edges(),function(i){var a=e.edge(i);if(a.nestingEdge)e.removeEdge(i)})}var COr=Re(()=>{wh();N3()});function kOr(e,r,i){var a={},o;Sn(i,function(l){var h=e.parent(l),d,p;while(h){if(d=e.parent(h),d)p=a[d],a[d]=h;else p=o,o=h;if(p&&p!==h){r.setEdge(p,h);return}h=d}})}var AOr=Re(()=>{wh()});function ROr(e,r,i){var a=Qni(e),o=new Yh({compound:!0}).setGraph({root:a}).setDefaultNodeLabel(function(l){return e.node(l)});return Sn(e.nodes(),function(l){var h=e.node(l),d=e.parent(l);if(h.rank===r||h.minRank<=r&&r<=h.maxRank){if(o.setNode(l),o.setParent(l,d||a),Sn(e[i](l),function(p){var m=p.v===l?p.w:p.v,y=o.edge(m,l),v=!Gp(y)?y.weight:0;o.setEdge(m,l,{weight:e.edge(p).weight+v})}),Object.prototype.hasOwnProperty.call(h,"minRank"))o.setNode(l,{borderLeft:h.borderLeft[r],borderRight:h.borderRight[r]})}}),o}function Qni(e){var r;while(e.hasNode(r=cB("_root")));return r}var IOr=Re(()=>{wh();rT()});function OOr(e,r){var i=0;for(var a=1;a0){if(y%2)v+=d[y+1];y=y-1>>1,d[y]+=m.weight}p+=m.weight*v})),p}var NOr=Re(()=>{wh()});function LOr(e){var r={},i=bv(e.nodes(),function(d){return!e.children(d).length}),a=t2(Eh(i,function(d){return e.node(d).rank})),o=Eh(tT(a+1),function(){return[]});function l(d){if(Cie(r,d))return;r[d]=!0;var p=e.node(d);o[p.rank].push(d),Sn(e.successors(d),l)}var h=I3(i,function(d){return e.node(d).rank});return Sn(h,l),o}var MOr=Re(()=>{wh()});function DOr(e,r){return Eh(r,function(i){var a=e.inEdges(i);if(!a.length)return{v:i};else{var o=R3(a,function(l,h){var d=e.edge(h),p=e.node(h.v);return{sum:l.sum+d.weight*p.order,weight:l.weight+d.weight}},{sum:0,weight:0});return{v:i,barycenter:o.sum/o.weight,weight:o.weight}}})}var POr=Re(()=>{wh()});function BOr(e,r){var i={};Sn(e,function(o,l){var h=i[o.v]={indegree:0,in:[],out:[],vs:[o.v],i:l};if(!Gp(o.barycenter))h.barycenter=o.barycenter,h.weight=o.weight}),Sn(r.edges(),function(o){var l=i[o.v],h=i[o.w];if(!Gp(l)&&!Gp(h))h.indegree++,l.out.push(i[o.w])});var a=bv(i,function(o){return!o.indegree});return Jni(a)}function Jni(e){var r=[];function i(l){return function(h){if(h.merged)return;if(Gp(h.barycenter)||Gp(l.barycenter)||h.barycenter>=l.barycenter)eii(l,h)}}function a(l){return function(h){if(h.in.push(l),--h.indegree===0)e.push(h)}}while(e.length){var o=e.pop();r.push(o),Sn(o.in.reverse(),i(o)),Sn(o.out,a(o))}return Eh(bv(r,function(l){return!l.merged}),function(l){return lB(l,["vs","i","barycenter","weight"])})}function eii(e,r){var i=0,a=0;if(e.weight)i+=e.barycenter*e.weight,a+=e.weight;if(r.weight)i+=r.barycenter*r.weight,a+=r.weight;e.vs=r.vs.concat(e.vs),e.barycenter=i/a,e.weight=a,e.i=Math.min(r.i,e.i),r.merged=!0}var FOr=Re(()=>{wh()});function UOr(e,r){var i=q6r(e,function(y){return Object.prototype.hasOwnProperty.call(y,"barycenter")}),a=i.lhs,o=I3(i.rhs,function(y){return-y.i}),l=[],h=0,d=0,p=0;a.sort(tii(!!r)),p=$Or(l,o,p),Sn(a,function(y){p+=y.vs.length,l.push(y.vs),h+=y.barycenter*y.weight,d+=y.weight,p=$Or(l,o,p)});var m={vs:eT(l)};if(d)m.barycenter=h/d,m.weight=d;return m}function $Or(e,r,i){var a;while(r.length&&(a=WL(r)).i<=i)r.pop(),e.push(a.vs),i++;return i}function tii(e){return function(r,i){if(r.barycenteri.barycenter)return 1;return!e?r.i-i.i:i.i-r.i}}var GOr=Re(()=>{wh();N3()});function iit(e,r,i,a){var o=e.children(r),l=e.node(r),h=l?l.borderLeft:void 0,d=l?l.borderRight:void 0,p={};if(h)o=bv(o,function(x){return x!==h&&x!==d});var m=DOr(e,o);Sn(m,function(x){if(e.children(x.v).length){var k=iit(e,x.v,i,a);if(p[x.v]=k,Object.prototype.hasOwnProperty.call(k,"barycenter"))nii(x,k)}});var y=BOr(m,i);rii(y,p);var v=UOr(y,a);if(h){if(v.vs=eT([h,v.vs,d]),e.predecessors(h).length){var w=e.node(e.predecessors(h)[0]),T=e.node(e.predecessors(d)[0]);if(!Object.prototype.hasOwnProperty.call(v,"barycenter"))v.barycenter=0,v.weight=0;v.barycenter=(v.barycenter*v.weight+w.order+T.order)/(v.weight+2),v.weight+=2}}return v}function rii(e,r){Sn(e,function(i){i.vs=eT(i.vs.map(function(a){if(r[a])return r[a].vs;return a}))})}function nii(e,r){if(!Gp(e.barycenter))e.barycenter=(e.barycenter*e.weight+r.barycenter*r.weight)/(e.weight+r.weight),e.weight+=r.weight;else e.barycenter=r.barycenter,e.weight=r.weight}var zOr=Re(()=>{wh();POr();FOr();GOr()});function qOr(e){var r=Gnt(e),i=VOr(e,tT(1,r+1),"inEdges"),a=VOr(e,tT(r-1,-1,-1),"outEdges"),o=LOr(e);HOr(e,o);var l=Number.POSITIVE_INFINITY,h;for(var d=0,p=0;p<4;++d,++p){iii(d%2?i:a,d%4>=2),o=KL(e);var m=OOr(e,o);if(m{wh();rT();N3();AOr();IOr();NOr();MOr();zOr()});function WOr(e){var r=sii(e);Sn(e.graph().dummyChains,function(i){var a=e.node(i),o=a.edgeObj,l=aii(e,r,o.v,o.w),{path:h,lca:d}=l,p=0,m=h[p],y=!0;while(i!==o.w){if(a=e.node(i),y){while((m=h[p])!==d&&e.node(m).maxRankh||d>r[p].lim));m=p,p=a;while((p=e.parent(p))!==m)l.push(p);return{path:o.concat(l.reverse()),lca:m}}function sii(e){var r={},i=0;function a(o){var l=i;Sn(e.children(o),a),r[o]={low:l,lim:i++}}return Sn(e.children(),a),r}var jOr=Re(()=>{wh()});function oii(e,r){var i={};function a(o,l){var h=0,d=0,p=o.length,m=WL(l);return Sn(l,function(y,v){var w=cii(e,y),T=w?e.node(w).order:p;if(w||y===m)Sn(l.slice(d,v+1),function(x){Sn(e.predecessors(x),function(k){var A=e.node(k),R=A.order;if((Rm))KOr(i,w,y)})})}function o(l,h){var d=-1,p,m=0;return Sn(h,function(y,v){if(e.node(y).dummy==="border"){var w=e.predecessors(y);if(w.length)p=e.node(w[0]).order,a(h,m,v,d,p),m=v,d=p}a(h,m,h.length,p,l.length)}),h}return R3(r,o),i}function cii(e,r){if(e.node(r).dummy)return dq(e.predecessors(r),function(i){return e.node(i).dummy})}function KOr(e,r,i){if(r>i){var a=r;r=i,i=a}if(!Object.prototype.hasOwnProperty.call(e,r))Object.defineProperty(e,r,{enumerable:!0,configurable:!0,value:{},writable:!0});var o=e[r];Object.defineProperty(o,i,{enumerable:!0,configurable:!0,value:!0,writable:!0})}function uii(e,r,i){if(r>i){var a=r;r=i,i=a}return!!e[r]&&Object.prototype.hasOwnProperty.call(e[r],i)}function hii(e,r,i,a){var o={},l={},h={};return Sn(r,function(d){Sn(d,function(p,m){o[p]=p,l[p]=p,h[p]=m})}),Sn(r,function(d){var p=-1;Sn(d,function(m){var y=a(m);if(y.length){y=I3(y,function(k){return h[k]});var v=(y.length-1)/2;for(var w=Math.floor(v),T=Math.ceil(v);w<=T;++w){var x=y[w];if(l[m]===m&&p{wh();rT();N3()});function ZOr(e){e=BSe(e),vii(e),Wrt(XOr(e),function(r,i){e.node(i).x=r})}function vii(e){var r=KL(e),i=e.graph().ranksep,a=0;Sn(r,function(o){var l=t2(Eh(o,function(h){return e.node(h).height}));Sn(o,function(h){e.node(h).y=a+l/2}),a+=l+i})}var JOr=Re(()=>{wh();N3();QOr()});function oit(e,r){var i=r&&r.debugTiming?Y6r:W6r;i("layout",()=>{var a=i(" buildLayoutGraph",()=>Iii(e));i(" runLayout",()=>_ii(a,i)),i(" updateInputGraph",()=>Eii(e,a))})}function _ii(e,r){r(" makeSpaceForEdgeLabels",()=>Oii(e)),r(" removeSelfEdges",()=>Uii(e)),r(" acyclic",()=>$6r(e)),r(" nestingGraph.run",()=>SOr(e)),r(" rank",()=>rit(BSe(e))),r(" injectEdgeLabelProxies",()=>Nii(e)),r(" removeEmptyRanks",()=>H6r(e)),r(" nestingGraph.cleanup",()=>xOr(e)),r(" normalizeRanks",()=>V6r(e)),r(" assignRankMinMax",()=>Lii(e)),r(" removeEdgeLabelProxies",()=>Mii(e)),r(" normalize.run",()=>rOr(e)),r(" parentDummyChains",()=>WOr(e)),r(" addBorderSegments",()=>K6r(e)),r(" order",()=>qOr(e)),r(" insertSelfEdges",()=>Gii(e)),r(" adjustCoordinateSystem",()=>Z6r(e)),r(" position",()=>ZOr(e)),r(" positionSelfEdges",()=>zii(e)),r(" removeBorderNodes",()=>$ii(e)),r(" normalize.undo",()=>nOr(e)),r(" fixupEdgeLabelCoords",()=>Bii(e)),r(" undoCoordinateSystem",()=>J6r(e)),r(" translateGraph",()=>Dii(e)),r(" assignNodeIntersects",()=>Pii(e)),r(" reversePoints",()=>Fii(e)),r(" acyclic.undo",()=>U6r(e))}function Eii(e,r){Sn(e.nodes(),function(i){var a=e.node(i),o=r.node(i);if(a){if(a.x=o.x,a.y=o.y,r.children(i).length)a.width=o.width,a.height=o.height}}),Sn(e.edges(),function(i){var a=e.edge(i),o=r.edge(i);if(a.points=o.points,Object.prototype.hasOwnProperty.call(o,"x"))a.x=o.x,a.y=o.y}),e.graph().width=r.graph().width,e.graph().height=r.graph().height}function Iii(e){var r=new Yh({multigraph:!0,compound:!0}),i=sit(e.graph());return r.setGraph(pq({},Sii,ait(i,wii),lB(i,Tii))),Sn(e.nodes(),function(a){var o=sit(e.node(a));r.setNode(a,Urt(ait(o,xii),Cii)),r.setParent(a,e.parent(a))}),Sn(e.edges(),function(a){var o=sit(e.edge(a));r.setEdge(a,pq({},Aii,ait(o,kii),lB(o,Rii)))}),r}function Oii(e){var r=e.graph();r.ranksep/=2,Sn(e.edges(),function(i){var a=e.edge(i);if(a.minlen*=2,a.labelpos.toLowerCase()!=="c")if(r.rankdir==="TB"||r.rankdir==="BT")a.width+=a.labeloffset;else a.height+=a.labeloffset})}function Nii(e){Sn(e.edges(),function(r){var i=e.edge(r);if(i.width&&i.height){var a=e.node(r.v),o=e.node(r.w),l={rank:(o.rank-a.rank)/2+a.rank,e:r};O3(e,"edge-proxy",l,"_ep")}})}function Lii(e){var r=0;Sn(e.nodes(),function(i){var a=e.node(i);if(a.borderTop)a.minRank=e.node(a.borderTop).rank,a.maxRank=e.node(a.borderBottom).rank,r=t2(r,a.maxRank)}),e.graph().maxRank=r}function Mii(e){Sn(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="edge-proxy")e.edge(i.e).labelRank=i.rank,e.removeNode(r)})}function Dii(e){var r=Number.POSITIVE_INFINITY,i=0,a=Number.POSITIVE_INFINITY,o=0,l=e.graph(),h=l.marginx||0,d=l.marginy||0;function p(m){var{x:y,y:v,width:w,height:T}=m;r=Math.min(r,y-w/2),i=Math.max(i,y+w/2),a=Math.min(a,v-T/2),o=Math.max(o,v+T/2)}Sn(e.nodes(),function(m){p(e.node(m))}),Sn(e.edges(),function(m){var y=e.edge(m);if(Object.prototype.hasOwnProperty.call(y,"x"))p(y)}),r-=h,a-=d,Sn(e.nodes(),function(m){var y=e.node(m);y.x-=r,y.y-=a}),Sn(e.edges(),function(m){var y=e.edge(m);if(Sn(y.points,function(v){v.x-=r,v.y-=a}),Object.prototype.hasOwnProperty.call(y,"x"))y.x-=r;if(Object.prototype.hasOwnProperty.call(y,"y"))y.y-=a}),l.width=i-r+h,l.height=o-a+d}function Pii(e){Sn(e.edges(),function(r){var i=e.edge(r),a=e.node(r.v),o=e.node(r.w),l,h;if(!i.points)i.points=[],l=o,h=a;else l=i.points[0],h=i.points[i.points.length-1];i.points.unshift($nt(a,l)),i.points.push($nt(o,h))})}function Bii(e){Sn(e.edges(),function(r){var i=e.edge(r);if(Object.prototype.hasOwnProperty.call(i,"x")){if(i.labelpos==="l"||i.labelpos==="r")i.width-=i.labeloffset;switch(i.labelpos){case"l":i.x-=i.width/2+i.labeloffset;break;case"r":i.x+=i.width/2+i.labeloffset;break}}})}function Fii(e){Sn(e.edges(),function(r){var i=e.edge(r);if(i.reversed)i.points.reverse()})}function $ii(e){Sn(e.nodes(),function(r){if(e.children(r).length){var i=e.node(r),a=e.node(i.borderTop),o=e.node(i.borderBottom),l=e.node(WL(i.borderLeft)),h=e.node(WL(i.borderRight));i.width=Math.abs(h.x-l.x),i.height=Math.abs(o.y-a.y),i.x=l.x+i.width/2,i.y=a.y+i.height/2}}),Sn(e.nodes(),function(r){if(e.node(r).dummy==="border")e.removeNode(r)})}function Uii(e){Sn(e.edges(),function(r){if(r.v===r.w){var i=e.node(r.v);if(!i.selfEdges)i.selfEdges=[];i.selfEdges.push({e:r,label:e.edge(r)}),e.removeEdge(r)}})}function Gii(e){var r=KL(e);Sn(r,function(i){var a=0;Sn(i,function(o,l){var h=e.node(o);h.order=l+a,Sn(h.selfEdges,function(d){O3(e,"selfedge",{width:d.label.width,height:d.label.height,rank:h.rank,order:l+ ++a,e:d.e,label:d.label},"_se")}),delete h.selfEdges})})}function zii(e){Sn(e.nodes(),function(r){var i=e.node(r);if(i.dummy==="selfedge"){var a=e.node(i.e.v),o=a.x+a.width/2,l=a.y,h=i.x-o,d=a.height/2;e.setEdge(i.e,i.label),e.removeNode(r),i.label.points=[{x:o+2*h/3,y:l-d},{x:o+5*h/6,y:l-d},{x:o+h,y:l},{x:o+5*h/6,y:l+d},{x:o+2*h/3,y:l+d}],i.label.x=i.x,i.label.y=i.y}})}function ait(e,r){return sB(lB(e,r),Number)}function sit(e){var r={};return Sn(e,function(i,a){r[a.toLowerCase()]=i}),r}var wii,Sii,Tii,xii,Cii,kii,Aii,Rii;var eNr=Re(()=>{wh();rT();X6r();tOr();Fnt();Hnt();nit();COr();YOr();jOr();JOr();N3();wii=["nodesep","edgesep","ranksep","marginx","marginy"],Sii={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Tii=["acyclicer","ranker","rankdir","align"],xii=["width","height"],Cii={width:0,height:0},kii=["minlen","weight","width","height","labeloffset"],Aii={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Rii=["labelpos"]});var tNr=Re(()=>{Fnt();eNr();Hnt();nit()});var uNr={};VN(uNr,{applyDagreLayoutResult:()=>oNr,getEdgesToRender:()=>lit,measureDagreLayout:()=>lNr,prepareLayoutForDagre:()=>cit,render:()=>eai,runDagreLayoutCore:()=>cNr});var rNr,nNr,Vii,Hii,qii,Yii,Wii,lit,aNr,sNr,jii,iNr,Kii,oNr,Xii,Qii,cit,lNr,cNr,Zii,Jii,eai;var hNr=Re(()=>{ISe();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();tNr();rT();rNr=I((e,r,i)=>Math.max(r,Math.min(i,e)),"clamp"),nNr=I((e="TB")=>{switch(e){case"BT":return"bottom";case"LR":return"right";case"RL":return"left";case"TB":default:return"top"}},"getDefaultSelfLoopSide"),Vii=I((e)=>e==="flowchart"||e==="flowchart-v2"||e==="stateDiagram"||e==="er"||e==="classDiagram","shouldMergeSelfLoopSegments"),Hii=["x","y","width","height","labelBBox","intersect","calcIntersect","diff","clusterNode"],qii=I((e,r,i,a,o)=>{let l=[],h=new Set;if(i.forEach(({start:y,end:v})=>{if(y!==a)h.add(y);if(v!==a)h.add(v)}),h.forEach((y)=>{let v=e.node(y);if(typeof v?.x==="number"&&typeof v?.y==="number")l.push(v)}),l.length===0)i.forEach(({edge:y})=>{(y.points??[]).forEach((v)=>{if(typeof v?.x==="number"&&typeof v?.y==="number")l.push(v)})});if(l.length===0)return nNr(o);let d=l.reduce((y,v)=>({x:y.x+v.x/l.length,y:y.y+v.y/l.length}),{x:0,y:0}),p=d.x-r.x,m=d.y-r.y;if(Math.abs(p)>Math.abs(m))return p>0?"right":"left";if(Math.abs(m)>0)return m>0?"bottom":"top";return nNr(o)},"getSelfLoopSide"),Yii=I((e,r="top",i=0,a=0)=>{let o=e.x,l=e.y-i,h=e.width/2,d=e.height/2,p=Math.max(36,Math.min(100,e.width*0.8)),m=rNr(Math.max(a,e.width*0.35),36,p),y=rNr(Math.min(e.width,e.height)*0.45,24,48);switch(r){case"bottom":{let v=l+d;return[{x:o-m/2,y:v},{x:o-m/2,y:v+y},{x:o+m/2,y:v+y},{x:o+m/2,y:v}]}case"right":{let v=o+h;return[{x:v,y:l-m/2},{x:v+y,y:l-m/2},{x:v+y,y:l+m/2},{x:v,y:l+m/2}]}case"left":{let v=o-h;return[{x:v,y:l-m/2},{x:v-y,y:l-m/2},{x:v-y,y:l+m/2},{x:v,y:l+m/2}]}case"top":default:{let v=l-d;return[{x:o-m/2,y:v},{x:o-m/2,y:v-y},{x:o+m/2,y:v-y},{x:o+m/2,y:v}]}}},"getSelfLoopPoints"),Wii=I((e,r,i="top",a=0,o={})=>{let h=e.x,d=e.y-a,p=o.width??0,m=o.height??0;switch(i){case"bottom":return{x:h,y:Math.max(...r.map((y)=>y.y))+m/2+4};case"right":return{x:Math.max(...r.map((y)=>y.x))+p/2+4,y:d};case"left":return{x:Math.min(...r.map((y)=>y.x))-p/2-4,y:d};case"top":default:return{x:h,y:Math.min(...r.map((y)=>y.y))-m/2-4}}},"getSelfLoopLabelPosition"),lit=I((e,r=0,{mergeSelfLoops:i=!0}={})=>{let a=new Map,o=[],l=e.graph()?.rankdir;return e.edges().forEach((h)=>{let d=e.edge(h);if(i&&d.selfLoop){let p=d.selfLoop.id;if(!a.has(p))a.set(p,[]);a.get(p).push({edge:d,start:h.v,end:h.w})}else o.push({edge:d,start:h.v,end:h.w})}),a.forEach((h)=>{if(h.length!==3){h.forEach((R)=>o.push(R));return}h.sort((R,N)=>R.edge.selfLoop.order-N.edge.selfLoop.order);let[d,p,m]=h,y=d.edge.originalEdge??p.edge.originalEdge??m.edge.originalEdge??p.edge,v=e.node(y.start);if(!v){h.forEach((R)=>o.push(R));return}let w={width:p.edge.width,height:p.edge.height},T=qii(e,v,h,y.start,l),x=Yii(v,T,r,w.width??0),k=Wii(v,x,T,r,w),A={...p.edge,...y,id:y.id,points:x,start:y.start,end:y.end,x:k.x,y:k.y,width:w.width,height:w.height,labelStyle:p.edge.labelStyle,fromCluster:d.edge.fromCluster??p.edge.fromCluster??m.edge.fromCluster,toCluster:d.edge.toCluster??p.edge.toCluster??m.edge.toCluster};delete A.selfLoop,delete A.originalEdge,o.push({edge:A,start:A.start,end:A.end})}),o},"getEdgesToRender"),aNr=I(async({element:e,graph:r,diagramType:i,id:a,parentCluster:o,siteConfig:l})=>{let h=r.graph().rankdir;Ze.trace("Dir in recursive render - dir:",h);let{clusters:d,edgePaths:p,edgeLabels:m,nodes:y,rootGroups:v}=CSe(e,{edgePathsClass:"edgePaths"});if(!r.nodes())Ze.info("No nodes found for",r);else Ze.info("Recursive render XXX",r.nodes());if(r.edges().length>0)Ze.info("Recursive edges",r.edge(r.edges()[0]));let w=Vii(i);await Promise.all(r.nodes().map(async function(k){let A=r.node(k);if(o!==void 0){let R=JSON.parse(JSON.stringify(o.clusterData));if(Ze.trace(`Setting data for parent cluster XXX Node.id = `,k,` data=`,R.height,` -Parent cluster`,o.height),r.setNode(o.id,R),!r.parent(k))Ze.trace("Setting parent",k,o.id),r.setParent(k,o.id,R)}if(Ze.info("(Insert) Node XXX"+k+": "+JSON.stringify(r.node(k))),A?.clusterNode){Ze.info("Cluster identified XBX",k,A.width,r.node(k));let{ranksep:R,nodesep:N}=r.graph();A.graph.setGraph({...A.graph.graph(),ranksep:R+25,nodesep:N});let L=await qii({element:y,graph:A.graph,diagramType:i,id:a,parentCluster:r.node(k),siteConfig:l}),B=L.elem;La(A,B),A.diff=L.diff||0,Ze.info("New compound node after recursive render XAX",k,"width",A.width,"height",A.height),UCr(B,A)}else if(r.children(k).length>0)Ze.trace("Cluster - the non recursive path XBX",k,A.id,A,A.width,"Graph:",r),Ze.trace(uB(A.id,r)),vl.set(A.id,{id:uB(A.id,r),node:A});else Ze.trace("Node - the non recursive path XAX",k,y,r.node(k),h),await TSe(y,r.node(k),{config:l,dir:h})})),await I(async()=>{let k=r.edges().map(async function(A){let R=r.edge(A.v,A.w,A.name);if(Ze.info("Edge "+A.v+" -> "+A.w+": "+JSON.stringify(A)),Ze.info("Edge "+A.v+" -> "+A.w+": ",A," ",JSON.stringify(r.edge(A))),Ze.info("Fix",vl,"ids:",A.v,A.w,"Translating: ",vl.get(A.v),vl.get(A.w)),w&&R.selfLoop){if(R.selfLoop.order!==1)return;let N={...R.originalEdge,...R,id:R.selfLoop.id,startLabelLeft:R.originalEdge?.startLabelLeft??R.startLabelLeft,startLabelRight:R.originalEdge?.startLabelRight??R.startLabelRight,endLabelLeft:R.originalEdge?.endLabelLeft??R.endLabelLeft,endLabelRight:R.originalEdge?.endLabelRight??R.endLabelRight};await _3(m,N),R.width=N.width,R.height=N.height,R.labelStyle=N.labelStyle;return}await _3(m,R)});await Promise.all(k)},"processEdges")();let{subGraphTitleTotalMargin:x}=SC(l);return{elem:E,graph:r,groups:{clusters:d,edgePaths:p,edgeLabels:m,nodes:y,rootGroups:E},diagramType:i,id:a,mergeSelfLoops:w,subGraphTitleTotalMargin:x}},"measureDagreGraph"),tNr=I((e)=>{Ze.info("############################################# XXX"),Ze.info("### Layout ### XXX"),Ze.info("############################################# XXX"),iit(e)},"runDagreGraphLayout"),zii=I((e,r,i)=>{let a=e.node(r);if(!a)return;let o={...a};if(a?.clusterNode)o.y=(a.y??0)+i;else if(e.children(r).length>0)o.height=(a.height??0)+i;else o.y=(a.y??0)+i/2;return o},"normalizeDagreNode"),JOr=I((e,r)=>{Fii.forEach((i)=>{if(r[i]!==void 0)e[i]=r[i]})},"applyDagreNodeLayout"),Vii=I((e,r,i,a)=>({...e,start:e.start??r,end:e.end??i,points:(e.points??[]).map((o)=>({...o,y:typeof o.y==="number"?o.y+a:o.y}))}),"normalizeDagreEdge"),rNr=I((e,r)=>{let{graph:i,mergeSelfLoops:a,subGraphTitleTotalMargin:o=0}=r,l=new Map(e.nodes.map((d)=>[d.id,d]));xSe(i).forEach((d)=>{let p=zii(i,d,o);if(!p)return;JOr(i.node(d),p);let m=l.get(d);if(m)JOr(m,p)});let h=o/2;return e.edges=ait(i,h,{mergeSelfLoops:a}).map(({edge:d,start:p,end:m})=>Vii(d,p,m,h)),e},"applyDagreLayoutResult"),Hii=I(async({elem:e,graph:r,groups:{clusters:i,edgePaths:a},diagramType:o,id:l,mergeSelfLoops:h,subGraphTitleTotalMargin:d})=>{let p=0;await Promise.all(xSe(r).map(async function(E){let w=r.node(E);if(Ze.info("Position XBX => "+E+": ("+w.x,","+w.y,") width: ",w.width," height: ",w.height),w?.clusterNode)w.y+=d,Ze.info("A tainted cluster node XBX1",E,w.id,w.width,w.height,w.x,w.y,r.parent(E)),vl.get(w.id).node=w,v3(w);else if(r.children(E).length>0){Ze.info("A pure cluster node XBX1",E,w.id,w.x,w.y,w.width,w.height,r.parent(E)),w.height+=d,r.node(w.parentId);let T=w?.padding/2||0,x=w?.labelBBox?.height||0,k=x-T||0;Ze.debug("OffsetY",k,"labelHeight",x,"halfPadding",T),await TL(i,w),vl.get(w.id).node=w}else{let T=r.node(w.parentId);w.y+=d/2,Ze.info("A regular node XBX1 - using the padding",w.id,"parent",w.parentId,w.width,w.height,w.x,w.y,"offsetY",w.offsetY,"parent",T,T?.offsetY,w),v3(w)}}));let m=d/2;return ait(r,m,{mergeSelfLoops:h}).forEach(function({edge:E,start:w,end:T}){Ze.info("Edge "+w+" -> "+T+": "+JSON.stringify(E),E),E.points.forEach((R)=>R.y+=m);let x=r.node(w),k=r.node(T),A=xL(a,E,vl,o,x,k,l);BH(E,A)}),r.nodes().forEach(function(E){let w=r.node(E);if(Ze.info(E,w.type,w.diff),w.isGroup)p=w.diff}),Ze.warn("Returning from recursive render XAX",e,p),{elem:e,diff:p}},"paintDagreLayoutCore"),qii=I(async(e)=>{let r=await eNr(e);return tNr(r.graph),await Hii(r)},"renderDagreSubgraph"),sit=I((e)=>{let r=new Yh({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach((i)=>{if(r.setNode(i.id,{...i}),i.parentId)r.setParent(i.id,i.parentId)}),Ze.debug("Edges:",e.edges),e.edges.forEach((i)=>{if(i.start===i.end){let a=i.start,o=a+"---"+a+"---1",l=a+"---"+a+"---2",h=r.node(a);r.setNode(o,{domId:o,id:o,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(o,h.parentId),r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(l,h.parentId);let d=structuredClone(i),p=structuredClone(i),m=structuredClone(i),y=structuredClone(i);if(p.originalEdge=d,p.selfLoop={id:d.id,order:0},m.originalEdge=d,m.selfLoop={id:d.id,order:1},y.originalEdge=d,y.selfLoop={id:d.id,order:2},p.label="",p.arrowTypeEnd="none",p.endLabelLeft="",p.endLabelRight="",p.startLabelLeft="",p.id=a+"-cyclic-special-1",m.startLabelRight="",m.startLabelLeft="",m.endLabelLeft="",m.endLabelRight="",m.arrowTypeStart="none",m.arrowTypeEnd="none",m.id=a+"-cyclic-special-mid",y.label="",y.startLabelRight="",y.startLabelLeft="",y.arrowTypeStart="none",h.isGroup)p.fromCluster=a,y.toCluster=a;y.id=a+"-cyclic-special-2",y.arrowTypeStart="none",r.setEdge(a,o,p,a+"-cyclic-special-0"),r.setEdge(o,l,m,a+"-cyclic-special-1"),r.setEdge(l,a,y,a+"-cyclic-special-2")}else r.setEdge(i.start,i.end,{...i},i.id)}),oIr(r),{graph:r}},"prepareLayoutForDagre"),nNr=I(async(e,{element:r,preparedLayout:i})=>{let a=i??sit(e),o=Ar(),l=await eNr({element:r,graph:a.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:o});return a.measuredLayout=l,l},"measureDagreLayout"),iNr=I((e,r)=>{let i=r.preparedLayout?.measuredLayout;if(!i)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return tNr(i.graph),rNr(e,i),i},"runDagreLayoutCore"),Yii=I((e,{measure:r})=>xSe(r.graph).map((i)=>r.graph.node(i)).filter(Boolean),"getDagrePaintNodes"),Wii=I((e,r,{measure:i})=>e?i.graph.node(e):void 0,"getDagreEdgeNode"),jii=hB({prepareLayout:sit,measureLayout:nNr,runLayoutCore:iNr,paintOptions:{clusterDb:vl,getNodes:Yii,getEdgeNode:Wii,skipNode:I((e,{measure:r})=>!r.graph.hasNode(e.id),"skipNode"),isCluster:I((e,{measure:r})=>r.graph.hasNode(e.id)&&(r.graph.children(e.id)??[]).length>0,"isCluster")}})});var DLr={};GN(DLr,{render:()=>aai});function dNr(e,{measure:r}){let i=e.config?.swimlane?.lineHops;if(i===!1)return;let a=i==="gap"?"gap":"arc",o=e.edges.filter((l)=>Array.isArray(l.points)&&l.points.length>=2).map((l)=>({id:l.id,points:l.points,curve:l.curve,arrowTypeStart:l.arrowTypeStart,arrowTypeEnd:l.arrowTypeEnd}));Zne(r.groups.edgePaths,o,{enabled:!0,jumpRadius:6,jumpStyle:a})}function hit(e){return Math.max(e.padding??oNr,oNr)}function fNr(e){let{x:r,y:i,width:a,height:o}=e,l=e.swimlaneContentTop;if(typeof r!=="number"||typeof i!=="number"||typeof a!=="number"||typeof o!=="number"||typeof l!=="number"||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(l)||a<=0||o<=0){delete e.groupTitleRect;return}let h=i-o/2,d=Math.min(l,i+o/2),p=Math.min(Kii,Math.max(0,d-h)),m=h+p;if(m<=h){delete e.groupTitleRect;return}e.groupTitleRect={left:r-a/2,right:r+a/2,top:h,bottom:m}}function pNr(e){let r=e.direction,i=e.nodes??=[];for(let l of e.nodes??[])if(l.isGroup&&!l.parentId){if(l.shape="swimlane",r)l.direction=r}let a=i.filter((l)=>!l.isGroup&&!l.parentId);if(a.length===0)return;let o=i.find((l)=>l.id===oit);if(!o)o={id:oit,label:"",isGroup:!0,shape:"swimlane",padding:20,look:e.config?.look,colorIndex:i.reduce((l,h)=>Math.max(l,h.colorIndex??-1),-1)+1,...r?{direction:r}:{}},i.push(o);else if(o.isGroup){if(o.shape="swimlane",r)o.direction=r}for(let l of a)l.parentId=oit}function gNr(e){let r=new Map;for(let p of e.nodes??[])r.set(p.id,p);let i=[];for(let p of e.edges??[]){let m=typeof p.start==="string"?p.start:void 0,y=typeof p.end==="string"?p.end:void 0;if(!m||!y)continue;if(p.labelNodeId)continue;i.push({id:p.id,src:m,dst:y,ref:p})}let a=e.nodes??[],o=a.filter((p)=>p.isGroup),l=a.filter((p)=>!p.isGroup);return{nodes:[...[...o].reverse(),...l].map((p)=>p.id),edges:i,layout:e,nodeById:r}}function mNr(e,r,i,a){let{layout:o}=e,l=e.nodeById,h=a?.layerGap??100,d=a?.nodeGap??40,p=0;for(let w of r.layers){let T=0;for(let x of w){let k=l.get(x);if(!k){T++;continue}k.layer=p,k.order=T;let A=i.x[x]??T*d,R=i.y[x]??p*h;k.x=A,k.y=R,T++}p++}let m=o.nodes??[],y=new Map,E=[];for(let w of m){if(!w?.isGroup)continue;if(!w.parentId)E.push(w);let T=m.filter((N)=>N.parentId===w.id),x=1/0,k=-1/0,A=1/0,R=-1/0;for(let N of T){let L=N.x??i.x[N.id],B=N.y??i.y[N.id],D=N.width??0,P=N.height??0;if(L!=null&&B!=null)x=Math.min(x,L-D/2),k=Math.max(k,L+D/2),A=Math.min(A,B-P/2),R=Math.max(R,B+P/2)}if(x===1/0||A===1/0)w.x=w.x??0,w.y=w.y??0,w.width=w.width??0,w.height=w.height??0;else{let N=w.padding??20,L=w.parentId?N:2*hit(w),B=N,D=Math.max(0,k-x)+L,P=Math.max(0,R-A)+B,F=(x+k)/2,H=(A+R)/2;w.x=F,w.y=H,w.width=D,w.height=P,y.set(w.id,{minX:x,maxX:k,minY:A,maxY:R})}}if(E.length>0&&y.size>0){let w=1/0,T=-1/0,x=0;for(let k of E){let A=k.padding??20;if(A>x)x=A;let R=y.get(k.id);if(!R)continue;w=Math.min(w,R.minY),T=Math.max(T,R.maxY)}if(w!==1/0&&T!==-1/0){let k=Math.max(0,T-w),A=36,R=Math.max(x,36),N=k+2*R,L=(w+T)/2;for(let K of E)K.y=L,K.height=N,K.swimlaneContentTop=w;let B=[...E].sort((K,Q)=>{let Z=K.x??0,Y=Q.x??0;return Z-Y}),D=[],P=[],F=[];for(let K of B){let Q=y.get(K.id);if(!Q)continue;let Z=Math.max(0,Q.maxX-Q.minX)+2*hit(K),Y=(Q.minX+Q.maxX)/2;D.push(K.id),P.push(Y),F.push(Z)}let H=D.length;if(H>0){let K=new Map;if(H===1)K.set(D[0],F[0]);else{let Q=[];for(let X=0;X0&&o>0?{cx:r,cy:i,rect:fq(r,i,a,o)}:void 0}function Hit(e){if(e.isGroup)return;let r=Vit(e);if(!r)return;return{id:String(e.id??""),cx:r.cx,cy:r.cy,rect:r.rect}}function nT(e,r,i=t1){return Math.abs(e.x-r.x)i}function Vp(e,r,i=t1){return Fc(e,r,i)&&Math.abs(e.y-r.y)>i}function yv(e,r,i,a){return Math.max(0,Math.min(Math.max(e,r),Math.max(i,a))-Math.max(Math.min(e,r),Math.min(i,a)))}function N3(e,r,i=t1){if(e.horizontal&&r.horizontal&&Wc(e.a,r.a,i))return yv(e.a.x,e.b.x,r.a.x,r.b.x);if(e.vertical&&r.vertical&&Fc(e.a,r.a,i))return yv(e.a.y,e.b.y,r.a.y,r.b.y);return 0}function pq(e,r=t1){let i=[];for(let a=0;a0?i[i.length-1]:void 0;if(!o||!nT(o,a,r))i.push({x:a.x,y:a.y})}return i}function qit(e,r=t1){if(!e||e.length!==4)return;let[i,a,o,l]=e;if(zp(i,a,r)&&Vp(a,o,r)&&zp(o,l,r))return{kind:"HVH",p0:i,p1:a,p2:o,p3:l};return Vp(i,a,r)&&zp(a,o,r)&&Vp(o,l,r)?{kind:"VHV",p0:i,p1:a,p2:o,p3:l}:void 0}function ZSe(e,r,i,a=0){let o=Math.min(e.x,r.x),l=Math.max(e.x,r.x),h=Math.min(e.y,r.y),d=Math.max(e.y,r.y);return l>i.left-a&&oi.top-a&&hr.left+i&&e.xr.top+i&&e.y=r.right&&e.top<=r.top&&e.bottom>=r.bottom}function VSe(e,r){return e.leftr.left&&e.topr.top}function dit(e,r){return{left:e.left-r,right:e.right+r,top:e.top-r,bottom:e.bottom+r}}function fq(e,r,i,a){return{left:e-i/2,right:e+i/2,top:r-a/2,bottom:r+a/2}}function n2(e){return Vit(e)?.rect}function bB(e,r){switch(r){case"top":return{x:e.cx,y:e.rect.top};case"bottom":return{x:e.cx,y:e.rect.bottom};case"left":return{x:e.rect.left,y:e.cy};case"right":return{x:e.rect.right,y:e.cy}}}function Wit(e,r,i,a,o,l=t1){let h=r==="left"||r==="right",d=a==="left"||a==="right";if(h&&d){if(r==="right"&&a==="left"&&e.xi.x){if(Wc(e,i,l))return[e,i];let E=(e.x+i.x)/2;return[e,{x:E,y:e.y},{x:E,y:i.y},i]}if(r===a){if(Wc(e,i,l))return;let E=r==="left"?Math.min(e.x,i.x)-o:Math.max(e.x,i.x)+o;return[e,{x:E,y:e.y},{x:E,y:i.y},i]}return}if(!h&&!d){if(r===a){if(Fc(e,i,l))return;let w=r==="top"?Math.min(e.y,i.y)-o:Math.max(e.y,i.y)+o;return[e,{x:e.x,y:w},{x:i.x,y:w},i]}if(!(r==="bottom"&&a==="top"&&e.yi.y))return;if(Fc(e,i,l))return[e,i];let E=(e.y+i.y)/2;return[e,{x:e.x,y:E},{x:i.x,y:E},i]}if(h&&!d){let y=r==="right"&&i.x>e.x||r==="left"&&i.xi.y;return y&&E?[e,{x:i.x,y:e.y},i]:void 0}let p=r==="bottom"&&i.y>e.y||r==="top"&&i.yi.x;return p&&m?[e,{x:e.x,y:i.y},i]:void 0}function jit(e,r,i,a){return r==="left"||r==="right"?[e,{x:a,y:e.y},{x:a,y:i.y},i]:[e,{x:e.x,y:a},{x:i.x,y:a},i]}function JSe(e){let r=new Map,i=[];for(let a of e){if(a.isEdgeLabel)continue;let o=Hit(a);if(!o)continue;r.set(o.id,o),i.push({id:o.id,rect:o.rect})}return{nodeInfoById:r,realNodeRects:i}}function QL(e){let r=[],i=[];for(let a of e){let o=Hit(a);if(!o)continue;let l={id:o.id,rect:o.rect};if(a.isEdgeLabel)i.push(l);else r.push(l)}return{realNodeRects:r,labelNodeRects:i}}function vNr(e,{includeEdgeLabels:r=!0}={}){let i=[];for(let a of e){if(a.isGroup||!r&&a.isEdgeLabel)continue;let o=a.x??0,l=a.y??0,h=a.width??0,d=a.height??0;i.push({nodeId:a.id,...fq(o,l,h,d)})}return i}function Kit(e,r,i=t1){let{start:a,end:o}=e;if(!a||!o)return;let l=r.get(a),h=r.get(o);if(!l||!h)return;return{srcId:a,dstId:o,srcInfo:l,dstInfo:h,collinearX:Math.abs(l.cx-h.cx)x||wR)return!1;let N=Math.abs(k-y.a.x)o;if(l&&d&&Wc(e,i,o))return yv(e.x,r.x,i.x,a.x)>o;return!1}function HSe(e,r,i,a,{epsilon:o=t1,skipDegenerateOther:l=!1}={}){for(let h of i){if(h===a||h.isLayoutOnly)continue;let d=h.points;if(!d||d.length<2)continue;for(let p=0;pw+o&&xk+o&&Ea+t1&&e=2?r[r.length-2]:void 0,p=(h?Fc(h,o):!1)?{x:o.x,y:l.y}:{x:l.x,y:o.y};r.push(p)}r.push(l)}let i=[];for(let a of r){let o=i[i.length-1];if(!o||!nT(o,a))i.push(a)}return i}function L3(e){if(e.length<3)return e;let r=[...e];for(let i=0;i<32;i++){let a=wNr(r);if(r=a.points,!a.changed)break}return r}function Qit(e,r,i){let a=e;if(a.isLayoutOnly||!a.points||a.points.length=0&&o=e.length)return e;let l=o-a;if(l<0||l>=e.length)return e;let h=SNr(e[o],e[l],r);return i?[h,...e.slice(o)]:[...e.slice(0,o+1),h]}function TNr(e,r){for(let i of e){let a=Qit(i,r,2);if(!a)continue;let o=[...a.points];if(a.srcRect)o=pit(o,a.srcRect,!0);if(a.dstRect)o=pit(o,a.dstRect,!1);o=L3(qSe(o)),o=Zit(o,a.srcRect,a.dstRect),a.edge.points=L3(qSe(o))}}function git(e,r,i,a=!1){if(Wc(e,r,Ro)){if(r.yi.bottom+Ro)return r;if(a){if(e.xi.right+Ro)return{x:i.right,y:e.y}}return{x:Math.abs(r.x-i.left)<=Math.abs(r.x-i.right)?i.left:i.right,y:e.y}}if(Fc(e,r,Ro)){if(r.xi.right+Ro)return r;if(a){if(e.yi.bottom+Ro)return{x:e.x,y:i.bottom}}let o=Math.abs(r.y-i.top)<=Math.abs(r.y-i.bottom);return{x:e.x,y:o?i.top:i.bottom}}return r}function YSe(e,r,i){let a=e[r];for(let o=r+i;o>=0&&oa.lo)),i=Math.min(...e.map((a)=>a.hi));if(r>i)return;return{lo:r,hi:i}}function bit(e,r){return r==="left"||r==="right"?WSe(e.top,e.bottom):WSe(e.left,e.right)}function jSe(e,r,i){let a=e.y>=i.top-Ro&&e.y<=i.bottom+Ro,o=e.x>=i.left-Ro&&e.x<=i.right+Ro;if(Wc(e,r,Ro)&&a){if(Math.abs(e.x-i.left)0?xNr(l):void 0}function yit(e,r,i,a,o){let l=CNr(e,r,i,a,o);if(!l)return;let h=o?e.y:e.x,d=Math.min(l.hi,Math.max(l.lo,h));if(Math.abs(d-h)({...d}));for(let d=r;d>=0&&d=i.left-Ro&&Math.max(e.x,r.x)<=i.right+Ro,o=Math.min(e.y,r.y)>=i.top-Ro&&Math.max(e.y,r.y)<=i.bottom+Ro;if(Math.abs(e.y-i.top)a.bottom+Ro;case"left":return Wc(r,i,Ro)&&i.xa.right+Ro}}function wit(e,r,i){if(e.length<3)return e;if(i){let l=_it(e[0],e[1],r);if(l&&Eit(l,e[1],e[2],r))return e.slice(1);return e}let a=e.length-1,o=_it(e[a-1],e[a],r);if(o&&Eit(o,e[a-1],e[a-2],r))return e.slice(0,a);return e}function RNr(e,r,i){let a=e;if(r){let l=YSe(a,0,1);if(l){let h=git(l,a[0],r);if(h!==a[0])a=[h,...a.slice(1)]}a=wit(a,r,!0)}if(i){let l=a.length-1,h=YSe(a,l,-1);if(h){let d=git(h,a[l],i,!0);if(d!==a[l])a=[...a.slice(0,l),d]}a=wit(a,i,!1)}let o=Zit(a,r,i);if(o!==a||a.length===2)return o;if(r)a=vit(a,r,!0);if(i)a=vit(a,i,!1);return a}function Sit(e,r){for(let i of e){let a=Qit(i,r,2);if(!a)continue;let o=lu(a.points,Ro),l=RNr(o,a.srcRect,a.dstRect);if(l.length<3){a.edge.points=l;continue}let h=[l[0],{...l[0]},...l.slice(1,-1),l[l.length-1],{...l[l.length-1]}];a.edge.points=h}}function Jit(e){return new Map(e.map((r)=>[r.id,r]))}function INr(e,r){let i=e.parentId,a=null;while(i){let o=r.get(i);if(!o?.isGroup)break;a=o.id,i=o.parentId}return a}function Tit(e,r){let i=0,a=e.parentId;while(a){let o=r.get(a);if(!o?.isGroup)break;i++,a=o.parentId}return i}function eat(e){let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let l of e){let{x:h,y:d}=l;if(typeof h!=="number"||typeof d!=="number")continue;let p=l.width??0,m=l.height??0;r=Math.min(r,h-p/2),i=Math.max(i,h+p/2),a=Math.min(a,d-m/2),o=Math.max(o,d+m/2)}if(r===1/0||a===1/0)return null;return{minX:r,maxX:i,minY:a,maxY:o}}function ONr(e,r){let i=e.padding??20;e.x=(r.minX+r.maxX)/2,e.y=(r.minY+r.maxY)/2,e.width=Math.max(0,r.maxX-r.minX)+i,e.height=Math.max(0,r.maxY-r.minY)+i}function NNr(e){let r=Jit(e),i=e.filter((a)=>a.isGroup&&a.parentId).sort((a,o)=>Tit(o,r)-Tit(a,r));for(let a of i){let o=e.filter((h)=>h.parentId===a.id),l=eat(o);if(l)ONr(a,l)}}function KSe(e,r){let i=e.nodes??[],a=e.edges??[],o=i.filter((p)=>!p.isGroup),l=1/0,h=-1/0;for(let p of o){let m=p[r];if(typeof m!=="number")continue;l=Math.min(l,m),h=Math.max(h,m)}if(!Number.isFinite(l)||!Number.isFinite(h))return!1;let d=I((p)=>l+h-p,"mirror");for(let p of i){let m=p[r];if(typeof m==="number")p[r]=d(m);let y=p.groupTitleRect;if(y)p.groupTitleRect=r==="x"?{...y,left:d(y.right),right:d(y.left)}:{...y,top:d(y.bottom),bottom:d(y.top)}}for(let p of a)for(let m of p.points??[])m[r]=d(m[r]);return!0}function LNr(e){if(!(e.nodes??[]).some((i)=>!i.isGroup))return!0;return KSe(e,"y")}function MNr(e,r="LR"){let i=e.nodes??[],a=e.edges??[],o=i.filter((j)=>!j.isGroup),l=1/0,h=1/0;for(let j of o){let te=j.x??0,X=j.y??0;if(te0?Math.max(1,y/E):1;for(let j of o){let te=j.x??0,W=((j.y??0)-h)*w+d,J=te-l;j.x=W,j.y=J}for(let j of a){if(!j.points)continue;for(let te of j.points){let X=te.x,J=(te.y-h)*w+d,z=X-l;te.x=J,te.y=z}}NNr(i);let T=i.filter((j)=>j.isGroup&&!j.parentId);if(T.length===0){if(r==="RL")KSe(e,"x");return!0}let x=Jit(i),k=new Map;for(let j of i){if(j.isGroup)continue;let te=INr(j,x);if(!te)continue;let X=k.get(te)??[];X.push(j),k.set(te,X)}let A=0;for(let j of T){let te=j.padding??0;if(te>A)A=te}let R=[],N=1/0,L=-1/0;for(let j of T){let te=k.get(j.id)??[],X=eat(te);if(!X)continue;N=Math.min(N,X.minX),L=Math.max(L,X.maxX),R.push({lane:j,contentTop:X.minY,contentBottom:X.maxY,centerY:(X.minY+X.maxY)/2})}if(N===1/0||L===-1/0)return!0;let B=Math.max(0,L-N),D=Math.max(A,10),P=B+2*D,F=d+P,Q=(N+L)/2-P/2-d,Z=Q+F/2,Y=Math.max(A,d);R.sort((j,te)=>j.centerY-te.centerY);for(let j=0;jw.cy?R.bottom:R.top,Y=w.cx+N;if(Y<=R.left+kC||Y>=R.right-kC)continue;L={x:Y,y:Z},B={x:Y,y:d.y},D={x:d.x,y:d.y}}else{let Z=T.cx>w.cx?R.right:R.left,Y=w.cy+N;if(Y<=R.top+kC||Y>=R.bottom-kC)continue;L={x:Z,y:Y},B={x:d.x,y:Y},D={x:d.x,y:d.y}}let P=nT(L,B,kC),F=nT(B,D,kC);if(P&&F)continue;if(!P&&L0(L,B,a,[y],1))continue;if(!F&&L0(B,D,a,[E],1))continue;let H=!P&&HSe(L,B,e,o,{epsilon:kC,skipDegenerateOther:!0}),K=!F&&HSe(B,D,e,o,{epsilon:kC,skipDegenerateOther:!0});if(H||K)continue;if(P)A=[B,D];else if(F)A=[L,B];else A=[L,B,D];break}if(A)o.points=A}}function PNr(e,r){let{realNodeRects:l,labelNodeRects:h}=QL(r.values());for(let d of e){if(d.isLayoutOnly)continue;let p=d.points;if(!p||p.length<4)continue;let m=lu(p,0.001);if(m.length<4)continue;let y=m.length-1,E=m[y],w=m[y-1],T=m[y-2],x=E.x-w.x,k=E.y-w.y,A=Math.hypot(x,k);if(A>=10||A<0.001)continue;let R=w.x-T.x,N=w.y-T.y;if(Math.hypot(R,N)<0.001)continue;let B=zp(w,E,0.001),D=Vp(w,E,0.001),P=zp(T,w,0.001),F=Vp(T,w,0.001);if(!(B&&F||D&&P))continue;let{end:H,start:K}=d,Q=H?r.get(H):void 0;if(!Q)continue;let Z=Q.x??0,Y=Q.y??0,j=n2(Q);if(!j)continue;let te,X;if(F){let se=N<0;te={x:Z,y:T.y},X={x:Z,y:se?j.bottom:j.top}}else{let se=R>0;te={x:T.x,y:Y},X={x:se?j.right:j.left,y:Y}}if(L0(te,X,l,H?[H]:[],-2))continue;if(L0(te,X,h,[],-2))continue;if(K){let se=r.get(K),he=se?n2(se):void 0;if(he&&Yit(te,he,2))continue}let W=I((se,he)=>`${se.x.toFixed(3)},${se.y.toFixed(3)}|${he.x.toFixed(3)},${he.y.toFixed(3)}`,"ownSegmentKey"),J=new Set;for(let se=0;se{for(let ye of e){if(ye===d)continue;if(ye.isLayoutOnly)continue;let xe=ye.points;if(!xe||xe.length<2)continue;for(let Ie=0;Ie=0){let se=m[y-3],he=[K,H].filter((ye)=>Boolean(ye));if(L0(se,te,l,he,-2))continue;if(z(se,te))continue}let ie=[...m.slice(0,y-2),te,X];d.points=ie;let le=d.labelNodeId;if(le){let se=r.get(le);if(se){let he=se.width??0,ye=se.height??0;if(he>0&&ye>0){let xe,Ie,Ee=-1;for(let Ue=0;Ue=he+2||St&&je>=ye+2))continue;if(je>Ee)Ee=je,xe=(Me.x+Xe.x)/2,Ie=(Me.y+Xe.y)/2}if(xe!==void 0&&Ie!==void 0)se.x=xe,se.y=Ie}}}}}function xit(e,r){let o=I((T,x)=>{let k=T.x??0,A=T.y??0,R=x.x-k,N=x.y-A,L=(T.width??0)/2,B=(T.height??0)/2;if(Math.abs(N)*L>Math.abs(R)*B){if(N<0)B=-B;return{x:k+(N===0?0:B*R/N),y:A+B}}if(R<0)L=-L;return{x:k+L,y:A+(R===0?0:L*N/R)}},"rectIntersect"),l=I((T,x)=>{let k=lu(T.points??[]);if(k.length<2)return;let A=x?T.start:T.end,R=A?r.get(A):void 0,N=R?n2(R):void 0;if(!R||!A||!N)return;let L=x?k[0]:k[k.length-1],B=x?k[1]:k[k.length-2],D=o(R,L),P=L;if(lit(B,D))P=B;if(Fc(D,P,ds))return{edge:T,edgeId:String(T.id??""),nodeId:A,atStart:x,orientation:"V",coord:D.x,min:Math.min(D.y,P.y),max:Math.max(D.y,P.y),boundary:D,railEnd:P,rect:N};if(Wc(D,P,ds))return{edge:T,edgeId:String(T.id??""),nodeId:A,atStart:x,orientation:"H",coord:D.y,min:Math.min(D.x,P.x),max:Math.max(D.x,P.x),boundary:D,railEnd:P,rect:N};return},"terminalLaneFor"),h=I((T,x)=>Math.max(0,Math.min(T.max,x.max)-Math.max(T.min,x.min)),"projectedOverlapLength"),d=I((T,x)=>{if(T.nodeId!==x.nodeId||T.orientation!==x.orientation)return!1;if(T.orientation==="H")return(Math.abs(T.boundary.x-T.rect.left)<1||Math.abs(T.boundary.x-T.rect.right)<1)&&Fc(T.boundary,x.boundary,1);return(Math.abs(T.boundary.y-T.rect.top)<1||Math.abs(T.boundary.y-T.rect.bottom)<1)&&Wc(T.boundary,x.boundary,1)},"sameTerminalFace"),p=I((T,x)=>{if(T.nodeId!==x.nodeId||T.orientation!==x.orientation)return!1;return h(T,x)>=e1&&Math.abs(T.coord-x.coord)<0.5},"exactTerminalLaneConflict"),m=I((T,x)=>{if(T.nodeId!==x.nodeId||T.orientation!==x.orientation||T.orientation!=="H"||T.atStart===x.atStart)return!1;let k=h(T,x);if(k2*A)return!1;return d(T,x)&&Math.abs(T.coord-x.coord)<16},"nearTerminalLaneConflict"),y=I((T,x)=>{let k=lu(T.edge.points??[]);if(k.length<2)return;let A=T.orientation==="V"?{x:T.boundary.x+x,y:T.boundary.y}:{x:T.boundary.x,y:T.boundary.y+x},R=T.orientation==="V"?{x:T.railEnd.x+x,y:T.railEnd.y}:{x:T.railEnd.x,y:T.railEnd.y+x};if(!I(()=>{if(Math.abs(T.boundary.y-T.rect.top)<1||Math.abs(T.boundary.y-T.rect.bottom)<1)return Wc(A,T.boundary,ds)&&A.x>=T.rect.left+1&&A.x<=T.rect.right-1;if(Math.abs(T.boundary.x-T.rect.left)<1||Math.abs(T.boundary.x-T.rect.right)<1)return Fc(A,T.boundary,ds)&&A.y>=T.rect.top+1&&A.y<=T.rect.bottom-1;return!1},"boundaryStaysOnSameFace")())return;if(T.atStart){let P=k.length>1&&nT(k[1],T.railEnd,ds),F=k.slice(P?2:1),H=F[0];if(H&&!lit(H,R))return;return[A,R,...F]}let L=k.length>1&&nT(k[k.length-2],T.railEnd,ds),B=k.slice(0,L?-2:-1),D=B[B.length-1];if(D&&!lit(D,R))return;return[...B,R,A]},"shiftedCandidate"),E=I((T)=>{let x=T.edge,k=lu(x.points??[]);if(k.length!==2)return!1;let{start:A,end:R}=x,N=A?r.get(A):void 0,L=R?r.get(R):void 0;if(!N||!L)return!1;let B=N.x??0,D=N.y??0,P=L.x??0,F=L.y??0,[H,K]=k;return Wc(H,K,ds)&&Math.abs(D-F)<1&&Math.abs(B-P)>1||Fc(H,K,ds)&&Math.abs(B-P)<1&&Math.abs(D-F)>1},"laneIsStraightCollinearConnector"),w=[-7,7,-14,14,-21,21];for(let T=0;T<8;T++){let x=e.filter((A)=>!A.isLayoutOnly).flatMap((A)=>[l(A,!0),l(A,!1)]).filter((A)=>Boolean(A)),k=!1;for(let A=0;A{let H=E(P),K=E(F);if(H!==K)return Number(H)-Number(K);return Number(!F.atStart)-Number(!P.atStart)});for(let P of D){for(let F of w){let H=y(P,F);if(!H)continue;let K=l({...P.edge,points:H},P.atStart);if(!K||x.some((Q)=>Q.edge!==P.edge&&(p(K,Q)||B&&m(K,Q))))continue;P.edge.points=H,k=!0;break}if(k)break}}if(!k)return}}function FNr(e,r){let{realNodeRects:o,labelNodeRects:l}=QL(r.values()),h=I((p,m)=>{let{start:y,end:E}=p,w=$l(m);if(w.length!==m.length-1)return!1;let T=[y,E].filter((x)=>Boolean(x));for(let x of w){if(L0(x.a,x.b,o,T,-2))return!1;if(L0(x.a,x.b,l,[],-2))return!1}for(let x of e){if(x===p||x.isLayoutOnly)continue;let k=x.points;if(!k||k.length<2)continue;for(let A of w)for(let R of $l(lu(k))){if(N3(A,R,0.5)>=e1)return!1;if(KR(A.a,A.b,R.a,R.b,ds))return!1}}return!0},"candidateIsSafe"),d=I((p,m)=>{if(m+4>=p.length)return;let y=p[m],E=p[m+1],w=p[m+2],T=p[m+3],x=p[m+4],k=zp(y,E)&&Vp(E,w)&&zp(w,T)&&Vp(T,x)&&Fc(y,T,ds)&&Fc(y,x,ds)&&Fc(E,w,ds)&&(E.x-y.x)*(T.x-w.x)<0,A=Vp(y,E)&&zp(E,w)&&Vp(w,T)&&zp(T,x)&&Wc(y,T,ds)&&Wc(y,x,ds)&&Wc(E,w,ds)&&(E.y-y.y)*(T.y-w.y)<0;if(k||A)return lu([...p.slice(0,m+1),x,...p.slice(m+5)]);if(m+5>=p.length)return;let R=p[m+5],N=Vp(y,E)&&zp(E,w)&&Vp(w,T)&&zp(T,x)&&Vp(x,R)&&Fc(y,x,ds)&&Fc(y,R,ds)&&Fc(w,T,ds)&&(w.x-E.x)*(x.x-T.x)<0,L=zp(y,E)&&Vp(E,w)&&zp(w,T)&&Vp(T,x)&&zp(x,R)&&Wc(y,x,ds)&&Wc(y,R,ds)&&Wc(w,T,ds)&&(w.y-E.y)*(x.y-T.y)<0;if(!N&&!L)return;return lu([...p.slice(0,m+1),R,...p.slice(m+6)])},"withoutDogleg");for(let p=0;p<8;p++){let m=!1;for(let y of e){if(y.isLayoutOnly)continue;let E=lu(y.points??[]);for(let w=0;w<=E.length-5;w++){let T=d(E,w);if(!T||!h(y,T))continue;y.points=T,m=!0;break}if(m)break}if(!m)return}}function Cit(e,r){let{realNodeRects:l,labelNodeRects:h}=QL(r.values()),d=e.filter((x)=>!x.isLayoutOnly),p=I((x,k,A)=>lu(x===k?A??[]:x.points??[]),"pointsFor"),m=I((x,k)=>{let A=0;for(let R=0;R{let k=$l(x);if(k.length!==3)return;let A=k[1];if(k[0].horizontal===A.horizontal||k[2].horizontal===A.horizontal)return;return{index:A.index,horizontal:A.horizontal,vertical:A.vertical,segment:A}},"middleRail"),E=I((x,k)=>{let A=[x.start,x.end].filter((R)=>Boolean(R));return l.filter((R)=>{if(A.includes(R.id))return!1;let N=R.rect;if(k.horizontal)return yv(k.a.x,k.b.x,N.left,N.right)>=e1&&k.a.y>=N.top-2&&k.a.y<=N.bottom+2;return yv(k.a.y,k.b.y,N.top,N.bottom)>=e1&&k.a.x>=N.left-2&&k.a.x<=N.right+2})},"blockingRectsFor"),w=I((x,k,A)=>{let R=x.map((L)=>({...L}));if(k.horizontal)R[k.index].y=A,R[k.index+1].y=A;else if(k.vertical)R[k.index].x=A,R[k.index+1].x=A;else return;let N=L3(lu(R));return $l(N).length===N.length-1?N:void 0},"candidateByMovingRail"),T=I((x,k,A)=>{let R=[x.start,x.end].filter((L)=>Boolean(L)),N=$l(k);if(N.length!==k.length-1)return!1;for(let L of N){if(L0(L.a,L.b,l,R,-2))return!1;if(L0(L.a,L.b,h,[],-2))return!1}for(let L of d){if(L===x)continue;for(let B of N)for(let D of $l(p(L)))if(N3(B,D,0.5)>=e1)return!1}return m(x,k)<=A},"candidateIsSafe");for(let x=0;x<8;x++){let k=m(),A=!1;for(let R of d){let N=p(R),L=y(N);if(!L)continue;let B=E(R,L.segment);if(B.length===0)continue;let D=L.horizontal?[Math.min(...B.map((P)=>P.rect.top))-20,Math.max(...B.map((P)=>P.rect.bottom))+20]:[Math.min(...B.map((P)=>P.rect.left))-20,Math.max(...B.map((P)=>P.rect.right))+20];for(let P of D){let F=w(N,L.segment,P);if(!F||!T(R,F,k))continue;R.points=F,A=!0;break}if(A)break}if(!A)return}}function kit(e,r,i){let o=I((m)=>{let y=m.groupTitleRect;if(!y||typeof y.left!=="number"||typeof y.right!=="number"||typeof y.top!=="number"||typeof y.bottom!=="number"||!Number.isFinite(y.left)||!Number.isFinite(y.right)||!Number.isFinite(y.top)||!Number.isFinite(y.bottom)||y.right<=y.left||y.bottom<=y.top)return;return{left:y.left,right:y.right,top:y.top,bottom:y.bottom}},"validTitleRect"),l=I((m)=>{if(!m.isGroup||m.parentId)return;let y=BNr(m.direction??i);if(y==="LR"||y==="RL"||y==="BT")return;let E=o(m),{y:w,height:T}=m;if(!E||typeof w!=="number"||typeof T!=="number"||!Number.isFinite(w)||!Number.isFinite(T)||T<=0)return;let x=E.right-E.left,k=E.bottom-E.top;if(k<=0||x{if(!m.horizontal)return!1;let E=m.a.y;if(Ey.bottom+ds)return!1;return yv(m.a.x,m.b.x,y.left,y.right)>=e1},"horizontalSegmentIntersectsTitle"),d=[...r.values()].map(l).filter((m)=>Boolean(m));if(d.length===0)return;let p=0;for(let m of e){if(m.isLayoutOnly)continue;let y=lu(m.points??[]);for(let E of $l(y))for(let w of d){if(!h(E,w.rect))continue;p=Math.max(p,w.rect.bottom-E.a.y+4)}}if(p<=ds)return;for(let m of d){let y=m.node.y,E=m.node.height;if(typeof y!=="number"||typeof E!=="number"||!Number.isFinite(y)||!Number.isFinite(E)||E<=0)continue;m.node.y=y-p/2,m.node.height=E+p,m.node.groupTitleRect={...m.rect,top:m.rect.top-p,bottom:m.rect.bottom-p}}}function Ait(e,r,i){let o=I((y)=>{let E=y.groupTitleRect;if(!E||typeof E.left!=="number"||typeof E.right!=="number"||typeof E.top!=="number"||typeof E.bottom!=="number"||!Number.isFinite(E.left)||!Number.isFinite(E.right)||!Number.isFinite(E.top)||!Number.isFinite(E.bottom)||E.right<=E.left||E.bottom<=E.top)return;return{left:E.left,right:E.right,top:E.top,bottom:E.bottom}},"validTitleRect"),l=I((y)=>{if(!y.isGroup||y.parentId)return;if(BNr(y.direction??i)!=="LR")return;let w=o(y),{x:T,width:x}=y;if(!w||typeof T!=="number"||typeof x!=="number"||!Number.isFinite(T)||!Number.isFinite(x)||x<=0)return;let k=w.right-w.left,A=w.bottom-w.top;if(k<=0||A{if(!y.vertical)return!1;let w=y.a.x;if(wE.right+ds)return!1;return yv(y.a.y,y.b.y,E.top,E.bottom)>=e1},"verticalSegmentIntersectsTitle"),d=I((y,E)=>{if(!y.horizontal)return!1;let w=y.a.y;if(wE.bottom+ds)return!1;return yv(y.a.x,y.b.x,E.left,E.right)>=e1},"horizontalSegmentIntersectsTitle"),p=[...r.values()].map(l).filter((y)=>Boolean(y));if(p.length===0)return;let m=0;for(let y of e){if(y.isLayoutOnly)continue;let E=lu(y.points??[]);for(let w of $l(E))for(let T of p)if(h(w,T.rect))m=Math.max(m,T.rect.right-w.a.x+4);else if(d(w,T.rect)){let x=Math.min(w.a.x,w.b.x);m=Math.max(m,T.rect.right-x+4)}}if(m<=ds)return;for(let y of p){let E=y.node.x,w=y.node.width;if(typeof E!=="number"||typeof w!=="number"||!Number.isFinite(E)||!Number.isFinite(w)||w<=0)continue;y.node.x=E-m/2,y.node.width=w+m,y.node.groupTitleRect={...y.rect,left:y.rect.left-m,right:y.rect.right-m}}}function $Nr(e,r){let{realNodeRects:o}=QL(r.values()),l=e.filter((k)=>!k.isLayoutOnly),h=I((k,A=new Map)=>lu(A.get(k)??k.points??[]),"replacementPointsFor"),d=I((k=new Map)=>{let A=0;for(let R=0;Rl.reduce((A,R)=>A+ZE(h(R,k)),0),"totalBends"),m=I((k)=>{let A=h(k);if(A.length<4)return;let R=A[A.length-2],N=A[A.length-1];if(!zp(R,N,ds)&&!Vp(R,N,ds))return;return{tailStart:R,terminal:N}},"terminalTailFor"),y=I((k,A)=>{let R=h(k);if(R.length<3)return;let N=R[0],L=R[1],B;if(zp(N,L,ds))B={x:L.x,y:A.tailStart.y};else if(Vp(N,L,ds))B={x:A.tailStart.x,y:L.y};else return;let D=L3(lu([N,L,B,A.tailStart,A.terminal]));return $l(D).length===D.length-1?D:void 0},"candidateWithDestinationTail"),E=I((k,A)=>{let R=[k.start,k.end].filter((N)=>Boolean(N));for(let N of $l(A))if(L0(N.a,N.b,o,R,-2))return!0;return!1},"pathHasNodeHit"),w=I((k,A,R)=>{for(let N of l){if(N===k)continue;for(let L of $l(A))for(let B of $l(h(N,R)))if(N3(L,B,0.5)>=e1)return!0}return!1},"pathHasSharedTrack"),T=I((k,A,R)=>!E(k,A)&&!w(k,A,R),"candidateIsSafe"),x=I(()=>{let k=new Map;for(let A of l){let R=A.end;if(!R||!r.has(R))continue;if(h(A).length<4)continue;let L=k.get(R)??[];L.push(A),k.set(R,L)}return k},"edgesByDestination");for(let k=0;k<4;k++){let A=d();if(A===0)return;let R=p(),N,L=A,B=R;for(let D of x().values())for(let P=0;P=A)continue;if(X>L||X===L&&W>=B)continue;N=te,L=X,B=W}if(!N)return;for(let[D,P]of N)D.points=P}}function UNr(e,r){let{realNodeRects:h,labelNodeRects:d}=QL(r.values()),p=e.filter((D)=>!D.isLayoutOnly),m=I((D,P=new Map)=>lu(P.get(D)??D.points??[]),"replacementPointsFor"),y=I((D=new Map)=>{let P=0;for(let F=0;Fp.reduce((P,F)=>P+ZE(m(F,D)),0),"totalBends"),w=I((D)=>{let{start:P,end:F}=D,H=P?r.get(P):void 0,K=F?r.get(F):void 0,Q=H?n2(H):void 0,Z=K?n2(K):void 0;return Q&&Z?{src:Q,dst:Z}:void 0},"endpointRectsFor"),T=I((D,P,F)=>{if(F.index<=0||F.index+1>=P.length-1)return;let H=w(D);if(!H)return;if(F.vertical){let K=F.a.x,Q=Math.min(H.src.left,H.dst.left),Z=Math.max(H.src.right,H.dst.right),Y=KZ+ds?"right":void 0;if(!Y)return;return{edge:D,points:P,segmentIndex:F.index,axis:"vertical",side:Y,coord:K,min:Math.min(F.a.y,F.b.y),max:Math.max(F.a.y,F.b.y)}}if(F.horizontal){let K=F.a.y,Q=Math.min(H.src.top,H.dst.top),Z=Math.max(H.src.bottom,H.dst.bottom),Y=KZ+ds?"bottom":void 0;if(!Y)return;return{edge:D,points:P,segmentIndex:F.index,axis:"horizontal",side:Y,coord:K,min:Math.min(F.a.x,F.b.x),max:Math.max(F.a.x,F.b.x)}}return},"externalRailForSegment"),x=I(()=>{let D=[];for(let P of p){let F=m(P);for(let H of $l(F)){let K=T(P,F,H);if(K)D.push(K)}}return D},"collectExternalRails"),k=I((D,P)=>D.edge!==P.edge&&D.axis===P.axis&&D.side===P.side&&yv(D.min,D.max,P.min,P.max)>=e1,"railsInteract"),A=I((D)=>{let P=[],F=new Set;for(let H of D){if(F.has(H))continue;let K=[H],Q=[];F.add(H);while(K.length>0){let Z=K.pop();Q.push(Z);for(let Y of D)if(!F.has(Y)&&k(Z,Y))F.add(Y),K.push(Y)}if(Q.length>1)P.push(Q)}return P},"connectedComponents"),R=I((D)=>{let P=[];for(let F of D)if(!P.some((H)=>Math.abs(H-F.coord){let P=D.map((K)=>K.coord),F=R(D),H=[];if(D.length<=6){let K=Array(F.length).fill(!1),Q=[],Z=I(()=>{if(Q.length===D.length){if(Q.some((Y,j)=>Math.abs(Y-P[j])>=ds))H.push([...Q]);return}for(let[Y,j]of F.entries()){if(K[Y])continue;K[Y]=!0,Q.push(j),Z(),Q.pop(),K[Y]=!1}},"visit");return Z(),H}for(let K=0;K{let F=new Map;for(let[K,Q]of D.entries()){let Z=P[K],Y=F.get(Q.edge)??Q.points.map((j)=>({x:j.x,y:j.y}));if(Q.axis==="vertical")Y[Q.segmentIndex].x=Z,Y[Q.segmentIndex+1].x=Z;else Y[Q.segmentIndex].y=Z,Y[Q.segmentIndex+1].y=Z;F.set(Q.edge,Y)}let H=new Map;for(let[K,Q]of F){let Z=L3(lu(Q));if($l(Z).length!==Z.length-1)return;H.set(K,Z)}return H},"replacementsForAssignment"),B=I((D)=>{for(let[P,F]of D){let H=[P.start,P.end].filter((K)=>Boolean(K));for(let K of $l(F)){if(L0(K.a,K.b,h,H,-2))return!1;if(L0(K.a,K.b,d,[],-2))return!1}}for(let P=0;P=e1)return!1}}return!0},"candidateIsSafe");for(let D=0;D<4;D++){let P=y();if(P===0)return;let F,H=P,K=E(),Q=Number.POSITIVE_INFINITY;for(let Z of A(x()))for(let Y of N(Z)){let j=L(Z,Y);if(!j||!B(j))continue;let te=y(j);if(te>=P)continue;let X=E(j),W=Z.reduce((J,z,ne)=>J+Math.abs(Y[ne]-z.coord),0);if(te>H||te===H&&(X>K||X===K&&W>=Q))continue;F=j,H=te,K=X,Q=W}if(!F)return;for(let[Z,Y]of F)Z.points=Y}}function GNr(e,r){let{realNodeRects:o,labelNodeRects:l}=QL(r.values()),h=e.filter((x)=>!x.isLayoutOnly),d=I((x,k,A)=>lu(x===k?A??[]:x.points??[]),"pointsFor"),p=I((x)=>$l(x).reduce((k,A)=>{let R=A.a.x-A.b.x,N=A.a.y-A.b.y;return k+Math.hypot(R,N)},0),"pathLength"),m=I((x,k)=>{let A=0;for(let R=0;R{if(x.horizontal){let A=x.a.y;return(Math.abs(A-k.top)<1||Math.abs(A-k.bottom)<1)&&yv(x.a.x,x.b.x,k.left,k.right)>=e1}if(x.vertical){let A=x.a.x;return(Math.abs(A-k.left)<1||Math.abs(A-k.right)<1)&&yv(x.a.y,x.b.y,k.top,k.bottom)>=e1}return!1},"segmentRunsAlongRectBorder"),E=I((x)=>{let k=[x.start,x.end].filter((R)=>Boolean(R)),A=[];for(let R of k){let N=r.get(R),L=N?n2(N):void 0;if(L)A.push(L)}return A},"endpointRectsFor"),w=I((x,k)=>{if(k+3>=x.length)return[];let A=x[k],R=x[k+1],N=x[k+2],L=x[k+3],B=zp(A,R,ds)&&Vp(R,N,ds)&&zp(N,L,ds),D=Vp(A,R,ds)&&zp(R,N,ds)&&Vp(N,L,ds);if(!B&&!D)return[];if(!(B?Math.sign(R.x-A.x)!==Math.sign(L.x-N.x):Math.sign(R.y-A.y)!==Math.sign(L.y-N.y)))return[];let F=Fc(A,L,ds)||Wc(A,L,ds)?[]:[{x:A.x,y:L.y},{x:L.x,y:A.y}],H=F.length===0?[[...x.slice(0,k+1),...x.slice(k+3)]]:F.map((Q)=>[...x.slice(0,k+1),Q,...x.slice(k+3)]),K=new Set;return H.map((Q)=>L3(lu(Q))).filter((Q)=>{if($l(Q).length!==Q.length-1)return!1;if(!Q.some((Y)=>nT(Y,L,ds)))return!1;let Z=Q.map((Y)=>`${Y.x.toFixed(3)},${Y.y.toFixed(3)}`).join("|");if(K.has(Z))return!1;return K.add(Z),!0})},"shortcutCandidatesAt"),T=I((x,k,A)=>{let R=[x.start,x.end].filter((L)=>Boolean(L)),N=E(x);for(let L of $l(k)){if(L0(L.a,L.b,o,R,-2))return!1;if(L0(L.a,L.b,l,[],-2))return!1;if(N.some((B)=>y(L,B)))return!1}for(let L of h){if(L===x)continue;for(let B of $l(k))for(let D of $l(d(L)))if(N3(B,D,0.5)>=e1)return!1}return m(x,k)<=A},"candidateIsSafe");for(let x=0;x<8;x++){let k=m(),A,R,N=k,{POSITIVE_INFINITY:L,POSITIVE_INFINITY:B}=Number;for(let D of h){let P=d(D),F=ZE(P,ds),H=p(P);for(let K=0;K<=P.length-4;K++)for(let Q of w(P,K)){let Z=ZE(Q,ds),Y=p(Q);if(!(ZN||te===N&&(Z>L||Z===L&&Y>=B))continue;A=D,R=Q,N=te,L=Z,B=Y}}if(!A||!R)return;A.points=R}}function zNr(e,r){let h=[];for(let We of r.values()){if(We.isGroup||We.isEdgeLabel)continue;let Nt=We.x??0,ct=We.y??0,bt=n2(We);if(!bt)continue;h.push({id:String(We.id??""),cx:Nt,cy:ct,rect:bt})}if(h.length===0)return;let d=new Map(h.map((We)=>[We.id,We])),p=h.map((We)=>({id:We.id,rect:We.rect})),m=["top","bottom","left","right"],y={top:Math.min(...h.map((We)=>We.rect.top))-20,bottom:Math.max(...h.map((We)=>We.rect.bottom))+20,left:Math.min(...h.map((We)=>We.rect.left))-20,right:Math.max(...h.map((We)=>We.rect.right))+20},E=e.filter((We)=>!We.isLayoutOnly),w=new Map(E.map((We,Nt)=>[We,Nt])),T=I((We)=>{let Nt=We==="left"||We==="top"?-1:1,ct=[];for(let bt=0;bt<=2;bt++)ct.push(y[We]+Nt*20*bt);return ct},"outwardTracksForSide"),x=I((We,Nt=new Map)=>lu(Nt.get(We)??We.points??[]),"replacementPointsFor"),k=I((We,Nt)=>{let ct=0;for(let bt of We)for(let Pe of Nt)if(KR(bt.a,bt.b,Pe.a,Pe.b,ds))ct++;return ct},"crossingCountBetweenSegments"),A=I((We,Nt)=>k($l(We),$l(Nt)),"crossingCountBetweenPaths"),R=I((We=new Map)=>{let Nt=0,ct=[],bt=new Set,Pe=[],Ge=I((qe)=>{if(!bt.has(qe))bt.add(qe),Pe.push(qe)},"addEdge");for(let qe=0;qe0)Nt+=pe,ct.push({first:Ke,second:oe,count:pe}),Ge(Ke),Ge(oe)}}return Pe.sort((qe,Ke)=>(w.get(qe)??0)-(w.get(Ke)??0)),{count:Nt,pairs:ct,edgeSet:bt,edges:Pe}},"crossingSnapshot"),N=I((We,Nt)=>{let ct=new Set(Nt.keys());if(ct.size===0)return We.count;let bt=0;for(let Ge of We.pairs)if(ct.has(Ge.first)||ct.has(Ge.second))bt+=Ge.count;let Pe=0;for(let Ge=0;Ge{let Nt=new Map;for(let Pe of We.pairs){let Ge=Nt.get(Pe.first)??new Set;Ge.add(Pe.second),Nt.set(Pe.first,Ge);let qe=Nt.get(Pe.second)??new Set;qe.add(Pe.first),Nt.set(Pe.second,qe)}let ct=[],bt=new Set;for(let Pe of We.edges){if(bt.has(Pe))continue;let Ge=[Pe],qe=[];bt.add(Pe);while(Ge.length>0){let Ke=Ge.pop();qe.push(Ke);for(let Je of Nt.get(Ke)??[])if(!bt.has(Je))bt.add(Je),Ge.push(Je)}if(qe.sort((Ke,Je)=>(w.get(Ke)??0)-(w.get(Je)??0)),qe.length>1)ct.push(qe)}return ct},"crossingComponents"),B=I((We)=>[We.start,We.end].filter((Nt)=>Boolean(Nt)),"endpointIdsFor"),D=I((We)=>{let Nt=[];for(let ct of L(We)){let bt=new Set(ct),Pe=new Set(ct.flatMap((qe)=>B(qe))),Ge=[...ct];for(let qe of E){if(bt.has(qe))continue;if(B(qe).some((Ke)=>Pe.has(Ke)))Ge.push(qe)}Ge.sort((qe,Ke)=>(w.get(qe)??0)-(w.get(Ke)??0)),Nt.push(Ge)}return Nt},"pairSearchGroups"),P=I((We,Nt,ct)=>N(We,new Map([[Nt,ct]])),"crossingCountWithSingleReplacement"),F=I((We)=>{let Nt=new Map;for(let ct of We.pairs)Nt.set(ct.first,(Nt.get(ct.first)??0)+ct.count),Nt.set(ct.second,(Nt.get(ct.second)??0)+ct.count);return Nt},"currentCrossingsByEdge"),H=I((We)=>We.slice(1).reduce((Nt,ct,bt)=>{let Pe=We[bt];return Nt+Math.abs(ct.x-Pe.x)+Math.abs(ct.y-Pe.y)},0),"pathLength"),K=I((We=new Map)=>E.reduce((Nt,ct)=>Nt+ZE(x(ct,We)),0),"totalBends"),Q=I((We=new Map)=>E.reduce((Nt,ct)=>Nt+H(x(ct,We)),0),"totalLength"),Z=I((We,Nt,ct=new Map)=>{let bt=$l(Nt);for(let Pe of E){if(Pe===We)continue;for(let Ge of bt)for(let qe of $l(x(Pe,ct)))if(N3(Ge,qe,0.5)>=e1)return!0}return!1},"pathHasSegmentConflict"),Y=I((We,Nt)=>{let ct=[We.start,We.end].filter((bt)=>Boolean(bt));for(let bt of $l(Nt))if(L0(bt.a,bt.b,p,ct,-2))return!0;return!1},"pathHitsNode"),j=I((We,Nt)=>{let ct=L3(lu(Nt));if($l(ct).length===ct.length-1)We.push(ct)},"pushOrthogonalCandidate"),te=I((We)=>We==="left"||We==="right","sideIsHorizontal"),X=I((We,Nt,ct)=>{switch(Nt){case"left":return Math.min(We.x,ct.x)-20;case"right":return Math.max(We.x,ct.x)+20;case"top":return Math.min(We.y,ct.y)-20;case"bottom":return Math.max(We.y,ct.y)+20}},"localTrackForSameSide"),W=I((We,Nt,ct,bt)=>{let Pe=ct==="left"||ct==="top"?-1:1,Ge=[X(Nt,ct,bt),y[ct]];for(let qe of Ge)for(let Ke=0;Ke<=2;Ke++)j(We,jit(Nt,ct,bt,qe+Pe*20*Ke))},"addSameSideCandidates"),J=I((We,Nt,ct,bt,Pe)=>{for(let Ge of T(ct))for(let qe of T(Pe))j(We,[Nt,{x:Ge,y:Nt.y},{x:Ge,y:qe},{x:bt.x,y:qe},bt])},"addHorizontalToVerticalCandidates"),z=I((We,Nt,ct,bt,Pe)=>{for(let Ge of T(ct))for(let qe of T(Pe))j(We,[Nt,{x:Nt.x,y:Ge},{x:qe,y:Ge},{x:qe,y:bt.y},bt])},"addVerticalToHorizontalCandidates"),ne=I((We,Nt,ct,bt,Pe)=>{let Ge=[...T("top"),...T("bottom")];for(let qe of T(ct))for(let Ke of T(Pe))for(let Je of Ge)j(We,[Nt,{x:qe,y:Nt.y},{x:qe,y:Je},{x:Ke,y:Je},{x:Ke,y:bt.y},bt])},"addHorizontalPairCandidates"),ie=I((We,Nt,ct,bt,Pe)=>{let Ge=[...T("left"),...T("right")];for(let qe of T(ct))for(let Ke of T(Pe))for(let Je of Ge)j(We,[Nt,{x:Nt.x,y:qe},{x:Je,y:qe},{x:Je,y:Ke},{x:bt.x,y:Ke},bt])},"addVerticalPairCandidates"),le=I((We)=>{let Nt=new Set;return We.map((ct)=>lu(ct)).filter((ct)=>{let bt=ct.map((Pe)=>`${Pe.x.toFixed(3)},${Pe.y.toFixed(3)}`).join("|");if(Nt.has(bt)||ct.length<2)return!1;return Nt.add(bt),!0})},"dedupeCandidatePaths"),se=I((We,Nt,ct,bt)=>{let Pe=[],Ge=Wit(We,Nt,ct,bt,20,ds);if(Ge)j(Pe,Ge);if(Nt===bt)W(Pe,We,Nt,ct);let qe=te(Nt),Ke=te(bt);if(qe&&!Ke)J(Pe,We,Nt,ct,bt);else if(!qe&&Ke)z(Pe,We,Nt,ct,bt);else if(qe)ne(Pe,We,Nt,ct,bt);else ie(Pe,We,Nt,ct,bt);return le(Pe)},"buildCandidatesForSides"),he=I((We,Nt,ct,bt)=>{let Pe=[...T("left"),...T("right")],Ge=[...T("top"),...T("bottom")];for(let qe of m){let Ke=bB(bt,qe),Je=qe==="top"||qe==="bottom"?T(qe):Ge;for(let De of Pe){j(We,[Nt,ct,{x:De,y:ct.y},{x:De,y:Ke.y},Ke]);for(let oe of Je)j(We,[Nt,ct,{x:De,y:ct.y},{x:De,y:oe},{x:Ke.x,y:oe},Ke])}}},"addVerticalDepartureOuterTrackCandidates"),ye=I((We,Nt,ct,bt)=>{let Pe=[...T("left"),...T("right")],Ge=[...T("top"),...T("bottom")];for(let qe of m){let Ke=bB(bt,qe),Je=qe==="left"||qe==="right"?T(qe):Pe;for(let De of Ge){j(We,[Nt,ct,{x:ct.x,y:De},{x:Ke.x,y:De},Ke]);for(let oe of Je)j(We,[Nt,ct,{x:ct.x,y:De},{x:oe,y:De},{x:oe,y:Ke.y},Ke])}}},"addHorizontalDepartureOuterTrackCandidates"),xe=I((We)=>{let{start:Nt,end:ct}=We,bt=ct?d.get(ct):void 0;if(!Nt||!bt)return[];let Pe=lu(We.points??[]);if(Pe.length<4)return[];let Ge=Pe[0],qe=Pe[1],Ke=[];if(Vp(Ge,qe,ds))he(Ke,Ge,qe,bt);else if(zp(Ge,qe,ds))ye(Ke,Ge,qe,bt);return Ke},"terminalPreservingOuterTrackCandidates"),Ie=I((We)=>{let{start:Nt,end:ct}=We,bt=Nt?d.get(Nt):void 0,Pe=ct?d.get(ct):void 0;if(!bt||!Pe)return[];let Ge=[];for(let qe of m){let Ke=bB(bt,qe);for(let Je of m)Ge.push(...se(Ke,qe,bB(Pe,Je),Je))}return Ge.push(...xe(We)),Ge},"candidatePathsFor"),Ee=I(()=>new Map(E.map((We)=>[We,$l(x(We))])),"currentSegmentsByEdge"),Ue=I((We,Nt,ct)=>{let bt=new Set;for(let Pe of E){if(Pe===We)continue;let Ge=ct.get(Pe)??$l(x(Pe));if(Nt.some((qe)=>Ge.some((Ke)=>N3(qe,Ke,0.5)>=e1)))bt.add(Pe)}return bt},"sharedTrackConflictsFor"),Me=I((We,Nt,ct,bt)=>{let Pe=new Set;return Ie(We).map((qe)=>L3(lu(qe))).filter((qe)=>{if(Y(We,qe))return!1;let Ke=qe.map((Je)=>`${Je.x.toFixed(3)},${Je.y.toFixed(3)}`).join("|");if(Pe.has(Ke)||qe.length<2)return!1;return Pe.add(Ke),!0}).map((qe)=>{let Ke=$l(qe),Je=0;for(let De of E){if(De===We)continue;Je+=k(Ke,ct.get(De)??$l(x(De)))}return{candidate:qe,candidateSegments:Ke,crossings:Nt.count-(bt.get(We)??0)+Je,bends:ZE(qe,ds),totalBends:ZE(qe),length:H(qe)}}).filter(({crossings:qe})=>qe<=Nt.count).sort((qe,Ke)=>qe.crossings-Ke.crossings||qe.bends-Ke.bends||qe.length-Ke.length).slice(0,48).map((qe)=>({path:qe.candidate,segments:qe.candidateSegments,sharedTrackConflicts:Ue(We,qe.candidateSegments,ct),totalBends:qe.totalBends,length:qe.length}))},"pairCandidatesFor"),Xe=I((We,Nt,ct,bt,Pe,Ge)=>{let qe=0;for(let Je of We.pairs)if(Je.first===Nt||Je.second===Nt||Je.first===bt||Je.second===bt)qe+=Je.count;let Ke=k(ct.segments,Pe.segments);for(let Je of E){if(Je===Nt||Je===bt)continue;let De=Ge.get(Je)??$l(x(Je));Ke+=k(ct.segments,De)+k(Pe.segments,De)}return We.count-qe+Ke},"pairCrossingCount"),je=I((We,Nt)=>{for(let ct of We.sharedTrackConflicts)if(ct!==Nt)return!1;return!0},"conflictsOnlyWith"),Qe=I((We,Nt)=>We.segments.some((ct)=>Nt.segments.some((bt)=>N3(ct,bt,0.5)>=e1)),"candidatesShareTrack"),St=I((We,Nt,ct,bt)=>je(Nt,ct.edge)&&je(bt,We.edge)&&!Qe(Nt,bt),"pairCandidatesAreCompatible"),pt=I((We,Nt,ct,bt,Pe)=>{let Ge=Xe(We.current,Nt.edge,ct,bt.edge,Pe,We.baseSegments);if(Ge>=We.current.count)return;return{replacements:new Map([[Nt.edge,ct.path],[bt.edge,Pe.path]]),crossings:Ge,bends:We.currentBends-(We.baseBendsByEdge.get(Nt.edge)??0)-(We.baseBendsByEdge.get(bt.edge)??0)+ct.totalBends+Pe.totalBends,length:We.currentLength-(We.baseLengthByEdge.get(Nt.edge)??0)-(We.baseLengthByEdge.get(bt.edge)??0)+ct.length+Pe.length}},"scorePairReplacement"),Vt=I((We,Nt)=>We.crossings{let Pe=bt;for(let Ge of Nt.candidates)for(let qe of ct.candidates){if(!St(Nt,Ge,ct,qe))continue;let Ke=pt(We,Nt,Ge,ct,qe);if(Ke&&Vt(Ke,Pe))Pe=Ke}return Pe},"bestScoreForOptionPair"),rr=I((We)=>{let Nt=K(),ct=Q(),bt=Ee(),Pe=F(We),Ge=new Map(E.map((pe)=>[pe,ZE(x(pe))])),qe=new Map(E.map((pe)=>[pe,H(x(pe))])),Ke=new Map,Je=D(We);for(let pe of Je)for(let fe of pe){if(Ke.has(fe))continue;let be=Me(fe,We,bt,Pe);if(be.length>0)Ke.set(fe,{edge:fe,candidates:be})}let De={replacements:new Map,crossings:We.count,bends:Nt,length:ct},oe={current:We,currentBends:Nt,currentLength:ct,baseBendsByEdge:Ge,baseLengthByEdge:qe,baseSegments:bt};for(let pe of Je){let fe=new Set(pe.filter((ze)=>We.edgeSet.has(ze))),be=pe.map((ze)=>Ke.get(ze)).filter((ze)=>Boolean(ze));for(let ze=0;ze0?De.replacements:void 0},"bestPairedReplacement");for(let We=0;We<4;We++){let Nt=R(),ct=Nt.count;if(ct===0)return;let bt,Pe,Ge=ct,qe=Number.POSITIVE_INFINITY;for(let Je of Nt.edges){let De=ZE(x(Je),ds);for(let oe of Ie(Je)){let pe=Y(Je,oe),fe=!pe&&Z(Je,oe),be=P(Nt,Je,oe),ze=ZE(oe,ds);if(pe||fe)continue;if(!(beGe||be===Ge&&ze>=qe)continue;bt=Je,Pe=oe,Ge=be,qe=ze}}if(bt&&Pe){bt.points=Pe;continue}let Ke=rr(Nt);if(!Ke)return;for(let[Je,De]of Ke)Je.points=De}}function VNr(e,r){let{nodeInfoById:i,realNodeRects:a}=JSe(r),o=["top","bottom","left","right"],l=20,h={top:Math.min(...a.map((k)=>k.rect.top))-20,bottom:Math.max(...a.map((k)=>k.rect.bottom))+20,left:Math.min(...a.map((k)=>k.rect.left))-20,right:Math.max(...a.map((k)=>k.rect.right))+20},d=I((k,A,R,N)=>{let L=[],B=Wit(k,A,R,N,20,XL);if(B)L.push(B);if(A===N)L.push(jit(k,A,R,h[A]));return L},"buildOrthogonalPathCandidates"),p=I((k,A)=>{for(let R=0;R{let N=0,L=pq(k,XL),{start:B,end:D}=A;for(let P of e){if(P===A||P.isLayoutOnly)continue;let{start:F,end:H}=P;if(!R&&B&&D&&(F===B||F===D||H===B||H===D))continue;let K=P.points;if(!K||K.length<2)continue;for(let Q of L)for(let Z of pq(K,XL)){if(Xit(Q.a,Q.b,Z.a,Z.b,XL,XL)){N++;continue}if(N3(Q,Z,XL)>=eai)N++}}return N},"pathConflictCount"),y=4,E=I((k,A)=>{let R=Math.abs(k.y-A.rect.top),N=Math.abs(k.y-A.rect.bottom),L=Math.abs(k.x-A.rect.left),B=Math.abs(k.x-A.rect.right),D="top",P=R;if(N{let N=w.get(k)??[];N.push({side:A,edgeId:R}),w.set(k,N)},"addFaceClaim");for(let k of e){if(k.isLayoutOnly)continue;let A=k.points??[];if(A.length<1)continue;let R=k.id??"",{start:N,end:L}=k;if(N){let B=i.get(N);if(B)T(N,E(A[0],B),R)}if(L){let B=i.get(L);if(B)T(L,E(A[A.length-1],B),R)}}let x=I((k,A,R)=>w.get(k)?.some((N)=>N.edgeId!==R&&N.side===A)??!1,"faceIsClaimed");for(let k of e){if(k.isLayoutOnly)continue;let A=k.points;if(!A||A.length<2)continue;let R=ZE(A,XL);if(R<4)continue;let{start:N,end:L}=k;if(!N||!L)continue;let B=i.get(N),D=i.get(L);if(!B||!D)continue;let P=k.id??"",F=m(A,k,!0),H=m(A,k),K,Q=F,Z=R;for(let Y of o){if(x(N,Y,P))continue;let j=bB(B,Y);for(let te of o){if(x(L,te,P))continue;let X=bB(D,te);for(let W of d(j,Y,X,te)){if(p(W,[N,L]))continue;let J=ZE(W,XL);if(F>0){let z=m(W,k,!0);if(z>Q||z===Q&&J>=Z)continue;Q=z,Z=J,K=W;continue}if(m(W,k)>H)continue;if(Jte.edgeId!==P));let j=w.get(L);if(j)w.set(L,j.filter((te)=>te.edgeId!==P));T(N,E(K[0],B),P),T(L,E(K[K.length-1],D),P)}}}function Rit(e,r){let i=r?0:e.length-1,a=r?1:-1,o=e[i],l=e[i+a];if(!o||!l)return;let h=l.x-o.x,d=l.y-o.y;if(Math.abs(h)+Math.abs(d)l&&VSe(e,HNr(l)))}function GSe(e,r){let i=[];for(let x of e){if(x.isLayoutOnly)continue;let k=x.points;if(!k||k.length<2)continue;for(let A=0;A{let A=dit(k,l);for(let{nodeId:R,rect:N}of a){if(R===x)continue;if(VSe(A,N))return!0}return!1},"labelOverlapsForeignNode"),m=I((x,k)=>{let A=dit(k,l);for(let R of i){if(R.edgeId===x)continue;if(ZSe(R.p1,R.p2,A))return!0}return!1},"labelOverlapsForeignEdge"),y=I((x,k,A)=>p(x,A)||m(k,A),"labelOverlapsAnything"),E=[],w=I((x)=>{for(let{id:k,rect:A}of o)if(yNr(A,x))return k;return},"findContainingLane"),T=I((x,k)=>E.some((A)=>A.labelId!==x&&VSe(k,A.rect)),"overlapsPlacedLabel");for(let x of e){if(x.isLayoutOnly)continue;let k=x.labelNodeId;if(!k)continue;let A=r.get(k);if(!A)continue;let R=x.points;if(!R||R.length<2)continue;let N=A.width??0,L=A.height??0;if(N<=0||L<=0)continue;let B=[];for(let le=0;le=r2&&xe>=r2)continue;B.push({idx:le,length:ye+xe,orientation:ye>=r2?"horizontal":"vertical",midX:(se.x+he.x)/2,midY:(se.y+he.y)/2})}if(B.length===0)continue;let D=B.length>=3?B.filter((le)=>le.idx>0&&le.idx0?D:B,F=N>=L?"horizontal":"vertical",H=I((le)=>[...le].sort((se,he)=>{let ye=se.orientation===F,xe=he.orientation===F;if(ye!==xe)return ye?-1:1;let Ie=se.length>=(se.orientation==="horizontal"?N:L)+2,Ee=he.length>=(he.orientation==="horizontal"?N:L)+2;if(Ie!==Ee)return Ie?-1:1;return he.length-se.length}),"rankSegments"),K=B[0],Q=B[B.length-1],Z=[0.5,0.25,0.75,0.05,0.95,0.15,0.85,0.1,0.9],Y=I((le,se)=>{let he=R[le.idx],ye=R[le.idx+1];return{midX:he.x+(ye.x-he.x)*se,midY:he.y+(ye.y-he.y)*se}},"anchorAtT"),j=I((le,se,he)=>Math.min(he,Math.max(se,le)),"clamp"),te=I((le,se)=>le.midX>=se.left-r2&&le.midX<=se.right+r2&&le.midY>=se.top-r2&&le.midY<=se.bottom+r2,"pointInsideRectInclusive"),X=I((le)=>{let se=fq(le.midX,le.midY,N,L),he=w(se);if(he)return{laneId:he,anchor:le,rect:se};let ye=o.find(({rect:je})=>te(le,je));if(!ye)return;let xe=ye.rect.left+N/2+h,Ie=ye.rect.right-N/2-h,Ee=ye.rect.top+L/2+h,Ue=ye.rect.bottom-L/2-h;if(xe>Ie||Ee>Ue)return;let Me={midX:j(le.midX,xe,Ie),midY:j(le.midY,Ee,Ue)},Xe=fq(Me.midX,Me.midY,N,L);return te(le,Xe)?{laneId:ye.id,anchor:Me,rect:Xe}:void 0},"placementForAnchor"),W=I((le,se,he)=>le.orientation==="horizontal"?Math.abs(se.midX-he.x):Math.abs(se.midY-he.y),"distanceAlongSegment"),J=I((le,se)=>{let ye=(le.orientation==="horizontal"?N/2:L/2)+d;if(le===K){let xe=R[le.idx];if(W(le,se,xe)+r2{let se=H(le);for(let he of se)for(let ye of Z){let xe=Y(he,ye);if(!J(he,xe))continue;let Ie=X(xe);if(!Ie)continue;if(Iit(Ie.rect,R))continue;if(T(k,Ie.rect))continue;if(!y(k,x.id,Ie.rect))return{laneId:Ie.laneId,anchor:Ie.anchor}}return},"tryPool"),ne=I((le,se,he=!1)=>{let ye=H(le);for(let xe of ye){let Ie={midX:xe.midX,midY:xe.midY};if(se&&!J(xe,Ie))continue;let Ee=X(Ie);if(Ee&&!Iit(Ee.rect,R)&&!T(k,Ee.rect)&&!p(k,Ee.rect)&&(he||!m(x.id,Ee.rect)))return{laneId:Ee.laneId,anchor:Ee.anchor}}return},"findLaneContainingFallback"),ie=z(P)??(P.lengthhe.labelId===k);if(se>=0)E[se]={labelId:k,rect:le};else E.push({labelId:k,rect:le})}}}function Oit(e,r){return e{let y=Oit(d,p),E=0,w=I((T)=>{if(!T)return;let x=o.get(T);if(!x)return;let k=m==="x"?x.w/2:x.h/2;if(k>E)E=k},"consider");w(h.labelNodeId);for(let T of e){if(T===h)continue;if(T.isLayoutOnly)continue;let{start:x,end:k}=T;if(!x||!k)continue;if(Oit(x,k)!==y)continue;w(T.labelNodeId)}return E>0?E+rai:0},"labelClearanceFor");for(let h of e){if(h.isLayoutOnly)continue;let d=h.points;if(!qit(d,cit))continue;let p=Kit(h,i,cit);if(!p)continue;let{srcId:m,dstId:y,srcInfo:E,dstInfo:w,collinearX:T,collinearY:x}=p;if(T===x)continue;let k,A;if(T){let D=w.cy>E.cy;k={x:E.cx,y:D?E.rect.bottom:E.rect.top},A={x:w.cx,y:D?w.rect.top:w.rect.bottom}}else{let D=w.cx>E.cx;k={x:D?E.rect.right:E.rect.left,y:E.cy},A={x:D?w.rect.left:w.rect.right,y:w.cy}}if(L0(k,A,a,[m,y],1))continue;let N=l(h,m,y,T?"x":"y"),L=N>uNr?N:uNr,B=[0,L,-L];for(let D of B){let P={...k},F={...A};if(T){if(P.x+=D,F.x+=D,P.x<=E.rect.left||P.x>=E.rect.right)continue;if(F.x<=w.rect.left||F.x>=w.rect.right)continue}else{if(P.y+=D,F.y+=D,P.y<=E.rect.top||P.y>=E.rect.bottom)continue;if(F.y<=w.rect.top||F.y>=w.rect.bottom)continue}if(L0(P,F,a,[m,y],1))continue;if(HSe(P,F,e,h,{epsilon:cit}))continue;h.points=[P,F];break}}}function Nit(e,r){let{realNodeRects:m,labelNodeRects:y}=QL(r.values()),E=I((P,F)=>pq(F,0.001).map((H)=>({...H,edge:P,interior:H.index>=1&&H.index<=F.length-3})),"segmentsFor"),w=I(()=>{let P=[];for(let F of e){if(F.isLayoutOnly)continue;let H=F.points;if(!H||H.length<2)continue;P.push(...E(F,lu(H)))}return P},"allSegments"),T=I((P,F)=>{if(P.horizontal&&F.horizontal)return yv(P.a.x,P.b.x,F.a.x,F.b.x)>=8&&Math.abs(P.a.y-F.a.y)<7;if(P.vertical&&F.vertical)return yv(P.a.y,P.b.y,F.a.y,F.b.y)>=8&&Math.abs(P.a.x-F.a.x)<7;return!1},"hasCrowdedParallelTrack"),x=I((P,F)=>{let{start:H,end:K}=P,Q=E(P,F);if(Q.length!==F.length-1)return!1;let Z=[H,K].filter((j)=>Boolean(j)),Y=P.labelNodeId?[P.labelNodeId]:[];for(let j of Q){if(L0(j.a,j.b,m,Z,-2))return!1;if(L0(j.a,j.b,y,Y,-2))return!1}for(let j of e){if(j===P||j.isLayoutOnly)continue;let te=j.points;if(!te||te.length<2)continue;for(let X of Q)for(let W of E(j,lu(te))){if(T(X,W))return!1;if(KR(X.a,X.b,W.a,W.b,0.001))return!1}}return!0},"candidateIsSafe"),k=I((P,F)=>{let H=lu(P.edge.points??[]);if(H.length<4||P.index>=H.length-1)return;let K=H.map((Q)=>({...Q}));if(P.horizontal)K[P.index].y+=F,K[P.index+1].y+=F;else if(P.vertical)K[P.index].x+=F,K[P.index+1].x+=F;else return;return E(P.edge,K).length===K.length-1?K:void 0},"shiftedCandidate"),A=I((P,F)=>({x:P.x??(F.left+F.right)/2,y:P.y??(F.top+F.bottom)/2}),"nodeCenter"),R=I((P)=>{let F=P.edge,H=lu(F.points??[]);if(H.length!==4||P.index!==1)return;let K=F.start?r.get(F.start):void 0,Q=F.end?r.get(F.end):void 0,Z=K?n2(K):void 0,Y=Q?n2(Q):void 0,j=H.slice(P.index+2);if(!K||!Q||!Z||!Y||j.length===0)return;return{sourceCenter:A(K,Z),targetCenter:A(Q,Y),sourceRect:Z,tail:j}},"sourceDetourContextFor"),N=I((P,F,H,K,Q,Z)=>{let Y=K.y>=H.y,j=Y?Q.bottom:Q.top,te=j+(Y?20:-20);if(Y&&P.b.y<=te+0.001||!Y&&P.b.y>=te-0.001)return;let X=P.a.x+F;return lu([{x:H.x,y:j},{x:H.x,y:te},{x:X,y:te},{x:X,y:P.b.y},...Z],0.001)},"verticalSourceDetour"),L=I((P,F,H,K,Q,Z)=>{let Y=K.x>=H.x,j=Y?Q.right:Q.left,te=j+(Y?20:-20);if(Y&&P.b.x<=te+0.001||!Y&&P.b.x>=te-0.001)return;let X=P.a.y+F;return lu([{x:j,y:H.y},{x:te,y:H.y},{x:te,y:X},{x:P.b.x,y:X},...Z],0.001)},"horizontalSourceDetour"),B=I((P,F)=>{let H=R(P);if(!H)return;if(P.vertical)return N(P,F,H.sourceCenter,H.targetCenter,H.sourceRect,H.tail);if(P.horizontal)return L(P,F,H.sourceCenter,H.targetCenter,H.sourceRect,H.tail);return},"sourceDetourCandidate"),D=[-7,7,-14,14,-21,21];for(let P=0;P<12;P++){let F=w(),H=!1;for(let K=0;Kte.interior);for(let te of j){for(let X of D){let W=k(te,X);if(W&&x(te.edge,W)){te.edge.points=W,H=!0;break}let J=B(te,X);if(J&&x(te.edge,J)){te.edge.points=J,H=!0;break}}if(H)break}}if(!H)return}}function YNr(e,r,i,a){let o=r.x-e.x,l=r.y-e.y,h=a.x-i.x,d=a.y-i.y,p=o*d-l*h;if(Math.abs(p)<0.0000000001)return!1;let m=i.x-e.x,y=i.y-e.y,E=(m*d-y*h)/p,w=(m*l-y*o)/p,T=0.01;return E>T&&E<1-T&&w>T&&w<1-T}function WNr(e){let r=e.nodes??[],i=e.edges??[],a=[];if(!i.length||!r.length)return a;let o=vNr(r),l=1,h=[];for(let p of i){if(p.isLayoutOnly)continue;let m=p.points;if(!m||m.length<2)continue;let{start:y,end:E,labelNodeId:w}=p,T=p.id??`${y}->${E}`;for(let x of o){if(x.nodeId===y||x.nodeId===E)continue;if(w&&x.nodeId===w)continue;for(let k=0;k0){let p=a.filter((y)=>y.type==="edge-node-overlap").length,m=a.filter((y)=>y.type==="edge-edge-crossing").length;Ze.warn(`[SWIMLANE_VALIDATE] ${a.length} issue(s) detected: ${p} edge-node overlap(s), ${m} edge crossing(s)`);for(let y of a)Ze.warn(`[SWIMLANE_VALIDATE] ${y.type}: ${y.detail}`)}return a}function jNr(e,r){let i=e.nodes??[],a=e.edges??[],o=i.filter((d)=>!d.isGroup);if((r==="LR"||r==="RL")&&o.length>0&&!MNr(e,r))return;if(r==="BT"&&o.length>0&&!LNr(e))return;for(let d of a){if(d.isLayoutOnly)continue;let p=d.points;if(!p||p.length<2)continue;d.points=L3(qSe(p))}VNr(a,i),qNr(a,i),DNr(a,i);let l=new Map;for(let d of i)l.set(String(d.id),d);GSe(a,l),TNr(a,l),PNr(a,l),Nit(a,l),xit(a,l),FNr(a,l),Cit(a,l),$Nr(a,l);let h=I(()=>{zNr(a,l),xit(a,l),UNr(a,l),GNr(a,l),GSe(a,l),Sit(a,l),Cit(a,l),GSe(a,l),Sit(a,l)},"finalizeRenderedEdges");h(),Nit(a,l),h(),kit(a,l,r),Ait(a,l,r),kit(a,l,r),Ait(a,l,r)}function ZL(e){let r=new Map(e.nodeById),i=new Set,a=[];for(let l of e.edges){if(!r.has(l.src)||!r.has(l.dst))continue;let h=`${l.id}:${l.src}->${l.dst}`;if(i.has(h))continue;i.add(h),a.push(l)}return{nodes:[...r.keys()],edges:a,layout:e.layout,nodeById:r}}function tat(e,r){return e.edges.filter((i)=>i.dst===r)}function KNr(e){let r=new Map;for(let i of e.nodes)r.set(i,[]);for(let i of e.edges)r.get(i.src).push(i.dst);return r}function rat(e){let r=KNr(e);for(let i of r.values())i.sort((a,o)=>a.localeCompare(o));return r}function eTe(e){let r=new Map;for(let i of e.nodes)r.set(i,0);for(let i of e.edges)r.set(i.dst,(r.get(i.dst)??0)+1);return r}function nat(e,r){let i=[...r.entries()].filter(([,d])=>d===0).map(([d])=>d).sort((d,p)=>d.localeCompare(p)),a=new Set(e.edges.flatMap((d)=>[d.src,d.dst])),o=I((d)=>!a.has(d)&&!e.nodeById.get(d)?.isGroup,"isUnconnected"),l=[...r.keys()].filter((d)=>r.get(d)===0&&o(d)),h=0;return i.map((d)=>o(d)?l[h++]:d)}function tTe(e,r=()=>!0){let i=new Map,a=new Map;for(let o of e.nodes)i.set(o,[]),a.set(o,[]);for(let o of e.edges){if(!r(o))continue;a.get(o.src).push(o.dst),i.get(o.dst).push(o.src)}return{preds:i,succs:a}}function iat(e,r,i,a){let o=0;for(let h of e.nodes){if(a?.skipGroups&&e.nodeById.get(h)?.isGroup)continue;o=Math.max(o,i[h]??0)}let l=Array.from({length:o+1},()=>[]);for(let h of r){if(a?.skipGroups&&e.nodeById.get(h)?.isGroup)continue;l[Math.max(0,i[h]??0)].push(h)}return l}function Bie(e){let r=eTe(e),i=nat(e,r),a=[],o=rat(e);while(i.length){let l=i.shift();a.push(l);for(let h of o.get(l)??[])if(r.set(h,(r.get(h)??0)-1),(r.get(h)??0)===0){let d=0;while(d{if(o-a<=1)return 0;let l=a+o>>1,h=i(a,l)+i(l,o),d=a,p=l,m=a;while(d=o||dw.dst===T.dst?w.id.localeCompare(T.id):w.dst.localeCompare(T.dst));let a=Object.create(null);for(let E of r.nodes)a[E]=0;let o=[],l=I((E)=>{a[E]=1;for(let w of i.get(E)??[]){let T=w.dst;if(a[T]===0)l(T);else if(a[T]===1)o.push(w)}a[E]=2},"dfs"),h=eTe(r),d=[...r.nodes.filter((E)=>(h.get(E)??0)===0),...r.nodes.filter((E)=>(h.get(E)??0)!==0)];for(let E of d)if(a[E]===0)l(E);let p=new Set(o.map((E)=>`${E.id}:${E.src}->${E.dst}`)),m=r.edges.map((E)=>p.has(`${E.id}:${E.src}->${E.dst}`)?{id:E.id,src:E.dst,dst:E.src,weight:E.weight,ref:E.ref}:E);return{acyclic:{nodes:[...r.nodes],edges:m,layout:r.layout,nodeById:new Map(r.nodeById)},reversed:o}}function QNr(e){let r=new Map,i=I((a)=>{if(r.has(a))return r.get(a);let o=e.nodeById.get(a);if(!o)return r.set(a,null),null;let l=o.parentId;if(!l)return r.set(a,null),null;let d=i(l)??l;return r.set(a,d),d},"resolve");for(let a of e.nodes)i(a);return r}function XR(e){let r=QNr(e);return(i)=>r.get(i)??null}function rTe(e){let r=[];for(let i of e.layout.nodes??[])if(i.isGroup&&!i.parentId)r.push(i.id);return[...new Set(r)].reverse()}function sat(e,r){let i=rTe(e);if(!r||r.length===0)return i;let a=new Set(i),o=new Set,l=[];for(let h of r){if(!a.has(h)||o.has(h))continue;o.add(h),l.push(h)}for(let h of i){if(o.has(h))continue;l.push(h)}return l}function ZNr(e,r){let i=ZL(e),a=r?.laneOf??(()=>null),o=r?.rankHint,{preds:l}=tTe(i);for(let D of l.values())D.sort((P,F)=>P.localeCompare(F));let h=Bie(i)??[...i.nodes].sort((D,P)=>D.localeCompare(P)),d=new Map;for(let[D,P]of h.entries())d.set(P,D);let p=new Map,m=new Map;for(let D of i.nodes)m.set(D,[]);for(let D of h){let P=(l.get(D)??[]).filter((F)=>p.has(F));if(P.length>0){let F=JNr(D,P,{laneOf:a,rankHint:o,topoIndex:d});p.set(D,F),m.get(F).push(D)}else if(!p.has(D))p.set(D,null)}for(let D of i.nodes)if(!p.has(D))p.set(D,null);let y=new Set;for(let D of i.nodes)if((p.get(D)??null)===null)y.add(D);let E=[...y].sort((D,P)=>{let F=d.get(D)??0,H=d.get(P)??0;if(F===H)return D.localeCompare(P);return F-H}),w=eLr(i),T=new Map;for(let[D,P]of w.entries())T.set(D,[...P].sort((F,H)=>F.localeCompare(H)));let x=tLr(T),k=rLr(T),A=new Map;for(let D of i.nodes)A.set(D,[]);for(let D of k)for(let P of D.nodes){let F=A.get(P);if(F)F.push(D.id);else A.set(P,[D.id])}let R=[],N=[],L=new Set,B=I((D)=>{if(L.has(D))return;L.add(D),R.push(D);for(let P of m.get(D)??[])B(P);N.push(D)},"walk");for(let D of E)B(D);for(let D of h)B(D);return{parent:p,children:m,roots:E,componentOf:x,blocks:k,nodeBlocks:A,adjacency:T,preorder:R,postorder:N,topologicalOrder:h}}function JNr(e,r,i){let a=i.laneOf(e);return[...r].sort((l,h)=>{let d=i.laneOf(l),p=i.laneOf(h),m=d!=null&&d===a,y=p!=null&&p===a;if(m!==y)return m?-1:1;let E=i.rankHint?.[l],w=i.rankHint?.[h];if(E!=null&&w!=null&&E!==w)return w-E;let T=i.topoIndex.get(l)??0,x=i.topoIndex.get(h)??0;if(T!==x)return T-x;return l.localeCompare(h)})[0]}function eLr(e){let r=new Map;for(let i of e.nodes)r.set(i,new Set);for(let i of e.edges)r.get(i.src).add(i.dst),r.get(i.dst).add(i.src);return r}function tLr(e){let r=new Map,i=0;for(let a of e.keys()){if(r.has(a))continue;let o=[a];while(o.length>0){let l=o.pop();if(r.has(l))continue;r.set(l,i);for(let h of e.get(l)??[])if(!r.has(h))o.push(h)}i++}return r}function rLr(e){let r=new Map,i=new Map,a=[],o=[],l=0,h=I((d,p)=>{r.set(d,++l),i.set(d,l);for(let m of e.get(d)??[]){if(m===p)continue;if(!r.has(m)){if(a.push([d,m]),h(m,d),i.set(d,Math.min(i.get(d)??l,i.get(m)??l)),(i.get(m)??0)>=(r.get(d)??0))o.push(nLr(d,m,a,o.length))}else if((r.get(m)??0)<(r.get(d)??0))a.push([d,m]),i.set(d,Math.min(i.get(d)??l,r.get(m)??l))}},"visit");for(let d of e.keys())if(!r.has(d))h(d,null);return o}function nLr(e,r,i,a){let o=[],l=new Set;while(i.length>0){let h=i.pop();if(o.push(h),l.add(h[0]),l.add(h[1]),h[0]===e&&h[1]===r||h[0]===r&&h[1]===e)break}return{id:a,edges:o,nodes:[...l]}}function iLr(e,r,i){let a=[...e.nodes],o=new Map;for(let[N,L]of a.entries())o.set(L,N);let l=a.length,h=Array(l).fill(-1),d=Array(l).fill(0),p=[],m=new Set;for(let N of a){let L=i.parent.get(N)??null,B=o.get(N);if(B==null)continue;if(L==null){if(h[B]=-1,d[B]=0,!m.has(N))m.add(N),p.push(N)}}while(p.length>0){let N=p.shift(),L=o.get(N);if(L==null)continue;let B=i.children.get(N)??[];for(let D of B){if(m.has(D))continue;let P=o.get(D);if(P==null)continue;h[P]=L,d[P]=d[L]+1,m.add(D),p.push(D)}}for(let N of a){if(m.has(N))continue;let L=o.get(N);if(L==null)continue;h[L]=-1,d[L]=0,m.add(N)}let y=Math.max(1,Math.ceil(Math.log2(Math.max(1,l)))+1),E=Array.from({length:y},()=>Array(l).fill(-1));for(let N=0;N{if(N===-1||L===-1)return-1;if(d[N]>D&1){if(N=E[D][N],N===-1)return-1}if(N===L)return N;for(let D=y-1;D>=0;D--){let P=E[D][N],F=E[D][L];if(P===-1||F===-1)continue;if(P!==F)N=P,L=F}return E[0][N]},"lcaIndex"),T=Array.from({length:l},()=>new Map);for(let N of e.edges){let{src:L,dst:B}=N,D=r[L],P=r[B];if(D==null||P==null)continue;if(D>P)[L,B]=[B,L],[D,P]=[P,D];if(D==null||P==null||D===P)continue;let F=o.get(L),H=o.get(B);if(F==null||H==null)continue;let K=w(F,H);if(K===-1)continue;let Q=T[K];for(let Z=D;Z{if(L.size===0)return;for(let[B,D]of L)N.set(B,(N.get(B)??0)+D)},"mergeInto"),A=new Set,R=I((N)=>{let L=o.get(N);A.add(N);let B=L==null?void 0:T[L],D=B?new Map(B):new Map,P=i.children.get(N)??[];for(let F of P){let H=R(F),K=r[N];if(K!=null){let Q=x.get(N);if(!Q)Q=new Map,x.set(N,Q);let Z=H.get(K)??0,Y=r[F];if(Y!=null&&Y>K)Z+=1;Q.set(F,Z)}k(D,H)}return D},"dfs");for(let N of i.roots)if(!A.has(N))R(N);for(let N of a)if(!A.has(N))R(N);return x}function aLr(e,r,i){let a=new Map,o=I((l)=>{let h=i[l]??0,d=[...r.get(l)??[]];d.sort(oat(i));for(let p of d){o(p);let m=a.get(p);if(m!=null)h=Math.min(h,m)}a.set(l,h)},"annotate");for(let l of e)o(l);return a}function oat(e){return(r,i)=>{let a=e[r]??0,o=e[i]??0;return a===o?r.localeCompare(i):a-o}}function sLr(e,r,i,a){let o=0;for(let p of r){let m=i[p]??0;if(m>o)o=m}let l=Array.from({length:o+1},()=>[]),h=new Set,d=I((p)=>{if(h.has(p))return;h.add(p);let m=i[p]??0;if(!l[m])l[m]=[];l[m].push(p);for(let y of a(p))d(y)},"emit");for(let p of e)d(p);for(let p of r)if(!h.has(p)){let m=i[p]??0;if(!l[m])l[m]=[];l[m].push(p),h.add(p)}return l}function oLr(e){let r=[];for(let i of e){let a=new Set,o=[];for(let l of i){if(a.has(l))continue;a.add(l),o.push(l)}r.push(o)}return r}function lLr(e,r,i,a){return(o)=>{let l=e.get(o)??[];if(l.length===0)return[];let h=r[o]??0,d=[],p=[],m=i.get(o);for(let y of l){let E=a.get(y)??h;if(E>h)d.push({child:y,min:E});else p.push(y)}return d.sort((y,E)=>{if(y.min===E.min)return y.child.localeCompare(E.child);return y.min-E.min}),p.sort((y,E)=>{let w=m?.get(y)??0,T=m?.get(E)??0;if(w!==T)return w-T;let x=a.get(y)??h,k=a.get(E)??h;if(x!==k)return x-k;return y.localeCompare(E)}),[...d.map((y)=>y.child),...p]}}function QSe(e,r,i){let a=ZNr(e,{rankHint:r,laneOf:i}),{children:o,roots:l}=a;for(let E of e.nodes)if(!o.has(E))o.set(E,[]);let h=iLr(e,r,a),d=[...l].sort(oat(r)),p=aLr(d,o,r),m=lLr(o,r,h,p),y=sLr(d,e.nodes,r,m);return y=oLr(y),y}function cLr(e,r,i){let a=new Set(e),o=new Set(r),l=gq(r),h=[];for(let d of i)if(a.has(d.src)&&o.has(d.dst))h.push(l.get(d.dst));return aat(h)}function Lit(e,r,i){let a=[];for(let l of r){let h=i[l.src],d=i[l.dst];if(h==null||d==null||h===d)continue;let{src:p,dst:m}=l,y=h,E=d;if(h>d)p=l.dst,m=l.src,y=d,E=h;for(let w=y;w(i[w]??0)-(i[E]??0));for(let E of y){let w=i[E]??0;if(w===0)continue;let T=0;for(let R of a.get(E)??[])T=Math.max(T,(i[R]??0)+1);if(T>=w)continue;let x=w;i[E]=T;let k=QSe(e,i,o),A=Lit(k,e.edges,i);if(A(r[o]??0)-(r[l]??0)||o.localeCompare(l));for(let o of a){let l=i(o);if(!l)continue;let h=e.edges.filter((k)=>k.src===o);if(h.length===0)continue;let d=!1,p=0;for(let k of h){let A=i(k.dst);if(A==null||A===l)d=!0;else p++}if(p===0||d)continue;let m=0,y=!1;for(let k of e.edges){if(k.dst!==o)continue;let A=i(k.src);if(!A)continue;if(A===l)y=!0;else m++}if(m>0||!y)continue;let E=r[o]??0,w=E+p,T=0;for(let k of e.edges)if(k.dst===o)T=Math.max(T,(r[k.src]??0)+1);let x=Math.max(E,T,w);if(x!==E)r[o]=x}}function dLr(e,r){let i=ZL(e),a=Bie(i)??[...i.nodes].sort(),o=r?.compactSingleInput??!1,l=XR(i),h=Object.create(null);for(let p of a){let m=tat(i,p),y=r?.ignoreCrossLaneEdges?m.filter((E)=>{let w=l(E.src),T=l(p);if(!w||!T)return!0;return w===T}):m;if(y.length===0)h[p]=0;else if(o&&y.length===1){let E=y[0].src,w=l(E),T=l(p);if(w!==T)h[p]=h[E]??0;else h[p]=(h[E]??0)+1}else{let E=-1/0;for(let w of y)E=Math.max(E,(h[w.src]??0)+1);h[p]=E===-1/0?0:E}}if(r?.optimizeRanksByCrossings??!1)h=uLr(i,h);if(r?.ignoreCrossLaneEdges)hLr(i,h);return{layers:QSe(i,h,l),rankOf:h,dummy:new Set}}function fLr(e,r){let i=ZL(e),o={...dLr(i,{compactSingleInput:r?.compactSingleInput,ignoreCrossLaneEdges:r?.ignoreCrossLaneEdges,optimizeRanksByCrossings:r?.optimizeRanksByCrossings}).rankOf},l=XR(i),{preds:h,succs:d}=tTe(i,(x)=>{if(r?.ignoreCrossLaneEdges){let k=l(x.src),A=l(x.dst);if(k&&A&&k!==A)return!1}return!0}),p=Bie(i)??[...i.nodes],m=[...p].reverse(),y=I((x,k)=>{let A=0;for(let L of h.get(x)??[])A=Math.max(A,(o[L]??0)+1);let R=Number.POSITIVE_INFINITY,N=d.get(x)??[];if(N.length>0)R=Math.min(...N.map((L)=>(o[L]??0)-1));if(!Number.isFinite(R))R=Math.max(A,k);return Math.min(Math.max(k,A),R)},"clampFeasible"),E=XSe.GRAVITY_ITERATIONS,w=I((x)=>{let k=!1;for(let A of x){let R=h.get(A)??[],N=d.get(A)??[];if(R.length===0&&N.length===0)continue;let L=R.length>0?R.reduce((F,H)=>F+(o[H]??0)+1,0)/R.length:o[A]??0,B=N.length>0?N.reduce((F,H)=>F+(o[H]??0)-1,0)/N.length:o[A]??0,D=Math.round((L+B)/2),P=y(A,D);if(P!==o[A])o[A]=P,k=!0}return k},"relaxOrder");for(let x=0;x0){let A=Math.min(...k.map((R)=>(o[R]??0)-1));if((o[x]??0)>A)o[x]=A}}return{layers:iat(i,p,o),rankOf:o,dummy:new Set}}function pLr(e){let r=eTe(e),i=rat(e),a=nat(e,r),o=[];while(a.length>0){let l=[];for(let h of a){o.push(h);for(let d of i.get(h)??[])if(r.set(d,(r.get(d)??0)-1),(r.get(d)??0)===0)l.push(d)}a=l.sort((h,d)=>h.localeCompare(d))}return o.length===e.nodes.length?o:null}function gLr(e,r){let i=ZL(e),a=r?.direction==="LR"?pLr(i)??[...i.nodes].sort():Bie(i)??[...i.nodes].sort(),o=XR(i),l=I((y)=>o(y)??y,"laneOf"),h=Object.create(null),d=new Map,p=I((y,E)=>{if(r?.ignoreCrossLaneEdges??!0)return l(y)===l(E)?1:0;return 1},"edgeWeight");for(let y of a){if(i.nodeById.get(y)?.isGroup)continue;let w=tat(i,y),T=0;if(w.length>0)for(let R of w){let N=R.src,L=h[N]??0;T=Math.max(T,L+p(N,y))}let x=l(y),k=d.get(x)??0,A=Math.max(T,k);h[y]=A,d.set(x,A+1)}return{layers:iat(i,a,h,{skipGroups:!0}),rankOf:h,dummy:new Set}}function mLr(e,r){let i=ZL(r),{rankOf:a}=e,o=e.layers.map((T)=>[...T]),l=new Set(e.dummy?[...e.dummy]:[]),h=0,d=new Map(i.nodeById),p=I((T)=>{let x=`placeholder-${h++}`,k={id:x,isGroup:!1,isDummy:!0,width:0,height:0};d.set(x,k),l.add(x);while(o.length<=T)o.push([]);return o[T].push(x),a[x]=T,x},"addDummyAt"),m=[...i.edges].sort((T,x)=>T.id===x.id?T.src===x.src?T.dst.localeCompare(x.dst):T.src.localeCompare(x.src):T.id.localeCompare(x.id)),y=[];for(let T of m){let x=a[T.src]??0,k=a[T.dst]??0;if(k-x<=1){y.push(T);continue}let A=T.src;for(let N=x+1,L=0;N!i.nodes.includes(T))],edges:y,layout:i.layout,nodeById:d};return{layering:{layers:o,rankOf:a,dummy:l},graphWithDummies:w}}function Mit(e){let r=e.length;if(r===0)return Number.POSITIVE_INFINITY;let i=[...e].sort((a,o)=>a-o);if(r%2===1)return i[(r-1)/2];return 0.5*(i[r/2-1]+i[r/2])}function Dit(e){if(e.length===0)return Number.POSITIVE_INFINITY;return e.reduce((i,a)=>i+a,0)/e.length}function bLr(e,r,i,a){let o=new Map;for(let l of e)o.set(l,[]);for(let l of i)if(a==="down"){if(r.has(l.src)&&o.has(l.dst))o.get(l.dst).push(r.get(l.src))}else if(r.has(l.dst)&&o.has(l.src))o.get(l.src).push(r.get(l.dst));return o}function yLr(e,r,i){let a=i.get(e)??0,o=i.get(r)??0;return a!==o?a-o:e.localeCompare(r)}function Pit(e,r,i){let a=new Set(e),o=new Set(r),l=gq(e),h=gq(r),d=[];for(let m of i)if(a.has(m.src)&&o.has(m.dst))d.push({u:l.get(m.src),v:h.get(m.dst)});d.sort((m,y)=>m.u===y.u?m.v-y.v:m.u-y.u);let p=d.map((m)=>m.v);return aat(p)}function zSe(e,r,i){return[...e].sort((a,o)=>{let l=Mit(r.get(a)??[]),h=Mit(r.get(o)??[]);if(l===h)return yLr(a,o,i);if(!isFinite(l))return 1;if(!isFinite(h))return-1;return l-h})}function Bit(e,r,i,a,o,l){let h=gq(e),d=gq(r),p=bLr(r,h,i,a);if(!o||!l||l.length===0)return zSe(r,p,d);let m=new Map;for(let w of r){let T=o(w),x=m.get(T)??[];x.push(w),m.set(T,x)}let y=[];for(let w of l){let T=m.get(w);if(!T||T.length===0)continue;let x=zSe(T,p,d);y.push(...x)}let E=m.get(null);if(E&&E.length>0){let w=zSe(E,p,d);for(let T of w){let x=Dit(p.get(T)??[]),k=y.length;if(isFinite(x))for(let[A,R]of y.entries()){let N=Dit(p.get(R)??[]);if(xh.has(k.src)&&d.has(k.dst)),y=p?i.filter((k)=>d.has(k.src)&&p.has(k.dst)):void 0,E=I((k)=>{let A=Pit(e,k,m);if(y&&a)A+=Pit(k,a,y);return A},"crossingScore"),w=o?new Map:null;if(o&&w)for(let k of r)w.set(k,o(k));let T=!0,x=E(l);while(T){T=!1;for(let k=0;k+1[...d]),o=r.edges,l=XR(r),h=sat(r,i?.laneOrder);for(let d=0;d<3;d++){for(let p=1;p=0;p--)a[p]=Bit(a[p+1],a[p],o,"up",l,h),a[p]=Fit(a[p+1],a[p],o,a[p-1],l)}return{layers:a}}function _Lr(e,r,i){let a=i?.layerGap??hNr.DEFAULT_LAYER_GAP,o=i?.nodeGap??hNr.DEFAULT_NODE_GAP,l=i?.laneGap??o*2,h=i?.direction??"TB",d=h==="LR"||h==="RL",p=e.layers,m=Object.create(null),y=Object.create(null),E=I((Q)=>r.nodeById.get(Q),"getNode"),w=I((Q)=>E(Q)?.width??0,"getWidth"),T=I((Q)=>E(Q)?.height??0,"getHeight"),x=XR(r),k=sat(r,i?.laneOrder),A=p.map((Q)=>Q.reduce((Z,Y)=>Math.max(Z,T(Y)),0)),R=[];if(d)for(let Q=0;Q+1Math.max(z,w(ne)),0),Y=p[Q+1].reduce((z,ne)=>Math.max(z,w(ne)),0),j=A[Q],te=A[Q+1],X=j/2+te/2,W=(Z+Y)/2,J=Math.max(0,W-X-a);R.push(J)}let N=new Set;for(let Q of p)for(let Z of Q)N.add(x(Z));let L=N.has(null),B=k.filter((Q)=>N.has(Q)),D=[...L?[null]:[],...B],P=Object.create(null);for(let Q of B)P[Q]=0;if(L)P.null=0;for(let Q of p){let Z=Object.create(null),Y=[];for(let j of Q){let te=x(j);if(te===null)Y.push(j);else(Z[te]||=[]).push(j)}for(let[j,te]of Object.entries(Z)){let X=te.reduce((W,J)=>W+w(J),0)+o*Math.max(0,te.length-1);P[j]=Math.max(P[j]??0,X)}if(L&&Y.length){let j=Y.reduce((te,X)=>te+w(X),0)+o*Math.max(0,Y.length-1);P.null=Math.max(P.null??0,j)}}let F=new Map;{let Q=D.map((j)=>(j===null?P.null:P[j])??0),Y=-(Q.reduce((j,te)=>j+te,0)+l*Math.max(0,D.length-1))/2;for(let j=0;jw(le)),ne=z.reduce((le,se)=>le+se,0)+o*(W.length-1),ie=J-ne/2;for(let[le,se]of W.entries()){let he=z[le];m[se]=ie+he/2,y[se]=H+Y/2,ie+=he+o}}}let te=R[Q]??0;H+=Y+a+te}let K=new Map;for(let Q of r.edges){let Z=Q.ref.id;if(!K.has(Z))K.set(Z,[]);K.get(Z).push(Q)}for(let[,Q]of K){if(Q.length===0)continue;let Z=Q[0].ref,{start:Y,end:j}=Z;if(Y==null||j==null)continue;let te=Math.round(((m[Y]??0)+(m[j]??0))/2),X=new Set;for(let W of Q)X.add(W.src),X.add(W.dst);for(let W of X){if(W===Y||W===j)continue;if(r.nodeById.get(W)?.isDummy)m[W]=te}}return{x:m,y}}function wLr(e){let r=2166136261;for(let i=0;i>>0}function SLr(e){let r=e>>>0;return()=>{r+=1831565813;let i=r;return i=Math.imul(i^i>>>15,i|1),i^=i+Math.imul(i^i>>>7,i|61),((i^i>>>14)>>>0)/4294967296}}function TLr(e,r){let i=[...e],a=SLr(r);for(let o=i.length-1;o>0;o--){let l=Math.floor(a()*(o+1));[i[o],i[l]]=[i[l],i[o]]}return i}function xLr(e,r){let i=0;for(let[a,o]of e.entries())i+=Math.abs(a-(r.get(o)??a));return i}function $it(e,r){let i=new Map;for(let[o,l]of e.entries())i.set(l,o);let a=0;for(let{a:o,b:l,weight:h}of r){let d=i.get(o),p=i.get(l);if(d==null||p==null)continue;a+=h*Math.abs(d-p)}return a}function CLr(e){let r=rTe(e);if(r.length<2)return[];let i=new Map(r.map((l,h)=>[l,h])),a=XR(e),o=new Map;for(let l of e.layout.edges??[]){if(l.isLayoutOnly)continue;let h=typeof l.start==="string"?l.start:void 0,d=typeof l.end==="string"?l.end:void 0;if(!h||!d||!e.nodeById.has(h)||!e.nodeById.has(d))continue;let p=a(h),m=a(d);if(!p||!m||p===m)continue;let y=i.get(p),E=i.get(m);if(y==null||E==null)continue;let[w,T]=y<=E?[p,m]:[m,p],x=`${w}\x00${T}`,k=o.get(x);if(k)k.weight++;else o.set(x,{a:w,b:T,weight:1})}return[...o.values()]}function Uit(e,r,i){let a=[...e],o=$it(a,r),l=!0,h=0,d=Math.max(1,a.length);while(l&&ho.a===l.a?o.b.localeCompare(l.b):o.a.localeCompare(l.a)).map(({a:o,b:l,weight:h})=>`${o}:${l}:${h}`).join("|");return wLr(`${e.join("|")}#${a}#${i}`)}function RLr(e,r={}){let i=rTe(e);if(i.length<2)return i;let a=CLr(e);if(a.length===0)return i;let o=new Map(i.map((d,p)=>[d,p])),l=Uit(i,a,o),h=Math.max(0,r.restarts??ELr);for(let d=0;doc&&p*m>=d)return h>0?"bottom":"top";if(d>oc)return l>0?"right":"left";return i}function zit(e,r){return Math.abs(e.to-r.from)Pe.isGroup&&!Pe.parentId);for(let Pe of m){let Ge={id:Pe.id},qe=I((Ke)=>{h.set(Ke.id,Ge),i.filter((Je)=>Je.parentId===Ke.id).forEach(qe)},"assignLane");qe(Pe)}let y=i.filter((Pe)=>!Pe.isGroup&&!Pe.isEdgeLabel).map((Pe)=>{let Ge=Pe.width??10,qe=Pe.height??10,Ke=Pe.x??0,Je=Pe.y??0,De=iai;return{nodeId:Pe.id,minX:Ke-Ge/2-De,maxX:Ke+Ge/2+De,minY:Je-qe/2-De,maxY:Je+qe/2+De,visualXHalfExtent:p?qe/2+De:Ge/2+De}}),E=I((Pe,Ge,qe,Ke)=>{let Je=d.find((De)=>De.orientation===Pe&&Math.abs(De.coord-Ge)<1);if(!Je)Je={id:`pipe-${Pe}-${Ge.toFixed(0)}`,orientation:Pe,coord:Ge,spanMin:qe,spanMax:Ke,tracks:[]},d.push(Je);return Je.spanMin=Math.min(Je.spanMin,qe),Je.spanMax=Math.max(Je.spanMax,Ke),Je},"getOrAddPipe"),w=I((Pe,Ge)=>{let qe=Pe.width??10,Ke=Pe.height??10,Je=Pe.x??0,De=Pe.y??0;switch(Ge){case"top":return{x:Je,y:De-Ke/2};case"bottom":return{x:Je,y:De+Ke/2};case"left":return{x:Je-qe/2,y:De};case"right":return{x:Je+qe/2,y:De}}},"portForSide"),T=I((Pe,Ge,qe)=>w(Pe,Git(Pe,Ge,qe?"bottom":"top")),"getOrthogonalPort"),x=[],k=[],A=new Set,R=1000,N=I((Pe,Ge,qe)=>{if(x.length===0)return 0;let Ke=Math.abs(Ge.y-qe.y)fe)continue;if(be.from-oc<=oe&&be.to+oc>=oe)De+=R}}else if(Je){let oe=Ge.x,pe=Math.min(Ge.y,qe.y)-oc,fe=Math.max(Ge.y,qe.y)+oc;if(fe<=pe)return 0;for(let be of x){if(be.edgeIndex===Pe||be.orientation!=="horizontal")continue;if(be.pipe.coordfe)continue;if(be.from-oc<=oe&&be.to+oc>=oe)De+=R}}return De},"crossingPenalty"),L=o.map((Pe,Ge)=>{if(!Pe.start||!Pe.end)return{idx:Ge,crossLane:0,dx:0,dy:0};let qe=l.get(Pe.start),Ke=l.get(Pe.end),Je=h.get(Pe.start),De=h.get(Pe.end),oe=Je&&De&&Je.id!==De.id?1:0,pe=qe&&Ke?Math.abs((Ke.x??0)-(qe.x??0)):0,fe=qe&&Ke?Math.abs((Ke.y??0)-(qe.y??0)):0;return{idx:Ge,crossLane:oe,dx:pe,dy:fe}}).sort((Pe,Ge)=>{if(Pe.crossLane!==Ge.crossLane)return Ge.crossLane-Pe.crossLane;let qe=Pe.dx+Pe.dy,Ke=Ge.dx+Ge.dy;if(Math.abs(qe-Ke)>1)return qe-Ke;return Pe.idx-Ge.idx}).map((Pe)=>Pe.idx),B=I((Pe,Ge,qe,Ke)=>{let Je=Math.min(Pe.x,Ge.x),De=Math.max(Pe.x,Ge.x),oe=Math.min(Pe.y,Ge.y),pe=Math.max(Pe.y,Ge.y);return!!y.find((be)=>{if(qe&&be.nodeId===qe)return!1;if(Ke&&be.nodeId===Ke)return!1;if(Math.abs(Pe.x-Ge.x)>oc)return be.minYPe.y&&be.maxX>Je&&be.minXPe.x&&be.maxY>oe&&be.minYGit(Pe,Ge,"bottom"),"determineSide"),H=new Map;for(let[Pe,Ge]of o.entries()){if(!Ge.start||!Ge.end||Ge.start===Ge.end)continue;if(Ge.points&&Ge.points.length>0)continue;let qe=l.get(Ge.start),Ke=l.get(Ge.end);if(!qe||!Ke)continue;let Je=(Ke.x??0)-(qe.x??0),De=(Ke.y??0)-(qe.y??0);H.set(Pe,{edgeIdx:Pe,srcId:Ge.start,dstId:Ge.end,srcSide:F(qe,{x:Ke.x??0,y:Ke.y??0}),dstSide:F(Ke,{x:qe.x??0,y:qe.y??0}),absDx:Math.abs(Je),absDy:Math.abs(De),dxSign:Math.sign(Je),dySign:Math.sign(De)})}let K=I((Pe)=>{if(Pe.srcSide==="top"||Pe.srcSide==="bottom")return Pe.absDx===0?1/0:Pe.absDy/Pe.absDx;return Pe.absDy===0?1/0:Pe.absDx/Pe.absDy},"preferenceStrength"),Q=I((Pe)=>{if(Pe.srcSide==="top"||Pe.srcSide==="bottom")return Pe.dxSign>=0?"right":"left";return Pe.dySign>=0?"bottom":"top"},"secondarySide"),Z=new Map;for(let Pe of H.values()){let Ge=`${Pe.srcId}:${Pe.srcSide}`;if(!Z.has(Ge))Z.set(Ge,[]);Z.get(Ge).push(Pe)}let Y=new Map,j=I((Pe,Ge)=>`${Pe}:${Ge}`,"loadKey");for(let Pe of H.values())Y.set(j(Pe.srcId,Pe.srcSide),(Y.get(j(Pe.srcId,Pe.srcSide))??0)+1),Y.set(j(Pe.dstId,Pe.dstSide),(Y.get(j(Pe.dstId,Pe.dstSide))??0)+1);for(let Pe of Z.values()){if(Pe.length<2)continue;Pe.sort((Ge,qe)=>{let Ke=K(Ge),Je=K(qe);if(Math.abs(Ke-Je)>0.000000001)return Je-Ke;return Ge.edgeIdx-qe.edgeIdx});for(let Ge=1;Ge=Je)continue;Y.set(j(qe.srcId,qe.srcSide),Je-1),Y.set(j(qe.srcId,Ke),De+1),qe.srcSide=Ke}}let te=I((Pe)=>{let Ge=Pe?.shape;return Ge==="question"||Ge==="diamond"},"isDiamondNode"),X=new Map;for(let Pe of H.values()){if(!X.has(Pe.dstId))X.set(Pe.dstId,new Set);X.get(Pe.dstId).add(Pe.dstSide)}for(let Pe of H.values()){if(!te(l.get(Pe.srcId)))continue;let Ge=X.get(Pe.srcId);if(!Ge?.has(Pe.srcSide))continue;let qe=Q(Pe);if(Ge.has(qe)||(Y.get(j(Pe.srcId,qe))??0)>0)continue;let Ke=Y.get(j(Pe.srcId,Pe.srcSide))??0;Y.set(j(Pe.srcId,Pe.srcSide),Math.max(0,Ke-1)),Y.set(j(Pe.srcId,qe),1),Pe.srcSide=qe}for(let Pe of H.values()){let{edgeIdx:Ge,srcId:qe,dstId:Ke,srcSide:Je,dstSide:De}=Pe,oe=l.get(qe),pe=l.get(Ke),fe=`${qe}:${Je}:src`,be=Je==="top"||Je==="bottom"?pe.x??0:pe.y??0;if(!D.has(fe))D.set(fe,[]);D.get(fe).push({edgeIdx:Ge,oppositeCoord:be});let ze=`${Ke}:${De}:dst`,Ce=De==="top"||De==="bottom"?oe.x??0:oe.y??0;if(!D.has(ze))D.set(ze,[]);D.get(ze).push({edgeIdx:Ge,oppositeCoord:Ce})}let W=new Map,J=8;for(let[Pe,Ge]of D){if(Ge.length<2)continue;Ge.sort((gt,vt)=>gt.oppositeCoord-vt.oppositeCoord);let qe=Pe.split(":"),Ke=qe.slice(0,-2).join(":"),Je=qe[qe.length-2],De=qe[qe.length-1],oe=l.get(Ke);if(!oe)continue;let fe=Je==="left"||Je==="right"?oe.height??10:oe.width??10,be=oe.shape,Ce=be==="question"||be==="diamond"?fe*0.3:fe,ke=Math.min(20,Math.max(J,Ce/(Ge.length+1))),ut=-(ke*(Ge.length-1))/2;for(let[gt,vt]of Ge.entries()){let ir=ut+gt*ke,qt=`${vt.edgeIdx}:${De}`;W.set(qt,ir)}}let z=I((Pe)=>Boolean(o[Pe]?.labelNodeId),"edgeHasLabelNode"),ne=I((Pe,Ge)=>{if(!Pe)return!1;return(D.get(`${Pe}:${Ge}:src`)??[]).some(({edgeIdx:qe})=>z(qe))||(D.get(`${Pe}:${Ge}:dst`)??[]).some(({edgeIdx:qe})=>z(qe))},"faceHasLabelNode"),ie=I((Pe,Ge,qe)=>{if(Ge==="top"||Ge==="bottom")return{x:Pe.x+qe,y:Pe.y};else return{x:Pe.x,y:Pe.y+qe}},"applyPortOffset"),le=I((Pe,Ge,qe)=>{let Ke=H.get(Pe),Je={x:qe.x??0,y:qe.y??0},De={x:Ge.x??0,y:Ge.y??0},oe=Ke?.srcSide??F(Ge,Je),pe=Ke?.dstSide??F(qe,De),fe=Ke?w(Ge,Ke.srcSide):T(Ge,Je,!0),be=Ke?w(qe,Ke.dstSide):T(qe,De,!1),ze=W.get(`${Pe}:src`),Ce=W.get(`${Pe}:dst`);if(ze!==void 0)fe=ie(fe,oe,ze);if(Ce!==void 0)be=ie(be,pe,Ce);return{pSrcPort:fe,pDstPort:be,srcSide:oe,dstSide:pe}},"portsForEdge");for(let Pe of L){let Ge=o[Pe];if(k[Pe]=[],!Ge.start||!Ge.end)continue;if(Ge.points&&Ge.points.length>0)continue;if(Ge.start===Ge.end)continue;let qe=l.get(Ge.start),Ke=l.get(Ge.end);if(!qe||!Ke)continue;let{pSrcPort:Je,pDstPort:De,srcSide:oe,dstSide:pe}=le(Pe,qe,Ke),fe={...Je},be={...De},ze=oe==="top"||oe==="bottom",Ce=pe==="top"||pe==="bottom";if(ze){let Ir=Je.y>(qe.y??0);fe.y=Ir?Je.y+rT:Je.y-rT}else{let Ir=Je.x>(qe.x??0);fe.x=Ir?Je.x+rT:Je.x-rT}if(Ce){let Ir=De.y>(Ke.y??0);be.y=Ir?De.y+rT:De.y-rT}else{let Ir=De.x>(Ke.x??0);be.x=Ir?De.x+rT:De.x-rT}let _e=I((Ir,un)=>{for(let zn of y){if(un.includes(zn.nodeId))continue;if(Ir.x>zn.minX&&Ir.xzn.minY&&Ir.y{if(aa){let ma=Ir.y>(un.y??0);return{x:(zn.x??0)>=Ir.x?Di.maxX+gB:Di.minX-gB,y:ma?Di.maxY+dq:Di.minY-dq,leavesPositiveSide:ma}}let Ca=Ir.x>(un.x??0),os=(zn.y??0)>=Ir.y;return{x:Ca?Di.maxX+gB:Di.minX-gB,y:os?Di.maxY+dq:Di.minY-dq,leavesPositiveSide:Ca}},"obstacleDetour"),it=[],ut=[Ge.start,Ge.end],gt=_e(fe,ut);if(gt.inside&>.obstacle){let Ir=gt.obstacle;if(ze){let un=ke(Je,qe,Ke,Ir,!0);fe.x=un.x,fe.y=un.y;let zn=un.leavesPositiveSide?Math.min(Ir.minY-2,Je.y+rT):Math.max(Ir.maxY+2,Je.y-rT);it=[{x:Je.x,y:zn},{x:un.x,y:zn},{x:un.x,y:un.y}]}else{let un=ke(Je,qe,Ke,Ir,!1),zn=un.leavesPositiveSide?Math.min(Ir.minX-2,Je.x+rT):Math.max(Ir.maxX+2,Je.x-rT);fe.x=un.x,fe.y=un.y,it=[{x:zn,y:Je.y},{x:zn,y:un.y},{x:un.x,y:un.y}]}}let vt=[],ir=_e(be,ut);if(ir.inside&&ir.obstacle){let Ir=ir.obstacle;if(Ce){let un=ke(De,Ke,qe,Ir,!0);be.x=un.x,be.y=un.y,vt=[{x:un.x,y:un.y},{x:De.x,y:un.y}]}else{let un=ke(De,Ke,qe,Ir,!1);be.x=un.x,be.y=un.y,vt=[{x:un.x,y:un.y},{x:un.x,y:De.y}]}}if(it.length===0&&vt.length===0){let Ir=gB,un=Math.abs(fe.x-be.x)1||Ca>1,ma=P.get(Ge.start??"")??0,Yn=P.get(Ge.end??"")??0,Tn=aa>1&&ne(Ge.start,oe)||Ca>1&&ne(Ge.end,pe),Pi=aa<=1||ma<=2,Mi=Ca<=1||Yn<=2;if((un||zn)&&!Di&&(!os||os&&!Tn&&Pi&&Mi)){if(!B(Je,De,Ge.start,Ge.end)){Ge.points=[{...Je},{...fe},{...be},{...De}],A.add(Pe);let Lt=zn?"horizontal":"vertical",Gc=zn?Je.y:Je.x,zt=zn?Math.min(Je.x,De.x):Math.min(Je.y,De.y),fs=zn?Math.max(Je.x,De.x):Math.max(Je.y,De.y),ya={id:`fast-path-${Lt}-${Gc.toFixed(0)}-${Pe}`,orientation:Lt,coord:Gc,spanMin:zt,spanMax:fs,tracks:[]};x.push({edgeIndex:Pe,segmentIndex:0,orientation:Lt,pipe:ya,trackIndex:0,from:zt,to:fs});continue}}}let qt=E("vertical",fe.x,fe.y,fe.y);fe.x=qt.coord;let cr=E("vertical",be.x,be.y,be.y);be.x=cr.coord;let tr=Math.min(fe.x,be.x)-50,Zt=Math.max(fe.x,be.x)+50,lr=Math.min(fe.y,be.y)-50,Kt=Math.max(fe.y,be.y)+50;for(let Ir of y){let un=Math.min(fe.x,be.x),zn=Math.max(fe.x,be.x),Di=Math.min(fe.y,be.y),aa=Math.max(fe.y,be.y);if(Ir.minXun&&Ir.minYDi)tr=Math.min(tr,Ir.minX-USe),Zt=Math.max(Zt,Ir.maxX+USe),lr=Math.min(lr,Ir.minY-USe),Kt=Math.max(Kt,Ir.maxY+USe)}for(let Ir of y){if(Ir.maxXZt||Ir.maxYKt)continue;let un=gB;E("horizontal",Ir.minY-un,tr,Zt),E("horizontal",Ir.maxY+un,tr,Zt);let zn=dq;E("vertical",Ir.minX-zn,lr,Kt),E("vertical",Ir.maxX+zn,lr,Kt)}E("horizontal",fe.y,tr,Zt),E("horizontal",be.y,tr,Zt);let In=d.filter((Ir)=>Ir.orientation==="horizontal"&&Ir.coord>=lr&&Ir.coord<=Kt),Et=d.filter((Ir)=>Ir.orientation==="vertical"&&Ir.coord>=tr&&Ir.coord<=Zt),Xn=I((Ir,un)=>`${Ir.toFixed(1)},${un.toFixed(1)}`,"getKey"),Yt=Xn(fe.x,fe.y),Bn=Xn(be.x,be.y),si=new Map,hn=new Map,Ii=new Map,Vn=new Set,Ei=[];si.set(Yt,0),Ii.set(Yt,"n"),Ei.push({key:Yt,f:Math.hypot(be.x-fe.x,be.y-fe.y),pt:fe}),Vn.add(Yt);let yn=[],Li=I((Ir,un)=>B(Ir,un,Ge.start,Ge.end),"checkSegmentBlocked"),Ia={x:be.x,y:fe.y},tt=Li(fe,Ia),Fn=Li(Ia,be),Hn=tt||Fn,_t={x:fe.x,y:be.y},Sr=Li(fe,_t),on=Li(_t,be),gn=Sr||on;if(!Hn)if(Math.abs(fe.y-be.y)0){Ei.sort((Yn,Tn)=>Yn.f-Tn.f);let Ir=Ei.shift();if(Vn.delete(Ir.key),Ir.key===Bn){let Yn=Bn,Tn=be;yn=[Tn];while(hn.has(Yn)){let Pi=hn.get(Yn);yn.unshift(Pi),Tn=Pi,Yn=Xn(Pi.x,Pi.y)}break}let un=Ir.pt.x,zn=Ir.pt.y,Di=Et.sort((Yn,Tn)=>Yn.coord-Tn.coord),aa=Di.findIndex((Yn)=>Math.abs(Yn.coord-un)<1),Ca=In.sort((Yn,Tn)=>Yn.coord-Tn.coord),os=Ca.findIndex((Yn)=>Math.abs(Yn.coord-zn)<1),ma=[];if(aa>0)ma.push({x:Di[aa-1].coord,y:zn});if(aa>=0&&aa0)ma.push({x:un,y:Ca[os-1].coord});if(os>=0&&os{if(dd.nodeId===Ge.start||dd.nodeId===Ge.end)return!1;if(Tn!==Pi)return dd.minYzn&&dd.maxX>Tn&&dd.minXun&&dd.maxY>Mi&&dd.minY10&&Yr<-5||rs<-10&&Yr>5)fs=Math.abs(Yr)*100;if(ya>10&&xs<-5||ya<-10&&xs>5)fs+=Math.abs(xs)*50;let Zl=0,dt=Ii.get(Ir.key)??"n",ro=Math.abs(xs)>oc?"h":"v";if(dt!=="n"&&dt!==ro)Zl=50;let yt=Gc+zt+fs+Zl,fl=(si.get(Ir.key)??1/0)+yt,lb=Math.abs(be.x-Yn.x)+Math.abs(be.y-Yn.y);if(fl<(si.get(Lt)??1/0))if(hn.set(Lt,Ir.pt),si.set(Lt,fl),Ii.set(Lt,ro),!Vn.has(Lt))Ei.push({key:Lt,f:fl+lb,pt:Yn}),Vn.add(Lt);else{let dd=Ei.findIndex((cb)=>cb.key===Lt);if(dd!==-1)Ei[dd].f=fl+lb}}}if(yn.length===0)yn=[fe,{x:fe.x,y:be.y},be];if(yn.length>4){let Ir=yn[0],un=yn[yn.length-1],zn=Math.min(Ir.x,un.x),Di=Math.max(Ir.x,un.x),aa=Math.min(Ir.y,un.y),Ca=Math.max(Ir.y,un.y);for(let Mi of yn)zn=Math.min(zn,Mi.x),Di=Math.max(Di,Mi.x),aa=Math.min(aa,Mi.y),Ca=Math.max(Ca,Mi.y);let os=Di>Math.max(Ir.x,un.x),ma=znzt.minXWn&&zt.minYba);if(Gc.length>0){let zt=Math.max(Ir.x,un.x);for(let fs of Gc){let ya=(fs.minX+fs.maxX)/2;if(fs.visualXHalfExtent===void 0||isNaN(fs.visualXHalfExtent))continue;let rs=ya+fs.visualXHalfExtent+Mi;zt=Math.max(zt,rs)}if(!isNaN(zt))Di=zt}}if(ma){let Wn=y.filter((ba)=>ba.minXMath.min(Ir.y,un.y));if(Wn.length>0){let ba=Math.min(Ir.x,un.x);for(let Lt of Wn){let zt=(Lt.minX+Lt.maxX)/2-Lt.visualXHalfExtent-Mi;ba=Math.min(ba,zt)}zn=ba}}}let Yn=I((Mi)=>{let Wn=un.y>Ir.y,ba=y.filter((zt)=>{let fs=Math.min(Ir.x,un.x)zt.minX,ya=Math.min(Ir.y,un.y)zt.minY;return fs&&ya}),Lt=ba;if(p&&ba.length>0){let zt=ba.filter((fs)=>fs.minXMi);if(zt.length>0)Lt=zt}if(Lt.length===0)return un.y;let Gc=gB;if(Wn){let fs=Math.max(...Lt.map((ya)=>ya.maxY))+Gc;if(fsya.minY))-Gc;if(fs>un.y+oc)return fs}return un.y},"findBestReturnY"),Tn=I((Mi)=>{let Wn=Yn(Mi),ba={x:Mi,y:Ir.y},Lt={x:Mi,y:Wn},Gc={x:un.x,y:Wn},zt=Li(Ir,ba),fs=Li(ba,Lt),ya=Li(Lt,Gc),rs=Wn!==un.y?Li(Gc,un):!1;if(!zt&&!fs&&!ya&&!rs){if(Math.abs(Wn-un.y)=3){let Ir=On[On.length-1],un=On[On.length-2],zn=On[On.length-3],Di=Math.abs(zn.y-un.y)Math.abs(Ir.x-zn.x))On.splice(-2,1)}else if(aa){let Ca=Math.sign(un.y-zn.y),os=Math.sign(Ir.y-zn.y);if(Ca!==0&&Ca===os&&Math.abs(un.y-zn.y)>Math.abs(Ir.y-zn.y))On.splice(-2,1)}}let as=[On[0]];for(let Ir=1;Irun.x,Ca=Di.x>zn.x;if(aa!==Ca){as.push(zn);continue}continue}if(Math.abs(un.x-zn.x)un.y,Ca=Di.y>zn.y;if(aa!==Ca){as.push(zn);continue}continue}as.push(zn)}as.push(On[On.length-1]);for(let Ir=0;IrPe.from{let Je=!Ke.segments.some((oe)=>(oe.edgeIndex!==Ge.edgeIndex||oe.segmentIndex!==Ge.segmentIndex)&&se(oe,Pe)),De=!qe.segments.some((oe)=>(oe.edgeIndex!==Pe.edgeIndex||oe.segmentIndex!==Pe.segmentIndex)&&se(oe,Ge));if(Je&&De)return Pe.trackIndex=Ke.index,Ge.trackIndex=qe.index,qe.segments=[...qe.segments.filter((oe)=>oe.edgeIndex!==Pe.edgeIndex||oe.segmentIndex!==Pe.segmentIndex),{edgeIndex:Ge.edgeIndex,segmentIndex:Ge.segmentIndex,from:Ge.from,to:Ge.to}],Ke.segments=[...Ke.segments.filter((oe)=>oe.edgeIndex!==Ge.edgeIndex||oe.segmentIndex!==Ge.segmentIndex),{edgeIndex:Pe.edgeIndex,segmentIndex:Pe.segmentIndex,from:Pe.from,to:Pe.to}],!0;return!1},"trySwapSegmentsAcrossTracks"),ye=I((Pe)=>{let Ge=Pe.tracks.length;return Pe.tracks[Ge]={index:Ge,coord:Pe.coord,segments:[]},Ge},"createNewTrack"),xe=I((Pe,Ge)=>{let qe=Pe.pipe.tracks[Pe.trackIndex];qe.segments=qe.segments.filter((Je)=>Je.edgeIndex!==Pe.edgeIndex||Je.segmentIndex!==Pe.segmentIndex),Pe.trackIndex=Ge,Pe.pipe.tracks[Ge].segments.push({edgeIndex:Pe.edgeIndex,segmentIndex:Pe.segmentIndex,from:Pe.from,to:Pe.to})},"moveSegmentToTrack"),Ie=I((Pe,Ge)=>{let qe=k[Pe.edgeIndex];for(let Ke of qe){let Je=x[Ke];if(Je.pipe===Pe.pipe)xe(Je,Ge)}},"moveSegmentChainToTrack"),Ee=I((Pe)=>{let Ge=k[Pe.edgeIndex],qe=Ge.indexOf(x.indexOf(Pe)),Ke=[];if(qe>0)Ke.push(x[Ge[qe-1]]);if(qe{if(Pe.orientation===Ge.orientation)return!1;let qe=Pe.orientation==="horizontal"?Pe:Ge,Ke=Pe.orientation==="horizontal"?Ge:Pe;return Ke.pipe.coord>qe.from&&Ke.pipe.coordKe.from&&qe.pipe.coord{for(let qe of Pe.tracks)if(!qe.segments.some((Je)=>(Je.edgeIndex!==Ge.edgeIndex||Je.segmentIndex!==Ge.segmentIndex)&&se(Je,Ge)))return qe.index;return-1},"findAvailableTrack"),Xe=I((Pe,Ge)=>{if(Pe.trackIndex===Ge.trackIndex)return se(Pe,Ge);let qe=Ee(Pe),Ke=Ee(Ge);return qe.some((Je)=>Ke.some((De)=>Ue(Je,De)))},"segmentsConflict"),je=I((Pe,Ge,qe)=>{if(he(Pe,Ge,Pe.pipe.tracks[Pe.trackIndex],Ge.pipe.tracks[Ge.trackIndex]))return;let Ke=Me(Pe.pipe,Ge);qe(Ge,Ke!==-1?Ke:ye(Pe.pipe))},"resolveTrackConflict"),Qe=I((Pe)=>{let Ge=0;for(let qe=0;qe{if(St.has(Pe))return St.get(Pe);let Ge=k[Pe];if(Ge.length===0){let pe={dest:0,deviation:0,base:0,delta:0};return St.set(Pe,pe),pe}let Ke=x[Ge[0]].pipe.coord,Je=Ke;for(let pe=1;peMath.abs(ze-Ke)?be:ze;break}}let De=Math.abs(Je-Ke),oe={dest:Je,deviation:De,base:Ke,delta:Je-Ke};return St.set(Pe,oe),oe},"getDestInfo"),Vt=I(()=>{let Pe=0,Ge=new Map;for(let[Ke,Je]of o.entries()){if(k[Ke].length===0)continue;if(!Je.start)continue;if(!Ge.has(Je.start))Ge.set(Je.start,[]);Ge.get(Je.start).push(Ke)}let qe=I((Ke)=>{let Je=o[Ke];if(!Je.start||!Je.end)return 0;let De=l.get(Je.start),oe=l.get(Je.end);if(!De||!oe)return 0;let pe=(oe.x??0)-(De.x??0),fe=(oe.y??0)-(De.y??0);return Math.abs(pe)+Math.abs(fe)},"getEdgeDistance");for(let Ke of Ge.values()){Ke.sort((De,oe)=>{let pe=pt(De),fe=pt(oe);if(Math.abs(pe.deviation-fe.deviation)>1)return pe.deviation-fe.deviation;if(Math.abs(pe.dest-fe.dest)>1)return pe.dest-fe.dest;let be=qe(De),ze=qe(oe);if(Math.abs(be-ze)>1)return ze-be;let Ce=k[De].length,_e=k[oe].length;if(Ce!==_e)return Ce-_e;if(Ce===1){let ke=k[De][0],it=k[oe][0];if(x[ke]&&x[it]){let ut=x[ke],gt=x[it],vt=Math.abs(ut.to-ut.from),ir=Math.abs(gt.to-gt.from);if(Math.abs(vt-ir)>1)return vt-ir}}return 0});let Je=Ke.map((De)=>x[k[De][0]]);Pe+=Qe(Je)}return Pe},"fixSourceHandleCrossings"),Xt=I(()=>{let Pe=0,Ge=new Map;for(let[qe,Ke]of o.entries()){if(k[qe].length===0)continue;if(!Ke.end)continue;if(!Ge.has(Ke.end))Ge.set(Ke.end,[]);Ge.get(Ke.end).push(qe)}for(let qe of Ge.values()){qe.sort((Je,De)=>{let oe=I((be)=>{let ze=k[be];if(ze.length<2)return 0;let Ce=x[ze[ze.length-2]];return Math.abs(Ce.to-Ce.from)},"getDist"),pe=oe(Je),fe=oe(De);if(Math.abs(pe-fe)>0.1)return pe-fe;return Je-De});let Ke=qe.map((Je)=>x[k[Je][k[Je].length-1]]);Pe+=Qe(Ke)}return Pe},"fixTargetHandleCrossings"),rr=I(()=>{let Pe=0;for(let Ge of d){let qe=[];for(let Ke of Ge.tracks)for(let Je of Ke.segments){let De=k[Je.edgeIndex].find((oe)=>x[oe].segmentIndex===Je.segmentIndex);if(De!==void 0)qe.push(x[De])}qe.sort((Ke,Je)=>Ke.edgeIndex-Je.edgeIndex||Ke.segmentIndex-Je.segmentIndex);for(let Ke=0;Ke{Ke.segments.forEach((Je)=>{Ge.push({edgeIndex:Je.edgeIndex,segmentIndex:Je.segmentIndex,trackIndex:Ke.index,from:Je.from,to:Je.to})})}),Ge.sort((Ke,Je)=>Ke.from-Je.from);let qe=[];if(Ge.length>0){let Ke=[Ge[0]],Je=Ge[0].to;for(let De=1;DeJe.add(ke.trackIndex));let De=new Map;Ke.forEach((ke)=>{let it=pt(ke.edgeIndex);De.set(ke.trackIndex,(De.get(ke.trackIndex)??0)+it.delta)});let oe=[...Je].filter((ke)=>(De.get(ke)??0)<-1),pe=[...Je].filter((ke)=>(De.get(ke)??0)>1),fe=[...Je].filter((ke)=>Math.abs(De.get(ke)??0)<=1);oe.sort((ke,it)=>(De.get(it)??0)-(De.get(ke)??0)),pe.sort((ke,it)=>(De.get(ke)??0)-(De.get(it)??0));let be=I((ke,it)=>{Ke.filter((ut)=>ut.trackIndex===ke).forEach((ut)=>{let gt=A.has(ut.edgeIndex)?Pe.coord:it;ct.set(`${ut.edgeIndex}-${ut.segmentIndex}`,gt)})},"assignCoord"),ze=0;for(let ke of oe)ze++,be(ke,Pe.coord-ze*uit);if(fe.length===0&&Je.size>0){let ke=[...Je].sort((gt,vt)=>Math.abs(De.get(gt)??0)-Math.abs(De.get(vt)??0))[0],it=oe.indexOf(ke);if(it!==-1)oe.splice(it,1);let ut=pe.indexOf(ke);if(ut!==-1)pe.splice(ut,1);fe.push(ke)}let Ce=0;for(let ke of fe){if(Ce===0)be(ke,Pe.coord);else{let it=Ce%2===1?1:-1,ut=Math.ceil(Ce/2);be(ke,Pe.coord+it*ut*uit*0.5)}Ce++}let _e=0;for(let ke of pe)_e++,be(ke,Pe.coord+_e*uit)}}for(let[Pe,Ge]of o.entries()){let qe=k[Pe]??[];if(qe.length===0)continue;let Ke=[],Je=l.get(Ge.start),De=l.get(Ge.end),{pSrcPort:oe,pDstPort:pe}=le(Pe,Je,De),fe=qe.map((Ce)=>{let _e=x[Ce],ke=ct.get(`${_e.edgeIndex}-${_e.segmentIndex}`)??_e.pipe.coord;return{orient:_e.orientation,coord:ke,from:_e.from,to:_e.to}});Ke.push(oe);for(let Ce=0;Ceoc)Ke.push(mB(_e,it));if(vt&>.orient===_e.orient){if(Math.abs(_e.coord-gt.coord)>oc){let ir=_e.orient==="vertical"?(it+gt.from)/2:zit(_e,gt);Ke.push(mB(_e,ir),mB(gt,ir))}else if(Ce===0||Ce===fe.length-2)Ke.push(mB(_e,zit(_e,gt)))}else if(vt)Ke.push(mB(_e,gt.coord));else{let ir=Math.abs(_e.from-it)oc||Math.abs(be.y-pe.y)>oc)Ke.push(pe);let ze=[];if(Ke.length>0)ze.push(Ke[0]);for(let Ce=1;Ceoc||Math.abs(_e.y-ke.y)>oc)ze.push(_e)}Ge.points=ze}for(let Pe of o){let Ge=Pe.__originalEdge;if(Ge&&Pe.points)Ge.points=Pe.points}e.edges=(e.edges??[]).filter((Pe)=>!Pe.isLayoutOnly);let bt=I((Pe,Ge)=>{let qe=Ge.x??0,Ke=Ge.y??0,Je=Ge.width??0,De=Ge.height??0;if(Je<=0||De<=0)return Pe;let oe=qe-Je/2,pe=qe+Je/2,fe=Ke-De/2,be=Ke+De/2;if(Pe.xpe||Pe.ybe)return Pe;let ze=Pe.x-oe,Ce=pe-Pe.x,_e=Pe.y-fe,ke=be-Pe.y,it=Math.min(ze,Ce,_e,ke);if(it===ze)return{x:oe,y:Pe.y};if(it===Ce)return{x:pe,y:Pe.y};if(it===_e)return{x:Pe.x,y:fe};return{x:Pe.x,y:be}},"nodeBoundaryClamp");for(let Pe of e.edges){let Ge=Pe.points;if(!Ge||Ge.length<2)continue;let{start:qe,end:Ke}=Pe,Je=qe?l.get(qe):void 0,De=Ke?l.get(Ke):void 0;if(Je)Ge[0]=bt(Ge[0],Je);if(De)Ge[Ge.length-1]=bt(Ge[Ge.length-1],De)}return e}function NLr(e){return e.direction??"TB"}function LLr(e){let r=gNr(e),i=e.config.flowchart?.nodeSpacing??40,a=e.config.flowchart?.rankSpacing??100,o=e.config.swimlane?.ignoreCrossLaneEdges??!0,l=e.config.swimlane?.optimizeRanksByCrossings??!0,h=e.config.swimlane?.automaticLaneOrdering??!1,d=NLr(e),{ordered:p,coordinates:m}=ILr(r,{nodeGap:i,layerGap:a,ignoreCrossLaneEdges:o,optimizeRanksByCrossings:l,automaticLaneOrdering:h,direction:d});mNr(r,p,m,{nodeGap:i,layerGap:a});for(let y of e.edges??[])delete y.points;OLr(e,d);for(let y of e.edges??[])if(!y.curve||y.curve==="basis")y.curve="rounded";return jNr(e,d),WNr(e),d}function MLr(e){pNr(e);let r=bNr(e);e.nodes=r.nodes,e.edges=r.edges}var oit="__swimlane_default__",Kii=21,oNr=20,Xii="[EdgeLabelNodes]",t1=0.001,Ro=0.001,Qii=0.5,lNr=4,kC=0.000001,Zii=8,FSe,Jii,ds=0.001,e1=8,BNr,$l,lit,XL=0.001,eai=8,r2=0.001,cNr=10,$Se=7,cit=0.000001,tai=8,uNr,rai=3,nai,XSe,hNr,ELr=8,oc,iai=8,gB=15,dq=15,USe=25,rT=20,uit=10,aai;var PLr=Re(()=>{Qtt();kSe();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();I(dNr,"applySwimlaneLineJumps");I(hit,"topLaneHorizontalPadding");I(fNr,"assignTopLaneTitleRect");I(pNr,"prepareLayoutForSwimlanes");I(gNr,"toGraphView");I(mNr,"writeBackToLayoutData");I(bNr,"createEdgeLabelNodes");I(Vit,"measuredNodeRect");I(Hit,"nodeBoundsInfoFor");I(nT,"samePoint");I(Fc,"sameX");I(Wc,"sameY");I(zp,"isHorizontalSegment");I(Vp,"isVerticalSegment");I(yv,"overlapLength");I(N3,"sameAxisSegmentOverlapLength");I(pq,"orthogonalSegmentsForPoints");I(ZE,"countOrthogonalBends");I(lu,"dedupeConsecutivePoints");I(qit,"classifyThreeSegmentRoute");I(ZSe,"segmentBoundsOverlapRect");I(Yit,"pointInsideRect");I(yNr,"rectContainsRect");I(VSe,"rectsOverlap");I(dit,"inflateRect");I(fq,"rectFromCenterSize");I(n2,"rectOfNodeBounds");I(bB,"portForRectSide");I(Wit,"buildOrthogonalPortPath");I(jit,"buildSameSideTrackPath");I(JSe,"collectRealNodeBounds");I(QL,"collectNodeRectEntries");I(vNr,"collectLayoutNodeRects");I(Kit,"getNodePairGeometry");I(L0,"segmentHitsAnyRect");I(Xit,"orthogonalSegmentsCross");I(_Nr,"sameAxisSegmentsOverlap");I(HSe,"segmentConflictsWithAnyEdge");I(KR,"orthogonalSegmentsStrictlyCross");I(fit,"strictlyBetween");I(ENr,"isCollinearIntermediate");I(wNr,"simplifyPolylineOnce");I(qSe,"orthogonalizePolyline");I(L3,"simplifyPolyline");I(Qit,"endpointContextFor");I(SNr,"segmentEnterPoint");I(pit,"clipEndpoint");I(TNr,"clipEdgeEndpointsToNodeBoundaries");I(git,"snapEndpointToBoundary");I(YSe,"firstDistinctAdjacent");I(WSe,"cornerClearanceRange");I(mit,"clampToCornerClearance");I(xNr,"intersectRanges");I(bit,"clearanceRangeForSide");I(jSe,"terminalSideForSegment");I(Pie,"isHorizontalSide");I(CNr,"straightClearanceRange");I(yit,"clearStraightEndpointCornerAxis");I(Zit,"clearStraightEndpointCornerConnections");I(kNr,"cornerClearedEndpoint");I(ANr,"moveCollinearEndpointRun");I(vit,"clearEndpointCornerConnection");I(_it,"borderSideForSegment");I(Eit,"leavesOutward");I(wit,"collapseOwnBorderStub");I(RNr,"snapAndCollapseEndpoints");I(Sit,"prepareEdgeEndpointsForRenderer");I(Jit,"buildNodeMap");I(INr,"resolveTopLevelGroupId");I(Tit,"groupDepth");I(eat,"boundsForChildren");I(ONr,"applyGroupBounds");I(NNr,"recomputeNestedGroupBounds");I(KSe,"mirrorAxis");I(LNr,"applyBtDirectionTransform");I(MNr,"applyLrDirectionTransform");FSe=Zii,Jii=[0,FSe,-FSe,2*FSe,-2*FSe];I(DNr,"portSwapToLShape");I(PNr,"collapseShortTerminalStub");BNr=I((e)=>typeof e==="string"?e.toUpperCase():"","upperCaseDirection"),$l=pq,lit=I((e,r)=>Fc(e,r,ds)||Wc(e,r,ds),"orthogonallyAligned");I(xit,"separateSharedRenderedTerminalLanes");I(FNr,"collapseRedundantRectangularDoglegs");I(Cit,"liftObstacleHuggingSameSideRails");I(kit,"liftTopLaneTitleBandsAboveRails");I(Ait,"shiftLeftLaneTitleBandsLeftOfRails");I($Nr,"swapDestinationTerminalTailsToReduceCrossings");I(UNr,"reassignCrossingExternalRailChannels");I(GNr,"shortcutRedundantOrthogonalJogs");I(zNr,"resolveRenderedOrthogonalCrossings");I(VNr,"simplifyDetouredEdges");I(Rit,"markerClearanceRectFor");I(HNr,"normalizeRect");I(Iit,"labelOverlapsOwnMarker");I(GSe,"anchorLabelsToPolyline");uNr=tai/2;I(Oit,"pairKey");I(qNr,"straightenCollinearSiblingDetours");I(Nit,"nudgeSharedInteriorSubpaths");I(YNr,"segmentsIntersect");I(WNr,"validateSwimlanesLayout");I(jNr,"postProcessSwimlaneLayout");I(ZL,"normalizeGraph");I(tat,"incoming");I(KNr,"buildSuccessorMap");I(rat,"buildSortedSuccessorMap");I(eTe,"buildInDegreeMap");I(nat,"sortedZeroInDegreeNodes");I(tTe,"buildPredecessorSuccessorMaps");I(iat,"buildLayersFromRanks");I(Bie,"topoSortIfAcyclic");I(gq,"buildLayerIndex");I(aat,"countInversions");I(XNr,"removeCycles_DFS");I(QNr,"buildTopLaneMap");I(XR,"createTopLaneResolver");I(rTe,"buildTopLaneOrder");I(sat,"resolveTopLaneOrder");nai={EPSILON:0.000001},XSe={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},hNr={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40};I(ZNr,"buildDrivingTree");I(JNr,"chooseParent");I(eLr,"buildAdjacency");I(tLr,"assignComponents");I(rLr,"computeBlocks");I(nLr,"popBlock");I(iLr,"computeSubtreeCrossCounts");I(aLr,"annotateMinimumLayers");I(oat,"compareByRankThenId");I(sLr,"emitNodesInTreeOrder");I(oLr,"deduplicateLayers");I(lLr,"createChildOrderer");I(QSe,"buildMultitreeLayerOrder");I(cLr,"countCrossingsBetweenAdjacent");I(Lit,"totalCrossings");I(uLr,"optimizeRanksByCrossings");I(hLr,"adjustCrossLaneSources");I(dLr,"assignLayers_LongestPath");I(fLr,"assignLayers_Gravity");I(pLr,"topoSortByGenerationIfAcyclic");I(gLr,"assignLayers_LaneAwareCompact");I(mLr,"makeProperLayering");I(Mit,"median");I(Dit,"barycenter");I(bLr,"neighborPositionsFor");I(yLr,"currentOrderTieBreak");I(Pit,"countCrossingsBetweenAdjacent");I(zSe,"sortByHeuristic");I(Bit,"reorderLayer");I(Fit,"transposeImprove");I(vLr,"orderLayers");I(_Lr,"assignCoordinates");I(wLr,"hashString");I(SLr,"mulberry32");I(TLr,"deterministicShuffle");I(xLr,"sourceDistance");I($it,"laneArrangementCost");I(CLr,"buildWeightedLaneEdges");I(Uit,"greedySwitch");I(kLr,"isBetterCandidate");I(ALr,"seedForRestart");I(RLr,"optimizeTopLaneOrder");I(ILr,"sugiyamaLayout");oc=nai.EPSILON;I(Git,"chooseOrthogonalSide");I(zit,"sharedLineEndpointCoord");I(mB,"pointOnLine");I(OLr,"routeEdgesOrthogonal");I(NLr,"getSwimlaneDirection");I(LLr,"runSwimlaneLayoutCore");I(MLr,"prepareSwimlaneLayout");aai=hB({prepareLayout:MLr,runLayoutCore:LLr,afterPaint:dNr})});function Fst(e,r){(r==null||r>e.length)&&(r=e.length);for(var i=0,a=Array(r);i=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(p){throw p},f:o}}throw TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,h=!0,d=!1;return{s:function(){i=i.call(e)},n:function(){var p=i.next();return h=p.done,p},e:function(p){d=!0,l=p},f:function(){try{h||i.return==null||i.return()}finally{if(d)throw l}}}}function h8r(e,r,i){return(r=d8r(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function cai(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uai(e,r){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a,o,l,h,d=[],p=!0,m=!1;try{if(l=(i=i.call(e)).next,r===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(a=l.call(i)).done)&&(d.push(a.value),d.length!==r);p=!0);}catch(y){m=!0,o=y}finally{try{if(!p&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(m)throw o}}return d}}function hai(){throw TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dai(){throw TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gg(e,r){return sai(e)||uai(e,r)||iot(e,r)||hai()}function kTe(e){return oai(e)||cai(e)||iot(e)||dai()}function fai(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,r);if(typeof a!="object")return a;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function d8r(e){var r=fai(e,"string");return typeof r=="symbol"?r:r+""}function om(e){return om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},om(e)}function iot(e,r){if(e){if(typeof e=="string")return Fst(e,r);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Fst(e,r):void 0}}function cae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uae(){if($Lr)return lat;$Lr=1;function e(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return lat=e,lat}function Dai(){if(ULr)return cat;ULr=1;var e=typeof nTe=="object"&&nTe&&nTe.Object===Object&&nTe;return cat=e,cat}function zTe(){if(GLr)return uat;GLr=1;var e=Dai(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=e||r||Function("return this")();return uat=i,uat}function Pai(){if(zLr)return hat;zLr=1;var e=zTe(),r=function(){return e.Date.now()};return hat=r,hat}function Bai(){if(VLr)return dat;VLr=1;var e=/\s/;function r(i){var a=i.length;while(a--&&e.test(i.charAt(a)));return a}return dat=r,dat}function Fai(){if(HLr)return fat;HLr=1;var e=Bai(),r=/^\s+/;function i(a){return a?a.slice(0,e(a)+1).replace(r,""):a}return fat=i,fat}function oot(){if(qLr)return pat;qLr=1;var e=zTe(),r=e.Symbol;return pat=r,pat}function $ai(){if(YLr)return gat;YLr=1;var e=oot(),r=Object.prototype,{hasOwnProperty:i,toString:a}=r,o=e?e.toStringTag:void 0;function l(h){var d=i.call(h,o),p=h[o];try{h[o]=void 0;var m=!0}catch(E){}var y=a.call(h);if(m)if(d)h[o]=p;else delete h[o];return y}return gat=l,gat}function Uai(){if(WLr)return mat;WLr=1;var e=Object.prototype,r=e.toString;function i(a){return r.call(a)}return mat=i,mat}function w8r(){if(jLr)return bat;jLr=1;var e=oot(),r=$ai(),i=Uai(),a="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function h(d){if(d==null)return d===void 0?o:a;return l&&l in Object(d)?r(d):i(d)}return bat=h,bat}function Gai(){if(KLr)return yat;KLr=1;function e(r){return r!=null&&typeof r=="object"}return yat=e,yat}function hae(){if(XLr)return vat;XLr=1;var e=w8r(),r=Gai(),i="[object Symbol]";function a(o){return typeof o=="symbol"||r(o)&&e(o)==i}return vat=a,vat}function zai(){if(QLr)return _at;QLr=1;var e=Fai(),r=uae(),i=hae(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function p(m){if(typeof m=="number")return m;if(i(m))return a;if(r(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=r(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=e(m);var E=l.test(m);return E||h.test(m)?d(m.slice(2),E?2:8):o.test(m)?a:+m}return _at=p,_at}function Vai(){if(ZLr)return Eat;ZLr=1;var e=uae(),r=Pai(),i=zai(),a="Expected a function",{max:o,min:l}=Math;function h(d,p,m){var y,E,w,T,x,k,A=0,R=!1,N=!1,L=!0;if(typeof d!="function")throw TypeError(a);if(p=i(p)||0,e(m))R=!!m.leading,N="maxWait"in m,w=N?o(i(m.maxWait)||0,p):w,L="trailing"in m?!!m.trailing:L;function B(j){var te=y,X=E;return y=E=void 0,A=j,T=d.apply(X,te),T}function D(j){return A=j,x=setTimeout(H,p),R?B(j):T}function P(j){var te=j-k,X=j-A,W=p-te;return N?l(W,w-X):W}function F(j){var te=j-k,X=j-A;return k===void 0||te>=p||te<0||N&&X>=w}function H(){var j=r();if(F(j))return K(j);x=setTimeout(H,P(j))}function K(j){if(x=void 0,L&&y)return B(j);return y=E=void 0,T}function Q(){if(x!==void 0)clearTimeout(x);A=0,y=k=E=x=void 0}function Z(){return x===void 0?T:K(r())}function Y(){var j=r(),te=F(j);if(y=arguments,E=this,k=j,te){if(x===void 0)return D(k);if(N)return clearTimeout(x),x=setTimeout(H,p),B(k)}if(x===void 0)x=setTimeout(H,p);return T}return Y.cancel=Q,Y.flush=Z,Y}return Eat=h,Eat}function jai(e,r,i,a,o){var l=o*Math.PI/180,h=Math.cos(l)*(e-i)-Math.sin(l)*(r-a)+i,d=Math.sin(l)*(e-i)+Math.cos(l)*(r-a)+a;return{x:h,y:d}}function Xai(e,r,i){if(i===0)return e;var a=(r.x1+r.x2)/2,o=(r.y1+r.y2)/2,l=r.w/r.h,h=1/l,d=jai(e.x,e.y,a,o,i),p=Kai(d.x,d.y,a,o,l,h);return{x:p.x,y:p.y}}function osi(){if(n7r)return mTe.exports;return n7r=1,function(e,r){(function(){var i,a,o,l,h,d,p,m,y,E,w,T,x,k,A;o=Math.floor,E=Math.min,a=function(R,N){if(RN)return 1;return 0},y=function(R,N,L,B,D){var P;if(L==null)L=0;if(D==null)D=a;if(L<0)throw Error("lo must be non-negative");if(B==null)B=R.length;while(LQ;0<=Q?K++:K--)H.push(K);return H}.apply(this).reverse(),F=[];for(B=0,D=P.length;BZ;0<=Z?++H:--H)Y.push(h(R,L));return Y},k=function(R,N,L,B){var D,P,F;if(B==null)B=a;D=R[L];while(L>N){if(F=L-1>>1,P=R[F],B(D,P)<0){R[L]=P,L=F;continue}break}return R[L]=D},A=function(R,N,L){var B,D,P,F,H;if(L==null)L=a;D=R.length,H=N,P=R[N],B=2*N+1;while(B-1}return Xat=r,Xat}function tli(){if(H7r)return Qat;H7r=1;var e=jTe();function r(i,a){var o=this.__data__,l=e(o,i);if(l<0)++this.size,o.push([i,a]);else o[l][1]=a;return this}return Qat=r,Qat}function rli(){if(q7r)return Zat;q7r=1;var e=Qoi(),r=Zoi(),i=Joi(),a=eli(),o=tli();function l(h){var d=-1,p=h==null?0:h.length;this.clear();while(++d-1&&a%1==0&&a0){var y=o.shift();if(r(y),l.add(y.id()),d)a(o,l,y)}return e}function eDr(e,r,i){if(i.isParent()){var a=i._private.children;for(var o=0;o0&&arguments[0]!==void 0?arguments[0]:fci,r=arguments.length>1?arguments[1]:void 0;for(var i=0;i0)Y=te;else Z=te;while(Math.abs(j)>h&&++X=l)return N(Q,X);else if(W===0)return X;else return B(Q,Z,Z+m)}var P=!1;function F(){if(P=!0,e!==r||i!==a)L()}var H=function(Z){if(!P)F();if(e===r&&i===a)return Z;if(Z===0)return 0;if(Z===1)return 1;return A(D(Z),r,a)};H.getControlPoints=function(){return[{x:e,y:r},{x:i,y:a}]};var K="generateBezier("+[e,r,i,a]+")";return H.toString=function(){return K},H}function MMr(e,r,i,a,o){if(a===1)return i;if(r===i)return i;var l=o(r,i,a);if(e==null)return l;if(e.roundValue||e.color)l=Math.round(l);if(e.min!==void 0)l=Math.max(l,e.min);if(e.max!==void 0)l=Math.min(l,e.max);return l}function DMr(e,r){if(e.pfValue!=null||e.value!=null)if(e.pfValue!=null&&(r==null||r.type.units!=="%"))return e.pfValue;else return e.value;else return e}function yq(e,r,i,a,o){var l=o!=null?o.type:null;if(i<0)i=0;else if(i>1)i=1;var h=DMr(e,o),d=DMr(r,o);if(Sa(h)&&Sa(d))return MMr(l,h,d,i,a);else if(hd(h)&&hd(d)){var p=[];for(var m=0;m0){if(T==="spring")x.push(h.duration);h.easingImpl=ETe[T].apply(null,x)}else h.easingImpl=ETe[T]}var k=h.easingImpl,A;if(h.duration===0)A=1;else A=(i-p)/h.duration;if(h.applying)A=h.progress;if(A<0)A=0;else if(A>1)A=1;if(h.delay==null){var{startPosition:R,position:N}=h;if(N&&o&&!e.locked()){var L={};if(Gie(R.x,N.x))L.x=yq(R.x,N.x,A,k);if(Gie(R.y,N.y))L.y=yq(R.y,N.y,A,k);e.position(L)}var{startPan:B,pan:D}=h,P=l.pan,F=D!=null&&a;if(F){if(Gie(B.x,D.x))P.x=yq(B.x,D.x,A,k);if(Gie(B.y,D.y))P.y=yq(B.y,D.y,A,k);e.emit("pan")}var{startZoom:H,zoom:K}=h,Q=K!=null&&a;if(Q){if(Gie(H,K))l.zoom=eae(l.minZoom,yq(H,K,A,k),l.maxZoom);e.emit("zoom")}if(F||Q)e.emit("viewport");var Z=h.style;if(Z&&Z.length>0&&o){for(var Y=0;Y=0;F--){var H=P[F];H()}P.splice(0,P.length)};for(var N=T.length-1;N>=0;N--){var L=T[N],B=L._private;if(B.stopped){T.splice(N,1),B.hooked=!1,B.playing=!1,B.started=!1,R(B.frames);continue}if(!B.playing&&!B.applying)continue;if(B.playing&&B.applying)B.applying=!1;if(!B.started)kci(y,L,e);if(Cci(y,L,e,E),B.applying)B.applying=!1;if(R(B.frames),B.step!=null)B.step(e);if(L.completed())T.splice(N,1),B.hooked=!1,B.playing=!1,B.started=!1,R(B.completes);k=!0}if(!E&&T.length===0&&x.length===0)a.push(y);return k}var l=!1;for(var h=0;h0)r.notify("draw",i);else r.notify("draw");i.unmerge(a),r.emit("step")}function yDr(e){this.options=Eo({},Dci,Pci,e)}function vDr(e){this.options=Eo({},Bci,e)}function _Dr(e){this.options=Eo({},Fci,e)}function rxe(e){this.options=Eo({},$ci,e),this.options.layout=this;var r=this.options.eles.nodes(),i=this.options.eles.edges(),a=i.filter(function(o){var l=o.source().data("id"),h=o.target().data("id"),d=r.some(function(m){return m.data("id")===l}),p=r.some(function(m){return m.data("id")===h});return!d||!p});this.options.eles=this.options.eles.not(a)}function TDr(e){this.options=Eo({},eui,e)}function Sot(e){this.options=Eo({},tui,e)}function xDr(e){this.options=Eo({},rui,e)}function CDr(e){this.options=Eo({},nui,e)}function kDr(e){this.options=e,this.notifications=0}function IDr(e,r){if(r.radius===0)e.lineTo(r.cx,r.cy);else e.arc(r.cx,r.cy,r.radius,r.startAngle,r.endAngle,r.counterClockwise)}function xot(e,r,i,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(a===0||r.radius===0)return{cx:r.x,cy:r.y,radius:0,startX:r.x,startY:r.y,stopX:r.x,stopY:r.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0};return sui(e,r,i,a,o),{cx:Kst,cy:Xst,radius:EB,startX:ADr,startY:RDr,stopX:Qst,stopY:Zst,startAngle:P3.ang+Math.PI/2*SB,endAngle:iT.ang-Math.PI/2*SB,counterClockwise:TTe}}function ODr(e){var r=[];if(e==null)return;for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:5,h=Math.min(l,a/2,o/2);e.beginPath(),e.moveTo(r+h,i),e.lineTo(r+a-h,i),e.quadraticCurveTo(r+a,i,r+a,i+h),e.lineTo(r+a,i+o-h),e.quadraticCurveTo(r+a,i+o,r+a-h,i+o),e.lineTo(r+h,i+o),e.quadraticCurveTo(r,i+o,r,i+o-h),e.lineTo(r,i+h),e.quadraticCurveTo(r,i,r+h,i),e.closePath()}function r8r(e,r,i){var a=e.createShader(r);if(e.shaderSource(a,i),e.compileShader(a),!e.getShaderParameter(a,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(a));return a}function Qui(e,r,i){var a=r8r(e,e.VERTEX_SHADER,r),o=r8r(e,e.FRAGMENT_SHADER,i),l=e.createProgram();if(e.attachShader(l,a),e.attachShader(l,o),e.linkProgram(l),!e.getProgramParameter(l,e.LINK_STATUS))throw Error("Could not initialize shaders");return l}function Zui(e,r,i){if(i===void 0)i=r;var a=e.makeOffscreenCanvas(r,i),o=a.context=a.getContext("2d");return a.clear=function(){return o.clearRect(0,0,a.width,a.height)},a.clear(),a}function Aot(e){var r=e.pixelRatio,i=e.cy.zoom(),a=e.cy.pan();return{zoom:i*r,pan:{x:a.x*r,y:a.y*r}}}function Jui(e){var r=e.pixelRatio,i=e.cy.zoom();return i*r}function ehi(e,r,i,a,o){var l=a*i+r.x,h=o*i+r.y;return h=Math.round(e.canvasHeight-h),[l,h]}function thi(e,r){if(r.picking)return!0;else{if(e.pstyle("background-fill").value!=="solid")return!1;if(e.pstyle("background-image").strValue!=="none")return!1;if(e.pstyle("border-width").value===0)return!0;if(e.pstyle("border-opacity").value===0)return!0;if(e.pstyle("border-style").value!=="solid")return!1;return!0}}function rhi(e,r){if(e.length!==r.length)return!1;for(var i=0;i>0&255)/255,i[1]=(e>>8&255)/255,i[2]=(e>>16&255)/255,i[3]=(e>>24&255)/255,i}function nhi(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function ihi(e,r){var i=e.createTexture();return i.buffer=function(a){e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},i.deleteTexture=function(){e.deleteTexture(i)},i}function qDr(e,r){switch(r){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function YDr(e,r,i){switch(r){case e.FLOAT:return new Float32Array(i);case e.INT:return new Int32Array(i)}}function ahi(e,r,i,a,o,l){switch(r){case e.FLOAT:return new Float32Array(i.buffer,l*a,o);case e.INT:return new Int32Array(i.buffer,l*a,o)}}function shi(e,r,i,a){var o=qDr(e,r),l=gg(o,2),h=l[0],d=l[1],p=YDr(e,d,a),m=e.createBuffer();if(e.bindBuffer(e.ARRAY_BUFFER,m),e.bufferData(e.ARRAY_BUFFER,p,e.STATIC_DRAW),d===e.FLOAT)e.vertexAttribPointer(i,h,d,!1,0,0);else if(d===e.INT)e.vertexAttribIPointer(i,h,d,0,0);return e.enableVertexAttribArray(i),e.bindBuffer(e.ARRAY_BUFFER,null),m}function D3(e,r,i,a){var o=qDr(e,i),l=gg(o,3),h=l[0],d=l[1],p=l[2],m=YDr(e,d,r*h),y=h*p,E=e.createBuffer();if(e.bindBuffer(e.ARRAY_BUFFER,E),e.bufferData(e.ARRAY_BUFFER,r*y,e.DYNAMIC_DRAW),e.enableVertexAttribArray(a),d===e.FLOAT)e.vertexAttribPointer(a,h,d,!1,y,0);else if(d===e.INT)e.vertexAttribIPointer(a,h,d,y,0);e.vertexAttribDivisor(a,1),e.bindBuffer(e.ARRAY_BUFFER,null);var w=Array(r);for(var T=0;TUDr)Shi(e),r.call(e,l);else Thi(e),XDr(e,l,Xie.SCREEN)}}{var i=e.matchCanvasSize;e.matchCanvasSize=function(l){i.call(e,l),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0}}e.findNearestElements=function(l,h,d,p){return Ihi(e,l,h)};{var a=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){a.call(e),e.pickingFrameBuffer.needsDraw=!0}}{var o=e.notify;e.notify=function(l,h){if(o.call(e,l,h),l==="viewport"||l==="bounds")e.pickingFrameBuffer.needsDraw=!0;else if(l==="background")e.drawing.invalidate(h,{type:"node-body"})}}}function Shi(e){var r=e.data.contexts[e.WEBGL];r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT)}function Thi(e){var r=function(a){a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.canvasWidth,e.canvasHeight),a.restore()};r(e.data.contexts[e.NODE]),r(e.data.contexts[e.DRAG])}function xhi(e){var{canvasWidth:r,canvasHeight:i}=e,a=Aot(e),{pan:o,zoom:l}=a,h=Nst();CTe(h,h,[o.x,o.y]),eot(h,h,[l,l]);var d=Nst();uhi(d,r,i);var p=Nst();return chi(p,d,h),p}function KDr(e,r){var{canvasWidth:i,canvasHeight:a}=e,o=Aot(e),{pan:l,zoom:h}=o;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,i,a),r.translate(l.x,l.y),r.scale(h,h)}function Chi(e,r){e.drawSelectionRectangle(r,function(i){return KDr(e,i)})}function khi(e){var r=e.data.contexts[e.NODE];r.save(),KDr(e,r),r.strokeStyle="rgba(0, 0, 0, 0.3)",r.beginPath(),r.moveTo(-1000,0),r.lineTo(1000,0),r.stroke(),r.beginPath(),r.moveTo(0,-1000),r.lineTo(0,1000),r.stroke(),r.restore()}function Ahi(e){var r=function(o,l,h){var d=o.atlasManager.getAtlasCollection(l),p=e.data.contexts[e.NODE],m=d.atlases;for(var y=0;y=0)B.add(F)}return B}function Ihi(e,r,i){var a=Rhi(e,r,i),o=e.getCachedZSortedEles(),l,h,d=a2(a),p;try{for(d.s();!(p=d.n()).done;){var m=p.value,y=o[m];if(!l&&y.isNode())l=y;if(!h&&y.isEdge())h=y;if(l&&h)break}}catch(E){d.e(E)}finally{d.f()}return[l,h].filter(Boolean)}function Bst(e,r,i){var a=e.drawing;if(r+=1,i.isNode())a.drawNode(i,r,"node-underlay"),a.drawNode(i,r,"node-body"),a.drawTexture(i,r,"label"),a.drawNode(i,r,"node-overlay");else a.drawEdgeLine(i,r),a.drawEdgeArrow(i,r,"source"),a.drawEdgeArrow(i,r,"target"),a.drawTexture(i,r,"label"),a.drawTexture(i,r,"edge-source-label"),a.drawTexture(i,r,"edge-target-label")}function XDr(e,r,i){var a;if(e.webglDebug)a=performance.now();var o=e.drawing,l=0;if(i.screen){if(e.data.canvasNeedsRedraw[e.SELECT_BOX])Chi(e,r)}if(e.data.canvasNeedsRedraw[e.NODE]||i.picking){var h=e.data.contexts[e.WEBGL];if(i.screen)h.clearColor(0,0,0,0),h.enable(h.BLEND),h.blendFunc(h.ONE,h.ONE_MINUS_SRC_ALPHA);else h.disable(h.BLEND);h.clear(h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT),h.viewport(0,0,h.canvas.width,h.canvas.height);var d=xhi(e),p=e.getCachedZSortedEles();if(l=p.length,o.startFrame(d,i),i.screen){for(var m=0;m"u")return!1;else return r instanceof HTMLElement},_ai=function(r){return uu(r)&&Sa(r.x1)&&Sa(r.x2)&&Sa(r.y1)&&Sa(r.y2)},Eai=function(r){return bai(r)&&ap(r.then)},wai=function(){return BLr&&BLr.userAgent.match(/msie|trident|edge/i)},Oq=function(r,i){if(!i)i=function(){if(arguments.length===1)return arguments[0];else if(arguments.length===0)return"undefined";var l=[];for(var h=0;hi)return 1;else return 0},Rai=function(r,i){return-1*y8r(r,i)},Eo,Iai=function(r){if(!(r.length===4||r.length===7)||r[0]!=="#")return;var i=r.length===4,a,o,l,h=16;if(i)a=parseInt(r[1]+r[1],h),o=parseInt(r[2]+r[2],h),l=parseInt(r[3]+r[3],h);else a=parseInt(r[1]+r[2],h),o=parseInt(r[3]+r[4],h),l=parseInt(r[5]+r[6],h);return[a,o,l]},Oai=function(r){var i,a,o,l,h,d,p,m;function y(x,k,A){if(A<0)A+=1;if(A>1)A-=1;if(A<0.16666666666666666)return x+(k-x)*6*A;if(A<0.5)return k;if(A<0.6666666666666666)return x+(k-x)*(0.6666666666666666-A)*6;return x}var E=new RegExp("^"+xai+"$").exec(r);if(E){if(a=parseInt(E[1]),a<0)a=(360- -1*a%360)%360;else if(a>360)a=a%360;if(a/=360,o=parseFloat(E[2]),o<0||o>100)return;if(o=o/100,l=parseFloat(E[3]),l<0||l>100)return;if(l=l/100,h=E[4],h!==void 0){if(h=parseFloat(h),h<0||h>1)return}if(o===0)d=p=m=Math.round(l*255);else{var w=l<0.5?l*(1+o):l+o-l*o,T=2*l-w;d=Math.round(255*y(T,w,a+0.3333333333333333)),p=Math.round(255*y(T,w,a)),m=Math.round(255*y(T,w,a-0.3333333333333333))}i=[d,p,m,h]}return i},Nai=function(r){var i,a=new RegExp("^"+Sai+"$").exec(r);if(a){i=[];var o=[];for(var l=1;l<=3;l++){var h=a[l];if(h[h.length-1]==="%")o[l]=!0;if(h=parseFloat(h),o[l])h=h/100*255;if(h<0||h>255)return;i.push(Math.floor(h))}var d=o[1]||o[2]||o[3],p=o[1]&&o[2]&&o[3];if(d&&!p)return;var m=a[4];if(m!==void 0){if(m=parseFloat(m),m<0||m>1)return;i.push(m)}}return i},Lai=function(r){return Mai[r.toLowerCase()]},v8r=function(r){return(hd(r)?r:null)||Lai(r)||Iai(r)||Nai(r)||Oai(r)},Mai,_8r=function(r){var{map:i,keys:a}=r,o=a.length;for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:wB,a=i,o;for(;;){if(o=r.next(),o.done)break;a=a*T8r+o.value|0}return a},Qie=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:wB;return i*T8r+r|0},Zie=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Sq;return(i<<5)+i+r|0},Yai=function(r,i){return r*2097152+i},JL=function(r){return r[0]*2097152+r[1]},iTe=function(r,i){return[Qie(r[0],i[0]),Zie(r[1],i[1])]},JLr=function(r,i){var a={value:0,done:!1},o=0,l=r.length,h={next:function(){if(o=0;o--)if(r[o]===i)r.splice(o,1)},uot=function(r){r.splice(0,r.length)},rsi=function(r,i){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:!0;if(r===void 0||i===void 0||!aot(r)){_f("An element must have a core reference and parameters set");return}var o=i.group;if(o==null)if(i.data&&i.data.source!=null&&i.data.target!=null)o="edges";else o="nodes";if(o!=="nodes"&&o!=="edges"){_f("An element must be of type `nodes` or `edges`; you specified `"+o+"`");return}this.length=1,this[0]=this;var l=this._private={cy:r,single:!0,data:i.data||{},position:i.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:o,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:i.selected?!0:!1,selectable:i.selectable===void 0?!0:i.selectable?!0:!1,locked:i.locked?!0:!1,grabbed:!1,grabbable:i.grabbable===void 0?!0:i.grabbable?!0:!1,pannable:i.pannable===void 0?o==="edges"?!0:!1:i.pannable?!0:!1,active:!1,classes:new Pq,animation:{current:[],queue:[]},rscratch:{},scratch:i.scratch||{},edges:[],children:[],parent:i.parent&&i.parent.isNode()?i.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(l.position.x==null)l.position.x=0;if(l.position.y==null)l.position.y=0;if(i.renderedPosition){var h=i.renderedPosition,d=r.pan(),p=r.zoom();l.position={x:(h.x-d.x)/p,y:(h.y-d.y)/p}}var m=[];if(hd(i.classes))m=i.classes;else if(Ws(i.classes))m=i.classes.split(/\s+/);for(var y=0,E=m.length;y=0;y--){var E=m[y],w=E[1],T=E[2];if(i[w]===d&&i[T]===p||i[w]===p&&i[T]===d)m.splice(y,1)}for(var x=0;xo){var l=Math.floor(Math.random()*i.length);i=_si(l,r,i),a--}return i},Esi,xat,wsi=function(r){return{x:r.x,y:r.y}},HTe=function(r,i,a){return{x:r.x*i+a.x,y:r.y*i+a.y}},O8r=function(r,i,a){return{x:(r.x-a.x)/i,y:(r.y-a.y)/i}},Tq=function(r){return{x:r[0],y:r[1]}},Ssi=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=1/0;for(var l=i;l1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=-1/0;for(var l=i;l1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=0,l=0;for(var h=i;h1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(o)r=r.slice(i,a);else{if(a0)r.splice(0,i)}var d=0;for(var p=r.length-1;p>=0;p--){var m=r[p];if(h){if(!isFinite(m))r[p]=-1/0,d++}else r.splice(p,1)}if(l)r.sort(function(w,T){return w-T});var y=r.length,E=Math.floor(y/2);if(y%2!==0)return r[E+1+d];else return(r[E-1+d]+r[E+d])/2},N8r=function(r,i){if(i===0)return r;return N8r(i,r%i)},ksi=function(r){var i=r[0];for(var a=0;a0)i=N8r(i,r[a]);return i},Asi=function(r){return Math.PI*r/180},aTe=function(r,i){return Math.atan2(i,r)-Math.PI/2},hot,dot=function(r){if(r>0)return 1;else if(r<0)return-1;else return 0},CB=function(r,i){return Math.sqrt(_B(r,i))},_B=function(r,i){var a=i.x-r.x,o=i.y-r.y;return a*a+o*o},Rsi=function(r){var i=r.length,a=0;for(var o=0;o=r.x1&&r.y2>=r.y1)return{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,w:r.x2-r.x1,h:r.y2-r.y1};else if(r.w!=null&&r.h!=null&&r.w>=0&&r.h>=0)return{x1:r.x1,y1:r.y1,x2:r.x1+r.w,y2:r.y1+r.h,w:r.w,h:r.h}}},Osi=function(r){return{x1:r.x1,x2:r.x2,w:r.w,y1:r.y1,y2:r.y2,h:r.h}},Nsi=function(r){r.x1=1/0,r.y1=1/0,r.x2=-1/0,r.y2=-1/0,r.w=0,r.h=0},Lsi=function(r,i){r.x1=Math.min(r.x1,i.x1),r.x2=Math.max(r.x2,i.x2),r.w=r.x2-r.x1,r.y1=Math.min(r.y1,i.y1),r.y2=Math.max(r.y2,i.y2),r.h=r.y2-r.y1},L8r=function(r,i,a){r.x1=Math.min(r.x1,i),r.x2=Math.max(r.x2,i),r.w=r.x2-r.x1,r.y1=Math.min(r.y1,a),r.y2=Math.max(r.y2,a),r.h=r.y2-r.y1},bTe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return r.x1-=i,r.x2+=i,r.y1-=i,r.y2+=i,r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},yTe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,o,l,h;if(i.length===1)a=o=l=h=i[0];else if(i.length===2)a=l=i[0],h=o=i[1];else if(i.length===4){var d=gg(i,4);a=d[0],o=d[1],l=d[2],h=d[3]}return r.x1-=h,r.x2+=o,r.y1-=a,r.y2+=l,r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},a7r=function(r,i){r.x1=i.x1,r.y1=i.y1,r.x2=i.x2,r.y2=i.y2,r.w=r.x2-r.x1,r.h=r.y2-r.y1},fot=function(r,i){if(r.x1>i.x2)return!1;if(i.x1>r.x2)return!1;if(r.x2i.y2)return!1;if(i.y1>r.y2)return!1;return!0},i7=function(r,i,a){return r.x1<=i&&i<=r.x2&&r.y1<=a&&a<=r.y2},s7r=function(r,i){return i7(r,i.x,i.y)},M8r=function(r,i){return i7(r,i.x1,i.y1)&&i7(r,i.x2,i.y2)},Msi,D8r=function(r,i,a,o,l,h,d){var p=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",m=p==="auto"?u7(l,h):p,y=l/2,E=h/2;m=Math.min(m,y,E);var w=m!==y,T=m!==E,x;if(w){var k=a-y+m-d,A=o-E-d,R=a+y-m+d,N=A;if(x=a7(r,i,a,o,k,A,R,N,!1),x.length>0)return x}if(T){var L=a+y+d,B=o-E+m-d,D=L,P=o+E-m+d;if(x=a7(r,i,a,o,L,B,D,P,!1),x.length>0)return x}if(w){var F=a-y+m-d,H=o+E+d,K=a+y-m+d,Q=H;if(x=a7(r,i,a,o,F,H,K,Q,!1),x.length>0)return x}if(T){var Z=a-y-d,Y=o-E+m-d,j=Z,te=o+E-m+d;if(x=a7(r,i,a,o,Z,Y,j,te,!1),x.length>0)return x}var X;{var W=a-y+m,J=o-E+m;if(X=qie(r,i,a,o,W,J,m+d),X.length>0&&X[0]<=W&&X[1]<=J)return[X[0],X[1]]}{var z=a+y-m,ne=o-E+m;if(X=qie(r,i,a,o,z,ne,m+d),X.length>0&&X[0]>=z&&X[1]<=ne)return[X[0],X[1]]}{var ie=a+y-m,le=o+E-m;if(X=qie(r,i,a,o,ie,le,m+d),X.length>0&&X[0]>=ie&&X[1]>=le)return[X[0],X[1]]}{var se=a-y+m,he=o+E-m;if(X=qie(r,i,a,o,se,he,m+d),X.length>0&&X[0]<=se&&X[1]>=he)return[X[0],X[1]]}return[]},Bsi=function(r,i,a,o,l,h,d){var p=d,m=Math.min(a,l),y=Math.max(a,l),E=Math.min(o,h),w=Math.max(o,h);return m-p<=r&&r<=y+p&&E-p<=i&&i<=w+p},Fsi=function(r,i,a,o,l,h,d,p,m){var y={x1:Math.min(a,d,l)-m,x2:Math.max(a,d,l)+m,y1:Math.min(o,p,h)-m,y2:Math.max(o,p,h)+m};if(ry.x2||iy.y2)return!1;else return!0},$si=function(r,i,a,o){a-=o;var l=i*i-4*r*a;if(l<0)return[];var h=Math.sqrt(l),d=2*r,p=(-i+h)/d,m=(-i-h)/d;return[p,m]},Usi=function(r,i,a,o,l){var h=0.00001;if(r===0)r=h;i/=r,a/=r,o/=r;var d,p,m,y,E,w,T,x;if(p=(3*a-i*i)/9,m=-(27*o)+i*(9*a-2*(i*i)),m/=54,d=p*p*p+m*m,l[1]=0,T=i/3,d>0){E=m+Math.sqrt(d),E=E<0?-Math.pow(-E,0.3333333333333333):Math.pow(E,0.3333333333333333),w=m-Math.sqrt(d),w=w<0?-Math.pow(-w,0.3333333333333333):Math.pow(w,0.3333333333333333),l[0]=-T+E+w,T+=(E+w)/2,l[4]=l[2]=-T,T=Math.sqrt(3)*(-w+E)/2,l[3]=T,l[5]=-T;return}if(l[5]=l[3]=0,d===0){x=m<0?-Math.pow(-m,0.3333333333333333):Math.pow(m,0.3333333333333333),l[0]=-T+2*x,l[4]=l[2]=-(x+T);return}p=-p,y=p*p*p,y=Math.acos(m/Math.sqrt(y)),x=2*Math.sqrt(p),l[0]=-T+x*Math.cos(y/3),l[2]=-T+x*Math.cos((y+2*Math.PI)/3),l[4]=-T+x*Math.cos((y+4*Math.PI)/3);return},Gsi=function(r,i,a,o,l,h,d,p){var m=1*a*a-4*a*l+2*a*d+4*l*l-4*l*d+d*d+o*o-4*o*h+2*o*p+4*h*h-4*h*p+p*p,y=9*a*l-3*a*a-3*a*d-6*l*l+3*l*d+9*o*h-3*o*o-3*o*p-6*h*h+3*h*p,E=3*a*a-6*a*l+a*d-a*r+2*l*l+2*l*r-d*r+3*o*o-6*o*h+o*p-o*i+2*h*h+2*h*i-p*i,w=1*a*l-a*a+a*r-l*r+o*h-o*o+o*i-h*i,T=[];Usi(m,y,E,w,T);var x=0.0000001,k=[];for(var A=0;A<6;A+=2)if(Math.abs(T[A+1])=0&&T[A]<=1)k.push(T[A]);k.push(1),k.push(0);var R=-1,N,L,B;for(var D=0;D=0){if(Bm)return(r-l)*(r-l)+(i-h)*(i-h);return y-w},i2=function(r,i,a){var o,l,h,d,p,m=0;for(var y=0;y=r&&r>=h||o<=r&&r<=h){if(p=(r-o)/(h-o)*(d-l)+l,p>i)m++}else continue}if(m%2===0)return!1;else return!0},eI=function(r,i,a,o,l,h,d,p,m){var y=Array(a.length),E;if(p[0]!=null)if(E=Math.atan(p[1]/p[0]),p[0]<0)E=E+Math.PI/2;else E=-E-Math.PI/2;else E=p;var w=Math.cos(-E),T=Math.sin(-E);for(var x=0;x0){var A=NTe(y,-m);k=OTe(A)}else k=y;return i2(r,i,k)},Vsi=function(r,i,a,o,l,h,d,p){var m=Array(a.length*2);for(var y=0;y=0&&A<=1)N.push(A);if(R>=0&&R<=1)N.push(R);if(N.length===0)return[];var L=N[0]*p[0]+r,B=N[0]*p[1]+i;if(N.length>1)if(N[0]==N[1])return[L,B];else{var D=N[1]*p[0]+r,P=N[1]*p[1]+i;return[L,B,D,P]}else return[L,B]},Cat=function(r,i,a){if(i<=r&&r<=a||a<=r&&r<=i)return r;else if(r<=i&&i<=a||a<=i&&i<=r)return i;else return a},a7=function(r,i,a,o,l,h,d,p,m){var y=r-l,E=a-r,w=d-l,T=i-h,x=o-i,k=p-h,A=w*T-k*y,R=E*T-x*y,N=k*E-w*x;if(N!==0){var L=A/N,B=R/N,D=0.001,P=0-D,F=1+D;if(P<=L&&L<=F&&P<=B&&B<=F)return[r+L*E,i+L*x];else if(!m)return[];else return[r+L*E,i+L*x]}else if(A===0||R===0){if(Cat(r,a,d)===d)return[d,p];if(Cat(r,a,l)===l)return[l,h];if(Cat(l,d,a)===a)return[a,o];return[]}else return[]},qsi=function(r,i,a,o,l){var h=[],d=o/2,p=l/2,m=i,y=a;h.push({x:m+d*r[0],y:y+p*r[1]});for(var E=1;E0){var k=NTe(E,-p);T=OTe(k)}else T=E}else T=a;var A,R,N,L;for(var B=0;B2){var x=[y[0],y[1]],k=Math.pow(x[0]-r,2)+Math.pow(x[1]-i,2);for(var A=1;A0)d.push(a[p]);if(d.length!==0)l.push(o.collection(d))}return l},soi=function(r,i){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:coi,d=o,p,m;for(var y=0;ya)return!1}return!0},goi=function(r,i,a){for(var o=0;od)d=i[m][y],p=y;l[p].push(r[m])}for(var E=0;E=l.threshold||l.mode==="dendrogram"&&r.length===1)return!1;var x=i[h],k=i[o[h]],A;if(l.mode==="dendrogram")A={left:x,right:k,key:x.key};else A={value:x.value.concat(k.value),key:x.key};r[x.index]=A,r.splice(k.index,1),i[x.key]=A;for(var R=0;Ra[k.key][N.key])p=a[k.key][N.key]}else if(l.linkage==="max"){if(p=a[x.key][N.key],a[x.key][N.key]0)o.push(l);return o},b7r=function(r,i,a){var o=[];for(var l=0;ld)h=m,d=i[l*r+m]}if(h>0)o.push(h)}for(var y=0;ym)p=y,m=E}a[l]=h[p]}return o=b7r(r,i,a),o},y7r=function(r){var i=this.cy(),a=this.nodes(),o=koi(r),l={};for(var h=0;h=Z)Y=Z,Z=te,j=X;else if(te>Y)Y=te;for(var W=0;W0?1:0;F[K%o.minIterations*d+se]=he,le+=he}if(le>0&&(K>=o.minIterations-1||K==o.maxIterations-1)){var ye=0;for(var xe=0;xe1}});var y=Object.keys(i).filter(function(E){return i[E].cutVertex}).map(function(E){return r.getElementById(E)});return{cut:r.spawn(y),components:l}},Doi,lTe=function(){var r=this,i={},a=0,o=[],l=[],h=r.spawn(r),d=function(m){l.push(m),i[m]={index:a,low:a++,explored:!1};var y=r.getElementById(m).connectedEdges().intersection(r);if(y.forEach(function(k){var A=k.target().id();if(A!==m){if(!(A in i))d(A);if(!i[A].explored)i[m].low=Math.min(i[m].low,i[A].low)}}),i[m].index===i[m].low){var E=r.spawn();for(;;){var w=l.pop();if(E.merge(r.getElementById(w)),i[w].low=i[m].index,i[w].explored=!0,w===m)break}var T=E.edgesWith(E),x=E.merge(T);o.push(x),h=h.difference(x)}};return r.forEach(function(p){if(p.isNode()){var m=p.id();if(!(m in i))d(m)}}),{cut:h,components:o}},Poi,z8r,V8r=0,H8r=1,q8r=2,IC=function(r){if(!(this instanceof IC))return new IC(r);if(this.id="Thenable/1.0.7",this.state=V8r,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof r==="function")r.call(this,this.fulfill.bind(this),this.reject.bind(this))},v7r=function(r,i,a,o){if(r.state===V8r)r.state=i,r[a]=o,Y8r(r);return r},Y8r=function(r){if(r.state===H8r)_7r(r,"onFulfilled",r.fulfillValue);else if(r.state===q8r)_7r(r,"onRejected",r.rejectReason)},_7r=function(r,i,a){if(r[i].length===0)return;var o=r[i];r[i]=[];var l=function(){for(var d=0;d0&&y.edgeCount>0)return uh("The selector `"+r+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(y.edgeCount>1)return uh("The selector `"+r+"` is invalid because it uses multiple edge selectors"),!1;else if(y.edgeCount===1)uh("The selector `"+r+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},$li=function(){if(this.toStringCache!=null)return this.toStringCache;var r=function(y){if(y==null)return"";else return y},i=function(y){if(Ws(y))return'"'+y+'"';else return r(y)},a=function(y){return" "+y+" "},o=function(y,E){var{type:w,value:T}=y;switch(w){case is.GROUP:{var x=r(T);return x.substring(0,x.length-1)}case is.DATA_COMPARE:{var{field:k,operator:A}=y;return"["+k+a(r(A))+i(T)+"]"}case is.DATA_BOOL:{var{operator:R,field:N}=y;return"["+r(R)+N+"]"}case is.DATA_EXIST:{var L=y.field;return"["+L+"]"}case is.META_COMPARE:{var{operator:B,field:D}=y;return"[["+D+a(r(B))+i(T)+"]]"}case is.STATE:return T;case is.ID:return"#"+T;case is.CLASS:return"."+T;case is.PARENT:case is.CHILD:return l(y.parent,E)+a(">")+l(y.child,E);case is.ANCESTOR:case is.DESCENDANT:return l(y.ancestor,E)+" "+l(y.descendant,E);case is.COMPOUND_SPLIT:{var P=l(y.left,E),F=l(y.subject,E),H=l(y.right,E);return P+(P.length>0?" ":"")+F+H}case is.TRUE:return""}},l=function(y,E){return y.checks.reduce(function(w,T,x){return w+(E===y&&x===0?"$":"")+o(T,E)},"")},h="";for(var d=0;d1&&d=0)i=i.replace("!",""),E=!0;if(i.indexOf("@")>=0)i=i.replace("@",""),y=!0;if(l||d||y)p=!l&&!h?"":""+r,m=""+a;if(y)r=p=p.toLowerCase(),a=m=m.toLowerCase();switch(i){case"*=":o=p.indexOf(m)>=0;break;case"$=":o=p.indexOf(m,p.length-m.length)>=0;break;case"^=":o=p.indexOf(m)===0;break;case"=":o=r===a;break;case">":w=!0,o=r>a;break;case">=":w=!0,o=r>=a;break;case"<":w=!0,o=rr.x2?o:r.x2,r.y1=ar.y2?l:r.y2,r.w=r.x2-r.x1,r.h=r.y2-r.y1},r7=function(r,i){if(i==null)return r;return AC(r,i.x1,i.y1,i.x2,i.y2)},$ie=function(r,i,a){return _v(r,i,a)},cTe=function(r,i,a){if(i.cy().headless())return;var o=i._private,l=o.rstyle,h=l.arrowWidth/2,d=i.pstyle(a+"-arrow-shape").value,p,m;if(d!=="none"){if(a==="source")p=l.srcX,m=l.srcY;else if(a==="target")p=l.tgtX,m=l.tgtY;else p=l.midX,m=l.midY;var y=o.arrowBounds=o.arrowBounds||{},E=y[a]=y[a]||{};E.x1=p-h,E.y1=m-h,E.x2=p+h,E.y2=m+h,E.w=E.x2-E.x1,E.h=E.y2-E.y1,bTe(E,1),AC(r,E.x1,E.y1,E.x2,E.y2)}},kst=function(r,i,a){if(i.cy().headless())return;var o;if(a)o=a+"-";else o="";var l=i._private,h=l.rstyle,d=i.pstyle(o+"label").strValue;if(d){var p=i.pstyle("text-halign"),m=i.pstyle("text-valign"),y=$ie(h,"labelWidth",a),E=$ie(h,"labelHeight",a),w=$ie(h,"labelX",a),T=$ie(h,"labelY",a),x=i.pstyle(o+"text-margin-x").pfValue,k=i.pstyle(o+"text-margin-y").pfValue,A=i.isEdge(),R=i.pstyle(o+"text-rotation"),N=i.pstyle("text-outline-width").pfValue,L=i.pstyle("text-border-width").pfValue,B=L/2,D=i.pstyle("text-background-padding").pfValue,P=2,F=E,H=y,K=H/2,Q=F/2,Z,Y,j,te;if(A)Z=w-K,Y=w+K,j=T-Q,te=T+Q;else{switch(Mq(p.value)){case"left":Z=w-H,Y=w;break;case"center":Z=w-K,Y=w+K;break;case"right":Z=w,Y=w+H;break}switch(Dq(m.value)){case"top":j=T-F,te=T;break;case"center":j=T-Q,te=T+Q;break;case"bottom":j=T,te=T+F;break}}var X=x-Math.max(N,B)-D-P,W=x+Math.max(N,B)+D+P,J=k-Math.max(N,B)-D-P,z=k+Math.max(N,B)+D+P;Z+=X,Y+=W,j+=J,te+=z;var ne=a||"main",ie=l.labelBounds,le=ie[ne]=ie[ne]||{};le.x1=Z,le.y1=j,le.x2=Y,le.y2=te,le.w=Y-Z,le.h=te-j,le.leftPad=X,le.rightPad=W,le.topPad=J,le.botPad=z;var se=A&&R.strValue==="autorotate",he=R.pfValue!=null&&R.pfValue!==0;if(se||he){var ye=se?$ie(l.rstyle,"labelAngle",a):R.pfValue,xe=Math.cos(ye),Ie=Math.sin(ye),Ee=(Z+Y)/2,Ue=(j+te)/2;if(!A){switch(Mq(p.value)){case"left":Ee=Y;break;case"right":Ee=Z;break}switch(Dq(m.value)){case"top":Ue=te;break;case"bottom":Ue=j;break}}var Me=function(rr,We){return rr=rr-Ee,We=We-Ue,{x:rr*xe-We*Ie+Ee,y:rr*Ie+We*xe+Ue}},Xe=Me(Z,j),je=Me(Z,te),Qe=Me(Y,j),St=Me(Y,te);Z=Math.min(Xe.x,je.x,Qe.x,St.x),Y=Math.max(Xe.x,je.x,Qe.x,St.x),j=Math.min(Xe.y,je.y,Qe.y,St.y),te=Math.max(Xe.y,je.y,Qe.y,St.y)}var pt=ne+"Rot",Vt=ie[pt]=ie[pt]||{};Vt.x1=Z,Vt.y1=j,Vt.x2=Y,Vt.y2=te,Vt.w=Y-Z,Vt.h=te-j,AC(r,Z,j,Y,te),AC(l.labelBounds.all,Z,j,Y,te)}return r},_Mr=function(r,i){if(i.cy().headless())return;var a=i.pstyle("outline-opacity").value,o=i.pstyle("outline-width").value,l=i.pstyle("outline-offset").value,h=o+l;aDr(r,i,a,h,"outside",h/2)},aDr=function(r,i,a,o,l,h){if(a===0||o<=0||l==="inside")return;var d=i.cy(),p=d.renderer(),m=p.nodeShapes[p.getNodeShape(i)];if(!m)return;var y=i.position(),{x:E,y:w}=y,T=i.width(),x=i.height();if(m.hasMiterBounds){if(l==="center")o/=2;var k=m.miterBounds(E,w,T,x,o);r7(r,k)}else if(h!=null&&h>0)yTe(r,[h,h,h,h])},Qli=function(r,i){if(i.cy().headless())return;var a=i.pstyle("border-opacity").value,o=i.pstyle("border-width").pfValue,l=i.pstyle("border-position").value;aDr(r,i,a,o,l)},Zli=function(r,i){var a=r._private.cy,o=a.styleEnabled(),l=a.headless(),h=Ev(),d=r._private,p=r.isNode(),m=r.isEdge(),y,E,w,T,x,k,A=d.rstyle,R=p&&o?r.pstyle("bounds-expansion").pfValue:[0],N=function(Xt){return Xt.pstyle("display").value!=="none"},L=!o||N(r)&&(!m||N(r.source())&&N(r.target()));if(L){var B=0,D=0;if(o&&i.includeOverlays){if(B=r.pstyle("overlay-opacity").value,B!==0)D=r.pstyle("overlay-padding").value}var P=0,F=0;if(o&&i.includeUnderlays){if(P=r.pstyle("underlay-opacity").value,P!==0)F=r.pstyle("underlay-padding").value}var H=Math.max(D,F),K=0,Q=0;if(o)K=r.pstyle("width").pfValue,Q=K/2;if(p&&i.includeNodes){var Z=r.position();x=Z.x,k=Z.y;var Y=r.outerWidth(),j=Y/2,te=r.outerHeight(),X=te/2;if(y=x-j,E=x+j,w=k-X,T=k+X,AC(h,y,w,E,T),o)_Mr(h,r);if(o&&i.includeOutlines&&!l)_Mr(h,r);if(o)Qli(h,r)}else if(m&&i.includeEdges)if(o&&!l){var W=r.pstyle("curve-style").strValue;if(y=Math.min(A.srcX,A.midX,A.tgtX),E=Math.max(A.srcX,A.midX,A.tgtX),w=Math.min(A.srcY,A.midY,A.tgtY),T=Math.max(A.srcY,A.midY,A.tgtY),y-=Q,E+=Q,w-=Q,T+=Q,AC(h,y,w,E,T),W==="haystack"){var J=A.haystackPts;if(J&&J.length===2){if(y=J[0].x,w=J[0].y,E=J[1].x,T=J[1].y,y>E){var z=y;y=E,E=z}if(w>T){var ne=w;w=T,T=ne}AC(h,y-Q,w-Q,E+Q,T+Q)}}else if(W==="bezier"||W==="unbundled-bezier"||n7(W,"segments")||n7(W,"taxi")){var ie;switch(W){case"bezier":case"unbundled-bezier":ie=A.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":ie=A.linePts;break}if(ie!=null)for(var le=0;leE){var Ee=y;y=E,E=Ee}if(w>T){var Ue=w;w=T,T=Ue}y-=Q,E+=Q,w-=Q,T+=Q,AC(h,y,w,E,T)}if(o&&i.includeEdges&&m)cTe(h,r,"mid-source"),cTe(h,r,"mid-target"),cTe(h,r,"source"),cTe(h,r,"target");if(o){var Me=r.pstyle("ghost").value==="yes";if(Me){var Xe=r.pstyle("ghost-offset-x").pfValue,je=r.pstyle("ghost-offset-y").pfValue;AC(h,h.x1+Xe,h.y1+je,h.x2+Xe,h.y2+je)}}var Qe=d.bodyBounds=d.bodyBounds||{};if(a7r(Qe,h),yTe(Qe,R),bTe(Qe,1),o)y=h.x1,E=h.x2,w=h.y1,T=h.y2,AC(h,y-H,w-H,E+H,T+H);var St=d.overlayBounds=d.overlayBounds||{};a7r(St,h),yTe(St,R),bTe(St,1);var pt=d.labelBounds=d.labelBounds||{};if(pt.all!=null)Nsi(pt.all);else pt.all=Ev();if(o&&i.includeLabels){if(i.includeMainLabels)kst(h,r,null);if(m){if(i.includeSourceLabels)kst(h,r,"source");if(i.includeTargetLabels)kst(h,r,"target")}}}if(h.x1=aT(h.x1),h.y1=aT(h.y1),h.x2=aT(h.x2),h.y2=aT(h.y2),h.w=aT(h.x2-h.x1),h.h=aT(h.y2-h.y1),h.w>0&&h.h>0&&L)yTe(h,R),bTe(h,1);return h},sDr=function(r){var i=0,a=function(h){return(h?1:0)<"u"?"undefined":om(Symbol))!=r&&om(Symbol.iterator)!=r;if(i)MTe[Symbol.iterator]=function(){var a=this,o={value:void 0,done:!1},l=0,h=this.length;return h8r({next:function(){if(l2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r===void 0){_f("A collection must have a reference to the core");return}var l=new ZR,h=!1;if(!i)i=[];else if(i.length>0&&uu(i[0])&&!lae(i[0])){h=!0;var d=[],p=new Pq;for(var m=0,y=i.length;m0)R.remove();if(x!=null){if(uu(x)||hd(x))i.add(x)}i.one("layoutready",function(L){i.notifications(!0),i.emit(L),i.one("load",k),i.emitAndNotify("load")}).one("layoutstop",function(){i.one("done",A),i.emit("done")});var N=Eo({},i._private.options.layout);N.eles=i.elements(),i.layout(N).run()};y([d.style,d.elements],function(T){var x=T[0],k=T[1];if(m.styleEnabled)i.style().append(x);w(k,function(){if(i.startAnimationLoop(),m.ready=!0,ap(d.ready))i.on("ready",d.ready);for(var A=0;A0){d.graphSet.push(H);for(var y=0;yo.count)return 0;else return o.graph},EDr=function(r,i,a,o){var l=o.graphSet[a];if(-10)var E=o.nodeOverlap*y,w=Math.sqrt(d*d+p*p),T=E*d/w,x=E*p/w;else var k=PTe(r,d,p),A=PTe(i,-1*d,-1*p),R=A.x-k.x,N=A.y-k.y,L=R*R+N*N,w=Math.sqrt(L),E=(r.nodeRepulsion+i.nodeRepulsion)/L,T=E*R/w,x=E*N/w;if(!r.isLocked)r.offsetX-=T,r.offsetY-=x;if(!i.isLocked)i.offsetX+=T,i.offsetY+=x;return},jci=function(r,i,a,o){if(a>0)var l=r.maxX-i.minX;else var l=i.maxX-r.minX;if(o>0)var h=r.maxY-i.minY;else var h=i.maxY-r.minY;if(l>=0&&h>=0)return Math.sqrt(l*l+h*h);else return 0},PTe=function(r,i,a){var{positionX:o,positionY:l}=r,h=r.height||1,d=r.width||1,p=a/i,m=h/d,y={};if(i===0&&0a)return y.x=o,y.y=l+h/2,y;if(0i&&-1*m<=p&&p<=m)return y.x=o-d/2,y.y=l-d*a/2/i,y;if(0=m))return y.x=o+h*i/2/a,y.y=l+h/2,y;if(0>a&&(p<=-1*m||p>=m))return y.x=o-h*i/2/a,y.y=l-h/2,y;return y},Kci=function(r,i){for(var a=0;aa){var A=i.gravity*T/k,R=i.gravity*x/k;w.offsetX+=A,w.offsetY+=R}}}},Qci=function(r,i){var a=[],o=0,l=-1;a.push.apply(a,r.graphSet[0]),l+=r.graphSet[0].length;while(o<=l){var h=a[o++],d=r.idToIndex[h],p=r.layoutNodes[d],m=p.children;if(0a)var l={x:a*r/o,y:a*i/o};else var l={x:r,y:i};return l},SDr=function(r,i){var a=r.parentId;if(a==null)return;var o=i.layoutNodes[i.idToIndex[a]],l=!1;if(o.maxX==null||r.maxX+o.padRight>o.maxX)o.maxX=r.maxX+o.padRight,l=!0;if(o.minX==null||r.minX-o.padLefto.maxY)o.maxY=r.maxY+o.padBottom,l=!0;if(o.minY==null||r.minY-o.padTopR)x+=A+i.componentSpacing,T=0,k=0,A=0}},eui,tui,rui,nui,iui,UMr=function(){},GMr=function(){throw Error("A headless instance can not render images")},Tot,IB,BTe,Kst,Xst,P3,iT,zMr,VMr,SB,TTe,QR,yB,EB,M3,_q,fTe,ADr,RDr,Qst,Zst,HMr,qMr=function(r,i,a){a.x=i.x-r.x,a.y=i.y-r.y,a.len=Math.sqrt(a.x*a.x+a.y*a.y),a.nx=a.x/a.len,a.ny=a.y/a.len,a.ang=Math.atan2(a.ny,a.nx)},aui=function(r,i){i.x=r.x*-1,i.y=r.y*-1,i.nx=r.nx*-1,i.ny=r.ny*-1,i.ang=r.ang>0?-(Math.PI-r.ang):Math.PI+r.ang},sui=function(r,i,a,o,l){if(r!==HMr?qMr(i,r,P3):aui(iT,P3),qMr(i,a,iT),zMr=P3.nx*iT.ny-P3.ny*iT.nx,VMr=P3.nx*iT.nx-P3.ny*-iT.ny,QR=Math.asin(Math.max(-1,Math.min(1,zMr))),Math.abs(QR)<0.000001){Kst=i.x,Xst=i.y,EB=_q=0;return}if(SB=1,TTe=!1,VMr<0)if(QR<0)QR=Math.PI+QR;else QR=Math.PI-QR,SB=-1,TTe=!0;else if(QR>0)SB=-1,TTe=!0;if(i.radius!==void 0)_q=i.radius;else _q=o;if(yB=QR/2,fTe=Math.min(P3.len/2,iT.len/2),l)if(M3=Math.abs(Math.cos(yB)*_q/Math.sin(yB)),M3>fTe)M3=fTe,EB=Math.abs(M3*Math.sin(yB)/Math.cos(yB));else EB=_q;else M3=Math.min(fTe,_q),EB=Math.abs(M3*Math.sin(yB)/Math.cos(yB));Qst=i.x+iT.nx*M3,Zst=i.y+iT.ny*M3,Kst=Qst-iT.ny*EB*SB,Xst=Zst+iT.nx*EB*SB,ADr=i.x+P3.nx*M3,RDr=i.y+P3.ny*M3,HMr=i},sae=0.01,oui,ay,mae,Cot,U3,NDr=function(r,i){var a=Math.atan(i/r);if(r===0&&a<0)a=a*-1;return a},LDr=function(r,i){var a=i.x-r.x,o=i.y-r.y;return NDr(a,o)},cui=function(r,i,a,o){var l=eae(0,o-0.001,1),h=eae(0,o+0.001,1),d=kq(r,i,a,l),p=kq(r,i,a,h);return LDr(d,p)},MDr,YMr=28,WMr=!1,nxe,ixe,DDr,PDr,BDr=function(r,i){var a=r[0];if(!a||a._private.grabbed===i)return;a._private.grabbed=i,r.updateStyle(!1)},uui=function(r){BDr(r,!0)},hui=function(r){BDr(r,!1)},Uq,tI,bae,jMr=function(r,i,a){var o=r.beforeRenderCallbacks;for(var l=0;l0){if(o=o||a.position(),l==null||h==null){var T=a.padding();l=a.width()+2*T,h=a.height()+2*T}d.colorFillStyle(i,y[0],y[1],y[2],m),d.nodeShapes[E].draw(i,o.x,o.y,l+p*2,h+p*2,w),i.fill()}}},wv,Xui=100,zie,n8r,hhi,dhi,phi,ghi,mhi=` +Parent cluster`,o.height),r.setNode(o.id,R),!r.parent(k))Ze.trace("Setting parent",k,o.id),r.setParent(k,o.id,R)}if(Ze.info("(Insert) Node XXX"+k+": "+JSON.stringify(r.node(k))),A?.clusterNode){Ze.info("Cluster identified XBX",k,A.width,r.node(k));let{ranksep:R,nodesep:N}=r.graph();A.graph.setGraph({...A.graph.graph(),ranksep:R+25,nodesep:N});let L=await Qii({element:y,graph:A.graph,diagramType:i,id:a,parentCluster:r.node(k),siteConfig:l}),B=L.elem;La(A,B),A.diff=L.diff||0,Ze.info("New compound node after recursive render XAX",k,"width",A.width,"height",A.height),qCr(B,A)}else if(r.children(k).length>0)Ze.trace("Cluster - the non recursive path XBX",k,A.id,A,A.width,"Graph:",r),Ze.trace(dB(A.id,r)),vl.set(A.id,{id:dB(A.id,r),node:A});else Ze.trace("Node - the non recursive path XAX",k,y,r.node(k),h),await kSe(y,r.node(k),{config:l,dir:h})})),await I(async()=>{let k=r.edges().map(async function(A){let R=r.edge(A.v,A.w,A.name);if(Ze.info("Edge "+A.v+" -> "+A.w+": "+JSON.stringify(A)),Ze.info("Edge "+A.v+" -> "+A.w+": ",A," ",JSON.stringify(r.edge(A))),Ze.info("Fix",vl,"ids:",A.v,A.w,"Translating: ",vl.get(A.v),vl.get(A.w)),w&&R.selfLoop){if(R.selfLoop.order!==1)return;let N={...R.originalEdge,...R,id:R.selfLoop.id,startLabelLeft:R.originalEdge?.startLabelLeft??R.startLabelLeft,startLabelRight:R.originalEdge?.startLabelRight??R.startLabelRight,endLabelLeft:R.originalEdge?.endLabelLeft??R.endLabelLeft,endLabelRight:R.originalEdge?.endLabelRight??R.endLabelRight};await E3(m,N),R.width=N.width,R.height=N.height,R.labelStyle=N.labelStyle;return}await E3(m,R)});await Promise.all(k)},"processEdges")();let{subGraphTitleTotalMargin:x}=xC(l);return{elem:v,graph:r,groups:{clusters:d,edgePaths:p,edgeLabels:m,nodes:y,rootGroups:v},diagramType:i,id:a,mergeSelfLoops:w,subGraphTitleTotalMargin:x}},"measureDagreGraph"),sNr=I((e)=>{Ze.info("############################################# XXX"),Ze.info("### Layout ### XXX"),Ze.info("############################################# XXX"),oit(e)},"runDagreGraphLayout"),jii=I((e,r,i)=>{let a=e.node(r);if(!a)return;let o={...a};if(a?.clusterNode)o.y=(a.y??0)+i;else if(e.children(r).length>0)o.height=(a.height??0)+i;else o.y=(a.y??0)+i/2;return o},"normalizeDagreNode"),iNr=I((e,r)=>{Hii.forEach((i)=>{if(r[i]!==void 0)e[i]=r[i]})},"applyDagreNodeLayout"),Kii=I((e,r,i,a)=>({...e,start:e.start??r,end:e.end??i,points:(e.points??[]).map((o)=>({...o,y:typeof o.y==="number"?o.y+a:o.y}))}),"normalizeDagreEdge"),oNr=I((e,r)=>{let{graph:i,mergeSelfLoops:a,subGraphTitleTotalMargin:o=0}=r,l=new Map(e.nodes.map((d)=>[d.id,d]));ASe(i).forEach((d)=>{let p=jii(i,d,o);if(!p)return;iNr(i.node(d),p);let m=l.get(d);if(m)iNr(m,p)});let h=o/2;return e.edges=lit(i,h,{mergeSelfLoops:a}).map(({edge:d,start:p,end:m})=>Kii(d,p,m,h)),e},"applyDagreLayoutResult"),Xii=I(async({elem:e,graph:r,groups:{clusters:i,edgePaths:a},diagramType:o,id:l,mergeSelfLoops:h,subGraphTitleTotalMargin:d})=>{let p=0;await Promise.all(ASe(r).map(async function(v){let w=r.node(v);if(Ze.info("Position XBX => "+v+": ("+w.x,","+w.y,") width: ",w.width," height: ",w.height),w?.clusterNode)w.y+=d,Ze.info("A tainted cluster node XBX1",v,w.id,w.width,w.height,w.x,w.y,r.parent(v)),vl.get(w.id).node=w,_3(w);else if(r.children(v).length>0){Ze.info("A pure cluster node XBX1",v,w.id,w.x,w.y,w.width,w.height,r.parent(v)),w.height+=d,r.node(w.parentId);let T=w?.padding/2||0,x=w?.labelBBox?.height||0,k=x-T||0;Ze.debug("OffsetY",k,"labelHeight",x,"halfPadding",T),await CL(i,w),vl.get(w.id).node=w}else{let T=r.node(w.parentId);w.y+=d/2,Ze.info("A regular node XBX1 - using the padding",w.id,"parent",w.parentId,w.width,w.height,w.x,w.y,"offsetY",w.offsetY,"parent",T,T?.offsetY,w),_3(w)}}));let m=d/2;return lit(r,m,{mergeSelfLoops:h}).forEach(function({edge:v,start:w,end:T}){Ze.info("Edge "+w+" -> "+T+": "+JSON.stringify(v),v),v.points.forEach((R)=>R.y+=m);let x=r.node(w),k=r.node(T),A=kL(a,v,vl,o,x,k,l);UH(v,A)}),r.nodes().forEach(function(v){let w=r.node(v);if(Ze.info(v,w.type,w.diff),w.isGroup)p=w.diff}),Ze.warn("Returning from recursive render XAX",e,p),{elem:e,diff:p}},"paintDagreLayoutCore"),Qii=I(async(e)=>{let r=await aNr(e);return sNr(r.graph),await Xii(r)},"renderDagreSubgraph"),cit=I((e)=>{let r=new Yh({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.nodeSpacing||e.config?.flowchart?.nodeSpacing,ranksep:e.config?.rankSpacing||e.rankSpacing||e.config?.flowchart?.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});return e.nodes.forEach((i)=>{if(r.setNode(i.id,{...i}),i.parentId)r.setParent(i.id,i.parentId)}),Ze.debug("Edges:",e.edges),e.edges.forEach((i)=>{if(i.start===i.end){let a=i.start,o=a+"---"+a+"---1",l=a+"---"+a+"---2",h=r.node(a);r.setNode(o,{domId:o,id:o,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(o,h.parentId),r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(l,h.parentId);let d=structuredClone(i),p=structuredClone(i),m=structuredClone(i),y=structuredClone(i);if(p.originalEdge=d,p.selfLoop={id:d.id,order:0},m.originalEdge=d,m.selfLoop={id:d.id,order:1},y.originalEdge=d,y.selfLoop={id:d.id,order:2},p.label="",p.arrowTypeEnd="none",p.endLabelLeft="",p.endLabelRight="",p.startLabelLeft="",p.id=a+"-cyclic-special-1",m.startLabelRight="",m.startLabelLeft="",m.endLabelLeft="",m.endLabelRight="",m.arrowTypeStart="none",m.arrowTypeEnd="none",m.id=a+"-cyclic-special-mid",y.label="",y.startLabelRight="",y.startLabelLeft="",y.arrowTypeStart="none",h.isGroup)p.fromCluster=a,y.toCluster=a;y.id=a+"-cyclic-special-2",y.arrowTypeStart="none",r.setEdge(a,o,p,a+"-cyclic-special-0"),r.setEdge(o,l,m,a+"-cyclic-special-1"),r.setEdge(l,a,y,a+"-cyclic-special-2")}else r.setEdge(i.start,i.end,{...i},i.id)}),dIr(r),{graph:r}},"prepareLayoutForDagre"),lNr=I(async(e,{element:r,preparedLayout:i})=>{let a=i??cit(e),o=Ar(),l=await aNr({element:r,graph:a.graph,diagramType:e.type,id:e.diagramId,parentCluster:void 0,siteConfig:o});return a.measuredLayout=l,l},"measureDagreLayout"),cNr=I((e,r)=>{let i=r.preparedLayout?.measuredLayout;if(!i)throw Error("runDagreLayoutCore requires measureDagreLayout to run first");return sNr(i.graph),oNr(e,i),i},"runDagreLayoutCore"),Zii=I((e,{measure:r})=>ASe(r.graph).map((i)=>r.graph.node(i)).filter(Boolean),"getDagrePaintNodes"),Jii=I((e,r,{measure:i})=>e?i.graph.node(e):void 0,"getDagreEdgeNode"),eai=fB({prepareLayout:cit,measureLayout:lNr,runLayoutCore:cNr,paintOptions:{clusterDb:vl,getNodes:Zii,getEdgeNode:Jii,skipNode:I((e,{measure:r})=>!r.graph.hasNode(e.id),"skipNode"),isCluster:I((e,{measure:r})=>r.graph.hasNode(e.id)&&(r.graph.children(e.id)??[]).length>0,"isCluster")}})});var ULr={};VN(ULr,{render:()=>hai});function bNr(e,{measure:r}){let i=e.config?.swimlane?.lineHops;if(i===!1)return;let a=i==="gap"?"gap":"arc",o=e.edges.filter((l)=>Array.isArray(l.points)&&l.points.length>=2).map((l)=>({id:l.id,points:l.points,curve:l.curve,arrowTypeStart:l.arrowTypeStart,arrowTypeEnd:l.arrowTypeEnd}));tie(r.groups.edgePaths,o,{enabled:!0,jumpRadius:6,jumpStyle:a})}function pit(e){return Math.max(e.padding??dNr,dNr)}function yNr(e){let{x:r,y:i,width:a,height:o}=e,l=e.swimlaneContentTop;if(typeof r!=="number"||typeof i!=="number"||typeof a!=="number"||typeof o!=="number"||typeof l!=="number"||!Number.isFinite(r)||!Number.isFinite(i)||!Number.isFinite(a)||!Number.isFinite(o)||!Number.isFinite(l)||a<=0||o<=0){delete e.groupTitleRect;return}let h=i-o/2,d=Math.min(l,i+o/2),p=Math.min(tai,Math.max(0,d-h)),m=h+p;if(m<=h){delete e.groupTitleRect;return}e.groupTitleRect={left:r-a/2,right:r+a/2,top:h,bottom:m}}function vNr(e){let r=e.direction,i=e.nodes??=[];for(let l of e.nodes??[])if(l.isGroup&&!l.parentId){if(l.shape="swimlane",r)l.direction=r}let a=i.filter((l)=>!l.isGroup&&!l.parentId);if(a.length===0)return;let o=i.find((l)=>l.id===uit);if(!o)o={id:uit,label:"",isGroup:!0,shape:"swimlane",padding:20,look:e.config?.look,colorIndex:i.reduce((l,h)=>Math.max(l,h.colorIndex??-1),-1)+1,...r?{direction:r}:{}},i.push(o);else if(o.isGroup){if(o.shape="swimlane",r)o.direction=r}for(let l of a)l.parentId=uit}function _Nr(e){let r=new Map;for(let p of e.nodes??[])r.set(p.id,p);let i=[];for(let p of e.edges??[]){let m=typeof p.start==="string"?p.start:void 0,y=typeof p.end==="string"?p.end:void 0;if(!m||!y)continue;if(p.labelNodeId)continue;i.push({id:p.id,src:m,dst:y,ref:p})}let a=e.nodes??[],o=a.filter((p)=>p.isGroup),l=a.filter((p)=>!p.isGroup);return{nodes:[...[...o].reverse(),...l].map((p)=>p.id),edges:i,layout:e,nodeById:r}}function ENr(e,r,i,a){let{layout:o}=e,l=e.nodeById,h=a?.layerGap??100,d=a?.nodeGap??40,p=0;for(let w of r.layers){let T=0;for(let x of w){let k=l.get(x);if(!k){T++;continue}k.layer=p,k.order=T;let A=i.x[x]??T*d,R=i.y[x]??p*h;k.x=A,k.y=R,T++}p++}let m=o.nodes??[],y=new Map,v=[];for(let w of m){if(!w?.isGroup)continue;if(!w.parentId)v.push(w);let T=m.filter((N)=>N.parentId===w.id),x=1/0,k=-1/0,A=1/0,R=-1/0;for(let N of T){let L=N.x??i.x[N.id],B=N.y??i.y[N.id],D=N.width??0,P=N.height??0;if(L!=null&&B!=null)x=Math.min(x,L-D/2),k=Math.max(k,L+D/2),A=Math.min(A,B-P/2),R=Math.max(R,B+P/2)}if(x===1/0||A===1/0)w.x=w.x??0,w.y=w.y??0,w.width=w.width??0,w.height=w.height??0;else{let N=w.padding??20,L=w.parentId?N:2*pit(w),B=N,D=Math.max(0,k-x)+L,P=Math.max(0,R-A)+B,F=(x+k)/2,H=(A+R)/2;w.x=F,w.y=H,w.width=D,w.height=P,y.set(w.id,{minX:x,maxX:k,minY:A,maxY:R})}}if(v.length>0&&y.size>0){let w=1/0,T=-1/0,x=0;for(let k of v){let A=k.padding??20;if(A>x)x=A;let R=y.get(k.id);if(!R)continue;w=Math.min(w,R.minY),T=Math.max(T,R.maxY)}if(w!==1/0&&T!==-1/0){let k=Math.max(0,T-w),A=36,R=Math.max(x,36),N=k+2*R,L=(w+T)/2;for(let W of v)W.y=L,W.height=N,W.swimlaneContentTop=w;let B=[...v].sort((W,X)=>{let Q=W.x??0,Y=X.x??0;return Q-Y}),D=[],P=[],F=[];for(let W of B){let X=y.get(W.id);if(!X)continue;let Q=Math.max(0,X.maxX-X.minX)+2*pit(W),Y=(X.minX+X.maxX)/2;D.push(W.id),P.push(Y),F.push(Q)}let H=D.length;if(H>0){let W=new Map;if(H===1)W.set(D[0],F[0]);else{let X=[];for(let Z=0;Z0&&o>0?{cx:r,cy:i,rect:mq(r,i,a,o)}:void 0}function Wit(e){if(e.isGroup)return;let r=Yit(e);if(!r)return;return{id:String(e.id??""),cx:r.cx,cy:r.cy,rect:r.rect}}function iT(e,r,i=t1){return Math.abs(e.x-r.x)i}function Vp(e,r,i=t1){return Fc(e,r,i)&&Math.abs(e.y-r.y)>i}function yv(e,r,i,a){return Math.max(0,Math.min(Math.max(e,r),Math.max(i,a))-Math.max(Math.min(e,r),Math.min(i,a)))}function L3(e,r,i=t1){if(e.horizontal&&r.horizontal&&Wc(e.a,r.a,i))return yv(e.a.x,e.b.x,r.a.x,r.b.x);if(e.vertical&&r.vertical&&Fc(e.a,r.a,i))return yv(e.a.y,e.b.y,r.a.y,r.b.y);return 0}function bq(e,r=t1){let i=[];for(let a=0;a0?i[i.length-1]:void 0;if(!o||!iT(o,a,r))i.push({x:a.x,y:a.y})}return i}function jit(e,r=t1){if(!e||e.length!==4)return;let[i,a,o,l]=e;if(zp(i,a,r)&&Vp(a,o,r)&&zp(o,l,r))return{kind:"HVH",p0:i,p1:a,p2:o,p3:l};return Vp(i,a,r)&&zp(a,o,r)&&Vp(o,l,r)?{kind:"VHV",p0:i,p1:a,p2:o,p3:l}:void 0}function tTe(e,r,i,a=0){let o=Math.min(e.x,r.x),l=Math.max(e.x,r.x),h=Math.min(e.y,r.y),d=Math.max(e.y,r.y);return l>i.left-a&&oi.top-a&&hr.left+i&&e.xr.top+i&&e.y=r.right&&e.top<=r.top&&e.bottom>=r.bottom}function YSe(e,r){return e.leftr.left&&e.topr.top}function git(e,r){return{left:e.left-r,right:e.right+r,top:e.top-r,bottom:e.bottom+r}}function mq(e,r,i,a){return{left:e-i/2,right:e+i/2,top:r-a/2,bottom:r+a/2}}function n2(e){return Yit(e)?.rect}function vB(e,r){switch(r){case"top":return{x:e.cx,y:e.rect.top};case"bottom":return{x:e.cx,y:e.rect.bottom};case"left":return{x:e.rect.left,y:e.cy};case"right":return{x:e.rect.right,y:e.cy}}}function Xit(e,r,i,a,o,l=t1){let h=r==="left"||r==="right",d=a==="left"||a==="right";if(h&&d){if(r==="right"&&a==="left"&&e.xi.x){if(Wc(e,i,l))return[e,i];let v=(e.x+i.x)/2;return[e,{x:v,y:e.y},{x:v,y:i.y},i]}if(r===a){if(Wc(e,i,l))return;let v=r==="left"?Math.min(e.x,i.x)-o:Math.max(e.x,i.x)+o;return[e,{x:v,y:e.y},{x:v,y:i.y},i]}return}if(!h&&!d){if(r===a){if(Fc(e,i,l))return;let w=r==="top"?Math.min(e.y,i.y)-o:Math.max(e.y,i.y)+o;return[e,{x:e.x,y:w},{x:i.x,y:w},i]}if(!(r==="bottom"&&a==="top"&&e.yi.y))return;if(Fc(e,i,l))return[e,i];let v=(e.y+i.y)/2;return[e,{x:e.x,y:v},{x:i.x,y:v},i]}if(h&&!d){let y=r==="right"&&i.x>e.x||r==="left"&&i.xi.y;return y&&v?[e,{x:i.x,y:e.y},i]:void 0}let p=r==="bottom"&&i.y>e.y||r==="top"&&i.yi.x;return p&&m?[e,{x:e.x,y:i.y},i]:void 0}function Qit(e,r,i,a){return r==="left"||r==="right"?[e,{x:a,y:e.y},{x:a,y:i.y},i]:[e,{x:e.x,y:a},{x:i.x,y:a},i]}function rTe(e){let r=new Map,i=[];for(let a of e){if(a.isEdgeLabel)continue;let o=Wit(a);if(!o)continue;r.set(o.id,o),i.push({id:o.id,rect:o.rect})}return{nodeInfoById:r,realNodeRects:i}}function JL(e){let r=[],i=[];for(let a of e){let o=Wit(a);if(!o)continue;let l={id:o.id,rect:o.rect};if(a.isEdgeLabel)i.push(l);else r.push(l)}return{realNodeRects:r,labelNodeRects:i}}function TNr(e,{includeEdgeLabels:r=!0}={}){let i=[];for(let a of e){if(a.isGroup||!r&&a.isEdgeLabel)continue;let o=a.x??0,l=a.y??0,h=a.width??0,d=a.height??0;i.push({nodeId:a.id,...mq(o,l,h,d)})}return i}function Zit(e,r,i=t1){let{start:a,end:o}=e;if(!a||!o)return;let l=r.get(a),h=r.get(o);if(!l||!h)return;return{srcId:a,dstId:o,srcInfo:l,dstInfo:h,collinearX:Math.abs(l.cx-h.cx)x||wR)return!1;let N=Math.abs(k-y.a.x)o;if(l&&d&&Wc(e,i,o))return yv(e.x,r.x,i.x,a.x)>o;return!1}function WSe(e,r,i,a,{epsilon:o=t1,skipDegenerateOther:l=!1}={}){for(let h of i){if(h===a||h.isLayoutOnly)continue;let d=h.points;if(!d||d.length<2)continue;for(let p=0;pw+o&&xk+o&&va+t1&&e=2?r[r.length-2]:void 0,p=(h?Fc(h,o):!1)?{x:o.x,y:l.y}:{x:l.x,y:o.y};r.push(p)}r.push(l)}let i=[];for(let a of r){let o=i[i.length-1];if(!o||!iT(o,a))i.push(a)}return i}function M3(e){if(e.length<3)return e;let r=[...e];for(let i=0;i<32;i++){let a=kNr(r);if(r=a.points,!a.changed)break}return r}function eat(e,r,i){let a=e;if(a.isLayoutOnly||!a.points||a.points.length=0&&o=e.length)return e;let l=o-a;if(l<0||l>=e.length)return e;let h=ANr(e[o],e[l],r);return i?[h,...e.slice(o)]:[...e.slice(0,o+1),h]}function RNr(e,r){for(let i of e){let a=eat(i,r,2);if(!a)continue;let o=[...a.points];if(a.srcRect)o=bit(o,a.srcRect,!0);if(a.dstRect)o=bit(o,a.dstRect,!1);o=M3(jSe(o)),o=tat(o,a.srcRect,a.dstRect),a.edge.points=M3(jSe(o))}}function yit(e,r,i,a=!1){if(Wc(e,r,Ro)){if(r.yi.bottom+Ro)return r;if(a){if(e.xi.right+Ro)return{x:i.right,y:e.y}}return{x:Math.abs(r.x-i.left)<=Math.abs(r.x-i.right)?i.left:i.right,y:e.y}}if(Fc(e,r,Ro)){if(r.xi.right+Ro)return r;if(a){if(e.yi.bottom+Ro)return{x:e.x,y:i.bottom}}let o=Math.abs(r.y-i.top)<=Math.abs(r.y-i.bottom);return{x:e.x,y:o?i.top:i.bottom}}return r}function KSe(e,r,i){let a=e[r];for(let o=r+i;o>=0&&oa.lo)),i=Math.min(...e.map((a)=>a.hi));if(r>i)return;return{lo:r,hi:i}}function _it(e,r){return r==="left"||r==="right"?XSe(e.top,e.bottom):XSe(e.left,e.right)}function QSe(e,r,i){let a=e.y>=i.top-Ro&&e.y<=i.bottom+Ro,o=e.x>=i.left-Ro&&e.x<=i.right+Ro;if(Wc(e,r,Ro)&&a){if(Math.abs(e.x-i.left)0?INr(l):void 0}function Eit(e,r,i,a,o){let l=ONr(e,r,i,a,o);if(!l)return;let h=o?e.y:e.x,d=Math.min(l.hi,Math.max(l.lo,h));if(Math.abs(d-h)({...d}));for(let d=r;d>=0&&d=i.left-Ro&&Math.max(e.x,r.x)<=i.right+Ro,o=Math.min(e.y,r.y)>=i.top-Ro&&Math.max(e.y,r.y)<=i.bottom+Ro;if(Math.abs(e.y-i.top)a.bottom+Ro;case"left":return Wc(r,i,Ro)&&i.xa.right+Ro}}function xit(e,r,i){if(e.length<3)return e;if(i){let l=Sit(e[0],e[1],r);if(l&&Tit(l,e[1],e[2],r))return e.slice(1);return e}let a=e.length-1,o=Sit(e[a-1],e[a],r);if(o&&Tit(o,e[a-1],e[a-2],r))return e.slice(0,a);return e}function MNr(e,r,i){let a=e;if(r){let l=KSe(a,0,1);if(l){let h=yit(l,a[0],r);if(h!==a[0])a=[h,...a.slice(1)]}a=xit(a,r,!0)}if(i){let l=a.length-1,h=KSe(a,l,-1);if(h){let d=yit(h,a[l],i,!0);if(d!==a[l])a=[...a.slice(0,l),d]}a=xit(a,i,!1)}let o=tat(a,r,i);if(o!==a||a.length===2)return o;if(r)a=wit(a,r,!0);if(i)a=wit(a,i,!1);return a}function Cit(e,r){for(let i of e){let a=eat(i,r,2);if(!a)continue;let o=lu(a.points,Ro),l=MNr(o,a.srcRect,a.dstRect);if(l.length<3){a.edge.points=l;continue}let h=[l[0],{...l[0]},...l.slice(1,-1),l[l.length-1],{...l[l.length-1]}];a.edge.points=h}}function rat(e){return new Map(e.map((r)=>[r.id,r]))}function DNr(e,r){let i=e.parentId,a=null;while(i){let o=r.get(i);if(!o?.isGroup)break;a=o.id,i=o.parentId}return a}function kit(e,r){let i=0,a=e.parentId;while(a){let o=r.get(a);if(!o?.isGroup)break;i++,a=o.parentId}return i}function nat(e){let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let l of e){let{x:h,y:d}=l;if(typeof h!=="number"||typeof d!=="number")continue;let p=l.width??0,m=l.height??0;r=Math.min(r,h-p/2),i=Math.max(i,h+p/2),a=Math.min(a,d-m/2),o=Math.max(o,d+m/2)}if(r===1/0||a===1/0)return null;return{minX:r,maxX:i,minY:a,maxY:o}}function PNr(e,r){let i=e.padding??20;e.x=(r.minX+r.maxX)/2,e.y=(r.minY+r.maxY)/2,e.width=Math.max(0,r.maxX-r.minX)+i,e.height=Math.max(0,r.maxY-r.minY)+i}function BNr(e){let r=rat(e),i=e.filter((a)=>a.isGroup&&a.parentId).sort((a,o)=>kit(o,r)-kit(a,r));for(let a of i){let o=e.filter((h)=>h.parentId===a.id),l=nat(o);if(l)PNr(a,l)}}function ZSe(e,r){let i=e.nodes??[],a=e.edges??[],o=i.filter((p)=>!p.isGroup),l=1/0,h=-1/0;for(let p of o){let m=p[r];if(typeof m!=="number")continue;l=Math.min(l,m),h=Math.max(h,m)}if(!Number.isFinite(l)||!Number.isFinite(h))return!1;let d=I((p)=>l+h-p,"mirror");for(let p of i){let m=p[r];if(typeof m==="number")p[r]=d(m);let y=p.groupTitleRect;if(y)p.groupTitleRect=r==="x"?{...y,left:d(y.right),right:d(y.left)}:{...y,top:d(y.bottom),bottom:d(y.top)}}for(let p of a)for(let m of p.points??[])m[r]=d(m[r]);return!0}function FNr(e){if(!(e.nodes??[]).some((i)=>!i.isGroup))return!0;return ZSe(e,"y")}function $Nr(e,r="LR"){let i=e.nodes??[],a=e.edges??[],o=i.filter((K)=>!K.isGroup),l=1/0,h=1/0;for(let K of o){let J=K.x??0,Z=K.y??0;if(J0?Math.max(1,y/v):1;for(let K of o){let J=K.x??0,j=((K.y??0)-h)*w+d,ee=J-l;K.x=j,K.y=ee}for(let K of a){if(!K.points)continue;for(let J of K.points){let Z=J.x,ee=(J.y-h)*w+d,z=Z-l;J.x=ee,J.y=z}}BNr(i);let T=i.filter((K)=>K.isGroup&&!K.parentId);if(T.length===0){if(r==="RL")ZSe(e,"x");return!0}let x=rat(i),k=new Map;for(let K of i){if(K.isGroup)continue;let J=DNr(K,x);if(!J)continue;let Z=k.get(J)??[];Z.push(K),k.set(J,Z)}let A=0;for(let K of T){let J=K.padding??0;if(J>A)A=J}let R=[],N=1/0,L=-1/0;for(let K of T){let J=k.get(K.id)??[],Z=nat(J);if(!Z)continue;N=Math.min(N,Z.minX),L=Math.max(L,Z.maxX),R.push({lane:K,contentTop:Z.minY,contentBottom:Z.maxY,centerY:(Z.minY+Z.maxY)/2})}if(N===1/0||L===-1/0)return!0;let B=Math.max(0,L-N),D=Math.max(A,10),P=B+2*D,F=d+P,X=(N+L)/2-P/2-d,Q=X+F/2,Y=Math.max(A,d);R.sort((K,J)=>K.centerY-J.centerY);for(let K=0;Kw.cy?R.bottom:R.top,Y=w.cx+N;if(Y<=R.left+RC||Y>=R.right-RC)continue;L={x:Y,y:Q},B={x:Y,y:d.y},D={x:d.x,y:d.y}}else{let Q=T.cx>w.cx?R.right:R.left,Y=w.cy+N;if(Y<=R.top+RC||Y>=R.bottom-RC)continue;L={x:Q,y:Y},B={x:d.x,y:Y},D={x:d.x,y:d.y}}let P=iT(L,B,RC),F=iT(B,D,RC);if(P&&F)continue;if(!P&&L0(L,B,a,[y],1))continue;if(!F&&L0(B,D,a,[v],1))continue;let H=!P&&WSe(L,B,e,o,{epsilon:RC,skipDegenerateOther:!0}),W=!F&&WSe(B,D,e,o,{epsilon:RC,skipDegenerateOther:!0});if(H||W)continue;if(P)A=[B,D];else if(F)A=[L,B];else A=[L,B,D];break}if(A)o.points=A}}function GNr(e,r){let{realNodeRects:l,labelNodeRects:h}=JL(r.values());for(let d of e){if(d.isLayoutOnly)continue;let p=d.points;if(!p||p.length<4)continue;let m=lu(p,0.001);if(m.length<4)continue;let y=m.length-1,v=m[y],w=m[y-1],T=m[y-2],x=v.x-w.x,k=v.y-w.y,A=Math.hypot(x,k);if(A>=10||A<0.001)continue;let R=w.x-T.x,N=w.y-T.y;if(Math.hypot(R,N)<0.001)continue;let B=zp(w,v,0.001),D=Vp(w,v,0.001),P=zp(T,w,0.001),F=Vp(T,w,0.001);if(!(B&&F||D&&P))continue;let{end:H,start:W}=d,X=H?r.get(H):void 0;if(!X)continue;let Q=X.x??0,Y=X.y??0,K=n2(X);if(!K)continue;let J,Z;if(F){let oe=N<0;J={x:Q,y:T.y},Z={x:Q,y:oe?K.bottom:K.top}}else{let oe=R>0;J={x:T.x,y:Y},Z={x:oe?K.right:K.left,y:Y}}if(L0(J,Z,l,H?[H]:[],-2))continue;if(L0(J,Z,h,[],-2))continue;if(W){let oe=r.get(W),he=oe?n2(oe):void 0;if(he&&Kit(J,he,2))continue}let j=I((oe,he)=>`${oe.x.toFixed(3)},${oe.y.toFixed(3)}|${he.x.toFixed(3)},${he.y.toFixed(3)}`,"ownSegmentKey"),ee=new Set;for(let oe=0;oe{for(let ye of e){if(ye===d)continue;if(ye.isLayoutOnly)continue;let Se=ye.points;if(!Se||Se.length<2)continue;for(let Ie=0;Ie=0){let oe=m[y-3],he=[W,H].filter((ye)=>Boolean(ye));if(L0(oe,J,l,he,-2))continue;if(z(oe,J))continue}let ie=[...m.slice(0,y-2),J,Z];d.points=ie;let se=d.labelNodeId;if(se){let oe=r.get(se);if(oe){let he=oe.width??0,ye=oe.height??0;if(he>0&&ye>0){let Se,Ie,Ee=-1;for(let ze=0;ze=he+2||xt&&Ye>=ye+2))continue;if(Ye>Ee)Ee=Ye,Se=(Me.x+Xe.x)/2,Ie=(Me.y+Xe.y)/2}if(Se!==void 0&&Ie!==void 0)oe.x=Se,oe.y=Ie}}}}}function Ait(e,r){let o=I((T,x)=>{let k=T.x??0,A=T.y??0,R=x.x-k,N=x.y-A,L=(T.width??0)/2,B=(T.height??0)/2;if(Math.abs(N)*L>Math.abs(R)*B){if(N<0)B=-B;return{x:k+(N===0?0:B*R/N),y:A+B}}if(R<0)L=-L;return{x:k+L,y:A+(R===0?0:L*N/R)}},"rectIntersect"),l=I((T,x)=>{let k=lu(T.points??[]);if(k.length<2)return;let A=x?T.start:T.end,R=A?r.get(A):void 0,N=R?n2(R):void 0;if(!R||!A||!N)return;let L=x?k[0]:k[k.length-1],B=x?k[1]:k[k.length-2],D=o(R,L),P=L;if(hit(B,D))P=B;if(Fc(D,P,ds))return{edge:T,edgeId:String(T.id??""),nodeId:A,atStart:x,orientation:"V",coord:D.x,min:Math.min(D.y,P.y),max:Math.max(D.y,P.y),boundary:D,railEnd:P,rect:N};if(Wc(D,P,ds))return{edge:T,edgeId:String(T.id??""),nodeId:A,atStart:x,orientation:"H",coord:D.y,min:Math.min(D.x,P.x),max:Math.max(D.x,P.x),boundary:D,railEnd:P,rect:N};return},"terminalLaneFor"),h=I((T,x)=>Math.max(0,Math.min(T.max,x.max)-Math.max(T.min,x.min)),"projectedOverlapLength"),d=I((T,x)=>{if(T.nodeId!==x.nodeId||T.orientation!==x.orientation)return!1;if(T.orientation==="H")return(Math.abs(T.boundary.x-T.rect.left)<1||Math.abs(T.boundary.x-T.rect.right)<1)&&Fc(T.boundary,x.boundary,1);return(Math.abs(T.boundary.y-T.rect.top)<1||Math.abs(T.boundary.y-T.rect.bottom)<1)&&Wc(T.boundary,x.boundary,1)},"sameTerminalFace"),p=I((T,x)=>{if(T.nodeId!==x.nodeId||T.orientation!==x.orientation)return!1;return h(T,x)>=e1&&Math.abs(T.coord-x.coord)<0.5},"exactTerminalLaneConflict"),m=I((T,x)=>{if(T.nodeId!==x.nodeId||T.orientation!==x.orientation||T.orientation!=="H"||T.atStart===x.atStart)return!1;let k=h(T,x);if(k2*A)return!1;return d(T,x)&&Math.abs(T.coord-x.coord)<16},"nearTerminalLaneConflict"),y=I((T,x)=>{let k=lu(T.edge.points??[]);if(k.length<2)return;let A=T.orientation==="V"?{x:T.boundary.x+x,y:T.boundary.y}:{x:T.boundary.x,y:T.boundary.y+x},R=T.orientation==="V"?{x:T.railEnd.x+x,y:T.railEnd.y}:{x:T.railEnd.x,y:T.railEnd.y+x};if(!I(()=>{if(Math.abs(T.boundary.y-T.rect.top)<1||Math.abs(T.boundary.y-T.rect.bottom)<1)return Wc(A,T.boundary,ds)&&A.x>=T.rect.left+1&&A.x<=T.rect.right-1;if(Math.abs(T.boundary.x-T.rect.left)<1||Math.abs(T.boundary.x-T.rect.right)<1)return Fc(A,T.boundary,ds)&&A.y>=T.rect.top+1&&A.y<=T.rect.bottom-1;return!1},"boundaryStaysOnSameFace")())return;if(T.atStart){let P=k.length>1&&iT(k[1],T.railEnd,ds),F=k.slice(P?2:1),H=F[0];if(H&&!hit(H,R))return;return[A,R,...F]}let L=k.length>1&&iT(k[k.length-2],T.railEnd,ds),B=k.slice(0,L?-2:-1),D=B[B.length-1];if(D&&!hit(D,R))return;return[...B,R,A]},"shiftedCandidate"),v=I((T)=>{let x=T.edge,k=lu(x.points??[]);if(k.length!==2)return!1;let{start:A,end:R}=x,N=A?r.get(A):void 0,L=R?r.get(R):void 0;if(!N||!L)return!1;let B=N.x??0,D=N.y??0,P=L.x??0,F=L.y??0,[H,W]=k;return Wc(H,W,ds)&&Math.abs(D-F)<1&&Math.abs(B-P)>1||Fc(H,W,ds)&&Math.abs(B-P)<1&&Math.abs(D-F)>1},"laneIsStraightCollinearConnector"),w=[-7,7,-14,14,-21,21];for(let T=0;T<8;T++){let x=e.filter((A)=>!A.isLayoutOnly).flatMap((A)=>[l(A,!0),l(A,!1)]).filter((A)=>Boolean(A)),k=!1;for(let A=0;A{let H=v(P),W=v(F);if(H!==W)return Number(H)-Number(W);return Number(!F.atStart)-Number(!P.atStart)});for(let P of D){for(let F of w){let H=y(P,F);if(!H)continue;let W=l({...P.edge,points:H},P.atStart);if(!W||x.some((X)=>X.edge!==P.edge&&(p(W,X)||B&&m(W,X))))continue;P.edge.points=H,k=!0;break}if(k)break}}if(!k)return}}function VNr(e,r){let{realNodeRects:o,labelNodeRects:l}=JL(r.values()),h=I((p,m)=>{let{start:y,end:v}=p,w=$l(m);if(w.length!==m.length-1)return!1;let T=[y,v].filter((x)=>Boolean(x));for(let x of w){if(L0(x.a,x.b,o,T,-2))return!1;if(L0(x.a,x.b,l,[],-2))return!1}for(let x of e){if(x===p||x.isLayoutOnly)continue;let k=x.points;if(!k||k.length<2)continue;for(let A of w)for(let R of $l(lu(k))){if(L3(A,R,0.5)>=e1)return!1;if(ZR(A.a,A.b,R.a,R.b,ds))return!1}}return!0},"candidateIsSafe"),d=I((p,m)=>{if(m+4>=p.length)return;let y=p[m],v=p[m+1],w=p[m+2],T=p[m+3],x=p[m+4],k=zp(y,v)&&Vp(v,w)&&zp(w,T)&&Vp(T,x)&&Fc(y,T,ds)&&Fc(y,x,ds)&&Fc(v,w,ds)&&(v.x-y.x)*(T.x-w.x)<0,A=Vp(y,v)&&zp(v,w)&&Vp(w,T)&&zp(T,x)&&Wc(y,T,ds)&&Wc(y,x,ds)&&Wc(v,w,ds)&&(v.y-y.y)*(T.y-w.y)<0;if(k||A)return lu([...p.slice(0,m+1),x,...p.slice(m+5)]);if(m+5>=p.length)return;let R=p[m+5],N=Vp(y,v)&&zp(v,w)&&Vp(w,T)&&zp(T,x)&&Vp(x,R)&&Fc(y,x,ds)&&Fc(y,R,ds)&&Fc(w,T,ds)&&(w.x-v.x)*(x.x-T.x)<0,L=zp(y,v)&&Vp(v,w)&&zp(w,T)&&Vp(T,x)&&zp(x,R)&&Wc(y,x,ds)&&Wc(y,R,ds)&&Wc(w,T,ds)&&(w.y-v.y)*(x.y-T.y)<0;if(!N&&!L)return;return lu([...p.slice(0,m+1),R,...p.slice(m+6)])},"withoutDogleg");for(let p=0;p<8;p++){let m=!1;for(let y of e){if(y.isLayoutOnly)continue;let v=lu(y.points??[]);for(let w=0;w<=v.length-5;w++){let T=d(v,w);if(!T||!h(y,T))continue;y.points=T,m=!0;break}if(m)break}if(!m)return}}function Rit(e,r){let{realNodeRects:l,labelNodeRects:h}=JL(r.values()),d=e.filter((x)=>!x.isLayoutOnly),p=I((x,k,A)=>lu(x===k?A??[]:x.points??[]),"pointsFor"),m=I((x,k)=>{let A=0;for(let R=0;R{let k=$l(x);if(k.length!==3)return;let A=k[1];if(k[0].horizontal===A.horizontal||k[2].horizontal===A.horizontal)return;return{index:A.index,horizontal:A.horizontal,vertical:A.vertical,segment:A}},"middleRail"),v=I((x,k)=>{let A=[x.start,x.end].filter((R)=>Boolean(R));return l.filter((R)=>{if(A.includes(R.id))return!1;let N=R.rect;if(k.horizontal)return yv(k.a.x,k.b.x,N.left,N.right)>=e1&&k.a.y>=N.top-2&&k.a.y<=N.bottom+2;return yv(k.a.y,k.b.y,N.top,N.bottom)>=e1&&k.a.x>=N.left-2&&k.a.x<=N.right+2})},"blockingRectsFor"),w=I((x,k,A)=>{let R=x.map((L)=>({...L}));if(k.horizontal)R[k.index].y=A,R[k.index+1].y=A;else if(k.vertical)R[k.index].x=A,R[k.index+1].x=A;else return;let N=M3(lu(R));return $l(N).length===N.length-1?N:void 0},"candidateByMovingRail"),T=I((x,k,A)=>{let R=[x.start,x.end].filter((L)=>Boolean(L)),N=$l(k);if(N.length!==k.length-1)return!1;for(let L of N){if(L0(L.a,L.b,l,R,-2))return!1;if(L0(L.a,L.b,h,[],-2))return!1}for(let L of d){if(L===x)continue;for(let B of N)for(let D of $l(p(L)))if(L3(B,D,0.5)>=e1)return!1}return m(x,k)<=A},"candidateIsSafe");for(let x=0;x<8;x++){let k=m(),A=!1;for(let R of d){let N=p(R),L=y(N);if(!L)continue;let B=v(R,L.segment);if(B.length===0)continue;let D=L.horizontal?[Math.min(...B.map((P)=>P.rect.top))-20,Math.max(...B.map((P)=>P.rect.bottom))+20]:[Math.min(...B.map((P)=>P.rect.left))-20,Math.max(...B.map((P)=>P.rect.right))+20];for(let P of D){let F=w(N,L.segment,P);if(!F||!T(R,F,k))continue;R.points=F,A=!0;break}if(A)break}if(!A)return}}function Iit(e,r,i){let o=I((m)=>{let y=m.groupTitleRect;if(!y||typeof y.left!=="number"||typeof y.right!=="number"||typeof y.top!=="number"||typeof y.bottom!=="number"||!Number.isFinite(y.left)||!Number.isFinite(y.right)||!Number.isFinite(y.top)||!Number.isFinite(y.bottom)||y.right<=y.left||y.bottom<=y.top)return;return{left:y.left,right:y.right,top:y.top,bottom:y.bottom}},"validTitleRect"),l=I((m)=>{if(!m.isGroup||m.parentId)return;let y=zNr(m.direction??i);if(y==="LR"||y==="RL"||y==="BT")return;let v=o(m),{y:w,height:T}=m;if(!v||typeof w!=="number"||typeof T!=="number"||!Number.isFinite(w)||!Number.isFinite(T)||T<=0)return;let x=v.right-v.left,k=v.bottom-v.top;if(k<=0||x{if(!m.horizontal)return!1;let v=m.a.y;if(vy.bottom+ds)return!1;return yv(m.a.x,m.b.x,y.left,y.right)>=e1},"horizontalSegmentIntersectsTitle"),d=[...r.values()].map(l).filter((m)=>Boolean(m));if(d.length===0)return;let p=0;for(let m of e){if(m.isLayoutOnly)continue;let y=lu(m.points??[]);for(let v of $l(y))for(let w of d){if(!h(v,w.rect))continue;p=Math.max(p,w.rect.bottom-v.a.y+4)}}if(p<=ds)return;for(let m of d){let y=m.node.y,v=m.node.height;if(typeof y!=="number"||typeof v!=="number"||!Number.isFinite(y)||!Number.isFinite(v)||v<=0)continue;m.node.y=y-p/2,m.node.height=v+p,m.node.groupTitleRect={...m.rect,top:m.rect.top-p,bottom:m.rect.bottom-p}}}function Oit(e,r,i){let o=I((y)=>{let v=y.groupTitleRect;if(!v||typeof v.left!=="number"||typeof v.right!=="number"||typeof v.top!=="number"||typeof v.bottom!=="number"||!Number.isFinite(v.left)||!Number.isFinite(v.right)||!Number.isFinite(v.top)||!Number.isFinite(v.bottom)||v.right<=v.left||v.bottom<=v.top)return;return{left:v.left,right:v.right,top:v.top,bottom:v.bottom}},"validTitleRect"),l=I((y)=>{if(!y.isGroup||y.parentId)return;if(zNr(y.direction??i)!=="LR")return;let w=o(y),{x:T,width:x}=y;if(!w||typeof T!=="number"||typeof x!=="number"||!Number.isFinite(T)||!Number.isFinite(x)||x<=0)return;let k=w.right-w.left,A=w.bottom-w.top;if(k<=0||A{if(!y.vertical)return!1;let w=y.a.x;if(wv.right+ds)return!1;return yv(y.a.y,y.b.y,v.top,v.bottom)>=e1},"verticalSegmentIntersectsTitle"),d=I((y,v)=>{if(!y.horizontal)return!1;let w=y.a.y;if(wv.bottom+ds)return!1;return yv(y.a.x,y.b.x,v.left,v.right)>=e1},"horizontalSegmentIntersectsTitle"),p=[...r.values()].map(l).filter((y)=>Boolean(y));if(p.length===0)return;let m=0;for(let y of e){if(y.isLayoutOnly)continue;let v=lu(y.points??[]);for(let w of $l(v))for(let T of p)if(h(w,T.rect))m=Math.max(m,T.rect.right-w.a.x+4);else if(d(w,T.rect)){let x=Math.min(w.a.x,w.b.x);m=Math.max(m,T.rect.right-x+4)}}if(m<=ds)return;for(let y of p){let v=y.node.x,w=y.node.width;if(typeof v!=="number"||typeof w!=="number"||!Number.isFinite(v)||!Number.isFinite(w)||w<=0)continue;y.node.x=v-m/2,y.node.width=w+m,y.node.groupTitleRect={...y.rect,left:y.rect.left-m,right:y.rect.right-m}}}function HNr(e,r){let{realNodeRects:o}=JL(r.values()),l=e.filter((k)=>!k.isLayoutOnly),h=I((k,A=new Map)=>lu(A.get(k)??k.points??[]),"replacementPointsFor"),d=I((k=new Map)=>{let A=0;for(let R=0;Rl.reduce((A,R)=>A+ZE(h(R,k)),0),"totalBends"),m=I((k)=>{let A=h(k);if(A.length<4)return;let R=A[A.length-2],N=A[A.length-1];if(!zp(R,N,ds)&&!Vp(R,N,ds))return;return{tailStart:R,terminal:N}},"terminalTailFor"),y=I((k,A)=>{let R=h(k);if(R.length<3)return;let N=R[0],L=R[1],B;if(zp(N,L,ds))B={x:L.x,y:A.tailStart.y};else if(Vp(N,L,ds))B={x:A.tailStart.x,y:L.y};else return;let D=M3(lu([N,L,B,A.tailStart,A.terminal]));return $l(D).length===D.length-1?D:void 0},"candidateWithDestinationTail"),v=I((k,A)=>{let R=[k.start,k.end].filter((N)=>Boolean(N));for(let N of $l(A))if(L0(N.a,N.b,o,R,-2))return!0;return!1},"pathHasNodeHit"),w=I((k,A,R)=>{for(let N of l){if(N===k)continue;for(let L of $l(A))for(let B of $l(h(N,R)))if(L3(L,B,0.5)>=e1)return!0}return!1},"pathHasSharedTrack"),T=I((k,A,R)=>!v(k,A)&&!w(k,A,R),"candidateIsSafe"),x=I(()=>{let k=new Map;for(let A of l){let R=A.end;if(!R||!r.has(R))continue;if(h(A).length<4)continue;let L=k.get(R)??[];L.push(A),k.set(R,L)}return k},"edgesByDestination");for(let k=0;k<4;k++){let A=d();if(A===0)return;let R=p(),N,L=A,B=R;for(let D of x().values())for(let P=0;P=A)continue;if(Z>L||Z===L&&j>=B)continue;N=J,L=Z,B=j}if(!N)return;for(let[D,P]of N)D.points=P}}function qNr(e,r){let{realNodeRects:h,labelNodeRects:d}=JL(r.values()),p=e.filter((D)=>!D.isLayoutOnly),m=I((D,P=new Map)=>lu(P.get(D)??D.points??[]),"replacementPointsFor"),y=I((D=new Map)=>{let P=0;for(let F=0;Fp.reduce((P,F)=>P+ZE(m(F,D)),0),"totalBends"),w=I((D)=>{let{start:P,end:F}=D,H=P?r.get(P):void 0,W=F?r.get(F):void 0,X=H?n2(H):void 0,Q=W?n2(W):void 0;return X&&Q?{src:X,dst:Q}:void 0},"endpointRectsFor"),T=I((D,P,F)=>{if(F.index<=0||F.index+1>=P.length-1)return;let H=w(D);if(!H)return;if(F.vertical){let W=F.a.x,X=Math.min(H.src.left,H.dst.left),Q=Math.max(H.src.right,H.dst.right),Y=WQ+ds?"right":void 0;if(!Y)return;return{edge:D,points:P,segmentIndex:F.index,axis:"vertical",side:Y,coord:W,min:Math.min(F.a.y,F.b.y),max:Math.max(F.a.y,F.b.y)}}if(F.horizontal){let W=F.a.y,X=Math.min(H.src.top,H.dst.top),Q=Math.max(H.src.bottom,H.dst.bottom),Y=WQ+ds?"bottom":void 0;if(!Y)return;return{edge:D,points:P,segmentIndex:F.index,axis:"horizontal",side:Y,coord:W,min:Math.min(F.a.x,F.b.x),max:Math.max(F.a.x,F.b.x)}}return},"externalRailForSegment"),x=I(()=>{let D=[];for(let P of p){let F=m(P);for(let H of $l(F)){let W=T(P,F,H);if(W)D.push(W)}}return D},"collectExternalRails"),k=I((D,P)=>D.edge!==P.edge&&D.axis===P.axis&&D.side===P.side&&yv(D.min,D.max,P.min,P.max)>=e1,"railsInteract"),A=I((D)=>{let P=[],F=new Set;for(let H of D){if(F.has(H))continue;let W=[H],X=[];F.add(H);while(W.length>0){let Q=W.pop();X.push(Q);for(let Y of D)if(!F.has(Y)&&k(Q,Y))F.add(Y),W.push(Y)}if(X.length>1)P.push(X)}return P},"connectedComponents"),R=I((D)=>{let P=[];for(let F of D)if(!P.some((H)=>Math.abs(H-F.coord){let P=D.map((W)=>W.coord),F=R(D),H=[];if(D.length<=6){let W=Array(F.length).fill(!1),X=[],Q=I(()=>{if(X.length===D.length){if(X.some((Y,K)=>Math.abs(Y-P[K])>=ds))H.push([...X]);return}for(let[Y,K]of F.entries()){if(W[Y])continue;W[Y]=!0,X.push(K),Q(),X.pop(),W[Y]=!1}},"visit");return Q(),H}for(let W=0;W{let F=new Map;for(let[W,X]of D.entries()){let Q=P[W],Y=F.get(X.edge)??X.points.map((K)=>({x:K.x,y:K.y}));if(X.axis==="vertical")Y[X.segmentIndex].x=Q,Y[X.segmentIndex+1].x=Q;else Y[X.segmentIndex].y=Q,Y[X.segmentIndex+1].y=Q;F.set(X.edge,Y)}let H=new Map;for(let[W,X]of F){let Q=M3(lu(X));if($l(Q).length!==Q.length-1)return;H.set(W,Q)}return H},"replacementsForAssignment"),B=I((D)=>{for(let[P,F]of D){let H=[P.start,P.end].filter((W)=>Boolean(W));for(let W of $l(F)){if(L0(W.a,W.b,h,H,-2))return!1;if(L0(W.a,W.b,d,[],-2))return!1}}for(let P=0;P=e1)return!1}}return!0},"candidateIsSafe");for(let D=0;D<4;D++){let P=y();if(P===0)return;let F,H=P,W=v(),X=Number.POSITIVE_INFINITY;for(let Q of A(x()))for(let Y of N(Q)){let K=L(Q,Y);if(!K||!B(K))continue;let J=y(K);if(J>=P)continue;let Z=v(K),j=Q.reduce((ee,z,ne)=>ee+Math.abs(Y[ne]-z.coord),0);if(J>H||J===H&&(Z>W||Z===W&&j>=X))continue;F=K,H=J,W=Z,X=j}if(!F)return;for(let[Q,Y]of F)Q.points=Y}}function YNr(e,r){let{realNodeRects:o,labelNodeRects:l}=JL(r.values()),h=e.filter((x)=>!x.isLayoutOnly),d=I((x,k,A)=>lu(x===k?A??[]:x.points??[]),"pointsFor"),p=I((x)=>$l(x).reduce((k,A)=>{let R=A.a.x-A.b.x,N=A.a.y-A.b.y;return k+Math.hypot(R,N)},0),"pathLength"),m=I((x,k)=>{let A=0;for(let R=0;R{if(x.horizontal){let A=x.a.y;return(Math.abs(A-k.top)<1||Math.abs(A-k.bottom)<1)&&yv(x.a.x,x.b.x,k.left,k.right)>=e1}if(x.vertical){let A=x.a.x;return(Math.abs(A-k.left)<1||Math.abs(A-k.right)<1)&&yv(x.a.y,x.b.y,k.top,k.bottom)>=e1}return!1},"segmentRunsAlongRectBorder"),v=I((x)=>{let k=[x.start,x.end].filter((R)=>Boolean(R)),A=[];for(let R of k){let N=r.get(R),L=N?n2(N):void 0;if(L)A.push(L)}return A},"endpointRectsFor"),w=I((x,k)=>{if(k+3>=x.length)return[];let A=x[k],R=x[k+1],N=x[k+2],L=x[k+3],B=zp(A,R,ds)&&Vp(R,N,ds)&&zp(N,L,ds),D=Vp(A,R,ds)&&zp(R,N,ds)&&Vp(N,L,ds);if(!B&&!D)return[];if(!(B?Math.sign(R.x-A.x)!==Math.sign(L.x-N.x):Math.sign(R.y-A.y)!==Math.sign(L.y-N.y)))return[];let F=Fc(A,L,ds)||Wc(A,L,ds)?[]:[{x:A.x,y:L.y},{x:L.x,y:A.y}],H=F.length===0?[[...x.slice(0,k+1),...x.slice(k+3)]]:F.map((X)=>[...x.slice(0,k+1),X,...x.slice(k+3)]),W=new Set;return H.map((X)=>M3(lu(X))).filter((X)=>{if($l(X).length!==X.length-1)return!1;if(!X.some((Y)=>iT(Y,L,ds)))return!1;let Q=X.map((Y)=>`${Y.x.toFixed(3)},${Y.y.toFixed(3)}`).join("|");if(W.has(Q))return!1;return W.add(Q),!0})},"shortcutCandidatesAt"),T=I((x,k,A)=>{let R=[x.start,x.end].filter((L)=>Boolean(L)),N=v(x);for(let L of $l(k)){if(L0(L.a,L.b,o,R,-2))return!1;if(L0(L.a,L.b,l,[],-2))return!1;if(N.some((B)=>y(L,B)))return!1}for(let L of h){if(L===x)continue;for(let B of $l(k))for(let D of $l(d(L)))if(L3(B,D,0.5)>=e1)return!1}return m(x,k)<=A},"candidateIsSafe");for(let x=0;x<8;x++){let k=m(),A,R,N=k,{POSITIVE_INFINITY:L,POSITIVE_INFINITY:B}=Number;for(let D of h){let P=d(D),F=ZE(P,ds),H=p(P);for(let W=0;W<=P.length-4;W++)for(let X of w(P,W)){let Q=ZE(X,ds),Y=p(X);if(!(QN||J===N&&(Q>L||Q===L&&Y>=B))continue;A=D,R=X,N=J,L=Q,B=Y}}if(!A||!R)return;A.points=R}}function WNr(e,r){let h=[];for(let je of r.values()){if(je.isGroup||je.isEdgeLabel)continue;let Nt=je.x??0,ct=je.y??0,bt=n2(je);if(!bt)continue;h.push({id:String(je.id??""),cx:Nt,cy:ct,rect:bt})}if(h.length===0)return;let d=new Map(h.map((je)=>[je.id,je])),p=h.map((je)=>({id:je.id,rect:je.rect})),m=["top","bottom","left","right"],y={top:Math.min(...h.map((je)=>je.rect.top))-20,bottom:Math.max(...h.map((je)=>je.rect.bottom))+20,left:Math.min(...h.map((je)=>je.rect.left))-20,right:Math.max(...h.map((je)=>je.rect.right))+20},v=e.filter((je)=>!je.isLayoutOnly),w=new Map(v.map((je,Nt)=>[je,Nt])),T=I((je)=>{let Nt=je==="left"||je==="top"?-1:1,ct=[];for(let bt=0;bt<=2;bt++)ct.push(y[je]+Nt*20*bt);return ct},"outwardTracksForSide"),x=I((je,Nt=new Map)=>lu(Nt.get(je)??je.points??[]),"replacementPointsFor"),k=I((je,Nt)=>{let ct=0;for(let bt of je)for(let Pe of Nt)if(ZR(bt.a,bt.b,Pe.a,Pe.b,ds))ct++;return ct},"crossingCountBetweenSegments"),A=I((je,Nt)=>k($l(je),$l(Nt)),"crossingCountBetweenPaths"),R=I((je=new Map)=>{let Nt=0,ct=[],bt=new Set,Pe=[],Ue=I((qe)=>{if(!bt.has(qe))bt.add(qe),Pe.push(qe)},"addEdge");for(let qe=0;qe0)Nt+=pe,ct.push({first:Ke,second:le,count:pe}),Ue(Ke),Ue(le)}}return Pe.sort((qe,Ke)=>(w.get(qe)??0)-(w.get(Ke)??0)),{count:Nt,pairs:ct,edgeSet:bt,edges:Pe}},"crossingSnapshot"),N=I((je,Nt)=>{let ct=new Set(Nt.keys());if(ct.size===0)return je.count;let bt=0;for(let Ue of je.pairs)if(ct.has(Ue.first)||ct.has(Ue.second))bt+=Ue.count;let Pe=0;for(let Ue=0;Ue{let Nt=new Map;for(let Pe of je.pairs){let Ue=Nt.get(Pe.first)??new Set;Ue.add(Pe.second),Nt.set(Pe.first,Ue);let qe=Nt.get(Pe.second)??new Set;qe.add(Pe.first),Nt.set(Pe.second,qe)}let ct=[],bt=new Set;for(let Pe of je.edges){if(bt.has(Pe))continue;let Ue=[Pe],qe=[];bt.add(Pe);while(Ue.length>0){let Ke=Ue.pop();qe.push(Ke);for(let Je of Nt.get(Ke)??[])if(!bt.has(Je))bt.add(Je),Ue.push(Je)}if(qe.sort((Ke,Je)=>(w.get(Ke)??0)-(w.get(Je)??0)),qe.length>1)ct.push(qe)}return ct},"crossingComponents"),B=I((je)=>[je.start,je.end].filter((Nt)=>Boolean(Nt)),"endpointIdsFor"),D=I((je)=>{let Nt=[];for(let ct of L(je)){let bt=new Set(ct),Pe=new Set(ct.flatMap((qe)=>B(qe))),Ue=[...ct];for(let qe of v){if(bt.has(qe))continue;if(B(qe).some((Ke)=>Pe.has(Ke)))Ue.push(qe)}Ue.sort((qe,Ke)=>(w.get(qe)??0)-(w.get(Ke)??0)),Nt.push(Ue)}return Nt},"pairSearchGroups"),P=I((je,Nt,ct)=>N(je,new Map([[Nt,ct]])),"crossingCountWithSingleReplacement"),F=I((je)=>{let Nt=new Map;for(let ct of je.pairs)Nt.set(ct.first,(Nt.get(ct.first)??0)+ct.count),Nt.set(ct.second,(Nt.get(ct.second)??0)+ct.count);return Nt},"currentCrossingsByEdge"),H=I((je)=>je.slice(1).reduce((Nt,ct,bt)=>{let Pe=je[bt];return Nt+Math.abs(ct.x-Pe.x)+Math.abs(ct.y-Pe.y)},0),"pathLength"),W=I((je=new Map)=>v.reduce((Nt,ct)=>Nt+ZE(x(ct,je)),0),"totalBends"),X=I((je=new Map)=>v.reduce((Nt,ct)=>Nt+H(x(ct,je)),0),"totalLength"),Q=I((je,Nt,ct=new Map)=>{let bt=$l(Nt);for(let Pe of v){if(Pe===je)continue;for(let Ue of bt)for(let qe of $l(x(Pe,ct)))if(L3(Ue,qe,0.5)>=e1)return!0}return!1},"pathHasSegmentConflict"),Y=I((je,Nt)=>{let ct=[je.start,je.end].filter((bt)=>Boolean(bt));for(let bt of $l(Nt))if(L0(bt.a,bt.b,p,ct,-2))return!0;return!1},"pathHitsNode"),K=I((je,Nt)=>{let ct=M3(lu(Nt));if($l(ct).length===ct.length-1)je.push(ct)},"pushOrthogonalCandidate"),J=I((je)=>je==="left"||je==="right","sideIsHorizontal"),Z=I((je,Nt,ct)=>{switch(Nt){case"left":return Math.min(je.x,ct.x)-20;case"right":return Math.max(je.x,ct.x)+20;case"top":return Math.min(je.y,ct.y)-20;case"bottom":return Math.max(je.y,ct.y)+20}},"localTrackForSameSide"),j=I((je,Nt,ct,bt)=>{let Pe=ct==="left"||ct==="top"?-1:1,Ue=[Z(Nt,ct,bt),y[ct]];for(let qe of Ue)for(let Ke=0;Ke<=2;Ke++)K(je,Qit(Nt,ct,bt,qe+Pe*20*Ke))},"addSameSideCandidates"),ee=I((je,Nt,ct,bt,Pe)=>{for(let Ue of T(ct))for(let qe of T(Pe))K(je,[Nt,{x:Ue,y:Nt.y},{x:Ue,y:qe},{x:bt.x,y:qe},bt])},"addHorizontalToVerticalCandidates"),z=I((je,Nt,ct,bt,Pe)=>{for(let Ue of T(ct))for(let qe of T(Pe))K(je,[Nt,{x:Nt.x,y:Ue},{x:qe,y:Ue},{x:qe,y:bt.y},bt])},"addVerticalToHorizontalCandidates"),ne=I((je,Nt,ct,bt,Pe)=>{let Ue=[...T("top"),...T("bottom")];for(let qe of T(ct))for(let Ke of T(Pe))for(let Je of Ue)K(je,[Nt,{x:qe,y:Nt.y},{x:qe,y:Je},{x:Ke,y:Je},{x:Ke,y:bt.y},bt])},"addHorizontalPairCandidates"),ie=I((je,Nt,ct,bt,Pe)=>{let Ue=[...T("left"),...T("right")];for(let qe of T(ct))for(let Ke of T(Pe))for(let Je of Ue)K(je,[Nt,{x:Nt.x,y:qe},{x:Je,y:qe},{x:Je,y:Ke},{x:bt.x,y:Ke},bt])},"addVerticalPairCandidates"),se=I((je)=>{let Nt=new Set;return je.map((ct)=>lu(ct)).filter((ct)=>{let bt=ct.map((Pe)=>`${Pe.x.toFixed(3)},${Pe.y.toFixed(3)}`).join("|");if(Nt.has(bt)||ct.length<2)return!1;return Nt.add(bt),!0})},"dedupeCandidatePaths"),oe=I((je,Nt,ct,bt)=>{let Pe=[],Ue=Xit(je,Nt,ct,bt,20,ds);if(Ue)K(Pe,Ue);if(Nt===bt)j(Pe,je,Nt,ct);let qe=J(Nt),Ke=J(bt);if(qe&&!Ke)ee(Pe,je,Nt,ct,bt);else if(!qe&&Ke)z(Pe,je,Nt,ct,bt);else if(qe)ne(Pe,je,Nt,ct,bt);else ie(Pe,je,Nt,ct,bt);return se(Pe)},"buildCandidatesForSides"),he=I((je,Nt,ct,bt)=>{let Pe=[...T("left"),...T("right")],Ue=[...T("top"),...T("bottom")];for(let qe of m){let Ke=vB(bt,qe),Je=qe==="top"||qe==="bottom"?T(qe):Ue;for(let De of Pe){K(je,[Nt,ct,{x:De,y:ct.y},{x:De,y:Ke.y},Ke]);for(let le of Je)K(je,[Nt,ct,{x:De,y:ct.y},{x:De,y:le},{x:Ke.x,y:le},Ke])}}},"addVerticalDepartureOuterTrackCandidates"),ye=I((je,Nt,ct,bt)=>{let Pe=[...T("left"),...T("right")],Ue=[...T("top"),...T("bottom")];for(let qe of m){let Ke=vB(bt,qe),Je=qe==="left"||qe==="right"?T(qe):Pe;for(let De of Ue){K(je,[Nt,ct,{x:ct.x,y:De},{x:Ke.x,y:De},Ke]);for(let le of Je)K(je,[Nt,ct,{x:ct.x,y:De},{x:le,y:De},{x:le,y:Ke.y},Ke])}}},"addHorizontalDepartureOuterTrackCandidates"),Se=I((je)=>{let{start:Nt,end:ct}=je,bt=ct?d.get(ct):void 0;if(!Nt||!bt)return[];let Pe=lu(je.points??[]);if(Pe.length<4)return[];let Ue=Pe[0],qe=Pe[1],Ke=[];if(Vp(Ue,qe,ds))he(Ke,Ue,qe,bt);else if(zp(Ue,qe,ds))ye(Ke,Ue,qe,bt);return Ke},"terminalPreservingOuterTrackCandidates"),Ie=I((je)=>{let{start:Nt,end:ct}=je,bt=Nt?d.get(Nt):void 0,Pe=ct?d.get(ct):void 0;if(!bt||!Pe)return[];let Ue=[];for(let qe of m){let Ke=vB(bt,qe);for(let Je of m)Ue.push(...oe(Ke,qe,vB(Pe,Je),Je))}return Ue.push(...Se(je)),Ue},"candidatePathsFor"),Ee=I(()=>new Map(v.map((je)=>[je,$l(x(je))])),"currentSegmentsByEdge"),ze=I((je,Nt,ct)=>{let bt=new Set;for(let Pe of v){if(Pe===je)continue;let Ue=ct.get(Pe)??$l(x(Pe));if(Nt.some((qe)=>Ue.some((Ke)=>L3(qe,Ke,0.5)>=e1)))bt.add(Pe)}return bt},"sharedTrackConflictsFor"),Me=I((je,Nt,ct,bt)=>{let Pe=new Set;return Ie(je).map((qe)=>M3(lu(qe))).filter((qe)=>{if(Y(je,qe))return!1;let Ke=qe.map((Je)=>`${Je.x.toFixed(3)},${Je.y.toFixed(3)}`).join("|");if(Pe.has(Ke)||qe.length<2)return!1;return Pe.add(Ke),!0}).map((qe)=>{let Ke=$l(qe),Je=0;for(let De of v){if(De===je)continue;Je+=k(Ke,ct.get(De)??$l(x(De)))}return{candidate:qe,candidateSegments:Ke,crossings:Nt.count-(bt.get(je)??0)+Je,bends:ZE(qe,ds),totalBends:ZE(qe),length:H(qe)}}).filter(({crossings:qe})=>qe<=Nt.count).sort((qe,Ke)=>qe.crossings-Ke.crossings||qe.bends-Ke.bends||qe.length-Ke.length).slice(0,48).map((qe)=>({path:qe.candidate,segments:qe.candidateSegments,sharedTrackConflicts:ze(je,qe.candidateSegments,ct),totalBends:qe.totalBends,length:qe.length}))},"pairCandidatesFor"),Xe=I((je,Nt,ct,bt,Pe,Ue)=>{let qe=0;for(let Je of je.pairs)if(Je.first===Nt||Je.second===Nt||Je.first===bt||Je.second===bt)qe+=Je.count;let Ke=k(ct.segments,Pe.segments);for(let Je of v){if(Je===Nt||Je===bt)continue;let De=Ue.get(Je)??$l(x(Je));Ke+=k(ct.segments,De)+k(Pe.segments,De)}return je.count-qe+Ke},"pairCrossingCount"),Ye=I((je,Nt)=>{for(let ct of je.sharedTrackConflicts)if(ct!==Nt)return!1;return!0},"conflictsOnlyWith"),Qe=I((je,Nt)=>je.segments.some((ct)=>Nt.segments.some((bt)=>L3(ct,bt,0.5)>=e1)),"candidatesShareTrack"),xt=I((je,Nt,ct,bt)=>Ye(Nt,ct.edge)&&Ye(bt,je.edge)&&!Qe(Nt,bt),"pairCandidatesAreCompatible"),dt=I((je,Nt,ct,bt,Pe)=>{let Ue=Xe(je.current,Nt.edge,ct,bt.edge,Pe,je.baseSegments);if(Ue>=je.current.count)return;return{replacements:new Map([[Nt.edge,ct.path],[bt.edge,Pe.path]]),crossings:Ue,bends:je.currentBends-(je.baseBendsByEdge.get(Nt.edge)??0)-(je.baseBendsByEdge.get(bt.edge)??0)+ct.totalBends+Pe.totalBends,length:je.currentLength-(je.baseLengthByEdge.get(Nt.edge)??0)-(je.baseLengthByEdge.get(bt.edge)??0)+ct.length+Pe.length}},"scorePairReplacement"),zt=I((je,Nt)=>je.crossings{let Pe=bt;for(let Ue of Nt.candidates)for(let qe of ct.candidates){if(!xt(Nt,Ue,ct,qe))continue;let Ke=dt(je,Nt,Ue,ct,qe);if(Ke&&zt(Ke,Pe))Pe=Ke}return Pe},"bestScoreForOptionPair"),rr=I((je)=>{let Nt=W(),ct=X(),bt=Ee(),Pe=F(je),Ue=new Map(v.map((pe)=>[pe,ZE(x(pe))])),qe=new Map(v.map((pe)=>[pe,H(x(pe))])),Ke=new Map,Je=D(je);for(let pe of Je)for(let fe of pe){if(Ke.has(fe))continue;let be=Me(fe,je,bt,Pe);if(be.length>0)Ke.set(fe,{edge:fe,candidates:be})}let De={replacements:new Map,crossings:je.count,bends:Nt,length:ct},le={current:je,currentBends:Nt,currentLength:ct,baseBendsByEdge:Ue,baseLengthByEdge:qe,baseSegments:bt};for(let pe of Je){let fe=new Set(pe.filter((Ge)=>je.edgeSet.has(Ge))),be=pe.map((Ge)=>Ke.get(Ge)).filter((Ge)=>Boolean(Ge));for(let Ge=0;Ge0?De.replacements:void 0},"bestPairedReplacement");for(let je=0;je<4;je++){let Nt=R(),ct=Nt.count;if(ct===0)return;let bt,Pe,Ue=ct,qe=Number.POSITIVE_INFINITY;for(let Je of Nt.edges){let De=ZE(x(Je),ds);for(let le of Ie(Je)){let pe=Y(Je,le),fe=!pe&&Q(Je,le),be=P(Nt,Je,le),Ge=ZE(le,ds);if(pe||fe)continue;if(!(beUe||be===Ue&&Ge>=qe)continue;bt=Je,Pe=le,Ue=be,qe=Ge}}if(bt&&Pe){bt.points=Pe;continue}let Ke=rr(Nt);if(!Ke)return;for(let[Je,De]of Ke)Je.points=De}}function jNr(e,r){let{nodeInfoById:i,realNodeRects:a}=rTe(r),o=["top","bottom","left","right"],l=20,h={top:Math.min(...a.map((k)=>k.rect.top))-20,bottom:Math.max(...a.map((k)=>k.rect.bottom))+20,left:Math.min(...a.map((k)=>k.rect.left))-20,right:Math.max(...a.map((k)=>k.rect.right))+20},d=I((k,A,R,N)=>{let L=[],B=Xit(k,A,R,N,20,ZL);if(B)L.push(B);if(A===N)L.push(Qit(k,A,R,h[A]));return L},"buildOrthogonalPathCandidates"),p=I((k,A)=>{for(let R=0;R{let N=0,L=bq(k,ZL),{start:B,end:D}=A;for(let P of e){if(P===A||P.isLayoutOnly)continue;let{start:F,end:H}=P;if(!R&&B&&D&&(F===B||F===D||H===B||H===D))continue;let W=P.points;if(!W||W.length<2)continue;for(let X of L)for(let Q of bq(W,ZL)){if(Jit(X.a,X.b,Q.a,Q.b,ZL,ZL)){N++;continue}if(L3(X,Q,ZL)>=sai)N++}}return N},"pathConflictCount"),y=4,v=I((k,A)=>{let R=Math.abs(k.y-A.rect.top),N=Math.abs(k.y-A.rect.bottom),L=Math.abs(k.x-A.rect.left),B=Math.abs(k.x-A.rect.right),D="top",P=R;if(N{let N=w.get(k)??[];N.push({side:A,edgeId:R}),w.set(k,N)},"addFaceClaim");for(let k of e){if(k.isLayoutOnly)continue;let A=k.points??[];if(A.length<1)continue;let R=k.id??"",{start:N,end:L}=k;if(N){let B=i.get(N);if(B)T(N,v(A[0],B),R)}if(L){let B=i.get(L);if(B)T(L,v(A[A.length-1],B),R)}}let x=I((k,A,R)=>w.get(k)?.some((N)=>N.edgeId!==R&&N.side===A)??!1,"faceIsClaimed");for(let k of e){if(k.isLayoutOnly)continue;let A=k.points;if(!A||A.length<2)continue;let R=ZE(A,ZL);if(R<4)continue;let{start:N,end:L}=k;if(!N||!L)continue;let B=i.get(N),D=i.get(L);if(!B||!D)continue;let P=k.id??"",F=m(A,k,!0),H=m(A,k),W,X=F,Q=R;for(let Y of o){if(x(N,Y,P))continue;let K=vB(B,Y);for(let J of o){if(x(L,J,P))continue;let Z=vB(D,J);for(let j of d(K,Y,Z,J)){if(p(j,[N,L]))continue;let ee=ZE(j,ZL);if(F>0){let z=m(j,k,!0);if(z>X||z===X&&ee>=Q)continue;X=z,Q=ee,W=j;continue}if(m(j,k)>H)continue;if(eeJ.edgeId!==P));let K=w.get(L);if(K)w.set(L,K.filter((J)=>J.edgeId!==P));T(N,v(W[0],B),P),T(L,v(W[W.length-1],D),P)}}}function Nit(e,r){let i=r?0:e.length-1,a=r?1:-1,o=e[i],l=e[i+a];if(!o||!l)return;let h=l.x-o.x,d=l.y-o.y;if(Math.abs(h)+Math.abs(d)l&&YSe(e,KNr(l)))}function HSe(e,r){let i=[];for(let x of e){if(x.isLayoutOnly)continue;let k=x.points;if(!k||k.length<2)continue;for(let A=0;A{let A=git(k,l);for(let{nodeId:R,rect:N}of a){if(R===x)continue;if(YSe(A,N))return!0}return!1},"labelOverlapsForeignNode"),m=I((x,k)=>{let A=git(k,l);for(let R of i){if(R.edgeId===x)continue;if(tTe(R.p1,R.p2,A))return!0}return!1},"labelOverlapsForeignEdge"),y=I((x,k,A)=>p(x,A)||m(k,A),"labelOverlapsAnything"),v=[],w=I((x)=>{for(let{id:k,rect:A}of o)if(SNr(A,x))return k;return},"findContainingLane"),T=I((x,k)=>v.some((A)=>A.labelId!==x&&YSe(k,A.rect)),"overlapsPlacedLabel");for(let x of e){if(x.isLayoutOnly)continue;let k=x.labelNodeId;if(!k)continue;let A=r.get(k);if(!A)continue;let R=x.points;if(!R||R.length<2)continue;let N=A.width??0,L=A.height??0;if(N<=0||L<=0)continue;let B=[];for(let se=0;se=r2&&Se>=r2)continue;B.push({idx:se,length:ye+Se,orientation:ye>=r2?"horizontal":"vertical",midX:(oe.x+he.x)/2,midY:(oe.y+he.y)/2})}if(B.length===0)continue;let D=B.length>=3?B.filter((se)=>se.idx>0&&se.idx0?D:B,F=N>=L?"horizontal":"vertical",H=I((se)=>[...se].sort((oe,he)=>{let ye=oe.orientation===F,Se=he.orientation===F;if(ye!==Se)return ye?-1:1;let Ie=oe.length>=(oe.orientation==="horizontal"?N:L)+2,Ee=he.length>=(he.orientation==="horizontal"?N:L)+2;if(Ie!==Ee)return Ie?-1:1;return he.length-oe.length}),"rankSegments"),W=B[0],X=B[B.length-1],Q=[0.5,0.25,0.75,0.05,0.95,0.15,0.85,0.1,0.9],Y=I((se,oe)=>{let he=R[se.idx],ye=R[se.idx+1];return{midX:he.x+(ye.x-he.x)*oe,midY:he.y+(ye.y-he.y)*oe}},"anchorAtT"),K=I((se,oe,he)=>Math.min(he,Math.max(oe,se)),"clamp"),J=I((se,oe)=>se.midX>=oe.left-r2&&se.midX<=oe.right+r2&&se.midY>=oe.top-r2&&se.midY<=oe.bottom+r2,"pointInsideRectInclusive"),Z=I((se)=>{let oe=mq(se.midX,se.midY,N,L),he=w(oe);if(he)return{laneId:he,anchor:se,rect:oe};let ye=o.find(({rect:Ye})=>J(se,Ye));if(!ye)return;let Se=ye.rect.left+N/2+h,Ie=ye.rect.right-N/2-h,Ee=ye.rect.top+L/2+h,ze=ye.rect.bottom-L/2-h;if(Se>Ie||Ee>ze)return;let Me={midX:K(se.midX,Se,Ie),midY:K(se.midY,Ee,ze)},Xe=mq(Me.midX,Me.midY,N,L);return J(se,Xe)?{laneId:ye.id,anchor:Me,rect:Xe}:void 0},"placementForAnchor"),j=I((se,oe,he)=>se.orientation==="horizontal"?Math.abs(oe.midX-he.x):Math.abs(oe.midY-he.y),"distanceAlongSegment"),ee=I((se,oe)=>{let ye=(se.orientation==="horizontal"?N/2:L/2)+d;if(se===W){let Se=R[se.idx];if(j(se,oe,Se)+r2{let oe=H(se);for(let he of oe)for(let ye of Q){let Se=Y(he,ye);if(!ee(he,Se))continue;let Ie=Z(Se);if(!Ie)continue;if(Lit(Ie.rect,R))continue;if(T(k,Ie.rect))continue;if(!y(k,x.id,Ie.rect))return{laneId:Ie.laneId,anchor:Ie.anchor}}return},"tryPool"),ne=I((se,oe,he=!1)=>{let ye=H(se);for(let Se of ye){let Ie={midX:Se.midX,midY:Se.midY};if(oe&&!ee(Se,Ie))continue;let Ee=Z(Ie);if(Ee&&!Lit(Ee.rect,R)&&!T(k,Ee.rect)&&!p(k,Ee.rect)&&(he||!m(x.id,Ee.rect)))return{laneId:Ee.laneId,anchor:Ee.anchor}}return},"findLaneContainingFallback"),ie=z(P)??(P.lengthhe.labelId===k);if(oe>=0)v[oe]={labelId:k,rect:se};else v.push({labelId:k,rect:se})}}}function Mit(e,r){return e{let y=Mit(d,p),v=0,w=I((T)=>{if(!T)return;let x=o.get(T);if(!x)return;let k=m==="x"?x.w/2:x.h/2;if(k>v)v=k},"consider");w(h.labelNodeId);for(let T of e){if(T===h)continue;if(T.isLayoutOnly)continue;let{start:x,end:k}=T;if(!x||!k)continue;if(Mit(x,k)!==y)continue;w(T.labelNodeId)}return v>0?v+lai:0},"labelClearanceFor");for(let h of e){if(h.isLayoutOnly)continue;let d=h.points;if(!jit(d,dit))continue;let p=Zit(h,i,dit);if(!p)continue;let{srcId:m,dstId:y,srcInfo:v,dstInfo:w,collinearX:T,collinearY:x}=p;if(T===x)continue;let k,A;if(T){let D=w.cy>v.cy;k={x:v.cx,y:D?v.rect.bottom:v.rect.top},A={x:w.cx,y:D?w.rect.top:w.rect.bottom}}else{let D=w.cx>v.cx;k={x:D?v.rect.right:v.rect.left,y:v.cy},A={x:D?w.rect.left:w.rect.right,y:w.cy}}if(L0(k,A,a,[m,y],1))continue;let N=l(h,m,y,T?"x":"y"),L=N>gNr?N:gNr,B=[0,L,-L];for(let D of B){let P={...k},F={...A};if(T){if(P.x+=D,F.x+=D,P.x<=v.rect.left||P.x>=v.rect.right)continue;if(F.x<=w.rect.left||F.x>=w.rect.right)continue}else{if(P.y+=D,F.y+=D,P.y<=v.rect.top||P.y>=v.rect.bottom)continue;if(F.y<=w.rect.top||F.y>=w.rect.bottom)continue}if(L0(P,F,a,[m,y],1))continue;if(WSe(P,F,e,h,{epsilon:dit}))continue;h.points=[P,F];break}}}function Dit(e,r){let{realNodeRects:m,labelNodeRects:y}=JL(r.values()),v=I((P,F)=>bq(F,0.001).map((H)=>({...H,edge:P,interior:H.index>=1&&H.index<=F.length-3})),"segmentsFor"),w=I(()=>{let P=[];for(let F of e){if(F.isLayoutOnly)continue;let H=F.points;if(!H||H.length<2)continue;P.push(...v(F,lu(H)))}return P},"allSegments"),T=I((P,F)=>{if(P.horizontal&&F.horizontal)return yv(P.a.x,P.b.x,F.a.x,F.b.x)>=8&&Math.abs(P.a.y-F.a.y)<7;if(P.vertical&&F.vertical)return yv(P.a.y,P.b.y,F.a.y,F.b.y)>=8&&Math.abs(P.a.x-F.a.x)<7;return!1},"hasCrowdedParallelTrack"),x=I((P,F)=>{let{start:H,end:W}=P,X=v(P,F);if(X.length!==F.length-1)return!1;let Q=[H,W].filter((K)=>Boolean(K)),Y=P.labelNodeId?[P.labelNodeId]:[];for(let K of X){if(L0(K.a,K.b,m,Q,-2))return!1;if(L0(K.a,K.b,y,Y,-2))return!1}for(let K of e){if(K===P||K.isLayoutOnly)continue;let J=K.points;if(!J||J.length<2)continue;for(let Z of X)for(let j of v(K,lu(J))){if(T(Z,j))return!1;if(ZR(Z.a,Z.b,j.a,j.b,0.001))return!1}}return!0},"candidateIsSafe"),k=I((P,F)=>{let H=lu(P.edge.points??[]);if(H.length<4||P.index>=H.length-1)return;let W=H.map((X)=>({...X}));if(P.horizontal)W[P.index].y+=F,W[P.index+1].y+=F;else if(P.vertical)W[P.index].x+=F,W[P.index+1].x+=F;else return;return v(P.edge,W).length===W.length-1?W:void 0},"shiftedCandidate"),A=I((P,F)=>({x:P.x??(F.left+F.right)/2,y:P.y??(F.top+F.bottom)/2}),"nodeCenter"),R=I((P)=>{let F=P.edge,H=lu(F.points??[]);if(H.length!==4||P.index!==1)return;let W=F.start?r.get(F.start):void 0,X=F.end?r.get(F.end):void 0,Q=W?n2(W):void 0,Y=X?n2(X):void 0,K=H.slice(P.index+2);if(!W||!X||!Q||!Y||K.length===0)return;return{sourceCenter:A(W,Q),targetCenter:A(X,Y),sourceRect:Q,tail:K}},"sourceDetourContextFor"),N=I((P,F,H,W,X,Q)=>{let Y=W.y>=H.y,K=Y?X.bottom:X.top,J=K+(Y?20:-20);if(Y&&P.b.y<=J+0.001||!Y&&P.b.y>=J-0.001)return;let Z=P.a.x+F;return lu([{x:H.x,y:K},{x:H.x,y:J},{x:Z,y:J},{x:Z,y:P.b.y},...Q],0.001)},"verticalSourceDetour"),L=I((P,F,H,W,X,Q)=>{let Y=W.x>=H.x,K=Y?X.right:X.left,J=K+(Y?20:-20);if(Y&&P.b.x<=J+0.001||!Y&&P.b.x>=J-0.001)return;let Z=P.a.y+F;return lu([{x:K,y:H.y},{x:J,y:H.y},{x:J,y:Z},{x:P.b.x,y:Z},...Q],0.001)},"horizontalSourceDetour"),B=I((P,F)=>{let H=R(P);if(!H)return;if(P.vertical)return N(P,F,H.sourceCenter,H.targetCenter,H.sourceRect,H.tail);if(P.horizontal)return L(P,F,H.sourceCenter,H.targetCenter,H.sourceRect,H.tail);return},"sourceDetourCandidate"),D=[-7,7,-14,14,-21,21];for(let P=0;P<12;P++){let F=w(),H=!1;for(let W=0;WJ.interior);for(let J of K){for(let Z of D){let j=k(J,Z);if(j&&x(J.edge,j)){J.edge.points=j,H=!0;break}let ee=B(J,Z);if(ee&&x(J.edge,ee)){J.edge.points=ee,H=!0;break}}if(H)break}}if(!H)return}}function QNr(e,r,i,a){let o=r.x-e.x,l=r.y-e.y,h=a.x-i.x,d=a.y-i.y,p=o*d-l*h;if(Math.abs(p)<0.0000000001)return!1;let m=i.x-e.x,y=i.y-e.y,v=(m*d-y*h)/p,w=(m*l-y*o)/p,T=0.01;return v>T&&v<1-T&&w>T&&w<1-T}function ZNr(e){let r=e.nodes??[],i=e.edges??[],a=[];if(!i.length||!r.length)return a;let o=TNr(r),l=1,h=[];for(let p of i){if(p.isLayoutOnly)continue;let m=p.points;if(!m||m.length<2)continue;let{start:y,end:v,labelNodeId:w}=p,T=p.id??`${y}->${v}`;for(let x of o){if(x.nodeId===y||x.nodeId===v)continue;if(w&&x.nodeId===w)continue;for(let k=0;k0){let p=a.filter((y)=>y.type==="edge-node-overlap").length,m=a.filter((y)=>y.type==="edge-edge-crossing").length;Ze.warn(`[SWIMLANE_VALIDATE] ${a.length} issue(s) detected: ${p} edge-node overlap(s), ${m} edge crossing(s)`);for(let y of a)Ze.warn(`[SWIMLANE_VALIDATE] ${y.type}: ${y.detail}`)}return a}function JNr(e,r){let i=e.nodes??[],a=e.edges??[],o=i.filter((d)=>!d.isGroup);if((r==="LR"||r==="RL")&&o.length>0&&!$Nr(e,r))return;if(r==="BT"&&o.length>0&&!FNr(e))return;for(let d of a){if(d.isLayoutOnly)continue;let p=d.points;if(!p||p.length<2)continue;d.points=M3(jSe(p))}jNr(a,i),XNr(a,i),UNr(a,i);let l=new Map;for(let d of i)l.set(String(d.id),d);HSe(a,l),RNr(a,l),GNr(a,l),Dit(a,l),Ait(a,l),VNr(a,l),Rit(a,l),HNr(a,l);let h=I(()=>{WNr(a,l),Ait(a,l),qNr(a,l),YNr(a,l),HSe(a,l),Cit(a,l),Rit(a,l),HSe(a,l),Cit(a,l)},"finalizeRenderedEdges");h(),Dit(a,l),h(),Iit(a,l,r),Oit(a,l,r),Iit(a,l,r),Oit(a,l,r)}function e7(e){let r=new Map(e.nodeById),i=new Set,a=[];for(let l of e.edges){if(!r.has(l.src)||!r.has(l.dst))continue;let h=`${l.id}:${l.src}->${l.dst}`;if(i.has(h))continue;i.add(h),a.push(l)}return{nodes:[...r.keys()],edges:a,layout:e.layout,nodeById:r}}function iat(e,r){return e.edges.filter((i)=>i.dst===r)}function eLr(e){let r=new Map;for(let i of e.nodes)r.set(i,[]);for(let i of e.edges)r.get(i.src).push(i.dst);return r}function aat(e){let r=eLr(e);for(let i of r.values())i.sort((a,o)=>a.localeCompare(o));return r}function nTe(e){let r=new Map;for(let i of e.nodes)r.set(i,0);for(let i of e.edges)r.set(i.dst,(r.get(i.dst)??0)+1);return r}function sat(e,r){let i=[...r.entries()].filter(([,d])=>d===0).map(([d])=>d).sort((d,p)=>d.localeCompare(p)),a=new Set(e.edges.flatMap((d)=>[d.src,d.dst])),o=I((d)=>!a.has(d)&&!e.nodeById.get(d)?.isGroup,"isUnconnected"),l=[...r.keys()].filter((d)=>r.get(d)===0&&o(d)),h=0;return i.map((d)=>o(d)?l[h++]:d)}function iTe(e,r=()=>!0){let i=new Map,a=new Map;for(let o of e.nodes)i.set(o,[]),a.set(o,[]);for(let o of e.edges){if(!r(o))continue;a.get(o.src).push(o.dst),i.get(o.dst).push(o.src)}return{preds:i,succs:a}}function oat(e,r,i,a){let o=0;for(let h of e.nodes){if(a?.skipGroups&&e.nodeById.get(h)?.isGroup)continue;o=Math.max(o,i[h]??0)}let l=Array.from({length:o+1},()=>[]);for(let h of r){if(a?.skipGroups&&e.nodeById.get(h)?.isGroup)continue;l[Math.max(0,i[h]??0)].push(h)}return l}function Uie(e){let r=nTe(e),i=sat(e,r),a=[],o=aat(e);while(i.length){let l=i.shift();a.push(l);for(let h of o.get(l)??[])if(r.set(h,(r.get(h)??0)-1),(r.get(h)??0)===0){let d=0;while(d{if(o-a<=1)return 0;let l=a+o>>1,h=i(a,l)+i(l,o),d=a,p=l,m=a;while(d=o||dw.dst===T.dst?w.id.localeCompare(T.id):w.dst.localeCompare(T.dst));let a=Object.create(null);for(let v of r.nodes)a[v]=0;let o=[],l=I((v)=>{a[v]=1;for(let w of i.get(v)??[]){let T=w.dst;if(a[T]===0)l(T);else if(a[T]===1)o.push(w)}a[v]=2},"dfs"),h=nTe(r),d=[...r.nodes.filter((v)=>(h.get(v)??0)===0),...r.nodes.filter((v)=>(h.get(v)??0)!==0)];for(let v of d)if(a[v]===0)l(v);let p=new Set(o.map((v)=>`${v.id}:${v.src}->${v.dst}`)),m=r.edges.map((v)=>p.has(`${v.id}:${v.src}->${v.dst}`)?{id:v.id,src:v.dst,dst:v.src,weight:v.weight,ref:v.ref}:v);return{acyclic:{nodes:[...r.nodes],edges:m,layout:r.layout,nodeById:new Map(r.nodeById)},reversed:o}}function rLr(e){let r=new Map,i=I((a)=>{if(r.has(a))return r.get(a);let o=e.nodeById.get(a);if(!o)return r.set(a,null),null;let l=o.parentId;if(!l)return r.set(a,null),null;let d=i(l)??l;return r.set(a,d),d},"resolve");for(let a of e.nodes)i(a);return r}function JR(e){let r=rLr(e);return(i)=>r.get(i)??null}function aTe(e){let r=[];for(let i of e.layout.nodes??[])if(i.isGroup&&!i.parentId)r.push(i.id);return[...new Set(r)].reverse()}function cat(e,r){let i=aTe(e);if(!r||r.length===0)return i;let a=new Set(i),o=new Set,l=[];for(let h of r){if(!a.has(h)||o.has(h))continue;o.add(h),l.push(h)}for(let h of i){if(o.has(h))continue;l.push(h)}return l}function nLr(e,r){let i=e7(e),a=r?.laneOf??(()=>null),o=r?.rankHint,{preds:l}=iTe(i);for(let D of l.values())D.sort((P,F)=>P.localeCompare(F));let h=Uie(i)??[...i.nodes].sort((D,P)=>D.localeCompare(P)),d=new Map;for(let[D,P]of h.entries())d.set(P,D);let p=new Map,m=new Map;for(let D of i.nodes)m.set(D,[]);for(let D of h){let P=(l.get(D)??[]).filter((F)=>p.has(F));if(P.length>0){let F=iLr(D,P,{laneOf:a,rankHint:o,topoIndex:d});p.set(D,F),m.get(F).push(D)}else if(!p.has(D))p.set(D,null)}for(let D of i.nodes)if(!p.has(D))p.set(D,null);let y=new Set;for(let D of i.nodes)if((p.get(D)??null)===null)y.add(D);let v=[...y].sort((D,P)=>{let F=d.get(D)??0,H=d.get(P)??0;if(F===H)return D.localeCompare(P);return F-H}),w=aLr(i),T=new Map;for(let[D,P]of w.entries())T.set(D,[...P].sort((F,H)=>F.localeCompare(H)));let x=sLr(T),k=oLr(T),A=new Map;for(let D of i.nodes)A.set(D,[]);for(let D of k)for(let P of D.nodes){let F=A.get(P);if(F)F.push(D.id);else A.set(P,[D.id])}let R=[],N=[],L=new Set,B=I((D)=>{if(L.has(D))return;L.add(D),R.push(D);for(let P of m.get(D)??[])B(P);N.push(D)},"walk");for(let D of v)B(D);for(let D of h)B(D);return{parent:p,children:m,roots:v,componentOf:x,blocks:k,nodeBlocks:A,adjacency:T,preorder:R,postorder:N,topologicalOrder:h}}function iLr(e,r,i){let a=i.laneOf(e);return[...r].sort((l,h)=>{let d=i.laneOf(l),p=i.laneOf(h),m=d!=null&&d===a,y=p!=null&&p===a;if(m!==y)return m?-1:1;let v=i.rankHint?.[l],w=i.rankHint?.[h];if(v!=null&&w!=null&&v!==w)return w-v;let T=i.topoIndex.get(l)??0,x=i.topoIndex.get(h)??0;if(T!==x)return T-x;return l.localeCompare(h)})[0]}function aLr(e){let r=new Map;for(let i of e.nodes)r.set(i,new Set);for(let i of e.edges)r.get(i.src).add(i.dst),r.get(i.dst).add(i.src);return r}function sLr(e){let r=new Map,i=0;for(let a of e.keys()){if(r.has(a))continue;let o=[a];while(o.length>0){let l=o.pop();if(r.has(l))continue;r.set(l,i);for(let h of e.get(l)??[])if(!r.has(h))o.push(h)}i++}return r}function oLr(e){let r=new Map,i=new Map,a=[],o=[],l=0,h=I((d,p)=>{r.set(d,++l),i.set(d,l);for(let m of e.get(d)??[]){if(m===p)continue;if(!r.has(m)){if(a.push([d,m]),h(m,d),i.set(d,Math.min(i.get(d)??l,i.get(m)??l)),(i.get(m)??0)>=(r.get(d)??0))o.push(lLr(d,m,a,o.length))}else if((r.get(m)??0)<(r.get(d)??0))a.push([d,m]),i.set(d,Math.min(i.get(d)??l,r.get(m)??l))}},"visit");for(let d of e.keys())if(!r.has(d))h(d,null);return o}function lLr(e,r,i,a){let o=[],l=new Set;while(i.length>0){let h=i.pop();if(o.push(h),l.add(h[0]),l.add(h[1]),h[0]===e&&h[1]===r||h[0]===r&&h[1]===e)break}return{id:a,edges:o,nodes:[...l]}}function cLr(e,r,i){let a=[...e.nodes],o=new Map;for(let[N,L]of a.entries())o.set(L,N);let l=a.length,h=Array(l).fill(-1),d=Array(l).fill(0),p=[],m=new Set;for(let N of a){let L=i.parent.get(N)??null,B=o.get(N);if(B==null)continue;if(L==null){if(h[B]=-1,d[B]=0,!m.has(N))m.add(N),p.push(N)}}while(p.length>0){let N=p.shift(),L=o.get(N);if(L==null)continue;let B=i.children.get(N)??[];for(let D of B){if(m.has(D))continue;let P=o.get(D);if(P==null)continue;h[P]=L,d[P]=d[L]+1,m.add(D),p.push(D)}}for(let N of a){if(m.has(N))continue;let L=o.get(N);if(L==null)continue;h[L]=-1,d[L]=0,m.add(N)}let y=Math.max(1,Math.ceil(Math.log2(Math.max(1,l)))+1),v=Array.from({length:y},()=>Array(l).fill(-1));for(let N=0;N{if(N===-1||L===-1)return-1;if(d[N]>D&1){if(N=v[D][N],N===-1)return-1}if(N===L)return N;for(let D=y-1;D>=0;D--){let P=v[D][N],F=v[D][L];if(P===-1||F===-1)continue;if(P!==F)N=P,L=F}return v[0][N]},"lcaIndex"),T=Array.from({length:l},()=>new Map);for(let N of e.edges){let{src:L,dst:B}=N,D=r[L],P=r[B];if(D==null||P==null)continue;if(D>P)[L,B]=[B,L],[D,P]=[P,D];if(D==null||P==null||D===P)continue;let F=o.get(L),H=o.get(B);if(F==null||H==null)continue;let W=w(F,H);if(W===-1)continue;let X=T[W];for(let Q=D;Q{if(L.size===0)return;for(let[B,D]of L)N.set(B,(N.get(B)??0)+D)},"mergeInto"),A=new Set,R=I((N)=>{let L=o.get(N);A.add(N);let B=L==null?void 0:T[L],D=B?new Map(B):new Map,P=i.children.get(N)??[];for(let F of P){let H=R(F),W=r[N];if(W!=null){let X=x.get(N);if(!X)X=new Map,x.set(N,X);let Q=H.get(W)??0,Y=r[F];if(Y!=null&&Y>W)Q+=1;X.set(F,Q)}k(D,H)}return D},"dfs");for(let N of i.roots)if(!A.has(N))R(N);for(let N of a)if(!A.has(N))R(N);return x}function uLr(e,r,i){let a=new Map,o=I((l)=>{let h=i[l]??0,d=[...r.get(l)??[]];d.sort(uat(i));for(let p of d){o(p);let m=a.get(p);if(m!=null)h=Math.min(h,m)}a.set(l,h)},"annotate");for(let l of e)o(l);return a}function uat(e){return(r,i)=>{let a=e[r]??0,o=e[i]??0;return a===o?r.localeCompare(i):a-o}}function hLr(e,r,i,a){let o=0;for(let p of r){let m=i[p]??0;if(m>o)o=m}let l=Array.from({length:o+1},()=>[]),h=new Set,d=I((p)=>{if(h.has(p))return;h.add(p);let m=i[p]??0;if(!l[m])l[m]=[];l[m].push(p);for(let y of a(p))d(y)},"emit");for(let p of e)d(p);for(let p of r)if(!h.has(p)){let m=i[p]??0;if(!l[m])l[m]=[];l[m].push(p),h.add(p)}return l}function dLr(e){let r=[];for(let i of e){let a=new Set,o=[];for(let l of i){if(a.has(l))continue;a.add(l),o.push(l)}r.push(o)}return r}function fLr(e,r,i,a){return(o)=>{let l=e.get(o)??[];if(l.length===0)return[];let h=r[o]??0,d=[],p=[],m=i.get(o);for(let y of l){let v=a.get(y)??h;if(v>h)d.push({child:y,min:v});else p.push(y)}return d.sort((y,v)=>{if(y.min===v.min)return y.child.localeCompare(v.child);return y.min-v.min}),p.sort((y,v)=>{let w=m?.get(y)??0,T=m?.get(v)??0;if(w!==T)return w-T;let x=a.get(y)??h,k=a.get(v)??h;if(x!==k)return x-k;return y.localeCompare(v)}),[...d.map((y)=>y.child),...p]}}function eTe(e,r,i){let a=nLr(e,{rankHint:r,laneOf:i}),{children:o,roots:l}=a;for(let v of e.nodes)if(!o.has(v))o.set(v,[]);let h=cLr(e,r,a),d=[...l].sort(uat(r)),p=uLr(d,o,r),m=fLr(o,r,h,p),y=hLr(d,e.nodes,r,m);return y=dLr(y),y}function pLr(e,r,i){let a=new Set(e),o=new Set(r),l=yq(r),h=[];for(let d of i)if(a.has(d.src)&&o.has(d.dst))h.push(l.get(d.dst));return lat(h)}function Pit(e,r,i){let a=[];for(let l of r){let h=i[l.src],d=i[l.dst];if(h==null||d==null||h===d)continue;let{src:p,dst:m}=l,y=h,v=d;if(h>d)p=l.dst,m=l.src,y=d,v=h;for(let w=y;w(i[w]??0)-(i[v]??0));for(let v of y){let w=i[v]??0;if(w===0)continue;let T=0;for(let R of a.get(v)??[])T=Math.max(T,(i[R]??0)+1);if(T>=w)continue;let x=w;i[v]=T;let k=eTe(e,i,o),A=Pit(k,e.edges,i);if(A(r[o]??0)-(r[l]??0)||o.localeCompare(l));for(let o of a){let l=i(o);if(!l)continue;let h=e.edges.filter((k)=>k.src===o);if(h.length===0)continue;let d=!1,p=0;for(let k of h){let A=i(k.dst);if(A==null||A===l)d=!0;else p++}if(p===0||d)continue;let m=0,y=!1;for(let k of e.edges){if(k.dst!==o)continue;let A=i(k.src);if(!A)continue;if(A===l)y=!0;else m++}if(m>0||!y)continue;let v=r[o]??0,w=v+p,T=0;for(let k of e.edges)if(k.dst===o)T=Math.max(T,(r[k.src]??0)+1);let x=Math.max(v,T,w);if(x!==v)r[o]=x}}function bLr(e,r){let i=e7(e),a=Uie(i)??[...i.nodes].sort(),o=r?.compactSingleInput??!1,l=JR(i),h=Object.create(null);for(let p of a){let m=iat(i,p),y=r?.ignoreCrossLaneEdges?m.filter((v)=>{let w=l(v.src),T=l(p);if(!w||!T)return!0;return w===T}):m;if(y.length===0)h[p]=0;else if(o&&y.length===1){let v=y[0].src,w=l(v),T=l(p);if(w!==T)h[p]=h[v]??0;else h[p]=(h[v]??0)+1}else{let v=-1/0;for(let w of y)v=Math.max(v,(h[w.src]??0)+1);h[p]=v===-1/0?0:v}}if(r?.optimizeRanksByCrossings??!1)h=gLr(i,h);if(r?.ignoreCrossLaneEdges)mLr(i,h);return{layers:eTe(i,h,l),rankOf:h,dummy:new Set}}function yLr(e,r){let i=e7(e),o={...bLr(i,{compactSingleInput:r?.compactSingleInput,ignoreCrossLaneEdges:r?.ignoreCrossLaneEdges,optimizeRanksByCrossings:r?.optimizeRanksByCrossings}).rankOf},l=JR(i),{preds:h,succs:d}=iTe(i,(x)=>{if(r?.ignoreCrossLaneEdges){let k=l(x.src),A=l(x.dst);if(k&&A&&k!==A)return!1}return!0}),p=Uie(i)??[...i.nodes],m=[...p].reverse(),y=I((x,k)=>{let A=0;for(let L of h.get(x)??[])A=Math.max(A,(o[L]??0)+1);let R=Number.POSITIVE_INFINITY,N=d.get(x)??[];if(N.length>0)R=Math.min(...N.map((L)=>(o[L]??0)-1));if(!Number.isFinite(R))R=Math.max(A,k);return Math.min(Math.max(k,A),R)},"clampFeasible"),v=JSe.GRAVITY_ITERATIONS,w=I((x)=>{let k=!1;for(let A of x){let R=h.get(A)??[],N=d.get(A)??[];if(R.length===0&&N.length===0)continue;let L=R.length>0?R.reduce((F,H)=>F+(o[H]??0)+1,0)/R.length:o[A]??0,B=N.length>0?N.reduce((F,H)=>F+(o[H]??0)-1,0)/N.length:o[A]??0,D=Math.round((L+B)/2),P=y(A,D);if(P!==o[A])o[A]=P,k=!0}return k},"relaxOrder");for(let x=0;x0){let A=Math.min(...k.map((R)=>(o[R]??0)-1));if((o[x]??0)>A)o[x]=A}}return{layers:oat(i,p,o),rankOf:o,dummy:new Set}}function vLr(e){let r=nTe(e),i=aat(e),a=sat(e,r),o=[];while(a.length>0){let l=[];for(let h of a){o.push(h);for(let d of i.get(h)??[])if(r.set(d,(r.get(d)??0)-1),(r.get(d)??0)===0)l.push(d)}a=l.sort((h,d)=>h.localeCompare(d))}return o.length===e.nodes.length?o:null}function _Lr(e,r){let i=e7(e),a=r?.direction==="LR"?vLr(i)??[...i.nodes].sort():Uie(i)??[...i.nodes].sort(),o=JR(i),l=I((y)=>o(y)??y,"laneOf"),h=Object.create(null),d=new Map,p=I((y,v)=>{if(r?.ignoreCrossLaneEdges??!0)return l(y)===l(v)?1:0;return 1},"edgeWeight");for(let y of a){if(i.nodeById.get(y)?.isGroup)continue;let w=iat(i,y),T=0;if(w.length>0)for(let R of w){let N=R.src,L=h[N]??0;T=Math.max(T,L+p(N,y))}let x=l(y),k=d.get(x)??0,A=Math.max(T,k);h[y]=A,d.set(x,A+1)}return{layers:oat(i,a,h,{skipGroups:!0}),rankOf:h,dummy:new Set}}function ELr(e,r){let i=e7(r),{rankOf:a}=e,o=e.layers.map((T)=>[...T]),l=new Set(e.dummy?[...e.dummy]:[]),h=0,d=new Map(i.nodeById),p=I((T)=>{let x=`placeholder-${h++}`,k={id:x,isGroup:!1,isDummy:!0,width:0,height:0};d.set(x,k),l.add(x);while(o.length<=T)o.push([]);return o[T].push(x),a[x]=T,x},"addDummyAt"),m=[...i.edges].sort((T,x)=>T.id===x.id?T.src===x.src?T.dst.localeCompare(x.dst):T.src.localeCompare(x.src):T.id.localeCompare(x.id)),y=[];for(let T of m){let x=a[T.src]??0,k=a[T.dst]??0;if(k-x<=1){y.push(T);continue}let A=T.src;for(let N=x+1,L=0;N!i.nodes.includes(T))],edges:y,layout:i.layout,nodeById:d};return{layering:{layers:o,rankOf:a,dummy:l},graphWithDummies:w}}function Bit(e){let r=e.length;if(r===0)return Number.POSITIVE_INFINITY;let i=[...e].sort((a,o)=>a-o);if(r%2===1)return i[(r-1)/2];return 0.5*(i[r/2-1]+i[r/2])}function Fit(e){if(e.length===0)return Number.POSITIVE_INFINITY;return e.reduce((i,a)=>i+a,0)/e.length}function wLr(e,r,i,a){let o=new Map;for(let l of e)o.set(l,[]);for(let l of i)if(a==="down"){if(r.has(l.src)&&o.has(l.dst))o.get(l.dst).push(r.get(l.src))}else if(r.has(l.dst)&&o.has(l.src))o.get(l.src).push(r.get(l.dst));return o}function SLr(e,r,i){let a=i.get(e)??0,o=i.get(r)??0;return a!==o?a-o:e.localeCompare(r)}function $it(e,r,i){let a=new Set(e),o=new Set(r),l=yq(e),h=yq(r),d=[];for(let m of i)if(a.has(m.src)&&o.has(m.dst))d.push({u:l.get(m.src),v:h.get(m.dst)});d.sort((m,y)=>m.u===y.u?m.v-y.v:m.u-y.u);let p=d.map((m)=>m.v);return lat(p)}function qSe(e,r,i){return[...e].sort((a,o)=>{let l=Bit(r.get(a)??[]),h=Bit(r.get(o)??[]);if(l===h)return SLr(a,o,i);if(!isFinite(l))return 1;if(!isFinite(h))return-1;return l-h})}function Uit(e,r,i,a,o,l){let h=yq(e),d=yq(r),p=wLr(r,h,i,a);if(!o||!l||l.length===0)return qSe(r,p,d);let m=new Map;for(let w of r){let T=o(w),x=m.get(T)??[];x.push(w),m.set(T,x)}let y=[];for(let w of l){let T=m.get(w);if(!T||T.length===0)continue;let x=qSe(T,p,d);y.push(...x)}let v=m.get(null);if(v&&v.length>0){let w=qSe(v,p,d);for(let T of w){let x=Fit(p.get(T)??[]),k=y.length;if(isFinite(x))for(let[A,R]of y.entries()){let N=Fit(p.get(R)??[]);if(xh.has(k.src)&&d.has(k.dst)),y=p?i.filter((k)=>d.has(k.src)&&p.has(k.dst)):void 0,v=I((k)=>{let A=$it(e,k,m);if(y&&a)A+=$it(k,a,y);return A},"crossingScore"),w=o?new Map:null;if(o&&w)for(let k of r)w.set(k,o(k));let T=!0,x=v(l);while(T){T=!1;for(let k=0;k+1[...d]),o=r.edges,l=JR(r),h=cat(r,i?.laneOrder);for(let d=0;d<3;d++){for(let p=1;p=0;p--)a[p]=Uit(a[p+1],a[p],o,"up",l,h),a[p]=Git(a[p+1],a[p],o,a[p-1],l)}return{layers:a}}function xLr(e,r,i){let a=i?.layerGap??mNr.DEFAULT_LAYER_GAP,o=i?.nodeGap??mNr.DEFAULT_NODE_GAP,l=i?.laneGap??o*2,h=i?.direction??"TB",d=h==="LR"||h==="RL",p=e.layers,m=Object.create(null),y=Object.create(null),v=I((X)=>r.nodeById.get(X),"getNode"),w=I((X)=>v(X)?.width??0,"getWidth"),T=I((X)=>v(X)?.height??0,"getHeight"),x=JR(r),k=cat(r,i?.laneOrder),A=p.map((X)=>X.reduce((Q,Y)=>Math.max(Q,T(Y)),0)),R=[];if(d)for(let X=0;X+1Math.max(z,w(ne)),0),Y=p[X+1].reduce((z,ne)=>Math.max(z,w(ne)),0),K=A[X],J=A[X+1],Z=K/2+J/2,j=(Q+Y)/2,ee=Math.max(0,j-Z-a);R.push(ee)}let N=new Set;for(let X of p)for(let Q of X)N.add(x(Q));let L=N.has(null),B=k.filter((X)=>N.has(X)),D=[...L?[null]:[],...B],P=Object.create(null);for(let X of B)P[X]=0;if(L)P.null=0;for(let X of p){let Q=Object.create(null),Y=[];for(let K of X){let J=x(K);if(J===null)Y.push(K);else(Q[J]||=[]).push(K)}for(let[K,J]of Object.entries(Q)){let Z=J.reduce((j,ee)=>j+w(ee),0)+o*Math.max(0,J.length-1);P[K]=Math.max(P[K]??0,Z)}if(L&&Y.length){let K=Y.reduce((J,Z)=>J+w(Z),0)+o*Math.max(0,Y.length-1);P.null=Math.max(P.null??0,K)}}let F=new Map;{let X=D.map((K)=>(K===null?P.null:P[K])??0),Y=-(X.reduce((K,J)=>K+J,0)+l*Math.max(0,D.length-1))/2;for(let K=0;Kw(se)),ne=z.reduce((se,oe)=>se+oe,0)+o*(j.length-1),ie=ee-ne/2;for(let[se,oe]of j.entries()){let he=z[se];m[oe]=ie+he/2,y[oe]=H+Y/2,ie+=he+o}}}let J=R[X]??0;H+=Y+a+J}let W=new Map;for(let X of r.edges){let Q=X.ref.id;if(!W.has(Q))W.set(Q,[]);W.get(Q).push(X)}for(let[,X]of W){if(X.length===0)continue;let Q=X[0].ref,{start:Y,end:K}=Q;if(Y==null||K==null)continue;let J=Math.round(((m[Y]??0)+(m[K]??0))/2),Z=new Set;for(let j of X)Z.add(j.src),Z.add(j.dst);for(let j of Z){if(j===Y||j===K)continue;if(r.nodeById.get(j)?.isDummy)m[j]=J}}return{x:m,y}}function kLr(e){let r=2166136261;for(let i=0;i>>0}function ALr(e){let r=e>>>0;return()=>{r+=1831565813;let i=r;return i=Math.imul(i^i>>>15,i|1),i^=i+Math.imul(i^i>>>7,i|61),((i^i>>>14)>>>0)/4294967296}}function RLr(e,r){let i=[...e],a=ALr(r);for(let o=i.length-1;o>0;o--){let l=Math.floor(a()*(o+1));[i[o],i[l]]=[i[l],i[o]]}return i}function ILr(e,r){let i=0;for(let[a,o]of e.entries())i+=Math.abs(a-(r.get(o)??a));return i}function zit(e,r){let i=new Map;for(let[o,l]of e.entries())i.set(l,o);let a=0;for(let{a:o,b:l,weight:h}of r){let d=i.get(o),p=i.get(l);if(d==null||p==null)continue;a+=h*Math.abs(d-p)}return a}function OLr(e){let r=aTe(e);if(r.length<2)return[];let i=new Map(r.map((l,h)=>[l,h])),a=JR(e),o=new Map;for(let l of e.layout.edges??[]){if(l.isLayoutOnly)continue;let h=typeof l.start==="string"?l.start:void 0,d=typeof l.end==="string"?l.end:void 0;if(!h||!d||!e.nodeById.has(h)||!e.nodeById.has(d))continue;let p=a(h),m=a(d);if(!p||!m||p===m)continue;let y=i.get(p),v=i.get(m);if(y==null||v==null)continue;let[w,T]=y<=v?[p,m]:[m,p],x=`${w}\x00${T}`,k=o.get(x);if(k)k.weight++;else o.set(x,{a:w,b:T,weight:1})}return[...o.values()]}function Vit(e,r,i){let a=[...e],o=zit(a,r),l=!0,h=0,d=Math.max(1,a.length);while(l&&ho.a===l.a?o.b.localeCompare(l.b):o.a.localeCompare(l.a)).map(({a:o,b:l,weight:h})=>`${o}:${l}:${h}`).join("|");return kLr(`${e.join("|")}#${a}#${i}`)}function MLr(e,r={}){let i=aTe(e);if(i.length<2)return i;let a=OLr(e);if(a.length===0)return i;let o=new Map(i.map((d,p)=>[d,p])),l=Vit(i,a,o),h=Math.max(0,r.restarts??CLr);for(let d=0;doc&&p*m>=d)return h>0?"bottom":"top";if(d>oc)return l>0?"right":"left";return i}function qit(e,r){return Math.abs(e.to-r.from)Pe.isGroup&&!Pe.parentId);for(let Pe of m){let Ue={id:Pe.id},qe=I((Ke)=>{h.set(Ke.id,Ue),i.filter((Je)=>Je.parentId===Ke.id).forEach(qe)},"assignLane");qe(Pe)}let y=i.filter((Pe)=>!Pe.isGroup&&!Pe.isEdgeLabel).map((Pe)=>{let Ue=Pe.width??10,qe=Pe.height??10,Ke=Pe.x??0,Je=Pe.y??0,De=uai;return{nodeId:Pe.id,minX:Ke-Ue/2-De,maxX:Ke+Ue/2+De,minY:Je-qe/2-De,maxY:Je+qe/2+De,visualXHalfExtent:p?qe/2+De:Ue/2+De}}),v=I((Pe,Ue,qe,Ke)=>{let Je=d.find((De)=>De.orientation===Pe&&Math.abs(De.coord-Ue)<1);if(!Je)Je={id:`pipe-${Pe}-${Ue.toFixed(0)}`,orientation:Pe,coord:Ue,spanMin:qe,spanMax:Ke,tracks:[]},d.push(Je);return Je.spanMin=Math.min(Je.spanMin,qe),Je.spanMax=Math.max(Je.spanMax,Ke),Je},"getOrAddPipe"),w=I((Pe,Ue)=>{let qe=Pe.width??10,Ke=Pe.height??10,Je=Pe.x??0,De=Pe.y??0;switch(Ue){case"top":return{x:Je,y:De-Ke/2};case"bottom":return{x:Je,y:De+Ke/2};case"left":return{x:Je-qe/2,y:De};case"right":return{x:Je+qe/2,y:De}}},"portForSide"),T=I((Pe,Ue,qe)=>w(Pe,Hit(Pe,Ue,qe?"bottom":"top")),"getOrthogonalPort"),x=[],k=[],A=new Set,R=1000,N=I((Pe,Ue,qe)=>{if(x.length===0)return 0;let Ke=Math.abs(Ue.y-qe.y)fe)continue;if(be.from-oc<=le&&be.to+oc>=le)De+=R}}else if(Je){let le=Ue.x,pe=Math.min(Ue.y,qe.y)-oc,fe=Math.max(Ue.y,qe.y)+oc;if(fe<=pe)return 0;for(let be of x){if(be.edgeIndex===Pe||be.orientation!=="horizontal")continue;if(be.pipe.coordfe)continue;if(be.from-oc<=le&&be.to+oc>=le)De+=R}}return De},"crossingPenalty"),L=o.map((Pe,Ue)=>{if(!Pe.start||!Pe.end)return{idx:Ue,crossLane:0,dx:0,dy:0};let qe=l.get(Pe.start),Ke=l.get(Pe.end),Je=h.get(Pe.start),De=h.get(Pe.end),le=Je&&De&&Je.id!==De.id?1:0,pe=qe&&Ke?Math.abs((Ke.x??0)-(qe.x??0)):0,fe=qe&&Ke?Math.abs((Ke.y??0)-(qe.y??0)):0;return{idx:Ue,crossLane:le,dx:pe,dy:fe}}).sort((Pe,Ue)=>{if(Pe.crossLane!==Ue.crossLane)return Ue.crossLane-Pe.crossLane;let qe=Pe.dx+Pe.dy,Ke=Ue.dx+Ue.dy;if(Math.abs(qe-Ke)>1)return qe-Ke;return Pe.idx-Ue.idx}).map((Pe)=>Pe.idx),B=I((Pe,Ue,qe,Ke)=>{let Je=Math.min(Pe.x,Ue.x),De=Math.max(Pe.x,Ue.x),le=Math.min(Pe.y,Ue.y),pe=Math.max(Pe.y,Ue.y);return!!y.find((be)=>{if(qe&&be.nodeId===qe)return!1;if(Ke&&be.nodeId===Ke)return!1;if(Math.abs(Pe.x-Ue.x)>oc)return be.minYPe.y&&be.maxX>Je&&be.minXPe.x&&be.maxY>le&&be.minYHit(Pe,Ue,"bottom"),"determineSide"),H=new Map;for(let[Pe,Ue]of o.entries()){if(!Ue.start||!Ue.end||Ue.start===Ue.end)continue;if(Ue.points&&Ue.points.length>0)continue;let qe=l.get(Ue.start),Ke=l.get(Ue.end);if(!qe||!Ke)continue;let Je=(Ke.x??0)-(qe.x??0),De=(Ke.y??0)-(qe.y??0);H.set(Pe,{edgeIdx:Pe,srcId:Ue.start,dstId:Ue.end,srcSide:F(qe,{x:Ke.x??0,y:Ke.y??0}),dstSide:F(Ke,{x:qe.x??0,y:qe.y??0}),absDx:Math.abs(Je),absDy:Math.abs(De),dxSign:Math.sign(Je),dySign:Math.sign(De)})}let W=I((Pe)=>{if(Pe.srcSide==="top"||Pe.srcSide==="bottom")return Pe.absDx===0?1/0:Pe.absDy/Pe.absDx;return Pe.absDy===0?1/0:Pe.absDx/Pe.absDy},"preferenceStrength"),X=I((Pe)=>{if(Pe.srcSide==="top"||Pe.srcSide==="bottom")return Pe.dxSign>=0?"right":"left";return Pe.dySign>=0?"bottom":"top"},"secondarySide"),Q=new Map;for(let Pe of H.values()){let Ue=`${Pe.srcId}:${Pe.srcSide}`;if(!Q.has(Ue))Q.set(Ue,[]);Q.get(Ue).push(Pe)}let Y=new Map,K=I((Pe,Ue)=>`${Pe}:${Ue}`,"loadKey");for(let Pe of H.values())Y.set(K(Pe.srcId,Pe.srcSide),(Y.get(K(Pe.srcId,Pe.srcSide))??0)+1),Y.set(K(Pe.dstId,Pe.dstSide),(Y.get(K(Pe.dstId,Pe.dstSide))??0)+1);for(let Pe of Q.values()){if(Pe.length<2)continue;Pe.sort((Ue,qe)=>{let Ke=W(Ue),Je=W(qe);if(Math.abs(Ke-Je)>0.000000001)return Je-Ke;return Ue.edgeIdx-qe.edgeIdx});for(let Ue=1;Ue=Je)continue;Y.set(K(qe.srcId,qe.srcSide),Je-1),Y.set(K(qe.srcId,Ke),De+1),qe.srcSide=Ke}}let J=I((Pe)=>{let Ue=Pe?.shape;return Ue==="question"||Ue==="diamond"},"isDiamondNode"),Z=new Map;for(let Pe of H.values()){if(!Z.has(Pe.dstId))Z.set(Pe.dstId,new Set);Z.get(Pe.dstId).add(Pe.dstSide)}for(let Pe of H.values()){if(!J(l.get(Pe.srcId)))continue;let Ue=Z.get(Pe.srcId);if(!Ue?.has(Pe.srcSide))continue;let qe=X(Pe);if(Ue.has(qe)||(Y.get(K(Pe.srcId,qe))??0)>0)continue;let Ke=Y.get(K(Pe.srcId,Pe.srcSide))??0;Y.set(K(Pe.srcId,Pe.srcSide),Math.max(0,Ke-1)),Y.set(K(Pe.srcId,qe),1),Pe.srcSide=qe}for(let Pe of H.values()){let{edgeIdx:Ue,srcId:qe,dstId:Ke,srcSide:Je,dstSide:De}=Pe,le=l.get(qe),pe=l.get(Ke),fe=`${qe}:${Je}:src`,be=Je==="top"||Je==="bottom"?pe.x??0:pe.y??0;if(!D.has(fe))D.set(fe,[]);D.get(fe).push({edgeIdx:Ue,oppositeCoord:be});let Ge=`${Ke}:${De}:dst`,ke=De==="top"||De==="bottom"?le.x??0:le.y??0;if(!D.has(Ge))D.set(Ge,[]);D.get(Ge).push({edgeIdx:Ue,oppositeCoord:ke})}let j=new Map,ee=8;for(let[Pe,Ue]of D){if(Ue.length<2)continue;Ue.sort((gt,vt)=>gt.oppositeCoord-vt.oppositeCoord);let qe=Pe.split(":"),Ke=qe.slice(0,-2).join(":"),Je=qe[qe.length-2],De=qe[qe.length-1],le=l.get(Ke);if(!le)continue;let fe=Je==="left"||Je==="right"?le.height??10:le.width??10,be=le.shape,ke=be==="question"||be==="diamond"?fe*0.3:fe,Ae=Math.min(20,Math.max(ee,ke/(Ue.length+1))),ut=-(Ae*(Ue.length-1))/2;for(let[gt,vt]of Ue.entries()){let ir=ut+gt*Ae,qt=`${vt.edgeIdx}:${De}`;j.set(qt,ir)}}let z=I((Pe)=>Boolean(o[Pe]?.labelNodeId),"edgeHasLabelNode"),ne=I((Pe,Ue)=>{if(!Pe)return!1;return(D.get(`${Pe}:${Ue}:src`)??[]).some(({edgeIdx:qe})=>z(qe))||(D.get(`${Pe}:${Ue}:dst`)??[]).some(({edgeIdx:qe})=>z(qe))},"faceHasLabelNode"),ie=I((Pe,Ue,qe)=>{if(Ue==="top"||Ue==="bottom")return{x:Pe.x+qe,y:Pe.y};else return{x:Pe.x,y:Pe.y+qe}},"applyPortOffset"),se=I((Pe,Ue,qe)=>{let Ke=H.get(Pe),Je={x:qe.x??0,y:qe.y??0},De={x:Ue.x??0,y:Ue.y??0},le=Ke?.srcSide??F(Ue,Je),pe=Ke?.dstSide??F(qe,De),fe=Ke?w(Ue,Ke.srcSide):T(Ue,Je,!0),be=Ke?w(qe,Ke.dstSide):T(qe,De,!1),Ge=j.get(`${Pe}:src`),ke=j.get(`${Pe}:dst`);if(Ge!==void 0)fe=ie(fe,le,Ge);if(ke!==void 0)be=ie(be,pe,ke);return{pSrcPort:fe,pDstPort:be,srcSide:le,dstSide:pe}},"portsForEdge");for(let Pe of L){let Ue=o[Pe];if(k[Pe]=[],!Ue.start||!Ue.end)continue;if(Ue.points&&Ue.points.length>0)continue;if(Ue.start===Ue.end)continue;let qe=l.get(Ue.start),Ke=l.get(Ue.end);if(!qe||!Ke)continue;let{pSrcPort:Je,pDstPort:De,srcSide:le,dstSide:pe}=se(Pe,qe,Ke),fe={...Je},be={...De},Ge=le==="top"||le==="bottom",ke=pe==="top"||pe==="bottom";if(Ge){let Ir=Je.y>(qe.y??0);fe.y=Ir?Je.y+nT:Je.y-nT}else{let Ir=Je.x>(qe.x??0);fe.x=Ir?Je.x+nT:Je.x-nT}if(ke){let Ir=De.y>(Ke.y??0);be.y=Ir?De.y+nT:De.y-nT}else{let Ir=De.x>(Ke.x??0);be.x=Ir?De.x+nT:De.x-nT}let we=I((Ir,hn)=>{for(let zn of y){if(hn.includes(zn.nodeId))continue;if(Ir.x>zn.minX&&Ir.xzn.minY&&Ir.y{if(aa){let ma=Ir.y>(hn.y??0);return{x:(zn.x??0)>=Ir.x?Di.maxX+bB:Di.minX-bB,y:ma?Di.maxY+gq:Di.minY-gq,leavesPositiveSide:ma}}let Ca=Ir.x>(hn.x??0),os=(zn.y??0)>=Ir.y;return{x:Ca?Di.maxX+bB:Di.minX-bB,y:os?Di.maxY+gq:Di.minY-gq,leavesPositiveSide:Ca}},"obstacleDetour"),at=[],ut=[Ue.start,Ue.end],gt=we(fe,ut);if(gt.inside&>.obstacle){let Ir=gt.obstacle;if(Ge){let hn=Ae(Je,qe,Ke,Ir,!0);fe.x=hn.x,fe.y=hn.y;let zn=hn.leavesPositiveSide?Math.min(Ir.minY-2,Je.y+nT):Math.max(Ir.maxY+2,Je.y-nT);at=[{x:Je.x,y:zn},{x:hn.x,y:zn},{x:hn.x,y:hn.y}]}else{let hn=Ae(Je,qe,Ke,Ir,!1),zn=hn.leavesPositiveSide?Math.min(Ir.minX-2,Je.x+nT):Math.max(Ir.maxX+2,Je.x-nT);fe.x=hn.x,fe.y=hn.y,at=[{x:zn,y:Je.y},{x:zn,y:hn.y},{x:hn.x,y:hn.y}]}}let vt=[],ir=we(be,ut);if(ir.inside&&ir.obstacle){let Ir=ir.obstacle;if(ke){let hn=Ae(De,Ke,qe,Ir,!0);be.x=hn.x,be.y=hn.y,vt=[{x:hn.x,y:hn.y},{x:De.x,y:hn.y}]}else{let hn=Ae(De,Ke,qe,Ir,!1);be.x=hn.x,be.y=hn.y,vt=[{x:hn.x,y:hn.y},{x:hn.x,y:De.y}]}}if(at.length===0&&vt.length===0){let Ir=bB,hn=Math.abs(fe.x-be.x)1||Ca>1,ma=P.get(Ue.start??"")??0,Yn=P.get(Ue.end??"")??0,Tn=aa>1&&ne(Ue.start,le)||Ca>1&&ne(Ue.end,pe),Pi=aa<=1||ma<=2,Mi=Ca<=1||Yn<=2;if((hn||zn)&&!Di&&(!os||os&&!Tn&&Pi&&Mi)){if(!B(Je,De,Ue.start,Ue.end)){Ue.points=[{...Je},{...fe},{...be},{...De}],A.add(Pe);let Lt=zn?"horizontal":"vertical",Gc=zn?Je.y:Je.x,Vt=zn?Math.min(Je.x,De.x):Math.min(Je.y,De.y),fs=zn?Math.max(Je.x,De.x):Math.max(Je.y,De.y),ya={id:`fast-path-${Lt}-${Gc.toFixed(0)}-${Pe}`,orientation:Lt,coord:Gc,spanMin:Vt,spanMax:fs,tracks:[]};x.push({edgeIndex:Pe,segmentIndex:0,orientation:Lt,pipe:ya,trackIndex:0,from:Vt,to:fs});continue}}}let qt=v("vertical",fe.x,fe.y,fe.y);fe.x=qt.coord;let cr=v("vertical",be.x,be.y,be.y);be.x=cr.coord;let tr=Math.min(fe.x,be.x)-50,Zt=Math.max(fe.x,be.x)+50,lr=Math.min(fe.y,be.y)-50,Xt=Math.max(fe.y,be.y)+50;for(let Ir of y){let hn=Math.min(fe.x,be.x),zn=Math.max(fe.x,be.x),Di=Math.min(fe.y,be.y),aa=Math.max(fe.y,be.y);if(Ir.minXhn&&Ir.minYDi)tr=Math.min(tr,Ir.minX-VSe),Zt=Math.max(Zt,Ir.maxX+VSe),lr=Math.min(lr,Ir.minY-VSe),Xt=Math.max(Xt,Ir.maxY+VSe)}for(let Ir of y){if(Ir.maxXZt||Ir.maxYXt)continue;let hn=bB;v("horizontal",Ir.minY-hn,tr,Zt),v("horizontal",Ir.maxY+hn,tr,Zt);let zn=gq;v("vertical",Ir.minX-zn,lr,Xt),v("vertical",Ir.maxX+zn,lr,Xt)}v("horizontal",fe.y,tr,Zt),v("horizontal",be.y,tr,Zt);let In=d.filter((Ir)=>Ir.orientation==="horizontal"&&Ir.coord>=lr&&Ir.coord<=Xt),Et=d.filter((Ir)=>Ir.orientation==="vertical"&&Ir.coord>=tr&&Ir.coord<=Zt),Xn=I((Ir,hn)=>`${Ir.toFixed(1)},${hn.toFixed(1)}`,"getKey"),Yt=Xn(fe.x,fe.y),Bn=Xn(be.x,be.y),si=new Map,dn=new Map,Ii=new Map,Vn=new Set,Ei=[];si.set(Yt,0),Ii.set(Yt,"n"),Ei.push({key:Yt,f:Math.hypot(be.x-fe.x,be.y-fe.y),pt:fe}),Vn.add(Yt);let vn=[],Li=I((Ir,hn)=>B(Ir,hn,Ue.start,Ue.end),"checkSegmentBlocked"),Ia={x:be.x,y:fe.y},tt=Li(fe,Ia),Fn=Li(Ia,be),Hn=tt||Fn,_t={x:fe.x,y:be.y},Sr=Li(fe,_t),ln=Li(_t,be),mn=Sr||ln;if(!Hn)if(Math.abs(fe.y-be.y)0){Ei.sort((Yn,Tn)=>Yn.f-Tn.f);let Ir=Ei.shift();if(Vn.delete(Ir.key),Ir.key===Bn){let Yn=Bn,Tn=be;vn=[Tn];while(dn.has(Yn)){let Pi=dn.get(Yn);vn.unshift(Pi),Tn=Pi,Yn=Xn(Pi.x,Pi.y)}break}let hn=Ir.pt.x,zn=Ir.pt.y,Di=Et.sort((Yn,Tn)=>Yn.coord-Tn.coord),aa=Di.findIndex((Yn)=>Math.abs(Yn.coord-hn)<1),Ca=In.sort((Yn,Tn)=>Yn.coord-Tn.coord),os=Ca.findIndex((Yn)=>Math.abs(Yn.coord-zn)<1),ma=[];if(aa>0)ma.push({x:Di[aa-1].coord,y:zn});if(aa>=0&&aa0)ma.push({x:hn,y:Ca[os-1].coord});if(os>=0&&os{if(dd.nodeId===Ue.start||dd.nodeId===Ue.end)return!1;if(Tn!==Pi)return dd.minYzn&&dd.maxX>Tn&&dd.minXhn&&dd.maxY>Mi&&dd.minY10&&Yr<-5||rs<-10&&Yr>5)fs=Math.abs(Yr)*100;if(ya>10&&xs<-5||ya<-10&&xs>5)fs+=Math.abs(xs)*50;let Zl=0,ft=Ii.get(Ir.key)??"n",ro=Math.abs(xs)>oc?"h":"v";if(ft!=="n"&&ft!==ro)Zl=50;let yt=Gc+Vt+fs+Zl,fl=(si.get(Ir.key)??1/0)+yt,lb=Math.abs(be.x-Yn.x)+Math.abs(be.y-Yn.y);if(fl<(si.get(Lt)??1/0))if(dn.set(Lt,Ir.pt),si.set(Lt,fl),Ii.set(Lt,ro),!Vn.has(Lt))Ei.push({key:Lt,f:fl+lb,pt:Yn}),Vn.add(Lt);else{let dd=Ei.findIndex((cb)=>cb.key===Lt);if(dd!==-1)Ei[dd].f=fl+lb}}}if(vn.length===0)vn=[fe,{x:fe.x,y:be.y},be];if(vn.length>4){let Ir=vn[0],hn=vn[vn.length-1],zn=Math.min(Ir.x,hn.x),Di=Math.max(Ir.x,hn.x),aa=Math.min(Ir.y,hn.y),Ca=Math.max(Ir.y,hn.y);for(let Mi of vn)zn=Math.min(zn,Mi.x),Di=Math.max(Di,Mi.x),aa=Math.min(aa,Mi.y),Ca=Math.max(Ca,Mi.y);let os=Di>Math.max(Ir.x,hn.x),ma=znVt.minXWn&&Vt.minYba);if(Gc.length>0){let Vt=Math.max(Ir.x,hn.x);for(let fs of Gc){let ya=(fs.minX+fs.maxX)/2;if(fs.visualXHalfExtent===void 0||isNaN(fs.visualXHalfExtent))continue;let rs=ya+fs.visualXHalfExtent+Mi;Vt=Math.max(Vt,rs)}if(!isNaN(Vt))Di=Vt}}if(ma){let Wn=y.filter((ba)=>ba.minXMath.min(Ir.y,hn.y));if(Wn.length>0){let ba=Math.min(Ir.x,hn.x);for(let Lt of Wn){let Vt=(Lt.minX+Lt.maxX)/2-Lt.visualXHalfExtent-Mi;ba=Math.min(ba,Vt)}zn=ba}}}let Yn=I((Mi)=>{let Wn=hn.y>Ir.y,ba=y.filter((Vt)=>{let fs=Math.min(Ir.x,hn.x)Vt.minX,ya=Math.min(Ir.y,hn.y)Vt.minY;return fs&&ya}),Lt=ba;if(p&&ba.length>0){let Vt=ba.filter((fs)=>fs.minXMi);if(Vt.length>0)Lt=Vt}if(Lt.length===0)return hn.y;let Gc=bB;if(Wn){let fs=Math.max(...Lt.map((ya)=>ya.maxY))+Gc;if(fsya.minY))-Gc;if(fs>hn.y+oc)return fs}return hn.y},"findBestReturnY"),Tn=I((Mi)=>{let Wn=Yn(Mi),ba={x:Mi,y:Ir.y},Lt={x:Mi,y:Wn},Gc={x:hn.x,y:Wn},Vt=Li(Ir,ba),fs=Li(ba,Lt),ya=Li(Lt,Gc),rs=Wn!==hn.y?Li(Gc,hn):!1;if(!Vt&&!fs&&!ya&&!rs){if(Math.abs(Wn-hn.y)=3){let Ir=On[On.length-1],hn=On[On.length-2],zn=On[On.length-3],Di=Math.abs(zn.y-hn.y)Math.abs(Ir.x-zn.x))On.splice(-2,1)}else if(aa){let Ca=Math.sign(hn.y-zn.y),os=Math.sign(Ir.y-zn.y);if(Ca!==0&&Ca===os&&Math.abs(hn.y-zn.y)>Math.abs(Ir.y-zn.y))On.splice(-2,1)}}let as=[On[0]];for(let Ir=1;Irhn.x,Ca=Di.x>zn.x;if(aa!==Ca){as.push(zn);continue}continue}if(Math.abs(hn.x-zn.x)hn.y,Ca=Di.y>zn.y;if(aa!==Ca){as.push(zn);continue}continue}as.push(zn)}as.push(On[On.length-1]);for(let Ir=0;IrPe.from{let Je=!Ke.segments.some((le)=>(le.edgeIndex!==Ue.edgeIndex||le.segmentIndex!==Ue.segmentIndex)&&oe(le,Pe)),De=!qe.segments.some((le)=>(le.edgeIndex!==Pe.edgeIndex||le.segmentIndex!==Pe.segmentIndex)&&oe(le,Ue));if(Je&&De)return Pe.trackIndex=Ke.index,Ue.trackIndex=qe.index,qe.segments=[...qe.segments.filter((le)=>le.edgeIndex!==Pe.edgeIndex||le.segmentIndex!==Pe.segmentIndex),{edgeIndex:Ue.edgeIndex,segmentIndex:Ue.segmentIndex,from:Ue.from,to:Ue.to}],Ke.segments=[...Ke.segments.filter((le)=>le.edgeIndex!==Ue.edgeIndex||le.segmentIndex!==Ue.segmentIndex),{edgeIndex:Pe.edgeIndex,segmentIndex:Pe.segmentIndex,from:Pe.from,to:Pe.to}],!0;return!1},"trySwapSegmentsAcrossTracks"),ye=I((Pe)=>{let Ue=Pe.tracks.length;return Pe.tracks[Ue]={index:Ue,coord:Pe.coord,segments:[]},Ue},"createNewTrack"),Se=I((Pe,Ue)=>{let qe=Pe.pipe.tracks[Pe.trackIndex];qe.segments=qe.segments.filter((Je)=>Je.edgeIndex!==Pe.edgeIndex||Je.segmentIndex!==Pe.segmentIndex),Pe.trackIndex=Ue,Pe.pipe.tracks[Ue].segments.push({edgeIndex:Pe.edgeIndex,segmentIndex:Pe.segmentIndex,from:Pe.from,to:Pe.to})},"moveSegmentToTrack"),Ie=I((Pe,Ue)=>{let qe=k[Pe.edgeIndex];for(let Ke of qe){let Je=x[Ke];if(Je.pipe===Pe.pipe)Se(Je,Ue)}},"moveSegmentChainToTrack"),Ee=I((Pe)=>{let Ue=k[Pe.edgeIndex],qe=Ue.indexOf(x.indexOf(Pe)),Ke=[];if(qe>0)Ke.push(x[Ue[qe-1]]);if(qe{if(Pe.orientation===Ue.orientation)return!1;let qe=Pe.orientation==="horizontal"?Pe:Ue,Ke=Pe.orientation==="horizontal"?Ue:Pe;return Ke.pipe.coord>qe.from&&Ke.pipe.coordKe.from&&qe.pipe.coord{for(let qe of Pe.tracks)if(!qe.segments.some((Je)=>(Je.edgeIndex!==Ue.edgeIndex||Je.segmentIndex!==Ue.segmentIndex)&&oe(Je,Ue)))return qe.index;return-1},"findAvailableTrack"),Xe=I((Pe,Ue)=>{if(Pe.trackIndex===Ue.trackIndex)return oe(Pe,Ue);let qe=Ee(Pe),Ke=Ee(Ue);return qe.some((Je)=>Ke.some((De)=>ze(Je,De)))},"segmentsConflict"),Ye=I((Pe,Ue,qe)=>{if(he(Pe,Ue,Pe.pipe.tracks[Pe.trackIndex],Ue.pipe.tracks[Ue.trackIndex]))return;let Ke=Me(Pe.pipe,Ue);qe(Ue,Ke!==-1?Ke:ye(Pe.pipe))},"resolveTrackConflict"),Qe=I((Pe)=>{let Ue=0;for(let qe=0;qe{if(xt.has(Pe))return xt.get(Pe);let Ue=k[Pe];if(Ue.length===0){let pe={dest:0,deviation:0,base:0,delta:0};return xt.set(Pe,pe),pe}let Ke=x[Ue[0]].pipe.coord,Je=Ke;for(let pe=1;peMath.abs(Ge-Ke)?be:Ge;break}}let De=Math.abs(Je-Ke),le={dest:Je,deviation:De,base:Ke,delta:Je-Ke};return xt.set(Pe,le),le},"getDestInfo"),zt=I(()=>{let Pe=0,Ue=new Map;for(let[Ke,Je]of o.entries()){if(k[Ke].length===0)continue;if(!Je.start)continue;if(!Ue.has(Je.start))Ue.set(Je.start,[]);Ue.get(Je.start).push(Ke)}let qe=I((Ke)=>{let Je=o[Ke];if(!Je.start||!Je.end)return 0;let De=l.get(Je.start),le=l.get(Je.end);if(!De||!le)return 0;let pe=(le.x??0)-(De.x??0),fe=(le.y??0)-(De.y??0);return Math.abs(pe)+Math.abs(fe)},"getEdgeDistance");for(let Ke of Ue.values()){Ke.sort((De,le)=>{let pe=dt(De),fe=dt(le);if(Math.abs(pe.deviation-fe.deviation)>1)return pe.deviation-fe.deviation;if(Math.abs(pe.dest-fe.dest)>1)return pe.dest-fe.dest;let be=qe(De),Ge=qe(le);if(Math.abs(be-Ge)>1)return Ge-be;let ke=k[De].length,we=k[le].length;if(ke!==we)return ke-we;if(ke===1){let Ae=k[De][0],at=k[le][0];if(x[Ae]&&x[at]){let ut=x[Ae],gt=x[at],vt=Math.abs(ut.to-ut.from),ir=Math.abs(gt.to-gt.from);if(Math.abs(vt-ir)>1)return vt-ir}}return 0});let Je=Ke.map((De)=>x[k[De][0]]);Pe+=Qe(Je)}return Pe},"fixSourceHandleCrossings"),Kt=I(()=>{let Pe=0,Ue=new Map;for(let[qe,Ke]of o.entries()){if(k[qe].length===0)continue;if(!Ke.end)continue;if(!Ue.has(Ke.end))Ue.set(Ke.end,[]);Ue.get(Ke.end).push(qe)}for(let qe of Ue.values()){qe.sort((Je,De)=>{let le=I((be)=>{let Ge=k[be];if(Ge.length<2)return 0;let ke=x[Ge[Ge.length-2]];return Math.abs(ke.to-ke.from)},"getDist"),pe=le(Je),fe=le(De);if(Math.abs(pe-fe)>0.1)return pe-fe;return Je-De});let Ke=qe.map((Je)=>x[k[Je][k[Je].length-1]]);Pe+=Qe(Ke)}return Pe},"fixTargetHandleCrossings"),rr=I(()=>{let Pe=0;for(let Ue of d){let qe=[];for(let Ke of Ue.tracks)for(let Je of Ke.segments){let De=k[Je.edgeIndex].find((le)=>x[le].segmentIndex===Je.segmentIndex);if(De!==void 0)qe.push(x[De])}qe.sort((Ke,Je)=>Ke.edgeIndex-Je.edgeIndex||Ke.segmentIndex-Je.segmentIndex);for(let Ke=0;Ke{Ke.segments.forEach((Je)=>{Ue.push({edgeIndex:Je.edgeIndex,segmentIndex:Je.segmentIndex,trackIndex:Ke.index,from:Je.from,to:Je.to})})}),Ue.sort((Ke,Je)=>Ke.from-Je.from);let qe=[];if(Ue.length>0){let Ke=[Ue[0]],Je=Ue[0].to;for(let De=1;DeJe.add(Ae.trackIndex));let De=new Map;Ke.forEach((Ae)=>{let at=dt(Ae.edgeIndex);De.set(Ae.trackIndex,(De.get(Ae.trackIndex)??0)+at.delta)});let le=[...Je].filter((Ae)=>(De.get(Ae)??0)<-1),pe=[...Je].filter((Ae)=>(De.get(Ae)??0)>1),fe=[...Je].filter((Ae)=>Math.abs(De.get(Ae)??0)<=1);le.sort((Ae,at)=>(De.get(at)??0)-(De.get(Ae)??0)),pe.sort((Ae,at)=>(De.get(Ae)??0)-(De.get(at)??0));let be=I((Ae,at)=>{Ke.filter((ut)=>ut.trackIndex===Ae).forEach((ut)=>{let gt=A.has(ut.edgeIndex)?Pe.coord:at;ct.set(`${ut.edgeIndex}-${ut.segmentIndex}`,gt)})},"assignCoord"),Ge=0;for(let Ae of le)Ge++,be(Ae,Pe.coord-Ge*fit);if(fe.length===0&&Je.size>0){let Ae=[...Je].sort((gt,vt)=>Math.abs(De.get(gt)??0)-Math.abs(De.get(vt)??0))[0],at=le.indexOf(Ae);if(at!==-1)le.splice(at,1);let ut=pe.indexOf(Ae);if(ut!==-1)pe.splice(ut,1);fe.push(Ae)}let ke=0;for(let Ae of fe){if(ke===0)be(Ae,Pe.coord);else{let at=ke%2===1?1:-1,ut=Math.ceil(ke/2);be(Ae,Pe.coord+at*ut*fit*0.5)}ke++}let we=0;for(let Ae of pe)we++,be(Ae,Pe.coord+we*fit)}}for(let[Pe,Ue]of o.entries()){let qe=k[Pe]??[];if(qe.length===0)continue;let Ke=[],Je=l.get(Ue.start),De=l.get(Ue.end),{pSrcPort:le,pDstPort:pe}=se(Pe,Je,De),fe=qe.map((ke)=>{let we=x[ke],Ae=ct.get(`${we.edgeIndex}-${we.segmentIndex}`)??we.pipe.coord;return{orient:we.orientation,coord:Ae,from:we.from,to:we.to}});Ke.push(le);for(let ke=0;keoc)Ke.push(yB(we,at));if(vt&>.orient===we.orient){if(Math.abs(we.coord-gt.coord)>oc){let ir=we.orient==="vertical"?(at+gt.from)/2:qit(we,gt);Ke.push(yB(we,ir),yB(gt,ir))}else if(ke===0||ke===fe.length-2)Ke.push(yB(we,qit(we,gt)))}else if(vt)Ke.push(yB(we,gt.coord));else{let ir=Math.abs(we.from-at)oc||Math.abs(be.y-pe.y)>oc)Ke.push(pe);let Ge=[];if(Ke.length>0)Ge.push(Ke[0]);for(let ke=1;keoc||Math.abs(we.y-Ae.y)>oc)Ge.push(we)}Ue.points=Ge}for(let Pe of o){let Ue=Pe.__originalEdge;if(Ue&&Pe.points)Ue.points=Pe.points}e.edges=(e.edges??[]).filter((Pe)=>!Pe.isLayoutOnly);let bt=I((Pe,Ue)=>{let qe=Ue.x??0,Ke=Ue.y??0,Je=Ue.width??0,De=Ue.height??0;if(Je<=0||De<=0)return Pe;let le=qe-Je/2,pe=qe+Je/2,fe=Ke-De/2,be=Ke+De/2;if(Pe.xpe||Pe.ybe)return Pe;let Ge=Pe.x-le,ke=pe-Pe.x,we=Pe.y-fe,Ae=be-Pe.y,at=Math.min(Ge,ke,we,Ae);if(at===Ge)return{x:le,y:Pe.y};if(at===ke)return{x:pe,y:Pe.y};if(at===we)return{x:Pe.x,y:fe};return{x:Pe.x,y:be}},"nodeBoundaryClamp");for(let Pe of e.edges){let Ue=Pe.points;if(!Ue||Ue.length<2)continue;let{start:qe,end:Ke}=Pe,Je=qe?l.get(qe):void 0,De=Ke?l.get(Ke):void 0;if(Je)Ue[0]=bt(Ue[0],Je);if(De)Ue[Ue.length-1]=bt(Ue[Ue.length-1],De)}return e}function BLr(e){return e.direction??"TB"}function FLr(e){let r=_Nr(e),i=e.config.flowchart?.nodeSpacing??40,a=e.config.flowchart?.rankSpacing??100,o=e.config.swimlane?.ignoreCrossLaneEdges??!0,l=e.config.swimlane?.optimizeRanksByCrossings??!0,h=e.config.swimlane?.automaticLaneOrdering??!1,d=BLr(e),{ordered:p,coordinates:m}=DLr(r,{nodeGap:i,layerGap:a,ignoreCrossLaneEdges:o,optimizeRanksByCrossings:l,automaticLaneOrdering:h,direction:d});ENr(r,p,m,{nodeGap:i,layerGap:a});for(let y of e.edges??[])delete y.points;PLr(e,d);for(let y of e.edges??[])if(!y.curve||y.curve==="basis")y.curve="rounded";return JNr(e,d),ZNr(e),d}function $Lr(e){vNr(e);let r=wNr(e);e.nodes=r.nodes,e.edges=r.edges}var uit="__swimlane_default__",tai=21,dNr=20,rai="[EdgeLabelNodes]",t1=0.001,Ro=0.001,nai=0.5,fNr=4,RC=0.000001,iai=8,GSe,aai,ds=0.001,e1=8,zNr,$l,hit,ZL=0.001,sai=8,r2=0.001,pNr=10,zSe=7,dit=0.000001,oai=8,gNr,lai=3,cai,JSe,mNr,CLr=8,oc,uai=8,bB=15,gq=15,VSe=25,nT=20,fit=10,hai;var GLr=Re(()=>{ert();ISe();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();I(bNr,"applySwimlaneLineJumps");I(pit,"topLaneHorizontalPadding");I(yNr,"assignTopLaneTitleRect");I(vNr,"prepareLayoutForSwimlanes");I(_Nr,"toGraphView");I(ENr,"writeBackToLayoutData");I(wNr,"createEdgeLabelNodes");I(Yit,"measuredNodeRect");I(Wit,"nodeBoundsInfoFor");I(iT,"samePoint");I(Fc,"sameX");I(Wc,"sameY");I(zp,"isHorizontalSegment");I(Vp,"isVerticalSegment");I(yv,"overlapLength");I(L3,"sameAxisSegmentOverlapLength");I(bq,"orthogonalSegmentsForPoints");I(ZE,"countOrthogonalBends");I(lu,"dedupeConsecutivePoints");I(jit,"classifyThreeSegmentRoute");I(tTe,"segmentBoundsOverlapRect");I(Kit,"pointInsideRect");I(SNr,"rectContainsRect");I(YSe,"rectsOverlap");I(git,"inflateRect");I(mq,"rectFromCenterSize");I(n2,"rectOfNodeBounds");I(vB,"portForRectSide");I(Xit,"buildOrthogonalPortPath");I(Qit,"buildSameSideTrackPath");I(rTe,"collectRealNodeBounds");I(JL,"collectNodeRectEntries");I(TNr,"collectLayoutNodeRects");I(Zit,"getNodePairGeometry");I(L0,"segmentHitsAnyRect");I(Jit,"orthogonalSegmentsCross");I(xNr,"sameAxisSegmentsOverlap");I(WSe,"segmentConflictsWithAnyEdge");I(ZR,"orthogonalSegmentsStrictlyCross");I(mit,"strictlyBetween");I(CNr,"isCollinearIntermediate");I(kNr,"simplifyPolylineOnce");I(jSe,"orthogonalizePolyline");I(M3,"simplifyPolyline");I(eat,"endpointContextFor");I(ANr,"segmentEnterPoint");I(bit,"clipEndpoint");I(RNr,"clipEdgeEndpointsToNodeBoundaries");I(yit,"snapEndpointToBoundary");I(KSe,"firstDistinctAdjacent");I(XSe,"cornerClearanceRange");I(vit,"clampToCornerClearance");I(INr,"intersectRanges");I(_it,"clearanceRangeForSide");I(QSe,"terminalSideForSegment");I($ie,"isHorizontalSide");I(ONr,"straightClearanceRange");I(Eit,"clearStraightEndpointCornerAxis");I(tat,"clearStraightEndpointCornerConnections");I(NNr,"cornerClearedEndpoint");I(LNr,"moveCollinearEndpointRun");I(wit,"clearEndpointCornerConnection");I(Sit,"borderSideForSegment");I(Tit,"leavesOutward");I(xit,"collapseOwnBorderStub");I(MNr,"snapAndCollapseEndpoints");I(Cit,"prepareEdgeEndpointsForRenderer");I(rat,"buildNodeMap");I(DNr,"resolveTopLevelGroupId");I(kit,"groupDepth");I(nat,"boundsForChildren");I(PNr,"applyGroupBounds");I(BNr,"recomputeNestedGroupBounds");I(ZSe,"mirrorAxis");I(FNr,"applyBtDirectionTransform");I($Nr,"applyLrDirectionTransform");GSe=iai,aai=[0,GSe,-GSe,2*GSe,-2*GSe];I(UNr,"portSwapToLShape");I(GNr,"collapseShortTerminalStub");zNr=I((e)=>typeof e==="string"?e.toUpperCase():"","upperCaseDirection"),$l=bq,hit=I((e,r)=>Fc(e,r,ds)||Wc(e,r,ds),"orthogonallyAligned");I(Ait,"separateSharedRenderedTerminalLanes");I(VNr,"collapseRedundantRectangularDoglegs");I(Rit,"liftObstacleHuggingSameSideRails");I(Iit,"liftTopLaneTitleBandsAboveRails");I(Oit,"shiftLeftLaneTitleBandsLeftOfRails");I(HNr,"swapDestinationTerminalTailsToReduceCrossings");I(qNr,"reassignCrossingExternalRailChannels");I(YNr,"shortcutRedundantOrthogonalJogs");I(WNr,"resolveRenderedOrthogonalCrossings");I(jNr,"simplifyDetouredEdges");I(Nit,"markerClearanceRectFor");I(KNr,"normalizeRect");I(Lit,"labelOverlapsOwnMarker");I(HSe,"anchorLabelsToPolyline");gNr=oai/2;I(Mit,"pairKey");I(XNr,"straightenCollinearSiblingDetours");I(Dit,"nudgeSharedInteriorSubpaths");I(QNr,"segmentsIntersect");I(ZNr,"validateSwimlanesLayout");I(JNr,"postProcessSwimlaneLayout");I(e7,"normalizeGraph");I(iat,"incoming");I(eLr,"buildSuccessorMap");I(aat,"buildSortedSuccessorMap");I(nTe,"buildInDegreeMap");I(sat,"sortedZeroInDegreeNodes");I(iTe,"buildPredecessorSuccessorMaps");I(oat,"buildLayersFromRanks");I(Uie,"topoSortIfAcyclic");I(yq,"buildLayerIndex");I(lat,"countInversions");I(tLr,"removeCycles_DFS");I(rLr,"buildTopLaneMap");I(JR,"createTopLaneResolver");I(aTe,"buildTopLaneOrder");I(cat,"resolveTopLaneOrder");cai={EPSILON:0.000001},JSe={GRAVITY_ITERATIONS:8,MAX_CROSSING_OPTIMIZATION_PASSES:4,DEFAULT_COMPACT_SINGLE_INPUT:!0},mNr={DEFAULT_LAYER_GAP:100,DEFAULT_NODE_GAP:40};I(nLr,"buildDrivingTree");I(iLr,"chooseParent");I(aLr,"buildAdjacency");I(sLr,"assignComponents");I(oLr,"computeBlocks");I(lLr,"popBlock");I(cLr,"computeSubtreeCrossCounts");I(uLr,"annotateMinimumLayers");I(uat,"compareByRankThenId");I(hLr,"emitNodesInTreeOrder");I(dLr,"deduplicateLayers");I(fLr,"createChildOrderer");I(eTe,"buildMultitreeLayerOrder");I(pLr,"countCrossingsBetweenAdjacent");I(Pit,"totalCrossings");I(gLr,"optimizeRanksByCrossings");I(mLr,"adjustCrossLaneSources");I(bLr,"assignLayers_LongestPath");I(yLr,"assignLayers_Gravity");I(vLr,"topoSortByGenerationIfAcyclic");I(_Lr,"assignLayers_LaneAwareCompact");I(ELr,"makeProperLayering");I(Bit,"median");I(Fit,"barycenter");I(wLr,"neighborPositionsFor");I(SLr,"currentOrderTieBreak");I($it,"countCrossingsBetweenAdjacent");I(qSe,"sortByHeuristic");I(Uit,"reorderLayer");I(Git,"transposeImprove");I(TLr,"orderLayers");I(xLr,"assignCoordinates");I(kLr,"hashString");I(ALr,"mulberry32");I(RLr,"deterministicShuffle");I(ILr,"sourceDistance");I(zit,"laneArrangementCost");I(OLr,"buildWeightedLaneEdges");I(Vit,"greedySwitch");I(NLr,"isBetterCandidate");I(LLr,"seedForRestart");I(MLr,"optimizeTopLaneOrder");I(DLr,"sugiyamaLayout");oc=cai.EPSILON;I(Hit,"chooseOrthogonalSide");I(qit,"sharedLineEndpointCoord");I(yB,"pointOnLine");I(PLr,"routeEdgesOrthogonal");I(BLr,"getSwimlaneDirection");I(FLr,"runSwimlaneLayoutCore");I($Lr,"prepareSwimlaneLayout");hai=fB({prepareLayout:$Lr,runLayoutCore:FLr,afterPaint:bNr})});function Gst(e,r){(r==null||r>e.length)&&(r=e.length);for(var i=0,a=Array(r);i=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(p){throw p},f:o}}throw TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,h=!0,d=!1;return{s:function(){i=i.call(e)},n:function(){var p=i.next();return h=p.done,p},e:function(p){d=!0,l=p},f:function(){try{h||i.return==null||i.return()}finally{if(d)throw l}}}}function m8r(e,r,i){return(r=b8r(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function gai(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mai(e,r){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var a,o,l,h,d=[],p=!0,m=!1;try{if(l=(i=i.call(e)).next,r===0){if(Object(i)!==i)return;p=!1}else for(;!(p=(a=l.call(i)).done)&&(d.push(a.value),d.length!==r);p=!0);}catch(y){m=!0,o=y}finally{try{if(!p&&i.return!=null&&(h=i.return(),Object(h)!==h))return}finally{if(m)throw o}}return d}}function bai(){throw TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yai(){throw TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gg(e,r){return dai(e)||mai(e,r)||oot(e,r)||bai()}function ITe(e){return fai(e)||gai(e)||oot(e)||yai()}function vai(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,r);if(typeof a!="object")return a;throw TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function b8r(e){var r=vai(e,"string");return typeof r=="symbol"?r:r+""}function om(e){return om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},om(e)}function oot(e,r){if(e){if(typeof e=="string")return Gst(e,r);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Gst(e,r):void 0}}function dae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fae(){if(HLr)return hat;HLr=1;function e(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}return hat=e,hat}function Gai(){if(qLr)return dat;qLr=1;var e=typeof sTe=="object"&&sTe&&sTe.Object===Object&&sTe;return dat=e,dat}function qTe(){if(YLr)return fat;YLr=1;var e=Gai(),r=typeof self=="object"&&self&&self.Object===Object&&self,i=e||r||Function("return this")();return fat=i,fat}function zai(){if(WLr)return pat;WLr=1;var e=qTe(),r=function(){return e.Date.now()};return pat=r,pat}function Vai(){if(jLr)return gat;jLr=1;var e=/\s/;function r(i){var a=i.length;while(a--&&e.test(i.charAt(a)));return a}return gat=r,gat}function Hai(){if(KLr)return mat;KLr=1;var e=Vai(),r=/^\s+/;function i(a){return a?a.slice(0,e(a)+1).replace(r,""):a}return mat=i,mat}function uot(){if(XLr)return bat;XLr=1;var e=qTe(),r=e.Symbol;return bat=r,bat}function qai(){if(QLr)return yat;QLr=1;var e=uot(),r=Object.prototype,{hasOwnProperty:i,toString:a}=r,o=e?e.toStringTag:void 0;function l(h){var d=i.call(h,o),p=h[o];try{h[o]=void 0;var m=!0}catch(v){}var y=a.call(h);if(m)if(d)h[o]=p;else delete h[o];return y}return yat=l,yat}function Yai(){if(ZLr)return vat;ZLr=1;var e=Object.prototype,r=e.toString;function i(a){return r.call(a)}return vat=i,vat}function k8r(){if(JLr)return _at;JLr=1;var e=uot(),r=qai(),i=Yai(),a="[object Null]",o="[object Undefined]",l=e?e.toStringTag:void 0;function h(d){if(d==null)return d===void 0?o:a;return l&&l in Object(d)?r(d):i(d)}return _at=h,_at}function Wai(){if(e7r)return Eat;e7r=1;function e(r){return r!=null&&typeof r=="object"}return Eat=e,Eat}function pae(){if(t7r)return wat;t7r=1;var e=k8r(),r=Wai(),i="[object Symbol]";function a(o){return typeof o=="symbol"||r(o)&&e(o)==i}return wat=a,wat}function jai(){if(r7r)return Sat;r7r=1;var e=Hai(),r=fae(),i=pae(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;function p(m){if(typeof m=="number")return m;if(i(m))return a;if(r(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=r(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=e(m);var v=l.test(m);return v||h.test(m)?d(m.slice(2),v?2:8):o.test(m)?a:+m}return Sat=p,Sat}function Kai(){if(n7r)return Tat;n7r=1;var e=fae(),r=zai(),i=jai(),a="Expected a function",{max:o,min:l}=Math;function h(d,p,m){var y,v,w,T,x,k,A=0,R=!1,N=!1,L=!0;if(typeof d!="function")throw TypeError(a);if(p=i(p)||0,e(m))R=!!m.leading,N="maxWait"in m,w=N?o(i(m.maxWait)||0,p):w,L="trailing"in m?!!m.trailing:L;function B(K){var J=y,Z=v;return y=v=void 0,A=K,T=d.apply(Z,J),T}function D(K){return A=K,x=setTimeout(H,p),R?B(K):T}function P(K){var J=K-k,Z=K-A,j=p-J;return N?l(j,w-Z):j}function F(K){var J=K-k,Z=K-A;return k===void 0||J>=p||J<0||N&&Z>=w}function H(){var K=r();if(F(K))return W(K);x=setTimeout(H,P(K))}function W(K){if(x=void 0,L&&y)return B(K);return y=v=void 0,T}function X(){if(x!==void 0)clearTimeout(x);A=0,y=k=v=x=void 0}function Q(){return x===void 0?T:W(r())}function Y(){var K=r(),J=F(K);if(y=arguments,v=this,k=K,J){if(x===void 0)return D(k);if(N)return clearTimeout(x),x=setTimeout(H,p),B(k)}if(x===void 0)x=setTimeout(H,p);return T}return Y.cancel=X,Y.flush=Q,Y}return Tat=h,Tat}function esi(e,r,i,a,o){var l=o*Math.PI/180,h=Math.cos(l)*(e-i)-Math.sin(l)*(r-a)+i,d=Math.sin(l)*(e-i)+Math.cos(l)*(r-a)+a;return{x:h,y:d}}function rsi(e,r,i){if(i===0)return e;var a=(r.x1+r.x2)/2,o=(r.y1+r.y2)/2,l=r.w/r.h,h=1/l,d=esi(e.x,e.y,a,o,i),p=tsi(d.x,d.y,a,o,l,h);return{x:p.x,y:p.y}}function fsi(){if(l7r)return vTe.exports;return l7r=1,function(e,r){(function(){var i,a,o,l,h,d,p,m,y,v,w,T,x,k,A;o=Math.floor,v=Math.min,a=function(R,N){if(RN)return 1;return 0},y=function(R,N,L,B,D){var P;if(L==null)L=0;if(D==null)D=a;if(L<0)throw Error("lo must be non-negative");if(B==null)B=R.length;while(LX;0<=X?W++:W--)H.push(W);return H}.apply(this).reverse(),F=[];for(B=0,D=P.length;BQ;0<=Q?++H:--H)Y.push(h(R,L));return Y},k=function(R,N,L,B){var D,P,F;if(B==null)B=a;D=R[L];while(L>N){if(F=L-1>>1,P=R[F],B(D,P)<0){R[L]=P,L=F;continue}break}return R[L]=D},A=function(R,N,L){var B,D,P,F,H;if(L==null)L=a;D=R.length,H=N,P=R[N],B=2*N+1;while(B-1}return Jat=r,Jat}function oli(){if(K7r)return est;K7r=1;var e=QTe();function r(i,a){var o=this.__data__,l=e(o,i);if(l<0)++this.size,o.push([i,a]);else o[l][1]=a;return this}return est=r,est}function lli(){if(X7r)return tst;X7r=1;var e=nli(),r=ili(),i=ali(),a=sli(),o=oli();function l(h){var d=-1,p=h==null?0:h.length;this.clear();while(++d-1&&a%1==0&&a0){var y=o.shift();if(r(y),l.add(y.id()),d)a(o,l,y)}return e}function aDr(e,r,i){if(i.isParent()){var a=i._private.children;for(var o=0;o0&&arguments[0]!==void 0?arguments[0]:vci,r=arguments.length>1?arguments[1]:void 0;for(var i=0;i0)Y=J;else Q=J;while(Math.abs(K)>h&&++Z=l)return N(X,Z);else if(j===0)return Z;else return B(X,Q,Q+m)}var P=!1;function F(){if(P=!0,e!==r||i!==a)L()}var H=function(Q){if(!P)F();if(e===r&&i===a)return Q;if(Q===0)return 0;if(Q===1)return 1;return A(D(Q),r,a)};H.getControlPoints=function(){return[{x:e,y:r},{x:i,y:a}]};var W="generateBezier("+[e,r,i,a]+")";return H.toString=function(){return W},H}function $Mr(e,r,i,a,o){if(a===1)return i;if(r===i)return i;var l=o(r,i,a);if(e==null)return l;if(e.roundValue||e.color)l=Math.round(l);if(e.min!==void 0)l=Math.max(l,e.min);if(e.max!==void 0)l=Math.min(l,e.max);return l}function UMr(e,r){if(e.pfValue!=null||e.value!=null)if(e.pfValue!=null&&(r==null||r.type.units!=="%"))return e.pfValue;else return e.value;else return e}function Eq(e,r,i,a,o){var l=o!=null?o.type:null;if(i<0)i=0;else if(i>1)i=1;var h=UMr(e,o),d=UMr(r,o);if(Sa(h)&&Sa(d))return $Mr(l,h,d,i,a);else if(hd(h)&&hd(d)){var p=[];for(var m=0;m0){if(T==="spring")x.push(h.duration);h.easingImpl=TTe[T].apply(null,x)}else h.easingImpl=TTe[T]}var k=h.easingImpl,A;if(h.duration===0)A=1;else A=(i-p)/h.duration;if(h.applying)A=h.progress;if(A<0)A=0;else if(A>1)A=1;if(h.delay==null){var{startPosition:R,position:N}=h;if(N&&o&&!e.locked()){var L={};if(Hie(R.x,N.x))L.x=Eq(R.x,N.x,A,k);if(Hie(R.y,N.y))L.y=Eq(R.y,N.y,A,k);e.position(L)}var{startPan:B,pan:D}=h,P=l.pan,F=D!=null&&a;if(F){if(Hie(B.x,D.x))P.x=Eq(B.x,D.x,A,k);if(Hie(B.y,D.y))P.y=Eq(B.y,D.y,A,k);e.emit("pan")}var{startZoom:H,zoom:W}=h,X=W!=null&&a;if(X){if(Hie(H,W))l.zoom=nae(l.minZoom,Eq(H,W,A,k),l.maxZoom);e.emit("zoom")}if(F||X)e.emit("viewport");var Q=h.style;if(Q&&Q.length>0&&o){for(var Y=0;Y=0;F--){var H=P[F];H()}P.splice(0,P.length)};for(var N=T.length-1;N>=0;N--){var L=T[N],B=L._private;if(B.stopped){T.splice(N,1),B.hooked=!1,B.playing=!1,B.started=!1,R(B.frames);continue}if(!B.playing&&!B.applying)continue;if(B.playing&&B.applying)B.applying=!1;if(!B.started)Lci(y,L,e);if(Nci(y,L,e,v),B.applying)B.applying=!1;if(R(B.frames),B.step!=null)B.step(e);if(L.completed())T.splice(N,1),B.hooked=!1,B.playing=!1,B.started=!1,R(B.completes);k=!0}if(!v&&T.length===0&&x.length===0)a.push(y);return k}var l=!1;for(var h=0;h0)r.notify("draw",i);else r.notify("draw");i.unmerge(a),r.emit("step")}function SDr(e){this.options=Eo({},Gci,zci,e)}function TDr(e){this.options=Eo({},Vci,e)}function xDr(e){this.options=Eo({},Hci,e)}function axe(e){this.options=Eo({},qci,e),this.options.layout=this;var r=this.options.eles.nodes(),i=this.options.eles.edges(),a=i.filter(function(o){var l=o.source().data("id"),h=o.target().data("id"),d=r.some(function(m){return m.data("id")===l}),p=r.some(function(m){return m.data("id")===h});return!d||!p});this.options.eles=this.options.eles.not(a)}function RDr(e){this.options=Eo({},sui,e)}function Cot(e){this.options=Eo({},oui,e)}function IDr(e){this.options=Eo({},lui,e)}function ODr(e){this.options=Eo({},cui,e)}function NDr(e){this.options=e,this.notifications=0}function DDr(e,r){if(r.radius===0)e.lineTo(r.cx,r.cy);else e.arc(r.cx,r.cy,r.radius,r.startAngle,r.endAngle,r.counterClockwise)}function Aot(e,r,i,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(a===0||r.radius===0)return{cx:r.x,cy:r.y,radius:0,startX:r.x,startY:r.y,stopX:r.x,stopY:r.y,startAngle:void 0,endAngle:void 0,counterClockwise:void 0};return dui(e,r,i,a,o),{cx:Zst,cy:Jst,radius:SB,startX:LDr,startY:MDr,stopX:eot,stopY:tot,startAngle:B3.ang+Math.PI/2*xB,endAngle:aT.ang-Math.PI/2*xB,counterClockwise:kTe}}function PDr(e){var r=[];if(e==null)return;for(var i=0;i5&&arguments[5]!==void 0?arguments[5]:5,h=Math.min(l,a/2,o/2);e.beginPath(),e.moveTo(r+h,i),e.lineTo(r+a-h,i),e.quadraticCurveTo(r+a,i,r+a,i+h),e.lineTo(r+a,i+o-h),e.quadraticCurveTo(r+a,i+o,r+a-h,i+o),e.lineTo(r+h,i+o),e.quadraticCurveTo(r,i+o,r,i+o-h),e.lineTo(r,i+h),e.quadraticCurveTo(r,i,r+h,i),e.closePath()}function o8r(e,r,i){var a=e.createShader(r);if(e.shaderSource(a,i),e.compileShader(a),!e.getShaderParameter(a,e.COMPILE_STATUS))throw Error(e.getShaderInfoLog(a));return a}function nhi(e,r,i){var a=o8r(e,e.VERTEX_SHADER,r),o=o8r(e,e.FRAGMENT_SHADER,i),l=e.createProgram();if(e.attachShader(l,a),e.attachShader(l,o),e.linkProgram(l),!e.getProgramParameter(l,e.LINK_STATUS))throw Error("Could not initialize shaders");return l}function ihi(e,r,i){if(i===void 0)i=r;var a=e.makeOffscreenCanvas(r,i),o=a.context=a.getContext("2d");return a.clear=function(){return o.clearRect(0,0,a.width,a.height)},a.clear(),a}function Oot(e){var r=e.pixelRatio,i=e.cy.zoom(),a=e.cy.pan();return{zoom:i*r,pan:{x:a.x*r,y:a.y*r}}}function ahi(e){var r=e.pixelRatio,i=e.cy.zoom();return i*r}function shi(e,r,i,a,o){var l=a*i+r.x,h=o*i+r.y;return h=Math.round(e.canvasHeight-h),[l,h]}function ohi(e,r){if(r.picking)return!0;else{if(e.pstyle("background-fill").value!=="solid")return!1;if(e.pstyle("background-image").strValue!=="none")return!1;if(e.pstyle("border-width").value===0)return!0;if(e.pstyle("border-opacity").value===0)return!0;if(e.pstyle("border-style").value!=="solid")return!1;return!0}}function lhi(e,r){if(e.length!==r.length)return!1;for(var i=0;i>0&255)/255,i[1]=(e>>8&255)/255,i[2]=(e>>16&255)/255,i[3]=(e>>24&255)/255,i}function chi(e){return e[0]+(e[1]<<8)+(e[2]<<16)+(e[3]<<24)}function uhi(e,r){var i=e.createTexture();return i.buffer=function(a){e.bindTexture(e.TEXTURE_2D,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,a),e.generateMipmap(e.TEXTURE_2D),e.bindTexture(e.TEXTURE_2D,null)},i.deleteTexture=function(){e.deleteTexture(i)},i}function XDr(e,r){switch(r){case"float":return[1,e.FLOAT,4];case"vec2":return[2,e.FLOAT,4];case"vec3":return[3,e.FLOAT,4];case"vec4":return[4,e.FLOAT,4];case"int":return[1,e.INT,4];case"ivec2":return[2,e.INT,4]}}function QDr(e,r,i){switch(r){case e.FLOAT:return new Float32Array(i);case e.INT:return new Int32Array(i)}}function hhi(e,r,i,a,o,l){switch(r){case e.FLOAT:return new Float32Array(i.buffer,l*a,o);case e.INT:return new Int32Array(i.buffer,l*a,o)}}function dhi(e,r,i,a){var o=XDr(e,r),l=gg(o,2),h=l[0],d=l[1],p=QDr(e,d,a),m=e.createBuffer();if(e.bindBuffer(e.ARRAY_BUFFER,m),e.bufferData(e.ARRAY_BUFFER,p,e.STATIC_DRAW),d===e.FLOAT)e.vertexAttribPointer(i,h,d,!1,0,0);else if(d===e.INT)e.vertexAttribIPointer(i,h,d,0,0);return e.enableVertexAttribArray(i),e.bindBuffer(e.ARRAY_BUFFER,null),m}function P3(e,r,i,a){var o=XDr(e,i),l=gg(o,3),h=l[0],d=l[1],p=l[2],m=QDr(e,d,r*h),y=h*p,v=e.createBuffer();if(e.bindBuffer(e.ARRAY_BUFFER,v),e.bufferData(e.ARRAY_BUFFER,r*y,e.DYNAMIC_DRAW),e.enableVertexAttribArray(a),d===e.FLOAT)e.vertexAttribPointer(a,h,d,!1,y,0);else if(d===e.INT)e.vertexAttribIPointer(a,h,d,y,0);e.vertexAttribDivisor(a,1),e.bindBuffer(e.ARRAY_BUFFER,null);var w=Array(r);for(var T=0;TqDr)Rhi(e),r.call(e,l);else Ihi(e),t9r(e,l,Jie.SCREEN)}}{var i=e.matchCanvasSize;e.matchCanvasSize=function(l){i.call(e,l),e.pickingFrameBuffer.setFramebufferAttachmentSizes(e.canvasWidth,e.canvasHeight),e.pickingFrameBuffer.needsDraw=!0}}e.findNearestElements=function(l,h,d,p){return Phi(e,l,h)};{var a=e.invalidateCachedZSortedEles;e.invalidateCachedZSortedEles=function(){a.call(e),e.pickingFrameBuffer.needsDraw=!0}}{var o=e.notify;e.notify=function(l,h){if(o.call(e,l,h),l==="viewport"||l==="bounds")e.pickingFrameBuffer.needsDraw=!0;else if(l==="background")e.drawing.invalidate(h,{type:"node-body"})}}}function Rhi(e){var r=e.data.contexts[e.WEBGL];r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT)}function Ihi(e){var r=function(a){a.save(),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,e.canvasWidth,e.canvasHeight),a.restore()};r(e.data.contexts[e.NODE]),r(e.data.contexts[e.DRAG])}function Ohi(e){var{canvasWidth:r,canvasHeight:i}=e,a=Oot(e),{pan:o,zoom:l}=a,h=Dst();RTe(h,h,[o.x,o.y]),not(h,h,[l,l]);var d=Dst();mhi(d,r,i);var p=Dst();return ghi(p,d,h),p}function e9r(e,r){var{canvasWidth:i,canvasHeight:a}=e,o=Oot(e),{pan:l,zoom:h}=o;r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,i,a),r.translate(l.x,l.y),r.scale(h,h)}function Nhi(e,r){e.drawSelectionRectangle(r,function(i){return e9r(e,i)})}function Lhi(e){var r=e.data.contexts[e.NODE];r.save(),e9r(e,r),r.strokeStyle="rgba(0, 0, 0, 0.3)",r.beginPath(),r.moveTo(-1000,0),r.lineTo(1000,0),r.stroke(),r.beginPath(),r.moveTo(0,-1000),r.lineTo(0,1000),r.stroke(),r.restore()}function Mhi(e){var r=function(o,l,h){var d=o.atlasManager.getAtlasCollection(l),p=e.data.contexts[e.NODE],m=d.atlases;for(var y=0;y=0)B.add(F)}return B}function Phi(e,r,i){var a=Dhi(e,r,i),o=e.getCachedZSortedEles(),l,h,d=a2(a),p;try{for(d.s();!(p=d.n()).done;){var m=p.value,y=o[m];if(!l&&y.isNode())l=y;if(!h&&y.isEdge())h=y;if(l&&h)break}}catch(v){d.e(v)}finally{d.f()}return[l,h].filter(Boolean)}function Ust(e,r,i){var a=e.drawing;if(r+=1,i.isNode())a.drawNode(i,r,"node-underlay"),a.drawNode(i,r,"node-body"),a.drawTexture(i,r,"label"),a.drawNode(i,r,"node-overlay");else a.drawEdgeLine(i,r),a.drawEdgeArrow(i,r,"source"),a.drawEdgeArrow(i,r,"target"),a.drawTexture(i,r,"label"),a.drawTexture(i,r,"edge-source-label"),a.drawTexture(i,r,"edge-target-label")}function t9r(e,r,i){var a;if(e.webglDebug)a=performance.now();var o=e.drawing,l=0;if(i.screen){if(e.data.canvasNeedsRedraw[e.SELECT_BOX])Nhi(e,r)}if(e.data.canvasNeedsRedraw[e.NODE]||i.picking){var h=e.data.contexts[e.WEBGL];if(i.screen)h.clearColor(0,0,0,0),h.enable(h.BLEND),h.blendFunc(h.ONE,h.ONE_MINUS_SRC_ALPHA);else h.disable(h.BLEND);h.clear(h.COLOR_BUFFER_BIT|h.DEPTH_BUFFER_BIT),h.viewport(0,0,h.canvas.width,h.canvas.height);var d=Ohi(e),p=e.getCachedZSortedEles();if(l=p.length,o.startFrame(d,i),i.screen){for(var m=0;m"u")return!1;else return r instanceof HTMLElement},Cai=function(r){return uu(r)&&Sa(r.x1)&&Sa(r.x2)&&Sa(r.y1)&&Sa(r.y2)},kai=function(r){return Sai(r)&&ap(r.then)},Aai=function(){return zLr&&zLr.userAgent.match(/msie|trident|edge/i)},Mq=function(r,i){if(!i)i=function(){if(arguments.length===1)return arguments[0];else if(arguments.length===0)return"undefined";var l=[];for(var h=0;hi)return 1;else return 0},Dai=function(r,i){return-1*S8r(r,i)},Eo,Pai=function(r){if(!(r.length===4||r.length===7)||r[0]!=="#")return;var i=r.length===4,a,o,l,h=16;if(i)a=parseInt(r[1]+r[1],h),o=parseInt(r[2]+r[2],h),l=parseInt(r[3]+r[3],h);else a=parseInt(r[1]+r[2],h),o=parseInt(r[3]+r[4],h),l=parseInt(r[5]+r[6],h);return[a,o,l]},Bai=function(r){var i,a,o,l,h,d,p,m;function y(x,k,A){if(A<0)A+=1;if(A>1)A-=1;if(A<0.16666666666666666)return x+(k-x)*6*A;if(A<0.5)return k;if(A<0.6666666666666666)return x+(k-x)*(0.6666666666666666-A)*6;return x}var v=new RegExp("^"+Oai+"$").exec(r);if(v){if(a=parseInt(v[1]),a<0)a=(360- -1*a%360)%360;else if(a>360)a=a%360;if(a/=360,o=parseFloat(v[2]),o<0||o>100)return;if(o=o/100,l=parseFloat(v[3]),l<0||l>100)return;if(l=l/100,h=v[4],h!==void 0){if(h=parseFloat(h),h<0||h>1)return}if(o===0)d=p=m=Math.round(l*255);else{var w=l<0.5?l*(1+o):l+o-l*o,T=2*l-w;d=Math.round(255*y(T,w,a+0.3333333333333333)),p=Math.round(255*y(T,w,a)),m=Math.round(255*y(T,w,a-0.3333333333333333))}i=[d,p,m,h]}return i},Fai=function(r){var i,a=new RegExp("^"+Rai+"$").exec(r);if(a){i=[];var o=[];for(var l=1;l<=3;l++){var h=a[l];if(h[h.length-1]==="%")o[l]=!0;if(h=parseFloat(h),o[l])h=h/100*255;if(h<0||h>255)return;i.push(Math.floor(h))}var d=o[1]||o[2]||o[3],p=o[1]&&o[2]&&o[3];if(d&&!p)return;var m=a[4];if(m!==void 0){if(m=parseFloat(m),m<0||m>1)return;i.push(m)}}return i},$ai=function(r){return Uai[r.toLowerCase()]},T8r=function(r){return(hd(r)?r:null)||$ai(r)||Pai(r)||Fai(r)||Bai(r)},Uai,x8r=function(r){var{map:i,keys:a}=r,o=a.length;for(var l=0;l1&&arguments[1]!==void 0?arguments[1]:TB,a=i,o;for(;;){if(o=r.next(),o.done)break;a=a*R8r+o.value|0}return a},eae=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:TB;return i*R8r+r|0},tae=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Cq;return(i<<5)+i+r|0},Zai=function(r,i){return r*2097152+i},t7=function(r){return r[0]*2097152+r[1]},oTe=function(r,i){return[eae(r[0],i[0]),tae(r[1],i[1])]},i7r=function(r,i){var a={value:0,done:!1},o=0,l=r.length,h={next:function(){if(o=0;o--)if(r[o]===i)r.splice(o,1)},fot=function(r){r.splice(0,r.length)},lsi=function(r,i){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:!0;if(r===void 0||i===void 0||!lot(r)){_f("An element must have a core reference and parameters set");return}var o=i.group;if(o==null)if(i.data&&i.data.source!=null&&i.data.target!=null)o="edges";else o="nodes";if(o!=="nodes"&&o!=="edges"){_f("An element must be of type `nodes` or `edges`; you specified `"+o+"`");return}this.length=1,this[0]=this;var l=this._private={cy:r,single:!0,data:i.data||{},position:i.position||{x:0,y:0},autoWidth:void 0,autoHeight:void 0,autoPadding:void 0,compoundBoundsClean:!1,listeners:[],group:o,style:{},rstyle:{},styleCxts:[],styleKeys:{},removed:!0,selected:i.selected?!0:!1,selectable:i.selectable===void 0?!0:i.selectable?!0:!1,locked:i.locked?!0:!1,grabbed:!1,grabbable:i.grabbable===void 0?!0:i.grabbable?!0:!1,pannable:i.pannable===void 0?o==="edges"?!0:!1:i.pannable?!0:!1,active:!1,classes:new $q,animation:{current:[],queue:[]},rscratch:{},scratch:i.scratch||{},edges:[],children:[],parent:i.parent&&i.parent.isNode()?i.parent:null,traversalCache:{},backgrounding:!1,bbCache:null,bbCacheShift:{x:0,y:0},bodyBounds:null,overlayBounds:null,labelBounds:{all:null,source:null,target:null,main:null},arrowBounds:{source:null,target:null,"mid-source":null,"mid-target":null}};if(l.position.x==null)l.position.x=0;if(l.position.y==null)l.position.y=0;if(i.renderedPosition){var h=i.renderedPosition,d=r.pan(),p=r.zoom();l.position={x:(h.x-d.x)/p,y:(h.y-d.y)/p}}var m=[];if(hd(i.classes))m=i.classes;else if(Ws(i.classes))m=i.classes.split(/\s+/);for(var y=0,v=m.length;y=0;y--){var v=m[y],w=v[1],T=v[2];if(i[w]===d&&i[T]===p||i[w]===p&&i[T]===d)m.splice(y,1)}for(var x=0;xo){var l=Math.floor(Math.random()*i.length);i=Csi(l,r,i),a--}return i},ksi,Aat,Asi=function(r){return{x:r.x,y:r.y}},WTe=function(r,i,a){return{x:r.x*i+a.x,y:r.y*i+a.y}},P8r=function(r,i,a){return{x:(r.x-a.x)/i,y:(r.y-a.y)/i}},kq=function(r){return{x:r[0],y:r[1]}},Rsi=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=1/0;for(var l=i;l1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=-1/0;for(var l=i;l1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=0,l=0;for(var h=i;h1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r.length,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,h=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(o)r=r.slice(i,a);else{if(a0)r.splice(0,i)}var d=0;for(var p=r.length-1;p>=0;p--){var m=r[p];if(h){if(!isFinite(m))r[p]=-1/0,d++}else r.splice(p,1)}if(l)r.sort(function(w,T){return w-T});var y=r.length,v=Math.floor(y/2);if(y%2!==0)return r[v+1+d];else return(r[v-1+d]+r[v+d])/2},B8r=function(r,i){if(i===0)return r;return B8r(i,r%i)},Lsi=function(r){var i=r[0];for(var a=0;a0)i=B8r(i,r[a]);return i},Msi=function(r){return Math.PI*r/180},lTe=function(r,i){return Math.atan2(i,r)-Math.PI/2},pot,got=function(r){if(r>0)return 1;else if(r<0)return-1;else return 0},AB=function(r,i){return Math.sqrt(wB(r,i))},wB=function(r,i){var a=i.x-r.x,o=i.y-r.y;return a*a+o*o},Dsi=function(r){var i=r.length,a=0;for(var o=0;o=r.x1&&r.y2>=r.y1)return{x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2,w:r.x2-r.x1,h:r.y2-r.y1};else if(r.w!=null&&r.h!=null&&r.w>=0&&r.h>=0)return{x1:r.x1,y1:r.y1,x2:r.x1+r.w,y2:r.y1+r.h,w:r.w,h:r.h}}},Bsi=function(r){return{x1:r.x1,x2:r.x2,w:r.w,y1:r.y1,y2:r.y2,h:r.h}},Fsi=function(r){r.x1=1/0,r.y1=1/0,r.x2=-1/0,r.y2=-1/0,r.w=0,r.h=0},$si=function(r,i){r.x1=Math.min(r.x1,i.x1),r.x2=Math.max(r.x2,i.x2),r.w=r.x2-r.x1,r.y1=Math.min(r.y1,i.y1),r.y2=Math.max(r.y2,i.y2),r.h=r.y2-r.y1},F8r=function(r,i,a){r.x1=Math.min(r.x1,i),r.x2=Math.max(r.x2,i),r.w=r.x2-r.x1,r.y1=Math.min(r.y1,a),r.y2=Math.max(r.y2,a),r.h=r.y2-r.y1},_Te=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return r.x1-=i,r.x2+=i,r.y1-=i,r.y2+=i,r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},ETe=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0],a,o,l,h;if(i.length===1)a=o=l=h=i[0];else if(i.length===2)a=l=i[0],h=o=i[1];else if(i.length===4){var d=gg(i,4);a=d[0],o=d[1],l=d[2],h=d[3]}return r.x1-=h,r.x2+=o,r.y1-=a,r.y2+=l,r.w=r.x2-r.x1,r.h=r.y2-r.y1,r},u7r=function(r,i){r.x1=i.x1,r.y1=i.y1,r.x2=i.x2,r.y2=i.y2,r.w=r.x2-r.x1,r.h=r.y2-r.y1},mot=function(r,i){if(r.x1>i.x2)return!1;if(i.x1>r.x2)return!1;if(r.x2i.y2)return!1;if(i.y1>r.y2)return!1;return!0},s7=function(r,i,a){return r.x1<=i&&i<=r.x2&&r.y1<=a&&a<=r.y2},h7r=function(r,i){return s7(r,i.x,i.y)},$8r=function(r,i){return s7(r,i.x1,i.y1)&&s7(r,i.x2,i.y2)},Usi,U8r=function(r,i,a,o,l,h,d){var p=arguments.length>7&&arguments[7]!==void 0?arguments[7]:"auto",m=p==="auto"?d7(l,h):p,y=l/2,v=h/2;m=Math.min(m,y,v);var w=m!==y,T=m!==v,x;if(w){var k=a-y+m-d,A=o-v-d,R=a+y-m+d,N=A;if(x=o7(r,i,a,o,k,A,R,N,!1),x.length>0)return x}if(T){var L=a+y+d,B=o-v+m-d,D=L,P=o+v-m+d;if(x=o7(r,i,a,o,L,B,D,P,!1),x.length>0)return x}if(w){var F=a-y+m-d,H=o+v+d,W=a+y-m+d,X=H;if(x=o7(r,i,a,o,F,H,W,X,!1),x.length>0)return x}if(T){var Q=a-y-d,Y=o-v+m-d,K=Q,J=o+v-m+d;if(x=o7(r,i,a,o,Q,Y,K,J,!1),x.length>0)return x}var Z;{var j=a-y+m,ee=o-v+m;if(Z=jie(r,i,a,o,j,ee,m+d),Z.length>0&&Z[0]<=j&&Z[1]<=ee)return[Z[0],Z[1]]}{var z=a+y-m,ne=o-v+m;if(Z=jie(r,i,a,o,z,ne,m+d),Z.length>0&&Z[0]>=z&&Z[1]<=ne)return[Z[0],Z[1]]}{var ie=a+y-m,se=o+v-m;if(Z=jie(r,i,a,o,ie,se,m+d),Z.length>0&&Z[0]>=ie&&Z[1]>=se)return[Z[0],Z[1]]}{var oe=a-y+m,he=o+v-m;if(Z=jie(r,i,a,o,oe,he,m+d),Z.length>0&&Z[0]<=oe&&Z[1]>=he)return[Z[0],Z[1]]}return[]},Vsi=function(r,i,a,o,l,h,d){var p=d,m=Math.min(a,l),y=Math.max(a,l),v=Math.min(o,h),w=Math.max(o,h);return m-p<=r&&r<=y+p&&v-p<=i&&i<=w+p},Hsi=function(r,i,a,o,l,h,d,p,m){var y={x1:Math.min(a,d,l)-m,x2:Math.max(a,d,l)+m,y1:Math.min(o,p,h)-m,y2:Math.max(o,p,h)+m};if(ry.x2||iy.y2)return!1;else return!0},qsi=function(r,i,a,o){a-=o;var l=i*i-4*r*a;if(l<0)return[];var h=Math.sqrt(l),d=2*r,p=(-i+h)/d,m=(-i-h)/d;return[p,m]},Ysi=function(r,i,a,o,l){var h=0.00001;if(r===0)r=h;i/=r,a/=r,o/=r;var d,p,m,y,v,w,T,x;if(p=(3*a-i*i)/9,m=-(27*o)+i*(9*a-2*(i*i)),m/=54,d=p*p*p+m*m,l[1]=0,T=i/3,d>0){v=m+Math.sqrt(d),v=v<0?-Math.pow(-v,0.3333333333333333):Math.pow(v,0.3333333333333333),w=m-Math.sqrt(d),w=w<0?-Math.pow(-w,0.3333333333333333):Math.pow(w,0.3333333333333333),l[0]=-T+v+w,T+=(v+w)/2,l[4]=l[2]=-T,T=Math.sqrt(3)*(-w+v)/2,l[3]=T,l[5]=-T;return}if(l[5]=l[3]=0,d===0){x=m<0?-Math.pow(-m,0.3333333333333333):Math.pow(m,0.3333333333333333),l[0]=-T+2*x,l[4]=l[2]=-(x+T);return}p=-p,y=p*p*p,y=Math.acos(m/Math.sqrt(y)),x=2*Math.sqrt(p),l[0]=-T+x*Math.cos(y/3),l[2]=-T+x*Math.cos((y+2*Math.PI)/3),l[4]=-T+x*Math.cos((y+4*Math.PI)/3);return},Wsi=function(r,i,a,o,l,h,d,p){var m=1*a*a-4*a*l+2*a*d+4*l*l-4*l*d+d*d+o*o-4*o*h+2*o*p+4*h*h-4*h*p+p*p,y=9*a*l-3*a*a-3*a*d-6*l*l+3*l*d+9*o*h-3*o*o-3*o*p-6*h*h+3*h*p,v=3*a*a-6*a*l+a*d-a*r+2*l*l+2*l*r-d*r+3*o*o-6*o*h+o*p-o*i+2*h*h+2*h*i-p*i,w=1*a*l-a*a+a*r-l*r+o*h-o*o+o*i-h*i,T=[];Ysi(m,y,v,w,T);var x=0.0000001,k=[];for(var A=0;A<6;A+=2)if(Math.abs(T[A+1])=0&&T[A]<=1)k.push(T[A]);k.push(1),k.push(0);var R=-1,N,L,B;for(var D=0;D=0){if(Bm)return(r-l)*(r-l)+(i-h)*(i-h);return y-w},i2=function(r,i,a){var o,l,h,d,p,m=0;for(var y=0;y=r&&r>=h||o<=r&&r<=h){if(p=(r-o)/(h-o)*(d-l)+l,p>i)m++}else continue}if(m%2===0)return!1;else return!0},nI=function(r,i,a,o,l,h,d,p,m){var y=Array(a.length),v;if(p[0]!=null)if(v=Math.atan(p[1]/p[0]),p[0]<0)v=v+Math.PI/2;else v=-v-Math.PI/2;else v=p;var w=Math.cos(-v),T=Math.sin(-v);for(var x=0;x0){var A=DTe(y,-m);k=MTe(A)}else k=y;return i2(r,i,k)},Ksi=function(r,i,a,o,l,h,d,p){var m=Array(a.length*2);for(var y=0;y=0&&A<=1)N.push(A);if(R>=0&&R<=1)N.push(R);if(N.length===0)return[];var L=N[0]*p[0]+r,B=N[0]*p[1]+i;if(N.length>1)if(N[0]==N[1])return[L,B];else{var D=N[1]*p[0]+r,P=N[1]*p[1]+i;return[L,B,D,P]}else return[L,B]},Rat=function(r,i,a){if(i<=r&&r<=a||a<=r&&r<=i)return r;else if(r<=i&&i<=a||a<=i&&i<=r)return i;else return a},o7=function(r,i,a,o,l,h,d,p,m){var y=r-l,v=a-r,w=d-l,T=i-h,x=o-i,k=p-h,A=w*T-k*y,R=v*T-x*y,N=k*v-w*x;if(N!==0){var L=A/N,B=R/N,D=0.001,P=0-D,F=1+D;if(P<=L&&L<=F&&P<=B&&B<=F)return[r+L*v,i+L*x];else if(!m)return[];else return[r+L*v,i+L*x]}else if(A===0||R===0){if(Rat(r,a,d)===d)return[d,p];if(Rat(r,a,l)===l)return[l,h];if(Rat(l,d,a)===a)return[a,o];return[]}else return[]},Qsi=function(r,i,a,o,l){var h=[],d=o/2,p=l/2,m=i,y=a;h.push({x:m+d*r[0],y:y+p*r[1]});for(var v=1;v0){var k=DTe(v,-p);T=MTe(k)}else T=v}else T=a;var A,R,N,L;for(var B=0;B2){var x=[y[0],y[1]],k=Math.pow(x[0]-r,2)+Math.pow(x[1]-i,2);for(var A=1;A0)d.push(a[p]);if(d.length!==0)l.push(o.collection(d))}return l},doi=function(r,i){for(var a=0;a5&&arguments[5]!==void 0?arguments[5]:goi,d=o,p,m;for(var y=0;ya)return!1}return!0},Eoi=function(r,i,a){for(var o=0;od)d=i[m][y],p=y;l[p].push(r[m])}for(var v=0;v=l.threshold||l.mode==="dendrogram"&&r.length===1)return!1;var x=i[h],k=i[o[h]],A;if(l.mode==="dendrogram")A={left:x,right:k,key:x.key};else A={value:x.value.concat(k.value),key:x.key};r[x.index]=A,r.splice(k.index,1),i[x.key]=A;for(var R=0;Ra[k.key][N.key])p=a[k.key][N.key]}else if(l.linkage==="max"){if(p=a[x.key][N.key],a[x.key][N.key]0)o.push(l);return o},w7r=function(r,i,a){var o=[];for(var l=0;ld)h=m,d=i[l*r+m]}if(h>0)o.push(h)}for(var y=0;ym)p=y,m=v}a[l]=h[p]}return o=w7r(r,i,a),o},S7r=function(r){var i=this.cy(),a=this.nodes(),o=Loi(r),l={};for(var h=0;h=Q)Y=Q,Q=J,K=Z;else if(J>Y)Y=J;for(var j=0;j0?1:0;F[W%o.minIterations*d+oe]=he,se+=he}if(se>0&&(W>=o.minIterations-1||W==o.maxIterations-1)){var ye=0;for(var Se=0;Se1}});var y=Object.keys(i).filter(function(v){return i[v].cutVertex}).map(function(v){return r.getElementById(v)});return{cut:r.spawn(y),components:l}},Goi,hTe=function(){var r=this,i={},a=0,o=[],l=[],h=r.spawn(r),d=function(m){l.push(m),i[m]={index:a,low:a++,explored:!1};var y=r.getElementById(m).connectedEdges().intersection(r);if(y.forEach(function(k){var A=k.target().id();if(A!==m){if(!(A in i))d(A);if(!i[A].explored)i[m].low=Math.min(i[m].low,i[A].low)}}),i[m].index===i[m].low){var v=r.spawn();for(;;){var w=l.pop();if(v.merge(r.getElementById(w)),i[w].low=i[m].index,i[w].explored=!0,w===m)break}var T=v.edgesWith(v),x=v.merge(T);o.push(x),h=h.difference(x)}};return r.forEach(function(p){if(p.isNode()){var m=p.id();if(!(m in i))d(m)}}),{cut:h,components:o}},zoi,W8r,j8r=0,K8r=1,X8r=2,NC=function(r){if(!(this instanceof NC))return new NC(r);if(this.id="Thenable/1.0.7",this.state=j8r,this.fulfillValue=void 0,this.rejectReason=void 0,this.onFulfilled=[],this.onRejected=[],this.proxy={then:this.then.bind(this)},typeof r==="function")r.call(this,this.fulfill.bind(this),this.reject.bind(this))},T7r=function(r,i,a,o){if(r.state===j8r)r.state=i,r[a]=o,Q8r(r);return r},Q8r=function(r){if(r.state===K8r)x7r(r,"onFulfilled",r.fulfillValue);else if(r.state===X8r)x7r(r,"onRejected",r.rejectReason)},x7r=function(r,i,a){if(r[i].length===0)return;var o=r[i];r[i]=[];var l=function(){for(var d=0;d0&&y.edgeCount>0)return uh("The selector `"+r+"` is invalid because it uses both a compound selector and an edge selector"),!1;if(y.edgeCount>1)return uh("The selector `"+r+"` is invalid because it uses multiple edge selectors"),!1;else if(y.edgeCount===1)uh("The selector `"+r+"` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes.")}return!0},qli=function(){if(this.toStringCache!=null)return this.toStringCache;var r=function(y){if(y==null)return"";else return y},i=function(y){if(Ws(y))return'"'+y+'"';else return r(y)},a=function(y){return" "+y+" "},o=function(y,v){var{type:w,value:T}=y;switch(w){case is.GROUP:{var x=r(T);return x.substring(0,x.length-1)}case is.DATA_COMPARE:{var{field:k,operator:A}=y;return"["+k+a(r(A))+i(T)+"]"}case is.DATA_BOOL:{var{operator:R,field:N}=y;return"["+r(R)+N+"]"}case is.DATA_EXIST:{var L=y.field;return"["+L+"]"}case is.META_COMPARE:{var{operator:B,field:D}=y;return"[["+D+a(r(B))+i(T)+"]]"}case is.STATE:return T;case is.ID:return"#"+T;case is.CLASS:return"."+T;case is.PARENT:case is.CHILD:return l(y.parent,v)+a(">")+l(y.child,v);case is.ANCESTOR:case is.DESCENDANT:return l(y.ancestor,v)+" "+l(y.descendant,v);case is.COMPOUND_SPLIT:{var P=l(y.left,v),F=l(y.subject,v),H=l(y.right,v);return P+(P.length>0?" ":"")+F+H}case is.TRUE:return""}},l=function(y,v){return y.checks.reduce(function(w,T,x){return w+(v===y&&x===0?"$":"")+o(T,v)},"")},h="";for(var d=0;d1&&d=0)i=i.replace("!",""),v=!0;if(i.indexOf("@")>=0)i=i.replace("@",""),y=!0;if(l||d||y)p=!l&&!h?"":""+r,m=""+a;if(y)r=p=p.toLowerCase(),a=m=m.toLowerCase();switch(i){case"*=":o=p.indexOf(m)>=0;break;case"$=":o=p.indexOf(m,p.length-m.length)>=0;break;case"^=":o=p.indexOf(m)===0;break;case"=":o=r===a;break;case">":w=!0,o=r>a;break;case">=":w=!0,o=r>=a;break;case"<":w=!0,o=rr.x2?o:r.x2,r.y1=ar.y2?l:r.y2,r.w=r.x2-r.x1,r.h=r.y2-r.y1},i7=function(r,i){if(i==null)return r;return IC(r,i.x1,i.y1,i.x2,i.y2)},zie=function(r,i,a){return _v(r,i,a)},dTe=function(r,i,a){if(i.cy().headless())return;var o=i._private,l=o.rstyle,h=l.arrowWidth/2,d=i.pstyle(a+"-arrow-shape").value,p,m;if(d!=="none"){if(a==="source")p=l.srcX,m=l.srcY;else if(a==="target")p=l.tgtX,m=l.tgtY;else p=l.midX,m=l.midY;var y=o.arrowBounds=o.arrowBounds||{},v=y[a]=y[a]||{};v.x1=p-h,v.y1=m-h,v.x2=p+h,v.y2=m+h,v.w=v.x2-v.x1,v.h=v.y2-v.y1,_Te(v,1),IC(r,v.x1,v.y1,v.x2,v.y2)}},Ist=function(r,i,a){if(i.cy().headless())return;var o;if(a)o=a+"-";else o="";var l=i._private,h=l.rstyle,d=i.pstyle(o+"label").strValue;if(d){var p=i.pstyle("text-halign"),m=i.pstyle("text-valign"),y=zie(h,"labelWidth",a),v=zie(h,"labelHeight",a),w=zie(h,"labelX",a),T=zie(h,"labelY",a),x=i.pstyle(o+"text-margin-x").pfValue,k=i.pstyle(o+"text-margin-y").pfValue,A=i.isEdge(),R=i.pstyle(o+"text-rotation"),N=i.pstyle("text-outline-width").pfValue,L=i.pstyle("text-border-width").pfValue,B=L/2,D=i.pstyle("text-background-padding").pfValue,P=2,F=v,H=y,W=H/2,X=F/2,Q,Y,K,J;if(A)Q=w-W,Y=w+W,K=T-X,J=T+X;else{switch(Bq(p.value)){case"left":Q=w-H,Y=w;break;case"center":Q=w-W,Y=w+W;break;case"right":Q=w,Y=w+H;break}switch(Fq(m.value)){case"top":K=T-F,J=T;break;case"center":K=T-X,J=T+X;break;case"bottom":K=T,J=T+F;break}}var Z=x-Math.max(N,B)-D-P,j=x+Math.max(N,B)+D+P,ee=k-Math.max(N,B)-D-P,z=k+Math.max(N,B)+D+P;Q+=Z,Y+=j,K+=ee,J+=z;var ne=a||"main",ie=l.labelBounds,se=ie[ne]=ie[ne]||{};se.x1=Q,se.y1=K,se.x2=Y,se.y2=J,se.w=Y-Q,se.h=J-K,se.leftPad=Z,se.rightPad=j,se.topPad=ee,se.botPad=z;var oe=A&&R.strValue==="autorotate",he=R.pfValue!=null&&R.pfValue!==0;if(oe||he){var ye=oe?zie(l.rstyle,"labelAngle",a):R.pfValue,Se=Math.cos(ye),Ie=Math.sin(ye),Ee=(Q+Y)/2,ze=(K+J)/2;if(!A){switch(Bq(p.value)){case"left":Ee=Y;break;case"right":Ee=Q;break}switch(Fq(m.value)){case"top":ze=J;break;case"bottom":ze=K;break}}var Me=function(rr,je){return rr=rr-Ee,je=je-ze,{x:rr*Se-je*Ie+Ee,y:rr*Ie+je*Se+ze}},Xe=Me(Q,K),Ye=Me(Q,J),Qe=Me(Y,K),xt=Me(Y,J);Q=Math.min(Xe.x,Ye.x,Qe.x,xt.x),Y=Math.max(Xe.x,Ye.x,Qe.x,xt.x),K=Math.min(Xe.y,Ye.y,Qe.y,xt.y),J=Math.max(Xe.y,Ye.y,Qe.y,xt.y)}var dt=ne+"Rot",zt=ie[dt]=ie[dt]||{};zt.x1=Q,zt.y1=K,zt.x2=Y,zt.y2=J,zt.w=Y-Q,zt.h=J-K,IC(r,Q,K,Y,J),IC(l.labelBounds.all,Q,K,Y,J)}return r},xMr=function(r,i){if(i.cy().headless())return;var a=i.pstyle("outline-opacity").value,o=i.pstyle("outline-width").value,l=i.pstyle("outline-offset").value,h=o+l;uDr(r,i,a,h,"outside",h/2)},uDr=function(r,i,a,o,l,h){if(a===0||o<=0||l==="inside")return;var d=i.cy(),p=d.renderer(),m=p.nodeShapes[p.getNodeShape(i)];if(!m)return;var y=i.position(),{x:v,y:w}=y,T=i.width(),x=i.height();if(m.hasMiterBounds){if(l==="center")o/=2;var k=m.miterBounds(v,w,T,x,o);i7(r,k)}else if(h!=null&&h>0)ETe(r,[h,h,h,h])},nci=function(r,i){if(i.cy().headless())return;var a=i.pstyle("border-opacity").value,o=i.pstyle("border-width").pfValue,l=i.pstyle("border-position").value;uDr(r,i,a,o,l)},ici=function(r,i){var a=r._private.cy,o=a.styleEnabled(),l=a.headless(),h=Ev(),d=r._private,p=r.isNode(),m=r.isEdge(),y,v,w,T,x,k,A=d.rstyle,R=p&&o?r.pstyle("bounds-expansion").pfValue:[0],N=function(Kt){return Kt.pstyle("display").value!=="none"},L=!o||N(r)&&(!m||N(r.source())&&N(r.target()));if(L){var B=0,D=0;if(o&&i.includeOverlays){if(B=r.pstyle("overlay-opacity").value,B!==0)D=r.pstyle("overlay-padding").value}var P=0,F=0;if(o&&i.includeUnderlays){if(P=r.pstyle("underlay-opacity").value,P!==0)F=r.pstyle("underlay-padding").value}var H=Math.max(D,F),W=0,X=0;if(o)W=r.pstyle("width").pfValue,X=W/2;if(p&&i.includeNodes){var Q=r.position();x=Q.x,k=Q.y;var Y=r.outerWidth(),K=Y/2,J=r.outerHeight(),Z=J/2;if(y=x-K,v=x+K,w=k-Z,T=k+Z,IC(h,y,w,v,T),o)xMr(h,r);if(o&&i.includeOutlines&&!l)xMr(h,r);if(o)nci(h,r)}else if(m&&i.includeEdges)if(o&&!l){var j=r.pstyle("curve-style").strValue;if(y=Math.min(A.srcX,A.midX,A.tgtX),v=Math.max(A.srcX,A.midX,A.tgtX),w=Math.min(A.srcY,A.midY,A.tgtY),T=Math.max(A.srcY,A.midY,A.tgtY),y-=X,v+=X,w-=X,T+=X,IC(h,y,w,v,T),j==="haystack"){var ee=A.haystackPts;if(ee&&ee.length===2){if(y=ee[0].x,w=ee[0].y,v=ee[1].x,T=ee[1].y,y>v){var z=y;y=v,v=z}if(w>T){var ne=w;w=T,T=ne}IC(h,y-X,w-X,v+X,T+X)}}else if(j==="bezier"||j==="unbundled-bezier"||a7(j,"segments")||a7(j,"taxi")){var ie;switch(j){case"bezier":case"unbundled-bezier":ie=A.bezierPts;break;case"segments":case"taxi":case"round-segments":case"round-taxi":ie=A.linePts;break}if(ie!=null)for(var se=0;sev){var Ee=y;y=v,v=Ee}if(w>T){var ze=w;w=T,T=ze}y-=X,v+=X,w-=X,T+=X,IC(h,y,w,v,T)}if(o&&i.includeEdges&&m)dTe(h,r,"mid-source"),dTe(h,r,"mid-target"),dTe(h,r,"source"),dTe(h,r,"target");if(o){var Me=r.pstyle("ghost").value==="yes";if(Me){var Xe=r.pstyle("ghost-offset-x").pfValue,Ye=r.pstyle("ghost-offset-y").pfValue;IC(h,h.x1+Xe,h.y1+Ye,h.x2+Xe,h.y2+Ye)}}var Qe=d.bodyBounds=d.bodyBounds||{};if(u7r(Qe,h),ETe(Qe,R),_Te(Qe,1),o)y=h.x1,v=h.x2,w=h.y1,T=h.y2,IC(h,y-H,w-H,v+H,T+H);var xt=d.overlayBounds=d.overlayBounds||{};u7r(xt,h),ETe(xt,R),_Te(xt,1);var dt=d.labelBounds=d.labelBounds||{};if(dt.all!=null)Fsi(dt.all);else dt.all=Ev();if(o&&i.includeLabels){if(i.includeMainLabels)Ist(h,r,null);if(m){if(i.includeSourceLabels)Ist(h,r,"source");if(i.includeTargetLabels)Ist(h,r,"target")}}}if(h.x1=sT(h.x1),h.y1=sT(h.y1),h.x2=sT(h.x2),h.y2=sT(h.y2),h.w=sT(h.x2-h.x1),h.h=sT(h.y2-h.y1),h.w>0&&h.h>0&&L)ETe(h,R),_Te(h,1);return h},hDr=function(r){var i=0,a=function(h){return(h?1:0)<"u"?"undefined":om(Symbol))!=r&&om(Symbol.iterator)!=r;if(i)BTe[Symbol.iterator]=function(){var a=this,o={value:void 0,done:!1},l=0,h=this.length;return m8r({next:function(){if(l2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r===void 0){_f("A collection must have a reference to the core");return}var l=new tI,h=!1;if(!i)i=[];else if(i.length>0&&uu(i[0])&&!hae(i[0])){h=!0;var d=[],p=new $q;for(var m=0,y=i.length;m0)R.remove();if(x!=null){if(uu(x)||hd(x))i.add(x)}i.one("layoutready",function(L){i.notifications(!0),i.emit(L),i.one("load",k),i.emitAndNotify("load")}).one("layoutstop",function(){i.one("done",A),i.emit("done")});var N=Eo({},i._private.options.layout);N.eles=i.elements(),i.layout(N).run()};y([d.style,d.elements],function(T){var x=T[0],k=T[1];if(m.styleEnabled)i.style().append(x);w(k,function(){if(i.startAnimationLoop(),m.ready=!0,ap(d.ready))i.on("ready",d.ready);for(var A=0;A0){d.graphSet.push(H);for(var y=0;yo.count)return 0;else return o.graph},CDr=function(r,i,a,o){var l=o.graphSet[a];if(-10)var v=o.nodeOverlap*y,w=Math.sqrt(d*d+p*p),T=v*d/w,x=v*p/w;else var k=$Te(r,d,p),A=$Te(i,-1*d,-1*p),R=A.x-k.x,N=A.y-k.y,L=R*R+N*N,w=Math.sqrt(L),v=(r.nodeRepulsion+i.nodeRepulsion)/L,T=v*R/w,x=v*N/w;if(!r.isLocked)r.offsetX-=T,r.offsetY-=x;if(!i.isLocked)i.offsetX+=T,i.offsetY+=x;return},eui=function(r,i,a,o){if(a>0)var l=r.maxX-i.minX;else var l=i.maxX-r.minX;if(o>0)var h=r.maxY-i.minY;else var h=i.maxY-r.minY;if(l>=0&&h>=0)return Math.sqrt(l*l+h*h);else return 0},$Te=function(r,i,a){var{positionX:o,positionY:l}=r,h=r.height||1,d=r.width||1,p=a/i,m=h/d,y={};if(i===0&&0a)return y.x=o,y.y=l+h/2,y;if(0i&&-1*m<=p&&p<=m)return y.x=o-d/2,y.y=l-d*a/2/i,y;if(0=m))return y.x=o+h*i/2/a,y.y=l+h/2,y;if(0>a&&(p<=-1*m||p>=m))return y.x=o-h*i/2/a,y.y=l-h/2,y;return y},tui=function(r,i){for(var a=0;aa){var A=i.gravity*T/k,R=i.gravity*x/k;w.offsetX+=A,w.offsetY+=R}}}},nui=function(r,i){var a=[],o=0,l=-1;a.push.apply(a,r.graphSet[0]),l+=r.graphSet[0].length;while(o<=l){var h=a[o++],d=r.idToIndex[h],p=r.layoutNodes[d],m=p.children;if(0a)var l={x:a*r/o,y:a*i/o};else var l={x:r,y:i};return l},ADr=function(r,i){var a=r.parentId;if(a==null)return;var o=i.layoutNodes[i.idToIndex[a]],l=!1;if(o.maxX==null||r.maxX+o.padRight>o.maxX)o.maxX=r.maxX+o.padRight,l=!0;if(o.minX==null||r.minX-o.padLefto.maxY)o.maxY=r.maxY+o.padBottom,l=!0;if(o.minY==null||r.minY-o.padTopR)x+=A+i.componentSpacing,T=0,k=0,A=0}},sui,oui,lui,cui,uui,qMr=function(){},YMr=function(){throw Error("A headless instance can not render images")},kot,NB,UTe,Zst,Jst,B3,aT,WMr,jMr,xB,kTe,eI,_B,SB,D3,Sq,mTe,LDr,MDr,eot,tot,KMr,XMr=function(r,i,a){a.x=i.x-r.x,a.y=i.y-r.y,a.len=Math.sqrt(a.x*a.x+a.y*a.y),a.nx=a.x/a.len,a.ny=a.y/a.len,a.ang=Math.atan2(a.ny,a.nx)},hui=function(r,i){i.x=r.x*-1,i.y=r.y*-1,i.nx=r.nx*-1,i.ny=r.ny*-1,i.ang=r.ang>0?-(Math.PI-r.ang):Math.PI+r.ang},dui=function(r,i,a,o,l){if(r!==KMr?XMr(i,r,B3):hui(aT,B3),XMr(i,a,aT),WMr=B3.nx*aT.ny-B3.ny*aT.nx,jMr=B3.nx*aT.nx-B3.ny*-aT.ny,eI=Math.asin(Math.max(-1,Math.min(1,WMr))),Math.abs(eI)<0.000001){Zst=i.x,Jst=i.y,SB=Sq=0;return}if(xB=1,kTe=!1,jMr<0)if(eI<0)eI=Math.PI+eI;else eI=Math.PI-eI,xB=-1,kTe=!0;else if(eI>0)xB=-1,kTe=!0;if(i.radius!==void 0)Sq=i.radius;else Sq=o;if(_B=eI/2,mTe=Math.min(B3.len/2,aT.len/2),l)if(D3=Math.abs(Math.cos(_B)*Sq/Math.sin(_B)),D3>mTe)D3=mTe,SB=Math.abs(D3*Math.sin(_B)/Math.cos(_B));else SB=Sq;else D3=Math.min(mTe,Sq),SB=Math.abs(D3*Math.sin(_B)/Math.cos(_B));eot=i.x+aT.nx*D3,tot=i.y+aT.ny*D3,Zst=eot-aT.ny*SB*xB,Jst=tot+aT.nx*SB*xB,LDr=i.x+B3.nx*D3,MDr=i.y+B3.ny*D3,KMr=i},cae=0.01,fui,ay,vae,Rot,G3,BDr=function(r,i){var a=Math.atan(i/r);if(r===0&&a<0)a=a*-1;return a},FDr=function(r,i){var a=i.x-r.x,o=i.y-r.y;return BDr(a,o)},gui=function(r,i,a,o){var l=nae(0,o-0.001,1),h=nae(0,o+0.001,1),d=Iq(r,i,a,l),p=Iq(r,i,a,h);return FDr(d,p)},$Dr,QMr=28,ZMr=!1,sxe,oxe,UDr,GDr,zDr=function(r,i){var a=r[0];if(!a||a._private.grabbed===i)return;a._private.grabbed=i,r.updateStyle(!1)},mui=function(r){zDr(r,!0)},bui=function(r){zDr(r,!1)},Vq,iI,_ae,JMr=function(r,i,a){var o=r.beforeRenderCallbacks;for(var l=0;l0){if(o=o||a.position(),l==null||h==null){var T=a.padding();l=a.width()+2*T,h=a.height()+2*T}d.colorFillStyle(i,y[0],y[1],y[2],m),d.nodeShapes[v].draw(i,o.x,o.y,l+p*2,h+p*2,w),i.fill()}}},wv,rhi=100,qie,l8r,bhi,yhi,_hi,Ehi,whi=` float circleSD(vec2 p, float r) { return distance(vec2(0), p) - r; // signed distance } -`,bhi=` +`,Shi=` float rectangleSD(vec2 p, vec2 b) { vec2 d = abs(p)-b; return distance(vec2(0),max(d,0.0)) + min(max(d.x,d.y),0.0); } -`,yhi=` +`,Thi=` float roundRectangleSD(vec2 p, vec2 b, vec4 cr) { cr.xy = (p.x > 0.0) ? cr.xy : cr.zw; cr.x = (p.y > 0.0) ? cr.x : cr.y; vec2 q = abs(p) - b + cr.x; return min(max(q.x, q.y), 0.0) + distance(vec2(0), max(q, 0.0)) - cr.x; } -`,vhi=` +`,xhi=` float ellipseSD(vec2 p, vec2 ab) { p = abs( p ); // symmetry @@ -634,20 +634,20 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho // return signed distance return (dot(p/ab,p/ab)>1.0) ? d : -d; } -`,Xie,$Te,Lst=0,s8r=1,o8r=2,Mst=3,wq=4,gTe=5,Vie=6,Hie=7,_hi,WDr,Dst=function(r,i){return function(a){var o=r(a),l=jDr(a,i);if(l.length>1)return l.map(function(h,d){return"".concat(o,"_").concat(d)});return o}},Pst=function(r,i){return function(a,o){var l=r(a);if(typeof o==="string"){var h=o.indexOf("_");if(h>0){var d=Number(o.substring(h+1)),p=jDr(a,i),m=l.h/p.length,y=m*d,E=l.y1+y;return{x1:l.x1,w:l.w,y1:E,h:m,yOffset:y}}}return l}},y7,l8r,c8r,tot,rot,QDr,t7,yae,JDr,Nhi,lc,Lhi,Mhi,Dhi,t9r,r9r,not=function(){if(arguments.length===2)return i9r.apply(null,arguments);else if(arguments.length===3)return n9r.apply(null,arguments);else if(arguments.length===4)return Bhi.apply(null,arguments);else if(arguments.length===5)return Phi.apply(null,arguments);else _f("Invalid extension access syntax")},UTe=function(){if(!(this instanceof UTe))return new UTe;this.length=0},RB,Fhi="3.34.3",oT=function(r){if(r===void 0)r={};if(uu(r))return new aae(r);else if(Ws(r))return not.apply(not,arguments)};var Rot=Re(()=>{am=typeof window>"u"?null:window,BLr=am?am.navigator:null;am&&am.document;pai=om(""),f8r=om({}),gai=om(function(){}),mai=typeof HTMLElement>"u"?"undefined":om(HTMLElement),sot=Oq(function(e){return e.replace(/([A-Z])/g,function(r){return"-"+r.toLowerCase()})}),GTe=Oq(function(e){return e.replace(/(-\w)/g,function(r){return r[1].toUpperCase()})}),b8r=Oq(function(e,r){return e+r[0].toUpperCase()+r.substring(1)},function(e,r){return e+"$"+r}),Sai="rgb[a]?\\(("+sm+"[%]?)\\s*,\\s*("+sm+"[%]?)\\s*,\\s*("+sm+"[%]?)(?:\\s*,\\s*("+sm+"))?\\)",Tai="rgb[a]?\\((?:"+sm+"[%]?)\\s*,\\s*(?:"+sm+"[%]?)\\s*,\\s*(?:"+sm+"[%]?)(?:\\s*,\\s*(?:"+sm+"))?\\)",xai="hsl[a]?\\(("+sm+")\\s*,\\s*("+sm+"[%])\\s*,\\s*("+sm+"[%])(?:\\s*,\\s*("+sm+"))?\\)",Cai="hsl[a]?\\((?:"+sm+")\\s*,\\s*(?:"+sm+"[%])\\s*,\\s*(?:"+sm+"[%])(?:\\s*,\\s*(?:"+sm+"))?\\)",Eo=Object.assign!=null?Object.assign.bind(Object):function(e){var r=arguments;for(var i=1;i"u"?"undefined":om(Set))!==isi?Set:asi,Jie={breadthFirstSearch:r7r({bfs:!0}),depthFirstSearch:r7r({dfs:!0})};Jie.bfs=Jie.breadthFirstSearch;Jie.dfs=Jie.depthFirstSearch;mTe={exports:{}},ssi=mTe.exports;csi=lsi(),fae=cae(csi),usi=Z1({root:null,weight:function(r){return 1},directed:!1}),hsi={dijkstra:function(r){if(!uu(r)){var i=arguments;r={root:i[0],weight:i[1],directed:i[2]}}var a=usi(r),{root:o,weight:l,directed:h}=a,d=this,p=l,m=Ws(o)?this.filter(o)[0]:o[0],y={},E={},w={},T=this.byGroup(),{nodes:x,edges:k}=T;k.unmergeBy(function(X){return X.isLoop()});var A=function(W){return y[W.id()]},R=function(W,J){y[W.id()]=J,N.updateItem(W)},N=new fae(function(X,W){return A(X)-A(W)});for(var L=0;L0){var P=N.pop(),F=A(P),H=P.id();if(w[H]=F,F===1/0)continue;var K=P.neighborhood().intersect(x);for(var Q=0;Q0){z.unshift(J);while(E[ie]){var le=E[ie];z.unshift(le.edge),z.unshift(le.node),ne=le.node,ie=ne.id()}}return d.spawn(z)}}}},dsi={kruskal:function(r){r=r||function(L){return 1};var i=this.byGroup(),{nodes:a,edges:o}=i,l=a.length,h=Array(l),d=a,p=function(B){for(var D=0;D0){if(D(),F++,B===y){var H=[],K=l,Q=y,Z=R[Q];for(;;){if(H.unshift(K),Z!=null)H.unshift(Z);if(K=A[Q],K==null)break;Q=K.id(),Z=R[Q]}return{found:!0,distance:E[B],path:this.spawn(H),steps:F}}T[B]=!0;var Y=L._private.edges;for(var j=0;jZ)x[Q]=Z,N[Q]=K,L[Q]=D;if(!l){var Y=K*y+H;if(!l&&x[Y]>Z)x[Y]=Z,N[Y]=H,L[Y]=D}}for(var j=0;j1&&arguments[1]!==void 0?arguments[1]:h,ct=L(We),bt=[],Pe=ct;for(;;){if(Pe==null)return i.spawn();var Ge=N(Pe),{edge:qe,pred:Ke}=Ge;if(bt.unshift(Pe[0]),Pe.same(Nt)&&bt.length>0)break;if(qe!=null)bt.unshift(qe);Pe=Ke}return p.spawn(bt)};for(var P=0;Py)y=B},get:function(L){return m[L]}};for(var w=0;w0)X=te.edgesTo(j)[0];else X=j.edgesTo(te)[0];var W=o(X);if(j=j.id(),F[j]>F[Z]+W){if(F[j]=F[Z]+W,H.nodes.indexOf(j)<0)H.push(j);else H.updateItem(j);P[j]=0,D[j]=[]}if(F[j]==F[Z]+W)P[j]=P[j]+P[Z],D[j].push(Z)}else for(var J=0;J0){var le=B.pop();for(var se=0;se=2)return Fie(r,i,a,0,h7r,uoi);else return Fie(r,i,a,0,u7r)},squaredEuclidean:function(r,i,a){return Fie(r,i,a,0,h7r)},manhattan:function(r,i,a){return Fie(r,i,a,0,u7r)},max:function(r,i,a){return Fie(r,i,a,-1/0,hoi)}};Nq["squared-euclidean"]=Nq.squaredEuclidean;Nq.squaredeuclidean=Nq.squaredEuclidean;doi=Z1({k:2,m:2,sensitivityThreshold:0.0001,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),Eoi={kMeans:moi,kMedoids:boi,fuzzyCMeans:p7r,fcm:p7r},woi=Z1({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),Soi={single:"min",complete:"max"},xoi={hierarchicalClustering:m7r,hca:m7r},Coi=Z1({distance:"euclidean",preference:"median",damping:0.8,maxIterations:1000,minIterations:100,attributes:[]}),Noi={affinityPropagation:y7r,ap:y7r},Loi=Z1({root:void 0,directed:!1}),Moi={hierholzer:function(r){if(!uu(r)){var i=arguments;r={root:i[0],directed:i[1]}}var a=Loi(r),{root:o,directed:l}=a,h=this,d=!1,p,m,y;if(o)y=Ws(o)?this.filter(o)[0].id():o[0].id();var E={},w={};if(l)h.forEach(function(N){var L=N.id();if(N.isNode()){var B=N.indegree(!0),D=N.outdegree(!0),P=B-D,F=D-B;if(P==1)if(p)d=!0;else p=L;else if(F==1)if(m)d=!0;else m=L;else if(F>1||P>1)d=!0;E[L]=[],N.outgoers().forEach(function(H){if(H.isEdge())E[L].push(H.id())})}else w[L]=[void 0,N.target().id()]});else h.forEach(function(N){var L=N.id();if(N.isNode()){var B=N.degree(!0);if(B%2)if(!p)p=L;else if(!m)m=L;else d=!0;E[L]=[],N.connectedEdges().forEach(function(D){return E[L].push(D.id())})}else w[L]=[N.source().id(),N.target().id()]});var T={found:!1,trail:void 0};if(d)return T;else if(m&&p){if(l){if(y&&m!=y)return T;y=m}else if(y&&m!=y&&p!=y)return T;else if(!y)y=m}else if(!y)y=h[0].id();var x=function(L){var B=L,D=[L],P,F,H;while(E[B].length){if(P=E[B].shift(),F=w[P][0],H=w[P][1],B!=H)E[H]=E[H].filter(function(K){return K!=P}),B=H;else if(!l&&B!=F)E[F]=E[F].filter(function(K){return K!=P}),B=F;D.unshift(P),D.unshift(B)}return D},k=[],A=[];A=x(y);while(A.length!=1)if(E[A[0]].length==0)k.unshift(h.getElementById(A.shift())),k.unshift(h.getElementById(A.shift()));else A=x(A.shift()).concat(A);k.unshift(h.getElementById(A.shift()));for(var R in E)if(E[R].length)return T;return T.found=!0,T.trail=this.spawn(k,!0),T}},Doi={hopcroftTarjanBiconnected:oTe,htbc:oTe,htb:oTe,hopcroftTarjanBiconnectedComponents:oTe},Poi={tarjanStronglyConnected:lTe,tsc:lTe,tscc:lTe,tarjanStronglyConnectedComponents:lTe},z8r={};[Jie,hsi,dsi,psi,msi,ysi,Esi,Ksi,Aq,Rq,Gst,loi,Eoi,xoi,Noi,Moi,Doi,Poi].forEach(function(e){Eo(z8r,e)});/*! +`,Jie,zTe,Pst=0,h8r=1,d8r=2,Bst=3,xq=4,yTe=5,Yie=6,Wie=7,Chi,ZDr,Fst=function(r,i){return function(a){var o=r(a),l=JDr(a,i);if(l.length>1)return l.map(function(h,d){return"".concat(o,"_").concat(d)});return o}},$st=function(r,i){return function(a,o){var l=r(a);if(typeof o==="string"){var h=o.indexOf("_");if(h>0){var d=Number(o.substring(h+1)),p=JDr(a,i),m=l.h/p.length,y=m*d,v=l.y1+y;return{x1:l.x1,w:l.w,y1:v,h:m,yOffset:y}}}return l}},_7,f8r,p8r,iot,aot,r9r,n7,Eae,i9r,Fhi,lc,$hi,Uhi,Ghi,s9r,o9r,sot=function(){if(arguments.length===2)return c9r.apply(null,arguments);else if(arguments.length===3)return l9r.apply(null,arguments);else if(arguments.length===4)return Vhi.apply(null,arguments);else if(arguments.length===5)return zhi.apply(null,arguments);else _f("Invalid extension access syntax")},VTe=function(){if(!(this instanceof VTe))return new VTe;this.length=0},OB,Hhi="3.34.3",lT=function(r){if(r===void 0)r={};if(uu(r))return new lae(r);else if(Ws(r))return sot.apply(sot,arguments)};var Not=Re(()=>{am=typeof window>"u"?null:window,zLr=am?am.navigator:null;am&&am.document;_ai=om(""),y8r=om({}),Eai=om(function(){}),wai=typeof HTMLElement>"u"?"undefined":om(HTMLElement),cot=Mq(function(e){return e.replace(/([A-Z])/g,function(r){return"-"+r.toLowerCase()})}),HTe=Mq(function(e){return e.replace(/(-\w)/g,function(r){return r[1].toUpperCase()})}),w8r=Mq(function(e,r){return e+r[0].toUpperCase()+r.substring(1)},function(e,r){return e+"$"+r}),Rai="rgb[a]?\\(("+sm+"[%]?)\\s*,\\s*("+sm+"[%]?)\\s*,\\s*("+sm+"[%]?)(?:\\s*,\\s*("+sm+"))?\\)",Iai="rgb[a]?\\((?:"+sm+"[%]?)\\s*,\\s*(?:"+sm+"[%]?)\\s*,\\s*(?:"+sm+"[%]?)(?:\\s*,\\s*(?:"+sm+"))?\\)",Oai="hsl[a]?\\(("+sm+")\\s*,\\s*("+sm+"[%])\\s*,\\s*("+sm+"[%])(?:\\s*,\\s*("+sm+"))?\\)",Nai="hsl[a]?\\((?:"+sm+")\\s*,\\s*(?:"+sm+"[%])\\s*,\\s*(?:"+sm+"[%])(?:\\s*,\\s*(?:"+sm+"))?\\)",Eo=Object.assign!=null?Object.assign.bind(Object):function(e){var r=arguments;for(var i=1;i"u"?"undefined":om(Set))!==usi?Set:hsi,rae={breadthFirstSearch:o7r({bfs:!0}),depthFirstSearch:o7r({dfs:!0})};rae.bfs=rae.breadthFirstSearch;rae.dfs=rae.depthFirstSearch;vTe={exports:{}},dsi=vTe.exports;gsi=psi(),mae=dae(gsi),msi=Z1({root:null,weight:function(r){return 1},directed:!1}),bsi={dijkstra:function(r){if(!uu(r)){var i=arguments;r={root:i[0],weight:i[1],directed:i[2]}}var a=msi(r),{root:o,weight:l,directed:h}=a,d=this,p=l,m=Ws(o)?this.filter(o)[0]:o[0],y={},v={},w={},T=this.byGroup(),{nodes:x,edges:k}=T;k.unmergeBy(function(Z){return Z.isLoop()});var A=function(j){return y[j.id()]},R=function(j,ee){y[j.id()]=ee,N.updateItem(j)},N=new mae(function(Z,j){return A(Z)-A(j)});for(var L=0;L0){var P=N.pop(),F=A(P),H=P.id();if(w[H]=F,F===1/0)continue;var W=P.neighborhood().intersect(x);for(var X=0;X0){z.unshift(ee);while(v[ie]){var se=v[ie];z.unshift(se.edge),z.unshift(se.node),ne=se.node,ie=ne.id()}}return d.spawn(z)}}}},ysi={kruskal:function(r){r=r||function(L){return 1};var i=this.byGroup(),{nodes:a,edges:o}=i,l=a.length,h=Array(l),d=a,p=function(B){for(var D=0;D0){if(D(),F++,B===y){var H=[],W=l,X=y,Q=R[X];for(;;){if(H.unshift(W),Q!=null)H.unshift(Q);if(W=A[X],W==null)break;X=W.id(),Q=R[X]}return{found:!0,distance:v[B],path:this.spawn(H),steps:F}}T[B]=!0;var Y=L._private.edges;for(var K=0;KQ)x[X]=Q,N[X]=W,L[X]=D;if(!l){var Y=W*y+H;if(!l&&x[Y]>Q)x[Y]=Q,N[Y]=H,L[Y]=D}}for(var K=0;K1&&arguments[1]!==void 0?arguments[1]:h,ct=L(je),bt=[],Pe=ct;for(;;){if(Pe==null)return i.spawn();var Ue=N(Pe),{edge:qe,pred:Ke}=Ue;if(bt.unshift(Pe[0]),Pe.same(Nt)&&bt.length>0)break;if(qe!=null)bt.unshift(qe);Pe=Ke}return p.spawn(bt)};for(var P=0;Py)y=B},get:function(L){return m[L]}};for(var w=0;w0)Z=J.edgesTo(K)[0];else Z=K.edgesTo(J)[0];var j=o(Z);if(K=K.id(),F[K]>F[Q]+j){if(F[K]=F[Q]+j,H.nodes.indexOf(K)<0)H.push(K);else H.updateItem(K);P[K]=0,D[K]=[]}if(F[K]==F[Q]+j)P[K]=P[K]+P[Q],D[K].push(Q)}else for(var ee=0;ee0){var se=B.pop();for(var oe=0;oe=2)return Gie(r,i,a,0,m7r,moi);else return Gie(r,i,a,0,g7r)},squaredEuclidean:function(r,i,a){return Gie(r,i,a,0,m7r)},manhattan:function(r,i,a){return Gie(r,i,a,0,g7r)},max:function(r,i,a){return Gie(r,i,a,-1/0,boi)}};Dq["squared-euclidean"]=Dq.squaredEuclidean;Dq.squaredeuclidean=Dq.squaredEuclidean;yoi=Z1({k:2,m:2,sensitivityThreshold:0.0001,distance:"euclidean",maxIterations:10,attributes:[],testMode:!1,testCentroids:null}),koi={kMeans:woi,kMedoids:Soi,fuzzyCMeans:v7r,fcm:v7r},Aoi=Z1({distance:"euclidean",linkage:"min",mode:"threshold",threshold:1/0,addDendrogram:!1,dendrogramDepth:0,attributes:[]}),Roi={single:"min",complete:"max"},Ooi={hierarchicalClustering:E7r,hca:E7r},Noi=Z1({distance:"euclidean",preference:"median",damping:0.8,maxIterations:1000,minIterations:100,attributes:[]}),Foi={affinityPropagation:S7r,ap:S7r},$oi=Z1({root:void 0,directed:!1}),Uoi={hierholzer:function(r){if(!uu(r)){var i=arguments;r={root:i[0],directed:i[1]}}var a=$oi(r),{root:o,directed:l}=a,h=this,d=!1,p,m,y;if(o)y=Ws(o)?this.filter(o)[0].id():o[0].id();var v={},w={};if(l)h.forEach(function(N){var L=N.id();if(N.isNode()){var B=N.indegree(!0),D=N.outdegree(!0),P=B-D,F=D-B;if(P==1)if(p)d=!0;else p=L;else if(F==1)if(m)d=!0;else m=L;else if(F>1||P>1)d=!0;v[L]=[],N.outgoers().forEach(function(H){if(H.isEdge())v[L].push(H.id())})}else w[L]=[void 0,N.target().id()]});else h.forEach(function(N){var L=N.id();if(N.isNode()){var B=N.degree(!0);if(B%2)if(!p)p=L;else if(!m)m=L;else d=!0;v[L]=[],N.connectedEdges().forEach(function(D){return v[L].push(D.id())})}else w[L]=[N.source().id(),N.target().id()]});var T={found:!1,trail:void 0};if(d)return T;else if(m&&p){if(l){if(y&&m!=y)return T;y=m}else if(y&&m!=y&&p!=y)return T;else if(!y)y=m}else if(!y)y=h[0].id();var x=function(L){var B=L,D=[L],P,F,H;while(v[B].length){if(P=v[B].shift(),F=w[P][0],H=w[P][1],B!=H)v[H]=v[H].filter(function(W){return W!=P}),B=H;else if(!l&&B!=F)v[F]=v[F].filter(function(W){return W!=P}),B=F;D.unshift(P),D.unshift(B)}return D},k=[],A=[];A=x(y);while(A.length!=1)if(v[A[0]].length==0)k.unshift(h.getElementById(A.shift())),k.unshift(h.getElementById(A.shift()));else A=x(A.shift()).concat(A);k.unshift(h.getElementById(A.shift()));for(var R in v)if(v[R].length)return T;return T.found=!0,T.trail=this.spawn(k,!0),T}},Goi={hopcroftTarjanBiconnected:uTe,htbc:uTe,htb:uTe,hopcroftTarjanBiconnectedComponents:uTe},zoi={tarjanStronglyConnected:hTe,tsc:hTe,tscc:hTe,tarjanStronglyConnectedComponents:hTe},W8r={};[rae,bsi,ysi,_si,wsi,Tsi,ksi,toi,Oq,Nq,Hst,poi,koi,Ooi,Foi,Uoi,Goi,zoi].forEach(function(e){Eo(W8r,e)});/*! Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable Copyright (c) 2013-2014 Ralf S. Engelschall (http://engelschall.com) Licensed under The MIT License (http://opensource.org/licenses/MIT) -*/IC.prototype={fulfill:function(r){return v7r(this,H8r,"fulfillValue",r)},reject:function(r){return v7r(this,q8r,"rejectReason",r)},then:function(r,i){var a=this,o=new IC;return a.onFulfilled.push(E7r(r,o,"fulfill")),a.onRejected.push(E7r(i,o,"reject")),Y8r(a),o.proxy}};IC.all=function(e){return new IC(function(r,i){var a=Array(e.length),o=0,l=function(p,m){if(a[p]=m,o++,o===e.length)r(a)};for(var h=0;h0}},clearQueue:function(){return function(){var i=this,a=i.length!==void 0,o=a?i:[i],l=this._private.cy||this;if(!l.styleEnabled())return this;for(var h=0;h0)this.spawn(o).updateStyle().emit("class");return i},addClass:function(r){return this.toggleClass(r,!0)},hasClass:function(r){var i=this[0];return i!=null&&i._private.classes.has(r)},toggleClass:function(r,i){if(!hd(r))r=r.match(/\S+/g)||[];var a=this,o=i===void 0,l=[];for(var h=0,d=a.length;h0)this.spawn(l).updateStyle().emit("class");return a},removeClass:function(r){return this.toggleClass(r,!1)},flashClass:function(r,i){var a=this;if(i==null)i=250;else if(i===0)return a;return a.addClass(r),setTimeout(function(){a.removeClass(r)},i),a}};vTe.className=vTe.classNames=vTe.classes;cu={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:sm,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};cu.variable="(?:[\\w-.]|(?:\\\\"+cu.metaChar+"))+";cu.className="(?:[\\w-]|(?:\\\\"+cu.metaChar+"))+";cu.value=cu.string+"|"+cu.number;cu.id=cu.variable;(function(){var e,r,i;e=cu.comparatorOp.split("|");for(i=0;i=0)continue;if(r==="=")continue;cu.comparatorOp+="|\\!"+r}})();is={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},qst=[{selector:":selected",matches:function(r){return r.selected()}},{selector:":unselected",matches:function(r){return!r.selected()}},{selector:":selectable",matches:function(r){return r.selectable()}},{selector:":unselectable",matches:function(r){return!r.selectable()}},{selector:":locked",matches:function(r){return r.locked()}},{selector:":unlocked",matches:function(r){return!r.locked()}},{selector:":visible",matches:function(r){return r.visible()}},{selector:":hidden",matches:function(r){return!r.visible()}},{selector:":transparent",matches:function(r){return r.transparent()}},{selector:":grabbed",matches:function(r){return r.grabbed()}},{selector:":free",matches:function(r){return!r.grabbed()}},{selector:":removed",matches:function(r){return r.removed()}},{selector:":inside",matches:function(r){return!r.removed()}},{selector:":grabbable",matches:function(r){return r.grabbable()}},{selector:":ungrabbable",matches:function(r){return!r.grabbable()}},{selector:":animated",matches:function(r){return r.animated()}},{selector:":unanimated",matches:function(r){return!r.animated()}},{selector:":parent",matches:function(r){return r.isParent()}},{selector:":childless",matches:function(r){return r.isChildless()}},{selector:":child",matches:function(r){return r.isChild()}},{selector:":orphan",matches:function(r){return r.isOrphan()}},{selector:":nonorphan",matches:function(r){return r.isChild()}},{selector:":compound",matches:function(r){if(r.isNode())return r.isParent();else return r.source().isParent()||r.target().isParent()}},{selector:":loop",matches:function(r){return r.isLoop()}},{selector:":simple",matches:function(r){return r.isSimple()}},{selector:":active",matches:function(r){return r.active()}},{selector:":inactive",matches:function(r){return!r.active()}},{selector:":backgrounding",matches:function(r){return r.backgrounding()}},{selector:":nonbackgrounding",matches:function(r){return!r.backgrounding()}}].sort(function(e,r){return Rai(e.selector,r.selector)}),Lli=function(){var e={},r;for(var i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return vot(this,e,r,eDr)};Lq.forEachUp=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return vot(this,e,r,tDr)};Lq.forEachUpAndDown=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return vot(this,e,r,Wli)};Lq.ancestors=Lq.parents;rae=rDr={data:ch.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ch.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ch.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ch.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ch.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ch.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var r=this[0];if(r)return r._private.data.id}};rae.attr=rae.data;rae.removeAttr=rae.removeData;jli=rDr,XTe={};Eo(XTe,{degree:Cst(function(e,r){if(r.source().same(r.target()))return 2;else return 1}),indegree:Cst(function(e,r){if(r.target().same(e))return 1;else return 0}),outdegree:Cst(function(e,r){if(r.source().same(e))return 1;else return 0})});Eo(XTe,{minDegree:bq("degree",function(e,r){return er}),minIndegree:bq("indegree",function(e,r){return er}),minOutdegree:bq("outdegree",function(e,r){return er})});Eo(XTe,{totalDegree:function(r){var i=0,a=this.nodes();for(var o=0;o0,w=E;if(E)y=y[0];var T=w?y.position():{x:0,y:0};if(i!==void 0)m.position(r,i+T[r]);else if(l!==void 0)m.position({x:l.x+T.x,y:l.y+T.y})}else{var x=a.position(),k=d?a.parent():null,A=k&&k.length>0,R=A;if(A)k=k[0];var N=R?k.position():{x:0,y:0};if(l={x:x.x-N.x,y:x.y-N.y},r===void 0)return l;else return l[r]}else if(!h)return;return this}};RC.modelPosition=RC.point=RC.position;RC.modelPositions=RC.points=RC.positions;RC.renderedPoint=RC.renderedPosition;RC.relativePoint=RC.relativePosition;Kli=nDr;Iq=m7={};m7.renderedBoundingBox=function(e){var r=this.boundingBox(e),i=this.cy(),a=i.zoom(),o=i.pan(),l=r.x1*a+o.x,h=r.x2*a+o.x,d=r.y1*a+o.y,p=r.y2*a+o.y;return{x1:l,x2:h,y1:d,y2:p,w:h-l,h:p-d}};m7.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.cy();if(!r.styleEnabled()||!r.hasCompoundNodes())return this;return this.forEachUp(function(i){if(i.isParent()){var a=i._private;if(a.compoundBoundsClean=!1,a.bbCache=null,!e)i.emitAndNotify("bounds")}}),this};m7.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.cy();if(!r.styleEnabled()||!r.hasCompoundNodes())return this;if(!e&&r.batching())return this;function i(h){if(!h.isParent())return;var d=h._private,p=h.children(),m=h.pstyle("compound-sizing-wrt-labels").value==="include",y={width:{val:h.pstyle("min-width").pfValue,left:h.pstyle("min-width-bias-left"),right:h.pstyle("min-width-bias-right")},height:{val:h.pstyle("min-height").pfValue,top:h.pstyle("min-height-bias-top"),bottom:h.pstyle("min-height-bias-bottom")}},E=p.boundingBox({includeLabels:m,includeOverlays:!1,useCache:!1}),w=d.position;if(E.w===0||E.h===0)E={w:h.pstyle("width").pfValue,h:h.pstyle("height").pfValue},E.x1=w.x-E.w/2,E.x2=w.x+E.w/2,E.y1=w.y-E.h/2,E.y2=w.y+E.h/2;function T(K,Q,Z){var Y=0,j=0,te=Q+Z;if(K>0&&te>0)Y=Q/te*K,j=Z/te*K;return{biasDiff:Y,biasComplementDiff:j}}function x(K,Q,Z,Y){if(Z.units==="%")switch(Y){case"width":return K>0?Z.pfValue*K:0;case"height":return Q>0?Z.pfValue*Q:0;case"average":return K>0&&Q>0?Z.pfValue*(K+Q)/2:0;case"min":return K>0&&Q>0?K>Q?Z.pfValue*Q:Z.pfValue*K:0;case"max":return K>0&&Q>0?K>Q?Z.pfValue*K:Z.pfValue*Q:0;default:return 0}else if(Z.units==="px")return Z.pfValue;else return 0}var k=y.width.left.value;if(y.width.left.units==="px"&&y.width.val>0)k=k*100/y.width.val;var A=y.width.right.value;if(y.width.right.units==="px"&&y.width.val>0)A=A*100/y.width.val;var R=y.height.top.value;if(y.height.top.units==="px"&&y.height.val>0)R=R*100/y.height.val;var N=y.height.bottom.value;if(y.height.bottom.units==="px"&&y.height.val>0)N=N*100/y.height.val;var L=T(y.width.val-E.w,k,A),{biasDiff:B,biasComplementDiff:D}=L,P=T(y.height.val-E.h,R,N),{biasDiff:F,biasComplementDiff:H}=P;d.autoPadding=x(E.w,E.h,h.pstyle("padding"),h.pstyle("padding-relative-to").value),d.autoWidth=Math.max(E.w,y.width.val),w.x=(-B+E.x1+E.x2+D)/2,d.autoHeight=Math.max(E.h,y.height.val),w.y=(-F+E.y1+E.y2+H)/2}for(var a=0;a0}},clearQueue:function(){return function(){var i=this,a=i.length!==void 0,o=a?i:[i],l=this._private.cy||this;if(!l.styleEnabled())return this;for(var h=0;h0)this.spawn(o).updateStyle().emit("class");return i},addClass:function(r){return this.toggleClass(r,!0)},hasClass:function(r){var i=this[0];return i!=null&&i._private.classes.has(r)},toggleClass:function(r,i){if(!hd(r))r=r.match(/\S+/g)||[];var a=this,o=i===void 0,l=[];for(var h=0,d=a.length;h0)this.spawn(l).updateStyle().emit("class");return a},removeClass:function(r){return this.toggleClass(r,!1)},flashClass:function(r,i){var a=this;if(i==null)i=250;else if(i===0)return a;return a.addClass(r),setTimeout(function(){a.removeClass(r)},i),a}};wTe.className=wTe.classNames=wTe.classes;cu={metaChar:"[\\!\\\"\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\.\\/\\:\\;\\<\\=\\>\\?\\@\\[\\]\\^\\`\\{\\|\\}\\~]",comparatorOp:"=|\\!=|>|>=|<|<=|\\$=|\\^=|\\*=",boolOp:"\\?|\\!|\\^",string:`"(?:\\\\"|[^"])*"|'(?:\\\\'|[^'])*'`,number:sm,meta:"degree|indegree|outdegree",separator:"\\s*,\\s*",descendant:"\\s+",child:"\\s+>\\s+",subject:"\\$",group:"node|edge|\\*",directedEdge:"\\s+->\\s+",undirectedEdge:"\\s+<->\\s+"};cu.variable="(?:[\\w-.]|(?:\\\\"+cu.metaChar+"))+";cu.className="(?:[\\w-]|(?:\\\\"+cu.metaChar+"))+";cu.value=cu.string+"|"+cu.number;cu.id=cu.variable;(function(){var e,r,i;e=cu.comparatorOp.split("|");for(i=0;i=0)continue;if(r==="=")continue;cu.comparatorOp+="|\\!"+r}})();is={GROUP:0,COLLECTION:1,FILTER:2,DATA_COMPARE:3,DATA_EXIST:4,DATA_BOOL:5,META_COMPARE:6,STATE:7,ID:8,CLASS:9,UNDIRECTED_EDGE:10,DIRECTED_EDGE:11,NODE_SOURCE:12,NODE_TARGET:13,NODE_NEIGHBOR:14,CHILD:15,DESCENDANT:16,PARENT:17,ANCESTOR:18,COMPOUND_SPLIT:19,TRUE:20},jst=[{selector:":selected",matches:function(r){return r.selected()}},{selector:":unselected",matches:function(r){return!r.selected()}},{selector:":selectable",matches:function(r){return r.selectable()}},{selector:":unselectable",matches:function(r){return!r.selectable()}},{selector:":locked",matches:function(r){return r.locked()}},{selector:":unlocked",matches:function(r){return!r.locked()}},{selector:":visible",matches:function(r){return r.visible()}},{selector:":hidden",matches:function(r){return!r.visible()}},{selector:":transparent",matches:function(r){return r.transparent()}},{selector:":grabbed",matches:function(r){return r.grabbed()}},{selector:":free",matches:function(r){return!r.grabbed()}},{selector:":removed",matches:function(r){return r.removed()}},{selector:":inside",matches:function(r){return!r.removed()}},{selector:":grabbable",matches:function(r){return r.grabbable()}},{selector:":ungrabbable",matches:function(r){return!r.grabbable()}},{selector:":animated",matches:function(r){return r.animated()}},{selector:":unanimated",matches:function(r){return!r.animated()}},{selector:":parent",matches:function(r){return r.isParent()}},{selector:":childless",matches:function(r){return r.isChildless()}},{selector:":child",matches:function(r){return r.isChild()}},{selector:":orphan",matches:function(r){return r.isOrphan()}},{selector:":nonorphan",matches:function(r){return r.isChild()}},{selector:":compound",matches:function(r){if(r.isNode())return r.isParent();else return r.source().isParent()||r.target().isParent()}},{selector:":loop",matches:function(r){return r.isLoop()}},{selector:":simple",matches:function(r){return r.isSimple()}},{selector:":active",matches:function(r){return r.active()}},{selector:":inactive",matches:function(r){return!r.active()}},{selector:":backgrounding",matches:function(r){return r.backgrounding()}},{selector:":nonbackgrounding",matches:function(r){return!r.backgrounding()}}].sort(function(e,r){return Dai(e.selector,r.selector)}),$li=function(){var e={},r;for(var i=0;i1&&arguments[1]!==void 0?arguments[1]:!0;return wot(this,e,r,aDr)};Pq.forEachUp=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return wot(this,e,r,sDr)};Pq.forEachUpAndDown=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return wot(this,e,r,Jli)};Pq.ancestors=Pq.parents;aae=oDr={data:ch.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),removeData:ch.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,immutableKeys:{id:!0,source:!0,target:!0,parent:!0},updateStyle:!0}),scratch:ch.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ch.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),rscratch:ch.data({field:"rscratch",allowBinding:!1,allowSetting:!0,settingTriggersEvent:!1,allowGetting:!0}),removeRscratch:ch.removeData({field:"rscratch",triggerEvent:!1}),id:function(){var r=this[0];if(r)return r._private.data.id}};aae.attr=aae.data;aae.removeAttr=aae.removeData;eci=oDr,JTe={};Eo(JTe,{degree:Rst(function(e,r){if(r.source().same(r.target()))return 2;else return 1}),indegree:Rst(function(e,r){if(r.target().same(e))return 1;else return 0}),outdegree:Rst(function(e,r){if(r.source().same(e))return 1;else return 0})});Eo(JTe,{minDegree:_q("degree",function(e,r){return er}),minIndegree:_q("indegree",function(e,r){return er}),minOutdegree:_q("outdegree",function(e,r){return er})});Eo(JTe,{totalDegree:function(r){var i=0,a=this.nodes();for(var o=0;o0,w=v;if(v)y=y[0];var T=w?y.position():{x:0,y:0};if(i!==void 0)m.position(r,i+T[r]);else if(l!==void 0)m.position({x:l.x+T.x,y:l.y+T.y})}else{var x=a.position(),k=d?a.parent():null,A=k&&k.length>0,R=A;if(A)k=k[0];var N=R?k.position():{x:0,y:0};if(l={x:x.x-N.x,y:x.y-N.y},r===void 0)return l;else return l[r]}else if(!h)return;return this}};OC.modelPosition=OC.point=OC.position;OC.modelPositions=OC.points=OC.positions;OC.renderedPoint=OC.renderedPosition;OC.relativePoint=OC.relativePosition;tci=lDr;Lq=y7={};y7.renderedBoundingBox=function(e){var r=this.boundingBox(e),i=this.cy(),a=i.zoom(),o=i.pan(),l=r.x1*a+o.x,h=r.x2*a+o.x,d=r.y1*a+o.y,p=r.y2*a+o.y;return{x1:l,x2:h,y1:d,y2:p,w:h-l,h:p-d}};y7.dirtyCompoundBoundsCache=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.cy();if(!r.styleEnabled()||!r.hasCompoundNodes())return this;return this.forEachUp(function(i){if(i.isParent()){var a=i._private;if(a.compoundBoundsClean=!1,a.bbCache=null,!e)i.emitAndNotify("bounds")}}),this};y7.updateCompoundBounds=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,r=this.cy();if(!r.styleEnabled()||!r.hasCompoundNodes())return this;if(!e&&r.batching())return this;function i(h){if(!h.isParent())return;var d=h._private,p=h.children(),m=h.pstyle("compound-sizing-wrt-labels").value==="include",y={width:{val:h.pstyle("min-width").pfValue,left:h.pstyle("min-width-bias-left"),right:h.pstyle("min-width-bias-right")},height:{val:h.pstyle("min-height").pfValue,top:h.pstyle("min-height-bias-top"),bottom:h.pstyle("min-height-bias-bottom")}},v=p.boundingBox({includeLabels:m,includeOverlays:!1,useCache:!1}),w=d.position;if(v.w===0||v.h===0)v={w:h.pstyle("width").pfValue,h:h.pstyle("height").pfValue},v.x1=w.x-v.w/2,v.x2=w.x+v.w/2,v.y1=w.y-v.h/2,v.y2=w.y+v.h/2;function T(W,X,Q){var Y=0,K=0,J=X+Q;if(W>0&&J>0)Y=X/J*W,K=Q/J*W;return{biasDiff:Y,biasComplementDiff:K}}function x(W,X,Q,Y){if(Q.units==="%")switch(Y){case"width":return W>0?Q.pfValue*W:0;case"height":return X>0?Q.pfValue*X:0;case"average":return W>0&&X>0?Q.pfValue*(W+X)/2:0;case"min":return W>0&&X>0?W>X?Q.pfValue*X:Q.pfValue*W:0;case"max":return W>0&&X>0?W>X?Q.pfValue*W:Q.pfValue*X:0;default:return 0}else if(Q.units==="px")return Q.pfValue;else return 0}var k=y.width.left.value;if(y.width.left.units==="px"&&y.width.val>0)k=k*100/y.width.val;var A=y.width.right.value;if(y.width.right.units==="px"&&y.width.val>0)A=A*100/y.width.val;var R=y.height.top.value;if(y.height.top.units==="px"&&y.height.val>0)R=R*100/y.height.val;var N=y.height.bottom.value;if(y.height.bottom.units==="px"&&y.height.val>0)N=N*100/y.height.val;var L=T(y.width.val-v.w,k,A),{biasDiff:B,biasComplementDiff:D}=L,P=T(y.height.val-v.h,R,N),{biasDiff:F,biasComplementDiff:H}=P;d.autoPadding=x(v.w,v.h,h.pstyle("padding"),h.pstyle("padding-relative-to").value),d.autoWidth=Math.max(v.w,y.width.val),w.x=(-B+v.x1+v.x2+D)/2,d.autoHeight=Math.max(v.h,y.height.val),w.y=(-F+v.y1+v.y2+H)/2}for(var a=0;a=0;d--)h(d);return this};f7.removeAllListeners=function(){return this.removeListener("*")};f7.emit=f7.trigger=function(e,r,i){var a=this.listeners,o=a.length;if(this.emitting++,!hd(r))r=[r];return pci(this,function(l,h){if(i!=null)a=[{event:h.event,type:h.type,namespace:h.namespace,callback:i}],o=a.length;var d=function(){var y=a[p];if(y.type===h.type&&(!y.namespace||y.namespace===h.namespace||y.namespace===dci)&&l.eventMatches(l.context,y,h)){var E=[h];if(r!=null)rsi(E,r);if(l.beforeEmit(l.context,y,h),y.conf&&y.conf.one)l.listeners=l.listeners.filter(function(x){return x!==y});var w=l.callbackContext(l.context,y,h),T=y.callback.apply(w,E);if(l.afterEmit(l.context,y,h),T===!1)h.stopPropagation(),h.preventDefault()}};for(var p=0;p1&&!h){var d=this.length-1,p=this[d],m=p._private.data.id;this[d]=void 0,this[r]=p,l.set(m,{ele:p,index:r})}return this.length--,this},unmergeOne:function(r){r=r[0];var i=this._private,a=r._private.data.id,o=i.map,l=o.get(a);if(!l)return this;var h=l.index;return this.unmergeAt(h),this},unmerge:function(r){var i=this._private.cy;if(!r)return this;if(r&&Ws(r)){var a=r;r=i.mutableElements().filter(a)}for(var o=0;o=0;i--){var a=this[i];if(r(a))this.unmergeAt(i)}return this},map:function(r,i){var a=[],o=this;for(var l=0;la)a=p,o=d}return{value:a,ele:o}},min:function(r,i){var a=1/0,o,l=this;for(var h=0;h=0&&l1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],o=a.cy();if(!o.styleEnabled())return;if(a){if(a._private.styleDirty)a._private.styleDirty=!1,o.style().apply(a);var l=a._private.style[r];if(l!=null)return l;else if(i)return o.style().getDefaultProperty(r);else return null}},numericStyle:function(r){var i=this[0];if(!i.cy().styleEnabled())return;if(i){var a=i.pstyle(r);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(r){var i=this[0];if(!i.cy().styleEnabled())return;if(i)return i.pstyle(r).units},renderedStyle:function(r){var i=this.cy();if(!i.styleEnabled())return this;var a=this[0];if(a)return i.style().getRenderedStyle(a,r)},style:function(r,i){var a=this.cy();if(!a.styleEnabled())return this;var o=!1,l=a.style();if(uu(r)){var h=r;l.applyBypass(this,h,o),this.emitAndNotify("style")}else if(Ws(r))if(i===void 0){var d=this[0];if(d)return l.getStylePropertyValue(d,r);else return}else l.applyBypass(this,r,i,o),this.emitAndNotify("style");else if(r===void 0){var p=this[0];if(p)return l.getRawStyle(p);else return}return this},removeStyle:function(r){var i=this.cy();if(!i.styleEnabled())return this;var a=!1,o=i.style(),l=this;if(r===void 0)for(var h=0;h0)r.push(y[0]);r.push(d[0])}}return this.spawn(r,!0).filter(e)},"neighborhood"),closedNeighborhood:function(r){return this.neighborhood().add(this).filter(r)},openNeighborhood:function(r){return this.neighborhood(r)}});ny.neighbourhood=ny.neighborhood;ny.closedNeighbourhood=ny.closedNeighborhood;ny.openNeighbourhood=ny.openNeighborhood;Eo(ny,{source:sT(function(r){var i=this[0],a;if(i)a=i._private.source||i.cy().collection();return a&&r?a.filter(r):a},"source"),target:sT(function(r){var i=this[0],a;if(i)a=i._private.target||i.cy().collection();return a&&r?a.filter(r):a},"target"),sources:OMr({attr:"source"}),targets:OMr({attr:"target"})});Eo(ny,{edgesWith:sT(NMr(),"edgesWith"),edgesTo:sT(NMr({thisIsSrc:!0}),"edgesTo")});Eo(ny,{connectedEdges:sT(function(e){var r=[],i=this;for(var a=0;a0);return h},component:function(){var r=this[0];return r.cy().mutableElements().components(r)[0]}});ny.componentsOf=ny.components;Cd=VTe.prototype=Q1.prototype=Object.create(Array.prototype);Cd.instanceString=function(){return"collection"};Cd.spawn=function(e,r){return new Q1(this.cy(),e,r)};Cd.spawnSelf=function(){return this.spawn(this)};Cd.cy=function(){return this._private.cy};Cd.renderer=function(){return this._private.cy.renderer()};Cd.element=function(){return this[0]};Cd.collection=function(){if(g8r(this))return this;else return new Q1(this._private.cy,[this])};Cd.unique=function(){return new Q1(this._private.cy,this,!0)};Cd.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)};Cd.getElementById=function(e){e=""+e;var r=this._private.cy,i=this._private.map.get(e);return i?i.ele:new Q1(r)};Cd.$id=Cd.getElementById;Cd.poolIndex=function(){var e=this._private.cy,r=e._private.elements,i=this[0]._private.data.id;return r._private.map.get(i).index};Cd.indexOf=function(e){var r=e[0]._private.data.id;return this._private.map.get(r).index};Cd.indexOfId=function(e){return e=""+e,this._private.map.get(e).index};Cd.json=function(e){var r=this.element(),i=this.cy();if(r==null&&e)return this;if(r==null)return;var a=r._private;if(uu(e)){if(i.startBatch(),e.data){r.data(e.data);var o=a.data;if(r.isEdge()){var l=!1,h={},d=e.data.source,p=e.data.target;if(d!=null&&d!=o.source)h.source=""+d,l=!0;if(p!=null&&p!=o.target)h.target=""+p,l=!0;if(l)r=r.move(h)}else{var m="parent"in e.data,y=e.data.parent;if(m&&(y!=null||o.parent!=null)&&y!=o.parent){if(y===void 0)y=null;if(y!=null)y=""+y;r=r.move({parent:y})}}}if(e.position)r.position(e.position);var E=function(k,A,R){var N=e[k];if(N!=null&&N!==a[k])if(N)r[A]();else r[R]()};if(E("removed","remove","restore"),E("selected","select","unselect"),E("selectable","selectify","unselectify"),E("locked","lock","unlock"),E("grabbable","grabify","ungrabify"),E("pannable","panify","unpanify"),e.classes!=null)r.classes(e.classes);return i.endBatch(),this}else if(e===void 0){var w={data:F3(a.data),position:F3(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};w.classes="";var T=0;return a.classes.forEach(function(x){return w.classes+=T++===0?x:" "+x}),w}};Cd.jsons=function(){var e=[];for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this,a=i.cy(),o=a._private,l=[],h=[],d;for(var p=0,m=i.length;p0){var ne=d.length===i.length?i:new Q1(a,d);for(var ie=0;ie0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this,a=[],o={},l=i._private.cy;function h(te){var X=te._private.edges;for(var W=0;W0){if(e)Z.emitAndNotify("remove");else if(r)Z.emit("remove")}for(var Y=0;Yy&&Math.abs(x.v)>y))break;return!w?m:function(k){return p[k*(p.length-1)|0]}}}(),ETe={linear:function(r,i,a){return r+(i-r)*a},ease:xd(0.25,0.1,0.25,1),"ease-in":xd(0.42,0,1,1),"ease-out":xd(0,0,0.58,1),"ease-in-out":xd(0.42,0,0.58,1),"ease-in-sine":xd(0.47,0,0.745,0.715),"ease-out-sine":xd(0.39,0.575,0.565,1),"ease-in-out-sine":xd(0.445,0.05,0.55,0.95),"ease-in-quad":xd(0.55,0.085,0.68,0.53),"ease-out-quad":xd(0.25,0.46,0.45,0.94),"ease-in-out-quad":xd(0.455,0.03,0.515,0.955),"ease-in-cubic":xd(0.55,0.055,0.675,0.19),"ease-out-cubic":xd(0.215,0.61,0.355,1),"ease-in-out-cubic":xd(0.645,0.045,0.355,1),"ease-in-quart":xd(0.895,0.03,0.685,0.22),"ease-out-quart":xd(0.165,0.84,0.44,1),"ease-in-out-quart":xd(0.77,0,0.175,1),"ease-in-quint":xd(0.755,0.05,0.855,0.06),"ease-out-quint":xd(0.23,1,0.32,1),"ease-in-out-quint":xd(0.86,0,0.07,1),"ease-in-expo":xd(0.95,0.05,0.795,0.035),"ease-out-expo":xd(0.19,1,0.22,1),"ease-in-out-expo":xd(1,0,0,1),"ease-in-circ":xd(0.6,0.04,0.98,0.335),"ease-out-circ":xd(0.075,0.82,0.165,1),"ease-in-out-circ":xd(0.785,0.135,0.15,0.86),spring:function(r,i,a){if(a===0)return ETe.linear;var o=xci(r,i,a);return function(l,h,d){return l+(h-l)*o(d)}},"cubic-bezier":xd};Aci={animate:ch.animate(),animation:ch.animation(),animated:ch.animated(),clearQueue:ch.clearQueue(),delay:ch.delay(),delayAnimation:ch.delayAnimation(),stop:ch.stop(),addToAnimationPool:function(r){var i=this;if(!i.styleEnabled())return;i._private.aniEles.merge(r)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var r=this;if(r._private.animationsRunning=!0,!r.styleEnabled())return;function i(){if(!r._private.animationsRunning)return;RTe(function(l){PMr(l,r),i()})}var a=r.renderer();if(a&&a.beforeRender)a.beforeRender(function(l,h){PMr(h,r)},a.beforeRenderPriorities.animations);else i()}},Rci={qualifierCompare:function(r,i){if(r==null||i==null)return r==null&&i==null;else return r.sameText(i)},eventMatches:function(r,i,a){var o=i.qualifier;if(o!=null)return r!==a.target&&lae(a.target)&&o.matches(a.target);return!0},addEventFields:function(r,i){i.cy=r,i.target=r},callbackContext:function(r,i,a){return i.qualifier!=null?a.target:r}},bDr={createEmitter:function(){var r=this._private;if(!r.emitter)r.emitter=new QTe(Rci,this);return this},emitter:function(){return this._private.emitter},on:function(r,i,a){return this.emitter().on(r,dTe(i),a),this},removeListener:function(r,i,a){return this.emitter().removeListener(r,dTe(i),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(r,i,a){return this.emitter().one(r,dTe(i),a),this},once:function(r,i,a){return this.emitter().one(r,dTe(i),a),this},emit:function(r,i){return this.emitter().emit(r,i),this},emitAndNotify:function(r,i){return this.emit(r),this.notify(r,i),this}};ch.eventAliasesOn(bDr);Wst={png:function(r){var i=this._private.renderer;return r=r||{},i.png(r)},jpg:function(r){var i=this._private.renderer;return r=r||{},r.bg=r.bg||"#fff",i.jpg(r)}};Wst.jpeg=Wst.jpg;wTe={layout:function(r){var i=this;if(r==null){_f("Layout options must be specified to make a layout");return}if(r.name==null){_f("A `name` must be specified to make a layout");return}var a=r.name,o=i.extension("layout",a);if(o==null){_f("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var l;if(Ws(r.eles))l=i.$(r.eles);else l=r.eles!=null?r.eles:i.$();var h=new o(Eo({},r,{cy:i,eles:l}));return h}};wTe.createLayout=wTe.makeLayout=wTe.layout;Ici={notify:function(r,i){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var o=a.batchNotifications[r]=a.batchNotifications[r]||this.collection();if(i!=null)o.merge(i);return}if(!a.notificationsEnabled)return;var l=this.renderer();if(this.destroyed()||!l)return;l.notify(r,i)},notifications:function(r){var i=this._private;if(r===void 0)return i.notificationsEnabled;else i.notificationsEnabled=r?!0:!1;return this},noNotifications:function(r){this.notifications(!1),r(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var r=this._private;if(r.batchCount==null)r.batchCount=0;if(r.batchCount===0)r.batchStyleEles=this.collection(),r.batchNotifications={};return r.batchCount++,this},endBatch:function(){var r=this._private;if(r.batchCount===0)return this;if(r.batchCount--,r.batchCount===0){r.batchStyleEles.updateStyle();var i=this.renderer();Object.keys(r.batchNotifications).forEach(function(a){var o=r.batchNotifications[a];if(o.empty())i.notify(a);else i.notify(a,o)})}return this},batch:function(r){return this.startBatch(),r(),this.endBatch(),this},batchData:function(r){var i=this;return this.batch(function(){var a=Object.keys(r);for(var o=0;o0)i.removeChild(i.childNodes[0])}r._private.renderer=null,r.mutableElements().forEach(function(a){var o=a._private;o.rscratch={},o.rstyle={},o.animation.current=[],o.animation.queue=[]})},onRender:function(r){return this.on("render",r)},offRender:function(r){return this.off("render",r)}};jst.invalidateDimensions=jst.resize;STe={collection:function(r,i){if(Ws(r))return this.$(r);else if(JE(r))return r.collection();else if(hd(r)){if(!i)i={};return new Q1(this,r,i.unique,i.removed)}return new Q1(this)},nodes:function(r){var i=this.$(function(a){return a.isNode()});if(r)return i.filter(r);return i},edges:function(r){var i=this.$(function(a){return a.isEdge()});if(r)return i.filter(r);return i},$:function(r){var i=this._private.elements;if(r)return i.filter(r);else return i.spawnSelf()},mutableElements:function(){return this._private.elements}};STe.elements=STe.filter=STe.$;i1={};i1.apply=function(e){var r=this,i=r._private,a=i.cy,o=a.collection();for(var l=0;l0;if(w||E&&T){var x=void 0;if(w&&T)x=m.properties;else if(w)x=m.properties;else if(T)x=m.mappedProperties;for(var k=0;k1)B=1;if(d.color){var P=a.valueMin[0],F=a.valueMax[0],H=a.valueMin[1],K=a.valueMax[1],Q=a.valueMin[2],Z=a.valueMax[2],Y=a.valueMin[3]==null?1:a.valueMin[3],j=a.valueMax[3]==null?1:a.valueMax[3],te=[Math.round(P+(F-P)*B),Math.round(H+(K-H)*B),Math.round(Q+(Z-Q)*B),Math.round(Y+(j-Y)*B)];l={bypass:a.bypass,name:a.name,value:te,strValue:"rgb("+te[0]+", "+te[1]+", "+te[2]+")"}}else if(d.number){var X=a.valueMin+(a.valueMax-a.valueMin)*B;l=this.parse(a.name,X,a.bypass,w)}else return!1;if(!l)return k(),!1;l.mapping=a,a=l;break}case h.data:{var W=a.field.split("."),J=E.data;for(var z=0;z0&&l>0){var d={},p=!1;for(var m=0;m0)e.delayAnimation(h).play().promise().then(L);else L()}).then(function(){return e.animation({style:d,duration:l,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){i.removeBypasses(e,o),e.emitAndNotify("style"),a.transitioning=!1})}else if(a.transitioning)this.removeBypasses(e,o),e.emitAndNotify("style"),a.transitioning=!1};i1.checkTrigger=function(e,r,i,a,o,l){var h=this.properties[r],d=o(h);if(e.removed())return;if(d!=null&&d(i,a,e))l(h)};i1.checkZOrderTrigger=function(e,r,i,a){var o=this;this.checkTrigger(e,r,i,a,function(l){return l.triggersZOrder},function(){o._private.cy.notify("zorder",e)})};i1.checkBoundsTrigger=function(e,r,i,a){this.checkTrigger(e,r,i,a,function(o){return o.triggersBounds},function(o){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})};i1.checkConnectedEdgesBoundsTrigger=function(e,r,i,a){this.checkTrigger(e,r,i,a,function(o){return o.triggersBoundsOfConnectedEdges},function(o){e.connectedEdges().forEach(function(l){l.dirtyBoundingBoxCache()})})};i1.checkParallelEdgesBoundsTrigger=function(e,r,i,a){this.checkTrigger(e,r,i,a,function(o){return o.triggersBoundsOfParallelEdges},function(o){e.parallelEdges().forEach(function(l){l.dirtyBoundingBoxCache()})})};i1.checkTriggers=function(e,r,i,a){e.dirtyStyleCache(),this.checkZOrderTrigger(e,r,i,a),this.checkBoundsTrigger(e,r,i,a),this.checkConnectedEdgesBoundsTrigger(e,r,i,a),this.checkParallelEdgesBoundsTrigger(e,r,i,a)};gae={};gae.applyBypass=function(e,r,i,a){var o=this,l=[],h=!0;if(r==="*"||r==="**"){if(i!==void 0)for(var d=0;do.length)a=a.substr(o.length);else a=""}function p(){if(l.length>h.length)l=l.substr(h.length);else l=""}for(;;){var m=a.match(/^\s*$/);if(m)break;var y=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!y){uh("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}o=y[0];var E=y[1];if(E!=="core"){var w=new h7(E);if(w.invalid){uh("Skipping parsing of block: Invalid selector found in string stylesheet: "+E),d();continue}}var T=y[2],x=!1;l=T;var k=[];for(;;){var A=l.match(/^\s*$/);if(A)break;var R=l.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!R){uh("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+T),x=!0;break}h=R[0];var N=R[1],L=R[2],B=r.properties[N];if(!B){uh("Skipping property: Invalid property name in: "+h),p();continue}var D=i.parse(N,L);if(!D){uh("Skipping property: Invalid property definition in: "+h),p();continue}k.push({name:N,val:L}),p()}if(x){d();break}i.selector(E);for(var P=0;P=7&&r[0]==="d"&&(y=new RegExp(d.data.regex).exec(r))){if(i)return!1;var w=d.data;return{name:e,value:y,strValue:""+r,mapped:w,field:y[1],bypass:i}}else if(r.length>=10&&r[0]==="m"&&(E=new RegExp(d.mapData.regex).exec(r))){if(i)return!1;if(m.multiple)return!1;var T=d.mapData;if(!(m.color||m.number))return!1;var x=this.parse(e,E[4]);if(!x||x.mapped)return!1;var k=this.parse(e,E[5]);if(!k||k.mapped)return!1;if(x.pfValue===k.pfValue||x.strValue===k.strValue)return uh("`"+e+": "+r+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+x.strValue+"`"),this.parse(e,x.strValue);else if(m.color){var A=x.value,R=k.value,N=A[0]===R[0]&&A[1]===R[1]&&A[2]===R[2]&&(A[3]===R[3]||(A[3]==null||A[3]===1)&&(R[3]==null||R[3]===1));if(N)return!1}return{name:e,value:E,strValue:""+r,mapped:T,field:E[1],fieldMin:parseFloat(E[2]),fieldMax:parseFloat(E[3]),valueMin:x.value,valueMax:k.value,bypass:i}}if(m.multiple&&a!=="multiple"){var L;if(p)L=r.split(/\s+/);else if(hd(r))L=r;else L=[r];if(m.evenMultiple&&L.length%2!==0)return null;var B=[],D=[],P=[],F="",H=!1;for(var K=0;K0?" ":"")+Q.strValue}if(m.validate&&!m.validate(B,D))return null;if(m.singleEnum&&H)if(B.length===1&&Ws(B[0]))return{name:e,value:B[0],strValue:B[0],bypass:i};else return null;return{name:e,value:B,pfValue:P,strValue:F,bypass:i,units:D}}var Z=function(){for(var Me=0;Mem.max||m.strictMax&&r===m.max))return null;var W={name:e,value:r,strValue:""+r+(Y?Y:""),units:Y,bypass:i};if(m.unitless||Y!=="px"&&Y!=="em")W.pfValue=r;else W.pfValue=Y==="px"||!Y?r:this.getEmSizeInPixels()*r;if(Y==="ms"||Y==="s")W.pfValue=Y==="ms"?r:1000*r;if(Y==="deg"||Y==="rad")W.pfValue=Y==="rad"?r:Asi(r);if(Y==="%")W.pfValue=r/100;return W}else if(m.propList){var J=[],z=""+r;if(z==="none");else{var ne=z.split(/\s*,\s*|\s+/);for(var ie=0;ie0&&d>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){p=Math.min((h-2*i)/a.w,(d-2*i)/a.h),p=p>this._private.maxZoom?this._private.maxZoom:p,p=p=a.minZoom)a.maxZoom=i;return this},minZoom:function(r){if(r===void 0)return this._private.minZoom;else return this.zoomRange({min:r})},maxZoom:function(r){if(r===void 0)return this._private.maxZoom;else return this.zoomRange({max:r})},getZoomedViewport:function(r){var i=this._private,{pan:a,zoom:o}=i,l,h,d=!1;if(!i.zoomingEnabled)d=!0;if(Sa(r))h=r;else if(uu(r)){if(h=r.level,r.position!=null)l=HTe(r.position,o,a);else if(r.renderedPosition!=null)l=r.renderedPosition;if(l!=null&&!i.panningEnabled)d=!0}if(h=h>i.maxZoom?i.maxZoom:h,h=hi.maxZoom||!i.zoomingEnabled)h=!0;else i.zoom=p,l.push("zoom")}if(o&&(!h||!r.cancelOnFailedZoom)&&i.panningEnabled){var m=r.pan;if(Sa(m.x))i.pan.x=m.x,d=!1;if(Sa(m.y))i.pan.y=m.y,d=!1;if(!d)l.push("pan")}if(l.length>0)l.push("viewport"),this.emit(l.join(" ")),this.notify("viewport");return this},center:function(r){var i=this.getCenterPan(r);if(i)this._private.pan=i,this.emit("pan viewport"),this.notify("viewport");return this},getCenterPan:function(r,i){if(!this._private.panningEnabled)return;if(Ws(r)){var a=r;r=this.mutableElements().filter(a)}else if(!JE(r))r=this.mutableElements();if(r.length===0)return;var o=r.boundingBox(),l=this.width(),h=this.height();i=i===void 0?this._private.zoom:i;var d={x:(l-i*(o.x1+o.x2))/2,y:(h-i*(o.y1+o.y2))/2};return d},reset:function(){if(!this._private.panningEnabled||!this._private.zoomingEnabled)return this;return this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var r=this._private,i=r.container,a=this;return r.sizeCache=r.sizeCache||(i?function(){var o=a.window().getComputedStyle(i),l=function(d){return parseFloat(o.getPropertyValue(d))};return{width:i.clientWidth-l("padding-left")-l("padding-right"),height:i.clientHeight-l("padding-top")-l("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var r=this._private.pan,i=this._private.zoom,a=this.renderedExtent(),o={x1:(a.x1-r.x)/i,x2:(a.x2-r.x)/i,y1:(a.y1-r.y)/i,y2:(a.y2-r.y)/i};return o.w=o.x2-o.x1,o.h=o.y2-o.y1,o},renderedExtent:function(){var r=this.width(),i=this.height();return{x1:0,y1:0,x2:r,y2:i,w:r,h:i}},multiClickDebounceTime:function(r){if(r)this._private.multiClickDebounceTime=r;else return this._private.multiClickDebounceTime;return this}};AB.centre=AB.center;AB.autolockNodes=AB.autolock;AB.autoungrabifyNodes=AB.autoungrabify;iae={data:ch.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ch.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ch.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ch.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};iae.attr=iae.data;iae.removeAttr=iae.removeData;DTe=aae.prototype;Eo(DTe,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(r){if(this.isReady())this.emitter().emit("ready",[],r);else this.on("ready",r);return this},destroy:function(){var r=this;if(r.destroyed())return;return r.stopAnimationLoop(),r.destroyRenderer(),this.emit("destroy"),r._private.destroyed=!0,r},hasElementWithId:function(r){return this._private.elements.hasElementWithId(r)},getElementById:function(r){return this._private.elements.getElementById(r)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(r){return this._private.elements.merge(r),this},removeFromPool:function(r){return this._private.elements.unmerge(r),this},container:function(){return this._private.container||null},window:function(){var r=this._private.container;if(r==null)return am;var i=this._private.container.ownerDocument;if(i===void 0||i==null)return am;return i.defaultView||am},mount:function(r){if(r==null)return;var i=this,a=i._private,o=a.options;if(!ATe(r)&&ATe(r[0]))r=r[0];return i.stopAnimationLoop(),i.destroyRenderer(),a.container=r,a.styleEnabled=!0,i.invalidateSize(),i.initRenderer(Eo({},o,o.renderer,{name:o.renderer.name==="null"?"canvas":o.renderer.name})),i.startAnimationLoop(),i.style(o.style),i.emit("mount"),i},unmount:function(){var r=this;return r.stopAnimationLoop(),r.destroyRenderer(),r.initRenderer({name:"null"}),r.emit("unmount"),r},options:function(){return F3(this._private.options)},json:function(r){var i=this,a=i._private,o=i.mutableElements(),l=function(B){return i.getElementById(B.id())};if(uu(r)){if(i.startBatch(),r.elements){var h={},d=function(B,D){var P=[],F=[];for(var H=0;H0,d=!!e.boundingBox,p=Ev(d?e.boundingBox:structuredClone(r.extent())),m;if(JE(e.roots))m=e.roots;else if(hd(e.roots)){var y=[];for(var E=0;E0){var te=j(),X=K(te,Z);if(X)te.outgoers().filter(function(Nt){return Nt.isNode()&&i.has(Nt)}).forEach(Y);else if(X===null){uh("Detected double maximal shift for node `"+te.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var W=0;if(e.avoidOverlap)for(var J=0;J0&&R[0].length<=3?qe/2:0),Je=2*Math.PI/R[Pe].length*Ge;if(Pe===0&&R[0].length===1)Ke=1;return{x:Qe.x+Ke*Math.cos(Je),y:Qe.y+Ke*Math.sin(Je)}}else{var De=R[Pe].length,oe=Math.max(De===1?0:d?(p.w-e.padding*2-St.w)/((e.grid?Vt:De)-1):(p.w-e.padding*2-St.w)/((e.grid?Vt:De)+1),W),pe={x:Qe.x+(Ge+1-(De+1)/2)*oe,y:Qe.y+(Pe+1-(xe+1)/2)*pt};return pe}},rr={downward:0,leftward:90,upward:180,rightward:-90};if(Object.keys(rr).indexOf(e.direction)===-1)_f("Invalid direction '".concat(e.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(rr).join(", ")));var We=function(ct){return Xai(Xt(ct),p,rr[e.direction])};return i.nodes().layoutPositions(this,e,We),this};Bci={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(r,i){return!0},ready:void 0,stop:void 0,transform:function(r,i){return i}};vDr.prototype.run=function(){var e=this.options,r=e,i=e.cy,a=r.eles,o=r.counterclockwise!==void 0?!r.counterclockwise:r.clockwise,l=a.nodes().not(":parent");if(r.sort)l=l.sort(r.sort);var h=Ev(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()}),d={x:h.x1+h.w/2,y:h.y1+h.h/2},p=r.sweep===void 0?2*Math.PI-2*Math.PI/l.length:r.sweep,m=p/Math.max(1,l.length-1),y,E=0;for(var w=0;w1&&r.avoidOverlap){E*=1.75;var R=Math.cos(m)-Math.cos(0),N=Math.sin(m)-Math.sin(0),L=Math.sqrt(E*E/(R*R+N*N));y=Math.max(L,y)}var B=function(P,F){var H=r.startAngle+F*m*(o?1:-1),K=y*Math.cos(H),Q=y*Math.sin(H),Z={x:d.x+K,y:d.y+Q};return Z};return a.nodes().layoutPositions(this,r,B),this};Fci={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(r){return r.degree()},levelWidth:function(r){return r.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(r,i){return!0},ready:void 0,stop:void 0,transform:function(r,i){return i}};_Dr.prototype.run=function(){var e=this.options,r=e,i=r.counterclockwise!==void 0?!r.counterclockwise:r.clockwise,a=e.cy,o=r.eles,l=o.nodes().not(":parent"),h=Ev(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),d={x:h.x1+h.w/2,y:h.y1+h.h/2},p=[],m=0;for(var y=0;y0){var D=Math.abs(N[0].value-B.value);if(D>=A)N=[],R.push(N)}N.push(B)}var P=m+r.minNodeSpacing;if(!r.avoidOverlap){var F=R.length>0&&R[0].length>1,H=Math.min(h.w,h.h)/2-P,K=H/(R.length+F?1:0);P=Math.min(P,K)}var Q=0;for(var Z=0;Z1&&r.avoidOverlap){var X=Math.cos(te)-Math.cos(0),W=Math.sin(te)-Math.sin(0),J=Math.sqrt(P*P/(X*X+W*W));Q=Math.max(J,Q)}Y.r=Q,Q+=P}if(r.equidistant){var z=0,ne=0;for(var ie=0;ie=e.numIter)return!1;if(qci(a,e),a.temperature=a.temperature*e.coolingFactor,a.temperature=e.animationThreshold)l();RTe(y)}};y()}else{while(m)m=h(p),p++;$Mr(a,e),d()}return this};rxe.prototype.stop=function(){if(this.stopped=!0,this.thread)this.thread.stop();return this.emit("layoutstop"),this};rxe.prototype.destroy=function(){if(this.thread)this.thread.stop();return this};eui={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(r){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(r,i){return!0},ready:void 0,stop:void 0,transform:function(r,i){return i}};TDr.prototype.run=function(){var e=this.options,r=e,i=e.cy,a=r.eles,o=a.nodes().not(":parent");if(r.sort)o=o.sort(r.sort);var l=Ev(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()});if(l.h===0||l.w===0)a.nodes().layoutPositions(this,r,function(he){return{x:l.x1,y:l.y1}});else{var h=o.size(),d=Math.sqrt(h*l.h/l.w),p=Math.round(d),m=Math.round(l.w/l.h*d),y=function(ye){if(ye==null)return Math.min(p,m);else{var xe=Math.min(p,m);if(xe==p)p=ye;else m=ye}},E=function(ye){if(ye==null)return Math.max(p,m);else{var xe=Math.max(p,m);if(xe==p)p=ye;else m=ye}},w=r.rows,T=r.cols!=null?r.cols:r.columns;if(w!=null&&T!=null)p=w,m=T;else if(w!=null&&T==null)p=w,m=Math.ceil(h/p);else if(w==null&&T!=null)m=T,p=Math.ceil(h/m);else if(m*p>h){var x=y(),k=E();if((x-1)*k>=h)y(x-1);else if((k-1)*x>=h)E(k-1)}else while(m*p=h)E(R+1);else y(A+1)}var N=l.w/m,L=l.h/p;if(r.condense)N=0,L=0;if(r.avoidOverlap)for(var B=0;B=m)X=0,te++},J={};for(var z=0;z(X=zsi(e,r,W[J],W[J+1],W[J+2],W[J+3])))return A(F,X),!0}else if(K.edgeType==="bezier"||K.edgeType==="multibezier"||K.edgeType==="self"||K.edgeType==="compound"){var W=K.allpts;for(var J=0;J+5(X=Gsi(e,r,W[J],W[J+1],W[J+2],W[J+3],W[J+4],W[J+5])))return A(F,X),!0}var z=z||H.source,ne=ne||H.target,ie=o.getArrowWidth(Q,Z),le=[{name:"source",x:K.arrowStartX,y:K.arrowStartY,angle:K.srcArrowAngle},{name:"target",x:K.arrowEndX,y:K.arrowEndY,angle:K.tgtArrowAngle},{name:"mid-source",x:K.midX,y:K.midY,angle:K.midsrcArrowAngle},{name:"mid-target",x:K.midX,y:K.midY,angle:K.midtgtArrowAngle}];for(var J=0;J0)R(z),R(ne)}function L(F,H,K){return _v(F,H,K)}function B(F,H){var K=F._private,Q=w,Z;if(H)Z=H+"-";else Z="";F.boundingBox();var Y=K.labelBounds[H||"main"],j=F.pstyle(Z+"label").value,te=F.pstyle("text-events").strValue==="yes";if(!te||!j)return;var X=L(K.rscratch,"labelX",H),W=L(K.rscratch,"labelY",H),J=L(K.rscratch,"labelAngle",H),z=F.pstyle(Z+"text-margin-x").pfValue,ne=F.pstyle(Z+"text-margin-y").pfValue,ie=Y.x1-Q-z,le=Y.x2+Q-z,se=Y.y1-Q-ne,he=Y.y2+Q-ne;if(J){var ye=Math.cos(J),xe=Math.sin(J),Ie=function(St,pt){return St=St-X,pt=pt-W,{x:St*ye-pt*xe+X,y:St*xe+pt*ye+W}},Ee=Ie(ie,se),Ue=Ie(ie,he),Me=Ie(le,se),Xe=Ie(le,he),je=[Ee.x+z,Ee.y+ne,Me.x+z,Me.y+ne,Xe.x+z,Xe.y+ne,Ue.x+z,Ue.y+ne];if(i2(e,r,je))return A(F),!0}else if(i7(Y,e,r))return A(F),!0}for(var D=h.length-1;D>=0;D--){var P=h[D];if(P.isNode())R(P)||B(P);else N(P)||B(P)||B(P,"source")||B(P,"target")}return d};IB.getAllInBox=function(e,r,i,a){var o=this.getCachedZSortedEles().interactive,l=this.cy.zoom(),h=2/l,d=[],p=Math.min(e,i),m=Math.max(e,i),y=Math.min(r,a),E=Math.max(r,a);e=p,i=m,r=y,a=E;var w=Ev({x1:e,y1:r,x2:i,y2:a}),T=[{x:w.x1,y:w.y1},{x:w.x2,y:w.y1},{x:w.x2,y:w.y2},{x:w.x1,y:w.y2}],x=[[T[0],T[1]],[T[1],T[2]],[T[2],T[3]],[T[3],T[0]]];function k(St,pt,Vt){return _v(St,pt,Vt)}function A(St,pt){var Vt=St._private,Xt=h,rr="";St.boundingBox();var We=Vt.labelBounds.main;if(!We)return null;var Nt=k(Vt.rscratch,"labelX",pt),ct=k(Vt.rscratch,"labelY",pt),bt=k(Vt.rscratch,"labelAngle",pt),Pe=St.pstyle(rr+"text-margin-x").pfValue,Ge=St.pstyle(rr+"text-margin-y").pfValue,qe=We.x1-Xt-Pe,Ke=We.x2+Xt-Pe,Je=We.y1-Xt-Ge,De=We.y2+Xt-Ge;if(bt){var oe=Math.cos(bt),pe=Math.sin(bt),fe=function(ze,Ce){return ze=ze-Nt,Ce=Ce-ct,{x:ze*oe-Ce*pe+Nt,y:ze*pe+Ce*oe+ct}};return[fe(qe,Je),fe(Ke,Je),fe(Ke,De),fe(qe,De)]}else return[{x:qe,y:Je},{x:Ke,y:Je},{x:Ke,y:De},{x:qe,y:De}]}function R(St,pt,Vt,Xt){function rr(We,Nt,ct){return(ct.y-We.y)*(Nt.x-We.x)>(Nt.y-We.y)*(ct.x-We.x)}return rr(St,Vt,Xt)!==rr(pt,Vt,Xt)&&rr(St,pt,Vt)!==rr(St,pt,Xt)}for(var N=0;N0)return Math.max(Ce-_e,0);else return Math.min(Ce+_e,0)},j=Y(Q,H),te=Y(Z,K),X=!1;if(N===m)R=Math.abs(j)>Math.abs(te)?o:a;else if(N===p||N===d)R=a,X=!0;else if(N===l||N===h)R=o,X=!0;var W=R===a,J=W?te:j,z=W?Z:Q,ne=dot(z),ie=!1;if(!(X&&(B||P))&&(N===d&&z<0||N===p&&z>0||N===l&&z>0||N===h&&z<0))ne*=-1,J=ne*Math.abs(J),ie=!0;var le;if(B){var se=D<0?1+D:D;le=se*J}else{var he=D<0?J:0;le=he+D*ne}var ye=function(Ce){return Math.abs(Ce)=Math.abs(J)},xe=ye(le),Ie=ye(Math.abs(J)-Math.abs(le)),Ee=xe||Ie;if(Ee&&!ie)if(W){var Ue=Math.abs(z)<=w/2,Me=Math.abs(Q)<=T/2;if(Ue){var Xe=(y.x1+y.x2)/2,{y1:je,y2:Qe}=y;i.segpts=[Xe,je,Xe,Qe]}else if(Me){var St=(y.y1+y.y2)/2,{x1:pt,x2:Vt}=y;i.segpts=[pt,St,Vt,St]}else i.segpts=[y.x1,y.y2]}else{var Xt=Math.abs(z)<=E/2,rr=Math.abs(Z)<=x/2;if(Xt){var We=(y.y1+y.y2)/2,{x1:Nt,x2:ct}=y;i.segpts=[Nt,We,ct,We]}else if(rr){var bt=(y.x1+y.x2)/2,{y1:Pe,y2:Ge}=y;i.segpts=[bt,Pe,bt,Ge]}else i.segpts=[y.x2,y.y1]}else if(W){var qe=y.y1+le+(A?w/2*ne:0),{x1:Ke,x2:Je}=y;i.segpts=[Ke,qe,Je,qe]}else{var De=y.x1+le+(A?E/2*ne:0),{y1:oe,y2:pe}=y;i.segpts=[De,oe,De,pe]}if(i.isRound){var fe=e.pstyle("taxi-radius").value,be=e.pstyle("radius-type").value[0]==="arc-radius";i.radii=Array(i.segpts.length/2).fill(fe),i.isArcRadius=Array(i.segpts.length/2).fill(be)}};ay.tryToCorrectInvalidPoints=function(e,r){var i=e._private.rscratch;if(i.edgeType==="bezier"){var{srcPos:a,tgtPos:o,srcW:l,srcH:h,tgtW:d,tgtH:p,srcShape:m,tgtShape:y,srcCornerRadius:E,tgtCornerRadius:w,srcRs:T,tgtRs:x}=r,k=!Sa(i.startX)||!Sa(i.startY),A=!Sa(i.arrowStartX)||!Sa(i.arrowStartY),R=!Sa(i.endX)||!Sa(i.endY),N=!Sa(i.arrowEndX)||!Sa(i.arrowEndY),L=3,B=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,D=L*B,P=CB({x:i.ctrlpts[0],y:i.ctrlpts[1]},{x:i.startX,y:i.startY}),F=Pz.poolIndex()){var ne=J;J=z,z=ne}var ie=j.srcPos=J.position(),le=j.tgtPos=z.position(),se=j.srcW=J.outerWidth(),he=j.srcH=J.outerHeight(),ye=j.tgtW=z.outerWidth(),xe=j.tgtH=z.outerHeight(),Ie=j.srcShape=i.nodeShapes[r.getNodeShape(J)],Ee=j.tgtShape=i.nodeShapes[r.getNodeShape(z)],Ue=j.srcCornerRadius=J.pstyle("corner-radius").value==="auto"?"auto":J.pstyle("corner-radius").pfValue,Me=j.tgtCornerRadius=z.pstyle("corner-radius").value==="auto"?"auto":z.pstyle("corner-radius").pfValue,Xe=j.tgtRs=z._private.rscratch,je=j.srcRs=J._private.rscratch;j.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Qe=0;Qe=oui);else Je=Math.sqrt(Math.max(Ke*Ke,sae)+Math.max(qe*qe,sae));var De=j.vector={x:Ke,y:qe},oe=j.vectorNorm={x:De.x/Je,y:De.y/Je},pe={x:-oe.y,y:oe.x};j.nodesOverlap=!Sa(Je)||Ee.checkPoint(We[0],We[1],0,ye,xe,le.x,le.y,Me,Xe)||Ie.checkPoint(ct[0],ct[1],0,se,he,ie.x,ie.y,Ue,je),j.vectorNormInverse=pe,te={nodesOverlap:j.nodesOverlap,dirCounts:j.dirCounts,calculatedIntersection:!0,hasBezier:j.hasBezier,hasUnbundled:j.hasUnbundled,eles:j.eles,srcPos:le,srcRs:Xe,tgtPos:ie,tgtRs:je,srcW:ye,srcH:xe,tgtW:se,tgtH:he,srcIntn:bt,tgtIntn:Nt,srcShape:Ee,tgtShape:Ie,posPts:{x1:Ge.x2,y1:Ge.y2,x2:Ge.x1,y2:Ge.y1},intersectionPts:{x1:Pe.x2,y1:Pe.y2,x2:Pe.x1,y2:Pe.y1},vector:{x:-De.x,y:-De.y},vectorNorm:{x:-oe.x,y:-oe.y},vectorNormInverse:{x:-pe.x,y:-pe.y}}}var fe=rr?te:j;if(pt.nodesOverlap=fe.nodesOverlap,pt.srcIntn=fe.srcIntn,pt.tgtIntn=fe.tgtIntn,pt.isRound=Vt.startsWith("round"),o&&(J.isParent()||J.isChild()||z.isParent()||z.isChild())&&(J.parents().anySame(z)||z.parents().anySame(J)||J.same(z)&&J.isParent()))r.findCompoundLoopPoints(St,fe,Qe,Xt);else if(J===z)r.findLoopPoints(St,fe,Qe,Xt);else if(Vt.endsWith("segments"))r.findSegmentsPoints(St,fe);else if(Vt.endsWith("taxi"))r.findTaxiPoints(St,fe);else if(Vt==="straight"||!Xt&&j.eles.length%2===1&&Qe===Math.floor(j.eles.length/2))r.findStraightEdgePoints(St);else r.findBezierPoints(St,fe,Qe,Xt,rr);r.findEndpoints(St),r.tryToCorrectInvalidPoints(St,fe),r.checkForInvalidEdgeWarning(St),r.storeAllpts(St),r.storeEdgeProjections(St),r.calculateArrowAngles(St),r.recalculateEdgeLabelProjections(St),r.calculateLabelAngles(St)}};for(var F=0;F0){var We=m,Nt=_B(We,Tq(h)),ct=_B(We,Tq(rr)),bt=Nt;if(ct2){var Pe=_B(We,{x:rr[2],y:rr[3]});if(Pe0){var ke=y,it=_B(ke,Tq(h)),ut=_B(ke,Tq(_e)),gt=it;if(ut2){var vt=_B(ke,{x:_e[2],y:_e[3]});if(vt=x||F){A={cp:B,segment:P};break}}if(A)break}var H=A.cp,K=A.segment,Q=(x-R)/K.length,Z=K.t1-K.t0,Y=T?K.t0+Z*Q:K.t1-Z*Q;Y=eae(0,Y,1),r=kq(H.p0,H.p1,H.p2,Y),w=cui(H.p0,H.p1,H.p2,Y);break}case"straight":case"segments":case"haystack":{var j=0,te,X,W,J,z=a.allpts.length;for(var ne=0;ne+3=x)break}var ie=x-X,le=ie/te;le=eae(0,le,1),r=Isi(W,J,le),w=LDr(W,J);break}}h("labelX",E,r.x),h("labelY",E,r.y),h("labelAutoAngle",E,w)};m("source"),m("target"),this.applyLabelDimensions(e)};U3.applyLabelDimensions=function(e){if(this.applyPrefixedLabelDimensions(e),e.isEdge())this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target")};U3.applyPrefixedLabelDimensions=function(e,r){var i=e._private,a=this.getLabelText(e,r),o=xB(a,e._private.labelDimsKey);if(_v(i.rscratch,"prefixedLabelDimsKey",r)===o)return;B3(i.rscratch,"prefixedLabelDimsKey",r,o);var l=this.calculateLabelDimensions(e,a),h=e.pstyle("line-height").pfValue,d=e.pstyle("font-size").pfValue,p=e.pstyle("text-wrap").strValue,m=_v(i.rscratch,"labelWrapCachedLines",r)||[],y=p!=="wrap"?1:Math.max(m.length,1),E=d*h,w=l.width,T=l.height+(y-1)*(h-1)*d;B3(i.rstyle,"labelWidth",r,w),B3(i.rscratch,"labelWidth",r,w),B3(i.rstyle,"labelHeight",r,T),B3(i.rscratch,"labelHeight",r,T),B3(i.rscratch,"labelLineHeight",r,E),B3(i.rscratch,"labelActualDescent",r,l.labelActualDescent)};U3.getLabelText=function(e,r){var i=e._private,a=r?r+"-":"",o=e.pstyle(a+"label").strValue,l=e.pstyle("text-transform").value,h=function(he,ye){if(ye)return B3(i.rscratch,he,r,ye),ye;else return _v(i.rscratch,he,r)};if(!o)return"";if(l=="none");else if(l=="uppercase")o=o.toUpperCase();else if(l=="lowercase")o=o.toLowerCase();var d=e.pstyle("text-wrap").value;if(d==="wrap"){var p=h("labelKey");if(p!=null&&h("labelWrapKey")===p)return h("labelWrapCachedText");var m="​",y=o.split(` -`),E=e.pstyle("text-max-width").pfValue,w=e.pstyle("text-overflow-wrap").value,T=w==="anywhere",x=[],k=/[\s\u200b]+|$/g;for(var A=0;AE){var D=R.matchAll(k),P="",F=0,H=a2(D),K;try{for(H.s();!(K=H.n()).done;){var Q=K.value,Z=Q[0],Y=R.substring(F,Q.index);F=Q.index+Z.length;var j=P.length===0?Y:P+Y+Z,te=this.calculateLabelDimensions(e,j),X=te.width;if(X<=E)P+=Y+Z;else{if(P)x.push(P);P=Y+Z}}}catch(se){H.e(se)}finally{H.f()}if(!P.match(/^[\s\u200b]+$/))x.push(P)}else x.push(R)}h("labelWrapCachedLines",x),o=h("labelWrapCachedText",x.join(` -`)),h("labelWrapKey",p)}else if(d==="ellipsis"){var W=e.pstyle("text-max-width").pfValue,J="",z="…",ne=!1;if(this.calculateLabelDimensions(e,o).widthW)break;if(J+=o[ie],ie===o.length-1)ne=!0}if(!ne)J+=z;return J}return o};U3.getLabelJustification=function(e){var r=e.pstyle("text-justification").strValue,i=e.pstyle("text-halign").strValue;if(r==="auto")if(e.isNode())return Xli(i);else return"center";else return r};U3.calculateLabelDimensions=function(e,r){var i=this,a=i.cy.window(),o=a.document,l=0,h=e.pstyle("font-style").strValue,d=e.pstyle("font-size").pfValue,p=e.pstyle("font-family").strValue,m=e.pstyle("font-weight").strValue,y=e.pstyle("text-metrics").strValue||"font",E=this.labelCalcCanvas,w=this.labelCalcCanvasContext;if(!E){E=this.labelCalcCanvas=o.createElement("canvas"),w=this.labelCalcCanvasContext=E.getContext("2d");var T=E.style;T.position="absolute",T.left="-9999px",T.top="-9999px",T.zIndex="-1",T.visibility="hidden",T.pointerEvents="none"}w.font="".concat(h," ").concat(m," ").concat(d,"px ").concat(p);var x=0,k=0,A=r.split(` -`),R=A.length,N=0,L=0;for(var B=0;B1&&arguments[1]!==void 0?arguments[1]:!0;if(r.merge(h),d)for(var p=0;p=e.desktopTapThreshold2}var Bn=l(fe);if(lr)e.hoverData.tapholdCancelled=!0;var si=function(){var _t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];if(_t.length===0)_t.push(tr[0]),_t.push(tr[1]);else _t[0]+=tr[0],_t[1]+=tr[1]};ze=!0,o(ir,["mousemove","vmousemove","tapdrag"],fe,{x:it[0],y:it[1]});var hn=function(_t){return{originalEvent:fe,type:_t,position:{x:it[0],y:it[1]}}},Ii=function(){if(e.data.bgActivePosistion=void 0,!e.hoverData.selecting)Ce.emit(hn("boxstart"));vt[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(e.hoverData.which===3){if(lr){var Vn=hn("cxtdrag");if(cr)cr.emit(Vn);else Ce.emit(Vn);if(e.hoverData.cxtDragged=!0,!e.hoverData.cxtOver||ir!==e.hoverData.cxtOver){if(e.hoverData.cxtOver)e.hoverData.cxtOver.emit(hn("cxtdragout"));if(e.hoverData.cxtOver=ir,ir)ir.emit(hn("cxtdragover"))}}}else if(e.hoverData.dragging){if(ze=!0,Ce.panningEnabled()&&Ce.userPanningEnabled()){var Ei;if(e.hoverData.justStartedPan){var yn=e.hoverData.mdownPos;Ei={x:(it[0]-yn[0])*_e,y:(it[1]-yn[1])*_e},e.hoverData.justStartedPan=!1}else Ei={x:tr[0]*_e,y:tr[1]*_e};Ce.panBy(Ei),Ce.emit(hn("dragpan")),e.hoverData.dragged=!0}it=e.projectIntoViewport(fe.clientX,fe.clientY)}else if(vt[4]==1&&(cr==null||cr.pannable())){if(lr){if(!e.hoverData.dragging&&Ce.boxSelectionEnabled()&&(Bn||!Ce.panningEnabled()||!Ce.userPanningEnabled()))Ii();else if(!e.hoverData.selecting&&Ce.panningEnabled()&&Ce.userPanningEnabled()){var Li=h(cr,e.hoverData.downs);if(Li)e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,vt[4]=0,e.data.bgActivePosistion=Tq(ut),e.redrawHint("select",!0),e.redraw()}if(cr&&cr.pannable()&&cr.active())cr.unactivate()}}else{if(cr&&cr.pannable()&&cr.active())cr.unactivate();if((!cr||!cr.grabbed())&&ir!=qt){if(qt)o(qt,["mouseout","tapdragout"],fe,{x:it[0],y:it[1]});if(ir)o(ir,["mouseover","tapdragover"],fe,{x:it[0],y:it[1]});e.hoverData.last=ir}if(cr)if(lr){if(Ce.boxSelectionEnabled()&&Bn){if(cr&&cr.grabbed()){if(k(Zt),cr.emit(hn("freeon")),Zt.emit(hn("free")),e.dragData.didDrag)cr.emit(hn("dragfreeon")),Zt.emit(hn("dragfree"))}Ii()}else if(cr&&cr.grabbed()&&e.nodeIsDraggable(cr)){var Ia=!e.dragData.didDrag;if(Ia)e.redrawHint("eles",!0);if(e.dragData.didDrag=!0,!e.hoverData.draggingEles)T(Zt,{inDragLayer:!0});var tt={x:0,y:0};if(Sa(tr[0])&&Sa(tr[1])){if(tt.x+=tr[0],tt.y+=tr[1],Ia){var Fn=e.hoverData.dragDelta;if(Fn&&Sa(Fn[0])&&Sa(Fn[1]))tt.x+=Fn[0],tt.y+=Fn[1]}}e.hoverData.draggingEles=!0,Zt.silentShift(tt).emit(hn("position")).emit(hn("drag")),e.redrawHint("drag",!0),e.redraw()}}else si();ze=!0}if(vt[2]=it[0],vt[3]=it[1],ze){if(fe.stopPropagation)fe.stopPropagation();if(fe.preventDefault)fe.preventDefault();return!1}},!1);var Q,Z,Y;e.registerBinding(r,"mouseup",function(fe){if(e.hoverData.which===1&&fe.which!==1&&e.hoverData.capture)return;var be=e.hoverData.capture;if(!be)return;e.hoverData.capture=!1;var ze=e.cy,Ce=e.projectIntoViewport(fe.clientX,fe.clientY),_e=e.selection,ke=e.findNearestElement(Ce[0],Ce[1],!0,!1),it=e.dragData.possibleDragElements,ut=e.hoverData.down,gt=l(fe);if(e.data.bgActivePosistion)e.redrawHint("select",!0),e.redraw();if(e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,ut)ut.unactivate();var vt=function(Kt){return{originalEvent:fe,type:Kt,position:{x:Ce[0],y:Ce[1]}}};if(e.hoverData.which===3){var ir=vt("cxttapend");if(ut)ut.emit(ir);else ze.emit(ir);if(!e.hoverData.cxtDragged){var qt=vt("cxttap");if(ut)ut.emit(qt);else ze.emit(qt)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(o(ke,["mouseup","tapend","vmouseup"],fe,{x:Ce[0],y:Ce[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag)if(o(ut,["click","tap","vclick"],fe,{x:Ce[0],y:Ce[1]}),Z=!1,fe.timeStamp-Y<=ze.multiClickDebounceTime())Q&&clearTimeout(Q),Z=!0,Y=null,o(ut,["dblclick","dbltap","vdblclick"],fe,{x:Ce[0],y:Ce[1]});else Q=setTimeout(function(){if(Z)return;o(ut,["oneclick","onetap","voneclick"],fe,{x:Ce[0],y:Ce[1]})},ze.multiClickDebounceTime()),Y=fe.timeStamp;if(ut==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!l(fe)){if(ze.$(i).unselect(["tapunselect"]),it.length>0)e.redrawHint("eles",!0);e.dragData.possibleDragElements=it=ze.collection()}if(ke==ut&&!e.dragData.didDrag&&!e.hoverData.selecting){if(ke!=null&&ke._private.selectable){if(e.hoverData.dragging);else if(ze.selectionType()==="additive"||gt)if(ke.selected())ke.unselect(["tapunselect"]);else ke.select(["tapselect"]);else if(!gt)ze.$(i).unmerge(ke).unselect(["tapunselect"]),ke.select(["tapselect"]);e.redrawHint("eles",!0)}}if(e.hoverData.selecting){var cr=ze.collection(e.getAllInBox(_e[0],_e[1],_e[2],_e[3]));if(e.redrawHint("select",!0),cr.length>0)e.redrawHint("eles",!0);ze.emit(vt("boxend"));var tr=function(Kt){return Kt.selectable()&&!Kt.selected()};if(ze.selectionType()==="additive")cr.emit(vt("box")).stdFilter(tr).select().emit(vt("boxselect"));else{if(!gt)ze.$(i).unmerge(cr).unselect();cr.emit(vt("box")).stdFilter(tr).select().emit(vt("boxselect"))}e.redraw()}if(e.hoverData.dragging)e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw();if(!_e[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var Zt=ut&&ut.grabbed();if(k(it),Zt){if(ut.emit(vt("freeon")),it.emit(vt("free")),e.dragData.didDrag)ut.emit(vt("dragfreeon")),it.emit(vt("dragfree"))}}}_e[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null},!1);var j=[],te=4,X,W=1e5,J=function(fe){var be=Math.abs(fe[0]);for(var ze=1;ze=te){X=!1;var Ce=j;if(Ce[0]>=5){var _e;if(J(Ce))_e=Ce[0];else _e=ksi(Ce);if(_e>1)X=!0,W=_e}}else j.push(Math.abs(ze)),be=!0;else if(X)W=Math.min(Math.abs(ze),W);if(e.scrollingPage)return;var ke=e.cy,it=ke.zoom(),ut=ke.pan(),gt=e.projectIntoViewport(fe.clientX,fe.clientY),vt=[gt[0]*it+ut.x,gt[1]*it+ut.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||F()){fe.preventDefault();return}if(ke.panningEnabled()&&ke.userPanningEnabled()&&ke.zoomingEnabled()&&ke.userZoomingEnabled()){fe.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150);var ir;if(be&&Math.abs(ze)>5)ze=dot(ze)*5;if(ir=ze/-250,X)ir/=W,ir*=3;ir=ir*e.wheelSensitivity;var qt=fe.deltaMode===1;if(qt)ir*=33;var cr=ke.zoom()*Math.pow(10,ir);if(fe.type==="gesturechange")cr=e.gestureStartZoom*fe.scale;ke.zoom({level:cr,renderedPosition:{x:vt[0],y:vt[1]}}),ke.emit({type:fe.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:fe,position:{x:gt[0],y:gt[1]}})}};e.registerBinding(e.container,"wheel",z,!0),e.registerBinding(r,"scroll",function(fe){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(fe){if(e.gestureStartZoom=e.cy.zoom(),!e.hasTouchStarted)fe.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(pe){if(!e.hasTouchStarted)z(pe)},!0),e.registerBinding(e.container,"mouseout",function(fe){var be=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseout",position:{x:be[0],y:be[1]}})},!1),e.registerBinding(e.container,"mouseover",function(fe){var be=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseover",position:{x:be[0],y:be[1]}})},!1);var ne,ie,le,se,he,ye,xe,Ie,Ee,Ue,Me,Xe,je,Qe=function(fe,be,ze,Ce){return Math.sqrt((ze-fe)*(ze-fe)+(Ce-be)*(Ce-be))},St=function(fe,be,ze,Ce){return(ze-fe)*(ze-fe)+(Ce-be)*(Ce-be)},pt;e.registerBinding(e.container,"touchstart",pt=function(fe){if(e.hasTouchStarted=!0,!H(fe))return;R(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var be=e.cy,ze=e.touchData.now,Ce=e.touchData.earlier;if(fe.touches[0]){var _e=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);ze[0]=_e[0],ze[1]=_e[1]}if(fe.touches[1]){var _e=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);ze[2]=_e[0],ze[3]=_e[1]}if(fe.touches[2]){var _e=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);ze[4]=_e[0],ze[5]=_e[1]}var ke=function(Bn){return{originalEvent:fe,type:Bn,position:{x:ze[0],y:ze[1]}}};if(fe.touches[1]){e.touchData.singleTouchMoved=!0,k(e.dragData.touchDragEles);var it=e.findContainerClientCoords();Ee=it[0],Ue=it[1],Me=it[2],Xe=it[3],ne=fe.touches[0].clientX-Ee,ie=fe.touches[0].clientY-Ue,le=fe.touches[1].clientX-Ee,se=fe.touches[1].clientY-Ue,je=0<=ne&&ne<=Me&&0<=le&&le<=Me&&0<=ie&&ie<=Xe&&0<=se&&se<=Xe;var ut=be.pan(),gt=be.zoom();he=Qe(ne,ie,le,se),ye=St(ne,ie,le,se),xe=[(ne+le)/2,(ie+se)/2],Ie=[(xe[0]-ut.x)/gt,(xe[1]-ut.y)/gt];var vt=200,ir=vt*vt;if(ye=1){var In=e.touchData.startPosition=[null,null,null,null,null,null];for(var Et=0;Et=e.touchTapThreshold2}if(be&&e.touchData.cxt){fe.preventDefault();var Et=fe.touches[0].clientX-Ee,Xn=fe.touches[0].clientY-Ue,Yt=fe.touches[1].clientX-Ee,Bn=fe.touches[1].clientY-Ue,si=St(Et,Xn,Yt,Bn),hn=si/ye,Ii=150,Vn=Ii*Ii,Ei=1.5,yn=Ei*Ei;if(hn>=yn||si>=Vn){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Li=gt("cxttapend");if(e.touchData.start)e.touchData.start.unactivate().emit(Li),e.touchData.start=null;else Ce.emit(Li)}}if(be&&e.touchData.cxt){var Li=gt("cxtdrag");if(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start)e.touchData.start.emit(Li);else Ce.emit(Li);if(e.touchData.start)e.touchData.start._private.grabbed=!1;e.touchData.cxtDragged=!0;var Ia=e.findNearestElement(_e[0],_e[1],!0,!0);if(!e.touchData.cxtOver||Ia!==e.touchData.cxtOver){if(e.touchData.cxtOver)e.touchData.cxtOver.emit(gt("cxtdragout"));if(e.touchData.cxtOver=Ia,Ia)Ia.emit(gt("cxtdragover"))}}else if(be&&fe.touches[2]&&Ce.boxSelectionEnabled()){if(fe.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,!e.touchData.selecting)Ce.emit(gt("boxstart"));if(e.touchData.selecting=!0,e.touchData.didSelect=!0,ze[4]=1,!ze||ze.length===0||ze[0]===void 0)ze[0]=(_e[0]+_e[2]+_e[4])/3,ze[1]=(_e[1]+_e[3]+_e[5])/3,ze[2]=(_e[0]+_e[2]+_e[4])/3+1,ze[3]=(_e[1]+_e[3]+_e[5])/3+1;else ze[2]=(_e[0]+_e[2]+_e[4])/3,ze[3]=(_e[1]+_e[3]+_e[5])/3;e.redrawHint("select",!0),e.redraw()}else if(be&&fe.touches[1]&&!e.touchData.didSelect&&Ce.zoomingEnabled()&&Ce.panningEnabled()&&Ce.userZoomingEnabled()&&Ce.userPanningEnabled()){fe.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var tt=e.dragData.touchDragEles;if(tt){e.redrawHint("drag",!0);for(var Fn=0;Fn0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null)e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw()},!1);var Xt;e.registerBinding(r,"touchcancel",Xt=function(fe){var be=e.touchData.start;if(e.touchData.capture=!1,be)be.unactivate()});var rr,We,Nt,ct;if(e.registerBinding(r,"touchend",rr=function(fe){var be=e.touchData.start,ze=e.touchData.capture;if(ze){if(fe.touches.length===0)e.touchData.capture=!1;fe.preventDefault()}else return;var Ce=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var _e=e.cy,ke=_e.zoom(),it=e.touchData.now,ut=e.touchData.earlier;if(fe.touches[0]){var gt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);it[0]=gt[0],it[1]=gt[1]}if(fe.touches[1]){var gt=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);it[2]=gt[0],it[3]=gt[1]}if(fe.touches[2]){var gt=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);it[4]=gt[0],it[5]=gt[1]}var vt=function(Vn){return{originalEvent:fe,type:Vn,position:{x:it[0],y:it[1]}}};if(be)be.unactivate();var ir;if(e.touchData.cxt){if(ir=vt("cxttapend"),be)be.emit(ir);else _e.emit(ir);if(!e.touchData.cxtDragged){var qt=vt("cxttap");if(be)be.emit(qt);else _e.emit(qt)}if(e.touchData.start)e.touchData.start._private.grabbed=!1;e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!fe.touches[2]&&_e.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var cr=_e.collection(e.getAllInBox(Ce[0],Ce[1],Ce[2],Ce[3]));Ce[0]=void 0,Ce[1]=void 0,Ce[2]=void 0,Ce[3]=void 0,Ce[4]=0,e.redrawHint("select",!0),_e.emit(vt("boxend"));var tr=function(Vn){return Vn.selectable()&&!Vn.selected()};if(cr.emit(vt("box")).stdFilter(tr).select().emit(vt("boxselect")),cr.nonempty())e.redrawHint("eles",!0);e.redraw()}if(be!=null)be.unactivate();if(fe.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(fe.touches[1]);else if(fe.touches[0]);else if(!fe.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Zt=e.dragData.touchDragEles;if(be!=null){var lr=be._private.grabbed;if(k(Zt),e.redrawHint("drag",!0),e.redrawHint("eles",!0),lr){if(be.emit(vt("freeon")),Zt.emit(vt("free")),e.dragData.didDrag)be.emit(vt("dragfreeon")),Zt.emit(vt("dragfree"))}o(be,["touchend","tapend","vmouseup","tapdragout"],fe,{x:it[0],y:it[1]}),be.unactivate(),e.touchData.start=null}else{var Kt=e.findNearestElement(it[0],it[1],!0,!0);o(Kt,["touchend","tapend","vmouseup","tapdragout"],fe,{x:it[0],y:it[1]})}var In=e.touchData.startPosition[0]-it[0],Et=In*In,Xn=e.touchData.startPosition[1]-it[1],Yt=Xn*Xn,Bn=Et+Yt,si=Bn*ke*ke;if(!e.touchData.singleTouchMoved){if(!be)_e.$(":selected").unselect(["tapunselect"]);if(o(be,["tap","vclick"],fe,{x:it[0],y:it[1]}),We=!1,fe.timeStamp-ct<=_e.multiClickDebounceTime())Nt&&clearTimeout(Nt),We=!0,ct=null,o(be,["dbltap","vdblclick"],fe,{x:it[0],y:it[1]});else Nt=setTimeout(function(){if(We)return;o(be,["onetap","voneclick"],fe,{x:it[0],y:it[1]})},_e.multiClickDebounceTime()),ct=fe.timeStamp}if(be!=null&&!e.dragData.didDrag&&be._private.selectable&&si"u"){var bt=[],Pe=function(fe){return{clientX:fe.clientX,clientY:fe.clientY,force:1,identifier:fe.pointerId,pageX:fe.pageX,pageY:fe.pageY,radiusX:fe.width/2,radiusY:fe.height/2,screenX:fe.screenX,screenY:fe.screenY,target:fe.target}},Ge=function(fe){return{event:fe,touch:Pe(fe)}},qe=function(fe){bt.push(Ge(fe))},Ke=function(fe){for(var be=0;be0)return se[0]}return null},x=Object.keys(w);for(var k=0;k0)return T;return D8r(l,h,r,i,a,o,d,p)},checkPoint:function(r,i,a,o,l,h,d,p){p=p==="auto"?u7(o,l):p;var m=2*p;if(eI(r,i,this.points,h,d,o,l-m,[0,-1],a))return!0;if(eI(r,i,this.points,h,d,o-m,l,[0,-1],a))return!0;var y=o/2+2*a,E=l/2+2*a,w=[h-y,d-E,h-y,d,h+y,d,h+y,d-E];if(i2(r,i,w))return!0;if(TB(r,i,m,m,h+o/2-p,d+l/2-p,a))return!0;if(TB(r,i,m,m,h-o/2+p,d+l/2-p,a))return!0;return!1}}};tI.registerNodeShapes=function(){var e=this.nodeShapes={},r=this;this.generateEllipse(),this.generatePolygon("triangle",vv(3,0)),this.generateRoundPolygon("round-triangle",vv(3,0)),this.generatePolygon("rectangle",vv(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var i=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",i),this.generateRoundPolygon("round-diamond",i)}this.generatePolygon("pentagon",vv(5,0)),this.generateRoundPolygon("round-pentagon",vv(5,0)),this.generatePolygon("hexagon",vv(6,0)),this.generateRoundPolygon("round-hexagon",vv(6,0)),this.generatePolygon("heptagon",vv(7,0)),this.generateRoundPolygon("round-heptagon",vv(7,0)),this.generatePolygon("octagon",vv(8,0)),this.generateRoundPolygon("round-octagon",vv(8,0));var a=Array(20);{var o=$st(5,0),l=$st(5,Math.PI/5),h=0.5*(3-Math.sqrt(5));h*=1.57;for(var d=0;d=r.deqFastCost*B)break}else if(m){if(N>=r.deqCost*T||N>=r.deqAvgCost*w)break}else if(L>=r.deqNoDrawCost*Ist)break;var D=r.deq(a,A,k);if(D.length>0)for(var P=0;P0){if(r.onDeqd(a,x),!m&&r.shouldRedraw(a,x,A,k))l()}},d=r.priority||cot;o.beforeRender(h,d(a))}}},fui=function(){function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ITe;p7(this,e),this.idsByKey=new ZR,this.keyForId=new ZR,this.cachesByLvl=new ZR,this.lvls=[],this.getKey=r,this.doesEleInvalidateKey=i}return g7(e,[{key:"getIdsFor",value:function(i){if(i==null)_f("Can not get id list for null key");var a=this.idsByKey,o=this.idsByKey.get(i);if(!o)o=new Pq,a.set(i,o);return o}},{key:"addIdForKey",value:function(i,a){if(i!=null)this.getIdsFor(i).add(a)}},{key:"deleteIdForKey",value:function(i,a){if(i!=null)this.getIdsFor(i).delete(a)}},{key:"getNumberOfIdsForKey",value:function(i){if(i==null)return 0;else return this.getIdsFor(i).size}},{key:"updateKeyMappingFor",value:function(i){var a=i.id(),o=this.keyForId.get(a),l=this.getKey(i);this.deleteIdForKey(o,a),this.addIdForKey(l,a),this.keyForId.set(a,l)}},{key:"deleteKeyMappingFor",value:function(i){var a=i.id(),o=this.keyForId.get(a);this.deleteIdForKey(o,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(i){var a=i.id(),o=this.keyForId.get(a),l=this.getKey(i);return o!==l}},{key:"isInvalid",value:function(i){return this.keyHasChangedFor(i)||this.doesEleInvalidateKey(i)}},{key:"getCachesAt",value:function(i){var a=this.cachesByLvl,o=this.lvls,l=a.get(i);if(!l)l=new ZR,a.set(i,l),o.push(i);return l}},{key:"getCache",value:function(i,a){return this.getCachesAt(a).get(i)}},{key:"get",value:function(i,a){var o=this.getKey(i),l=this.getCache(o,a);if(l!=null)this.updateKeyMappingFor(i);return l}},{key:"getForCachedKey",value:function(i,a){var o=this.keyForId.get(i.id()),l=this.getCache(o,a);return l}},{key:"hasCache",value:function(i,a){return this.getCachesAt(a).has(i)}},{key:"has",value:function(i,a){var o=this.getKey(i);return this.hasCache(o,a)}},{key:"setCache",value:function(i,a,o){o.key=i,this.getCachesAt(a).set(i,o)}},{key:"set",value:function(i,a,o){var l=this.getKey(i);this.setCache(l,a,o),this.updateKeyMappingFor(i)}},{key:"deleteCache",value:function(i,a){this.getCachesAt(a).delete(i)}},{key:"delete",value:function(i,a){var o=this.getKey(i);this.deleteCache(o,a)}},{key:"invalidateKey",value:function(i){var a=this;this.lvls.forEach(function(o){return a.deleteCache(i,o)})}},{key:"invalidate",value:function(i){var a=i.id(),o=this.keyForId.get(a);this.deleteKeyMappingFor(i);var l=this.doesEleInvalidateKey(i);if(l)this.invalidateKey(o);return l||this.getNumberOfIdsForKey(o)===0}}])}(),Cq={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},kui=Z1({getKey:null,doesEleInvalidateKey:ITe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:k8r,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),lm=Wie.prototype;lm.reasons=Cq;lm.getTextureQueue=function(e){var r=this;return r.eleImgCaches=r.eleImgCaches||{},r.eleImgCaches[e]=r.eleImgCaches[e]||[]};lm.getRetiredTextureQueue=function(e){var r=this,i=r.eleImgCaches.retired=r.eleImgCaches.retired||{},a=i[e]=i[e]||[];return a};lm.getElementQueue=function(){var e=this,r=e.eleCacheQueue=e.eleCacheQueue||new fae(function(i,a){return a.reqs-i.reqs});return r};lm.getElementKeyToQueue=function(){var e=this,r=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return r};lm.getElement=function(e,r,i,a,o){var l=this,h=this.renderer,d=h.cy.zoom(),p=this.lookup;if(!r||r.w===0||r.h===0||isNaN(r.w)||isNaN(r.h)||!e.visible()||e.removed())return null;if(!l.allowEdgeTxrCaching&&e.isEdge()||!l.allowParentTxrCaching&&e.isParent())return null;if(a==null)a=Math.ceil(hot(d*i));if(a=UDr||a>Jst)return null;var m=Math.pow(2,a),y=r.h*m,E=r.w*m,w=h.eleTextBiggerThanMin(e,m);if(!this.isVisible(e,w))return null;var T=p.get(e,a);if(T&&T.invalidated)T.invalidated=!1,T.texture.invalidatedWidth-=T.width;if(T)return T;var x;if(y<=KMr)x=KMr;else if(y<=pTe)x=pTe;else x=Math.ceil(y/pTe)*pTe;if(y>bui||E>mui)return null;var k=l.getTextureQueue(x),A=k[k.length-2],R=function(){return l.recycleTexture(x,E)||l.addTexture(x,E)};if(!A)A=k[k.length-1];if(!A)A=R();if(A.width-A.usedWidtha;Z--)K=l.getElement(e,r,i,Z,Cq.downscale);Q()}else return l.queueElement(e,P.level-1),P;else{var Y;if(!L&&!B&&!D)for(var j=a-1;j>=xTe;j--){var te=p.get(e,j);if(te){Y=te;break}}if(N(Y))return l.queueElement(e,a),Y;A.context.translate(A.usedWidth,0),A.context.scale(m,m),this.drawElement(A.context,e,r,w,!1),A.context.scale(1/m,1/m),A.context.translate(-A.usedWidth,0)}return T={x:A.usedWidth,texture:A,level:a,scale:m,width:E,height:y,scaledLabelShown:w},A.usedWidth+=Math.ceil(E+pui),A.eleCaches.push(T),p.set(e,a,T),l.checkTextureFullness(A),T};lm.invalidateElements=function(e){for(var r=0;r=yui*e.width)this.retireTexture(e)};lm.checkTextureFullness=function(e){var r=this,i=r.getTextureQueue(e.height);if(e.usedWidth/e.width>vui&&e.fullnessChecks>=_ui)c7(i,e);else e.fullnessChecks++};lm.retireTexture=function(e){var r=this,i=e.height,a=r.getTextureQueue(i),o=this.lookup;c7(a,e),e.retired=!0;var l=e.eleCaches;for(var h=0;h=r)return h.retired=!1,h.usedWidth=0,h.invalidatedWidth=0,h.fullnessChecks=0,uot(h.eleCaches),h.context.setTransform(1,0,0,1,0,0),h.context.clearRect(0,0,h.width,h.height),c7(o,h),a.push(h),h}};lm.queueElement=function(e,r){var i=this,a=i.getElementQueue(),o=i.getElementKeyToQueue(),l=this.getKey(e),h=o[l];if(h)h.level=Math.max(h.level,r),h.eles.merge(e),h.reqs++,a.updateItem(h);else{var d={eles:e.spawn().merge(e),level:r,reqs:1,key:l};a.push(d),o[l]=d}};lm.dequeue=function(e){var r=this,i=r.getElementQueue(),a=r.getElementKeyToQueue(),o=[],l=r.lookup;for(var h=0;h0){var d=i.pop(),p=d.key,m=d.eles[0],y=l.hasCache(m,d.level);if(a[p]=null,y)continue;o.push(d);var E=r.getBoundingBox(m);r.getElement(m,E,e,d.level,Cq.dequeue)}else break;return o};lm.removeFromQueue=function(e){var r=this,i=r.getElementQueue(),a=r.getElementKeyToQueue(),o=this.getKey(e),l=a[o];if(l!=null)if(l.eles.length===1)l.reqs=lot,i.updateItem(l),i.pop(),a[o]=null;else l.eles.unmerge(e)};lm.onDequeue=function(e){this.onDequeues.push(e)};lm.offDequeue=function(e){c7(this.onDequeues,e)};lm.setupDequeueing=$Dr.setupDequeueing({deqRedrawThreshold:xui,deqCost:Eui,deqAvgCost:wui,deqNoDrawCost:Sui,deqFastCost:Tui,deq:function(r,i,a){return r.dequeue(i,a)},onDeqd:function(r,i){for(var a=0;a=Rui||i>FTe)return null}a.validateLayersElesOrdering(i,e);var p=a.layersByLevel,m=Math.pow(2,i),y=p[i]=p[i]||[],E,w=a.levelIsComplete(i,e),T,x=function(){var Q=function(X){if(a.validateLayersElesOrdering(X,e),a.levelIsComplete(X,e))return T=p[X],!0},Z=function(X){if(T)return;for(var W=i+X;Kie<=W&&W<=FTe;W+=X)if(Q(W))break};Z(1),Z(-1);for(var Y=y.length-1;Y>=0;Y--){var j=y[Y];if(j.invalid)c7(y,j)}};if(!w)x();else return y;var k=function(){if(!E){E=Ev();for(var Q=0;QQMr||j>QMr)return null;var te=Y*j;if(te>Bui)return null;var X=a.makeLayer(E,i);if(Z!=null){var W=y.indexOf(Z)+1;y.splice(W,0,X)}else if(Q.insert===void 0||Q.insert)y.unshift(X);return X};if(a.skipping&&!d)return null;var R=null,N=e.length/Aui,L=!d;for(var B=0;B=N||!M8r(R.bb,D.boundingBox())){if(R=A({insert:!0,after:R}),!R)return null}if(T||L)a.queueLayer(R,D);else a.drawEleInLayer(R,D,i,r);R.eles.push(D),F[i]=R}if(T)return T;if(L)return null;return y};J1.getEleLevelForLayerLevel=function(e,r){return e};J1.drawEleInLayer=function(e,r,i,a){var o=this,l=this.renderer,h=e.context,d=r.boundingBox();if(d.w===0||d.h===0||!r.visible())return;i=o.getEleLevelForLayerLevel(i,a),l.setImgSmoothing(h,!1),l.drawCachedElement(h,r,null,null,i,Fui),l.setImgSmoothing(h,!0)};J1.levelIsComplete=function(e,r){var i=this,a=i.layersByLevel[e];if(!a||a.length===0)return!1;var o=0;for(var l=0;l0)return!1;if(h.invalid)return!1;o+=h.eles.length}if(o!==r.length)return!1;return!0};J1.validateLayersElesOrdering=function(e,r){var i=this.layersByLevel[e];if(!i)return;for(var a=0;a0){r=!0;break}}return r};J1.invalidateElements=function(e){var r=this;if(e.length===0)return;if(r.lastInvalidationTime=JR(),e.length===0||!r.haveLayers())return;r.updateElementsInLayers(e,function(a,o,l){r.invalidateLayer(a)})};J1.invalidateLayer=function(e){if(this.lastInvalidationTime=JR(),e.invalid)return;var{level:r,eles:i}=e,a=this.layersByLevel[r];if(c7(a,e),e.elesQueue=[],e.invalid=!0,e.replacement)e.replacement.invalid=!0;for(var o=0;o3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,h=this,d=r._private.rscratch;if(l&&!r.visible())return;if(d.badLine||d.allpts==null||isNaN(d.allpts[0]))return;var p;if(i)p=i,e.translate(-p.x1,-p.y1);var m=l?r.pstyle("opacity").value:1,y=l?r.pstyle("line-opacity").value:1,E=r.pstyle("curve-style").value,w=r.pstyle("line-style").value,T=r.pstyle("width").pfValue,x=r.pstyle("line-cap").value,k=r.pstyle("line-outline-width").value,A=r.pstyle("line-outline-color").value,R=m*y,N=m*y,L=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R;if(E==="straight-triangle")h.eleStrokeStyle(e,r,X),h.drawEdgeTrianglePath(r,e,d.allpts);else e.lineWidth=T,e.lineCap=x,h.eleStrokeStyle(e,r,X),h.drawEdgePath(r,e,d.allpts,w),e.lineCap="butt"},B=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R;if(e.lineWidth=T+k,e.lineCap=x,k>0)h.colorStrokeStyle(e,A[0],A[1],A[2],X);else{e.lineCap="butt";return}if(E==="straight-triangle")h.drawEdgeTrianglePath(r,e,d.allpts);else h.drawEdgePath(r,e,d.allpts,w),e.lineCap="butt"},D=function(){if(!o)return;h.drawEdgeOverlay(e,r)},P=function(){if(!o)return;h.drawEdgeUnderlay(e,r)},F=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N;h.drawArrowheads(e,r,X)},H=function(){h.drawElementText(e,r,null,a)};e.lineJoin="round";var K=r.pstyle("ghost").value==="yes";if(K){var Q=r.pstyle("ghost-offset-x").pfValue,Z=r.pstyle("ghost-offset-y").pfValue,Y=r.pstyle("ghost-opacity").value,j=R*Y;e.translate(Q,Z),L(j),F(j),e.translate(-Q,-Z)}else B();if(P(),L(),F(),D(),H(),i)e.translate(p.x1,p.y1)};rI.drawEdgeOverlay=VDr("overlay");rI.drawEdgeUnderlay=VDr("underlay");rI.drawEdgePath=function(e,r,i,a){var o=e._private.rscratch,l=r,h,d=!1,p=this.usePaths(),m=e.pstyle("line-dash-pattern").pfValue,y=e.pstyle("line-dash-offset").pfValue;if(p){var E=i.join("$"),w=o.pathCacheKey&&o.pathCacheKey===E;if(w)h=r=o.pathCache,d=!0;else h=r=new Path2D,o.pathCacheKey=E,o.pathCache=h}if(l.setLineDash)switch(a){case"dotted":l.setLineDash([1,1]);break;case"dashed":l.setLineDash(m),l.lineDashOffset=y;break;case"solid":l.setLineDash([]);break}if(!d&&!o.badLine){if(r.beginPath)r.beginPath();switch(r.moveTo(i[0],i[1]),o.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var T=2;T+35&&arguments[5]!==void 0?arguments[5]:!0,h=this;if(a==null){if(l&&!h.eleTextBiggerThanMin(r))return}else if(a===!1)return;if(r.isNode()){var d=r.pstyle("label");if(!d||!d.value)return;var p=h.getLabelJustification(r),m=r.pstyle("text-metrics").strValue==="glyph";e.textAlign=p,e.textBaseline=m?"alphabetic":"bottom"}else{var y=r.element()._private.rscratch.badLine,E=r.pstyle("label"),w=r.pstyle("source-label"),T=r.pstyle("target-label");if(y||(!E||!E.value)&&(!w||!w.value)&&(!T||!T.value))return;e.textAlign="center",e.textBaseline="bottom"}var x=!i,k;if(i)k=i,e.translate(-k.x1,-k.y1);if(o==null){if(h.drawText(e,r,null,x,l),r.isEdge())h.drawText(e,r,"source",x,l),h.drawText(e,r,"target",x,l)}else h.drawText(e,r,o,x,l);if(i)e.translate(k.x1,k.y1)};OB.getFontCache=function(e){var r;this.fontCaches=this.fontCaches||[];for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:!0,a=r.pstyle("font-style").strValue,o=r.pstyle("font-size").pfValue+"px",l=r.pstyle("font-family").strValue,h=r.pstyle("font-weight").strValue,d=i?r.effectiveOpacity()*r.pstyle("text-opacity").value:1,p=r.pstyle("text-outline-opacity").value*d,m=r.pstyle("color").value,y=r.pstyle("text-outline-color").value;e.font=a+" "+h+" "+o+" "+l,e.lineJoin="round",this.colorFillStyle(e,m[0],m[1],m[2],d),this.colorStrokeStyle(e,y[0],y[1],y[2],p)};OB.getTextAngle=function(e,r){var i,a=e._private,o=a.rscratch,l=r?r+"-":"",h=e.pstyle(l+"text-rotation");if(h.strValue==="autorotate"){var d=_v(o,"labelAngle",r);i=e.isEdge()?d:0}else if(h.strValue==="none")i=0;else i=h.pfValue;return i};OB.drawText=function(e,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=r._private,h=l.rscratch,d=o?r.effectiveOpacity():1;if(o&&(d===0||r.pstyle("text-opacity").value===0))return;if(i==="main")i=null;var p=_v(h,"labelX",i),m=_v(h,"labelY",i),y,E,w=this.getLabelText(r,i);if(w!=null&&w!==""&&!isNaN(p)&&!isNaN(m)){this.setupTextStyle(e,r,o);var T=i?i+"-":"",x=_v(h,"labelWidth",i),k=_v(h,"labelHeight",i),A=_v(h,"labelActualDescent",i),R=r.pstyle(T+"text-margin-x").pfValue,N=r.pstyle(T+"text-margin-y").pfValue,L=r.isEdge(),B=r.pstyle("text-halign").value,D=r.pstyle("text-valign").value;if(L)B="center",D="center";p+=R,m+=N;var P;if(!a)P=0;else P=this.getTextAngle(r,i);if(P!==0)y=p,E=m,e.translate(y,E),e.rotate(P),p=0,m=0;var F=Mq(B),H=Dq(D);switch(H){case"top":break;case"center":m+=k/2;break;case"bottom":m+=k;break}var K=r.pstyle("text-background-opacity").value,Q=r.pstyle("text-border-opacity").value,Z=r.pstyle("text-border-width").pfValue,Y=r.pstyle("text-background-padding").pfValue,j=r.pstyle("text-background-shape").strValue,te=j==="round-rectangle"||j==="roundrectangle",X=j==="circle",W=2;if(K>0||Z>0&&Q>0){var{fillStyle:J,strokeStyle:z,lineWidth:ne}=e,ie=r.pstyle("text-background-color").value,le=r.pstyle("text-border-color").value,se=r.pstyle("text-border-style").value,he=K>0,ye=Z>0&&Q>0,xe=p-Y;switch(F){case"left":xe-=x;break;case"center":xe-=x/2;break}var Ie=m-k-Y,Ee=x+2*Y,Ue=k+2*Y;if(he)e.fillStyle="rgba(".concat(ie[0],",").concat(ie[1],",").concat(ie[2],",").concat(K*d,")");if(ye){if(e.strokeStyle="rgba(".concat(le[0],",").concat(le[1],",").concat(le[2],",").concat(Q*d,")"),e.lineWidth=Z,e.setLineDash)switch(se){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=Z/4,e.setLineDash([]);break;case"solid":default:e.setLineDash([]);break}}if(te)e.beginPath(),t8r(e,xe,Ie,Ee,Ue,W);else if(X)e.beginPath(),Kui(e,xe,Ie,Ee,Ue);else e.beginPath(),e.rect(xe,Ie,Ee,Ue);if(he)e.fill();if(ye)e.stroke();if(ye&&se==="double"){var Me=Z/2;if(e.beginPath(),te)t8r(e,xe+Me,Ie+Me,Ee-2*Me,Ue-2*Me,W);else e.rect(xe+Me,Ie+Me,Ee-2*Me,Ue-2*Me);e.stroke()}if(e.fillStyle=J,e.strokeStyle=z,e.lineWidth=ne,e.setLineDash)e.setLineDash([])}var Xe=2*r.pstyle("text-outline-width").pfValue;if(Xe>0)e.lineWidth=Xe;if(m-=A,r.pstyle("text-wrap").value==="wrap"){var je=_v(h,"labelWrapCachedLines",i),Qe=_v(h,"labelLineHeight",i),St=x/2,pt=this.getLabelJustification(r);if(pt==="auto");else if(F==="left"){if(pt==="left")p+=-x;else if(pt==="center")p+=-St}else if(F==="center"){if(pt==="left")p+=-St;else if(pt==="right")p+=St}else if(F==="right"){if(pt==="center")p+=St;else if(pt==="right")p+=x}switch(H){case"top":m-=(je.length-1)*Qe;break;case"center":case"bottom":m-=(je.length-1)*Qe;break}for(var Vt=0;Vt0)e.strokeText(je[Vt],p,m);e.fillText(je[Vt],p,m),m+=Qe}}else{if(Xe>0)e.strokeText(w,p,m);e.fillText(w,p,m)}if(P!==0)e.rotate(-P),e.translate(-y,-E)}};b7={};b7.drawNode=function(e,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,h=this,d,p,m=r._private,y=m.rscratch,E=r.position();if(!Sa(E.x)||!Sa(E.y))return;if(l&&!r.visible())return;var w=l?r.effectiveOpacity():1,T=h.usePaths(),x,k=!1,A=r.padding();d=r.width()+2*A,p=r.height()+2*A;var R;if(i)R=i,e.translate(-R.x1,-R.y1);var N=r.pstyle("background-image"),L=N.value,B=Array(L.length),D=Array(L.length),P=0;for(var F=0;F0&&arguments[0]!==void 0?arguments[0]:j;h.eleFillStyle(e,r,be)},Me=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:le;h.colorStrokeStyle(e,te[0],te[1],te[2],be)},Xe=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xe;h.colorStrokeStyle(e,he[0],he[1],he[2],be)},je=function(be,ze,Ce,_e){var ke=h.nodePathCache=h.nodePathCache||[],it=C8r(Ce==="polygon"?Ce+","+_e.join(","):Ce,""+ze,""+be,""+Ee),ut=ke[it],gt,vt=!1;if(ut!=null)gt=ut,vt=!0,y.pathCache=gt;else gt=new Path2D,ke[it]=y.pathCache=gt;return{path:gt,cacheHit:vt}},Qe=r.pstyle("shape").strValue,St=r.pstyle("shape-polygon-points").pfValue;if(T){e.translate(E.x,E.y);var pt=je(d,p,Qe,St);x=pt.path,k=pt.cacheHit}var Vt=function(){if(!k){var be=E;if(T)be={x:0,y:0};h.nodeShapes[h.getNodeShape(r)].draw(x||e,be.x,be.y,d,p,Ee,y)}if(T)e.fill(x);else e.fill()},Xt=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ce=m.backgrounding,_e=0;for(var ke=0;ke0&&arguments[0]!==void 0?arguments[0]:!1,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w;if(h.hasPie(r)){if(h.drawPie(e,r,ze),be){if(!T)h.nodeShapes[h.getNodeShape(r)].draw(e,E.x,E.y,d,p,Ee,y)}}},We=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w;if(h.hasStripe(r)){if(e.save(),T)e.clip(y.pathCache);else h.nodeShapes[h.getNodeShape(r)].draw(e,E.x,E.y,d,p,Ee,y),e.clip();if(h.drawStripe(e,r,ze),e.restore(),be){if(!T)h.nodeShapes[h.getNodeShape(r)].draw(e,E.x,E.y,d,p,Ee,y)}}},Nt=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w,ze=(Z>0?Z:-Z)*be,Ce=Z>0?0:255;if(Z!==0)if(h.colorFillStyle(e,Ce,Ce,Ce,ze),T)e.fill(x);else e.fill()},ct=function(){if(Y>0){if(e.lineWidth=Y,e.lineCap=J,e.lineJoin=W,e.setLineDash)switch(X){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(ne),e.lineDashOffset=ie;break;case"solid":case"double":e.setLineDash([]);break}if(z!=="center"){if(e.save(),e.lineWidth*=2,z==="inside")T?e.clip(x):e.clip();else{var be=new Path2D;be.rect(-d/2-Y,-p/2-Y,d+2*Y,p+2*Y),be.addPath(x),e.clip(be,"evenodd")}T?e.stroke(x):e.stroke(),e.restore()}else T?e.stroke(x):e.stroke();if(X==="double"){e.lineWidth=Y/3;var ze=e.globalCompositeOperation;if(e.globalCompositeOperation="destination-out",T)e.stroke(x);else e.stroke();e.globalCompositeOperation=ze}if(e.setLineDash)e.setLineDash([])}},bt=function(){if(se>0){if(e.lineWidth=se,e.lineCap="butt",e.setLineDash)switch(ye){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var be=E;if(T)be={x:0,y:0};var ze=h.getNodeShape(r),Ce=Y;if(z==="inside")Ce=0;if(z==="outside")Ce*=2;var _e=(d+Ce+(se+Ie))/d,ke=(p+Ce+(se+Ie))/p,it=d*_e,ut=p*ke,gt=h.nodeShapes[ze].points,vt;if(T){var ir=je(it,ut,ze,gt);vt=ir.path}if(ze==="ellipse")h.drawEllipsePath(vt||e,be.x,be.y,it,ut);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(ze)){var qt=0,cr=0,tr=0;if(ze==="round-diamond")qt=(Ce+Ie+se)*1.4;else if(ze==="round-heptagon")qt=(Ce+Ie+se)*1.075,tr=-(Ce/2+Ie+se)/35;else if(ze==="round-hexagon")qt=(Ce+Ie+se)*1.12;else if(ze==="round-pentagon")qt=(Ce+Ie+se)*1.13,tr=-(Ce/2+Ie+se)/15;else if(ze==="round-tag")qt=(Ce+Ie+se)*1.12,cr=(Ce/2+se+Ie)*0.07;else if(ze==="round-triangle")qt=(Ce+Ie+se)*(Math.PI/2),tr=-(Ce+Ie/2+se)/Math.PI;if(qt!==0){if(_e=(d+qt)/d,it=d*_e,!["round-hexagon","round-tag"].includes(ze))ke=(p+qt)/p,ut=p*ke}Ee=Ee==="auto"?B8r(it,ut):Ee;var Zt=it/2,lr=ut/2,Kt=Ee+(Ce+se+Ie)/2,In=Array(gt.length/2),Et=Array(gt.length/2);for(var Xn=0;Xn=w)return;for(var A=1;A<=o.pieBackgroundN;A++){var R=r.pstyle("pie-"+A+"-background-size").value,N=r.pstyle("pie-"+A+"-background-color").value,L=r.pstyle("pie-"+A+"-background-opacity").value*i,B=R/100;if(B+x>1)B=1-x;var D=1.5*Math.PI+2*Math.PI*x;D+=d;var P=2*Math.PI*B,F=D+P;if(R===0||x>=1||x+B>1)continue;if(T===0)e.beginPath(),e.moveTo(p,m),e.arc(p,m,w,D,F),e.closePath();else e.beginPath(),e.arc(p,m,w,D,F),e.arc(p,m,T,F,D,!0),e.closePath();this.colorFillStyle(e,N[0],N[1],N[2],L),e.fill(),x+=B}};b7.drawStripe=function(e,r,i,a){r=r[0],a=a||r.position();var o=r.cy().style(),l=a.x,h=a.y,d=r.width(),p=r.height(),m=0,y=this.usePaths();e.save();var E=r.pstyle("stripe-direction").value,w=r.pstyle("stripe-size");switch(E){case"vertical":break;case"righward":e.rotate(-Math.PI/2);break}var T=d,x=p;if(w.units==="%")T=T*w.pfValue,x=x*w.pfValue;else if(w.pfValue!==void 0)T=w.pfValue,x=w.pfValue;if(y)l=0,h=0;h-=T/2,l-=x/2;for(var k=1;k<=o.stripeBackgroundN;k++){var A=r.pstyle("stripe-"+k+"-background-size").value,R=r.pstyle("stripe-"+k+"-background-color").value,N=r.pstyle("stripe-"+k+"-background-opacity").value*i,L=A/100;if(L+m>1)L=1-m;if(A===0||m>=1||m+L>1)continue;e.beginPath(),e.rect(l,h+x*m,T,x*L),e.closePath(),this.colorFillStyle(e,R[0],R[1],R[2],N),e.fill(),m+=L}e.restore()};wv={};wv.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var r=this.cy.window(),i=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(r.devicePixelRatio||1)/i};wv.paintCache=function(e){var r=this.paintCaches=this.paintCaches||[],i=!0,a;for(var o=0;or.minMbLowQualFrames)r.motionBlurPxRatio=r.mbPxRBlurry}if(r.clearingMotionBlur)r.motionBlurPxRatio=1;if(r.textureDrawLastFrame&&!E)y[r.NODE]=!0,y[r.SELECT_BOX]=!0;var N=i.style(),L=i.zoom(),B=h!==void 0?h:L,D=i.pan(),P={x:D.x,y:D.y},F={zoom:L,pan:{x:D.x,y:D.y}},H=r.prevViewport,K=H===void 0||F.zoom!==H.zoom||F.pan.x!==H.pan.x||F.pan.y!==H.pan.y;if(!K&&!(k&&!x))r.motionBlurPxRatio=1;if(d)P=d;B*=p,P.x*=p,P.y*=p;var Q=r.getCachedZSortedEles();function Z(Me,Xe,je,Qe,St){var pt=Me.globalCompositeOperation;Me.globalCompositeOperation="destination-out",r.colorFillStyle(Me,255,255,255,r.motionBlurTransparency),Me.fillRect(Xe,je,Qe,St),Me.globalCompositeOperation=pt}function Y(Me,Xe){var je,Qe,St,pt;if(!r.clearingMotionBlur&&(Me===m.bufferContexts[r.MOTIONBLUR_BUFFER_NODE]||Me===m.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG]))je={x:D.x*T,y:D.y*T},Qe=L*T,St=r.canvasWidth*T,pt=r.canvasHeight*T;else je=P,Qe=B,St=r.canvasWidth,pt=r.canvasHeight;if(Me.setTransform(1,0,0,1,0,0),Xe==="motionBlur")Z(Me,0,0,St,pt);else if(!a&&(Xe===void 0||Xe))Me.clearRect(0,0,St,pt);if(!o)Me.translate(je.x,je.y),Me.scale(Qe,Qe);if(d)Me.translate(d.x,d.y);if(h)Me.scale(h,h)}if(!E)r.textureDrawLastFrame=!1;if(E){if(r.textureDrawLastFrame=!0,!r.textureCache){r.textureCache={},r.textureCache.bb=i.mutableElements().boundingBox(),r.textureCache.texture=r.data.bufferCanvases[r.TEXTURE_BUFFER];var j=r.data.bufferContexts[r.TEXTURE_BUFFER];j.setTransform(1,0,0,1,0,0),j.clearRect(0,0,r.canvasWidth*r.textureMult,r.canvasHeight*r.textureMult),r.render({forcedContext:j,drawOnlyNodeLayer:!0,forcedPxRatio:p*r.textureMult});var F=r.textureCache.viewport={zoom:i.zoom(),pan:i.pan(),width:r.canvasWidth,height:r.canvasHeight};F.mpan={x:(0-F.pan.x)/F.zoom,y:(0-F.pan.y)/F.zoom}}y[r.DRAG]=!1,y[r.NODE]=!1;var te=m.contexts[r.NODE],X=r.textureCache.texture,F=r.textureCache.viewport;if(te.setTransform(1,0,0,1,0,0),w)Z(te,0,0,F.width,F.height);else te.clearRect(0,0,F.width,F.height);var W=N.core("outside-texture-bg-color").value,J=N.core("outside-texture-bg-opacity").value;r.colorFillStyle(te,W[0],W[1],W[2],J),te.fillRect(0,0,F.width,F.height);var L=i.zoom();Y(te,!1),te.clearRect(F.mpan.x,F.mpan.y,F.width/F.zoom/p,F.height/F.zoom/p),te.drawImage(X,F.mpan.x,F.mpan.y,F.width/F.zoom/p,F.height/F.zoom/p)}else if(r.textureOnViewport&&!a)r.textureCache=null;var z=i.extent(),ne=r.pinching||r.hoverData.dragging||r.swipePanning||r.data.wheelZooming||r.hoverData.draggingEles||r.cy.animated(),ie=r.hideEdgesOnViewport&&ne,le=[];if(le[r.NODE]=!y[r.NODE]&&w&&!r.clearedForMotionBlur[r.NODE]||r.clearingMotionBlur,le[r.NODE])r.clearedForMotionBlur[r.NODE]=!0;if(le[r.DRAG]=!y[r.DRAG]&&w&&!r.clearedForMotionBlur[r.DRAG]||r.clearingMotionBlur,le[r.DRAG])r.clearedForMotionBlur[r.DRAG]=!0;if(y[r.NODE]||o||l||le[r.NODE]){var se=w&&!le[r.NODE]&&T!==1,te=a||(se?r.data.bufferContexts[r.MOTIONBLUR_BUFFER_NODE]:m.contexts[r.NODE]),he=w&&!se?"motionBlur":void 0;if(Y(te,he),ie)r.drawCachedNodes(te,Q.nondrag,p,z);else r.drawLayeredElements(te,Q.nondrag,p,z);if(r.debug)r.drawDebugPoints(te,Q.nondrag);if(!o&&!w)y[r.NODE]=!1}if(!l&&(y[r.DRAG]||o||le[r.DRAG])){var se=w&&!le[r.DRAG]&&T!==1,te=a||(se?r.data.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG]:m.contexts[r.DRAG]);if(Y(te,w&&!se?"motionBlur":void 0),ie)r.drawCachedNodes(te,Q.drag,p,z);else r.drawCachedElements(te,Q.drag,p,z);if(r.debug)r.drawDebugPoints(te,Q.drag);if(!o&&!w)y[r.DRAG]=!1}if(this.drawSelectionRectangle(e,Y),w&&T!==1){var ye=m.contexts[r.NODE],xe=r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_NODE],Ie=m.contexts[r.DRAG],Ee=r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_DRAG],Ue=function(Xe,je,Qe){if(Xe.setTransform(1,0,0,1,0,0),Qe||!R)Xe.clearRect(0,0,r.canvasWidth,r.canvasHeight);else Z(Xe,0,0,r.canvasWidth,r.canvasHeight);var St=T;Xe.drawImage(je,0,0,r.canvasWidth*St,r.canvasHeight*St,0,0,r.canvasWidth,r.canvasHeight)};if(y[r.NODE]||le[r.NODE])Ue(ye,xe,le[r.NODE]),y[r.NODE]=!1;if(y[r.DRAG]||le[r.DRAG])Ue(Ie,Ee,le[r.DRAG]),y[r.DRAG]=!1}if(r.prevViewport=F,r.clearingMotionBlur)r.clearingMotionBlur=!1,r.motionBlurCleared=!0,r.motionBlur=!0;if(w)r.motionBlurTimeout=setTimeout(function(){r.motionBlurTimeout=null,r.clearedForMotionBlur[r.NODE]=!1,r.clearedForMotionBlur[r.DRAG]=!1,r.motionBlur=!1,r.clearingMotionBlur=!E,r.mbFrames=0,y[r.NODE]=!0,y[r.DRAG]=!0,r.redraw()},Xui);if(!a)i.emit("render")};wv.drawSelectionRectangle=function(e,r){var i=this,{cy:a,data:o}=i,l=a.style(),{drawOnlyNodeLayer:h,drawAllLayers:d}=e,p=o.canvasNeedsRedraw,m=e.forcedContext;if(i.showFps||!h&&p[i.SELECT_BOX]&&!d){var y=m||o.contexts[i.SELECT_BOX];if(r(y),i.selection[4]==1&&(i.hoverData.selecting||i.touchData.selecting)){var E=i.cy.zoom(),w=l.core("selection-box-border-width").value/E;if(y.lineWidth=w,y.fillStyle="rgba("+l.core("selection-box-color").value[0]+","+l.core("selection-box-color").value[1]+","+l.core("selection-box-color").value[2]+","+l.core("selection-box-opacity").value+")",y.fillRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1]),w>0)y.strokeStyle="rgba("+l.core("selection-box-border-color").value[0]+","+l.core("selection-box-border-color").value[1]+","+l.core("selection-box-border-color").value[2]+","+l.core("selection-box-opacity").value+")",y.strokeRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1])}if(o.bgActivePosistion&&!i.hoverData.selecting){var E=i.cy.zoom(),T=o.bgActivePosistion;y.fillStyle="rgba("+l.core("active-bg-color").value[0]+","+l.core("active-bg-color").value[1]+","+l.core("active-bg-color").value[2]+","+l.core("active-bg-opacity").value+")",y.beginPath(),y.arc(T.x,T.y,l.core("active-bg-size").pfValue/E,0,2*Math.PI),y.fill()}var x=i.lastRedrawTime;if(i.showFps&&x){x=Math.round(x);var k=Math.round(1000/x),A="1 frame = "+x+" ms = "+k+" fps";if(y.setTransform(1,0,0,1,0,0),y.fillStyle="rgba(255, 0, 0, 0.75)",y.strokeStyle="rgba(255, 0, 0, 0.75)",y.font="30px Arial",!zie){var R=y.measureText(A);zie=R.actualBoundingBoxAscent}y.fillText(A,0,zie);var N=60;y.strokeRect(0,zie+10,250,20),y.fillRect(0,zie+10,250*Math.min(k/N,1),20)}if(!d)p[i.SELECT_BOX]=!1}};n8r=typeof Float32Array<"u"?Float32Array:Array;if(!Math.hypot)Math.hypot=function(){var e=0,r=arguments.length;while(r--)e+=arguments[r]*arguments[r];return Math.sqrt(e)};hhi=function(){function e(r,i,a,o){p7(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=r,this.texSize=i,this.texRows=a,this.texHeight=Math.floor(i/a),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=o(r,i,i),this.scratch=o(r,i,this.texHeight,"scratch")}return g7(e,[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(i){var{w:a,h:o}=i,l=this.texHeight,h=this.texSize,d=l/o,p=a*d,m=o*d;if(p>h)d=h/a,p=a*d,m=o*d;return{scale:d,texW:p,texH:m}}},{key:"draw",value:function(i,a,o){var l=this;if(this.locked)throw Error("can't draw, atlas is locked");var h=this.texSize,d=this.texRows,p=this.texHeight,m=this.getScale(a),{scale:y,texW:E,texH:w}=m,T=function(L,B){if(o&&B){var D=B.context,{x:P,row:F}=L,H=P,K=p*F;D.save(),D.translate(H,K),D.scale(y,y),o(D,a),D.restore()}},x=[null,null],k=function(){if(T(l.freePointer,l.canvas),x[0]={x:l.freePointer.x,y:l.freePointer.row*p,w:E,h:w},x[1]={x:l.freePointer.x+E,y:l.freePointer.row*p,w:0,h:w},l.freePointer.x+=E,l.freePointer.x==h)l.freePointer.x=0,l.freePointer.row++},A=function(){var{scratch:L,canvas:B}=l;L.clear(),T({x:0,row:0},L);var D=h-l.freePointer.x,P=E-D,F=p;{var H=l.freePointer.x,K=l.freePointer.row*p,Q=D;B.context.drawImage(L,0,0,Q,F,H,K,Q,F),x[0]={x:H,y:K,w:Q,h:w}}{var Z=D,Y=(l.freePointer.row+1)*p,j=P;if(B)B.context.drawImage(L,Z,0,j,F,0,Y,j,F);x[1]={x:0,y:Y,w:j,h:w}}l.freePointer.x=P,l.freePointer.row++},R=function(){l.freePointer.x=0,l.freePointer.row++};if(this.freePointer.x+E<=h)k();else if(this.freePointer.row>=d-1)return!1;else if(this.freePointer.x===h)R(),k();else if(this.enableWrapping)A();else R(),k();return this.keyToLocation.set(i,x),this.needsBuffer=!0,x}},{key:"getOffsets",value:function(i){return this.keyToLocation.get(i)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(i){if(this.locked)return!1;var a=this.texSize,o=this.texRows,l=this.getScale(i),h=l.texW;if(this.freePointer.x+h>a)return this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},l=o.forceRedraw,h=l===void 0?!1:l,d=o.filterEle,p=d===void 0?function(){return!0}:d,m=o.filterType,y=m===void 0?function(){return!0}:m,E=!1,w=!1,T=a2(i),x;try{for(T.s();!(x=T.n()).done;){var k=x.value;if(p(k)){var A=a2(this.renderTypes.values()),R;try{var N=function(){var B=R.value,D=B.type;if(y(D)){var P=a.collections.get(B.collection),F=B.getKey(k),H=Array.isArray(F)?F:[F];if(h)H.forEach(function(Y){return P.markKeyForGC(Y)}),w=!0;else{var K=B.getID?B.getID(k):k.id(),Q=a._key(D,K),Z=a.typeAndIdToKey.get(Q);if(Z!==void 0&&!rhi(H,Z))E=!0,a.typeAndIdToKey.delete(Q),Z.forEach(function(Y){return P.markKeyForGC(Y)})}}};for(A.s();!(R=A.n()).done;)N()}catch(L){A.e(L)}finally{A.f()}}}}catch(L){T.e(L)}finally{T.f()}if(w)this.gc(),E=!1;return E}},{key:"gc",value:function(){var i=a2(this.collections.values()),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;o.gc()}}catch(l){i.e(l)}finally{i.f()}}},{key:"getOrCreateAtlas",value:function(i,a,o,l){var h=this.renderTypes.get(a),d=this.collections.get(h.collection),p=!1,m=d.draw(l,o,function(w){if(h.drawClipped)w.save(),w.beginPath(),w.rect(0,0,o.w,o.h),w.clip(),h.drawElement(w,i,o,!0,!0),w.restore();else h.drawElement(w,i,o,!0,!0);p=!0});if(p){var y=h.getID?h.getID(i):i.id(),E=this._key(a,y);if(this.typeAndIdToKey.has(E))this.typeAndIdToKey.get(E).push(l);else this.typeAndIdToKey.set(E,[l])}return m}},{key:"getAtlasInfo",value:function(i,a){var o=this,l=this.renderTypes.get(a),h=l.getKey(i),d=Array.isArray(h)?h:[h];return d.map(function(p){var m=l.getBoundingBox(i,p),y=o.getOrCreateAtlas(i,a,m,p),E=y.getOffsets(p),w=gg(E,2),T=w[0],x=w[1];return{atlas:y,tex:T,tex1:T,tex2:x,bb:m}})}},{key:"getDebugInfo",value:function(){var i=[],a=a2(this.collections),o;try{for(a.s();!(o=a.n()).done;){var l=gg(o.value,2),h=l[0],d=l[1],p=d.getCounts(),{keyCount:m,atlasCount:y}=p;i.push({type:h,keyCount:m,atlasCount:y})}}catch(E){a.e(E)}finally{a.f()}return i}}])}(),ghi=function(){function e(r){p7(this,e),this.globalOptions=r,this.atlasSize=r.webglTexSize,this.maxAtlasesPerBatch=r.webglTexPerBatch,this.batchAtlases=[]}return g7(e,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(i,a){return a})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(i){if(this.batchAtlases.length===this.maxAtlasesPerBatch)return this.batchAtlases.includes(i);return!0}},{key:"getAtlasIndexForBatch",value:function(i){var a=this.batchAtlases.indexOf(i);if(a<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error("cannot add more atlases to batch");this.batchAtlases.push(i),a=this.batchAtlases.length-1}return a}}])}(),Xie={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},$Te={IGNORE:1,USE_BB:2},_hi=function(){function e(r,i,a){p7(this,e),this.r=r,this.gl=i,this.maxInstances=a.webglBatchSize,this.atlasSize=a.webglTexSize,this.bgColor=a.bgColor,this.debug=a.webglDebug,this.batchDebugInfo=[],a.enableWrapping=!0,a.createTextureCanvas=Zui,this.atlasManager=new phi(r,a),this.batchManager=new ghi(a),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Xie.SCREEN),this.pickingProgram=this._createShaderProgram(Xie.PICKING),this.vao=this._createVAO()}return g7(e,[{key:"addAtlasCollection",value:function(i,a){this.atlasManager.addAtlasCollection(i,a)}},{key:"addTextureAtlasRenderType",value:function(i,a){this.atlasManager.addRenderType(i,a)}},{key:"addSimpleShapeRenderType",value:function(i,a){this.simpleShapeOptions.set(i,a)}},{key:"invalidate",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.type,l=this.atlasManager;if(o)return l.invalidate(i,{filterType:function(d){return d===o},forceRedraw:!0});else return l.invalidate(i)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(i){var a=this.gl,o=`#version 300 es +*/pDr.prototype={instanceString:function(){return"event"},recycle:function(r,i){if(this.isImmediatePropagationStopped=this.isPropagationStopped=this.isDefaultPrevented=Vie,r!=null&&r.preventDefault)this.type=r.type,this.isDefaultPrevented=r.defaultPrevented?fTe:Vie;else if(r!=null&&r.type)i=r;else this.type=r;if(i!=null)this.originalEvent=i.originalEvent,this.type=i.type!=null?i.type:this.type,this.cy=i.cy,this.target=i.target,this.position=i.position,this.renderedPosition=i.renderedPosition,this.namespace=i.namespace,this.layout=i.layout;if(this.cy!=null&&this.position!=null&&this.renderedPosition==null){var a=this.position,o=this.cy.zoom(),l=this.cy.pan();this.renderedPosition={x:a.x*o+l.x,y:a.y*o+l.y}}this.timeStamp=r&&r.timeStamp||Date.now()},preventDefault:function(){this.isDefaultPrevented=fTe;var r=this.originalEvent;if(!r)return;if(r.preventDefault)r.preventDefault()},stopPropagation:function(){this.isPropagationStopped=fTe;var r=this.originalEvent;if(!r)return;if(r.stopPropagation)r.stopPropagation()},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=fTe,this.stopPropagation()},isDefaultPrevented:Vie,isPropagationStopped:Vie,isImmediatePropagationStopped:Vie};gDr=/^([^.]+)(\.(?:[^.]+))?$/,mDr={qualifierCompare:function(r,i){return r===i},eventMatches:function(){return!0},addEventFields:function(){},callbackContext:function(r){return r},beforeEmit:function(){},afterEmit:function(){},bubble:function(){return!1},parent:function(){return null},context:null},IMr=Object.keys(mDr),vci={};g7=exe.prototype;g7.on=g7.addListener=function(e,r,i,a,o){return bDr(this,function(l,h,d,p,m,y,v){if(ap(y))l.listeners.push({event:h,callback:y,type:d,namespace:p,qualifier:m,conf:v})},e,r,i,a,o),this};g7.one=function(e,r,i,a){return this.on(e,r,i,a,{one:!0})};g7.removeListener=g7.off=function(e,r,i,a){var o=this;if(this.emitting!==0)this.listeners=ssi(this.listeners);var l=this.listeners,h=function(m){var y=l[m];bDr(o,function(v,w,T,x,k,A){if((y.type===T||e==="*")&&(!x&&y.namespace!==".*"||y.namespace===x)&&(!k||v.qualifierCompare(y.qualifier,k))&&(!A||y.callback===A))return l.splice(m,1),!1},e,r,i,a)};for(var d=l.length-1;d>=0;d--)h(d);return this};g7.removeAllListeners=function(){return this.removeListener("*")};g7.emit=g7.trigger=function(e,r,i){var a=this.listeners,o=a.length;if(this.emitting++,!hd(r))r=[r];return _ci(this,function(l,h){if(i!=null)a=[{event:h.event,type:h.type,namespace:h.namespace,callback:i}],o=a.length;var d=function(){var y=a[p];if(y.type===h.type&&(!y.namespace||y.namespace===h.namespace||y.namespace===yci)&&l.eventMatches(l.context,y,h)){var v=[h];if(r!=null)lsi(v,r);if(l.beforeEmit(l.context,y,h),y.conf&&y.conf.one)l.listeners=l.listeners.filter(function(x){return x!==y});var w=l.callbackContext(l.context,y,h),T=y.callback.apply(w,v);if(l.afterEmit(l.context,y,h),T===!1)h.stopPropagation(),h.preventDefault()}};for(var p=0;p1&&!h){var d=this.length-1,p=this[d],m=p._private.data.id;this[d]=void 0,this[r]=p,l.set(m,{ele:p,index:r})}return this.length--,this},unmergeOne:function(r){r=r[0];var i=this._private,a=r._private.data.id,o=i.map,l=o.get(a);if(!l)return this;var h=l.index;return this.unmergeAt(h),this},unmerge:function(r){var i=this._private.cy;if(!r)return this;if(r&&Ws(r)){var a=r;r=i.mutableElements().filter(a)}for(var o=0;o=0;i--){var a=this[i];if(r(a))this.unmergeAt(i)}return this},map:function(r,i){var a=[],o=this;for(var l=0;la)a=p,o=d}return{value:a,ele:o}},min:function(r,i){var a=1/0,o,l=this;for(var h=0;h=0&&l1&&arguments[1]!==void 0?arguments[1]:!0,a=this[0],o=a.cy();if(!o.styleEnabled())return;if(a){if(a._private.styleDirty)a._private.styleDirty=!1,o.style().apply(a);var l=a._private.style[r];if(l!=null)return l;else if(i)return o.style().getDefaultProperty(r);else return null}},numericStyle:function(r){var i=this[0];if(!i.cy().styleEnabled())return;if(i){var a=i.pstyle(r);return a.pfValue!==void 0?a.pfValue:a.value}},numericStyleUnits:function(r){var i=this[0];if(!i.cy().styleEnabled())return;if(i)return i.pstyle(r).units},renderedStyle:function(r){var i=this.cy();if(!i.styleEnabled())return this;var a=this[0];if(a)return i.style().getRenderedStyle(a,r)},style:function(r,i){var a=this.cy();if(!a.styleEnabled())return this;var o=!1,l=a.style();if(uu(r)){var h=r;l.applyBypass(this,h,o),this.emitAndNotify("style")}else if(Ws(r))if(i===void 0){var d=this[0];if(d)return l.getStylePropertyValue(d,r);else return}else l.applyBypass(this,r,i,o),this.emitAndNotify("style");else if(r===void 0){var p=this[0];if(p)return l.getRawStyle(p);else return}return this},removeStyle:function(r){var i=this.cy();if(!i.styleEnabled())return this;var a=!1,o=i.style(),l=this;if(r===void 0)for(var h=0;h0)r.push(y[0]);r.push(d[0])}}return this.spawn(r,!0).filter(e)},"neighborhood"),closedNeighborhood:function(r){return this.neighborhood().add(this).filter(r)},openNeighborhood:function(r){return this.neighborhood(r)}});ny.neighbourhood=ny.neighborhood;ny.closedNeighbourhood=ny.closedNeighborhood;ny.openNeighbourhood=ny.openNeighborhood;Eo(ny,{source:oT(function(r){var i=this[0],a;if(i)a=i._private.source||i.cy().collection();return a&&r?a.filter(r):a},"source"),target:oT(function(r){var i=this[0],a;if(i)a=i._private.target||i.cy().collection();return a&&r?a.filter(r):a},"target"),sources:PMr({attr:"source"}),targets:PMr({attr:"target"})});Eo(ny,{edgesWith:oT(BMr(),"edgesWith"),edgesTo:oT(BMr({thisIsSrc:!0}),"edgesTo")});Eo(ny,{connectedEdges:oT(function(e){var r=[],i=this;for(var a=0;a0);return h},component:function(){var r=this[0];return r.cy().mutableElements().components(r)[0]}});ny.componentsOf=ny.components;Cd=YTe.prototype=Q1.prototype=Object.create(Array.prototype);Cd.instanceString=function(){return"collection"};Cd.spawn=function(e,r){return new Q1(this.cy(),e,r)};Cd.spawnSelf=function(){return this.spawn(this)};Cd.cy=function(){return this._private.cy};Cd.renderer=function(){return this._private.cy.renderer()};Cd.element=function(){return this[0]};Cd.collection=function(){if(_8r(this))return this;else return new Q1(this._private.cy,[this])};Cd.unique=function(){return new Q1(this._private.cy,this,!0)};Cd.hasElementWithId=function(e){return e=""+e,this._private.map.has(e)};Cd.getElementById=function(e){e=""+e;var r=this._private.cy,i=this._private.map.get(e);return i?i.ele:new Q1(r)};Cd.$id=Cd.getElementById;Cd.poolIndex=function(){var e=this._private.cy,r=e._private.elements,i=this[0]._private.data.id;return r._private.map.get(i).index};Cd.indexOf=function(e){var r=e[0]._private.data.id;return this._private.map.get(r).index};Cd.indexOfId=function(e){return e=""+e,this._private.map.get(e).index};Cd.json=function(e){var r=this.element(),i=this.cy();if(r==null&&e)return this;if(r==null)return;var a=r._private;if(uu(e)){if(i.startBatch(),e.data){r.data(e.data);var o=a.data;if(r.isEdge()){var l=!1,h={},d=e.data.source,p=e.data.target;if(d!=null&&d!=o.source)h.source=""+d,l=!0;if(p!=null&&p!=o.target)h.target=""+p,l=!0;if(l)r=r.move(h)}else{var m="parent"in e.data,y=e.data.parent;if(m&&(y!=null||o.parent!=null)&&y!=o.parent){if(y===void 0)y=null;if(y!=null)y=""+y;r=r.move({parent:y})}}}if(e.position)r.position(e.position);var v=function(k,A,R){var N=e[k];if(N!=null&&N!==a[k])if(N)r[A]();else r[R]()};if(v("removed","remove","restore"),v("selected","select","unselect"),v("selectable","selectify","unselectify"),v("locked","lock","unlock"),v("grabbable","grabify","ungrabify"),v("pannable","panify","unpanify"),e.classes!=null)r.classes(e.classes);return i.endBatch(),this}else if(e===void 0){var w={data:$3(a.data),position:$3(a.position),group:a.group,removed:a.removed,selected:a.selected,selectable:a.selectable,locked:a.locked,grabbable:a.grabbable,pannable:a.pannable,classes:null};w.classes="";var T=0;return a.classes.forEach(function(x){return w.classes+=T++===0?x:" "+x}),w}};Cd.jsons=function(){var e=[];for(var r=0;r0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this,a=i.cy(),o=a._private,l=[],h=[],d;for(var p=0,m=i.length;p0){var ne=d.length===i.length?i:new Q1(a,d);for(var ie=0;ie0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this,a=[],o={},l=i._private.cy;function h(J){var Z=J._private.edges;for(var j=0;j0){if(e)Q.emitAndNotify("remove");else if(r)Q.emit("remove")}for(var Y=0;Yy&&Math.abs(x.v)>y))break;return!w?m:function(k){return p[k*(p.length-1)|0]}}}(),TTe={linear:function(r,i,a){return r+(i-r)*a},ease:xd(0.25,0.1,0.25,1),"ease-in":xd(0.42,0,1,1),"ease-out":xd(0,0,0.58,1),"ease-in-out":xd(0.42,0,0.58,1),"ease-in-sine":xd(0.47,0,0.745,0.715),"ease-out-sine":xd(0.39,0.575,0.565,1),"ease-in-out-sine":xd(0.445,0.05,0.55,0.95),"ease-in-quad":xd(0.55,0.085,0.68,0.53),"ease-out-quad":xd(0.25,0.46,0.45,0.94),"ease-in-out-quad":xd(0.455,0.03,0.515,0.955),"ease-in-cubic":xd(0.55,0.055,0.675,0.19),"ease-out-cubic":xd(0.215,0.61,0.355,1),"ease-in-out-cubic":xd(0.645,0.045,0.355,1),"ease-in-quart":xd(0.895,0.03,0.685,0.22),"ease-out-quart":xd(0.165,0.84,0.44,1),"ease-in-out-quart":xd(0.77,0,0.175,1),"ease-in-quint":xd(0.755,0.05,0.855,0.06),"ease-out-quint":xd(0.23,1,0.32,1),"ease-in-out-quint":xd(0.86,0,0.07,1),"ease-in-expo":xd(0.95,0.05,0.795,0.035),"ease-out-expo":xd(0.19,1,0.22,1),"ease-in-out-expo":xd(1,0,0,1),"ease-in-circ":xd(0.6,0.04,0.98,0.335),"ease-out-circ":xd(0.075,0.82,0.165,1),"ease-in-out-circ":xd(0.785,0.135,0.15,0.86),spring:function(r,i,a){if(a===0)return TTe.linear;var o=Oci(r,i,a);return function(l,h,d){return l+(h-l)*o(d)}},"cubic-bezier":xd};Mci={animate:ch.animate(),animation:ch.animation(),animated:ch.animated(),clearQueue:ch.clearQueue(),delay:ch.delay(),delayAnimation:ch.delayAnimation(),stop:ch.stop(),addToAnimationPool:function(r){var i=this;if(!i.styleEnabled())return;i._private.aniEles.merge(r)},stopAnimationLoop:function(){this._private.animationsRunning=!1},startAnimationLoop:function(){var r=this;if(r._private.animationsRunning=!0,!r.styleEnabled())return;function i(){if(!r._private.animationsRunning)return;NTe(function(l){GMr(l,r),i()})}var a=r.renderer();if(a&&a.beforeRender)a.beforeRender(function(l,h){GMr(h,r)},a.beforeRenderPriorities.animations);else i()}},Dci={qualifierCompare:function(r,i){if(r==null||i==null)return r==null&&i==null;else return r.sameText(i)},eventMatches:function(r,i,a){var o=i.qualifier;if(o!=null)return r!==a.target&&hae(a.target)&&o.matches(a.target);return!0},addEventFields:function(r,i){i.cy=r,i.target=r},callbackContext:function(r,i,a){return i.qualifier!=null?a.target:r}},wDr={createEmitter:function(){var r=this._private;if(!r.emitter)r.emitter=new exe(Dci,this);return this},emitter:function(){return this._private.emitter},on:function(r,i,a){return this.emitter().on(r,gTe(i),a),this},removeListener:function(r,i,a){return this.emitter().removeListener(r,gTe(i),a),this},removeAllListeners:function(){return this.emitter().removeAllListeners(),this},one:function(r,i,a){return this.emitter().one(r,gTe(i),a),this},once:function(r,i,a){return this.emitter().one(r,gTe(i),a),this},emit:function(r,i){return this.emitter().emit(r,i),this},emitAndNotify:function(r,i){return this.emit(r),this.notify(r,i),this}};ch.eventAliasesOn(wDr);Xst={png:function(r){var i=this._private.renderer;return r=r||{},i.png(r)},jpg:function(r){var i=this._private.renderer;return r=r||{},r.bg=r.bg||"#fff",i.jpg(r)}};Xst.jpeg=Xst.jpg;xTe={layout:function(r){var i=this;if(r==null){_f("Layout options must be specified to make a layout");return}if(r.name==null){_f("A `name` must be specified to make a layout");return}var a=r.name,o=i.extension("layout",a);if(o==null){_f("No such layout `"+a+"` found. Did you forget to import it and `cytoscape.use()` it?");return}var l;if(Ws(r.eles))l=i.$(r.eles);else l=r.eles!=null?r.eles:i.$();var h=new o(Eo({},r,{cy:i,eles:l}));return h}};xTe.createLayout=xTe.makeLayout=xTe.layout;Pci={notify:function(r,i){var a=this._private;if(this.batching()){a.batchNotifications=a.batchNotifications||{};var o=a.batchNotifications[r]=a.batchNotifications[r]||this.collection();if(i!=null)o.merge(i);return}if(!a.notificationsEnabled)return;var l=this.renderer();if(this.destroyed()||!l)return;l.notify(r,i)},notifications:function(r){var i=this._private;if(r===void 0)return i.notificationsEnabled;else i.notificationsEnabled=r?!0:!1;return this},noNotifications:function(r){this.notifications(!1),r(),this.notifications(!0)},batching:function(){return this._private.batchCount>0},startBatch:function(){var r=this._private;if(r.batchCount==null)r.batchCount=0;if(r.batchCount===0)r.batchStyleEles=this.collection(),r.batchNotifications={};return r.batchCount++,this},endBatch:function(){var r=this._private;if(r.batchCount===0)return this;if(r.batchCount--,r.batchCount===0){r.batchStyleEles.updateStyle();var i=this.renderer();Object.keys(r.batchNotifications).forEach(function(a){var o=r.batchNotifications[a];if(o.empty())i.notify(a);else i.notify(a,o)})}return this},batch:function(r){return this.startBatch(),r(),this.endBatch(),this},batchData:function(r){var i=this;return this.batch(function(){var a=Object.keys(r);for(var o=0;o0)i.removeChild(i.childNodes[0])}r._private.renderer=null,r.mutableElements().forEach(function(a){var o=a._private;o.rscratch={},o.rstyle={},o.animation.current=[],o.animation.queue=[]})},onRender:function(r){return this.on("render",r)},offRender:function(r){return this.off("render",r)}};Qst.invalidateDimensions=Qst.resize;CTe={collection:function(r,i){if(Ws(r))return this.$(r);else if(JE(r))return r.collection();else if(hd(r)){if(!i)i={};return new Q1(this,r,i.unique,i.removed)}return new Q1(this)},nodes:function(r){var i=this.$(function(a){return a.isNode()});if(r)return i.filter(r);return i},edges:function(r){var i=this.$(function(a){return a.isEdge()});if(r)return i.filter(r);return i},$:function(r){var i=this._private.elements;if(r)return i.filter(r);else return i.spawnSelf()},mutableElements:function(){return this._private.elements}};CTe.elements=CTe.filter=CTe.$;i1={};i1.apply=function(e){var r=this,i=r._private,a=i.cy,o=a.collection();for(var l=0;l0;if(w||v&&T){var x=void 0;if(w&&T)x=m.properties;else if(w)x=m.properties;else if(T)x=m.mappedProperties;for(var k=0;k1)B=1;if(d.color){var P=a.valueMin[0],F=a.valueMax[0],H=a.valueMin[1],W=a.valueMax[1],X=a.valueMin[2],Q=a.valueMax[2],Y=a.valueMin[3]==null?1:a.valueMin[3],K=a.valueMax[3]==null?1:a.valueMax[3],J=[Math.round(P+(F-P)*B),Math.round(H+(W-H)*B),Math.round(X+(Q-X)*B),Math.round(Y+(K-Y)*B)];l={bypass:a.bypass,name:a.name,value:J,strValue:"rgb("+J[0]+", "+J[1]+", "+J[2]+")"}}else if(d.number){var Z=a.valueMin+(a.valueMax-a.valueMin)*B;l=this.parse(a.name,Z,a.bypass,w)}else return!1;if(!l)return k(),!1;l.mapping=a,a=l;break}case h.data:{var j=a.field.split("."),ee=v.data;for(var z=0;z0&&l>0){var d={},p=!1;for(var m=0;m0)e.delayAnimation(h).play().promise().then(L);else L()}).then(function(){return e.animation({style:d,duration:l,easing:e.pstyle("transition-timing-function").value,queue:!1}).play().promise()}).then(function(){i.removeBypasses(e,o),e.emitAndNotify("style"),a.transitioning=!1})}else if(a.transitioning)this.removeBypasses(e,o),e.emitAndNotify("style"),a.transitioning=!1};i1.checkTrigger=function(e,r,i,a,o,l){var h=this.properties[r],d=o(h);if(e.removed())return;if(d!=null&&d(i,a,e))l(h)};i1.checkZOrderTrigger=function(e,r,i,a){var o=this;this.checkTrigger(e,r,i,a,function(l){return l.triggersZOrder},function(){o._private.cy.notify("zorder",e)})};i1.checkBoundsTrigger=function(e,r,i,a){this.checkTrigger(e,r,i,a,function(o){return o.triggersBounds},function(o){e.dirtyCompoundBoundsCache(),e.dirtyBoundingBoxCache()})};i1.checkConnectedEdgesBoundsTrigger=function(e,r,i,a){this.checkTrigger(e,r,i,a,function(o){return o.triggersBoundsOfConnectedEdges},function(o){e.connectedEdges().forEach(function(l){l.dirtyBoundingBoxCache()})})};i1.checkParallelEdgesBoundsTrigger=function(e,r,i,a){this.checkTrigger(e,r,i,a,function(o){return o.triggersBoundsOfParallelEdges},function(o){e.parallelEdges().forEach(function(l){l.dirtyBoundingBoxCache()})})};i1.checkTriggers=function(e,r,i,a){e.dirtyStyleCache(),this.checkZOrderTrigger(e,r,i,a),this.checkBoundsTrigger(e,r,i,a),this.checkConnectedEdgesBoundsTrigger(e,r,i,a),this.checkParallelEdgesBoundsTrigger(e,r,i,a)};yae={};yae.applyBypass=function(e,r,i,a){var o=this,l=[],h=!0;if(r==="*"||r==="**"){if(i!==void 0)for(var d=0;do.length)a=a.substr(o.length);else a=""}function p(){if(l.length>h.length)l=l.substr(h.length);else l=""}for(;;){var m=a.match(/^\s*$/);if(m)break;var y=a.match(/^\s*((?:.|\s)+?)\s*\{((?:.|\s)+?)\}/);if(!y){uh("Halting stylesheet parsing: String stylesheet contains more to parse but no selector and block found in: "+a);break}o=y[0];var v=y[1];if(v!=="core"){var w=new f7(v);if(w.invalid){uh("Skipping parsing of block: Invalid selector found in string stylesheet: "+v),d();continue}}var T=y[2],x=!1;l=T;var k=[];for(;;){var A=l.match(/^\s*$/);if(A)break;var R=l.match(/^\s*(.+?)\s*:\s*(.+?)(?:\s*;|\s*$)/);if(!R){uh("Skipping parsing of block: Invalid formatting of style property and value definitions found in:"+T),x=!0;break}h=R[0];var N=R[1],L=R[2],B=r.properties[N];if(!B){uh("Skipping property: Invalid property name in: "+h),p();continue}var D=i.parse(N,L);if(!D){uh("Skipping property: Invalid property definition in: "+h),p();continue}k.push({name:N,val:L}),p()}if(x){d();break}i.selector(v);for(var P=0;P=7&&r[0]==="d"&&(y=new RegExp(d.data.regex).exec(r))){if(i)return!1;var w=d.data;return{name:e,value:y,strValue:""+r,mapped:w,field:y[1],bypass:i}}else if(r.length>=10&&r[0]==="m"&&(v=new RegExp(d.mapData.regex).exec(r))){if(i)return!1;if(m.multiple)return!1;var T=d.mapData;if(!(m.color||m.number))return!1;var x=this.parse(e,v[4]);if(!x||x.mapped)return!1;var k=this.parse(e,v[5]);if(!k||k.mapped)return!1;if(x.pfValue===k.pfValue||x.strValue===k.strValue)return uh("`"+e+": "+r+"` is not a valid mapper because the output range is zero; converting to `"+e+": "+x.strValue+"`"),this.parse(e,x.strValue);else if(m.color){var A=x.value,R=k.value,N=A[0]===R[0]&&A[1]===R[1]&&A[2]===R[2]&&(A[3]===R[3]||(A[3]==null||A[3]===1)&&(R[3]==null||R[3]===1));if(N)return!1}return{name:e,value:v,strValue:""+r,mapped:T,field:v[1],fieldMin:parseFloat(v[2]),fieldMax:parseFloat(v[3]),valueMin:x.value,valueMax:k.value,bypass:i}}if(m.multiple&&a!=="multiple"){var L;if(p)L=r.split(/\s+/);else if(hd(r))L=r;else L=[r];if(m.evenMultiple&&L.length%2!==0)return null;var B=[],D=[],P=[],F="",H=!1;for(var W=0;W0?" ":"")+X.strValue}if(m.validate&&!m.validate(B,D))return null;if(m.singleEnum&&H)if(B.length===1&&Ws(B[0]))return{name:e,value:B[0],strValue:B[0],bypass:i};else return null;return{name:e,value:B,pfValue:P,strValue:F,bypass:i,units:D}}var Q=function(){for(var Me=0;Mem.max||m.strictMax&&r===m.max))return null;var j={name:e,value:r,strValue:""+r+(Y?Y:""),units:Y,bypass:i};if(m.unitless||Y!=="px"&&Y!=="em")j.pfValue=r;else j.pfValue=Y==="px"||!Y?r:this.getEmSizeInPixels()*r;if(Y==="ms"||Y==="s")j.pfValue=Y==="ms"?r:1000*r;if(Y==="deg"||Y==="rad")j.pfValue=Y==="rad"?r:Msi(r);if(Y==="%")j.pfValue=r/100;return j}else if(m.propList){var ee=[],z=""+r;if(z==="none");else{var ne=z.split(/\s*,\s*|\s+/);for(var ie=0;ie0&&d>0&&!isNaN(a.w)&&!isNaN(a.h)&&a.w>0&&a.h>0){p=Math.min((h-2*i)/a.w,(d-2*i)/a.h),p=p>this._private.maxZoom?this._private.maxZoom:p,p=p=a.minZoom)a.maxZoom=i;return this},minZoom:function(r){if(r===void 0)return this._private.minZoom;else return this.zoomRange({min:r})},maxZoom:function(r){if(r===void 0)return this._private.maxZoom;else return this.zoomRange({max:r})},getZoomedViewport:function(r){var i=this._private,{pan:a,zoom:o}=i,l,h,d=!1;if(!i.zoomingEnabled)d=!0;if(Sa(r))h=r;else if(uu(r)){if(h=r.level,r.position!=null)l=WTe(r.position,o,a);else if(r.renderedPosition!=null)l=r.renderedPosition;if(l!=null&&!i.panningEnabled)d=!0}if(h=h>i.maxZoom?i.maxZoom:h,h=hi.maxZoom||!i.zoomingEnabled)h=!0;else i.zoom=p,l.push("zoom")}if(o&&(!h||!r.cancelOnFailedZoom)&&i.panningEnabled){var m=r.pan;if(Sa(m.x))i.pan.x=m.x,d=!1;if(Sa(m.y))i.pan.y=m.y,d=!1;if(!d)l.push("pan")}if(l.length>0)l.push("viewport"),this.emit(l.join(" ")),this.notify("viewport");return this},center:function(r){var i=this.getCenterPan(r);if(i)this._private.pan=i,this.emit("pan viewport"),this.notify("viewport");return this},getCenterPan:function(r,i){if(!this._private.panningEnabled)return;if(Ws(r)){var a=r;r=this.mutableElements().filter(a)}else if(!JE(r))r=this.mutableElements();if(r.length===0)return;var o=r.boundingBox(),l=this.width(),h=this.height();i=i===void 0?this._private.zoom:i;var d={x:(l-i*(o.x1+o.x2))/2,y:(h-i*(o.y1+o.y2))/2};return d},reset:function(){if(!this._private.panningEnabled||!this._private.zoomingEnabled)return this;return this.viewport({pan:{x:0,y:0},zoom:1}),this},invalidateSize:function(){this._private.sizeCache=null},size:function(){var r=this._private,i=r.container,a=this;return r.sizeCache=r.sizeCache||(i?function(){var o=a.window().getComputedStyle(i),l=function(d){return parseFloat(o.getPropertyValue(d))};return{width:i.clientWidth-l("padding-left")-l("padding-right"),height:i.clientHeight-l("padding-top")-l("padding-bottom")}}():{width:1,height:1})},width:function(){return this.size().width},height:function(){return this.size().height},extent:function(){var r=this._private.pan,i=this._private.zoom,a=this.renderedExtent(),o={x1:(a.x1-r.x)/i,x2:(a.x2-r.x)/i,y1:(a.y1-r.y)/i,y2:(a.y2-r.y)/i};return o.w=o.x2-o.x1,o.h=o.y2-o.y1,o},renderedExtent:function(){var r=this.width(),i=this.height();return{x1:0,y1:0,x2:r,y2:i,w:r,h:i}},multiClickDebounceTime:function(r){if(r)this._private.multiClickDebounceTime=r;else return this._private.multiClickDebounceTime;return this}};IB.centre=IB.center;IB.autolockNodes=IB.autolock;IB.autoungrabifyNodes=IB.autoungrabify;oae={data:ch.data({field:"data",bindingEvent:"data",allowBinding:!0,allowSetting:!0,settingEvent:"data",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeData:ch.removeData({field:"data",event:"data",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0}),scratch:ch.data({field:"scratch",bindingEvent:"scratch",allowBinding:!0,allowSetting:!0,settingEvent:"scratch",settingTriggersEvent:!0,triggerFnName:"trigger",allowGetting:!0,updateStyle:!0}),removeScratch:ch.removeData({field:"scratch",event:"scratch",triggerFnName:"trigger",triggerEvent:!0,updateStyle:!0})};oae.attr=oae.data;oae.removeAttr=oae.removeData;FTe=lae.prototype;Eo(FTe,{instanceString:function(){return"core"},isReady:function(){return this._private.ready},destroyed:function(){return this._private.destroyed},ready:function(r){if(this.isReady())this.emitter().emit("ready",[],r);else this.on("ready",r);return this},destroy:function(){var r=this;if(r.destroyed())return;return r.stopAnimationLoop(),r.destroyRenderer(),this.emit("destroy"),r._private.destroyed=!0,r},hasElementWithId:function(r){return this._private.elements.hasElementWithId(r)},getElementById:function(r){return this._private.elements.getElementById(r)},hasCompoundNodes:function(){return this._private.hasCompoundNodes},headless:function(){return this._private.renderer.isHeadless()},styleEnabled:function(){return this._private.styleEnabled},addToPool:function(r){return this._private.elements.merge(r),this},removeFromPool:function(r){return this._private.elements.unmerge(r),this},container:function(){return this._private.container||null},window:function(){var r=this._private.container;if(r==null)return am;var i=this._private.container.ownerDocument;if(i===void 0||i==null)return am;return i.defaultView||am},mount:function(r){if(r==null)return;var i=this,a=i._private,o=a.options;if(!OTe(r)&&OTe(r[0]))r=r[0];return i.stopAnimationLoop(),i.destroyRenderer(),a.container=r,a.styleEnabled=!0,i.invalidateSize(),i.initRenderer(Eo({},o,o.renderer,{name:o.renderer.name==="null"?"canvas":o.renderer.name})),i.startAnimationLoop(),i.style(o.style),i.emit("mount"),i},unmount:function(){var r=this;return r.stopAnimationLoop(),r.destroyRenderer(),r.initRenderer({name:"null"}),r.emit("unmount"),r},options:function(){return $3(this._private.options)},json:function(r){var i=this,a=i._private,o=i.mutableElements(),l=function(B){return i.getElementById(B.id())};if(uu(r)){if(i.startBatch(),r.elements){var h={},d=function(B,D){var P=[],F=[];for(var H=0;H0,d=!!e.boundingBox,p=Ev(d?e.boundingBox:structuredClone(r.extent())),m;if(JE(e.roots))m=e.roots;else if(hd(e.roots)){var y=[];for(var v=0;v0){var J=K(),Z=W(J,Q);if(Z)J.outgoers().filter(function(Nt){return Nt.isNode()&&i.has(Nt)}).forEach(Y);else if(Z===null){uh("Detected double maximal shift for node `"+J.id()+"`. Bailing maximal adjustment due to cycle. Use `options.maximal: true` only on DAGs.");break}}}var j=0;if(e.avoidOverlap)for(var ee=0;ee0&&R[0].length<=3?qe/2:0),Je=2*Math.PI/R[Pe].length*Ue;if(Pe===0&&R[0].length===1)Ke=1;return{x:Qe.x+Ke*Math.cos(Je),y:Qe.y+Ke*Math.sin(Je)}}else{var De=R[Pe].length,le=Math.max(De===1?0:d?(p.w-e.padding*2-xt.w)/((e.grid?zt:De)-1):(p.w-e.padding*2-xt.w)/((e.grid?zt:De)+1),j),pe={x:Qe.x+(Ue+1-(De+1)/2)*le,y:Qe.y+(Pe+1-(Se+1)/2)*dt};return pe}},rr={downward:0,leftward:90,upward:180,rightward:-90};if(Object.keys(rr).indexOf(e.direction)===-1)_f("Invalid direction '".concat(e.direction,"' specified for breadthfirst layout. Valid values are: ").concat(Object.keys(rr).join(", ")));var je=function(ct){return rsi(Kt(ct),p,rr[e.direction])};return i.nodes().layoutPositions(this,e,je),this};Vci={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,radius:void 0,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(r,i){return!0},ready:void 0,stop:void 0,transform:function(r,i){return i}};TDr.prototype.run=function(){var e=this.options,r=e,i=e.cy,a=r.eles,o=r.counterclockwise!==void 0?!r.counterclockwise:r.clockwise,l=a.nodes().not(":parent");if(r.sort)l=l.sort(r.sort);var h=Ev(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()}),d={x:h.x1+h.w/2,y:h.y1+h.h/2},p=r.sweep===void 0?2*Math.PI-2*Math.PI/l.length:r.sweep,m=p/Math.max(1,l.length-1),y,v=0;for(var w=0;w1&&r.avoidOverlap){v*=1.75;var R=Math.cos(m)-Math.cos(0),N=Math.sin(m)-Math.sin(0),L=Math.sqrt(v*v/(R*R+N*N));y=Math.max(L,y)}var B=function(P,F){var H=r.startAngle+F*m*(o?1:-1),W=y*Math.cos(H),X=y*Math.sin(H),Q={x:d.x+W,y:d.y+X};return Q};return a.nodes().layoutPositions(this,r,B),this};Hci={fit:!0,padding:30,startAngle:1.5*Math.PI,sweep:void 0,clockwise:!0,equidistant:!1,minNodeSpacing:10,boundingBox:void 0,avoidOverlap:!0,nodeDimensionsIncludeLabels:!1,height:void 0,width:void 0,spacingFactor:void 0,concentric:function(r){return r.degree()},levelWidth:function(r){return r.maxDegree()/4},animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(r,i){return!0},ready:void 0,stop:void 0,transform:function(r,i){return i}};xDr.prototype.run=function(){var e=this.options,r=e,i=r.counterclockwise!==void 0?!r.counterclockwise:r.clockwise,a=e.cy,o=r.eles,l=o.nodes().not(":parent"),h=Ev(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:a.width(),h:a.height()}),d={x:h.x1+h.w/2,y:h.y1+h.h/2},p=[],m=0;for(var y=0;y0){var D=Math.abs(N[0].value-B.value);if(D>=A)N=[],R.push(N)}N.push(B)}var P=m+r.minNodeSpacing;if(!r.avoidOverlap){var F=R.length>0&&R[0].length>1,H=Math.min(h.w,h.h)/2-P,W=H/(R.length+F?1:0);P=Math.min(P,W)}var X=0;for(var Q=0;Q1&&r.avoidOverlap){var Z=Math.cos(J)-Math.cos(0),j=Math.sin(J)-Math.sin(0),ee=Math.sqrt(P*P/(Z*Z+j*j));X=Math.max(ee,X)}Y.r=X,X+=P}if(r.equidistant){var z=0,ne=0;for(var ie=0;ie=e.numIter)return!1;if(Qci(a,e),a.temperature=a.temperature*e.coolingFactor,a.temperature=e.animationThreshold)l();NTe(y)}};y()}else{while(m)m=h(p),p++;HMr(a,e),d()}return this};axe.prototype.stop=function(){if(this.stopped=!0,this.thread)this.thread.stop();return this.emit("layoutstop"),this};axe.prototype.destroy=function(){if(this.thread)this.thread.stop();return this};sui={fit:!0,padding:30,boundingBox:void 0,avoidOverlap:!0,avoidOverlapPadding:10,nodeDimensionsIncludeLabels:!1,spacingFactor:void 0,condense:!1,rows:void 0,cols:void 0,position:function(r){},sort:void 0,animate:!1,animationDuration:500,animationEasing:void 0,animateFilter:function(r,i){return!0},ready:void 0,stop:void 0,transform:function(r,i){return i}};RDr.prototype.run=function(){var e=this.options,r=e,i=e.cy,a=r.eles,o=a.nodes().not(":parent");if(r.sort)o=o.sort(r.sort);var l=Ev(r.boundingBox?r.boundingBox:{x1:0,y1:0,w:i.width(),h:i.height()});if(l.h===0||l.w===0)a.nodes().layoutPositions(this,r,function(he){return{x:l.x1,y:l.y1}});else{var h=o.size(),d=Math.sqrt(h*l.h/l.w),p=Math.round(d),m=Math.round(l.w/l.h*d),y=function(ye){if(ye==null)return Math.min(p,m);else{var Se=Math.min(p,m);if(Se==p)p=ye;else m=ye}},v=function(ye){if(ye==null)return Math.max(p,m);else{var Se=Math.max(p,m);if(Se==p)p=ye;else m=ye}},w=r.rows,T=r.cols!=null?r.cols:r.columns;if(w!=null&&T!=null)p=w,m=T;else if(w!=null&&T==null)p=w,m=Math.ceil(h/p);else if(w==null&&T!=null)m=T,p=Math.ceil(h/m);else if(m*p>h){var x=y(),k=v();if((x-1)*k>=h)y(x-1);else if((k-1)*x>=h)v(k-1)}else while(m*p=h)v(R+1);else y(A+1)}var N=l.w/m,L=l.h/p;if(r.condense)N=0,L=0;if(r.avoidOverlap)for(var B=0;B=m)Z=0,J++},ee={};for(var z=0;z(Z=jsi(e,r,j[ee],j[ee+1],j[ee+2],j[ee+3])))return A(F,Z),!0}else if(W.edgeType==="bezier"||W.edgeType==="multibezier"||W.edgeType==="self"||W.edgeType==="compound"){var j=W.allpts;for(var ee=0;ee+5(Z=Wsi(e,r,j[ee],j[ee+1],j[ee+2],j[ee+3],j[ee+4],j[ee+5])))return A(F,Z),!0}var z=z||H.source,ne=ne||H.target,ie=o.getArrowWidth(X,Q),se=[{name:"source",x:W.arrowStartX,y:W.arrowStartY,angle:W.srcArrowAngle},{name:"target",x:W.arrowEndX,y:W.arrowEndY,angle:W.tgtArrowAngle},{name:"mid-source",x:W.midX,y:W.midY,angle:W.midsrcArrowAngle},{name:"mid-target",x:W.midX,y:W.midY,angle:W.midtgtArrowAngle}];for(var ee=0;ee0)R(z),R(ne)}function L(F,H,W){return _v(F,H,W)}function B(F,H){var W=F._private,X=w,Q;if(H)Q=H+"-";else Q="";F.boundingBox();var Y=W.labelBounds[H||"main"],K=F.pstyle(Q+"label").value,J=F.pstyle("text-events").strValue==="yes";if(!J||!K)return;var Z=L(W.rscratch,"labelX",H),j=L(W.rscratch,"labelY",H),ee=L(W.rscratch,"labelAngle",H),z=F.pstyle(Q+"text-margin-x").pfValue,ne=F.pstyle(Q+"text-margin-y").pfValue,ie=Y.x1-X-z,se=Y.x2+X-z,oe=Y.y1-X-ne,he=Y.y2+X-ne;if(ee){var ye=Math.cos(ee),Se=Math.sin(ee),Ie=function(xt,dt){return xt=xt-Z,dt=dt-j,{x:xt*ye-dt*Se+Z,y:xt*Se+dt*ye+j}},Ee=Ie(ie,oe),ze=Ie(ie,he),Me=Ie(se,oe),Xe=Ie(se,he),Ye=[Ee.x+z,Ee.y+ne,Me.x+z,Me.y+ne,Xe.x+z,Xe.y+ne,ze.x+z,ze.y+ne];if(i2(e,r,Ye))return A(F),!0}else if(s7(Y,e,r))return A(F),!0}for(var D=h.length-1;D>=0;D--){var P=h[D];if(P.isNode())R(P)||B(P);else N(P)||B(P)||B(P,"source")||B(P,"target")}return d};NB.getAllInBox=function(e,r,i,a){var o=this.getCachedZSortedEles().interactive,l=this.cy.zoom(),h=2/l,d=[],p=Math.min(e,i),m=Math.max(e,i),y=Math.min(r,a),v=Math.max(r,a);e=p,i=m,r=y,a=v;var w=Ev({x1:e,y1:r,x2:i,y2:a}),T=[{x:w.x1,y:w.y1},{x:w.x2,y:w.y1},{x:w.x2,y:w.y2},{x:w.x1,y:w.y2}],x=[[T[0],T[1]],[T[1],T[2]],[T[2],T[3]],[T[3],T[0]]];function k(xt,dt,zt){return _v(xt,dt,zt)}function A(xt,dt){var zt=xt._private,Kt=h,rr="";xt.boundingBox();var je=zt.labelBounds.main;if(!je)return null;var Nt=k(zt.rscratch,"labelX",dt),ct=k(zt.rscratch,"labelY",dt),bt=k(zt.rscratch,"labelAngle",dt),Pe=xt.pstyle(rr+"text-margin-x").pfValue,Ue=xt.pstyle(rr+"text-margin-y").pfValue,qe=je.x1-Kt-Pe,Ke=je.x2+Kt-Pe,Je=je.y1-Kt-Ue,De=je.y2+Kt-Ue;if(bt){var le=Math.cos(bt),pe=Math.sin(bt),fe=function(Ge,ke){return Ge=Ge-Nt,ke=ke-ct,{x:Ge*le-ke*pe+Nt,y:Ge*pe+ke*le+ct}};return[fe(qe,Je),fe(Ke,Je),fe(Ke,De),fe(qe,De)]}else return[{x:qe,y:Je},{x:Ke,y:Je},{x:Ke,y:De},{x:qe,y:De}]}function R(xt,dt,zt,Kt){function rr(je,Nt,ct){return(ct.y-je.y)*(Nt.x-je.x)>(Nt.y-je.y)*(ct.x-je.x)}return rr(xt,zt,Kt)!==rr(dt,zt,Kt)&&rr(xt,dt,zt)!==rr(xt,dt,Kt)}for(var N=0;N0)return Math.max(ke-we,0);else return Math.min(ke+we,0)},K=Y(X,H),J=Y(Q,W),Z=!1;if(N===m)R=Math.abs(K)>Math.abs(J)?o:a;else if(N===p||N===d)R=a,Z=!0;else if(N===l||N===h)R=o,Z=!0;var j=R===a,ee=j?J:K,z=j?Q:X,ne=got(z),ie=!1;if(!(Z&&(B||P))&&(N===d&&z<0||N===p&&z>0||N===l&&z>0||N===h&&z<0))ne*=-1,ee=ne*Math.abs(ee),ie=!0;var se;if(B){var oe=D<0?1+D:D;se=oe*ee}else{var he=D<0?ee:0;se=he+D*ne}var ye=function(ke){return Math.abs(ke)=Math.abs(ee)},Se=ye(se),Ie=ye(Math.abs(ee)-Math.abs(se)),Ee=Se||Ie;if(Ee&&!ie)if(j){var ze=Math.abs(z)<=w/2,Me=Math.abs(X)<=T/2;if(ze){var Xe=(y.x1+y.x2)/2,{y1:Ye,y2:Qe}=y;i.segpts=[Xe,Ye,Xe,Qe]}else if(Me){var xt=(y.y1+y.y2)/2,{x1:dt,x2:zt}=y;i.segpts=[dt,xt,zt,xt]}else i.segpts=[y.x1,y.y2]}else{var Kt=Math.abs(z)<=v/2,rr=Math.abs(Q)<=x/2;if(Kt){var je=(y.y1+y.y2)/2,{x1:Nt,x2:ct}=y;i.segpts=[Nt,je,ct,je]}else if(rr){var bt=(y.x1+y.x2)/2,{y1:Pe,y2:Ue}=y;i.segpts=[bt,Pe,bt,Ue]}else i.segpts=[y.x2,y.y1]}else if(j){var qe=y.y1+se+(A?w/2*ne:0),{x1:Ke,x2:Je}=y;i.segpts=[Ke,qe,Je,qe]}else{var De=y.x1+se+(A?v/2*ne:0),{y1:le,y2:pe}=y;i.segpts=[De,le,De,pe]}if(i.isRound){var fe=e.pstyle("taxi-radius").value,be=e.pstyle("radius-type").value[0]==="arc-radius";i.radii=Array(i.segpts.length/2).fill(fe),i.isArcRadius=Array(i.segpts.length/2).fill(be)}};ay.tryToCorrectInvalidPoints=function(e,r){var i=e._private.rscratch;if(i.edgeType==="bezier"){var{srcPos:a,tgtPos:o,srcW:l,srcH:h,tgtW:d,tgtH:p,srcShape:m,tgtShape:y,srcCornerRadius:v,tgtCornerRadius:w,srcRs:T,tgtRs:x}=r,k=!Sa(i.startX)||!Sa(i.startY),A=!Sa(i.arrowStartX)||!Sa(i.arrowStartY),R=!Sa(i.endX)||!Sa(i.endY),N=!Sa(i.arrowEndX)||!Sa(i.arrowEndY),L=3,B=this.getArrowWidth(e.pstyle("width").pfValue,e.pstyle("arrow-scale").value)*this.arrowShapeWidth,D=L*B,P=AB({x:i.ctrlpts[0],y:i.ctrlpts[1]},{x:i.startX,y:i.startY}),F=Pz.poolIndex()){var ne=ee;ee=z,z=ne}var ie=K.srcPos=ee.position(),se=K.tgtPos=z.position(),oe=K.srcW=ee.outerWidth(),he=K.srcH=ee.outerHeight(),ye=K.tgtW=z.outerWidth(),Se=K.tgtH=z.outerHeight(),Ie=K.srcShape=i.nodeShapes[r.getNodeShape(ee)],Ee=K.tgtShape=i.nodeShapes[r.getNodeShape(z)],ze=K.srcCornerRadius=ee.pstyle("corner-radius").value==="auto"?"auto":ee.pstyle("corner-radius").pfValue,Me=K.tgtCornerRadius=z.pstyle("corner-radius").value==="auto"?"auto":z.pstyle("corner-radius").pfValue,Xe=K.tgtRs=z._private.rscratch,Ye=K.srcRs=ee._private.rscratch;K.dirCounts={north:0,west:0,south:0,east:0,northwest:0,southwest:0,northeast:0,southeast:0};for(var Qe=0;Qe=fui);else Je=Math.sqrt(Math.max(Ke*Ke,cae)+Math.max(qe*qe,cae));var De=K.vector={x:Ke,y:qe},le=K.vectorNorm={x:De.x/Je,y:De.y/Je},pe={x:-le.y,y:le.x};K.nodesOverlap=!Sa(Je)||Ee.checkPoint(je[0],je[1],0,ye,Se,se.x,se.y,Me,Xe)||Ie.checkPoint(ct[0],ct[1],0,oe,he,ie.x,ie.y,ze,Ye),K.vectorNormInverse=pe,J={nodesOverlap:K.nodesOverlap,dirCounts:K.dirCounts,calculatedIntersection:!0,hasBezier:K.hasBezier,hasUnbundled:K.hasUnbundled,eles:K.eles,srcPos:se,srcRs:Xe,tgtPos:ie,tgtRs:Ye,srcW:ye,srcH:Se,tgtW:oe,tgtH:he,srcIntn:bt,tgtIntn:Nt,srcShape:Ee,tgtShape:Ie,posPts:{x1:Ue.x2,y1:Ue.y2,x2:Ue.x1,y2:Ue.y1},intersectionPts:{x1:Pe.x2,y1:Pe.y2,x2:Pe.x1,y2:Pe.y1},vector:{x:-De.x,y:-De.y},vectorNorm:{x:-le.x,y:-le.y},vectorNormInverse:{x:-pe.x,y:-pe.y}}}var fe=rr?J:K;if(dt.nodesOverlap=fe.nodesOverlap,dt.srcIntn=fe.srcIntn,dt.tgtIntn=fe.tgtIntn,dt.isRound=zt.startsWith("round"),o&&(ee.isParent()||ee.isChild()||z.isParent()||z.isChild())&&(ee.parents().anySame(z)||z.parents().anySame(ee)||ee.same(z)&&ee.isParent()))r.findCompoundLoopPoints(xt,fe,Qe,Kt);else if(ee===z)r.findLoopPoints(xt,fe,Qe,Kt);else if(zt.endsWith("segments"))r.findSegmentsPoints(xt,fe);else if(zt.endsWith("taxi"))r.findTaxiPoints(xt,fe);else if(zt==="straight"||!Kt&&K.eles.length%2===1&&Qe===Math.floor(K.eles.length/2))r.findStraightEdgePoints(xt);else r.findBezierPoints(xt,fe,Qe,Kt,rr);r.findEndpoints(xt),r.tryToCorrectInvalidPoints(xt,fe),r.checkForInvalidEdgeWarning(xt),r.storeAllpts(xt),r.storeEdgeProjections(xt),r.calculateArrowAngles(xt),r.recalculateEdgeLabelProjections(xt),r.calculateLabelAngles(xt)}};for(var F=0;F0){var je=m,Nt=wB(je,kq(h)),ct=wB(je,kq(rr)),bt=Nt;if(ct2){var Pe=wB(je,{x:rr[2],y:rr[3]});if(Pe0){var Ae=y,at=wB(Ae,kq(h)),ut=wB(Ae,kq(we)),gt=at;if(ut2){var vt=wB(Ae,{x:we[2],y:we[3]});if(vt=x||F){A={cp:B,segment:P};break}}if(A)break}var H=A.cp,W=A.segment,X=(x-R)/W.length,Q=W.t1-W.t0,Y=T?W.t0+Q*X:W.t1-Q*X;Y=nae(0,Y,1),r=Iq(H.p0,H.p1,H.p2,Y),w=gui(H.p0,H.p1,H.p2,Y);break}case"straight":case"segments":case"haystack":{var K=0,J,Z,j,ee,z=a.allpts.length;for(var ne=0;ne+3=x)break}var ie=x-Z,se=ie/J;se=nae(0,se,1),r=Psi(j,ee,se),w=FDr(j,ee);break}}h("labelX",v,r.x),h("labelY",v,r.y),h("labelAutoAngle",v,w)};m("source"),m("target"),this.applyLabelDimensions(e)};G3.applyLabelDimensions=function(e){if(this.applyPrefixedLabelDimensions(e),e.isEdge())this.applyPrefixedLabelDimensions(e,"source"),this.applyPrefixedLabelDimensions(e,"target")};G3.applyPrefixedLabelDimensions=function(e,r){var i=e._private,a=this.getLabelText(e,r),o=kB(a,e._private.labelDimsKey);if(_v(i.rscratch,"prefixedLabelDimsKey",r)===o)return;F3(i.rscratch,"prefixedLabelDimsKey",r,o);var l=this.calculateLabelDimensions(e,a),h=e.pstyle("line-height").pfValue,d=e.pstyle("font-size").pfValue,p=e.pstyle("text-wrap").strValue,m=_v(i.rscratch,"labelWrapCachedLines",r)||[],y=p!=="wrap"?1:Math.max(m.length,1),v=d*h,w=l.width,T=l.height+(y-1)*(h-1)*d;F3(i.rstyle,"labelWidth",r,w),F3(i.rscratch,"labelWidth",r,w),F3(i.rstyle,"labelHeight",r,T),F3(i.rscratch,"labelHeight",r,T),F3(i.rscratch,"labelLineHeight",r,v),F3(i.rscratch,"labelActualDescent",r,l.labelActualDescent)};G3.getLabelText=function(e,r){var i=e._private,a=r?r+"-":"",o=e.pstyle(a+"label").strValue,l=e.pstyle("text-transform").value,h=function(he,ye){if(ye)return F3(i.rscratch,he,r,ye),ye;else return _v(i.rscratch,he,r)};if(!o)return"";if(l=="none");else if(l=="uppercase")o=o.toUpperCase();else if(l=="lowercase")o=o.toLowerCase();var d=e.pstyle("text-wrap").value;if(d==="wrap"){var p=h("labelKey");if(p!=null&&h("labelWrapKey")===p)return h("labelWrapCachedText");var m="​",y=o.split(` +`),v=e.pstyle("text-max-width").pfValue,w=e.pstyle("text-overflow-wrap").value,T=w==="anywhere",x=[],k=/[\s\u200b]+|$/g;for(var A=0;Av){var D=R.matchAll(k),P="",F=0,H=a2(D),W;try{for(H.s();!(W=H.n()).done;){var X=W.value,Q=X[0],Y=R.substring(F,X.index);F=X.index+Q.length;var K=P.length===0?Y:P+Y+Q,J=this.calculateLabelDimensions(e,K),Z=J.width;if(Z<=v)P+=Y+Q;else{if(P)x.push(P);P=Y+Q}}}catch(oe){H.e(oe)}finally{H.f()}if(!P.match(/^[\s\u200b]+$/))x.push(P)}else x.push(R)}h("labelWrapCachedLines",x),o=h("labelWrapCachedText",x.join(` +`)),h("labelWrapKey",p)}else if(d==="ellipsis"){var j=e.pstyle("text-max-width").pfValue,ee="",z="…",ne=!1;if(this.calculateLabelDimensions(e,o).widthj)break;if(ee+=o[ie],ie===o.length-1)ne=!0}if(!ne)ee+=z;return ee}return o};G3.getLabelJustification=function(e){var r=e.pstyle("text-justification").strValue,i=e.pstyle("text-halign").strValue;if(r==="auto")if(e.isNode())return rci(i);else return"center";else return r};G3.calculateLabelDimensions=function(e,r){var i=this,a=i.cy.window(),o=a.document,l=0,h=e.pstyle("font-style").strValue,d=e.pstyle("font-size").pfValue,p=e.pstyle("font-family").strValue,m=e.pstyle("font-weight").strValue,y=e.pstyle("text-metrics").strValue||"font",v=this.labelCalcCanvas,w=this.labelCalcCanvasContext;if(!v){v=this.labelCalcCanvas=o.createElement("canvas"),w=this.labelCalcCanvasContext=v.getContext("2d");var T=v.style;T.position="absolute",T.left="-9999px",T.top="-9999px",T.zIndex="-1",T.visibility="hidden",T.pointerEvents="none"}w.font="".concat(h," ").concat(m," ").concat(d,"px ").concat(p);var x=0,k=0,A=r.split(` +`),R=A.length,N=0,L=0;for(var B=0;B1&&arguments[1]!==void 0?arguments[1]:!0;if(r.merge(h),d)for(var p=0;p=e.desktopTapThreshold2}var Bn=l(fe);if(lr)e.hoverData.tapholdCancelled=!0;var si=function(){var _t=e.hoverData.dragDelta=e.hoverData.dragDelta||[];if(_t.length===0)_t.push(tr[0]),_t.push(tr[1]);else _t[0]+=tr[0],_t[1]+=tr[1]};Ge=!0,o(ir,["mousemove","vmousemove","tapdrag"],fe,{x:at[0],y:at[1]});var dn=function(_t){return{originalEvent:fe,type:_t,position:{x:at[0],y:at[1]}}},Ii=function(){if(e.data.bgActivePosistion=void 0,!e.hoverData.selecting)ke.emit(dn("boxstart"));vt[4]=1,e.hoverData.selecting=!0,e.redrawHint("select",!0),e.redraw()};if(e.hoverData.which===3){if(lr){var Vn=dn("cxtdrag");if(cr)cr.emit(Vn);else ke.emit(Vn);if(e.hoverData.cxtDragged=!0,!e.hoverData.cxtOver||ir!==e.hoverData.cxtOver){if(e.hoverData.cxtOver)e.hoverData.cxtOver.emit(dn("cxtdragout"));if(e.hoverData.cxtOver=ir,ir)ir.emit(dn("cxtdragover"))}}}else if(e.hoverData.dragging){if(Ge=!0,ke.panningEnabled()&&ke.userPanningEnabled()){var Ei;if(e.hoverData.justStartedPan){var vn=e.hoverData.mdownPos;Ei={x:(at[0]-vn[0])*we,y:(at[1]-vn[1])*we},e.hoverData.justStartedPan=!1}else Ei={x:tr[0]*we,y:tr[1]*we};ke.panBy(Ei),ke.emit(dn("dragpan")),e.hoverData.dragged=!0}at=e.projectIntoViewport(fe.clientX,fe.clientY)}else if(vt[4]==1&&(cr==null||cr.pannable())){if(lr){if(!e.hoverData.dragging&&ke.boxSelectionEnabled()&&(Bn||!ke.panningEnabled()||!ke.userPanningEnabled()))Ii();else if(!e.hoverData.selecting&&ke.panningEnabled()&&ke.userPanningEnabled()){var Li=h(cr,e.hoverData.downs);if(Li)e.hoverData.dragging=!0,e.hoverData.justStartedPan=!0,vt[4]=0,e.data.bgActivePosistion=kq(ut),e.redrawHint("select",!0),e.redraw()}if(cr&&cr.pannable()&&cr.active())cr.unactivate()}}else{if(cr&&cr.pannable()&&cr.active())cr.unactivate();if((!cr||!cr.grabbed())&&ir!=qt){if(qt)o(qt,["mouseout","tapdragout"],fe,{x:at[0],y:at[1]});if(ir)o(ir,["mouseover","tapdragover"],fe,{x:at[0],y:at[1]});e.hoverData.last=ir}if(cr)if(lr){if(ke.boxSelectionEnabled()&&Bn){if(cr&&cr.grabbed()){if(k(Zt),cr.emit(dn("freeon")),Zt.emit(dn("free")),e.dragData.didDrag)cr.emit(dn("dragfreeon")),Zt.emit(dn("dragfree"))}Ii()}else if(cr&&cr.grabbed()&&e.nodeIsDraggable(cr)){var Ia=!e.dragData.didDrag;if(Ia)e.redrawHint("eles",!0);if(e.dragData.didDrag=!0,!e.hoverData.draggingEles)T(Zt,{inDragLayer:!0});var tt={x:0,y:0};if(Sa(tr[0])&&Sa(tr[1])){if(tt.x+=tr[0],tt.y+=tr[1],Ia){var Fn=e.hoverData.dragDelta;if(Fn&&Sa(Fn[0])&&Sa(Fn[1]))tt.x+=Fn[0],tt.y+=Fn[1]}}e.hoverData.draggingEles=!0,Zt.silentShift(tt).emit(dn("position")).emit(dn("drag")),e.redrawHint("drag",!0),e.redraw()}}else si();Ge=!0}if(vt[2]=at[0],vt[3]=at[1],Ge){if(fe.stopPropagation)fe.stopPropagation();if(fe.preventDefault)fe.preventDefault();return!1}},!1);var X,Q,Y;e.registerBinding(r,"mouseup",function(fe){if(e.hoverData.which===1&&fe.which!==1&&e.hoverData.capture)return;var be=e.hoverData.capture;if(!be)return;e.hoverData.capture=!1;var Ge=e.cy,ke=e.projectIntoViewport(fe.clientX,fe.clientY),we=e.selection,Ae=e.findNearestElement(ke[0],ke[1],!0,!1),at=e.dragData.possibleDragElements,ut=e.hoverData.down,gt=l(fe);if(e.data.bgActivePosistion)e.redrawHint("select",!0),e.redraw();if(e.hoverData.tapholdCancelled=!0,e.data.bgActivePosistion=void 0,ut)ut.unactivate();var vt=function(Xt){return{originalEvent:fe,type:Xt,position:{x:ke[0],y:ke[1]}}};if(e.hoverData.which===3){var ir=vt("cxttapend");if(ut)ut.emit(ir);else Ge.emit(ir);if(!e.hoverData.cxtDragged){var qt=vt("cxttap");if(ut)ut.emit(qt);else Ge.emit(qt)}e.hoverData.cxtDragged=!1,e.hoverData.which=null}else if(e.hoverData.which===1){if(o(Ae,["mouseup","tapend","vmouseup"],fe,{x:ke[0],y:ke[1]}),!e.dragData.didDrag&&!e.hoverData.dragged&&!e.hoverData.selecting&&!e.hoverData.isOverThresholdDrag)if(o(ut,["click","tap","vclick"],fe,{x:ke[0],y:ke[1]}),Q=!1,fe.timeStamp-Y<=Ge.multiClickDebounceTime())X&&clearTimeout(X),Q=!0,Y=null,o(ut,["dblclick","dbltap","vdblclick"],fe,{x:ke[0],y:ke[1]});else X=setTimeout(function(){if(Q)return;o(ut,["oneclick","onetap","voneclick"],fe,{x:ke[0],y:ke[1]})},Ge.multiClickDebounceTime()),Y=fe.timeStamp;if(ut==null&&!e.dragData.didDrag&&!e.hoverData.selecting&&!e.hoverData.dragged&&!l(fe)){if(Ge.$(i).unselect(["tapunselect"]),at.length>0)e.redrawHint("eles",!0);e.dragData.possibleDragElements=at=Ge.collection()}if(Ae==ut&&!e.dragData.didDrag&&!e.hoverData.selecting){if(Ae!=null&&Ae._private.selectable){if(e.hoverData.dragging);else if(Ge.selectionType()==="additive"||gt)if(Ae.selected())Ae.unselect(["tapunselect"]);else Ae.select(["tapselect"]);else if(!gt)Ge.$(i).unmerge(Ae).unselect(["tapunselect"]),Ae.select(["tapselect"]);e.redrawHint("eles",!0)}}if(e.hoverData.selecting){var cr=Ge.collection(e.getAllInBox(we[0],we[1],we[2],we[3]));if(e.redrawHint("select",!0),cr.length>0)e.redrawHint("eles",!0);Ge.emit(vt("boxend"));var tr=function(Xt){return Xt.selectable()&&!Xt.selected()};if(Ge.selectionType()==="additive")cr.emit(vt("box")).stdFilter(tr).select().emit(vt("boxselect"));else{if(!gt)Ge.$(i).unmerge(cr).unselect();cr.emit(vt("box")).stdFilter(tr).select().emit(vt("boxselect"))}e.redraw()}if(e.hoverData.dragging)e.hoverData.dragging=!1,e.redrawHint("select",!0),e.redrawHint("eles",!0),e.redraw();if(!we[4]){e.redrawHint("drag",!0),e.redrawHint("eles",!0);var Zt=ut&&ut.grabbed();if(k(at),Zt){if(ut.emit(vt("freeon")),at.emit(vt("free")),e.dragData.didDrag)ut.emit(vt("dragfreeon")),at.emit(vt("dragfree"))}}}we[4]=0,e.hoverData.down=null,e.hoverData.cxtStarted=!1,e.hoverData.draggingEles=!1,e.hoverData.selecting=!1,e.hoverData.isOverThresholdDrag=!1,e.dragData.didDrag=!1,e.hoverData.dragged=!1,e.hoverData.dragDelta=[],e.hoverData.mdownPos=null,e.hoverData.mdownGPos=null,e.hoverData.which=null},!1);var K=[],J=4,Z,j=1e5,ee=function(fe){var be=Math.abs(fe[0]);for(var Ge=1;Ge=J){Z=!1;var ke=K;if(ke[0]>=5){var we;if(ee(ke))we=ke[0];else we=Lsi(ke);if(we>1)Z=!0,j=we}}else K.push(Math.abs(Ge)),be=!0;else if(Z)j=Math.min(Math.abs(Ge),j);if(e.scrollingPage)return;var Ae=e.cy,at=Ae.zoom(),ut=Ae.pan(),gt=e.projectIntoViewport(fe.clientX,fe.clientY),vt=[gt[0]*at+ut.x,gt[1]*at+ut.y];if(e.hoverData.draggingEles||e.hoverData.dragging||e.hoverData.cxtStarted||F()){fe.preventDefault();return}if(Ae.panningEnabled()&&Ae.userPanningEnabled()&&Ae.zoomingEnabled()&&Ae.userZoomingEnabled()){fe.preventDefault(),e.data.wheelZooming=!0,clearTimeout(e.data.wheelTimeout),e.data.wheelTimeout=setTimeout(function(){e.data.wheelZooming=!1,e.redrawHint("eles",!0),e.redraw()},150);var ir;if(be&&Math.abs(Ge)>5)Ge=got(Ge)*5;if(ir=Ge/-250,Z)ir/=j,ir*=3;ir=ir*e.wheelSensitivity;var qt=fe.deltaMode===1;if(qt)ir*=33;var cr=Ae.zoom()*Math.pow(10,ir);if(fe.type==="gesturechange")cr=e.gestureStartZoom*fe.scale;Ae.zoom({level:cr,renderedPosition:{x:vt[0],y:vt[1]}}),Ae.emit({type:fe.type==="gesturechange"?"pinchzoom":"scrollzoom",originalEvent:fe,position:{x:gt[0],y:gt[1]}})}};e.registerBinding(e.container,"wheel",z,!0),e.registerBinding(r,"scroll",function(fe){e.scrollingPage=!0,clearTimeout(e.scrollingPageTimeout),e.scrollingPageTimeout=setTimeout(function(){e.scrollingPage=!1},250)},!0),e.registerBinding(e.container,"gesturestart",function(fe){if(e.gestureStartZoom=e.cy.zoom(),!e.hasTouchStarted)fe.preventDefault()},!0),e.registerBinding(e.container,"gesturechange",function(pe){if(!e.hasTouchStarted)z(pe)},!0),e.registerBinding(e.container,"mouseout",function(fe){var be=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseout",position:{x:be[0],y:be[1]}})},!1),e.registerBinding(e.container,"mouseover",function(fe){var be=e.projectIntoViewport(fe.clientX,fe.clientY);e.cy.emit({originalEvent:fe,type:"mouseover",position:{x:be[0],y:be[1]}})},!1);var ne,ie,se,oe,he,ye,Se,Ie,Ee,ze,Me,Xe,Ye,Qe=function(fe,be,Ge,ke){return Math.sqrt((Ge-fe)*(Ge-fe)+(ke-be)*(ke-be))},xt=function(fe,be,Ge,ke){return(Ge-fe)*(Ge-fe)+(ke-be)*(ke-be)},dt;e.registerBinding(e.container,"touchstart",dt=function(fe){if(e.hasTouchStarted=!0,!H(fe))return;R(),e.touchData.capture=!0,e.data.bgActivePosistion=void 0;var be=e.cy,Ge=e.touchData.now,ke=e.touchData.earlier;if(fe.touches[0]){var we=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);Ge[0]=we[0],Ge[1]=we[1]}if(fe.touches[1]){var we=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);Ge[2]=we[0],Ge[3]=we[1]}if(fe.touches[2]){var we=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);Ge[4]=we[0],Ge[5]=we[1]}var Ae=function(Bn){return{originalEvent:fe,type:Bn,position:{x:Ge[0],y:Ge[1]}}};if(fe.touches[1]){e.touchData.singleTouchMoved=!0,k(e.dragData.touchDragEles);var at=e.findContainerClientCoords();Ee=at[0],ze=at[1],Me=at[2],Xe=at[3],ne=fe.touches[0].clientX-Ee,ie=fe.touches[0].clientY-ze,se=fe.touches[1].clientX-Ee,oe=fe.touches[1].clientY-ze,Ye=0<=ne&&ne<=Me&&0<=se&&se<=Me&&0<=ie&&ie<=Xe&&0<=oe&&oe<=Xe;var ut=be.pan(),gt=be.zoom();he=Qe(ne,ie,se,oe),ye=xt(ne,ie,se,oe),Se=[(ne+se)/2,(ie+oe)/2],Ie=[(Se[0]-ut.x)/gt,(Se[1]-ut.y)/gt];var vt=200,ir=vt*vt;if(ye=1){var In=e.touchData.startPosition=[null,null,null,null,null,null];for(var Et=0;Et=e.touchTapThreshold2}if(be&&e.touchData.cxt){fe.preventDefault();var Et=fe.touches[0].clientX-Ee,Xn=fe.touches[0].clientY-ze,Yt=fe.touches[1].clientX-Ee,Bn=fe.touches[1].clientY-ze,si=xt(Et,Xn,Yt,Bn),dn=si/ye,Ii=150,Vn=Ii*Ii,Ei=1.5,vn=Ei*Ei;if(dn>=vn||si>=Vn){e.touchData.cxt=!1,e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Li=gt("cxttapend");if(e.touchData.start)e.touchData.start.unactivate().emit(Li),e.touchData.start=null;else ke.emit(Li)}}if(be&&e.touchData.cxt){var Li=gt("cxtdrag");if(e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.touchData.start)e.touchData.start.emit(Li);else ke.emit(Li);if(e.touchData.start)e.touchData.start._private.grabbed=!1;e.touchData.cxtDragged=!0;var Ia=e.findNearestElement(we[0],we[1],!0,!0);if(!e.touchData.cxtOver||Ia!==e.touchData.cxtOver){if(e.touchData.cxtOver)e.touchData.cxtOver.emit(gt("cxtdragout"));if(e.touchData.cxtOver=Ia,Ia)Ia.emit(gt("cxtdragover"))}}else if(be&&fe.touches[2]&&ke.boxSelectionEnabled()){if(fe.preventDefault(),e.data.bgActivePosistion=void 0,this.lastThreeTouch=+new Date,!e.touchData.selecting)ke.emit(gt("boxstart"));if(e.touchData.selecting=!0,e.touchData.didSelect=!0,Ge[4]=1,!Ge||Ge.length===0||Ge[0]===void 0)Ge[0]=(we[0]+we[2]+we[4])/3,Ge[1]=(we[1]+we[3]+we[5])/3,Ge[2]=(we[0]+we[2]+we[4])/3+1,Ge[3]=(we[1]+we[3]+we[5])/3+1;else Ge[2]=(we[0]+we[2]+we[4])/3,Ge[3]=(we[1]+we[3]+we[5])/3;e.redrawHint("select",!0),e.redraw()}else if(be&&fe.touches[1]&&!e.touchData.didSelect&&ke.zoomingEnabled()&&ke.panningEnabled()&&ke.userZoomingEnabled()&&ke.userPanningEnabled()){fe.preventDefault(),e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var tt=e.dragData.touchDragEles;if(tt){e.redrawHint("drag",!0);for(var Fn=0;Fn0&&!e.hoverData.draggingEles&&!e.swipePanning&&e.data.bgActivePosistion!=null)e.data.bgActivePosistion=void 0,e.redrawHint("select",!0),e.redraw()},!1);var Kt;e.registerBinding(r,"touchcancel",Kt=function(fe){var be=e.touchData.start;if(e.touchData.capture=!1,be)be.unactivate()});var rr,je,Nt,ct;if(e.registerBinding(r,"touchend",rr=function(fe){var be=e.touchData.start,Ge=e.touchData.capture;if(Ge){if(fe.touches.length===0)e.touchData.capture=!1;fe.preventDefault()}else return;var ke=e.selection;e.swipePanning=!1,e.hoverData.draggingEles=!1;var we=e.cy,Ae=we.zoom(),at=e.touchData.now,ut=e.touchData.earlier;if(fe.touches[0]){var gt=e.projectIntoViewport(fe.touches[0].clientX,fe.touches[0].clientY);at[0]=gt[0],at[1]=gt[1]}if(fe.touches[1]){var gt=e.projectIntoViewport(fe.touches[1].clientX,fe.touches[1].clientY);at[2]=gt[0],at[3]=gt[1]}if(fe.touches[2]){var gt=e.projectIntoViewport(fe.touches[2].clientX,fe.touches[2].clientY);at[4]=gt[0],at[5]=gt[1]}var vt=function(Vn){return{originalEvent:fe,type:Vn,position:{x:at[0],y:at[1]}}};if(be)be.unactivate();var ir;if(e.touchData.cxt){if(ir=vt("cxttapend"),be)be.emit(ir);else we.emit(ir);if(!e.touchData.cxtDragged){var qt=vt("cxttap");if(be)be.emit(qt);else we.emit(qt)}if(e.touchData.start)e.touchData.start._private.grabbed=!1;e.touchData.cxt=!1,e.touchData.start=null,e.redraw();return}if(!fe.touches[2]&&we.boxSelectionEnabled()&&e.touchData.selecting){e.touchData.selecting=!1;var cr=we.collection(e.getAllInBox(ke[0],ke[1],ke[2],ke[3]));ke[0]=void 0,ke[1]=void 0,ke[2]=void 0,ke[3]=void 0,ke[4]=0,e.redrawHint("select",!0),we.emit(vt("boxend"));var tr=function(Vn){return Vn.selectable()&&!Vn.selected()};if(cr.emit(vt("box")).stdFilter(tr).select().emit(vt("boxselect")),cr.nonempty())e.redrawHint("eles",!0);e.redraw()}if(be!=null)be.unactivate();if(fe.touches[2])e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);else if(fe.touches[1]);else if(fe.touches[0]);else if(!fe.touches[0]){e.data.bgActivePosistion=void 0,e.redrawHint("select",!0);var Zt=e.dragData.touchDragEles;if(be!=null){var lr=be._private.grabbed;if(k(Zt),e.redrawHint("drag",!0),e.redrawHint("eles",!0),lr){if(be.emit(vt("freeon")),Zt.emit(vt("free")),e.dragData.didDrag)be.emit(vt("dragfreeon")),Zt.emit(vt("dragfree"))}o(be,["touchend","tapend","vmouseup","tapdragout"],fe,{x:at[0],y:at[1]}),be.unactivate(),e.touchData.start=null}else{var Xt=e.findNearestElement(at[0],at[1],!0,!0);o(Xt,["touchend","tapend","vmouseup","tapdragout"],fe,{x:at[0],y:at[1]})}var In=e.touchData.startPosition[0]-at[0],Et=In*In,Xn=e.touchData.startPosition[1]-at[1],Yt=Xn*Xn,Bn=Et+Yt,si=Bn*Ae*Ae;if(!e.touchData.singleTouchMoved){if(!be)we.$(":selected").unselect(["tapunselect"]);if(o(be,["tap","vclick"],fe,{x:at[0],y:at[1]}),je=!1,fe.timeStamp-ct<=we.multiClickDebounceTime())Nt&&clearTimeout(Nt),je=!0,ct=null,o(be,["dbltap","vdblclick"],fe,{x:at[0],y:at[1]});else Nt=setTimeout(function(){if(je)return;o(be,["onetap","voneclick"],fe,{x:at[0],y:at[1]})},we.multiClickDebounceTime()),ct=fe.timeStamp}if(be!=null&&!e.dragData.didDrag&&be._private.selectable&&si"u"){var bt=[],Pe=function(fe){return{clientX:fe.clientX,clientY:fe.clientY,force:1,identifier:fe.pointerId,pageX:fe.pageX,pageY:fe.pageY,radiusX:fe.width/2,radiusY:fe.height/2,screenX:fe.screenX,screenY:fe.screenY,target:fe.target}},Ue=function(fe){return{event:fe,touch:Pe(fe)}},qe=function(fe){bt.push(Ue(fe))},Ke=function(fe){for(var be=0;be0)return oe[0]}return null},x=Object.keys(w);for(var k=0;k0)return T;return U8r(l,h,r,i,a,o,d,p)},checkPoint:function(r,i,a,o,l,h,d,p){p=p==="auto"?d7(o,l):p;var m=2*p;if(nI(r,i,this.points,h,d,o,l-m,[0,-1],a))return!0;if(nI(r,i,this.points,h,d,o-m,l,[0,-1],a))return!0;var y=o/2+2*a,v=l/2+2*a,w=[h-y,d-v,h-y,d,h+y,d,h+y,d-v];if(i2(r,i,w))return!0;if(CB(r,i,m,m,h+o/2-p,d+l/2-p,a))return!0;if(CB(r,i,m,m,h-o/2+p,d+l/2-p,a))return!0;return!1}}};iI.registerNodeShapes=function(){var e=this.nodeShapes={},r=this;this.generateEllipse(),this.generatePolygon("triangle",vv(3,0)),this.generateRoundPolygon("round-triangle",vv(3,0)),this.generatePolygon("rectangle",vv(4,0)),e.square=e.rectangle,this.generateRoundRectangle(),this.generateCutRectangle(),this.generateBarrel(),this.generateBottomRoundrectangle();{var i=[0,1,1,0,0,-1,-1,0];this.generatePolygon("diamond",i),this.generateRoundPolygon("round-diamond",i)}this.generatePolygon("pentagon",vv(5,0)),this.generateRoundPolygon("round-pentagon",vv(5,0)),this.generatePolygon("hexagon",vv(6,0)),this.generateRoundPolygon("round-hexagon",vv(6,0)),this.generatePolygon("heptagon",vv(7,0)),this.generateRoundPolygon("round-heptagon",vv(7,0)),this.generatePolygon("octagon",vv(8,0)),this.generateRoundPolygon("round-octagon",vv(8,0));var a=Array(20);{var o=zst(5,0),l=zst(5,Math.PI/5),h=0.5*(3-Math.sqrt(5));h*=1.57;for(var d=0;d=r.deqFastCost*B)break}else if(m){if(N>=r.deqCost*T||N>=r.deqAvgCost*w)break}else if(L>=r.deqNoDrawCost*Lst)break;var D=r.deq(a,A,k);if(D.length>0)for(var P=0;P0){if(r.onDeqd(a,x),!m&&r.shouldRedraw(a,x,A,k))l()}},d=r.priority||dot;o.beforeRender(h,d(a))}}},vui=function(){function e(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:LTe;m7(this,e),this.idsByKey=new tI,this.keyForId=new tI,this.cachesByLvl=new tI,this.lvls=[],this.getKey=r,this.doesEleInvalidateKey=i}return b7(e,[{key:"getIdsFor",value:function(i){if(i==null)_f("Can not get id list for null key");var a=this.idsByKey,o=this.idsByKey.get(i);if(!o)o=new $q,a.set(i,o);return o}},{key:"addIdForKey",value:function(i,a){if(i!=null)this.getIdsFor(i).add(a)}},{key:"deleteIdForKey",value:function(i,a){if(i!=null)this.getIdsFor(i).delete(a)}},{key:"getNumberOfIdsForKey",value:function(i){if(i==null)return 0;else return this.getIdsFor(i).size}},{key:"updateKeyMappingFor",value:function(i){var a=i.id(),o=this.keyForId.get(a),l=this.getKey(i);this.deleteIdForKey(o,a),this.addIdForKey(l,a),this.keyForId.set(a,l)}},{key:"deleteKeyMappingFor",value:function(i){var a=i.id(),o=this.keyForId.get(a);this.deleteIdForKey(o,a),this.keyForId.delete(a)}},{key:"keyHasChangedFor",value:function(i){var a=i.id(),o=this.keyForId.get(a),l=this.getKey(i);return o!==l}},{key:"isInvalid",value:function(i){return this.keyHasChangedFor(i)||this.doesEleInvalidateKey(i)}},{key:"getCachesAt",value:function(i){var a=this.cachesByLvl,o=this.lvls,l=a.get(i);if(!l)l=new tI,a.set(i,l),o.push(i);return l}},{key:"getCache",value:function(i,a){return this.getCachesAt(a).get(i)}},{key:"get",value:function(i,a){var o=this.getKey(i),l=this.getCache(o,a);if(l!=null)this.updateKeyMappingFor(i);return l}},{key:"getForCachedKey",value:function(i,a){var o=this.keyForId.get(i.id()),l=this.getCache(o,a);return l}},{key:"hasCache",value:function(i,a){return this.getCachesAt(a).has(i)}},{key:"has",value:function(i,a){var o=this.getKey(i);return this.hasCache(o,a)}},{key:"setCache",value:function(i,a,o){o.key=i,this.getCachesAt(a).set(i,o)}},{key:"set",value:function(i,a,o){var l=this.getKey(i);this.setCache(l,a,o),this.updateKeyMappingFor(i)}},{key:"deleteCache",value:function(i,a){this.getCachesAt(a).delete(i)}},{key:"delete",value:function(i,a){var o=this.getKey(i);this.deleteCache(o,a)}},{key:"invalidateKey",value:function(i){var a=this;this.lvls.forEach(function(o){return a.deleteCache(i,o)})}},{key:"invalidate",value:function(i){var a=i.id(),o=this.keyForId.get(a);this.deleteKeyMappingFor(i);var l=this.doesEleInvalidateKey(i);if(l)this.invalidateKey(o);return l||this.getNumberOfIdsForKey(o)===0}}])}(),Rq={dequeue:"dequeue",downscale:"downscale",highQuality:"highQuality"},Lui=Z1({getKey:null,doesEleInvalidateKey:LTe,drawElement:null,getBoundingBox:null,getRotationPoint:null,getRotationOffset:null,isVisible:N8r,allowEdgeTxrCaching:!0,allowParentTxrCaching:!0}),lm=Xie.prototype;lm.reasons=Rq;lm.getTextureQueue=function(e){var r=this;return r.eleImgCaches=r.eleImgCaches||{},r.eleImgCaches[e]=r.eleImgCaches[e]||[]};lm.getRetiredTextureQueue=function(e){var r=this,i=r.eleImgCaches.retired=r.eleImgCaches.retired||{},a=i[e]=i[e]||[];return a};lm.getElementQueue=function(){var e=this,r=e.eleCacheQueue=e.eleCacheQueue||new mae(function(i,a){return a.reqs-i.reqs});return r};lm.getElementKeyToQueue=function(){var e=this,r=e.eleKeyToCacheQueue=e.eleKeyToCacheQueue||{};return r};lm.getElement=function(e,r,i,a,o){var l=this,h=this.renderer,d=h.cy.zoom(),p=this.lookup;if(!r||r.w===0||r.h===0||isNaN(r.w)||isNaN(r.h)||!e.visible()||e.removed())return null;if(!l.allowEdgeTxrCaching&&e.isEdge()||!l.allowParentTxrCaching&&e.isParent())return null;if(a==null)a=Math.ceil(pot(d*i));if(a=qDr||a>rot)return null;var m=Math.pow(2,a),y=r.h*m,v=r.w*m,w=h.eleTextBiggerThanMin(e,m);if(!this.isVisible(e,w))return null;var T=p.get(e,a);if(T&&T.invalidated)T.invalidated=!1,T.texture.invalidatedWidth-=T.width;if(T)return T;var x;if(y<=e8r)x=e8r;else if(y<=bTe)x=bTe;else x=Math.ceil(y/bTe)*bTe;if(y>Sui||v>wui)return null;var k=l.getTextureQueue(x),A=k[k.length-2],R=function(){return l.recycleTexture(x,v)||l.addTexture(x,v)};if(!A)A=k[k.length-1];if(!A)A=R();if(A.width-A.usedWidtha;Q--)W=l.getElement(e,r,i,Q,Rq.downscale);X()}else return l.queueElement(e,P.level-1),P;else{var Y;if(!L&&!B&&!D)for(var K=a-1;K>=ATe;K--){var J=p.get(e,K);if(J){Y=J;break}}if(N(Y))return l.queueElement(e,a),Y;A.context.translate(A.usedWidth,0),A.context.scale(m,m),this.drawElement(A.context,e,r,w,!1),A.context.scale(1/m,1/m),A.context.translate(-A.usedWidth,0)}return T={x:A.usedWidth,texture:A,level:a,scale:m,width:v,height:y,scaledLabelShown:w},A.usedWidth+=Math.ceil(v+_ui),A.eleCaches.push(T),p.set(e,a,T),l.checkTextureFullness(A),T};lm.invalidateElements=function(e){for(var r=0;r=Tui*e.width)this.retireTexture(e)};lm.checkTextureFullness=function(e){var r=this,i=r.getTextureQueue(e.height);if(e.usedWidth/e.width>xui&&e.fullnessChecks>=Cui)h7(i,e);else e.fullnessChecks++};lm.retireTexture=function(e){var r=this,i=e.height,a=r.getTextureQueue(i),o=this.lookup;h7(a,e),e.retired=!0;var l=e.eleCaches;for(var h=0;h=r)return h.retired=!1,h.usedWidth=0,h.invalidatedWidth=0,h.fullnessChecks=0,fot(h.eleCaches),h.context.setTransform(1,0,0,1,0,0),h.context.clearRect(0,0,h.width,h.height),h7(o,h),a.push(h),h}};lm.queueElement=function(e,r){var i=this,a=i.getElementQueue(),o=i.getElementKeyToQueue(),l=this.getKey(e),h=o[l];if(h)h.level=Math.max(h.level,r),h.eles.merge(e),h.reqs++,a.updateItem(h);else{var d={eles:e.spawn().merge(e),level:r,reqs:1,key:l};a.push(d),o[l]=d}};lm.dequeue=function(e){var r=this,i=r.getElementQueue(),a=r.getElementKeyToQueue(),o=[],l=r.lookup;for(var h=0;h0){var d=i.pop(),p=d.key,m=d.eles[0],y=l.hasCache(m,d.level);if(a[p]=null,y)continue;o.push(d);var v=r.getBoundingBox(m);r.getElement(m,v,e,d.level,Rq.dequeue)}else break;return o};lm.removeFromQueue=function(e){var r=this,i=r.getElementQueue(),a=r.getElementKeyToQueue(),o=this.getKey(e),l=a[o];if(l!=null)if(l.eles.length===1)l.reqs=hot,i.updateItem(l),i.pop(),a[o]=null;else l.eles.unmerge(e)};lm.onDequeue=function(e){this.onDequeues.push(e)};lm.offDequeue=function(e){h7(this.onDequeues,e)};lm.setupDequeueing=HDr.setupDequeueing({deqRedrawThreshold:Oui,deqCost:kui,deqAvgCost:Aui,deqNoDrawCost:Rui,deqFastCost:Iui,deq:function(r,i,a){return r.dequeue(i,a)},onDeqd:function(r,i){for(var a=0;a=Dui||i>GTe)return null}a.validateLayersElesOrdering(i,e);var p=a.layersByLevel,m=Math.pow(2,i),y=p[i]=p[i]||[],v,w=a.levelIsComplete(i,e),T,x=function(){var X=function(Z){if(a.validateLayersElesOrdering(Z,e),a.levelIsComplete(Z,e))return T=p[Z],!0},Q=function(Z){if(T)return;for(var j=i+Z;Zie<=j&&j<=GTe;j+=Z)if(X(j))break};Q(1),Q(-1);for(var Y=y.length-1;Y>=0;Y--){var K=y[Y];if(K.invalid)h7(y,K)}};if(!w)x();else return y;var k=function(){if(!v){v=Ev();for(var X=0;Xr8r||K>r8r)return null;var J=Y*K;if(J>Vui)return null;var Z=a.makeLayer(v,i);if(Q!=null){var j=y.indexOf(Q)+1;y.splice(j,0,Z)}else if(X.insert===void 0||X.insert)y.unshift(Z);return Z};if(a.skipping&&!d)return null;var R=null,N=e.length/Mui,L=!d;for(var B=0;B=N||!$8r(R.bb,D.boundingBox())){if(R=A({insert:!0,after:R}),!R)return null}if(T||L)a.queueLayer(R,D);else a.drawEleInLayer(R,D,i,r);R.eles.push(D),F[i]=R}if(T)return T;if(L)return null;return y};J1.getEleLevelForLayerLevel=function(e,r){return e};J1.drawEleInLayer=function(e,r,i,a){var o=this,l=this.renderer,h=e.context,d=r.boundingBox();if(d.w===0||d.h===0||!r.visible())return;i=o.getEleLevelForLayerLevel(i,a),l.setImgSmoothing(h,!1),l.drawCachedElement(h,r,null,null,i,Hui),l.setImgSmoothing(h,!0)};J1.levelIsComplete=function(e,r){var i=this,a=i.layersByLevel[e];if(!a||a.length===0)return!1;var o=0;for(var l=0;l0)return!1;if(h.invalid)return!1;o+=h.eles.length}if(o!==r.length)return!1;return!0};J1.validateLayersElesOrdering=function(e,r){var i=this.layersByLevel[e];if(!i)return;for(var a=0;a0){r=!0;break}}return r};J1.invalidateElements=function(e){var r=this;if(e.length===0)return;if(r.lastInvalidationTime=rI(),e.length===0||!r.haveLayers())return;r.updateElementsInLayers(e,function(a,o,l){r.invalidateLayer(a)})};J1.invalidateLayer=function(e){if(this.lastInvalidationTime=rI(),e.invalid)return;var{level:r,eles:i}=e,a=this.layersByLevel[r];if(h7(a,e),e.elesQueue=[],e.invalid=!0,e.replacement)e.replacement.invalid=!0;for(var o=0;o3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,h=this,d=r._private.rscratch;if(l&&!r.visible())return;if(d.badLine||d.allpts==null||isNaN(d.allpts[0]))return;var p;if(i)p=i,e.translate(-p.x1,-p.y1);var m=l?r.pstyle("opacity").value:1,y=l?r.pstyle("line-opacity").value:1,v=r.pstyle("curve-style").value,w=r.pstyle("line-style").value,T=r.pstyle("width").pfValue,x=r.pstyle("line-cap").value,k=r.pstyle("line-outline-width").value,A=r.pstyle("line-outline-color").value,R=m*y,N=m*y,L=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R;if(v==="straight-triangle")h.eleStrokeStyle(e,r,Z),h.drawEdgeTrianglePath(r,e,d.allpts);else e.lineWidth=T,e.lineCap=x,h.eleStrokeStyle(e,r,Z),h.drawEdgePath(r,e,d.allpts,w),e.lineCap="butt"},B=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:R;if(e.lineWidth=T+k,e.lineCap=x,k>0)h.colorStrokeStyle(e,A[0],A[1],A[2],Z);else{e.lineCap="butt";return}if(v==="straight-triangle")h.drawEdgeTrianglePath(r,e,d.allpts);else h.drawEdgePath(r,e,d.allpts,w),e.lineCap="butt"},D=function(){if(!o)return;h.drawEdgeOverlay(e,r)},P=function(){if(!o)return;h.drawEdgeUnderlay(e,r)},F=function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N;h.drawArrowheads(e,r,Z)},H=function(){h.drawElementText(e,r,null,a)};e.lineJoin="round";var W=r.pstyle("ghost").value==="yes";if(W){var X=r.pstyle("ghost-offset-x").pfValue,Q=r.pstyle("ghost-offset-y").pfValue,Y=r.pstyle("ghost-opacity").value,K=R*Y;e.translate(X,Q),L(K),F(K),e.translate(-X,-Q)}else B();if(P(),L(),F(),D(),H(),i)e.translate(p.x1,p.y1)};aI.drawEdgeOverlay=jDr("overlay");aI.drawEdgeUnderlay=jDr("underlay");aI.drawEdgePath=function(e,r,i,a){var o=e._private.rscratch,l=r,h,d=!1,p=this.usePaths(),m=e.pstyle("line-dash-pattern").pfValue,y=e.pstyle("line-dash-offset").pfValue;if(p){var v=i.join("$"),w=o.pathCacheKey&&o.pathCacheKey===v;if(w)h=r=o.pathCache,d=!0;else h=r=new Path2D,o.pathCacheKey=v,o.pathCache=h}if(l.setLineDash)switch(a){case"dotted":l.setLineDash([1,1]);break;case"dashed":l.setLineDash(m),l.lineDashOffset=y;break;case"solid":l.setLineDash([]);break}if(!d&&!o.badLine){if(r.beginPath)r.beginPath();switch(r.moveTo(i[0],i[1]),o.edgeType){case"bezier":case"self":case"compound":case"multibezier":for(var T=2;T+35&&arguments[5]!==void 0?arguments[5]:!0,h=this;if(a==null){if(l&&!h.eleTextBiggerThanMin(r))return}else if(a===!1)return;if(r.isNode()){var d=r.pstyle("label");if(!d||!d.value)return;var p=h.getLabelJustification(r),m=r.pstyle("text-metrics").strValue==="glyph";e.textAlign=p,e.textBaseline=m?"alphabetic":"bottom"}else{var y=r.element()._private.rscratch.badLine,v=r.pstyle("label"),w=r.pstyle("source-label"),T=r.pstyle("target-label");if(y||(!v||!v.value)&&(!w||!w.value)&&(!T||!T.value))return;e.textAlign="center",e.textBaseline="bottom"}var x=!i,k;if(i)k=i,e.translate(-k.x1,-k.y1);if(o==null){if(h.drawText(e,r,null,x,l),r.isEdge())h.drawText(e,r,"source",x,l),h.drawText(e,r,"target",x,l)}else h.drawText(e,r,o,x,l);if(i)e.translate(k.x1,k.y1)};LB.getFontCache=function(e){var r;this.fontCaches=this.fontCaches||[];for(var i=0;i2&&arguments[2]!==void 0?arguments[2]:!0,a=r.pstyle("font-style").strValue,o=r.pstyle("font-size").pfValue+"px",l=r.pstyle("font-family").strValue,h=r.pstyle("font-weight").strValue,d=i?r.effectiveOpacity()*r.pstyle("text-opacity").value:1,p=r.pstyle("text-outline-opacity").value*d,m=r.pstyle("color").value,y=r.pstyle("text-outline-color").value;e.font=a+" "+h+" "+o+" "+l,e.lineJoin="round",this.colorFillStyle(e,m[0],m[1],m[2],d),this.colorStrokeStyle(e,y[0],y[1],y[2],p)};LB.getTextAngle=function(e,r){var i,a=e._private,o=a.rscratch,l=r?r+"-":"",h=e.pstyle(l+"text-rotation");if(h.strValue==="autorotate"){var d=_v(o,"labelAngle",r);i=e.isEdge()?d:0}else if(h.strValue==="none")i=0;else i=h.pfValue;return i};LB.drawText=function(e,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=r._private,h=l.rscratch,d=o?r.effectiveOpacity():1;if(o&&(d===0||r.pstyle("text-opacity").value===0))return;if(i==="main")i=null;var p=_v(h,"labelX",i),m=_v(h,"labelY",i),y,v,w=this.getLabelText(r,i);if(w!=null&&w!==""&&!isNaN(p)&&!isNaN(m)){this.setupTextStyle(e,r,o);var T=i?i+"-":"",x=_v(h,"labelWidth",i),k=_v(h,"labelHeight",i),A=_v(h,"labelActualDescent",i),R=r.pstyle(T+"text-margin-x").pfValue,N=r.pstyle(T+"text-margin-y").pfValue,L=r.isEdge(),B=r.pstyle("text-halign").value,D=r.pstyle("text-valign").value;if(L)B="center",D="center";p+=R,m+=N;var P;if(!a)P=0;else P=this.getTextAngle(r,i);if(P!==0)y=p,v=m,e.translate(y,v),e.rotate(P),p=0,m=0;var F=Bq(B),H=Fq(D);switch(H){case"top":break;case"center":m+=k/2;break;case"bottom":m+=k;break}var W=r.pstyle("text-background-opacity").value,X=r.pstyle("text-border-opacity").value,Q=r.pstyle("text-border-width").pfValue,Y=r.pstyle("text-background-padding").pfValue,K=r.pstyle("text-background-shape").strValue,J=K==="round-rectangle"||K==="roundrectangle",Z=K==="circle",j=2;if(W>0||Q>0&&X>0){var{fillStyle:ee,strokeStyle:z,lineWidth:ne}=e,ie=r.pstyle("text-background-color").value,se=r.pstyle("text-border-color").value,oe=r.pstyle("text-border-style").value,he=W>0,ye=Q>0&&X>0,Se=p-Y;switch(F){case"left":Se-=x;break;case"center":Se-=x/2;break}var Ie=m-k-Y,Ee=x+2*Y,ze=k+2*Y;if(he)e.fillStyle="rgba(".concat(ie[0],",").concat(ie[1],",").concat(ie[2],",").concat(W*d,")");if(ye){if(e.strokeStyle="rgba(".concat(se[0],",").concat(se[1],",").concat(se[2],",").concat(X*d,")"),e.lineWidth=Q,e.setLineDash)switch(oe){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"double":e.lineWidth=Q/4,e.setLineDash([]);break;case"solid":default:e.setLineDash([]);break}}if(J)e.beginPath(),s8r(e,Se,Ie,Ee,ze,j);else if(Z)e.beginPath(),thi(e,Se,Ie,Ee,ze);else e.beginPath(),e.rect(Se,Ie,Ee,ze);if(he)e.fill();if(ye)e.stroke();if(ye&&oe==="double"){var Me=Q/2;if(e.beginPath(),J)s8r(e,Se+Me,Ie+Me,Ee-2*Me,ze-2*Me,j);else e.rect(Se+Me,Ie+Me,Ee-2*Me,ze-2*Me);e.stroke()}if(e.fillStyle=ee,e.strokeStyle=z,e.lineWidth=ne,e.setLineDash)e.setLineDash([])}var Xe=2*r.pstyle("text-outline-width").pfValue;if(Xe>0)e.lineWidth=Xe;if(m-=A,r.pstyle("text-wrap").value==="wrap"){var Ye=_v(h,"labelWrapCachedLines",i),Qe=_v(h,"labelLineHeight",i),xt=x/2,dt=this.getLabelJustification(r);if(dt==="auto");else if(F==="left"){if(dt==="left")p+=-x;else if(dt==="center")p+=-xt}else if(F==="center"){if(dt==="left")p+=-xt;else if(dt==="right")p+=xt}else if(F==="right"){if(dt==="center")p+=xt;else if(dt==="right")p+=x}switch(H){case"top":m-=(Ye.length-1)*Qe;break;case"center":case"bottom":m-=(Ye.length-1)*Qe;break}for(var zt=0;zt0)e.strokeText(Ye[zt],p,m);e.fillText(Ye[zt],p,m),m+=Qe}}else{if(Xe>0)e.strokeText(w,p,m);e.fillText(w,p,m)}if(P!==0)e.rotate(-P),e.translate(-y,-v)}};v7={};v7.drawNode=function(e,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0,h=this,d,p,m=r._private,y=m.rscratch,v=r.position();if(!Sa(v.x)||!Sa(v.y))return;if(l&&!r.visible())return;var w=l?r.effectiveOpacity():1,T=h.usePaths(),x,k=!1,A=r.padding();d=r.width()+2*A,p=r.height()+2*A;var R;if(i)R=i,e.translate(-R.x1,-R.y1);var N=r.pstyle("background-image"),L=N.value,B=Array(L.length),D=Array(L.length),P=0;for(var F=0;F0&&arguments[0]!==void 0?arguments[0]:K;h.eleFillStyle(e,r,be)},Me=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:se;h.colorStrokeStyle(e,J[0],J[1],J[2],be)},Xe=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Se;h.colorStrokeStyle(e,he[0],he[1],he[2],be)},Ye=function(be,Ge,ke,we){var Ae=h.nodePathCache=h.nodePathCache||[],at=O8r(ke==="polygon"?ke+","+we.join(","):ke,""+Ge,""+be,""+Ee),ut=Ae[at],gt,vt=!1;if(ut!=null)gt=ut,vt=!0,y.pathCache=gt;else gt=new Path2D,Ae[at]=y.pathCache=gt;return{path:gt,cacheHit:vt}},Qe=r.pstyle("shape").strValue,xt=r.pstyle("shape-polygon-points").pfValue;if(T){e.translate(v.x,v.y);var dt=Ye(d,p,Qe,xt);x=dt.path,k=dt.cacheHit}var zt=function(){if(!k){var be=v;if(T)be={x:0,y:0};h.nodeShapes[h.getNodeShape(r)].draw(x||e,be.x,be.y,d,p,Ee,y)}if(T)e.fill(x);else e.fill()},Kt=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w,Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ke=m.backgrounding,we=0;for(var Ae=0;Ae0&&arguments[0]!==void 0?arguments[0]:!1,Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w;if(h.hasPie(r)){if(h.drawPie(e,r,Ge),be){if(!T)h.nodeShapes[h.getNodeShape(r)].draw(e,v.x,v.y,d,p,Ee,y)}}},je=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w;if(h.hasStripe(r)){if(e.save(),T)e.clip(y.pathCache);else h.nodeShapes[h.getNodeShape(r)].draw(e,v.x,v.y,d,p,Ee,y),e.clip();if(h.drawStripe(e,r,Ge),e.restore(),be){if(!T)h.nodeShapes[h.getNodeShape(r)].draw(e,v.x,v.y,d,p,Ee,y)}}},Nt=function(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:w,Ge=(Q>0?Q:-Q)*be,ke=Q>0?0:255;if(Q!==0)if(h.colorFillStyle(e,ke,ke,ke,Ge),T)e.fill(x);else e.fill()},ct=function(){if(Y>0){if(e.lineWidth=Y,e.lineCap=ee,e.lineJoin=j,e.setLineDash)switch(Z){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash(ne),e.lineDashOffset=ie;break;case"solid":case"double":e.setLineDash([]);break}if(z!=="center"){if(e.save(),e.lineWidth*=2,z==="inside")T?e.clip(x):e.clip();else{var be=new Path2D;be.rect(-d/2-Y,-p/2-Y,d+2*Y,p+2*Y),be.addPath(x),e.clip(be,"evenodd")}T?e.stroke(x):e.stroke(),e.restore()}else T?e.stroke(x):e.stroke();if(Z==="double"){e.lineWidth=Y/3;var Ge=e.globalCompositeOperation;if(e.globalCompositeOperation="destination-out",T)e.stroke(x);else e.stroke();e.globalCompositeOperation=Ge}if(e.setLineDash)e.setLineDash([])}},bt=function(){if(oe>0){if(e.lineWidth=oe,e.lineCap="butt",e.setLineDash)switch(ye){case"dotted":e.setLineDash([1,1]);break;case"dashed":e.setLineDash([4,2]);break;case"solid":case"double":e.setLineDash([]);break}var be=v;if(T)be={x:0,y:0};var Ge=h.getNodeShape(r),ke=Y;if(z==="inside")ke=0;if(z==="outside")ke*=2;var we=(d+ke+(oe+Ie))/d,Ae=(p+ke+(oe+Ie))/p,at=d*we,ut=p*Ae,gt=h.nodeShapes[Ge].points,vt;if(T){var ir=Ye(at,ut,Ge,gt);vt=ir.path}if(Ge==="ellipse")h.drawEllipsePath(vt||e,be.x,be.y,at,ut);else if(["round-diamond","round-heptagon","round-hexagon","round-octagon","round-pentagon","round-polygon","round-triangle","round-tag"].includes(Ge)){var qt=0,cr=0,tr=0;if(Ge==="round-diamond")qt=(ke+Ie+oe)*1.4;else if(Ge==="round-heptagon")qt=(ke+Ie+oe)*1.075,tr=-(ke/2+Ie+oe)/35;else if(Ge==="round-hexagon")qt=(ke+Ie+oe)*1.12;else if(Ge==="round-pentagon")qt=(ke+Ie+oe)*1.13,tr=-(ke/2+Ie+oe)/15;else if(Ge==="round-tag")qt=(ke+Ie+oe)*1.12,cr=(ke/2+oe+Ie)*0.07;else if(Ge==="round-triangle")qt=(ke+Ie+oe)*(Math.PI/2),tr=-(ke+Ie/2+oe)/Math.PI;if(qt!==0){if(we=(d+qt)/d,at=d*we,!["round-hexagon","round-tag"].includes(Ge))Ae=(p+qt)/p,ut=p*Ae}Ee=Ee==="auto"?z8r(at,ut):Ee;var Zt=at/2,lr=ut/2,Xt=Ee+(ke+oe+Ie)/2,In=Array(gt.length/2),Et=Array(gt.length/2);for(var Xn=0;Xn=w)return;for(var A=1;A<=o.pieBackgroundN;A++){var R=r.pstyle("pie-"+A+"-background-size").value,N=r.pstyle("pie-"+A+"-background-color").value,L=r.pstyle("pie-"+A+"-background-opacity").value*i,B=R/100;if(B+x>1)B=1-x;var D=1.5*Math.PI+2*Math.PI*x;D+=d;var P=2*Math.PI*B,F=D+P;if(R===0||x>=1||x+B>1)continue;if(T===0)e.beginPath(),e.moveTo(p,m),e.arc(p,m,w,D,F),e.closePath();else e.beginPath(),e.arc(p,m,w,D,F),e.arc(p,m,T,F,D,!0),e.closePath();this.colorFillStyle(e,N[0],N[1],N[2],L),e.fill(),x+=B}};v7.drawStripe=function(e,r,i,a){r=r[0],a=a||r.position();var o=r.cy().style(),l=a.x,h=a.y,d=r.width(),p=r.height(),m=0,y=this.usePaths();e.save();var v=r.pstyle("stripe-direction").value,w=r.pstyle("stripe-size");switch(v){case"vertical":break;case"righward":e.rotate(-Math.PI/2);break}var T=d,x=p;if(w.units==="%")T=T*w.pfValue,x=x*w.pfValue;else if(w.pfValue!==void 0)T=w.pfValue,x=w.pfValue;if(y)l=0,h=0;h-=T/2,l-=x/2;for(var k=1;k<=o.stripeBackgroundN;k++){var A=r.pstyle("stripe-"+k+"-background-size").value,R=r.pstyle("stripe-"+k+"-background-color").value,N=r.pstyle("stripe-"+k+"-background-opacity").value*i,L=A/100;if(L+m>1)L=1-m;if(A===0||m>=1||m+L>1)continue;e.beginPath(),e.rect(l,h+x*m,T,x*L),e.closePath(),this.colorFillStyle(e,R[0],R[1],R[2],N),e.fill(),m+=L}e.restore()};wv={};wv.getPixelRatio=function(){var e=this.data.contexts[0];if(this.forcedPixelRatio!=null)return this.forcedPixelRatio;var r=this.cy.window(),i=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(r.devicePixelRatio||1)/i};wv.paintCache=function(e){var r=this.paintCaches=this.paintCaches||[],i=!0,a;for(var o=0;or.minMbLowQualFrames)r.motionBlurPxRatio=r.mbPxRBlurry}if(r.clearingMotionBlur)r.motionBlurPxRatio=1;if(r.textureDrawLastFrame&&!v)y[r.NODE]=!0,y[r.SELECT_BOX]=!0;var N=i.style(),L=i.zoom(),B=h!==void 0?h:L,D=i.pan(),P={x:D.x,y:D.y},F={zoom:L,pan:{x:D.x,y:D.y}},H=r.prevViewport,W=H===void 0||F.zoom!==H.zoom||F.pan.x!==H.pan.x||F.pan.y!==H.pan.y;if(!W&&!(k&&!x))r.motionBlurPxRatio=1;if(d)P=d;B*=p,P.x*=p,P.y*=p;var X=r.getCachedZSortedEles();function Q(Me,Xe,Ye,Qe,xt){var dt=Me.globalCompositeOperation;Me.globalCompositeOperation="destination-out",r.colorFillStyle(Me,255,255,255,r.motionBlurTransparency),Me.fillRect(Xe,Ye,Qe,xt),Me.globalCompositeOperation=dt}function Y(Me,Xe){var Ye,Qe,xt,dt;if(!r.clearingMotionBlur&&(Me===m.bufferContexts[r.MOTIONBLUR_BUFFER_NODE]||Me===m.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG]))Ye={x:D.x*T,y:D.y*T},Qe=L*T,xt=r.canvasWidth*T,dt=r.canvasHeight*T;else Ye=P,Qe=B,xt=r.canvasWidth,dt=r.canvasHeight;if(Me.setTransform(1,0,0,1,0,0),Xe==="motionBlur")Q(Me,0,0,xt,dt);else if(!a&&(Xe===void 0||Xe))Me.clearRect(0,0,xt,dt);if(!o)Me.translate(Ye.x,Ye.y),Me.scale(Qe,Qe);if(d)Me.translate(d.x,d.y);if(h)Me.scale(h,h)}if(!v)r.textureDrawLastFrame=!1;if(v){if(r.textureDrawLastFrame=!0,!r.textureCache){r.textureCache={},r.textureCache.bb=i.mutableElements().boundingBox(),r.textureCache.texture=r.data.bufferCanvases[r.TEXTURE_BUFFER];var K=r.data.bufferContexts[r.TEXTURE_BUFFER];K.setTransform(1,0,0,1,0,0),K.clearRect(0,0,r.canvasWidth*r.textureMult,r.canvasHeight*r.textureMult),r.render({forcedContext:K,drawOnlyNodeLayer:!0,forcedPxRatio:p*r.textureMult});var F=r.textureCache.viewport={zoom:i.zoom(),pan:i.pan(),width:r.canvasWidth,height:r.canvasHeight};F.mpan={x:(0-F.pan.x)/F.zoom,y:(0-F.pan.y)/F.zoom}}y[r.DRAG]=!1,y[r.NODE]=!1;var J=m.contexts[r.NODE],Z=r.textureCache.texture,F=r.textureCache.viewport;if(J.setTransform(1,0,0,1,0,0),w)Q(J,0,0,F.width,F.height);else J.clearRect(0,0,F.width,F.height);var j=N.core("outside-texture-bg-color").value,ee=N.core("outside-texture-bg-opacity").value;r.colorFillStyle(J,j[0],j[1],j[2],ee),J.fillRect(0,0,F.width,F.height);var L=i.zoom();Y(J,!1),J.clearRect(F.mpan.x,F.mpan.y,F.width/F.zoom/p,F.height/F.zoom/p),J.drawImage(Z,F.mpan.x,F.mpan.y,F.width/F.zoom/p,F.height/F.zoom/p)}else if(r.textureOnViewport&&!a)r.textureCache=null;var z=i.extent(),ne=r.pinching||r.hoverData.dragging||r.swipePanning||r.data.wheelZooming||r.hoverData.draggingEles||r.cy.animated(),ie=r.hideEdgesOnViewport&&ne,se=[];if(se[r.NODE]=!y[r.NODE]&&w&&!r.clearedForMotionBlur[r.NODE]||r.clearingMotionBlur,se[r.NODE])r.clearedForMotionBlur[r.NODE]=!0;if(se[r.DRAG]=!y[r.DRAG]&&w&&!r.clearedForMotionBlur[r.DRAG]||r.clearingMotionBlur,se[r.DRAG])r.clearedForMotionBlur[r.DRAG]=!0;if(y[r.NODE]||o||l||se[r.NODE]){var oe=w&&!se[r.NODE]&&T!==1,J=a||(oe?r.data.bufferContexts[r.MOTIONBLUR_BUFFER_NODE]:m.contexts[r.NODE]),he=w&&!oe?"motionBlur":void 0;if(Y(J,he),ie)r.drawCachedNodes(J,X.nondrag,p,z);else r.drawLayeredElements(J,X.nondrag,p,z);if(r.debug)r.drawDebugPoints(J,X.nondrag);if(!o&&!w)y[r.NODE]=!1}if(!l&&(y[r.DRAG]||o||se[r.DRAG])){var oe=w&&!se[r.DRAG]&&T!==1,J=a||(oe?r.data.bufferContexts[r.MOTIONBLUR_BUFFER_DRAG]:m.contexts[r.DRAG]);if(Y(J,w&&!oe?"motionBlur":void 0),ie)r.drawCachedNodes(J,X.drag,p,z);else r.drawCachedElements(J,X.drag,p,z);if(r.debug)r.drawDebugPoints(J,X.drag);if(!o&&!w)y[r.DRAG]=!1}if(this.drawSelectionRectangle(e,Y),w&&T!==1){var ye=m.contexts[r.NODE],Se=r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_NODE],Ie=m.contexts[r.DRAG],Ee=r.data.bufferCanvases[r.MOTIONBLUR_BUFFER_DRAG],ze=function(Xe,Ye,Qe){if(Xe.setTransform(1,0,0,1,0,0),Qe||!R)Xe.clearRect(0,0,r.canvasWidth,r.canvasHeight);else Q(Xe,0,0,r.canvasWidth,r.canvasHeight);var xt=T;Xe.drawImage(Ye,0,0,r.canvasWidth*xt,r.canvasHeight*xt,0,0,r.canvasWidth,r.canvasHeight)};if(y[r.NODE]||se[r.NODE])ze(ye,Se,se[r.NODE]),y[r.NODE]=!1;if(y[r.DRAG]||se[r.DRAG])ze(Ie,Ee,se[r.DRAG]),y[r.DRAG]=!1}if(r.prevViewport=F,r.clearingMotionBlur)r.clearingMotionBlur=!1,r.motionBlurCleared=!0,r.motionBlur=!0;if(w)r.motionBlurTimeout=setTimeout(function(){r.motionBlurTimeout=null,r.clearedForMotionBlur[r.NODE]=!1,r.clearedForMotionBlur[r.DRAG]=!1,r.motionBlur=!1,r.clearingMotionBlur=!v,r.mbFrames=0,y[r.NODE]=!0,y[r.DRAG]=!0,r.redraw()},rhi);if(!a)i.emit("render")};wv.drawSelectionRectangle=function(e,r){var i=this,{cy:a,data:o}=i,l=a.style(),{drawOnlyNodeLayer:h,drawAllLayers:d}=e,p=o.canvasNeedsRedraw,m=e.forcedContext;if(i.showFps||!h&&p[i.SELECT_BOX]&&!d){var y=m||o.contexts[i.SELECT_BOX];if(r(y),i.selection[4]==1&&(i.hoverData.selecting||i.touchData.selecting)){var v=i.cy.zoom(),w=l.core("selection-box-border-width").value/v;if(y.lineWidth=w,y.fillStyle="rgba("+l.core("selection-box-color").value[0]+","+l.core("selection-box-color").value[1]+","+l.core("selection-box-color").value[2]+","+l.core("selection-box-opacity").value+")",y.fillRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1]),w>0)y.strokeStyle="rgba("+l.core("selection-box-border-color").value[0]+","+l.core("selection-box-border-color").value[1]+","+l.core("selection-box-border-color").value[2]+","+l.core("selection-box-opacity").value+")",y.strokeRect(i.selection[0],i.selection[1],i.selection[2]-i.selection[0],i.selection[3]-i.selection[1])}if(o.bgActivePosistion&&!i.hoverData.selecting){var v=i.cy.zoom(),T=o.bgActivePosistion;y.fillStyle="rgba("+l.core("active-bg-color").value[0]+","+l.core("active-bg-color").value[1]+","+l.core("active-bg-color").value[2]+","+l.core("active-bg-opacity").value+")",y.beginPath(),y.arc(T.x,T.y,l.core("active-bg-size").pfValue/v,0,2*Math.PI),y.fill()}var x=i.lastRedrawTime;if(i.showFps&&x){x=Math.round(x);var k=Math.round(1000/x),A="1 frame = "+x+" ms = "+k+" fps";if(y.setTransform(1,0,0,1,0,0),y.fillStyle="rgba(255, 0, 0, 0.75)",y.strokeStyle="rgba(255, 0, 0, 0.75)",y.font="30px Arial",!qie){var R=y.measureText(A);qie=R.actualBoundingBoxAscent}y.fillText(A,0,qie);var N=60;y.strokeRect(0,qie+10,250,20),y.fillRect(0,qie+10,250*Math.min(k/N,1),20)}if(!d)p[i.SELECT_BOX]=!1}};l8r=typeof Float32Array<"u"?Float32Array:Array;if(!Math.hypot)Math.hypot=function(){var e=0,r=arguments.length;while(r--)e+=arguments[r]*arguments[r];return Math.sqrt(e)};bhi=function(){function e(r,i,a,o){m7(this,e),this.debugID=Math.floor(Math.random()*1e4),this.r=r,this.texSize=i,this.texRows=a,this.texHeight=Math.floor(i/a),this.enableWrapping=!0,this.locked=!1,this.texture=null,this.needsBuffer=!0,this.freePointer={x:0,row:0},this.keyToLocation=new Map,this.canvas=o(r,i,i),this.scratch=o(r,i,this.texHeight,"scratch")}return b7(e,[{key:"lock",value:function(){this.locked=!0}},{key:"getKeys",value:function(){return new Set(this.keyToLocation.keys())}},{key:"getScale",value:function(i){var{w:a,h:o}=i,l=this.texHeight,h=this.texSize,d=l/o,p=a*d,m=o*d;if(p>h)d=h/a,p=a*d,m=o*d;return{scale:d,texW:p,texH:m}}},{key:"draw",value:function(i,a,o){var l=this;if(this.locked)throw Error("can't draw, atlas is locked");var h=this.texSize,d=this.texRows,p=this.texHeight,m=this.getScale(a),{scale:y,texW:v,texH:w}=m,T=function(L,B){if(o&&B){var D=B.context,{x:P,row:F}=L,H=P,W=p*F;D.save(),D.translate(H,W),D.scale(y,y),o(D,a),D.restore()}},x=[null,null],k=function(){if(T(l.freePointer,l.canvas),x[0]={x:l.freePointer.x,y:l.freePointer.row*p,w:v,h:w},x[1]={x:l.freePointer.x+v,y:l.freePointer.row*p,w:0,h:w},l.freePointer.x+=v,l.freePointer.x==h)l.freePointer.x=0,l.freePointer.row++},A=function(){var{scratch:L,canvas:B}=l;L.clear(),T({x:0,row:0},L);var D=h-l.freePointer.x,P=v-D,F=p;{var H=l.freePointer.x,W=l.freePointer.row*p,X=D;B.context.drawImage(L,0,0,X,F,H,W,X,F),x[0]={x:H,y:W,w:X,h:w}}{var Q=D,Y=(l.freePointer.row+1)*p,K=P;if(B)B.context.drawImage(L,Q,0,K,F,0,Y,K,F);x[1]={x:0,y:Y,w:K,h:w}}l.freePointer.x=P,l.freePointer.row++},R=function(){l.freePointer.x=0,l.freePointer.row++};if(this.freePointer.x+v<=h)k();else if(this.freePointer.row>=d-1)return!1;else if(this.freePointer.x===h)R(),k();else if(this.enableWrapping)A();else R(),k();return this.keyToLocation.set(i,x),this.needsBuffer=!0,x}},{key:"getOffsets",value:function(i){return this.keyToLocation.get(i)}},{key:"isEmpty",value:function(){return this.freePointer.x===0&&this.freePointer.row===0}},{key:"canFit",value:function(i){if(this.locked)return!1;var a=this.texSize,o=this.texRows,l=this.getScale(i),h=l.texW;if(this.freePointer.x+h>a)return this.freePointer.row1&&arguments[1]!==void 0?arguments[1]:{},l=o.forceRedraw,h=l===void 0?!1:l,d=o.filterEle,p=d===void 0?function(){return!0}:d,m=o.filterType,y=m===void 0?function(){return!0}:m,v=!1,w=!1,T=a2(i),x;try{for(T.s();!(x=T.n()).done;){var k=x.value;if(p(k)){var A=a2(this.renderTypes.values()),R;try{var N=function(){var B=R.value,D=B.type;if(y(D)){var P=a.collections.get(B.collection),F=B.getKey(k),H=Array.isArray(F)?F:[F];if(h)H.forEach(function(Y){return P.markKeyForGC(Y)}),w=!0;else{var W=B.getID?B.getID(k):k.id(),X=a._key(D,W),Q=a.typeAndIdToKey.get(X);if(Q!==void 0&&!lhi(H,Q))v=!0,a.typeAndIdToKey.delete(X),Q.forEach(function(Y){return P.markKeyForGC(Y)})}}};for(A.s();!(R=A.n()).done;)N()}catch(L){A.e(L)}finally{A.f()}}}}catch(L){T.e(L)}finally{T.f()}if(w)this.gc(),v=!1;return v}},{key:"gc",value:function(){var i=a2(this.collections.values()),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;o.gc()}}catch(l){i.e(l)}finally{i.f()}}},{key:"getOrCreateAtlas",value:function(i,a,o,l){var h=this.renderTypes.get(a),d=this.collections.get(h.collection),p=!1,m=d.draw(l,o,function(w){if(h.drawClipped)w.save(),w.beginPath(),w.rect(0,0,o.w,o.h),w.clip(),h.drawElement(w,i,o,!0,!0),w.restore();else h.drawElement(w,i,o,!0,!0);p=!0});if(p){var y=h.getID?h.getID(i):i.id(),v=this._key(a,y);if(this.typeAndIdToKey.has(v))this.typeAndIdToKey.get(v).push(l);else this.typeAndIdToKey.set(v,[l])}return m}},{key:"getAtlasInfo",value:function(i,a){var o=this,l=this.renderTypes.get(a),h=l.getKey(i),d=Array.isArray(h)?h:[h];return d.map(function(p){var m=l.getBoundingBox(i,p),y=o.getOrCreateAtlas(i,a,m,p),v=y.getOffsets(p),w=gg(v,2),T=w[0],x=w[1];return{atlas:y,tex:T,tex1:T,tex2:x,bb:m}})}},{key:"getDebugInfo",value:function(){var i=[],a=a2(this.collections),o;try{for(a.s();!(o=a.n()).done;){var l=gg(o.value,2),h=l[0],d=l[1],p=d.getCounts(),{keyCount:m,atlasCount:y}=p;i.push({type:h,keyCount:m,atlasCount:y})}}catch(v){a.e(v)}finally{a.f()}return i}}])}(),Ehi=function(){function e(r){m7(this,e),this.globalOptions=r,this.atlasSize=r.webglTexSize,this.maxAtlasesPerBatch=r.webglTexPerBatch,this.batchAtlases=[]}return b7(e,[{key:"getMaxAtlasesPerBatch",value:function(){return this.maxAtlasesPerBatch}},{key:"getAtlasSize",value:function(){return this.atlasSize}},{key:"getIndexArray",value:function(){return Array.from({length:this.maxAtlasesPerBatch},function(i,a){return a})}},{key:"startBatch",value:function(){this.batchAtlases=[]}},{key:"getAtlasCount",value:function(){return this.batchAtlases.length}},{key:"getAtlases",value:function(){return this.batchAtlases}},{key:"canAddToCurrentBatch",value:function(i){if(this.batchAtlases.length===this.maxAtlasesPerBatch)return this.batchAtlases.includes(i);return!0}},{key:"getAtlasIndexForBatch",value:function(i){var a=this.batchAtlases.indexOf(i);if(a<0){if(this.batchAtlases.length===this.maxAtlasesPerBatch)throw Error("cannot add more atlases to batch");this.batchAtlases.push(i),a=this.batchAtlases.length-1}return a}}])}(),Jie={SCREEN:{name:"screen",screen:!0},PICKING:{name:"picking",picking:!0}},zTe={IGNORE:1,USE_BB:2},Chi=function(){function e(r,i,a){m7(this,e),this.r=r,this.gl=i,this.maxInstances=a.webglBatchSize,this.atlasSize=a.webglTexSize,this.bgColor=a.bgColor,this.debug=a.webglDebug,this.batchDebugInfo=[],a.enableWrapping=!0,a.createTextureCanvas=ihi,this.atlasManager=new _hi(r,a),this.batchManager=new Ehi(a),this.simpleShapeOptions=new Map,this.program=this._createShaderProgram(Jie.SCREEN),this.pickingProgram=this._createShaderProgram(Jie.PICKING),this.vao=this._createVAO()}return b7(e,[{key:"addAtlasCollection",value:function(i,a){this.atlasManager.addAtlasCollection(i,a)}},{key:"addTextureAtlasRenderType",value:function(i,a){this.atlasManager.addRenderType(i,a)}},{key:"addSimpleShapeRenderType",value:function(i,a){this.simpleShapeOptions.set(i,a)}},{key:"invalidate",value:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.type,l=this.atlasManager;if(o)return l.invalidate(i,{filterType:function(d){return d===o},forceRedraw:!0});else return l.invalidate(i)}},{key:"gc",value:function(){this.atlasManager.gc()}},{key:"_createShaderProgram",value:function(i){var a=this.gl,o=`#version 300 es precision highp float; uniform mat3 uPanZoomMatrix; @@ -694,7 +694,7 @@ https://github.com/jquery/jquery/blob/master/src/event.js int vid = gl_VertexID; vec2 position = aPosition; // TODO make this a vec3, simplifies some code below - if(aVertType == `.concat(Lst,`) { + if(aVertType == `.concat(Pst,`) { float texX = aTex.x; // texture coordinates float texY = aTex.y; float texW = aTex.z; @@ -712,8 +712,8 @@ https://github.com/jquery/jquery/blob/master/src/event.js gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } - else if(aVertType == `).concat(wq," || aVertType == ").concat(Hie,` - || aVertType == `).concat(gTe," || aVertType == ").concat(Vie,`) { // simple shapes + else if(aVertType == `).concat(xq," || aVertType == ").concat(Wie,` + || aVertType == `).concat(yTe," || aVertType == ").concat(Yie,`) { // simple shapes // the bounding box is needed by the fragment shader vBotLeft = (aTransform * vec3(0, 0, 1)).xy; // flat @@ -728,7 +728,7 @@ https://github.com/jquery/jquery/blob/master/src/event.js gl_Position = vec4(uPanZoomMatrix * aTransform * vec3(position, 1.0), 1.0); } - else if(aVertType == `).concat(s8r,`) { + else if(aVertType == `).concat(h8r,`) { vec2 source = aPointAPointB.xy; vec2 target = aPointAPointB.zw; @@ -743,7 +743,7 @@ https://github.com/jquery/jquery/blob/master/src/event.js gl_Position = vec4(uPanZoomMatrix * vec3(point, 1.0), 1.0); vColor = aColor; } - else if(aVertType == `).concat(o8r,`) { + else if(aVertType == `).concat(d8r,`) { vec2 pointA = aPointAPointB.xy; vec2 pointB = aPointAPointB.zw; vec2 pointC = aPointCPointD.xy; @@ -792,7 +792,7 @@ https://github.com/jquery/jquery/blob/master/src/event.js vColor = aColor; } - else if(aVertType == `).concat(Mst,` && vid < 3) { + else if(aVertType == `).concat(Bst,` && vid < 3) { // massage the first triangle into an edge arrow if(vid == 0) position = vec2(-0.15, -0.3); @@ -837,10 +837,10 @@ https://github.com/jquery/jquery/blob/master/src/event.js out vec4 outColor; - `).concat(mhi,` - `).concat(bhi,` - `).concat(yhi,` - `).concat(vhi,` + `).concat(whi,` + `).concat(Shi,` + `).concat(Thi,` + `).concat(xhi,` vec4 blend(vec4 top, vec4 bot) { // blend colors with premultiplied alpha return vec4( @@ -856,21 +856,21 @@ https://github.com/jquery/jquery/blob/master/src/event.js } void main(void) { - if(vVertType == `).concat(Lst,`) { + if(vVertType == `).concat(Pst,`) { // look up the texel from the texture unit `).concat(l.map(function(m){return"if(vAtlasId == ".concat(m,") outColor = texture(uTexture").concat(m,", vTexCoord);")}).join(` else `),` } - else if(vVertType == `).concat(Mst,`) { + else if(vVertType == `).concat(Bst,`) { // mimics how canvas renderer uses context.globalCompositeOperation = 'destination-out'; outColor = blend(vColor, uBGColor); outColor.a = 1.0; // make opaque, masks out line under arrow } - else if(vVertType == `).concat(wq,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border + else if(vVertType == `).concat(xq,` && vBorderWidth == vec2(0.0)) { // simple rectangle with no border outColor = vColor; // unit square is already transformed to the rectangle, nothing else needs to be done } - else if(vVertType == `).concat(wq," || vVertType == ").concat(Hie,` - || vVertType == `).concat(gTe," || vVertType == ").concat(Vie,`) { // use SDF + else if(vVertType == `).concat(xq," || vVertType == ").concat(Wie,` + || vVertType == `).concat(yTe," || vVertType == ").concat(Yie,`) { // use SDF float outerBorder = vBorderWidth[0]; float innerBorder = vBorderWidth[1]; @@ -881,11 +881,11 @@ https://github.com/jquery/jquery/blob/master/src/event.js vec2 p = vPosition - vec2(vTopRight.x - b[0] - outerBorder, vTopRight.y - b[1] - outerBorder); // translate to center float d; // signed distance - if(vVertType == `).concat(wq,`) { + if(vVertType == `).concat(xq,`) { d = rectangleSD(p, b); - } else if(vVertType == `).concat(Hie,` && w == h) { + } else if(vVertType == `).concat(Wie,` && w == h) { d = circleSD(p, b.x); // faster than ellipse - } else if(vVertType == `).concat(Hie,`) { + } else if(vVertType == `).concat(Wie,`) { d = ellipseSD(p, b); } else { d = roundRectangleSD(p, b, vCornerRadius.wzyx); @@ -925,17 +925,17 @@ https://github.com/jquery/jquery/blob/master/src/event.js `).concat(i.picking?`if(outColor.a == 0.0) discard; else outColor = vIndex;`:"",` } - `),d=Qui(a,o,h);d.aPosition=a.getAttribLocation(d,"aPosition"),d.aIndex=a.getAttribLocation(d,"aIndex"),d.aVertType=a.getAttribLocation(d,"aVertType"),d.aTransform=a.getAttribLocation(d,"aTransform"),d.aAtlasId=a.getAttribLocation(d,"aAtlasId"),d.aTex=a.getAttribLocation(d,"aTex"),d.aPointAPointB=a.getAttribLocation(d,"aPointAPointB"),d.aPointCPointD=a.getAttribLocation(d,"aPointCPointD"),d.aLineWidth=a.getAttribLocation(d,"aLineWidth"),d.aColor=a.getAttribLocation(d,"aColor"),d.aCornerRadius=a.getAttribLocation(d,"aCornerRadius"),d.aBorderColor=a.getAttribLocation(d,"aBorderColor"),d.uPanZoomMatrix=a.getUniformLocation(d,"uPanZoomMatrix"),d.uAtlasSize=a.getUniformLocation(d,"uAtlasSize"),d.uBGColor=a.getUniformLocation(d,"uBGColor"),d.uZoom=a.getUniformLocation(d,"uZoom"),d.uTextures=[];for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:Xie.SCREEN;this.panZoomMatrix=i,this.renderTarget=a,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(i,a){if(i.visible()){if(a&&a.isVisible)return a.isVisible(i);return!0}return!1}},{key:"drawTexture",value:function(i,a,o){var l=this.atlasManager,h=this.batchManager,d=l.getRenderTypeOpts(o);if(!this._isVisible(i,d))return;if(i.isEdge()&&!this._isValidEdge(i))return;if(this.renderTarget.picking&&d.getTexPickingMode){var p=d.getTexPickingMode(i);if(p===$Te.IGNORE)return;else if(p==$Te.USE_BB){this.drawPickingRectangle(i,a,o);return}}var m=l.getAtlasInfo(i,o),y=a2(m),E;try{for(y.s();!(E=y.n()).done;){var w=E.value,{atlas:T,tex1:x,tex2:k}=w;if(!h.canAddToCurrentBatch(T))this.endBatch();var A=h.getAtlasIndexForBatch(T);for(var R=0,N=[[x,!0],[k,!1]];R=this.maxInstances)this.endBatch()}}}}catch(Z){y.e(Z)}finally{y.f()}}},{key:"setTransformMatrix",value:function(i,a,o,l){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=0;if(o.shapeProps&&o.shapeProps.padding)d=i.pstyle(o.shapeProps.padding).pfValue;if(l){var{bb:p,tex1:m,tex2:y}=l,E=m.w/(m.w+y.w);if(!h)E=1-E;var w=this._getAdjustedBB(p,d,h,E);this._applyTransformMatrix(a,w,o,i)}else{var T=o.getBoundingBox(i),x=this._getAdjustedBB(T,d,!0,1);this._applyTransformMatrix(a,x,o,i)}}},{key:"_applyTransformMatrix",value:function(i,a,o,l){var h,d;i8r(i);var p=o.getRotation?o.getRotation(l):0;if(p!==0){var m=o.getRotationPoint(l),{x:y,y:E}=m;CTe(i,i,[y,E]),a8r(i,i,p);var w=o.getRotationOffset(l);h=w.x+(a.xOffset||0),d=w.y+(a.yOffset||0)}else h=a.x1,d=a.y1;CTe(i,i,[h,d]),eot(i,i,[a.w,a.h])}},{key:"_getAdjustedBB",value:function(i,a,o,l){var{x1:h,y1:d,w:p,h:m,yOffset:y}=i;if(a)h-=a,d-=a,p+=2*a,m+=2*a;var E=0,w=p*l;if(o&&l<1)p=w;else if(!o&&l<1)E=p-w,h+=E,p=w;return{x1:h,y1:d,w:p,h:m,xOffset:E,yOffset:y}}},{key:"drawPickingRectangle",value:function(i,a,o){var l=this.atlasManager.getRenderTypeOpts(o),h=this.instanceCount;this.vertTypeBuffer.getView(h)[0]=wq;var d=this.indexBuffer.getView(h);Eq(a,d);var p=this.colorBuffer.getView(h);vB([0,0,0],1,p);var m=this.transformBuffer.getMatrixView(h);if(this.setTransformMatrix(i,m,l),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}},{key:"drawNode",value:function(i,a,o){var l=this.simpleShapeOptions.get(o);if(!this._isVisible(i,l))return;var h=l.shapeProps,d=this._getVertTypeForShape(i,h.shape);if(d===void 0||l.isSimple&&!l.isSimple(i,this.renderTarget)){this.drawTexture(i,a,o);return}var p=this.instanceCount;if(this.vertTypeBuffer.getView(p)[0]=d,d===gTe||d===Vie){var m=l.getBoundingBox(i),y=this._getCornerRadius(i,h.radius,m),E=this.cornerRadiusBuffer.getView(p);if(E[0]=y,E[1]=y,E[2]=y,E[3]=y,d===Vie)E[0]=0,E[2]=0}var w=this.indexBuffer.getView(p);Eq(a,w);var T=this.renderTarget.picking?1:o==="node-body"?i.effectiveOpacity():1,x=this.renderTarget.picking?1:i.pstyle(h.opacity).value*T,k=i.pstyle(h.color).value,A=this.colorBuffer.getView(p);vB(k,x,A);var R=this.lineWidthBuffer.getView(p);if(R[0]=0,R[1]=0,h.border){var N=i.pstyle("border-width").value;if(N>0){var L=i.pstyle("border-color").value,B=T*i.pstyle("border-opacity").value,D=this.borderColorBuffer.getView(p);vB(L,B,D);var P=i.pstyle("border-position").value;if(P==="inside")R[0]=0,R[1]=-N;else if(P==="outside")R[0]=N,R[1]=0;else{var F=N/2;R[0]=F,R[1]=-F}}}var H=this.transformBuffer.getMatrixView(p);if(this.setTransformMatrix(i,H,l),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}},{key:"_getVertTypeForShape",value:function(i,a){var o=i.pstyle(a).value;switch(o){case"rectangle":return wq;case"ellipse":return Hie;case"roundrectangle":case"round-rectangle":return gTe;case"bottom-round-rectangle":return Vie;default:return}}},{key:"_getCornerRadius",value:function(i,a,o){var{w:l,h}=o;if(i.pstyle(a).value==="auto")return u7(l,h);else{var d=i.pstyle(a).pfValue,p=l/2,m=h/2;return Math.min(d,m,p)}}},{key:"drawEdgeArrow",value:function(i,a,o){if(!i.visible())return;var l=i._private.rscratch,h,d,p;if(o==="source")h=l.arrowStartX,d=l.arrowStartY,p=l.srcArrowAngle;else h=l.arrowEndX,d=l.arrowEndY,p=l.tgtArrowAngle;if(isNaN(h)||h==null||isNaN(d)||d==null||isNaN(p)||p==null)return;var m=i.pstyle(o+"-arrow-shape").value;if(m==="none")return;var y=i.pstyle(o+"-arrow-color").value,E=i.pstyle("opacity").value,w=i.pstyle("line-opacity").value,T=E*w,x=i.pstyle("width").pfValue,k=i.pstyle("arrow-scale").value,A=this.r.getArrowWidth(x,k),R=this.instanceCount,N=this.transformBuffer.getMatrixView(R);i8r(N),CTe(N,N,[h,d]),eot(N,N,[A,A]),a8r(N,N,p),this.vertTypeBuffer.getView(R)[0]=Mst;var L=this.indexBuffer.getView(R);Eq(a,L);var B=this.colorBuffer.getView(R);if(vB(y,T,B),this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}},{key:"drawEdgeLine",value:function(i,a){if(!i.visible())return;var o=this._getEdgePoints(i);if(!o)return;var l=i.pstyle("opacity").value,h=i.pstyle("line-opacity").value,d=i.pstyle("width").pfValue,p=i.pstyle("line-color").value,m=l*h;if(o.length/2+this.instanceCount>this.maxInstances)this.endBatch();if(o.length==4){var y=this.instanceCount;this.vertTypeBuffer.getView(y)[0]=s8r;var E=this.indexBuffer.getView(y);Eq(a,E);var w=this.colorBuffer.getView(y);vB(p,m,w);var T=this.lineWidthBuffer.getView(y);T[0]=d;var x=this.pointAPointBBuffer.getView(y);if(x[0]=o[0],x[1]=o[1],x[2]=o[2],x[3]=o[3],this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}else for(var k=0;k=this.maxInstances)this.endBatch()}}},{key:"_isValidEdge",value:function(i){var a=i._private.rscratch;if(a.badLine||a.allpts==null||isNaN(a.allpts[0]))return!1;return!0}},{key:"_getEdgePoints",value:function(i){var a=i._private.rscratch;if(!this._isValidEdge(i))return;var o=a.allpts;if(o.length==4)return o;var l=this._getNumSegments(i);return this._getCurveSegmentPoints(o,l)}},{key:"_getNumSegments",value:function(i){var a=15;return Math.min(Math.max(a,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(i,a){if(i.length==4)return i;var o=Array((a+1)*2);for(var l=0;l<=a;l++)if(l==0)o[0]=i[0],o[1]=i[1];else if(l==a)o[l*2]=i[i.length-2],o[l*2+1]=i[i.length-1];else{var h=l/a;this._setCurvePoint(i,h,o,l*2)}return o}},{key:"_setCurvePoint",value:function(i,a,o,l){if(i.length<=2)o[l]=i[0],o[l+1]=i[1];else{var h=Array(i.length-2);for(var d=0;d0}},d=function(E){var w=E.pstyle("text-events").strValue==="yes";return w?$Te.USE_BB:$Te.IGNORE},p=function(E){var w=E.position(),{x:T,y:x}=w,k=E.outerWidth(),A=E.outerHeight();return{w:k,h:A,x1:T-k/2,y1:x-A/2}};i.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),i.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),i.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:r.getStyleKey,getBoundingBox:r.getElementBox,drawElement:r.drawElement}),i.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:p,isSimple:thi,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),i.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:p,isVisible:h("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),i.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:p,isVisible:h("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),i.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:d,getKey:Dst(r.getLabelKey,null),getBoundingBox:Pst(r.getLabelBox,null),drawClipped:!0,drawElement:r.drawLabel,getRotation:o(null),getRotationPoint:r.getLabelRotationPoint,getRotationOffset:r.getLabelRotationOffset,isVisible:l("label")}),i.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:d,getKey:Dst(r.getSourceLabelKey,"source"),getBoundingBox:Pst(r.getSourceLabelBox,"source"),drawClipped:!0,drawElement:r.drawSourceLabel,getRotation:o("source"),getRotationPoint:r.getSourceLabelRotationPoint,getRotationOffset:r.getSourceLabelRotationOffset,isVisible:l("source-label")}),i.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:d,getKey:Dst(r.getTargetLabelKey,"target"),getBoundingBox:Pst(r.getTargetLabelBox,"target"),drawClipped:!0,drawElement:r.drawTargetLabel,getRotation:o("target"),getRotationPoint:r.getTargetLabelRotationPoint,getRotationOffset:r.getTargetLabelRotationOffset,isVisible:l("target-label")});var m=dae(function(){console.log("garbage collect flag set"),i.data.gc=!0},1e4);i.onUpdateEleCalcs(function(y,E){var w=!1;if(E&&E.length>0)w|=i.drawing.invalidate(E);if(w)m()}),whi(i)};y7={};y7.drawPolygonPath=function(e,r,i,a,o,l){var h=a/2,d=o/2;if(e.beginPath)e.beginPath();e.moveTo(r+h*l[0],i+d*l[1]);for(var p=1;p0&&h>0){T.clearRect(0,0,l,h),T.globalCompositeOperation="source-over";var x=this.getCachedZSortedEles();if(e.full)T.translate(-a.x1*m,-a.y1*m),T.scale(m,m),this.drawElements(T,x),T.scale(1/m,1/m),T.translate(a.x1*m,a.y1*m);else{var k=r.pan(),A={x:k.x*m,y:k.y*m};m*=r.zoom(),T.translate(A.x,A.y),T.scale(m,m),this.drawElements(T,x),T.scale(1/m,1/m),T.translate(-A.x,-A.y)}if(e.bg)T.globalCompositeOperation="destination-over",T.fillStyle=e.bg,T.rect(0,0,l,h),T.fill()}return w};yae.png=function(e){return ZDr(e,this.bufferCanvasImage(e),"image/png")};yae.jpg=function(e){return ZDr(e,this.bufferCanvasImage(e),"image/jpeg")};JDr={};JDr.nodeShapeImpl=function(e,r,i,a,o,l,h,d){switch(e){case"ellipse":return this.drawEllipsePath(r,i,a,o,l);case"polygon":return this.drawPolygonPath(r,i,a,o,l,h);case"round-polygon":return this.drawRoundPolygonPath(r,i,a,o,l,h,d);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(r,i,a,o,l,d);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(r,i,a,o,l,h,d);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(r,i,a,o,l,d);case"barrel":return this.drawBarrelPath(r,i,a,o,l)}};Nhi=e9r,lc=e9r.prototype;lc.CANVAS_LAYERS=3;lc.SELECT_BOX=0;lc.DRAG=1;lc.NODE=2;lc.WEBGL=3;lc.CANVAS_TYPES=["2d","2d","2d","webgl2"];lc.BUFFER_COUNT=3;lc.TEXTURE_BUFFER=0;lc.MOTIONBLUR_BUFFER_NODE=1;lc.MOTIONBLUR_BUFFER_DRAG=2;lc.redrawHint=function(e,r){var i=this;switch(e){case"eles":i.data.canvasNeedsRedraw[lc.NODE]=r;break;case"drag":i.data.canvasNeedsRedraw[lc.DRAG]=r;break;case"select":i.data.canvasNeedsRedraw[lc.SELECT_BOX]=r;break;case"gc":i.data.gc=!0;break}};Lhi=typeof Path2D<"u";lc.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=e?!0:!1};lc.usePaths=function(){return Lhi&&this.pathsEnabled};lc.setImgSmoothing=function(e,r){if(e.imageSmoothingEnabled!=null)e.imageSmoothingEnabled=r;else e.webkitImageSmoothingEnabled=r,e.mozImageSmoothingEnabled=r,e.msImageSmoothingEnabled=r};lc.getImgSmoothing=function(e){if(e.imageSmoothingEnabled!=null)return e.imageSmoothingEnabled;else return e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled};lc.makeOffscreenCanvas=function(e,r){var i;if((typeof OffscreenCanvas>"u"?"undefined":om(OffscreenCanvas))!=="undefined")i=new OffscreenCanvas(e,r);else{var a=this.cy.window(),o=a.document;i=o.createElement("canvas"),i.width=e,i.height=r}return i};[zDr,G3,rI,kot,OB,b7,wv,WDr,y7,yae,JDr].forEach(function(e){Eo(lc,e)});Mhi=[{name:"null",impl:kDr},{name:"base",impl:FDr},{name:"canvas",impl:Nhi}],Dhi=[{type:"layout",extensions:iui},{type:"renderer",extensions:Mhi}],t9r={},r9r={};aae.prototype.extension=not;Dhi.forEach(function(e){e.extensions.forEach(function(r){n9r(e.type,r.name,r.impl)})});RB=UTe.prototype;RB.instanceString=function(){return"stylesheet"};RB.selector=function(e){var r=this.length++;return this[r]={selector:e,properties:[]},this};RB.css=function(e,r){var i=this.length-1;if(Ws(e))this[i].properties.push({name:e,value:r});else if(uu(e)){var a=e,o=Object.keys(a);for(var l=0;lw)this.rect.x-=(this.labelWidth-w)/2,this.setWidth(this.labelWidth);if(this.labelHeight>T){if(this.labelPos=="center")this.rect.y-=(this.labelHeight-T)/2;else if(this.labelPos=="top")this.rect.y-=this.labelHeight-T;this.setHeight(this.labelHeight)}}}},m.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},m.prototype.transform=function(E){var w=this.rect.x;if(w>h.WORLD_BOUNDARY)w=h.WORLD_BOUNDARY;else if(w<-h.WORLD_BOUNDARY)w=-h.WORLD_BOUNDARY;var T=this.rect.y;if(T>h.WORLD_BOUNDARY)T=h.WORLD_BOUNDARY;else if(T<-h.WORLD_BOUNDARY)T=-h.WORLD_BOUNDARY;var x=new p(w,T),k=E.inverseTransformPoint(x);this.setLocation(k.x,k.y)},m.prototype.getLeft=function(){return this.rect.x},m.prototype.getRight=function(){return this.rect.x+this.rect.width},m.prototype.getTop=function(){return this.rect.y},m.prototype.getBottom=function(){return this.rect.y+this.rect.height},m.prototype.getParent=function(){if(this.owner==null)return null;return this.owner.getParent()},e.exports=m},function(e,r,i){function a(o,l){if(o==null&&l==null)this.x=0,this.y=0;else this.x=o,this.y=l}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},e.exports=a},function(e,r,i){var a=i(2),o=i(10),l=i(0),h=i(6),d=i(3),p=i(1),m=i(13),y=i(12),E=i(11);function w(x,k,A){if(a.call(this,A),this.estimatedSize=o.MIN_VALUE,this.margin=l.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=x,k!=null&&k instanceof h)this.graphManager=k;else if(k!=null&&k instanceof Layout)this.graphManager=k.graphManager}w.prototype=Object.create(a.prototype);for(var T in a)w[T]=a[T];w.prototype.getNodes=function(){return this.nodes},w.prototype.getEdges=function(){return this.edges},w.prototype.getGraphManager=function(){return this.graphManager},w.prototype.getParent=function(){return this.parent},w.prototype.getLeft=function(){return this.left},w.prototype.getRight=function(){return this.right},w.prototype.getTop=function(){return this.top},w.prototype.getBottom=function(){return this.bottom},w.prototype.isConnected=function(){return this.isConnected},w.prototype.add=function(x,k,A){if(k==null&&A==null){var R=x;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(R)>-1)throw"Node already in graph!";return R.owner=this,this.getNodes().push(R),R}else{var N=x;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(A)>-1))throw"Source or target not in graph!";if(!(k.owner==A.owner&&k.owner==this))throw"Both owners must be this graph!";if(k.owner!=A.owner)return null;if(N.source=k,N.target=A,N.isInterGraph=!1,this.getEdges().push(N),k.edges.push(N),A!=k)A.edges.push(N);return N}},w.prototype.remove=function(x){var k=x;if(x instanceof d){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";var A=k.edges.slice(),R,N=A.length;for(var L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";if(R.source.edges.splice(D,1),R.target!=R.source)R.target.edges.splice(P,1);var B=R.source.owner.getEdges().indexOf(R);if(B==-1)throw"Not in owner's edge list!";R.source.owner.getEdges().splice(B,1)}},w.prototype.updateLeftTop=function(){var{MAX_VALUE:x,MAX_VALUE:k}=o,A,R,N,L=this.getNodes(),B=L.length;for(var D=0;DA)x=A;if(k>R)k=R}if(x==o.MAX_VALUE)return null;if(L[0].getParent().paddingLeft!=null)N=L[0].getParent().paddingLeft;else N=this.margin;return this.left=k-N,this.top=x-N,new y(this.left,this.top)},w.prototype.updateBounds=function(x){var k=o.MAX_VALUE,A=-o.MAX_VALUE,R=o.MAX_VALUE,N=-o.MAX_VALUE,L,B,D,P,F,H=this.nodes,K=H.length;for(var Q=0;QL)k=L;if(AD)R=D;if(NL)k=L;if(AD)R=D;if(N=this.nodes.length){var K=0;if(A.forEach(function(Q){if(Q.owner==x)K++}),K==this.nodes.length)this.isConnected=!0}},e.exports=w},function(e,r,i){var a,o=i(1);function l(h){a=i(5),this.layout=h,this.graphs=[],this.edges=[]}l.prototype.addRoot=function(){var h=this.layout.newGraph(),d=this.layout.newNode(null),p=this.add(h,d);return this.setRootGraph(p),this.rootGraph},l.prototype.add=function(h,d,p,m,y){if(p==null&&m==null&&y==null){if(h==null)throw"Graph is null!";if(d==null)throw"Parent node is null!";if(this.graphs.indexOf(h)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(h),h.parent!=null)throw"Already has a parent!";if(d.child!=null)throw"Already has a child!";return h.parent=d,d.child=h,h}else{y=p,m=d,p=h;var E=m.getOwner(),w=y.getOwner();if(!(E!=null&&E.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(w!=null&&w.getGraphManager()==this))throw"Target not in this graph mgr!";if(E==w)return p.isInterGraph=!1,E.add(p,m,y);else{if(p.isInterGraph=!0,p.source=m,p.target=y,this.edges.indexOf(p)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(p),!(p.source!=null&&p.target!=null))throw"Edge source and/or target is null!";if(!(p.source.edges.indexOf(p)==-1&&p.target.edges.indexOf(p)==-1))throw"Edge already in source and/or target incidency list!";return p.source.edges.push(p),p.target.edges.push(p),p}}},l.prototype.remove=function(h){if(h instanceof a){var d=h;if(d.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(d==this.rootGraph||d.parent!=null&&d.parent.graphManager==this))throw"Invalid parent node!";var p=[];p=p.concat(d.getEdges());var m,y=p.length;for(var E=0;E=h.getRight())d[0]+=Math.min(h.getX()-l.getX(),l.getRight()-h.getRight());else if(h.getX()<=l.getX()&&h.getRight()>=l.getRight())d[0]+=Math.min(l.getX()-h.getX(),h.getRight()-l.getRight());if(l.getY()<=h.getY()&&l.getBottom()>=h.getBottom())d[1]+=Math.min(h.getY()-l.getY(),l.getBottom()-h.getBottom());else if(h.getY()<=l.getY()&&h.getBottom()>=l.getBottom())d[1]+=Math.min(l.getY()-h.getY(),h.getBottom()-l.getBottom());var y=Math.abs((h.getCenterY()-l.getCenterY())/(h.getCenterX()-l.getCenterX()));if(h.getCenterY()===l.getCenterY()&&h.getCenterX()===l.getCenterX())y=1;var E=y*d[0],w=d[1]/y;if(d[0]E)return d[0]=p,d[1]=T,d[2]=y,d[3]=H,!1;else if(my)return d[0]=w,d[1]=m,d[2]=P,d[3]=E,!1;else if(py)d[0]=k,d[1]=A,Y=!0;else d[0]=x,d[1]=T,Y=!0;else if(te===W)if(p>y)d[0]=w,d[1]=T,Y=!0;else d[0]=R,d[1]=A,Y=!0;if(-X===W)if(y>p)d[2]=F,d[3]=H,j=!0;else d[2]=P,d[3]=D,j=!0;else if(X===W)if(y>p)d[2]=B,d[3]=D,j=!0;else d[2]=K,d[3]=H,j=!0;if(Y&&j)return!1;if(p>y)if(m>E)J=this.getCardinalDirection(te,W,4),z=this.getCardinalDirection(X,W,2);else J=this.getCardinalDirection(-te,W,3),z=this.getCardinalDirection(-X,W,1);else if(m>E)J=this.getCardinalDirection(-te,W,1),z=this.getCardinalDirection(-X,W,3);else J=this.getCardinalDirection(te,W,2),z=this.getCardinalDirection(X,W,4);if(!Y)switch(J){case 1:ie=T,ne=p+-L/W,d[0]=ne,d[1]=ie;break;case 2:ne=R,ie=m+N*W,d[0]=ne,d[1]=ie;break;case 3:ie=A,ne=p+L/W,d[0]=ne,d[1]=ie;break;case 4:ne=k,ie=m+-N*W,d[0]=ne,d[1]=ie;break}if(!j)switch(z){case 1:se=D,le=y+-Z/W,d[2]=le,d[3]=se;break;case 2:le=K,se=E+Q*W,d[2]=le,d[3]=se;break;case 3:se=H,le=y+Z/W,d[2]=le,d[3]=se;break;case 4:le=F,se=E+-Q*W,d[2]=le,d[3]=se;break}}return!1},o.getCardinalDirection=function(l,h,d){if(l>h)return d;else return 1+d%4},o.getIntersection=function(l,h,d,p){if(p==null)return this.getIntersection2(l,h,d);var{x:m,y}=l,{x:E,y:w}=h,{x:T,y:x}=d,{x:k,y:A}=p,R=void 0,N=void 0,L=void 0,B=void 0,D=void 0,P=void 0,F=void 0,H=void 0,K=void 0;if(L=w-y,D=m-E,F=E*y-m*w,B=A-x,P=T-k,H=k*x-T*A,K=L*P-B*D,K===0)return null;return R=(D*H-P*F)/K,N=(B*F-L*H)/K,new a(R,N)},o.angleOfVector=function(l,h,d,p){var m=void 0;if(l!==d){if(m=Math.atan((p-h)/(d-l)),d0)return 1;else if(o<0)return-1;else return 0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},e.exports=a},function(e,r,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,e.exports=a},function(e,r,i){var a=function(){function m(y,E){for(var w=0;w"u"?"undefined":a(l);return l==null||h!="object"&&h!="function"},e.exports=o},function(e,r,i){function a(T){if(Array.isArray(T)){for(var x=0,k=Array(T.length);x0&&x){L.push(D[0]);while(L.length>0&&x){var P=L[0];L.splice(0,1),N.add(P);var F=P.getEdges();for(var R=0;R-1)D.splice(Z,1)}N=new Set,B=new Map}}return T},w.prototype.createDummyNodesForBendpoints=function(T){var x=[],k=T.source,A=this.graphManager.calcLowestCommonAncestor(T.source,T.target);for(var R=0;R0){var A=this.edgeToDummyNodes.get(k);for(var R=0;R=0)x.splice(H,1);var K=B.getNeighborsList();K.forEach(function(Y){if(k.indexOf(Y)<0){var j=A.get(Y),te=j-1;if(te==1)P.push(Y);A.set(Y,te)}})}if(k=k.concat(P),x.length==1||x.length==2)R=!0,N=x[0]}return N},w.prototype.setGraphManager=function(T){this.graphManager=T},e.exports=w},function(e,r,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},e.exports=a},function(e,r,i){var a=i(4);function o(l,h){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(l){this.lworldOrgX=l},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(l){this.lworldOrgY=l},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(l){this.lworldExtX=l},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(l){this.lworldExtY=l},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(l){this.ldeviceOrgX=l},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(l){this.ldeviceOrgY=l},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(l){this.ldeviceExtX=l},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(l){this.ldeviceExtY=l},o.prototype.transformX=function(l){var h=0,d=this.lworldExtX;if(d!=0)h=this.ldeviceOrgX+(l-this.lworldOrgX)*this.ldeviceExtX/d;return h},o.prototype.transformY=function(l){var h=0,d=this.lworldExtY;if(d!=0)h=this.ldeviceOrgY+(l-this.lworldOrgY)*this.ldeviceExtY/d;return h},o.prototype.inverseTransformX=function(l){var h=0,d=this.ldeviceExtX;if(d!=0)h=this.lworldOrgX+(l-this.ldeviceOrgX)*this.lworldExtX/d;return h},o.prototype.inverseTransformY=function(l){var h=0,d=this.ldeviceExtY;if(d!=0)h=this.lworldOrgY+(l-this.ldeviceOrgY)*this.lworldExtY/d;return h},o.prototype.inverseTransformPoint=function(l){var h=new a(this.inverseTransformX(l.x),this.inverseTransformY(l.y));return h},e.exports=o},function(e,r,i){function a(E){if(Array.isArray(E)){for(var w=0,T=Array(E.length);wl.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(this.coolingFactor*l.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(E-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-l.COOLING_ADAPTATION_FACTOR));this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT_INCREMENTAL}else{if(E>l.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(l.COOLING_ADAPTATION_FACTOR,1-(E-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*(1-l.COOLING_ADAPTATION_FACTOR));else this.coolingFactor=1;this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT}this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},m.prototype.calcSpringForces=function(){var E=this.getAllEdges(),w;for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:!0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T,x,k,A,R=this.getAllNodes(),N;if(this.useFRGridVariant){if(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&E)this.updateGrid();N=new Set;for(T=0;TL||N>L)E.gravitationForceX=-this.gravityConstant*k,E.gravitationForceY=-this.gravityConstant*A}else if(L=w.getEstimatedSize()*this.compoundGravityRangeFactor,R>L||N>L)E.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,E.gravitationForceY=-this.gravityConstant*A*this.compoundGravityConstant},m.prototype.isConverged=function(){var E,w=!1;if(this.totalIterations>this.maxIterations/3)w=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2;return E=this.totalDisplacement=R.length||L>=R[0].length))for(var B=0;Bm}}]),d}();e.exports=h},function(e,r,i){var a=function(){function h(d,p){for(var m=0;m2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,h),this.sequence1=d,this.sequence2=p,this.match_score=m,this.mismatch_penalty=y,this.gap_penalty=E,this.iMax=d.length+1,this.jMax=p.length+1,this.grid=Array(this.iMax);for(var w=0;w=0;d--){var p=this.listeners[d];if(p.event===l&&p.callback===h)this.listeners.splice(d,1)}},o.emit=function(l,h){for(var d=0;dp.coolingFactor*p.maxNodeDisplacement)this.displacementX=p.coolingFactor*p.maxNodeDisplacement*l.sign(this.displacementX);if(Math.abs(this.displacementY)>p.coolingFactor*p.maxNodeDisplacement)this.displacementY=p.coolingFactor*p.maxNodeDisplacement*l.sign(this.displacementY);if(this.child==null)this.moveBy(this.displacementX,this.displacementY);else if(this.child.getNodes().length==0)this.moveBy(this.displacementX,this.displacementY);else this.propogateDisplacementToChildren(this.displacementX,this.displacementY);p.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},h.prototype.propogateDisplacementToChildren=function(p,m){var y=this.getChild().getNodes(),E;for(var w=0;w0)this.positionNodesRadially(D);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var P=new Set(this.getAllNodes()),F=this.nodesWithGravity.filter(function(H){return P.has(H)});this.graphManager.setAllNodesToApplyGravitation(F),this.positionNodesRandomly()}}else if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var P=new Set(this.getAllNodes()),F=this.nodesWithGravity.filter(function(Q){return P.has(Q)});this.graphManager.setAllNodesToApplyGravitation(F)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},L.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%y.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.coolingCycle++,this.layoutQuality==0)this.coolingAdjuster=this.coolingCycle;else if(this.layoutQuality==1)this.coolingAdjuster=this.coolingCycle/3;this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(K){return D.has(K)});this.graphManager.setAllNodesToApplyGravitation(P),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;if(this.afterGrowthIterations%10==0)this.graphManager.updateBounds(),this.updateGrid();this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var F=!this.isTreeGrowing&&!this.isGrowthFinished,H=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(F,H),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},L.prototype.getPositionsData=function(){var D=this.graphManager.getAllNodes(),P={};for(var F=0;F1){var Y;for(Y=0;YH)H=Math.floor(Z.y);Q=Math.floor(Z.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new T(E.WORLD_CENTER_X-Z.x/2,E.WORLD_CENTER_Y-Z.y/2))},L.radialLayout=function(D,P,F){var H=Math.max(this.maxDiagonalInTree(D),m.DEFAULT_RADIAL_SEPARATION);L.branchRadialLayout(P,null,0,359,0,H);var K=R.calculateBounds(D),Q=new N;Q.setDeviceOrgX(K.getMinX()),Q.setDeviceOrgY(K.getMinY()),Q.setWorldOrgX(F.x),Q.setWorldOrgY(F.y);for(var Z=0;Z1){var he=se[0];se.splice(0,1);var ye=J.indexOf(he);if(ye>=0)J.splice(ye,1);ie--,z--}if(P!=null)le=(J.indexOf(se[0])+1)%ie;else le=0;var xe=Math.abs(H-F)/z;for(var Ie=le;ne!=z;Ie=++Ie%ie){var Ee=J[Ie].getOtherEnd(D);if(Ee==P)continue;var Ue=(F+ne*xe)%360,Me=(Ue+xe)%360;L.branchRadialLayout(Ee,D,Ue,Me,K+Q,Q),ne++}},L.maxDiagonalInTree=function(D){var P=k.MIN_VALUE;for(var F=0;FP)P=K}return P},L.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},L.prototype.groupZeroDegreeMembers=function(){var D=this,P={};this.memberGroups={},this.idToDummyNode={};var F=[],H=this.graphManager.getAllNodes();for(var K=0;K"u")P[Y]=[];P[Y]=P[Y].concat(Q)}Object.keys(P).forEach(function(j){if(P[j].length>1){var te="DummyCompound_"+j;D.memberGroups[te]=P[j];var X=P[j][0].getParent(),W=new d(D.graphManager);W.id=te,W.paddingLeft=X.paddingLeft||0,W.paddingRight=X.paddingRight||0,W.paddingBottom=X.paddingBottom||0,W.paddingTop=X.paddingTop||0,D.idToDummyNode[te]=W;var J=D.getGraphManager().add(D.newGraph(),W),z=X.getChild();z.add(W);for(var ne=0;ne=0;D--){var P=this.compoundOrder[D],{id:F,paddingLeft:H,paddingTop:K}=P;this.adjustLocations(this.tiledMemberPack[F],P.rect.x,P.rect.y,H,K)}},L.prototype.repopulateZeroDegreeMembers=function(){var D=this,P=this.tiledZeroDegreePack;Object.keys(P).forEach(function(F){var H=D.idToDummyNode[F],{paddingLeft:K,paddingTop:Q}=H;D.adjustLocations(P[F],H.rect.x,H.rect.y,K,Q)})},L.prototype.getToBeTiled=function(D){var P=D.id;if(this.toBeTiled[P]!=null)return this.toBeTiled[P];var F=D.getChild();if(F==null)return this.toBeTiled[P]=!1,!1;var H=F.getNodes();for(var K=0;K0)return this.toBeTiled[P]=!1,!1;if(Q.getChild()==null){this.toBeTiled[Q.id]=!1;continue}if(!this.getToBeTiled(Q))return this.toBeTiled[P]=!1,!1}return this.toBeTiled[P]=!0,!0},L.prototype.getNodeDegree=function(D){var P=D.id,F=D.getEdges(),H=0;for(var K=0;Kj)j=X.rect.height}F+=j+D.verticalPadding}},L.prototype.tileCompoundMembers=function(D,P){var F=this;this.tiledMemberPack=[],Object.keys(D).forEach(function(H){var K=P[H];F.tiledMemberPack[H]=F.tileNodes(D[H],K.paddingLeft+K.paddingRight),K.rect.width=F.tiledMemberPack[H].width,K.rect.height=F.tiledMemberPack[H].height})},L.prototype.tileNodes=function(D,P){var{TILING_PADDING_VERTICAL:F,TILING_PADDING_HORIZONTAL:H}=m,K={rows:[],rowWidth:[],rowHeight:[],width:0,height:P,verticalPadding:F,horizontalPadding:H};D.sort(function(Y,j){if(Y.rect.width*Y.rect.height>j.rect.width*j.rect.height)return-1;if(Y.rect.width*Y.rect.height0)Z+=D.horizontalPadding;if(D.rowWidth[F]=Z,D.width0)Y+=D.verticalPadding;var j=0;if(Y>D.rowHeight[F])j=D.rowHeight[F],D.rowHeight[F]=Y,j=D.rowHeight[F]-j;D.height+=j,D.rows[F].push(P)},L.prototype.getShortestRowIndex=function(D){var P=-1,F=Number.MAX_VALUE;for(var H=0;HF)P=H,F=D.rowWidth[H];return P},L.prototype.canAddHorizontal=function(D,P,F){var H=this.getShortestRowIndex(D);if(H<0)return!0;var K=D.rowWidth[H];if(K+D.horizontalPadding+P<=D.width)return!0;var Q=0;if(D.rowHeight[H]0)Q=F+D.verticalPadding-D.rowHeight[H]}var Z;if(D.width-K>=P+D.horizontalPadding)Z=(D.height+Q)/(K+P+D.horizontalPadding);else Z=(D.height+Q)/D.width;Q=F+D.verticalPadding;var Y;if(D.widthQ&&P!=F){H.splice(-1,1),D.rows[F].push(K),D.rowWidth[P]=D.rowWidth[P]-Q,D.rowWidth[F]=D.rowWidth[F]+Q,D.width=D.rowWidth[instance.getLongestRowIndex(D)];var Z=Number.MIN_VALUE;for(var Y=0;YZ)Z=H[Y].height;if(P>0)Z+=D.verticalPadding;var j=D.rowHeight[P]+D.rowHeight[F];if(D.rowHeight[P]=Z,D.rowHeight[F]0)for(var z=K;z<=Q;z++)J[0]+=this.grid[z][Z-1].length+this.grid[z][Z].length-1;if(Q0)for(var z=Z;z<=Y;z++)J[3]+=this.grid[K-1][z].length+this.grid[K][z].length-1;var ne=k.MAX_VALUE,ie,le;for(var se=0;se0){var Y=N.getGraphManager().add(N.newGraph(),F);this.processChildrenList(Y,P,N)}}},T.prototype.stop=function(){return this.stopped=!0,this};var k=function(R){R("layout","cose-bilkent",T)};if(typeof cytoscape<"u")k(cytoscape);r.exports=k}])})});var p9r={};GN(p9r,{render:()=>Uhi});function o9r(e,r){e.forEach((i)=>{let a={id:i.id,labelText:i.label,height:i.height,width:i.width,padding:i.padding??0};Object.keys(i).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))a[o]=i[o]}),r.add({group:"nodes",data:a,position:{x:i.x??0,y:i.y??0}})})}function l9r(e,r){e.forEach((i)=>{let a={id:i.id,source:i.start,target:i.end};Object.keys(i).forEach((o)=>{if(!["id","start","end"].includes(o))a[o]=i[o]}),r.add({group:"edges",data:a})})}function c9r(e){return new Promise((r)=>{let i=xn("body").append("div").attr("id","cy").attr("style","display:none"),a=oT({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),o9r(e.nodes,a),l9r(e.edges,a),a.nodes().forEach(function(l){l.layoutDimensions=()=>{let h=l.data();return{w:h.width,h:h.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};a.layout(o).run(),a.ready((l)=>{Ze.info("Cytoscape ready",l),r(a)})})}function u9r(e){return e.nodes().map((r)=>{let i=r.data(),a=r.position(),o={id:i.id,x:a.x,y:a.y};return Object.keys(i).forEach((l)=>{if(l!=="id")o[l]=i[l]}),o})}function h9r(e){return e.edges().map((r)=>{let i=r.data(),a=r._private.rscratch,o={id:i.id,source:i.source,target:i.target,startX:a.startX,startY:a.startY,midX:a.midX,midY:a.midY,endX:a.endX,endY:a.endY};return Object.keys(i).forEach((l)=>{if(!["id","source","target"].includes(l))o[l]=i[l]}),o})}async function d9r(e,r){Ze.debug("Starting cose-bilkent layout algorithm");try{f9r(e);let i=await c9r(e),a=u9r(i),o=h9r(i);return Ze.debug(`Layout completed: ${a.length} nodes, ${o.length} edges`),{nodes:a,edges:o}}catch(i){throw Ze.error("Error in cose-bilkent layout algorithm:",i),i}}function f9r(e){if(!e)throw Error("Layout data is required");if(!e.config)throw Error("Configuration is required in layout data");if(!e.rootNode)throw Error("Root node is required");if(!e.nodes||!Array.isArray(e.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(e.edges))throw Error("Edges array is required in layout data");return!0}var s9r,$hi,Uhi;var g9r=Re(()=>{Zs();Ja();Rot();dl();s9r=sv(a9r(),1);oT.use(s9r.default);I(o9r,"addNodes");I(l9r,"addEdges");I(c9r,"createCytoscapeInstance");I(u9r,"extractPositionedNodes");I(h9r,"extractPositionedEdges");I(d9r,"executeCoseBilkentLayout");I(f9r,"validateLayoutData");$hi=I(async(e,r,{insertCluster:i,insertEdge:a,insertEdgeLabel:o,insertMarkers:l,insertNode:h,log:d,positionEdgeLabel:p},{algorithm:m})=>{let y={},E={},w=r.select("g");l(w,e.markers,e.type,e.diagramId);let T=w.insert("g").attr("class","subgraphs"),x=w.insert("g").attr("class","edgePaths"),k=w.insert("g").attr("class","edgeLabels"),A=w.insert("g").attr("class","nodes");d.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(e.nodes.map(async(L)=>{if(L.isGroup){let B={...L};E[L.id]=B,y[L.id]=B,await i(T,L)}else{let B={...L};y[L.id]=B;let D=await h(A,L,{config:e.config,dir:e.direction||"TB"}),P=D.node().getBBox();B.width=P.width,B.height=P.height,B.domId=D,d.debug(`Node ${L.id} dimensions: ${P.width}x${P.height}`)}})),d.debug("Running cose-bilkent layout algorithm");let R={...e,nodes:e.nodes.map((L)=>{let B=y[L.id];return{...L,width:B.width,height:B.height}})},N=await d9r(R,e.config);d.debug("Positioning nodes based on layout results"),N.nodes.forEach((L)=>{let B=y[L.id];if(B?.domId)B.domId.attr("transform",`translate(${L.x}, ${L.y})`),B.x=L.x,B.y=L.y,d.debug(`Positioned node ${B.id} at center (${L.x}, ${L.y})`)}),N.edges.forEach((L)=>{let B=e.edges.find((D)=>D.id===L.id);if(B)B.points=[{x:L.startX,y:L.startY},{x:L.midX,y:L.midY},{x:L.endX,y:L.endY}]}),d.debug("Inserting and positioning edges"),await Promise.all(e.edges.map(async(L)=>{let B=await o(k,L),D=y[L.start??""],P=y[L.end??""];if(D&&P){let F=N.edges.find((H)=>H.id===L.id);if(F){d.debug("APA01 positionedEdge",F);let H={...L},K=a(x,H,E,e.type,D,P,e.diagramId);p(H,K)}else{let H={...L,points:[{x:D.x||0,y:D.y||0},{x:P.x||0,y:P.y||0}]},K=a(x,H,E,e.type,D,P,e.diagramId);p(H,K)}}})),d.debug("Cose-bilkent rendering completed")},"render"),Uhi=$hi});var Ghi,zhi,wae,Pot,Vhi,Hhi,sy,Dot="dagre",oy;var lT=Re(()=>{WE();K1();Qm();dg();ip();Ql();eo();Zs();Ja();Ghi={common:ai,getConfig:ea,insertCluster:TL,insertEdge:xL,insertEdgeLabel:_3,insertMarkers:FH,insertNode:y3,interpolateToCurve:UEe,labelHelper:ss,log:Ze,positionEdgeLabel:BH},zhi=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],wae=Object.create(null),Pot=I((e)=>{for(let r of e)wae[r.name]=r},"registerLayoutLoaders"),Vhi=I(()=>{let e=I(async()=>await Promise.resolve().then(() => (R6r(),A6r)),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...zhi.map((r)=>({name:r,loader:e,algorithm:r}))]},"elkLayoutLoaders"),Hhi=I(()=>{Pot([{name:"dagre",loader:I(async()=>await Promise.resolve().then(() => (sNr(),aNr)),"loader")},{name:"swimlane",loader:I(async()=>await Promise.resolve().then(() => (PLr(),DLr)),"loader")},{name:"cose-bilkent",loader:I(async()=>await Promise.resolve().then(() => (g9r(),p9r)),"loader")},...Vhi()])},"registerDefaultLayoutLoaders");Hhi();sy=I(async(e,r)=>{if(!Object.hasOwn(wae,e.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let o of e.nodes){let l=o.domId||o.id;o.domId=`${e.diagramId}-${l}`}let i=wae[e.layoutAlgorithm],a=await i.loader();return oEe(r,e.config),a.render(e,r,Ghi,{algorithm:i.algorithm})},"render"),oy=I((e="",{fallback:r=Dot}={})=>{if(Object.hasOwn(wae,e))return e;for(let i of[r,Dot])if(Object.hasOwn(wae,i))return Ze.warn(`Layout algorithm ${e} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${e}, ${r}, nor ${Dot} is registered.`)},"getRegisteredLayoutAlgorithm")});var Fot,LB,mxe,P9r,bxe,yxe,o2,vxe,v7;var z3=Re(()=>{eo();Ja();dl();Fot=sv(xne(),1),LB=I((e,r)=>{let i=e.append("rect");if(i.attr("x",r.x),i.attr("y",r.y),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("width",r.width),i.attr("height",r.height),r.name)i.attr("name",r.name);if(r.rx)i.attr("rx",r.rx);if(r.ry)i.attr("ry",r.ry);if(r.attrs!==void 0)for(let a in r.attrs)i.attr(a,r.attrs[a]);if(r.class)i.attr("class",r.class);return i},"drawRect"),mxe=I((e,r)=>{let i={x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,stroke:r.stroke,class:"rect"};LB(e,i).lower()},"drawBackgroundRect"),P9r=I((e,r)=>{let i=r.text.replace(kP," "),a=e.append("text");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("class","legend"),a.style("text-anchor",r.anchor),r.class)a.attr("class",r.class);let o=a.append("tspan");return o.attr("x",r.x+r.textMargin*2),o.text(i),a},"drawText"),bxe=I((e,r,i,a)=>{let o=e.append("image");o.attr("x",r),o.attr("y",i);let l=Fot.sanitizeUrl(a);o.attr("xlink:href",l)},"drawImage"),yxe=I((e,r,i,a)=>{let o=e.append("use");o.attr("x",r),o.attr("y",i);let l=Fot.sanitizeUrl(a);o.attr("xlink:href",`#${l}`)},"drawEmbeddedImage"),o2=I(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),vxe=I(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),v7=I(()=>{let e=xn(".mermaidTooltip");if(e.empty())e=xn("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return e},"createTooltip")});function E7(e,r,i,a,o){let l=r[e];if(!l.width)if(i)l.text=qP(l.text,o,a),l.textLines=l.text.split(ai.lineBreakRegex).length,l.width=o,l.height=Ine(l.text,a);else{let h=l.text.split(ai.lineBreakRegex);l.textLines=h.length;let d=0;l.height=0,l.width=0;for(let p of h)l.width=Math.max(ey(p,a),l.width),d=Ine(p,a),l.height=l.height+d}return l}async function qot(e,r,i,a,o){let l=o.db,h=new K9r(o);h.data.widthLimit=i.data.widthLimit/Math.min(Got,a.length);for(let[d,p]of a.entries()){let m=0;if(p.image={width:0,height:0,Y:0},p.sprite)p.image.width=48,p.image.height=48,p.image.Y=m,m=p.image.Y+p.image.height;let y=p.wrap&&po.wrap,E=_xe(po);E.fontSize=E.fontSize+2,E.fontWeight="bold";let w=E7("label",p,y,E,h.data.widthLimit);if(w.Y=m+8,m=w.Y+w.height,p.type&&p.type.text!==""){p.type.text="["+p.type.text+"]";let A=_xe(po),R=E7("type",p,y,A,h.data.widthLimit);R.Y=m+5,m=R.Y+R.height}if(p.descr&&p.descr.text!==""){let A=_xe(po);A.fontSize=A.fontSize-2;let R=E7("descr",p,y,A,h.data.widthLimit);R.Y=m+20,m=R.Y+R.height}if(d==0||d%Got===0){let A=i.data.startx+po.diagramMarginX,R=i.data.stopy+po.diagramMarginY+m;h.setData(A,A,R,R)}else{let A=h.data.stopx!==h.data.startx?h.data.stopx+po.diagramMarginX:h.data.startx,R=h.data.starty;h.setData(A,A,R,R)}h.name=p.alias;let T=l.getC4ShapeArray(p.alias),x=l.getC4ShapeKeys(p.alias);if(x.length>0)await Q9r(h,e,T,x);r=p.alias;let k=l.getBoundaries(r);if(k.length>0)await qot(e,r,h,k,o);if(p.alias!=="global")X9r(e,p,h);i.data.stopy=Math.max(h.data.stopy+po.c4ShapeMargin,i.data.stopy),i.data.stopx=Math.max(h.data.stopx+po.c4ShapeMargin,i.data.stopx),kae=Math.max(kae,i.data.stopx),Aae=Math.max(Aae,i.data.stopy)}}var Exe,Whi,G9r,hT,MB,z9r,NC,_7,Sv="global",OC="",LC,Rae,Vot="",Hot=!1,wxe=4,Sxe=2,V9r,jhi,Khi,Xhi,Qhi,Zhi,Jhi,edi,tdi,rdi,ndi,idi,adi,sdi,odi,ldi,cdi,udi,H9r,hdi,ddi,q9r,fdi,pdi,gdi,mdi,w7,bdi,ydi,vdi,_di,Edi,Uot,Y9r,wdi,Sdi,Tdi,xdi,Cdi,kdi,Adi,Rdi,Idi,Cae,sI,Odi,Ndi,Ldi,Mdi,$ot,Ddi,Pdi,Bdi,Fdi,$di,W9r,Udi,B9r,Gdi,F9r,kae=0,Aae=0,j9r=4,Got=2,po,K9r,zot,_xe,zdi,X9r,Q9r,Vdi,$9r,Hdi,qdi,Ydi,U9r,Wdi,jdi,Kdi,Z9r;var J9r=Re(()=>{z3();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();Exe=function(){var e=I(function(Ge,qe,Ke,Je){for(Ke=Ke||{},Je=Ge.length;Je--;Ke[Ge[Je]]=qe);return Ke},"o"),r=[1,24],i=[1,25],a=[1,26],o=[1,27],l=[1,28],h=[1,63],d=[1,64],p=[1,65],m=[1,66],y=[1,67],E=[1,68],w=[1,69],T=[1,29],x=[1,30],k=[1,31],A=[1,32],R=[1,33],N=[1,34],L=[1,35],B=[1,36],D=[1,37],P=[1,38],F=[1,39],H=[1,40],K=[1,41],Q=[1,42],Z=[1,43],Y=[1,44],j=[1,45],te=[1,46],X=[1,47],W=[1,48],J=[1,50],z=[1,51],ne=[1,52],ie=[1,53],le=[1,54],se=[1,55],he=[1,56],ye=[1,57],xe=[1,58],Ie=[1,59],Ee=[1,60],Ue=[14,42],Me=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xe=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],je=[1,82],Qe=[1,83],St=[1,84],pt=[1,85],Vt=[12,14,42],Xt=[12,14,33,42],rr=[12,14,33,42,76,77,79,80],We=[12,33],Nt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ct={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:I(function(qe,Ke,Je,De,oe,pe,fe){var be=pe.length-1;switch(oe){case 3:De.setDirection("TB");break;case 4:De.setDirection("BT");break;case 5:De.setDirection("RL");break;case 6:De.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:De.setC4Type(pe[be-3]);break;case 19:De.setTitle(pe[be].substring(6)),this.$=pe[be].substring(6);break;case 20:De.setAccDescription(pe[be].substring(15)),this.$=pe[be].substring(15);break;case 21:this.$=pe[be].trim(),De.setTitle(this.$);break;case 22:case 23:this.$=pe[be].trim(),De.setAccDescription(this.$);break;case 28:pe[be].splice(2,0,"ENTERPRISE"),De.addPersonOrSystemBoundary(...pe[be]),this.$=pe[be];break;case 29:pe[be].splice(2,0,"SYSTEM"),De.addPersonOrSystemBoundary(...pe[be]),this.$=pe[be];break;case 30:De.addPersonOrSystemBoundary(...pe[be]),this.$=pe[be];break;case 31:pe[be].splice(2,0,"CONTAINER"),De.addContainerBoundary(...pe[be]),this.$=pe[be];break;case 32:De.addDeploymentNode("node",...pe[be]),this.$=pe[be];break;case 33:De.addDeploymentNode("nodeL",...pe[be]),this.$=pe[be];break;case 34:De.addDeploymentNode("nodeR",...pe[be]),this.$=pe[be];break;case 35:De.popBoundaryParseStack();break;case 39:De.addPersonOrSystem("person",...pe[be]),this.$=pe[be];break;case 40:De.addPersonOrSystem("external_person",...pe[be]),this.$=pe[be];break;case 41:De.addPersonOrSystem("system",...pe[be]),this.$=pe[be];break;case 42:De.addPersonOrSystem("system_db",...pe[be]),this.$=pe[be];break;case 43:De.addPersonOrSystem("system_queue",...pe[be]),this.$=pe[be];break;case 44:De.addPersonOrSystem("external_system",...pe[be]),this.$=pe[be];break;case 45:De.addPersonOrSystem("external_system_db",...pe[be]),this.$=pe[be];break;case 46:De.addPersonOrSystem("external_system_queue",...pe[be]),this.$=pe[be];break;case 47:De.addContainer("container",...pe[be]),this.$=pe[be];break;case 48:De.addContainer("container_db",...pe[be]),this.$=pe[be];break;case 49:De.addContainer("container_queue",...pe[be]),this.$=pe[be];break;case 50:De.addContainer("external_container",...pe[be]),this.$=pe[be];break;case 51:De.addContainer("external_container_db",...pe[be]),this.$=pe[be];break;case 52:De.addContainer("external_container_queue",...pe[be]),this.$=pe[be];break;case 53:De.addComponent("component",...pe[be]),this.$=pe[be];break;case 54:De.addComponent("component_db",...pe[be]),this.$=pe[be];break;case 55:De.addComponent("component_queue",...pe[be]),this.$=pe[be];break;case 56:De.addComponent("external_component",...pe[be]),this.$=pe[be];break;case 57:De.addComponent("external_component_db",...pe[be]),this.$=pe[be];break;case 58:De.addComponent("external_component_queue",...pe[be]),this.$=pe[be];break;case 60:De.addRel("rel",...pe[be]),this.$=pe[be];break;case 61:De.addRel("birel",...pe[be]),this.$=pe[be];break;case 62:De.addRel("rel_u",...pe[be]),this.$=pe[be];break;case 63:De.addRel("rel_d",...pe[be]),this.$=pe[be];break;case 64:De.addRel("rel_l",...pe[be]),this.$=pe[be];break;case 65:De.addRel("rel_r",...pe[be]),this.$=pe[be];break;case 66:De.addRel("rel_b",...pe[be]),this.$=pe[be];break;case 67:pe[be].splice(0,1),De.addRel("rel",...pe[be]),this.$=pe[be];break;case 68:De.updateElStyle("update_el_style",...pe[be]),this.$=pe[be];break;case 69:De.updateRelStyle("update_rel_style",...pe[be]),this.$=pe[be];break;case 70:De.updateLayoutConfig("update_layout_config",...pe[be]),this.$=pe[be];break;case 71:this.$=[pe[be]];break;case 72:pe[be].unshift(pe[be-1]),this.$=pe[be];break;case 73:case 75:this.$=pe[be].trim();break;case 74:let ze={};ze[pe[be-1].trim()]=pe[be].trim(),this.$=ze;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:E,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee},{13:70,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:E,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee},{13:71,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:E,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee},{13:72,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:E,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee},{13:73,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:E,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee},{14:[1,74]},e(Ue,[2,13],{43:23,29:49,30:61,32:62,20:75,34:h,36:d,37:p,38:m,39:y,40:E,41:w,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee}),e(Ue,[2,14]),e(Me,[2,16],{12:[1,76]}),e(Ue,[2,36],{12:[1,77]}),e(Xe,[2,19]),e(Xe,[2,20]),{25:[1,78]},{27:[1,79]},e(Xe,[2,23]),{35:80,75:81,76:je,77:Qe,79:St,80:pt},{35:86,75:81,76:je,77:Qe,79:St,80:pt},{35:87,75:81,76:je,77:Qe,79:St,80:pt},{35:88,75:81,76:je,77:Qe,79:St,80:pt},{35:89,75:81,76:je,77:Qe,79:St,80:pt},{35:90,75:81,76:je,77:Qe,79:St,80:pt},{35:91,75:81,76:je,77:Qe,79:St,80:pt},{35:92,75:81,76:je,77:Qe,79:St,80:pt},{35:93,75:81,76:je,77:Qe,79:St,80:pt},{35:94,75:81,76:je,77:Qe,79:St,80:pt},{35:95,75:81,76:je,77:Qe,79:St,80:pt},{35:96,75:81,76:je,77:Qe,79:St,80:pt},{35:97,75:81,76:je,77:Qe,79:St,80:pt},{35:98,75:81,76:je,77:Qe,79:St,80:pt},{35:99,75:81,76:je,77:Qe,79:St,80:pt},{35:100,75:81,76:je,77:Qe,79:St,80:pt},{35:101,75:81,76:je,77:Qe,79:St,80:pt},{35:102,75:81,76:je,77:Qe,79:St,80:pt},{35:103,75:81,76:je,77:Qe,79:St,80:pt},{35:104,75:81,76:je,77:Qe,79:St,80:pt},e(Vt,[2,59]),{35:105,75:81,76:je,77:Qe,79:St,80:pt},{35:106,75:81,76:je,77:Qe,79:St,80:pt},{35:107,75:81,76:je,77:Qe,79:St,80:pt},{35:108,75:81,76:je,77:Qe,79:St,80:pt},{35:109,75:81,76:je,77:Qe,79:St,80:pt},{35:110,75:81,76:je,77:Qe,79:St,80:pt},{35:111,75:81,76:je,77:Qe,79:St,80:pt},{35:112,75:81,76:je,77:Qe,79:St,80:pt},{35:113,75:81,76:je,77:Qe,79:St,80:pt},{35:114,75:81,76:je,77:Qe,79:St,80:pt},{35:115,75:81,76:je,77:Qe,79:St,80:pt},{20:116,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:E,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee},{12:[1,118],33:[1,117]},{35:119,75:81,76:je,77:Qe,79:St,80:pt},{35:120,75:81,76:je,77:Qe,79:St,80:pt},{35:121,75:81,76:je,77:Qe,79:St,80:pt},{35:122,75:81,76:je,77:Qe,79:St,80:pt},{35:123,75:81,76:je,77:Qe,79:St,80:pt},{35:124,75:81,76:je,77:Qe,79:St,80:pt},{35:125,75:81,76:je,77:Qe,79:St,80:pt},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ue,[2,15]),e(Me,[2,17],{21:22,19:130,22:r,23:i,24:a,26:o,28:l}),e(Ue,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:r,23:i,24:a,26:o,28:l,34:h,36:d,37:p,38:m,39:y,40:E,41:w,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:K,57:Q,58:Z,59:Y,60:j,61:te,62:X,63:W,64:J,65:z,66:ne,67:ie,68:le,69:se,70:he,71:ye,72:xe,73:Ie,74:Ee}),e(Xe,[2,21]),e(Xe,[2,22]),e(Vt,[2,39]),e(Xt,[2,71],{75:81,35:132,76:je,77:Qe,79:St,80:pt}),e(rr,[2,73]),{78:[1,133]},e(rr,[2,75]),e(rr,[2,76]),e(Vt,[2,40]),e(Vt,[2,41]),e(Vt,[2,42]),e(Vt,[2,43]),e(Vt,[2,44]),e(Vt,[2,45]),e(Vt,[2,46]),e(Vt,[2,47]),e(Vt,[2,48]),e(Vt,[2,49]),e(Vt,[2,50]),e(Vt,[2,51]),e(Vt,[2,52]),e(Vt,[2,53]),e(Vt,[2,54]),e(Vt,[2,55]),e(Vt,[2,56]),e(Vt,[2,57]),e(Vt,[2,58]),e(Vt,[2,60]),e(Vt,[2,61]),e(Vt,[2,62]),e(Vt,[2,63]),e(Vt,[2,64]),e(Vt,[2,65]),e(Vt,[2,66]),e(Vt,[2,67]),e(Vt,[2,68]),e(Vt,[2,69]),e(Vt,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(We,[2,28]),e(We,[2,29]),e(We,[2,30]),e(We,[2,31]),e(We,[2,32]),e(We,[2,33]),e(We,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Me,[2,18]),e(Ue,[2,38]),e(Xt,[2,72]),e(rr,[2,74]),e(Vt,[2,24]),e(Vt,[2,35]),e(Nt,[2,25]),e(Nt,[2,26],{12:[1,138]}),e(Nt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:I(function(qe,Ke){if(Ke.recoverable)this.trace(qe);else{var Je=Error(qe);throw Je.hash=Ke,Je}},"parseError"),parse:I(function(qe){var Ke=this,Je=[0],De=[],oe=[null],pe=[],fe=this.table,be="",ze=0,Ce=0,_e=0,ke=2,it=1,ut=pe.slice.call(arguments,1),gt=Object.create(this.lexer),vt={yy:{}};for(var ir in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ir))vt.yy[ir]=this.yy[ir];if(gt.setInput(qe,vt.yy),vt.yy.lexer=gt,vt.yy.parser=this,typeof gt.yylloc>"u")gt.yylloc={};var qt=gt.yylloc;pe.push(qt);var cr=gt.options&>.options.ranges;if(typeof vt.yy.parseError==="function")this.parseError=vt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tr(yn){Je.length=Je.length-2*yn,oe.length=oe.length-yn,pe.length=pe.length-yn}I(tr,"popStack");function Zt(){var yn=De.pop()||gt.lex()||it;if(typeof yn!=="number"){if(yn instanceof Array)De=yn,yn=De.pop();yn=Ke.symbols_[yn]||yn}return yn}I(Zt,"lex");var lr,Kt,In,Et,Xn,Yt,Bn={},si,hn,Ii,Vn;while(!0){if(In=Je[Je.length-1],this.defaultActions[In])Et=this.defaultActions[In];else{if(lr===null||typeof lr>"u")lr=Zt();Et=fe[In]&&fe[In][lr]}if(typeof Et>"u"||!Et.length||!Et[0]){var Ei="";Vn=[];for(si in fe[In])if(this.terminals_[si]&&si>ke)Vn.push("'"+this.terminals_[si]+"'");if(gt.showPosition)Ei="Parse error on line "+(ze+1)+`: + `),d=nhi(a,o,h);d.aPosition=a.getAttribLocation(d,"aPosition"),d.aIndex=a.getAttribLocation(d,"aIndex"),d.aVertType=a.getAttribLocation(d,"aVertType"),d.aTransform=a.getAttribLocation(d,"aTransform"),d.aAtlasId=a.getAttribLocation(d,"aAtlasId"),d.aTex=a.getAttribLocation(d,"aTex"),d.aPointAPointB=a.getAttribLocation(d,"aPointAPointB"),d.aPointCPointD=a.getAttribLocation(d,"aPointCPointD"),d.aLineWidth=a.getAttribLocation(d,"aLineWidth"),d.aColor=a.getAttribLocation(d,"aColor"),d.aCornerRadius=a.getAttribLocation(d,"aCornerRadius"),d.aBorderColor=a.getAttribLocation(d,"aBorderColor"),d.uPanZoomMatrix=a.getUniformLocation(d,"uPanZoomMatrix"),d.uAtlasSize=a.getUniformLocation(d,"uAtlasSize"),d.uBGColor=a.getUniformLocation(d,"uBGColor"),d.uZoom=a.getUniformLocation(d,"uZoom"),d.uTextures=[];for(var p=0;p1&&arguments[1]!==void 0?arguments[1]:Jie.SCREEN;this.panZoomMatrix=i,this.renderTarget=a,this.batchDebugInfo=[],this.wrappedCount=0,this.simpleCount=0,this.startBatch()}},{key:"startBatch",value:function(){this.instanceCount=0,this.batchManager.startBatch()}},{key:"endFrame",value:function(){this.endBatch()}},{key:"_isVisible",value:function(i,a){if(i.visible()){if(a&&a.isVisible)return a.isVisible(i);return!0}return!1}},{key:"drawTexture",value:function(i,a,o){var l=this.atlasManager,h=this.batchManager,d=l.getRenderTypeOpts(o);if(!this._isVisible(i,d))return;if(i.isEdge()&&!this._isValidEdge(i))return;if(this.renderTarget.picking&&d.getTexPickingMode){var p=d.getTexPickingMode(i);if(p===zTe.IGNORE)return;else if(p==zTe.USE_BB){this.drawPickingRectangle(i,a,o);return}}var m=l.getAtlasInfo(i,o),y=a2(m),v;try{for(y.s();!(v=y.n()).done;){var w=v.value,{atlas:T,tex1:x,tex2:k}=w;if(!h.canAddToCurrentBatch(T))this.endBatch();var A=h.getAtlasIndexForBatch(T);for(var R=0,N=[[x,!0],[k,!1]];R=this.maxInstances)this.endBatch()}}}}catch(Q){y.e(Q)}finally{y.f()}}},{key:"setTransformMatrix",value:function(i,a,o,l){var h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,d=0;if(o.shapeProps&&o.shapeProps.padding)d=i.pstyle(o.shapeProps.padding).pfValue;if(l){var{bb:p,tex1:m,tex2:y}=l,v=m.w/(m.w+y.w);if(!h)v=1-v;var w=this._getAdjustedBB(p,d,h,v);this._applyTransformMatrix(a,w,o,i)}else{var T=o.getBoundingBox(i),x=this._getAdjustedBB(T,d,!0,1);this._applyTransformMatrix(a,x,o,i)}}},{key:"_applyTransformMatrix",value:function(i,a,o,l){var h,d;c8r(i);var p=o.getRotation?o.getRotation(l):0;if(p!==0){var m=o.getRotationPoint(l),{x:y,y:v}=m;RTe(i,i,[y,v]),u8r(i,i,p);var w=o.getRotationOffset(l);h=w.x+(a.xOffset||0),d=w.y+(a.yOffset||0)}else h=a.x1,d=a.y1;RTe(i,i,[h,d]),not(i,i,[a.w,a.h])}},{key:"_getAdjustedBB",value:function(i,a,o,l){var{x1:h,y1:d,w:p,h:m,yOffset:y}=i;if(a)h-=a,d-=a,p+=2*a,m+=2*a;var v=0,w=p*l;if(o&&l<1)p=w;else if(!o&&l<1)v=p-w,h+=v,p=w;return{x1:h,y1:d,w:p,h:m,xOffset:v,yOffset:y}}},{key:"drawPickingRectangle",value:function(i,a,o){var l=this.atlasManager.getRenderTypeOpts(o),h=this.instanceCount;this.vertTypeBuffer.getView(h)[0]=xq;var d=this.indexBuffer.getView(h);Tq(a,d);var p=this.colorBuffer.getView(h);EB([0,0,0],1,p);var m=this.transformBuffer.getMatrixView(h);if(this.setTransformMatrix(i,m,l),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}},{key:"drawNode",value:function(i,a,o){var l=this.simpleShapeOptions.get(o);if(!this._isVisible(i,l))return;var h=l.shapeProps,d=this._getVertTypeForShape(i,h.shape);if(d===void 0||l.isSimple&&!l.isSimple(i,this.renderTarget)){this.drawTexture(i,a,o);return}var p=this.instanceCount;if(this.vertTypeBuffer.getView(p)[0]=d,d===yTe||d===Yie){var m=l.getBoundingBox(i),y=this._getCornerRadius(i,h.radius,m),v=this.cornerRadiusBuffer.getView(p);if(v[0]=y,v[1]=y,v[2]=y,v[3]=y,d===Yie)v[0]=0,v[2]=0}var w=this.indexBuffer.getView(p);Tq(a,w);var T=this.renderTarget.picking?1:o==="node-body"?i.effectiveOpacity():1,x=this.renderTarget.picking?1:i.pstyle(h.opacity).value*T,k=i.pstyle(h.color).value,A=this.colorBuffer.getView(p);EB(k,x,A);var R=this.lineWidthBuffer.getView(p);if(R[0]=0,R[1]=0,h.border){var N=i.pstyle("border-width").value;if(N>0){var L=i.pstyle("border-color").value,B=T*i.pstyle("border-opacity").value,D=this.borderColorBuffer.getView(p);EB(L,B,D);var P=i.pstyle("border-position").value;if(P==="inside")R[0]=0,R[1]=-N;else if(P==="outside")R[0]=N,R[1]=0;else{var F=N/2;R[0]=F,R[1]=-F}}}var H=this.transformBuffer.getMatrixView(p);if(this.setTransformMatrix(i,H,l),this.simpleCount++,this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}},{key:"_getVertTypeForShape",value:function(i,a){var o=i.pstyle(a).value;switch(o){case"rectangle":return xq;case"ellipse":return Wie;case"roundrectangle":case"round-rectangle":return yTe;case"bottom-round-rectangle":return Yie;default:return}}},{key:"_getCornerRadius",value:function(i,a,o){var{w:l,h}=o;if(i.pstyle(a).value==="auto")return d7(l,h);else{var d=i.pstyle(a).pfValue,p=l/2,m=h/2;return Math.min(d,m,p)}}},{key:"drawEdgeArrow",value:function(i,a,o){if(!i.visible())return;var l=i._private.rscratch,h,d,p;if(o==="source")h=l.arrowStartX,d=l.arrowStartY,p=l.srcArrowAngle;else h=l.arrowEndX,d=l.arrowEndY,p=l.tgtArrowAngle;if(isNaN(h)||h==null||isNaN(d)||d==null||isNaN(p)||p==null)return;var m=i.pstyle(o+"-arrow-shape").value;if(m==="none")return;var y=i.pstyle(o+"-arrow-color").value,v=i.pstyle("opacity").value,w=i.pstyle("line-opacity").value,T=v*w,x=i.pstyle("width").pfValue,k=i.pstyle("arrow-scale").value,A=this.r.getArrowWidth(x,k),R=this.instanceCount,N=this.transformBuffer.getMatrixView(R);c8r(N),RTe(N,N,[h,d]),not(N,N,[A,A]),u8r(N,N,p),this.vertTypeBuffer.getView(R)[0]=Bst;var L=this.indexBuffer.getView(R);Tq(a,L);var B=this.colorBuffer.getView(R);if(EB(y,T,B),this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}},{key:"drawEdgeLine",value:function(i,a){if(!i.visible())return;var o=this._getEdgePoints(i);if(!o)return;var l=i.pstyle("opacity").value,h=i.pstyle("line-opacity").value,d=i.pstyle("width").pfValue,p=i.pstyle("line-color").value,m=l*h;if(o.length/2+this.instanceCount>this.maxInstances)this.endBatch();if(o.length==4){var y=this.instanceCount;this.vertTypeBuffer.getView(y)[0]=h8r;var v=this.indexBuffer.getView(y);Tq(a,v);var w=this.colorBuffer.getView(y);EB(p,m,w);var T=this.lineWidthBuffer.getView(y);T[0]=d;var x=this.pointAPointBBuffer.getView(y);if(x[0]=o[0],x[1]=o[1],x[2]=o[2],x[3]=o[3],this.instanceCount++,this.instanceCount>=this.maxInstances)this.endBatch()}else for(var k=0;k=this.maxInstances)this.endBatch()}}},{key:"_isValidEdge",value:function(i){var a=i._private.rscratch;if(a.badLine||a.allpts==null||isNaN(a.allpts[0]))return!1;return!0}},{key:"_getEdgePoints",value:function(i){var a=i._private.rscratch;if(!this._isValidEdge(i))return;var o=a.allpts;if(o.length==4)return o;var l=this._getNumSegments(i);return this._getCurveSegmentPoints(o,l)}},{key:"_getNumSegments",value:function(i){var a=15;return Math.min(Math.max(a,5),this.maxInstances)}},{key:"_getCurveSegmentPoints",value:function(i,a){if(i.length==4)return i;var o=Array((a+1)*2);for(var l=0;l<=a;l++)if(l==0)o[0]=i[0],o[1]=i[1];else if(l==a)o[l*2]=i[i.length-2],o[l*2+1]=i[i.length-1];else{var h=l/a;this._setCurvePoint(i,h,o,l*2)}return o}},{key:"_setCurvePoint",value:function(i,a,o,l){if(i.length<=2)o[l]=i[0],o[l+1]=i[1];else{var h=Array(i.length-2);for(var d=0;d0}},d=function(v){var w=v.pstyle("text-events").strValue==="yes";return w?zTe.USE_BB:zTe.IGNORE},p=function(v){var w=v.position(),{x:T,y:x}=w,k=v.outerWidth(),A=v.outerHeight();return{w:k,h:A,x1:T-k/2,y1:x-A/2}};i.drawing.addAtlasCollection("node",{texRows:e.webglTexRowsNodes}),i.drawing.addAtlasCollection("label",{texRows:e.webglTexRows}),i.drawing.addTextureAtlasRenderType("node-body",{collection:"node",getKey:r.getStyleKey,getBoundingBox:r.getElementBox,drawElement:r.drawElement}),i.drawing.addSimpleShapeRenderType("node-body",{getBoundingBox:p,isSimple:ohi,shapeProps:{shape:"shape",color:"background-color",opacity:"background-opacity",radius:"corner-radius",border:!0}}),i.drawing.addSimpleShapeRenderType("node-overlay",{getBoundingBox:p,isVisible:h("overlay"),shapeProps:{shape:"overlay-shape",color:"overlay-color",opacity:"overlay-opacity",padding:"overlay-padding",radius:"overlay-corner-radius"}}),i.drawing.addSimpleShapeRenderType("node-underlay",{getBoundingBox:p,isVisible:h("underlay"),shapeProps:{shape:"underlay-shape",color:"underlay-color",opacity:"underlay-opacity",padding:"underlay-padding",radius:"underlay-corner-radius"}}),i.drawing.addTextureAtlasRenderType("label",{collection:"label",getTexPickingMode:d,getKey:Fst(r.getLabelKey,null),getBoundingBox:$st(r.getLabelBox,null),drawClipped:!0,drawElement:r.drawLabel,getRotation:o(null),getRotationPoint:r.getLabelRotationPoint,getRotationOffset:r.getLabelRotationOffset,isVisible:l("label")}),i.drawing.addTextureAtlasRenderType("edge-source-label",{collection:"label",getTexPickingMode:d,getKey:Fst(r.getSourceLabelKey,"source"),getBoundingBox:$st(r.getSourceLabelBox,"source"),drawClipped:!0,drawElement:r.drawSourceLabel,getRotation:o("source"),getRotationPoint:r.getSourceLabelRotationPoint,getRotationOffset:r.getSourceLabelRotationOffset,isVisible:l("source-label")}),i.drawing.addTextureAtlasRenderType("edge-target-label",{collection:"label",getTexPickingMode:d,getKey:Fst(r.getTargetLabelKey,"target"),getBoundingBox:$st(r.getTargetLabelBox,"target"),drawClipped:!0,drawElement:r.drawTargetLabel,getRotation:o("target"),getRotationPoint:r.getTargetLabelRotationPoint,getRotationOffset:r.getTargetLabelRotationOffset,isVisible:l("target-label")});var m=gae(function(){console.log("garbage collect flag set"),i.data.gc=!0},1e4);i.onUpdateEleCalcs(function(y,v){var w=!1;if(v&&v.length>0)w|=i.drawing.invalidate(v);if(w)m()}),Ahi(i)};_7={};_7.drawPolygonPath=function(e,r,i,a,o,l){var h=a/2,d=o/2;if(e.beginPath)e.beginPath();e.moveTo(r+h*l[0],i+d*l[1]);for(var p=1;p0&&h>0){T.clearRect(0,0,l,h),T.globalCompositeOperation="source-over";var x=this.getCachedZSortedEles();if(e.full)T.translate(-a.x1*m,-a.y1*m),T.scale(m,m),this.drawElements(T,x),T.scale(1/m,1/m),T.translate(a.x1*m,a.y1*m);else{var k=r.pan(),A={x:k.x*m,y:k.y*m};m*=r.zoom(),T.translate(A.x,A.y),T.scale(m,m),this.drawElements(T,x),T.scale(1/m,1/m),T.translate(-A.x,-A.y)}if(e.bg)T.globalCompositeOperation="destination-over",T.fillStyle=e.bg,T.rect(0,0,l,h),T.fill()}return w};Eae.png=function(e){return n9r(e,this.bufferCanvasImage(e),"image/png")};Eae.jpg=function(e){return n9r(e,this.bufferCanvasImage(e),"image/jpeg")};i9r={};i9r.nodeShapeImpl=function(e,r,i,a,o,l,h,d){switch(e){case"ellipse":return this.drawEllipsePath(r,i,a,o,l);case"polygon":return this.drawPolygonPath(r,i,a,o,l,h);case"round-polygon":return this.drawRoundPolygonPath(r,i,a,o,l,h,d);case"roundrectangle":case"round-rectangle":return this.drawRoundRectanglePath(r,i,a,o,l,d);case"cutrectangle":case"cut-rectangle":return this.drawCutRectanglePath(r,i,a,o,l,h,d);case"bottomroundrectangle":case"bottom-round-rectangle":return this.drawBottomRoundRectanglePath(r,i,a,o,l,d);case"barrel":return this.drawBarrelPath(r,i,a,o,l)}};Fhi=a9r,lc=a9r.prototype;lc.CANVAS_LAYERS=3;lc.SELECT_BOX=0;lc.DRAG=1;lc.NODE=2;lc.WEBGL=3;lc.CANVAS_TYPES=["2d","2d","2d","webgl2"];lc.BUFFER_COUNT=3;lc.TEXTURE_BUFFER=0;lc.MOTIONBLUR_BUFFER_NODE=1;lc.MOTIONBLUR_BUFFER_DRAG=2;lc.redrawHint=function(e,r){var i=this;switch(e){case"eles":i.data.canvasNeedsRedraw[lc.NODE]=r;break;case"drag":i.data.canvasNeedsRedraw[lc.DRAG]=r;break;case"select":i.data.canvasNeedsRedraw[lc.SELECT_BOX]=r;break;case"gc":i.data.gc=!0;break}};$hi=typeof Path2D<"u";lc.path2dEnabled=function(e){if(e===void 0)return this.pathsEnabled;this.pathsEnabled=e?!0:!1};lc.usePaths=function(){return $hi&&this.pathsEnabled};lc.setImgSmoothing=function(e,r){if(e.imageSmoothingEnabled!=null)e.imageSmoothingEnabled=r;else e.webkitImageSmoothingEnabled=r,e.mozImageSmoothingEnabled=r,e.msImageSmoothingEnabled=r};lc.getImgSmoothing=function(e){if(e.imageSmoothingEnabled!=null)return e.imageSmoothingEnabled;else return e.webkitImageSmoothingEnabled||e.mozImageSmoothingEnabled||e.msImageSmoothingEnabled};lc.makeOffscreenCanvas=function(e,r){var i;if((typeof OffscreenCanvas>"u"?"undefined":om(OffscreenCanvas))!=="undefined")i=new OffscreenCanvas(e,r);else{var a=this.cy.window(),o=a.document;i=o.createElement("canvas"),i.width=e,i.height=r}return i};[WDr,z3,aI,Iot,LB,v7,wv,ZDr,_7,Eae,i9r].forEach(function(e){Eo(lc,e)});Uhi=[{name:"null",impl:NDr},{name:"base",impl:VDr},{name:"canvas",impl:Fhi}],Ghi=[{type:"layout",extensions:uui},{type:"renderer",extensions:Uhi}],s9r={},o9r={};lae.prototype.extension=sot;Ghi.forEach(function(e){e.extensions.forEach(function(r){l9r(e.type,r.name,r.impl)})});OB=VTe.prototype;OB.instanceString=function(){return"stylesheet"};OB.selector=function(e){var r=this.length++;return this[r]={selector:e,properties:[]},this};OB.css=function(e,r){var i=this.length-1;if(Ws(e))this[i].properties.push({name:e,value:r});else if(uu(e)){var a=e,o=Object.keys(a);for(var l=0;lw)this.rect.x-=(this.labelWidth-w)/2,this.setWidth(this.labelWidth);if(this.labelHeight>T){if(this.labelPos=="center")this.rect.y-=(this.labelHeight-T)/2;else if(this.labelPos=="top")this.rect.y-=this.labelHeight-T;this.setHeight(this.labelHeight)}}}},m.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},m.prototype.transform=function(v){var w=this.rect.x;if(w>h.WORLD_BOUNDARY)w=h.WORLD_BOUNDARY;else if(w<-h.WORLD_BOUNDARY)w=-h.WORLD_BOUNDARY;var T=this.rect.y;if(T>h.WORLD_BOUNDARY)T=h.WORLD_BOUNDARY;else if(T<-h.WORLD_BOUNDARY)T=-h.WORLD_BOUNDARY;var x=new p(w,T),k=v.inverseTransformPoint(x);this.setLocation(k.x,k.y)},m.prototype.getLeft=function(){return this.rect.x},m.prototype.getRight=function(){return this.rect.x+this.rect.width},m.prototype.getTop=function(){return this.rect.y},m.prototype.getBottom=function(){return this.rect.y+this.rect.height},m.prototype.getParent=function(){if(this.owner==null)return null;return this.owner.getParent()},e.exports=m},function(e,r,i){function a(o,l){if(o==null&&l==null)this.x=0,this.y=0;else this.x=o,this.y=l}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},e.exports=a},function(e,r,i){var a=i(2),o=i(10),l=i(0),h=i(6),d=i(3),p=i(1),m=i(13),y=i(12),v=i(11);function w(x,k,A){if(a.call(this,A),this.estimatedSize=o.MIN_VALUE,this.margin=l.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=x,k!=null&&k instanceof h)this.graphManager=k;else if(k!=null&&k instanceof Layout)this.graphManager=k.graphManager}w.prototype=Object.create(a.prototype);for(var T in a)w[T]=a[T];w.prototype.getNodes=function(){return this.nodes},w.prototype.getEdges=function(){return this.edges},w.prototype.getGraphManager=function(){return this.graphManager},w.prototype.getParent=function(){return this.parent},w.prototype.getLeft=function(){return this.left},w.prototype.getRight=function(){return this.right},w.prototype.getTop=function(){return this.top},w.prototype.getBottom=function(){return this.bottom},w.prototype.isConnected=function(){return this.isConnected},w.prototype.add=function(x,k,A){if(k==null&&A==null){var R=x;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(R)>-1)throw"Node already in graph!";return R.owner=this,this.getNodes().push(R),R}else{var N=x;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(A)>-1))throw"Source or target not in graph!";if(!(k.owner==A.owner&&k.owner==this))throw"Both owners must be this graph!";if(k.owner!=A.owner)return null;if(N.source=k,N.target=A,N.isInterGraph=!1,this.getEdges().push(N),k.edges.push(N),A!=k)A.edges.push(N);return N}},w.prototype.remove=function(x){var k=x;if(x instanceof d){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";var A=k.edges.slice(),R,N=A.length;for(var L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";if(R.source.edges.splice(D,1),R.target!=R.source)R.target.edges.splice(P,1);var B=R.source.owner.getEdges().indexOf(R);if(B==-1)throw"Not in owner's edge list!";R.source.owner.getEdges().splice(B,1)}},w.prototype.updateLeftTop=function(){var{MAX_VALUE:x,MAX_VALUE:k}=o,A,R,N,L=this.getNodes(),B=L.length;for(var D=0;DA)x=A;if(k>R)k=R}if(x==o.MAX_VALUE)return null;if(L[0].getParent().paddingLeft!=null)N=L[0].getParent().paddingLeft;else N=this.margin;return this.left=k-N,this.top=x-N,new y(this.left,this.top)},w.prototype.updateBounds=function(x){var k=o.MAX_VALUE,A=-o.MAX_VALUE,R=o.MAX_VALUE,N=-o.MAX_VALUE,L,B,D,P,F,H=this.nodes,W=H.length;for(var X=0;XL)k=L;if(AD)R=D;if(NL)k=L;if(AD)R=D;if(N=this.nodes.length){var W=0;if(A.forEach(function(X){if(X.owner==x)W++}),W==this.nodes.length)this.isConnected=!0}},e.exports=w},function(e,r,i){var a,o=i(1);function l(h){a=i(5),this.layout=h,this.graphs=[],this.edges=[]}l.prototype.addRoot=function(){var h=this.layout.newGraph(),d=this.layout.newNode(null),p=this.add(h,d);return this.setRootGraph(p),this.rootGraph},l.prototype.add=function(h,d,p,m,y){if(p==null&&m==null&&y==null){if(h==null)throw"Graph is null!";if(d==null)throw"Parent node is null!";if(this.graphs.indexOf(h)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(h),h.parent!=null)throw"Already has a parent!";if(d.child!=null)throw"Already has a child!";return h.parent=d,d.child=h,h}else{y=p,m=d,p=h;var v=m.getOwner(),w=y.getOwner();if(!(v!=null&&v.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(w!=null&&w.getGraphManager()==this))throw"Target not in this graph mgr!";if(v==w)return p.isInterGraph=!1,v.add(p,m,y);else{if(p.isInterGraph=!0,p.source=m,p.target=y,this.edges.indexOf(p)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(p),!(p.source!=null&&p.target!=null))throw"Edge source and/or target is null!";if(!(p.source.edges.indexOf(p)==-1&&p.target.edges.indexOf(p)==-1))throw"Edge already in source and/or target incidency list!";return p.source.edges.push(p),p.target.edges.push(p),p}}},l.prototype.remove=function(h){if(h instanceof a){var d=h;if(d.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(d==this.rootGraph||d.parent!=null&&d.parent.graphManager==this))throw"Invalid parent node!";var p=[];p=p.concat(d.getEdges());var m,y=p.length;for(var v=0;v=h.getRight())d[0]+=Math.min(h.getX()-l.getX(),l.getRight()-h.getRight());else if(h.getX()<=l.getX()&&h.getRight()>=l.getRight())d[0]+=Math.min(l.getX()-h.getX(),h.getRight()-l.getRight());if(l.getY()<=h.getY()&&l.getBottom()>=h.getBottom())d[1]+=Math.min(h.getY()-l.getY(),l.getBottom()-h.getBottom());else if(h.getY()<=l.getY()&&h.getBottom()>=l.getBottom())d[1]+=Math.min(l.getY()-h.getY(),h.getBottom()-l.getBottom());var y=Math.abs((h.getCenterY()-l.getCenterY())/(h.getCenterX()-l.getCenterX()));if(h.getCenterY()===l.getCenterY()&&h.getCenterX()===l.getCenterX())y=1;var v=y*d[0],w=d[1]/y;if(d[0]v)return d[0]=p,d[1]=T,d[2]=y,d[3]=H,!1;else if(my)return d[0]=w,d[1]=m,d[2]=P,d[3]=v,!1;else if(py)d[0]=k,d[1]=A,Y=!0;else d[0]=x,d[1]=T,Y=!0;else if(J===j)if(p>y)d[0]=w,d[1]=T,Y=!0;else d[0]=R,d[1]=A,Y=!0;if(-Z===j)if(y>p)d[2]=F,d[3]=H,K=!0;else d[2]=P,d[3]=D,K=!0;else if(Z===j)if(y>p)d[2]=B,d[3]=D,K=!0;else d[2]=W,d[3]=H,K=!0;if(Y&&K)return!1;if(p>y)if(m>v)ee=this.getCardinalDirection(J,j,4),z=this.getCardinalDirection(Z,j,2);else ee=this.getCardinalDirection(-J,j,3),z=this.getCardinalDirection(-Z,j,1);else if(m>v)ee=this.getCardinalDirection(-J,j,1),z=this.getCardinalDirection(-Z,j,3);else ee=this.getCardinalDirection(J,j,2),z=this.getCardinalDirection(Z,j,4);if(!Y)switch(ee){case 1:ie=T,ne=p+-L/j,d[0]=ne,d[1]=ie;break;case 2:ne=R,ie=m+N*j,d[0]=ne,d[1]=ie;break;case 3:ie=A,ne=p+L/j,d[0]=ne,d[1]=ie;break;case 4:ne=k,ie=m+-N*j,d[0]=ne,d[1]=ie;break}if(!K)switch(z){case 1:oe=D,se=y+-Q/j,d[2]=se,d[3]=oe;break;case 2:se=W,oe=v+X*j,d[2]=se,d[3]=oe;break;case 3:oe=H,se=y+Q/j,d[2]=se,d[3]=oe;break;case 4:se=F,oe=v+-X*j,d[2]=se,d[3]=oe;break}}return!1},o.getCardinalDirection=function(l,h,d){if(l>h)return d;else return 1+d%4},o.getIntersection=function(l,h,d,p){if(p==null)return this.getIntersection2(l,h,d);var{x:m,y}=l,{x:v,y:w}=h,{x:T,y:x}=d,{x:k,y:A}=p,R=void 0,N=void 0,L=void 0,B=void 0,D=void 0,P=void 0,F=void 0,H=void 0,W=void 0;if(L=w-y,D=m-v,F=v*y-m*w,B=A-x,P=T-k,H=k*x-T*A,W=L*P-B*D,W===0)return null;return R=(D*H-P*F)/W,N=(B*F-L*H)/W,new a(R,N)},o.angleOfVector=function(l,h,d,p){var m=void 0;if(l!==d){if(m=Math.atan((p-h)/(d-l)),d0)return 1;else if(o<0)return-1;else return 0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},e.exports=a},function(e,r,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,e.exports=a},function(e,r,i){var a=function(){function m(y,v){for(var w=0;w"u"?"undefined":a(l);return l==null||h!="object"&&h!="function"},e.exports=o},function(e,r,i){function a(T){if(Array.isArray(T)){for(var x=0,k=Array(T.length);x0&&x){L.push(D[0]);while(L.length>0&&x){var P=L[0];L.splice(0,1),N.add(P);var F=P.getEdges();for(var R=0;R-1)D.splice(Q,1)}N=new Set,B=new Map}}return T},w.prototype.createDummyNodesForBendpoints=function(T){var x=[],k=T.source,A=this.graphManager.calcLowestCommonAncestor(T.source,T.target);for(var R=0;R0){var A=this.edgeToDummyNodes.get(k);for(var R=0;R=0)x.splice(H,1);var W=B.getNeighborsList();W.forEach(function(Y){if(k.indexOf(Y)<0){var K=A.get(Y),J=K-1;if(J==1)P.push(Y);A.set(Y,J)}})}if(k=k.concat(P),x.length==1||x.length==2)R=!0,N=x[0]}return N},w.prototype.setGraphManager=function(T){this.graphManager=T},e.exports=w},function(e,r,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},e.exports=a},function(e,r,i){var a=i(4);function o(l,h){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(l){this.lworldOrgX=l},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(l){this.lworldOrgY=l},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(l){this.lworldExtX=l},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(l){this.lworldExtY=l},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(l){this.ldeviceOrgX=l},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(l){this.ldeviceOrgY=l},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(l){this.ldeviceExtX=l},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(l){this.ldeviceExtY=l},o.prototype.transformX=function(l){var h=0,d=this.lworldExtX;if(d!=0)h=this.ldeviceOrgX+(l-this.lworldOrgX)*this.ldeviceExtX/d;return h},o.prototype.transformY=function(l){var h=0,d=this.lworldExtY;if(d!=0)h=this.ldeviceOrgY+(l-this.lworldOrgY)*this.ldeviceExtY/d;return h},o.prototype.inverseTransformX=function(l){var h=0,d=this.ldeviceExtX;if(d!=0)h=this.lworldOrgX+(l-this.ldeviceOrgX)*this.lworldExtX/d;return h},o.prototype.inverseTransformY=function(l){var h=0,d=this.ldeviceExtY;if(d!=0)h=this.lworldOrgY+(l-this.ldeviceOrgY)*this.lworldExtY/d;return h},o.prototype.inverseTransformPoint=function(l){var h=new a(this.inverseTransformX(l.x),this.inverseTransformY(l.y));return h},e.exports=o},function(e,r,i){function a(v){if(Array.isArray(v)){for(var w=0,T=Array(v.length);wl.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(this.coolingFactor*l.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(v-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-l.COOLING_ADAPTATION_FACTOR));this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT_INCREMENTAL}else{if(v>l.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(l.COOLING_ADAPTATION_FACTOR,1-(v-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*(1-l.COOLING_ADAPTATION_FACTOR));else this.coolingFactor=1;this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT}this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},m.prototype.calcSpringForces=function(){var v=this.getAllEdges(),w;for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:!0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T,x,k,A,R=this.getAllNodes(),N;if(this.useFRGridVariant){if(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&v)this.updateGrid();N=new Set;for(T=0;TL||N>L)v.gravitationForceX=-this.gravityConstant*k,v.gravitationForceY=-this.gravityConstant*A}else if(L=w.getEstimatedSize()*this.compoundGravityRangeFactor,R>L||N>L)v.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,v.gravitationForceY=-this.gravityConstant*A*this.compoundGravityConstant},m.prototype.isConverged=function(){var v,w=!1;if(this.totalIterations>this.maxIterations/3)w=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2;return v=this.totalDisplacement=R.length||L>=R[0].length))for(var B=0;Bm}}]),d}();e.exports=h},function(e,r,i){var a=function(){function h(d,p){for(var m=0;m2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,h),this.sequence1=d,this.sequence2=p,this.match_score=m,this.mismatch_penalty=y,this.gap_penalty=v,this.iMax=d.length+1,this.jMax=p.length+1,this.grid=Array(this.iMax);for(var w=0;w=0;d--){var p=this.listeners[d];if(p.event===l&&p.callback===h)this.listeners.splice(d,1)}},o.emit=function(l,h){for(var d=0;dp.coolingFactor*p.maxNodeDisplacement)this.displacementX=p.coolingFactor*p.maxNodeDisplacement*l.sign(this.displacementX);if(Math.abs(this.displacementY)>p.coolingFactor*p.maxNodeDisplacement)this.displacementY=p.coolingFactor*p.maxNodeDisplacement*l.sign(this.displacementY);if(this.child==null)this.moveBy(this.displacementX,this.displacementY);else if(this.child.getNodes().length==0)this.moveBy(this.displacementX,this.displacementY);else this.propogateDisplacementToChildren(this.displacementX,this.displacementY);p.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},h.prototype.propogateDisplacementToChildren=function(p,m){var y=this.getChild().getNodes(),v;for(var w=0;w0)this.positionNodesRadially(D);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var P=new Set(this.getAllNodes()),F=this.nodesWithGravity.filter(function(H){return P.has(H)});this.graphManager.setAllNodesToApplyGravitation(F),this.positionNodesRandomly()}}else if(m.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var P=new Set(this.getAllNodes()),F=this.nodesWithGravity.filter(function(X){return P.has(X)});this.graphManager.setAllNodesToApplyGravitation(F)}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},L.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%y.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.coolingCycle++,this.layoutQuality==0)this.coolingAdjuster=this.coolingCycle;else if(this.layoutQuality==1)this.coolingAdjuster=this.coolingCycle/3;this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var D=new Set(this.getAllNodes()),P=this.nodesWithGravity.filter(function(W){return D.has(W)});this.graphManager.setAllNodesToApplyGravitation(P),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;if(this.afterGrowthIterations%10==0)this.graphManager.updateBounds(),this.updateGrid();this.coolingFactor=y.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var F=!this.isTreeGrowing&&!this.isGrowthFinished,H=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(F,H),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},L.prototype.getPositionsData=function(){var D=this.graphManager.getAllNodes(),P={};for(var F=0;F1){var Y;for(Y=0;YH)H=Math.floor(Q.y);X=Math.floor(Q.x+m.DEFAULT_COMPONENT_SEPERATION)}this.transform(new T(v.WORLD_CENTER_X-Q.x/2,v.WORLD_CENTER_Y-Q.y/2))},L.radialLayout=function(D,P,F){var H=Math.max(this.maxDiagonalInTree(D),m.DEFAULT_RADIAL_SEPARATION);L.branchRadialLayout(P,null,0,359,0,H);var W=R.calculateBounds(D),X=new N;X.setDeviceOrgX(W.getMinX()),X.setDeviceOrgY(W.getMinY()),X.setWorldOrgX(F.x),X.setWorldOrgY(F.y);for(var Q=0;Q1){var he=oe[0];oe.splice(0,1);var ye=ee.indexOf(he);if(ye>=0)ee.splice(ye,1);ie--,z--}if(P!=null)se=(ee.indexOf(oe[0])+1)%ie;else se=0;var Se=Math.abs(H-F)/z;for(var Ie=se;ne!=z;Ie=++Ie%ie){var Ee=ee[Ie].getOtherEnd(D);if(Ee==P)continue;var ze=(F+ne*Se)%360,Me=(ze+Se)%360;L.branchRadialLayout(Ee,D,ze,Me,W+X,X),ne++}},L.maxDiagonalInTree=function(D){var P=k.MIN_VALUE;for(var F=0;FP)P=W}return P},L.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},L.prototype.groupZeroDegreeMembers=function(){var D=this,P={};this.memberGroups={},this.idToDummyNode={};var F=[],H=this.graphManager.getAllNodes();for(var W=0;W"u")P[Y]=[];P[Y]=P[Y].concat(X)}Object.keys(P).forEach(function(K){if(P[K].length>1){var J="DummyCompound_"+K;D.memberGroups[J]=P[K];var Z=P[K][0].getParent(),j=new d(D.graphManager);j.id=J,j.paddingLeft=Z.paddingLeft||0,j.paddingRight=Z.paddingRight||0,j.paddingBottom=Z.paddingBottom||0,j.paddingTop=Z.paddingTop||0,D.idToDummyNode[J]=j;var ee=D.getGraphManager().add(D.newGraph(),j),z=Z.getChild();z.add(j);for(var ne=0;ne=0;D--){var P=this.compoundOrder[D],{id:F,paddingLeft:H,paddingTop:W}=P;this.adjustLocations(this.tiledMemberPack[F],P.rect.x,P.rect.y,H,W)}},L.prototype.repopulateZeroDegreeMembers=function(){var D=this,P=this.tiledZeroDegreePack;Object.keys(P).forEach(function(F){var H=D.idToDummyNode[F],{paddingLeft:W,paddingTop:X}=H;D.adjustLocations(P[F],H.rect.x,H.rect.y,W,X)})},L.prototype.getToBeTiled=function(D){var P=D.id;if(this.toBeTiled[P]!=null)return this.toBeTiled[P];var F=D.getChild();if(F==null)return this.toBeTiled[P]=!1,!1;var H=F.getNodes();for(var W=0;W0)return this.toBeTiled[P]=!1,!1;if(X.getChild()==null){this.toBeTiled[X.id]=!1;continue}if(!this.getToBeTiled(X))return this.toBeTiled[P]=!1,!1}return this.toBeTiled[P]=!0,!0},L.prototype.getNodeDegree=function(D){var P=D.id,F=D.getEdges(),H=0;for(var W=0;WK)K=Z.rect.height}F+=K+D.verticalPadding}},L.prototype.tileCompoundMembers=function(D,P){var F=this;this.tiledMemberPack=[],Object.keys(D).forEach(function(H){var W=P[H];F.tiledMemberPack[H]=F.tileNodes(D[H],W.paddingLeft+W.paddingRight),W.rect.width=F.tiledMemberPack[H].width,W.rect.height=F.tiledMemberPack[H].height})},L.prototype.tileNodes=function(D,P){var{TILING_PADDING_VERTICAL:F,TILING_PADDING_HORIZONTAL:H}=m,W={rows:[],rowWidth:[],rowHeight:[],width:0,height:P,verticalPadding:F,horizontalPadding:H};D.sort(function(Y,K){if(Y.rect.width*Y.rect.height>K.rect.width*K.rect.height)return-1;if(Y.rect.width*Y.rect.height0)Q+=D.horizontalPadding;if(D.rowWidth[F]=Q,D.width0)Y+=D.verticalPadding;var K=0;if(Y>D.rowHeight[F])K=D.rowHeight[F],D.rowHeight[F]=Y,K=D.rowHeight[F]-K;D.height+=K,D.rows[F].push(P)},L.prototype.getShortestRowIndex=function(D){var P=-1,F=Number.MAX_VALUE;for(var H=0;HF)P=H,F=D.rowWidth[H];return P},L.prototype.canAddHorizontal=function(D,P,F){var H=this.getShortestRowIndex(D);if(H<0)return!0;var W=D.rowWidth[H];if(W+D.horizontalPadding+P<=D.width)return!0;var X=0;if(D.rowHeight[H]0)X=F+D.verticalPadding-D.rowHeight[H]}var Q;if(D.width-W>=P+D.horizontalPadding)Q=(D.height+X)/(W+P+D.horizontalPadding);else Q=(D.height+X)/D.width;X=F+D.verticalPadding;var Y;if(D.widthX&&P!=F){H.splice(-1,1),D.rows[F].push(W),D.rowWidth[P]=D.rowWidth[P]-X,D.rowWidth[F]=D.rowWidth[F]+X,D.width=D.rowWidth[instance.getLongestRowIndex(D)];var Q=Number.MIN_VALUE;for(var Y=0;YQ)Q=H[Y].height;if(P>0)Q+=D.verticalPadding;var K=D.rowHeight[P]+D.rowHeight[F];if(D.rowHeight[P]=Q,D.rowHeight[F]0)for(var z=W;z<=X;z++)ee[0]+=this.grid[z][Q-1].length+this.grid[z][Q].length-1;if(X0)for(var z=Q;z<=Y;z++)ee[3]+=this.grid[W-1][z].length+this.grid[W][z].length-1;var ne=k.MAX_VALUE,ie,se;for(var oe=0;oe0){var Y=N.getGraphManager().add(N.newGraph(),F);this.processChildrenList(Y,P,N)}}},T.prototype.stop=function(){return this.stopped=!0,this};var k=function(R){R("layout","cose-bilkent",T)};if(typeof cytoscape<"u")k(cytoscape);r.exports=k}])})});var v9r={};VN(v9r,{render:()=>Yhi});function d9r(e,r){e.forEach((i)=>{let a={id:i.id,labelText:i.label,height:i.height,width:i.width,padding:i.padding??0};Object.keys(i).forEach((o)=>{if(!["id","label","height","width","padding","x","y"].includes(o))a[o]=i[o]}),r.add({group:"nodes",data:a,position:{x:i.x??0,y:i.y??0}})})}function f9r(e,r){e.forEach((i)=>{let a={id:i.id,source:i.start,target:i.end};Object.keys(i).forEach((o)=>{if(!["id","start","end"].includes(o))a[o]=i[o]}),r.add({group:"edges",data:a})})}function p9r(e){return new Promise((r)=>{let i=xn("body").append("div").attr("id","cy").attr("style","display:none"),a=lT({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"bezier"}}]});i.remove(),d9r(e.nodes,a),f9r(e.edges,a),a.nodes().forEach(function(l){l.layoutDimensions=()=>{let h=l.data();return{w:h.width,h:h.height}}});let o={name:"cose-bilkent",quality:"proof",styleEnabled:!1,animate:!1};a.layout(o).run(),a.ready((l)=>{Ze.info("Cytoscape ready",l),r(a)})})}function g9r(e){return e.nodes().map((r)=>{let i=r.data(),a=r.position(),o={id:i.id,x:a.x,y:a.y};return Object.keys(i).forEach((l)=>{if(l!=="id")o[l]=i[l]}),o})}function m9r(e){return e.edges().map((r)=>{let i=r.data(),a=r._private.rscratch,o={id:i.id,source:i.source,target:i.target,startX:a.startX,startY:a.startY,midX:a.midX,midY:a.midY,endX:a.endX,endY:a.endY};return Object.keys(i).forEach((l)=>{if(!["id","source","target"].includes(l))o[l]=i[l]}),o})}async function b9r(e,r){Ze.debug("Starting cose-bilkent layout algorithm");try{y9r(e);let i=await p9r(e),a=g9r(i),o=m9r(i);return Ze.debug(`Layout completed: ${a.length} nodes, ${o.length} edges`),{nodes:a,edges:o}}catch(i){throw Ze.error("Error in cose-bilkent layout algorithm:",i),i}}function y9r(e){if(!e)throw Error("Layout data is required");if(!e.config)throw Error("Configuration is required in layout data");if(!e.rootNode)throw Error("Root node is required");if(!e.nodes||!Array.isArray(e.nodes))throw Error("No nodes found in layout data");if(!Array.isArray(e.edges))throw Error("Edges array is required in layout data");return!0}var h9r,qhi,Yhi;var _9r=Re(()=>{Zs();Ja();Not();dl();h9r=sv(u9r(),1);lT.use(h9r.default);I(d9r,"addNodes");I(f9r,"addEdges");I(p9r,"createCytoscapeInstance");I(g9r,"extractPositionedNodes");I(m9r,"extractPositionedEdges");I(b9r,"executeCoseBilkentLayout");I(y9r,"validateLayoutData");qhi=I(async(e,r,{insertCluster:i,insertEdge:a,insertEdgeLabel:o,insertMarkers:l,insertNode:h,log:d,positionEdgeLabel:p},{algorithm:m})=>{let y={},v={},w=r.select("g");l(w,e.markers,e.type,e.diagramId);let T=w.insert("g").attr("class","subgraphs"),x=w.insert("g").attr("class","edgePaths"),k=w.insert("g").attr("class","edgeLabels"),A=w.insert("g").attr("class","nodes");d.debug("Inserting nodes into DOM for dimension calculation"),await Promise.all(e.nodes.map(async(L)=>{if(L.isGroup){let B={...L};v[L.id]=B,y[L.id]=B,await i(T,L)}else{let B={...L};y[L.id]=B;let D=await h(A,L,{config:e.config,dir:e.direction||"TB"}),P=D.node().getBBox();B.width=P.width,B.height=P.height,B.domId=D,d.debug(`Node ${L.id} dimensions: ${P.width}x${P.height}`)}})),d.debug("Running cose-bilkent layout algorithm");let R={...e,nodes:e.nodes.map((L)=>{let B=y[L.id];return{...L,width:B.width,height:B.height}})},N=await b9r(R,e.config);d.debug("Positioning nodes based on layout results"),N.nodes.forEach((L)=>{let B=y[L.id];if(B?.domId)B.domId.attr("transform",`translate(${L.x}, ${L.y})`),B.x=L.x,B.y=L.y,d.debug(`Positioned node ${B.id} at center (${L.x}, ${L.y})`)}),N.edges.forEach((L)=>{let B=e.edges.find((D)=>D.id===L.id);if(B)B.points=[{x:L.startX,y:L.startY},{x:L.midX,y:L.midY},{x:L.endX,y:L.endY}]}),d.debug("Inserting and positioning edges"),await Promise.all(e.edges.map(async(L)=>{let B=await o(k,L),D=y[L.start??""],P=y[L.end??""];if(D&&P){let F=N.edges.find((H)=>H.id===L.id);if(F){d.debug("APA01 positionedEdge",F);let H={...L},W=a(x,H,v,e.type,D,P,e.diagramId);p(H,W)}else{let H={...L,points:[{x:D.x||0,y:D.y||0},{x:P.x||0,y:P.y||0}]},W=a(x,H,v,e.type,D,P,e.diagramId);p(H,W)}}})),d.debug("Cose-bilkent rendering completed")},"render"),Yhi=qhi});var Whi,jhi,xae,$ot,Khi,Xhi,sy,Fot="dagre",oy;var cT=Re(()=>{WE();K1();Qm();dg();ip();Ql();eo();Zs();Ja();Whi={common:ai,getConfig:ea,insertCluster:CL,insertEdge:kL,insertEdgeLabel:E3,insertMarkers:GH,insertNode:v3,interpolateToCurve:VEe,labelHelper:ss,log:Ze,positionEdgeLabel:UH},jhi=["elk.stress","elk.force","elk.mrtree","elk.sporeOverlap","elk.box","elk.rectpacking"],xae=Object.create(null),$ot=I((e)=>{for(let r of e)xae[r.name]=r},"registerLayoutLoaders"),Khi=I(()=>{let e=I(async()=>await Promise.resolve().then(() => (M6r(),L6r)),"loader");return[{name:"elk",loader:e,algorithm:"elk.layered"},...jhi.map((r)=>({name:r,loader:e,algorithm:r}))]},"elkLayoutLoaders"),Xhi=I(()=>{$ot([{name:"dagre",loader:I(async()=>await Promise.resolve().then(() => (hNr(),uNr)),"loader")},{name:"swimlane",loader:I(async()=>await Promise.resolve().then(() => (GLr(),ULr)),"loader")},{name:"cose-bilkent",loader:I(async()=>await Promise.resolve().then(() => (_9r(),v9r)),"loader")},...Khi()])},"registerDefaultLayoutLoaders");Xhi();sy=I(async(e,r)=>{if(!Object.hasOwn(xae,e.layoutAlgorithm))throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(let o of e.nodes){let l=o.domId||o.id;o.domId=`${e.diagramId}-${l}`}let i=xae[e.layoutAlgorithm],a=await i.loader();return uEe(r,e.config),a.render(e,r,Whi,{algorithm:i.algorithm})},"render"),oy=I((e="",{fallback:r=Fot}={})=>{if(Object.hasOwn(xae,e))return e;for(let i of[r,Fot])if(Object.hasOwn(xae,i))return Ze.warn(`Layout algorithm ${e} is not registered. Using ${i} as fallback.`),i;throw Error(`Neither layout algorithm ${e}, ${r}, nor ${Fot} is registered.`)},"getRegisteredLayoutAlgorithm")});var Got,DB,vxe,G9r,_xe,Exe,o2,wxe,E7;var V3=Re(()=>{eo();Ja();dl();Got=sv(Ane(),1),DB=I((e,r)=>{let i=e.append("rect");if(i.attr("x",r.x),i.attr("y",r.y),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("width",r.width),i.attr("height",r.height),r.name)i.attr("name",r.name);if(r.rx)i.attr("rx",r.rx);if(r.ry)i.attr("ry",r.ry);if(r.attrs!==void 0)for(let a in r.attrs)i.attr(a,r.attrs[a]);if(r.class)i.attr("class",r.class);return i},"drawRect"),vxe=I((e,r)=>{let i={x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,stroke:r.stroke,class:"rect"};DB(e,i).lower()},"drawBackgroundRect"),G9r=I((e,r)=>{let i=r.text.replace(RP," "),a=e.append("text");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("class","legend"),a.style("text-anchor",r.anchor),r.class)a.attr("class",r.class);let o=a.append("tspan");return o.attr("x",r.x+r.textMargin*2),o.text(i),a},"drawText"),_xe=I((e,r,i,a)=>{let o=e.append("image");o.attr("x",r),o.attr("y",i);let l=Got.sanitizeUrl(a);o.attr("xlink:href",l)},"drawImage"),Exe=I((e,r,i,a)=>{let o=e.append("use");o.attr("x",r),o.attr("y",i);let l=Got.sanitizeUrl(a);o.attr("xlink:href",`#${l}`)},"drawEmbeddedImage"),o2=I(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),wxe=I(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),E7=I(()=>{let e=xn(".mermaidTooltip");if(e.empty())e=xn("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100");return e},"createTooltip")});function S7(e,r,i,a,o){let l=r[e];if(!l.width)if(i)l.text=WP(l.text,o,a),l.textLines=l.text.split(ai.lineBreakRegex).length,l.width=o,l.height=Lne(l.text,a);else{let h=l.text.split(ai.lineBreakRegex);l.textLines=h.length;let d=0;l.height=0,l.width=0;for(let p of h)l.width=Math.max(ey(p,a),l.width),d=Lne(p,a),l.height=l.height+d}return l}async function jot(e,r,i,a,o){let l=o.db,h=new ePr(o);h.data.widthLimit=i.data.widthLimit/Math.min(Hot,a.length);for(let[d,p]of a.entries()){let m=0;if(p.image={width:0,height:0,Y:0},p.sprite)p.image.width=48,p.image.height=48,p.image.Y=m,m=p.image.Y+p.image.height;let y=p.wrap&&po.wrap,v=Sxe(po);v.fontSize=v.fontSize+2,v.fontWeight="bold";let w=S7("label",p,y,v,h.data.widthLimit);if(w.Y=m+8,m=w.Y+w.height,p.type&&p.type.text!==""){p.type.text="["+p.type.text+"]";let A=Sxe(po),R=S7("type",p,y,A,h.data.widthLimit);R.Y=m+5,m=R.Y+R.height}if(p.descr&&p.descr.text!==""){let A=Sxe(po);A.fontSize=A.fontSize-2;let R=S7("descr",p,y,A,h.data.widthLimit);R.Y=m+20,m=R.Y+R.height}if(d==0||d%Hot===0){let A=i.data.startx+po.diagramMarginX,R=i.data.stopy+po.diagramMarginY+m;h.setData(A,A,R,R)}else{let A=h.data.stopx!==h.data.startx?h.data.stopx+po.diagramMarginX:h.data.startx,R=h.data.starty;h.setData(A,A,R,R)}h.name=p.alias;let T=l.getC4ShapeArray(p.alias),x=l.getC4ShapeKeys(p.alias);if(x.length>0)await rPr(h,e,T,x);r=p.alias;let k=l.getBoundaries(r);if(k.length>0)await jot(e,r,h,k,o);if(p.alias!=="global")tPr(e,p,h);i.data.stopy=Math.max(h.data.stopy+po.c4ShapeMargin,i.data.stopy),i.data.stopx=Math.max(h.data.stopx+po.c4ShapeMargin,i.data.stopx),Iae=Math.max(Iae,i.data.stopx),Oae=Math.max(Oae,i.data.stopy)}}var Txe,Jhi,Y9r,dT,PB,W9r,MC,w7,Sv="global",LC="",DC,Nae,Yot="",Wot=!1,xxe=4,Cxe=2,j9r,edi,tdi,rdi,ndi,idi,adi,sdi,odi,ldi,cdi,udi,hdi,ddi,fdi,pdi,gdi,mdi,K9r,bdi,ydi,X9r,vdi,_di,Edi,wdi,T7,Sdi,Tdi,xdi,Cdi,kdi,Vot,Q9r,Adi,Rdi,Idi,Odi,Ndi,Ldi,Mdi,Ddi,Pdi,Rae,cI,Bdi,Fdi,$di,Udi,zot,Gdi,zdi,Vdi,Hdi,qdi,Z9r,Ydi,z9r,Wdi,V9r,Iae=0,Oae=0,J9r=4,Hot=2,po,ePr,qot,Sxe,jdi,tPr,rPr,Kdi,H9r,Xdi,Qdi,Zdi,q9r,Jdi,efi,tfi,nPr;var iPr=Re(()=>{V3();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();Txe=function(){var e=I(function(Ue,qe,Ke,Je){for(Ke=Ke||{},Je=Ue.length;Je--;Ke[Ue[Je]]=qe);return Ke},"o"),r=[1,24],i=[1,25],a=[1,26],o=[1,27],l=[1,28],h=[1,63],d=[1,64],p=[1,65],m=[1,66],y=[1,67],v=[1,68],w=[1,69],T=[1,29],x=[1,30],k=[1,31],A=[1,32],R=[1,33],N=[1,34],L=[1,35],B=[1,36],D=[1,37],P=[1,38],F=[1,39],H=[1,40],W=[1,41],X=[1,42],Q=[1,43],Y=[1,44],K=[1,45],J=[1,46],Z=[1,47],j=[1,48],ee=[1,50],z=[1,51],ne=[1,52],ie=[1,53],se=[1,54],oe=[1,55],he=[1,56],ye=[1,57],Se=[1,58],Ie=[1,59],Ee=[1,60],ze=[14,42],Me=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xe=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Ye=[1,82],Qe=[1,83],xt=[1,84],dt=[1,85],zt=[12,14,42],Kt=[12,14,33,42],rr=[12,14,33,42,76,77,79,80],je=[12,33],Nt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],ct={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:I(function(qe,Ke,Je,De,le,pe,fe){var be=pe.length-1;switch(le){case 3:De.setDirection("TB");break;case 4:De.setDirection("BT");break;case 5:De.setDirection("RL");break;case 6:De.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:De.setC4Type(pe[be-3]);break;case 19:De.setTitle(pe[be].substring(6)),this.$=pe[be].substring(6);break;case 20:De.setAccDescription(pe[be].substring(15)),this.$=pe[be].substring(15);break;case 21:this.$=pe[be].trim(),De.setTitle(this.$);break;case 22:case 23:this.$=pe[be].trim(),De.setAccDescription(this.$);break;case 28:pe[be].splice(2,0,"ENTERPRISE"),De.addPersonOrSystemBoundary(...pe[be]),this.$=pe[be];break;case 29:pe[be].splice(2,0,"SYSTEM"),De.addPersonOrSystemBoundary(...pe[be]),this.$=pe[be];break;case 30:De.addPersonOrSystemBoundary(...pe[be]),this.$=pe[be];break;case 31:pe[be].splice(2,0,"CONTAINER"),De.addContainerBoundary(...pe[be]),this.$=pe[be];break;case 32:De.addDeploymentNode("node",...pe[be]),this.$=pe[be];break;case 33:De.addDeploymentNode("nodeL",...pe[be]),this.$=pe[be];break;case 34:De.addDeploymentNode("nodeR",...pe[be]),this.$=pe[be];break;case 35:De.popBoundaryParseStack();break;case 39:De.addPersonOrSystem("person",...pe[be]),this.$=pe[be];break;case 40:De.addPersonOrSystem("external_person",...pe[be]),this.$=pe[be];break;case 41:De.addPersonOrSystem("system",...pe[be]),this.$=pe[be];break;case 42:De.addPersonOrSystem("system_db",...pe[be]),this.$=pe[be];break;case 43:De.addPersonOrSystem("system_queue",...pe[be]),this.$=pe[be];break;case 44:De.addPersonOrSystem("external_system",...pe[be]),this.$=pe[be];break;case 45:De.addPersonOrSystem("external_system_db",...pe[be]),this.$=pe[be];break;case 46:De.addPersonOrSystem("external_system_queue",...pe[be]),this.$=pe[be];break;case 47:De.addContainer("container",...pe[be]),this.$=pe[be];break;case 48:De.addContainer("container_db",...pe[be]),this.$=pe[be];break;case 49:De.addContainer("container_queue",...pe[be]),this.$=pe[be];break;case 50:De.addContainer("external_container",...pe[be]),this.$=pe[be];break;case 51:De.addContainer("external_container_db",...pe[be]),this.$=pe[be];break;case 52:De.addContainer("external_container_queue",...pe[be]),this.$=pe[be];break;case 53:De.addComponent("component",...pe[be]),this.$=pe[be];break;case 54:De.addComponent("component_db",...pe[be]),this.$=pe[be];break;case 55:De.addComponent("component_queue",...pe[be]),this.$=pe[be];break;case 56:De.addComponent("external_component",...pe[be]),this.$=pe[be];break;case 57:De.addComponent("external_component_db",...pe[be]),this.$=pe[be];break;case 58:De.addComponent("external_component_queue",...pe[be]),this.$=pe[be];break;case 60:De.addRel("rel",...pe[be]),this.$=pe[be];break;case 61:De.addRel("birel",...pe[be]),this.$=pe[be];break;case 62:De.addRel("rel_u",...pe[be]),this.$=pe[be];break;case 63:De.addRel("rel_d",...pe[be]),this.$=pe[be];break;case 64:De.addRel("rel_l",...pe[be]),this.$=pe[be];break;case 65:De.addRel("rel_r",...pe[be]),this.$=pe[be];break;case 66:De.addRel("rel_b",...pe[be]),this.$=pe[be];break;case 67:pe[be].splice(0,1),De.addRel("rel",...pe[be]),this.$=pe[be];break;case 68:De.updateElStyle("update_el_style",...pe[be]),this.$=pe[be];break;case 69:De.updateRelStyle("update_rel_style",...pe[be]),this.$=pe[be];break;case 70:De.updateLayoutConfig("update_layout_config",...pe[be]),this.$=pe[be];break;case 71:this.$=[pe[be]];break;case 72:pe[be].unshift(pe[be-1]),this.$=pe[be];break;case 73:case 75:this.$=pe[be].trim();break;case 74:let Ge={};Ge[pe[be-1].trim()]=pe[be].trim(),this.$=Ge;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:v,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee},{13:70,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:v,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee},{13:71,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:v,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee},{13:72,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:v,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee},{13:73,19:20,20:21,21:22,22:r,23:i,24:a,26:o,28:l,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:v,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee},{14:[1,74]},e(ze,[2,13],{43:23,29:49,30:61,32:62,20:75,34:h,36:d,37:p,38:m,39:y,40:v,41:w,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee}),e(ze,[2,14]),e(Me,[2,16],{12:[1,76]}),e(ze,[2,36],{12:[1,77]}),e(Xe,[2,19]),e(Xe,[2,20]),{25:[1,78]},{27:[1,79]},e(Xe,[2,23]),{35:80,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:86,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:87,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:88,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:89,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:90,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:91,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:92,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:93,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:94,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:95,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:96,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:97,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:98,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:99,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:100,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:101,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:102,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:103,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:104,75:81,76:Ye,77:Qe,79:xt,80:dt},e(zt,[2,59]),{35:105,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:106,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:107,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:108,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:109,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:110,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:111,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:112,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:113,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:114,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:115,75:81,76:Ye,77:Qe,79:xt,80:dt},{20:116,29:49,30:61,32:62,34:h,36:d,37:p,38:m,39:y,40:v,41:w,43:23,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee},{12:[1,118],33:[1,117]},{35:119,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:120,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:121,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:122,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:123,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:124,75:81,76:Ye,77:Qe,79:xt,80:dt},{35:125,75:81,76:Ye,77:Qe,79:xt,80:dt},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(ze,[2,15]),e(Me,[2,17],{21:22,19:130,22:r,23:i,24:a,26:o,28:l}),e(ze,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:r,23:i,24:a,26:o,28:l,34:h,36:d,37:p,38:m,39:y,40:v,41:w,44:T,45:x,46:k,47:A,48:R,49:N,50:L,51:B,52:D,53:P,54:F,55:H,56:W,57:X,58:Q,59:Y,60:K,61:J,62:Z,63:j,64:ee,65:z,66:ne,67:ie,68:se,69:oe,70:he,71:ye,72:Se,73:Ie,74:Ee}),e(Xe,[2,21]),e(Xe,[2,22]),e(zt,[2,39]),e(Kt,[2,71],{75:81,35:132,76:Ye,77:Qe,79:xt,80:dt}),e(rr,[2,73]),{78:[1,133]},e(rr,[2,75]),e(rr,[2,76]),e(zt,[2,40]),e(zt,[2,41]),e(zt,[2,42]),e(zt,[2,43]),e(zt,[2,44]),e(zt,[2,45]),e(zt,[2,46]),e(zt,[2,47]),e(zt,[2,48]),e(zt,[2,49]),e(zt,[2,50]),e(zt,[2,51]),e(zt,[2,52]),e(zt,[2,53]),e(zt,[2,54]),e(zt,[2,55]),e(zt,[2,56]),e(zt,[2,57]),e(zt,[2,58]),e(zt,[2,60]),e(zt,[2,61]),e(zt,[2,62]),e(zt,[2,63]),e(zt,[2,64]),e(zt,[2,65]),e(zt,[2,66]),e(zt,[2,67]),e(zt,[2,68]),e(zt,[2,69]),e(zt,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(je,[2,28]),e(je,[2,29]),e(je,[2,30]),e(je,[2,31]),e(je,[2,32]),e(je,[2,33]),e(je,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Me,[2,18]),e(ze,[2,38]),e(Kt,[2,72]),e(rr,[2,74]),e(zt,[2,24]),e(zt,[2,35]),e(Nt,[2,25]),e(Nt,[2,26],{12:[1,138]}),e(Nt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:I(function(qe,Ke){if(Ke.recoverable)this.trace(qe);else{var Je=Error(qe);throw Je.hash=Ke,Je}},"parseError"),parse:I(function(qe){var Ke=this,Je=[0],De=[],le=[null],pe=[],fe=this.table,be="",Ge=0,ke=0,we=0,Ae=2,at=1,ut=pe.slice.call(arguments,1),gt=Object.create(this.lexer),vt={yy:{}};for(var ir in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ir))vt.yy[ir]=this.yy[ir];if(gt.setInput(qe,vt.yy),vt.yy.lexer=gt,vt.yy.parser=this,typeof gt.yylloc>"u")gt.yylloc={};var qt=gt.yylloc;pe.push(qt);var cr=gt.options&>.options.ranges;if(typeof vt.yy.parseError==="function")this.parseError=vt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function tr(vn){Je.length=Je.length-2*vn,le.length=le.length-vn,pe.length=pe.length-vn}I(tr,"popStack");function Zt(){var vn=De.pop()||gt.lex()||at;if(typeof vn!=="number"){if(vn instanceof Array)De=vn,vn=De.pop();vn=Ke.symbols_[vn]||vn}return vn}I(Zt,"lex");var lr,Xt,In,Et,Xn,Yt,Bn={},si,dn,Ii,Vn;while(!0){if(In=Je[Je.length-1],this.defaultActions[In])Et=this.defaultActions[In];else{if(lr===null||typeof lr>"u")lr=Zt();Et=fe[In]&&fe[In][lr]}if(typeof Et>"u"||!Et.length||!Et[0]){var Ei="";Vn=[];for(si in fe[In])if(this.terminals_[si]&&si>Ae)Vn.push("'"+this.terminals_[si]+"'");if(gt.showPosition)Ei="Parse error on line "+(Ge+1)+`: `+gt.showPosition()+` -Expecting `+Vn.join(", ")+", got '"+(this.terminals_[lr]||lr)+"'";else Ei="Parse error on line "+(ze+1)+": Unexpected "+(lr==it?"end of input":"'"+(this.terminals_[lr]||lr)+"'");this.parseError(Ei,{text:gt.match,token:this.terminals_[lr]||lr,line:gt.yylineno,loc:qt,expected:Vn})}if(Et[0]instanceof Array&&Et.length>1)throw Error("Parse Error: multiple actions possible at state: "+In+", token: "+lr);switch(Et[0]){case 1:if(Je.push(lr),oe.push(gt.yytext),pe.push(gt.yylloc),Je.push(Et[1]),lr=null,!Kt){if(Ce=gt.yyleng,be=gt.yytext,ze=gt.yylineno,qt=gt.yylloc,_e>0)_e--}else lr=Kt,Kt=null;break;case 2:if(hn=this.productions_[Et[1]][1],Bn.$=oe[oe.length-hn],Bn._$={first_line:pe[pe.length-(hn||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(hn||1)].first_column,last_column:pe[pe.length-1].last_column},cr)Bn._$.range=[pe[pe.length-(hn||1)].range[0],pe[pe.length-1].range[1]];if(Yt=this.performAction.apply(Bn,[be,Ce,ze,vt.yy,Et[1],oe,pe].concat(ut)),typeof Yt<"u")return Yt;if(hn)Je=Je.slice(0,-1*hn*2),oe=oe.slice(0,-1*hn),pe=pe.slice(0,-1*hn);Je.push(this.productions_[Et[1]][0]),oe.push(Bn.$),pe.push(Bn._$),Ii=fe[Je[Je.length-2]][Je[Je.length-1]],Je.push(Ii);break;case 3:return!0}}return!0},"parse")},bt=function(){var Ge={EOF:1,parseError:I(function(Ke,Je){if(this.yy.parser)this.yy.parser.parseError(Ke,Je);else throw Error(Ke)},"parseError"),setInput:I(function(qe,Ke){if(this.yy=Ke||this.yy||{},this._input=qe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var qe=this._input[0];this.yytext+=qe,this.yyleng++,this.offset++,this.match+=qe,this.matched+=qe;var Ke=qe.match(/(?:\r\n?|\n).*/g);if(Ke)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),qe},"input"),unput:I(function(qe){var Ke=qe.length,Je=qe.split(/(?:\r\n?|\n)/g);this._input=qe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ke),this.offset-=Ke;var De=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Je.length-1)this.yylineno-=Je.length-1;var oe=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Je?(Je.length===De.length?this.yylloc.first_column:0)+De[De.length-Je.length].length-Je[0].length:this.yylloc.first_column-Ke},this.options.ranges)this.yylloc.range=[oe[0],oe[0]+this.yyleng-Ke];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Vn.join(", ")+", got '"+(this.terminals_[lr]||lr)+"'";else Ei="Parse error on line "+(Ge+1)+": Unexpected "+(lr==at?"end of input":"'"+(this.terminals_[lr]||lr)+"'");this.parseError(Ei,{text:gt.match,token:this.terminals_[lr]||lr,line:gt.yylineno,loc:qt,expected:Vn})}if(Et[0]instanceof Array&&Et.length>1)throw Error("Parse Error: multiple actions possible at state: "+In+", token: "+lr);switch(Et[0]){case 1:if(Je.push(lr),le.push(gt.yytext),pe.push(gt.yylloc),Je.push(Et[1]),lr=null,!Xt){if(ke=gt.yyleng,be=gt.yytext,Ge=gt.yylineno,qt=gt.yylloc,we>0)we--}else lr=Xt,Xt=null;break;case 2:if(dn=this.productions_[Et[1]][1],Bn.$=le[le.length-dn],Bn._$={first_line:pe[pe.length-(dn||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(dn||1)].first_column,last_column:pe[pe.length-1].last_column},cr)Bn._$.range=[pe[pe.length-(dn||1)].range[0],pe[pe.length-1].range[1]];if(Yt=this.performAction.apply(Bn,[be,ke,Ge,vt.yy,Et[1],le,pe].concat(ut)),typeof Yt<"u")return Yt;if(dn)Je=Je.slice(0,-1*dn*2),le=le.slice(0,-1*dn),pe=pe.slice(0,-1*dn);Je.push(this.productions_[Et[1]][0]),le.push(Bn.$),pe.push(Bn._$),Ii=fe[Je[Je.length-2]][Je[Je.length-1]],Je.push(Ii);break;case 3:return!0}}return!0},"parse")},bt=function(){var Ue={EOF:1,parseError:I(function(Ke,Je){if(this.yy.parser)this.yy.parser.parseError(Ke,Je);else throw Error(Ke)},"parseError"),setInput:I(function(qe,Ke){if(this.yy=Ke||this.yy||{},this._input=qe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var qe=this._input[0];this.yytext+=qe,this.yyleng++,this.offset++,this.match+=qe,this.matched+=qe;var Ke=qe.match(/(?:\r\n?|\n).*/g);if(Ke)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),qe},"input"),unput:I(function(qe){var Ke=qe.length,Je=qe.split(/(?:\r\n?|\n)/g);this._input=qe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ke),this.offset-=Ke;var De=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Je.length-1)this.yylineno-=Je.length-1;var le=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Je?(Je.length===De.length?this.yylloc.first_column:0)+De[De.length-Je.length].length-Je[0].length:this.yylloc.first_column-Ke},this.options.ranges)this.yylloc.range=[le[0],le[0]+this.yyleng-Ke];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(qe){this.unput(this.match.slice(qe))},"less"),pastInput:I(function(){var qe=this.matched.substr(0,this.matched.length-this.match.length);return(qe.length>20?"...":"")+qe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var qe=this.match;if(qe.length<20)qe+=this._input.substr(0,20-qe.length);return(qe.substr(0,20)+(qe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var qe=this.pastInput(),Ke=Array(qe.length+1).join("-");return qe+this.upcomingInput()+` -`+Ke+"^"},"showPosition"),test_match:I(function(qe,Ke){var Je,De,oe;if(this.options.backtrack_lexer){if(oe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)oe.yylloc.range=this.yylloc.range.slice(0)}if(De=qe[0].match(/(?:\r\n?|\n).*/g),De)this.yylineno+=De.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:De?De[De.length-1].length-De[De.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+qe[0].length},this.yytext+=qe[0],this.match+=qe[0],this.matches=qe,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(qe[0].length),this.matched+=qe[0],Je=this.performAction.call(this,this.yy,this,Ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(Je)return Je;else if(this._backtrack){for(var pe in oe)this[pe]=oe[pe];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var qe,Ke,Je,De;if(!this._more)this.yytext="",this.match="";var oe=this._currentRules();for(var pe=0;peKe[0].length)){if(Ke=Je,De=pe,this.options.backtrack_lexer)if(qe=this.test_match(Je,oe[pe]),qe!==!1)return qe;else if(this._backtrack){Ke=!1;continue}else return!1;else if(!this.options.flex)break}if(Ke){if(qe=this.test_match(Ke,oe[De]),qe!==!1)return qe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Ke=this.next();if(Ke)return Ke;else return this.lex()},"lex"),begin:I(function(Ke){this.conditionStack.push(Ke)},"begin"),popState:I(function(){var Ke=this.conditionStack.length-1;if(Ke>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Ke){if(Ke=this.conditionStack.length-1-Math.abs(Ke||0),Ke>=0)return this.conditionStack[Ke];else return"INITIAL"},"topState"),pushState:I(function(Ke){this.begin(Ke)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(Ke,Je,De,oe){var pe=oe;switch(De){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Ge}();ct.lexer=bt;function Pe(){this.yy={}}return I(Pe,"Parser"),Pe.prototype=ct,ct.Parser=Pe,new Pe}();Exe.parser=Exe;Whi=Exe,G9r=I((e)=>Ar()[e],"getRequiredConfig"),hT=new Set(["label","descr","techn","type"]),MB=I((e,r)=>{for(let[i,a]of Object.entries(r)){if(a===void 0)continue;if(typeof a==="object"){let[o,l]=Object.entries(a)[0];e[o]=hT.has(o)?{text:l}:l}else e[i]=a}},"assignAttributes"),z9r=I(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),NC=[],_7=[""],LC=[z9r()],Rae=[],jhi=I(function(){return V9r},"getC4Type"),Khi=I(function(e){V9r=ho(e,Ar())},"setC4Type"),Xhi=I(function(e,r,i,a,o,l,h,d,p){if(e===void 0||e===null||r===void 0||r===null||i===void 0||i===null||a===void 0||a===null)return;let m={},y=Rae.find((E)=>E.from===r&&E.to===i);if(y)m=y;else Rae.push(m);if(m.type=e,m.from=r,m.to=i,m.label={text:a},o===void 0||o===null)m.techn??={text:""};else if(typeof o==="object"){let[E,w]=Object.entries(o)[0];m[E]=hT.has(E)?{text:w}:w}else m.techn={text:o};if(l===void 0||l===null)m.descr??={text:""};else if(typeof l==="object"){let[E,w]=Object.entries(l)[0];m[E]=hT.has(E)?{text:w}:w}else m.descr={text:l};MB(m,{sprite:h,tags:d,link:p}),m.wrap=w7()},"addRel"),Qhi=I(function(e,r,i,a,o,l,h){if(r===null||i===null)return;let d={},p=NC.find((m)=>m.alias===r);if(p&&r===p.alias)d=p;else d.alias=r,NC.push(d);if(i===void 0||i===null)d.label={text:""};else d.label={text:i};if(a===void 0||a===null)d.descr??={text:""};else if(typeof a==="object"){let[m,y]=Object.entries(a)[0];d[m]=hT.has(m)?{text:y}:y}else d.descr={text:a};MB(d,{sprite:o,tags:l,link:h}),d.typeC4Shape={text:e},d.parentBoundary=Sv,d.wrap=w7()},"addPersonOrSystem"),Zhi=I(function(e,r,i,a,o,l,h,d){if(r===null||i===null)return;let p={},m=NC.find((y)=>y.alias===r);if(m&&r===m.alias)p=m;else p.alias=r,NC.push(p);if(i===void 0||i===null)p.label={text:""};else p.label={text:i};if(a===void 0||a===null)p.techn??={text:""};else if(typeof a==="object"){let[y,E]=Object.entries(a)[0];p[y]=hT.has(y)?{text:E}:E}else p.techn={text:a};if(o===void 0||o===null)p.descr??={text:""};else if(typeof o==="object"){let[y,E]=Object.entries(o)[0];p[y]=hT.has(y)?{text:E}:E}else p.descr={text:o};MB(p,{sprite:l,tags:h,link:d}),p.wrap=w7(),p.typeC4Shape={text:e},p.parentBoundary=Sv},"addContainer"),Jhi=I(function(e,r,i,a,o,l,h,d){if(r===null||i===null)return;let p={},m=NC.find((y)=>y.alias===r);if(m&&r===m.alias)p=m;else p.alias=r,NC.push(p);if(i===void 0||i===null)p.label={text:""};else p.label={text:i};if(a===void 0||a===null)p.techn??={text:""};else if(typeof a==="object"){let[y,E]=Object.entries(a)[0];p[y]=hT.has(y)?{text:E}:E}else p.techn={text:a};if(o===void 0||o===null)p.descr??={text:""};else if(typeof o==="object"){let[y,E]=Object.entries(o)[0];p[y]=hT.has(y)?{text:E}:E}else p.descr={text:o};MB(p,{sprite:l,tags:h,link:d}),p.wrap=w7(),p.typeC4Shape={text:e},p.parentBoundary=Sv},"addComponent"),edi=I(function(e,r,i,a,o){if(e===null||r===null)return;let l={},h=LC.find((d)=>d.alias===e);if(h&&e===h.alias)l=h;else l.alias=e,LC.push(l);if(r===void 0||r===null)l.label={text:""};else l.label={text:r};if(i===void 0||i===null)l.type={text:"system"};else if(typeof i==="object"){let[d,p]=Object.entries(i)[0];l[d]=hT.has(d)?{text:p}:p}else l.type={text:i};MB(l,{tags:a,link:o}),l.parentBoundary=Sv,l.wrap=w7(),OC=Sv,Sv=e,_7.push(OC)},"addPersonOrSystemBoundary"),tdi=I(function(e,r,i,a,o){if(e===null||r===null)return;let l={},h=LC.find((d)=>d.alias===e);if(h&&e===h.alias)l=h;else l.alias=e,LC.push(l);if(r===void 0||r===null)l.label={text:""};else l.label={text:r};if(i===void 0||i===null)l.type={text:"container"};else if(typeof i==="object"){let[d,p]=Object.entries(i)[0];l[d]=hT.has(d)?{text:p}:p}else l.type={text:i};MB(l,{tags:a,link:o}),l.parentBoundary=Sv,l.wrap=w7(),OC=Sv,Sv=e,_7.push(OC)},"addContainerBoundary"),rdi=I(function(e,r,i,a,o,l,h,d){if(r===null||i===null)return;let p={},m=LC.find((y)=>y.alias===r);if(m&&r===m.alias)p=m;else p.alias=r,LC.push(p);if(i===void 0||i===null)p.label={text:""};else p.label={text:i};if(a===void 0||a===null)p.type={text:"node"};else if(typeof a==="object"){let[y,E]=Object.entries(a)[0];p[y]=hT.has(y)?{text:E}:E}else p.type={text:a};if(o===void 0||o===null)p.descr??={text:""};else if(typeof o==="object"){let[y,E]=Object.entries(o)[0];p[y]=hT.has(y)?{text:E}:E}else p.descr={text:o};MB(p,{tags:h,link:d}),p.nodeType=e,p.parentBoundary=Sv,p.wrap=w7(),OC=Sv,Sv=r,_7.push(OC)},"addDeploymentNode"),ndi=I(function(){Sv=OC,_7.pop(),OC=_7.pop(),_7.push(OC)},"popBoundaryParseStack"),idi=I(function(e,r,i,a,o,l,h,d,p,m,y){let E=NC.find((w)=>w.alias===r);if(E===void 0){if(E=LC.find((w)=>w.alias===r),E===void 0)return}if(i!==void 0&&i!==null)if(typeof i==="object"){let[w,T]=Object.entries(i)[0];E[w]=T}else E.bgColor=i;if(a!==void 0&&a!==null)if(typeof a==="object"){let[w,T]=Object.entries(a)[0];E[w]=T}else E.fontColor=a;if(o!==void 0&&o!==null)if(typeof o==="object"){let[w,T]=Object.entries(o)[0];E[w]=T}else E.borderColor=o;if(l!==void 0&&l!==null)if(typeof l==="object"){let[w,T]=Object.entries(l)[0];E[w]=T}else E.shadowing=l;if(h!==void 0&&h!==null)if(typeof h==="object"){let[w,T]=Object.entries(h)[0];E[w]=T}else E.shape=h;if(d!==void 0&&d!==null)if(typeof d==="object"){let[w,T]=Object.entries(d)[0];E[w]=T}else E.sprite=d;if(p!==void 0&&p!==null)if(typeof p==="object"){let[w,T]=Object.entries(p)[0];E[w]=T}else E.techn=p;if(m!==void 0&&m!==null)if(typeof m==="object"){let[w,T]=Object.entries(m)[0];E[w]=T}else E.legendText=m;if(y!==void 0&&y!==null)if(typeof y==="object"){let[w,T]=Object.entries(y)[0];E[w]=T}else E.legendSprite=y},"updateElStyle"),adi=I(function(e,r,i,a,o,l,h){let d=Rae.find((p)=>p.from===r&&p.to===i);if(d===void 0)return;if(a!==void 0&&a!==null)if(typeof a==="object"){let[p,m]=Object.entries(a)[0];d[p]=m}else d.textColor=a;if(o!==void 0&&o!==null)if(typeof o==="object"){let[p,m]=Object.entries(o)[0];d[p]=m}else d.lineColor=o;if(l!==void 0&&l!==null)if(typeof l==="object"){let[p,m]=Object.entries(l)[0];d[p]=parseInt(m)}else d.offsetX=parseInt(l);if(h!==void 0&&h!==null)if(typeof h==="object"){let[p,m]=Object.entries(h)[0];d[p]=parseInt(m)}else d.offsetY=parseInt(h)},"updateRelStyle"),sdi=I(function(e,r,i){let a=wxe,o=Sxe;if(typeof r==="object"){let l=Object.values(r)[0];a=parseInt(l)}else a=parseInt(r);if(typeof i==="object"){let l=Object.values(i)[0];o=parseInt(l)}else o=parseInt(i);if(a>=1)wxe=a;if(o>=1)Sxe=o},"updateLayoutConfig"),odi=I(function(){return wxe},"getC4ShapeInRow"),ldi=I(function(){return Sxe},"getC4BoundaryInRow"),cdi=I(function(){return Sv},"getCurrentBoundaryParse"),udi=I(function(){return OC},"getParentBoundaryParse"),H9r=I(function(e){if(e===void 0||e===null)return NC;else return NC.filter((r)=>r.parentBoundary===e)},"getC4ShapeArray"),hdi=I(function(e){return NC.find((r)=>r.alias===e)??LC.find((r)=>r.alias===e)},"getC4Shape"),ddi=I(function(e){return Object.keys(H9r(e))},"getC4ShapeKeys"),q9r=I(function(e){if(e===void 0||e===null)return LC;else return LC.filter((r)=>r.parentBoundary===e)},"getBoundaries"),fdi=q9r,pdi=I(function(){return Rae},"getRels"),gdi=I(function(){return Vot},"getTitle"),mdi=I(function(e){Hot=e},"setWrap"),w7=I(function(){return Hot},"autoWrap"),bdi=I(function(){NC=[],LC=[z9r()],OC="",Sv="global",_7=[""],Rae=[],_7=[""],Vot="",Hot=!1,wxe=4,Sxe=2},"clear"),ydi={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},vdi={FILLED:0,OPEN:1},_di={LEFTOF:0,RIGHTOF:1,OVER:2},Edi=I(function(e){Vot=ho(e,Ar())},"setTitle"),Uot={addPersonOrSystem:Qhi,addPersonOrSystemBoundary:edi,addContainer:Zhi,addContainerBoundary:tdi,addComponent:Jhi,addDeploymentNode:rdi,popBoundaryParseStack:ndi,addRel:Xhi,updateElStyle:idi,updateRelStyle:adi,updateLayoutConfig:sdi,autoWrap:w7,setWrap:mdi,getC4ShapeArray:H9r,getC4Shape:hdi,getC4ShapeKeys:ddi,getBoundaries:q9r,getBoundarys:fdi,getCurrentBoundaryParse:cdi,getParentBoundaryParse:udi,getRels:pdi,getTitle:gdi,getC4Type:jhi,getC4ShapeInRow:odi,getC4BoundaryInRow:ldi,setAccTitle:Ys,getAccTitle:oo,getAccDescription:lo,setAccDescription:Js,getConfig:I(()=>G9r("c4"),"getConfig"),clear:bdi,LINETYPE:ydi,ARROWTYPE:vdi,PLACEMENT:_di,setTitle:Edi,setC4Type:Khi},Y9r=I(function(e,r){return LB(e,r)},"drawRect"),wdi=I((e,r,i,a)=>{let o=e.append("g"),l=0;for(let h of r){let d=h.textColor?h.textColor:"#444444",p=h.lineColor?h.lineColor:"#444444",m=h.offsetX?parseInt(String(h.offsetX)):0,y=h.offsetY?parseInt(String(h.offsetY)):0,E="";if(l===0){let x=o.append("line");if(x.attr("x1",h.startPoint.x),x.attr("y1",h.startPoint.y),x.attr("x2",h.endPoint.x),x.attr("y2",h.endPoint.y),x.attr("stroke-width","1"),x.attr("stroke",p),x.style("fill","none"),h.type!=="rel_b")x.attr("marker-end","url(#"+a+"-arrowhead)");if(h.type==="birel"||h.type==="rel_b")x.attr("marker-start","url(#"+a+"-arrowend)");l=-1}else{let x=o.append("path");if(x.attr("fill","none").attr("stroke-width","1").attr("stroke",p).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",h.startPoint.x).replaceAll("starty",h.startPoint.y).replaceAll("controlx",h.startPoint.x+(h.endPoint.x-h.startPoint.x)/2-(h.endPoint.x-h.startPoint.x)/4).replaceAll("controly",h.startPoint.y+(h.endPoint.y-h.startPoint.y)/2).replaceAll("stopx",h.endPoint.x).replaceAll("stopy",h.endPoint.y)),h.type!=="rel_b")x.attr("marker-end","url(#"+a+"-arrowhead)");if(h.type==="birel"||h.type==="rel_b")x.attr("marker-start","url(#"+a+"-arrowend)")}let w=h.label.width,T=i.messageFont();if(Cae(i)(h.label.text,o,Math.min(h.startPoint.x,h.endPoint.x)+Math.abs(h.endPoint.x-h.startPoint.x)/2+m,Math.min(h.startPoint.y,h.endPoint.y)+Math.abs(h.endPoint.y-h.startPoint.y)/2+y,w,h.label.height,{fill:d},T),h.techn&&h.techn.text!=="")T=i.messageFont(),Cae(i)("["+h.techn.text+"]",o,Math.min(h.startPoint.x,h.endPoint.x)+Math.abs(h.endPoint.x-h.startPoint.x)/2+m,Math.min(h.startPoint.y,h.endPoint.y)+Math.abs(h.endPoint.y-h.startPoint.y)/2+i.messageFontSize+5+y,Math.max(w,h.techn.width),h.techn.height,{fill:d,"font-style":"italic"},T)}},"drawRels"),Sdi=I(function(e,r,i){let a=e.append("g"),o=r.bgColor?r.bgColor:"none",l=r.borderColor?r.borderColor:"#444444",h=r.fontColor?r.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(r.nodeType)d={"stroke-width":1};let p={x:r.x,y:r.y,fill:o,stroke:l,width:r.width,height:r.height,rx:2.5,ry:2.5,attrs:d};Y9r(a,p);let m=i.boundaryFont();if(m.fontWeight="bold",m.fontSize=m.fontSize+2,m.fontColor=h,Cae(i)(r.label.text,a,r.x,r.y+r.label.Y,r.width,r.height,{fill:"#444444"},m),r.type&&r.type.text!=="")m=i.boundaryFont(),m.fontColor=h,Cae(i)(r.type.text,a,r.x,r.y+r.type.Y,r.width,r.height,{fill:"#444444"},m);if(r.descr&&r.descr.text!=="")m=i.boundaryFont(),m.fontSize=m.fontSize-2,m.fontColor=h,Cae(i)(r.descr.text,a,r.x,r.y+r.descr.Y,r.width,r.height,{fill:"#444444"},m)},"drawBoundary"),Tdi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),xdi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Cdi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),kdi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),Adi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),Rdi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Idi=I(function(e,r){let a=e.append("defs").append("marker").attr("id",r+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Cae=function(){function e(o,l,h,d,p,m,y){let E=l.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("text-anchor","middle").text(o);a(E,y)}I(e,"byText");function r(o,l,h,d,p,m,y,E){let{fontSize:w,fontFamily:T,fontWeight:x}=E,k=o.split(ai.lineBreakRegex);for(let A=0;A{if(r==="sandbox"){let a=xn("#i"+e).node()?.contentDocument;if(!a)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:xn(a.body),doc:a}}return{root:xn("body"),doc:document}},"getDiagramRoot"),Ndi=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),Ldi=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),Mdi={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},$ot=I((e)=>e?Mdi[e.toLowerCase()]:void 0,"keywordShape"),Ddi=I((e)=>{let r=$ot(e.shape)??$ot(e.sprite);if(r)return r;if(e.tags)for(let a of e.tags.split(",")){let o=$ot(a.trim());if(o)return o}let i=e.typeC4Shape.text;if(i==="person"||i==="external_person")return"person";if(Ldi.has(i))return"cylinder";if(Ndi.has(i))return"h-cyl";return"rounded"},"resolveNodeShape"),Pdi={person:"Person",system:"Software System",container:"Container",component:"Component"},Bdi=I((e)=>{let r=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return Pdi[r]??r.replace(/_/g," ")},"stereotypeLabel"),Fdi=I((e)=>e.startsWith("external_"),"isExternal"),$di=I((e)=>{let r=Bdi(e.typeC4Shape.text);return e.techn?.text?`[${r}: ${e.techn.text}]`:`[${r}]`},"stereotypeText"),W9r=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap((e)=>[e,`external_${e}`]),Udi=new Set(W9r),B9r=I((e)=>Udi.has(e),"isC4ElementType"),Gdi=I((e,r)=>{let i=e.typeC4Shape.text,a=e.bgColor??(B9r(i)&&r[`${i}_bg_color`]),o=e.borderColor??(B9r(i)&&r[`${i}_border_color`]),l=[];if(a)l.push(`fill:${a}`);if(o)l.push(`stroke:${o}`);return l.push(`color:${e.fontColor??"#FFFFFF"}`),l},"elementCssStyles"),F9r=I((e,r,i,a,o)=>{let l=e.typeC4Shape.text,h=["c4-shape",`c4-${l}`];if(Fdi(l))h.push("c4-external");let d=Ddi(e),p=Gdi(e,r);if(d==="rounded"||d==="fr-rect")p.push("rx:12px","ry:12px");return{id:e.alias,label:e.label.text,stereotype:$di(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:d,cssClasses:h.join(" "),cssStyles:p,padding:i,look:a,useHtmlLabels:!1,width:o}},"buildC4Node");Exe.yy=Uot;po={},K9r=class{static{I(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,zot(e.db.getConfig())}setData(e,r,i,a){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=a}updateVal(e,r,i,a){if(e[r]===void 0)e[r]=i;else e[r]=a(i,e[r])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.stopx,i=this.data.widthLimit,a=this.nextData.startx===this.nextData.stopx?r+e.margin:r+e.margin*2,o=a+e.width,l=this.nextData.starty+e.margin*2,h=l+e.height;if(a>=i||o>=i||this.nextData.cnt>j9r)a=this.nextData.startx+e.margin+po.nextLinePaddingX,l=this.nextData.stopy+e.margin*2,this.nextData.stopx=o=a+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=h=l+e.height,this.nextData.cnt=1;e.x=a,e.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",h,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",h,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},zot(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},zot=I(function(e){if(Sd(po,e),e?.fontFamily)po.personFontFamily=po.systemFontFamily=po.messageFontFamily=e.fontFamily;if(e?.fontSize)po.personFontSize=po.systemFontSize=po.messageFontSize=e.fontSize;if(e?.fontWeight)po.personFontWeight=po.systemFontWeight=po.messageFontWeight=e.fontWeight},"setConf"),_xe=I((e)=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),zdi=I((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");I(E7,"calcC4ShapeTextWH");X9r=I(function(e,r,i){let a=i.data.startx,o=i.data.starty;r.x=a,r.y=o,r.width=i.data.stopx-a,r.height=i.data.stopy-o,r.intersect=(p)=>ca.rect({x:r.x+r.width/2,y:r.y+r.height/2,width:r.width,height:r.height},p),r.label.y=po.c4ShapeMargin-35;let l=r.wrap&&po.wrap,h=_xe(po);h.fontSize=h.fontSize+2,h.fontWeight="bold";let d=ey(r.label.text,h);E7("label",r,l,h,d),sI.drawBoundary(e,r,po)},"drawBoundary"),Q9r=I(async function(e,r,i,a){let o=Ar(),l=o.look??"classic",h={config:o},d=r.attr("id")??"",p=a.map((y)=>i[Number(y)]),m=I((y)=>{let E=y.shape?Hne[y.shape]:void 0;if(!E)throw Error(`C4: no shape handler for "${y.shape}"`);return E},"shapeHandlerFor");await Promise.all(p.map(async(y)=>{let E=F9r(y,po,po.c4ShapePadding,l,po.width);E.domId=`${d}-${E.id}`;let w=await m(E)(r,E,h);y.width=E.width??po.width,y.height=E.height??po.height,y.margin=po.c4ShapeMargin,w.remove()}));for(let y of p)e.insert(y);await Promise.all(p.map(async(y)=>{let E=F9r(y,po,po.c4ShapePadding,l,po.width);E.domId=`${d}-${E.id}`,E.x=y.x+y.width/2,E.y=y.y+y.height/2;let w=r.append("g").attr("transform",`translate(${y.x+y.width/2}, ${y.y+y.height/2})`);await m(E)(w,E,h),y.intersect=E.intersect})),e.bumpLastMargin(po.c4ShapeMargin)},"drawC4ShapeArray"),Vdi=class{static{I(this,"Point")}constructor(e,r){this.x=e,this.y=r}},$9r=I(function(e,r){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:i,y:a}=e.intersect(r);return new Vdi(i,a)},"getIntersectPoint"),Hdi=I(function(e,r){let i={x:0,y:0};i.x=r.x+r.width/2,i.y=r.y+r.height/2;let a=$9r(e,i);i.x=e.x+e.width/2,i.y=e.y+e.height/2;let o=$9r(r,i);return{startPoint:a,endPoint:o}},"getIntersectPoints"),qdi=I(function(e,r,i,a,o){let l=a.db.getC4Type(),h=0;for(let d of r){h=h+1;let p=d.wrap&&po.wrap,m=zdi(po);if(l==="C4Dynamic")d.label.text=h+": "+d.label.text;let y=ey(d.label.text,m);if(E7("label",d,p,m,y),d.techn&&d.techn.text!=="")y=ey(d.techn.text,m),E7("techn",d,p,m,y);if(d.descr&&d.descr.text!=="")y=ey(d.descr.text,m),E7("descr",d,p,m,y);let E=i(d.from),w=i(d.to);if(!E||!w)throw Error(`C4 rel "${d.from}" -> "${d.to}" references an unknown shape or boundary`);let T=Hdi(E,w);if(!T.startPoint||!T.endPoint)throw Error(`Could not calculate intersection points for rel "${d.from}" -> "${d.to}"`);d.startPoint=T.startPoint,d.endPoint=T.endPoint}sI.drawRels(e,r,po,o)},"drawRels");I(qot,"drawInsideBoundary");Ydi=I(async function(e,r,i,a){po=G9r("c4");let o=Ar().securityLevel,{root:l}=Odi(r,o),h=a.db;h.setWrap(po.wrap),j9r=h.getC4ShapeInRow(),Got=h.getC4BoundaryInRow(),Ze.debug(`C:${JSON.stringify(po,null,2)}`);let d=l.select(`[id="${r}"]`);sI.insertComputerIcon(d,r),sI.insertDatabaseIcon(d,r),sI.insertClockIcon(d,r);let p=new K9r(a);p.setData(po.diagramMarginX,po.diagramMarginX,po.diagramMarginY,po.diagramMarginY),p.data.widthLimit=screen.availWidth,kae=po.diagramMarginX,Aae=po.diagramMarginY;let m=h.getTitle(),y=h.getBoundaries("");await qot(d,"",p,y,a),sI.insertArrowHead(d,r),sI.insertArrowEnd(d,r),sI.insertArrowCrossHead(d,r),sI.insertArrowFilledHead(d,r),qdi(d,h.getRels(),h.getC4Shape,a,r),p.data.stopx=kae,p.data.stopy=Aae;let E=p.data,{startx:w,starty:T}=E,k=Aae-T+2*po.diagramMarginY,A=kae-w,R=A+2*po.diagramMarginX;if(m)d.append("text").text(m).attr("x",A/2-4*po.diagramMarginX).attr("y",T+po.diagramMarginY);Bl(d,k,R,po.useMaxWidth);let N=m?60:0;d.attr("viewBox",w-po.diagramMarginX+" -"+(po.diagramMarginY+N)+" "+R+" "+(k+N)),Ze.debug("models:",E)},"draw"),U9r={drawPersonOrSystemArray:Q9r,drawBoundary:X9r,setConf:zot,draw:Ydi},Wdi=I(()=>{let e=Ar().c4??{},r=new CSSStyleSheet;for(let i of W9r){let a=r.cssRules[r.insertRule(`.c4-shape.c4-${i} .label {}`,r.cssRules.length)],o=e[`${i}FontFamily`],l=e[`${i}FontSize`],h=e[`${i}FontWeight`];if(o)a.style.setProperty("font-family",o);if(l)a.style.setProperty("font-size",typeof l==="number"?`${l}px`:l);if(h)a.style.setProperty("font-weight",String(h))}return[...r.cssRules].filter((i)=>i.style.length>0).map((i)=>` ${i.cssText}`).join(` -`)},"elementFontStyles"),jdi=I((e)=>`.person { +`+Ke+"^"},"showPosition"),test_match:I(function(qe,Ke){var Je,De,le;if(this.options.backtrack_lexer){if(le={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)le.yylloc.range=this.yylloc.range.slice(0)}if(De=qe[0].match(/(?:\r\n?|\n).*/g),De)this.yylineno+=De.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:De?De[De.length-1].length-De[De.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+qe[0].length},this.yytext+=qe[0],this.match+=qe[0],this.matches=qe,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(qe[0].length),this.matched+=qe[0],Je=this.performAction.call(this,this.yy,this,Ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(Je)return Je;else if(this._backtrack){for(var pe in le)this[pe]=le[pe];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var qe,Ke,Je,De;if(!this._more)this.yytext="",this.match="";var le=this._currentRules();for(var pe=0;peKe[0].length)){if(Ke=Je,De=pe,this.options.backtrack_lexer)if(qe=this.test_match(Je,le[pe]),qe!==!1)return qe;else if(this._backtrack){Ke=!1;continue}else return!1;else if(!this.options.flex)break}if(Ke){if(qe=this.test_match(Ke,le[De]),qe!==!1)return qe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Ke=this.next();if(Ke)return Ke;else return this.lex()},"lex"),begin:I(function(Ke){this.conditionStack.push(Ke)},"begin"),popState:I(function(){var Ke=this.conditionStack.length-1;if(Ke>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Ke){if(Ke=this.conditionStack.length-1-Math.abs(Ke||0),Ke>=0)return this.conditionStack[Ke];else return"INITIAL"},"topState"),pushState:I(function(Ke){this.begin(Ke)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(Ke,Je,De,le){var pe=le;switch(De){case 0:return 6;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 22;case 5:return 23;case 6:return this.begin("acc_title"),24;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),26;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:break;case 14:c;break;case 15:return 12;case 16:break;case 17:return 11;case 18:return 15;case 19:return 16;case 20:return 17;case 21:return 18;case 22:return this.begin("person_ext"),45;break;case 23:return this.begin("person"),44;break;case 24:return this.begin("system_ext_queue"),51;break;case 25:return this.begin("system_ext_db"),50;break;case 26:return this.begin("system_ext"),49;break;case 27:return this.begin("system_queue"),48;break;case 28:return this.begin("system_db"),47;break;case 29:return this.begin("system"),46;break;case 30:return this.begin("boundary"),37;break;case 31:return this.begin("enterprise_boundary"),34;break;case 32:return this.begin("system_boundary"),36;break;case 33:return this.begin("container_ext_queue"),57;break;case 34:return this.begin("container_ext_db"),56;break;case 35:return this.begin("container_ext"),55;break;case 36:return this.begin("container_queue"),54;break;case 37:return this.begin("container_db"),53;break;case 38:return this.begin("container"),52;break;case 39:return this.begin("container_boundary"),38;break;case 40:return this.begin("component_ext_queue"),63;break;case 41:return this.begin("component_ext_db"),62;break;case 42:return this.begin("component_ext"),61;break;case 43:return this.begin("component_queue"),60;break;case 44:return this.begin("component_db"),59;break;case 45:return this.begin("component"),58;break;case 46:return this.begin("node"),39;break;case 47:return this.begin("node"),39;break;case 48:return this.begin("node_l"),40;break;case 49:return this.begin("node_r"),41;break;case 50:return this.begin("rel"),64;break;case 51:return this.begin("birel"),65;break;case 52:return this.begin("rel_u"),66;break;case 53:return this.begin("rel_u"),66;break;case 54:return this.begin("rel_d"),67;break;case 55:return this.begin("rel_d"),67;break;case 56:return this.begin("rel_l"),68;break;case 57:return this.begin("rel_l"),68;break;case 58:return this.begin("rel_r"),69;break;case 59:return this.begin("rel_r"),69;break;case 60:return this.begin("rel_b"),70;break;case 61:return this.begin("rel_index"),71;break;case 62:return this.begin("update_el_style"),72;break;case 63:return this.begin("update_rel_style"),73;break;case 64:return this.begin("update_layout_config"),74;break;case 65:return"EOF_IN_STRUCT";case 66:return this.begin("attribute"),"ATTRIBUTE_EMPTY";break;case 67:this.begin("attribute");break;case 68:this.popState(),this.popState();break;case 69:return 80;case 70:break;case 71:return 80;case 72:this.begin("string");break;case 73:this.popState();break;case 74:return"STR";case 75:this.begin("string_kv");break;case 76:return this.begin("string_kv_key"),"STR_KEY";break;case 77:this.popState(),this.begin("string_kv_value");break;case 78:return"STR_VALUE";case 79:this.popState(),this.popState();break;case 80:return"STR";case 81:return"LBRACE";case 82:return"RBRACE";case 83:return"SPACE";case 84:return"EOL";case 85:return 14}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\b)/,/^(?:Container\b)/,/^(?:Container_Boundary\b)/,/^(?:ComponentQueue_Ext\b)/,/^(?:ComponentDb_Ext\b)/,/^(?:Component_Ext\b)/,/^(?:ComponentQueue\b)/,/^(?:ComponentDb\b)/,/^(?:Component\b)/,/^(?:Deployment_Node\b)/,/^(?:Node\b)/,/^(?:Node_L\b)/,/^(?:Node_R\b)/,/^(?:Rel\b)/,/^(?:BiRel\b)/,/^(?:Rel_Up\b)/,/^(?:Rel_U\b)/,/^(?:Rel_Down\b)/,/^(?:Rel_D\b)/,/^(?:Rel_Left\b)/,/^(?:Rel_L\b)/,/^(?:Rel_Right\b)/,/^(?:Rel_R\b)/,/^(?:Rel_Back\b)/,/^(?:RelIndex\b)/,/^(?:UpdateElementStyle\b)/,/^(?:UpdateRelStyle\b)/,/^(?:UpdateLayoutConfig\b)/,/^(?:$)/,/^(?:[(][ ]*[,])/,/^(?:[(])/,/^(?:[)])/,/^(?:,,)/,/^(?:,)/,/^(?:[ ]*["]["])/,/^(?:[ ]*["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:[ ]*[\$])/,/^(?:[^=]*)/,/^(?:[=][ ]*["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:[^,]+)/,/^(?:\{)/,/^(?:\})/,/^(?:[\s]+)/,/^(?:[\n\r]+)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},string_kv_value:{rules:[78,79],inclusive:!1},string_kv_key:{rules:[77],inclusive:!1},string_kv:{rules:[76],inclusive:!1},string:{rules:[73,74],inclusive:!1},attribute:{rules:[68,69,70,71,72,75,80],inclusive:!1},update_layout_config:{rules:[65,66,67,68],inclusive:!1},update_rel_style:{rules:[65,66,67,68],inclusive:!1},update_el_style:{rules:[65,66,67,68],inclusive:!1},rel_b:{rules:[65,66,67,68],inclusive:!1},rel_r:{rules:[65,66,67,68],inclusive:!1},rel_l:{rules:[65,66,67,68],inclusive:!1},rel_d:{rules:[65,66,67,68],inclusive:!1},rel_u:{rules:[65,66,67,68],inclusive:!1},rel_bi:{rules:[],inclusive:!1},rel:{rules:[65,66,67,68],inclusive:!1},node_r:{rules:[65,66,67,68],inclusive:!1},node_l:{rules:[65,66,67,68],inclusive:!1},node:{rules:[65,66,67,68],inclusive:!1},index:{rules:[],inclusive:!1},rel_index:{rules:[65,66,67,68],inclusive:!1},component_ext_queue:{rules:[65,66,67,68],inclusive:!1},component_ext_db:{rules:[65,66,67,68],inclusive:!1},component_ext:{rules:[65,66,67,68],inclusive:!1},component_queue:{rules:[65,66,67,68],inclusive:!1},component_db:{rules:[65,66,67,68],inclusive:!1},component:{rules:[65,66,67,68],inclusive:!1},container_boundary:{rules:[65,66,67,68],inclusive:!1},container_ext_queue:{rules:[65,66,67,68],inclusive:!1},container_ext_db:{rules:[65,66,67,68],inclusive:!1},container_ext:{rules:[65,66,67,68],inclusive:!1},container_queue:{rules:[65,66,67,68],inclusive:!1},container_db:{rules:[65,66,67,68],inclusive:!1},container:{rules:[65,66,67,68],inclusive:!1},birel:{rules:[65,66,67,68],inclusive:!1},system_boundary:{rules:[65,66,67,68],inclusive:!1},enterprise_boundary:{rules:[65,66,67,68],inclusive:!1},boundary:{rules:[65,66,67,68],inclusive:!1},system_ext_queue:{rules:[65,66,67,68],inclusive:!1},system_ext_db:{rules:[65,66,67,68],inclusive:!1},system_ext:{rules:[65,66,67,68],inclusive:!1},system_queue:{rules:[65,66,67,68],inclusive:!1},system_db:{rules:[65,66,67,68],inclusive:!1},system:{rules:[65,66,67,68],inclusive:!1},person_ext:{rules:[65,66,67,68],inclusive:!1},person:{rules:[65,66,67,68],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,81,82,83,84,85],inclusive:!0}}};return Ue}();ct.lexer=bt;function Pe(){this.yy={}}return I(Pe,"Parser"),Pe.prototype=ct,ct.Parser=Pe,new Pe}();Txe.parser=Txe;Jhi=Txe,Y9r=I((e)=>Ar()[e],"getRequiredConfig"),dT=new Set(["label","descr","techn","type"]),PB=I((e,r)=>{for(let[i,a]of Object.entries(r)){if(a===void 0)continue;if(typeof a==="object"){let[o,l]=Object.entries(a)[0];e[o]=dT.has(o)?{text:l}:l}else e[i]=a}},"assignAttributes"),W9r=I(()=>({alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}),"createGlobalBoundary"),MC=[],w7=[""],DC=[W9r()],Nae=[],edi=I(function(){return j9r},"getC4Type"),tdi=I(function(e){j9r=ho(e,Ar())},"setC4Type"),rdi=I(function(e,r,i,a,o,l,h,d,p){if(e===void 0||e===null||r===void 0||r===null||i===void 0||i===null||a===void 0||a===null)return;let m={},y=Nae.find((v)=>v.from===r&&v.to===i);if(y)m=y;else Nae.push(m);if(m.type=e,m.from=r,m.to=i,m.label={text:a},o===void 0||o===null)m.techn??={text:""};else if(typeof o==="object"){let[v,w]=Object.entries(o)[0];m[v]=dT.has(v)?{text:w}:w}else m.techn={text:o};if(l===void 0||l===null)m.descr??={text:""};else if(typeof l==="object"){let[v,w]=Object.entries(l)[0];m[v]=dT.has(v)?{text:w}:w}else m.descr={text:l};PB(m,{sprite:h,tags:d,link:p}),m.wrap=T7()},"addRel"),ndi=I(function(e,r,i,a,o,l,h){if(r===null||i===null)return;let d={},p=MC.find((m)=>m.alias===r);if(p&&r===p.alias)d=p;else d.alias=r,MC.push(d);if(i===void 0||i===null)d.label={text:""};else d.label={text:i};if(a===void 0||a===null)d.descr??={text:""};else if(typeof a==="object"){let[m,y]=Object.entries(a)[0];d[m]=dT.has(m)?{text:y}:y}else d.descr={text:a};PB(d,{sprite:o,tags:l,link:h}),d.typeC4Shape={text:e},d.parentBoundary=Sv,d.wrap=T7()},"addPersonOrSystem"),idi=I(function(e,r,i,a,o,l,h,d){if(r===null||i===null)return;let p={},m=MC.find((y)=>y.alias===r);if(m&&r===m.alias)p=m;else p.alias=r,MC.push(p);if(i===void 0||i===null)p.label={text:""};else p.label={text:i};if(a===void 0||a===null)p.techn??={text:""};else if(typeof a==="object"){let[y,v]=Object.entries(a)[0];p[y]=dT.has(y)?{text:v}:v}else p.techn={text:a};if(o===void 0||o===null)p.descr??={text:""};else if(typeof o==="object"){let[y,v]=Object.entries(o)[0];p[y]=dT.has(y)?{text:v}:v}else p.descr={text:o};PB(p,{sprite:l,tags:h,link:d}),p.wrap=T7(),p.typeC4Shape={text:e},p.parentBoundary=Sv},"addContainer"),adi=I(function(e,r,i,a,o,l,h,d){if(r===null||i===null)return;let p={},m=MC.find((y)=>y.alias===r);if(m&&r===m.alias)p=m;else p.alias=r,MC.push(p);if(i===void 0||i===null)p.label={text:""};else p.label={text:i};if(a===void 0||a===null)p.techn??={text:""};else if(typeof a==="object"){let[y,v]=Object.entries(a)[0];p[y]=dT.has(y)?{text:v}:v}else p.techn={text:a};if(o===void 0||o===null)p.descr??={text:""};else if(typeof o==="object"){let[y,v]=Object.entries(o)[0];p[y]=dT.has(y)?{text:v}:v}else p.descr={text:o};PB(p,{sprite:l,tags:h,link:d}),p.wrap=T7(),p.typeC4Shape={text:e},p.parentBoundary=Sv},"addComponent"),sdi=I(function(e,r,i,a,o){if(e===null||r===null)return;let l={},h=DC.find((d)=>d.alias===e);if(h&&e===h.alias)l=h;else l.alias=e,DC.push(l);if(r===void 0||r===null)l.label={text:""};else l.label={text:r};if(i===void 0||i===null)l.type={text:"system"};else if(typeof i==="object"){let[d,p]=Object.entries(i)[0];l[d]=dT.has(d)?{text:p}:p}else l.type={text:i};PB(l,{tags:a,link:o}),l.parentBoundary=Sv,l.wrap=T7(),LC=Sv,Sv=e,w7.push(LC)},"addPersonOrSystemBoundary"),odi=I(function(e,r,i,a,o){if(e===null||r===null)return;let l={},h=DC.find((d)=>d.alias===e);if(h&&e===h.alias)l=h;else l.alias=e,DC.push(l);if(r===void 0||r===null)l.label={text:""};else l.label={text:r};if(i===void 0||i===null)l.type={text:"container"};else if(typeof i==="object"){let[d,p]=Object.entries(i)[0];l[d]=dT.has(d)?{text:p}:p}else l.type={text:i};PB(l,{tags:a,link:o}),l.parentBoundary=Sv,l.wrap=T7(),LC=Sv,Sv=e,w7.push(LC)},"addContainerBoundary"),ldi=I(function(e,r,i,a,o,l,h,d){if(r===null||i===null)return;let p={},m=DC.find((y)=>y.alias===r);if(m&&r===m.alias)p=m;else p.alias=r,DC.push(p);if(i===void 0||i===null)p.label={text:""};else p.label={text:i};if(a===void 0||a===null)p.type={text:"node"};else if(typeof a==="object"){let[y,v]=Object.entries(a)[0];p[y]=dT.has(y)?{text:v}:v}else p.type={text:a};if(o===void 0||o===null)p.descr??={text:""};else if(typeof o==="object"){let[y,v]=Object.entries(o)[0];p[y]=dT.has(y)?{text:v}:v}else p.descr={text:o};PB(p,{tags:h,link:d}),p.nodeType=e,p.parentBoundary=Sv,p.wrap=T7(),LC=Sv,Sv=r,w7.push(LC)},"addDeploymentNode"),cdi=I(function(){Sv=LC,w7.pop(),LC=w7.pop(),w7.push(LC)},"popBoundaryParseStack"),udi=I(function(e,r,i,a,o,l,h,d,p,m,y){let v=MC.find((w)=>w.alias===r);if(v===void 0){if(v=DC.find((w)=>w.alias===r),v===void 0)return}if(i!==void 0&&i!==null)if(typeof i==="object"){let[w,T]=Object.entries(i)[0];v[w]=T}else v.bgColor=i;if(a!==void 0&&a!==null)if(typeof a==="object"){let[w,T]=Object.entries(a)[0];v[w]=T}else v.fontColor=a;if(o!==void 0&&o!==null)if(typeof o==="object"){let[w,T]=Object.entries(o)[0];v[w]=T}else v.borderColor=o;if(l!==void 0&&l!==null)if(typeof l==="object"){let[w,T]=Object.entries(l)[0];v[w]=T}else v.shadowing=l;if(h!==void 0&&h!==null)if(typeof h==="object"){let[w,T]=Object.entries(h)[0];v[w]=T}else v.shape=h;if(d!==void 0&&d!==null)if(typeof d==="object"){let[w,T]=Object.entries(d)[0];v[w]=T}else v.sprite=d;if(p!==void 0&&p!==null)if(typeof p==="object"){let[w,T]=Object.entries(p)[0];v[w]=T}else v.techn=p;if(m!==void 0&&m!==null)if(typeof m==="object"){let[w,T]=Object.entries(m)[0];v[w]=T}else v.legendText=m;if(y!==void 0&&y!==null)if(typeof y==="object"){let[w,T]=Object.entries(y)[0];v[w]=T}else v.legendSprite=y},"updateElStyle"),hdi=I(function(e,r,i,a,o,l,h){let d=Nae.find((p)=>p.from===r&&p.to===i);if(d===void 0)return;if(a!==void 0&&a!==null)if(typeof a==="object"){let[p,m]=Object.entries(a)[0];d[p]=m}else d.textColor=a;if(o!==void 0&&o!==null)if(typeof o==="object"){let[p,m]=Object.entries(o)[0];d[p]=m}else d.lineColor=o;if(l!==void 0&&l!==null)if(typeof l==="object"){let[p,m]=Object.entries(l)[0];d[p]=parseInt(m)}else d.offsetX=parseInt(l);if(h!==void 0&&h!==null)if(typeof h==="object"){let[p,m]=Object.entries(h)[0];d[p]=parseInt(m)}else d.offsetY=parseInt(h)},"updateRelStyle"),ddi=I(function(e,r,i){let a=xxe,o=Cxe;if(typeof r==="object"){let l=Object.values(r)[0];a=parseInt(l)}else a=parseInt(r);if(typeof i==="object"){let l=Object.values(i)[0];o=parseInt(l)}else o=parseInt(i);if(a>=1)xxe=a;if(o>=1)Cxe=o},"updateLayoutConfig"),fdi=I(function(){return xxe},"getC4ShapeInRow"),pdi=I(function(){return Cxe},"getC4BoundaryInRow"),gdi=I(function(){return Sv},"getCurrentBoundaryParse"),mdi=I(function(){return LC},"getParentBoundaryParse"),K9r=I(function(e){if(e===void 0||e===null)return MC;else return MC.filter((r)=>r.parentBoundary===e)},"getC4ShapeArray"),bdi=I(function(e){return MC.find((r)=>r.alias===e)??DC.find((r)=>r.alias===e)},"getC4Shape"),ydi=I(function(e){return Object.keys(K9r(e))},"getC4ShapeKeys"),X9r=I(function(e){if(e===void 0||e===null)return DC;else return DC.filter((r)=>r.parentBoundary===e)},"getBoundaries"),vdi=X9r,_di=I(function(){return Nae},"getRels"),Edi=I(function(){return Yot},"getTitle"),wdi=I(function(e){Wot=e},"setWrap"),T7=I(function(){return Wot},"autoWrap"),Sdi=I(function(){MC=[],DC=[W9r()],LC="",Sv="global",w7=[""],Nae=[],w7=[""],Yot="",Wot=!1,xxe=4,Cxe=2},"clear"),Tdi={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25},xdi={FILLED:0,OPEN:1},Cdi={LEFTOF:0,RIGHTOF:1,OVER:2},kdi=I(function(e){Yot=ho(e,Ar())},"setTitle"),Vot={addPersonOrSystem:ndi,addPersonOrSystemBoundary:sdi,addContainer:idi,addContainerBoundary:odi,addComponent:adi,addDeploymentNode:ldi,popBoundaryParseStack:cdi,addRel:rdi,updateElStyle:udi,updateRelStyle:hdi,updateLayoutConfig:ddi,autoWrap:T7,setWrap:wdi,getC4ShapeArray:K9r,getC4Shape:bdi,getC4ShapeKeys:ydi,getBoundaries:X9r,getBoundarys:vdi,getCurrentBoundaryParse:gdi,getParentBoundaryParse:mdi,getRels:_di,getTitle:Edi,getC4Type:edi,getC4ShapeInRow:fdi,getC4BoundaryInRow:pdi,setAccTitle:Ys,getAccTitle:oo,getAccDescription:lo,setAccDescription:Js,getConfig:I(()=>Y9r("c4"),"getConfig"),clear:Sdi,LINETYPE:Tdi,ARROWTYPE:xdi,PLACEMENT:Cdi,setTitle:kdi,setC4Type:tdi},Q9r=I(function(e,r){return DB(e,r)},"drawRect"),Adi=I((e,r,i,a)=>{let o=e.append("g"),l=0;for(let h of r){let d=h.textColor?h.textColor:"#444444",p=h.lineColor?h.lineColor:"#444444",m=h.offsetX?parseInt(String(h.offsetX)):0,y=h.offsetY?parseInt(String(h.offsetY)):0,v="";if(l===0){let x=o.append("line");if(x.attr("x1",h.startPoint.x),x.attr("y1",h.startPoint.y),x.attr("x2",h.endPoint.x),x.attr("y2",h.endPoint.y),x.attr("stroke-width","1"),x.attr("stroke",p),x.style("fill","none"),h.type!=="rel_b")x.attr("marker-end","url(#"+a+"-arrowhead)");if(h.type==="birel"||h.type==="rel_b")x.attr("marker-start","url(#"+a+"-arrowend)");l=-1}else{let x=o.append("path");if(x.attr("fill","none").attr("stroke-width","1").attr("stroke",p).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",h.startPoint.x).replaceAll("starty",h.startPoint.y).replaceAll("controlx",h.startPoint.x+(h.endPoint.x-h.startPoint.x)/2-(h.endPoint.x-h.startPoint.x)/4).replaceAll("controly",h.startPoint.y+(h.endPoint.y-h.startPoint.y)/2).replaceAll("stopx",h.endPoint.x).replaceAll("stopy",h.endPoint.y)),h.type!=="rel_b")x.attr("marker-end","url(#"+a+"-arrowhead)");if(h.type==="birel"||h.type==="rel_b")x.attr("marker-start","url(#"+a+"-arrowend)")}let w=h.label.width,T=i.messageFont();if(Rae(i)(h.label.text,o,Math.min(h.startPoint.x,h.endPoint.x)+Math.abs(h.endPoint.x-h.startPoint.x)/2+m,Math.min(h.startPoint.y,h.endPoint.y)+Math.abs(h.endPoint.y-h.startPoint.y)/2+y,w,h.label.height,{fill:d},T),h.techn&&h.techn.text!=="")T=i.messageFont(),Rae(i)("["+h.techn.text+"]",o,Math.min(h.startPoint.x,h.endPoint.x)+Math.abs(h.endPoint.x-h.startPoint.x)/2+m,Math.min(h.startPoint.y,h.endPoint.y)+Math.abs(h.endPoint.y-h.startPoint.y)/2+i.messageFontSize+5+y,Math.max(w,h.techn.width),h.techn.height,{fill:d,"font-style":"italic"},T)}},"drawRels"),Rdi=I(function(e,r,i){let a=e.append("g"),o=r.bgColor?r.bgColor:"none",l=r.borderColor?r.borderColor:"#444444",h=r.fontColor?r.fontColor:"black",d={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};if(r.nodeType)d={"stroke-width":1};let p={x:r.x,y:r.y,fill:o,stroke:l,width:r.width,height:r.height,rx:2.5,ry:2.5,attrs:d};Q9r(a,p);let m=i.boundaryFont();if(m.fontWeight="bold",m.fontSize=m.fontSize+2,m.fontColor=h,Rae(i)(r.label.text,a,r.x,r.y+r.label.Y,r.width,r.height,{fill:"#444444"},m),r.type&&r.type.text!=="")m=i.boundaryFont(),m.fontColor=h,Rae(i)(r.type.text,a,r.x,r.y+r.type.Y,r.width,r.height,{fill:"#444444"},m);if(r.descr&&r.descr.text!=="")m=i.boundaryFont(),m.fontSize=m.fontSize-2,m.fontColor=h,Rae(i)(r.descr.text,a,r.x,r.y+r.descr.Y,r.width,r.height,{fill:"#444444"},m)},"drawBoundary"),Idi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),Odi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),Ndi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),Ldi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z")},"insertArrowHead"),Mdi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-arrowend").attr("refX",1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z")},"insertArrowEnd"),Ddi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-filled-head").attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),Pdi=I(function(e,r){let a=e.append("defs").append("marker").attr("id",r+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);a.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),a.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},"insertArrowCrossHead"),Rae=function(){function e(o,l,h,d,p,m,y){let v=l.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("text-anchor","middle").text(o);a(v,y)}I(e,"byText");function r(o,l,h,d,p,m,y,v){let{fontSize:w,fontFamily:T,fontWeight:x}=v,k=o.split(ai.lineBreakRegex);for(let A=0;A{if(r==="sandbox"){let a=xn("#i"+e).node()?.contentDocument;if(!a)throw Error(`Sandbox iframe #i${e} is missing its content document`);return{root:xn(a.body),doc:a}}return{root:xn("body"),doc:document}},"getDiagramRoot"),Fdi=new Set(["system_queue","external_system_queue","container_queue","external_container_queue","component_queue","external_component_queue"]),$di=new Set(["system_db","external_system_db","container_db","external_container_db","component_db","external_component_db"]),Udi={person:"person",box:"rounded",rounded:"rounded",cylinder:"cylinder",database:"cylinder",db:"cylinder",queue:"h-cyl",pipe:"h-cyl",component:"fr-rect"},zot=I((e)=>e?Udi[e.toLowerCase()]:void 0,"keywordShape"),Gdi=I((e)=>{let r=zot(e.shape)??zot(e.sprite);if(r)return r;if(e.tags)for(let a of e.tags.split(",")){let o=zot(a.trim());if(o)return o}let i=e.typeC4Shape.text;if(i==="person"||i==="external_person")return"person";if($di.has(i))return"cylinder";if(Fdi.has(i))return"h-cyl";return"rounded"},"resolveNodeShape"),zdi={person:"Person",system:"Software System",container:"Container",component:"Component"},Vdi=I((e)=>{let r=e.replace(/^external_/,"").replace(/_(db|queue)$/,"");return zdi[r]??r.replace(/_/g," ")},"stereotypeLabel"),Hdi=I((e)=>e.startsWith("external_"),"isExternal"),qdi=I((e)=>{let r=Vdi(e.typeC4Shape.text);return e.techn?.text?`[${r}: ${e.techn.text}]`:`[${r}]`},"stereotypeText"),Z9r=["person","system","system_db","system_queue","container","container_db","container_queue","component","component_db","component_queue"].flatMap((e)=>[e,`external_${e}`]),Ydi=new Set(Z9r),z9r=I((e)=>Ydi.has(e),"isC4ElementType"),Wdi=I((e,r)=>{let i=e.typeC4Shape.text,a=e.bgColor??(z9r(i)&&r[`${i}_bg_color`]),o=e.borderColor??(z9r(i)&&r[`${i}_border_color`]),l=[];if(a)l.push(`fill:${a}`);if(o)l.push(`stroke:${o}`);return l.push(`color:${e.fontColor??"#FFFFFF"}`),l},"elementCssStyles"),V9r=I((e,r,i,a,o)=>{let l=e.typeC4Shape.text,h=["c4-shape",`c4-${l}`];if(Hdi(l))h.push("c4-external");let d=Gdi(e),p=Wdi(e,r);if(d==="rounded"||d==="fr-rect")p.push("rx:12px","ry:12px");return{id:e.alias,label:e.label.text,stereotype:qdi(e),description:e.descr?.text?[e.descr.text]:void 0,labelType:"string",isGroup:!1,shape:d,cssClasses:h.join(" "),cssStyles:p,padding:i,look:a,useHtmlLabels:!1,width:o}},"buildC4Node");Txe.yy=Vot;po={},ePr=class{static{I(this,"Bounds")}constructor(e){this.name="",this.data={},this.data.startx=void 0,this.data.stopx=void 0,this.data.starty=void 0,this.data.stopy=void 0,this.data.widthLimit=void 0,this.nextData={},this.nextData.startx=void 0,this.nextData.stopx=void 0,this.nextData.starty=void 0,this.nextData.stopy=void 0,this.nextData.cnt=0,qot(e.db.getConfig())}setData(e,r,i,a){this.nextData.startx=this.data.startx=e,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=i,this.nextData.stopy=this.data.stopy=a}updateVal(e,r,i,a){if(e[r]===void 0)e[r]=i;else e[r]=a(i,e[r])}insert(e){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.stopx,i=this.data.widthLimit,a=this.nextData.startx===this.nextData.stopx?r+e.margin:r+e.margin*2,o=a+e.width,l=this.nextData.starty+e.margin*2,h=l+e.height;if(a>=i||o>=i||this.nextData.cnt>J9r)a=this.nextData.startx+e.margin+po.nextLinePaddingX,l=this.nextData.stopy+e.margin*2,this.nextData.stopx=o=a+e.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=h=l+e.height,this.nextData.cnt=1;e.x=a,e.y=l,this.updateVal(this.data,"startx",a,Math.min),this.updateVal(this.data,"starty",l,Math.min),this.updateVal(this.data,"stopx",o,Math.max),this.updateVal(this.data,"stopy",h,Math.max),this.updateVal(this.nextData,"startx",a,Math.min),this.updateVal(this.nextData,"starty",l,Math.min),this.updateVal(this.nextData,"stopx",o,Math.max),this.updateVal(this.nextData,"stopy",h,Math.max)}init(e){this.name="",this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,widthLimit:void 0},this.nextData={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0,cnt:0},qot(e.db.getConfig())}bumpLastMargin(e){this.data.stopx+=e,this.data.stopy+=e}},qot=I(function(e){if(Sd(po,e),e?.fontFamily)po.personFontFamily=po.systemFontFamily=po.messageFontFamily=e.fontFamily;if(e?.fontSize)po.personFontSize=po.systemFontSize=po.messageFontSize=e.fontSize;if(e?.fontWeight)po.personFontWeight=po.systemFontWeight=po.messageFontWeight=e.fontWeight},"setConf"),Sxe=I((e)=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),jdi=I((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");I(S7,"calcC4ShapeTextWH");tPr=I(function(e,r,i){let a=i.data.startx,o=i.data.starty;r.x=a,r.y=o,r.width=i.data.stopx-a,r.height=i.data.stopy-o,r.intersect=(p)=>ca.rect({x:r.x+r.width/2,y:r.y+r.height/2,width:r.width,height:r.height},p),r.label.y=po.c4ShapeMargin-35;let l=r.wrap&&po.wrap,h=Sxe(po);h.fontSize=h.fontSize+2,h.fontWeight="bold";let d=ey(r.label.text,h);S7("label",r,l,h,d),cI.drawBoundary(e,r,po)},"drawBoundary"),rPr=I(async function(e,r,i,a){let o=Ar(),l=o.look??"classic",h={config:o},d=r.attr("id")??"",p=a.map((y)=>i[Number(y)]),m=I((y)=>{let v=y.shape?Wne[y.shape]:void 0;if(!v)throw Error(`C4: no shape handler for "${y.shape}"`);return v},"shapeHandlerFor");await Promise.all(p.map(async(y)=>{let v=V9r(y,po,po.c4ShapePadding,l,po.width);v.domId=`${d}-${v.id}`;let w=await m(v)(r,v,h);y.width=v.width??po.width,y.height=v.height??po.height,y.margin=po.c4ShapeMargin,w.remove()}));for(let y of p)e.insert(y);await Promise.all(p.map(async(y)=>{let v=V9r(y,po,po.c4ShapePadding,l,po.width);v.domId=`${d}-${v.id}`,v.x=y.x+y.width/2,v.y=y.y+y.height/2;let w=r.append("g").attr("transform",`translate(${y.x+y.width/2}, ${y.y+y.height/2})`);await m(v)(w,v,h),y.intersect=v.intersect})),e.bumpLastMargin(po.c4ShapeMargin)},"drawC4ShapeArray"),Kdi=class{static{I(this,"Point")}constructor(e,r){this.x=e,this.y=r}},H9r=I(function(e,r){if(!e.intersect)throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);let{x:i,y:a}=e.intersect(r);return new Kdi(i,a)},"getIntersectPoint"),Xdi=I(function(e,r){let i={x:0,y:0};i.x=r.x+r.width/2,i.y=r.y+r.height/2;let a=H9r(e,i);i.x=e.x+e.width/2,i.y=e.y+e.height/2;let o=H9r(r,i);return{startPoint:a,endPoint:o}},"getIntersectPoints"),Qdi=I(function(e,r,i,a,o){let l=a.db.getC4Type(),h=0;for(let d of r){h=h+1;let p=d.wrap&&po.wrap,m=jdi(po);if(l==="C4Dynamic")d.label.text=h+": "+d.label.text;let y=ey(d.label.text,m);if(S7("label",d,p,m,y),d.techn&&d.techn.text!=="")y=ey(d.techn.text,m),S7("techn",d,p,m,y);if(d.descr&&d.descr.text!=="")y=ey(d.descr.text,m),S7("descr",d,p,m,y);let v=i(d.from),w=i(d.to);if(!v||!w)throw Error(`C4 rel "${d.from}" -> "${d.to}" references an unknown shape or boundary`);let T=Xdi(v,w);if(!T.startPoint||!T.endPoint)throw Error(`Could not calculate intersection points for rel "${d.from}" -> "${d.to}"`);d.startPoint=T.startPoint,d.endPoint=T.endPoint}cI.drawRels(e,r,po,o)},"drawRels");I(jot,"drawInsideBoundary");Zdi=I(async function(e,r,i,a){po=Y9r("c4");let o=Ar().securityLevel,{root:l}=Bdi(r,o),h=a.db;h.setWrap(po.wrap),J9r=h.getC4ShapeInRow(),Hot=h.getC4BoundaryInRow(),Ze.debug(`C:${JSON.stringify(po,null,2)}`);let d=l.select(`[id="${r}"]`);cI.insertComputerIcon(d,r),cI.insertDatabaseIcon(d,r),cI.insertClockIcon(d,r);let p=new ePr(a);p.setData(po.diagramMarginX,po.diagramMarginX,po.diagramMarginY,po.diagramMarginY),p.data.widthLimit=screen.availWidth,Iae=po.diagramMarginX,Oae=po.diagramMarginY;let m=h.getTitle(),y=h.getBoundaries("");await jot(d,"",p,y,a),cI.insertArrowHead(d,r),cI.insertArrowEnd(d,r),cI.insertArrowCrossHead(d,r),cI.insertArrowFilledHead(d,r),Qdi(d,h.getRels(),h.getC4Shape,a,r),p.data.stopx=Iae,p.data.stopy=Oae;let v=p.data,{startx:w,starty:T}=v,k=Oae-T+2*po.diagramMarginY,A=Iae-w,R=A+2*po.diagramMarginX;if(m)d.append("text").text(m).attr("x",A/2-4*po.diagramMarginX).attr("y",T+po.diagramMarginY);Bl(d,k,R,po.useMaxWidth);let N=m?60:0;d.attr("viewBox",w-po.diagramMarginX+" -"+(po.diagramMarginY+N)+" "+R+" "+(k+N)),Ze.debug("models:",v)},"draw"),q9r={drawPersonOrSystemArray:rPr,drawBoundary:tPr,setConf:qot,draw:Zdi},Jdi=I(()=>{let e=Ar().c4??{},r=new CSSStyleSheet;for(let i of Z9r){let a=r.cssRules[r.insertRule(`.c4-shape.c4-${i} .label {}`,r.cssRules.length)],o=e[`${i}FontFamily`],l=e[`${i}FontSize`],h=e[`${i}FontWeight`];if(o)a.style.setProperty("font-family",o);if(l)a.style.setProperty("font-size",typeof l==="number"?`${l}px`:l);if(h)a.style.setProperty("font-weight",String(h))}return[...r.cssRules].filter((i)=>i.style.length>0).map((i)=>` ${i.cssText}`).join(` +`)},"elementFontStyles"),efi=I((e)=>`.person { stroke: ${e.personBorder}; fill: ${e.personBkg}; } -${Wdi()} +${Jdi()} /* The element font colour is set inline per element (default white); the label text takes it via currentColor. */ @@ -962,7 +962,7 @@ ${Wdi()} .c4-shape line { stroke-width: 2px; } -`,"getStyles"),Kdi=jdi,Z9r={parser:Whi,db:Uot,renderer:U9r,styles:Kdi,init:I(({c4:e,wrap:r})=>{U9r.setConf(e),Uot.setWrap(r)},"init")}});var dT;var oI=Re(()=>{Ja();dT=I(()=>` +`,"getStyles"),tfi=efi,nPr={parser:Jhi,db:Vot,renderer:q9r,styles:tfi,init:I(({c4:e,wrap:r})=>{q9r.setConf(e),Vot.setWrap(r)},"init")}});var fT;var uI=Re(()=>{Ja();fT=I(()=>` /* Font Awesome icon styling - consolidated */ .label-icon { display: inline-block; @@ -976,21 +976,21 @@ ${Wdi()} stroke: revert; stroke-width: revert; } -`,"getIconStyles")});var ly;var MC=Re(()=>{Ja();dl();ly=I((e,r)=>{let i;if(r==="sandbox")i=xn("#i"+e);return(r==="sandbox"?xn(i.nodes()[0].contentDocument.body):xn("body")).select(`[id="${e}"]`)},"getDiagramElement")});var a1,Xdi,Qdi;var fT=Re(()=>{eo();Zs();Ja();a1=I((e,r,i,a)=>{e.attr("class",i);let{width:o,height:l,x:h,y:d}=Xdi(e,r);Bl(e,l,o,a);let p=Qdi(h,d,o,l,r);e.attr("viewBox",p),Ze.debug(`viewBox configured: ${p} with padding: ${r}`)},"setupViewPortForSVG"),Xdi=I((e,r)=>{let i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+r*2,height:i.height+r*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),Qdi=I((e,r,i,a,o)=>`${e-o} ${r-o} ${i} ${a}`,"createViewBox")});var Zdi="flowchart-",Jdi,efi,tfi,rfi,Yot,ePr,tPr,nfi,ifi,afi,sfi,Wot,Txe,Iae;var jot=Re(()=>{oI();MC();fT();vL();lT();z3();ip();I0();Ql();eo();Zs();Ja();dl();EP();x0();Jdi=class{constructor(){this.vertexCounter=0,this.config=Ar(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Ys,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getAccTitle=oo,this.getAccDescription=lo,this.getDiagramTitle=fo,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{I(this,"FlowDB")}sanitizeText(e){return ai.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,i,a,o,l,h={},d){if(!e||e.trim().length===0)return;let p;if(d!==void 0){let T;if(!d.includes(` +`,"getIconStyles")});var ly;var PC=Re(()=>{Ja();dl();ly=I((e,r)=>{let i;if(r==="sandbox")i=xn("#i"+e);return(r==="sandbox"?xn(i.nodes()[0].contentDocument.body):xn("body")).select(`[id="${e}"]`)},"getDiagramElement")});var a1,rfi,nfi;var pT=Re(()=>{eo();Zs();Ja();a1=I((e,r,i,a)=>{e.attr("class",i);let{width:o,height:l,x:h,y:d}=rfi(e,r);Bl(e,l,o,a);let p=nfi(h,d,o,l,r);e.attr("viewBox",p),Ze.debug(`viewBox configured: ${p} with padding: ${r}`)},"setupViewPortForSVG"),rfi=I((e,r)=>{let i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+r*2,height:i.height+r*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),nfi=I((e,r,i,a,o)=>`${e-o} ${r-o} ${i} ${a}`,"createViewBox")});var ifi="flowchart-",afi,sfi,ofi,lfi,Kot,aPr,sPr,cfi,ufi,hfi,dfi,Xot,kxe,Lae;var Qot=Re(()=>{uI();PC();pT();EL();cT();V3();ip();I0();Ql();eo();Zs();Ja();dl();SP();x0();afi=class{constructor(){this.vertexCounter=0,this.config=Ar(),this.diagramId="",this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=Ys,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getAccTitle=oo,this.getAccDescription=lo,this.getDiagramTitle=fo,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{I(this,"FlowDB")}sanitizeText(e){return ai.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,i,a,o,l,h={},d){if(!e||e.trim().length===0)return;let p;if(d!==void 0){let T;if(!d.includes(` `))T=`{ `+d+` }`;else T=d+` -`;p=yC(T,{schema:bC})}let m=this.subGraphLookup.get(e);if(m&&p){m.metadata={...m.metadata,...p};return}let y=this.edges.find((T)=>T.id===e);if(y){let T=p;if(T?.animate!==void 0)y.animate=T.animate;if(T?.animation!==void 0)y.animation=T.animation;if(T?.curve!==void 0)y.interpolate=T.curve;return}let E,w=this.vertices.get(e);if(w===void 0){if(r===void 0&&i===void 0&&a!==void 0&&a!==null)Ze.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`);w={id:e,labelType:"text",domId:Zdi+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,w)}if(this.vertexCounter++,r!==void 0){if(this.config=Ar(),E=this.sanitizeText(r.text.trim()),w.labelType=r.type,E.startsWith('"')&&E.endsWith('"'))E=E.substring(1,E.length-1);w.text=E}else if(w.text===void 0)w.text=e;if(i!==void 0)w.type=i;if(a!==void 0&&a!==null)a.forEach((T)=>{w.styles.push(T)});if(o!==void 0&&o!==null)o.forEach((T)=>{w.classes.push(T)});if(l!==void 0)w.dir=l;if(w.props===void 0)w.props=h;else if(h!==void 0)Object.assign(w.props,h);if(p!==void 0){if(p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);else if(!qne(p.shape))throw Error(`No such shape: ${p.shape}.`);w.type=p?.shape}if(p?.label)w.text=p?.label,w.labelType=this.sanitizeNodeLabelType(p?.labelType);if(p?.icon){if(w.icon=p?.icon,!p.label?.trim()&&w.text===e)w.text=""}if(p?.form)w.form=p?.form;if(p?.pos)w.pos=p?.pos;if(p?.img){if(w.img=p?.img,!p.label?.trim()&&w.text===e)w.text=""}if(p?.constraint)w.constraint=p.constraint;if(p.w)w.assetWidth=Number(p.w);if(p.h)w.assetHeight=Number(p.h)}}addSingleLink(e,r,i,a){let h={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Ze.info("abc78 Got edge...",h);let d=i.text;if(d!==void 0){if(h.text=this.sanitizeText(d.text.trim()),h.text.startsWith('"')&&h.text.endsWith('"'))h.text=h.text.substring(1,h.text.length-1);h.labelType=this.sanitizeNodeLabelType(d.type)}if(i!==void 0)h.type=i.type,h.stroke=i.stroke,h.length=i.length>10?10:i.length;if(a&&!this.edges.some((p)=>p.id===a))h.id=a,h.isUserDefinedId=!0;else{let p=this.edges.filter((m)=>m.start===h.start&&m.end===h.end);if(p.length===0)h.id=j_(h.start,h.end,{counter:0,prefix:"L"});else h.id=j_(h.start,h.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Ze.info("Pushing edge..."),this.edges.push(h);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. +`;p=_C(T,{schema:vC})}let m=this.subGraphLookup.get(e);if(m&&p){m.metadata={...m.metadata,...p};return}let y=this.edges.find((T)=>T.id===e);if(y){let T=p;if(T?.animate!==void 0)y.animate=T.animate;if(T?.animation!==void 0)y.animation=T.animation;if(T?.curve!==void 0)y.interpolate=T.curve;return}let v,w=this.vertices.get(e);if(w===void 0){if(r===void 0&&i===void 0&&a!==void 0&&a!==null)Ze.warn(`Style applied to unknown node "${e}". This may indicate a typo. The node will be created automatically.`);w={id:e,labelType:"text",domId:ifi+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,w)}if(this.vertexCounter++,r!==void 0){if(this.config=Ar(),v=this.sanitizeText(r.text.trim()),w.labelType=r.type,v.startsWith('"')&&v.endsWith('"'))v=v.substring(1,v.length-1);w.text=v}else if(w.text===void 0)w.text=e;if(i!==void 0)w.type=i;if(a!==void 0&&a!==null)a.forEach((T)=>{w.styles.push(T)});if(o!==void 0&&o!==null)o.forEach((T)=>{w.classes.push(T)});if(l!==void 0)w.dir=l;if(w.props===void 0)w.props=h;else if(h!==void 0)Object.assign(w.props,h);if(p!==void 0){if(p.shape){if(p.shape!==p.shape.toLowerCase()||p.shape.includes("_"))throw Error(`No such shape: ${p.shape}. Shape names should be lowercase.`);else if(!jne(p.shape))throw Error(`No such shape: ${p.shape}.`);w.type=p?.shape}if(p?.label)w.text=p?.label,w.labelType=this.sanitizeNodeLabelType(p?.labelType);if(p?.icon){if(w.icon=p?.icon,!p.label?.trim()&&w.text===e)w.text=""}if(p?.form)w.form=p?.form;if(p?.pos)w.pos=p?.pos;if(p?.img){if(w.img=p?.img,!p.label?.trim()&&w.text===e)w.text=""}if(p?.constraint)w.constraint=p.constraint;if(p.w)w.assetWidth=Number(p.w);if(p.h)w.assetHeight=Number(p.h)}}addSingleLink(e,r,i,a){let h={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Ze.info("abc78 Got edge...",h);let d=i.text;if(d!==void 0){if(h.text=this.sanitizeText(d.text.trim()),h.text.startsWith('"')&&h.text.endsWith('"'))h.text=h.text.substring(1,h.text.length-1);h.labelType=this.sanitizeNodeLabelType(d.type)}if(i!==void 0)h.type=i.type,h.stroke=i.stroke,h.length=i.length>10?10:i.length;if(a&&!this.edges.some((p)=>p.id===a))h.id=a,h.isUserDefinedId=!0;else{let p=this.edges.filter((m)=>m.start===h.start&&m.end===h.end);if(p.length===0)h.id=j_(h.start,h.end,{counter:0,prefix:"L"});else h.id=j_(h.start,h.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Ze.info("Pushing edge..."),this.edges.push(h);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,i){let a=this.isLinkData(i)?i.id.replace("@",""):void 0;Ze.info("addLink",e,r,a);for(let o of e)for(let l of r){let h=o===e[e.length-1],d=l===r[0];if(h&&d)this.addSingleLink(o,l,i,a);else this.addSingleLink(o,l,i,void 0)}}updateLinkInterpolate(e,r){e.forEach((i)=>{if(i==="default")this.edges.defaultInterpolate=r;else this.edges[i].interpolate=r})}updateLink(e,r){e.forEach((i)=>{if(typeof i==="number"&&i>=this.edges.length)throw Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(i==="default")this.edges.defaultStyle=r;else if(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some((a)=>a?.startsWith("fill")))this.edges[i]?.style?.push("fill:none")})}addClass(e,r){let i=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((a)=>{let o=this.classes.get(a);if(o===void 0)o={id:a,styles:[],textStyles:[]},this.classes.set(a,o);if(i!==void 0&&i!==null)i.forEach((l)=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)})})}setDirection(e){if(this.direction=e.trim(),/.*/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let i of e.split(",")){let a=this.vertices.get(i);if(a)a.classes.push(r);let o=this.edges.find((h)=>h.id===i);if(o)o.classes.push(r);let l=this.subGraphLookup.get(i);if(l)l.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let i of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}setClickFun(e,r,i){if(Ar().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=this.lookUpDomId(e),h=document.querySelector(`[id="${l}"]`);if(h!==null)h.addEventListener("click",()=>{Ts.runFunc(r,...a)},!1)})}setLink(e,r,i){e.split(",").forEach((a)=>{let o=this.vertices.get(a);if(o!==void 0)o.link=Ts.formatUrl(r,this.config),o.linkTarget=i}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,i){e.split(",").forEach((a)=>{this.setClickFun(a,r,i)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=v7();xn(e).select("svg").selectAll("g.node").on("mouseover",(o)=>{let l=xn(o.currentTarget),h=l.attr("title");if(h===null)return;let d=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(l.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.bottom+"px"),r.html(Wb.sanitize(h)),l.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),xn(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ar(),qs()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,i){let a=e.text.trim(),o=i.text;if(e===i&&/\s/.exec(i.text))a=void 0;let h=I((w)=>{let T={boolean:{},number:{},string:{}},x=[],k;return{nodeList:w.filter(function(R){let N=typeof R;if(R.stmt&&R.stmt==="dir")return k=R.value,!1;if(R.trim()==="")return!1;if(N in T)return T[N].hasOwnProperty(R)?!1:T[N][R]=!0;else return x.includes(R)?!1:x.push(R)}),dir:k}},"uniq")(r.flat()),{nodeList:d,dir:p}=h,m=Ar().flowchart??{};if(p=p??(m.inheritDir?this.getDirection()??Ar().direction??void 0:void 0),this.version==="gen-1")for(let w=0;ww!==a);let E=this.subGraphs.find((w)=>w.id===a);if(E)E.nodes.push(...y.nodes);else this.subGraphs.push(y);return this.subGraphLookup.set(a,E??y),a}getPosForId(e){for(let[r,i]of this.subGraphs.entries())if(i.id===e)return r;return-1}indexNodes2(e,r){let i=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let a=0,o=1;while(a=0){let h=this.indexNodes2(e,l);if(h.result)return{result:!0,count:o+h.count};else o=o+h.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let a="normal";if(r.includes("="))a="thick";if(r.includes("."))a="dotted";return{type:i,stroke:a}}countChar(e,r){let i=r.length,a=0;for(let o=0;o":if(a="arrow_point",r.startsWith("<"))a="double_"+a,i=i.slice(1);break;case"o":if(a="arrow_circle",r.startsWith("o"))a="double_"+a,i=i.slice(1);break}let o="normal",l=i.length-1;if(i.startsWith("="))o="thick";if(i.startsWith("~"))o="invisible";let h=this.countChar(".",i);if(h)o="dotted",l=h;return{type:a,stroke:o,length:l}}destructLink(e,r){let i=this.destructEndLink(e),a;if(r){if(a=this.destructStartLink(r),a.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=i.type;else{if(a.type!==i.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}if(a.type==="double_arrow")a.type="double_arrow_point";return a.length=i.length,a}return i}exists(e,r){for(let i of e)if(i.nodes.includes(r))return!0;return!1}makeUniq(e,r){let i=[];return e.nodes.forEach((a,o)=>{if(!this.exists(r,a))i.push(e.nodes[o])}),{nodes:i}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((i)=>i.id===r)}destructEdgeType(e){let r="none",i="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":i=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),i=r;break}return{arrowTypeStart:r,arrowTypeEnd:i}}addNodeFromVertex(e,r,i,a,o,l){let h=i.get(e.id),d=a.get(e.id)??!1,p=this.findNode(r,e.id);if(p)p.cssStyles=e.styles,p.cssCompiledStyles=this.getCompiledStyles(e.classes),p.cssClasses=e.classes.join(" ");else{let m={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:h,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:l,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(d)r.push({...m,isGroup:!0,shape:"rect"});else r.push({...m,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:o.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let i of e){let a=this.classes.get(i);if(a?.styles)r=[...r,...a.styles??[]].map((o)=>o.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((o)=>o.trim())}return r}getData(){let e=Ar(),r=[],i=[],a=this.getSubGraphs(),o=new Map,l=new Map,h=new Map;for(let R of a)for(let N of R.nodes)if(this.subGraphLookup.has(N))h.set(N,R.id);let d=new Map,p=new Map;for(let R of a){let N=h.get(R.id);if(N!==void 0)p.set(N,[...p.get(N)??[],R.id])}let m=0,y=I((R)=>{d.set(R,m++);for(let N of p.get(R)??[])y(N)},"walk");for(let R of a)if(!h.has(R.id))y(R.id);let E=I((R)=>this.subGraphLookup.get(R)?.metadata?.view==="collapsed","isCollapsed"),w=I((R)=>{let N,L=new Set,B=R;while(B!==void 0&&!L.has(B)){if(L.add(B),E(B))N=B;B=h.get(B)}return N},"outermostCollapsed"),T=new Set,x=new Map;for(let R of a){let N=w(R.id);if(N===void 0)continue;if(R.id!==N)T.add(R.id),x.set(R.id,N);for(let L of R.nodes){if(L===N)continue;T.add(L),x.set(L,N)}}for(let R=a.length-1;R>=0;R--){let N=a[R];if(T.has(N.id))continue;if(N.nodes.length>0)l.set(N.id,!0);for(let L of N.nodes)o.set(L,N.id)}for(let R=a.length-1;R>=0;R--){let N=a[R];if(T.has(N.id))continue;if(N.metadata?.view==="collapsed")r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"collapsedGroup",dir:N.dir,isGroup:!1,look:e.look,colorIndex:d.get(N.id)});else r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"rect",dir:N.dir,isGroup:!0,look:e.look,colorIndex:d.get(N.id),metadata:N.metadata})}this.getVertices().forEach((R)=>{if(T.has(R.id))return;this.addNodeFromVertex(R,r,o,l,e,e.look||"classic")});let A=this.getEdges();return A.forEach((R,N)=>{let{arrowTypeStart:L,arrowTypeEnd:B}=this.destructEdgeType(R.type),D=[...A.defaultStyle??[]],P=x.get(R.start)??R.start,F=x.get(R.end)??R.end;if(P===F&&(x.has(R.start)||x.has(R.end)))return;if(R.style)D.push(...R.style);let H={id:j_(P,F,{counter:N,prefix:"L"},R.id),isUserDefinedId:R.isUserDefinedId,start:P,end:F,type:R.type??"normal",label:R.text,labelType:R.labelType,labelpos:"c",thickness:R.stroke,minlen:R.length,classes:R?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":L,arrowTypeEnd:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":B,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(R.classes),labelStyle:D,style:D,pattern:R.stroke,look:e.look,animate:R.animate,animation:R.animation,curve:R.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};i.push(H)}),{nodes:r,edges:i,other:{},config:e}}defaultConfig(){return YV.flowchart}},efi=I(function(e,r){return r.db.getClasses()},"getClasses"),tfi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing state diagram (v2)",r);let{securityLevel:o,flowchart:l,layout:h}=Ar();a.db.setDiagramId(r),Ze.debug("Before getData: ");let d=a.db.getData();Ze.debug("Data: ",d);let p=ly(r,o),m=a.db.getDirection();d.type=a.type,d.layoutAlgorithm=oy(h),d.direction=m,d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["point","circle","cross"],d.diagramId=r,Ze.debug("REF1:",d),await sy(d,p);let y=d.config.flowchart?.diagramPadding??8;Ts.insertTitle(p,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),a1(p,y,"flowchart",l?.useMaxWidth||!1)},"draw"),rfi={getClasses:efi,draw:tfi},Yot=function(){var e=I(function(Yn,Tn,Pi,Mi){for(Pi=Pi||{},Mi=Yn.length;Mi--;Pi[Yn[Mi]]=Tn);return Pi},"o"),r=[1,4],i=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],l=[2,2],h=[1,13],d=[1,14],p=[1,15],m=[1,16],y=[1,23],E=[1,25],w=[1,26],T=[1,27],x=[1,50],k=[1,49],A=[1,29],R=[1,30],N=[1,31],L=[1,32],B=[1,33],D=[1,45],P=[1,47],F=[1,43],H=[1,48],K=[1,44],Q=[1,51],Z=[1,46],Y=[1,52],j=[1,53],te=[1,34],X=[1,35],W=[1,36],J=[1,37],z=[1,38],ne=[1,58],ie=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],le=[1,62],se=[1,61],he=[1,63],ye=[8,9,11,75,77,78],xe=[1,79],Ie=[1,92],Ee=[1,97],Ue=[1,96],Me=[1,93],Xe=[1,89],je=[1,95],Qe=[1,91],St=[1,98],pt=[1,94],Vt=[1,99],Xt=[1,90],rr=[8,9,10,11,40,75,77,78],We=[8,9,10,11,40,46,75,77,78],Nt=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ct=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],bt=[44,60,89,102,105,106,109,111,114,115,116],Pe=[1,122],Ge=[1,123],qe=[1,125],Ke=[1,124],Je=[44,60,62,74,89,102,105,106,109,111,114,115,116],De=[1,134],oe=[1,148],pe=[1,149],fe=[1,150],be=[1,151],ze=[1,136],Ce=[1,138],_e=[1,142],ke=[1,143],it=[1,144],ut=[1,145],gt=[1,146],vt=[1,147],ir=[1,152],qt=[1,153],cr=[1,132],tr=[1,133],Zt=[1,140],lr=[1,135],Kt=[1,139],In=[1,137],Et=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Xn=[1,155],Yt=[1,157],Bn=[8,9,11],si=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],hn=[1,177],Ii=[1,173],Vn=[1,174],Ei=[1,178],yn=[1,175],Li=[1,176],Ia=[77,116,119],tt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Fn=[10,106],Hn=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],_t=[1,248],Sr=[1,246],on=[1,250],gn=[1,244],On=[1,245],as=[1,247],Ir=[1,249],un=[1,251],zn=[1,269],Di=[8,9,11,106],aa=[8,9,10,11,60,84,105,106,109,110,111,112],Ca={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:I(function(Tn,Pi,Mi,Wn,ba,Lt,Gc){var zt=Lt.length-1;switch(ba){case 2:this.$=[];break;case 3:if(!Array.isArray(Lt[zt])||Lt[zt].length>0)Lt[zt-1].push(Lt[zt]);this.$=Lt[zt-1];break;case 4:case 183:this.$=Lt[zt];break;case 11:Wn.setDirection("TB"),this.$="TB";break;case 12:Wn.setDirection(Lt[zt-1]),this.$=Lt[zt-1];break;case 27:this.$=Lt[zt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Wn.addSubGraph(Lt[zt-6],Lt[zt-1],Lt[zt-4]);break;case 34:this.$=Wn.addSubGraph(Lt[zt-3],Lt[zt-1],Lt[zt-3]);break;case 35:this.$=Wn.addSubGraph(void 0,Lt[zt-1],void 0);break;case 37:this.$=Lt[zt].trim(),Wn.setAccTitle(this.$);break;case 38:case 39:this.$=Lt[zt].trim(),Wn.setAccDescription(this.$);break;case 43:this.$=Lt[zt-1]+Lt[zt];break;case 44:this.$=Lt[zt];break;case 45:Wn.addVertex(Lt[zt-1][Lt[zt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Lt[zt]),Wn.addLink(Lt[zt-3].stmt,Lt[zt-1],Lt[zt-2]),this.$={stmt:Lt[zt-1],nodes:Lt[zt-1].concat(Lt[zt-3].nodes)};break;case 46:Wn.addLink(Lt[zt-2].stmt,Lt[zt],Lt[zt-1]),this.$={stmt:Lt[zt],nodes:Lt[zt].concat(Lt[zt-2].nodes)};break;case 47:Wn.addLink(Lt[zt-3].stmt,Lt[zt-1],Lt[zt-2]),this.$={stmt:Lt[zt-1],nodes:Lt[zt-1].concat(Lt[zt-3].nodes)};break;case 48:this.$={stmt:Lt[zt-1],nodes:Lt[zt-1]};break;case 49:Wn.addVertex(Lt[zt-1][Lt[zt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Lt[zt]),this.$={stmt:Lt[zt-1],nodes:Lt[zt-1],shapeData:Lt[zt]};break;case 50:this.$={stmt:Lt[zt],nodes:Lt[zt]};break;case 51:this.$=[Lt[zt]];break;case 52:Wn.addVertex(Lt[zt-5][Lt[zt-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Lt[zt-4]),this.$=Lt[zt-5].concat(Lt[zt]);break;case 53:this.$=Lt[zt-4].concat(Lt[zt]);break;case 54:this.$=Lt[zt];break;case 55:this.$=Lt[zt-2],Wn.setClass(Lt[zt-2],Lt[zt]);break;case 56:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"square");break;case 57:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"doublecircle");break;case 58:this.$=Lt[zt-5],Wn.addVertex(Lt[zt-5],Lt[zt-2],"circle");break;case 59:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"ellipse");break;case 60:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"stadium");break;case 61:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"subroutine");break;case 62:this.$=Lt[zt-7],Wn.addVertex(Lt[zt-7],Lt[zt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Lt[zt-5],Lt[zt-3]]]));break;case 63:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"cylinder");break;case 64:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"round");break;case 65:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"diamond");break;case 66:this.$=Lt[zt-5],Wn.addVertex(Lt[zt-5],Lt[zt-2],"hexagon");break;case 67:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"odd");break;case 68:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"trapezoid");break;case 69:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"inv_trapezoid");break;case 70:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"lean_right");break;case 71:this.$=Lt[zt-3],Wn.addVertex(Lt[zt-3],Lt[zt-1],"lean_left");break;case 72:this.$=Lt[zt],Wn.addVertex(Lt[zt]);break;case 73:Lt[zt-1].text=Lt[zt],this.$=Lt[zt-1];break;case 74:case 75:Lt[zt-2].text=Lt[zt-1],this.$=Lt[zt-2];break;case 76:this.$=Lt[zt];break;case 77:var fs=Wn.destructLink(Lt[zt],Lt[zt-2]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length,text:Lt[zt-1]};break;case 78:var fs=Wn.destructLink(Lt[zt],Lt[zt-2]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length,text:Lt[zt-1],id:Lt[zt-3]};break;case 79:this.$={text:Lt[zt],type:"text"};break;case 80:this.$={text:Lt[zt-1].text+""+Lt[zt],type:Lt[zt-1].type};break;case 81:this.$={text:Lt[zt],type:"string"};break;case 82:this.$={text:Lt[zt],type:"markdown"};break;case 83:var fs=Wn.destructLink(Lt[zt]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length};break;case 84:var fs=Wn.destructLink(Lt[zt]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length,id:Lt[zt-1]};break;case 85:this.$=Lt[zt-1];break;case 86:this.$={text:Lt[zt],type:"text"};break;case 87:this.$={text:Lt[zt-1].text+""+Lt[zt],type:Lt[zt-1].type};break;case 88:this.$={text:Lt[zt],type:"string"};break;case 89:case 104:this.$={text:Lt[zt],type:"markdown"};break;case 101:this.$={text:Lt[zt],type:"text"};break;case 102:this.$={text:Lt[zt-1].text+""+Lt[zt],type:Lt[zt-1].type};break;case 103:this.$={text:Lt[zt],type:"text"};break;case 105:this.$=Lt[zt-4],Wn.addClass(Lt[zt-2],Lt[zt]);break;case 106:this.$=Lt[zt-4],Wn.setClass(Lt[zt-2],Lt[zt]);break;case 107:case 115:this.$=Lt[zt-1],Wn.setClickEvent(Lt[zt-1],Lt[zt]);break;case 108:case 116:this.$=Lt[zt-3],Wn.setClickEvent(Lt[zt-3],Lt[zt-2]),Wn.setTooltip(Lt[zt-3],Lt[zt]);break;case 109:this.$=Lt[zt-2],Wn.setClickEvent(Lt[zt-2],Lt[zt-1],Lt[zt]);break;case 110:this.$=Lt[zt-4],Wn.setClickEvent(Lt[zt-4],Lt[zt-3],Lt[zt-2]),Wn.setTooltip(Lt[zt-4],Lt[zt]);break;case 111:this.$=Lt[zt-2],Wn.setLink(Lt[zt-2],Lt[zt]);break;case 112:this.$=Lt[zt-4],Wn.setLink(Lt[zt-4],Lt[zt-2]),Wn.setTooltip(Lt[zt-4],Lt[zt]);break;case 113:this.$=Lt[zt-4],Wn.setLink(Lt[zt-4],Lt[zt-2],Lt[zt]);break;case 114:this.$=Lt[zt-6],Wn.setLink(Lt[zt-6],Lt[zt-4],Lt[zt]),Wn.setTooltip(Lt[zt-6],Lt[zt-2]);break;case 117:this.$=Lt[zt-1],Wn.setLink(Lt[zt-1],Lt[zt]);break;case 118:this.$=Lt[zt-3],Wn.setLink(Lt[zt-3],Lt[zt-2]),Wn.setTooltip(Lt[zt-3],Lt[zt]);break;case 119:this.$=Lt[zt-3],Wn.setLink(Lt[zt-3],Lt[zt-2],Lt[zt]);break;case 120:this.$=Lt[zt-5],Wn.setLink(Lt[zt-5],Lt[zt-4],Lt[zt]),Wn.setTooltip(Lt[zt-5],Lt[zt-2]);break;case 121:this.$=Lt[zt-4],Wn.addVertex(Lt[zt-2],void 0,void 0,Lt[zt]);break;case 122:this.$=Lt[zt-4],Wn.updateLink([Lt[zt-2]],Lt[zt]);break;case 123:this.$=Lt[zt-4],Wn.updateLink(Lt[zt-2],Lt[zt]);break;case 124:this.$=Lt[zt-8],Wn.updateLinkInterpolate([Lt[zt-6]],Lt[zt-2]),Wn.updateLink([Lt[zt-6]],Lt[zt]);break;case 125:this.$=Lt[zt-8],Wn.updateLinkInterpolate(Lt[zt-6],Lt[zt-2]),Wn.updateLink(Lt[zt-6],Lt[zt]);break;case 126:this.$=Lt[zt-6],Wn.updateLinkInterpolate([Lt[zt-4]],Lt[zt]);break;case 127:this.$=Lt[zt-6],Wn.updateLinkInterpolate(Lt[zt-4],Lt[zt]);break;case 128:case 130:this.$=[Lt[zt]];break;case 129:case 131:Lt[zt-2].push(Lt[zt]),this.$=Lt[zt-2];break;case 133:this.$=Lt[zt-1]+Lt[zt];break;case 181:this.$=Lt[zt];break;case 182:this.$=Lt[zt-1]+""+Lt[zt];break;case 184:this.$=Lt[zt-1]+""+Lt[zt];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:i,12:a},{1:[3]},e(o,l,{5:6}),{4:7,9:r,10:i,12:a},{4:8,9:r,10:i,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,33:24,34:E,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j,121:te,122:X,123:W,124:J,125:z},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:ne,15:54,18:57},e(ie,[2,3]),e(ie,[2,4]),e(ie,[2,5]),e(ie,[2,6]),e(ie,[2,7]),e(ie,[2,8]),{8:le,9:se,11:he,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:le,9:se,11:he,21:68},{8:le,9:se,11:he,21:69},{8:le,9:se,11:he,21:70},{8:le,9:se,11:he,21:71},{8:le,9:se,11:he,21:72},{8:le,9:se,10:[1,73],11:he,21:74},e(ie,[2,36]),{35:[1,75]},{37:[1,76]},e(ie,[2,39]),e(ye,[2,50],{18:77,39:78,10:ne,40:xe}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ie,44:Ee,60:Ue,80:[1,87],89:Me,95:[1,84],97:[1,85],101:86,105:Xe,106:je,109:Qe,111:St,114:pt,115:Vt,116:Xt,120:88},e(ie,[2,185]),e(ie,[2,186]),e(ie,[2,187]),e(ie,[2,188]),e(ie,[2,189]),e(rr,[2,51]),e(rr,[2,54],{46:[1,100]}),e(We,[2,72],{113:113,29:[1,101],44:x,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:k,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:D,102:P,105:F,106:H,109:K,111:Q,114:Z,115:Y,116:j}),e(Nt,[2,181]),e(Nt,[2,142]),e(Nt,[2,143]),e(Nt,[2,144]),e(Nt,[2,145]),e(Nt,[2,146]),e(Nt,[2,147]),e(Nt,[2,148]),e(Nt,[2,149]),e(Nt,[2,150]),e(Nt,[2,151]),e(Nt,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ct,[2,26],{18:115,10:ne}),e(ie,[2,27]),{42:116,43:39,44:x,45:40,47:41,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},e(ie,[2,40]),e(ie,[2,41]),e(ie,[2,42]),e(bt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Pe,81:Ge,116:qe,119:Ke},{75:[1,126],77:[1,127]},e(Je,[2,83]),e(ie,[2,28]),e(ie,[2,29]),e(ie,[2,30]),e(ie,[2,31]),e(ie,[2,32]),{10:De,12:oe,14:pe,27:fe,28:128,32:be,44:ze,60:Ce,75:_e,80:[1,130],81:[1,131],83:141,84:ke,85:it,86:ut,87:gt,88:vt,89:ir,90:qt,91:129,105:cr,109:tr,111:Zt,114:lr,115:Kt,116:In},e(Et,l,{5:154}),e(ie,[2,37]),e(ie,[2,38]),e(ye,[2,48],{44:Xn}),e(ye,[2,49],{18:156,10:ne,40:Yt}),e(rr,[2,44]),{44:x,47:158,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},{102:[1,159],103:160,105:[1,161]},{44:x,47:162,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},{44:x,47:163,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},e(Bn,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(Bn,[2,115],{120:168,10:[1,167],14:Ie,44:Ee,60:Ue,89:Me,105:Xe,106:je,109:Qe,111:St,114:pt,115:Vt,116:Xt}),e(Bn,[2,117],{10:[1,169]}),e(si,[2,183]),e(si,[2,170]),e(si,[2,171]),e(si,[2,172]),e(si,[2,173]),e(si,[2,174]),e(si,[2,175]),e(si,[2,176]),e(si,[2,177]),e(si,[2,178]),e(si,[2,179]),e(si,[2,180]),{44:x,47:170,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},{30:171,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:179,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:181,50:[1,180],67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:182,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:183,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:184,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{109:[1,185]},{30:186,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:187,65:[1,188],67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:189,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:190,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{30:191,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},e(Nt,[2,182]),e(o,[2,20]),e(ct,[2,25]),e(ye,[2,46],{39:192,18:193,10:ne,40:xe}),e(bt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{77:[1,197],79:198,116:qe,119:Ke},e(Ia,[2,79]),e(Ia,[2,81]),e(Ia,[2,82]),e(Ia,[2,168]),e(Ia,[2,169]),{76:199,79:121,80:Pe,81:Ge,116:qe,119:Ke},e(Je,[2,84]),{8:le,9:se,10:De,11:he,12:oe,14:pe,21:201,27:fe,29:[1,200],32:be,44:ze,60:Ce,75:_e,83:141,84:ke,85:it,86:ut,87:gt,88:vt,89:ir,90:qt,91:202,105:cr,109:tr,111:Zt,114:lr,115:Kt,116:In},e(tt,[2,101]),e(tt,[2,103]),e(tt,[2,104]),e(tt,[2,157]),e(tt,[2,158]),e(tt,[2,159]),e(tt,[2,160]),e(tt,[2,161]),e(tt,[2,162]),e(tt,[2,163]),e(tt,[2,164]),e(tt,[2,165]),e(tt,[2,166]),e(tt,[2,167]),e(tt,[2,90]),e(tt,[2,91]),e(tt,[2,92]),e(tt,[2,93]),e(tt,[2,94]),e(tt,[2,95]),e(tt,[2,96]),e(tt,[2,97]),e(tt,[2,98]),e(tt,[2,99]),e(tt,[2,100]),{6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,203],33:24,34:E,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j,121:te,122:X,123:W,124:J,125:z},{10:ne,18:204},{44:[1,205]},e(rr,[2,43]),{10:[1,206],44:x,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:113,114:Z,115:Y,116:j},{10:[1,207]},{10:[1,208],106:[1,209]},e(Fn,[2,128]),{10:[1,210],44:x,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:113,114:Z,115:Y,116:j},{10:[1,211],44:x,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:113,114:Z,115:Y,116:j},{80:[1,212]},e(Bn,[2,109],{10:[1,213]}),e(Bn,[2,111],{10:[1,214]}),{80:[1,215]},e(si,[2,184]),{80:[1,216],98:[1,217]},e(rr,[2,55],{113:113,44:x,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,114:Z,115:Y,116:j}),{31:[1,218],67:hn,82:219,116:Ei,117:yn,118:Li},e(Hn,[2,86]),e(Hn,[2,88]),e(Hn,[2,89]),e(Hn,[2,153]),e(Hn,[2,154]),e(Hn,[2,155]),e(Hn,[2,156]),{49:[1,220],67:hn,82:219,116:Ei,117:yn,118:Li},{30:221,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{51:[1,222],67:hn,82:219,116:Ei,117:yn,118:Li},{53:[1,223],67:hn,82:219,116:Ei,117:yn,118:Li},{55:[1,224],67:hn,82:219,116:Ei,117:yn,118:Li},{57:[1,225],67:hn,82:219,116:Ei,117:yn,118:Li},{60:[1,226]},{64:[1,227],67:hn,82:219,116:Ei,117:yn,118:Li},{66:[1,228],67:hn,82:219,116:Ei,117:yn,118:Li},{30:229,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},{31:[1,230],67:hn,82:219,116:Ei,117:yn,118:Li},{67:hn,69:[1,231],71:[1,232],82:219,116:Ei,117:yn,118:Li},{67:hn,69:[1,234],71:[1,233],82:219,116:Ei,117:yn,118:Li},e(ye,[2,45],{18:156,10:ne,40:Yt}),e(ye,[2,47],{44:Xn}),e(bt,[2,75]),e(bt,[2,74]),{62:[1,235],67:hn,82:219,116:Ei,117:yn,118:Li},e(bt,[2,77]),e(Ia,[2,80]),{77:[1,236],79:198,116:qe,119:Ke},{30:237,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},e(Et,l,{5:238}),e(tt,[2,102]),e(ie,[2,35]),{43:239,44:x,45:40,47:41,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},{10:ne,18:240},{10:_t,60:Sr,84:on,92:241,105:gn,107:242,108:243,109:On,110:as,111:Ir,112:un},{10:_t,60:Sr,84:on,92:252,104:[1,253],105:gn,107:242,108:243,109:On,110:as,111:Ir,112:un},{10:_t,60:Sr,84:on,92:254,104:[1,255],105:gn,107:242,108:243,109:On,110:as,111:Ir,112:un},{105:[1,256]},{10:_t,60:Sr,84:on,92:257,105:gn,107:242,108:243,109:On,110:as,111:Ir,112:un},{44:x,47:258,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},e(Bn,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(Bn,[2,116]),e(Bn,[2,118],{10:[1,262]}),e(Bn,[2,119]),e(We,[2,56]),e(Hn,[2,87]),e(We,[2,57]),{51:[1,263],67:hn,82:219,116:Ei,117:yn,118:Li},e(We,[2,64]),e(We,[2,59]),e(We,[2,60]),e(We,[2,61]),{109:[1,264]},e(We,[2,63]),e(We,[2,65]),{66:[1,265],67:hn,82:219,116:Ei,117:yn,118:Li},e(We,[2,67]),e(We,[2,68]),e(We,[2,70]),e(We,[2,69]),e(We,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(bt,[2,78]),{31:[1,266],67:hn,82:219,116:Ei,117:yn,118:Li},{6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,267],33:24,34:E,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j,121:te,122:X,123:W,124:J,125:z},e(rr,[2,53]),{43:268,44:x,45:40,47:41,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j},e(Bn,[2,121],{106:zn}),e(Di,[2,130],{108:270,10:_t,60:Sr,84:on,105:gn,109:On,110:as,111:Ir,112:un}),e(aa,[2,132]),e(aa,[2,134]),e(aa,[2,135]),e(aa,[2,136]),e(aa,[2,137]),e(aa,[2,138]),e(aa,[2,139]),e(aa,[2,140]),e(aa,[2,141]),e(Bn,[2,122],{106:zn}),{10:[1,271]},e(Bn,[2,123],{106:zn}),{10:[1,272]},e(Fn,[2,129]),e(Bn,[2,105],{106:zn}),e(Bn,[2,106],{113:113,44:x,60:k,89:D,102:P,105:F,106:H,109:K,111:Q,114:Z,115:Y,116:j}),e(Bn,[2,110]),e(Bn,[2,112],{10:[1,273]}),e(Bn,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:le,9:se,11:he,21:278},e(ie,[2,34]),e(rr,[2,52]),{10:_t,60:Sr,84:on,105:gn,107:279,108:243,109:On,110:as,111:Ir,112:un},e(aa,[2,133]),{14:Ie,44:Ee,60:Ue,89:Me,101:280,105:Xe,106:je,109:Qe,111:St,114:pt,115:Vt,116:Xt,120:88},{14:Ie,44:Ee,60:Ue,89:Me,101:281,105:Xe,106:je,109:Qe,111:St,114:pt,115:Vt,116:Xt,120:88},{98:[1,282]},e(Bn,[2,120]),e(We,[2,58]),{30:283,67:hn,80:Ii,81:Vn,82:172,116:Ei,117:yn,118:Li},e(We,[2,66]),e(Et,l,{5:284}),e(Di,[2,131],{108:270,10:_t,60:Sr,84:on,105:gn,109:On,110:as,111:Ir,112:un}),e(Bn,[2,126],{120:168,10:[1,285],14:Ie,44:Ee,60:Ue,89:Me,105:Xe,106:je,109:Qe,111:St,114:pt,115:Vt,116:Xt}),e(Bn,[2,127],{120:168,10:[1,286],14:Ie,44:Ee,60:Ue,89:Me,105:Xe,106:je,109:Qe,111:St,114:pt,115:Vt,116:Xt}),e(Bn,[2,114]),{31:[1,287],67:hn,82:219,116:Ei,117:yn,118:Li},{6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,288],33:24,34:E,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:K,111:Q,113:42,114:Z,115:Y,116:j,121:te,122:X,123:W,124:J,125:z},{10:_t,60:Sr,84:on,92:289,105:gn,107:242,108:243,109:On,110:as,111:Ir,112:un},{10:_t,60:Sr,84:on,92:290,105:gn,107:242,108:243,109:On,110:as,111:Ir,112:un},e(We,[2,62]),e(ie,[2,33]),e(Bn,[2,124],{106:zn}),e(Bn,[2,125],{106:zn})],defaultActions:{},parseError:I(function(Tn,Pi){if(Pi.recoverable)this.trace(Tn);else{var Mi=Error(Tn);throw Mi.hash=Pi,Mi}},"parseError"),parse:I(function(Tn){var Pi=this,Mi=[0],Wn=[],ba=[null],Lt=[],Gc=this.table,zt="",fs=0,ya=0,rs=0,xs=2,Yr=1,Zl=Lt.slice.call(arguments,1),dt=Object.create(this.lexer),ro={yy:{}};for(var yt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,yt))ro.yy[yt]=this.yy[yt];if(dt.setInput(Tn,ro.yy),ro.yy.lexer=dt,ro.yy.parser=this,typeof dt.yylloc>"u")dt.yylloc={};var fl=dt.yylloc;Lt.push(fl);var lb=dt.options&&dt.options.ranges;if(typeof ro.yy.parseError==="function")this.parseError=ro.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function dd(Uu){Mi.length=Mi.length-2*Uu,ba.length=ba.length-Uu,Lt.length=Lt.length-Uu}I(dd,"popStack");function cb(){var Uu=Wn.pop()||dt.lex()||Yr;if(typeof Uu!=="number"){if(Uu instanceof Array)Wn=Uu,Uu=Wn.pop();Uu=Pi.symbols_[Uu]||Uu}return Uu}I(cb,"lex");var $u,c1,pl,kh,Lv,Mv,u1={},Kp,xf,Xh,pm;while(!0){if(pl=Mi[Mi.length-1],this.defaultActions[pl])kh=this.defaultActions[pl];else{if($u===null||typeof $u>"u")$u=cb();kh=Gc[pl]&&Gc[pl][$u]}if(typeof kh>"u"||!kh.length||!kh[0]){var $0="";pm=[];for(Kp in Gc[pl])if(this.terminals_[Kp]&&Kp>xs)pm.push("'"+this.terminals_[Kp]+"'");if(dt.showPosition)$0="Parse error on line "+(fs+1)+`: -`+dt.showPosition()+` -Expecting `+pm.join(", ")+", got '"+(this.terminals_[$u]||$u)+"'";else $0="Parse error on line "+(fs+1)+": Unexpected "+($u==Yr?"end of input":"'"+(this.terminals_[$u]||$u)+"'");this.parseError($0,{text:dt.match,token:this.terminals_[$u]||$u,line:dt.yylineno,loc:fl,expected:pm})}if(kh[0]instanceof Array&&kh.length>1)throw Error("Parse Error: multiple actions possible at state: "+pl+", token: "+$u);switch(kh[0]){case 1:if(Mi.push($u),ba.push(dt.yytext),Lt.push(dt.yylloc),Mi.push(kh[1]),$u=null,!c1){if(ya=dt.yyleng,zt=dt.yytext,fs=dt.yylineno,fl=dt.yylloc,rs>0)rs--}else $u=c1,c1=null;break;case 2:if(xf=this.productions_[kh[1]][1],u1.$=ba[ba.length-xf],u1._$={first_line:Lt[Lt.length-(xf||1)].first_line,last_line:Lt[Lt.length-1].last_line,first_column:Lt[Lt.length-(xf||1)].first_column,last_column:Lt[Lt.length-1].last_column},lb)u1._$.range=[Lt[Lt.length-(xf||1)].range[0],Lt[Lt.length-1].range[1]];if(Mv=this.performAction.apply(u1,[zt,ya,fs,ro.yy,kh[1],ba,Lt].concat(Zl)),typeof Mv<"u")return Mv;if(xf)Mi=Mi.slice(0,-1*xf*2),ba=ba.slice(0,-1*xf),Lt=Lt.slice(0,-1*xf);Mi.push(this.productions_[kh[1]][0]),ba.push(u1.$),Lt.push(u1._$),Xh=Gc[Mi[Mi.length-2]][Mi[Mi.length-1]],Mi.push(Xh);break;case 3:return!0}}return!0},"parse")},os=function(){var Yn={EOF:1,parseError:I(function(Pi,Mi){if(this.yy.parser)this.yy.parser.parseError(Pi,Mi);else throw Error(Pi)},"parseError"),setInput:I(function(Tn,Pi){if(this.yy=Pi||this.yy||{},this._input=Tn,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var Tn=this._input[0];this.yytext+=Tn,this.yyleng++,this.offset++,this.match+=Tn,this.matched+=Tn;var Pi=Tn.match(/(?:\r\n?|\n).*/g);if(Pi)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),Tn},"input"),unput:I(function(Tn){var Pi=Tn.length,Mi=Tn.split(/(?:\r\n?|\n)/g);this._input=Tn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Pi),this.offset-=Pi;var Wn=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Mi.length-1)this.yylineno-=Mi.length-1;var ba=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Mi?(Mi.length===Wn.length?this.yylloc.first_column:0)+Wn[Wn.length-Mi.length].length-Mi[0].length:this.yylloc.first_column-Pi},this.options.ranges)this.yylloc.range=[ba[0],ba[0]+this.yyleng-Pi];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,i){let a=this.isLinkData(i)?i.id.replace("@",""):void 0;Ze.info("addLink",e,r,a);for(let o of e)for(let l of r){let h=o===e[e.length-1],d=l===r[0];if(h&&d)this.addSingleLink(o,l,i,a);else this.addSingleLink(o,l,i,void 0)}}updateLinkInterpolate(e,r){e.forEach((i)=>{if(i==="default")this.edges.defaultInterpolate=r;else this.edges[i].interpolate=r})}updateLink(e,r){e.forEach((i)=>{if(typeof i==="number"&&i>=this.edges.length)throw Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(i==="default")this.edges.defaultStyle=r;else if(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some((a)=>a?.startsWith("fill")))this.edges[i]?.style?.push("fill:none")})}addClass(e,r){let i=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((a)=>{let o=this.classes.get(a);if(o===void 0)o={id:a,styles:[],textStyles:[]},this.classes.set(a,o);if(i!==void 0&&i!==null)i.forEach((l)=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)})})}setDirection(e){if(this.direction=e.trim(),/.*/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let i of e.split(",")){let a=this.vertices.get(i);if(a)a.classes.push(r);let o=this.edges.find((h)=>h.id===i);if(o)o.classes.push(r);let l=this.subGraphLookup.get(i);if(l)l.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let i of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}setClickFun(e,r,i){if(Ar().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=this.lookUpDomId(e),h=document.querySelector(`[id="${l}"]`);if(h!==null)h.addEventListener("click",()=>{Ts.runFunc(r,...a)},!1)})}setLink(e,r,i){e.split(",").forEach((a)=>{let o=this.vertices.get(a);if(o!==void 0)o.link=Ts.formatUrl(r,this.config),o.linkTarget=i}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,i){e.split(",").forEach((a)=>{this.setClickFun(a,r,i)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(e){let r=E7();xn(e).select("svg").selectAll("g.node").on("mouseover",(o)=>{let l=xn(o.currentTarget),h=l.attr("title");if(h===null)return;let d=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(l.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.bottom+"px"),r.html(Wb.sanitize(h)),l.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),xn(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.diagramId="",this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ar(),qs()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,i){let a=e.text.trim(),o=i.text;if(e===i&&/\s/.exec(i.text))a=void 0;let h=I((w)=>{let T={boolean:{},number:{},string:{}},x=[],k;return{nodeList:w.filter(function(R){let N=typeof R;if(R.stmt&&R.stmt==="dir")return k=R.value,!1;if(R.trim()==="")return!1;if(N in T)return T[N].hasOwnProperty(R)?!1:T[N][R]=!0;else return x.includes(R)?!1:x.push(R)}),dir:k}},"uniq")(r.flat()),{nodeList:d,dir:p}=h,m=Ar().flowchart??{};if(p=p??(m.inheritDir?this.getDirection()??Ar().direction??void 0:void 0),this.version==="gen-1")for(let w=0;ww!==a);let v=this.subGraphs.find((w)=>w.id===a);if(v)v.nodes.push(...y.nodes);else this.subGraphs.push(y);return this.subGraphLookup.set(a,v??y),a}getPosForId(e){for(let[r,i]of this.subGraphs.entries())if(i.id===e)return r;return-1}indexNodes2(e,r){let i=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let a=0,o=1;while(a=0){let h=this.indexNodes2(e,l);if(h.result)return{result:!0,count:o+h.count};else o=o+h.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}destructStartLink(e){let r=e.trim(),i="arrow_open";switch(r[0]){case"<":i="arrow_point",r=r.slice(1);break;case"x":i="arrow_cross",r=r.slice(1);break;case"o":i="arrow_circle",r=r.slice(1);break}let a="normal";if(r.includes("="))a="thick";if(r.includes("."))a="dotted";return{type:i,stroke:a}}countChar(e,r){let i=r.length,a=0;for(let o=0;o":if(a="arrow_point",r.startsWith("<"))a="double_"+a,i=i.slice(1);break;case"o":if(a="arrow_circle",r.startsWith("o"))a="double_"+a,i=i.slice(1);break}let o="normal",l=i.length-1;if(i.startsWith("="))o="thick";if(i.startsWith("~"))o="invisible";let h=this.countChar(".",i);if(h)o="dotted",l=h;return{type:a,stroke:o,length:l}}destructLink(e,r){let i=this.destructEndLink(e),a;if(r){if(a=this.destructStartLink(r),a.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};if(a.type==="arrow_open")a.type=i.type;else{if(a.type!==i.type)return{type:"INVALID",stroke:"INVALID"};a.type="double_"+a.type}if(a.type==="double_arrow")a.type="double_arrow_point";return a.length=i.length,a}return i}exists(e,r){for(let i of e)if(i.nodes.includes(r))return!0;return!1}makeUniq(e,r){let i=[];return e.nodes.forEach((a,o)=>{if(!this.exists(r,a))i.push(e.nodes[o])}),{nodes:i}}getTypeFromVertex(e){if(e.img)return"imageSquare";if(e.icon){if(e.form==="circle")return"iconCircle";if(e.form==="square")return"iconSquare";if(e.form==="rounded")return"iconRounded";return"icon"}switch(e.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return e.type}}findNode(e,r){return e.find((i)=>i.id===r)}destructEdgeType(e){let r="none",i="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":i=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),i=r;break}return{arrowTypeStart:r,arrowTypeEnd:i}}addNodeFromVertex(e,r,i,a,o,l){let h=i.get(e.id),d=a.get(e.id)??!1,p=this.findNode(r,e.id);if(p)p.cssStyles=e.styles,p.cssCompiledStyles=this.getCompiledStyles(e.classes),p.cssClasses=e.classes.join(" ");else{let m={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:h,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:l,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),icon:e.icon,pos:e.pos,img:e.img,assetWidth:e.assetWidth,assetHeight:e.assetHeight,constraint:e.constraint};if(d)r.push({...m,isGroup:!0,shape:"rect"});else r.push({...m,isGroup:!1,shape:this.getTypeFromVertex(e),minWidth:o.flowchart?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let i of e){let a=this.classes.get(i);if(a?.styles)r=[...r,...a.styles??[]].map((o)=>o.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((o)=>o.trim())}return r}getData(){let e=Ar(),r=[],i=[],a=this.getSubGraphs(),o=new Map,l=new Map,h=new Map;for(let R of a)for(let N of R.nodes)if(this.subGraphLookup.has(N))h.set(N,R.id);let d=new Map,p=new Map;for(let R of a){let N=h.get(R.id);if(N!==void 0)p.set(N,[...p.get(N)??[],R.id])}let m=0,y=I((R)=>{d.set(R,m++);for(let N of p.get(R)??[])y(N)},"walk");for(let R of a)if(!h.has(R.id))y(R.id);let v=I((R)=>this.subGraphLookup.get(R)?.metadata?.view==="collapsed","isCollapsed"),w=I((R)=>{let N,L=new Set,B=R;while(B!==void 0&&!L.has(B)){if(L.add(B),v(B))N=B;B=h.get(B)}return N},"outermostCollapsed"),T=new Set,x=new Map;for(let R of a){let N=w(R.id);if(N===void 0)continue;if(R.id!==N)T.add(R.id),x.set(R.id,N);for(let L of R.nodes){if(L===N)continue;T.add(L),x.set(L,N)}}for(let R=a.length-1;R>=0;R--){let N=a[R];if(T.has(N.id))continue;if(N.nodes.length>0)l.set(N.id,!0);for(let L of N.nodes)o.set(L,N.id)}for(let R=a.length-1;R>=0;R--){let N=a[R];if(T.has(N.id))continue;if(N.metadata?.view==="collapsed")r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"collapsedGroup",dir:N.dir,isGroup:!1,look:e.look,colorIndex:d.get(N.id)});else r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"rect",dir:N.dir,isGroup:!0,look:e.look,colorIndex:d.get(N.id),metadata:N.metadata})}this.getVertices().forEach((R)=>{if(T.has(R.id))return;this.addNodeFromVertex(R,r,o,l,e,e.look||"classic")});let A=this.getEdges();return A.forEach((R,N)=>{let{arrowTypeStart:L,arrowTypeEnd:B}=this.destructEdgeType(R.type),D=[...A.defaultStyle??[]],P=x.get(R.start)??R.start,F=x.get(R.end)??R.end;if(P===F&&(x.has(R.start)||x.has(R.end)))return;if(R.style)D.push(...R.style);let H={id:j_(P,F,{counter:N,prefix:"L"},R.id),isUserDefinedId:R.isUserDefinedId,start:P,end:F,type:R.type??"normal",label:R.text,labelType:R.labelType,labelpos:"c",thickness:R.stroke,minlen:R.length,classes:R?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":L,arrowTypeEnd:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":B,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(R.classes),labelStyle:D,style:D,pattern:R.stroke,look:e.look,animate:R.animate,animation:R.animation,curve:R.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve};i.push(H)}),{nodes:r,edges:i,other:{},config:e}}defaultConfig(){return KV.flowchart}},sfi=I(function(e,r){return r.db.getClasses()},"getClasses"),ofi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing state diagram (v2)",r);let{securityLevel:o,flowchart:l,layout:h}=Ar();a.db.setDiagramId(r),Ze.debug("Before getData: ");let d=a.db.getData();Ze.debug("Data: ",d);let p=ly(r,o),m=a.db.getDirection();d.type=a.type,d.layoutAlgorithm=oy(h),d.direction=m,d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["point","circle","cross"],d.diagramId=r,Ze.debug("REF1:",d),await sy(d,p);let y=d.config.flowchart?.diagramPadding??8;Ts.insertTitle(p,"flowchartTitleText",l?.titleTopMargin||0,a.db.getDiagramTitle()),a1(p,y,"flowchart",l?.useMaxWidth||!1)},"draw"),lfi={getClasses:sfi,draw:ofi},Kot=function(){var e=I(function(Yn,Tn,Pi,Mi){for(Pi=Pi||{},Mi=Yn.length;Mi--;Pi[Yn[Mi]]=Tn);return Pi},"o"),r=[1,4],i=[1,3],a=[1,5],o=[1,8,9,10,11,27,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],l=[2,2],h=[1,13],d=[1,14],p=[1,15],m=[1,16],y=[1,23],v=[1,25],w=[1,26],T=[1,27],x=[1,50],k=[1,49],A=[1,29],R=[1,30],N=[1,31],L=[1,32],B=[1,33],D=[1,45],P=[1,47],F=[1,43],H=[1,48],W=[1,44],X=[1,51],Q=[1,46],Y=[1,52],K=[1,53],J=[1,34],Z=[1,35],j=[1,36],ee=[1,37],z=[1,38],ne=[1,58],ie=[1,8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],se=[1,62],oe=[1,61],he=[1,63],ye=[8,9,11,75,77,78],Se=[1,79],Ie=[1,92],Ee=[1,97],ze=[1,96],Me=[1,93],Xe=[1,89],Ye=[1,95],Qe=[1,91],xt=[1,98],dt=[1,94],zt=[1,99],Kt=[1,90],rr=[8,9,10,11,40,75,77,78],je=[8,9,10,11,40,46,75,77,78],Nt=[8,9,10,11,29,40,44,46,48,50,52,54,56,58,60,63,65,67,68,70,75,77,78,89,102,105,106,109,111,114,115,116],ct=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],bt=[44,60,89,102,105,106,109,111,114,115,116],Pe=[1,122],Ue=[1,123],qe=[1,125],Ke=[1,124],Je=[44,60,62,74,89,102,105,106,109,111,114,115,116],De=[1,134],le=[1,148],pe=[1,149],fe=[1,150],be=[1,151],Ge=[1,136],ke=[1,138],we=[1,142],Ae=[1,143],at=[1,144],ut=[1,145],gt=[1,146],vt=[1,147],ir=[1,152],qt=[1,153],cr=[1,132],tr=[1,133],Zt=[1,140],lr=[1,135],Xt=[1,139],In=[1,137],Et=[8,9,10,11,27,32,34,36,38,44,60,84,85,86,87,88,89,102,105,106,109,111,114,115,116,121,122,123,124,125],Xn=[1,155],Yt=[1,157],Bn=[8,9,11],si=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],dn=[1,177],Ii=[1,173],Vn=[1,174],Ei=[1,178],vn=[1,175],Li=[1,176],Ia=[77,116,119],tt=[8,9,10,11,12,14,27,29,32,44,60,75,84,85,86,87,88,89,90,105,109,111,114,115,116],Fn=[10,106],Hn=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],_t=[1,248],Sr=[1,246],ln=[1,250],mn=[1,244],On=[1,245],as=[1,247],Ir=[1,249],hn=[1,251],zn=[1,269],Di=[8,9,11,106],aa=[8,9,10,11,60,84,105,106,109,110,111,112],Ca={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,NODIR:13,DIR:14,FirstStmtSeparator:15,ending:16,endToken:17,spaceList:18,spaceListNewline:19,vertexStatement:20,separator:21,styleStatement:22,linkStyleStatement:23,classDefStatement:24,classStatement:25,clickStatement:26,subgraph:27,textNoTags:28,SQS:29,text:30,SQE:31,end:32,direction:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,shapeData:39,SHAPE_DATA:40,link:41,node:42,styledVertex:43,AMP:44,vertex:45,STYLE_SEPARATOR:46,idString:47,DOUBLECIRCLESTART:48,DOUBLECIRCLEEND:49,PS:50,PE:51,"(-":52,"-)":53,STADIUMSTART:54,STADIUMEND:55,SUBROUTINESTART:56,SUBROUTINEEND:57,VERTEX_WITH_PROPS_START:58,"NODE_STRING[field]":59,COLON:60,"NODE_STRING[value]":61,PIPE:62,CYLINDERSTART:63,CYLINDEREND:64,DIAMOND_START:65,DIAMOND_STOP:66,TAGEND:67,TRAPSTART:68,TRAPEND:69,INVTRAPSTART:70,INVTRAPEND:71,linkStatement:72,arrowText:73,TESTSTR:74,START_LINK:75,edgeText:76,LINK:77,LINK_ID:78,edgeTextToken:79,STR:80,MD_STR:81,textToken:82,keywords:83,STYLE:84,LINKSTYLE:85,CLASSDEF:86,CLASS:87,CLICK:88,DOWN:89,UP:90,textNoTagsToken:91,stylesOpt:92,"idString[vertex]":93,"idString[class]":94,CALLBACKNAME:95,CALLBACKARGS:96,HREF:97,LINK_TARGET:98,"STR[link]":99,"STR[tooltip]":100,alphaNum:101,DEFAULT:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,NODE_STRING:109,UNIT:110,BRKT:111,PCT:112,idStringToken:113,MINUS:114,MULT:115,UNICODE_TEXT:116,TEXT:117,TAGSTART:118,EDGE_TEXT:119,alphaNumToken:120,direction_tb:121,direction_bt:122,direction_rl:123,direction_lr:124,direction_td:125,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"NODIR",14:"DIR",27:"subgraph",29:"SQS",31:"SQE",32:"end",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",40:"SHAPE_DATA",44:"AMP",46:"STYLE_SEPARATOR",48:"DOUBLECIRCLESTART",49:"DOUBLECIRCLEEND",50:"PS",51:"PE",52:"(-",53:"-)",54:"STADIUMSTART",55:"STADIUMEND",56:"SUBROUTINESTART",57:"SUBROUTINEEND",58:"VERTEX_WITH_PROPS_START",59:"NODE_STRING[field]",60:"COLON",61:"NODE_STRING[value]",62:"PIPE",63:"CYLINDERSTART",64:"CYLINDEREND",65:"DIAMOND_START",66:"DIAMOND_STOP",67:"TAGEND",68:"TRAPSTART",69:"TRAPEND",70:"INVTRAPSTART",71:"INVTRAPEND",74:"TESTSTR",75:"START_LINK",77:"LINK",78:"LINK_ID",80:"STR",81:"MD_STR",84:"STYLE",85:"LINKSTYLE",86:"CLASSDEF",87:"CLASS",88:"CLICK",89:"DOWN",90:"UP",93:"idString[vertex]",94:"idString[class]",95:"CALLBACKNAME",96:"CALLBACKARGS",97:"HREF",98:"LINK_TARGET",99:"STR[link]",100:"STR[tooltip]",102:"DEFAULT",104:"INTERPOLATE",105:"NUM",106:"COMMA",109:"NODE_STRING",110:"UNIT",111:"BRKT",112:"PCT",114:"MINUS",115:"MULT",116:"UNICODE_TEXT",117:"TEXT",118:"TAGSTART",119:"EDGE_TEXT",121:"direction_tb",122:"direction_bt",123:"direction_rl",124:"direction_lr",125:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,3],[16,2],[16,1],[17,1],[17,1],[17,1],[15,1],[15,1],[15,2],[19,2],[19,2],[19,1],[19,1],[18,2],[18,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,6],[7,4],[7,1],[7,2],[7,2],[7,1],[21,1],[21,1],[21,1],[39,2],[39,1],[20,4],[20,3],[20,4],[20,2],[20,2],[20,1],[42,1],[42,6],[42,5],[43,1],[43,3],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,8],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[41,2],[41,3],[41,3],[41,1],[41,3],[41,4],[76,1],[76,2],[76,1],[76,1],[72,1],[72,2],[73,3],[30,1],[30,2],[30,1],[30,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[28,1],[28,2],[28,1],[28,1],[24,5],[25,5],[26,2],[26,4],[26,3],[26,5],[26,3],[26,5],[26,5],[26,7],[26,2],[26,4],[26,2],[26,4],[26,4],[26,6],[22,5],[23,5],[23,5],[23,9],[23,9],[23,7],[23,7],[103,1],[103,3],[92,1],[92,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[113,1],[82,1],[82,1],[82,1],[82,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[79,1],[79,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[120,1],[47,1],[47,2],[101,1],[101,2],[33,1],[33,1],[33,1],[33,1],[33,1]],performAction:I(function(Tn,Pi,Mi,Wn,ba,Lt,Gc){var Vt=Lt.length-1;switch(ba){case 2:this.$=[];break;case 3:if(!Array.isArray(Lt[Vt])||Lt[Vt].length>0)Lt[Vt-1].push(Lt[Vt]);this.$=Lt[Vt-1];break;case 4:case 183:this.$=Lt[Vt];break;case 11:Wn.setDirection("TB"),this.$="TB";break;case 12:Wn.setDirection(Lt[Vt-1]),this.$=Lt[Vt-1];break;case 27:this.$=Lt[Vt-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Wn.addSubGraph(Lt[Vt-6],Lt[Vt-1],Lt[Vt-4]);break;case 34:this.$=Wn.addSubGraph(Lt[Vt-3],Lt[Vt-1],Lt[Vt-3]);break;case 35:this.$=Wn.addSubGraph(void 0,Lt[Vt-1],void 0);break;case 37:this.$=Lt[Vt].trim(),Wn.setAccTitle(this.$);break;case 38:case 39:this.$=Lt[Vt].trim(),Wn.setAccDescription(this.$);break;case 43:this.$=Lt[Vt-1]+Lt[Vt];break;case 44:this.$=Lt[Vt];break;case 45:Wn.addVertex(Lt[Vt-1][Lt[Vt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Lt[Vt]),Wn.addLink(Lt[Vt-3].stmt,Lt[Vt-1],Lt[Vt-2]),this.$={stmt:Lt[Vt-1],nodes:Lt[Vt-1].concat(Lt[Vt-3].nodes)};break;case 46:Wn.addLink(Lt[Vt-2].stmt,Lt[Vt],Lt[Vt-1]),this.$={stmt:Lt[Vt],nodes:Lt[Vt].concat(Lt[Vt-2].nodes)};break;case 47:Wn.addLink(Lt[Vt-3].stmt,Lt[Vt-1],Lt[Vt-2]),this.$={stmt:Lt[Vt-1],nodes:Lt[Vt-1].concat(Lt[Vt-3].nodes)};break;case 48:this.$={stmt:Lt[Vt-1],nodes:Lt[Vt-1]};break;case 49:Wn.addVertex(Lt[Vt-1][Lt[Vt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Lt[Vt]),this.$={stmt:Lt[Vt-1],nodes:Lt[Vt-1],shapeData:Lt[Vt]};break;case 50:this.$={stmt:Lt[Vt],nodes:Lt[Vt]};break;case 51:this.$=[Lt[Vt]];break;case 52:Wn.addVertex(Lt[Vt-5][Lt[Vt-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,Lt[Vt-4]),this.$=Lt[Vt-5].concat(Lt[Vt]);break;case 53:this.$=Lt[Vt-4].concat(Lt[Vt]);break;case 54:this.$=Lt[Vt];break;case 55:this.$=Lt[Vt-2],Wn.setClass(Lt[Vt-2],Lt[Vt]);break;case 56:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"square");break;case 57:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"doublecircle");break;case 58:this.$=Lt[Vt-5],Wn.addVertex(Lt[Vt-5],Lt[Vt-2],"circle");break;case 59:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"ellipse");break;case 60:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"stadium");break;case 61:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"subroutine");break;case 62:this.$=Lt[Vt-7],Wn.addVertex(Lt[Vt-7],Lt[Vt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[Lt[Vt-5],Lt[Vt-3]]]));break;case 63:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"cylinder");break;case 64:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"round");break;case 65:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"diamond");break;case 66:this.$=Lt[Vt-5],Wn.addVertex(Lt[Vt-5],Lt[Vt-2],"hexagon");break;case 67:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"odd");break;case 68:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"trapezoid");break;case 69:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"inv_trapezoid");break;case 70:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"lean_right");break;case 71:this.$=Lt[Vt-3],Wn.addVertex(Lt[Vt-3],Lt[Vt-1],"lean_left");break;case 72:this.$=Lt[Vt],Wn.addVertex(Lt[Vt]);break;case 73:Lt[Vt-1].text=Lt[Vt],this.$=Lt[Vt-1];break;case 74:case 75:Lt[Vt-2].text=Lt[Vt-1],this.$=Lt[Vt-2];break;case 76:this.$=Lt[Vt];break;case 77:var fs=Wn.destructLink(Lt[Vt],Lt[Vt-2]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length,text:Lt[Vt-1]};break;case 78:var fs=Wn.destructLink(Lt[Vt],Lt[Vt-2]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length,text:Lt[Vt-1],id:Lt[Vt-3]};break;case 79:this.$={text:Lt[Vt],type:"text"};break;case 80:this.$={text:Lt[Vt-1].text+""+Lt[Vt],type:Lt[Vt-1].type};break;case 81:this.$={text:Lt[Vt],type:"string"};break;case 82:this.$={text:Lt[Vt],type:"markdown"};break;case 83:var fs=Wn.destructLink(Lt[Vt]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length};break;case 84:var fs=Wn.destructLink(Lt[Vt]);this.$={type:fs.type,stroke:fs.stroke,length:fs.length,id:Lt[Vt-1]};break;case 85:this.$=Lt[Vt-1];break;case 86:this.$={text:Lt[Vt],type:"text"};break;case 87:this.$={text:Lt[Vt-1].text+""+Lt[Vt],type:Lt[Vt-1].type};break;case 88:this.$={text:Lt[Vt],type:"string"};break;case 89:case 104:this.$={text:Lt[Vt],type:"markdown"};break;case 101:this.$={text:Lt[Vt],type:"text"};break;case 102:this.$={text:Lt[Vt-1].text+""+Lt[Vt],type:Lt[Vt-1].type};break;case 103:this.$={text:Lt[Vt],type:"text"};break;case 105:this.$=Lt[Vt-4],Wn.addClass(Lt[Vt-2],Lt[Vt]);break;case 106:this.$=Lt[Vt-4],Wn.setClass(Lt[Vt-2],Lt[Vt]);break;case 107:case 115:this.$=Lt[Vt-1],Wn.setClickEvent(Lt[Vt-1],Lt[Vt]);break;case 108:case 116:this.$=Lt[Vt-3],Wn.setClickEvent(Lt[Vt-3],Lt[Vt-2]),Wn.setTooltip(Lt[Vt-3],Lt[Vt]);break;case 109:this.$=Lt[Vt-2],Wn.setClickEvent(Lt[Vt-2],Lt[Vt-1],Lt[Vt]);break;case 110:this.$=Lt[Vt-4],Wn.setClickEvent(Lt[Vt-4],Lt[Vt-3],Lt[Vt-2]),Wn.setTooltip(Lt[Vt-4],Lt[Vt]);break;case 111:this.$=Lt[Vt-2],Wn.setLink(Lt[Vt-2],Lt[Vt]);break;case 112:this.$=Lt[Vt-4],Wn.setLink(Lt[Vt-4],Lt[Vt-2]),Wn.setTooltip(Lt[Vt-4],Lt[Vt]);break;case 113:this.$=Lt[Vt-4],Wn.setLink(Lt[Vt-4],Lt[Vt-2],Lt[Vt]);break;case 114:this.$=Lt[Vt-6],Wn.setLink(Lt[Vt-6],Lt[Vt-4],Lt[Vt]),Wn.setTooltip(Lt[Vt-6],Lt[Vt-2]);break;case 117:this.$=Lt[Vt-1],Wn.setLink(Lt[Vt-1],Lt[Vt]);break;case 118:this.$=Lt[Vt-3],Wn.setLink(Lt[Vt-3],Lt[Vt-2]),Wn.setTooltip(Lt[Vt-3],Lt[Vt]);break;case 119:this.$=Lt[Vt-3],Wn.setLink(Lt[Vt-3],Lt[Vt-2],Lt[Vt]);break;case 120:this.$=Lt[Vt-5],Wn.setLink(Lt[Vt-5],Lt[Vt-4],Lt[Vt]),Wn.setTooltip(Lt[Vt-5],Lt[Vt-2]);break;case 121:this.$=Lt[Vt-4],Wn.addVertex(Lt[Vt-2],void 0,void 0,Lt[Vt]);break;case 122:this.$=Lt[Vt-4],Wn.updateLink([Lt[Vt-2]],Lt[Vt]);break;case 123:this.$=Lt[Vt-4],Wn.updateLink(Lt[Vt-2],Lt[Vt]);break;case 124:this.$=Lt[Vt-8],Wn.updateLinkInterpolate([Lt[Vt-6]],Lt[Vt-2]),Wn.updateLink([Lt[Vt-6]],Lt[Vt]);break;case 125:this.$=Lt[Vt-8],Wn.updateLinkInterpolate(Lt[Vt-6],Lt[Vt-2]),Wn.updateLink(Lt[Vt-6],Lt[Vt]);break;case 126:this.$=Lt[Vt-6],Wn.updateLinkInterpolate([Lt[Vt-4]],Lt[Vt]);break;case 127:this.$=Lt[Vt-6],Wn.updateLinkInterpolate(Lt[Vt-4],Lt[Vt]);break;case 128:case 130:this.$=[Lt[Vt]];break;case 129:case 131:Lt[Vt-2].push(Lt[Vt]),this.$=Lt[Vt-2];break;case 133:this.$=Lt[Vt-1]+Lt[Vt];break;case 181:this.$=Lt[Vt];break;case 182:this.$=Lt[Vt-1]+""+Lt[Vt];break;case 184:this.$=Lt[Vt-1]+""+Lt[Vt];break;case 185:this.$={stmt:"dir",value:"TB"};break;case 186:this.$={stmt:"dir",value:"BT"};break;case 187:this.$={stmt:"dir",value:"RL"};break;case 188:this.$={stmt:"dir",value:"LR"};break;case 189:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,9:r,10:i,12:a},{1:[3]},e(o,l,{5:6}),{4:7,9:r,10:i,12:a},{4:8,9:r,10:i,12:a},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,33:24,34:v,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K,121:J,122:Z,123:j,124:ee,125:z},e(o,[2,9]),e(o,[2,10]),e(o,[2,11]),{8:[1,55],9:[1,56],10:ne,15:54,18:57},e(ie,[2,3]),e(ie,[2,4]),e(ie,[2,5]),e(ie,[2,6]),e(ie,[2,7]),e(ie,[2,8]),{8:se,9:oe,11:he,21:59,41:60,72:64,75:[1,65],77:[1,67],78:[1,66]},{8:se,9:oe,11:he,21:68},{8:se,9:oe,11:he,21:69},{8:se,9:oe,11:he,21:70},{8:se,9:oe,11:he,21:71},{8:se,9:oe,11:he,21:72},{8:se,9:oe,10:[1,73],11:he,21:74},e(ie,[2,36]),{35:[1,75]},{37:[1,76]},e(ie,[2,39]),e(ye,[2,50],{18:77,39:78,10:ne,40:Se}),{10:[1,80]},{10:[1,81]},{10:[1,82]},{10:[1,83]},{14:Ie,44:Ee,60:ze,80:[1,87],89:Me,95:[1,84],97:[1,85],101:86,105:Xe,106:Ye,109:Qe,111:xt,114:dt,115:zt,116:Kt,120:88},e(ie,[2,185]),e(ie,[2,186]),e(ie,[2,187]),e(ie,[2,188]),e(ie,[2,189]),e(rr,[2,51]),e(rr,[2,54],{46:[1,100]}),e(je,[2,72],{113:113,29:[1,101],44:x,48:[1,102],50:[1,103],52:[1,104],54:[1,105],56:[1,106],58:[1,107],60:k,63:[1,108],65:[1,109],67:[1,110],68:[1,111],70:[1,112],89:D,102:P,105:F,106:H,109:W,111:X,114:Q,115:Y,116:K}),e(Nt,[2,181]),e(Nt,[2,142]),e(Nt,[2,143]),e(Nt,[2,144]),e(Nt,[2,145]),e(Nt,[2,146]),e(Nt,[2,147]),e(Nt,[2,148]),e(Nt,[2,149]),e(Nt,[2,150]),e(Nt,[2,151]),e(Nt,[2,152]),e(o,[2,12]),e(o,[2,18]),e(o,[2,19]),{9:[1,114]},e(ct,[2,26],{18:115,10:ne}),e(ie,[2,27]),{42:116,43:39,44:x,45:40,47:41,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},e(ie,[2,40]),e(ie,[2,41]),e(ie,[2,42]),e(bt,[2,76],{73:117,62:[1,119],74:[1,118]}),{76:120,79:121,80:Pe,81:Ue,116:qe,119:Ke},{75:[1,126],77:[1,127]},e(Je,[2,83]),e(ie,[2,28]),e(ie,[2,29]),e(ie,[2,30]),e(ie,[2,31]),e(ie,[2,32]),{10:De,12:le,14:pe,27:fe,28:128,32:be,44:Ge,60:ke,75:we,80:[1,130],81:[1,131],83:141,84:Ae,85:at,86:ut,87:gt,88:vt,89:ir,90:qt,91:129,105:cr,109:tr,111:Zt,114:lr,115:Xt,116:In},e(Et,l,{5:154}),e(ie,[2,37]),e(ie,[2,38]),e(ye,[2,48],{44:Xn}),e(ye,[2,49],{18:156,10:ne,40:Yt}),e(rr,[2,44]),{44:x,47:158,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},{102:[1,159],103:160,105:[1,161]},{44:x,47:162,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},{44:x,47:163,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},e(Bn,[2,107],{10:[1,164],96:[1,165]}),{80:[1,166]},e(Bn,[2,115],{120:168,10:[1,167],14:Ie,44:Ee,60:ze,89:Me,105:Xe,106:Ye,109:Qe,111:xt,114:dt,115:zt,116:Kt}),e(Bn,[2,117],{10:[1,169]}),e(si,[2,183]),e(si,[2,170]),e(si,[2,171]),e(si,[2,172]),e(si,[2,173]),e(si,[2,174]),e(si,[2,175]),e(si,[2,176]),e(si,[2,177]),e(si,[2,178]),e(si,[2,179]),e(si,[2,180]),{44:x,47:170,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},{30:171,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:179,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:181,50:[1,180],67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:182,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:183,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:184,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{109:[1,185]},{30:186,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:187,65:[1,188],67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:189,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:190,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{30:191,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},e(Nt,[2,182]),e(o,[2,20]),e(ct,[2,25]),e(ye,[2,46],{39:192,18:193,10:ne,40:Se}),e(bt,[2,73],{10:[1,194]}),{10:[1,195]},{30:196,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{77:[1,197],79:198,116:qe,119:Ke},e(Ia,[2,79]),e(Ia,[2,81]),e(Ia,[2,82]),e(Ia,[2,168]),e(Ia,[2,169]),{76:199,79:121,80:Pe,81:Ue,116:qe,119:Ke},e(Je,[2,84]),{8:se,9:oe,10:De,11:he,12:le,14:pe,21:201,27:fe,29:[1,200],32:be,44:Ge,60:ke,75:we,83:141,84:Ae,85:at,86:ut,87:gt,88:vt,89:ir,90:qt,91:202,105:cr,109:tr,111:Zt,114:lr,115:Xt,116:In},e(tt,[2,101]),e(tt,[2,103]),e(tt,[2,104]),e(tt,[2,157]),e(tt,[2,158]),e(tt,[2,159]),e(tt,[2,160]),e(tt,[2,161]),e(tt,[2,162]),e(tt,[2,163]),e(tt,[2,164]),e(tt,[2,165]),e(tt,[2,166]),e(tt,[2,167]),e(tt,[2,90]),e(tt,[2,91]),e(tt,[2,92]),e(tt,[2,93]),e(tt,[2,94]),e(tt,[2,95]),e(tt,[2,96]),e(tt,[2,97]),e(tt,[2,98]),e(tt,[2,99]),e(tt,[2,100]),{6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,203],33:24,34:v,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K,121:J,122:Z,123:j,124:ee,125:z},{10:ne,18:204},{44:[1,205]},e(rr,[2,43]),{10:[1,206],44:x,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:113,114:Q,115:Y,116:K},{10:[1,207]},{10:[1,208],106:[1,209]},e(Fn,[2,128]),{10:[1,210],44:x,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:113,114:Q,115:Y,116:K},{10:[1,211],44:x,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:113,114:Q,115:Y,116:K},{80:[1,212]},e(Bn,[2,109],{10:[1,213]}),e(Bn,[2,111],{10:[1,214]}),{80:[1,215]},e(si,[2,184]),{80:[1,216],98:[1,217]},e(rr,[2,55],{113:113,44:x,60:k,89:D,102:P,105:F,106:H,109:W,111:X,114:Q,115:Y,116:K}),{31:[1,218],67:dn,82:219,116:Ei,117:vn,118:Li},e(Hn,[2,86]),e(Hn,[2,88]),e(Hn,[2,89]),e(Hn,[2,153]),e(Hn,[2,154]),e(Hn,[2,155]),e(Hn,[2,156]),{49:[1,220],67:dn,82:219,116:Ei,117:vn,118:Li},{30:221,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{51:[1,222],67:dn,82:219,116:Ei,117:vn,118:Li},{53:[1,223],67:dn,82:219,116:Ei,117:vn,118:Li},{55:[1,224],67:dn,82:219,116:Ei,117:vn,118:Li},{57:[1,225],67:dn,82:219,116:Ei,117:vn,118:Li},{60:[1,226]},{64:[1,227],67:dn,82:219,116:Ei,117:vn,118:Li},{66:[1,228],67:dn,82:219,116:Ei,117:vn,118:Li},{30:229,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},{31:[1,230],67:dn,82:219,116:Ei,117:vn,118:Li},{67:dn,69:[1,231],71:[1,232],82:219,116:Ei,117:vn,118:Li},{67:dn,69:[1,234],71:[1,233],82:219,116:Ei,117:vn,118:Li},e(ye,[2,45],{18:156,10:ne,40:Yt}),e(ye,[2,47],{44:Xn}),e(bt,[2,75]),e(bt,[2,74]),{62:[1,235],67:dn,82:219,116:Ei,117:vn,118:Li},e(bt,[2,77]),e(Ia,[2,80]),{77:[1,236],79:198,116:qe,119:Ke},{30:237,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},e(Et,l,{5:238}),e(tt,[2,102]),e(ie,[2,35]),{43:239,44:x,45:40,47:41,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},{10:ne,18:240},{10:_t,60:Sr,84:ln,92:241,105:mn,107:242,108:243,109:On,110:as,111:Ir,112:hn},{10:_t,60:Sr,84:ln,92:252,104:[1,253],105:mn,107:242,108:243,109:On,110:as,111:Ir,112:hn},{10:_t,60:Sr,84:ln,92:254,104:[1,255],105:mn,107:242,108:243,109:On,110:as,111:Ir,112:hn},{105:[1,256]},{10:_t,60:Sr,84:ln,92:257,105:mn,107:242,108:243,109:On,110:as,111:Ir,112:hn},{44:x,47:258,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},e(Bn,[2,108]),{80:[1,259]},{80:[1,260],98:[1,261]},e(Bn,[2,116]),e(Bn,[2,118],{10:[1,262]}),e(Bn,[2,119]),e(je,[2,56]),e(Hn,[2,87]),e(je,[2,57]),{51:[1,263],67:dn,82:219,116:Ei,117:vn,118:Li},e(je,[2,64]),e(je,[2,59]),e(je,[2,60]),e(je,[2,61]),{109:[1,264]},e(je,[2,63]),e(je,[2,65]),{66:[1,265],67:dn,82:219,116:Ei,117:vn,118:Li},e(je,[2,67]),e(je,[2,68]),e(je,[2,70]),e(je,[2,69]),e(je,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(bt,[2,78]),{31:[1,266],67:dn,82:219,116:Ei,117:vn,118:Li},{6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,267],33:24,34:v,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K,121:J,122:Z,123:j,124:ee,125:z},e(rr,[2,53]),{43:268,44:x,45:40,47:41,60:k,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K},e(Bn,[2,121],{106:zn}),e(Di,[2,130],{108:270,10:_t,60:Sr,84:ln,105:mn,109:On,110:as,111:Ir,112:hn}),e(aa,[2,132]),e(aa,[2,134]),e(aa,[2,135]),e(aa,[2,136]),e(aa,[2,137]),e(aa,[2,138]),e(aa,[2,139]),e(aa,[2,140]),e(aa,[2,141]),e(Bn,[2,122],{106:zn}),{10:[1,271]},e(Bn,[2,123],{106:zn}),{10:[1,272]},e(Fn,[2,129]),e(Bn,[2,105],{106:zn}),e(Bn,[2,106],{113:113,44:x,60:k,89:D,102:P,105:F,106:H,109:W,111:X,114:Q,115:Y,116:K}),e(Bn,[2,110]),e(Bn,[2,112],{10:[1,273]}),e(Bn,[2,113]),{98:[1,274]},{51:[1,275]},{62:[1,276]},{66:[1,277]},{8:se,9:oe,11:he,21:278},e(ie,[2,34]),e(rr,[2,52]),{10:_t,60:Sr,84:ln,105:mn,107:279,108:243,109:On,110:as,111:Ir,112:hn},e(aa,[2,133]),{14:Ie,44:Ee,60:ze,89:Me,101:280,105:Xe,106:Ye,109:Qe,111:xt,114:dt,115:zt,116:Kt,120:88},{14:Ie,44:Ee,60:ze,89:Me,101:281,105:Xe,106:Ye,109:Qe,111:xt,114:dt,115:zt,116:Kt,120:88},{98:[1,282]},e(Bn,[2,120]),e(je,[2,58]),{30:283,67:dn,80:Ii,81:Vn,82:172,116:Ei,117:vn,118:Li},e(je,[2,66]),e(Et,l,{5:284}),e(Di,[2,131],{108:270,10:_t,60:Sr,84:ln,105:mn,109:On,110:as,111:Ir,112:hn}),e(Bn,[2,126],{120:168,10:[1,285],14:Ie,44:Ee,60:ze,89:Me,105:Xe,106:Ye,109:Qe,111:xt,114:dt,115:zt,116:Kt}),e(Bn,[2,127],{120:168,10:[1,286],14:Ie,44:Ee,60:ze,89:Me,105:Xe,106:Ye,109:Qe,111:xt,114:dt,115:zt,116:Kt}),e(Bn,[2,114]),{31:[1,287],67:dn,82:219,116:Ei,117:vn,118:Li},{6:11,7:12,8:h,9:d,10:p,11:m,20:17,22:18,23:19,24:20,25:21,26:22,27:y,32:[1,288],33:24,34:v,36:w,38:T,42:28,43:39,44:x,45:40,47:41,60:k,84:A,85:R,86:N,87:L,88:B,89:D,102:P,105:F,106:H,109:W,111:X,113:42,114:Q,115:Y,116:K,121:J,122:Z,123:j,124:ee,125:z},{10:_t,60:Sr,84:ln,92:289,105:mn,107:242,108:243,109:On,110:as,111:Ir,112:hn},{10:_t,60:Sr,84:ln,92:290,105:mn,107:242,108:243,109:On,110:as,111:Ir,112:hn},e(je,[2,62]),e(ie,[2,33]),e(Bn,[2,124],{106:zn}),e(Bn,[2,125],{106:zn})],defaultActions:{},parseError:I(function(Tn,Pi){if(Pi.recoverable)this.trace(Tn);else{var Mi=Error(Tn);throw Mi.hash=Pi,Mi}},"parseError"),parse:I(function(Tn){var Pi=this,Mi=[0],Wn=[],ba=[null],Lt=[],Gc=this.table,Vt="",fs=0,ya=0,rs=0,xs=2,Yr=1,Zl=Lt.slice.call(arguments,1),ft=Object.create(this.lexer),ro={yy:{}};for(var yt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,yt))ro.yy[yt]=this.yy[yt];if(ft.setInput(Tn,ro.yy),ro.yy.lexer=ft,ro.yy.parser=this,typeof ft.yylloc>"u")ft.yylloc={};var fl=ft.yylloc;Lt.push(fl);var lb=ft.options&&ft.options.ranges;if(typeof ro.yy.parseError==="function")this.parseError=ro.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function dd(Uu){Mi.length=Mi.length-2*Uu,ba.length=ba.length-Uu,Lt.length=Lt.length-Uu}I(dd,"popStack");function cb(){var Uu=Wn.pop()||ft.lex()||Yr;if(typeof Uu!=="number"){if(Uu instanceof Array)Wn=Uu,Uu=Wn.pop();Uu=Pi.symbols_[Uu]||Uu}return Uu}I(cb,"lex");var $u,c1,pl,kh,Lv,Mv,u1={},Kp,xf,Xh,pm;while(!0){if(pl=Mi[Mi.length-1],this.defaultActions[pl])kh=this.defaultActions[pl];else{if($u===null||typeof $u>"u")$u=cb();kh=Gc[pl]&&Gc[pl][$u]}if(typeof kh>"u"||!kh.length||!kh[0]){var $0="";pm=[];for(Kp in Gc[pl])if(this.terminals_[Kp]&&Kp>xs)pm.push("'"+this.terminals_[Kp]+"'");if(ft.showPosition)$0="Parse error on line "+(fs+1)+`: +`+ft.showPosition()+` +Expecting `+pm.join(", ")+", got '"+(this.terminals_[$u]||$u)+"'";else $0="Parse error on line "+(fs+1)+": Unexpected "+($u==Yr?"end of input":"'"+(this.terminals_[$u]||$u)+"'");this.parseError($0,{text:ft.match,token:this.terminals_[$u]||$u,line:ft.yylineno,loc:fl,expected:pm})}if(kh[0]instanceof Array&&kh.length>1)throw Error("Parse Error: multiple actions possible at state: "+pl+", token: "+$u);switch(kh[0]){case 1:if(Mi.push($u),ba.push(ft.yytext),Lt.push(ft.yylloc),Mi.push(kh[1]),$u=null,!c1){if(ya=ft.yyleng,Vt=ft.yytext,fs=ft.yylineno,fl=ft.yylloc,rs>0)rs--}else $u=c1,c1=null;break;case 2:if(xf=this.productions_[kh[1]][1],u1.$=ba[ba.length-xf],u1._$={first_line:Lt[Lt.length-(xf||1)].first_line,last_line:Lt[Lt.length-1].last_line,first_column:Lt[Lt.length-(xf||1)].first_column,last_column:Lt[Lt.length-1].last_column},lb)u1._$.range=[Lt[Lt.length-(xf||1)].range[0],Lt[Lt.length-1].range[1]];if(Mv=this.performAction.apply(u1,[Vt,ya,fs,ro.yy,kh[1],ba,Lt].concat(Zl)),typeof Mv<"u")return Mv;if(xf)Mi=Mi.slice(0,-1*xf*2),ba=ba.slice(0,-1*xf),Lt=Lt.slice(0,-1*xf);Mi.push(this.productions_[kh[1]][0]),ba.push(u1.$),Lt.push(u1._$),Xh=Gc[Mi[Mi.length-2]][Mi[Mi.length-1]],Mi.push(Xh);break;case 3:return!0}}return!0},"parse")},os=function(){var Yn={EOF:1,parseError:I(function(Pi,Mi){if(this.yy.parser)this.yy.parser.parseError(Pi,Mi);else throw Error(Pi)},"parseError"),setInput:I(function(Tn,Pi){if(this.yy=Pi||this.yy||{},this._input=Tn,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var Tn=this._input[0];this.yytext+=Tn,this.yyleng++,this.offset++,this.match+=Tn,this.matched+=Tn;var Pi=Tn.match(/(?:\r\n?|\n).*/g);if(Pi)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),Tn},"input"),unput:I(function(Tn){var Pi=Tn.length,Mi=Tn.split(/(?:\r\n?|\n)/g);this._input=Tn+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Pi),this.offset-=Pi;var Wn=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Mi.length-1)this.yylineno-=Mi.length-1;var ba=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Mi?(Mi.length===Wn.length?this.yylloc.first_column:0)+Wn[Wn.length-Mi.length].length-Mi[0].length:this.yylloc.first_column-Pi},this.options.ranges)this.yylloc.range=[ba[0],ba[0]+this.yyleng-Pi];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(Tn){this.unput(this.match.slice(Tn))},"less"),pastInput:I(function(){var Tn=this.matched.substr(0,this.matched.length-this.match.length);return(Tn.length>20?"...":"")+Tn.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var Tn=this.match;if(Tn.length<20)Tn+=this._input.substr(0,20-Tn.length);return(Tn.substr(0,20)+(Tn.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var Tn=this.pastInput(),Pi=Array(Tn.length+1).join("-");return Tn+this.upcomingInput()+` `+Pi+"^"},"showPosition"),test_match:I(function(Tn,Pi){var Mi,Wn,ba;if(this.options.backtrack_lexer){if(ba={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)ba.yylloc.range=this.yylloc.range.slice(0)}if(Wn=Tn[0].match(/(?:\r\n?|\n).*/g),Wn)this.yylineno+=Wn.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Wn?Wn[Wn.length-1].length-Wn[Wn.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Tn[0].length},this.yytext+=Tn[0],this.match+=Tn[0],this.matches=Tn,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(Tn[0].length),this.matched+=Tn[0],Mi=this.performAction.call(this,this.yy,this,Pi,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(Mi)return Mi;else if(this._backtrack){for(var Lt in ba)this[Lt]=ba[Lt];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var Tn,Pi,Mi,Wn;if(!this._more)this.yytext="",this.match="";var ba=this._currentRules();for(var Lt=0;LtPi[0].length)){if(Pi=Mi,Wn=Lt,this.options.backtrack_lexer)if(Tn=this.test_match(Mi,ba[Lt]),Tn!==!1)return Tn;else if(this._backtrack){Pi=!1;continue}else return!1;else if(!this.options.flex)break}if(Pi){if(Tn=this.test_match(Pi,ba[Wn]),Tn!==!1)return Tn;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Pi=this.next();if(Pi)return Pi;else return this.lex()},"lex"),begin:I(function(Pi){this.conditionStack.push(Pi)},"begin"),popState:I(function(){var Pi=this.conditionStack.length-1;if(Pi>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Pi){if(Pi=this.conditionStack.length-1-Math.abs(Pi||0),Pi>=0)return this.conditionStack[Pi];else return"INITIAL"},"topState"),pushState:I(function(Pi){this.begin(Pi)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(Pi,Mi,Wn,ba){var Lt=ba;switch(Wn){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),Mi.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Gc=/\n\s*/g;return Mi.yytext=Mi.yytext.replace(Gc,"
    "),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 36:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 37:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 38:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Yn}();Ca.lexer=os;function ma(){this.yy={}}return I(ma,"Parser"),ma.prototype=Ca,Ca.Parser=ma,new ma}();Yot.parser=Yot;ePr=Yot,tPr=Object.assign({},ePr);tPr.parse=(e)=>{let r=e.replace(/}\s*\n/g,`} -`);return ePr.parse(r)};nfi=tPr,ifi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d`${y}.node ${T}, ${y}.rough-node ${T}`,"collapsedRule"),w=I((T)=>`${y}.swimlane.cluster .swimlane-title${T}, ${y}.swimlane.cluster .swimlane-body${T}`,"laneRule");h+=` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Pi=this.next();if(Pi)return Pi;else return this.lex()},"lex"),begin:I(function(Pi){this.conditionStack.push(Pi)},"begin"),popState:I(function(){var Pi=this.conditionStack.length-1;if(Pi>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Pi){if(Pi=this.conditionStack.length-1-Math.abs(Pi||0),Pi>=0)return this.conditionStack[Pi];else return"INITIAL"},"topState"),pushState:I(function(Pi){this.begin(Pi)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(Pi,Mi,Wn,ba){var Lt=ba;switch(Wn){case 0:return this.begin("acc_title"),34;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),36;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),Mi.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let Gc=/\n\s*/g;return Mi.yytext=Mi.yytext.replace(Gc,"
    "),40;break;case 11:return 40;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 95;case 17:this.popState();break;case 18:return 96;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 84;case 26:return 102;case 27:return 85;case 28:return 104;case 29:return 86;case 30:return 87;case 31:return 97;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 88;case 35:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 36:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 37:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 38:if(Pi.lex.firstGraph())this.begin("dir");return 12;case 39:return 27;case 40:return 32;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return 98;case 45:return this.popState(),13;break;case 46:return this.popState(),14;break;case 47:return this.popState(),14;break;case 48:return this.popState(),14;break;case 49:return this.popState(),14;break;case 50:return this.popState(),14;break;case 51:return this.popState(),14;break;case 52:return this.popState(),14;break;case 53:return this.popState(),14;break;case 54:return this.popState(),14;break;case 55:return this.popState(),14;break;case 56:return 121;case 57:return 122;case 58:return 123;case 59:return 124;case 60:return 125;case 61:return 78;case 62:return 105;case 63:return 111;case 64:return 46;case 65:return 60;case 66:return 44;case 67:return 8;case 68:return 106;case 69:return 115;case 70:return this.popState(),77;break;case 71:return this.pushState("edgeText"),75;break;case 72:return 119;case 73:return this.popState(),77;break;case 74:return this.pushState("thickEdgeText"),75;break;case 75:return 119;case 76:return this.popState(),77;break;case 77:return this.pushState("dottedEdgeText"),75;break;case 78:return 119;case 79:return 77;case 80:return this.popState(),53;break;case 81:return"TEXT";case 82:return this.pushState("ellipseText"),52;break;case 83:return this.popState(),55;break;case 84:return this.pushState("text"),54;break;case 85:return this.popState(),57;break;case 86:return this.pushState("text"),56;break;case 87:return 58;case 88:return this.pushState("text"),67;break;case 89:return this.popState(),64;break;case 90:return this.pushState("text"),63;break;case 91:return this.popState(),49;break;case 92:return this.pushState("text"),48;break;case 93:return this.popState(),69;break;case 94:return this.popState(),71;break;case 95:return 117;case 96:return this.pushState("trapText"),68;break;case 97:return this.pushState("trapText"),70;break;case 98:return 118;case 99:return 67;case 100:return 90;case 101:return"SEP";case 102:return 89;case 103:return 115;case 104:return 111;case 105:return 44;case 106:return 109;case 107:return 114;case 108:return 116;case 109:return this.popState(),62;break;case 110:return this.pushState("text"),62;break;case 111:return this.popState(),51;break;case 112:return this.pushState("text"),50;break;case 113:return this.popState(),31;break;case 114:return this.pushState("text"),29;break;case 115:return this.popState(),66;break;case 116:return this.pushState("text"),65;break;case 117:return"TEXT";case 118:return"QUOTE";case 119:return 9;case 120:return 10;case 121:return 11}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:swimlane-beta\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:[^=]|=(?!))/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:[^\.]|\.(?!))/,/^(?:\s*~~[\~]+\s*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|[^\\\[\]\(\)\{\}\/]+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:[^\[\]\(\)\{\}\|\"]+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:[^\S\n\r]+)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},shapeData:{rules:[8,11,12,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackargs:{rules:[17,18,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},callbackname:{rules:[14,15,16,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},href:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},click:{rules:[21,24,33,34,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dottedEdgeText:{rules:[21,24,76,78,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},thickEdgeText:{rules:[21,24,73,75,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},edgeText:{rules:[21,24,70,72,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},trapText:{rules:[21,24,79,82,84,86,90,92,93,94,95,96,97,110,112,114,116],inclusive:!1},ellipseText:{rules:[21,24,79,80,81,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},text:{rules:[21,24,79,82,83,84,85,86,89,90,91,92,96,97,109,110,111,112,113,114,115,116,117],inclusive:!1},vertex:{rules:[21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},dir:{rules:[21,24,45,46,47,48,49,50,51,52,53,54,55,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_descr:{rules:[3,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},acc_title:{rules:[1,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},md_string:{rules:[19,20,21,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},string:{rules:[21,22,23,24,79,82,84,86,90,92,96,97,110,112,114,116],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,44,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,73,74,76,77,79,82,84,86,87,88,90,92,96,97,98,99,100,101,102,103,104,105,106,107,108,110,112,114,116,118,119,120,121],inclusive:!0}}};return Yn}();Ca.lexer=os;function ma(){this.yy={}}return I(ma,"Parser"),ma.prototype=Ca,Ca.Parser=ma,new ma}();Kot.parser=Kot;aPr=Kot,sPr=Object.assign({},aPr);sPr.parse=(e)=>{let r=e.replace(/}\s*\n/g,`} +`);return aPr.parse(r)};cfi=sPr,ufi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d`${y}.node ${T}, ${y}.rough-node ${T}`,"collapsedRule"),w=I((T)=>`${y}.swimlane.cluster .swimlane-title${T}, ${y}.swimlane.cluster .swimlane-body${T}`,"laneRule");h+=` ${y}.cluster:not(.swimlane) rect { stroke: ${p}; @@ -1019,22 +1019,22 @@ ${l?` stroke: ${i[d%i.length]}; } `:""} - ${E(".collapsed-group")}, - ${E(".collapsed-group path")} { + ${v(".collapsed-group")}, + ${v(".collapsed-group path")} { stroke: ${p}; ${m} } /* The ellipsis dots and the separator take clusterBorder further down, so without these the container is palette-coloured while its own markers are not. */ - ${E(".collapsed-indicator")} { + ${v(".collapsed-indicator")} { fill: ${p}; } - ${E(".collapsed-separator")} { + ${v(".collapsed-separator")} { stroke: ${p}; } - `}return h},"genColor"),afi=I((e,r)=>{let i=gR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),sfi=I((e)=>`${ifi(e)} + `}return h},"genColor"),hfi=I((e,r)=>{let i=yR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),dfi=I((e)=>`${ufi(e)} .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; @@ -1116,7 +1116,7 @@ ${l?` /* For html labels only */ .labelBkg { - background-color: ${afi(e.edgeLabelBackground,0.5)}; + background-color: ${hfi(e.edgeLabelBackground,0.5)}; // background-color: } @@ -1187,50 +1187,50 @@ ${l?` } text-align: center; } - ${dT()} -`,"getStyles"),Wot=sfi,Txe=I(({styles:e=Wot}={})=>({parser:nfi,get db(){return new Jdi},renderer:rfi,styles:e,init:I((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,RR({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),Iae=Txe()});var Kot=Re(()=>{jot();oI();MC();fT();vL();lT();WE();z3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja()});function Nae(e){if(!e)return e;return lfi.get(e)??e}function nPr(e,r){for(let i of e){if(i.isGroup)continue;if(!i.shape||i.shape==="squareRect"||i.shape==="rect")i.shape=Oae;if(cfi.has(i.shape)){let a=`shape "${i.shape}" was removed in v0.8.1, using "${Oae}"`;if(r?.emitError)r.emitError("SHAPE_REMOVED",a,{nodeId:i.id});else Ze.warn(`agentflow: ${a}`);i.shape=Oae;continue}if(!ufi.has(i.shape)){let a=`shape "${i.shape}" is not supported, using "${Oae}"`;if(r?.emitWarning)r.emitWarning("SHAPE_UNSUPPORTED",a,{nodeId:i.id});else Ze.warn(`agentflow: ${a}`);i.shape=Oae}}}function lPr(e,r,i){let a=Ar().themeVariables?.borderColorArray,o=Array.isArray(a)?a.length:0,l=i.size;for(let h of e??[]){if(h.isGroup||h.shape==="collapsedGroup"){let p=i.get(String(h.id))??l++;h.colorIndex=oPr(p,o);continue}let d=r(String(h.id));if(d&&Cxe.has(d))h.cssClasses=`${h.cssClasses??""} ${aPr(d)}`.replace(/\s+/g," ").trim()}}function xxe(e){if(Array.isArray(e))return e.map((i)=>xxe(i));if(e===null||typeof e!=="object")return e;let r={};for(let i of Object.keys(e)){if(i==="__proto__"||i==="constructor"||i==="prototype")continue;r[i]=xxe(e[i])}return r}function cPr(e){let r=!1,i=!1,a=0,o,l=[];for(let h of e.split(` -`)){if(o!==void 0){let y=h.length-h.trimStart().length;if(h.trim()===""||y>o){l.push(h);continue}o=void 0}let d=-1;for(let y=0;y0){l.push(h);continue}let p=d>=0?h.slice(0,d):h,m=d>=0?h.slice(d):"";if(/:\s*[>|][\d+-]*\s*$/.test(p)){o=h.length-h.trimStart().length,l.push(h);continue}l.push(p.replace(/,([\t ]*)$/,"$1")+m)}return l.join(` -`)}var Lae,ofi,VQa,lfi,cfi,ufi,Oae="roundedRect",Cxe,iPr,aPr,hfi,sPr,oPr,rPr="agentflow-",Xot,dfi,ffi,pfi,gfi,mfi,bfi,Qot,uPr,hPr,yfi,vfi,_fi,Efi,wfi,dPr;var fPr=Re(()=>{oI();MC();fT();vL();lT();WE();z3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();EP();x0();Lae={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},ofi=new Set([Lae.SHAPE_UNSUPPORTED,Lae.SHAPE_REMOVED,Lae.CONTAINMENT_VIOLATION]),VQa=new Set(Object.values(Lae).filter((e)=>!ofi.has(e))),lfi=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),cfi=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),ufi=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]);I(Nae,"resolveShapeAlias");I(nPr,"normaliseNodeShapes");Cxe=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),iPr=Cxe.size,aPr=I((e)=>`af-kind-${e}`,"kindClass"),hfi=[...Cxe.keys()],sPr=I((e)=>Math.max(1,e-iPr),"containerSlotCount"),oPr=I((e,r)=>{let i=iPr+e%sPr(r);return r>0?i%r:i},"containerSlot");I(lPr,"assignColorSlots");Xot=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),dfi=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),ffi={flow:"flowGroup"};I(xxe,"stripPrototypeKeys");I(cPr,"stripLineTrailingCommas");pfi=class{constructor(){this.vertexCounter=0,this.config=Ar(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=Ys,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getAccTitle=oo,this.getAccDescription=lo,this.getDiagramTitle=fo,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{I(this,"AgentFlowDB")}sanitizeText(e){return ai.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,i,a,o,l,h={},d,p){if(!e||e.trim().length===0)return;let m;if(d!==void 0){let A;if(!d.includes(` + ${fT()} +`,"getStyles"),Xot=dfi,kxe=I(({styles:e=Xot}={})=>({parser:cfi,get db(){return new afi},renderer:lfi,styles:e,init:I((r)=>{if(!r.flowchart)r.flowchart={};r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,NR({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}})},"init")}),"createFlowDiagram"),Lae=kxe()});var Zot=Re(()=>{Qot();uI();PC();pT();EL();cT();WE();V3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja()});function Dae(e){if(!e)return e;return pfi.get(e)??e}function lPr(e,r){for(let i of e){if(i.isGroup)continue;if(!i.shape||i.shape==="squareRect"||i.shape==="rect")i.shape=Mae;if(gfi.has(i.shape)){let a=`shape "${i.shape}" was removed in v0.8.1, using "${Mae}"`;if(r?.emitError)r.emitError("SHAPE_REMOVED",a,{nodeId:i.id});else Ze.warn(`agentflow: ${a}`);i.shape=Mae;continue}if(!mfi.has(i.shape)){let a=`shape "${i.shape}" is not supported, using "${Mae}"`;if(r?.emitWarning)r.emitWarning("SHAPE_UNSUPPORTED",a,{nodeId:i.id});else Ze.warn(`agentflow: ${a}`);i.shape=Mae}}}function fPr(e,r,i){let a=Ar().themeVariables?.borderColorArray,o=Array.isArray(a)?a.length:0,l=i.size;for(let h of e??[]){if(h.isGroup||h.shape==="collapsedGroup"){let p=i.get(String(h.id))??l++;h.colorIndex=dPr(p,o);continue}let d=r(String(h.id));if(d&&Rxe.has(d))h.cssClasses=`${h.cssClasses??""} ${uPr(d)}`.replace(/\s+/g," ").trim()}}function Axe(e){if(Array.isArray(e))return e.map((i)=>Axe(i));if(e===null||typeof e!=="object")return e;let r={};for(let i of Object.keys(e)){if(i==="__proto__"||i==="constructor"||i==="prototype")continue;r[i]=Axe(e[i])}return r}function pPr(e){let r=!1,i=!1,a=0,o,l=[];for(let h of e.split(` +`)){if(o!==void 0){let y=h.length-h.trimStart().length;if(h.trim()===""||y>o){l.push(h);continue}o=void 0}let d=-1;for(let y=0;y0){l.push(h);continue}let p=d>=0?h.slice(0,d):h,m=d>=0?h.slice(d):"";if(/:\s*[>|][\d+-]*\s*$/.test(p)){o=h.length-h.trimStart().length,l.push(h);continue}l.push(p.replace(/,([\t ]*)$/,"$1")+m)}return l.join(` +`)}var Pae,ffi,ZQa,pfi,gfi,mfi,Mae="roundedRect",Rxe,cPr,uPr,bfi,hPr,dPr,oPr="agentflow-",Jot,yfi,vfi,_fi,Efi,wfi,Sfi,elt,gPr,mPr,Tfi,xfi,Cfi,kfi,Afi,bPr;var yPr=Re(()=>{uI();PC();pT();EL();cT();WE();V3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();SP();x0();Pae={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},ffi=new Set([Pae.SHAPE_UNSUPPORTED,Pae.SHAPE_REMOVED,Pae.CONTAINMENT_VIOLATION]),ZQa=new Set(Object.values(Pae).filter((e)=>!ffi.has(e))),pfi=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),gfi=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),mfi=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]);I(Dae,"resolveShapeAlias");I(lPr,"normaliseNodeShapes");Rxe=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),cPr=Rxe.size,uPr=I((e)=>`af-kind-${e}`,"kindClass"),bfi=[...Rxe.keys()],hPr=I((e)=>Math.max(1,e-cPr),"containerSlotCount"),dPr=I((e,r)=>{let i=cPr+e%hPr(r);return r>0?i%r:i},"containerSlot");I(fPr,"assignColorSlots");Jot=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),yfi=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),vfi={flow:"flowGroup"};I(Axe,"stripPrototypeKeys");I(pPr,"stripLineTrailingCommas");_fi=class{constructor(){this.vertexCounter=0,this.config=Ar(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=Ys,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getAccTitle=oo,this.getAccDescription=lo,this.getDiagramTitle=fo,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}static{I(this,"AgentFlowDB")}sanitizeText(e){return ai.sanitizeText(e,this.config)}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}setDiagramId(e){this.diagramId=e}lookUpDomId(e){for(let r of this.vertices.values())if(r.id===e)return this.diagramId?`${this.diagramId}-${r.domId}`:r.domId;return this.diagramId?`${this.diagramId}-${e}`:e}addVertex(e,r,i,a,o,l,h={},d,p){if(!e||e.trim().length===0)return;let m;if(d!==void 0){let A;if(!d.includes(` `))A=`{ `+d+` }`;else A=d+` -`;try{m=yC(A,{schema:bC})??{}}catch(R){let N=d.includes(` -`)?cPr(d):d;if(N!==d)try{m=yC(N+` -`,{schema:bC})??{}}catch{this.rethrowMetadataYamlError(R,d,p)}else this.rethrowMetadataYamlError(R,d,p)}m=xxe(m)}let y;if(m&&typeof m.shape==="string"){let A=m;y=A.shape;let R=Nae(y);if(R&&R!==y)A.shape=R}let E=this.subGraphLookup.get(e);if(E&&m){E.metadata={...E.metadata,...m};return}let w=this.connectors.get(e);if(w&&m){w.metadata={...w.metadata,...m};return}if(e==="connectors")return;let T=this.edges.find((A)=>A.id===e);if(T){let A=m;if(A?.animate!==void 0)T.animate=A.animate;if(A?.animation!==void 0)T.animation=A.animation;if(A?.curve!==void 0)T.interpolate=A.curve;if(m)T.metadata={...T.metadata,...m};return}let x,k=this.vertices.get(e);if(k===void 0)k={id:e,labelType:"text",domId:rPr+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,k);if(this.vertexCounter++,r!==void 0){if(this.config=Ar(),x=this.sanitizeText(r.text.trim()),k.labelType=r.type,x.startsWith('"')&&x.endsWith('"'))x=x.substring(1,x.length-1);k.text=x}else if(k.text===void 0)k.text=e;if(i!==void 0)k.type=i;if(a!==void 0&&a!==null)a.forEach((A)=>{k.styles.push(A)});if(o!==void 0&&o!==null)o.forEach((A)=>{k.classes.push(A)});if(l!==void 0)k.dir=l;if(k.props===void 0)k.props=h;else if(h!==void 0)Object.assign(k.props,h);if(m){if(k.metadata={...k.metadata,...m},m.shape){let A=y??m.shape;if(typeof A!=="string")throw this.positionedShapeError(`No such shape: ${JSON.stringify(A)}.`,p);if(A!==A.toLowerCase()||A.includes("_"))throw this.positionedShapeError(`No such shape: ${A}. Shape names should be lowercase.`,p);else if(!qne(m.shape))throw this.positionedShapeError(`No such shape: ${m.shape}.`,p);k.type=m?.shape}if(m?.label)k.text=this.sanitizeText(m.label),k.labelType=this.sanitizeNodeLabelType(m?.labelType)}}positionedShapeError(e,r){let i=Error(e);if(!r)return i;let a=r.first_line+this.frontmatterLineOffset;return Object.assign(i,{hash:{text:"",token:null,line:a-1,loc:{first_line:a,last_line:r.last_line+this.frontmatterLineOffset,first_column:r.first_column,last_column:r.last_column},expected:[]}}),i}rethrowMetadataYamlError(e,r,i){let a=e;if(!a||a.name!=="YAMLException"||!a.mark||!i)throw e;let o;try{let l=!r.includes(` +`;try{m=_C(A,{schema:vC})??{}}catch(R){let N=d.includes(` +`)?pPr(d):d;if(N!==d)try{m=_C(N+` +`,{schema:vC})??{}}catch{this.rethrowMetadataYamlError(R,d,p)}else this.rethrowMetadataYamlError(R,d,p)}m=Axe(m)}let y;if(m&&typeof m.shape==="string"){let A=m;y=A.shape;let R=Dae(y);if(R&&R!==y)A.shape=R}let v=this.subGraphLookup.get(e);if(v&&m){v.metadata={...v.metadata,...m};return}let w=this.connectors.get(e);if(w&&m){w.metadata={...w.metadata,...m};return}if(e==="connectors")return;let T=this.edges.find((A)=>A.id===e);if(T){let A=m;if(A?.animate!==void 0)T.animate=A.animate;if(A?.animation!==void 0)T.animation=A.animation;if(A?.curve!==void 0)T.interpolate=A.curve;if(m)T.metadata={...T.metadata,...m};return}let x,k=this.vertices.get(e);if(k===void 0)k={id:e,labelType:"text",domId:oPr+e+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(e,k);if(this.vertexCounter++,r!==void 0){if(this.config=Ar(),x=this.sanitizeText(r.text.trim()),k.labelType=r.type,x.startsWith('"')&&x.endsWith('"'))x=x.substring(1,x.length-1);k.text=x}else if(k.text===void 0)k.text=e;if(i!==void 0)k.type=i;if(a!==void 0&&a!==null)a.forEach((A)=>{k.styles.push(A)});if(o!==void 0&&o!==null)o.forEach((A)=>{k.classes.push(A)});if(l!==void 0)k.dir=l;if(k.props===void 0)k.props=h;else if(h!==void 0)Object.assign(k.props,h);if(m){if(k.metadata={...k.metadata,...m},m.shape){let A=y??m.shape;if(typeof A!=="string")throw this.positionedShapeError(`No such shape: ${JSON.stringify(A)}.`,p);if(A!==A.toLowerCase()||A.includes("_"))throw this.positionedShapeError(`No such shape: ${A}. Shape names should be lowercase.`,p);else if(!jne(m.shape))throw this.positionedShapeError(`No such shape: ${m.shape}.`,p);k.type=m?.shape}if(m?.label)k.text=this.sanitizeText(m.label),k.labelType=this.sanitizeNodeLabelType(m?.labelType)}}positionedShapeError(e,r){let i=Error(e);if(!r)return i;let a=r.first_line+this.frontmatterLineOffset;return Object.assign(i,{hash:{text:"",token:null,line:a-1,loc:{first_line:a,last_line:r.last_line+this.frontmatterLineOffset,first_column:r.first_column,last_column:r.last_column},expected:[]}}),i}rethrowMetadataYamlError(e,r,i){let a=e;if(!a||a.name!=="YAMLException"||!a.mark||!i)throw e;let o;try{let l=!r.includes(` `),h=l?`{ `+r+` }`:r+` -`,d=i.first_line+this.frontmatterLineOffset,p=i.first_column+2,m=I((A,R)=>{if(l)return{line:d,column:p+(A===1?R:0)};return{line:d+A,column:A===0?p+R:R}},"toSource"),y=m(a.mark.line,a.mark.column),E=a.reason??(a.message??"").split(` +`,d=i.first_line+this.frontmatterLineOffset,p=i.first_column+2,m=I((A,R)=>{if(l)return{line:d,column:p+(A===1?R:0)};return{line:d+A,column:A===0?p+R:R}},"toSource"),y=m(a.mark.line,a.mark.column),v=a.reason??(a.message??"").split(` `)[0].replace(/\s*\(\d+:\d+\)\s*$/,""),w=h.split(` -`),T=[];if(l)T.push(1);else for(let A=a.mark.line-1;A<=a.mark.line+1;A++){if(A<0||A>=w.length)continue;if(A===w.length-1&&w[A]===""&&A!==a.mark.line)continue;T.push(A)}let x=Math.max(...T.map((A)=>String(m(A,0).line).length)),k=[];for(let A of T){let R=m(A,0).line,N=` ${String(R).padStart(x)} | `;if(k.push(N+w[A].replace(/\t/g,"→")),A===a.mark.line)k.push("-".repeat(N.length+a.mark.column)+"^")}o={message:`${E} (${y.line}:${y.column+1}) +`),T=[];if(l)T.push(1);else for(let A=a.mark.line-1;A<=a.mark.line+1;A++){if(A<0||A>=w.length)continue;if(A===w.length-1&&w[A]===""&&A!==a.mark.line)continue;T.push(A)}let x=Math.max(...T.map((A)=>String(m(A,0).line).length)),k=[];for(let A of T){let R=m(A,0).line,N=` ${String(R).padStart(x)} | `;if(k.push(N+w[A].replace(/\t/g,"→")),A===a.mark.line)k.push("-".repeat(N.length+a.mark.column)+"^")}o={message:`${v} (${y.line}:${y.column+1}) ${k.join(` `)}`,markLine:y.line-1,markColumn:y.column,hash:{text:"",token:null,line:y.line-1,loc:{first_line:y.line,last_line:y.line,first_column:y.column,last_column:y.column+1},expected:[]}}}catch{}if(o)a.message=o.message,a.mark.line=o.markLine,a.mark.column=o.markColumn,a.hash=o.hash;throw a}addSingleLink(e,r,i,a){let h={start:e,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};Ze.info("abc78 Got edge...",h);let d=i.text;if(d!==void 0){if(h.text=this.sanitizeText(d.text.trim()),h.text.startsWith('"')&&h.text.endsWith('"'))h.text=h.text.substring(1,h.text.length-1);h.labelType=this.sanitizeNodeLabelType(d.type)}if(i!==void 0){if(h.type=i.type,h.stroke=i.stroke,h.length=i.length>10?10:i.length,i.edgeSemantic)h.edgeSemantic=i.edgeSemantic}if(a&&!this.edges.some((p)=>p.id===a))h.id=a,h.isUserDefinedId=!0;else{let p=this.edges.filter((m)=>m.start===h.start&&m.end===h.end);if(p.length===0)h.id=j_(h.start,h.end,{counter:0,prefix:"L"});else h.id=j_(h.start,h.end,{counter:p.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))Ze.info("Pushing edge..."),this.edges.push(h);else throw Error(`Edge limit exceeded. ${this.edges.length} edges found, but the limit is ${this.config.maxEdges}. Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. -You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,i){let a=this.isLinkData(i)?i.id.replace("@",""):void 0;Ze.info("addLink",e,r,a);for(let o of e)for(let l of r){let h=o===e[e.length-1],d=l===r[0];if(h&&d)this.addSingleLink(o,l,i,a);else this.addSingleLink(o,l,i,void 0)}}updateLinkInterpolate(e,r){e.forEach((i)=>{if(i==="default"){this.edges.defaultInterpolate=r;return}if(typeof i==="number"&&i>=this.edges.length)throw Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[i].interpolate=r})}updateLink(e,r){e.forEach((i)=>{if(typeof i==="number"&&i>=this.edges.length)throw Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(i==="default")this.edges.defaultStyle=r;else if(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some((a)=>a?.startsWith("fill")))this.edges[i]?.style?.push("fill:none")})}addClass(e,r){let i=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((a)=>{let o=this.classes.get(a);if(o===void 0)o={id:a,styles:[],textStyles:[]},this.classes.set(a,o);if(i!==void 0&&i!==null)i.forEach((l)=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)})})}setDirection(e){if(this.direction=e.trim(),/.*/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let i of e.split(",")){let a=this.vertices.get(i);if(a)a.classes.push(r);let o=this.edges.find((h)=>h.id===i);if(o)o.classes.push(r);let l=this.subGraphLookup.get(i);if(l)l.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let i of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}setClickFun(e,r,i){if(Ar().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=this.lookUpDomId(e),h=document.querySelector(`[id="${l}"]`);if(h!==null)h.addEventListener("click",()=>{Ts.runFunc(r,...a)},!1)})}setLink(e,r,i){e.split(",").forEach((a)=>{let o=this.vertices.get(a);if(o!==void 0)o.link=Ts.formatUrl(r,this.config),o.linkTarget=i}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,i){e.split(",").forEach((a)=>{this.setClickFun(a,r,i)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return dfi.has(e.type)}getTools(){let e=[];for(let r of this.vertices.values())if(this.isToolDefinition(r))e.push(r);return e}getClasses(){return this.classes}setupToolTips(e){let r=v7();xn(e).select("svg").selectAll("g.node").on("mouseover",(o)=>{let l=xn(o.currentTarget),h=l.attr("title");if(h===null)return;let d=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(l.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.bottom+"px"),r.html(Wb.sanitize(h)),l.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),xn(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ar(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,qs()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,i,a){let o=e?.text?.trim(),l=i?.text;if(e===i&&i?.text&&/\s/.exec(i.text))o=void 0;let d=I((T)=>{let x={boolean:{},number:{},string:{}},k=[],A;return{nodeList:T.filter(function(N){let L=typeof N;if(N.stmt&&N.stmt==="dir")return A=N.value,!1;if(N.trim()==="")return!1;if(L in x)return x[L].hasOwnProperty(N)?!1:x[L][N]=!0;else return k.includes(N)?!1:k.push(N)}),dir:A}},"uniq")(r.flat()),{nodeList:p,dir:m}=d,y=Ar().flowchart??{};if(m=m??(y.inheritDir?this.getDirection()??Ar().direction??void 0:void 0),this.version==="gen-1")for(let T=0;TT!==o&&!this.globalNodes.has(T)),title:l.trim(),classes:[],dir:m,labelType:this.sanitizeNodeLabelType(i?.type),type:a??"flow"};Ze.info("Adding",E.id,E.nodes,E.dir),E.nodes=this.makeUniq(E,this.subGraphs).nodes;let w=this.getPosForId(o);if(w!==-1){let T=this.subGraphs[w];for(let x of E.nodes)if(!T.nodes.includes(x))T.nodes.push(x);if(E.title)T.title=E.title;if(E.dir)T.dir=E.dir;if(E.type)T.type=E.type;this.subGraphLookup.set(o,T)}else this.subGraphs.push(E),this.subGraphLookup.set(o,E);return o}addGlobal(e){for(let r of e.flat()){if(typeof r!=="string")continue;let i=r.trim();if(i!=="")this.globalNodes.add(i)}for(let r of this.subGraphs)r.nodes=r.nodes.filter((i)=>!this.globalNodes.has(i))}getPosForId(e){for(let[r,i]of this.subGraphs.entries())if(i.id===e)return r;return-1}indexNodes2(e,r){let i=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let a=0,o=1;while(a=0){let h=this.indexNodes2(e,l);if(h.result)return{result:!0,count:o+h.count};else o=o+h.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,r){let i=e?.text?.trim();if(!i)return"";let a=r?.text?.trim()??"",o=a.length>0?this.sanitizeText(a):i,l=this.connectors.get(i);if(!l)l={id:i,labelType:"text",domId:rPr+i+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:o},this.connectors.set(i,l),this.vertices.set(i,l),this.vertexCounter++;else if(a.length>0)l.text=o;return i}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}computeEdgeSemantic(e,r){if(e==="arrow_point"&&r==="normal")return"sequence";if(e==="arrow_cross"&&r==="normal")return"failure";if(e==="arrow_open"&&r==="dotted")return"reference";return}destructStartLink(e){let r=e.trim(),i="arrow_open",a="normal";if(r.includes("."))a="dotted";return{type:"arrow_open",stroke:a}}countChar(e,r){let i=r.length,a=0;for(let o=0;o":a="arrow_point";break;case"-":case".":a="arrow_open",i=r;break}let o="normal",l=i.length-1,h=this.countChar(".",i);if(h>0)o="dotted",l=h;return{type:a,stroke:o,length:l}}destructLink(e,r){let i=this.destructEndLink(e),a;if(r){if(a=this.destructStartLink(r),a.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};return a.type=i.type,a.length=i.length,{...a,edgeSemantic:this.computeEdgeSemantic(a.type,a.stroke)}}return{...i,edgeSemantic:this.computeEdgeSemantic(i.type,i.stroke)}}exists(e,r){for(let i of e)if(i.nodes.includes(r))return!0;return!1}makeUniq(e,r){let i=[];return e.nodes.forEach((a,o)=>{if(!this.exists(r,a))i.push(e.nodes[o])}),{nodes:i}}getTypeFromVertex(e){let r=typeof e.type==="string"?Nae(e.type):e.type;switch(r){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return r}}findNode(e,r){return e.find((i)=>i.id===r)}destructEdgeType(e){let r="none",i="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":i=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),i=r;break}return{arrowTypeStart:r,arrowTypeEnd:i}}addNodeFromVertex(e,r,i,a,o,l){let h=i.get(e.id),d=a.get(e.id)??!1,p=this.findNode(r,e.id);if(p)p.cssStyles=e.styles,p.cssCompiledStyles=this.getCompiledStyles(e.classes),p.cssClasses=e.classes.join(" ");else{let m={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:h,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:l,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};if(d)r.push({...m,isGroup:!0,shape:"rect"});else r.push({...m,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:o.agentflow?.wrappingWidth,minWidth:o.agentflow?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let i of e){let a=this.classes.get(i);if(a?.styles)r=[...r,...a.styles??[]].map((o)=>o.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((o)=>o.trim())}return r}runPostParseValidators(){if(this.postParseValidationRun)return;this.postParseValidationRun=!0}getData(){this.runPostParseValidators();let e=Ar(),r=[],i=[],a=this.getSubGraphs(),o=new Map,l=new Map,h=new Set,d=new Map,p=I((R,N,L=new Set)=>{if(L.has(R))return;L.add(R);let B=this.subGraphLookup.get(R);if(!B)return;for(let D of B.nodes){if(D===N||L.has(D))continue;h.add(D),d.set(D,N),p(D,N,L)}},"collectDescendants");for(let R of a)if(R.metadata?.view==="collapsed"&&!h.has(R.id))p(R.id,R.id);let m=I((R,N)=>{let L=new Set,B=N;while(B!==void 0&&!L.has(B)){if(B===R)return!0;L.add(B),B=o.get(B)}return!1},"wouldCloseContainmentCycle");for(let R=a.length-1;R>=0;R--){let N=a[R];if(h.has(N.id))continue;if(N.nodes.length>0)l.set(N.id,!0);for(let L of N.nodes){if(m(L,N.id)){this.emitWarning(Lae.CONTAINMENT_VIOLATION,`Container "${N.id}" cannot contain "${L}" because "${L}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:L});continue}o.set(L,N.id)}}for(let R=a.length-1;R>=0;R--){let N=a[R];if(h.has(N.id))continue;if(N.metadata?.view==="collapsed"){let B={...N.metadata,containerType:N.type};r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"collapsedGroup",dir:N.dir,isGroup:!1,look:e.look,metadata:B})}else r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:ffi[N.type??"flow"],dir:N.dir,isGroup:!0,look:e.look,metadata:N.metadata})}this.getVertices().forEach((R)=>{if(h.has(R.id))return;this.addNodeFromVertex(R,r,o,l,e,e.look||"classic")});let E=this.getEdges();E.forEach((R,N)=>{let L=d.get(R.start)??R.start,B=d.get(R.end)??R.end;if(L===B&&R.start!==R.end)return;let{arrowTypeStart:D,arrowTypeEnd:P}=this.destructEdgeType(R.type),F=[...E.defaultStyle??[]];if(R.style)F.push(...R.style);let H={id:j_(L,B,{counter:N,prefix:"L"},R.id),isUserDefinedId:R.isUserDefinedId,start:L,end:B,type:R.type??"normal",label:R.text,labelType:R.labelType,labelpos:"c",thickness:R.stroke,minlen:R.length,classes:R?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":D,arrowTypeEnd:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":P,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(R.classes),labelStyle:F,style:F,pattern:R.stroke,look:e.look,animate:R.animate,animation:R.animation,curve:R.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:R.metadata};i.push(H)}),nPr(r,this);let w=new Map,T=new Map;for(let R of a){let N=o.get(R.id);if(N!==void 0)T.set(N,[...T.get(N)??[],R.id])}let x=0,k=I((R)=>{if(w.has(R))return;w.set(R,x++);for(let N of T.get(R)??[])k(N)},"walkContainers");for(let R of a)if(o.get(R.id)===void 0)k(R.id);let A=new Set(this.getConnectors().map((R)=>R.id));return lPr(r,(R)=>{if(A.has(R))return"connector";let N=this.vertices.get(R);return N?this.deriveVertexKind(N,Nae(N.type)):void 0},w),{nodes:r,edges:i,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return YV.flowchart}deriveVertexKind(e,r){if(this.isToolDefinition(e))return"tool";if(r==="hexagon"||r==="hex")return"action";if(r==="lean-right"||r==="lean_right")return"input";if(r==="lin-doc"||r==="lined-document")return"refdoc";if(r==="diamond")return"decision";return"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map((h)=>h.id)),r=[],i=[];for(let[h,d]of this.vertices){if(e.has(h))continue;if(d.isConnector){let y={id:h};if(d.text!==void 0&&d.text!==h)y.title=d.text;if(d.metadata&&Object.keys(d.metadata).length>0){let E={};for(let[w,T]of Object.entries(d.metadata)){if(Xot.has(w))continue;E[w]=T}if(Object.keys(E).length>0)y.metadata=E}i.push(y);continue}let p={id:h};if(d.text!==void 0)p.label=d.text;let m=typeof d.type==="string"?Nae(d.type):d.type;if(m!==void 0)p.shape=m;if(p.vertexKind=this.deriveVertexKind(d,m),d.metadata&&Object.keys(d.metadata).length>0){let y={};for(let[E,w]of Object.entries(d.metadata)){if(Xot.has(E))continue;y[E]=w}if(Object.keys(y).length>0)p.metadata=y}r.push(p)}let a=this.edges.map((h)=>{let d={start:h.start,end:h.end};if(h.id!==void 0)d.id=h.id;if(typeof h.text==="string"&&h.text.length>0)d.label=h.text;if(h.type!==void 0)d.type=h.type;if(h.stroke!==void 0)d.stroke=h.stroke;if(h.edgeSemantic!==void 0)d.edgeSemantic=h.edgeSemantic;if(h.length!==void 0)d.length=h.length;if(h.metadata&&Object.keys(h.metadata).length>0)d.metadata={...h.metadata};return d}),o=this.subGraphs.map((h)=>{let d={id:h.id,nodes:[...h.nodes]};if(h.type!==void 0)d.type=h.type;if(h.title!==void 0)d.title=h.title;if(h.dir!==void 0)d.direction=h.dir;if(h.metadata&&Object.keys(h.metadata).length>0){let p={};for(let[m,y]of Object.entries(h.metadata)){if(Xot.has(m))continue;p[m]=y}if(Object.keys(p).length>0)d.metadata=p}return d}),l={vertices:r,edges:a,subGraphs:o,connectors:i,diagnostics:this.diagnostics};if(this.direction!==void 0)l.direction=this.direction;return l}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let r=e?.first_line??0,i=e?.first_column??0,a=e?.last_line??r,o=e?.last_column??i,[l,h]=e?.range??[0,0];return{startLine:r+this.frontmatterLineOffset,startColumn:i,endLine:a+this.frontmatterLineOffset,endColumn:o,startIndex:l,endIndex:h}}pushMapping(e,r,i){if(!e)return;let a={id:e,type:r,position:this.toElementPosition(i)};return this.elementMappings.push(a),a}addVertexMapping(e,r,i,a){let o=this.pushMapping(e,"vertex",a);if(o&&i==null)this.bareVertexMappings.add(o)}extendVertexMapping(e,r){if(!e||!r)return;let i=this.toElementPosition(r);for(let a=this.elementMappings.length-1;a>=0;a--){let o=this.elementMappings[a];if(o.type==="vertex"&&o.id===e){if(this.bareVertexMappings.has(o))o.type="attachment",this.bareVertexMappings.delete(o);if(i.endLine>o.position.endLine||i.endLine===o.position.endLine&&i.endColumn>o.position.endColumn)o.position.endLine=i.endLine,o.position.endColumn=i.endColumn,o.position.endIndex=i.endIndex;return}}this.pushMapping(e,"attachment",r)}addEdgeMapping(e,r,i,a){let o=Array.isArray(r)?r.map((h)=>typeof h==="string"?h:h?.id??"").filter(Boolean):[],l=o.length>0?o.join(">"):"edge";this.pushMapping(l,"edge",a)}addSubgraphMapping(e,r,i,a){let o=(typeof e==="string"?e:e?.text)??"",l=this.toElementPosition(i),h=a?this.toElementPosition(a):l;if(!o)return;this.elementMappings.push({id:o,type:"subgraph",position:{startLine:l.startLine,startColumn:l.startColumn,endLine:h.endLine,endColumn:h.endColumn,startIndex:l.startIndex,endIndex:h.endIndex}})}addConnectorMapping(e,r,i,a){let o=e?.text?.trim()??"";if(!o)return;let l=this.toElementPosition(i),h=a?this.toElementPosition(a):l;this.elementMappings.push({id:o,type:"connector",position:{startLine:l.startLine,startColumn:l.startColumn,endLine:h.endLine,endColumn:h.endColumn,startIndex:l.startIndex,endIndex:h.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find((r)=>r.id===e)}getElementsOnLine(e){return this.elementMappings.filter((r)=>e>=r.position.startLine&&e<=r.position.endLine)}getElementAtPosition(e,r){let i=this.elementMappings.filter((o)=>{let{startLine:l,startColumn:h,endLine:d,endColumn:p}=o.position;if(ed)return!1;if(e===l&&rp)return!1;return!0});if(i.length===0)return;let a=I(({position:o})=>[o.endLine-o.startLine,o.endColumn-o.startColumn],"span");return i.reduce((o,l)=>{let[h,d]=a(o),[p,m]=a(l);if(p!==h)return pm.id===h.id&&m.severity===h.severity&&m.message===h.message&&m.nodeId===h.nodeId&&m.edgeId===h.edgeId))return;this.diagnostics.push(h);let p=`agentflow[${e}]: ${i}`;if(r==="error")Ze.error(p);else Ze.warn(p)}emitWarning(e,r,i){this.emitDiagnostic(e,"warning",r,i)}emitError(e,r,i){this.emitDiagnostic(e,"error",r,i)}getDiagnostics(){return[...this.diagnostics]}},gfi=I(function(e,r){return r.db.getClasses()},"getClasses"),mfi=I(async function(e,r,i,a){Ze.debug("Drawing agentflow diagram",r);let{securityLevel:o,agentflow:l,layout:h}=Ar();a.db.setDiagramId(r),Ze.debug("Before getData: ");let d=a.db.getData();Ze.debug("Data: ",d);let p=ly(r,o),m=a.db.getDirection();if(d.type=a.type,d.layoutAlgorithm=oy(h),d.layoutAlgorithm==="dagre"&&h==="elk")Ze.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.");d.direction=m,d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["point","circle","cross","hierarchy"],d.diagramId=r,Ze.debug("REF1:",d),await sy(d,p);let y=l?.diagramPadding??8;Ts.insertTitle(p,"agentflowTitleText",l?.titleTopMargin??0,a.db.getDiagramTitle()),a1(p,y,"agentflow",l?.useMaxWidth??!0)},"draw"),bfi={getClasses:gfi,draw:mfi},Qot=function(){var e=I(function(fs,ya,rs,xs){for(rs=rs||{},xs=fs.length;xs--;rs[fs[xs]]=ya);return rs},"o"),r=[1,5],i=[1,4],a=[1,3],o=[1,6],l=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],h=[2,2],d=[1,15],p=[1,16],m=[1,17],y=[1,18],E=[1,19],w=[1,26],T=[1,27],x=[1,28],k=[1,30],A=[1,31],R=[1,32],N=[1,55],L=[1,54],B=[1,34],D=[1,35],P=[1,36],F=[1,37],H=[1,38],K=[1,50],Q=[1,52],Z=[1,48],Y=[1,53],j=[1,49],te=[1,56],X=[1,51],W=[1,57],J=[1,58],z=[1,39],ne=[1,40],ie=[1,41],le=[1,42],se=[1,43],he=[1,64],ye=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],xe=[1,70],Ie=[1,68],Ee=[1,67],Ue=[1,69],Me=[8,9,10,12,78,80,81],Xe=[1,88],je=[1,101],Qe=[1,106],St=[1,105],pt=[1,102],Vt=[1,98],Xt=[1,104],rr=[1,100],We=[1,107],Nt=[1,103],ct=[1,108],bt=[1,99],Pe=[8,9,10,11,12,43,78,80,81],Ge=[8,9,10,11,12,43,49,78,80,81],qe=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],Ke=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],Je=[47,63,92,105,108,109,112,114,117,118,119],De=[1,131],oe=[1,132],pe=[1,134],fe=[1,133],be=[47,63,65,77,92,105,108,109,112,114,117,118,119],ze=[1,143],Ce=[1,157],_e=[1,158],ke=[1,159],it=[1,162],ut=[1,161],gt=[1,160],vt=[1,145],ir=[1,147],qt=[1,151],cr=[1,139],tr=[1,140],Zt=[1,152],lr=[1,153],Kt=[1,154],In=[1,155],Et=[1,156],Xn=[1,163],Yt=[1,164],Bn=[1,141],si=[1,142],hn=[1,149],Ii=[1,144],Vn=[1,148],Ei=[1,146],yn=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Li=[1,168],Ia=[1,170],tt=[8,9,10,12],Fn=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],Hn=[1,190],_t=[1,186],Sr=[1,187],on=[1,191],gn=[1,188],On=[1,189],as=[80,119,122],Ir=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],un=[11,109],zn=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],Di=[1,269],aa=[1,267],Ca=[1,271],os=[1,265],ma=[1,266],Yn=[1,268],Tn=[1,270],Pi=[1,272],Mi=[1,292],Wn=[8,9,10,12,109],ba=[8,9,10,11,12,63,87,108,109,112,113,114,115],Lt={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:I(function(ya,rs,xs,Yr,Zl,dt,ro){var yt=dt.length-1;switch(Zl){case 2:this.$=[];break;case 3:if(!Array.isArray(dt[yt])||dt[yt].length>0)dt[yt-1].push(dt[yt]);this.$=dt[yt-1];break;case 4:case 198:this.$=dt[yt];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:Yr.setDirection("TB"),this.$="TB";break;case 14:Yr.setDirection(dt[yt-1]),this.$=dt[yt-1];break;case 32:this.$=dt[yt-1].nodes;break;case 38:if(this.$=Yr.addSubGraph(dt[yt-6],dt[yt-1],dt[yt-4],"flow"),Yr.addSubgraphMapping)Yr.addSubgraphMapping(dt[yt-6],dt[yt-4],ro[yt-8],ro[yt]);break;case 39:if(this.$=Yr.addSubGraph(dt[yt-7],dt[yt-1],dt[yt-5],"flow"),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,dt[yt-3],ro[yt-3]),Yr.addSubgraphMapping)Yr.addSubgraphMapping(dt[yt-7],dt[yt-5],ro[yt-9],ro[yt]);break;case 40:if(this.$=Yr.addSubGraph(dt[yt-3],dt[yt-1],{text:"",type:"text"},"flow"),Yr.addSubgraphMapping)Yr.addSubgraphMapping(dt[yt-3],{text:"",type:"text"},ro[yt-5],ro[yt]);break;case 41:if(this.$=Yr.addSubGraph(dt[yt-4],dt[yt-1],{text:"",type:"text"},"flow"),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,dt[yt-3],ro[yt-3]),Yr.addSubgraphMapping)Yr.addSubgraphMapping(dt[yt-4],{text:"",type:"text"},ro[yt-6],ro[yt]);break;case 42:if(this.$=Yr.addSubGraph(void 0,dt[yt-1],void 0,"flow"),Yr.addSubgraphMapping)Yr.addSubgraphMapping(void 0,void 0,ro[yt-3],ro[yt]);break;case 43:Yr.addGlobal(dt[yt-1]),this.$=[];break;case 44:if(this.$=Yr.addConnector(dt[yt-4],dt[yt-2]),Yr.addConnectorMapping)Yr.addConnectorMapping(dt[yt-4],dt[yt-2],ro[yt-6],ro[yt]);break;case 45:if(this.$=Yr.addConnector(dt[yt-5],dt[yt-3]),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,dt[yt-1],ro[yt-1]),Yr.addConnectorMapping)Yr.addConnectorMapping(dt[yt-5],dt[yt-3],ro[yt-7],ro[yt]);break;case 46:if(this.$=Yr.addConnector(dt[yt-1],{text:"",type:"text"}),Yr.addConnectorMapping)Yr.addConnectorMapping(dt[yt-1],{text:"",type:"text"},ro[yt-3],ro[yt]);break;case 47:if(this.$=Yr.addConnector(dt[yt-2],{text:"",type:"text"}),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,dt[yt-1],ro[yt-1]),Yr.addConnectorMapping)Yr.addConnectorMapping(dt[yt-2],{text:"",type:"text"},ro[yt-4],ro[yt]);break;case 49:this.$=dt[yt].trim(),Yr.setAccTitle(this.$);break;case 50:case 51:this.$=dt[yt].trim(),Yr.setAccDescription(this.$);break;case 56:this.$=dt[yt-1]+dt[yt];break;case 57:this.$=dt[yt];break;case 58:if(Yr.addVertex(dt[yt-1][dt[yt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,dt[yt],ro[yt]),Yr.extendVertexMapping)Yr.extendVertexMapping(dt[yt-1][dt[yt-1].length-1],ro[yt]);if(Yr.addLink(dt[yt-3].stmt,dt[yt-1],dt[yt-2]),Yr.addEdgeMapping)Yr.addEdgeMapping(dt[yt-3].stmt,dt[yt-1],dt[yt-2],this._$);this.$={stmt:dt[yt-1],nodes:dt[yt-1].concat(dt[yt-3].nodes)};break;case 59:if(Yr.addLink(dt[yt-2].stmt,dt[yt],dt[yt-1]),Yr.addEdgeMapping)Yr.addEdgeMapping(dt[yt-2].stmt,dt[yt],dt[yt-1],this._$);this.$={stmt:dt[yt],nodes:dt[yt].concat(dt[yt-2].nodes)};break;case 60:if(Yr.addLink(dt[yt-3].stmt,dt[yt-1],dt[yt-2]),Yr.addEdgeMapping)Yr.addEdgeMapping(dt[yt-3].stmt,dt[yt-1],dt[yt-2],this._$);this.$={stmt:dt[yt-1],nodes:dt[yt-1].concat(dt[yt-3].nodes)};break;case 61:this.$={stmt:dt[yt-1],nodes:dt[yt-1]};break;case 62:if(Yr.addVertex(dt[yt-1][dt[yt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,dt[yt],ro[yt]),Yr.extendVertexMapping)Yr.extendVertexMapping(dt[yt-1][dt[yt-1].length-1],ro[yt]);this.$={stmt:dt[yt-1],nodes:dt[yt-1],shapeData:dt[yt]};break;case 63:this.$={stmt:dt[yt],nodes:dt[yt]};break;case 64:this.$=[dt[yt]];break;case 65:if(Yr.addVertex(dt[yt-5][dt[yt-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,dt[yt-4],ro[yt-4]),Yr.extendVertexMapping)Yr.extendVertexMapping(dt[yt-5][dt[yt-5].length-1],ro[yt-4]);this.$=dt[yt-5].concat(dt[yt]);break;case 66:this.$=dt[yt-4].concat(dt[yt]);break;case 67:this.$=dt[yt];break;case 68:this.$=dt[yt-2],Yr.setClass(dt[yt-2],dt[yt]);break;case 69:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"square"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"square",this._$);break;case 70:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"doublecircle"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"doublecircle",this._$);break;case 71:if(this.$=dt[yt-5],Yr.addVertex(dt[yt-5],dt[yt-2],"circle"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-5],dt[yt-2],"circle",this._$);break;case 72:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"ellipse"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"ellipse",this._$);break;case 73:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"stadium"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"stadium",this._$);break;case 74:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"subroutine"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"subroutine",this._$);break;case 75:if(this.$=dt[yt-7],Yr.addVertex(dt[yt-7],dt[yt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[dt[yt-5],dt[yt-3]]])),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-7],dt[yt-1],"rect",this._$);break;case 76:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"cylinder"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"cylinder",this._$);break;case 77:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"round"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"round",this._$);break;case 78:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"diamond"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"diamond",this._$);break;case 79:if(this.$=dt[yt-5],Yr.addVertex(dt[yt-5],dt[yt-2],"hexagon"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-5],dt[yt-2],"hexagon",this._$);break;case 80:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"odd"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"odd",this._$);break;case 81:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"trapezoid"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"trapezoid",this._$);break;case 82:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"inv_trapezoid"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"inv_trapezoid",this._$);break;case 83:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"lean_right"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"lean_right",this._$);break;case 84:if(this.$=dt[yt-3],Yr.addVertex(dt[yt-3],dt[yt-1],"lean_left"),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt-3],dt[yt-1],"lean_left",this._$);break;case 85:if(this.$=dt[yt],Yr.addVertex(dt[yt]),Yr.addVertexMapping)Yr.addVertexMapping(dt[yt],void 0,void 0,this._$);break;case 86:dt[yt-1].text=dt[yt],this.$=dt[yt-1];break;case 87:case 88:dt[yt-2].text=dt[yt-1],this.$=dt[yt-2];break;case 89:this.$=dt[yt];break;case 90:var fl=Yr.destructLink(dt[yt],dt[yt-2]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic,text:dt[yt-1]};break;case 91:var fl=Yr.destructLink(dt[yt],dt[yt-2]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic,text:dt[yt-1],id:dt[yt-3]};break;case 92:this.$={text:dt[yt],type:"text"};break;case 93:this.$={text:dt[yt-1].text+""+dt[yt],type:dt[yt-1].type};break;case 94:this.$={text:dt[yt],type:"string"};break;case 95:this.$={text:dt[yt],type:"markdown"};break;case 96:var fl=Yr.destructLink(dt[yt]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic};break;case 97:var fl=Yr.destructLink(dt[yt]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic,id:dt[yt-1]};break;case 98:this.$=dt[yt-1];break;case 99:this.$={text:dt[yt],type:"text"};break;case 100:this.$={text:dt[yt-1].text+""+dt[yt],type:dt[yt-1].type};break;case 101:this.$={text:dt[yt],type:"string"};break;case 102:case 119:this.$={text:dt[yt],type:"markdown"};break;case 116:this.$={text:dt[yt],type:"text"};break;case 117:this.$={text:dt[yt-1].text+""+dt[yt],type:dt[yt-1].type};break;case 118:this.$={text:dt[yt],type:"text"};break;case 120:this.$=dt[yt-4],Yr.addClass(dt[yt-2],dt[yt]);break;case 121:this.$=dt[yt-4],Yr.setClass(dt[yt-2],dt[yt]);break;case 122:case 130:this.$=dt[yt-1],Yr.setClickEvent(dt[yt-1],dt[yt]);break;case 123:case 131:this.$=dt[yt-3],Yr.setClickEvent(dt[yt-3],dt[yt-2]),Yr.setTooltip(dt[yt-3],dt[yt]);break;case 124:this.$=dt[yt-2],Yr.setClickEvent(dt[yt-2],dt[yt-1],dt[yt]);break;case 125:this.$=dt[yt-4],Yr.setClickEvent(dt[yt-4],dt[yt-3],dt[yt-2]),Yr.setTooltip(dt[yt-4],dt[yt]);break;case 126:this.$=dt[yt-2],Yr.setLink(dt[yt-2],dt[yt]);break;case 127:this.$=dt[yt-4],Yr.setLink(dt[yt-4],dt[yt-2]),Yr.setTooltip(dt[yt-4],dt[yt]);break;case 128:this.$=dt[yt-4],Yr.setLink(dt[yt-4],dt[yt-2],dt[yt]);break;case 129:this.$=dt[yt-6],Yr.setLink(dt[yt-6],dt[yt-4],dt[yt]),Yr.setTooltip(dt[yt-6],dt[yt-2]);break;case 132:this.$=dt[yt-1],Yr.setLink(dt[yt-1],dt[yt]);break;case 133:this.$=dt[yt-3],Yr.setLink(dt[yt-3],dt[yt-2]),Yr.setTooltip(dt[yt-3],dt[yt]);break;case 134:this.$=dt[yt-3],Yr.setLink(dt[yt-3],dt[yt-2],dt[yt]);break;case 135:this.$=dt[yt-5],Yr.setLink(dt[yt-5],dt[yt-4],dt[yt]),Yr.setTooltip(dt[yt-5],dt[yt-2]);break;case 136:this.$=dt[yt-4],Yr.addVertex(dt[yt-2],void 0,void 0,dt[yt]);break;case 137:this.$=dt[yt-4],Yr.updateLink([dt[yt-2]],dt[yt]);break;case 138:this.$=dt[yt-4],Yr.updateLink(dt[yt-2],dt[yt]);break;case 139:this.$=dt[yt-8],Yr.updateLinkInterpolate([dt[yt-6]],dt[yt-2]),Yr.updateLink([dt[yt-6]],dt[yt]);break;case 140:this.$=dt[yt-8],Yr.updateLinkInterpolate(dt[yt-6],dt[yt-2]),Yr.updateLink(dt[yt-6],dt[yt]);break;case 141:this.$=dt[yt-6],Yr.updateLinkInterpolate([dt[yt-4]],dt[yt]);break;case 142:this.$=dt[yt-6],Yr.updateLinkInterpolate(dt[yt-4],dt[yt]);break;case 143:case 145:this.$=[dt[yt]];break;case 144:case 146:dt[yt-2].push(dt[yt]),this.$=dt[yt-2];break;case 148:this.$=dt[yt-1]+dt[yt];break;case 196:this.$=dt[yt];break;case 197:this.$=dt[yt-1]+""+dt[yt];break;case 199:this.$=dt[yt-1]+""+dt[yt];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:r,10:i,11:a,13:o},{1:[3]},e(l,h,{5:7}),{4:8,8:r,10:i,11:a,13:o},{4:9,8:r,10:i,11:a,13:o},{4:10,8:r,10:i,11:a,13:o},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),e(l,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:he,16:59,19:62},e(ye,[2,3]),e(ye,[2,4]),e(ye,[2,5]),e(ye,[2,6]),e(ye,[2,7]),e(ye,[2,8]),e(ye,[2,9]),{8:xe,9:Ie,10:Ee,12:Ue,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:xe,9:Ie,10:Ee,12:Ue,22:75},{8:xe,9:Ie,10:Ee,12:Ue,22:76},{8:xe,9:Ie,10:Ee,12:Ue,22:77},{8:xe,9:Ie,10:Ee,12:Ue,22:78},{8:xe,9:Ie,10:Ee,12:Ue,22:79},{8:xe,9:Ie,10:Ee,11:[1,80],12:Ue,22:81},{8:xe,9:Ie,10:Ee,12:Ue,22:82},{11:[1,83]},e(ye,[2,48]),{39:[1,84]},{41:[1,85]},e(ye,[2,51]),e(Me,[2,63],{19:86,34:87,11:he,43:Xe}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:je,47:Qe,63:St,83:[1,96],92:pt,98:[1,93],100:[1,94],104:95,108:Vt,109:Xt,112:rr,114:We,117:Nt,118:ct,119:bt,123:97},e(ye,[2,200]),e(ye,[2,201]),e(ye,[2,202]),e(ye,[2,203]),e(ye,[2,204]),e(Pe,[2,64]),e(Pe,[2,67],{49:[1,109]}),e(Ge,[2,85],{116:122,30:[1,110],47:N,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:L,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:K,105:Q,108:Z,109:Y,112:j,114:te,117:X,118:W,119:J}),e(qe,[2,196]),e(qe,[2,157]),e(qe,[2,158]),e(qe,[2,159]),e(qe,[2,160]),e(qe,[2,161]),e(qe,[2,162]),e(qe,[2,163]),e(qe,[2,164]),e(qe,[2,165]),e(qe,[2,166]),e(qe,[2,167]),e(l,[2,14]),e(l,[2,20]),e(l,[2,21]),{10:[1,123]},e(l,[2,23]),e(Ke,[2,31],{19:124,11:he}),e(ye,[2,32]),{45:125,46:44,47:N,48:45,50:46,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},e(ye,[2,52]),e(ye,[2,53]),e(ye,[2,54]),e(ye,[2,55]),e(Je,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:De,84:oe,119:pe,122:fe},{78:[1,135],80:[1,136]},e(be,[2,96]),e(ye,[2,33]),e(ye,[2,34]),e(ye,[2,35]),e(ye,[2,36]),e(ye,[2,37]),{11:ze,13:Ce,15:_e,28:ke,29:137,33:it,35:ut,36:gt,47:vt,63:ir,78:qt,83:cr,84:tr,86:150,87:Zt,88:lr,89:Kt,90:In,91:Et,92:Xn,93:Yt,94:138,108:Bn,112:si,114:hn,117:Ii,118:Vn,119:Ei},e(yn,h,{5:165}),e(yn,h,{5:166}),{11:ze,13:Ce,15:_e,28:ke,29:167,33:it,35:ut,36:gt,47:vt,63:ir,78:qt,83:cr,84:tr,86:150,87:Zt,88:lr,89:Kt,90:In,91:Et,92:Xn,93:Yt,94:138,108:Bn,112:si,114:hn,117:Ii,118:Vn,119:Ei},e(ye,[2,49]),e(ye,[2,50]),e(Me,[2,61],{47:Li}),e(Me,[2,62],{19:169,11:he,43:Ia}),e(Pe,[2,57]),{47:N,50:171,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},{105:[1,172],106:173,108:[1,174]},{47:N,50:175,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},{47:N,50:176,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},e(tt,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(tt,[2,130],{123:181,11:[1,180],15:je,47:Qe,63:St,92:pt,108:Vt,109:Xt,112:rr,114:We,117:Nt,118:ct,119:bt}),e(tt,[2,132],{11:[1,182]}),e(Fn,[2,198]),e(Fn,[2,185]),e(Fn,[2,186]),e(Fn,[2,187]),e(Fn,[2,188]),e(Fn,[2,189]),e(Fn,[2,190]),e(Fn,[2,191]),e(Fn,[2,192]),e(Fn,[2,193]),e(Fn,[2,194]),e(Fn,[2,195]),{47:N,50:183,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},{31:184,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:192,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:194,53:[1,193],70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:195,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:196,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:197,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{112:[1,198]},{31:199,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:200,68:[1,201],70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:202,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:203,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{31:204,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},e(qe,[2,197]),e(l,[2,22]),e(Ke,[2,30]),e(Me,[2,59],{34:205,19:206,11:he,43:Xe}),e(Je,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{80:[1,210],82:211,119:pe,122:fe},e(as,[2,92]),e(as,[2,94]),e(as,[2,95]),e(as,[2,183]),e(as,[2,184]),{79:212,82:130,83:De,84:oe,119:pe,122:fe},e(be,[2,97]),{8:xe,9:Ie,10:Ee,11:ze,12:Ue,13:Ce,15:_e,22:214,28:ke,30:[1,213],33:it,34:215,35:ut,36:gt,43:Xe,47:vt,63:ir,78:qt,86:150,87:Zt,88:lr,89:Kt,90:In,91:Et,92:Xn,93:Yt,94:216,108:Bn,112:si,114:hn,117:Ii,118:Vn,119:Ei},e(Ir,[2,116]),e(Ir,[2,118]),e(Ir,[2,119]),e(Ir,[2,172]),e(Ir,[2,173]),e(Ir,[2,174]),e(Ir,[2,175]),e(Ir,[2,176]),e(Ir,[2,177]),e(Ir,[2,178]),e(Ir,[2,179]),e(Ir,[2,180]),e(Ir,[2,181]),e(Ir,[2,182]),e(Ir,[2,103]),e(Ir,[2,104]),e(Ir,[2,105]),e(Ir,[2,106]),e(Ir,[2,107]),e(Ir,[2,108]),e(Ir,[2,109]),e(Ir,[2,110]),e(Ir,[2,111]),e(Ir,[2,112]),e(Ir,[2,113]),e(Ir,[2,114]),e(Ir,[2,115]),{6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,217],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},{6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,218],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},{8:xe,9:Ie,10:Ee,11:ze,12:Ue,13:Ce,15:_e,22:220,28:ke,30:[1,219],33:it,34:221,35:ut,36:gt,43:Xe,47:vt,63:ir,78:qt,86:150,87:Zt,88:lr,89:Kt,90:In,91:Et,92:Xn,93:Yt,94:216,108:Bn,112:si,114:hn,117:Ii,118:Vn,119:Ei},{11:he,19:222},{47:[1,223]},e(Pe,[2,56]),{11:[1,224],47:N,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:122,117:X,118:W,119:J},{11:[1,225]},{11:[1,226],109:[1,227]},e(un,[2,143]),{11:[1,228],47:N,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:122,117:X,118:W,119:J},{11:[1,229],47:N,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:122,117:X,118:W,119:J},{83:[1,230]},e(tt,[2,124],{11:[1,231]}),e(tt,[2,126],{11:[1,232]}),{83:[1,233]},e(Fn,[2,199]),{83:[1,234],101:[1,235]},e(Pe,[2,68],{116:122,47:N,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,117:X,118:W,119:J}),{32:[1,236],70:Hn,85:237,119:on,120:gn,121:On},e(zn,[2,99]),e(zn,[2,101]),e(zn,[2,102]),e(zn,[2,168]),e(zn,[2,169]),e(zn,[2,170]),e(zn,[2,171]),{52:[1,238],70:Hn,85:237,119:on,120:gn,121:On},{31:239,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{54:[1,240],70:Hn,85:237,119:on,120:gn,121:On},{56:[1,241],70:Hn,85:237,119:on,120:gn,121:On},{58:[1,242],70:Hn,85:237,119:on,120:gn,121:On},{60:[1,243],70:Hn,85:237,119:on,120:gn,121:On},{63:[1,244]},{67:[1,245],70:Hn,85:237,119:on,120:gn,121:On},{69:[1,246],70:Hn,85:237,119:on,120:gn,121:On},{31:247,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},{32:[1,248],70:Hn,85:237,119:on,120:gn,121:On},{70:Hn,72:[1,249],74:[1,250],85:237,119:on,120:gn,121:On},{70:Hn,72:[1,252],74:[1,251],85:237,119:on,120:gn,121:On},e(Me,[2,58],{19:169,11:he,43:Ia}),e(Me,[2,60],{47:Li}),e(Je,[2,88]),e(Je,[2,87]),{65:[1,253],70:Hn,85:237,119:on,120:gn,121:On},e(Je,[2,90]),e(as,[2,93]),{80:[1,254],82:211,119:pe,122:fe},{31:255,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},e(yn,h,{5:256}),{8:xe,9:Ie,10:Ee,12:Ue,22:257,43:Ia},e(Ir,[2,117]),e(ye,[2,42]),e(ye,[2,43]),{31:258,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},e(ye,[2,46]),{8:xe,9:Ie,10:Ee,12:Ue,22:259,43:Ia},{46:260,47:N,48:45,50:46,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},{11:he,19:261},{11:Di,63:aa,87:Ca,95:262,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{11:Di,63:aa,87:Ca,95:273,107:[1,274],108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{11:Di,63:aa,87:Ca,95:275,107:[1,276],108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{108:[1,277]},{11:Di,63:aa,87:Ca,95:278,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{47:N,50:279,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},e(tt,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(tt,[2,131]),e(tt,[2,133],{11:[1,283]}),e(tt,[2,134]),e(Ge,[2,69]),e(zn,[2,100]),e(Ge,[2,70]),{54:[1,284],70:Hn,85:237,119:on,120:gn,121:On},e(Ge,[2,77]),e(Ge,[2,72]),e(Ge,[2,73]),e(Ge,[2,74]),{112:[1,285]},e(Ge,[2,76]),e(Ge,[2,78]),{69:[1,286],70:Hn,85:237,119:on,120:gn,121:On},e(Ge,[2,80]),e(Ge,[2,81]),e(Ge,[2,83]),e(Ge,[2,82]),e(Ge,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(Je,[2,91]),{32:[1,287],70:Hn,85:237,119:on,120:gn,121:On},{6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,288],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},e(yn,h,{5:289}),{32:[1,290],70:Hn,85:237,119:on,120:gn,121:On},e(ye,[2,47]),e(Pe,[2,66]),{46:291,47:N,48:45,50:46,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J},e(tt,[2,136],{109:Mi}),e(Wn,[2,145],{111:293,11:Di,63:aa,87:Ca,108:os,112:ma,113:Yn,114:Tn,115:Pi}),e(ba,[2,147]),e(ba,[2,149]),e(ba,[2,150]),e(ba,[2,151]),e(ba,[2,152]),e(ba,[2,153]),e(ba,[2,154]),e(ba,[2,155]),e(ba,[2,156]),e(tt,[2,137],{109:Mi}),{11:[1,294]},e(tt,[2,138],{109:Mi}),{11:[1,295]},e(un,[2,144]),e(tt,[2,120],{109:Mi}),e(tt,[2,121],{116:122,47:N,63:L,92:K,105:Q,108:Z,109:Y,112:j,114:te,117:X,118:W,119:J}),e(tt,[2,125]),e(tt,[2,127],{11:[1,296]}),e(tt,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:xe,9:Ie,10:Ee,12:Ue,22:301,34:302,43:Xe},e(ye,[2,40]),{6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,303],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},{8:xe,9:Ie,10:Ee,12:Ue,22:304,34:305,43:Xe},e(Pe,[2,65]),{11:Di,63:aa,87:Ca,108:os,110:306,111:264,112:ma,113:Yn,114:Tn,115:Pi},e(ba,[2,148]),{15:je,47:Qe,63:St,92:pt,104:307,108:Vt,109:Xt,112:rr,114:We,117:Nt,118:ct,119:bt,123:97},{15:je,47:Qe,63:St,92:pt,104:308,108:Vt,109:Xt,112:rr,114:We,117:Nt,118:ct,119:bt,123:97},{101:[1,309]},e(tt,[2,135]),e(Ge,[2,71]),{31:310,70:Hn,83:_t,84:Sr,85:185,119:on,120:gn,121:On},e(Ge,[2,79]),e(yn,h,{5:311}),{8:xe,9:Ie,10:Ee,12:Ue,22:312,43:Ia},e(ye,[2,41]),e(ye,[2,44]),{8:xe,9:Ie,10:Ee,12:Ue,22:313,43:Ia},e(Wn,[2,146],{111:293,11:Di,63:aa,87:Ca,108:os,112:ma,113:Yn,114:Tn,115:Pi}),e(tt,[2,141],{123:181,11:[1,314],15:je,47:Qe,63:St,92:pt,108:Vt,109:Xt,112:rr,114:We,117:Nt,118:ct,119:bt}),e(tt,[2,142],{123:181,11:[1,315],15:je,47:Qe,63:St,92:pt,108:Vt,109:Xt,112:rr,114:We,117:Nt,118:ct,119:bt}),e(tt,[2,129]),{32:[1,316],70:Hn,85:237,119:on,120:gn,121:On},{6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,317],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},e(yn,h,{5:318}),e(ye,[2,45]),{11:Di,63:aa,87:Ca,95:319,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{11:Di,63:aa,87:Ca,95:320,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},e(Ge,[2,75]),e(ye,[2,38]),{6:13,7:14,8:d,9:p,10:m,11:y,12:E,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,321],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:K,105:Q,108:Z,109:Y,112:j,114:te,116:47,117:X,118:W,119:J,124:z,125:ne,126:ie,127:le,128:se},e(tt,[2,139],{109:Mi}),e(tt,[2,140],{109:Mi}),e(ye,[2,39])],defaultActions:{},parseError:I(function(ya,rs){if(rs.recoverable)this.trace(ya);else{var xs=Error(ya);throw xs.hash=rs,xs}},"parseError"),parse:I(function(ya){var rs=this,xs=[0],Yr=[],Zl=[null],dt=[],ro=this.table,yt="",fl=0,lb=0,dd=0,cb=2,$u=1,c1=dt.slice.call(arguments,1),pl=Object.create(this.lexer),kh={yy:{}};for(var Lv in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Lv))kh.yy[Lv]=this.yy[Lv];if(pl.setInput(ya,kh.yy),kh.yy.lexer=pl,kh.yy.parser=this,typeof pl.yylloc>"u")pl.yylloc={};var Mv=pl.yylloc;dt.push(Mv);var u1=pl.options&&pl.options.ranges;if(typeof kh.yy.parseError==="function")this.parseError=kh.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Kp($n){xs.length=xs.length-2*$n,Zl.length=Zl.length-$n,dt.length=dt.length-$n}I(Kp,"popStack");function xf(){var $n=Yr.pop()||pl.lex()||$u;if(typeof $n!=="number"){if($n instanceof Array)Yr=$n,$n=Yr.pop();$n=rs.symbols_[$n]||$n}return $n}I(xf,"lex");var Xh,pm,$0,Uu,zF,lA,w2={},S2,ub,oi,Mt;while(!0){if($0=xs[xs.length-1],this.defaultActions[$0])Uu=this.defaultActions[$0];else{if(Xh===null||typeof Xh>"u")Xh=xf();Uu=ro[$0]&&ro[$0][Xh]}if(typeof Uu>"u"||!Uu.length||!Uu[0]){var Or="";Mt=[];for(S2 in ro[$0])if(this.terminals_[S2]&&S2>cb)Mt.push("'"+this.terminals_[S2]+"'");if(pl.showPosition)Or="Parse error on line "+(fl+1)+`: +You have to call mermaid.initialize.`)}isLinkData(e){return e!==null&&typeof e==="object"&&"id"in e&&typeof e.id==="string"}addLink(e,r,i){let a=this.isLinkData(i)?i.id.replace("@",""):void 0;Ze.info("addLink",e,r,a);for(let o of e)for(let l of r){let h=o===e[e.length-1],d=l===r[0];if(h&&d)this.addSingleLink(o,l,i,a);else this.addSingleLink(o,l,i,void 0)}}updateLinkInterpolate(e,r){e.forEach((i)=>{if(i==="default"){this.edges.defaultInterpolate=r;return}if(typeof i==="number"&&i>=this.edges.length)throw Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);this.edges[i].interpolate=r})}updateLink(e,r){e.forEach((i)=>{if(typeof i==="number"&&i>=this.edges.length)throw Error(`The index ${i} for linkStyle is out of bounds. Valid indices for linkStyle are between 0 and ${this.edges.length-1}. (Help: Ensure that the index is within the range of existing edges.)`);if(i==="default")this.edges.defaultStyle=r;else if(this.edges[i].style=r,(this.edges[i]?.style?.length??0)>0&&!this.edges[i]?.style?.some((a)=>a?.startsWith("fill")))this.edges[i]?.style?.push("fill:none")})}addClass(e,r){let i=r.join().replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");e.split(",").forEach((a)=>{let o=this.classes.get(a);if(o===void 0)o={id:a,styles:[],textStyles:[]},this.classes.set(a,o);if(i!==void 0&&i!==null)i.forEach((l)=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)})})}setDirection(e){if(this.direction=e.trim(),/.*/.exec(this.direction))this.direction="LR";if(/.*v/.exec(this.direction))this.direction="TB";if(this.direction==="TD")this.direction="TB"}setClass(e,r){for(let i of e.split(",")){let a=this.vertices.get(i);if(a)a.classes.push(r);let o=this.edges.find((h)=>h.id===i);if(o)o.classes.push(r);let l=this.subGraphLookup.get(i);if(l)l.classes.push(r)}}setTooltip(e,r){if(r===void 0)return;r=this.sanitizeText(r);for(let i of e.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(i):i,r)}setClickFun(e,r,i){if(Ar().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=this.lookUpDomId(e),h=document.querySelector(`[id="${l}"]`);if(h!==null)h.addEventListener("click",()=>{Ts.runFunc(r,...a)},!1)})}setLink(e,r,i){e.split(",").forEach((a)=>{let o=this.vertices.get(a);if(o!==void 0)o.link=Ts.formatUrl(r,this.config),o.linkTarget=i}),this.setClass(e,"clickable")}getTooltip(e){return this.tooltips.get(e)}setClickEvent(e,r,i){e.split(",").forEach((a)=>{this.setClickFun(a,r,i)}),this.setClass(e,"clickable")}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}isToolDefinition(e){return yfi.has(e.type)}getTools(){let e=[];for(let r of this.vertices.values())if(this.isToolDefinition(r))e.push(r);return e}getClasses(){return this.classes}setupToolTips(e){let r=E7();xn(e).select("svg").selectAll("g.node").on("mouseover",(o)=>{let l=xn(o.currentTarget),h=l.attr("title");if(h===null)return;let d=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(l.attr("title")).style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.bottom+"px"),r.html(Wb.sanitize(h)),l.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),xn(o.currentTarget).classed("hover",!1)})}clear(e="gen-2"){this.vertices=new Map,this.classes=new Map,this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=e,this.config=Ar(),this.diagramId="",this.vertexCounter=0,this.direction=void 0,this.secCount=-1,this.posCrossRef=[],this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,qs()}setGen(e){this.version=e||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(e,r,i,a){let o=e?.text?.trim(),l=i?.text;if(e===i&&i?.text&&/\s/.exec(i.text))o=void 0;let d=I((T)=>{let x={boolean:{},number:{},string:{}},k=[],A;return{nodeList:T.filter(function(N){let L=typeof N;if(N.stmt&&N.stmt==="dir")return A=N.value,!1;if(N.trim()==="")return!1;if(L in x)return x[L].hasOwnProperty(N)?!1:x[L][N]=!0;else return k.includes(N)?!1:k.push(N)}),dir:A}},"uniq")(r.flat()),{nodeList:p,dir:m}=d,y=Ar().flowchart??{};if(m=m??(y.inheritDir?this.getDirection()??Ar().direction??void 0:void 0),this.version==="gen-1")for(let T=0;TT!==o&&!this.globalNodes.has(T)),title:l.trim(),classes:[],dir:m,labelType:this.sanitizeNodeLabelType(i?.type),type:a??"flow"};Ze.info("Adding",v.id,v.nodes,v.dir),v.nodes=this.makeUniq(v,this.subGraphs).nodes;let w=this.getPosForId(o);if(w!==-1){let T=this.subGraphs[w];for(let x of v.nodes)if(!T.nodes.includes(x))T.nodes.push(x);if(v.title)T.title=v.title;if(v.dir)T.dir=v.dir;if(v.type)T.type=v.type;this.subGraphLookup.set(o,T)}else this.subGraphs.push(v),this.subGraphLookup.set(o,v);return o}addGlobal(e){for(let r of e.flat()){if(typeof r!=="string")continue;let i=r.trim();if(i!=="")this.globalNodes.add(i)}for(let r of this.subGraphs)r.nodes=r.nodes.filter((i)=>!this.globalNodes.has(i))}getPosForId(e){for(let[r,i]of this.subGraphs.entries())if(i.id===e)return r;return-1}indexNodes2(e,r){let i=this.subGraphs[r].nodes;if(this.secCount=this.secCount+1,this.secCount>2000)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===e)return{result:!0,count:0};let a=0,o=1;while(a=0){let h=this.indexNodes2(e,l);if(h.result)return{result:!0,count:o+h.count};else o=o+h.count}a=a+1}return{result:!1,count:o}}getDepthFirstPos(e){return this.posCrossRef[e]}indexNodes(){if(this.secCount=-1,this.subGraphs.length>0)this.indexNodes2("none",this.subGraphs.length-1)}addConnector(e,r){let i=e?.text?.trim();if(!i)return"";let a=r?.text?.trim()??"",o=a.length>0?this.sanitizeText(a):i,l=this.connectors.get(i);if(!l)l={id:i,labelType:"text",domId:oPr+i+"-"+this.vertexCounter,styles:[],classes:[],isConnector:!0,text:o},this.connectors.set(i,l),this.vertices.set(i,l),this.vertexCounter++;else if(a.length>0)l.text=o;return i}getSubGraphs(){return this.subGraphs}getConnectors(){return[...this.connectors.values()]}firstGraph(){if(this.firstGraphFlag)return this.firstGraphFlag=!1,!0;return!1}computeEdgeSemantic(e,r){if(e==="arrow_point"&&r==="normal")return"sequence";if(e==="arrow_cross"&&r==="normal")return"failure";if(e==="arrow_open"&&r==="dotted")return"reference";return}destructStartLink(e){let r=e.trim(),i="arrow_open",a="normal";if(r.includes("."))a="dotted";return{type:"arrow_open",stroke:a}}countChar(e,r){let i=r.length,a=0;for(let o=0;o":a="arrow_point";break;case"-":case".":a="arrow_open",i=r;break}let o="normal",l=i.length-1,h=this.countChar(".",i);if(h>0)o="dotted",l=h;return{type:a,stroke:o,length:l}}destructLink(e,r){let i=this.destructEndLink(e),a;if(r){if(a=this.destructStartLink(r),a.stroke!==i.stroke)return{type:"INVALID",stroke:"INVALID"};return a.type=i.type,a.length=i.length,{...a,edgeSemantic:this.computeEdgeSemantic(a.type,a.stroke)}}return{...i,edgeSemantic:this.computeEdgeSemantic(i.type,i.stroke)}}exists(e,r){for(let i of e)if(i.nodes.includes(r))return!0;return!1}makeUniq(e,r){let i=[];return e.nodes.forEach((a,o)=>{if(!this.exists(r,a))i.push(e.nodes[o])}),{nodes:i}}getTypeFromVertex(e){let r=typeof e.type==="string"?Dae(e.type):e.type;switch(r){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return r}}findNode(e,r){return e.find((i)=>i.id===r)}destructEdgeType(e){let r="none",i="arrow_point";switch(e){case"arrow_point":case"arrow_circle":case"arrow_cross":case"arrow_hierarchy":i=e;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=e.replace("double_",""),i=r;break}return{arrowTypeStart:r,arrowTypeEnd:i}}addNodeFromVertex(e,r,i,a,o,l){let h=i.get(e.id),d=a.get(e.id)??!1,p=this.findNode(r,e.id);if(p)p.cssStyles=e.styles,p.cssCompiledStyles=this.getCompiledStyles(e.classes),p.cssClasses=e.classes.join(" ");else{let m={id:e.id,label:e.text,labelType:e.labelType,labelStyle:"",parentId:h,padding:o.flowchart?.padding||8,cssStyles:e.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...e.classes]),cssClasses:"default "+e.classes.join(" "),dir:e.dir,domId:e.domId,look:l,link:e.link,linkTarget:e.linkTarget,tooltip:this.getTooltip(e.id),metadata:e.metadata};if(d)r.push({...m,isGroup:!0,shape:"rect"});else r.push({...m,isGroup:!1,shape:this.getTypeFromVertex(e),wrappingWidth:o.agentflow?.wrappingWidth,minWidth:o.agentflow?.minNodeWidth})}}getCompiledStyles(e){let r=[];for(let i of e){let a=this.classes.get(i);if(a?.styles)r=[...r,...a.styles??[]].map((o)=>o.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((o)=>o.trim())}return r}runPostParseValidators(){if(this.postParseValidationRun)return;this.postParseValidationRun=!0}getData(){this.runPostParseValidators();let e=Ar(),r=[],i=[],a=this.getSubGraphs(),o=new Map,l=new Map,h=new Set,d=new Map,p=I((R,N,L=new Set)=>{if(L.has(R))return;L.add(R);let B=this.subGraphLookup.get(R);if(!B)return;for(let D of B.nodes){if(D===N||L.has(D))continue;h.add(D),d.set(D,N),p(D,N,L)}},"collectDescendants");for(let R of a)if(R.metadata?.view==="collapsed"&&!h.has(R.id))p(R.id,R.id);let m=I((R,N)=>{let L=new Set,B=N;while(B!==void 0&&!L.has(B)){if(B===R)return!0;L.add(B),B=o.get(B)}return!1},"wouldCloseContainmentCycle");for(let R=a.length-1;R>=0;R--){let N=a[R];if(h.has(N.id))continue;if(N.nodes.length>0)l.set(N.id,!0);for(let L of N.nodes){if(m(L,N.id)){this.emitWarning(Pae.CONTAINMENT_VIOLATION,`Container "${N.id}" cannot contain "${L}" because "${L}" already contains it. The nesting that would close the loop is dropped.`,{nodeId:L});continue}o.set(L,N.id)}}for(let R=a.length-1;R>=0;R--){let N=a[R];if(h.has(N.id))continue;if(N.metadata?.view==="collapsed"){let B={...N.metadata,containerType:N.type};r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:"collapsedGroup",dir:N.dir,isGroup:!1,look:e.look,metadata:B})}else r.push({id:N.id,label:N.title,labelStyle:"",labelType:N.labelType,parentId:o.get(N.id),padding:8,cssCompiledStyles:this.getCompiledStyles(N.classes),cssClasses:N.classes.join(" "),shape:vfi[N.type??"flow"],dir:N.dir,isGroup:!0,look:e.look,metadata:N.metadata})}this.getVertices().forEach((R)=>{if(h.has(R.id))return;this.addNodeFromVertex(R,r,o,l,e,e.look||"classic")});let v=this.getEdges();v.forEach((R,N)=>{let L=d.get(R.start)??R.start,B=d.get(R.end)??R.end;if(L===B&&R.start!==R.end)return;let{arrowTypeStart:D,arrowTypeEnd:P}=this.destructEdgeType(R.type),F=[...v.defaultStyle??[]];if(R.style)F.push(...R.style);let H={id:j_(L,B,{counter:N,prefix:"L"},R.id),isUserDefinedId:R.isUserDefinedId,start:L,end:B,type:R.type??"normal",label:R.text,labelType:R.labelType,labelpos:"c",thickness:R.stroke,minlen:R.length,classes:R?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":D,arrowTypeEnd:R?.stroke==="invisible"||R?.type==="arrow_open"?"none":P,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(R.classes),labelStyle:F,style:F,pattern:R.stroke,look:e.look,animate:R.animate,animation:R.animation,curve:R.interpolate||this.edges.defaultInterpolate||e.flowchart?.curve,metadata:R.metadata};i.push(H)}),lPr(r,this);let w=new Map,T=new Map;for(let R of a){let N=o.get(R.id);if(N!==void 0)T.set(N,[...T.get(N)??[],R.id])}let x=0,k=I((R)=>{if(w.has(R))return;w.set(R,x++);for(let N of T.get(R)??[])k(N)},"walkContainers");for(let R of a)if(o.get(R.id)===void 0)k(R.id);let A=new Set(this.getConnectors().map((R)=>R.id));return fPr(r,(R)=>{if(A.has(R))return"connector";let N=this.vertices.get(R);return N?this.deriveVertexKind(N,Dae(N.type)):void 0},w),{nodes:r,edges:i,other:{},config:e,connectors:this.getConnectors()}}defaultConfig(){return KV.flowchart}deriveVertexKind(e,r){if(this.isToolDefinition(e))return"tool";if(r==="hexagon"||r==="hex")return"action";if(r==="lean-right"||r==="lean_right")return"input";if(r==="lin-doc"||r==="lined-document")return"refdoc";if(r==="diamond")return"decision";return"task"}getSemanticModel(){this.runPostParseValidators();let e=new Set(this.subGraphs.map((h)=>h.id)),r=[],i=[];for(let[h,d]of this.vertices){if(e.has(h))continue;if(d.isConnector){let y={id:h};if(d.text!==void 0&&d.text!==h)y.title=d.text;if(d.metadata&&Object.keys(d.metadata).length>0){let v={};for(let[w,T]of Object.entries(d.metadata)){if(Jot.has(w))continue;v[w]=T}if(Object.keys(v).length>0)y.metadata=v}i.push(y);continue}let p={id:h};if(d.text!==void 0)p.label=d.text;let m=typeof d.type==="string"?Dae(d.type):d.type;if(m!==void 0)p.shape=m;if(p.vertexKind=this.deriveVertexKind(d,m),d.metadata&&Object.keys(d.metadata).length>0){let y={};for(let[v,w]of Object.entries(d.metadata)){if(Jot.has(v))continue;y[v]=w}if(Object.keys(y).length>0)p.metadata=y}r.push(p)}let a=this.edges.map((h)=>{let d={start:h.start,end:h.end};if(h.id!==void 0)d.id=h.id;if(typeof h.text==="string"&&h.text.length>0)d.label=h.text;if(h.type!==void 0)d.type=h.type;if(h.stroke!==void 0)d.stroke=h.stroke;if(h.edgeSemantic!==void 0)d.edgeSemantic=h.edgeSemantic;if(h.length!==void 0)d.length=h.length;if(h.metadata&&Object.keys(h.metadata).length>0)d.metadata={...h.metadata};return d}),o=this.subGraphs.map((h)=>{let d={id:h.id,nodes:[...h.nodes]};if(h.type!==void 0)d.type=h.type;if(h.title!==void 0)d.title=h.title;if(h.dir!==void 0)d.direction=h.dir;if(h.metadata&&Object.keys(h.metadata).length>0){let p={};for(let[m,y]of Object.entries(h.metadata)){if(Jot.has(m))continue;p[m]=y}if(Object.keys(p).length>0)d.metadata=p}return d}),l={vertices:r,edges:a,subGraphs:o,connectors:i,diagnostics:this.diagnostics};if(this.direction!==void 0)l.direction=this.direction;return l}setFrontmatterLineOffset(e){this.frontmatterLineOffset=e??0}toElementPosition(e){let r=e?.first_line??0,i=e?.first_column??0,a=e?.last_line??r,o=e?.last_column??i,[l,h]=e?.range??[0,0];return{startLine:r+this.frontmatterLineOffset,startColumn:i,endLine:a+this.frontmatterLineOffset,endColumn:o,startIndex:l,endIndex:h}}pushMapping(e,r,i){if(!e)return;let a={id:e,type:r,position:this.toElementPosition(i)};return this.elementMappings.push(a),a}addVertexMapping(e,r,i,a){let o=this.pushMapping(e,"vertex",a);if(o&&i==null)this.bareVertexMappings.add(o)}extendVertexMapping(e,r){if(!e||!r)return;let i=this.toElementPosition(r);for(let a=this.elementMappings.length-1;a>=0;a--){let o=this.elementMappings[a];if(o.type==="vertex"&&o.id===e){if(this.bareVertexMappings.has(o))o.type="attachment",this.bareVertexMappings.delete(o);if(i.endLine>o.position.endLine||i.endLine===o.position.endLine&&i.endColumn>o.position.endColumn)o.position.endLine=i.endLine,o.position.endColumn=i.endColumn,o.position.endIndex=i.endIndex;return}}this.pushMapping(e,"attachment",r)}addEdgeMapping(e,r,i,a){let o=Array.isArray(r)?r.map((h)=>typeof h==="string"?h:h?.id??"").filter(Boolean):[],l=o.length>0?o.join(">"):"edge";this.pushMapping(l,"edge",a)}addSubgraphMapping(e,r,i,a){let o=(typeof e==="string"?e:e?.text)??"",l=this.toElementPosition(i),h=a?this.toElementPosition(a):l;if(!o)return;this.elementMappings.push({id:o,type:"subgraph",position:{startLine:l.startLine,startColumn:l.startColumn,endLine:h.endLine,endColumn:h.endColumn,startIndex:l.startIndex,endIndex:h.endIndex}})}addConnectorMapping(e,r,i,a){let o=e?.text?.trim()??"";if(!o)return;let l=this.toElementPosition(i),h=a?this.toElementPosition(a):l;this.elementMappings.push({id:o,type:"connector",position:{startLine:l.startLine,startColumn:l.startColumn,endLine:h.endLine,endColumn:h.endColumn,startIndex:l.startIndex,endIndex:h.endIndex}})}getElementMappings(){return[...this.elementMappings]}getElementById(e){return this.elementMappings.find((r)=>r.id===e)}getElementsOnLine(e){return this.elementMappings.filter((r)=>e>=r.position.startLine&&e<=r.position.endLine)}getElementAtPosition(e,r){let i=this.elementMappings.filter((o)=>{let{startLine:l,startColumn:h,endLine:d,endColumn:p}=o.position;if(ed)return!1;if(e===l&&rp)return!1;return!0});if(i.length===0)return;let a=I(({position:o})=>[o.endLine-o.startLine,o.endColumn-o.startColumn],"span");return i.reduce((o,l)=>{let[h,d]=a(o),[p,m]=a(l);if(p!==h)return pm.id===h.id&&m.severity===h.severity&&m.message===h.message&&m.nodeId===h.nodeId&&m.edgeId===h.edgeId))return;this.diagnostics.push(h);let p=`agentflow[${e}]: ${i}`;if(r==="error")Ze.error(p);else Ze.warn(p)}emitWarning(e,r,i){this.emitDiagnostic(e,"warning",r,i)}emitError(e,r,i){this.emitDiagnostic(e,"error",r,i)}getDiagnostics(){return[...this.diagnostics]}},Efi=I(function(e,r){return r.db.getClasses()},"getClasses"),wfi=I(async function(e,r,i,a){Ze.debug("Drawing agentflow diagram",r);let{securityLevel:o,agentflow:l,layout:h}=Ar();a.db.setDiagramId(r),Ze.debug("Before getData: ");let d=a.db.getData();Ze.debug("Data: ",d);let p=ly(r,o),m=a.db.getDirection();if(d.type=a.type,d.layoutAlgorithm=oy(h),d.layoutAlgorithm==="dagre"&&h==="elk")Ze.warn("flowchart-elk was moved to an external package in Mermaid v11. Please refer [release notes](https://github.com/mermaid-js/mermaid/releases/tag/v11.0.0) for more details. This diagram will be rendered using `dagre` layout as a fallback.");d.direction=m,d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["point","circle","cross","hierarchy"],d.diagramId=r,Ze.debug("REF1:",d),await sy(d,p);let y=l?.diagramPadding??8;Ts.insertTitle(p,"agentflowTitleText",l?.titleTopMargin??0,a.db.getDiagramTitle()),a1(p,y,"agentflow",l?.useMaxWidth??!0)},"draw"),Sfi={getClasses:Efi,draw:wfi},elt=function(){var e=I(function(fs,ya,rs,xs){for(rs=rs||{},xs=fs.length;xs--;rs[fs[xs]]=ya);return rs},"o"),r=[1,5],i=[1,4],a=[1,3],o=[1,6],l=[1,8,9,10,11,12,28,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],h=[2,2],d=[1,15],p=[1,16],m=[1,17],y=[1,18],v=[1,19],w=[1,26],T=[1,27],x=[1,28],k=[1,30],A=[1,31],R=[1,32],N=[1,55],L=[1,54],B=[1,34],D=[1,35],P=[1,36],F=[1,37],H=[1,38],W=[1,50],X=[1,52],Q=[1,48],Y=[1,53],K=[1,49],J=[1,56],Z=[1,51],j=[1,57],ee=[1,58],z=[1,39],ne=[1,40],ie=[1,41],se=[1,42],oe=[1,43],he=[1,64],ye=[1,8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Se=[1,70],Ie=[1,68],Ee=[1,67],ze=[1,69],Me=[8,9,10,12,78,80,81],Xe=[1,88],Ye=[1,101],Qe=[1,106],xt=[1,105],dt=[1,102],zt=[1,98],Kt=[1,104],rr=[1,100],je=[1,107],Nt=[1,103],ct=[1,108],bt=[1,99],Pe=[8,9,10,11,12,43,78,80,81],Ue=[8,9,10,11,12,43,49,78,80,81],qe=[8,9,10,11,12,30,43,47,49,51,53,55,57,59,61,63,66,68,70,71,73,78,80,81,92,105,108,109,112,114,117,118,119],Ke=[8,9,10,12,47,63,78,80,81,92,105,108,109,112,114,117,118,119],Je=[47,63,92,105,108,109,112,114,117,118,119],De=[1,131],le=[1,132],pe=[1,134],fe=[1,133],be=[47,63,65,77,92,105,108,109,112,114,117,118,119],Ge=[1,143],ke=[1,157],we=[1,158],Ae=[1,159],at=[1,162],ut=[1,161],gt=[1,160],vt=[1,145],ir=[1,147],qt=[1,151],cr=[1,139],tr=[1,140],Zt=[1,152],lr=[1,153],Xt=[1,154],In=[1,155],Et=[1,156],Xn=[1,163],Yt=[1,164],Bn=[1,141],si=[1,142],dn=[1,149],Ii=[1,144],Vn=[1,148],Ei=[1,146],vn=[8,9,10,11,12,28,33,35,36,38,40,42,47,63,87,88,89,90,91,92,105,108,109,112,114,117,118,119,124,125,126,127,128],Li=[1,168],Ia=[1,170],tt=[8,9,10,12],Fn=[8,9,10,11,12,15,47,63,92,108,109,112,114,117,118,119],Hn=[1,190],_t=[1,186],Sr=[1,187],ln=[1,191],mn=[1,188],On=[1,189],as=[80,119,122],Ir=[8,9,10,11,12,13,15,28,30,33,35,36,43,47,63,78,87,88,89,90,91,92,93,108,112,114,117,118,119],hn=[11,109],zn=[32,52,54,56,58,60,65,67,69,70,72,74,119,120,121],Di=[1,269],aa=[1,267],Ca=[1,271],os=[1,265],ma=[1,266],Yn=[1,268],Tn=[1,270],Pi=[1,272],Mi=[1,292],Wn=[8,9,10,12,109],ba=[8,9,10,11,12,63,87,108,109,112,113,114,115],Lt={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,graphConfig:4,document:5,line:6,statement:7,COMMENT:8,SEMI:9,NEWLINE:10,SPACE:11,EOF:12,GRAPH:13,NODIR:14,DIR:15,FirstStmtSeparator:16,ending:17,endToken:18,spaceList:19,spaceListNewline:20,vertexStatement:21,separator:22,styleStatement:23,linkStyleStatement:24,classDefStatement:25,classStatement:26,clickStatement:27,flow:28,textNoTags:29,SQS:30,text:31,SQE:32,end:33,shapeData:34,global:35,connector:36,direction:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,SHAPE_DATA:43,link:44,node:45,styledVertex:46,AMP:47,vertex:48,STYLE_SEPARATOR:49,idString:50,DOUBLECIRCLESTART:51,DOUBLECIRCLEEND:52,PS:53,PE:54,"(-":55,"-)":56,STADIUMSTART:57,STADIUMEND:58,SUBROUTINESTART:59,SUBROUTINEEND:60,VERTEX_WITH_PROPS_START:61,"NODE_STRING[field]":62,COLON:63,"NODE_STRING[value]":64,PIPE:65,CYLINDERSTART:66,CYLINDEREND:67,DIAMOND_START:68,DIAMOND_STOP:69,TAGEND:70,TRAPSTART:71,TRAPEND:72,INVTRAPSTART:73,INVTRAPEND:74,linkStatement:75,arrowText:76,TESTSTR:77,START_LINK:78,edgeText:79,LINK:80,LINK_ID:81,edgeTextToken:82,STR:83,MD_STR:84,textToken:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTagsToken:94,stylesOpt:95,"idString[vertex]":96,"idString[class]":97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,"STR[link]":102,"STR[tooltip]":103,alphaNum:104,DEFAULT:105,numList:106,INTERPOLATE:107,NUM:108,COMMA:109,style:110,styleComponent:111,NODE_STRING:112,UNIT:113,BRKT:114,PCT:115,idStringToken:116,MINUS:117,MULT:118,UNICODE_TEXT:119,TEXT:120,TAGSTART:121,EDGE_TEXT:122,alphaNumToken:123,direction_tb:124,direction_bt:125,direction_rl:126,direction_lr:127,direction_td:128,$accept:0,$end:1},terminals_:{2:"error",8:"COMMENT",9:"SEMI",10:"NEWLINE",11:"SPACE",12:"EOF",13:"GRAPH",14:"NODIR",15:"DIR",28:"flow",30:"SQS",32:"SQE",33:"end",35:"global",36:"connector",38:"acc_title",39:"acc_title_value",40:"acc_descr",41:"acc_descr_value",42:"acc_descr_multiline_value",43:"SHAPE_DATA",47:"AMP",49:"STYLE_SEPARATOR",51:"DOUBLECIRCLESTART",52:"DOUBLECIRCLEEND",53:"PS",54:"PE",55:"(-",56:"-)",57:"STADIUMSTART",58:"STADIUMEND",59:"SUBROUTINESTART",60:"SUBROUTINEEND",61:"VERTEX_WITH_PROPS_START",62:"NODE_STRING[field]",63:"COLON",64:"NODE_STRING[value]",65:"PIPE",66:"CYLINDERSTART",67:"CYLINDEREND",68:"DIAMOND_START",69:"DIAMOND_STOP",70:"TAGEND",71:"TRAPSTART",72:"TRAPEND",73:"INVTRAPSTART",74:"INVTRAPEND",77:"TESTSTR",78:"START_LINK",80:"LINK",81:"LINK_ID",83:"STR",84:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:"DOWN",93:"UP",96:"idString[vertex]",97:"idString[class]",98:"CALLBACKNAME",99:"CALLBACKARGS",100:"HREF",101:"LINK_TARGET",102:"STR[link]",103:"STR[tooltip]",105:"DEFAULT",107:"INTERPOLATE",108:"NUM",109:"COMMA",112:"NODE_STRING",113:"UNIT",114:"BRKT",115:"PCT",117:"MINUS",118:"MULT",119:"UNICODE_TEXT",120:"TEXT",121:"TAGSTART",122:"EDGE_TEXT",124:"direction_tb",125:"direction_bt",126:"direction_rl",127:"direction_lr",128:"direction_td"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,2],[4,2],[4,3],[17,2],[17,1],[18,1],[18,1],[18,1],[16,1],[16,1],[16,2],[16,1],[20,2],[20,2],[20,2],[20,1],[20,1],[20,1],[19,2],[19,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,9],[7,10],[7,6],[7,7],[7,4],[7,4],[7,7],[7,8],[7,4],[7,5],[7,1],[7,2],[7,2],[7,1],[22,1],[22,1],[22,1],[22,1],[34,2],[34,1],[21,4],[21,3],[21,4],[21,2],[21,2],[21,1],[45,1],[45,6],[45,5],[46,1],[46,3],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,8],[48,4],[48,4],[48,4],[48,6],[48,4],[48,4],[48,4],[48,4],[48,4],[48,1],[44,2],[44,3],[44,3],[44,1],[44,3],[44,4],[79,1],[79,2],[79,1],[79,1],[75,1],[75,2],[76,3],[31,1],[31,2],[31,1],[31,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[86,1],[29,1],[29,2],[29,1],[29,1],[25,5],[26,5],[27,2],[27,4],[27,3],[27,5],[27,3],[27,5],[27,5],[27,7],[27,2],[27,4],[27,2],[27,4],[27,4],[27,6],[23,5],[24,5],[24,5],[24,9],[24,9],[24,7],[24,7],[106,1],[106,3],[95,1],[95,3],[110,1],[110,2],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[111,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[85,1],[85,1],[85,1],[85,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[82,1],[82,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[123,1],[50,1],[50,2],[104,1],[104,2],[37,1],[37,1],[37,1],[37,1],[37,1]],performAction:I(function(ya,rs,xs,Yr,Zl,ft,ro){var yt=ft.length-1;switch(Zl){case 2:this.$=[];break;case 3:if(!Array.isArray(ft[yt])||ft[yt].length>0)ft[yt-1].push(ft[yt]);this.$=ft[yt-1];break;case 4:case 198:this.$=ft[yt];break;case 5:case 33:case 34:case 35:case 36:case 37:this.$=[];break;case 13:Yr.setDirection("TB"),this.$="TB";break;case 14:Yr.setDirection(ft[yt-1]),this.$=ft[yt-1];break;case 32:this.$=ft[yt-1].nodes;break;case 38:if(this.$=Yr.addSubGraph(ft[yt-6],ft[yt-1],ft[yt-4],"flow"),Yr.addSubgraphMapping)Yr.addSubgraphMapping(ft[yt-6],ft[yt-4],ro[yt-8],ro[yt]);break;case 39:if(this.$=Yr.addSubGraph(ft[yt-7],ft[yt-1],ft[yt-5],"flow"),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,ft[yt-3],ro[yt-3]),Yr.addSubgraphMapping)Yr.addSubgraphMapping(ft[yt-7],ft[yt-5],ro[yt-9],ro[yt]);break;case 40:if(this.$=Yr.addSubGraph(ft[yt-3],ft[yt-1],{text:"",type:"text"},"flow"),Yr.addSubgraphMapping)Yr.addSubgraphMapping(ft[yt-3],{text:"",type:"text"},ro[yt-5],ro[yt]);break;case 41:if(this.$=Yr.addSubGraph(ft[yt-4],ft[yt-1],{text:"",type:"text"},"flow"),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,ft[yt-3],ro[yt-3]),Yr.addSubgraphMapping)Yr.addSubgraphMapping(ft[yt-4],{text:"",type:"text"},ro[yt-6],ro[yt]);break;case 42:if(this.$=Yr.addSubGraph(void 0,ft[yt-1],void 0,"flow"),Yr.addSubgraphMapping)Yr.addSubgraphMapping(void 0,void 0,ro[yt-3],ro[yt]);break;case 43:Yr.addGlobal(ft[yt-1]),this.$=[];break;case 44:if(this.$=Yr.addConnector(ft[yt-4],ft[yt-2]),Yr.addConnectorMapping)Yr.addConnectorMapping(ft[yt-4],ft[yt-2],ro[yt-6],ro[yt]);break;case 45:if(this.$=Yr.addConnector(ft[yt-5],ft[yt-3]),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,ft[yt-1],ro[yt-1]),Yr.addConnectorMapping)Yr.addConnectorMapping(ft[yt-5],ft[yt-3],ro[yt-7],ro[yt]);break;case 46:if(this.$=Yr.addConnector(ft[yt-1],{text:"",type:"text"}),Yr.addConnectorMapping)Yr.addConnectorMapping(ft[yt-1],{text:"",type:"text"},ro[yt-3],ro[yt]);break;case 47:if(this.$=Yr.addConnector(ft[yt-2],{text:"",type:"text"}),Yr.addVertex(this.$,void 0,void 0,void 0,void 0,void 0,void 0,ft[yt-1],ro[yt-1]),Yr.addConnectorMapping)Yr.addConnectorMapping(ft[yt-2],{text:"",type:"text"},ro[yt-4],ro[yt]);break;case 49:this.$=ft[yt].trim(),Yr.setAccTitle(this.$);break;case 50:case 51:this.$=ft[yt].trim(),Yr.setAccDescription(this.$);break;case 56:this.$=ft[yt-1]+ft[yt];break;case 57:this.$=ft[yt];break;case 58:if(Yr.addVertex(ft[yt-1][ft[yt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ft[yt],ro[yt]),Yr.extendVertexMapping)Yr.extendVertexMapping(ft[yt-1][ft[yt-1].length-1],ro[yt]);if(Yr.addLink(ft[yt-3].stmt,ft[yt-1],ft[yt-2]),Yr.addEdgeMapping)Yr.addEdgeMapping(ft[yt-3].stmt,ft[yt-1],ft[yt-2],this._$);this.$={stmt:ft[yt-1],nodes:ft[yt-1].concat(ft[yt-3].nodes)};break;case 59:if(Yr.addLink(ft[yt-2].stmt,ft[yt],ft[yt-1]),Yr.addEdgeMapping)Yr.addEdgeMapping(ft[yt-2].stmt,ft[yt],ft[yt-1],this._$);this.$={stmt:ft[yt],nodes:ft[yt].concat(ft[yt-2].nodes)};break;case 60:if(Yr.addLink(ft[yt-3].stmt,ft[yt-1],ft[yt-2]),Yr.addEdgeMapping)Yr.addEdgeMapping(ft[yt-3].stmt,ft[yt-1],ft[yt-2],this._$);this.$={stmt:ft[yt-1],nodes:ft[yt-1].concat(ft[yt-3].nodes)};break;case 61:this.$={stmt:ft[yt-1],nodes:ft[yt-1]};break;case 62:if(Yr.addVertex(ft[yt-1][ft[yt-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ft[yt],ro[yt]),Yr.extendVertexMapping)Yr.extendVertexMapping(ft[yt-1][ft[yt-1].length-1],ro[yt]);this.$={stmt:ft[yt-1],nodes:ft[yt-1],shapeData:ft[yt]};break;case 63:this.$={stmt:ft[yt],nodes:ft[yt]};break;case 64:this.$=[ft[yt]];break;case 65:if(Yr.addVertex(ft[yt-5][ft[yt-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,ft[yt-4],ro[yt-4]),Yr.extendVertexMapping)Yr.extendVertexMapping(ft[yt-5][ft[yt-5].length-1],ro[yt-4]);this.$=ft[yt-5].concat(ft[yt]);break;case 66:this.$=ft[yt-4].concat(ft[yt]);break;case 67:this.$=ft[yt];break;case 68:this.$=ft[yt-2],Yr.setClass(ft[yt-2],ft[yt]);break;case 69:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"square"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"square",this._$);break;case 70:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"doublecircle"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"doublecircle",this._$);break;case 71:if(this.$=ft[yt-5],Yr.addVertex(ft[yt-5],ft[yt-2],"circle"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-5],ft[yt-2],"circle",this._$);break;case 72:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"ellipse"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"ellipse",this._$);break;case 73:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"stadium"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"stadium",this._$);break;case 74:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"subroutine"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"subroutine",this._$);break;case 75:if(this.$=ft[yt-7],Yr.addVertex(ft[yt-7],ft[yt-1],"rect",void 0,void 0,void 0,Object.fromEntries([[ft[yt-5],ft[yt-3]]])),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-7],ft[yt-1],"rect",this._$);break;case 76:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"cylinder"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"cylinder",this._$);break;case 77:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"round"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"round",this._$);break;case 78:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"diamond"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"diamond",this._$);break;case 79:if(this.$=ft[yt-5],Yr.addVertex(ft[yt-5],ft[yt-2],"hexagon"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-5],ft[yt-2],"hexagon",this._$);break;case 80:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"odd"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"odd",this._$);break;case 81:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"trapezoid"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"trapezoid",this._$);break;case 82:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"inv_trapezoid"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"inv_trapezoid",this._$);break;case 83:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"lean_right"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"lean_right",this._$);break;case 84:if(this.$=ft[yt-3],Yr.addVertex(ft[yt-3],ft[yt-1],"lean_left"),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt-3],ft[yt-1],"lean_left",this._$);break;case 85:if(this.$=ft[yt],Yr.addVertex(ft[yt]),Yr.addVertexMapping)Yr.addVertexMapping(ft[yt],void 0,void 0,this._$);break;case 86:ft[yt-1].text=ft[yt],this.$=ft[yt-1];break;case 87:case 88:ft[yt-2].text=ft[yt-1],this.$=ft[yt-2];break;case 89:this.$=ft[yt];break;case 90:var fl=Yr.destructLink(ft[yt],ft[yt-2]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic,text:ft[yt-1]};break;case 91:var fl=Yr.destructLink(ft[yt],ft[yt-2]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic,text:ft[yt-1],id:ft[yt-3]};break;case 92:this.$={text:ft[yt],type:"text"};break;case 93:this.$={text:ft[yt-1].text+""+ft[yt],type:ft[yt-1].type};break;case 94:this.$={text:ft[yt],type:"string"};break;case 95:this.$={text:ft[yt],type:"markdown"};break;case 96:var fl=Yr.destructLink(ft[yt]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic};break;case 97:var fl=Yr.destructLink(ft[yt]);this.$={type:fl.type,stroke:fl.stroke,length:fl.length,edgeSemantic:fl.edgeSemantic,id:ft[yt-1]};break;case 98:this.$=ft[yt-1];break;case 99:this.$={text:ft[yt],type:"text"};break;case 100:this.$={text:ft[yt-1].text+""+ft[yt],type:ft[yt-1].type};break;case 101:this.$={text:ft[yt],type:"string"};break;case 102:case 119:this.$={text:ft[yt],type:"markdown"};break;case 116:this.$={text:ft[yt],type:"text"};break;case 117:this.$={text:ft[yt-1].text+""+ft[yt],type:ft[yt-1].type};break;case 118:this.$={text:ft[yt],type:"text"};break;case 120:this.$=ft[yt-4],Yr.addClass(ft[yt-2],ft[yt]);break;case 121:this.$=ft[yt-4],Yr.setClass(ft[yt-2],ft[yt]);break;case 122:case 130:this.$=ft[yt-1],Yr.setClickEvent(ft[yt-1],ft[yt]);break;case 123:case 131:this.$=ft[yt-3],Yr.setClickEvent(ft[yt-3],ft[yt-2]),Yr.setTooltip(ft[yt-3],ft[yt]);break;case 124:this.$=ft[yt-2],Yr.setClickEvent(ft[yt-2],ft[yt-1],ft[yt]);break;case 125:this.$=ft[yt-4],Yr.setClickEvent(ft[yt-4],ft[yt-3],ft[yt-2]),Yr.setTooltip(ft[yt-4],ft[yt]);break;case 126:this.$=ft[yt-2],Yr.setLink(ft[yt-2],ft[yt]);break;case 127:this.$=ft[yt-4],Yr.setLink(ft[yt-4],ft[yt-2]),Yr.setTooltip(ft[yt-4],ft[yt]);break;case 128:this.$=ft[yt-4],Yr.setLink(ft[yt-4],ft[yt-2],ft[yt]);break;case 129:this.$=ft[yt-6],Yr.setLink(ft[yt-6],ft[yt-4],ft[yt]),Yr.setTooltip(ft[yt-6],ft[yt-2]);break;case 132:this.$=ft[yt-1],Yr.setLink(ft[yt-1],ft[yt]);break;case 133:this.$=ft[yt-3],Yr.setLink(ft[yt-3],ft[yt-2]),Yr.setTooltip(ft[yt-3],ft[yt]);break;case 134:this.$=ft[yt-3],Yr.setLink(ft[yt-3],ft[yt-2],ft[yt]);break;case 135:this.$=ft[yt-5],Yr.setLink(ft[yt-5],ft[yt-4],ft[yt]),Yr.setTooltip(ft[yt-5],ft[yt-2]);break;case 136:this.$=ft[yt-4],Yr.addVertex(ft[yt-2],void 0,void 0,ft[yt]);break;case 137:this.$=ft[yt-4],Yr.updateLink([ft[yt-2]],ft[yt]);break;case 138:this.$=ft[yt-4],Yr.updateLink(ft[yt-2],ft[yt]);break;case 139:this.$=ft[yt-8],Yr.updateLinkInterpolate([ft[yt-6]],ft[yt-2]),Yr.updateLink([ft[yt-6]],ft[yt]);break;case 140:this.$=ft[yt-8],Yr.updateLinkInterpolate(ft[yt-6],ft[yt-2]),Yr.updateLink(ft[yt-6],ft[yt]);break;case 141:this.$=ft[yt-6],Yr.updateLinkInterpolate([ft[yt-4]],ft[yt]);break;case 142:this.$=ft[yt-6],Yr.updateLinkInterpolate(ft[yt-4],ft[yt]);break;case 143:case 145:this.$=[ft[yt]];break;case 144:case 146:ft[yt-2].push(ft[yt]),this.$=ft[yt-2];break;case 148:this.$=ft[yt-1]+ft[yt];break;case 196:this.$=ft[yt];break;case 197:this.$=ft[yt-1]+""+ft[yt];break;case 199:this.$=ft[yt-1]+""+ft[yt];break;case 200:this.$={stmt:"dir",value:"TB"};break;case 201:this.$={stmt:"dir",value:"BT"};break;case 202:this.$={stmt:"dir",value:"RL"};break;case 203:this.$={stmt:"dir",value:"LR"};break;case 204:this.$={stmt:"dir",value:"TD"};break}},"anonymous"),table:[{3:1,4:2,8:r,10:i,11:a,13:o},{1:[3]},e(l,h,{5:7}),{4:8,8:r,10:i,11:a,13:o},{4:9,8:r,10:i,11:a,13:o},{4:10,8:r,10:i,11:a,13:o},{14:[1,11],15:[1,12]},{1:[2,1],6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},e(l,[2,10]),e(l,[2,11]),e(l,[2,12]),e(l,[2,13]),{8:[1,63],9:[1,60],10:[1,61],11:he,16:59,19:62},e(ye,[2,3]),e(ye,[2,4]),e(ye,[2,5]),e(ye,[2,6]),e(ye,[2,7]),e(ye,[2,8]),e(ye,[2,9]),{8:Se,9:Ie,10:Ee,12:ze,22:65,44:66,75:71,78:[1,72],80:[1,74],81:[1,73]},{8:Se,9:Ie,10:Ee,12:ze,22:75},{8:Se,9:Ie,10:Ee,12:ze,22:76},{8:Se,9:Ie,10:Ee,12:ze,22:77},{8:Se,9:Ie,10:Ee,12:ze,22:78},{8:Se,9:Ie,10:Ee,12:ze,22:79},{8:Se,9:Ie,10:Ee,11:[1,80],12:ze,22:81},{8:Se,9:Ie,10:Ee,12:ze,22:82},{11:[1,83]},e(ye,[2,48]),{39:[1,84]},{41:[1,85]},e(ye,[2,51]),e(Me,[2,63],{19:86,34:87,11:he,43:Xe}),{11:[1,89]},{11:[1,90]},{11:[1,91]},{11:[1,92]},{15:Ye,47:Qe,63:xt,83:[1,96],92:dt,98:[1,93],100:[1,94],104:95,108:zt,109:Kt,112:rr,114:je,117:Nt,118:ct,119:bt,123:97},e(ye,[2,200]),e(ye,[2,201]),e(ye,[2,202]),e(ye,[2,203]),e(ye,[2,204]),e(Pe,[2,64]),e(Pe,[2,67],{49:[1,109]}),e(Ue,[2,85],{116:122,30:[1,110],47:N,51:[1,111],53:[1,112],55:[1,113],57:[1,114],59:[1,115],61:[1,116],63:L,66:[1,117],68:[1,118],70:[1,119],71:[1,120],73:[1,121],92:W,105:X,108:Q,109:Y,112:K,114:J,117:Z,118:j,119:ee}),e(qe,[2,196]),e(qe,[2,157]),e(qe,[2,158]),e(qe,[2,159]),e(qe,[2,160]),e(qe,[2,161]),e(qe,[2,162]),e(qe,[2,163]),e(qe,[2,164]),e(qe,[2,165]),e(qe,[2,166]),e(qe,[2,167]),e(l,[2,14]),e(l,[2,20]),e(l,[2,21]),{10:[1,123]},e(l,[2,23]),e(Ke,[2,31],{19:124,11:he}),e(ye,[2,32]),{45:125,46:44,47:N,48:45,50:46,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},e(ye,[2,52]),e(ye,[2,53]),e(ye,[2,54]),e(ye,[2,55]),e(Je,[2,89],{76:126,65:[1,128],77:[1,127]}),{79:129,82:130,83:De,84:le,119:pe,122:fe},{78:[1,135],80:[1,136]},e(be,[2,96]),e(ye,[2,33]),e(ye,[2,34]),e(ye,[2,35]),e(ye,[2,36]),e(ye,[2,37]),{11:Ge,13:ke,15:we,28:Ae,29:137,33:at,35:ut,36:gt,47:vt,63:ir,78:qt,83:cr,84:tr,86:150,87:Zt,88:lr,89:Xt,90:In,91:Et,92:Xn,93:Yt,94:138,108:Bn,112:si,114:dn,117:Ii,118:Vn,119:Ei},e(vn,h,{5:165}),e(vn,h,{5:166}),{11:Ge,13:ke,15:we,28:Ae,29:167,33:at,35:ut,36:gt,47:vt,63:ir,78:qt,83:cr,84:tr,86:150,87:Zt,88:lr,89:Xt,90:In,91:Et,92:Xn,93:Yt,94:138,108:Bn,112:si,114:dn,117:Ii,118:Vn,119:Ei},e(ye,[2,49]),e(ye,[2,50]),e(Me,[2,61],{47:Li}),e(Me,[2,62],{19:169,11:he,43:Ia}),e(Pe,[2,57]),{47:N,50:171,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},{105:[1,172],106:173,108:[1,174]},{47:N,50:175,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},{47:N,50:176,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},e(tt,[2,122],{11:[1,177],99:[1,178]}),{83:[1,179]},e(tt,[2,130],{123:181,11:[1,180],15:Ye,47:Qe,63:xt,92:dt,108:zt,109:Kt,112:rr,114:je,117:Nt,118:ct,119:bt}),e(tt,[2,132],{11:[1,182]}),e(Fn,[2,198]),e(Fn,[2,185]),e(Fn,[2,186]),e(Fn,[2,187]),e(Fn,[2,188]),e(Fn,[2,189]),e(Fn,[2,190]),e(Fn,[2,191]),e(Fn,[2,192]),e(Fn,[2,193]),e(Fn,[2,194]),e(Fn,[2,195]),{47:N,50:183,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},{31:184,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:192,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:194,53:[1,193],70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:195,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:196,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:197,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{112:[1,198]},{31:199,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:200,68:[1,201],70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:202,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:203,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{31:204,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},e(qe,[2,197]),e(l,[2,22]),e(Ke,[2,30]),e(Me,[2,59],{34:205,19:206,11:he,43:Xe}),e(Je,[2,86],{11:[1,207]}),{11:[1,208]},{31:209,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{80:[1,210],82:211,119:pe,122:fe},e(as,[2,92]),e(as,[2,94]),e(as,[2,95]),e(as,[2,183]),e(as,[2,184]),{79:212,82:130,83:De,84:le,119:pe,122:fe},e(be,[2,97]),{8:Se,9:Ie,10:Ee,11:Ge,12:ze,13:ke,15:we,22:214,28:Ae,30:[1,213],33:at,34:215,35:ut,36:gt,43:Xe,47:vt,63:ir,78:qt,86:150,87:Zt,88:lr,89:Xt,90:In,91:Et,92:Xn,93:Yt,94:216,108:Bn,112:si,114:dn,117:Ii,118:Vn,119:Ei},e(Ir,[2,116]),e(Ir,[2,118]),e(Ir,[2,119]),e(Ir,[2,172]),e(Ir,[2,173]),e(Ir,[2,174]),e(Ir,[2,175]),e(Ir,[2,176]),e(Ir,[2,177]),e(Ir,[2,178]),e(Ir,[2,179]),e(Ir,[2,180]),e(Ir,[2,181]),e(Ir,[2,182]),e(Ir,[2,103]),e(Ir,[2,104]),e(Ir,[2,105]),e(Ir,[2,106]),e(Ir,[2,107]),e(Ir,[2,108]),e(Ir,[2,109]),e(Ir,[2,110]),e(Ir,[2,111]),e(Ir,[2,112]),e(Ir,[2,113]),e(Ir,[2,114]),e(Ir,[2,115]),{6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,217],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},{6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,218],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},{8:Se,9:Ie,10:Ee,11:Ge,12:ze,13:ke,15:we,22:220,28:Ae,30:[1,219],33:at,34:221,35:ut,36:gt,43:Xe,47:vt,63:ir,78:qt,86:150,87:Zt,88:lr,89:Xt,90:In,91:Et,92:Xn,93:Yt,94:216,108:Bn,112:si,114:dn,117:Ii,118:Vn,119:Ei},{11:he,19:222},{47:[1,223]},e(Pe,[2,56]),{11:[1,224],47:N,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:122,117:Z,118:j,119:ee},{11:[1,225]},{11:[1,226],109:[1,227]},e(hn,[2,143]),{11:[1,228],47:N,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:122,117:Z,118:j,119:ee},{11:[1,229],47:N,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:122,117:Z,118:j,119:ee},{83:[1,230]},e(tt,[2,124],{11:[1,231]}),e(tt,[2,126],{11:[1,232]}),{83:[1,233]},e(Fn,[2,199]),{83:[1,234],101:[1,235]},e(Pe,[2,68],{116:122,47:N,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,117:Z,118:j,119:ee}),{32:[1,236],70:Hn,85:237,119:ln,120:mn,121:On},e(zn,[2,99]),e(zn,[2,101]),e(zn,[2,102]),e(zn,[2,168]),e(zn,[2,169]),e(zn,[2,170]),e(zn,[2,171]),{52:[1,238],70:Hn,85:237,119:ln,120:mn,121:On},{31:239,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{54:[1,240],70:Hn,85:237,119:ln,120:mn,121:On},{56:[1,241],70:Hn,85:237,119:ln,120:mn,121:On},{58:[1,242],70:Hn,85:237,119:ln,120:mn,121:On},{60:[1,243],70:Hn,85:237,119:ln,120:mn,121:On},{63:[1,244]},{67:[1,245],70:Hn,85:237,119:ln,120:mn,121:On},{69:[1,246],70:Hn,85:237,119:ln,120:mn,121:On},{31:247,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},{32:[1,248],70:Hn,85:237,119:ln,120:mn,121:On},{70:Hn,72:[1,249],74:[1,250],85:237,119:ln,120:mn,121:On},{70:Hn,72:[1,252],74:[1,251],85:237,119:ln,120:mn,121:On},e(Me,[2,58],{19:169,11:he,43:Ia}),e(Me,[2,60],{47:Li}),e(Je,[2,88]),e(Je,[2,87]),{65:[1,253],70:Hn,85:237,119:ln,120:mn,121:On},e(Je,[2,90]),e(as,[2,93]),{80:[1,254],82:211,119:pe,122:fe},{31:255,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},e(vn,h,{5:256}),{8:Se,9:Ie,10:Ee,12:ze,22:257,43:Ia},e(Ir,[2,117]),e(ye,[2,42]),e(ye,[2,43]),{31:258,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},e(ye,[2,46]),{8:Se,9:Ie,10:Ee,12:ze,22:259,43:Ia},{46:260,47:N,48:45,50:46,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},{11:he,19:261},{11:Di,63:aa,87:Ca,95:262,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{11:Di,63:aa,87:Ca,95:273,107:[1,274],108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{11:Di,63:aa,87:Ca,95:275,107:[1,276],108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{108:[1,277]},{11:Di,63:aa,87:Ca,95:278,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{47:N,50:279,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},e(tt,[2,123]),{83:[1,280]},{83:[1,281],101:[1,282]},e(tt,[2,131]),e(tt,[2,133],{11:[1,283]}),e(tt,[2,134]),e(Ue,[2,69]),e(zn,[2,100]),e(Ue,[2,70]),{54:[1,284],70:Hn,85:237,119:ln,120:mn,121:On},e(Ue,[2,77]),e(Ue,[2,72]),e(Ue,[2,73]),e(Ue,[2,74]),{112:[1,285]},e(Ue,[2,76]),e(Ue,[2,78]),{69:[1,286],70:Hn,85:237,119:ln,120:mn,121:On},e(Ue,[2,80]),e(Ue,[2,81]),e(Ue,[2,83]),e(Ue,[2,82]),e(Ue,[2,84]),e([11,47,63,92,105,108,109,112,114,117,118,119],[2,98]),e(Je,[2,91]),{32:[1,287],70:Hn,85:237,119:ln,120:mn,121:On},{6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,288],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},e(vn,h,{5:289}),{32:[1,290],70:Hn,85:237,119:ln,120:mn,121:On},e(ye,[2,47]),e(Pe,[2,66]),{46:291,47:N,48:45,50:46,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee},e(tt,[2,136],{109:Mi}),e(Wn,[2,145],{111:293,11:Di,63:aa,87:Ca,108:os,112:ma,113:Yn,114:Tn,115:Pi}),e(ba,[2,147]),e(ba,[2,149]),e(ba,[2,150]),e(ba,[2,151]),e(ba,[2,152]),e(ba,[2,153]),e(ba,[2,154]),e(ba,[2,155]),e(ba,[2,156]),e(tt,[2,137],{109:Mi}),{11:[1,294]},e(tt,[2,138],{109:Mi}),{11:[1,295]},e(hn,[2,144]),e(tt,[2,120],{109:Mi}),e(tt,[2,121],{116:122,47:N,63:L,92:W,105:X,108:Q,109:Y,112:K,114:J,117:Z,118:j,119:ee}),e(tt,[2,125]),e(tt,[2,127],{11:[1,296]}),e(tt,[2,128]),{101:[1,297]},{54:[1,298]},{65:[1,299]},{69:[1,300]},{8:Se,9:Ie,10:Ee,12:ze,22:301,34:302,43:Xe},e(ye,[2,40]),{6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,303],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},{8:Se,9:Ie,10:Ee,12:ze,22:304,34:305,43:Xe},e(Pe,[2,65]),{11:Di,63:aa,87:Ca,108:os,110:306,111:264,112:ma,113:Yn,114:Tn,115:Pi},e(ba,[2,148]),{15:Ye,47:Qe,63:xt,92:dt,104:307,108:zt,109:Kt,112:rr,114:je,117:Nt,118:ct,119:bt,123:97},{15:Ye,47:Qe,63:xt,92:dt,104:308,108:zt,109:Kt,112:rr,114:je,117:Nt,118:ct,119:bt,123:97},{101:[1,309]},e(tt,[2,135]),e(Ue,[2,71]),{31:310,70:Hn,83:_t,84:Sr,85:185,119:ln,120:mn,121:On},e(Ue,[2,79]),e(vn,h,{5:311}),{8:Se,9:Ie,10:Ee,12:ze,22:312,43:Ia},e(ye,[2,41]),e(ye,[2,44]),{8:Se,9:Ie,10:Ee,12:ze,22:313,43:Ia},e(Wn,[2,146],{111:293,11:Di,63:aa,87:Ca,108:os,112:ma,113:Yn,114:Tn,115:Pi}),e(tt,[2,141],{123:181,11:[1,314],15:Ye,47:Qe,63:xt,92:dt,108:zt,109:Kt,112:rr,114:je,117:Nt,118:ct,119:bt}),e(tt,[2,142],{123:181,11:[1,315],15:Ye,47:Qe,63:xt,92:dt,108:zt,109:Kt,112:rr,114:je,117:Nt,118:ct,119:bt}),e(tt,[2,129]),{32:[1,316],70:Hn,85:237,119:ln,120:mn,121:On},{6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,317],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},e(vn,h,{5:318}),e(ye,[2,45]),{11:Di,63:aa,87:Ca,95:319,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},{11:Di,63:aa,87:Ca,95:320,108:os,110:263,111:264,112:ma,113:Yn,114:Tn,115:Pi},e(Ue,[2,75]),e(ye,[2,38]),{6:13,7:14,8:d,9:p,10:m,11:y,12:v,21:20,23:21,24:22,25:23,26:24,27:25,28:w,33:[1,321],35:T,36:x,37:29,38:k,40:A,42:R,45:33,46:44,47:N,48:45,50:46,63:L,87:B,88:D,89:P,90:F,91:H,92:W,105:X,108:Q,109:Y,112:K,114:J,116:47,117:Z,118:j,119:ee,124:z,125:ne,126:ie,127:se,128:oe},e(tt,[2,139],{109:Mi}),e(tt,[2,140],{109:Mi}),e(ye,[2,39])],defaultActions:{},parseError:I(function(ya,rs){if(rs.recoverable)this.trace(ya);else{var xs=Error(ya);throw xs.hash=rs,xs}},"parseError"),parse:I(function(ya){var rs=this,xs=[0],Yr=[],Zl=[null],ft=[],ro=this.table,yt="",fl=0,lb=0,dd=0,cb=2,$u=1,c1=ft.slice.call(arguments,1),pl=Object.create(this.lexer),kh={yy:{}};for(var Lv in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Lv))kh.yy[Lv]=this.yy[Lv];if(pl.setInput(ya,kh.yy),kh.yy.lexer=pl,kh.yy.parser=this,typeof pl.yylloc>"u")pl.yylloc={};var Mv=pl.yylloc;ft.push(Mv);var u1=pl.options&&pl.options.ranges;if(typeof kh.yy.parseError==="function")this.parseError=kh.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Kp($n){xs.length=xs.length-2*$n,Zl.length=Zl.length-$n,ft.length=ft.length-$n}I(Kp,"popStack");function xf(){var $n=Yr.pop()||pl.lex()||$u;if(typeof $n!=="number"){if($n instanceof Array)Yr=$n,$n=Yr.pop();$n=rs.symbols_[$n]||$n}return $n}I(xf,"lex");var Xh,pm,$0,Uu,qF,hA,w2={},S2,ub,oi,Mt;while(!0){if($0=xs[xs.length-1],this.defaultActions[$0])Uu=this.defaultActions[$0];else{if(Xh===null||typeof Xh>"u")Xh=xf();Uu=ro[$0]&&ro[$0][Xh]}if(typeof Uu>"u"||!Uu.length||!Uu[0]){var Or="";Mt=[];for(S2 in ro[$0])if(this.terminals_[S2]&&S2>cb)Mt.push("'"+this.terminals_[S2]+"'");if(pl.showPosition)Or="Parse error on line "+(fl+1)+`: `+pl.showPosition()+` -Expecting `+Mt.join(", ")+", got '"+(this.terminals_[Xh]||Xh)+"'";else Or="Parse error on line "+(fl+1)+": Unexpected "+(Xh==$u?"end of input":"'"+(this.terminals_[Xh]||Xh)+"'");this.parseError(Or,{text:pl.match,token:this.terminals_[Xh]||Xh,line:pl.yylineno,loc:Mv,expected:Mt})}if(Uu[0]instanceof Array&&Uu.length>1)throw Error("Parse Error: multiple actions possible at state: "+$0+", token: "+Xh);switch(Uu[0]){case 1:if(xs.push(Xh),Zl.push(pl.yytext),dt.push(pl.yylloc),xs.push(Uu[1]),Xh=null,!pm){if(lb=pl.yyleng,yt=pl.yytext,fl=pl.yylineno,Mv=pl.yylloc,dd>0)dd--}else Xh=pm,pm=null;break;case 2:if(ub=this.productions_[Uu[1]][1],w2.$=Zl[Zl.length-ub],w2._$={first_line:dt[dt.length-(ub||1)].first_line,last_line:dt[dt.length-1].last_line,first_column:dt[dt.length-(ub||1)].first_column,last_column:dt[dt.length-1].last_column},u1)w2._$.range=[dt[dt.length-(ub||1)].range[0],dt[dt.length-1].range[1]];if(lA=this.performAction.apply(w2,[yt,lb,fl,kh.yy,Uu[1],Zl,dt].concat(c1)),typeof lA<"u")return lA;if(ub)xs=xs.slice(0,-1*ub*2),Zl=Zl.slice(0,-1*ub),dt=dt.slice(0,-1*ub);xs.push(this.productions_[Uu[1]][0]),Zl.push(w2.$),dt.push(w2._$),oi=ro[xs[xs.length-2]][xs[xs.length-1]],xs.push(oi);break;case 3:return!0}}return!0},"parse")},Gc=function(){var fs={EOF:1,parseError:I(function(rs,xs){if(this.yy.parser)this.yy.parser.parseError(rs,xs);else throw Error(rs)},"parseError"),setInput:I(function(ya,rs){if(this.yy=rs||this.yy||{},this._input=ya,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var ya=this._input[0];this.yytext+=ya,this.yyleng++,this.offset++,this.match+=ya,this.matched+=ya;var rs=ya.match(/(?:\r\n?|\n).*/g);if(rs)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),ya},"input"),unput:I(function(ya){var rs=ya.length,xs=ya.split(/(?:\r\n?|\n)/g);this._input=ya+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rs),this.offset-=rs;var Yr=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),xs.length-1)this.yylineno-=xs.length-1;var Zl=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xs?(xs.length===Yr.length?this.yylloc.first_column:0)+Yr[Yr.length-xs.length].length-xs[0].length:this.yylloc.first_column-rs},this.options.ranges)this.yylloc.range=[Zl[0],Zl[0]+this.yyleng-rs];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Mt.join(", ")+", got '"+(this.terminals_[Xh]||Xh)+"'";else Or="Parse error on line "+(fl+1)+": Unexpected "+(Xh==$u?"end of input":"'"+(this.terminals_[Xh]||Xh)+"'");this.parseError(Or,{text:pl.match,token:this.terminals_[Xh]||Xh,line:pl.yylineno,loc:Mv,expected:Mt})}if(Uu[0]instanceof Array&&Uu.length>1)throw Error("Parse Error: multiple actions possible at state: "+$0+", token: "+Xh);switch(Uu[0]){case 1:if(xs.push(Xh),Zl.push(pl.yytext),ft.push(pl.yylloc),xs.push(Uu[1]),Xh=null,!pm){if(lb=pl.yyleng,yt=pl.yytext,fl=pl.yylineno,Mv=pl.yylloc,dd>0)dd--}else Xh=pm,pm=null;break;case 2:if(ub=this.productions_[Uu[1]][1],w2.$=Zl[Zl.length-ub],w2._$={first_line:ft[ft.length-(ub||1)].first_line,last_line:ft[ft.length-1].last_line,first_column:ft[ft.length-(ub||1)].first_column,last_column:ft[ft.length-1].last_column},u1)w2._$.range=[ft[ft.length-(ub||1)].range[0],ft[ft.length-1].range[1]];if(hA=this.performAction.apply(w2,[yt,lb,fl,kh.yy,Uu[1],Zl,ft].concat(c1)),typeof hA<"u")return hA;if(ub)xs=xs.slice(0,-1*ub*2),Zl=Zl.slice(0,-1*ub),ft=ft.slice(0,-1*ub);xs.push(this.productions_[Uu[1]][0]),Zl.push(w2.$),ft.push(w2._$),oi=ro[xs[xs.length-2]][xs[xs.length-1]],xs.push(oi);break;case 3:return!0}}return!0},"parse")},Gc=function(){var fs={EOF:1,parseError:I(function(rs,xs){if(this.yy.parser)this.yy.parser.parseError(rs,xs);else throw Error(rs)},"parseError"),setInput:I(function(ya,rs){if(this.yy=rs||this.yy||{},this._input=ya,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var ya=this._input[0];this.yytext+=ya,this.yyleng++,this.offset++,this.match+=ya,this.matched+=ya;var rs=ya.match(/(?:\r\n?|\n).*/g);if(rs)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),ya},"input"),unput:I(function(ya){var rs=ya.length,xs=ya.split(/(?:\r\n?|\n)/g);this._input=ya+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-rs),this.offset-=rs;var Yr=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),xs.length-1)this.yylineno-=xs.length-1;var Zl=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:xs?(xs.length===Yr.length?this.yylloc.first_column:0)+Yr[Yr.length-xs.length].length-xs[0].length:this.yylloc.first_column-rs},this.options.ranges)this.yylloc.range=[Zl[0],Zl[0]+this.yyleng-rs];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(ya){this.unput(this.match.slice(ya))},"less"),pastInput:I(function(){var ya=this.matched.substr(0,this.matched.length-this.match.length);return(ya.length>20?"...":"")+ya.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var ya=this.match;if(ya.length<20)ya+=this._input.substr(0,20-ya.length);return(ya.substr(0,20)+(ya.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var ya=this.pastInput(),rs=Array(ya.length+1).join("-");return ya+this.upcomingInput()+` -`+rs+"^"},"showPosition"),test_match:I(function(ya,rs){var xs,Yr,Zl;if(this.options.backtrack_lexer){if(Zl={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Zl.yylloc.range=this.yylloc.range.slice(0)}if(Yr=ya[0].match(/(?:\r\n?|\n).*/g),Yr)this.yylineno+=Yr.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Yr?Yr[Yr.length-1].length-Yr[Yr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ya[0].length},this.yytext+=ya[0],this.match+=ya[0],this.matches=ya,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(ya[0].length),this.matched+=ya[0],xs=this.performAction.call(this,this.yy,this,rs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(xs)return xs;else if(this._backtrack){for(var dt in Zl)this[dt]=Zl[dt];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var ya,rs,xs,Yr;if(!this._more)this.yytext="",this.match="";var Zl=this._currentRules();for(var dt=0;dtrs[0].length)){if(rs=xs,Yr=dt,this.options.backtrack_lexer)if(ya=this.test_match(xs,Zl[dt]),ya!==!1)return ya;else if(this._backtrack){rs=!1;continue}else return!1;else if(!this.options.flex)break}if(rs){if(ya=this.test_match(rs,Zl[Yr]),ya!==!1)return ya;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var rs=this.next();if(rs)return rs;else return this.lex()},"lex"),begin:I(function(rs){this.conditionStack.push(rs)},"begin"),popState:I(function(){var rs=this.conditionStack.length-1;if(rs>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(rs){if(rs=this.conditionStack.length-1-Math.abs(rs||0),rs>=0)return this.conditionStack[rs];else return"INITIAL"},"topState"),pushState:I(function(rs){this.begin(rs)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(rs,xs,Yr,Zl){var dt=Zl;switch(Yr){case 0:return this.begin("acc_title"),38;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),40;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),xs.yytext="",43;break;case 8:return this.pushState("shapeDataStr"),43;break;case 9:return this.popState(),43;break;case 10:let ro=/\n\s*/g;return xs.yytext=xs.yytext.replace(ro,"
    "),43;break;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:if(rs.lex.firstGraph())this.begin("dir");return 13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;break;case 45:return this.popState(),15;break;case 46:return this.popState(),15;break;case 47:return this.popState(),15;break;case 48:return this.popState(),15;break;case 49:return this.popState(),15;break;case 50:return this.popState(),15;break;case 51:return this.popState(),15;break;case 52:return this.popState(),15;break;case 53:return this.popState(),15;break;case 54:return this.popState(),15;break;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;break;case 70:return this.pushState("edgeText"),78;break;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;break;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;break;case 77:return this.popState(),58;break;case 78:return this.pushState("text"),57;break;case 79:return this.popState(),60;break;case 80:return this.pushState("text"),59;break;case 81:return 61;case 82:return this.pushState("text"),70;break;case 83:return this.popState(),67;break;case 84:return this.pushState("text"),66;break;case 85:return this.popState(),52;break;case 86:return this.pushState("text"),51;break;case 87:break;case 88:return this.popState(),72;break;case 89:return this.popState(),74;break;case 90:return 120;case 91:return this.pushState("trapText"),71;break;case 92:return this.pushState("trapText"),73;break;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;break;case 106:return this.pushState("text"),65;break;case 107:return this.popState(),54;break;case 108:return this.pushState("text"),53;break;case 109:return this.popState(),32;break;case 110:return this.pushState("text"),30;break;case 111:return this.popState(),69;break;case 112:return this.pushState("text"),68;break;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return fs}();Lt.lexer=Gc;function zt(){this.yy={}}return I(zt,"Parser"),zt.prototype=Lt,Lt.Parser=zt,new zt}();Qot.parser=Qot;uPr=Qot,hPr=Object.assign({},uPr);hPr.parse=(e)=>{let r=e.replace(/}[^\S\n]*\n/g,`} -`);return uPr.parse(r)};yfi=hPr,vfi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h=jS(e.THEME_COLOR_LIMIT,a),d=I((y)=>a[y%a.length],"border"),p=I((y)=>l?`fill: ${i[y%i.length]};`:"","fill"),m="";for(let y of hfi){let E=Cxe.get(y),w=`[data-look="${o}"].node.${aPr(y)}`;m+=` +`+rs+"^"},"showPosition"),test_match:I(function(ya,rs){var xs,Yr,Zl;if(this.options.backtrack_lexer){if(Zl={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Zl.yylloc.range=this.yylloc.range.slice(0)}if(Yr=ya[0].match(/(?:\r\n?|\n).*/g),Yr)this.yylineno+=Yr.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Yr?Yr[Yr.length-1].length-Yr[Yr.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ya[0].length},this.yytext+=ya[0],this.match+=ya[0],this.matches=ya,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(ya[0].length),this.matched+=ya[0],xs=this.performAction.call(this,this.yy,this,rs,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(xs)return xs;else if(this._backtrack){for(var ft in Zl)this[ft]=Zl[ft];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var ya,rs,xs,Yr;if(!this._more)this.yytext="",this.match="";var Zl=this._currentRules();for(var ft=0;ftrs[0].length)){if(rs=xs,Yr=ft,this.options.backtrack_lexer)if(ya=this.test_match(xs,Zl[ft]),ya!==!1)return ya;else if(this._backtrack){rs=!1;continue}else return!1;else if(!this.options.flex)break}if(rs){if(ya=this.test_match(rs,Zl[Yr]),ya!==!1)return ya;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var rs=this.next();if(rs)return rs;else return this.lex()},"lex"),begin:I(function(rs){this.conditionStack.push(rs)},"begin"),popState:I(function(){var rs=this.conditionStack.length-1;if(rs>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(rs){if(rs=this.conditionStack.length-1-Math.abs(rs||0),rs>=0)return this.conditionStack[rs];else return"INITIAL"},"topState"),pushState:I(function(rs){this.begin(rs)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(rs,xs,Yr,Zl){var ft=Zl;switch(Yr){case 0:return this.begin("acc_title"),38;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),40;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.pushState("shapeData"),xs.yytext="",43;break;case 8:return this.pushState("shapeDataStr"),43;break;case 9:return this.popState(),43;break;case 10:let ro=/\n\s*/g;return xs.yytext=xs.yytext.replace(ro,"
    "),43;break;case 11:return 43;case 12:this.popState();break;case 13:this.begin("callbackname");break;case 14:this.popState();break;case 15:this.popState(),this.begin("callbackargs");break;case 16:return 98;case 17:this.popState();break;case 18:return 99;case 19:return"MD_STR";case 20:this.popState();break;case 21:this.begin("md_string");break;case 22:return"STR";case 23:this.popState();break;case 24:this.pushState("string");break;case 25:return 87;case 26:return 105;case 27:return 88;case 28:return 107;case 29:return 89;case 30:return 90;case 31:return 100;case 32:this.begin("click");break;case 33:this.popState();break;case 34:return 91;case 35:if(rs.lex.firstGraph())this.begin("dir");return 13;case 36:return 28;case 37:return 36;case 38:return 35;case 39:return 33;case 40:return 101;case 41:return 101;case 42:return 101;case 43:return 101;case 44:return this.popState(),14;break;case 45:return this.popState(),15;break;case 46:return this.popState(),15;break;case 47:return this.popState(),15;break;case 48:return this.popState(),15;break;case 49:return this.popState(),15;break;case 50:return this.popState(),15;break;case 51:return this.popState(),15;break;case 52:return this.popState(),15;break;case 53:return this.popState(),15;break;case 54:return this.popState(),15;break;case 55:return 124;case 56:return 125;case 57:return 126;case 58:return 127;case 59:return 128;case 60:return 81;case 61:return 108;case 62:return 114;case 63:return 49;case 64:return 63;case 65:return 47;case 66:return 9;case 67:return 109;case 68:return 118;case 69:return this.popState(),80;break;case 70:return this.pushState("edgeText"),78;break;case 71:return 122;case 72:return 80;case 73:break;case 74:return this.popState(),56;break;case 75:return"TEXT";case 76:return this.pushState("ellipseText"),55;break;case 77:return this.popState(),58;break;case 78:return this.pushState("text"),57;break;case 79:return this.popState(),60;break;case 80:return this.pushState("text"),59;break;case 81:return 61;case 82:return this.pushState("text"),70;break;case 83:return this.popState(),67;break;case 84:return this.pushState("text"),66;break;case 85:return this.popState(),52;break;case 86:return this.pushState("text"),51;break;case 87:break;case 88:return this.popState(),72;break;case 89:return this.popState(),74;break;case 90:return 120;case 91:return this.pushState("trapText"),71;break;case 92:return this.pushState("trapText"),73;break;case 93:return 121;case 94:return 70;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 118;case 99:return 114;case 100:return 47;case 101:return 8;case 102:return 112;case 103:return 117;case 104:return 119;case 105:return this.popState(),65;break;case 106:return this.pushState("text"),65;break;case 107:return this.popState(),54;break;case 108:return this.pushState("text"),53;break;case 109:return this.popState(),32;break;case 110:return this.pushState("text"),30;break;case 111:return this.popState(),69;break;case 112:return this.pushState("text"),68;break;case 113:break;case 114:return"TEXT";case 115:return"QUOTE";case 116:return 10;case 117:return 11;case 118:return 12}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:@\{)/,/^(?:["])/,/^(?:["])/,/^(?:[^\"]+)/,/^(?:[^}^"]+)/,/^(?:\})/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["][`])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:["])/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s])/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:agentflow-beta\b)/,/^(?:flow\b)/,/^(?:connector\b)/,/^(?:global\b[ \t]*)/,/^(?:end\b[ \t]*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:.*direction\s+TD[^\n]*)/,/^(?:[^\s\"]+@(?=[^\{\"]))/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*--+[x>]\s*)/,/^(?:\s*--\s*)/,/^(?:[^-]|-(?!-)+)/,/^(?:\s*-\.+-\s*)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[-/\)][\)])/,/^(?:[^\(\)\[\]\{\}]|!\)+)/,/^(?:\(-)/,/^(?:\]\))/,/^(?:\(\[)/,/^(?:\]\])/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:>)/,/^(?:\)\])/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\(\(\()/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[\\(?=\])][\]])/,/^(?:\/(?=\])\])/,/^(?:\/(?!\])|\\(?!\])|(?:[^\\\[\]\(\)\{\}\/%]+|(?!))+)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:\*)/,/^(?:#)/,/^(?:&)/,/^(?:[ \t]*%%(?!\{)[^\n]*)/,/^(?:([A-Za-z0-9!"\#$%&'*+\.`?\\_\/]|-(?=[^\>\-\.])|(?!))+)/,/^(?:-)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\|)/,/^(?:\|)/,/^(?:\))/,/^(?:\()/,/^(?:\])/,/^(?:\[)/,/^(?:(\}))/,/^(?:\{)/,/^(?:%%(?!\{)[^\n]*)/,/^(?:(?:[^\[\]\(\)\{\}\|\"%]+|(?!))+)/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},shapeData:{rules:[8,11,12,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackargs:{rules:[17,18,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},callbackname:{rules:[14,15,16,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},href:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},click:{rules:[21,24,33,34,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},edgeText:{rules:[21,24,69,71,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},trapText:{rules:[21,24,76,78,80,84,86,87,88,89,90,91,92,106,108,110,112],inclusive:!1},ellipseText:{rules:[21,24,73,74,75,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},text:{rules:[21,24,76,77,78,79,80,83,84,85,86,91,92,105,106,107,108,109,110,111,112,113,114],inclusive:!1},vertex:{rules:[21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_descr:{rules:[3,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},acc_title:{rules:[1,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},md_string:{rules:[19,20,21,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},string:{rules:[21,22,23,24,76,78,80,84,86,91,92,106,108,110,112],inclusive:!1},INITIAL:{rules:[0,2,4,7,13,21,24,25,26,27,28,29,30,31,32,35,36,37,38,39,40,41,42,43,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,72,76,78,80,81,82,84,86,91,92,93,94,95,96,97,98,99,100,101,102,103,104,106,108,110,112,115,116,117,118],inclusive:!0}}};return fs}();Lt.lexer=Gc;function Vt(){this.yy={}}return I(Vt,"Parser"),Vt.prototype=Lt,Lt.Parser=Vt,new Vt}();elt.parser=elt;gPr=elt,mPr=Object.assign({},gPr);mPr.parse=(e)=>{let r=e.replace(/}[^\S\n]*\n/g,`} +`);return gPr.parse(r)};Tfi=mPr,xfi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h=KS(e.THEME_COLOR_LIMIT,a),d=I((y)=>a[y%a.length],"border"),p=I((y)=>l?`fill: ${i[y%i.length]};`:"","fill"),m="";for(let y of bfi){let v=Rxe.get(y),w=`[data-look="${o}"].node.${uPr(y)}`;m+=` ${w} rect, ${w} path, ${w} polygon { - stroke: ${d(E)}; - ${p(E)} + stroke: ${d(v)}; + ${p(v)} } -`}for(let y=0;y`${w} ${k}, ${T} ${k}`,"rule");m+=` +`}for(let y=0;y`${w} ${k}, ${T} ${k}`,"rule");m+=` ${x("rect")}, ${x("path")} { - stroke: ${d(E)}; - ${p(E)} + stroke: ${d(v)}; + ${p(v)} } -`}return m},"genColor"),_fi=I((e,r)=>{let i=gR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),Efi=I((e)=>`${vfi(e)} +`}return m},"genColor"),Cfi=I((e,r)=>{let i=yR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),kfi=I((e)=>`${xfi(e)} .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; @@ -1311,7 +1311,7 @@ Expecting `+Mt.join(", ")+", got '"+(this.terminals_[Xh]||Xh)+"'";else Or="Parse /* For html labels only */ .labelBkg { - background-color: ${_fi(e.edgeLabelBackground,0.5)}; + background-color: ${Cfi(e.edgeLabelBackground,0.5)}; } .cluster rect { @@ -1386,20 +1386,20 @@ Expecting `+Mt.join(", ")+", got '"+(this.terminals_[Xh]||Xh)+"'";else Or="Parse } text-align: center; } - ${dT()} -`,"getStyles"),wfi=Efi,dPr={parser:yfi,get db(){return new pfi},renderer:bfi,styles:wfi,init:I((e)=>{if(e.agentflow??={},e.layout)RR({layout:e.layout});e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,RR({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}});var Sfi,Tfi,pPr;var gPr=Re(()=>{jot();oI();MC();fT();vL();lT();WE();z3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();Sfi=I((e)=>`${Wot(e)} + ${fT()} +`,"getStyles"),Afi=kfi,bPr={parser:Tfi,get db(){return new _fi},renderer:Sfi,styles:Afi,init:I((e)=>{if(e.agentflow??={},e.layout)NR({layout:e.layout});e.flowchart??={},e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,NR({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}});var Rfi,Ifi,vPr;var _Pr=Re(()=>{Qot();uI();PC();pT();EL();cT();WE();V3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();Rfi=I((e)=>`${Xot(e)} .swimlane.cluster:not([data-color-id]) rect { stroke: ${e.clusterBorder} !important; } [data-look="neo"].cluster rect { filter: none; } -`,"getStyles"),Tfi=Sfi,pPr=Txe({styles:Tfi})});var Zot,xfi,Cfi,bPr,kfi,mPr,Afi,Rfi,Ifi,yPr;var vPr=Re(()=>{MC();fT();lT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();x0();Zot=function(){var e=I(function(bt,Pe,Ge,qe){for(Ge=Ge||{},qe=bt.length;qe--;Ge[bt[qe]]=Pe);return Ge},"o"),r=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],i=[2,2],a=[1,7],o=[1,9],l=[1,10],h=[1,11],d=[1,12],p=[1,30],m=[1,23],y=[1,24],E=[1,25],w=[1,26],T=[1,27],x=[1,19],k=[1,28],A=[1,29],R=[1,20],N=[1,18],L=[1,21],B=[1,22],D=[2,6],P=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],F=[1,36],H=[1,37],K=[1,38],Q=[1,39],Z=[1,40],Y=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],j=[1,46],te=[1,47],X=[1,57],W=[43,51,53,54,55,74,75],J=[1,70],z=[1,68],ne=[1,65],ie=[1,69],le=[1,71],se=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],he=[1,78],ye=[1,77],xe=[1,76],Ie=[69,70,71,72,73],Ee=[1,91],Ue=[6,9,45,50],Me=[6,9,12,44,45,50,51,52],Xe=[1,101],je=[1,100],Qe=[1,99],St=[18,61],pt=[1,110],Vt=[1,109],Xt=[20,43,51,53,54,55],rr=[18,61,64,66],We={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:I(function(Pe,Ge,qe,Ke,Je,De,oe){var pe=De.length-1;switch(Je){case 1:break;case 2:this.$=[];break;case 3:this.$=De[pe-1].concat(De[pe]);break;case 4:this.$=De[pe];break;case 5:case 6:this.$=[];break;case 7:Ke.addEntity(De[pe-4]),Ke.addEntity(De[pe-2]),Ke.addRelationship(De[pe-4],De[pe],De[pe-2],De[pe-3]),this.$=[De[pe-4],De[pe-2]];break;case 8:Ke.addEntity(De[pe-8]),Ke.addEntity(De[pe-4]),Ke.addRelationship(De[pe-8],De[pe],De[pe-4],De[pe-5]),Ke.setClass([De[pe-8]],De[pe-6]),Ke.setClass([De[pe-4]],De[pe-2]),this.$=[De[pe-8],De[pe-4]];break;case 9:Ke.addEntity(De[pe-6]),Ke.addEntity(De[pe-2]),Ke.addRelationship(De[pe-6],De[pe],De[pe-2],De[pe-3]),Ke.setClass([De[pe-6]],De[pe-4]),this.$=[De[pe-6],De[pe-2]];break;case 10:Ke.addEntity(De[pe-6]),Ke.addEntity(De[pe-4]),Ke.addRelationship(De[pe-6],De[pe],De[pe-4],De[pe-5]),Ke.setClass([De[pe-4]],De[pe-2]),this.$=[De[pe-6],De[pe-4]];break;case 11:Ke.addEntity(De[pe-3]),Ke.addAttributes(De[pe-3],De[pe-1]),this.$=[De[pe-3]];break;case 12:Ke.addEntity(De[pe-5]),Ke.addAttributes(De[pe-5],De[pe-1]),Ke.setClass([De[pe-5]],De[pe-3]),this.$=[De[pe-5]];break;case 13:Ke.addEntity(De[pe-2]),this.$=[De[pe-2]];break;case 14:Ke.addEntity(De[pe-4]),Ke.setClass([De[pe-4]],De[pe-2]),this.$=[De[pe-4]];break;case 15:Ke.addEntity(De[pe]),this.$=[De[pe]];break;case 16:Ke.addEntity(De[pe-2]),Ke.setClass([De[pe-2]],De[pe]),this.$=[De[pe-2]];break;case 17:Ke.addEntity(De[pe-6],De[pe-4]),Ke.addAttributes(De[pe-6],De[pe-1]),this.$=[De[pe-6]];break;case 18:Ke.addEntity(De[pe-8],De[pe-6]),Ke.addAttributes(De[pe-8],De[pe-1]),Ke.setClass([De[pe-8]],De[pe-3]),this.$=[De[pe-8]];break;case 19:Ke.addEntity(De[pe-5],De[pe-3]),this.$=[De[pe-5]];break;case 20:Ke.addEntity(De[pe-7],De[pe-5]),Ke.setClass([De[pe-7]],De[pe-2]),this.$=[De[pe-7]];break;case 21:Ke.addEntity(De[pe-3],De[pe-1]);break;case 22:Ke.addEntity(De[pe-5],De[pe-3]),Ke.setClass([De[pe-5]],De[pe]);break;case 23:case 24:this.$=De[pe].trim(),Ke.setAccTitle(this.$);break;case 25:case 26:this.$=De[pe].trim(),Ke.setAccDescription(this.$);break;case 27:if(!Ke.subgraphDepth)Ke.setDirection(De[pe].value),this.$=[];else this.$=De[pe];break;case 31:Ke.subgraphDepth=(Ke.subgraphDepth||1)-1,this.$=Ke.addSubGraph({text:De[pe-2].id},De[pe-1],{text:De[pe-2].text});break;case 32:Ke.subgraphDepth=(Ke.subgraphDepth||0)+1,this.$={id:De[pe-1],text:De[pe-1]};break;case 33:Ke.subgraphDepth=(Ke.subgraphDepth||0)+1,this.$={id:De[pe-4],text:De[pe-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=De[pe];break;case 35:this.$=De[pe-1]+" "+De[pe];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=De[pe-3],Ke.addClass(De[pe-2],De[pe-1]);break;case 41:case 42:case 63:case 72:this.$=[De[pe]];break;case 43:case 44:this.$=De[pe-2].concat([De[pe]]);break;case 45:this.$=De[pe-2],Ke.setClass(De[pe-1],De[pe]);break;case 46:this.$=De[pe-3],Ke.addCssStyles(De[pe-2],De[pe-1]);break;case 47:this.$=[De[pe]];break;case 48:De[pe-2].push(De[pe]),this.$=De[pe-2];break;case 50:this.$=De[pe-1]+De[pe];break;case 58:case 84:case 85:this.$=De[pe].replace(/"/g,"");break;case 64:De[pe].push(De[pe-1]),this.$=De[pe];break;case 65:this.$={type:De[pe-1],name:De[pe]};break;case 66:this.$={type:De[pe-2],name:De[pe-1],keys:De[pe]};break;case 67:this.$={type:De[pe-2],name:De[pe-1],comment:De[pe]};break;case 68:this.$={type:De[pe-3],name:De[pe-2],keys:De[pe-1],comment:De[pe]};break;case 69:case 71:case 74:this.$=De[pe];break;case 70:this.$=De[pe-1]+De[pe];break;case 73:De[pe-2].push(De[pe]),this.$=De[pe-2];break;case 75:this.$=De[pe].replace(/"/g,"");break;case 76:this.$={cardA:De[pe],relType:De[pe-1],cardB:De[pe-2]};break;case 77:this.$=Ke.Cardinality.ZERO_OR_ONE;break;case 78:this.$=Ke.Cardinality.ZERO_OR_MORE;break;case 79:this.$=Ke.Cardinality.ONE_OR_MORE;break;case 80:this.$=Ke.Cardinality.ONLY_ONE;break;case 81:this.$=Ke.Cardinality.MD_PARENT;break;case 82:this.$=Ke.Identification.NON_IDENTIFYING;break;case 83:this.$=Ke.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,i,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:o,23:l,25:h,27:d,28:13,29:14,30:15,31:16,32:17,34:p,37:m,38:y,39:E,40:w,41:T,43:x,46:k,47:A,51:R,53:N,54:L,55:B},e(r,D,{1:[2,1]}),e(P,[2,3]),e(P,[2,4]),e(P,[2,5]),e(P,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:F,70:H,71:K,72:Q,73:Z}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(P,[2,26]),e(P,[2,27]),e(P,[2,28]),e(P,[2,29]),e(P,[2,30]),e(P,i,{5:44}),e(Y,[2,58]),e(Y,[2,59]),e(Y,[2,60]),e(Y,[2,61]),e(Y,[2,62]),e(P,[2,36]),e(P,[2,37]),e(P,[2,38]),e(P,[2,39]),{15:45,43:j,44:te},{15:48,43:j,44:te},{15:49,43:j,44:te},{10:50,43:x,51:R,53:N,54:L,55:B},{10:51,43:x,51:R,53:N,54:L,55:B},{15:52,43:j,44:te},{17:53,18:[1,54],56:55,57:56,61:X},{10:58,43:x,51:R,53:N,54:L,55:B},{68:59,74:[1,60],75:[1,61]},e(W,[2,77]),e(W,[2,78]),e(W,[2,79]),e(W,[2,80]),e(W,[2,81]),e(P,[2,23]),e(P,[2,24]),e(P,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:o,23:l,25:h,27:d,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:p,37:m,38:y,39:E,40:w,41:T,43:x,46:k,47:A,51:R,53:N,54:L,55:B},{12:J,42:64,44:z,45:ne,48:66,49:67,51:ie,52:le},e(se,[2,41]),e(se,[2,42]),{15:72,43:j,44:te,45:ne},{12:J,42:73,44:z,45:ne,48:66,49:67,51:ie,52:le},{6:he,9:ye,19:[1,75],35:74,50:xe},{12:[1,79],14:[1,80]},e(P,[2,16],{67:35,11:81,16:[1,82],45:ne,69:F,70:H,71:K,72:Q,73:Z}),{18:[1,83]},e(P,[2,13]),{17:84,18:[2,63],56:55,57:56,61:X},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:F,70:H,71:K,72:Q,73:Z},e(Ie,[2,82]),e(Ie,[2,83]),e(P,[2,31]),e(P,D),{6:he,9:ye,35:90,45:Ee,50:xe},{43:[1,92],44:[1,93]},e(Ue,[2,47],{49:94,12:J,44:z,51:ie,52:le}),e(Me,[2,49]),e(Me,[2,54]),e(Me,[2,55]),e(Me,[2,56]),e(Me,[2,57]),e(P,[2,45],{45:ne}),{6:he,9:ye,35:95,45:Ee,50:xe},e(P,[2,32]),{10:97,36:96,43:x,51:R,53:N,54:L,55:B},e(P,[2,51]),e(P,[2,52]),e(P,[2,53]),{13:98,43:Xe,53:je,76:Qe},{15:102,43:j,44:te},{10:103,43:x,51:R,53:N,54:L,55:B},{17:104,18:[1,105],56:55,57:56,61:X},e(P,[2,11]),{18:[2,64]},e(St,[2,65],{59:106,60:107,63:108,65:pt,66:Vt}),e([18,61,65,66],[2,71]),{61:[2,70]},e(P,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(P,[2,40]),{12:J,44:z,48:113,49:67,51:ie,52:le},e(se,[2,43]),e(se,[2,44]),e(Me,[2,50]),e(P,[2,46]),{10:115,20:[1,114],43:x,51:R,53:N,54:L,55:B},e(Xt,[2,34]),e(P,[2,7]),e(P,[2,84]),e(P,[2,85]),e(P,[2,86]),{12:[1,116],45:ne},{12:[1,118],14:[1,117]},{18:[1,119]},e(P,[2,14]),e(St,[2,66],{60:120,64:[1,121],66:Vt}),e(St,[2,67]),e(rr,[2,72]),e(St,[2,75]),e(rr,[2,74]),{17:122,18:[1,123],56:55,57:56,61:X},{15:124,43:j,44:te},e(Ue,[2,48],{49:94,12:J,44:z,51:ie,52:le}),{6:he,9:ye,35:125,50:xe},e(Xt,[2,35]),{13:126,43:Xe,53:je,76:Qe},{15:127,43:j,44:te},{13:128,43:Xe,53:je,76:Qe},e(P,[2,12]),e(St,[2,68]),{63:129,65:pt},{18:[1,130]},e(P,[2,19]),e(P,[2,22],{16:[1,131],45:ne}),e(P,[2,33]),e(P,[2,10]),{12:[1,132],45:ne},e(P,[2,9]),e(rr,[2,73]),e(P,[2,17]),{17:133,18:[1,134],56:55,57:56,61:X},{13:135,43:Xe,53:je,76:Qe},{18:[1,136]},e(P,[2,20]),e(P,[2,8]),e(P,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:I(function(Pe,Ge){if(Ge.recoverable)this.trace(Pe);else{var qe=Error(Pe);throw qe.hash=Ge,qe}},"parseError"),parse:I(function(Pe){var Ge=this,qe=[0],Ke=[],Je=[null],De=[],oe=this.table,pe="",fe=0,be=0,ze=0,Ce=2,_e=1,ke=De.slice.call(arguments,1),it=Object.create(this.lexer),ut={yy:{}};for(var gt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,gt))ut.yy[gt]=this.yy[gt];if(it.setInput(Pe,ut.yy),ut.yy.lexer=it,ut.yy.parser=this,typeof it.yylloc>"u")it.yylloc={};var vt=it.yylloc;De.push(vt);var ir=it.options&&it.options.ranges;if(typeof ut.yy.parseError==="function")this.parseError=ut.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function qt(Vn){qe.length=qe.length-2*Vn,Je.length=Je.length-Vn,De.length=De.length-Vn}I(qt,"popStack");function cr(){var Vn=Ke.pop()||it.lex()||_e;if(typeof Vn!=="number"){if(Vn instanceof Array)Ke=Vn,Vn=Ke.pop();Vn=Ge.symbols_[Vn]||Vn}return Vn}I(cr,"lex");var tr,Zt,lr,Kt,In,Et,Xn={},Yt,Bn,si,hn;while(!0){if(lr=qe[qe.length-1],this.defaultActions[lr])Kt=this.defaultActions[lr];else{if(tr===null||typeof tr>"u")tr=cr();Kt=oe[lr]&&oe[lr][tr]}if(typeof Kt>"u"||!Kt.length||!Kt[0]){var Ii="";hn=[];for(Yt in oe[lr])if(this.terminals_[Yt]&&Yt>Ce)hn.push("'"+this.terminals_[Yt]+"'");if(it.showPosition)Ii="Parse error on line "+(fe+1)+`: -`+it.showPosition()+` -Expecting `+hn.join(", ")+", got '"+(this.terminals_[tr]||tr)+"'";else Ii="Parse error on line "+(fe+1)+": Unexpected "+(tr==_e?"end of input":"'"+(this.terminals_[tr]||tr)+"'");this.parseError(Ii,{text:it.match,token:this.terminals_[tr]||tr,line:it.yylineno,loc:vt,expected:hn})}if(Kt[0]instanceof Array&&Kt.length>1)throw Error("Parse Error: multiple actions possible at state: "+lr+", token: "+tr);switch(Kt[0]){case 1:if(qe.push(tr),Je.push(it.yytext),De.push(it.yylloc),qe.push(Kt[1]),tr=null,!Zt){if(be=it.yyleng,pe=it.yytext,fe=it.yylineno,vt=it.yylloc,ze>0)ze--}else tr=Zt,Zt=null;break;case 2:if(Bn=this.productions_[Kt[1]][1],Xn.$=Je[Je.length-Bn],Xn._$={first_line:De[De.length-(Bn||1)].first_line,last_line:De[De.length-1].last_line,first_column:De[De.length-(Bn||1)].first_column,last_column:De[De.length-1].last_column},ir)Xn._$.range=[De[De.length-(Bn||1)].range[0],De[De.length-1].range[1]];if(Et=this.performAction.apply(Xn,[pe,be,fe,ut.yy,Kt[1],Je,De].concat(ke)),typeof Et<"u")return Et;if(Bn)qe=qe.slice(0,-1*Bn*2),Je=Je.slice(0,-1*Bn),De=De.slice(0,-1*Bn);qe.push(this.productions_[Kt[1]][0]),Je.push(Xn.$),De.push(Xn._$),si=oe[qe[qe.length-2]][qe[qe.length-1]],qe.push(si);break;case 3:return!0}}return!0},"parse")},Nt=function(){var bt={EOF:1,parseError:I(function(Ge,qe){if(this.yy.parser)this.yy.parser.parseError(Ge,qe);else throw Error(Ge)},"parseError"),setInput:I(function(Pe,Ge){if(this.yy=Ge||this.yy||{},this._input=Pe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var Pe=this._input[0];this.yytext+=Pe,this.yyleng++,this.offset++,this.match+=Pe,this.matched+=Pe;var Ge=Pe.match(/(?:\r\n?|\n).*/g);if(Ge)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),Pe},"input"),unput:I(function(Pe){var Ge=Pe.length,qe=Pe.split(/(?:\r\n?|\n)/g);this._input=Pe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ge),this.offset-=Ge;var Ke=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),qe.length-1)this.yylineno-=qe.length-1;var Je=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:qe?(qe.length===Ke.length?this.yylloc.first_column:0)+Ke[Ke.length-qe.length].length-qe[0].length:this.yylloc.first_column-Ge},this.options.ranges)this.yylloc.range=[Je[0],Je[0]+this.yyleng-Ge];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(Pe){this.unput(this.match.slice(Pe))},"less"),pastInput:I(function(){var Pe=this.matched.substr(0,this.matched.length-this.match.length);return(Pe.length>20?"...":"")+Pe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var Pe=this.match;if(Pe.length<20)Pe+=this._input.substr(0,20-Pe.length);return(Pe.substr(0,20)+(Pe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var Pe=this.pastInput(),Ge=Array(Pe.length+1).join("-");return Pe+this.upcomingInput()+` -`+Ge+"^"},"showPosition"),test_match:I(function(Pe,Ge){var qe,Ke,Je;if(this.options.backtrack_lexer){if(Je={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Je.yylloc.range=this.yylloc.range.slice(0)}if(Ke=Pe[0].match(/(?:\r\n?|\n).*/g),Ke)this.yylineno+=Ke.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ke?Ke[Ke.length-1].length-Ke[Ke.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pe[0].length},this.yytext+=Pe[0],this.match+=Pe[0],this.matches=Pe,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(Pe[0].length),this.matched+=Pe[0],qe=this.performAction.call(this,this.yy,this,Ge,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(qe)return qe;else if(this._backtrack){for(var De in Je)this[De]=Je[De];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var Pe,Ge,qe,Ke;if(!this._more)this.yytext="",this.match="";var Je=this._currentRules();for(var De=0;DeGe[0].length)){if(Ge=qe,Ke=De,this.options.backtrack_lexer)if(Pe=this.test_match(qe,Je[De]),Pe!==!1)return Pe;else if(this._backtrack){Ge=!1;continue}else return!1;else if(!this.options.flex)break}if(Ge){if(Pe=this.test_match(Ge,Je[Ke]),Pe!==!1)return Pe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Ge=this.next();if(Ge)return Ge;else return this.lex()},"lex"),begin:I(function(Ge){this.conditionStack.push(Ge)},"begin"),popState:I(function(){var Ge=this.conditionStack.length-1;if(Ge>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Ge){if(Ge=this.conditionStack.length-1-Math.abs(Ge||0),Ge>=0)return this.conditionStack[Ge];else return"INITIAL"},"topState"),pushState:I(function(Ge){this.begin(Ge)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(Ge,qe,Ke,Je){var De=Je;switch(Ke){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return qe.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return qe.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return bt}();We.lexer=Nt;function ct(){this.yy={}}return I(ct,"Parser"),ct.prototype=We,We.Parser=ct,new ct}();Zot.parser=Zot;xfi=Zot,Cfi=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Ys,this.getAccTitle=oo,this.setAccDescription=Js,this.getAccDescription=lo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getConfig=I(()=>Ar().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{I(this,"ErDB")}addEntity(e,r=""){if(!this.entities.has(e))this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:r,shape:"erBox",look:Ar().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),Ze.info("Added new entity :",e);else if(!this.entities.get(e)?.alias&&r)this.entities.get(e).alias=r,Ze.info(`Add alias '${r}' to entity '${e}'`);return this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,r){let i=this.addEntity(e),a;for(a=r.length-1;a>=0;a--){if(!r[a].keys)r[a].keys=[];if(!r[a].comment)r[a].comment="";i.attributes.push(r[a]),Ze.debug("Added attribute ",r[a].name)}}addRelationship(e,r,i,a){let o;if(this.subGraphLookup.has(e))o=e;else{let d=this.addEntity(e);if(!d)return;o=d.id}let l;if(this.subGraphLookup.has(i))l=i;else{let d=this.addEntity(i);if(!d)return;l=d.id}let h={entityA:o,roleA:r,entityB:l,relSpec:a};this.relationships.push(h),Ze.debug("Added new relationship :",h)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let r=[];for(let i of e){let a=this.classes.get(i);if(a?.styles)r=[...r,...a.styles??[]].map((o)=>o.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((o)=>o.trim())}return r}addCssStyles(e,r){for(let i of e){let a=this.entities.get(i),o=this.subGraphLookup.get(i);if(!r)continue;if(a)for(let l of r)a.cssStyles.push(l);if(o){if(!o.cssStyles)o.cssStyles=[];for(let l of r)o.cssStyles.push(l)}}}addClass(e,r){e.forEach((i)=>{let a=this.classes.get(i);if(a===void 0)a={id:i,styles:[],textStyles:[]},this.classes.set(i,a);if(r)r.forEach(function(o){if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)})})}addSubGraph(e,r,i){let a=e.text.trim(),o=i.text,h=I((y)=>{let E=new Set,w;return{nodeList:y.filter((x)=>{if(x?.stmt){if(x.stmt==="dir")w=x.value;return!1}if(typeof x!=="string")return!1;let k=x.trim();if(!k)return!1;if(E.has(k))return!1;return E.add(k),!0}),dir:w}},"uniq")(r.flat()),{nodeList:d,dir:p}=h;a=a??"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;let m={id:a,nodes:d,title:o.trim(),classes:[],cssStyles:[],dir:p,labelType:this.sanitizeNodeLabelType(i?.type)};return Ze.info("Adding",m.id,m.nodes,m.dir),m.nodes=this.makeUniq(m,this.subGraphs).nodes,this.subGraphs.push(m),this.subGraphLookup.set(a,m),a}getSubGraphs(){return this.subGraphs}setClass(e,r){for(let i of e){let a=this.entities.get(i);if(a)for(let l of r)a.cssClasses+=" "+l;let o=this.subGraphLookup.get(i);if(o)for(let l of r)o.classes.push(l)}}subgraphNodeCache(e){let r=new Set;for(let i of e)for(let a of i.nodes)r.add(a);return r}makeUniq(e,r){let i=this.subgraphNodeCache(r),a=[];return e.nodes.forEach((o,l)=>{if(i.has(o))Ze.warn(`Entity '${o}' already belongs to another subgraph and will be ignored`);else a.push(e.nodes[l])}),{nodes:a}}sanitizeText(e){return ai.sanitizeText(e,Ar())}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,qs()}getData(){let e=[],r=[],i=Ar(),a=this.getSubGraphs(),o=new Map,l=new Map;for(let m=a.length-1;m>=0;m--){let y=a[m];if(y.nodes.length>0)l.set(y.id,!0);for(let E of y.nodes)o.set(E,y.id)}for(let m=a.length-1;m>=0;m--){let y=a[m];e.push({id:y.id,label:y.title,labelStyle:"",labelType:y.labelType,parentId:o.get(y.id),padding:8,cssCompiledStyles:this.getCompiledStyles(y.classes),cssStyles:y.cssStyles,cssClasses:y.classes.join(" "),shape:"rect",dir:y.dir,isGroup:!0,look:i.look})}let h=new Set(a.map((m)=>m.id)),d=0;for(let m of this.entities.keys()){if(h.has(m))continue;let y=this.entities.get(m);if(y)y.cssCompiledStyles=this.getCompiledStyles(y.cssClasses.split(" ")),y.colorIndex=d++,e.push({...y,parentId:o.get(m),isGroup:!1})}let p=0;for(let m of this.relationships){let y={id:j_(m.entityA,m.entityB,{prefix:"id",counter:p++}),type:"normal",curve:"basis",start:m.entityA,end:m.entityB,label:m.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:m.relSpec.cardB.toLowerCase(),arrowTypeEnd:m.relSpec.cardA.toLowerCase(),pattern:m.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:i.look,labelType:"markdown"};r.push(y)}return{nodes:e,edges:r,other:{},config:i,direction:this.direction}}},bPr={};XN(bPr,{draw:()=>kfi});kfi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing er diagram (unified)",r);let{securityLevel:o,er:l,layout:h}=Ar(),d=a.db.getData(),p=ly(r,o);d.type=a.type,d.layoutAlgorithm=oy(h),d.config.flowchart.nodeSpacing=l?.nodeSpacing||140,d.config.flowchart.rankSpacing=l?.rankSpacing||80,d.direction=a.db.getDirection();let{config:m}=d,{look:y}=m;if(y==="neo")d.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else d.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];d.diagramId=r,await sy(d,p);let E=p.selectAll('[id*="-background"]');if(Array.from(E).length>0)E.each(function(){let T=xn(this),k=T.attr("id").replace("-background",""),A=p.select(`#${CSS.escape(k)}`);if(!A.empty()){let R=A.attr("transform");T.attr("transform",R)}});let w=8;Ts.insertTitle(p,"erDiagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(p,w,"erDiagram",l?.useMaxWidth??!0)},"draw"),mPr=I((e,r)=>{let i=gR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),Afi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d{PC();pT();cT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();x0();tlt=function(){var e=I(function(bt,Pe,Ue,qe){for(Ue=Ue||{},qe=bt.length;qe--;Ue[bt[qe]]=Pe);return Ue},"o"),r=[6,9,21,23,25,27,34,37,38,39,40,41,43,46,47,51,53,54,55],i=[2,2],a=[1,7],o=[1,9],l=[1,10],h=[1,11],d=[1,12],p=[1,30],m=[1,23],y=[1,24],v=[1,25],w=[1,26],T=[1,27],x=[1,19],k=[1,28],A=[1,29],R=[1,20],N=[1,18],L=[1,21],B=[1,22],D=[2,6],P=[6,9,21,23,25,27,33,34,37,38,39,40,41,43,46,47,51,53,54,55],F=[1,36],H=[1,37],W=[1,38],X=[1,39],Q=[1,40],Y=[6,9,12,14,16,19,20,21,23,25,27,33,34,37,38,39,40,41,43,46,47,50,51,53,54,55,69,70,71,72,73],K=[1,46],J=[1,47],Z=[1,57],j=[43,51,53,54,55,74,75],ee=[1,70],z=[1,68],ne=[1,65],ie=[1,69],se=[1,71],oe=[6,9,12,16,21,23,25,27,33,34,37,38,39,40,41,43,44,45,46,47,51,52,53,54,55,69,70,71,72,73],he=[1,78],ye=[1,77],Se=[1,76],Ie=[69,70,71,72,73],Ee=[1,91],ze=[6,9,45,50],Me=[6,9,12,44,45,50,51,52],Xe=[1,101],Ye=[1,100],Qe=[1,99],xt=[18,61],dt=[1,110],zt=[1,109],Kt=[20,43,51,53,54,55],rr=[18,61,64,66],je={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,statement:8,NEWLINE:9,entityName:10,relSpec:11,COLON:12,role:13,STYLE_SEPARATOR:14,idList:15,BLOCK_START:16,attributes:17,BLOCK_STOP:18,SQS:19,SQE:20,title:21,title_value:22,acc_title:23,acc_title_value:24,acc_descr:25,acc_descr_value:26,acc_descr_multiline_value:27,direction:28,classDefStatement:29,classStatement:30,styleStatement:31,subgraphHeader:32,END:33,SUBGRAPH:34,separator:35,subgraphTitle:36,direction_tb:37,direction_bt:38,direction_rl:39,direction_lr:40,CLASSDEF:41,stylesOpt:42,UNICODE_TEXT:43,STYLE_TEXT:44,COMMA:45,CLASS:46,STYLE:47,style:48,styleComponent:49,SEMI:50,NUM:51,BRKT:52,ENTITY_NAME:53,DECIMAL_NUM:54,ENTITY_ONE:55,attribute:56,attributeType:57,attributeName:58,attributeKeyTypeList:59,attributeComment:60,ATTRIBUTE_WORD:61,"?":62,attributeKeyType:63,",":64,ATTRIBUTE_KEY:65,COMMENT:66,cardinality:67,relType:68,ZERO_OR_ONE:69,ZERO_OR_MORE:70,ONE_OR_MORE:71,ONLY_ONE:72,MD_PARENT:73,NON_IDENTIFYING:74,IDENTIFYING:75,WORD:76,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"NEWLINE",12:"COLON",14:"STYLE_SEPARATOR",16:"BLOCK_START",18:"BLOCK_STOP",19:"SQS",20:"SQE",21:"title",22:"title_value",23:"acc_title",24:"acc_title_value",25:"acc_descr",26:"acc_descr_value",27:"acc_descr_multiline_value",33:"END",34:"SUBGRAPH",37:"direction_tb",38:"direction_bt",39:"direction_rl",40:"direction_lr",41:"CLASSDEF",43:"UNICODE_TEXT",44:"STYLE_TEXT",45:"COMMA",46:"CLASS",47:"STYLE",50:"SEMI",51:"NUM",52:"BRKT",53:"ENTITY_NAME",54:"DECIMAL_NUM",55:"ENTITY_ONE",61:"ATTRIBUTE_WORD",62:"?",64:",",65:"ATTRIBUTE_KEY",66:"COMMENT",69:"ZERO_OR_ONE",70:"ZERO_OR_MORE",71:"ONE_OR_MORE",72:"ONLY_ONE",73:"MD_PARENT",74:"NON_IDENTIFYING",75:"IDENTIFYING",76:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[7,1],[8,5],[8,9],[8,7],[8,7],[8,4],[8,6],[8,3],[8,5],[8,1],[8,3],[8,7],[8,9],[8,6],[8,8],[8,4],[8,6],[8,2],[8,2],[8,2],[8,1],[8,1],[8,1],[8,1],[8,1],[8,3],[32,3],[32,6],[36,1],[36,2],[28,1],[28,1],[28,1],[28,1],[29,4],[15,1],[15,1],[15,3],[15,3],[30,3],[31,4],[42,1],[42,3],[48,1],[48,2],[35,1],[35,1],[35,1],[49,1],[49,1],[49,1],[49,1],[10,1],[10,1],[10,1],[10,1],[10,1],[17,1],[17,2],[56,2],[56,3],[56,3],[56,4],[57,1],[57,2],[58,1],[59,1],[59,3],[63,1],[60,1],[11,3],[67,1],[67,1],[67,1],[67,1],[67,1],[68,1],[68,1],[13,1],[13,1],[13,1]],performAction:I(function(Pe,Ue,qe,Ke,Je,De,le){var pe=De.length-1;switch(Je){case 1:break;case 2:this.$=[];break;case 3:this.$=De[pe-1].concat(De[pe]);break;case 4:this.$=De[pe];break;case 5:case 6:this.$=[];break;case 7:Ke.addEntity(De[pe-4]),Ke.addEntity(De[pe-2]),Ke.addRelationship(De[pe-4],De[pe],De[pe-2],De[pe-3]),this.$=[De[pe-4],De[pe-2]];break;case 8:Ke.addEntity(De[pe-8]),Ke.addEntity(De[pe-4]),Ke.addRelationship(De[pe-8],De[pe],De[pe-4],De[pe-5]),Ke.setClass([De[pe-8]],De[pe-6]),Ke.setClass([De[pe-4]],De[pe-2]),this.$=[De[pe-8],De[pe-4]];break;case 9:Ke.addEntity(De[pe-6]),Ke.addEntity(De[pe-2]),Ke.addRelationship(De[pe-6],De[pe],De[pe-2],De[pe-3]),Ke.setClass([De[pe-6]],De[pe-4]),this.$=[De[pe-6],De[pe-2]];break;case 10:Ke.addEntity(De[pe-6]),Ke.addEntity(De[pe-4]),Ke.addRelationship(De[pe-6],De[pe],De[pe-4],De[pe-5]),Ke.setClass([De[pe-4]],De[pe-2]),this.$=[De[pe-6],De[pe-4]];break;case 11:Ke.addEntity(De[pe-3]),Ke.addAttributes(De[pe-3],De[pe-1]),this.$=[De[pe-3]];break;case 12:Ke.addEntity(De[pe-5]),Ke.addAttributes(De[pe-5],De[pe-1]),Ke.setClass([De[pe-5]],De[pe-3]),this.$=[De[pe-5]];break;case 13:Ke.addEntity(De[pe-2]),this.$=[De[pe-2]];break;case 14:Ke.addEntity(De[pe-4]),Ke.setClass([De[pe-4]],De[pe-2]),this.$=[De[pe-4]];break;case 15:Ke.addEntity(De[pe]),this.$=[De[pe]];break;case 16:Ke.addEntity(De[pe-2]),Ke.setClass([De[pe-2]],De[pe]),this.$=[De[pe-2]];break;case 17:Ke.addEntity(De[pe-6],De[pe-4]),Ke.addAttributes(De[pe-6],De[pe-1]),this.$=[De[pe-6]];break;case 18:Ke.addEntity(De[pe-8],De[pe-6]),Ke.addAttributes(De[pe-8],De[pe-1]),Ke.setClass([De[pe-8]],De[pe-3]),this.$=[De[pe-8]];break;case 19:Ke.addEntity(De[pe-5],De[pe-3]),this.$=[De[pe-5]];break;case 20:Ke.addEntity(De[pe-7],De[pe-5]),Ke.setClass([De[pe-7]],De[pe-2]),this.$=[De[pe-7]];break;case 21:Ke.addEntity(De[pe-3],De[pe-1]);break;case 22:Ke.addEntity(De[pe-5],De[pe-3]),Ke.setClass([De[pe-5]],De[pe]);break;case 23:case 24:this.$=De[pe].trim(),Ke.setAccTitle(this.$);break;case 25:case 26:this.$=De[pe].trim(),Ke.setAccDescription(this.$);break;case 27:if(!Ke.subgraphDepth)Ke.setDirection(De[pe].value),this.$=[];else this.$=De[pe];break;case 31:Ke.subgraphDepth=(Ke.subgraphDepth||1)-1,this.$=Ke.addSubGraph({text:De[pe-2].id},De[pe-1],{text:De[pe-2].text});break;case 32:Ke.subgraphDepth=(Ke.subgraphDepth||0)+1,this.$={id:De[pe-1],text:De[pe-1]};break;case 33:Ke.subgraphDepth=(Ke.subgraphDepth||0)+1,this.$={id:De[pe-4],text:De[pe-2]};break;case 34:case 59:case 60:case 61:case 62:case 86:this.$=De[pe];break;case 35:this.$=De[pe-1]+" "+De[pe];break;case 36:this.$={stmt:"dir",value:"TB"};break;case 37:this.$={stmt:"dir",value:"BT"};break;case 38:this.$={stmt:"dir",value:"RL"};break;case 39:this.$={stmt:"dir",value:"LR"};break;case 40:this.$=De[pe-3],Ke.addClass(De[pe-2],De[pe-1]);break;case 41:case 42:case 63:case 72:this.$=[De[pe]];break;case 43:case 44:this.$=De[pe-2].concat([De[pe]]);break;case 45:this.$=De[pe-2],Ke.setClass(De[pe-1],De[pe]);break;case 46:this.$=De[pe-3],Ke.addCssStyles(De[pe-2],De[pe-1]);break;case 47:this.$=[De[pe]];break;case 48:De[pe-2].push(De[pe]),this.$=De[pe-2];break;case 50:this.$=De[pe-1]+De[pe];break;case 58:case 84:case 85:this.$=De[pe].replace(/"/g,"");break;case 64:De[pe].push(De[pe-1]),this.$=De[pe];break;case 65:this.$={type:De[pe-1],name:De[pe]};break;case 66:this.$={type:De[pe-2],name:De[pe-1],keys:De[pe]};break;case 67:this.$={type:De[pe-2],name:De[pe-1],comment:De[pe]};break;case 68:this.$={type:De[pe-3],name:De[pe-2],keys:De[pe-1],comment:De[pe]};break;case 69:case 71:case 74:this.$=De[pe];break;case 70:this.$=De[pe-1]+De[pe];break;case 73:De[pe-2].push(De[pe]),this.$=De[pe-2];break;case 75:this.$=De[pe].replace(/"/g,"");break;case 76:this.$={cardA:De[pe],relType:De[pe-1],cardB:De[pe-2]};break;case 77:this.$=Ke.Cardinality.ZERO_OR_ONE;break;case 78:this.$=Ke.Cardinality.ZERO_OR_MORE;break;case 79:this.$=Ke.Cardinality.ONE_OR_MORE;break;case 80:this.$=Ke.Cardinality.ONLY_ONE;break;case 81:this.$=Ke.Cardinality.MD_PARENT;break;case 82:this.$=Ke.Identification.NON_IDENTIFYING;break;case 83:this.$=Ke.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,i,{5:3}),{6:[1,4],7:5,8:6,9:a,10:8,21:o,23:l,25:h,27:d,28:13,29:14,30:15,31:16,32:17,34:p,37:m,38:y,39:v,40:w,41:T,43:x,46:k,47:A,51:R,53:N,54:L,55:B},e(r,D,{1:[2,1]}),e(P,[2,3]),e(P,[2,4]),e(P,[2,5]),e(P,[2,15],{11:31,67:35,14:[1,32],16:[1,33],19:[1,34],69:F,70:H,71:W,72:X,73:Q}),{22:[1,41]},{24:[1,42]},{26:[1,43]},e(P,[2,26]),e(P,[2,27]),e(P,[2,28]),e(P,[2,29]),e(P,[2,30]),e(P,i,{5:44}),e(Y,[2,58]),e(Y,[2,59]),e(Y,[2,60]),e(Y,[2,61]),e(Y,[2,62]),e(P,[2,36]),e(P,[2,37]),e(P,[2,38]),e(P,[2,39]),{15:45,43:K,44:J},{15:48,43:K,44:J},{15:49,43:K,44:J},{10:50,43:x,51:R,53:N,54:L,55:B},{10:51,43:x,51:R,53:N,54:L,55:B},{15:52,43:K,44:J},{17:53,18:[1,54],56:55,57:56,61:Z},{10:58,43:x,51:R,53:N,54:L,55:B},{68:59,74:[1,60],75:[1,61]},e(j,[2,77]),e(j,[2,78]),e(j,[2,79]),e(j,[2,80]),e(j,[2,81]),e(P,[2,23]),e(P,[2,24]),e(P,[2,25]),{6:[1,63],7:5,8:6,9:a,10:8,21:o,23:l,25:h,27:d,28:13,29:14,30:15,31:16,32:17,33:[1,62],34:p,37:m,38:y,39:v,40:w,41:T,43:x,46:k,47:A,51:R,53:N,54:L,55:B},{12:ee,42:64,44:z,45:ne,48:66,49:67,51:ie,52:se},e(oe,[2,41]),e(oe,[2,42]),{15:72,43:K,44:J,45:ne},{12:ee,42:73,44:z,45:ne,48:66,49:67,51:ie,52:se},{6:he,9:ye,19:[1,75],35:74,50:Se},{12:[1,79],14:[1,80]},e(P,[2,16],{67:35,11:81,16:[1,82],45:ne,69:F,70:H,71:W,72:X,73:Q}),{18:[1,83]},e(P,[2,13]),{17:84,18:[2,63],56:55,57:56,61:Z},{58:85,61:[1,86]},{61:[2,69],62:[1,87]},{20:[1,88]},{67:89,69:F,70:H,71:W,72:X,73:Q},e(Ie,[2,82]),e(Ie,[2,83]),e(P,[2,31]),e(P,D),{6:he,9:ye,35:90,45:Ee,50:Se},{43:[1,92],44:[1,93]},e(ze,[2,47],{49:94,12:ee,44:z,51:ie,52:se}),e(Me,[2,49]),e(Me,[2,54]),e(Me,[2,55]),e(Me,[2,56]),e(Me,[2,57]),e(P,[2,45],{45:ne}),{6:he,9:ye,35:95,45:Ee,50:Se},e(P,[2,32]),{10:97,36:96,43:x,51:R,53:N,54:L,55:B},e(P,[2,51]),e(P,[2,52]),e(P,[2,53]),{13:98,43:Xe,53:Ye,76:Qe},{15:102,43:K,44:J},{10:103,43:x,51:R,53:N,54:L,55:B},{17:104,18:[1,105],56:55,57:56,61:Z},e(P,[2,11]),{18:[2,64]},e(xt,[2,65],{59:106,60:107,63:108,65:dt,66:zt}),e([18,61,65,66],[2,71]),{61:[2,70]},e(P,[2,21],{14:[1,112],16:[1,111]}),e([43,51,53,54,55],[2,76]),e(P,[2,40]),{12:ee,44:z,48:113,49:67,51:ie,52:se},e(oe,[2,43]),e(oe,[2,44]),e(Me,[2,50]),e(P,[2,46]),{10:115,20:[1,114],43:x,51:R,53:N,54:L,55:B},e(Kt,[2,34]),e(P,[2,7]),e(P,[2,84]),e(P,[2,85]),e(P,[2,86]),{12:[1,116],45:ne},{12:[1,118],14:[1,117]},{18:[1,119]},e(P,[2,14]),e(xt,[2,66],{60:120,64:[1,121],66:zt}),e(xt,[2,67]),e(rr,[2,72]),e(xt,[2,75]),e(rr,[2,74]),{17:122,18:[1,123],56:55,57:56,61:Z},{15:124,43:K,44:J},e(ze,[2,48],{49:94,12:ee,44:z,51:ie,52:se}),{6:he,9:ye,35:125,50:Se},e(Kt,[2,35]),{13:126,43:Xe,53:Ye,76:Qe},{15:127,43:K,44:J},{13:128,43:Xe,53:Ye,76:Qe},e(P,[2,12]),e(xt,[2,68]),{63:129,65:dt},{18:[1,130]},e(P,[2,19]),e(P,[2,22],{16:[1,131],45:ne}),e(P,[2,33]),e(P,[2,10]),{12:[1,132],45:ne},e(P,[2,9]),e(rr,[2,73]),e(P,[2,17]),{17:133,18:[1,134],56:55,57:56,61:Z},{13:135,43:Xe,53:Ye,76:Qe},{18:[1,136]},e(P,[2,20]),e(P,[2,8]),e(P,[2,18])],defaultActions:{84:[2,64],87:[2,70]},parseError:I(function(Pe,Ue){if(Ue.recoverable)this.trace(Pe);else{var qe=Error(Pe);throw qe.hash=Ue,qe}},"parseError"),parse:I(function(Pe){var Ue=this,qe=[0],Ke=[],Je=[null],De=[],le=this.table,pe="",fe=0,be=0,Ge=0,ke=2,we=1,Ae=De.slice.call(arguments,1),at=Object.create(this.lexer),ut={yy:{}};for(var gt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,gt))ut.yy[gt]=this.yy[gt];if(at.setInput(Pe,ut.yy),ut.yy.lexer=at,ut.yy.parser=this,typeof at.yylloc>"u")at.yylloc={};var vt=at.yylloc;De.push(vt);var ir=at.options&&at.options.ranges;if(typeof ut.yy.parseError==="function")this.parseError=ut.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function qt(Vn){qe.length=qe.length-2*Vn,Je.length=Je.length-Vn,De.length=De.length-Vn}I(qt,"popStack");function cr(){var Vn=Ke.pop()||at.lex()||we;if(typeof Vn!=="number"){if(Vn instanceof Array)Ke=Vn,Vn=Ke.pop();Vn=Ue.symbols_[Vn]||Vn}return Vn}I(cr,"lex");var tr,Zt,lr,Xt,In,Et,Xn={},Yt,Bn,si,dn;while(!0){if(lr=qe[qe.length-1],this.defaultActions[lr])Xt=this.defaultActions[lr];else{if(tr===null||typeof tr>"u")tr=cr();Xt=le[lr]&&le[lr][tr]}if(typeof Xt>"u"||!Xt.length||!Xt[0]){var Ii="";dn=[];for(Yt in le[lr])if(this.terminals_[Yt]&&Yt>ke)dn.push("'"+this.terminals_[Yt]+"'");if(at.showPosition)Ii="Parse error on line "+(fe+1)+`: +`+at.showPosition()+` +Expecting `+dn.join(", ")+", got '"+(this.terminals_[tr]||tr)+"'";else Ii="Parse error on line "+(fe+1)+": Unexpected "+(tr==we?"end of input":"'"+(this.terminals_[tr]||tr)+"'");this.parseError(Ii,{text:at.match,token:this.terminals_[tr]||tr,line:at.yylineno,loc:vt,expected:dn})}if(Xt[0]instanceof Array&&Xt.length>1)throw Error("Parse Error: multiple actions possible at state: "+lr+", token: "+tr);switch(Xt[0]){case 1:if(qe.push(tr),Je.push(at.yytext),De.push(at.yylloc),qe.push(Xt[1]),tr=null,!Zt){if(be=at.yyleng,pe=at.yytext,fe=at.yylineno,vt=at.yylloc,Ge>0)Ge--}else tr=Zt,Zt=null;break;case 2:if(Bn=this.productions_[Xt[1]][1],Xn.$=Je[Je.length-Bn],Xn._$={first_line:De[De.length-(Bn||1)].first_line,last_line:De[De.length-1].last_line,first_column:De[De.length-(Bn||1)].first_column,last_column:De[De.length-1].last_column},ir)Xn._$.range=[De[De.length-(Bn||1)].range[0],De[De.length-1].range[1]];if(Et=this.performAction.apply(Xn,[pe,be,fe,ut.yy,Xt[1],Je,De].concat(Ae)),typeof Et<"u")return Et;if(Bn)qe=qe.slice(0,-1*Bn*2),Je=Je.slice(0,-1*Bn),De=De.slice(0,-1*Bn);qe.push(this.productions_[Xt[1]][0]),Je.push(Xn.$),De.push(Xn._$),si=le[qe[qe.length-2]][qe[qe.length-1]],qe.push(si);break;case 3:return!0}}return!0},"parse")},Nt=function(){var bt={EOF:1,parseError:I(function(Ue,qe){if(this.yy.parser)this.yy.parser.parseError(Ue,qe);else throw Error(Ue)},"parseError"),setInput:I(function(Pe,Ue){if(this.yy=Ue||this.yy||{},this._input=Pe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var Pe=this._input[0];this.yytext+=Pe,this.yyleng++,this.offset++,this.match+=Pe,this.matched+=Pe;var Ue=Pe.match(/(?:\r\n?|\n).*/g);if(Ue)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),Pe},"input"),unput:I(function(Pe){var Ue=Pe.length,qe=Pe.split(/(?:\r\n?|\n)/g);this._input=Pe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ue),this.offset-=Ue;var Ke=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),qe.length-1)this.yylineno-=qe.length-1;var Je=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:qe?(qe.length===Ke.length?this.yylloc.first_column:0)+Ke[Ke.length-qe.length].length-qe[0].length:this.yylloc.first_column-Ue},this.options.ranges)this.yylloc.range=[Je[0],Je[0]+this.yyleng-Ue];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(Pe){this.unput(this.match.slice(Pe))},"less"),pastInput:I(function(){var Pe=this.matched.substr(0,this.matched.length-this.match.length);return(Pe.length>20?"...":"")+Pe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var Pe=this.match;if(Pe.length<20)Pe+=this._input.substr(0,20-Pe.length);return(Pe.substr(0,20)+(Pe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var Pe=this.pastInput(),Ue=Array(Pe.length+1).join("-");return Pe+this.upcomingInput()+` +`+Ue+"^"},"showPosition"),test_match:I(function(Pe,Ue){var qe,Ke,Je;if(this.options.backtrack_lexer){if(Je={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Je.yylloc.range=this.yylloc.range.slice(0)}if(Ke=Pe[0].match(/(?:\r\n?|\n).*/g),Ke)this.yylineno+=Ke.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ke?Ke[Ke.length-1].length-Ke[Ke.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Pe[0].length},this.yytext+=Pe[0],this.match+=Pe[0],this.matches=Pe,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(Pe[0].length),this.matched+=Pe[0],qe=this.performAction.call(this,this.yy,this,Ue,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(qe)return qe;else if(this._backtrack){for(var De in Je)this[De]=Je[De];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var Pe,Ue,qe,Ke;if(!this._more)this.yytext="",this.match="";var Je=this._currentRules();for(var De=0;DeUe[0].length)){if(Ue=qe,Ke=De,this.options.backtrack_lexer)if(Pe=this.test_match(qe,Je[De]),Pe!==!1)return Pe;else if(this._backtrack){Ue=!1;continue}else return!1;else if(!this.options.flex)break}if(Ue){if(Pe=this.test_match(Ue,Je[Ke]),Pe!==!1)return Pe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Ue=this.next();if(Ue)return Ue;else return this.lex()},"lex"),begin:I(function(Ue){this.conditionStack.push(Ue)},"begin"),popState:I(function(){var Ue=this.conditionStack.length-1;if(Ue>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Ue){if(Ue=this.conditionStack.length-1-Math.abs(Ue||0),Ue>=0)return this.conditionStack[Ue];else return"INITIAL"},"topState"),pushState:I(function(Ue){this.begin(Ue)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(Ue,qe,Ke,Je){var De=Je;switch(Ke){case 0:return this.begin("acc_title"),23;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),25;break;case 3:return this.popState(),"acc_descr_value";break;case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return 37;case 8:return 38;case 9:return 39;case 10:return 40;case 11:break;case 12:return 9;case 13:return 53;case 14:return 76;case 15:return 4;case 16:return this.begin("block"),16;break;case 17:return 52;case 18:return 52;case 19:return 45;case 20:return 14;case 21:return 12;case 22:break;case 23:return 65;case 24:return 61;case 25:return 61;case 26:this.begin("block_bq");break;case 27:return 61;case 28:this.popState();break;case 29:return 66;case 30:break;case 31:return this.popState(),18;break;case 32:return qe.yytext[0];case 33:return 19;case 34:return 20;case 35:return this.begin("style"),47;break;case 36:return this.popState(),9;break;case 37:break;case 38:return 12;case 39:return 45;case 40:return 52;case 41:return this.begin("style"),41;break;case 42:return 46;case 43:return 34;case 44:return 33;case 45:return 69;case 46:return 71;case 47:return 71;case 48:return 71;case 49:return 69;case 50:return 69;case 51:return 70;case 52:return 70;case 53:return 70;case 54:return 70;case 55:return 70;case 56:return 71;case 57:return 70;case 58:return 71;case 59:return 72;case 60:return 72;case 61:return 54;case 62:return 72;case 63:return 72;case 64:return 72;case 65:return 55;case 66:return 51;case 67:return 72;case 68:return 69;case 69:return 70;case 70:return 71;case 71:return 73;case 72:return 74;case 73:return 75;case 74:return 75;case 75:return 74;case 76:return 74;case 77:return 74;case 78:return 44;case 79:return 50;case 80:return 43;case 81:return qe.yytext[0];case 82:return 6}},"anonymous"),rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[ \t\r]+)/i,/^(?:[\n]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:#)/i,/^(?:#)/i,/^(?:,)/i,/^(?::::)/i,/^(?::)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:([^\s]*)[~].*[~]([^\s]*))/i,/^(?:([\*A-Za-z_\u00C0-\uFFFF][A-Za-z0-9\-\_\[\]\(\)\.,\u00C0-\uFFFF\*]*))/i,/^(?:[`])/i,/^(?:[^`]+)/i,/^(?:[`])/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:subgraph\b)/i,/^(?:end\b\s*)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:[0-9]+\.[0-9]+)/i,/^(?:1(?=\s+[A-Za-z_"']))/i,/^(?:1(?=\s+[0-9]))/i,/^(?:1(?=(--|\.\.|\.-|-\.)))/i,/^(?:1\b)/i,/^(?:[0-9]+)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:u(?=[\.\-\|]))/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*|\.)+)/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[36,37,38,39,40,78,79],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block_bq:{rules:[27,28],inclusive:!1},block:{rules:[22,23,24,25,26,29,30,31,32],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,33,34,35,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,80,81,82],inclusive:!0}}};return bt}();je.lexer=Nt;function ct(){this.yy={}}return I(ct,"Parser"),ct.prototype=je,je.Parser=ct,new ct}();tlt.parser=tlt;Ofi=tlt,Nfi=class{constructor(){this.entities=new Map,this.relationships=[],this.classes=new Map,this.subgraphDepth=0,this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.direction="TB",this.Cardinality={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},this.Identification={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},this.setAccTitle=Ys,this.getAccTitle=oo,this.setAccDescription=Js,this.getAccDescription=lo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getConfig=I(()=>Ar().er,"getConfig"),this.clear(),this.addEntity=this.addEntity.bind(this),this.addAttributes=this.addAttributes.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setDirection=this.setDirection.bind(this),this.addCssStyles=this.addCssStyles.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this),this.addSubGraph=this.addSubGraph.bind(this)}static{I(this,"ErDB")}addEntity(e,r=""){if(!this.entities.has(e))this.entities.set(e,{id:`entity-${e}-${this.entities.size}`,label:e,attributes:[],alias:r,shape:"erBox",look:Ar().look??"default",cssClasses:"default",cssStyles:[],labelType:"markdown"}),Ze.info("Added new entity :",e);else if(!this.entities.get(e)?.alias&&r)this.entities.get(e).alias=r,Ze.info(`Add alias '${r}' to entity '${e}'`);return this.entities.get(e)}getEntity(e){return this.entities.get(e)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(e,r){let i=this.addEntity(e),a;for(a=r.length-1;a>=0;a--){if(!r[a].keys)r[a].keys=[];if(!r[a].comment)r[a].comment="";i.attributes.push(r[a]),Ze.debug("Added attribute ",r[a].name)}}addRelationship(e,r,i,a){let o;if(this.subGraphLookup.has(e))o=e;else{let d=this.addEntity(e);if(!d)return;o=d.id}let l;if(this.subGraphLookup.has(i))l=i;else{let d=this.addEntity(i);if(!d)return;l=d.id}let h={entityA:o,roleA:r,entityB:l,relSpec:a};this.relationships.push(h),Ze.debug("Added new relationship :",h)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(e){this.direction=e}getCompiledStyles(e){let r=[];for(let i of e){let a=this.classes.get(i);if(a?.styles)r=[...r,...a.styles??[]].map((o)=>o.trim());if(a?.textStyles)r=[...r,...a.textStyles??[]].map((o)=>o.trim())}return r}addCssStyles(e,r){for(let i of e){let a=this.entities.get(i),o=this.subGraphLookup.get(i);if(!r)continue;if(a)for(let l of r)a.cssStyles.push(l);if(o){if(!o.cssStyles)o.cssStyles=[];for(let l of r)o.cssStyles.push(l)}}}addClass(e,r){e.forEach((i)=>{let a=this.classes.get(i);if(a===void 0)a={id:i,styles:[],textStyles:[]},this.classes.set(i,a);if(r)r.forEach(function(o){if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)})})}addSubGraph(e,r,i){let a=e.text.trim(),o=i.text,h=I((y)=>{let v=new Set,w;return{nodeList:y.filter((x)=>{if(x?.stmt){if(x.stmt==="dir")w=x.value;return!1}if(typeof x!=="string")return!1;let k=x.trim();if(!k)return!1;if(v.has(k))return!1;return v.add(k),!0}),dir:w}},"uniq")(r.flat()),{nodeList:d,dir:p}=h;a=a??"subGraph"+this.subCount,o=o||"",o=this.sanitizeText(o),this.subCount=this.subCount+1;let m={id:a,nodes:d,title:o.trim(),classes:[],cssStyles:[],dir:p,labelType:this.sanitizeNodeLabelType(i?.type)};return Ze.info("Adding",m.id,m.nodes,m.dir),m.nodes=this.makeUniq(m,this.subGraphs).nodes,this.subGraphs.push(m),this.subGraphLookup.set(a,m),a}getSubGraphs(){return this.subGraphs}setClass(e,r){for(let i of e){let a=this.entities.get(i);if(a)for(let l of r)a.cssClasses+=" "+l;let o=this.subGraphLookup.get(i);if(o)for(let l of r)o.classes.push(l)}}subgraphNodeCache(e){let r=new Set;for(let i of e)for(let a of i.nodes)r.add(a);return r}makeUniq(e,r){let i=this.subgraphNodeCache(r),a=[];return e.nodes.forEach((o,l)=>{if(i.has(o))Ze.warn(`Entity '${o}' already belongs to another subgraph and will be ignored`);else a.push(e.nodes[l])}),{nodes:a}}sanitizeText(e){return ai.sanitizeText(e,Ar())}sanitizeNodeLabelType(e){switch(e){case"markdown":case"string":case"text":return e;default:return"markdown"}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],this.subGraphs=[],this.subGraphLookup=new Map,this.subCount=0,this.subgraphDepth=0,qs()}getData(){let e=[],r=[],i=Ar(),a=this.getSubGraphs(),o=new Map,l=new Map;for(let m=a.length-1;m>=0;m--){let y=a[m];if(y.nodes.length>0)l.set(y.id,!0);for(let v of y.nodes)o.set(v,y.id)}for(let m=a.length-1;m>=0;m--){let y=a[m];e.push({id:y.id,label:y.title,labelStyle:"",labelType:y.labelType,parentId:o.get(y.id),padding:8,cssCompiledStyles:this.getCompiledStyles(y.classes),cssStyles:y.cssStyles,cssClasses:y.classes.join(" "),shape:"rect",dir:y.dir,isGroup:!0,look:i.look})}let h=new Set(a.map((m)=>m.id)),d=0;for(let m of this.entities.keys()){if(h.has(m))continue;let y=this.entities.get(m);if(y)y.cssCompiledStyles=this.getCompiledStyles(y.cssClasses.split(" ")),y.colorIndex=d++,e.push({...y,parentId:o.get(m),isGroup:!1})}let p=0;for(let m of this.relationships){let y={id:j_(m.entityA,m.entityB,{prefix:"id",counter:p++}),type:"normal",curve:"basis",start:m.entityA,end:m.entityB,label:m.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:m.relSpec.cardB.toLowerCase(),arrowTypeEnd:m.relSpec.cardA.toLowerCase(),pattern:m.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:i.look,labelType:"markdown"};r.push(y)}return{nodes:e,edges:r,other:{},config:i,direction:this.direction}}},wPr={};ZN(wPr,{draw:()=>Lfi});Lfi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing er diagram (unified)",r);let{securityLevel:o,er:l,layout:h}=Ar(),d=a.db.getData(),p=ly(r,o);d.type=a.type,d.layoutAlgorithm=oy(h),d.config.flowchart.nodeSpacing=l?.nodeSpacing||140,d.config.flowchart.rankSpacing=l?.rankSpacing||80,d.direction=a.db.getDirection();let{config:m}=d,{look:y}=m;if(y==="neo")d.markers=["only_one_neo","zero_or_one_neo","one_or_more_neo","zero_or_more_neo"];else d.markers=["only_one","zero_or_one","one_or_more","zero_or_more"];d.diagramId=r,await sy(d,p);let v=p.selectAll('[id*="-background"]');if(Array.from(v).length>0)v.each(function(){let T=xn(this),k=T.attr("id").replace("-background",""),A=p.select(`#${CSS.escape(k)}`);if(!A.empty()){let R=A.attr("transform");T.attr("transform",R)}});let w=8;Ts.insertTitle(p,"erDiagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(p,w,"erDiagram",l?.useMaxWidth??!0)},"draw"),EPr=I((e,r)=>{let i=yR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),Mfi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d{let{look:r,theme:i,erEdgeLabelBackground:a,strokeWidth:o}=e;return` - ${Afi(e)} + `}return h},"genColor"),Dfi=I((e)=>{let{look:r,theme:i,erEdgeLabelBackground:a,strokeWidth:o}=e;return` + ${Mfi(e)} .entityBox { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; @@ -1427,14 +1427,14 @@ Expecting `+hn.join(", ")+", got '"+(this.terminals_[tr]||tr)+"'";else Ii="Parse } .labelBkg { - background-color: ${Bne.has(i)&&a?a:mPr(e.tertiaryColor,0.5)}; + background-color: ${Une.has(i)&&a?a:EPr(e.tertiaryColor,0.5)}; } .edgeLabel { - background-color: ${Bne.has(i)&&a?a:e.edgeLabelBackground}; + background-color: ${Une.has(i)&&a?a:e.edgeLabelBackground}; } .edgeLabel .label rect { - fill: ${Bne.has(i)&&a?a:e.edgeLabelBackground}; + fill: ${Une.has(i)&&a?a:e.edgeLabelBackground}; } .edgeLabel .label text { fill: ${e.textColor}; @@ -1476,7 +1476,7 @@ Expecting `+hn.join(", ")+", got '"+(this.terminals_[tr]||tr)+"'";else Ii="Parse stroke-width: 1; } [data-look=neo].labelBkg { - background-color: ${mPr(e.tertiaryColor,0.5)}; + background-color: ${EPr(e.tertiaryColor,0.5)}; } .cluster rect { @@ -1492,91 +1492,91 @@ Expecting `+hn.join(", ")+", got '"+(this.terminals_[tr]||tr)+"'";else Ii="Parse .cluster-label text { fill: ${e.titleColor??e.textColor}; } -`},"getStyles"),Ifi=Rfi,yPr={parser:xfi,get db(){return new Cfi},renderer:bPr,styles:Ifi}});var Wq;var kxe=Re(()=>{Ja();Wq=class{constructor(e){this.init=e,this.records=this.init()}static{I(this,"ImperativeState")}reset(){this.records=this.init()}}});function Sh(e,r){if(e.accDescr)r.setAccDescription?.(e.accDescr);if(e.accTitle)r.setAccTitle?.(e.accTitle);if(e.title)r.setDiagramTitle?.(e.title)}var Tv=Re(()=>{Ja();I(Sh,"populateCommonDb")});var JB={};GN(JB,{AbnfAlternation:()=>VCe,AbnfConcatenation:()=>HCe,AbnfElement:()=>dse,AbnfGroup:()=>qCe,AbnfNumVal:()=>YCe,AbnfOptionalGroup:()=>WCe,AbnfPrimary:()=>k7,AbnfRule:()=>fse,AbnfRuleName:()=>jCe,AbnfStringLiteral:()=>KCe,AbstractMermaidTokenBuilder:()=>Xu,AbstractMermaidValueConverter:()=>P0,Architecture:()=>gT,ArchitectureGrammarGeneratedModule:()=>eke,Branch:()=>mY,Commit:()=>O7,CommonTokenBuilder:()=>FHr,CommonValueConverter:()=>d2,Cynefin:()=>mI,CynefinGrammarGeneratedModule:()=>tke,DomainBlock:()=>bY,DomainItem:()=>Mse,EbnfChoice:()=>XCe,EbnfExceptionPostfix:()=>QCe,EbnfGroup:()=>ZCe,EbnfNonTerminal:()=>JCe,EbnfOneOrMorePostfix:()=>e4e,EbnfOptional:()=>t4e,EbnfOptionalPostfix:()=>r4e,EbnfPostfix:()=>YB,EbnfPrimary:()=>dI,EbnfRepetition:()=>n4e,EbnfRule:()=>pse,EbnfSequence:()=>i4e,EbnfSpecial:()=>a4e,EbnfTerm:()=>gse,EbnfTerminal:()=>s4e,EbnfZeroOrMorePostfix:()=>o4e,EmDataEntity:()=>A7,EmFrame:()=>fI,EmptyFileSystem:()=>Du,EventModel:()=>PC,EventModelingGeneratedModule:()=>rke,GitGraph:()=>bI,GitGraphGrammarGeneratedModule:()=>nke,Info:()=>XB,InfoGrammarGeneratedModule:()=>ike,Merge:()=>N7,MermaidGeneratedSharedModule:()=>Pu,Packet:()=>L7,PacketBlock:()=>M7,PacketGrammarGeneratedModule:()=>ake,PegAny:()=>l4e,PegGroup:()=>c4e,PegIdentifier:()=>u4e,PegLiteral:()=>h4e,PegOrderedChoice:()=>d4e,PegPrefix:()=>mse,PegPrimary:()=>WB,PegRule:()=>bse,PegSequence:()=>f4e,PegSuffix:()=>yse,Pie:()=>yI,PieGrammarGeneratedModule:()=>ske,PieSection:()=>yY,Radar:()=>pI,RadarGrammarGeneratedModule:()=>oke,Railroad:()=>D7,RailroadAbnf:()=>P7,RailroadAbnfGrammarGeneratedModule:()=>lke,RailroadChoiceExpr:()=>p4e,RailroadEbnf:()=>B7,RailroadEbnfGrammarGeneratedModule:()=>cke,RailroadExpression:()=>BC,RailroadGrammarGeneratedModule:()=>uke,RailroadNonTerminalExpr:()=>g4e,RailroadOneOrMoreExpr:()=>m4e,RailroadOptionalExpr:()=>b4e,RailroadPeg:()=>F7,RailroadPegGrammarGeneratedModule:()=>hke,RailroadRule:()=>vse,RailroadSequenceExpr:()=>y4e,RailroadSpecialExpr:()=>v4e,RailroadTerminalExpr:()=>_4e,RailroadZeroOrMoreExpr:()=>E4e,Statement:()=>R7,Transition:()=>QB,TreeNode:()=>I7,TreeView:()=>jB,TreeViewGrammarGeneratedModule:()=>fke,Treemap:()=>$7,TreemapGrammarGeneratedModule:()=>dke,Wardley:()=>cm,WardleyGrammarGeneratedModule:()=>pke,__name:()=>ee,createDefaultCoreModule:()=>hu,createDefaultSharedCoreModule:()=>du,inject:()=>$o,isArchitecture:()=>Yht,isBranch:()=>Wht,isCommit:()=>jht,isCynefin:()=>Kht,isDomainBlock:()=>Xht,isDomainItem:()=>Qht,isEmModelEntityType:()=>Zht,isEmResetFrame:()=>Yse,isGitGraph:()=>Jht,isInfo:()=>edt,isMerge:()=>tdt,isPacket:()=>rdt,isPacketBlock:()=>ndt,isPie:()=>idt,isPieSection:()=>adt,isRailroad:()=>sdt,isRailroadAbnf:()=>odt,isRailroadEbnf:()=>ldt,isRailroadPeg:()=>cdt,isTransition:()=>udt,isTreemap:()=>hdt,isWardley:()=>ddt});function o1(e){return typeof e==="object"&&e!==null&&typeof e.$type==="string"}function mT(e){return typeof e==="object"&&e!==null&&typeof e.$refText==="string"&&"ref"in e}function _I(e){return typeof e==="object"&&e!==null&&typeof e.$refText==="string"&&"items"in e}function YBr(e){return typeof e==="object"&&e!==null&&typeof e.name==="string"&&typeof e.type==="string"&&typeof e.path==="string"}function hY(e){return typeof e==="object"&&e!==null&&typeof e.info==="object"&&typeof e.message==="string"}function vY(e){return typeof e==="object"&&e!==null&&Array.isArray(e.content)}function Dut(e){return typeof e==="object"&&e!==null&&typeof e.tokenType==="object"}function Put(e){return vY(e)&&typeof e.fullText==="string"}function jBr(e){if(typeof e==="string")return e;if(typeof e>"u")return"undefined";if(typeof e.toString==="function")return e.toString();return Object.prototype.toString.call(e)}function _se(e){return!!e&&typeof e[Symbol.iterator]==="function"}function Ef(...e){if(e.length===1){let r=e[0];if(r instanceof U7)return r;if(_se(r))return new U7(()=>r[Symbol.iterator](),(i)=>i.next());if(typeof r.length==="number")return new U7(()=>({index:0}),(i)=>{if(i.index1)return new U7(()=>({collIndex:0,arrIndex:0}),(r)=>{do{if(r.iterator){let i=r.iterator.next();if(!i.done)return i;r.iterator=void 0}if(r.array){if(r.arrIndex{if(o1(o)){if(o.$container=e,o.$containerProperty=i,o.$containerIndex=l,r.deep)TCe(o,r)}});else if(o1(a)){if(a.$container=e,a.$containerProperty=i,r.deep)TCe(a,r)}}}function $se(e,r){let i=e;while(i){if(r(i))return i;i=i.$container}return}function Y3(e){let i=ose(e).$document;if(!i)throw Error("AST node has no document.");return i}function ose(e){while(e.$container)e=e.$container;return e}function Tct(e){if(mT(e))return e.ref?[e.ref]:[];else if(_I(e))return e.items.map((r)=>r.ref);return[]}function T4e(e,r){if(!e)throw Error("Node must be an AstNode.");let i=r?.range;return new U7(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),(a)=>{while(a.keyIndexT4e(i,r))}function W3(e,r){if(!e)throw Error("Root node must be an AstNode.");else if(r?.range&&!xCe(e,r.range))return new SCe(e,()=>[]);return new SCe(e,(i)=>T4e(i,r),{includeRoot:!0})}function xCe(e,r){if(!r)return!0;let i=e.$cstNode?.range;if(!i)return!1;return vFr(i,r)}function Ese(e){return new U7(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),(r)=>{while(r.keyIndex{if(vY(r))return r.content;else return[]},{includeRoot:!0})}function mFr(e,r){while(e.container)if(e=e.container,e===r)return!0;return!1}function bFr(e){return{start:{line:e.startLine-1,character:e.startColumn-1},end:{line:e.endLine-1,character:e.endColumn}}}function kCe(e){let{startOffset:r,endOffset:i}=e;return typeof r==="number"&&Number.isFinite(r)&&r>=0&&typeof i==="number"&&Number.isFinite(i)&&i>=r}function Sse(e){if(!e)return;let{offset:r,end:i,range:a}=e;return{range:a,offset:r,end:i,length:i-r}}function yFr(e,r){if(e.end.liner.end.line||e.start.line===r.end.line&&e.start.character>=r.end.character)return gI.After;let i=e.start.line>r.start.line||e.start.line===r.start.line&&e.start.character>=r.start.character,a=e.end.linegI.After}function _Fr(e,r){if(e){let i=EFr(e,!0);if(i&&Oct(i,r))return i;if(Put(e)){let a=e.content.findIndex((o)=>!o.hidden);for(let o=a-1;o>=0;o--){let l=e.content[o];if(Oct(l,r))return l}}}return}function Oct(e,r){return Dut(e)&&r.includes(e.tokenType.name)}function EFr(e,r=!0){while(e.container){let i=e.container,a=i.content.indexOf(e);while(a>0){a--;let o=i.content[a];if(r||!o.hidden)return o}e=i}return}function CY(e,r="Error: Got unexpected value."){throw Error(typeof r==="string"?r:r())}function Fo(e){return e.charCodeAt(0)}function cCe(e,r){if(Array.isArray(e))e.forEach(function(i){r.push(i)});else r.push(e)}function cY(e,r){if(e[r]===!0)throw"duplicate flag "+r;let i=e[r];e[r]=!0}function VB(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function rse(){throw Error("Internal Error - Should never get here!")}function Nct(e){return e.type==="Character"}function TFr(e){try{if(typeof e==="string")e=new RegExp(e);return e=e.toString(),rlt.reset(e),rlt.visit(bpi.pattern(e)),rlt.multiline}catch{return!1}}function zut(e){let r=typeof e==="string"?new RegExp(e):e;return vpi.some((i)=>r.test(i))}function zse(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xFr(e,r){let i=CFr(e),a=r.match(i);return!!a&&a[0].length>0}function CFr(e){if(typeof e==="string")e=new RegExp(e);let r=e,i=e.source,a=0;function o(){let l="",h;function d(m){l+=i.substr(a,m),a+=m}ee(d,"appendRaw");function p(m){l+="(?:"+i.substr(a,m)+"|$)",a+=m}ee(p,"appendOptional");while(a",a)-a+1);break;default:p(2);break}break;case"[":h=/\[(?:\\.|.)*?\]/g,h.lastIndex=a,h=h.exec(i)||[],p(h[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":d(1);break;case"{":if(h=/\{\d+,?\d*\}/g,h.lastIndex=a,h=h.exec(i),h)d(h[0].length);else p(1);break;case"(":if(i[a+1]==="?")switch(i[a+2]){case":":l+="(?:",a+=3,l+=o()+"|$)";break;case"=":l+="(?=",a+=3,l+=o()+")";break;case"!":h=a,a+=3,o(),l+=i.substr(h,a-h);break;case"<":switch(i[a+3]){case"=":case"!":h=a,a+=4,o(),l+=i.substr(h,a-h);break;default:d(i.indexOf(">",a)-a+1),l+=o()+"|$)";break}break}else d(1),l+=o()+"|$)";break;case")":return++a,l;default:p(1);break}return l}return ee(o,"process"),new RegExp(o(),e.flags)}function kFr(e){return e.rules.find((r)=>X3(r)&&r.entry)}function AFr(e){return e.rules.filter((r)=>Q3(r)&&r.hidden)}function Vut(e,r){let i=new Set,a=kFr(e);if(!a)return new Set(e.rules);let o=[a].concat(AFr(e));for(let h of o)Hut(h,i,r);let l=new Set;for(let h of e.rules)if(i.has(h.name)||Q3(h)&&h.hidden)l.add(h);return l}function Hut(e,r,i){r.add(e.name),TY(e).forEach((a)=>{if(H7(a)||i&&Uut(a)){let o=a.rule.ref;if(o&&!r.has(o.name))Hut(o,r,i)}})}function RFr(e){if(e.terminal)return e.terminal;else if(e.type.ref)return Yut(e.type.ref)?.terminal;return}function IFr(e){return e.hidden&&!zut(A4e(e))}function OFr(e,r){if(!e||!r)return[];return k4e(e,r,e.astNode,!0)}function qut(e,r,i){if(!e||!r)return;let a=k4e(e,r,e.astNode,!0);if(a.length===0)return;if(i!==void 0)i=Math.max(0,Math.min(i,a.length-1));else i=0;return a[i]}function k4e(e,r,i,a){if(!a){let o=$se(e.grammarSource,z7);if(o&&o.feature===r)return[e]}if(vY(e)&&e.astNode===i)return e.content.flatMap((o)=>k4e(o,r,i,!1));return[]}function NFr(e,r,i){if(!e)return;let a=LFr(e,r,e?.astNode);if(a.length===0)return;if(i!==void 0)i=Math.max(0,Math.min(i,a.length-1));else i=0;return a[i]}function LFr(e,r,i){if(e.astNode!==i)return[];if(V7(e.grammarSource)&&e.grammarSource.value===r)return[e];let a=CCe(e).iterator(),o,l=[];do if(o=a.next(),!o.done){let h=o.value;if(h.astNode===i){if(V7(h.grammarSource)&&h.grammarSource.value===r)l.push(h)}else a.prune()}while(!o.done);return l}function MFr(e){let r=e.astNode;while(r===e.container?.astNode){let i=$se(e.grammarSource,z7);if(i)return i;e=e.container}return}function Yut(e){let r=e;if($ut(r))if(Use(r.$container))r=r.$container.$container;else if(xY(r.$container))r=r.$container;else CY(r.$container);return Wut(e,r,new Map)}function Wut(e,r,i){function a(o,l){let h=void 0;if(!$se(o,z7))h=Wut(l,l,i);return i.set(e,h),h}if(ee(a,"go"),i.has(e))return i.get(e);i.set(e,void 0);for(let o of TY(r))if(z7(o)&&o.feature.toLowerCase()==="name")return i.set(e,o),o;else if(H7(o)&&X3(o.rule.ref))return a(o,o.rule.ref);else if(cFr(o)&&o.typeRef?.ref)return a(o,o.typeRef.ref);return}function jut(e){return Kut(e,new Set)}function Kut(e,r){if(r.has(e))return!0;else r.add(e);for(let i of TY(e))if(H7(i)){if(!i.rule.ref)return!1;if(X3(i.rule.ref)&&!Kut(i.rule.ref,r))return!1;if(wse(i.rule.ref))return!1}else if(z7(i))return!1;else if(Use(i))return!1;return Boolean(e.definition)}function Xut(e){if(Q3(e))return;if(e.inferredType)return e.inferredType.name;else if(e.dataType)return e.dataType;else if(e.returnType){let r=e.returnType.ref;if(r)return r.name}return}function _Y(e){if(xY(e))return X3(e)&&jut(e)?e.name:Xut(e)??e.name;else if(nFr(e)||dFr(e)||lFr(e))return e.name;else if(Use(e)){let r=DFr(e);if(r)return r}else if($ut(e))return e.name;throw Error("Cannot get name of Unknown Type")}function DFr(e){if(e.inferredType)return e.inferredType.name;else if(e.type?.ref)return _Y(e.type.ref);return}function PFr(e){if(Q3(e))return e.type?.name??"string";else return Xut(e)??e.name}function A4e(e){let r={s:!1,i:!1,u:!1},i=nF(e.definition,r),a=Object.entries(r).filter(([,o])=>o).map(([o])=>o).join("");return new RegExp(i,a)}function nF(e,r){if(uFr(e))return BFr(e);else if(hFr(e))return FFr(e);else if(JBr(e))return GFr(e);else if(Uut(e)){let i=e.rule.ref;if(!i)throw Error("Missing rule reference.");return j3(nF(i.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else if(iFr(e))return UFr(e);else if(fFr(e))return $Fr(e);else if(oFr(e)){let i=e.regex.lastIndexOf("/"),a=e.regex.substring(1,i),o=e.regex.substring(i+1);if(r)r.i=o.includes("i"),r.s=o.includes("s"),r.u=o.includes("u");return j3(a,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(pFr(e))return j3(Qut,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function BFr(e){return j3(e.elements.map((r)=>nF(r)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function FFr(e){return j3(e.elements.map((r)=>nF(r)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function $Fr(e){return j3(`${Qut}*?${nF(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function UFr(e){return j3(`(?!${nF(e.terminal)})${Qut}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function GFr(e){if(e.right)return j3(`[${uCe(e.left)}-${uCe(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1});return j3(uCe(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function uCe(e){return zse(e.value)}function j3(e,r){if(r.parenthesized||r.lookahead||r.wrap!==!1)e=`(${r.lookahead??(r.parenthesized?"":"?:")}${e})`;if(r.cardinality)return`${e}${r.cardinality}`;return e}function zFr(e){let r=[],i=e.Grammar;for(let a of i.rules)if(Q3(a)&&IFr(a)&&TFr(A4e(a)))r.push(a.name);return{multilineCommentRules:r,nameRegexp:fpi}}function ICe(e){if(console&&console.error)console.error(`Error: ${e}`)}function Zut(e){if(console&&console.warn)console.warn(`Warning: ${e}`)}function Jut(e){let r=new Date().getTime(),i=e();return{time:new Date().getTime()-r,value:i}}function eht(e){function r(){}ee(r,"FakeConstructor"),r.prototype=e;let i=new r;function a(){return typeof i.bar}return ee(a,"fakeAccess"),a(),a(),e;(0,eval)(e)}function VFr(e){if(HFr(e))return e.LABEL;else return e.name}function HFr(e){return typeof e.LABEL==="string"&&e.LABEL!==""}function qFr(e){return e.map(lse)}function lse(e){function r(i){return i.map(lse)}if(ee(r,"convertDefinition"),e instanceof xv){let i={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(typeof e.label==="string")i.label=e.label;return i}else if(e instanceof c2)return{type:"Alternative",definition:r(e.definition)};else if(e instanceof eb)return{type:"Option",idx:e.idx,definition:r(e.definition)};else if(e instanceof nw)return{type:"RepetitionMandatory",idx:e.idx,definition:r(e.definition)};else if(e instanceof iw)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:lse(new Ud({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof u2)return{type:"RepetitionWithSeparator",idx:e.idx,separator:lse(new Ud({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof qp)return{type:"Repetition",idx:e.idx,definition:r(e.definition)};else if(e instanceof h2)return{type:"Alternation",idx:e.idx,definition:r(e.definition)};else if(e instanceof Ud){let i={type:"Terminal",name:e.terminalType.name,label:VFr(e.terminalType),idx:e.idx};if(typeof e.label==="string")i.terminalLabel=e.label;let a=e.terminalType.PATTERN;if(e.terminalType.PATTERN)i.pattern=a instanceof RegExp?a.source:a;return i}else if(e instanceof kY)return{type:"Rule",name:e.name,orgText:e.orgText,definition:r(e.definition)};else throw Error("non exhaustive match")}function GC(e){return Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0))}function YFr(e){return e instanceof c2||e instanceof eb||e instanceof qp||e instanceof nw||e instanceof iw||e instanceof u2||e instanceof Ud||e instanceof kY}function Tse(e,r=[]){if(e instanceof eb||e instanceof qp||e instanceof u2)return!0;if(e instanceof h2)return e.definition.some((a)=>Tse(a,r));else if(e instanceof xv&&r.includes(e))return!1;else if(e instanceof Z3){if(e instanceof xv)r.push(e);return e.definition.every((a)=>Tse(a,r))}else return!1}function WFr(e){return e instanceof h2}function FC(e){if(e instanceof xv)return"SUBRULE";else if(e instanceof eb)return"OPTION";else if(e instanceof h2)return"OR";else if(e instanceof nw)return"AT_LEAST_ONE";else if(e instanceof iw)return"AT_LEAST_ONE_SEP";else if(e instanceof u2)return"MANY_SEP";else if(e instanceof qp)return"MANY";else if(e instanceof Ud)return"CONSUME";else throw Error("non exhaustive match")}function Lct(e,r,i){return[new eb({definition:[new Ud({terminalType:e.separator})].concat(e.definition)})].concat(r,i)}function RY(e){if(e instanceof xv)return RY(e.referencedRule);else if(e instanceof Ud)return XFr(e);else if(YFr(e))return jFr(e);else if(WFr(e))return KFr(e);else throw Error("non exhaustive match")}function jFr(e){let r=[],i=e.definition,a=0,o=i.length>a,l,h=!0;while(o&&h)l=i[a],h=Tse(l),r=r.concat(RY(l)),a=a+1,o=i.length>a;return[...new Set(r)]}function KFr(e){let r=e.definition.map((i)=>RY(i));return[...new Set(r.flat())]}function XFr(e){return[e.terminalType]}function ZFr(e){let r={};return e.forEach((i)=>{let a=new _pi(i).startWalking();Object.assign(r,a)}),r}function JFr(e,r){return e.name+r+QFr}function IY(e){let r=e.toString();if(hCe.hasOwnProperty(r))return hCe[r];else{let i=Epi.pattern(r);return hCe[r]=i,i}}function e$r(){hCe={}}function r$r(e,r=!1){try{let i=IY(e);return NCe(i.value,{},i.flags.ignoreCase)}catch(i){if(i.message===t$r){if(r)Zut(`${OCe} Unable to optimize: < ${e.toString()} > +`},"getStyles"),Pfi=Dfi,SPr={parser:Ofi,get db(){return new Nfi},renderer:wPr,styles:Pfi}});var Xq;var Ixe=Re(()=>{Ja();Xq=class{constructor(e){this.init=e,this.records=this.init()}static{I(this,"ImperativeState")}reset(){this.records=this.init()}}});function Sh(e,r){if(e.accDescr)r.setAccDescription?.(e.accDescr);if(e.accTitle)r.setAccTitle?.(e.accTitle);if(e.title)r.setDiagramTitle?.(e.title)}var Tv=Re(()=>{Ja();I(Sh,"populateCommonDb")});var tF={};VN(tF,{AbnfAlternation:()=>YCe,AbnfConcatenation:()=>WCe,AbnfElement:()=>gse,AbnfGroup:()=>jCe,AbnfNumVal:()=>KCe,AbnfOptionalGroup:()=>XCe,AbnfPrimary:()=>R7,AbnfRule:()=>mse,AbnfRuleName:()=>QCe,AbnfStringLiteral:()=>ZCe,AbstractMermaidTokenBuilder:()=>Xu,AbstractMermaidValueConverter:()=>P0,Architecture:()=>mT,ArchitectureGrammarGeneratedModule:()=>nke,Branch:()=>vY,Commit:()=>L7,CommonTokenBuilder:()=>VHr,CommonValueConverter:()=>d2,Cynefin:()=>vI,CynefinGrammarGeneratedModule:()=>ike,DomainBlock:()=>_Y,DomainItem:()=>Bse,EbnfChoice:()=>JCe,EbnfExceptionPostfix:()=>e4e,EbnfGroup:()=>t4e,EbnfNonTerminal:()=>r4e,EbnfOneOrMorePostfix:()=>n4e,EbnfOptional:()=>i4e,EbnfOptionalPostfix:()=>a4e,EbnfPostfix:()=>jB,EbnfPrimary:()=>gI,EbnfRepetition:()=>s4e,EbnfRule:()=>bse,EbnfSequence:()=>o4e,EbnfSpecial:()=>l4e,EbnfTerm:()=>yse,EbnfTerminal:()=>c4e,EbnfZeroOrMorePostfix:()=>u4e,EmDataEntity:()=>I7,EmFrame:()=>mI,EmptyFileSystem:()=>Du,EventModel:()=>FC,EventModelingGeneratedModule:()=>ake,GitGraph:()=>_I,GitGraphGrammarGeneratedModule:()=>ske,Info:()=>ZB,InfoGrammarGeneratedModule:()=>oke,Merge:()=>M7,MermaidGeneratedSharedModule:()=>Pu,Packet:()=>D7,PacketBlock:()=>P7,PacketGrammarGeneratedModule:()=>lke,PegAny:()=>h4e,PegGroup:()=>d4e,PegIdentifier:()=>f4e,PegLiteral:()=>p4e,PegOrderedChoice:()=>g4e,PegPrefix:()=>vse,PegPrimary:()=>KB,PegRule:()=>_se,PegSequence:()=>m4e,PegSuffix:()=>Ese,Pie:()=>EI,PieGrammarGeneratedModule:()=>cke,PieSection:()=>EY,Radar:()=>bI,RadarGrammarGeneratedModule:()=>uke,Railroad:()=>B7,RailroadAbnf:()=>F7,RailroadAbnfGrammarGeneratedModule:()=>hke,RailroadChoiceExpr:()=>b4e,RailroadEbnf:()=>$7,RailroadEbnfGrammarGeneratedModule:()=>dke,RailroadExpression:()=>$C,RailroadGrammarGeneratedModule:()=>fke,RailroadNonTerminalExpr:()=>y4e,RailroadOneOrMoreExpr:()=>v4e,RailroadOptionalExpr:()=>_4e,RailroadPeg:()=>U7,RailroadPegGrammarGeneratedModule:()=>pke,RailroadRule:()=>wse,RailroadSequenceExpr:()=>E4e,RailroadSpecialExpr:()=>w4e,RailroadTerminalExpr:()=>S4e,RailroadZeroOrMoreExpr:()=>T4e,Statement:()=>O7,Transition:()=>JB,TreeNode:()=>N7,TreeView:()=>XB,TreeViewGrammarGeneratedModule:()=>mke,Treemap:()=>G7,TreemapGrammarGeneratedModule:()=>gke,Wardley:()=>cm,WardleyGrammarGeneratedModule:()=>bke,__name:()=>te,createDefaultCoreModule:()=>hu,createDefaultSharedCoreModule:()=>du,inject:()=>$o,isArchitecture:()=>Kht,isBranch:()=>Xht,isCommit:()=>Qht,isCynefin:()=>Zht,isDomainBlock:()=>Jht,isDomainItem:()=>edt,isEmModelEntityType:()=>tdt,isEmResetFrame:()=>Kse,isGitGraph:()=>rdt,isInfo:()=>ndt,isMerge:()=>idt,isPacket:()=>adt,isPacketBlock:()=>sdt,isPie:()=>odt,isPieSection:()=>ldt,isRailroad:()=>cdt,isRailroadAbnf:()=>udt,isRailroadEbnf:()=>hdt,isRailroadPeg:()=>ddt,isTransition:()=>fdt,isTreemap:()=>pdt,isWardley:()=>gdt});function o1(e){return typeof e==="object"&&e!==null&&typeof e.$type==="string"}function bT(e){return typeof e==="object"&&e!==null&&typeof e.$refText==="string"&&"ref"in e}function SI(e){return typeof e==="object"&&e!==null&&typeof e.$refText==="string"&&"items"in e}function QBr(e){return typeof e==="object"&&e!==null&&typeof e.name==="string"&&typeof e.type==="string"&&typeof e.path==="string"}function pY(e){return typeof e==="object"&&e!==null&&typeof e.info==="object"&&typeof e.message==="string"}function wY(e){return typeof e==="object"&&e!==null&&Array.isArray(e.content)}function Fut(e){return typeof e==="object"&&e!==null&&typeof e.tokenType==="object"}function $ut(e){return wY(e)&&typeof e.fullText==="string"}function JBr(e){if(typeof e==="string")return e;if(typeof e>"u")return"undefined";if(typeof e.toString==="function")return e.toString();return Object.prototype.toString.call(e)}function Sse(e){return!!e&&typeof e[Symbol.iterator]==="function"}function Ef(...e){if(e.length===1){let r=e[0];if(r instanceof z7)return r;if(Sse(r))return new z7(()=>r[Symbol.iterator](),(i)=>i.next());if(typeof r.length==="number")return new z7(()=>({index:0}),(i)=>{if(i.index1)return new z7(()=>({collIndex:0,arrIndex:0}),(r)=>{do{if(r.iterator){let i=r.iterator.next();if(!i.done)return i;r.iterator=void 0}if(r.array){if(r.arrIndex{if(o1(o)){if(o.$container=e,o.$containerProperty=i,o.$containerIndex=l,r.deep)kCe(o,r)}});else if(o1(a)){if(a.$container=e,a.$containerProperty=i,r.deep)kCe(a,r)}}}function zse(e,r){let i=e;while(i){if(r(i))return i;i=i.$container}return}function W3(e){let i=use(e).$document;if(!i)throw Error("AST node has no document.");return i}function use(e){while(e.$container)e=e.$container;return e}function kct(e){if(bT(e))return e.ref?[e.ref]:[];else if(SI(e))return e.items.map((r)=>r.ref);return[]}function k4e(e,r){if(!e)throw Error("Node must be an AstNode.");let i=r?.range;return new z7(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),(a)=>{while(a.keyIndexk4e(i,r))}function j3(e,r){if(!e)throw Error("Root node must be an AstNode.");else if(r?.range&&!ACe(e,r.range))return new CCe(e,()=>[]);return new CCe(e,(i)=>k4e(i,r),{includeRoot:!0})}function ACe(e,r){if(!r)return!0;let i=e.$cstNode?.range;if(!i)return!1;return TFr(i,r)}function Tse(e){return new z7(()=>({keys:Object.keys(e),keyIndex:0,arrayIndex:0}),(r)=>{while(r.keyIndex{if(wY(r))return r.content;else return[]},{includeRoot:!0})}function EFr(e,r){while(e.container)if(e=e.container,e===r)return!0;return!1}function wFr(e){return{start:{line:e.startLine-1,character:e.startColumn-1},end:{line:e.endLine-1,character:e.endColumn}}}function ICe(e){let{startOffset:r,endOffset:i}=e;return typeof r==="number"&&Number.isFinite(r)&&r>=0&&typeof i==="number"&&Number.isFinite(i)&&i>=r}function Cse(e){if(!e)return;let{offset:r,end:i,range:a}=e;return{range:a,offset:r,end:i,length:i-r}}function SFr(e,r){if(e.end.liner.end.line||e.start.line===r.end.line&&e.start.character>=r.end.character)return yI.After;let i=e.start.line>r.start.line||e.start.line===r.start.line&&e.start.character>=r.start.character,a=e.end.lineyI.After}function xFr(e,r){if(e){let i=CFr(e,!0);if(i&&Mct(i,r))return i;if($ut(e)){let a=e.content.findIndex((o)=>!o.hidden);for(let o=a-1;o>=0;o--){let l=e.content[o];if(Mct(l,r))return l}}}return}function Mct(e,r){return Fut(e)&&r.includes(e.tokenType.name)}function CFr(e,r=!0){while(e.container){let i=e.container,a=i.content.indexOf(e);while(a>0){a--;let o=i.content[a];if(r||!o.hidden)return o}e=i}return}function RY(e,r="Error: Got unexpected value."){throw Error(typeof r==="string"?r:r())}function Fo(e){return e.charCodeAt(0)}function dCe(e,r){if(Array.isArray(e))e.forEach(function(i){r.push(i)});else r.push(e)}function dY(e,r){if(e[r]===!0)throw"duplicate flag "+r;let i=e[r];e[r]=!0}function qB(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function ase(){throw Error("Internal Error - Should never get here!")}function Dct(e){return e.type==="Character"}function RFr(e){try{if(typeof e==="string")e=new RegExp(e);return e=e.toString(),alt.reset(e),alt.visit(Spi.pattern(e)),alt.multiline}catch{return!1}}function qut(e){let r=typeof e==="string"?new RegExp(e):e;return xpi.some((i)=>r.test(i))}function qse(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function IFr(e,r){let i=OFr(e),a=r.match(i);return!!a&&a[0].length>0}function OFr(e){if(typeof e==="string")e=new RegExp(e);let r=e,i=e.source,a=0;function o(){let l="",h;function d(m){l+=i.substr(a,m),a+=m}te(d,"appendRaw");function p(m){l+="(?:"+i.substr(a,m)+"|$)",a+=m}te(p,"appendOptional");while(a",a)-a+1);break;default:p(2);break}break;case"[":h=/\[(?:\\.|.)*?\]/g,h.lastIndex=a,h=h.exec(i)||[],p(h[0].length);break;case"|":case"^":case"$":case"*":case"+":case"?":d(1);break;case"{":if(h=/\{\d+,?\d*\}/g,h.lastIndex=a,h=h.exec(i),h)d(h[0].length);else p(1);break;case"(":if(i[a+1]==="?")switch(i[a+2]){case":":l+="(?:",a+=3,l+=o()+"|$)";break;case"=":l+="(?=",a+=3,l+=o()+")";break;case"!":h=a,a+=3,o(),l+=i.substr(h,a-h);break;case"<":switch(i[a+3]){case"=":case"!":h=a,a+=4,o(),l+=i.substr(h,a-h);break;default:d(i.indexOf(">",a)-a+1),l+=o()+"|$)";break}break}else d(1),l+=o()+"|$)";break;case")":return++a,l;default:p(1);break}return l}return te(o,"process"),new RegExp(o(),e.flags)}function NFr(e){return e.rules.find((r)=>Q3(r)&&r.entry)}function LFr(e){return e.rules.filter((r)=>Z3(r)&&r.hidden)}function Yut(e,r){let i=new Set,a=NFr(e);if(!a)return new Set(e.rules);let o=[a].concat(LFr(e));for(let h of o)Wut(h,i,r);let l=new Set;for(let h of e.rules)if(i.has(h.name)||Z3(h)&&h.hidden)l.add(h);return l}function Wut(e,r,i){r.add(e.name),kY(e).forEach((a)=>{if(Y7(a)||i&&Vut(a)){let o=a.rule.ref;if(o&&!r.has(o.name))Wut(o,r,i)}})}function MFr(e){if(e.terminal)return e.terminal;else if(e.type.ref)return Kut(e.type.ref)?.terminal;return}function DFr(e){return e.hidden&&!qut(O4e(e))}function PFr(e,r){if(!e||!r)return[];return I4e(e,r,e.astNode,!0)}function jut(e,r,i){if(!e||!r)return;let a=I4e(e,r,e.astNode,!0);if(a.length===0)return;if(i!==void 0)i=Math.max(0,Math.min(i,a.length-1));else i=0;return a[i]}function I4e(e,r,i,a){if(!a){let o=zse(e.grammarSource,H7);if(o&&o.feature===r)return[e]}if(wY(e)&&e.astNode===i)return e.content.flatMap((o)=>I4e(o,r,i,!1));return[]}function BFr(e,r,i){if(!e)return;let a=FFr(e,r,e?.astNode);if(a.length===0)return;if(i!==void 0)i=Math.max(0,Math.min(i,a.length-1));else i=0;return a[i]}function FFr(e,r,i){if(e.astNode!==i)return[];if(q7(e.grammarSource)&&e.grammarSource.value===r)return[e];let a=RCe(e).iterator(),o,l=[];do if(o=a.next(),!o.done){let h=o.value;if(h.astNode===i){if(q7(h.grammarSource)&&h.grammarSource.value===r)l.push(h)}else a.prune()}while(!o.done);return l}function $Fr(e){let r=e.astNode;while(r===e.container?.astNode){let i=zse(e.grammarSource,H7);if(i)return i;e=e.container}return}function Kut(e){let r=e;if(zut(r))if(Vse(r.$container))r=r.$container.$container;else if(AY(r.$container))r=r.$container;else RY(r.$container);return Xut(e,r,new Map)}function Xut(e,r,i){function a(o,l){let h=void 0;if(!zse(o,H7))h=Xut(l,l,i);return i.set(e,h),h}if(te(a,"go"),i.has(e))return i.get(e);i.set(e,void 0);for(let o of kY(r))if(H7(o)&&o.feature.toLowerCase()==="name")return i.set(e,o),o;else if(Y7(o)&&Q3(o.rule.ref))return a(o,o.rule.ref);else if(pFr(o)&&o.typeRef?.ref)return a(o,o.typeRef.ref);return}function Qut(e){return Zut(e,new Set)}function Zut(e,r){if(r.has(e))return!0;else r.add(e);for(let i of kY(e))if(Y7(i)){if(!i.rule.ref)return!1;if(Q3(i.rule.ref)&&!Zut(i.rule.ref,r))return!1;if(xse(i.rule.ref))return!1}else if(H7(i))return!1;else if(Vse(i))return!1;return Boolean(e.definition)}function Jut(e){if(Z3(e))return;if(e.inferredType)return e.inferredType.name;else if(e.dataType)return e.dataType;else if(e.returnType){let r=e.returnType.ref;if(r)return r.name}return}function SY(e){if(AY(e))return Q3(e)&&Qut(e)?e.name:Jut(e)??e.name;else if(lFr(e)||bFr(e)||fFr(e))return e.name;else if(Vse(e)){let r=UFr(e);if(r)return r}else if(zut(e))return e.name;throw Error("Cannot get name of Unknown Type")}function UFr(e){if(e.inferredType)return e.inferredType.name;else if(e.type?.ref)return SY(e.type.ref);return}function GFr(e){if(Z3(e))return e.type?.name??"string";else return Jut(e)??e.name}function O4e(e){let r={s:!1,i:!1,u:!1},i=aF(e.definition,r),a=Object.entries(r).filter(([,o])=>o).map(([o])=>o).join("");return new RegExp(i,a)}function aF(e,r){if(gFr(e))return zFr(e);else if(mFr(e))return VFr(e);else if(iFr(e))return YFr(e);else if(Vut(e)){let i=e.rule.ref;if(!i)throw Error("Missing rule reference.");return K3(aF(i.definition),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}else if(cFr(e))return qFr(e);else if(yFr(e))return HFr(e);else if(dFr(e)){let i=e.regex.lastIndexOf("/"),a=e.regex.substring(1,i),o=e.regex.substring(i+1);if(r)r.i=o.includes("i"),r.s=o.includes("s"),r.u=o.includes("u");return K3(a,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}else if(vFr(e))return K3(eht,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized});else throw Error(`Invalid terminal element: ${e?.$type}, ${e?.$cstNode?.text}`)}function zFr(e){return K3(e.elements.map((r)=>aF(r)).join("|"),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function VFr(e){return K3(e.elements.map((r)=>aF(r)).join(""),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function HFr(e){return K3(`${eht}*?${aF(e.terminal)}`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function qFr(e){return K3(`(?!${aF(e.terminal)})${eht}*?`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized})}function YFr(e){if(e.right)return K3(`[${fCe(e.left)}-${fCe(e.right)}]`,{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1});return K3(fCe(e.left),{cardinality:e.cardinality,lookahead:e.lookahead,parenthesized:e.parenthesized,wrap:!1})}function fCe(e){return qse(e.value)}function K3(e,r){if(r.parenthesized||r.lookahead||r.wrap!==!1)e=`(${r.lookahead??(r.parenthesized?"":"?:")}${e})`;if(r.cardinality)return`${e}${r.cardinality}`;return e}function WFr(e){let r=[],i=e.Grammar;for(let a of i.rules)if(Z3(a)&&DFr(a)&&RFr(O4e(a)))r.push(a.name);return{multilineCommentRules:r,nameRegexp:vpi}}function LCe(e){if(console&&console.error)console.error(`Error: ${e}`)}function tht(e){if(console&&console.warn)console.warn(`Warning: ${e}`)}function rht(e){let r=new Date().getTime(),i=e();return{time:new Date().getTime()-r,value:i}}function nht(e){function r(){}te(r,"FakeConstructor"),r.prototype=e;let i=new r;function a(){return typeof i.bar}return te(a,"fakeAccess"),a(),a(),e;(0,eval)(e)}function jFr(e){if(KFr(e))return e.LABEL;else return e.name}function KFr(e){return typeof e.LABEL==="string"&&e.LABEL!==""}function XFr(e){return e.map(hse)}function hse(e){function r(i){return i.map(hse)}if(te(r,"convertDefinition"),e instanceof xv){let i={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(typeof e.label==="string")i.label=e.label;return i}else if(e instanceof c2)return{type:"Alternative",definition:r(e.definition)};else if(e instanceof eb)return{type:"Option",idx:e.idx,definition:r(e.definition)};else if(e instanceof nw)return{type:"RepetitionMandatory",idx:e.idx,definition:r(e.definition)};else if(e instanceof iw)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:hse(new Ud({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof u2)return{type:"RepetitionWithSeparator",idx:e.idx,separator:hse(new Ud({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof qp)return{type:"Repetition",idx:e.idx,definition:r(e.definition)};else if(e instanceof h2)return{type:"Alternation",idx:e.idx,definition:r(e.definition)};else if(e instanceof Ud){let i={type:"Terminal",name:e.terminalType.name,label:jFr(e.terminalType),idx:e.idx};if(typeof e.label==="string")i.terminalLabel=e.label;let a=e.terminalType.PATTERN;if(e.terminalType.PATTERN)i.pattern=a instanceof RegExp?a.source:a;return i}else if(e instanceof IY)return{type:"Rule",name:e.name,orgText:e.orgText,definition:r(e.definition)};else throw Error("non exhaustive match")}function VC(e){return Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0))}function QFr(e){return e instanceof c2||e instanceof eb||e instanceof qp||e instanceof nw||e instanceof iw||e instanceof u2||e instanceof Ud||e instanceof IY}function kse(e,r=[]){if(e instanceof eb||e instanceof qp||e instanceof u2)return!0;if(e instanceof h2)return e.definition.some((a)=>kse(a,r));else if(e instanceof xv&&r.includes(e))return!1;else if(e instanceof J3){if(e instanceof xv)r.push(e);return e.definition.every((a)=>kse(a,r))}else return!1}function ZFr(e){return e instanceof h2}function UC(e){if(e instanceof xv)return"SUBRULE";else if(e instanceof eb)return"OPTION";else if(e instanceof h2)return"OR";else if(e instanceof nw)return"AT_LEAST_ONE";else if(e instanceof iw)return"AT_LEAST_ONE_SEP";else if(e instanceof u2)return"MANY_SEP";else if(e instanceof qp)return"MANY";else if(e instanceof Ud)return"CONSUME";else throw Error("non exhaustive match")}function Pct(e,r,i){return[new eb({definition:[new Ud({terminalType:e.separator})].concat(e.definition)})].concat(r,i)}function NY(e){if(e instanceof xv)return NY(e.referencedRule);else if(e instanceof Ud)return t$r(e);else if(QFr(e))return JFr(e);else if(ZFr(e))return e$r(e);else throw Error("non exhaustive match")}function JFr(e){let r=[],i=e.definition,a=0,o=i.length>a,l,h=!0;while(o&&h)l=i[a],h=kse(l),r=r.concat(NY(l)),a=a+1,o=i.length>a;return[...new Set(r)]}function e$r(e){let r=e.definition.map((i)=>NY(i));return[...new Set(r.flat())]}function t$r(e){return[e.terminalType]}function n$r(e){let r={};return e.forEach((i)=>{let a=new Cpi(i).startWalking();Object.assign(r,a)}),r}function i$r(e,r){return e.name+r+r$r}function LY(e){let r=e.toString();if(pCe.hasOwnProperty(r))return pCe[r];else{let i=kpi.pattern(r);return pCe[r]=i,i}}function a$r(){pCe={}}function o$r(e,r=!1){try{let i=LY(e);return DCe(i.value,{},i.flags.ignoreCase)}catch(i){if(i.message===s$r){if(r)tht(`${MCe} Unable to optimize: < ${e.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`)}else{let a="";if(r)a=` This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`;ICe(`${OCe} + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`;LCe(`${MCe} Failed parsing: < ${e.toString()} > Using the @chevrotain/regexp-to-ast library - Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+a)}}return[]}function NCe(e,r,i){switch(e.type){case"Disjunction":for(let o=0;o{if(typeof p==="number")nse(p,r,i);else{let m=p;if(i===!0)for(let y=m.from;y<=m.to;y++)nse(y,r,i);else{for(let y=m.from;y<=m.to&&y=ase){let y=m.from>=ase?m.from:ase,E=m.to,w=EI(y),T=EI(E);for(let x=w;x<=T;x++)r[x]=x}}}});break;case"Group":NCe(h.value,r,i);break;default:throw Error("Non Exhaustive Match")}let d=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&LCe(h)===!1||h.type!=="Group"&&d===!1)break}break;default:throw Error("non exhaustive match!")}return Object.values(r)}function nse(e,r,i){let a=EI(e);if(r[a]=a,i===!0)n$r(e,r)}function n$r(e,r){let i=String.fromCharCode(e),a=i.toUpperCase();if(a!==i){let o=EI(a.charCodeAt(0));r[o]=o}else{let o=i.toLowerCase();if(o!==i){let l=EI(o.charCodeAt(0));r[l]=l}}}function Mct(e,r){return e.value.find((i)=>{if(typeof i==="number")return r.includes(i);else{let a=i;return r.find((o)=>a.from<=o&&o<=a.to)!==void 0}})}function LCe(e){let r=e.quantifier;if(r&&r.atLeast===0)return!0;if(!e.value)return!1;return Array.isArray(e.value)?e.value.every(LCe):LCe(e.value)}function I4e(e,r){if(r instanceof RegExp){let i=IY(r),a=new wpi(e);return a.visit(i),a.found}else{for(let i of r){let a=i.charCodeAt(0);if(e.includes(a))return!0}return!1}}function i$r(e,r){r=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` -`],tracer:ee((N,L)=>L(),"tracer")},r);let i=r.tracer;i("initCharCodeToOptimizedIndexMap",()=>{x$r()});let a;i("Reject Lexer.NA",()=>{a=e.filter((N)=>N[eF]!==l2.NA)});let o=!1,l;i("Transform Patterns",()=>{o=!1,l=a.map((N)=>{let L=N[eF];if(L instanceof RegExp){let B=L.source;if(B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!L.ignoreCase)return B;else if(B.length===2&&B[0]==="\\"&&!["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(B[1]))return B[1];else return Fct(L)}else if(typeof L==="function")return o=!0,{exec:L};else if(typeof L==="object")return o=!0,L;else if(typeof L==="string")if(L.length===1)return L;else{let B=L.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),D=new RegExp(B);return Fct(D)}else throw Error("non exhaustive match")})});let h,d,p,m,y;i("misc mapping",()=>{h=a.map((N)=>N.tokenTypeIdx),d=a.map((N)=>{let L=N.GROUP;if(L===l2.SKIPPED)return;else if(typeof L==="string")return L;else if(L===void 0)return!1;else throw Error("non exhaustive match")}),p=a.map((N)=>{let L=N.LONGER_ALT;if(L)return Array.isArray(L)?L.map((D)=>a.indexOf(D)):[a.indexOf(L)]}),m=a.map((N)=>N.PUSH_MODE),y=a.map((N)=>Object.hasOwn(N,"POP_MODE"))});let E;i("Line Terminator Handling",()=>{let N=nht(r.lineTerminatorCharacters);if(E=a.map((L)=>!1),r.positionTracking!=="onlyOffset")E=a.map((L)=>{if(Object.hasOwn(L,"LINE_BREAKS"))return!!L.LINE_BREAKS;else return rht(L,N)===!1&&I4e(N,L.PATTERN)})});let w,T,x,k;i("Misc Mapping #2",()=>{w=a.map(tht),T=l.map(S$r),x=a.reduce((N,L)=>{let B=L.GROUP;if(typeof B==="string"&&B!==l2.SKIPPED)N[B]=[];return N},{}),k=l.map((N,L)=>{let B=d[L]===void 0&&p[L]===void 0?a$r(a[L].PATTERN):void 0;return{pattern:l[L],asciiClass:B,longerAlt:p[L],canLineTerminator:E[L],matchType:B!==void 0?Bct:T[L]!==!1?Dct:w[L]?dCe:Pct,short:T[L],group:d[L],push:m[L],pop:y[L],tokenTypeIdx:h[L],tokenType:a[L]}})});let A=!0,R=[];if(!r.safeMode)i("First Char Optimization",()=>{R=a.reduce((N,L,B)=>{if(typeof L.PATTERN==="string"){let D=L.PATTERN.charCodeAt(0),P=EI(D);fCe(N,P,k[B])}else if(Array.isArray(L.START_CHARS_HINT)){let D;L.START_CHARS_HINT.forEach((P)=>{let F=typeof P==="string"?P.charCodeAt(0):P,H=EI(F);if(D!==H)D=H,fCe(N,H,k[B])})}else if(L.PATTERN instanceof RegExp)if(L.PATTERN.unicode){if(A=!1,r.ensureOptimizations)ICe(`${OCe} Unable to analyze < ${L.PATTERN.toString()} > pattern. + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+a)}}return[]}function DCe(e,r,i){switch(e.type){case"Disjunction":for(let o=0;o{if(typeof p==="number")sse(p,r,i);else{let m=p;if(i===!0)for(let y=m.from;y<=m.to;y++)sse(y,r,i);else{for(let y=m.from;y<=m.to&&y=lse){let y=m.from>=lse?m.from:lse,v=m.to,w=TI(y),T=TI(v);for(let x=w;x<=T;x++)r[x]=x}}}});break;case"Group":DCe(h.value,r,i);break;default:throw Error("Non Exhaustive Match")}let d=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&PCe(h)===!1||h.type!=="Group"&&d===!1)break}break;default:throw Error("non exhaustive match!")}return Object.values(r)}function sse(e,r,i){let a=TI(e);if(r[a]=a,i===!0)l$r(e,r)}function l$r(e,r){let i=String.fromCharCode(e),a=i.toUpperCase();if(a!==i){let o=TI(a.charCodeAt(0));r[o]=o}else{let o=i.toLowerCase();if(o!==i){let l=TI(o.charCodeAt(0));r[l]=l}}}function Bct(e,r){return e.value.find((i)=>{if(typeof i==="number")return r.includes(i);else{let a=i;return r.find((o)=>a.from<=o&&o<=a.to)!==void 0}})}function PCe(e){let r=e.quantifier;if(r&&r.atLeast===0)return!0;if(!e.value)return!1;return Array.isArray(e.value)?e.value.every(PCe):PCe(e.value)}function L4e(e,r){if(r instanceof RegExp){let i=LY(r),a=new Api(e);return a.visit(i),a.found}else{for(let i of r){let a=i.charCodeAt(0);if(e.includes(a))return!0}return!1}}function c$r(e,r){r=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:te((N,L)=>L(),"tracer")},r);let i=r.tracer;i("initCharCodeToOptimizedIndexMap",()=>{I$r()});let a;i("Reject Lexer.NA",()=>{a=e.filter((N)=>N[rF]!==l2.NA)});let o=!1,l;i("Transform Patterns",()=>{o=!1,l=a.map((N)=>{let L=N[rF];if(L instanceof RegExp){let B=L.source;if(B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!L.ignoreCase)return B;else if(B.length===2&&B[0]==="\\"&&!["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(B[1]))return B[1];else return Gct(L)}else if(typeof L==="function")return o=!0,{exec:L};else if(typeof L==="object")return o=!0,L;else if(typeof L==="string")if(L.length===1)return L;else{let B=L.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),D=new RegExp(B);return Gct(D)}else throw Error("non exhaustive match")})});let h,d,p,m,y;i("misc mapping",()=>{h=a.map((N)=>N.tokenTypeIdx),d=a.map((N)=>{let L=N.GROUP;if(L===l2.SKIPPED)return;else if(typeof L==="string")return L;else if(L===void 0)return!1;else throw Error("non exhaustive match")}),p=a.map((N)=>{let L=N.LONGER_ALT;if(L)return Array.isArray(L)?L.map((D)=>a.indexOf(D)):[a.indexOf(L)]}),m=a.map((N)=>N.PUSH_MODE),y=a.map((N)=>Object.hasOwn(N,"POP_MODE"))});let v;i("Line Terminator Handling",()=>{let N=sht(r.lineTerminatorCharacters);if(v=a.map((L)=>!1),r.positionTracking!=="onlyOffset")v=a.map((L)=>{if(Object.hasOwn(L,"LINE_BREAKS"))return!!L.LINE_BREAKS;else return aht(L,N)===!1&&L4e(N,L.PATTERN)})});let w,T,x,k;i("Misc Mapping #2",()=>{w=a.map(iht),T=l.map(A$r),x=a.reduce((N,L)=>{let B=L.GROUP;if(typeof B==="string"&&B!==l2.SKIPPED)N[B]=[];return N},{}),k=l.map((N,L)=>{let B=d[L]===void 0&&p[L]===void 0?u$r(a[L].PATTERN):void 0;return{pattern:l[L],asciiClass:B,longerAlt:p[L],canLineTerminator:v[L],matchType:B!==void 0?Uct:T[L]!==!1?Fct:w[L]?gCe:$ct,short:T[L],group:d[L],push:m[L],pop:y[L],tokenTypeIdx:h[L],tokenType:a[L]}})});let A=!0,R=[];if(!r.safeMode)i("First Char Optimization",()=>{R=a.reduce((N,L,B)=>{if(typeof L.PATTERN==="string"){let D=L.PATTERN.charCodeAt(0),P=TI(D);mCe(N,P,k[B])}else if(Array.isArray(L.START_CHARS_HINT)){let D;L.START_CHARS_HINT.forEach((P)=>{let F=typeof P==="string"?P.charCodeAt(0):P,H=TI(F);if(D!==H)D=H,mCe(N,H,k[B])})}else if(L.PATTERN instanceof RegExp)if(L.PATTERN.unicode){if(A=!1,r.ensureOptimizations)LCe(`${MCe} Unable to analyze < ${L.PATTERN.toString()} > pattern. The regexp unicode flag is not currently supported by the regexp-to-ast library. This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)}else{let D=r$r(L.PATTERN,r.ensureOptimizations);if(D.length===0)A=!1;D.forEach((P)=>{fCe(N,P,k[B])})}else{if(r.ensureOptimizations)ICe(`${OCe} TokenType: <${L.name}> is using a custom token pattern without providing parameter. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)}else{let D=o$r(L.PATTERN,r.ensureOptimizations);if(D.length===0)A=!1;D.forEach((P)=>{mCe(N,P,k[B])})}else{if(r.ensureOptimizations)LCe(`${MCe} TokenType: <${L.name}> is using a custom token pattern without providing parameter. This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`);A=!1}return N},[])});return{emptyGroups:x,patternIdxToConfig:k,charCodeToPatternIdxToConfig:R,hasCustom:o,canBeOptimized:A}}function a$r(e){var r,i;if(!(e instanceof RegExp)||e.flags!=="")return;let a;try{a=IY(e)}catch(d){return}if(a.value.value.length!==1||a.value.value[0].value.length!==1)return;let o=a.value.value[0].value[0],l;while(o.type==="Group"){if(o.capturing||o.quantifier!==void 0&&l!==void 0||o.value.value.length!==1||o.value.value[0].value.length!==1)return;l=(r=o.quantifier)!==null&&r!==void 0?r:l,o=o.value.value[0].value[0]}if(o.type!=="Set"||o.complement||o.quantifier!==void 0&&l!==void 0)return;if(l=(i=o.quantifier)!==null&&i!==void 0?i:l,(l===null||l===void 0?void 0:l.atLeast)!==1||l.atMost!==1/0||!l.greedy)return;let h=new Uint8Array(128);for(let d of o.value){let p=typeof d==="number"?d:d.from,m=typeof d==="number"?d:d.to;if(p<0||m>=h.length)return;h.fill(1,p,m+1)}return h}function s$r(e,r){let i=[],a=l$r(e);i=i.concat(a.errors);let o=c$r(a.valid),l=o.valid;return i=i.concat(o.errors),i=i.concat(o$r(l)),i=i.concat(g$r(l)),i=i.concat(m$r(l,r)),i=i.concat(b$r(l)),i}function o$r(e){let r=[],i=e.filter((a)=>a[eF]instanceof RegExp);return r=r.concat(u$r(i)),r=r.concat(d$r(i)),r=r.concat(f$r(i)),r=r.concat(p$r(i)),r=r.concat(h$r(i)),r}function l$r(e){let r=e.filter((o)=>!Object.hasOwn(o,eF)),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- missing static 'PATTERN' property",type:Yp.MISSING_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function c$r(e){let r=e.filter((o)=>{let l=o[eF];return!(l instanceof RegExp)&&typeof l!=="function"&&!Object.hasOwn(l,"exec")&&typeof l!=="string"}),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Yp.INVALID_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function u$r(e){class r extends C4e{static{ee(this,"EndAnchorFinder")}constructor(){super(...arguments);this.found=!1}visitEndAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=IY(l),d=new r;return d.visit(h),d.found}catch(h){return Spi.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`);A=!1}return N},[])});return{emptyGroups:x,patternIdxToConfig:k,charCodeToPatternIdxToConfig:R,hasCustom:o,canBeOptimized:A}}function u$r(e){var r,i;if(!(e instanceof RegExp)||e.flags!=="")return;let a;try{a=LY(e)}catch(d){return}if(a.value.value.length!==1||a.value.value[0].value.length!==1)return;let o=a.value.value[0].value[0],l;while(o.type==="Group"){if(o.capturing||o.quantifier!==void 0&&l!==void 0||o.value.value.length!==1||o.value.value[0].value.length!==1)return;l=(r=o.quantifier)!==null&&r!==void 0?r:l,o=o.value.value[0].value[0]}if(o.type!=="Set"||o.complement||o.quantifier!==void 0&&l!==void 0)return;if(l=(i=o.quantifier)!==null&&i!==void 0?i:l,(l===null||l===void 0?void 0:l.atLeast)!==1||l.atMost!==1/0||!l.greedy)return;let h=new Uint8Array(128);for(let d of o.value){let p=typeof d==="number"?d:d.from,m=typeof d==="number"?d:d.to;if(p<0||m>=h.length)return;h.fill(1,p,m+1)}return h}function h$r(e,r){let i=[],a=f$r(e);i=i.concat(a.errors);let o=p$r(a.valid),l=o.valid;return i=i.concat(o.errors),i=i.concat(d$r(l)),i=i.concat(_$r(l)),i=i.concat(E$r(l,r)),i=i.concat(w$r(l)),i}function d$r(e){let r=[],i=e.filter((a)=>a[rF]instanceof RegExp);return r=r.concat(g$r(i)),r=r.concat(b$r(i)),r=r.concat(y$r(i)),r=r.concat(v$r(i)),r=r.concat(m$r(i)),r}function f$r(e){let r=e.filter((o)=>!Object.hasOwn(o,rF)),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- missing static 'PATTERN' property",type:Yp.MISSING_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function p$r(e){let r=e.filter((o)=>{let l=o[rF];return!(l instanceof RegExp)&&typeof l!=="function"&&!Object.hasOwn(l,"exec")&&typeof l!=="string"}),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Yp.INVALID_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function g$r(e){class r extends R4e{static{te(this,"EndAnchorFinder")}constructor(){super(...arguments);this.found=!1}visitEndAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=LY(l),d=new r;return d.visit(h),d.found}catch(h){return Rpi.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+o.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Yp.EOI_ANCHOR_FOUND,tokenTypes:[o]}))}function h$r(e){return e.filter((a)=>a.PATTERN.test("")).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' must not match an empty string",type:Yp.EMPTY_MATCH_PATTERN,tokenTypes:[a]}))}function d$r(e){class r extends C4e{static{ee(this,"StartAnchorFinder")}constructor(){super(...arguments);this.found=!1}visitStartAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=IY(l),d=new r;return d.visit(h),d.found}catch(h){return Tpi.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Yp.EOI_ANCHOR_FOUND,tokenTypes:[o]}))}function m$r(e){return e.filter((a)=>a.PATTERN.test("")).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' must not match an empty string",type:Yp.EMPTY_MATCH_PATTERN,tokenTypes:[a]}))}function b$r(e){class r extends R4e{static{te(this,"StartAnchorFinder")}constructor(){super(...arguments);this.found=!1}visitStartAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=LY(l),d=new r;return d.visit(h),d.found}catch(h){return Ipi.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+o.name+`<- static 'PATTERN' cannot contain start of input anchor '^' - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Yp.SOI_ANCHOR_FOUND,tokenTypes:[o]}))}function f$r(e){return e.filter((a)=>{let o=a[eF];return o instanceof RegExp&&(o.multiline||o.global)}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Yp.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[a]}))}function p$r(e){let r=[],i=e.map((l)=>e.reduce((h,d)=>{if(l.PATTERN.source===d.PATTERN.source&&!r.includes(d)&&d.PATTERN!==l2.NA)return r.push(d),h.push(d),h;return h},[]));return i=i.filter(Boolean),i.filter((l)=>l.length>1).map((l)=>{let h=l.map((p)=>p.name);return{message:`The same RegExp pattern ->${l[0].PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:Yp.DUPLICATE_PATTERNS_FOUND,tokenTypes:l}})}function g$r(e){return e.filter((a)=>{if(!Object.hasOwn(a,"GROUP"))return!1;let o=a.GROUP;return o!==l2.SKIPPED&&o!==l2.NA&&typeof o!=="string"}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Yp.INVALID_GROUP_TYPE_FOUND,tokenTypes:[a]}))}function m$r(e,r){return e.filter((o)=>o.PUSH_MODE!==void 0&&!r.includes(o.PUSH_MODE)).map((o)=>({message:`Token Type: ->${o.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${o.PUSH_MODE}<-which does not exist`,type:Yp.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[o]}))}function b$r(e){let r=[],i=e.reduce((a,o,l)=>{let h=o.PATTERN;if(h===l2.NA)return a;if(typeof h==="string")a.push({str:h,idx:l,tokenType:o});else if(h instanceof RegExp&&v$r(h))a.push({str:h.source,idx:l,tokenType:o});return a},[]);return e.forEach((a,o)=>{i.forEach(({str:l,idx:h,tokenType:d})=>{if(o${d.name}<- can never be matched. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Yp.SOI_ANCHOR_FOUND,tokenTypes:[o]}))}function y$r(e){return e.filter((a)=>{let o=a[rF];return o instanceof RegExp&&(o.multiline||o.global)}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Yp.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[a]}))}function v$r(e){let r=[],i=e.map((l)=>e.reduce((h,d)=>{if(l.PATTERN.source===d.PATTERN.source&&!r.includes(d)&&d.PATTERN!==l2.NA)return r.push(d),h.push(d),h;return h},[]));return i=i.filter(Boolean),i.filter((l)=>l.length>1).map((l)=>{let h=l.map((p)=>p.name);return{message:`The same RegExp pattern ->${l[0].PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:Yp.DUPLICATE_PATTERNS_FOUND,tokenTypes:l}})}function _$r(e){return e.filter((a)=>{if(!Object.hasOwn(a,"GROUP"))return!1;let o=a.GROUP;return o!==l2.SKIPPED&&o!==l2.NA&&typeof o!=="string"}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Yp.INVALID_GROUP_TYPE_FOUND,tokenTypes:[a]}))}function E$r(e,r){return e.filter((o)=>o.PUSH_MODE!==void 0&&!r.includes(o.PUSH_MODE)).map((o)=>({message:`Token Type: ->${o.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${o.PUSH_MODE}<-which does not exist`,type:Yp.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[o]}))}function w$r(e){let r=[],i=e.reduce((a,o,l)=>{let h=o.PATTERN;if(h===l2.NA)return a;if(typeof h==="string")a.push({str:h,idx:l,tokenType:o});else if(h instanceof RegExp&&T$r(h))a.push({str:h.source,idx:l,tokenType:o});return a},[]);return e.forEach((a,o)=>{i.forEach(({str:l,idx:h,tokenType:d})=>{if(o${d.name}<- can never be matched. Because it appears AFTER the Token Type ->${a.name}<-in the lexer's definition. -See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;r.push({message:p,type:Yp.UNREACHABLE_PATTERN,tokenTypes:[a,d]})}})}),r}function y$r(e,r){if(r instanceof RegExp){if(_$r(r))return!1;let i=r.exec(e);return i!==null&&i.index===0}else if(typeof r==="function")return r(e,0,[],{});else if(Object.hasOwn(r,"exec"))return r.exec(e,0,[],{});else if(typeof r==="string")return r===e;else throw Error("non exhaustive match")}function v$r(e){return[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find((i)=>e.source.indexOf(i)!==-1)===void 0}function _$r(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition -`,type:Yp.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE});if(!Object.hasOwn(e,Nxe))a.push({message:"A MultiMode Lexer cannot be initialized without a <"+Nxe+`> property in its definition -`,type:Yp.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY});if(Object.hasOwn(e,Nxe)&&Object.hasOwn(e,ise)&&!Object.hasOwn(e.modes,e.defaultMode))a.push({message:`A MultiMode Lexer cannot be initialized with a ${ise}: <${e.defaultMode}>which does not exist -`,type:Yp.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST});if(Object.hasOwn(e,Nxe))Object.keys(e.modes).forEach((o)=>{let l=e.modes[o];l.forEach((h,d)=>{if(h===void 0)a.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${d}> +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;r.push({message:p,type:Yp.UNREACHABLE_PATTERN,tokenTypes:[a,d]})}})}),r}function S$r(e,r){if(r instanceof RegExp){if(x$r(r))return!1;let i=r.exec(e);return i!==null&&i.index===0}else if(typeof r==="function")return r(e,0,[],{});else if(Object.hasOwn(r,"exec"))return r.exec(e,0,[],{});else if(typeof r==="string")return r===e;else throw Error("non exhaustive match")}function T$r(e){return[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find((i)=>e.source.indexOf(i)!==-1)===void 0}function x$r(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:Yp.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE});if(!Object.hasOwn(e,Dxe))a.push({message:"A MultiMode Lexer cannot be initialized without a <"+Dxe+`> property in its definition +`,type:Yp.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY});if(Object.hasOwn(e,Dxe)&&Object.hasOwn(e,ose)&&!Object.hasOwn(e.modes,e.defaultMode))a.push({message:`A MultiMode Lexer cannot be initialized with a ${ose}: <${e.defaultMode}>which does not exist +`,type:Yp.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST});if(Object.hasOwn(e,Dxe))Object.keys(e.modes).forEach((o)=>{let l=e.modes[o];l.forEach((h,d)=>{if(h===void 0)a.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${d}> `,type:Yp.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Object.hasOwn(h,"LONGER_ALT"))(Array.isArray(h.LONGER_ALT)?h.LONGER_ALT:[h.LONGER_ALT]).forEach((m)=>{if(m!==void 0&&!l.includes(m))a.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${m.name}> on token <${h.name}> outside of mode <${o}> -`,type:Yp.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})});return a}function w$r(e,r,i){let a=[],o=!1,h=Object.values(e.modes||{}).flat().filter(Boolean).filter((p)=>p[eF]!==l2.NA),d=nht(i);if(r)h.forEach((p)=>{let m=rht(p,d);if(m!==!1){let E={message:T$r(p,m),type:m.issue,tokenType:p};a.push(E)}else if(Object.hasOwn(p,"LINE_BREAKS")){if(p.LINE_BREAKS===!0)o=!0}else if(I4e(d,p.PATTERN))o=!0});if(r&&!o)a.push({message:`Warning: No LINE_BREAKS Found. +`,type:Yp.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})});return a}function k$r(e,r,i){let a=[],o=!1,h=Object.values(e.modes||{}).flat().filter(Boolean).filter((p)=>p[rF]!==l2.NA),d=sht(i);if(r)h.forEach((p)=>{let m=aht(p,d);if(m!==!1){let v={message:R$r(p,m),type:m.issue,tokenType:p};a.push(v)}else if(Object.hasOwn(p,"LINE_BREAKS")){if(p.LINE_BREAKS===!0)o=!0}else if(L4e(d,p.PATTERN))o=!0});if(r&&!o)a.push({message:`Warning: No LINE_BREAKS Found. This Lexer has been defined to track line and column information, But none of the Token Types can be identified as matching a line terminator. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS - for details.`,type:Yp.NO_LINE_BREAKS_FLAGS});return a}function tht(e){let r=e.PATTERN;if(r instanceof RegExp)return!1;else if(typeof r==="function")return!0;else if(Object.hasOwn(r,"exec"))return!0;else if(typeof r==="string")return!1;else throw Error("non exhaustive match")}function S$r(e){if(typeof e==="string"&&e.length===1)return e.charCodeAt(0);else return!1}function rht(e,r){if(Object.hasOwn(e,"LINE_BREAKS"))return!1;else if(e.PATTERN instanceof RegExp){try{I4e(r,e.PATTERN)}catch(i){return{issue:Yp.IDENTIFY_TERMINATOR,errMsg:i.message}}return!1}else if(typeof e.PATTERN==="string")return!1;else if(tht(e))return{issue:Yp.CUSTOM_LINE_BREAK};else throw Error("non exhaustive match")}function T$r(e,r){if(r.issue===Yp.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. + for details.`,type:Yp.NO_LINE_BREAKS_FLAGS});return a}function iht(e){let r=e.PATTERN;if(r instanceof RegExp)return!1;else if(typeof r==="function")return!0;else if(Object.hasOwn(r,"exec"))return!0;else if(typeof r==="string")return!1;else throw Error("non exhaustive match")}function A$r(e){if(typeof e==="string"&&e.length===1)return e.charCodeAt(0);else return!1}function aht(e,r){if(Object.hasOwn(e,"LINE_BREAKS"))return!1;else if(e.PATTERN instanceof RegExp){try{L4e(r,e.PATTERN)}catch(i){return{issue:Yp.IDENTIFY_TERMINATOR,errMsg:i.message}}return!1}else if(typeof e.PATTERN==="string")return!1;else if(iht(e))return{issue:Yp.CUSTOM_LINE_BREAK};else throw Error("non exhaustive match")}function R$r(e,r){if(r.issue===Yp.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. The problem is in the <${e.name}> Token Type Root cause: ${r.errMsg}. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;else if(r.issue===Yp.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. The problem is in the <${e.name}> Token Type - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;else throw Error("non exhaustive match")}function nht(e){return e.map((i)=>{if(typeof i==="string")return i.charCodeAt(0);else return i})}function fCe(e,r,i){if(e[r]===void 0)e[r]=[i];else e[r].push(i)}function EI(e){return e255?255+~~(e/255):e}}function OY(e,r){let i=e.tokenTypeIdx;if(i===r.tokenTypeIdx)return!0;else return r.isParent===!0&&r.categoryMatchesMap[i]===!0}function xse(e,r){return e.tokenTypeIdx===r.tokenTypeIdx}function NY(e){let r=k$r(e);A$r(r),I$r(r),R$r(r),r.forEach((i)=>{i.isParent=i.categoryMatches.length>0})}function k$r(e){let r=[...e],i=e,a=!0;while(a){i=i.map((l)=>l.CATEGORIES).flat().filter(Boolean);let o=i.filter((l)=>!r.includes(l));if(r=r.concat(o),o.length===0)a=!1;else i=o}return r}function A$r(e){e.forEach((r)=>{if(!aht(r))C$r[RPr]=r,r.tokenTypeIdx=RPr++;if($ct(r)&&!Array.isArray(r.CATEGORIES))r.CATEGORIES=[r.CATEGORIES];if(!$ct(r))r.CATEGORIES=[];if(!O$r(r))r.categoryMatches=[];if(!N$r(r))r.categoryMatchesMap={}})}function R$r(e){e.forEach((r)=>{r.categoryMatches=[],Object.keys(r.categoryMatchesMap).forEach((i)=>{r.categoryMatches.push(C$r[i].tokenTypeIdx)})})}function I$r(e){e.forEach((r)=>{iht([],r)})}function iht(e,r){e.forEach((i)=>{r.categoryMatchesMap[i.tokenTypeIdx]=!0}),r.CATEGORIES.forEach((i)=>{let a=e.concat(r);if(!a.includes(i))iht(a,i)})}function aht(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}function $ct(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"CATEGORIES")}function O$r(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatches")}function N$r(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatchesMap")}function L$r(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}function ZB(e){if(sht(e))return e.LABEL;else return e.name}function sht(e){return typeof e.LABEL==="string"&&e.LABEL!==""}function oht(e){return M$r(e)}function M$r(e){let r=e.pattern,i={};if(i.name=e.name,r!==void 0)i.PATTERN=r;if(Object.hasOwn(e,Cpi))throw`The parent property is no longer supported. -See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;if(Object.hasOwn(e,IPr))i.CATEGORIES=e[IPr];if(NY([i]),Object.hasOwn(e,OPr))i.LABEL=e[OPr];if(Object.hasOwn(e,NPr))i.GROUP=e[NPr];if(Object.hasOwn(e,MPr))i.POP_MODE=e[MPr];if(Object.hasOwn(e,LPr))i.PUSH_MODE=e[LPr];if(Object.hasOwn(e,DPr))i.LONGER_ALT=e[DPr];if(Object.hasOwn(e,PPr))i.LINE_BREAKS=e[PPr];if(Object.hasOwn(e,BPr))i.START_CHARS_HINT=e[BPr];return i}function O4e(e,r,i,a,o,l,h,d){return{image:r,startOffset:i,endOffset:a,startLine:o,endLine:l,startColumn:h,endColumn:d,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function N4e(e,r){return OY(e,r)}function D$r(e,r){let i=new Api(e,r);return i.resolveRefs(),i.errors}function MCe(e,r,i=[]){i=[...i];let a=[],o=0;function l(d){return d.concat(e.slice(o+1))}ee(l,"remainingPathWith");function h(d){let p=MCe(l(d),r,i);return a.concat(p)}ee(h,"getAlternativesForProd");while(i.length{if(p.definition.length!==0)a=h(p.definition)}),a;else if(d instanceof Ud)i.push(d.terminalType);else throw Error("non exhaustive match");o++}return a.push({partialPath:i,suffixDef:e.slice(o)}),a}function P$r(e,r,i,a){let l=["EXIT_NONE_TERMINAL"],h="EXIT_ALTERNATIVE",d=!1,p=r.length,m=p-a-1,y=[],E=[];E.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});while(E.length!==0){let w=E.pop();if(w==="EXIT_ALTERNATIVE"){if(d&&E.at(-1).idx<=m)E.pop();continue}let{def:T,idx:x,ruleStack:k,occurrenceStack:A}=w;if(T.length===0)continue;let R=T[0];if(R==="EXIT_NONE_TERMINAL"){let N={idx:x,def:T.slice(1),ruleStack:k.slice(0,-1),occurrenceStack:A.slice(0,-1)};E.push(N)}else if(R instanceof Ud)if(x=0;N--){let L=R.definition[N],B={idx:x,def:L.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A};E.push(B),E.push("EXIT_ALTERNATIVE")}else if(R instanceof c2)E.push({idx:x,def:R.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A});else if(R instanceof kY)E.push(B$r(R,x,k,A));else throw Error("non exhaustive match")}return y}function B$r(e,r,i,a){let o=[...i];o.push(e.name);let l=[...a];return l.push(1),{idx:r,def:e.definition,ruleStack:o,occurrenceStack:l}}function M4e(e){if(e instanceof eb||e==="Option")return sp.OPTION;else if(e instanceof qp||e==="Repetition")return sp.REPETITION;else if(e instanceof nw||e==="RepetitionMandatory")return sp.REPETITION_MANDATORY;else if(e instanceof iw||e==="RepetitionMandatoryWithSeparator")return sp.REPETITION_MANDATORY_WITH_SEPARATOR;else if(e instanceof u2||e==="RepetitionWithSeparator")return sp.REPETITION_WITH_SEPARATOR;else if(e instanceof h2||e==="Alternation")return sp.ALTERNATION;else throw Error("non exhaustive match")}function Gct(e){let{occurrence:r,rule:i,prodType:a,maxLookahead:o}=e,l=M4e(a);if(l===sp.ALTERNATION)return Vse(r,i,o);else return Hse(r,i,l,o)}function F$r(e,r,i,a,o,l){let h=Vse(e,r,i),d=cht(h)?xse:OY;return l(h,a,d,o)}function $$r(e,r,i,a,o,l){let h=Hse(e,r,o,i),d=cht(h)?xse:OY;return l(h[0],d,a)}function U$r(e,r,i,a){let o=e.length,l=e.every((h)=>h.every((d)=>d.length===1));if(r)return function(h){let d=h.map((p)=>p.GATE);for(let p=0;pp.flat()).reduce((p,m,y)=>(m.forEach((E)=>{if(!(E.tokenTypeIdx in p))p[E.tokenTypeIdx]=y;E.categoryMatches.forEach((w)=>{if(!Object.hasOwn(p,w))p[w]=y})}),p),{});return function(){let p=this.LA_FAST(1);return d[p.tokenTypeIdx]}}else return function(){for(let h=0;hl.length===1),o=e.length;if(a&&!i){let l=e.flat();if(l.length===1&&l[0].categoryMatches.length===0){let d=l[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===d}}else{let h=l.reduce((d,p,m)=>(d[p.tokenTypeIdx]=!0,p.categoryMatches.forEach((y)=>{d[y]=!0}),d),[]);return function(){let d=this.LA_FAST(1);return h[d.tokenTypeIdx]===!0}}}else return function(){e:for(let l=0;lMCe([h],1)),a=zct(i.length),o=i.map((h)=>{let d={};return h.forEach((p)=>{gCe(p.partialPath).forEach((y)=>{d[y]=!0})}),d}),l=i;for(let h=1;h<=r;h++){let d=l;l=zct(d.length);for(let p=0;p{gCe(A.partialPath).forEach((N)=>{o[p][N]=!0})})}}}}return a}function Vse(e,r,i,a){let o=new z$r(e,sp.ALTERNATION,a);return r.accept(o),lht(o.result,i)}function Hse(e,r,i,a){let o=new z$r(e,i);r.accept(o);let l=o.result,d=new Lpi(r,e,i).startWalking(),p=new c2({definition:l}),m=new c2({definition:d});return lht([p,m],a)}function DCe(e,r){e:for(let i=0;i{let o=r[a];return i===o||o.categoryMatchesMap[i.tokenTypeIdx]})}function cht(e){return e.every((r)=>r.every((i)=>i.every((a)=>a.categoryMatches.length===0)))}function q$r(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map((i)=>Object.assign({type:Cv.CUSTOM_LOOKAHEAD_VALIDATION},i))}function Y$r(e,r,i,a){let o=e.flatMap((p)=>W$r(p,i)),l=nUr(e,r,i),h=e.flatMap((p)=>J$r(p,i)),d=e.flatMap((p)=>K$r(p,e,a,i));return o.concat(l,h,d)}function W$r(e,r){let i=new Mpi;e.accept(i);let a=i.allProductions,o=Object.groupBy(a,j$r),l=Object.fromEntries(Object.entries(o).filter(([d,p])=>p.length>1));return Object.values(l).map((d)=>{let p=d[0],m=r.buildDuplicateFoundError(e,d),y=FC(p),E={message:m,type:Cv.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:y,occurrence:p.idx},w=uht(p);if(w)E.parameter=w;return E})}function j$r(e){return`${FC(e)}_#_${e.idx}_#_${uht(e)}`}function uht(e){if(e instanceof Ud)return e.terminalType.name;else if(e instanceof xv)return e.nonTerminalName;else return""}function K$r(e,r,i,a){let o=[];if(r.reduce((h,d)=>{if(d.name===e.name)return h+1;return h},0)>1){let h=a.buildDuplicateRuleNameError({topLevelRule:e,grammarName:i});o.push({message:h,type:Cv.DUPLICATE_RULE_NAME,ruleName:e.name})}return o}function X$r(e,r,i){let a=[],o;if(!r.includes(e))o=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${i}<-as it is not defined in any of the super grammars `,a.push({message:o,type:Cv.INVALID_RULE_OVERRIDE,ruleName:e});return a}function hht(e,r,i,a=[]){let o=[],l=cse(r.definition);if(l.length===0)return[];else{let h=e.name;if(l.includes(e))o.push({message:i.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:a}),type:Cv.LEFT_RECURSION,ruleName:h});let p=a.concat([e]),y=l.filter((E)=>!p.includes(E)).flatMap((E)=>{let w=[...a];return w.push(E),hht(e,E,i,w)});return o.concat(y)}}function cse(e){let r=[];if(e.length===0)return r;let i=e[0];if(i instanceof xv)r.push(i.referencedRule);else if(i instanceof c2||i instanceof eb||i instanceof nw||i instanceof iw||i instanceof u2||i instanceof qp)r=r.concat(cse(i.definition));else if(i instanceof h2)r=i.definition.map((l)=>cse(l.definition)).flat();else if(i instanceof Ud);else throw Error("non exhaustive match");let a=Tse(i),o=e.length>1;if(a&&o){let l=e.slice(1);return r.concat(cse(l))}else return r}function Q$r(e,r){let i=new dht;return e.accept(i),i.alternations.flatMap((l)=>l.definition.slice(0,-1).flatMap((d,p)=>{if(P$r([d],[],OY,1).length===0)return[{message:r.buildEmptyAlternationError({topLevelRule:e,alternation:l,emptyChoiceIdx:p}),type:Cv.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:l.idx,alternative:p+1}];else return[]}))}function Z$r(e,r,i){let a=new dht;e.accept(a);let o=a.alternations;return o=o.filter((h)=>h.ignoreAmbiguities!==!0),o.flatMap((h)=>{let d=h.idx,p=h.maxLookahead||r,m=Vse(d,e,p,h),y=tUr(m,h,e,i),E=rUr(m,h,e,i);return y.concat(E)})}function J$r(e,r){let i=new dht;return e.accept(i),i.alternations.flatMap((l)=>{if(l.definition.length>255)return[{message:r.buildTooManyAlternativesError({topLevelRule:e,alternation:l}),type:Cv.TOO_MANY_ALTS,ruleName:e.name,occurrence:l.idx}];else return[]})}function eUr(e,r,i){let a=[];return e.forEach((o)=>{let l=new Dpi;o.accept(l),l.allProductions.forEach((d)=>{let p=M4e(d),m=d.maxLookahead||r,y=d.idx;if(Hse(y,o,p,m)[0].flat().length===0){let T=i.buildEmptyRepetitionError({topLevelRule:o,repetition:d});a.push({message:T,type:Cv.NO_NON_EMPTY_LOOKAHEAD,ruleName:o.name})}})}),a}function tUr(e,r,i,a){let o=[];return e.reduce((d,p,m)=>{if(r.definition[m].ignoreAmbiguities===!0)return d;return p.forEach((y)=>{let E=[m];if(e.forEach((w,T)=>{if(m!==T&&DCe(w,y)&&r.definition[T].ignoreAmbiguities!==!0)E.push(T)}),E.length>1&&!DCe(o,y))o.push(y),d.push({alts:E,path:y})}),d},[]).map((d)=>{let p=d.alts.map((y)=>y+1);return{message:a.buildAlternationAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:p,prefixPath:d.path}),type:Cv.AMBIGUOUS_ALTS,ruleName:i.name,occurrence:r.idx,alternatives:d.alts}})}function rUr(e,r,i,a){let o=e.reduce((h,d,p)=>{let m=d.map((y)=>({idx:p,path:y}));return h.concat(m)},[]);return o.flatMap((h)=>{if(r.definition[h.idx].ignoreAmbiguities===!0)return[];let{idx:p,path:m}=h;return o.filter((w)=>r.definition[w.idx].ignoreAmbiguities!==!0&&w.idx{let T=[w.idx+1,p+1],x=r.idx===0?"":r.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:T,prefixPath:w.path}),type:Cv.AMBIGUOUS_PREFIX_ALTS,ruleName:i.name,occurrence:x,alternatives:T}})})}function nUr(e,r,i){let a=[],o=r.map((l)=>l.name);return e.forEach((l)=>{let h=l.name;if(o.includes(h)){let d=i.buildNamespaceConflictError(l);a.push({message:d,type:Cv.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),a}function iUr(e){let r=Object.assign({errMsgProvider:kpi},e),i={};return e.rules.forEach((a)=>{i[a.name]=a}),D$r(i,r.errMsgProvider)}function aUr(e){var r;let i=(r=e.errMsgProvider)!==null&&r!==void 0?r:KB;return Y$r(e.rules,e.tokenTypes,i,e.grammarName)}function Cse(e){return uUr.includes(e.name)}function fUr(e,r,i,a,o,l,h){var d,p,m;let y=a|o,E=(d=(p=this.firstAfterRepMap)[m=this.currRuleShortName])!==null&&d!==void 0?d:p[m]=[],w=E[y];if(w===void 0){let A=this.getCurrRuleFullName(),R=this.getGAstProductions()[A];w=new l(R,o).startWalking(),E[y]=w}let T=w.token,x=w.occurrence,k=w.isEndOfRule;if(this.RULE_STACK_IDX===0&&k&&T===void 0)T=wI,x=1;if(T===void 0||x===void 0)return;if(this.shouldInRepetitionRecoveryBeTried(T,x,h))this.tryInRepetitionRecovery(e,r,i,T)}function mUr(e){Lxe.reset(),e.accept(Lxe);let r=Lxe.dslMethods;return Lxe.reset(),r}function Yct(e,r){if(e.startOffset===-1)e.startOffset=r.startOffset,e.endOffset=r.endOffset;else if(e.endOffseth.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;else throw Error("non exhaustive match")}function sht(e){return e.map((i)=>{if(typeof i==="string")return i.charCodeAt(0);else return i})}function mCe(e,r,i){if(e[r]===void 0)e[r]=[i];else e[r].push(i)}function TI(e){return e255?255+~~(e/255):e}}function MY(e,r){let i=e.tokenTypeIdx;if(i===r.tokenTypeIdx)return!0;else return r.isParent===!0&&r.categoryMatchesMap[i]===!0}function Ase(e,r){return e.tokenTypeIdx===r.tokenTypeIdx}function DY(e){let r=N$r(e);L$r(r),D$r(r),M$r(r),r.forEach((i)=>{i.isParent=i.categoryMatches.length>0})}function N$r(e){let r=[...e],i=e,a=!0;while(a){i=i.map((l)=>l.CATEGORIES).flat().filter(Boolean);let o=i.filter((l)=>!r.includes(l));if(r=r.concat(o),o.length===0)a=!1;else i=o}return r}function L$r(e){e.forEach((r)=>{if(!lht(r))O$r[MPr]=r,r.tokenTypeIdx=MPr++;if(zct(r)&&!Array.isArray(r.CATEGORIES))r.CATEGORIES=[r.CATEGORIES];if(!zct(r))r.CATEGORIES=[];if(!P$r(r))r.categoryMatches=[];if(!B$r(r))r.categoryMatchesMap={}})}function M$r(e){e.forEach((r)=>{r.categoryMatches=[],Object.keys(r.categoryMatchesMap).forEach((i)=>{r.categoryMatches.push(O$r[i].tokenTypeIdx)})})}function D$r(e){e.forEach((r)=>{oht([],r)})}function oht(e,r){e.forEach((i)=>{r.categoryMatchesMap[i.tokenTypeIdx]=!0}),r.CATEGORIES.forEach((i)=>{let a=e.concat(r);if(!a.includes(i))oht(a,i)})}function lht(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}function zct(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"CATEGORIES")}function P$r(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatches")}function B$r(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatchesMap")}function F$r(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}function eF(e){if(cht(e))return e.LABEL;else return e.name}function cht(e){return typeof e.LABEL==="string"&&e.LABEL!==""}function uht(e){return $$r(e)}function $$r(e){let r=e.pattern,i={};if(i.name=e.name,r!==void 0)i.PATTERN=r;if(Object.hasOwn(e,Npi))throw`The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;if(Object.hasOwn(e,DPr))i.CATEGORIES=e[DPr];if(DY([i]),Object.hasOwn(e,PPr))i.LABEL=e[PPr];if(Object.hasOwn(e,BPr))i.GROUP=e[BPr];if(Object.hasOwn(e,$Pr))i.POP_MODE=e[$Pr];if(Object.hasOwn(e,FPr))i.PUSH_MODE=e[FPr];if(Object.hasOwn(e,UPr))i.LONGER_ALT=e[UPr];if(Object.hasOwn(e,GPr))i.LINE_BREAKS=e[GPr];if(Object.hasOwn(e,zPr))i.START_CHARS_HINT=e[zPr];return i}function M4e(e,r,i,a,o,l,h,d){return{image:r,startOffset:i,endOffset:a,startLine:o,endLine:l,startColumn:h,endColumn:d,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function D4e(e,r){return MY(e,r)}function U$r(e,r){let i=new Mpi(e,r);return i.resolveRefs(),i.errors}function BCe(e,r,i=[]){i=[...i];let a=[],o=0;function l(d){return d.concat(e.slice(o+1))}te(l,"remainingPathWith");function h(d){let p=BCe(l(d),r,i);return a.concat(p)}te(h,"getAlternativesForProd");while(i.length{if(p.definition.length!==0)a=h(p.definition)}),a;else if(d instanceof Ud)i.push(d.terminalType);else throw Error("non exhaustive match");o++}return a.push({partialPath:i,suffixDef:e.slice(o)}),a}function G$r(e,r,i,a){let l=["EXIT_NONE_TERMINAL"],h="EXIT_ALTERNATIVE",d=!1,p=r.length,m=p-a-1,y=[],v=[];v.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});while(v.length!==0){let w=v.pop();if(w==="EXIT_ALTERNATIVE"){if(d&&v.at(-1).idx<=m)v.pop();continue}let{def:T,idx:x,ruleStack:k,occurrenceStack:A}=w;if(T.length===0)continue;let R=T[0];if(R==="EXIT_NONE_TERMINAL"){let N={idx:x,def:T.slice(1),ruleStack:k.slice(0,-1),occurrenceStack:A.slice(0,-1)};v.push(N)}else if(R instanceof Ud)if(x=0;N--){let L=R.definition[N],B={idx:x,def:L.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A};v.push(B),v.push("EXIT_ALTERNATIVE")}else if(R instanceof c2)v.push({idx:x,def:R.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A});else if(R instanceof IY)v.push(z$r(R,x,k,A));else throw Error("non exhaustive match")}return y}function z$r(e,r,i,a){let o=[...i];o.push(e.name);let l=[...a];return l.push(1),{idx:r,def:e.definition,ruleStack:o,occurrenceStack:l}}function B4e(e){if(e instanceof eb||e==="Option")return sp.OPTION;else if(e instanceof qp||e==="Repetition")return sp.REPETITION;else if(e instanceof nw||e==="RepetitionMandatory")return sp.REPETITION_MANDATORY;else if(e instanceof iw||e==="RepetitionMandatoryWithSeparator")return sp.REPETITION_MANDATORY_WITH_SEPARATOR;else if(e instanceof u2||e==="RepetitionWithSeparator")return sp.REPETITION_WITH_SEPARATOR;else if(e instanceof h2||e==="Alternation")return sp.ALTERNATION;else throw Error("non exhaustive match")}function Hct(e){let{occurrence:r,rule:i,prodType:a,maxLookahead:o}=e,l=B4e(a);if(l===sp.ALTERNATION)return Yse(r,i,o);else return Wse(r,i,l,o)}function V$r(e,r,i,a,o,l){let h=Yse(e,r,i),d=dht(h)?Ase:MY;return l(h,a,d,o)}function H$r(e,r,i,a,o,l){let h=Wse(e,r,o,i),d=dht(h)?Ase:MY;return l(h[0],d,a)}function q$r(e,r,i,a){let o=e.length,l=e.every((h)=>h.every((d)=>d.length===1));if(r)return function(h){let d=h.map((p)=>p.GATE);for(let p=0;pp.flat()).reduce((p,m,y)=>(m.forEach((v)=>{if(!(v.tokenTypeIdx in p))p[v.tokenTypeIdx]=y;v.categoryMatches.forEach((w)=>{if(!Object.hasOwn(p,w))p[w]=y})}),p),{});return function(){let p=this.LA_FAST(1);return d[p.tokenTypeIdx]}}else return function(){for(let h=0;hl.length===1),o=e.length;if(a&&!i){let l=e.flat();if(l.length===1&&l[0].categoryMatches.length===0){let d=l[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===d}}else{let h=l.reduce((d,p,m)=>(d[p.tokenTypeIdx]=!0,p.categoryMatches.forEach((y)=>{d[y]=!0}),d),[]);return function(){let d=this.LA_FAST(1);return h[d.tokenTypeIdx]===!0}}}else return function(){e:for(let l=0;lBCe([h],1)),a=qct(i.length),o=i.map((h)=>{let d={};return h.forEach((p)=>{yCe(p.partialPath).forEach((y)=>{d[y]=!0})}),d}),l=i;for(let h=1;h<=r;h++){let d=l;l=qct(d.length);for(let p=0;p{yCe(A.partialPath).forEach((N)=>{o[p][N]=!0})})}}}}return a}function Yse(e,r,i,a){let o=new W$r(e,sp.ALTERNATION,a);return r.accept(o),hht(o.result,i)}function Wse(e,r,i,a){let o=new W$r(e,i);r.accept(o);let l=o.result,d=new $pi(r,e,i).startWalking(),p=new c2({definition:l}),m=new c2({definition:d});return hht([p,m],a)}function FCe(e,r){e:for(let i=0;i{let o=r[a];return i===o||o.categoryMatchesMap[i.tokenTypeIdx]})}function dht(e){return e.every((r)=>r.every((i)=>i.every((a)=>a.categoryMatches.length===0)))}function X$r(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map((i)=>Object.assign({type:Cv.CUSTOM_LOOKAHEAD_VALIDATION},i))}function Q$r(e,r,i,a){let o=e.flatMap((p)=>Z$r(p,i)),l=lUr(e,r,i),h=e.flatMap((p)=>iUr(p,i)),d=e.flatMap((p)=>eUr(p,e,a,i));return o.concat(l,h,d)}function Z$r(e,r){let i=new Upi;e.accept(i);let a=i.allProductions,o=Object.groupBy(a,J$r),l=Object.fromEntries(Object.entries(o).filter(([d,p])=>p.length>1));return Object.values(l).map((d)=>{let p=d[0],m=r.buildDuplicateFoundError(e,d),y=UC(p),v={message:m,type:Cv.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:y,occurrence:p.idx},w=fht(p);if(w)v.parameter=w;return v})}function J$r(e){return`${UC(e)}_#_${e.idx}_#_${fht(e)}`}function fht(e){if(e instanceof Ud)return e.terminalType.name;else if(e instanceof xv)return e.nonTerminalName;else return""}function eUr(e,r,i,a){let o=[];if(r.reduce((h,d)=>{if(d.name===e.name)return h+1;return h},0)>1){let h=a.buildDuplicateRuleNameError({topLevelRule:e,grammarName:i});o.push({message:h,type:Cv.DUPLICATE_RULE_NAME,ruleName:e.name})}return o}function tUr(e,r,i){let a=[],o;if(!r.includes(e))o=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${i}<-as it is not defined in any of the super grammars `,a.push({message:o,type:Cv.INVALID_RULE_OVERRIDE,ruleName:e});return a}function pht(e,r,i,a=[]){let o=[],l=dse(r.definition);if(l.length===0)return[];else{let h=e.name;if(l.includes(e))o.push({message:i.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:a}),type:Cv.LEFT_RECURSION,ruleName:h});let p=a.concat([e]),y=l.filter((v)=>!p.includes(v)).flatMap((v)=>{let w=[...a];return w.push(v),pht(e,v,i,w)});return o.concat(y)}}function dse(e){let r=[];if(e.length===0)return r;let i=e[0];if(i instanceof xv)r.push(i.referencedRule);else if(i instanceof c2||i instanceof eb||i instanceof nw||i instanceof iw||i instanceof u2||i instanceof qp)r=r.concat(dse(i.definition));else if(i instanceof h2)r=i.definition.map((l)=>dse(l.definition)).flat();else if(i instanceof Ud);else throw Error("non exhaustive match");let a=kse(i),o=e.length>1;if(a&&o){let l=e.slice(1);return r.concat(dse(l))}else return r}function rUr(e,r){let i=new ght;return e.accept(i),i.alternations.flatMap((l)=>l.definition.slice(0,-1).flatMap((d,p)=>{if(G$r([d],[],MY,1).length===0)return[{message:r.buildEmptyAlternationError({topLevelRule:e,alternation:l,emptyChoiceIdx:p}),type:Cv.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:l.idx,alternative:p+1}];else return[]}))}function nUr(e,r,i){let a=new ght;e.accept(a);let o=a.alternations;return o=o.filter((h)=>h.ignoreAmbiguities!==!0),o.flatMap((h)=>{let d=h.idx,p=h.maxLookahead||r,m=Yse(d,e,p,h),y=sUr(m,h,e,i),v=oUr(m,h,e,i);return y.concat(v)})}function iUr(e,r){let i=new ght;return e.accept(i),i.alternations.flatMap((l)=>{if(l.definition.length>255)return[{message:r.buildTooManyAlternativesError({topLevelRule:e,alternation:l}),type:Cv.TOO_MANY_ALTS,ruleName:e.name,occurrence:l.idx}];else return[]})}function aUr(e,r,i){let a=[];return e.forEach((o)=>{let l=new Gpi;o.accept(l),l.allProductions.forEach((d)=>{let p=B4e(d),m=d.maxLookahead||r,y=d.idx;if(Wse(y,o,p,m)[0].flat().length===0){let T=i.buildEmptyRepetitionError({topLevelRule:o,repetition:d});a.push({message:T,type:Cv.NO_NON_EMPTY_LOOKAHEAD,ruleName:o.name})}})}),a}function sUr(e,r,i,a){let o=[];return e.reduce((d,p,m)=>{if(r.definition[m].ignoreAmbiguities===!0)return d;return p.forEach((y)=>{let v=[m];if(e.forEach((w,T)=>{if(m!==T&&FCe(w,y)&&r.definition[T].ignoreAmbiguities!==!0)v.push(T)}),v.length>1&&!FCe(o,y))o.push(y),d.push({alts:v,path:y})}),d},[]).map((d)=>{let p=d.alts.map((y)=>y+1);return{message:a.buildAlternationAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:p,prefixPath:d.path}),type:Cv.AMBIGUOUS_ALTS,ruleName:i.name,occurrence:r.idx,alternatives:d.alts}})}function oUr(e,r,i,a){let o=e.reduce((h,d,p)=>{let m=d.map((y)=>({idx:p,path:y}));return h.concat(m)},[]);return o.flatMap((h)=>{if(r.definition[h.idx].ignoreAmbiguities===!0)return[];let{idx:p,path:m}=h;return o.filter((w)=>r.definition[w.idx].ignoreAmbiguities!==!0&&w.idx{let T=[w.idx+1,p+1],x=r.idx===0?"":r.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:T,prefixPath:w.path}),type:Cv.AMBIGUOUS_PREFIX_ALTS,ruleName:i.name,occurrence:x,alternatives:T}})})}function lUr(e,r,i){let a=[],o=r.map((l)=>l.name);return e.forEach((l)=>{let h=l.name;if(o.includes(h)){let d=i.buildNamespaceConflictError(l);a.push({message:d,type:Cv.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),a}function cUr(e){let r=Object.assign({errMsgProvider:Lpi},e),i={};return e.rules.forEach((a)=>{i[a.name]=a}),U$r(i,r.errMsgProvider)}function uUr(e){var r;let i=(r=e.errMsgProvider)!==null&&r!==void 0?r:QB;return Q$r(e.rules,e.tokenTypes,i,e.grammarName)}function Rse(e){return gUr.includes(e.name)}function yUr(e,r,i,a,o,l,h){var d,p,m;let y=a|o,v=(d=(p=this.firstAfterRepMap)[m=this.currRuleShortName])!==null&&d!==void 0?d:p[m]=[],w=v[y];if(w===void 0){let A=this.getCurrRuleFullName(),R=this.getGAstProductions()[A];w=new l(R,o).startWalking(),v[y]=w}let T=w.token,x=w.occurrence,k=w.isEndOfRule;if(this.RULE_STACK_IDX===0&&k&&T===void 0)T=xI,x=1;if(T===void 0||x===void 0)return;if(this.shouldInRepetitionRecoveryBeTried(T,x,h))this.tryInRepetitionRecovery(e,r,i,T)}function EUr(e){Pxe.reset(),e.accept(Pxe);let r=Pxe.dslMethods;return Pxe.reset(),r}function Kct(e,r){if(e.startOffset===-1)e.startOffset=r.startOffset,e.endOffset=r.endOffset;else if(e.endOffseth.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: ${l.join(` `).replace(/\n/g,` - `)}`)}},"validateVisitor")};return i.prototype=a,i.prototype.constructor=i,i._RULE_NAMES=r,i}function EUr(e,r,i){let a=ee(function(){},"derivedConstructor");pht(a,e+"BaseSemanticsWithDefaults");let o=Object.create(i.prototype);return r.forEach((l)=>{o[l]=vUr}),a.prototype=o,a.prototype.constructor=a,a}function wUr(e,r){return SUr(e,r)}function SUr(e,r){return r.filter((o)=>typeof e[o]==="function"===!1).map((o)=>({msg:`Missing visitor method: <${o}> on ${e.constructor.name} CST Visitor.`,type:jct.MISSING_METHOD,methodName:o})).filter(Boolean)}function uY(e,r,i,a=!1){kse(i);let o=this.recordingProdStack.at(-1),l=typeof r==="function"?r:r.DEF,h=new e({definition:[],idx:i});if(a)h.separator=r.SEP;if(Object.hasOwn(r,"MAX_LOOKAHEAD"))h.maxLookahead=r.MAX_LOOKAHEAD;return this.recordingProdStack.push(h),l.call(this),o.definition.push(h),this.recordingProdStack.pop(),P4e}function CUr(e,r){kse(r);let i=this.recordingProdStack.at(-1),a=Array.isArray(e)===!1,o=a===!1?e:e.DEF,l=new h2({definition:[],idx:r,ignoreAmbiguities:a&&e.IGNORE_AMBIGUITIES===!0});if(Object.hasOwn(e,"MAX_LOOKAHEAD"))l.maxLookahead=e.MAX_LOOKAHEAD;let h=o.some((d)=>typeof d.GATE==="function");return l.hasPredicates=h,i.definition.push(l),o.forEach((d)=>{let p=new c2({definition:[]});if(l.definition.push(p),Object.hasOwn(d,"IGNORE_AMBIGUITIES"))p.ignoreAmbiguities=d.IGNORE_AMBIGUITIES;else if(Object.hasOwn(d,"GATE"))p.ignoreAmbiguities=!0;this.recordingProdStack.push(p),d.ALT.call(this),this.recordingProdStack.pop()}),P4e}function Kct(e){return e===0?"":`${e}`}function kse(e){if(e<0||e>GPr){let r=Error(`Invalid DSL Method idx value: <${e}> - Idx value must be a none negative value smaller than ${GPr+1}`);throw r.KNOWN_RECORDER_ERROR=!0,r}}function kUr(e,r){r.forEach((i)=>{let a=i.prototype;Object.getOwnPropertyNames(a).forEach((o)=>{if(o==="constructor")return;let l=Object.getOwnPropertyDescriptor(a,o);if(l&&(l.get||l.set))Object.defineProperty(e.prototype,o,l);else e.prototype[o]=i.prototype[o]})})}function Xct(e=void 0){return function(){return e}}function AUr(e,r){var i=-1,a=e==null?0:e.length,o=Array(a);while(++i-1}function BUr(e,r){var i=this.__data__,a=B4e(i,e);if(a<0)++this.size,i.push([e,r]);else i[a][1]=r;return this}function iF(e){var r=-1,i=e==null?0:e.length;this.clear();while(++rd))return!1;var m=l.get(e),y=l.get(r);if(m&&y)return m==r&&y==e;var E=-1,w=!0,T=i&hgi?new mGr:void 0;l.set(e,r),l.set(r,e);while(++E-1&&e%1==0&&e-1&&e%1==0&&e<=Ygi}function UGr(e){return wY(e)&&yht(e.length)&&!!$d[MY(e)]}function GGr(e){return function(r){return e(r)}}function VGr(e,r){var i=kv(e),a=!i&&G4e(e),o=!i&&!a&&BCe(e),l=!i&&!a&&!o&&vht(e),h=i||a||o||l,d=h?Dgi(e.length,String):[],p=d.length;for(var m in e)if((r||Smi.call(e,m))&&!(h&&(m=="length"||o&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||FGr(m,p))))d.push(m);return d}function HGr(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||xmi;return e===i}function YGr(e,r){return function(i){return e(r(i))}}function WGr(e){if(!qGr(e))return Ami(e);var r=[];for(var i in Object(e))if(Imi.call(e,i)&&i!="constructor")r.push(i);return r}function KGr(e){return e!=null&&yht(e.length)&&!KUr(e)}function XGr(e){return z4e(e)?Tmi(e):jGr(e)}function QGr(e){return Rgi(e,_ht,Mgi)}function ZGr(e,r,i,a,o,l){var h=i&Omi,d=JPr(e),p=d.length,m=JPr(r),y=m.length;if(p!=y&&!h)return!1;var E=p;while(E--){var w=d[E];if(!(h?w in r:Lmi.call(r,w)))return!1}var T=l.get(e),x=l.get(r);if(T&&x)return T==r&&x==e;var k=!0;l.set(e,r),l.set(r,e);var A=h;while(++ECht(e,r,h));return uF(e,r,a,i,...o)}function qzr(e,r,i){let a=um(e,r,i,{type:q7});xI(e,a);let o=uF(e,r,a,i,W7(e,r,i));return Yzr(e,r,i,o)}function W7(e,r,i){let a=N1i(vI(i.definition,(o)=>Cht(e,r,o)),(o)=>o!==void 0);if(a.length===1)return a[0];else if(a.length===0)return;else return jzr(e,a)}function kht(e,r,i,a,o){let{left:l,right:h}=a,d=um(e,r,i,{type:B1i});xI(e,d);let p=um(e,r,i,{type:Pzr});if(l.loopback=d,p.loopback=d,e.decisionMap[tF(r,o?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",i.idx)]=d,M0(h,d),o===void 0)M0(d,l),M0(d,p);else M0(d,p),M0(d,o.left),M0(o.right,l);return{left:l,right:p}}function Aht(e,r,i,a,o){let{left:l,right:h}=a,d=um(e,r,i,{type:P1i});xI(e,d);let p=um(e,r,i,{type:Pzr}),m=um(e,r,i,{type:D1i});if(d.loopback=m,p.loopback=m,M0(d,l),M0(d,p),M0(h,m),o!==void 0)M0(m,p),M0(m,o.left),M0(o.right,l);else M0(m,d);return e.decisionMap[tF(r,o?"RepetitionWithSeparator":"Repetition",i.idx)]=d,{left:d,right:p}}function Yzr(e,r,i,a){let{left:o,right:l}=a;return M0(o,l),e.decisionMap[tF(r,"Option",i.idx)]=o,a}function xI(e,r){return e.decisionStates.push(r),r.decision=e.decisionStates.length-1,r.decision}function uF(e,r,i,a,...o){let l=um(e,r,a,{type:M1i,start:i});i.end=l;for(let d of o)if(d!==void 0)M0(i,d.left),M0(d.right,l);else M0(i,l);let h={left:i,right:l};return e.decisionMap[tF(r,Wzr(a),a.idx)]=i,h}function Wzr(e){if(e instanceof h2)return"Alternation";else if(e instanceof eb)return"Option";else if(e instanceof qp)return"Repetition";else if(e instanceof u2)return"RepetitionWithSeparator";else if(e instanceof nw)return"RepetitionMandatory";else if(e instanceof iw)return"RepetitionMandatoryWithSeparator";else throw Error("Invalid production type encountered")}function jzr(e,r){let i=r.length;for(let l=0;li.stateNumber.toString()).join("_")}`}function Zzr(e,r,i){var a=-1,o=e.length;while(++a0&&i(d))if(r>1)Iht(d,r-1,i,a,o);else CGr(o,d);else if(!a)o[o.length]=d}return o}function nVr(e,r){return rVr(vI(e,r),1)}function iVr(e,r,i,a){var o=e.length,l=i+(a?1:-1);while(a?l--:++l-1}function cVr(e,r,i){var a=-1,o=e==null?0:e.length;while(++a=J1i){var m=r?null:Z1i(e);if(m)return bht(m);h=!1,o=vGr,p=new mGr}else p=r?[]:d;e:while(++a{let o=a.toString(),l=i[o];if(l!==void 0)return l;else return l={atnStartState:e,decision:r,states:{}},i[o]=l,l}}function rut(e,r=!0){let i=new Set;for(let a of e){let o=new Set;for(let l of a){if(l===void 0)if(r)break;else return!1;let h=[l.tokenTypeIdx].concat(l.categoryMatches);for(let d of h)if(i.has(d)){if(!o.has(d))return!1}else i.add(d),o.add(d)}}return!0}function SVr(e){let r=new Map;for(let i of e.states)for(let a of i.transitions)if(a instanceof K4e){let o=r.get(a.rule);if(o===void 0)o=[],r.set(a.rule,o);o.push(a.followState)}return r}function nut(e,r){let i=new Set,a=new Set,o=[e];while(o.length>0){let l=o.shift();if(a.has(l))continue;if(a.add(l),l.type===cF){if(r!==void 0){let h=r.get(l.rule);if(h!==void 0)o.push(...h)}continue}for(let h of l.transitions)if(h instanceof j4e){i.add(h.tokenType.tokenTypeIdx);for(let d of h.tokenType.categoryMatches)i.add(d)}else o.push(h.target)}return i}function TVr(e,r,i){let a=r==="RepetitionMandatoryWithSeparator",o=e.transitions[a?1:0],l=e.transitions[a?0:1];if(o===void 0||l===void 0)return!1;let h=nut(o.target),d=nut(l.target,i);for(let p of h)if(d.has(p))return!0;return!1}function xVr(e){let r=e.decisionStates.length,i=Array(r);for(let a=0;aZB(o)).join(", "),i=e.production.idx===0?"":e.production.idx,a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${IVr(e.production)}${i}> inside <${e.topLevelRule.name}> Rule, + `)}`)}},"validateVisitor")};return i.prototype=a,i.prototype.constructor=i,i._RULE_NAMES=r,i}function CUr(e,r,i){let a=te(function(){},"derivedConstructor");bht(a,e+"BaseSemanticsWithDefaults");let o=Object.create(i.prototype);return r.forEach((l)=>{o[l]=TUr}),a.prototype=o,a.prototype.constructor=a,a}function kUr(e,r){return AUr(e,r)}function AUr(e,r){return r.filter((o)=>typeof e[o]==="function"===!1).map((o)=>({msg:`Missing visitor method: <${o}> on ${e.constructor.name} CST Visitor.`,type:Qct.MISSING_METHOD,methodName:o})).filter(Boolean)}function fY(e,r,i,a=!1){Ise(i);let o=this.recordingProdStack.at(-1),l=typeof r==="function"?r:r.DEF,h=new e({definition:[],idx:i});if(a)h.separator=r.SEP;if(Object.hasOwn(r,"MAX_LOOKAHEAD"))h.maxLookahead=r.MAX_LOOKAHEAD;return this.recordingProdStack.push(h),l.call(this),o.definition.push(h),this.recordingProdStack.pop(),$4e}function OUr(e,r){Ise(r);let i=this.recordingProdStack.at(-1),a=Array.isArray(e)===!1,o=a===!1?e:e.DEF,l=new h2({definition:[],idx:r,ignoreAmbiguities:a&&e.IGNORE_AMBIGUITIES===!0});if(Object.hasOwn(e,"MAX_LOOKAHEAD"))l.maxLookahead=e.MAX_LOOKAHEAD;let h=o.some((d)=>typeof d.GATE==="function");return l.hasPredicates=h,i.definition.push(l),o.forEach((d)=>{let p=new c2({definition:[]});if(l.definition.push(p),Object.hasOwn(d,"IGNORE_AMBIGUITIES"))p.ignoreAmbiguities=d.IGNORE_AMBIGUITIES;else if(Object.hasOwn(d,"GATE"))p.ignoreAmbiguities=!0;this.recordingProdStack.push(p),d.ALT.call(this),this.recordingProdStack.pop()}),$4e}function Zct(e){return e===0?"":`${e}`}function Ise(e){if(e<0||e>YPr){let r=Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${YPr+1}`);throw r.KNOWN_RECORDER_ERROR=!0,r}}function NUr(e,r){r.forEach((i)=>{let a=i.prototype;Object.getOwnPropertyNames(a).forEach((o)=>{if(o==="constructor")return;let l=Object.getOwnPropertyDescriptor(a,o);if(l&&(l.get||l.set))Object.defineProperty(e.prototype,o,l);else e.prototype[o]=i.prototype[o]})})}function Jct(e=void 0){return function(){return e}}function LUr(e,r){var i=-1,a=e==null?0:e.length,o=Array(a);while(++i-1}function zUr(e,r){var i=this.__data__,a=U4e(i,e);if(a<0)++this.size,i.push([e,r]);else i[a][1]=r;return this}function sF(e){var r=-1,i=e==null?0:e.length;this.clear();while(++rd))return!1;var m=l.get(e),y=l.get(r);if(m&&y)return m==r&&y==e;var v=-1,w=!0,T=i&bgi?new EGr:void 0;l.set(e,r),l.set(r,e);while(++v-1&&e%1==0&&e-1&&e%1==0&&e<=Zgi}function qGr(e){return xY(e)&&Eht(e.length)&&!!$d[BY(e)]}function YGr(e){return function(r){return e(r)}}function jGr(e,r){var i=kv(e),a=!i&&H4e(e),o=!i&&!a&&UCe(e),l=!i&&!a&&!o&&wht(e),h=i||a||o||l,d=h?Ggi(e.length,String):[],p=d.length;for(var m in e)if((r||Rmi.call(e,m))&&!(h&&(m=="length"||o&&(m=="offset"||m=="parent")||l&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||VGr(m,p))))d.push(m);return d}function KGr(e){var r=e&&e.constructor,i=typeof r=="function"&&r.prototype||Omi;return e===i}function QGr(e,r){return function(i){return e(r(i))}}function ZGr(e){if(!XGr(e))return Mmi(e);var r=[];for(var i in Object(e))if(Pmi.call(e,i)&&i!="constructor")r.push(i);return r}function ezr(e){return e!=null&&Eht(e.length)&&!eGr(e)}function tzr(e){return q4e(e)?Imi(e):JGr(e)}function rzr(e){return Dgi(e,Sht,Ugi)}function nzr(e,r,i,a,o,l){var h=i&Bmi,d=iBr(e),p=d.length,m=iBr(r),y=m.length;if(p!=y&&!h)return!1;var v=p;while(v--){var w=d[v];if(!(h?w in r:$mi.call(r,w)))return!1}var T=l.get(e),x=l.get(r);if(T&&x)return T==r&&x==e;var k=!0;l.set(e,r),l.set(r,e);var A=h;while(++vRht(e,r,h));return dF(e,r,a,i,...o)}function Xzr(e,r,i){let a=um(e,r,i,{type:W7});AI(e,a);let o=dF(e,r,a,i,K7(e,r,i));return Qzr(e,r,i,o)}function K7(e,r,i){let a=F1i(wI(i.definition,(o)=>Rht(e,r,o)),(o)=>o!==void 0);if(a.length===1)return a[0];else if(a.length===0)return;else return Jzr(e,a)}function Iht(e,r,i,a,o){let{left:l,right:h}=a,d=um(e,r,i,{type:V1i});AI(e,d);let p=um(e,r,i,{type:Gzr});if(l.loopback=d,p.loopback=d,e.decisionMap[nF(r,o?"RepetitionMandatoryWithSeparator":"RepetitionMandatory",i.idx)]=d,M0(h,d),o===void 0)M0(d,l),M0(d,p);else M0(d,p),M0(d,o.left),M0(o.right,l);return{left:l,right:p}}function Oht(e,r,i,a,o){let{left:l,right:h}=a,d=um(e,r,i,{type:z1i});AI(e,d);let p=um(e,r,i,{type:Gzr}),m=um(e,r,i,{type:G1i});if(d.loopback=m,p.loopback=m,M0(d,l),M0(d,p),M0(h,m),o!==void 0)M0(m,p),M0(m,o.left),M0(o.right,l);else M0(m,d);return e.decisionMap[nF(r,o?"RepetitionWithSeparator":"Repetition",i.idx)]=d,{left:d,right:p}}function Qzr(e,r,i,a){let{left:o,right:l}=a;return M0(o,l),e.decisionMap[nF(r,"Option",i.idx)]=o,a}function AI(e,r){return e.decisionStates.push(r),r.decision=e.decisionStates.length-1,r.decision}function dF(e,r,i,a,...o){let l=um(e,r,a,{type:U1i,start:i});i.end=l;for(let d of o)if(d!==void 0)M0(i,d.left),M0(d.right,l);else M0(i,l);let h={left:i,right:l};return e.decisionMap[nF(r,Zzr(a),a.idx)]=i,h}function Zzr(e){if(e instanceof h2)return"Alternation";else if(e instanceof eb)return"Option";else if(e instanceof qp)return"Repetition";else if(e instanceof u2)return"RepetitionWithSeparator";else if(e instanceof nw)return"RepetitionMandatory";else if(e instanceof iw)return"RepetitionMandatoryWithSeparator";else throw Error("Invalid production type encountered")}function Jzr(e,r){let i=r.length;for(let l=0;li.stateNumber.toString()).join("_")}`}function nVr(e,r,i){var a=-1,o=e.length;while(++a0&&i(d))if(r>1)Lht(d,r-1,i,a,o);else OGr(o,d);else if(!a)o[o.length]=d}return o}function lVr(e,r){return oVr(wI(e,r),1)}function cVr(e,r,i,a){var o=e.length,l=i+(a?1:-1);while(a?l--:++l-1}function pVr(e,r,i){var a=-1,o=e==null?0:e.length;while(++a=abi){var m=r?null:ibi(e);if(m)return _ht(m);h=!1,o=TGr,p=new EGr}else p=r?[]:d;e:while(++a{let o=a.toString(),l=i[o];if(l!==void 0)return l;else return l={atnStartState:e,decision:r,states:{}},i[o]=l,l}}function aut(e,r=!0){let i=new Set;for(let a of e){let o=new Set;for(let l of a){if(l===void 0)if(r)break;else return!1;let h=[l.tokenTypeIdx].concat(l.categoryMatches);for(let d of h)if(i.has(d)){if(!o.has(d))return!1}else i.add(d),o.add(d)}}return!0}function AVr(e){let r=new Map;for(let i of e.states)for(let a of i.transitions)if(a instanceof Z4e){let o=r.get(a.rule);if(o===void 0)o=[],r.set(a.rule,o);o.push(a.followState)}return r}function sut(e,r){let i=new Set,a=new Set,o=[e];while(o.length>0){let l=o.shift();if(a.has(l))continue;if(a.add(l),l.type===hF){if(r!==void 0){let h=r.get(l.rule);if(h!==void 0)o.push(...h)}continue}for(let h of l.transitions)if(h instanceof Q4e){i.add(h.tokenType.tokenTypeIdx);for(let d of h.tokenType.categoryMatches)i.add(d)}else o.push(h.target)}return i}function RVr(e,r,i){let a=r==="RepetitionMandatoryWithSeparator",o=e.transitions[a?1:0],l=e.transitions[a?0:1];if(o===void 0||l===void 0)return!1;let h=sut(o.target),d=sut(l.target,i);for(let p of h)if(d.has(p))return!0;return!1}function IVr(e){let r=e.decisionStates.length,i=Array(r);for(let a=0;aeF(o)).join(", "),i=e.production.idx===0?"":e.production.idx,a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(", ")}> in <${DVr(e.production)}${i}> inside <${e.topLevelRule.name}> Rule, <${r}> may appears as a prefix path in all these alternatives. `;return a=a+`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,a}function IVr(e){if(e instanceof xv)return"SUBRULE";else if(e instanceof eb)return"OPTION";else if(e instanceof h2)return"OR";else if(e instanceof nw)return"AT_LEAST_ONE";else if(e instanceof iw)return"AT_LEAST_ONE_SEP";else if(e instanceof u2)return"MANY_SEP";else if(e instanceof qp)return"MANY";else if(e instanceof Ud)return"CONSUME";else throw Error("non exhaustive match")}function OVr(e,r,i){let a=z1i(r.configs.elements,(l)=>l.state.transitions),o=tbi(a.filter((l)=>l instanceof j4e).map((l)=>l.tokenType),(l)=>l.tokenTypeIdx);return{actualToken:i,possibleTokenTypes:o,tokenPath:e}}function NVr(e,r){return e.edges[r.tokenTypeIdx]}function LVr(e,r,i){let a=new tut,o=[];for(let h of e.elements){if(i.is(h.alt)===!1)continue;if(h.state.type===cF){o.push(h);continue}let d=h.state.transitions.length;for(let p=0;p0&&!FVr(l))for(let h of o)l.add(h);return l}function MVr(e,r){if(e instanceof j4e&&N4e(r,e.tokenType))return e.target;return}function DVr(e,r){let i;for(let a of e.elements)if(r.is(a.alt)===!0){if(i===void 0)i=a.alt;else if(i!==a.alt)return}return i}function Oht(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function iut(e,r,i,a){return a=Nht(e,a),r.edges[i.tokenTypeIdx]=a,a}function Nht(e,r){if(r===FCe)return r;let i=r.configs.key,a=e.states[i];if(a!==void 0)return a;return r.configs.finalize(),e.states[i]=r,r}function PVr(e){let r=new tut,i=e.transitions.length;for(let a=0;a0){let o=[...e.stack],h={state:o.pop(),alt:e.alt,stack:o};Ose(h,r)}else r.add(e);return}if(!i.epsilonOnlyTransitions)r.add(e);let a=i.transitions.length;for(let o=0;o1)return!0;return!1}function VVr(e){for(let r of Array.from(e.values()))if(Object.keys(r).length===1)return!0;return!1}function HVr(e,r){let i=void 0;for(let a of e.configs.elements){if(r.is(a.alt)===!1||a.state.type===cF)continue;if(i===void 0)i=a.alt;else if(i!==a.alt)return}return i}function qB(e){return e|0}function vCe(e){return e.$type===aut}function Mht(e,r,i){return JVr({parser:r,tokens:i,ruleNames:new Map},e),r}function JVr(e,r){let i=Vut(r,!1),a=Ef(r.rules).filter(X3).filter((l)=>i.has(l));for(let l of a){let h={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(l,Y7(h,l.definition))}let o=Ef(r.rules).filter(wse).filter((l)=>i.has(l));for(let l of o)e.parser.rule(l,eHr(e,l))}function eHr(e,r){let i=r.call.rule.ref;if(!i)throw Error("Could not resolve reference to infix operator rule: "+r.call.rule.$refText);if(Q3(i))throw Error("Cannot use terminal rule in infix expression");let a=r.operators.precedences.flatMap((T)=>T.operators),o={$type:"Group",elements:[]},l={$container:o,$type:"Assignment",feature:"parts",operator:"+=",terminal:r.call},h={$container:o,$type:"Group",elements:[],cardinality:"*"};o.elements.push(l,h);let p={$container:h,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:a}},m={...l,$container:h};h.elements.push(p,m);let E=a.map((T)=>e.tokens[T.value]).map((T,x)=>({ALT:ee(()=>e.parser.consume(x,T,p),"ALT")})),w;return(T)=>{w??(w=Z4e(e,i)),e.parser.subrule(0,w,!1,l,T),e.parser.many(0,{DEF:ee(()=>{e.parser.alternatives(0,E),e.parser.subrule(1,w,!1,m,T)},"DEF")})}}function Y7(e,r,i=!1){let a;if(V7(r))a=oHr(e,r);else if(Use(r))a=tHr(e,r);else if(z7(r))a=Y7(e,r.terminal);else if(Gse(r))a=Dht(e,r);else if(H7(r))a=rHr(e,r);else if(Fut(r))a=iHr(e,r);else if(Gut(r))a=aHr(e,r);else if(x4e(r))a=sHr(e,r);else if(rFr(r)){let o=e.consume++;a=ee(()=>e.parser.consume(o,wI,r),"method")}else throw new wFr(r.$cstNode,`Unexpected element type: ${r.$type}`);return Pht(e,i?void 0:Nse(r),a,r.cardinality)}function tHr(e,r){let i=_Y(r);return()=>e.parser.action(i,r)}function rHr(e,r){let i=r.rule.ref;if(xY(i)){let a=e.subrule++,o=X3(i)&&i.fragment,l=r.arguments.length>0?nHr(i,r.arguments):()=>({}),h;return(d)=>{h??(h=Z4e(e,i)),e.parser.subrule(a,h,o,r,l(d))}}else if(Q3(i)){let a=e.consume++,o=$Ce(e,i.name);return()=>e.parser.consume(a,o,r)}else if(!i)throw new wFr(r.$cstNode,`Undefined rule: ${r.rule.$refText}`);else CY(i)}function nHr(e,r){if(r.some((a)=>a.calledByName)){let a=r.map((o)=>({parameterName:o.parameter?.ref?.name,predicate:$C(o.value)}));return(o)=>{let l={};for(let{parameterName:h,predicate:d}of a)if(h)l[h]=d(o);return l}}else{let a=r.map((o)=>$C(o.value));return(o)=>{let l={};for(let h=0;hr(a)||i(a)}else if(eFr(e)){let r=$C(e.left),i=$C(e.right);return(a)=>r(a)&&i(a)}else if(aFr(e)){let r=$C(e.value);return(i)=>!r(i)}else if(sFr(e)){let r=e.parameter.ref.name;return(i)=>i!==void 0&&i[r]===!0}else if(ZBr(e)){let r=Boolean(e.true);return()=>r}CY(e)}function iHr(e,r){if(r.elements.length===1)return Y7(e,r.elements[0]);else{let i=[];for(let o of r.elements){let l={ALT:Y7(e,o,!0)},h=Nse(o);if(h)l.GATE=$C(h);i.push(l)}let a=e.or++;return(o)=>e.parser.alternatives(a,i.map((l)=>{let h={ALT:ee(()=>l.ALT(o),"ALT")},d=l.GATE;if(d)h.GATE=()=>d(o);return h}))}}function aHr(e,r){if(r.elements.length===1)return Y7(e,r.elements[0]);let i=[];for(let d of r.elements){let p={ALT:Y7(e,d,!0)},m=Nse(d);if(m)p.GATE=$C(m);i.push(p)}let a=e.or++,o=ee((d,p)=>{let m=p.getRuleStack().join("-");return`uGroup_${d}_${m}`},"idFunc"),l=ee((d)=>e.parser.alternatives(a,i.map((p,m)=>{let y={ALT:ee(()=>!0,"ALT")},E=e.parser;y.ALT=()=>{if(p.ALT(d),!E.isRecording()){let T=o(a,E);if(!E.unorderedGroups.get(T))E.unorderedGroups.set(T,[]);let x=E.unorderedGroups.get(T);if(typeof x?.[m]>"u")x[m]=!0}};let w=p.GATE;if(w)y.GATE=()=>w(d);else y.GATE=()=>!E.unorderedGroups.get(o(a,E))?.[m];return y})),"alternatives"),h=Pht(e,Nse(r),l,"*");return(d)=>{if(h(d),!e.parser.isRecording())e.parser.unorderedGroups.delete(o(a,e.parser))}}function sHr(e,r){let i=r.elements.map((a)=>Y7(e,a));return(a)=>i.forEach((o)=>o(a))}function Nse(e){if(x4e(e))return e.guardCondition;return}function Dht(e,r,i=r.terminal){if(!i){if(!r.type.ref)throw Error("Could not resolve reference to type: "+r.type.$refText);let o=Yut(r.type.ref)?.terminal;if(!o)throw Error("Could not find name assignment for type: "+_Y(r.type.ref));return Dht(e,r,o)}else if(H7(i)&&X3(i.rule.ref)){let a=i.rule.ref,o=e.subrule++,l;return(h)=>{l??(l=Z4e(e,a)),e.parser.subrule(o,l,!1,r,h)}}else if(H7(i)&&Q3(i.rule.ref)){let a=e.consume++,o=$Ce(e,i.rule.ref.name);return()=>e.parser.consume(a,o,r)}else if(V7(i)){let a=e.consume++,o=$Ce(e,i.value);return()=>e.parser.consume(a,o,r)}else throw Error("Could not build cross reference parser")}function oHr(e,r){let i=e.consume++,a=e.tokens[r.value];if(!a)throw Error("Could not find token for keyword: "+r.value);return()=>e.parser.consume(i,a,r)}function Pht(e,r,i,a){let o=r&&$C(r);if(!a)if(o){let l=e.or++;return(h)=>e.parser.alternatives(l,[{ALT:ee(()=>i(h),"ALT"),GATE:ee(()=>o(h),"GATE")},{ALT:Xct(),GATE:ee(()=>!o(h),"GATE")}])}else return i;if(a==="*"){let l=e.many++;return(h)=>e.parser.many(l,{DEF:ee(()=>i(h),"DEF"),GATE:o?()=>o(h):void 0})}else if(a==="+"){let l=e.many++;if(o){let h=e.or++;return(d)=>e.parser.alternatives(h,[{ALT:ee(()=>e.parser.atLeastOne(l,{DEF:ee(()=>i(d),"DEF")}),"ALT"),GATE:ee(()=>o(d),"GATE")},{ALT:Xct(),GATE:ee(()=>!o(d),"GATE")}])}else return(h)=>e.parser.atLeastOne(l,{DEF:ee(()=>i(h),"DEF")})}else if(a==="?"){let l=e.optional++;return(h)=>e.parser.optional(l,{DEF:ee(()=>i(h),"DEF"),GATE:o?()=>o(h):void 0})}else CY(a)}function Z4e(e,r){let i=lHr(e,r),a=e.parser.getRule(i);if(!a)throw Error(`Rule "${i}" not found."`);return a}function lHr(e,r){if(xY(r))return r.name;else if(e.ruleNames.has(r))return e.ruleNames.get(r);else{let i=r,a=i.$container,o=r.$type;while(!X3(a)){if(x4e(a)||Fut(a)||Gut(a))o=a.elements.indexOf(i).toString()+":"+o;i=a,a=a.$container}return o=a.name+":"+o,e.ruleNames.set(r,o),o}}function $Ce(e,r){let i=e.tokens[r];if(!i)throw Error(`Token "${r}" not found."`);return i}function cHr(e){let r=e.Grammar,i=e.parser.Lexer,a=new gbi(e);return Mht(r,a,i.definition),a.finalize(),a}function uHr(e){let r=hHr(e);return r.finalize(),r}function hHr(e){let r=e.Grammar,i=e.parser.Lexer,a=new fbi(e);return Mht(r,a,i.definition)}function pHr(){return new Promise((e)=>{if(typeof setImmediate>"u")setTimeout(e,0);else setImmediate(e)})}function gHr(){return _Ce=performance.now(),new op.CancellationTokenSource}function qse(e){return e===fY}async function cy(e){if(e===op.CancellationToken.None)return;let r=performance.now();if(r-_Ce>=ybi)_Ce=r,await pHr(),_Ce=performance.now();if(e.isCancellationRequested)throw fY}function UCe(e,r){if(e.length<=1)return e;let i=e.length/2|0,a=e.slice(0,i),o=e.slice(i);UCe(a,r),UCe(o,r);let l=0,h=0,d=0;while(li.line||r.line===i.line&&r.character>i.character)return{start:i,end:r};return e}function mHr(e){let r=$ht(e.range);if(r!==e.range)return{newText:e.newText,range:r};return e}function yHr(e){return typeof e.name==="string"}function _Hr(e){return typeof e.$comment==="string"}function lut(e){return typeof e==="object"&&!!e&&(("$ref"in e)||("$refs"in e)||("$error"in e))}function pY(e){return{code:e}}function EHr(e){if(e.range)return e.range;let r;if(typeof e.property==="string")r=qut(e.node.$cstNode,e.property,e.index);else if(typeof e.keyword==="string")r=NFr(e.node.$cstNode,e.keyword,e.index);if(r??(r=e.node.$cstNode),!r)return{start:{line:0,character:0},end:{line:0,character:0}};return r.range}function ECe(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw Error("Invalid diagnostic severity: "+e)}}function wHr(e){switch(e){case"error":return pY(UC.LexingError);case"warning":return pY(UC.LexingWarning);case"info":return pY(UC.LexingInfo);case"hint":return pY(UC.LexingHint);default:throw Error("Invalid diagnostic severity: "+e)}}function SHr(e){return Array.isArray(e)&&(e.length===0||("name"in e[0]))}function Uht(e){return e&&"modes"in e&&"defaultMode"in e}function uut(e){return!SHr(e)&&!Uht(e)}function THr(e,r,i){let a,o;if(typeof e==="string")o=r,a=i;else o=e.range.start,a=r;if(!o)o=Th.create(0,0);let l=Ght(e),h=J4e(a),d=CHr({lines:l,position:o,options:h});return RHr({index:0,tokens:d,position:o})}function xHr(e,r){let i=J4e(r),a=Ght(e);if(a.length===0)return!1;let o=a[0],l=a[a.length-1],{start:h,end:d}=i;return Boolean(h?.exec(o))&&Boolean(d?.exec(l))}function Ght(e){let r="";if(typeof e==="string")r=e;else r=e.text;return r.split(mpi)}function CHr(e){let r=[],i=e.position.line,a=e.position.character;for(let o=0;o=d.length){if(r.length>0){let y=Th.create(i,a);r.push({type:"break",content:"",range:$c.create(y,y)})}}else{bBr.lastIndex=p;let y=bBr.exec(d);if(y){let E=y[0],w=y[1],T=Th.create(i,a+p),x=Th.create(i,a+p+E.length);r.push({type:"tag",content:w,range:$c.create(T,x)}),p+=E.length,p=GCe(d,p)}if(p0&&r[r.length-1].type==="break")return r.slice(0,-1);return r}function kHr(e,r,i,a){let o=[];if(e.length===0){let l=Th.create(i,a),h=Th.create(i,a+r.length);o.push({type:"text",content:r,range:$c.create(l,h)})}else{let l=0;for(let d of e){let p=d.index,m=r.substring(l,p);if(m.length>0)o.push({type:"text",content:r.substring(l,p),range:$c.create(Th.create(i,l+a),Th.create(i,p+a))});let y=m.length+1,E=d[1];if(o.push({type:"inline-tag",content:E,range:$c.create(Th.create(i,l+y+a),Th.create(i,l+y+E.length+a))}),y+=E.length,d.length===4){y+=d[2].length;let w=d[3];o.push({type:"text",content:w,range:$c.create(Th.create(i,l+y+a),Th.create(i,l+y+w.length+a))})}else o.push({type:"text",content:"",range:$c.create(Th.create(i,l+y+a),Th.create(i,l+y+a))});l=p+d[0].length}let h=r.substring(l);if(h.length>0)o.push({type:"text",content:h,range:$c.create(Th.create(i,l+a),Th.create(i,l+a+h.length))})}return o}function GCe(e,r){let i=e.substring(r).match(Xbi);if(i)return r+i.index;else return e.length}function AHr(e){let r=e.match(Qbi);if(r&&typeof r.index==="number")return r.index;return}function RHr(e){let r=Th.create(e.position.line,e.position.character);if(e.tokens.length===0)return new yBr([],$c.create(r,r));let i=[];while(e.index0){let h=GCe(r,a);o=r.substring(h),r=r.substring(0,a)}if(e==="linkcode"||e==="link"&&i.link==="code")o=`\`${o}\``;return i.renderLink?.(r,o)??MHr(r,o)}return}function MHr(e,r){try{return rw.parse(e,!0),`[${r}](${e})`}catch{return e}}function dut(e){if(e.endsWith(` +For Further details.`,a}function DVr(e){if(e instanceof xv)return"SUBRULE";else if(e instanceof eb)return"OPTION";else if(e instanceof h2)return"OR";else if(e instanceof nw)return"AT_LEAST_ONE";else if(e instanceof iw)return"AT_LEAST_ONE_SEP";else if(e instanceof u2)return"MANY_SEP";else if(e instanceof qp)return"MANY";else if(e instanceof Ud)return"CONSUME";else throw Error("non exhaustive match")}function PVr(e,r,i){let a=j1i(r.configs.elements,(l)=>l.state.transitions),o=obi(a.filter((l)=>l instanceof Q4e).map((l)=>l.tokenType),(l)=>l.tokenTypeIdx);return{actualToken:i,possibleTokenTypes:o,tokenPath:e}}function BVr(e,r){return e.edges[r.tokenTypeIdx]}function FVr(e,r,i){let a=new iut,o=[];for(let h of e.elements){if(i.is(h.alt)===!1)continue;if(h.state.type===hF){o.push(h);continue}let d=h.state.transitions.length;for(let p=0;p0&&!VVr(l))for(let h of o)l.add(h);return l}function $Vr(e,r){if(e instanceof Q4e&&D4e(r,e.tokenType))return e.target;return}function UVr(e,r){let i;for(let a of e.elements)if(r.is(a.alt)===!0){if(i===void 0)i=a.alt;else if(i!==a.alt)return}return i}function Mht(e){return{configs:e,edges:{},isAcceptState:!1,prediction:-1}}function out(e,r,i,a){return a=Dht(e,a),r.edges[i.tokenTypeIdx]=a,a}function Dht(e,r){if(r===GCe)return r;let i=r.configs.key,a=e.states[i];if(a!==void 0)return a;return r.configs.finalize(),e.states[i]=r,r}function GVr(e){let r=new iut,i=e.transitions.length;for(let a=0;a0){let o=[...e.stack],h={state:o.pop(),alt:e.alt,stack:o};Mse(h,r)}else r.add(e);return}if(!i.epsilonOnlyTransitions)r.add(e);let a=i.transitions.length;for(let o=0;o1)return!0;return!1}function jVr(e){for(let r of Array.from(e.values()))if(Object.keys(r).length===1)return!0;return!1}function KVr(e,r){let i=void 0;for(let a of e.configs.elements){if(r.is(a.alt)===!1||a.state.type===hF)continue;if(i===void 0)i=a.alt;else if(i!==a.alt)return}return i}function WB(e){return e|0}function wCe(e){return e.$type===lut}function Bht(e,r,i){return iHr({parser:r,tokens:i,ruleNames:new Map},e),r}function iHr(e,r){let i=Yut(r,!1),a=Ef(r.rules).filter(Q3).filter((l)=>i.has(l));for(let l of a){let h={...e,consume:1,optional:1,subrule:1,many:1,or:1};e.parser.rule(l,j7(h,l.definition))}let o=Ef(r.rules).filter(xse).filter((l)=>i.has(l));for(let l of o)e.parser.rule(l,aHr(e,l))}function aHr(e,r){let i=r.call.rule.ref;if(!i)throw Error("Could not resolve reference to infix operator rule: "+r.call.rule.$refText);if(Z3(i))throw Error("Cannot use terminal rule in infix expression");let a=r.operators.precedences.flatMap((T)=>T.operators),o={$type:"Group",elements:[]},l={$container:o,$type:"Assignment",feature:"parts",operator:"+=",terminal:r.call},h={$container:o,$type:"Group",elements:[],cardinality:"*"};o.elements.push(l,h);let p={$container:h,$type:"Assignment",feature:"operators",operator:"+=",terminal:{$type:"Alternatives",elements:a}},m={...l,$container:h};h.elements.push(p,m);let v=a.map((T)=>e.tokens[T.value]).map((T,x)=>({ALT:te(()=>e.parser.consume(x,T,p),"ALT")})),w;return(T)=>{w??(w=tke(e,i)),e.parser.subrule(0,w,!1,l,T),e.parser.many(0,{DEF:te(()=>{e.parser.alternatives(0,v),e.parser.subrule(1,w,!1,m,T)},"DEF")})}}function j7(e,r,i=!1){let a;if(q7(r))a=dHr(e,r);else if(Vse(r))a=sHr(e,r);else if(H7(r))a=j7(e,r.terminal);else if(Hse(r))a=Fht(e,r);else if(Y7(r))a=oHr(e,r);else if(Gut(r))a=cHr(e,r);else if(Hut(r))a=uHr(e,r);else if(A4e(r))a=hHr(e,r);else if(oFr(r)){let o=e.consume++;a=te(()=>e.parser.consume(o,xI,r),"method")}else throw new kFr(r.$cstNode,`Unexpected element type: ${r.$type}`);return $ht(e,i?void 0:Dse(r),a,r.cardinality)}function sHr(e,r){let i=SY(r);return()=>e.parser.action(i,r)}function oHr(e,r){let i=r.rule.ref;if(AY(i)){let a=e.subrule++,o=Q3(i)&&i.fragment,l=r.arguments.length>0?lHr(i,r.arguments):()=>({}),h;return(d)=>{h??(h=tke(e,i)),e.parser.subrule(a,h,o,r,l(d))}}else if(Z3(i)){let a=e.consume++,o=zCe(e,i.name);return()=>e.parser.consume(a,o,r)}else if(!i)throw new kFr(r.$cstNode,`Undefined rule: ${r.rule.$refText}`);else RY(i)}function lHr(e,r){if(r.some((a)=>a.calledByName)){let a=r.map((o)=>({parameterName:o.parameter?.ref?.name,predicate:GC(o.value)}));return(o)=>{let l={};for(let{parameterName:h,predicate:d}of a)if(h)l[h]=d(o);return l}}else{let a=r.map((o)=>GC(o.value));return(o)=>{let l={};for(let h=0;hr(a)||i(a)}else if(aFr(e)){let r=GC(e.left),i=GC(e.right);return(a)=>r(a)&&i(a)}else if(uFr(e)){let r=GC(e.value);return(i)=>!r(i)}else if(hFr(e)){let r=e.parameter.ref.name;return(i)=>i!==void 0&&i[r]===!0}else if(nFr(e)){let r=Boolean(e.true);return()=>r}RY(e)}function cHr(e,r){if(r.elements.length===1)return j7(e,r.elements[0]);else{let i=[];for(let o of r.elements){let l={ALT:j7(e,o,!0)},h=Dse(o);if(h)l.GATE=GC(h);i.push(l)}let a=e.or++;return(o)=>e.parser.alternatives(a,i.map((l)=>{let h={ALT:te(()=>l.ALT(o),"ALT")},d=l.GATE;if(d)h.GATE=()=>d(o);return h}))}}function uHr(e,r){if(r.elements.length===1)return j7(e,r.elements[0]);let i=[];for(let d of r.elements){let p={ALT:j7(e,d,!0)},m=Dse(d);if(m)p.GATE=GC(m);i.push(p)}let a=e.or++,o=te((d,p)=>{let m=p.getRuleStack().join("-");return`uGroup_${d}_${m}`},"idFunc"),l=te((d)=>e.parser.alternatives(a,i.map((p,m)=>{let y={ALT:te(()=>!0,"ALT")},v=e.parser;y.ALT=()=>{if(p.ALT(d),!v.isRecording()){let T=o(a,v);if(!v.unorderedGroups.get(T))v.unorderedGroups.set(T,[]);let x=v.unorderedGroups.get(T);if(typeof x?.[m]>"u")x[m]=!0}};let w=p.GATE;if(w)y.GATE=()=>w(d);else y.GATE=()=>!v.unorderedGroups.get(o(a,v))?.[m];return y})),"alternatives"),h=$ht(e,Dse(r),l,"*");return(d)=>{if(h(d),!e.parser.isRecording())e.parser.unorderedGroups.delete(o(a,e.parser))}}function hHr(e,r){let i=r.elements.map((a)=>j7(e,a));return(a)=>i.forEach((o)=>o(a))}function Dse(e){if(A4e(e))return e.guardCondition;return}function Fht(e,r,i=r.terminal){if(!i){if(!r.type.ref)throw Error("Could not resolve reference to type: "+r.type.$refText);let o=Kut(r.type.ref)?.terminal;if(!o)throw Error("Could not find name assignment for type: "+SY(r.type.ref));return Fht(e,r,o)}else if(Y7(i)&&Q3(i.rule.ref)){let a=i.rule.ref,o=e.subrule++,l;return(h)=>{l??(l=tke(e,a)),e.parser.subrule(o,l,!1,r,h)}}else if(Y7(i)&&Z3(i.rule.ref)){let a=e.consume++,o=zCe(e,i.rule.ref.name);return()=>e.parser.consume(a,o,r)}else if(q7(i)){let a=e.consume++,o=zCe(e,i.value);return()=>e.parser.consume(a,o,r)}else throw Error("Could not build cross reference parser")}function dHr(e,r){let i=e.consume++,a=e.tokens[r.value];if(!a)throw Error("Could not find token for keyword: "+r.value);return()=>e.parser.consume(i,a,r)}function $ht(e,r,i,a){let o=r&&GC(r);if(!a)if(o){let l=e.or++;return(h)=>e.parser.alternatives(l,[{ALT:te(()=>i(h),"ALT"),GATE:te(()=>o(h),"GATE")},{ALT:Jct(),GATE:te(()=>!o(h),"GATE")}])}else return i;if(a==="*"){let l=e.many++;return(h)=>e.parser.many(l,{DEF:te(()=>i(h),"DEF"),GATE:o?()=>o(h):void 0})}else if(a==="+"){let l=e.many++;if(o){let h=e.or++;return(d)=>e.parser.alternatives(h,[{ALT:te(()=>e.parser.atLeastOne(l,{DEF:te(()=>i(d),"DEF")}),"ALT"),GATE:te(()=>o(d),"GATE")},{ALT:Jct(),GATE:te(()=>!o(d),"GATE")}])}else return(h)=>e.parser.atLeastOne(l,{DEF:te(()=>i(h),"DEF")})}else if(a==="?"){let l=e.optional++;return(h)=>e.parser.optional(l,{DEF:te(()=>i(h),"DEF"),GATE:o?()=>o(h):void 0})}else RY(a)}function tke(e,r){let i=fHr(e,r),a=e.parser.getRule(i);if(!a)throw Error(`Rule "${i}" not found."`);return a}function fHr(e,r){if(AY(r))return r.name;else if(e.ruleNames.has(r))return e.ruleNames.get(r);else{let i=r,a=i.$container,o=r.$type;while(!Q3(a)){if(A4e(a)||Gut(a)||Hut(a))o=a.elements.indexOf(i).toString()+":"+o;i=a,a=a.$container}return o=a.name+":"+o,e.ruleNames.set(r,o),o}}function zCe(e,r){let i=e.tokens[r];if(!i)throw Error(`Token "${r}" not found."`);return i}function pHr(e){let r=e.Grammar,i=e.parser.Lexer,a=new Ebi(e);return Bht(r,a,i.definition),a.finalize(),a}function gHr(e){let r=mHr(e);return r.finalize(),r}function mHr(e){let r=e.Grammar,i=e.parser.Lexer,a=new vbi(e);return Bht(r,a,i.definition)}function vHr(){return new Promise((e)=>{if(typeof setImmediate>"u")setTimeout(e,0);else setImmediate(e)})}function _Hr(){return SCe=performance.now(),new op.CancellationTokenSource}function jse(e){return e===mY}async function cy(e){if(e===op.CancellationToken.None)return;let r=performance.now();if(r-SCe>=Tbi)SCe=r,await vHr(),SCe=performance.now();if(e.isCancellationRequested)throw mY}function VCe(e,r){if(e.length<=1)return e;let i=e.length/2|0,a=e.slice(0,i),o=e.slice(i);VCe(a,r),VCe(o,r);let l=0,h=0,d=0;while(li.line||r.line===i.line&&r.character>i.character)return{start:i,end:r};return e}function EHr(e){let r=zht(e.range);if(r!==e.range)return{newText:e.newText,range:r};return e}function SHr(e){return typeof e.name==="string"}function xHr(e){return typeof e.$comment==="string"}function hut(e){return typeof e==="object"&&!!e&&(("$ref"in e)||("$refs"in e)||("$error"in e))}function bY(e){return{code:e}}function CHr(e){if(e.range)return e.range;let r;if(typeof e.property==="string")r=jut(e.node.$cstNode,e.property,e.index);else if(typeof e.keyword==="string")r=BFr(e.node.$cstNode,e.keyword,e.index);if(r??(r=e.node.$cstNode),!r)return{start:{line:0,character:0},end:{line:0,character:0}};return r.range}function TCe(e){switch(e){case"error":return 1;case"warning":return 2;case"info":return 3;case"hint":return 4;default:throw Error("Invalid diagnostic severity: "+e)}}function kHr(e){switch(e){case"error":return bY(zC.LexingError);case"warning":return bY(zC.LexingWarning);case"info":return bY(zC.LexingInfo);case"hint":return bY(zC.LexingHint);default:throw Error("Invalid diagnostic severity: "+e)}}function AHr(e){return Array.isArray(e)&&(e.length===0||("name"in e[0]))}function Vht(e){return e&&"modes"in e&&"defaultMode"in e}function fut(e){return!AHr(e)&&!Vht(e)}function RHr(e,r,i){let a,o;if(typeof e==="string")o=r,a=i;else o=e.range.start,a=r;if(!o)o=Th.create(0,0);let l=Hht(e),h=rke(a),d=OHr({lines:l,position:o,options:h});return MHr({index:0,tokens:d,position:o})}function IHr(e,r){let i=rke(r),a=Hht(e);if(a.length===0)return!1;let o=a[0],l=a[a.length-1],{start:h,end:d}=i;return Boolean(h?.exec(o))&&Boolean(d?.exec(l))}function Hht(e){let r="";if(typeof e==="string")r=e;else r=e.text;return r.split(wpi)}function OHr(e){let r=[],i=e.position.line,a=e.position.character;for(let o=0;o=d.length){if(r.length>0){let y=Th.create(i,a);r.push({type:"break",content:"",range:$c.create(y,y)})}}else{wBr.lastIndex=p;let y=wBr.exec(d);if(y){let v=y[0],w=y[1],T=Th.create(i,a+p),x=Th.create(i,a+p+v.length);r.push({type:"tag",content:w,range:$c.create(T,x)}),p+=v.length,p=HCe(d,p)}if(p0&&r[r.length-1].type==="break")return r.slice(0,-1);return r}function NHr(e,r,i,a){let o=[];if(e.length===0){let l=Th.create(i,a),h=Th.create(i,a+r.length);o.push({type:"text",content:r,range:$c.create(l,h)})}else{let l=0;for(let d of e){let p=d.index,m=r.substring(l,p);if(m.length>0)o.push({type:"text",content:r.substring(l,p),range:$c.create(Th.create(i,l+a),Th.create(i,p+a))});let y=m.length+1,v=d[1];if(o.push({type:"inline-tag",content:v,range:$c.create(Th.create(i,l+y+a),Th.create(i,l+y+v.length+a))}),y+=v.length,d.length===4){y+=d[2].length;let w=d[3];o.push({type:"text",content:w,range:$c.create(Th.create(i,l+y+a),Th.create(i,l+y+w.length+a))})}else o.push({type:"text",content:"",range:$c.create(Th.create(i,l+y+a),Th.create(i,l+y+a))});l=p+d[0].length}let h=r.substring(l);if(h.length>0)o.push({type:"text",content:h,range:$c.create(Th.create(i,l+a),Th.create(i,l+a+h.length))})}return o}function HCe(e,r){let i=e.substring(r).match(ryi);if(i)return r+i.index;else return e.length}function LHr(e){let r=e.match(nyi);if(r&&typeof r.index==="number")return r.index;return}function MHr(e){let r=Th.create(e.position.line,e.position.character);if(e.tokens.length===0)return new SBr([],$c.create(r,r));let i=[];while(e.index0){let h=HCe(r,a);o=r.substring(h),r=r.substring(0,a)}if(e==="linkcode"||e==="link"&&i.link==="code")o=`\`${o}\``;return i.renderLink?.(r,o)??$Hr(r,o)}return}function $Hr(e,r){try{return rw.parse(e,!0),`[${r}](${e})`}catch{return e}}function gut(e){if(e.endsWith(` `))return` `;else return` -`}function hu(e){return{documentation:{CommentProvider:ee((r)=>new Jbi(r),"CommentProvider"),DocumentationProvider:ee((r)=>new Zbi(r),"DocumentationProvider")},parser:{AsyncParser:ee((r)=>new eyi(r),"AsyncParser"),GrammarConfig:ee((r)=>zFr(r),"GrammarConfig"),LangiumParser:ee((r)=>uHr(r),"LangiumParser"),CompletionParser:ee((r)=>cHr(r),"CompletionParser"),ValueConverter:ee(()=>new fHr,"ValueConverter"),TokenBuilder:ee(()=>new dHr,"TokenBuilder"),Lexer:ee((r)=>new jbi(r),"Lexer"),ParserErrorMessageProvider:ee(()=>new QVr,"ParserErrorMessageProvider"),LexerErrorMessageProvider:ee(()=>new Ybi,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:ee(()=>new Ubi,"AstNodeLocator"),AstNodeDescriptionProvider:ee((r)=>new Fbi(r),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:ee((r)=>new $bi(r),"ReferenceDescriptionProvider")},references:{Linker:ee((r)=>new Tbi(r),"Linker"),NameProvider:ee(()=>new xbi,"NameProvider"),ScopeProvider:ee((r)=>new Nbi(r),"ScopeProvider"),ScopeComputation:ee((r)=>new kbi(r),"ScopeComputation"),References:ee((r)=>new Cbi(r),"References")},serializer:{Hydrator:ee((r)=>new ryi(r),"Hydrator"),JsonSerializer:ee((r)=>new Lbi(r),"JsonSerializer")},validation:{DocumentValidator:ee((r)=>new Bbi(r),"DocumentValidator"),ValidationRegistry:ee((r)=>new Dbi(r),"ValidationRegistry")},shared:ee(()=>e.shared,"shared")}}function du(e){return{ServiceRegistry:ee((r)=>new Mbi(r),"ServiceRegistry"),workspace:{LangiumDocuments:ee((r)=>new Ebi(r),"LangiumDocuments"),LangiumDocumentFactory:ee((r)=>new _bi(r),"LangiumDocumentFactory"),DocumentBuilder:ee((r)=>new Vbi(r),"DocumentBuilder"),IndexManager:ee((r)=>new Hbi(r),"IndexManager"),WorkspaceManager:ee((r)=>new qbi(r),"WorkspaceManager"),FileSystemProvider:ee((r)=>e.fileSystemProvider(r),"FileSystemProvider"),WorkspaceLock:ee(()=>new tyi,"WorkspaceLock"),ConfigurationProvider:ee((r)=>new zbi(r),"ConfigurationProvider")},profilers:{}}}function $o(e,r,i,a,o,l,h,d,p){let m=[e,r,i,a,o,l,h,d,p].reduce(SY,{});return qht(m)}function qht(e,r){let i=new Proxy({},{deleteProperty:ee(()=>!1,"deleteProperty"),set:ee(()=>{throw Error("Cannot set property on injected service container")},"set"),get:ee((a,o)=>{if(o===nyi)return!0;else return fut(a,o,e,r||i)},"get"),getOwnPropertyDescriptor:ee((a,o)=>(fut(a,o,e,r||i),Object.getOwnPropertyDescriptor(a,o)),"getOwnPropertyDescriptor"),has:ee((a,o)=>(o in e),"has"),ownKeys:ee(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return i}function fut(e,r,i,a){if(r in e){if(e[r]instanceof Error)throw Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[r]);if(e[r]===_Br)throw Error('Cycle detected. Please make "'+String(r)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[r]}else if(r in i){let o=i[r];e[r]=_Br;try{e[r]=typeof o==="function"?o(a):qht(o,a)}catch(l){throw e[r]=l instanceof Error?l:void 0,l}return e[r]}else return}function SY(e,r){if(r)for(let[i,a]of Object.entries(r)){if(i==="__proto__"||i==="constructor"||i==="prototype")continue;if(a!==void 0&&a!==null)if(typeof a==="object"){let o=e[i];if(typeof o==="object"&&o!==null)e[i]=SY(o,a);else e[i]=SY({},a)}else e[i]=a}return e}function PHr(){let e=$o(du(Du),syi),r=$o(hu({shared:e}),ayi);return e.ServiceRegistry.register(r),r}function uy(e){let r=PHr(),i=r.serializer.JsonSerializer.deserialize(e);return r.shared.workspace.LangiumDocumentFactory.fromModel(i,rw.parse(`memory:/${i.name??"grammar"}.langium`)),i}function Yht(e){return D0.isInstance(e,gT.$type)}function Wht(e){return D0.isInstance(e,mY.$type)}function jht(e){return D0.isInstance(e,O7.$type)}function Kht(e){return D0.isInstance(e,mI.$type)}function Xht(e){return D0.isInstance(e,bY.$type)}function Qht(e){return D0.isInstance(e,Mse.$type)}function Zht(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}function Yse(e){return D0.isInstance(e,uI.$type)}function Jht(e){return D0.isInstance(e,bI.$type)}function edt(e){return D0.isInstance(e,XB.$type)}function tdt(e){return D0.isInstance(e,N7.$type)}function rdt(e){return D0.isInstance(e,L7.$type)}function ndt(e){return D0.isInstance(e,M7.$type)}function idt(e){return D0.isInstance(e,yI.$type)}function adt(e){return D0.isInstance(e,yY.$type)}function sdt(e){return D0.isInstance(e,D7.$type)}function odt(e){return D0.isInstance(e,P7.$type)}function ldt(e){return D0.isInstance(e,B7.$type)}function cdt(e){return D0.isInstance(e,F7.$type)}function udt(e){return D0.isInstance(e,QB.$type)}function hdt(e){return D0.isInstance(e,$7.$type)}function ddt(e){return D0.isInstance(e,cm.$type)}var Ofi,Dse,Nfi,Rut,Lfi,Mfi,ee=(e,r)=>Dse(e,"name",{value:r,configurable:!0}),Dfi=(e,r)=>function(){return e&&(r=(0,e[Rut(e)[0]])(e=0)),r},Ul=(e,r)=>function(){return r||(0,e[Rut(e)[0]])((r={exports:{}}).exports,r),r.exports},Pfi=(e,r)=>{for(var i in r)Dse(e,i,{get:r[i],enumerable:!0})},UBr=(e,r,i,a)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Rut(r))if(!Mfi.call(e,o)&&o!==i)Dse(e,o,{get:()=>r[o],enumerable:!(a=Nfi(r,o))||a.enumerable})}return e},Iut=(e,r,i)=>(i=e!=null?Ofi(Lfi(e)):{},UBr(r||!e||!e.__esModule?Dse(i,"default",{value:e,enumerable:!0}):i,e)),Out=(e)=>UBr(Dse({},"__esModule",{value:!0}),e),Pse,GBr,zBr,Bfi,rF,Bse,Nut,Ffi,VBr,$fi,Ufi,Gfi,zfi,Fse,w4e,Elt,jxe,wlt,qae,Th,$c,Yae,Slt,Kxe,Tlt,xlt,Clt,klt,Xxe,Alt,Rlt,Ilt,Wae,FB,H3,T7,s1,lI,jae,Zq,Jq,eY,Qxe,Mae,Olt,Jot,HBr,Nlt,Llt,Kae,Mlt,Dlt,Zxe,x7,Plt,Blt,Flt,$lt,Ult,Glt,zlt,Vlt,Hlt,Xae,qlt,Ylt,Wlt,jlt,Klt,Xlt,Qlt,Zlt,Jlt,ect,tct,Qae,rct,Jxe,nct,ict,act,sct,oct,lct,cct,uct,hct,dct,fct,pct,eCe,tCe,gct,rCe,mct,bct,yct,vct,_ct,Ect,qBr,wct,_Pr,Jr,S4e,wf,Lut,Vfi,Hfi,qfi,Yfi,Wfi,jfi,Kfi,Xfi,Qfi,Zfi,Jfi,epi,tpi,rpi,npi,ipi,api,spi,opi,lpi,cpi,upi,hpi,dpi,Mut,WBr,U7,KBr,tw,SCe,Sct,ew,nCe,Axe,DC,$B,iCe,EPr,wPr,UB,xct,GB,jq,aCe,zB,sCe,Cct,DB,SPr,tY,kct,cI,elt,TPr,Zae,Jae,Rxe,rY,Act,xPr,Ixe,Rct,q3,tlt,nY,Ict,iY,ese,CPr,aY,pT,sY,C7,oY,oCe,Dae,Pae,kPr,lCe,lY,Bae,tse,gFr,Mu,gI,fpi,wFr,ACe,RCe,APr,ppi,Oxe,gpi,SFr,C4e,mpi,bpi,ypi,rlt,vpi,Qut,Z3,xv,kY,c2,eb,nw,iw,qp,u2,h2,Ud,AY,R4e,QFr="_~IN~_",_pi,hCe,Epi,t$r="Complement Sets are not supported for first char optimization",OCe=`Unable to use "first char" lexer optimizations: -`,wpi,eF="PATTERN",ise="defaultMode",Nxe="modes",Dct=0,dCe=1,Pct=2,Bct=3,Spi,Tpi,xpi,ase=256,pCe,RPr=1,C$r,Uct,Yp,sse,l2,Cpi="parent",IPr="categories",OPr="label",NPr="group",LPr="push_mode",MPr="pop_mode",DPr="longer_alt",PPr="line_breaks",BPr="start_chars_hint",wI,dY,kpi,KB,Api,Rpi,Ipi,L4e,Opi,FPr,Npi,$Pr,sp,Lpi,z$r,Mpi,dht,Dpi,sUr="MismatchedTokenException",oUr="NoViableAltException",lUr="EarlyExitException",cUr="NotAllInputParsedException",uUr,D4e,hUr,Ppi,Bpi,Fpi,nlt,dUr="InRuleRecoveryException",$pi,Upi,LY=8,pUr,gUr,Vct,Hct,qct,mCe,fht,Gpi,zpi,Lxe,Vpi="name",jct,Hpi,qpi,Ypi,Wpi,jpi,P4e,UPr=!0,GPr=255,TUr,xUr,Kpi,Xpi,Qpi,EY,SI,PCe,Cv,ght,Zpi,RUr,Jpi,NUr,B4e,e0i,t0i,r0i,n0i,i0i,a0i,F4e,s0i,o0i,l0i,c0i,u0i,zUr,h0i,d0i,TI,f0i,K3,VUr,p0i,g0i,Fae,m0i,b0i,y0i,v0i,_0i="[object Null]",E0i="[object Undefined]",zPr,MY,mht,w0i="[object AsyncFunction]",S0i="[object Function]",T0i="[object GeneratorFunction]",x0i="[object Proxy]",KUr,C0i,ilt,VPr,k0i,A0i,R0i,aF,I0i,O0i,N0i,L0i,M0i,D0i,P0i,B0i,F0i,DY,$0i,Ase,U0i,Rse,G0i,z0i,V0i="__lodash_hash_undefined__",H0i,q0i,Y0i,W0i,j0i,K0i,X0i="__lodash_hash_undefined__",Q0i,HPr,Z0i,J0i,$4e,egi,tgi,rgi,ngi,U4e,igi=200,agi,bCe,sgi="__lodash_hash_undefined__",ogi,lgi,mGr,cgi,vGr,ugi=1,hgi=2,EGr,dgi,qPr,fgi,bht,pgi=1,ggi=2,mgi="[object Boolean]",bgi="[object Date]",ygi="[object Error]",vgi="[object Map]",_gi="[object Number]",Egi="[object RegExp]",wgi="[object Set]",Sgi="[object String]",Tgi="[object Symbol]",xgi="[object ArrayBuffer]",Cgi="[object DataView]",YPr,alt,kgi,CGr,Agi,kv,Rgi,RGr,Igi,Ogi,Ngi,WPr,Lgi,Mgi,Dgi,wY,Pgi="[object Arguments]",jPr,MGr,Bgi,Fgi,$gi,G4e,Ugi,PGr,KPr,Ggi,XPr,zgi,Vgi,BCe,Hgi=9007199254740991,qgi,FGr,Ygi=9007199254740991,yht,Wgi="[object Arguments]",jgi="[object Array]",Kgi="[object Boolean]",Xgi="[object Date]",Qgi="[object Error]",Zgi="[object Function]",Jgi="[object Map]",emi="[object Number]",tmi="[object Object]",rmi="[object RegExp]",nmi="[object Set]",imi="[object String]",ami="[object WeakMap]",smi="[object ArrayBuffer]",omi="[object DataView]",lmi="[object Float32Array]",cmi="[object Float64Array]",umi="[object Int8Array]",hmi="[object Int16Array]",dmi="[object Int32Array]",fmi="[object Uint8Array]",pmi="[object Uint8ClampedArray]",gmi="[object Uint16Array]",mmi="[object Uint32Array]",$d,bmi,ymi,zGr,use,vmi,slt,_mi,QPr,ZPr,Emi,vht,wmi,Smi,Tmi,xmi,qGr,Cmi,kmi,Ami,Rmi,Imi,jGr,z4e,_ht,JPr,Omi=1,Nmi,Lmi,Mmi,Dmi,Qct,Pmi,Zct,Bmi,gY,Fmi,Jct,eBr="[object Map]",$mi="[object Object]",tBr="[object Promise]",rBr="[object Set]",nBr="[object WeakMap]",iBr="[object DataView]",Umi,Gmi,zmi,Vmi,Hmi,HB,eut,qmi=1,aBr="[object Arguments]",sBr="[object Array]",Mxe="[object Object]",Ymi,oBr,Wmi,ezr,jmi=1,Kmi=2,Xmi,nzr,Qmi,szr,Zmi,Jmi="[object Symbol]",V4e,e1i,t1i,wht,r1i="Expected a function",n1i,i1i=500,a1i,s1i,o1i,l1i,c1i,u1i=1/0,lBr,cBr,h1i,d1i,fzr,f1i=1/0,q4e,mzr,p1i,g1i,m1i,b1i,y1i=1,v1i=2,_1i,Tht,E1i,w1i,S1i,Y4e,T1i,x1i,C1i,k1i,A1i,R1i,W4e,I1i,vI,O1i,N1i,q7=1,L1i=2,Mzr=4,Dzr=5,cF=7,M1i=8,D1i=9,P1i=10,B1i=11,Pzr=12,xht,j4e,Bzr,K4e,FCe,tut,F1i,$1i,U1i,uBr,G1i,rVr,z1i,V1i,H1i,q1i,Y1i,W1i,j1i,K1i,X1i=1/0,Q1i,Z1i,J1i=200,ebi,tbi,rbi,nbi,ibi,olt,abi="[object Map]",sbi="[object Set]",obi,lbi,cbi,ubi,hbi,hBr,wVr,dBr,dbi,qVr,YVr,WVr,Lht,jVr,aut,fBr="​",KVr,XVr,fbi,pbi,QVr,gbi,mbi,ZVr,bbi,dHr,fHr,hI,op,_Ce=0,ybi=10,fY,Bht,pBr,sut,bHr,rw,$ae,bT,vbi,kc,_bi,Ebi,Kq,wbi,Sbi,Tbi,xbi,Cbi,Lse,gBr,kbi,mBr,Abi,vHr,Rbi,Ibi,Obi,Nbi,Lbi,Mbi,cut,Dbi,Pbi,Bbi,UC,Fbi,$bi,Ubi,Gbi,zbi,Dxe,hse,Vbi,Hbi,qbi,Ybi,Wbi,jbi,bBr,Kbi,Xbi,Qbi,yBr,llt,hut,DHr,Zbi,Jbi,eyi,zCe,tyi,ryi,vBr,nyi,_Br,iyi,Du,ayi,syi,put,gut,mut,but,yut,vut,_ut,Eut,wut,Sut,Tut,xut,Cut,kut,Aut,FZa,VCe,HCe,dse,qCe,YCe,WCe,k7,fse,jCe,KCe,Pxe,clt,Bxe,Uae,ult,gT,Fxe,mY,EBr,$xe,hlt,O7,Uxe,PB,Gxe,mI,zxe,wBr,Xq,bY,Mse,XCe,QCe,ZCe,JCe,e4e,t4e,r4e,YB,dI,n4e,pse,i4e,a4e,gse,s4e,o4e,V3,A7,fI,Gae,SBr,dlt,Vxe,uI,S7,flt,PC,TBr,Hxe,plt,bI,zae,XB,Vae,glt,Hae,qxe,BB,N7,Yxe,mlt,L7,M7,l4e,c4e,u4e,h4e,d4e,mse,WB,bse,f4e,yse,yI,yY,blt,Wxe,pI,D7,P7,p4e,B7,BC,g4e,m4e,b4e,F7,vse,y4e,v4e,_4e,E4e,ylt,Qq,vlt,R7,QB,$7,_lt,I7,jB,cm,BHr,D0,xBr,oyi,CBr,lyi,kBr,cyi,ABr,uyi,RBr,hyi,IBr,dyi,OBr,fyi,NBr,pyi,LBr,gyi,MBr,myi,DBr,byi,PBr,yyi,BBr,vyi,FBr,_yi,$Br,Eyi,wyi,Syi,Tyi,xyi,Cyi,kyi,Ayi,Ryi,Iyi,Oyi,Nyi,Lyi,Myi,Dyi,Pyi,Pu,eke,tke,rke,nke,ike,ake,ske,oke,lke,cke,uke,hke,dke,fke,pke,Byi,Fyi,$yi,Uyi,P0,d2,Xu,FHr;var Bu=Re(()=>{Ofi=Object.create,Dse=Object.defineProperty,Nfi=Object.getOwnPropertyDescriptor,Rut=Object.getOwnPropertyNames,Lfi=Object.getPrototypeOf,Mfi=Object.prototype.hasOwnProperty,Pse=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=r,e.string=i,e.number=a,e.error=o,e.func=l,e.array=h,e.stringArray=d;function r(p){return p===!0||p===!1}ee(r,"boolean");function i(p){return typeof p==="string"||p instanceof String}ee(i,"string");function a(p){return typeof p==="number"||p instanceof Number}ee(a,"number");function o(p){return p instanceof Error}ee(o,"error");function l(p){return typeof p==="function"}ee(l,"func");function h(p){return Array.isArray(p)}ee(h,"array");function d(p){return h(p)&&p.every((m)=>i(m))}ee(d,"stringArray")}}),GBr=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var r=e&&e.__createBinding||(Object.create?function(W,J,z,ne){if(ne===void 0)ne=z;var ie=Object.getOwnPropertyDescriptor(J,z);if(!ie||("get"in ie?!J.__esModule:ie.writable||ie.configurable))ie={enumerable:!0,get:ee(function(){return J[z]},"get")};Object.defineProperty(W,ne,ie)}:function(W,J,z,ne){if(ne===void 0)ne=z;W[ne]=J[z]}),i=e&&e.__setModuleDefault||(Object.create?function(W,J){Object.defineProperty(W,"default",{enumerable:!0,value:J})}:function(W,J){W.default=J}),a=e&&e.__importStar||function(){var W=ee(function(J){return W=Object.getOwnPropertyNames||function(z){var ne=[];for(var ie in z)if(Object.prototype.hasOwnProperty.call(z,ie))ne[ne.length]=ie;return ne},W(J)},"ownKeys");return function(J){if(J&&J.__esModule)return J;var z={};if(J!=null){for(var ne=W(J),ie=0;ieh,next:ee(()=>{if(this._state!==o)throw Error("LinkedMap got modified during iteration.");if(l){let d={value:l.key,done:!1};return l=l.next,d}else return{value:void 0,done:!0}},"next")};return h}values(){let o=this._state,l=this._head,h={[Symbol.iterator]:()=>h,next:ee(()=>{if(this._state!==o)throw Error("LinkedMap got modified during iteration.");if(l){let d={value:l.value,done:!1};return l=l.next,d}else return{value:void 0,done:!0}},"next")};return h}entries(){let o=this._state,l=this._head,h={[Symbol.iterator]:()=>h,next:ee(()=>{if(this._state!==o)throw Error("LinkedMap got modified during iteration.");if(l){let d={value:[l.key,l.value],done:!1};return l=l.next,d}else return{value:void 0,done:!0}},"next")};return h}[Symbol.iterator](){return this.entries()}trimOld(o){if(o>=this.size)return;if(o===0){this.clear();return}let l=this._head,h=this.size;while(l&&h>o)this._map.delete(l.key),l=l.next,h--;if(this._head=l,this._size=h,l)l.previous=void 0;this._state++}addItemFirst(o){if(!this._head&&!this._tail)this._tail=o;else if(!this._head)throw Error("Invalid list");else o.next=this._head,this._head.previous=o;this._head=o,this._state++}addItemLast(o){if(!this._head&&!this._tail)this._head=o;else if(!this._tail)throw Error("Invalid list");else o.previous=this._tail,this._tail.next=o;this._tail=o,this._state++}removeItem(o){if(o===this._head&&o===this._tail)this._head=void 0,this._tail=void 0;else if(o===this._head){if(!o.next)throw Error("Invalid list");o.next.previous=void 0,this._head=o.next}else if(o===this._tail){if(!o.previous)throw Error("Invalid list");o.previous.next=void 0,this._tail=o.previous}else{let{next:l,previous:h}=o;if(!l||!h)throw Error("Invalid list");l.previous=h,h.next=l}o.next=void 0,o.previous=void 0,this._state++}touch(o,l){if(!this._head||!this._tail)throw Error("Invalid list");if(l!==r.First&&l!==r.Last)return;if(l===r.First){if(o===this._head)return;let{next:h,previous:d}=o;if(o===this._tail)d.next=void 0,this._tail=d;else h.previous=d,d.next=h;o.previous=void 0,o.next=this._head,this._head.previous=o,this._head=o,this._state++}else if(l===r.Last){if(o===this._tail)return;let{next:h,previous:d}=o;if(o===this._head)h.previous=void 0,this._head=h;else h.previous=d,d.next=h;o.next=void 0,o.previous=this._tail,this._tail.next=o,this._tail=o,this._state++}}toJSON(){let o=[];return this.forEach((l,h)=>{o.push([h,l])}),o}fromJSON(o){this.clear();for(let[l,h]of o)this.set(l,h)}};e.LinkedMap=i;var a=class extends i{static{ee(this,"LRUCache")}_limit;_ratio;constructor(o,l=1){super();this._limit=o,this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(o){this._limit=o,this.checkTrim()}get ratio(){return this._ratio}set ratio(o){this._ratio=Math.min(Math.max(0,o),1),this.checkTrim()}get(o,l=r.AsNew){return super.get(o,l)}peek(o){return super.get(o,r.None)}set(o,l){return super.set(o,l,r.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=a}}),Bfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var r;(function(i){function a(o){return{dispose:o}}ee(a,"create"),i.create=a})(r||(e.Disposable=r={}))}}),rF=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var r;function i(){if(r===void 0)throw Error("No runtime abstraction layer installed");return r}ee(i,"RAL"),function(a){function o(l){if(l===void 0)throw Error("No runtime abstraction layer provided");r=l}ee(o,"install"),a.install=o}(i||(i={})),e.default=i}}),Bse=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var r=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var i=r(rF()),a;(function(h){let d={dispose(){}};h.None=function(){return d}})(a||(e.Event=a={}));var o=class{static{ee(this,"CallbackList")}_callbacks;_contexts;add(h,d=null,p){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(h),this._contexts.push(d),Array.isArray(p))p.push({dispose:ee(()=>this.remove(h,d),"dispose")})}remove(h,d=null){if(!this._callbacks)return;let p=!1;for(let m=0,y=this._callbacks.length;m{if(!this._callbacks)this._callbacks=new o;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(d,p);let y={dispose:ee(()=>{if(!this._callbacks)return;if(this._callbacks.remove(d,p),y.dispose=h._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(m))m.push(y);return y};return this._event}fire(d){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,d)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=l}}),Nut=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var r=e&&e.__createBinding||(Object.create?function(w,T,x,k){if(k===void 0)k=x;var A=Object.getOwnPropertyDescriptor(T,x);if(!A||("get"in A?!T.__esModule:A.writable||A.configurable))A={enumerable:!0,get:ee(function(){return T[x]},"get")};Object.defineProperty(w,k,A)}:function(w,T,x,k){if(k===void 0)k=x;w[k]=T[x]}),i=e&&e.__setModuleDefault||(Object.create?function(w,T){Object.defineProperty(w,"default",{enumerable:!0,value:T})}:function(w,T){w.default=T}),a=e&&e.__importStar||function(){var w=ee(function(T){return w=Object.getOwnPropertyNames||function(x){var k=[];for(var A in x)if(Object.prototype.hasOwnProperty.call(x,A))k[k.length]=A;return k},w(T)},"ownKeys");return function(T){if(T&&T.__esModule)return T;var x={};if(T!=null){for(var k=w(T),A=0;A{this._waiting.push({thunk:o,resolve:l,reject:h}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,i.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let o=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let l=o.thunk();if(l instanceof Promise)l.then((h)=>{this._active--,o.resolve(h),this.runNext()},(h)=>{this._active--,o.reject(h),this.runNext()});else this._active--,o.resolve(l),this.runNext()}catch(l){this._active--,o.reject(l),this.runNext()}}};e.Semaphore=a}}),$fi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var r=e&&e.__createBinding||(Object.create?function(T,x,k,A){if(A===void 0)A=k;var R=Object.getOwnPropertyDescriptor(x,k);if(!R||("get"in R?!x.__esModule:R.writable||R.configurable))R={enumerable:!0,get:ee(function(){return x[k]},"get")};Object.defineProperty(T,A,R)}:function(T,x,k,A){if(A===void 0)A=k;T[A]=x[k]}),i=e&&e.__setModuleDefault||(Object.create?function(T,x){Object.defineProperty(T,"default",{enumerable:!0,value:x})}:function(T,x){T.default=x}),a=e&&e.__importStar||function(){var T=ee(function(x){return T=Object.getOwnPropertyNames||function(k){var A=[];for(var R in k)if(Object.prototype.hasOwnProperty.call(k,R))A[A.length]=R;return A},T(x)},"ownKeys");return function(x){if(x&&x.__esModule)return x;var k={};if(x!=null){for(var A=T(x),R=0;R{this.onData(k)});return this.readable.onError((k)=>this.fireError(k)),this.readable.onClose(()=>this.fireClose()),x}onData(T){try{this.buffer.append(T);while(!0){if(this.nextMessageLength===-1){let k=this.buffer.tryReadHeaders(!0);if(!k)return;let A=k.get("content-length");if(!A){this.fireError(Error(`Header must provide a Content-Length property. -${JSON.stringify(Object.fromEntries(k))}`));return}let R=parseInt(A);if(isNaN(R)){this.fireError(Error(`Content-Length value must be a number. Got ${A}`));return}this.nextMessageLength=R}let x=this.buffer.tryReadBody(this.nextMessageLength);if(x===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let k=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(x):x,A=await this.options.contentTypeDecoder.decode(k,this.options);this.callback(A)}).catch((k)=>{this.fireError(k)})}}catch(x){this.fireError(x)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,l.default)().timer.setTimeout((T,x)=>{if(this.partialMessageTimer=void 0,T===this.messageToken)this.firePartialMessage({messageToken:T,waitingTime:x}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}};e.ReadableStreamMessageReader=w}}),Ufi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var r=e&&e.__createBinding||(Object.create?function(k,A,R,N){if(N===void 0)N=R;var L=Object.getOwnPropertyDescriptor(A,R);if(!L||("get"in L?!A.__esModule:L.writable||L.configurable))L={enumerable:!0,get:ee(function(){return A[R]},"get")};Object.defineProperty(k,N,L)}:function(k,A,R,N){if(N===void 0)N=R;k[N]=A[R]}),i=e&&e.__setModuleDefault||(Object.create?function(k,A){Object.defineProperty(k,"default",{enumerable:!0,value:A})}:function(k,A){k.default=A}),a=e&&e.__importStar||function(){var k=ee(function(A){return k=Object.getOwnPropertyNames||function(R){var N=[];for(var L in R)if(Object.prototype.hasOwnProperty.call(R,L))N[N.length]=L;return N},k(A)},"ownKeys");return function(A){if(A&&A.__esModule)return A;var R={};if(A!=null){for(var N=k(A),L=0;Lthis.fireError(R)),this.writable.onClose(()=>this.fireClose())}async write(k){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(k,this.options).then((R)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(R);else return R}).then((R)=>{let N=[];return N.push(m,R.byteLength.toString(),y),N.push(y),this.doWrite(k,N,R)},(R)=>{throw this.fireError(R),R}))}async doWrite(k,A,R){try{return await this.writable.write(A.join(""),"ascii"),this.writable.write(R)}catch(N){return this.handleError(N,k),Promise.reject(N)}}handleError(k,A){this.errorCount++,this.fireError(k,A,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=x}}),Gfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var r=13,i=10,a=`\r -`,o=class{static{ee(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(l="utf-8"){this._encoding=l,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(l){let h=typeof l==="string"?this.fromString(l,this._encoding):l;this._chunks.push(h),this._totalLength+=h.byteLength}tryReadHeaders(l=!1){if(this._chunks.length===0)return;let h=0,d=0,p=0,m=0;e:while(dthis._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===l){let m=this._chunks[0];return this._chunks.shift(),this._totalLength-=l,this.asNative(m)}if(this._chunks[0].byteLength>l){let m=this._chunks[0],y=this.asNative(m,l);return this._chunks[0]=m.slice(l),this._totalLength-=l,y}let h=this.allocNative(l),d=0,p=0;while(l>0){let m=this._chunks[p];if(m.byteLength>l){let y=m.slice(0,l);h.set(y,d),d+=l,this._chunks[p]=m.slice(l),this._totalLength-=l,l-=l}else h.set(m,d),d+=m.byteLength,this._chunks.shift(),this._totalLength-=m.byteLength,l-=m.byteLength}return h}};e.AbstractMessageBuffer=o}}),zfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){var r=e&&e.__createBinding||(Object.create?function(J,z,ne,ie){if(ie===void 0)ie=ne;var le=Object.getOwnPropertyDescriptor(z,ne);if(!le||("get"in le?!z.__esModule:le.writable||le.configurable))le={enumerable:!0,get:ee(function(){return z[ne]},"get")};Object.defineProperty(J,ie,le)}:function(J,z,ne,ie){if(ie===void 0)ie=ne;J[ie]=z[ne]}),i=e&&e.__setModuleDefault||(Object.create?function(J,z){Object.defineProperty(J,"default",{enumerable:!0,value:z})}:function(J,z){J.default=z}),a=e&&e.__importStar||function(){var J=ee(function(z){return J=Object.getOwnPropertyNames||function(ne){var ie=[];for(var le in ne)if(Object.prototype.hasOwnProperty.call(ne,le))ie[ie.length]=le;return ie},J(z)},"ownKeys");return function(z){if(z&&z.__esModule)return z;var ne={};if(z!=null){for(var ie=J(z),le=0;le{},"error"),warn:ee(()=>{},"warn"),info:ee(()=>{},"info"),log:ee(()=>{},"log")});var A;(function(J){J[J.Off=0]="Off",J[J.Messages=1]="Messages",J[J.Compact=2]="Compact",J[J.Verbose=3]="Verbose"})(A||(e.Trace=A={}));var R;(function(J){J.Off="off",J.Messages="messages",J.Compact="compact",J.Verbose="verbose"})(R||(e.TraceValue=R={})),e.TraceValues=R,function(J){function z(ie){if(!h.string(ie))return J.Off;switch(ie=ie.toLowerCase(),ie){case"off":return J.Off;case"messages":return J.Messages;case"compact":return J.Compact;case"verbose":return J.Verbose;default:return J.Off}}ee(z,"fromString"),J.fromString=z;function ne(ie){switch(ie){case J.Off:return"off";case J.Messages:return"messages";case J.Compact:return"compact";case J.Verbose:return"verbose";default:return"off"}}ee(ne,"toString"),J.toString=ne}(A||(e.Trace=A={}));var N;(function(J){J.Text="text",J.JSON="json"})(N||(e.TraceFormat=N={})),function(J){function z(ne){if(!h.string(ne))return J.Text;if(ne=ne.toLowerCase(),ne==="json")return J.JSON;else return J.Text}ee(z,"fromString"),J.fromString=z}(N||(e.TraceFormat=N={}));var L;(function(J){J.type=new d.NotificationType("$/setTrace")})(L||(e.SetTraceNotification=L={}));var B;(function(J){J.type=new d.NotificationType("$/logTrace")})(B||(e.LogTraceNotification=B={}));var D;(function(J){J[J.Closed=1]="Closed",J[J.Disposed=2]="Disposed",J[J.AlreadyListening=3]="AlreadyListening"})(D||(e.ConnectionErrors=D={}));var P=class J extends Error{static{ee(this,"ConnectionError")}code;constructor(z,ne){super(ne);this.code=z,Object.setPrototypeOf(this,J.prototype)}};e.ConnectionError=P;var F;(function(J){function z(ne){let ie=ne;return ie&&h.func(ie.cancelUndispatched)}ee(z,"is"),J.is=z})(F||(e.ConnectionStrategy=F={}));var H;(function(J){function z(ne){let ie=ne;return ie&&(ie.kind===void 0||ie.kind==="id")&&h.func(ie.createCancellationTokenSource)&&(ie.dispose===void 0||h.func(ie.dispose))}ee(z,"is"),J.is=z})(H||(e.IdCancellationReceiverStrategy=H={}));var K;(function(J){function z(ne){let ie=ne;return ie&&ie.kind==="request"&&h.func(ie.createCancellationTokenSource)&&(ie.dispose===void 0||h.func(ie.dispose))}ee(z,"is"),J.is=z})(K||(e.RequestCancellationReceiverStrategy=K={}));var Q;(function(J){J.Message=Object.freeze({createCancellationTokenSource(ne){return new y.CancellationTokenSource}});function z(ne){return H.is(ne)||K.is(ne)}ee(z,"is"),J.is=z})(Q||(e.CancellationReceiverStrategy=Q={}));var Z;(function(J){J.Message=Object.freeze({sendCancellation(ne,ie){return ne.sendNotification(E.type,{id:ie})},cleanup(ne){}});function z(ne){let ie=ne;return ie&&h.func(ie.sendCancellation)&&h.func(ie.cleanup)}ee(z,"is"),J.is=z})(Z||(e.CancellationSenderStrategy=Z={}));var Y;(function(J){J.Message=Object.freeze({receiver:Q.Message,sender:Z.Message});function z(ne){let ie=ne;return ie&&Q.is(ie.receiver)&&Z.is(ie.sender)}ee(z,"is"),J.is=z})(Y||(e.CancellationStrategy=Y={}));var j;(function(J){function z(ne){let ie=ne;return ie&&h.func(ie.handleMessage)}ee(z,"is"),J.is=z})(j||(e.MessageStrategy=j={}));var te;(function(J){function z(ne){let ie=ne;return ie&&(Y.is(ie.cancellationStrategy)||F.is(ie.connectionStrategy)||j.is(ie.messageStrategy)||h.number(ie.maxParallelism))}ee(z,"is"),J.is=z})(te||(e.ConnectionOptions=te={}));var X;(function(J){J[J.New=1]="New",J[J.Listening=2]="Listening",J[J.Closed=3]="Closed",J[J.Disposed=4]="Disposed"})(X||(X={}));function W(J,z,ne,ie){let le=ne!==void 0?ne:e.NullLogger,se=0,he=0,ye=0,xe="2.0",Ie=ie?.maxParallelism??-1,Ee=0,Ue=void 0,Me=new Map,Xe=void 0,je=new Map,Qe=new Map,St,pt=new p.LinkedMap,Vt=new Map,Xt=new Set,rr=new Map,We=A.Off,Nt=N.Text,ct,bt=X.New,Pe=new m.Emitter,Ge=new m.Emitter,qe=new m.Emitter,Ke=new m.Emitter,Je=new m.Emitter,De=ie&&ie.cancellationStrategy?ie.cancellationStrategy:Y.Message;function oe(_t){return}ee(oe,"cancelUndispatched");function pe(){return bt===X.Listening}ee(pe,"isListening");function fe(){return bt===X.Closed}ee(fe,"isClosed");function be(){return bt===X.Disposed}ee(be,"isDisposed");function ze(){if(bt===X.New||bt===X.Listening)bt=X.Closed,Ge.fire(void 0)}ee(ze,"closeHandler");function Ce(_t){Pe.fire([_t,void 0,void 0])}ee(Ce,"readErrorHandler");function _e(_t){Pe.fire(_t)}ee(_e,"writeErrorHandler"),J.onClose(ze),J.onError(Ce),z.onClose(ze),z.onError(_e);function ke(_t){if(_t===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+_t.toString()}ee(ke,"createRequestQueueKey");function it(_t){if(_t===null)return"res-unknown-"+(++ye).toString();else return"res-"+_t.toString()}ee(it,"createResponseQueueKey");function ut(){return"not-"+(++he).toString()}ee(ut,"createNotificationQueueKey");function gt(_t,Sr){if(d.Message.isRequest(Sr))_t.set(ke(Sr.id),Sr);else if(d.Message.isResponse(Sr))if(Ie===-1)_t.set(it(Sr.id),Sr);else tr(Sr);else _t.set(ut(),Sr)}ee(gt,"addMessageToQueue");function vt(){if(St||pt.size===0)return;if(Ie!==-1&&Ee>=Ie)return;St=(0,l.default)().timer.setImmediate(async()=>{if(St=void 0,pt.size===0)return;if(Ie!==-1&&Ee>=Ie)return;let _t=pt.shift(),Sr;try{Ee++;let on=ie?.messageStrategy;if(j.is(on))Sr=on.handleMessage(_t,ir);else Sr=ir(_t)}catch(on){le.error(`Processing message queue failed: ${on.toString()}`)}finally{if(Sr instanceof Promise)Sr.then(()=>{Ee--,vt()}).catch((on)=>{le.error(`Processing message queue failed: ${on.toString()}`)});else Ee--;vt()}})}ee(vt,"triggerMessageQueue");async function ir(_t){if(d.Message.isRequest(_t))return cr(_t);else if(d.Message.isNotification(_t))return Zt(_t);else if(d.Message.isResponse(_t))return tr(_t);else return lr(_t)}ee(ir,"handleMessage");let qt=ee((_t)=>{try{if(d.Message.isNotification(_t)&&_t.method===E.type.method){let Sr=_t.params.id,on=ke(Sr),gn=pt.get(on);if(d.Message.isRequest(gn)){let as=ie?.connectionStrategy,Ir=as&&as.cancelUndispatched?as.cancelUndispatched(gn,oe):oe(gn);if(Ir&&(Ir.error!==void 0||Ir.result!==void 0)){pt.delete(on),rr.delete(Sr),Ir.id=gn.id,Xn(Ir,_t.method,Date.now()),z.write(Ir).catch(()=>le.error("Sending response for canceled message failed."));return}}let On=rr.get(Sr);if(On!==void 0){On.cancel(),Bn(_t);return}else Xt.add(Sr)}gt(pt,_t)}finally{vt()}},"callback");async function cr(_t){if(be())return Promise.resolve();function Sr(un,zn,Di){let aa={jsonrpc:xe,id:_t.id};if(un instanceof d.ResponseError)aa.error=un.toJson();else aa.result=un===void 0?null:un;return Xn(aa,zn,Di),z.write(aa)}ee(Sr,"reply");function on(un,zn,Di){let aa={jsonrpc:xe,id:_t.id,error:un.toJson()};return Xn(aa,zn,Di),z.write(aa)}ee(on,"replyError"),Yt(_t);let gn=Me.get(_t.method),On,as;if(gn)On=gn.type,as=gn.handler;let Ir=Date.now();if(as||Ue){let un=_t.id??String(Date.now()),zn=H.is(De.receiver)?De.receiver.createCancellationTokenSource(un):De.receiver.createCancellationTokenSource(_t);if(_t.id!==null&&Xt.has(_t.id))zn.cancel();if(_t.id!==null)rr.set(un,zn);try{let Di;if(as)if(_t.params===void 0){if(On!==void 0&&On.numberOfParams!==0)return on(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${_t.method} defines ${On.numberOfParams} params but received none.`),_t.method,Ir);Di=as(zn.token)}else if(Array.isArray(_t.params)){if(On!==void 0&&On.parameterStructures===d.ParameterStructures.byName)return on(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${_t.method} defines parameters by name but received parameters by position`),_t.method,Ir);Di=as(..._t.params,zn.token)}else{if(On!==void 0&&On.parameterStructures===d.ParameterStructures.byPosition)return on(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${_t.method} defines parameters by position but received parameters by name`),_t.method,Ir);Di=as(_t.params,zn.token)}else if(Ue)Di=Ue(_t.method,_t.params,zn.token);let aa=await Di;await Sr(aa,_t.method,Ir)}catch(Di){if(Di instanceof d.ResponseError)await Sr(Di,_t.method,Ir);else if(Di&&h.string(Di.message))await on(new d.ResponseError(d.ErrorCodes.InternalError,`Request ${_t.method} failed with message: ${Di.message}`),_t.method,Ir);else await on(new d.ResponseError(d.ErrorCodes.InternalError,`Request ${_t.method} failed unexpectedly without providing any details.`),_t.method,Ir)}finally{rr.delete(un)}}else await on(new d.ResponseError(d.ErrorCodes.MethodNotFound,`Unhandled method ${_t.method}`),_t.method,Ir)}ee(cr,"handleRequest");function tr(_t){if(be())return;if(_t.id===null)if(_t.error)le.error(`Received response message without id: Error is: -${JSON.stringify(_t.error,void 0,4)}`);else le.error("Received response message without id. No further error information provided.");else{let Sr=_t.id,on=Vt.get(Sr);if(si(_t,on),on!==void 0){Vt.delete(Sr);try{if(_t.error){let gn=_t.error;on.reject(new d.ResponseError(gn.code,gn.message,gn.data))}else if(_t.result!==void 0)on.resolve(_t.result);else throw Error("Should never happen.")}catch(gn){if(gn.message)le.error(`Response handler '${on.method}' failed with message: ${gn.message}`);else le.error(`Response handler '${on.method}' failed unexpectedly.`)}}}}ee(tr,"handleResponse");async function Zt(_t){if(be())return;let Sr=void 0,on;if(_t.method===E.type.method){let gn=_t.params.id;Xt.delete(gn),Bn(_t);return}else{let gn=je.get(_t.method);if(gn)on=gn.handler,Sr=gn.type}if(on||Xe)try{if(Bn(_t),on)if(_t.params===void 0){if(Sr!==void 0){if(Sr.numberOfParams!==0&&Sr.parameterStructures!==d.ParameterStructures.byName)le.error(`Notification ${_t.method} defines ${Sr.numberOfParams} params but received none.`)}await on()}else if(Array.isArray(_t.params)){let gn=_t.params;if(_t.method===T.type.method&&gn.length===2&&w.is(gn[0]))await on({token:gn[0],value:gn[1]});else{if(Sr!==void 0){if(Sr.parameterStructures===d.ParameterStructures.byName)le.error(`Notification ${_t.method} defines parameters by name but received parameters by position`);if(Sr.numberOfParams!==_t.params.length)le.error(`Notification ${_t.method} defines ${Sr.numberOfParams} params but received ${gn.length} arguments`)}await on(...gn)}}else{if(Sr!==void 0&&Sr.parameterStructures===d.ParameterStructures.byPosition)le.error(`Notification ${_t.method} defines parameters by position but received parameters by name`);await on(_t.params)}else if(Xe)await Xe(_t.method,_t.params)}catch(gn){if(gn.message)le.error(`Notification handler '${_t.method}' failed with message: ${gn.message}`);else le.error(`Notification handler '${_t.method}' failed unexpectedly.`)}else qe.fire(_t)}ee(Zt,"handleNotification");function lr(_t){if(!_t){le.error("Received empty message.");return}le.error(`Received message which is neither a response nor a notification message: -${JSON.stringify(_t,null,4)}`);let Sr=_t;if(h.string(Sr.id)||h.number(Sr.id)){let on=Sr.id,gn=Vt.get(on);if(gn)gn.reject(Error("The received response has neither a result nor an error property."))}}ee(lr,"handleInvalidMessage");function Kt(_t){if(_t===void 0||_t===null)return;switch(We){case A.Verbose:return JSON.stringify(_t,null,4);case A.Compact:return JSON.stringify(_t);default:return}}ee(Kt,"stringifyTrace");function In(_t){if(We===A.Off||!ct)return;if(Nt===N.Text){let Sr=void 0;if((We===A.Verbose||We===A.Compact)&&_t.params)Sr=`Params: ${Kt(_t.params)}`;ct.log(`Sending request '${_t.method} - (${_t.id})'.`,Sr)}else hn("send-request",_t)}ee(In,"traceSendingRequest");function Et(_t){if(We===A.Off||!ct)return;if(Nt===N.Text){let Sr=void 0;if(We===A.Verbose||We===A.Compact)if(_t.params)Sr=`Params: ${Kt(_t.params)}`;else Sr="No parameters provided.";ct.log(`Sending notification '${_t.method}'.`,Sr)}else hn("send-notification",_t)}ee(Et,"traceSendingNotification");function Xn(_t,Sr,on){if(We===A.Off||!ct)return;if(Nt===N.Text){let gn=void 0;if(We===A.Verbose||We===A.Compact){if(_t.error&&_t.error.data)gn=`Error data: ${Kt(_t.error.data)}`;else if(_t.result)gn=`Result: ${Kt(_t.result)}`;else if(_t.error===void 0)gn="No result returned."}let On=_t.error?` Request failed: ${_t.error.message} (${_t.error.code}).`:"";ct.log(`Sending response '${Sr} - (${_t.id})'. Processing request took ${Date.now()-on}ms.${On}`,gn)}else hn("send-response",_t)}ee(Xn,"traceSendingResponse");function Yt(_t){if(We===A.Off||!ct)return;if(Nt===N.Text){let Sr=void 0;if((We===A.Verbose||We===A.Compact)&&_t.params)Sr=`Params: ${Kt(_t.params)}`;ct.log(`Received request '${_t.method} - (${_t.id})'.`,Sr)}else hn("receive-request",_t)}ee(Yt,"traceReceivedRequest");function Bn(_t){if(We===A.Off||!ct||_t.method===B.type.method)return;if(Nt===N.Text){let Sr=void 0;if(We===A.Verbose||We===A.Compact)if(_t.params)Sr=`Params: ${Kt(_t.params)}`;else Sr="No parameters provided.";ct.log(`Received notification '${_t.method}'.`,Sr)}else hn("receive-notification",_t)}ee(Bn,"traceReceivedNotification");function si(_t,Sr){if(We===A.Off||!ct)return;if(Nt===N.Text){let on=void 0;if(We===A.Verbose||We===A.Compact){if(_t.error&&_t.error.data)on=`Error data: ${Kt(_t.error.data)}`;else if(_t.result)on=`Result: ${Kt(_t.result)}`;else if(_t.error===void 0)on="No result returned."}if(Sr){let gn=_t.error?` Request failed: ${_t.error.message} (${_t.error.code}).`:"";ct.log(`Received response '${Sr.method} - (${_t.id})' in ${Date.now()-Sr.timerStart}ms.${gn}`,on)}else ct.log(`Received response ${_t.id} without active response promise.`,on)}else hn("receive-response",_t)}ee(si,"traceReceivedResponse");function hn(_t,Sr){if(!ct||We===A.Off)return;let on={isLSPMessage:!0,type:_t,message:Sr,timestamp:Date.now()};ct.log(on)}ee(hn,"logLSPMessage");function Ii(){if(fe())throw new P(D.Closed,"Connection is closed.");if(be())throw new P(D.Disposed,"Connection is disposed.")}ee(Ii,"throwIfClosedOrDisposed");function Vn(){if(pe())throw new P(D.AlreadyListening,"Connection is already listening")}ee(Vn,"throwIfListening");function Ei(){if(!pe())throw Error("Call listen() first.")}ee(Ei,"throwIfNotListening");function yn(_t){if(_t===void 0)return null;else return _t}ee(yn,"undefinedToNull");function Li(_t){if(_t===null)return;else return _t}ee(Li,"nullToUndefined");function Ia(_t){return _t!==void 0&&_t!==null&&!Array.isArray(_t)&&typeof _t==="object"}ee(Ia,"isNamedParam");function tt(_t,Sr){switch(_t){case d.ParameterStructures.auto:if(Ia(Sr))return Li(Sr);else return[yn(Sr)];case d.ParameterStructures.byName:if(!Ia(Sr))throw Error("Received parameters by name but param is not an object literal.");return Li(Sr);case d.ParameterStructures.byPosition:return[yn(Sr)];default:throw Error(`Unknown parameter structure ${_t.toString()}`)}}ee(tt,"computeSingleParam");function Fn(_t,Sr){let on,gn=_t.numberOfParams;switch(gn){case 0:on=void 0;break;case 1:on=tt(_t.parameterStructures,Sr[0]);break;default:on=[];for(let On=0;On{Ii();let on,gn;if(h.string(_t)){on=_t;let as=Sr[0],Ir=0,un=d.ParameterStructures.auto;if(d.ParameterStructures.is(as))Ir=1,un=as;let zn=Sr.length,Di=zn-Ir;switch(Di){case 0:gn=void 0;break;case 1:gn=tt(un,Sr[Ir]);break;default:if(un===d.ParameterStructures.byName)throw Error(`Received ${Di} parameters for 'by Name' notification parameter structure.`);gn=Sr.slice(Ir,zn).map((aa)=>yn(aa));break}}else{let as=Sr;on=_t.method,gn=Fn(_t,as)}let On={jsonrpc:xe,method:on,params:gn};return Et(On),z.write(On).catch((as)=>{throw le.error("Sending notification failed."),as})},"sendNotification"),onNotification:ee((_t,Sr)=>{Ii();let on;if(h.func(_t))Xe=_t;else if(Sr)if(h.string(_t))on=_t,je.set(_t,{type:void 0,handler:Sr});else on=_t.method,je.set(_t.method,{type:_t,handler:Sr});return{dispose:ee(()=>{if(on!==void 0){if(je.get(on)?.handler===Sr)je.delete(on)}else if(Xe===_t)Xe=void 0},"dispose")}},"onNotification"),onProgress:ee((_t,Sr,on)=>{if(Qe.has(Sr))throw Error(`Progress handler for token ${Sr} already registered`);return Qe.set(Sr,on),{dispose:ee(()=>{if(Qe.get(Sr)===on)Qe.delete(Sr)},"dispose")}},"onProgress"),sendProgress:ee((_t,Sr,on)=>Hn.sendNotification(T.type,{token:Sr,value:on}),"sendProgress"),onUnhandledProgress:Ke.event,sendRequest:ee((_t,...Sr)=>{Ii(),Ei();function on(aa,Ca){let os=De.sender.sendCancellation(aa,Ca);if(os===void 0)le.log(`Received no promise from cancellation strategy when cancelling id ${Ca}`);else os.catch(()=>{le.log(`Sending cancellation messages for id ${Ca} failed.`)})}ee(on,"sendCancellation");let gn,On,as=void 0;if(h.string(_t)){gn=_t;let aa=Sr[0],Ca=Sr[Sr.length-1],os=0,ma=d.ParameterStructures.auto;if(d.ParameterStructures.is(aa))os=1,ma=aa;let Yn=Sr.length;if(y.CancellationToken.is(Ca))Yn=Yn-1,as=Ca;let Tn=Yn-os;switch(Tn){case 0:On=void 0;break;case 1:On=tt(ma,Sr[os]);break;default:if(ma===d.ParameterStructures.byName)throw Error(`Received ${Tn} parameters for 'by Name' request parameter structure.`);On=Sr.slice(os,Yn).map((Pi)=>yn(Pi));break}}else{let aa=Sr;gn=_t.method,On=Fn(_t,aa);let Ca=_t.numberOfParams;as=y.CancellationToken.is(aa[Ca])?aa[Ca]:void 0}let Ir=se++,un,zn=!1;if(as!==void 0)if(as.isCancellationRequested)zn=!0;else un=as.onCancellationRequested(()=>{on(Hn,Ir)});let Di={jsonrpc:xe,id:Ir,method:gn,params:On};if(In(Di),typeof De.sender.enableCancellation==="function")De.sender.enableCancellation(Di);return new Promise(async(aa,Ca)=>{let os=ee((Tn)=>{aa(Tn),De.sender.cleanup(Ir),un?.dispose()},"resolveWithCleanup"),ma=ee((Tn)=>{Ca(Tn),De.sender.cleanup(Ir),un?.dispose()},"rejectWithCleanup"),Yn={method:gn,timerStart:Date.now(),resolve:os,reject:ma};try{if(Vt.set(Ir,Yn),await z.write(Di),zn)on(Hn,Ir)}catch(Tn){Vt.delete(Ir),Yn.reject(new d.ResponseError(d.ErrorCodes.MessageWriteError,Tn.message?Tn.message:"Unknown reason")),le.error("Sending request failed.")}})},"sendRequest"),onRequest:ee((_t,Sr)=>{Ii();let on=null;if(k.is(_t))on=void 0,Ue=_t;else if(h.string(_t)){if(on=null,Sr!==void 0)on=_t,Me.set(_t,{handler:Sr,type:void 0})}else if(Sr!==void 0)on=_t.method,Me.set(_t.method,{type:_t,handler:Sr});return{dispose:ee(()=>{if(on===null)return;if(on!==void 0){if(Me.get(on)?.handler===Sr)Me.delete(on)}else if(Ue===_t)Ue=void 0},"dispose")}},"onRequest"),hasPendingResponse:ee(()=>Vt.size>0,"hasPendingResponse"),trace:ee(async(_t,Sr,on)=>{let gn=!1,On=N.Text;if(on!==void 0)if(h.boolean(on))gn=on;else gn=on.sendNotification||!1,On=on.traceFormat||N.Text;if(We=_t,Nt=On,We===A.Off)ct=void 0;else ct=Sr;if(gn&&!fe()&&!be())await Hn.sendNotification(L.type,{value:A.toString(_t)})},"trace"),onError:Pe.event,onClose:Ge.event,onUnhandledNotification:qe.event,onDispose:Je.event,end:ee(()=>{z.end()},"end"),dispose:ee(()=>{if(be())return;bt=X.Disposed,Je.fire(void 0);let _t=new d.ResponseError(d.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Sr of Vt.values())Sr.reject(_t);if(Vt=new Map,rr=new Map,Xt=new Set,pt=new p.LinkedMap,h.func(z.dispose))z.dispose();if(h.func(J.dispose))J.dispose()},"dispose"),listen:ee(()=>{Ii(),Vn(),bt=X.Listening,J.listen(qt)},"listen"),inspect:ee(()=>{(0,l.default)().console.log("inspect")},"inspect")};return Hn.onNotification(B.type,(_t)=>{if(We===A.Off||!ct)return;let Sr=We===A.Verbose||We===A.Compact;ct.log(_t.message,Sr?_t.verbose:void 0)}),Hn.onNotification(T.type,async(_t)=>{let Sr=Qe.get(_t.token);if(Sr)await Sr(_t.value);else Ke.fire(_t)}),Hn}ee(W,"createMessageConnection")}}),Fse=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js"(e){var r=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.TraceValue=e.Trace=void 0;var i=GBr();Object.defineProperty(e,"Message",{enumerable:!0,get:ee(function(){return i.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:ee(function(){return i.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:ee(function(){return i.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:ee(function(){return i.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:ee(function(){return i.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:ee(function(){return i.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:ee(function(){return i.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:ee(function(){return i.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:ee(function(){return i.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:ee(function(){return i.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:ee(function(){return i.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:ee(function(){return i.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:ee(function(){return i.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:ee(function(){return i.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:ee(function(){return i.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:ee(function(){return i.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:ee(function(){return i.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:ee(function(){return i.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:ee(function(){return i.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:ee(function(){return i.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:ee(function(){return i.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:ee(function(){return i.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:ee(function(){return i.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:ee(function(){return i.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:ee(function(){return i.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:ee(function(){return i.ParameterStructures},"get")});var a=zBr();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:ee(function(){return a.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:ee(function(){return a.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:ee(function(){return a.Touch},"get")});var o=Bfi();Object.defineProperty(e,"Disposable",{enumerable:!0,get:ee(function(){return o.Disposable},"get")});var l=Bse();Object.defineProperty(e,"Event",{enumerable:!0,get:ee(function(){return l.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:ee(function(){return l.Emitter},"get")});var h=Nut();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:ee(function(){return h.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:ee(function(){return h.CancellationToken},"get")});var d=Ffi();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:ee(function(){return d.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:ee(function(){return d.SharedArrayReceiverStrategy},"get")});var p=$fi();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:ee(function(){return p.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:ee(function(){return p.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:ee(function(){return p.ReadableStreamMessageReader},"get")});var m=Ufi();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:ee(function(){return m.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:ee(function(){return m.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:ee(function(){return m.WriteableStreamMessageWriter},"get")});var y=Gfi();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:ee(function(){return y.AbstractMessageBuffer},"get")});var E=zfi();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:ee(function(){return E.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:ee(function(){return E.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:ee(function(){return E.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:ee(function(){return E.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:ee(function(){return E.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:ee(function(){return E.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:ee(function(){return E.Trace},"get")}),Object.defineProperty(e,"TraceValue",{enumerable:!0,get:ee(function(){return E.TraceValue},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:ee(function(){return E.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:ee(function(){return E.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:ee(function(){return E.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:ee(function(){return E.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:ee(function(){return E.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:ee(function(){return E.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"IdCancellationReceiverStrategy",{enumerable:!0,get:ee(function(){return E.IdCancellationReceiverStrategy},"get")}),Object.defineProperty(e,"RequestCancellationReceiverStrategy",{enumerable:!0,get:ee(function(){return E.RequestCancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:ee(function(){return E.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:ee(function(){return E.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:ee(function(){return E.MessageStrategy},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:ee(function(){return E.TraceValues},"get")});var w=r(rF());e.RAL=w.default}}),w4e={};Pfi(w4e,{AnnotatedTextEdit:()=>lI,ApplyKind:()=>Glt,ChangeAnnotation:()=>T7,ChangeAnnotationIdentifier:()=>s1,CodeAction:()=>nct,CodeActionContext:()=>rct,CodeActionKind:()=>tct,CodeActionTag:()=>Jxe,CodeActionTriggerKind:()=>Qae,CodeDescription:()=>Ilt,CodeLens:()=>ict,Color:()=>Kxe,ColorInformation:()=>Tlt,ColorPresentation:()=>xlt,Command:()=>FB,CompletionItem:()=>Vlt,CompletionItemKind:()=>Plt,CompletionItemLabelDetails:()=>zlt,CompletionItemTag:()=>Flt,CompletionList:()=>Hlt,CreateFile:()=>Zq,DeleteFile:()=>eY,Diagnostic:()=>Wae,DiagnosticRelatedInformation:()=>Xxe,DiagnosticSeverity:()=>Alt,DiagnosticTag:()=>Rlt,DocumentHighlight:()=>Klt,DocumentHighlightKind:()=>jlt,DocumentLink:()=>sct,DocumentSymbol:()=>ect,DocumentUri:()=>Elt,EOL:()=>qBr,FoldingRange:()=>klt,FoldingRangeKind:()=>Clt,FormattingOptions:()=>act,Hover:()=>qlt,InlayHint:()=>gct,InlayHintKind:()=>eCe,InlayHintLabelPart:()=>tCe,InlineCompletionContext:()=>_ct,InlineCompletionItem:()=>mct,InlineCompletionList:()=>bct,InlineCompletionTriggerKind:()=>yct,InlineValueContext:()=>pct,InlineValueEvaluatableExpression:()=>fct,InlineValueText:()=>hct,InlineValueVariableLookup:()=>dct,InsertReplaceEdit:()=>$lt,InsertTextFormat:()=>Blt,InsertTextMode:()=>Ult,LanguageKind:()=>Mlt,Location:()=>Yae,LocationLink:()=>Slt,MarkedString:()=>Xae,MarkupContent:()=>x7,MarkupKind:()=>Zxe,OptionalVersionedTextDocumentIdentifier:()=>Kae,ParameterInformation:()=>Ylt,Position:()=>Th,Range:()=>$c,RenameFile:()=>Jq,SelectedCompletionInfo:()=>vct,SelectionRange:()=>oct,SemanticTokenModifiers:()=>cct,SemanticTokenTypes:()=>lct,SemanticTokens:()=>uct,SignatureInformation:()=>Wlt,SnippetTextEdit:()=>Olt,StringValue:()=>rCe,SymbolInformation:()=>Zlt,SymbolKind:()=>Xlt,SymbolTag:()=>Qlt,TextDocument:()=>wct,TextDocumentEdit:()=>jae,TextDocumentIdentifier:()=>Nlt,TextDocumentItem:()=>Dlt,TextEdit:()=>H3,URI:()=>jxe,VersionedTextDocumentIdentifier:()=>Llt,WorkspaceChange:()=>HBr,WorkspaceEdit:()=>Qxe,WorkspaceFolder:()=>Ect,WorkspaceSymbol:()=>Jlt,integer:()=>wlt,uinteger:()=>qae});S4e=Dfi({"../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function r(i){return typeof i==="string"}ee(r,"is"),e.is=r})(Elt||(Elt={})),function(e){function r(i){return typeof i==="string"}ee(r,"is"),e.is=r}(jxe||(jxe={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(i){return typeof i==="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}ee(r,"is"),e.is=r}(wlt||(wlt={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(i){return typeof i==="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}ee(r,"is"),e.is=r}(qae||(qae={})),function(e){function r(a,o){if(a===Number.MAX_VALUE)a=qae.MAX_VALUE;if(o===Number.MAX_VALUE)o=qae.MAX_VALUE;return{line:a,character:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.uinteger(o.line)&&Jr.uinteger(o.character)}ee(i,"is"),e.is=i}(Th||(Th={})),function(e){function r(a,o,l,h){if(Jr.uinteger(a)&&Jr.uinteger(o)&&Jr.uinteger(l)&&Jr.uinteger(h))return{start:Th.create(a,o),end:Th.create(l,h)};else if(Th.is(a)&&Th.is(o))return{start:a,end:o};else throw Error(`Range#create called with invalid arguments[${a}, ${o}, ${l}, ${h}]`)}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Th.is(o.start)&&Th.is(o.end)}ee(i,"is"),e.is=i}($c||($c={})),function(e){function r(a,o){return{uri:a,range:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.range)&&(Jr.string(o.uri)||Jr.undefined(o.uri))}ee(i,"is"),e.is=i}(Yae||(Yae={})),function(e){function r(a,o,l,h){return{targetUri:a,targetRange:o,targetSelectionRange:l,originSelectionRange:h}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.targetRange)&&Jr.string(o.targetUri)&&$c.is(o.targetSelectionRange)&&($c.is(o.originSelectionRange)||Jr.undefined(o.originSelectionRange))}ee(i,"is"),e.is=i}(Slt||(Slt={})),function(e){function r(a,o,l,h){return{red:a,green:o,blue:l,alpha:h}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.numberRange(o.red,0,1)&&Jr.numberRange(o.green,0,1)&&Jr.numberRange(o.blue,0,1)&&Jr.numberRange(o.alpha,0,1)}ee(i,"is"),e.is=i}(Kxe||(Kxe={})),function(e){function r(a,o){return{range:a,color:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.range)&&Kxe.is(o.color)}ee(i,"is"),e.is=i}(Tlt||(Tlt={})),function(e){function r(a,o,l){return{label:a,textEdit:o,additionalTextEdits:l}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.string(o.label)&&(Jr.undefined(o.textEdit)||H3.is(o))&&(Jr.undefined(o.additionalTextEdits)||Jr.typedArray(o.additionalTextEdits,H3.is))}ee(i,"is"),e.is=i}(xlt||(xlt={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(Clt||(Clt={})),function(e){function r(a,o,l,h,d,p){let m={startLine:a,endLine:o};if(Jr.defined(l))m.startCharacter=l;if(Jr.defined(h))m.endCharacter=h;if(Jr.defined(d))m.kind=d;if(Jr.defined(p))m.collapsedText=p;return m}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.uinteger(o.startLine)&&Jr.uinteger(o.startLine)&&(Jr.undefined(o.startCharacter)||Jr.uinteger(o.startCharacter))&&(Jr.undefined(o.endCharacter)||Jr.uinteger(o.endCharacter))&&(Jr.undefined(o.kind)||Jr.string(o.kind))}ee(i,"is"),e.is=i}(klt||(klt={})),function(e){function r(a,o){return{location:a,message:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Yae.is(o.location)&&Jr.string(o.message)}ee(i,"is"),e.is=i}(Xxe||(Xxe={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Alt||(Alt={})),function(e){e.Unnecessary=1,e.Deprecated=2}(Rlt||(Rlt={})),function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&Jr.string(a.href)}ee(r,"is"),e.is=r}(Ilt||(Ilt={})),function(e){function r(l,h,d,p,m,y){let E={range:l,message:h};if(Jr.defined(d))E.severity=d;if(Jr.defined(p))E.code=p;if(Jr.defined(m))E.source=m;if(Jr.defined(y))E.relatedInformation=y;return E}ee(r,"create"),e.create=r;function i(l){var h;let d=l;return Jr.defined(d)&&$c.is(d.range)&&(Jr.string(d.message)||x7.is(d.message))&&(Jr.number(d.severity)||Jr.undefined(d.severity))&&(Jr.integer(d.code)||Jr.string(d.code)||Jr.undefined(d.code))&&(Jr.undefined(d.codeDescription)||Jr.string((h=d.codeDescription)===null||h===void 0?void 0:h.href))&&(Jr.string(d.source)||Jr.undefined(d.source))&&(Jr.undefined(d.relatedInformation)||Jr.typedArray(d.relatedInformation,Xxe.is))}ee(i,"is"),e.is=i;function a(l){return Jr.string(l.message)}ee(a,"is3_17"),e.is3_17=a;function o(l){if(Jr.string(l.message))return l.message;else if(x7.is(l.message))return l.message.value;else throw Error(`Unknown message type ${typeof l.message}`)}ee(o,"getMessageString"),e.getMessageString=o}(Wae||(Wae={})),function(e){function r(a,o,...l){let h={title:a,command:o};if(Jr.defined(l)&&l.length>0)h.arguments=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.title)&&(o.tooltip===void 0||Jr.string(o.tooltip))&&Jr.string(o.command)}ee(i,"is"),e.is=i}(FB||(FB={})),function(e){function r(l,h){return{range:l,newText:h}}ee(r,"replace"),e.replace=r;function i(l,h){return{range:{start:l,end:l},newText:h}}ee(i,"insert"),e.insert=i;function a(l){return{range:l,newText:""}}ee(a,"del"),e.del=a;function o(l){let h=l;return Jr.objectLiteral(h)&&Jr.string(h.newText)&&$c.is(h.range)}ee(o,"is"),e.is=o}(H3||(H3={})),function(e){function r(a,o,l){let h={label:a};if(o!==void 0)h.needsConfirmation=o;if(l!==void 0)h.description=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.string(o.label)&&(Jr.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Jr.string(o.description)||o.description===void 0)}ee(i,"is"),e.is=i}(T7||(T7={})),function(e){function r(i){let a=i;return Jr.string(a)}ee(r,"is"),e.is=r}(s1||(s1={})),function(e){function r(l,h,d){return{range:l,newText:h,annotationId:d}}ee(r,"replace"),e.replace=r;function i(l,h,d){return{range:{start:l,end:l},newText:h,annotationId:d}}ee(i,"insert"),e.insert=i;function a(l,h){return{range:l,newText:"",annotationId:h}}ee(a,"del"),e.del=a;function o(l){let h=l;return H3.is(h)&&(T7.is(h.annotationId)||s1.is(h.annotationId))}ee(o,"is"),e.is=o}(lI||(lI={})),function(e){function r(a,o){return{textDocument:a,edits:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Kae.is(o.textDocument)&&Array.isArray(o.edits)}ee(i,"is"),e.is=i}(jae||(jae={})),function(e){function r(a,o,l){let h={kind:"create",uri:a};if(o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0))h.options=o;if(l!==void 0)h.annotationId=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return o&&o.kind==="create"&&Jr.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Jr.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Jr.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||s1.is(o.annotationId))}ee(i,"is"),e.is=i}(Zq||(Zq={})),function(e){function r(a,o,l,h){let d={kind:"rename",oldUri:a,newUri:o};if(l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0))d.options=l;if(h!==void 0)d.annotationId=h;return d}ee(r,"create"),e.create=r;function i(a){let o=a;return o&&o.kind==="rename"&&Jr.string(o.oldUri)&&Jr.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Jr.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Jr.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||s1.is(o.annotationId))}ee(i,"is"),e.is=i}(Jq||(Jq={})),function(e){function r(a,o,l){let h={kind:"delete",uri:a};if(o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0))h.options=o;if(l!==void 0)h.annotationId=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return o&&o.kind==="delete"&&Jr.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Jr.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Jr.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||s1.is(o.annotationId))}ee(i,"is"),e.is=i}(eY||(eY={})),function(e){function r(i){let a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every((o)=>{if(Jr.string(o.kind))return Zq.is(o)||Jq.is(o)||eY.is(o);else return jae.is(o)}))}ee(r,"is"),e.is=r}(Qxe||(Qxe={})),Mae=class{static{ee(this,"TextEditChangeImpl")}constructor(e,r){this.edits=e,this.changeAnnotations=r}insert(e,r,i){let a,o;if(i===void 0)a=H3.insert(e,r);else if(s1.is(i))o=i,a=lI.insert(e,r,i);else this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),a=lI.insert(e,r,o);if(this.edits.push(a),o!==void 0)return o}replace(e,r,i){let a,o;if(i===void 0)a=H3.replace(e,r);else if(s1.is(i))o=i,a=lI.replace(e,r,i);else this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),a=lI.replace(e,r,o);if(this.edits.push(a),o!==void 0)return o}delete(e,r){let i,a;if(r===void 0)i=H3.del(e);else if(s1.is(r))a=r,i=lI.del(e,r);else this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),i=lI.del(e,a);if(this.edits.push(i),a!==void 0)return a}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error("Text edit change is not configured to manage change annotations.")}},function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&$c.is(a.range)&&rCe.isSnippet(a.snippet)&&(a.annotationId===void 0||(T7.is(a.annotationId)||s1.is(a.annotationId)))}ee(r,"is"),e.is=r}(Olt||(Olt={})),Jot=class{static{ee(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,r){let i;if(s1.is(e))i=e;else i=this.nextId(),r=e;if(this._annotations[i]!==void 0)throw Error(`Id ${i} is already in use.`);if(r===void 0)throw Error(`No annotation provided for id ${i}`);return this._annotations[i]=r,this._size++,i}nextId(){return this._counter++,this._counter.toString()}},HBr=class{static{ee(this,"WorkspaceChange")}constructor(e){if(this._textEditChanges=Object.create(null),e!==void 0){if(this._workspaceEdit=e,e.documentChanges)this._changeAnnotations=new Jot(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((r)=>{if(jae.is(r)){let i=new Mae(r.edits,this._changeAnnotations);this._textEditChanges[r.textDocument.uri]=i}});else if(e.changes)Object.keys(e.changes).forEach((r)=>{let i=new Mae(e.changes[r]);this._textEditChanges[r]=i})}else this._workspaceEdit={}}get edit(){if(this.initDocumentChanges(),this._changeAnnotations!==void 0)if(this._changeAnnotations.size===0)this._workspaceEdit.changeAnnotations=void 0;else this._workspaceEdit.changeAnnotations=this._changeAnnotations.all();return this._workspaceEdit}getTextEditChange(e){if(Kae.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let r={uri:e.uri,version:e.version},i=this._textEditChanges[r.uri];if(!i){let a=[],o={textDocument:r,edits:a};this._workspaceEdit.documentChanges.push(o),i=new Mae(a,this._changeAnnotations),this._textEditChanges[r.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error("Workspace edit is not configured for normal text edit changes.");let r=this._textEditChanges[e];if(!r){let i=[];this._workspaceEdit.changes[e]=i,r=new Mae(i),this._textEditChanges[e]=r}return r}}initDocumentChanges(){if(this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0)this._changeAnnotations=new Jot,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}initChanges(){if(this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0)this._workspaceEdit.changes=Object.create(null)}createFile(e,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let a;if(T7.is(r)||s1.is(r))a=r;else i=r;let o,l;if(a===void 0)o=Zq.create(e,i);else l=s1.is(a)?a:this._changeAnnotations.manage(a),o=Zq.create(e,i,l);if(this._workspaceEdit.documentChanges.push(o),l!==void 0)return l}renameFile(e,r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let o;if(T7.is(i)||s1.is(i))o=i;else a=i;let l,h;if(o===void 0)l=Jq.create(e,r,a);else h=s1.is(o)?o:this._changeAnnotations.manage(o),l=Jq.create(e,r,a,h);if(this._workspaceEdit.documentChanges.push(l),h!==void 0)return h}deleteFile(e,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let a;if(T7.is(r)||s1.is(r))a=r;else i=r;let o,l;if(a===void 0)o=eY.create(e,i);else l=s1.is(a)?a:this._changeAnnotations.manage(a),o=eY.create(e,i,l);if(this._workspaceEdit.documentChanges.push(o),l!==void 0)return l}},function(e){function r(a){return{uri:a}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)}ee(i,"is"),e.is=i}(Nlt||(Nlt={})),function(e){function r(a,o){return{uri:a,version:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)&&Jr.integer(o.version)}ee(i,"is"),e.is=i}(Llt||(Llt={})),function(e){function r(a,o){return{uri:a,version:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)&&(o.version===null||Jr.integer(o.version))}ee(i,"is"),e.is=i}(Kae||(Kae={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="git-rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Plaintext="plaintext",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(Mlt||(Mlt={})),function(e){function r(a,o,l,h){return{uri:a,languageId:o,version:l,text:h}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)&&Jr.string(o.languageId)&&Jr.integer(o.version)&&Jr.string(o.text)}ee(i,"is"),e.is=i}(Dlt||(Dlt={})),function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(i){let a=i;return a===e.PlainText||a===e.Markdown}ee(r,"is"),e.is=r}(Zxe||(Zxe={})),function(e){function r(i){let a=i;return Jr.objectLiteral(i)&&Zxe.is(a.kind)&&Jr.string(a.value)}ee(r,"is"),e.is=r}(x7||(x7={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Plt||(Plt={})),function(e){e.PlainText=1,e.Snippet=2}(Blt||(Blt={})),function(e){e.Deprecated=1}(Flt||(Flt={})),function(e){function r(a,o,l){return{newText:a,insert:o,replace:l}}ee(r,"create"),e.create=r;function i(a){let o=a;return o&&Jr.string(o.newText)&&$c.is(o.insert)&&$c.is(o.replace)}ee(i,"is"),e.is=i}($lt||($lt={})),function(e){e.asIs=1,e.adjustIndentation=2}(Ult||(Ult={})),function(e){e.Replace=1,e.Merge=2}(Glt||(Glt={})),function(e){function r(i){let a=i;return a&&(Jr.string(a.detail)||a.detail===void 0)&&(Jr.string(a.description)||a.description===void 0)}ee(r,"is"),e.is=r}(zlt||(zlt={})),function(e){function r(i){return{label:i}}ee(r,"create"),e.create=r}(Vlt||(Vlt={})),function(e){function r(i,a){return{items:i?i:[],isIncomplete:!!a}}ee(r,"create"),e.create=r}(Hlt||(Hlt={})),function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}ee(r,"fromPlainText"),e.fromPlainText=r;function i(a){let o=a;return Jr.string(o)||Jr.objectLiteral(o)&&Jr.string(o.language)&&Jr.string(o.value)}ee(i,"is"),e.is=i}(Xae||(Xae={})),function(e){function r(i){let a=i;return!!a&&Jr.objectLiteral(a)&&(x7.is(a.contents)||Xae.is(a.contents)||Jr.typedArray(a.contents,Xae.is))&&(i.range===void 0||$c.is(i.range))}ee(r,"is"),e.is=r}(qlt||(qlt={})),function(e){function r(i,a){return a?{label:i,documentation:a}:{label:i}}ee(r,"create"),e.create=r}(Ylt||(Ylt={})),function(e){function r(i,a,...o){let l={label:i};if(Jr.defined(a))l.documentation=a;if(Jr.defined(o))l.parameters=o;else l.parameters=[];return l}ee(r,"create"),e.create=r}(Wlt||(Wlt={})),function(e){e.Text=1,e.Read=2,e.Write=3}(jlt||(jlt={})),function(e){function r(i,a){let o={range:i};if(Jr.number(a))o.kind=a;return o}ee(r,"create"),e.create=r}(Klt||(Klt={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Xlt||(Xlt={})),function(e){e.Deprecated=1}(Qlt||(Qlt={})),function(e){function r(i,a,o,l,h){let d={name:i,kind:a,location:{uri:l,range:o}};if(h)d.containerName=h;return d}ee(r,"create"),e.create=r}(Zlt||(Zlt={})),function(e){function r(i,a,o,l){return l!==void 0?{name:i,kind:a,location:{uri:o,range:l}}:{name:i,kind:a,location:{uri:o}}}ee(r,"create"),e.create=r}(Jlt||(Jlt={})),function(e){function r(a,o,l,h,d,p){let m={name:a,detail:o,kind:l,range:h,selectionRange:d};if(p!==void 0)m.children=p;return m}ee(r,"create"),e.create=r;function i(a){let o=a;return o&&Jr.string(o.name)&&Jr.number(o.kind)&&$c.is(o.range)&&$c.is(o.selectionRange)&&(o.detail===void 0||Jr.string(o.detail))&&(o.deprecated===void 0||Jr.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}ee(i,"is"),e.is=i}(ect||(ect={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(tct||(tct={})),function(e){e.Invoked=1,e.Automatic=2}(Qae||(Qae={})),function(e){function r(a,o,l){let h={diagnostics:a};if(o!==void 0&&o!==null)h.only=o;if(l!==void 0&&l!==null)h.triggerKind=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.typedArray(o.diagnostics,Wae.is)&&(o.only===void 0||Jr.typedArray(o.only,Jr.string))&&(o.triggerKind===void 0||o.triggerKind===Qae.Invoked||o.triggerKind===Qae.Automatic)}ee(i,"is"),e.is=i}(rct||(rct={})),function(e){e.LLMGenerated=1;function r(i){return Jr.defined(i)&&i===e.LLMGenerated}ee(r,"is"),e.is=r}(Jxe||(Jxe={})),function(e){function r(a,o,l){let h={title:a},d=!0;if(typeof o==="string")d=!1,h.kind=o;else if(FB.is(o))h.command=o;else h.edit=o;if(d&&l!==void 0)h.kind=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return o&&Jr.string(o.title)&&(o.diagnostics===void 0||Jr.typedArray(o.diagnostics,Wae.is))&&(o.kind===void 0||Jr.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||FB.is(o.command))&&(o.isPreferred===void 0||Jr.boolean(o.isPreferred))&&(o.edit===void 0||Qxe.is(o.edit))&&(o.tags===void 0||Jr.typedArray(o.tags,Jxe.is))}ee(i,"is"),e.is=i}(nct||(nct={})),function(e){function r(a,o){let l={range:a};if(Jr.defined(o))l.data=o;return l}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&$c.is(o.range)&&(Jr.undefined(o.command)||FB.is(o.command))}ee(i,"is"),e.is=i}(ict||(ict={})),function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.uinteger(o.tabSize)&&Jr.boolean(o.insertSpaces)}ee(i,"is"),e.is=i}(act||(act={})),function(e){function r(a,o,l){return{range:a,target:o,data:l}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&$c.is(o.range)&&(Jr.undefined(o.target)||Jr.string(o.target))}ee(i,"is"),e.is=i}(sct||(sct={})),function(e){function r(a,o){return{range:a,parent:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.range)&&(o.parent===void 0||e.is(o.parent))}ee(i,"is"),e.is=i}(oct||(oct={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(lct||(lct={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(cct||(cct={})),function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId==="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]==="number")}ee(r,"is"),e.is=r}(uct||(uct={})),function(e){function r(a,o){return{range:a,text:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return o!==void 0&&o!==null&&$c.is(o.range)&&Jr.string(o.text)}ee(i,"is"),e.is=i}(hct||(hct={})),function(e){function r(a,o,l){return{range:a,variableName:o,caseSensitiveLookup:l}}ee(r,"create"),e.create=r;function i(a){let o=a;return o!==void 0&&o!==null&&$c.is(o.range)&&Jr.boolean(o.caseSensitiveLookup)&&(Jr.string(o.variableName)||o.variableName===void 0)}ee(i,"is"),e.is=i}(dct||(dct={})),function(e){function r(a,o){return{range:a,expression:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return o!==void 0&&o!==null&&$c.is(o.range)&&(Jr.string(o.expression)||o.expression===void 0)}ee(i,"is"),e.is=i}(fct||(fct={})),function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&$c.is(a.stoppedLocation)}ee(i,"is"),e.is=i}(pct||(pct={})),function(e){e.Type=1,e.Parameter=2;function r(i){return i===1||i===2}ee(r,"is"),e.is=r}(eCe||(eCe={})),function(e){function r(a){return{value:a}}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&(o.tooltip===void 0||Jr.string(o.tooltip)||x7.is(o.tooltip))&&(o.location===void 0||Yae.is(o.location))&&(o.command===void 0||FB.is(o.command))}ee(i,"is"),e.is=i}(tCe||(tCe={})),function(e){function r(a,o,l){let h={position:a,label:o};if(l!==void 0)h.kind=l;return h}ee(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Th.is(o.position)&&(Jr.string(o.label)||Jr.typedArray(o.label,tCe.is))&&(o.kind===void 0||eCe.is(o.kind))&&o.textEdits===void 0||Jr.typedArray(o.textEdits,H3.is)&&(o.tooltip===void 0||Jr.string(o.tooltip)||x7.is(o.tooltip))&&(o.paddingLeft===void 0||Jr.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Jr.boolean(o.paddingRight))}ee(i,"is"),e.is=i}(gct||(gct={})),function(e){function r(a){return{kind:"snippet",value:a}}ee(r,"createSnippet"),e.createSnippet=r;function i(a){let o=a;return Jr.objectLiteral(o)&&o.kind==="snippet"&&Jr.string(o.value)}ee(i,"isSnippet"),e.isSnippet=i}(rCe||(rCe={})),function(e){function r(i,a,o,l){return{insertText:i,filterText:a,range:o,command:l}}ee(r,"create"),e.create=r}(mct||(mct={})),function(e){function r(i){return{items:i}}ee(r,"create"),e.create=r}(bct||(bct={})),function(e){e.Invoked=1,e.Automatic=2}(yct||(yct={})),function(e){function r(i,a){return{range:i,text:a}}ee(r,"create"),e.create=r}(vct||(vct={})),function(e){function r(i,a){return{triggerKind:i,selectedCompletionInfo:a}}ee(r,"create"),e.create=r}(_ct||(_ct={})),function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&jxe.is(a.uri)&&Jr.string(a.name)}ee(r,"is"),e.is=r}(Ect||(Ect={})),qBr=[` +`}function hu(e){return{documentation:{CommentProvider:te((r)=>new ayi(r),"CommentProvider"),DocumentationProvider:te((r)=>new iyi(r),"DocumentationProvider")},parser:{AsyncParser:te((r)=>new syi(r),"AsyncParser"),GrammarConfig:te((r)=>WFr(r),"GrammarConfig"),LangiumParser:te((r)=>gHr(r),"LangiumParser"),CompletionParser:te((r)=>pHr(r),"CompletionParser"),ValueConverter:te(()=>new yHr,"ValueConverter"),TokenBuilder:te(()=>new bHr,"TokenBuilder"),Lexer:te((r)=>new eyi(r),"Lexer"),ParserErrorMessageProvider:te(()=>new rHr,"ParserErrorMessageProvider"),LexerErrorMessageProvider:te(()=>new Zbi,"LexerErrorMessageProvider")},workspace:{AstNodeLocator:te(()=>new Ybi,"AstNodeLocator"),AstNodeDescriptionProvider:te((r)=>new Hbi(r),"AstNodeDescriptionProvider"),ReferenceDescriptionProvider:te((r)=>new qbi(r),"ReferenceDescriptionProvider")},references:{Linker:te((r)=>new Ibi(r),"Linker"),NameProvider:te(()=>new Obi,"NameProvider"),ScopeProvider:te((r)=>new Fbi(r),"ScopeProvider"),ScopeComputation:te((r)=>new Lbi(r),"ScopeComputation"),References:te((r)=>new Nbi(r),"References")},serializer:{Hydrator:te((r)=>new lyi(r),"Hydrator"),JsonSerializer:te((r)=>new $bi(r),"JsonSerializer")},validation:{DocumentValidator:te((r)=>new Vbi(r),"DocumentValidator"),ValidationRegistry:te((r)=>new Gbi(r),"ValidationRegistry")},shared:te(()=>e.shared,"shared")}}function du(e){return{ServiceRegistry:te((r)=>new Ubi(r),"ServiceRegistry"),workspace:{LangiumDocuments:te((r)=>new kbi(r),"LangiumDocuments"),LangiumDocumentFactory:te((r)=>new Cbi(r),"LangiumDocumentFactory"),DocumentBuilder:te((r)=>new Kbi(r),"DocumentBuilder"),IndexManager:te((r)=>new Xbi(r),"IndexManager"),WorkspaceManager:te((r)=>new Qbi(r),"WorkspaceManager"),FileSystemProvider:te((r)=>e.fileSystemProvider(r),"FileSystemProvider"),WorkspaceLock:te(()=>new oyi,"WorkspaceLock"),ConfigurationProvider:te((r)=>new jbi(r),"ConfigurationProvider")},profilers:{}}}function $o(e,r,i,a,o,l,h,d,p){let m=[e,r,i,a,o,l,h,d,p].reduce(CY,{});return jht(m)}function jht(e,r){let i=new Proxy({},{deleteProperty:te(()=>!1,"deleteProperty"),set:te(()=>{throw Error("Cannot set property on injected service container")},"set"),get:te((a,o)=>{if(o===cyi)return!0;else return mut(a,o,e,r||i)},"get"),getOwnPropertyDescriptor:te((a,o)=>(mut(a,o,e,r||i),Object.getOwnPropertyDescriptor(a,o)),"getOwnPropertyDescriptor"),has:te((a,o)=>(o in e),"has"),ownKeys:te(()=>[...Object.getOwnPropertyNames(e)],"ownKeys")});return i}function mut(e,r,i,a){if(r in e){if(e[r]instanceof Error)throw Error("Construction failure. Please make sure that your dependencies are constructable. Cause: "+e[r]);if(e[r]===xBr)throw Error('Cycle detected. Please make "'+String(r)+'" lazy. Visit https://langium.org/docs/reference/configuration-services/#resolving-cyclic-dependencies');return e[r]}else if(r in i){let o=i[r];e[r]=xBr;try{e[r]=typeof o==="function"?o(a):jht(o,a)}catch(l){throw e[r]=l instanceof Error?l:void 0,l}return e[r]}else return}function CY(e,r){if(r)for(let[i,a]of Object.entries(r)){if(i==="__proto__"||i==="constructor"||i==="prototype")continue;if(a!==void 0&&a!==null)if(typeof a==="object"){let o=e[i];if(typeof o==="object"&&o!==null)e[i]=CY(o,a);else e[i]=CY({},a)}else e[i]=a}return e}function GHr(){let e=$o(du(Du),dyi),r=$o(hu({shared:e}),hyi);return e.ServiceRegistry.register(r),r}function uy(e){let r=GHr(),i=r.serializer.JsonSerializer.deserialize(e);return r.shared.workspace.LangiumDocumentFactory.fromModel(i,rw.parse(`memory:/${i.name??"grammar"}.langium`)),i}function Kht(e){return D0.isInstance(e,mT.$type)}function Xht(e){return D0.isInstance(e,vY.$type)}function Qht(e){return D0.isInstance(e,L7.$type)}function Zht(e){return D0.isInstance(e,vI.$type)}function Jht(e){return D0.isInstance(e,_Y.$type)}function edt(e){return D0.isInstance(e,Bse.$type)}function tdt(e){return e==="rmo"||e==="readmodel"||e==="ui"||e==="cmd"||e==="command"||e==="evt"||e==="event"||e==="pcr"||e==="processor"}function Kse(e){return D0.isInstance(e,fI.$type)}function rdt(e){return D0.isInstance(e,_I.$type)}function ndt(e){return D0.isInstance(e,ZB.$type)}function idt(e){return D0.isInstance(e,M7.$type)}function adt(e){return D0.isInstance(e,D7.$type)}function sdt(e){return D0.isInstance(e,P7.$type)}function odt(e){return D0.isInstance(e,EI.$type)}function ldt(e){return D0.isInstance(e,EY.$type)}function cdt(e){return D0.isInstance(e,B7.$type)}function udt(e){return D0.isInstance(e,F7.$type)}function hdt(e){return D0.isInstance(e,$7.$type)}function ddt(e){return D0.isInstance(e,U7.$type)}function fdt(e){return D0.isInstance(e,JB.$type)}function pdt(e){return D0.isInstance(e,G7.$type)}function gdt(e){return D0.isInstance(e,cm.$type)}var Bfi,Fse,Ffi,Nut,$fi,Ufi,te=(e,r)=>Fse(e,"name",{value:r,configurable:!0}),Gfi=(e,r)=>function(){return e&&(r=(0,e[Nut(e)[0]])(e=0)),r},Ul=(e,r)=>function(){return r||(0,e[Nut(e)[0]])((r={exports:{}}).exports,r),r.exports},zfi=(e,r)=>{for(var i in r)Fse(e,i,{get:r[i],enumerable:!0})},qBr=(e,r,i,a)=>{if(r&&typeof r==="object"||typeof r==="function"){for(let o of Nut(r))if(!Ufi.call(e,o)&&o!==i)Fse(e,o,{get:()=>r[o],enumerable:!(a=Ffi(r,o))||a.enumerable})}return e},Lut=(e,r,i)=>(i=e!=null?Bfi($fi(e)):{},qBr(r||!e||!e.__esModule?Fse(i,"default",{value:e,enumerable:!0}):i,e)),Mut=(e)=>qBr(Fse({},"__esModule",{value:!0}),e),$se,YBr,WBr,Vfi,iF,Use,Dut,Hfi,jBr,qfi,Yfi,Wfi,jfi,Gse,x4e,Tlt,Qxe,xlt,jae,Th,$c,Kae,Clt,Zxe,klt,Alt,Rlt,Ilt,Jxe,Olt,Nlt,Llt,Xae,UB,q3,C7,s1,hI,Qae,tY,rY,nY,eCe,Bae,Mlt,rlt,KBr,Dlt,Plt,Zae,Blt,Flt,tCe,k7,$lt,Ult,Glt,zlt,Vlt,Hlt,qlt,Ylt,Wlt,Jae,jlt,Klt,Xlt,Qlt,Zlt,Jlt,ect,tct,rct,nct,ict,ese,act,rCe,sct,oct,lct,cct,uct,hct,dct,fct,pct,gct,mct,bct,nCe,iCe,yct,aCe,vct,_ct,Ect,wct,Sct,Tct,XBr,xct,xPr,Jr,C4e,wf,Put,Kfi,Xfi,Qfi,Zfi,Jfi,epi,tpi,rpi,npi,ipi,api,spi,opi,lpi,cpi,upi,hpi,dpi,fpi,ppi,gpi,mpi,bpi,ypi,But,ZBr,z7,eFr,tw,CCe,Cct,ew,sCe,Oxe,BC,GB,oCe,CPr,kPr,zB,Act,VB,Qq,lCe,HB,cCe,Rct,BB,APr,iY,Ict,dI,nlt,RPr,tse,rse,Nxe,aY,Oct,IPr,Lxe,Nct,Y3,ilt,sY,Lct,oY,nse,OPr,lY,gT,cY,A7,uY,uCe,Fae,$ae,NPr,hCe,hY,Uae,ise,_Fr,Mu,yI,vpi,kFr,OCe,NCe,LPr,_pi,Mxe,Epi,AFr,R4e,wpi,Spi,Tpi,alt,xpi,eht,J3,xv,IY,c2,eb,nw,iw,qp,u2,h2,Ud,OY,N4e,r$r="_~IN~_",Cpi,pCe,kpi,s$r="Complement Sets are not supported for first char optimization",MCe=`Unable to use "first char" lexer optimizations: +`,Api,rF="PATTERN",ose="defaultMode",Dxe="modes",Fct=0,gCe=1,$ct=2,Uct=3,Rpi,Ipi,Opi,lse=256,bCe,MPr=1,O$r,Vct,Yp,cse,l2,Npi="parent",DPr="categories",PPr="label",BPr="group",FPr="push_mode",$Pr="pop_mode",UPr="longer_alt",GPr="line_breaks",zPr="start_chars_hint",xI,gY,Lpi,QB,Mpi,Dpi,Ppi,P4e,Bpi,VPr,Fpi,HPr,sp,$pi,W$r,Upi,ght,Gpi,hUr="MismatchedTokenException",dUr="NoViableAltException",fUr="EarlyExitException",pUr="NotAllInputParsedException",gUr,F4e,mUr,zpi,Vpi,Hpi,slt,bUr="InRuleRecoveryException",qpi,Ypi,PY=8,vUr,_Ur,Yct,Wct,jct,vCe,mht,Wpi,jpi,Pxe,Kpi="name",Qct,Xpi,Qpi,Zpi,Jpi,e0i,$4e,qPr=!0,YPr=255,RUr,IUr,t0i,r0i,n0i,TY,CI,$Ce,Cv,yht,i0i,MUr,a0i,BUr,U4e,s0i,o0i,l0i,c0i,u0i,h0i,G4e,d0i,f0i,p0i,g0i,m0i,WUr,b0i,y0i,kI,v0i,X3,jUr,_0i,E0i,Gae,w0i,S0i,T0i,x0i,C0i="[object Null]",k0i="[object Undefined]",WPr,BY,vht,A0i="[object AsyncFunction]",R0i="[object Function]",I0i="[object GeneratorFunction]",O0i="[object Proxy]",eGr,N0i,olt,jPr,L0i,M0i,D0i,oF,P0i,B0i,F0i,$0i,U0i,G0i,z0i,V0i,H0i,FY,q0i,Ose,Y0i,Nse,W0i,j0i,K0i="__lodash_hash_undefined__",X0i,Q0i,Z0i,J0i,egi,tgi,rgi="__lodash_hash_undefined__",ngi,KPr,igi,agi,z4e,sgi,ogi,lgi,cgi,V4e,ugi=200,hgi,_Ce,dgi="__lodash_hash_undefined__",fgi,pgi,EGr,ggi,TGr,mgi=1,bgi=2,CGr,ygi,XPr,vgi,_ht,_gi=1,Egi=2,wgi="[object Boolean]",Sgi="[object Date]",Tgi="[object Error]",xgi="[object Map]",Cgi="[object Number]",kgi="[object RegExp]",Agi="[object Set]",Rgi="[object String]",Igi="[object Symbol]",Ogi="[object ArrayBuffer]",Ngi="[object DataView]",QPr,llt,Lgi,OGr,Mgi,kv,Dgi,MGr,Pgi,Bgi,Fgi,ZPr,$gi,Ugi,Ggi,xY,zgi="[object Arguments]",JPr,$Gr,Vgi,Hgi,qgi,H4e,Ygi,GGr,eBr,Wgi,tBr,jgi,Kgi,UCe,Xgi=9007199254740991,Qgi,VGr,Zgi=9007199254740991,Eht,Jgi="[object Arguments]",emi="[object Array]",tmi="[object Boolean]",rmi="[object Date]",nmi="[object Error]",imi="[object Function]",ami="[object Map]",smi="[object Number]",omi="[object Object]",lmi="[object RegExp]",cmi="[object Set]",umi="[object String]",hmi="[object WeakMap]",dmi="[object ArrayBuffer]",fmi="[object DataView]",pmi="[object Float32Array]",gmi="[object Float64Array]",mmi="[object Int8Array]",bmi="[object Int16Array]",ymi="[object Int32Array]",vmi="[object Uint8Array]",_mi="[object Uint8ClampedArray]",Emi="[object Uint16Array]",wmi="[object Uint32Array]",$d,Smi,Tmi,WGr,fse,xmi,clt,Cmi,rBr,nBr,kmi,wht,Ami,Rmi,Imi,Omi,XGr,Nmi,Lmi,Mmi,Dmi,Pmi,JGr,q4e,Sht,iBr,Bmi=1,Fmi,$mi,Umi,Gmi,eut,zmi,tut,Vmi,yY,Hmi,rut,aBr="[object Map]",qmi="[object Object]",sBr="[object Promise]",oBr="[object Set]",lBr="[object WeakMap]",cBr="[object DataView]",Ymi,Wmi,jmi,Kmi,Xmi,YB,nut,Qmi=1,uBr="[object Arguments]",hBr="[object Array]",Bxe="[object Object]",Zmi,dBr,Jmi,azr,e1i=1,t1i=2,r1i,lzr,n1i,hzr,i1i,a1i="[object Symbol]",Y4e,s1i,o1i,xht,l1i="Expected a function",c1i,u1i=500,h1i,d1i,f1i,p1i,g1i,m1i=1/0,fBr,pBr,b1i,y1i,yzr,v1i=1/0,j4e,Ezr,_1i,E1i,w1i,S1i,T1i=1,x1i=2,C1i,kht,k1i,A1i,R1i,K4e,I1i,O1i,N1i,L1i,M1i,D1i,X4e,P1i,wI,B1i,F1i,W7=1,$1i=2,$zr=4,Uzr=5,hF=7,U1i=8,G1i=9,z1i=10,V1i=11,Gzr=12,Aht,Q4e,zzr,Z4e,GCe,iut,H1i,q1i,Y1i,gBr,W1i,oVr,j1i,K1i,X1i,Q1i,Z1i,J1i,ebi,tbi,rbi=1/0,nbi,ibi,abi=200,sbi,obi,lbi,cbi,ubi,ult,hbi="[object Map]",dbi="[object Set]",fbi,pbi,gbi,mbi,bbi,mBr,kVr,bBr,ybi,XVr,QVr,ZVr,Pht,JVr,lut,yBr="​",eHr,tHr,vbi,_bi,rHr,Ebi,wbi,nHr,Sbi,bHr,yHr,pI,op,SCe=0,Tbi=10,mY,Uht,vBr,cut,wHr,rw,zae,yT,xbi,kc,Cbi,kbi,Zq,Abi,Rbi,Ibi,Obi,Nbi,Pse,_Br,Lbi,EBr,Mbi,THr,Dbi,Pbi,Bbi,Fbi,$bi,Ubi,dut,Gbi,zbi,Vbi,zC,Hbi,qbi,Ybi,Wbi,jbi,Fxe,pse,Kbi,Xbi,Qbi,Zbi,Jbi,eyi,wBr,tyi,ryi,nyi,SBr,hlt,put,UHr,iyi,ayi,syi,qCe,oyi,lyi,TBr,cyi,xBr,uyi,Du,hyi,dyi,but,yut,vut,_ut,Eut,wut,Sut,Tut,xut,Cut,kut,Aut,Rut,Iut,Out,WZa,YCe,WCe,gse,jCe,KCe,XCe,R7,mse,QCe,ZCe,$xe,dlt,Uxe,Vae,flt,mT,Gxe,vY,CBr,zxe,plt,L7,Vxe,FB,Hxe,vI,qxe,kBr,Jq,_Y,Bse,JCe,e4e,t4e,r4e,n4e,i4e,a4e,jB,gI,s4e,bse,o4e,l4e,yse,c4e,u4e,H3,I7,mI,Hae,ABr,glt,Yxe,fI,x7,mlt,FC,RBr,Wxe,blt,_I,qae,ZB,Yae,ylt,Wae,jxe,$B,M7,Kxe,vlt,D7,P7,h4e,d4e,f4e,p4e,g4e,vse,KB,_se,m4e,Ese,EI,EY,_lt,Xxe,bI,B7,F7,b4e,$7,$C,y4e,v4e,_4e,U7,wse,E4e,w4e,S4e,T4e,Elt,eY,wlt,O7,JB,G7,Slt,N7,XB,cm,zHr,D0,IBr,fyi,OBr,pyi,NBr,gyi,LBr,myi,MBr,byi,DBr,yyi,PBr,vyi,BBr,_yi,FBr,Eyi,$Br,wyi,UBr,Syi,GBr,Tyi,zBr,xyi,VBr,Cyi,HBr,kyi,Ayi,Ryi,Iyi,Oyi,Nyi,Lyi,Myi,Dyi,Pyi,Byi,Fyi,$yi,Uyi,Gyi,zyi,Pu,nke,ike,ake,ske,oke,lke,cke,uke,hke,dke,fke,pke,gke,mke,bke,Vyi,Hyi,qyi,Yyi,P0,d2,Xu,VHr;var Bu=Re(()=>{Bfi=Object.create,Fse=Object.defineProperty,Ffi=Object.getOwnPropertyDescriptor,Nut=Object.getOwnPropertyNames,$fi=Object.getPrototypeOf,Ufi=Object.prototype.hasOwnProperty,$se=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=r,e.string=i,e.number=a,e.error=o,e.func=l,e.array=h,e.stringArray=d;function r(p){return p===!0||p===!1}te(r,"boolean");function i(p){return typeof p==="string"||p instanceof String}te(i,"string");function a(p){return typeof p==="number"||p instanceof Number}te(a,"number");function o(p){return p instanceof Error}te(o,"error");function l(p){return typeof p==="function"}te(l,"func");function h(p){return Array.isArray(p)}te(h,"array");function d(p){return h(p)&&p.every((m)=>i(m))}te(d,"stringArray")}}),YBr=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messages.js"(e){var r=e&&e.__createBinding||(Object.create?function(j,ee,z,ne){if(ne===void 0)ne=z;var ie=Object.getOwnPropertyDescriptor(ee,z);if(!ie||("get"in ie?!ee.__esModule:ie.writable||ie.configurable))ie={enumerable:!0,get:te(function(){return ee[z]},"get")};Object.defineProperty(j,ne,ie)}:function(j,ee,z,ne){if(ne===void 0)ne=z;j[ne]=ee[z]}),i=e&&e.__setModuleDefault||(Object.create?function(j,ee){Object.defineProperty(j,"default",{enumerable:!0,value:ee})}:function(j,ee){j.default=ee}),a=e&&e.__importStar||function(){var j=te(function(ee){return j=Object.getOwnPropertyNames||function(z){var ne=[];for(var ie in z)if(Object.prototype.hasOwnProperty.call(z,ie))ne[ne.length]=ie;return ne},j(ee)},"ownKeys");return function(ee){if(ee&&ee.__esModule)return ee;var z={};if(ee!=null){for(var ne=j(ee),ie=0;ieh,next:te(()=>{if(this._state!==o)throw Error("LinkedMap got modified during iteration.");if(l){let d={value:l.key,done:!1};return l=l.next,d}else return{value:void 0,done:!0}},"next")};return h}values(){let o=this._state,l=this._head,h={[Symbol.iterator]:()=>h,next:te(()=>{if(this._state!==o)throw Error("LinkedMap got modified during iteration.");if(l){let d={value:l.value,done:!1};return l=l.next,d}else return{value:void 0,done:!0}},"next")};return h}entries(){let o=this._state,l=this._head,h={[Symbol.iterator]:()=>h,next:te(()=>{if(this._state!==o)throw Error("LinkedMap got modified during iteration.");if(l){let d={value:[l.key,l.value],done:!1};return l=l.next,d}else return{value:void 0,done:!0}},"next")};return h}[Symbol.iterator](){return this.entries()}trimOld(o){if(o>=this.size)return;if(o===0){this.clear();return}let l=this._head,h=this.size;while(l&&h>o)this._map.delete(l.key),l=l.next,h--;if(this._head=l,this._size=h,l)l.previous=void 0;this._state++}addItemFirst(o){if(!this._head&&!this._tail)this._tail=o;else if(!this._head)throw Error("Invalid list");else o.next=this._head,this._head.previous=o;this._head=o,this._state++}addItemLast(o){if(!this._head&&!this._tail)this._head=o;else if(!this._tail)throw Error("Invalid list");else o.previous=this._tail,this._tail.next=o;this._tail=o,this._state++}removeItem(o){if(o===this._head&&o===this._tail)this._head=void 0,this._tail=void 0;else if(o===this._head){if(!o.next)throw Error("Invalid list");o.next.previous=void 0,this._head=o.next}else if(o===this._tail){if(!o.previous)throw Error("Invalid list");o.previous.next=void 0,this._tail=o.previous}else{let{next:l,previous:h}=o;if(!l||!h)throw Error("Invalid list");l.previous=h,h.next=l}o.next=void 0,o.previous=void 0,this._state++}touch(o,l){if(!this._head||!this._tail)throw Error("Invalid list");if(l!==r.First&&l!==r.Last)return;if(l===r.First){if(o===this._head)return;let{next:h,previous:d}=o;if(o===this._tail)d.next=void 0,this._tail=d;else h.previous=d,d.next=h;o.previous=void 0,o.next=this._head,this._head.previous=o,this._head=o,this._state++}else if(l===r.Last){if(o===this._tail)return;let{next:h,previous:d}=o;if(o===this._head)h.previous=void 0,this._head=h;else h.previous=d,d.next=h;o.next=void 0,o.previous=this._tail,this._tail.next=o,this._tail=o,this._state++}}toJSON(){let o=[];return this.forEach((l,h)=>{o.push([h,l])}),o}fromJSON(o){this.clear();for(let[l,h]of o)this.set(l,h)}};e.LinkedMap=i;var a=class extends i{static{te(this,"LRUCache")}_limit;_ratio;constructor(o,l=1){super();this._limit=o,this._ratio=Math.min(Math.max(0,l),1)}get limit(){return this._limit}set limit(o){this._limit=o,this.checkTrim()}get ratio(){return this._ratio}set ratio(o){this._ratio=Math.min(Math.max(0,o),1),this.checkTrim()}get(o,l=r.AsNew){return super.get(o,l)}peek(o){return super.get(o,r.None)}set(o,l){return super.set(o,l,r.Last),this.checkTrim(),this}checkTrim(){if(this.size>this._limit)this.trimOld(Math.round(this._limit*this._ratio))}};e.LRUCache=a}}),Vfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/disposable.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Disposable=void 0;var r;(function(i){function a(o){return{dispose:o}}te(a,"create"),i.create=a})(r||(e.Disposable=r={}))}}),iF=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/ral.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var r;function i(){if(r===void 0)throw Error("No runtime abstraction layer installed");return r}te(i,"RAL"),function(a){function o(l){if(l===void 0)throw Error("No runtime abstraction layer provided");r=l}te(o,"install"),a.install=o}(i||(i={})),e.default=i}}),Use=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/events.js"(e){var r=e&&e.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;var i=r(iF()),a;(function(h){let d={dispose(){}};h.None=function(){return d}})(a||(e.Event=a={}));var o=class{static{te(this,"CallbackList")}_callbacks;_contexts;add(h,d=null,p){if(!this._callbacks)this._callbacks=[],this._contexts=[];if(this._callbacks.push(h),this._contexts.push(d),Array.isArray(p))p.push({dispose:te(()=>this.remove(h,d),"dispose")})}remove(h,d=null){if(!this._callbacks)return;let p=!1;for(let m=0,y=this._callbacks.length;m{if(!this._callbacks)this._callbacks=new o;if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty())this._options.onFirstListenerAdd(this);this._callbacks.add(d,p);let y={dispose:te(()=>{if(!this._callbacks)return;if(this._callbacks.remove(d,p),y.dispose=h._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty())this._options.onLastListenerRemove(this)},"dispose")};if(Array.isArray(m))m.push(y);return y};return this._event}fire(d){if(this._callbacks)this._callbacks.invoke.call(this._callbacks,d)}dispose(){if(this._callbacks)this._callbacks.dispose(),this._callbacks=void 0}};e.Emitter=l}}),Dut=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/cancellation.js"(e){var r=e&&e.__createBinding||(Object.create?function(w,T,x,k){if(k===void 0)k=x;var A=Object.getOwnPropertyDescriptor(T,x);if(!A||("get"in A?!T.__esModule:A.writable||A.configurable))A={enumerable:!0,get:te(function(){return T[x]},"get")};Object.defineProperty(w,k,A)}:function(w,T,x,k){if(k===void 0)k=x;w[k]=T[x]}),i=e&&e.__setModuleDefault||(Object.create?function(w,T){Object.defineProperty(w,"default",{enumerable:!0,value:T})}:function(w,T){w.default=T}),a=e&&e.__importStar||function(){var w=te(function(T){return w=Object.getOwnPropertyNames||function(x){var k=[];for(var A in x)if(Object.prototype.hasOwnProperty.call(x,A))k[k.length]=A;return k},w(T)},"ownKeys");return function(T){if(T&&T.__esModule)return T;var x={};if(T!=null){for(var k=w(T),A=0;A{this._waiting.push({thunk:o,resolve:l,reject:h}),this.runNext()})}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity)return;(0,i.default)().timer.setImmediate(()=>this.doRunNext())}doRunNext(){if(this._waiting.length===0||this._active===this._capacity)return;let o=this._waiting.shift();if(this._active++,this._active>this._capacity)throw Error("Too many thunks active");try{let l=o.thunk();if(l instanceof Promise)l.then((h)=>{this._active--,o.resolve(h),this.runNext()},(h)=>{this._active--,o.reject(h),this.runNext()});else this._active--,o.resolve(l),this.runNext()}catch(l){this._active--,o.reject(l),this.runNext()}}};e.Semaphore=a}}),qfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageReader.js"(e){var r=e&&e.__createBinding||(Object.create?function(T,x,k,A){if(A===void 0)A=k;var R=Object.getOwnPropertyDescriptor(x,k);if(!R||("get"in R?!x.__esModule:R.writable||R.configurable))R={enumerable:!0,get:te(function(){return x[k]},"get")};Object.defineProperty(T,A,R)}:function(T,x,k,A){if(A===void 0)A=k;T[A]=x[k]}),i=e&&e.__setModuleDefault||(Object.create?function(T,x){Object.defineProperty(T,"default",{enumerable:!0,value:x})}:function(T,x){T.default=x}),a=e&&e.__importStar||function(){var T=te(function(x){return T=Object.getOwnPropertyNames||function(k){var A=[];for(var R in k)if(Object.prototype.hasOwnProperty.call(k,R))A[A.length]=R;return A},T(x)},"ownKeys");return function(x){if(x&&x.__esModule)return x;var k={};if(x!=null){for(var A=T(x),R=0;R{this.onData(k)});return this.readable.onError((k)=>this.fireError(k)),this.readable.onClose(()=>this.fireClose()),x}onData(T){try{this.buffer.append(T);while(!0){if(this.nextMessageLength===-1){let k=this.buffer.tryReadHeaders(!0);if(!k)return;let A=k.get("content-length");if(!A){this.fireError(Error(`Header must provide a Content-Length property. +${JSON.stringify(Object.fromEntries(k))}`));return}let R=parseInt(A);if(isNaN(R)){this.fireError(Error(`Content-Length value must be a number. Got ${A}`));return}this.nextMessageLength=R}let x=this.buffer.tryReadBody(this.nextMessageLength);if(x===void 0){this.setPartialMessageTimer();return}this.clearPartialMessageTimer(),this.nextMessageLength=-1,this.readSemaphore.lock(async()=>{let k=this.options.contentDecoder!==void 0?await this.options.contentDecoder.decode(x):x,A=await this.options.contentTypeDecoder.decode(k,this.options);this.callback(A)}).catch((k)=>{this.fireError(k)})}}catch(x){this.fireError(x)}}clearPartialMessageTimer(){if(this.partialMessageTimer)this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0}setPartialMessageTimer(){if(this.clearPartialMessageTimer(),this._partialMessageTimeout<=0)return;this.partialMessageTimer=(0,l.default)().timer.setTimeout((T,x)=>{if(this.partialMessageTimer=void 0,T===this.messageToken)this.firePartialMessage({messageToken:T,waitingTime:x}),this.setPartialMessageTimer()},this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}};e.ReadableStreamMessageReader=w}}),Yfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageWriter.js"(e){var r=e&&e.__createBinding||(Object.create?function(k,A,R,N){if(N===void 0)N=R;var L=Object.getOwnPropertyDescriptor(A,R);if(!L||("get"in L?!A.__esModule:L.writable||L.configurable))L={enumerable:!0,get:te(function(){return A[R]},"get")};Object.defineProperty(k,N,L)}:function(k,A,R,N){if(N===void 0)N=R;k[N]=A[R]}),i=e&&e.__setModuleDefault||(Object.create?function(k,A){Object.defineProperty(k,"default",{enumerable:!0,value:A})}:function(k,A){k.default=A}),a=e&&e.__importStar||function(){var k=te(function(A){return k=Object.getOwnPropertyNames||function(R){var N=[];for(var L in R)if(Object.prototype.hasOwnProperty.call(R,L))N[N.length]=L;return N},k(A)},"ownKeys");return function(A){if(A&&A.__esModule)return A;var R={};if(A!=null){for(var N=k(A),L=0;Lthis.fireError(R)),this.writable.onClose(()=>this.fireClose())}async write(k){return this.writeSemaphore.lock(async()=>this.options.contentTypeEncoder.encode(k,this.options).then((R)=>{if(this.options.contentEncoder!==void 0)return this.options.contentEncoder.encode(R);else return R}).then((R)=>{let N=[];return N.push(m,R.byteLength.toString(),y),N.push(y),this.doWrite(k,N,R)},(R)=>{throw this.fireError(R),R}))}async doWrite(k,A,R){try{return await this.writable.write(A.join(""),"ascii"),this.writable.write(R)}catch(N){return this.handleError(N,k),Promise.reject(N)}}handleError(k,A){this.errorCount++,this.fireError(k,A,this.errorCount)}end(){this.writable.end()}};e.WriteableStreamMessageWriter=x}}),Wfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractMessageBuffer=void 0;var r=13,i=10,a=`\r +`,o=class{static{te(this,"AbstractMessageBuffer")}_encoding;_chunks;_totalLength;constructor(l="utf-8"){this._encoding=l,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(l){let h=typeof l==="string"?this.fromString(l,this._encoding):l;this._chunks.push(h),this._totalLength+=h.byteLength}tryReadHeaders(l=!1){if(this._chunks.length===0)return;let h=0,d=0,p=0,m=0;e:while(dthis._totalLength)throw Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===l){let m=this._chunks[0];return this._chunks.shift(),this._totalLength-=l,this.asNative(m)}if(this._chunks[0].byteLength>l){let m=this._chunks[0],y=this.asNative(m,l);return this._chunks[0]=m.slice(l),this._totalLength-=l,y}let h=this.allocNative(l),d=0,p=0;while(l>0){let m=this._chunks[p];if(m.byteLength>l){let y=m.slice(0,l);h.set(y,d),d+=l,this._chunks[p]=m.slice(l),this._totalLength-=l,l-=l}else h.set(m,d),d+=m.byteLength,this._chunks.shift(),this._totalLength-=m.byteLength,l-=m.byteLength}return h}};e.AbstractMessageBuffer=o}}),jfi=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/connection.js"(e){var r=e&&e.__createBinding||(Object.create?function(ee,z,ne,ie){if(ie===void 0)ie=ne;var se=Object.getOwnPropertyDescriptor(z,ne);if(!se||("get"in se?!z.__esModule:se.writable||se.configurable))se={enumerable:!0,get:te(function(){return z[ne]},"get")};Object.defineProperty(ee,ie,se)}:function(ee,z,ne,ie){if(ie===void 0)ie=ne;ee[ie]=z[ne]}),i=e&&e.__setModuleDefault||(Object.create?function(ee,z){Object.defineProperty(ee,"default",{enumerable:!0,value:z})}:function(ee,z){ee.default=z}),a=e&&e.__importStar||function(){var ee=te(function(z){return ee=Object.getOwnPropertyNames||function(ne){var ie=[];for(var se in ne)if(Object.prototype.hasOwnProperty.call(ne,se))ie[ie.length]=se;return ie},ee(z)},"ownKeys");return function(z){if(z&&z.__esModule)return z;var ne={};if(z!=null){for(var ie=ee(z),se=0;se{},"error"),warn:te(()=>{},"warn"),info:te(()=>{},"info"),log:te(()=>{},"log")});var A;(function(ee){ee[ee.Off=0]="Off",ee[ee.Messages=1]="Messages",ee[ee.Compact=2]="Compact",ee[ee.Verbose=3]="Verbose"})(A||(e.Trace=A={}));var R;(function(ee){ee.Off="off",ee.Messages="messages",ee.Compact="compact",ee.Verbose="verbose"})(R||(e.TraceValue=R={})),e.TraceValues=R,function(ee){function z(ie){if(!h.string(ie))return ee.Off;switch(ie=ie.toLowerCase(),ie){case"off":return ee.Off;case"messages":return ee.Messages;case"compact":return ee.Compact;case"verbose":return ee.Verbose;default:return ee.Off}}te(z,"fromString"),ee.fromString=z;function ne(ie){switch(ie){case ee.Off:return"off";case ee.Messages:return"messages";case ee.Compact:return"compact";case ee.Verbose:return"verbose";default:return"off"}}te(ne,"toString"),ee.toString=ne}(A||(e.Trace=A={}));var N;(function(ee){ee.Text="text",ee.JSON="json"})(N||(e.TraceFormat=N={})),function(ee){function z(ne){if(!h.string(ne))return ee.Text;if(ne=ne.toLowerCase(),ne==="json")return ee.JSON;else return ee.Text}te(z,"fromString"),ee.fromString=z}(N||(e.TraceFormat=N={}));var L;(function(ee){ee.type=new d.NotificationType("$/setTrace")})(L||(e.SetTraceNotification=L={}));var B;(function(ee){ee.type=new d.NotificationType("$/logTrace")})(B||(e.LogTraceNotification=B={}));var D;(function(ee){ee[ee.Closed=1]="Closed",ee[ee.Disposed=2]="Disposed",ee[ee.AlreadyListening=3]="AlreadyListening"})(D||(e.ConnectionErrors=D={}));var P=class ee extends Error{static{te(this,"ConnectionError")}code;constructor(z,ne){super(ne);this.code=z,Object.setPrototypeOf(this,ee.prototype)}};e.ConnectionError=P;var F;(function(ee){function z(ne){let ie=ne;return ie&&h.func(ie.cancelUndispatched)}te(z,"is"),ee.is=z})(F||(e.ConnectionStrategy=F={}));var H;(function(ee){function z(ne){let ie=ne;return ie&&(ie.kind===void 0||ie.kind==="id")&&h.func(ie.createCancellationTokenSource)&&(ie.dispose===void 0||h.func(ie.dispose))}te(z,"is"),ee.is=z})(H||(e.IdCancellationReceiverStrategy=H={}));var W;(function(ee){function z(ne){let ie=ne;return ie&&ie.kind==="request"&&h.func(ie.createCancellationTokenSource)&&(ie.dispose===void 0||h.func(ie.dispose))}te(z,"is"),ee.is=z})(W||(e.RequestCancellationReceiverStrategy=W={}));var X;(function(ee){ee.Message=Object.freeze({createCancellationTokenSource(ne){return new y.CancellationTokenSource}});function z(ne){return H.is(ne)||W.is(ne)}te(z,"is"),ee.is=z})(X||(e.CancellationReceiverStrategy=X={}));var Q;(function(ee){ee.Message=Object.freeze({sendCancellation(ne,ie){return ne.sendNotification(v.type,{id:ie})},cleanup(ne){}});function z(ne){let ie=ne;return ie&&h.func(ie.sendCancellation)&&h.func(ie.cleanup)}te(z,"is"),ee.is=z})(Q||(e.CancellationSenderStrategy=Q={}));var Y;(function(ee){ee.Message=Object.freeze({receiver:X.Message,sender:Q.Message});function z(ne){let ie=ne;return ie&&X.is(ie.receiver)&&Q.is(ie.sender)}te(z,"is"),ee.is=z})(Y||(e.CancellationStrategy=Y={}));var K;(function(ee){function z(ne){let ie=ne;return ie&&h.func(ie.handleMessage)}te(z,"is"),ee.is=z})(K||(e.MessageStrategy=K={}));var J;(function(ee){function z(ne){let ie=ne;return ie&&(Y.is(ie.cancellationStrategy)||F.is(ie.connectionStrategy)||K.is(ie.messageStrategy)||h.number(ie.maxParallelism))}te(z,"is"),ee.is=z})(J||(e.ConnectionOptions=J={}));var Z;(function(ee){ee[ee.New=1]="New",ee[ee.Listening=2]="Listening",ee[ee.Closed=3]="Closed",ee[ee.Disposed=4]="Disposed"})(Z||(Z={}));function j(ee,z,ne,ie){let se=ne!==void 0?ne:e.NullLogger,oe=0,he=0,ye=0,Se="2.0",Ie=ie?.maxParallelism??-1,Ee=0,ze=void 0,Me=new Map,Xe=void 0,Ye=new Map,Qe=new Map,xt,dt=new p.LinkedMap,zt=new Map,Kt=new Set,rr=new Map,je=A.Off,Nt=N.Text,ct,bt=Z.New,Pe=new m.Emitter,Ue=new m.Emitter,qe=new m.Emitter,Ke=new m.Emitter,Je=new m.Emitter,De=ie&&ie.cancellationStrategy?ie.cancellationStrategy:Y.Message;function le(_t){return}te(le,"cancelUndispatched");function pe(){return bt===Z.Listening}te(pe,"isListening");function fe(){return bt===Z.Closed}te(fe,"isClosed");function be(){return bt===Z.Disposed}te(be,"isDisposed");function Ge(){if(bt===Z.New||bt===Z.Listening)bt=Z.Closed,Ue.fire(void 0)}te(Ge,"closeHandler");function ke(_t){Pe.fire([_t,void 0,void 0])}te(ke,"readErrorHandler");function we(_t){Pe.fire(_t)}te(we,"writeErrorHandler"),ee.onClose(Ge),ee.onError(ke),z.onClose(Ge),z.onError(we);function Ae(_t){if(_t===null)throw Error("Can't send requests with id null since the response can't be correlated.");return"req-"+_t.toString()}te(Ae,"createRequestQueueKey");function at(_t){if(_t===null)return"res-unknown-"+(++ye).toString();else return"res-"+_t.toString()}te(at,"createResponseQueueKey");function ut(){return"not-"+(++he).toString()}te(ut,"createNotificationQueueKey");function gt(_t,Sr){if(d.Message.isRequest(Sr))_t.set(Ae(Sr.id),Sr);else if(d.Message.isResponse(Sr))if(Ie===-1)_t.set(at(Sr.id),Sr);else tr(Sr);else _t.set(ut(),Sr)}te(gt,"addMessageToQueue");function vt(){if(xt||dt.size===0)return;if(Ie!==-1&&Ee>=Ie)return;xt=(0,l.default)().timer.setImmediate(async()=>{if(xt=void 0,dt.size===0)return;if(Ie!==-1&&Ee>=Ie)return;let _t=dt.shift(),Sr;try{Ee++;let ln=ie?.messageStrategy;if(K.is(ln))Sr=ln.handleMessage(_t,ir);else Sr=ir(_t)}catch(ln){se.error(`Processing message queue failed: ${ln.toString()}`)}finally{if(Sr instanceof Promise)Sr.then(()=>{Ee--,vt()}).catch((ln)=>{se.error(`Processing message queue failed: ${ln.toString()}`)});else Ee--;vt()}})}te(vt,"triggerMessageQueue");async function ir(_t){if(d.Message.isRequest(_t))return cr(_t);else if(d.Message.isNotification(_t))return Zt(_t);else if(d.Message.isResponse(_t))return tr(_t);else return lr(_t)}te(ir,"handleMessage");let qt=te((_t)=>{try{if(d.Message.isNotification(_t)&&_t.method===v.type.method){let Sr=_t.params.id,ln=Ae(Sr),mn=dt.get(ln);if(d.Message.isRequest(mn)){let as=ie?.connectionStrategy,Ir=as&&as.cancelUndispatched?as.cancelUndispatched(mn,le):le(mn);if(Ir&&(Ir.error!==void 0||Ir.result!==void 0)){dt.delete(ln),rr.delete(Sr),Ir.id=mn.id,Xn(Ir,_t.method,Date.now()),z.write(Ir).catch(()=>se.error("Sending response for canceled message failed."));return}}let On=rr.get(Sr);if(On!==void 0){On.cancel(),Bn(_t);return}else Kt.add(Sr)}gt(dt,_t)}finally{vt()}},"callback");async function cr(_t){if(be())return Promise.resolve();function Sr(hn,zn,Di){let aa={jsonrpc:Se,id:_t.id};if(hn instanceof d.ResponseError)aa.error=hn.toJson();else aa.result=hn===void 0?null:hn;return Xn(aa,zn,Di),z.write(aa)}te(Sr,"reply");function ln(hn,zn,Di){let aa={jsonrpc:Se,id:_t.id,error:hn.toJson()};return Xn(aa,zn,Di),z.write(aa)}te(ln,"replyError"),Yt(_t);let mn=Me.get(_t.method),On,as;if(mn)On=mn.type,as=mn.handler;let Ir=Date.now();if(as||ze){let hn=_t.id??String(Date.now()),zn=H.is(De.receiver)?De.receiver.createCancellationTokenSource(hn):De.receiver.createCancellationTokenSource(_t);if(_t.id!==null&&Kt.has(_t.id))zn.cancel();if(_t.id!==null)rr.set(hn,zn);try{let Di;if(as)if(_t.params===void 0){if(On!==void 0&&On.numberOfParams!==0)return ln(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${_t.method} defines ${On.numberOfParams} params but received none.`),_t.method,Ir);Di=as(zn.token)}else if(Array.isArray(_t.params)){if(On!==void 0&&On.parameterStructures===d.ParameterStructures.byName)return ln(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${_t.method} defines parameters by name but received parameters by position`),_t.method,Ir);Di=as(..._t.params,zn.token)}else{if(On!==void 0&&On.parameterStructures===d.ParameterStructures.byPosition)return ln(new d.ResponseError(d.ErrorCodes.InvalidParams,`Request ${_t.method} defines parameters by position but received parameters by name`),_t.method,Ir);Di=as(_t.params,zn.token)}else if(ze)Di=ze(_t.method,_t.params,zn.token);let aa=await Di;await Sr(aa,_t.method,Ir)}catch(Di){if(Di instanceof d.ResponseError)await Sr(Di,_t.method,Ir);else if(Di&&h.string(Di.message))await ln(new d.ResponseError(d.ErrorCodes.InternalError,`Request ${_t.method} failed with message: ${Di.message}`),_t.method,Ir);else await ln(new d.ResponseError(d.ErrorCodes.InternalError,`Request ${_t.method} failed unexpectedly without providing any details.`),_t.method,Ir)}finally{rr.delete(hn)}}else await ln(new d.ResponseError(d.ErrorCodes.MethodNotFound,`Unhandled method ${_t.method}`),_t.method,Ir)}te(cr,"handleRequest");function tr(_t){if(be())return;if(_t.id===null)if(_t.error)se.error(`Received response message without id: Error is: +${JSON.stringify(_t.error,void 0,4)}`);else se.error("Received response message without id. No further error information provided.");else{let Sr=_t.id,ln=zt.get(Sr);if(si(_t,ln),ln!==void 0){zt.delete(Sr);try{if(_t.error){let mn=_t.error;ln.reject(new d.ResponseError(mn.code,mn.message,mn.data))}else if(_t.result!==void 0)ln.resolve(_t.result);else throw Error("Should never happen.")}catch(mn){if(mn.message)se.error(`Response handler '${ln.method}' failed with message: ${mn.message}`);else se.error(`Response handler '${ln.method}' failed unexpectedly.`)}}}}te(tr,"handleResponse");async function Zt(_t){if(be())return;let Sr=void 0,ln;if(_t.method===v.type.method){let mn=_t.params.id;Kt.delete(mn),Bn(_t);return}else{let mn=Ye.get(_t.method);if(mn)ln=mn.handler,Sr=mn.type}if(ln||Xe)try{if(Bn(_t),ln)if(_t.params===void 0){if(Sr!==void 0){if(Sr.numberOfParams!==0&&Sr.parameterStructures!==d.ParameterStructures.byName)se.error(`Notification ${_t.method} defines ${Sr.numberOfParams} params but received none.`)}await ln()}else if(Array.isArray(_t.params)){let mn=_t.params;if(_t.method===T.type.method&&mn.length===2&&w.is(mn[0]))await ln({token:mn[0],value:mn[1]});else{if(Sr!==void 0){if(Sr.parameterStructures===d.ParameterStructures.byName)se.error(`Notification ${_t.method} defines parameters by name but received parameters by position`);if(Sr.numberOfParams!==_t.params.length)se.error(`Notification ${_t.method} defines ${Sr.numberOfParams} params but received ${mn.length} arguments`)}await ln(...mn)}}else{if(Sr!==void 0&&Sr.parameterStructures===d.ParameterStructures.byPosition)se.error(`Notification ${_t.method} defines parameters by position but received parameters by name`);await ln(_t.params)}else if(Xe)await Xe(_t.method,_t.params)}catch(mn){if(mn.message)se.error(`Notification handler '${_t.method}' failed with message: ${mn.message}`);else se.error(`Notification handler '${_t.method}' failed unexpectedly.`)}else qe.fire(_t)}te(Zt,"handleNotification");function lr(_t){if(!_t){se.error("Received empty message.");return}se.error(`Received message which is neither a response nor a notification message: +${JSON.stringify(_t,null,4)}`);let Sr=_t;if(h.string(Sr.id)||h.number(Sr.id)){let ln=Sr.id,mn=zt.get(ln);if(mn)mn.reject(Error("The received response has neither a result nor an error property."))}}te(lr,"handleInvalidMessage");function Xt(_t){if(_t===void 0||_t===null)return;switch(je){case A.Verbose:return JSON.stringify(_t,null,4);case A.Compact:return JSON.stringify(_t);default:return}}te(Xt,"stringifyTrace");function In(_t){if(je===A.Off||!ct)return;if(Nt===N.Text){let Sr=void 0;if((je===A.Verbose||je===A.Compact)&&_t.params)Sr=`Params: ${Xt(_t.params)}`;ct.log(`Sending request '${_t.method} - (${_t.id})'.`,Sr)}else dn("send-request",_t)}te(In,"traceSendingRequest");function Et(_t){if(je===A.Off||!ct)return;if(Nt===N.Text){let Sr=void 0;if(je===A.Verbose||je===A.Compact)if(_t.params)Sr=`Params: ${Xt(_t.params)}`;else Sr="No parameters provided.";ct.log(`Sending notification '${_t.method}'.`,Sr)}else dn("send-notification",_t)}te(Et,"traceSendingNotification");function Xn(_t,Sr,ln){if(je===A.Off||!ct)return;if(Nt===N.Text){let mn=void 0;if(je===A.Verbose||je===A.Compact){if(_t.error&&_t.error.data)mn=`Error data: ${Xt(_t.error.data)}`;else if(_t.result)mn=`Result: ${Xt(_t.result)}`;else if(_t.error===void 0)mn="No result returned."}let On=_t.error?` Request failed: ${_t.error.message} (${_t.error.code}).`:"";ct.log(`Sending response '${Sr} - (${_t.id})'. Processing request took ${Date.now()-ln}ms.${On}`,mn)}else dn("send-response",_t)}te(Xn,"traceSendingResponse");function Yt(_t){if(je===A.Off||!ct)return;if(Nt===N.Text){let Sr=void 0;if((je===A.Verbose||je===A.Compact)&&_t.params)Sr=`Params: ${Xt(_t.params)}`;ct.log(`Received request '${_t.method} - (${_t.id})'.`,Sr)}else dn("receive-request",_t)}te(Yt,"traceReceivedRequest");function Bn(_t){if(je===A.Off||!ct||_t.method===B.type.method)return;if(Nt===N.Text){let Sr=void 0;if(je===A.Verbose||je===A.Compact)if(_t.params)Sr=`Params: ${Xt(_t.params)}`;else Sr="No parameters provided.";ct.log(`Received notification '${_t.method}'.`,Sr)}else dn("receive-notification",_t)}te(Bn,"traceReceivedNotification");function si(_t,Sr){if(je===A.Off||!ct)return;if(Nt===N.Text){let ln=void 0;if(je===A.Verbose||je===A.Compact){if(_t.error&&_t.error.data)ln=`Error data: ${Xt(_t.error.data)}`;else if(_t.result)ln=`Result: ${Xt(_t.result)}`;else if(_t.error===void 0)ln="No result returned."}if(Sr){let mn=_t.error?` Request failed: ${_t.error.message} (${_t.error.code}).`:"";ct.log(`Received response '${Sr.method} - (${_t.id})' in ${Date.now()-Sr.timerStart}ms.${mn}`,ln)}else ct.log(`Received response ${_t.id} without active response promise.`,ln)}else dn("receive-response",_t)}te(si,"traceReceivedResponse");function dn(_t,Sr){if(!ct||je===A.Off)return;let ln={isLSPMessage:!0,type:_t,message:Sr,timestamp:Date.now()};ct.log(ln)}te(dn,"logLSPMessage");function Ii(){if(fe())throw new P(D.Closed,"Connection is closed.");if(be())throw new P(D.Disposed,"Connection is disposed.")}te(Ii,"throwIfClosedOrDisposed");function Vn(){if(pe())throw new P(D.AlreadyListening,"Connection is already listening")}te(Vn,"throwIfListening");function Ei(){if(!pe())throw Error("Call listen() first.")}te(Ei,"throwIfNotListening");function vn(_t){if(_t===void 0)return null;else return _t}te(vn,"undefinedToNull");function Li(_t){if(_t===null)return;else return _t}te(Li,"nullToUndefined");function Ia(_t){return _t!==void 0&&_t!==null&&!Array.isArray(_t)&&typeof _t==="object"}te(Ia,"isNamedParam");function tt(_t,Sr){switch(_t){case d.ParameterStructures.auto:if(Ia(Sr))return Li(Sr);else return[vn(Sr)];case d.ParameterStructures.byName:if(!Ia(Sr))throw Error("Received parameters by name but param is not an object literal.");return Li(Sr);case d.ParameterStructures.byPosition:return[vn(Sr)];default:throw Error(`Unknown parameter structure ${_t.toString()}`)}}te(tt,"computeSingleParam");function Fn(_t,Sr){let ln,mn=_t.numberOfParams;switch(mn){case 0:ln=void 0;break;case 1:ln=tt(_t.parameterStructures,Sr[0]);break;default:ln=[];for(let On=0;On{Ii();let ln,mn;if(h.string(_t)){ln=_t;let as=Sr[0],Ir=0,hn=d.ParameterStructures.auto;if(d.ParameterStructures.is(as))Ir=1,hn=as;let zn=Sr.length,Di=zn-Ir;switch(Di){case 0:mn=void 0;break;case 1:mn=tt(hn,Sr[Ir]);break;default:if(hn===d.ParameterStructures.byName)throw Error(`Received ${Di} parameters for 'by Name' notification parameter structure.`);mn=Sr.slice(Ir,zn).map((aa)=>vn(aa));break}}else{let as=Sr;ln=_t.method,mn=Fn(_t,as)}let On={jsonrpc:Se,method:ln,params:mn};return Et(On),z.write(On).catch((as)=>{throw se.error("Sending notification failed."),as})},"sendNotification"),onNotification:te((_t,Sr)=>{Ii();let ln;if(h.func(_t))Xe=_t;else if(Sr)if(h.string(_t))ln=_t,Ye.set(_t,{type:void 0,handler:Sr});else ln=_t.method,Ye.set(_t.method,{type:_t,handler:Sr});return{dispose:te(()=>{if(ln!==void 0){if(Ye.get(ln)?.handler===Sr)Ye.delete(ln)}else if(Xe===_t)Xe=void 0},"dispose")}},"onNotification"),onProgress:te((_t,Sr,ln)=>{if(Qe.has(Sr))throw Error(`Progress handler for token ${Sr} already registered`);return Qe.set(Sr,ln),{dispose:te(()=>{if(Qe.get(Sr)===ln)Qe.delete(Sr)},"dispose")}},"onProgress"),sendProgress:te((_t,Sr,ln)=>Hn.sendNotification(T.type,{token:Sr,value:ln}),"sendProgress"),onUnhandledProgress:Ke.event,sendRequest:te((_t,...Sr)=>{Ii(),Ei();function ln(aa,Ca){let os=De.sender.sendCancellation(aa,Ca);if(os===void 0)se.log(`Received no promise from cancellation strategy when cancelling id ${Ca}`);else os.catch(()=>{se.log(`Sending cancellation messages for id ${Ca} failed.`)})}te(ln,"sendCancellation");let mn,On,as=void 0;if(h.string(_t)){mn=_t;let aa=Sr[0],Ca=Sr[Sr.length-1],os=0,ma=d.ParameterStructures.auto;if(d.ParameterStructures.is(aa))os=1,ma=aa;let Yn=Sr.length;if(y.CancellationToken.is(Ca))Yn=Yn-1,as=Ca;let Tn=Yn-os;switch(Tn){case 0:On=void 0;break;case 1:On=tt(ma,Sr[os]);break;default:if(ma===d.ParameterStructures.byName)throw Error(`Received ${Tn} parameters for 'by Name' request parameter structure.`);On=Sr.slice(os,Yn).map((Pi)=>vn(Pi));break}}else{let aa=Sr;mn=_t.method,On=Fn(_t,aa);let Ca=_t.numberOfParams;as=y.CancellationToken.is(aa[Ca])?aa[Ca]:void 0}let Ir=oe++,hn,zn=!1;if(as!==void 0)if(as.isCancellationRequested)zn=!0;else hn=as.onCancellationRequested(()=>{ln(Hn,Ir)});let Di={jsonrpc:Se,id:Ir,method:mn,params:On};if(In(Di),typeof De.sender.enableCancellation==="function")De.sender.enableCancellation(Di);return new Promise(async(aa,Ca)=>{let os=te((Tn)=>{aa(Tn),De.sender.cleanup(Ir),hn?.dispose()},"resolveWithCleanup"),ma=te((Tn)=>{Ca(Tn),De.sender.cleanup(Ir),hn?.dispose()},"rejectWithCleanup"),Yn={method:mn,timerStart:Date.now(),resolve:os,reject:ma};try{if(zt.set(Ir,Yn),await z.write(Di),zn)ln(Hn,Ir)}catch(Tn){zt.delete(Ir),Yn.reject(new d.ResponseError(d.ErrorCodes.MessageWriteError,Tn.message?Tn.message:"Unknown reason")),se.error("Sending request failed.")}})},"sendRequest"),onRequest:te((_t,Sr)=>{Ii();let ln=null;if(k.is(_t))ln=void 0,ze=_t;else if(h.string(_t)){if(ln=null,Sr!==void 0)ln=_t,Me.set(_t,{handler:Sr,type:void 0})}else if(Sr!==void 0)ln=_t.method,Me.set(_t.method,{type:_t,handler:Sr});return{dispose:te(()=>{if(ln===null)return;if(ln!==void 0){if(Me.get(ln)?.handler===Sr)Me.delete(ln)}else if(ze===_t)ze=void 0},"dispose")}},"onRequest"),hasPendingResponse:te(()=>zt.size>0,"hasPendingResponse"),trace:te(async(_t,Sr,ln)=>{let mn=!1,On=N.Text;if(ln!==void 0)if(h.boolean(ln))mn=ln;else mn=ln.sendNotification||!1,On=ln.traceFormat||N.Text;if(je=_t,Nt=On,je===A.Off)ct=void 0;else ct=Sr;if(mn&&!fe()&&!be())await Hn.sendNotification(L.type,{value:A.toString(_t)})},"trace"),onError:Pe.event,onClose:Ue.event,onUnhandledNotification:qe.event,onDispose:Je.event,end:te(()=>{z.end()},"end"),dispose:te(()=>{if(be())return;bt=Z.Disposed,Je.fire(void 0);let _t=new d.ResponseError(d.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(let Sr of zt.values())Sr.reject(_t);if(zt=new Map,rr=new Map,Kt=new Set,dt=new p.LinkedMap,h.func(z.dispose))z.dispose();if(h.func(ee.dispose))ee.dispose()},"dispose"),listen:te(()=>{Ii(),Vn(),bt=Z.Listening,ee.listen(qt)},"listen"),inspect:te(()=>{(0,l.default)().console.log("inspect")},"inspect")};return Hn.onNotification(B.type,(_t)=>{if(je===A.Off||!ct)return;let Sr=je===A.Verbose||je===A.Compact;ct.log(_t.message,Sr?_t.verbose:void 0)}),Hn.onNotification(T.type,async(_t)=>{let Sr=Qe.get(_t.token);if(Sr)await Sr(_t.value);else Ke.fire(_t)}),Hn}te(j,"createMessageConnection")}}),Gse=Ul({"../../node_modules/.pnpm/vscode-jsonrpc@9.0.3/node_modules/vscode-jsonrpc/lib/common/api.js"(e){var r=e&&e.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.AbstractMessageBuffer=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.SharedArrayReceiverStrategy=e.SharedArraySenderStrategy=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.MessageStrategy=e.CancellationStrategy=e.CancellationSenderStrategy=e.RequestCancellationReceiverStrategy=e.IdCancellationReceiverStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.TraceValue=e.Trace=void 0;var i=YBr();Object.defineProperty(e,"Message",{enumerable:!0,get:te(function(){return i.Message},"get")}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:te(function(){return i.RequestType},"get")}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:te(function(){return i.RequestType0},"get")}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:te(function(){return i.RequestType1},"get")}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:te(function(){return i.RequestType2},"get")}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:te(function(){return i.RequestType3},"get")}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:te(function(){return i.RequestType4},"get")}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:te(function(){return i.RequestType5},"get")}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:te(function(){return i.RequestType6},"get")}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:te(function(){return i.RequestType7},"get")}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:te(function(){return i.RequestType8},"get")}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:te(function(){return i.RequestType9},"get")}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:te(function(){return i.ResponseError},"get")}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:te(function(){return i.ErrorCodes},"get")}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:te(function(){return i.NotificationType},"get")}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:te(function(){return i.NotificationType0},"get")}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:te(function(){return i.NotificationType1},"get")}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:te(function(){return i.NotificationType2},"get")}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:te(function(){return i.NotificationType3},"get")}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:te(function(){return i.NotificationType4},"get")}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:te(function(){return i.NotificationType5},"get")}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:te(function(){return i.NotificationType6},"get")}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:te(function(){return i.NotificationType7},"get")}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:te(function(){return i.NotificationType8},"get")}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:te(function(){return i.NotificationType9},"get")}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:te(function(){return i.ParameterStructures},"get")});var a=WBr();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:te(function(){return a.LinkedMap},"get")}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:te(function(){return a.LRUCache},"get")}),Object.defineProperty(e,"Touch",{enumerable:!0,get:te(function(){return a.Touch},"get")});var o=Vfi();Object.defineProperty(e,"Disposable",{enumerable:!0,get:te(function(){return o.Disposable},"get")});var l=Use();Object.defineProperty(e,"Event",{enumerable:!0,get:te(function(){return l.Event},"get")}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:te(function(){return l.Emitter},"get")});var h=Dut();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:te(function(){return h.CancellationTokenSource},"get")}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:te(function(){return h.CancellationToken},"get")});var d=Hfi();Object.defineProperty(e,"SharedArraySenderStrategy",{enumerable:!0,get:te(function(){return d.SharedArraySenderStrategy},"get")}),Object.defineProperty(e,"SharedArrayReceiverStrategy",{enumerable:!0,get:te(function(){return d.SharedArrayReceiverStrategy},"get")});var p=qfi();Object.defineProperty(e,"MessageReader",{enumerable:!0,get:te(function(){return p.MessageReader},"get")}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:te(function(){return p.AbstractMessageReader},"get")}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:te(function(){return p.ReadableStreamMessageReader},"get")});var m=Yfi();Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:te(function(){return m.MessageWriter},"get")}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:te(function(){return m.AbstractMessageWriter},"get")}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:te(function(){return m.WriteableStreamMessageWriter},"get")});var y=Wfi();Object.defineProperty(e,"AbstractMessageBuffer",{enumerable:!0,get:te(function(){return y.AbstractMessageBuffer},"get")});var v=jfi();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:te(function(){return v.ConnectionStrategy},"get")}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:te(function(){return v.ConnectionOptions},"get")}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:te(function(){return v.NullLogger},"get")}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:te(function(){return v.createMessageConnection},"get")}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:te(function(){return v.ProgressToken},"get")}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:te(function(){return v.ProgressType},"get")}),Object.defineProperty(e,"Trace",{enumerable:!0,get:te(function(){return v.Trace},"get")}),Object.defineProperty(e,"TraceValue",{enumerable:!0,get:te(function(){return v.TraceValue},"get")}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:te(function(){return v.TraceFormat},"get")}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:te(function(){return v.SetTraceNotification},"get")}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:te(function(){return v.LogTraceNotification},"get")}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:te(function(){return v.ConnectionErrors},"get")}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:te(function(){return v.ConnectionError},"get")}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:te(function(){return v.CancellationReceiverStrategy},"get")}),Object.defineProperty(e,"IdCancellationReceiverStrategy",{enumerable:!0,get:te(function(){return v.IdCancellationReceiverStrategy},"get")}),Object.defineProperty(e,"RequestCancellationReceiverStrategy",{enumerable:!0,get:te(function(){return v.RequestCancellationReceiverStrategy},"get")}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:te(function(){return v.CancellationSenderStrategy},"get")}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:te(function(){return v.CancellationStrategy},"get")}),Object.defineProperty(e,"MessageStrategy",{enumerable:!0,get:te(function(){return v.MessageStrategy},"get")}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:te(function(){return v.TraceValues},"get")});var w=r(iF());e.RAL=w.default}}),x4e={};zfi(x4e,{AnnotatedTextEdit:()=>hI,ApplyKind:()=>Hlt,ChangeAnnotation:()=>C7,ChangeAnnotationIdentifier:()=>s1,CodeAction:()=>sct,CodeActionContext:()=>act,CodeActionKind:()=>ict,CodeActionTag:()=>rCe,CodeActionTriggerKind:()=>ese,CodeDescription:()=>Llt,CodeLens:()=>oct,Color:()=>Zxe,ColorInformation:()=>klt,ColorPresentation:()=>Alt,Command:()=>UB,CompletionItem:()=>Ylt,CompletionItemKind:()=>$lt,CompletionItemLabelDetails:()=>qlt,CompletionItemTag:()=>Glt,CompletionList:()=>Wlt,CreateFile:()=>tY,DeleteFile:()=>nY,Diagnostic:()=>Xae,DiagnosticRelatedInformation:()=>Jxe,DiagnosticSeverity:()=>Olt,DiagnosticTag:()=>Nlt,DocumentHighlight:()=>Zlt,DocumentHighlightKind:()=>Qlt,DocumentLink:()=>cct,DocumentSymbol:()=>nct,DocumentUri:()=>Tlt,EOL:()=>XBr,FoldingRange:()=>Ilt,FoldingRangeKind:()=>Rlt,FormattingOptions:()=>lct,Hover:()=>jlt,InlayHint:()=>yct,InlayHintKind:()=>nCe,InlayHintLabelPart:()=>iCe,InlineCompletionContext:()=>Sct,InlineCompletionItem:()=>vct,InlineCompletionList:()=>_ct,InlineCompletionTriggerKind:()=>Ect,InlineValueContext:()=>bct,InlineValueEvaluatableExpression:()=>mct,InlineValueText:()=>pct,InlineValueVariableLookup:()=>gct,InsertReplaceEdit:()=>zlt,InsertTextFormat:()=>Ult,InsertTextMode:()=>Vlt,LanguageKind:()=>Blt,Location:()=>Kae,LocationLink:()=>Clt,MarkedString:()=>Jae,MarkupContent:()=>k7,MarkupKind:()=>tCe,OptionalVersionedTextDocumentIdentifier:()=>Zae,ParameterInformation:()=>Klt,Position:()=>Th,Range:()=>$c,RenameFile:()=>rY,SelectedCompletionInfo:()=>wct,SelectionRange:()=>uct,SemanticTokenModifiers:()=>dct,SemanticTokenTypes:()=>hct,SemanticTokens:()=>fct,SignatureInformation:()=>Xlt,SnippetTextEdit:()=>Mlt,StringValue:()=>aCe,SymbolInformation:()=>tct,SymbolKind:()=>Jlt,SymbolTag:()=>ect,TextDocument:()=>xct,TextDocumentEdit:()=>Qae,TextDocumentIdentifier:()=>Dlt,TextDocumentItem:()=>Flt,TextEdit:()=>q3,URI:()=>Qxe,VersionedTextDocumentIdentifier:()=>Plt,WorkspaceChange:()=>KBr,WorkspaceEdit:()=>eCe,WorkspaceFolder:()=>Tct,WorkspaceSymbol:()=>rct,integer:()=>xlt,uinteger:()=>jae});C4e=Gfi({"../../node_modules/.pnpm/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"(){(function(e){function r(i){return typeof i==="string"}te(r,"is"),e.is=r})(Tlt||(Tlt={})),function(e){function r(i){return typeof i==="string"}te(r,"is"),e.is=r}(Qxe||(Qxe={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(i){return typeof i==="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}te(r,"is"),e.is=r}(xlt||(xlt={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(i){return typeof i==="number"&&e.MIN_VALUE<=i&&i<=e.MAX_VALUE}te(r,"is"),e.is=r}(jae||(jae={})),function(e){function r(a,o){if(a===Number.MAX_VALUE)a=jae.MAX_VALUE;if(o===Number.MAX_VALUE)o=jae.MAX_VALUE;return{line:a,character:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.uinteger(o.line)&&Jr.uinteger(o.character)}te(i,"is"),e.is=i}(Th||(Th={})),function(e){function r(a,o,l,h){if(Jr.uinteger(a)&&Jr.uinteger(o)&&Jr.uinteger(l)&&Jr.uinteger(h))return{start:Th.create(a,o),end:Th.create(l,h)};else if(Th.is(a)&&Th.is(o))return{start:a,end:o};else throw Error(`Range#create called with invalid arguments[${a}, ${o}, ${l}, ${h}]`)}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Th.is(o.start)&&Th.is(o.end)}te(i,"is"),e.is=i}($c||($c={})),function(e){function r(a,o){return{uri:a,range:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.range)&&(Jr.string(o.uri)||Jr.undefined(o.uri))}te(i,"is"),e.is=i}(Kae||(Kae={})),function(e){function r(a,o,l,h){return{targetUri:a,targetRange:o,targetSelectionRange:l,originSelectionRange:h}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.targetRange)&&Jr.string(o.targetUri)&&$c.is(o.targetSelectionRange)&&($c.is(o.originSelectionRange)||Jr.undefined(o.originSelectionRange))}te(i,"is"),e.is=i}(Clt||(Clt={})),function(e){function r(a,o,l,h){return{red:a,green:o,blue:l,alpha:h}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.numberRange(o.red,0,1)&&Jr.numberRange(o.green,0,1)&&Jr.numberRange(o.blue,0,1)&&Jr.numberRange(o.alpha,0,1)}te(i,"is"),e.is=i}(Zxe||(Zxe={})),function(e){function r(a,o){return{range:a,color:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.range)&&Zxe.is(o.color)}te(i,"is"),e.is=i}(klt||(klt={})),function(e){function r(a,o,l){return{label:a,textEdit:o,additionalTextEdits:l}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.string(o.label)&&(Jr.undefined(o.textEdit)||q3.is(o))&&(Jr.undefined(o.additionalTextEdits)||Jr.typedArray(o.additionalTextEdits,q3.is))}te(i,"is"),e.is=i}(Alt||(Alt={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(Rlt||(Rlt={})),function(e){function r(a,o,l,h,d,p){let m={startLine:a,endLine:o};if(Jr.defined(l))m.startCharacter=l;if(Jr.defined(h))m.endCharacter=h;if(Jr.defined(d))m.kind=d;if(Jr.defined(p))m.collapsedText=p;return m}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.uinteger(o.startLine)&&Jr.uinteger(o.startLine)&&(Jr.undefined(o.startCharacter)||Jr.uinteger(o.startCharacter))&&(Jr.undefined(o.endCharacter)||Jr.uinteger(o.endCharacter))&&(Jr.undefined(o.kind)||Jr.string(o.kind))}te(i,"is"),e.is=i}(Ilt||(Ilt={})),function(e){function r(a,o){return{location:a,message:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Kae.is(o.location)&&Jr.string(o.message)}te(i,"is"),e.is=i}(Jxe||(Jxe={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Olt||(Olt={})),function(e){e.Unnecessary=1,e.Deprecated=2}(Nlt||(Nlt={})),function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&Jr.string(a.href)}te(r,"is"),e.is=r}(Llt||(Llt={})),function(e){function r(l,h,d,p,m,y){let v={range:l,message:h};if(Jr.defined(d))v.severity=d;if(Jr.defined(p))v.code=p;if(Jr.defined(m))v.source=m;if(Jr.defined(y))v.relatedInformation=y;return v}te(r,"create"),e.create=r;function i(l){var h;let d=l;return Jr.defined(d)&&$c.is(d.range)&&(Jr.string(d.message)||k7.is(d.message))&&(Jr.number(d.severity)||Jr.undefined(d.severity))&&(Jr.integer(d.code)||Jr.string(d.code)||Jr.undefined(d.code))&&(Jr.undefined(d.codeDescription)||Jr.string((h=d.codeDescription)===null||h===void 0?void 0:h.href))&&(Jr.string(d.source)||Jr.undefined(d.source))&&(Jr.undefined(d.relatedInformation)||Jr.typedArray(d.relatedInformation,Jxe.is))}te(i,"is"),e.is=i;function a(l){return Jr.string(l.message)}te(a,"is3_17"),e.is3_17=a;function o(l){if(Jr.string(l.message))return l.message;else if(k7.is(l.message))return l.message.value;else throw Error(`Unknown message type ${typeof l.message}`)}te(o,"getMessageString"),e.getMessageString=o}(Xae||(Xae={})),function(e){function r(a,o,...l){let h={title:a,command:o};if(Jr.defined(l)&&l.length>0)h.arguments=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.title)&&(o.tooltip===void 0||Jr.string(o.tooltip))&&Jr.string(o.command)}te(i,"is"),e.is=i}(UB||(UB={})),function(e){function r(l,h){return{range:l,newText:h}}te(r,"replace"),e.replace=r;function i(l,h){return{range:{start:l,end:l},newText:h}}te(i,"insert"),e.insert=i;function a(l){return{range:l,newText:""}}te(a,"del"),e.del=a;function o(l){let h=l;return Jr.objectLiteral(h)&&Jr.string(h.newText)&&$c.is(h.range)}te(o,"is"),e.is=o}(q3||(q3={})),function(e){function r(a,o,l){let h={label:a};if(o!==void 0)h.needsConfirmation=o;if(l!==void 0)h.description=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Jr.string(o.label)&&(Jr.boolean(o.needsConfirmation)||o.needsConfirmation===void 0)&&(Jr.string(o.description)||o.description===void 0)}te(i,"is"),e.is=i}(C7||(C7={})),function(e){function r(i){let a=i;return Jr.string(a)}te(r,"is"),e.is=r}(s1||(s1={})),function(e){function r(l,h,d){return{range:l,newText:h,annotationId:d}}te(r,"replace"),e.replace=r;function i(l,h,d){return{range:{start:l,end:l},newText:h,annotationId:d}}te(i,"insert"),e.insert=i;function a(l,h){return{range:l,newText:"",annotationId:h}}te(a,"del"),e.del=a;function o(l){let h=l;return q3.is(h)&&(C7.is(h.annotationId)||s1.is(h.annotationId))}te(o,"is"),e.is=o}(hI||(hI={})),function(e){function r(a,o){return{textDocument:a,edits:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Zae.is(o.textDocument)&&Array.isArray(o.edits)}te(i,"is"),e.is=i}(Qae||(Qae={})),function(e){function r(a,o,l){let h={kind:"create",uri:a};if(o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0))h.options=o;if(l!==void 0)h.annotationId=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return o&&o.kind==="create"&&Jr.string(o.uri)&&(o.options===void 0||(o.options.overwrite===void 0||Jr.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Jr.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||s1.is(o.annotationId))}te(i,"is"),e.is=i}(tY||(tY={})),function(e){function r(a,o,l,h){let d={kind:"rename",oldUri:a,newUri:o};if(l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0))d.options=l;if(h!==void 0)d.annotationId=h;return d}te(r,"create"),e.create=r;function i(a){let o=a;return o&&o.kind==="rename"&&Jr.string(o.oldUri)&&Jr.string(o.newUri)&&(o.options===void 0||(o.options.overwrite===void 0||Jr.boolean(o.options.overwrite))&&(o.options.ignoreIfExists===void 0||Jr.boolean(o.options.ignoreIfExists)))&&(o.annotationId===void 0||s1.is(o.annotationId))}te(i,"is"),e.is=i}(rY||(rY={})),function(e){function r(a,o,l){let h={kind:"delete",uri:a};if(o!==void 0&&(o.recursive!==void 0||o.ignoreIfNotExists!==void 0))h.options=o;if(l!==void 0)h.annotationId=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return o&&o.kind==="delete"&&Jr.string(o.uri)&&(o.options===void 0||(o.options.recursive===void 0||Jr.boolean(o.options.recursive))&&(o.options.ignoreIfNotExists===void 0||Jr.boolean(o.options.ignoreIfNotExists)))&&(o.annotationId===void 0||s1.is(o.annotationId))}te(i,"is"),e.is=i}(nY||(nY={})),function(e){function r(i){let a=i;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every((o)=>{if(Jr.string(o.kind))return tY.is(o)||rY.is(o)||nY.is(o);else return Qae.is(o)}))}te(r,"is"),e.is=r}(eCe||(eCe={})),Bae=class{static{te(this,"TextEditChangeImpl")}constructor(e,r){this.edits=e,this.changeAnnotations=r}insert(e,r,i){let a,o;if(i===void 0)a=q3.insert(e,r);else if(s1.is(i))o=i,a=hI.insert(e,r,i);else this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),a=hI.insert(e,r,o);if(this.edits.push(a),o!==void 0)return o}replace(e,r,i){let a,o;if(i===void 0)a=q3.replace(e,r);else if(s1.is(i))o=i,a=hI.replace(e,r,i);else this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(i),a=hI.replace(e,r,o);if(this.edits.push(a),o!==void 0)return o}delete(e,r){let i,a;if(r===void 0)i=q3.del(e);else if(s1.is(r))a=r,i=hI.del(e,r);else this.assertChangeAnnotations(this.changeAnnotations),a=this.changeAnnotations.manage(r),i=hI.del(e,a);if(this.edits.push(i),a!==void 0)return a}add(e){this.edits.push(e)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(e){if(e===void 0)throw Error("Text edit change is not configured to manage change annotations.")}},function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&$c.is(a.range)&&aCe.isSnippet(a.snippet)&&(a.annotationId===void 0||(C7.is(a.annotationId)||s1.is(a.annotationId)))}te(r,"is"),e.is=r}(Mlt||(Mlt={})),rlt=class{static{te(this,"ChangeAnnotations")}constructor(e){this._annotations=e===void 0?Object.create(null):e,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(e,r){let i;if(s1.is(e))i=e;else i=this.nextId(),r=e;if(this._annotations[i]!==void 0)throw Error(`Id ${i} is already in use.`);if(r===void 0)throw Error(`No annotation provided for id ${i}`);return this._annotations[i]=r,this._size++,i}nextId(){return this._counter++,this._counter.toString()}},KBr=class{static{te(this,"WorkspaceChange")}constructor(e){if(this._textEditChanges=Object.create(null),e!==void 0){if(this._workspaceEdit=e,e.documentChanges)this._changeAnnotations=new rlt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((r)=>{if(Qae.is(r)){let i=new Bae(r.edits,this._changeAnnotations);this._textEditChanges[r.textDocument.uri]=i}});else if(e.changes)Object.keys(e.changes).forEach((r)=>{let i=new Bae(e.changes[r]);this._textEditChanges[r]=i})}else this._workspaceEdit={}}get edit(){if(this.initDocumentChanges(),this._changeAnnotations!==void 0)if(this._changeAnnotations.size===0)this._workspaceEdit.changeAnnotations=void 0;else this._workspaceEdit.changeAnnotations=this._changeAnnotations.all();return this._workspaceEdit}getTextEditChange(e){if(Zae.is(e)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let r={uri:e.uri,version:e.version},i=this._textEditChanges[r.uri];if(!i){let a=[],o={textDocument:r,edits:a};this._workspaceEdit.documentChanges.push(o),i=new Bae(a,this._changeAnnotations),this._textEditChanges[r.uri]=i}return i}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw Error("Workspace edit is not configured for normal text edit changes.");let r=this._textEditChanges[e];if(!r){let i=[];this._workspaceEdit.changes[e]=i,r=new Bae(i),this._textEditChanges[e]=r}return r}}initDocumentChanges(){if(this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0)this._changeAnnotations=new rlt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()}initChanges(){if(this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0)this._workspaceEdit.changes=Object.create(null)}createFile(e,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let a;if(C7.is(r)||s1.is(r))a=r;else i=r;let o,l;if(a===void 0)o=tY.create(e,i);else l=s1.is(a)?a:this._changeAnnotations.manage(a),o=tY.create(e,i,l);if(this._workspaceEdit.documentChanges.push(o),l!==void 0)return l}renameFile(e,r,i,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let o;if(C7.is(i)||s1.is(i))o=i;else a=i;let l,h;if(o===void 0)l=rY.create(e,r,a);else h=s1.is(o)?o:this._changeAnnotations.manage(o),l=rY.create(e,r,a,h);if(this._workspaceEdit.documentChanges.push(l),h!==void 0)return h}deleteFile(e,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw Error("Workspace edit is not configured for document changes.");let a;if(C7.is(r)||s1.is(r))a=r;else i=r;let o,l;if(a===void 0)o=nY.create(e,i);else l=s1.is(a)?a:this._changeAnnotations.manage(a),o=nY.create(e,i,l);if(this._workspaceEdit.documentChanges.push(o),l!==void 0)return l}},function(e){function r(a){return{uri:a}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)}te(i,"is"),e.is=i}(Dlt||(Dlt={})),function(e){function r(a,o){return{uri:a,version:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)&&Jr.integer(o.version)}te(i,"is"),e.is=i}(Plt||(Plt={})),function(e){function r(a,o){return{uri:a,version:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)&&(o.version===null||Jr.integer(o.version))}te(i,"is"),e.is=i}(Zae||(Zae={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="git-rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Plaintext="plaintext",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(Blt||(Blt={})),function(e){function r(a,o,l,h){return{uri:a,languageId:o,version:l,text:h}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.string(o.uri)&&Jr.string(o.languageId)&&Jr.integer(o.version)&&Jr.string(o.text)}te(i,"is"),e.is=i}(Flt||(Flt={})),function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(i){let a=i;return a===e.PlainText||a===e.Markdown}te(r,"is"),e.is=r}(tCe||(tCe={})),function(e){function r(i){let a=i;return Jr.objectLiteral(i)&&tCe.is(a.kind)&&Jr.string(a.value)}te(r,"is"),e.is=r}(k7||(k7={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}($lt||($lt={})),function(e){e.PlainText=1,e.Snippet=2}(Ult||(Ult={})),function(e){e.Deprecated=1}(Glt||(Glt={})),function(e){function r(a,o,l){return{newText:a,insert:o,replace:l}}te(r,"create"),e.create=r;function i(a){let o=a;return o&&Jr.string(o.newText)&&$c.is(o.insert)&&$c.is(o.replace)}te(i,"is"),e.is=i}(zlt||(zlt={})),function(e){e.asIs=1,e.adjustIndentation=2}(Vlt||(Vlt={})),function(e){e.Replace=1,e.Merge=2}(Hlt||(Hlt={})),function(e){function r(i){let a=i;return a&&(Jr.string(a.detail)||a.detail===void 0)&&(Jr.string(a.description)||a.description===void 0)}te(r,"is"),e.is=r}(qlt||(qlt={})),function(e){function r(i){return{label:i}}te(r,"create"),e.create=r}(Ylt||(Ylt={})),function(e){function r(i,a){return{items:i?i:[],isIncomplete:!!a}}te(r,"create"),e.create=r}(Wlt||(Wlt={})),function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}te(r,"fromPlainText"),e.fromPlainText=r;function i(a){let o=a;return Jr.string(o)||Jr.objectLiteral(o)&&Jr.string(o.language)&&Jr.string(o.value)}te(i,"is"),e.is=i}(Jae||(Jae={})),function(e){function r(i){let a=i;return!!a&&Jr.objectLiteral(a)&&(k7.is(a.contents)||Jae.is(a.contents)||Jr.typedArray(a.contents,Jae.is))&&(i.range===void 0||$c.is(i.range))}te(r,"is"),e.is=r}(jlt||(jlt={})),function(e){function r(i,a){return a?{label:i,documentation:a}:{label:i}}te(r,"create"),e.create=r}(Klt||(Klt={})),function(e){function r(i,a,...o){let l={label:i};if(Jr.defined(a))l.documentation=a;if(Jr.defined(o))l.parameters=o;else l.parameters=[];return l}te(r,"create"),e.create=r}(Xlt||(Xlt={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Qlt||(Qlt={})),function(e){function r(i,a){let o={range:i};if(Jr.number(a))o.kind=a;return o}te(r,"create"),e.create=r}(Zlt||(Zlt={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Jlt||(Jlt={})),function(e){e.Deprecated=1}(ect||(ect={})),function(e){function r(i,a,o,l,h){let d={name:i,kind:a,location:{uri:l,range:o}};if(h)d.containerName=h;return d}te(r,"create"),e.create=r}(tct||(tct={})),function(e){function r(i,a,o,l){return l!==void 0?{name:i,kind:a,location:{uri:o,range:l}}:{name:i,kind:a,location:{uri:o}}}te(r,"create"),e.create=r}(rct||(rct={})),function(e){function r(a,o,l,h,d,p){let m={name:a,detail:o,kind:l,range:h,selectionRange:d};if(p!==void 0)m.children=p;return m}te(r,"create"),e.create=r;function i(a){let o=a;return o&&Jr.string(o.name)&&Jr.number(o.kind)&&$c.is(o.range)&&$c.is(o.selectionRange)&&(o.detail===void 0||Jr.string(o.detail))&&(o.deprecated===void 0||Jr.boolean(o.deprecated))&&(o.children===void 0||Array.isArray(o.children))&&(o.tags===void 0||Array.isArray(o.tags))}te(i,"is"),e.is=i}(nct||(nct={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(ict||(ict={})),function(e){e.Invoked=1,e.Automatic=2}(ese||(ese={})),function(e){function r(a,o,l){let h={diagnostics:a};if(o!==void 0&&o!==null)h.only=o;if(l!==void 0&&l!==null)h.triggerKind=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.typedArray(o.diagnostics,Xae.is)&&(o.only===void 0||Jr.typedArray(o.only,Jr.string))&&(o.triggerKind===void 0||o.triggerKind===ese.Invoked||o.triggerKind===ese.Automatic)}te(i,"is"),e.is=i}(act||(act={})),function(e){e.LLMGenerated=1;function r(i){return Jr.defined(i)&&i===e.LLMGenerated}te(r,"is"),e.is=r}(rCe||(rCe={})),function(e){function r(a,o,l){let h={title:a},d=!0;if(typeof o==="string")d=!1,h.kind=o;else if(UB.is(o))h.command=o;else h.edit=o;if(d&&l!==void 0)h.kind=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return o&&Jr.string(o.title)&&(o.diagnostics===void 0||Jr.typedArray(o.diagnostics,Xae.is))&&(o.kind===void 0||Jr.string(o.kind))&&(o.edit!==void 0||o.command!==void 0)&&(o.command===void 0||UB.is(o.command))&&(o.isPreferred===void 0||Jr.boolean(o.isPreferred))&&(o.edit===void 0||eCe.is(o.edit))&&(o.tags===void 0||Jr.typedArray(o.tags,rCe.is))}te(i,"is"),e.is=i}(sct||(sct={})),function(e){function r(a,o){let l={range:a};if(Jr.defined(o))l.data=o;return l}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&$c.is(o.range)&&(Jr.undefined(o.command)||UB.is(o.command))}te(i,"is"),e.is=i}(oct||(oct={})),function(e){function r(a,o){return{tabSize:a,insertSpaces:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&Jr.uinteger(o.tabSize)&&Jr.boolean(o.insertSpaces)}te(i,"is"),e.is=i}(lct||(lct={})),function(e){function r(a,o,l){return{range:a,target:o,data:l}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&$c.is(o.range)&&(Jr.undefined(o.target)||Jr.string(o.target))}te(i,"is"),e.is=i}(cct||(cct={})),function(e){function r(a,o){return{range:a,parent:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&$c.is(o.range)&&(o.parent===void 0||e.is(o.parent))}te(i,"is"),e.is=i}(uct||(uct={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(hct||(hct={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(dct||(dct={})),function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId==="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]==="number")}te(r,"is"),e.is=r}(fct||(fct={})),function(e){function r(a,o){return{range:a,text:o}}te(r,"create"),e.create=r;function i(a){let o=a;return o!==void 0&&o!==null&&$c.is(o.range)&&Jr.string(o.text)}te(i,"is"),e.is=i}(pct||(pct={})),function(e){function r(a,o,l){return{range:a,variableName:o,caseSensitiveLookup:l}}te(r,"create"),e.create=r;function i(a){let o=a;return o!==void 0&&o!==null&&$c.is(o.range)&&Jr.boolean(o.caseSensitiveLookup)&&(Jr.string(o.variableName)||o.variableName===void 0)}te(i,"is"),e.is=i}(gct||(gct={})),function(e){function r(a,o){return{range:a,expression:o}}te(r,"create"),e.create=r;function i(a){let o=a;return o!==void 0&&o!==null&&$c.is(o.range)&&(Jr.string(o.expression)||o.expression===void 0)}te(i,"is"),e.is=i}(mct||(mct={})),function(e){function r(a,o){return{frameId:a,stoppedLocation:o}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.defined(o)&&$c.is(a.stoppedLocation)}te(i,"is"),e.is=i}(bct||(bct={})),function(e){e.Type=1,e.Parameter=2;function r(i){return i===1||i===2}te(r,"is"),e.is=r}(nCe||(nCe={})),function(e){function r(a){return{value:a}}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&(o.tooltip===void 0||Jr.string(o.tooltip)||k7.is(o.tooltip))&&(o.location===void 0||Kae.is(o.location))&&(o.command===void 0||UB.is(o.command))}te(i,"is"),e.is=i}(iCe||(iCe={})),function(e){function r(a,o,l){let h={position:a,label:o};if(l!==void 0)h.kind=l;return h}te(r,"create"),e.create=r;function i(a){let o=a;return Jr.objectLiteral(o)&&Th.is(o.position)&&(Jr.string(o.label)||Jr.typedArray(o.label,iCe.is))&&(o.kind===void 0||nCe.is(o.kind))&&o.textEdits===void 0||Jr.typedArray(o.textEdits,q3.is)&&(o.tooltip===void 0||Jr.string(o.tooltip)||k7.is(o.tooltip))&&(o.paddingLeft===void 0||Jr.boolean(o.paddingLeft))&&(o.paddingRight===void 0||Jr.boolean(o.paddingRight))}te(i,"is"),e.is=i}(yct||(yct={})),function(e){function r(a){return{kind:"snippet",value:a}}te(r,"createSnippet"),e.createSnippet=r;function i(a){let o=a;return Jr.objectLiteral(o)&&o.kind==="snippet"&&Jr.string(o.value)}te(i,"isSnippet"),e.isSnippet=i}(aCe||(aCe={})),function(e){function r(i,a,o,l){return{insertText:i,filterText:a,range:o,command:l}}te(r,"create"),e.create=r}(vct||(vct={})),function(e){function r(i){return{items:i}}te(r,"create"),e.create=r}(_ct||(_ct={})),function(e){e.Invoked=1,e.Automatic=2}(Ect||(Ect={})),function(e){function r(i,a){return{range:i,text:a}}te(r,"create"),e.create=r}(wct||(wct={})),function(e){function r(i,a){return{triggerKind:i,selectedCompletionInfo:a}}te(r,"create"),e.create=r}(Sct||(Sct={})),function(e){function r(i){let a=i;return Jr.objectLiteral(a)&&Qxe.is(a.uri)&&Jr.string(a.name)}te(r,"is"),e.is=r}(Tct||(Tct={})),XBr=[` `,`\r -`,"\r"],function(e){function r(l,h,d,p){return new _Pr(l,h,d,p)}ee(r,"create"),e.create=r;function i(l){let h=l;return Jr.defined(h)&&Jr.string(h.uri)&&(Jr.undefined(h.languageId)||Jr.string(h.languageId))&&Jr.uinteger(h.lineCount)&&Jr.func(h.getText)&&Jr.func(h.positionAt)&&Jr.func(h.offsetAt)?!0:!1}ee(i,"is"),e.is=i;function a(l,h){let d=l.getText(),p=o(h,(y,E)=>{let w=y.range.start.line-E.range.start.line;if(w===0)return y.range.start.character-E.range.start.character;return w}),m=d.length;for(let y=p.length-1;y>=0;y--){let E=p[y],w=l.offsetAt(E.range.start),T=l.offsetAt(E.range.end);if(T<=m)d=d.substring(0,w)+E.newText+d.substring(T,d.length);else throw Error("Overlapping edit");m=w}return d}ee(a,"applyEdits"),e.applyEdits=a;function o(l,h){if(l.length<=1)return l;let d=l.length/2|0,p=l.slice(0,d),m=l.slice(d);o(p,h),o(m,h);let y=0,E=0,w=0;while(y{let w=y.range.start.line-v.range.start.line;if(w===0)return y.range.start.character-v.range.start.character;return w}),m=d.length;for(let y=p.length-1;y>=0;y--){let v=p[y],w=l.offsetAt(v.range.start),T=l.offsetAt(v.range.end);if(T<=m)d=d.substring(0,w)+v.newText+d.substring(T,d.length);else throw Error("Overlapping edit");m=w}return d}te(a,"applyEdits"),e.applyEdits=a;function o(l,h){if(l.length<=1)return l;let d=l.length/2|0,p=l.slice(0,d),m=l.slice(d);o(p,h),o(m,h);let y=0,v=0,w=0;while(y0)e.push(r.length);this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),i=0,a=r.length;if(a===0)return Th.create(0,e);while(ie)a=l;else i=l+1}let o=i-1;return Th.create(o,e-r[o])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;else if(e.line<0)return 0;let i=r[e.line],a=e.line+1"u"}ee(a,"undefined"),e.undefined=a;function o(T){return T===!0||T===!1}ee(o,"boolean"),e.boolean=o;function l(T){return r.call(T)==="[object String]"}ee(l,"string"),e.string=l;function h(T){return r.call(T)==="[object Number]"}ee(h,"number"),e.number=h;function d(T,x,k){return r.call(T)==="[object Number]"&&x<=T&&T<=k}ee(d,"numberRange"),e.numberRange=d;function p(T){return r.call(T)==="[object Number]"&&-2147483648<=T&&T<=2147483647}ee(p,"integer"),e.integer=p;function m(T){return r.call(T)==="[object Number]"&&0<=T&&T<=2147483647}ee(m,"uinteger"),e.uinteger=m;function y(T){return r.call(T)==="[object Function]"}ee(y,"func"),e.func=y;function E(T){return T!==null&&typeof T==="object"}ee(E,"objectLiteral"),e.objectLiteral=E;function w(T,x){return Array.isArray(T)&&T.every(x)}ee(w,"typedArray"),e.typedArray=w}(Jr||(Jr={}))}}),wf=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CM=e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var r=Fse(),i;(function(m){m.clientToServer="clientToServer",m.serverToClient="serverToClient",m.both="both"})(i||(e.MessageDirection=i={}));var a=class{static{ee(this,"RegistrationType")}____;method;constructor(m){this.method=m}};e.RegistrationType=a;var o=class extends r.RequestType0{static{ee(this,"ProtocolRequestType0")}__;___;____;_pr;constructor(m){super(m)}};e.ProtocolRequestType0=o;var l=class extends r.RequestType{static{ee(this,"ProtocolRequestType")}__;___;____;_pr;constructor(m){super(m,r.ParameterStructures.byName)}};e.ProtocolRequestType=l;var h=class extends r.NotificationType0{static{ee(this,"ProtocolNotificationType0")}___;____;constructor(m){super(m)}};e.ProtocolNotificationType0=h;var d=class extends r.NotificationType{static{ee(this,"ProtocolNotificationType")}___;____;constructor(m){super(m,r.ParameterStructures.byName)}};e.ProtocolNotificationType=d;var p;(function(m){function y(E,w){return{client:E,server:w}}ee(y,"create"),m.create=y})(p||(e.CM=p={}))}}),Lut=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=r,e.string=i,e.number=a,e.error=o,e.func=l,e.array=h,e.stringArray=d,e.typedArray=p,e.objectLiteral=m;function r(y){return y===!0||y===!1}ee(r,"boolean");function i(y){return typeof y==="string"||y instanceof String}ee(i,"string");function a(y){return typeof y==="number"||y instanceof Number}ee(a,"number");function o(y){return y instanceof Error}ee(o,"error");function l(y){return typeof y==="function"}ee(l,"func");function h(y){return Array.isArray(y)}ee(h,"array");function d(y){return h(y)&&y.every((E)=>i(E))}ee(d,"stringArray");function p(y,E){return Array.isArray(y)&&y.every(E)}ee(p,"typedArray");function m(y){return y!==null&&typeof y==="object"}ee(m,"objectLiteral")}}),Vfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/implementation",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.implementation","implementationProvider")})(i||(e.ImplementationRequest=i={}))}}),Hfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/typeDefinition",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.typeDefinition","typeDefinitionProvider")})(i||(e.TypeDefinitionRequest=i={}))}}),qfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var r=wf(),i;(function(o){o.method="workspace/workspaceFolders",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType0(o.method),o.capabilities=r.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")})(i||(e.WorkspaceFoldersRequest=i={}));var a;(function(o){o.method="workspace/didChangeWorkspaceFolders",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method),o.capabilities=r.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")})(a||(e.DidChangeWorkspaceFoldersNotification=a={}))}}),Yfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var r=wf(),i;(function(a){a.method="workspace/configuration",a.messageDirection=r.MessageDirection.serverToClient,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("workspace.configuration",void 0)})(i||(e.ConfigurationRequest=i={}))}}),Wfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var r=wf(),i;(function(o){o.method="textDocument/documentColor",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.colorProvider","colorProvider")})(i||(e.DocumentColorRequest=i={}));var a;(function(o){o.method="textDocument/colorPresentation",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.colorProvider","colorProvider")})(a||(e.ColorPresentationRequest=a={}))}}),jfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var r=wf(),i;(function(o){o.method="textDocument/foldingRange",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.foldingRange","foldingRangeProvider")})(i||(e.FoldingRangeRequest=i={}));var a;(function(o){o.method="workspace/foldingRange/refresh",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType0(o.method),o.capabilities=r.CM.create("workspace.foldingRange.refreshSupport",void 0)})(a||(e.FoldingRangeRefreshRequest=a={}))}}),Kfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/declaration",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.declaration","declarationProvider")})(i||(e.DeclarationRequest=i={}))}}),Xfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/selectionRange",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.selectionRange","selectionRangeProvider")})(i||(e.SelectionRangeRequest=i={}))}}),Qfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var r=Fse(),i=wf(),a;(function(h){h.type=new r.ProgressType;function d(p){return p===h.type}ee(d,"is"),h.is=d})(a||(e.WorkDoneProgress=a={}));var o;(function(h){h.method="window/workDoneProgress/create",h.messageDirection=i.MessageDirection.serverToClient,h.type=new i.ProtocolRequestType(h.method),h.capabilities=i.CM.create("window.workDoneProgress",void 0)})(o||(e.WorkDoneProgressCreateRequest=o={}));var l;(function(h){h.method="window/workDoneProgress/cancel",h.messageDirection=i.MessageDirection.clientToServer,h.type=new i.ProtocolNotificationType(h.method)})(l||(e.WorkDoneProgressCancelNotification=l={}))}}),Zfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var r=wf(),i;(function(l){l.method="textDocument/prepareCallHierarchy",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(i||(e.CallHierarchyPrepareRequest=i={}));var a;(function(l){l.method="callHierarchy/incomingCalls",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(a||(e.CallHierarchyIncomingCallsRequest=a={}));var o;(function(l){l.method="callHierarchy/outgoingCalls",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(o||(e.CallHierarchyOutgoingCallsRequest=o={}))}}),Jfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var r=wf(),i;(function(p){p.Relative="relative"})(i||(e.TokenFormat=i={}));var a;(function(p){p.method="textDocument/semanticTokens",p.type=new r.RegistrationType(p.method)})(a||(e.SemanticTokensRegistrationType=a={}));var o;(function(p){p.method="textDocument/semanticTokens/full",p.messageDirection=r.MessageDirection.clientToServer,p.type=new r.ProtocolRequestType(p.method),p.registrationMethod=a.method,p.capabilities=r.CM.create("textDocument.semanticTokens","semanticTokensProvider")})(o||(e.SemanticTokensRequest=o={}));var l;(function(p){p.method="textDocument/semanticTokens/full/delta",p.messageDirection=r.MessageDirection.clientToServer,p.type=new r.ProtocolRequestType(p.method),p.registrationMethod=a.method,p.capabilities=r.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")})(l||(e.SemanticTokensDeltaRequest=l={}));var h;(function(p){p.method="textDocument/semanticTokens/range",p.messageDirection=r.MessageDirection.clientToServer,p.type=new r.ProtocolRequestType(p.method),p.registrationMethod=a.method,p.capabilities=r.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")})(h||(e.SemanticTokensRangeRequest=h={}));var d;(function(p){p.method="workspace/semanticTokens/refresh",p.messageDirection=r.MessageDirection.serverToClient,p.type=new r.ProtocolRequestType0(p.method),p.capabilities=r.CM.create("workspace.semanticTokens.refreshSupport",void 0)})(d||(e.SemanticTokensRefreshRequest=d={}))}}),epi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var r=wf(),i;(function(a){a.method="window/showDocument",a.messageDirection=r.MessageDirection.serverToClient,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("window.showDocument.support",void 0)})(i||(e.ShowDocumentRequest=i={}))}}),tpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/linkedEditingRange",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")})(i||(e.LinkedEditingRangeRequest=i={}))}}),rpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var r=wf(),i;(function(m){m.file="file",m.folder="folder"})(i||(e.FileOperationPatternKind=i={}));var a;(function(m){m.method="workspace/willCreateFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolRequestType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")})(a||(e.WillCreateFilesRequest=a={}));var o;(function(m){m.method="workspace/didCreateFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolNotificationType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")})(o||(e.DidCreateFilesNotification=o={}));var l;(function(m){m.method="workspace/willRenameFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolRequestType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")})(l||(e.WillRenameFilesRequest=l={}));var h;(function(m){m.method="workspace/didRenameFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolNotificationType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")})(h||(e.DidRenameFilesNotification=h={}));var d;(function(m){m.method="workspace/didDeleteFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolNotificationType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")})(d||(e.DidDeleteFilesNotification=d={}));var p;(function(m){m.method="workspace/willDeleteFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolRequestType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")})(p||(e.WillDeleteFilesRequest=p={}))}}),npi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var r=wf(),i;(function(l){l.document="document",l.project="project",l.group="group",l.scheme="scheme",l.global="global"})(i||(e.UniquenessLevel=i={}));var a;(function(l){l.$import="import",l.$export="export",l.local="local"})(a||(e.MonikerKind=a={}));var o;(function(l){l.method="textDocument/moniker",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.moniker","monikerProvider")})(o||(e.MonikerRequest=o={}))}}),ipi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var r=wf(),i;(function(l){l.method="textDocument/prepareTypeHierarchy",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")})(i||(e.TypeHierarchyPrepareRequest=i={}));var a;(function(l){l.method="typeHierarchy/supertypes",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method)})(a||(e.TypeHierarchySupertypesRequest=a={}));var o;(function(l){l.method="typeHierarchy/subtypes",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method)})(o||(e.TypeHierarchySubtypesRequest=o={}))}}),api=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var r=wf(),i;(function(o){o.method="textDocument/inlineValue",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.inlineValue","inlineValueProvider")})(i||(e.InlineValueRequest=i={}));var a;(function(o){o.method="workspace/inlineValue/refresh",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType0(o.method),o.capabilities=r.CM.create("workspace.inlineValue.refreshSupport",void 0)})(a||(e.InlineValueRefreshRequest=a={}))}}),spi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var r=wf(),i;(function(l){l.method="textDocument/inlayHint",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.inlayHint","inlayHintProvider")})(i||(e.InlayHintRequest=i={}));var a;(function(l){l.method="inlayHint/resolve",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")})(a||(e.InlayHintResolveRequest=a={}));var o;(function(l){l.method="workspace/inlayHint/refresh",l.messageDirection=r.MessageDirection.serverToClient,l.type=new r.ProtocolRequestType0(l.method),l.capabilities=r.CM.create("workspace.inlayHint.refreshSupport",void 0)})(o||(e.InlayHintRefreshRequest=o={}))}}),opi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){var r=e&&e.__createBinding||(Object.create?function(w,T,x,k){if(k===void 0)k=x;var A=Object.getOwnPropertyDescriptor(T,x);if(!A||("get"in A?!T.__esModule:A.writable||A.configurable))A={enumerable:!0,get:ee(function(){return T[x]},"get")};Object.defineProperty(w,k,A)}:function(w,T,x,k){if(k===void 0)k=x;w[k]=T[x]}),i=e&&e.__setModuleDefault||(Object.create?function(w,T){Object.defineProperty(w,"default",{enumerable:!0,value:T})}:function(w,T){w.default=T}),a=e&&e.__importStar||function(){var w=ee(function(T){return w=Object.getOwnPropertyNames||function(x){var k=[];for(var A in x)if(Object.prototype.hasOwnProperty.call(x,A))k[k.length]=A;return k},w(T)},"ownKeys");return function(T){if(T&&T.__esModule)return T;var x={};if(T!=null){for(var k=w(T),A=0;A0}ee(Fn,"hasId"),tt.hasId=Fn})(he||(e.StaticRegistrationOptions=he={}));var ye;(function(tt){function Fn(Hn){let _t=Hn;return _t&&(_t.documentSelector===null||W.is(_t.documentSelector))}ee(Fn,"is"),tt.is=Fn})(ye||(e.TextDocumentRegistrationOptions=ye={}));var xe;(function(tt){function Fn(_t){let Sr=_t;return h.objectLiteral(Sr)&&(Sr.workDoneProgress===void 0||h.boolean(Sr.workDoneProgress))}ee(Fn,"is"),tt.is=Fn;function Hn(_t){let Sr=_t;return Sr&&h.boolean(Sr.workDoneProgress)}ee(Hn,"hasWorkDoneProgress"),tt.hasWorkDoneProgress=Hn})(xe||(e.WorkDoneProgressOptions=xe={}));var Ie;(function(tt){tt.method="initialize",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method)})(Ie||(e.InitializeRequest=Ie={}));var Ee;(function(tt){tt.unknownProtocolVersion=1})(Ee||(e.InitializeErrorCodes=Ee={}));var Ue;(function(tt){tt.method="initialized",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method)})(Ue||(e.InitializedNotification=Ue={}));var Me;(function(tt){tt.method="shutdown",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType0(tt.method)})(Me||(e.ShutdownRequest=Me={}));var Xe;(function(tt){tt.method="exit",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType0(tt.method)})(Xe||(e.ExitNotification=Xe={}));var je;(function(tt){tt.method="workspace/didChangeConfiguration",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("workspace.didChangeConfiguration",void 0)})(je||(e.DidChangeConfigurationNotification=je={}));var Qe;(function(tt){tt.Error=1,tt.Warning=2,tt.Info=3,tt.Log=4,tt.Debug=5})(Qe||(e.MessageType=Qe={}));var St;(function(tt){tt.method="window/showMessage",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("window.showMessage",void 0)})(St||(e.ShowMessageNotification=St={}));var pt;(function(tt){tt.method="window/showMessageRequest",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("window.showMessage",void 0)})(pt||(e.ShowMessageRequest=pt={}));var Vt;(function(tt){tt.method="window/logMessage",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method)})(Vt||(e.LogMessageNotification=Vt={}));var Xt;(function(tt){tt.method="telemetry/event",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method)})(Xt||(e.TelemetryEventNotification=Xt={}));var rr;(function(tt){tt.None=0,tt.Full=1,tt.Incremental=2})(rr||(e.TextDocumentSyncKind=rr={}));var We;(function(tt){tt.method="textDocument/didOpen",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization","textDocumentSync.openClose")})(We||(e.DidOpenTextDocumentNotification=We={}));var Nt;(function(tt){function Fn(_t){let Sr=_t;return Sr!==void 0&&Sr!==null&&typeof Sr.text==="string"&&Sr.range!==void 0&&(Sr.rangeLength===void 0||typeof Sr.rangeLength==="number")}ee(Fn,"isIncremental"),tt.isIncremental=Fn;function Hn(_t){let Sr=_t;return Sr!==void 0&&Sr!==null&&typeof Sr.text==="string"&&Sr.range===void 0&&Sr.rangeLength===void 0}ee(Hn,"isFull"),tt.isFull=Hn})(Nt||(e.TextDocumentContentChangeEvent=Nt={}));var ct;(function(tt){tt.method="textDocument/didChange",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization","textDocumentSync")})(ct||(e.DidChangeTextDocumentNotification=ct={}));var bt;(function(tt){tt.method="textDocument/didClose",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization","textDocumentSync.openClose")})(bt||(e.DidCloseTextDocumentNotification=bt={}));var Pe;(function(tt){tt.method="textDocument/didSave",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")})(Pe||(e.DidSaveTextDocumentNotification=Pe={}));var Ge;(function(tt){tt.Manual=1,tt.AfterDelay=2,tt.FocusOut=3})(Ge||(e.TextDocumentSaveReason=Ge={}));var qe;(function(tt){tt.method="textDocument/willSave",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")})(qe||(e.WillSaveTextDocumentNotification=qe={}));var Ke;(function(tt){tt.method="textDocument/willSaveWaitUntil",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")})(Ke||(e.WillSaveTextDocumentWaitUntilRequest=Ke={}));var Je;(function(tt){tt.method="workspace/didChangeWatchedFiles",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("workspace.didChangeWatchedFiles",void 0)})(Je||(e.DidChangeWatchedFilesNotification=Je={}));var De;(function(tt){tt.Created=1,tt.Changed=2,tt.Deleted=3})(De||(e.FileChangeType=De={}));var oe;(function(tt){function Fn(Hn){let _t=Hn;return h.objectLiteral(_t)&&(l.URI.is(_t.baseUri)||l.WorkspaceFolder.is(_t.baseUri))&&h.string(_t.pattern)}ee(Fn,"is"),tt.is=Fn})(oe||(e.RelativePattern=oe={}));var pe;(function(tt){function Fn(Hn){let _t=Hn;return h.string(_t)||oe.is(_t)}ee(Fn,"is"),tt.is=Fn})(pe||(e.GlobPattern=pe={}));var fe;(function(tt){tt.Create=1,tt.Change=2,tt.Delete=4})(fe||(e.WatchKind=fe={}));var be;(function(tt){tt.method="textDocument/publishDiagnostics",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.publishDiagnostics",void 0)})(be||(e.PublishDiagnosticsNotification=be={}));var ze;(function(tt){tt.Invoked=1,tt.TriggerCharacter=2,tt.TriggerForIncompleteCompletions=3})(ze||(e.CompletionTriggerKind=ze={}));var Ce;(function(tt){tt.method="textDocument/completion",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.completion","completionProvider")})(Ce||(e.CompletionRequest=Ce={}));var _e;(function(tt){tt.method="completionItem/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")})(_e||(e.CompletionResolveRequest=_e={}));var ke;(function(tt){tt.method="textDocument/hover",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.hover","hoverProvider")})(ke||(e.HoverRequest=ke={}));var it;(function(tt){tt.Invoked=1,tt.TriggerCharacter=2,tt.ContentChange=3})(it||(e.SignatureHelpTriggerKind=it={}));var ut;(function(tt){tt.method="textDocument/signatureHelp",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.signatureHelp","signatureHelpProvider")})(ut||(e.SignatureHelpRequest=ut={}));var gt;(function(tt){tt.method="textDocument/definition",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.definition","definitionProvider")})(gt||(e.DefinitionRequest=gt={}));var vt;(function(tt){tt.method="textDocument/references",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.references","referencesProvider")})(vt||(e.ReferencesRequest=vt={}));var ir;(function(tt){tt.method="textDocument/documentHighlight",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentHighlight","documentHighlightProvider")})(ir||(e.DocumentHighlightRequest=ir={}));var qt;(function(tt){tt.method="textDocument/documentSymbol",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentSymbol","documentSymbolProvider")})(qt||(e.DocumentSymbolRequest=qt={}));var cr;(function(tt){tt.method="textDocument/codeAction",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeAction","codeActionProvider")})(cr||(e.CodeActionRequest=cr={}));var tr;(function(tt){tt.method="codeAction/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")})(tr||(e.CodeActionResolveRequest=tr={}));var Zt;(function(tt){tt.method="workspace/symbol",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("workspace.symbol","workspaceSymbolProvider")})(Zt||(e.WorkspaceSymbolRequest=Zt={}));var lr;(function(tt){tt.method="workspaceSymbol/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")})(lr||(e.WorkspaceSymbolResolveRequest=lr={}));var Kt;(function(tt){tt.method="textDocument/codeLens",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeLens","codeLensProvider")})(Kt||(e.CodeLensRequest=Kt={}));var In;(function(tt){tt.method="codeLens/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")})(In||(e.CodeLensResolveRequest=In={}));var Et;(function(tt){tt.method="workspace/codeLens/refresh",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolRequestType0(tt.method),tt.capabilities=o.CM.create("workspace.codeLens",void 0)})(Et||(e.CodeLensRefreshRequest=Et={}));var Xn;(function(tt){tt.method="textDocument/documentLink",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentLink","documentLinkProvider")})(Xn||(e.DocumentLinkRequest=Xn={}));var Yt;(function(tt){tt.method="documentLink/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")})(Yt||(e.DocumentLinkResolveRequest=Yt={}));var Bn;(function(tt){tt.method="textDocument/formatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.formatting","documentFormattingProvider")})(Bn||(e.DocumentFormattingRequest=Bn={}));var si;(function(tt){tt.method="textDocument/rangeFormatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")})(si||(e.DocumentRangeFormattingRequest=si={}));var hn;(function(tt){tt.method="textDocument/rangesFormatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")})(hn||(e.DocumentRangesFormattingRequest=hn={}));var Ii;(function(tt){tt.method="textDocument/onTypeFormatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")})(Ii||(e.DocumentOnTypeFormattingRequest=Ii={}));var Vn;(function(tt){tt.Identifier=1})(Vn||(e.PrepareSupportDefaultBehavior=Vn={}));var Ei;(function(tt){tt.method="textDocument/rename",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rename","renameProvider")})(Ei||(e.RenameRequest=Ei={}));var yn;(function(tt){tt.method="textDocument/prepareRename",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")})(yn||(e.PrepareRenameRequest=yn={}));var Li;(function(tt){tt.method="workspace/executeCommand",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("workspace.executeCommand","executeCommandProvider")})(Li||(e.ExecuteCommandRequest=Li={}));var Ia;(function(tt){tt.method="workspace/applyEdit",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolRequestType("workspace/applyEdit"),tt.capabilities=o.CM.create("workspace.applyEdit",void 0)})(Ia||(e.ApplyWorkspaceEditRequest=Ia={}))}}),dpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=i;var r=Fse();function i(a,o,l,h){if(r.ConnectionStrategy.is(h))h={connectionStrategy:h};return(0,r.createMessageConnection)(a,o,l,h)}ee(i,"createProtocolConnection")}}),Mut=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var r=e&&e.__createBinding||(Object.create?function(l,h,d,p){if(p===void 0)p=d;var m=Object.getOwnPropertyDescriptor(h,d);if(!m||("get"in m?!h.__esModule:m.writable||m.configurable))m={enumerable:!0,get:ee(function(){return h[d]},"get")};Object.defineProperty(l,p,m)}:function(l,h,d,p){if(p===void 0)p=d;l[p]=h[d]}),i=e&&e.__exportStar||function(l,h){for(var d in l)if(d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d))r(h,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,i(Fse(),e),i((S4e(),Out(w4e)),e),i(wf(),e),i(hpi(),e);var a=dpi();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:ee(function(){return a.createProtocolConnection},"get")});var o;(function(l){l.lspReservedErrorRangeStart=-32899,l.RequestFailed=-32803,l.ServerCancelled=-32802,l.ContentModified=-32801,l.RequestCancelled=-32800,l.lspReservedErrorRangeEnd=-32800})(o||(e.LSPErrorCodes=o={}))}});ee(o1,"isAstNode");ee(mT,"isReference");ee(_I,"isMultiReference");ee(YBr,"isAstNodeDescription");ee(hY,"isLinkingError");WBr=class{static{ee(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let r=this.types[e.container.$type];if(!r)throw Error(`Type ${e.container.$type||"undefined"} not found.`);let i=r.properties[e.property]?.referenceType;if(!i)throw Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return i}getTypeMetaData(e){let r=this.types[e];if(!r)return{name:e,properties:{},superTypes:[]};return r}isInstance(e,r){return o1(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let i=this.subtypes[e];if(!i)i=this.subtypes[e]={};let a=i[r];if(a!==void 0)return a;else{let o=this.types[e],l=o?o.superTypes.some((h)=>this.isSubtype(h,r)):!1;return i[r]=l,l}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;else{let i=this.getAllTypes(),a=[];for(let o of i)if(this.isSubtype(o,e))a.push(o);return this.allSubtypes[e]=a,a}}isComplete(e){let r=this.getTypeMetaData(e.$type);for(let i of Object.keys(r.properties)){let a=r.properties[i];if(a.optional)continue;let o=e[a.name];if(o===void 0||o===null)return!1}return!0}};ee(vY,"isCompositeCstNode");ee(Dut,"isLeafCstNode");ee(Put,"isRootCstNode");U7=class e{static{ee(this,"StreamImpl")}constructor(r,i){this.startFn=r,this.nextFn=i}iterator(){let r={state:this.startFn(),next:ee(()=>this.nextFn(r.state),"next"),[Symbol.iterator]:()=>r};return r}[Symbol.iterator](){return this.iterator()}isEmpty(){let r=this.iterator();return Boolean(r.next().done)}count(){let r=this.iterator(),i=0,a=r.next();while(!a.done)i++,a=r.next();return i}toArray(){let r=[],i=this.iterator(),a;do if(a=i.next(),a.value!==void 0)r.push(a.value);while(!a.done);return r}toSet(){return new Set(this)}toMap(r,i){let a=this.map((o)=>[r?r(o):o,i?i(o):o]);return new Map(a)}toString(){return this.join()}concat(r){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:r[Symbol.iterator]()}),(i)=>{let a;if(!i.firstDone){do if(a=this.nextFn(i.first),!a.done)return a;while(!a.done);i.firstDone=!0}do if(a=i.iterator.next(),!a.done)return a;while(!a.done);return tw})}join(r=","){let i=this.iterator(),a="",o,l=!1;do{if(o=i.next(),!o.done){if(l)a+=r;a+=jBr(o.value)}l=!0}while(!o.done);return a}indexOf(r,i=0){let a=this.iterator(),o=0,l=a.next();while(!l.done){if(o>=i&&l.value===r)return o;l=a.next(),o++}return-1}every(r){let i=this.iterator(),a=i.next();while(!a.done){if(!r(a.value))return!1;a=i.next()}return!0}some(r){let i=this.iterator(),a=i.next();while(!a.done){if(r(a.value))return!0;a=i.next()}return!1}forEach(r){let i=this.iterator(),a=0,o=i.next();while(!o.done)r(o.value,a),o=i.next(),a++}map(r){return new e(this.startFn,(i)=>{let{done:a,value:o}=this.nextFn(i);if(a)return tw;else return{done:!1,value:r(o)}})}filter(r){return new e(this.startFn,(i)=>{let a;do if(a=this.nextFn(i),!a.done&&r(a.value))return a;while(!a.done);return tw})}nonNullable(){return this.filter((r)=>r!==void 0&&r!==null)}reduce(r,i){let a=this.iterator(),o=i,l=a.next();while(!l.done){if(o===void 0)o=l.value;else o=r(o,l.value);l=a.next()}return o}reduceRight(r,i){return this.recursiveReduce(this.iterator(),r,i)}recursiveReduce(r,i,a){let o=r.next();if(o.done)return a;let l=this.recursiveReduce(r,i,a);if(l===void 0)return o.value;return i(l,o.value)}find(r){let i=this.iterator(),a=i.next();while(!a.done){if(r(a.value))return a.value;a=i.next()}return}findIndex(r){let i=this.iterator(),a=0,o=i.next();while(!o.done){if(r(o.value))return a;o=i.next(),a++}return-1}includes(r){let i=this.iterator(),a=i.next();while(!a.done){if(a.value===r)return!0;a=i.next()}return!1}flatMap(r){return new e(()=>({this:this.startFn()}),(i)=>{do{if(i.iterator){let l=i.iterator.next();if(l.done)i.iterator=void 0;else return l}let{done:a,value:o}=this.nextFn(i.this);if(!a){let l=r(o);if(_se(l))i.iterator=l[Symbol.iterator]();else return{done:!1,value:l}}}while(i.iterator);return tw})}flat(r){if(r===void 0)r=1;if(r<=0)return this;let i=r>1?this.flat(r-1):this;return new e(()=>({this:i.startFn()}),(a)=>{do{if(a.iterator){let h=a.iterator.next();if(h.done)a.iterator=void 0;else return h}let{done:o,value:l}=i.nextFn(a.this);if(!o)if(_se(l))a.iterator=l[Symbol.iterator]();else return{done:!1,value:l}}while(a.iterator);return tw})}head(){let i=this.iterator().next();if(i.done)return;return i.value}tail(r=1){return new e(()=>{let i=this.startFn();for(let a=0;a({size:0,state:this.startFn()}),(i)=>{if(i.size++,i.size>r)return tw;return this.nextFn(i.state)})}distinct(r){return new e(()=>({set:new Set,internalState:this.startFn()}),(i)=>{let a;do if(a=this.nextFn(i.internalState),!a.done){let o=r?r(a.value):a.value;if(!i.set.has(o))return i.set.add(o),a}while(!a.done);return tw})}exclude(r,i){let a=new Set;for(let o of r){let l=i?i(o):o;a.add(l)}return this.filter((o)=>{let l=i?i(o):o;return!a.has(l)})}};ee(jBr,"toString");ee(_se,"isIterable");KBr=new U7(()=>{return},()=>tw),tw=Object.freeze({done:!0,value:void 0});ee(Ef,"stream");SCe=class extends U7{static{ee(this,"TreeStreamImpl")}constructor(e,r,i){super(()=>({iterators:i?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),(a)=>{if(a.pruned)a.iterators.pop(),a.pruned=!1;while(a.iterators.length>0){let l=a.iterators[a.iterators.length-1].next();if(l.done)a.iterators.pop();else return a.iterators.push(r(l.value)[Symbol.iterator]()),l}return tw})}iterator(){let e={state:this.startFn(),next:ee(()=>this.nextFn(e.state),"next"),prune:ee(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};(function(e){function r(l){return l.reduce((h,d)=>h+d,0)}ee(r,"sum"),e.sum=r;function i(l){return l.reduce((h,d)=>h*d,0)}ee(i,"product"),e.product=i;function a(l){return l.reduce((h,d)=>Math.min(h,d))}ee(a,"min"),e.min=a;function o(l){return l.reduce((h,d)=>Math.max(h,d))}ee(o,"max"),e.max=o})(Sct||(Sct={}));ee(TCe,"linkContentToContainer");ee($se,"getContainerOfType");ee(Y3,"getDocument");ee(ose,"findRootNode");ee(Tct,"getReferenceNodes");ee(T4e,"streamContents");ee(TY,"streamAllContents");ee(W3,"streamAst");ee(xCe,"isAstNodeInRange");ee(Ese,"streamReferences");ee(XBr,"assignMandatoryProperties");ee(But,"copyDefaultValue");ew={$type:"AbstractElement",cardinality:"cardinality"};ee(QBr,"isAbstractElement");nCe={$type:"AbstractParserRule"};ee(xY,"isAbstractParserRule");Axe={$type:"AbstractRule"},DC={$type:"AbstractType"},$B={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};ee(Use,"isAction");iCe={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};ee(Fut,"isAlternatives");EPr={$type:"ArrayLiteral",elements:"elements"},wPr={$type:"ArrayType",elementType:"elementType"},UB={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};ee(z7,"isAssignment");xct={$type:"BooleanLiteral",true:"true"};ee(ZBr,"isBooleanLiteral");GB={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};ee(JBr,"isCharacterRange");jq={$type:"Condition"},aCe={$type:"Conjunction",left:"left",right:"right"};ee(eFr,"isConjunction");zB={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};ee(Gse,"isCrossReference");sCe={$type:"Disjunction",left:"left",right:"right"};ee(tFr,"isDisjunction");Cct={$type:"EndOfFile",cardinality:"cardinality"};ee(rFr,"isEndOfFile");DB={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},SPr={$type:"GrammarImport",path:"path"},tY={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};ee(x4e,"isGroup");kct={$type:"InferredType",name:"name"};ee($ut,"isInferredType");cI={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};ee(wse,"isInfixRule");elt={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},TPr={$type:"InfixRuleOperators",precedences:"precedences"},Zae={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};ee(nFr,"isInterface");Jae={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};ee(V7,"isKeyword");Rxe={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},rY={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};ee(iFr,"isNegatedToken");Act={$type:"Negation",value:"value"};ee(aFr,"isNegation");xPr={$type:"NumberLiteral",value:"value"},Ixe={$type:"Parameter",name:"name"},Rct={$type:"ParameterReference",parameter:"parameter"};ee(sFr,"isParameterReference");q3={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};ee(X3,"isParserRule");tlt={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},nY={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};ee(oFr,"isRegexToken");Ict={$type:"ReturnType",name:"name"};ee(lFr,"isReturnType");iY={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};ee(H7,"isRuleCall");ese={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};ee(cFr,"isSimpleType");CPr={$type:"StringLiteral",value:"value"},aY={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};ee(uFr,"isTerminalAlternatives");pT={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},sY={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};ee(hFr,"isTerminalGroup");C7={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};ee(Q3,"isTerminalRule");oY={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};ee(Uut,"isTerminalRuleCall");oCe={$type:"Type",name:"name",type:"type"};ee(dFr,"isType");Dae={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},Pae={$type:"TypeDefinition"},kPr={$type:"UnionType",types:"types"},lCe={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};ee(Gut,"isUnorderedGroup");lY={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};ee(fFr,"isUntilToken");Bae={$type:"ValueLiteral"},tse={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};ee(pFr,"isWildcard");gFr=class extends WBr{static{ee(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments);this.types={AbstractElement:{name:ew.$type,properties:{cardinality:{name:ew.cardinality,optional:!0}},superTypes:[]},AbstractParserRule:{name:nCe.$type,properties:{},superTypes:[Axe.$type,DC.$type]},AbstractRule:{name:Axe.$type,properties:{},superTypes:[]},AbstractType:{name:DC.$type,properties:{},superTypes:[]},Action:{name:$B.$type,properties:{cardinality:{name:$B.cardinality,optional:!0},feature:{name:$B.feature,optional:!0},inferredType:{name:$B.inferredType,optional:!0},operator:{name:$B.operator,optional:!0},type:{name:$B.type,referenceType:DC.$type,optional:!0}},superTypes:[ew.$type]},Alternatives:{name:iCe.$type,properties:{cardinality:{name:iCe.cardinality,optional:!0},elements:{name:iCe.elements,defaultValue:[]}},superTypes:[ew.$type]},ArrayLiteral:{name:EPr.$type,properties:{elements:{name:EPr.elements,defaultValue:[]}},superTypes:[Bae.$type]},ArrayType:{name:wPr.$type,properties:{elementType:{name:wPr.elementType}},superTypes:[Pae.$type]},Assignment:{name:UB.$type,properties:{cardinality:{name:UB.cardinality,optional:!0},feature:{name:UB.feature},operator:{name:UB.operator},predicate:{name:UB.predicate,optional:!0},terminal:{name:UB.terminal}},superTypes:[ew.$type]},BooleanLiteral:{name:xct.$type,properties:{true:{name:xct.true,defaultValue:!1}},superTypes:[jq.$type,Bae.$type]},CharacterRange:{name:GB.$type,properties:{cardinality:{name:GB.cardinality,optional:!0},left:{name:GB.left},lookahead:{name:GB.lookahead,optional:!0},parenthesized:{name:GB.parenthesized,defaultValue:!1,optional:!0},right:{name:GB.right,optional:!0}},superTypes:[pT.$type]},Condition:{name:jq.$type,properties:{},superTypes:[]},Conjunction:{name:aCe.$type,properties:{left:{name:aCe.left},right:{name:aCe.right}},superTypes:[jq.$type]},CrossReference:{name:zB.$type,properties:{cardinality:{name:zB.cardinality,optional:!0},deprecatedSyntax:{name:zB.deprecatedSyntax,defaultValue:!1},isMulti:{name:zB.isMulti,defaultValue:!1},terminal:{name:zB.terminal,optional:!0},type:{name:zB.type,referenceType:DC.$type}},superTypes:[ew.$type]},Disjunction:{name:sCe.$type,properties:{left:{name:sCe.left},right:{name:sCe.right}},superTypes:[jq.$type]},EndOfFile:{name:Cct.$type,properties:{cardinality:{name:Cct.cardinality,optional:!0}},superTypes:[ew.$type]},Grammar:{name:DB.$type,properties:{imports:{name:DB.imports,defaultValue:[]},interfaces:{name:DB.interfaces,defaultValue:[]},isDeclared:{name:DB.isDeclared,defaultValue:!1},name:{name:DB.name,optional:!0},rules:{name:DB.rules,defaultValue:[]},types:{name:DB.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:SPr.$type,properties:{path:{name:SPr.path}},superTypes:[]},Group:{name:tY.$type,properties:{cardinality:{name:tY.cardinality,optional:!0},elements:{name:tY.elements,defaultValue:[]},guardCondition:{name:tY.guardCondition,optional:!0},predicate:{name:tY.predicate,optional:!0}},superTypes:[ew.$type]},InferredType:{name:kct.$type,properties:{name:{name:kct.name}},superTypes:[DC.$type]},InfixRule:{name:cI.$type,properties:{call:{name:cI.call},dataType:{name:cI.dataType,optional:!0},inferredType:{name:cI.inferredType,optional:!0},name:{name:cI.name},operators:{name:cI.operators},parameters:{name:cI.parameters,defaultValue:[]},returnType:{name:cI.returnType,referenceType:DC.$type,optional:!0}},superTypes:[nCe.$type]},InfixRuleOperatorList:{name:elt.$type,properties:{associativity:{name:elt.associativity,optional:!0},operators:{name:elt.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:TPr.$type,properties:{precedences:{name:TPr.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:Zae.$type,properties:{attributes:{name:Zae.attributes,defaultValue:[]},name:{name:Zae.name},superTypes:{name:Zae.superTypes,defaultValue:[],referenceType:DC.$type}},superTypes:[DC.$type]},Keyword:{name:Jae.$type,properties:{cardinality:{name:Jae.cardinality,optional:!0},predicate:{name:Jae.predicate,optional:!0},value:{name:Jae.value}},superTypes:[ew.$type]},NamedArgument:{name:Rxe.$type,properties:{calledByName:{name:Rxe.calledByName,defaultValue:!1},parameter:{name:Rxe.parameter,referenceType:Ixe.$type,optional:!0},value:{name:Rxe.value}},superTypes:[]},NegatedToken:{name:rY.$type,properties:{cardinality:{name:rY.cardinality,optional:!0},lookahead:{name:rY.lookahead,optional:!0},parenthesized:{name:rY.parenthesized,defaultValue:!1,optional:!0},terminal:{name:rY.terminal}},superTypes:[pT.$type]},Negation:{name:Act.$type,properties:{value:{name:Act.value}},superTypes:[jq.$type]},NumberLiteral:{name:xPr.$type,properties:{value:{name:xPr.value}},superTypes:[Bae.$type]},Parameter:{name:Ixe.$type,properties:{name:{name:Ixe.name}},superTypes:[]},ParameterReference:{name:Rct.$type,properties:{parameter:{name:Rct.parameter,referenceType:Ixe.$type}},superTypes:[jq.$type]},ParserRule:{name:q3.$type,properties:{dataType:{name:q3.dataType,optional:!0},definition:{name:q3.definition},entry:{name:q3.entry,defaultValue:!1},fragment:{name:q3.fragment,defaultValue:!1},inferredType:{name:q3.inferredType,optional:!0},name:{name:q3.name},parameters:{name:q3.parameters,defaultValue:[]},returnType:{name:q3.returnType,referenceType:DC.$type,optional:!0}},superTypes:[nCe.$type]},ReferenceType:{name:tlt.$type,properties:{isMulti:{name:tlt.isMulti,defaultValue:!1},referenceType:{name:tlt.referenceType}},superTypes:[Pae.$type]},RegexToken:{name:nY.$type,properties:{cardinality:{name:nY.cardinality,optional:!0},lookahead:{name:nY.lookahead,optional:!0},parenthesized:{name:nY.parenthesized,defaultValue:!1,optional:!0},regex:{name:nY.regex}},superTypes:[pT.$type]},ReturnType:{name:Ict.$type,properties:{name:{name:Ict.name}},superTypes:[]},RuleCall:{name:iY.$type,properties:{arguments:{name:iY.arguments,defaultValue:[]},cardinality:{name:iY.cardinality,optional:!0},predicate:{name:iY.predicate,optional:!0},rule:{name:iY.rule,referenceType:Axe.$type}},superTypes:[ew.$type]},SimpleType:{name:ese.$type,properties:{primitiveType:{name:ese.primitiveType,optional:!0},stringType:{name:ese.stringType,optional:!0},typeRef:{name:ese.typeRef,referenceType:DC.$type,optional:!0}},superTypes:[Pae.$type]},StringLiteral:{name:CPr.$type,properties:{value:{name:CPr.value}},superTypes:[Bae.$type]},TerminalAlternatives:{name:aY.$type,properties:{cardinality:{name:aY.cardinality,optional:!0},elements:{name:aY.elements,defaultValue:[]},lookahead:{name:aY.lookahead,optional:!0},parenthesized:{name:aY.parenthesized,defaultValue:!1,optional:!0}},superTypes:[pT.$type]},TerminalElement:{name:pT.$type,properties:{cardinality:{name:pT.cardinality,optional:!0},lookahead:{name:pT.lookahead,optional:!0},parenthesized:{name:pT.parenthesized,defaultValue:!1,optional:!0}},superTypes:[ew.$type]},TerminalGroup:{name:sY.$type,properties:{cardinality:{name:sY.cardinality,optional:!0},elements:{name:sY.elements,defaultValue:[]},lookahead:{name:sY.lookahead,optional:!0},parenthesized:{name:sY.parenthesized,defaultValue:!1,optional:!0}},superTypes:[pT.$type]},TerminalRule:{name:C7.$type,properties:{definition:{name:C7.definition},fragment:{name:C7.fragment,defaultValue:!1},hidden:{name:C7.hidden,defaultValue:!1},name:{name:C7.name},type:{name:C7.type,optional:!0}},superTypes:[Axe.$type]},TerminalRuleCall:{name:oY.$type,properties:{cardinality:{name:oY.cardinality,optional:!0},lookahead:{name:oY.lookahead,optional:!0},parenthesized:{name:oY.parenthesized,defaultValue:!1,optional:!0},rule:{name:oY.rule,referenceType:C7.$type}},superTypes:[pT.$type]},Type:{name:oCe.$type,properties:{name:{name:oCe.name},type:{name:oCe.type}},superTypes:[DC.$type]},TypeAttribute:{name:Dae.$type,properties:{defaultValue:{name:Dae.defaultValue,optional:!0},isOptional:{name:Dae.isOptional,defaultValue:!1},name:{name:Dae.name},type:{name:Dae.type}},superTypes:[]},TypeDefinition:{name:Pae.$type,properties:{},superTypes:[]},UnionType:{name:kPr.$type,properties:{types:{name:kPr.types,defaultValue:[]}},superTypes:[Pae.$type]},UnorderedGroup:{name:lCe.$type,properties:{cardinality:{name:lCe.cardinality,optional:!0},elements:{name:lCe.elements,defaultValue:[]}},superTypes:[ew.$type]},UntilToken:{name:lY.$type,properties:{cardinality:{name:lY.cardinality,optional:!0},lookahead:{name:lY.lookahead,optional:!0},parenthesized:{name:lY.parenthesized,defaultValue:!1,optional:!0},terminal:{name:lY.terminal}},superTypes:[pT.$type]},ValueLiteral:{name:Bae.$type,properties:{},superTypes:[]},Wildcard:{name:tse.$type,properties:{cardinality:{name:tse.cardinality,optional:!0},lookahead:{name:tse.lookahead,optional:!0},parenthesized:{name:tse.parenthesized,defaultValue:!1,optional:!0}},superTypes:[pT.$type]}}}},Mu=new gFr;ee(CCe,"streamCst");ee(mFr,"isChildNode");ee(bFr,"tokenToRange");ee(kCe,"isValidTokenRange");ee(Sse,"toDocumentSegment");(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(gI||(gI={}));ee(yFr,"compareRange");ee(vFr,"inRange");fpi=/^[\w\p{L}]$/u;ee(_Fr,"findCommentNode");ee(Oct,"isCommentNode");ee(EFr,"getPreviousNode");wFr=class extends Error{static{ee(this,"ErrorWithLocation")}constructor(e,r){let i=typeof r==="string"?r:r();super(e?`${i} at ${e.range.start.line}:${e.range.start.character}`:i)}};ee(CY,"assertUnreachable");ee(Fo,"cc");ee(cCe,"insertToSet");ee(cY,"addFlag");ee(VB,"ASSERT_EXISTS");ee(rse,"ASSERT_NEVER_REACH_HERE");ee(Nct,"isCharacter");ACe=[];for(let e=Fo("0");e<=Fo("9");e++)ACe.push(e);RCe=[Fo("_")].concat(ACe);for(let e=Fo("a");e<=Fo("z");e++)RCe.push(e);for(let e=Fo("A");e<=Fo("Z");e++)RCe.push(e);APr=[Fo(" "),Fo("\f"),Fo(` -`),Fo("\r"),Fo("\t"),Fo("\v"),Fo("\t"),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo("\u2028"),Fo("\u2029"),Fo(" "),Fo(" "),Fo(" "),Fo("\uFEFF")],ppi=/[0-9a-fA-F]/,Oxe=/[0-9]/,gpi=/[1-9]/,SFr=class{static{ee(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let i={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};while(this.isRegExpFlag())switch(this.popChar()){case"g":cY(i,"global");break;case"i":cY(i,"ignoreCase");break;case"m":cY(i,"multiLine");break;case"u":cY(i,"unicode");break;case"y":cY(i,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;e.push(this.alternative());while(this.peekChar()==="|")this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;while(this.isTerm())e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){if(this.isAssertion())return this.assertion();else return this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}VB(r);let i=this.disjunction();return this.consumeChar(")"),{type:r,value:i,loc:this.loc(e)}}return rse()}quantifier(e=!1){let r=void 0,i=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let o;if(this.isDigit())o=this.integerIncludingZero(),r={atLeast:a,atMost:o};else r={atLeast:a,atMost:1/0};this.consumeChar("}");break}if(e===!0&&r===void 0)return;VB(r);break}if(e===!0&&r===void 0)return;if(VB(r)){if(this.peekChar(0)==="?")this.consumeChar("?"),r.greedy=!1;else r.greedy=!0;return r.type="Quantifier",r.loc=this.loc(i),r}}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter())e=this.patternCharacter();if(VB(e)){if(e.loc=this.loc(r),this.isQuantifier())e.quantifier=this.quantifier();return e}return rse()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Fo(` -`),Fo("\r"),Fo("\u2028"),Fo("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=ACe;break;case"D":e=ACe,r=!0;break;case"s":e=APr;break;case"S":e=APr,r=!0;break;case"w":e=RCe;break;case"W":e=RCe,r=!0;break}if(VB(e))return{type:"Set",value:e,complement:r};return rse()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Fo("\f");break;case"n":e=Fo(` -`);break;case"r":e=Fo("\r");break;case"t":e=Fo("\t");break;case"v":e=Fo("\v");break}if(VB(e))return{type:"Character",value:e};return rse()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Fo("\x00")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:Fo(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` -`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:Fo(e)}}}characterClass(){let e=[],r=!1;if(this.consumeChar("["),this.peekChar(0)==="^")this.consumeChar("^"),r=!0;while(this.isClassAtom()){let i=this.classAtom(),a=i.type==="Character";if(Nct(i)&&this.isRangeDash()){this.consumeChar("-");let o=this.classAtom(),l=o.type==="Character";if(Nct(o)){if(o.value0)e.push(r.length);this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let r=this.getLineOffsets(),i=0,a=r.length;if(a===0)return Th.create(0,e);while(ie)a=l;else i=l+1}let o=i-1;return Th.create(o,e-r[o])}offsetAt(e){let r=this.getLineOffsets();if(e.line>=r.length)return this._content.length;else if(e.line<0)return 0;let i=r[e.line],a=e.line+1"u"}te(a,"undefined"),e.undefined=a;function o(T){return T===!0||T===!1}te(o,"boolean"),e.boolean=o;function l(T){return r.call(T)==="[object String]"}te(l,"string"),e.string=l;function h(T){return r.call(T)==="[object Number]"}te(h,"number"),e.number=h;function d(T,x,k){return r.call(T)==="[object Number]"&&x<=T&&T<=k}te(d,"numberRange"),e.numberRange=d;function p(T){return r.call(T)==="[object Number]"&&-2147483648<=T&&T<=2147483647}te(p,"integer"),e.integer=p;function m(T){return r.call(T)==="[object Number]"&&0<=T&&T<=2147483647}te(m,"uinteger"),e.uinteger=m;function y(T){return r.call(T)==="[object Function]"}te(y,"func"),e.func=y;function v(T){return T!==null&&typeof T==="object"}te(v,"objectLiteral"),e.objectLiteral=v;function w(T,x){return Array.isArray(T)&&T.every(x)}te(w,"typedArray"),e.typedArray=w}(Jr||(Jr={}))}}),wf=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/messages.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CM=e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;var r=Gse(),i;(function(m){m.clientToServer="clientToServer",m.serverToClient="serverToClient",m.both="both"})(i||(e.MessageDirection=i={}));var a=class{static{te(this,"RegistrationType")}____;method;constructor(m){this.method=m}};e.RegistrationType=a;var o=class extends r.RequestType0{static{te(this,"ProtocolRequestType0")}__;___;____;_pr;constructor(m){super(m)}};e.ProtocolRequestType0=o;var l=class extends r.RequestType{static{te(this,"ProtocolRequestType")}__;___;____;_pr;constructor(m){super(m,r.ParameterStructures.byName)}};e.ProtocolRequestType=l;var h=class extends r.NotificationType0{static{te(this,"ProtocolNotificationType0")}___;____;constructor(m){super(m)}};e.ProtocolNotificationType0=h;var d=class extends r.NotificationType{static{te(this,"ProtocolNotificationType")}___;____;constructor(m){super(m,r.ParameterStructures.byName)}};e.ProtocolNotificationType=d;var p;(function(m){function y(v,w){return{client:v,server:w}}te(y,"create"),m.create=y})(p||(e.CM=p={}))}}),Put=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolean=r,e.string=i,e.number=a,e.error=o,e.func=l,e.array=h,e.stringArray=d,e.typedArray=p,e.objectLiteral=m;function r(y){return y===!0||y===!1}te(r,"boolean");function i(y){return typeof y==="string"||y instanceof String}te(i,"string");function a(y){return typeof y==="number"||y instanceof Number}te(a,"number");function o(y){return y instanceof Error}te(o,"error");function l(y){return typeof y==="function"}te(l,"func");function h(y){return Array.isArray(y)}te(h,"array");function d(y){return h(y)&&y.every((v)=>i(v))}te(d,"stringArray");function p(y,v){return Array.isArray(y)&&y.every(v)}te(p,"typedArray");function m(y){return y!==null&&typeof y==="object"}te(m,"objectLiteral")}}),Kfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/implementation",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.implementation","implementationProvider")})(i||(e.ImplementationRequest=i={}))}}),Xfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/typeDefinition",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.typeDefinition","typeDefinitionProvider")})(i||(e.TypeDefinitionRequest=i={}))}}),Qfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;var r=wf(),i;(function(o){o.method="workspace/workspaceFolders",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType0(o.method),o.capabilities=r.CM.create("workspace.workspaceFolders","workspace.workspaceFolders")})(i||(e.WorkspaceFoldersRequest=i={}));var a;(function(o){o.method="workspace/didChangeWorkspaceFolders",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolNotificationType(o.method),o.capabilities=r.CM.create(void 0,"workspace.workspaceFolders.changeNotifications")})(a||(e.DidChangeWorkspaceFoldersNotification=a={}))}}),Zfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;var r=wf(),i;(function(a){a.method="workspace/configuration",a.messageDirection=r.MessageDirection.serverToClient,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("workspace.configuration",void 0)})(i||(e.ConfigurationRequest=i={}))}}),Jfi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;var r=wf(),i;(function(o){o.method="textDocument/documentColor",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.colorProvider","colorProvider")})(i||(e.DocumentColorRequest=i={}));var a;(function(o){o.method="textDocument/colorPresentation",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.colorProvider","colorProvider")})(a||(e.ColorPresentationRequest=a={}))}}),epi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRefreshRequest=e.FoldingRangeRequest=void 0;var r=wf(),i;(function(o){o.method="textDocument/foldingRange",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.foldingRange","foldingRangeProvider")})(i||(e.FoldingRangeRequest=i={}));var a;(function(o){o.method="workspace/foldingRange/refresh",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType0(o.method),o.capabilities=r.CM.create("workspace.foldingRange.refreshSupport",void 0)})(a||(e.FoldingRangeRefreshRequest=a={}))}}),tpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/declaration",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.declaration","declarationProvider")})(i||(e.DeclarationRequest=i={}))}}),rpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/selectionRange",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.selectionRange","selectionRangeProvider")})(i||(e.SelectionRangeRequest=i={}))}}),npi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;var r=Gse(),i=wf(),a;(function(h){h.type=new r.ProgressType;function d(p){return p===h.type}te(d,"is"),h.is=d})(a||(e.WorkDoneProgress=a={}));var o;(function(h){h.method="window/workDoneProgress/create",h.messageDirection=i.MessageDirection.serverToClient,h.type=new i.ProtocolRequestType(h.method),h.capabilities=i.CM.create("window.workDoneProgress",void 0)})(o||(e.WorkDoneProgressCreateRequest=o={}));var l;(function(h){h.method="window/workDoneProgress/cancel",h.messageDirection=i.MessageDirection.clientToServer,h.type=new i.ProtocolNotificationType(h.method)})(l||(e.WorkDoneProgressCancelNotification=l={}))}}),ipi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;var r=wf(),i;(function(l){l.method="textDocument/prepareCallHierarchy",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(i||(e.CallHierarchyPrepareRequest=i={}));var a;(function(l){l.method="callHierarchy/incomingCalls",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(a||(e.CallHierarchyIncomingCallsRequest=a={}));var o;(function(l){l.method="callHierarchy/outgoingCalls",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.callHierarchy","callHierarchyProvider")})(o||(e.CallHierarchyOutgoingCallsRequest=o={}))}}),api=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;var r=wf(),i;(function(p){p.Relative="relative"})(i||(e.TokenFormat=i={}));var a;(function(p){p.method="textDocument/semanticTokens",p.type=new r.RegistrationType(p.method)})(a||(e.SemanticTokensRegistrationType=a={}));var o;(function(p){p.method="textDocument/semanticTokens/full",p.messageDirection=r.MessageDirection.clientToServer,p.type=new r.ProtocolRequestType(p.method),p.registrationMethod=a.method,p.capabilities=r.CM.create("textDocument.semanticTokens","semanticTokensProvider")})(o||(e.SemanticTokensRequest=o={}));var l;(function(p){p.method="textDocument/semanticTokens/full/delta",p.messageDirection=r.MessageDirection.clientToServer,p.type=new r.ProtocolRequestType(p.method),p.registrationMethod=a.method,p.capabilities=r.CM.create("textDocument.semanticTokens.requests.full.delta","semanticTokensProvider.full.delta")})(l||(e.SemanticTokensDeltaRequest=l={}));var h;(function(p){p.method="textDocument/semanticTokens/range",p.messageDirection=r.MessageDirection.clientToServer,p.type=new r.ProtocolRequestType(p.method),p.registrationMethod=a.method,p.capabilities=r.CM.create("textDocument.semanticTokens.requests.range","semanticTokensProvider.range")})(h||(e.SemanticTokensRangeRequest=h={}));var d;(function(p){p.method="workspace/semanticTokens/refresh",p.messageDirection=r.MessageDirection.serverToClient,p.type=new r.ProtocolRequestType0(p.method),p.capabilities=r.CM.create("workspace.semanticTokens.refreshSupport",void 0)})(d||(e.SemanticTokensRefreshRequest=d={}))}}),spi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;var r=wf(),i;(function(a){a.method="window/showDocument",a.messageDirection=r.MessageDirection.serverToClient,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("window.showDocument.support",void 0)})(i||(e.ShowDocumentRequest=i={}))}}),opi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;var r=wf(),i;(function(a){a.method="textDocument/linkedEditingRange",a.messageDirection=r.MessageDirection.clientToServer,a.type=new r.ProtocolRequestType(a.method),a.capabilities=r.CM.create("textDocument.linkedEditingRange","linkedEditingRangeProvider")})(i||(e.LinkedEditingRangeRequest=i={}))}}),lpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;var r=wf(),i;(function(m){m.file="file",m.folder="folder"})(i||(e.FileOperationPatternKind=i={}));var a;(function(m){m.method="workspace/willCreateFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolRequestType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.willCreate","workspace.fileOperations.willCreate")})(a||(e.WillCreateFilesRequest=a={}));var o;(function(m){m.method="workspace/didCreateFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolNotificationType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.didCreate","workspace.fileOperations.didCreate")})(o||(e.DidCreateFilesNotification=o={}));var l;(function(m){m.method="workspace/willRenameFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolRequestType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.willRename","workspace.fileOperations.willRename")})(l||(e.WillRenameFilesRequest=l={}));var h;(function(m){m.method="workspace/didRenameFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolNotificationType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.didRename","workspace.fileOperations.didRename")})(h||(e.DidRenameFilesNotification=h={}));var d;(function(m){m.method="workspace/didDeleteFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolNotificationType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.didDelete","workspace.fileOperations.didDelete")})(d||(e.DidDeleteFilesNotification=d={}));var p;(function(m){m.method="workspace/willDeleteFiles",m.messageDirection=r.MessageDirection.clientToServer,m.type=new r.ProtocolRequestType(m.method),m.capabilities=r.CM.create("workspace.fileOperations.willDelete","workspace.fileOperations.willDelete")})(p||(e.WillDeleteFilesRequest=p={}))}}),cpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;var r=wf(),i;(function(l){l.document="document",l.project="project",l.group="group",l.scheme="scheme",l.global="global"})(i||(e.UniquenessLevel=i={}));var a;(function(l){l.$import="import",l.$export="export",l.local="local"})(a||(e.MonikerKind=a={}));var o;(function(l){l.method="textDocument/moniker",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.moniker","monikerProvider")})(o||(e.MonikerRequest=o={}))}}),upi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;var r=wf(),i;(function(l){l.method="textDocument/prepareTypeHierarchy",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.typeHierarchy","typeHierarchyProvider")})(i||(e.TypeHierarchyPrepareRequest=i={}));var a;(function(l){l.method="typeHierarchy/supertypes",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method)})(a||(e.TypeHierarchySupertypesRequest=a={}));var o;(function(l){l.method="typeHierarchy/subtypes",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method)})(o||(e.TypeHierarchySubtypesRequest=o={}))}}),hpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;var r=wf(),i;(function(o){o.method="textDocument/inlineValue",o.messageDirection=r.MessageDirection.clientToServer,o.type=new r.ProtocolRequestType(o.method),o.capabilities=r.CM.create("textDocument.inlineValue","inlineValueProvider")})(i||(e.InlineValueRequest=i={}));var a;(function(o){o.method="workspace/inlineValue/refresh",o.messageDirection=r.MessageDirection.serverToClient,o.type=new r.ProtocolRequestType0(o.method),o.capabilities=r.CM.create("workspace.inlineValue.refreshSupport",void 0)})(a||(e.InlineValueRefreshRequest=a={}))}}),dpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;var r=wf(),i;(function(l){l.method="textDocument/inlayHint",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.inlayHint","inlayHintProvider")})(i||(e.InlayHintRequest=i={}));var a;(function(l){l.method="inlayHint/resolve",l.messageDirection=r.MessageDirection.clientToServer,l.type=new r.ProtocolRequestType(l.method),l.capabilities=r.CM.create("textDocument.inlayHint.resolveSupport","inlayHintProvider.resolveProvider")})(a||(e.InlayHintResolveRequest=a={}));var o;(function(l){l.method="workspace/inlayHint/refresh",l.messageDirection=r.MessageDirection.serverToClient,l.type=new r.ProtocolRequestType0(l.method),l.capabilities=r.CM.create("workspace.inlayHint.refreshSupport",void 0)})(o||(e.InlayHintRefreshRequest=o={}))}}),fpi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js"(e){var r=e&&e.__createBinding||(Object.create?function(w,T,x,k){if(k===void 0)k=x;var A=Object.getOwnPropertyDescriptor(T,x);if(!A||("get"in A?!T.__esModule:A.writable||A.configurable))A={enumerable:!0,get:te(function(){return T[x]},"get")};Object.defineProperty(w,k,A)}:function(w,T,x,k){if(k===void 0)k=x;w[k]=T[x]}),i=e&&e.__setModuleDefault||(Object.create?function(w,T){Object.defineProperty(w,"default",{enumerable:!0,value:T})}:function(w,T){w.default=T}),a=e&&e.__importStar||function(){var w=te(function(T){return w=Object.getOwnPropertyNames||function(x){var k=[];for(var A in x)if(Object.prototype.hasOwnProperty.call(x,A))k[k.length]=A;return k},w(T)},"ownKeys");return function(T){if(T&&T.__esModule)return T;var x={};if(T!=null){for(var k=w(T),A=0;A0}te(Fn,"hasId"),tt.hasId=Fn})(he||(e.StaticRegistrationOptions=he={}));var ye;(function(tt){function Fn(Hn){let _t=Hn;return _t&&(_t.documentSelector===null||j.is(_t.documentSelector))}te(Fn,"is"),tt.is=Fn})(ye||(e.TextDocumentRegistrationOptions=ye={}));var Se;(function(tt){function Fn(_t){let Sr=_t;return h.objectLiteral(Sr)&&(Sr.workDoneProgress===void 0||h.boolean(Sr.workDoneProgress))}te(Fn,"is"),tt.is=Fn;function Hn(_t){let Sr=_t;return Sr&&h.boolean(Sr.workDoneProgress)}te(Hn,"hasWorkDoneProgress"),tt.hasWorkDoneProgress=Hn})(Se||(e.WorkDoneProgressOptions=Se={}));var Ie;(function(tt){tt.method="initialize",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method)})(Ie||(e.InitializeRequest=Ie={}));var Ee;(function(tt){tt.unknownProtocolVersion=1})(Ee||(e.InitializeErrorCodes=Ee={}));var ze;(function(tt){tt.method="initialized",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method)})(ze||(e.InitializedNotification=ze={}));var Me;(function(tt){tt.method="shutdown",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType0(tt.method)})(Me||(e.ShutdownRequest=Me={}));var Xe;(function(tt){tt.method="exit",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType0(tt.method)})(Xe||(e.ExitNotification=Xe={}));var Ye;(function(tt){tt.method="workspace/didChangeConfiguration",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("workspace.didChangeConfiguration",void 0)})(Ye||(e.DidChangeConfigurationNotification=Ye={}));var Qe;(function(tt){tt.Error=1,tt.Warning=2,tt.Info=3,tt.Log=4,tt.Debug=5})(Qe||(e.MessageType=Qe={}));var xt;(function(tt){tt.method="window/showMessage",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("window.showMessage",void 0)})(xt||(e.ShowMessageNotification=xt={}));var dt;(function(tt){tt.method="window/showMessageRequest",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("window.showMessage",void 0)})(dt||(e.ShowMessageRequest=dt={}));var zt;(function(tt){tt.method="window/logMessage",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method)})(zt||(e.LogMessageNotification=zt={}));var Kt;(function(tt){tt.method="telemetry/event",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method)})(Kt||(e.TelemetryEventNotification=Kt={}));var rr;(function(tt){tt.None=0,tt.Full=1,tt.Incremental=2})(rr||(e.TextDocumentSyncKind=rr={}));var je;(function(tt){tt.method="textDocument/didOpen",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization","textDocumentSync.openClose")})(je||(e.DidOpenTextDocumentNotification=je={}));var Nt;(function(tt){function Fn(_t){let Sr=_t;return Sr!==void 0&&Sr!==null&&typeof Sr.text==="string"&&Sr.range!==void 0&&(Sr.rangeLength===void 0||typeof Sr.rangeLength==="number")}te(Fn,"isIncremental"),tt.isIncremental=Fn;function Hn(_t){let Sr=_t;return Sr!==void 0&&Sr!==null&&typeof Sr.text==="string"&&Sr.range===void 0&&Sr.rangeLength===void 0}te(Hn,"isFull"),tt.isFull=Hn})(Nt||(e.TextDocumentContentChangeEvent=Nt={}));var ct;(function(tt){tt.method="textDocument/didChange",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization","textDocumentSync")})(ct||(e.DidChangeTextDocumentNotification=ct={}));var bt;(function(tt){tt.method="textDocument/didClose",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization","textDocumentSync.openClose")})(bt||(e.DidCloseTextDocumentNotification=bt={}));var Pe;(function(tt){tt.method="textDocument/didSave",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization.didSave","textDocumentSync.save")})(Pe||(e.DidSaveTextDocumentNotification=Pe={}));var Ue;(function(tt){tt.Manual=1,tt.AfterDelay=2,tt.FocusOut=3})(Ue||(e.TextDocumentSaveReason=Ue={}));var qe;(function(tt){tt.method="textDocument/willSave",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization.willSave","textDocumentSync.willSave")})(qe||(e.WillSaveTextDocumentNotification=qe={}));var Ke;(function(tt){tt.method="textDocument/willSaveWaitUntil",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.synchronization.willSaveWaitUntil","textDocumentSync.willSaveWaitUntil")})(Ke||(e.WillSaveTextDocumentWaitUntilRequest=Ke={}));var Je;(function(tt){tt.method="workspace/didChangeWatchedFiles",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("workspace.didChangeWatchedFiles",void 0)})(Je||(e.DidChangeWatchedFilesNotification=Je={}));var De;(function(tt){tt.Created=1,tt.Changed=2,tt.Deleted=3})(De||(e.FileChangeType=De={}));var le;(function(tt){function Fn(Hn){let _t=Hn;return h.objectLiteral(_t)&&(l.URI.is(_t.baseUri)||l.WorkspaceFolder.is(_t.baseUri))&&h.string(_t.pattern)}te(Fn,"is"),tt.is=Fn})(le||(e.RelativePattern=le={}));var pe;(function(tt){function Fn(Hn){let _t=Hn;return h.string(_t)||le.is(_t)}te(Fn,"is"),tt.is=Fn})(pe||(e.GlobPattern=pe={}));var fe;(function(tt){tt.Create=1,tt.Change=2,tt.Delete=4})(fe||(e.WatchKind=fe={}));var be;(function(tt){tt.method="textDocument/publishDiagnostics",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolNotificationType(tt.method),tt.capabilities=o.CM.create("textDocument.publishDiagnostics",void 0)})(be||(e.PublishDiagnosticsNotification=be={}));var Ge;(function(tt){tt.Invoked=1,tt.TriggerCharacter=2,tt.TriggerForIncompleteCompletions=3})(Ge||(e.CompletionTriggerKind=Ge={}));var ke;(function(tt){tt.method="textDocument/completion",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.completion","completionProvider")})(ke||(e.CompletionRequest=ke={}));var we;(function(tt){tt.method="completionItem/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.completion.completionItem.resolveSupport","completionProvider.resolveProvider")})(we||(e.CompletionResolveRequest=we={}));var Ae;(function(tt){tt.method="textDocument/hover",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.hover","hoverProvider")})(Ae||(e.HoverRequest=Ae={}));var at;(function(tt){tt.Invoked=1,tt.TriggerCharacter=2,tt.ContentChange=3})(at||(e.SignatureHelpTriggerKind=at={}));var ut;(function(tt){tt.method="textDocument/signatureHelp",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.signatureHelp","signatureHelpProvider")})(ut||(e.SignatureHelpRequest=ut={}));var gt;(function(tt){tt.method="textDocument/definition",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.definition","definitionProvider")})(gt||(e.DefinitionRequest=gt={}));var vt;(function(tt){tt.method="textDocument/references",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.references","referencesProvider")})(vt||(e.ReferencesRequest=vt={}));var ir;(function(tt){tt.method="textDocument/documentHighlight",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentHighlight","documentHighlightProvider")})(ir||(e.DocumentHighlightRequest=ir={}));var qt;(function(tt){tt.method="textDocument/documentSymbol",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentSymbol","documentSymbolProvider")})(qt||(e.DocumentSymbolRequest=qt={}));var cr;(function(tt){tt.method="textDocument/codeAction",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeAction","codeActionProvider")})(cr||(e.CodeActionRequest=cr={}));var tr;(function(tt){tt.method="codeAction/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeAction.resolveSupport","codeActionProvider.resolveProvider")})(tr||(e.CodeActionResolveRequest=tr={}));var Zt;(function(tt){tt.method="workspace/symbol",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("workspace.symbol","workspaceSymbolProvider")})(Zt||(e.WorkspaceSymbolRequest=Zt={}));var lr;(function(tt){tt.method="workspaceSymbol/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("workspace.symbol.resolveSupport","workspaceSymbolProvider.resolveProvider")})(lr||(e.WorkspaceSymbolResolveRequest=lr={}));var Xt;(function(tt){tt.method="textDocument/codeLens",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeLens","codeLensProvider")})(Xt||(e.CodeLensRequest=Xt={}));var In;(function(tt){tt.method="codeLens/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.codeLens.resolveSupport","codeLensProvider.resolveProvider")})(In||(e.CodeLensResolveRequest=In={}));var Et;(function(tt){tt.method="workspace/codeLens/refresh",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolRequestType0(tt.method),tt.capabilities=o.CM.create("workspace.codeLens",void 0)})(Et||(e.CodeLensRefreshRequest=Et={}));var Xn;(function(tt){tt.method="textDocument/documentLink",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentLink","documentLinkProvider")})(Xn||(e.DocumentLinkRequest=Xn={}));var Yt;(function(tt){tt.method="documentLink/resolve",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.documentLink","documentLinkProvider.resolveProvider")})(Yt||(e.DocumentLinkResolveRequest=Yt={}));var Bn;(function(tt){tt.method="textDocument/formatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.formatting","documentFormattingProvider")})(Bn||(e.DocumentFormattingRequest=Bn={}));var si;(function(tt){tt.method="textDocument/rangeFormatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rangeFormatting","documentRangeFormattingProvider")})(si||(e.DocumentRangeFormattingRequest=si={}));var dn;(function(tt){tt.method="textDocument/rangesFormatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rangeFormatting.rangesSupport","documentRangeFormattingProvider.rangesSupport")})(dn||(e.DocumentRangesFormattingRequest=dn={}));var Ii;(function(tt){tt.method="textDocument/onTypeFormatting",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.onTypeFormatting","documentOnTypeFormattingProvider")})(Ii||(e.DocumentOnTypeFormattingRequest=Ii={}));var Vn;(function(tt){tt.Identifier=1})(Vn||(e.PrepareSupportDefaultBehavior=Vn={}));var Ei;(function(tt){tt.method="textDocument/rename",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rename","renameProvider")})(Ei||(e.RenameRequest=Ei={}));var vn;(function(tt){tt.method="textDocument/prepareRename",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("textDocument.rename.prepareSupport","renameProvider.prepareProvider")})(vn||(e.PrepareRenameRequest=vn={}));var Li;(function(tt){tt.method="workspace/executeCommand",tt.messageDirection=o.MessageDirection.clientToServer,tt.type=new o.ProtocolRequestType(tt.method),tt.capabilities=o.CM.create("workspace.executeCommand","executeCommandProvider")})(Li||(e.ExecuteCommandRequest=Li={}));var Ia;(function(tt){tt.method="workspace/applyEdit",tt.messageDirection=o.MessageDirection.serverToClient,tt.type=new o.ProtocolRequestType("workspace/applyEdit"),tt.capabilities=o.CM.create("workspace.applyEdit",void 0)})(Ia||(e.ApplyWorkspaceEditRequest=Ia={}))}}),ypi=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/connection.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=i;var r=Gse();function i(a,o,l,h){if(r.ConnectionStrategy.is(h))h={connectionStrategy:h};return(0,r.createMessageConnection)(a,o,l,h)}te(i,"createProtocolConnection")}}),But=Ul({"../../node_modules/.pnpm/vscode-languageserver-protocol@3.18.4/node_modules/vscode-languageserver-protocol/lib/common/api.js"(e){var r=e&&e.__createBinding||(Object.create?function(l,h,d,p){if(p===void 0)p=d;var m=Object.getOwnPropertyDescriptor(h,d);if(!m||("get"in m?!h.__esModule:m.writable||m.configurable))m={enumerable:!0,get:te(function(){return h[d]},"get")};Object.defineProperty(l,p,m)}:function(l,h,d,p){if(p===void 0)p=d;l[p]=h[d]}),i=e&&e.__exportStar||function(l,h){for(var d in l)if(d!=="default"&&!Object.prototype.hasOwnProperty.call(h,d))r(h,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,i(Gse(),e),i((C4e(),Mut(x4e)),e),i(wf(),e),i(bpi(),e);var a=ypi();Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:te(function(){return a.createProtocolConnection},"get")});var o;(function(l){l.lspReservedErrorRangeStart=-32899,l.RequestFailed=-32803,l.ServerCancelled=-32802,l.ContentModified=-32801,l.RequestCancelled=-32800,l.lspReservedErrorRangeEnd=-32800})(o||(e.LSPErrorCodes=o={}))}});te(o1,"isAstNode");te(bT,"isReference");te(SI,"isMultiReference");te(QBr,"isAstNodeDescription");te(pY,"isLinkingError");ZBr=class{static{te(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}getAllTypes(){return Object.keys(this.types)}getReferenceType(e){let r=this.types[e.container.$type];if(!r)throw Error(`Type ${e.container.$type||"undefined"} not found.`);let i=r.properties[e.property]?.referenceType;if(!i)throw Error(`Property ${e.property||"undefined"} of type ${e.container.$type} is not a reference.`);return i}getTypeMetaData(e){let r=this.types[e];if(!r)return{name:e,properties:{},superTypes:[]};return r}isInstance(e,r){return o1(e)&&this.isSubtype(e.$type,r)}isSubtype(e,r){if(e===r)return!0;let i=this.subtypes[e];if(!i)i=this.subtypes[e]={};let a=i[r];if(a!==void 0)return a;else{let o=this.types[e],l=o?o.superTypes.some((h)=>this.isSubtype(h,r)):!1;return i[r]=l,l}}getAllSubTypes(e){let r=this.allSubtypes[e];if(r)return r;else{let i=this.getAllTypes(),a=[];for(let o of i)if(this.isSubtype(o,e))a.push(o);return this.allSubtypes[e]=a,a}}isComplete(e){let r=this.getTypeMetaData(e.$type);for(let i of Object.keys(r.properties)){let a=r.properties[i];if(a.optional)continue;let o=e[a.name];if(o===void 0||o===null)return!1}return!0}};te(wY,"isCompositeCstNode");te(Fut,"isLeafCstNode");te($ut,"isRootCstNode");z7=class e{static{te(this,"StreamImpl")}constructor(r,i){this.startFn=r,this.nextFn=i}iterator(){let r={state:this.startFn(),next:te(()=>this.nextFn(r.state),"next"),[Symbol.iterator]:()=>r};return r}[Symbol.iterator](){return this.iterator()}isEmpty(){let r=this.iterator();return Boolean(r.next().done)}count(){let r=this.iterator(),i=0,a=r.next();while(!a.done)i++,a=r.next();return i}toArray(){let r=[],i=this.iterator(),a;do if(a=i.next(),a.value!==void 0)r.push(a.value);while(!a.done);return r}toSet(){return new Set(this)}toMap(r,i){let a=this.map((o)=>[r?r(o):o,i?i(o):o]);return new Map(a)}toString(){return this.join()}concat(r){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:r[Symbol.iterator]()}),(i)=>{let a;if(!i.firstDone){do if(a=this.nextFn(i.first),!a.done)return a;while(!a.done);i.firstDone=!0}do if(a=i.iterator.next(),!a.done)return a;while(!a.done);return tw})}join(r=","){let i=this.iterator(),a="",o,l=!1;do{if(o=i.next(),!o.done){if(l)a+=r;a+=JBr(o.value)}l=!0}while(!o.done);return a}indexOf(r,i=0){let a=this.iterator(),o=0,l=a.next();while(!l.done){if(o>=i&&l.value===r)return o;l=a.next(),o++}return-1}every(r){let i=this.iterator(),a=i.next();while(!a.done){if(!r(a.value))return!1;a=i.next()}return!0}some(r){let i=this.iterator(),a=i.next();while(!a.done){if(r(a.value))return!0;a=i.next()}return!1}forEach(r){let i=this.iterator(),a=0,o=i.next();while(!o.done)r(o.value,a),o=i.next(),a++}map(r){return new e(this.startFn,(i)=>{let{done:a,value:o}=this.nextFn(i);if(a)return tw;else return{done:!1,value:r(o)}})}filter(r){return new e(this.startFn,(i)=>{let a;do if(a=this.nextFn(i),!a.done&&r(a.value))return a;while(!a.done);return tw})}nonNullable(){return this.filter((r)=>r!==void 0&&r!==null)}reduce(r,i){let a=this.iterator(),o=i,l=a.next();while(!l.done){if(o===void 0)o=l.value;else o=r(o,l.value);l=a.next()}return o}reduceRight(r,i){return this.recursiveReduce(this.iterator(),r,i)}recursiveReduce(r,i,a){let o=r.next();if(o.done)return a;let l=this.recursiveReduce(r,i,a);if(l===void 0)return o.value;return i(l,o.value)}find(r){let i=this.iterator(),a=i.next();while(!a.done){if(r(a.value))return a.value;a=i.next()}return}findIndex(r){let i=this.iterator(),a=0,o=i.next();while(!o.done){if(r(o.value))return a;o=i.next(),a++}return-1}includes(r){let i=this.iterator(),a=i.next();while(!a.done){if(a.value===r)return!0;a=i.next()}return!1}flatMap(r){return new e(()=>({this:this.startFn()}),(i)=>{do{if(i.iterator){let l=i.iterator.next();if(l.done)i.iterator=void 0;else return l}let{done:a,value:o}=this.nextFn(i.this);if(!a){let l=r(o);if(Sse(l))i.iterator=l[Symbol.iterator]();else return{done:!1,value:l}}}while(i.iterator);return tw})}flat(r){if(r===void 0)r=1;if(r<=0)return this;let i=r>1?this.flat(r-1):this;return new e(()=>({this:i.startFn()}),(a)=>{do{if(a.iterator){let h=a.iterator.next();if(h.done)a.iterator=void 0;else return h}let{done:o,value:l}=i.nextFn(a.this);if(!o)if(Sse(l))a.iterator=l[Symbol.iterator]();else return{done:!1,value:l}}while(a.iterator);return tw})}head(){let i=this.iterator().next();if(i.done)return;return i.value}tail(r=1){return new e(()=>{let i=this.startFn();for(let a=0;a({size:0,state:this.startFn()}),(i)=>{if(i.size++,i.size>r)return tw;return this.nextFn(i.state)})}distinct(r){return new e(()=>({set:new Set,internalState:this.startFn()}),(i)=>{let a;do if(a=this.nextFn(i.internalState),!a.done){let o=r?r(a.value):a.value;if(!i.set.has(o))return i.set.add(o),a}while(!a.done);return tw})}exclude(r,i){let a=new Set;for(let o of r){let l=i?i(o):o;a.add(l)}return this.filter((o)=>{let l=i?i(o):o;return!a.has(l)})}};te(JBr,"toString");te(Sse,"isIterable");eFr=new z7(()=>{return},()=>tw),tw=Object.freeze({done:!0,value:void 0});te(Ef,"stream");CCe=class extends z7{static{te(this,"TreeStreamImpl")}constructor(e,r,i){super(()=>({iterators:i?.includeRoot?[[e][Symbol.iterator]()]:[r(e)[Symbol.iterator]()],pruned:!1}),(a)=>{if(a.pruned)a.iterators.pop(),a.pruned=!1;while(a.iterators.length>0){let l=a.iterators[a.iterators.length-1].next();if(l.done)a.iterators.pop();else return a.iterators.push(r(l.value)[Symbol.iterator]()),l}return tw})}iterator(){let e={state:this.startFn(),next:te(()=>this.nextFn(e.state),"next"),prune:te(()=>{e.state.pruned=!0},"prune"),[Symbol.iterator]:()=>e};return e}};(function(e){function r(l){return l.reduce((h,d)=>h+d,0)}te(r,"sum"),e.sum=r;function i(l){return l.reduce((h,d)=>h*d,0)}te(i,"product"),e.product=i;function a(l){return l.reduce((h,d)=>Math.min(h,d))}te(a,"min"),e.min=a;function o(l){return l.reduce((h,d)=>Math.max(h,d))}te(o,"max"),e.max=o})(Cct||(Cct={}));te(kCe,"linkContentToContainer");te(zse,"getContainerOfType");te(W3,"getDocument");te(use,"findRootNode");te(kct,"getReferenceNodes");te(k4e,"streamContents");te(kY,"streamAllContents");te(j3,"streamAst");te(ACe,"isAstNodeInRange");te(Tse,"streamReferences");te(tFr,"assignMandatoryProperties");te(Uut,"copyDefaultValue");ew={$type:"AbstractElement",cardinality:"cardinality"};te(rFr,"isAbstractElement");sCe={$type:"AbstractParserRule"};te(AY,"isAbstractParserRule");Oxe={$type:"AbstractRule"},BC={$type:"AbstractType"},GB={$type:"Action",cardinality:"cardinality",feature:"feature",inferredType:"inferredType",operator:"operator",type:"type"};te(Vse,"isAction");oCe={$type:"Alternatives",cardinality:"cardinality",elements:"elements"};te(Gut,"isAlternatives");CPr={$type:"ArrayLiteral",elements:"elements"},kPr={$type:"ArrayType",elementType:"elementType"},zB={$type:"Assignment",cardinality:"cardinality",feature:"feature",operator:"operator",predicate:"predicate",terminal:"terminal"};te(H7,"isAssignment");Act={$type:"BooleanLiteral",true:"true"};te(nFr,"isBooleanLiteral");VB={$type:"CharacterRange",cardinality:"cardinality",left:"left",lookahead:"lookahead",parenthesized:"parenthesized",right:"right"};te(iFr,"isCharacterRange");Qq={$type:"Condition"},lCe={$type:"Conjunction",left:"left",right:"right"};te(aFr,"isConjunction");HB={$type:"CrossReference",cardinality:"cardinality",deprecatedSyntax:"deprecatedSyntax",isMulti:"isMulti",terminal:"terminal",type:"type"};te(Hse,"isCrossReference");cCe={$type:"Disjunction",left:"left",right:"right"};te(sFr,"isDisjunction");Rct={$type:"EndOfFile",cardinality:"cardinality"};te(oFr,"isEndOfFile");BB={$type:"Grammar",imports:"imports",interfaces:"interfaces",isDeclared:"isDeclared",name:"name",rules:"rules",types:"types"},APr={$type:"GrammarImport",path:"path"},iY={$type:"Group",cardinality:"cardinality",elements:"elements",guardCondition:"guardCondition",predicate:"predicate"};te(A4e,"isGroup");Ict={$type:"InferredType",name:"name"};te(zut,"isInferredType");dI={$type:"InfixRule",call:"call",dataType:"dataType",inferredType:"inferredType",name:"name",operators:"operators",parameters:"parameters",returnType:"returnType"};te(xse,"isInfixRule");nlt={$type:"InfixRuleOperatorList",associativity:"associativity",operators:"operators"},RPr={$type:"InfixRuleOperators",precedences:"precedences"},tse={$type:"Interface",attributes:"attributes",name:"name",superTypes:"superTypes"};te(lFr,"isInterface");rse={$type:"Keyword",cardinality:"cardinality",predicate:"predicate",value:"value"};te(q7,"isKeyword");Nxe={$type:"NamedArgument",calledByName:"calledByName",parameter:"parameter",value:"value"},aY={$type:"NegatedToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};te(cFr,"isNegatedToken");Oct={$type:"Negation",value:"value"};te(uFr,"isNegation");IPr={$type:"NumberLiteral",value:"value"},Lxe={$type:"Parameter",name:"name"},Nct={$type:"ParameterReference",parameter:"parameter"};te(hFr,"isParameterReference");Y3={$type:"ParserRule",dataType:"dataType",definition:"definition",entry:"entry",fragment:"fragment",inferredType:"inferredType",name:"name",parameters:"parameters",returnType:"returnType"};te(Q3,"isParserRule");ilt={$type:"ReferenceType",isMulti:"isMulti",referenceType:"referenceType"},sY={$type:"RegexToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",regex:"regex"};te(dFr,"isRegexToken");Lct={$type:"ReturnType",name:"name"};te(fFr,"isReturnType");oY={$type:"RuleCall",arguments:"arguments",cardinality:"cardinality",predicate:"predicate",rule:"rule"};te(Y7,"isRuleCall");nse={$type:"SimpleType",primitiveType:"primitiveType",stringType:"stringType",typeRef:"typeRef"};te(pFr,"isSimpleType");OPr={$type:"StringLiteral",value:"value"},lY={$type:"TerminalAlternatives",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};te(gFr,"isTerminalAlternatives");gT={$type:"TerminalElement",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"},cY={$type:"TerminalGroup",cardinality:"cardinality",elements:"elements",lookahead:"lookahead",parenthesized:"parenthesized"};te(mFr,"isTerminalGroup");A7={$type:"TerminalRule",definition:"definition",fragment:"fragment",hidden:"hidden",name:"name",type:"type"};te(Z3,"isTerminalRule");uY={$type:"TerminalRuleCall",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",rule:"rule"};te(Vut,"isTerminalRuleCall");uCe={$type:"Type",name:"name",type:"type"};te(bFr,"isType");Fae={$type:"TypeAttribute",defaultValue:"defaultValue",isOptional:"isOptional",name:"name",type:"type"},$ae={$type:"TypeDefinition"},NPr={$type:"UnionType",types:"types"},hCe={$type:"UnorderedGroup",cardinality:"cardinality",elements:"elements"};te(Hut,"isUnorderedGroup");hY={$type:"UntilToken",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized",terminal:"terminal"};te(yFr,"isUntilToken");Uae={$type:"ValueLiteral"},ise={$type:"Wildcard",cardinality:"cardinality",lookahead:"lookahead",parenthesized:"parenthesized"};te(vFr,"isWildcard");_Fr=class extends ZBr{static{te(this,"LangiumGrammarAstReflection")}constructor(){super(...arguments);this.types={AbstractElement:{name:ew.$type,properties:{cardinality:{name:ew.cardinality,optional:!0}},superTypes:[]},AbstractParserRule:{name:sCe.$type,properties:{},superTypes:[Oxe.$type,BC.$type]},AbstractRule:{name:Oxe.$type,properties:{},superTypes:[]},AbstractType:{name:BC.$type,properties:{},superTypes:[]},Action:{name:GB.$type,properties:{cardinality:{name:GB.cardinality,optional:!0},feature:{name:GB.feature,optional:!0},inferredType:{name:GB.inferredType,optional:!0},operator:{name:GB.operator,optional:!0},type:{name:GB.type,referenceType:BC.$type,optional:!0}},superTypes:[ew.$type]},Alternatives:{name:oCe.$type,properties:{cardinality:{name:oCe.cardinality,optional:!0},elements:{name:oCe.elements,defaultValue:[]}},superTypes:[ew.$type]},ArrayLiteral:{name:CPr.$type,properties:{elements:{name:CPr.elements,defaultValue:[]}},superTypes:[Uae.$type]},ArrayType:{name:kPr.$type,properties:{elementType:{name:kPr.elementType}},superTypes:[$ae.$type]},Assignment:{name:zB.$type,properties:{cardinality:{name:zB.cardinality,optional:!0},feature:{name:zB.feature},operator:{name:zB.operator},predicate:{name:zB.predicate,optional:!0},terminal:{name:zB.terminal}},superTypes:[ew.$type]},BooleanLiteral:{name:Act.$type,properties:{true:{name:Act.true,defaultValue:!1}},superTypes:[Qq.$type,Uae.$type]},CharacterRange:{name:VB.$type,properties:{cardinality:{name:VB.cardinality,optional:!0},left:{name:VB.left},lookahead:{name:VB.lookahead,optional:!0},parenthesized:{name:VB.parenthesized,defaultValue:!1,optional:!0},right:{name:VB.right,optional:!0}},superTypes:[gT.$type]},Condition:{name:Qq.$type,properties:{},superTypes:[]},Conjunction:{name:lCe.$type,properties:{left:{name:lCe.left},right:{name:lCe.right}},superTypes:[Qq.$type]},CrossReference:{name:HB.$type,properties:{cardinality:{name:HB.cardinality,optional:!0},deprecatedSyntax:{name:HB.deprecatedSyntax,defaultValue:!1},isMulti:{name:HB.isMulti,defaultValue:!1},terminal:{name:HB.terminal,optional:!0},type:{name:HB.type,referenceType:BC.$type}},superTypes:[ew.$type]},Disjunction:{name:cCe.$type,properties:{left:{name:cCe.left},right:{name:cCe.right}},superTypes:[Qq.$type]},EndOfFile:{name:Rct.$type,properties:{cardinality:{name:Rct.cardinality,optional:!0}},superTypes:[ew.$type]},Grammar:{name:BB.$type,properties:{imports:{name:BB.imports,defaultValue:[]},interfaces:{name:BB.interfaces,defaultValue:[]},isDeclared:{name:BB.isDeclared,defaultValue:!1},name:{name:BB.name,optional:!0},rules:{name:BB.rules,defaultValue:[]},types:{name:BB.types,defaultValue:[]}},superTypes:[]},GrammarImport:{name:APr.$type,properties:{path:{name:APr.path}},superTypes:[]},Group:{name:iY.$type,properties:{cardinality:{name:iY.cardinality,optional:!0},elements:{name:iY.elements,defaultValue:[]},guardCondition:{name:iY.guardCondition,optional:!0},predicate:{name:iY.predicate,optional:!0}},superTypes:[ew.$type]},InferredType:{name:Ict.$type,properties:{name:{name:Ict.name}},superTypes:[BC.$type]},InfixRule:{name:dI.$type,properties:{call:{name:dI.call},dataType:{name:dI.dataType,optional:!0},inferredType:{name:dI.inferredType,optional:!0},name:{name:dI.name},operators:{name:dI.operators},parameters:{name:dI.parameters,defaultValue:[]},returnType:{name:dI.returnType,referenceType:BC.$type,optional:!0}},superTypes:[sCe.$type]},InfixRuleOperatorList:{name:nlt.$type,properties:{associativity:{name:nlt.associativity,optional:!0},operators:{name:nlt.operators,defaultValue:[]}},superTypes:[]},InfixRuleOperators:{name:RPr.$type,properties:{precedences:{name:RPr.precedences,defaultValue:[]}},superTypes:[]},Interface:{name:tse.$type,properties:{attributes:{name:tse.attributes,defaultValue:[]},name:{name:tse.name},superTypes:{name:tse.superTypes,defaultValue:[],referenceType:BC.$type}},superTypes:[BC.$type]},Keyword:{name:rse.$type,properties:{cardinality:{name:rse.cardinality,optional:!0},predicate:{name:rse.predicate,optional:!0},value:{name:rse.value}},superTypes:[ew.$type]},NamedArgument:{name:Nxe.$type,properties:{calledByName:{name:Nxe.calledByName,defaultValue:!1},parameter:{name:Nxe.parameter,referenceType:Lxe.$type,optional:!0},value:{name:Nxe.value}},superTypes:[]},NegatedToken:{name:aY.$type,properties:{cardinality:{name:aY.cardinality,optional:!0},lookahead:{name:aY.lookahead,optional:!0},parenthesized:{name:aY.parenthesized,defaultValue:!1,optional:!0},terminal:{name:aY.terminal}},superTypes:[gT.$type]},Negation:{name:Oct.$type,properties:{value:{name:Oct.value}},superTypes:[Qq.$type]},NumberLiteral:{name:IPr.$type,properties:{value:{name:IPr.value}},superTypes:[Uae.$type]},Parameter:{name:Lxe.$type,properties:{name:{name:Lxe.name}},superTypes:[]},ParameterReference:{name:Nct.$type,properties:{parameter:{name:Nct.parameter,referenceType:Lxe.$type}},superTypes:[Qq.$type]},ParserRule:{name:Y3.$type,properties:{dataType:{name:Y3.dataType,optional:!0},definition:{name:Y3.definition},entry:{name:Y3.entry,defaultValue:!1},fragment:{name:Y3.fragment,defaultValue:!1},inferredType:{name:Y3.inferredType,optional:!0},name:{name:Y3.name},parameters:{name:Y3.parameters,defaultValue:[]},returnType:{name:Y3.returnType,referenceType:BC.$type,optional:!0}},superTypes:[sCe.$type]},ReferenceType:{name:ilt.$type,properties:{isMulti:{name:ilt.isMulti,defaultValue:!1},referenceType:{name:ilt.referenceType}},superTypes:[$ae.$type]},RegexToken:{name:sY.$type,properties:{cardinality:{name:sY.cardinality,optional:!0},lookahead:{name:sY.lookahead,optional:!0},parenthesized:{name:sY.parenthesized,defaultValue:!1,optional:!0},regex:{name:sY.regex}},superTypes:[gT.$type]},ReturnType:{name:Lct.$type,properties:{name:{name:Lct.name}},superTypes:[]},RuleCall:{name:oY.$type,properties:{arguments:{name:oY.arguments,defaultValue:[]},cardinality:{name:oY.cardinality,optional:!0},predicate:{name:oY.predicate,optional:!0},rule:{name:oY.rule,referenceType:Oxe.$type}},superTypes:[ew.$type]},SimpleType:{name:nse.$type,properties:{primitiveType:{name:nse.primitiveType,optional:!0},stringType:{name:nse.stringType,optional:!0},typeRef:{name:nse.typeRef,referenceType:BC.$type,optional:!0}},superTypes:[$ae.$type]},StringLiteral:{name:OPr.$type,properties:{value:{name:OPr.value}},superTypes:[Uae.$type]},TerminalAlternatives:{name:lY.$type,properties:{cardinality:{name:lY.cardinality,optional:!0},elements:{name:lY.elements,defaultValue:[]},lookahead:{name:lY.lookahead,optional:!0},parenthesized:{name:lY.parenthesized,defaultValue:!1,optional:!0}},superTypes:[gT.$type]},TerminalElement:{name:gT.$type,properties:{cardinality:{name:gT.cardinality,optional:!0},lookahead:{name:gT.lookahead,optional:!0},parenthesized:{name:gT.parenthesized,defaultValue:!1,optional:!0}},superTypes:[ew.$type]},TerminalGroup:{name:cY.$type,properties:{cardinality:{name:cY.cardinality,optional:!0},elements:{name:cY.elements,defaultValue:[]},lookahead:{name:cY.lookahead,optional:!0},parenthesized:{name:cY.parenthesized,defaultValue:!1,optional:!0}},superTypes:[gT.$type]},TerminalRule:{name:A7.$type,properties:{definition:{name:A7.definition},fragment:{name:A7.fragment,defaultValue:!1},hidden:{name:A7.hidden,defaultValue:!1},name:{name:A7.name},type:{name:A7.type,optional:!0}},superTypes:[Oxe.$type]},TerminalRuleCall:{name:uY.$type,properties:{cardinality:{name:uY.cardinality,optional:!0},lookahead:{name:uY.lookahead,optional:!0},parenthesized:{name:uY.parenthesized,defaultValue:!1,optional:!0},rule:{name:uY.rule,referenceType:A7.$type}},superTypes:[gT.$type]},Type:{name:uCe.$type,properties:{name:{name:uCe.name},type:{name:uCe.type}},superTypes:[BC.$type]},TypeAttribute:{name:Fae.$type,properties:{defaultValue:{name:Fae.defaultValue,optional:!0},isOptional:{name:Fae.isOptional,defaultValue:!1},name:{name:Fae.name},type:{name:Fae.type}},superTypes:[]},TypeDefinition:{name:$ae.$type,properties:{},superTypes:[]},UnionType:{name:NPr.$type,properties:{types:{name:NPr.types,defaultValue:[]}},superTypes:[$ae.$type]},UnorderedGroup:{name:hCe.$type,properties:{cardinality:{name:hCe.cardinality,optional:!0},elements:{name:hCe.elements,defaultValue:[]}},superTypes:[ew.$type]},UntilToken:{name:hY.$type,properties:{cardinality:{name:hY.cardinality,optional:!0},lookahead:{name:hY.lookahead,optional:!0},parenthesized:{name:hY.parenthesized,defaultValue:!1,optional:!0},terminal:{name:hY.terminal}},superTypes:[gT.$type]},ValueLiteral:{name:Uae.$type,properties:{},superTypes:[]},Wildcard:{name:ise.$type,properties:{cardinality:{name:ise.cardinality,optional:!0},lookahead:{name:ise.lookahead,optional:!0},parenthesized:{name:ise.parenthesized,defaultValue:!1,optional:!0}},superTypes:[gT.$type]}}}},Mu=new _Fr;te(RCe,"streamCst");te(EFr,"isChildNode");te(wFr,"tokenToRange");te(ICe,"isValidTokenRange");te(Cse,"toDocumentSegment");(function(e){e[e.Before=0]="Before",e[e.After=1]="After",e[e.OverlapFront=2]="OverlapFront",e[e.OverlapBack=3]="OverlapBack",e[e.Inside=4]="Inside",e[e.Outside=5]="Outside"})(yI||(yI={}));te(SFr,"compareRange");te(TFr,"inRange");vpi=/^[\w\p{L}]$/u;te(xFr,"findCommentNode");te(Mct,"isCommentNode");te(CFr,"getPreviousNode");kFr=class extends Error{static{te(this,"ErrorWithLocation")}constructor(e,r){let i=typeof r==="string"?r:r();super(e?`${i} at ${e.range.start.line}:${e.range.start.character}`:i)}};te(RY,"assertUnreachable");te(Fo,"cc");te(dCe,"insertToSet");te(dY,"addFlag");te(qB,"ASSERT_EXISTS");te(ase,"ASSERT_NEVER_REACH_HERE");te(Dct,"isCharacter");OCe=[];for(let e=Fo("0");e<=Fo("9");e++)OCe.push(e);NCe=[Fo("_")].concat(OCe);for(let e=Fo("a");e<=Fo("z");e++)NCe.push(e);for(let e=Fo("A");e<=Fo("Z");e++)NCe.push(e);LPr=[Fo(" "),Fo("\f"),Fo(` +`),Fo("\r"),Fo("\t"),Fo("\v"),Fo("\t"),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo(" "),Fo("\u2028"),Fo("\u2029"),Fo(" "),Fo(" "),Fo(" "),Fo("\uFEFF")],_pi=/[0-9a-fA-F]/,Mxe=/[0-9]/,Epi=/[1-9]/,AFr=class{static{te(this,"RegExpParser")}constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let i={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};while(this.isRegExpFlag())switch(this.popChar()){case"g":dY(i,"global");break;case"i":dY(i,"ignoreCase");break;case"m":dY(i,"multiLine");break;case"u":dY(i,"unicode");break;case"y":dY(i,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;e.push(this.alternative());while(this.peekChar()==="|")this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;while(this.isTerm())e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){if(this.isAssertion())return this.assertion();else return this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}qB(r);let i=this.disjunction();return this.consumeChar(")"),{type:r,value:i,loc:this.loc(e)}}return ase()}quantifier(e=!1){let r=void 0,i=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let o;if(this.isDigit())o=this.integerIncludingZero(),r={atLeast:a,atMost:o};else r={atLeast:a,atMost:1/0};this.consumeChar("}");break}if(e===!0&&r===void 0)return;qB(r);break}if(e===!0&&r===void 0)return;if(qB(r)){if(this.peekChar(0)==="?")this.consumeChar("?"),r.greedy=!1;else r.greedy=!0;return r.type="Quantifier",r.loc=this.loc(i),r}}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter())e=this.patternCharacter();if(qB(e)){if(e.loc=this.loc(r),this.isQuantifier())e.quantifier=this.quantifier();return e}return ase()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Fo(` +`),Fo("\r"),Fo("\u2028"),Fo("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=OCe;break;case"D":e=OCe,r=!0;break;case"s":e=LPr;break;case"S":e=LPr,r=!0;break;case"w":e=NCe;break;case"W":e=NCe,r=!0;break}if(qB(e))return{type:"Set",value:e,complement:r};return ase()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Fo("\f");break;case"n":e=Fo(` +`);break;case"r":e=Fo("\r");break;case"t":e=Fo("\t");break;case"v":e=Fo("\v");break}if(qB(e))return{type:"Character",value:e};return ase()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Fo("\x00")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:Fo(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:Fo(e)}}}characterClass(){let e=[],r=!1;if(this.consumeChar("["),this.peekChar(0)==="^")this.consumeChar("^"),r=!0;while(this.isClassAtom()){let i=this.classAtom(),a=i.type==="Character";if(Dct(i)&&this.isRangeDash()){this.consumeChar("-");let o=this.classAtom(),l=o.type==="Character";if(Dct(o)){if(o.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},C4e=class{static{ee(this,"BaseRegExpVisitor")}visitChildren(e){for(let r in e){let i=e[r];if(e.hasOwnProperty(r)){if(i.type!==void 0)this.visit(i);else if(Array.isArray(i))i.forEach((a)=>{this.visit(a)},this)}}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},mpi=/\r?\n/gm,bpi=new SFr,ypi=class extends C4e{static{ee(this,"TerminalRegExpVisitor")}constructor(){super(...arguments);this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[]}visitCharacter(e){let r=String.fromCharCode(e.value);if(!this.multiline&&r===` -`)this.multiline=!0;if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let i=zse(r);if(this.endRegexpStack.push(i),this.isStarting)this.startRegexp+=i}}visitSet(e){if(!this.multiline){let r=this.regex.substring(e.loc.begin,e.loc.end),i=new RegExp(r);this.multiline=Boolean(` -`.match(i))}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(e.loc.begin,e.loc.end);if(this.endRegexpStack.push(r),this.isStarting)this.startRegexp+=r}}visitChildren(e){if(e.type==="Group"){if(e.quantifier)return}super.visitChildren(e)}},rlt=new ypi;ee(TFr,"isMultilineComment");vpi=`\f -\r \v              \u2028\u2029   \uFEFF`.split("");ee(zut,"isWhitespace");ee(zse,"escapeRegExp");ee(xFr,"partialMatches");ee(CFr,"partialRegExp");ee(kFr,"getEntryRule");ee(AFr,"getHiddenRules");ee(Vut,"getAllReachableRules");ee(Hut,"ruleDfs");ee(RFr,"getCrossReferenceTerminal");ee(IFr,"isCommentTerminal");ee(OFr,"findNodesForProperty");ee(qut,"findNodeForProperty");ee(k4e,"findNodesForPropertyInternal");ee(NFr,"findNodeForKeyword");ee(LFr,"findNodesForKeywordInternal");ee(MFr,"findAssignment");ee(Yut,"findNameAssignment");ee(Wut,"findNameAssignmentInternal");ee(jut,"isDataTypeRule");ee(Kut,"isDataTypeRuleInternal");ee(Xut,"getExplicitRuleType");ee(_Y,"getTypeName");ee(DFr,"getActionType");ee(PFr,"getRuleType");ee(A4e,"terminalRegex");Qut=/[\s\S]/.source;ee(nF,"abstractElementToRegex");ee(BFr,"terminalAlternativesToRegex");ee(FFr,"terminalGroupToRegex");ee($Fr,"untilTokenToRegex");ee(UFr,"negateTokenToRegex");ee(GFr,"characterRangeToRegex");ee(uCe,"keywordToRegex");ee(j3,"withCardinality");ee(zFr,"createGrammarConfig");ee(ICe,"PRINT_ERROR");ee(Zut,"PRINT_WARNING");ee(Jut,"timer");ee(eht,"toFastProperties");ee(VFr,"tokenLabel");ee(HFr,"hasTokenLabel");Z3=class{static{ee(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach((r)=>{r.accept(e)})}},xv=class extends Z3{static{ee(this,"NonTerminal")}constructor(e){super([]);this.idx=1,Object.assign(this,GC(e))}set definition(e){}get definition(){if(this.referencedRule!==void 0)return this.referencedRule.definition;return[]}accept(e){e.visit(this)}},kY=class extends Z3{static{ee(this,"Rule")}constructor(e){super(e.definition);this.orgText="",Object.assign(this,GC(e))}},c2=class extends Z3{static{ee(this,"Alternative")}constructor(e){super(e.definition);this.ignoreAmbiguities=!1,Object.assign(this,GC(e))}},eb=class extends Z3{static{ee(this,"Option")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,GC(e))}},nw=class extends Z3{static{ee(this,"RepetitionMandatory")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,GC(e))}},iw=class extends Z3{static{ee(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,GC(e))}},qp=class extends Z3{static{ee(this,"Repetition")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,GC(e))}},u2=class extends Z3{static{ee(this,"RepetitionWithSeparator")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,GC(e))}},h2=class extends Z3{static{ee(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition);this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,GC(e))}},Ud=class{static{ee(this,"Terminal")}constructor(e){this.idx=1,Object.assign(this,GC(e))}accept(e){e.visit(this)}};ee(qFr,"serializeGrammar");ee(lse,"serializeProduction");ee(GC,"pickOnlyDefined");AY=class{static{ee(this,"GAstVisitor")}visit(e){let r=e;switch(r.constructor){case xv:return this.visitNonTerminal(r);case c2:return this.visitAlternative(r);case eb:return this.visitOption(r);case nw:return this.visitRepetitionMandatory(r);case iw:return this.visitRepetitionMandatoryWithSeparator(r);case u2:return this.visitRepetitionWithSeparator(r);case qp:return this.visitRepetition(r);case h2:return this.visitAlternation(r);case Ud:return this.visitTerminal(r);case kY:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};ee(YFr,"isSequenceProd");ee(Tse,"isOptionalProd");ee(WFr,"isBranchingProd");ee(FC,"getProductionDslName");R4e=class{static{ee(this,"RestWalker")}walk(e,r=[]){e.definition.forEach((i,a)=>{let o=e.definition.slice(a+1);if(i instanceof xv)this.walkProdRef(i,o,r);else if(i instanceof Ud)this.walkTerminal(i,o,r);else if(i instanceof c2)this.walkFlat(i,o,r);else if(i instanceof eb)this.walkOption(i,o,r);else if(i instanceof nw)this.walkAtLeastOne(i,o,r);else if(i instanceof iw)this.walkAtLeastOneSep(i,o,r);else if(i instanceof u2)this.walkManySep(i,o,r);else if(i instanceof qp)this.walkMany(i,o,r);else if(i instanceof h2)this.walkOr(i,o,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,i){}walkProdRef(e,r,i){}walkFlat(e,r,i){let a=r.concat(i);this.walk(e,a)}walkOption(e,r,i){let a=r.concat(i);this.walk(e,a)}walkAtLeastOne(e,r,i){let a=[new eb({definition:e.definition})].concat(r,i);this.walk(e,a)}walkAtLeastOneSep(e,r,i){let a=Lct(e,r,i);this.walk(e,a)}walkMany(e,r,i){let a=[new eb({definition:e.definition})].concat(r,i);this.walk(e,a)}walkManySep(e,r,i){let a=Lct(e,r,i);this.walk(e,a)}walkOr(e,r,i){let a=r.concat(i);e.definition.forEach((o)=>{let l=new c2({definition:[o]});this.walk(l,a)})}};ee(Lct,"restForRepetitionWithSeparator");ee(RY,"first");ee(jFr,"firstForSequence");ee(KFr,"firstForBranching");ee(XFr,"firstForTerminal");_pi=class extends R4e{static{ee(this,"ResyncFollowsWalker")}constructor(e){super();this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,i){}walkProdRef(e,r,i){let a=JFr(e.referencedRule,e.idx)+this.topProd.name,o=r.concat(i),l=new c2({definition:o}),h=RY(l);this.follows[a]=h}};ee(ZFr,"computeAllProdsFollows");ee(JFr,"buildBetweenProdsFollowPrefix");hCe={},Epi=new SFr;ee(IY,"getRegExpAst");ee(e$r,"clearRegExpParserCache");ee(r$r,"getOptimizedStartCodesIndices");ee(NCe,"firstCharOptimizedIndices");ee(nse,"addOptimizedIdxToResult");ee(n$r,"handleIgnoreCase");ee(Mct,"findCode");ee(LCe,"isWholeOptional");wpi=class extends C4e{static{ee(this,"CharCodeFinder")}constructor(e){super();this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found===!0)return;switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}visitCharacter(e){if(this.targetCharCodes.includes(e.value))this.found=!0}visitSet(e){if(e.complement){if(Mct(e,this.targetCharCodes)===void 0)this.found=!0}else if(Mct(e,this.targetCharCodes)!==void 0)this.found=!0}};ee(I4e,"canMatchCharCode");ee(i$r,"analyzeTokenTypes");ee(a$r,"getAsciiClass");ee(s$r,"validatePatterns");ee(o$r,"validateRegExpPattern");ee(l$r,"findMissingPatterns");ee(c$r,"findInvalidPatterns");Spi=/[^\\][$]/;ee(u$r,"findEndOfInputAnchor");ee(h$r,"findEmptyMatchRegExps");Tpi=/[^\\[][\^]|^\^/;ee(d$r,"findStartOfInputAnchor");ee(f$r,"findUnsupportedFlags");ee(p$r,"findDuplicatePatterns");ee(g$r,"findInvalidGroupType");ee(m$r,"findModesThatDoNotExist");ee(b$r,"findUnreachablePatterns");ee(y$r,"tryToMatchStrToPattern");ee(v$r,"noMetaChar");ee(_$r,"usesLookAheadOrBehind");ee(Fct,"addStickyFlag");ee(E$r,"performRuntimeChecks");ee(w$r,"performWarningRuntimeChecks");ee(tht,"isCustomPattern");ee(S$r,"isShortPattern");xpi={test:ee(function(e){let r=e.length;for(let i=this.lastIndex;i${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,r,i,a,o,l){return`unexpected character: ->${e.charAt(r)}<- at offset: ${r}, skipped ${i} characters.`}};(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Yp||(Yp={}));sse={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` -`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Uct,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(sse);l2=class{static{ee(this,"Lexer")}constructor(e,r=sse){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(a,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let l=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${a}>`);let{time:h,value:d}=Jut(o),p=h>10?console.warn:console.log;if(this.traceInitIndent time: ${h}ms`);return this.traceInitIndent--,d}else return o()},typeof r==="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. -a boolean 2nd argument is no longer supported`);this.config=Object.assign({},sse,r);let i=this.config.traceInitPerf;if(i===!0)this.traceInitMaxIdent=1/0,this.traceInitPerf=!0;else if(typeof i==="number")this.traceInitMaxIdent=i,this.traceInitPerf=!0;this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let a,o=!0;if(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===sse.lineTerminatorsPattern)this.config.lineTerminatorsPattern=xpi;else if(this.config.lineTerminatorCharacters===sse.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');if(this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e))a={modes:{defaultMode:[...e]},defaultMode:ise};else o=!1,a=Object.assign({},e)}),this.config.skipValidations===!1)this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(E$r(a,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(w$r(a,this.trackStartLines,this.config.lineTerminatorCharacters))});a.modes=a.modes?a.modes:{},Object.entries(a.modes).forEach(([h,d])=>{a.modes[h]=d.filter((p)=>p!==void 0)});let l=Object.keys(a.modes);if(Object.entries(a.modes).forEach(([h,d])=>{this.TRACE_INIT(`Mode: <${h}> processing`,()=>{if(this.modes.push(h),this.config.skipValidations===!1)this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(s$r(d,l))});if(this.lexerDefinitionErrors.length===0){NY(d);let p;this.TRACE_INIT("analyzeTokenTypes",()=>{p=i$r(d,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[h]=p.patternIdxToConfig,this.charCodeToPatternIdxToConfig[h]=p.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,p.emptyGroups),this.hasCustom=p.hasCustom||this.hasCustom,this.canModeBeOptimized[h]=p.canBeOptimized}})}),this.defaultMode=a.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let d=this.lexerDefinitionErrors.map((p)=>p.message).join(`----------------------- +`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let a=0;a=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}},R4e=class{static{te(this,"BaseRegExpVisitor")}visitChildren(e){for(let r in e){let i=e[r];if(e.hasOwnProperty(r)){if(i.type!==void 0)this.visit(i);else if(Array.isArray(i))i.forEach((a)=>{this.visit(a)},this)}}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}},wpi=/\r?\n/gm,Spi=new AFr,Tpi=class extends R4e{static{te(this,"TerminalRegExpVisitor")}constructor(){super(...arguments);this.isStarting=!0,this.endRegexpStack=[],this.multiline=!1}get endRegex(){return this.endRegexpStack.join("")}reset(e){this.multiline=!1,this.regex=e,this.startRegexp="",this.isStarting=!0,this.endRegexpStack=[]}visitGroup(e){if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[]}visitCharacter(e){let r=String.fromCharCode(e.value);if(!this.multiline&&r===` +`)this.multiline=!0;if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let i=qse(r);if(this.endRegexpStack.push(i),this.isStarting)this.startRegexp+=i}}visitSet(e){if(!this.multiline){let r=this.regex.substring(e.loc.begin,e.loc.end),i=new RegExp(r);this.multiline=Boolean(` +`.match(i))}if(e.quantifier)this.isStarting=!1,this.endRegexpStack=[];else{let r=this.regex.substring(e.loc.begin,e.loc.end);if(this.endRegexpStack.push(r),this.isStarting)this.startRegexp+=r}}visitChildren(e){if(e.type==="Group"){if(e.quantifier)return}super.visitChildren(e)}},alt=new Tpi;te(RFr,"isMultilineComment");xpi=`\f +\r \v              \u2028\u2029   \uFEFF`.split("");te(qut,"isWhitespace");te(qse,"escapeRegExp");te(IFr,"partialMatches");te(OFr,"partialRegExp");te(NFr,"getEntryRule");te(LFr,"getHiddenRules");te(Yut,"getAllReachableRules");te(Wut,"ruleDfs");te(MFr,"getCrossReferenceTerminal");te(DFr,"isCommentTerminal");te(PFr,"findNodesForProperty");te(jut,"findNodeForProperty");te(I4e,"findNodesForPropertyInternal");te(BFr,"findNodeForKeyword");te(FFr,"findNodesForKeywordInternal");te($Fr,"findAssignment");te(Kut,"findNameAssignment");te(Xut,"findNameAssignmentInternal");te(Qut,"isDataTypeRule");te(Zut,"isDataTypeRuleInternal");te(Jut,"getExplicitRuleType");te(SY,"getTypeName");te(UFr,"getActionType");te(GFr,"getRuleType");te(O4e,"terminalRegex");eht=/[\s\S]/.source;te(aF,"abstractElementToRegex");te(zFr,"terminalAlternativesToRegex");te(VFr,"terminalGroupToRegex");te(HFr,"untilTokenToRegex");te(qFr,"negateTokenToRegex");te(YFr,"characterRangeToRegex");te(fCe,"keywordToRegex");te(K3,"withCardinality");te(WFr,"createGrammarConfig");te(LCe,"PRINT_ERROR");te(tht,"PRINT_WARNING");te(rht,"timer");te(nht,"toFastProperties");te(jFr,"tokenLabel");te(KFr,"hasTokenLabel");J3=class{static{te(this,"AbstractProduction")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach((r)=>{r.accept(e)})}},xv=class extends J3{static{te(this,"NonTerminal")}constructor(e){super([]);this.idx=1,Object.assign(this,VC(e))}set definition(e){}get definition(){if(this.referencedRule!==void 0)return this.referencedRule.definition;return[]}accept(e){e.visit(this)}},IY=class extends J3{static{te(this,"Rule")}constructor(e){super(e.definition);this.orgText="",Object.assign(this,VC(e))}},c2=class extends J3{static{te(this,"Alternative")}constructor(e){super(e.definition);this.ignoreAmbiguities=!1,Object.assign(this,VC(e))}},eb=class extends J3{static{te(this,"Option")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,VC(e))}},nw=class extends J3{static{te(this,"RepetitionMandatory")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,VC(e))}},iw=class extends J3{static{te(this,"RepetitionMandatoryWithSeparator")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,VC(e))}},qp=class extends J3{static{te(this,"Repetition")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,VC(e))}},u2=class extends J3{static{te(this,"RepetitionWithSeparator")}constructor(e){super(e.definition);this.idx=1,Object.assign(this,VC(e))}},h2=class extends J3{static{te(this,"Alternation")}get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition);this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,VC(e))}},Ud=class{static{te(this,"Terminal")}constructor(e){this.idx=1,Object.assign(this,VC(e))}accept(e){e.visit(this)}};te(XFr,"serializeGrammar");te(hse,"serializeProduction");te(VC,"pickOnlyDefined");OY=class{static{te(this,"GAstVisitor")}visit(e){let r=e;switch(r.constructor){case xv:return this.visitNonTerminal(r);case c2:return this.visitAlternative(r);case eb:return this.visitOption(r);case nw:return this.visitRepetitionMandatory(r);case iw:return this.visitRepetitionMandatoryWithSeparator(r);case u2:return this.visitRepetitionWithSeparator(r);case qp:return this.visitRepetition(r);case h2:return this.visitAlternation(r);case Ud:return this.visitTerminal(r);case IY:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}};te(QFr,"isSequenceProd");te(kse,"isOptionalProd");te(ZFr,"isBranchingProd");te(UC,"getProductionDslName");N4e=class{static{te(this,"RestWalker")}walk(e,r=[]){e.definition.forEach((i,a)=>{let o=e.definition.slice(a+1);if(i instanceof xv)this.walkProdRef(i,o,r);else if(i instanceof Ud)this.walkTerminal(i,o,r);else if(i instanceof c2)this.walkFlat(i,o,r);else if(i instanceof eb)this.walkOption(i,o,r);else if(i instanceof nw)this.walkAtLeastOne(i,o,r);else if(i instanceof iw)this.walkAtLeastOneSep(i,o,r);else if(i instanceof u2)this.walkManySep(i,o,r);else if(i instanceof qp)this.walkMany(i,o,r);else if(i instanceof h2)this.walkOr(i,o,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,i){}walkProdRef(e,r,i){}walkFlat(e,r,i){let a=r.concat(i);this.walk(e,a)}walkOption(e,r,i){let a=r.concat(i);this.walk(e,a)}walkAtLeastOne(e,r,i){let a=[new eb({definition:e.definition})].concat(r,i);this.walk(e,a)}walkAtLeastOneSep(e,r,i){let a=Pct(e,r,i);this.walk(e,a)}walkMany(e,r,i){let a=[new eb({definition:e.definition})].concat(r,i);this.walk(e,a)}walkManySep(e,r,i){let a=Pct(e,r,i);this.walk(e,a)}walkOr(e,r,i){let a=r.concat(i);e.definition.forEach((o)=>{let l=new c2({definition:[o]});this.walk(l,a)})}};te(Pct,"restForRepetitionWithSeparator");te(NY,"first");te(JFr,"firstForSequence");te(e$r,"firstForBranching");te(t$r,"firstForTerminal");Cpi=class extends N4e{static{te(this,"ResyncFollowsWalker")}constructor(e){super();this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,i){}walkProdRef(e,r,i){let a=i$r(e.referencedRule,e.idx)+this.topProd.name,o=r.concat(i),l=new c2({definition:o}),h=NY(l);this.follows[a]=h}};te(n$r,"computeAllProdsFollows");te(i$r,"buildBetweenProdsFollowPrefix");pCe={},kpi=new AFr;te(LY,"getRegExpAst");te(a$r,"clearRegExpParserCache");te(o$r,"getOptimizedStartCodesIndices");te(DCe,"firstCharOptimizedIndices");te(sse,"addOptimizedIdxToResult");te(l$r,"handleIgnoreCase");te(Bct,"findCode");te(PCe,"isWholeOptional");Api=class extends R4e{static{te(this,"CharCodeFinder")}constructor(e){super();this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found===!0)return;switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}visitCharacter(e){if(this.targetCharCodes.includes(e.value))this.found=!0}visitSet(e){if(e.complement){if(Bct(e,this.targetCharCodes)===void 0)this.found=!0}else if(Bct(e,this.targetCharCodes)!==void 0)this.found=!0}};te(L4e,"canMatchCharCode");te(c$r,"analyzeTokenTypes");te(u$r,"getAsciiClass");te(h$r,"validatePatterns");te(d$r,"validateRegExpPattern");te(f$r,"findMissingPatterns");te(p$r,"findInvalidPatterns");Rpi=/[^\\][$]/;te(g$r,"findEndOfInputAnchor");te(m$r,"findEmptyMatchRegExps");Ipi=/[^\\[][\^]|^\^/;te(b$r,"findStartOfInputAnchor");te(y$r,"findUnsupportedFlags");te(v$r,"findDuplicatePatterns");te(_$r,"findInvalidGroupType");te(E$r,"findModesThatDoNotExist");te(w$r,"findUnreachablePatterns");te(S$r,"tryToMatchStrToPattern");te(T$r,"noMetaChar");te(x$r,"usesLookAheadOrBehind");te(Gct,"addStickyFlag");te(C$r,"performRuntimeChecks");te(k$r,"performWarningRuntimeChecks");te(iht,"isCustomPattern");te(A$r,"isShortPattern");Opi={test:te(function(e){let r=e.length;for(let i=this.lastIndex;i${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,r,i,a,o,l){return`unexpected character: ->${e.charAt(r)}<- at offset: ${r}, skipped ${i} characters.`}};(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Yp||(Yp={}));cse={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Vct,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(cse);l2=class{static{te(this,"Lexer")}constructor(e,r=cse){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(a,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let l=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${a}>`);let{time:h,value:d}=rht(o),p=h>10?console.warn:console.log;if(this.traceInitIndent time: ${h}ms`);return this.traceInitIndent--,d}else return o()},typeof r==="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=Object.assign({},cse,r);let i=this.config.traceInitPerf;if(i===!0)this.traceInitMaxIdent=1/0,this.traceInitPerf=!0;else if(typeof i==="number")this.traceInitMaxIdent=i,this.traceInitPerf=!0;this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let a,o=!0;if(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===cse.lineTerminatorsPattern)this.config.lineTerminatorsPattern=Opi;else if(this.config.lineTerminatorCharacters===cse.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');if(this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e))a={modes:{defaultMode:[...e]},defaultMode:ose};else o=!1,a=Object.assign({},e)}),this.config.skipValidations===!1)this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(C$r(a,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(k$r(a,this.trackStartLines,this.config.lineTerminatorCharacters))});a.modes=a.modes?a.modes:{},Object.entries(a.modes).forEach(([h,d])=>{a.modes[h]=d.filter((p)=>p!==void 0)});let l=Object.keys(a.modes);if(Object.entries(a.modes).forEach(([h,d])=>{this.TRACE_INIT(`Mode: <${h}> processing`,()=>{if(this.modes.push(h),this.config.skipValidations===!1)this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(h$r(d,l))});if(this.lexerDefinitionErrors.length===0){DY(d);let p;this.TRACE_INIT("analyzeTokenTypes",()=>{p=c$r(d,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[h]=p.patternIdxToConfig,this.charCodeToPatternIdxToConfig[h]=p.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,p.emptyGroups),this.hasCustom=p.hasCustom||this.hasCustom,this.canModeBeOptimized[h]=p.canBeOptimized}})}),this.defaultMode=a.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let d=this.lexerDefinitionErrors.map((p)=>p.message).join(`----------------------- `);throw Error(`Errors detected in definition of Lexer: -`+d)}this.lexerDefinitionWarning.forEach((h)=>{Zut(h.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(o)this.handleModes=()=>{};if(this.trackStartLines===!1)this.computeNewColumn=(h)=>h;if(this.trackEndLines===!1)this.updateTokenEndLineColumnLocation=()=>{};if(/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);if(this.hasCustom)this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom;else this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let h=Object.entries(this.canModeBeOptimized).reduce((d,[p,m])=>{if(m===!1)d.push(p);return d},[]);if(r.ensureOptimizations&&h.length>0)throw Error(`Lexer Modes: < ${h.join(", ")} > cannot be optimized. +`+d)}this.lexerDefinitionWarning.forEach((h)=>{tht(h.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(o)this.handleModes=()=>{};if(this.trackStartLines===!1)this.computeNewColumn=(h)=>h;if(this.trackEndLines===!1)this.updateTokenEndLineColumnLocation=()=>{};if(/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);if(this.hasCustom)this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom;else this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let h=Object.entries(this.canModeBeOptimized).reduce((d,[p,m])=>{if(m===!1)d.push(p);return d},[]);if(r.ensureOptimizations&&h.length>0)throw Error(`Lexer Modes: < ${h.join(", ")} > cannot be optimized. Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. - Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{e$r()}),this.TRACE_INIT("toFastProperties",()=>{eht(this)})})}tokenize(e,r=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let a=this.lexerDefinitionErrors.map((o)=>o.message).join(`----------------------- + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{a$r()}),this.TRACE_INIT("toFastProperties",()=>{nht(this)})})}tokenize(e,r=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let a=this.lexerDefinitionErrors.map((o)=>o.message).join(`----------------------- `);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+a)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let i,a,o,l,h,d,p,m,y,E,w,T,x,k,A,R=e,N=R.length,L=0,B=0,D=this.hasCustom?0:Math.floor(e.length/10),P=Array(D),F=[],H=this.trackStartLines?1:void 0,K=this.trackStartLines?1:void 0,Q={};for(let he=0;he{if(W.length===1&&he.tokenType.PUSH_MODE===void 0){let ye=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(he);F.push({offset:he.startOffset,line:he.startLine,column:he.startColumn,length:he.image.length,message:ye})}else{W.pop();let ye=W.at(-1);te=this.patternIdxToConfig[ye],X=this.charCodeToPatternIdxToConfig[ye],j=te.length;let xe=this.canModeBeOptimized[ye]&&this.config.safeMode===!1;if(X&&xe)z=!0;else z=!1}},"pop_mode");function ie(he){W.push(he),X=this.charCodeToPatternIdxToConfig[he],te=this.patternIdxToConfig[he],j=te.length;let ye=this.canModeBeOptimized[he]&&this.config.safeMode===!1;if(X&&ye)z=!0;else z=!1}ee(ie,"push_mode"),ie.call(this,r);let le,se=this.config.recoveryEnabled;while(Ld.length){d=l,y=l.length,p=m,le=Ue;break}}}break}}if(y!==-1){if(E=le.group,E!==void 0)if(d=d!==null?d:e.substring(L,L+y),w=le.tokenTypeIdx,T=this.createTokenInstance(d,L,w,le.tokenType,H,K,y),this.handlePayload(T,p),E===!1)B=this.addToken(P,B,T);else Q[E].push(T);if(Z===!0&&le.canLineTerminator===!0){let Ie=0,Ee,Ue;Y.lastIndex=0;do if(d=d!==null?d:e.substring(L,L+y),Ee=Y.test(d),Ee===!0)Ue=Y.lastIndex-1,Ie++;while(Ee===!0);if(Ie!==0)H=H+Ie,K=y-Ue,this.updateTokenEndLineColumnLocation(T,E,Ue,Ie,H,K,y);else K=this.computeNewColumn(K,y)}else K=this.computeNewColumn(K,y);L=L+y,this.handleModes(le,ne,ie,T)}else{let Ie=L,Ee=H,Ue=K,Me=se===!1;while(Me===!1&&L ${ZB(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${r.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:r}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:r,previous:i,customUserDescription:a,ruleName:o}){let d=` +`+a)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let i,a,o,l,h,d,p,m,y,v,w,T,x,k,A,R=e,N=R.length,L=0,B=0,D=this.hasCustom?0:Math.floor(e.length/10),P=Array(D),F=[],H=this.trackStartLines?1:void 0,W=this.trackStartLines?1:void 0,X={};for(let he=0;he{if(j.length===1&&he.tokenType.PUSH_MODE===void 0){let ye=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(he);F.push({offset:he.startOffset,line:he.startLine,column:he.startColumn,length:he.image.length,message:ye})}else{j.pop();let ye=j.at(-1);J=this.patternIdxToConfig[ye],Z=this.charCodeToPatternIdxToConfig[ye],K=J.length;let Se=this.canModeBeOptimized[ye]&&this.config.safeMode===!1;if(Z&&Se)z=!0;else z=!1}},"pop_mode");function ie(he){j.push(he),Z=this.charCodeToPatternIdxToConfig[he],J=this.patternIdxToConfig[he],K=J.length;let ye=this.canModeBeOptimized[he]&&this.config.safeMode===!1;if(Z&&ye)z=!0;else z=!1}te(ie,"push_mode"),ie.call(this,r);let se,oe=this.config.recoveryEnabled;while(Ld.length){d=l,y=l.length,p=m,se=ze;break}}}break}}if(y!==-1){if(v=se.group,v!==void 0)if(d=d!==null?d:e.substring(L,L+y),w=se.tokenTypeIdx,T=this.createTokenInstance(d,L,w,se.tokenType,H,W,y),this.handlePayload(T,p),v===!1)B=this.addToken(P,B,T);else X[v].push(T);if(Q===!0&&se.canLineTerminator===!0){let Ie=0,Ee,ze;Y.lastIndex=0;do if(d=d!==null?d:e.substring(L,L+y),Ee=Y.test(d),Ee===!0)ze=Y.lastIndex-1,Ie++;while(Ee===!0);if(Ie!==0)H=H+Ie,W=y-ze,this.updateTokenEndLineColumnLocation(T,v,ze,Ie,H,W,y);else W=this.computeNewColumn(W,y)}else W=this.computeNewColumn(W,y);L=L+y,this.handleModes(se,ne,ie,T)}else{let Ie=L,Ee=H,ze=W,Me=oe===!1;while(Me===!1&&L ${eF(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${r.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:r}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:r,previous:i,customUserDescription:a,ruleName:o}){let d=` but found: '`+r[0].image+"'";if(a)return"Expecting: "+a+d;else return`Expecting: one of these possible Token sequences: -${e.reduce((w,T)=>w.concat(T),[]).map((w)=>`[${w.map((T)=>ZB(T)).join(", ")}]`).map((w,T)=>` ${T+1}. ${w}`).join(` +${e.reduce((w,T)=>w.concat(T),[]).map((w)=>`[${w.map((T)=>eF(T)).join(", ")}]`).map((w,T)=>` ${T+1}. ${w}`).join(` `)}`+d},buildEarlyExitMessage({expectedIterationPaths:e,actual:r,customUserDescription:i,ruleName:a}){let h=` but found: '`+r[0].image+"'";if(i)return"Expecting: "+i+h;else return`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: - <${e.map((m)=>`[${m.map((y)=>ZB(y)).join(",")}]`).join(" ,")}>`+h}};Object.freeze(dY);kpi={buildRuleNotFoundError(e,r){return"Invalid grammar, reference to a rule which is not defined: ->"+r.nonTerminalName+`<- -inside top level rule: ->`+e.name+"<-"}},KB={buildDuplicateFoundError(e,r){function i(y){if(y instanceof Ud)return y.terminalType.name;else if(y instanceof xv)return y.nonTerminalName;else return""}ee(i,"getExtraProductionArgument");let a=e.name,o=r[0],l=o.idx,h=FC(o),d=i(o),p=l>0,m=`->${h}${p?l:""}<- ${d?`with argument: ->${d}<-`:""} + <${e.map((m)=>`[${m.map((y)=>eF(y)).join(",")}]`).join(" ,")}>`+h}};Object.freeze(gY);Lpi={buildRuleNotFoundError(e,r){return"Invalid grammar, reference to a rule which is not defined: ->"+r.nonTerminalName+`<- +inside top level rule: ->`+e.name+"<-"}},QB={buildDuplicateFoundError(e,r){function i(y){if(y instanceof Ud)return y.terminalType.name;else if(y instanceof xv)return y.nonTerminalName;else return""}te(i,"getExtraProductionArgument");let a=e.name,o=r[0],l=o.idx,h=UC(o),d=i(o),p=l>0,m=`->${h}${p?l:""}<- ${d?`with argument: ->${d}<-`:""} appears more than once (${r.length} times) in the top level rule: ->${a}<-. For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES `;return m=m.replace(/[ \t]+/g," "),m=m.replace(/\s\s+/g,` @@ -1584,16 +1584,16 @@ inside top level rule: ->`+e.name+"<-"}},KB={buildDuplicateFoundError(e,r){funct The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. To resolve this make sure each Terminal and Non-Terminal names are unique This is easy to accomplish by using the convention that Terminal names start with an uppercase letter -and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let r=e.prefixPath.map((o)=>ZB(o)).join(", "),i=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let r=e.prefixPath.map((o)=>eF(o)).join(", "),i=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix in inside <${e.topLevelRule.name}> Rule, <${r}> may appears as a prefix path in all these alternatives. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX For Further details.`},buildAlternationAmbiguityError(e){let r=e.alternation.idx===0?"":e.alternation.idx,i=e.prefixPath.length===0,a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule, `;if(i)a+=`These alternatives are all empty (match no tokens), making them indistinguishable. Only the last alternative may be empty. -`;else{let o=e.prefixPath.map((l)=>ZB(l)).join(", ");a+=`<${o}> may appears as a prefix path in all these alternatives. +`;else{let o=e.prefixPath.map((l)=>eF(l)).join(", ");a+=`<${o}> may appears as a prefix path in all these alternatives. `}return a+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES -For Further details.`,a},buildEmptyRepetitionError(e){let r=FC(e.repetition);if(e.repetition.idx!==0)r+=e.repetition.idx;return`The repetition <${r}> within Rule <${e.topLevelRule.name}> can never consume any tokens. +For Further details.`,a},buildEmptyRepetitionError(e){let r=UC(e.repetition);if(e.repetition.idx!==0)r+=e.repetition.idx;return`The repetition <${r}> within Rule <${e.topLevelRule.name}> can never consume any tokens. This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. Only the last alternative may be an empty alternative.`},buildTooManyAlternativesError(e){return`An Alternation cannot have more than 256 alternatives: inside <${e.topLevelRule.name}> Rule. @@ -1602,64 +1602,64 @@ rule: <${r}> can be invoked from itself (directly or indirectly) without consuming any Tokens. The grammar path that causes this is: ${a} To fix this refactor your grammar to remove the left recursion. -see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let r;if(e.topLevelRule instanceof kY)r=e.topLevelRule.name;else r=e.topLevelRule;return`Duplicate definition, rule: ->${r}<- is already defined in the grammar: ->${e.grammarName}<-`}};ee(D$r,"resolveGrammar");Api=class extends AY{static{ee(this,"GastRefResolverVisitor")}constructor(e,r){super();this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach((e)=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(!r){let i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:i,type:Cv.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}else e.referencedRule=r}},Rpi=class extends R4e{static{ee(this,"AbstractNextPossibleTokensWalker")}constructor(e,r){super();this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){if(!this.found)super.walk(e,r)}walkProdRef(e,r,i){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let a=r.concat(i);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){if(this.ruleStack.length===0)this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0;else this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop()}},Ipi=class extends Rpi{static{ee(this,"NextAfterTokenWalker")}constructor(e,r){super(e,r);this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,i){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let a=r.concat(i),o=new c2({definition:a});this.possibleTokTypes=RY(o),this.found=!0}}},L4e=class extends R4e{static{ee(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,r){super();this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Opi=class extends L4e{static{ee(this,"NextTerminalAfterManyWalker")}walkMany(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkMany(e,r,i)}},FPr=class extends L4e{static{ee(this,"NextTerminalAfterManySepWalker")}walkManySep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkManySep(e,r,i)}},Npi=class extends L4e{static{ee(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOne(e,r,i)}},$Pr=class extends L4e{static{ee(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOneSep(e,r,i)}};ee(MCe,"possiblePathsFrom");ee(P$r,"nextPossibleTokensAfter");ee(B$r,"expandTopLevelRule");(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(sp||(sp={}));ee(M4e,"getProdType");ee(Gct,"getLookaheadPaths");ee(F$r,"buildLookaheadFuncForOr");ee($$r,"buildLookaheadFuncForOptionalProd");ee(U$r,"buildAlternativesLookAheadFunc");ee(G$r,"buildSingleAlternativeLookaheadFunction");Lpi=class extends R4e{static{ee(this,"RestDefinitionFinderWalker")}constructor(e,r,i){super();this.topProd=e,this.targetOccurrence=r,this.targetProdType=i}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,i,a){if(e.idx===this.targetOccurrence&&this.targetProdType===r)return this.restDef=i.concat(a),!0;return!1}walkOption(e,r,i){if(!this.checkIsTarget(e,sp.OPTION,r,i))super.walkOption(e,r,i)}walkAtLeastOne(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION_MANDATORY,r,i))super.walkOption(e,r,i)}walkAtLeastOneSep(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION_MANDATORY_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}walkMany(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION,r,i))super.walkOption(e,r,i)}walkManySep(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}},z$r=class extends AY{static{ee(this,"InsideDefinitionFinderVisitor")}constructor(e,r,i){super();this.targetOccurrence=e,this.targetProdType=r,this.targetRef=i,this.result=[]}checkIsTarget(e,r){if(e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef))this.result=e.definition}visitOption(e){this.checkIsTarget(e,sp.OPTION)}visitRepetition(e){this.checkIsTarget(e,sp.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,sp.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,sp.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,sp.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,sp.ALTERNATION)}};ee(zct,"initializeArrayOfArrays");ee(gCe,"pathToHashKeys");ee(V$r,"isUniquePrefixHash");ee(lht,"lookAheadSequenceFromAlternatives");ee(Vse,"getLookaheadPathsForOr");ee(Hse,"getLookaheadPathsForOptionalProd");ee(DCe,"containsPath");ee(H$r,"isStrictPrefixOfPath");ee(cht,"areTokenCategoriesNotUsed");ee(q$r,"validateLookahead");ee(Y$r,"validateGrammar");ee(W$r,"validateDuplicateProductions");ee(j$r,"identifyProductionForDuplicates");ee(uht,"getExtraProductionArgument");Mpi=class extends AY{static{ee(this,"OccurrenceValidationCollector")}constructor(){super(...arguments);this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};ee(K$r,"validateRuleDoesNotAlreadyExist");ee(X$r,"validateRuleIsOverridden");ee(hht,"validateNoLeftRecursion");ee(cse,"getFirstNoneTerminal");dht=class extends AY{static{ee(this,"OrCollector")}constructor(){super(...arguments);this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};ee(Q$r,"validateEmptyOrAlternative");ee(Z$r,"validateAmbiguousAlternationAlternatives");Dpi=class extends AY{static{ee(this,"RepetitionCollector")}constructor(){super(...arguments);this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};ee(J$r,"validateTooManyAlts");ee(eUr,"validateSomeNonEmptyLookaheadPath");ee(tUr,"checkAlternativesAmbiguities");ee(rUr,"checkPrefixAlternativesAmbiguities");ee(nUr,"checkTerminalAndNoneTerminalsNameSpace");ee(iUr,"resolveGrammar");ee(aUr,"validateGrammar");uUr=[sUr,oUr,lUr,cUr];Object.freeze(uUr);ee(Cse,"isRecognitionException");D4e=class extends Error{static{ee(this,"RecognitionException")}constructor(e,r){super(e);if(this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},hUr=class extends D4e{static{ee(this,"MismatchedTokenException")}constructor(e,r,i){super(e,r);this.previousToken=i,this.name=sUr}},Ppi=class extends D4e{static{ee(this,"NoViableAltException")}constructor(e,r,i){super(e,r);this.previousToken=i,this.name=oUr}},Bpi=class extends D4e{static{ee(this,"NotAllInputParsedException")}constructor(e,r){super(e,r);this.name=cUr}},Fpi=class extends D4e{static{ee(this,"EarlyExitException")}constructor(e,r,i){super(e,r);this.previousToken=i,this.name=lUr}},nlt={},$pi=class extends Error{static{ee(this,"InRuleRecoveryException")}constructor(e){super(e);this.name=dUr}},Upi=class{static{ee(this,"Recoverable")}initRecoverable(e){if(this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,"recoveryEnabled")?e.recoveryEnabled:SI.recoveryEnabled,this.recoveryEnabled)this.attemptInRepetitionRecovery=fUr}getTokenToInsert(e){let r=O4e(e,"",-1,-1,-1,-1,-1,-1);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,i,a){let o=this.findReSyncTokenType(),l=this.exportLexerState(),h=[],d=!1,p=this.LA_FAST(1),m=this.LA_FAST(1),y=ee(()=>{let E=this.LA(0),w=this.errorMessageProvider.buildMismatchTokenMessage({expected:a,actual:p,previous:E,ruleName:this.getCurrRuleFullName()}),T=new hUr(w,p,this.LA(0));T.resyncedTokens=h.slice(0,-1),this.SAVE_ERROR(T)},"generateErrorMessage");while(!d)if(this.tokenMatcher(m,a)){y();return}else if(i.call(this)){y(),e.apply(this,r);return}else if(this.tokenMatcher(m,o))d=!0;else m=this.SKIP_TOKEN(),this.addToResyncTokens(m,h);this.importLexerState(l)}shouldInRepetitionRecoveryBeTried(e,r,i){if(i===!1)return!1;if(this.tokenMatcher(this.LA_FAST(1),e))return!1;if(this.isBackTracking())return!1;if(this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))return!1;return!0}getNextPossibleTokenTypes(e){let r=e.ruleStack[0],a=this.getGAstProductions()[r];return new Ipi(a,e).startWalking()}getFollowsForInRuleRecovery(e,r){let i=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(i)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let i=this.SKIP_TOKEN();return this.consumeToken(),i}throw new $pi("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(r.length===0)return!1;let i=this.LA_FAST(1);return r.find((o)=>this.tokenMatcher(i,o))!==void 0}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e))return!1;return this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let r=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(r).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),r=this.LA_FAST(1),i=2;while(!0){let a=e.find((o)=>N4e(r,o));if(a!==void 0)return a;r=this.LA(i),i++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return nlt;let e=this.currRuleShortName,r=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(i)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK,i=this.RULE_STACK_IDX+1,a=Array(i);for(let o=0;othis.getFollowSetFromFollowKey(r)).flat()}getFollowSetFromFollowKey(e){if(e===nlt)return[wI];let r=e.ruleName+e.idxInCallingRule+QFr+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){if(!this.tokenMatcher(e,wI))r.push(e);return r}reSyncTo(e){let r=[],i=this.LA_FAST(1);while(this.tokenMatcher(i,e)===!1)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,r);return r.slice(0,-1)}attemptInRepetitionRecovery(e,r,i,a,o,l,h){}getCurrentGrammarPath(e,r){let i=this.getHumanReadableRuleStack(),a=this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1);return{ruleStack:i,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,r=Array(e);for(let i=0;ihht(r,r,KB))}validateEmptyOrAlternatives(e){return e.flatMap((r)=>Q$r(r,KB))}validateAmbiguousAlternationAlternatives(e,r){return e.flatMap((i)=>Z$r(i,r,KB))}validateSomeNonEmptyLookaheadPath(e,r){return eUr(e,r,KB)}buildLookaheadForAlternation(e){return F$r(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,U$r)}buildLookaheadForOptional(e){return $$r(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,M4e(e.prodType),G$r)}},Gpi=class{static{ee(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:SI.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,"maxLookahead")?e.maxLookahead:SI.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,"lookaheadStrategy")?e.lookaheadStrategy:new fht({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach((r)=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:i,repetition:a,option:o,repetitionMandatory:l,repetitionMandatoryWithSeparator:h,repetitionWithSeparator:d}=mUr(r);i.forEach((p)=>{let m=p.idx===0?"":p.idx;this.TRACE_INIT(`${FC(p)}${m}`,()=>{let y=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:p.idx,rule:r,maxLookahead:p.maxLookahead||this.maxLookahead,hasPredicates:p.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[r.name],pUr|p.idx,y)})}),a.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Vct,"Repetition",p.maxLookahead,FC(p))}),o.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,gUr,"Option",p.maxLookahead,FC(p))}),l.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Hct,"RepetitionMandatory",p.maxLookahead,FC(p))}),h.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,mCe,"RepetitionMandatoryWithSeparator",p.maxLookahead,FC(p))}),d.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,qct,"RepetitionWithSeparator",p.maxLookahead,FC(p))})})})}computeLookaheadFunc(e,r,i,a,o,l){this.TRACE_INIT(`${l}${r===0?"":r}`,()=>{let h=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a});this.setLaFuncCache(this.fullRuleNameToShort[e.name],i|r,h)})}setLaFuncCache(e,r,i){let a=this.lookAheadFuncsCache[e];if(a===void 0)a=[],this.lookAheadFuncsCache[e]=a;a[r]=i}},zpi=class extends AY{static{ee(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments);this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Lxe=new zpi;ee(mUr,"collectMethods");ee(Yct,"setNodeLocationOnlyOffset");ee(Wct,"setNodeLocationFull");ee(bUr,"addTerminalToCst");ee(yUr,"addNoneTerminalToCst");ee(pht,"defineNameProp");ee(vUr,"defaultVisit");ee(_Ur,"createBaseSemanticVisitorConstructor");ee(EUr,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(jct||(jct={}));ee(wUr,"validateVisitor");ee(SUr,"validateMissingCstMethods");Hpi=class{static{ee(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,"nodeLocationTracking")?e.nodeLocationTracking:SI.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=Wct,this.setNodeLocationFromNode=Wct,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular;else if(/onlyOffset/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=Yct,this.setNodeLocationFromNode=Yct,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular;else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let r=this.LA_FAST(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset,i.endLine=r.endLine,i.endColumn=r.endColumn;else i.startOffset=-1,i.startLine=-1,i.startColumn=-1}cstPostRuleOnlyOffset(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset;else i.startOffset=-1}cstPostTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];bUr(i,r,e),this.setNodeLocationFromToken(i.location,r)}cstPostNonTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];yUr(i,r,e),this.setNodeLocationFromNode(i.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=_Ur(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=EUr(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},qpi=class{static{ee(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){if(this.currIdx<=this.tokVectorLength-2)return this.consumeToken(),this.LA_FAST(1);else return EY}LA_FAST(e){let r=this.currIdx+e;return this.tokVector[r]}LA(e){let r=this.currIdx+e;if(r<0||this.tokVectorLength<=r)return EY;else return this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},Ypi=class{static{ee(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,r,i){return this.consumeInternal(r,e,i)}subrule(e,r,i){return this.subruleInternal(r,e,i)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,i=PCe){if(this.definedRulesNames.includes(e)){let l={message:KB.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Cv.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(l)}this.definedRulesNames.push(e);let a=this.defineRule(e,r,i);return this[e]=a,a}OVERRIDE_RULE(e,r,i=PCe){let a=X$r(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);let o=this.defineRule(e,r,i);return this[e]=o,o}BACKTRACK(e,r){var i;let a=(i=e.coreRule)!==null&&i!==void 0?i:e;return function(){this.isBackTrackingStack.push(1);let o=this.saveRecogState();try{return a.apply(this,r),!0}catch(l){if(Cse(l))return!1;else throw l}finally{this.reloadRecogState(o),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return qFr(Object.values(this.gastProductionsCache))}},Wpi=class{static{ee(this,"RecognizerEngine")}initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=xse,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let r;if(e.topLevelRule instanceof IY)r=e.topLevelRule.name;else r=e.topLevelRule;return`Duplicate definition, rule: ->${r}<- is already defined in the grammar: ->${e.grammarName}<-`}};te(U$r,"resolveGrammar");Mpi=class extends OY{static{te(this,"GastRefResolverVisitor")}constructor(e,r){super();this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach((e)=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(!r){let i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:i,type:Cv.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}else e.referencedRule=r}},Dpi=class extends N4e{static{te(this,"AbstractNextPossibleTokensWalker")}constructor(e,r){super();this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){if(!this.found)super.walk(e,r)}walkProdRef(e,r,i){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let a=r.concat(i);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){if(this.ruleStack.length===0)this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0;else this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop()}},Ppi=class extends Dpi{static{te(this,"NextAfterTokenWalker")}constructor(e,r){super(e,r);this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,i){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let a=r.concat(i),o=new c2({definition:a});this.possibleTokTypes=NY(o),this.found=!0}}},P4e=class extends N4e{static{te(this,"AbstractNextTerminalAfterProductionWalker")}constructor(e,r){super();this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}},Bpi=class extends P4e{static{te(this,"NextTerminalAfterManyWalker")}walkMany(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkMany(e,r,i)}},VPr=class extends P4e{static{te(this,"NextTerminalAfterManySepWalker")}walkManySep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkManySep(e,r,i)}},Fpi=class extends P4e{static{te(this,"NextTerminalAfterAtLeastOneWalker")}walkAtLeastOne(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOne(e,r,i)}},HPr=class extends P4e{static{te(this,"NextTerminalAfterAtLeastOneSepWalker")}walkAtLeastOneSep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof Ud)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOneSep(e,r,i)}};te(BCe,"possiblePathsFrom");te(G$r,"nextPossibleTokensAfter");te(z$r,"expandTopLevelRule");(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(sp||(sp={}));te(B4e,"getProdType");te(Hct,"getLookaheadPaths");te(V$r,"buildLookaheadFuncForOr");te(H$r,"buildLookaheadFuncForOptionalProd");te(q$r,"buildAlternativesLookAheadFunc");te(Y$r,"buildSingleAlternativeLookaheadFunction");$pi=class extends N4e{static{te(this,"RestDefinitionFinderWalker")}constructor(e,r,i){super();this.topProd=e,this.targetOccurrence=r,this.targetProdType=i}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,i,a){if(e.idx===this.targetOccurrence&&this.targetProdType===r)return this.restDef=i.concat(a),!0;return!1}walkOption(e,r,i){if(!this.checkIsTarget(e,sp.OPTION,r,i))super.walkOption(e,r,i)}walkAtLeastOne(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION_MANDATORY,r,i))super.walkOption(e,r,i)}walkAtLeastOneSep(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION_MANDATORY_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}walkMany(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION,r,i))super.walkOption(e,r,i)}walkManySep(e,r,i){if(!this.checkIsTarget(e,sp.REPETITION_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}},W$r=class extends OY{static{te(this,"InsideDefinitionFinderVisitor")}constructor(e,r,i){super();this.targetOccurrence=e,this.targetProdType=r,this.targetRef=i,this.result=[]}checkIsTarget(e,r){if(e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef))this.result=e.definition}visitOption(e){this.checkIsTarget(e,sp.OPTION)}visitRepetition(e){this.checkIsTarget(e,sp.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,sp.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,sp.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,sp.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,sp.ALTERNATION)}};te(qct,"initializeArrayOfArrays");te(yCe,"pathToHashKeys");te(j$r,"isUniquePrefixHash");te(hht,"lookAheadSequenceFromAlternatives");te(Yse,"getLookaheadPathsForOr");te(Wse,"getLookaheadPathsForOptionalProd");te(FCe,"containsPath");te(K$r,"isStrictPrefixOfPath");te(dht,"areTokenCategoriesNotUsed");te(X$r,"validateLookahead");te(Q$r,"validateGrammar");te(Z$r,"validateDuplicateProductions");te(J$r,"identifyProductionForDuplicates");te(fht,"getExtraProductionArgument");Upi=class extends OY{static{te(this,"OccurrenceValidationCollector")}constructor(){super(...arguments);this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};te(eUr,"validateRuleDoesNotAlreadyExist");te(tUr,"validateRuleIsOverridden");te(pht,"validateNoLeftRecursion");te(dse,"getFirstNoneTerminal");ght=class extends OY{static{te(this,"OrCollector")}constructor(){super(...arguments);this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};te(rUr,"validateEmptyOrAlternative");te(nUr,"validateAmbiguousAlternationAlternatives");Gpi=class extends OY{static{te(this,"RepetitionCollector")}constructor(){super(...arguments);this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}};te(iUr,"validateTooManyAlts");te(aUr,"validateSomeNonEmptyLookaheadPath");te(sUr,"checkAlternativesAmbiguities");te(oUr,"checkPrefixAlternativesAmbiguities");te(lUr,"checkTerminalAndNoneTerminalsNameSpace");te(cUr,"resolveGrammar");te(uUr,"validateGrammar");gUr=[hUr,dUr,fUr,pUr];Object.freeze(gUr);te(Rse,"isRecognitionException");F4e=class extends Error{static{te(this,"RecognitionException")}constructor(e,r){super(e);if(this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}},mUr=class extends F4e{static{te(this,"MismatchedTokenException")}constructor(e,r,i){super(e,r);this.previousToken=i,this.name=hUr}},zpi=class extends F4e{static{te(this,"NoViableAltException")}constructor(e,r,i){super(e,r);this.previousToken=i,this.name=dUr}},Vpi=class extends F4e{static{te(this,"NotAllInputParsedException")}constructor(e,r){super(e,r);this.name=pUr}},Hpi=class extends F4e{static{te(this,"EarlyExitException")}constructor(e,r,i){super(e,r);this.previousToken=i,this.name=fUr}},slt={},qpi=class extends Error{static{te(this,"InRuleRecoveryException")}constructor(e){super(e);this.name=bUr}},Ypi=class{static{te(this,"Recoverable")}initRecoverable(e){if(this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,"recoveryEnabled")?e.recoveryEnabled:CI.recoveryEnabled,this.recoveryEnabled)this.attemptInRepetitionRecovery=yUr}getTokenToInsert(e){let r=M4e(e,"",-1,-1,-1,-1,-1,-1);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,i,a){let o=this.findReSyncTokenType(),l=this.exportLexerState(),h=[],d=!1,p=this.LA_FAST(1),m=this.LA_FAST(1),y=te(()=>{let v=this.LA(0),w=this.errorMessageProvider.buildMismatchTokenMessage({expected:a,actual:p,previous:v,ruleName:this.getCurrRuleFullName()}),T=new mUr(w,p,this.LA(0));T.resyncedTokens=h.slice(0,-1),this.SAVE_ERROR(T)},"generateErrorMessage");while(!d)if(this.tokenMatcher(m,a)){y();return}else if(i.call(this)){y(),e.apply(this,r);return}else if(this.tokenMatcher(m,o))d=!0;else m=this.SKIP_TOKEN(),this.addToResyncTokens(m,h);this.importLexerState(l)}shouldInRepetitionRecoveryBeTried(e,r,i){if(i===!1)return!1;if(this.tokenMatcher(this.LA_FAST(1),e))return!1;if(this.isBackTracking())return!1;if(this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))return!1;return!0}getNextPossibleTokenTypes(e){let r=e.ruleStack[0],a=this.getGAstProductions()[r];return new Ppi(a,e).startWalking()}getFollowsForInRuleRecovery(e,r){let i=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(i)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let i=this.SKIP_TOKEN();return this.consumeToken(),i}throw new qpi("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(r.length===0)return!1;let i=this.LA_FAST(1);return r.find((o)=>this.tokenMatcher(i,o))!==void 0}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e))return!1;return this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let r=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(r).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),r=this.LA_FAST(1),i=2;while(!0){let a=e.find((o)=>D4e(r,o));if(a!==void 0)return a;r=this.LA(i),i++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return slt;let e=this.currRuleShortName,r=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(i)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK,i=this.RULE_STACK_IDX+1,a=Array(i);for(let o=0;othis.getFollowSetFromFollowKey(r)).flat()}getFollowSetFromFollowKey(e){if(e===slt)return[xI];let r=e.ruleName+e.idxInCallingRule+r$r+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){if(!this.tokenMatcher(e,xI))r.push(e);return r}reSyncTo(e){let r=[],i=this.LA_FAST(1);while(this.tokenMatcher(i,e)===!1)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,r);return r.slice(0,-1)}attemptInRepetitionRecovery(e,r,i,a,o,l,h){}getCurrentGrammarPath(e,r){let i=this.getHumanReadableRuleStack(),a=this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1);return{ruleStack:i,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,r=Array(e);for(let i=0;ipht(r,r,QB))}validateEmptyOrAlternatives(e){return e.flatMap((r)=>rUr(r,QB))}validateAmbiguousAlternationAlternatives(e,r){return e.flatMap((i)=>nUr(i,r,QB))}validateSomeNonEmptyLookaheadPath(e,r){return aUr(e,r,QB)}buildLookaheadForAlternation(e){return V$r(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,q$r)}buildLookaheadForOptional(e){return H$r(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,B4e(e.prodType),Y$r)}},Wpi=class{static{te(this,"LooksAhead")}initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:CI.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,"maxLookahead")?e.maxLookahead:CI.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,"lookaheadStrategy")?e.lookaheadStrategy:new mht({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach((r)=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:i,repetition:a,option:o,repetitionMandatory:l,repetitionMandatoryWithSeparator:h,repetitionWithSeparator:d}=EUr(r);i.forEach((p)=>{let m=p.idx===0?"":p.idx;this.TRACE_INIT(`${UC(p)}${m}`,()=>{let y=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:p.idx,rule:r,maxLookahead:p.maxLookahead||this.maxLookahead,hasPredicates:p.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[r.name],vUr|p.idx,y)})}),a.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Yct,"Repetition",p.maxLookahead,UC(p))}),o.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,_Ur,"Option",p.maxLookahead,UC(p))}),l.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Wct,"RepetitionMandatory",p.maxLookahead,UC(p))}),h.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,vCe,"RepetitionMandatoryWithSeparator",p.maxLookahead,UC(p))}),d.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,jct,"RepetitionWithSeparator",p.maxLookahead,UC(p))})})})}computeLookaheadFunc(e,r,i,a,o,l){this.TRACE_INIT(`${l}${r===0?"":r}`,()=>{let h=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a});this.setLaFuncCache(this.fullRuleNameToShort[e.name],i|r,h)})}setLaFuncCache(e,r,i){let a=this.lookAheadFuncsCache[e];if(a===void 0)a=[],this.lookAheadFuncsCache[e]=a;a[r]=i}},jpi=class extends OY{static{te(this,"DslMethodsCollectorVisitor")}constructor(){super(...arguments);this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}},Pxe=new jpi;te(EUr,"collectMethods");te(Kct,"setNodeLocationOnlyOffset");te(Xct,"setNodeLocationFull");te(wUr,"addTerminalToCst");te(SUr,"addNoneTerminalToCst");te(bht,"defineNameProp");te(TUr,"defaultVisit");te(xUr,"createBaseSemanticVisitorConstructor");te(CUr,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Qct||(Qct={}));te(kUr,"validateVisitor");te(AUr,"validateMissingCstMethods");Xpi=class{static{te(this,"TreeBuilder")}initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,"nodeLocationTracking")?e.nodeLocationTracking:CI.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=Xct,this.setNodeLocationFromNode=Xct,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular;else if(/onlyOffset/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=Kct,this.setNodeLocationFromNode=Kct,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular;else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let r=this.LA_FAST(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset,i.endLine=r.endLine,i.endColumn=r.endColumn;else i.startOffset=-1,i.startLine=-1,i.startColumn=-1}cstPostRuleOnlyOffset(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset;else i.startOffset=-1}cstPostTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];wUr(i,r,e),this.setNodeLocationFromToken(i.location,r)}cstPostNonTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];SUr(i,r,e),this.setNodeLocationFromNode(i.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=xUr(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=CUr(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}},Qpi=class{static{te(this,"LexerAdapter")}initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){if(this.currIdx<=this.tokVectorLength-2)return this.consumeToken(),this.LA_FAST(1);else return TY}LA_FAST(e){let r=this.currIdx+e;return this.tokVector[r]}LA(e){let r=this.currIdx+e;if(r<0||this.tokVectorLength<=r)return TY;else return this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}},Zpi=class{static{te(this,"RecognizerApi")}ACTION(e){return e.call(this)}consume(e,r,i){return this.consumeInternal(r,e,i)}subrule(e,r,i){return this.subruleInternal(r,e,i)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,i=$Ce){if(this.definedRulesNames.includes(e)){let l={message:QB.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:Cv.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(l)}this.definedRulesNames.push(e);let a=this.defineRule(e,r,i);return this[e]=a,a}OVERRIDE_RULE(e,r,i=$Ce){let a=tUr(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);let o=this.defineRule(e,r,i);return this[e]=o,o}BACKTRACK(e,r){var i;let a=(i=e.coreRule)!==null&&i!==void 0?i:e;return function(){this.isBackTrackingStack.push(1);let o=this.saveRecogState();try{return a.apply(this,r),!0}catch(l){if(Rse(l))return!1;else throw l}finally{this.reloadRecogState(o),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return XFr(Object.values(this.gastProductionsCache))}},Jpi=class{static{te(this,"RecognizerEngine")}initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=Ase,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 For Further details.`);if(Array.isArray(e)){if(e.length===0)throw Error(`A Token Vocabulary cannot be empty. Note that the first argument for the parser constructor is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset==="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 - For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((o,l)=>(o[l.name]=l,o),{});else if(Object.hasOwn(e,"modes")&&Object.values(e.modes).flat().every(L$r)){let o=Object.values(e.modes).flat(),l=[...new Set(o)];this.tokensMap=l.reduce((h,d)=>(h[d.name]=d,h),{})}else if(typeof e==="object"&&e!==null)this.tokensMap=Object.assign({},e);else throw Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=wI;let a=(Object.hasOwn(e,"modes")?Object.values(e.modes).flat():Object.values(e)).every((o)=>{var l;return((l=o.categoryMatches)===null||l===void 0?void 0:l.length)==0});this.tokenMatcher=a?xse:OY,NY(Object.values(this.tokensMap))}defineRule(e,r,i){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' -Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let a=Object.hasOwn(i,"resyncEnabled")?i.resyncEnabled:PCe.resyncEnabled,o=Object.hasOwn(i,"recoveryValueFunc")?i.recoveryValueFunc:PCe.recoveryValueFunc,l=this.ruleShortNameIdx++;this.shortRuleNameToFull[l]=e,this.fullRuleNameToShort[e]=l;let h;if(this.outputCst===!0)h=ee(function(...y){try{this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y);let E=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(E),E}catch(E){return this.invokeRuleCatch(E,a,o)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry");else h=ee(function(...y){try{return this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y)}catch(E){return this.invokeRuleCatch(E,a,o)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst");return Object.assign(ee(function(...y){this.onBeforeParse(e);try{return h.apply(this,y)}finally{this.onAfterParse(e)}},"rootRule"),{ruleName:e,originalGrammarAction:r,coreRule:h})}invokeRuleCatch(e,r,i){let a=this.RULE_STACK_IDX===0,o=r&&!this.isBackTracking()&&this.recoveryEnabled;if(Cse(e)){let l=e;if(o){let h=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(h))if(l.resyncedTokens=this.reSyncTo(h),this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return i(e);else{if(this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,l.partialCstResult=d}throw l}}else if(a)return this.moveToTerminatedState(),i(e);else throw l}else throw e}optionInternal(e,r){let i=gUr|r;return this.optionInternalLogic(e,r,i)}optionInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof e!=="function"){o=e.DEF;let l=e.GATE;if(l!==void 0){let h=a;a=ee(()=>l.call(this)&&h.call(this),"lookAheadFunc")}}else o=e;if(a.call(this)===!0)return o.call(this);return}atLeastOneInternal(e,r){let i=Hct|e;return this.atLeastOneInternalLogic(e,r,i)}atLeastOneInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let l=r.GATE;if(l!==void 0){let h=a;a=ee(()=>l.call(this)&&h.call(this),"lookAheadFunc")}}else o=r;if(a.call(this)===!0){let l=this.doSingleRepetition(o);while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(e,sp.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,Hct,e,Npi)}atLeastOneSepFirstInternal(e,r){let i=mCe|e;this.atLeastOneSepFirstInternalLogic(e,r,i)}atLeastOneSepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=ee(()=>this.tokenMatcher(this.LA_FAST(1),o),"separatorLookAheadFunc");while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,$Pr],h,mCe,e,$Pr)}else throw this.raiseEarlyExitException(e,sp.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let i=Vct|e;return this.manyInternalLogic(e,r,i)}manyInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let h=r.GATE;if(h!==void 0){let d=a;a=ee(()=>h.call(this)&&d.call(this),"lookaheadFunction")}}else o=r;let l=!0;while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,Vct,e,Opi,l)}manySepFirstInternal(e,r){let i=qct|e;this.manySepFirstInternalLogic(e,r,i)}manySepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=ee(()=>this.tokenMatcher(this.LA_FAST(1),o),"separatorLookAheadFunc");while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,FPr],h,qct,e,FPr)}}repetitionSepSecondInternal(e,r,i,a,o){while(i())this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,a,o],i,mCe,e,o)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){let i=pUr|r,a=Array.isArray(e)?e:e.DEF,l=this.currRuleLookaheadFuncs[i].call(this,a);if(l!==void 0)return a[l].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName];this.cstFinallyStateUpdate()}subruleInternal(e,r,i){let a;try{let o=i!==void 0?i.ARGS:void 0;return this.subruleIdx=r,a=e.coreRule.apply(this,o),this.cstPostNonTerminal(a,i!==void 0&&i.LABEL!==void 0?i.LABEL:e.ruleName),a}catch(o){throw this.subruleInternalError(o,i,e.ruleName)}}subruleInternalError(e,r,i){if(Cse(e)&&e.partialCstResult!==void 0)this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:i),delete e.partialCstResult;throw e}consumeInternal(e,r,i){let a;try{let o=this.LA_FAST(1);if(this.tokenMatcher(o,e)===!0)this.consumeToken(),a=o;else this.consumeInternalError(e,o,i)}catch(o){a=this.consumeInternalRecovery(e,r,o)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:e.name,a),a}consumeInternalError(e,r,i){let a,o=this.LA(0);if(i!==void 0&&i.ERR_MSG)a=i.ERR_MSG;else a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:o,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new hUr(a,r,o))}consumeInternalRecovery(e,r,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){let a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(o){if(o.name===dUr)throw i;else throw o}}else throw i}saveRecogState(){let e=this.errors,r=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let r=e.RULE_STACK;for(let i=0;i=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]}ruleInvocationStateUpdate(e,r,i){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=i,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),wI)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let r=0;r{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(i,a){return this.consumeInternalRecord(i,e,a)},this[`SUBRULE${r}`]=function(i,a){return this.subruleInternalRecord(i,e,a)},this[`OPTION${r}`]=function(i){return this.optionInternalRecord(i,e)},this[`OR${r}`]=function(i){return this.orInternalRecord(i,e)},this[`MANY${r}`]=function(i){this.manyInternalRecord(e,i)},this[`MANY_SEP${r}`]=function(i){this.manySepFirstInternalRecord(e,i)},this[`AT_LEAST_ONE${r}`]=function(i){this.atLeastOneInternalRecord(e,i)},this[`AT_LEAST_ONE_SEP${r}`]=function(i){this.atLeastOneSepFirstInternalRecord(e,i)}}this.consume=function(e,r,i){return this.consumeInternalRecord(r,e,i)},this.subrule=function(e,r,i){return this.subruleInternalRecord(r,e,i)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let i=r>0?r:"";delete e[`CONSUME${i}`],delete e[`SUBRULE${i}`],delete e[`OPTION${i}`],delete e[`OR${i}`],delete e[`MANY${i}`],delete e[`MANY_SEP${i}`],delete e[`AT_LEAST_ONE${i}`],delete e[`AT_LEAST_ONE_SEP${i}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return EY}topLevelRuleRecord(e,r){try{let i=new kY({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),r.call(this),this.recordingProdStack.pop(),i}catch(i){if(i.KNOWN_RECORDER_ERROR!==!0)try{i.message=i.message+` + For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((o,l)=>(o[l.name]=l,o),{});else if(Object.hasOwn(e,"modes")&&Object.values(e.modes).flat().every(F$r)){let o=Object.values(e.modes).flat(),l=[...new Set(o)];this.tokensMap=l.reduce((h,d)=>(h[d.name]=d,h),{})}else if(typeof e==="object"&&e!==null)this.tokensMap=Object.assign({},e);else throw Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=xI;let a=(Object.hasOwn(e,"modes")?Object.values(e.modes).flat():Object.values(e)).every((o)=>{var l;return((l=o.categoryMatches)===null||l===void 0?void 0:l.length)==0});this.tokenMatcher=a?Ase:MY,DY(Object.values(this.tokensMap))}defineRule(e,r,i){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let a=Object.hasOwn(i,"resyncEnabled")?i.resyncEnabled:$Ce.resyncEnabled,o=Object.hasOwn(i,"recoveryValueFunc")?i.recoveryValueFunc:$Ce.recoveryValueFunc,l=this.ruleShortNameIdx++;this.shortRuleNameToFull[l]=e,this.fullRuleNameToShort[e]=l;let h;if(this.outputCst===!0)h=te(function(...y){try{this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y);let v=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(v),v}catch(v){return this.invokeRuleCatch(v,a,o)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTry");else h=te(function(...y){try{return this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y)}catch(v){return this.invokeRuleCatch(v,a,o)}finally{this.ruleFinallyStateUpdate()}},"invokeRuleWithTryCst");return Object.assign(te(function(...y){this.onBeforeParse(e);try{return h.apply(this,y)}finally{this.onAfterParse(e)}},"rootRule"),{ruleName:e,originalGrammarAction:r,coreRule:h})}invokeRuleCatch(e,r,i){let a=this.RULE_STACK_IDX===0,o=r&&!this.isBackTracking()&&this.recoveryEnabled;if(Rse(e)){let l=e;if(o){let h=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(h))if(l.resyncedTokens=this.reSyncTo(h),this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return i(e);else{if(this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,l.partialCstResult=d}throw l}}else if(a)return this.moveToTerminatedState(),i(e);else throw l}else throw e}optionInternal(e,r){let i=_Ur|r;return this.optionInternalLogic(e,r,i)}optionInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof e!=="function"){o=e.DEF;let l=e.GATE;if(l!==void 0){let h=a;a=te(()=>l.call(this)&&h.call(this),"lookAheadFunc")}}else o=e;if(a.call(this)===!0)return o.call(this);return}atLeastOneInternal(e,r){let i=Wct|e;return this.atLeastOneInternalLogic(e,r,i)}atLeastOneInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let l=r.GATE;if(l!==void 0){let h=a;a=te(()=>l.call(this)&&h.call(this),"lookAheadFunc")}}else o=r;if(a.call(this)===!0){let l=this.doSingleRepetition(o);while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(e,sp.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,Wct,e,Fpi)}atLeastOneSepFirstInternal(e,r){let i=vCe|e;this.atLeastOneSepFirstInternalLogic(e,r,i)}atLeastOneSepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=te(()=>this.tokenMatcher(this.LA_FAST(1),o),"separatorLookAheadFunc");while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,HPr],h,vCe,e,HPr)}else throw this.raiseEarlyExitException(e,sp.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let i=Yct|e;return this.manyInternalLogic(e,r,i)}manyInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let h=r.GATE;if(h!==void 0){let d=a;a=te(()=>h.call(this)&&d.call(this),"lookaheadFunction")}}else o=r;let l=!0;while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,Yct,e,Bpi,l)}manySepFirstInternal(e,r){let i=jct|e;this.manySepFirstInternalLogic(e,r,i)}manySepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=te(()=>this.tokenMatcher(this.LA_FAST(1),o),"separatorLookAheadFunc");while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,VPr],h,jct,e,VPr)}}repetitionSepSecondInternal(e,r,i,a,o){while(i())this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,a,o],i,vCe,e,o)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){let i=vUr|r,a=Array.isArray(e)?e:e.DEF,l=this.currRuleLookaheadFuncs[i].call(this,a);if(l!==void 0)return a[l].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName];this.cstFinallyStateUpdate()}subruleInternal(e,r,i){let a;try{let o=i!==void 0?i.ARGS:void 0;return this.subruleIdx=r,a=e.coreRule.apply(this,o),this.cstPostNonTerminal(a,i!==void 0&&i.LABEL!==void 0?i.LABEL:e.ruleName),a}catch(o){throw this.subruleInternalError(o,i,e.ruleName)}}subruleInternalError(e,r,i){if(Rse(e)&&e.partialCstResult!==void 0)this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:i),delete e.partialCstResult;throw e}consumeInternal(e,r,i){let a;try{let o=this.LA_FAST(1);if(this.tokenMatcher(o,e)===!0)this.consumeToken(),a=o;else this.consumeInternalError(e,o,i)}catch(o){a=this.consumeInternalRecovery(e,r,o)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:e.name,a),a}consumeInternalError(e,r,i){let a,o=this.LA(0);if(i!==void 0&&i.ERR_MSG)a=i.ERR_MSG;else a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:o,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new mUr(a,r,o))}consumeInternalRecovery(e,r,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){let a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(o){if(o.name===bUr)throw i;else throw o}}else throw i}saveRecogState(){let e=this.errors,r=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let r=e.RULE_STACK;for(let i=0;i=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]}ruleInvocationStateUpdate(e,r,i){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=i,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),xI)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let r=0;r{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(i,a){return this.consumeInternalRecord(i,e,a)},this[`SUBRULE${r}`]=function(i,a){return this.subruleInternalRecord(i,e,a)},this[`OPTION${r}`]=function(i){return this.optionInternalRecord(i,e)},this[`OR${r}`]=function(i){return this.orInternalRecord(i,e)},this[`MANY${r}`]=function(i){this.manyInternalRecord(e,i)},this[`MANY_SEP${r}`]=function(i){this.manySepFirstInternalRecord(e,i)},this[`AT_LEAST_ONE${r}`]=function(i){this.atLeastOneInternalRecord(e,i)},this[`AT_LEAST_ONE_SEP${r}`]=function(i){this.atLeastOneSepFirstInternalRecord(e,i)}}this.consume=function(e,r,i){return this.consumeInternalRecord(r,e,i)},this.subrule=function(e,r,i){return this.subruleInternalRecord(r,e,i)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let i=r>0?r:"";delete e[`CONSUME${i}`],delete e[`SUBRULE${i}`],delete e[`OPTION${i}`],delete e[`OR${i}`],delete e[`MANY${i}`],delete e[`MANY_SEP${i}`],delete e[`AT_LEAST_ONE${i}`],delete e[`AT_LEAST_ONE_SEP${i}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return TY}topLevelRuleRecord(e,r){try{let i=new IY({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),r.call(this),this.recordingProdStack.pop(),i}catch(i){if(i.KNOWN_RECORDER_ERROR!==!0)try{i.message=i.message+` This error was thrown during the "grammar recording phase" For more info see: - https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(a){throw i}throw i}}optionInternalRecord(e,r){return uY.call(this,eb,e,r)}atLeastOneInternalRecord(e,r){uY.call(this,nw,r,e)}atLeastOneSepFirstInternalRecord(e,r){uY.call(this,iw,r,e,UPr)}manyInternalRecord(e,r){uY.call(this,qp,r,e)}manySepFirstInternalRecord(e,r){uY.call(this,u2,r,e,UPr)}orInternalRecord(e,r){return CUr.call(this,e,r)}subruleInternalRecord(e,r,i){if(kse(r),!e||!Object.hasOwn(e,"ruleName")){let h=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}let a=this.recordingProdStack.at(-1),o=e.ruleName,l=new xv({idx:r,nonTerminalName:o,label:i===null||i===void 0?void 0:i.LABEL,referencedRule:void 0});return a.definition.push(l),this.outputCst?Kpi:P4e}consumeInternalRecord(e,r,i){if(kse(r),!aht(e)){let l=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let a=this.recordingProdStack.at(-1),o=new Ud({idx:r,terminalType:e,label:i===null||i===void 0?void 0:i.LABEL});return a.definition.push(o),xUr}};ee(uY,"recordProd");ee(CUr,"recordOrProd");ee(Kct,"getIdxSuffix");ee(kse,"assertMethodIdxIsValid");Qpi=class{static{ee(this,"PerformanceTracer")}initPerformanceTracer(e){if(Object.hasOwn(e,"traceInitPerf")){let r=e.traceInitPerf,i=typeof r==="number";this.traceInitMaxIdent=i?r:1/0,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=SI.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let i=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${e}>`);let{time:a,value:o}=Jut(r),l=a>10?console.warn:console.log;if(this.traceInitIndent time: ${a}ms`);return this.traceInitIndent--,o}else return r()}};ee(kUr,"applyMixins");EY=O4e(wI,"",-1,-1,-1,-1,-1,-1);Object.freeze(EY);SI=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:dY,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),PCe=Object.freeze({recoveryValueFunc:ee(()=>{return},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Cv||(Cv={}));ee(Xct,"EMPTY_ALT");ght=class e{static{ee(this,"Parser")}static performSelfAnalysis(r){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let r;this.selfAnalysisDone=!0;let i=this.className;this.TRACE_INIT("toFastProps",()=>{eht(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach((o)=>{let h=this[o].originalGrammarAction,d;this.TRACE_INIT(`${o} Rule`,()=>{d=this.topLevelRuleRecord(o,h)}),this.gastProductionsCache[o]=d})}finally{this.disableRecording()}});let a=[];if(this.TRACE_INIT("Grammar Resolving",()=>{a=iUr({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(a)}),this.TRACE_INIT("Grammar Validations",()=>{if(a.length===0&&this.skipValidations===!1){let o=aUr({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:KB,grammarName:i}),l=q$r({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:i});this.definitionErrors=this.definitionErrors.concat(o,l)}}),this.definitionErrors.length===0){if(this.recoveryEnabled)this.TRACE_INIT("computeAllProdsFollows",()=>{let o=ZFr(Object.values(this.gastProductionsCache));this.resyncFollows=o});this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var o,l;(l=(o=this.lookaheadStrategy).initialize)===null||l===void 0||l.call(o,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})}if(!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw r=this.definitionErrors.map((o)=>o.message),Error(`Parser Definition Errors detected: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(a){throw i}throw i}}optionInternalRecord(e,r){return fY.call(this,eb,e,r)}atLeastOneInternalRecord(e,r){fY.call(this,nw,r,e)}atLeastOneSepFirstInternalRecord(e,r){fY.call(this,iw,r,e,qPr)}manyInternalRecord(e,r){fY.call(this,qp,r,e)}manySepFirstInternalRecord(e,r){fY.call(this,u2,r,e,qPr)}orInternalRecord(e,r){return OUr.call(this,e,r)}subruleInternalRecord(e,r,i){if(Ise(r),!e||!Object.hasOwn(e,"ruleName")){let h=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}let a=this.recordingProdStack.at(-1),o=e.ruleName,l=new xv({idx:r,nonTerminalName:o,label:i===null||i===void 0?void 0:i.LABEL,referencedRule:void 0});return a.definition.push(l),this.outputCst?t0i:$4e}consumeInternalRecord(e,r,i){if(Ise(r),!lht(e)){let l=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let a=this.recordingProdStack.at(-1),o=new Ud({idx:r,terminalType:e,label:i===null||i===void 0?void 0:i.LABEL});return a.definition.push(o),IUr}};te(fY,"recordProd");te(OUr,"recordOrProd");te(Zct,"getIdxSuffix");te(Ise,"assertMethodIdxIsValid");n0i=class{static{te(this,"PerformanceTracer")}initPerformanceTracer(e){if(Object.hasOwn(e,"traceInitPerf")){let r=e.traceInitPerf,i=typeof r==="number";this.traceInitMaxIdent=i?r:1/0,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=CI.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let i=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${e}>`);let{time:a,value:o}=rht(r),l=a>10?console.warn:console.log;if(this.traceInitIndent time: ${a}ms`);return this.traceInitIndent--,o}else return r()}};te(NUr,"applyMixins");TY=M4e(xI,"",-1,-1,-1,-1,-1,-1);Object.freeze(TY);CI=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:gY,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),$Ce=Object.freeze({recoveryValueFunc:te(()=>{return},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(Cv||(Cv={}));te(Jct,"EMPTY_ALT");yht=class e{static{te(this,"Parser")}static performSelfAnalysis(r){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let r;this.selfAnalysisDone=!0;let i=this.className;this.TRACE_INIT("toFastProps",()=>{nht(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach((o)=>{let h=this[o].originalGrammarAction,d;this.TRACE_INIT(`${o} Rule`,()=>{d=this.topLevelRuleRecord(o,h)}),this.gastProductionsCache[o]=d})}finally{this.disableRecording()}});let a=[];if(this.TRACE_INIT("Grammar Resolving",()=>{a=cUr({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(a)}),this.TRACE_INIT("Grammar Validations",()=>{if(a.length===0&&this.skipValidations===!1){let o=uUr({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:QB,grammarName:i}),l=X$r({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:i});this.definitionErrors=this.definitionErrors.concat(o,l)}}),this.definitionErrors.length===0){if(this.recoveryEnabled)this.TRACE_INIT("computeAllProdsFollows",()=>{let o=n$r(Object.values(this.gastProductionsCache));this.resyncFollows=o});this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var o,l;(l=(o=this.lookaheadStrategy).initialize)===null||l===void 0||l.call(o,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})}if(!e.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw r=this.definitionErrors.map((o)=>o.message),Error(`Parser Definition Errors detected: ${r.join(` ------------------------------- `)}`)})}constructor(r,i){this.definitionErrors=[],this.selfAnalysisDone=!1;let a=this;if(a.initErrorHandler(i),a.initLexerAdapter(),a.initLooksAhead(i),a.initRecognizerEngine(r,i),a.initRecoverable(i),a.initTreeBuilder(i),a.initGastRecorder(i),a.initPerformanceTracer(i),Object.hasOwn(i,"ignoredIssues"))throw Error(`The IParserConfig property has been deprecated. Please use the flag on the relevant DSL method instead. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES - For further details.`);this.skipValidations=Object.hasOwn(i,"skipValidations")?i.skipValidations:SI.skipValidations}};ght.DEFER_DEFINITION_ERRORS_HANDLING=!1;kUr(ght,[Upi,Gpi,Hpi,qpi,Wpi,Ypi,jpi,Xpi,Qpi]);Zpi=class extends ght{static{ee(this,"EmbeddedActionsParser")}constructor(e,r=SI){let i=Object.assign({},r);i.outputCst=!1;super(e,i)}};ee(AUr,"arrayMap");RUr=AUr;ee(IUr,"listCacheClear");Jpi=IUr;ee(OUr,"eq");NUr=OUr;ee(LUr,"assocIndexOf");B4e=LUr,e0i=Array.prototype,t0i=e0i.splice;ee(MUr,"listCacheDelete");r0i=MUr;ee(DUr,"listCacheGet");n0i=DUr;ee(PUr,"listCacheHas");i0i=PUr;ee(BUr,"listCacheSet");a0i=BUr;ee(iF,"ListCache");iF.prototype.clear=Jpi;iF.prototype.delete=r0i;iF.prototype.get=n0i;iF.prototype.has=i0i;iF.prototype.set=a0i;F4e=iF;ee(FUr,"stackClear");s0i=FUr;ee($Ur,"stackDelete");o0i=$Ur;ee(UUr,"stackGet");l0i=UUr;ee(GUr,"stackHas");c0i=GUr,u0i=typeof global=="object"&&global&&global.Object===Object&&global,zUr=u0i,h0i=typeof self=="object"&&self&&self.Object===Object&&self,d0i=zUr||h0i||Function("return this")(),TI=d0i,f0i=TI.Symbol,K3=f0i,VUr=Object.prototype,p0i=VUr.hasOwnProperty,g0i=VUr.toString,Fae=K3?K3.toStringTag:void 0;ee(HUr,"getRawTag");m0i=HUr,b0i=Object.prototype,y0i=b0i.toString;ee(qUr,"objectToString");v0i=qUr,zPr=K3?K3.toStringTag:void 0;ee(YUr,"baseGetTag");MY=YUr;ee(WUr,"isObject");mht=WUr;ee(jUr,"isFunction");KUr=jUr,C0i=TI["__core-js_shared__"],ilt=C0i,VPr=function(){var e=/[^.]+$/.exec(ilt&&ilt.keys&&ilt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();ee(XUr,"isMasked");k0i=XUr,A0i=Function.prototype,R0i=A0i.toString;ee(QUr,"toSource");aF=QUr,I0i=/[\\^$.*+?()[\]{}|]/g,O0i=/^\[object .+?Constructor\]$/,N0i=Function.prototype,L0i=Object.prototype,M0i=N0i.toString,D0i=L0i.hasOwnProperty,P0i=RegExp("^"+M0i.call(D0i).replace(I0i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");ee(ZUr,"baseIsNative");B0i=ZUr;ee(JUr,"getValue");F0i=JUr;ee(eGr,"getNative");DY=eGr,$0i=DY(TI,"Map"),Ase=$0i,U0i=DY(Object,"create"),Rse=U0i;ee(tGr,"hashClear");G0i=tGr;ee(rGr,"hashDelete");z0i=rGr,H0i=Object.prototype,q0i=H0i.hasOwnProperty;ee(nGr,"hashGet");Y0i=nGr,W0i=Object.prototype,j0i=W0i.hasOwnProperty;ee(iGr,"hashHas");K0i=iGr;ee(aGr,"hashSet");Q0i=aGr;ee(sF,"Hash");sF.prototype.clear=G0i;sF.prototype.delete=z0i;sF.prototype.get=Y0i;sF.prototype.has=K0i;sF.prototype.set=Q0i;HPr=sF;ee(sGr,"mapCacheClear");Z0i=sGr;ee(oGr,"isKeyable");J0i=oGr;ee(lGr,"getMapData");$4e=lGr;ee(cGr,"mapCacheDelete");egi=cGr;ee(uGr,"mapCacheGet");tgi=uGr;ee(hGr,"mapCacheHas");rgi=hGr;ee(dGr,"mapCacheSet");ngi=dGr;ee(oF,"MapCache");oF.prototype.clear=Z0i;oF.prototype.delete=egi;oF.prototype.get=tgi;oF.prototype.has=rgi;oF.prototype.set=ngi;U4e=oF;ee(fGr,"stackSet");agi=fGr;ee(lF,"Stack");lF.prototype.clear=s0i;lF.prototype.delete=o0i;lF.prototype.get=l0i;lF.prototype.has=c0i;lF.prototype.set=agi;bCe=lF;ee(pGr,"setCacheAdd");ogi=pGr;ee(gGr,"setCacheHas");lgi=gGr;ee(Ise,"SetCache");Ise.prototype.add=Ise.prototype.push=ogi;Ise.prototype.has=lgi;mGr=Ise;ee(bGr,"arraySome");cgi=bGr;ee(yGr,"cacheHas");vGr=yGr;ee(_Gr,"equalArrays");EGr=_Gr,dgi=TI.Uint8Array,qPr=dgi;ee(wGr,"mapToArray");fgi=wGr;ee(SGr,"setToArray");bht=SGr,YPr=K3?K3.prototype:void 0,alt=YPr?YPr.valueOf:void 0;ee(TGr,"equalByTag");kgi=TGr;ee(xGr,"arrayPush");CGr=xGr,Agi=Array.isArray,kv=Agi;ee(kGr,"baseGetAllKeys");Rgi=kGr;ee(AGr,"arrayFilter");RGr=AGr;ee(IGr,"stubArray");Igi=IGr,Ogi=Object.prototype,Ngi=Ogi.propertyIsEnumerable,WPr=Object.getOwnPropertySymbols,Lgi=!WPr?Igi:function(e){if(e==null)return[];return e=Object(e),RGr(WPr(e),function(r){return Ngi.call(e,r)})},Mgi=Lgi;ee(OGr,"baseTimes");Dgi=OGr;ee(NGr,"isObjectLike");wY=NGr;ee(LGr,"baseIsArguments");jPr=LGr,MGr=Object.prototype,Bgi=MGr.hasOwnProperty,Fgi=MGr.propertyIsEnumerable,$gi=jPr(function(){return arguments}())?jPr:function(e){return wY(e)&&Bgi.call(e,"callee")&&!Fgi.call(e,"callee")},G4e=$gi;ee(DGr,"stubFalse");Ugi=DGr,PGr=typeof JB=="object"&&JB&&!JB.nodeType&&JB,KPr=PGr&&typeof G7=="object"&&G7&&!G7.nodeType&&G7,Ggi=KPr&&KPr.exports===PGr,XPr=Ggi?TI.Buffer:void 0,zgi=XPr?XPr.isBuffer:void 0,Vgi=zgi||Ugi,BCe=Vgi,qgi=/^(?:0|[1-9]\d*)$/;ee(BGr,"isIndex");FGr=BGr;ee($Gr,"isLength");yht=$Gr,$d={};$d[lmi]=$d[cmi]=$d[umi]=$d[hmi]=$d[dmi]=$d[fmi]=$d[pmi]=$d[gmi]=$d[mmi]=!0;$d[Wgi]=$d[jgi]=$d[smi]=$d[Kgi]=$d[omi]=$d[Xgi]=$d[Qgi]=$d[Zgi]=$d[Jgi]=$d[emi]=$d[tmi]=$d[rmi]=$d[nmi]=$d[imi]=$d[ami]=!1;ee(UGr,"baseIsTypedArray");bmi=UGr;ee(GGr,"baseUnary");ymi=GGr,zGr=typeof JB=="object"&&JB&&!JB.nodeType&&JB,use=zGr&&typeof G7=="object"&&G7&&!G7.nodeType&&G7,vmi=use&&use.exports===zGr,slt=vmi&&zUr.process,_mi=function(){try{var e=use&&use.require&&use.require("util").types;if(e)return e;return slt&&slt.binding&&slt.binding("util")}catch(r){}}(),QPr=_mi,ZPr=QPr&&QPr.isTypedArray,Emi=ZPr?ymi(ZPr):bmi,vht=Emi,wmi=Object.prototype,Smi=wmi.hasOwnProperty;ee(VGr,"arrayLikeKeys");Tmi=VGr,xmi=Object.prototype;ee(HGr,"isPrototype");qGr=HGr;ee(YGr,"overArg");Cmi=YGr,kmi=Cmi(Object.keys,Object),Ami=kmi,Rmi=Object.prototype,Imi=Rmi.hasOwnProperty;ee(WGr,"baseKeys");jGr=WGr;ee(KGr,"isArrayLike");z4e=KGr;ee(XGr,"keys");_ht=XGr;ee(QGr,"getAllKeys");JPr=QGr,Nmi=Object.prototype,Lmi=Nmi.hasOwnProperty;ee(ZGr,"equalObjects");Mmi=ZGr,Dmi=DY(TI,"DataView"),Qct=Dmi,Pmi=DY(TI,"Promise"),Zct=Pmi,Bmi=DY(TI,"Set"),gY=Bmi,Fmi=DY(TI,"WeakMap"),Jct=Fmi,Umi=aF(Qct),Gmi=aF(Ase),zmi=aF(Zct),Vmi=aF(gY),Hmi=aF(Jct),HB=MY;if(Qct&&HB(new Qct(new ArrayBuffer(1)))!=iBr||Ase&&HB(new Ase)!=eBr||Zct&&HB(Zct.resolve())!=tBr||gY&&HB(new gY)!=rBr||Jct&&HB(new Jct)!=nBr)HB=ee(function(e){var r=MY(e),i=r==$mi?e.constructor:void 0,a=i?aF(i):"";if(a)switch(a){case Umi:return iBr;case Gmi:return eBr;case zmi:return tBr;case Vmi:return rBr;case Hmi:return nBr}return r},"getTag");eut=HB,Ymi=Object.prototype,oBr=Ymi.hasOwnProperty;ee(JGr,"baseIsEqualDeep");Wmi=JGr;ee(Eht,"baseIsEqual");ezr=Eht;ee(tzr,"baseIsMatch");Xmi=tzr;ee(rzr,"isStrictComparable");nzr=rzr;ee(izr,"getMatchData");Qmi=izr;ee(azr,"matchesStrictComparable");szr=azr;ee(ozr,"baseMatches");Zmi=ozr;ee(lzr,"isSymbol");V4e=lzr,e1i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,t1i=/^\w*$/;ee(czr,"isKey");wht=czr;ee(H4e,"memoize");H4e.Cache=U4e;n1i=H4e;ee(uzr,"memoizeCapped");a1i=uzr,s1i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o1i=/\\(\\)?/g,l1i=a1i(function(e){var r=[];if(e.charCodeAt(0)===46)r.push("");return e.replace(s1i,function(i,a,o,l){r.push(o?l.replace(o1i,"$1"):a||i)}),r}),c1i=l1i,lBr=K3?K3.prototype:void 0,cBr=lBr?lBr.toString:void 0;ee(Sht,"baseToString");h1i=Sht;ee(hzr,"toString");d1i=hzr;ee(dzr,"castPath");fzr=dzr;ee(pzr,"toKey");q4e=pzr;ee(gzr,"baseGet");mzr=gzr;ee(bzr,"get");p1i=bzr;ee(yzr,"baseHasIn");g1i=yzr;ee(vzr,"hasPath");m1i=vzr;ee(_zr,"hasIn");b1i=_zr;ee(Ezr,"baseMatchesProperty");_1i=Ezr;ee(wzr,"identity");Tht=wzr;ee(Szr,"baseProperty");E1i=Szr;ee(Tzr,"basePropertyDeep");w1i=Tzr;ee(xzr,"property");S1i=xzr;ee(Czr,"baseIteratee");Y4e=Czr;ee(kzr,"createBaseFor");T1i=kzr,x1i=T1i(),C1i=x1i;ee(Azr,"baseForOwn");k1i=Azr;ee(Rzr,"createBaseEach");A1i=Rzr,R1i=A1i(k1i),W4e=R1i;ee(Izr,"baseMap");I1i=Izr;ee(Ozr,"map");vI=Ozr;ee(Nzr,"baseFilter");O1i=Nzr;ee(Lzr,"filter");N1i=Lzr;ee(tF,"buildATNKey");xht=class{static{ee(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},j4e=class extends xht{static{ee(this,"AtomTransition")}constructor(e,r){super(e);this.tokenType=r}},Bzr=class extends xht{static{ee(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},K4e=class extends xht{static{ee(this,"RuleTransition")}constructor(e,r,i){super(e);this.rule=r,this.followState=i}isEpsilon(){return!0}};ee(Fzr,"createATN");ee($zr,"createRuleStartAndStopATNStates");ee(Cht,"atom");ee(Uzr,"repetition");ee(Gzr,"repetitionSep");ee(zzr,"repetitionMandatory");ee(Vzr,"repetitionMandatorySep");ee(Hzr,"alternation");ee(qzr,"option");ee(W7,"block");ee(kht,"plus");ee(Aht,"star");ee(Yzr,"optional");ee(xI,"defineDecisionState");ee(uF,"makeAlts");ee(Wzr,"getProdType");ee(jzr,"makeBlock");ee(X4e,"tokenRef");ee(Kzr,"ruleRef");ee(Xzr,"buildRuleHandle");ee(M0,"epsilon");ee(um,"newState");ee(Q4e,"addTransition");ee(Qzr,"removeState");FCe={},tut=class{static{ee(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let r=Rht(e);if(!(r in this.map))this.map[r]=this.configs.length,this.configs.push(e)}get elements(){return this.configs}get alts(){return vI(this.configs,(e)=>e.alt)}get key(){let e="";for(let r in this.map)e+=r+":";return e}};ee(Rht,"getATNConfigKey");ee(Zzr,"baseExtremum");F1i=Zzr;ee(Jzr,"baseLt");$1i=Jzr;ee(eVr,"min");U1i=eVr,uBr=K3?K3.isConcatSpreadable:void 0;ee(tVr,"isFlattenable");G1i=tVr;ee(Iht,"baseFlatten");rVr=Iht;ee(nVr,"flatMap");z1i=nVr;ee(iVr,"baseFindIndex");V1i=iVr;ee(aVr,"baseIsNaN");H1i=aVr;ee(sVr,"strictIndexOf");q1i=sVr;ee(oVr,"baseIndexOf");Y1i=oVr;ee(lVr,"arrayIncludes");W1i=lVr;ee(cVr,"arrayIncludesWith");j1i=cVr;ee(uVr,"noop");K1i=uVr,Q1i=!(gY&&1/bht(new gY([,-0]))[1]==X1i)?K1i:function(e){return new gY(e)},Z1i=Q1i;ee(hVr,"baseUniq");ebi=hVr;ee(dVr,"uniqBy");tbi=dVr;ee(fVr,"flatten");rbi=fVr;ee(pVr,"arrayEach");nbi=pVr;ee(gVr,"castFunction");ibi=gVr;ee(mVr,"forEach");olt=mVr,obi=Object.prototype,lbi=obi.hasOwnProperty;ee(bVr,"isEmpty");cbi=bVr;ee(yVr,"arrayReduce");ubi=yVr;ee(vVr,"baseReduce");hbi=vVr;ee(_Vr,"reduce");hBr=_Vr;ee(EVr,"createDFACache");wVr=class{static{ee(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="",r=this.predicates.length;for(let i=0;iconsole.log(a),this.incomplete=(i=e===null||e===void 0?void 0:e.incomplete)!==null&&i!==void 0?i:!1}initialize(e){this.atn=Fzr(e.rules),this.dfas=xVr(this.atn),this.callers=SVr(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:r,rule:i,hasPredicates:a,dynamicTokensEnabled:o}=e,l=this.dfas,h=this.logging,d=this.incomplete,p=tF(i,"Alternation",r),y=this.atn.decisionMap[p].decision,E=vI(Gct({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:i}),(w)=>vI(w,(T)=>T[0]));if(rut(E,!1)&&!o){let w=hBr(E,(T,x,k)=>(olt(x,(A)=>{if(A)T[A.tokenTypeIdx]=k,olt(A.categoryMatches,(R)=>{T[R]=k})}),T),{});if(a)return function(T){var x;let k=this.LA_FAST(1),A=w[k.tokenTypeIdx];if(T!==void 0&&A!==void 0){let R=(x=T[A])===null||x===void 0?void 0:x.GATE;if(R!==void 0&&R.call(this)===!1)return}return A};else return function(){let T=this.LA_FAST(1);return w[T.tokenTypeIdx]}}else if(a)return function(w){let T=new wVr,x=w===void 0?0:w.length;for(let A=0;AvI(T,(x)=>x[0]));if(rut(w)&&w[0][0]&&!o&&!TVr(y,a,p)){let T=w[0],x=rbi(T);if(x.length===1&&cbi(x[0].categoryMatches)){let A=x[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===A}}else{let k=hBr(x,(A,R)=>{if(R!==void 0)A[R.tokenTypeIdx]=!0,olt(R.categoryMatches,(N)=>{A[N]=!0});return A},{});return function(){let A=this.LA_FAST(1);return k[A.tokenTypeIdx]===!0}}}return function(){let T=yCe.call(this,l,E,dBr,h,d);return typeof T==="object"?!1:T===0}}};ee(rut,"isLL1Sequence");ee(SVr,"buildCallers");ee(nut,"firstSet");ee(TVr,"optionalHasFollowConflict");ee(xVr,"initATNSimulator");ee(yCe,"adaptivePredict");ee(CVr,"performLookahead");ee(kVr,"computeLookaheadTarget");ee(AVr,"reportLookaheadAmbiguity");ee(RVr,"buildAmbiguityError");ee(IVr,"getProductionDslName");ee(OVr,"buildAdaptivePredictError");ee(NVr,"getExistingTargetState");ee(LVr,"computeReachSet");ee(MVr,"getReachableTarget");ee(DVr,"getUniqueAlt");ee(Oht,"newDFAState");ee(iut,"addDFAEdge");ee(Nht,"addDFAState");ee(PVr,"computeStartState");ee(Ose,"closure");ee(BVr,"getEpsilonTarget");ee(FVr,"hasConfigInRuleStopState");ee($Vr,"allConfigsInRuleStopStates");ee(UVr,"hasConflictTerminatingPrediction");ee(GVr,"getConflictingAltSets");ee(zVr,"hasConflictingAltSet");ee(VVr,"hasStateAssociatedWithOneAlt");ee(HVr,"getBestGuess");qVr=class{static{ee(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new jVr(e),this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let r=new Lht;return r.grammarSource=e,this.appendChild(this.current,r),this.nodeStack.push(r),r}buildLeafNode(e,r){let i=this.createLeafNode(e,!r);if(r)i.grammarSource=r;return this.appendChild(this.current,i),i}createLeafNode(e,r){return new WVr(e.startOffset,e.image.length,e.startLine-1,e.startColumn-1,e.endLine-1,e.endColumn,e.tokenType,r)}appendChild(e,r){r.container=e,e.content.push(r)}appendChildren(e,r){for(let i of r)i.container=e;if(e.content.length===0)e.content=r.slice();else e.content.push(...r)}insertChildren(e,r,i){for(let a of i)a.container=e;e.content.splice(r,0,...i)}removeNode(e){let r=e.container;if(r){let i=r.content.indexOf(e);if(i>=0)r.content.splice(i,1)}}addHiddenNodes(e){let r=[];for(let o of e)r.push(this.createLeafNode(o,!0));let i=this.current,a=!1;if(i.content.length>0){this.appendChildren(i,r);return}while(i.container){let o=i.container.content.indexOf(i);if(o>0){this.insertChildren(i.container,o,r),a=!0;break}i=i.container}if(!a)this.insertChildren(this.rootNode,0,r)}construct(e){let r=this.current;e.$cstNode=r;let i=this.nodeStack.pop();if(i)if(i.content.length===0)this.removeNode(i);else i.content=i.content.slice()}},YVr=class{static{ee(this,"AbstractCstNode")}constructor(){this.container=void 0,this.grammarSource=void 0}get root(){let e=this;while(e.container)e=e.container;return e}get text(){return this.root.fullText.substring(this.offset,this.end)}},WVr=class extends YVr{static{ee(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get astNode(){let e=this.container;if(!e)throw Error("This node has no associated AST element");return e.astNode}get range(){return{start:{line:this._startLine,character:this._startColumn},end:{line:this._endLine,character:this._endColumn}}}constructor(e,r,i,a,o,l,h,d=!1){super();this._hidden=d,this._offset=qB(e),this._length=qB(r),this._startLine=qB(i),this._startColumn=qB(a),this._endLine=qB(o),this._endColumn=qB(l),this._tokenType=h}};ee(qB,"toSmi");Lht=class extends YVr{static{ee(this,"CompositeCstNodeImpl")}constructor(){super(...arguments);this.content=[],this._astNode=void 0,this._rangeCache=void 0}get astNode(){let e=this;while(e){if(e._astNode)return e._astNode;e=e.container}throw Error("This node has no associated AST element")}set astNode(e){this._astNode=e}get hidden(){return!1}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this._rangeCache;if(e===void 0){let r=this.firstNonHiddenNode,i=this.lastNonHiddenNode;if(r&&i){let{range:a}=r,{range:o}=i;this._rangeCache=e={start:a.start,end:o.end.line=0;e--){let r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},jVr=class extends Lht{static{ee(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super();this._text="",this._text=e??""}},aut=Symbol("Datatype");ee(vCe,"isDataTypeNode");KVr=ee((e)=>e.endsWith(fBr)?e:e+fBr,"withRuleSuffix"),XVr=class{static{ee(this,"AbstractLangiumParser")}constructor(e,r){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let i=this.lexer.definition,a=e.LanguageMetaData.mode==="production";if(e.shared.profilers.LangiumProfiler?.isActive("parsing"))this.wrapper=new bbi(i,{...e.parser.ParserConfig,skipValidations:a,errorMessageProvider:e.parser.ParserErrorMessageProvider},r,e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId));else this.wrapper=new ZVr(i,{...e.parser.ParserConfig,skipValidations:a,errorMessageProvider:e.parser.ParserErrorMessageProvider},r)}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},fbi=class extends XVr{static{ee(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e,!1);this.nodeBuilder=new qVr,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){let i=this.computeRuleType(e),a=void 0;if(wse(e))a=e.name,this.registerPrecedenceMap(e);let o=this.wrapper.DEFINE_RULE(KVr(e.name),this.startImplementation(i,a,r).bind(this));if(this.allRules.set(e.name,o),X3(e)&&e.entry)this.mainRule=o;return o}registerPrecedenceMap(e){let r=e.name,i=new Map;for(let a=0;a0)r=this.construct();if(r===void 0)throw Error("No result from parser");else if(this.stack.length>0)throw Error("Parser stack is not empty after parsing");return this.linkCstNode(r),r}linkCstNode(e){if(o1(e)&&e.$cstNode)e.$cstNode.astNode=e}startImplementation(e,r,i){return(a)=>{let o=!this.isRecording()&&e!==void 0;if(o){let l={$type:e};if(this.stack.push(l),e===aut)l.value="";else if(r!==void 0)l.$infixName=r}return i(a),o?this.construct():void 0}}extractHiddenTokens(e){let r=this.lexerResult.hidden;if(!r.length)return[];let i=e.startOffset;for(let a=0;ai)return r.splice(0,a);return r.splice(0,r.length)}consume(e,r,i){let a=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(a)){let o=this.extractHiddenTokens(a);this.nodeBuilder.addHiddenNodes(o);let l=this.nodeBuilder.buildLeafNode(a,i),{assignment:h,crossRef:d}=this.getAssignment(i),p=this.current;if(h){let m=V7(i)?a.image:this.converter.convert(a.image,l);this.assign(h.operator,h.feature,m,l,d)}else if(vCe(p)){let m=a.image;if(!V7(i))m=this.converter.convert(m,l).toString();p.value+=m}}}isValidToken(e){return!e.isInsertedInRecovery&&kCe(e)}subrule(e,r,i,a,o){let l;if(!this.isRecording()&&!i)l=this.nodeBuilder.buildCompositeNode(a);let h;try{h=this.wrapper.wrapSubrule(e,r,o)}finally{if(!this.isRecording()){if(h===void 0&&!i)h=this.construct();if(h!==void 0&&l&&l.length>0)this.performSubruleAssignment(h,a,l)}}}performSubruleAssignment(e,r,i){let{assignment:a,crossRef:o}=this.getAssignment(r);if(a)this.assign(a.operator,a.feature,e,i,o);else if(!a){let l=this.current;if(vCe(l))l.value+=e.toString();else if(typeof e==="object"&&e){let d=this.assignWithoutOverride(e,l);this.stack.pop(),this.stack.push(d)}}}action(e,r){if(!this.isRecording()){let i=this.current;if(r.feature&&r.operator){i=this.construct(),this.nodeBuilder.removeNode(i.$cstNode);let a=this.nodeBuilder.buildCompositeNode(r);this.nodeBuilder.appendChild(a,i.$cstNode);let o={$type:e};this.stack.push(o),this.assign(r.operator,r.feature,i,i.$cstNode)}else i.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();if(this.nodeBuilder.construct(e),"$infixName"in e)return this.constructInfix(e,this.operatorPrecedence.get(e.$infixName));else if(vCe(e))return this.converter.convert(e.value,e.$cstNode);else XBr(this.astReflection,e);return e}constructInfix(e,r){let i=e.parts;if(!Array.isArray(i)||i.length===0)return;let a=e.operators;if(!Array.isArray(a)||i.length<2)return i[0];let o=0,l=-1;for(let x=0;xl)l=A.precedence,o=x;else if(A.precedence===l){if(!A.rightAssoc)o=x}}let h=a.slice(0,o),d=a.slice(o+1),p=i.slice(0,o+1),m=i.slice(o+1),y={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:p,operators:h},E={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:m,operators:d},w=this.constructInfix(y,r),T=this.constructInfix(E,r);return{$type:e.$type,$cstNode:e.$cstNode,left:w,operator:a[o],right:T}}getAssignment(e){if(!this.assignmentMap.has(e)){let r=$se(e,z7);this.assignmentMap.set(e,{assignment:r,crossRef:r&&Gse(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,i,a,o){let l=this.current,h;if(o==="single"&&typeof i==="string")h=this.linker.buildReference(l,r,a,i);else if(o==="multi"&&typeof i==="string")h=this.linker.buildMultiReference(l,r,a,i);else h=i;switch(this.linkCstNode(h),e){case"=":{l[r]=h;break}case"?=":{l[r]=!0;break}case"+=":{if(!Array.isArray(l[r]))l[r]=[];l[r].push(h)}}}assignWithoutOverride(e,r){for(let[i,a]of Object.entries(r)){let o=e[i];if(o===void 0)e[i]=a;else if(Array.isArray(o)&&Array.isArray(a))a.push(...o),e[i]=a}return e.$cstNode=void 0,e}get definitionErrors(){return this.wrapper.definitionErrors}},pbi=class{static{ee(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return dY.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return dY.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return dY.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return dY.buildEarlyExitMessage(e)}},QVr=class extends pbi{static{ee(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},gbi=class extends XVr{static{ee(this,"LangiumCompletionParser")}constructor(e){super(e,!0);this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){return}parse(e){this.resetState();let r=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){let i=this.wrapper.DEFINE_RULE(KVr(e.name),this.startImplementation(r).bind(this));if(this.allRules.set(e.name,i),e.entry)this.mainRule=i;return i}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return(r)=>{let i=this.keepStackSize();try{e(r)}finally{this.resetStackSize(i)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,i){if(this.wrapper.wrapConsume(e,r),!this.isRecording())this.lastElementStack=[...this.elementStack,i],this.nextTokenIndex=this.currIdx+1}subrule(e,r,i,a,o){this.before(a),this.wrapper.wrapSubrule(e,r,o),this.after(a)}before(e){if(!this.isRecording())this.elementStack.push(e)}after(e){if(!this.isRecording()){let r=this.elementStack.lastIndexOf(e);if(r>=0)this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},mbi={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new QVr},ZVr=class extends Zpi{static{ee(this,"ChevrotainWrapper")}constructor(e,r,i){let a=r&&"maxLookahead"in r;super(e,{...mbi,lookaheadStrategy:a?new fht({maxLookahead:r.maxLookahead}):new dbi({logging:r.skipValidations?()=>{}:void 0,incomplete:i}),...r})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r,i){return this.RULE(e,r,i)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r,void 0)}wrapSubrule(e,r,i){return this.subrule(e,r,{ARGS:[i]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}rule(e){return e.call(this,{})}},bbi=class extends ZVr{static{ee(this,"ProfilerWrapper")}constructor(e,r,i,a){super(e,r,i);this.task=a}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,r,i){this.task.startSubTask(this.ruleName(r));try{return super.subrule(e,r,i)}finally{this.task.stopSubTask(this.ruleName(r))}}};ee(Mht,"createParser");ee(JVr,"buildRules");ee(eHr,"buildInfixRule");ee(Y7,"buildElement");ee(tHr,"buildAction");ee(rHr,"buildRuleCall");ee(nHr,"buildRuleCallPredicate");ee($C,"buildPredicate");ee(iHr,"buildAlternatives");ee(aHr,"buildUnorderedGroup");ee(sHr,"buildGroup");ee(Nse,"getGuardCondition");ee(Dht,"buildCrossReference");ee(oHr,"buildKeyword");ee(Pht,"wrap");ee(Z4e,"getRule");ee(lHr,"getRuleName");ee($Ce,"getToken");ee(cHr,"createCompletionParser");ee(uHr,"createLangiumParser");ee(hHr,"prepareLangiumParser");dHr=class{static{ee(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,r){let i=Ef(Vut(e,!1)),a=this.buildTerminalTokens(i),o=this.buildKeywordTokens(i,a,r);return o.push(...a),o}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Q3).filter((r)=>!r.fragment).map((r)=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){let r=A4e(e),i=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,a={name:e.name,PATTERN:i};if(typeof i==="function")a.LINE_BREAKS=!0;if(e.hidden)a.GROUP=zut(r)?l2.SKIPPED:"hidden";return a}requiresCustomPattern(e){if(e.flags.includes("u")||e.flags.includes("s"))return!0;else return!1}regexPatternFunction(e){let r=new RegExp(e,e.flags+"y");return(i,a)=>(r.lastIndex=a,r.exec(i))}buildKeywordTokens(e,r,i){return e.filter(xY).flatMap((a)=>TY(a).filter(V7)).distinct((a)=>a.value).toArray().sort((a,o)=>o.value.length-a.value.length).map((a)=>this.buildKeywordToken(a,r,Boolean(i?.caseInsensitive)))}buildKeywordToken(e,r,i){let a=this.buildKeywordPattern(e,i),o={name:e.value,PATTERN:a,LONGER_ALT:this.findLongerAlt(e,r)};if(typeof a==="function")o.LINE_BREAKS=!0;return o}buildKeywordPattern(e,r){return r?new RegExp(zse(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((i,a)=>{let o=a?.PATTERN;if(o?.source&&xFr("^"+o.source+"$",e.value))i.push(a);return i},[])}},fHr=class{static{ee(this,"DefaultValueConverter")}convert(e,r){let i=r.grammarSource;if(Gse(i))i=RFr(i);if(H7(i)){let a=i.rule.ref;if(!a)throw Error("This cst node was not parsed by a rule.");return this.runConverter(a,e,r)}return e}runConverter(e,r,i){switch(e.name.toUpperCase()){case"INT":return hI.convertInt(r);case"STRING":return hI.convertString(r);case"ID":return hI.convertID(r)}switch(PFr(e)?.toLowerCase()){case"number":return hI.convertNumber(r);case"boolean":return hI.convertBoolean(r);case"bigint":return hI.convertBigint(r);case"date":return hI.convertDate(r);default:return r}}};(function(e){function r(m){let y="";for(let E=1;E{this.resolve=(i)=>(e(i),this),this.reject=(i)=>(r(i),this)})}},pBr=class e{static{ee(this,"FullTextDocument")}constructor(r,i,a,o){this._uri=r,this._languageId=i,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){let i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content}update(r,i){for(let a of r)if(e.isIncremental(a)){let o=$ht(a.range),l=this.offsetAt(o.start),h=this.offsetAt(o.end);this._content=this._content.substring(0,l)+a.text+this._content.substring(h,this._content.length);let d=Math.max(o.start.line,0),p=Math.max(o.end.line,0),m=this._lineOffsets,y=out(a.text,!1,l);if(p-d===y.length)for(let w=0,T=y.length;wr)o=h;else a=h+1}let l=a-1;return r=this.ensureBeforeEOL(r,i[l]),{line:l,character:r-i[l]}}offsetAt(r){let i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;else if(r.line<0)return 0;let a=i[r.line];if(r.character<=0)return a;let o=r.line+1=i.length){let h=i.length-1;return{start:{line:h,character:0},end:{line:h,character:this._content.length-i[h]}}}else if(r<0)return{start:{line:0,character:0},end:{line:0,character:0}};let a=i[r],o=r+1=i.length)return"";else if(r<0)return"";let a=r+1i&&Fht(this._content.charCodeAt(r-1)))r--;return r}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let i=r;return i!==void 0&&i!==null&&typeof i.text==="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength==="number")}static isFull(r){let i=r;return i!==void 0&&i!==null&&typeof i.text==="string"&&i.range===void 0&&i.rangeLength===void 0}};(function(e){function r(o,l,h,d){return new pBr(o,l,h,d)}ee(r,"create"),e.create=r;function i(o,l,h){if(o instanceof pBr)return o.update(l,h),o;else throw Error("TextDocument.update: document must be created by TextDocument.create")}ee(i,"update"),e.update=i;function a(o,l){let h=o.getText(),d=UCe(l.map(mHr),(y,E)=>{let w=y.range.start.line-E.range.start.line;if(w===0)return y.range.start.character-E.range.start.character;return w}),p=0,m=[];for(let y of d){let E=o.offsetAt(y.range.start);if(Ep)m.push(h.substring(p,E));if(y.newText.length)m.push(y.newText);p=o.offsetAt(y.range.end)}return m.push(h.substr(p)),m.join("")}ee(a,"applyEdits"),e.applyEdits=a})(sut||(sut={}));ee(UCe,"mergeSort");ee(out,"computeLineOffsets");ee(Fht,"isEOL");ee($ht,"getWellformedRange");ee(mHr,"getWellformedEdit");(()=>{var e={975:(Z)=>{function Y(X){if(typeof X!="string")throw TypeError("Path must be a string. Received "+JSON.stringify(X))}ee(Y,"e");function j(X,W){for(var J,z="",ne=0,ie=-1,le=0,se=0;se<=X.length;++se){if(se2){var he=z.lastIndexOf("/");if(he!==z.length-1){he===-1?(z="",ne=0):ne=(z=z.slice(0,he)).length-1-z.lastIndexOf("/"),ie=se,le=0;continue}}else if(z.length===2||z.length===1){z="",ne=0,ie=se,le=0;continue}}W&&(z.length>0?z+="/..":z="..",ne=2)}else z.length>0?z+="/"+X.slice(ie+1,se):z=X.slice(ie+1,se),ne=se-ie-1;ie=se,le=0}else J===46&&le!==-1?++le:le=-1}return z}ee(j,"r");var te={resolve:ee(function(){for(var X,W="",J=!1,z=arguments.length-1;z>=-1&&!J;z--){var ne;z>=0?ne=arguments[z]:(X===void 0&&(X=process.cwd()),ne=X),Y(ne),ne.length!==0&&(W=ne+"/"+W,J=ne.charCodeAt(0)===47)}return W=j(W,!J),J?W.length>0?"/"+W:"/":W.length>0?W:"."},"resolve"),normalize:ee(function(X){if(Y(X),X.length===0)return".";var W=X.charCodeAt(0)===47,J=X.charCodeAt(X.length-1)===47;return(X=j(X,!W)).length!==0||W||(X="."),X.length>0&&J&&(X+="/"),W?"/"+X:X},"normalize"),isAbsolute:ee(function(X){return Y(X),X.length>0&&X.charCodeAt(0)===47},"isAbsolute"),join:ee(function(){if(arguments.length===0)return".";for(var X,W=0;W0&&(X===void 0?X=J:X+="/"+J)}return X===void 0?".":te.normalize(X)},"join"),relative:ee(function(X,W){if(Y(X),Y(W),X===W)return"";if((X=te.resolve(X))===(W=te.resolve(W)))return"";for(var J=1;Jse){if(W.charCodeAt(ie+ye)===47)return W.slice(ie+ye+1);if(ye===0)return W.slice(ie+ye)}else ne>se&&(X.charCodeAt(J+ye)===47?he=ye:ye===0&&(he=0));break}var xe=X.charCodeAt(J+ye);if(xe!==W.charCodeAt(ie+ye))break;xe===47&&(he=ye)}var Ie="";for(ye=J+he+1;ye<=z;++ye)ye!==z&&X.charCodeAt(ye)!==47||(Ie.length===0?Ie+="..":Ie+="/..");return Ie.length>0?Ie+W.slice(ie+he):(ie+=he,W.charCodeAt(ie)===47&&++ie,W.slice(ie))},"relative"),_makeLong:ee(function(X){return X},"_makeLong"),dirname:ee(function(X){if(Y(X),X.length===0)return".";for(var W=X.charCodeAt(0),J=W===47,z=-1,ne=!0,ie=X.length-1;ie>=1;--ie)if((W=X.charCodeAt(ie))===47){if(!ne){z=ie;break}}else ne=!1;return z===-1?J?"/":".":J&&z===1?"//":X.slice(0,z)},"dirname"),basename:ee(function(X,W){if(W!==void 0&&typeof W!="string")throw TypeError('"ext" argument must be a string');Y(X);var J,z=0,ne=-1,ie=!0;if(W!==void 0&&W.length>0&&W.length<=X.length){if(W.length===X.length&&W===X)return"";var le=W.length-1,se=-1;for(J=X.length-1;J>=0;--J){var he=X.charCodeAt(J);if(he===47){if(!ie){z=J+1;break}}else se===-1&&(ie=!1,se=J+1),le>=0&&(he===W.charCodeAt(le)?--le==-1&&(ne=J):(le=-1,ne=se))}return z===ne?ne=se:ne===-1&&(ne=X.length),X.slice(z,ne)}for(J=X.length-1;J>=0;--J)if(X.charCodeAt(J)===47){if(!ie){z=J+1;break}}else ne===-1&&(ie=!1,ne=J+1);return ne===-1?"":X.slice(z,ne)},"basename"),extname:ee(function(X){Y(X);for(var W=-1,J=0,z=-1,ne=!0,ie=0,le=X.length-1;le>=0;--le){var se=X.charCodeAt(le);if(se!==47)z===-1&&(ne=!1,z=le+1),se===46?W===-1?W=le:ie!==1&&(ie=1):W!==-1&&(ie=-1);else if(!ne){J=le+1;break}}return W===-1||z===-1||ie===0||ie===1&&W===z-1&&W===J+1?"":X.slice(W,z)},"extname"),format:ee(function(X){if(X===null||typeof X!="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof X);return function(W,J){var z=J.dir||J.root,ne=J.base||(J.name||"")+(J.ext||"");return z?z===J.root?z+ne:z+"/"+ne:ne}(0,X)},"format"),parse:ee(function(X){Y(X);var W={root:"",dir:"",base:"",ext:"",name:""};if(X.length===0)return W;var J,z=X.charCodeAt(0),ne=z===47;ne?(W.root="/",J=1):J=0;for(var ie=-1,le=0,se=-1,he=!0,ye=X.length-1,xe=0;ye>=J;--ye)if((z=X.charCodeAt(ye))!==47)se===-1&&(he=!1,se=ye+1),z===46?ie===-1?ie=ye:xe!==1&&(xe=1):ie!==-1&&(xe=-1);else if(!he){le=ye+1;break}return ie===-1||se===-1||xe===0||xe===1&&ie===se-1&&ie===le+1?se!==-1&&(W.base=W.name=le===0&&ne?X.slice(1,se):X.slice(le,se)):(le===0&&ne?(W.name=X.slice(1,ie),W.base=X.slice(1,se)):(W.name=X.slice(le,ie),W.base=X.slice(le,se)),W.ext=X.slice(ie,se)),le>0?W.dir=X.slice(0,le-1):ne&&(W.dir="/"),W},"parse"),sep:"/",delimiter:":",win32:null,posix:null};te.posix=te,Z.exports=te}},r={};function i(Z){var Y=r[Z];if(Y!==void 0)return Y.exports;var j=r[Z]={exports:{}};return e[Z](j,j.exports,i),j.exports}ee(i,"r"),i.d=(Z,Y)=>{for(var j in Y)i.o(Y,j)&&!i.o(Z,j)&&Object.defineProperty(Z,j,{enumerable:!0,get:Y[j]})},i.o=(Z,Y)=>Object.prototype.hasOwnProperty.call(Z,Y),i.r=(Z)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Z,"__esModule",{value:!0})};var a={};let o;if(i.r(a),i.d(a,{URI:ee(()=>w,"URI"),Utils:ee(()=>Q,"Utils")}),typeof process=="object")o=process.platform==="win32";else if(typeof navigator=="object")o=navigator.userAgent.indexOf("Windows")>=0;let l=/^\w[\w\d+.-]*$/,h=/^\//,d=/^\/\//;function p(Z,Y){if(!Z.scheme&&Y)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${Z.authority}", path: "${Z.path}", query: "${Z.query}", fragment: "${Z.fragment}"}`);if(Z.scheme&&!l.test(Z.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(Z.path){if(Z.authority){if(!h.test(Z.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(d.test(Z.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}ee(p,"a");let m="",y="/",E=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class w{static{ee(this,"l")}static isUri(Z){return Z instanceof w||!!Z&&typeof Z.authority=="string"&&typeof Z.fragment=="string"&&typeof Z.path=="string"&&typeof Z.query=="string"&&typeof Z.scheme=="string"&&typeof Z.fsPath=="string"&&typeof Z.with=="function"&&typeof Z.toString=="function"}scheme;authority;path;query;fragment;constructor(Z,Y,j,te,X,W=!1){typeof Z=="object"?(this.scheme=Z.scheme||m,this.authority=Z.authority||m,this.path=Z.path||m,this.query=Z.query||m,this.fragment=Z.fragment||m):(this.scheme=function(J,z){return J||z?J:"file"}(Z,W),this.authority=Y||m,this.path=function(J,z){switch(J){case"https":case"http":case"file":z?z[0]!==y&&(z=y+z):z=y}return z}(this.scheme,j||m),this.query=te||m,this.fragment=X||m,p(this,W))}get fsPath(){return N(this,!1)}with(Z){if(!Z)return this;let{scheme:Y,authority:j,path:te,query:X,fragment:W}=Z;return Y===void 0?Y=this.scheme:Y===null&&(Y=m),j===void 0?j=this.authority:j===null&&(j=m),te===void 0?te=this.path:te===null&&(te=m),X===void 0?X=this.query:X===null&&(X=m),W===void 0?W=this.fragment:W===null&&(W=m),Y===this.scheme&&j===this.authority&&te===this.path&&X===this.query&&W===this.fragment?this:new x(Y,j,te,X,W)}static parse(Z,Y=!1){let j=E.exec(Z);return j?new x(j[2]||m,P(j[4]||m),P(j[5]||m),P(j[7]||m),P(j[9]||m),Y):new x(m,m,m,m,m)}static file(Z){let Y=m;if(o&&(Z=Z.replace(/\\/g,y)),Z[0]===y&&Z[1]===y){let j=Z.indexOf(y,2);j===-1?(Y=Z.substring(2),Z=y):(Y=Z.substring(2,j),Z=Z.substring(j)||y)}return new x("file",Y,Z,m,m)}static from(Z){let Y=new x(Z.scheme,Z.authority,Z.path,Z.query,Z.fragment);return p(Y,!0),Y}toString(Z=!1){return L(this,Z)}toJSON(){return this}static revive(Z){if(Z){if(Z instanceof w)return Z;{let Y=new x(Z);return Y._formatted=Z.external,Y._fsPath=Z._sep===T?Z.fsPath:null,Y}}return Z}}let T=o?1:void 0;class x extends w{static{ee(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=N(this,!1)),this._fsPath}toString(Z=!1){return Z?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){let Z={$mid:1};return this._fsPath&&(Z.fsPath=this._fsPath,Z._sep=T),this._formatted&&(Z.external=this._formatted),this.path&&(Z.path=this.path),this.scheme&&(Z.scheme=this.scheme),this.authority&&(Z.authority=this.authority),this.query&&(Z.query=this.query),this.fragment&&(Z.fragment=this.fragment),Z}}let k={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function A(Z,Y,j){let te,X=-1;for(let W=0;W=97&&J<=122||J>=65&&J<=90||J>=48&&J<=57||J===45||J===46||J===95||J===126||Y&&J===47||j&&J===91||j&&J===93||j&&J===58)X!==-1&&(te+=encodeURIComponent(Z.substring(X,W)),X=-1),te!==void 0&&(te+=Z.charAt(W));else{te===void 0&&(te=Z.substr(0,W));let z=k[J];z!==void 0?(X!==-1&&(te+=encodeURIComponent(Z.substring(X,W)),X=-1),te+=z):X===-1&&(X=W)}}return X!==-1&&(te+=encodeURIComponent(Z.substring(X))),te!==void 0?te:Z}ee(A,"m");function R(Z){let Y;for(let j=0;j1&&Z.scheme==="file"?`//${Z.authority}${Z.path}`:Z.path.charCodeAt(0)===47&&(Z.path.charCodeAt(1)>=65&&Z.path.charCodeAt(1)<=90||Z.path.charCodeAt(1)>=97&&Z.path.charCodeAt(1)<=122)&&Z.path.charCodeAt(2)===58?Y?Z.path.substr(1):Z.path[1].toLowerCase()+Z.path.substr(2):Z.path,o&&(j=j.replace(/\//g,"\\")),j}ee(N,"v");function L(Z,Y){let j=Y?R:A,te="",{scheme:X,authority:W,path:J,query:z,fragment:ne}=Z;if(X&&(te+=X,te+=":"),(W||X==="file")&&(te+=y,te+=y),W){let ie=W.indexOf("@");if(ie!==-1){let le=W.substr(0,ie);W=W.substr(ie+1),ie=le.lastIndexOf(":"),ie===-1?te+=j(le,!1,!1):(te+=j(le.substr(0,ie),!1,!1),te+=":",te+=j(le.substr(ie+1),!1,!0)),te+="@"}W=W.toLowerCase(),ie=W.lastIndexOf(":"),ie===-1?te+=j(W,!1,!0):(te+=j(W.substr(0,ie),!1,!0),te+=W.substr(ie))}if(J){if(J.length>=3&&J.charCodeAt(0)===47&&J.charCodeAt(2)===58){let ie=J.charCodeAt(1);ie>=65&&ie<=90&&(J=`/${String.fromCharCode(ie+32)}:${J.substr(3)}`)}else if(J.length>=2&&J.charCodeAt(1)===58){let ie=J.charCodeAt(0);ie>=65&&ie<=90&&(J=`${String.fromCharCode(ie+32)}:${J.substr(2)}`)}te+=j(J,!0,!1)}return z&&(te+="?",te+=j(z,!1,!1)),ne&&(te+="#",te+=Y?ne:A(ne,!1,!1)),te}ee(L,"b");function B(Z){try{return decodeURIComponent(Z)}catch{return Z.length>3?Z.substr(0,3)+B(Z.substr(3)):Z}}ee(B,"C");let D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function P(Z){return Z.match(D)?Z.replace(D,(Y)=>B(Y)):Z}ee(P,"w");var F=i(975);let H=F.posix||F,K="/";var Q;(function(Z){Z.joinPath=function(Y,...j){return Y.with({path:H.join(Y.path,...j)})},Z.resolvePath=function(Y,...j){let te=Y.path,X=!1;te[0]!==K&&(te=K+te,X=!0);let W=H.resolve(te,...j);return X&&W[0]===K&&!Y.authority&&(W=W.substring(1)),Y.with({path:W})},Z.dirname=function(Y){if(Y.path.length===0||Y.path===K)return Y;let j=H.dirname(Y.path);return j.length===1&&j.charCodeAt(0)===46&&(j=""),Y.with({path:j})},Z.basename=function(Y){return H.basename(Y.path)},Z.extname=function(Y){return H.extname(Y.path)}})(Q||(Q={})),bHr=a})();({URI:rw,Utils:$ae}=bHr);(function(e){e.basename=$ae.basename,e.dirname=$ae.dirname,e.extname=$ae.extname,e.joinPath=$ae.joinPath,e.resolvePath=$ae.resolvePath;let r=typeof process==="object"&&process?.platform==="win32";function i(h,d){return h?.toString()===d?.toString()}ee(i,"equals"),e.equals=i;function a(h,d){let p=typeof h==="string"?rw.parse(h).path:h.path,m=typeof d==="string"?rw.parse(d).path:d.path,y=p.split("/").filter((k)=>k.length>0),E=m.split("/").filter((k)=>k.length>0);if(r){let k=/^[A-Z]:$/;if(y[0]&&k.test(y[0]))y[0]=y[0].toLowerCase();if(E[0]&&k.test(E[0]))E[0]=E[0].toLowerCase();if(y[0]!==E[0])return m.substring(1)}let w=0;for(;w({name:a.name,uri:bT.joinPath(rw.parse(r),a.name).toString(),element:a.element}))}all(){return this.collectValues(this.root)}findAll(e){let r=this.getNode(this.normalizeUri(e),!1);if(!r)return[];return this.collectValues(r)}getNode(e,r){let i=e.split("/");if(e.charAt(e.length-1)==="/")i.pop();let a=this.root;for(let o of i){let l=a.children.get(o);if(!l)if(r)l={name:o,children:new Map,parent:a},a.children.set(o,l);else return;a=l}return a}collectValues(e){let r=[];if(e.element)r.push(e.element);for(let i of e.children.values())r.push(...this.collectValues(i));return r}};(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(kc||(kc={}));_bi=class{static{ee(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=op.CancellationToken.None){let i=await this.getInitialText(e,r);return this.createAsync(e,i,r)}async getInitialText(e,r){return this.fileSystemProvider.readFile(e)}fromTextDocument(e,r,i){if(r=r??rw.parse(e.uri),op.CancellationToken.is(i))return this.createAsync(r,e,i);else return this.create(r,e,i)}fromString(e,r,i){if(op.CancellationToken.is(i))return this.createAsync(r,e,i);else return this.create(r,e,i)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r,i){if(typeof r==="string"){let a=this.parse(e,r,i);return this.createLangiumDocument(a,e,void 0,r)}else if("$model"in r){let a={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(a,e)}else{let a=this.parse(e,r.getText(),i);return this.createLangiumDocument(a,e,r)}}async createAsync(e,r,i){if(typeof r==="string"){let a=await this.parseAsync(e,r,i);return this.createLangiumDocument(a,e,void 0,r)}else{let a=await this.parseAsync(e,r.getText(),i);return this.createLangiumDocument(a,e,r)}}createLangiumDocument(e,r,i,a){let o;if(i)o={parseResult:e,uri:r,state:kc.Parsed,references:[],textDocument:i};else{let l=this.createTextDocumentGetter(r,a);o={parseResult:e,uri:r,state:kc.Parsed,references:[],get textDocument(){return l()}}}return e.value.$document=o,o}async update(e,r){let i=e.parseResult.value.$cstNode?.root.fullText,a=this.textDocuments?.get(e.uri.toString()),o=await this.getUpdatedText(e,a,r);if(a)Object.defineProperty(e,"textDocument",{value:a});else{let l=this.createTextDocumentGetter(e.uri,o);Object.defineProperty(e,"textDocument",{get:l})}if(i!==o)e.parseResult=await this.parseAsync(e.uri,o,r),e.parseResult.value.$document=e;return e.state=kc.Parsed,e}async getUpdatedText(e,r,i){return r?r.getText():await this.fileSystemProvider.readFile(e.uri)}parse(e,r,i){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r,i)}parseAsync(e,r,i){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,i)}createTextDocumentGetter(e,r){let i=this.serviceRegistry,a=void 0;return()=>a??(a=sut.create(e.toString(),i.getServices(e).LanguageMetaData.languageId,0,r??""))}},Ebi=class{static{ee(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new vbi,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Ef(this.documentTrie.all())}addDocument(e){let r=e.uri.toString();if(this.documentTrie.has(r))throw Error(`A document with the URI '${r}' is already present.`);this.documentTrie.insert(r,e)}getDocument(e){let r=e.toString();return this.documentTrie.find(r)}getDocuments(e){let r=e.toString();return this.documentTrie.findAll(r)}async getOrCreateDocument(e,r){let i=this.getDocument(e);if(i)return i;return i=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(i),i}createDocument(e,r,i){if(i)return this.langiumDocumentFactory.fromString(r,e,i).then((a)=>(this.addDocument(a),a));else{let a=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(a),a}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let r=e.toString(),i=this.documentTrie.find(r);if(i)this.documentBuilder().resetToState(i,kc.Changed);return i}deleteDocument(e){let r=e.toString(),i=this.documentTrie.find(r);if(i)i.state=kc.Changed,this.documentTrie.delete(r);return i}deleteDocuments(e){let r=e.toString(),i=this.documentTrie.findAll(r);for(let a of i)a.state=kc.Changed;return this.documentTrie.delete(r),i}},Kq=Symbol("RefResolving"),wbi=class{static{ee(this,"DefaultReferenceImpl")}constructor(e,r,i,a,o){this.resolver=e,this.node=r,this.property=i,this._ref=void 0,this.$refNode=a,this.$refText=o}get ref(){return this.resolver.resolveReference(this,this.node,this.property)}get $nodeDescription(){return this._nodeDescription}get error(){return hY(this._ref)?this._ref:void 0}},Sbi=class{static{ee(this,"DefaultMultiReferenceImpl")}constructor(e,r,i,a,o){this.resolver=e,this.node=r,this.property=i,this._items=void 0,this.$refNode=a,this.$refText=o}get items(){return this.resolver.resolveMultiReference(this,this.node,this.property)}get error(){return this._linkingError}},Tbi=class{static{ee(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId,this.referenceResolver={resolveReference:this.resolveReference.bind(this),resolveMultiReference:this.resolveMultiReference.bind(this)}}async link(e,r=op.CancellationToken.None){if(this.profiler?.isActive("linking")){let i=this.profiler.createTask("linking",this.languageId);i.start();try{for(let a of W3(e.parseResult.value))await cy(r),Ese(a).forEach((o)=>{let l=`${a.$type}:${o.property}`;i.startSubTask(l);try{this.doLink(o,e)}finally{i.stopSubTask(l)}})}finally{i.stop()}}else for(let i of W3(e.parseResult.value))await cy(r),Ese(i).forEach((a)=>this.doLink(a,e))}doLink(e,r){let i=e.reference;if("_ref"in i&&i._ref===void 0){i._ref=Kq;try{let a=this.getCandidate(e);if(hY(a))i._ref=a;else{i._nodeDescription=a;let o=this.loadAstNode(a);i._ref=o??this.createLinkingError(e,a)}}catch(a){console.error(`An error occurred while resolving reference to '${i.$refText}':`,a);let o=a.message??String(a);i._ref={info:e,message:`An error occurred while resolving reference to '${i.$refText}': ${o}`}}r.references.push(i)}else if("_items"in i&&i._items===void 0){i._items=Kq;try{let a=this.getCandidates(e),o=[];if(hY(a))i._linkingError=a;else for(let l of a){let h=this.loadAstNode(l);if(h)o.push({ref:h,$nodeDescription:l})}i._items=o}catch(a){i._linkingError={info:e,message:`An error occurred while resolving reference to '${i.$refText}': ${a}`},i._items=[]}r.references.push(i)}}unlink(e){for(let r of e.references)if("_ref"in r)r._ref=void 0,delete r._nodeDescription;else if("_items"in r)r._items=void 0,delete r._linkingError;e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let i=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct((a)=>`${a.documentUri}#${a.path}`).toArray();return i.length>0?i:this.createLinkingError(e)}buildReference(e,r,i,a){return new wbi(this.referenceResolver,e,r,i,a)}buildMultiReference(e,r,i,a){return new Sbi(this.referenceResolver,e,r,i,a)}resolveReference(e,r,i){if(o1(e._ref))return e._ref;else if(YBr(e._nodeDescription)){let a=this.loadAstNode(e._nodeDescription);e._ref=a??this.createLinkingError({reference:e,container:r,property:i},e._nodeDescription)}else if(e._ref===void 0){e._ref=Kq;let a=ose(r).$document,o=this.getLinkedNode({reference:e,container:r,property:i});if(o.error&&a&&a.stateGse(r)&&r.isMulti)}findDeclarations(e){if(e){let r=MFr(e),i=e.astNode;if(r&&i){let a=i[r.feature];if(mT(a)||_I(a))return Tct(a);else if(Array.isArray(a)){for(let o of a)if((mT(o)||_I(o))&&o.$refNode&&o.$refNode.offset<=e.offset&&o.$refNode.end>=e.end)return Tct(o)}}if(i){let a=this.nameProvider.getNameNode(i);if(a&&(a===e||mFr(e,a)))return this.getSelfNodes(i)}}return[]}getSelfNodes(e){if(!this.hasMultiReference)return[e];else{let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),i=this.getNodeFromReferenceDescription(r.head());if(i){for(let a of Ese(i))if(_I(a.reference)&&a.reference.items.some((o)=>o.ref===e))return a.reference.items.map((o)=>o.ref)}return[e]}}getNodeFromReferenceDescription(e){if(!e)return;let r=this.documents.getDocument(e.sourceUri);if(r)return this.nodeLocator.getAstNode(r.parseResult.value,e.sourcePath);return}findDeclarationNodes(e){let r=this.findDeclarations(e),i=[];for(let a of r){let o=this.nameProvider.getNameNode(a)??a.$cstNode;if(o)i.push(o)}return i}findReferences(e,r){let i=[];if(r.includeDeclaration)i.push(...this.getSelfReferences(e));let a=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));if(r.documentUri)a=a.filter((o)=>bT.equals(o.sourceUri,r.documentUri));return i.push(...a),Ef(i)}getSelfReferences(e){let r=this.getSelfNodes(e),i=[];for(let a of r){let o=this.nameProvider.getNameNode(a);if(o){let l=Y3(a),h=this.nodeLocator.getAstNodePath(a);i.push({sourceUri:l.uri,sourcePath:h,targetUri:l.uri,targetPath:h,segment:Sse(o),local:!0})}}return i}},Lse=class{static{ee(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[r,i]of e)this.add(r,i)}get size(){return Sct.sum(Ef(this.map.values()).map((e)=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);else{let i=this.map.get(e);if(i){let a=i.indexOf(r);if(a>=0){if(i.length===1)this.map.delete(e);else i.splice(a,1);return!0}}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let r=this.map.get(e);return r?Ef(r):KBr}has(e,r){if(r===void 0)return this.map.has(e);else{let i=this.map.get(e);if(i)return i.indexOf(r)>=0;return!1}}add(e,r){if(this.map.has(e))this.map.get(e).push(r);else this.map.set(e,[r]);return this}addAll(e,r){if(this.map.has(e))this.map.get(e).push(...r);else this.map.set(e,Array.from(r));return this}forEach(e){this.map.forEach((r,i)=>r.forEach((a)=>e(a,i,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Ef(this.map.entries()).flatMap(([e,r])=>r.map((i)=>[e,i]))}keys(){return Ef(this.map.keys())}values(){return Ef(this.map.values()).flat()}entriesGroupedByKey(){return Ef(this.map.entries())}},gBr=class{static{ee(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[r,i]of e)this.set(r,i)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.inverse.delete(r),!0;return!1}},kbi=class{static{ee(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=op.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,i=T4e,a=op.CancellationToken.None){let o=[];this.addExportedSymbol(e,o,r);for(let l of i(e))await cy(a),this.addExportedSymbol(l,o,r);return o}addExportedSymbol(e,r,i){let a=this.nameProvider.getName(e);if(a)r.push(this.descriptions.createDescription(e,a,i))}async collectLocalSymbols(e,r=op.CancellationToken.None){let i=e.parseResult.value,a=new Lse;for(let o of TY(i))await cy(r),this.addLocalSymbol(o,e,a);return a}addLocalSymbol(e,r,i){let a=e.$container;if(a){let o=this.nameProvider.getName(e);if(o)i.add(a,this.descriptions.createDescription(e,o,r))}}},mBr=class{static{ee(this,"StreamScope")}constructor(e,r,i){this.elements=e,this.outerScope=r,this.caseInsensitive=i?.caseInsensitive??!1,this.concatOuterScope=i?.concatOuterScope??!0}getAllElements(){if(this.outerScope)return this.elements.concat(this.outerScope.getAllElements());else return this.elements}getElement(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.caseInsensitive?this.elements.find((a)=>a.name.toLowerCase()===r):this.elements.find((a)=>a.name===e);if(i)return i;if(this.outerScope)return this.outerScope.getElement(e);return}getElements(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.caseInsensitive?this.elements.filter((a)=>a.name.toLowerCase()===r):this.elements.filter((a)=>a.name===e);if((this.concatOuterScope||i.isEmpty())&&this.outerScope)return i.concat(this.outerScope.getElements(e));else return i}},Abi=class{static{ee(this,"MultiMapScope")}constructor(e,r,i){this.elements=new Lse,this.caseInsensitive=i?.caseInsensitive??!1,this.concatOuterScope=i?.concatOuterScope??!0;for(let a of e){let o=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.add(o,a)}this.outerScope=r}getElement(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.elements.get(r)[0];if(i)return i;if(this.outerScope)return this.outerScope.getElement(e);return}getElements(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.elements.get(r);if((this.concatOuterScope||i.length===0)&&this.outerScope)return Ef(i).concat(this.outerScope.getElements(e));else return Ef(i)}getAllElements(){let e=Ef(this.elements.values());if(this.outerScope)e=e.concat(this.outerScope.getAllElements());return e}},vHr=class{static{ee(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach((e)=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error("This cache has already been disposed")}},Rbi=class extends vHr{static{ee(this,"SimpleCache")}constructor(){super(...arguments);this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);else if(r){let i=r();return this.cache.set(e,i),i}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},Ibi=class extends vHr{static{ee(this,"ContextCache")}constructor(e){super();this.cache=new Map,this.converter=e??((r)=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,i){this.throwIfDisposed(),this.cacheForContext(e).set(r,i)}get(e,r,i){this.throwIfDisposed();let a=this.cacheForContext(e);if(a.has(r))return a.get(r);else if(i){let o=i();return a.set(r,o),o}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){let r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){let r=this.converter(e),i=this.cache.get(r);if(!i)i=new Map,this.cache.set(r,i);return i}},Obi=class extends Rbi{static{ee(this,"WorkspaceCache")}constructor(e,r){super();if(r)this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((i,a)=>{if(a.length>0)this.clear()}));else this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},Nbi=class{static{ee(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Obi(e.shared)}getScope(e){let r=[],i=this.reflection.getReferenceType(e),a=Y3(e.container).localSymbols;if(a){let l=e.container;do{if(a.has(l))r.push(a.getStream(l).filter((h)=>this.reflection.isSubtype(h.type,i)));l=l.$container}while(l)}let o=this.getGlobalScope(i,e);for(let l=r.length-1;l>=0;l--)o=this.createScope(r[l],o);return o}createScope(e,r,i){return new mBr(Ef(e),r,i)}createScopeForNodes(e,r,i){let a=Ef(e).map((o)=>{let l=this.nameProvider.getName(o);if(l)return this.descriptions.createDescription(o,l);return}).nonNullable();return new mBr(a,r,i)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new Abi(this.indexManager.allElements(e)))}};ee(_Hr,"isAstNodeWithComment");ee(lut,"isIntermediateReference");Lbi=class{static{ee(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r){let i=r??{},a=r?.replacer,o=ee((h,d)=>this.replacer(h,d,i),"defaultReplacer"),l=a?(h,d)=>a(h,d,o):o;try{return this.currentDocument=Y3(e),JSON.stringify(e,l,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){let i=r??{},a=JSON.parse(e);return this.linkNode(a,a,i),a}replacer(e,r,{refText:i,sourceText:a,textRegions:o,comments:l,uriConverter:h}){if(this.ignoreProperties.has(e))return;else if(mT(r)){let d=r.ref,p=i?r.$refText:void 0;if(d){let m=Y3(d),y="";if(this.currentDocument&&this.currentDocument!==m)if(h)y=h(m.uri,d);else y=m.uri.toString();let E=this.astNodeLocator.getAstNodePath(d);return{$ref:`${y}#${E}`,$refText:p}}else return{$error:r.error?.message??"Could not resolve reference",$refText:p}}else if(_I(r)){let d=i?r.$refText:void 0,p=[];for(let m of r.items){let y=m.ref,E=Y3(m.ref),w="";if(this.currentDocument&&this.currentDocument!==E)if(h)w=h(E.uri,y);else w=E.uri.toString();let T=this.astNodeLocator.getAstNodePath(y);p.push(`${w}#${T}`)}return{$refs:p,$refText:d}}else if(o1(r)){let d=void 0;if(o){if(d=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&d?.$textRegion)d.$textRegion.documentURI=this.currentDocument?.uri.toString()}if(a&&!e)d??(d={...r}),d.$sourceText=r.$cstNode?.text;if(l){d??(d={...r});let p=this.commentProvider.getComment(r);if(p)d.$comment=p.replace(/\r/g,"")}return d??r}else return r}addAstNodeRegionWithAssignmentsTo(e){let r=ee((i)=>({offset:i.offset,end:i.end,length:i.length,range:i.range}),"createDocumentSegment");if(e.$cstNode){let i=e.$textRegion=r(e.$cstNode),a=i.assignments={};return Object.keys(e).filter((o)=>!o.startsWith("$")).forEach((o)=>{let l=OFr(e.$cstNode,o).map(r);if(l.length!==0)a[o]=l}),e}return}linkNode(e,r,i,a,o,l){for(let[d,p]of Object.entries(e))if(Array.isArray(p))for(let m=0;m{await this.handleException(()=>e.call(r,i,a,o),"An error occurred during validation",a,i)}}async handleException(e,r,i,a){try{await e()}catch(o){if(qse(o))throw o;if(console.error(`${r}:`,o),o instanceof Error&&o.stack)console.error(o.stack);let l=o instanceof Error?o.message:String(o);i("error",`${r}: ${l}`,{node:a})}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(let i of this.reflection.getAllSubTypes(e))this.entries.add(i,r)}getChecks(e,r){let i=Ef(this.entries.get(e)).concat(this.entries.get("AstNode"));if(r)i=i.filter((a)=>r.includes(a.category));return i.map((a)=>a.check)}registerBeforeDocument(e,r=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",r))}registerAfterDocument(e,r=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",r))}wrapPreparationException(e,r,i){return async(a,o,l,h)=>{await this.handleException(()=>e.call(i,a,o,l,h),r,o,a)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},Pbi=Object.freeze({validateNode:!0,validateChildren:!0}),Bbi=class{static{ee(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,r={},i=op.CancellationToken.None){let a=e.parseResult,o=[];if(await cy(i),!r.categories||r.categories.includes("built-in")){if(this.processLexingErrors(a,o,r),r.stopAfterLexingErrors&&o.some((l)=>l.data?.code===UC.LexingError))return o;if(this.processParsingErrors(a,o,r),r.stopAfterParsingErrors&&o.some((l)=>l.data?.code===UC.ParsingError))return o;if(this.processLinkingErrors(e,o,r),r.stopAfterLinkingErrors&&o.some((l)=>l.data?.code===UC.LinkingError))return o}try{o.push(...await this.validateAst(a.value,r,i))}catch(l){if(qse(l))throw l;console.error("An error occurred during validation:",l)}return await cy(i),o}processLexingErrors(e,r,i){let a=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let o of a){let l=o.severity??"error",h={severity:ECe(l),range:{start:{line:o.line-1,character:o.column-1},end:{line:o.line-1,character:o.column+o.length-1}},message:o.message,data:wHr(l),source:this.getSource()};r.push(h)}}processParsingErrors(e,r,i){for(let a of e.parserErrors){let o=void 0;if(!kCe(a.token)){if("previousToken"in a){let l=a.previousToken;if(kCe(l)){let h={line:l.endLine-1,character:l.endColumn};o={start:h,end:h}}else{let h={line:0,character:0};o={start:h,end:h}}}}else o=bFr(a.token);if(o){let l={severity:ECe("error"),range:o,message:a.message,data:pY(UC.ParsingError),source:this.getSource()};r.push(l)}}}processLinkingErrors(e,r,i){for(let a of e.references){let o=a.error;if(o){let l={node:o.info.container,range:a.$refNode?.range,property:o.info.property,index:o.info.index,data:{code:UC.LinkingError,containerType:o.info.container.$type,property:o.info.property,refText:o.info.reference.$refText}};r.push(this.toDiagnostic("error",o.message,l))}}}async validateAst(e,r,i=op.CancellationToken.None){let a=[],o=ee((l,h,d)=>{a.push(this.toDiagnostic(l,h,d))},"acceptor");return await this.validateAstBefore(e,r,o,i),await this.validateAstNodes(e,r,o,i),await this.validateAstAfter(e,r,o,i),a}async validateAstBefore(e,r,i,a=op.CancellationToken.None){let o=this.validationRegistry.checksBefore;for(let l of o)await cy(a),await l(e,i,r.categories??[],a)}async validateAstNodes(e,r,i,a=op.CancellationToken.None){if(this.profiler?.isActive("validating")){let o=this.profiler.createTask("validating",this.languageId);o.start();try{let l=W3(e).iterator();for(let h of l){o.startSubTask(h.$type);let d=this.validateSingleNodeOptions(h,r);if(d.validateNode)try{let p=this.validationRegistry.getChecks(h.$type,r.categories);for(let m of p)await m(h,i,a)}finally{o.stopSubTask(h.$type)}if(!d.validateChildren)l.prune()}}finally{o.stop()}}else{let o=W3(e).iterator();for(let l of o){await cy(a);let h=this.validateSingleNodeOptions(l,r);if(h.validateNode){let d=this.validationRegistry.getChecks(l.$type,r.categories);for(let p of d)await p(l,i,a)}if(!h.validateChildren)o.prune()}}}validateSingleNodeOptions(e,r){return Pbi}async validateAstAfter(e,r,i,a=op.CancellationToken.None){let o=this.validationRegistry.checksAfter;for(let l of o)await cy(a),await l(e,i,r.categories??[],a)}toDiagnostic(e,r,i){return{message:r,range:EHr(i),severity:ECe(e),code:i.code,codeDescription:i.codeDescription,tags:i.tags,relatedInformation:i.relatedInformation,data:i.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};ee(EHr,"getDiagnosticRange");ee(ECe,"toDiagnosticSeverity");ee(wHr,"toDiagnosticData");(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(UC||(UC={}));Fbi=class{static{ee(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,i){let a=i??Y3(e);r??(r=this.nameProvider.getName(e));let o=this.astNodeLocator.getAstNodePath(e);if(!r)throw Error(`Node at path ${o} has no name.`);let l,h=ee(()=>l??(l=Sse(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return h()},selectionSegment:Sse(e.$cstNode),type:e.$type,documentUri:a.uri,path:o}}},$bi=class{static{ee(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=op.CancellationToken.None){let i=[],a=e.parseResult.value;for(let o of W3(a))await cy(r),Ese(o).forEach((l)=>{if(!l.reference.error)i.push(...this.createInfoDescriptions(l))});return i}createInfoDescriptions(e){let r=e.reference;if(r.error||!r.$refNode)return[];let i=[];if(mT(r)&&r.$nodeDescription)i=[r.$nodeDescription];else if(_I(r))i=r.items.map((d)=>d.$nodeDescription).filter((d)=>d!==void 0);let a=Y3(e.container).uri,o=this.nodeLocator.getAstNodePath(e.container),l=[],h=Sse(r.$refNode);for(let d of i)l.push({sourceUri:a,sourcePath:o,targetUri:d.documentUri,targetPath:d.path,segment:h,local:bT.equals(d.documentUri,a)});return l}},Ubi=class{static{ee(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let r=this.getAstNodePath(e.$container),i=this.getPathSegment(e);return r+this.segmentSeparator+i}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw Error("Missing '$containerProperty' in AST node.");if(r!==void 0)return e+this.indexSeparator+r;return e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((a,o)=>{if(!a||o.length===0)return a;let l=o.indexOf(this.indexSeparator);if(l>0){let h=o.substring(0,l),d=parseInt(o.substring(l+1));return a[h]?.[d]}return a[o]},e)}},Gbi=Iut(Mut(),1),zbi=class{static{ee(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Bht,this.onConfigurationSectionUpdateEmitter=new Gbi.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let r=this.serviceRegistry.all;e.register({section:r.map((i)=>this.toSectionName(i.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let r=this.serviceRegistry.all.map((a)=>({section:this.toSectionName(a.LanguageMetaData.languageId)})),i=await e.fetchConfiguration(r);r.forEach((a,o)=>{this.updateSectionConfiguration(a.section,i[o])})}}this._ready.resolve()}updateConfiguration(e){if(typeof e.settings!=="object"||e.settings===null)return;Object.entries(e.settings).forEach(([r,i])=>{this.updateSectionConfiguration(r,i),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:i})})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;let i=this.toSectionName(e);if(this.settings[i])return this.settings[i][r]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},Dxe=Iut(Mut(),1);(function(e){function r(i){return{dispose:ee(async()=>await i(),"dispose")}}ee(r,"create"),e.create=r})(hse||(hse={}));Vbi=class{static{ee(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Lse,this.documentPhaseListeners=new Lse,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=kc.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},i=op.CancellationToken.None){for(let a of e){let o=a.uri.toString();if(a.state===kc.Validated){if(typeof r.validation==="boolean"&&r.validation)this.resetToState(a,kc.IndexedReferences);else if(typeof r.validation==="object"){let l=this.findMissingValidationCategories(a,r);if(l.length>0)this.buildState.set(o,{completed:!1,options:{validation:{categories:l}},result:this.buildState.get(o)?.result}),a.state=kc.IndexedReferences}}else this.buildState.delete(o)}this.currentState=kc.Changed,await this.emitUpdate(e.map((a)=>a.uri),[]),await this.buildDocuments(e,r,i)}async update(e,r,i=op.CancellationToken.None){this.currentState=kc.Changed;let a=[];for(let d of r){let p=this.langiumDocuments.deleteDocuments(d);for(let m of p)a.push(m.uri),this.cleanUpDeleted(m)}let o=(await Promise.all(e.map((d)=>this.findChangedUris(d)))).flat();for(let d of o){let p=this.langiumDocuments.getDocument(d);if(p===void 0)p=this.langiumDocumentFactory.fromModel({$type:"INVALID"},d),p.state=kc.Changed,this.langiumDocuments.addDocument(p);this.resetToState(p,kc.Changed)}let l=Ef(o).concat(a).map((d)=>d.toString()).toSet();this.langiumDocuments.all.filter((d)=>!l.has(d.uri.toString())&&this.shouldRelink(d,l)).forEach((d)=>this.resetToState(d,kc.ComputedScopes)),await this.emitUpdate(o,a),await cy(i);let h=this.sortDocuments(this.langiumDocuments.all.filter((d)=>d.state=1}findMissingValidationCategories(e,r){let i=this.buildState.get(e.uri.toString()),a=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),o=i?.result?.validationChecks?new Set(i?.result?.validationChecks):i?.completed?a:new Set,l=r===void 0||r.validation===!0?a:typeof r.validation==="object"?r.validation.categories??a:[];return Ef(l).filter((h)=>!o.has(h)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let i=await this.fileSystemProvider.stat(e);if(i.isDirectory)return await this.workspaceManager().searchFolder(e);else if(this.workspaceManager().shouldIncludeEntry(i))return[e]}catch{}return[]}async emitUpdate(e,r){await Promise.all(this.updateListeners.map((i)=>i(e,r)))}sortDocuments(e){let r=0,i=e.length-1;while(r=0&&!this.hasTextDocument(e[i]))i--;if(ri.error!==void 0))return!0;return this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),hse.create(()=>{let r=this.updateListeners.indexOf(e);if(r>=0)this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case kc.Changed:case kc.Parsed:this.indexManager.removeContent(e.uri);case kc.IndexedContent:e.localSymbols=void 0;case kc.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case kc.Linked:this.indexManager.removeReferences(e.uri);case kc.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case kc.Validated:}if(e.state>r)e.state=r}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=kc.Changed}async buildDocuments(e,r,i){this.prepareBuild(e,r),await this.runCancelable(e,kc.Parsed,i,(l)=>this.langiumDocumentFactory.update(l,i)),await this.runCancelable(e,kc.IndexedContent,i,(l)=>this.indexManager.updateContent(l,i)),await this.runCancelable(e,kc.ComputedScopes,i,async(l)=>{let h=this.serviceRegistry.getServices(l.uri).references.ScopeComputation;l.localSymbols=await h.collectLocalSymbols(l,i)});let a=e.filter((l)=>this.shouldLink(l));await this.runCancelable(a,kc.Linked,i,(l)=>this.serviceRegistry.getServices(l.uri).references.Linker.link(l,i)),await this.runCancelable(a,kc.IndexedReferences,i,(l)=>this.indexManager.updateReferences(l,i));let o=e.filter((l)=>{if(this.shouldValidate(l))return!0;else return this.markAsCompleted(l),!1});await this.runCancelable(o,kc.Validated,i,async(l)=>{await this.validate(l,i),this.markAsCompleted(l)})}markAsCompleted(e){let r=this.buildState.get(e.uri.toString());if(r)r.completed=!0}prepareBuild(e,r){for(let i of e){let a=i.uri.toString(),o=this.buildState.get(a);if(!o||o.completed)this.buildState.set(a,{completed:!1,options:r,result:o?.result})}}async runCancelable(e,r,i,a){for(let l of e)if(l.statel.state===r);await this.notifyBuildPhase(o,r,i),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),hse.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),hse.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,i){let a=void 0;if(r&&"path"in r)a=r;else i=r;if(i??(i=op.CancellationToken.None),a)return this.awaitDocumentState(e,a,i);else return this.awaitBuilderState(e,i)}awaitDocumentState(e,r,i){let a=this.langiumDocuments.getDocument(r);if(!a)return Promise.reject(new Dxe.ResponseError(Dxe.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));else if(a.state>=e)return Promise.resolve(r);else if(i.isCancellationRequested)return Promise.reject(fY);else if(this.currentState>=e&&e>a.state)return Promise.reject(new Dxe.ResponseError(Dxe.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${kc[a.state]}, requiring ${kc[e]}, but workspace state is already ${kc[this.currentState]}. Returning undefined.`));return new Promise((o,l)=>{let h=this.onDocumentPhase(e,(p)=>{if(bT.equals(p.uri,r))h.dispose(),d.dispose(),o(p.uri)}),d=i.onCancellationRequested(()=>{h.dispose(),d.dispose(),l(fY)})})}awaitBuilderState(e,r){if(this.currentState>=e)return Promise.resolve();else if(r.isCancellationRequested)return Promise.reject(fY);return new Promise((i,a)=>{let o=this.onBuildPhase(e,()=>{o.dispose(),l.dispose(),i()}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(fY)})})}async notifyDocumentPhase(e,r,i){let o=this.documentPhaseListeners.get(r).slice();for(let l of o)try{await cy(i),await l(e,i)}catch(h){if(!qse(h))throw h}}async notifyBuildPhase(e,r,i){if(e.length===0)return;let o=this.buildPhaseListeners.get(r).slice();for(let l of o)await cy(i),await l(e,i)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return Boolean(this.getBuildOptions(e).validation)}async validate(e,r){let i=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e),o=typeof a.validation==="object"?{...a.validation}:{};o.categories=this.findMissingValidationCategories(e,a);let l=await i.validateDocument(e,o,r);if(e.diagnostics)e.diagnostics.push(...l);else e.diagnostics=l;let h=this.buildState.get(e.uri.toString());if(h)if(h.result??(h.result={}),h.result.validationChecks)h.result.validationChecks=Ef(h.result.validationChecks).concat(o.categories).distinct().toArray();else h.result.validationChecks=[...o.categories]}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},Hbi=class{static{ee(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Ibi,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){let i=Y3(e).uri,a=[];return this.referenceIndex.forEach((o)=>{o.forEach((l)=>{if(bT.equals(l.targetUri,i)&&l.targetPath===r)a.push(l)})}),Ef(a)}allElements(e,r){let i=Ef(this.symbolIndex.keys());if(r)i=i.filter((a)=>!r||r.has(a));return i.map((a)=>this.getFileDescriptions(a,e)).flat()}getFileDescriptions(e,r){if(!r)return this.symbolIndex.get(e)??[];return this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter((o)=>this.astReflection.isSubtype(o.type,r)))}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r)}removeReferences(e){let r=e.toString();this.referenceIndex.delete(r)}async updateContent(e,r=op.CancellationToken.None){let a=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),o=e.uri.toString();this.symbolIndex.set(o,a),this.symbolByTypeIndex.clear(o)}async updateReferences(e,r=op.CancellationToken.None){let a=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),a)}isAffected(e,r){let i=this.referenceIndex.get(e.uri.toString());if(!i)return!1;return i.some((a)=>!a.local&&r.has(a.targetUri.toString()))}},qbi=class{static{ee(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Bht,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write((r)=>this.initializeWorkspace(this.folders??[],r))}async initializeWorkspace(e,r=op.CancellationToken.None){let i=await this.performStartup(e);await cy(r),await this.documentBuilder.build(i,this.initialBuildOptions,r)}async performStartup(e){let r=[],i=ee((l)=>{if(r.push(l),!this.langiumDocuments.hasDocument(l.uri))this.langiumDocuments.addDocument(l)},"collector");await this.loadAdditionalDocuments(e,i);let a=[];await Promise.all(e.map((l)=>this.getRootFolder(l)).map(async(l)=>this.traverseFolder(l,a)));let o=Ef(a).distinct((l)=>l.toString()).filter((l)=>!this.langiumDocuments.hasDocument(l));return await this.loadWorkspaceDocuments(o,i),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async(i)=>{let a=await this.langiumDocuments.getOrCreateDocument(i);r(a)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return rw.parse(e.uri)}async traverseFolder(e,r){try{let i=await this.fileSystemProvider.readDirectory(e);await Promise.all(i.map(async(a)=>{if(this.shouldIncludeEntry(a)){if(a.isDirectory)await this.traverseFolder(a.uri,r);else if(a.isFile)r.push(a.uri)}}))}catch(i){console.error("Failure to read directory content of "+e.toString(!0),i)}}async searchFolder(e){let r=[];return await this.traverseFolder(e,r),r}shouldIncludeEntry(e){let r=bT.basename(e.uri);if(r.startsWith("."))return!1;if(e.isDirectory)return r!=="node_modules"&&r!=="out";else if(e.isFile)return this.serviceRegistry.hasServices(e.uri);return!1}},Ybi=class{static{ee(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,r,i,a,o){return Uct.buildUnexpectedCharactersMessage(e,r,i,a,o)}buildUnableToPopLexerModeMessage(e){return Uct.buildUnableToPopLexerModeMessage(e)}},Wbi={mode:"full"},jbi=class{static{ee(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let r=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);let i=uut(r)?Object.values(r):r,a=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new l2(i,{positionTracking:"full",skipValidations:a,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=Wbi){let i=this.chevrotainLexer.tokenize(e);return{tokens:i.tokens,errors:i.errors,hidden:i.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(uut(e))return e;let r=Uht(e)?Object.values(e.modes).flat():e,i={};return r.forEach((a)=>i[a.name]=a),i}};ee(SHr,"isTokenTypeArray");ee(Uht,"isIMultiModeLexerDefinition");ee(uut,"isTokenTypeDictionary");S4e();ee(THr,"parseJSDoc");ee(xHr,"isJSDoc");ee(Ght,"getLines");bBr=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,Kbi=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;ee(CHr,"tokenize");ee(kHr,"buildInlineTokens");Xbi=/\S/,Qbi=/\s*$/;ee(GCe,"skipWhitespace");ee(AHr,"lastCharacter");ee(RHr,"parseJSDocComment");ee(IHr,"parseJSDocElement");ee(OHr,"appendEmptyLine");ee(zht,"parseJSDocText");ee(NHr,"parseJSDocInline");ee(Vht,"parseJSDocTag");ee(Hht,"parseJSDocLine");ee(J4e,"normalizeOptions");ee(wCe,"normalizeOption");yBr=class{static{ee(this,"JSDocCommentImpl")}constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find((r)=>r.name===e)}getTags(e){return this.getAllTags().filter((r)=>r.name===e)}getAllTags(){return this.elements.filter((e)=>("name"in e))}toString(){let e="";for(let r of this.elements)if(e.length===0)e=r.toString();else{let i=r.toString();e+=dut(e)+i}return e.trim()}toMarkdown(e){let r="";for(let i of this.elements)if(r.length===0)r=i.toMarkdown(e);else{let a=i.toMarkdown(e);r+=dut(r)+a}return r.trim()}},llt=class{static{ee(this,"JSDocTagImpl")}constructor(e,r,i,a){this.name=e,this.content=r,this.inline=i,this.range=a}toString(){let e=`@${this.name}`,r=this.content.toString();if(this.content.inlines.length===1)e=`${e} ${r}`;else if(this.content.inlines.length>1)e=`${e} -${r}`;if(this.inline)return`{${e}}`;else return e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let r=this.content.toMarkdown(e);if(this.inline){let o=LHr(this.name,r,e??{});if(typeof o==="string")return o}let i="";if(e?.tag==="italic"||e?.tag===void 0)i="*";else if(e?.tag==="bold")i="**";else if(e?.tag==="bold-italic")i="***";let a=`${i}@${this.name}${i}`;if(this.content.inlines.length===1)a=`${a} — ${r}`;else if(this.content.inlines.length>1)a=`${a} -${r}`;if(this.inline)return`{${a}}`;else return a}};ee(LHr,"renderInlineTag");ee(MHr,"renderLinkDefault");hut=class{static{ee(this,"JSDocTextImpl")}constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;ri.range.start.line)e+=` + For further details.`);this.skipValidations=Object.hasOwn(i,"skipValidations")?i.skipValidations:CI.skipValidations}};yht.DEFER_DEFINITION_ERRORS_HANDLING=!1;NUr(yht,[Ypi,Wpi,Xpi,Qpi,Jpi,Zpi,e0i,r0i,n0i]);i0i=class extends yht{static{te(this,"EmbeddedActionsParser")}constructor(e,r=CI){let i=Object.assign({},r);i.outputCst=!1;super(e,i)}};te(LUr,"arrayMap");MUr=LUr;te(DUr,"listCacheClear");a0i=DUr;te(PUr,"eq");BUr=PUr;te(FUr,"assocIndexOf");U4e=FUr,s0i=Array.prototype,o0i=s0i.splice;te($Ur,"listCacheDelete");l0i=$Ur;te(UUr,"listCacheGet");c0i=UUr;te(GUr,"listCacheHas");u0i=GUr;te(zUr,"listCacheSet");h0i=zUr;te(sF,"ListCache");sF.prototype.clear=a0i;sF.prototype.delete=l0i;sF.prototype.get=c0i;sF.prototype.has=u0i;sF.prototype.set=h0i;G4e=sF;te(VUr,"stackClear");d0i=VUr;te(HUr,"stackDelete");f0i=HUr;te(qUr,"stackGet");p0i=qUr;te(YUr,"stackHas");g0i=YUr,m0i=typeof global=="object"&&global&&global.Object===Object&&global,WUr=m0i,b0i=typeof self=="object"&&self&&self.Object===Object&&self,y0i=WUr||b0i||Function("return this")(),kI=y0i,v0i=kI.Symbol,X3=v0i,jUr=Object.prototype,_0i=jUr.hasOwnProperty,E0i=jUr.toString,Gae=X3?X3.toStringTag:void 0;te(KUr,"getRawTag");w0i=KUr,S0i=Object.prototype,T0i=S0i.toString;te(XUr,"objectToString");x0i=XUr,WPr=X3?X3.toStringTag:void 0;te(QUr,"baseGetTag");BY=QUr;te(ZUr,"isObject");vht=ZUr;te(JUr,"isFunction");eGr=JUr,N0i=kI["__core-js_shared__"],olt=N0i,jPr=function(){var e=/[^.]+$/.exec(olt&&olt.keys&&olt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();te(tGr,"isMasked");L0i=tGr,M0i=Function.prototype,D0i=M0i.toString;te(rGr,"toSource");oF=rGr,P0i=/[\\^$.*+?()[\]{}|]/g,B0i=/^\[object .+?Constructor\]$/,F0i=Function.prototype,$0i=Object.prototype,U0i=F0i.toString,G0i=$0i.hasOwnProperty,z0i=RegExp("^"+U0i.call(G0i).replace(P0i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");te(nGr,"baseIsNative");V0i=nGr;te(iGr,"getValue");H0i=iGr;te(aGr,"getNative");FY=aGr,q0i=FY(kI,"Map"),Ose=q0i,Y0i=FY(Object,"create"),Nse=Y0i;te(sGr,"hashClear");W0i=sGr;te(oGr,"hashDelete");j0i=oGr,X0i=Object.prototype,Q0i=X0i.hasOwnProperty;te(lGr,"hashGet");Z0i=lGr,J0i=Object.prototype,egi=J0i.hasOwnProperty;te(cGr,"hashHas");tgi=cGr;te(uGr,"hashSet");ngi=uGr;te(lF,"Hash");lF.prototype.clear=W0i;lF.prototype.delete=j0i;lF.prototype.get=Z0i;lF.prototype.has=tgi;lF.prototype.set=ngi;KPr=lF;te(hGr,"mapCacheClear");igi=hGr;te(dGr,"isKeyable");agi=dGr;te(fGr,"getMapData");z4e=fGr;te(pGr,"mapCacheDelete");sgi=pGr;te(gGr,"mapCacheGet");ogi=gGr;te(mGr,"mapCacheHas");lgi=mGr;te(bGr,"mapCacheSet");cgi=bGr;te(cF,"MapCache");cF.prototype.clear=igi;cF.prototype.delete=sgi;cF.prototype.get=ogi;cF.prototype.has=lgi;cF.prototype.set=cgi;V4e=cF;te(yGr,"stackSet");hgi=yGr;te(uF,"Stack");uF.prototype.clear=d0i;uF.prototype.delete=f0i;uF.prototype.get=p0i;uF.prototype.has=g0i;uF.prototype.set=hgi;_Ce=uF;te(vGr,"setCacheAdd");fgi=vGr;te(_Gr,"setCacheHas");pgi=_Gr;te(Lse,"SetCache");Lse.prototype.add=Lse.prototype.push=fgi;Lse.prototype.has=pgi;EGr=Lse;te(wGr,"arraySome");ggi=wGr;te(SGr,"cacheHas");TGr=SGr;te(xGr,"equalArrays");CGr=xGr,ygi=kI.Uint8Array,XPr=ygi;te(kGr,"mapToArray");vgi=kGr;te(AGr,"setToArray");_ht=AGr,QPr=X3?X3.prototype:void 0,llt=QPr?QPr.valueOf:void 0;te(RGr,"equalByTag");Lgi=RGr;te(IGr,"arrayPush");OGr=IGr,Mgi=Array.isArray,kv=Mgi;te(NGr,"baseGetAllKeys");Dgi=NGr;te(LGr,"arrayFilter");MGr=LGr;te(DGr,"stubArray");Pgi=DGr,Bgi=Object.prototype,Fgi=Bgi.propertyIsEnumerable,ZPr=Object.getOwnPropertySymbols,$gi=!ZPr?Pgi:function(e){if(e==null)return[];return e=Object(e),MGr(ZPr(e),function(r){return Fgi.call(e,r)})},Ugi=$gi;te(PGr,"baseTimes");Ggi=PGr;te(BGr,"isObjectLike");xY=BGr;te(FGr,"baseIsArguments");JPr=FGr,$Gr=Object.prototype,Vgi=$Gr.hasOwnProperty,Hgi=$Gr.propertyIsEnumerable,qgi=JPr(function(){return arguments}())?JPr:function(e){return xY(e)&&Vgi.call(e,"callee")&&!Hgi.call(e,"callee")},H4e=qgi;te(UGr,"stubFalse");Ygi=UGr,GGr=typeof tF=="object"&&tF&&!tF.nodeType&&tF,eBr=GGr&&typeof V7=="object"&&V7&&!V7.nodeType&&V7,Wgi=eBr&&eBr.exports===GGr,tBr=Wgi?kI.Buffer:void 0,jgi=tBr?tBr.isBuffer:void 0,Kgi=jgi||Ygi,UCe=Kgi,Qgi=/^(?:0|[1-9]\d*)$/;te(zGr,"isIndex");VGr=zGr;te(HGr,"isLength");Eht=HGr,$d={};$d[pmi]=$d[gmi]=$d[mmi]=$d[bmi]=$d[ymi]=$d[vmi]=$d[_mi]=$d[Emi]=$d[wmi]=!0;$d[Jgi]=$d[emi]=$d[dmi]=$d[tmi]=$d[fmi]=$d[rmi]=$d[nmi]=$d[imi]=$d[ami]=$d[smi]=$d[omi]=$d[lmi]=$d[cmi]=$d[umi]=$d[hmi]=!1;te(qGr,"baseIsTypedArray");Smi=qGr;te(YGr,"baseUnary");Tmi=YGr,WGr=typeof tF=="object"&&tF&&!tF.nodeType&&tF,fse=WGr&&typeof V7=="object"&&V7&&!V7.nodeType&&V7,xmi=fse&&fse.exports===WGr,clt=xmi&&WUr.process,Cmi=function(){try{var e=fse&&fse.require&&fse.require("util").types;if(e)return e;return clt&&clt.binding&&clt.binding("util")}catch(r){}}(),rBr=Cmi,nBr=rBr&&rBr.isTypedArray,kmi=nBr?Tmi(nBr):Smi,wht=kmi,Ami=Object.prototype,Rmi=Ami.hasOwnProperty;te(jGr,"arrayLikeKeys");Imi=jGr,Omi=Object.prototype;te(KGr,"isPrototype");XGr=KGr;te(QGr,"overArg");Nmi=QGr,Lmi=Nmi(Object.keys,Object),Mmi=Lmi,Dmi=Object.prototype,Pmi=Dmi.hasOwnProperty;te(ZGr,"baseKeys");JGr=ZGr;te(ezr,"isArrayLike");q4e=ezr;te(tzr,"keys");Sht=tzr;te(rzr,"getAllKeys");iBr=rzr,Fmi=Object.prototype,$mi=Fmi.hasOwnProperty;te(nzr,"equalObjects");Umi=nzr,Gmi=FY(kI,"DataView"),eut=Gmi,zmi=FY(kI,"Promise"),tut=zmi,Vmi=FY(kI,"Set"),yY=Vmi,Hmi=FY(kI,"WeakMap"),rut=Hmi,Ymi=oF(eut),Wmi=oF(Ose),jmi=oF(tut),Kmi=oF(yY),Xmi=oF(rut),YB=BY;if(eut&&YB(new eut(new ArrayBuffer(1)))!=cBr||Ose&&YB(new Ose)!=aBr||tut&&YB(tut.resolve())!=sBr||yY&&YB(new yY)!=oBr||rut&&YB(new rut)!=lBr)YB=te(function(e){var r=BY(e),i=r==qmi?e.constructor:void 0,a=i?oF(i):"";if(a)switch(a){case Ymi:return cBr;case Wmi:return aBr;case jmi:return sBr;case Kmi:return oBr;case Xmi:return lBr}return r},"getTag");nut=YB,Zmi=Object.prototype,dBr=Zmi.hasOwnProperty;te(izr,"baseIsEqualDeep");Jmi=izr;te(Tht,"baseIsEqual");azr=Tht;te(szr,"baseIsMatch");r1i=szr;te(ozr,"isStrictComparable");lzr=ozr;te(czr,"getMatchData");n1i=czr;te(uzr,"matchesStrictComparable");hzr=uzr;te(dzr,"baseMatches");i1i=dzr;te(fzr,"isSymbol");Y4e=fzr,s1i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o1i=/^\w*$/;te(pzr,"isKey");xht=pzr;te(W4e,"memoize");W4e.Cache=V4e;c1i=W4e;te(gzr,"memoizeCapped");h1i=gzr,d1i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f1i=/\\(\\)?/g,p1i=h1i(function(e){var r=[];if(e.charCodeAt(0)===46)r.push("");return e.replace(d1i,function(i,a,o,l){r.push(o?l.replace(f1i,"$1"):a||i)}),r}),g1i=p1i,fBr=X3?X3.prototype:void 0,pBr=fBr?fBr.toString:void 0;te(Cht,"baseToString");b1i=Cht;te(mzr,"toString");y1i=mzr;te(bzr,"castPath");yzr=bzr;te(vzr,"toKey");j4e=vzr;te(_zr,"baseGet");Ezr=_zr;te(wzr,"get");_1i=wzr;te(Szr,"baseHasIn");E1i=Szr;te(Tzr,"hasPath");w1i=Tzr;te(xzr,"hasIn");S1i=xzr;te(Czr,"baseMatchesProperty");C1i=Czr;te(kzr,"identity");kht=kzr;te(Azr,"baseProperty");k1i=Azr;te(Rzr,"basePropertyDeep");A1i=Rzr;te(Izr,"property");R1i=Izr;te(Ozr,"baseIteratee");K4e=Ozr;te(Nzr,"createBaseFor");I1i=Nzr,O1i=I1i(),N1i=O1i;te(Lzr,"baseForOwn");L1i=Lzr;te(Mzr,"createBaseEach");M1i=Mzr,D1i=M1i(L1i),X4e=D1i;te(Dzr,"baseMap");P1i=Dzr;te(Pzr,"map");wI=Pzr;te(Bzr,"baseFilter");B1i=Bzr;te(Fzr,"filter");F1i=Fzr;te(nF,"buildATNKey");Aht=class{static{te(this,"AbstractTransition")}constructor(e){this.target=e}isEpsilon(){return!1}},Q4e=class extends Aht{static{te(this,"AtomTransition")}constructor(e,r){super(e);this.tokenType=r}},zzr=class extends Aht{static{te(this,"EpsilonTransition")}constructor(e){super(e)}isEpsilon(){return!0}},Z4e=class extends Aht{static{te(this,"RuleTransition")}constructor(e,r,i){super(e);this.rule=r,this.followState=i}isEpsilon(){return!0}};te(Vzr,"createATN");te(Hzr,"createRuleStartAndStopATNStates");te(Rht,"atom");te(qzr,"repetition");te(Yzr,"repetitionSep");te(Wzr,"repetitionMandatory");te(jzr,"repetitionMandatorySep");te(Kzr,"alternation");te(Xzr,"option");te(K7,"block");te(Iht,"plus");te(Oht,"star");te(Qzr,"optional");te(AI,"defineDecisionState");te(dF,"makeAlts");te(Zzr,"getProdType");te(Jzr,"makeBlock");te(J4e,"tokenRef");te(eVr,"ruleRef");te(tVr,"buildRuleHandle");te(M0,"epsilon");te(um,"newState");te(eke,"addTransition");te(rVr,"removeState");GCe={},iut=class{static{te(this,"ATNConfigSet")}constructor(){this.map={},this.configs=[]}get size(){return this.configs.length}finalize(){this.map={}}add(e){let r=Nht(e);if(!(r in this.map))this.map[r]=this.configs.length,this.configs.push(e)}get elements(){return this.configs}get alts(){return wI(this.configs,(e)=>e.alt)}get key(){let e="";for(let r in this.map)e+=r+":";return e}};te(Nht,"getATNConfigKey");te(nVr,"baseExtremum");H1i=nVr;te(iVr,"baseLt");q1i=iVr;te(aVr,"min");Y1i=aVr,gBr=X3?X3.isConcatSpreadable:void 0;te(sVr,"isFlattenable");W1i=sVr;te(Lht,"baseFlatten");oVr=Lht;te(lVr,"flatMap");j1i=lVr;te(cVr,"baseFindIndex");K1i=cVr;te(uVr,"baseIsNaN");X1i=uVr;te(hVr,"strictIndexOf");Q1i=hVr;te(dVr,"baseIndexOf");Z1i=dVr;te(fVr,"arrayIncludes");J1i=fVr;te(pVr,"arrayIncludesWith");ebi=pVr;te(gVr,"noop");tbi=gVr,nbi=!(yY&&1/_ht(new yY([,-0]))[1]==rbi)?tbi:function(e){return new yY(e)},ibi=nbi;te(mVr,"baseUniq");sbi=mVr;te(bVr,"uniqBy");obi=bVr;te(yVr,"flatten");lbi=yVr;te(vVr,"arrayEach");cbi=vVr;te(_Vr,"castFunction");ubi=_Vr;te(EVr,"forEach");ult=EVr,fbi=Object.prototype,pbi=fbi.hasOwnProperty;te(wVr,"isEmpty");gbi=wVr;te(SVr,"arrayReduce");mbi=SVr;te(TVr,"baseReduce");bbi=TVr;te(xVr,"reduce");mBr=xVr;te(CVr,"createDFACache");kVr=class{static{te(this,"PredicateSet")}constructor(){this.predicates=[]}is(e){return e>=this.predicates.length||this.predicates[e]}set(e,r){this.predicates[e]=r}toString(){let e="",r=this.predicates.length;for(let i=0;iconsole.log(a),this.incomplete=(i=e===null||e===void 0?void 0:e.incomplete)!==null&&i!==void 0?i:!1}initialize(e){this.atn=Vzr(e.rules),this.dfas=IVr(this.atn),this.callers=AVr(this.atn)}validateAmbiguousAlternationAlternatives(){return[]}validateEmptyOrAlternatives(){return[]}buildLookaheadForAlternation(e){let{prodOccurrence:r,rule:i,hasPredicates:a,dynamicTokensEnabled:o}=e,l=this.dfas,h=this.logging,d=this.incomplete,p=nF(i,"Alternation",r),y=this.atn.decisionMap[p].decision,v=wI(Hct({maxLookahead:1,occurrence:r,prodType:"Alternation",rule:i}),(w)=>wI(w,(T)=>T[0]));if(aut(v,!1)&&!o){let w=mBr(v,(T,x,k)=>(ult(x,(A)=>{if(A)T[A.tokenTypeIdx]=k,ult(A.categoryMatches,(R)=>{T[R]=k})}),T),{});if(a)return function(T){var x;let k=this.LA_FAST(1),A=w[k.tokenTypeIdx];if(T!==void 0&&A!==void 0){let R=(x=T[A])===null||x===void 0?void 0:x.GATE;if(R!==void 0&&R.call(this)===!1)return}return A};else return function(){let T=this.LA_FAST(1);return w[T.tokenTypeIdx]}}else if(a)return function(w){let T=new kVr,x=w===void 0?0:w.length;for(let A=0;AwI(T,(x)=>x[0]));if(aut(w)&&w[0][0]&&!o&&!RVr(y,a,p)){let T=w[0],x=lbi(T);if(x.length===1&&gbi(x[0].categoryMatches)){let A=x[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===A}}else{let k=mBr(x,(A,R)=>{if(R!==void 0)A[R.tokenTypeIdx]=!0,ult(R.categoryMatches,(N)=>{A[N]=!0});return A},{});return function(){let A=this.LA_FAST(1);return k[A.tokenTypeIdx]===!0}}}return function(){let T=ECe.call(this,l,v,bBr,h,d);return typeof T==="object"?!1:T===0}}};te(aut,"isLL1Sequence");te(AVr,"buildCallers");te(sut,"firstSet");te(RVr,"optionalHasFollowConflict");te(IVr,"initATNSimulator");te(ECe,"adaptivePredict");te(OVr,"performLookahead");te(NVr,"computeLookaheadTarget");te(LVr,"reportLookaheadAmbiguity");te(MVr,"buildAmbiguityError");te(DVr,"getProductionDslName");te(PVr,"buildAdaptivePredictError");te(BVr,"getExistingTargetState");te(FVr,"computeReachSet");te($Vr,"getReachableTarget");te(UVr,"getUniqueAlt");te(Mht,"newDFAState");te(out,"addDFAEdge");te(Dht,"addDFAState");te(GVr,"computeStartState");te(Mse,"closure");te(zVr,"getEpsilonTarget");te(VVr,"hasConfigInRuleStopState");te(HVr,"allConfigsInRuleStopStates");te(qVr,"hasConflictTerminatingPrediction");te(YVr,"getConflictingAltSets");te(WVr,"hasConflictingAltSet");te(jVr,"hasStateAssociatedWithOneAlt");te(KVr,"getBestGuess");XVr=class{static{te(this,"CstNodeBuilder")}constructor(){this.nodeStack=[]}get current(){return this.nodeStack[this.nodeStack.length-1]??this.rootNode}buildRootNode(e){return this.rootNode=new JVr(e),this.nodeStack=[this.rootNode],this.rootNode}buildCompositeNode(e){let r=new Pht;return r.grammarSource=e,this.appendChild(this.current,r),this.nodeStack.push(r),r}buildLeafNode(e,r){let i=this.createLeafNode(e,!r);if(r)i.grammarSource=r;return this.appendChild(this.current,i),i}createLeafNode(e,r){return new ZVr(e.startOffset,e.image.length,e.startLine-1,e.startColumn-1,e.endLine-1,e.endColumn,e.tokenType,r)}appendChild(e,r){r.container=e,e.content.push(r)}appendChildren(e,r){for(let i of r)i.container=e;if(e.content.length===0)e.content=r.slice();else e.content.push(...r)}insertChildren(e,r,i){for(let a of i)a.container=e;e.content.splice(r,0,...i)}removeNode(e){let r=e.container;if(r){let i=r.content.indexOf(e);if(i>=0)r.content.splice(i,1)}}addHiddenNodes(e){let r=[];for(let o of e)r.push(this.createLeafNode(o,!0));let i=this.current,a=!1;if(i.content.length>0){this.appendChildren(i,r);return}while(i.container){let o=i.container.content.indexOf(i);if(o>0){this.insertChildren(i.container,o,r),a=!0;break}i=i.container}if(!a)this.insertChildren(this.rootNode,0,r)}construct(e){let r=this.current;e.$cstNode=r;let i=this.nodeStack.pop();if(i)if(i.content.length===0)this.removeNode(i);else i.content=i.content.slice()}},QVr=class{static{te(this,"AbstractCstNode")}constructor(){this.container=void 0,this.grammarSource=void 0}get root(){let e=this;while(e.container)e=e.container;return e}get text(){return this.root.fullText.substring(this.offset,this.end)}},ZVr=class extends QVr{static{te(this,"LeafCstNodeImpl")}get offset(){return this._offset}get length(){return this._length}get end(){return this._offset+this._length}get hidden(){return this._hidden}get tokenType(){return this._tokenType}get astNode(){let e=this.container;if(!e)throw Error("This node has no associated AST element");return e.astNode}get range(){return{start:{line:this._startLine,character:this._startColumn},end:{line:this._endLine,character:this._endColumn}}}constructor(e,r,i,a,o,l,h,d=!1){super();this._hidden=d,this._offset=WB(e),this._length=WB(r),this._startLine=WB(i),this._startColumn=WB(a),this._endLine=WB(o),this._endColumn=WB(l),this._tokenType=h}};te(WB,"toSmi");Pht=class extends QVr{static{te(this,"CompositeCstNodeImpl")}constructor(){super(...arguments);this.content=[],this._astNode=void 0,this._rangeCache=void 0}get astNode(){let e=this;while(e){if(e._astNode)return e._astNode;e=e.container}throw Error("This node has no associated AST element")}set astNode(e){this._astNode=e}get hidden(){return!1}get offset(){return this.firstNonHiddenNode?.offset??0}get length(){return this.end-this.offset}get end(){return this.lastNonHiddenNode?.end??0}get range(){let e=this._rangeCache;if(e===void 0){let r=this.firstNonHiddenNode,i=this.lastNonHiddenNode;if(r&&i){let{range:a}=r,{range:o}=i;this._rangeCache=e={start:a.start,end:o.end.line=0;e--){let r=this.content[e];if(!r.hidden)return r}return this.content[this.content.length-1]}},JVr=class extends Pht{static{te(this,"RootCstNodeImpl")}get text(){return this._text.substring(this.offset,this.end)}get fullText(){return this._text}constructor(e){super();this._text="",this._text=e??""}},lut=Symbol("Datatype");te(wCe,"isDataTypeNode");eHr=te((e)=>e.endsWith(yBr)?e:e+yBr,"withRuleSuffix"),tHr=class{static{te(this,"AbstractLangiumParser")}constructor(e,r){this._unorderedGroups=new Map,this.allRules=new Map,this.lexer=e.parser.Lexer;let i=this.lexer.definition,a=e.LanguageMetaData.mode==="production";if(e.shared.profilers.LangiumProfiler?.isActive("parsing"))this.wrapper=new Sbi(i,{...e.parser.ParserConfig,skipValidations:a,errorMessageProvider:e.parser.ParserErrorMessageProvider},r,e.shared.profilers.LangiumProfiler.createTask("parsing",e.LanguageMetaData.languageId));else this.wrapper=new nHr(i,{...e.parser.ParserConfig,skipValidations:a,errorMessageProvider:e.parser.ParserErrorMessageProvider},r)}alternatives(e,r){this.wrapper.wrapOr(e,r)}optional(e,r){this.wrapper.wrapOption(e,r)}many(e,r){this.wrapper.wrapMany(e,r)}atLeastOne(e,r){this.wrapper.wrapAtLeastOne(e,r)}getRule(e){return this.allRules.get(e)}isRecording(){return this.wrapper.IS_RECORDING}get unorderedGroups(){return this._unorderedGroups}getRuleStack(){return this.wrapper.RULE_STACK}finalize(){this.wrapper.wrapSelfAnalysis()}},vbi=class extends tHr{static{te(this,"LangiumParser")}get current(){return this.stack[this.stack.length-1]}constructor(e){super(e,!1);this.nodeBuilder=new XVr,this.stack=[],this.assignmentMap=new Map,this.operatorPrecedence=new Map,this.linker=e.references.Linker,this.converter=e.parser.ValueConverter,this.astReflection=e.shared.AstReflection}rule(e,r){let i=this.computeRuleType(e),a=void 0;if(xse(e))a=e.name,this.registerPrecedenceMap(e);let o=this.wrapper.DEFINE_RULE(eHr(e.name),this.startImplementation(i,a,r).bind(this));if(this.allRules.set(e.name,o),Q3(e)&&e.entry)this.mainRule=o;return o}registerPrecedenceMap(e){let r=e.name,i=new Map;for(let a=0;a0)r=this.construct();if(r===void 0)throw Error("No result from parser");else if(this.stack.length>0)throw Error("Parser stack is not empty after parsing");return this.linkCstNode(r),r}linkCstNode(e){if(o1(e)&&e.$cstNode)e.$cstNode.astNode=e}startImplementation(e,r,i){return(a)=>{let o=!this.isRecording()&&e!==void 0;if(o){let l={$type:e};if(this.stack.push(l),e===lut)l.value="";else if(r!==void 0)l.$infixName=r}return i(a),o?this.construct():void 0}}extractHiddenTokens(e){let r=this.lexerResult.hidden;if(!r.length)return[];let i=e.startOffset;for(let a=0;ai)return r.splice(0,a);return r.splice(0,r.length)}consume(e,r,i){let a=this.wrapper.wrapConsume(e,r);if(!this.isRecording()&&this.isValidToken(a)){let o=this.extractHiddenTokens(a);this.nodeBuilder.addHiddenNodes(o);let l=this.nodeBuilder.buildLeafNode(a,i),{assignment:h,crossRef:d}=this.getAssignment(i),p=this.current;if(h){let m=q7(i)?a.image:this.converter.convert(a.image,l);this.assign(h.operator,h.feature,m,l,d)}else if(wCe(p)){let m=a.image;if(!q7(i))m=this.converter.convert(m,l).toString();p.value+=m}}}isValidToken(e){return!e.isInsertedInRecovery&&ICe(e)}subrule(e,r,i,a,o){let l;if(!this.isRecording()&&!i)l=this.nodeBuilder.buildCompositeNode(a);let h;try{h=this.wrapper.wrapSubrule(e,r,o)}finally{if(!this.isRecording()){if(h===void 0&&!i)h=this.construct();if(h!==void 0&&l&&l.length>0)this.performSubruleAssignment(h,a,l)}}}performSubruleAssignment(e,r,i){let{assignment:a,crossRef:o}=this.getAssignment(r);if(a)this.assign(a.operator,a.feature,e,i,o);else if(!a){let l=this.current;if(wCe(l))l.value+=e.toString();else if(typeof e==="object"&&e){let d=this.assignWithoutOverride(e,l);this.stack.pop(),this.stack.push(d)}}}action(e,r){if(!this.isRecording()){let i=this.current;if(r.feature&&r.operator){i=this.construct(),this.nodeBuilder.removeNode(i.$cstNode);let a=this.nodeBuilder.buildCompositeNode(r);this.nodeBuilder.appendChild(a,i.$cstNode);let o={$type:e};this.stack.push(o),this.assign(r.operator,r.feature,i,i.$cstNode)}else i.$type=e}}construct(){if(this.isRecording())return;let e=this.stack.pop();if(this.nodeBuilder.construct(e),"$infixName"in e)return this.constructInfix(e,this.operatorPrecedence.get(e.$infixName));else if(wCe(e))return this.converter.convert(e.value,e.$cstNode);else tFr(this.astReflection,e);return e}constructInfix(e,r){let i=e.parts;if(!Array.isArray(i)||i.length===0)return;let a=e.operators;if(!Array.isArray(a)||i.length<2)return i[0];let o=0,l=-1;for(let x=0;xl)l=A.precedence,o=x;else if(A.precedence===l){if(!A.rightAssoc)o=x}}let h=a.slice(0,o),d=a.slice(o+1),p=i.slice(0,o+1),m=i.slice(o+1),y={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:p,operators:h},v={$infixName:e.$infixName,$type:e.$type,$cstNode:e.$cstNode,parts:m,operators:d},w=this.constructInfix(y,r),T=this.constructInfix(v,r);return{$type:e.$type,$cstNode:e.$cstNode,left:w,operator:a[o],right:T}}getAssignment(e){if(!this.assignmentMap.has(e)){let r=zse(e,H7);this.assignmentMap.set(e,{assignment:r,crossRef:r&&Hse(r.terminal)?r.terminal.isMulti?"multi":"single":void 0})}return this.assignmentMap.get(e)}assign(e,r,i,a,o){let l=this.current,h;if(o==="single"&&typeof i==="string")h=this.linker.buildReference(l,r,a,i);else if(o==="multi"&&typeof i==="string")h=this.linker.buildMultiReference(l,r,a,i);else h=i;switch(this.linkCstNode(h),e){case"=":{l[r]=h;break}case"?=":{l[r]=!0;break}case"+=":{if(!Array.isArray(l[r]))l[r]=[];l[r].push(h)}}}assignWithoutOverride(e,r){for(let[i,a]of Object.entries(r)){let o=e[i];if(o===void 0)e[i]=a;else if(Array.isArray(o)&&Array.isArray(a))a.push(...o),e[i]=a}return e.$cstNode=void 0,e}get definitionErrors(){return this.wrapper.definitionErrors}},_bi=class{static{te(this,"AbstractParserErrorMessageProvider")}buildMismatchTokenMessage(e){return gY.buildMismatchTokenMessage(e)}buildNotAllInputParsedMessage(e){return gY.buildNotAllInputParsedMessage(e)}buildNoViableAltMessage(e){return gY.buildNoViableAltMessage(e)}buildEarlyExitMessage(e){return gY.buildEarlyExitMessage(e)}},rHr=class extends _bi{static{te(this,"LangiumParserErrorMessageProvider")}buildMismatchTokenMessage({expected:e,actual:r}){return`Expecting ${e.LABEL?"`"+e.LABEL+"`":e.name.endsWith(":KW")?`keyword '${e.name.substring(0,e.name.length-3)}'`:`token of type '${e.name}'`} but found \`${r.image}\`.`}buildNotAllInputParsedMessage({firstRedundant:e}){return`Expecting end of file but found \`${e.image}\`.`}},Ebi=class extends tHr{static{te(this,"LangiumCompletionParser")}constructor(e){super(e,!0);this.tokens=[],this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}action(){}construct(){return}parse(e){this.resetState();let r=this.lexer.tokenize(e,{mode:"partial"});return this.tokens=r.tokens,this.wrapper.input=[...this.tokens],this.mainRule.call(this.wrapper,{}),this.unorderedGroups.clear(),{tokens:this.tokens,elementStack:[...this.lastElementStack],tokenIndex:this.nextTokenIndex}}rule(e,r){let i=this.wrapper.DEFINE_RULE(eHr(e.name),this.startImplementation(r).bind(this));if(this.allRules.set(e.name,i),e.entry)this.mainRule=i;return i}resetState(){this.elementStack=[],this.lastElementStack=[],this.nextTokenIndex=0,this.stackSize=0}startImplementation(e){return(r)=>{let i=this.keepStackSize();try{e(r)}finally{this.resetStackSize(i)}}}removeUnexpectedElements(){this.elementStack.splice(this.stackSize)}keepStackSize(){let e=this.elementStack.length;return this.stackSize=e,e}resetStackSize(e){this.removeUnexpectedElements(),this.stackSize=e}consume(e,r,i){if(this.wrapper.wrapConsume(e,r),!this.isRecording())this.lastElementStack=[...this.elementStack,i],this.nextTokenIndex=this.currIdx+1}subrule(e,r,i,a,o){this.before(a),this.wrapper.wrapSubrule(e,r,o),this.after(a)}before(e){if(!this.isRecording())this.elementStack.push(e)}after(e){if(!this.isRecording()){let r=this.elementStack.lastIndexOf(e);if(r>=0)this.elementStack.splice(r)}}get currIdx(){return this.wrapper.currIdx}},wbi={recoveryEnabled:!0,nodeLocationTracking:"full",skipValidations:!0,errorMessageProvider:new rHr},nHr=class extends i0i{static{te(this,"ChevrotainWrapper")}constructor(e,r,i){let a=r&&"maxLookahead"in r;super(e,{...wbi,lookaheadStrategy:a?new mht({maxLookahead:r.maxLookahead}):new ybi({logging:r.skipValidations?()=>{}:void 0,incomplete:i}),...r})}get IS_RECORDING(){return this.RECORDING_PHASE}DEFINE_RULE(e,r,i){return this.RULE(e,r,i)}wrapSelfAnalysis(){this.performSelfAnalysis()}wrapConsume(e,r){return this.consume(e,r,void 0)}wrapSubrule(e,r,i){return this.subrule(e,r,{ARGS:[i]})}wrapOr(e,r){this.or(e,r)}wrapOption(e,r){this.option(e,r)}wrapMany(e,r){this.many(e,r)}wrapAtLeastOne(e,r){this.atLeastOne(e,r)}rule(e){return e.call(this,{})}},Sbi=class extends nHr{static{te(this,"ProfilerWrapper")}constructor(e,r,i,a){super(e,r,i);this.task=a}rule(e){this.task.start(),this.task.startSubTask(this.ruleName(e));try{return super.rule(e)}finally{this.task.stopSubTask(this.ruleName(e)),this.task.stop()}}ruleName(e){return e.ruleName}subrule(e,r,i){this.task.startSubTask(this.ruleName(r));try{return super.subrule(e,r,i)}finally{this.task.stopSubTask(this.ruleName(r))}}};te(Bht,"createParser");te(iHr,"buildRules");te(aHr,"buildInfixRule");te(j7,"buildElement");te(sHr,"buildAction");te(oHr,"buildRuleCall");te(lHr,"buildRuleCallPredicate");te(GC,"buildPredicate");te(cHr,"buildAlternatives");te(uHr,"buildUnorderedGroup");te(hHr,"buildGroup");te(Dse,"getGuardCondition");te(Fht,"buildCrossReference");te(dHr,"buildKeyword");te($ht,"wrap");te(tke,"getRule");te(fHr,"getRuleName");te(zCe,"getToken");te(pHr,"createCompletionParser");te(gHr,"createLangiumParser");te(mHr,"prepareLangiumParser");bHr=class{static{te(this,"DefaultTokenBuilder")}constructor(){this.diagnostics=[]}buildTokens(e,r){let i=Ef(Yut(e,!1)),a=this.buildTerminalTokens(i),o=this.buildKeywordTokens(i,a,r);return o.push(...a),o}flushLexingReport(e){return{diagnostics:this.popDiagnostics()}}popDiagnostics(){let e=[...this.diagnostics];return this.diagnostics=[],e}buildTerminalTokens(e){return e.filter(Z3).filter((r)=>!r.fragment).map((r)=>this.buildTerminalToken(r)).toArray()}buildTerminalToken(e){let r=O4e(e),i=this.requiresCustomPattern(r)?this.regexPatternFunction(r):r,a={name:e.name,PATTERN:i};if(typeof i==="function")a.LINE_BREAKS=!0;if(e.hidden)a.GROUP=qut(r)?l2.SKIPPED:"hidden";return a}requiresCustomPattern(e){if(e.flags.includes("u")||e.flags.includes("s"))return!0;else return!1}regexPatternFunction(e){let r=new RegExp(e,e.flags+"y");return(i,a)=>(r.lastIndex=a,r.exec(i))}buildKeywordTokens(e,r,i){return e.filter(AY).flatMap((a)=>kY(a).filter(q7)).distinct((a)=>a.value).toArray().sort((a,o)=>o.value.length-a.value.length).map((a)=>this.buildKeywordToken(a,r,Boolean(i?.caseInsensitive)))}buildKeywordToken(e,r,i){let a=this.buildKeywordPattern(e,i),o={name:e.value,PATTERN:a,LONGER_ALT:this.findLongerAlt(e,r)};if(typeof a==="function")o.LINE_BREAKS=!0;return o}buildKeywordPattern(e,r){return r?new RegExp(qse(e.value),"i"):e.value}findLongerAlt(e,r){return r.reduce((i,a)=>{let o=a?.PATTERN;if(o?.source&&IFr("^"+o.source+"$",e.value))i.push(a);return i},[])}},yHr=class{static{te(this,"DefaultValueConverter")}convert(e,r){let i=r.grammarSource;if(Hse(i))i=MFr(i);if(Y7(i)){let a=i.rule.ref;if(!a)throw Error("This cst node was not parsed by a rule.");return this.runConverter(a,e,r)}return e}runConverter(e,r,i){switch(e.name.toUpperCase()){case"INT":return pI.convertInt(r);case"STRING":return pI.convertString(r);case"ID":return pI.convertID(r)}switch(GFr(e)?.toLowerCase()){case"number":return pI.convertNumber(r);case"boolean":return pI.convertBoolean(r);case"bigint":return pI.convertBigint(r);case"date":return pI.convertDate(r);default:return r}}};(function(e){function r(m){let y="";for(let v=1;v{this.resolve=(i)=>(e(i),this),this.reject=(i)=>(r(i),this)})}},vBr=class e{static{te(this,"FullTextDocument")}constructor(r,i,a,o){this._uri=r,this._languageId=i,this._version=a,this._content=o,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){let i=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(i,a)}return this._content}update(r,i){for(let a of r)if(e.isIncremental(a)){let o=zht(a.range),l=this.offsetAt(o.start),h=this.offsetAt(o.end);this._content=this._content.substring(0,l)+a.text+this._content.substring(h,this._content.length);let d=Math.max(o.start.line,0),p=Math.max(o.end.line,0),m=this._lineOffsets,y=uut(a.text,!1,l);if(p-d===y.length)for(let w=0,T=y.length;wr)o=h;else a=h+1}let l=a-1;return r=this.ensureBeforeEOL(r,i[l]),{line:l,character:r-i[l]}}offsetAt(r){let i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;else if(r.line<0)return 0;let a=i[r.line];if(r.character<=0)return a;let o=r.line+1=i.length){let h=i.length-1;return{start:{line:h,character:0},end:{line:h,character:this._content.length-i[h]}}}else if(r<0)return{start:{line:0,character:0},end:{line:0,character:0}};let a=i[r],o=r+1=i.length)return"";else if(r<0)return"";let a=r+1i&&Ght(this._content.charCodeAt(r-1)))r--;return r}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let i=r;return i!==void 0&&i!==null&&typeof i.text==="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength==="number")}static isFull(r){let i=r;return i!==void 0&&i!==null&&typeof i.text==="string"&&i.range===void 0&&i.rangeLength===void 0}};(function(e){function r(o,l,h,d){return new vBr(o,l,h,d)}te(r,"create"),e.create=r;function i(o,l,h){if(o instanceof vBr)return o.update(l,h),o;else throw Error("TextDocument.update: document must be created by TextDocument.create")}te(i,"update"),e.update=i;function a(o,l){let h=o.getText(),d=VCe(l.map(EHr),(y,v)=>{let w=y.range.start.line-v.range.start.line;if(w===0)return y.range.start.character-v.range.start.character;return w}),p=0,m=[];for(let y of d){let v=o.offsetAt(y.range.start);if(vp)m.push(h.substring(p,v));if(y.newText.length)m.push(y.newText);p=o.offsetAt(y.range.end)}return m.push(h.substr(p)),m.join("")}te(a,"applyEdits"),e.applyEdits=a})(cut||(cut={}));te(VCe,"mergeSort");te(uut,"computeLineOffsets");te(Ght,"isEOL");te(zht,"getWellformedRange");te(EHr,"getWellformedEdit");(()=>{var e={975:(Q)=>{function Y(Z){if(typeof Z!="string")throw TypeError("Path must be a string. Received "+JSON.stringify(Z))}te(Y,"e");function K(Z,j){for(var ee,z="",ne=0,ie=-1,se=0,oe=0;oe<=Z.length;++oe){if(oe2){var he=z.lastIndexOf("/");if(he!==z.length-1){he===-1?(z="",ne=0):ne=(z=z.slice(0,he)).length-1-z.lastIndexOf("/"),ie=oe,se=0;continue}}else if(z.length===2||z.length===1){z="",ne=0,ie=oe,se=0;continue}}j&&(z.length>0?z+="/..":z="..",ne=2)}else z.length>0?z+="/"+Z.slice(ie+1,oe):z=Z.slice(ie+1,oe),ne=oe-ie-1;ie=oe,se=0}else ee===46&&se!==-1?++se:se=-1}return z}te(K,"r");var J={resolve:te(function(){for(var Z,j="",ee=!1,z=arguments.length-1;z>=-1&&!ee;z--){var ne;z>=0?ne=arguments[z]:(Z===void 0&&(Z=process.cwd()),ne=Z),Y(ne),ne.length!==0&&(j=ne+"/"+j,ee=ne.charCodeAt(0)===47)}return j=K(j,!ee),ee?j.length>0?"/"+j:"/":j.length>0?j:"."},"resolve"),normalize:te(function(Z){if(Y(Z),Z.length===0)return".";var j=Z.charCodeAt(0)===47,ee=Z.charCodeAt(Z.length-1)===47;return(Z=K(Z,!j)).length!==0||j||(Z="."),Z.length>0&&ee&&(Z+="/"),j?"/"+Z:Z},"normalize"),isAbsolute:te(function(Z){return Y(Z),Z.length>0&&Z.charCodeAt(0)===47},"isAbsolute"),join:te(function(){if(arguments.length===0)return".";for(var Z,j=0;j0&&(Z===void 0?Z=ee:Z+="/"+ee)}return Z===void 0?".":J.normalize(Z)},"join"),relative:te(function(Z,j){if(Y(Z),Y(j),Z===j)return"";if((Z=J.resolve(Z))===(j=J.resolve(j)))return"";for(var ee=1;eeoe){if(j.charCodeAt(ie+ye)===47)return j.slice(ie+ye+1);if(ye===0)return j.slice(ie+ye)}else ne>oe&&(Z.charCodeAt(ee+ye)===47?he=ye:ye===0&&(he=0));break}var Se=Z.charCodeAt(ee+ye);if(Se!==j.charCodeAt(ie+ye))break;Se===47&&(he=ye)}var Ie="";for(ye=ee+he+1;ye<=z;++ye)ye!==z&&Z.charCodeAt(ye)!==47||(Ie.length===0?Ie+="..":Ie+="/..");return Ie.length>0?Ie+j.slice(ie+he):(ie+=he,j.charCodeAt(ie)===47&&++ie,j.slice(ie))},"relative"),_makeLong:te(function(Z){return Z},"_makeLong"),dirname:te(function(Z){if(Y(Z),Z.length===0)return".";for(var j=Z.charCodeAt(0),ee=j===47,z=-1,ne=!0,ie=Z.length-1;ie>=1;--ie)if((j=Z.charCodeAt(ie))===47){if(!ne){z=ie;break}}else ne=!1;return z===-1?ee?"/":".":ee&&z===1?"//":Z.slice(0,z)},"dirname"),basename:te(function(Z,j){if(j!==void 0&&typeof j!="string")throw TypeError('"ext" argument must be a string');Y(Z);var ee,z=0,ne=-1,ie=!0;if(j!==void 0&&j.length>0&&j.length<=Z.length){if(j.length===Z.length&&j===Z)return"";var se=j.length-1,oe=-1;for(ee=Z.length-1;ee>=0;--ee){var he=Z.charCodeAt(ee);if(he===47){if(!ie){z=ee+1;break}}else oe===-1&&(ie=!1,oe=ee+1),se>=0&&(he===j.charCodeAt(se)?--se==-1&&(ne=ee):(se=-1,ne=oe))}return z===ne?ne=oe:ne===-1&&(ne=Z.length),Z.slice(z,ne)}for(ee=Z.length-1;ee>=0;--ee)if(Z.charCodeAt(ee)===47){if(!ie){z=ee+1;break}}else ne===-1&&(ie=!1,ne=ee+1);return ne===-1?"":Z.slice(z,ne)},"basename"),extname:te(function(Z){Y(Z);for(var j=-1,ee=0,z=-1,ne=!0,ie=0,se=Z.length-1;se>=0;--se){var oe=Z.charCodeAt(se);if(oe!==47)z===-1&&(ne=!1,z=se+1),oe===46?j===-1?j=se:ie!==1&&(ie=1):j!==-1&&(ie=-1);else if(!ne){ee=se+1;break}}return j===-1||z===-1||ie===0||ie===1&&j===z-1&&j===ee+1?"":Z.slice(j,z)},"extname"),format:te(function(Z){if(Z===null||typeof Z!="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof Z);return function(j,ee){var z=ee.dir||ee.root,ne=ee.base||(ee.name||"")+(ee.ext||"");return z?z===ee.root?z+ne:z+"/"+ne:ne}(0,Z)},"format"),parse:te(function(Z){Y(Z);var j={root:"",dir:"",base:"",ext:"",name:""};if(Z.length===0)return j;var ee,z=Z.charCodeAt(0),ne=z===47;ne?(j.root="/",ee=1):ee=0;for(var ie=-1,se=0,oe=-1,he=!0,ye=Z.length-1,Se=0;ye>=ee;--ye)if((z=Z.charCodeAt(ye))!==47)oe===-1&&(he=!1,oe=ye+1),z===46?ie===-1?ie=ye:Se!==1&&(Se=1):ie!==-1&&(Se=-1);else if(!he){se=ye+1;break}return ie===-1||oe===-1||Se===0||Se===1&&ie===oe-1&&ie===se+1?oe!==-1&&(j.base=j.name=se===0&&ne?Z.slice(1,oe):Z.slice(se,oe)):(se===0&&ne?(j.name=Z.slice(1,ie),j.base=Z.slice(1,oe)):(j.name=Z.slice(se,ie),j.base=Z.slice(se,oe)),j.ext=Z.slice(ie,oe)),se>0?j.dir=Z.slice(0,se-1):ne&&(j.dir="/"),j},"parse"),sep:"/",delimiter:":",win32:null,posix:null};J.posix=J,Q.exports=J}},r={};function i(Q){var Y=r[Q];if(Y!==void 0)return Y.exports;var K=r[Q]={exports:{}};return e[Q](K,K.exports,i),K.exports}te(i,"r"),i.d=(Q,Y)=>{for(var K in Y)i.o(Y,K)&&!i.o(Q,K)&&Object.defineProperty(Q,K,{enumerable:!0,get:Y[K]})},i.o=(Q,Y)=>Object.prototype.hasOwnProperty.call(Q,Y),i.r=(Q)=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})};var a={};let o;if(i.r(a),i.d(a,{URI:te(()=>w,"URI"),Utils:te(()=>X,"Utils")}),typeof process=="object")o=process.platform==="win32";else if(typeof navigator=="object")o=navigator.userAgent.indexOf("Windows")>=0;let l=/^\w[\w\d+.-]*$/,h=/^\//,d=/^\/\//;function p(Q,Y){if(!Q.scheme&&Y)throw Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${Q.authority}", path: "${Q.path}", query: "${Q.query}", fragment: "${Q.fragment}"}`);if(Q.scheme&&!l.test(Q.scheme))throw Error("[UriError]: Scheme contains illegal characters.");if(Q.path){if(Q.authority){if(!h.test(Q.path))throw Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(d.test(Q.path))throw Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}te(p,"a");let m="",y="/",v=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class w{static{te(this,"l")}static isUri(Q){return Q instanceof w||!!Q&&typeof Q.authority=="string"&&typeof Q.fragment=="string"&&typeof Q.path=="string"&&typeof Q.query=="string"&&typeof Q.scheme=="string"&&typeof Q.fsPath=="string"&&typeof Q.with=="function"&&typeof Q.toString=="function"}scheme;authority;path;query;fragment;constructor(Q,Y,K,J,Z,j=!1){typeof Q=="object"?(this.scheme=Q.scheme||m,this.authority=Q.authority||m,this.path=Q.path||m,this.query=Q.query||m,this.fragment=Q.fragment||m):(this.scheme=function(ee,z){return ee||z?ee:"file"}(Q,j),this.authority=Y||m,this.path=function(ee,z){switch(ee){case"https":case"http":case"file":z?z[0]!==y&&(z=y+z):z=y}return z}(this.scheme,K||m),this.query=J||m,this.fragment=Z||m,p(this,j))}get fsPath(){return N(this,!1)}with(Q){if(!Q)return this;let{scheme:Y,authority:K,path:J,query:Z,fragment:j}=Q;return Y===void 0?Y=this.scheme:Y===null&&(Y=m),K===void 0?K=this.authority:K===null&&(K=m),J===void 0?J=this.path:J===null&&(J=m),Z===void 0?Z=this.query:Z===null&&(Z=m),j===void 0?j=this.fragment:j===null&&(j=m),Y===this.scheme&&K===this.authority&&J===this.path&&Z===this.query&&j===this.fragment?this:new x(Y,K,J,Z,j)}static parse(Q,Y=!1){let K=v.exec(Q);return K?new x(K[2]||m,P(K[4]||m),P(K[5]||m),P(K[7]||m),P(K[9]||m),Y):new x(m,m,m,m,m)}static file(Q){let Y=m;if(o&&(Q=Q.replace(/\\/g,y)),Q[0]===y&&Q[1]===y){let K=Q.indexOf(y,2);K===-1?(Y=Q.substring(2),Q=y):(Y=Q.substring(2,K),Q=Q.substring(K)||y)}return new x("file",Y,Q,m,m)}static from(Q){let Y=new x(Q.scheme,Q.authority,Q.path,Q.query,Q.fragment);return p(Y,!0),Y}toString(Q=!1){return L(this,Q)}toJSON(){return this}static revive(Q){if(Q){if(Q instanceof w)return Q;{let Y=new x(Q);return Y._formatted=Q.external,Y._fsPath=Q._sep===T?Q.fsPath:null,Y}}return Q}}let T=o?1:void 0;class x extends w{static{te(this,"d")}_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=N(this,!1)),this._fsPath}toString(Q=!1){return Q?L(this,!0):(this._formatted||(this._formatted=L(this,!1)),this._formatted)}toJSON(){let Q={$mid:1};return this._fsPath&&(Q.fsPath=this._fsPath,Q._sep=T),this._formatted&&(Q.external=this._formatted),this.path&&(Q.path=this.path),this.scheme&&(Q.scheme=this.scheme),this.authority&&(Q.authority=this.authority),this.query&&(Q.query=this.query),this.fragment&&(Q.fragment=this.fragment),Q}}let k={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function A(Q,Y,K){let J,Z=-1;for(let j=0;j=97&&ee<=122||ee>=65&&ee<=90||ee>=48&&ee<=57||ee===45||ee===46||ee===95||ee===126||Y&&ee===47||K&&ee===91||K&&ee===93||K&&ee===58)Z!==-1&&(J+=encodeURIComponent(Q.substring(Z,j)),Z=-1),J!==void 0&&(J+=Q.charAt(j));else{J===void 0&&(J=Q.substr(0,j));let z=k[ee];z!==void 0?(Z!==-1&&(J+=encodeURIComponent(Q.substring(Z,j)),Z=-1),J+=z):Z===-1&&(Z=j)}}return Z!==-1&&(J+=encodeURIComponent(Q.substring(Z))),J!==void 0?J:Q}te(A,"m");function R(Q){let Y;for(let K=0;K1&&Q.scheme==="file"?`//${Q.authority}${Q.path}`:Q.path.charCodeAt(0)===47&&(Q.path.charCodeAt(1)>=65&&Q.path.charCodeAt(1)<=90||Q.path.charCodeAt(1)>=97&&Q.path.charCodeAt(1)<=122)&&Q.path.charCodeAt(2)===58?Y?Q.path.substr(1):Q.path[1].toLowerCase()+Q.path.substr(2):Q.path,o&&(K=K.replace(/\//g,"\\")),K}te(N,"v");function L(Q,Y){let K=Y?R:A,J="",{scheme:Z,authority:j,path:ee,query:z,fragment:ne}=Q;if(Z&&(J+=Z,J+=":"),(j||Z==="file")&&(J+=y,J+=y),j){let ie=j.indexOf("@");if(ie!==-1){let se=j.substr(0,ie);j=j.substr(ie+1),ie=se.lastIndexOf(":"),ie===-1?J+=K(se,!1,!1):(J+=K(se.substr(0,ie),!1,!1),J+=":",J+=K(se.substr(ie+1),!1,!0)),J+="@"}j=j.toLowerCase(),ie=j.lastIndexOf(":"),ie===-1?J+=K(j,!1,!0):(J+=K(j.substr(0,ie),!1,!0),J+=j.substr(ie))}if(ee){if(ee.length>=3&&ee.charCodeAt(0)===47&&ee.charCodeAt(2)===58){let ie=ee.charCodeAt(1);ie>=65&&ie<=90&&(ee=`/${String.fromCharCode(ie+32)}:${ee.substr(3)}`)}else if(ee.length>=2&&ee.charCodeAt(1)===58){let ie=ee.charCodeAt(0);ie>=65&&ie<=90&&(ee=`${String.fromCharCode(ie+32)}:${ee.substr(2)}`)}J+=K(ee,!0,!1)}return z&&(J+="?",J+=K(z,!1,!1)),ne&&(J+="#",J+=Y?ne:A(ne,!1,!1)),J}te(L,"b");function B(Q){try{return decodeURIComponent(Q)}catch{return Q.length>3?Q.substr(0,3)+B(Q.substr(3)):Q}}te(B,"C");let D=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function P(Q){return Q.match(D)?Q.replace(D,(Y)=>B(Y)):Q}te(P,"w");var F=i(975);let H=F.posix||F,W="/";var X;(function(Q){Q.joinPath=function(Y,...K){return Y.with({path:H.join(Y.path,...K)})},Q.resolvePath=function(Y,...K){let J=Y.path,Z=!1;J[0]!==W&&(J=W+J,Z=!0);let j=H.resolve(J,...K);return Z&&j[0]===W&&!Y.authority&&(j=j.substring(1)),Y.with({path:j})},Q.dirname=function(Y){if(Y.path.length===0||Y.path===W)return Y;let K=H.dirname(Y.path);return K.length===1&&K.charCodeAt(0)===46&&(K=""),Y.with({path:K})},Q.basename=function(Y){return H.basename(Y.path)},Q.extname=function(Y){return H.extname(Y.path)}})(X||(X={})),wHr=a})();({URI:rw,Utils:zae}=wHr);(function(e){e.basename=zae.basename,e.dirname=zae.dirname,e.extname=zae.extname,e.joinPath=zae.joinPath,e.resolvePath=zae.resolvePath;let r=typeof process==="object"&&process?.platform==="win32";function i(h,d){return h?.toString()===d?.toString()}te(i,"equals"),e.equals=i;function a(h,d){let p=typeof h==="string"?rw.parse(h).path:h.path,m=typeof d==="string"?rw.parse(d).path:d.path,y=p.split("/").filter((k)=>k.length>0),v=m.split("/").filter((k)=>k.length>0);if(r){let k=/^[A-Z]:$/;if(y[0]&&k.test(y[0]))y[0]=y[0].toLowerCase();if(v[0]&&k.test(v[0]))v[0]=v[0].toLowerCase();if(y[0]!==v[0])return m.substring(1)}let w=0;for(;w({name:a.name,uri:yT.joinPath(rw.parse(r),a.name).toString(),element:a.element}))}all(){return this.collectValues(this.root)}findAll(e){let r=this.getNode(this.normalizeUri(e),!1);if(!r)return[];return this.collectValues(r)}getNode(e,r){let i=e.split("/");if(e.charAt(e.length-1)==="/")i.pop();let a=this.root;for(let o of i){let l=a.children.get(o);if(!l)if(r)l={name:o,children:new Map,parent:a},a.children.set(o,l);else return;a=l}return a}collectValues(e){let r=[];if(e.element)r.push(e.element);for(let i of e.children.values())r.push(...this.collectValues(i));return r}};(function(e){e[e.Changed=0]="Changed",e[e.Parsed=1]="Parsed",e[e.IndexedContent=2]="IndexedContent",e[e.ComputedScopes=3]="ComputedScopes",e[e.Linked=4]="Linked",e[e.IndexedReferences=5]="IndexedReferences",e[e.Validated=6]="Validated"})(kc||(kc={}));Cbi=class{static{te(this,"DefaultLangiumDocumentFactory")}constructor(e){this.serviceRegistry=e.ServiceRegistry,this.textDocuments=e.workspace.TextDocuments,this.fileSystemProvider=e.workspace.FileSystemProvider}async fromUri(e,r=op.CancellationToken.None){let i=await this.getInitialText(e,r);return this.createAsync(e,i,r)}async getInitialText(e,r){return this.fileSystemProvider.readFile(e)}fromTextDocument(e,r,i){if(r=r??rw.parse(e.uri),op.CancellationToken.is(i))return this.createAsync(r,e,i);else return this.create(r,e,i)}fromString(e,r,i){if(op.CancellationToken.is(i))return this.createAsync(r,e,i);else return this.create(r,e,i)}fromModel(e,r){return this.create(r,{$model:e})}create(e,r,i){if(typeof r==="string"){let a=this.parse(e,r,i);return this.createLangiumDocument(a,e,void 0,r)}else if("$model"in r){let a={value:r.$model,parserErrors:[],lexerErrors:[]};return this.createLangiumDocument(a,e)}else{let a=this.parse(e,r.getText(),i);return this.createLangiumDocument(a,e,r)}}async createAsync(e,r,i){if(typeof r==="string"){let a=await this.parseAsync(e,r,i);return this.createLangiumDocument(a,e,void 0,r)}else{let a=await this.parseAsync(e,r.getText(),i);return this.createLangiumDocument(a,e,r)}}createLangiumDocument(e,r,i,a){let o;if(i)o={parseResult:e,uri:r,state:kc.Parsed,references:[],textDocument:i};else{let l=this.createTextDocumentGetter(r,a);o={parseResult:e,uri:r,state:kc.Parsed,references:[],get textDocument(){return l()}}}return e.value.$document=o,o}async update(e,r){let i=e.parseResult.value.$cstNode?.root.fullText,a=this.textDocuments?.get(e.uri.toString()),o=await this.getUpdatedText(e,a,r);if(a)Object.defineProperty(e,"textDocument",{value:a});else{let l=this.createTextDocumentGetter(e.uri,o);Object.defineProperty(e,"textDocument",{get:l})}if(i!==o)e.parseResult=await this.parseAsync(e.uri,o,r),e.parseResult.value.$document=e;return e.state=kc.Parsed,e}async getUpdatedText(e,r,i){return r?r.getText():await this.fileSystemProvider.readFile(e.uri)}parse(e,r,i){return this.serviceRegistry.getServices(e).parser.LangiumParser.parse(r,i)}parseAsync(e,r,i){return this.serviceRegistry.getServices(e).parser.AsyncParser.parse(r,i)}createTextDocumentGetter(e,r){let i=this.serviceRegistry,a=void 0;return()=>a??(a=cut.create(e.toString(),i.getServices(e).LanguageMetaData.languageId,0,r??""))}},kbi=class{static{te(this,"DefaultLangiumDocuments")}constructor(e){this.documentTrie=new xbi,this.services=e,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.documentBuilder=()=>e.workspace.DocumentBuilder}get all(){return Ef(this.documentTrie.all())}addDocument(e){let r=e.uri.toString();if(this.documentTrie.has(r))throw Error(`A document with the URI '${r}' is already present.`);this.documentTrie.insert(r,e)}getDocument(e){let r=e.toString();return this.documentTrie.find(r)}getDocuments(e){let r=e.toString();return this.documentTrie.findAll(r)}async getOrCreateDocument(e,r){let i=this.getDocument(e);if(i)return i;return i=await this.langiumDocumentFactory.fromUri(e,r),this.addDocument(i),i}createDocument(e,r,i){if(i)return this.langiumDocumentFactory.fromString(r,e,i).then((a)=>(this.addDocument(a),a));else{let a=this.langiumDocumentFactory.fromString(r,e);return this.addDocument(a),a}}hasDocument(e){return this.documentTrie.has(e.toString())}invalidateDocument(e){let r=e.toString(),i=this.documentTrie.find(r);if(i)this.documentBuilder().resetToState(i,kc.Changed);return i}deleteDocument(e){let r=e.toString(),i=this.documentTrie.find(r);if(i)i.state=kc.Changed,this.documentTrie.delete(r);return i}deleteDocuments(e){let r=e.toString(),i=this.documentTrie.findAll(r);for(let a of i)a.state=kc.Changed;return this.documentTrie.delete(r),i}},Zq=Symbol("RefResolving"),Abi=class{static{te(this,"DefaultReferenceImpl")}constructor(e,r,i,a,o){this.resolver=e,this.node=r,this.property=i,this._ref=void 0,this.$refNode=a,this.$refText=o}get ref(){return this.resolver.resolveReference(this,this.node,this.property)}get $nodeDescription(){return this._nodeDescription}get error(){return pY(this._ref)?this._ref:void 0}},Rbi=class{static{te(this,"DefaultMultiReferenceImpl")}constructor(e,r,i,a,o){this.resolver=e,this.node=r,this.property=i,this._items=void 0,this.$refNode=a,this.$refText=o}get items(){return this.resolver.resolveMultiReference(this,this.node,this.property)}get error(){return this._linkingError}},Ibi=class{static{te(this,"DefaultLinker")}constructor(e){this.reflection=e.shared.AstReflection,this.langiumDocuments=()=>e.shared.workspace.LangiumDocuments,this.scopeProvider=e.references.ScopeProvider,this.astNodeLocator=e.workspace.AstNodeLocator,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId,this.referenceResolver={resolveReference:this.resolveReference.bind(this),resolveMultiReference:this.resolveMultiReference.bind(this)}}async link(e,r=op.CancellationToken.None){if(this.profiler?.isActive("linking")){let i=this.profiler.createTask("linking",this.languageId);i.start();try{for(let a of j3(e.parseResult.value))await cy(r),Tse(a).forEach((o)=>{let l=`${a.$type}:${o.property}`;i.startSubTask(l);try{this.doLink(o,e)}finally{i.stopSubTask(l)}})}finally{i.stop()}}else for(let i of j3(e.parseResult.value))await cy(r),Tse(i).forEach((a)=>this.doLink(a,e))}doLink(e,r){let i=e.reference;if("_ref"in i&&i._ref===void 0){i._ref=Zq;try{let a=this.getCandidate(e);if(pY(a))i._ref=a;else{i._nodeDescription=a;let o=this.loadAstNode(a);i._ref=o??this.createLinkingError(e,a)}}catch(a){console.error(`An error occurred while resolving reference to '${i.$refText}':`,a);let o=a.message??String(a);i._ref={info:e,message:`An error occurred while resolving reference to '${i.$refText}': ${o}`}}r.references.push(i)}else if("_items"in i&&i._items===void 0){i._items=Zq;try{let a=this.getCandidates(e),o=[];if(pY(a))i._linkingError=a;else for(let l of a){let h=this.loadAstNode(l);if(h)o.push({ref:h,$nodeDescription:l})}i._items=o}catch(a){i._linkingError={info:e,message:`An error occurred while resolving reference to '${i.$refText}': ${a}`},i._items=[]}r.references.push(i)}}unlink(e){for(let r of e.references)if("_ref"in r)r._ref=void 0,delete r._nodeDescription;else if("_items"in r)r._items=void 0,delete r._linkingError;e.references=[]}getCandidate(e){return this.scopeProvider.getScope(e).getElement(e.reference.$refText)??this.createLinkingError(e)}getCandidates(e){let i=this.scopeProvider.getScope(e).getElements(e.reference.$refText).distinct((a)=>`${a.documentUri}#${a.path}`).toArray();return i.length>0?i:this.createLinkingError(e)}buildReference(e,r,i,a){return new Abi(this.referenceResolver,e,r,i,a)}buildMultiReference(e,r,i,a){return new Rbi(this.referenceResolver,e,r,i,a)}resolveReference(e,r,i){if(o1(e._ref))return e._ref;else if(QBr(e._nodeDescription)){let a=this.loadAstNode(e._nodeDescription);e._ref=a??this.createLinkingError({reference:e,container:r,property:i},e._nodeDescription)}else if(e._ref===void 0){e._ref=Zq;let a=use(r).$document,o=this.getLinkedNode({reference:e,container:r,property:i});if(o.error&&a&&a.stateHse(r)&&r.isMulti)}findDeclarations(e){if(e){let r=$Fr(e),i=e.astNode;if(r&&i){let a=i[r.feature];if(bT(a)||SI(a))return kct(a);else if(Array.isArray(a)){for(let o of a)if((bT(o)||SI(o))&&o.$refNode&&o.$refNode.offset<=e.offset&&o.$refNode.end>=e.end)return kct(o)}}if(i){let a=this.nameProvider.getNameNode(i);if(a&&(a===e||EFr(e,a)))return this.getSelfNodes(i)}}return[]}getSelfNodes(e){if(!this.hasMultiReference)return[e];else{let r=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e)),i=this.getNodeFromReferenceDescription(r.head());if(i){for(let a of Tse(i))if(SI(a.reference)&&a.reference.items.some((o)=>o.ref===e))return a.reference.items.map((o)=>o.ref)}return[e]}}getNodeFromReferenceDescription(e){if(!e)return;let r=this.documents.getDocument(e.sourceUri);if(r)return this.nodeLocator.getAstNode(r.parseResult.value,e.sourcePath);return}findDeclarationNodes(e){let r=this.findDeclarations(e),i=[];for(let a of r){let o=this.nameProvider.getNameNode(a)??a.$cstNode;if(o)i.push(o)}return i}findReferences(e,r){let i=[];if(r.includeDeclaration)i.push(...this.getSelfReferences(e));let a=this.index.findAllReferences(e,this.nodeLocator.getAstNodePath(e));if(r.documentUri)a=a.filter((o)=>yT.equals(o.sourceUri,r.documentUri));return i.push(...a),Ef(i)}getSelfReferences(e){let r=this.getSelfNodes(e),i=[];for(let a of r){let o=this.nameProvider.getNameNode(a);if(o){let l=W3(a),h=this.nodeLocator.getAstNodePath(a);i.push({sourceUri:l.uri,sourcePath:h,targetUri:l.uri,targetPath:h,segment:Cse(o),local:!0})}}return i}},Pse=class{static{te(this,"MultiMap")}constructor(e){if(this.map=new Map,e)for(let[r,i]of e)this.add(r,i)}get size(){return Cct.sum(Ef(this.map.values()).map((e)=>e.length))}clear(){this.map.clear()}delete(e,r){if(r===void 0)return this.map.delete(e);else{let i=this.map.get(e);if(i){let a=i.indexOf(r);if(a>=0){if(i.length===1)this.map.delete(e);else i.splice(a,1);return!0}}return!1}}get(e){return this.map.get(e)??[]}getStream(e){let r=this.map.get(e);return r?Ef(r):eFr}has(e,r){if(r===void 0)return this.map.has(e);else{let i=this.map.get(e);if(i)return i.indexOf(r)>=0;return!1}}add(e,r){if(this.map.has(e))this.map.get(e).push(r);else this.map.set(e,[r]);return this}addAll(e,r){if(this.map.has(e))this.map.get(e).push(...r);else this.map.set(e,Array.from(r));return this}forEach(e){this.map.forEach((r,i)=>r.forEach((a)=>e(a,i,this)))}[Symbol.iterator](){return this.entries().iterator()}entries(){return Ef(this.map.entries()).flatMap(([e,r])=>r.map((i)=>[e,i]))}keys(){return Ef(this.map.keys())}values(){return Ef(this.map.values()).flat()}entriesGroupedByKey(){return Ef(this.map.entries())}},_Br=class{static{te(this,"BiMap")}get size(){return this.map.size}constructor(e){if(this.map=new Map,this.inverse=new Map,e)for(let[r,i]of e)this.set(r,i)}clear(){this.map.clear(),this.inverse.clear()}set(e,r){return this.map.set(e,r),this.inverse.set(r,e),this}get(e){return this.map.get(e)}getKey(e){return this.inverse.get(e)}delete(e){let r=this.map.get(e);if(r!==void 0)return this.map.delete(e),this.inverse.delete(r),!0;return!1}},Lbi=class{static{te(this,"DefaultScopeComputation")}constructor(e){this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider}async collectExportedSymbols(e,r=op.CancellationToken.None){return this.collectExportedSymbolsForNode(e.parseResult.value,e,void 0,r)}async collectExportedSymbolsForNode(e,r,i=k4e,a=op.CancellationToken.None){let o=[];this.addExportedSymbol(e,o,r);for(let l of i(e))await cy(a),this.addExportedSymbol(l,o,r);return o}addExportedSymbol(e,r,i){let a=this.nameProvider.getName(e);if(a)r.push(this.descriptions.createDescription(e,a,i))}async collectLocalSymbols(e,r=op.CancellationToken.None){let i=e.parseResult.value,a=new Pse;for(let o of kY(i))await cy(r),this.addLocalSymbol(o,e,a);return a}addLocalSymbol(e,r,i){let a=e.$container;if(a){let o=this.nameProvider.getName(e);if(o)i.add(a,this.descriptions.createDescription(e,o,r))}}},EBr=class{static{te(this,"StreamScope")}constructor(e,r,i){this.elements=e,this.outerScope=r,this.caseInsensitive=i?.caseInsensitive??!1,this.concatOuterScope=i?.concatOuterScope??!0}getAllElements(){if(this.outerScope)return this.elements.concat(this.outerScope.getAllElements());else return this.elements}getElement(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.caseInsensitive?this.elements.find((a)=>a.name.toLowerCase()===r):this.elements.find((a)=>a.name===e);if(i)return i;if(this.outerScope)return this.outerScope.getElement(e);return}getElements(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.caseInsensitive?this.elements.filter((a)=>a.name.toLowerCase()===r):this.elements.filter((a)=>a.name===e);if((this.concatOuterScope||i.isEmpty())&&this.outerScope)return i.concat(this.outerScope.getElements(e));else return i}},Mbi=class{static{te(this,"MultiMapScope")}constructor(e,r,i){this.elements=new Pse,this.caseInsensitive=i?.caseInsensitive??!1,this.concatOuterScope=i?.concatOuterScope??!0;for(let a of e){let o=this.caseInsensitive?a.name.toLowerCase():a.name;this.elements.add(o,a)}this.outerScope=r}getElement(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.elements.get(r)[0];if(i)return i;if(this.outerScope)return this.outerScope.getElement(e);return}getElements(e){let r=this.caseInsensitive?e.toLowerCase():e,i=this.elements.get(r);if((this.concatOuterScope||i.length===0)&&this.outerScope)return Ef(i).concat(this.outerScope.getElements(e));else return Ef(i)}getAllElements(){let e=Ef(this.elements.values());if(this.outerScope)e=e.concat(this.outerScope.getAllElements());return e}},THr=class{static{te(this,"DisposableCache")}constructor(){this.toDispose=[],this.isDisposed=!1}onDispose(e){this.toDispose.push(e)}dispose(){this.throwIfDisposed(),this.clear(),this.isDisposed=!0,this.toDispose.forEach((e)=>e.dispose())}throwIfDisposed(){if(this.isDisposed)throw Error("This cache has already been disposed")}},Dbi=class extends THr{static{te(this,"SimpleCache")}constructor(){super(...arguments);this.cache=new Map}has(e){return this.throwIfDisposed(),this.cache.has(e)}set(e,r){this.throwIfDisposed(),this.cache.set(e,r)}get(e,r){if(this.throwIfDisposed(),this.cache.has(e))return this.cache.get(e);else if(r){let i=r();return this.cache.set(e,i),i}else return}delete(e){return this.throwIfDisposed(),this.cache.delete(e)}clear(){this.throwIfDisposed(),this.cache.clear()}},Pbi=class extends THr{static{te(this,"ContextCache")}constructor(e){super();this.cache=new Map,this.converter=e??((r)=>r)}has(e,r){return this.throwIfDisposed(),this.cacheForContext(e).has(r)}set(e,r,i){this.throwIfDisposed(),this.cacheForContext(e).set(r,i)}get(e,r,i){this.throwIfDisposed();let a=this.cacheForContext(e);if(a.has(r))return a.get(r);else if(i){let o=i();return a.set(r,o),o}else return}delete(e,r){return this.throwIfDisposed(),this.cacheForContext(e).delete(r)}clear(e){if(this.throwIfDisposed(),e){let r=this.converter(e);this.cache.delete(r)}else this.cache.clear()}cacheForContext(e){let r=this.converter(e),i=this.cache.get(r);if(!i)i=new Map,this.cache.set(r,i);return i}},Bbi=class extends Dbi{static{te(this,"WorkspaceCache")}constructor(e,r){super();if(r)this.toDispose.push(e.workspace.DocumentBuilder.onBuildPhase(r,()=>{this.clear()})),this.toDispose.push(e.workspace.DocumentBuilder.onUpdate((i,a)=>{if(a.length>0)this.clear()}));else this.toDispose.push(e.workspace.DocumentBuilder.onUpdate(()=>{this.clear()}))}},Fbi=class{static{te(this,"DefaultScopeProvider")}constructor(e){this.reflection=e.shared.AstReflection,this.nameProvider=e.references.NameProvider,this.descriptions=e.workspace.AstNodeDescriptionProvider,this.indexManager=e.shared.workspace.IndexManager,this.globalScopeCache=new Bbi(e.shared)}getScope(e){let r=[],i=this.reflection.getReferenceType(e),a=W3(e.container).localSymbols;if(a){let l=e.container;do{if(a.has(l))r.push(a.getStream(l).filter((h)=>this.reflection.isSubtype(h.type,i)));l=l.$container}while(l)}let o=this.getGlobalScope(i,e);for(let l=r.length-1;l>=0;l--)o=this.createScope(r[l],o);return o}createScope(e,r,i){return new EBr(Ef(e),r,i)}createScopeForNodes(e,r,i){let a=Ef(e).map((o)=>{let l=this.nameProvider.getName(o);if(l)return this.descriptions.createDescription(o,l);return}).nonNullable();return new EBr(a,r,i)}getGlobalScope(e,r){return this.globalScopeCache.get(e,()=>new Mbi(this.indexManager.allElements(e)))}};te(xHr,"isAstNodeWithComment");te(hut,"isIntermediateReference");$bi=class{static{te(this,"DefaultJsonSerializer")}constructor(e){this.ignoreProperties=new Set(["$container","$containerProperty","$containerIndex","$document","$cstNode"]),this.langiumDocuments=e.shared.workspace.LangiumDocuments,this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider,this.commentProvider=e.documentation.CommentProvider}serialize(e,r){let i=r??{},a=r?.replacer,o=te((h,d)=>this.replacer(h,d,i),"defaultReplacer"),l=a?(h,d)=>a(h,d,o):o;try{return this.currentDocument=W3(e),JSON.stringify(e,l,r?.space)}finally{this.currentDocument=void 0}}deserialize(e,r){let i=r??{},a=JSON.parse(e);return this.linkNode(a,a,i),a}replacer(e,r,{refText:i,sourceText:a,textRegions:o,comments:l,uriConverter:h}){if(this.ignoreProperties.has(e))return;else if(bT(r)){let d=r.ref,p=i?r.$refText:void 0;if(d){let m=W3(d),y="";if(this.currentDocument&&this.currentDocument!==m)if(h)y=h(m.uri,d);else y=m.uri.toString();let v=this.astNodeLocator.getAstNodePath(d);return{$ref:`${y}#${v}`,$refText:p}}else return{$error:r.error?.message??"Could not resolve reference",$refText:p}}else if(SI(r)){let d=i?r.$refText:void 0,p=[];for(let m of r.items){let y=m.ref,v=W3(m.ref),w="";if(this.currentDocument&&this.currentDocument!==v)if(h)w=h(v.uri,y);else w=v.uri.toString();let T=this.astNodeLocator.getAstNodePath(y);p.push(`${w}#${T}`)}return{$refs:p,$refText:d}}else if(o1(r)){let d=void 0;if(o){if(d=this.addAstNodeRegionWithAssignmentsTo({...r}),(!e||r.$document)&&d?.$textRegion)d.$textRegion.documentURI=this.currentDocument?.uri.toString()}if(a&&!e)d??(d={...r}),d.$sourceText=r.$cstNode?.text;if(l){d??(d={...r});let p=this.commentProvider.getComment(r);if(p)d.$comment=p.replace(/\r/g,"")}return d??r}else return r}addAstNodeRegionWithAssignmentsTo(e){let r=te((i)=>({offset:i.offset,end:i.end,length:i.length,range:i.range}),"createDocumentSegment");if(e.$cstNode){let i=e.$textRegion=r(e.$cstNode),a=i.assignments={};return Object.keys(e).filter((o)=>!o.startsWith("$")).forEach((o)=>{let l=PFr(e.$cstNode,o).map(r);if(l.length!==0)a[o]=l}),e}return}linkNode(e,r,i,a,o,l){for(let[d,p]of Object.entries(e))if(Array.isArray(p))for(let m=0;m{await this.handleException(()=>e.call(r,i,a,o),"An error occurred during validation",a,i)}}async handleException(e,r,i,a){try{await e()}catch(o){if(jse(o))throw o;if(console.error(`${r}:`,o),o instanceof Error&&o.stack)console.error(o.stack);let l=o instanceof Error?o.message:String(o);i("error",`${r}: ${l}`,{node:a})}}addEntry(e,r){if(e==="AstNode"){this.entries.add("AstNode",r);return}for(let i of this.reflection.getAllSubTypes(e))this.entries.add(i,r)}getChecks(e,r){let i=Ef(this.entries.get(e)).concat(this.entries.get("AstNode"));if(r)i=i.filter((a)=>r.includes(a.category));return i.map((a)=>a.check)}registerBeforeDocument(e,r=this){this.entriesBefore.push(this.wrapPreparationException(e,"An error occurred during set-up of the validation",r))}registerAfterDocument(e,r=this){this.entriesAfter.push(this.wrapPreparationException(e,"An error occurred during tear-down of the validation",r))}wrapPreparationException(e,r,i){return async(a,o,l,h)=>{await this.handleException(()=>e.call(i,a,o,l,h),r,o,a)}}get checksBefore(){return this.entriesBefore}get checksAfter(){return this.entriesAfter}getAllValidationCategories(e){return this.knownCategories}},zbi=Object.freeze({validateNode:!0,validateChildren:!0}),Vbi=class{static{te(this,"DefaultDocumentValidator")}constructor(e){this.validationRegistry=e.validation.ValidationRegistry,this.metadata=e.LanguageMetaData,this.profiler=e.shared.profilers.LangiumProfiler,this.languageId=e.LanguageMetaData.languageId}async validateDocument(e,r={},i=op.CancellationToken.None){let a=e.parseResult,o=[];if(await cy(i),!r.categories||r.categories.includes("built-in")){if(this.processLexingErrors(a,o,r),r.stopAfterLexingErrors&&o.some((l)=>l.data?.code===zC.LexingError))return o;if(this.processParsingErrors(a,o,r),r.stopAfterParsingErrors&&o.some((l)=>l.data?.code===zC.ParsingError))return o;if(this.processLinkingErrors(e,o,r),r.stopAfterLinkingErrors&&o.some((l)=>l.data?.code===zC.LinkingError))return o}try{o.push(...await this.validateAst(a.value,r,i))}catch(l){if(jse(l))throw l;console.error("An error occurred during validation:",l)}return await cy(i),o}processLexingErrors(e,r,i){let a=[...e.lexerErrors,...e.lexerReport?.diagnostics??[]];for(let o of a){let l=o.severity??"error",h={severity:TCe(l),range:{start:{line:o.line-1,character:o.column-1},end:{line:o.line-1,character:o.column+o.length-1}},message:o.message,data:kHr(l),source:this.getSource()};r.push(h)}}processParsingErrors(e,r,i){for(let a of e.parserErrors){let o=void 0;if(!ICe(a.token)){if("previousToken"in a){let l=a.previousToken;if(ICe(l)){let h={line:l.endLine-1,character:l.endColumn};o={start:h,end:h}}else{let h={line:0,character:0};o={start:h,end:h}}}}else o=wFr(a.token);if(o){let l={severity:TCe("error"),range:o,message:a.message,data:bY(zC.ParsingError),source:this.getSource()};r.push(l)}}}processLinkingErrors(e,r,i){for(let a of e.references){let o=a.error;if(o){let l={node:o.info.container,range:a.$refNode?.range,property:o.info.property,index:o.info.index,data:{code:zC.LinkingError,containerType:o.info.container.$type,property:o.info.property,refText:o.info.reference.$refText}};r.push(this.toDiagnostic("error",o.message,l))}}}async validateAst(e,r,i=op.CancellationToken.None){let a=[],o=te((l,h,d)=>{a.push(this.toDiagnostic(l,h,d))},"acceptor");return await this.validateAstBefore(e,r,o,i),await this.validateAstNodes(e,r,o,i),await this.validateAstAfter(e,r,o,i),a}async validateAstBefore(e,r,i,a=op.CancellationToken.None){let o=this.validationRegistry.checksBefore;for(let l of o)await cy(a),await l(e,i,r.categories??[],a)}async validateAstNodes(e,r,i,a=op.CancellationToken.None){if(this.profiler?.isActive("validating")){let o=this.profiler.createTask("validating",this.languageId);o.start();try{let l=j3(e).iterator();for(let h of l){o.startSubTask(h.$type);let d=this.validateSingleNodeOptions(h,r);if(d.validateNode)try{let p=this.validationRegistry.getChecks(h.$type,r.categories);for(let m of p)await m(h,i,a)}finally{o.stopSubTask(h.$type)}if(!d.validateChildren)l.prune()}}finally{o.stop()}}else{let o=j3(e).iterator();for(let l of o){await cy(a);let h=this.validateSingleNodeOptions(l,r);if(h.validateNode){let d=this.validationRegistry.getChecks(l.$type,r.categories);for(let p of d)await p(l,i,a)}if(!h.validateChildren)o.prune()}}}validateSingleNodeOptions(e,r){return zbi}async validateAstAfter(e,r,i,a=op.CancellationToken.None){let o=this.validationRegistry.checksAfter;for(let l of o)await cy(a),await l(e,i,r.categories??[],a)}toDiagnostic(e,r,i){return{message:r,range:CHr(i),severity:TCe(e),code:i.code,codeDescription:i.codeDescription,tags:i.tags,relatedInformation:i.relatedInformation,data:i.data,source:this.getSource()}}getSource(){return this.metadata.languageId}};te(CHr,"getDiagnosticRange");te(TCe,"toDiagnosticSeverity");te(kHr,"toDiagnosticData");(function(e){e.LexingError="lexing-error",e.LexingWarning="lexing-warning",e.LexingInfo="lexing-info",e.LexingHint="lexing-hint",e.ParsingError="parsing-error",e.LinkingError="linking-error"})(zC||(zC={}));Hbi=class{static{te(this,"DefaultAstNodeDescriptionProvider")}constructor(e){this.astNodeLocator=e.workspace.AstNodeLocator,this.nameProvider=e.references.NameProvider}createDescription(e,r,i){let a=i??W3(e);r??(r=this.nameProvider.getName(e));let o=this.astNodeLocator.getAstNodePath(e);if(!r)throw Error(`Node at path ${o} has no name.`);let l,h=te(()=>l??(l=Cse(this.nameProvider.getNameNode(e)??e.$cstNode)),"nameSegmentGetter");return{node:e,name:r,get nameSegment(){return h()},selectionSegment:Cse(e.$cstNode),type:e.$type,documentUri:a.uri,path:o}}},qbi=class{static{te(this,"DefaultReferenceDescriptionProvider")}constructor(e){this.nodeLocator=e.workspace.AstNodeLocator}async createDescriptions(e,r=op.CancellationToken.None){let i=[],a=e.parseResult.value;for(let o of j3(a))await cy(r),Tse(o).forEach((l)=>{if(!l.reference.error)i.push(...this.createInfoDescriptions(l))});return i}createInfoDescriptions(e){let r=e.reference;if(r.error||!r.$refNode)return[];let i=[];if(bT(r)&&r.$nodeDescription)i=[r.$nodeDescription];else if(SI(r))i=r.items.map((d)=>d.$nodeDescription).filter((d)=>d!==void 0);let a=W3(e.container).uri,o=this.nodeLocator.getAstNodePath(e.container),l=[],h=Cse(r.$refNode);for(let d of i)l.push({sourceUri:a,sourcePath:o,targetUri:d.documentUri,targetPath:d.path,segment:h,local:yT.equals(d.documentUri,a)});return l}},Ybi=class{static{te(this,"DefaultAstNodeLocator")}constructor(){this.segmentSeparator="/",this.indexSeparator="@"}getAstNodePath(e){if(e.$container){let r=this.getAstNodePath(e.$container),i=this.getPathSegment(e);return r+this.segmentSeparator+i}return""}getPathSegment({$containerProperty:e,$containerIndex:r}){if(!e)throw Error("Missing '$containerProperty' in AST node.");if(r!==void 0)return e+this.indexSeparator+r;return e}getAstNode(e,r){return r.split(this.segmentSeparator).reduce((a,o)=>{if(!a||o.length===0)return a;let l=o.indexOf(this.indexSeparator);if(l>0){let h=o.substring(0,l),d=parseInt(o.substring(l+1));return a[h]?.[d]}return a[o]},e)}},Wbi=Lut(But(),1),jbi=class{static{te(this,"DefaultConfigurationProvider")}constructor(e){this._ready=new Uht,this.onConfigurationSectionUpdateEmitter=new Wbi.Emitter,this.settings={},this.workspaceConfig=!1,this.serviceRegistry=e.ServiceRegistry}get ready(){return this._ready.promise}initialize(e){this.workspaceConfig=e.capabilities.workspace?.configuration??!1}async initialized(e){if(this.workspaceConfig){if(e.register){let r=this.serviceRegistry.all;e.register({section:r.map((i)=>this.toSectionName(i.LanguageMetaData.languageId))})}if(e.fetchConfiguration){let r=this.serviceRegistry.all.map((a)=>({section:this.toSectionName(a.LanguageMetaData.languageId)})),i=await e.fetchConfiguration(r);r.forEach((a,o)=>{this.updateSectionConfiguration(a.section,i[o])})}}this._ready.resolve()}updateConfiguration(e){if(typeof e.settings!=="object"||e.settings===null)return;Object.entries(e.settings).forEach(([r,i])=>{this.updateSectionConfiguration(r,i),this.onConfigurationSectionUpdateEmitter.fire({section:r,configuration:i})})}updateSectionConfiguration(e,r){this.settings[e]=r}async getConfiguration(e,r){await this.ready;let i=this.toSectionName(e);if(this.settings[i])return this.settings[i][r]}toSectionName(e){return`${e}`}get onConfigurationSectionUpdate(){return this.onConfigurationSectionUpdateEmitter.event}},Fxe=Lut(But(),1);(function(e){function r(i){return{dispose:te(async()=>await i(),"dispose")}}te(r,"create"),e.create=r})(pse||(pse={}));Kbi=class{static{te(this,"DefaultDocumentBuilder")}constructor(e){this.updateBuildOptions={validation:{categories:["built-in","fast"]}},this.updateListeners=[],this.buildPhaseListeners=new Pse,this.documentPhaseListeners=new Pse,this.buildState=new Map,this.documentBuildWaiters=new Map,this.currentState=kc.Changed,this.langiumDocuments=e.workspace.LangiumDocuments,this.langiumDocumentFactory=e.workspace.LangiumDocumentFactory,this.textDocuments=e.workspace.TextDocuments,this.indexManager=e.workspace.IndexManager,this.fileSystemProvider=e.workspace.FileSystemProvider,this.workspaceManager=()=>e.workspace.WorkspaceManager,this.serviceRegistry=e.ServiceRegistry}async build(e,r={},i=op.CancellationToken.None){for(let a of e){let o=a.uri.toString();if(a.state===kc.Validated){if(typeof r.validation==="boolean"&&r.validation)this.resetToState(a,kc.IndexedReferences);else if(typeof r.validation==="object"){let l=this.findMissingValidationCategories(a,r);if(l.length>0)this.buildState.set(o,{completed:!1,options:{validation:{categories:l}},result:this.buildState.get(o)?.result}),a.state=kc.IndexedReferences}}else this.buildState.delete(o)}this.currentState=kc.Changed,await this.emitUpdate(e.map((a)=>a.uri),[]),await this.buildDocuments(e,r,i)}async update(e,r,i=op.CancellationToken.None){this.currentState=kc.Changed;let a=[];for(let d of r){let p=this.langiumDocuments.deleteDocuments(d);for(let m of p)a.push(m.uri),this.cleanUpDeleted(m)}let o=(await Promise.all(e.map((d)=>this.findChangedUris(d)))).flat();for(let d of o){let p=this.langiumDocuments.getDocument(d);if(p===void 0)p=this.langiumDocumentFactory.fromModel({$type:"INVALID"},d),p.state=kc.Changed,this.langiumDocuments.addDocument(p);this.resetToState(p,kc.Changed)}let l=Ef(o).concat(a).map((d)=>d.toString()).toSet();this.langiumDocuments.all.filter((d)=>!l.has(d.uri.toString())&&this.shouldRelink(d,l)).forEach((d)=>this.resetToState(d,kc.ComputedScopes)),await this.emitUpdate(o,a),await cy(i);let h=this.sortDocuments(this.langiumDocuments.all.filter((d)=>d.state=1}findMissingValidationCategories(e,r){let i=this.buildState.get(e.uri.toString()),a=this.serviceRegistry.getServices(e.uri).validation.ValidationRegistry.getAllValidationCategories(e),o=i?.result?.validationChecks?new Set(i?.result?.validationChecks):i?.completed?a:new Set,l=r===void 0||r.validation===!0?a:typeof r.validation==="object"?r.validation.categories??a:[];return Ef(l).filter((h)=>!o.has(h)).toArray()}async findChangedUris(e){if(this.langiumDocuments.getDocument(e)??this.textDocuments?.get(e))return[e];try{let i=await this.fileSystemProvider.stat(e);if(i.isDirectory)return await this.workspaceManager().searchFolder(e);else if(this.workspaceManager().shouldIncludeEntry(i))return[e]}catch{}return[]}async emitUpdate(e,r){await Promise.all(this.updateListeners.map((i)=>i(e,r)))}sortDocuments(e){let r=0,i=e.length-1;while(r=0&&!this.hasTextDocument(e[i]))i--;if(ri.error!==void 0))return!0;return this.indexManager.isAffected(e,r)}onUpdate(e){return this.updateListeners.push(e),pse.create(()=>{let r=this.updateListeners.indexOf(e);if(r>=0)this.updateListeners.splice(r,1)})}resetToState(e,r){switch(r){case kc.Changed:case kc.Parsed:this.indexManager.removeContent(e.uri);case kc.IndexedContent:e.localSymbols=void 0;case kc.ComputedScopes:this.serviceRegistry.getServices(e.uri).references.Linker.unlink(e);case kc.Linked:this.indexManager.removeReferences(e.uri);case kc.IndexedReferences:e.diagnostics=void 0,this.buildState.delete(e.uri.toString());case kc.Validated:}if(e.state>r)e.state=r}cleanUpDeleted(e){this.buildState.delete(e.uri.toString()),this.indexManager.remove(e.uri),e.state=kc.Changed}async buildDocuments(e,r,i){this.prepareBuild(e,r),await this.runCancelable(e,kc.Parsed,i,(l)=>this.langiumDocumentFactory.update(l,i)),await this.runCancelable(e,kc.IndexedContent,i,(l)=>this.indexManager.updateContent(l,i)),await this.runCancelable(e,kc.ComputedScopes,i,async(l)=>{let h=this.serviceRegistry.getServices(l.uri).references.ScopeComputation;l.localSymbols=await h.collectLocalSymbols(l,i)});let a=e.filter((l)=>this.shouldLink(l));await this.runCancelable(a,kc.Linked,i,(l)=>this.serviceRegistry.getServices(l.uri).references.Linker.link(l,i)),await this.runCancelable(a,kc.IndexedReferences,i,(l)=>this.indexManager.updateReferences(l,i));let o=e.filter((l)=>{if(this.shouldValidate(l))return!0;else return this.markAsCompleted(l),!1});await this.runCancelable(o,kc.Validated,i,async(l)=>{await this.validate(l,i),this.markAsCompleted(l)})}markAsCompleted(e){let r=this.buildState.get(e.uri.toString());if(r)r.completed=!0}prepareBuild(e,r){for(let i of e){let a=i.uri.toString(),o=this.buildState.get(a);if(!o||o.completed)this.buildState.set(a,{completed:!1,options:r,result:o?.result})}}async runCancelable(e,r,i,a){for(let l of e)if(l.statel.state===r);await this.notifyBuildPhase(o,r,i),this.currentState=r}onBuildPhase(e,r){return this.buildPhaseListeners.add(e,r),pse.create(()=>{this.buildPhaseListeners.delete(e,r)})}onDocumentPhase(e,r){return this.documentPhaseListeners.add(e,r),pse.create(()=>{this.documentPhaseListeners.delete(e,r)})}waitUntil(e,r,i){let a=void 0;if(r&&"path"in r)a=r;else i=r;if(i??(i=op.CancellationToken.None),a)return this.awaitDocumentState(e,a,i);else return this.awaitBuilderState(e,i)}awaitDocumentState(e,r,i){let a=this.langiumDocuments.getDocument(r);if(!a)return Promise.reject(new Fxe.ResponseError(Fxe.LSPErrorCodes.ServerCancelled,`No document found for URI: ${r.toString()}`));else if(a.state>=e)return Promise.resolve(r);else if(i.isCancellationRequested)return Promise.reject(mY);else if(this.currentState>=e&&e>a.state)return Promise.reject(new Fxe.ResponseError(Fxe.LSPErrorCodes.RequestFailed,`Document state of ${r.toString()} is ${kc[a.state]}, requiring ${kc[e]}, but workspace state is already ${kc[this.currentState]}. Returning undefined.`));return new Promise((o,l)=>{let h=this.onDocumentPhase(e,(p)=>{if(yT.equals(p.uri,r))h.dispose(),d.dispose(),o(p.uri)}),d=i.onCancellationRequested(()=>{h.dispose(),d.dispose(),l(mY)})})}awaitBuilderState(e,r){if(this.currentState>=e)return Promise.resolve();else if(r.isCancellationRequested)return Promise.reject(mY);return new Promise((i,a)=>{let o=this.onBuildPhase(e,()=>{o.dispose(),l.dispose(),i()}),l=r.onCancellationRequested(()=>{o.dispose(),l.dispose(),a(mY)})})}async notifyDocumentPhase(e,r,i){let o=this.documentPhaseListeners.get(r).slice();for(let l of o)try{await cy(i),await l(e,i)}catch(h){if(!jse(h))throw h}}async notifyBuildPhase(e,r,i){if(e.length===0)return;let o=this.buildPhaseListeners.get(r).slice();for(let l of o)await cy(i),await l(e,i)}shouldLink(e){return this.getBuildOptions(e).eagerLinking??!0}shouldValidate(e){return Boolean(this.getBuildOptions(e).validation)}async validate(e,r){let i=this.serviceRegistry.getServices(e.uri).validation.DocumentValidator,a=this.getBuildOptions(e),o=typeof a.validation==="object"?{...a.validation}:{};o.categories=this.findMissingValidationCategories(e,a);let l=await i.validateDocument(e,o,r);if(e.diagnostics)e.diagnostics.push(...l);else e.diagnostics=l;let h=this.buildState.get(e.uri.toString());if(h)if(h.result??(h.result={}),h.result.validationChecks)h.result.validationChecks=Ef(h.result.validationChecks).concat(o.categories).distinct().toArray();else h.result.validationChecks=[...o.categories]}getBuildOptions(e){return this.buildState.get(e.uri.toString())?.options??{}}},Xbi=class{static{te(this,"DefaultIndexManager")}constructor(e){this.symbolIndex=new Map,this.symbolByTypeIndex=new Pbi,this.referenceIndex=new Map,this.documents=e.workspace.LangiumDocuments,this.serviceRegistry=e.ServiceRegistry,this.astReflection=e.AstReflection}findAllReferences(e,r){let i=W3(e).uri,a=[];return this.referenceIndex.forEach((o)=>{o.forEach((l)=>{if(yT.equals(l.targetUri,i)&&l.targetPath===r)a.push(l)})}),Ef(a)}allElements(e,r){let i=Ef(this.symbolIndex.keys());if(r)i=i.filter((a)=>!r||r.has(a));return i.map((a)=>this.getFileDescriptions(a,e)).flat()}getFileDescriptions(e,r){if(!r)return this.symbolIndex.get(e)??[];return this.symbolByTypeIndex.get(e,r,()=>(this.symbolIndex.get(e)??[]).filter((o)=>this.astReflection.isSubtype(o.type,r)))}remove(e){this.removeContent(e),this.removeReferences(e)}removeContent(e){let r=e.toString();this.symbolIndex.delete(r),this.symbolByTypeIndex.clear(r)}removeReferences(e){let r=e.toString();this.referenceIndex.delete(r)}async updateContent(e,r=op.CancellationToken.None){let a=await this.serviceRegistry.getServices(e.uri).references.ScopeComputation.collectExportedSymbols(e,r),o=e.uri.toString();this.symbolIndex.set(o,a),this.symbolByTypeIndex.clear(o)}async updateReferences(e,r=op.CancellationToken.None){let a=await this.serviceRegistry.getServices(e.uri).workspace.ReferenceDescriptionProvider.createDescriptions(e,r);this.referenceIndex.set(e.uri.toString(),a)}isAffected(e,r){let i=this.referenceIndex.get(e.uri.toString());if(!i)return!1;return i.some((a)=>!a.local&&r.has(a.targetUri.toString()))}},Qbi=class{static{te(this,"DefaultWorkspaceManager")}constructor(e){this.initialBuildOptions={},this._ready=new Uht,this.serviceRegistry=e.ServiceRegistry,this.langiumDocuments=e.workspace.LangiumDocuments,this.documentBuilder=e.workspace.DocumentBuilder,this.fileSystemProvider=e.workspace.FileSystemProvider,this.mutex=e.workspace.WorkspaceLock}get ready(){return this._ready.promise}get workspaceFolders(){return this.folders}initialize(e){this.folders=e.workspaceFolders??void 0}initialized(e){return this.mutex.write((r)=>this.initializeWorkspace(this.folders??[],r))}async initializeWorkspace(e,r=op.CancellationToken.None){let i=await this.performStartup(e);await cy(r),await this.documentBuilder.build(i,this.initialBuildOptions,r)}async performStartup(e){let r=[],i=te((l)=>{if(r.push(l),!this.langiumDocuments.hasDocument(l.uri))this.langiumDocuments.addDocument(l)},"collector");await this.loadAdditionalDocuments(e,i);let a=[];await Promise.all(e.map((l)=>this.getRootFolder(l)).map(async(l)=>this.traverseFolder(l,a)));let o=Ef(a).distinct((l)=>l.toString()).filter((l)=>!this.langiumDocuments.hasDocument(l));return await this.loadWorkspaceDocuments(o,i),this._ready.resolve(),r}async loadWorkspaceDocuments(e,r){await Promise.all(e.map(async(i)=>{let a=await this.langiumDocuments.getOrCreateDocument(i);r(a)}))}loadAdditionalDocuments(e,r){return Promise.resolve()}getRootFolder(e){return rw.parse(e.uri)}async traverseFolder(e,r){try{let i=await this.fileSystemProvider.readDirectory(e);await Promise.all(i.map(async(a)=>{if(this.shouldIncludeEntry(a)){if(a.isDirectory)await this.traverseFolder(a.uri,r);else if(a.isFile)r.push(a.uri)}}))}catch(i){console.error("Failure to read directory content of "+e.toString(!0),i)}}async searchFolder(e){let r=[];return await this.traverseFolder(e,r),r}shouldIncludeEntry(e){let r=yT.basename(e.uri);if(r.startsWith("."))return!1;if(e.isDirectory)return r!=="node_modules"&&r!=="out";else if(e.isFile)return this.serviceRegistry.hasServices(e.uri);return!1}},Zbi=class{static{te(this,"DefaultLexerErrorMessageProvider")}buildUnexpectedCharactersMessage(e,r,i,a,o){return Vct.buildUnexpectedCharactersMessage(e,r,i,a,o)}buildUnableToPopLexerModeMessage(e){return Vct.buildUnableToPopLexerModeMessage(e)}},Jbi={mode:"full"},eyi=class{static{te(this,"DefaultLexer")}constructor(e){this.errorMessageProvider=e.parser.LexerErrorMessageProvider,this.tokenBuilder=e.parser.TokenBuilder;let r=this.tokenBuilder.buildTokens(e.Grammar,{caseInsensitive:e.LanguageMetaData.caseInsensitive});this.tokenTypes=this.toTokenTypeDictionary(r);let i=fut(r)?Object.values(r):r,a=e.LanguageMetaData.mode==="production";this.chevrotainLexer=new l2(i,{positionTracking:"full",skipValidations:a,errorMessageProvider:this.errorMessageProvider})}get definition(){return this.tokenTypes}tokenize(e,r=Jbi){let i=this.chevrotainLexer.tokenize(e);return{tokens:i.tokens,errors:i.errors,hidden:i.groups.hidden??[],report:this.tokenBuilder.flushLexingReport?.(e)}}toTokenTypeDictionary(e){if(fut(e))return e;let r=Vht(e)?Object.values(e.modes).flat():e,i={};return r.forEach((a)=>i[a.name]=a),i}};te(AHr,"isTokenTypeArray");te(Vht,"isIMultiModeLexerDefinition");te(fut,"isTokenTypeDictionary");C4e();te(RHr,"parseJSDoc");te(IHr,"isJSDoc");te(Hht,"getLines");wBr=/\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy,tyi=/\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu;te(OHr,"tokenize");te(NHr,"buildInlineTokens");ryi=/\S/,nyi=/\s*$/;te(HCe,"skipWhitespace");te(LHr,"lastCharacter");te(MHr,"parseJSDocComment");te(DHr,"parseJSDocElement");te(PHr,"appendEmptyLine");te(qht,"parseJSDocText");te(BHr,"parseJSDocInline");te(Yht,"parseJSDocTag");te(Wht,"parseJSDocLine");te(rke,"normalizeOptions");te(xCe,"normalizeOption");SBr=class{static{te(this,"JSDocCommentImpl")}constructor(e,r){this.elements=e,this.range=r}getTag(e){return this.getAllTags().find((r)=>r.name===e)}getTags(e){return this.getAllTags().filter((r)=>r.name===e)}getAllTags(){return this.elements.filter((e)=>("name"in e))}toString(){let e="";for(let r of this.elements)if(e.length===0)e=r.toString();else{let i=r.toString();e+=gut(e)+i}return e.trim()}toMarkdown(e){let r="";for(let i of this.elements)if(r.length===0)r=i.toMarkdown(e);else{let a=i.toMarkdown(e);r+=gut(r)+a}return r.trim()}},hlt=class{static{te(this,"JSDocTagImpl")}constructor(e,r,i,a){this.name=e,this.content=r,this.inline=i,this.range=a}toString(){let e=`@${this.name}`,r=this.content.toString();if(this.content.inlines.length===1)e=`${e} ${r}`;else if(this.content.inlines.length>1)e=`${e} +${r}`;if(this.inline)return`{${e}}`;else return e}toMarkdown(e){return e?.renderTag?.(this)??this.toMarkdownDefault(e)}toMarkdownDefault(e){let r=this.content.toMarkdown(e);if(this.inline){let o=FHr(this.name,r,e??{});if(typeof o==="string")return o}let i="";if(e?.tag==="italic"||e?.tag===void 0)i="*";else if(e?.tag==="bold")i="**";else if(e?.tag==="bold-italic")i="***";let a=`${i}@${this.name}${i}`;if(this.content.inlines.length===1)a=`${a} — ${r}`;else if(this.content.inlines.length>1)a=`${a} +${r}`;if(this.inline)return`{${a}}`;else return a}};te(FHr,"renderInlineTag");te($Hr,"renderLinkDefault");put=class{static{te(this,"JSDocTextImpl")}constructor(e,r){this.inlines=e,this.range=r}toString(){let e="";for(let r=0;ri.range.start.line)e+=` `}return e}toMarkdown(e){let r="";for(let i=0;ia.range.start.line)r+=` -`}return r}},DHr=class{static{ee(this,"JSDocLineImpl")}constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};ee(dut,"fillNewlines");Zbi=class{static{ee(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let r=this.commentProvider.getComment(e);if(r&&xHr(r))return THr(r).toMarkdown({renderLink:ee((a,o)=>this.documentationLinkRenderer(e,a,o),"renderLink"),renderTag:ee((a)=>this.documentationTagRenderer(e,a),"renderTag")});return}documentationLinkRenderer(e,r,i){let a=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){let o=a.nameSegment.range.start.line+1,l=a.nameSegment.range.start.character+1,h=a.documentUri.with({fragment:`L${o},${l}`});return`[${i}](${h.toString()})`}else return}documentationTagRenderer(e,r){return}findNameInLocalSymbols(e,r){let a=Y3(e).localSymbols;if(!a)return;let o=e;do{let h=a.getStream(o).find((d)=>d.name===r);if(h)return h;o=o.$container}while(o);return}findNameInGlobalScope(e,r){return this.indexManager.allElements().find((a)=>a.name===r)}},Jbi=class{static{ee(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){if(_Hr(e))return e.$comment;return _Fr(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},eyi=class{static{ee(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}};(function(e){e[e.Normal=0]="Normal",e[e.Immediate=1]="Immediate"})(zCe||(zCe={}));tyi=class{static{ee(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new op.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.immediateReads=[],this.done=!0}write(e){this.cancelWrite();let r=gHr();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e,r=zCe.Normal){if(r===zCe.Immediate){let i=Promise.resolve().then(()=>e());this.immediateReads.push(i);let a=ee(()=>{this.immediateReads.splice(this.immediateReads.indexOf(i),1)},"remove");return i.then(a,a),i}return this.enqueue(this.readQueue,e)}enqueue(e,r,i=op.CancellationToken.None){let a=new Bht,o={action:r,deferred:a,cancellationToken:i};return e.push(o),this.performNextOperation(),a.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0){e.push(this.writeQueue.shift()),this.done=!1;while(this.immediateReads.length>0)await Promise.allSettled(this.immediateReads.slice())}else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length)),this.done=!1;else return;await Promise.all(e.map(async({action:r,deferred:i,cancellationToken:a})=>{try{let o=await Promise.resolve().then(()=>r(a));i.resolve(o)}catch(o){if(qse(o))i.resolve(void 0);else i.reject(o)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},ryi=class{static{ee(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new gBr,this.tokenTypeIdMap=new gBr,this.cstNodeBuilder=new qVr,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map((r)=>({...r,message:r.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let r=new Map,i=new Map;for(let a of W3(e))r.set(a,{});if(e.$cstNode)for(let a of CCe(e.$cstNode))i.set(a,{});return{astNodes:r,cstNodes:i}}dehydrateAstNode(e,r){let i=r.astNodes.get(e);if(i.$type=e.$type,i.$containerIndex=e.$containerIndex,i.$containerProperty=e.$containerProperty,e.$cstNode!==void 0)i.$cstNode=this.dehydrateCstNode(e.$cstNode,r);for(let[a,o]of Object.entries(e)){if(a.startsWith("$"))continue;if(Array.isArray(o)){let l=[];i[a]=l;for(let h of o)if(o1(h))l.push(this.dehydrateAstNode(h,r));else if(mT(h))l.push(this.dehydrateReference(h,r));else l.push(h)}else if(o1(o))i[a]=this.dehydrateAstNode(o,r);else if(mT(o))i[a]=this.dehydrateReference(o,r);else if(o!==void 0)i[a]=o}return i}dehydrateReference(e,r){let i={};if(i.$refText=e.$refText,e.$refNode)i.$refNode=r.cstNodes.get(e.$refNode);return i}dehydrateCstNode(e,r){let i=r.cstNodes.get(e);if(Put(e))i.fullText=e.fullText;else i.grammarSource=this.getGrammarElementId(e.grammarSource);if(i.hidden=e.hidden,vY(e))i.content=e.content.map((a)=>this.dehydrateCstNode(a,r));else if(Dut(e)){i.tokenType=e.tokenType.name,i.offset=e.offset,i.length=e.length;let{start:a,end:o}=e.range;i.startLine=a.line,i.startColumn=a.character,i.endLine=o.line,i.endColumn=o.character}return i}hydrate(e){let r=e.value,i=this.createHydrationContext(r);if("$cstNode"in r)this.hydrateCstNode(r.$cstNode,i);return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,i)}}createHydrationContext(e){let r=new Map,i=new Map;for(let a of W3(e))r.set(a,{});if(e.$cstNode)for(let a of CCe(e.$cstNode)){let o;if("fullText"in a)o=new jVr(a.fullText);else if("content"in a)o=new Lht;else if("tokenType"in a)o=this.hydrateCstLeafNode(a);if(o)i.set(a,o)}return{astNodes:r,cstNodes:i,linkedCstNodes:new Set}}hydrateAstNode(e,r){let i=r.astNodes.get(e);if(i.$type=e.$type,i.$containerIndex=e.$containerIndex,i.$containerProperty=e.$containerProperty,e.$cstNode){let a=r.cstNodes.get(e.$cstNode);if(i.$cstNode=a,a&&!r.linkedCstNodes.has(a))r.linkedCstNodes.add(a),a.astNode=i}for(let[a,o]of Object.entries(e)){if(a.startsWith("$"))continue;if(Array.isArray(o)){let l=[];i[a]=l;for(let h of o)if(o1(h))l.push(this.setParent(this.hydrateAstNode(h,r),i));else if(mT(h))l.push(this.hydrateReference(h,i,a,r));else l.push(h)}else if(o1(o))i[a]=this.setParent(this.hydrateAstNode(o,r),i);else if(mT(o))i[a]=this.hydrateReference(o,i,a,r);else if(o!==void 0)i[a]=o}return i}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,i,a){return this.linker.buildReference(r,i,a.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,i=0){let a=r.cstNodes.get(e);if(typeof e.grammarSource==="number")a.grammarSource=this.getGrammarElement(e.grammarSource);if(vY(a)){let o=[];for(let l of e.content)o.push(this.hydrateCstNode(l,r,i++));this.cstNodeBuilder.appendChildren(a,o)}return a}hydrateCstLeafNode(e){let r=this.getTokenType(e.tokenType);return new WVr(e.offset,e.length,e.startLine,e.startColumn,e.endLine,e.endColumn,r,e.hidden)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(!e)return;if(this.grammarElementIdMap.size===0)this.createGrammarElementIdMap();return this.grammarElementIdMap.get(e)}getGrammarElement(e){if(this.grammarElementIdMap.size===0)this.createGrammarElementIdMap();return this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let r of W3(this.grammar))if(QBr(r))this.grammarElementIdMap.set(r,e++)}};ee(hu,"createDefaultCoreModule");ee(du,"createDefaultSharedCoreModule");(function(e){e.merge=(r,i)=>SY(SY({},r),i)})(vBr||(vBr={}));ee($o,"inject");nyi=Symbol("isProxy");ee(qht,"_inject");_Br=Symbol();ee(fut,"_resolve");ee(SY,"_merge");iyi=class{static{ee(this,"EmptyFileSystemProvider")}stat(e){throw Error("No file system is available.")}statSync(e){throw Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error("No file system is available.")}readBinarySync(){throw Error("No file system is available.")}readFile(){throw Error("No file system is available.")}readFileSync(){throw Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},Du={fileSystemProvider:ee(()=>new iyi,"fileSystemProvider")},ayi={Grammar:ee(()=>{return},"Grammar"),LanguageMetaData:ee(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},syi={AstReflection:ee(()=>new gFr,"AstReflection")};ee(PHr,"createMinimalGrammarServices");ee(uy,"loadGrammarFromJson");((e)=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(put||(put={}));((e)=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(gut||(gut={}));((e)=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(mut||(mut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(but||(but={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(yut||(yut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(vut||(vut={}));((e)=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(_ut||(_ut={}));((e)=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Eut||(Eut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(wut||(wut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(Sut||(Sut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(Tut||(Tut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(xut||(xut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(Cut||(Cut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(kut||(kut={}));((e)=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Aut||(Aut={}));FZa={...put.Terminals,...gut.Terminals,...mut.Terminals,...but.Terminals,...yut.Terminals,...vut.Terminals,..._ut.Terminals,...Eut.Terminals,...wut.Terminals,...Sut.Terminals,...Tut.Terminals,...xut.Terminals,...kut.Terminals,...Cut.Terminals,...Aut.Terminals},VCe={$type:"AbnfAlternation",alternatives:"alternatives"},HCe={$type:"AbnfConcatenation",elements:"elements"},dse={$type:"AbnfElement",primary:"primary",repeat:"repeat"},qCe={$type:"AbnfGroup",element:"element"},YCe={$type:"AbnfNumVal",value:"value"},WCe={$type:"AbnfOptionalGroup",element:"element"},k7={$type:"AbnfPrimary"},fse={$type:"AbnfRule",definition:"definition",name:"name"},jCe={$type:"AbnfRuleName",name:"name"},KCe={$type:"AbnfStringLiteral",value:"value"},Pxe={$type:"Accelerator",name:"name",x:"x",y:"y"},clt={$type:"Alignment",direction:"direction",members:"members"},Bxe={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},Uae={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},ult={$type:"Annotations",x:"x",y:"y"},gT={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",alignments:"alignments",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};ee(Yht,"isArchitecture");Fxe={$type:"Axis",label:"label",name:"name"},mY={$type:"Branch",name:"name",order:"order"};ee(Wht,"isBranch");EBr={$type:"Checkout",branch:"branch"},$xe={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},hlt={$type:"ClassDefStatement",className:"className",styleText:"styleText"},O7={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};ee(jht,"isCommit");Uxe={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},PB={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},Gxe={$type:"Curve",entries:"entries",label:"label",name:"name"},mI={$type:"Cynefin",accDescr:"accDescr",accTitle:"accTitle",domains:"domains",title:"title",transitions:"transitions"};ee(Kht,"isCynefin");zxe={$type:"Deaccelerator",name:"name",x:"x",y:"y"},wBr={$type:"Decorator",strategy:"strategy"},Xq={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},bY={$type:"DomainBlock",domain:"domain",items:"items"};ee(Xht,"isDomainBlock");Mse={$type:"DomainItem",label:"label"};ee(Qht,"isDomainItem");XCe={$type:"EbnfChoice",alternatives:"alternatives"},QCe={$type:"EbnfExceptionPostfix",except:"except"},ZCe={$type:"EbnfGroup",element:"element"},JCe={$type:"EbnfNonTerminal",name:"name"},e4e={$type:"EbnfOneOrMorePostfix",operator:"operator"},t4e={$type:"EbnfOptional",element:"element"},r4e={$type:"EbnfOptionalPostfix",operator:"operator"},YB={$type:"EbnfPostfix"},dI={$type:"EbnfPrimary"},n4e={$type:"EbnfRepetition",element:"element"},pse={$type:"EbnfRule",definition:"definition",name:"name"},i4e={$type:"EbnfSequence",elements:"elements"},a4e={$type:"EbnfSpecial",text:"text"},gse={$type:"EbnfTerm",base:"base",postfixes:"postfixes"},s4e={$type:"EbnfTerminal",value:"value"},o4e={$type:"EbnfZeroOrMorePostfix",operator:"operator"},V3={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},A7={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},fI={$type:"EmFrame"},Gae={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},SBr={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},dlt={$type:"EmModelEntity",name:"name"};ee(Zht,"isEmModelEntityType");Vxe={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},uI={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};ee(Yse,"isEmResetFrame");S7={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},flt={$type:"Entry",axis:"axis",value:"value"},PC={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},TBr={$type:"Evolution",stages:"stages"},Hxe={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},plt={$type:"Evolve",component:"component",target:"target"},bI={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};ee(Jht,"isGitGraph");zae={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},XB={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};ee(edt,"isInfo");Vae={$type:"Item",classSelector:"classSelector",name:"name"},glt={$type:"Junction",id:"id",in:"in"},Hae={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},qxe={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},BB={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},N7={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};ee(tdt,"isMerge");Yxe={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},mlt={$type:"Option",name:"name",value:"value"},L7={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};ee(rdt,"isPacket");M7={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};ee(ndt,"isPacketBlock");l4e={$type:"PegAny",dot:"dot"},c4e={$type:"PegGroup",element:"element"},u4e={$type:"PegIdentifier",name:"name"},h4e={$type:"PegLiteral",value:"value"},d4e={$type:"PegOrderedChoice",alternatives:"alternatives"},mse={$type:"PegPrefix",operator:"operator",suffix:"suffix"},WB={$type:"PegPrimary"},bse={$type:"PegRule",definition:"definition",name:"name"},f4e={$type:"PegSequence",elements:"elements"},yse={$type:"PegSuffix",operator:"operator",primary:"primary"},yI={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};ee(idt,"isPie");yY={$type:"PieSection",label:"label",value:"value"};ee(adt,"isPieSection");blt={$type:"Pipeline",components:"components",parent:"parent"},Wxe={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},pI={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},D7={$type:"Railroad",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};ee(sdt,"isRailroad");P7={$type:"RailroadAbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};ee(odt,"isRailroadAbnf");p4e={$type:"RailroadChoiceExpr",alternatives:"alternatives"},B7={$type:"RailroadEbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};ee(ldt,"isRailroadEbnf");BC={$type:"RailroadExpression"},g4e={$type:"RailroadNonTerminalExpr",name:"name"},m4e={$type:"RailroadOneOrMoreExpr",element:"element"},b4e={$type:"RailroadOptionalExpr",element:"element"},F7={$type:"RailroadPeg",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};ee(cdt,"isRailroadPeg");vse={$type:"RailroadRule",definition:"definition",name:"name"},y4e={$type:"RailroadSequenceExpr",elements:"elements"},v4e={$type:"RailroadSpecialExpr",text:"text"},_4e={$type:"RailroadTerminalExpr",value:"value"},E4e={$type:"RailroadZeroOrMoreExpr",element:"element"},ylt={$type:"Section",classSelector:"classSelector",name:"name"},Qq={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},vlt={$type:"Size",height:"height",width:"width"},R7={$type:"Statement"},QB={$type:"Transition",from:"from",label:"label",to:"to"};ee(udt,"isTransition");$7={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};ee(hdt,"isTreemap");_lt={$type:"TreemapRow",indent:"indent",item:"item"},I7={$type:"TreeNode",classAnnotation:"classAnnotation",descAnnotation:"descAnnotation",iconAnnotation:"iconAnnotation",indent:"indent",name:"name"},jB={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},cm={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};ee(ddt,"isWardley");BHr=class extends WBr{constructor(){super(...arguments);this.types={AbnfAlternation:{name:VCe.$type,properties:{alternatives:{name:VCe.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:HCe.$type,properties:{elements:{name:HCe.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:dse.$type,properties:{primary:{name:dse.primary},repeat:{name:dse.repeat,optional:!0}},superTypes:[]},AbnfGroup:{name:qCe.$type,properties:{element:{name:qCe.element}},superTypes:[k7.$type]},AbnfNumVal:{name:YCe.$type,properties:{value:{name:YCe.value}},superTypes:[k7.$type]},AbnfOptionalGroup:{name:WCe.$type,properties:{element:{name:WCe.element}},superTypes:[k7.$type]},AbnfPrimary:{name:k7.$type,properties:{},superTypes:[]},AbnfRule:{name:fse.$type,properties:{definition:{name:fse.definition},name:{name:fse.name}},superTypes:[]},AbnfRuleName:{name:jCe.$type,properties:{name:{name:jCe.name}},superTypes:[k7.$type]},AbnfStringLiteral:{name:KCe.$type,properties:{value:{name:KCe.value}},superTypes:[k7.$type]},Accelerator:{name:Pxe.$type,properties:{name:{name:Pxe.name},x:{name:Pxe.x},y:{name:Pxe.y}},superTypes:[]},Alignment:{name:clt.$type,properties:{direction:{name:clt.direction},members:{name:clt.members,defaultValue:[]}},superTypes:[]},Anchor:{name:Bxe.$type,properties:{evolution:{name:Bxe.evolution},name:{name:Bxe.name},visibility:{name:Bxe.visibility}},superTypes:[]},Annotation:{name:Uae.$type,properties:{number:{name:Uae.number},text:{name:Uae.text},x:{name:Uae.x},y:{name:Uae.y}},superTypes:[]},Annotations:{name:ult.$type,properties:{x:{name:ult.x},y:{name:ult.y}},superTypes:[]},Architecture:{name:gT.$type,properties:{accDescr:{name:gT.accDescr,optional:!0},accTitle:{name:gT.accTitle,optional:!0},alignments:{name:gT.alignments,defaultValue:[],optional:!0},edges:{name:gT.edges,defaultValue:[],optional:!0},groups:{name:gT.groups,defaultValue:[],optional:!0},junctions:{name:gT.junctions,defaultValue:[],optional:!0},services:{name:gT.services,defaultValue:[],optional:!0},title:{name:gT.title,optional:!0}},superTypes:[]},Axis:{name:Fxe.$type,properties:{label:{name:Fxe.label,optional:!0},name:{name:Fxe.name}},superTypes:[]},Branch:{name:mY.$type,properties:{name:{name:mY.name},order:{name:mY.order}},superTypes:[R7.$type]},Checkout:{name:EBr.$type,properties:{branch:{name:EBr.branch}},superTypes:[R7.$type]},CherryPicking:{name:$xe.$type,properties:{id:{name:$xe.id},parent:{name:$xe.parent},tags:{name:$xe.tags,defaultValue:[]}},superTypes:[R7.$type]},ClassDefStatement:{name:hlt.$type,properties:{className:{name:hlt.className},styleText:{name:hlt.styleText}},superTypes:[]},Commit:{name:O7.$type,properties:{id:{name:O7.id},message:{name:O7.message},tags:{name:O7.tags,defaultValue:[]},type:{name:O7.type}},superTypes:[R7.$type]},Common:{name:Uxe.$type,properties:{accDescr:{name:Uxe.accDescr,optional:!0},accTitle:{name:Uxe.accTitle,optional:!0},title:{name:Uxe.title,optional:!0}},superTypes:[]},Component:{name:PB.$type,properties:{decorator:{name:PB.decorator,optional:!0},evolution:{name:PB.evolution},inertia:{name:PB.inertia,defaultValue:!1},label:{name:PB.label,optional:!0},name:{name:PB.name},visibility:{name:PB.visibility}},superTypes:[]},Curve:{name:Gxe.$type,properties:{entries:{name:Gxe.entries,defaultValue:[]},label:{name:Gxe.label,optional:!0},name:{name:Gxe.name}},superTypes:[]},Cynefin:{name:mI.$type,properties:{accDescr:{name:mI.accDescr,optional:!0},accTitle:{name:mI.accTitle,optional:!0},domains:{name:mI.domains,defaultValue:[],optional:!0},title:{name:mI.title,optional:!0},transitions:{name:mI.transitions,defaultValue:[],optional:!0}},superTypes:[]},Deaccelerator:{name:zxe.$type,properties:{name:{name:zxe.name},x:{name:zxe.x},y:{name:zxe.y}},superTypes:[]},Decorator:{name:wBr.$type,properties:{strategy:{name:wBr.strategy}},superTypes:[]},Direction:{name:Xq.$type,properties:{accDescr:{name:Xq.accDescr},accTitle:{name:Xq.accTitle},dir:{name:Xq.dir},statements:{name:Xq.statements,defaultValue:[]},title:{name:Xq.title}},superTypes:[bI.$type]},DomainBlock:{name:bY.$type,properties:{domain:{name:bY.domain},items:{name:bY.items,defaultValue:[],optional:!0}},superTypes:[]},DomainItem:{name:Mse.$type,properties:{label:{name:Mse.label}},superTypes:[]},EbnfChoice:{name:XCe.$type,properties:{alternatives:{name:XCe.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:QCe.$type,properties:{except:{name:QCe.except}},superTypes:[YB.$type]},EbnfGroup:{name:ZCe.$type,properties:{element:{name:ZCe.element}},superTypes:[dI.$type]},EbnfNonTerminal:{name:JCe.$type,properties:{name:{name:JCe.name}},superTypes:[dI.$type]},EbnfOneOrMorePostfix:{name:e4e.$type,properties:{operator:{name:e4e.operator}},superTypes:[YB.$type]},EbnfOptional:{name:t4e.$type,properties:{element:{name:t4e.element}},superTypes:[dI.$type]},EbnfOptionalPostfix:{name:r4e.$type,properties:{operator:{name:r4e.operator}},superTypes:[YB.$type]},EbnfPostfix:{name:YB.$type,properties:{},superTypes:[]},EbnfPrimary:{name:dI.$type,properties:{},superTypes:[]},EbnfRepetition:{name:n4e.$type,properties:{element:{name:n4e.element}},superTypes:[dI.$type]},EbnfRule:{name:pse.$type,properties:{definition:{name:pse.definition},name:{name:pse.name}},superTypes:[]},EbnfSequence:{name:i4e.$type,properties:{elements:{name:i4e.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:a4e.$type,properties:{text:{name:a4e.text}},superTypes:[dI.$type]},EbnfTerm:{name:gse.$type,properties:{base:{name:gse.base},postfixes:{name:gse.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:s4e.$type,properties:{value:{name:s4e.value}},superTypes:[dI.$type]},EbnfZeroOrMorePostfix:{name:o4e.$type,properties:{operator:{name:o4e.operator}},superTypes:[YB.$type]},Edge:{name:V3.$type,properties:{lhsDir:{name:V3.lhsDir},lhsGroup:{name:V3.lhsGroup,defaultValue:!1,optional:!0},lhsId:{name:V3.lhsId},lhsInto:{name:V3.lhsInto,defaultValue:!1,optional:!0},rhsDir:{name:V3.rhsDir},rhsGroup:{name:V3.rhsGroup,defaultValue:!1,optional:!0},rhsId:{name:V3.rhsId},rhsInto:{name:V3.rhsInto,defaultValue:!1,optional:!0},title:{name:V3.title,optional:!0}},superTypes:[]},EmDataEntity:{name:A7.$type,properties:{dataBlockValue:{name:A7.dataBlockValue},dataType:{name:A7.dataType,optional:!0},name:{name:A7.name}},superTypes:[]},EmFrame:{name:fI.$type,properties:{},superTypes:[]},EmGwt:{name:Gae.$type,properties:{givenStatements:{name:Gae.givenStatements,defaultValue:[]},sourceFrame:{name:Gae.sourceFrame,referenceType:fI.$type},thenStatements:{name:Gae.thenStatements,defaultValue:[]},whenStatements:{name:Gae.whenStatements,defaultValue:[],optional:!0}},superTypes:[]},EmGwtStatement:{name:SBr.$type,properties:{entityIdentifier:{name:SBr.entityIdentifier,referenceType:dlt.$type}},superTypes:[]},EmModelEntity:{name:dlt.$type,properties:{name:{name:dlt.name}},superTypes:[]},EmNoteEntity:{name:Vxe.$type,properties:{dataBlockValue:{name:Vxe.dataBlockValue},dataType:{name:Vxe.dataType,optional:!0},sourceFrame:{name:Vxe.sourceFrame,referenceType:fI.$type}},superTypes:[]},EmResetFrame:{name:uI.$type,properties:{dataInlineValue:{name:uI.dataInlineValue,optional:!0},dataReference:{name:uI.dataReference,referenceType:A7.$type,optional:!0},dataType:{name:uI.dataType,optional:!0},entityIdentifier:{name:uI.entityIdentifier},modelEntityType:{name:uI.modelEntityType},name:{name:uI.name},sourceFrames:{name:uI.sourceFrames,defaultValue:[],referenceType:fI.$type,optional:!0}},superTypes:[fI.$type]},EmTimeFrame:{name:S7.$type,properties:{dataInlineValue:{name:S7.dataInlineValue,optional:!0},dataReference:{name:S7.dataReference,referenceType:A7.$type,optional:!0},dataType:{name:S7.dataType,optional:!0},entityIdentifier:{name:S7.entityIdentifier},modelEntityType:{name:S7.modelEntityType},name:{name:S7.name},sourceFrames:{name:S7.sourceFrames,defaultValue:[],referenceType:fI.$type,optional:!0}},superTypes:[fI.$type]},Entry:{name:flt.$type,properties:{axis:{name:flt.axis,referenceType:Fxe.$type,optional:!0},value:{name:flt.value}},superTypes:[]},EventModel:{name:PC.$type,properties:{accDescr:{name:PC.accDescr,optional:!0},accTitle:{name:PC.accTitle,optional:!0},dataEntities:{name:PC.dataEntities,defaultValue:[],optional:!0},frames:{name:PC.frames,defaultValue:[],optional:!0},gwtEntities:{name:PC.gwtEntities,defaultValue:[],optional:!0},modelEntities:{name:PC.modelEntities,defaultValue:[],optional:!0},noteEntities:{name:PC.noteEntities,defaultValue:[],optional:!0},title:{name:PC.title,optional:!0}},superTypes:[]},Evolution:{name:TBr.$type,properties:{stages:{name:TBr.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:Hxe.$type,properties:{boundary:{name:Hxe.boundary,optional:!0},name:{name:Hxe.name},secondName:{name:Hxe.secondName,optional:!0}},superTypes:[]},Evolve:{name:plt.$type,properties:{component:{name:plt.component},target:{name:plt.target}},superTypes:[]},GitGraph:{name:bI.$type,properties:{accDescr:{name:bI.accDescr},accTitle:{name:bI.accTitle},statements:{name:bI.statements,defaultValue:[]},title:{name:bI.title}},superTypes:[]},Group:{name:zae.$type,properties:{icon:{name:zae.icon,optional:!0},id:{name:zae.id},in:{name:zae.in},title:{name:zae.title,optional:!0}},superTypes:[]},Info:{name:XB.$type,properties:{accDescr:{name:XB.accDescr,optional:!0},accTitle:{name:XB.accTitle,optional:!0},title:{name:XB.title,optional:!0}},superTypes:[]},Item:{name:Vae.$type,properties:{classSelector:{name:Vae.classSelector,optional:!0},name:{name:Vae.name}},superTypes:[]},Junction:{name:glt.$type,properties:{id:{name:glt.id},in:{name:glt.in}},superTypes:[]},Label:{name:Hae.$type,properties:{negX:{name:Hae.negX,defaultValue:!1,optional:!0},negY:{name:Hae.negY,defaultValue:!1,optional:!0},offsetX:{name:Hae.offsetX},offsetY:{name:Hae.offsetY}},superTypes:[]},Leaf:{name:qxe.$type,properties:{classSelector:{name:qxe.classSelector,optional:!0},name:{name:qxe.name},value:{name:qxe.value}},superTypes:[Vae.$type]},Link:{name:BB.$type,properties:{arrow:{name:BB.arrow,optional:!0},from:{name:BB.from},fromPort:{name:BB.fromPort,optional:!0},linkLabel:{name:BB.linkLabel,optional:!0},to:{name:BB.to},toPort:{name:BB.toPort,optional:!0}},superTypes:[]},Merge:{name:N7.$type,properties:{branch:{name:N7.branch},id:{name:N7.id},tags:{name:N7.tags,defaultValue:[]},type:{name:N7.type}},superTypes:[R7.$type]},Note:{name:Yxe.$type,properties:{evolution:{name:Yxe.evolution},text:{name:Yxe.text},visibility:{name:Yxe.visibility}},superTypes:[]},Option:{name:mlt.$type,properties:{name:{name:mlt.name},value:{name:mlt.value,defaultValue:!1}},superTypes:[]},Packet:{name:L7.$type,properties:{accDescr:{name:L7.accDescr,optional:!0},accTitle:{name:L7.accTitle,optional:!0},blocks:{name:L7.blocks,defaultValue:[],optional:!0},title:{name:L7.title,optional:!0}},superTypes:[]},PacketBlock:{name:M7.$type,properties:{bits:{name:M7.bits},end:{name:M7.end,optional:!0},label:{name:M7.label},start:{name:M7.start}},superTypes:[]},PegAny:{name:l4e.$type,properties:{dot:{name:l4e.dot}},superTypes:[WB.$type]},PegGroup:{name:c4e.$type,properties:{element:{name:c4e.element}},superTypes:[WB.$type]},PegIdentifier:{name:u4e.$type,properties:{name:{name:u4e.name}},superTypes:[WB.$type]},PegLiteral:{name:h4e.$type,properties:{value:{name:h4e.value}},superTypes:[WB.$type]},PegOrderedChoice:{name:d4e.$type,properties:{alternatives:{name:d4e.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:mse.$type,properties:{operator:{name:mse.operator,optional:!0},suffix:{name:mse.suffix}},superTypes:[]},PegPrimary:{name:WB.$type,properties:{},superTypes:[]},PegRule:{name:bse.$type,properties:{definition:{name:bse.definition},name:{name:bse.name}},superTypes:[]},PegSequence:{name:f4e.$type,properties:{elements:{name:f4e.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:yse.$type,properties:{operator:{name:yse.operator,optional:!0},primary:{name:yse.primary}},superTypes:[]},Pie:{name:yI.$type,properties:{accDescr:{name:yI.accDescr,optional:!0},accTitle:{name:yI.accTitle,optional:!0},sections:{name:yI.sections,defaultValue:[],optional:!0},showData:{name:yI.showData,defaultValue:!1,optional:!0},title:{name:yI.title,optional:!0}},superTypes:[]},PieSection:{name:yY.$type,properties:{label:{name:yY.label},value:{name:yY.value}},superTypes:[]},Pipeline:{name:blt.$type,properties:{components:{name:blt.components,defaultValue:[]},parent:{name:blt.parent}},superTypes:[]},PipelineComponent:{name:Wxe.$type,properties:{evolution:{name:Wxe.evolution},label:{name:Wxe.label,optional:!0},name:{name:Wxe.name}},superTypes:[]},Radar:{name:pI.$type,properties:{accDescr:{name:pI.accDescr,optional:!0},accTitle:{name:pI.accTitle,optional:!0},axes:{name:pI.axes,defaultValue:[],optional:!0},curves:{name:pI.curves,defaultValue:[],optional:!0},options:{name:pI.options,defaultValue:[],optional:!0},title:{name:pI.title,optional:!0}},superTypes:[]},Railroad:{name:D7.$type,properties:{accDescr:{name:D7.accDescr,optional:!0},accTitle:{name:D7.accTitle,optional:!0},rules:{name:D7.rules,defaultValue:[]},title:{name:D7.title,optional:!0}},superTypes:[]},RailroadAbnf:{name:P7.$type,properties:{accDescr:{name:P7.accDescr,optional:!0},accTitle:{name:P7.accTitle,optional:!0},rules:{name:P7.rules,defaultValue:[]},title:{name:P7.title,optional:!0}},superTypes:[]},RailroadChoiceExpr:{name:p4e.$type,properties:{alternatives:{name:p4e.alternatives,defaultValue:[]}},superTypes:[BC.$type]},RailroadEbnf:{name:B7.$type,properties:{accDescr:{name:B7.accDescr,optional:!0},accTitle:{name:B7.accTitle,optional:!0},rules:{name:B7.rules,defaultValue:[]},title:{name:B7.title,optional:!0}},superTypes:[]},RailroadExpression:{name:BC.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:g4e.$type,properties:{name:{name:g4e.name}},superTypes:[BC.$type]},RailroadOneOrMoreExpr:{name:m4e.$type,properties:{element:{name:m4e.element}},superTypes:[BC.$type]},RailroadOptionalExpr:{name:b4e.$type,properties:{element:{name:b4e.element}},superTypes:[BC.$type]},RailroadPeg:{name:F7.$type,properties:{accDescr:{name:F7.accDescr,optional:!0},accTitle:{name:F7.accTitle,optional:!0},rules:{name:F7.rules,defaultValue:[]},title:{name:F7.title,optional:!0}},superTypes:[]},RailroadRule:{name:vse.$type,properties:{definition:{name:vse.definition},name:{name:vse.name}},superTypes:[]},RailroadSequenceExpr:{name:y4e.$type,properties:{elements:{name:y4e.elements,defaultValue:[]}},superTypes:[BC.$type]},RailroadSpecialExpr:{name:v4e.$type,properties:{text:{name:v4e.text}},superTypes:[BC.$type]},RailroadTerminalExpr:{name:_4e.$type,properties:{value:{name:_4e.value}},superTypes:[BC.$type]},RailroadZeroOrMoreExpr:{name:E4e.$type,properties:{element:{name:E4e.element}},superTypes:[BC.$type]},Section:{name:ylt.$type,properties:{classSelector:{name:ylt.classSelector,optional:!0},name:{name:ylt.name}},superTypes:[Vae.$type]},Service:{name:Qq.$type,properties:{icon:{name:Qq.icon,optional:!0},iconText:{name:Qq.iconText,optional:!0},id:{name:Qq.id},in:{name:Qq.in},title:{name:Qq.title,optional:!0}},superTypes:[]},Size:{name:vlt.$type,properties:{height:{name:vlt.height},width:{name:vlt.width}},superTypes:[]},Statement:{name:R7.$type,properties:{},superTypes:[]},Transition:{name:QB.$type,properties:{from:{name:QB.from},label:{name:QB.label},to:{name:QB.to}},superTypes:[]},TreeNode:{name:I7.$type,properties:{classAnnotation:{name:I7.classAnnotation,optional:!0},descAnnotation:{name:I7.descAnnotation,optional:!0},iconAnnotation:{name:I7.iconAnnotation,optional:!0},indent:{name:I7.indent,optional:!0},name:{name:I7.name}},superTypes:[]},TreeView:{name:jB.$type,properties:{accDescr:{name:jB.accDescr,optional:!0},accTitle:{name:jB.accTitle,optional:!0},nodes:{name:jB.nodes,defaultValue:[]},title:{name:jB.title,optional:!0}},superTypes:[]},Treemap:{name:$7.$type,properties:{accDescr:{name:$7.accDescr,optional:!0},accTitle:{name:$7.accTitle,optional:!0},title:{name:$7.title,optional:!0},TreemapRows:{name:$7.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:_lt.$type,properties:{indent:{name:_lt.indent,optional:!0},item:{name:_lt.item}},superTypes:[]},Wardley:{name:cm.$type,properties:{accDescr:{name:cm.accDescr,optional:!0},accelerators:{name:cm.accelerators,defaultValue:[],optional:!0},accTitle:{name:cm.accTitle,optional:!0},anchors:{name:cm.anchors,defaultValue:[],optional:!0},annotation:{name:cm.annotation,defaultValue:[],optional:!0},annotations:{name:cm.annotations,defaultValue:[],optional:!0},components:{name:cm.components,defaultValue:[],optional:!0},deaccelerators:{name:cm.deaccelerators,defaultValue:[],optional:!0},evolution:{name:cm.evolution,optional:!0},evolves:{name:cm.evolves,defaultValue:[],optional:!0},links:{name:cm.links,defaultValue:[],optional:!0},notes:{name:cm.notes,defaultValue:[],optional:!0},pipelines:{name:cm.pipelines,defaultValue:[],optional:!0},size:{name:cm.size,optional:!0},title:{name:cm.title,optional:!0}},superTypes:[]}}}static{ee(this,"MermaidAstReflection")}},D0=new BHr,oyi=ee(()=>xBr??(xBr=uy('{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}')),"ArchitectureGrammarGrammar"),lyi=ee(()=>CBr??(CBr=uy('{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"CynefinGrammarGrammar"),cyi=ee(()=>kBr??(kBr=uy('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),uyi=ee(()=>ABr??(ABr=uy('{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}')),"GitGraphGrammarGrammar"),hyi=ee(()=>RBr??(RBr=uy('{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"InfoGrammarGrammar"),dyi=ee(()=>IBr??(IBr=uy('{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"PacketGrammarGrammar"),fyi=ee(()=>OBr??(OBr=uy('{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"PieGrammarGrammar"),pyi=ee(()=>NBr??(NBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}')),"RadarGrammarGrammar"),gyi=ee(()=>LBr??(LBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),myi=ee(()=>MBr??(MBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadEbnfGrammarGrammar"),byi=ee(()=>DBr??(DBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadGrammarGrammar"),yyi=ee(()=>PBr??(PBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadPegGrammarGrammar"),vyi=ee(()=>BBr??(BBr=uy('{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}')),"TreemapGrammarGrammar"),_yi=ee(()=>FBr??(FBr=uy('{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"\'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}')),"TreeViewGrammarGrammar"),Eyi=ee(()=>$Br??($Br=uy('{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"WardleyGrammarGrammar"),wyi={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Syi={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Tyi={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},xyi={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Cyi={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},kyi={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ayi={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ryi={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Iyi={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Oyi={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Nyi={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Lyi={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Myi={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Dyi={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Pyi={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Pu={AstReflection:ee(()=>new BHr,"AstReflection")},eke={Grammar:ee(()=>oyi(),"Grammar"),LanguageMetaData:ee(()=>wyi,"LanguageMetaData"),parser:{}},tke={Grammar:ee(()=>lyi(),"Grammar"),LanguageMetaData:ee(()=>Syi,"LanguageMetaData"),parser:{}},rke={Grammar:ee(()=>cyi(),"Grammar"),LanguageMetaData:ee(()=>Tyi,"LanguageMetaData"),parser:{}},nke={Grammar:ee(()=>uyi(),"Grammar"),LanguageMetaData:ee(()=>xyi,"LanguageMetaData"),parser:{}},ike={Grammar:ee(()=>hyi(),"Grammar"),LanguageMetaData:ee(()=>Cyi,"LanguageMetaData"),parser:{}},ake={Grammar:ee(()=>dyi(),"Grammar"),LanguageMetaData:ee(()=>kyi,"LanguageMetaData"),parser:{}},ske={Grammar:ee(()=>fyi(),"Grammar"),LanguageMetaData:ee(()=>Ayi,"LanguageMetaData"),parser:{}},oke={Grammar:ee(()=>pyi(),"Grammar"),LanguageMetaData:ee(()=>Ryi,"LanguageMetaData"),parser:{}},lke={Grammar:ee(()=>gyi(),"Grammar"),LanguageMetaData:ee(()=>Iyi,"LanguageMetaData"),parser:{}},cke={Grammar:ee(()=>myi(),"Grammar"),LanguageMetaData:ee(()=>Oyi,"LanguageMetaData"),parser:{}},uke={Grammar:ee(()=>byi(),"Grammar"),LanguageMetaData:ee(()=>Nyi,"LanguageMetaData"),parser:{}},hke={Grammar:ee(()=>yyi(),"Grammar"),LanguageMetaData:ee(()=>Lyi,"LanguageMetaData"),parser:{}},dke={Grammar:ee(()=>vyi(),"Grammar"),LanguageMetaData:ee(()=>Myi,"LanguageMetaData"),parser:{}},fke={Grammar:ee(()=>_yi(),"Grammar"),LanguageMetaData:ee(()=>Dyi,"LanguageMetaData"),parser:{}},pke={Grammar:ee(()=>Eyi(),"Grammar"),LanguageMetaData:ee(()=>Pyi,"LanguageMetaData"),parser:{}},Byi=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,Fyi=/accTitle[\t ]*:([^\n\r]*)/,$yi=/title([\t ][^\n\r]*|)/,Uyi={ACC_DESCR:Byi,ACC_TITLE:Fyi,TITLE:$yi},P0=class extends fHr{static{ee(this,"AbstractMermaidValueConverter")}runConverter(e,r,i){let a=this.runCommonConverter(e,r,i);if(a===void 0)a=this.runCustomConverter(e,r,i);if(a===void 0)return super.runConverter(e,r,i);return a}runCommonConverter(e,r,i){let a=Uyi[e.name];if(a===void 0)return;let o=a.exec(r);if(o===null)return;if(o[1]!==void 0)return o[1].trim().replace(/[\t ]{2,}/gm," ");if(o[2]!==void 0)return o[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` -`);return}},d2=class extends P0{static{ee(this,"CommonValueConverter")}runCustomConverter(e,r,i){return}},Xu=class extends dHr{static{ee(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,r,i){let a=super.buildKeywordTokens(e,r,i);return a.forEach((o)=>{if(this.keywords.has(o.name)&&o.PATTERN!==void 0)o.PATTERN=new RegExp(o.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}),a}},FHr=class extends Xu{static{ee(this,"CommonTokenBuilder")}}});function Wse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),oke,fdt);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}var zyi,fdt;var pdt=Re(()=>{Bu();zyi=class extends Xu{static{ee(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},fdt={parser:{TokenBuilder:ee(()=>new zyi,"TokenBuilder"),ValueConverter:ee(()=>new d2,"ValueConverter")}};ee(Wse,"createRadarServices")});function hF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),uke,gdt);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}var Vyi,$Hr,Hyi,gdt;var mdt=Re(()=>{Bu();Vyi=class extends Xu{static{ee(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},$Hr=ee((e)=>{let r=e.slice(1,-1),i="";for(let a=0;anew Vyi,"TokenBuilder"),ValueConverter:ee(()=>new Hyi,"ValueConverter")}};ee(hF,"createRailroadServices")});function dF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),cke,bdt);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}var qyi,UHr,Yyi,bdt;var ydt=Re(()=>{Bu();qyi=class extends Xu{static{ee(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},UHr=ee((e)=>{let r=e.slice(1,-1),i="";for(let a=0;anew qyi,"TokenBuilder"),ValueConverter:ee(()=>new Yyi,"ValueConverter")}};ee(dF,"createRailroadEbnfServices")});function fF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),lke,vdt);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}var Wyi,jyi,vdt;var _dt=Re(()=>{Bu();Wyi=class extends Xu{static{ee(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},jyi=class extends P0{static{ee(this,"RailroadAbnfValueConverter")}runConverter(e,r,i){let a=super.runConverter(e,r,i);if(e.name==="TITLE"&&typeof a==="string"){let o=a.trim();if(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))return o.slice(1,-1)}return a}runCustomConverter(e,r,i){if(e.name==="ABNF_STRING")return r.slice(1,-1);return}},vdt={parser:{TokenBuilder:ee(()=>new Wyi,"TokenBuilder"),ValueConverter:ee(()=>new jyi,"ValueConverter")}};ee(fF,"createRailroadAbnfServices")});function pF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),hke,Edt);return r.ServiceRegistry.register(i),{shared:r,RailroadPeg:i}}var Kyi,GHr,Xyi,Edt;var wdt=Re(()=>{Bu();Kyi=class extends Xu{static{ee(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},GHr=ee((e)=>{let r=e.slice(1,-1),i="";for(let a=0;anew Kyi,"TokenBuilder"),ValueConverter:ee(()=>new Xyi,"ValueConverter")}};ee(pF,"createRailroadPegServices")});function zHr(e){let r=e.validation.TreemapValidator,i=e.validation.ValidationRegistry;if(i){let a={Treemap:r.checkSingleRoot.bind(r)};i.register(a,r)}}function jse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),dke,Sdt);return r.ServiceRegistry.register(i),zHr(i),{shared:r,Treemap:i}}var Qyi,Zyi,Jyi,evi,Sdt;var Tdt=Re(()=>{Bu();Qyi=class extends Xu{static{ee(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},Zyi=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,Jyi=class extends P0{static{ee(this,"TreemapValueConverter")}runCustomConverter(e,r,i){if(e.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));else if(e.name==="SEPARATOR")return r.substring(1,r.length-1);else if(e.name==="STRING2")return r.substring(1,r.length-1);else if(e.name==="INDENTATION")return r.length;else if(e.name==="ClassDef"){if(typeof r!=="string")return r;let a=Zyi.exec(r);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}return}};ee(zHr,"registerValidationChecks");evi=class{static{ee(this,"TreemapValidator")}checkSingleRoot(e,r){let i;for(let a of e.TreemapRows){if(!a.item)continue;if(i===void 0&&a.indent===void 0)i=0;else if(a.indent===void 0)r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"});else if(i!==void 0&&i>=parseInt(a.indent,10))r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"})}}},Sdt={parser:{TokenBuilder:ee(()=>new Qyi,"TokenBuilder"),ValueConverter:ee(()=>new Jyi,"ValueConverter")},validation:{TreemapValidator:ee(()=>new evi,"TreemapValidator")}};ee(jse,"createTreemapServices")});function Kse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),pke,xdt);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}var tvi,xdt;var Cdt=Re(()=>{Bu();tvi=class extends P0{static{ee(this,"WardleyValueConverter")}runCustomConverter(e,r,i){switch(e.name.toUpperCase()){case"LINK_LABEL":return r.substring(1).trim();default:return}}},xdt={parser:{ValueConverter:ee(()=>new tvi,"ValueConverter")}};ee(Kse,"createWardleyServices")});function Xse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),tke,kdt);return r.ServiceRegistry.register(i),{shared:r,Cynefin:i}}var rvi,kdt;var Adt=Re(()=>{Bu();rvi=class extends Xu{static{ee(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},kdt={parser:{TokenBuilder:ee(()=>new rvi,"TokenBuilder"),ValueConverter:ee(()=>new d2,"ValueConverter")}};ee(Xse,"createCynefinServices")});function Qse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),nke,Rdt);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}var nvi,Rdt;var Idt=Re(()=>{Bu();nvi=class extends Xu{static{ee(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},Rdt={parser:{TokenBuilder:ee(()=>new nvi,"TokenBuilder"),ValueConverter:ee(()=>new d2,"ValueConverter")}};ee(Qse,"createGitGraphServices")});function Zse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),ike,Odt);return r.ServiceRegistry.register(i),{shared:r,Info:i}}var ivi,Odt;var Ndt=Re(()=>{Bu();ivi=class extends Xu{static{ee(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},Odt={parser:{TokenBuilder:ee(()=>new ivi,"TokenBuilder"),ValueConverter:ee(()=>new d2,"ValueConverter")}};ee(Zse,"createInfoServices")});function Jse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),ake,Ldt);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}var avi,Ldt;var Mdt=Re(()=>{Bu();avi=class extends Xu{static{ee(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},Ldt={parser:{TokenBuilder:ee(()=>new avi,"TokenBuilder"),ValueConverter:ee(()=>new d2,"ValueConverter")}};ee(Jse,"createPacketServices")});function eoe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),ske,Ddt);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}var svi,ovi,Ddt;var Pdt=Re(()=>{Bu();svi=class extends Xu{static{ee(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},ovi=class extends P0{static{ee(this,"PieValueConverter")}runCustomConverter(e,r,i){if(e.name!=="PIE_SECTION_LABEL")return;return r.replace(/"/g,"").trim()}},Ddt={parser:{TokenBuilder:ee(()=>new svi,"TokenBuilder"),ValueConverter:ee(()=>new ovi,"ValueConverter")}};ee(eoe,"createPieServices")});function toe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),fke,Bdt);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}var lvi,cvi,Bdt;var Fdt=Re(()=>{Bu();lvi=class extends P0{static{ee(this,"TreeViewValueConverter")}runCustomConverter(e,r,i){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="QUOTED_NAME")return r.substring(1,r.length-1);if(e.name==="BARE_NAME")return r.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return r.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let a=r.trim();return a.substring(5,a.length-1)}if(e.name==="DESC_ANNOTATION")return r.trim().substring(2).trim();return}},cvi=class extends Xu{static{ee(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},Bdt={parser:{TokenBuilder:ee(()=>new cvi,"TokenBuilder"),ValueConverter:ee(()=>new lvi,"ValueConverter")}};ee(toe,"createTreeViewServices")});function roe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),eke,$dt);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}var uvi,hvi,$dt;var Udt=Re(()=>{Bu();uvi=class extends Xu{static{ee(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},hvi=class extends P0{static{ee(this,"ArchitectureValueConverter")}runCustomConverter(e,r,i){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let a=r.replace(/^\[|]$/g,"").trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))a=a.slice(1,-1),a=a.replace(/\\"/g,'"').replace(/\\'/g,"'");return a.trim()}return}},$dt={parser:{TokenBuilder:ee(()=>new uvi,"TokenBuilder"),ValueConverter:ee(()=>new hvi,"ValueConverter")}};ee(roe,"createArchitectureServices")});function WHr(e){let r=e.validation.EventModelingValidator,i=e.validation.ValidationRegistry;if(i){let a={EmTimeFrame:r.checkSourceFrameTypes.bind(r),EmResetFrame:r.checkSourceFrameTypes.bind(r)};i.register(a,r)}}function noe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),rke,zdt);return r.ServiceRegistry.register(i),WHr(i),{shared:r,EventModel:i}}var dvi,VHr,HHr,Gdt,qHr,YHr,fvi,zdt;var Vdt=Re(()=>{Bu();dvi=class extends Xu{static{ee(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},VHr=new Set(["cmd","command"]),HHr=new Set(["evt","event"]),Gdt=new Set(["rmo","readmodel"]),qHr=new Set(["pcr","processor"]),YHr=new Set(["ui"]);ee(WHr,"registerValidationChecks");fvi=class{static{ee(this,"EventModelingValidator")}checkSourceFrameTypes(e,r){if(e.sourceFrames.length===0)return;if(VHr.has(e.modelEntityType))this.validateSources(e,new Set([...YHr,...qHr]),"command","ui or processor",r);else if(HHr.has(e.modelEntityType))this.validateSources(e,VHr,"event","command",r);else if(Gdt.has(e.modelEntityType))this.validateSources(e,HHr,"read model","event",r);else if(qHr.has(e.modelEntityType))this.validateSources(e,Gdt,"processor","read model",r);else if(YHr.has(e.modelEntityType))this.validateSources(e,Gdt,"ui","read model",r)}validateSources(e,r,i,a,o){for(let l of e.sourceFrames){let h=l.ref;if(h!==void 0&&!r.has(h.modelEntityType))o("error",`A ${i} can only receive input from a ${a}, not from '${h.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},zdt={parser:{TokenBuilder:ee(()=>new dvi,"TokenBuilder"),ValueConverter:ee(()=>new d2,"ValueConverter")},validation:{EventModelingValidator:ee(()=>new fvi,"EventModelingValidator")}};ee(noe,"createEventModelingServices")});var jHr=Re(()=>{Ndt();Bu()});var KHr=Re(()=>{Mdt();Bu()});var XHr=Re(()=>{Pdt();Bu()});var QHr=Re(()=>{Fdt();Bu()});var ZHr=Re(()=>{Udt();Bu()});var JHr=Re(()=>{Idt();Bu()});var eqr=Re(()=>{Vdt();Bu()});var tqr=Re(()=>{pdt();Bu()});var rqr=Re(()=>{mdt();Bu()});var nqr=Re(()=>{ydt();Bu()});var iqr=Re(()=>{_dt();Bu()});var aqr=Re(()=>{wdt();Bu()});var sqr=Re(()=>{Tdt();Bu()});var oqr=Re(()=>{Cdt();Bu()});var lqr=Re(()=>{Adt();Bu()});async function lp(e,r){let i=pvi[e];if(!i)throw Error(`Unknown diagram type: ${e}`);if(!tb[e])await i();let o=tb[e].parse(r);if(o.lexerErrors.length>0||o.parserErrors.length>0)throw new CI(o);return o.value}var tb,pvi,gke,CI;var rb=Re(()=>{pdt();mdt();ydt();_dt();wdt();Tdt();Cdt();Adt();Idt();Ndt();Mdt();Pdt();Fdt();Udt();Vdt();Bu();tb={},pvi={info:ee(async()=>{await Promise.resolve().then(() => jHr());let r=Zse().Info.parser.LangiumParser;tb.info=r},"info"),packet:ee(async()=>{await Promise.resolve().then(() => KHr());let r=Jse().Packet.parser.LangiumParser;tb.packet=r},"packet"),pie:ee(async()=>{await Promise.resolve().then(() => XHr());let r=eoe().Pie.parser.LangiumParser;tb.pie=r},"pie"),treeView:ee(async()=>{await Promise.resolve().then(() => QHr());let r=toe().TreeView.parser.LangiumParser;tb.treeView=r},"treeView"),architecture:ee(async()=>{await Promise.resolve().then(() => ZHr());let r=roe().Architecture.parser.LangiumParser;tb.architecture=r},"architecture"),gitGraph:ee(async()=>{await Promise.resolve().then(() => JHr());let r=Qse().GitGraph.parser.LangiumParser;tb.gitGraph=r},"gitGraph"),eventmodeling:ee(async()=>{await Promise.resolve().then(() => eqr());let r=noe().EventModel.parser.LangiumParser;tb.eventmodeling=r},"eventmodeling"),radar:ee(async()=>{await Promise.resolve().then(() => tqr());let r=Wse().Radar.parser.LangiumParser;tb.radar=r},"radar"),railroad:ee(async()=>{await Promise.resolve().then(() => rqr());let r=hF().Railroad.parser.LangiumParser;tb.railroad=r},"railroad"),railroadEbnf:ee(async()=>{await Promise.resolve().then(() => nqr());let r=dF().RailroadEbnf.parser.LangiumParser;tb.railroadEbnf=r},"railroadEbnf"),railroadAbnf:ee(async()=>{await Promise.resolve().then(() => iqr());let r=fF().RailroadAbnf.parser.LangiumParser;tb.railroadAbnf=r},"railroadAbnf"),railroadPeg:ee(async()=>{await Promise.resolve().then(() => aqr());let r=pF().RailroadPeg.parser.LangiumParser;tb.railroadPeg=r},"railroadPeg"),treemap:ee(async()=>{await Promise.resolve().then(() => sqr());let r=jse().Treemap.parser.LangiumParser;tb.treemap=r},"treemap"),wardley:ee(async()=>{await Promise.resolve().then(() => oqr());let r=Kse().Wardley.parser.LangiumParser;tb.wardley=r},"wardley"),cynefin:ee(async()=>{await Promise.resolve().then(() => lqr());let r=Xse().Cynefin.parser.LangiumParser;tb.cynefin=r},"cynefin")};ee(lp,"parse");gke=ee((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),CI=class extends Error{constructor(e){let r=e.lexerErrors.map((a)=>{let o=gke(a.line),l=gke(a.column);return`Lexer error on line ${o}, column ${l}: ${a.message}`}).join(` -`),i=e.parserErrors.map((a)=>{let o=gke(a.token.startLine),l=gke(a.token.startColumn);return`Parse error on line ${o}, column ${l}: ${a.message}`}).join(` -`);super(`Parsing failed: ${r} ${i}`);this.result=e}static{ee(this,"MermaidParseError")}}});function yke(){return Jet({length:7})}function uqr(e,r){let i=Object.create(null);return e.reduce((a,o)=>{let l=r(o);if(!i[l])i[l]=!0,a.push(o);return a},[])}function Hdt(e,r,i){let a=e.indexOf(r);if(a===-1)e.push(i);else e.splice(a,1,i)}function Ydt(e){let r=e.reduce((o,l)=>{if(o.seq>l.seq)return o;return l},e[0]),i="";e.forEach(function(o){if(o===r)i+="\t*";else i+="\t|"});let a=[i,r.id,r.seq];for(let o in xa.records.branches)if(xa.records.branches.get(o)===r.id)a.push(o);if(Ze.debug(a.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let o=xa.records.commits.get(r.parents[0]);if(Hdt(e,r,o),r.parents[1])e.push(xa.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let o=xa.records.commits.get(r.parents[0]);Hdt(e,r,o)}e=uqr(e,(o)=>o.id),Ydt(e)}var jh,gvi,bF,xa,mvi,bvi,yvi,vvi,_vi,Evi,wvi,hqr,Svi,Tvi,xvi,Cvi,kvi,dqr,Avi,Rvi,Ivi,fqr,Ovi,Nvi,Lvi,Mvi,Dvi,Pvi,Bvi,Fvi,j7=10,K7=40,J3=4,kI=2,gF=8,vke,qdt=12,Wdt,$vi,mF,f2,p2,mke=30,ioe,bke,AI=0,Ac="LR",Uvi,pqr,gqr,Gvi,zvi,Vvi,Hvi,qvi,Yvi,Wvi,jvi,Kvi,Xvi,Qvi,Zvi,cqr,Jvi,aoe,e_i,t_i,r_i,n_i,i_i,a_i,mqr=8,bqr,s_i,o_i,l_i,c_i,u_i,h_i,d_i,f_i,p_i,yqr;var vqr=Re(()=>{kxe();Tv();Ql();eo();Zs();Ja();rb();dl();jh={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},gvi=Fs.gitGraph,bF=I(()=>bc({...gvi,...ea().gitGraph}),"getConfig"),xa=new Wq(()=>{let e=bF(),{mainBranchName:r,mainBranchOrder:i}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:i}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});I(yke,"getID");I(uqr,"uniqBy");mvi=I(function(e){xa.records.direction=e},"setDirection"),bvi=I(function(e){Ze.debug("options str",e),e=e?.trim(),e=e||"{}";try{xa.records.options=JSON.parse(e)}catch(r){Ze.error("error while parsing gitGraph options",r.message)}},"setOptions"),yvi=I(function(){return xa.records.options},"getOptions"),vvi=I(function(e){let{msg:r,id:i,type:a,tags:o}=e;Ze.info("commit",r,i,a,o),Ze.debug("Entering commit:",r,i,a,o);let l=bF();i=ai.sanitizeText(i,l),r=ai.sanitizeText(r,l),o=o?.map((d)=>ai.sanitizeText(d,l));let h={id:i?i:xa.records.seq+"-"+yke(),message:r,seq:xa.records.seq++,type:a??jh.NORMAL,tags:o??[],parents:xa.records.head==null?[]:[xa.records.head.id],branch:xa.records.currBranch};if(xa.records.head=h,Ze.info("main branch",l.mainBranchName),xa.records.commits.has(h.id))Ze.warn(`Commit ID ${h.id} already exists`);xa.records.commits.set(h.id,h),xa.records.branches.set(xa.records.currBranch,h.id),Ze.debug("in pushCommit "+h.id)},"commit"),_vi=I(function(e){let{name:r,order:i}=e;if(r=ai.sanitizeText(r,bF()),xa.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);xa.records.branches.set(r,xa.records.head!=null?xa.records.head.id:null),xa.records.branchConfig.set(r,{name:r,order:i}),hqr(r),Ze.debug("in createBranch")},"branch"),Evi=I((e)=>{let{branch:r,id:i,type:a,tags:o}=e,l=bF();if(r=ai.sanitizeText(r,l),i)i=ai.sanitizeText(i,l);let h=xa.records.branches.get(xa.records.currBranch),d=xa.records.branches.get(r),p=h?xa.records.commits.get(h):void 0,m=d?xa.records.commits.get(d):void 0;if(p&&m&&p.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(xa.records.currBranch===r){let w=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},w}if(p===void 0||!p){let w=Error(`Incorrect usage of "merge". Current branch (${xa.records.currBranch})has no commits`);throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},w}if(!xa.records.branches.has(r)){let w=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},w}if(m===void 0||!m){let w=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},w}if(p===m){let w=Error('Incorrect usage of "merge". Both branches have same head');throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},w}if(i&&xa.records.commits.has(i)){let w=Error('Incorrect usage of "merge". Commit with id:'+i+" already exists, use different custom id");throw w.hash={text:`merge ${r} ${i} ${a} ${o?.join(" ")}`,token:`merge ${r} ${i} ${a} ${o?.join(" ")}`,expected:[`merge ${r} ${i}_UNIQUE ${a} ${o?.join(" ")}`]},w}let y=d?d:"",E={id:i||`${xa.records.seq}-${yke()}`,message:`merged branch ${r} into ${xa.records.currBranch}`,seq:xa.records.seq++,parents:xa.records.head==null?[]:[xa.records.head.id,y],branch:xa.records.currBranch,type:jh.MERGE,customType:a,customId:i?!0:!1,tags:o??[]};xa.records.head=E,xa.records.commits.set(E.id,E),xa.records.branches.set(xa.records.currBranch,E.id),Ze.debug(xa.records.branches),Ze.debug("in mergeBranch")},"merge"),wvi=I(function(e){let{id:r,targetId:i,tags:a,parent:o}=e;Ze.debug("Entering cherryPick:",r,i,a);let l=bF();if(r=ai.sanitizeText(r,l),i=ai.sanitizeText(i,l),a=a?.map((p)=>ai.sanitizeText(p,l)),o=ai.sanitizeText(o,l),!r||!xa.records.commits.has(r)){let p=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},p}let h=xa.records.commits.get(r);if(h===void 0||!h)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(h.parents)&&h.parents.includes(o)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=h.branch;if(h.type===jh.MERGE&&!o)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!i||!xa.records.commits.has(i)){if(d===xa.records.currBranch){let E=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw E.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},E}let p=xa.records.branches.get(xa.records.currBranch);if(p===void 0||!p){let E=Error(`Incorrect usage of "cherry-pick". Current branch (${xa.records.currBranch})has no commits`);throw E.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},E}let m=xa.records.commits.get(p);if(m===void 0||!m){let E=Error(`Incorrect usage of "cherry-pick". Current branch (${xa.records.currBranch})has no commits`);throw E.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},E}let y={id:xa.records.seq+"-"+yke(),message:`cherry-picked ${h?.message} into ${xa.records.currBranch}`,seq:xa.records.seq++,parents:xa.records.head==null?[]:[xa.records.head.id,h.id],branch:xa.records.currBranch,type:jh.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${h.id}${h.type===jh.MERGE?`|parent:${o}`:""}`]};xa.records.head=y,xa.records.commits.set(y.id,y),xa.records.branches.set(xa.records.currBranch,y.id),Ze.debug(xa.records.branches),Ze.debug("in cherryPick")}},"cherryPick"),hqr=I(function(e){if(e=ai.sanitizeText(e,bF()),!xa.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{xa.records.currBranch=e;let r=xa.records.branches.get(xa.records.currBranch);if(r===void 0||!r)xa.records.head=null;else xa.records.head=xa.records.commits.get(r)??null}},"checkout");I(Hdt,"upsert");I(Ydt,"prettyPrintCommitHistory");Svi=I(function(){Ze.debug(xa.records.commits);let e=dqr()[0];Ydt([e])},"prettyPrint"),Tvi=I(function(){xa.reset(),qs()},"clear"),xvi=I(function(){return[...xa.records.branchConfig.values()].map((r,i)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${i}`)}}).sort((r,i)=>(r.order??0)-(i.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Cvi=I(function(){return xa.records.branches},"getBranches"),kvi=I(function(){return xa.records.commits},"getCommits"),dqr=I(function(){let e=[...xa.records.commits.values()];return e.forEach(function(r){Ze.debug(r.id)}),e.sort((r,i)=>r.seq-i.seq),e},"getCommitsArray"),Avi=I(function(){return xa.records.currBranch},"getCurrentBranch"),Rvi=I(function(){return xa.records.direction},"getDirection"),Ivi=I(function(){return xa.records.head},"getHead"),fqr={commitType:jh,getConfig:bF,setDirection:mvi,setOptions:bvi,getOptions:yvi,commit:vvi,branch:_vi,merge:Evi,cherryPick:wvi,checkout:hqr,prettyPrint:Svi,clear:Tvi,getBranchesAsObjArray:xvi,getBranches:Cvi,getCommits:kvi,getCommitsArray:dqr,getCurrentBranch:Avi,getDirection:Rvi,getHead:Ivi,setAccTitle:Ys,getAccTitle:oo,getAccDescription:lo,setAccDescription:Js,setDiagramTitle:_o,getDiagramTitle:fo},Ovi=I((e,r)=>{if(Sh(e,r),e.dir)r.setDirection(e.dir);for(let i of e.statements)Nvi(i,r)},"populate"),Nvi=I((e,r)=>{let a={Commit:I((o)=>r.commit(Lvi(o)),"Commit"),Branch:I((o)=>r.branch(Mvi(o)),"Branch"),Merge:I((o)=>r.merge(Dvi(o)),"Merge"),Checkout:I((o)=>r.checkout(Pvi(o)),"Checkout"),CherryPicking:I((o)=>r.cherryPick(Bvi(o)),"CherryPicking")}[e.$type];if(a)a(e);else Ze.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Lvi=I((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?jh[e.type]:jh.NORMAL,tags:e.tags??void 0}),"parseCommit"),Mvi=I((e)=>({name:e.name,order:e.order??0}),"parseBranch"),Dvi=I((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?jh[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Pvi=I((e)=>e.branch,"parseCheckout"),Bvi=I((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Fvi={parse:I(async(e)=>{let r=await lp("gitGraph",e);Ze.debug(r),Ovi(r,fqr)},"parse")},vke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Wdt=new Set(["redux-color","redux-dark-color"]),$vi=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),mF=I((e,r,i=!1)=>{if(i&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),f2=new Map,p2=new Map,ioe=new Map,bke=[],Uvi=I(()=>{f2.clear(),p2.clear(),ioe.clear(),AI=0,bke=[],Ac="LR"},"clear"),pqr=I((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|/gi):e).forEach((a)=>{let o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=a.trim(),r.appendChild(o)}),r},"drawText"),gqr=I((e)=>{let r,i,a;if(Ac==="BT")i=I((o,l)=>o<=l,"comparisonFunc"),a=1/0;else i=I((o,l)=>o>=l,"comparisonFunc"),a=0;return e.forEach((o)=>{let l=Ac==="TB"||Ac=="BT"?p2.get(o)?.y:p2.get(o)?.x;if(l!==void 0&&i(l,a))r=o,a=l}),r},"findClosestParent"),Gvi=I((e)=>{let r="",i=1/0;return e.forEach((a)=>{let o=p2.get(a).y;if(o<=i)r=a,i=o}),r||void 0},"findClosestParentBT"),zvi=I((e,r,i)=>{let a=i,o=i,l=[];e.forEach((h)=>{let d=r.get(h);if(!d)throw Error(`Commit not found for key ${h}`);if(d.parents.length)a=Hvi(d),o=Math.max(a,o);else l.push(d);qvi(d,a)}),a=o,l.forEach((h)=>{Yvi(h,a,i)}),e.forEach((h)=>{let d=r.get(h);if(d?.parents.length){let p=Gvi(d.parents);if(a=p2.get(p).y-K7,a<=o)o=a;let m=f2.get(d.branch).pos,y=a-j7;p2.set(d.id,{x:m,y})}})},"setParallelBTPos"),Vvi=I((e)=>{let r=gqr(e.parents.filter((a)=>a!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let i=p2.get(r)?.y;if(i===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return i},"findClosestParentPos"),Hvi=I((e)=>Vvi(e)+K7,"calculateCommitPosition"),qvi=I((e,r)=>{let i=f2.get(e.branch);if(!i)throw Error(`Branch not found for commit ${e.id}`);let a=i.pos,o=r+j7;return p2.set(e.id,{x:a,y:o}),{x:a,y:o}},"setCommitPosition"),Yvi=I((e,r,i)=>{let a=f2.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let o=r+i,l=a.pos;p2.set(e.id,{x:l,y:o})},"setRootPosition"),Wvi=I((e,r,i,a,o,l)=>{let{theme:h}=Ar(),d=vke.has(h??""),p=Wdt.has(h??""),m=$vi.has(h??"");if(l===jh.HIGHLIGHT)e.append("rect").attr("x",i.x-10+(d?3:0)).attr("y",i.y-10+(d?3:0)).attr("width",d?14:20).attr("height",d?14:20).attr("class",`commit ${r.id} commit-highlight${mF(o,gF,p)} ${a}-outer`),e.append("rect").attr("x",i.x-6+(d?2:0)).attr("y",i.y-6+(d?2:0)).attr("width",d?8:12).attr("height",d?8:12).attr("class",`commit ${r.id} commit${mF(o,gF,p)} ${a}-inner`);else if(l===jh.CHERRY_PICK)e.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",d?7:10).attr("class",`commit ${r.id} ${a}`),e.append("circle").attr("cx",i.x-3).attr("cy",i.y+2).attr("r",d?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`),e.append("circle").attr("cx",i.x+3).attr("cy",i.y+2).attr("r",d?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`),e.append("line").attr("x1",i.x+3).attr("y1",i.y+1).attr("x2",i.x).attr("y2",i.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`),e.append("line").attr("x1",i.x-3).attr("y1",i.y+1).attr("x2",i.x).attr("y2",i.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`);else{let y=e.append("circle");if(y.attr("cx",i.x),y.attr("cy",i.y),y.attr("r",d?7:10),y.attr("class",`commit ${r.id} commit${mF(o,gF,p)}`),l===jh.MERGE){let E=e.append("circle");E.attr("cx",i.x),E.attr("cy",i.y),E.attr("r",d?5:6),E.attr("class",`commit ${a} ${r.id} commit${mF(o,gF,p)}`)}if(l===jh.REVERSE){let E=e.append("path"),w=d?4:5;E.attr("d",`M ${i.x-w},${i.y-w}L${i.x+w},${i.y+w}M${i.x-w},${i.y+w}L${i.x+w},${i.y-w}`).attr("class",`commit ${a} ${r.id} commit${mF(o,gF,p)}`)}}},"drawCommitBullet"),jvi=I((e,r,i,a,o)=>{if(r.type!==jh.CHERRY_PICK&&(r.customId&&r.type===jh.MERGE||r.type!==jh.MERGE)&&o.showCommitLabel){let l=e.append("g"),h=l.insert("rect").attr("class","commit-label-bkg"),d=l.append("text").attr("x",a).attr("y",i.y+25).attr("class","commit-label").text(r.id),p=d.node()?.getBBox();if(p){if(h.attr("x",i.posWithOffset-p.width/2-kI).attr("y",i.y+13.5).attr("width",p.width+2*kI).attr("height",p.height+2*kI),Ac==="TB"||Ac==="BT")h.attr("x",i.x-(p.width+4*J3+5)).attr("y",i.y-12),d.attr("x",i.x-(p.width+4*J3)).attr("y",i.y+p.height-12);else d.attr("x",i.posWithOffset-p.width/2);if(o.rotateCommitLabel)if(Ac==="TB"||Ac==="BT")d.attr("transform","rotate(-45, "+i.x+", "+i.y+")"),h.attr("transform","rotate(-45, "+i.x+", "+i.y+")");else{let m=-7.5-(p.width+10)/25*9.5,y=10+p.width/25*8.5;l.attr("transform","translate("+m+", "+y+") rotate(-45, "+a+", "+i.y+")")}}}},"drawCommitLabel"),Kvi=I((e,r,i,a)=>{if(r.tags.length>0){let o=0,l=0,h=0,d=[];for(let p of r.tags.reverse()){let m=e.insert("polygon"),y=e.append("circle"),E=e.append("text").attr("y",i.y-16-o).attr("class","tag-label").text(p),w=E.node()?.getBBox();if(!w)throw Error("Tag bbox not found");l=Math.max(l,w.width),h=Math.max(h,w.height),E.attr("x",i.posWithOffset-w.width/2),d.push({tag:E,hole:y,rect:m,yOffset:o}),o+=20}for(let{tag:p,hole:m,rect:y,yOffset:E}of d){let w=h/2,T=i.y-19.2-E;if(y.attr("class","tag-label-bkg").attr("points",` - ${a-l/2-J3/2},${T+kI} - ${a-l/2-J3/2},${T-kI} - ${i.posWithOffset-l/2-J3},${T-w-kI} - ${i.posWithOffset+l/2+J3},${T-w-kI} - ${i.posWithOffset+l/2+J3},${T+w+kI} - ${i.posWithOffset-l/2-J3},${T+w+kI}`),m.attr("cy",T).attr("cx",a-l/2+J3/2).attr("r",1.5).attr("class","tag-hole"),Ac==="TB"||Ac==="BT"){let x=a+E;y.attr("class","tag-label-bkg").attr("points",` +`}return r}},UHr=class{static{te(this,"JSDocLineImpl")}constructor(e,r){this.text=e,this.range=r}toString(){return this.text}toMarkdown(){return this.text}};te(gut,"fillNewlines");iyi=class{static{te(this,"JSDocDocumentationProvider")}constructor(e){this.indexManager=e.shared.workspace.IndexManager,this.commentProvider=e.documentation.CommentProvider}getDocumentation(e){let r=this.commentProvider.getComment(e);if(r&&IHr(r))return RHr(r).toMarkdown({renderLink:te((a,o)=>this.documentationLinkRenderer(e,a,o),"renderLink"),renderTag:te((a)=>this.documentationTagRenderer(e,a),"renderTag")});return}documentationLinkRenderer(e,r,i){let a=this.findNameInLocalSymbols(e,r)??this.findNameInGlobalScope(e,r);if(a&&a.nameSegment){let o=a.nameSegment.range.start.line+1,l=a.nameSegment.range.start.character+1,h=a.documentUri.with({fragment:`L${o},${l}`});return`[${i}](${h.toString()})`}else return}documentationTagRenderer(e,r){return}findNameInLocalSymbols(e,r){let a=W3(e).localSymbols;if(!a)return;let o=e;do{let h=a.getStream(o).find((d)=>d.name===r);if(h)return h;o=o.$container}while(o);return}findNameInGlobalScope(e,r){return this.indexManager.allElements().find((a)=>a.name===r)}},ayi=class{static{te(this,"DefaultCommentProvider")}constructor(e){this.grammarConfig=()=>e.parser.GrammarConfig}getComment(e){if(xHr(e))return e.$comment;return xFr(e.$cstNode,this.grammarConfig().multilineCommentRules)?.text}},syi=class{static{te(this,"DefaultAsyncParser")}constructor(e){this.syncParser=e.parser.LangiumParser}parse(e,r){return Promise.resolve(this.syncParser.parse(e))}};(function(e){e[e.Normal=0]="Normal",e[e.Immediate=1]="Immediate"})(qCe||(qCe={}));oyi=class{static{te(this,"DefaultWorkspaceLock")}constructor(){this.previousTokenSource=new op.CancellationTokenSource,this.writeQueue=[],this.readQueue=[],this.immediateReads=[],this.done=!0}write(e){this.cancelWrite();let r=_Hr();return this.previousTokenSource=r,this.enqueue(this.writeQueue,e,r.token)}read(e,r=qCe.Normal){if(r===qCe.Immediate){let i=Promise.resolve().then(()=>e());this.immediateReads.push(i);let a=te(()=>{this.immediateReads.splice(this.immediateReads.indexOf(i),1)},"remove");return i.then(a,a),i}return this.enqueue(this.readQueue,e)}enqueue(e,r,i=op.CancellationToken.None){let a=new Uht,o={action:r,deferred:a,cancellationToken:i};return e.push(o),this.performNextOperation(),a.promise}async performNextOperation(){if(!this.done)return;let e=[];if(this.writeQueue.length>0){e.push(this.writeQueue.shift()),this.done=!1;while(this.immediateReads.length>0)await Promise.allSettled(this.immediateReads.slice())}else if(this.readQueue.length>0)e.push(...this.readQueue.splice(0,this.readQueue.length)),this.done=!1;else return;await Promise.all(e.map(async({action:r,deferred:i,cancellationToken:a})=>{try{let o=await Promise.resolve().then(()=>r(a));i.resolve(o)}catch(o){if(jse(o))i.resolve(void 0);else i.reject(o)}})),this.done=!0,this.performNextOperation()}cancelWrite(){this.previousTokenSource.cancel()}},lyi=class{static{te(this,"DefaultHydrator")}constructor(e){this.grammarElementIdMap=new _Br,this.tokenTypeIdMap=new _Br,this.cstNodeBuilder=new XVr,this.grammar=e.Grammar,this.lexer=e.parser.Lexer,this.linker=e.references.Linker}dehydrate(e){return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport?this.dehydrateLexerReport(e.lexerReport):void 0,parserErrors:e.parserErrors.map((r)=>({...r,message:r.message})),value:this.dehydrateAstNode(e.value,this.createDehyrationContext(e.value))}}dehydrateLexerReport(e){return e}createDehyrationContext(e){let r=new Map,i=new Map;for(let a of j3(e))r.set(a,{});if(e.$cstNode)for(let a of RCe(e.$cstNode))i.set(a,{});return{astNodes:r,cstNodes:i}}dehydrateAstNode(e,r){let i=r.astNodes.get(e);if(i.$type=e.$type,i.$containerIndex=e.$containerIndex,i.$containerProperty=e.$containerProperty,e.$cstNode!==void 0)i.$cstNode=this.dehydrateCstNode(e.$cstNode,r);for(let[a,o]of Object.entries(e)){if(a.startsWith("$"))continue;if(Array.isArray(o)){let l=[];i[a]=l;for(let h of o)if(o1(h))l.push(this.dehydrateAstNode(h,r));else if(bT(h))l.push(this.dehydrateReference(h,r));else l.push(h)}else if(o1(o))i[a]=this.dehydrateAstNode(o,r);else if(bT(o))i[a]=this.dehydrateReference(o,r);else if(o!==void 0)i[a]=o}return i}dehydrateReference(e,r){let i={};if(i.$refText=e.$refText,e.$refNode)i.$refNode=r.cstNodes.get(e.$refNode);return i}dehydrateCstNode(e,r){let i=r.cstNodes.get(e);if($ut(e))i.fullText=e.fullText;else i.grammarSource=this.getGrammarElementId(e.grammarSource);if(i.hidden=e.hidden,wY(e))i.content=e.content.map((a)=>this.dehydrateCstNode(a,r));else if(Fut(e)){i.tokenType=e.tokenType.name,i.offset=e.offset,i.length=e.length;let{start:a,end:o}=e.range;i.startLine=a.line,i.startColumn=a.character,i.endLine=o.line,i.endColumn=o.character}return i}hydrate(e){let r=e.value,i=this.createHydrationContext(r);if("$cstNode"in r)this.hydrateCstNode(r.$cstNode,i);return{lexerErrors:e.lexerErrors,lexerReport:e.lexerReport,parserErrors:e.parserErrors,value:this.hydrateAstNode(r,i)}}createHydrationContext(e){let r=new Map,i=new Map;for(let a of j3(e))r.set(a,{});if(e.$cstNode)for(let a of RCe(e.$cstNode)){let o;if("fullText"in a)o=new JVr(a.fullText);else if("content"in a)o=new Pht;else if("tokenType"in a)o=this.hydrateCstLeafNode(a);if(o)i.set(a,o)}return{astNodes:r,cstNodes:i,linkedCstNodes:new Set}}hydrateAstNode(e,r){let i=r.astNodes.get(e);if(i.$type=e.$type,i.$containerIndex=e.$containerIndex,i.$containerProperty=e.$containerProperty,e.$cstNode){let a=r.cstNodes.get(e.$cstNode);if(i.$cstNode=a,a&&!r.linkedCstNodes.has(a))r.linkedCstNodes.add(a),a.astNode=i}for(let[a,o]of Object.entries(e)){if(a.startsWith("$"))continue;if(Array.isArray(o)){let l=[];i[a]=l;for(let h of o)if(o1(h))l.push(this.setParent(this.hydrateAstNode(h,r),i));else if(bT(h))l.push(this.hydrateReference(h,i,a,r));else l.push(h)}else if(o1(o))i[a]=this.setParent(this.hydrateAstNode(o,r),i);else if(bT(o))i[a]=this.hydrateReference(o,i,a,r);else if(o!==void 0)i[a]=o}return i}setParent(e,r){return e.$container=r,e}hydrateReference(e,r,i,a){return this.linker.buildReference(r,i,a.cstNodes.get(e.$refNode),e.$refText)}hydrateCstNode(e,r,i=0){let a=r.cstNodes.get(e);if(typeof e.grammarSource==="number")a.grammarSource=this.getGrammarElement(e.grammarSource);if(wY(a)){let o=[];for(let l of e.content)o.push(this.hydrateCstNode(l,r,i++));this.cstNodeBuilder.appendChildren(a,o)}return a}hydrateCstLeafNode(e){let r=this.getTokenType(e.tokenType);return new ZVr(e.offset,e.length,e.startLine,e.startColumn,e.endLine,e.endColumn,r,e.hidden)}getTokenType(e){return this.lexer.definition[e]}getGrammarElementId(e){if(!e)return;if(this.grammarElementIdMap.size===0)this.createGrammarElementIdMap();return this.grammarElementIdMap.get(e)}getGrammarElement(e){if(this.grammarElementIdMap.size===0)this.createGrammarElementIdMap();return this.grammarElementIdMap.getKey(e)}createGrammarElementIdMap(){let e=0;for(let r of j3(this.grammar))if(rFr(r))this.grammarElementIdMap.set(r,e++)}};te(hu,"createDefaultCoreModule");te(du,"createDefaultSharedCoreModule");(function(e){e.merge=(r,i)=>CY(CY({},r),i)})(TBr||(TBr={}));te($o,"inject");cyi=Symbol("isProxy");te(jht,"_inject");xBr=Symbol();te(mut,"_resolve");te(CY,"_merge");uyi=class{static{te(this,"EmptyFileSystemProvider")}stat(e){throw Error("No file system is available.")}statSync(e){throw Error("No file system is available.")}async exists(){return!1}existsSync(){return!1}readBinary(){throw Error("No file system is available.")}readBinarySync(){throw Error("No file system is available.")}readFile(){throw Error("No file system is available.")}readFileSync(){throw Error("No file system is available.")}async readDirectory(){return[]}readDirectorySync(){return[]}},Du={fileSystemProvider:te(()=>new uyi,"fileSystemProvider")},hyi={Grammar:te(()=>{return},"Grammar"),LanguageMetaData:te(()=>({caseInsensitive:!1,fileExtensions:[".langium"],languageId:"langium"}),"LanguageMetaData")},dyi={AstReflection:te(()=>new _Fr,"AstReflection")};te(GHr,"createMinimalGrammarServices");te(uy,"loadGrammarFromJson");((e)=>{e.Terminals={ARROW_DIRECTION:/L|R|T|B/,ARROW_GROUP:/\{group\}/,ARROW_INTO:/<|>/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ARCH_ICON:/\([\w-:]+\)/,ARCH_TITLE:/\[(?:"([^"\\]|\\.)*"|'([^'\\]|\\.)*'|[^\[\]\r\n]+)\]/}})(but||(but={}));((e)=>{e.Terminals={DOMAIN_NAME:/complex|complicated|clear|chaotic|confusion/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(yut||(yut={}));((e)=>{e.Terminals={EM_ID:/[_a-zA-Z][\w_]*/,EM_FID:/\d{1,3}/,EM_DATA_INLINE:/\{(.*)\}|"(.*)"|'(.*)'/,EM_DATA_BLOCK:/\{[\t ]*\r?\n(?:[\S\s]*?\r?\n)?\}(?:\r?\n|(?!\S))/,EM_ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EM_ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,EM_TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,EM_WS:/\s+/,EM_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EM_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EM_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EM_ML_COMMENT:/\/\*[\s\S]*?\*\//,EM_SL_COMMENT:/\/\/[^\n\r]*/}})(vut||(vut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,REFERENCE:/\w([-\./\w]*[-\w])?/}})(_ut||(_ut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Eut||(Eut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(wut||(wut={}));((e)=>{e.Terminals={NUMBER_PIE:/(?:-?[0-9]+\.[0-9]+(?!\.))|(?:-?(0|[1-9][0-9]*)(?!\.))/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Sut||(Sut={}));((e)=>{e.Terminals={GRATICULE:/circle|polygon/,BOOLEAN:/true|false/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,NUMBER:/(?:[0-9]+\.[0-9]+(?!\.))|(?:0|[1-9][0-9]*(?!\.))/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Tut||(Tut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ABNF_RULENAME:/[A-Za-z][A-Za-z0-9-]*/,ABNF_STRING:/"[^"]*"/,ABNF_NUMVAL:/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\.[0-9A-Fa-f]+)*/,ABNF_REPEAT:/[0-9]*\*[0-9]*/,ABNF_EXACT_REPEAT:/[0-9]+/,ABNF_WHITESPACE:/[\t \r\n]+/,ABNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,ABNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,ABNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,ABNF_COMMENT:/;[^\n\r]*/}})(xut||(xut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,EBNF_ID:/[A-Z_a-z][\w-]*/,EBNF_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,EBNF_SPECIAL_SEQUENCE:/\?(?=[^?;]*[^?\s;][^?;]*\?)[^?;]*\?/,EBNF_WHITESPACE:/[\t \r\n]+/,EBNF_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,EBNF_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,EBNF_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,EBNF_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//,EBNF_ISO_COMMENT:/\(\*[\s\S]*?\*\)/}})(Cut||(Cut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,RR_ID:/[A-Z_a-z][\w-]*/,RR_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,RR_WHITESPACE:/[\t \r\n]+/,RR_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,RR_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,RR_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,RR_BLOCK_COMMENT:/\/\*[\s\S]*?\*\//}})(kut||(kut={}));((e)=>{e.Terminals={TITLE:/title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,ACC_TITLE:/accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,ACC_DESCR:/accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,PEG_ID:/[A-Z_a-z][\w-]*/,PEG_STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,PEG_WHITESPACE:/[\t \r\n]+/,PEG_YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,PEG_DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,PEG_SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/,PEG_LINE_COMMENT:/#[^\n\r]*/}})(Aut||(Aut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,TREEMAP_KEYWORD:/treemap-beta|treemap/,CLASS_DEF:/classDef\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\s+([^;\r\n]*))?(?:;)?/,STYLE_SEPARATOR:/:::/,SEPARATOR:/:/,COMMA:/,/,INDENTATION:/[ \t]{1,}/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,ID2:/[a-zA-Z_][a-zA-Z0-9_]*/,NUMBER2:/[0-9_\.\,]+/,STRING2:/"[^"]*"|'[^']*'/}})(Rut||(Rut={}));((e)=>{e.Terminals={ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,CLASS_ANNOTATION:/[ \t]+:::[ \t]*[A-Za-z_][\w-]*/,ICON_ANNOTATION:/[ \t]+icon\([\w-]*(?::[\w-]+)?\)/,DESC_ANNOTATION:/[ \t]+##[^\n\r]*/,INDENTATION:/[ \t]{1,}/,QUOTED_NAME:/"[^"]*"|'[^']*'/,WS:/[ \t]+/,ML_COMMENT:/\%\%[^\n]*/,NL:/\r?\n/,BARE_NAME:/(?!:::|icon\(|##)[^ \t\n\r"'](?:(?![ \t]+:::[ \t]*[A-Za-z_]|[ \t]+icon\(|[ \t]+##)[^\n\r])*/}})(Iut||(Iut={}));((e)=>{e.Terminals={WARDLEY_NUMBER:/[0-9]+\.[0-9]+/,ARROW:/->/,LINK_PORT:/\+<>|\+>|\+|-\.->|>|\+'[^']*'<>|\+'[^']*'<|\+'[^']*'>/,LINK_LABEL:/;[^\n\r]+/,STRATEGY:/build|buy|outsource|market/,KW_WARDLEY:/wardley-beta/,KW_SIZE:/size/,KW_EVOLUTION:/evolution/,KW_ANCHOR:/anchor/,KW_COMPONENT:/component/,KW_LABEL:/label/,KW_INERTIA:/inertia/,KW_EVOLVE:/evolve/,KW_PIPELINE:/pipeline/,KW_NOTE:/note/,KW_ANNOTATIONS:/annotations/,KW_ANNOTATION:/annotation/,KW_ACCELERATOR:/accelerator/,KW_DEACCELERATOR:/deaccelerator/,NAME_WITH_SPACES:/(?!title\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/,WS:/[ \t]+/,ACC_DESCR:/[\t ]*accDescr(?:[\t ]*:([^\n\r]*?(?=%%)|[^\n\r]*)|\s*{([^}]*)})/,ACC_TITLE:/[\t ]*accTitle[\t ]*:(?:[^\n\r]*?(?=%%)|[^\n\r]*)/,TITLE:/[\t ]*title(?:[\t ][^\n\r]*?(?=%%)|[\t ][^\n\r]*|)/,INT:/0|[1-9][0-9]*(?!\.)/,STRING:/"([^"\\]|\\.)*"|'([^'\\]|\\.)*'/,ID:/[\w]([-\w]*\w)?/,NEWLINE:/\r?\n/,WHITESPACE:/[\t ]+/,YAML:/---[\t ]*\r?\n(?:[\S\s]*?\r?\n)?---(?:\r?\n|(?!\S))/,DIRECTIVE:/[\t ]*%%{[\S\s]*?}%%(?:\r?\n|(?!\S))/,SINGLE_LINE_COMMENT:/[\t ]*%%[^\n\r]*/}})(Out||(Out={}));WZa={...but.Terminals,...yut.Terminals,...vut.Terminals,..._ut.Terminals,...Eut.Terminals,...wut.Terminals,...Sut.Terminals,...Tut.Terminals,...xut.Terminals,...Cut.Terminals,...kut.Terminals,...Aut.Terminals,...Iut.Terminals,...Rut.Terminals,...Out.Terminals},YCe={$type:"AbnfAlternation",alternatives:"alternatives"},WCe={$type:"AbnfConcatenation",elements:"elements"},gse={$type:"AbnfElement",primary:"primary",repeat:"repeat"},jCe={$type:"AbnfGroup",element:"element"},KCe={$type:"AbnfNumVal",value:"value"},XCe={$type:"AbnfOptionalGroup",element:"element"},R7={$type:"AbnfPrimary"},mse={$type:"AbnfRule",definition:"definition",name:"name"},QCe={$type:"AbnfRuleName",name:"name"},ZCe={$type:"AbnfStringLiteral",value:"value"},$xe={$type:"Accelerator",name:"name",x:"x",y:"y"},dlt={$type:"Alignment",direction:"direction",members:"members"},Uxe={$type:"Anchor",evolution:"evolution",name:"name",visibility:"visibility"},Vae={$type:"Annotation",number:"number",text:"text",x:"x",y:"y"},flt={$type:"Annotations",x:"x",y:"y"},mT={$type:"Architecture",accDescr:"accDescr",accTitle:"accTitle",alignments:"alignments",edges:"edges",groups:"groups",junctions:"junctions",services:"services",title:"title"};te(Kht,"isArchitecture");Gxe={$type:"Axis",label:"label",name:"name"},vY={$type:"Branch",name:"name",order:"order"};te(Xht,"isBranch");CBr={$type:"Checkout",branch:"branch"},zxe={$type:"CherryPicking",id:"id",parent:"parent",tags:"tags"},plt={$type:"ClassDefStatement",className:"className",styleText:"styleText"},L7={$type:"Commit",id:"id",message:"message",tags:"tags",type:"type"};te(Qht,"isCommit");Vxe={$type:"Common",accDescr:"accDescr",accTitle:"accTitle",title:"title"},FB={$type:"Component",decorator:"decorator",evolution:"evolution",inertia:"inertia",label:"label",name:"name",visibility:"visibility"},Hxe={$type:"Curve",entries:"entries",label:"label",name:"name"},vI={$type:"Cynefin",accDescr:"accDescr",accTitle:"accTitle",domains:"domains",title:"title",transitions:"transitions"};te(Zht,"isCynefin");qxe={$type:"Deaccelerator",name:"name",x:"x",y:"y"},kBr={$type:"Decorator",strategy:"strategy"},Jq={$type:"Direction",accDescr:"accDescr",accTitle:"accTitle",dir:"dir",statements:"statements",title:"title"},_Y={$type:"DomainBlock",domain:"domain",items:"items"};te(Jht,"isDomainBlock");Bse={$type:"DomainItem",label:"label"};te(edt,"isDomainItem");JCe={$type:"EbnfChoice",alternatives:"alternatives"},e4e={$type:"EbnfExceptionPostfix",except:"except"},t4e={$type:"EbnfGroup",element:"element"},r4e={$type:"EbnfNonTerminal",name:"name"},n4e={$type:"EbnfOneOrMorePostfix",operator:"operator"},i4e={$type:"EbnfOptional",element:"element"},a4e={$type:"EbnfOptionalPostfix",operator:"operator"},jB={$type:"EbnfPostfix"},gI={$type:"EbnfPrimary"},s4e={$type:"EbnfRepetition",element:"element"},bse={$type:"EbnfRule",definition:"definition",name:"name"},o4e={$type:"EbnfSequence",elements:"elements"},l4e={$type:"EbnfSpecial",text:"text"},yse={$type:"EbnfTerm",base:"base",postfixes:"postfixes"},c4e={$type:"EbnfTerminal",value:"value"},u4e={$type:"EbnfZeroOrMorePostfix",operator:"operator"},H3={$type:"Edge",lhsDir:"lhsDir",lhsGroup:"lhsGroup",lhsId:"lhsId",lhsInto:"lhsInto",rhsDir:"rhsDir",rhsGroup:"rhsGroup",rhsId:"rhsId",rhsInto:"rhsInto",title:"title"},I7={$type:"EmDataEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",name:"name"},mI={$type:"EmFrame"},Hae={$type:"EmGwt",givenStatements:"givenStatements",sourceFrame:"sourceFrame",thenStatements:"thenStatements",whenStatements:"whenStatements"},ABr={$type:"EmGwtStatement",entityIdentifier:"entityIdentifier"},glt={$type:"EmModelEntity",name:"name"};te(tdt,"isEmModelEntityType");Yxe={$type:"EmNoteEntity",dataBlockValue:"dataBlockValue",dataType:"dataType",sourceFrame:"sourceFrame"},fI={$type:"EmResetFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"};te(Kse,"isEmResetFrame");x7={$type:"EmTimeFrame",dataInlineValue:"dataInlineValue",dataReference:"dataReference",dataType:"dataType",entityIdentifier:"entityIdentifier",modelEntityType:"modelEntityType",name:"name",sourceFrames:"sourceFrames"},mlt={$type:"Entry",axis:"axis",value:"value"},FC={$type:"EventModel",accDescr:"accDescr",accTitle:"accTitle",dataEntities:"dataEntities",frames:"frames",gwtEntities:"gwtEntities",modelEntities:"modelEntities",noteEntities:"noteEntities",title:"title"},RBr={$type:"Evolution",stages:"stages"},Wxe={$type:"EvolutionStage",boundary:"boundary",name:"name",secondName:"secondName"},blt={$type:"Evolve",component:"component",target:"target"},_I={$type:"GitGraph",accDescr:"accDescr",accTitle:"accTitle",statements:"statements",title:"title"};te(rdt,"isGitGraph");qae={$type:"Group",icon:"icon",id:"id",in:"in",title:"title"},ZB={$type:"Info",accDescr:"accDescr",accTitle:"accTitle",title:"title"};te(ndt,"isInfo");Yae={$type:"Item",classSelector:"classSelector",name:"name"},ylt={$type:"Junction",id:"id",in:"in"},Wae={$type:"Label",negX:"negX",negY:"negY",offsetX:"offsetX",offsetY:"offsetY"},jxe={$type:"Leaf",classSelector:"classSelector",name:"name",value:"value"},$B={$type:"Link",arrow:"arrow",from:"from",fromPort:"fromPort",linkLabel:"linkLabel",to:"to",toPort:"toPort"},M7={$type:"Merge",branch:"branch",id:"id",tags:"tags",type:"type"};te(idt,"isMerge");Kxe={$type:"Note",evolution:"evolution",text:"text",visibility:"visibility"},vlt={$type:"Option",name:"name",value:"value"},D7={$type:"Packet",accDescr:"accDescr",accTitle:"accTitle",blocks:"blocks",title:"title"};te(adt,"isPacket");P7={$type:"PacketBlock",bits:"bits",end:"end",label:"label",start:"start"};te(sdt,"isPacketBlock");h4e={$type:"PegAny",dot:"dot"},d4e={$type:"PegGroup",element:"element"},f4e={$type:"PegIdentifier",name:"name"},p4e={$type:"PegLiteral",value:"value"},g4e={$type:"PegOrderedChoice",alternatives:"alternatives"},vse={$type:"PegPrefix",operator:"operator",suffix:"suffix"},KB={$type:"PegPrimary"},_se={$type:"PegRule",definition:"definition",name:"name"},m4e={$type:"PegSequence",elements:"elements"},Ese={$type:"PegSuffix",operator:"operator",primary:"primary"},EI={$type:"Pie",accDescr:"accDescr",accTitle:"accTitle",sections:"sections",showData:"showData",title:"title"};te(odt,"isPie");EY={$type:"PieSection",label:"label",value:"value"};te(ldt,"isPieSection");_lt={$type:"Pipeline",components:"components",parent:"parent"},Xxe={$type:"PipelineComponent",evolution:"evolution",label:"label",name:"name"},bI={$type:"Radar",accDescr:"accDescr",accTitle:"accTitle",axes:"axes",curves:"curves",options:"options",title:"title"},B7={$type:"Railroad",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};te(cdt,"isRailroad");F7={$type:"RailroadAbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};te(udt,"isRailroadAbnf");b4e={$type:"RailroadChoiceExpr",alternatives:"alternatives"},$7={$type:"RailroadEbnf",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};te(hdt,"isRailroadEbnf");$C={$type:"RailroadExpression"},y4e={$type:"RailroadNonTerminalExpr",name:"name"},v4e={$type:"RailroadOneOrMoreExpr",element:"element"},_4e={$type:"RailroadOptionalExpr",element:"element"},U7={$type:"RailroadPeg",accDescr:"accDescr",accTitle:"accTitle",rules:"rules",title:"title"};te(ddt,"isRailroadPeg");wse={$type:"RailroadRule",definition:"definition",name:"name"},E4e={$type:"RailroadSequenceExpr",elements:"elements"},w4e={$type:"RailroadSpecialExpr",text:"text"},S4e={$type:"RailroadTerminalExpr",value:"value"},T4e={$type:"RailroadZeroOrMoreExpr",element:"element"},Elt={$type:"Section",classSelector:"classSelector",name:"name"},eY={$type:"Service",icon:"icon",iconText:"iconText",id:"id",in:"in",title:"title"},wlt={$type:"Size",height:"height",width:"width"},O7={$type:"Statement"},JB={$type:"Transition",from:"from",label:"label",to:"to"};te(fdt,"isTransition");G7={$type:"Treemap",accDescr:"accDescr",accTitle:"accTitle",title:"title",TreemapRows:"TreemapRows"};te(pdt,"isTreemap");Slt={$type:"TreemapRow",indent:"indent",item:"item"},N7={$type:"TreeNode",classAnnotation:"classAnnotation",descAnnotation:"descAnnotation",iconAnnotation:"iconAnnotation",indent:"indent",name:"name"},XB={$type:"TreeView",accDescr:"accDescr",accTitle:"accTitle",nodes:"nodes",title:"title"},cm={$type:"Wardley",accDescr:"accDescr",accelerators:"accelerators",accTitle:"accTitle",anchors:"anchors",annotation:"annotation",annotations:"annotations",components:"components",deaccelerators:"deaccelerators",evolution:"evolution",evolves:"evolves",links:"links",notes:"notes",pipelines:"pipelines",size:"size",title:"title"};te(gdt,"isWardley");zHr=class extends ZBr{constructor(){super(...arguments);this.types={AbnfAlternation:{name:YCe.$type,properties:{alternatives:{name:YCe.alternatives,defaultValue:[]}},superTypes:[]},AbnfConcatenation:{name:WCe.$type,properties:{elements:{name:WCe.elements,defaultValue:[]}},superTypes:[]},AbnfElement:{name:gse.$type,properties:{primary:{name:gse.primary},repeat:{name:gse.repeat,optional:!0}},superTypes:[]},AbnfGroup:{name:jCe.$type,properties:{element:{name:jCe.element}},superTypes:[R7.$type]},AbnfNumVal:{name:KCe.$type,properties:{value:{name:KCe.value}},superTypes:[R7.$type]},AbnfOptionalGroup:{name:XCe.$type,properties:{element:{name:XCe.element}},superTypes:[R7.$type]},AbnfPrimary:{name:R7.$type,properties:{},superTypes:[]},AbnfRule:{name:mse.$type,properties:{definition:{name:mse.definition},name:{name:mse.name}},superTypes:[]},AbnfRuleName:{name:QCe.$type,properties:{name:{name:QCe.name}},superTypes:[R7.$type]},AbnfStringLiteral:{name:ZCe.$type,properties:{value:{name:ZCe.value}},superTypes:[R7.$type]},Accelerator:{name:$xe.$type,properties:{name:{name:$xe.name},x:{name:$xe.x},y:{name:$xe.y}},superTypes:[]},Alignment:{name:dlt.$type,properties:{direction:{name:dlt.direction},members:{name:dlt.members,defaultValue:[]}},superTypes:[]},Anchor:{name:Uxe.$type,properties:{evolution:{name:Uxe.evolution},name:{name:Uxe.name},visibility:{name:Uxe.visibility}},superTypes:[]},Annotation:{name:Vae.$type,properties:{number:{name:Vae.number},text:{name:Vae.text},x:{name:Vae.x},y:{name:Vae.y}},superTypes:[]},Annotations:{name:flt.$type,properties:{x:{name:flt.x},y:{name:flt.y}},superTypes:[]},Architecture:{name:mT.$type,properties:{accDescr:{name:mT.accDescr,optional:!0},accTitle:{name:mT.accTitle,optional:!0},alignments:{name:mT.alignments,defaultValue:[],optional:!0},edges:{name:mT.edges,defaultValue:[],optional:!0},groups:{name:mT.groups,defaultValue:[],optional:!0},junctions:{name:mT.junctions,defaultValue:[],optional:!0},services:{name:mT.services,defaultValue:[],optional:!0},title:{name:mT.title,optional:!0}},superTypes:[]},Axis:{name:Gxe.$type,properties:{label:{name:Gxe.label,optional:!0},name:{name:Gxe.name}},superTypes:[]},Branch:{name:vY.$type,properties:{name:{name:vY.name},order:{name:vY.order}},superTypes:[O7.$type]},Checkout:{name:CBr.$type,properties:{branch:{name:CBr.branch}},superTypes:[O7.$type]},CherryPicking:{name:zxe.$type,properties:{id:{name:zxe.id},parent:{name:zxe.parent},tags:{name:zxe.tags,defaultValue:[]}},superTypes:[O7.$type]},ClassDefStatement:{name:plt.$type,properties:{className:{name:plt.className},styleText:{name:plt.styleText}},superTypes:[]},Commit:{name:L7.$type,properties:{id:{name:L7.id},message:{name:L7.message},tags:{name:L7.tags,defaultValue:[]},type:{name:L7.type}},superTypes:[O7.$type]},Common:{name:Vxe.$type,properties:{accDescr:{name:Vxe.accDescr,optional:!0},accTitle:{name:Vxe.accTitle,optional:!0},title:{name:Vxe.title,optional:!0}},superTypes:[]},Component:{name:FB.$type,properties:{decorator:{name:FB.decorator,optional:!0},evolution:{name:FB.evolution},inertia:{name:FB.inertia,defaultValue:!1},label:{name:FB.label,optional:!0},name:{name:FB.name},visibility:{name:FB.visibility}},superTypes:[]},Curve:{name:Hxe.$type,properties:{entries:{name:Hxe.entries,defaultValue:[]},label:{name:Hxe.label,optional:!0},name:{name:Hxe.name}},superTypes:[]},Cynefin:{name:vI.$type,properties:{accDescr:{name:vI.accDescr,optional:!0},accTitle:{name:vI.accTitle,optional:!0},domains:{name:vI.domains,defaultValue:[],optional:!0},title:{name:vI.title,optional:!0},transitions:{name:vI.transitions,defaultValue:[],optional:!0}},superTypes:[]},Deaccelerator:{name:qxe.$type,properties:{name:{name:qxe.name},x:{name:qxe.x},y:{name:qxe.y}},superTypes:[]},Decorator:{name:kBr.$type,properties:{strategy:{name:kBr.strategy}},superTypes:[]},Direction:{name:Jq.$type,properties:{accDescr:{name:Jq.accDescr},accTitle:{name:Jq.accTitle},dir:{name:Jq.dir},statements:{name:Jq.statements,defaultValue:[]},title:{name:Jq.title}},superTypes:[_I.$type]},DomainBlock:{name:_Y.$type,properties:{domain:{name:_Y.domain},items:{name:_Y.items,defaultValue:[],optional:!0}},superTypes:[]},DomainItem:{name:Bse.$type,properties:{label:{name:Bse.label}},superTypes:[]},EbnfChoice:{name:JCe.$type,properties:{alternatives:{name:JCe.alternatives,defaultValue:[]}},superTypes:[]},EbnfExceptionPostfix:{name:e4e.$type,properties:{except:{name:e4e.except}},superTypes:[jB.$type]},EbnfGroup:{name:t4e.$type,properties:{element:{name:t4e.element}},superTypes:[gI.$type]},EbnfNonTerminal:{name:r4e.$type,properties:{name:{name:r4e.name}},superTypes:[gI.$type]},EbnfOneOrMorePostfix:{name:n4e.$type,properties:{operator:{name:n4e.operator}},superTypes:[jB.$type]},EbnfOptional:{name:i4e.$type,properties:{element:{name:i4e.element}},superTypes:[gI.$type]},EbnfOptionalPostfix:{name:a4e.$type,properties:{operator:{name:a4e.operator}},superTypes:[jB.$type]},EbnfPostfix:{name:jB.$type,properties:{},superTypes:[]},EbnfPrimary:{name:gI.$type,properties:{},superTypes:[]},EbnfRepetition:{name:s4e.$type,properties:{element:{name:s4e.element}},superTypes:[gI.$type]},EbnfRule:{name:bse.$type,properties:{definition:{name:bse.definition},name:{name:bse.name}},superTypes:[]},EbnfSequence:{name:o4e.$type,properties:{elements:{name:o4e.elements,defaultValue:[]}},superTypes:[]},EbnfSpecial:{name:l4e.$type,properties:{text:{name:l4e.text}},superTypes:[gI.$type]},EbnfTerm:{name:yse.$type,properties:{base:{name:yse.base},postfixes:{name:yse.postfixes,defaultValue:[]}},superTypes:[]},EbnfTerminal:{name:c4e.$type,properties:{value:{name:c4e.value}},superTypes:[gI.$type]},EbnfZeroOrMorePostfix:{name:u4e.$type,properties:{operator:{name:u4e.operator}},superTypes:[jB.$type]},Edge:{name:H3.$type,properties:{lhsDir:{name:H3.lhsDir},lhsGroup:{name:H3.lhsGroup,defaultValue:!1,optional:!0},lhsId:{name:H3.lhsId},lhsInto:{name:H3.lhsInto,defaultValue:!1,optional:!0},rhsDir:{name:H3.rhsDir},rhsGroup:{name:H3.rhsGroup,defaultValue:!1,optional:!0},rhsId:{name:H3.rhsId},rhsInto:{name:H3.rhsInto,defaultValue:!1,optional:!0},title:{name:H3.title,optional:!0}},superTypes:[]},EmDataEntity:{name:I7.$type,properties:{dataBlockValue:{name:I7.dataBlockValue},dataType:{name:I7.dataType,optional:!0},name:{name:I7.name}},superTypes:[]},EmFrame:{name:mI.$type,properties:{},superTypes:[]},EmGwt:{name:Hae.$type,properties:{givenStatements:{name:Hae.givenStatements,defaultValue:[]},sourceFrame:{name:Hae.sourceFrame,referenceType:mI.$type},thenStatements:{name:Hae.thenStatements,defaultValue:[]},whenStatements:{name:Hae.whenStatements,defaultValue:[],optional:!0}},superTypes:[]},EmGwtStatement:{name:ABr.$type,properties:{entityIdentifier:{name:ABr.entityIdentifier,referenceType:glt.$type}},superTypes:[]},EmModelEntity:{name:glt.$type,properties:{name:{name:glt.name}},superTypes:[]},EmNoteEntity:{name:Yxe.$type,properties:{dataBlockValue:{name:Yxe.dataBlockValue},dataType:{name:Yxe.dataType,optional:!0},sourceFrame:{name:Yxe.sourceFrame,referenceType:mI.$type}},superTypes:[]},EmResetFrame:{name:fI.$type,properties:{dataInlineValue:{name:fI.dataInlineValue,optional:!0},dataReference:{name:fI.dataReference,referenceType:I7.$type,optional:!0},dataType:{name:fI.dataType,optional:!0},entityIdentifier:{name:fI.entityIdentifier},modelEntityType:{name:fI.modelEntityType},name:{name:fI.name},sourceFrames:{name:fI.sourceFrames,defaultValue:[],referenceType:mI.$type,optional:!0}},superTypes:[mI.$type]},EmTimeFrame:{name:x7.$type,properties:{dataInlineValue:{name:x7.dataInlineValue,optional:!0},dataReference:{name:x7.dataReference,referenceType:I7.$type,optional:!0},dataType:{name:x7.dataType,optional:!0},entityIdentifier:{name:x7.entityIdentifier},modelEntityType:{name:x7.modelEntityType},name:{name:x7.name},sourceFrames:{name:x7.sourceFrames,defaultValue:[],referenceType:mI.$type,optional:!0}},superTypes:[mI.$type]},Entry:{name:mlt.$type,properties:{axis:{name:mlt.axis,referenceType:Gxe.$type,optional:!0},value:{name:mlt.value}},superTypes:[]},EventModel:{name:FC.$type,properties:{accDescr:{name:FC.accDescr,optional:!0},accTitle:{name:FC.accTitle,optional:!0},dataEntities:{name:FC.dataEntities,defaultValue:[],optional:!0},frames:{name:FC.frames,defaultValue:[],optional:!0},gwtEntities:{name:FC.gwtEntities,defaultValue:[],optional:!0},modelEntities:{name:FC.modelEntities,defaultValue:[],optional:!0},noteEntities:{name:FC.noteEntities,defaultValue:[],optional:!0},title:{name:FC.title,optional:!0}},superTypes:[]},Evolution:{name:RBr.$type,properties:{stages:{name:RBr.stages,defaultValue:[]}},superTypes:[]},EvolutionStage:{name:Wxe.$type,properties:{boundary:{name:Wxe.boundary,optional:!0},name:{name:Wxe.name},secondName:{name:Wxe.secondName,optional:!0}},superTypes:[]},Evolve:{name:blt.$type,properties:{component:{name:blt.component},target:{name:blt.target}},superTypes:[]},GitGraph:{name:_I.$type,properties:{accDescr:{name:_I.accDescr},accTitle:{name:_I.accTitle},statements:{name:_I.statements,defaultValue:[]},title:{name:_I.title}},superTypes:[]},Group:{name:qae.$type,properties:{icon:{name:qae.icon,optional:!0},id:{name:qae.id},in:{name:qae.in},title:{name:qae.title,optional:!0}},superTypes:[]},Info:{name:ZB.$type,properties:{accDescr:{name:ZB.accDescr,optional:!0},accTitle:{name:ZB.accTitle,optional:!0},title:{name:ZB.title,optional:!0}},superTypes:[]},Item:{name:Yae.$type,properties:{classSelector:{name:Yae.classSelector,optional:!0},name:{name:Yae.name}},superTypes:[]},Junction:{name:ylt.$type,properties:{id:{name:ylt.id},in:{name:ylt.in}},superTypes:[]},Label:{name:Wae.$type,properties:{negX:{name:Wae.negX,defaultValue:!1,optional:!0},negY:{name:Wae.negY,defaultValue:!1,optional:!0},offsetX:{name:Wae.offsetX},offsetY:{name:Wae.offsetY}},superTypes:[]},Leaf:{name:jxe.$type,properties:{classSelector:{name:jxe.classSelector,optional:!0},name:{name:jxe.name},value:{name:jxe.value}},superTypes:[Yae.$type]},Link:{name:$B.$type,properties:{arrow:{name:$B.arrow,optional:!0},from:{name:$B.from},fromPort:{name:$B.fromPort,optional:!0},linkLabel:{name:$B.linkLabel,optional:!0},to:{name:$B.to},toPort:{name:$B.toPort,optional:!0}},superTypes:[]},Merge:{name:M7.$type,properties:{branch:{name:M7.branch},id:{name:M7.id},tags:{name:M7.tags,defaultValue:[]},type:{name:M7.type}},superTypes:[O7.$type]},Note:{name:Kxe.$type,properties:{evolution:{name:Kxe.evolution},text:{name:Kxe.text},visibility:{name:Kxe.visibility}},superTypes:[]},Option:{name:vlt.$type,properties:{name:{name:vlt.name},value:{name:vlt.value,defaultValue:!1}},superTypes:[]},Packet:{name:D7.$type,properties:{accDescr:{name:D7.accDescr,optional:!0},accTitle:{name:D7.accTitle,optional:!0},blocks:{name:D7.blocks,defaultValue:[],optional:!0},title:{name:D7.title,optional:!0}},superTypes:[]},PacketBlock:{name:P7.$type,properties:{bits:{name:P7.bits},end:{name:P7.end,optional:!0},label:{name:P7.label},start:{name:P7.start}},superTypes:[]},PegAny:{name:h4e.$type,properties:{dot:{name:h4e.dot}},superTypes:[KB.$type]},PegGroup:{name:d4e.$type,properties:{element:{name:d4e.element}},superTypes:[KB.$type]},PegIdentifier:{name:f4e.$type,properties:{name:{name:f4e.name}},superTypes:[KB.$type]},PegLiteral:{name:p4e.$type,properties:{value:{name:p4e.value}},superTypes:[KB.$type]},PegOrderedChoice:{name:g4e.$type,properties:{alternatives:{name:g4e.alternatives,defaultValue:[]}},superTypes:[]},PegPrefix:{name:vse.$type,properties:{operator:{name:vse.operator,optional:!0},suffix:{name:vse.suffix}},superTypes:[]},PegPrimary:{name:KB.$type,properties:{},superTypes:[]},PegRule:{name:_se.$type,properties:{definition:{name:_se.definition},name:{name:_se.name}},superTypes:[]},PegSequence:{name:m4e.$type,properties:{elements:{name:m4e.elements,defaultValue:[]}},superTypes:[]},PegSuffix:{name:Ese.$type,properties:{operator:{name:Ese.operator,optional:!0},primary:{name:Ese.primary}},superTypes:[]},Pie:{name:EI.$type,properties:{accDescr:{name:EI.accDescr,optional:!0},accTitle:{name:EI.accTitle,optional:!0},sections:{name:EI.sections,defaultValue:[],optional:!0},showData:{name:EI.showData,defaultValue:!1,optional:!0},title:{name:EI.title,optional:!0}},superTypes:[]},PieSection:{name:EY.$type,properties:{label:{name:EY.label},value:{name:EY.value}},superTypes:[]},Pipeline:{name:_lt.$type,properties:{components:{name:_lt.components,defaultValue:[]},parent:{name:_lt.parent}},superTypes:[]},PipelineComponent:{name:Xxe.$type,properties:{evolution:{name:Xxe.evolution},label:{name:Xxe.label,optional:!0},name:{name:Xxe.name}},superTypes:[]},Radar:{name:bI.$type,properties:{accDescr:{name:bI.accDescr,optional:!0},accTitle:{name:bI.accTitle,optional:!0},axes:{name:bI.axes,defaultValue:[],optional:!0},curves:{name:bI.curves,defaultValue:[],optional:!0},options:{name:bI.options,defaultValue:[],optional:!0},title:{name:bI.title,optional:!0}},superTypes:[]},Railroad:{name:B7.$type,properties:{accDescr:{name:B7.accDescr,optional:!0},accTitle:{name:B7.accTitle,optional:!0},rules:{name:B7.rules,defaultValue:[]},title:{name:B7.title,optional:!0}},superTypes:[]},RailroadAbnf:{name:F7.$type,properties:{accDescr:{name:F7.accDescr,optional:!0},accTitle:{name:F7.accTitle,optional:!0},rules:{name:F7.rules,defaultValue:[]},title:{name:F7.title,optional:!0}},superTypes:[]},RailroadChoiceExpr:{name:b4e.$type,properties:{alternatives:{name:b4e.alternatives,defaultValue:[]}},superTypes:[$C.$type]},RailroadEbnf:{name:$7.$type,properties:{accDescr:{name:$7.accDescr,optional:!0},accTitle:{name:$7.accTitle,optional:!0},rules:{name:$7.rules,defaultValue:[]},title:{name:$7.title,optional:!0}},superTypes:[]},RailroadExpression:{name:$C.$type,properties:{},superTypes:[]},RailroadNonTerminalExpr:{name:y4e.$type,properties:{name:{name:y4e.name}},superTypes:[$C.$type]},RailroadOneOrMoreExpr:{name:v4e.$type,properties:{element:{name:v4e.element}},superTypes:[$C.$type]},RailroadOptionalExpr:{name:_4e.$type,properties:{element:{name:_4e.element}},superTypes:[$C.$type]},RailroadPeg:{name:U7.$type,properties:{accDescr:{name:U7.accDescr,optional:!0},accTitle:{name:U7.accTitle,optional:!0},rules:{name:U7.rules,defaultValue:[]},title:{name:U7.title,optional:!0}},superTypes:[]},RailroadRule:{name:wse.$type,properties:{definition:{name:wse.definition},name:{name:wse.name}},superTypes:[]},RailroadSequenceExpr:{name:E4e.$type,properties:{elements:{name:E4e.elements,defaultValue:[]}},superTypes:[$C.$type]},RailroadSpecialExpr:{name:w4e.$type,properties:{text:{name:w4e.text}},superTypes:[$C.$type]},RailroadTerminalExpr:{name:S4e.$type,properties:{value:{name:S4e.value}},superTypes:[$C.$type]},RailroadZeroOrMoreExpr:{name:T4e.$type,properties:{element:{name:T4e.element}},superTypes:[$C.$type]},Section:{name:Elt.$type,properties:{classSelector:{name:Elt.classSelector,optional:!0},name:{name:Elt.name}},superTypes:[Yae.$type]},Service:{name:eY.$type,properties:{icon:{name:eY.icon,optional:!0},iconText:{name:eY.iconText,optional:!0},id:{name:eY.id},in:{name:eY.in},title:{name:eY.title,optional:!0}},superTypes:[]},Size:{name:wlt.$type,properties:{height:{name:wlt.height},width:{name:wlt.width}},superTypes:[]},Statement:{name:O7.$type,properties:{},superTypes:[]},Transition:{name:JB.$type,properties:{from:{name:JB.from},label:{name:JB.label},to:{name:JB.to}},superTypes:[]},TreeNode:{name:N7.$type,properties:{classAnnotation:{name:N7.classAnnotation,optional:!0},descAnnotation:{name:N7.descAnnotation,optional:!0},iconAnnotation:{name:N7.iconAnnotation,optional:!0},indent:{name:N7.indent,optional:!0},name:{name:N7.name}},superTypes:[]},TreeView:{name:XB.$type,properties:{accDescr:{name:XB.accDescr,optional:!0},accTitle:{name:XB.accTitle,optional:!0},nodes:{name:XB.nodes,defaultValue:[]},title:{name:XB.title,optional:!0}},superTypes:[]},Treemap:{name:G7.$type,properties:{accDescr:{name:G7.accDescr,optional:!0},accTitle:{name:G7.accTitle,optional:!0},title:{name:G7.title,optional:!0},TreemapRows:{name:G7.TreemapRows,defaultValue:[]}},superTypes:[]},TreemapRow:{name:Slt.$type,properties:{indent:{name:Slt.indent,optional:!0},item:{name:Slt.item}},superTypes:[]},Wardley:{name:cm.$type,properties:{accDescr:{name:cm.accDescr,optional:!0},accelerators:{name:cm.accelerators,defaultValue:[],optional:!0},accTitle:{name:cm.accTitle,optional:!0},anchors:{name:cm.anchors,defaultValue:[],optional:!0},annotation:{name:cm.annotation,defaultValue:[],optional:!0},annotations:{name:cm.annotations,defaultValue:[],optional:!0},components:{name:cm.components,defaultValue:[],optional:!0},deaccelerators:{name:cm.deaccelerators,defaultValue:[],optional:!0},evolution:{name:cm.evolution,optional:!0},evolves:{name:cm.evolves,defaultValue:[],optional:!0},links:{name:cm.links,defaultValue:[],optional:!0},notes:{name:cm.notes,defaultValue:[],optional:!0},pipelines:{name:cm.pipelines,defaultValue:[],optional:!0},size:{name:cm.size,optional:!0},title:{name:cm.title,optional:!0}},superTypes:[]}}}static{te(this,"MermaidAstReflection")}},D0=new zHr,fyi=te(()=>IBr??(IBr=uy('{"$type":"Grammar","isDeclared":true,"name":"ArchitectureGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Architecture","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"alignments","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"LeftPort","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"RightPort","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Arrow","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Alignment","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"align"},{"$type":"Assignment","feature":"direction","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"row"},{"$type":"Keyword","value":"column"}]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Assignment","feature":"members","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@19"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@20"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[(?:\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'|[^\\\\[\\\\]\\\\r\\\\n]+)\\\\]/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}')),"ArchitectureGrammarGrammar"),pyi=te(()=>OBr??(OBr=uy('{"$type":"Grammar","isDeclared":true,"name":"CynefinGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Cynefin","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"cynefin-beta"},{"$type":"Keyword","value":"cynefin-beta:"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"domains","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"transitions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"domain","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Assignment","feature":"items","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"DomainItem","definition":{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Transition","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":"-->"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"DOMAIN_NAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complex"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"complicated"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"clear"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"chaotic"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"confusion"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"CynefinGrammarGrammar"),gyi=te(()=>NBr??(NBr=uy('{"$type":"Grammar","isDeclared":true,"name":"EventModeling","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","entry":true,"name":"EventModel","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"eventmodeling"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"frames","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"dataEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"noteEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"gwtEntities","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntityType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rmo"},{"$type":"Keyword","value":"readmodel"},{"$type":"Keyword","value":"ui"},{"$type":"Keyword","value":"cmd"},{"$type":"Keyword","value":"command"},{"$type":"Keyword","value":"evt"},{"$type":"Keyword","value":"event"},{"$type":"Keyword","value":"pcr"},{"$type":"Keyword","value":"processor"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataType","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"json"},{"$type":"Keyword","value":"jsobj"},{"$type":"Keyword","value":"figma"},{"$type":"Keyword","value":"salt"},{"$type":"Keyword","value":"uri"},{"$type":"Keyword","value":"md"},{"$type":"Keyword","value":"html"},{"$type":"Keyword","value":"text"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataInline","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataInlineValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"EmDataBlock","definition":{"$type":"Group","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"`"},{"$type":"Assignment","feature":"dataType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":"`"}],"cardinality":"?"},{"$type":"Assignment","feature":"dataBlockValue","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"QualifiedName","dataType":"string","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"."},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmTimeFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"tf"},{"$type":"Keyword","value":"timeframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmResetFrame","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"rf"},{"$type":"Keyword","value":"resetframe"}]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"modelEntityType","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"->>"},{"$type":"Assignment","feature":"sourceFrames","operator":"+=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"[["},{"$type":"Assignment","feature":"dataReference","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@10"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"]]"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmFrame","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmModelEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"entity"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmDataEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"data"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmNoteEntity","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"note"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwt","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"gwt"},{"$type":"Assignment","feature":"sourceFrame","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@8"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":"given"},{"$type":"Assignment","feature":"givenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"},{"$type":"Group","elements":[{"$type":"Keyword","value":"when"},{"$type":"Assignment","feature":"whenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}],"cardinality":"?"},{"$type":"Keyword","value":"then"},{"$type":"Assignment","feature":"thenStatements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"+"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EmGwtStatement","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},{"$type":"Assignment","feature":"entityIdentifier","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@9"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_EID","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EM_FI","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"EM_ID","definition":{"$type":"RegexToken","regex":"/[_a-zA-Z][\\\\w_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_FID","definition":{"$type":"RegexToken","regex":"/\\\\d{1,3}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_INLINE","definition":{"$type":"RegexToken","regex":"/\\\\{(.*)\\\\}|\\"(.*)\\"|\'(.*)\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_DATA_BLOCK","definition":{"$type":"RegexToken","regex":"/\\\\{[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?\\\\}(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EM_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EM_WS","definition":{"$type":"RegexToken","regex":"/\\\\s+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EM_SL_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\/[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"imports":[],"types":[]}')),"EventModelingGrammar"),myi=te(()=>LBr??(LBr=uy('{"$type":"Grammar","isDeclared":true,"name":"GitGraphGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"GitGraph","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@14"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"REFERENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[],"types":[]}')),"GitGraphGrammarGrammar"),byi=te(()=>MBr??(MBr=uy('{"$type":"Grammar","isDeclared":true,"name":"InfoGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Info","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"?"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@7"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"InfoGrammarGrammar"),yyi=te(()=>DBr??(DBr=uy('{"$type":"Grammar","isDeclared":true,"name":"PacketGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Packet","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"packet"},{"$type":"Keyword","value":"packet-beta"}]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}],"cardinality":"?"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"+"},{"$type":"Assignment","feature":"bits","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]}]},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@8"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@9"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"PacketGrammarGrammar"),vyi=te(()=>PBr??(PBr=uy('{"$type":"Grammar","isDeclared":true,"name":"PieGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Pie","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"FLOAT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/-?(0|[1-9][0-9]*)(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER_PIE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@2"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@3"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@11"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@12"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"PieGrammarGrammar"),_yi=te(()=>BBr??(BBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RadarGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Radar","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":"radar-beta:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"radar-beta"},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]},{"$type":"Group","elements":[{"$type":"Keyword","value":"axis"},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"axes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"curve"},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"curves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"options","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Label","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Axis","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Curve","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Entries","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"},{"$type":"Assignment","feature":"entries","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"*"}]}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"DetailedEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"axis","operator":"=","terminal":{"$type":"CrossReference","type":{"$ref":"#/rules@2"},"terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},"deprecatedSyntax":false,"isMulti":false}},{"$type":"Keyword","value":":","cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"NumberEntry","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Option","definition":{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"showLegend"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"ticks"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"max"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"min"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Keyword","value":"graticule"}},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"GRATICULE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"circle"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"polygon"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@15"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@16"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[{"$type":"Interface","name":"Entry","attributes":[{"$type":"TypeAttribute","name":"axis","isOptional":true,"type":{"$type":"ReferenceType","referenceType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@2"}},"isMulti":false}},{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}],"superTypes":[]}],"types":[]}')),"RadarGrammarGrammar"),Eyi=te(()=>FBr??(FBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadAbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_RULENAME","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Za-z][A-Za-z0-9-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_NUMVAL","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/%[xXdDbB][0-9A-Fa-f]+(?:-[0-9A-Fa-f]+|\\\\.[0-9A-Fa-f]+)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]*\\\\*[0-9]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ABNF_EXACT_REPEAT","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ABNF_COMMENT","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadAbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-abnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfAlternation","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfConcatenation","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfElement","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"repeat","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfStringLiteral","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfNumVal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfRuleName","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"AbnfOptionalGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadAbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfAlternation","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfConcatenation","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfElement","attributes":[{"$type":"TypeAttribute","name":"repeat","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"AbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"AbnfStringLiteral","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfNumVal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfRuleName","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"AbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"AbnfOptionalGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadAbnfGrammarGrammar"),wyi=te(()=>$Br??($Br=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadEbnfGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"EBNF_SPECIAL_SEQUENCE","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\?(?=[^?;]*[^?\\\\s;][^?;]*\\\\?)[^?;]*\\\\?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"EBNF_ISO_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\(\\\\*[\\\\s\\\\S]*?\\\\*\\\\)/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadEbnf","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-ebnf-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"="},{"$type":"Keyword","value":"::="}]},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"|"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":",","cardinality":"?"},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerm","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"base","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"postfixes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]},"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPrimary","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfTerminal","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfNonTerminal","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfSpecial","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfGroup","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptional","returnType":{"$ref":"#/interfaces@11"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfRepetition","returnType":{"$ref":"#/interfaces@12"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"{"},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Keyword","value":"}"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfPostfix","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOptionalPostfix","returnType":{"$ref":"#/interfaces@13"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfZeroOrMorePostfix","returnType":{"$ref":"#/interfaces@14"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfOneOrMorePostfix","returnType":{"$ref":"#/interfaces@15"},"definition":{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EbnfExceptionPostfix","returnType":{"$ref":"#/interfaces@16"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"except","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadEbnf","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfTerm","attributes":[{"$type":"TypeAttribute","name":"base","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false},{"$type":"TypeAttribute","name":"postfixes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"EbnfPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfPostfix","attributes":[],"superTypes":[]},{"$type":"Interface","name":"EbnfTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfNonTerminal","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfSpecial","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfGroup","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptional","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfRepetition","superTypes":[{"$ref":"#/interfaces@5"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"EbnfOptionalPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfZeroOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfOneOrMorePostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"operator","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"EbnfExceptionPostfix","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"except","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadEbnfGrammarGrammar"),Syi=te(()=>UBr??(UBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"RR_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"RR_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"RR_BLOCK_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\/\\\\*[\\\\s\\\\S]*?\\\\*\\\\//","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"Railroad","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"="},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadExpression","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSequenceExpr","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"sequence"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadChoiceExpr","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"choice"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"*"},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOptionalExpr","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"optional"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadOneOrMoreExpr","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"oneOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadZeroOrMoreExpr","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"zeroOrMore"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadTerminalExpr","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"terminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadNonTerminalExpr","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"nonterminal"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"RailroadSpecialExpr","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"special"},{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"Railroad","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"RailroadExpression","attributes":[],"superTypes":[]},{"$type":"Interface","name":"RailroadSequenceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadChoiceExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOptionalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadOneOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadZeroOrMoreExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"RailroadTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadNonTerminalExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"RailroadSpecialExpr","superTypes":[{"$ref":"#/interfaces@2"}],"attributes":[{"$type":"TypeAttribute","name":"text","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadGrammarGrammar"),Tyi=te(()=>GBr??(GBr=uy('{"$type":"Grammar","isDeclared":true,"name":"RailroadPegGrammar","rules":[{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[A-Z_a-z][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PEG_STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t \\\\r\\\\n]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"PEG_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/#[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false},{"$type":"ParserRule","entry":true,"name":"RailroadPeg","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"railroad-peg-beta"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"*"},{"$type":"Assignment","feature":"rules","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegRule","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Keyword","value":"<-"},{"$type":"Assignment","feature":"definition","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":";"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegOrderedChoice","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"alternatives","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSequence","returnType":{"$ref":"#/interfaces@3"},"definition":{"$type":"Assignment","feature":"elements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"+"},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrefix","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"&"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"!"}}],"cardinality":"?"},{"$type":"Assignment","feature":"suffix","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegSuffix","returnType":{"$ref":"#/interfaces@5"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"primary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"?"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"*"}},{"$type":"Assignment","feature":"operator","operator":"=","terminal":{"$type":"Keyword","value":"+"}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegPrimary","returnType":{"$ref":"#/interfaces@6"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegLiteral","returnType":{"$ref":"#/interfaces@7"},"definition":{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegIdentifier","returnType":{"$ref":"#/interfaces@8"},"definition":{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegGroup","returnType":{"$ref":"#/interfaces@9"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"element","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PegAny","returnType":{"$ref":"#/interfaces@10"},"definition":{"$type":"Assignment","feature":"dot","operator":"=","terminal":{"$type":"Keyword","value":"."}},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"RailroadPeg","attributes":[{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"rules","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@1"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegRule","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"definition","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegOrderedChoice","attributes":[{"$type":"TypeAttribute","name":"alternatives","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@3"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSequence","attributes":[{"$type":"TypeAttribute","name":"elements","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@4"}}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegPrefix","attributes":[{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"suffix","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@5"}},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"PegSuffix","attributes":[{"$type":"TypeAttribute","name":"primary","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@6"}},"isOptional":false},{"$type":"TypeAttribute","name":"operator","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"PegPrimary","attributes":[],"superTypes":[]},{"$type":"Interface","name":"PegLiteral","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegIdentifier","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]},{"$type":"Interface","name":"PegGroup","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"element","type":{"$type":"SimpleType","typeRef":{"$ref":"#/interfaces@2"}},"isOptional":false}]},{"$type":"Interface","name":"PegAny","superTypes":[{"$ref":"#/interfaces@6"}],"attributes":[{"$type":"TypeAttribute","name":"dot","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}]}],"imports":[],"types":[]}')),"RailroadPegGrammarGrammar"),xyi=te(()=>zBr??(zBr=uy('{"$type":"Grammar","isDeclared":true,"name":"TreemapGrammar","rules":[{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"Treemap","returnType":{"$ref":"#/interfaces@4"},"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"TreemapRows","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"TREEMAP_KEYWORD","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap-beta"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"treemap"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"CLASS_DEF","definition":{"$type":"RegexToken","regex":"/classDef\\\\s+([a-zA-Z_][a-zA-Z0-9_]+)(?:\\\\s+([^;\\\\r\\\\n]*))?(?:;)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STYLE_SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":::"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"SEPARATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":":"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"COMMA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":","},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"TreemapRow","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"item","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"ClassDef","dataType":"string","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Item","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Section","returnType":{"$ref":"#/interfaces@1"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Leaf","returnType":{"$ref":"#/interfaces@2"},"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},{"$type":"Assignment","feature":"classSelector","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"ID2","definition":{"$type":"RegexToken","regex":"/[a-zA-Z_][a-zA-Z0-9_]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER2","definition":{"$type":"RegexToken","regex":"/[0-9_\\\\.\\\\,]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"MyNumber","dataType":"number","definition":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"STRING2","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","parenthesized":false},"fragment":false,"hidden":false}],"interfaces":[{"$type":"Interface","name":"Item","attributes":[{"$type":"TypeAttribute","name":"name","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"classSelector","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]},{"$type":"Interface","name":"Section","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[]},{"$type":"Interface","name":"Leaf","superTypes":[{"$ref":"#/interfaces@0"}],"attributes":[{"$type":"TypeAttribute","name":"value","type":{"$type":"SimpleType","primitiveType":"number"},"isOptional":false}]},{"$type":"Interface","name":"ClassDefStatement","attributes":[{"$type":"TypeAttribute","name":"className","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false},{"$type":"TypeAttribute","name":"styleText","type":{"$type":"SimpleType","primitiveType":"string"},"isOptional":false}],"superTypes":[]},{"$type":"Interface","name":"Treemap","attributes":[{"$type":"TypeAttribute","name":"TreemapRows","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@15"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * Treemap grammar for Langium\\n * Converted from mindmap grammar\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treemap keyword, allowing for empty lines and comments before the\\n * treemap declaration.\\n */"}')),"TreemapGrammarGrammar"),Cyi=te(()=>VBr??(VBr=uy('{"$type":"Grammar","isDeclared":true,"name":"TreeViewGrammar","rules":[{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","entry":true,"name":"TreeView","returnType":{"$ref":"#/interfaces@0"},"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"treeView-beta"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[],"cardinality":"?"},{"$type":"Assignment","feature":"nodes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"CLASS_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+:::[ \\\\t]*[A-Za-z_][\\\\w-]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ICON_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+icon\\\\([\\\\w-]*(?::[\\\\w-]+)?\\\\)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"DESC_ANNOTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+##[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INDENTATION","definition":{"$type":"RegexToken","regex":"/[ \\\\t]{1,}/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"QUOTED_NAME","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|\'[^\']*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"ML_COMMENT","definition":{"$type":"RegexToken","regex":"/\\\\%\\\\%[^\\\\n]*/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"NL","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","name":"BARE_NAME","definition":{"$type":"RegexToken","regex":"/(?!:::|icon\\\\(|##)[^ \\\\t\\\\n\\\\r\\"\'](?:(?![ \\\\t]+:::[ \\\\t]*[A-Za-z_]|[ \\\\t]+icon\\\\(|[ \\\\t]+##)[^\\\\n\\\\r])*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TreeNode","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"indent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}}]},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"classAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"iconAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"descAnnotation","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}}],"cardinality":"*"}]},"entry":false,"fragment":false,"parameters":[]}],"interfaces":[{"$type":"Interface","name":"TreeView","attributes":[{"$type":"TypeAttribute","name":"nodes","type":{"$type":"ArrayType","elementType":{"$type":"SimpleType","typeRef":{"$ref":"#/rules@14"}}},"isOptional":false},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"imports":[],"types":[],"$comment":"/**\\n * TreeView grammar for Langium\\n *\\n * Supports both quoted labels (\\"my file\\") and bare labels (index.js).\\n * Annotations (:::class, icon(), ## description) are parsed directly into\\n * AST fields by the grammar. Value conversion for stripping quotes, extracting\\n * class names, icon names, and description text happens in valueConverter.ts.\\n *\\n * The ML_COMMENT and NL hidden terminals handle whitespace, comments, and newlines\\n * before the treeView keyword, allowing for empty lines and comments before the\\n * treeView declaration.\\n */"}')),"TreeViewGrammarGrammar"),kyi=te(()=>HBr??(HBr=uy('{"$type":"Grammar","isDeclared":true,"name":"WardleyGrammar","imports":[],"rules":[{"$type":"ParserRule","entry":true,"name":"Wardley","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@25"},"arguments":[]},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@42"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"*"}]},"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"size","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"anchors","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"links","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Assignment","feature":"evolves","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"pipelines","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"notes","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Assignment","feature":"annotations","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]}},{"$type":"Assignment","feature":"annotation","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]}},{"$type":"Assignment","feature":"accelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}},{"$type":"Assignment","feature":"deaccelerators","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}]},"entry":false,"parameters":[]},{"$type":"ParserRule","name":"Size","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@26"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"width","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"height","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolution","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@27"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]},{"$type":"Assignment","feature":"stages","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}}],"cardinality":"+"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"EvolutionStage","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"@"},{"$type":"Assignment","feature":"boundary","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}}],"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"/"},{"$type":"Assignment","feature":"secondName","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}}],"cardinality":"?"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Anchor","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@28"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Component","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"decorator","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"inertia","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@31"},"arguments":[]}},{"$type":"Keyword","value":")"}]}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Label","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@30"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"negX","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetX","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"negY","operator":"?=","terminal":{"$type":"Keyword","value":"-"},"cardinality":"?"},{"$type":"Assignment","feature":"offsetY","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":"]"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Decorator","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"("},{"$type":"Assignment","feature":"strategy","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@24"},"arguments":[]}},{"$type":"Keyword","value":")"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Link","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"from","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"fromPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"arrow","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@22"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]},"cardinality":"?"},{"$type":"Assignment","feature":"to","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"toPort","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"linkLabel","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@23"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Evolve","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@32"},"arguments":[]},{"$type":"Assignment","feature":"component","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Assignment","feature":"target","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Pipeline","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@33"},"arguments":[]},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"{"},{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"components","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"+"},{"$type":"Keyword","value":"}"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"PipelineComponent","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@29"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Note","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@34"},"arguments":[]},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"visibility","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"evolution","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotations","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@35"},"arguments":[]},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Annotation","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@36"},"arguments":[]},{"$type":"Assignment","feature":"number","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"Assignment","feature":"text","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"CoordinateValue","dataType":"number","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@48"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Accelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@37"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","name":"Deaccelerator","definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@38"},"arguments":[]},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@50"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@51"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@39"},"arguments":[]}]}},{"$type":"Keyword","value":"["},{"$type":"Assignment","feature":"x","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":","},{"$type":"Assignment","feature":"y","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Keyword","value":"]"},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"TerminalRule","name":"WARDLEY_NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"->"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_PORT","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<>"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+>"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"+<"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_ARROW","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-->"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"-.->"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":">"},"parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'<>/","parenthesized":false}],"parenthesized":false},{"$type":"RegexToken","regex":"/\\\\+\'[^\']*\'/","parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"LINK_LABEL","definition":{"$type":"RegexToken","regex":"/;[^\\\\n\\\\r]+/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRATEGY","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"build"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"buy"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"outsource"},"parenthesized":false}],"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"market"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_WARDLEY","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"wardley-beta"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_SIZE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"size"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLUTION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolution"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANCHOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"anchor"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_COMPONENT","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"component"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_LABEL","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"label"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_INERTIA","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"inertia"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_EVOLVE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"evolve"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_PIPELINE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"pipeline"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_NOTE","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"note"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATIONS","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotations"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ANNOTATION","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"annotation"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_ACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"accelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"KW_DEACCELERATOR","definition":{"$type":"CharacterRange","left":{"$type":"Keyword","value":"deaccelerator"},"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NAME_WITH_SPACES","definition":{"$type":"RegexToken","regex":"/(?!title\\\\s|accTitle|accDescr)[A-Za-z](?:[A-Za-z0-9_()&]|-(?!>))*(?:[ \\\\t]+[A-Za-z(](?:[A-Za-z0-9_()&]|-(?!>))*)*/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WS","definition":{"$type":"RegexToken","regex":"/[ \\\\t]+/","parenthesized":false},"fragment":false},{"$type":"ParserRule","name":"EOL","dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@52"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"entry":false,"fragment":false,"parameters":[]},{"$type":"ParserRule","fragment":true,"name":"TitleAndAccessibilities","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@44"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@45"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@46"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@41"},"arguments":[]}],"cardinality":"+"},"entry":false,"parameters":[]},{"$type":"TerminalRule","name":"BOOLEAN","type":{"$type":"ReturnType","name":"boolean"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"true"},"parenthesized":false},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"false"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"FLOAT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+\\\\.[0-9]+(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*(?!\\\\.)/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NUMBER","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@47"},"parenthesized":false},{"$type":"TerminalRuleCall","rule":{"$ref":"#/rules@48"},"parenthesized":false}],"parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\"([^\\"\\\\\\\\]|\\\\\\\\.)*\\"|\'([^\'\\\\\\\\]|\\\\\\\\.)*\'/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/[\\\\w]([-\\\\w]*\\\\w)?/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/","parenthesized":false},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/","parenthesized":false},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/","parenthesized":false},"fragment":false}],"interfaces":[],"types":[]}')),"WardleyGrammarGrammar"),Ayi={languageId:"architecture",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Ryi={languageId:"cynefin",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Iyi={languageId:"eventmodeling",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Oyi={languageId:"gitGraph",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Nyi={languageId:"info",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Lyi={languageId:"packet",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Myi={languageId:"pie",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Dyi={languageId:"radar",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Pyi={languageId:"railroadAbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Byi={languageId:"railroadEbnf",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Fyi={languageId:"railroad",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},$yi={languageId:"railroadPeg",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Uyi={languageId:"treemap",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Gyi={languageId:"treeView",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},zyi={languageId:"wardley",fileExtensions:[".mmd",".mermaid"],caseInsensitive:!1,mode:"production"},Pu={AstReflection:te(()=>new zHr,"AstReflection")},nke={Grammar:te(()=>fyi(),"Grammar"),LanguageMetaData:te(()=>Ayi,"LanguageMetaData"),parser:{}},ike={Grammar:te(()=>pyi(),"Grammar"),LanguageMetaData:te(()=>Ryi,"LanguageMetaData"),parser:{}},ake={Grammar:te(()=>gyi(),"Grammar"),LanguageMetaData:te(()=>Iyi,"LanguageMetaData"),parser:{}},ske={Grammar:te(()=>myi(),"Grammar"),LanguageMetaData:te(()=>Oyi,"LanguageMetaData"),parser:{}},oke={Grammar:te(()=>byi(),"Grammar"),LanguageMetaData:te(()=>Nyi,"LanguageMetaData"),parser:{}},lke={Grammar:te(()=>yyi(),"Grammar"),LanguageMetaData:te(()=>Lyi,"LanguageMetaData"),parser:{}},cke={Grammar:te(()=>vyi(),"Grammar"),LanguageMetaData:te(()=>Myi,"LanguageMetaData"),parser:{}},uke={Grammar:te(()=>_yi(),"Grammar"),LanguageMetaData:te(()=>Dyi,"LanguageMetaData"),parser:{}},hke={Grammar:te(()=>Eyi(),"Grammar"),LanguageMetaData:te(()=>Pyi,"LanguageMetaData"),parser:{}},dke={Grammar:te(()=>wyi(),"Grammar"),LanguageMetaData:te(()=>Byi,"LanguageMetaData"),parser:{}},fke={Grammar:te(()=>Syi(),"Grammar"),LanguageMetaData:te(()=>Fyi,"LanguageMetaData"),parser:{}},pke={Grammar:te(()=>Tyi(),"Grammar"),LanguageMetaData:te(()=>$yi,"LanguageMetaData"),parser:{}},gke={Grammar:te(()=>xyi(),"Grammar"),LanguageMetaData:te(()=>Uyi,"LanguageMetaData"),parser:{}},mke={Grammar:te(()=>Cyi(),"Grammar"),LanguageMetaData:te(()=>Gyi,"LanguageMetaData"),parser:{}},bke={Grammar:te(()=>kyi(),"Grammar"),LanguageMetaData:te(()=>zyi,"LanguageMetaData"),parser:{}},Vyi=/accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/,Hyi=/accTitle[\t ]*:([^\n\r]*)/,qyi=/title([\t ][^\n\r]*|)/,Yyi={ACC_DESCR:Vyi,ACC_TITLE:Hyi,TITLE:qyi},P0=class extends yHr{static{te(this,"AbstractMermaidValueConverter")}runConverter(e,r,i){let a=this.runCommonConverter(e,r,i);if(a===void 0)a=this.runCustomConverter(e,r,i);if(a===void 0)return super.runConverter(e,r,i);return a}runCommonConverter(e,r,i){let a=Yyi[e.name];if(a===void 0)return;let o=a.exec(r);if(o===null)return;if(o[1]!==void 0)return o[1].trim().replace(/[\t ]{2,}/gm," ");if(o[2]!==void 0)return o[2].replace(/^\s*/gm,"").replace(/\s+$/gm,"").replace(/[\t ]{2,}/gm," ").replace(/[\n\r]{2,}/gm,` +`);return}},d2=class extends P0{static{te(this,"CommonValueConverter")}runCustomConverter(e,r,i){return}},Xu=class extends bHr{static{te(this,"AbstractMermaidTokenBuilder")}constructor(e){super();this.keywords=new Set(e)}buildKeywordTokens(e,r,i){let a=super.buildKeywordTokens(e,r,i);return a.forEach((o)=>{if(this.keywords.has(o.name)&&o.PATTERN!==void 0)o.PATTERN=new RegExp(o.PATTERN.toString()+"(?:(?=%%)|(?!\\S))")}),a}},VHr=class extends Xu{static{te(this,"CommonTokenBuilder")}}});function Xse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),uke,mdt);return r.ServiceRegistry.register(i),{shared:r,Radar:i}}var jyi,mdt;var bdt=Re(()=>{Bu();jyi=class extends Xu{static{te(this,"RadarTokenBuilder")}constructor(){super(["radar-beta"])}},mdt={parser:{TokenBuilder:te(()=>new jyi,"TokenBuilder"),ValueConverter:te(()=>new d2,"ValueConverter")}};te(Xse,"createRadarServices")});function fF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),fke,ydt);return r.ServiceRegistry.register(i),{shared:r,Railroad:i}}var Kyi,HHr,Xyi,ydt;var vdt=Re(()=>{Bu();Kyi=class extends Xu{static{te(this,"RailroadTokenBuilder")}constructor(){super(["railroad-beta"])}},HHr=te((e)=>{let r=e.slice(1,-1),i="";for(let a=0;anew Kyi,"TokenBuilder"),ValueConverter:te(()=>new Xyi,"ValueConverter")}};te(fF,"createRailroadServices")});function pF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),dke,_dt);return r.ServiceRegistry.register(i),{shared:r,RailroadEbnf:i}}var Qyi,qHr,Zyi,_dt;var Edt=Re(()=>{Bu();Qyi=class extends Xu{static{te(this,"RailroadEbnfTokenBuilder")}constructor(){super(["railroad-ebnf-beta"])}},qHr=te((e)=>{let r=e.slice(1,-1),i="";for(let a=0;anew Qyi,"TokenBuilder"),ValueConverter:te(()=>new Zyi,"ValueConverter")}};te(pF,"createRailroadEbnfServices")});function gF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),hke,wdt);return r.ServiceRegistry.register(i),{shared:r,RailroadAbnf:i}}var Jyi,evi,wdt;var Sdt=Re(()=>{Bu();Jyi=class extends Xu{static{te(this,"RailroadAbnfTokenBuilder")}constructor(){super(["railroad-abnf-beta"])}},evi=class extends P0{static{te(this,"RailroadAbnfValueConverter")}runConverter(e,r,i){let a=super.runConverter(e,r,i);if(e.name==="TITLE"&&typeof a==="string"){let o=a.trim();if(o.startsWith('"')&&o.endsWith('"')||o.startsWith("'")&&o.endsWith("'"))return o.slice(1,-1)}return a}runCustomConverter(e,r,i){if(e.name==="ABNF_STRING")return r.slice(1,-1);return}},wdt={parser:{TokenBuilder:te(()=>new Jyi,"TokenBuilder"),ValueConverter:te(()=>new evi,"ValueConverter")}};te(gF,"createRailroadAbnfServices")});function mF(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),pke,Tdt);return r.ServiceRegistry.register(i),{shared:r,RailroadPeg:i}}var tvi,YHr,rvi,Tdt;var xdt=Re(()=>{Bu();tvi=class extends Xu{static{te(this,"RailroadPegTokenBuilder")}constructor(){super(["railroad-peg-beta"])}},YHr=te((e)=>{let r=e.slice(1,-1),i="";for(let a=0;anew tvi,"TokenBuilder"),ValueConverter:te(()=>new rvi,"ValueConverter")}};te(mF,"createRailroadPegServices")});function WHr(e){let r=e.validation.TreemapValidator,i=e.validation.ValidationRegistry;if(i){let a={Treemap:r.checkSingleRoot.bind(r)};i.register(a,r)}}function Qse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),gke,Cdt);return r.ServiceRegistry.register(i),WHr(i),{shared:r,Treemap:i}}var nvi,ivi,avi,svi,Cdt;var kdt=Re(()=>{Bu();nvi=class extends Xu{static{te(this,"TreemapTokenBuilder")}constructor(){super(["treemap"])}},ivi=/classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/,avi=class extends P0{static{te(this,"TreemapValueConverter")}runCustomConverter(e,r,i){if(e.name==="NUMBER2")return parseFloat(r.replace(/,/g,""));else if(e.name==="SEPARATOR")return r.substring(1,r.length-1);else if(e.name==="STRING2")return r.substring(1,r.length-1);else if(e.name==="INDENTATION")return r.length;else if(e.name==="ClassDef"){if(typeof r!=="string")return r;let a=ivi.exec(r);if(a)return{$type:"ClassDefStatement",className:a[1],styleText:a[2]||void 0}}return}};te(WHr,"registerValidationChecks");svi=class{static{te(this,"TreemapValidator")}checkSingleRoot(e,r){let i;for(let a of e.TreemapRows){if(!a.item)continue;if(i===void 0&&a.indent===void 0)i=0;else if(a.indent===void 0)r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"});else if(i!==void 0&&i>=parseInt(a.indent,10))r("error","Multiple root nodes are not allowed in a treemap.",{node:a,property:"item"})}}},Cdt={parser:{TokenBuilder:te(()=>new nvi,"TokenBuilder"),ValueConverter:te(()=>new avi,"ValueConverter")},validation:{TreemapValidator:te(()=>new svi,"TreemapValidator")}};te(Qse,"createTreemapServices")});function Zse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),bke,Adt);return r.ServiceRegistry.register(i),{shared:r,Wardley:i}}var ovi,Adt;var Rdt=Re(()=>{Bu();ovi=class extends P0{static{te(this,"WardleyValueConverter")}runCustomConverter(e,r,i){switch(e.name.toUpperCase()){case"LINK_LABEL":return r.substring(1).trim();default:return}}},Adt={parser:{ValueConverter:te(()=>new ovi,"ValueConverter")}};te(Zse,"createWardleyServices")});function Jse(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),ike,Idt);return r.ServiceRegistry.register(i),{shared:r,Cynefin:i}}var lvi,Idt;var Odt=Re(()=>{Bu();lvi=class extends Xu{static{te(this,"CynefinTokenBuilder")}constructor(){super(["cynefin-beta"])}},Idt={parser:{TokenBuilder:te(()=>new lvi,"TokenBuilder"),ValueConverter:te(()=>new d2,"ValueConverter")}};te(Jse,"createCynefinServices")});function eoe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),ske,Ndt);return r.ServiceRegistry.register(i),{shared:r,GitGraph:i}}var cvi,Ndt;var Ldt=Re(()=>{Bu();cvi=class extends Xu{static{te(this,"GitGraphTokenBuilder")}constructor(){super(["gitGraph"])}},Ndt={parser:{TokenBuilder:te(()=>new cvi,"TokenBuilder"),ValueConverter:te(()=>new d2,"ValueConverter")}};te(eoe,"createGitGraphServices")});function toe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),oke,Mdt);return r.ServiceRegistry.register(i),{shared:r,Info:i}}var uvi,Mdt;var Ddt=Re(()=>{Bu();uvi=class extends Xu{static{te(this,"InfoTokenBuilder")}constructor(){super(["info","showInfo"])}},Mdt={parser:{TokenBuilder:te(()=>new uvi,"TokenBuilder"),ValueConverter:te(()=>new d2,"ValueConverter")}};te(toe,"createInfoServices")});function roe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),lke,Pdt);return r.ServiceRegistry.register(i),{shared:r,Packet:i}}var hvi,Pdt;var Bdt=Re(()=>{Bu();hvi=class extends Xu{static{te(this,"PacketTokenBuilder")}constructor(){super(["packet"])}},Pdt={parser:{TokenBuilder:te(()=>new hvi,"TokenBuilder"),ValueConverter:te(()=>new d2,"ValueConverter")}};te(roe,"createPacketServices")});function noe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),cke,Fdt);return r.ServiceRegistry.register(i),{shared:r,Pie:i}}var dvi,fvi,Fdt;var $dt=Re(()=>{Bu();dvi=class extends Xu{static{te(this,"PieTokenBuilder")}constructor(){super(["pie","showData"])}},fvi=class extends P0{static{te(this,"PieValueConverter")}runCustomConverter(e,r,i){if(e.name!=="PIE_SECTION_LABEL")return;return r.replace(/"/g,"").trim()}},Fdt={parser:{TokenBuilder:te(()=>new dvi,"TokenBuilder"),ValueConverter:te(()=>new fvi,"ValueConverter")}};te(noe,"createPieServices")});function ioe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),mke,Udt);return r.ServiceRegistry.register(i),{shared:r,TreeView:i}}var pvi,gvi,Udt;var Gdt=Re(()=>{Bu();pvi=class extends P0{static{te(this,"TreeViewValueConverter")}runCustomConverter(e,r,i){if(e.name==="INDENTATION")return r?.length||0;if(e.name==="QUOTED_NAME")return r.substring(1,r.length-1);if(e.name==="BARE_NAME")return r.replace(/[\t ]+$/,"");if(e.name==="CLASS_ANNOTATION")return r.trim().substring(3).trim();if(e.name==="ICON_ANNOTATION"){let a=r.trim();return a.substring(5,a.length-1)}if(e.name==="DESC_ANNOTATION")return r.trim().substring(2).trim();return}},gvi=class extends Xu{static{te(this,"TreeViewTokenBuilder")}constructor(){super(["treeView-beta"])}},Udt={parser:{TokenBuilder:te(()=>new gvi,"TokenBuilder"),ValueConverter:te(()=>new pvi,"ValueConverter")}};te(ioe,"createTreeViewServices")});function aoe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),nke,zdt);return r.ServiceRegistry.register(i),{shared:r,Architecture:i}}var mvi,bvi,zdt;var Vdt=Re(()=>{Bu();mvi=class extends Xu{static{te(this,"ArchitectureTokenBuilder")}constructor(){super(["architecture"])}},bvi=class extends P0{static{te(this,"ArchitectureValueConverter")}runCustomConverter(e,r,i){if(e.name==="ARCH_ICON")return r.replace(/[()]/g,"").trim();else if(e.name==="ARCH_TEXT_ICON")return r.replace(/["()]/g,"");else if(e.name==="ARCH_TITLE"){let a=r.replace(/^\[|]$/g,"").trim();if(a.startsWith('"')&&a.endsWith('"')||a.startsWith("'")&&a.endsWith("'"))a=a.slice(1,-1),a=a.replace(/\\"/g,'"').replace(/\\'/g,"'");return a.trim()}return}},zdt={parser:{TokenBuilder:te(()=>new mvi,"TokenBuilder"),ValueConverter:te(()=>new bvi,"ValueConverter")}};te(aoe,"createArchitectureServices")});function ZHr(e){let r=e.validation.EventModelingValidator,i=e.validation.ValidationRegistry;if(i){let a={EmTimeFrame:r.checkSourceFrameTypes.bind(r),EmResetFrame:r.checkSourceFrameTypes.bind(r)};i.register(a,r)}}function soe(e=Du){let r=$o(du(e),Pu),i=$o(hu({shared:r}),ake,qdt);return r.ServiceRegistry.register(i),ZHr(i),{shared:r,EventModel:i}}var yvi,jHr,KHr,Hdt,XHr,QHr,vvi,qdt;var Ydt=Re(()=>{Bu();yvi=class extends Xu{static{te(this,"EventModelingTokenBuilder")}constructor(){super(["eventmodeling"])}},jHr=new Set(["cmd","command"]),KHr=new Set(["evt","event"]),Hdt=new Set(["rmo","readmodel"]),XHr=new Set(["pcr","processor"]),QHr=new Set(["ui"]);te(ZHr,"registerValidationChecks");vvi=class{static{te(this,"EventModelingValidator")}checkSourceFrameTypes(e,r){if(e.sourceFrames.length===0)return;if(jHr.has(e.modelEntityType))this.validateSources(e,new Set([...QHr,...XHr]),"command","ui or processor",r);else if(KHr.has(e.modelEntityType))this.validateSources(e,jHr,"event","command",r);else if(Hdt.has(e.modelEntityType))this.validateSources(e,KHr,"read model","event",r);else if(XHr.has(e.modelEntityType))this.validateSources(e,Hdt,"processor","read model",r);else if(QHr.has(e.modelEntityType))this.validateSources(e,Hdt,"ui","read model",r)}validateSources(e,r,i,a,o){for(let l of e.sourceFrames){let h=l.ref;if(h!==void 0&&!r.has(h.modelEntityType))o("error",`A ${i} can only receive input from a ${a}, not from '${h.modelEntityType}'.`,{node:e,property:"sourceFrames"})}}},qdt={parser:{TokenBuilder:te(()=>new yvi,"TokenBuilder"),ValueConverter:te(()=>new d2,"ValueConverter")},validation:{EventModelingValidator:te(()=>new vvi,"EventModelingValidator")}};te(soe,"createEventModelingServices")});var JHr=Re(()=>{Ddt();Bu()});var eqr=Re(()=>{Bdt();Bu()});var tqr=Re(()=>{$dt();Bu()});var rqr=Re(()=>{Gdt();Bu()});var nqr=Re(()=>{Vdt();Bu()});var iqr=Re(()=>{Ldt();Bu()});var aqr=Re(()=>{Ydt();Bu()});var sqr=Re(()=>{bdt();Bu()});var oqr=Re(()=>{vdt();Bu()});var lqr=Re(()=>{Edt();Bu()});var cqr=Re(()=>{Sdt();Bu()});var uqr=Re(()=>{xdt();Bu()});var hqr=Re(()=>{kdt();Bu()});var dqr=Re(()=>{Rdt();Bu()});var fqr=Re(()=>{Odt();Bu()});async function lp(e,r){let i=_vi[e];if(!i)throw Error(`Unknown diagram type: ${e}`);if(!tb[e])await i();let o=tb[e].parse(r);if(o.lexerErrors.length>0||o.parserErrors.length>0)throw new RI(o);return o.value}var tb,_vi,yke,RI;var rb=Re(()=>{bdt();vdt();Edt();Sdt();xdt();kdt();Rdt();Odt();Ldt();Ddt();Bdt();$dt();Gdt();Vdt();Ydt();Bu();tb={},_vi={info:te(async()=>{await Promise.resolve().then(() => JHr());let r=toe().Info.parser.LangiumParser;tb.info=r},"info"),packet:te(async()=>{await Promise.resolve().then(() => eqr());let r=roe().Packet.parser.LangiumParser;tb.packet=r},"packet"),pie:te(async()=>{await Promise.resolve().then(() => tqr());let r=noe().Pie.parser.LangiumParser;tb.pie=r},"pie"),treeView:te(async()=>{await Promise.resolve().then(() => rqr());let r=ioe().TreeView.parser.LangiumParser;tb.treeView=r},"treeView"),architecture:te(async()=>{await Promise.resolve().then(() => nqr());let r=aoe().Architecture.parser.LangiumParser;tb.architecture=r},"architecture"),gitGraph:te(async()=>{await Promise.resolve().then(() => iqr());let r=eoe().GitGraph.parser.LangiumParser;tb.gitGraph=r},"gitGraph"),eventmodeling:te(async()=>{await Promise.resolve().then(() => aqr());let r=soe().EventModel.parser.LangiumParser;tb.eventmodeling=r},"eventmodeling"),radar:te(async()=>{await Promise.resolve().then(() => sqr());let r=Xse().Radar.parser.LangiumParser;tb.radar=r},"radar"),railroad:te(async()=>{await Promise.resolve().then(() => oqr());let r=fF().Railroad.parser.LangiumParser;tb.railroad=r},"railroad"),railroadEbnf:te(async()=>{await Promise.resolve().then(() => lqr());let r=pF().RailroadEbnf.parser.LangiumParser;tb.railroadEbnf=r},"railroadEbnf"),railroadAbnf:te(async()=>{await Promise.resolve().then(() => cqr());let r=gF().RailroadAbnf.parser.LangiumParser;tb.railroadAbnf=r},"railroadAbnf"),railroadPeg:te(async()=>{await Promise.resolve().then(() => uqr());let r=mF().RailroadPeg.parser.LangiumParser;tb.railroadPeg=r},"railroadPeg"),treemap:te(async()=>{await Promise.resolve().then(() => hqr());let r=Qse().Treemap.parser.LangiumParser;tb.treemap=r},"treemap"),wardley:te(async()=>{await Promise.resolve().then(() => dqr());let r=Zse().Wardley.parser.LangiumParser;tb.wardley=r},"wardley"),cynefin:te(async()=>{await Promise.resolve().then(() => fqr());let r=Jse().Cynefin.parser.LangiumParser;tb.cynefin=r},"cynefin")};te(lp,"parse");yke=te((e)=>e!==void 0&&e>=0?e:"?","formatLocation"),RI=class extends Error{constructor(e){let r=e.lexerErrors.map((a)=>{let o=yke(a.line),l=yke(a.column);return`Lexer error on line ${o}, column ${l}: ${a.message}`}).join(` +`),i=e.parserErrors.map((a)=>{let o=yke(a.token.startLine),l=yke(a.token.startColumn);return`Parse error on line ${o}, column ${l}: ${a.message}`}).join(` +`);super(`Parsing failed: ${r} ${i}`);this.result=e}static{te(this,"MermaidParseError")}}});function Eke(){return rtt({length:7})}function gqr(e,r){let i=Object.create(null);return e.reduce((a,o)=>{let l=r(o);if(!i[l])i[l]=!0,a.push(o);return a},[])}function Wdt(e,r,i){let a=e.indexOf(r);if(a===-1)e.push(i);else e.splice(a,1,i)}function Kdt(e){let r=e.reduce((o,l)=>{if(o.seq>l.seq)return o;return l},e[0]),i="";e.forEach(function(o){if(o===r)i+="\t*";else i+="\t|"});let a=[i,r.id,r.seq];for(let o in xa.records.branches)if(xa.records.branches.get(o)===r.id)a.push(o);if(Ze.debug(a.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){let o=xa.records.commits.get(r.parents[0]);if(Wdt(e,r,o),r.parents[1])e.push(xa.records.commits.get(r.parents[1]))}else if(r.parents.length==0)return;else if(r.parents[0]){let o=xa.records.commits.get(r.parents[0]);Wdt(e,r,o)}e=gqr(e,(o)=>o.id),Kdt(e)}var jh,Evi,vF,xa,wvi,Svi,Tvi,xvi,Cvi,kvi,Avi,mqr,Rvi,Ivi,Ovi,Nvi,Lvi,bqr,Mvi,Dvi,Pvi,yqr,Bvi,Fvi,$vi,Uvi,Gvi,zvi,Vvi,Hvi,X7=10,Q7=40,eA=4,II=2,bF=8,wke,jdt=12,Xdt,qvi,yF,f2,p2,vke=30,ooe,_ke,OI=0,Ac="LR",Yvi,vqr,_qr,Wvi,jvi,Kvi,Xvi,Qvi,Zvi,Jvi,e_i,t_i,r_i,n_i,i_i,pqr,a_i,loe,s_i,o_i,l_i,c_i,u_i,h_i,Eqr=8,wqr,d_i,f_i,p_i,g_i,m_i,b_i,y_i,v_i,__i,Sqr;var Tqr=Re(()=>{Ixe();Tv();Ql();eo();Zs();Ja();rb();dl();jh={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Evi=Fs.gitGraph,vF=I(()=>bc({...Evi,...ea().gitGraph}),"getConfig"),xa=new Xq(()=>{let e=vF(),{mainBranchName:r,mainBranchOrder:i}=e;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:i}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});I(Eke,"getID");I(gqr,"uniqBy");wvi=I(function(e){xa.records.direction=e},"setDirection"),Svi=I(function(e){Ze.debug("options str",e),e=e?.trim(),e=e||"{}";try{xa.records.options=JSON.parse(e)}catch(r){Ze.error("error while parsing gitGraph options",r.message)}},"setOptions"),Tvi=I(function(){return xa.records.options},"getOptions"),xvi=I(function(e){let{msg:r,id:i,type:a,tags:o}=e;Ze.info("commit",r,i,a,o),Ze.debug("Entering commit:",r,i,a,o);let l=vF();i=ai.sanitizeText(i,l),r=ai.sanitizeText(r,l),o=o?.map((d)=>ai.sanitizeText(d,l));let h={id:i?i:xa.records.seq+"-"+Eke(),message:r,seq:xa.records.seq++,type:a??jh.NORMAL,tags:o??[],parents:xa.records.head==null?[]:[xa.records.head.id],branch:xa.records.currBranch};if(xa.records.head=h,Ze.info("main branch",l.mainBranchName),xa.records.commits.has(h.id))Ze.warn(`Commit ID ${h.id} already exists`);xa.records.commits.set(h.id,h),xa.records.branches.set(xa.records.currBranch,h.id),Ze.debug("in pushCommit "+h.id)},"commit"),Cvi=I(function(e){let{name:r,order:i}=e;if(r=ai.sanitizeText(r,vF()),xa.records.branches.has(r))throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${r}")`);xa.records.branches.set(r,xa.records.head!=null?xa.records.head.id:null),xa.records.branchConfig.set(r,{name:r,order:i}),mqr(r),Ze.debug("in createBranch")},"branch"),kvi=I((e)=>{let{branch:r,id:i,type:a,tags:o}=e,l=vF();if(r=ai.sanitizeText(r,l),i)i=ai.sanitizeText(i,l);let h=xa.records.branches.get(xa.records.currBranch),d=xa.records.branches.get(r),p=h?xa.records.commits.get(h):void 0,m=d?xa.records.commits.get(d):void 0;if(p&&m&&p.branch===r)throw Error(`Cannot merge branch '${r}' into itself.`);if(xa.records.currBranch===r){let w=Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},w}if(p===void 0||!p){let w=Error(`Incorrect usage of "merge". Current branch (${xa.records.currBranch})has no commits`);throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},w}if(!xa.records.branches.has(r)){let w=Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},w}if(m===void 0||!m){let w=Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},w}if(p===m){let w=Error('Incorrect usage of "merge". Both branches have same head');throw w.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},w}if(i&&xa.records.commits.has(i)){let w=Error('Incorrect usage of "merge". Commit with id:'+i+" already exists, use different custom id");throw w.hash={text:`merge ${r} ${i} ${a} ${o?.join(" ")}`,token:`merge ${r} ${i} ${a} ${o?.join(" ")}`,expected:[`merge ${r} ${i}_UNIQUE ${a} ${o?.join(" ")}`]},w}let y=d?d:"",v={id:i||`${xa.records.seq}-${Eke()}`,message:`merged branch ${r} into ${xa.records.currBranch}`,seq:xa.records.seq++,parents:xa.records.head==null?[]:[xa.records.head.id,y],branch:xa.records.currBranch,type:jh.MERGE,customType:a,customId:i?!0:!1,tags:o??[]};xa.records.head=v,xa.records.commits.set(v.id,v),xa.records.branches.set(xa.records.currBranch,v.id),Ze.debug(xa.records.branches),Ze.debug("in mergeBranch")},"merge"),Avi=I(function(e){let{id:r,targetId:i,tags:a,parent:o}=e;Ze.debug("Entering cherryPick:",r,i,a);let l=vF();if(r=ai.sanitizeText(r,l),i=ai.sanitizeText(i,l),a=a?.map((p)=>ai.sanitizeText(p,l)),o=ai.sanitizeText(o,l),!r||!xa.records.commits.has(r)){let p=Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw p.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},p}let h=xa.records.commits.get(r);if(h===void 0||!h)throw Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(h.parents)&&h.parents.includes(o)))throw Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let d=h.branch;if(h.type===jh.MERGE&&!o)throw Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!i||!xa.records.commits.has(i)){if(d===xa.records.currBranch){let v=Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw v.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},v}let p=xa.records.branches.get(xa.records.currBranch);if(p===void 0||!p){let v=Error(`Incorrect usage of "cherry-pick". Current branch (${xa.records.currBranch})has no commits`);throw v.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},v}let m=xa.records.commits.get(p);if(m===void 0||!m){let v=Error(`Incorrect usage of "cherry-pick". Current branch (${xa.records.currBranch})has no commits`);throw v.hash={text:`cherryPick ${r} ${i}`,token:`cherryPick ${r} ${i}`,expected:["cherry-pick abc"]},v}let y={id:xa.records.seq+"-"+Eke(),message:`cherry-picked ${h?.message} into ${xa.records.currBranch}`,seq:xa.records.seq++,parents:xa.records.head==null?[]:[xa.records.head.id,h.id],branch:xa.records.currBranch,type:jh.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${h.id}${h.type===jh.MERGE?`|parent:${o}`:""}`]};xa.records.head=y,xa.records.commits.set(y.id,y),xa.records.branches.set(xa.records.currBranch,y.id),Ze.debug(xa.records.branches),Ze.debug("in cherryPick")}},"cherryPick"),mqr=I(function(e){if(e=ai.sanitizeText(e,vF()),!xa.records.branches.has(e)){let r=Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}else{xa.records.currBranch=e;let r=xa.records.branches.get(xa.records.currBranch);if(r===void 0||!r)xa.records.head=null;else xa.records.head=xa.records.commits.get(r)??null}},"checkout");I(Wdt,"upsert");I(Kdt,"prettyPrintCommitHistory");Rvi=I(function(){Ze.debug(xa.records.commits);let e=bqr()[0];Kdt([e])},"prettyPrint"),Ivi=I(function(){xa.reset(),qs()},"clear"),Ovi=I(function(){return[...xa.records.branchConfig.values()].map((r,i)=>{if(r.order!==null&&r.order!==void 0)return r;return{...r,order:parseFloat(`0.${i}`)}}).sort((r,i)=>(r.order??0)-(i.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),Nvi=I(function(){return xa.records.branches},"getBranches"),Lvi=I(function(){return xa.records.commits},"getCommits"),bqr=I(function(){let e=[...xa.records.commits.values()];return e.forEach(function(r){Ze.debug(r.id)}),e.sort((r,i)=>r.seq-i.seq),e},"getCommitsArray"),Mvi=I(function(){return xa.records.currBranch},"getCurrentBranch"),Dvi=I(function(){return xa.records.direction},"getDirection"),Pvi=I(function(){return xa.records.head},"getHead"),yqr={commitType:jh,getConfig:vF,setDirection:wvi,setOptions:Svi,getOptions:Tvi,commit:xvi,branch:Cvi,merge:kvi,cherryPick:Avi,checkout:mqr,prettyPrint:Rvi,clear:Ivi,getBranchesAsObjArray:Ovi,getBranches:Nvi,getCommits:Lvi,getCommitsArray:bqr,getCurrentBranch:Mvi,getDirection:Dvi,getHead:Pvi,setAccTitle:Ys,getAccTitle:oo,getAccDescription:lo,setAccDescription:Js,setDiagramTitle:_o,getDiagramTitle:fo},Bvi=I((e,r)=>{if(Sh(e,r),e.dir)r.setDirection(e.dir);for(let i of e.statements)Fvi(i,r)},"populate"),Fvi=I((e,r)=>{let a={Commit:I((o)=>r.commit($vi(o)),"Commit"),Branch:I((o)=>r.branch(Uvi(o)),"Branch"),Merge:I((o)=>r.merge(Gvi(o)),"Merge"),Checkout:I((o)=>r.checkout(zvi(o)),"Checkout"),CherryPicking:I((o)=>r.cherryPick(Vvi(o)),"CherryPicking")}[e.$type];if(a)a(e);else Ze.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),$vi=I((e)=>({id:e.id,msg:e.message??"",type:e.type!==void 0?jh[e.type]:jh.NORMAL,tags:e.tags??void 0}),"parseCommit"),Uvi=I((e)=>({name:e.name,order:e.order??0}),"parseBranch"),Gvi=I((e)=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?jh[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),zvi=I((e)=>e.branch,"parseCheckout"),Vvi=I((e)=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Hvi={parse:I(async(e)=>{let r=await lp("gitGraph",e);Ze.debug(r),Bvi(r,yqr)},"parse")},wke=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Xdt=new Set(["redux-color","redux-dark-color"]),qvi=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),yF=I((e,r,i=!1)=>{if(i&&e>0)return(e-1)%(r-1)+1;return e%r},"calcColorIndex"),f2=new Map,p2=new Map,ooe=new Map,_ke=[],Yvi=I(()=>{f2.clear(),p2.clear(),ooe.clear(),OI=0,_ke=[],Ac="LR"},"clear"),vqr=I((e)=>{let r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e==="string"?e.split(/\\n|\n|/gi):e).forEach((a)=>{let o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=a.trim(),r.appendChild(o)}),r},"drawText"),_qr=I((e)=>{let r,i,a;if(Ac==="BT")i=I((o,l)=>o<=l,"comparisonFunc"),a=1/0;else i=I((o,l)=>o>=l,"comparisonFunc"),a=0;return e.forEach((o)=>{let l=Ac==="TB"||Ac=="BT"?p2.get(o)?.y:p2.get(o)?.x;if(l!==void 0&&i(l,a))r=o,a=l}),r},"findClosestParent"),Wvi=I((e)=>{let r="",i=1/0;return e.forEach((a)=>{let o=p2.get(a).y;if(o<=i)r=a,i=o}),r||void 0},"findClosestParentBT"),jvi=I((e,r,i)=>{let a=i,o=i,l=[];e.forEach((h)=>{let d=r.get(h);if(!d)throw Error(`Commit not found for key ${h}`);if(d.parents.length)a=Xvi(d),o=Math.max(a,o);else l.push(d);Qvi(d,a)}),a=o,l.forEach((h)=>{Zvi(h,a,i)}),e.forEach((h)=>{let d=r.get(h);if(d?.parents.length){let p=Wvi(d.parents);if(a=p2.get(p).y-Q7,a<=o)o=a;let m=f2.get(d.branch).pos,y=a-X7;p2.set(d.id,{x:m,y})}})},"setParallelBTPos"),Kvi=I((e)=>{let r=_qr(e.parents.filter((a)=>a!==null));if(!r)throw Error(`Closest parent not found for commit ${e.id}`);let i=p2.get(r)?.y;if(i===void 0)throw Error(`Closest parent position not found for commit ${e.id}`);return i},"findClosestParentPos"),Xvi=I((e)=>Kvi(e)+Q7,"calculateCommitPosition"),Qvi=I((e,r)=>{let i=f2.get(e.branch);if(!i)throw Error(`Branch not found for commit ${e.id}`);let a=i.pos,o=r+X7;return p2.set(e.id,{x:a,y:o}),{x:a,y:o}},"setCommitPosition"),Zvi=I((e,r,i)=>{let a=f2.get(e.branch);if(!a)throw Error(`Branch not found for commit ${e.id}`);let o=r+i,l=a.pos;p2.set(e.id,{x:l,y:o})},"setRootPosition"),Jvi=I((e,r,i,a,o,l)=>{let{theme:h}=Ar(),d=wke.has(h??""),p=Xdt.has(h??""),m=qvi.has(h??"");if(l===jh.HIGHLIGHT)e.append("rect").attr("x",i.x-10+(d?3:0)).attr("y",i.y-10+(d?3:0)).attr("width",d?14:20).attr("height",d?14:20).attr("class",`commit ${r.id} commit-highlight${yF(o,bF,p)} ${a}-outer`),e.append("rect").attr("x",i.x-6+(d?2:0)).attr("y",i.y-6+(d?2:0)).attr("width",d?8:12).attr("height",d?8:12).attr("class",`commit ${r.id} commit${yF(o,bF,p)} ${a}-inner`);else if(l===jh.CHERRY_PICK)e.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",d?7:10).attr("class",`commit ${r.id} ${a}`),e.append("circle").attr("cx",i.x-3).attr("cy",i.y+2).attr("r",d?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`),e.append("circle").attr("cx",i.x+3).attr("cy",i.y+2).attr("r",d?2.5:2.75).attr("fill",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`),e.append("line").attr("x1",i.x+3).attr("y1",i.y+1).attr("x2",i.x).attr("y2",i.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`),e.append("line").attr("x1",i.x-3).attr("y1",i.y+1).attr("x2",i.x).attr("y2",i.y-5).attr("stroke",m?"#000000":"#fff").attr("class",`commit ${r.id} ${a}`);else{let y=e.append("circle");if(y.attr("cx",i.x),y.attr("cy",i.y),y.attr("r",d?7:10),y.attr("class",`commit ${r.id} commit${yF(o,bF,p)}`),l===jh.MERGE){let v=e.append("circle");v.attr("cx",i.x),v.attr("cy",i.y),v.attr("r",d?5:6),v.attr("class",`commit ${a} ${r.id} commit${yF(o,bF,p)}`)}if(l===jh.REVERSE){let v=e.append("path"),w=d?4:5;v.attr("d",`M ${i.x-w},${i.y-w}L${i.x+w},${i.y+w}M${i.x-w},${i.y+w}L${i.x+w},${i.y-w}`).attr("class",`commit ${a} ${r.id} commit${yF(o,bF,p)}`)}}},"drawCommitBullet"),e_i=I((e,r,i,a,o)=>{if(r.type!==jh.CHERRY_PICK&&(r.customId&&r.type===jh.MERGE||r.type!==jh.MERGE)&&o.showCommitLabel){let l=e.append("g"),h=l.insert("rect").attr("class","commit-label-bkg"),d=l.append("text").attr("x",a).attr("y",i.y+25).attr("class","commit-label").text(r.id),p=d.node()?.getBBox();if(p){if(h.attr("x",i.posWithOffset-p.width/2-II).attr("y",i.y+13.5).attr("width",p.width+2*II).attr("height",p.height+2*II),Ac==="TB"||Ac==="BT")h.attr("x",i.x-(p.width+4*eA+5)).attr("y",i.y-12),d.attr("x",i.x-(p.width+4*eA)).attr("y",i.y+p.height-12);else d.attr("x",i.posWithOffset-p.width/2);if(o.rotateCommitLabel)if(Ac==="TB"||Ac==="BT")d.attr("transform","rotate(-45, "+i.x+", "+i.y+")"),h.attr("transform","rotate(-45, "+i.x+", "+i.y+")");else{let m=-7.5-(p.width+10)/25*9.5,y=10+p.width/25*8.5;l.attr("transform","translate("+m+", "+y+") rotate(-45, "+a+", "+i.y+")")}}}},"drawCommitLabel"),t_i=I((e,r,i,a)=>{if(r.tags.length>0){let o=0,l=0,h=0,d=[];for(let p of r.tags.reverse()){let m=e.insert("polygon"),y=e.append("circle"),v=e.append("text").attr("y",i.y-16-o).attr("class","tag-label").text(p),w=v.node()?.getBBox();if(!w)throw Error("Tag bbox not found");l=Math.max(l,w.width),h=Math.max(h,w.height),v.attr("x",i.posWithOffset-w.width/2),d.push({tag:v,hole:y,rect:m,yOffset:o}),o+=20}for(let{tag:p,hole:m,rect:y,yOffset:v}of d){let w=h/2,T=i.y-19.2-v;if(y.attr("class","tag-label-bkg").attr("points",` + ${a-l/2-eA/2},${T+II} + ${a-l/2-eA/2},${T-II} + ${i.posWithOffset-l/2-eA},${T-w-II} + ${i.posWithOffset+l/2+eA},${T-w-II} + ${i.posWithOffset+l/2+eA},${T+w+II} + ${i.posWithOffset-l/2-eA},${T+w+II}`),m.attr("cy",T).attr("cx",a-l/2+eA/2).attr("r",1.5).attr("class","tag-hole"),Ac==="TB"||Ac==="BT"){let x=a+v;y.attr("class","tag-label-bkg").attr("points",` ${i.x},${x+2} ${i.x},${x-2} - ${i.x+j7},${x-w-2} - ${i.x+j7+l+4},${x-w-2} - ${i.x+j7+l+4},${x+w+2} - ${i.x+j7},${x+w+2}`).attr("transform","translate(12,12) rotate(45, "+i.x+","+a+")"),m.attr("cx",i.x+J3/2).attr("cy",x).attr("transform","translate(12,12) rotate(45, "+i.x+","+a+")"),p.attr("x",i.x+5).attr("y",x+3).attr("transform","translate(14,14) rotate(45, "+i.x+","+a+")")}}}},"drawCommitTags"),Xvi=I((e)=>{switch(e.customType??e.type){case jh.NORMAL:return"commit-normal";case jh.REVERSE:return"commit-reverse";case jh.HIGHLIGHT:return"commit-highlight";case jh.MERGE:return"commit-merge";case jh.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),Qvi=I((e,r,i,a)=>{let o={x:0,y:0};if(e.parents.length>0){let l=gqr(e.parents);if(l){let h=a.get(l)??o;if(r==="TB")return h.y+K7;else if(r==="BT")return(a.get(e.id)??o).y-K7;else return h.x+K7}}else if(r==="TB")return mke;else if(r==="BT")return(a.get(e.id)??o).y-K7;else return 0;return 0},"calculatePosition"),Zvi=I((e,r,i)=>{let a=Ac==="BT"&&i?r:r+j7,o=f2.get(e.branch)?.pos,l=Ac==="TB"||Ac==="BT"?f2.get(e.branch)?.pos:a;if(l===void 0||o===void 0)throw Error(`Position were undefined for commit ${e.id}`);let h=vke.has(Ar().theme??""),d=Ac==="TB"||Ac==="BT"?a:o+(h?qdt/2+1:-2);return{x:l,y:d,posWithOffset:a}},"getCommitPosition"),cqr=I((e,r,i,a)=>{let o=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),h=Ac==="TB"||Ac==="BT"?mke:0,d=[...r.keys()],p=a.parallelCommits??!1,m=I((E,w)=>{let T=r.get(E)?.seq,x=r.get(w)?.seq;return T!==void 0&&x!==void 0?T-x:0},"sortKeys"),y=d.sort(m);if(Ac==="BT"){if(p)zvi(y,r,h);y=y.reverse()}y.forEach((E)=>{let w=r.get(E);if(!w)throw Error(`Commit not found for key ${E}`);if(p)h=Qvi(w,Ac,h,p2);let T=Zvi(w,h,p);if(i){let x=Xvi(w),k=w.customType??w.type,A=f2.get(w.branch)?.index??0;Wvi(o,w,T,x,A,k),jvi(l,w,T,h,a),Kvi(l,w,T,h)}if(Ac==="TB"||Ac==="BT")p2.set(w.id,{x:T.x,y:T.posWithOffset});else p2.set(w.id,{x:T.posWithOffset,y:T.y});if(h=Ac==="BT"&&p?h+K7:h+K7+j7,h>AI)AI=h})},"drawCommits"),Jvi=I((e,r,i,a,o)=>{let h=(Ac==="TB"||Ac==="BT"?i.xm.branch===h,"isOnBranchToGetCurve"),p=I((m)=>m.seq>e.seq&&m.seqp(m)&&d(m))},"shouldRerouteArrow"),aoe=I((e,r,i=0)=>{let a=e+Math.abs(e-r)/2;if(i>5)return a;if(bke.every((h)=>Math.abs(h-a)>=10))return bke.push(a),a;let l=Math.abs(e-r);return aoe(e,r-l/5,i+1)},"findLane"),e_i=I((e,r,i,a)=>{let{theme:o}=Ar(),l=Wdt.has(o??""),h=p2.get(r.id),d=p2.get(i.id);if(h===void 0||d===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${i.id}`);let p=Jvi(r,i,h,d,a),m="",y="",E=0,w=0,T=f2.get(i.branch)?.index;if(i.type===jh.MERGE&&r.id!==i.parents[0])T=f2.get(r.branch)?.index;let x;if(p){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",E=10,w=10;let k=h.yd.x)if(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",E=20,w=20,i.type===jh.MERGE&&r.id!==i.parents[0])x=`M ${h.x} ${h.y} L ${h.x} ${d.y-E} ${y} ${h.x-w} ${d.y} L ${d.x} ${d.y}`;else x=`M ${h.x} ${h.y} L ${d.x+E} ${h.y} ${m} ${d.x} ${h.y+w} L ${d.x} ${d.y}`;if(h.x===d.x)x=`M ${h.x} ${h.y} L ${d.x} ${d.y}`}else if(Ac==="BT"){if(h.xd.x)if(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",E=20,w=20,i.type===jh.MERGE&&r.id!==i.parents[0])x=`M ${h.x} ${h.y} L ${h.x} ${d.y+E} ${m} ${h.x-w} ${d.y} L ${d.x} ${d.y}`;else x=`M ${h.x} ${h.y} L ${d.x+E} ${h.y} ${y} ${d.x} ${h.y-w} L ${d.x} ${d.y}`;if(h.x===d.x)x=`M ${h.x} ${h.y} L ${d.x} ${d.y}`}else{if(h.yd.y)if(i.type===jh.MERGE&&r.id!==i.parents[0])x=`M ${h.x} ${h.y} L ${d.x-E} ${h.y} ${m} ${d.x} ${h.y-w} L ${d.x} ${d.y}`;else x=`M ${h.x} ${h.y} L ${h.x} ${d.y+E} ${y} ${h.x+w} ${d.y} L ${d.x} ${d.y}`;if(h.y===d.y)x=`M ${h.x} ${h.y} L ${d.x} ${d.y}`}if(x===void 0)throw Error("Line definition not found");e.append("path").attr("d",x).attr("class","arrow arrow"+mF(T,gF,l))},"drawArrow"),t_i=I((e,r)=>{let i=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((a)=>{let o=r.get(a);if(o.parents&&o.parents.length>0)o.parents.forEach((l)=>{e_i(i,r.get(l),o,r)})})},"drawArrows"),r_i=I((e,r,i,a)=>{let{look:o,theme:l,themeVariables:h}=Ar(),{dropShadow:d,THEME_COLOR_LIMIT:p}=h,m=vke.has(l??""),y=Wdt.has(l??""),E=e.append("g");r.forEach((w,T)=>{let x=mF(T,m?p:gF,y),k=f2.get(w.name)?.pos;if(k===void 0)throw Error(`Position not found for branch ${w.name}`);let A=Ac==="TB"||Ac==="BT"?k:m?k+qdt/2+1:k-2,R=E.append("line");if(R.attr("x1",0),R.attr("y1",A),R.attr("x2",AI),R.attr("y2",A),R.attr("class","branch branch"+x),Ac==="TB")R.attr("y1",mke),R.attr("x1",k),R.attr("y2",AI),R.attr("x2",k);else if(Ac==="BT")R.attr("y1",AI),R.attr("x1",k),R.attr("y2",mke),R.attr("x2",k);bke.push(A);let N=w.name,L=pqr(N),B=E.insert("rect"),P=E.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+x);P.node().appendChild(L);let F=L.getBBox(),H=m?0:4,K=m?16:0,Q=m?qdt:0;if(o==="neo")B.attr("data-look","neo");if(B.attr("class","branchLabelBkg label"+x).attr("style",o==="neo"?`filter:${m?`url(#${a}-drop-shadow)`:d}`:"").attr("rx",H).attr("ry",H).attr("x",-F.width-4-(i.rotateCommitLabel===!0?30:0)).attr("y",-F.height/2+10).attr("width",F.width+18+K).attr("height",F.height+4+Q),P.attr("transform","translate("+(-F.width-14-(i.rotateCommitLabel===!0?30:0)+K/2)+", "+(A-F.height/2-2)+")"),Ac==="TB"){if(B.attr("x",k-F.width/2-10).attr("y",0),P.attr("transform","translate("+(k-F.width/2-5)+", 0)"),m)B.attr("transform",`translate(${-K/2-3}, ${-Q-10})`),P.attr("transform","translate("+(k-F.width/2-5)+", "+(-Q*2+7)+")")}else if(Ac==="BT"){if(B.attr("x",k-F.width/2-10).attr("y",AI),P.attr("transform","translate("+(k-F.width/2-5)+", "+AI+")"),m)B.attr("transform",`translate(${-K/2-3}, ${Q+10})`),P.attr("transform","translate("+(k-F.width/2-5)+", "+(AI+Q*2+4)+")")}else B.attr("transform","translate(-19, "+(A-12-Q/2)+")")})},"drawBranches"),n_i=I(function(e,r,i,a,o){return f2.set(e,{pos:r,index:i}),r+=50+(o?40:0)+(Ac==="TB"||Ac==="BT"?a.width/2:0),r},"setBranchPosition"),i_i=I(function(e,r,i,a){Uvi(),Ze.debug("in gitgraph renderer",e+` -`,"id:",r,i);let o=a.db;if(!o.getConfig){Ze.error("getConfig method is not available on db");return}let l=o.getConfig(),h=l.rotateCommitLabel??!1;ioe=o.getCommits();let d=o.getBranchesAsObjArray();Ac=o.getDirection();let p=xn(`[id="${r}"]`),{look:m,theme:y,themeVariables:E}=Ar(),{useGradient:w,gradientStart:T,gradientStop:x,filterColor:k}=E;if(w){let R=p.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",T).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(m==="neo"&&vke.has(y??""))p.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",k);let A=0;if(d.forEach((R,N)=>{let L=pqr(R.name),B=p.append("g"),D=B.insert("g").attr("class","branchLabel"),P=D.insert("g").attr("class","label branch-label");P.node()?.appendChild(L);let F=L.getBBox();A=n_i(R.name,A,N,F,h),P.remove(),D.remove(),B.remove()}),cqr(p,ioe,!1,l),l.showBranches)r_i(p,d,l,r);t_i(p,ioe),cqr(p,ioe,!0,l),Ts.insertTitle(p,"gitTitleText",l.titleTopMargin??0,o.getDiagramTitle()),Nre(void 0,p,l.diagramPadding,l.useMaxWidth)},"draw"),a_i={draw:i_i},bqr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),s_i=new Set(["redux-color","redux-dark-color"]),o_i=new Set(["neo","neo-dark"]),l_i=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),c_i=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),u_i=I((e)=>{let{svgId:r}=e,i="";if(e.useGradient&&r)for(let a=0;a{switch(e.customType??e.type){case jh.NORMAL:return"commit-normal";case jh.REVERSE:return"commit-reverse";case jh.HIGHLIGHT:return"commit-highlight";case jh.MERGE:return"commit-merge";case jh.CHERRY_PICK:return"commit-cherry-pick";default:return"commit-normal"}},"getCommitClassType"),n_i=I((e,r,i,a)=>{let o={x:0,y:0};if(e.parents.length>0){let l=_qr(e.parents);if(l){let h=a.get(l)??o;if(r==="TB")return h.y+Q7;else if(r==="BT")return(a.get(e.id)??o).y-Q7;else return h.x+Q7}}else if(r==="TB")return vke;else if(r==="BT")return(a.get(e.id)??o).y-Q7;else return 0;return 0},"calculatePosition"),i_i=I((e,r,i)=>{let a=Ac==="BT"&&i?r:r+X7,o=f2.get(e.branch)?.pos,l=Ac==="TB"||Ac==="BT"?f2.get(e.branch)?.pos:a;if(l===void 0||o===void 0)throw Error(`Position were undefined for commit ${e.id}`);let h=wke.has(Ar().theme??""),d=Ac==="TB"||Ac==="BT"?a:o+(h?jdt/2+1:-2);return{x:l,y:d,posWithOffset:a}},"getCommitPosition"),pqr=I((e,r,i,a)=>{let o=e.append("g").attr("class","commit-bullets"),l=e.append("g").attr("class","commit-labels"),h=Ac==="TB"||Ac==="BT"?vke:0,d=[...r.keys()],p=a.parallelCommits??!1,m=I((v,w)=>{let T=r.get(v)?.seq,x=r.get(w)?.seq;return T!==void 0&&x!==void 0?T-x:0},"sortKeys"),y=d.sort(m);if(Ac==="BT"){if(p)jvi(y,r,h);y=y.reverse()}y.forEach((v)=>{let w=r.get(v);if(!w)throw Error(`Commit not found for key ${v}`);if(p)h=n_i(w,Ac,h,p2);let T=i_i(w,h,p);if(i){let x=r_i(w),k=w.customType??w.type,A=f2.get(w.branch)?.index??0;Jvi(o,w,T,x,A,k),e_i(l,w,T,h,a),t_i(l,w,T,h)}if(Ac==="TB"||Ac==="BT")p2.set(w.id,{x:T.x,y:T.posWithOffset});else p2.set(w.id,{x:T.posWithOffset,y:T.y});if(h=Ac==="BT"&&p?h+Q7:h+Q7+X7,h>OI)OI=h})},"drawCommits"),a_i=I((e,r,i,a,o)=>{let h=(Ac==="TB"||Ac==="BT"?i.xm.branch===h,"isOnBranchToGetCurve"),p=I((m)=>m.seq>e.seq&&m.seqp(m)&&d(m))},"shouldRerouteArrow"),loe=I((e,r,i=0)=>{let a=e+Math.abs(e-r)/2;if(i>5)return a;if(_ke.every((h)=>Math.abs(h-a)>=10))return _ke.push(a),a;let l=Math.abs(e-r);return loe(e,r-l/5,i+1)},"findLane"),s_i=I((e,r,i,a)=>{let{theme:o}=Ar(),l=Xdt.has(o??""),h=p2.get(r.id),d=p2.get(i.id);if(h===void 0||d===void 0)throw Error(`Commit positions not found for commits ${r.id} and ${i.id}`);let p=a_i(r,i,h,d,a),m="",y="",v=0,w=0,T=f2.get(i.branch)?.index;if(i.type===jh.MERGE&&r.id!==i.parents[0])T=f2.get(r.branch)?.index;let x;if(p){m="A 10 10, 0, 0, 0,",y="A 10 10, 0, 0, 1,",v=10,w=10;let k=h.yd.x)if(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",v=20,w=20,i.type===jh.MERGE&&r.id!==i.parents[0])x=`M ${h.x} ${h.y} L ${h.x} ${d.y-v} ${y} ${h.x-w} ${d.y} L ${d.x} ${d.y}`;else x=`M ${h.x} ${h.y} L ${d.x+v} ${h.y} ${m} ${d.x} ${h.y+w} L ${d.x} ${d.y}`;if(h.x===d.x)x=`M ${h.x} ${h.y} L ${d.x} ${d.y}`}else if(Ac==="BT"){if(h.xd.x)if(m="A 20 20, 0, 0, 0,",y="A 20 20, 0, 0, 1,",v=20,w=20,i.type===jh.MERGE&&r.id!==i.parents[0])x=`M ${h.x} ${h.y} L ${h.x} ${d.y+v} ${m} ${h.x-w} ${d.y} L ${d.x} ${d.y}`;else x=`M ${h.x} ${h.y} L ${d.x+v} ${h.y} ${y} ${d.x} ${h.y-w} L ${d.x} ${d.y}`;if(h.x===d.x)x=`M ${h.x} ${h.y} L ${d.x} ${d.y}`}else{if(h.yd.y)if(i.type===jh.MERGE&&r.id!==i.parents[0])x=`M ${h.x} ${h.y} L ${d.x-v} ${h.y} ${m} ${d.x} ${h.y-w} L ${d.x} ${d.y}`;else x=`M ${h.x} ${h.y} L ${h.x} ${d.y+v} ${y} ${h.x+w} ${d.y} L ${d.x} ${d.y}`;if(h.y===d.y)x=`M ${h.x} ${h.y} L ${d.x} ${d.y}`}if(x===void 0)throw Error("Line definition not found");e.append("path").attr("d",x).attr("class","arrow arrow"+yF(T,bF,l))},"drawArrow"),o_i=I((e,r)=>{let i=e.append("g").attr("class","commit-arrows");[...r.keys()].forEach((a)=>{let o=r.get(a);if(o.parents&&o.parents.length>0)o.parents.forEach((l)=>{s_i(i,r.get(l),o,r)})})},"drawArrows"),l_i=I((e,r,i,a)=>{let{look:o,theme:l,themeVariables:h}=Ar(),{dropShadow:d,THEME_COLOR_LIMIT:p}=h,m=wke.has(l??""),y=Xdt.has(l??""),v=e.append("g");r.forEach((w,T)=>{let x=yF(T,m?p:bF,y),k=f2.get(w.name)?.pos;if(k===void 0)throw Error(`Position not found for branch ${w.name}`);let A=Ac==="TB"||Ac==="BT"?k:m?k+jdt/2+1:k-2,R=v.append("line");if(R.attr("x1",0),R.attr("y1",A),R.attr("x2",OI),R.attr("y2",A),R.attr("class","branch branch"+x),Ac==="TB")R.attr("y1",vke),R.attr("x1",k),R.attr("y2",OI),R.attr("x2",k);else if(Ac==="BT")R.attr("y1",OI),R.attr("x1",k),R.attr("y2",vke),R.attr("x2",k);_ke.push(A);let N=w.name,L=vqr(N),B=v.insert("rect"),P=v.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+x);P.node().appendChild(L);let F=L.getBBox(),H=m?0:4,W=m?16:0,X=m?jdt:0;if(o==="neo")B.attr("data-look","neo");if(B.attr("class","branchLabelBkg label"+x).attr("style",o==="neo"?`filter:${m?`url(#${a}-drop-shadow)`:d}`:"").attr("rx",H).attr("ry",H).attr("x",-F.width-4-(i.rotateCommitLabel===!0?30:0)).attr("y",-F.height/2+10).attr("width",F.width+18+W).attr("height",F.height+4+X),P.attr("transform","translate("+(-F.width-14-(i.rotateCommitLabel===!0?30:0)+W/2)+", "+(A-F.height/2-2)+")"),Ac==="TB"){if(B.attr("x",k-F.width/2-10).attr("y",0),P.attr("transform","translate("+(k-F.width/2-5)+", 0)"),m)B.attr("transform",`translate(${-W/2-3}, ${-X-10})`),P.attr("transform","translate("+(k-F.width/2-5)+", "+(-X*2+7)+")")}else if(Ac==="BT"){if(B.attr("x",k-F.width/2-10).attr("y",OI),P.attr("transform","translate("+(k-F.width/2-5)+", "+OI+")"),m)B.attr("transform",`translate(${-W/2-3}, ${X+10})`),P.attr("transform","translate("+(k-F.width/2-5)+", "+(OI+X*2+4)+")")}else B.attr("transform","translate(-19, "+(A-12-X/2)+")")})},"drawBranches"),c_i=I(function(e,r,i,a,o){return f2.set(e,{pos:r,index:i}),r+=50+(o?40:0)+(Ac==="TB"||Ac==="BT"?a.width/2:0),r},"setBranchPosition"),u_i=I(function(e,r,i,a){Yvi(),Ze.debug("in gitgraph renderer",e+` +`,"id:",r,i);let o=a.db;if(!o.getConfig){Ze.error("getConfig method is not available on db");return}let l=o.getConfig(),h=l.rotateCommitLabel??!1;ooe=o.getCommits();let d=o.getBranchesAsObjArray();Ac=o.getDirection();let p=xn(`[id="${r}"]`),{look:m,theme:y,themeVariables:v}=Ar(),{useGradient:w,gradientStart:T,gradientStop:x,filterColor:k}=v;if(w){let R=p.append("defs").append("linearGradient").attr("id",r+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");R.append("stop").attr("offset","0%").attr("stop-color",T).attr("stop-opacity",1),R.append("stop").attr("offset","100%").attr("stop-color",x).attr("stop-opacity",1)}if(m==="neo"&&wke.has(y??""))p.append("defs").append("filter").attr("id",r+"-drop-shadow").attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",k);let A=0;if(d.forEach((R,N)=>{let L=vqr(R.name),B=p.append("g"),D=B.insert("g").attr("class","branchLabel"),P=D.insert("g").attr("class","label branch-label");P.node()?.appendChild(L);let F=L.getBBox();A=c_i(R.name,A,N,F,h),P.remove(),D.remove(),B.remove()}),pqr(p,ooe,!1,l),l.showBranches)l_i(p,d,l,r);o_i(p,ooe),pqr(p,ooe,!0,l),Ts.insertTitle(p,"gitTitleText",l.titleTopMargin??0,o.getDiagramTitle()),Dre(void 0,p,l.diagramPadding,l.useMaxWidth)},"draw"),h_i={draw:u_i},wqr=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),d_i=new Set(["redux-color","redux-dark-color"]),f_i=new Set(["neo","neo-dark"]),p_i=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),g_i=new Set(["redux","redux-dark","redux-color","redux-dark-color","neo","neo-dark"]),m_i=I((e)=>{let{svgId:r}=e,i="";if(e.useGradient&&r)for(let a=0;a{let r=ea(),{theme:i,themeVariables:a}=r,{borderColorArray:o}=a,l=bqr.has(i);if(o_i.has(i)){let h="";for(let d=0;d{let r=ea(),{theme:i,themeVariables:a}=r,{borderColorArray:o}=a,l=wqr.has(i);if(f_i.has(i)){let h="";for(let d=0;d`${Array.from({length:e.THEME_COLOR_LIMIT},(r,i)=>i).map((r)=>{let i=r%mqr;return` + `}return h}},"genColor"),y_i=I((e)=>`${Array.from({length:e.THEME_COLOR_LIMIT},(r,i)=>i).map((r)=>{let i=r%Eqr;return` .branch-label${r} { fill: ${e["gitBranchLabel"+i]}; } .commit${r} { stroke: ${e["git"+i]}; fill: ${e["git"+i]}; } .commit-highlight${r} { stroke: ${e["gitInv"+i]}; fill: ${e["gitInv"+i]}; } .label${r} { fill: ${e["git"+i]}; } .arrow${r} { stroke: ${e["git"+i]}; } `}).join(` -`)}`,"normalTheme"),f_i=I((e)=>{let r=ea(),{theme:i}=r,a=c_i.has(i);return` +`)}`,"normalTheme"),v_i=I((e)=>{let r=ea(),{theme:i}=r,a=g_i.has(i);return` .commit-id, .commit-msg, .branch-label { @@ -1697,7 +1697,7 @@ ${r}`;if(this.inline)return`{${a}}`;else return a}};ee(LHr,"renderInlineTag");ee font-family: var(--mermaid-font-family); } - ${a?h_i(e):d_i(e)} + ${a?b_i(e):y_i(e)} .branch { stroke-width: ${e.strokeWidth}; @@ -1728,7 +1728,7 @@ ${r}`;if(this.inline)return`{${a}}`;else return a}};ee(LHr,"renderInlineTag");ee .arrow { /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */ - stroke-width: ${bqr.has(i)?e.strokeWidth:8}; + stroke-width: ${wqr.has(i)?e.strokeWidth:8}; stroke-linecap: round; fill: none } @@ -1737,12 +1737,12 @@ ${r}`;if(this.inline)return`{${a}}`;else return a}};ee(LHr,"renderInlineTag");ee font-size: 18px; fill: ${e.textColor}; } -`},"getStyles"),p_i=f_i,yqr={parser:Fvi,db:fqr,renderer:a_i,styles:p_i}});var _qr=Cr(function(jdt,Kdt){(function(e,r){typeof jdt=="object"&&typeof Kdt<"u"?Kdt.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(jdt,function(){var e="day";return function(r,i,a){var o=function(d){return d.add(4-d.isoWeekday(),e)},l=i.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),e);var p,m,y,E,w=o(this),T=(p=this.isoWeekYear(),m=this.$u,y=(m?a.utc:a)().year(p).startOf("year"),E=4-y.isoWeekday(),y.isoWeekday()>4&&(E+=7),y.add(E,e));return w.diff(T,"week")+1},l.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var h=l.startOf;l.startOf=function(d,p){var m=this.$utils(),y=!!m.u(p)||p;return m.p(d)==="isoweek"?y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(d,p)}}})});var Eqr=Cr(function(Xdt,Qdt){(function(e,r){typeof Xdt=="object"&&typeof Qdt<"u"?Qdt.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(Xdt,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,h={},d=function(x){return(x=+x)+(x>68?1900:2000)},p=function(x){return function(k){this[x]=+k}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(k){if(!k)return 0;if(k==="Z")return 0;var A=k.match(/([+-]|\d\d)/g),R=60*A[1]+(+A[2]||0);return R===0?0:A[0]==="+"?-R:R}(x)}],y=function(x){var k=h[x];return k&&(k.indexOf?k:k.s.concat(k.f))},E=function(x,k){var A,R=h.meridiem;if(R){for(var N=1;N<=24;N+=1)if(x.indexOf(R(N,0,k))>-1){A=N>12;break}}else A=x===(k?"pm":"PM");return A},w={A:[l,function(x){this.afternoon=E(x,!1)}],a:[l,function(x){this.afternoon=E(x,!0)}],Q:[i,function(x){this.month=3*(x-1)+1}],S:[i,function(x){this.milliseconds=100*+x}],SS:[a,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[o,p("seconds")],ss:[o,p("seconds")],m:[o,p("minutes")],mm:[o,p("minutes")],H:[o,p("hours")],h:[o,p("hours")],HH:[o,p("hours")],hh:[o,p("hours")],D:[o,p("day")],DD:[a,p("day")],Do:[l,function(x){var k=h.ordinal,A=x.match(/\d+/);if(this.day=A[0],k)for(var R=1;R<=31;R+=1)k(R).replace(/\[|\]/g,"")===x&&(this.day=R)}],w:[o,p("week")],ww:[a,p("week")],M:[o,p("month")],MM:[a,p("month")],MMM:[l,function(x){var k=y("months"),A=(y("monthsShort")||k.map(function(R){return R.slice(0,3)})).indexOf(x)+1;if(A<1)throw Error();this.month=A%12||A}],MMMM:[l,function(x){var k=y("months").indexOf(x)+1;if(k<1)throw Error();this.month=k%12||k}],Y:[/[+-]?\d+/,p("year")],YY:[a,function(x){this.year=d(x)}],YYYY:[/\d{4}/,p("year")],Z:m,ZZ:m};function T(x){var k,A;k=x,A=h&&h.formats;for(var R=(x=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(H,K,Q){var Z=Q&&Q.toUpperCase();return K||A[Q]||e[Q]||A[Z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,j,te){return j||te.slice(1)})})).match(r),N=R.length,L=0;L-1)return new Date((W==="X"?1000:1)*X);var ne=T(W)(X),{year:ie,month:le,day:se,hours:he,minutes:ye,seconds:xe,milliseconds:Ie,zone:Ee,week:Ue}=ne,Me=new Date,Xe=se||(ie||le?1:Me.getDate()),je=ie||Me.getFullYear(),Qe=0;ie&&!le||(Qe=le>0?le-1:Me.getMonth());var St,pt=he||0,Vt=ye||0,Xt=xe||0,rr=Ie||0;return Ee?new Date(Date.UTC(je,Qe,Xe,pt,Vt,Xt,rr+60*Ee.offset*1000)):J?new Date(Date.UTC(je,Qe,Xe,pt,Vt,Xt,rr)):(St=new Date(je,Qe,Xe,pt,Vt,Xt,rr),Ue&&(St=z(St).week(Ue).toDate()),St)}catch(We){return new Date("")}}(B,F,D,A),this.init(),Z&&Z!==!0&&(this.$L=this.locale(Z).$L),Q&&B!=this.format(F)&&(this.$d=new Date("")),h={}}else if(F instanceof Array)for(var Y=F.length,j=1;j<=Y;j+=1){P[1]=F[j-1];var te=A.apply(this,P);if(te.isValid()){this.$d=te.$d,this.$L=te.$L,this.init();break}j===Y&&(this.$d=new Date(""))}else N.call(this,L)}}})});var wqr=Cr(function(Zdt,Jdt){(function(e,r){typeof Zdt=="object"&&typeof Jdt<"u"?Jdt.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(Zdt,function(){return function(e,r){var i=r.prototype,a=i.format;i.format=function(o){var l=this,h=this.$locale();if(!this.isValid())return a.bind(this)(o);var d=this.$utils(),p=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return h.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return h.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1000);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return a.bind(this)(p)}}})});var Sqr=Cr(function(eft,tft){(function(e,r){typeof eft=="object"&&typeof tft<"u"?tft.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(eft,function(){var e,r,i=1000,a=60000,o=3600000,l=86400000,h=31536000000,d=2628000000,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,y={years:h,months:d,days:l,hours:o,minutes:a,seconds:i,milliseconds:1,weeks:604800000},E=function(B){return B instanceof N},w=function(B,D,P){return new N(B,P,D.$l)},T=function(B){return r.p(B)+"s"},x=function(B){return B<0},k=function(B){return x(B)?Math.ceil(B):Math.floor(B)},A=function(B){return Math.abs(B)},R=function(B,D){return B?x(B)?{negative:!0,format:""+A(B)+D}:{negative:!1,format:""+B+D}:{negative:!1,format:""}},N=function(){function B(P,F,H){var K=this;if(this.$d={},this.$l=H,P===void 0&&(this.$ms=0,this.parseFromMilliseconds()),F)return w(P*y[T(F)],this);if(typeof P=="number")return this.$ms=P,this.parseFromMilliseconds(),this;if(typeof P=="object")return Object.keys(P).forEach(function(Y){K.$d[T(Y)]=P[Y]}),this.calMilliseconds(),this;if(typeof P=="string"){var Q=P.match(p);if(Q){var Z=Q.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=Z[0],this.$d.months=Z[1],this.$d.weeks=Z[2],this.$d.days=Z[3],this.$d.hours=Z[4],this.$d.minutes=Z[5],this.$d.seconds=Z[6],this.calMilliseconds(),this}}return this}var D=B.prototype;return D.calMilliseconds=function(){var P=this;this.$ms=Object.keys(this.$d).reduce(function(F,H){return F+(P.$d[H]||0)*y[H]},0)},D.parseFromMilliseconds=function(){var P=this.$ms;this.$d.years=k(P/h),P%=h,this.$d.months=k(P/d),P%=d,this.$d.days=k(P/l),P%=l,this.$d.hours=k(P/o),P%=o,this.$d.minutes=k(P/a),P%=a,this.$d.seconds=k(P/i),P%=i,this.$d.milliseconds=P},D.toISOString=function(){var P=R(this.$d.years,"Y"),F=R(this.$d.months,"M"),H=+this.$d.days||0;this.$d.weeks&&(H+=7*this.$d.weeks);var K=R(H,"D"),Q=R(this.$d.hours,"H"),Z=R(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var j=R(Y,"S"),te=P.negative||F.negative||K.negative||Q.negative||Z.negative||j.negative,X=Q.format||Z.format||j.format?"T":"",W=(te?"-":"")+"P"+P.format+F.format+K.format+X+Q.format+Z.format+j.format;return W==="P"||W==="-P"?"P0D":W},D.toJSON=function(){return this.toISOString()},D.format=function(P){var F=P||"YYYY-MM-DDTHH:mm:ss",H={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return F.replace(m,function(K,Q){return Q||String(H[K])})},D.as=function(P){return this.$ms/y[T(P)]},D.get=function(P){var F=this.$ms,H=T(P);return H==="milliseconds"?F%=1000:F=H==="weeks"?k(F/y[H]):this.$d[H],F||0},D.add=function(P,F,H){var K;return K=F?P*y[T(F)]:E(P)?P.$ms:w(P,this).$ms,w(this.$ms+K*(H?-1:1),this)},D.subtract=function(P,F){return this.add(P,F,!0)},D.locale=function(P){var F=this.clone();return F.$l=P,F},D.clone=function(){return w(this.$ms,this)},D.humanize=function(P){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!P)},D.valueOf=function(){return this.asMilliseconds()},D.milliseconds=function(){return this.get("milliseconds")},D.asMilliseconds=function(){return this.as("milliseconds")},D.seconds=function(){return this.get("seconds")},D.asSeconds=function(){return this.as("seconds")},D.minutes=function(){return this.get("minutes")},D.asMinutes=function(){return this.as("minutes")},D.hours=function(){return this.get("hours")},D.asHours=function(){return this.as("hours")},D.days=function(){return this.get("days")},D.asDays=function(){return this.as("days")},D.weeks=function(){return this.get("weeks")},D.asWeeks=function(){return this.as("weeks")},D.months=function(){return this.get("months")},D.asMonths=function(){return this.as("months")},D.years=function(){return this.get("years")},D.asYears=function(){return this.as("years")},B}(),L=function(B,D,P){return B.add(D.years()*P,"y").add(D.months()*P,"M").add(D.days()*P,"d").add(D.hours()*P,"h").add(D.minutes()*P,"m").add(D.seconds()*P,"s").add(D.milliseconds()*P,"ms")};return function(B,D,P){e=P,r=P().$utils(),P.duration=function(K,Q){var Z=P.locale();return w(K,{$l:Z},Q)},P.isDuration=E;var F=D.prototype.add,H=D.prototype.subtract;D.prototype.add=function(K,Q){return E(K)?L(this,K,1):F.bind(this)(K,Q)},D.prototype.subtract=function(K,Q){return E(K)?L(this,K,-1):H.bind(this)(K,Q)}}})});function mft(e,r,i){let a=!0;while(a)a=!1,i.forEach(function(o){let l="^\\s*"+o+"\\s*$",h=new RegExp(l);if(e[0].match(h))r[o]=!0,e.shift(1),a=!0})}var kqr,aw,Aqr,Rqr,Iqr,BY,Gqr,nft,g_i,Tqr,eA="",oft="",lft=void 0,cft="",$Y,UY,uft,hft,wke,GY="",dft="",Oqr,fft,PY="",soe=!1,pft=!1,gft="sunday",Ske="saturday",ift=0,m_i,b_i,y_i,v_i,__i,E_i,w_i,S_i,T_i,x_i,C_i,k_i,A_i,R_i,I_i,O_i,Nqr,N_i,L_i,M_i,D_i,P_i,B_i,F_i,$_i,Lqr,U_i,G_i,z_i,Mqr,V_i,Dqr,aft,Pqr,Bqr,_ke=0,FY,H_i,q_i,sft,Eke,hm,Fqr,Y_i,yF,W_i,xqr,j_i,$qr,K_i,Uqr,X_i,Q_i,Z_i,J_i,Cqr,e2i,RI,rft=1e4,t2i,r2i,n2i,i2i,zqr;var Vqr=Re(()=>{Ql();eo();Zs();Ja();dl();kqr=sv(xne(),1),aw=sv(e_e(),1),Aqr=sv(_qr(),1),Rqr=sv(Eqr(),1),Iqr=sv(wqr(),1),BY=sv(e_e(),1),Gqr=sv(Sqr(),1),nft=function(){var e=I(function(j,te,X,W){for(X=X||{},W=j.length;W--;X[j[W]]=te);return X},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],a=[1,27],o=[1,28],l=[1,29],h=[1,30],d=[1,31],p=[1,32],m=[1,33],y=[1,34],E=[1,9],w=[1,10],T=[1,11],x=[1,12],k=[1,13],A=[1,14],R=[1,15],N=[1,16],L=[1,19],B=[1,20],D=[1,21],P=[1,22],F=[1,23],H=[1,25],K=[1,35],Q={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:I(function(te,X,W,J,z,ne,ie){var le=ne.length-1;switch(z){case 1:return ne[le-1];case 2:this.$=[];break;case 3:ne[le-1].push(ne[le]),this.$=ne[le-1];break;case 4:case 5:this.$=ne[le];break;case 6:case 7:this.$=[];break;case 8:J.setWeekday("monday");break;case 9:J.setWeekday("tuesday");break;case 10:J.setWeekday("wednesday");break;case 11:J.setWeekday("thursday");break;case 12:J.setWeekday("friday");break;case 13:J.setWeekday("saturday");break;case 14:J.setWeekday("sunday");break;case 15:J.setWeekend("friday");break;case 16:J.setWeekend("saturday");break;case 17:J.setDateFormat(ne[le].substr(11)),this.$=ne[le].substr(11);break;case 18:J.enableInclusiveEndDates(),this.$=ne[le].substr(18);break;case 19:J.TopAxis(),this.$=ne[le].substr(8);break;case 20:J.setAxisFormat(ne[le].substr(11)),this.$=ne[le].substr(11);break;case 21:J.setTickInterval(ne[le].substr(13)),this.$=ne[le].substr(13);break;case 22:J.setExcludes(ne[le].substr(9)),this.$=ne[le].substr(9);break;case 23:J.setIncludes(ne[le].substr(9)),this.$=ne[le].substr(9);break;case 24:J.setTodayMarker(ne[le].substr(12)),this.$=ne[le].substr(12);break;case 27:J.setDiagramTitle(ne[le].substr(6)),this.$=ne[le].substr(6);break;case 28:this.$=ne[le].trim(),J.setAccTitle(this.$);break;case 29:case 30:this.$=ne[le].trim(),J.setAccDescription(this.$);break;case 31:J.addSection(ne[le].substr(8)),this.$=ne[le].substr(8);break;case 33:J.addTask(ne[le-1],ne[le]),this.$="task";break;case 34:this.$=ne[le-1],J.setClickEvent(ne[le-1],ne[le],null);break;case 35:this.$=ne[le-2],J.setClickEvent(ne[le-2],ne[le-1],ne[le]);break;case 36:this.$=ne[le-2],J.setClickEvent(ne[le-2],ne[le-1],null),J.setLink(ne[le-2],ne[le]);break;case 37:this.$=ne[le-3],J.setClickEvent(ne[le-3],ne[le-2],ne[le-1]),J.setLink(ne[le-3],ne[le]);break;case 38:this.$=ne[le-2],J.setClickEvent(ne[le-2],ne[le],null),J.setLink(ne[le-2],ne[le-1]);break;case 39:this.$=ne[le-3],J.setClickEvent(ne[le-3],ne[le-1],ne[le]),J.setLink(ne[le-3],ne[le-2]);break;case 40:this.$=ne[le-1],J.setLink(ne[le-1],ne[le]);break;case 41:case 47:this.$=ne[le-1]+" "+ne[le];break;case 42:case 43:case 45:this.$=ne[le-2]+" "+ne[le-1]+" "+ne[le];break;case 44:case 46:this.$=ne[le-3]+" "+ne[le-2]+" "+ne[le-1]+" "+ne[le];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:a,14:o,15:l,16:h,17:d,18:p,19:18,20:m,21:y,22:E,23:w,24:T,25:x,26:k,27:A,28:R,29:N,30:L,31:B,33:D,35:P,36:F,37:24,38:H,40:K},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:i,13:a,14:o,15:l,16:h,17:d,18:p,19:18,20:m,21:y,22:E,23:w,24:T,25:x,26:k,27:A,28:R,29:N,30:L,31:B,33:D,35:P,36:F,37:24,38:H,40:K},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:I(function(te,X){if(X.recoverable)this.trace(te);else{var W=Error(te);throw W.hash=X,W}},"parseError"),parse:I(function(te){var X=this,W=[0],J=[],z=[null],ne=[],ie=this.table,le="",se=0,he=0,ye=0,xe=2,Ie=1,Ee=ne.slice.call(arguments,1),Ue=Object.create(this.lexer),Me={yy:{}};for(var Xe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Xe))Me.yy[Xe]=this.yy[Xe];if(Ue.setInput(te,Me.yy),Me.yy.lexer=Ue,Me.yy.parser=this,typeof Ue.yylloc>"u")Ue.yylloc={};var je=Ue.yylloc;ne.push(je);var Qe=Ue.options&&Ue.options.ranges;if(typeof Me.yy.parseError==="function")this.parseError=Me.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function St(De){W.length=W.length-2*De,z.length=z.length-De,ne.length=ne.length-De}I(St,"popStack");function pt(){var De=J.pop()||Ue.lex()||Ie;if(typeof De!=="number"){if(De instanceof Array)J=De,De=J.pop();De=X.symbols_[De]||De}return De}I(pt,"lex");var Vt,Xt,rr,We,Nt,ct,bt={},Pe,Ge,qe,Ke;while(!0){if(rr=W[W.length-1],this.defaultActions[rr])We=this.defaultActions[rr];else{if(Vt===null||typeof Vt>"u")Vt=pt();We=ie[rr]&&ie[rr][Vt]}if(typeof We>"u"||!We.length||!We[0]){var Je="";Ke=[];for(Pe in ie[rr])if(this.terminals_[Pe]&&Pe>xe)Ke.push("'"+this.terminals_[Pe]+"'");if(Ue.showPosition)Je="Parse error on line "+(se+1)+`: -`+Ue.showPosition()+` -Expecting `+Ke.join(", ")+", got '"+(this.terminals_[Vt]||Vt)+"'";else Je="Parse error on line "+(se+1)+": Unexpected "+(Vt==Ie?"end of input":"'"+(this.terminals_[Vt]||Vt)+"'");this.parseError(Je,{text:Ue.match,token:this.terminals_[Vt]||Vt,line:Ue.yylineno,loc:je,expected:Ke})}if(We[0]instanceof Array&&We.length>1)throw Error("Parse Error: multiple actions possible at state: "+rr+", token: "+Vt);switch(We[0]){case 1:if(W.push(Vt),z.push(Ue.yytext),ne.push(Ue.yylloc),W.push(We[1]),Vt=null,!Xt){if(he=Ue.yyleng,le=Ue.yytext,se=Ue.yylineno,je=Ue.yylloc,ye>0)ye--}else Vt=Xt,Xt=null;break;case 2:if(Ge=this.productions_[We[1]][1],bt.$=z[z.length-Ge],bt._$={first_line:ne[ne.length-(Ge||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Ge||1)].first_column,last_column:ne[ne.length-1].last_column},Qe)bt._$.range=[ne[ne.length-(Ge||1)].range[0],ne[ne.length-1].range[1]];if(ct=this.performAction.apply(bt,[le,he,se,Me.yy,We[1],z,ne].concat(Ee)),typeof ct<"u")return ct;if(Ge)W=W.slice(0,-1*Ge*2),z=z.slice(0,-1*Ge),ne=ne.slice(0,-1*Ge);W.push(this.productions_[We[1]][0]),z.push(bt.$),ne.push(bt._$),qe=ie[W[W.length-2]][W[W.length-1]],W.push(qe);break;case 3:return!0}}return!0},"parse")},Z=function(){var j={EOF:1,parseError:I(function(X,W){if(this.yy.parser)this.yy.parser.parseError(X,W);else throw Error(X)},"parseError"),setInput:I(function(te,X){if(this.yy=X||this.yy||{},this._input=te,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var te=this._input[0];this.yytext+=te,this.yyleng++,this.offset++,this.match+=te,this.matched+=te;var X=te.match(/(?:\r\n?|\n).*/g);if(X)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),te},"input"),unput:I(function(te){var X=te.length,W=te.split(/(?:\r\n?|\n)/g);this._input=te+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-X),this.offset-=X;var J=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),W.length-1)this.yylineno-=W.length-1;var z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:W?(W.length===J.length?this.yylloc.first_column:0)+J[J.length-W.length].length-W[0].length:this.yylloc.first_column-X},this.options.ranges)this.yylloc.range=[z[0],z[0]+this.yyleng-X];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(te){this.unput(this.match.slice(te))},"less"),pastInput:I(function(){var te=this.matched.substr(0,this.matched.length-this.match.length);return(te.length>20?"...":"")+te.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var te=this.match;if(te.length<20)te+=this._input.substr(0,20-te.length);return(te.substr(0,20)+(te.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var te=this.pastInput(),X=Array(te.length+1).join("-");return te+this.upcomingInput()+` -`+X+"^"},"showPosition"),test_match:I(function(te,X){var W,J,z;if(this.options.backtrack_lexer){if(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)z.yylloc.range=this.yylloc.range.slice(0)}if(J=te[0].match(/(?:\r\n?|\n).*/g),J)this.yylineno+=J.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:J?J[J.length-1].length-J[J.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+te[0].length},this.yytext+=te[0],this.match+=te[0],this.matches=te,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(te[0].length),this.matched+=te[0],W=this.performAction.call(this,this.yy,this,X,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(W)return W;else if(this._backtrack){for(var ne in z)this[ne]=z[ne];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var te,X,W,J;if(!this._more)this.yytext="",this.match="";var z=this._currentRules();for(var ne=0;neX[0].length)){if(X=W,J=ne,this.options.backtrack_lexer)if(te=this.test_match(W,z[ne]),te!==!1)return te;else if(this._backtrack){X=!1;continue}else return!1;else if(!this.options.flex)break}if(X){if(te=this.test_match(X,z[J]),te!==!1)return te;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var X=this.next();if(X)return X;else return this.lex()},"lex"),begin:I(function(X){this.conditionStack.push(X)},"begin"),popState:I(function(){var X=this.conditionStack.length-1;if(X>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(X){if(X=this.conditionStack.length-1-Math.abs(X||0),X>=0)return this.conditionStack[X];else return"INITIAL"},"topState"),pushState:I(function(X){this.begin(X)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(X,W,J,z){var ne=z;switch(J){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return j}();Q.lexer=Z;function Y(){this.yy={}}return I(Y,"Parser"),Y.prototype=Q,Q.Parser=Y,new Y}();nft.parser=nft;g_i=nft;aw.default.extend(Aqr.default);aw.default.extend(Rqr.default);aw.default.extend(Iqr.default);Tqr={friday:5,saturday:6},$Y=[],UY=[],uft=new Map,hft=[],wke=[],Oqr=["active","done","crit","milestone","vert"],fft=[],m_i=I(function(){hft=[],wke=[],GY="",fft=[],_ke=0,sft=void 0,Eke=void 0,hm=[],eA="",oft="",dft="",lft=void 0,cft="",$Y=[],UY=[],soe=!1,pft=!1,ift=0,uft=new Map,PY="",qs(),gft="sunday",Ske="saturday"},"clear"),b_i=I(function(e){PY=e},"setDiagramId"),y_i=I(function(e){oft=e},"setAxisFormat"),v_i=I(function(){return oft},"getAxisFormat"),__i=I(function(e){lft=e},"setTickInterval"),E_i=I(function(){return lft},"getTickInterval"),w_i=I(function(e){cft=e},"setTodayMarker"),S_i=I(function(){return cft},"getTodayMarker"),T_i=I(function(e){eA=e},"setDateFormat"),x_i=I(function(){soe=!0},"enableInclusiveEndDates"),C_i=I(function(){return soe},"endDatesAreInclusive"),k_i=I(function(){pft=!0},"enableTopAxis"),A_i=I(function(){return pft},"topAxisEnabled"),R_i=I(function(e){dft=e},"setDisplayMode"),I_i=I(function(){return dft},"getDisplayMode"),O_i=I(function(){return eA},"getDateFormat"),Nqr=I((e,r)=>{let i=r.toLowerCase().split(/[\s,]+/).filter((a)=>a!=="");return[...new Set([...e,...i])]},"mergeTokens"),N_i=I(function(e){$Y=Nqr($Y,e)},"setIncludes"),L_i=I(function(){return $Y},"getIncludes"),M_i=I(function(e){UY=Nqr(UY,e)},"setExcludes"),D_i=I(function(){return UY},"getExcludes"),P_i=I(function(){return uft},"getLinks"),B_i=I(function(e){GY=e,hft.push(e)},"addSection"),F_i=I(function(){return hft},"getSections"),$_i=I(function(){let e=xqr(),r=10,i=0;while(!e&&id)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,h]},"fixTaskDates"),Dqr=I(function(e,r){Ze.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),aft=I(function(e,r,i){if(i=i.trim(),I((d)=>{let p=d.trim();return p==="x"||p==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(i))return new Date(Number(i));let l=/^after\s+(?[\d\w- ]+)/.exec(i);if(l!==null){let d=null,p=[],m=l.groups.ids.split(" ").filter((E)=>E!=="");for(let E of m){let w=yF(E);if(w===void 0){p.push(E);continue}if(!d||w.endTime>d.endTime)d=w}if(p.length>0)Dqr("after",p);if(d)return d.endTime;let y=new Date;return y.setHours(0,0,0,0),y}let h=aw.default(i,r.trim(),!0);if(h.isValid())return h.toDate();else{Ze.debug("Invalid date:"+i),Ze.debug("With date format:"+r.trim());let d=new Date(i);if(d===void 0||isNaN(d.getTime())||d.getFullYear()<-1e4||d.getFullYear()>1e4)throw Error("Invalid date:"+i);return d}},"getStartDate"),Pqr=I(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),Bqr=I(function(e,r,i,a=!1){i=i.trim();let l=/^until\s+(?[\d\w- ]+)/.exec(i);if(l!==null){let y=null,E=[],w=l.groups.ids.split(" ").filter((x)=>x!=="");for(let x of w){let k=yF(x);if(k===void 0){E.push(x);continue}if(!y||k.startTime0)Dqr("until",E);if(y)return y.startTime;let T=new Date;return T.setHours(0,0,0,0),T}let h=aw.default(i,r.trim(),!0);if(h.isValid()){if(a)h=h.add(1,"d");return h.toDate()}let d=aw.default(e),[p,m]=Pqr(i);if(Number.isNaN(p))Ze.warn(`Gantt: "${i}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let y=d.add(p,m);if(y.isValid())d=y}return d.toDate()},"getEndDate"),FY=I(function(e){if(e===void 0)return _ke=_ke+1,"task"+_ke;return e},"parseId"),H_i=I(function(e,r){let i;if(r.substr(0,1)===":")i=r.substr(1,r.length);else i=r;let a=i.split(","),o={};mft(a,o,Oqr);for(let h=0;h{window.open(i,"_self")}),uft.set(a,i)}),$qr(e,"clickable")},"setLink"),$qr=I(function(e,r){e.split(",").forEach(function(i){let a=yF(i);if(a!==void 0)a.classes.push(r)})},"setClass"),K_i=I(function(e,r,i){if(Ar().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{Ts.runFunc(r,...a)})},"setClickFun"),Uqr=I(function(e,r){fft.push(function(){let i=PY?`${PY}-${e}`:e,a=document.querySelector(`[id="${i}"]`);if(a!==null)a.addEventListener("click",function(){r()})},function(){let i=PY?`${PY}-${e}`:e,a=document.querySelector(`[id="${i}-text"]`);if(a!==null)a.addEventListener("click",function(){r()})})},"pushFun"),X_i=I(function(e,r,i){e.split(",").forEach(function(a){K_i(a,r,i)}),$qr(e,"clickable")},"setClickEvent"),Q_i=I(function(e){fft.forEach(function(r){r(e)})},"bindFunctions"),Z_i={getConfig:I(()=>Ar().gantt,"getConfig"),clear:m_i,setDateFormat:T_i,getDateFormat:O_i,enableInclusiveEndDates:x_i,endDatesAreInclusive:C_i,enableTopAxis:k_i,topAxisEnabled:A_i,setAxisFormat:y_i,getAxisFormat:v_i,setTickInterval:__i,getTickInterval:E_i,setTodayMarker:w_i,getTodayMarker:S_i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,setDiagramId:b_i,setDisplayMode:R_i,getDisplayMode:I_i,setAccDescription:Js,getAccDescription:lo,addSection:B_i,getSections:F_i,getTasks:$_i,addTask:Y_i,findTaskById:yF,addTaskOrg:W_i,setIncludes:N_i,getIncludes:L_i,setExcludes:M_i,getExcludes:D_i,setClickEvent:X_i,setLink:j_i,getLinks:P_i,bindFunctions:Q_i,parseDuration:Pqr,isInvalidDate:Lqr,setWeekday:U_i,getWeekday:G_i,setWeekend:z_i};I(mft,"getTaskTags");BY.default.extend(Gqr.default);J_i=I(function(){Ze.debug("Something is calling, setConf, remove the call")},"setConf"),Cqr={monday:pL,tuesday:F2e,wednesday:$2e,thursday:u3,friday:U2e,saturday:G2e,sunday:fC},e2i=I((e,r)=>{let i=[...e].map(()=>-1/0),a=[...e].sort((l,h)=>l.startTime-h.startTime||l.order-h.order),o=0;for(let l of a)for(let h=0;h=i[h]){if(i[h]=l.endTime,l.order=h+r,h>o)o=h;break}return o},"getMaxIntersections"),t2i=I(function(e,r,i,a){let o=Ar().gantt;a.db.setDiagramId(r);let l=Ar().securityLevel,h;if(l==="sandbox")h=xn("#i"+r);let d=l==="sandbox"?xn(h.nodes()[0].contentDocument.body):xn("body"),p=l==="sandbox"?h.nodes()[0].contentDocument:document,m=p.getElementById(r);if(RI=m.parentElement.offsetWidth,RI===void 0)RI=1200;if(o.useWidth!==void 0)RI=o.useWidth;let y=a.db.getTasks(),E=y.filter((Q)=>!Q.vert),w=[];for(let Q of E)w.push(Q.type);w=K(w);let T={},x=2*o.topPadding;if(a.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let Q={};for(let Y of E)if(Q[Y.section]===void 0)Q[Y.section]=[Y];else Q[Y.section].push(Y);let Z=0;for(let Y of Object.keys(Q)){let j=e2i(Q[Y],Z)+1;Z+=j,x+=j*(o.barHeight+o.barGap),T[Y]=j}}else{x+=E.length*(o.barHeight+o.barGap);for(let Q of w)T[Q]=E.filter((Z)=>Z.type===Q).length}m.setAttribute("viewBox","0 0 "+RI+" "+x);let k=d.select(`[id="${r}"]`),A=H2e().domain([K_e(y,function(Q){return Q.startTime}),j_e(y,function(Q){return Q.endTime})]).rangeRound([0,RI-o.leftPadding-o.rightPadding]);function R(Q,Z){let Y=Q.startTime,j=Z.startTime,te=0;if(Y>j)te=1;else if(Yhe.vert===ye.vert?0:he.vert?1:-1);let J=Q.filter((he)=>!he.vert),ne=[...new Set(J.map((he)=>he.order))].map((he)=>J.find((ye)=>ye.order===he));k.append("g").selectAll("rect").data(ne).enter().append("rect").attr("x",0).attr("y",function(he,ye){return ye=he.order,ye*Z+Y-2}).attr("width",function(){return W-o.rightPadding/2}).attr("height",Z).attr("class",function(he){for(let[ye,xe]of w.entries())if(he.type===xe)return"section section"+ye%o.numberSectionStyles;return"section section0"}).enter();let ie=k.append("g").selectAll("rect").data(Q).enter(),le=a.db.getLinks();if(ie.append("rect").attr("id",function(he){return r+"-"+he.id}).attr("rx",3).attr("ry",3).attr("x",function(he){if(he.milestone)return A(he.startTime)+j+0.5*(A(he.endTime)-A(he.startTime))-0.5*te;return A(he.startTime)+j}).attr("y",function(he,ye){if(ye=he.order,he.vert)return o.gridLineStartPadding;return ye*Z+Y}).attr("width",function(he){if(he.milestone)return te;if(he.vert)return 0.08*te;return A(he.renderEndTime||he.endTime)-A(he.startTime)}).attr("height",function(he){if(he.vert)return J.length*(o.barHeight+o.barGap)+o.barHeight*2;return te}).attr("transform-origin",function(he,ye){return ye=he.order,(A(he.startTime)+j+0.5*(A(he.endTime)-A(he.startTime))).toString()+"px "+(ye*Z+Y+0.5*te).toString()+"px"}).attr("class",function(he){let xe="";if(he.classes.length>0)xe=he.classes.join(" ");let Ie=0;for(let[Ue,Me]of w.entries())if(he.type===Me)Ie=Ue%o.numberSectionStyles;let Ee="";if(he.active)if(he.crit)Ee+=" activeCrit";else Ee=" active";else if(he.done)if(he.crit)Ee=" doneCrit";else Ee=" done";else if(he.crit)Ee+=" crit";if(Ee.length===0)Ee=" task";if(he.milestone)Ee=" milestone "+Ee;if(he.vert)Ee=" vert "+Ee;return Ee+=Ie,Ee+=" "+xe,"task"+Ee}),ie.append("text").attr("id",function(he){return r+"-"+he.id+"-text"}).text(function(he){return he.task}).attr("font-size",o.fontSize).attr("x",function(he){let ye=A(he.startTime),xe=A(he.renderEndTime||he.endTime);if(he.milestone)ye+=0.5*(A(he.endTime)-A(he.startTime))-0.5*te,xe=ye+te;if(he.vert)return A(he.startTime)+j;let Ie=this.getBBox().width;if(Ie>xe-ye)if(xe+Ie+1.5*o.leftPadding>W)return ye+j-5;else return xe+j+5;else return(xe-ye)/2+ye+j}).attr("y",function(he,ye){if(he.vert)return o.gridLineStartPadding+J.length*(o.barHeight+o.barGap)+60;return ye=he.order,ye*Z+o.barHeight/2+(o.fontSize/2-2)+Y}).attr("text-height",te).attr("class",function(he){let ye=A(he.startTime),xe=A(he.endTime);if(he.milestone)xe=ye+te;let Ie=this.getBBox().width,Ee="";if(he.classes.length>0)Ee=he.classes.join(" ");let Ue=0;for(let[Xe,je]of w.entries())if(he.type===je)Ue=Xe%o.numberSectionStyles;let Me="";if(he.active)if(he.crit)Me="activeCritText"+Ue;else Me="activeText"+Ue;if(he.done)if(he.crit)Me=Me+" doneCritText"+Ue;else Me=Me+" doneText"+Ue;else if(he.crit)Me=Me+" critText"+Ue;if(he.milestone)Me+=" milestoneText";if(he.vert)Me+=" vertText";if(Ie>xe-ye)if(xe+Ie+1.5*o.leftPadding>W)return Ee+" taskTextOutsideLeft taskTextOutside"+Ue+" "+Me;else return Ee+" taskTextOutsideRight taskTextOutside"+Ue+" "+Me+" width-"+Ie;else return Ee+" taskText taskText"+Ue+" "+Me+" width-"+Ie}),Ar().securityLevel==="sandbox"){let he;he=xn("#i"+r);let ye=he.nodes()[0].contentDocument;ie.filter(function(xe){return le.has(xe.id)}).each(function(xe){var Ie=ye.querySelector("#"+CSS.escape(r+"-"+xe.id)),Ee=ye.querySelector("#"+CSS.escape(r+"-"+xe.id+"-text"));let Ue=Ie.parentNode;var Me=ye.createElement("a");Me.setAttribute("xlink:href",le.get(xe.id)),Me.setAttribute("target","_top"),Ue.appendChild(Me),Me.appendChild(Ie),Me.appendChild(Ee)})}}I(L,"drawRects");function B(Q,Z,Y,j,te,X,W,J){if(W.length===0&&J.length===0)return;let z,ne;for(let{startTime:xe,endTime:Ie}of X){if(z===void 0||xene)ne=Ie}if(!z||!ne)return;if(BY.default(ne).diff(BY.default(z),"year")>5){Ze.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let ie=a.db.getDateFormat(),le=[],se=null,he=BY.default(z);while(he.valueOf()<=ne){if(a.db.isInvalidDate(he,ie,W,J))if(!se)se={start:he,end:he};else se.end=he;else if(se)le.push(se),se=null;he=he.add(1,"d")}k.append("g").selectAll("rect").data(le).enter().append("rect").attr("id",(xe)=>r+"-exclude-"+xe.start.format("YYYY-MM-DD")).attr("x",(xe)=>A(xe.start.startOf("day"))+Y).attr("y",o.gridLineStartPadding).attr("width",(xe)=>A(xe.end.endOf("day"))-A(xe.start.startOf("day"))).attr("height",te-Z-o.gridLineStartPadding).attr("transform-origin",function(xe,Ie){return(A(xe.start)+Y+0.5*(A(xe.end)-A(xe.start))).toString()+"px "+(Ie*Q+0.5*te).toString()+"px"}).attr("class","exclude-range")}I(B,"drawExcludeDays");function D(Q,Z,Y,j){if(Y<=0||Q>Z)return 1/0;let te=Z-Q,X=BY.default.duration({[j??"day"]:Y}).asMilliseconds();if(X<=0)return 1/0;return Math.ceil(te/X)}I(D,"getEstimatedTickCount");function P(Q,Z,Y,j){let te=a.db.getDateFormat(),X=a.db.getAxisFormat(),W;if(X)W=X;else if(te==="D")W="%d";else W=o.axisFormat??"%Y-%m-%d";let J=LXe(A).tickSize(-j+Z+o.gridLineStartPadding).tickFormat(UP(W)),ne=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(ne!==null){let ie=parseInt(ne[1],10);if(isNaN(ie)||ie<=0)Ze.warn(`Invalid tick interval value: "${ne[1]}". Skipping custom tick interval.`);else{let le=ne[2],se=a.db.getWeekday()||o.weekday,he=A.domain(),ye=he[0],xe=he[1],Ie=D(ye,xe,ie,le);if(Ie>rft)Ze.warn(`The tick interval "${ie}${le}" would generate ${Ie} ticks, which exceeds the maximum allowed (${rft}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(le){case"millisecond":J.ticks(l3.every(ie));break;case"second":J.ticks(HE.every(ie));break;case"minute":J.ticks(PR.every(ie));break;case"hour":J.ticks(BR.every(ie));break;case"day":J.ticks(qS.every(ie));break;case"week":J.ticks(Cqr[se].every(ie));break;case"month":J.ticks(FR.every(ie));break}}}if(k.append("g").attr("class","grid").attr("transform","translate("+Q+", "+(j-50)+")").call(J).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let ie=NXe(A).tickSize(-j+Z+o.gridLineStartPadding).tickFormat(UP(W));if(ne!==null){let le=parseInt(ne[1],10);if(isNaN(le)||le<=0)Ze.warn(`Invalid tick interval value: "${ne[1]}". Skipping custom tick interval.`);else{let se=ne[2],he=a.db.getWeekday()||o.weekday,ye=A.domain(),xe=ye[0],Ie=ye[1];if(D(xe,Ie,le,se)<=rft)switch(se){case"millisecond":ie.ticks(l3.every(le));break;case"second":ie.ticks(HE.every(le));break;case"minute":ie.ticks(PR.every(le));break;case"hour":ie.ticks(BR.every(le));break;case"day":ie.ticks(qS.every(le));break;case"week":ie.ticks(Cqr[he].every(le));break;case"month":ie.ticks(FR.every(le));break}}}k.append("g").attr("class","grid").attr("transform","translate("+Q+", "+Z+")").call(ie).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}I(P,"makeGrid");function F(Q,Z){let Y=0,j=Object.keys(T).map((te)=>[te,T[te]]);k.append("g").selectAll("text").data(j).enter().append(function(te){let X=te[0].split(ai.lineBreakRegex),W=-(X.length-1)/2,J=p.createElementNS("http://www.w3.org/2000/svg","text");J.setAttribute("dy",W+"em");for(let[z,ne]of X.entries()){let ie=p.createElementNS("http://www.w3.org/2000/svg","tspan");if(ie.setAttribute("alignment-baseline","central"),ie.setAttribute("x","10"),z>0)ie.setAttribute("dy","1em");ie.textContent=ne,J.appendChild(ie)}return J}).attr("x",10).attr("y",function(te,X){if(X>0)for(let W=0;W` +`},"getStyles"),__i=v_i,Sqr={parser:Hvi,db:yqr,renderer:h_i,styles:__i}});var xqr=Cr(function(Qdt,Zdt){(function(e,r){typeof Qdt=="object"&&typeof Zdt<"u"?Zdt.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=r()})(Qdt,function(){var e="day";return function(r,i,a){var o=function(d){return d.add(4-d.isoWeekday(),e)},l=i.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(d){if(!this.$utils().u(d))return this.add(7*(d-this.isoWeek()),e);var p,m,y,v,w=o(this),T=(p=this.isoWeekYear(),m=this.$u,y=(m?a.utc:a)().year(p).startOf("year"),v=4-y.isoWeekday(),y.isoWeekday()>4&&(v+=7),y.add(v,e));return w.diff(T,"week")+1},l.isoWeekday=function(d){return this.$utils().u(d)?this.day()||7:this.day(this.day()%7?d:d-7)};var h=l.startOf;l.startOf=function(d,p){var m=this.$utils(),y=!!m.u(p)||p;return m.p(d)==="isoweek"?y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):h.bind(this)(d,p)}}})});var Cqr=Cr(function(Jdt,eft){(function(e,r){typeof Jdt=="object"&&typeof eft<"u"?eft.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=r()})(Jdt,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,l=/\d*[^-_:/,()\s\d]+/,h={},d=function(x){return(x=+x)+(x>68?1900:2000)},p=function(x){return function(k){this[x]=+k}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=function(k){if(!k)return 0;if(k==="Z")return 0;var A=k.match(/([+-]|\d\d)/g),R=60*A[1]+(+A[2]||0);return R===0?0:A[0]==="+"?-R:R}(x)}],y=function(x){var k=h[x];return k&&(k.indexOf?k:k.s.concat(k.f))},v=function(x,k){var A,R=h.meridiem;if(R){for(var N=1;N<=24;N+=1)if(x.indexOf(R(N,0,k))>-1){A=N>12;break}}else A=x===(k?"pm":"PM");return A},w={A:[l,function(x){this.afternoon=v(x,!1)}],a:[l,function(x){this.afternoon=v(x,!0)}],Q:[i,function(x){this.month=3*(x-1)+1}],S:[i,function(x){this.milliseconds=100*+x}],SS:[a,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[o,p("seconds")],ss:[o,p("seconds")],m:[o,p("minutes")],mm:[o,p("minutes")],H:[o,p("hours")],h:[o,p("hours")],HH:[o,p("hours")],hh:[o,p("hours")],D:[o,p("day")],DD:[a,p("day")],Do:[l,function(x){var k=h.ordinal,A=x.match(/\d+/);if(this.day=A[0],k)for(var R=1;R<=31;R+=1)k(R).replace(/\[|\]/g,"")===x&&(this.day=R)}],w:[o,p("week")],ww:[a,p("week")],M:[o,p("month")],MM:[a,p("month")],MMM:[l,function(x){var k=y("months"),A=(y("monthsShort")||k.map(function(R){return R.slice(0,3)})).indexOf(x)+1;if(A<1)throw Error();this.month=A%12||A}],MMMM:[l,function(x){var k=y("months").indexOf(x)+1;if(k<1)throw Error();this.month=k%12||k}],Y:[/[+-]?\d+/,p("year")],YY:[a,function(x){this.year=d(x)}],YYYY:[/\d{4}/,p("year")],Z:m,ZZ:m};function T(x){var k,A;k=x,A=h&&h.formats;for(var R=(x=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(H,W,X){var Q=X&&X.toUpperCase();return W||A[X]||e[X]||A[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Y,K,J){return K||J.slice(1)})})).match(r),N=R.length,L=0;L-1)return new Date((j==="X"?1000:1)*Z);var ne=T(j)(Z),{year:ie,month:se,day:oe,hours:he,minutes:ye,seconds:Se,milliseconds:Ie,zone:Ee,week:ze}=ne,Me=new Date,Xe=oe||(ie||se?1:Me.getDate()),Ye=ie||Me.getFullYear(),Qe=0;ie&&!se||(Qe=se>0?se-1:Me.getMonth());var xt,dt=he||0,zt=ye||0,Kt=Se||0,rr=Ie||0;return Ee?new Date(Date.UTC(Ye,Qe,Xe,dt,zt,Kt,rr+60*Ee.offset*1000)):ee?new Date(Date.UTC(Ye,Qe,Xe,dt,zt,Kt,rr)):(xt=new Date(Ye,Qe,Xe,dt,zt,Kt,rr),ze&&(xt=z(xt).week(ze).toDate()),xt)}catch(je){return new Date("")}}(B,F,D,A),this.init(),Q&&Q!==!0&&(this.$L=this.locale(Q).$L),X&&B!=this.format(F)&&(this.$d=new Date("")),h={}}else if(F instanceof Array)for(var Y=F.length,K=1;K<=Y;K+=1){P[1]=F[K-1];var J=A.apply(this,P);if(J.isValid()){this.$d=J.$d,this.$L=J.$L,this.init();break}K===Y&&(this.$d=new Date(""))}else N.call(this,L)}}})});var kqr=Cr(function(tft,rft){(function(e,r){typeof tft=="object"&&typeof rft<"u"?rft.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=r()})(tft,function(){return function(e,r){var i=r.prototype,a=i.format;i.format=function(o){var l=this,h=this.$locale();if(!this.isValid())return a.bind(this)(o);var d=this.$utils(),p=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return h.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return h.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1000);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return a.bind(this)(p)}}})});var Aqr=Cr(function(nft,ift){(function(e,r){typeof nft=="object"&&typeof ift<"u"?ift.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_duration=r()})(nft,function(){var e,r,i=1000,a=60000,o=3600000,l=86400000,h=31536000000,d=2628000000,p=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,m=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,y={years:h,months:d,days:l,hours:o,minutes:a,seconds:i,milliseconds:1,weeks:604800000},v=function(B){return B instanceof N},w=function(B,D,P){return new N(B,P,D.$l)},T=function(B){return r.p(B)+"s"},x=function(B){return B<0},k=function(B){return x(B)?Math.ceil(B):Math.floor(B)},A=function(B){return Math.abs(B)},R=function(B,D){return B?x(B)?{negative:!0,format:""+A(B)+D}:{negative:!1,format:""+B+D}:{negative:!1,format:""}},N=function(){function B(P,F,H){var W=this;if(this.$d={},this.$l=H,P===void 0&&(this.$ms=0,this.parseFromMilliseconds()),F)return w(P*y[T(F)],this);if(typeof P=="number")return this.$ms=P,this.parseFromMilliseconds(),this;if(typeof P=="object")return Object.keys(P).forEach(function(Y){W.$d[T(Y)]=P[Y]}),this.calMilliseconds(),this;if(typeof P=="string"){var X=P.match(p);if(X){var Q=X.slice(2).map(function(Y){return Y!=null?Number(Y):0});return this.$d.years=Q[0],this.$d.months=Q[1],this.$d.weeks=Q[2],this.$d.days=Q[3],this.$d.hours=Q[4],this.$d.minutes=Q[5],this.$d.seconds=Q[6],this.calMilliseconds(),this}}return this}var D=B.prototype;return D.calMilliseconds=function(){var P=this;this.$ms=Object.keys(this.$d).reduce(function(F,H){return F+(P.$d[H]||0)*y[H]},0)},D.parseFromMilliseconds=function(){var P=this.$ms;this.$d.years=k(P/h),P%=h,this.$d.months=k(P/d),P%=d,this.$d.days=k(P/l),P%=l,this.$d.hours=k(P/o),P%=o,this.$d.minutes=k(P/a),P%=a,this.$d.seconds=k(P/i),P%=i,this.$d.milliseconds=P},D.toISOString=function(){var P=R(this.$d.years,"Y"),F=R(this.$d.months,"M"),H=+this.$d.days||0;this.$d.weeks&&(H+=7*this.$d.weeks);var W=R(H,"D"),X=R(this.$d.hours,"H"),Q=R(this.$d.minutes,"M"),Y=this.$d.seconds||0;this.$d.milliseconds&&(Y+=this.$d.milliseconds/1000,Y=Math.round(1000*Y)/1000);var K=R(Y,"S"),J=P.negative||F.negative||W.negative||X.negative||Q.negative||K.negative,Z=X.format||Q.format||K.format?"T":"",j=(J?"-":"")+"P"+P.format+F.format+W.format+Z+X.format+Q.format+K.format;return j==="P"||j==="-P"?"P0D":j},D.toJSON=function(){return this.toISOString()},D.format=function(P){var F=P||"YYYY-MM-DDTHH:mm:ss",H={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return F.replace(m,function(W,X){return X||String(H[W])})},D.as=function(P){return this.$ms/y[T(P)]},D.get=function(P){var F=this.$ms,H=T(P);return H==="milliseconds"?F%=1000:F=H==="weeks"?k(F/y[H]):this.$d[H],F||0},D.add=function(P,F,H){var W;return W=F?P*y[T(F)]:v(P)?P.$ms:w(P,this).$ms,w(this.$ms+W*(H?-1:1),this)},D.subtract=function(P,F){return this.add(P,F,!0)},D.locale=function(P){var F=this.clone();return F.$l=P,F},D.clone=function(){return w(this.$ms,this)},D.humanize=function(P){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!P)},D.valueOf=function(){return this.asMilliseconds()},D.milliseconds=function(){return this.get("milliseconds")},D.asMilliseconds=function(){return this.as("milliseconds")},D.seconds=function(){return this.get("seconds")},D.asSeconds=function(){return this.as("seconds")},D.minutes=function(){return this.get("minutes")},D.asMinutes=function(){return this.as("minutes")},D.hours=function(){return this.get("hours")},D.asHours=function(){return this.as("hours")},D.days=function(){return this.get("days")},D.asDays=function(){return this.as("days")},D.weeks=function(){return this.get("weeks")},D.asWeeks=function(){return this.as("weeks")},D.months=function(){return this.get("months")},D.asMonths=function(){return this.as("months")},D.years=function(){return this.get("years")},D.asYears=function(){return this.as("years")},B}(),L=function(B,D,P){return B.add(D.years()*P,"y").add(D.months()*P,"M").add(D.days()*P,"d").add(D.hours()*P,"h").add(D.minutes()*P,"m").add(D.seconds()*P,"s").add(D.milliseconds()*P,"ms")};return function(B,D,P){e=P,r=P().$utils(),P.duration=function(W,X){var Q=P.locale();return w(W,{$l:Q},X)},P.isDuration=v;var F=D.prototype.add,H=D.prototype.subtract;D.prototype.add=function(W,X){return v(W)?L(this,W,1):F.bind(this)(W,X)},D.prototype.subtract=function(W,X){return v(W)?L(this,W,-1):H.bind(this)(W,X)}}})});function vft(e,r,i){let a=!0;while(a)a=!1,i.forEach(function(o){let l="^\\s*"+o+"\\s*$",h=new RegExp(l);if(e[0].match(h))r[o]=!0,e.shift(1),a=!0})}var Nqr,aw,Lqr,Mqr,Dqr,UY,Yqr,sft,E_i,Rqr,tA="",uft="",hft=void 0,dft="",zY,VY,fft,pft,xke,HY="",gft="",Pqr,mft,$Y="",coe=!1,bft=!1,yft="sunday",Cke="saturday",oft=0,w_i,S_i,T_i,x_i,C_i,k_i,A_i,R_i,I_i,O_i,N_i,L_i,M_i,D_i,P_i,B_i,Bqr,F_i,$_i,U_i,G_i,z_i,V_i,H_i,q_i,Fqr,Y_i,W_i,j_i,$qr,K_i,Uqr,lft,Gqr,zqr,Ske=0,GY,X_i,Q_i,cft,Tke,hm,Vqr,Z_i,_F,J_i,Iqr,e2i,Hqr,t2i,qqr,r2i,n2i,i2i,a2i,Oqr,s2i,NI,aft=1e4,o2i,l2i,c2i,u2i,Wqr;var jqr=Re(()=>{Ql();eo();Zs();Ja();dl();Nqr=sv(Ane(),1),aw=sv(n_e(),1),Lqr=sv(xqr(),1),Mqr=sv(Cqr(),1),Dqr=sv(kqr(),1),UY=sv(n_e(),1),Yqr=sv(Aqr(),1),sft=function(){var e=I(function(K,J,Z,j){for(Z=Z||{},j=K.length;j--;Z[K[j]]=J);return Z},"o"),r=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],i=[1,26],a=[1,27],o=[1,28],l=[1,29],h=[1,30],d=[1,31],p=[1,32],m=[1,33],y=[1,34],v=[1,9],w=[1,10],T=[1,11],x=[1,12],k=[1,13],A=[1,14],R=[1,15],N=[1,16],L=[1,19],B=[1,20],D=[1,21],P=[1,22],F=[1,23],H=[1,25],W=[1,35],X={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:I(function(J,Z,j,ee,z,ne,ie){var se=ne.length-1;switch(z){case 1:return ne[se-1];case 2:this.$=[];break;case 3:ne[se-1].push(ne[se]),this.$=ne[se-1];break;case 4:case 5:this.$=ne[se];break;case 6:case 7:this.$=[];break;case 8:ee.setWeekday("monday");break;case 9:ee.setWeekday("tuesday");break;case 10:ee.setWeekday("wednesday");break;case 11:ee.setWeekday("thursday");break;case 12:ee.setWeekday("friday");break;case 13:ee.setWeekday("saturday");break;case 14:ee.setWeekday("sunday");break;case 15:ee.setWeekend("friday");break;case 16:ee.setWeekend("saturday");break;case 17:ee.setDateFormat(ne[se].substr(11)),this.$=ne[se].substr(11);break;case 18:ee.enableInclusiveEndDates(),this.$=ne[se].substr(18);break;case 19:ee.TopAxis(),this.$=ne[se].substr(8);break;case 20:ee.setAxisFormat(ne[se].substr(11)),this.$=ne[se].substr(11);break;case 21:ee.setTickInterval(ne[se].substr(13)),this.$=ne[se].substr(13);break;case 22:ee.setExcludes(ne[se].substr(9)),this.$=ne[se].substr(9);break;case 23:ee.setIncludes(ne[se].substr(9)),this.$=ne[se].substr(9);break;case 24:ee.setTodayMarker(ne[se].substr(12)),this.$=ne[se].substr(12);break;case 27:ee.setDiagramTitle(ne[se].substr(6)),this.$=ne[se].substr(6);break;case 28:this.$=ne[se].trim(),ee.setAccTitle(this.$);break;case 29:case 30:this.$=ne[se].trim(),ee.setAccDescription(this.$);break;case 31:ee.addSection(ne[se].substr(8)),this.$=ne[se].substr(8);break;case 33:ee.addTask(ne[se-1],ne[se]),this.$="task";break;case 34:this.$=ne[se-1],ee.setClickEvent(ne[se-1],ne[se],null);break;case 35:this.$=ne[se-2],ee.setClickEvent(ne[se-2],ne[se-1],ne[se]);break;case 36:this.$=ne[se-2],ee.setClickEvent(ne[se-2],ne[se-1],null),ee.setLink(ne[se-2],ne[se]);break;case 37:this.$=ne[se-3],ee.setClickEvent(ne[se-3],ne[se-2],ne[se-1]),ee.setLink(ne[se-3],ne[se]);break;case 38:this.$=ne[se-2],ee.setClickEvent(ne[se-2],ne[se],null),ee.setLink(ne[se-2],ne[se-1]);break;case 39:this.$=ne[se-3],ee.setClickEvent(ne[se-3],ne[se-1],ne[se]),ee.setLink(ne[se-3],ne[se-2]);break;case 40:this.$=ne[se-1],ee.setLink(ne[se-1],ne[se]);break;case 41:case 47:this.$=ne[se-1]+" "+ne[se];break;case 42:case 43:case 45:this.$=ne[se-2]+" "+ne[se-1]+" "+ne[se];break;case 44:case 46:this.$=ne[se-3]+" "+ne[se-2]+" "+ne[se-1]+" "+ne[se];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:i,13:a,14:o,15:l,16:h,17:d,18:p,19:18,20:m,21:y,22:v,23:w,24:T,25:x,26:k,27:A,28:R,29:N,30:L,31:B,33:D,35:P,36:F,37:24,38:H,40:W},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:36,11:17,12:i,13:a,14:o,15:l,16:h,17:d,18:p,19:18,20:m,21:y,22:v,23:w,24:T,25:x,26:k,27:A,28:R,29:N,30:L,31:B,33:D,35:P,36:F,37:24,38:H,40:W},e(r,[2,5]),e(r,[2,6]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,20]),e(r,[2,21]),e(r,[2,22]),e(r,[2,23]),e(r,[2,24]),e(r,[2,25]),e(r,[2,26]),e(r,[2,27]),{32:[1,37]},{34:[1,38]},e(r,[2,30]),e(r,[2,31]),e(r,[2,32]),{39:[1,39]},e(r,[2,8]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{41:[1,40],43:[1,41]},e(r,[2,4]),e(r,[2,28]),e(r,[2,29]),e(r,[2,33]),e(r,[2,34],{42:[1,42],43:[1,43]}),e(r,[2,40],{41:[1,44]}),e(r,[2,35],{43:[1,45]}),e(r,[2,36]),e(r,[2,38],{42:[1,46]}),e(r,[2,37]),e(r,[2,39])],defaultActions:{},parseError:I(function(J,Z){if(Z.recoverable)this.trace(J);else{var j=Error(J);throw j.hash=Z,j}},"parseError"),parse:I(function(J){var Z=this,j=[0],ee=[],z=[null],ne=[],ie=this.table,se="",oe=0,he=0,ye=0,Se=2,Ie=1,Ee=ne.slice.call(arguments,1),ze=Object.create(this.lexer),Me={yy:{}};for(var Xe in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Xe))Me.yy[Xe]=this.yy[Xe];if(ze.setInput(J,Me.yy),Me.yy.lexer=ze,Me.yy.parser=this,typeof ze.yylloc>"u")ze.yylloc={};var Ye=ze.yylloc;ne.push(Ye);var Qe=ze.options&&ze.options.ranges;if(typeof Me.yy.parseError==="function")this.parseError=Me.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function xt(De){j.length=j.length-2*De,z.length=z.length-De,ne.length=ne.length-De}I(xt,"popStack");function dt(){var De=ee.pop()||ze.lex()||Ie;if(typeof De!=="number"){if(De instanceof Array)ee=De,De=ee.pop();De=Z.symbols_[De]||De}return De}I(dt,"lex");var zt,Kt,rr,je,Nt,ct,bt={},Pe,Ue,qe,Ke;while(!0){if(rr=j[j.length-1],this.defaultActions[rr])je=this.defaultActions[rr];else{if(zt===null||typeof zt>"u")zt=dt();je=ie[rr]&&ie[rr][zt]}if(typeof je>"u"||!je.length||!je[0]){var Je="";Ke=[];for(Pe in ie[rr])if(this.terminals_[Pe]&&Pe>Se)Ke.push("'"+this.terminals_[Pe]+"'");if(ze.showPosition)Je="Parse error on line "+(oe+1)+`: +`+ze.showPosition()+` +Expecting `+Ke.join(", ")+", got '"+(this.terminals_[zt]||zt)+"'";else Je="Parse error on line "+(oe+1)+": Unexpected "+(zt==Ie?"end of input":"'"+(this.terminals_[zt]||zt)+"'");this.parseError(Je,{text:ze.match,token:this.terminals_[zt]||zt,line:ze.yylineno,loc:Ye,expected:Ke})}if(je[0]instanceof Array&&je.length>1)throw Error("Parse Error: multiple actions possible at state: "+rr+", token: "+zt);switch(je[0]){case 1:if(j.push(zt),z.push(ze.yytext),ne.push(ze.yylloc),j.push(je[1]),zt=null,!Kt){if(he=ze.yyleng,se=ze.yytext,oe=ze.yylineno,Ye=ze.yylloc,ye>0)ye--}else zt=Kt,Kt=null;break;case 2:if(Ue=this.productions_[je[1]][1],bt.$=z[z.length-Ue],bt._$={first_line:ne[ne.length-(Ue||1)].first_line,last_line:ne[ne.length-1].last_line,first_column:ne[ne.length-(Ue||1)].first_column,last_column:ne[ne.length-1].last_column},Qe)bt._$.range=[ne[ne.length-(Ue||1)].range[0],ne[ne.length-1].range[1]];if(ct=this.performAction.apply(bt,[se,he,oe,Me.yy,je[1],z,ne].concat(Ee)),typeof ct<"u")return ct;if(Ue)j=j.slice(0,-1*Ue*2),z=z.slice(0,-1*Ue),ne=ne.slice(0,-1*Ue);j.push(this.productions_[je[1]][0]),z.push(bt.$),ne.push(bt._$),qe=ie[j[j.length-2]][j[j.length-1]],j.push(qe);break;case 3:return!0}}return!0},"parse")},Q=function(){var K={EOF:1,parseError:I(function(Z,j){if(this.yy.parser)this.yy.parser.parseError(Z,j);else throw Error(Z)},"parseError"),setInput:I(function(J,Z){if(this.yy=Z||this.yy||{},this._input=J,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var J=this._input[0];this.yytext+=J,this.yyleng++,this.offset++,this.match+=J,this.matched+=J;var Z=J.match(/(?:\r\n?|\n).*/g);if(Z)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),J},"input"),unput:I(function(J){var Z=J.length,j=J.split(/(?:\r\n?|\n)/g);this._input=J+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Z),this.offset-=Z;var ee=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),j.length-1)this.yylineno-=j.length-1;var z=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:j?(j.length===ee.length?this.yylloc.first_column:0)+ee[ee.length-j.length].length-j[0].length:this.yylloc.first_column-Z},this.options.ranges)this.yylloc.range=[z[0],z[0]+this.yyleng-Z];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(J){this.unput(this.match.slice(J))},"less"),pastInput:I(function(){var J=this.matched.substr(0,this.matched.length-this.match.length);return(J.length>20?"...":"")+J.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var J=this.match;if(J.length<20)J+=this._input.substr(0,20-J.length);return(J.substr(0,20)+(J.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var J=this.pastInput(),Z=Array(J.length+1).join("-");return J+this.upcomingInput()+` +`+Z+"^"},"showPosition"),test_match:I(function(J,Z){var j,ee,z;if(this.options.backtrack_lexer){if(z={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)z.yylloc.range=this.yylloc.range.slice(0)}if(ee=J[0].match(/(?:\r\n?|\n).*/g),ee)this.yylineno+=ee.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ee?ee[ee.length-1].length-ee[ee.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+J[0].length},this.yytext+=J[0],this.match+=J[0],this.matches=J,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(J[0].length),this.matched+=J[0],j=this.performAction.call(this,this.yy,this,Z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(j)return j;else if(this._backtrack){for(var ne in z)this[ne]=z[ne];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var J,Z,j,ee;if(!this._more)this.yytext="",this.match="";var z=this._currentRules();for(var ne=0;neZ[0].length)){if(Z=j,ee=ne,this.options.backtrack_lexer)if(J=this.test_match(j,z[ne]),J!==!1)return J;else if(this._backtrack){Z=!1;continue}else return!1;else if(!this.options.flex)break}if(Z){if(J=this.test_match(Z,z[ee]),J!==!1)return J;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Z=this.next();if(Z)return Z;else return this.lex()},"lex"),begin:I(function(Z){this.conditionStack.push(Z)},"begin"),popState:I(function(){var Z=this.conditionStack.length-1;if(Z>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Z){if(Z=this.conditionStack.length-1-Math.abs(Z||0),Z>=0)return this.conditionStack[Z];else return"INITIAL"},"topState"),pushState:I(function(Z){this.begin(Z)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(Z,j,ee,z){var ne=z;switch(ee){case 0:return this.begin("open_directive"),"open_directive";break;case 1:return this.begin("acc_title"),31;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),33;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:break;case 9:break;case 10:break;case 11:return 10;case 12:break;case 13:break;case 14:this.begin("href");break;case 15:this.popState();break;case 16:return 43;case 17:this.begin("callbackname");break;case 18:this.popState();break;case 19:this.popState(),this.begin("callbackargs");break;case 20:return 41;case 21:this.popState();break;case 22:return 42;case 23:this.begin("click");break;case 24:this.popState();break;case 25:return 40;case 26:return 4;case 27:return 22;case 28:return 23;case 29:return 24;case 30:return 25;case 31:return 26;case 32:return 28;case 33:return 27;case 34:return 29;case 35:return 12;case 36:return 13;case 37:return 14;case 38:return 15;case 39:return 16;case 40:return 17;case 41:return 18;case 42:return 20;case 43:return 21;case 44:return"date";case 45:return 30;case 46:return"accDescription";case 47:return 36;case 48:return 38;case 49:return 39;case 50:return":";case 51:return 6;case 52:return"INVALID"}},"anonymous"),rules:[/^(?:%%\{)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:weekday\s+monday\b)/i,/^(?:weekday\s+tuesday\b)/i,/^(?:weekday\s+wednesday\b)/i,/^(?:weekday\s+thursday\b)/i,/^(?:weekday\s+friday\b)/i,/^(?:weekday\s+saturday\b)/i,/^(?:weekday\s+sunday\b)/i,/^(?:weekend\s+friday\b)/i,/^(?:weekend\s+saturday\b)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^\n]+)/i,/^(?:[^:\n]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[6,7],inclusive:!1},acc_descr:{rules:[4],inclusive:!1},acc_title:{rules:[2],inclusive:!1},callbackargs:{rules:[21,22],inclusive:!1},callbackname:{rules:[18,19,20],inclusive:!1},href:{rules:[15,16],inclusive:!1},click:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,17,23,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return K}();X.lexer=Q;function Y(){this.yy={}}return I(Y,"Parser"),Y.prototype=X,X.Parser=Y,new Y}();sft.parser=sft;E_i=sft;aw.default.extend(Lqr.default);aw.default.extend(Mqr.default);aw.default.extend(Dqr.default);Rqr={friday:5,saturday:6},zY=[],VY=[],fft=new Map,pft=[],xke=[],Pqr=["active","done","crit","milestone","vert"],mft=[],w_i=I(function(){pft=[],xke=[],HY="",mft=[],Ske=0,cft=void 0,Tke=void 0,hm=[],tA="",uft="",gft="",hft=void 0,dft="",zY=[],VY=[],coe=!1,bft=!1,oft=0,fft=new Map,$Y="",qs(),yft="sunday",Cke="saturday"},"clear"),S_i=I(function(e){$Y=e},"setDiagramId"),T_i=I(function(e){uft=e},"setAxisFormat"),x_i=I(function(){return uft},"getAxisFormat"),C_i=I(function(e){hft=e},"setTickInterval"),k_i=I(function(){return hft},"getTickInterval"),A_i=I(function(e){dft=e},"setTodayMarker"),R_i=I(function(){return dft},"getTodayMarker"),I_i=I(function(e){tA=e},"setDateFormat"),O_i=I(function(){coe=!0},"enableInclusiveEndDates"),N_i=I(function(){return coe},"endDatesAreInclusive"),L_i=I(function(){bft=!0},"enableTopAxis"),M_i=I(function(){return bft},"topAxisEnabled"),D_i=I(function(e){gft=e},"setDisplayMode"),P_i=I(function(){return gft},"getDisplayMode"),B_i=I(function(){return tA},"getDateFormat"),Bqr=I((e,r)=>{let i=r.toLowerCase().split(/[\s,]+/).filter((a)=>a!=="");return[...new Set([...e,...i])]},"mergeTokens"),F_i=I(function(e){zY=Bqr(zY,e)},"setIncludes"),$_i=I(function(){return zY},"getIncludes"),U_i=I(function(e){VY=Bqr(VY,e)},"setExcludes"),G_i=I(function(){return VY},"getExcludes"),z_i=I(function(){return fft},"getLinks"),V_i=I(function(e){HY=e,pft.push(e)},"addSection"),H_i=I(function(){return pft},"getSections"),q_i=I(function(){let e=Iqr(),r=10,i=0;while(!e&&id)throw Error("Failed to find a valid date that was not excluded by `excludes` after 10,000 iterations.")}e=e.add(1,"d")}return[r,h]},"fixTaskDates"),Uqr=I(function(e,r){Ze.warn(`Gantt: the "${e}" statement references unknown task id(s): ${r.join(", ")}. Make sure the referenced tasks exist and declare an id. Milestones need both an id and a duration, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`)},"warnAboutUnknownTaskIds"),lft=I(function(e,r,i){if(i=i.trim(),I((d)=>{let p=d.trim();return p==="x"||p==="X"},"isTimestampFormat")(r)&&/^\d+$/.test(i))return new Date(Number(i));let l=/^after\s+(?[\d\w- ]+)/.exec(i);if(l!==null){let d=null,p=[],m=l.groups.ids.split(" ").filter((v)=>v!=="");for(let v of m){let w=_F(v);if(w===void 0){p.push(v);continue}if(!d||w.endTime>d.endTime)d=w}if(p.length>0)Uqr("after",p);if(d)return d.endTime;let y=new Date;return y.setHours(0,0,0,0),y}let h=aw.default(i,r.trim(),!0);if(h.isValid())return h.toDate();else{Ze.debug("Invalid date:"+i),Ze.debug("With date format:"+r.trim());let d=new Date(i);if(d===void 0||isNaN(d.getTime())||d.getFullYear()<-1e4||d.getFullYear()>1e4)throw Error("Invalid date:"+i);return d}},"getStartDate"),Gqr=I(function(e){let r=/^(\d+(?:\.\d+)?)([Mdhmswy]|ms)$/.exec(e.trim());if(r!==null)return[Number.parseFloat(r[1]),r[2]];return[NaN,"ms"]},"parseDuration"),zqr=I(function(e,r,i,a=!1){i=i.trim();let l=/^until\s+(?[\d\w- ]+)/.exec(i);if(l!==null){let y=null,v=[],w=l.groups.ids.split(" ").filter((x)=>x!=="");for(let x of w){let k=_F(x);if(k===void 0){v.push(x);continue}if(!y||k.startTime0)Uqr("until",v);if(y)return y.startTime;let T=new Date;return T.setHours(0,0,0,0),T}let h=aw.default(i,r.trim(),!0);if(h.isValid()){if(a)h=h.add(1,"d");return h.toDate()}let d=aw.default(e),[p,m]=Gqr(i);if(Number.isNaN(p))Ze.warn(`Gantt: "${i}" is neither a valid date for the "${r.trim()}" date format nor a valid duration (e.g. "3d"), so it is ignored and the task gets a zero duration. Milestones need a duration too, e.g. "Milestone :milestone, m1, 2023-01-01, 0d".`);else{let y=d.add(p,m);if(y.isValid())d=y}return d.toDate()},"getEndDate"),GY=I(function(e){if(e===void 0)return Ske=Ske+1,"task"+Ske;return e},"parseId"),X_i=I(function(e,r){let i;if(r.substr(0,1)===":")i=r.substr(1,r.length);else i=r;let a=i.split(","),o={};vft(a,o,Pqr);for(let h=0;h{window.open(i,"_self")}),fft.set(a,i)}),Hqr(e,"clickable")},"setLink"),Hqr=I(function(e,r){e.split(",").forEach(function(i){let a=_F(i);if(a!==void 0)a.classes.push(r)})},"setClass"),t2i=I(function(e,r,i){if(Ar().securityLevel!=="loose")return;if(r===void 0)return;let a=[];if(typeof i==="string"){a=i.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{Ts.runFunc(r,...a)})},"setClickFun"),qqr=I(function(e,r){mft.push(function(){let i=$Y?`${$Y}-${e}`:e,a=document.querySelector(`[id="${i}"]`);if(a!==null)a.addEventListener("click",function(){r()})},function(){let i=$Y?`${$Y}-${e}`:e,a=document.querySelector(`[id="${i}-text"]`);if(a!==null)a.addEventListener("click",function(){r()})})},"pushFun"),r2i=I(function(e,r,i){e.split(",").forEach(function(a){t2i(a,r,i)}),Hqr(e,"clickable")},"setClickEvent"),n2i=I(function(e){mft.forEach(function(r){r(e)})},"bindFunctions"),i2i={getConfig:I(()=>Ar().gantt,"getConfig"),clear:w_i,setDateFormat:I_i,getDateFormat:B_i,enableInclusiveEndDates:O_i,endDatesAreInclusive:N_i,enableTopAxis:L_i,topAxisEnabled:M_i,setAxisFormat:T_i,getAxisFormat:x_i,setTickInterval:C_i,getTickInterval:k_i,setTodayMarker:A_i,getTodayMarker:R_i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,setDiagramId:S_i,setDisplayMode:D_i,getDisplayMode:P_i,setAccDescription:Js,getAccDescription:lo,addSection:V_i,getSections:H_i,getTasks:q_i,addTask:Z_i,findTaskById:_F,addTaskOrg:J_i,setIncludes:F_i,getIncludes:$_i,setExcludes:U_i,getExcludes:G_i,setClickEvent:r2i,setLink:e2i,getLinks:z_i,bindFunctions:n2i,parseDuration:Gqr,isInvalidDate:Fqr,setWeekday:Y_i,getWeekday:W_i,setWeekend:j_i};I(vft,"getTaskTags");UY.default.extend(Yqr.default);a2i=I(function(){Ze.debug("Something is calling, setConf, remove the call")},"setConf"),Oqr={monday:mL,tuesday:G2e,wednesday:z2e,thursday:h3,friday:V2e,saturday:H2e,sunday:gC},s2i=I((e,r)=>{let i=[...e].map(()=>-1/0),a=[...e].sort((l,h)=>l.startTime-h.startTime||l.order-h.order),o=0;for(let l of a)for(let h=0;h=i[h]){if(i[h]=l.endTime,l.order=h+r,h>o)o=h;break}return o},"getMaxIntersections"),o2i=I(function(e,r,i,a){let o=Ar().gantt;a.db.setDiagramId(r);let l=Ar().securityLevel,h;if(l==="sandbox")h=xn("#i"+r);let d=l==="sandbox"?xn(h.nodes()[0].contentDocument.body):xn("body"),p=l==="sandbox"?h.nodes()[0].contentDocument:document,m=p.getElementById(r);if(NI=m.parentElement.offsetWidth,NI===void 0)NI=1200;if(o.useWidth!==void 0)NI=o.useWidth;let y=a.db.getTasks(),v=y.filter((X)=>!X.vert),w=[];for(let X of v)w.push(X.type);w=W(w);let T={},x=2*o.topPadding;if(a.db.getDisplayMode()==="compact"||o.displayMode==="compact"){let X={};for(let Y of v)if(X[Y.section]===void 0)X[Y.section]=[Y];else X[Y.section].push(Y);let Q=0;for(let Y of Object.keys(X)){let K=s2i(X[Y],Q)+1;Q+=K,x+=K*(o.barHeight+o.barGap),T[Y]=K}}else{x+=v.length*(o.barHeight+o.barGap);for(let X of w)T[X]=v.filter((Q)=>Q.type===X).length}m.setAttribute("viewBox","0 0 "+NI+" "+x);let k=d.select(`[id="${r}"]`),A=W2e().domain([Z_e(y,function(X){return X.startTime}),Q_e(y,function(X){return X.endTime})]).rangeRound([0,NI-o.leftPadding-o.rightPadding]);function R(X,Q){let Y=X.startTime,K=Q.startTime,J=0;if(Y>K)J=1;else if(Yhe.vert===ye.vert?0:he.vert?1:-1);let ee=X.filter((he)=>!he.vert),ne=[...new Set(ee.map((he)=>he.order))].map((he)=>ee.find((ye)=>ye.order===he));k.append("g").selectAll("rect").data(ne).enter().append("rect").attr("x",0).attr("y",function(he,ye){return ye=he.order,ye*Q+Y-2}).attr("width",function(){return j-o.rightPadding/2}).attr("height",Q).attr("class",function(he){for(let[ye,Se]of w.entries())if(he.type===Se)return"section section"+ye%o.numberSectionStyles;return"section section0"}).enter();let ie=k.append("g").selectAll("rect").data(X).enter(),se=a.db.getLinks();if(ie.append("rect").attr("id",function(he){return r+"-"+he.id}).attr("rx",3).attr("ry",3).attr("x",function(he){if(he.milestone)return A(he.startTime)+K+0.5*(A(he.endTime)-A(he.startTime))-0.5*J;return A(he.startTime)+K}).attr("y",function(he,ye){if(ye=he.order,he.vert)return o.gridLineStartPadding;return ye*Q+Y}).attr("width",function(he){if(he.milestone)return J;if(he.vert)return 0.08*J;return A(he.renderEndTime||he.endTime)-A(he.startTime)}).attr("height",function(he){if(he.vert)return ee.length*(o.barHeight+o.barGap)+o.barHeight*2;return J}).attr("transform-origin",function(he,ye){return ye=he.order,(A(he.startTime)+K+0.5*(A(he.endTime)-A(he.startTime))).toString()+"px "+(ye*Q+Y+0.5*J).toString()+"px"}).attr("class",function(he){let Se="";if(he.classes.length>0)Se=he.classes.join(" ");let Ie=0;for(let[ze,Me]of w.entries())if(he.type===Me)Ie=ze%o.numberSectionStyles;let Ee="";if(he.active)if(he.crit)Ee+=" activeCrit";else Ee=" active";else if(he.done)if(he.crit)Ee=" doneCrit";else Ee=" done";else if(he.crit)Ee+=" crit";if(Ee.length===0)Ee=" task";if(he.milestone)Ee=" milestone "+Ee;if(he.vert)Ee=" vert "+Ee;return Ee+=Ie,Ee+=" "+Se,"task"+Ee}),ie.append("text").attr("id",function(he){return r+"-"+he.id+"-text"}).text(function(he){return he.task}).attr("font-size",o.fontSize).attr("x",function(he){let ye=A(he.startTime),Se=A(he.renderEndTime||he.endTime);if(he.milestone)ye+=0.5*(A(he.endTime)-A(he.startTime))-0.5*J,Se=ye+J;if(he.vert)return A(he.startTime)+K;let Ie=this.getBBox().width;if(Ie>Se-ye)if(Se+Ie+1.5*o.leftPadding>j)return ye+K-5;else return Se+K+5;else return(Se-ye)/2+ye+K}).attr("y",function(he,ye){if(he.vert)return o.gridLineStartPadding+ee.length*(o.barHeight+o.barGap)+60;return ye=he.order,ye*Q+o.barHeight/2+(o.fontSize/2-2)+Y}).attr("text-height",J).attr("class",function(he){let ye=A(he.startTime),Se=A(he.endTime);if(he.milestone)Se=ye+J;let Ie=this.getBBox().width,Ee="";if(he.classes.length>0)Ee=he.classes.join(" ");let ze=0;for(let[Xe,Ye]of w.entries())if(he.type===Ye)ze=Xe%o.numberSectionStyles;let Me="";if(he.active)if(he.crit)Me="activeCritText"+ze;else Me="activeText"+ze;if(he.done)if(he.crit)Me=Me+" doneCritText"+ze;else Me=Me+" doneText"+ze;else if(he.crit)Me=Me+" critText"+ze;if(he.milestone)Me+=" milestoneText";if(he.vert)Me+=" vertText";if(Ie>Se-ye)if(Se+Ie+1.5*o.leftPadding>j)return Ee+" taskTextOutsideLeft taskTextOutside"+ze+" "+Me;else return Ee+" taskTextOutsideRight taskTextOutside"+ze+" "+Me+" width-"+Ie;else return Ee+" taskText taskText"+ze+" "+Me+" width-"+Ie}),Ar().securityLevel==="sandbox"){let he;he=xn("#i"+r);let ye=he.nodes()[0].contentDocument;ie.filter(function(Se){return se.has(Se.id)}).each(function(Se){var Ie=ye.querySelector("#"+CSS.escape(r+"-"+Se.id)),Ee=ye.querySelector("#"+CSS.escape(r+"-"+Se.id+"-text"));let ze=Ie.parentNode;var Me=ye.createElement("a");Me.setAttribute("xlink:href",se.get(Se.id)),Me.setAttribute("target","_top"),ze.appendChild(Me),Me.appendChild(Ie),Me.appendChild(Ee)})}}I(L,"drawRects");function B(X,Q,Y,K,J,Z,j,ee){if(j.length===0&&ee.length===0)return;let z,ne;for(let{startTime:Se,endTime:Ie}of Z){if(z===void 0||Sene)ne=Ie}if(!z||!ne)return;if(UY.default(ne).diff(UY.default(z),"year")>5){Ze.warn("The difference between the min and max time is more than 5 years. This will cause performance issues. Skipping drawing exclude days.");return}let ie=a.db.getDateFormat(),se=[],oe=null,he=UY.default(z);while(he.valueOf()<=ne){if(a.db.isInvalidDate(he,ie,j,ee))if(!oe)oe={start:he,end:he};else oe.end=he;else if(oe)se.push(oe),oe=null;he=he.add(1,"d")}k.append("g").selectAll("rect").data(se).enter().append("rect").attr("id",(Se)=>r+"-exclude-"+Se.start.format("YYYY-MM-DD")).attr("x",(Se)=>A(Se.start.startOf("day"))+Y).attr("y",o.gridLineStartPadding).attr("width",(Se)=>A(Se.end.endOf("day"))-A(Se.start.startOf("day"))).attr("height",J-Q-o.gridLineStartPadding).attr("transform-origin",function(Se,Ie){return(A(Se.start)+Y+0.5*(A(Se.end)-A(Se.start))).toString()+"px "+(Ie*X+0.5*J).toString()+"px"}).attr("class","exclude-range")}I(B,"drawExcludeDays");function D(X,Q,Y,K){if(Y<=0||X>Q)return 1/0;let J=Q-X,Z=UY.default.duration({[K??"day"]:Y}).asMilliseconds();if(Z<=0)return 1/0;return Math.ceil(J/Z)}I(D,"getEstimatedTickCount");function P(X,Q,Y,K){let J=a.db.getDateFormat(),Z=a.db.getAxisFormat(),j;if(Z)j=Z;else if(J==="D")j="%d";else j=o.axisFormat??"%Y-%m-%d";let ee=PXe(A).tickSize(-K+Q+o.gridLineStartPadding).tickFormat(zP(j)),ne=/^([1-9]\d*)(millisecond|second|minute|hour|day|week|month)$/.exec(a.db.getTickInterval()||o.tickInterval);if(ne!==null){let ie=parseInt(ne[1],10);if(isNaN(ie)||ie<=0)Ze.warn(`Invalid tick interval value: "${ne[1]}". Skipping custom tick interval.`);else{let se=ne[2],oe=a.db.getWeekday()||o.weekday,he=A.domain(),ye=he[0],Se=he[1],Ie=D(ye,Se,ie,se);if(Ie>aft)Ze.warn(`The tick interval "${ie}${se}" would generate ${Ie} ticks, which exceeds the maximum allowed (${aft}). This may indicate an invalid date or time range. Skipping custom tick interval.`);else switch(se){case"millisecond":ee.ticks(c3.every(ie));break;case"second":ee.ticks(HE.every(ie));break;case"minute":ee.ticks($R.every(ie));break;case"hour":ee.ticks(UR.every(ie));break;case"day":ee.ticks(YS.every(ie));break;case"week":ee.ticks(Oqr[oe].every(ie));break;case"month":ee.ticks(GR.every(ie));break}}}if(k.append("g").attr("class","grid").attr("transform","translate("+X+", "+(K-50)+")").call(ee).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em"),a.db.topAxisEnabled()||o.topAxis){let ie=DXe(A).tickSize(-K+Q+o.gridLineStartPadding).tickFormat(zP(j));if(ne!==null){let se=parseInt(ne[1],10);if(isNaN(se)||se<=0)Ze.warn(`Invalid tick interval value: "${ne[1]}". Skipping custom tick interval.`);else{let oe=ne[2],he=a.db.getWeekday()||o.weekday,ye=A.domain(),Se=ye[0],Ie=ye[1];if(D(Se,Ie,se,oe)<=aft)switch(oe){case"millisecond":ie.ticks(c3.every(se));break;case"second":ie.ticks(HE.every(se));break;case"minute":ie.ticks($R.every(se));break;case"hour":ie.ticks(UR.every(se));break;case"day":ie.ticks(YS.every(se));break;case"week":ie.ticks(Oqr[he].every(se));break;case"month":ie.ticks(GR.every(se));break}}}k.append("g").attr("class","grid").attr("transform","translate("+X+", "+Q+")").call(ie).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10)}}I(P,"makeGrid");function F(X,Q){let Y=0,K=Object.keys(T).map((J)=>[J,T[J]]);k.append("g").selectAll("text").data(K).enter().append(function(J){let Z=J[0].split(ai.lineBreakRegex),j=-(Z.length-1)/2,ee=p.createElementNS("http://www.w3.org/2000/svg","text");ee.setAttribute("dy",j+"em");for(let[z,ne]of Z.entries()){let ie=p.createElementNS("http://www.w3.org/2000/svg","tspan");if(ie.setAttribute("alignment-baseline","central"),ie.setAttribute("x","10"),z>0)ie.setAttribute("dy","1em");ie.textContent=ne,ee.appendChild(ie)}return ee}).attr("x",10).attr("y",function(J,Z){if(Z>0)for(let j=0;j` .mermaid-main-font { font-family: ${e.fontFamily}; } @@ -2028,8 +2028,8 @@ Expecting `+Ke.join(", ")+", got '"+(this.terminals_[Vt]||Vt)+"'";else Je="Parse fill: ${e.titleColor||e.textColor}; font-family: ${e.fontFamily}; } -`,"getStyles"),i2i=n2i,zqr={parser:g_i,db:Z_i,renderer:r2i,styles:i2i}});var a2i,s2i,o2i,l2i,c2i,u2i,Hqr;var qqr=Re(()=>{A0();eo();Zs();Ja();rb();a2i={parse:I(async(e)=>{let r=await lp("info",e);Ze.debug(r)},"parse")},s2i={version:"12.2.0"},o2i=I(()=>s2i.version,"getVersion"),l2i={getVersion:o2i},c2i=I((e,r,i)=>{Ze.debug(`rendering info diagram -`+e);let a=Ou(r);Bl(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),u2i={draw:c2i},Hqr={parser:a2i,db:l2i,renderer:u2i}});var Yqr,bft,Tke,yft,h2i,d2i,f2i,p2i,g2i,m2i,b2i,Wqr,y2i,v2i,_2i,E2i,w2i,S2i,T2i,jqr;var Kqr=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();dl();Yqr=Fs.pie,bft={sections:new Map,showData:!1,config:Yqr},Tke=bft.sections,yft=bft.showData,h2i=structuredClone(Yqr),d2i=I(()=>structuredClone(h2i),"getConfig"),f2i=I(()=>{Tke=new Map,yft=bft.showData,qs()},"clear"),p2i=I(({label:e,value:r})=>{if(r<0)throw Error(`"${e}" has invalid value: ${r}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!Tke.has(e))Tke.set(e,r),Ze.debug(`added new section: ${e}, with value: ${r}`)},"addSection"),g2i=I(()=>Tke,"getSections"),m2i=I((e)=>{yft=e},"setShowData"),b2i=I(()=>yft,"getShowData"),Wqr={getConfig:d2i,clear:f2i,setDiagramTitle:_o,getDiagramTitle:fo,setAccTitle:Ys,getAccTitle:oo,setAccDescription:Js,getAccDescription:lo,addSection:p2i,getSections:g2i,setShowData:m2i,getShowData:b2i},y2i=I((e,r)=>{Sh(e,r),r.setShowData(e.showData),e.sections.map(r.addSection)},"populateDb"),v2i={parse:I(async(e)=>{let r=await lp("pie",e);Ze.debug(r),y2i(r,Wqr)},"parse")},_2i=I((e)=>` +`,"getStyles"),u2i=c2i,Wqr={parser:E_i,db:i2i,renderer:l2i,styles:u2i}});var h2i,d2i,f2i,p2i,g2i,m2i,Kqr;var Xqr=Re(()=>{A0();eo();Zs();Ja();rb();h2i={parse:I(async(e)=>{let r=await lp("info",e);Ze.debug(r)},"parse")},d2i={version:"12.2.0"},f2i=I(()=>d2i.version,"getVersion"),p2i={getVersion:f2i},g2i=I((e,r,i)=>{Ze.debug(`rendering info diagram +`+e);let a=Ou(r);Bl(a,100,400,!0),a.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${i}`)},"draw"),m2i={draw:g2i},Kqr={parser:h2i,db:p2i,renderer:m2i}});var Qqr,_ft,kke,Eft,b2i,y2i,v2i,_2i,E2i,w2i,S2i,Zqr,T2i,x2i,C2i,k2i,A2i,R2i,I2i,Jqr;var eYr=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();dl();Qqr=Fs.pie,_ft={sections:new Map,showData:!1,config:Qqr},kke=_ft.sections,Eft=_ft.showData,b2i=structuredClone(Qqr),y2i=I(()=>structuredClone(b2i),"getConfig"),v2i=I(()=>{kke=new Map,Eft=_ft.showData,qs()},"clear"),_2i=I(({label:e,value:r})=>{if(r<0)throw Error(`"${e}" has invalid value: ${r}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);if(!kke.has(e))kke.set(e,r),Ze.debug(`added new section: ${e}, with value: ${r}`)},"addSection"),E2i=I(()=>kke,"getSections"),w2i=I((e)=>{Eft=e},"setShowData"),S2i=I(()=>Eft,"getShowData"),Zqr={getConfig:y2i,clear:v2i,setDiagramTitle:_o,getDiagramTitle:fo,setAccTitle:Ys,getAccTitle:oo,setAccDescription:Js,getAccDescription:lo,addSection:_2i,getSections:E2i,setShowData:w2i,getShowData:S2i},T2i=I((e,r)=>{Sh(e,r),r.setShowData(e.showData),e.sections.map(r.addSection)},"populateDb"),x2i={parse:I(async(e)=>{let r=await lp("pie",e);Ze.debug(r),T2i(r,Zqr)},"parse")},C2i=I((e)=>` .pieCircle{ stroke: ${e.pieStrokeColor}; stroke-width : ${e.pieStrokeWidth}; @@ -2066,25 +2066,25 @@ Expecting `+Ke.join(", ")+", got '"+(this.terminals_[Vt]||Vt)+"'";else Je="Parse font-family: ${e.fontFamily}; font-size: ${e.pieLegendTextSize}; } -`,"getStyles"),E2i=_2i,w2i=I((e)=>{let r=[...e.values()].reduce((o,l)=>o+l,0),i=[...e.entries()].map(([o,l])=>({label:o,value:l})).filter((o)=>o.value/r*100>=1);return K2e().value((o)=>o.value).sort(null)(i)},"createPieArcs"),S2i=I((e,r,i,a)=>{Ze.debug(`rendering pie chart -`+e);let o=a.db,l=Ar(),h=bc(o.getConfig(),l.pie),d=40,p=18,m=4,y=450,E=y,w=Ou(r),T=w.append("g");T.attr("transform","translate("+E/2+","+y/2+")");let{themeVariables:x}=l,[k]=W_(x.pieOuterStrokeWidth);k??=2;let{legendPosition:A,textPosition:R}=h,N=h.donutHole>0&&h.donutHole<=0.9?h.donutHole:0,L=Math.min(E,y)/2-d,B=mC().innerRadius(N*L).outerRadius(L),D=mC().innerRadius(L*R).outerRadius(L*R),P=T.append("g");P.append("circle").attr("cx",0).attr("cy",0).attr("r",L+k/2).attr("class","pieOuterCircle");let F=o.getSections(),H=w2i(F),K=[x.pie1,x.pie2,x.pie3,x.pie4,x.pie5,x.pie6,x.pie7,x.pie8,x.pie9,x.pie10,x.pie11,x.pie12],Q=0;F.forEach((Ee)=>{Q+=Ee});let Z=H.filter((Ee)=>(Ee.data.value/Q*100).toFixed(0)!=="0"),Y=VE(K).domain([...F.keys()]);P.selectAll("mySlices").data(Z).enter().append("path").attr("d",B).attr("fill",(Ee)=>Y(Ee.data.label)).attr("class",(Ee)=>{let Ue="pieCircle";if(h.highlightSlice==="hover")Ue+=" highlightedOnHover";else if(h.highlightSlice===Ee.data.label)Ue+=" highlighted";return Ue}),P.selectAll("mySlices").data(Z).enter().append("text").text((Ee)=>(Ee.data.value/Q*100).toFixed(0)+"%").attr("transform",(Ee)=>"translate("+D.centroid(Ee)+")").style("text-anchor","middle").attr("class","slice");let j=T.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-(y-50)/2).attr("class","pieTitleText"),te=[...F.entries()].map(([Ee,Ue])=>({label:Ee,value:Ue})),X=T.selectAll(".legend").data(te).enter().append("g").attr("class","legend");X.append("rect").attr("width",p).attr("height",p).style("fill",(Ee)=>Y(Ee.label)).style("stroke",(Ee)=>Y(Ee.label)),X.append("text").attr("x",p+m).attr("y",p-m).text((Ee)=>{if(o.getShowData())return`${Ee.label} [${Ee.value}]`;return Ee.label});let W=Math.max(...X.selectAll("text").nodes().map((Ee)=>Ee?.getBoundingClientRect().width??0)),J=y,z=E+d,ne=p+m,ie=te.length*ne;switch(A){case"center":X.attr("transform",(Ee,Ue)=>{let Me=ne*te.length/2,Xe=-W/2-(p+m),je=Ue*ne-Me;return"translate("+Xe+","+je+")"});break;case"top":J+=ie,X.attr("transform",(Ee,Ue)=>{let Me=L,Xe=-W/2-(p+m),je=Ue*ne-Me;return`translate(${Xe}, ${je})`}),P.attr("transform",()=>`translate(0, ${ie+ne})`);break;case"bottom":J+=ie,X.attr("transform",(Ee,Ue)=>{let Me=-L-ne,Xe=-W/2-(p+m),je=Ue*ne-Me;return"translate("+Xe+","+je+")"});break;case"left":z+=p+m+W,X.attr("transform",(Ee,Ue)=>{let Me=ne*te.length/2,Xe=-L-(p+m),je=Ue*ne-Me;return"translate("+Xe+","+je+")"}),P.attr("transform",()=>`translate(${W+p+m}, 0)`);break;case"right":default:z+=p+m+W,X.attr("transform",(Ee,Ue)=>{let Me=ne*te.length/2,Xe=12*p,je=Ue*ne-Me;return"translate("+Xe+","+je+")"});break}let le=j.node()?.getBoundingClientRect().width??0,se=E/2-le/2,he=E/2+le/2,ye=Math.min(0,se),Ie=Math.max(z,he)-ye;w.attr("viewBox",`${ye} 0 ${Ie} ${J}`),Bl(w,J,Ie,h.useMaxWidth)},"draw"),T2i={draw:S2i},jqr={parser:v2i,db:Wqr,renderer:T2i,styles:E2i}});function _ft(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function Xqr(e){return!/^\d+$/.test(e)}function Qqr(e){return!/^\d+px$/.test(e)}function tA(e){return ho(e.trim(),Ar())}function Zqr(e){nb.setData({quadrant1Text:tA(e.text)})}function Jqr(e){nb.setData({quadrant2Text:tA(e.text)})}function eYr(e){nb.setData({quadrant3Text:tA(e.text)})}function tYr(e){nb.setData({quadrant4Text:tA(e.text)})}function rYr(e){nb.setData({xAxisLeftText:tA(e.text)})}function nYr(e){nb.setData({xAxisRightText:tA(e.text)})}function iYr(e){nb.setData({yAxisTopText:tA(e.text)})}function aYr(e){nb.setData({yAxisBottomText:tA(e.text)})}function Cke(e){let r={};for(let i of e){let[a,o]=i.trim().split(/\s*:\s*/);if(a==="radius"){if(Xqr(o))throw new xke(a,o,"number");r.radius=parseInt(o)}else if(a==="color"){if(_ft(o))throw new xke(a,o,"hex code");r.color=o}else if(a==="stroke-color"){if(_ft(o))throw new xke(a,o,"hex code");r.strokeColor=o}else if(a==="stroke-width"){if(Qqr(o))throw new xke(a,o,"number of pixels (eg. 10px)");r.strokeWidth=o}else throw Error(`style named ${a} is not supported.`)}return r}function sYr(e,r,i,a,o){let l=Cke(o);nb.addPoints([{x:i,y:a,text:tA(e.text),className:r,...l}])}function oYr(e,r){nb.addClass(e,Cke(r))}function lYr(e){nb.setConfig({chartWidth:e})}function cYr(e){nb.setConfig({chartHeight:e})}function uYr(){let e=Ar(),{themeVariables:r,quadrantChart:i}=e;if(i)nb.setConfig(i);return nb.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),nb.setData({titleText:fo()}),nb.build()}var vft,x2i,Av,C2i,xke,nb,k2i,A2i,R2i,I2i,hYr;var dYr=Re(()=>{eo();Zs();Ja();dl();dl();vft=function(){var e=I(function(Ce,_e,ke,it){for(ke=ke||{},it=Ce.length;it--;ke[Ce[it]]=_e);return ke},"o"),r=[1,3],i=[1,4],a=[1,5],o=[1,6],l=[1,7],h=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],d=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],p=[55,56,57],m=[2,36],y=[1,37],E=[1,36],w=[1,38],T=[1,35],x=[1,43],k=[1,41],A=[1,45],R=[1,14],N=[1,23],L=[1,18],B=[1,19],D=[1,20],P=[1,21],F=[1,22],H=[1,24],K=[1,25],Q=[1,26],Z=[1,27],Y=[1,28],j=[1,29],te=[1,32],X=[1,33],W=[1,34],J=[1,39],z=[1,40],ne=[1,42],ie=[1,44],le=[1,63],se=[1,62],he=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ye=[1,66],xe=[1,67],Ie=[1,68],Ee=[1,69],Ue=[1,70],Me=[1,71],Xe=[1,72],je=[1,73],Qe=[1,74],St=[1,75],pt=[1,76],Vt=[1,77],Xt=[4,5,6,7,8,9,10,11,12,13,14,15,18],rr=[1,91],We=[1,92],Nt=[1,93],ct=[1,100],bt=[1,94],Pe=[1,97],Ge=[1,95],qe=[1,96],Ke=[1,98],Je=[1,99],De=[1,103],oe=[10,55,56,57],pe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],fe={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:I(function(_e,ke,it,ut,gt,vt,ir){var qt=vt.length-1;switch(gt){case 23:this.$=vt[qt];break;case 24:this.$=vt[qt-1]+""+vt[qt];break;case 26:this.$=vt[qt-1]+vt[qt];break;case 27:this.$=[vt[qt].trim()];break;case 28:vt[qt-2].push(vt[qt].trim()),this.$=vt[qt-2];break;case 29:this.$=vt[qt-4],ut.addClass(vt[qt-2],vt[qt]);break;case 37:this.$=[];break;case 42:this.$=vt[qt].trim(),ut.setDiagramTitle(this.$);break;case 43:this.$=vt[qt].trim(),ut.setAccTitle(this.$);break;case 44:case 45:this.$=vt[qt].trim(),ut.setAccDescription(this.$);break;case 46:ut.addSection(vt[qt].substr(8)),this.$=vt[qt].substr(8);break;case 47:ut.addPoint(vt[qt-3],"",vt[qt-1],vt[qt],[]);break;case 48:ut.addPoint(vt[qt-4],vt[qt-3],vt[qt-1],vt[qt],[]);break;case 49:ut.addPoint(vt[qt-4],"",vt[qt-2],vt[qt-1],vt[qt]);break;case 50:ut.addPoint(vt[qt-5],vt[qt-4],vt[qt-2],vt[qt-1],vt[qt]);break;case 51:ut.setXAxisLeftText(vt[qt-2]),ut.setXAxisRightText(vt[qt]);break;case 52:vt[qt-1].text+=" ⟶ ",ut.setXAxisLeftText(vt[qt-1]);break;case 53:ut.setXAxisLeftText(vt[qt]);break;case 54:ut.setYAxisBottomText(vt[qt-2]),ut.setYAxisTopText(vt[qt]);break;case 55:vt[qt-1].text+=" ⟶ ",ut.setYAxisBottomText(vt[qt-1]);break;case 56:ut.setYAxisBottomText(vt[qt]);break;case 57:ut.setQuadrant1Text(vt[qt]);break;case 58:ut.setQuadrant2Text(vt[qt]);break;case 59:ut.setQuadrant3Text(vt[qt]);break;case 60:ut.setQuadrant4Text(vt[qt]);break;case 64:this.$={text:vt[qt],type:"text"};break;case 65:this.$={text:vt[qt-1].text+""+vt[qt],type:vt[qt-1].type};break;case 66:this.$={text:vt[qt],type:"text"};break;case 67:this.$={text:vt[qt],type:"markdown"};break;case 68:this.$=vt[qt];break;case 69:this.$=vt[qt-1]+""+vt[qt];break}},"anonymous"),table:[{18:r,26:1,27:2,28:i,55:a,56:o,57:l},{1:[3]},{18:r,26:8,27:2,28:i,55:a,56:o,57:l},{18:r,26:9,27:2,28:i,55:a,56:o,57:l},e(h,[2,33],{29:10}),e(d,[2,61]),e(d,[2,62]),e(d,[2,63]),{1:[2,30]},{1:[2,31]},e(p,m,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:y,5:E,10:w,12:T,13:x,14:k,15:A,18:R,25:N,35:L,37:B,39:D,41:P,42:F,48:H,50:K,51:Q,52:Z,53:Y,54:j,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie}),e(h,[2,34]),{27:46,55:a,56:o,57:l},e(p,[2,37]),e(p,m,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:y,5:E,10:w,12:T,13:x,14:k,15:A,18:R,25:N,35:L,37:B,39:D,41:P,42:F,48:H,50:K,51:Q,52:Z,53:Y,54:j,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,39]),e(p,[2,40]),e(p,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(p,[2,45]),e(p,[2,46]),{18:[1,51]},{4:y,5:E,10:w,12:T,13:x,14:k,15:A,43:52,58:31,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie},{4:y,5:E,10:w,12:T,13:x,14:k,15:A,43:53,58:31,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie},{4:y,5:E,10:w,12:T,13:x,14:k,15:A,43:54,58:31,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie},{4:y,5:E,10:w,12:T,13:x,14:k,15:A,43:55,58:31,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie},{4:y,5:E,10:w,12:T,13:x,14:k,15:A,43:56,58:31,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie},{4:y,5:E,10:w,12:T,13:x,14:k,15:A,43:57,58:31,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie},{4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,44:[1,58],47:[1,59],58:61,59:60,63:W,64:J,65:z,66:ne,67:ie},e(he,[2,64]),e(he,[2,66]),e(he,[2,67]),e(he,[2,70]),e(he,[2,71]),e(he,[2,72]),e(he,[2,73]),e(he,[2,74]),e(he,[2,75]),e(he,[2,76]),e(he,[2,77]),e(he,[2,78]),e(he,[2,79]),e(he,[2,80]),e(he,[2,81]),e(h,[2,35]),e(p,[2,38]),e(p,[2,42]),e(p,[2,43]),e(p,[2,44]),{3:65,4:ye,5:xe,6:Ie,7:Ee,8:Ue,9:Me,10:Xe,11:je,12:Qe,13:St,14:pt,15:Vt,21:64},e(p,[2,53],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,49:[1,78],63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,56],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,49:[1,79],63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,57],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,58],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,59],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,60],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,63:W,64:J,65:z,66:ne,67:ie}),{45:[1,80]},{44:[1,81]},e(he,[2,65]),e(he,[2,82]),e(he,[2,83]),e(he,[2,84]),{3:83,4:ye,5:xe,6:Ie,7:Ee,8:Ue,9:Me,10:Xe,11:je,12:Qe,13:St,14:pt,15:Vt,18:[1,82]},e(Xt,[2,23]),e(Xt,[2,1]),e(Xt,[2,2]),e(Xt,[2,3]),e(Xt,[2,4]),e(Xt,[2,5]),e(Xt,[2,6]),e(Xt,[2,7]),e(Xt,[2,8]),e(Xt,[2,9]),e(Xt,[2,10]),e(Xt,[2,11]),e(Xt,[2,12]),e(p,[2,52],{58:31,43:84,4:y,5:E,10:w,12:T,13:x,14:k,15:A,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,55],{58:31,43:85,4:y,5:E,10:w,12:T,13:x,14:k,15:A,60:te,61:X,63:W,64:J,65:z,66:ne,67:ie}),{46:[1,86]},{45:[1,87]},{4:rr,5:We,6:Nt,8:ct,11:bt,13:Pe,16:90,17:Ge,18:qe,19:Ke,20:Je,22:89,23:88},e(Xt,[2,24]),e(p,[2,51],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,54],{59:60,58:61,4:y,5:E,8:le,10:w,12:T,13:x,14:k,15:A,18:se,63:W,64:J,65:z,66:ne,67:ie}),e(p,[2,47],{22:89,16:90,23:101,4:rr,5:We,6:Nt,8:ct,11:bt,13:Pe,17:Ge,18:qe,19:Ke,20:Je}),{46:[1,102]},e(p,[2,29],{10:De}),e(oe,[2,27],{16:104,4:rr,5:We,6:Nt,8:ct,11:bt,13:Pe,17:Ge,18:qe,19:Ke,20:Je}),e(pe,[2,25]),e(pe,[2,13]),e(pe,[2,14]),e(pe,[2,15]),e(pe,[2,16]),e(pe,[2,17]),e(pe,[2,18]),e(pe,[2,19]),e(pe,[2,20]),e(pe,[2,21]),e(pe,[2,22]),e(p,[2,49],{10:De}),e(p,[2,48],{22:89,16:90,23:105,4:rr,5:We,6:Nt,8:ct,11:bt,13:Pe,17:Ge,18:qe,19:Ke,20:Je}),{4:rr,5:We,6:Nt,8:ct,11:bt,13:Pe,16:90,17:Ge,18:qe,19:Ke,20:Je,22:106},e(pe,[2,26]),e(p,[2,50],{10:De}),e(oe,[2,28],{16:104,4:rr,5:We,6:Nt,8:ct,11:bt,13:Pe,17:Ge,18:qe,19:Ke,20:Je})],defaultActions:{8:[2,30],9:[2,31]},parseError:I(function(_e,ke){if(ke.recoverable)this.trace(_e);else{var it=Error(_e);throw it.hash=ke,it}},"parseError"),parse:I(function(_e){var ke=this,it=[0],ut=[],gt=[null],vt=[],ir=this.table,qt="",cr=0,tr=0,Zt=0,lr=2,Kt=1,In=vt.slice.call(arguments,1),Et=Object.create(this.lexer),Xn={yy:{}};for(var Yt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Yt))Xn.yy[Yt]=this.yy[Yt];if(Et.setInput(_e,Xn.yy),Xn.yy.lexer=Et,Xn.yy.parser=this,typeof Et.yylloc>"u")Et.yylloc={};var Bn=Et.yylloc;vt.push(Bn);var si=Et.options&&Et.options.ranges;if(typeof Xn.yy.parseError==="function")this.parseError=Xn.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function hn(On){it.length=it.length-2*On,gt.length=gt.length-On,vt.length=vt.length-On}I(hn,"popStack");function Ii(){var On=ut.pop()||Et.lex()||Kt;if(typeof On!=="number"){if(On instanceof Array)ut=On,On=ut.pop();On=ke.symbols_[On]||On}return On}I(Ii,"lex");var Vn,Ei,yn,Li,Ia,tt,Fn={},Hn,_t,Sr,on;while(!0){if(yn=it[it.length-1],this.defaultActions[yn])Li=this.defaultActions[yn];else{if(Vn===null||typeof Vn>"u")Vn=Ii();Li=ir[yn]&&ir[yn][Vn]}if(typeof Li>"u"||!Li.length||!Li[0]){var gn="";on=[];for(Hn in ir[yn])if(this.terminals_[Hn]&&Hn>lr)on.push("'"+this.terminals_[Hn]+"'");if(Et.showPosition)gn="Parse error on line "+(cr+1)+`: +`,"getStyles"),k2i=C2i,A2i=I((e)=>{let r=[...e.values()].reduce((o,l)=>o+l,0),i=[...e.entries()].map(([o,l])=>({label:o,value:l})).filter((o)=>o.value/r*100>=1);return Z2e().value((o)=>o.value).sort(null)(i)},"createPieArcs"),R2i=I((e,r,i,a)=>{Ze.debug(`rendering pie chart +`+e);let o=a.db,l=Ar(),h=bc(o.getConfig(),l.pie),d=40,p=18,m=4,y=450,v=y,w=Ou(r),T=w.append("g");T.attr("transform","translate("+v/2+","+y/2+")");let{themeVariables:x}=l,[k]=W_(x.pieOuterStrokeWidth);k??=2;let{legendPosition:A,textPosition:R}=h,N=h.donutHole>0&&h.donutHole<=0.9?h.donutHole:0,L=Math.min(v,y)/2-d,B=yC().innerRadius(N*L).outerRadius(L),D=yC().innerRadius(L*R).outerRadius(L*R),P=T.append("g");P.append("circle").attr("cx",0).attr("cy",0).attr("r",L+k/2).attr("class","pieOuterCircle");let F=o.getSections(),H=A2i(F),W=[x.pie1,x.pie2,x.pie3,x.pie4,x.pie5,x.pie6,x.pie7,x.pie8,x.pie9,x.pie10,x.pie11,x.pie12],X=0;F.forEach((Ee)=>{X+=Ee});let Q=H.filter((Ee)=>(Ee.data.value/X*100).toFixed(0)!=="0"),Y=VE(W).domain([...F.keys()]);P.selectAll("mySlices").data(Q).enter().append("path").attr("d",B).attr("fill",(Ee)=>Y(Ee.data.label)).attr("class",(Ee)=>{let ze="pieCircle";if(h.highlightSlice==="hover")ze+=" highlightedOnHover";else if(h.highlightSlice===Ee.data.label)ze+=" highlighted";return ze}),P.selectAll("mySlices").data(Q).enter().append("text").text((Ee)=>(Ee.data.value/X*100).toFixed(0)+"%").attr("transform",(Ee)=>"translate("+D.centroid(Ee)+")").style("text-anchor","middle").attr("class","slice");let K=T.append("text").text(o.getDiagramTitle()).attr("x",0).attr("y",-(y-50)/2).attr("class","pieTitleText"),J=[...F.entries()].map(([Ee,ze])=>({label:Ee,value:ze})),Z=T.selectAll(".legend").data(J).enter().append("g").attr("class","legend");Z.append("rect").attr("width",p).attr("height",p).style("fill",(Ee)=>Y(Ee.label)).style("stroke",(Ee)=>Y(Ee.label)),Z.append("text").attr("x",p+m).attr("y",p-m).text((Ee)=>{if(o.getShowData())return`${Ee.label} [${Ee.value}]`;return Ee.label});let j=Math.max(...Z.selectAll("text").nodes().map((Ee)=>Ee?.getBoundingClientRect().width??0)),ee=y,z=v+d,ne=p+m,ie=J.length*ne;switch(A){case"center":Z.attr("transform",(Ee,ze)=>{let Me=ne*J.length/2,Xe=-j/2-(p+m),Ye=ze*ne-Me;return"translate("+Xe+","+Ye+")"});break;case"top":ee+=ie,Z.attr("transform",(Ee,ze)=>{let Me=L,Xe=-j/2-(p+m),Ye=ze*ne-Me;return`translate(${Xe}, ${Ye})`}),P.attr("transform",()=>`translate(0, ${ie+ne})`);break;case"bottom":ee+=ie,Z.attr("transform",(Ee,ze)=>{let Me=-L-ne,Xe=-j/2-(p+m),Ye=ze*ne-Me;return"translate("+Xe+","+Ye+")"});break;case"left":z+=p+m+j,Z.attr("transform",(Ee,ze)=>{let Me=ne*J.length/2,Xe=-L-(p+m),Ye=ze*ne-Me;return"translate("+Xe+","+Ye+")"}),P.attr("transform",()=>`translate(${j+p+m}, 0)`);break;case"right":default:z+=p+m+j,Z.attr("transform",(Ee,ze)=>{let Me=ne*J.length/2,Xe=12*p,Ye=ze*ne-Me;return"translate("+Xe+","+Ye+")"});break}let se=K.node()?.getBoundingClientRect().width??0,oe=v/2-se/2,he=v/2+se/2,ye=Math.min(0,oe),Ie=Math.max(z,he)-ye;w.attr("viewBox",`${ye} 0 ${Ie} ${ee}`),Bl(w,ee,Ie,h.useMaxWidth)},"draw"),I2i={draw:R2i},Jqr={parser:x2i,db:Zqr,renderer:I2i,styles:k2i}});function Sft(e){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(e)}function tYr(e){return!/^\d+$/.test(e)}function rYr(e){return!/^\d+px$/.test(e)}function rA(e){return ho(e.trim(),Ar())}function nYr(e){nb.setData({quadrant1Text:rA(e.text)})}function iYr(e){nb.setData({quadrant2Text:rA(e.text)})}function aYr(e){nb.setData({quadrant3Text:rA(e.text)})}function sYr(e){nb.setData({quadrant4Text:rA(e.text)})}function oYr(e){nb.setData({xAxisLeftText:rA(e.text)})}function lYr(e){nb.setData({xAxisRightText:rA(e.text)})}function cYr(e){nb.setData({yAxisTopText:rA(e.text)})}function uYr(e){nb.setData({yAxisBottomText:rA(e.text)})}function Rke(e){let r={};for(let i of e){let[a,o]=i.trim().split(/\s*:\s*/);if(a==="radius"){if(tYr(o))throw new Ake(a,o,"number");r.radius=parseInt(o)}else if(a==="color"){if(Sft(o))throw new Ake(a,o,"hex code");r.color=o}else if(a==="stroke-color"){if(Sft(o))throw new Ake(a,o,"hex code");r.strokeColor=o}else if(a==="stroke-width"){if(rYr(o))throw new Ake(a,o,"number of pixels (eg. 10px)");r.strokeWidth=o}else throw Error(`style named ${a} is not supported.`)}return r}function hYr(e,r,i,a,o){let l=Rke(o);nb.addPoints([{x:i,y:a,text:rA(e.text),className:r,...l}])}function dYr(e,r){nb.addClass(e,Rke(r))}function fYr(e){nb.setConfig({chartWidth:e})}function pYr(e){nb.setConfig({chartHeight:e})}function gYr(){let e=Ar(),{themeVariables:r,quadrantChart:i}=e;if(i)nb.setConfig(i);return nb.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),nb.setData({titleText:fo()}),nb.build()}var wft,O2i,Av,N2i,Ake,nb,L2i,M2i,D2i,P2i,mYr;var bYr=Re(()=>{eo();Zs();Ja();dl();dl();wft=function(){var e=I(function(ke,we,Ae,at){for(Ae=Ae||{},at=ke.length;at--;Ae[ke[at]]=we);return Ae},"o"),r=[1,3],i=[1,4],a=[1,5],o=[1,6],l=[1,7],h=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],d=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],p=[55,56,57],m=[2,36],y=[1,37],v=[1,36],w=[1,38],T=[1,35],x=[1,43],k=[1,41],A=[1,45],R=[1,14],N=[1,23],L=[1,18],B=[1,19],D=[1,20],P=[1,21],F=[1,22],H=[1,24],W=[1,25],X=[1,26],Q=[1,27],Y=[1,28],K=[1,29],J=[1,32],Z=[1,33],j=[1,34],ee=[1,39],z=[1,40],ne=[1,42],ie=[1,44],se=[1,63],oe=[1,62],he=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],ye=[1,66],Se=[1,67],Ie=[1,68],Ee=[1,69],ze=[1,70],Me=[1,71],Xe=[1,72],Ye=[1,73],Qe=[1,74],xt=[1,75],dt=[1,76],zt=[1,77],Kt=[4,5,6,7,8,9,10,11,12,13,14,15,18],rr=[1,91],je=[1,92],Nt=[1,93],ct=[1,100],bt=[1,94],Pe=[1,97],Ue=[1,95],qe=[1,96],Ke=[1,98],Je=[1,99],De=[1,103],le=[10,55,56,57],pe=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],fe={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:I(function(we,Ae,at,ut,gt,vt,ir){var qt=vt.length-1;switch(gt){case 23:this.$=vt[qt];break;case 24:this.$=vt[qt-1]+""+vt[qt];break;case 26:this.$=vt[qt-1]+vt[qt];break;case 27:this.$=[vt[qt].trim()];break;case 28:vt[qt-2].push(vt[qt].trim()),this.$=vt[qt-2];break;case 29:this.$=vt[qt-4],ut.addClass(vt[qt-2],vt[qt]);break;case 37:this.$=[];break;case 42:this.$=vt[qt].trim(),ut.setDiagramTitle(this.$);break;case 43:this.$=vt[qt].trim(),ut.setAccTitle(this.$);break;case 44:case 45:this.$=vt[qt].trim(),ut.setAccDescription(this.$);break;case 46:ut.addSection(vt[qt].substr(8)),this.$=vt[qt].substr(8);break;case 47:ut.addPoint(vt[qt-3],"",vt[qt-1],vt[qt],[]);break;case 48:ut.addPoint(vt[qt-4],vt[qt-3],vt[qt-1],vt[qt],[]);break;case 49:ut.addPoint(vt[qt-4],"",vt[qt-2],vt[qt-1],vt[qt]);break;case 50:ut.addPoint(vt[qt-5],vt[qt-4],vt[qt-2],vt[qt-1],vt[qt]);break;case 51:ut.setXAxisLeftText(vt[qt-2]),ut.setXAxisRightText(vt[qt]);break;case 52:vt[qt-1].text+=" ⟶ ",ut.setXAxisLeftText(vt[qt-1]);break;case 53:ut.setXAxisLeftText(vt[qt]);break;case 54:ut.setYAxisBottomText(vt[qt-2]),ut.setYAxisTopText(vt[qt]);break;case 55:vt[qt-1].text+=" ⟶ ",ut.setYAxisBottomText(vt[qt-1]);break;case 56:ut.setYAxisBottomText(vt[qt]);break;case 57:ut.setQuadrant1Text(vt[qt]);break;case 58:ut.setQuadrant2Text(vt[qt]);break;case 59:ut.setQuadrant3Text(vt[qt]);break;case 60:ut.setQuadrant4Text(vt[qt]);break;case 64:this.$={text:vt[qt],type:"text"};break;case 65:this.$={text:vt[qt-1].text+""+vt[qt],type:vt[qt-1].type};break;case 66:this.$={text:vt[qt],type:"text"};break;case 67:this.$={text:vt[qt],type:"markdown"};break;case 68:this.$=vt[qt];break;case 69:this.$=vt[qt-1]+""+vt[qt];break}},"anonymous"),table:[{18:r,26:1,27:2,28:i,55:a,56:o,57:l},{1:[3]},{18:r,26:8,27:2,28:i,55:a,56:o,57:l},{18:r,26:9,27:2,28:i,55:a,56:o,57:l},e(h,[2,33],{29:10}),e(d,[2,61]),e(d,[2,62]),e(d,[2,63]),{1:[2,30]},{1:[2,31]},e(p,m,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:y,5:v,10:w,12:T,13:x,14:k,15:A,18:R,25:N,35:L,37:B,39:D,41:P,42:F,48:H,50:W,51:X,52:Q,53:Y,54:K,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie}),e(h,[2,34]),{27:46,55:a,56:o,57:l},e(p,[2,37]),e(p,m,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:y,5:v,10:w,12:T,13:x,14:k,15:A,18:R,25:N,35:L,37:B,39:D,41:P,42:F,48:H,50:W,51:X,52:Q,53:Y,54:K,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,39]),e(p,[2,40]),e(p,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},e(p,[2,45]),e(p,[2,46]),{18:[1,51]},{4:y,5:v,10:w,12:T,13:x,14:k,15:A,43:52,58:31,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie},{4:y,5:v,10:w,12:T,13:x,14:k,15:A,43:53,58:31,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie},{4:y,5:v,10:w,12:T,13:x,14:k,15:A,43:54,58:31,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie},{4:y,5:v,10:w,12:T,13:x,14:k,15:A,43:55,58:31,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie},{4:y,5:v,10:w,12:T,13:x,14:k,15:A,43:56,58:31,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie},{4:y,5:v,10:w,12:T,13:x,14:k,15:A,43:57,58:31,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie},{4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,44:[1,58],47:[1,59],58:61,59:60,63:j,64:ee,65:z,66:ne,67:ie},e(he,[2,64]),e(he,[2,66]),e(he,[2,67]),e(he,[2,70]),e(he,[2,71]),e(he,[2,72]),e(he,[2,73]),e(he,[2,74]),e(he,[2,75]),e(he,[2,76]),e(he,[2,77]),e(he,[2,78]),e(he,[2,79]),e(he,[2,80]),e(he,[2,81]),e(h,[2,35]),e(p,[2,38]),e(p,[2,42]),e(p,[2,43]),e(p,[2,44]),{3:65,4:ye,5:Se,6:Ie,7:Ee,8:ze,9:Me,10:Xe,11:Ye,12:Qe,13:xt,14:dt,15:zt,21:64},e(p,[2,53],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,49:[1,78],63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,56],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,49:[1,79],63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,57],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,58],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,59],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,60],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,63:j,64:ee,65:z,66:ne,67:ie}),{45:[1,80]},{44:[1,81]},e(he,[2,65]),e(he,[2,82]),e(he,[2,83]),e(he,[2,84]),{3:83,4:ye,5:Se,6:Ie,7:Ee,8:ze,9:Me,10:Xe,11:Ye,12:Qe,13:xt,14:dt,15:zt,18:[1,82]},e(Kt,[2,23]),e(Kt,[2,1]),e(Kt,[2,2]),e(Kt,[2,3]),e(Kt,[2,4]),e(Kt,[2,5]),e(Kt,[2,6]),e(Kt,[2,7]),e(Kt,[2,8]),e(Kt,[2,9]),e(Kt,[2,10]),e(Kt,[2,11]),e(Kt,[2,12]),e(p,[2,52],{58:31,43:84,4:y,5:v,10:w,12:T,13:x,14:k,15:A,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,55],{58:31,43:85,4:y,5:v,10:w,12:T,13:x,14:k,15:A,60:J,61:Z,63:j,64:ee,65:z,66:ne,67:ie}),{46:[1,86]},{45:[1,87]},{4:rr,5:je,6:Nt,8:ct,11:bt,13:Pe,16:90,17:Ue,18:qe,19:Ke,20:Je,22:89,23:88},e(Kt,[2,24]),e(p,[2,51],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,54],{59:60,58:61,4:y,5:v,8:se,10:w,12:T,13:x,14:k,15:A,18:oe,63:j,64:ee,65:z,66:ne,67:ie}),e(p,[2,47],{22:89,16:90,23:101,4:rr,5:je,6:Nt,8:ct,11:bt,13:Pe,17:Ue,18:qe,19:Ke,20:Je}),{46:[1,102]},e(p,[2,29],{10:De}),e(le,[2,27],{16:104,4:rr,5:je,6:Nt,8:ct,11:bt,13:Pe,17:Ue,18:qe,19:Ke,20:Je}),e(pe,[2,25]),e(pe,[2,13]),e(pe,[2,14]),e(pe,[2,15]),e(pe,[2,16]),e(pe,[2,17]),e(pe,[2,18]),e(pe,[2,19]),e(pe,[2,20]),e(pe,[2,21]),e(pe,[2,22]),e(p,[2,49],{10:De}),e(p,[2,48],{22:89,16:90,23:105,4:rr,5:je,6:Nt,8:ct,11:bt,13:Pe,17:Ue,18:qe,19:Ke,20:Je}),{4:rr,5:je,6:Nt,8:ct,11:bt,13:Pe,16:90,17:Ue,18:qe,19:Ke,20:Je,22:106},e(pe,[2,26]),e(p,[2,50],{10:De}),e(le,[2,28],{16:104,4:rr,5:je,6:Nt,8:ct,11:bt,13:Pe,17:Ue,18:qe,19:Ke,20:Je})],defaultActions:{8:[2,30],9:[2,31]},parseError:I(function(we,Ae){if(Ae.recoverable)this.trace(we);else{var at=Error(we);throw at.hash=Ae,at}},"parseError"),parse:I(function(we){var Ae=this,at=[0],ut=[],gt=[null],vt=[],ir=this.table,qt="",cr=0,tr=0,Zt=0,lr=2,Xt=1,In=vt.slice.call(arguments,1),Et=Object.create(this.lexer),Xn={yy:{}};for(var Yt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Yt))Xn.yy[Yt]=this.yy[Yt];if(Et.setInput(we,Xn.yy),Xn.yy.lexer=Et,Xn.yy.parser=this,typeof Et.yylloc>"u")Et.yylloc={};var Bn=Et.yylloc;vt.push(Bn);var si=Et.options&&Et.options.ranges;if(typeof Xn.yy.parseError==="function")this.parseError=Xn.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function dn(On){at.length=at.length-2*On,gt.length=gt.length-On,vt.length=vt.length-On}I(dn,"popStack");function Ii(){var On=ut.pop()||Et.lex()||Xt;if(typeof On!=="number"){if(On instanceof Array)ut=On,On=ut.pop();On=Ae.symbols_[On]||On}return On}I(Ii,"lex");var Vn,Ei,vn,Li,Ia,tt,Fn={},Hn,_t,Sr,ln;while(!0){if(vn=at[at.length-1],this.defaultActions[vn])Li=this.defaultActions[vn];else{if(Vn===null||typeof Vn>"u")Vn=Ii();Li=ir[vn]&&ir[vn][Vn]}if(typeof Li>"u"||!Li.length||!Li[0]){var mn="";ln=[];for(Hn in ir[vn])if(this.terminals_[Hn]&&Hn>lr)ln.push("'"+this.terminals_[Hn]+"'");if(Et.showPosition)mn="Parse error on line "+(cr+1)+`: `+Et.showPosition()+` -Expecting `+on.join(", ")+", got '"+(this.terminals_[Vn]||Vn)+"'";else gn="Parse error on line "+(cr+1)+": Unexpected "+(Vn==Kt?"end of input":"'"+(this.terminals_[Vn]||Vn)+"'");this.parseError(gn,{text:Et.match,token:this.terminals_[Vn]||Vn,line:Et.yylineno,loc:Bn,expected:on})}if(Li[0]instanceof Array&&Li.length>1)throw Error("Parse Error: multiple actions possible at state: "+yn+", token: "+Vn);switch(Li[0]){case 1:if(it.push(Vn),gt.push(Et.yytext),vt.push(Et.yylloc),it.push(Li[1]),Vn=null,!Ei){if(tr=Et.yyleng,qt=Et.yytext,cr=Et.yylineno,Bn=Et.yylloc,Zt>0)Zt--}else Vn=Ei,Ei=null;break;case 2:if(_t=this.productions_[Li[1]][1],Fn.$=gt[gt.length-_t],Fn._$={first_line:vt[vt.length-(_t||1)].first_line,last_line:vt[vt.length-1].last_line,first_column:vt[vt.length-(_t||1)].first_column,last_column:vt[vt.length-1].last_column},si)Fn._$.range=[vt[vt.length-(_t||1)].range[0],vt[vt.length-1].range[1]];if(tt=this.performAction.apply(Fn,[qt,tr,cr,Xn.yy,Li[1],gt,vt].concat(In)),typeof tt<"u")return tt;if(_t)it=it.slice(0,-1*_t*2),gt=gt.slice(0,-1*_t),vt=vt.slice(0,-1*_t);it.push(this.productions_[Li[1]][0]),gt.push(Fn.$),vt.push(Fn._$),Sr=ir[it[it.length-2]][it[it.length-1]],it.push(Sr);break;case 3:return!0}}return!0},"parse")},be=function(){var Ce={EOF:1,parseError:I(function(ke,it){if(this.yy.parser)this.yy.parser.parseError(ke,it);else throw Error(ke)},"parseError"),setInput:I(function(_e,ke){if(this.yy=ke||this.yy||{},this._input=_e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var _e=this._input[0];this.yytext+=_e,this.yyleng++,this.offset++,this.match+=_e,this.matched+=_e;var ke=_e.match(/(?:\r\n?|\n).*/g);if(ke)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),_e},"input"),unput:I(function(_e){var ke=_e.length,it=_e.split(/(?:\r\n?|\n)/g);this._input=_e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-ke),this.offset-=ke;var ut=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),it.length-1)this.yylineno-=it.length-1;var gt=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:it?(it.length===ut.length?this.yylloc.first_column:0)+ut[ut.length-it.length].length-it[0].length:this.yylloc.first_column-ke},this.options.ranges)this.yylloc.range=[gt[0],gt[0]+this.yyleng-ke];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(_e){this.unput(this.match.slice(_e))},"less"),pastInput:I(function(){var _e=this.matched.substr(0,this.matched.length-this.match.length);return(_e.length>20?"...":"")+_e.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var _e=this.match;if(_e.length<20)_e+=this._input.substr(0,20-_e.length);return(_e.substr(0,20)+(_e.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var _e=this.pastInput(),ke=Array(_e.length+1).join("-");return _e+this.upcomingInput()+` -`+ke+"^"},"showPosition"),test_match:I(function(_e,ke){var it,ut,gt;if(this.options.backtrack_lexer){if(gt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)gt.yylloc.range=this.yylloc.range.slice(0)}if(ut=_e[0].match(/(?:\r\n?|\n).*/g),ut)this.yylineno+=ut.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ut?ut[ut.length-1].length-ut[ut.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_e[0].length},this.yytext+=_e[0],this.match+=_e[0],this.matches=_e,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(_e[0].length),this.matched+=_e[0],it=this.performAction.call(this,this.yy,this,ke,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(it)return it;else if(this._backtrack){for(var vt in gt)this[vt]=gt[vt];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var _e,ke,it,ut;if(!this._more)this.yytext="",this.match="";var gt=this._currentRules();for(var vt=0;vtke[0].length)){if(ke=it,ut=vt,this.options.backtrack_lexer)if(_e=this.test_match(it,gt[vt]),_e!==!1)return _e;else if(this._backtrack){ke=!1;continue}else return!1;else if(!this.options.flex)break}if(ke){if(_e=this.test_match(ke,gt[ut]),_e!==!1)return _e;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var ke=this.next();if(ke)return ke;else return this.lex()},"lex"),begin:I(function(ke){this.conditionStack.push(ke)},"begin"),popState:I(function(){var ke=this.conditionStack.length-1;if(ke>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(ke){if(ke=this.conditionStack.length-1-Math.abs(ke||0),ke>=0)return this.conditionStack[ke];else return"INITIAL"},"topState"),pushState:I(function(ke){this.begin(ke)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(ke,it,ut,gt){var vt=gt;switch(ut){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return Ce}();fe.lexer=be;function ze(){this.yy={}}return I(ze,"Parser"),ze.prototype=fe,fe.Parser=ze,new ze}();vft.parser=vft;x2i=vft,Av=Kb(),C2i=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{I(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Fs.quadrantChart?.chartWidth||500,chartWidth:Fs.quadrantChart?.chartHeight||500,titlePadding:Fs.quadrantChart?.titlePadding||10,titleFontSize:Fs.quadrantChart?.titleFontSize||20,quadrantPadding:Fs.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Fs.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Fs.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Fs.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Fs.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Fs.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Fs.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Fs.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Fs.quadrantChart?.pointLabelFontSize||12,pointRadius:Fs.quadrantChart?.pointRadius||5,xAxisPosition:Fs.quadrantChart?.xAxisPosition||"top",yAxisPosition:Fs.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:Fs.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Fs.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:Av.quadrant1Fill,quadrant2Fill:Av.quadrant2Fill,quadrant3Fill:Av.quadrant3Fill,quadrant4Fill:Av.quadrant4Fill,quadrant1TextFill:Av.quadrant1TextFill,quadrant2TextFill:Av.quadrant2TextFill,quadrant3TextFill:Av.quadrant3TextFill,quadrant4TextFill:Av.quadrant4TextFill,quadrantPointFill:Av.quadrantPointFill,quadrantPointTextFill:Av.quadrantPointTextFill,quadrantXAxisTextFill:Av.quadrantXAxisTextFill,quadrantYAxisTextFill:Av.quadrantYAxisTextFill,quadrantTitleFill:Av.quadrantTitleFill,quadrantInternalBorderStrokeFill:Av.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Av.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,Ze.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){Ze.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){Ze.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,i,a){let o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,l={top:e==="top"&&r?o:0,bottom:e==="bottom"&&r?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,d={left:this.config.yAxisPosition==="left"&&i?h:0,right:this.config.yAxisPosition==="right"&&i?h:0},p=this.config.titleFontSize+this.config.titlePadding*2,m={top:a?p:0},y=this.config.quadrantPadding+d.left,E=this.config.quadrantPadding+l.top+m.top,w=this.config.chartWidth-this.config.quadrantPadding*2-d.left-d.right,T=this.config.chartHeight-this.config.quadrantPadding*2-l.top-l.bottom-m.top,x=w/2,k=T/2;return{xAxisSpace:l,yAxisSpace:d,titleSpace:m,quadrantSpace:{quadrantLeft:y,quadrantTop:E,quadrantWidth:w,quadrantHalfWidth:x,quadrantHeight:T,quadrantHalfHeight:k}}}getAxisLabels(e,r,i,a){let{quadrantSpace:o,titleSpace:l}=a,{quadrantHalfHeight:h,quadrantHeight:d,quadrantLeft:p,quadrantHalfWidth:m,quadrantTop:y,quadrantWidth:E}=o,w=Boolean(this.data.xAxisRightText),T=Boolean(this.data.yAxisTopText),x=[];if(this.data.xAxisLeftText&&r)x.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+(w?m/2:0),y:e==="top"?this.config.xAxisLabelPadding+l.top:this.config.xAxisLabelPadding+y+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)x.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+m+(w?m/2:0),y:e==="top"?this.config.xAxisLabelPadding+l.top:this.config.xAxisLabelPadding+y+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&i)x.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+E+this.config.quadrantPadding,y:y+d-(T?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&i)x.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+E+this.config.quadrantPadding,y:y+h-(T?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:-90});return x}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:l}=r,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+o,y:l,width:o,height:i,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:l,width:o,height:i,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:l+i,width:o,height:i,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+o,y:l+i,width:o,height:i,fill:this.themeConfig.quadrant4Fill}];for(let d of h)if(d.text.x=d.x+d.width/2,this.data.points.length===0)d.text.y=d.y+d.height/2,d.text.horizontalPos="middle";else d.text.y=d.y+this.config.quadrantTextTopPadding,d.text.horizontalPos="top";return h}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:i,quadrantLeft:a,quadrantTop:o,quadrantWidth:l}=r,h=dC().domain([0,1]).range([a,l+a]),d=dC().domain([0,1]).range([i+o,o]);return this.data.points.map((m)=>{let y=this.classes.get(m.className);if(y)m={...y,...m};return{x:h(m.x),y:d(m.y),fill:m.color??this.themeConfig.quadrantPointFill,radius:m.radius??this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:h(m.x),y:d(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:m.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:m.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=e,{quadrantHalfHeight:a,quadrantHeight:o,quadrantLeft:l,quadrantHalfWidth:h,quadrantTop:d,quadrantWidth:p}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l-r,y1:d,x2:l+p+r,y2:d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l+p,y1:d+r,x2:l+p,y2:d+o-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l-r,y1:d+o,x2:l+p+r,y2:d+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l,y1:d+r,x2:l,y2:d+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:l+h,y1:d+r,x2:l+h,y2:d+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:l+r,y1:d+a,x2:l+p-r,y2:d+a}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(a,e,r,i);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(a,e,r,o),borderLines:this.getBorders(o),title:this.getTitle(i)}}},xke=class extends Error{static{I(this,"InvalidStyleError")}constructor(e,r,i){super(`value for ${e} ${r} is invalid, please use a valid ${i}`);this.name="InvalidStyleError"}};I(_ft,"validateHexCode");I(Xqr,"validateNumber");I(Qqr,"validateSizeInPixels");I(tA,"textSanitizer");nb=new C2i;I(Zqr,"setQuadrant1Text");I(Jqr,"setQuadrant2Text");I(eYr,"setQuadrant3Text");I(tYr,"setQuadrant4Text");I(rYr,"setXAxisLeftText");I(nYr,"setXAxisRightText");I(iYr,"setYAxisTopText");I(aYr,"setYAxisBottomText");I(Cke,"parseStyles");I(sYr,"addPoint");I(oYr,"addClass");I(lYr,"setWidth");I(cYr,"setHeight");I(uYr,"getQuadrantData");k2i=I(function(){nb.clear(),qs()},"clear"),A2i={setWidth:lYr,setHeight:cYr,setQuadrant1Text:Zqr,setQuadrant2Text:Jqr,setQuadrant3Text:eYr,setQuadrant4Text:tYr,setXAxisLeftText:rYr,setXAxisRightText:nYr,setYAxisTopText:iYr,setYAxisBottomText:aYr,parseStyles:Cke,addPoint:sYr,addClass:oYr,getQuadrantData:uYr,clear:k2i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},R2i=I((e,r,i,a)=>{function o(H){return H==="top"?"hanging":"middle"}I(o,"getDominantBaseLine");function l(H){return H==="left"?"start":"middle"}I(l,"getTextAnchor");function h(H){return`translate(${H.x}, ${H.y}) rotate(${H.rotation||0})`}I(h,"getTransformation");let d=Ar();Ze.debug(`Rendering quadrant chart -`+e);let p=d.securityLevel,m;if(p==="sandbox")m=xn("#i"+r);let E=(p==="sandbox"?xn(m.nodes()[0].contentDocument.body):xn("body")).select(`[id="${r}"]`),w=E.append("g").attr("class","main"),T=d.quadrantChart?.chartWidth??500,x=d.quadrantChart?.chartHeight??500;Bl(E,x,T,d.quadrantChart?.useMaxWidth??!0),E.attr("viewBox","0 0 "+T+" "+x),a.db.setHeight(x),a.db.setWidth(T);let k=a.db.getQuadrantData(),A=w.append("g").attr("class","quadrants"),R=w.append("g").attr("class","border"),N=w.append("g").attr("class","data-points"),L=w.append("g").attr("class","labels"),B=w.append("g").attr("class","title");if(k.title)B.append("text").attr("x",0).attr("y",0).attr("fill",k.title.fill).attr("font-size",k.title.fontSize).attr("dominant-baseline",o(k.title.horizontalPos)).attr("text-anchor",l(k.title.verticalPos)).attr("transform",h(k.title)).text(k.title.text);if(k.borderLines)R.selectAll("line").data(k.borderLines).enter().append("line").attr("x1",(H)=>H.x1).attr("y1",(H)=>H.y1).attr("x2",(H)=>H.x2).attr("y2",(H)=>H.y2).style("stroke",(H)=>H.strokeFill).style("stroke-width",(H)=>H.strokeWidth);let D=A.selectAll("g.quadrant").data(k.quadrants).enter().append("g").attr("class","quadrant");D.append("rect").attr("x",(H)=>H.x).attr("y",(H)=>H.y).attr("width",(H)=>H.width).attr("height",(H)=>H.height).attr("fill",(H)=>H.fill),D.append("text").attr("x",0).attr("y",0).attr("fill",(H)=>H.text.fill).attr("font-size",(H)=>H.text.fontSize).attr("dominant-baseline",(H)=>o(H.text.horizontalPos)).attr("text-anchor",(H)=>l(H.text.verticalPos)).attr("transform",(H)=>h(H.text)).text((H)=>H.text.text),L.selectAll("g.label").data(k.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((H)=>H.text).attr("fill",(H)=>H.fill).attr("font-size",(H)=>H.fontSize).attr("dominant-baseline",(H)=>o(H.horizontalPos)).attr("text-anchor",(H)=>l(H.verticalPos)).attr("transform",(H)=>h(H));let F=N.selectAll("g.data-point").data(k.points).enter().append("g").attr("class","data-point");F.append("circle").attr("cx",(H)=>H.x).attr("cy",(H)=>H.y).attr("r",(H)=>H.radius).attr("fill",(H)=>H.fill).attr("stroke",(H)=>H.strokeColor).attr("stroke-width",(H)=>H.strokeWidth),F.append("text").attr("x",0).attr("y",0).text((H)=>H.text.text).attr("fill",(H)=>H.text.fill).attr("font-size",(H)=>H.text.fontSize).attr("dominant-baseline",(H)=>o(H.text.horizontalPos)).attr("text-anchor",(H)=>l(H.text.verticalPos)).attr("transform",(H)=>h(H.text))},"draw"),I2i={draw:R2i},hYr={parser:x2i,db:A2i,renderer:I2i,styles:I(()=>"","styles")}});function kke(e){return e.type==="bar"}function Ake(e){return e.type==="band"}function zY(e){return e.type==="linear"}function wft(e,r,i,a){let o=new xft(a);if(Ake(e))return new N2i(r,i,e.categories,e.title,o);return new L2i(r,i,[e.min,e.max],e.title,o)}function mYr(e,r,i,a){let o=new xft(a);return new M2i(o,e,r,i)}function Sft(e){return{fontSize:e,markerSize:e*D2i,markerSpacing:e*B2i,itemSpacing:e*P2i}}function bYr(e,r,i,a){let o=new xft(a);return new F2i(o,e,r,i)}function yYr(e,r,i){return new G2i(e,r,i)}function kft(){let e=Kb(),r=ea();return bc(e.xyChart,r.themeVariables.xyChart)}function Aft(){let e=ea();return bc(Fs.xyChart,e.xyChart)}function Rft(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function vF(e){let r=ea();return ho(e.trim(),r)}function _Yr(e){vYr=e}function EYr(e){if(e==="horizontal")loe.chartOrientation="horizontal";else loe.chartOrientation="vertical"}function wYr(e){fu.xAxis.title=vF(e.text)}function Ift(e,r){fu.xAxis={type:"linear",title:fu.xAxis.title,min:e,max:r},Rke=!0}function SYr(e){fu.xAxis={type:"band",title:fu.xAxis.title,categories:e.map((r)=>vF(r.text))},Rke=!0}function TYr(e){fu.yAxis.title=vF(e.text)}function xYr(e,r){fu.yAxis={type:"linear",title:fu.yAxis.title,min:e,max:r},Cft=!0}function CYr(e){let r=Math.min(...e),i=Math.max(...e),a=zY(fu.yAxis)?fu.yAxis.min:1/0,o=zY(fu.yAxis)?fu.yAxis.max:-1/0;fu.yAxis={type:"linear",title:fu.yAxis.title,min:Math.min(a,r),max:Math.max(o,i)}}function Oft(e){let r=[];if(e.length===0)return r;if(!Rke){let i=zY(fu.xAxis)?fu.xAxis.min:1/0,a=zY(fu.xAxis)?fu.xAxis.max:-1/0;Ift(Math.min(i,1),Math.max(a,e.length))}if(Ake(fu.xAxis)&&e.length>fu.xAxis.categories.length)e=e.slice(0,fu.xAxis.categories.length);if(!Cft)CYr(e);if(Ake(fu.xAxis))r=fu.xAxis.categories.map((i,a)=>[i,e[a]]);if(zY(fu.xAxis)){let i=fu.xAxis.min,a=fu.xAxis.max;if(e.length===1)r=[[`${i}`,e[0]]];else{let o=(a-i)/(e.length-1);r=e.map((l,h)=>[`${i+h*o}`,l])}}return r}function Nft(e){return Tft[e===0?0:e%Tft.length]}function kYr(e,r){let i=r.map((h)=>h.value),a=r.map((h)=>h.label?vF(h.label):""),o=Oft(i),l=a.some((h)=>h!=="");fu.plots.push({type:"line",title:vF(e.text),strokeFill:Nft(ooe),strokeWidth:2,data:o,...l?{pointLabels:a}:{}}),ooe++}function AYr(e,r){let i=r.map((o)=>o.value),a=Oft(i);fu.plots.push({type:"bar",title:vF(e.text),fill:Nft(ooe),data:a}),ooe++}function RYr(){if(fu.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return fu.title=fo(),V2i.build(loe,fu,coe,vYr)}function IYr(){return coe}function OYr(){return loe}function NYr(){return fu}var Eft,O2i,xft,fYr=0.7,pYr=0.2,gYr,N2i,L2i,M2i,D2i=0.75,P2i=0.5,B2i=0.35,F2i,$2i,U2i,G2i,z2i,V2i,ooe=0,vYr,loe,coe,fu,Tft,Rke=!1,Cft=!1,H2i,q2i,Y2i,W2i,LYr;var MYr=Re(()=>{A0();Bp();Pp();Ql();eo();Zs();Ja();dl();dl();dl();Eft=function(){var e=I(function(W,J,z,ne){for(z=z||{},ne=W.length;ne--;z[W[ne]]=J);return z},"o"),r=[1,10,12,14,16,18,19,21,23],i=[2,6],a=[1,3],o=[1,5],l=[1,6],h=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],p=[1,25],m=[1,26],y=[1,28],E=[1,29],w=[1,30],T=[1,31],x=[1,32],k=[1,33],A=[1,34],R=[1,35],N=[1,36],L=[1,37],B=[1,43],D=[1,42],P=[1,47],F=[1,50],H=[1,10,12,14,16,18,19,21,23,36,37,38],K=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],Q=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],Z=[1,65],Y=[26,28],j={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:I(function(J,z,ne,ie,le,se,he){var ye=se.length-1;switch(le){case 5:ie.setOrientation(se[ye]);break;case 9:ie.setDiagramTitle(se[ye].text.trim());break;case 12:ie.setLineData({text:"",type:"text"},se[ye]);break;case 13:ie.setLineData(se[ye-1],se[ye]);break;case 14:ie.setBarData({text:"",type:"text"},se[ye]);break;case 15:ie.setBarData(se[ye-1],se[ye]);break;case 16:this.$=se[ye].trim(),ie.setAccTitle(this.$);break;case 17:case 18:this.$=se[ye].trim(),ie.setAccDescription(this.$);break;case 19:this.$=se[ye-1];break;case 20:case 30:this.$=[se[ye-2],...se[ye]];break;case 21:case 31:this.$=[se[ye]];break;case 22:this.$={value:Number(se[ye-1]),label:se[ye]};break;case 23:this.$={value:Number(se[ye]),label:""};break;case 24:ie.setXAxisTitle(se[ye]);break;case 25:ie.setXAxisTitle(se[ye-1]);break;case 26:ie.setXAxisTitle({type:"text",text:""});break;case 27:ie.setXAxisBand(se[ye]);break;case 28:ie.setXAxisRangeData(Number(se[ye-2]),Number(se[ye]));break;case 29:this.$=se[ye-1];break;case 32:ie.setYAxisTitle(se[ye]);break;case 33:ie.setYAxisTitle(se[ye-1]);break;case 34:ie.setYAxisTitle({type:"text",text:""});break;case 35:ie.setYAxisRangeData(Number(se[ye-2]),Number(se[ye]));break;case 39:this.$={text:se[ye],type:"text"};break;case 40:this.$={text:se[ye],type:"text"};break;case 41:this.$={text:se[ye],type:"markdown"};break;case 42:this.$=se[ye];break;case 43:this.$=se[ye-1]+""+se[ye];break}},"anonymous"),table:[e(r,i,{3:1,4:2,7:4,5:a,36:o,37:l,38:h}),{1:[3]},e(r,i,{4:2,7:4,3:8,5:a,36:o,37:l,38:h}),e(r,i,{4:2,7:4,6:9,3:10,5:a,8:[1,11],36:o,37:l,38:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{1:[2,1]},e(r,i,{4:2,7:4,3:21,5:a,36:o,37:l,38:h}),{1:[2,3]},e(d,[2,5]),e(r,[2,7],{4:22,36:o,37:l,38:h}),{11:23,30:p,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:39,13:38,24:B,29:D,30:p,31:40,32:41,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:45,15:44,29:P,30:p,35:46,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:49,17:48,24:F,30:p,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:52,17:51,24:F,30:p,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{20:[1,53]},{22:[1,54]},e(H,[2,18]),{1:[2,2]},e(H,[2,8]),e(H,[2,9]),e(K,[2,39],{41:55,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L}),e(K,[2,40]),e(K,[2,41]),e(Q,[2,42]),e(Q,[2,44]),e(Q,[2,45]),e(Q,[2,46]),e(Q,[2,47]),e(Q,[2,48]),e(Q,[2,49]),e(Q,[2,50]),e(Q,[2,51]),e(Q,[2,52]),e(Q,[2,53]),e(H,[2,10]),e(H,[2,24],{32:41,31:56,24:B,29:D}),e(H,[2,26]),e(H,[2,27]),{33:[1,57]},{11:59,30:p,34:58,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},e(H,[2,11]),e(H,[2,32],{35:60,29:P}),e(H,[2,34]),{33:[1,61]},e(H,[2,12]),{17:62,24:F},{25:63,27:64,29:Z},e(H,[2,14]),{17:66,24:F},e(H,[2,16]),e(H,[2,17]),e(Q,[2,43]),e(H,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(H,[2,33]),{29:[1,70]},e(H,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(Y,[2,23],{30:[1,73]}),e(H,[2,15]),e(H,[2,28]),e(H,[2,29]),{11:59,30:p,34:74,39:24,40:m,41:27,42:y,43:E,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},e(H,[2,35]),e(H,[2,19]),{25:75,27:64,29:Z},e(Y,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:I(function(J,z){if(z.recoverable)this.trace(J);else{var ne=Error(J);throw ne.hash=z,ne}},"parseError"),parse:I(function(J){var z=this,ne=[0],ie=[],le=[null],se=[],he=this.table,ye="",xe=0,Ie=0,Ee=0,Ue=2,Me=1,Xe=se.slice.call(arguments,1),je=Object.create(this.lexer),Qe={yy:{}};for(var St in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,St))Qe.yy[St]=this.yy[St];if(je.setInput(J,Qe.yy),Qe.yy.lexer=je,Qe.yy.parser=this,typeof je.yylloc>"u")je.yylloc={};var pt=je.yylloc;se.push(pt);var Vt=je.options&&je.options.ranges;if(typeof Qe.yy.parseError==="function")this.parseError=Qe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Xt(fe){ne.length=ne.length-2*fe,le.length=le.length-fe,se.length=se.length-fe}I(Xt,"popStack");function rr(){var fe=ie.pop()||je.lex()||Me;if(typeof fe!=="number"){if(fe instanceof Array)ie=fe,fe=ie.pop();fe=z.symbols_[fe]||fe}return fe}I(rr,"lex");var We,Nt,ct,bt,Pe,Ge,qe={},Ke,Je,De,oe;while(!0){if(ct=ne[ne.length-1],this.defaultActions[ct])bt=this.defaultActions[ct];else{if(We===null||typeof We>"u")We=rr();bt=he[ct]&&he[ct][We]}if(typeof bt>"u"||!bt.length||!bt[0]){var pe="";oe=[];for(Ke in he[ct])if(this.terminals_[Ke]&&Ke>Ue)oe.push("'"+this.terminals_[Ke]+"'");if(je.showPosition)pe="Parse error on line "+(xe+1)+`: -`+je.showPosition()+` -Expecting `+oe.join(", ")+", got '"+(this.terminals_[We]||We)+"'";else pe="Parse error on line "+(xe+1)+": Unexpected "+(We==Me?"end of input":"'"+(this.terminals_[We]||We)+"'");this.parseError(pe,{text:je.match,token:this.terminals_[We]||We,line:je.yylineno,loc:pt,expected:oe})}if(bt[0]instanceof Array&&bt.length>1)throw Error("Parse Error: multiple actions possible at state: "+ct+", token: "+We);switch(bt[0]){case 1:if(ne.push(We),le.push(je.yytext),se.push(je.yylloc),ne.push(bt[1]),We=null,!Nt){if(Ie=je.yyleng,ye=je.yytext,xe=je.yylineno,pt=je.yylloc,Ee>0)Ee--}else We=Nt,Nt=null;break;case 2:if(Je=this.productions_[bt[1]][1],qe.$=le[le.length-Je],qe._$={first_line:se[se.length-(Je||1)].first_line,last_line:se[se.length-1].last_line,first_column:se[se.length-(Je||1)].first_column,last_column:se[se.length-1].last_column},Vt)qe._$.range=[se[se.length-(Je||1)].range[0],se[se.length-1].range[1]];if(Ge=this.performAction.apply(qe,[ye,Ie,xe,Qe.yy,bt[1],le,se].concat(Xe)),typeof Ge<"u")return Ge;if(Je)ne=ne.slice(0,-1*Je*2),le=le.slice(0,-1*Je),se=se.slice(0,-1*Je);ne.push(this.productions_[bt[1]][0]),le.push(qe.$),se.push(qe._$),De=he[ne[ne.length-2]][ne[ne.length-1]],ne.push(De);break;case 3:return!0}}return!0},"parse")},te=function(){var W={EOF:1,parseError:I(function(z,ne){if(this.yy.parser)this.yy.parser.parseError(z,ne);else throw Error(z)},"parseError"),setInput:I(function(J,z){if(this.yy=z||this.yy||{},this._input=J,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var J=this._input[0];this.yytext+=J,this.yyleng++,this.offset++,this.match+=J,this.matched+=J;var z=J.match(/(?:\r\n?|\n).*/g);if(z)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),J},"input"),unput:I(function(J){var z=J.length,ne=J.split(/(?:\r\n?|\n)/g);this._input=J+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-z),this.offset-=z;var ie=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1)this.yylineno-=ne.length-1;var le=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ne?(ne.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-ne.length].length-ne[0].length:this.yylloc.first_column-z},this.options.ranges)this.yylloc.range=[le[0],le[0]+this.yyleng-z];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(J){this.unput(this.match.slice(J))},"less"),pastInput:I(function(){var J=this.matched.substr(0,this.matched.length-this.match.length);return(J.length>20?"...":"")+J.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var J=this.match;if(J.length<20)J+=this._input.substr(0,20-J.length);return(J.substr(0,20)+(J.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var J=this.pastInput(),z=Array(J.length+1).join("-");return J+this.upcomingInput()+` -`+z+"^"},"showPosition"),test_match:I(function(J,z){var ne,ie,le;if(this.options.backtrack_lexer){if(le={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)le.yylloc.range=this.yylloc.range.slice(0)}if(ie=J[0].match(/(?:\r\n?|\n).*/g),ie)this.yylineno+=ie.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+J[0].length},this.yytext+=J[0],this.match+=J[0],this.matches=J,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(J[0].length),this.matched+=J[0],ne=this.performAction.call(this,this.yy,this,z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(ne)return ne;else if(this._backtrack){for(var se in le)this[se]=le[se];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var J,z,ne,ie;if(!this._more)this.yytext="",this.match="";var le=this._currentRules();for(var se=0;sez[0].length)){if(z=ne,ie=se,this.options.backtrack_lexer)if(J=this.test_match(ne,le[se]),J!==!1)return J;else if(this._backtrack){z=!1;continue}else return!1;else if(!this.options.flex)break}if(z){if(J=this.test_match(z,le[ie]),J!==!1)return J;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var z=this.next();if(z)return z;else return this.lex()},"lex"),begin:I(function(z){this.conditionStack.push(z)},"begin"),popState:I(function(){var z=this.conditionStack.length-1;if(z>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(z){if(z=this.conditionStack.length-1-Math.abs(z||0),z>=0)return this.conditionStack[z];else return"INITIAL"},"topState"),pushState:I(function(z){this.begin(z)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(z,ne,ie,le){var se=le;switch(ie){case 0:break;case 1:break;case 2:return this.popState(),36;break;case 3:return this.popState(),36;break;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 33;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 29;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return W}();j.lexer=te;function X(){this.yy={}}return I(X,"Parser"),X.prototype=j,j.Parser=X,new X}();Eft.parser=Eft;O2i=Eft;I(kke,"isBarPlot");I(Ake,"isBandAxisData");I(zY,"isLinearAxisData");xft=class{constructor(e){this.parentGroup=e}static{I(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((p,m)=>Math.max(m.length,p),0)*r,height:r};let i={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r),o=a.node()?.getScreenCTM?.(),l=I((p)=>p&&p>0?p:1,"toScale"),h=l(o?.a),d=l(o?.d);for(let p of e){let m=ytt(a,1,p),y=m?m.width/h:p.length*r,E=m?m.height/d:r;i.width=Math.max(i.width,y),i.height=Math.max(i.height,E)}return a.remove(),i}},gYr=class{constructor(e,r,i,a){this.axisConfig=e,this.title=r,this.textDimensionCalculator=i,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{I(this,"BaseAxis")}setRange(e){if(this.range=e,this.axisPosition==="left"||this.axisPosition==="right")this.boundingRect.height=e[1]-e[0];else this.boundingRect.width=e[1]-e[0];this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((e)=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){if(fYr*this.getTickDistance()>this.outerPadding*2)this.outerPadding=Math.floor(fYr*this.getTickDistance()/2);this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth)r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0;if(this.axisConfig.showLabel){let i=this.getLabelDimension(),a=pYr*e.width;this.outerPadding=Math.min(i.width/2,a);let o=i.height;if(this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0)o=Math.max(o,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*i.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*i.height));if(o+=this.axisConfig.labelPadding*2,this.labelTextHeight=i.height,o<=r)r-=o,this.showLabel=!0}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength)this.showTick=!0,r-=this.axisConfig.tickLength;if(this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=i.height+this.axisConfig.titlePadding*2;if(this.titleTextHeight=i.height,a<=r)r-=a,this.showTitle=!0}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth)r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0;if(this.axisConfig.showLabel){let i=this.getLabelDimension(),a=pYr*e.height;this.outerPadding=Math.min(i.height/2,a);let o=i.width+this.axisConfig.labelPadding*2;if(o<=r)r-=o,this.showLabel=!0}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength)this.showTick=!0,r-=this.axisConfig.tickLength;if(this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=i.height+this.axisConfig.titlePadding*2;if(this.titleTextHeight=i.height,a<=r)r-=a,this.showTitle=!0}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){if(this.axisPosition==="left"||this.axisPosition==="right")this.calculateSpaceIfDrawnVertical(e);else this.calculateSpaceIfDrawnHorizontally(e);return this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateOffsetByRotation(e){let r=this.normalizedLabelRotationInRad;if(r===0)return 0;return Math.sin(r)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel)e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map((r)=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))});if(this.showTick){let r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map((i)=>({path:`M ${r},${this.getScaleValue(i)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}if(this.showTitle)e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]});return e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel)e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map((r)=>({text:r.toString(),x:this.getScaleValue(r)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))});if(this.showTick){let r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map((i)=>({path:`M ${this.getScaleValue(i)},${r} L ${this.getScaleValue(i)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}if(this.showTitle)e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]});return e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel)e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map((r)=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))});if(this.showTick){let r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map((i)=>({path:`M ${this.getScaleValue(i)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}if(this.showTitle)e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]});return e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");if(this.axisPosition==="bottom")return this.getDrawableElementsForBottomAxis();if(this.axisPosition==="top")return this.getDrawableElementsForTopAxis();return[]}},N2i=class extends gYr{static{I(this,"BandAxis")}constructor(e,r,i,a,o){super(e,a,o,r);this.categories=i,this.scale=cH().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=cH().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5),Ze.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},L2i=class extends gYr{static{I(this,"LinearAxis")}constructor(e,r,i,a,o){super(e,a,o,r);this.domain=i,this.scale=dC().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];if(this.axisPosition==="left")e.reverse();this.scale=dC().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}};I(wft,"getAxis");M2i=class{constructor(e,r,i,a){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=i,this.chartThemeConfig=a,this.titleWidth=0,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{I(this,"ChartTitle")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(r.width,e.width),a=r.height+2*this.chartConfig.titlePadding;if(a<=e.height&&this.chartConfig.showTitle&&this.chartData.title)this.boundingRect.width=i,this.boundingRect.height=a,this.titleWidth=r.width,this.showChartTitle=!0;return{width:this.boundingRect.width,height:this.boundingRect.height}}alignTo(e,r){let i=Math.min(this.titleWidth,this.chartConfig.width)/2,a=Math.min(Math.max((e+r)/2,i),this.chartConfig.width-i);this.boundingRect.x=a-i,this.boundingRect.width=i*2}getDrawableElements(){let e=[];if(this.showChartTitle)e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]});return e}};I(mYr,"getChartTitleComponent");I(Sft,"getLegendLayout");F2i=class{constructor(e,r,i,a){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=i,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{I(this,"ChartLegend")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter((p)=>p.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:r,markerSize:i,markerSpacing:a,itemSpacing:o}=Sft(this.chartConfig.legendFontSize),l=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map((p)=>p.title),r),h=this.chartConfig.legendPadding*2+i+a+l.width,d=this.chartConfig.legendPadding*2+this.visiblePlots.length*r+(this.visiblePlots.length-1)*o;if(h<=e.width&&d<=e.height)this.boundingRect.width=h,this.boundingRect.height=d;else this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0;return{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:r,markerSpacing:i,itemSpacing:a}=Sft(this.chartConfig.legendFontSize),o=e+a,l=this.boundingRect.x+this.chartConfig.legendPadding,h=this.boundingRect.y+this.chartConfig.legendPadding,d=[],p=[];for(let[m,y]of this.visiblePlots.entries())if(kke(y))d.push({x:l,y:h+m*o,width:r,height:r,fill:y.fill,strokeFill:y.fill,strokeWidth:0});else{let E=h+m*o+r/2;p.push({path:`M ${l},${E} L ${l+r},${E}`,strokeFill:y.strokeFill,strokeWidth:y.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:d},{groupTexts:["legend","markers"],type:"path",data:p},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((m,y)=>({text:m.title,x:l+r+i,y:h+y*o+r/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};I(bYr,"getChartLegendComponent");$2i=class{constructor(e,r,i,a,o){this.plotData=e,this.xAxis=r,this.yAxis=i,this.orientation=a,this.plotIndex=o}static{I(this,"LinePlot")}getDrawableElement(){let e=this.plotData.data.map((a)=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),r;if(this.orientation==="horizontal")r=zP().y((a)=>a[0]).x((a)=>a[1])(e);else r=zP().x((a)=>a[0]).y((a)=>a[1])(e);if(!r)return[];let i=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let l=[];for(let[h,[d,p]]of e.entries()){let m=this.plotData.pointLabels[h];if(!m)continue;if(this.orientation==="horizontal")l.push({x:p+10,y:d,text:m,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0});else l.push({x:d,y:p-10,text:m,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0})}if(l.length>0)i.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:l})}return i}},U2i=class{constructor(e,r,i,a,o,l){this.barData=e,this.boundingRect=r,this.xAxis=i,this.yAxis=a,this.orientation=o,this.plotIndex=l}static{I(this,"BarPlot")}getDrawableElement(){let e=this.barData.data.map((o)=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),r=0.05,i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*0.95,a=i/2;if(this.orientation==="horizontal")return[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map((o)=>({x:this.boundingRect.x,y:o[0]-a,height:i,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}];return[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map((o)=>({x:o[0]-a,y:o[1],width:i,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},G2i=class{constructor(e,r,i){this.chartConfig=e,this.chartData=r,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}static{I(this,"BasePlot")}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let e=[];for(let[r,i]of this.chartData.plots.entries())switch(i.type){case"line":{let a=new $2i(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break;case"bar":{let a=new U2i(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break}return e}};I(yYr,"getPlotComponent");z2i=class{constructor(e,r,i,a){this.chartConfig=e,this.chartData=r,this.componentStore={title:mYr(e,r,i,a),plot:yYr(e,r,i),legend:bYr(e,r,i,a),xAxis:wft(r.xAxis,e.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},a),yAxis:wft(r.yAxis,e.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},a)}}static{I(this,"Orchestrator")}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,i=0,a=0,o={width:0,height:0},l=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:l,height:h});if(e-=d.width,r-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=d.height,r-=d.height,this.componentStore.xAxis.setAxisPosition("bottom"),d=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=d.height,this.componentStore.yAxis.setAxisPosition("left"),d=this.componentStore.yAxis.calculateSpace({width:e,height:r}),i=d.width,e-=d.width,o=this.componentStore.legend.calculateSpace({width:e,height:h}),e-=o.width,e>0)l+=e,e=0;if(r>0)h+=r,r=0;if(this.componentStore.plot.calculateSpace({width:l,height:h}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.title.alignTo(i,i+l),this.componentStore.legend.setBoundingBoxXY({x:i+l,y:a+Math.max((h-o.height)/2,0)}),this.componentStore.xAxis.setRange([i,i+l]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:a+h}),this.componentStore.yAxis.setRange([a,a+h]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some((p)=>kke(p)))this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,i=0,a=0,o=0,l={width:0,height:0},h=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:h,height:d});if(e-=p.width,r-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=p.height,r-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=p.width,a=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=p.height,o=i+p.height,l=this.componentStore.legend.calculateSpace({width:e,height:d}),e-=l.width,e>0)h+=e,e=0;if(r>0)d+=r,r=0;if(this.componentStore.plot.calculateSpace({width:h,height:d}),this.componentStore.plot.setBoundingBoxXY({x:a,y:o}),this.componentStore.title.alignTo(a,a+h),this.componentStore.legend.setBoundingBoxXY({x:a+h,y:o+Math.max((d-l.height)/2,0)}),this.componentStore.yAxis.setRange([a,a+h]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:i}),this.componentStore.xAxis.setRange([o,o+d]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some((m)=>kke(m)))this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){if(this.chartConfig.chartOrientation==="horizontal")this.calculateHorizontalSpace();else this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}},V2i=class{static{I(this,"XYChartBuilder")}static build(e,r,i,a){return new z2i(e,r,i,a).getDrawableElement()}},loe=Aft(),coe=kft(),fu=Rft(),Tft=coe.plotColorPalette.split(",").map((e)=>e.trim());I(kft,"getChartDefaultThemeConfig");I(Aft,"getChartDefaultConfig");I(Rft,"getChartDefaultData");I(vF,"textSanitizer");I(_Yr,"setTmpSVGG");I(EYr,"setOrientation");I(wYr,"setXAxisTitle");I(Ift,"setXAxisRangeData");I(SYr,"setXAxisBand");I(TYr,"setYAxisTitle");I(xYr,"setYAxisRangeData");I(CYr,"setYAxisRangeFromPlotData");I(Oft,"transformDataWithoutCategory");I(Nft,"getPlotColorFromPalette");I(kYr,"setLineData");I(AYr,"setBarData");I(RYr,"getDrawableElem");I(IYr,"getChartThemeConfig");I(OYr,"getChartConfig");I(NYr,"getXYChartData");H2i=I(function(){qs(),ooe=0,loe=Aft(),fu=Rft(),coe=kft(),Tft=coe.plotColorPalette.split(",").map((e)=>e.trim()),Rke=!1,Cft=!1},"clear"),q2i={getDrawableElem:RYr,clear:H2i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js,setOrientation:EYr,setXAxisTitle:wYr,setXAxisRangeData:Ift,setXAxisBand:SYr,setYAxisTitle:TYr,setYAxisRangeData:xYr,setLineData:kYr,setBarData:AYr,setTmpSVGG:_Yr,getChartThemeConfig:IYr,getChartConfig:OYr,getXYChartData:NYr},Y2i=I((e,r,i,a)=>{let o=a.db,l=o.getChartThemeConfig(),h=o.getChartConfig(),d=o.getXYChartData().plots[0].data.map((L)=>L[1]);function p(L){return L==="top"?"text-before-edge":"middle"}I(p,"getDominantBaseLine");function m(L){return L==="left"?"start":L==="right"?"end":"middle"}I(m,"getTextAnchor");function y(L){return`translate(${L.x}, ${L.y}) rotate(${L.rotation||0})`}I(y,"getTextTransformation"),Ze.debug(`Rendering xychart chart -`+e);let E=Ou(r),w=E.append("g").attr("class","main"),T=w.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");Bl(E,h.height,h.width,!0),E.attr("viewBox",`0 0 ${h.width} ${h.height}`),T.attr("fill",l.backgroundColor),o.setTmpSVGG(E.append("g").attr("class","mermaid-tmp-group"));let x=o.getDrawableElem(),k={};function A(L){let B=w,D="";for(let[P]of L.entries()){let F=w;if(P>0&&k[D])F=k[D];if(D+=L[P],B=k[D],!B)B=k[D]=F.append("g").attr("class",L[P])}return B}I(A,"getGroup");for(let L of x){if(L.data.length===0)continue;let B=A(L.groupTexts);switch(L.type){case"rect":if(B.selectAll("rect").data(L.data).enter().append("rect").attr("x",(D)=>D.x).attr("y",(D)=>D.y).attr("width",(D)=>D.width).attr("height",(D)=>D.height).attr("fill",(D)=>D.fill).attr("stroke",(D)=>D.strokeFill).attr("stroke-width",(D)=>D.strokeWidth),h.showDataLabel){let D=h.showDataLabelOutsideBar;if(h.chartOrientation==="horizontal"){let P=function(j,te){let{data:X,label:W}=j;return te*W.length*F<=X.width-H};var R=P;I(P,"fitsHorizontally");let F=0.7,H=10,K=L.data.map((j,te)=>({data:j,label:d[te].toString()})).filter((j)=>j.data.width>0&&j.data.height>0),Q=K.map((j)=>{let{data:te}=j,X=te.height*0.7;while(!P(j,X)&&X>0)X-=1;return X}),Z=Math.floor(Math.min(...Q)),Y=I((j)=>{if(D)return j.data.x+j.data.width+H;else return j.data.x+j.data.width-H},"determineLabelXPosition");B.selectAll("text").data(K).enter().append("text").attr("x",Y).attr("y",(j)=>j.data.y+j.data.height/2).attr("text-anchor",D?"start":"end").attr("dominant-baseline","middle").attr("fill",l.dataLabelColor).attr("font-size",`${Z}px`).text((j)=>j.label)}else{let P=function(Y,j,te){let{data:X,label:W}=Y,J=0.7,z=j*W.length*0.7,ne=X.x+X.width/2,ie=ne-z/2,le=ne+z/2,se=ie>=X.x&&le<=X.x+X.width,he=X.y+te+j<=X.y+X.height;return se&&he};var N=P;I(P,"fitsInBar");let F=10,H=L.data.map((Y,j)=>({data:Y,label:d[j].toString()})).filter((Y)=>Y.data.width>0&&Y.data.height>0),K=H.map((Y)=>{let{data:j,label:te}=Y,X=j.width/(te.length*0.7);while(!P(Y,X,F)&&X>0)X-=1;return X}),Q=Math.floor(Math.min(...K)),Z=I((Y)=>{if(D)return Y.data.y-F;else return Y.data.y+F},"determineLabelYPosition");B.selectAll("text").data(H).enter().append("text").attr("x",(Y)=>Y.data.x+Y.data.width/2).attr("y",Z).attr("text-anchor","middle").attr("dominant-baseline",D?"auto":"hanging").attr("fill",l.dataLabelColor).attr("font-size",`${Q}px`).text((Y)=>Y.label)}}break;case"text":B.selectAll("text").data(L.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",(D)=>D.fill).attr("font-size",(D)=>D.fontSize).attr("dominant-baseline",(D)=>p(D.verticalPos)).attr("text-anchor",(D)=>m(D.horizontalPos)).attr("transform",(D)=>y(D)).text((D)=>D.text);break;case"path":B.selectAll("path").data(L.data).enter().append("path").attr("d",(D)=>D.path).attr("fill",(D)=>D.fill?D.fill:"none").attr("stroke",(D)=>D.strokeFill).attr("stroke-width",(D)=>D.strokeWidth);break}}},"draw"),W2i={draw:Y2i},LYr={parser:O2i,db:q2i,renderer:W2i}});var Lft,j2i,K2i,X2i,Q2i,Z2i,DYr,J2i,PYr;var BYr=Re(()=>{MC();fT();lT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();Lft=function(){var e=I(function(pe,fe,be,ze){for(be=be||{},ze=pe.length;ze--;be[pe[ze]]=fe);return be},"o"),r=[1,3],i=[1,4],a=[1,5],o=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],h=[1,22],d=[2,7],p=[1,26],m=[1,27],y=[1,28],E=[1,29],w=[1,33],T=[1,34],x=[1,35],k=[1,36],A=[1,37],R=[1,38],N=[1,24],L=[1,31],B=[1,32],D=[1,30],P=[1,39],F=[1,40],H=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],K=[1,61],Q=[89,90],Z=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[27,29],j=[1,70],te=[1,71],X=[1,72],W=[1,73],J=[1,74],z=[1,75],ne=[1,76],ie=[1,83],le=[1,80],se=[1,84],he=[1,85],ye=[1,86],xe=[1,87],Ie=[1,88],Ee=[1,89],Ue=[1,90],Me=[1,91],Xe=[1,92],je=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Qe=[63,64],St=[1,101],pt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],Vt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Xt=[1,110],rr=[1,106],We=[1,107],Nt=[1,108],ct=[1,109],bt=[1,111],Pe=[1,116],Ge=[1,117],qe=[1,114],Ke=[1,115],Je={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:I(function(fe,be,ze,Ce,_e,ke,it){var ut=ke.length-1;switch(_e){case 4:this.$=ke[ut].trim(),Ce.setAccTitle(this.$);break;case 5:case 6:this.$=ke[ut].trim(),Ce.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:Ce.setDirection("TB");break;case 18:Ce.setDirection("BT");break;case 19:Ce.setDirection("RL");break;case 20:Ce.setDirection("LR");break;case 21:Ce.addRequirement(ke[ut-3],ke[ut-4]);break;case 22:Ce.addRequirement(ke[ut-5],ke[ut-6]),Ce.setClass([ke[ut-5]],ke[ut-3]);break;case 23:Ce.setNewReqId(ke[ut-2]);break;case 24:Ce.setNewReqText(ke[ut-2]);break;case 25:Ce.setNewReqRisk(ke[ut-2]);break;case 26:Ce.setNewReqVerifyMethod(ke[ut-2]);break;case 29:this.$=Ce.RequirementType.REQUIREMENT;break;case 30:this.$=Ce.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=Ce.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=Ce.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=Ce.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=Ce.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=Ce.RiskLevel.LOW_RISK;break;case 36:this.$=Ce.RiskLevel.MED_RISK;break;case 37:this.$=Ce.RiskLevel.HIGH_RISK;break;case 38:this.$=Ce.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=Ce.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=Ce.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=Ce.VerifyType.VERIFY_TEST;break;case 42:Ce.addElement(ke[ut-3]);break;case 43:Ce.addElement(ke[ut-5]),Ce.setClass([ke[ut-5]],ke[ut-3]);break;case 44:Ce.setNewElementType(ke[ut-2]);break;case 45:Ce.setNewElementDocRef(ke[ut-2]);break;case 48:Ce.addRelationship(ke[ut-2],ke[ut],ke[ut-4]);break;case 49:Ce.addRelationship(ke[ut-2],ke[ut-4],ke[ut]);break;case 50:this.$=Ce.Relationships.CONTAINS;break;case 51:this.$=Ce.Relationships.COPIES;break;case 52:this.$=Ce.Relationships.DERIVES;break;case 53:this.$=Ce.Relationships.SATISFIES;break;case 54:this.$=Ce.Relationships.VERIFIES;break;case 55:this.$=Ce.Relationships.REFINES;break;case 56:this.$=Ce.Relationships.TRACES;break;case 57:this.$=ke[ut-2],Ce.defineClass(ke[ut-1],ke[ut]);break;case 58:Ce.setClass(ke[ut-1],ke[ut]);break;case 59:Ce.setClass([ke[ut-2]],ke[ut]);break;case 60:case 62:this.$=[ke[ut]];break;case 61:case 63:this.$=ke[ut-2].concat([ke[ut]]);break;case 64:this.$=ke[ut-2],Ce.setCssStyle(ke[ut-1],ke[ut]);break;case 65:this.$=[ke[ut]];break;case 66:ke[ut-2].push(ke[ut]),this.$=ke[ut-2];break;case 68:this.$=ke[ut-1]+ke[ut];break}},"anonymous"),table:[{3:1,4:2,6:r,9:i,11:a,13:o},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:i,11:a,13:o},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:i,11:a,13:o},{1:[2,2]},{4:17,5:h,7:13,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:h,7:42,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:43,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:44,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:45,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:46,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:47,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:48,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:49,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:50,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:E,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(H,[2,17]),e(H,[2,18]),e(H,[2,19]),e(H,[2,20]),{30:60,33:62,75:K,89:P,90:F},{30:63,33:62,75:K,89:P,90:F},{30:64,33:62,75:K,89:P,90:F},e(Q,[2,29]),e(Q,[2,30]),e(Q,[2,31]),e(Q,[2,32]),e(Q,[2,33]),e(Q,[2,34]),e(Z,[2,81]),e(Z,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Y,[2,79]),e(Y,[2,80]),{27:[1,67],29:[1,68]},e(Y,[2,85]),e(Y,[2,86]),{62:69,65:j,66:te,67:X,68:W,69:J,70:z,71:ne},{62:77,65:j,66:te,67:X,68:W,69:J,70:z,71:ne},{30:78,33:62,75:K,89:P,90:F},{73:79,75:ie,76:le,78:81,79:82,80:se,81:he,82:ye,83:xe,84:Ie,85:Ee,86:Ue,87:Me,88:Xe},e(je,[2,60]),e(je,[2,62]),{73:93,75:ie,76:le,78:81,79:82,80:se,81:he,82:ye,83:xe,84:Ie,85:Ee,86:Ue,87:Me,88:Xe},{30:94,33:62,75:K,76:le,89:P,90:F},{5:[1,95]},{30:96,33:62,75:K,89:P,90:F},{5:[1,97]},{30:98,33:62,75:K,89:P,90:F},{63:[1,99]},e(Qe,[2,50]),e(Qe,[2,51]),e(Qe,[2,52]),e(Qe,[2,53]),e(Qe,[2,54]),e(Qe,[2,55]),e(Qe,[2,56]),{64:[1,100]},e(H,[2,59],{76:le}),e(H,[2,64],{76:St}),{33:103,75:[1,102],89:P,90:F},e(pt,[2,65],{79:104,75:ie,80:se,81:he,82:ye,83:xe,84:Ie,85:Ee,86:Ue,87:Me,88:Xe}),e(Vt,[2,67]),e(Vt,[2,69]),e(Vt,[2,70]),e(Vt,[2,71]),e(Vt,[2,72]),e(Vt,[2,73]),e(Vt,[2,74]),e(Vt,[2,75]),e(Vt,[2,76]),e(Vt,[2,77]),e(Vt,[2,78]),e(H,[2,57],{76:St}),e(H,[2,58],{76:le}),{5:Xt,28:105,31:rr,34:We,36:Nt,38:ct,40:bt},{27:[1,112],76:le},{5:Pe,40:Ge,56:113,57:qe,59:Ke},{27:[1,118],76:le},{33:119,89:P,90:F},{33:120,89:P,90:F},{75:ie,78:121,79:82,80:se,81:he,82:ye,83:xe,84:Ie,85:Ee,86:Ue,87:Me,88:Xe},e(je,[2,61]),e(je,[2,63]),e(Vt,[2,68]),e(H,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Xt,28:126,31:rr,34:We,36:Nt,38:ct,40:bt},e(H,[2,28]),{5:[1,127]},e(H,[2,42]),{32:[1,128]},{32:[1,129]},{5:Pe,40:Ge,56:130,57:qe,59:Ke},e(H,[2,47]),{5:[1,131]},e(H,[2,48]),e(H,[2,49]),e(pt,[2,66],{79:104,75:ie,80:se,81:he,82:ye,83:xe,84:Ie,85:Ee,86:Ue,87:Me,88:Xe}),{33:132,89:P,90:F},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(H,[2,27]),{5:Xt,28:145,31:rr,34:We,36:Nt,38:ct,40:bt},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(H,[2,46]),{5:Pe,40:Ge,56:152,57:qe,59:Ke},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(H,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(H,[2,43]),{5:Xt,28:159,31:rr,34:We,36:Nt,38:ct,40:bt},{5:Xt,28:160,31:rr,34:We,36:Nt,38:ct,40:bt},{5:Xt,28:161,31:rr,34:We,36:Nt,38:ct,40:bt},{5:Xt,28:162,31:rr,34:We,36:Nt,38:ct,40:bt},{5:Pe,40:Ge,56:163,57:qe,59:Ke},{5:Pe,40:Ge,56:164,57:qe,59:Ke},e(H,[2,23]),e(H,[2,24]),e(H,[2,25]),e(H,[2,26]),e(H,[2,44]),e(H,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:I(function(fe,be){if(be.recoverable)this.trace(fe);else{var ze=Error(fe);throw ze.hash=be,ze}},"parseError"),parse:I(function(fe){var be=this,ze=[0],Ce=[],_e=[null],ke=[],it=this.table,ut="",gt=0,vt=0,ir=0,qt=2,cr=1,tr=ke.slice.call(arguments,1),Zt=Object.create(this.lexer),lr={yy:{}};for(var Kt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Kt))lr.yy[Kt]=this.yy[Kt];if(Zt.setInput(fe,lr.yy),lr.yy.lexer=Zt,lr.yy.parser=this,typeof Zt.yylloc>"u")Zt.yylloc={};var In=Zt.yylloc;ke.push(In);var Et=Zt.options&&Zt.options.ranges;if(typeof lr.yy.parseError==="function")this.parseError=lr.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Xn(_t){ze.length=ze.length-2*_t,_e.length=_e.length-_t,ke.length=ke.length-_t}I(Xn,"popStack");function Yt(){var _t=Ce.pop()||Zt.lex()||cr;if(typeof _t!=="number"){if(_t instanceof Array)Ce=_t,_t=Ce.pop();_t=be.symbols_[_t]||_t}return _t}I(Yt,"lex");var Bn,si,hn,Ii,Vn,Ei,yn={},Li,Ia,tt,Fn;while(!0){if(hn=ze[ze.length-1],this.defaultActions[hn])Ii=this.defaultActions[hn];else{if(Bn===null||typeof Bn>"u")Bn=Yt();Ii=it[hn]&&it[hn][Bn]}if(typeof Ii>"u"||!Ii.length||!Ii[0]){var Hn="";Fn=[];for(Li in it[hn])if(this.terminals_[Li]&&Li>qt)Fn.push("'"+this.terminals_[Li]+"'");if(Zt.showPosition)Hn="Parse error on line "+(gt+1)+`: +Expecting `+ln.join(", ")+", got '"+(this.terminals_[Vn]||Vn)+"'";else mn="Parse error on line "+(cr+1)+": Unexpected "+(Vn==Xt?"end of input":"'"+(this.terminals_[Vn]||Vn)+"'");this.parseError(mn,{text:Et.match,token:this.terminals_[Vn]||Vn,line:Et.yylineno,loc:Bn,expected:ln})}if(Li[0]instanceof Array&&Li.length>1)throw Error("Parse Error: multiple actions possible at state: "+vn+", token: "+Vn);switch(Li[0]){case 1:if(at.push(Vn),gt.push(Et.yytext),vt.push(Et.yylloc),at.push(Li[1]),Vn=null,!Ei){if(tr=Et.yyleng,qt=Et.yytext,cr=Et.yylineno,Bn=Et.yylloc,Zt>0)Zt--}else Vn=Ei,Ei=null;break;case 2:if(_t=this.productions_[Li[1]][1],Fn.$=gt[gt.length-_t],Fn._$={first_line:vt[vt.length-(_t||1)].first_line,last_line:vt[vt.length-1].last_line,first_column:vt[vt.length-(_t||1)].first_column,last_column:vt[vt.length-1].last_column},si)Fn._$.range=[vt[vt.length-(_t||1)].range[0],vt[vt.length-1].range[1]];if(tt=this.performAction.apply(Fn,[qt,tr,cr,Xn.yy,Li[1],gt,vt].concat(In)),typeof tt<"u")return tt;if(_t)at=at.slice(0,-1*_t*2),gt=gt.slice(0,-1*_t),vt=vt.slice(0,-1*_t);at.push(this.productions_[Li[1]][0]),gt.push(Fn.$),vt.push(Fn._$),Sr=ir[at[at.length-2]][at[at.length-1]],at.push(Sr);break;case 3:return!0}}return!0},"parse")},be=function(){var ke={EOF:1,parseError:I(function(Ae,at){if(this.yy.parser)this.yy.parser.parseError(Ae,at);else throw Error(Ae)},"parseError"),setInput:I(function(we,Ae){if(this.yy=Ae||this.yy||{},this._input=we,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var we=this._input[0];this.yytext+=we,this.yyleng++,this.offset++,this.match+=we,this.matched+=we;var Ae=we.match(/(?:\r\n?|\n).*/g);if(Ae)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),we},"input"),unput:I(function(we){var Ae=we.length,at=we.split(/(?:\r\n?|\n)/g);this._input=we+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Ae),this.offset-=Ae;var ut=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),at.length-1)this.yylineno-=at.length-1;var gt=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:at?(at.length===ut.length?this.yylloc.first_column:0)+ut[ut.length-at.length].length-at[0].length:this.yylloc.first_column-Ae},this.options.ranges)this.yylloc.range=[gt[0],gt[0]+this.yyleng-Ae];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(we){this.unput(this.match.slice(we))},"less"),pastInput:I(function(){var we=this.matched.substr(0,this.matched.length-this.match.length);return(we.length>20?"...":"")+we.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var we=this.match;if(we.length<20)we+=this._input.substr(0,20-we.length);return(we.substr(0,20)+(we.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var we=this.pastInput(),Ae=Array(we.length+1).join("-");return we+this.upcomingInput()+` +`+Ae+"^"},"showPosition"),test_match:I(function(we,Ae){var at,ut,gt;if(this.options.backtrack_lexer){if(gt={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)gt.yylloc.range=this.yylloc.range.slice(0)}if(ut=we[0].match(/(?:\r\n?|\n).*/g),ut)this.yylineno+=ut.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ut?ut[ut.length-1].length-ut[ut.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+we[0].length},this.yytext+=we[0],this.match+=we[0],this.matches=we,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(we[0].length),this.matched+=we[0],at=this.performAction.call(this,this.yy,this,Ae,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(at)return at;else if(this._backtrack){for(var vt in gt)this[vt]=gt[vt];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var we,Ae,at,ut;if(!this._more)this.yytext="",this.match="";var gt=this._currentRules();for(var vt=0;vtAe[0].length)){if(Ae=at,ut=vt,this.options.backtrack_lexer)if(we=this.test_match(at,gt[vt]),we!==!1)return we;else if(this._backtrack){Ae=!1;continue}else return!1;else if(!this.options.flex)break}if(Ae){if(we=this.test_match(Ae,gt[ut]),we!==!1)return we;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Ae=this.next();if(Ae)return Ae;else return this.lex()},"lex"),begin:I(function(Ae){this.conditionStack.push(Ae)},"begin"),popState:I(function(){var Ae=this.conditionStack.length-1;if(Ae>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Ae){if(Ae=this.conditionStack.length-1-Math.abs(Ae||0),Ae>=0)return this.conditionStack[Ae];else return"INITIAL"},"topState"),pushState:I(function(Ae){this.begin(Ae)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(Ae,at,ut,gt){var vt=gt;switch(ut){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;break;case 5:return this.popState(),"title_value";break;case 6:return this.begin("acc_title"),37;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),39;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;break;case 29:return this.begin("point_start"),44;break;case 30:return this.begin("point_x"),45;break;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;break;case 34:return 28;case 35:return 4;case 36:return 15;case 37:return 11;case 38:return 64;case 39:return 10;case 40:return 65;case 41:return 65;case 42:return 14;case 43:return 13;case 44:return 67;case 45:return 66;case 46:return 12;case 47:return 8;case 48:return 5;case 49:return 18;case 50:return 56;case 51:return 63;case 52:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?:[^\x00-\x7F]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52],inclusive:!0}}};return ke}();fe.lexer=be;function Ge(){this.yy={}}return I(Ge,"Parser"),Ge.prototype=fe,fe.Parser=Ge,new Ge}();wft.parser=wft;O2i=wft,Av=Kb(),N2i=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}static{I(this,"QuadrantBuilder")}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:Fs.quadrantChart?.chartWidth||500,chartWidth:Fs.quadrantChart?.chartHeight||500,titlePadding:Fs.quadrantChart?.titlePadding||10,titleFontSize:Fs.quadrantChart?.titleFontSize||20,quadrantPadding:Fs.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:Fs.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:Fs.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:Fs.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:Fs.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:Fs.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:Fs.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:Fs.quadrantChart?.pointTextPadding||5,pointLabelFontSize:Fs.quadrantChart?.pointLabelFontSize||12,pointRadius:Fs.quadrantChart?.pointRadius||5,xAxisPosition:Fs.quadrantChart?.xAxisPosition||"top",yAxisPosition:Fs.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:Fs.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:Fs.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:Av.quadrant1Fill,quadrant2Fill:Av.quadrant2Fill,quadrant3Fill:Av.quadrant3Fill,quadrant4Fill:Av.quadrant4Fill,quadrant1TextFill:Av.quadrant1TextFill,quadrant2TextFill:Av.quadrant2TextFill,quadrant3TextFill:Av.quadrant3TextFill,quadrant4TextFill:Av.quadrant4TextFill,quadrantPointFill:Av.quadrantPointFill,quadrantPointTextFill:Av.quadrantPointTextFill,quadrantXAxisTextFill:Av.quadrantXAxisTextFill,quadrantYAxisTextFill:Av.quadrantYAxisTextFill,quadrantTitleFill:Av.quadrantTitleFill,quadrantInternalBorderStrokeFill:Av.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:Av.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,Ze.info("clear called")}setData(e){this.data={...this.data,...e}}addPoints(e){this.data.points=[...e,...this.data.points]}addClass(e,r){this.classes.set(e,r)}setConfig(e){Ze.trace("setConfig called with: ",e),this.config={...this.config,...e}}setThemeConfig(e){Ze.trace("setThemeConfig called with: ",e),this.themeConfig={...this.themeConfig,...e}}calculateSpace(e,r,i,a){let o=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,l={top:e==="top"&&r?o:0,bottom:e==="bottom"&&r?o:0},h=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,d={left:this.config.yAxisPosition==="left"&&i?h:0,right:this.config.yAxisPosition==="right"&&i?h:0},p=this.config.titleFontSize+this.config.titlePadding*2,m={top:a?p:0},y=this.config.quadrantPadding+d.left,v=this.config.quadrantPadding+l.top+m.top,w=this.config.chartWidth-this.config.quadrantPadding*2-d.left-d.right,T=this.config.chartHeight-this.config.quadrantPadding*2-l.top-l.bottom-m.top,x=w/2,k=T/2;return{xAxisSpace:l,yAxisSpace:d,titleSpace:m,quadrantSpace:{quadrantLeft:y,quadrantTop:v,quadrantWidth:w,quadrantHalfWidth:x,quadrantHeight:T,quadrantHalfHeight:k}}}getAxisLabels(e,r,i,a){let{quadrantSpace:o,titleSpace:l}=a,{quadrantHalfHeight:h,quadrantHeight:d,quadrantLeft:p,quadrantHalfWidth:m,quadrantTop:y,quadrantWidth:v}=o,w=Boolean(this.data.xAxisRightText),T=Boolean(this.data.yAxisTopText),x=[];if(this.data.xAxisLeftText&&r)x.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+(w?m/2:0),y:e==="top"?this.config.xAxisLabelPadding+l.top:this.config.xAxisLabelPadding+y+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0});if(this.data.xAxisRightText&&r)x.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:p+m+(w?m/2:0),y:e==="top"?this.config.xAxisLabelPadding+l.top:this.config.xAxisLabelPadding+y+d+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:w?"center":"left",horizontalPos:"top",rotation:0});if(this.data.yAxisBottomText&&i)x.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+v+this.config.quadrantPadding,y:y+d-(T?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:-90});if(this.data.yAxisTopText&&i)x.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+p+v+this.config.quadrantPadding,y:y+h-(T?h/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:T?"center":"left",horizontalPos:"top",rotation:-90});return x}getQuadrants(e){let{quadrantSpace:r}=e,{quadrantHalfHeight:i,quadrantLeft:a,quadrantHalfWidth:o,quadrantTop:l}=r,h=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+o,y:l,width:o,height:i,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:l,width:o,height:i,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a,y:l+i,width:o,height:i,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:a+o,y:l+i,width:o,height:i,fill:this.themeConfig.quadrant4Fill}];for(let d of h)if(d.text.x=d.x+d.width/2,this.data.points.length===0)d.text.y=d.y+d.height/2,d.text.horizontalPos="middle";else d.text.y=d.y+this.config.quadrantTextTopPadding,d.text.horizontalPos="top";return h}getQuadrantPoints(e){let{quadrantSpace:r}=e,{quadrantHeight:i,quadrantLeft:a,quadrantTop:o,quadrantWidth:l}=r,h=pC().domain([0,1]).range([a,l+a]),d=pC().domain([0,1]).range([i+o,o]);return this.data.points.map((m)=>{let y=this.classes.get(m.className);if(y)m={...y,...m};return{x:h(m.x),y:d(m.y),fill:m.color??this.themeConfig.quadrantPointFill,radius:m.radius??this.config.pointRadius,text:{text:m.text,fill:this.themeConfig.quadrantPointTextFill,x:h(m.x),y:d(m.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:m.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:m.strokeWidth??"0px"}})}getBorders(e){let r=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:i}=e,{quadrantHalfHeight:a,quadrantHeight:o,quadrantLeft:l,quadrantHalfWidth:h,quadrantTop:d,quadrantWidth:p}=i;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l-r,y1:d,x2:l+p+r,y2:d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l+p,y1:d+r,x2:l+p,y2:d+o-r},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l-r,y1:d+o,x2:l+p+r,y2:d+o},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:l,y1:d+r,x2:l,y2:d+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:l+h,y1:d+r,x2:l+h,y2:d+o-r},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:l+r,y1:d+a,x2:l+p-r,y2:d+a}]}getTitle(e){if(e)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2};return}build(){let e=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),r=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),i=this.config.showTitle&&!!this.data.titleText,a=this.data.points.length>0?"bottom":this.config.xAxisPosition,o=this.calculateSpace(a,e,r,i);return{points:this.getQuadrantPoints(o),quadrants:this.getQuadrants(o),axisLabels:this.getAxisLabels(a,e,r,o),borderLines:this.getBorders(o),title:this.getTitle(i)}}},Ake=class extends Error{static{I(this,"InvalidStyleError")}constructor(e,r,i){super(`value for ${e} ${r} is invalid, please use a valid ${i}`);this.name="InvalidStyleError"}};I(Sft,"validateHexCode");I(tYr,"validateNumber");I(rYr,"validateSizeInPixels");I(rA,"textSanitizer");nb=new N2i;I(nYr,"setQuadrant1Text");I(iYr,"setQuadrant2Text");I(aYr,"setQuadrant3Text");I(sYr,"setQuadrant4Text");I(oYr,"setXAxisLeftText");I(lYr,"setXAxisRightText");I(cYr,"setYAxisTopText");I(uYr,"setYAxisBottomText");I(Rke,"parseStyles");I(hYr,"addPoint");I(dYr,"addClass");I(fYr,"setWidth");I(pYr,"setHeight");I(gYr,"getQuadrantData");L2i=I(function(){nb.clear(),qs()},"clear"),M2i={setWidth:fYr,setHeight:pYr,setQuadrant1Text:nYr,setQuadrant2Text:iYr,setQuadrant3Text:aYr,setQuadrant4Text:sYr,setXAxisLeftText:oYr,setXAxisRightText:lYr,setYAxisTopText:cYr,setYAxisBottomText:uYr,parseStyles:Rke,addPoint:hYr,addClass:dYr,getQuadrantData:gYr,clear:L2i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},D2i=I((e,r,i,a)=>{function o(H){return H==="top"?"hanging":"middle"}I(o,"getDominantBaseLine");function l(H){return H==="left"?"start":"middle"}I(l,"getTextAnchor");function h(H){return`translate(${H.x}, ${H.y}) rotate(${H.rotation||0})`}I(h,"getTransformation");let d=Ar();Ze.debug(`Rendering quadrant chart +`+e);let p=d.securityLevel,m;if(p==="sandbox")m=xn("#i"+r);let v=(p==="sandbox"?xn(m.nodes()[0].contentDocument.body):xn("body")).select(`[id="${r}"]`),w=v.append("g").attr("class","main"),T=d.quadrantChart?.chartWidth??500,x=d.quadrantChart?.chartHeight??500;Bl(v,x,T,d.quadrantChart?.useMaxWidth??!0),v.attr("viewBox","0 0 "+T+" "+x),a.db.setHeight(x),a.db.setWidth(T);let k=a.db.getQuadrantData(),A=w.append("g").attr("class","quadrants"),R=w.append("g").attr("class","border"),N=w.append("g").attr("class","data-points"),L=w.append("g").attr("class","labels"),B=w.append("g").attr("class","title");if(k.title)B.append("text").attr("x",0).attr("y",0).attr("fill",k.title.fill).attr("font-size",k.title.fontSize).attr("dominant-baseline",o(k.title.horizontalPos)).attr("text-anchor",l(k.title.verticalPos)).attr("transform",h(k.title)).text(k.title.text);if(k.borderLines)R.selectAll("line").data(k.borderLines).enter().append("line").attr("x1",(H)=>H.x1).attr("y1",(H)=>H.y1).attr("x2",(H)=>H.x2).attr("y2",(H)=>H.y2).style("stroke",(H)=>H.strokeFill).style("stroke-width",(H)=>H.strokeWidth);let D=A.selectAll("g.quadrant").data(k.quadrants).enter().append("g").attr("class","quadrant");D.append("rect").attr("x",(H)=>H.x).attr("y",(H)=>H.y).attr("width",(H)=>H.width).attr("height",(H)=>H.height).attr("fill",(H)=>H.fill),D.append("text").attr("x",0).attr("y",0).attr("fill",(H)=>H.text.fill).attr("font-size",(H)=>H.text.fontSize).attr("dominant-baseline",(H)=>o(H.text.horizontalPos)).attr("text-anchor",(H)=>l(H.text.verticalPos)).attr("transform",(H)=>h(H.text)).text((H)=>H.text.text),L.selectAll("g.label").data(k.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text((H)=>H.text).attr("fill",(H)=>H.fill).attr("font-size",(H)=>H.fontSize).attr("dominant-baseline",(H)=>o(H.horizontalPos)).attr("text-anchor",(H)=>l(H.verticalPos)).attr("transform",(H)=>h(H));let F=N.selectAll("g.data-point").data(k.points).enter().append("g").attr("class","data-point");F.append("circle").attr("cx",(H)=>H.x).attr("cy",(H)=>H.y).attr("r",(H)=>H.radius).attr("fill",(H)=>H.fill).attr("stroke",(H)=>H.strokeColor).attr("stroke-width",(H)=>H.strokeWidth),F.append("text").attr("x",0).attr("y",0).text((H)=>H.text.text).attr("fill",(H)=>H.text.fill).attr("font-size",(H)=>H.text.fontSize).attr("dominant-baseline",(H)=>o(H.text.horizontalPos)).attr("text-anchor",(H)=>l(H.text.verticalPos)).attr("transform",(H)=>h(H.text))},"draw"),P2i={draw:D2i},mYr={parser:O2i,db:M2i,renderer:P2i,styles:I(()=>"","styles")}});function Ike(e){return e.type==="bar"}function Oke(e){return e.type==="band"}function qY(e){return e.type==="linear"}function xft(e,r,i,a){let o=new Aft(a);if(Oke(e))return new F2i(r,i,e.categories,e.title,o);return new $2i(r,i,[e.min,e.max],e.title,o)}function EYr(e,r,i,a){let o=new Aft(a);return new U2i(o,e,r,i)}function Cft(e){return{fontSize:e,markerSize:e*G2i,markerSpacing:e*V2i,itemSpacing:e*z2i}}function wYr(e,r,i,a){let o=new Aft(a);return new H2i(o,e,r,i)}function SYr(e,r,i){return new W2i(e,r,i)}function Ift(){let e=Kb(),r=ea();return bc(e.xyChart,r.themeVariables.xyChart)}function Oft(){let e=ea();return bc(Fs.xyChart,e.xyChart)}function Nft(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function EF(e){let r=ea();return ho(e.trim(),r)}function xYr(e){TYr=e}function CYr(e){if(e==="horizontal")hoe.chartOrientation="horizontal";else hoe.chartOrientation="vertical"}function kYr(e){fu.xAxis.title=EF(e.text)}function Lft(e,r){fu.xAxis={type:"linear",title:fu.xAxis.title,min:e,max:r},Nke=!0}function AYr(e){fu.xAxis={type:"band",title:fu.xAxis.title,categories:e.map((r)=>EF(r.text))},Nke=!0}function RYr(e){fu.yAxis.title=EF(e.text)}function IYr(e,r){fu.yAxis={type:"linear",title:fu.yAxis.title,min:e,max:r},Rft=!0}function OYr(e){let r=Math.min(...e),i=Math.max(...e),a=qY(fu.yAxis)?fu.yAxis.min:1/0,o=qY(fu.yAxis)?fu.yAxis.max:-1/0;fu.yAxis={type:"linear",title:fu.yAxis.title,min:Math.min(a,r),max:Math.max(o,i)}}function Mft(e){let r=[];if(e.length===0)return r;if(!Nke){let i=qY(fu.xAxis)?fu.xAxis.min:1/0,a=qY(fu.xAxis)?fu.xAxis.max:-1/0;Lft(Math.min(i,1),Math.max(a,e.length))}if(Oke(fu.xAxis)&&e.length>fu.xAxis.categories.length)e=e.slice(0,fu.xAxis.categories.length);if(!Rft)OYr(e);if(Oke(fu.xAxis))r=fu.xAxis.categories.map((i,a)=>[i,e[a]]);if(qY(fu.xAxis)){let i=fu.xAxis.min,a=fu.xAxis.max;if(e.length===1)r=[[`${i}`,e[0]]];else{let o=(a-i)/(e.length-1);r=e.map((l,h)=>[`${i+h*o}`,l])}}return r}function Dft(e){return kft[e===0?0:e%kft.length]}function NYr(e,r){let i=r.map((h)=>h.value),a=r.map((h)=>h.label?EF(h.label):""),o=Mft(i),l=a.some((h)=>h!=="");fu.plots.push({type:"line",title:EF(e.text),strokeFill:Dft(uoe),strokeWidth:2,data:o,...l?{pointLabels:a}:{}}),uoe++}function LYr(e,r){let i=r.map((o)=>o.value),a=Mft(i);fu.plots.push({type:"bar",title:EF(e.text),fill:Dft(uoe),data:a}),uoe++}function MYr(){if(fu.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return fu.title=fo(),K2i.build(hoe,fu,doe,TYr)}function DYr(){return doe}function PYr(){return hoe}function BYr(){return fu}var Tft,B2i,Aft,yYr=0.7,vYr=0.2,_Yr,F2i,$2i,U2i,G2i=0.75,z2i=0.5,V2i=0.35,H2i,q2i,Y2i,W2i,j2i,K2i,uoe=0,TYr,hoe,doe,fu,kft,Nke=!1,Rft=!1,X2i,Q2i,Z2i,J2i,FYr;var $Yr=Re(()=>{A0();Bp();Pp();Ql();eo();Zs();Ja();dl();dl();dl();Tft=function(){var e=I(function(j,ee,z,ne){for(z=z||{},ne=j.length;ne--;z[j[ne]]=ee);return z},"o"),r=[1,10,12,14,16,18,19,21,23],i=[2,6],a=[1,3],o=[1,5],l=[1,6],h=[1,7],d=[1,5,10,12,14,16,18,19,21,23,36,37,38],p=[1,25],m=[1,26],y=[1,28],v=[1,29],w=[1,30],T=[1,31],x=[1,32],k=[1,33],A=[1,34],R=[1,35],N=[1,36],L=[1,37],B=[1,43],D=[1,42],P=[1,47],F=[1,50],H=[1,10,12,14,16,18,19,21,23,36,37,38],W=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],X=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],Q=[1,65],Y=[26,28],K={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:I(function(ee,z,ne,ie,se,oe,he){var ye=oe.length-1;switch(se){case 5:ie.setOrientation(oe[ye]);break;case 9:ie.setDiagramTitle(oe[ye].text.trim());break;case 12:ie.setLineData({text:"",type:"text"},oe[ye]);break;case 13:ie.setLineData(oe[ye-1],oe[ye]);break;case 14:ie.setBarData({text:"",type:"text"},oe[ye]);break;case 15:ie.setBarData(oe[ye-1],oe[ye]);break;case 16:this.$=oe[ye].trim(),ie.setAccTitle(this.$);break;case 17:case 18:this.$=oe[ye].trim(),ie.setAccDescription(this.$);break;case 19:this.$=oe[ye-1];break;case 20:case 30:this.$=[oe[ye-2],...oe[ye]];break;case 21:case 31:this.$=[oe[ye]];break;case 22:this.$={value:Number(oe[ye-1]),label:oe[ye]};break;case 23:this.$={value:Number(oe[ye]),label:""};break;case 24:ie.setXAxisTitle(oe[ye]);break;case 25:ie.setXAxisTitle(oe[ye-1]);break;case 26:ie.setXAxisTitle({type:"text",text:""});break;case 27:ie.setXAxisBand(oe[ye]);break;case 28:ie.setXAxisRangeData(Number(oe[ye-2]),Number(oe[ye]));break;case 29:this.$=oe[ye-1];break;case 32:ie.setYAxisTitle(oe[ye]);break;case 33:ie.setYAxisTitle(oe[ye-1]);break;case 34:ie.setYAxisTitle({type:"text",text:""});break;case 35:ie.setYAxisRangeData(Number(oe[ye-2]),Number(oe[ye]));break;case 39:this.$={text:oe[ye],type:"text"};break;case 40:this.$={text:oe[ye],type:"text"};break;case 41:this.$={text:oe[ye],type:"markdown"};break;case 42:this.$=oe[ye];break;case 43:this.$=oe[ye-1]+""+oe[ye];break}},"anonymous"),table:[e(r,i,{3:1,4:2,7:4,5:a,36:o,37:l,38:h}),{1:[3]},e(r,i,{4:2,7:4,3:8,5:a,36:o,37:l,38:h}),e(r,i,{4:2,7:4,6:9,3:10,5:a,8:[1,11],36:o,37:l,38:h}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(d,[2,36]),e(d,[2,37]),e(d,[2,38]),{1:[2,1]},e(r,i,{4:2,7:4,3:21,5:a,36:o,37:l,38:h}),{1:[2,3]},e(d,[2,5]),e(r,[2,7],{4:22,36:o,37:l,38:h}),{11:23,30:p,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:39,13:38,24:B,29:D,30:p,31:40,32:41,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:45,15:44,29:P,30:p,35:46,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:49,17:48,24:F,30:p,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{11:52,17:51,24:F,30:p,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},{20:[1,53]},{22:[1,54]},e(H,[2,18]),{1:[2,2]},e(H,[2,8]),e(H,[2,9]),e(W,[2,39],{41:55,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L}),e(W,[2,40]),e(W,[2,41]),e(X,[2,42]),e(X,[2,44]),e(X,[2,45]),e(X,[2,46]),e(X,[2,47]),e(X,[2,48]),e(X,[2,49]),e(X,[2,50]),e(X,[2,51]),e(X,[2,52]),e(X,[2,53]),e(H,[2,10]),e(H,[2,24],{32:41,31:56,24:B,29:D}),e(H,[2,26]),e(H,[2,27]),{33:[1,57]},{11:59,30:p,34:58,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},e(H,[2,11]),e(H,[2,32],{35:60,29:P}),e(H,[2,34]),{33:[1,61]},e(H,[2,12]),{17:62,24:F},{25:63,27:64,29:Q},e(H,[2,14]),{17:66,24:F},e(H,[2,16]),e(H,[2,17]),e(X,[2,43]),e(H,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(H,[2,33]),{29:[1,70]},e(H,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(Y,[2,23],{30:[1,73]}),e(H,[2,15]),e(H,[2,28]),e(H,[2,29]),{11:59,30:p,34:74,39:24,40:m,41:27,42:y,43:v,44:w,45:T,46:x,47:k,48:A,49:R,50:N,51:L},e(H,[2,35]),e(H,[2,19]),{25:75,27:64,29:Q},e(Y,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:I(function(ee,z){if(z.recoverable)this.trace(ee);else{var ne=Error(ee);throw ne.hash=z,ne}},"parseError"),parse:I(function(ee){var z=this,ne=[0],ie=[],se=[null],oe=[],he=this.table,ye="",Se=0,Ie=0,Ee=0,ze=2,Me=1,Xe=oe.slice.call(arguments,1),Ye=Object.create(this.lexer),Qe={yy:{}};for(var xt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,xt))Qe.yy[xt]=this.yy[xt];if(Ye.setInput(ee,Qe.yy),Qe.yy.lexer=Ye,Qe.yy.parser=this,typeof Ye.yylloc>"u")Ye.yylloc={};var dt=Ye.yylloc;oe.push(dt);var zt=Ye.options&&Ye.options.ranges;if(typeof Qe.yy.parseError==="function")this.parseError=Qe.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Kt(fe){ne.length=ne.length-2*fe,se.length=se.length-fe,oe.length=oe.length-fe}I(Kt,"popStack");function rr(){var fe=ie.pop()||Ye.lex()||Me;if(typeof fe!=="number"){if(fe instanceof Array)ie=fe,fe=ie.pop();fe=z.symbols_[fe]||fe}return fe}I(rr,"lex");var je,Nt,ct,bt,Pe,Ue,qe={},Ke,Je,De,le;while(!0){if(ct=ne[ne.length-1],this.defaultActions[ct])bt=this.defaultActions[ct];else{if(je===null||typeof je>"u")je=rr();bt=he[ct]&&he[ct][je]}if(typeof bt>"u"||!bt.length||!bt[0]){var pe="";le=[];for(Ke in he[ct])if(this.terminals_[Ke]&&Ke>ze)le.push("'"+this.terminals_[Ke]+"'");if(Ye.showPosition)pe="Parse error on line "+(Se+1)+`: +`+Ye.showPosition()+` +Expecting `+le.join(", ")+", got '"+(this.terminals_[je]||je)+"'";else pe="Parse error on line "+(Se+1)+": Unexpected "+(je==Me?"end of input":"'"+(this.terminals_[je]||je)+"'");this.parseError(pe,{text:Ye.match,token:this.terminals_[je]||je,line:Ye.yylineno,loc:dt,expected:le})}if(bt[0]instanceof Array&&bt.length>1)throw Error("Parse Error: multiple actions possible at state: "+ct+", token: "+je);switch(bt[0]){case 1:if(ne.push(je),se.push(Ye.yytext),oe.push(Ye.yylloc),ne.push(bt[1]),je=null,!Nt){if(Ie=Ye.yyleng,ye=Ye.yytext,Se=Ye.yylineno,dt=Ye.yylloc,Ee>0)Ee--}else je=Nt,Nt=null;break;case 2:if(Je=this.productions_[bt[1]][1],qe.$=se[se.length-Je],qe._$={first_line:oe[oe.length-(Je||1)].first_line,last_line:oe[oe.length-1].last_line,first_column:oe[oe.length-(Je||1)].first_column,last_column:oe[oe.length-1].last_column},zt)qe._$.range=[oe[oe.length-(Je||1)].range[0],oe[oe.length-1].range[1]];if(Ue=this.performAction.apply(qe,[ye,Ie,Se,Qe.yy,bt[1],se,oe].concat(Xe)),typeof Ue<"u")return Ue;if(Je)ne=ne.slice(0,-1*Je*2),se=se.slice(0,-1*Je),oe=oe.slice(0,-1*Je);ne.push(this.productions_[bt[1]][0]),se.push(qe.$),oe.push(qe._$),De=he[ne[ne.length-2]][ne[ne.length-1]],ne.push(De);break;case 3:return!0}}return!0},"parse")},J=function(){var j={EOF:1,parseError:I(function(z,ne){if(this.yy.parser)this.yy.parser.parseError(z,ne);else throw Error(z)},"parseError"),setInput:I(function(ee,z){if(this.yy=z||this.yy||{},this._input=ee,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var ee=this._input[0];this.yytext+=ee,this.yyleng++,this.offset++,this.match+=ee,this.matched+=ee;var z=ee.match(/(?:\r\n?|\n).*/g);if(z)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),ee},"input"),unput:I(function(ee){var z=ee.length,ne=ee.split(/(?:\r\n?|\n)/g);this._input=ee+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-z),this.offset-=z;var ie=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ne.length-1)this.yylineno-=ne.length-1;var se=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ne?(ne.length===ie.length?this.yylloc.first_column:0)+ie[ie.length-ne.length].length-ne[0].length:this.yylloc.first_column-z},this.options.ranges)this.yylloc.range=[se[0],se[0]+this.yyleng-z];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(ee){this.unput(this.match.slice(ee))},"less"),pastInput:I(function(){var ee=this.matched.substr(0,this.matched.length-this.match.length);return(ee.length>20?"...":"")+ee.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var ee=this.match;if(ee.length<20)ee+=this._input.substr(0,20-ee.length);return(ee.substr(0,20)+(ee.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var ee=this.pastInput(),z=Array(ee.length+1).join("-");return ee+this.upcomingInput()+` +`+z+"^"},"showPosition"),test_match:I(function(ee,z){var ne,ie,se;if(this.options.backtrack_lexer){if(se={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)se.yylloc.range=this.yylloc.range.slice(0)}if(ie=ee[0].match(/(?:\r\n?|\n).*/g),ie)this.yylineno+=ie.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ie?ie[ie.length-1].length-ie[ie.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ee[0].length},this.yytext+=ee[0],this.match+=ee[0],this.matches=ee,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(ee[0].length),this.matched+=ee[0],ne=this.performAction.call(this,this.yy,this,z,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(ne)return ne;else if(this._backtrack){for(var oe in se)this[oe]=se[oe];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var ee,z,ne,ie;if(!this._more)this.yytext="",this.match="";var se=this._currentRules();for(var oe=0;oez[0].length)){if(z=ne,ie=oe,this.options.backtrack_lexer)if(ee=this.test_match(ne,se[oe]),ee!==!1)return ee;else if(this._backtrack){z=!1;continue}else return!1;else if(!this.options.flex)break}if(z){if(ee=this.test_match(z,se[ie]),ee!==!1)return ee;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var z=this.next();if(z)return z;else return this.lex()},"lex"),begin:I(function(z){this.conditionStack.push(z)},"begin"),popState:I(function(){var z=this.conditionStack.length-1;if(z>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(z){if(z=this.conditionStack.length-1-Math.abs(z||0),z>=0)return this.conditionStack[z];else return"INITIAL"},"topState"),pushState:I(function(z){this.begin(z)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(z,ne,ie,se){var oe=se;switch(ie){case 0:break;case 1:break;case 2:return this.popState(),36;break;case 3:return this.popState(),36;break;case 4:return 36;case 5:break;case 6:return 10;case 7:return this.pushState("acc_title"),19;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.pushState("acc_descr"),21;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.pushState("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 5;case 15:return 5;case 16:return 8;case 17:return this.pushState("axis_data"),"X_AXIS";break;case 18:return this.pushState("axis_data"),"Y_AXIS";break;case 19:return this.pushState("axis_band_data"),24;break;case 20:return 33;case 21:return this.pushState("data"),16;break;case 22:return this.pushState("data"),18;break;case 23:return this.pushState("data_inner"),24;break;case 24:return 29;case 25:return this.popState(),26;break;case 26:this.popState();break;case 27:this.pushState("string");break;case 28:this.popState();break;case 29:return"STR";case 30:return 24;case 31:return 26;case 32:return 44;case 33:return"COLON";case 34:return 45;case 35:return 28;case 36:return 46;case 37:return 47;case 38:return 49;case 39:return 51;case 40:return 48;case 41:return 42;case 42:return 50;case 43:return 43;case 44:break;case 45:return 37;case 46:return 38}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:(\r?\n))/i,/^(?:(\r?\n))/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:\})/i,/^(?:[^\}]*)/i,/^(?:xychart-beta\b)/i,/^(?:xychart\b)/i,/^(?:(?:vertical|horizontal))/i,/^(?:x-axis\b)/i,/^(?:y-axis\b)/i,/^(?:\[)/i,/^(?:-->)/i,/^(?:line\b)/i,/^(?:bar\b)/i,/^(?:\[)/i,/^(?:[+-]?(?:\d+(?:\.\d+)?|\.\d+))/i,/^(?:\])/i,/^(?:(?:`\) \{ this\.pushState\(md_string\); \}\n\(\?:\(\?!`"\)\.\)\+ \{ return MD_STR; \}\n\(\?:`))/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s+)/i,/^(?:;)/i,/^(?:$)/i],conditions:{data_inner:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,24,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},data:{rules:[0,1,3,4,5,6,7,9,11,14,15,16,17,18,21,22,23,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_band_data:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,25,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},axis_data:{rules:[0,1,2,4,5,6,7,9,11,14,15,16,17,18,19,20,21,22,24,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},title:{rules:[],inclusive:!1},md_string:{rules:[],inclusive:!1},string:{rules:[28,29],inclusive:!1},INITIAL:{rules:[0,1,4,5,6,7,9,11,14,15,16,17,18,21,22,26,27,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};return j}();K.lexer=J;function Z(){this.yy={}}return I(Z,"Parser"),Z.prototype=K,K.Parser=Z,new Z}();Tft.parser=Tft;B2i=Tft;I(Ike,"isBarPlot");I(Oke,"isBandAxisData");I(qY,"isLinearAxisData");Aft=class{constructor(e){this.parentGroup=e}static{I(this,"TextDimensionCalculatorWithFont")}getMaxDimension(e,r){if(!this.parentGroup)return{width:e.reduce((p,m)=>Math.max(m.length,p),0)*r,height:r};let i={width:0,height:0},a=this.parentGroup.append("g").attr("visibility","hidden").attr("font-size",r),o=a.node()?.getScreenCTM?.(),l=I((p)=>p&&p>0?p:1,"toScale"),h=l(o?.a),d=l(o?.d);for(let p of e){let m=Ett(a,1,p),y=m?m.width/h:p.length*r,v=m?m.height/d:r;i.width=Math.max(i.width,y),i.height=Math.max(i.height,v)}return a.remove(),i}},_Yr=class{constructor(e,r,i,a){this.axisConfig=e,this.title=r,this.textDimensionCalculator=i,this.axisThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.showTitle=!1,this.showLabel=!1,this.showTick=!1,this.showAxisLine=!1,this.outerPadding=0,this.titleTextHeight=0,this.labelTextHeight=0,this.normalizedLabelRotationInRad=0,this.range=[0,10],this.boundingRect={x:0,y:0,width:0,height:0},this.axisPosition="left",this.normalizedLabelRotationInRad=this.axisConfig.labelRotation>=-90&&this.axisConfig.labelRotation<=90?this.axisConfig.labelRotation*Math.PI/180:0}static{I(this,"BaseAxis")}setRange(e){if(this.range=e,this.axisPosition==="left"||this.axisPosition==="right")this.boundingRect.height=e[1]-e[0];else this.boundingRect.width=e[1]-e[0];this.recalculateScale()}getRange(){return[this.range[0]+this.outerPadding,this.range[1]-this.outerPadding]}setAxisPosition(e){this.axisPosition=e,this.setRange(this.range)}getTickDistance(){let e=this.getRange();return Math.abs(e[0]-e[1])/this.getTickValues().length}getAxisOuterPadding(){return this.outerPadding}getLabelDimension(){return this.textDimensionCalculator.getMaxDimension(this.getTickValues().map((e)=>e.toString()),this.axisConfig.labelFontSize)}recalculateOuterPaddingToDrawBar(){if(yYr*this.getTickDistance()>this.outerPadding*2)this.outerPadding=Math.floor(yYr*this.getTickDistance()/2);this.recalculateScale()}calculateSpaceIfDrawnHorizontally(e){let r=e.height;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth)r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0;if(this.axisConfig.showLabel){let i=this.getLabelDimension(),a=vYr*e.width;this.outerPadding=Math.min(i.width/2,a);let o=i.height;if(this.axisPosition==="bottom"&&this.normalizedLabelRotationInRad!==0)o=Math.max(o,Math.abs(Math.sin(this.normalizedLabelRotationInRad)*i.width)+Math.abs(Math.cos(this.normalizedLabelRotationInRad)*i.height));if(o+=this.axisConfig.labelPadding*2,this.labelTextHeight=i.height,o<=r)r-=o,this.showLabel=!0}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength)this.showTick=!0,r-=this.axisConfig.tickLength;if(this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=i.height+this.axisConfig.titlePadding*2;if(this.titleTextHeight=i.height,a<=r)r-=a,this.showTitle=!0}this.boundingRect.width=e.width,this.boundingRect.height=e.height-r}calculateSpaceIfDrawnVertical(e){let r=e.width;if(this.axisConfig.showAxisLine&&r>this.axisConfig.axisLineWidth)r-=this.axisConfig.axisLineWidth,this.showAxisLine=!0;if(this.axisConfig.showLabel){let i=this.getLabelDimension(),a=vYr*e.height;this.outerPadding=Math.min(i.height/2,a);let o=i.width+this.axisConfig.labelPadding*2;if(o<=r)r-=o,this.showLabel=!0}if(this.axisConfig.showTick&&r>=this.axisConfig.tickLength)this.showTick=!0,r-=this.axisConfig.tickLength;if(this.axisConfig.showTitle&&this.title){let i=this.textDimensionCalculator.getMaxDimension([this.title],this.axisConfig.titleFontSize),a=i.height+this.axisConfig.titlePadding*2;if(this.titleTextHeight=i.height,a<=r)r-=a,this.showTitle=!0}this.boundingRect.width=e.width-r,this.boundingRect.height=e.height}calculateSpace(e){if(this.axisPosition==="left"||this.axisPosition==="right")this.calculateSpaceIfDrawnVertical(e);else this.calculateSpaceIfDrawnHorizontally(e);return this.recalculateScale(),{width:this.boundingRect.width,height:this.boundingRect.height}}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateOffsetByRotation(e){let r=this.normalizedLabelRotationInRad;if(r===0)return 0;return Math.sin(r)*this.getLabelDimension()[e]/2}getDrawableElementsForLeftAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.x+this.boundingRect.width-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["left-axis","axisl-line"],data:[{path:`M ${r},${this.boundingRect.y} L ${r},${this.boundingRect.y+this.boundingRect.height} `,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel)e.push({type:"text",groupTexts:["left-axis","label"],data:this.getTickValues().map((r)=>({text:r.toString(),x:this.boundingRect.x+this.boundingRect.width-(this.showLabel?this.axisConfig.labelPadding:0)-(this.showTick?this.axisConfig.tickLength:0)-(this.showAxisLine?this.axisConfig.axisLineWidth:0),y:this.getScaleValue(r),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"middle",horizontalPos:"right"}))});if(this.showTick){let r=this.boundingRect.x+this.boundingRect.width-(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["left-axis","ticks"],data:this.getTickValues().map((i)=>({path:`M ${r},${this.getScaleValue(i)} L ${r-this.axisConfig.tickLength},${this.getScaleValue(i)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}if(this.showTitle)e.push({type:"text",groupTexts:["left-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.axisConfig.titlePadding,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:270,verticalPos:"top",horizontalPos:"center"}]});return e}getDrawableElementsForBottomAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["bottom-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel)e.push({type:"text",groupTexts:["bottom-axis","label"],data:this.getTickValues().map((r)=>({text:r.toString(),x:this.getScaleValue(r)+this.calculateOffsetByRotation("height"),y:this.boundingRect.y+this.axisConfig.labelPadding+(this.showTick?this.axisConfig.tickLength:0)+(this.showAxisLine?this.axisConfig.axisLineWidth:0)+Math.abs(this.calculateOffsetByRotation("width")),fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:this.normalizedLabelRotationInRad*180/Math.PI,verticalPos:"top",horizontalPos:"center"}))});if(this.showTick){let r=this.boundingRect.y+(this.showAxisLine?this.axisConfig.axisLineWidth:0);e.push({type:"path",groupTexts:["bottom-axis","ticks"],data:this.getTickValues().map((i)=>({path:`M ${this.getScaleValue(i)},${r} L ${this.getScaleValue(i)},${r+this.axisConfig.tickLength}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}if(this.showTitle)e.push({type:"text",groupTexts:["bottom-axis","title"],data:[{text:this.title,x:this.range[0]+(this.range[1]-this.range[0])/2,y:this.boundingRect.y+this.boundingRect.height-this.axisConfig.titlePadding-this.titleTextHeight,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]});return e}getDrawableElementsForTopAxis(){let e=[];if(this.showAxisLine){let r=this.boundingRect.y+this.boundingRect.height-this.axisConfig.axisLineWidth/2;e.push({type:"path",groupTexts:["top-axis","axis-line"],data:[{path:`M ${this.boundingRect.x},${r} L ${this.boundingRect.x+this.boundingRect.width},${r}`,strokeFill:this.axisThemeConfig.axisLineColor,strokeWidth:this.axisConfig.axisLineWidth}]})}if(this.showLabel)e.push({type:"text",groupTexts:["top-axis","label"],data:this.getTickValues().map((r)=>({text:r.toString(),x:this.getScaleValue(r),y:this.boundingRect.y+(this.showTitle?this.titleTextHeight+this.axisConfig.titlePadding*2:0)+this.axisConfig.labelPadding,fill:this.axisThemeConfig.labelColor,fontSize:this.axisConfig.labelFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}))});if(this.showTick){let r=this.boundingRect.y;e.push({type:"path",groupTexts:["top-axis","ticks"],data:this.getTickValues().map((i)=>({path:`M ${this.getScaleValue(i)},${r+this.boundingRect.height-(this.showAxisLine?this.axisConfig.axisLineWidth:0)} L ${this.getScaleValue(i)},${r+this.boundingRect.height-this.axisConfig.tickLength-(this.showAxisLine?this.axisConfig.axisLineWidth:0)}`,strokeFill:this.axisThemeConfig.tickColor,strokeWidth:this.axisConfig.tickWidth}))})}if(this.showTitle)e.push({type:"text",groupTexts:["top-axis","title"],data:[{text:this.title,x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.axisConfig.titlePadding,fill:this.axisThemeConfig.titleColor,fontSize:this.axisConfig.titleFontSize,rotation:0,verticalPos:"top",horizontalPos:"center"}]});return e}getDrawableElements(){if(this.axisPosition==="left")return this.getDrawableElementsForLeftAxis();if(this.axisPosition==="right")throw Error("Drawing of right axis is not implemented");if(this.axisPosition==="bottom")return this.getDrawableElementsForBottomAxis();if(this.axisPosition==="top")return this.getDrawableElementsForTopAxis();return[]}},F2i=class extends _Yr{static{I(this,"BandAxis")}constructor(e,r,i,a,o){super(e,a,o,r);this.categories=i,this.scale=dH().domain(this.categories).range(this.getRange())}setRange(e){super.setRange(e)}recalculateScale(){this.scale=dH().domain(this.categories).range(this.getRange()).paddingInner(1).paddingOuter(0).align(0.5),Ze.trace("BandAxis axis final categories, range: ",this.categories,this.getRange())}getTickValues(){return this.categories}getScaleValue(e){return this.scale(e)??this.getRange()[0]}},$2i=class extends _Yr{static{I(this,"LinearAxis")}constructor(e,r,i,a,o){super(e,a,o,r);this.domain=i,this.scale=pC().domain(this.domain).range(this.getRange())}getTickValues(){return this.scale.ticks()}recalculateScale(){let e=[...this.domain];if(this.axisPosition==="left")e.reverse();this.scale=pC().domain(e).range(this.getRange())}getScaleValue(e){return this.scale(e)}};I(xft,"getAxis");U2i=class{constructor(e,r,i,a){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=i,this.chartThemeConfig=a,this.titleWidth=0,this.boundingRect={x:0,y:0,width:0,height:0},this.showChartTitle=!1}static{I(this,"ChartTitle")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){let r=this.textDimensionCalculator.getMaxDimension([this.chartData.title],this.chartConfig.titleFontSize),i=Math.max(r.width,e.width),a=r.height+2*this.chartConfig.titlePadding;if(a<=e.height&&this.chartConfig.showTitle&&this.chartData.title)this.boundingRect.width=i,this.boundingRect.height=a,this.titleWidth=r.width,this.showChartTitle=!0;return{width:this.boundingRect.width,height:this.boundingRect.height}}alignTo(e,r){let i=Math.min(this.titleWidth,this.chartConfig.width)/2,a=Math.min(Math.max((e+r)/2,i),this.chartConfig.width-i);this.boundingRect.x=a-i,this.boundingRect.width=i*2}getDrawableElements(){let e=[];if(this.showChartTitle)e.push({groupTexts:["chart-title"],type:"text",data:[{fontSize:this.chartConfig.titleFontSize,text:this.chartData.title,verticalPos:"middle",horizontalPos:"center",x:this.boundingRect.x+this.boundingRect.width/2,y:this.boundingRect.y+this.boundingRect.height/2,fill:this.chartThemeConfig.titleColor,rotation:0}]});return e}};I(EYr,"getChartTitleComponent");I(Cft,"getLegendLayout");H2i=class{constructor(e,r,i,a){this.textDimensionCalculator=e,this.chartConfig=r,this.chartData=i,this.chartThemeConfig=a,this.boundingRect={x:0,y:0,width:0,height:0},this.visiblePlots=[]}static{I(this,"ChartLegend")}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){if(this.visiblePlots=this.chartConfig.showLegend?this.chartData.plots.filter((p)=>p.title):[],this.visiblePlots.length===0)return this.boundingRect.width=0,this.boundingRect.height=0,{width:0,height:0};let{fontSize:r,markerSize:i,markerSpacing:a,itemSpacing:o}=Cft(this.chartConfig.legendFontSize),l=this.textDimensionCalculator.getMaxDimension(this.visiblePlots.map((p)=>p.title),r),h=this.chartConfig.legendPadding*2+i+a+l.width,d=this.chartConfig.legendPadding*2+this.visiblePlots.length*r+(this.visiblePlots.length-1)*o;if(h<=e.width&&d<=e.height)this.boundingRect.width=h,this.boundingRect.height=d;else this.visiblePlots=[],this.boundingRect.width=0,this.boundingRect.height=0;return{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(this.visiblePlots.length===0)return[];let{fontSize:e,markerSize:r,markerSpacing:i,itemSpacing:a}=Cft(this.chartConfig.legendFontSize),o=e+a,l=this.boundingRect.x+this.chartConfig.legendPadding,h=this.boundingRect.y+this.chartConfig.legendPadding,d=[],p=[];for(let[m,y]of this.visiblePlots.entries())if(Ike(y))d.push({x:l,y:h+m*o,width:r,height:r,fill:y.fill,strokeFill:y.fill,strokeWidth:0});else{let v=h+m*o+r/2;p.push({path:`M ${l},${v} L ${l+r},${v}`,strokeFill:y.strokeFill,strokeWidth:y.strokeWidth})}return[{groupTexts:["legend","markers"],type:"rect",data:d},{groupTexts:["legend","markers"],type:"path",data:p},{groupTexts:["legend","label"],type:"text",data:this.visiblePlots.map((m,y)=>({text:m.title,x:l+r+i,y:h+y*o+r/2,fill:this.chartThemeConfig.legendTextColor,fontSize:e,rotation:0,verticalPos:"middle",horizontalPos:"left"}))}]}};I(wYr,"getChartLegendComponent");q2i=class{constructor(e,r,i,a,o){this.plotData=e,this.xAxis=r,this.yAxis=i,this.orientation=a,this.plotIndex=o}static{I(this,"LinePlot")}getDrawableElement(){let e=this.plotData.data.map((a)=>[this.xAxis.getScaleValue(a[0]),this.yAxis.getScaleValue(a[1])]),r;if(this.orientation==="horizontal")r=HP().y((a)=>a[0]).x((a)=>a[1])(e);else r=HP().x((a)=>a[0]).y((a)=>a[1])(e);if(!r)return[];let i=[{groupTexts:["plot",`line-plot-${this.plotIndex}`],type:"path",data:[{path:r,strokeFill:this.plotData.strokeFill,strokeWidth:this.plotData.strokeWidth}]}];if(this.plotData.pointLabels&&this.plotData.pointLabels.length>0){let l=[];for(let[h,[d,p]]of e.entries()){let m=this.plotData.pointLabels[h];if(!m)continue;if(this.orientation==="horizontal")l.push({x:p+10,y:d,text:m,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"left",fontSize:12,rotation:0});else l.push({x:d,y:p-10,text:m,fill:this.plotData.strokeFill,verticalPos:"middle",horizontalPos:"center",fontSize:12,rotation:0})}if(l.length>0)i.push({groupTexts:["plot",`line-plot-${this.plotIndex}`,"labels"],type:"text",data:l})}return i}},Y2i=class{constructor(e,r,i,a,o,l){this.barData=e,this.boundingRect=r,this.xAxis=i,this.yAxis=a,this.orientation=o,this.plotIndex=l}static{I(this,"BarPlot")}getDrawableElement(){let e=this.barData.data.map((o)=>[this.xAxis.getScaleValue(o[0]),this.yAxis.getScaleValue(o[1])]),r=0.05,i=Math.min(this.xAxis.getAxisOuterPadding()*2,this.xAxis.getTickDistance())*0.95,a=i/2;if(this.orientation==="horizontal")return[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map((o)=>({x:this.boundingRect.x,y:o[0]-a,height:i,width:o[1]-this.boundingRect.x,fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}];return[{groupTexts:["plot",`bar-plot-${this.plotIndex}`],type:"rect",data:e.map((o)=>({x:o[0]-a,y:o[1],width:i,height:this.boundingRect.y+this.boundingRect.height-o[1],fill:this.barData.fill,strokeWidth:0,strokeFill:this.barData.fill}))}]}},W2i=class{constructor(e,r,i){this.chartConfig=e,this.chartData=r,this.chartThemeConfig=i,this.boundingRect={x:0,y:0,width:0,height:0}}static{I(this,"BasePlot")}setAxes(e,r){this.xAxis=e,this.yAxis=r}setBoundingBoxXY(e){this.boundingRect.x=e.x,this.boundingRect.y=e.y}calculateSpace(e){return this.boundingRect.width=e.width,this.boundingRect.height=e.height,{width:this.boundingRect.width,height:this.boundingRect.height}}getDrawableElements(){if(!(this.xAxis&&this.yAxis))throw Error("Axes must be passed to render Plots");let e=[];for(let[r,i]of this.chartData.plots.entries())switch(i.type){case"line":{let a=new q2i(i,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break;case"bar":{let a=new Y2i(i,this.boundingRect,this.xAxis,this.yAxis,this.chartConfig.chartOrientation,r);e.push(...a.getDrawableElement())}break}return e}};I(SYr,"getPlotComponent");j2i=class{constructor(e,r,i,a){this.chartConfig=e,this.chartData=r,this.componentStore={title:EYr(e,r,i,a),plot:SYr(e,r,i),legend:wYr(e,r,i,a),xAxis:xft(r.xAxis,e.xAxis,{titleColor:i.xAxisTitleColor,labelColor:i.xAxisLabelColor,tickColor:i.xAxisTickColor,axisLineColor:i.xAxisLineColor},a),yAxis:xft(r.yAxis,e.yAxis,{titleColor:i.yAxisTitleColor,labelColor:i.yAxisLabelColor,tickColor:i.yAxisTickColor,axisLineColor:i.yAxisLineColor},a)}}static{I(this,"Orchestrator")}calculateVerticalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,i=0,a=0,o={width:0,height:0},l=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),h=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),d=this.componentStore.plot.calculateSpace({width:l,height:h});if(e-=d.width,r-=d.height,d=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),a=d.height,r-=d.height,this.componentStore.xAxis.setAxisPosition("bottom"),d=this.componentStore.xAxis.calculateSpace({width:e,height:r}),r-=d.height,this.componentStore.yAxis.setAxisPosition("left"),d=this.componentStore.yAxis.calculateSpace({width:e,height:r}),i=d.width,e-=d.width,o=this.componentStore.legend.calculateSpace({width:e,height:h}),e-=o.width,e>0)l+=e,e=0;if(r>0)h+=r,r=0;if(this.componentStore.plot.calculateSpace({width:l,height:h}),this.componentStore.plot.setBoundingBoxXY({x:i,y:a}),this.componentStore.title.alignTo(i,i+l),this.componentStore.legend.setBoundingBoxXY({x:i+l,y:a+Math.max((h-o.height)/2,0)}),this.componentStore.xAxis.setRange([i,i+l]),this.componentStore.xAxis.setBoundingBoxXY({x:i,y:a+h}),this.componentStore.yAxis.setRange([a,a+h]),this.componentStore.yAxis.setBoundingBoxXY({x:0,y:a}),this.chartData.plots.some((p)=>Ike(p)))this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateHorizontalSpace(){let e=this.chartConfig.width,r=this.chartConfig.height,i=0,a=0,o=0,l={width:0,height:0},h=Math.floor(e*this.chartConfig.plotReservedSpacePercent/100),d=Math.floor(r*this.chartConfig.plotReservedSpacePercent/100),p=this.componentStore.plot.calculateSpace({width:h,height:d});if(e-=p.width,r-=p.height,p=this.componentStore.title.calculateSpace({width:this.chartConfig.width,height:r}),i=p.height,r-=p.height,this.componentStore.xAxis.setAxisPosition("left"),p=this.componentStore.xAxis.calculateSpace({width:e,height:r}),e-=p.width,a=p.width,this.componentStore.yAxis.setAxisPosition("top"),p=this.componentStore.yAxis.calculateSpace({width:e,height:r}),r-=p.height,o=i+p.height,l=this.componentStore.legend.calculateSpace({width:e,height:d}),e-=l.width,e>0)h+=e,e=0;if(r>0)d+=r,r=0;if(this.componentStore.plot.calculateSpace({width:h,height:d}),this.componentStore.plot.setBoundingBoxXY({x:a,y:o}),this.componentStore.title.alignTo(a,a+h),this.componentStore.legend.setBoundingBoxXY({x:a+h,y:o+Math.max((d-l.height)/2,0)}),this.componentStore.yAxis.setRange([a,a+h]),this.componentStore.yAxis.setBoundingBoxXY({x:a,y:i}),this.componentStore.xAxis.setRange([o,o+d]),this.componentStore.xAxis.setBoundingBoxXY({x:0,y:o}),this.chartData.plots.some((m)=>Ike(m)))this.componentStore.xAxis.recalculateOuterPaddingToDrawBar()}calculateSpace(){if(this.chartConfig.chartOrientation==="horizontal")this.calculateHorizontalSpace();else this.calculateVerticalSpace()}getDrawableElement(){this.calculateSpace();let e=[];this.componentStore.plot.setAxes(this.componentStore.xAxis,this.componentStore.yAxis);for(let r of Object.values(this.componentStore))e.push(...r.getDrawableElements());return e}},K2i=class{static{I(this,"XYChartBuilder")}static build(e,r,i,a){return new j2i(e,r,i,a).getDrawableElement()}},hoe=Oft(),doe=Ift(),fu=Nft(),kft=doe.plotColorPalette.split(",").map((e)=>e.trim());I(Ift,"getChartDefaultThemeConfig");I(Oft,"getChartDefaultConfig");I(Nft,"getChartDefaultData");I(EF,"textSanitizer");I(xYr,"setTmpSVGG");I(CYr,"setOrientation");I(kYr,"setXAxisTitle");I(Lft,"setXAxisRangeData");I(AYr,"setXAxisBand");I(RYr,"setYAxisTitle");I(IYr,"setYAxisRangeData");I(OYr,"setYAxisRangeFromPlotData");I(Mft,"transformDataWithoutCategory");I(Dft,"getPlotColorFromPalette");I(NYr,"setLineData");I(LYr,"setBarData");I(MYr,"getDrawableElem");I(DYr,"getChartThemeConfig");I(PYr,"getChartConfig");I(BYr,"getXYChartData");X2i=I(function(){qs(),uoe=0,hoe=Oft(),fu=Nft(),doe=Ift(),kft=doe.plotColorPalette.split(",").map((e)=>e.trim()),Nke=!1,Rft=!1},"clear"),Q2i={getDrawableElem:MYr,clear:X2i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js,setOrientation:CYr,setXAxisTitle:kYr,setXAxisRangeData:Lft,setXAxisBand:AYr,setYAxisTitle:RYr,setYAxisRangeData:IYr,setLineData:NYr,setBarData:LYr,setTmpSVGG:xYr,getChartThemeConfig:DYr,getChartConfig:PYr,getXYChartData:BYr},Z2i=I((e,r,i,a)=>{let o=a.db,l=o.getChartThemeConfig(),h=o.getChartConfig(),d=o.getXYChartData().plots[0].data.map((L)=>L[1]);function p(L){return L==="top"?"text-before-edge":"middle"}I(p,"getDominantBaseLine");function m(L){return L==="left"?"start":L==="right"?"end":"middle"}I(m,"getTextAnchor");function y(L){return`translate(${L.x}, ${L.y}) rotate(${L.rotation||0})`}I(y,"getTextTransformation"),Ze.debug(`Rendering xychart chart +`+e);let v=Ou(r),w=v.append("g").attr("class","main"),T=w.append("rect").attr("width",h.width).attr("height",h.height).attr("class","background");Bl(v,h.height,h.width,!0),v.attr("viewBox",`0 0 ${h.width} ${h.height}`),T.attr("fill",l.backgroundColor),o.setTmpSVGG(v.append("g").attr("class","mermaid-tmp-group"));let x=o.getDrawableElem(),k={};function A(L){let B=w,D="";for(let[P]of L.entries()){let F=w;if(P>0&&k[D])F=k[D];if(D+=L[P],B=k[D],!B)B=k[D]=F.append("g").attr("class",L[P])}return B}I(A,"getGroup");for(let L of x){if(L.data.length===0)continue;let B=A(L.groupTexts);switch(L.type){case"rect":if(B.selectAll("rect").data(L.data).enter().append("rect").attr("x",(D)=>D.x).attr("y",(D)=>D.y).attr("width",(D)=>D.width).attr("height",(D)=>D.height).attr("fill",(D)=>D.fill).attr("stroke",(D)=>D.strokeFill).attr("stroke-width",(D)=>D.strokeWidth),h.showDataLabel){let D=h.showDataLabelOutsideBar;if(h.chartOrientation==="horizontal"){let P=function(K,J){let{data:Z,label:j}=K;return J*j.length*F<=Z.width-H};var R=P;I(P,"fitsHorizontally");let F=0.7,H=10,W=L.data.map((K,J)=>({data:K,label:d[J].toString()})).filter((K)=>K.data.width>0&&K.data.height>0),X=W.map((K)=>{let{data:J}=K,Z=J.height*0.7;while(!P(K,Z)&&Z>0)Z-=1;return Z}),Q=Math.floor(Math.min(...X)),Y=I((K)=>{if(D)return K.data.x+K.data.width+H;else return K.data.x+K.data.width-H},"determineLabelXPosition");B.selectAll("text").data(W).enter().append("text").attr("x",Y).attr("y",(K)=>K.data.y+K.data.height/2).attr("text-anchor",D?"start":"end").attr("dominant-baseline","middle").attr("fill",l.dataLabelColor).attr("font-size",`${Q}px`).text((K)=>K.label)}else{let P=function(Y,K,J){let{data:Z,label:j}=Y,ee=0.7,z=K*j.length*0.7,ne=Z.x+Z.width/2,ie=ne-z/2,se=ne+z/2,oe=ie>=Z.x&&se<=Z.x+Z.width,he=Z.y+J+K<=Z.y+Z.height;return oe&&he};var N=P;I(P,"fitsInBar");let F=10,H=L.data.map((Y,K)=>({data:Y,label:d[K].toString()})).filter((Y)=>Y.data.width>0&&Y.data.height>0),W=H.map((Y)=>{let{data:K,label:J}=Y,Z=K.width/(J.length*0.7);while(!P(Y,Z,F)&&Z>0)Z-=1;return Z}),X=Math.floor(Math.min(...W)),Q=I((Y)=>{if(D)return Y.data.y-F;else return Y.data.y+F},"determineLabelYPosition");B.selectAll("text").data(H).enter().append("text").attr("x",(Y)=>Y.data.x+Y.data.width/2).attr("y",Q).attr("text-anchor","middle").attr("dominant-baseline",D?"auto":"hanging").attr("fill",l.dataLabelColor).attr("font-size",`${X}px`).text((Y)=>Y.label)}}break;case"text":B.selectAll("text").data(L.data).enter().append("text").attr("x",0).attr("y",0).attr("fill",(D)=>D.fill).attr("font-size",(D)=>D.fontSize).attr("dominant-baseline",(D)=>p(D.verticalPos)).attr("text-anchor",(D)=>m(D.horizontalPos)).attr("transform",(D)=>y(D)).text((D)=>D.text);break;case"path":B.selectAll("path").data(L.data).enter().append("path").attr("d",(D)=>D.path).attr("fill",(D)=>D.fill?D.fill:"none").attr("stroke",(D)=>D.strokeFill).attr("stroke-width",(D)=>D.strokeWidth);break}}},"draw"),J2i={draw:Z2i},FYr={parser:B2i,db:Q2i,renderer:J2i}});var Pft,eEi,tEi,rEi,nEi,iEi,UYr,aEi,GYr;var zYr=Re(()=>{PC();pT();cT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();Pft=function(){var e=I(function(pe,fe,be,Ge){for(be=be||{},Ge=pe.length;Ge--;be[pe[Ge]]=fe);return be},"o"),r=[1,3],i=[1,4],a=[1,5],o=[1,6],l=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],h=[1,22],d=[2,7],p=[1,26],m=[1,27],y=[1,28],v=[1,29],w=[1,33],T=[1,34],x=[1,35],k=[1,36],A=[1,37],R=[1,38],N=[1,24],L=[1,31],B=[1,32],D=[1,30],P=[1,39],F=[1,40],H=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],W=[1,61],X=[89,90],Q=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[27,29],K=[1,70],J=[1,71],Z=[1,72],j=[1,73],ee=[1,74],z=[1,75],ne=[1,76],ie=[1,83],se=[1,80],oe=[1,84],he=[1,85],ye=[1,86],Se=[1,87],Ie=[1,88],Ee=[1,89],ze=[1,90],Me=[1,91],Xe=[1,92],Ye=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Qe=[63,64],xt=[1,101],dt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],zt=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Kt=[1,110],rr=[1,106],je=[1,107],Nt=[1,108],ct=[1,109],bt=[1,111],Pe=[1,116],Ue=[1,117],qe=[1,114],Ke=[1,115],Je={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:I(function(fe,be,Ge,ke,we,Ae,at){var ut=Ae.length-1;switch(we){case 4:this.$=Ae[ut].trim(),ke.setAccTitle(this.$);break;case 5:case 6:this.$=Ae[ut].trim(),ke.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:ke.setDirection("TB");break;case 18:ke.setDirection("BT");break;case 19:ke.setDirection("RL");break;case 20:ke.setDirection("LR");break;case 21:ke.addRequirement(Ae[ut-3],Ae[ut-4]);break;case 22:ke.addRequirement(Ae[ut-5],Ae[ut-6]),ke.setClass([Ae[ut-5]],Ae[ut-3]);break;case 23:ke.setNewReqId(Ae[ut-2]);break;case 24:ke.setNewReqText(Ae[ut-2]);break;case 25:ke.setNewReqRisk(Ae[ut-2]);break;case 26:ke.setNewReqVerifyMethod(Ae[ut-2]);break;case 29:this.$=ke.RequirementType.REQUIREMENT;break;case 30:this.$=ke.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=ke.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=ke.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=ke.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=ke.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=ke.RiskLevel.LOW_RISK;break;case 36:this.$=ke.RiskLevel.MED_RISK;break;case 37:this.$=ke.RiskLevel.HIGH_RISK;break;case 38:this.$=ke.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=ke.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=ke.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=ke.VerifyType.VERIFY_TEST;break;case 42:ke.addElement(Ae[ut-3]);break;case 43:ke.addElement(Ae[ut-5]),ke.setClass([Ae[ut-5]],Ae[ut-3]);break;case 44:ke.setNewElementType(Ae[ut-2]);break;case 45:ke.setNewElementDocRef(Ae[ut-2]);break;case 48:ke.addRelationship(Ae[ut-2],Ae[ut],Ae[ut-4]);break;case 49:ke.addRelationship(Ae[ut-2],Ae[ut-4],Ae[ut]);break;case 50:this.$=ke.Relationships.CONTAINS;break;case 51:this.$=ke.Relationships.COPIES;break;case 52:this.$=ke.Relationships.DERIVES;break;case 53:this.$=ke.Relationships.SATISFIES;break;case 54:this.$=ke.Relationships.VERIFIES;break;case 55:this.$=ke.Relationships.REFINES;break;case 56:this.$=ke.Relationships.TRACES;break;case 57:this.$=Ae[ut-2],ke.defineClass(Ae[ut-1],Ae[ut]);break;case 58:ke.setClass(Ae[ut-1],Ae[ut]);break;case 59:ke.setClass([Ae[ut-2]],Ae[ut]);break;case 60:case 62:this.$=[Ae[ut]];break;case 61:case 63:this.$=Ae[ut-2].concat([Ae[ut]]);break;case 64:this.$=Ae[ut-2],ke.setCssStyle(Ae[ut-1],Ae[ut]);break;case 65:this.$=[Ae[ut]];break;case 66:Ae[ut-2].push(Ae[ut]),this.$=Ae[ut-2];break;case 68:this.$=Ae[ut-1]+Ae[ut];break}},"anonymous"),table:[{3:1,4:2,6:r,9:i,11:a,13:o},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:i,11:a,13:o},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(l,[2,6]),{3:12,4:2,6:r,9:i,11:a,13:o},{1:[2,2]},{4:17,5:h,7:13,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},e(l,[2,4]),e(l,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:h,7:42,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:43,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:44,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:45,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:46,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:47,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:48,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:49,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{4:17,5:h,7:50,8:d,9:i,11:a,13:o,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:p,22:m,23:y,24:v,25:23,33:25,41:w,42:T,43:x,44:k,45:A,46:R,54:N,72:L,74:B,77:D,89:P,90:F},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(H,[2,17]),e(H,[2,18]),e(H,[2,19]),e(H,[2,20]),{30:60,33:62,75:W,89:P,90:F},{30:63,33:62,75:W,89:P,90:F},{30:64,33:62,75:W,89:P,90:F},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Q,[2,81]),e(Q,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Y,[2,79]),e(Y,[2,80]),{27:[1,67],29:[1,68]},e(Y,[2,85]),e(Y,[2,86]),{62:69,65:K,66:J,67:Z,68:j,69:ee,70:z,71:ne},{62:77,65:K,66:J,67:Z,68:j,69:ee,70:z,71:ne},{30:78,33:62,75:W,89:P,90:F},{73:79,75:ie,76:se,78:81,79:82,80:oe,81:he,82:ye,83:Se,84:Ie,85:Ee,86:ze,87:Me,88:Xe},e(Ye,[2,60]),e(Ye,[2,62]),{73:93,75:ie,76:se,78:81,79:82,80:oe,81:he,82:ye,83:Se,84:Ie,85:Ee,86:ze,87:Me,88:Xe},{30:94,33:62,75:W,76:se,89:P,90:F},{5:[1,95]},{30:96,33:62,75:W,89:P,90:F},{5:[1,97]},{30:98,33:62,75:W,89:P,90:F},{63:[1,99]},e(Qe,[2,50]),e(Qe,[2,51]),e(Qe,[2,52]),e(Qe,[2,53]),e(Qe,[2,54]),e(Qe,[2,55]),e(Qe,[2,56]),{64:[1,100]},e(H,[2,59],{76:se}),e(H,[2,64],{76:xt}),{33:103,75:[1,102],89:P,90:F},e(dt,[2,65],{79:104,75:ie,80:oe,81:he,82:ye,83:Se,84:Ie,85:Ee,86:ze,87:Me,88:Xe}),e(zt,[2,67]),e(zt,[2,69]),e(zt,[2,70]),e(zt,[2,71]),e(zt,[2,72]),e(zt,[2,73]),e(zt,[2,74]),e(zt,[2,75]),e(zt,[2,76]),e(zt,[2,77]),e(zt,[2,78]),e(H,[2,57],{76:xt}),e(H,[2,58],{76:se}),{5:Kt,28:105,31:rr,34:je,36:Nt,38:ct,40:bt},{27:[1,112],76:se},{5:Pe,40:Ue,56:113,57:qe,59:Ke},{27:[1,118],76:se},{33:119,89:P,90:F},{33:120,89:P,90:F},{75:ie,78:121,79:82,80:oe,81:he,82:ye,83:Se,84:Ie,85:Ee,86:ze,87:Me,88:Xe},e(Ye,[2,61]),e(Ye,[2,63]),e(zt,[2,68]),e(H,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Kt,28:126,31:rr,34:je,36:Nt,38:ct,40:bt},e(H,[2,28]),{5:[1,127]},e(H,[2,42]),{32:[1,128]},{32:[1,129]},{5:Pe,40:Ue,56:130,57:qe,59:Ke},e(H,[2,47]),{5:[1,131]},e(H,[2,48]),e(H,[2,49]),e(dt,[2,66],{79:104,75:ie,80:oe,81:he,82:ye,83:Se,84:Ie,85:Ee,86:ze,87:Me,88:Xe}),{33:132,89:P,90:F},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(H,[2,27]),{5:Kt,28:145,31:rr,34:je,36:Nt,38:ct,40:bt},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(H,[2,46]),{5:Pe,40:Ue,56:152,57:qe,59:Ke},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(H,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(H,[2,43]),{5:Kt,28:159,31:rr,34:je,36:Nt,38:ct,40:bt},{5:Kt,28:160,31:rr,34:je,36:Nt,38:ct,40:bt},{5:Kt,28:161,31:rr,34:je,36:Nt,38:ct,40:bt},{5:Kt,28:162,31:rr,34:je,36:Nt,38:ct,40:bt},{5:Pe,40:Ue,56:163,57:qe,59:Ke},{5:Pe,40:Ue,56:164,57:qe,59:Ke},e(H,[2,23]),e(H,[2,24]),e(H,[2,25]),e(H,[2,26]),e(H,[2,44]),e(H,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:I(function(fe,be){if(be.recoverable)this.trace(fe);else{var Ge=Error(fe);throw Ge.hash=be,Ge}},"parseError"),parse:I(function(fe){var be=this,Ge=[0],ke=[],we=[null],Ae=[],at=this.table,ut="",gt=0,vt=0,ir=0,qt=2,cr=1,tr=Ae.slice.call(arguments,1),Zt=Object.create(this.lexer),lr={yy:{}};for(var Xt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Xt))lr.yy[Xt]=this.yy[Xt];if(Zt.setInput(fe,lr.yy),lr.yy.lexer=Zt,lr.yy.parser=this,typeof Zt.yylloc>"u")Zt.yylloc={};var In=Zt.yylloc;Ae.push(In);var Et=Zt.options&&Zt.options.ranges;if(typeof lr.yy.parseError==="function")this.parseError=lr.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Xn(_t){Ge.length=Ge.length-2*_t,we.length=we.length-_t,Ae.length=Ae.length-_t}I(Xn,"popStack");function Yt(){var _t=ke.pop()||Zt.lex()||cr;if(typeof _t!=="number"){if(_t instanceof Array)ke=_t,_t=ke.pop();_t=be.symbols_[_t]||_t}return _t}I(Yt,"lex");var Bn,si,dn,Ii,Vn,Ei,vn={},Li,Ia,tt,Fn;while(!0){if(dn=Ge[Ge.length-1],this.defaultActions[dn])Ii=this.defaultActions[dn];else{if(Bn===null||typeof Bn>"u")Bn=Yt();Ii=at[dn]&&at[dn][Bn]}if(typeof Ii>"u"||!Ii.length||!Ii[0]){var Hn="";Fn=[];for(Li in at[dn])if(this.terminals_[Li]&&Li>qt)Fn.push("'"+this.terminals_[Li]+"'");if(Zt.showPosition)Hn="Parse error on line "+(gt+1)+`: `+Zt.showPosition()+` -Expecting `+Fn.join(", ")+", got '"+(this.terminals_[Bn]||Bn)+"'";else Hn="Parse error on line "+(gt+1)+": Unexpected "+(Bn==cr?"end of input":"'"+(this.terminals_[Bn]||Bn)+"'");this.parseError(Hn,{text:Zt.match,token:this.terminals_[Bn]||Bn,line:Zt.yylineno,loc:In,expected:Fn})}if(Ii[0]instanceof Array&&Ii.length>1)throw Error("Parse Error: multiple actions possible at state: "+hn+", token: "+Bn);switch(Ii[0]){case 1:if(ze.push(Bn),_e.push(Zt.yytext),ke.push(Zt.yylloc),ze.push(Ii[1]),Bn=null,!si){if(vt=Zt.yyleng,ut=Zt.yytext,gt=Zt.yylineno,In=Zt.yylloc,ir>0)ir--}else Bn=si,si=null;break;case 2:if(Ia=this.productions_[Ii[1]][1],yn.$=_e[_e.length-Ia],yn._$={first_line:ke[ke.length-(Ia||1)].first_line,last_line:ke[ke.length-1].last_line,first_column:ke[ke.length-(Ia||1)].first_column,last_column:ke[ke.length-1].last_column},Et)yn._$.range=[ke[ke.length-(Ia||1)].range[0],ke[ke.length-1].range[1]];if(Ei=this.performAction.apply(yn,[ut,vt,gt,lr.yy,Ii[1],_e,ke].concat(tr)),typeof Ei<"u")return Ei;if(Ia)ze=ze.slice(0,-1*Ia*2),_e=_e.slice(0,-1*Ia),ke=ke.slice(0,-1*Ia);ze.push(this.productions_[Ii[1]][0]),_e.push(yn.$),ke.push(yn._$),tt=it[ze[ze.length-2]][ze[ze.length-1]],ze.push(tt);break;case 3:return!0}}return!0},"parse")},De=function(){var pe={EOF:1,parseError:I(function(be,ze){if(this.yy.parser)this.yy.parser.parseError(be,ze);else throw Error(be)},"parseError"),setInput:I(function(fe,be){if(this.yy=be||this.yy||{},this._input=fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var be=fe.match(/(?:\r\n?|\n).*/g);if(be)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),fe},"input"),unput:I(function(fe){var be=fe.length,ze=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-be),this.offset-=be;var Ce=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),ze.length-1)this.yylineno-=ze.length-1;var _e=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:ze?(ze.length===Ce.length?this.yylloc.first_column:0)+Ce[Ce.length-ze.length].length-ze[0].length:this.yylloc.first_column-be},this.options.ranges)this.yylloc.range=[_e[0],_e[0]+this.yyleng-be];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Fn.join(", ")+", got '"+(this.terminals_[Bn]||Bn)+"'";else Hn="Parse error on line "+(gt+1)+": Unexpected "+(Bn==cr?"end of input":"'"+(this.terminals_[Bn]||Bn)+"'");this.parseError(Hn,{text:Zt.match,token:this.terminals_[Bn]||Bn,line:Zt.yylineno,loc:In,expected:Fn})}if(Ii[0]instanceof Array&&Ii.length>1)throw Error("Parse Error: multiple actions possible at state: "+dn+", token: "+Bn);switch(Ii[0]){case 1:if(Ge.push(Bn),we.push(Zt.yytext),Ae.push(Zt.yylloc),Ge.push(Ii[1]),Bn=null,!si){if(vt=Zt.yyleng,ut=Zt.yytext,gt=Zt.yylineno,In=Zt.yylloc,ir>0)ir--}else Bn=si,si=null;break;case 2:if(Ia=this.productions_[Ii[1]][1],vn.$=we[we.length-Ia],vn._$={first_line:Ae[Ae.length-(Ia||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-(Ia||1)].first_column,last_column:Ae[Ae.length-1].last_column},Et)vn._$.range=[Ae[Ae.length-(Ia||1)].range[0],Ae[Ae.length-1].range[1]];if(Ei=this.performAction.apply(vn,[ut,vt,gt,lr.yy,Ii[1],we,Ae].concat(tr)),typeof Ei<"u")return Ei;if(Ia)Ge=Ge.slice(0,-1*Ia*2),we=we.slice(0,-1*Ia),Ae=Ae.slice(0,-1*Ia);Ge.push(this.productions_[Ii[1]][0]),we.push(vn.$),Ae.push(vn._$),tt=at[Ge[Ge.length-2]][Ge[Ge.length-1]],Ge.push(tt);break;case 3:return!0}}return!0},"parse")},De=function(){var pe={EOF:1,parseError:I(function(be,Ge){if(this.yy.parser)this.yy.parser.parseError(be,Ge);else throw Error(be)},"parseError"),setInput:I(function(fe,be){if(this.yy=be||this.yy||{},this._input=fe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var fe=this._input[0];this.yytext+=fe,this.yyleng++,this.offset++,this.match+=fe,this.matched+=fe;var be=fe.match(/(?:\r\n?|\n).*/g);if(be)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),fe},"input"),unput:I(function(fe){var be=fe.length,Ge=fe.split(/(?:\r\n?|\n)/g);this._input=fe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-be),this.offset-=be;var ke=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ge.length-1)this.yylineno-=Ge.length-1;var we=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ge?(Ge.length===ke.length?this.yylloc.first_column:0)+ke[ke.length-Ge.length].length-Ge[0].length:this.yylloc.first_column-be},this.options.ranges)this.yylloc.range=[we[0],we[0]+this.yyleng-be];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(fe){this.unput(this.match.slice(fe))},"less"),pastInput:I(function(){var fe=this.matched.substr(0,this.matched.length-this.match.length);return(fe.length>20?"...":"")+fe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var fe=this.match;if(fe.length<20)fe+=this._input.substr(0,20-fe.length);return(fe.substr(0,20)+(fe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var fe=this.pastInput(),be=Array(fe.length+1).join("-");return fe+this.upcomingInput()+` -`+be+"^"},"showPosition"),test_match:I(function(fe,be){var ze,Ce,_e;if(this.options.backtrack_lexer){if(_e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)_e.yylloc.range=this.yylloc.range.slice(0)}if(Ce=fe[0].match(/(?:\r\n?|\n).*/g),Ce)this.yylineno+=Ce.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Ce?Ce[Ce.length-1].length-Ce[Ce.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+fe[0].length},this.yytext+=fe[0],this.match+=fe[0],this.matches=fe,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(fe[0].length),this.matched+=fe[0],ze=this.performAction.call(this,this.yy,this,be,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(ze)return ze;else if(this._backtrack){for(var ke in _e)this[ke]=_e[ke];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var fe,be,ze,Ce;if(!this._more)this.yytext="",this.match="";var _e=this._currentRules();for(var ke=0;ke<_e.length;ke++)if(ze=this._input.match(this.rules[_e[ke]]),ze&&(!be||ze[0].length>be[0].length)){if(be=ze,Ce=ke,this.options.backtrack_lexer)if(fe=this.test_match(ze,_e[ke]),fe!==!1)return fe;else if(this._backtrack){be=!1;continue}else return!1;else if(!this.options.flex)break}if(be){if(fe=this.test_match(be,_e[Ce]),fe!==!1)return fe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var be=this.next();if(be)return be;else return this.lex()},"lex"),begin:I(function(be){this.conditionStack.push(be)},"begin"),popState:I(function(){var be=this.conditionStack.length-1;if(be>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(be){if(be=this.conditionStack.length-1-Math.abs(be||0),be>=0)return this.conditionStack[be];else return"INITIAL"},"topState"),pushState:I(function(be){this.begin(be)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(be,ze,Ce,_e){var ke=_e;switch(Ce){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return ze.yytext=ze.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return pe}();Je.lexer=De;function oe(){this.yy={}}return I(oe,"Parser"),oe.prototype=Je,Je.Parser=oe,new oe}();Lft.parser=Lft;j2i=Lft,K2i=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Ys,this.getAccTitle=oo,this.setAccDescription=Js,this.getAccDescription=lo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getConfig=I(()=>Ar().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{I(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,r){if(!this.requirements.has(e))this.requirements.set(e,{name:e,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]});return this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){if(this.latestRequirement!==void 0)this.latestRequirement.requirementId=e}setNewReqText(e){if(this.latestRequirement!==void 0)this.latestRequirement.text=e}setNewReqRisk(e){if(this.latestRequirement!==void 0)this.latestRequirement.risk=e}setNewReqVerifyMethod(e){if(this.latestRequirement!==void 0)this.latestRequirement.verifyMethod=e}addElement(e){if(!this.elements.has(e))this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),Ze.info("Added new element: ",e);return this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){if(this.latestElement!==void 0)this.latestElement.type=e}setNewElementDocRef(e){if(this.latestElement!==void 0)this.latestElement.docRef=e}addRelationship(e,r,i){this.relations.push({type:e,src:r,dst:i})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,qs()}setCssStyle(e,r){for(let i of e){let a=this.requirements.get(i)??this.elements.get(i);if(!r||!a)return;for(let o of r)if(o.includes(","))a.cssStyles.push(...o.split(","));else a.cssStyles.push(o)}}setClass(e,r){for(let i of e){let a=this.requirements.get(i)??this.elements.get(i);if(a)for(let o of r){a.classes.push(o);let l=this.classes.get(o)?.styles;if(l)a.cssStyles.push(...l)}}}defineClass(e,r){for(let i of e){let a=this.classes.get(i);if(a===void 0)a={id:i,styles:[],textStyles:[]},this.classes.set(i,a);if(r)r.forEach(function(o){if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)});this.requirements.forEach((o)=>{if(o.classes.includes(i))o.cssStyles.push(...r.flatMap((l)=>l.split(",")))}),this.elements.forEach((o)=>{if(o.classes.includes(i))o.cssStyles.push(...r.flatMap((l)=>l.split(",")))})}}getClasses(){return this.classes}getData(){let e=Ar(),r=[],i=[];for(let o of this.requirements.values()){let l=o;l.id=o.name,l.cssStyles=o.cssStyles,l.cssClasses=o.classes.join(" "),l.shape="requirementBox",l.look=e.look,l.colorIndex=r.length,r.push(l)}for(let o of this.elements.values()){let l=o;l.shape="requirementBox",l.look=e.look,l.id=o.name,l.cssStyles=o.cssStyles,l.cssClasses=o.classes.join(" "),l.colorIndex=r.length,r.push(l)}let a=0;for(let o of this.relations){let l=o.type===this.Relationships.CONTAINS,h={id:`${o.src}-${o.dst}-${a++}`,start:this.requirements.get(o.src)?.name??this.elements.get(o.src)?.name,end:this.requirements.get(o.dst)?.name??this.elements.get(o.dst)?.name,label:`<<${o.type}>>`,classes:"relationshipLine",style:["fill:none",l?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:l?"normal":"dashed",arrowTypeStart:l?"requirement_contains":"",arrowTypeEnd:l?"":"requirement_arrow",look:e.look,labelType:"markdown"};i.push(h)}return{nodes:r,edges:i,other:{},config:e,direction:this.getDirection()}}},X2i=I(()=>{let e=ea(),{theme:r,themeVariables:i}=e,{bkgColorArray:a,borderColorArray:o}=i;if(!nm(r,o))return"";let l=hg(e.look),h="",d=rm(a);for(let p=0;pbe[0].length)){if(be=Ge,ke=Ae,this.options.backtrack_lexer)if(fe=this.test_match(Ge,we[Ae]),fe!==!1)return fe;else if(this._backtrack){be=!1;continue}else return!1;else if(!this.options.flex)break}if(be){if(fe=this.test_match(be,we[ke]),fe!==!1)return fe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var be=this.next();if(be)return be;else return this.lex()},"lex"),begin:I(function(be){this.conditionStack.push(be)},"begin"),popState:I(function(){var be=this.conditionStack.length-1;if(be>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(be){if(be=this.conditionStack.length-1-Math.abs(be||0),be>=0)return this.conditionStack[be];else return"INITIAL"},"topState"),pushState:I(function(be){this.begin(be)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(be,Ge,ke,we){var Ae=we;switch(ke){case 0:return"title";case 1:return this.begin("acc_title"),9;break;case 2:return this.popState(),"acc_title_value";break;case 3:return this.begin("acc_descr"),11;break;case 4:return this.popState(),"acc_descr_value";break;case 5:this.begin("acc_descr_multiline");break;case 6:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:break;case 14:break;case 15:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;break;case 50:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 56:break;case 57:this.begin("string");break;case 58:this.popState();break;case 59:return this.begin("style"),72;break;case 60:return this.begin("style"),74;break;case 61:return 61;case 62:return 64;case 63:return 63;case 64:this.begin("string");break;case 65:this.popState();break;case 66:return"qString";case 67:return Ge.yytext=Ge.yytext.trim(),89;break;case 68:return 75;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}};return pe}();Je.lexer=De;function le(){this.yy={}}return I(le,"Parser"),le.prototype=Je,Je.Parser=le,new le}();Pft.parser=Pft;eEi=Pft,tEi=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=Ys,this.getAccTitle=oo,this.setAccDescription=Js,this.getAccDescription=lo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getConfig=I(()=>Ar().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{I(this,"RequirementDB")}getDirection(){return this.direction}setDirection(e){this.direction=e}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(e,r){if(!this.requirements.has(e))this.requirements.set(e,{name:e,type:r,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]});return this.resetLatestRequirement(),this.requirements.get(e)}getRequirements(){return this.requirements}setNewReqId(e){if(this.latestRequirement!==void 0)this.latestRequirement.requirementId=e}setNewReqText(e){if(this.latestRequirement!==void 0)this.latestRequirement.text=e}setNewReqRisk(e){if(this.latestRequirement!==void 0)this.latestRequirement.risk=e}setNewReqVerifyMethod(e){if(this.latestRequirement!==void 0)this.latestRequirement.verifyMethod=e}addElement(e){if(!this.elements.has(e))this.elements.set(e,{name:e,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),Ze.info("Added new element: ",e);return this.resetLatestElement(),this.elements.get(e)}getElements(){return this.elements}setNewElementType(e){if(this.latestElement!==void 0)this.latestElement.type=e}setNewElementDocRef(e){if(this.latestElement!==void 0)this.latestElement.docRef=e}addRelationship(e,r,i){this.relations.push({type:e,src:r,dst:i})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,qs()}setCssStyle(e,r){for(let i of e){let a=this.requirements.get(i)??this.elements.get(i);if(!r||!a)return;for(let o of r)if(o.includes(","))a.cssStyles.push(...o.split(","));else a.cssStyles.push(o)}}setClass(e,r){for(let i of e){let a=this.requirements.get(i)??this.elements.get(i);if(a)for(let o of r){a.classes.push(o);let l=this.classes.get(o)?.styles;if(l)a.cssStyles.push(...l)}}}defineClass(e,r){for(let i of e){let a=this.classes.get(i);if(a===void 0)a={id:i,styles:[],textStyles:[]},this.classes.set(i,a);if(r)r.forEach(function(o){if(/color/.exec(o)){let l=o.replace("fill","bgFill");a.textStyles.push(l)}a.styles.push(o)});this.requirements.forEach((o)=>{if(o.classes.includes(i))o.cssStyles.push(...r.flatMap((l)=>l.split(",")))}),this.elements.forEach((o)=>{if(o.classes.includes(i))o.cssStyles.push(...r.flatMap((l)=>l.split(",")))})}}getClasses(){return this.classes}getData(){let e=Ar(),r=[],i=[];for(let o of this.requirements.values()){let l=o;l.id=o.name,l.cssStyles=o.cssStyles,l.cssClasses=o.classes.join(" "),l.shape="requirementBox",l.look=e.look,l.colorIndex=r.length,r.push(l)}for(let o of this.elements.values()){let l=o;l.shape="requirementBox",l.look=e.look,l.id=o.name,l.cssStyles=o.cssStyles,l.cssClasses=o.classes.join(" "),l.colorIndex=r.length,r.push(l)}let a=0;for(let o of this.relations){let l=o.type===this.Relationships.CONTAINS,h={id:`${o.src}-${o.dst}-${a++}`,start:this.requirements.get(o.src)?.name??this.elements.get(o.src)?.name,end:this.requirements.get(o.dst)?.name??this.elements.get(o.dst)?.name,label:`<<${o.type}>>`,classes:"relationshipLine",style:["fill:none",l?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:l?"normal":"dashed",arrowTypeStart:l?"requirement_contains":"",arrowTypeEnd:l?"":"requirement_arrow",look:e.look,labelType:"markdown"};i.push(h)}return{nodes:r,edges:i,other:{},config:e,direction:this.getDirection()}}},rEi=I(()=>{let e=ea(),{theme:r,themeVariables:i}=e,{bkgColorArray:a,borderColorArray:o}=i;if(!nm(r,o))return"";let l=hg(e.look),h="",d=rm(a);for(let p=0;p{let r=ea(),{look:i,themeVariables:a}=r,{requirementEdgeLabelBackground:o}=a;return` - ${X2i()} + `}return h},"genColor"),nEi=I((e)=>{let r=ea(),{look:i,themeVariables:a}=r,{requirementEdgeLabelBackground:o}=a;return` + ${rEi()} marker { fill: ${e.relationColor}; stroke: ${e.relationColor}; @@ -2162,16 +2162,16 @@ Expecting `+Fn.join(", ")+", got '"+(this.terminals_[Bn]||Bn)+"'";else Hn="Parse background-color: ${o??e.edgeLabelBackground}; } -`},"getStyles"),Z2i=Q2i,DYr={};XN(DYr,{draw:()=>J2i});J2i=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing requirement diagram (unified)",r);let{securityLevel:o,state:l,layout:h,look:d}=Ar(),p=a.db.getData(),m=ly(r,o);p.type=a.type,p.layoutAlgorithm=oy(h),p.nodeSpacing=l?.nodeSpacing??50,p.rankSpacing=l?.rankSpacing??50,p.markers=d==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],p.diagramId=r,await sy(p,m);let y=8;Ts.insertTitle(m,"requirementDiagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(m,y,"requirementDiagram",l?.useMaxWidth??!0)},"draw"),PYr={parser:j2i,get db(){return new K2i},renderer:DYr,styles:Z2i}});async function WYr(e,r){_i.bumpVerticalPos(10);let{startx:i,stopx:a,message:o}=r,l=ai.splitBreaks(o).length,h=bf(o),d=h?await HV(o,Ar()):Ts.calculateTextDimensions(o,wF(zr));if(!h){let E=d.height/l;r.height+=E,_i.bumpVerticalPos(E)}let p,m=d.height-10,y=d.width;if(i===a){if(p=_i.getVerticalPos()+m,!zr.rightAngles)m+=zr.boxMargin,p=_i.getVerticalPos()+m;m+=30;let E=ai.getMax(y/2,zr.width/2);_i.insert(i-E,_i.getVerticalPos()-10+m,a+E,_i.getVerticalPos()+30+m)}else m+=zr.boxMargin,p=_i.getVerticalPos()+m,_i.insert(i,p-10,a,p);return _i.bumpVerticalPos(m),r.height+=m,r.stopy=r.starty+r.height,_i.insert(r.fromBounds,r.starty,r.toBounds,r.stopy),p}function zC(e,r,i,a,o){_i.bumpVerticalPos(i);let l=a;if(r.id&&r.message&&e[r.id]){let h=e[r.id].width,d=wF(zr);r.message=Ts.wrapLabel(`[${r.message}]`,h-2*zr.wrapPadding,d),r.width=h,r.wrap=!0;let p=Ts.calculateTextDimensions(r.message,d),m=ai.getMax(p.height,zr.labelBoxHeight);l=a+m,Ze.debug(`${m} - ${r.message}`)}o(r),_i.bumpVerticalPos(l)}function XYr(e,r,i,a,o,l,h){function d(y,E){if(y.x{let h=wF(zr),d=l.actorKeys.reduce((E,w)=>E+=e.get(w).width+(e.get(w).margin||0),0),p=zr.boxMargin*8;if(d+=p,d-=2*zr.boxTextMargin,l.wrap)l.name=Ts.wrapLabel(l.name,d-2*zr.wrapPadding,h);let m=Ts.calculateTextDimensions(l.name,h);o=ai.getMax(m.height,o);let y=ai.getMax(d,m.width+2*zr.wrapPadding);if(l.margin=zr.boxTextMargin,dl.textMaxHeight=o),ai.getMax(a,zr.height)}var Fft,Dft,eEi,tEi,rEi,nEi,Ike,iEi,aEi,sEi,Lke=44,$ft=6,Oke=6,oEi,GYr,lEi,cEi,_F=36,uEi=-5,zYr=60,FYr,hoe,X7="actor-top",Q7="actor-bottom",Mke="actor-box",EF="actor-man",II,Wp,uoe,hEi,Dke,Nke,HY,VYr,Uc=-1,HYr,dEi,fEi,pEi,gEi,mEi,bEi,yEi,vEi,_Ei,EEi,wEi,SEi,TEi,qYr,xEi,CEi,kEi,AEi,REi,IEi,OEi,Z7,NEi,YYr,LEi,OI,MEi,DEi,PEi,BEi,FEi,kd,zr,_i,$Ei,$Yr,wF,VY,Pft,UEi,GEi,Bft,jYr,KYr,Pke,UYr,zEi,VEi,HEi,qEi=4,YEi=6,Mft,WEi,JYr,jEi,KEi,XEi,QEi,eWr;var tWr=Re(()=>{kxe();vL();z3();Ql();eo();Zs();Ja();dl();Fft=sv(xne(),1),Dft=function(){var e=I(function(cr,tr,Zt,lr){for(Zt=Zt||{},lr=cr.length;lr--;Zt[cr[lr]]=tr);return Zt},"o"),r=[1,2],i=[1,3],a=[1,4],o=[2,4],l=[1,9],h=[1,11],d=[1,12],p=[1,14],m=[1,15],y=[1,17],E=[1,18],w=[1,19],T=[1,25],x=[1,26],k=[1,27],A=[1,28],R=[1,29],N=[1,30],L=[1,31],B=[1,32],D=[1,33],P=[1,34],F=[1,35],H=[1,36],K=[1,37],Q=[1,38],Z=[1,39],Y=[1,40],j=[1,42],te=[1,43],X=[1,44],W=[1,45],J=[1,46],z=[1,47],ne=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ie=[1,56],le=[1,75],se=[1,81],he=[1,82],ye=[1,83],xe=[1,84],Ie=[1,85],Ee=[1,86],Ue=[1,87],Me=[1,88],Xe=[1,89],je=[1,90],Qe=[1,91],St=[1,92],pt=[1,93],Vt=[1,94],Xt=[1,95],rr=[1,96],We=[1,97],Nt=[1,98],ct=[1,99],bt=[1,100],Pe=[1,101],Ge=[1,102],qe=[1,103],Ke=[1,104],Je=[1,105],De=[1,106],oe=[2,79],pe=[2,78],fe=[4,5,17,51,53,54],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],ze=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],_e=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],ke=[5,52],it=[62,70,71,72,73],ut=[62,73],gt=[1,152],vt={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:I(function(tr,Zt,lr,Kt,In,Et,Xn){var Yt=Et.length-1;switch(In){case 3:return Kt.apply(Et[Yt]),Et[Yt];break;case 4:case 10:this.$=[];break;case 5:case 11:Et[Yt-1].push(Et[Yt]),this.$=Et[Yt-1];break;case 6:case 7:case 12:case 13:this.$=Et[Yt];break;case 8:case 9:case 14:this.$=[];break;case 16:Et[Yt].type="createParticipant",this.$=Et[Yt];break;case 17:Et[Yt-1].unshift({type:"boxStart",boxData:Kt.parseBoxData(Et[Yt-2])}),Et[Yt-1].push({type:"boxEnd",boxText:Et[Yt-2]}),this.$=Et[Yt-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Et[Yt-2]),sequenceIndexStep:Number(Et[Yt-1]),sequenceVisible:!0,signalType:Kt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(Et[Yt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Kt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Kt.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Kt.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:Kt.LINETYPE.ACTIVE_START,actor:Et[Yt-1].actor};break;case 24:this.$={type:"activeEnd",signalType:Kt.LINETYPE.ACTIVE_END,actor:Et[Yt-1].actor};break;case 30:Kt.setDiagramTitle(Et[Yt].substring(6)),this.$=Et[Yt].substring(6);break;case 31:Kt.setDiagramTitle(Et[Yt].substring(7)),this.$=Et[Yt].substring(7);break;case 32:this.$=Et[Yt].trim(),Kt.setAccTitle(this.$);break;case 33:case 34:this.$=Et[Yt].trim(),Kt.setAccDescription(this.$);break;case 35:Et[Yt-1].unshift({type:"loopStart",loopText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.LOOP_START}),Et[Yt-1].push({type:"loopEnd",loopText:Et[Yt-2],signalType:Kt.LINETYPE.LOOP_END}),this.$=Et[Yt-1];break;case 36:Et[Yt-1].unshift({type:"rectStart",color:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.RECT_START}),Et[Yt-1].push({type:"rectEnd",color:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.RECT_END}),this.$=Et[Yt-1];break;case 37:Et[Yt-1].unshift({type:"optStart",optText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.OPT_START}),Et[Yt-1].push({type:"optEnd",optText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.OPT_END}),this.$=Et[Yt-1];break;case 38:Et[Yt-1].unshift({type:"altStart",altText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.ALT_START}),Et[Yt-1].push({type:"altEnd",signalType:Kt.LINETYPE.ALT_END}),this.$=Et[Yt-1];break;case 39:Et[Yt-1].unshift({type:"parStart",parText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.PAR_START}),Et[Yt-1].push({type:"parEnd",signalType:Kt.LINETYPE.PAR_END}),this.$=Et[Yt-1];break;case 40:Et[Yt-1].unshift({type:"parStart",parText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.PAR_OVER_START}),Et[Yt-1].push({type:"parEnd",signalType:Kt.LINETYPE.PAR_END}),this.$=Et[Yt-1];break;case 41:Et[Yt-1].unshift({type:"criticalStart",criticalText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.CRITICAL_START}),Et[Yt-1].push({type:"criticalEnd",signalType:Kt.LINETYPE.CRITICAL_END}),this.$=Et[Yt-1];break;case 42:Et[Yt-1].unshift({type:"breakStart",breakText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.BREAK_START}),Et[Yt-1].push({type:"breakEnd",optText:Kt.parseMessage(Et[Yt-2]),signalType:Kt.LINETYPE.BREAK_END}),this.$=Et[Yt-1];break;case 44:this.$=Et[Yt-3].concat([{type:"option",optionText:Kt.parseMessage(Et[Yt-1]),signalType:Kt.LINETYPE.CRITICAL_OPTION},Et[Yt]]);break;case 46:this.$=Et[Yt-3].concat([{type:"and",parText:Kt.parseMessage(Et[Yt-1]),signalType:Kt.LINETYPE.PAR_AND},Et[Yt]]);break;case 48:this.$=Et[Yt-3].concat([{type:"else",altText:Kt.parseMessage(Et[Yt-1]),signalType:Kt.LINETYPE.ALT_ELSE},Et[Yt]]);break;case 49:Et[Yt-3].draw="participant",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Kt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 50:Et[Yt-1].draw="participant",Et[Yt-1].type="addParticipant",this.$=Et[Yt-1];break;case 51:Et[Yt-3].draw="actor",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Kt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 52:case 57:Et[Yt-1].draw="actor",Et[Yt-1].type="addParticipant",this.$=Et[Yt-1];break;case 53:Et[Yt-1].type="destroyParticipant",this.$=Et[Yt-1];break;case 54:Et[Yt-3].draw="participant",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Kt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 55:Et[Yt-1].draw="participant",Et[Yt-1].type="addParticipant",this.$=Et[Yt-1];break;case 56:Et[Yt-3].draw="actor",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Kt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 58:this.$=[Et[Yt-1],{type:"addNote",placement:Et[Yt-2],actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 59:Et[Yt-2]=[].concat(Et[Yt-1],Et[Yt-1]).slice(0,2),Et[Yt-2][0]=Et[Yt-2][0].actor,Et[Yt-2][1]=Et[Yt-2][1].actor,this.$=[Et[Yt-1],{type:"addNote",placement:Kt.PLACEMENT.OVER,actor:Et[Yt-2].slice(0,2),text:Et[Yt]}];break;case 60:this.$=[Et[Yt-1],{type:"addLinks",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 61:this.$=[Et[Yt-1],{type:"addALink",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 62:this.$=[Et[Yt-1],{type:"addProperties",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 63:this.$=[Et[Yt-1],{type:"addDetails",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 66:this.$=[Et[Yt-2],Et[Yt]];break;case 67:this.$=Et[Yt];break;case 68:this.$=Kt.PLACEMENT.LEFTOF;break;case 69:this.$=Kt.PLACEMENT.RIGHTOF;break;case 70:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt],activate:!0},{type:"activeStart",signalType:Kt.LINETYPE.ACTIVE_START,actor:Et[Yt-1].actor}];break;case 71:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt]},{type:"activeEnd",signalType:Kt.LINETYPE.ACTIVE_END,actor:Et[Yt-4].actor}];break;case 72:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt],activate:!0,centralConnection:Kt.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:Kt.LINETYPE.CENTRAL_CONNECTION,actor:Et[Yt-1].actor}];break;case 73:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-2],msg:Et[Yt],activate:!1,centralConnection:Kt.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:Kt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:Et[Yt-4].actor}];break;case 74:this.$=[Et[Yt-5],Et[Yt-1],{type:"addMessage",from:Et[Yt-5].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt],activate:!0,centralConnection:Kt.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:Kt.LINETYPE.CENTRAL_CONNECTION,actor:Et[Yt-1].actor},{type:"centralConnectionReverse",signalType:Kt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:Et[Yt-5].actor}];break;case 75:this.$=[Et[Yt-3],Et[Yt-1],{type:"addMessage",from:Et[Yt-3].actor,to:Et[Yt-1].actor,signalType:Et[Yt-2],msg:Et[Yt]}];break;case 76:this.$={type:"addParticipant",actor:Et[Yt-1],config:Et[Yt]};break;case 77:this.$=Et[Yt-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:Et[Yt]};break;case 80:this.$=Kt.LINETYPE.SOLID_OPEN;break;case 81:this.$=Kt.LINETYPE.DOTTED_OPEN;break;case 82:this.$=Kt.LINETYPE.SOLID;break;case 83:this.$=Kt.LINETYPE.SOLID_TOP;break;case 84:this.$=Kt.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=Kt.LINETYPE.STICK_TOP;break;case 86:this.$=Kt.LINETYPE.STICK_BOTTOM;break;case 87:this.$=Kt.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=Kt.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=Kt.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=Kt.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=Kt.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=Kt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=Kt.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=Kt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=Kt.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=Kt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=Kt.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=Kt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=Kt.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=Kt.LINETYPE.DOTTED;break;case 101:this.$=Kt.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=Kt.LINETYPE.SOLID_CROSS;break;case 103:this.$=Kt.LINETYPE.DOTTED_CROSS;break;case 104:this.$=Kt.LINETYPE.SOLID_POINT;break;case 105:this.$=Kt.LINETYPE.DOTTED_POINT;break;case 106:this.$=Kt.parseMessage(Et[Yt].trim().substring(1));break}},"anonymous"),table:[{3:1,4:r,5:i,6:a},{1:[3]},{3:5,4:r,5:i,6:a},{3:6,4:r,5:i,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],o,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},e(ne,[2,5]),{9:48,13:13,14:p,15:m,18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},e(ne,[2,7]),e(ne,[2,8]),e(ne,[2,9]),e(ne,[2,15]),{13:49,51:Q,53:Z,54:Y},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:ie,73:z},{23:57,62:ie,73:z},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(ne,[2,30]),e(ne,[2,31]),{33:[1,63]},{35:[1,64]},e(ne,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:ie,73:le},{23:76,55:77,62:ie,73:le},{23:78,62:ie,73:z},{69:79,72:[1,80],78:se,79:he,80:ye,81:xe,82:Ie,83:Ee,84:Ue,85:Me,86:Xe,87:je,88:Qe,89:St,90:pt,91:Vt,92:Xt,93:rr,94:We,95:Nt,96:ct,97:bt,98:Pe,99:Ge,100:qe,101:Ke,102:Je,103:De},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:ie,73:z},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],oe,{23:112,62:ie,73:z}),{23:113,62:ie,73:z},{23:114,62:ie,73:z},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],pe),e(ne,[2,6]),e(ne,[2,16]),e(fe,[2,10],{11:115}),e(ne,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(ne,[2,22]),{5:[1,119]},e([5,52,66,104],oe),{5:[1,120]},e(ne,[2,25]),e(ne,[2,26]),e(ne,[2,27]),e(ne,[2,28]),e(ne,[2,29]),e(ne,[2,32]),e(ne,[2,33]),e(be,o,{7:121}),e(be,o,{7:122}),e(be,o,{7:123}),e(ze,o,{41:124,7:125}),e(Ce,o,{43:126,7:127}),e(Ce,o,{7:127,43:128}),e(_e,o,{46:129,7:130}),e(be,o,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(ke,pe,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:ie,70:[1,143],71:[1,144],72:[1,145],73:z},{69:147,78:se,79:he,80:ye,81:xe,82:Ie,83:Ee,84:Ue,85:Me,86:Xe,87:je,88:Qe,89:St,90:pt,91:Vt,92:Xt,93:rr,94:We,95:Nt,96:ct,97:bt,98:Pe,99:Ge,100:qe,101:Ke,102:Je,103:De},e(it,[2,80]),e(it,[2,81]),e(it,[2,82]),e(it,[2,83]),e(it,[2,84]),e(it,[2,85]),e(it,[2,86]),e(it,[2,87]),e(it,[2,88]),e(it,[2,89]),e(it,[2,90]),e(it,[2,91]),e(it,[2,92]),e(it,[2,93]),e(it,[2,94]),e(it,[2,95]),e(it,[2,96]),e(it,[2,97]),e(it,[2,98]),e(it,[2,99]),e(it,[2,100]),e(it,[2,101]),e(it,[2,102]),e(it,[2,103]),e(it,[2,104]),e(it,[2,105]),{23:148,62:ie,73:z},{23:150,60:149,62:ie,73:z},e(ut,[2,68]),e(ut,[2,69]),{58:151,104:gt},{58:153,104:gt},{58:154,104:gt},{58:155,104:gt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:Q,53:Z,54:Y},{5:[1,161]},e(ne,[2,20]),e(ne,[2,21]),e(ne,[2,23]),e(ne,[2,24]),{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,162],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,163],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,164],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{17:[1,165]},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[2,47],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,50:[1,166],51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{17:[1,167]},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[2,45],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,49:[1,168],51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{17:[1,169]},{17:[1,170]},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[2,43],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,48:[1,171],51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,172],18:16,19:y,22:E,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:K,51:Q,53:Z,54:Y,56:j,61:te,62:X,63:W,64:J,73:z},{16:[1,173]},e(ne,[2,50]),{16:[1,174]},e(ne,[2,55]),e(ke,[2,76]),{76:[1,175]},{16:[1,176]},e(ne,[2,52]),{16:[1,177]},e(ne,[2,57]),e(ne,[2,53]),{23:178,62:ie,73:z},{23:179,62:ie,73:z},{23:180,62:ie,73:z},{58:181,104:gt},{23:182,62:ie,72:[1,183],73:z},{58:184,104:gt},{58:185,104:gt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(ne,[2,17]),e(fe,[2,11]),{13:187,51:Q,53:Z,54:Y},e(fe,[2,13]),e(fe,[2,14]),e(ne,[2,19]),e(ne,[2,35]),e(ne,[2,36]),e(ne,[2,37]),e(ne,[2,38]),{16:[1,188]},e(ne,[2,39]),{16:[1,189]},e(ne,[2,40]),e(ne,[2,41]),{16:[1,190]},e(ne,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:gt},{58:197,104:gt},{58:198,104:gt},{5:[2,75]},{58:199,104:gt},{23:200,62:ie,73:z},{5:[2,58]},{5:[2,59]},{23:201,62:ie,73:z},e(fe,[2,12]),e(ze,o,{7:125,41:202}),e(Ce,o,{7:127,43:203}),e(_e,o,{7:130,46:204}),e(ne,[2,49]),e(ne,[2,54]),e(ke,[2,77]),e(ne,[2,51]),e(ne,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:gt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:I(function(tr,Zt){if(Zt.recoverable)this.trace(tr);else{var lr=Error(tr);throw lr.hash=Zt,lr}},"parseError"),parse:I(function(tr){var Zt=this,lr=[0],Kt=[],In=[null],Et=[],Xn=this.table,Yt="",Bn=0,si=0,hn=0,Ii=2,Vn=1,Ei=Et.slice.call(arguments,1),yn=Object.create(this.lexer),Li={yy:{}};for(var Ia in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ia))Li.yy[Ia]=this.yy[Ia];if(yn.setInput(tr,Li.yy),Li.yy.lexer=yn,Li.yy.parser=this,typeof yn.yylloc>"u")yn.yylloc={};var tt=yn.yylloc;Et.push(tt);var Fn=yn.options&&yn.options.ranges;if(typeof Li.yy.parseError==="function")this.parseError=Li.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Hn(ma){lr.length=lr.length-2*ma,In.length=In.length-ma,Et.length=Et.length-ma}I(Hn,"popStack");function _t(){var ma=Kt.pop()||yn.lex()||Vn;if(typeof ma!=="number"){if(ma instanceof Array)Kt=ma,ma=Kt.pop();ma=Zt.symbols_[ma]||ma}return ma}I(_t,"lex");var Sr,on,gn,On,as,Ir,un={},zn,Di,aa,Ca;while(!0){if(gn=lr[lr.length-1],this.defaultActions[gn])On=this.defaultActions[gn];else{if(Sr===null||typeof Sr>"u")Sr=_t();On=Xn[gn]&&Xn[gn][Sr]}if(typeof On>"u"||!On.length||!On[0]){var os="";Ca=[];for(zn in Xn[gn])if(this.terminals_[zn]&&zn>Ii)Ca.push("'"+this.terminals_[zn]+"'");if(yn.showPosition)os="Parse error on line "+(Bn+1)+`: -`+yn.showPosition()+` -Expecting `+Ca.join(", ")+", got '"+(this.terminals_[Sr]||Sr)+"'";else os="Parse error on line "+(Bn+1)+": Unexpected "+(Sr==Vn?"end of input":"'"+(this.terminals_[Sr]||Sr)+"'");this.parseError(os,{text:yn.match,token:this.terminals_[Sr]||Sr,line:yn.yylineno,loc:tt,expected:Ca})}if(On[0]instanceof Array&&On.length>1)throw Error("Parse Error: multiple actions possible at state: "+gn+", token: "+Sr);switch(On[0]){case 1:if(lr.push(Sr),In.push(yn.yytext),Et.push(yn.yylloc),lr.push(On[1]),Sr=null,!on){if(si=yn.yyleng,Yt=yn.yytext,Bn=yn.yylineno,tt=yn.yylloc,hn>0)hn--}else Sr=on,on=null;break;case 2:if(Di=this.productions_[On[1]][1],un.$=In[In.length-Di],un._$={first_line:Et[Et.length-(Di||1)].first_line,last_line:Et[Et.length-1].last_line,first_column:Et[Et.length-(Di||1)].first_column,last_column:Et[Et.length-1].last_column},Fn)un._$.range=[Et[Et.length-(Di||1)].range[0],Et[Et.length-1].range[1]];if(Ir=this.performAction.apply(un,[Yt,si,Bn,Li.yy,On[1],In,Et].concat(Ei)),typeof Ir<"u")return Ir;if(Di)lr=lr.slice(0,-1*Di*2),In=In.slice(0,-1*Di),Et=Et.slice(0,-1*Di);lr.push(this.productions_[On[1]][0]),In.push(un.$),Et.push(un._$),aa=Xn[lr[lr.length-2]][lr[lr.length-1]],lr.push(aa);break;case 3:return!0}}return!0},"parse")},ir=function(){var cr={EOF:1,parseError:I(function(Zt,lr){if(this.yy.parser)this.yy.parser.parseError(Zt,lr);else throw Error(Zt)},"parseError"),setInput:I(function(tr,Zt){if(this.yy=Zt||this.yy||{},this._input=tr,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var tr=this._input[0];this.yytext+=tr,this.yyleng++,this.offset++,this.match+=tr,this.matched+=tr;var Zt=tr.match(/(?:\r\n?|\n).*/g);if(Zt)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),tr},"input"),unput:I(function(tr){var Zt=tr.length,lr=tr.split(/(?:\r\n?|\n)/g);this._input=tr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zt),this.offset-=Zt;var Kt=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lr.length-1)this.yylineno-=lr.length-1;var In=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lr?(lr.length===Kt.length?this.yylloc.first_column:0)+Kt[Kt.length-lr.length].length-lr[0].length:this.yylloc.first_column-Zt},this.options.ranges)this.yylloc.range=[In[0],In[0]+this.yyleng-Zt];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`},"getStyles"),iEi=nEi,UYr={};ZN(UYr,{draw:()=>aEi});aEi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing requirement diagram (unified)",r);let{securityLevel:o,state:l,layout:h,look:d}=Ar(),p=a.db.getData(),m=ly(r,o);p.type=a.type,p.layoutAlgorithm=oy(h),p.nodeSpacing=l?.nodeSpacing??50,p.rankSpacing=l?.rankSpacing??50,p.markers=d==="neo"?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],p.diagramId=r,await sy(p,m);let y=8;Ts.insertTitle(m,"requirementDiagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(m,y,"requirementDiagram",l?.useMaxWidth??!0)},"draw"),GYr={parser:eEi,get db(){return new tEi},renderer:UYr,styles:iEi}});async function ZYr(e,r){_i.bumpVerticalPos(10);let{startx:i,stopx:a,message:o}=r,l=ai.splitBreaks(o).length,h=bf(o),d=h?await WV(o,Ar()):Ts.calculateTextDimensions(o,TF(zr));if(!h){let v=d.height/l;r.height+=v,_i.bumpVerticalPos(v)}let p,m=d.height-10,y=d.width;if(i===a){if(p=_i.getVerticalPos()+m,!zr.rightAngles)m+=zr.boxMargin,p=_i.getVerticalPos()+m;m+=30;let v=ai.getMax(y/2,zr.width/2);_i.insert(i-v,_i.getVerticalPos()-10+m,a+v,_i.getVerticalPos()+30+m)}else m+=zr.boxMargin,p=_i.getVerticalPos()+m,_i.insert(i,p-10,a,p);return _i.bumpVerticalPos(m),r.height+=m,r.stopy=r.starty+r.height,_i.insert(r.fromBounds,r.starty,r.toBounds,r.stopy),p}function HC(e,r,i,a,o){_i.bumpVerticalPos(i);let l=a;if(r.id&&r.message&&e[r.id]){let h=e[r.id].width,d=TF(zr);r.message=Ts.wrapLabel(`[${r.message}]`,h-2*zr.wrapPadding,d),r.width=h,r.wrap=!0;let p=Ts.calculateTextDimensions(r.message,d),m=ai.getMax(p.height,zr.labelBoxHeight);l=a+m,Ze.debug(`${m} - ${r.message}`)}o(r),_i.bumpVerticalPos(l)}function tWr(e,r,i,a,o,l,h){function d(y,v){if(y.x{let h=TF(zr),d=l.actorKeys.reduce((v,w)=>v+=e.get(w).width+(e.get(w).margin||0),0),p=zr.boxMargin*8;if(d+=p,d-=2*zr.boxTextMargin,l.wrap)l.name=Ts.wrapLabel(l.name,d-2*zr.wrapPadding,h);let m=Ts.calculateTextDimensions(l.name,h);o=ai.getMax(m.height,o);let y=ai.getMax(d,m.width+2*zr.wrapPadding);if(l.margin=zr.boxTextMargin,dl.textMaxHeight=o),ai.getMax(a,zr.height)}var Gft,Fft,sEi,oEi,lEi,cEi,Lke,uEi,hEi,dEi,Pke=44,zft=6,Mke=6,fEi,YYr,pEi,gEi,wF=36,mEi=-5,WYr=60,VYr,poe,Z7="actor-top",J7="actor-bottom",Bke="actor-box",SF="actor-man",LI,Wp,foe,bEi,Fke,Dke,WY,jYr,Uc=-1,KYr,yEi,vEi,_Ei,EEi,wEi,SEi,TEi,xEi,CEi,kEi,AEi,REi,IEi,XYr,OEi,NEi,LEi,MEi,DEi,PEi,BEi,eM,FEi,QYr,$Ei,MI,UEi,GEi,zEi,VEi,HEi,kd,zr,_i,qEi,HYr,TF,YY,$ft,YEi,WEi,Uft,JYr,eWr,$ke,qYr,jEi,KEi,XEi,QEi=4,ZEi=6,Bft,JEi,iWr,ewi,twi,rwi,nwi,aWr;var sWr=Re(()=>{Ixe();EL();V3();Ql();eo();Zs();Ja();dl();Gft=sv(Ane(),1),Fft=function(){var e=I(function(cr,tr,Zt,lr){for(Zt=Zt||{},lr=cr.length;lr--;Zt[cr[lr]]=tr);return Zt},"o"),r=[1,2],i=[1,3],a=[1,4],o=[2,4],l=[1,9],h=[1,11],d=[1,12],p=[1,14],m=[1,15],y=[1,17],v=[1,18],w=[1,19],T=[1,25],x=[1,26],k=[1,27],A=[1,28],R=[1,29],N=[1,30],L=[1,31],B=[1,32],D=[1,33],P=[1,34],F=[1,35],H=[1,36],W=[1,37],X=[1,38],Q=[1,39],Y=[1,40],K=[1,42],J=[1,43],Z=[1,44],j=[1,45],ee=[1,46],z=[1,47],ne=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],ie=[1,56],se=[1,75],oe=[1,81],he=[1,82],ye=[1,83],Se=[1,84],Ie=[1,85],Ee=[1,86],ze=[1,87],Me=[1,88],Xe=[1,89],Ye=[1,90],Qe=[1,91],xt=[1,92],dt=[1,93],zt=[1,94],Kt=[1,95],rr=[1,96],je=[1,97],Nt=[1,98],ct=[1,99],bt=[1,100],Pe=[1,101],Ue=[1,102],qe=[1,103],Ke=[1,104],Je=[1,105],De=[1,106],le=[2,79],pe=[2,78],fe=[4,5,17,51,53,54],be=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ge=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],ke=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],we=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],Ae=[5,52],at=[62,70,71,72,73],ut=[62,73],gt=[1,152],vt={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:I(function(tr,Zt,lr,Xt,In,Et,Xn){var Yt=Et.length-1;switch(In){case 3:return Xt.apply(Et[Yt]),Et[Yt];break;case 4:case 10:this.$=[];break;case 5:case 11:Et[Yt-1].push(Et[Yt]),this.$=Et[Yt-1];break;case 6:case 7:case 12:case 13:this.$=Et[Yt];break;case 8:case 9:case 14:this.$=[];break;case 16:Et[Yt].type="createParticipant",this.$=Et[Yt];break;case 17:Et[Yt-1].unshift({type:"boxStart",boxData:Xt.parseBoxData(Et[Yt-2])}),Et[Yt-1].push({type:"boxEnd",boxText:Et[Yt-2]}),this.$=Et[Yt-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(Et[Yt-2]),sequenceIndexStep:Number(Et[Yt-1]),sequenceVisible:!0,signalType:Xt.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(Et[Yt-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:Xt.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:Xt.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:Xt.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:Xt.LINETYPE.ACTIVE_START,actor:Et[Yt-1].actor};break;case 24:this.$={type:"activeEnd",signalType:Xt.LINETYPE.ACTIVE_END,actor:Et[Yt-1].actor};break;case 30:Xt.setDiagramTitle(Et[Yt].substring(6)),this.$=Et[Yt].substring(6);break;case 31:Xt.setDiagramTitle(Et[Yt].substring(7)),this.$=Et[Yt].substring(7);break;case 32:this.$=Et[Yt].trim(),Xt.setAccTitle(this.$);break;case 33:case 34:this.$=Et[Yt].trim(),Xt.setAccDescription(this.$);break;case 35:Et[Yt-1].unshift({type:"loopStart",loopText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.LOOP_START}),Et[Yt-1].push({type:"loopEnd",loopText:Et[Yt-2],signalType:Xt.LINETYPE.LOOP_END}),this.$=Et[Yt-1];break;case 36:Et[Yt-1].unshift({type:"rectStart",color:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.RECT_START}),Et[Yt-1].push({type:"rectEnd",color:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.RECT_END}),this.$=Et[Yt-1];break;case 37:Et[Yt-1].unshift({type:"optStart",optText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.OPT_START}),Et[Yt-1].push({type:"optEnd",optText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.OPT_END}),this.$=Et[Yt-1];break;case 38:Et[Yt-1].unshift({type:"altStart",altText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.ALT_START}),Et[Yt-1].push({type:"altEnd",signalType:Xt.LINETYPE.ALT_END}),this.$=Et[Yt-1];break;case 39:Et[Yt-1].unshift({type:"parStart",parText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.PAR_START}),Et[Yt-1].push({type:"parEnd",signalType:Xt.LINETYPE.PAR_END}),this.$=Et[Yt-1];break;case 40:Et[Yt-1].unshift({type:"parStart",parText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.PAR_OVER_START}),Et[Yt-1].push({type:"parEnd",signalType:Xt.LINETYPE.PAR_END}),this.$=Et[Yt-1];break;case 41:Et[Yt-1].unshift({type:"criticalStart",criticalText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.CRITICAL_START}),Et[Yt-1].push({type:"criticalEnd",signalType:Xt.LINETYPE.CRITICAL_END}),this.$=Et[Yt-1];break;case 42:Et[Yt-1].unshift({type:"breakStart",breakText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.BREAK_START}),Et[Yt-1].push({type:"breakEnd",optText:Xt.parseMessage(Et[Yt-2]),signalType:Xt.LINETYPE.BREAK_END}),this.$=Et[Yt-1];break;case 44:this.$=Et[Yt-3].concat([{type:"option",optionText:Xt.parseMessage(Et[Yt-1]),signalType:Xt.LINETYPE.CRITICAL_OPTION},Et[Yt]]);break;case 46:this.$=Et[Yt-3].concat([{type:"and",parText:Xt.parseMessage(Et[Yt-1]),signalType:Xt.LINETYPE.PAR_AND},Et[Yt]]);break;case 48:this.$=Et[Yt-3].concat([{type:"else",altText:Xt.parseMessage(Et[Yt-1]),signalType:Xt.LINETYPE.ALT_ELSE},Et[Yt]]);break;case 49:Et[Yt-3].draw="participant",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Xt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 50:Et[Yt-1].draw="participant",Et[Yt-1].type="addParticipant",this.$=Et[Yt-1];break;case 51:Et[Yt-3].draw="actor",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Xt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 52:case 57:Et[Yt-1].draw="actor",Et[Yt-1].type="addParticipant",this.$=Et[Yt-1];break;case 53:Et[Yt-1].type="destroyParticipant",this.$=Et[Yt-1];break;case 54:Et[Yt-3].draw="participant",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Xt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 55:Et[Yt-1].draw="participant",Et[Yt-1].type="addParticipant",this.$=Et[Yt-1];break;case 56:Et[Yt-3].draw="actor",Et[Yt-3].type="addParticipant",Et[Yt-3].description=Xt.parseMessage(Et[Yt-1]),this.$=Et[Yt-3];break;case 58:this.$=[Et[Yt-1],{type:"addNote",placement:Et[Yt-2],actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 59:Et[Yt-2]=[].concat(Et[Yt-1],Et[Yt-1]).slice(0,2),Et[Yt-2][0]=Et[Yt-2][0].actor,Et[Yt-2][1]=Et[Yt-2][1].actor,this.$=[Et[Yt-1],{type:"addNote",placement:Xt.PLACEMENT.OVER,actor:Et[Yt-2].slice(0,2),text:Et[Yt]}];break;case 60:this.$=[Et[Yt-1],{type:"addLinks",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 61:this.$=[Et[Yt-1],{type:"addALink",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 62:this.$=[Et[Yt-1],{type:"addProperties",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 63:this.$=[Et[Yt-1],{type:"addDetails",actor:Et[Yt-1].actor,text:Et[Yt]}];break;case 66:this.$=[Et[Yt-2],Et[Yt]];break;case 67:this.$=Et[Yt];break;case 68:this.$=Xt.PLACEMENT.LEFTOF;break;case 69:this.$=Xt.PLACEMENT.RIGHTOF;break;case 70:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt],activate:!0},{type:"activeStart",signalType:Xt.LINETYPE.ACTIVE_START,actor:Et[Yt-1].actor}];break;case 71:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt]},{type:"activeEnd",signalType:Xt.LINETYPE.ACTIVE_END,actor:Et[Yt-4].actor}];break;case 72:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt],activate:!0,centralConnection:Xt.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:Xt.LINETYPE.CENTRAL_CONNECTION,actor:Et[Yt-1].actor}];break;case 73:this.$=[Et[Yt-4],Et[Yt-1],{type:"addMessage",from:Et[Yt-4].actor,to:Et[Yt-1].actor,signalType:Et[Yt-2],msg:Et[Yt],activate:!1,centralConnection:Xt.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:Xt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:Et[Yt-4].actor}];break;case 74:this.$=[Et[Yt-5],Et[Yt-1],{type:"addMessage",from:Et[Yt-5].actor,to:Et[Yt-1].actor,signalType:Et[Yt-3],msg:Et[Yt],activate:!0,centralConnection:Xt.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:Xt.LINETYPE.CENTRAL_CONNECTION,actor:Et[Yt-1].actor},{type:"centralConnectionReverse",signalType:Xt.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:Et[Yt-5].actor}];break;case 75:this.$=[Et[Yt-3],Et[Yt-1],{type:"addMessage",from:Et[Yt-3].actor,to:Et[Yt-1].actor,signalType:Et[Yt-2],msg:Et[Yt]}];break;case 76:this.$={type:"addParticipant",actor:Et[Yt-1],config:Et[Yt]};break;case 77:this.$=Et[Yt-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:Et[Yt]};break;case 80:this.$=Xt.LINETYPE.SOLID_OPEN;break;case 81:this.$=Xt.LINETYPE.DOTTED_OPEN;break;case 82:this.$=Xt.LINETYPE.SOLID;break;case 83:this.$=Xt.LINETYPE.SOLID_TOP;break;case 84:this.$=Xt.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=Xt.LINETYPE.STICK_TOP;break;case 86:this.$=Xt.LINETYPE.STICK_BOTTOM;break;case 87:this.$=Xt.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=Xt.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=Xt.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=Xt.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=Xt.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=Xt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=Xt.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=Xt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=Xt.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=Xt.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=Xt.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=Xt.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=Xt.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=Xt.LINETYPE.DOTTED;break;case 101:this.$=Xt.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=Xt.LINETYPE.SOLID_CROSS;break;case 103:this.$=Xt.LINETYPE.DOTTED_CROSS;break;case 104:this.$=Xt.LINETYPE.SOLID_POINT;break;case 105:this.$=Xt.LINETYPE.DOTTED_POINT;break;case 106:this.$=Xt.parseMessage(Et[Yt].trim().substring(1));break}},"anonymous"),table:[{3:1,4:r,5:i,6:a},{1:[3]},{3:5,4:r,5:i,6:a},{3:6,4:r,5:i,6:a},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],o,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},e(ne,[2,5]),{9:48,13:13,14:p,15:m,18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},e(ne,[2,7]),e(ne,[2,8]),e(ne,[2,9]),e(ne,[2,15]),{13:49,51:X,53:Q,54:Y},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:ie,73:z},{23:57,62:ie,73:z},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(ne,[2,30]),e(ne,[2,31]),{33:[1,63]},{35:[1,64]},e(ne,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:ie,73:se},{23:76,55:77,62:ie,73:se},{23:78,62:ie,73:z},{69:79,72:[1,80],78:oe,79:he,80:ye,81:Se,82:Ie,83:Ee,84:ze,85:Me,86:Xe,87:Ye,88:Qe,89:xt,90:dt,91:zt,92:Kt,93:rr,94:je,95:Nt,96:ct,97:bt,98:Pe,99:Ue,100:qe,101:Ke,102:Je,103:De},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:ie,73:z},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],le,{23:112,62:ie,73:z}),{23:113,62:ie,73:z},{23:114,62:ie,73:z},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],pe),e(ne,[2,6]),e(ne,[2,16]),e(fe,[2,10],{11:115}),e(ne,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(ne,[2,22]),{5:[1,119]},e([5,52,66,104],le),{5:[1,120]},e(ne,[2,25]),e(ne,[2,26]),e(ne,[2,27]),e(ne,[2,28]),e(ne,[2,29]),e(ne,[2,32]),e(ne,[2,33]),e(be,o,{7:121}),e(be,o,{7:122}),e(be,o,{7:123}),e(Ge,o,{41:124,7:125}),e(ke,o,{43:126,7:127}),e(ke,o,{7:127,43:128}),e(we,o,{46:129,7:130}),e(be,o,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(Ae,pe,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:ie,70:[1,143],71:[1,144],72:[1,145],73:z},{69:147,78:oe,79:he,80:ye,81:Se,82:Ie,83:Ee,84:ze,85:Me,86:Xe,87:Ye,88:Qe,89:xt,90:dt,91:zt,92:Kt,93:rr,94:je,95:Nt,96:ct,97:bt,98:Pe,99:Ue,100:qe,101:Ke,102:Je,103:De},e(at,[2,80]),e(at,[2,81]),e(at,[2,82]),e(at,[2,83]),e(at,[2,84]),e(at,[2,85]),e(at,[2,86]),e(at,[2,87]),e(at,[2,88]),e(at,[2,89]),e(at,[2,90]),e(at,[2,91]),e(at,[2,92]),e(at,[2,93]),e(at,[2,94]),e(at,[2,95]),e(at,[2,96]),e(at,[2,97]),e(at,[2,98]),e(at,[2,99]),e(at,[2,100]),e(at,[2,101]),e(at,[2,102]),e(at,[2,103]),e(at,[2,104]),e(at,[2,105]),{23:148,62:ie,73:z},{23:150,60:149,62:ie,73:z},e(ut,[2,68]),e(ut,[2,69]),{58:151,104:gt},{58:153,104:gt},{58:154,104:gt},{58:155,104:gt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:X,53:Q,54:Y},{5:[1,161]},e(ne,[2,20]),e(ne,[2,21]),e(ne,[2,23]),e(ne,[2,24]),{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,162],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,163],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,164],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{17:[1,165]},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[2,47],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,50:[1,166],51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{17:[1,167]},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[2,45],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,49:[1,168],51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{17:[1,169]},{17:[1,170]},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[2,43],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,48:[1,171],51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{4:l,5:h,8:8,9:10,10:d,13:13,14:p,15:m,17:[1,172],18:16,19:y,22:v,23:41,24:w,25:20,26:21,27:22,28:23,29:24,30:T,31:x,32:k,34:A,36:R,37:N,38:L,39:B,40:D,42:P,44:F,45:H,47:W,51:X,53:Q,54:Y,56:K,61:J,62:Z,63:j,64:ee,73:z},{16:[1,173]},e(ne,[2,50]),{16:[1,174]},e(ne,[2,55]),e(Ae,[2,76]),{76:[1,175]},{16:[1,176]},e(ne,[2,52]),{16:[1,177]},e(ne,[2,57]),e(ne,[2,53]),{23:178,62:ie,73:z},{23:179,62:ie,73:z},{23:180,62:ie,73:z},{58:181,104:gt},{23:182,62:ie,72:[1,183],73:z},{58:184,104:gt},{58:185,104:gt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(ne,[2,17]),e(fe,[2,11]),{13:187,51:X,53:Q,54:Y},e(fe,[2,13]),e(fe,[2,14]),e(ne,[2,19]),e(ne,[2,35]),e(ne,[2,36]),e(ne,[2,37]),e(ne,[2,38]),{16:[1,188]},e(ne,[2,39]),{16:[1,189]},e(ne,[2,40]),e(ne,[2,41]),{16:[1,190]},e(ne,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:gt},{58:197,104:gt},{58:198,104:gt},{5:[2,75]},{58:199,104:gt},{23:200,62:ie,73:z},{5:[2,58]},{5:[2,59]},{23:201,62:ie,73:z},e(fe,[2,12]),e(Ge,o,{7:125,41:202}),e(ke,o,{7:127,43:203}),e(we,o,{7:130,46:204}),e(ne,[2,49]),e(ne,[2,54]),e(Ae,[2,77]),e(ne,[2,51]),e(ne,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:gt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:I(function(tr,Zt){if(Zt.recoverable)this.trace(tr);else{var lr=Error(tr);throw lr.hash=Zt,lr}},"parseError"),parse:I(function(tr){var Zt=this,lr=[0],Xt=[],In=[null],Et=[],Xn=this.table,Yt="",Bn=0,si=0,dn=0,Ii=2,Vn=1,Ei=Et.slice.call(arguments,1),vn=Object.create(this.lexer),Li={yy:{}};for(var Ia in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Ia))Li.yy[Ia]=this.yy[Ia];if(vn.setInput(tr,Li.yy),Li.yy.lexer=vn,Li.yy.parser=this,typeof vn.yylloc>"u")vn.yylloc={};var tt=vn.yylloc;Et.push(tt);var Fn=vn.options&&vn.options.ranges;if(typeof Li.yy.parseError==="function")this.parseError=Li.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Hn(ma){lr.length=lr.length-2*ma,In.length=In.length-ma,Et.length=Et.length-ma}I(Hn,"popStack");function _t(){var ma=Xt.pop()||vn.lex()||Vn;if(typeof ma!=="number"){if(ma instanceof Array)Xt=ma,ma=Xt.pop();ma=Zt.symbols_[ma]||ma}return ma}I(_t,"lex");var Sr,ln,mn,On,as,Ir,hn={},zn,Di,aa,Ca;while(!0){if(mn=lr[lr.length-1],this.defaultActions[mn])On=this.defaultActions[mn];else{if(Sr===null||typeof Sr>"u")Sr=_t();On=Xn[mn]&&Xn[mn][Sr]}if(typeof On>"u"||!On.length||!On[0]){var os="";Ca=[];for(zn in Xn[mn])if(this.terminals_[zn]&&zn>Ii)Ca.push("'"+this.terminals_[zn]+"'");if(vn.showPosition)os="Parse error on line "+(Bn+1)+`: +`+vn.showPosition()+` +Expecting `+Ca.join(", ")+", got '"+(this.terminals_[Sr]||Sr)+"'";else os="Parse error on line "+(Bn+1)+": Unexpected "+(Sr==Vn?"end of input":"'"+(this.terminals_[Sr]||Sr)+"'");this.parseError(os,{text:vn.match,token:this.terminals_[Sr]||Sr,line:vn.yylineno,loc:tt,expected:Ca})}if(On[0]instanceof Array&&On.length>1)throw Error("Parse Error: multiple actions possible at state: "+mn+", token: "+Sr);switch(On[0]){case 1:if(lr.push(Sr),In.push(vn.yytext),Et.push(vn.yylloc),lr.push(On[1]),Sr=null,!ln){if(si=vn.yyleng,Yt=vn.yytext,Bn=vn.yylineno,tt=vn.yylloc,dn>0)dn--}else Sr=ln,ln=null;break;case 2:if(Di=this.productions_[On[1]][1],hn.$=In[In.length-Di],hn._$={first_line:Et[Et.length-(Di||1)].first_line,last_line:Et[Et.length-1].last_line,first_column:Et[Et.length-(Di||1)].first_column,last_column:Et[Et.length-1].last_column},Fn)hn._$.range=[Et[Et.length-(Di||1)].range[0],Et[Et.length-1].range[1]];if(Ir=this.performAction.apply(hn,[Yt,si,Bn,Li.yy,On[1],In,Et].concat(Ei)),typeof Ir<"u")return Ir;if(Di)lr=lr.slice(0,-1*Di*2),In=In.slice(0,-1*Di),Et=Et.slice(0,-1*Di);lr.push(this.productions_[On[1]][0]),In.push(hn.$),Et.push(hn._$),aa=Xn[lr[lr.length-2]][lr[lr.length-1]],lr.push(aa);break;case 3:return!0}}return!0},"parse")},ir=function(){var cr={EOF:1,parseError:I(function(Zt,lr){if(this.yy.parser)this.yy.parser.parseError(Zt,lr);else throw Error(Zt)},"parseError"),setInput:I(function(tr,Zt){if(this.yy=Zt||this.yy||{},this._input=tr,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var tr=this._input[0];this.yytext+=tr,this.yyleng++,this.offset++,this.match+=tr,this.matched+=tr;var Zt=tr.match(/(?:\r\n?|\n).*/g);if(Zt)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),tr},"input"),unput:I(function(tr){var Zt=tr.length,lr=tr.split(/(?:\r\n?|\n)/g);this._input=tr+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-Zt),this.offset-=Zt;var Xt=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lr.length-1)this.yylineno-=lr.length-1;var In=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lr?(lr.length===Xt.length?this.yylloc.first_column:0)+Xt[Xt.length-lr.length].length-lr[0].length:this.yylloc.first_column-Zt},this.options.ranges)this.yylloc.range=[In[0],In[0]+this.yyleng-Zt];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(tr){this.unput(this.match.slice(tr))},"less"),pastInput:I(function(){var tr=this.matched.substr(0,this.matched.length-this.match.length);return(tr.length>20?"...":"")+tr.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var tr=this.match;if(tr.length<20)tr+=this._input.substr(0,20-tr.length);return(tr.substr(0,20)+(tr.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var tr=this.pastInput(),Zt=Array(tr.length+1).join("-");return tr+this.upcomingInput()+` -`+Zt+"^"},"showPosition"),test_match:I(function(tr,Zt){var lr,Kt,In;if(this.options.backtrack_lexer){if(In={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)In.yylloc.range=this.yylloc.range.slice(0)}if(Kt=tr[0].match(/(?:\r\n?|\n).*/g),Kt)this.yylineno+=Kt.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Kt?Kt[Kt.length-1].length-Kt[Kt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+tr[0].length},this.yytext+=tr[0],this.match+=tr[0],this.matches=tr,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(tr[0].length),this.matched+=tr[0],lr=this.performAction.call(this,this.yy,this,Zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(lr)return lr;else if(this._backtrack){for(var Et in In)this[Et]=In[Et];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var tr,Zt,lr,Kt;if(!this._more)this.yytext="",this.match="";var In=this._currentRules();for(var Et=0;EtZt[0].length)){if(Zt=lr,Kt=Et,this.options.backtrack_lexer)if(tr=this.test_match(lr,In[Et]),tr!==!1)return tr;else if(this._backtrack){Zt=!1;continue}else return!1;else if(!this.options.flex)break}if(Zt){if(tr=this.test_match(Zt,In[Kt]),tr!==!1)return tr;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Zt=this.next();if(Zt)return Zt;else return this.lex()},"lex"),begin:I(function(Zt){this.conditionStack.push(Zt)},"begin"),popState:I(function(){var Zt=this.conditionStack.length-1;if(Zt>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Zt){if(Zt=this.conditionStack.length-1-Math.abs(Zt||0),Zt>=0)return this.conditionStack[Zt];else return"INITIAL"},"topState"),pushState:I(function(Zt){this.begin(Zt)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(Zt,lr,Kt,In){var Et=In;switch(Kt){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return lr.yytext=lr.yytext.trim(),73;break;case 12:return lr.yytext=lr.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return lr.yytext=lr.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return lr.yytext=lr.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return lr.yytext=lr.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return cr}();vt.lexer=ir;function qt(){this.yy={}}return I(qt,"Parser"),qt.prototype=vt,vt.Parser=qt,new qt}();Dft.parser=Dft;eEi=Dft,tEi={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},rEi={FILLED:0,OPEN:1},nEi={LEFTOF:0,RIGHTOF:1,OVER:2},Ike={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},iEi=class{constructor(){this.state=new Wq(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=Ys,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getAccTitle=oo,this.getAccDescription=lo,this.getDiagramTitle=fo,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ar().wrap),this.LINETYPE=tEi,this.ARROWTYPE=rEi,this.PLACEMENT=nEi}static{I(this,"SequenceDB")}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,r,i,a,o){let l=this.state.records.currentBox,h;if(o!==void 0){let p;if(!o.includes(` +`+Zt+"^"},"showPosition"),test_match:I(function(tr,Zt){var lr,Xt,In;if(this.options.backtrack_lexer){if(In={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)In.yylloc.range=this.yylloc.range.slice(0)}if(Xt=tr[0].match(/(?:\r\n?|\n).*/g),Xt)this.yylineno+=Xt.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Xt?Xt[Xt.length-1].length-Xt[Xt.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+tr[0].length},this.yytext+=tr[0],this.match+=tr[0],this.matches=tr,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(tr[0].length),this.matched+=tr[0],lr=this.performAction.call(this,this.yy,this,Zt,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(lr)return lr;else if(this._backtrack){for(var Et in In)this[Et]=In[Et];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var tr,Zt,lr,Xt;if(!this._more)this.yytext="",this.match="";var In=this._currentRules();for(var Et=0;EtZt[0].length)){if(Zt=lr,Xt=Et,this.options.backtrack_lexer)if(tr=this.test_match(lr,In[Et]),tr!==!1)return tr;else if(this._backtrack){Zt=!1;continue}else return!1;else if(!this.options.flex)break}if(Zt){if(tr=this.test_match(Zt,In[Xt]),tr!==!1)return tr;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var Zt=this.next();if(Zt)return Zt;else return this.lex()},"lex"),begin:I(function(Zt){this.conditionStack.push(Zt)},"begin"),popState:I(function(){var Zt=this.conditionStack.length-1;if(Zt>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(Zt){if(Zt=this.conditionStack.length-1-Math.abs(Zt||0),Zt>=0)return this.conditionStack[Zt];else return"INITIAL"},"topState"),pushState:I(function(Zt){this.begin(Zt)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(Zt,lr,Xt,In){var Et=In;switch(Xt){case 0:return 5;case 1:break;case 2:break;case 3:break;case 4:break;case 5:break;case 6:return 20;case 7:return this.begin("CONFIG"),75;break;case 8:return 76;case 9:return this.popState(),this.begin("ALIAS"),77;break;case 10:return this.popState(),this.popState(),77;break;case 11:return lr.yytext=lr.yytext.trim(),73;break;case 12:return lr.yytext=lr.yytext.trim(),this.begin("ALIAS"),73;break;case 13:return lr.yytext=lr.yytext.trim(),this.popState(),73;break;case 14:return this.popState(),10;break;case 15:return lr.yytext=lr.yytext.trim(),this.popState(),10;break;case 16:return this.begin("LINE"),15;break;case 17:return this.begin("ID"),51;break;case 18:return this.begin("ID"),53;break;case 19:return 14;case 20:return this.begin("ID"),54;break;case 21:return this.popState(),this.popState(),this.begin("LINE"),52;break;case 22:return this.popState(),this.popState(),5;break;case 23:return this.begin("LINE"),37;break;case 24:return this.begin("LINE"),38;break;case 25:return this.begin("LINE"),39;break;case 26:return this.begin("LINE"),40;break;case 27:return this.begin("LINE"),50;break;case 28:return this.begin("LINE"),42;break;case 29:return this.begin("LINE"),44;break;case 30:return this.begin("LINE"),49;break;case 31:return this.begin("LINE"),45;break;case 32:return this.begin("LINE"),48;break;case 33:return this.begin("LINE"),47;break;case 34:return this.popState(),16;break;case 35:return 17;case 36:return 67;case 37:return 68;case 38:return 61;case 39:return 62;case 40:return 63;case 41:return 64;case 42:return 59;case 43:return 56;case 44:return this.begin("ID"),22;break;case 45:return this.begin("ID"),24;break;case 46:return 30;case 47:return 31;case 48:return this.begin("acc_title"),32;break;case 49:return this.popState(),"acc_title_value";break;case 50:return this.begin("acc_descr"),34;break;case 51:return this.popState(),"acc_descr_value";break;case 52:this.begin("acc_descr_multiline");break;case 53:this.popState();break;case 54:return"acc_descr_multiline_value";case 55:return 6;case 56:return 19;case 57:return 21;case 58:return 66;case 59:return 5;case 60:return lr.yytext=lr.yytext.trim(),73;break;case 61:return 80;case 62:return 97;case 63:return 98;case 64:return 99;case 65:return 78;case 66:return 79;case 67:return 100;case 68:return 101;case 69:return 102;case 70:return 103;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 93;case 76:return 94;case 77:return 95;case 78:return 96;case 79:return 81;case 80:return 82;case 81:return 83;case 82:return 84;case 83:return 89;case 84:return 90;case 85:return 91;case 86:return 92;case 87:return 104;case 88:return 104;case 89:return 70;case 90:return 71;case 91:return 72;case 92:return 5;case 93:return 10}},"anonymous"),rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:([0-9]+(\.[0-9]{1,2})?|\.[0-9]{1,2})(?=[ \n]+))/i,/^(?:@\{)/i,/^(?:[^\}]+)/i,/^(?:\}(?=\s+as\s))/i,/^(?:\})/i,/^(?:[^<>:\n,;@\s]+(?=\s*@\{))/i,/^(?:[^<>:\n,;@\s]+(?=\s+as\s))/i,/^(?:[^<>:\n,;@]+(?=\s*[\n;#]|$))/i,/^(?:[^<>:\n,;@]*<[^\n]*)/i,/^(?:[^\n]+)/i,/^(?:box\b)/i,/^(?:participant\b)/i,/^(?:actor\b)/i,/^(?:create\b)/i,/^(?:destroy\b)/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:par_over\b)/i,/^(?:and\b)/i,/^(?:critical\b)/i,/^(?:option\b)/i,/^(?:break\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:links(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:link(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:properties(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:details(?=[ \t]+[^\/\\\+\(\)<>:\n,;\s\-]))/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:title:\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:off\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\/\\\+\()\+<\->\->:\n,;]+((?!(-x|--x|-\)|--\)|-\|\\|-\\|-\/|-\/\/|-\|\/|\/\|-|\\\|-|\/\/-|\\\\-|\/\|-|--\|\\|--|\(\)))[\-]*[^\+<\->\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:<<->>)/i,/^(?:-->>)/i,/^(?:<<-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\)])/i,/^(?:--[\)])/i,/^(?:--\|\\)/i,/^(?:--\|\/)/i,/^(?:--\\\\)/i,/^(?:--\/\/)/i,/^(?:\/\|--)/i,/^(?:\\\|--)/i,/^(?:\/\/--)/i,/^(?:\\\\--)/i,/^(?:-\|\\)/i,/^(?:-\|\/)/i,/^(?:-\\\\)/i,/^(?:-\/\/)/i,/^(?:\/\|-)/i,/^(?:\\\|-)/i,/^(?:\/\/-)/i,/^(?:\\\\-)/i,/^(?::(?:(?:no)?wrap)?[^#\n;]*)/i,/^(?::)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\(\))/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[53,54],inclusive:!1},acc_descr:{rules:[51],inclusive:!1},acc_title:{rules:[49],inclusive:!1},ID:{rules:[2,3,7,11,12,13,14,15],inclusive:!1},ALIAS:{rules:[2,3,21,22],inclusive:!1},LINE:{rules:[2,3,34],inclusive:!1},CONFIG:{rules:[8,9,10],inclusive:!1},CONFIG_DATA:{rules:[],inclusive:!1},INITIAL:{rules:[0,1,3,4,5,6,16,17,18,19,20,23,24,25,26,27,28,29,30,31,32,33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,50,52,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],inclusive:!0}}};return cr}();vt.lexer=ir;function qt(){this.yy={}}return I(qt,"Parser"),qt.prototype=vt,vt.Parser=qt,new qt}();Fft.parser=Fft;sEi=Fft,oEi={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23,SOLID_POINT:24,DOTTED_POINT:25,AUTONUMBER:26,CRITICAL_START:27,CRITICAL_OPTION:28,CRITICAL_END:29,BREAK_START:30,BREAK_END:31,PAR_OVER_START:32,BIDIRECTIONAL_SOLID:33,BIDIRECTIONAL_DOTTED:34,SOLID_TOP:41,SOLID_BOTTOM:42,STICK_TOP:43,STICK_BOTTOM:44,SOLID_ARROW_TOP_REVERSE:45,SOLID_ARROW_BOTTOM_REVERSE:46,STICK_ARROW_TOP_REVERSE:47,STICK_ARROW_BOTTOM_REVERSE:48,SOLID_TOP_DOTTED:51,SOLID_BOTTOM_DOTTED:52,STICK_TOP_DOTTED:53,STICK_BOTTOM_DOTTED:54,SOLID_ARROW_TOP_REVERSE_DOTTED:55,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:56,STICK_ARROW_TOP_REVERSE_DOTTED:57,STICK_ARROW_BOTTOM_REVERSE_DOTTED:58,CENTRAL_CONNECTION:59,CENTRAL_CONNECTION_REVERSE:60,CENTRAL_CONNECTION_DUAL:61},lEi={FILLED:0,OPEN:1},cEi={LEFTOF:0,RIGHTOF:1,OVER:2},Lke={ACTOR:"actor",BOUNDARY:"boundary",COLLECTIONS:"collections",CONTROL:"control",DATABASE:"database",ENTITY:"entity",PARTICIPANT:"participant",QUEUE:"queue"},uEi=class{constructor(){this.state=new Xq(()=>({prevActor:void 0,actors:new Map,createdActors:new Map,destroyedActors:new Map,boxes:[],messages:[],notes:[],sequenceNumbersEnabled:!1,wrapEnabled:void 0,currentBox:void 0,lastCreated:void 0,lastDestroyed:void 0})),this.setAccTitle=Ys,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getAccTitle=oo,this.getAccDescription=lo,this.getDiagramTitle=fo,this.apply=this.apply.bind(this),this.parseBoxData=this.parseBoxData.bind(this),this.parseMessage=this.parseMessage.bind(this),this.clear(),this.setWrap(Ar().wrap),this.LINETYPE=oEi,this.ARROWTYPE=lEi,this.PLACEMENT=cEi}static{I(this,"SequenceDB")}addBox(e){this.state.records.boxes.push({name:e.text,wrap:e.wrap??this.autoWrap(),fill:e.color,actorKeys:[]}),this.state.records.currentBox=this.state.records.boxes.slice(-1)[0]}addActor(e,r,i,a,o){let l=this.state.records.currentBox,h;if(o!==void 0){let p;if(!o.includes(` `))p=`{ `+o+` }`;else p=o+` -`;h=yC(p,{schema:bC})}if(a=h?.type??a,h?.alias&&(!i||i.text===r))i={text:h.alias,wrap:i?.wrap,type:a};let d=this.state.records.actors.get(e);if(d){if(this.state.records.currentBox&&d.box&&this.state.records.currentBox!==d.box)throw Error(`A same participant should only be defined in one Box: ${d.name} can't be in '${d.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(l=d.box?d.box:this.state.records.currentBox,d.box=l,d&&r===d.name&&i==null)return}if(i?.text==null)i={text:r,type:a};if(a==null||i.text==null)i={text:r,type:a};if(this.state.records.actors.set(e,{box:l,name:r,description:i.text,wrap:i.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a??"participant"}),this.state.records.prevActor){let p=this.state.records.actors.get(this.state.records.prevActor);if(p)p.nextActor=e}if(this.state.records.currentBox)this.state.records.currentBox.actorKeys.push(e);this.state.records.prevActor=e}activationCount(e){let r,i=0;if(!e)return 0;for(r=0;r>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},d}}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:i?.text??"",wrap:i?.wrap??this.autoWrap(),type:a,activate:o,centralConnection:l??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some((e)=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let r=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(r===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){if(this.state.records.wrapEnabled!==void 0)return this.state.records.wrapEnabled;return Ar().sequence?.wrap??!1}clear(){this.state.reset(),qs()}parseMessage(e){let r=e.trim(),{wrap:i,cleanedText:a}=this.extractWrap(r),o={text:a,wrap:i};return Ze.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(e){let r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),i=r?.[1]?r[1].trim():"transparent",a=r?.[2]?r[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",i))i="transparent",a=e.trim()}else{let h=new Option().style;if(h.color=i,h.color!==i)i="transparent",a=e.trim()}let{wrap:o,cleanedText:l}=this.extractWrap(a);return{text:l?ho(l,Ar()):void 0,color:i,wrap:o}}addNote(e,r,i){let a={actor:e,placement:r,message:i.text,wrap:i.wrap??this.autoWrap()},o=[].concat(e,e);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:i.text,wrap:i.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(e,r){let i=this.getActor(e);try{let a=ho(r.text,Ar());a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");let o=JSON.parse(a);this.insertLinks(i,o)}catch(a){Ze.error("error while parsing actor link text",a)}}addALink(e,r){let i=this.getActor(e);try{let a={},o=ho(r.text,Ar()),l=o.indexOf("@");o=o.replace(/=/g,"="),o=o.replace(/&/g,"&");let h=o.slice(0,l-1).trim(),d=o.slice(l+1).trim();a[h]=d,this.insertLinks(i,a)}catch(a){Ze.error("error while parsing actor link text",a)}}insertLinks(e,r){if(e.links==null)e.links=r;else for(let i in r)e.links[i]=r[i]}addProperties(e,r){let i=this.getActor(e);try{let a=ho(r.text,Ar()),o=JSON.parse(a);this.insertProperties(i,o)}catch(a){Ze.error("error while parsing actor properties text",a)}}insertProperties(e,r){if(e.properties==null)e.properties=r;else for(let i in r)e.properties[i]=r[i]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,r){let i=this.getActor(e),a=document.getElementById(r.text);try{let o=a.innerHTML,l=JSON.parse(o);if(l.properties)this.insertProperties(i,l.properties);if(l.links)this.insertLinks(i,l.links)}catch(o){Ze.error("error while parsing actor details text",o)}}getActorProperty(e,r){if(e?.properties!==void 0)return e.properties[r];return}apply(e){if(Array.isArray(e))e.forEach((r)=>{this.apply(r)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnection":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnectionReverse":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated)if(e.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":Ys(e.text);break;case"parStart":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return Ar().sequence}},aEi=I((e)=>{let r=e.dropShadow??"none",{look:i}=Ar();return`.actor { +`;h=_C(p,{schema:vC})}if(a=h?.type??a,h?.alias&&(!i||i.text===r))i={text:h.alias,wrap:i?.wrap,type:a};let d=this.state.records.actors.get(e);if(d){if(this.state.records.currentBox&&d.box&&this.state.records.currentBox!==d.box)throw Error(`A same participant should only be defined in one Box: ${d.name} can't be in '${d.box.name}' and in '${this.state.records.currentBox.name}' at the same time.`);if(l=d.box?d.box:this.state.records.currentBox,d.box=l,d&&r===d.name&&i==null)return}if(i?.text==null)i={text:r,type:a};if(a==null||i.text==null)i={text:r,type:a};if(this.state.records.actors.set(e,{box:l,name:r,description:i.text,wrap:i.wrap??this.autoWrap(),prevActor:this.state.records.prevActor,links:{},properties:{},actorCnt:null,rectData:null,type:a??"participant"}),this.state.records.prevActor){let p=this.state.records.actors.get(this.state.records.prevActor);if(p)p.nextActor=e}if(this.state.records.currentBox)this.state.records.currentBox.actorKeys.push(e);this.state.records.prevActor=e}activationCount(e){let r,i=0;if(!e)return 0;for(r=0;r>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},d}}return this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:e,to:r,message:i?.text??"",wrap:i?.wrap??this.autoWrap(),type:a,activate:o,centralConnection:l??0}),!0}hasAtLeastOneBox(){return this.state.records.boxes.length>0}hasAtLeastOneBoxWithTitle(){return this.state.records.boxes.some((e)=>e.name)}getMessages(){return this.state.records.messages}getBoxes(){return this.state.records.boxes}getActors(){return this.state.records.actors}getCreatedActors(){return this.state.records.createdActors}getDestroyedActors(){return this.state.records.destroyedActors}getActor(e){return this.state.records.actors.get(e)}getActorKeys(){return[...this.state.records.actors.keys()]}enableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!0}disableSequenceNumbers(){this.state.records.sequenceNumbersEnabled=!1}showSequenceNumbers(){return this.state.records.sequenceNumbersEnabled}setWrap(e){this.state.records.wrapEnabled=e}extractWrap(e){if(e===void 0)return{};e=e.trim();let r=/^:?wrap:/.exec(e)!==null?!0:/^:?nowrap:/.exec(e)!==null?!1:void 0;return{cleanedText:(r===void 0?e:e.replace(/^:?(?:no)?wrap:/,"")).trim(),wrap:r}}autoWrap(){if(this.state.records.wrapEnabled!==void 0)return this.state.records.wrapEnabled;return Ar().sequence?.wrap??!1}clear(){this.state.reset(),qs()}parseMessage(e){let r=e.trim(),{wrap:i,cleanedText:a}=this.extractWrap(r),o={text:a,wrap:i};return Ze.debug(`parseMessage: ${JSON.stringify(o)}`),o}parseBoxData(e){let r=/^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(e),i=r?.[1]?r[1].trim():"transparent",a=r?.[2]?r[2].trim():void 0;if(window?.CSS){if(!window.CSS.supports("color",i))i="transparent",a=e.trim()}else{let h=new Option().style;if(h.color=i,h.color!==i)i="transparent",a=e.trim()}let{wrap:o,cleanedText:l}=this.extractWrap(a);return{text:l?ho(l,Ar()):void 0,color:i,wrap:o}}addNote(e,r,i){let a={actor:e,placement:r,message:i.text,wrap:i.wrap??this.autoWrap()},o=[].concat(e,e);this.state.records.notes.push(a),this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:o[0],to:o[1],message:i.text,wrap:i.wrap??this.autoWrap(),type:this.LINETYPE.NOTE,placement:r})}addLinks(e,r){let i=this.getActor(e);try{let a=ho(r.text,Ar());a=a.replace(/=/g,"="),a=a.replace(/&/g,"&");let o=JSON.parse(a);this.insertLinks(i,o)}catch(a){Ze.error("error while parsing actor link text",a)}}addALink(e,r){let i=this.getActor(e);try{let a={},o=ho(r.text,Ar()),l=o.indexOf("@");o=o.replace(/=/g,"="),o=o.replace(/&/g,"&");let h=o.slice(0,l-1).trim(),d=o.slice(l+1).trim();a[h]=d,this.insertLinks(i,a)}catch(a){Ze.error("error while parsing actor link text",a)}}insertLinks(e,r){if(e.links==null)e.links=r;else for(let i in r)e.links[i]=r[i]}addProperties(e,r){let i=this.getActor(e);try{let a=ho(r.text,Ar()),o=JSON.parse(a);this.insertProperties(i,o)}catch(a){Ze.error("error while parsing actor properties text",a)}}insertProperties(e,r){if(e.properties==null)e.properties=r;else for(let i in r)e.properties[i]=r[i]}boxEnd(){this.state.records.currentBox=void 0}addDetails(e,r){let i=this.getActor(e),a=document.getElementById(r.text);try{let o=a.innerHTML,l=JSON.parse(o);if(l.properties)this.insertProperties(i,l.properties);if(l.links)this.insertLinks(i,l.links)}catch(o){Ze.error("error while parsing actor details text",o)}}getActorProperty(e,r){if(e?.properties!==void 0)return e.properties[r];return}apply(e){if(Array.isArray(e))e.forEach((r)=>{this.apply(r)});else switch(e.type){case"sequenceIndex":this.state.records.messages.push({id:this.state.records.messages.length.toString(),from:void 0,to:void 0,message:{start:e.sequenceIndex,step:e.sequenceIndexStep,visible:e.sequenceVisible},wrap:!1,type:e.signalType});break;case"addParticipant":this.addActor(e.actor,e.actor,e.description,e.draw,e.config);break;case"createParticipant":if(this.state.records.actors.has(e.actor))throw Error("It is not possible to have actors with the same id, even if one is destroyed before the next is created. Use 'AS' aliases to simulate the behavior");this.state.records.lastCreated=e.actor,this.addActor(e.actor,e.actor,e.description,e.draw,e.config),this.state.records.createdActors.set(e.actor,this.state.records.messages.length);break;case"destroyParticipant":this.state.records.lastDestroyed=e.actor,this.state.records.destroyedActors.set(e.actor,this.state.records.messages.length);break;case"activeStart":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnection":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"centralConnectionReverse":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"activeEnd":this.addSignal(e.actor,void 0,void 0,e.signalType);break;case"addNote":this.addNote(e.actor,e.placement,e.text);break;case"addLinks":this.addLinks(e.actor,e.text);break;case"addALink":this.addALink(e.actor,e.text);break;case"addProperties":this.addProperties(e.actor,e.text);break;case"addDetails":this.addDetails(e.actor,e.text);break;case"addMessage":if(this.state.records.lastCreated)if(e.to!==this.state.records.lastCreated)throw Error("The created participant "+this.state.records.lastCreated.name+" does not have an associated creating message after its declaration. Please check the sequence diagram.");else this.state.records.lastCreated=void 0;else if(this.state.records.lastDestroyed)if(e.to!==this.state.records.lastDestroyed&&e.from!==this.state.records.lastDestroyed)throw Error("The destroyed participant "+this.state.records.lastDestroyed.name+" does not have an associated destroying message after its declaration. Please check the sequence diagram.");else this.state.records.lastDestroyed=void 0;this.addSignal(e.from,e.to,e.msg,e.signalType,e.activate,e.centralConnection);break;case"boxStart":this.addBox(e.boxData);break;case"boxEnd":this.boxEnd();break;case"loopStart":this.addSignal(void 0,void 0,e.loopText,e.signalType);break;case"loopEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"rectStart":this.addSignal(void 0,void 0,e.color,e.signalType);break;case"rectEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"optStart":this.addSignal(void 0,void 0,e.optText,e.signalType);break;case"optEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"altStart":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"else":this.addSignal(void 0,void 0,e.altText,e.signalType);break;case"altEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"setAccTitle":Ys(e.text);break;case"parStart":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"and":this.addSignal(void 0,void 0,e.parText,e.signalType);break;case"parEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"criticalStart":this.addSignal(void 0,void 0,e.criticalText,e.signalType);break;case"option":this.addSignal(void 0,void 0,e.optionText,e.signalType);break;case"criticalEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break;case"breakStart":this.addSignal(void 0,void 0,e.breakText,e.signalType);break;case"breakEnd":this.addSignal(void 0,void 0,void 0,e.signalType);break}}getConfig(){return Ar().sequence}},hEi=I((e)=>{let r=e.dropShadow??"none",{look:i}=Ar();return`.actor { stroke: ${e.actorBorder}; fill: ${e.actorBkg}; stroke-width: ${e.strokeWidth??1}; @@ -2317,25 +2317,25 @@ Expecting `+Ca.join(", ")+", got '"+(this.terminals_[Sr]||Sr)+"'";else os="Parse filter: ${r}; stroke: ${e.nodeBorder}; } -`},"getStyles"),sEi=aEi,oEi=I((e,r)=>e.actorTextHeight??Ts.calculateTextDimensions(e.description??"",{fontFamily:r.actorFontFamily,fontSize:r.actorFontSize,fontWeight:r.actorFontWeight}).height,"actorLabelHeight"),GYr=I((e)=>Lke+$ft+e+Oke,"actorStackHeight"),lEi=I((e,r,i)=>{let a=e+r,o=a-Oke-i/2;return{lifelineStartY:a,glyphBottomY:a-Oke-i-$ft,labelCenterY:o}},"headerBands"),cEi=I((e,r)=>{let i=e+Oke,a=i+Lke;return{glyphTopY:i,glyphBottomY:a,labelCenterY:a+$ft+r/2,stackHeight:GYr(r)}},"footerBands"),FYr=zYr-uEi,hoe=I((e,r,i,a)=>{if(r.look!=="neo")return null;let o=oEi(e,r);return i?cEi(a,o):lEi(a,e.height,o)},"neoBands"),II=new Set(["redux-color","redux-dark-color"]),Wp=I((e,r)=>e?.length?e[r%e.length]:void 0,"paletteColor"),uoe=I(function(e,r){let i=LB(e,r);if(ea().look==="neo")i.attr("data-look","neo");return i},"drawRect"),hEi=I(function(e,r,i,a,o){if(r.links===void 0||r.links===null||Object.keys(r.links).length===0)return{height:0,width:0};let{links:l,actorCnt:h,rectData:d}=r;var p="none";if(o)p="block !important";let m=e.append("g");m.attr("id","actor"+h+"_popup"),m.attr("class","actorPopupMenu"),m.attr("display",p);var y="";if(d.class!==void 0)y=" "+d.class;let E=d.width>i?d.width:i,w=m.append("rect");if(w.attr("class","actorPopupMenuPanel"+y),w.attr("x",d.x),w.attr("y",d.height),w.attr("fill",d.fill),w.attr("stroke",d.stroke),w.attr("width",E),w.attr("height",d.height),w.attr("rx",d.rx),w.attr("ry",d.ry),l!=null){var T=20;for(let A in l){var x=m.append("a"),k=Fft.sanitizeUrl(l[A]);x.attr("xlink:href",k),x.attr("target","_blank"),MEi(a)(A,x,d.x+10,d.height+T,E,20,{class:"actor"},a),T+=30}}return w.attr("height",T),{height:d.height+T,width:E}},"drawPopup"),Dke=I(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Nke=I(async function(e,r,i=null){let a=e.append("foreignObject"),o=await qV(r.text,ea()),h=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(a.attr("height",Math.round(h.height)).attr("width",Math.round(h.width)),r.class==="noteText"){let d=e.node().firstChild;d.setAttribute("height",h.height+2*r.textMargin);let p=d.getBBox();a.attr("x",Math.round(p.x+p.width/2-h.width/2)).attr("y",Math.round(p.y+p.height/2-h.height/2))}else if(i){let{startx:d,stopx:p,starty:m}=i;if(d>p){let y=d;d=p,p=y}if(a.attr("x",Math.round(d+Math.abs(d-p)/2-h.width/2)),r.class==="loopText")a.attr("y",Math.round(m));else a.attr("y",Math.round(m-h.height))}return[a]},"drawKatex"),HY=I(function(e,r){let i=0,a=0,o=r.text.split(ai.lineBreakRegex),[l,h]=W_(r.fontSize),d=[],p=0,m=I(()=>r.y,"yfunc");if(r.valign!==void 0&&r.textMargin!==void 0&&r.textMargin>0)switch(r.valign){case"top":case"start":m=I(()=>Math.round(r.y+r.textMargin),"yfunc");break;case"middle":case"center":m=I(()=>Math.round(r.y+(i+a+r.textMargin)/2),"yfunc");break;case"bottom":case"end":m=I(()=>Math.round(r.y+(i+a+2*r.textMargin)-r.textMargin),"yfunc");break}if(r.anchor!==void 0&&r.textMargin!==void 0&&r.width!==void 0)switch(r.anchor){case"left":case"start":r.x=Math.round(r.x+r.textMargin),r.anchor="start",r.dominantBaseline="middle",r.alignmentBaseline="middle";break;case"middle":case"center":r.x=Math.round(r.x+r.width/2),r.anchor="middle",r.dominantBaseline="middle",r.alignmentBaseline="middle";break;case"right":case"end":r.x=Math.round(r.x+r.width-r.textMargin),r.anchor="end",r.dominantBaseline="middle",r.alignmentBaseline="middle";break}for(let[y,E]of o.entries()){if(r.textMargin!==void 0&&r.textMargin===0&&l!==void 0)p=y*l;let w=e.append("text");if(w.attr("x",r.x),w.attr("y",m()),r.anchor!==void 0)w.attr("text-anchor",r.anchor).attr("dominant-baseline",r.dominantBaseline).attr("alignment-baseline",r.alignmentBaseline);if(r.fontFamily!==void 0)w.style("font-family",r.fontFamily);if(h!==void 0)w.style("font-size",h);if(r.fontWeight!==void 0)w.style("font-weight",r.fontWeight);if(r.fill!==void 0)w.attr("fill",r.fill);if(r.class!==void 0)w.attr("class",r.class);if(r.dy!==void 0)w.attr("dy",r.dy);else if(p!==0)w.attr("dy",p);let T=E||Ket;if(r.tspan){let x=w.append("tspan");if(x.attr("x",r.x),r.fill!==void 0)x.attr("fill",r.fill);x.text(T)}else w.text(T);if(r.valign!==void 0&&r.textMargin!==void 0&&r.textMargin>0)a+=(w._groups||w)[0][0].getBBox().height,i=a;d.push(w)}return d},"drawText"),VYr=I(function(e,r){function i(o,l,h,d,p){return o+","+l+" "+(o+h)+","+l+" "+(o+h)+","+(l+d-p)+" "+(o+h-p*1.2)+","+(l+d)+" "+o+","+(l+d)}I(i,"genPoints");let a=e.append("polygon");return a.attr("points",i(r.x,r.y,r.width,r.height,7)),a.attr("class","labelBox"),r.y=r.y+r.height/2,HY(e,r),a},"drawLabel"),HYr=I((e,r,i,a)=>{if(!e.select)return;i.forEach((o)=>{let l=r.get(o),h=e.select("#actor"+l.actorCnt);if(!a.mirrorActors&&l.stopy)h.attr("y2",l.stopy+l.height/2);else if(a.mirrorActors)h.attr("y2",l.stopy)})},"fixLifeLineHeights"),dEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=h+r.height,{look:m,theme:y,themeVariables:E}=i,{bkgColorArray:w,borderColorArray:T}=E,x=e.append("g").lower();var k=x;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)k.attr("onclick",Dke(`actor${Uc}_popup`)).attr("cursor","pointer");if(k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",p).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),k=x.append("g"),r.actorCnt=Uc,r.links!=null)k.attr("id","root-"+Uc);if(m==="neo")k.attr("data-look","neo")}let A=o2();var R="actor";if(r.properties?.class)R=r.properties.class;else A.fill="#eaeaea";if(a)R+=` ${Q7}`;else R+=` ${X7}`;if(A.x=r.x,A.y=h,A.width=r.width,A.height=r.height,A.class=R,A.rx=3,A.ry=3,A.name=r.name,m==="neo")A.rx=6,A.ry=6;let N=uoe(k,A),L=l.get(r.name)??0;if(II.has(y))N.style("stroke",Wp(T,L)),N.style("fill",Wp(w,L));if(m==="neo")N.attr("filter",`url(#${Z7(o)})`);if(r.rectData=A,r.properties?.icon){let D=r.properties.icon.trim();if(D.charAt(0)==="@")yxe(k,A.x+A.width-20,A.y+10,D.substr(1));else bxe(k,A.x+A.width-20,A.y+10,D)}if(!a)k.attr("data-et","participant"),k.attr("data-type","participant"),k.attr("data-id",r.name);OI(i,bf(r.description))(r.description,k,A.x,A.y,A.width,A.height,{class:`actor ${Mke}`},i);let B=r.height;if(N.node){let D=N.node().getBBox();if(i.look!=="neo")r.height=D.height,B=D.height}return B},"drawActorTypeParticipant"),fEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=h+r.height,{look:m,theme:y,themeVariables:E}=i,{bkgColorArray:w,borderColorArray:T}=E,x=e.append("g").lower();var k=x;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)k.attr("onclick",Dke(`actor${Uc}_popup`)).attr("cursor","pointer");if(k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",p).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),k=x.append("g"),r.actorCnt=Uc,r.links!=null)k.attr("id","root-"+Uc);if(m==="neo")k.attr("data-look","neo")}let A=o2();var R="actor";if(r.properties?.class)R=r.properties.class;else A.fill="#eaeaea";if(a)R+=` ${Q7}`;else R+=` ${X7}`;A.x=r.x,A.y=h,A.width=r.width,A.height=r.height,A.class=R,A.name=r.name;let N=6;if(i.look==="neo")A.height=r.height-N;let L={...A,x:A.x+(a?-N:-N),y:A.y+(a?+N:+N),class:"actor"},B=uoe(k,A),D=uoe(k,L);if(r.rectData=A,m==="neo")k.attr("filter",`url(#${Z7(o)})`);let P=l.get(r.name)??0;if(II.has(y))B.style("stroke",Wp(T,P)),B.style("fill",Wp(w,P)),D.style("stroke",Wp(T,P)),D.style("fill",Wp(w,P));if(r.properties?.icon){let H=r.properties.icon.trim();if(H.charAt(0)==="@")yxe(k,A.x+A.width-20,A.y+10,H.substr(1));else bxe(k,A.x+A.width-20,A.y+10,H)}OI(i,bf(r.description))(r.description,k,A.x-N,A.y+N,A.width,A.height,{class:`actor ${Mke}`},i);let F=r.height;if(B.node){let H=B.node().getBBox();if(i.look!=="neo")r.height=H.height,F=H.height}if(!a)k.attr("data-et","participant"),k.attr("data-type","collections"),k.attr("data-id",r.name);return F},"drawActorTypeCollections"),pEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=h+r.height,{look:m,theme:y,themeVariables:E}=i,{bkgColorArray:w,borderColorArray:T}=E,x=e.append("g").lower(),k=x;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)k.attr("onclick",Dke(`actor${Uc}_popup`)).attr("cursor","pointer");if(k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",p).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),k=x.append("g"),r.actorCnt=Uc,r.links!=null)k.attr("id","root-"+Uc);if(m==="neo")k.attr("data-look","neo")}let A=o2(),R="actor";if(r.properties?.class)R=r.properties.class;else A.fill="#eaeaea";if(a)R+=` ${Q7}`;else R+=` ${X7}`;k.attr("class",R),A.x=r.x,A.y=h,A.width=r.width,A.height=r.height,A.name=r.name;let N=A.height/2,L=N/(2.5+A.height/50),B=k.append("g"),D=k.append("g"),P=`M ${A.x},${A.y+N} +`},"getStyles"),dEi=hEi,fEi=I((e,r)=>e.actorTextHeight??Ts.calculateTextDimensions(e.description??"",{fontFamily:r.actorFontFamily,fontSize:r.actorFontSize,fontWeight:r.actorFontWeight}).height,"actorLabelHeight"),YYr=I((e)=>Pke+zft+e+Mke,"actorStackHeight"),pEi=I((e,r,i)=>{let a=e+r,o=a-Mke-i/2;return{lifelineStartY:a,glyphBottomY:a-Mke-i-zft,labelCenterY:o}},"headerBands"),gEi=I((e,r)=>{let i=e+Mke,a=i+Pke;return{glyphTopY:i,glyphBottomY:a,labelCenterY:a+zft+r/2,stackHeight:YYr(r)}},"footerBands"),VYr=WYr-mEi,poe=I((e,r,i,a)=>{if(r.look!=="neo")return null;let o=fEi(e,r);return i?gEi(a,o):pEi(a,e.height,o)},"neoBands"),LI=new Set(["redux-color","redux-dark-color"]),Wp=I((e,r)=>e?.length?e[r%e.length]:void 0,"paletteColor"),foe=I(function(e,r){let i=DB(e,r);if(ea().look==="neo")i.attr("data-look","neo");return i},"drawRect"),bEi=I(function(e,r,i,a,o){if(r.links===void 0||r.links===null||Object.keys(r.links).length===0)return{height:0,width:0};let{links:l,actorCnt:h,rectData:d}=r;var p="none";if(o)p="block !important";let m=e.append("g");m.attr("id","actor"+h+"_popup"),m.attr("class","actorPopupMenu"),m.attr("display",p);var y="";if(d.class!==void 0)y=" "+d.class;let v=d.width>i?d.width:i,w=m.append("rect");if(w.attr("class","actorPopupMenuPanel"+y),w.attr("x",d.x),w.attr("y",d.height),w.attr("fill",d.fill),w.attr("stroke",d.stroke),w.attr("width",v),w.attr("height",d.height),w.attr("rx",d.rx),w.attr("ry",d.ry),l!=null){var T=20;for(let A in l){var x=m.append("a"),k=Gft.sanitizeUrl(l[A]);x.attr("xlink:href",k),x.attr("target","_blank"),UEi(a)(A,x,d.x+10,d.height+T,v,20,{class:"actor"},a),T+=30}}return w.attr("height",T),{height:d.height+T,width:v}},"drawPopup"),Fke=I(function(e){return"var pu = document.getElementById('"+e+"'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"},"popupMenuToggle"),Dke=I(async function(e,r,i=null){let a=e.append("foreignObject"),o=await jV(r.text,ea()),h=a.append("xhtml:div").attr("style","width: fit-content;").attr("xmlns","http://www.w3.org/1999/xhtml").html(o).node().getBoundingClientRect();if(a.attr("height",Math.round(h.height)).attr("width",Math.round(h.width)),r.class==="noteText"){let d=e.node().firstChild;d.setAttribute("height",h.height+2*r.textMargin);let p=d.getBBox();a.attr("x",Math.round(p.x+p.width/2-h.width/2)).attr("y",Math.round(p.y+p.height/2-h.height/2))}else if(i){let{startx:d,stopx:p,starty:m}=i;if(d>p){let y=d;d=p,p=y}if(a.attr("x",Math.round(d+Math.abs(d-p)/2-h.width/2)),r.class==="loopText")a.attr("y",Math.round(m));else a.attr("y",Math.round(m-h.height))}return[a]},"drawKatex"),WY=I(function(e,r){let i=0,a=0,o=r.text.split(ai.lineBreakRegex),[l,h]=W_(r.fontSize),d=[],p=0,m=I(()=>r.y,"yfunc");if(r.valign!==void 0&&r.textMargin!==void 0&&r.textMargin>0)switch(r.valign){case"top":case"start":m=I(()=>Math.round(r.y+r.textMargin),"yfunc");break;case"middle":case"center":m=I(()=>Math.round(r.y+(i+a+r.textMargin)/2),"yfunc");break;case"bottom":case"end":m=I(()=>Math.round(r.y+(i+a+2*r.textMargin)-r.textMargin),"yfunc");break}if(r.anchor!==void 0&&r.textMargin!==void 0&&r.width!==void 0)switch(r.anchor){case"left":case"start":r.x=Math.round(r.x+r.textMargin),r.anchor="start",r.dominantBaseline="middle",r.alignmentBaseline="middle";break;case"middle":case"center":r.x=Math.round(r.x+r.width/2),r.anchor="middle",r.dominantBaseline="middle",r.alignmentBaseline="middle";break;case"right":case"end":r.x=Math.round(r.x+r.width-r.textMargin),r.anchor="end",r.dominantBaseline="middle",r.alignmentBaseline="middle";break}for(let[y,v]of o.entries()){if(r.textMargin!==void 0&&r.textMargin===0&&l!==void 0)p=y*l;let w=e.append("text");if(w.attr("x",r.x),w.attr("y",m()),r.anchor!==void 0)w.attr("text-anchor",r.anchor).attr("dominant-baseline",r.dominantBaseline).attr("alignment-baseline",r.alignmentBaseline);if(r.fontFamily!==void 0)w.style("font-family",r.fontFamily);if(h!==void 0)w.style("font-size",h);if(r.fontWeight!==void 0)w.style("font-weight",r.fontWeight);if(r.fill!==void 0)w.attr("fill",r.fill);if(r.class!==void 0)w.attr("class",r.class);if(r.dy!==void 0)w.attr("dy",r.dy);else if(p!==0)w.attr("dy",p);let T=v||Zet;if(r.tspan){let x=w.append("tspan");if(x.attr("x",r.x),r.fill!==void 0)x.attr("fill",r.fill);x.text(T)}else w.text(T);if(r.valign!==void 0&&r.textMargin!==void 0&&r.textMargin>0)a+=(w._groups||w)[0][0].getBBox().height,i=a;d.push(w)}return d},"drawText"),jYr=I(function(e,r){function i(o,l,h,d,p){return o+","+l+" "+(o+h)+","+l+" "+(o+h)+","+(l+d-p)+" "+(o+h-p*1.2)+","+(l+d)+" "+o+","+(l+d)}I(i,"genPoints");let a=e.append("polygon");return a.attr("points",i(r.x,r.y,r.width,r.height,7)),a.attr("class","labelBox"),r.y=r.y+r.height/2,WY(e,r),a},"drawLabel"),KYr=I((e,r,i,a)=>{if(!e.select)return;i.forEach((o)=>{let l=r.get(o),h=e.select("#actor"+l.actorCnt);if(!a.mirrorActors&&l.stopy)h.attr("y2",l.stopy+l.height/2);else if(a.mirrorActors)h.attr("y2",l.stopy)})},"fixLifeLineHeights"),yEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=h+r.height,{look:m,theme:y,themeVariables:v}=i,{bkgColorArray:w,borderColorArray:T}=v,x=e.append("g").lower();var k=x;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)k.attr("onclick",Fke(`actor${Uc}_popup`)).attr("cursor","pointer");if(k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",p).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),k=x.append("g"),r.actorCnt=Uc,r.links!=null)k.attr("id","root-"+Uc);if(m==="neo")k.attr("data-look","neo")}let A=o2();var R="actor";if(r.properties?.class)R=r.properties.class;else A.fill="#eaeaea";if(a)R+=` ${J7}`;else R+=` ${Z7}`;if(A.x=r.x,A.y=h,A.width=r.width,A.height=r.height,A.class=R,A.rx=3,A.ry=3,A.name=r.name,m==="neo")A.rx=6,A.ry=6;let N=foe(k,A),L=l.get(r.name)??0;if(LI.has(y))N.style("stroke",Wp(T,L)),N.style("fill",Wp(w,L));if(m==="neo")N.attr("filter",`url(#${eM(o)})`);if(r.rectData=A,r.properties?.icon){let D=r.properties.icon.trim();if(D.charAt(0)==="@")Exe(k,A.x+A.width-20,A.y+10,D.substr(1));else _xe(k,A.x+A.width-20,A.y+10,D)}if(!a)k.attr("data-et","participant"),k.attr("data-type","participant"),k.attr("data-id",r.name);MI(i,bf(r.description))(r.description,k,A.x,A.y,A.width,A.height,{class:`actor ${Bke}`},i);let B=r.height;if(N.node){let D=N.node().getBBox();if(i.look!=="neo")r.height=D.height,B=D.height}return B},"drawActorTypeParticipant"),vEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=h+r.height,{look:m,theme:y,themeVariables:v}=i,{bkgColorArray:w,borderColorArray:T}=v,x=e.append("g").lower();var k=x;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)k.attr("onclick",Fke(`actor${Uc}_popup`)).attr("cursor","pointer");if(k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",p).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),k=x.append("g"),r.actorCnt=Uc,r.links!=null)k.attr("id","root-"+Uc);if(m==="neo")k.attr("data-look","neo")}let A=o2();var R="actor";if(r.properties?.class)R=r.properties.class;else A.fill="#eaeaea";if(a)R+=` ${J7}`;else R+=` ${Z7}`;A.x=r.x,A.y=h,A.width=r.width,A.height=r.height,A.class=R,A.name=r.name;let N=6;if(i.look==="neo")A.height=r.height-N;let L={...A,x:A.x+(a?-N:-N),y:A.y+(a?+N:+N),class:"actor"},B=foe(k,A),D=foe(k,L);if(r.rectData=A,m==="neo")k.attr("filter",`url(#${eM(o)})`);let P=l.get(r.name)??0;if(LI.has(y))B.style("stroke",Wp(T,P)),B.style("fill",Wp(w,P)),D.style("stroke",Wp(T,P)),D.style("fill",Wp(w,P));if(r.properties?.icon){let H=r.properties.icon.trim();if(H.charAt(0)==="@")Exe(k,A.x+A.width-20,A.y+10,H.substr(1));else _xe(k,A.x+A.width-20,A.y+10,H)}MI(i,bf(r.description))(r.description,k,A.x-N,A.y+N,A.width,A.height,{class:`actor ${Bke}`},i);let F=r.height;if(B.node){let H=B.node().getBBox();if(i.look!=="neo")r.height=H.height,F=H.height}if(!a)k.attr("data-et","participant"),k.attr("data-type","collections"),k.attr("data-id",r.name);return F},"drawActorTypeCollections"),_Ei=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=h+r.height,{look:m,theme:y,themeVariables:v}=i,{bkgColorArray:w,borderColorArray:T}=v,x=e.append("g").lower(),k=x;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)k.attr("onclick",Fke(`actor${Uc}_popup`)).attr("cursor","pointer");if(k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",p).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),k=x.append("g"),r.actorCnt=Uc,r.links!=null)k.attr("id","root-"+Uc);if(m==="neo")k.attr("data-look","neo")}let A=o2(),R="actor";if(r.properties?.class)R=r.properties.class;else A.fill="#eaeaea";if(a)R+=` ${J7}`;else R+=` ${Z7}`;k.attr("class",R),A.x=r.x,A.y=h,A.width=r.width,A.height=r.height,A.name=r.name;let N=A.height/2,L=N/(2.5+A.height/50),B=k.append("g"),D=k.append("g"),P=`M ${A.x},${A.y+N} a ${L},${N} 0 0 0 0,${A.height} h ${A.width-2*L} a ${L},${N} 0 0 0 0,-${A.height} Z `;if(B.append("path").attr("d",P),D.append("path").attr("d",`M ${A.x},${A.y+N} - a ${L},${N} 0 0 0 0,${A.height}`),B.attr("transform",`translate(${L}, ${-(A.height/2)})`),D.attr("transform",`translate(${A.width-L}, ${-A.height/2})`),r.rectData=A,m==="neo")B.attr("filter",`url(#${Z7(o)})`);let F=l.get(r.name)??0;if(II.has(y))B.style("stroke",Wp(T,F)),B.style("fill",Wp(w,F)),D.style("stroke",Wp(T,F)),D.style("fill",Wp(w,F));if(r.properties?.icon){let Q=r.properties.icon.trim(),Z=A.x+A.width-20,Y=A.y+10;if(Q.charAt(0)==="@")yxe(k,Z,Y,Q.substr(1));else bxe(k,Z,Y,Q)}OI(i,bf(r.description))(r.description,k,A.x,A.y,A.width,A.height,{class:`actor ${Mke}`},i);let H=r.height,K=B.select("path:last-child");if(K.node()){let Q=K.node().getBBox();if(i.look!=="neo")r.height=Q.height,H=Q.height}if(!a)k.attr("data-et","participant"),k.attr("data-type","queue"),k.attr("data-id",r.name);return H},"drawActorTypeQueue"),gEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=hoe(r,i,a,h),m=p?p.lifelineStartY:h+75,{look:y,theme:E,themeVariables:w}=i,{bkgColorArray:T,borderColorArray:x,actorBorder:k,actorBkg:A}=w,R=e.append("g").lower();if(!a)Uc++,R.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;let N=e.append("g"),L=EF;if(a)L+=` ${Q7}`;else L+=` ${X7}`;N.attr("class",L),N.attr("name",r.name);let B=o2();B.x=r.x,B.y=h,B.fill="#eaeaea",B.width=r.width,B.height=r.height,B.class="actor";let D=r.x+r.width/2,P=p?p.glyphBottomY-22:h+32,F=22;N.append("defs").append("marker").attr("id",o+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),N.append("circle").attr("cx",D).attr("cy",P).attr("r",F).attr("filter",`${y==="neo"?`url(#${Z7(o)})`:""}`),N.append("line").attr("marker-end","url(#"+o+"-filled-head-control)").attr("transform",`translate(${D}, ${P-F})`);let H=l.get(r.name)??0;if(II.has(E))N.style("stroke",Wp(x,H)),N.style("fill",Wp(T,H));else N.style("stroke",k),N.style("fill",A);if(!p){let K=N.node().getBBox();r.height=K.height+2*(i?.sequence?.labelBoxHeight??0)}if(OI(i,bf(r.description))(r.description,N,B.x,p?p.labelCenterY-B.height/2:B.y+F+(!a?12:5),B.width,B.height,{class:`actor ${EF}`},i),!a)N.attr("data-et","participant"),N.attr("data-type","control"),N.attr("data-id",r.name);return r.height},"drawActorTypeControl"),mEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=hoe(r,i,a,h),m=p?p.lifelineStartY:h+75,{look:y,theme:E,themeVariables:w}=i,{bkgColorArray:T,borderColorArray:x}=w,k=e.append("g").lower(),A=e.append("g"),R="actor";if(a)R+=` ${Q7}`;else R+=` ${X7}`;A.attr("class",R),A.attr("name",r.name);let N=o2();N.x=r.x,N.y=h,N.fill="#eaeaea",N.width=r.width,N.height=r.height,N.class="actor";let L=r.x+r.width/2,B=p?p.glyphBottomY-22:h+(!a?25:10),D=22;if(A.append("circle").attr("cx",L).attr("cy",B).attr("r",D).attr("width",r.width).attr("height",r.height),A.append("line").attr("x1",L-D).attr("x2",L+D).attr("y1",B+D).attr("y2",B+D).attr("stroke-width",2),y==="neo")A.attr("filter",`url(#${Z7(o)})`);let P=l.get(r.name)??0;if(II.has(E))A.style("stroke",Wp(x,P)),A.style("fill",Wp(T,P));if(!p){let F=A.node().getBBox();r.height=F.height+(i?.sequence?.labelBoxHeight??0)}if(!a)Uc++,k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;if(OI(i,bf(r.description))(r.description,A,N.x,p?p.labelCenterY-N.height/2:N.y+(!a?30:15),N.width,N.height,{class:`actor ${EF}`},i),!p)A.attr("transform",`translate(0, ${a?D:D/2-5})`);if(!a)A.attr("data-et","participant"),A.attr("data-type","entity"),A.attr("data-id",r.name);return r.height},"drawActorTypeEntity"),bEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=hoe(r,i,a,h),m=p?p.lifelineStartY:h+r.height+2*i.boxTextMargin,{theme:y,themeVariables:E,look:w}=i,{bkgColorArray:T,borderColorArray:x,actorBorder:k}=E,A=e.append("g").lower(),R=A;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)R.attr("onclick",Dke(`actor${Uc}_popup`)).attr("cursor","pointer");if(R.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),R=A.append("g"),r.actorCnt=Uc,r.links!=null)R.attr("id","root-"+Uc);if(w==="neo")R.attr("data-look","neo")}let N=o2(),L="actor";if(r.properties?.class)L=r.properties.class;else N.fill="#eaeaea";if(a)L+=` ${Q7}`;else L+=` ${X7}`;N.x=r.x,N.y=h,N.width=r.width,N.height=r.height,N.class=L,N.name=r.name,N.x=r.x,N.y=h;let B=N.width/3,D=B/2,P=D/(2.5+B/50),F=p?Lke:N.width/3,H=p?p.glyphBottomY-F-P:N.y,K=R.append("g");K.attr("class",L);let Q=` + a ${L},${N} 0 0 0 0,${A.height}`),B.attr("transform",`translate(${L}, ${-(A.height/2)})`),D.attr("transform",`translate(${A.width-L}, ${-A.height/2})`),r.rectData=A,m==="neo")B.attr("filter",`url(#${eM(o)})`);let F=l.get(r.name)??0;if(LI.has(y))B.style("stroke",Wp(T,F)),B.style("fill",Wp(w,F)),D.style("stroke",Wp(T,F)),D.style("fill",Wp(w,F));if(r.properties?.icon){let X=r.properties.icon.trim(),Q=A.x+A.width-20,Y=A.y+10;if(X.charAt(0)==="@")Exe(k,Q,Y,X.substr(1));else _xe(k,Q,Y,X)}MI(i,bf(r.description))(r.description,k,A.x,A.y,A.width,A.height,{class:`actor ${Bke}`},i);let H=r.height,W=B.select("path:last-child");if(W.node()){let X=W.node().getBBox();if(i.look!=="neo")r.height=X.height,H=X.height}if(!a)k.attr("data-et","participant"),k.attr("data-type","queue"),k.attr("data-id",r.name);return H},"drawActorTypeQueue"),EEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=poe(r,i,a,h),m=p?p.lifelineStartY:h+75,{look:y,theme:v,themeVariables:w}=i,{bkgColorArray:T,borderColorArray:x,actorBorder:k,actorBkg:A}=w,R=e.append("g").lower();if(!a)Uc++,R.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;let N=e.append("g"),L=SF;if(a)L+=` ${J7}`;else L+=` ${Z7}`;N.attr("class",L),N.attr("name",r.name);let B=o2();B.x=r.x,B.y=h,B.fill="#eaeaea",B.width=r.width,B.height=r.height,B.class="actor";let D=r.x+r.width/2,P=p?p.glyphBottomY-22:h+32,F=22;N.append("defs").append("marker").attr("id",o+"-filled-head-control").attr("refX",11).attr("refY",5.8).attr("markerWidth",20).attr("markerHeight",28).attr("orient","172.5").attr("stroke-width",1.2).append("path").attr("d","M 14.4 5.6 L 7.2 10.4 L 8.8 5.6 L 7.2 0.8 Z"),N.append("circle").attr("cx",D).attr("cy",P).attr("r",F).attr("filter",`${y==="neo"?`url(#${eM(o)})`:""}`),N.append("line").attr("marker-end","url(#"+o+"-filled-head-control)").attr("transform",`translate(${D}, ${P-F})`);let H=l.get(r.name)??0;if(LI.has(v))N.style("stroke",Wp(x,H)),N.style("fill",Wp(T,H));else N.style("stroke",k),N.style("fill",A);if(!p){let W=N.node().getBBox();r.height=W.height+2*(i?.sequence?.labelBoxHeight??0)}if(MI(i,bf(r.description))(r.description,N,B.x,p?p.labelCenterY-B.height/2:B.y+F+(!a?12:5),B.width,B.height,{class:`actor ${SF}`},i),!a)N.attr("data-et","participant"),N.attr("data-type","control"),N.attr("data-id",r.name);return r.height},"drawActorTypeControl"),wEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=poe(r,i,a,h),m=p?p.lifelineStartY:h+75,{look:y,theme:v,themeVariables:w}=i,{bkgColorArray:T,borderColorArray:x}=w,k=e.append("g").lower(),A=e.append("g"),R="actor";if(a)R+=` ${J7}`;else R+=` ${Z7}`;A.attr("class",R),A.attr("name",r.name);let N=o2();N.x=r.x,N.y=h,N.fill="#eaeaea",N.width=r.width,N.height=r.height,N.class="actor";let L=r.x+r.width/2,B=p?p.glyphBottomY-22:h+(!a?25:10),D=22;if(A.append("circle").attr("cx",L).attr("cy",B).attr("r",D).attr("width",r.width).attr("height",r.height),A.append("line").attr("x1",L-D).attr("x2",L+D).attr("y1",B+D).attr("y2",B+D).attr("stroke-width",2),y==="neo")A.attr("filter",`url(#${eM(o)})`);let P=l.get(r.name)??0;if(LI.has(v))A.style("stroke",Wp(x,P)),A.style("fill",Wp(T,P));if(!p){let F=A.node().getBBox();r.height=F.height+(i?.sequence?.labelBoxHeight??0)}if(!a)Uc++,k.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;if(MI(i,bf(r.description))(r.description,A,N.x,p?p.labelCenterY-N.height/2:N.y+(!a?30:15),N.width,N.height,{class:`actor ${SF}`},i),!p)A.attr("transform",`translate(0, ${a?D:D/2-5})`);if(!a)A.attr("data-et","participant"),A.attr("data-type","entity"),A.attr("data-id",r.name);return r.height},"drawActorTypeEntity"),SEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=poe(r,i,a,h),m=p?p.lifelineStartY:h+r.height+2*i.boxTextMargin,{theme:y,themeVariables:v,look:w}=i,{bkgColorArray:T,borderColorArray:x,actorBorder:k}=v,A=e.append("g").lower(),R=A;if(!a){if(Uc++,Object.keys(r.links||{}).length&&!i.forceMenus)R.attr("onclick",Fke(`actor${Uc}_popup`)).attr("cursor","pointer");if(R.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),R=A.append("g"),r.actorCnt=Uc,r.links!=null)R.attr("id","root-"+Uc);if(w==="neo")R.attr("data-look","neo")}let N=o2(),L="actor";if(r.properties?.class)L=r.properties.class;else N.fill="#eaeaea";if(a)L+=` ${J7}`;else L+=` ${Z7}`;N.x=r.x,N.y=h,N.width=r.width,N.height=r.height,N.class=L,N.name=r.name,N.x=r.x,N.y=h;let B=N.width/3,D=B/2,P=D/(2.5+B/50),F=p?Pke:N.width/3,H=p?p.glyphBottomY-F-P:N.y,W=R.append("g");W.attr("class",L);let X=` M ${N.x},${H+P} a ${D},${P} 0 0 0 ${B},0 a ${D},${P} 0 0 0 -${B},0 l 0,${F-2*P} a ${D},${P} 0 0 0 ${B},0 l 0,-${F-2*P} -`;if(K.append("path").attr("d",Q),w==="neo")K.attr("filter",`url(#${Z7(o)})`);let Z=l.get(r.name)??0;if(II.has(y))K.style("stroke",Wp(x,Z)),K.style("fill",Wp(T,Z));else K.style("stroke",k);if(K.attr("transform",`translate(${B}, ${P})`),r.rectData=N,OI(i,bf(r.description))(r.description,R,N.x,p?p.labelCenterY-N.height/2:N.y+35,N.width,N.height,{class:`actor ${Mke}`},i),!p){let Y=K.select("path:last-child");if(Y.node()){let j=Y.node().getBBox();r.height=j.height+(i.sequence.labelBoxHeight??0)}}if(!a)R.attr("data-et","participant"),R.attr("data-type","database"),R.attr("data-id",r.name);return r.height},"drawActorTypeDatabase"),yEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=hoe(r,i,a,h),m=p?p.lifelineStartY:h+80,y=22,E=p?p.glyphBottomY-22:h+12,w=e.append("g").lower(),{look:T,theme:x,themeVariables:k}=i,{bkgColorArray:A,borderColorArray:R,actorBorder:N}=k;if(!a)Uc++,w.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;let L=e.append("g"),B=EF;if(a)B+=` ${Q7}`;else B+=` ${X7}`;L.attr("class",B),L.attr("name",r.name);let D=o2();if(D.x=r.x,D.y=h,D.fill="#eaeaea",D.width=r.width,D.height=r.height,D.class="actor",L.append("line").attr("id","actor-man-torso"+Uc).attr("x1",r.x+r.width/2-55).attr("y1",E).attr("x2",r.x+r.width/2-15).attr("y2",E),L.append("line").attr("id","actor-man-arms"+Uc).attr("x1",r.x+r.width/2-55).attr("y1",E-10).attr("x2",r.x+r.width/2-55).attr("y2",E+10),L.append("circle").attr("cx",r.x+r.width/2).attr("cy",E).attr("r",22),T==="neo")L.attr("filter",`url(#${Z7(o)})`);let P=l.get(r.name)??0;if(II.has(x))L.style("stroke",Wp(R,P)),L.style("fill",Wp(A,P));else L.style("stroke",N);if(!p){let F=L.node().getBBox();r.height=F.height+(i.sequence.labelBoxHeight??0)}if(OI(i,bf(r.description))(r.description,L,D.x,p?p.labelCenterY-D.height/2:D.y+15,D.width,D.height,{class:`actor ${EF}`},i),!p)L.attr("transform","translate(0,21)");if(!a)L.attr("data-et","participant"),L.attr("data-type","boundary"),L.attr("data-id",r.name);return r.height},"drawActorTypeBoundary"),vEi=I(function(e,r,i,a,o){let l=a?r.stopy:r.starty,h=r.x+r.width/2,d=hoe(r,i,a,l),p=d?d.lifelineStartY:l+80,{theme:m,themeVariables:y}=i,{bkgColorArray:E,borderColorArray:w,actorBorder:T}=y,x=e.append("g").lower();if(!a)Uc++,x.append("line").attr("id","actor"+Uc).attr("x1",h).attr("y1",p).attr("x2",h).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;let k=e.append("g"),A=EF;if(a)A+=` ${Q7}`;else A+=` ${X7}`;if(k.attr("class",A),k.attr("name",r.name),!a)k.attr("data-et","participant").attr("data-type","actor").attr("data-id",r.name);let R=d?Lke/FYr:1,N=I((F)=>d?d.glyphBottomY-(zYr-F)*R:l+F,"gy"),L=I((F)=>h+F*R,"gx");k.append("line").attr("id","actor-man-torso"+Uc).attr("x1",h).attr("y1",N(25)).attr("x2",h).attr("y2",N(45)),k.append("line").attr("id","actor-man-arms"+Uc).attr("x1",L(-_F/2)).attr("y1",N(33)).attr("x2",L(_F/2)).attr("y2",N(33)),k.append("line").attr("x1",L(-_F/2)).attr("y1",N(60)).attr("x2",h).attr("y2",N(45)),k.append("line").attr("x1",h).attr("y1",N(45)).attr("x2",L(_F/2-2)).attr("y2",N(60));let B=k.append("circle");if(B.attr("cx",r.x+r.width/2),B.attr("cy",N(10)),B.attr("r",15*R),B.attr("width",r.width),B.attr("height",r.height),!d)r.height=FYr;let D=o2();D.x=r.x,D.y=l,D.fill="#eaeaea",D.width=r.width,D.height=r.height,D.class="actor",D.rx=3,D.ry=3;let P=o.get(r.name)??0;if(II.has(m))k.style("stroke",Wp(w,P)),k.style("fill",Wp(E,P));else k.style("stroke",T);return OI(i,bf(r.description))(r.description,k,D.x,d?d.labelCenterY-D.height/2:l+35,D.width,D.height,{class:`actor ${EF}`},i),r.height},"drawActorTypeActor"),_Ei=I(async function(e,r,i,a,o,l,h){let d=h??new Map([...l.db.getActors().values()].map((p,m)=>[p.name,m]));switch(r.type){case"actor":return await vEi(e,r,i,a,d);case"participant":return await dEi(e,r,i,a,o,d);case"boundary":return await yEi(e,r,i,a,o,d);case"control":return await gEi(e,r,i,a,o,d);case"entity":return await mEi(e,r,i,a,o,d);case"database":return await bEi(e,r,i,a,o,d);case"collections":return await fEi(e,r,i,a,o,d);case"queue":return await pEi(e,r,i,a,o,d)}},"drawActor"),EEi=I(function(e,r,i){let o=e.append("g");if(qYr(o,r),r.name)OI(i)(r.name,o,r.x,r.y+i.boxTextMargin+(r.textMaxHeight||0)/2,r.width,0,{class:"text"},i);o.lower()},"drawBox"),wEi=I(function(e){return e.append("g")},"anchorElement"),SEi=I(function(e,r,i,a,o,l,h){let{theme:d,themeVariables:p}=a,{bkgColorArray:m,borderColorArray:y,mainBkg:E}=p,w=o2(),{anchored:T,actor:x}=r;w.x=r.startx,w.y=r.starty,w.class="activation"+o%3,w.width=r.stopx-r.startx,w.height=i-r.starty;let k=uoe(T,w),R=(h??new Map([...l.db.getActors().values()].map((N,L)=>[N.name,L]))).get(x)??0;if(II.has(d))k.style("stroke",Wp(y,R)),k.style("fill",Wp(m,R)??E)},"drawActivation"),TEi=I(async function(e,r,i,a,o){let{boxMargin:l,boxTextMargin:h,labelBoxHeight:d,labelBoxWidth:p,messageFontFamily:m,messageFontSize:y,messageFontWeight:E}=a,w=e.append("g").attr("data-et","control-structure").attr("data-id","i"+o.id),T=I(function(A,R,N,L){return w.append("line").attr("x1",A).attr("y1",R).attr("x2",N).attr("y2",L).attr("class","loopLine")},"drawLoopLine");if(T(r.startx,r.starty,r.stopx,r.starty),T(r.stopx,r.starty,r.stopx,r.stopy),T(r.startx,r.stopy,r.stopx,r.stopy),T(r.startx,r.starty,r.startx,r.stopy),r.sections!==void 0)r.sections.forEach(function(A){T(r.startx,A.y,r.stopx,A.y).style("stroke-dasharray","3, 3")});let x=vxe();x.text=i,x.x=r.startx,x.y=r.starty,x.fontFamily=m,x.fontSize=y,x.fontWeight=E,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=Math.max(p??0,50),x.height=d+(a.look==="neo"?15:0)||20,x.textMargin=h,x.class="labelText",VYr(w,x),x=YYr(),x.text=r.title,x.x=r.startx+p/2+(r.stopx-r.startx)/2,x.y=r.starty+l+h,x.anchor="middle",x.valign="middle",x.textMargin=h,x.class="loopText",x.fontFamily=m,x.fontSize=y,x.fontWeight=E,x.wrap=!0;let k=bf(x.text)?await Nke(w,x,r):HY(w,x);if(r.sectionTitles!==void 0){for(let[A,R]of Object.entries(r.sectionTitles))if(R.message){if(x.text=R.message,x.x=r.startx+(r.stopx-r.startx)/2,x.y=r.sections[A].y+l+h,x.class="sectionTitle",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=m,x.fontSize=y,x.fontWeight=E,x.wrap=r.wrap,bf(x.text))r.starty=r.sections[A].y,await Nke(w,x,r);else HY(w,x);let N=Math.round(k.map((L)=>(L._groups||L)[0][0].getBBox().height).reduce((L,B)=>L+B));r.sections[A].height+=N-(l+h)}}return r.height=Math.round(r.stopy-r.starty),w},"drawLoop"),qYr=I(function(e,r){mxe(e,r)},"drawBackgroundRect"),xEi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),CEi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),kEi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),AEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),REi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),IEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),OEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),Z7=I((e)=>e?`${e}-drop-shadow`:"drop-shadow","dropShadowId"),NEi=I(function(e,r,i){let{theme:a}=r;e.append("defs").append("filter").attr("id",Z7(i)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a==="redux"||a==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),YYr=I(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),LEi=I(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),OI=function(){function e(l,h,d,p,m,y,E){let w=h.append("text").attr("x",d+m/2).attr("y",p+y/2+5).style("text-anchor","middle").text(l);o(w,E)}I(e,"byText");function r(l,h,d,p,m,y,E,w){let{actorFontSize:T,actorFontFamily:x,actorFontWeight:k}=w,[A,R]=W_(T),N=l.split(ai.lineBreakRegex);for(let L=0;Le.height||0))+(this.loops.length===0?0:this.loops.map((e)=>e.height||0).reduce((e,r)=>e+r))+(this.messages.length===0?0:this.messages.map((e)=>e.height||0).reduce((e,r)=>e+r))+(this.notes.length===0?0:this.notes.map((e)=>e.height||0).reduce((e,r)=>e+r))},"getHeight"),clear:I(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:I(function(e){this.boxes.push(e)},"addBox"),addActor:I(function(e){this.actors.push(e)},"addActor"),addLoop:I(function(e){this.loops.push(e)},"addLoop"),addMessage:I(function(e){this.messages.push(e)},"addMessage"),addNote:I(function(e){this.notes.push(e)},"addNote"),lastActor:I(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:I(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:I(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:I(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:I(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,KYr(Ar())},"init"),updateVal:I(function(e,r,i,a){if(e[r]===void 0)e[r]=i;else e[r]=a(i,e[r])},"updateVal"),updateBounds:I(function(e,r,i,a){let o=this,l=0;function h(d){return I(function(m){l++;let y=o.sequenceItems.length-l+1;if(o.updateVal(m,"starty",r-y*zr.boxMargin,Math.min),o.updateVal(m,"stopy",a+y*zr.boxMargin,Math.max),o.updateVal(_i.data,"startx",e-y*zr.boxMargin,Math.min),o.updateVal(_i.data,"stopx",i+y*zr.boxMargin,Math.max),d!=="activation")o.updateVal(m,"startx",e-y*zr.boxMargin,Math.min),o.updateVal(m,"stopx",i+y*zr.boxMargin,Math.max),o.updateVal(_i.data,"starty",r-y*zr.boxMargin,Math.min),o.updateVal(_i.data,"stopy",a+y*zr.boxMargin,Math.max)},"updateItemBounds")}I(h,"updateFn"),this.sequenceItems.forEach(h()),this.activations.forEach(h("activation"))},"updateBounds"),insert:I(function(e,r,i,a){let o=ai.getMin(e,i),l=ai.getMax(e,i),h=ai.getMin(r,a),d=ai.getMax(r,a);this.updateVal(_i.data,"startx",o,Math.min),this.updateVal(_i.data,"starty",h,Math.min),this.updateVal(_i.data,"stopx",l,Math.max),this.updateVal(_i.data,"stopy",d,Math.max),this.updateBounds(o,h,l,d)},"insert"),newActivation:I(function(e,r,i){let a=i.get(e.from),o=Pke(e.from).length||0,l=a.x+a.width/2+(o-1)*zr.activationWidth/2;this.activations.push({startx:l,starty:this.verticalPos+2,stopx:l+zr.activationWidth,stopy:void 0,actor:e.from,anchored:kd.anchorElement(r)})},"newActivation"),endActivation:I(function(e){let r=this.activations.map(function(i){return i.actor}).lastIndexOf(e.from);return this.activations.splice(r,1)[0]},"endActivation"),createLoop:I(function(e={message:void 0,wrap:!1,width:void 0},r){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:r}},"createLoop"),newLoop:I(function(e={message:void 0,wrap:!1,width:void 0},r){this.sequenceItems.push(this.createLoop(e,r))},"newLoop"),endLoop:I(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:I(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:I(function(e){let r=this.sequenceItems.pop();r.sections=r.sections||[],r.sectionTitles=r.sectionTitles||[],r.sections.push({y:_i.getVerticalPos(),height:0}),r.sectionTitles.push(e),this.sequenceItems.push(r)},"addSectionToLoop"),saveVerticalPos:I(function(){if(this.isLoopOverlap())this.savedVerticalPos=this.verticalPos},"saveVerticalPos"),resetVerticalPos:I(function(){if(this.isLoopOverlap())this.verticalPos=this.savedVerticalPos},"resetVerticalPos"),bumpVerticalPos:I(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=ai.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:I(function(){return this.verticalPos},"getVerticalPos"),getBounds:I(function(){return{bounds:this.data,models:this.models}},"getBounds")},$Ei=I(async function(e,r,i){_i.bumpVerticalPos(zr.boxMargin),r.height=zr.boxMargin,r.starty=_i.getVerticalPos();let a=o2();a.x=r.startx,a.y=r.starty,a.width=r.width||zr.width,a.class="note";let o=e.append("g");o.attr("data-et","note"),o.attr("data-id","i"+i);let l=kd.drawRect(o,a),h=vxe();h.x=r.startx,h.y=r.starty,h.width=a.width,h.dy="1em",h.text=r.message,h.class="noteText",h.fontFamily=zr.noteFontFamily,h.fontSize=zr.noteFontSize,h.fontWeight=zr.noteFontWeight,h.anchor=zr.noteAlign,h.textMargin=zr.noteMargin,h.valign="center";let d=bf(h.text)?await Nke(o,h):HY(o,h),p=Math.round(d.map((m)=>(m._groups||m)[0][0].getBBox().height).reduce((m,y)=>m+y));l.attr("height",p+2*zr.noteMargin),r.height+=p+2*zr.noteMargin,_i.bumpVerticalPos(p+2*zr.noteMargin),r.stopy=r.starty+p+2*zr.noteMargin,r.stopx=r.startx+a.width,_i.insert(r.startx,r.starty,r.stopx,r.stopy),_i.models.addNote(r)},"drawNote"),$Yr=I(function(e,r,i,a,o,l,h){let d=a.db.getActors(),p=d.get(r.from),m=d.get(r.to),y=i.sequenceVisible,E=p.x+p.width/2,w=m.x+m.width/2,T=E<=w,x=JYr(r,a),k=e.append("g"),A=16.5,R=I((P,F)=>{let H=P?A:-A;return F?-H:H},"getCircleOffset"),N=I((P)=>{k.append("circle").attr("cx",P).attr("cy",h).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:L,CENTRAL_CONNECTION_REVERSE:B,CENTRAL_CONNECTION_DUAL:D}=a.db.LINETYPE;if(y)switch(r.centralConnection){case L:if(x)w+=R(T,!0);break;case B:if(!x)E+=R(T,!1);break;case D:if(x)w+=R(T,!0);else E+=R(T,!1);break}switch(r.centralConnection){case L:N(w);break;case B:N(E);break;case D:N(E),N(w);break}},"drawCentralConnection"),wF=I((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),VY=I((e)=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),Pft=I((e)=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");I(WYr,"boundMessage");UEi=I(async function(e,r,i,a,o,l){let{startx:h,stopx:d,starty:p,message:m,type:y,sequenceIndex:E,sequenceVisible:w}=r,T=Ts.calculateTextDimensions(m,wF(zr)),x=vxe();if(x.x=Math.min(h,d),x.y=p+10,x.width=Math.abs(d-h),x.class="messageText",x.dy="1em",x.text=m,x.fontFamily=zr.messageFontFamily,x.fontSize=zr.messageFontSize,x.fontWeight=zr.messageFontWeight,x.anchor=zr.messageAlign,x.valign="center",x.textMargin=zr.wrapPadding,x.tspan=!1,bf(x.text))await Nke(e,x,{startx:h,stopx:d,starty:i});else HY(e,x);let k=T.width,A;if(h===d){let N=w||zr.showSequenceNumbers,L=JYr(o,a),B=jEi(o,a),D=h+(N&&(L||B)?10:0);if(zr.rightAngles)A=e.append("path").attr("d",`M ${D},${i} H ${h+ai.getMax(zr.width/2,k/2)} V ${i+25} H ${h}`);else A=e.append("path").attr("d","M "+D+","+i+" C "+(D+60)+","+(i-10)+" "+(h+60)+","+(i+30)+" "+h+","+(i+20));if(Mft(o,a))$Yr(e,o,r,a,h,d,i)}else if(A=e.append("line"),A.attr("x1",h),A.attr("y1",i),A.attr("x2",d),A.attr("y2",i),Mft(o,a))$Yr(e,o,r,a,h,d,i);if(y===a.db.LINETYPE.DOTTED||y===a.db.LINETYPE.DOTTED_CROSS||y===a.db.LINETYPE.DOTTED_POINT||y===a.db.LINETYPE.DOTTED_OPEN||y===a.db.LINETYPE.BIDIRECTIONAL_DOTTED||y===a.db.LINETYPE.SOLID_TOP_DOTTED||y===a.db.LINETYPE.SOLID_BOTTOM_DOTTED||y===a.db.LINETYPE.STICK_TOP_DOTTED||y===a.db.LINETYPE.STICK_BOTTOM_DOTTED||y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)A.style("stroke-dasharray","3, 3"),A.attr("class","messageLine1");else A.attr("class","messageLine0");A.attr("data-et","message"),A.attr("data-id","i"+r.id),A.attr("data-from",r.from),A.attr("data-to",r.to);let R="";if(zr.arrowMarkerAbsolute)R=_Xe(!0);if(A.attr("stroke-width",2),A.attr("stroke","none"),A.style("fill","none"),y===a.db.LINETYPE.SOLID_TOP||y===a.db.LINETYPE.SOLID_TOP_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-solidTopArrowHead)");if(y===a.db.LINETYPE.SOLID_BOTTOM||y===a.db.LINETYPE.SOLID_BOTTOM_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-solidBottomArrowHead)");if(y===a.db.LINETYPE.STICK_TOP||y===a.db.LINETYPE.STICK_TOP_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-stickTopArrowHead)");if(y===a.db.LINETYPE.STICK_BOTTOM||y===a.db.LINETYPE.STICK_BOTTOM_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-stickBottomArrowHead)");if(y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-solidBottomArrowHead)");if(y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-solidTopArrowHead)");if(y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-stickBottomArrowHead)");if(y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-stickTopArrowHead)");if(y===a.db.LINETYPE.SOLID||y===a.db.LINETYPE.DOTTED)A.attr("marker-end","url("+R+"#"+l+"-arrowhead)");if(y===a.db.LINETYPE.BIDIRECTIONAL_SOLID||y===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-arrowhead)"),A.attr("marker-end","url("+R+"#"+l+"-arrowhead)");if(y===a.db.LINETYPE.SOLID_POINT||y===a.db.LINETYPE.DOTTED_POINT)A.attr("marker-end","url("+R+"#"+l+"-filled-head)");if(y===a.db.LINETYPE.SOLID_CROSS||y===a.db.LINETYPE.DOTTED_CROSS)A.attr("marker-end","url("+R+"#"+l+"-crosshead)");if(w||zr.showSequenceNumbers){let N=y===a.db.LINETYPE.BIDIRECTIONAL_SOLID||y===a.db.LINETYPE.BIDIRECTIONAL_DOTTED,L=y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,B=6,D=Mft(o,a),P=h,F=d;if(N){if(hh)F=d-12;else F=d-6,P+=o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;F+=D?15:0,A.attr("x2",F),A.attr("x1",P)}else A.attr("x1",h+6);let H=0,K=h===d,Q=h<=d;if(K)H=r.fromBounds+1;else if(L)H=Q?r.toBounds-1:r.fromBounds+1;else H=Q?r.fromBounds+1:r.toBounds-1;let Z="12px",Y=E.toString().length;if(Y>5)Z="7px";else if(Y>3)Z="9px";e.append("line").attr("x1",H).attr("y1",i).attr("x2",H).attr("y2",i).attr("stroke-width",0).attr("marker-start","url("+R+"#"+l+"-sequencenumber)"),e.append("text").attr("x",H).attr("y",i+4).attr("font-family","sans-serif").attr("font-size",Z).attr("text-anchor","middle").attr("class","sequenceNumber").text(E)}},"drawMessage"),GEi=I(function(e,r,i,a,o,l,h){let d=0,p=0,m=void 0,y=0;for(let E of a){let w=r.get(E),T=w.box;if(m&&m!=T){if(!h)_i.models.addBox(m);p+=zr.boxMargin+m.margin}if(T&&T!=m){if(!h)T.x=d+p,T.y=o;p+=T.margin}if(w.width=ai.getMax(w.width||zr.width,zr.width),w.height=ai.getMax(w.height||zr.height,zr.height),w.margin=w.margin||zr.actorMargin,y=ai.getMax(y,w.height),i.get(w.name))p+=w.width/2;if(w.x=d+p,w.starty=_i.getVerticalPos(),_i.insert(w.x,o,w.x+w.width,w.height),d+=w.width+p,w.box)w.box.width=d+T.margin-w.box.x;p=w.margin,m=w.box,_i.models.addActor(w)}if(m&&!h)_i.models.addBox(m);_i.bumpVerticalPos(y)},"addActorRenderingData"),Bft=I(async function(e,r,i,a,o,l,h){if(!a)for(let d of i){let p=r.get(d);await kd.drawActor(e,p,zr,!1,o,l,h)}else{let d=0;_i.bumpVerticalPos(zr.boxMargin*2);for(let p of i){let m=r.get(p);if(!m.stopy)m.stopy=_i.getVerticalPos();let y=await kd.drawActor(e,m,zr,!0,o,l,h);d=ai.getMax(d,y)}_i.bumpVerticalPos(d+zr.boxMargin)}},"drawActors"),jYr=I(function(e,r,i,a){let o=0,l=0;for(let h of i){let d=r.get(h),p=VEi(d),m=kd.drawPopup(e,d,p,zr,zr.forceMenus,a);if(m.height>o)o=m.height;if(m.width+d.x>l)l=m.width+d.x}return{maxHeight:o,maxWidth:l}},"drawActorsPopup"),KYr=I(function(e){if(Sd(zr,e),e.fontFamily)zr.actorFontFamily=zr.noteFontFamily=zr.messageFontFamily=e.fontFamily;if(e.fontSize)zr.actorFontSize=zr.noteFontSize=zr.messageFontSize=e.fontSize;if(e.fontWeight)zr.actorFontWeight=zr.noteFontWeight=zr.messageFontWeight=e.fontWeight},"setConf"),Pke=I(function(e){return _i.activations.filter(function(r){return r.actor===e})},"actorActivations"),UYr=I(function(e,r){let i=r.get(e),a=Pke(e),o=a.reduce(function(h,d){return ai.getMin(h,d.startx)},i.x+i.width/2-1),l=a.reduce(function(h,d){return ai.getMax(h,d.stopx)},i.x+i.width/2+1);return[o,l]},"activationBounds");I(zC,"adjustLoopHeightForWrap");I(XYr,"adjustCreatedDestroyedData");zEi=I(async function(e,r,i,a){let{securityLevel:o,sequence:l,look:h,themeVariables:d}=Ar();zr=l;let p;if(o==="sandbox")p=xn("#i"+r);let m=o==="sandbox"?xn(p.nodes()[0].contentDocument.body):xn("body"),y=o==="sandbox"?p.nodes()[0].contentDocument:document;_i.init(),Ze.debug(a.db);let E=o==="sandbox"?m.select(`[id="${r}"]`):xn(`[id="${r}"]`),w=a.db.getActors(),T=a.db.getCreatedActors(),x=a.db.getDestroyedActors(),k=a.db.getBoxes(),A=a.db.getActorKeys(),R=a.db.getMessages(),N=a.db.getDiagramTitle(),L=a.db.hasAtLeastOneBox(),B=a.db.hasAtLeastOneBoxWithTitle(),D=await QYr(w,R,a);if(zr.height=await ZYr(w,D,k),kd.insertComputerIcon(E,r),kd.insertDatabaseIcon(E,r),kd.insertClockIcon(E,r),L){if(_i.bumpVerticalPos(zr.boxMargin),B)_i.bumpVerticalPos(k[0].textMaxHeight)}if(zr.hideUnusedParticipants===!0){let se=new Set;R.forEach((he)=>{se.add(he.from),se.add(he.to)}),A=A.filter((he)=>se.has(he))}let P=new Map(A.map((se,he)=>[w.get(se)?.name??se,he]));GEi(E,w,T,A,0,R,!1);let F=await XEi(R,w,D,a);if(kd.insertArrowHead(E,r),kd.insertArrowCrossHead(E,r),kd.insertArrowFilledHead(E,r),kd.insertSequenceNumber(E,r),kd.insertSolidTopArrowHead(E,r),kd.insertSolidBottomArrowHead(E,r),kd.insertStickTopArrowHead(E,r),kd.insertStickBottomArrowHead(E,r),h==="neo")kd.insertDropShadow(E,zr,r);function H(se,he){let ye=_i.endActivation(se);if(ye.starty+18>he)ye.starty=he-6,he+=12;kd.drawActivation(E,ye,he,zr,Pke(se.from).length,a,P),_i.insert(ye.startx,he-10,ye.stopx,he)}I(H,"activeEnd");let K=1,Q=1,Z=[],Y=[],j=0;for(let se of R){let he,ye,xe;switch(se.type){case a.db.LINETYPE.NOTE:_i.resetVerticalPos(),ye=se.noteModel,await $Ei(E,ye,se.id);break;case a.db.LINETYPE.ACTIVE_START:_i.newActivation(se,E,w);break;case a.db.LINETYPE.CENTRAL_CONNECTION:_i.newActivation(se,E,w);break;case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:_i.newActivation(se,E,w);break;case a.db.LINETYPE.ACTIVE_END:H(se,_i.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:zC(F,se,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.LOOP_END:he=_i.endLoop(),await kd.drawLoop(E,he,"loop",zr,se),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.RECT_START:zC(F,se,zr.boxMargin,zr.boxMargin,(Ie)=>{let Ee=Ie.message;if(!Ee)Ee=d?.rectBkgColor||d?.actorBkg||"rgba(128, 128, 128, 0.5)";_i.newLoop(void 0,Ee)});break;case a.db.LINETYPE.RECT_END:he=_i.endLoop(),Y.push(he),_i.models.addLoop(he),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos());break;case a.db.LINETYPE.OPT_START:zC(F,se,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.OPT_END:he=_i.endLoop(),await kd.drawLoop(E,he,"opt",zr,se),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.ALT_START:zC(F,se,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.ALT_ELSE:zC(F,se,zr.boxMargin+zr.boxTextMargin,zr.boxMargin,(Ie)=>_i.addSectionToLoop(Ie));break;case a.db.LINETYPE.ALT_END:he=_i.endLoop(),await kd.drawLoop(E,he,"alt",zr,se),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:zC(F,se,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie)),_i.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:zC(F,se,zr.boxMargin+zr.boxTextMargin,zr.boxMargin,(Ie)=>_i.addSectionToLoop(Ie));break;case a.db.LINETYPE.PAR_END:he=_i.endLoop(),await kd.drawLoop(E,he,"par",zr,se),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.AUTONUMBER:if(K=se.message.start||K,Q=se.message.step||Q,se.message.visible)a.db.enableSequenceNumbers();else a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:zC(F,se,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.CRITICAL_OPTION:zC(F,se,zr.boxMargin+zr.boxTextMargin,zr.boxMargin,(Ie)=>_i.addSectionToLoop(Ie));break;case a.db.LINETYPE.CRITICAL_END:he=_i.endLoop(),await kd.drawLoop(E,he,"critical",zr,se),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.BREAK_START:zC(F,se,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.BREAK_END:he=_i.endLoop(),await kd.drawLoop(E,he,"break",zr,se),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;default:try{xe=se.msgModel,xe.starty=_i.getVerticalPos(),xe.sequenceIndex=K,xe.sequenceVisible=a.db.showSequenceNumbers(),xe.id=se.id,xe.from=se.from,xe.to=se.to;let Ie=await WYr(E,xe);XYr(se,xe,Ie,j,w,T,x),Z.push({messageModel:xe,lineStartY:Ie,msg:se}),_i.models.addMessage(xe)}catch(Ie){Ze.error("error while drawing message",Ie)}}if([a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(se.type))K=Math.round((K+Q)*100)/100;j++}Ze.debug("createdActors",T),Ze.debug("destroyedActors",x),await Bft(E,w,A,!1,r,a,P);for(let se of Z)await UEi(E,se.messageModel,se.lineStartY,a,se.msg,r);if(zr.mirrorActors)await Bft(E,w,A,!0,r,a,P);Y.forEach((se)=>kd.drawBackgroundRect(E,se)),HYr(E,w,A,zr);for(let se of _i.models.boxes){se.height=_i.getVerticalPos()-se.y,_i.insert(se.x,se.y,se.x+se.width,se.height);let he=zr.boxMargin*2;se.startx=se.x-he,se.starty=se.y-he*0.25,se.stopx=se.startx+se.width+2*he,se.stopy=se.starty+se.height+he*0.75,se.stroke="rgb(0,0,0, 0.5)",kd.drawBox(E,se,zr)}if(L)_i.bumpVerticalPos(zr.boxMargin);let te=jYr(E,w,A,y),{bounds:X}=_i.getBounds();if(X.startx===void 0)X.startx=0;if(X.starty===void 0)X.starty=0;if(X.stopx===void 0)X.stopx=0;if(X.stopy===void 0)X.stopy=0;let W=X.stopy-X.starty;if(W2,w=I((A)=>p?-A:A,"adjustValue");if(e.from===e.to)y=m;else{if(e.activate&&!E)y+=w(zr.activationWidth/2-1);if(![i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.STICK_TOP,i.db.LINETYPE.STICK_BOTTOM,i.db.LINETYPE.STICK_TOP_DOTTED,i.db.LINETYPE.STICK_BOTTOM_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type))y+=w(3);if([i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type))m-=w(3)}let T=[o,l,h,d],x=Math.abs(m-y);if(e.wrap&&e.message)e.message=Ts.wrapLabel(e.message,ai.getMax(x+2*zr.wrapPadding,zr.width),wF(zr));let k=Ts.calculateTextDimensions(e.message,wF(zr));return{width:ai.getMax(e.wrap?0:k.width+2*zr.wrapPadding,x+2*zr.wrapPadding,zr.width),height:0,startx:m,stopx:y,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,T),toBounds:Math.max.apply(null,T)}},"buildMessageModel"),XEi=I(async function(e,r,i,a){let o={},l=[],h,d,p;for(let m of e){switch(m.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:l.push({id:m.id,msg:m.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:if(m.message)h=l.pop(),o[h.id]=h,o[m.id]=h,l.push(h);break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:h=l.pop(),o[h.id]=h;break;case a.db.LINETYPE.ACTIVE_START:{let E=r.get(m.from?m.from:m.to.actor),w=Pke(m.from?m.from:m.to.actor).length,T=E.x+E.width/2+(w-1)*zr.activationWidth/2,x={startx:T,stopx:T+zr.activationWidth,actor:m.from,enabled:!0};_i.activations.push(x)}break;case a.db.LINETYPE.ACTIVE_END:{let E=_i.activations.map((w)=>w.actor).lastIndexOf(m.from);_i.activations.splice(E,1).splice(0,1)}break}if(m.placement!==void 0)d=await HEi(m,r,a),m.noteModel=d,l.forEach((E)=>{h=E,h.from=ai.getMin(h.from,d.startx),h.to=ai.getMax(h.to,d.startx+d.width),h.width=ai.getMax(h.width,Math.abs(h.from-h.to))-zr.labelBoxWidth});else if(p=KEi(m,r,a),m.msgModel=p,p.startx&&p.stopx&&l.length>0)l.forEach((E)=>{if(h=E,p.startx===p.stopx){let w=r.get(m.from),T=r.get(m.to);h.from=ai.getMin(w.x-p.width/2,w.x-w.width/2,h.from),h.to=ai.getMax(T.x+p.width/2,T.x+w.width/2,h.to),h.width=ai.getMax(h.width,Math.abs(h.to-h.from))-zr.labelBoxWidth}else h.from=ai.getMin(p.startx,h.from),h.to=ai.getMax(p.stopx,h.to),h.width=ai.getMax(h.width,p.width)-zr.labelBoxWidth})}return _i.activations=[],Ze.debug("Loop type widths:",o),o},"calculateLoopBounds"),QEi={bounds:_i,drawActors:Bft,drawActorsPopup:jYr,setConf:KYr,draw:zEi},eWr={parser:eEi,get db(){return new iEi},renderer:QEi,styles:sEi,init:I((e)=>{if(!e.sequence)e.sequence={};if(e.wrap)e.sequence.wrap=e.wrap,RR({sequence:{wrap:e.wrap}})},"init")}});var Uft,ZEi,rWr,nWr,Bke="classId-",iWr=0,SF,JEi,ewi,twi,rwi,nwi,iwi,awi,swi,aWr;var sWr=Re(()=>{oI();MC();fT();lT();WE();z3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();EP();Uft=function(){var e=I(function(De,oe,pe,fe){for(pe=pe||{},fe=De.length;fe--;pe[De[fe]]=oe);return pe},"o"),r=[1,18],i=[1,19],a=[1,20],o=[1,41],l=[1,26],h=[1,42],d=[1,24],p=[1,25],m=[1,32],y=[1,33],E=[1,34],w=[1,45],T=[1,35],x=[1,36],k=[1,37],A=[1,38],R=[1,27],N=[1,28],L=[1,29],B=[1,30],D=[1,31],P=[1,44],F=[1,46],H=[1,43],K=[1,47],Q=[1,9],Z=[1,8,9],Y=[1,58],j=[1,59],te=[1,60],X=[1,61],W=[1,62],J=[1,63],z=[1,64],ne=[1,8,9,41],ie=[1,77],le=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],se=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],he=[13,60,86,100,102,103],ye=[13,60,73,74,86,100,102,103],xe=[13,60,68,69,70,71,72,86,100,102,103],Ie=[1,103],Ee=[1,121],Ue=[1,117],Me=[1,113],Xe=[1,119],je=[1,114],Qe=[1,115],St=[1,116],pt=[1,118],Vt=[1,120],Xt=[22,50,60,61,82,86,87,88,89,90],rr=[1,128],We=[12,39],Nt=[1,8,9,39,41,44,46],ct=[1,8,9,22],bt=[1,153],Pe=[1,8,9,61],Ge=[1,8,9,22,50,60,61,82,86,87,88,89,90],qe={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:I(function(oe,pe,fe,be,ze,Ce,_e){var ke=Ce.length-1;switch(ze){case 8:this.$=Ce[ke-1];break;case 9:case 10:case 13:case 15:this.$=Ce[ke];break;case 11:case 14:this.$=Ce[ke-2]+"."+Ce[ke];break;case 12:case 16:this.$=Ce[ke-1]+Ce[ke];break;case 17:case 18:this.$=Ce[ke-1]+"~"+Ce[ke]+"~";break;case 19:be.addRelation(Ce[ke]);break;case 20:Ce[ke-1].title=be.cleanupLabel(Ce[ke]),be.addRelation(Ce[ke-1]);break;case 31:this.$=Ce[ke].trim(),be.setAccTitle(this.$);break;case 32:case 33:this.$=Ce[ke].trim(),be.setAccDescription(this.$);break;case 34:be.addClassesToNamespace(Ce[ke-3],Ce[ke-1][0],Ce[ke-1][1]),be.popNamespace();break;case 35:be.addClassesToNamespace(Ce[ke-4],Ce[ke-1][0],Ce[ke-1][1]),be.popNamespace();break;case 36:this.$=be.addNamespace(Ce[ke]);break;case 37:this.$=be.addNamespace(Ce[ke-1],Ce[ke]);break;case 38:this.$=[[Ce[ke]],[]];break;case 39:this.$=[[Ce[ke-1]],[]];break;case 40:Ce[ke][0].unshift(Ce[ke-2]),this.$=Ce[ke];break;case 41:this.$=[[],[Ce[ke]]];break;case 42:this.$=[[],[Ce[ke-1]]];break;case 43:Ce[ke][1].unshift(Ce[ke-2]),this.$=Ce[ke];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=Ce[ke];break;case 48:be.setCssClass(Ce[ke-2],Ce[ke]);break;case 49:be.addMembers(Ce[ke-3],Ce[ke-1]);break;case 51:be.setCssClass(Ce[ke-5],Ce[ke-3]),be.addMembers(Ce[ke-5],Ce[ke-1]);break;case 52:be.addAnnotation(Ce[ke-3],Ce[ke-1]);break;case 53:be.addAnnotation(Ce[ke-6],Ce[ke-4]),be.addMembers(Ce[ke-6],Ce[ke-1]);break;case 54:be.addAnnotation(Ce[ke-5],Ce[ke-3]);break;case 55:this.$=Ce[ke],be.addClass(Ce[ke]);break;case 56:this.$=Ce[ke-1],be.addClass(Ce[ke-1]),be.setClassLabel(Ce[ke-1],Ce[ke]);break;case 60:be.addAnnotation(Ce[ke],Ce[ke-2]);break;case 61:case 74:this.$=[Ce[ke]];break;case 62:Ce[ke].push(Ce[ke-1]),this.$=Ce[ke];break;case 63:break;case 64:be.addMember(Ce[ke-1],be.cleanupLabel(Ce[ke]));break;case 65:break;case 66:break;case 67:this.$={id1:Ce[ke-2],id2:Ce[ke],relation:Ce[ke-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:Ce[ke-3],id2:Ce[ke],relation:Ce[ke-1],relationTitle1:Ce[ke-2],relationTitle2:"none"};break;case 69:this.$={id1:Ce[ke-3],id2:Ce[ke],relation:Ce[ke-2],relationTitle1:"none",relationTitle2:Ce[ke-1]};break;case 70:this.$={id1:Ce[ke-4],id2:Ce[ke],relation:Ce[ke-2],relationTitle1:Ce[ke-3],relationTitle2:Ce[ke-1]};break;case 71:this.$=be.addNote(Ce[ke],Ce[ke-1]);break;case 72:this.$=be.addNote(Ce[ke]);break;case 73:this.$=Ce[ke-2],be.defineClass(Ce[ke-1],Ce[ke]);break;case 75:this.$=Ce[ke-2].concat([Ce[ke]]);break;case 76:be.setDirection("TB");break;case 77:be.setDirection("BT");break;case 78:be.setDirection("RL");break;case 79:be.setDirection("LR");break;case 80:this.$={type1:Ce[ke-2],type2:Ce[ke],lineType:Ce[ke-1]};break;case 81:this.$={type1:"none",type2:Ce[ke],lineType:Ce[ke-1]};break;case 82:this.$={type1:Ce[ke-1],type2:"none",lineType:Ce[ke]};break;case 83:this.$={type1:"none",type2:"none",lineType:Ce[ke]};break;case 84:this.$=be.relationType.AGGREGATION;break;case 85:this.$=be.relationType.EXTENSION;break;case 86:this.$=be.relationType.COMPOSITION;break;case 87:this.$=be.relationType.DEPENDENCY;break;case 88:this.$=be.relationType.LOLLIPOP;break;case 89:this.$=be.lineType.LINE;break;case 90:this.$=be.lineType.DOTTED_LINE;break;case 91:case 97:this.$=Ce[ke-2],be.setClickEvent(Ce[ke-1],Ce[ke]);break;case 92:case 98:this.$=Ce[ke-3],be.setClickEvent(Ce[ke-2],Ce[ke-1]),be.setTooltip(Ce[ke-2],Ce[ke]);break;case 93:this.$=Ce[ke-2],be.setLink(Ce[ke-1],Ce[ke]);break;case 94:this.$=Ce[ke-3],be.setLink(Ce[ke-2],Ce[ke-1],Ce[ke]);break;case 95:this.$=Ce[ke-3],be.setLink(Ce[ke-2],Ce[ke-1]),be.setTooltip(Ce[ke-2],Ce[ke]);break;case 96:this.$=Ce[ke-4],be.setLink(Ce[ke-3],Ce[ke-2],Ce[ke]),be.setTooltip(Ce[ke-3],Ce[ke-1]);break;case 99:this.$=Ce[ke-3],be.setClickEvent(Ce[ke-2],Ce[ke-1],Ce[ke]);break;case 100:this.$=Ce[ke-4],be.setClickEvent(Ce[ke-3],Ce[ke-2],Ce[ke-1]),be.setTooltip(Ce[ke-3],Ce[ke]);break;case 101:this.$=Ce[ke-3],be.setLink(Ce[ke-2],Ce[ke]);break;case 102:this.$=Ce[ke-4],be.setLink(Ce[ke-3],Ce[ke-1],Ce[ke]);break;case 103:this.$=Ce[ke-4],be.setLink(Ce[ke-3],Ce[ke-1]),be.setTooltip(Ce[ke-3],Ce[ke]);break;case 104:this.$=Ce[ke-5],be.setLink(Ce[ke-4],Ce[ke-2],Ce[ke]),be.setTooltip(Ce[ke-4],Ce[ke-1]);break;case 105:this.$=Ce[ke-2],be.setCssStyle(Ce[ke-1],Ce[ke]);break;case 106:be.setCssClass(Ce[ke-1],Ce[ke]);break;case 107:this.$=[Ce[ke]];break;case 108:Ce[ke-2].push(Ce[ke]),this.$=Ce[ke-2];break;case 110:this.$=Ce[ke-1]+Ce[ke];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:i,37:a,38:22,42:o,43:23,46:l,48:h,51:d,52:p,54:m,56:y,57:E,60:w,62:T,63:x,64:k,65:A,75:R,76:N,78:L,82:B,83:D,86:P,100:F,102:H,103:K},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Q,[2,5],{8:[1,48]}),{8:[1,49]},e(Z,[2,19],{22:[1,50]}),e(Z,[2,21]),e(Z,[2,22]),e(Z,[2,23]),e(Z,[2,24]),e(Z,[2,25]),e(Z,[2,26]),e(Z,[2,27]),e(Z,[2,28]),e(Z,[2,29]),e(Z,[2,30]),{34:[1,51]},{36:[1,52]},e(Z,[2,33]),e(Z,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Y,69:j,70:te,71:X,72:W,73:J,74:z}),{39:[1,65]},e(ne,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(Z,[2,65]),e(Z,[2,66]),{16:69,60:w,86:P,100:F,102:H},{16:39,17:40,19:70,60:w,86:P,100:F,102:H,103:K},{16:39,17:40,19:71,60:w,86:P,100:F,102:H,103:K},{16:39,17:40,19:72,60:w,86:P,100:F,102:H,103:K},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:w,86:P,100:F,102:H,103:K},{13:ie,55:76},{58:78,60:[1,79]},e(Z,[2,76]),e(Z,[2,77]),e(Z,[2,78]),e(Z,[2,79]),e(le,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:w,86:P,100:F,102:H,103:K}),e(le,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:w,86:P,100:F,102:H,103:K},{16:39,17:40,19:87,60:w,86:P,100:F,102:H,103:K},e(se,[2,133]),e(se,[2,134]),e(se,[2,135]),e(se,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(Q,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:i,37:a,42:o,46:l,48:h,51:d,52:p,54:m,56:y,57:E,60:w,62:T,63:x,64:k,65:A,75:R,76:N,78:L,82:B,83:D,86:P,100:F,102:H,103:K}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:i,37:a,38:22,42:o,43:23,46:l,48:h,51:d,52:p,54:m,56:y,57:E,60:w,62:T,63:x,64:k,65:A,75:R,76:N,78:L,82:B,83:D,86:P,100:F,102:H,103:K},e(Z,[2,20]),e(Z,[2,31]),e(Z,[2,32]),{13:[1,91],16:39,17:40,19:90,60:w,86:P,100:F,102:H,103:K},{53:92,66:56,67:57,68:Y,69:j,70:te,71:X,72:W,73:J,74:z},e(Z,[2,64]),{67:93,73:J,74:z},e(he,[2,83],{66:94,68:Y,69:j,70:te,71:X,72:W}),e(ye,[2,84]),e(ye,[2,85]),e(ye,[2,86]),e(ye,[2,87]),e(ye,[2,88]),e(xe,[2,89]),e(xe,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:h,54:m,56:y},{16:100,60:w,86:P,100:F,102:H},{41:[1,102],45:101,51:Ie},{16:104,60:w,86:P,100:F,102:H},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Ee,50:Ue,59:110,60:Me,82:Xe,84:111,85:112,86:je,87:Qe,88:St,89:pt,90:Vt},{60:[1,122]},{13:ie,55:123},e(ne,[2,72]),e(ne,[2,138]),{22:Ee,50:Ue,59:124,60:Me,61:[1,125],82:Xe,84:111,85:112,86:je,87:Qe,88:St,89:pt,90:Vt},e(Xt,[2,74]),{16:39,17:40,19:126,60:w,86:P,100:F,102:H,103:K},e(le,[2,16]),e(le,[2,17]),e(le,[2,18]),{11:127,12:rr,39:[2,36]},e(We,[2,9],{16:85,17:86,15:130,18:[1,129],60:w,86:P,100:F,102:H,103:K}),e(We,[2,10]),e(Nt,[2,55],{11:131,12:rr}),e(Q,[2,7]),{9:[1,132]},e(ct,[2,67]),{16:39,17:40,19:133,60:w,86:P,100:F,102:H,103:K},{13:[1,135],16:39,17:40,19:134,60:w,86:P,100:F,102:H,103:K},e(he,[2,82],{66:136,68:Y,69:j,70:te,71:X,72:W}),e(he,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:h,54:m,56:y},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(ne,[2,48],{39:[1,142]}),{41:[1,143]},e(ne,[2,50]),{41:[2,61],45:144,51:Ie},{47:[1,145]},{16:39,17:40,19:146,60:w,86:P,100:F,102:H,103:K},e(Z,[2,91],{13:[1,147]}),e(Z,[2,93],{13:[1,149],77:[1,148]}),e(Z,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(Z,[2,105],{61:bt}),e(Pe,[2,107],{85:154,22:Ee,50:Ue,60:Me,82:Xe,86:je,87:Qe,88:St,89:pt,90:Vt}),e(Ge,[2,109]),e(Ge,[2,111]),e(Ge,[2,112]),e(Ge,[2,113]),e(Ge,[2,114]),e(Ge,[2,115]),e(Ge,[2,116]),e(Ge,[2,117]),e(Ge,[2,118]),e(Ge,[2,119]),e(Z,[2,106]),e(ne,[2,71]),e(Z,[2,73],{61:bt}),{60:[1,155]},e(le,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:w,86:P,100:F,102:H,103:K},e(We,[2,12]),e(Nt,[2,56]),{1:[2,4]},e(ct,[2,69]),e(ct,[2,68]),{16:39,17:40,19:158,60:w,86:P,100:F,102:H,103:K},e(he,[2,80]),e(ne,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:h,54:m,56:y},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:h,54:m,56:y},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:h,54:m,56:y},{45:163,51:Ie},e(ne,[2,49]),{41:[2,62]},e(ne,[2,52],{39:[1,164]}),e(Z,[2,60]),e(Z,[2,92]),e(Z,[2,94]),e(Z,[2,95],{77:[1,165]}),e(Z,[2,98]),e(Z,[2,99],{13:[1,166]}),e(Z,[2,101],{13:[1,168],77:[1,167]}),{22:Ee,50:Ue,60:Me,82:Xe,84:169,85:112,86:je,87:Qe,88:St,89:pt,90:Vt},e(Ge,[2,110]),e(Xt,[2,75]),{14:[1,170]},e(We,[2,11]),e(ct,[2,70]),e(ne,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Ie},e(Z,[2,96]),e(Z,[2,100]),e(Z,[2,102]),e(Z,[2,103],{77:[1,174]}),e(Pe,[2,108],{85:154,22:Ee,50:Ue,60:Me,82:Xe,86:je,87:Qe,88:St,89:pt,90:Vt}),e(Nt,[2,8]),e(ne,[2,51]),{41:[1,175]},e(ne,[2,54]),e(Z,[2,104]),e(ne,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:I(function(oe,pe){if(pe.recoverable)this.trace(oe);else{var fe=Error(oe);throw fe.hash=pe,fe}},"parseError"),parse:I(function(oe){var pe=this,fe=[0],be=[],ze=[null],Ce=[],_e=this.table,ke="",it=0,ut=0,gt=0,vt=2,ir=1,qt=Ce.slice.call(arguments,1),cr=Object.create(this.lexer),tr={yy:{}};for(var Zt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Zt))tr.yy[Zt]=this.yy[Zt];if(cr.setInput(oe,tr.yy),tr.yy.lexer=cr,tr.yy.parser=this,typeof cr.yylloc>"u")cr.yylloc={};var lr=cr.yylloc;Ce.push(lr);var Kt=cr.options&&cr.options.ranges;if(typeof tr.yy.parseError==="function")this.parseError=tr.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function In(Fn){fe.length=fe.length-2*Fn,ze.length=ze.length-Fn,Ce.length=Ce.length-Fn}I(In,"popStack");function Et(){var Fn=be.pop()||cr.lex()||ir;if(typeof Fn!=="number"){if(Fn instanceof Array)be=Fn,Fn=be.pop();Fn=pe.symbols_[Fn]||Fn}return Fn}I(Et,"lex");var Xn,Yt,Bn,si,hn,Ii,Vn={},Ei,yn,Li,Ia;while(!0){if(Bn=fe[fe.length-1],this.defaultActions[Bn])si=this.defaultActions[Bn];else{if(Xn===null||typeof Xn>"u")Xn=Et();si=_e[Bn]&&_e[Bn][Xn]}if(typeof si>"u"||!si.length||!si[0]){var tt="";Ia=[];for(Ei in _e[Bn])if(this.terminals_[Ei]&&Ei>vt)Ia.push("'"+this.terminals_[Ei]+"'");if(cr.showPosition)tt="Parse error on line "+(it+1)+`: +`;if(W.append("path").attr("d",X),w==="neo")W.attr("filter",`url(#${eM(o)})`);let Q=l.get(r.name)??0;if(LI.has(y))W.style("stroke",Wp(x,Q)),W.style("fill",Wp(T,Q));else W.style("stroke",k);if(W.attr("transform",`translate(${B}, ${P})`),r.rectData=N,MI(i,bf(r.description))(r.description,R,N.x,p?p.labelCenterY-N.height/2:N.y+35,N.width,N.height,{class:`actor ${Bke}`},i),!p){let Y=W.select("path:last-child");if(Y.node()){let K=Y.node().getBBox();r.height=K.height+(i.sequence.labelBoxHeight??0)}}if(!a)R.attr("data-et","participant"),R.attr("data-type","database"),R.attr("data-id",r.name);return r.height},"drawActorTypeDatabase"),TEi=I(function(e,r,i,a,o,l){let h=a?r.stopy:r.starty,d=r.x+r.width/2,p=poe(r,i,a,h),m=p?p.lifelineStartY:h+80,y=22,v=p?p.glyphBottomY-22:h+12,w=e.append("g").lower(),{look:T,theme:x,themeVariables:k}=i,{bkgColorArray:A,borderColorArray:R,actorBorder:N}=k;if(!a)Uc++,w.append("line").attr("id","actor"+Uc).attr("x1",d).attr("y1",m).attr("x2",d).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;let L=e.append("g"),B=SF;if(a)B+=` ${J7}`;else B+=` ${Z7}`;L.attr("class",B),L.attr("name",r.name);let D=o2();if(D.x=r.x,D.y=h,D.fill="#eaeaea",D.width=r.width,D.height=r.height,D.class="actor",L.append("line").attr("id","actor-man-torso"+Uc).attr("x1",r.x+r.width/2-55).attr("y1",v).attr("x2",r.x+r.width/2-15).attr("y2",v),L.append("line").attr("id","actor-man-arms"+Uc).attr("x1",r.x+r.width/2-55).attr("y1",v-10).attr("x2",r.x+r.width/2-55).attr("y2",v+10),L.append("circle").attr("cx",r.x+r.width/2).attr("cy",v).attr("r",22),T==="neo")L.attr("filter",`url(#${eM(o)})`);let P=l.get(r.name)??0;if(LI.has(x))L.style("stroke",Wp(R,P)),L.style("fill",Wp(A,P));else L.style("stroke",N);if(!p){let F=L.node().getBBox();r.height=F.height+(i.sequence.labelBoxHeight??0)}if(MI(i,bf(r.description))(r.description,L,D.x,p?p.labelCenterY-D.height/2:D.y+15,D.width,D.height,{class:`actor ${SF}`},i),!p)L.attr("transform","translate(0,21)");if(!a)L.attr("data-et","participant"),L.attr("data-type","boundary"),L.attr("data-id",r.name);return r.height},"drawActorTypeBoundary"),xEi=I(function(e,r,i,a,o){let l=a?r.stopy:r.starty,h=r.x+r.width/2,d=poe(r,i,a,l),p=d?d.lifelineStartY:l+80,{theme:m,themeVariables:y}=i,{bkgColorArray:v,borderColorArray:w,actorBorder:T}=y,x=e.append("g").lower();if(!a)Uc++,x.append("line").attr("id","actor"+Uc).attr("x1",h).attr("y1",p).attr("x2",h).attr("y2",2000).attr("class","actor-line 200").attr("stroke-width","0.5px").attr("stroke","#999").attr("name",r.name).attr("data-et","life-line").attr("data-id",r.name),r.actorCnt=Uc;let k=e.append("g"),A=SF;if(a)A+=` ${J7}`;else A+=` ${Z7}`;if(k.attr("class",A),k.attr("name",r.name),!a)k.attr("data-et","participant").attr("data-type","actor").attr("data-id",r.name);let R=d?Pke/VYr:1,N=I((F)=>d?d.glyphBottomY-(WYr-F)*R:l+F,"gy"),L=I((F)=>h+F*R,"gx");k.append("line").attr("id","actor-man-torso"+Uc).attr("x1",h).attr("y1",N(25)).attr("x2",h).attr("y2",N(45)),k.append("line").attr("id","actor-man-arms"+Uc).attr("x1",L(-wF/2)).attr("y1",N(33)).attr("x2",L(wF/2)).attr("y2",N(33)),k.append("line").attr("x1",L(-wF/2)).attr("y1",N(60)).attr("x2",h).attr("y2",N(45)),k.append("line").attr("x1",h).attr("y1",N(45)).attr("x2",L(wF/2-2)).attr("y2",N(60));let B=k.append("circle");if(B.attr("cx",r.x+r.width/2),B.attr("cy",N(10)),B.attr("r",15*R),B.attr("width",r.width),B.attr("height",r.height),!d)r.height=VYr;let D=o2();D.x=r.x,D.y=l,D.fill="#eaeaea",D.width=r.width,D.height=r.height,D.class="actor",D.rx=3,D.ry=3;let P=o.get(r.name)??0;if(LI.has(m))k.style("stroke",Wp(w,P)),k.style("fill",Wp(v,P));else k.style("stroke",T);return MI(i,bf(r.description))(r.description,k,D.x,d?d.labelCenterY-D.height/2:l+35,D.width,D.height,{class:`actor ${SF}`},i),r.height},"drawActorTypeActor"),CEi=I(async function(e,r,i,a,o,l,h){let d=h??new Map([...l.db.getActors().values()].map((p,m)=>[p.name,m]));switch(r.type){case"actor":return await xEi(e,r,i,a,d);case"participant":return await yEi(e,r,i,a,o,d);case"boundary":return await TEi(e,r,i,a,o,d);case"control":return await EEi(e,r,i,a,o,d);case"entity":return await wEi(e,r,i,a,o,d);case"database":return await SEi(e,r,i,a,o,d);case"collections":return await vEi(e,r,i,a,o,d);case"queue":return await _Ei(e,r,i,a,o,d)}},"drawActor"),kEi=I(function(e,r,i){let o=e.append("g");if(XYr(o,r),r.name)MI(i)(r.name,o,r.x,r.y+i.boxTextMargin+(r.textMaxHeight||0)/2,r.width,0,{class:"text"},i);o.lower()},"drawBox"),AEi=I(function(e){return e.append("g")},"anchorElement"),REi=I(function(e,r,i,a,o,l,h){let{theme:d,themeVariables:p}=a,{bkgColorArray:m,borderColorArray:y,mainBkg:v}=p,w=o2(),{anchored:T,actor:x}=r;w.x=r.startx,w.y=r.starty,w.class="activation"+o%3,w.width=r.stopx-r.startx,w.height=i-r.starty;let k=foe(T,w),R=(h??new Map([...l.db.getActors().values()].map((N,L)=>[N.name,L]))).get(x)??0;if(LI.has(d))k.style("stroke",Wp(y,R)),k.style("fill",Wp(m,R)??v)},"drawActivation"),IEi=I(async function(e,r,i,a,o){let{boxMargin:l,boxTextMargin:h,labelBoxHeight:d,labelBoxWidth:p,messageFontFamily:m,messageFontSize:y,messageFontWeight:v}=a,w=e.append("g").attr("data-et","control-structure").attr("data-id","i"+o.id),T=I(function(A,R,N,L){return w.append("line").attr("x1",A).attr("y1",R).attr("x2",N).attr("y2",L).attr("class","loopLine")},"drawLoopLine");if(T(r.startx,r.starty,r.stopx,r.starty),T(r.stopx,r.starty,r.stopx,r.stopy),T(r.startx,r.stopy,r.stopx,r.stopy),T(r.startx,r.starty,r.startx,r.stopy),r.sections!==void 0)r.sections.forEach(function(A){T(r.startx,A.y,r.stopx,A.y).style("stroke-dasharray","3, 3")});let x=wxe();x.text=i,x.x=r.startx,x.y=r.starty,x.fontFamily=m,x.fontSize=y,x.fontWeight=v,x.anchor="middle",x.valign="middle",x.tspan=!1,x.width=Math.max(p??0,50),x.height=d+(a.look==="neo"?15:0)||20,x.textMargin=h,x.class="labelText",jYr(w,x),x=QYr(),x.text=r.title,x.x=r.startx+p/2+(r.stopx-r.startx)/2,x.y=r.starty+l+h,x.anchor="middle",x.valign="middle",x.textMargin=h,x.class="loopText",x.fontFamily=m,x.fontSize=y,x.fontWeight=v,x.wrap=!0;let k=bf(x.text)?await Dke(w,x,r):WY(w,x);if(r.sectionTitles!==void 0){for(let[A,R]of Object.entries(r.sectionTitles))if(R.message){if(x.text=R.message,x.x=r.startx+(r.stopx-r.startx)/2,x.y=r.sections[A].y+l+h,x.class="sectionTitle",x.anchor="middle",x.valign="middle",x.tspan=!1,x.fontFamily=m,x.fontSize=y,x.fontWeight=v,x.wrap=r.wrap,bf(x.text))r.starty=r.sections[A].y,await Dke(w,x,r);else WY(w,x);let N=Math.round(k.map((L)=>(L._groups||L)[0][0].getBBox().height).reduce((L,B)=>L+B));r.sections[A].height+=N-(l+h)}}return r.height=Math.round(r.stopy-r.starty),w},"drawLoop"),XYr=I(function(e,r){vxe(e,r)},"drawBackgroundRect"),OEi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-database").attr("fill-rule","evenodd").attr("clip-rule","evenodd").append("path").attr("transform","scale(.5)").attr("d","M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z")},"insertDatabaseIcon"),NEi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-computer").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z")},"insertComputerIcon"),LEi=I(function(e,r){e.append("defs").append("symbol").attr("id",r+"-clock").attr("width","24").attr("height","24").append("path").attr("transform","scale(.5)").attr("d","M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z")},"insertClockIcon"),MEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-arrowhead").attr("refX",7.9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto-start-reverse").append("path").attr("d","M -1 0 L 10 5 L 0 10 z")},"insertArrowHead"),DEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-filled-head").attr("refX",15.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"insertArrowFilledHead"),PEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},"insertSequenceNumber"),BEi=I(function(e,r){e.append("defs").append("marker").attr("id",r+"-crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",4).attr("refY",4.5).append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1pt").attr("d","M 1,2 L 6,7 M 6,2 L 1,7")},"insertArrowCrossHead"),eM=I((e)=>e?`${e}-drop-shadow`:"drop-shadow","dropShadowId"),FEi=I(function(e,r,i){let{theme:a}=r;e.append("defs").append("filter").attr("id",eM(i)).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${a==="redux"||a==="redux-color"?"#000000":"#FFFFFF"}`)},"insertDropShadow"),QYr=I(function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},"getTextObj"),$Ei=I(function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),MI=function(){function e(l,h,d,p,m,y,v){let w=h.append("text").attr("x",d+m/2).attr("y",p+y/2+5).style("text-anchor","middle").text(l);o(w,v)}I(e,"byText");function r(l,h,d,p,m,y,v,w){let{actorFontSize:T,actorFontFamily:x,actorFontWeight:k}=w,[A,R]=W_(T),N=l.split(ai.lineBreakRegex);for(let L=0;Le.height||0))+(this.loops.length===0?0:this.loops.map((e)=>e.height||0).reduce((e,r)=>e+r))+(this.messages.length===0?0:this.messages.map((e)=>e.height||0).reduce((e,r)=>e+r))+(this.notes.length===0?0:this.notes.map((e)=>e.height||0).reduce((e,r)=>e+r))},"getHeight"),clear:I(function(){this.actors=[],this.boxes=[],this.loops=[],this.messages=[],this.notes=[]},"clear"),addBox:I(function(e){this.boxes.push(e)},"addBox"),addActor:I(function(e){this.actors.push(e)},"addActor"),addLoop:I(function(e){this.loops.push(e)},"addLoop"),addMessage:I(function(e){this.messages.push(e)},"addMessage"),addNote:I(function(e){this.notes.push(e)},"addNote"),lastActor:I(function(){return this.actors[this.actors.length-1]},"lastActor"),lastLoop:I(function(){return this.loops[this.loops.length-1]},"lastLoop"),lastMessage:I(function(){return this.messages[this.messages.length-1]},"lastMessage"),lastNote:I(function(){return this.notes[this.notes.length-1]},"lastNote"),actors:[],boxes:[],loops:[],messages:[],notes:[]},init:I(function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,eWr(Ar())},"init"),updateVal:I(function(e,r,i,a){if(e[r]===void 0)e[r]=i;else e[r]=a(i,e[r])},"updateVal"),updateBounds:I(function(e,r,i,a){let o=this,l=0;function h(d){return I(function(m){l++;let y=o.sequenceItems.length-l+1;if(o.updateVal(m,"starty",r-y*zr.boxMargin,Math.min),o.updateVal(m,"stopy",a+y*zr.boxMargin,Math.max),o.updateVal(_i.data,"startx",e-y*zr.boxMargin,Math.min),o.updateVal(_i.data,"stopx",i+y*zr.boxMargin,Math.max),d!=="activation")o.updateVal(m,"startx",e-y*zr.boxMargin,Math.min),o.updateVal(m,"stopx",i+y*zr.boxMargin,Math.max),o.updateVal(_i.data,"starty",r-y*zr.boxMargin,Math.min),o.updateVal(_i.data,"stopy",a+y*zr.boxMargin,Math.max)},"updateItemBounds")}I(h,"updateFn"),this.sequenceItems.forEach(h()),this.activations.forEach(h("activation"))},"updateBounds"),insert:I(function(e,r,i,a){let o=ai.getMin(e,i),l=ai.getMax(e,i),h=ai.getMin(r,a),d=ai.getMax(r,a);this.updateVal(_i.data,"startx",o,Math.min),this.updateVal(_i.data,"starty",h,Math.min),this.updateVal(_i.data,"stopx",l,Math.max),this.updateVal(_i.data,"stopy",d,Math.max),this.updateBounds(o,h,l,d)},"insert"),newActivation:I(function(e,r,i){let a=i.get(e.from),o=$ke(e.from).length||0,l=a.x+a.width/2+(o-1)*zr.activationWidth/2;this.activations.push({startx:l,starty:this.verticalPos+2,stopx:l+zr.activationWidth,stopy:void 0,actor:e.from,anchored:kd.anchorElement(r)})},"newActivation"),endActivation:I(function(e){let r=this.activations.map(function(i){return i.actor}).lastIndexOf(e.from);return this.activations.splice(r,1)[0]},"endActivation"),createLoop:I(function(e={message:void 0,wrap:!1,width:void 0},r){return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:r}},"createLoop"),newLoop:I(function(e={message:void 0,wrap:!1,width:void 0},r){this.sequenceItems.push(this.createLoop(e,r))},"newLoop"),endLoop:I(function(){return this.sequenceItems.pop()},"endLoop"),isLoopOverlap:I(function(){return this.sequenceItems.length?this.sequenceItems[this.sequenceItems.length-1].overlap:!1},"isLoopOverlap"),addSectionToLoop:I(function(e){let r=this.sequenceItems.pop();r.sections=r.sections||[],r.sectionTitles=r.sectionTitles||[],r.sections.push({y:_i.getVerticalPos(),height:0}),r.sectionTitles.push(e),this.sequenceItems.push(r)},"addSectionToLoop"),saveVerticalPos:I(function(){if(this.isLoopOverlap())this.savedVerticalPos=this.verticalPos},"saveVerticalPos"),resetVerticalPos:I(function(){if(this.isLoopOverlap())this.verticalPos=this.savedVerticalPos},"resetVerticalPos"),bumpVerticalPos:I(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=ai.getMax(this.data.stopy,this.verticalPos)},"bumpVerticalPos"),getVerticalPos:I(function(){return this.verticalPos},"getVerticalPos"),getBounds:I(function(){return{bounds:this.data,models:this.models}},"getBounds")},qEi=I(async function(e,r,i){_i.bumpVerticalPos(zr.boxMargin),r.height=zr.boxMargin,r.starty=_i.getVerticalPos();let a=o2();a.x=r.startx,a.y=r.starty,a.width=r.width||zr.width,a.class="note";let o=e.append("g");o.attr("data-et","note"),o.attr("data-id","i"+i);let l=kd.drawRect(o,a),h=wxe();h.x=r.startx,h.y=r.starty,h.width=a.width,h.dy="1em",h.text=r.message,h.class="noteText",h.fontFamily=zr.noteFontFamily,h.fontSize=zr.noteFontSize,h.fontWeight=zr.noteFontWeight,h.anchor=zr.noteAlign,h.textMargin=zr.noteMargin,h.valign="center";let d=bf(h.text)?await Dke(o,h):WY(o,h),p=Math.round(d.map((m)=>(m._groups||m)[0][0].getBBox().height).reduce((m,y)=>m+y));l.attr("height",p+2*zr.noteMargin),r.height+=p+2*zr.noteMargin,_i.bumpVerticalPos(p+2*zr.noteMargin),r.stopy=r.starty+p+2*zr.noteMargin,r.stopx=r.startx+a.width,_i.insert(r.startx,r.starty,r.stopx,r.stopy),_i.models.addNote(r)},"drawNote"),HYr=I(function(e,r,i,a,o,l,h){let d=a.db.getActors(),p=d.get(r.from),m=d.get(r.to),y=i.sequenceVisible,v=p.x+p.width/2,w=m.x+m.width/2,T=v<=w,x=iWr(r,a),k=e.append("g"),A=16.5,R=I((P,F)=>{let H=P?A:-A;return F?-H:H},"getCircleOffset"),N=I((P)=>{k.append("circle").attr("cx",P).attr("cy",h).attr("r",5).attr("width",10).attr("height",10)},"drawCircle"),{CENTRAL_CONNECTION:L,CENTRAL_CONNECTION_REVERSE:B,CENTRAL_CONNECTION_DUAL:D}=a.db.LINETYPE;if(y)switch(r.centralConnection){case L:if(x)w+=R(T,!0);break;case B:if(!x)v+=R(T,!1);break;case D:if(x)w+=R(T,!0);else v+=R(T,!1);break}switch(r.centralConnection){case L:N(w);break;case B:N(v);break;case D:N(v),N(w);break}},"drawCentralConnection"),TF=I((e)=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont"),YY=I((e)=>({fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}),"noteFont"),$ft=I((e)=>({fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}),"actorFont");I(ZYr,"boundMessage");YEi=I(async function(e,r,i,a,o,l){let{startx:h,stopx:d,starty:p,message:m,type:y,sequenceIndex:v,sequenceVisible:w}=r,T=Ts.calculateTextDimensions(m,TF(zr)),x=wxe();if(x.x=Math.min(h,d),x.y=p+10,x.width=Math.abs(d-h),x.class="messageText",x.dy="1em",x.text=m,x.fontFamily=zr.messageFontFamily,x.fontSize=zr.messageFontSize,x.fontWeight=zr.messageFontWeight,x.anchor=zr.messageAlign,x.valign="center",x.textMargin=zr.wrapPadding,x.tspan=!1,bf(x.text))await Dke(e,x,{startx:h,stopx:d,starty:i});else WY(e,x);let k=T.width,A;if(h===d){let N=w||zr.showSequenceNumbers,L=iWr(o,a),B=ewi(o,a),D=h+(N&&(L||B)?10:0);if(zr.rightAngles)A=e.append("path").attr("d",`M ${D},${i} H ${h+ai.getMax(zr.width/2,k/2)} V ${i+25} H ${h}`);else A=e.append("path").attr("d","M "+D+","+i+" C "+(D+60)+","+(i-10)+" "+(h+60)+","+(i+30)+" "+h+","+(i+20));if(Bft(o,a))HYr(e,o,r,a,h,d,i)}else if(A=e.append("line"),A.attr("x1",h),A.attr("y1",i),A.attr("x2",d),A.attr("y2",i),Bft(o,a))HYr(e,o,r,a,h,d,i);if(y===a.db.LINETYPE.DOTTED||y===a.db.LINETYPE.DOTTED_CROSS||y===a.db.LINETYPE.DOTTED_POINT||y===a.db.LINETYPE.DOTTED_OPEN||y===a.db.LINETYPE.BIDIRECTIONAL_DOTTED||y===a.db.LINETYPE.SOLID_TOP_DOTTED||y===a.db.LINETYPE.SOLID_BOTTOM_DOTTED||y===a.db.LINETYPE.STICK_TOP_DOTTED||y===a.db.LINETYPE.STICK_BOTTOM_DOTTED||y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)A.style("stroke-dasharray","3, 3"),A.attr("class","messageLine1");else A.attr("class","messageLine0");A.attr("data-et","message"),A.attr("data-id","i"+r.id),A.attr("data-from",r.from),A.attr("data-to",r.to);let R="";if(zr.arrowMarkerAbsolute)R=SXe(!0);if(A.attr("stroke-width",2),A.attr("stroke","none"),A.style("fill","none"),y===a.db.LINETYPE.SOLID_TOP||y===a.db.LINETYPE.SOLID_TOP_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-solidTopArrowHead)");if(y===a.db.LINETYPE.SOLID_BOTTOM||y===a.db.LINETYPE.SOLID_BOTTOM_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-solidBottomArrowHead)");if(y===a.db.LINETYPE.STICK_TOP||y===a.db.LINETYPE.STICK_TOP_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-stickTopArrowHead)");if(y===a.db.LINETYPE.STICK_BOTTOM||y===a.db.LINETYPE.STICK_BOTTOM_DOTTED)A.attr("marker-end","url("+R+"#"+l+"-stickBottomArrowHead)");if(y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-solidBottomArrowHead)");if(y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-solidTopArrowHead)");if(y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-stickBottomArrowHead)");if(y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-stickTopArrowHead)");if(y===a.db.LINETYPE.SOLID||y===a.db.LINETYPE.DOTTED)A.attr("marker-end","url("+R+"#"+l+"-arrowhead)");if(y===a.db.LINETYPE.BIDIRECTIONAL_SOLID||y===a.db.LINETYPE.BIDIRECTIONAL_DOTTED)A.attr("marker-start","url("+R+"#"+l+"-arrowhead)"),A.attr("marker-end","url("+R+"#"+l+"-arrowhead)");if(y===a.db.LINETYPE.SOLID_POINT||y===a.db.LINETYPE.DOTTED_POINT)A.attr("marker-end","url("+R+"#"+l+"-filled-head)");if(y===a.db.LINETYPE.SOLID_CROSS||y===a.db.LINETYPE.DOTTED_CROSS)A.attr("marker-end","url("+R+"#"+l+"-crosshead)");if(w||zr.showSequenceNumbers){let N=y===a.db.LINETYPE.BIDIRECTIONAL_SOLID||y===a.db.LINETYPE.BIDIRECTIONAL_DOTTED,L=y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE||y===a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE||y===a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,B=6,D=Bft(o,a),P=h,F=d;if(N){if(hh)F=d-12;else F=d-6,P+=o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_DUAL||o?.centralConnection===a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE?-7.5:0;F+=D?15:0,A.attr("x2",F),A.attr("x1",P)}else A.attr("x1",h+6);let H=0,W=h===d,X=h<=d;if(W)H=r.fromBounds+1;else if(L)H=X?r.toBounds-1:r.fromBounds+1;else H=X?r.fromBounds+1:r.toBounds-1;let Q="12px",Y=v.toString().length;if(Y>5)Q="7px";else if(Y>3)Q="9px";e.append("line").attr("x1",H).attr("y1",i).attr("x2",H).attr("y2",i).attr("stroke-width",0).attr("marker-start","url("+R+"#"+l+"-sequencenumber)"),e.append("text").attr("x",H).attr("y",i+4).attr("font-family","sans-serif").attr("font-size",Q).attr("text-anchor","middle").attr("class","sequenceNumber").text(v)}},"drawMessage"),WEi=I(function(e,r,i,a,o,l,h){let d=0,p=0,m=void 0,y=0;for(let v of a){let w=r.get(v),T=w.box;if(m&&m!=T){if(!h)_i.models.addBox(m);p+=zr.boxMargin+m.margin}if(T&&T!=m){if(!h)T.x=d+p,T.y=o;p+=T.margin}if(w.width=ai.getMax(w.width||zr.width,zr.width),w.height=ai.getMax(w.height||zr.height,zr.height),w.margin=w.margin||zr.actorMargin,y=ai.getMax(y,w.height),i.get(w.name))p+=w.width/2;if(w.x=d+p,w.starty=_i.getVerticalPos(),_i.insert(w.x,o,w.x+w.width,w.height),d+=w.width+p,w.box)w.box.width=d+T.margin-w.box.x;p=w.margin,m=w.box,_i.models.addActor(w)}if(m&&!h)_i.models.addBox(m);_i.bumpVerticalPos(y)},"addActorRenderingData"),Uft=I(async function(e,r,i,a,o,l,h){if(!a)for(let d of i){let p=r.get(d);await kd.drawActor(e,p,zr,!1,o,l,h)}else{let d=0;_i.bumpVerticalPos(zr.boxMargin*2);for(let p of i){let m=r.get(p);if(!m.stopy)m.stopy=_i.getVerticalPos();let y=await kd.drawActor(e,m,zr,!0,o,l,h);d=ai.getMax(d,y)}_i.bumpVerticalPos(d+zr.boxMargin)}},"drawActors"),JYr=I(function(e,r,i,a){let o=0,l=0;for(let h of i){let d=r.get(h),p=KEi(d),m=kd.drawPopup(e,d,p,zr,zr.forceMenus,a);if(m.height>o)o=m.height;if(m.width+d.x>l)l=m.width+d.x}return{maxHeight:o,maxWidth:l}},"drawActorsPopup"),eWr=I(function(e){if(Sd(zr,e),e.fontFamily)zr.actorFontFamily=zr.noteFontFamily=zr.messageFontFamily=e.fontFamily;if(e.fontSize)zr.actorFontSize=zr.noteFontSize=zr.messageFontSize=e.fontSize;if(e.fontWeight)zr.actorFontWeight=zr.noteFontWeight=zr.messageFontWeight=e.fontWeight},"setConf"),$ke=I(function(e){return _i.activations.filter(function(r){return r.actor===e})},"actorActivations"),qYr=I(function(e,r){let i=r.get(e),a=$ke(e),o=a.reduce(function(h,d){return ai.getMin(h,d.startx)},i.x+i.width/2-1),l=a.reduce(function(h,d){return ai.getMax(h,d.stopx)},i.x+i.width/2+1);return[o,l]},"activationBounds");I(HC,"adjustLoopHeightForWrap");I(tWr,"adjustCreatedDestroyedData");jEi=I(async function(e,r,i,a){let{securityLevel:o,sequence:l,look:h,themeVariables:d}=Ar();zr=l;let p;if(o==="sandbox")p=xn("#i"+r);let m=o==="sandbox"?xn(p.nodes()[0].contentDocument.body):xn("body"),y=o==="sandbox"?p.nodes()[0].contentDocument:document;_i.init(),Ze.debug(a.db);let v=o==="sandbox"?m.select(`[id="${r}"]`):xn(`[id="${r}"]`),w=a.db.getActors(),T=a.db.getCreatedActors(),x=a.db.getDestroyedActors(),k=a.db.getBoxes(),A=a.db.getActorKeys(),R=a.db.getMessages(),N=a.db.getDiagramTitle(),L=a.db.hasAtLeastOneBox(),B=a.db.hasAtLeastOneBoxWithTitle(),D=await rWr(w,R,a);if(zr.height=await nWr(w,D,k),kd.insertComputerIcon(v,r),kd.insertDatabaseIcon(v,r),kd.insertClockIcon(v,r),L){if(_i.bumpVerticalPos(zr.boxMargin),B)_i.bumpVerticalPos(k[0].textMaxHeight)}if(zr.hideUnusedParticipants===!0){let oe=new Set;R.forEach((he)=>{oe.add(he.from),oe.add(he.to)}),A=A.filter((he)=>oe.has(he))}let P=new Map(A.map((oe,he)=>[w.get(oe)?.name??oe,he]));WEi(v,w,T,A,0,R,!1);let F=await rwi(R,w,D,a);if(kd.insertArrowHead(v,r),kd.insertArrowCrossHead(v,r),kd.insertArrowFilledHead(v,r),kd.insertSequenceNumber(v,r),kd.insertSolidTopArrowHead(v,r),kd.insertSolidBottomArrowHead(v,r),kd.insertStickTopArrowHead(v,r),kd.insertStickBottomArrowHead(v,r),h==="neo")kd.insertDropShadow(v,zr,r);function H(oe,he){let ye=_i.endActivation(oe);if(ye.starty+18>he)ye.starty=he-6,he+=12;kd.drawActivation(v,ye,he,zr,$ke(oe.from).length,a,P),_i.insert(ye.startx,he-10,ye.stopx,he)}I(H,"activeEnd");let W=1,X=1,Q=[],Y=[],K=0;for(let oe of R){let he,ye,Se;switch(oe.type){case a.db.LINETYPE.NOTE:_i.resetVerticalPos(),ye=oe.noteModel,await qEi(v,ye,oe.id);break;case a.db.LINETYPE.ACTIVE_START:_i.newActivation(oe,v,w);break;case a.db.LINETYPE.CENTRAL_CONNECTION:_i.newActivation(oe,v,w);break;case a.db.LINETYPE.CENTRAL_CONNECTION_REVERSE:_i.newActivation(oe,v,w);break;case a.db.LINETYPE.ACTIVE_END:H(oe,_i.getVerticalPos());break;case a.db.LINETYPE.LOOP_START:HC(F,oe,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.LOOP_END:he=_i.endLoop(),await kd.drawLoop(v,he,"loop",zr,oe),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.RECT_START:HC(F,oe,zr.boxMargin,zr.boxMargin,(Ie)=>{let Ee=Ie.message;if(!Ee)Ee=d?.rectBkgColor||d?.actorBkg||"rgba(128, 128, 128, 0.5)";_i.newLoop(void 0,Ee)});break;case a.db.LINETYPE.RECT_END:he=_i.endLoop(),Y.push(he),_i.models.addLoop(he),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos());break;case a.db.LINETYPE.OPT_START:HC(F,oe,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.OPT_END:he=_i.endLoop(),await kd.drawLoop(v,he,"opt",zr,oe),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.ALT_START:HC(F,oe,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.ALT_ELSE:HC(F,oe,zr.boxMargin+zr.boxTextMargin,zr.boxMargin,(Ie)=>_i.addSectionToLoop(Ie));break;case a.db.LINETYPE.ALT_END:he=_i.endLoop(),await kd.drawLoop(v,he,"alt",zr,oe),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:HC(F,oe,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie)),_i.saveVerticalPos();break;case a.db.LINETYPE.PAR_AND:HC(F,oe,zr.boxMargin+zr.boxTextMargin,zr.boxMargin,(Ie)=>_i.addSectionToLoop(Ie));break;case a.db.LINETYPE.PAR_END:he=_i.endLoop(),await kd.drawLoop(v,he,"par",zr,oe),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.AUTONUMBER:if(W=oe.message.start||W,X=oe.message.step||X,oe.message.visible)a.db.enableSequenceNumbers();else a.db.disableSequenceNumbers();break;case a.db.LINETYPE.CRITICAL_START:HC(F,oe,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.CRITICAL_OPTION:HC(F,oe,zr.boxMargin+zr.boxTextMargin,zr.boxMargin,(Ie)=>_i.addSectionToLoop(Ie));break;case a.db.LINETYPE.CRITICAL_END:he=_i.endLoop(),await kd.drawLoop(v,he,"critical",zr,oe),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;case a.db.LINETYPE.BREAK_START:HC(F,oe,zr.boxMargin,zr.boxMargin+zr.boxTextMargin,(Ie)=>_i.newLoop(Ie));break;case a.db.LINETYPE.BREAK_END:he=_i.endLoop(),await kd.drawLoop(v,he,"break",zr,oe),_i.bumpVerticalPos(he.stopy-_i.getVerticalPos()),_i.models.addLoop(he);break;default:try{Se=oe.msgModel,Se.starty=_i.getVerticalPos(),Se.sequenceIndex=W,Se.sequenceVisible=a.db.showSequenceNumbers(),Se.id=oe.id,Se.from=oe.from,Se.to=oe.to;let Ie=await ZYr(v,Se);tWr(oe,Se,Ie,K,w,T,x),Q.push({messageModel:Se,lineStartY:Ie,msg:oe}),_i.models.addMessage(Se)}catch(Ie){Ze.error("error while drawing message",Ie)}}if([a.db.LINETYPE.SOLID_OPEN,a.db.LINETYPE.DOTTED_OPEN,a.db.LINETYPE.SOLID,a.db.LINETYPE.SOLID_TOP,a.db.LINETYPE.SOLID_BOTTOM,a.db.LINETYPE.STICK_TOP,a.db.LINETYPE.STICK_BOTTOM,a.db.LINETYPE.SOLID_TOP_DOTTED,a.db.LINETYPE.SOLID_BOTTOM_DOTTED,a.db.LINETYPE.STICK_TOP_DOTTED,a.db.LINETYPE.STICK_BOTTOM_DOTTED,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,a.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,a.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,a.db.LINETYPE.DOTTED,a.db.LINETYPE.SOLID_CROSS,a.db.LINETYPE.DOTTED_CROSS,a.db.LINETYPE.SOLID_POINT,a.db.LINETYPE.DOTTED_POINT,a.db.LINETYPE.BIDIRECTIONAL_SOLID,a.db.LINETYPE.BIDIRECTIONAL_DOTTED].includes(oe.type))W=Math.round((W+X)*100)/100;K++}Ze.debug("createdActors",T),Ze.debug("destroyedActors",x),await Uft(v,w,A,!1,r,a,P);for(let oe of Q)await YEi(v,oe.messageModel,oe.lineStartY,a,oe.msg,r);if(zr.mirrorActors)await Uft(v,w,A,!0,r,a,P);Y.forEach((oe)=>kd.drawBackgroundRect(v,oe)),KYr(v,w,A,zr);for(let oe of _i.models.boxes){oe.height=_i.getVerticalPos()-oe.y,_i.insert(oe.x,oe.y,oe.x+oe.width,oe.height);let he=zr.boxMargin*2;oe.startx=oe.x-he,oe.starty=oe.y-he*0.25,oe.stopx=oe.startx+oe.width+2*he,oe.stopy=oe.starty+oe.height+he*0.75,oe.stroke="rgb(0,0,0, 0.5)",kd.drawBox(v,oe,zr)}if(L)_i.bumpVerticalPos(zr.boxMargin);let J=JYr(v,w,A,y),{bounds:Z}=_i.getBounds();if(Z.startx===void 0)Z.startx=0;if(Z.starty===void 0)Z.starty=0;if(Z.stopx===void 0)Z.stopx=0;if(Z.stopy===void 0)Z.stopy=0;let j=Z.stopy-Z.starty;if(j2,w=I((A)=>p?-A:A,"adjustValue");if(e.from===e.to)y=m;else{if(e.activate&&!v)y+=w(zr.activationWidth/2-1);if(![i.db.LINETYPE.SOLID_OPEN,i.db.LINETYPE.DOTTED_OPEN,i.db.LINETYPE.STICK_TOP,i.db.LINETYPE.STICK_BOTTOM,i.db.LINETYPE.STICK_TOP_DOTTED,i.db.LINETYPE.STICK_BOTTOM_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE,i.db.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type))y+=w(3);if([i.db.LINETYPE.BIDIRECTIONAL_SOLID,i.db.LINETYPE.BIDIRECTIONAL_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED,i.db.LINETYPE.SOLID_ARROW_TOP_REVERSE,i.db.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE].includes(e.type))m-=w(3)}let T=[o,l,h,d],x=Math.abs(m-y);if(e.wrap&&e.message)e.message=Ts.wrapLabel(e.message,ai.getMax(x+2*zr.wrapPadding,zr.width),TF(zr));let k=Ts.calculateTextDimensions(e.message,TF(zr));return{width:ai.getMax(e.wrap?0:k.width+2*zr.wrapPadding,x+2*zr.wrapPadding,zr.width),height:0,startx:m,stopx:y,starty:0,stopy:0,message:e.message,type:e.type,wrap:e.wrap,fromBounds:Math.min.apply(null,T),toBounds:Math.max.apply(null,T)}},"buildMessageModel"),rwi=I(async function(e,r,i,a){let o={},l=[],h,d,p;for(let m of e){switch(m.type){case a.db.LINETYPE.LOOP_START:case a.db.LINETYPE.ALT_START:case a.db.LINETYPE.OPT_START:case a.db.LINETYPE.PAR_START:case a.db.LINETYPE.PAR_OVER_START:case a.db.LINETYPE.CRITICAL_START:case a.db.LINETYPE.BREAK_START:l.push({id:m.id,msg:m.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case a.db.LINETYPE.ALT_ELSE:case a.db.LINETYPE.PAR_AND:case a.db.LINETYPE.CRITICAL_OPTION:if(m.message)h=l.pop(),o[h.id]=h,o[m.id]=h,l.push(h);break;case a.db.LINETYPE.LOOP_END:case a.db.LINETYPE.ALT_END:case a.db.LINETYPE.OPT_END:case a.db.LINETYPE.PAR_END:case a.db.LINETYPE.CRITICAL_END:case a.db.LINETYPE.BREAK_END:h=l.pop(),o[h.id]=h;break;case a.db.LINETYPE.ACTIVE_START:{let v=r.get(m.from?m.from:m.to.actor),w=$ke(m.from?m.from:m.to.actor).length,T=v.x+v.width/2+(w-1)*zr.activationWidth/2,x={startx:T,stopx:T+zr.activationWidth,actor:m.from,enabled:!0};_i.activations.push(x)}break;case a.db.LINETYPE.ACTIVE_END:{let v=_i.activations.map((w)=>w.actor).lastIndexOf(m.from);_i.activations.splice(v,1).splice(0,1)}break}if(m.placement!==void 0)d=await XEi(m,r,a),m.noteModel=d,l.forEach((v)=>{h=v,h.from=ai.getMin(h.from,d.startx),h.to=ai.getMax(h.to,d.startx+d.width),h.width=ai.getMax(h.width,Math.abs(h.from-h.to))-zr.labelBoxWidth});else if(p=twi(m,r,a),m.msgModel=p,p.startx&&p.stopx&&l.length>0)l.forEach((v)=>{if(h=v,p.startx===p.stopx){let w=r.get(m.from),T=r.get(m.to);h.from=ai.getMin(w.x-p.width/2,w.x-w.width/2,h.from),h.to=ai.getMax(T.x+p.width/2,T.x+w.width/2,h.to),h.width=ai.getMax(h.width,Math.abs(h.to-h.from))-zr.labelBoxWidth}else h.from=ai.getMin(p.startx,h.from),h.to=ai.getMax(p.stopx,h.to),h.width=ai.getMax(h.width,p.width)-zr.labelBoxWidth})}return _i.activations=[],Ze.debug("Loop type widths:",o),o},"calculateLoopBounds"),nwi={bounds:_i,drawActors:Uft,drawActorsPopup:JYr,setConf:eWr,draw:jEi},aWr={parser:sEi,get db(){return new uEi},renderer:nwi,styles:dEi,init:I((e)=>{if(!e.sequence)e.sequence={};if(e.wrap)e.sequence.wrap=e.wrap,NR({sequence:{wrap:e.wrap}})},"init")}});var Vft,iwi,oWr,lWr,Uke="classId-",cWr=0,xF,awi,swi,owi,lwi,cwi,uwi,hwi,dwi,uWr;var hWr=Re(()=>{uI();PC();pT();cT();WE();V3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();SP();Vft=function(){var e=I(function(De,le,pe,fe){for(pe=pe||{},fe=De.length;fe--;pe[De[fe]]=le);return pe},"o"),r=[1,18],i=[1,19],a=[1,20],o=[1,41],l=[1,26],h=[1,42],d=[1,24],p=[1,25],m=[1,32],y=[1,33],v=[1,34],w=[1,45],T=[1,35],x=[1,36],k=[1,37],A=[1,38],R=[1,27],N=[1,28],L=[1,29],B=[1,30],D=[1,31],P=[1,44],F=[1,46],H=[1,43],W=[1,47],X=[1,9],Q=[1,8,9],Y=[1,58],K=[1,59],J=[1,60],Z=[1,61],j=[1,62],ee=[1,63],z=[1,64],ne=[1,8,9,41],ie=[1,77],se=[1,8,9,12,13,22,39,41,44,46,68,69,70,71,72,73,74,79,81],oe=[1,8,9,12,13,18,20,22,39,41,44,46,47,60,68,69,70,71,72,73,74,79,81,86,100,102,103],he=[13,60,86,100,102,103],ye=[13,60,73,74,86,100,102,103],Se=[13,60,68,69,70,71,72,86,100,102,103],Ie=[1,103],Ee=[1,121],ze=[1,117],Me=[1,113],Xe=[1,119],Ye=[1,114],Qe=[1,115],xt=[1,116],dt=[1,118],zt=[1,120],Kt=[22,50,60,61,82,86,87,88,89,90],rr=[1,128],je=[12,39],Nt=[1,8,9,39,41,44,46],ct=[1,8,9,22],bt=[1,153],Pe=[1,8,9,61],Ue=[1,8,9,22,50,60,61,82,86,87,88,89,90],qe={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,ANNOTATION_START:46,ANNOTATION_END:47,CLASS:48,emptyBody:49,SPACE:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"CLASS",50:"SPACE",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[38,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[24,4],[24,7],[24,6],[43,2],[43,3],[49,0],[49,2],[49,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:I(function(le,pe,fe,be,Ge,ke,we){var Ae=ke.length-1;switch(Ge){case 8:this.$=ke[Ae-1];break;case 9:case 10:case 13:case 15:this.$=ke[Ae];break;case 11:case 14:this.$=ke[Ae-2]+"."+ke[Ae];break;case 12:case 16:this.$=ke[Ae-1]+ke[Ae];break;case 17:case 18:this.$=ke[Ae-1]+"~"+ke[Ae]+"~";break;case 19:be.addRelation(ke[Ae]);break;case 20:ke[Ae-1].title=be.cleanupLabel(ke[Ae]),be.addRelation(ke[Ae-1]);break;case 31:this.$=ke[Ae].trim(),be.setAccTitle(this.$);break;case 32:case 33:this.$=ke[Ae].trim(),be.setAccDescription(this.$);break;case 34:be.addClassesToNamespace(ke[Ae-3],ke[Ae-1][0],ke[Ae-1][1]),be.popNamespace();break;case 35:be.addClassesToNamespace(ke[Ae-4],ke[Ae-1][0],ke[Ae-1][1]),be.popNamespace();break;case 36:this.$=be.addNamespace(ke[Ae]);break;case 37:this.$=be.addNamespace(ke[Ae-1],ke[Ae]);break;case 38:this.$=[[ke[Ae]],[]];break;case 39:this.$=[[ke[Ae-1]],[]];break;case 40:ke[Ae][0].unshift(ke[Ae-2]),this.$=ke[Ae];break;case 41:this.$=[[],[ke[Ae]]];break;case 42:this.$=[[],[ke[Ae-1]]];break;case 43:ke[Ae][1].unshift(ke[Ae-2]),this.$=ke[Ae];break;case 44:case 45:this.$=[[],[]];break;case 46:this.$=ke[Ae];break;case 48:be.setCssClass(ke[Ae-2],ke[Ae]);break;case 49:be.addMembers(ke[Ae-3],ke[Ae-1]);break;case 51:be.setCssClass(ke[Ae-5],ke[Ae-3]),be.addMembers(ke[Ae-5],ke[Ae-1]);break;case 52:be.addAnnotation(ke[Ae-3],ke[Ae-1]);break;case 53:be.addAnnotation(ke[Ae-6],ke[Ae-4]),be.addMembers(ke[Ae-6],ke[Ae-1]);break;case 54:be.addAnnotation(ke[Ae-5],ke[Ae-3]);break;case 55:this.$=ke[Ae],be.addClass(ke[Ae]);break;case 56:this.$=ke[Ae-1],be.addClass(ke[Ae-1]),be.setClassLabel(ke[Ae-1],ke[Ae]);break;case 60:be.addAnnotation(ke[Ae],ke[Ae-2]);break;case 61:case 74:this.$=[ke[Ae]];break;case 62:ke[Ae].push(ke[Ae-1]),this.$=ke[Ae];break;case 63:break;case 64:be.addMember(ke[Ae-1],be.cleanupLabel(ke[Ae]));break;case 65:break;case 66:break;case 67:this.$={id1:ke[Ae-2],id2:ke[Ae],relation:ke[Ae-1],relationTitle1:"none",relationTitle2:"none"};break;case 68:this.$={id1:ke[Ae-3],id2:ke[Ae],relation:ke[Ae-1],relationTitle1:ke[Ae-2],relationTitle2:"none"};break;case 69:this.$={id1:ke[Ae-3],id2:ke[Ae],relation:ke[Ae-2],relationTitle1:"none",relationTitle2:ke[Ae-1]};break;case 70:this.$={id1:ke[Ae-4],id2:ke[Ae],relation:ke[Ae-2],relationTitle1:ke[Ae-3],relationTitle2:ke[Ae-1]};break;case 71:this.$=be.addNote(ke[Ae],ke[Ae-1]);break;case 72:this.$=be.addNote(ke[Ae]);break;case 73:this.$=ke[Ae-2],be.defineClass(ke[Ae-1],ke[Ae]);break;case 75:this.$=ke[Ae-2].concat([ke[Ae]]);break;case 76:be.setDirection("TB");break;case 77:be.setDirection("BT");break;case 78:be.setDirection("RL");break;case 79:be.setDirection("LR");break;case 80:this.$={type1:ke[Ae-2],type2:ke[Ae],lineType:ke[Ae-1]};break;case 81:this.$={type1:"none",type2:ke[Ae],lineType:ke[Ae-1]};break;case 82:this.$={type1:ke[Ae-1],type2:"none",lineType:ke[Ae]};break;case 83:this.$={type1:"none",type2:"none",lineType:ke[Ae]};break;case 84:this.$=be.relationType.AGGREGATION;break;case 85:this.$=be.relationType.EXTENSION;break;case 86:this.$=be.relationType.COMPOSITION;break;case 87:this.$=be.relationType.DEPENDENCY;break;case 88:this.$=be.relationType.LOLLIPOP;break;case 89:this.$=be.lineType.LINE;break;case 90:this.$=be.lineType.DOTTED_LINE;break;case 91:case 97:this.$=ke[Ae-2],be.setClickEvent(ke[Ae-1],ke[Ae]);break;case 92:case 98:this.$=ke[Ae-3],be.setClickEvent(ke[Ae-2],ke[Ae-1]),be.setTooltip(ke[Ae-2],ke[Ae]);break;case 93:this.$=ke[Ae-2],be.setLink(ke[Ae-1],ke[Ae]);break;case 94:this.$=ke[Ae-3],be.setLink(ke[Ae-2],ke[Ae-1],ke[Ae]);break;case 95:this.$=ke[Ae-3],be.setLink(ke[Ae-2],ke[Ae-1]),be.setTooltip(ke[Ae-2],ke[Ae]);break;case 96:this.$=ke[Ae-4],be.setLink(ke[Ae-3],ke[Ae-2],ke[Ae]),be.setTooltip(ke[Ae-3],ke[Ae-1]);break;case 99:this.$=ke[Ae-3],be.setClickEvent(ke[Ae-2],ke[Ae-1],ke[Ae]);break;case 100:this.$=ke[Ae-4],be.setClickEvent(ke[Ae-3],ke[Ae-2],ke[Ae-1]),be.setTooltip(ke[Ae-3],ke[Ae]);break;case 101:this.$=ke[Ae-3],be.setLink(ke[Ae-2],ke[Ae]);break;case 102:this.$=ke[Ae-4],be.setLink(ke[Ae-3],ke[Ae-1],ke[Ae]);break;case 103:this.$=ke[Ae-4],be.setLink(ke[Ae-3],ke[Ae-1]),be.setTooltip(ke[Ae-3],ke[Ae]);break;case 104:this.$=ke[Ae-5],be.setLink(ke[Ae-4],ke[Ae-2],ke[Ae]),be.setTooltip(ke[Ae-4],ke[Ae-1]);break;case 105:this.$=ke[Ae-2],be.setCssStyle(ke[Ae-1],ke[Ae]);break;case 106:be.setCssClass(ke[Ae-1],ke[Ae]);break;case 107:this.$=[ke[Ae]];break;case 108:ke[Ae-2].push(ke[Ae]),this.$=ke[Ae-2];break;case 110:this.$=ke[Ae-1]+ke[Ae];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:i,37:a,38:22,42:o,43:23,46:l,48:h,51:d,52:p,54:m,56:y,57:v,60:w,62:T,63:x,64:k,65:A,75:R,76:N,78:L,82:B,83:D,86:P,100:F,102:H,103:W},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(X,[2,5],{8:[1,48]}),{8:[1,49]},e(Q,[2,19],{22:[1,50]}),e(Q,[2,21]),e(Q,[2,22]),e(Q,[2,23]),e(Q,[2,24]),e(Q,[2,25]),e(Q,[2,26]),e(Q,[2,27]),e(Q,[2,28]),e(Q,[2,29]),e(Q,[2,30]),{34:[1,51]},{36:[1,52]},e(Q,[2,33]),e(Q,[2,63],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:Y,69:K,70:J,71:Z,72:j,73:ee,74:z}),{39:[1,65]},e(ne,[2,47],{39:[1,67],44:[1,66],46:[1,68]}),e(Q,[2,65]),e(Q,[2,66]),{16:69,60:w,86:P,100:F,102:H},{16:39,17:40,19:70,60:w,86:P,100:F,102:H,103:W},{16:39,17:40,19:71,60:w,86:P,100:F,102:H,103:W},{16:39,17:40,19:72,60:w,86:P,100:F,102:H,103:W},{60:[1,73]},{13:[1,74]},{16:39,17:40,19:75,60:w,86:P,100:F,102:H,103:W},{13:ie,55:76},{58:78,60:[1,79]},e(Q,[2,76]),e(Q,[2,77]),e(Q,[2,78]),e(Q,[2,79]),e(se,[2,13],{16:39,17:40,19:81,18:[1,80],20:[1,82],60:w,86:P,100:F,102:H,103:W}),e(se,[2,15],{20:[1,83]}),{15:84,16:85,17:86,60:w,86:P,100:F,102:H,103:W},{16:39,17:40,19:87,60:w,86:P,100:F,102:H,103:W},e(oe,[2,133]),e(oe,[2,134]),e(oe,[2,135]),e(oe,[2,136]),e([1,8,9,12,13,20,22,39,41,44,46,68,69,70,71,72,73,74,79,81],[2,137]),e(X,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:88,33:r,35:i,37:a,42:o,46:l,48:h,51:d,52:p,54:m,56:y,57:v,60:w,62:T,63:x,64:k,65:A,75:R,76:N,78:L,82:B,83:D,86:P,100:F,102:H,103:W}),{5:89,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:r,35:i,37:a,38:22,42:o,43:23,46:l,48:h,51:d,52:p,54:m,56:y,57:v,60:w,62:T,63:x,64:k,65:A,75:R,76:N,78:L,82:B,83:D,86:P,100:F,102:H,103:W},e(Q,[2,20]),e(Q,[2,31]),e(Q,[2,32]),{13:[1,91],16:39,17:40,19:90,60:w,86:P,100:F,102:H,103:W},{53:92,66:56,67:57,68:Y,69:K,70:J,71:Z,72:j,73:ee,74:z},e(Q,[2,64]),{67:93,73:ee,74:z},e(he,[2,83],{66:94,68:Y,69:K,70:J,71:Z,72:j}),e(ye,[2,84]),e(ye,[2,85]),e(ye,[2,86]),e(ye,[2,87]),e(ye,[2,88]),e(Se,[2,89]),e(Se,[2,90]),{8:[1,96],23:99,24:97,30:98,38:22,40:95,42:o,43:23,48:h,54:m,56:y},{16:100,60:w,86:P,100:F,102:H},{41:[1,102],45:101,51:Ie},{16:104,60:w,86:P,100:F,102:H},{47:[1,105]},{13:[1,106]},{13:[1,107]},{79:[1,108],81:[1,109]},{22:Ee,50:ze,59:110,60:Me,82:Xe,84:111,85:112,86:Ye,87:Qe,88:xt,89:dt,90:zt},{60:[1,122]},{13:ie,55:123},e(ne,[2,72]),e(ne,[2,138]),{22:Ee,50:ze,59:124,60:Me,61:[1,125],82:Xe,84:111,85:112,86:Ye,87:Qe,88:xt,89:dt,90:zt},e(Kt,[2,74]),{16:39,17:40,19:126,60:w,86:P,100:F,102:H,103:W},e(se,[2,16]),e(se,[2,17]),e(se,[2,18]),{11:127,12:rr,39:[2,36]},e(je,[2,9],{16:85,17:86,15:130,18:[1,129],60:w,86:P,100:F,102:H,103:W}),e(je,[2,10]),e(Nt,[2,55],{11:131,12:rr}),e(X,[2,7]),{9:[1,132]},e(ct,[2,67]),{16:39,17:40,19:133,60:w,86:P,100:F,102:H,103:W},{13:[1,135],16:39,17:40,19:134,60:w,86:P,100:F,102:H,103:W},e(he,[2,82],{66:136,68:Y,69:K,70:J,71:Z,72:j}),e(he,[2,81]),{41:[1,137]},{23:99,24:97,30:98,38:22,40:138,42:o,43:23,48:h,54:m,56:y},{8:[1,139],41:[2,38]},{8:[1,140],41:[2,41]},{8:[1,141],41:[2,44]},e(ne,[2,48],{39:[1,142]}),{41:[1,143]},e(ne,[2,50]),{41:[2,61],45:144,51:Ie},{47:[1,145]},{16:39,17:40,19:146,60:w,86:P,100:F,102:H,103:W},e(Q,[2,91],{13:[1,147]}),e(Q,[2,93],{13:[1,149],77:[1,148]}),e(Q,[2,97],{13:[1,150],80:[1,151]}),{13:[1,152]},e(Q,[2,105],{61:bt}),e(Pe,[2,107],{85:154,22:Ee,50:ze,60:Me,82:Xe,86:Ye,87:Qe,88:xt,89:dt,90:zt}),e(Ue,[2,109]),e(Ue,[2,111]),e(Ue,[2,112]),e(Ue,[2,113]),e(Ue,[2,114]),e(Ue,[2,115]),e(Ue,[2,116]),e(Ue,[2,117]),e(Ue,[2,118]),e(Ue,[2,119]),e(Q,[2,106]),e(ne,[2,71]),e(Q,[2,73],{61:bt}),{60:[1,155]},e(se,[2,14]),{39:[2,37]},{13:[1,156]},{15:157,16:85,17:86,60:w,86:P,100:F,102:H,103:W},e(je,[2,12]),e(Nt,[2,56]),{1:[2,4]},e(ct,[2,69]),e(ct,[2,68]),{16:39,17:40,19:158,60:w,86:P,100:F,102:H,103:W},e(he,[2,80]),e(ne,[2,34]),{41:[1,159]},{23:99,24:97,30:98,38:22,40:160,41:[2,39],42:o,43:23,48:h,54:m,56:y},{23:99,24:97,30:98,38:22,40:161,41:[2,42],42:o,43:23,48:h,54:m,56:y},{23:99,24:97,30:98,38:22,40:162,41:[2,45],42:o,43:23,48:h,54:m,56:y},{45:163,51:Ie},e(ne,[2,49]),{41:[2,62]},e(ne,[2,52],{39:[1,164]}),e(Q,[2,60]),e(Q,[2,92]),e(Q,[2,94]),e(Q,[2,95],{77:[1,165]}),e(Q,[2,98]),e(Q,[2,99],{13:[1,166]}),e(Q,[2,101],{13:[1,168],77:[1,167]}),{22:Ee,50:ze,60:Me,82:Xe,84:169,85:112,86:Ye,87:Qe,88:xt,89:dt,90:zt},e(Ue,[2,110]),e(Kt,[2,75]),{14:[1,170]},e(je,[2,11]),e(ct,[2,70]),e(ne,[2,35]),{41:[2,40]},{41:[2,43]},{41:[2,46]},{41:[1,171]},{41:[1,173],45:172,51:Ie},e(Q,[2,96]),e(Q,[2,100]),e(Q,[2,102]),e(Q,[2,103],{77:[1,174]}),e(Pe,[2,108],{85:154,22:Ee,50:ze,60:Me,82:Xe,86:Ye,87:Qe,88:xt,89:dt,90:zt}),e(Nt,[2,8]),e(ne,[2,51]),{41:[1,175]},e(ne,[2,54]),e(Q,[2,104]),e(ne,[2,53])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],127:[2,37],132:[2,4],144:[2,62],160:[2,40],161:[2,43],162:[2,46]},parseError:I(function(le,pe){if(pe.recoverable)this.trace(le);else{var fe=Error(le);throw fe.hash=pe,fe}},"parseError"),parse:I(function(le){var pe=this,fe=[0],be=[],Ge=[null],ke=[],we=this.table,Ae="",at=0,ut=0,gt=0,vt=2,ir=1,qt=ke.slice.call(arguments,1),cr=Object.create(this.lexer),tr={yy:{}};for(var Zt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Zt))tr.yy[Zt]=this.yy[Zt];if(cr.setInput(le,tr.yy),tr.yy.lexer=cr,tr.yy.parser=this,typeof cr.yylloc>"u")cr.yylloc={};var lr=cr.yylloc;ke.push(lr);var Xt=cr.options&&cr.options.ranges;if(typeof tr.yy.parseError==="function")this.parseError=tr.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function In(Fn){fe.length=fe.length-2*Fn,Ge.length=Ge.length-Fn,ke.length=ke.length-Fn}I(In,"popStack");function Et(){var Fn=be.pop()||cr.lex()||ir;if(typeof Fn!=="number"){if(Fn instanceof Array)be=Fn,Fn=be.pop();Fn=pe.symbols_[Fn]||Fn}return Fn}I(Et,"lex");var Xn,Yt,Bn,si,dn,Ii,Vn={},Ei,vn,Li,Ia;while(!0){if(Bn=fe[fe.length-1],this.defaultActions[Bn])si=this.defaultActions[Bn];else{if(Xn===null||typeof Xn>"u")Xn=Et();si=we[Bn]&&we[Bn][Xn]}if(typeof si>"u"||!si.length||!si[0]){var tt="";Ia=[];for(Ei in we[Bn])if(this.terminals_[Ei]&&Ei>vt)Ia.push("'"+this.terminals_[Ei]+"'");if(cr.showPosition)tt="Parse error on line "+(at+1)+`: `+cr.showPosition()+` -Expecting `+Ia.join(", ")+", got '"+(this.terminals_[Xn]||Xn)+"'";else tt="Parse error on line "+(it+1)+": Unexpected "+(Xn==ir?"end of input":"'"+(this.terminals_[Xn]||Xn)+"'");this.parseError(tt,{text:cr.match,token:this.terminals_[Xn]||Xn,line:cr.yylineno,loc:lr,expected:Ia})}if(si[0]instanceof Array&&si.length>1)throw Error("Parse Error: multiple actions possible at state: "+Bn+", token: "+Xn);switch(si[0]){case 1:if(fe.push(Xn),ze.push(cr.yytext),Ce.push(cr.yylloc),fe.push(si[1]),Xn=null,!Yt){if(ut=cr.yyleng,ke=cr.yytext,it=cr.yylineno,lr=cr.yylloc,gt>0)gt--}else Xn=Yt,Yt=null;break;case 2:if(yn=this.productions_[si[1]][1],Vn.$=ze[ze.length-yn],Vn._$={first_line:Ce[Ce.length-(yn||1)].first_line,last_line:Ce[Ce.length-1].last_line,first_column:Ce[Ce.length-(yn||1)].first_column,last_column:Ce[Ce.length-1].last_column},Kt)Vn._$.range=[Ce[Ce.length-(yn||1)].range[0],Ce[Ce.length-1].range[1]];if(Ii=this.performAction.apply(Vn,[ke,ut,it,tr.yy,si[1],ze,Ce].concat(qt)),typeof Ii<"u")return Ii;if(yn)fe=fe.slice(0,-1*yn*2),ze=ze.slice(0,-1*yn),Ce=Ce.slice(0,-1*yn);fe.push(this.productions_[si[1]][0]),ze.push(Vn.$),Ce.push(Vn._$),Li=_e[fe[fe.length-2]][fe[fe.length-1]],fe.push(Li);break;case 3:return!0}}return!0},"parse")},Ke=function(){var De={EOF:1,parseError:I(function(pe,fe){if(this.yy.parser)this.yy.parser.parseError(pe,fe);else throw Error(pe)},"parseError"),setInput:I(function(oe,pe){if(this.yy=pe||this.yy||{},this._input=oe,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var oe=this._input[0];this.yytext+=oe,this.yyleng++,this.offset++,this.match+=oe,this.matched+=oe;var pe=oe.match(/(?:\r\n?|\n).*/g);if(pe)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),oe},"input"),unput:I(function(oe){var pe=oe.length,fe=oe.split(/(?:\r\n?|\n)/g);this._input=oe+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var be=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),fe.length-1)this.yylineno-=fe.length-1;var ze=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:fe?(fe.length===be.length?this.yylloc.first_column:0)+be[be.length-fe.length].length-fe[0].length:this.yylloc.first_column-pe},this.options.ranges)this.yylloc.range=[ze[0],ze[0]+this.yyleng-pe];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(oe){this.unput(this.match.slice(oe))},"less"),pastInput:I(function(){var oe=this.matched.substr(0,this.matched.length-this.match.length);return(oe.length>20?"...":"")+oe.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var oe=this.match;if(oe.length<20)oe+=this._input.substr(0,20-oe.length);return(oe.substr(0,20)+(oe.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var oe=this.pastInput(),pe=Array(oe.length+1).join("-");return oe+this.upcomingInput()+` -`+pe+"^"},"showPosition"),test_match:I(function(oe,pe){var fe,be,ze;if(this.options.backtrack_lexer){if(ze={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)ze.yylloc.range=this.yylloc.range.slice(0)}if(be=oe[0].match(/(?:\r\n?|\n).*/g),be)this.yylineno+=be.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:be?be[be.length-1].length-be[be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+oe[0].length},this.yytext+=oe[0],this.match+=oe[0],this.matches=oe,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(oe[0].length),this.matched+=oe[0],fe=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(fe)return fe;else if(this._backtrack){for(var Ce in ze)this[Ce]=ze[Ce];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var oe,pe,fe,be;if(!this._more)this.yytext="",this.match="";var ze=this._currentRules();for(var Ce=0;Cepe[0].length)){if(pe=fe,be=Ce,this.options.backtrack_lexer)if(oe=this.test_match(fe,ze[Ce]),oe!==!1)return oe;else if(this._backtrack){pe=!1;continue}else return!1;else if(!this.options.flex)break}if(pe){if(oe=this.test_match(pe,ze[be]),oe!==!1)return oe;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var pe=this.next();if(pe)return pe;else return this.lex()},"lex"),begin:I(function(pe){this.conditionStack.push(pe)},"begin"),popState:I(function(){var pe=this.conditionStack.length-1;if(pe>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(pe){if(pe=this.conditionStack.length-1-Math.abs(pe||0),pe>=0)return this.conditionStack[pe];else return"INITIAL"},"topState"),pushState:I(function(pe){this.begin(pe)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(pe,fe,be,ze){var Ce=ze;switch(be){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return De}();qe.lexer=Ke;function Je(){this.yy={}}return I(Je,"Parser"),Je.prototype=qe,qe.Parser=Je,new Je}();Uft.parser=Uft;ZEi=Uft,rWr=["#","+","~","-",""],nWr=class{static{I(this,"ClassMember")}constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";let i=ho(e,Ar());this.parseMember(i)}getDisplayDetails(){let e=this.visibility+r3(this.id);if(this.memberType==="method"){if(e+=`(${r3(this.parameters.trim())})`,this.returnType)e+=" : "+r3(this.returnType)}e=e.trim();let r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){let o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(o){let l=o[1]?o[1].trim():"";if(rWr.includes(l))this.visibility=l;if(this.id=o[2],this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){let h=this.returnType.substring(this.returnType.length-1);if(/[$*]/.exec(h))r=h,this.returnType=this.returnType.substring(0,this.returnType.length-1)}}}else{let a=e.length,o=e.substring(0,1),l=e.substring(a-1);if(rWr.includes(o))this.visibility=o;if(/[$*]/.exec(l))r=l;this.id=e.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let i=`${this.visibility?"\\"+this.visibility:""}${r3(this.id)}${this.memberType==="method"?`(${r3(this.parameters)})${this.returnType?" : "+r3(this.returnType):""}`:""}`;if(this.text=i.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<"))this.text=this.text.replace("\\<","~")}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},SF=I((e)=>ai.sanitizeText(e,Ar()),"sanitizeText"),JEi=class e{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=I((r)=>{let i=v7();xn(r).select("svg").selectAll("g").filter(function(){return xn(this).attr("title")!==null}).on("mouseover",(l)=>{let h=xn(l.currentTarget),d=h.attr("title");if(!d)return;let p=l.currentTarget.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.html(Wb.sanitize(d)).style("left",`${window.scrollX+p.left+p.width/2}px`).style("top",`${window.scrollY+p.bottom+4}px`),h.classed("hover",!0)}).on("mouseout",(l)=>{i.transition().duration(500).style("opacity",0),xn(l.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=Ys,this.getAccTitle=oo,this.setAccDescription=Js,this.getAccDescription=lo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getConfig=I(()=>Ar().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{I(this,"ClassDB")}splitClassNameAndType(r){let i=ai.sanitizeText(r,Ar()),a="",o=i;if(i.indexOf("~")>0){let l=i.split("~");o=SF(l[0]),a=SF(l[1])}return{className:o,type:a}}setClassLabel(r,i){let a=ai.sanitizeText(r,Ar());if(i)i=SF(i);let{className:o}=this.splitClassNameAndType(a);this.classes.get(o).label=i,this.classes.get(o).text=`${i}${this.classes.get(o).type?`<${this.classes.get(o).type}>`:""}`}addClass(r){let i=ai.sanitizeText(r,Ar()),{className:a,type:o}=this.splitClassNameAndType(i);if(this.classes.has(a))return;let l=ai.sanitizeText(a,Ar());this.classes.set(l,{id:l,type:o,label:l,text:`${l}${o?`<${o}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Bke+l+"-"+iWr}),iWr++}addInterface(r,i){let a={id:`interface${this.interfaces.length}`,label:r,classId:i};this.interfaces.push(a)}setDiagramId(r){this.diagramId=r}lookUpDomId(r){let i=ai.sanitizeText(r,Ar());if(this.classes.has(i)){let a=this.classes.get(i).domId;return this.diagramId?`${this.diagramId}-${a}`:a}throw Error("Class not found: "+i)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",qs()}getClass(r){return this.classes.get(r)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(r){let i=typeof r==="number"?`note${r}`:r;return this.notes.get(i)}getNotes(){return this.notes}addRelation(r){Ze.debug("Adding relation: "+JSON.stringify(r));let i=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];if(r.relation.type1===this.relationType.LOLLIPOP&&!i.includes(r.relation.type2))this.addClass(r.id2),this.addInterface(r.id1,r.id2),r.id1=`interface${this.interfaces.length-1}`;else if(r.relation.type2===this.relationType.LOLLIPOP&&!i.includes(r.relation.type1))this.addClass(r.id1),this.addInterface(r.id2,r.id1),r.id2=`interface${this.interfaces.length-1}`;else this.addClass(r.id1),this.addClass(r.id2);r.id1=this.splitClassNameAndType(r.id1).className,r.id2=this.splitClassNameAndType(r.id2).className,r.relationTitle1=ai.sanitizeText(r.relationTitle1.trim(),Ar()),r.relationTitle2=ai.sanitizeText(r.relationTitle2.trim(),Ar()),this.relations.push(r)}addAnnotation(r,i){let a=this.splitClassNameAndType(r).className;this.classes.get(a).annotations.push(i)}addMember(r,i){this.addClass(r);let a=this.splitClassNameAndType(r).className,o=this.classes.get(a);if(typeof i==="string"){let l=i.trim();if(l.startsWith("<<")&&l.endsWith(">>"))o.annotations.push(SF(l.substring(2,l.length-2)));else if(l.indexOf(")")>0)o.methods.push(new nWr(l,"method"));else if(l)o.members.push(new nWr(l,"attribute"))}}addMembers(r,i){if(Array.isArray(i))i.reverse(),i.forEach((a)=>this.addMember(r,a))}addNote(r,i){let a=this.notes.size,o={id:`note${a}`,class:i,text:r,index:a};return this.notes.set(o.id,o),o.id}cleanupLabel(r){if(r.startsWith(":"))r=r.substring(1);return SF(r.trim())}setCssClass(r,i){r.split(",").forEach((a)=>{let o=a;if(/\d/.exec(a[0]))o=Bke+o;o=this.splitClassNameAndType(o).className;let l=this.classes.get(o);if(l)l.cssClasses+=" "+i})}defineClass(r,i){for(let a of r){let o=this.styleClasses.get(a);if(o===void 0)o={id:a,styles:[],textStyles:[]},this.styleClasses.set(a,o);if(i)i.forEach((l)=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)});this.classes.forEach((l)=>{if(l.cssClasses.includes(a))l.styles.push(...i.flatMap((h)=>h.split(",")))})}}setTooltip(r,i){r.split(",").forEach((a)=>{if(i!==void 0){let o=this.splitClassNameAndType(a).className,l=this.classes.get(o);if(l)l.tooltip=SF(i)}})}getTooltip(r,i){if(i&&this.namespaces.has(i))return this.namespaces.get(i).classes.get(r).tooltip;return this.classes.get(r).tooltip}setLink(r,i,a){let o=Ar();r.split(",").forEach((l)=>{let h=l;if(/\d/.exec(l[0]))h=Bke+h;h=this.splitClassNameAndType(h).className;let d=this.classes.get(h);if(d)if(d.link=Ts.formatUrl(i,o),o.securityLevel==="sandbox")d.linkTarget="_top";else if(typeof a==="string")d.linkTarget=SF(a);else d.linkTarget="_blank"}),this.setCssClass(r,"clickable")}setClickEvent(r,i,a){r.split(",").forEach((o)=>{this.setClickFunc(o,i,a);let l=this.splitClassNameAndType(o).className,h=this.classes.get(l);if(h)h.haveCallback=!0}),this.setCssClass(r,"clickable")}setClickFunc(r,i,a){let o=ai.sanitizeText(r,Ar());if(Ar().securityLevel!=="loose")return;if(i===void 0)return;let h=this.splitClassNameAndType(o).className;if(this.classes.has(h)){let d=[];if(typeof a==="string"){d=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p{let p=this.lookUpDomId(h),m=document.querySelector(`[id="${p}"]`);if(m!==null)m.addEventListener("click",()=>{Ts.runFunc(i,...d)},!1)})}}bindFunctions(r){this.functions.forEach((i)=>{i(r)})}escapeHtml(r){return r.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(r){this.direction=r}static resolveQualifiedId(r,i){let a=i.at(-1);return a?`${a}.${r}`:r}static getAncestorIds(r){let i=r.split("."),a=Array(i.length);a[0]=i[0];for(let o=1;o0?l[h-1]:void 0,m=h===l.length-1,y=m&&i?i:o[h];if(!this.namespaces.has(d))this.namespaces.set(d,this.createNamespaceNode(d,y,p,m));else if(m)this.namespaces.get(d).explicit=!0;if(p)this.linkParentChild(p,d)}return a}popNamespace(){this.namespaceStack.pop()}getNamespace(r){return this.namespaces.get(r)}getNamespaces(){return this.namespaces}addClassesToNamespace(r,i,a){if(!this.namespaces.has(r))return;for(let o of i){let{className:l}=this.splitClassNameAndType(o),h=this.getClass(l);h.parent=r,this.namespaces.get(r).classes.set(l,h)}for(let o of a){let l=this.getNote(o);l.parent=r,this.namespaces.get(r).notes.set(o,l)}}setCssStyle(r,i){let a=this.classes.get(r);if(!i||!a)return;for(let o of i)if(o.includes(","))a.styles.push(...o.split(","));else a.styles.push(o)}getArrowMarker(r){let i;switch(r){case 0:i="aggregation";break;case 1:i="extension";break;case 2:i="composition";break;case 3:i="dependency";break;case 4:i="lollipop";break;default:i="none"}return i}resolveExplicitAncestor(r){let i=r;while(i){let a=this.namespaces.get(i);if(!a)return;if(a.explicit)return i;i=a.parent}return}getData(){let r=[],i=[],a=Ar(),o=a.class?.hierarchicalNamespaces??!0;for(let d of this.namespaces.values()){if(!o&&!d.explicit)continue;let p={id:d.id,label:o?d.label:d.id,isGroup:!0,padding:a.class.padding??16,shape:"rect",cssStyles:[],look:a.look,parentId:o?d.parent:void 0};r.push(p)}let l=0;for(let d of this.classes.values()){let p=o?d.parent:this.resolveExplicitAncestor(d.parent),m={...d,type:void 0,isGroup:!1,parentId:p,look:a.look,colorIndex:l++};r.push(m)}for(let d of this.notes.values()){let p=o?d.parent:this.resolveExplicitAncestor(d.parent),m={id:d.id,label:d.text,isGroup:!1,shape:"note",padding:a.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${a.themeVariables.noteBkgColor}`,`stroke: ${a.themeVariables.noteBorderColor}`],look:a.look,parentId:p,labelType:"markdown"};r.push(m);let y=this.classes.get(d.class)?.id;if(y){let E={id:`edgeNote${d.index}`,start:d.id,end:y,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:a.look};i.push(E)}}for(let d of this.interfaces){let p={id:d.id,label:d.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:a.look};r.push(p)}let h=0;for(let d of this.relations){h++;let p={id:j_(d.id1,d.id2,{prefix:"id",counter:h}),start:d.id1,end:d.id2,type:"normal",label:d.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(d.relation.type1),arrowTypeEnd:this.getArrowMarker(d.relation.type2),startLabelRight:d.relationTitle1==="none"?"":d.relationTitle1,endLabelLeft:d.relationTitle2==="none"?"":d.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:d.style||"",pattern:d.relation.lineType==1?"dashed":"solid",look:a.look,labelType:"markdown"};i.push(p)}return{nodes:r,edges:i,other:{},config:a,direction:this.getDirection()}}},ewi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d1)throw Error("Parse Error: multiple actions possible at state: "+Bn+", token: "+Xn);switch(si[0]){case 1:if(fe.push(Xn),Ge.push(cr.yytext),ke.push(cr.yylloc),fe.push(si[1]),Xn=null,!Yt){if(ut=cr.yyleng,Ae=cr.yytext,at=cr.yylineno,lr=cr.yylloc,gt>0)gt--}else Xn=Yt,Yt=null;break;case 2:if(vn=this.productions_[si[1]][1],Vn.$=Ge[Ge.length-vn],Vn._$={first_line:ke[ke.length-(vn||1)].first_line,last_line:ke[ke.length-1].last_line,first_column:ke[ke.length-(vn||1)].first_column,last_column:ke[ke.length-1].last_column},Xt)Vn._$.range=[ke[ke.length-(vn||1)].range[0],ke[ke.length-1].range[1]];if(Ii=this.performAction.apply(Vn,[Ae,ut,at,tr.yy,si[1],Ge,ke].concat(qt)),typeof Ii<"u")return Ii;if(vn)fe=fe.slice(0,-1*vn*2),Ge=Ge.slice(0,-1*vn),ke=ke.slice(0,-1*vn);fe.push(this.productions_[si[1]][0]),Ge.push(Vn.$),ke.push(Vn._$),Li=we[fe[fe.length-2]][fe[fe.length-1]],fe.push(Li);break;case 3:return!0}}return!0},"parse")},Ke=function(){var De={EOF:1,parseError:I(function(pe,fe){if(this.yy.parser)this.yy.parser.parseError(pe,fe);else throw Error(pe)},"parseError"),setInput:I(function(le,pe){if(this.yy=pe||this.yy||{},this._input=le,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var le=this._input[0];this.yytext+=le,this.yyleng++,this.offset++,this.match+=le,this.matched+=le;var pe=le.match(/(?:\r\n?|\n).*/g);if(pe)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),le},"input"),unput:I(function(le){var pe=le.length,fe=le.split(/(?:\r\n?|\n)/g);this._input=le+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-pe),this.offset-=pe;var be=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),fe.length-1)this.yylineno-=fe.length-1;var Ge=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:fe?(fe.length===be.length?this.yylloc.first_column:0)+be[be.length-fe.length].length-fe[0].length:this.yylloc.first_column-pe},this.options.ranges)this.yylloc.range=[Ge[0],Ge[0]+this.yyleng-pe];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(le){this.unput(this.match.slice(le))},"less"),pastInput:I(function(){var le=this.matched.substr(0,this.matched.length-this.match.length);return(le.length>20?"...":"")+le.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var le=this.match;if(le.length<20)le+=this._input.substr(0,20-le.length);return(le.substr(0,20)+(le.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var le=this.pastInput(),pe=Array(le.length+1).join("-");return le+this.upcomingInput()+` +`+pe+"^"},"showPosition"),test_match:I(function(le,pe){var fe,be,Ge;if(this.options.backtrack_lexer){if(Ge={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Ge.yylloc.range=this.yylloc.range.slice(0)}if(be=le[0].match(/(?:\r\n?|\n).*/g),be)this.yylineno+=be.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:be?be[be.length-1].length-be[be.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+le[0].length},this.yytext+=le[0],this.match+=le[0],this.matches=le,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(le[0].length),this.matched+=le[0],fe=this.performAction.call(this,this.yy,this,pe,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(fe)return fe;else if(this._backtrack){for(var ke in Ge)this[ke]=Ge[ke];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var le,pe,fe,be;if(!this._more)this.yytext="",this.match="";var Ge=this._currentRules();for(var ke=0;kepe[0].length)){if(pe=fe,be=ke,this.options.backtrack_lexer)if(le=this.test_match(fe,Ge[ke]),le!==!1)return le;else if(this._backtrack){pe=!1;continue}else return!1;else if(!this.options.flex)break}if(pe){if(le=this.test_match(pe,Ge[be]),le!==!1)return le;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var pe=this.next();if(pe)return pe;else return this.lex()},"lex"),begin:I(function(pe){this.conditionStack.push(pe)},"begin"),popState:I(function(){var pe=this.conditionStack.length-1;if(pe>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(pe){if(pe=this.conditionStack.length-1-Math.abs(pe||0),pe>=0)return this.conditionStack[pe];else return"INITIAL"},"topState"),pushState:I(function(pe){this.begin(pe)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(pe,fe,be,Ge){var ke=Ge;switch(be){case 0:return 62;case 1:return 63;case 2:return 64;case 3:return 65;case 4:break;case 5:break;case 6:return this.begin("acc_title"),33;break;case 7:return this.popState(),"acc_title_value";break;case 8:return this.begin("acc_descr"),35;break;case 9:return this.popState(),"acc_descr_value";break;case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 79;case 22:this.popState();break;case 23:return 80;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 82;case 28:return 57;case 29:return this.begin("namespace"),42;break;case 30:return this.popState(),8;break;case 31:break;case 32:return this.begin("namespace-body"),39;break;case 33:this.popState(),this.less(0);break;case 34:return this.popState(),41;break;case 35:return"EOF_IN_STRUCT";case 36:return 8;case 37:break;case 38:return"EDGE_STATE";case 39:return this.begin("class"),48;break;case 40:return this.popState(),8;break;case 41:break;case 42:return this.popState(),this.popState(),41;break;case 43:return this.begin("class-body"),39;break;case 44:return this.popState(),41;break;case 45:return"EOF_IN_STRUCT";case 46:return"EDGE_STATE";case 47:return"OPEN_IN_STRUCT";case 48:break;case 49:return"MEMBER";case 50:return 83;case 51:return 75;case 52:return 76;case 53:return 78;case 54:return 54;case 55:return 56;case 56:return 46;case 57:return 47;case 58:return 81;case 59:this.popState();break;case 60:return"GENERICTYPE";case 61:this.begin("generic");break;case 62:this.popState();break;case 63:return"BQUOTE_STR";case 64:this.begin("bqstring");break;case 65:return 77;case 66:return 77;case 67:return 77;case 68:return 77;case 69:return 69;case 70:return 69;case 71:return 71;case 72:return 71;case 73:return 70;case 74:return 68;case 75:return 72;case 76:return 73;case 77:return 74;case 78:return 22;case 79:return 44;case 80:return 100;case 81:return 18;case 82:return"PLUS";case 83:return 87;case 84:return 61;case 85:return 89;case 86:return 89;case 87:return 90;case 88:return"EQUALS";case 89:return"EQUALS";case 90:return 60;case 91:return 12;case 92:return 14;case 93:return"PUNCTUATION";case 94:return 86;case 95:return 102;case 96:return 50;case 97:return 50;case 98:return 9}},"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:classDef\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,29,34,35,36,37,38,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},namespace:{rules:[26,29,30,31,32,33,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},"class-body":{rules:[26,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},class:{rules:[26,40,41,42,43,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_descr:{rules:[9,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},acc_title:{rules:[7,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_args:{rules:[22,23,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},callback_name:{rules:[19,20,21,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},href:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},struct:{rules:[26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},generic:{rules:[26,50,51,52,53,54,55,56,57,58,59,60,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},bqstring:{rules:[26,50,51,52,53,54,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},string:{rules:[24,25,26,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,87,88,89,90,91,92,93,94,95,96,98],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,29,39,50,51,52,53,54,55,56,57,58,61,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],inclusive:!0}}};return De}();qe.lexer=Ke;function Je(){this.yy={}}return I(Je,"Parser"),Je.prototype=qe,qe.Parser=Je,new Je}();Vft.parser=Vft;iwi=Vft,oWr=["#","+","~","-",""],lWr=class{static{I(this,"ClassMember")}constructor(e,r){this.memberType=r,this.visibility="",this.classifier="",this.text="";let i=ho(e,Ar());this.parseMember(i)}getDisplayDetails(){let e=this.visibility+n3(this.id);if(this.memberType==="method"){if(e+=`(${n3(this.parameters.trim())})`,this.returnType)e+=" : "+n3(this.returnType)}e=e.trim();let r=this.parseClassifier();return{displayText:e,cssStyle:r}}parseMember(e){let r="";if(this.memberType==="method"){let o=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(e);if(o){let l=o[1]?o[1].trim():"";if(oWr.includes(l))this.visibility=l;if(this.id=o[2],this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){let h=this.returnType.substring(this.returnType.length-1);if(/[$*]/.exec(h))r=h,this.returnType=this.returnType.substring(0,this.returnType.length-1)}}}else{let a=e.length,o=e.substring(0,1),l=e.substring(a-1);if(oWr.includes(o))this.visibility=o;if(/[$*]/.exec(l))r=l;this.id=e.substring(this.visibility===""?0:1,r===""?a:a-1)}this.classifier=r,this.id=this.id.startsWith(" ")?" "+this.id.trim():this.id.trim();let i=`${this.visibility?"\\"+this.visibility:""}${n3(this.id)}${this.memberType==="method"?`(${n3(this.parameters)})${this.returnType?" : "+n3(this.returnType):""}`:""}`;if(this.text=i.replaceAll("<","<").replaceAll(">",">"),this.text.startsWith("\\<"))this.text=this.text.replace("\\<","~")}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},xF=I((e)=>ai.sanitizeText(e,Ar()),"sanitizeText"),awi=class e{constructor(){this.relations=[],this.classes=new Map,this.styleClasses=new Map,this.notes=new Map,this.interfaces=[],this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.functions=[],this.lineType={LINE:0,DOTTED_LINE:1},this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},this.setupToolTips=I((r)=>{let i=E7();xn(r).select("svg").selectAll("g").filter(function(){return xn(this).attr("title")!==null}).on("mouseover",(l)=>{let h=xn(l.currentTarget),d=h.attr("title");if(!d)return;let p=l.currentTarget.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.html(Wb.sanitize(d)).style("left",`${window.scrollX+p.left+p.width/2}px`).style("top",`${window.scrollY+p.bottom+4}px`),h.classed("hover",!0)}).on("mouseout",(l)=>{i.transition().duration(500).style("opacity",0),xn(l.currentTarget).classed("hover",!1)})},"setupToolTips"),this.direction="TB",this.setAccTitle=Ys,this.getAccTitle=oo,this.setAccDescription=Js,this.getAccDescription=lo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getConfig=I(()=>Ar().class,"getConfig"),this.functions.push(this.setupToolTips.bind(this)),this.clear(),this.addRelation=this.addRelation.bind(this),this.addClassesToNamespace=this.addClassesToNamespace.bind(this),this.addNamespace=this.addNamespace.bind(this),this.popNamespace=this.popNamespace.bind(this),this.setCssClass=this.setCssClass.bind(this),this.addMembers=this.addMembers.bind(this),this.addClass=this.addClass.bind(this),this.setClassLabel=this.setClassLabel.bind(this),this.addAnnotation=this.addAnnotation.bind(this),this.addMember=this.addMember.bind(this),this.cleanupLabel=this.cleanupLabel.bind(this),this.addNote=this.addNote.bind(this),this.defineClass=this.defineClass.bind(this),this.setDirection=this.setDirection.bind(this),this.setLink=this.setLink.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.clear=this.clear.bind(this),this.setTooltip=this.setTooltip.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setCssStyle=this.setCssStyle.bind(this)}static{I(this,"ClassDB")}splitClassNameAndType(r){let i=ai.sanitizeText(r,Ar()),a="",o=i;if(i.indexOf("~")>0){let l=i.split("~");o=xF(l[0]),a=xF(l[1])}return{className:o,type:a}}setClassLabel(r,i){let a=ai.sanitizeText(r,Ar());if(i)i=xF(i);let{className:o}=this.splitClassNameAndType(a);this.classes.get(o).label=i,this.classes.get(o).text=`${i}${this.classes.get(o).type?`<${this.classes.get(o).type}>`:""}`}addClass(r){let i=ai.sanitizeText(r,Ar()),{className:a,type:o}=this.splitClassNameAndType(i);if(this.classes.has(a))return;let l=ai.sanitizeText(a,Ar());this.classes.set(l,{id:l,type:o,label:l,text:`${l}${o?`<${o}>`:""}`,shape:"classBox",cssClasses:"default",methods:[],members:[],annotations:[],styles:[],domId:Uke+l+"-"+cWr}),cWr++}addInterface(r,i){let a={id:`interface${this.interfaces.length}`,label:r,classId:i};this.interfaces.push(a)}setDiagramId(r){this.diagramId=r}lookUpDomId(r){let i=ai.sanitizeText(r,Ar());if(this.classes.has(i)){let a=this.classes.get(i).domId;return this.diagramId?`${this.diagramId}-${a}`:a}throw Error("Class not found: "+i)}clear(){this.relations=[],this.classes=new Map,this.notes=new Map,this.interfaces=[],this.functions=[],this.functions.push(this.setupToolTips.bind(this)),this.namespaces=new Map,this.namespaceCounter=0,this.namespaceStack=[],this.diagramId="",this.direction="TB",qs()}getClass(r){return this.classes.get(r)}getClasses(){return this.classes}getRelations(){return this.relations}getNote(r){let i=typeof r==="number"?`note${r}`:r;return this.notes.get(i)}getNotes(){return this.notes}addRelation(r){Ze.debug("Adding relation: "+JSON.stringify(r));let i=[this.relationType.LOLLIPOP,this.relationType.AGGREGATION,this.relationType.COMPOSITION,this.relationType.DEPENDENCY,this.relationType.EXTENSION];if(r.relation.type1===this.relationType.LOLLIPOP&&!i.includes(r.relation.type2))this.addClass(r.id2),this.addInterface(r.id1,r.id2),r.id1=`interface${this.interfaces.length-1}`;else if(r.relation.type2===this.relationType.LOLLIPOP&&!i.includes(r.relation.type1))this.addClass(r.id1),this.addInterface(r.id2,r.id1),r.id2=`interface${this.interfaces.length-1}`;else this.addClass(r.id1),this.addClass(r.id2);r.id1=this.splitClassNameAndType(r.id1).className,r.id2=this.splitClassNameAndType(r.id2).className,r.relationTitle1=ai.sanitizeText(r.relationTitle1.trim(),Ar()),r.relationTitle2=ai.sanitizeText(r.relationTitle2.trim(),Ar()),this.relations.push(r)}addAnnotation(r,i){let a=this.splitClassNameAndType(r).className;this.classes.get(a).annotations.push(i)}addMember(r,i){this.addClass(r);let a=this.splitClassNameAndType(r).className,o=this.classes.get(a);if(typeof i==="string"){let l=i.trim();if(l.startsWith("<<")&&l.endsWith(">>"))o.annotations.push(xF(l.substring(2,l.length-2)));else if(l.indexOf(")")>0)o.methods.push(new lWr(l,"method"));else if(l)o.members.push(new lWr(l,"attribute"))}}addMembers(r,i){if(Array.isArray(i))i.reverse(),i.forEach((a)=>this.addMember(r,a))}addNote(r,i){let a=this.notes.size,o={id:`note${a}`,class:i,text:r,index:a};return this.notes.set(o.id,o),o.id}cleanupLabel(r){if(r.startsWith(":"))r=r.substring(1);return xF(r.trim())}setCssClass(r,i){r.split(",").forEach((a)=>{let o=a;if(/\d/.exec(a[0]))o=Uke+o;o=this.splitClassNameAndType(o).className;let l=this.classes.get(o);if(l)l.cssClasses+=" "+i})}defineClass(r,i){for(let a of r){let o=this.styleClasses.get(a);if(o===void 0)o={id:a,styles:[],textStyles:[]},this.styleClasses.set(a,o);if(i)i.forEach((l)=>{if(/color/.exec(l)){let h=l.replace("fill","bgFill");o.textStyles.push(h)}o.styles.push(l)});this.classes.forEach((l)=>{if(l.cssClasses.includes(a))l.styles.push(...i.flatMap((h)=>h.split(",")))})}}setTooltip(r,i){r.split(",").forEach((a)=>{if(i!==void 0){let o=this.splitClassNameAndType(a).className,l=this.classes.get(o);if(l)l.tooltip=xF(i)}})}getTooltip(r,i){if(i&&this.namespaces.has(i))return this.namespaces.get(i).classes.get(r).tooltip;return this.classes.get(r).tooltip}setLink(r,i,a){let o=Ar();r.split(",").forEach((l)=>{let h=l;if(/\d/.exec(l[0]))h=Uke+h;h=this.splitClassNameAndType(h).className;let d=this.classes.get(h);if(d)if(d.link=Ts.formatUrl(i,o),o.securityLevel==="sandbox")d.linkTarget="_top";else if(typeof a==="string")d.linkTarget=xF(a);else d.linkTarget="_blank"}),this.setCssClass(r,"clickable")}setClickEvent(r,i,a){r.split(",").forEach((o)=>{this.setClickFunc(o,i,a);let l=this.splitClassNameAndType(o).className,h=this.classes.get(l);if(h)h.haveCallback=!0}),this.setCssClass(r,"clickable")}setClickFunc(r,i,a){let o=ai.sanitizeText(r,Ar());if(Ar().securityLevel!=="loose")return;if(i===void 0)return;let h=this.splitClassNameAndType(o).className;if(this.classes.has(h)){let d=[];if(typeof a==="string"){d=a.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let p=0;p{let p=this.lookUpDomId(h),m=document.querySelector(`[id="${p}"]`);if(m!==null)m.addEventListener("click",()=>{Ts.runFunc(i,...d)},!1)})}}bindFunctions(r){this.functions.forEach((i)=>{i(r)})}escapeHtml(r){return r.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}getDirection(){return this.direction}setDirection(r){this.direction=r}static resolveQualifiedId(r,i){let a=i.at(-1);return a?`${a}.${r}`:r}static getAncestorIds(r){let i=r.split("."),a=Array(i.length);a[0]=i[0];for(let o=1;o0?l[h-1]:void 0,m=h===l.length-1,y=m&&i?i:o[h];if(!this.namespaces.has(d))this.namespaces.set(d,this.createNamespaceNode(d,y,p,m));else if(m)this.namespaces.get(d).explicit=!0;if(p)this.linkParentChild(p,d)}return a}popNamespace(){this.namespaceStack.pop()}getNamespace(r){return this.namespaces.get(r)}getNamespaces(){return this.namespaces}addClassesToNamespace(r,i,a){if(!this.namespaces.has(r))return;for(let o of i){let{className:l}=this.splitClassNameAndType(o),h=this.getClass(l);h.parent=r,this.namespaces.get(r).classes.set(l,h)}for(let o of a){let l=this.getNote(o);l.parent=r,this.namespaces.get(r).notes.set(o,l)}}setCssStyle(r,i){let a=this.classes.get(r);if(!i||!a)return;for(let o of i)if(o.includes(","))a.styles.push(...o.split(","));else a.styles.push(o)}getArrowMarker(r){let i;switch(r){case 0:i="aggregation";break;case 1:i="extension";break;case 2:i="composition";break;case 3:i="dependency";break;case 4:i="lollipop";break;default:i="none"}return i}resolveExplicitAncestor(r){let i=r;while(i){let a=this.namespaces.get(i);if(!a)return;if(a.explicit)return i;i=a.parent}return}getData(){let r=[],i=[],a=Ar(),o=a.class?.hierarchicalNamespaces??!0;for(let d of this.namespaces.values()){if(!o&&!d.explicit)continue;let p={id:d.id,label:o?d.label:d.id,isGroup:!0,padding:a.class.padding??16,shape:"rect",cssStyles:[],look:a.look,parentId:o?d.parent:void 0};r.push(p)}let l=0;for(let d of this.classes.values()){let p=o?d.parent:this.resolveExplicitAncestor(d.parent),m={...d,type:void 0,isGroup:!1,parentId:p,look:a.look,colorIndex:l++};r.push(m)}for(let d of this.notes.values()){let p=o?d.parent:this.resolveExplicitAncestor(d.parent),m={id:d.id,label:d.text,isGroup:!1,shape:"note",padding:a.class.padding??6,cssStyles:["text-align: left","white-space: nowrap",`fill: ${a.themeVariables.noteBkgColor}`,`stroke: ${a.themeVariables.noteBorderColor}`],look:a.look,parentId:p,labelType:"markdown"};r.push(m);let y=this.classes.get(d.class)?.id;if(y){let v={id:`edgeNote${d.index}`,start:d.id,end:y,type:"normal",thickness:"normal",classes:"relation",arrowTypeStart:"none",arrowTypeEnd:"none",arrowheadStyle:"",labelStyle:[""],style:["fill: none"],pattern:"dotted",look:a.look};i.push(v)}}for(let d of this.interfaces){let p={id:d.id,label:d.label,isGroup:!1,shape:"rect",cssStyles:["opacity: 0;"],look:a.look};r.push(p)}let h=0;for(let d of this.relations){h++;let p={id:j_(d.id1,d.id2,{prefix:"id",counter:h}),start:d.id1,end:d.id2,type:"normal",label:d.title,labelpos:"c",thickness:"normal",classes:"relation",arrowTypeStart:this.getArrowMarker(d.relation.type1),arrowTypeEnd:this.getArrowMarker(d.relation.type2),startLabelRight:d.relationTitle1==="none"?"":d.relationTitle1,endLabelLeft:d.relationTitle2==="none"?"":d.relationTitle2,arrowheadStyle:"",labelStyle:["display: inline-block"],style:d.style||"",pattern:d.relation.lineType==1?"dashed":"solid",look:a.look,labelType:"markdown"};i.push(p)}return{nodes:r,edges:i,other:{},config:a,direction:this.getDirection()}}},swi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d`${ewi(e)} + `}return h},"genColor"),owi=I((e)=>`${swi(e)} g.classGroup text { fill: ${e.nodeBorder||e.classText}; stroke: none; @@ -2545,13 +2545,13 @@ g.classGroup line { } text-align: center; } - ${dT()} -`,"getStyles"),rwi=twi,nwi=I((e,r="TB")=>{if(!e.doc)return r;let i=r;for(let a of e.doc)if(a.stmt==="dir")i=a.value;return i},"getDir"),iwi=I(function(e,r){return r.db.getClasses()},"getClasses"),awi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing class diagram (v3)",r);let{securityLevel:o,state:l,layout:h}=Ar();a.db.setDiagramId(r);let d=a.db.getData(),p=ly(r,o);d.type=a.type,d.layoutAlgorithm=oy(h),d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=r,await sy(d,p);let m=8;Ts.insertTitle(p,"classDiagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(p,m,"classDiagram",l?.useMaxWidth??!0)},"draw"),swi={getClasses:iwi,draw:awi,getDir:nwi},aWr={parser:ZEi,get db(){return new JEi},renderer:swi,styles:rwi,init:I((e)=>{if(!e.class)e.class={};e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});function Uke(e="",r=0,i="",a=Yft){let o=i!==null&&i.length>0?`${a}${i}`:"";return`${Cwi}-${e}${o}-${r}`}function foe(e,r,i){if(!r.id||r.id===""||r.id==="")return;if(r.cssClasses){if(!Array.isArray(r.cssCompiledStyles))r.cssCompiledStyles=[];r.cssClasses.split(" ").forEach((o)=>{let l=i.get(o);if(l)r.cssCompiledStyles=[...r.cssCompiledStyles??[],...l.styles]})}let a=e.find((o)=>o.id===r.id);if(a)Object.assign(a,r);else e.push(r)}function TWr(e){return e?.classes?.join(" ")??""}function xWr(e){return e?.styles??[]}var Vft,owi,lwi="TB",fWr="TB",oWr="dir",YY="state",qY="root",Hft="relation",cwi="classDef",uwi="style",hwi="applyClass",goe="default",pWr="divider",gWr="fill:none",mWr="fill: #333",bWr="c",yWr="markdown",vWr="normal",Gft="rect",zft="rectWithTitle",dwi="stateStart",fwi="stateEnd",qft="divider",lWr="roundedWithTitle",pwi="note",gwi="noteGroup",moe="statediagram",mwi="state",bwi,_Wr="transition",ywi="note",vwi="note-edge",_wi,Ewi,wwi="cluster",Swi,Twi="cluster-alt",xwi,EWr="parent",wWr="note",Cwi="state",Yft="----",kwi,cWr,$ke,J7=0,SWr=0,doe,Awi,Rwi,uWr,poe,Iwi,CWr,Owi,Nwi,Lwi,Rv,hWr,dWr,Fke,Mwi,Dwi,Pwi,Bwi,kWr;var AWr=Re(()=>{MC();fT();lT();WE();z3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();EP();Vft=function(){var e=I(function(ne,ie,le,se){for(le=le||{},se=ne.length;se--;le[ne[se]]=ie);return le},"o"),r=[1,2],i=[1,3],a=[1,4],o=[2,4],l=[1,9],h=[1,11],d=[1,16],p=[1,17],m=[1,18],y=[1,19],E=[1,33],w=[1,20],T=[1,21],x=[1,22],k=[1,23],A=[1,24],R=[1,26],N=[1,27],L=[1,28],B=[1,29],D=[1,30],P=[1,31],F=[1,32],H=[1,35],K=[1,36],Q=[1,37],Z=[1,38],Y=[1,34],j=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],te=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],X=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],W={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:I(function(ie,le,se,he,ye,xe,Ie){var Ee=xe.length-1;switch(ye){case 3:return he.setRootDoc(xe[Ee]),xe[Ee];break;case 4:this.$=[];break;case 5:if(xe[Ee]!="nl")xe[Ee-1].push(xe[Ee]),this.$=xe[Ee-1];break;case 6:case 7:this.$=xe[Ee];break;case 8:this.$="nl";break;case 12:this.$=xe[Ee];break;case 13:let je=xe[Ee-1];je.description=he.trimColon(xe[Ee]),this.$=je;break;case 14:this.$={stmt:"relation",state1:xe[Ee-2],state2:xe[Ee]};break;case 15:let Qe=he.trimColon(xe[Ee]);this.$={stmt:"relation",state1:xe[Ee-3],state2:xe[Ee-1],description:Qe};break;case 19:this.$={stmt:"state",id:xe[Ee-3],type:"default",description:"",doc:xe[Ee-1]};break;case 20:var Ue=xe[Ee],Me=xe[Ee-2].trim();if(xe[Ee].match(":")){var Xe=xe[Ee].split(":");Ue=Xe[0],Me=[Me,Xe[1]]}this.$={stmt:"state",id:Ue,type:"default",description:Me};break;case 21:this.$={stmt:"state",id:xe[Ee-3],type:"default",description:xe[Ee-5],doc:xe[Ee-1]};break;case 22:this.$={stmt:"state",id:xe[Ee],type:"fork"};break;case 23:this.$={stmt:"state",id:xe[Ee],type:"join"};break;case 24:this.$={stmt:"state",id:xe[Ee],type:"choice"};break;case 25:this.$={stmt:"state",id:he.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:xe[Ee-1].trim(),note:{position:xe[Ee-2].trim(),text:xe[Ee].trim()}};break;case 29:this.$=xe[Ee].trim(),he.setAccTitle(this.$);break;case 30:case 31:this.$=xe[Ee].trim(),he.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:xe[Ee-3],url:xe[Ee-2],tooltip:xe[Ee-1]};break;case 33:this.$={stmt:"click",id:xe[Ee-3],url:xe[Ee-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:xe[Ee-1].trim(),classes:xe[Ee].trim()};break;case 36:this.$={stmt:"style",id:xe[Ee-1].trim(),styleClass:xe[Ee].trim()};break;case 37:this.$={stmt:"applyClass",id:xe[Ee-1].trim(),styleClass:xe[Ee].trim()};break;case 38:he.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:he.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:he.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:he.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:xe[Ee].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:xe[Ee-2].trim(),classes:[xe[Ee].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:xe[Ee-2].trim(),classes:[xe[Ee].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:r,5:i,6:a},{1:[3]},{3:5,4:r,5:i,6:a},{3:6,4:r,5:i,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],o,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:p,19:m,22:y,24:E,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:K,53:Q,54:Z,57:Y},e(j,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:d,17:p,19:m,22:y,24:E,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:K,53:Q,54:Z,57:Y},e(j,[2,7]),e(j,[2,8]),e(j,[2,9]),e(j,[2,10]),e(j,[2,11]),e(j,[2,12],{14:[1,40],15:[1,41]}),e(j,[2,16]),{18:[1,42]},e(j,[2,18],{20:[1,43]}),{23:[1,44]},e(j,[2,22]),e(j,[2,23]),e(j,[2,24]),e(j,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(j,[2,28]),{34:[1,49]},{36:[1,50]},e(j,[2,31]),{13:51,24:E,57:Y},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(te,[2,44],{58:[1,56]}),e(te,[2,45],{58:[1,57]}),e(j,[2,38]),e(j,[2,39]),e(j,[2,40]),e(j,[2,41]),e(j,[2,6]),e(j,[2,13]),{13:58,24:E,57:Y},e(j,[2,17]),e(X,o,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(j,[2,29]),e(j,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(j,[2,14],{14:[1,71]}),{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:p,19:m,21:[1,72],22:y,24:E,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:K,53:Q,54:Z,57:Y},e(j,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(j,[2,34]),e(j,[2,35]),e(j,[2,36]),e(j,[2,37]),e(te,[2,46]),e(te,[2,47]),e(j,[2,15]),e(j,[2,19]),e(X,o,{7:78}),e(j,[2,26]),e(j,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:p,19:m,21:[1,81],22:y,24:E,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:K,53:Q,54:Z,57:Y},e(j,[2,32]),e(j,[2,33]),e(j,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:I(function(ie,le){if(le.recoverable)this.trace(ie);else{var se=Error(ie);throw se.hash=le,se}},"parseError"),parse:I(function(ie){var le=this,se=[0],he=[],ye=[null],xe=[],Ie=this.table,Ee="",Ue=0,Me=0,Xe=0,je=2,Qe=1,St=xe.slice.call(arguments,1),pt=Object.create(this.lexer),Vt={yy:{}};for(var Xt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Xt))Vt.yy[Xt]=this.yy[Xt];if(pt.setInput(ie,Vt.yy),Vt.yy.lexer=pt,Vt.yy.parser=this,typeof pt.yylloc>"u")pt.yylloc={};var rr=pt.yylloc;xe.push(rr);var We=pt.options&&pt.options.ranges;if(typeof Vt.yy.parseError==="function")this.parseError=Vt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Nt(Ce){se.length=se.length-2*Ce,ye.length=ye.length-Ce,xe.length=xe.length-Ce}I(Nt,"popStack");function ct(){var Ce=he.pop()||pt.lex()||Qe;if(typeof Ce!=="number"){if(Ce instanceof Array)he=Ce,Ce=he.pop();Ce=le.symbols_[Ce]||Ce}return Ce}I(ct,"lex");var bt,Pe,Ge,qe,Ke,Je,De={},oe,pe,fe,be;while(!0){if(Ge=se[se.length-1],this.defaultActions[Ge])qe=this.defaultActions[Ge];else{if(bt===null||typeof bt>"u")bt=ct();qe=Ie[Ge]&&Ie[Ge][bt]}if(typeof qe>"u"||!qe.length||!qe[0]){var ze="";be=[];for(oe in Ie[Ge])if(this.terminals_[oe]&&oe>je)be.push("'"+this.terminals_[oe]+"'");if(pt.showPosition)ze="Parse error on line "+(Ue+1)+`: -`+pt.showPosition()+` -Expecting `+be.join(", ")+", got '"+(this.terminals_[bt]||bt)+"'";else ze="Parse error on line "+(Ue+1)+": Unexpected "+(bt==Qe?"end of input":"'"+(this.terminals_[bt]||bt)+"'");this.parseError(ze,{text:pt.match,token:this.terminals_[bt]||bt,line:pt.yylineno,loc:rr,expected:be})}if(qe[0]instanceof Array&&qe.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ge+", token: "+bt);switch(qe[0]){case 1:if(se.push(bt),ye.push(pt.yytext),xe.push(pt.yylloc),se.push(qe[1]),bt=null,!Pe){if(Me=pt.yyleng,Ee=pt.yytext,Ue=pt.yylineno,rr=pt.yylloc,Xe>0)Xe--}else bt=Pe,Pe=null;break;case 2:if(pe=this.productions_[qe[1]][1],De.$=ye[ye.length-pe],De._$={first_line:xe[xe.length-(pe||1)].first_line,last_line:xe[xe.length-1].last_line,first_column:xe[xe.length-(pe||1)].first_column,last_column:xe[xe.length-1].last_column},We)De._$.range=[xe[xe.length-(pe||1)].range[0],xe[xe.length-1].range[1]];if(Je=this.performAction.apply(De,[Ee,Me,Ue,Vt.yy,qe[1],ye,xe].concat(St)),typeof Je<"u")return Je;if(pe)se=se.slice(0,-1*pe*2),ye=ye.slice(0,-1*pe),xe=xe.slice(0,-1*pe);se.push(this.productions_[qe[1]][0]),ye.push(De.$),xe.push(De._$),fe=Ie[se[se.length-2]][se[se.length-1]],se.push(fe);break;case 3:return!0}}return!0},"parse")},J=function(){var ne={EOF:1,parseError:I(function(le,se){if(this.yy.parser)this.yy.parser.parseError(le,se);else throw Error(le)},"parseError"),setInput:I(function(ie,le){if(this.yy=le||this.yy||{},this._input=ie,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var ie=this._input[0];this.yytext+=ie,this.yyleng++,this.offset++,this.match+=ie,this.matched+=ie;var le=ie.match(/(?:\r\n?|\n).*/g);if(le)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),ie},"input"),unput:I(function(ie){var le=ie.length,se=ie.split(/(?:\r\n?|\n)/g);this._input=ie+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-le),this.offset-=le;var he=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),se.length-1)this.yylineno-=se.length-1;var ye=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:se?(se.length===he.length?this.yylloc.first_column:0)+he[he.length-se.length].length-se[0].length:this.yylloc.first_column-le},this.options.ranges)this.yylloc.range=[ye[0],ye[0]+this.yyleng-le];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(ie){this.unput(this.match.slice(ie))},"less"),pastInput:I(function(){var ie=this.matched.substr(0,this.matched.length-this.match.length);return(ie.length>20?"...":"")+ie.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var ie=this.match;if(ie.length<20)ie+=this._input.substr(0,20-ie.length);return(ie.substr(0,20)+(ie.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var ie=this.pastInput(),le=Array(ie.length+1).join("-");return ie+this.upcomingInput()+` -`+le+"^"},"showPosition"),test_match:I(function(ie,le){var se,he,ye;if(this.options.backtrack_lexer){if(ye={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)ye.yylloc.range=this.yylloc.range.slice(0)}if(he=ie[0].match(/(?:\r\n?|\n).*/g),he)this.yylineno+=he.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ie[0].length},this.yytext+=ie[0],this.match+=ie[0],this.matches=ie,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(ie[0].length),this.matched+=ie[0],se=this.performAction.call(this,this.yy,this,le,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(se)return se;else if(this._backtrack){for(var xe in ye)this[xe]=ye[xe];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var ie,le,se,he;if(!this._more)this.yytext="",this.match="";var ye=this._currentRules();for(var xe=0;xele[0].length)){if(le=se,he=xe,this.options.backtrack_lexer)if(ie=this.test_match(se,ye[xe]),ie!==!1)return ie;else if(this._backtrack){le=!1;continue}else return!1;else if(!this.options.flex)break}if(le){if(ie=this.test_match(le,ye[he]),ie!==!1)return ie;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var le=this.next();if(le)return le;else return this.lex()},"lex"),begin:I(function(le){this.conditionStack.push(le)},"begin"),popState:I(function(){var le=this.conditionStack.length-1;if(le>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(le){if(le=this.conditionStack.length-1-Math.abs(le||0),le>=0)return this.conditionStack[le];else return"INITIAL"},"topState"),pushState:I(function(le){this.begin(le)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(le,se,he,ye){function xe(){let Ee=se.yytext.indexOf("%%");if(Ee===0)return!1;if(Ee>0){let Ue=se.yytext.slice(0,Ee),Me=se.yytext.slice(Ee);if(Me)le.lexer.unput(Me);se.yytext=Ue}return!0}I(xe,"processId");var Ie=ye;switch(he){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),se.yytext=se.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),se.yytext=se.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!xe())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+se.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!xe())return;return this.popState(),"ID";break;case 66:if(!xe())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),se.yytext=se.yytext.substr(2).trim(),31;break;case 68:return this.popState(),se.yytext=se.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!xe())return;return 24;case 74:return se.yytext=se.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return ne}();W.lexer=J;function z(){this.yy={}}return I(z,"Parser"),z.prototype=W,W.Parser=z,new z}();Vft.parser=Vft;owi=Vft,bwi=`${moe}-${mwi}`,_wi=`${_Wr} ${vwi}`,Ewi=`${moe}-${ywi}`,Swi=`${moe}-${wwi}`,xwi=`${moe}-${Twi}`,kwi=`${Yft}${wWr}`,cWr=`${Yft}${EWr}`,$ke=new Map,doe=new Map,Awi=I((e,r,i,a)=>{if(e===qft&&i?.id!==void 0&&doe.has(i.id)){let h=doe.get(i.id);return doe.set(r,h),h}let o=SWr++,l=a?void 0:o;return doe.set(r,l),l},"colorSlotFor");I(Uke,"stateDomId");Rwi=I((e,r,i,a,o,l,h,d)=>{Ze.trace("items",r),r.forEach((p)=>{switch(p.stmt){case YY:poe(e,p,i,a,o,l,h,d);break;case goe:poe(e,p,i,a,o,l,h,d);break;case Hft:{poe(e,p.state1,i,a,o,l,h,d),poe(e,p.state2,i,a,o,l,h,d);let m=h==="neo",y={id:"edge"+J7,start:p.state1.id,end:p.state2.id,arrowhead:"normal",arrowTypeEnd:m?"arrow_barb_neo":"arrow_barb",style:gWr,labelStyle:"",label:ai.sanitizeText(p.description??"",Ar()),arrowheadStyle:mWr,labelpos:bWr,labelType:yWr,thickness:vWr,classes:_Wr,look:h};o.push(y),J7++}break}})},"setupDoc"),uWr=I((e,r=fWr)=>{let i=r;if(e.doc){for(let a of e.doc)if(a.stmt==="dir")i=a.value}return i},"getDir");I(foe,"insertOrUpdateNode");I(TWr,"getClassesFromDbInfo");I(xWr,"getStylesFromDbInfo");poe=I((e,r,i,a,o,l,h,d)=>{let p=r.id,m=i.get(p),y=TWr(m),E=xWr(m),w=Ar(),T=y.trim()!==""||E.length>0;if(Ze.info("dataFetcher parsedItem",r,m,E),p!=="root"){let x=Gft;if(r.start===!0)x=dwi;else if(r.start===!1)x=fwi;if(r.type!==goe)x=r.type;if(!$ke.get(p))$ke.set(p,{id:p,shape:x,description:ai.sanitizeText(p,w),cssClasses:`${y} ${bwi}`,cssStyles:E});let k=$ke.get(p);if(r.description){if(Array.isArray(k.description))k.shape=zft,k.description.push(r.description);else if(k.description?.length&&k.description.length>0)if(k.shape=zft,k.description===p)k.description=[r.description];else k.description=[k.description,r.description];else k.shape=Gft,k.description=r.description;k.description=ai.sanitizeTextOrArray(k.description,w)}if(k.description?.length===1&&k.shape===zft)if(k.type==="group")k.shape=lWr;else k.shape=Gft;if(!k.type&&r.doc)Ze.info("Setting cluster for XCX",p,uWr(r)),k.type="group",k.isGroup=!0,k.dir=uWr(r),k.shape=r.type===pWr?qft:lWr,k.colorIndex=Awi(k.shape,p,e,T),k.cssClasses=`${k.cssClasses} ${Swi} ${l?xwi:""}`;let A={labelStyle:"",shape:k.shape,label:k.description,cssClasses:k.cssClasses,cssCompiledStyles:[],cssStyles:k.cssStyles,id:p,dir:k.dir,domId:Uke(p,J7),type:k.type,isGroup:k.type==="group",colorIndex:k.colorIndex,padding:8,rx:10,ry:10,look:h,labelType:"markdown"};if(A.shape===qft)A.label="";if(e&&e.id!=="root")Ze.trace("Setting node ",p," to be child of its parent ",e.id),A.parentId=e.id;if(A.centerLabel=!0,r.note){let R={labelStyle:"",shape:pwi,label:r.note.text,labelType:"markdown",cssClasses:Ewi,cssStyles:[],cssCompiledStyles:[],id:p+kwi+"-"+J7,domId:Uke(p,J7,wWr),type:"node",isGroup:!1,padding:w.flowchart?.padding,look:h,position:r.note.position},N=p+cWr,L={labelStyle:"",shape:gwi,label:r.note.text,cssClasses:k.cssClasses,cssStyles:[],id:p+cWr,domId:Uke(p,J7,EWr),type:"group",isGroup:!0,padding:16,look:h,position:r.note.position};J7++,L.id=N,R.parentId=N,foe(a,L,d),foe(a,R,d),foe(a,A,d);let B=p,D=R.id;if(r.note.position==="left of")B=R.id,D=p;o.push({id:B+"-"+D,start:B,end:D,arrowhead:"none",arrowTypeEnd:"",style:gWr,labelStyle:"",classes:_wi,pattern:"dashed",arrowheadStyle:mWr,labelpos:bWr,labelType:yWr,thickness:vWr,look:h})}else foe(a,A,d)}if(r.doc)Ze.trace("Adding nodes children "),Rwi(r,r.doc,i,a,o,!l,h,d)},"dataFetcher"),Iwi=I(()=>{$ke.clear(),J7=0,SWr=0,doe.clear()},"reset"),CWr=I((e,r=fWr)=>{if(!e.doc)return r;let i=r;for(let a of e.doc)if(a.stmt==="dir")i=a.value;return i},"getDir"),Owi=I(function(e,r){return r.db.getClasses()},"getClasses"),Nwi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing state diagram (v2)",r);let{securityLevel:o,state:l,layout:h}=Ar();a.db.extract(a.db.getRootDocV2());let d=a.db.getData(),p=ly(r,o);if(d.type=a.type,d.layoutAlgorithm=oy(h),d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,Ar().look==="neo")d.markers=["barbNeo"];else d.markers=["barb"];d.diagramId=r,await sy(d,p);let y=8;try{(typeof a.db.getLinks==="function"?a.db.getLinks():new Map).forEach((w,T)=>{let x=typeof T==="string"?T:typeof T?.id==="string"?T.id:"",k=d.nodes.find((D)=>D.id===x);if(!x){Ze.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(T));return}let A=p.node()?.querySelectorAll("g.node, g.rough-node"),R;if(A?.forEach((D)=>{let P=D.textContent?.trim();if(D.id===k?.domId||P===x)R=D}),!R){Ze.warn("⚠️ Could not find node matching text:",x);return}let N=R.parentNode;if(!N){Ze.warn("⚠️ Node has no parent, cannot wrap:",x);return}let L=document.createElementNS("http://www.w3.org/2000/svg","a"),B=w.url.replace(/^"+|"+$/g,"");if(L.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",B),L.setAttribute("target","_blank"),w.tooltip){let D=w.tooltip.replace(/^"+|"+$/g,"");L.setAttribute("title",D),R.setAttribute("title",D)}N.replaceChild(L,R),L.appendChild(R),Ze.info("\uD83D\uDD17 Wrapped node in
    tag for:",x,w.url)})}catch(E){Ze.error("❌ Error injecting clickable links:",E)}Ts.insertTitle(p,"statediagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(p,y,moe,l?.useMaxWidth??!0)},"draw"),Lwi={getClasses:Owi,draw:Nwi,getDir:CWr},Rv={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},hWr=I(()=>new Map,"newClassesList"),dWr=I(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Fke=I((e)=>JSON.parse(JSON.stringify(e)),"clone"),Mwi=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=hWr(),this.documents={root:dWr()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=oo,this.setAccTitle=Ys,this.getAccDescription=lo,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{I(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let a of Array.isArray(e)?e:e.doc)switch(a.stmt){case YY:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Hft:this.addRelation(a.state1,a.state2,a.description);break;case cwi:this.addStyleClass(a.id.trim(),a.classes);break;case uwi:this.handleStyleDef(a);break;case hwi:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}let r=this.getStates(),i=Ar();Iwi(),poe(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,i.look,this.classes);for(let a of this.nodes){if(!Array.isArray(a.label))continue;if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){let r=e.id.trim().split(","),i=e.styleClass.split(",");for(let a of r){let o=this.getState(a);if(!o){let l=a.trim();this.addState(l),o=this.getState(l)}if(o)o.styles=i.map((l)=>l.replace(/;/g,"")?.trim())}}setRootDoc(e){if(Ze.info("Setting root doc",e),this.rootDoc=e,this.version===1)this.extract(e);else this.extract(this.getRootDocV2())}docTranslator(e,r,i){if(r.stmt===Hft){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===YY)if(r.id===Rv.START_NODE)r.id=e.id+(i?"_start":"_end"),r.start=i;else r.id=r.id.trim();if(r.stmt!==qY&&r.stmt!==YY||!r.doc)return;let a=[],o=[];for(let l of r.doc)if(l.type===pWr){let h=Fke(l);h.doc=Fke(o),a.push(h),o=[]}else o.push(l);if(a.length>0&&o.length>0){let l={stmt:YY,id:Zet(),type:"divider",doc:Fke(o)};a.push(Fke(l)),r.doc=a}r.doc.forEach((l)=>this.docTranslator(r,l,!0))}getRootDocV2(){return this.docTranslator({id:qY,stmt:qY},{id:qY,stmt:qY,doc:this.rootDoc},!0),{id:qY,doc:this.rootDoc}}addState(e,r=goe,i=void 0,a=void 0,o=void 0,l=void 0,h=void 0,d=void 0){let p=e?.trim();if(!this.currentDocument.states.has(p))Ze.info("Adding state ",p,a),this.currentDocument.states.set(p,{stmt:YY,id:p,descriptions:[],type:r,doc:i,note:o,classes:[],styles:[],textStyles:[]});else{let m=this.currentDocument.states.get(p);if(!m)throw Error(`State not found: ${p}`);if(!m.doc)m.doc=i;if(!m.type)m.type=r}if(a)Ze.info("Setting state description",p,a),(Array.isArray(a)?a:[a]).forEach((y)=>this.addDescription(p,y.trim()));if(o){let m=this.currentDocument.states.get(p);if(!m)throw Error(`State not found: ${p}`);m.note=o,m.note.text=ai.sanitizeText(m.note.text,Ar())}if(l)Ze.info("Setting state classes",p,l),(Array.isArray(l)?l:[l]).forEach((y)=>this.setCssClass(p,y.trim()));if(h)Ze.info("Setting state styles",p,h),(Array.isArray(h)?h:[h]).forEach((y)=>this.setStyle(p,y.trim()));if(d)Ze.info("Setting state styles",p,h),(Array.isArray(d)?d:[d]).forEach((y)=>this.setTextStyle(p,y.trim()))}clear(e){if(this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:dWr()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=hWr(),!e)this.links=new Map,qs()}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){Ze.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,i){this.links.set(e,{url:r,tooltip:i}),Ze.warn("Adding link",e,r,i)}getLinks(){return this.links}startIdIfNeeded(e=""){if(e===Rv.START_NODE)return this.startEndCount++,`${Rv.START_TYPE}${this.startEndCount}`;return e}startTypeIfNeeded(e="",r=goe){return e===Rv.START_NODE?Rv.START_TYPE:r}endIdIfNeeded(e=""){if(e===Rv.END_NODE)return this.startEndCount++,`${Rv.END_TYPE}${this.startEndCount}`;return e}endTypeIfNeeded(e="",r=goe){return e===Rv.END_NODE?Rv.END_TYPE:r}addRelationObjs(e,r,i=""){let a=this.startIdIfNeeded(e.id.trim()),o=this.startTypeIfNeeded(e.id.trim(),e.type),l=this.startIdIfNeeded(r.id.trim()),h=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(l,h,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:a,id2:l,relationTitle:ai.sanitizeText(i,Ar())})}addRelation(e,r,i){if(typeof e==="object"&&typeof r==="object")this.addRelationObjs(e,r,i);else if(typeof e==="string"&&typeof r==="string"){let a=this.startIdIfNeeded(e.trim()),o=this.startTypeIfNeeded(e),l=this.endIdIfNeeded(r.trim()),h=this.endTypeIfNeeded(r);this.addState(a,o),this.addState(l,h),this.currentDocument.relations.push({id1:a,id2:l,relationTitle:i?ai.sanitizeText(i,Ar()):void 0})}}addDescription(e,r){let i=this.currentDocument.states.get(e),a=r.startsWith(":")?r.replace(":","").trim():r;i?.descriptions?.push(ai.sanitizeText(a,Ar()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,r=""){if(!this.classes.has(e))this.classes.set(e,{id:e,styles:[],textStyles:[]});let i=this.classes.get(e);if(r&&i)r.split(Rv.STYLECLASS_SEP).forEach((a)=>{let o=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Rv.COLOR_KEYWORD).exec(a)){let h=o.replace(Rv.FILL_KEYWORD,Rv.BG_FILL).replace(Rv.COLOR_KEYWORD,Rv.FILL_KEYWORD);i.textStyles.push(h)}i.styles.push(o)})}getClasses(){return this.classes}setupToolTips(e){let r=v7();xn(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",(o)=>{let l=xn(o.currentTarget),h=l.attr("title");if(h===null)return;let d=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.bottom+"px"),r.html(Wb.sanitize(h)),l.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),xn(o.currentTarget).classed("hover",!1)})}setCssClass(e,r){e.split(",").forEach((i)=>{let a=this.getState(i);if(!a){let o=i.trim();this.addState(o),a=this.getState(o)}a?.classes?.push(r)})}setStyle(e,r){this.getState(e)?.styles?.push(r)}setTextStyle(e,r){this.getState(e)?.textStyles?.push(r)}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirectionStatement(){return this.rootDoc.find((e)=>e.stmt===oWr)}getDirection(){return this.getDirectionStatement()?.value??lwi}setDirection(e){let r=this.getDirectionStatement();if(r)r.value=e;else this.rootDoc.unshift({stmt:oWr,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){let e=Ar();for(let r of this.nodes)if(r.wrappingWidth??=e.state?.wrappingWidth,!r.isGroup)r.minWidth??=e.state?.minNodeWidth;return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:CWr(this.getRootDocV2())}}getConfig(){return Ar().state}},Dwi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d{if(!e.doc)return r;let i=r;for(let a of e.doc)if(a.stmt==="dir")i=a.value;return i},"getDir"),uwi=I(function(e,r){return r.db.getClasses()},"getClasses"),hwi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing class diagram (v3)",r);let{securityLevel:o,state:l,layout:h}=Ar();a.db.setDiagramId(r);let d=a.db.getData(),p=ly(r,o);d.type=a.type,d.layoutAlgorithm=oy(h),d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,d.markers=["aggregation","extension","composition","dependency","lollipop"],d.diagramId=r,await sy(d,p);let m=8;Ts.insertTitle(p,"classDiagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(p,m,"classDiagram",l?.useMaxWidth??!0)},"draw"),dwi={getClasses:uwi,draw:hwi,getDir:cwi},uWr={parser:iwi,get db(){return new awi},renderer:dwi,styles:lwi,init:I((e)=>{if(!e.class)e.class={};e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});function Vke(e="",r=0,i="",a=Kft){let o=i!==null&&i.length>0?`${a}${i}`:"";return`${Nwi}-${e}${o}-${r}`}function moe(e,r,i){if(!r.id||r.id===""||r.id==="")return;if(r.cssClasses){if(!Array.isArray(r.cssCompiledStyles))r.cssCompiledStyles=[];r.cssClasses.split(" ").forEach((o)=>{let l=i.get(o);if(l)r.cssCompiledStyles=[...r.cssCompiledStyles??[],...l.styles]})}let a=e.find((o)=>o.id===r.id);if(a)Object.assign(a,r);else e.push(r)}function RWr(e){return e?.classes?.join(" ")??""}function IWr(e){return e?.styles??[]}var Yft,fwi,pwi="TB",yWr="TB",dWr="dir",KY="state",jY="root",Wft="relation",gwi="classDef",mwi="style",bwi="applyClass",yoe="default",vWr="divider",_Wr="fill:none",EWr="fill: #333",wWr="c",SWr="markdown",TWr="normal",Hft="rect",qft="rectWithTitle",ywi="stateStart",vwi="stateEnd",jft="divider",fWr="roundedWithTitle",_wi="note",Ewi="noteGroup",voe="statediagram",wwi="state",Swi,xWr="transition",Twi="note",xwi="note-edge",Cwi,kwi,Awi="cluster",Rwi,Iwi="cluster-alt",Owi,CWr="parent",kWr="note",Nwi="state",Kft="----",Lwi,pWr,zke,tM=0,AWr=0,goe,Mwi,Dwi,gWr,boe,Pwi,OWr,Bwi,Fwi,$wi,Rv,mWr,bWr,Gke,Uwi,Gwi,zwi,Vwi,NWr;var LWr=Re(()=>{PC();pT();cT();WE();V3();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();dl();SP();Yft=function(){var e=I(function(ne,ie,se,oe){for(se=se||{},oe=ne.length;oe--;se[ne[oe]]=ie);return se},"o"),r=[1,2],i=[1,3],a=[1,4],o=[2,4],l=[1,9],h=[1,11],d=[1,16],p=[1,17],m=[1,18],y=[1,19],v=[1,33],w=[1,20],T=[1,21],x=[1,22],k=[1,23],A=[1,24],R=[1,26],N=[1,27],L=[1,28],B=[1,29],D=[1,30],P=[1,31],F=[1,32],H=[1,35],W=[1,36],X=[1,37],Q=[1,38],Y=[1,34],K=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],J=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],Z=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],j={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:I(function(ie,se,oe,he,ye,Se,Ie){var Ee=Se.length-1;switch(ye){case 3:return he.setRootDoc(Se[Ee]),Se[Ee];break;case 4:this.$=[];break;case 5:if(Se[Ee]!="nl")Se[Ee-1].push(Se[Ee]),this.$=Se[Ee-1];break;case 6:case 7:this.$=Se[Ee];break;case 8:this.$="nl";break;case 12:this.$=Se[Ee];break;case 13:let Ye=Se[Ee-1];Ye.description=he.trimColon(Se[Ee]),this.$=Ye;break;case 14:this.$={stmt:"relation",state1:Se[Ee-2],state2:Se[Ee]};break;case 15:let Qe=he.trimColon(Se[Ee]);this.$={stmt:"relation",state1:Se[Ee-3],state2:Se[Ee-1],description:Qe};break;case 19:this.$={stmt:"state",id:Se[Ee-3],type:"default",description:"",doc:Se[Ee-1]};break;case 20:var ze=Se[Ee],Me=Se[Ee-2].trim();if(Se[Ee].match(":")){var Xe=Se[Ee].split(":");ze=Xe[0],Me=[Me,Xe[1]]}this.$={stmt:"state",id:ze,type:"default",description:Me};break;case 21:this.$={stmt:"state",id:Se[Ee-3],type:"default",description:Se[Ee-5],doc:Se[Ee-1]};break;case 22:this.$={stmt:"state",id:Se[Ee],type:"fork"};break;case 23:this.$={stmt:"state",id:Se[Ee],type:"join"};break;case 24:this.$={stmt:"state",id:Se[Ee],type:"choice"};break;case 25:this.$={stmt:"state",id:he.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:Se[Ee-1].trim(),note:{position:Se[Ee-2].trim(),text:Se[Ee].trim()}};break;case 29:this.$=Se[Ee].trim(),he.setAccTitle(this.$);break;case 30:case 31:this.$=Se[Ee].trim(),he.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:Se[Ee-3],url:Se[Ee-2],tooltip:Se[Ee-1]};break;case 33:this.$={stmt:"click",id:Se[Ee-3],url:Se[Ee-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:Se[Ee-1].trim(),classes:Se[Ee].trim()};break;case 36:this.$={stmt:"style",id:Se[Ee-1].trim(),styleClass:Se[Ee].trim()};break;case 37:this.$={stmt:"applyClass",id:Se[Ee-1].trim(),styleClass:Se[Ee].trim()};break;case 38:he.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:he.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:he.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:he.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:Se[Ee].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:Se[Ee-2].trim(),classes:[Se[Ee].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:Se[Ee-2].trim(),classes:[Se[Ee].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:r,5:i,6:a},{1:[3]},{3:5,4:r,5:i,6:a},{3:6,4:r,5:i,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],o,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:p,19:m,22:y,24:v,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:W,53:X,54:Q,57:Y},e(K,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:d,17:p,19:m,22:y,24:v,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:W,53:X,54:Q,57:Y},e(K,[2,7]),e(K,[2,8]),e(K,[2,9]),e(K,[2,10]),e(K,[2,11]),e(K,[2,12],{14:[1,40],15:[1,41]}),e(K,[2,16]),{18:[1,42]},e(K,[2,18],{20:[1,43]}),{23:[1,44]},e(K,[2,22]),e(K,[2,23]),e(K,[2,24]),e(K,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(K,[2,28]),{34:[1,49]},{36:[1,50]},e(K,[2,31]),{13:51,24:v,57:Y},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(J,[2,44],{58:[1,56]}),e(J,[2,45],{58:[1,57]}),e(K,[2,38]),e(K,[2,39]),e(K,[2,40]),e(K,[2,41]),e(K,[2,6]),e(K,[2,13]),{13:58,24:v,57:Y},e(K,[2,17]),e(Z,o,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(K,[2,29]),e(K,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(K,[2,14],{14:[1,71]}),{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:p,19:m,21:[1,72],22:y,24:v,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:W,53:X,54:Q,57:Y},e(K,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(K,[2,34]),e(K,[2,35]),e(K,[2,36]),e(K,[2,37]),e(J,[2,46]),e(J,[2,47]),e(K,[2,15]),e(K,[2,19]),e(Z,o,{7:78}),e(K,[2,26]),e(K,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:d,17:p,19:m,21:[1,81],22:y,24:v,25:w,26:T,27:x,28:k,29:A,32:25,33:R,35:N,37:L,38:B,41:D,45:P,48:F,51:H,52:W,53:X,54:Q,57:Y},e(K,[2,32]),e(K,[2,33]),e(K,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:I(function(ie,se){if(se.recoverable)this.trace(ie);else{var oe=Error(ie);throw oe.hash=se,oe}},"parseError"),parse:I(function(ie){var se=this,oe=[0],he=[],ye=[null],Se=[],Ie=this.table,Ee="",ze=0,Me=0,Xe=0,Ye=2,Qe=1,xt=Se.slice.call(arguments,1),dt=Object.create(this.lexer),zt={yy:{}};for(var Kt in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Kt))zt.yy[Kt]=this.yy[Kt];if(dt.setInput(ie,zt.yy),zt.yy.lexer=dt,zt.yy.parser=this,typeof dt.yylloc>"u")dt.yylloc={};var rr=dt.yylloc;Se.push(rr);var je=dt.options&&dt.options.ranges;if(typeof zt.yy.parseError==="function")this.parseError=zt.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Nt(ke){oe.length=oe.length-2*ke,ye.length=ye.length-ke,Se.length=Se.length-ke}I(Nt,"popStack");function ct(){var ke=he.pop()||dt.lex()||Qe;if(typeof ke!=="number"){if(ke instanceof Array)he=ke,ke=he.pop();ke=se.symbols_[ke]||ke}return ke}I(ct,"lex");var bt,Pe,Ue,qe,Ke,Je,De={},le,pe,fe,be;while(!0){if(Ue=oe[oe.length-1],this.defaultActions[Ue])qe=this.defaultActions[Ue];else{if(bt===null||typeof bt>"u")bt=ct();qe=Ie[Ue]&&Ie[Ue][bt]}if(typeof qe>"u"||!qe.length||!qe[0]){var Ge="";be=[];for(le in Ie[Ue])if(this.terminals_[le]&&le>Ye)be.push("'"+this.terminals_[le]+"'");if(dt.showPosition)Ge="Parse error on line "+(ze+1)+`: +`+dt.showPosition()+` +Expecting `+be.join(", ")+", got '"+(this.terminals_[bt]||bt)+"'";else Ge="Parse error on line "+(ze+1)+": Unexpected "+(bt==Qe?"end of input":"'"+(this.terminals_[bt]||bt)+"'");this.parseError(Ge,{text:dt.match,token:this.terminals_[bt]||bt,line:dt.yylineno,loc:rr,expected:be})}if(qe[0]instanceof Array&&qe.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ue+", token: "+bt);switch(qe[0]){case 1:if(oe.push(bt),ye.push(dt.yytext),Se.push(dt.yylloc),oe.push(qe[1]),bt=null,!Pe){if(Me=dt.yyleng,Ee=dt.yytext,ze=dt.yylineno,rr=dt.yylloc,Xe>0)Xe--}else bt=Pe,Pe=null;break;case 2:if(pe=this.productions_[qe[1]][1],De.$=ye[ye.length-pe],De._$={first_line:Se[Se.length-(pe||1)].first_line,last_line:Se[Se.length-1].last_line,first_column:Se[Se.length-(pe||1)].first_column,last_column:Se[Se.length-1].last_column},je)De._$.range=[Se[Se.length-(pe||1)].range[0],Se[Se.length-1].range[1]];if(Je=this.performAction.apply(De,[Ee,Me,ze,zt.yy,qe[1],ye,Se].concat(xt)),typeof Je<"u")return Je;if(pe)oe=oe.slice(0,-1*pe*2),ye=ye.slice(0,-1*pe),Se=Se.slice(0,-1*pe);oe.push(this.productions_[qe[1]][0]),ye.push(De.$),Se.push(De._$),fe=Ie[oe[oe.length-2]][oe[oe.length-1]],oe.push(fe);break;case 3:return!0}}return!0},"parse")},ee=function(){var ne={EOF:1,parseError:I(function(se,oe){if(this.yy.parser)this.yy.parser.parseError(se,oe);else throw Error(se)},"parseError"),setInput:I(function(ie,se){if(this.yy=se||this.yy||{},this._input=ie,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var ie=this._input[0];this.yytext+=ie,this.yyleng++,this.offset++,this.match+=ie,this.matched+=ie;var se=ie.match(/(?:\r\n?|\n).*/g);if(se)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),ie},"input"),unput:I(function(ie){var se=ie.length,oe=ie.split(/(?:\r\n?|\n)/g);this._input=ie+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-se),this.offset-=se;var he=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),oe.length-1)this.yylineno-=oe.length-1;var ye=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===he.length?this.yylloc.first_column:0)+he[he.length-oe.length].length-oe[0].length:this.yylloc.first_column-se},this.options.ranges)this.yylloc.range=[ye[0],ye[0]+this.yyleng-se];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(ie){this.unput(this.match.slice(ie))},"less"),pastInput:I(function(){var ie=this.matched.substr(0,this.matched.length-this.match.length);return(ie.length>20?"...":"")+ie.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var ie=this.match;if(ie.length<20)ie+=this._input.substr(0,20-ie.length);return(ie.substr(0,20)+(ie.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var ie=this.pastInput(),se=Array(ie.length+1).join("-");return ie+this.upcomingInput()+` +`+se+"^"},"showPosition"),test_match:I(function(ie,se){var oe,he,ye;if(this.options.backtrack_lexer){if(ye={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)ye.yylloc.range=this.yylloc.range.slice(0)}if(he=ie[0].match(/(?:\r\n?|\n).*/g),he)this.yylineno+=he.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:he?he[he.length-1].length-he[he.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+ie[0].length},this.yytext+=ie[0],this.match+=ie[0],this.matches=ie,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(ie[0].length),this.matched+=ie[0],oe=this.performAction.call(this,this.yy,this,se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(oe)return oe;else if(this._backtrack){for(var Se in ye)this[Se]=ye[Se];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var ie,se,oe,he;if(!this._more)this.yytext="",this.match="";var ye=this._currentRules();for(var Se=0;Sese[0].length)){if(se=oe,he=Se,this.options.backtrack_lexer)if(ie=this.test_match(oe,ye[Se]),ie!==!1)return ie;else if(this._backtrack){se=!1;continue}else return!1;else if(!this.options.flex)break}if(se){if(ie=this.test_match(se,ye[he]),ie!==!1)return ie;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var se=this.next();if(se)return se;else return this.lex()},"lex"),begin:I(function(se){this.conditionStack.push(se)},"begin"),popState:I(function(){var se=this.conditionStack.length-1;if(se>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(se){if(se=this.conditionStack.length-1-Math.abs(se||0),se>=0)return this.conditionStack[se];else return"INITIAL"},"topState"),pushState:I(function(se){this.begin(se)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(se,oe,he,ye){function Se(){let Ee=oe.yytext.indexOf("%%");if(Ee===0)return!1;if(Ee>0){let ze=oe.yytext.slice(0,Ee),Me=oe.yytext.slice(Ee);if(Me)se.lexer.unput(Me);oe.yytext=ze}return!0}I(Se,"processId");var Ie=ye;switch(he){case 0:return 38;case 1:return 40;case 2:return 39;case 3:return 44;case 4:return 51;case 5:return 52;case 6:return 53;case 7:return 54;case 8:return 5;case 9:break;case 10:break;case 11:break;case 12:break;case 13:return this.pushState("SCALE"),17;break;case 14:return 18;case 15:this.popState();break;case 16:return this.begin("acc_title"),33;break;case 17:return this.popState(),"acc_title_value";break;case 18:return this.begin("acc_descr"),35;break;case 19:return this.popState(),"acc_descr_value";break;case 20:this.begin("acc_descr_multiline");break;case 21:this.popState();break;case 22:return"acc_descr_multiline_value";case 23:return this.pushState("CLASSDEF"),41;break;case 24:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 25:return this.popState(),this.pushState("CLASSDEFID"),42;break;case 26:return this.popState(),43;break;case 27:return this.pushState("CLASS"),48;break;case 28:return this.popState(),this.pushState("CLASS_STYLE"),49;break;case 29:return this.popState(),50;break;case 30:return this.pushState("STYLE"),45;break;case 31:return this.popState(),this.pushState("STYLEDEF_STYLES"),46;break;case 32:return this.popState(),47;break;case 33:return this.pushState("SCALE"),17;break;case 34:return 18;case 35:this.popState();break;case 36:this.pushState("STATE");break;case 37:return this.popState(),oe.yytext=oe.yytext.slice(0,-8).trim(),25;break;case 38:return this.popState(),oe.yytext=oe.yytext.slice(0,-8).trim(),26;break;case 39:return this.popState(),oe.yytext=oe.yytext.slice(0,-10).trim(),27;break;case 40:return this.popState(),oe.yytext=oe.yytext.slice(0,-8).trim(),25;break;case 41:return this.popState(),oe.yytext=oe.yytext.slice(0,-8).trim(),26;break;case 42:return this.popState(),oe.yytext=oe.yytext.slice(0,-10).trim(),27;break;case 43:return 51;case 44:return 52;case 45:return 53;case 46:return 54;case 47:this.pushState("STATE_STRING");break;case 48:return this.pushState("STATE_ID"),"AS";break;case 49:if(!Se())return;return this.popState(),"ID";break;case 50:this.popState();break;case 51:return"STATE_DESCR";case 52:throw Error('Error: State name must be a single word. Found: "'+oe.yytext.trim()+'"');case 53:return 19;case 54:this.popState();break;case 55:return this.popState(),this.pushState("struct"),20;break;case 56:return this.popState(),21;break;case 57:break;case 58:return this.begin("NOTE"),29;break;case 59:return this.popState(),this.pushState("NOTE_ID"),59;break;case 60:return this.popState(),this.pushState("NOTE_ID"),60;break;case 61:this.popState(),this.pushState("FLOATING_NOTE");break;case 62:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";break;case 63:break;case 64:return"NOTE_TEXT";case 65:if(!Se())return;return this.popState(),"ID";break;case 66:if(!Se())return;return this.popState(),this.pushState("NOTE_TEXT"),24;break;case 67:return this.popState(),oe.yytext=oe.yytext.substr(2).trim(),31;break;case 68:return this.popState(),oe.yytext=oe.yytext.slice(0,-8).trim(),31;break;case 69:return 6;case 70:return 6;case 71:return 16;case 72:return 57;case 73:if(!Se())return;return 24;case 74:return oe.yytext=oe.yytext.trim(),14;break;case 75:return 15;case 76:return 28;case 77:return 58;case 78:return 5;case 79:return"INVALID"}},"anonymous"),rules:[/^(?:click\b)/i,/^(?:href\b)/i,/^(?:"[^"]*")/i,/^(?:default\b)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:classDef\s+)/i,/^(?:DEFAULT\s+)/i,/^(?:\w+\s+)/i,/^(?:[^\n]*)/i,/^(?:class\s+)/i,/^(?:(\w+)+((,\s*\w+)*))/i,/^(?:[^\n]*)/i,/^(?:style\s+)/i,/^(?:[\w,]+\s+)/i,/^(?:[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:.*\[\[choice\]\])/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\w+\s+\w+.*?\{)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?\n\s*end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:(?:[^:\n;]|:[^:\n;])+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?::::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[10,11,12],inclusive:!1},struct:{rules:[10,11,12,23,27,30,36,43,44,45,46,56,57,58,72,73,74,75,76,77],inclusive:!1},FLOATING_NOTE_ID:{rules:[65],inclusive:!1},FLOATING_NOTE:{rules:[62,63,64],inclusive:!1},NOTE_TEXT:{rules:[67,68],inclusive:!1},NOTE_ID:{rules:[66],inclusive:!1},NOTE:{rules:[59,60,61],inclusive:!1},STYLEDEF_STYLEOPTS:{rules:[],inclusive:!1},STYLEDEF_STYLES:{rules:[32],inclusive:!1},STYLE_IDS:{rules:[],inclusive:!1},STYLE:{rules:[31],inclusive:!1},CLASS_STYLE:{rules:[29],inclusive:!1},CLASS:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[26],inclusive:!1},CLASSDEF:{rules:[24,25],inclusive:!1},acc_descr_multiline:{rules:[21,22],inclusive:!1},acc_descr:{rules:[19],inclusive:!1},acc_title:{rules:[17],inclusive:!1},SCALE:{rules:[14,15,34,35],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[49],inclusive:!1},STATE_STRING:{rules:[50,51],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[10,11,12,37,38,39,40,41,42,47,48,52,53,54,55],inclusive:!1},ID:{rules:[10,11,12],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,12,13,16,18,20,23,27,30,33,36,55,58,69,70,71,72,73,74,75,77,78,79],inclusive:!0}}};return ne}();j.lexer=ee;function z(){this.yy={}}return I(z,"Parser"),z.prototype=j,j.Parser=z,new z}();Yft.parser=Yft;fwi=Yft,Swi=`${voe}-${wwi}`,Cwi=`${xWr} ${xwi}`,kwi=`${voe}-${Twi}`,Rwi=`${voe}-${Awi}`,Owi=`${voe}-${Iwi}`,Lwi=`${Kft}${kWr}`,pWr=`${Kft}${CWr}`,zke=new Map,goe=new Map,Mwi=I((e,r,i,a)=>{if(e===jft&&i?.id!==void 0&&goe.has(i.id)){let h=goe.get(i.id);return goe.set(r,h),h}let o=AWr++,l=a?void 0:o;return goe.set(r,l),l},"colorSlotFor");I(Vke,"stateDomId");Dwi=I((e,r,i,a,o,l,h,d)=>{Ze.trace("items",r),r.forEach((p)=>{switch(p.stmt){case KY:boe(e,p,i,a,o,l,h,d);break;case yoe:boe(e,p,i,a,o,l,h,d);break;case Wft:{boe(e,p.state1,i,a,o,l,h,d),boe(e,p.state2,i,a,o,l,h,d);let m=h==="neo",y={id:"edge"+tM,start:p.state1.id,end:p.state2.id,arrowhead:"normal",arrowTypeEnd:m?"arrow_barb_neo":"arrow_barb",style:_Wr,labelStyle:"",label:ai.sanitizeText(p.description??"",Ar()),arrowheadStyle:EWr,labelpos:wWr,labelType:SWr,thickness:TWr,classes:xWr,look:h};o.push(y),tM++}break}})},"setupDoc"),gWr=I((e,r=yWr)=>{let i=r;if(e.doc){for(let a of e.doc)if(a.stmt==="dir")i=a.value}return i},"getDir");I(moe,"insertOrUpdateNode");I(RWr,"getClassesFromDbInfo");I(IWr,"getStylesFromDbInfo");boe=I((e,r,i,a,o,l,h,d)=>{let p=r.id,m=i.get(p),y=RWr(m),v=IWr(m),w=Ar(),T=y.trim()!==""||v.length>0;if(Ze.info("dataFetcher parsedItem",r,m,v),p!=="root"){let x=Hft;if(r.start===!0)x=ywi;else if(r.start===!1)x=vwi;if(r.type!==yoe)x=r.type;if(!zke.get(p))zke.set(p,{id:p,shape:x,description:ai.sanitizeText(p,w),cssClasses:`${y} ${Swi}`,cssStyles:v});let k=zke.get(p);if(r.description){if(Array.isArray(k.description))k.shape=qft,k.description.push(r.description);else if(k.description?.length&&k.description.length>0)if(k.shape=qft,k.description===p)k.description=[r.description];else k.description=[k.description,r.description];else k.shape=Hft,k.description=r.description;k.description=ai.sanitizeTextOrArray(k.description,w)}if(k.description?.length===1&&k.shape===qft)if(k.type==="group")k.shape=fWr;else k.shape=Hft;if(!k.type&&r.doc)Ze.info("Setting cluster for XCX",p,gWr(r)),k.type="group",k.isGroup=!0,k.dir=gWr(r),k.shape=r.type===vWr?jft:fWr,k.colorIndex=Mwi(k.shape,p,e,T),k.cssClasses=`${k.cssClasses} ${Rwi} ${l?Owi:""}`;let A={labelStyle:"",shape:k.shape,label:k.description,cssClasses:k.cssClasses,cssCompiledStyles:[],cssStyles:k.cssStyles,id:p,dir:k.dir,domId:Vke(p,tM),type:k.type,isGroup:k.type==="group",colorIndex:k.colorIndex,padding:8,rx:10,ry:10,look:h,labelType:"markdown"};if(A.shape===jft)A.label="";if(e&&e.id!=="root")Ze.trace("Setting node ",p," to be child of its parent ",e.id),A.parentId=e.id;if(A.centerLabel=!0,r.note){let R={labelStyle:"",shape:_wi,label:r.note.text,labelType:"markdown",cssClasses:kwi,cssStyles:[],cssCompiledStyles:[],id:p+Lwi+"-"+tM,domId:Vke(p,tM,kWr),type:"node",isGroup:!1,padding:w.flowchart?.padding,look:h,position:r.note.position},N=p+pWr,L={labelStyle:"",shape:Ewi,label:r.note.text,cssClasses:k.cssClasses,cssStyles:[],id:p+pWr,domId:Vke(p,tM,CWr),type:"group",isGroup:!0,padding:16,look:h,position:r.note.position};tM++,L.id=N,R.parentId=N,moe(a,L,d),moe(a,R,d),moe(a,A,d);let B=p,D=R.id;if(r.note.position==="left of")B=R.id,D=p;o.push({id:B+"-"+D,start:B,end:D,arrowhead:"none",arrowTypeEnd:"",style:_Wr,labelStyle:"",classes:Cwi,pattern:"dashed",arrowheadStyle:EWr,labelpos:wWr,labelType:SWr,thickness:TWr,look:h})}else moe(a,A,d)}if(r.doc)Ze.trace("Adding nodes children "),Dwi(r,r.doc,i,a,o,!l,h,d)},"dataFetcher"),Pwi=I(()=>{zke.clear(),tM=0,AWr=0,goe.clear()},"reset"),OWr=I((e,r=yWr)=>{if(!e.doc)return r;let i=r;for(let a of e.doc)if(a.stmt==="dir")i=a.value;return i},"getDir"),Bwi=I(function(e,r){return r.db.getClasses()},"getClasses"),Fwi=I(async function(e,r,i,a){Ze.info("REF0:"),Ze.info("Drawing state diagram (v2)",r);let{securityLevel:o,state:l,layout:h}=Ar();a.db.extract(a.db.getRootDocV2());let d=a.db.getData(),p=ly(r,o);if(d.type=a.type,d.layoutAlgorithm=oy(h),d.nodeSpacing=l?.nodeSpacing||50,d.rankSpacing=l?.rankSpacing||50,Ar().look==="neo")d.markers=["barbNeo"];else d.markers=["barb"];d.diagramId=r,await sy(d,p);let y=8;try{(typeof a.db.getLinks==="function"?a.db.getLinks():new Map).forEach((w,T)=>{let x=typeof T==="string"?T:typeof T?.id==="string"?T.id:"",k=d.nodes.find((D)=>D.id===x);if(!x){Ze.warn("⚠️ Invalid or missing stateId from key:",JSON.stringify(T));return}let A=p.node()?.querySelectorAll("g.node, g.rough-node"),R;if(A?.forEach((D)=>{let P=D.textContent?.trim();if(D.id===k?.domId||P===x)R=D}),!R){Ze.warn("⚠️ Could not find node matching text:",x);return}let N=R.parentNode;if(!N){Ze.warn("⚠️ Node has no parent, cannot wrap:",x);return}let L=document.createElementNS("http://www.w3.org/2000/svg","a"),B=w.url.replace(/^"+|"+$/g,"");if(L.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",B),L.setAttribute("target","_blank"),w.tooltip){let D=w.tooltip.replace(/^"+|"+$/g,"");L.setAttribute("title",D),R.setAttribute("title",D)}N.replaceChild(L,R),L.appendChild(R),Ze.info("\uD83D\uDD17 Wrapped node in tag for:",x,w.url)})}catch(v){Ze.error("❌ Error injecting clickable links:",v)}Ts.insertTitle(p,"statediagramTitleText",l?.titleTopMargin??25,a.db.getDiagramTitle()),a1(p,y,voe,l?.useMaxWidth??!0)},"draw"),$wi={getClasses:Bwi,draw:Fwi,getDir:OWr},Rv={START_NODE:"[*]",START_TYPE:"start",END_NODE:"[*]",END_TYPE:"end",COLOR_KEYWORD:"color",FILL_KEYWORD:"fill",BG_FILL:"bgFill",STYLECLASS_SEP:","},mWr=I(()=>new Map,"newClassesList"),bWr=I(()=>({relations:[],states:new Map,documents:{}}),"newDoc"),Gke=I((e)=>JSON.parse(JSON.stringify(e)),"clone"),Uwi=class{constructor(e){this.version=e,this.nodes=[],this.edges=[],this.rootDoc=[],this.classes=mWr(),this.documents={root:bWr()},this.currentDocument=this.documents.root,this.startEndCount=0,this.dividerCnt=0,this.links=new Map,this.funs=[],this.getAccTitle=oo,this.setAccTitle=Ys,this.getAccDescription=lo,this.setAccDescription=Js,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.clear(),this.setRootDoc=this.setRootDoc.bind(this),this.getDividerId=this.getDividerId.bind(this),this.setDirection=this.setDirection.bind(this),this.trimColon=this.trimColon.bind(this),this.bindFunctions=this.bindFunctions.bind(this)}static{I(this,"StateDB")}static{this.relationType={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3}}extract(e){this.clear(!0);for(let a of Array.isArray(e)?e:e.doc)switch(a.stmt){case KY:this.addState(a.id.trim(),a.type,a.doc,a.description,a.note);break;case Wft:this.addRelation(a.state1,a.state2,a.description);break;case gwi:this.addStyleClass(a.id.trim(),a.classes);break;case mwi:this.handleStyleDef(a);break;case bwi:this.setCssClass(a.id.trim(),a.styleClass);break;case"click":this.addLink(a.id,a.url,a.tooltip);break}let r=this.getStates(),i=Ar();Pwi(),boe(void 0,this.getRootDocV2(),r,this.nodes,this.edges,!0,i.look,this.classes);for(let a of this.nodes){if(!Array.isArray(a.label))continue;if(a.description=a.label.slice(1),a.isGroup&&a.description.length>0)throw Error(`Group nodes can only have label. Remove the additional description for node [${a.id}]`);a.label=a.label[0]}}handleStyleDef(e){let r=e.id.trim().split(","),i=e.styleClass.split(",");for(let a of r){let o=this.getState(a);if(!o){let l=a.trim();this.addState(l),o=this.getState(l)}if(o)o.styles=i.map((l)=>l.replace(/;/g,"")?.trim())}}setRootDoc(e){if(Ze.info("Setting root doc",e),this.rootDoc=e,this.version===1)this.extract(e);else this.extract(this.getRootDocV2())}docTranslator(e,r,i){if(r.stmt===Wft){this.docTranslator(e,r.state1,!0),this.docTranslator(e,r.state2,!1);return}if(r.stmt===KY)if(r.id===Rv.START_NODE)r.id=e.id+(i?"_start":"_end"),r.start=i;else r.id=r.id.trim();if(r.stmt!==jY&&r.stmt!==KY||!r.doc)return;let a=[],o=[];for(let l of r.doc)if(l.type===vWr){let h=Gke(l);h.doc=Gke(o),a.push(h),o=[]}else o.push(l);if(a.length>0&&o.length>0){let l={stmt:KY,id:ttt(),type:"divider",doc:Gke(o)};a.push(Gke(l)),r.doc=a}r.doc.forEach((l)=>this.docTranslator(r,l,!0))}getRootDocV2(){return this.docTranslator({id:jY,stmt:jY},{id:jY,stmt:jY,doc:this.rootDoc},!0),{id:jY,doc:this.rootDoc}}addState(e,r=yoe,i=void 0,a=void 0,o=void 0,l=void 0,h=void 0,d=void 0){let p=e?.trim();if(!this.currentDocument.states.has(p))Ze.info("Adding state ",p,a),this.currentDocument.states.set(p,{stmt:KY,id:p,descriptions:[],type:r,doc:i,note:o,classes:[],styles:[],textStyles:[]});else{let m=this.currentDocument.states.get(p);if(!m)throw Error(`State not found: ${p}`);if(!m.doc)m.doc=i;if(!m.type)m.type=r}if(a)Ze.info("Setting state description",p,a),(Array.isArray(a)?a:[a]).forEach((y)=>this.addDescription(p,y.trim()));if(o){let m=this.currentDocument.states.get(p);if(!m)throw Error(`State not found: ${p}`);m.note=o,m.note.text=ai.sanitizeText(m.note.text,Ar())}if(l)Ze.info("Setting state classes",p,l),(Array.isArray(l)?l:[l]).forEach((y)=>this.setCssClass(p,y.trim()));if(h)Ze.info("Setting state styles",p,h),(Array.isArray(h)?h:[h]).forEach((y)=>this.setStyle(p,y.trim()));if(d)Ze.info("Setting state styles",p,h),(Array.isArray(d)?d:[d]).forEach((y)=>this.setTextStyle(p,y.trim()))}clear(e){if(this.nodes=[],this.edges=[],this.funs=[this.setupToolTips.bind(this)],this.documents={root:bWr()},this.currentDocument=this.documents.root,this.startEndCount=0,this.classes=mWr(),!e)this.links=new Map,qs()}getState(e){return this.currentDocument.states.get(e)}getStates(){return this.currentDocument.states}logDocuments(){Ze.info("Documents = ",this.documents)}getRelations(){return this.currentDocument.relations}addLink(e,r,i){this.links.set(e,{url:r,tooltip:i}),Ze.warn("Adding link",e,r,i)}getLinks(){return this.links}startIdIfNeeded(e=""){if(e===Rv.START_NODE)return this.startEndCount++,`${Rv.START_TYPE}${this.startEndCount}`;return e}startTypeIfNeeded(e="",r=yoe){return e===Rv.START_NODE?Rv.START_TYPE:r}endIdIfNeeded(e=""){if(e===Rv.END_NODE)return this.startEndCount++,`${Rv.END_TYPE}${this.startEndCount}`;return e}endTypeIfNeeded(e="",r=yoe){return e===Rv.END_NODE?Rv.END_TYPE:r}addRelationObjs(e,r,i=""){let a=this.startIdIfNeeded(e.id.trim()),o=this.startTypeIfNeeded(e.id.trim(),e.type),l=this.startIdIfNeeded(r.id.trim()),h=this.startTypeIfNeeded(r.id.trim(),r.type);this.addState(a,o,e.doc,e.description,e.note,e.classes,e.styles,e.textStyles),this.addState(l,h,r.doc,r.description,r.note,r.classes,r.styles,r.textStyles),this.currentDocument.relations.push({id1:a,id2:l,relationTitle:ai.sanitizeText(i,Ar())})}addRelation(e,r,i){if(typeof e==="object"&&typeof r==="object")this.addRelationObjs(e,r,i);else if(typeof e==="string"&&typeof r==="string"){let a=this.startIdIfNeeded(e.trim()),o=this.startTypeIfNeeded(e),l=this.endIdIfNeeded(r.trim()),h=this.endTypeIfNeeded(r);this.addState(a,o),this.addState(l,h),this.currentDocument.relations.push({id1:a,id2:l,relationTitle:i?ai.sanitizeText(i,Ar()):void 0})}}addDescription(e,r){let i=this.currentDocument.states.get(e),a=r.startsWith(":")?r.replace(":","").trim():r;i?.descriptions?.push(ai.sanitizeText(a,Ar()))}cleanupLabel(e){return e.startsWith(":")?e.slice(2).trim():e.trim()}getDividerId(){return this.dividerCnt++,`divider-id-${this.dividerCnt}`}addStyleClass(e,r=""){if(!this.classes.has(e))this.classes.set(e,{id:e,styles:[],textStyles:[]});let i=this.classes.get(e);if(r&&i)r.split(Rv.STYLECLASS_SEP).forEach((a)=>{let o=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Rv.COLOR_KEYWORD).exec(a)){let h=o.replace(Rv.FILL_KEYWORD,Rv.BG_FILL).replace(Rv.COLOR_KEYWORD,Rv.FILL_KEYWORD);i.textStyles.push(h)}i.styles.push(o)})}getClasses(){return this.classes}setupToolTips(e){let r=E7();xn(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover",(o)=>{let l=xn(o.currentTarget),h=l.attr("title");if(h===null)return;let d=o.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.style("left",window.scrollX+d.left+(d.right-d.left)/2+"px").style("top",window.scrollY+d.bottom+"px"),r.html(Wb.sanitize(h)),l.classed("hover",!0)}).on("mouseout",(o)=>{r.transition().duration(500).style("opacity",0),xn(o.currentTarget).classed("hover",!1)})}setCssClass(e,r){e.split(",").forEach((i)=>{let a=this.getState(i);if(!a){let o=i.trim();this.addState(o),a=this.getState(o)}a?.classes?.push(r)})}setStyle(e,r){this.getState(e)?.styles?.push(r)}setTextStyle(e,r){this.getState(e)?.textStyles?.push(r)}bindFunctions(e){this.funs.forEach((r)=>{r(e)})}getDirectionStatement(){return this.rootDoc.find((e)=>e.stmt===dWr)}getDirection(){return this.getDirectionStatement()?.value??pwi}setDirection(e){let r=this.getDirectionStatement();if(r)r.value=e;else this.rootDoc.unshift({stmt:dWr,value:e})}trimColon(e){return e.startsWith(":")?e.slice(1).trim():e.trim()}getData(){let e=Ar();for(let r of this.nodes)if(r.wrappingWidth??=e.state?.wrappingWidth,!r.isGroup)r.minWidth??=e.state?.minNodeWidth;return{nodes:this.nodes,edges:this.edges,other:{},config:e,direction:OWr(this.getRootDocV2())}}getConfig(){return Ar().state}},Gwi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d` -${Dwi(e)} + `}return h},"genColor"),zwi=I((e)=>` +${Gwi(e)} defs [id$="-barbEnd"] { fill: ${e.transitionColor}; stroke: ${e.transitionColor}; @@ -2836,12 +2836,12 @@ g.stateGroup line { ry: ${e.radius}px; filter: ${e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${e.svgId}-drop-shadow)`):"none"} } -`,"getStyles"),Bwi=Pwi,kWr={parser:owi,get db(){return new Mwi(2)},renderer:Lwi,styles:Bwi,init:I((e)=>{if(!e.state)e.state={};e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});function PWr(e){let r=Ar().journey,i=r.maxLabelWidth;Gke=0;let a=60;Object.keys(NI).forEach((o)=>{let l=NI[o].color,h={cx:20,cy:a,r:7,fill:l,stroke:"#000",pos:NI[o].position};voe.drawCircle(e,h);let d=e.append("text").attr("visibility","hidden").text(o),p=d.node().getBoundingClientRect().width;d.remove();let m=[];if(p<=i)m=[o];else{let y=o.split(" "),E="";if(d=e.append("text").attr("visibility","hidden"),y.forEach((w)=>{let T=E?`${E} ${w}`:w;if(d.text(T),d.node().getBoundingClientRect().width>i){if(E)m.push(E);if(E=w,d.text(w),d.node().getBoundingClientRect().width>i){let k="";for(let A of w)if(k+=A,d.text(k+"-"),d.node().getBoundingClientRect().width>i)m.push(k.slice(0,-1)+"-"),k=A;E=k}}else E=T}),E)m.push(E);d.remove()}m.forEach((y,E)=>{let w={x:40,y:a+7+E*20,fill:"#666",text:y,textMargin:r.boxTextMargin??5},x=voe.drawText(e,w).node().getBoundingClientRect().width;if(x>Gke&&x>r.leftMargin-x)Gke=x}),a+=Math.max(20,m.length*20)})}var jft,Fwi,WY="",Xft,boe,yoe,$wi,Uwi,Gwi,zwi,Vwi,Hwi,qwi,RWr,Ywi,IWr,Wwi,jwi,Qft,Kwi,LWr,MWr,Xwi,Qwi,Kft=-1,Zwi,Jwi,DWr,eSi,voe,tSi,NI,Gke=0,VC,eM=0,rSi,yT,Wft,OWr,nSi,NWr,BWr;var FWr=Re(()=>{oI();z3();eo();Zs();Ja();dl();dl();jft=function(){var e=I(function(E,w,T,x){for(T=T||{},x=E.length;x--;T[E[x]]=w);return T},"o"),r=[6,8,10,11,12,14,16,17,18],i=[1,9],a=[1,10],o=[1,11],l=[1,12],h=[1,13],d=[1,14],p={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:I(function(w,T,x,k,A,R,N){var L=R.length-1;switch(A){case 1:return R[L-1];case 2:this.$=[];break;case 3:R[L-1].push(R[L]),this.$=R[L-1];break;case 4:case 5:this.$=R[L];break;case 6:case 7:this.$=[];break;case 8:k.setDiagramTitle(R[L].substr(6)),this.$=R[L].substr(6);break;case 9:this.$=R[L].trim(),k.setAccTitle(this.$);break;case 10:case 11:this.$=R[L].trim(),k.setAccDescription(this.$);break;case 12:k.addSection(R[L].substr(8)),this.$=R[L].substr(8);break;case 13:k.addTask(R[L-1],R[L]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:a,14:o,16:l,17:h,18:d},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:i,12:a,14:o,16:l,17:h,18:d},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:I(function(w,T){if(T.recoverable)this.trace(w);else{var x=Error(w);throw x.hash=T,x}},"parseError"),parse:I(function(w){var T=this,x=[0],k=[],A=[null],R=[],N=this.table,L="",B=0,D=0,P=0,F=2,H=1,K=R.slice.call(arguments,1),Q=Object.create(this.lexer),Z={yy:{}};for(var Y in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Y))Z.yy[Y]=this.yy[Y];if(Q.setInput(w,Z.yy),Z.yy.lexer=Q,Z.yy.parser=this,typeof Q.yylloc>"u")Q.yylloc={};var j=Q.yylloc;R.push(j);var te=Q.options&&Q.options.ranges;if(typeof Z.yy.parseError==="function")this.parseError=Z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function X(Me){x.length=x.length-2*Me,A.length=A.length-Me,R.length=R.length-Me}I(X,"popStack");function W(){var Me=k.pop()||Q.lex()||H;if(typeof Me!=="number"){if(Me instanceof Array)k=Me,Me=k.pop();Me=T.symbols_[Me]||Me}return Me}I(W,"lex");var J,z,ne,ie,le,se,he={},ye,xe,Ie,Ee;while(!0){if(ne=x[x.length-1],this.defaultActions[ne])ie=this.defaultActions[ne];else{if(J===null||typeof J>"u")J=W();ie=N[ne]&&N[ne][J]}if(typeof ie>"u"||!ie.length||!ie[0]){var Ue="";Ee=[];for(ye in N[ne])if(this.terminals_[ye]&&ye>F)Ee.push("'"+this.terminals_[ye]+"'");if(Q.showPosition)Ue="Parse error on line "+(B+1)+`: -`+Q.showPosition()+` -Expecting `+Ee.join(", ")+", got '"+(this.terminals_[J]||J)+"'";else Ue="Parse error on line "+(B+1)+": Unexpected "+(J==H?"end of input":"'"+(this.terminals_[J]||J)+"'");this.parseError(Ue,{text:Q.match,token:this.terminals_[J]||J,line:Q.yylineno,loc:j,expected:Ee})}if(ie[0]instanceof Array&&ie.length>1)throw Error("Parse Error: multiple actions possible at state: "+ne+", token: "+J);switch(ie[0]){case 1:if(x.push(J),A.push(Q.yytext),R.push(Q.yylloc),x.push(ie[1]),J=null,!z){if(D=Q.yyleng,L=Q.yytext,B=Q.yylineno,j=Q.yylloc,P>0)P--}else J=z,z=null;break;case 2:if(xe=this.productions_[ie[1]][1],he.$=A[A.length-xe],he._$={first_line:R[R.length-(xe||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(xe||1)].first_column,last_column:R[R.length-1].last_column},te)he._$.range=[R[R.length-(xe||1)].range[0],R[R.length-1].range[1]];if(se=this.performAction.apply(he,[L,D,B,Z.yy,ie[1],A,R].concat(K)),typeof se<"u")return se;if(xe)x=x.slice(0,-1*xe*2),A=A.slice(0,-1*xe),R=R.slice(0,-1*xe);x.push(this.productions_[ie[1]][0]),A.push(he.$),R.push(he._$),Ie=N[x[x.length-2]][x[x.length-1]],x.push(Ie);break;case 3:return!0}}return!0},"parse")},m=function(){var E={EOF:1,parseError:I(function(T,x){if(this.yy.parser)this.yy.parser.parseError(T,x);else throw Error(T)},"parseError"),setInput:I(function(w,T){if(this.yy=T||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var T=w.match(/(?:\r\n?|\n).*/g);if(T)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),w},"input"),unput:I(function(w){var T=w.length,x=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1)this.yylineno-=x.length-1;var A=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===k.length?this.yylloc.first_column:0)+k[k.length-x.length].length-x[0].length:this.yylloc.first_column-T},this.options.ranges)this.yylloc.range=[A[0],A[0]+this.yyleng-T];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`,"getStyles"),Vwi=zwi,NWr={parser:fwi,get db(){return new Uwi(2)},renderer:$wi,styles:Vwi,init:I((e)=>{if(!e.state)e.state={};e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},"init")}});function GWr(e){let r=Ar().journey,i=r.maxLabelWidth;Hke=0;let a=60;Object.keys(DI).forEach((o)=>{let l=DI[o].color,h={cx:20,cy:a,r:7,fill:l,stroke:"#000",pos:DI[o].position};woe.drawCircle(e,h);let d=e.append("text").attr("visibility","hidden").text(o),p=d.node().getBoundingClientRect().width;d.remove();let m=[];if(p<=i)m=[o];else{let y=o.split(" "),v="";if(d=e.append("text").attr("visibility","hidden"),y.forEach((w)=>{let T=v?`${v} ${w}`:w;if(d.text(T),d.node().getBoundingClientRect().width>i){if(v)m.push(v);if(v=w,d.text(w),d.node().getBoundingClientRect().width>i){let k="";for(let A of w)if(k+=A,d.text(k+"-"),d.node().getBoundingClientRect().width>i)m.push(k.slice(0,-1)+"-"),k=A;v=k}}else v=T}),v)m.push(v);d.remove()}m.forEach((y,v)=>{let w={x:40,y:a+7+v*20,fill:"#666",text:y,textMargin:r.boxTextMargin??5},x=woe.drawText(e,w).node().getBoundingClientRect().width;if(x>Hke&&x>r.leftMargin-x)Hke=x}),a+=Math.max(20,m.length*20)})}var Qft,Hwi,XY="",Jft,_oe,Eoe,qwi,Ywi,Wwi,jwi,Kwi,Xwi,Qwi,MWr,Zwi,DWr,Jwi,eSi,ept,tSi,FWr,$Wr,rSi,nSi,Zft=-1,iSi,aSi,UWr,sSi,woe,oSi,DI,Hke=0,qC,rM=0,lSi,vT,Xft,PWr,cSi,BWr,zWr;var VWr=Re(()=>{uI();V3();eo();Zs();Ja();dl();dl();Qft=function(){var e=I(function(v,w,T,x){for(T=T||{},x=v.length;x--;T[v[x]]=w);return T},"o"),r=[6,8,10,11,12,14,16,17,18],i=[1,9],a=[1,10],o=[1,11],l=[1,12],h=[1,13],d=[1,14],p={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:I(function(w,T,x,k,A,R,N){var L=R.length-1;switch(A){case 1:return R[L-1];case 2:this.$=[];break;case 3:R[L-1].push(R[L]),this.$=R[L-1];break;case 4:case 5:this.$=R[L];break;case 6:case 7:this.$=[];break;case 8:k.setDiagramTitle(R[L].substr(6)),this.$=R[L].substr(6);break;case 9:this.$=R[L].trim(),k.setAccTitle(this.$);break;case 10:case 11:this.$=R[L].trim(),k.setAccDescription(this.$);break;case 12:k.addSection(R[L].substr(8)),this.$=R[L].substr(8);break;case 13:k.addTask(R[L-1],R[L]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(r,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:i,12:a,14:o,16:l,17:h,18:d},e(r,[2,7],{1:[2,1]}),e(r,[2,3]),{9:15,11:i,12:a,14:o,16:l,17:h,18:d},e(r,[2,5]),e(r,[2,6]),e(r,[2,8]),{13:[1,16]},{15:[1,17]},e(r,[2,11]),e(r,[2,12]),{19:[1,18]},e(r,[2,4]),e(r,[2,9]),e(r,[2,10]),e(r,[2,13])],defaultActions:{},parseError:I(function(w,T){if(T.recoverable)this.trace(w);else{var x=Error(w);throw x.hash=T,x}},"parseError"),parse:I(function(w){var T=this,x=[0],k=[],A=[null],R=[],N=this.table,L="",B=0,D=0,P=0,F=2,H=1,W=R.slice.call(arguments,1),X=Object.create(this.lexer),Q={yy:{}};for(var Y in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,Y))Q.yy[Y]=this.yy[Y];if(X.setInput(w,Q.yy),Q.yy.lexer=X,Q.yy.parser=this,typeof X.yylloc>"u")X.yylloc={};var K=X.yylloc;R.push(K);var J=X.options&&X.options.ranges;if(typeof Q.yy.parseError==="function")this.parseError=Q.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Z(Me){x.length=x.length-2*Me,A.length=A.length-Me,R.length=R.length-Me}I(Z,"popStack");function j(){var Me=k.pop()||X.lex()||H;if(typeof Me!=="number"){if(Me instanceof Array)k=Me,Me=k.pop();Me=T.symbols_[Me]||Me}return Me}I(j,"lex");var ee,z,ne,ie,se,oe,he={},ye,Se,Ie,Ee;while(!0){if(ne=x[x.length-1],this.defaultActions[ne])ie=this.defaultActions[ne];else{if(ee===null||typeof ee>"u")ee=j();ie=N[ne]&&N[ne][ee]}if(typeof ie>"u"||!ie.length||!ie[0]){var ze="";Ee=[];for(ye in N[ne])if(this.terminals_[ye]&&ye>F)Ee.push("'"+this.terminals_[ye]+"'");if(X.showPosition)ze="Parse error on line "+(B+1)+`: +`+X.showPosition()+` +Expecting `+Ee.join(", ")+", got '"+(this.terminals_[ee]||ee)+"'";else ze="Parse error on line "+(B+1)+": Unexpected "+(ee==H?"end of input":"'"+(this.terminals_[ee]||ee)+"'");this.parseError(ze,{text:X.match,token:this.terminals_[ee]||ee,line:X.yylineno,loc:K,expected:Ee})}if(ie[0]instanceof Array&&ie.length>1)throw Error("Parse Error: multiple actions possible at state: "+ne+", token: "+ee);switch(ie[0]){case 1:if(x.push(ee),A.push(X.yytext),R.push(X.yylloc),x.push(ie[1]),ee=null,!z){if(D=X.yyleng,L=X.yytext,B=X.yylineno,K=X.yylloc,P>0)P--}else ee=z,z=null;break;case 2:if(Se=this.productions_[ie[1]][1],he.$=A[A.length-Se],he._$={first_line:R[R.length-(Se||1)].first_line,last_line:R[R.length-1].last_line,first_column:R[R.length-(Se||1)].first_column,last_column:R[R.length-1].last_column},J)he._$.range=[R[R.length-(Se||1)].range[0],R[R.length-1].range[1]];if(oe=this.performAction.apply(he,[L,D,B,Q.yy,ie[1],A,R].concat(W)),typeof oe<"u")return oe;if(Se)x=x.slice(0,-1*Se*2),A=A.slice(0,-1*Se),R=R.slice(0,-1*Se);x.push(this.productions_[ie[1]][0]),A.push(he.$),R.push(he._$),Ie=N[x[x.length-2]][x[x.length-1]],x.push(Ie);break;case 3:return!0}}return!0},"parse")},m=function(){var v={EOF:1,parseError:I(function(T,x){if(this.yy.parser)this.yy.parser.parseError(T,x);else throw Error(T)},"parseError"),setInput:I(function(w,T){if(this.yy=T||this.yy||{},this._input=w,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var T=w.match(/(?:\r\n?|\n).*/g);if(T)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),w},"input"),unput:I(function(w){var T=w.length,x=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-T),this.offset-=T;var k=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1)this.yylineno-=x.length-1;var A=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===k.length?this.yylloc.first_column:0)+k[k.length-x.length].length-x[0].length:this.yylloc.first_column-T},this.options.ranges)this.yylloc.range=[A[0],A[0]+this.yyleng-T];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(w){this.unput(this.match.slice(w))},"less"),pastInput:I(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var w=this.match;if(w.length<20)w+=this._input.substr(0,20-w.length);return(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var w=this.pastInput(),T=Array(w.length+1).join("-");return w+this.upcomingInput()+` `+T+"^"},"showPosition"),test_match:I(function(w,T){var x,k,A;if(this.options.backtrack_lexer){if(A={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)A.yylloc.range=this.yylloc.range.slice(0)}if(k=w[0].match(/(?:\r\n?|\n).*/g),k)this.yylineno+=k.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-k[k.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+w[0].length},this.yytext+=w[0],this.match+=w[0],this.matches=w,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(w[0].length),this.matched+=w[0],x=this.performAction.call(this,this.yy,this,T,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(x)return x;else if(this._backtrack){for(var R in A)this[R]=A[R];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var w,T,x,k;if(!this._more)this.yytext="",this.match="";var A=this._currentRules();for(var R=0;RT[0].length)){if(T=x,k=R,this.options.backtrack_lexer)if(w=this.test_match(x,A[R]),w!==!1)return w;else if(this._backtrack){T=!1;continue}else return!1;else if(!this.options.flex)break}if(T){if(w=this.test_match(T,A[k]),w!==!1)return w;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var T=this.next();if(T)return T;else return this.lex()},"lex"),begin:I(function(T){this.conditionStack.push(T)},"begin"),popState:I(function(){var T=this.conditionStack.length-1;if(T>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(T){if(T=this.conditionStack.length-1-Math.abs(T||0),T>=0)return this.conditionStack[T];else return"INITIAL"},"topState"),pushState:I(function(T){this.begin(T)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(T,x,k,A){var R=A;switch(k){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return E}();p.lexer=m;function y(){this.yy={}}return I(y,"Parser"),y.prototype=p,p.Parser=y,new y}();jft.parser=jft;Fwi=jft,Xft=[],boe=[],yoe=[],$wi=I(function(){Xft.length=0,boe.length=0,WY="",yoe.length=0,qs()},"clear"),Uwi=I(function(e){WY=e,Xft.push(e)},"addSection"),Gwi=I(function(){return Xft},"getSections"),zwi=I(function(){let e=RWr(),r=100,i=0;while(!e&&i{if(i.people)e.push(...i.people)}),[...new Set(e)].sort()},"updateActors"),Hwi=I(function(e,r){let i=r.substr(1).split(":"),a=0,o=[];if(i.length===1)a=Number(i[0]),o=[];else a=Number(i[0]),o=i[1].split(",");let l=o.map((d)=>d.trim()),h={section:WY,type:WY,people:l,task:e,score:a};yoe.push(h)},"addTask"),qwi=I(function(e){let r={section:WY,type:WY,description:e,task:e,classes:[]};boe.push(r)},"addTaskOrg"),RWr=I(function(){let e=I(function(i){return yoe[i].processed},"compileTask"),r=!0;for(let[i,a]of yoe.entries())e(i),r=r&&a.processed;return r},"compileTasks"),Ywi=I(function(){return Vwi()},"getActors"),IWr={getConfig:I(()=>Ar().journey,"getConfig"),clear:$wi,setDiagramTitle:_o,getDiagramTitle:fo,setAccTitle:Ys,getAccTitle:oo,setAccDescription:Js,getAccDescription:lo,addSection:Uwi,getSections:Gwi,getTasks:zwi,addTask:Hwi,addTaskOrg:qwi,getActors:Ywi},Wwi=I((e)=>`.label { +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var T=this.next();if(T)return T;else return this.lex()},"lex"),begin:I(function(T){this.conditionStack.push(T)},"begin"),popState:I(function(){var T=this.conditionStack.length-1;if(T>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(T){if(T=this.conditionStack.length-1-Math.abs(T||0),T>=0)return this.conditionStack[T];else return"INITIAL"},"topState"),pushState:I(function(T){this.begin(T)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(T,x,k,A){var R=A;switch(k){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;break;case 8:return this.popState(),"acc_title_value";break;case 9:return this.begin("acc_descr"),14;break;case 10:return this.popState(),"acc_descr_value";break;case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return v}();p.lexer=m;function y(){this.yy={}}return I(y,"Parser"),y.prototype=p,p.Parser=y,new y}();Qft.parser=Qft;Hwi=Qft,Jft=[],_oe=[],Eoe=[],qwi=I(function(){Jft.length=0,_oe.length=0,XY="",Eoe.length=0,qs()},"clear"),Ywi=I(function(e){XY=e,Jft.push(e)},"addSection"),Wwi=I(function(){return Jft},"getSections"),jwi=I(function(){let e=MWr(),r=100,i=0;while(!e&&i{if(i.people)e.push(...i.people)}),[...new Set(e)].sort()},"updateActors"),Xwi=I(function(e,r){let i=r.substr(1).split(":"),a=0,o=[];if(i.length===1)a=Number(i[0]),o=[];else a=Number(i[0]),o=i[1].split(",");let l=o.map((d)=>d.trim()),h={section:XY,type:XY,people:l,task:e,score:a};Eoe.push(h)},"addTask"),Qwi=I(function(e){let r={section:XY,type:XY,description:e,task:e,classes:[]};_oe.push(r)},"addTaskOrg"),MWr=I(function(){let e=I(function(i){return Eoe[i].processed},"compileTask"),r=!0;for(let[i,a]of Eoe.entries())e(i),r=r&&a.processed;return r},"compileTasks"),Zwi=I(function(){return Kwi()},"getActors"),DWr={getConfig:I(()=>Ar().journey,"getConfig"),clear:qwi,setDiagramTitle:_o,getDiagramTitle:fo,setAccTitle:Ys,getAccTitle:oo,setAccDescription:Js,getAccDescription:lo,addSection:Ywi,getSections:Wwi,getTasks:jwi,addTask:Xwi,addTaskOrg:Qwi,getActors:Zwi},Jwi=I((e)=>`.label { font-family: ${e.fontFamily}; color: ${e.textColor}; } @@ -2973,18 +2973,18 @@ Expecting `+Ee.join(", ")+", got '"+(this.terminals_[J]||J)+"'";else Ue="Parse e .actor-5 { ${e.actor5?`fill: ${e.actor5}`:""}; } - ${dT()} -`,"getStyles"),jwi=Wwi,Qft=I(function(e,r){return LB(e,r)},"drawRect"),Kwi=I(function(e,r){let a=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");o.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function l(p){let m=mC().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}I(l,"smile");function h(p){let m=mC().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}I(h,"sad");function d(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(I(d,"ambivalent"),r.score>3)l(o);else if(r.score<3)h(o);else d(o);return a},"drawFace"),LWr=I(function(e,r){let i=e.append("circle");if(i.attr("cx",r.cx),i.attr("cy",r.cy),i.attr("class","actor-"+r.pos),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("r",r.r),i.class!==void 0)i.attr("class",i.class);if(r.title!==void 0)i.append("title").text(r.title);return i},"drawCircle"),MWr=I(function(e,r){return P9r(e,r)},"drawText"),Xwi=I(function(e,r){function i(o,l,h,d,p){return o+","+l+" "+(o+h)+","+l+" "+(o+h)+","+(l+d-p)+" "+(o+h-p*1.2)+","+(l+d)+" "+o+","+(l+d)}I(i,"genPoints");let a=e.append("polygon");a.attr("points",i(r.x,r.y,50,20,7)),a.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,MWr(e,r)},"drawLabel"),Qwi=I(function(e,r,i){let a=e.append("g"),o=o2();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=i.width*r.taskCount+i.diagramMarginX*(r.taskCount-1),o.height=i.height,o.class="journey-section section-type-"+r.num,o.rx=3,o.ry=3,Qft(a,o),DWr(i)(r.text,a,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+r.num},i,r.colour)},"drawSection"),Zwi=I(function(e,r,i,a){let o=r.x+i.width/2,l=e.append("g");Kft++;let h=450;l.append("line").attr("id",a+"-task"+Kft).attr("x1",o).attr("y1",r.y).attr("x2",o).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Kwi(l,{cx:o,cy:300+(5-r.score)*30,score:r.score});let d=o2();d.x=r.x,d.y=r.y,d.fill=r.fill,d.width=i.width,d.height=i.height,d.class="task task-type-"+r.num,d.rx=3,d.ry=3,Qft(l,d);let p=r.x+14;r.people.forEach((m)=>{let y=r.actors[m].color,E={cx:p,cy:r.y,r:7,fill:y,stroke:"#000",title:m,pos:r.actors[m].position};LWr(l,E),p+=10}),DWr(i)(r.task,l,d.x,d.y,d.width,d.height,{class:"task"},i,r.colour)},"drawTask"),Jwi=I(function(e,r){mxe(e,r)},"drawBackgroundRect"),DWr=function(){function e(o,l,h,d,p,m,y,E){let w=l.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("font-color",E).style("text-anchor","middle").text(o);a(w,y)}I(e,"byText");function r(o,l,h,d,p,m,y,E,w){let{taskFontSize:T,taskFontFamily:x}=E,k=o.split(//gi);for(let A=0;A{NI[B]={color:VC.actorColours[k%VC.actorColours.length],position:k},k++}),PWr(E),eM=VC.leftMargin+Gke,yT.insert(0,0,eM,Object.keys(NI).length*50),nSi(E,w,0,r);let A=yT.getBounds();if(T)E.append("text").text(T).attr("x",eM).attr("font-size",h).attr("font-weight","bold").attr("y",25).attr("fill",l).attr("font-family",d);let R=A.stopy-A.starty+2*VC.diagramMarginY,N=eM+A.stopx+2*VC.diagramMarginX;Bl(E,R,N,VC.useMaxWidth),E.append("line").attr("x1",eM).attr("y1",VC.height*4).attr("x2",N-eM-4).attr("y2",VC.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let L=T?70:0;E.attr("viewBox",`${A.startx} -25 ${N} ${R+L}`),E.attr("preserveAspectRatio","xMinYMin meet"),E.attr("height",R+L+25)},"draw"),yT={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:I(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:I(function(e,r,i,a){if(e[r]===void 0)e[r]=i;else e[r]=a(i,e[r])},"updateVal"),updateBounds:I(function(e,r,i,a){let o=Ar().journey,l=this,h=0;function d(p){return I(function(y){h++;let E=l.sequenceItems.length-h+1;if(l.updateVal(y,"starty",r-E*o.boxMargin,Math.min),l.updateVal(y,"stopy",a+E*o.boxMargin,Math.max),l.updateVal(yT.data,"startx",e-E*o.boxMargin,Math.min),l.updateVal(yT.data,"stopx",i+E*o.boxMargin,Math.max),p!=="activation")l.updateVal(y,"startx",e-E*o.boxMargin,Math.min),l.updateVal(y,"stopx",i+E*o.boxMargin,Math.max),l.updateVal(yT.data,"starty",r-E*o.boxMargin,Math.min),l.updateVal(yT.data,"stopy",a+E*o.boxMargin,Math.max)},"updateItemBounds")}I(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:I(function(e,r,i,a){let o=Math.min(e,i),l=Math.max(e,i),h=Math.min(r,a),d=Math.max(r,a);this.updateVal(yT.data,"startx",o,Math.min),this.updateVal(yT.data,"starty",h,Math.min),this.updateVal(yT.data,"stopx",l,Math.max),this.updateVal(yT.data,"stopy",d,Math.max),this.updateBounds(o,h,l,d)},"insert"),bumpVerticalPos:I(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:I(function(){return this.verticalPos},"getVerticalPos"),getBounds:I(function(){return this.data},"getBounds")},Wft=VC.sectionFills,OWr=VC.sectionColours,nSi=I(function(e,r,i,a){let o=Ar().journey,l="",h=o.height*2+o.diagramMarginY,d=i+h,p=0,m="#CCC",y="black",E=0;for(let[w,T]of r.entries()){if(l!==T.section){m=Wft[p%Wft.length],E=p%Wft.length,y=OWr[p%OWr.length];let k=0,A=T.section;for(let N=w;N{if(NI[A])k[A]=NI[A];return k},{});T.x=w*o.taskMargin+w*o.width+eM,T.y=d,T.width=o.diagramMarginX,T.height=o.diagramMarginY,T.colour=y,T.fill=m,T.num=E,T.actors=x,voe.drawTask(e,T,o,a),yT.insert(T.x,T.y,T.x+T.width+o.taskMargin,450)}},"drawTasks"),NWr={setConf:tSi,draw:rSi},BWr={parser:Fwi,db:IWr,renderer:NWr,styles:jwi,init:I((e)=>{NWr.setConf(e.journey),IWr.clear()},"init")}});function npt(e,r){e.each(function(){var i=xn(this),a=i.text().split(/(\s+|
    )/).reverse(),o,l=[],h=1.1,d=i.attr("y"),p=parseFloat(i.attr("dy")),m=i.text(null).append("tspan").attr("x",0).attr("y",d).attr("dy",p+"em");for(let y=0;yr||o==="
    "){if(l.pop(),m.text(l.join(" ").trim()),o==="
    ")l=[""];else l=[o];m=i.append("tspan").attr("x",0).attr("y",d).attr("dy",h+"em").text(o)}})}var Zft,iSi,HWr,jY="",qWr=0,ept="LR",tpt,zke,KY,YWr,WWr,jWr,KWr,XWr,QWr,ZWr,JWr,ejr,tjr,$Wr,aSi,rjr=0,Vke,sSi,oSi,njr,lSi,cSi,Jft=-1,uSi,hSi,dSi,rpt,ijr,fSi,pSi,gSi,mSi,g2,bSi,UWr,ySi,vSi,Hke=200,LI=5,_Si,ipt,ESi,ajr=10,wSi=0,GWr=20,sjr=20,zWr=30,ojr=50,SSi,VWr,TSi,xSi,CSi,kSi,ASi,RSi,ISi,ljr;var cjr=Re(()=>{A0();I0();Ql();eo();Zs();Ja();dl();dl();x0();Zft=function(){var e=I(function(w,T,x,k){for(x=x||{},k=w.length;k--;x[w[k]]=T);return x},"o"),r=[6,11,13,14,15,17,19,20,23,24],i=[1,12],a=[1,13],o=[1,14],l=[1,15],h=[1,16],d=[1,19],p=[1,20],m={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:I(function(T,x,k,A,R,N,L){var B=N.length-1;switch(R){case 1:return N[B-1];case 3:A.setDirection("LR");break;case 4:A.setDirection("TD");break;case 5:this.$=[];break;case 6:N[B-1].push(N[B]),this.$=N[B-1];break;case 7:case 8:this.$=N[B];break;case 9:case 10:this.$=[];break;case 11:A.getCommonDb().setDiagramTitle(N[B].substr(6)),this.$=N[B].substr(6);break;case 12:this.$=N[B].trim(),A.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=N[B].trim(),A.getCommonDb().setAccDescription(this.$);break;case 15:A.addSection(N[B].substr(8)),this.$=N[B].substr(8);break;case 18:A.addTask(N[B],0,""),this.$=N[B];break;case 19:A.addEvent(N[B].substr(2)),this.$=N[B];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(r,[2,5],{5:6}),e(r,[2,2]),e(r,[2,3]),e(r,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:a,17:o,19:l,20:h,21:17,22:18,23:d,24:p},e(r,[2,10],{1:[2,1]}),e(r,[2,6]),{12:21,14:i,15:a,17:o,19:l,20:h,21:17,22:18,23:d,24:p},e(r,[2,8]),e(r,[2,9]),e(r,[2,11]),{16:[1,22]},{18:[1,23]},e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,7]),e(r,[2,12]),e(r,[2,13])],defaultActions:{},parseError:I(function(T,x){if(x.recoverable)this.trace(T);else{var k=Error(T);throw k.hash=x,k}},"parseError"),parse:I(function(T){var x=this,k=[0],A=[],R=[null],N=[],L=this.table,B="",D=0,P=0,F=0,H=2,K=1,Q=N.slice.call(arguments,1),Z=Object.create(this.lexer),Y={yy:{}};for(var j in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,j))Y.yy[j]=this.yy[j];if(Z.setInput(T,Y.yy),Y.yy.lexer=Z,Y.yy.parser=this,typeof Z.yylloc>"u")Z.yylloc={};var te=Z.yylloc;N.push(te);var X=Z.options&&Z.options.ranges;if(typeof Y.yy.parseError==="function")this.parseError=Y.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function W(Xe){k.length=k.length-2*Xe,R.length=R.length-Xe,N.length=N.length-Xe}I(W,"popStack");function J(){var Xe=A.pop()||Z.lex()||K;if(typeof Xe!=="number"){if(Xe instanceof Array)A=Xe,Xe=A.pop();Xe=x.symbols_[Xe]||Xe}return Xe}I(J,"lex");var z,ne,ie,le,se,he,ye={},xe,Ie,Ee,Ue;while(!0){if(ie=k[k.length-1],this.defaultActions[ie])le=this.defaultActions[ie];else{if(z===null||typeof z>"u")z=J();le=L[ie]&&L[ie][z]}if(typeof le>"u"||!le.length||!le[0]){var Me="";Ue=[];for(xe in L[ie])if(this.terminals_[xe]&&xe>H)Ue.push("'"+this.terminals_[xe]+"'");if(Z.showPosition)Me="Parse error on line "+(D+1)+`: -`+Z.showPosition()+` -Expecting `+Ue.join(", ")+", got '"+(this.terminals_[z]||z)+"'";else Me="Parse error on line "+(D+1)+": Unexpected "+(z==K?"end of input":"'"+(this.terminals_[z]||z)+"'");this.parseError(Me,{text:Z.match,token:this.terminals_[z]||z,line:Z.yylineno,loc:te,expected:Ue})}if(le[0]instanceof Array&&le.length>1)throw Error("Parse Error: multiple actions possible at state: "+ie+", token: "+z);switch(le[0]){case 1:if(k.push(z),R.push(Z.yytext),N.push(Z.yylloc),k.push(le[1]),z=null,!ne){if(P=Z.yyleng,B=Z.yytext,D=Z.yylineno,te=Z.yylloc,F>0)F--}else z=ne,ne=null;break;case 2:if(Ie=this.productions_[le[1]][1],ye.$=R[R.length-Ie],ye._$={first_line:N[N.length-(Ie||1)].first_line,last_line:N[N.length-1].last_line,first_column:N[N.length-(Ie||1)].first_column,last_column:N[N.length-1].last_column},X)ye._$.range=[N[N.length-(Ie||1)].range[0],N[N.length-1].range[1]];if(he=this.performAction.apply(ye,[B,P,D,Y.yy,le[1],R,N].concat(Q)),typeof he<"u")return he;if(Ie)k=k.slice(0,-1*Ie*2),R=R.slice(0,-1*Ie),N=N.slice(0,-1*Ie);k.push(this.productions_[le[1]][0]),R.push(ye.$),N.push(ye._$),Ee=L[k[k.length-2]][k[k.length-1]],k.push(Ee);break;case 3:return!0}}return!0},"parse")},y=function(){var w={EOF:1,parseError:I(function(x,k){if(this.yy.parser)this.yy.parser.parseError(x,k);else throw Error(x)},"parseError"),setInput:I(function(T,x){if(this.yy=x||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var x=T.match(/(?:\r\n?|\n).*/g);if(x)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),T},"input"),unput:I(function(T){var x=T.length,k=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var A=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1)this.yylineno-=k.length-1;var R=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===A.length?this.yylloc.first_column:0)+A[A.length-k.length].length-k[0].length:this.yylloc.first_column-x},this.options.ranges)this.yylloc.range=[R[0],R[0]+this.yyleng-x];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). + ${fT()} +`,"getStyles"),eSi=Jwi,ept=I(function(e,r){return DB(e,r)},"drawRect"),tSi=I(function(e,r){let a=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");o.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function l(p){let m=yC().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}I(l,"smile");function h(p){let m=yC().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}I(h,"sad");function d(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(I(d,"ambivalent"),r.score>3)l(o);else if(r.score<3)h(o);else d(o);return a},"drawFace"),FWr=I(function(e,r){let i=e.append("circle");if(i.attr("cx",r.cx),i.attr("cy",r.cy),i.attr("class","actor-"+r.pos),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("r",r.r),i.class!==void 0)i.attr("class",i.class);if(r.title!==void 0)i.append("title").text(r.title);return i},"drawCircle"),$Wr=I(function(e,r){return G9r(e,r)},"drawText"),rSi=I(function(e,r){function i(o,l,h,d,p){return o+","+l+" "+(o+h)+","+l+" "+(o+h)+","+(l+d-p)+" "+(o+h-p*1.2)+","+(l+d)+" "+o+","+(l+d)}I(i,"genPoints");let a=e.append("polygon");a.attr("points",i(r.x,r.y,50,20,7)),a.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,$Wr(e,r)},"drawLabel"),nSi=I(function(e,r,i){let a=e.append("g"),o=o2();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=i.width*r.taskCount+i.diagramMarginX*(r.taskCount-1),o.height=i.height,o.class="journey-section section-type-"+r.num,o.rx=3,o.ry=3,ept(a,o),UWr(i)(r.text,a,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+r.num},i,r.colour)},"drawSection"),iSi=I(function(e,r,i,a){let o=r.x+i.width/2,l=e.append("g");Zft++;let h=450;l.append("line").attr("id",a+"-task"+Zft).attr("x1",o).attr("y1",r.y).attr("x2",o).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),tSi(l,{cx:o,cy:300+(5-r.score)*30,score:r.score});let d=o2();d.x=r.x,d.y=r.y,d.fill=r.fill,d.width=i.width,d.height=i.height,d.class="task task-type-"+r.num,d.rx=3,d.ry=3,ept(l,d);let p=r.x+14;r.people.forEach((m)=>{let y=r.actors[m].color,v={cx:p,cy:r.y,r:7,fill:y,stroke:"#000",title:m,pos:r.actors[m].position};FWr(l,v),p+=10}),UWr(i)(r.task,l,d.x,d.y,d.width,d.height,{class:"task"},i,r.colour)},"drawTask"),aSi=I(function(e,r){vxe(e,r)},"drawBackgroundRect"),UWr=function(){function e(o,l,h,d,p,m,y,v){let w=l.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("font-color",v).style("text-anchor","middle").text(o);a(w,y)}I(e,"byText");function r(o,l,h,d,p,m,y,v,w){let{taskFontSize:T,taskFontFamily:x}=v,k=o.split(//gi);for(let A=0;A{DI[B]={color:qC.actorColours[k%qC.actorColours.length],position:k},k++}),GWr(v),rM=qC.leftMargin+Hke,vT.insert(0,0,rM,Object.keys(DI).length*50),cSi(v,w,0,r);let A=vT.getBounds();if(T)v.append("text").text(T).attr("x",rM).attr("font-size",h).attr("font-weight","bold").attr("y",25).attr("fill",l).attr("font-family",d);let R=A.stopy-A.starty+2*qC.diagramMarginY,N=rM+A.stopx+2*qC.diagramMarginX;Bl(v,R,N,qC.useMaxWidth),v.append("line").attr("x1",rM).attr("y1",qC.height*4).attr("x2",N-rM-4).attr("y2",qC.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+r+"-arrowhead)");let L=T?70:0;v.attr("viewBox",`${A.startx} -25 ${N} ${R+L}`),v.attr("preserveAspectRatio","xMinYMin meet"),v.attr("height",R+L+25)},"draw"),vT={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:I(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:I(function(e,r,i,a){if(e[r]===void 0)e[r]=i;else e[r]=a(i,e[r])},"updateVal"),updateBounds:I(function(e,r,i,a){let o=Ar().journey,l=this,h=0;function d(p){return I(function(y){h++;let v=l.sequenceItems.length-h+1;if(l.updateVal(y,"starty",r-v*o.boxMargin,Math.min),l.updateVal(y,"stopy",a+v*o.boxMargin,Math.max),l.updateVal(vT.data,"startx",e-v*o.boxMargin,Math.min),l.updateVal(vT.data,"stopx",i+v*o.boxMargin,Math.max),p!=="activation")l.updateVal(y,"startx",e-v*o.boxMargin,Math.min),l.updateVal(y,"stopx",i+v*o.boxMargin,Math.max),l.updateVal(vT.data,"starty",r-v*o.boxMargin,Math.min),l.updateVal(vT.data,"stopy",a+v*o.boxMargin,Math.max)},"updateItemBounds")}I(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:I(function(e,r,i,a){let o=Math.min(e,i),l=Math.max(e,i),h=Math.min(r,a),d=Math.max(r,a);this.updateVal(vT.data,"startx",o,Math.min),this.updateVal(vT.data,"starty",h,Math.min),this.updateVal(vT.data,"stopx",l,Math.max),this.updateVal(vT.data,"stopy",d,Math.max),this.updateBounds(o,h,l,d)},"insert"),bumpVerticalPos:I(function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:I(function(){return this.verticalPos},"getVerticalPos"),getBounds:I(function(){return this.data},"getBounds")},Xft=qC.sectionFills,PWr=qC.sectionColours,cSi=I(function(e,r,i,a){let o=Ar().journey,l="",h=o.height*2+o.diagramMarginY,d=i+h,p=0,m="#CCC",y="black",v=0;for(let[w,T]of r.entries()){if(l!==T.section){m=Xft[p%Xft.length],v=p%Xft.length,y=PWr[p%PWr.length];let k=0,A=T.section;for(let N=w;N{if(DI[A])k[A]=DI[A];return k},{});T.x=w*o.taskMargin+w*o.width+rM,T.y=d,T.width=o.diagramMarginX,T.height=o.diagramMarginY,T.colour=y,T.fill=m,T.num=v,T.actors=x,woe.drawTask(e,T,o,a),vT.insert(T.x,T.y,T.x+T.width+o.taskMargin,450)}},"drawTasks"),BWr={setConf:oSi,draw:lSi},zWr={parser:Hwi,db:DWr,renderer:BWr,styles:eSi,init:I((e)=>{BWr.setConf(e.journey),DWr.clear()},"init")}});function spt(e,r){e.each(function(){var i=xn(this),a=i.text().split(/(\s+|
    )/).reverse(),o,l=[],h=1.1,d=i.attr("y"),p=parseFloat(i.attr("dy")),m=i.text(null).append("tspan").attr("x",0).attr("y",d).attr("dy",p+"em");for(let y=0;yr||o==="
    "){if(l.pop(),m.text(l.join(" ").trim()),o==="
    ")l=[""];else l=[o];m=i.append("tspan").attr("x",0).attr("y",d).attr("dy",h+"em").text(o)}})}var tpt,uSi,KWr,QY="",XWr=0,npt="LR",ipt,qke,ZY,QWr,ZWr,JWr,ejr,tjr,rjr,njr,ijr,ajr,sjr,HWr,hSi,ojr=0,Yke,dSi,fSi,ljr,pSi,gSi,rpt=-1,mSi,bSi,ySi,apt,cjr,vSi,_Si,ESi,wSi,g2,SSi,qWr,TSi,xSi,Wke=200,PI=5,CSi,opt,kSi,ujr=10,ASi=0,YWr=20,hjr=20,WWr=30,djr=50,RSi,jWr,ISi,OSi,NSi,LSi,MSi,DSi,PSi,fjr;var pjr=Re(()=>{A0();I0();Ql();eo();Zs();Ja();dl();dl();x0();tpt=function(){var e=I(function(w,T,x,k){for(x=x||{},k=w.length;k--;x[w[k]]=T);return x},"o"),r=[6,11,13,14,15,17,19,20,23,24],i=[1,12],a=[1,13],o=[1,14],l=[1,15],h=[1,16],d=[1,19],p=[1,20],m={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:I(function(T,x,k,A,R,N,L){var B=N.length-1;switch(R){case 1:return N[B-1];case 3:A.setDirection("LR");break;case 4:A.setDirection("TD");break;case 5:this.$=[];break;case 6:N[B-1].push(N[B]),this.$=N[B-1];break;case 7:case 8:this.$=N[B];break;case 9:case 10:this.$=[];break;case 11:A.getCommonDb().setDiagramTitle(N[B].substr(6)),this.$=N[B].substr(6);break;case 12:this.$=N[B].trim(),A.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=N[B].trim(),A.getCommonDb().setAccDescription(this.$);break;case 15:A.addSection(N[B].substr(8)),this.$=N[B].substr(8);break;case 18:A.addTask(N[B],0,""),this.$=N[B];break;case 19:A.addEvent(N[B].substr(2)),this.$=N[B];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(r,[2,5],{5:6}),e(r,[2,2]),e(r,[2,3]),e(r,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:i,15:a,17:o,19:l,20:h,21:17,22:18,23:d,24:p},e(r,[2,10],{1:[2,1]}),e(r,[2,6]),{12:21,14:i,15:a,17:o,19:l,20:h,21:17,22:18,23:d,24:p},e(r,[2,8]),e(r,[2,9]),e(r,[2,11]),{16:[1,22]},{18:[1,23]},e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),e(r,[2,17]),e(r,[2,18]),e(r,[2,19]),e(r,[2,7]),e(r,[2,12]),e(r,[2,13])],defaultActions:{},parseError:I(function(T,x){if(x.recoverable)this.trace(T);else{var k=Error(T);throw k.hash=x,k}},"parseError"),parse:I(function(T){var x=this,k=[0],A=[],R=[null],N=[],L=this.table,B="",D=0,P=0,F=0,H=2,W=1,X=N.slice.call(arguments,1),Q=Object.create(this.lexer),Y={yy:{}};for(var K in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,K))Y.yy[K]=this.yy[K];if(Q.setInput(T,Y.yy),Y.yy.lexer=Q,Y.yy.parser=this,typeof Q.yylloc>"u")Q.yylloc={};var J=Q.yylloc;N.push(J);var Z=Q.options&&Q.options.ranges;if(typeof Y.yy.parseError==="function")this.parseError=Y.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function j(Xe){k.length=k.length-2*Xe,R.length=R.length-Xe,N.length=N.length-Xe}I(j,"popStack");function ee(){var Xe=A.pop()||Q.lex()||W;if(typeof Xe!=="number"){if(Xe instanceof Array)A=Xe,Xe=A.pop();Xe=x.symbols_[Xe]||Xe}return Xe}I(ee,"lex");var z,ne,ie,se,oe,he,ye={},Se,Ie,Ee,ze;while(!0){if(ie=k[k.length-1],this.defaultActions[ie])se=this.defaultActions[ie];else{if(z===null||typeof z>"u")z=ee();se=L[ie]&&L[ie][z]}if(typeof se>"u"||!se.length||!se[0]){var Me="";ze=[];for(Se in L[ie])if(this.terminals_[Se]&&Se>H)ze.push("'"+this.terminals_[Se]+"'");if(Q.showPosition)Me="Parse error on line "+(D+1)+`: +`+Q.showPosition()+` +Expecting `+ze.join(", ")+", got '"+(this.terminals_[z]||z)+"'";else Me="Parse error on line "+(D+1)+": Unexpected "+(z==W?"end of input":"'"+(this.terminals_[z]||z)+"'");this.parseError(Me,{text:Q.match,token:this.terminals_[z]||z,line:Q.yylineno,loc:J,expected:ze})}if(se[0]instanceof Array&&se.length>1)throw Error("Parse Error: multiple actions possible at state: "+ie+", token: "+z);switch(se[0]){case 1:if(k.push(z),R.push(Q.yytext),N.push(Q.yylloc),k.push(se[1]),z=null,!ne){if(P=Q.yyleng,B=Q.yytext,D=Q.yylineno,J=Q.yylloc,F>0)F--}else z=ne,ne=null;break;case 2:if(Ie=this.productions_[se[1]][1],ye.$=R[R.length-Ie],ye._$={first_line:N[N.length-(Ie||1)].first_line,last_line:N[N.length-1].last_line,first_column:N[N.length-(Ie||1)].first_column,last_column:N[N.length-1].last_column},Z)ye._$.range=[N[N.length-(Ie||1)].range[0],N[N.length-1].range[1]];if(he=this.performAction.apply(ye,[B,P,D,Y.yy,se[1],R,N].concat(X)),typeof he<"u")return he;if(Ie)k=k.slice(0,-1*Ie*2),R=R.slice(0,-1*Ie),N=N.slice(0,-1*Ie);k.push(this.productions_[se[1]][0]),R.push(ye.$),N.push(ye._$),Ee=L[k[k.length-2]][k[k.length-1]],k.push(Ee);break;case 3:return!0}}return!0},"parse")},y=function(){var w={EOF:1,parseError:I(function(x,k){if(this.yy.parser)this.yy.parser.parseError(x,k);else throw Error(x)},"parseError"),setInput:I(function(T,x){if(this.yy=x||this.yy||{},this._input=T,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var T=this._input[0];this.yytext+=T,this.yyleng++,this.offset++,this.match+=T,this.matched+=T;var x=T.match(/(?:\r\n?|\n).*/g);if(x)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),T},"input"),unput:I(function(T){var x=T.length,k=T.split(/(?:\r\n?|\n)/g);this._input=T+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var A=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1)this.yylineno-=k.length-1;var R=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===A.length?this.yylloc.first_column:0)+A[A.length-k.length].length-k[0].length:this.yylloc.first_column-x},this.options.ranges)this.yylloc.range=[R[0],R[0]+this.yyleng-x];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(T){this.unput(this.match.slice(T))},"less"),pastInput:I(function(){var T=this.matched.substr(0,this.matched.length-this.match.length);return(T.length>20?"...":"")+T.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var T=this.match;if(T.length<20)T+=this._input.substr(0,20-T.length);return(T.substr(0,20)+(T.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var T=this.pastInput(),x=Array(T.length+1).join("-");return T+this.upcomingInput()+` `+x+"^"},"showPosition"),test_match:I(function(T,x){var k,A,R;if(this.options.backtrack_lexer){if(R={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)R.yylloc.range=this.yylloc.range.slice(0)}if(A=T[0].match(/(?:\r\n?|\n).*/g),A)this.yylineno+=A.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+T[0].length},this.yytext+=T[0],this.match+=T[0],this.matches=T,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(T[0].length),this.matched+=T[0],k=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(k)return k;else if(this._backtrack){for(var N in R)this[N]=R[N];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var T,x,k,A;if(!this._more)this.yytext="",this.match="";var R=this._currentRules();for(var N=0;Nx[0].length)){if(x=k,A=N,this.options.backtrack_lexer)if(T=this.test_match(k,R[N]),T!==!1)return T;else if(this._backtrack){x=!1;continue}else return!1;else if(!this.options.flex)break}if(x){if(T=this.test_match(x,R[A]),T!==!1)return T;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var x=this.next();if(x)return x;else return this.lex()},"lex"),begin:I(function(x){this.conditionStack.push(x)},"begin"),popState:I(function(){var x=this.conditionStack.length-1;if(x>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(x){if(x=this.conditionStack.length-1-Math.abs(x||0),x>=0)return this.conditionStack[x];else return"INITIAL"},"topState"),pushState:I(function(x){this.begin(x)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(x,k,A,R){var N=R;switch(A){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return w}();m.lexer=y;function E(){this.yy={}}return I(E,"Parser"),E.prototype=m,m.Parser=E,new E}();Zft.parser=Zft;iSi=Zft,HWr={};XN(HWr,{addEvent:()=>ejr,addSection:()=>XWr,addTask:()=>JWr,addTaskOrg:()=>tjr,clear:()=>WWr,default:()=>aSi,getCommonDb:()=>YWr,getDirection:()=>KWr,getSections:()=>QWr,getTasks:()=>ZWr,setDirection:()=>jWr});tpt=[],zke=[],KY=[],YWr=I(()=>V_e,"getCommonDb"),WWr=I(function(){tpt.length=0,zke.length=0,jY="",KY.length=0,ept="LR",qs()},"clear"),jWr=I(function(e){ept=e},"setDirection"),KWr=I(function(){return ept},"getDirection"),XWr=I(function(e){jY=e,tpt.push(e)},"addSection"),QWr=I(function(){return tpt},"getSections"),ZWr=I(function(){let e=$Wr(),r=100,i=0;while(!e&&ii.id===qWr-1).events.push(e)},"addEvent"),tjr=I(function(e){let r={section:jY,type:jY,description:e,task:e,classes:[]};zke.push(r)},"addTaskOrg"),$Wr=I(function(){let e=I(function(i){return KY[i].processed},"compileTask"),r=!0;for(let[i,a]of KY.entries())e(i),r=r&&a.processed;return r},"compileTasks"),aSi={clear:WWr,getCommonDb:YWr,getDirection:KWr,setDirection:jWr,addSection:XWr,getSections:QWr,getTasks:ZWr,addTask:JWr,addTaskOrg:tjr,addEvent:ejr},Vke=I(function(e,r){let i=e.append("rect");if(i.attr("x",r.x),i.attr("y",r.y),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("width",r.width),i.attr("height",r.height),i.attr("rx",r.rx),i.attr("ry",r.ry),r.class!==void 0)i.attr("class",r.class);return i},"drawRect"),sSi=I(function(e,r){let a=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");o.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function l(p){let m=mC().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}I(l,"smile");function h(p){let m=mC().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}I(h,"sad");function d(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(I(d,"ambivalent"),r.score>3)l(o);else if(r.score<3)h(o);else d(o);return a},"drawFace"),oSi=I(function(e,r){let i=e.append("circle");if(i.attr("cx",r.cx),i.attr("cy",r.cy),i.attr("class","actor-"+r.pos),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("r",r.r),i.class!==void 0)i.attr("class",i.class);if(r.title!==void 0)i.append("title").text(r.title);return i},"drawCircle"),njr=I(function(e,r){let i=r.text.replace(//gi," "),a=e.append("text");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("class","legend"),a.style("text-anchor",r.anchor),r.class!==void 0)a.attr("class",r.class);let o=a.append("tspan");return o.attr("x",r.x+r.textMargin*2),o.text(i),a},"drawText"),lSi=I(function(e,r){function i(o,l,h,d,p){return o+","+l+" "+(o+h)+","+l+" "+(o+h)+","+(l+d-p)+" "+(o+h-p*1.2)+","+(l+d)+" "+o+","+(l+d)}I(i,"genPoints");let a=e.append("polygon");a.attr("points",i(r.x,r.y,50,20,7)),a.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,njr(e,r)},"drawLabel"),cSi=I(function(e,r,i){let a=e.append("g"),o=rpt();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=i.width,o.height=i.height,o.class="journey-section section-type-"+r.num,o.rx=3,o.ry=3,Vke(a,o),ijr(i)(r.text,a,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+r.num},i,r.colour)},"drawSection"),uSi=I(function(e,r,i,a){let o=r.x+i.width/2,l=e.append("g");Jft++;let h=450;l.append("line").attr("id",a+"-task"+Jft).attr("x1",o).attr("y1",r.y).attr("x2",o).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),sSi(l,{cx:o,cy:300+(5-r.score)*30,score:r.score});let d=rpt();d.x=r.x,d.y=r.y,d.fill=r.fill,d.width=i.width,d.height=i.height,d.class="task task-type-"+r.num,d.rx=3,d.ry=3,Vke(l,d),ijr(i)(r.task,l,d.x,d.y,d.width,d.height,{class:"task"},i,r.colour)},"drawTask"),hSi=I(function(e,r){Vke(e,{x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,class:"rect"}).lower()},"drawBackgroundRect"),dSi=I(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),rpt=I(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),ijr=function(){function e(o,l,h,d,p,m,y,E){let w=l.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("font-color",E).style("text-anchor","middle").text(o);a(w,y)}I(e,"byText");function r(o,l,h,d,p,m,y,E,w){let{taskFontSize:T,taskFontFamily:x}=E,k=o.split(//gi);for(let A=0;A0?`M0 ${r.height-5} v${-r.height+10} q0,-${h},${h},-${h} h${r.width-10} q${h},0,${h},${h} v${r.height-5} H0 Z`:`M0 ${r.height-5} v${-(r.height-5)} h${r.width} v${r.height} H0 Z`;if(e.append("path").attr("id",a+"-node-"+rjr++).attr("class","node-bkg node-"+r.type).attr("d",p),!l?.includes("redux"))e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},"defaultBkg"),g2={drawRect:Vke,drawCircle:oSi,drawSection:cSi,drawText:njr,drawLabel:lSi,drawTask:uSi,drawBackgroundRect:hSi,getTextObj:dSi,getNoteRect:rpt,initGraphics:fSi,drawNode:pSi,getVirtualNodeHeight:gSi},bSi=I(function(e,r,i,a){let o=Ar(),{look:l,theme:h,themeVariables:d}=o,{useGradient:p,gradientStart:m,gradientStop:y}=d,E=o.timeline?.leftMargin??50;Ze.debug("timeline",a.db);let w=o.securityLevel,T;if(w==="sandbox")T=xn("#i"+r);let k=(w==="sandbox"?xn(T.nodes()[0].contentDocument.body):xn("body")).select("#"+r);k.append("g");let A=a.db.getTasks(),R=a.db.getCommonDb().getDiagramTitle();Ze.debug("task",A),g2.initGraphics(k,r);let N=a.db.getSections();Ze.debug("sections",N);let L=0,B=0,D=0,P=0,F=50+E,H=50;P=50;let K=0,Q=!0;N.forEach(function(X){let W={number:K,descr:X,section:K,width:150,padding:20,maxHeight:L},J=g2.getVirtualNodeHeight(k,W,o);Ze.debug("sectionHeight before draw",J),L=Math.max(L,J+20)});let Z=0,Y=0;Ze.debug("tasks.length",A.length);for(let[X,W]of A.entries()){let J={number:X,descr:W,section:W.section,width:150,padding:20,maxHeight:B},z=g2.getVirtualNodeHeight(k,J,o);Ze.debug("taskHeight before draw",z),B=Math.max(B,z+20),Z=Math.max(Z,W.events.length);let ne=0;for(let ie of W.events){let le={descr:ie,section:W.section,number:W.section,width:150,padding:20,maxHeight:50};ne+=g2.getVirtualNodeHeight(k,le,o)}if(W.events.length>0)ne+=(W.events.length-1)*10;Y=Math.max(Y,ne)}if(Ze.debug("maxSectionHeight before draw",L),Ze.debug("maxTaskHeight before draw",B),N&&N.length>0)N.forEach((X)=>{let W=A.filter((ie)=>ie.section===X),J={number:K,descr:X,section:K,width:200*Math.max(W.length,1)-50,padding:20,maxHeight:L};Ze.debug("sectionNode",J);let z=k.append("g"),ne=g2.drawNode(z,J,K,o,r);if(Ze.debug("sectionNode output",ne),z.attr("transform",`translate(${F}, ${P})`),H+=L+50,W.length>0)UWr(k,W,K,F,H,B,o,Z,Y,L,!1,r);F+=200*Math.max(W.length,1),H=P,K++});else Q=!1,UWr(k,A,K,F,H,B,o,Z,Y,L,!0,r);let j=k.node().getBBox();if(Ze.debug("bounds",j),R)k.append("text").text(R).attr("x",l==="neo"?j.x*2+E:j.width/2-E).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(D=Q?L+B+150:B+100,k.append("g").attr("class","lineWrapper").append("line").attr("x1",E).attr("y1",D).attr("x2",j.width+3*E).attr("y2",D).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${r}-arrowhead)`),l==="neo"&&p&&h!=="neutral"){let X=k.select("defs"),J=(X.empty()?k.append("defs"):X).append("linearGradient").attr("id",k.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");J.append("stop").attr("offset","0%").attr("stop-color",m).attr("stop-opacity",1),J.append("stop").attr("offset","100%").attr("stop-color",y).attr("stop-opacity",1)}n3(void 0,k,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),UWr=I(function(e,r,i,a,o,l,h,d,p,m,y,E){for(let w of r){let T={descr:w.task,section:i,number:i,width:150,padding:20,maxHeight:l};Ze.debug("taskNode",T);let x=e.append("g").attr("class","taskWrapper"),A=g2.drawNode(x,T,i,h,E).height;if(Ze.debug("taskHeight after draw",A),x.attr("transform",`translate(${a}, ${o})`),l=Math.max(l,A),w.events){let R=e.append("g").attr("class","lineWrapper"),N=l;o+=100,N=N+ySi(e,w.events,i,a,o,h,E),o-=100,R.append("line").attr("x1",a+95).attr("y1",o+l).attr("x2",a+95).attr("y2",o+l+100+p+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${E}-arrowhead)`).attr("stroke-dasharray","5,5")}if(a=a+200,y&&!h.timeline?.disableMulticolor)i++}o=o-10},"drawTasks"),ySi=I(function(e,r,i,a,o,l,h){let d=0,p=o;o=o+100;for(let m of r){let y={descr:m,section:i,number:i,width:150,padding:20,maxHeight:50};Ze.debug("eventNode",y);let E=e.append("g").attr("class","eventWrapper"),T=g2.drawNode(E,y,i,l,h,!0).height;d=d+T,E.attr("transform",`translate(${a}, ${o})`),o=o+10+T}return o=p,d},"drawEvents"),vSi={setConf:I(()=>{},"setConf"),draw:bSi},_Si=Hke+LI*2,ipt=Hke+100,ESi=ipt+LI*2,SSi=I(function(e,r,i,a){let o=Ar(),l=o.timeline?.leftMargin??50;Ze.debug("timeline",a.db);let h=Ou(r);h.append("g");let d=a.db.getTasks(),p=a.db.getCommonDb().getDiagramTitle();Ze.debug("task",d),g2.initGraphics(h);let m=a.db.getSections();Ze.debug("sections",m);let y=0,E=0,w=50+l,T=50,x=T,k=w,A=_Si+sjr,R=ESi+ojr,N=k+A,L=0,B=m&&m.length>0,D=B?N:w+A,P=Math.max(50,A+R-LI*2);m.forEach(function(X){let W={number:L,descr:X,section:L,width:P,padding:LI,maxHeight:y},J=g2.getVirtualNodeHeight(h,W,o);Ze.debug("sectionHeight before draw",J),y=Math.max(y,J)});let F=0;Ze.debug("tasks.length",d.length);for(let[X,W]of d.entries()){let J={number:X,descr:W,section:W.section,width:Hke,padding:LI,maxHeight:E},z=g2.getVirtualNodeHeight(h,J,o);Ze.debug("taskHeight before draw",z),E=Math.max(E,z);let ne=0;for(let ie of W.events){let le={descr:ie,section:W.section,number:W.section,width:ipt,padding:LI,maxHeight:50};ne+=g2.getVirtualNodeHeight(h,le,o)}if(W.events.length>0)ne+=(W.events.length-1)*ajr;F=Math.max(F,ne)+wSi}Ze.debug("maxSectionHeight before draw",y),Ze.debug("maxTaskHeight before draw",E);let K=Math.max(E,F)+zWr;if(B)m.forEach((X)=>{let W=d.filter((ye)=>ye.section===X),J={number:L,descr:X,section:L,width:P,padding:LI,maxHeight:y};Ze.debug("sectionNode",J);let z=h.append("g"),ne=g2.drawNode(z,J,L,o);Ze.debug("sectionNode output",ne);let ie=D-A;z.attr("transform",`translate(${ie}, ${T})`);let le=T+ne.height+GWr;if(W.length>0)VWr(h,W,L,D,le,E,o,K,!1);let se=W.length,he=ne.height+GWr+K*Math.max(se,1)-(se>0?zWr*2:0);T+=he,L++});else VWr(h,d,L,D,T,E,o,K,!0);let Q=h.node()?.getBBox();if(!Q)throw Error("bbox not found");if(Ze.debug("bounds",Q),p){if(h.append("text").text(p).attr("x",Q.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),Q=h.node()?.getBBox(),!Q)throw Error("bbox not found");Ze.debug("bounds after title",Q)}let[Z]=W_(o.fontSize),Y=(Z??16)*2,j=(Z??16)*0.5+20,te=h.append("g").attr("class","lineWrapper");te.append("line").attr("x1",D).attr("y1",x-Y).attr("x2",D).attr("y2",Q.y+Q.height+j).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),te.lower(),n3(void 0,h,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),VWr=I(function(e,r,i,a,o,l,h,d,p){for(let m of r){let y={descr:m.task,section:i,number:i,width:Hke,padding:LI,maxHeight:l};Ze.debug("taskNode",y);let E=e.append("g").attr("class","taskWrapper"),w=g2.drawNode(E,y,i,h),T=w.height;Ze.debug("taskHeight after draw",T);let x=a-sjr-w.width;if(E.attr("transform",`translate(${x}, ${o})`),l=Math.max(l,T),m.events&&m.events.length>0){let k=o,A=a+ojr;TSi(e,m.events,i,a,A,k,h)}if(o=o+d,p&&!h.timeline?.disableMulticolor)i++}},"drawTasks"),TSi=I(function(e,r,i,a,o,l,h){let d=l;for(let p of r){let m={descr:p,section:i,number:i,width:ipt,padding:LI,maxHeight:0};Ze.debug("eventNode",m);let y=e.append("g").attr("class","eventWrapper"),w=g2.drawNode(y,m,i,h).height;y.attr("transform",`translate(${o}, ${d})`);let T=e.append("g").attr("class","lineWrapper"),x=d+w/2;T.append("line").attr("x1",a).attr("y1",x).attr("x2",o).attr("y2",x).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),d=d+w+ajr}return d-l},"drawEvents"),xSi={setConf:I(()=>{},"setConf"),draw:SSi},CSi=I((e)=>{let{theme:r}=ea(),i=r?.includes("dark"),a=nm(r,e.borderColorArray),o=e.svgId?.replace(/^#/,"")??"",l=o?`url(#${o}-drop-shadow)`:e.dropShadow??"none",h="";for(let d=0;d0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(x){if(x=this.conditionStack.length-1-Math.abs(x||0),x>=0)return this.conditionStack[x];else return"INITIAL"},"topState"),pushState:I(function(x){this.begin(x)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(x,k,A,R){var N=R;switch(A){case 0:break;case 1:break;case 2:return 13;case 3:break;case 4:break;case 5:return 8;case 6:return 9;case 7:return 7;case 8:return 14;case 9:return this.begin("acc_title"),15;break;case 10:return this.popState(),"acc_title_value";break;case 11:return this.begin("acc_descr"),17;break;case 12:return this.popState(),"acc_descr_value";break;case 13:this.begin("acc_descr_multiline");break;case 14:this.popState();break;case 15:return"acc_descr_multiline_value";case 16:return 20;case 17:return 24;case 18:return 23;case 19:return 6;case 20:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:timeline[ \t]+LR\b)/i,/^(?:timeline[ \t]+TD\b)/i,/^(?:timeline\b)/i,/^(?:title\s[^\n]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^:\n]+)/i,/^(?::\s(?:[^:\n]|:(?!\s))+)/i,/^(?:[^#:\n]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[14,15],inclusive:!1},acc_descr:{rules:[12],inclusive:!1},acc_title:{rules:[10],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,11,13,16,17,18,19,20],inclusive:!0}}};return w}();m.lexer=y;function v(){this.yy={}}return I(v,"Parser"),v.prototype=m,m.Parser=v,new v}();tpt.parser=tpt;uSi=tpt,KWr={};ZN(KWr,{addEvent:()=>ajr,addSection:()=>tjr,addTask:()=>ijr,addTaskOrg:()=>sjr,clear:()=>ZWr,default:()=>hSi,getCommonDb:()=>QWr,getDirection:()=>ejr,getSections:()=>rjr,getTasks:()=>njr,setDirection:()=>JWr});ipt=[],qke=[],ZY=[],QWr=I(()=>Y_e,"getCommonDb"),ZWr=I(function(){ipt.length=0,qke.length=0,QY="",ZY.length=0,npt="LR",qs()},"clear"),JWr=I(function(e){npt=e},"setDirection"),ejr=I(function(){return npt},"getDirection"),tjr=I(function(e){QY=e,ipt.push(e)},"addSection"),rjr=I(function(){return ipt},"getSections"),njr=I(function(){let e=HWr(),r=100,i=0;while(!e&&ii.id===XWr-1).events.push(e)},"addEvent"),sjr=I(function(e){let r={section:QY,type:QY,description:e,task:e,classes:[]};qke.push(r)},"addTaskOrg"),HWr=I(function(){let e=I(function(i){return ZY[i].processed},"compileTask"),r=!0;for(let[i,a]of ZY.entries())e(i),r=r&&a.processed;return r},"compileTasks"),hSi={clear:ZWr,getCommonDb:QWr,getDirection:ejr,setDirection:JWr,addSection:tjr,getSections:rjr,getTasks:njr,addTask:ijr,addTaskOrg:sjr,addEvent:ajr},Yke=I(function(e,r){let i=e.append("rect");if(i.attr("x",r.x),i.attr("y",r.y),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("width",r.width),i.attr("height",r.height),i.attr("rx",r.rx),i.attr("ry",r.ry),r.class!==void 0)i.attr("class",r.class);return i},"drawRect"),dSi=I(function(e,r){let a=e.append("circle").attr("cx",r.cx).attr("cy",r.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");o.append("circle").attr("cx",r.cx-5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",r.cx+5).attr("cy",r.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function l(p){let m=yC().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+2)+")")}I(l,"smile");function h(p){let m=yC().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);p.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+r.cx+","+(r.cy+7)+")")}I(h,"sad");function d(p){p.append("line").attr("class","mouth").attr("stroke",2).attr("x1",r.cx-5).attr("y1",r.cy+7).attr("x2",r.cx+5).attr("y2",r.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}if(I(d,"ambivalent"),r.score>3)l(o);else if(r.score<3)h(o);else d(o);return a},"drawFace"),fSi=I(function(e,r){let i=e.append("circle");if(i.attr("cx",r.cx),i.attr("cy",r.cy),i.attr("class","actor-"+r.pos),i.attr("fill",r.fill),i.attr("stroke",r.stroke),i.attr("r",r.r),i.class!==void 0)i.attr("class",i.class);if(r.title!==void 0)i.append("title").text(r.title);return i},"drawCircle"),ljr=I(function(e,r){let i=r.text.replace(//gi," "),a=e.append("text");if(a.attr("x",r.x),a.attr("y",r.y),a.attr("class","legend"),a.style("text-anchor",r.anchor),r.class!==void 0)a.attr("class",r.class);let o=a.append("tspan");return o.attr("x",r.x+r.textMargin*2),o.text(i),a},"drawText"),pSi=I(function(e,r){function i(o,l,h,d,p){return o+","+l+" "+(o+h)+","+l+" "+(o+h)+","+(l+d-p)+" "+(o+h-p*1.2)+","+(l+d)+" "+o+","+(l+d)}I(i,"genPoints");let a=e.append("polygon");a.attr("points",i(r.x,r.y,50,20,7)),a.attr("class","labelBox"),r.y=r.y+r.labelMargin,r.x=r.x+0.5*r.labelMargin,ljr(e,r)},"drawLabel"),gSi=I(function(e,r,i){let a=e.append("g"),o=apt();o.x=r.x,o.y=r.y,o.fill=r.fill,o.width=i.width,o.height=i.height,o.class="journey-section section-type-"+r.num,o.rx=3,o.ry=3,Yke(a,o),cjr(i)(r.text,a,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+r.num},i,r.colour)},"drawSection"),mSi=I(function(e,r,i,a){let o=r.x+i.width/2,l=e.append("g");rpt++;let h=450;l.append("line").attr("id",a+"-task"+rpt).attr("x1",o).attr("y1",r.y).attr("x2",o).attr("y2",h).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),dSi(l,{cx:o,cy:300+(5-r.score)*30,score:r.score});let d=apt();d.x=r.x,d.y=r.y,d.fill=r.fill,d.width=i.width,d.height=i.height,d.class="task task-type-"+r.num,d.rx=3,d.ry=3,Yke(l,d),cjr(i)(r.task,l,d.x,d.y,d.width,d.height,{class:"task"},i,r.colour)},"drawTask"),bSi=I(function(e,r){Yke(e,{x:r.startx,y:r.starty,width:r.stopx-r.startx,height:r.stopy-r.starty,fill:r.fill,class:"rect"}).lower()},"drawBackgroundRect"),ySi=I(function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},"getTextObj"),apt=I(function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},"getNoteRect"),cjr=function(){function e(o,l,h,d,p,m,y,v){let w=l.append("text").attr("x",h+p/2).attr("y",d+m/2+5).style("font-color",v).style("text-anchor","middle").text(o);a(w,y)}I(e,"byText");function r(o,l,h,d,p,m,y,v,w){let{taskFontSize:T,taskFontFamily:x}=v,k=o.split(//gi);for(let A=0;A0?`M0 ${r.height-5} v${-r.height+10} q0,-${h},${h},-${h} h${r.width-10} q${h},0,${h},${h} v${r.height-5} H0 Z`:`M0 ${r.height-5} v${-(r.height-5)} h${r.width} v${r.height} H0 Z`;if(e.append("path").attr("id",a+"-node-"+ojr++).attr("class","node-bkg node-"+r.type).attr("d",p),!l?.includes("redux"))e.append("line").attr("class","node-line-"+i).attr("x1",0).attr("y1",r.height).attr("x2",r.width).attr("y2",r.height)},"defaultBkg"),g2={drawRect:Yke,drawCircle:fSi,drawSection:gSi,drawText:ljr,drawLabel:pSi,drawTask:mSi,drawBackgroundRect:bSi,getTextObj:ySi,getNoteRect:apt,initGraphics:vSi,drawNode:_Si,getVirtualNodeHeight:ESi},SSi=I(function(e,r,i,a){let o=Ar(),{look:l,theme:h,themeVariables:d}=o,{useGradient:p,gradientStart:m,gradientStop:y}=d,v=o.timeline?.leftMargin??50;Ze.debug("timeline",a.db);let w=o.securityLevel,T;if(w==="sandbox")T=xn("#i"+r);let k=(w==="sandbox"?xn(T.nodes()[0].contentDocument.body):xn("body")).select("#"+r);k.append("g");let A=a.db.getTasks(),R=a.db.getCommonDb().getDiagramTitle();Ze.debug("task",A),g2.initGraphics(k,r);let N=a.db.getSections();Ze.debug("sections",N);let L=0,B=0,D=0,P=0,F=50+v,H=50;P=50;let W=0,X=!0;N.forEach(function(Z){let j={number:W,descr:Z,section:W,width:150,padding:20,maxHeight:L},ee=g2.getVirtualNodeHeight(k,j,o);Ze.debug("sectionHeight before draw",ee),L=Math.max(L,ee+20)});let Q=0,Y=0;Ze.debug("tasks.length",A.length);for(let[Z,j]of A.entries()){let ee={number:Z,descr:j,section:j.section,width:150,padding:20,maxHeight:B},z=g2.getVirtualNodeHeight(k,ee,o);Ze.debug("taskHeight before draw",z),B=Math.max(B,z+20),Q=Math.max(Q,j.events.length);let ne=0;for(let ie of j.events){let se={descr:ie,section:j.section,number:j.section,width:150,padding:20,maxHeight:50};ne+=g2.getVirtualNodeHeight(k,se,o)}if(j.events.length>0)ne+=(j.events.length-1)*10;Y=Math.max(Y,ne)}if(Ze.debug("maxSectionHeight before draw",L),Ze.debug("maxTaskHeight before draw",B),N&&N.length>0)N.forEach((Z)=>{let j=A.filter((ie)=>ie.section===Z),ee={number:W,descr:Z,section:W,width:200*Math.max(j.length,1)-50,padding:20,maxHeight:L};Ze.debug("sectionNode",ee);let z=k.append("g"),ne=g2.drawNode(z,ee,W,o,r);if(Ze.debug("sectionNode output",ne),z.attr("transform",`translate(${F}, ${P})`),H+=L+50,j.length>0)qWr(k,j,W,F,H,B,o,Q,Y,L,!1,r);F+=200*Math.max(j.length,1),H=P,W++});else X=!1,qWr(k,A,W,F,H,B,o,Q,Y,L,!0,r);let K=k.node().getBBox();if(Ze.debug("bounds",K),R)k.append("text").text(R).attr("x",l==="neo"?K.x*2+v:K.width/2-v).attr("font-size","4ex").attr("font-weight","bold").attr("y",20);if(D=X?L+B+150:B+100,k.append("g").attr("class","lineWrapper").append("line").attr("x1",v).attr("y1",D).attr("x2",K.width+3*v).attr("y2",D).attr("stroke-width",4).attr("stroke","black").attr("marker-end",`url(#${r}-arrowhead)`),l==="neo"&&p&&h!=="neutral"){let Z=k.select("defs"),ee=(Z.empty()?k.append("defs"):Z).append("linearGradient").attr("id",k.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");ee.append("stop").attr("offset","0%").attr("stop-color",m).attr("stop-opacity",1),ee.append("stop").attr("offset","100%").attr("stop-color",y).attr("stop-opacity",1)}i3(void 0,k,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),qWr=I(function(e,r,i,a,o,l,h,d,p,m,y,v){for(let w of r){let T={descr:w.task,section:i,number:i,width:150,padding:20,maxHeight:l};Ze.debug("taskNode",T);let x=e.append("g").attr("class","taskWrapper"),A=g2.drawNode(x,T,i,h,v).height;if(Ze.debug("taskHeight after draw",A),x.attr("transform",`translate(${a}, ${o})`),l=Math.max(l,A),w.events){let R=e.append("g").attr("class","lineWrapper"),N=l;o+=100,N=N+TSi(e,w.events,i,a,o,h,v),o-=100,R.append("line").attr("x1",a+95).attr("y1",o+l).attr("x2",a+95).attr("y2",o+l+100+p+100).attr("stroke-width",2).attr("stroke","black").attr("marker-end",`url(#${v}-arrowhead)`).attr("stroke-dasharray","5,5")}if(a=a+200,y&&!h.timeline?.disableMulticolor)i++}o=o-10},"drawTasks"),TSi=I(function(e,r,i,a,o,l,h){let d=0,p=o;o=o+100;for(let m of r){let y={descr:m,section:i,number:i,width:150,padding:20,maxHeight:50};Ze.debug("eventNode",y);let v=e.append("g").attr("class","eventWrapper"),T=g2.drawNode(v,y,i,l,h,!0).height;d=d+T,v.attr("transform",`translate(${a}, ${o})`),o=o+10+T}return o=p,d},"drawEvents"),xSi={setConf:I(()=>{},"setConf"),draw:SSi},CSi=Wke+PI*2,opt=Wke+100,kSi=opt+PI*2,RSi=I(function(e,r,i,a){let o=Ar(),l=o.timeline?.leftMargin??50;Ze.debug("timeline",a.db);let h=Ou(r);h.append("g");let d=a.db.getTasks(),p=a.db.getCommonDb().getDiagramTitle();Ze.debug("task",d),g2.initGraphics(h);let m=a.db.getSections();Ze.debug("sections",m);let y=0,v=0,w=50+l,T=50,x=T,k=w,A=CSi+hjr,R=kSi+djr,N=k+A,L=0,B=m&&m.length>0,D=B?N:w+A,P=Math.max(50,A+R-PI*2);m.forEach(function(Z){let j={number:L,descr:Z,section:L,width:P,padding:PI,maxHeight:y},ee=g2.getVirtualNodeHeight(h,j,o);Ze.debug("sectionHeight before draw",ee),y=Math.max(y,ee)});let F=0;Ze.debug("tasks.length",d.length);for(let[Z,j]of d.entries()){let ee={number:Z,descr:j,section:j.section,width:Wke,padding:PI,maxHeight:v},z=g2.getVirtualNodeHeight(h,ee,o);Ze.debug("taskHeight before draw",z),v=Math.max(v,z);let ne=0;for(let ie of j.events){let se={descr:ie,section:j.section,number:j.section,width:opt,padding:PI,maxHeight:50};ne+=g2.getVirtualNodeHeight(h,se,o)}if(j.events.length>0)ne+=(j.events.length-1)*ujr;F=Math.max(F,ne)+ASi}Ze.debug("maxSectionHeight before draw",y),Ze.debug("maxTaskHeight before draw",v);let W=Math.max(v,F)+WWr;if(B)m.forEach((Z)=>{let j=d.filter((ye)=>ye.section===Z),ee={number:L,descr:Z,section:L,width:P,padding:PI,maxHeight:y};Ze.debug("sectionNode",ee);let z=h.append("g"),ne=g2.drawNode(z,ee,L,o);Ze.debug("sectionNode output",ne);let ie=D-A;z.attr("transform",`translate(${ie}, ${T})`);let se=T+ne.height+YWr;if(j.length>0)jWr(h,j,L,D,se,v,o,W,!1);let oe=j.length,he=ne.height+YWr+W*Math.max(oe,1)-(oe>0?WWr*2:0);T+=he,L++});else jWr(h,d,L,D,T,v,o,W,!0);let X=h.node()?.getBBox();if(!X)throw Error("bbox not found");if(Ze.debug("bounds",X),p){if(h.append("text").text(p).attr("x",X.width/2-l).attr("font-size","4ex").attr("font-weight","bold").attr("y",20),X=h.node()?.getBBox(),!X)throw Error("bbox not found");Ze.debug("bounds after title",X)}let[Q]=W_(o.fontSize),Y=(Q??16)*2,K=(Q??16)*0.5+20,J=h.append("g").attr("class","lineWrapper");J.append("line").attr("x1",D).attr("y1",x-Y).attr("x2",D).attr("y2",X.y+X.height+K).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)"),J.lower(),i3(void 0,h,o.timeline?.padding??50,o.timeline?.useMaxWidth??!1)},"draw"),jWr=I(function(e,r,i,a,o,l,h,d,p){for(let m of r){let y={descr:m.task,section:i,number:i,width:Wke,padding:PI,maxHeight:l};Ze.debug("taskNode",y);let v=e.append("g").attr("class","taskWrapper"),w=g2.drawNode(v,y,i,h),T=w.height;Ze.debug("taskHeight after draw",T);let x=a-hjr-w.width;if(v.attr("transform",`translate(${x}, ${o})`),l=Math.max(l,T),m.events&&m.events.length>0){let k=o,A=a+djr;ISi(e,m.events,i,a,A,k,h)}if(o=o+d,p&&!h.timeline?.disableMulticolor)i++}},"drawTasks"),ISi=I(function(e,r,i,a,o,l,h){let d=l;for(let p of r){let m={descr:p,section:i,number:i,width:opt,padding:PI,maxHeight:0};Ze.debug("eventNode",m);let y=e.append("g").attr("class","eventWrapper"),w=g2.drawNode(y,m,i,h).height;y.attr("transform",`translate(${o}, ${d})`);let T=e.append("g").attr("class","lineWrapper"),x=d+w/2;T.append("line").attr("x1",a).attr("y1",x).attr("x2",o).attr("y2",x).attr("stroke-width",2).attr("stroke","black").attr("marker-end","url(#arrowhead)").attr("stroke-dasharray","5,5"),d=d+w+ujr}return d-l},"drawEvents"),OSi={setConf:I(()=>{},"setConf"),draw:RSi},NSi=I((e)=>{let{theme:r}=ea(),i=r?.includes("dark"),a=nm(r,e.borderColorArray),o=e.svgId?.replace(/^#/,"")??"",l=o?`url(#${o}-drop-shadow)`:e.dropShadow??"none",h="";for(let d=0;d{let r="",i=jS(e.THEME_COLOR_LIMIT);for(let a=0;a{let r="",i=KS(e.THEME_COLOR_LIMIT);for(let a=0;a{let{theme:r}=ea(),i=r?.includes("redux"),a=r==="neutral",o=e.svgId?.replace(/^#/,"")??"",l="";if(e.useGradient&&o&&e.THEME_COLOR_LIMIT&&!a){let h=jS(e.THEME_COLOR_LIMIT);for(let d=0;d{let{theme:r}=ea(),i=r?.includes("redux"),a=r==="neutral",o=e.svgId?.replace(/^#/,"")??"",l="";if(e.useGradient&&o&&e.THEME_COLOR_LIMIT&&!a){let h=KS(e.THEME_COLOR_LIMIT);for(let d=0;d{},"setConf"),draw:I((e,r,i,a)=>{if((a?.db?.getDirection?.()??"LR")==="TD")return xSi.draw(e,r,i,a);return vSi.draw(e,r,i,a)},"draw")},ljr={db:HWr,renderer:ISi,parser:iSi,styles:RSi}});function apt(){return crypto.getRandomValues(OSi)}var OSi;var ujr=Re(()=>{OSi=new Uint8Array(16)});function hjr(e,r=0){return(ib[e[r+0]]+ib[e[r+1]]+ib[e[r+2]]+ib[e[r+3]]+"-"+ib[e[r+4]]+ib[e[r+5]]+"-"+ib[e[r+6]]+ib[e[r+7]]+"-"+ib[e[r+8]]+ib[e[r+9]]+"-"+ib[e[r+10]]+ib[e[r+11]]+ib[e[r+12]]+ib[e[r+13]]+ib[e[r+14]]+ib[e[r+15]]).toLowerCase()}var ib;var djr=Re(()=>{ib=[];for(let e=0;e<256;++e)ib.push((e+256).toString(16).slice(1))});function NSi(e,r,i){if(!r&&!e&&crypto.randomUUID)return crypto.randomUUID();return LSi(e,r,i)}function LSi(e,r,i){e=e||{};let a=e.random??e.rng?.()??apt();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){if(i=i||0,i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let o=0;o<16;++o)r[i+o]=a[o];return r}return hjr(a)}var spt;var fjr=Re(()=>{ujr();djr();spt=NSi});var pjr=Re(()=>{fjr()});var opt,MSi,gjr=12,MI,DSi,PSi,BSi,FSi,$Si,USi,GSi,mjr;var bjr=Re(()=>{MC();fT();lT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();pjr();x0();opt=function(){var e=I(function(B,D,P,F){for(P=P||{},F=B.length;F--;P[B[F]]=D);return P},"o"),r=[1,4],i=[1,13],a=[1,12],o=[1,15],l=[1,16],h=[1,20],d=[1,19],p=[6,7,8],m=[1,26],y=[1,24],E=[1,25],w=[6,7,11],T=[1,6,13,15,16,19,22],x=[1,33],k=[1,34],A=[1,6,7,11,13,15,16,19,22],R={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:I(function(D,P,F,H,K,Q,Z){var Y=Q.length-1;switch(K){case 6:case 7:return H;case 8:H.getLogger().trace("Stop NL ");break;case 9:H.getLogger().trace("Stop EOF ");break;case 11:H.getLogger().trace("Stop NL2 ");break;case 12:H.getLogger().trace("Stop EOF2 ");break;case 15:H.getLogger().info("Node: ",Q[Y].id),H.addNode(Q[Y-1].length,Q[Y].id,Q[Y].descr,Q[Y].type);break;case 16:H.getLogger().trace("Icon: ",Q[Y]),H.decorateNode({icon:Q[Y]});break;case 17:case 21:H.decorateNode({class:Q[Y]});break;case 18:H.getLogger().trace("SPACELIST");break;case 19:H.getLogger().trace("Node: ",Q[Y].id),H.addNode(0,Q[Y].id,Q[Y].descr,Q[Y].type);break;case 20:H.decorateNode({icon:Q[Y]});break;case 25:H.getLogger().trace("node found ..",Q[Y-2]),this.$={id:Q[Y-1],descr:Q[Y-1],type:H.getType(Q[Y-2],Q[Y])};break;case 26:this.$={id:Q[Y],descr:Q[Y],type:H.nodeType.DEFAULT};break;case 27:H.getLogger().trace("node found ..",Q[Y-3]),this.$={id:Q[Y-3],descr:Q[Y-1],type:H.getType(Q[Y-2],Q[Y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:i,12:21,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},{6:i,9:22,12:11,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},{6:m,7:y,10:23,11:E},e(w,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:h,22:d}),e(w,[2,18]),e(w,[2,19]),e(w,[2,20]),e(w,[2,21]),e(w,[2,23]),e(w,[2,24]),e(w,[2,26],{19:[1,30]}),{20:[1,31]},{6:m,7:y,10:32,11:E},{1:[2,7],6:i,12:21,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},e(T,[2,14],{7:x,11:k}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(w,[2,15]),e(w,[2,16]),e(w,[2,17]),{20:[1,35]},{21:[1,36]},e(T,[2,13],{7:x,11:k}),e(A,[2,11]),e(A,[2,12]),{21:[1,37]},e(w,[2,25]),e(w,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:I(function(D,P){if(P.recoverable)this.trace(D);else{var F=Error(D);throw F.hash=P,F}},"parseError"),parse:I(function(D){var P=this,F=[0],H=[],K=[null],Q=[],Z=this.table,Y="",j=0,te=0,X=0,W=2,J=1,z=Q.slice.call(arguments,1),ne=Object.create(this.lexer),ie={yy:{}};for(var le in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,le))ie.yy[le]=this.yy[le];if(ne.setInput(D,ie.yy),ie.yy.lexer=ne,ie.yy.parser=this,typeof ne.yylloc>"u")ne.yylloc={};var se=ne.yylloc;Q.push(se);var he=ne.options&&ne.options.ranges;if(typeof ie.yy.parseError==="function")this.parseError=ie.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ye(We){F.length=F.length-2*We,K.length=K.length-We,Q.length=Q.length-We}I(ye,"popStack");function xe(){var We=H.pop()||ne.lex()||J;if(typeof We!=="number"){if(We instanceof Array)H=We,We=H.pop();We=P.symbols_[We]||We}return We}I(xe,"lex");var Ie,Ee,Ue,Me,Xe,je,Qe={},St,pt,Vt,Xt;while(!0){if(Ue=F[F.length-1],this.defaultActions[Ue])Me=this.defaultActions[Ue];else{if(Ie===null||typeof Ie>"u")Ie=xe();Me=Z[Ue]&&Z[Ue][Ie]}if(typeof Me>"u"||!Me.length||!Me[0]){var rr="";Xt=[];for(St in Z[Ue])if(this.terminals_[St]&&St>W)Xt.push("'"+this.terminals_[St]+"'");if(ne.showPosition)rr="Parse error on line "+(j+1)+`: +`},"getStyles"),DSi=MSi,PSi={setConf:I(()=>{},"setConf"),draw:I((e,r,i,a)=>{if((a?.db?.getDirection?.()??"LR")==="TD")return OSi.draw(e,r,i,a);return xSi.draw(e,r,i,a)},"draw")},fjr={db:KWr,renderer:PSi,parser:uSi,styles:DSi}});function lpt(){return crypto.getRandomValues(BSi)}var BSi;var gjr=Re(()=>{BSi=new Uint8Array(16)});function mjr(e,r=0){return(ib[e[r+0]]+ib[e[r+1]]+ib[e[r+2]]+ib[e[r+3]]+"-"+ib[e[r+4]]+ib[e[r+5]]+"-"+ib[e[r+6]]+ib[e[r+7]]+"-"+ib[e[r+8]]+ib[e[r+9]]+"-"+ib[e[r+10]]+ib[e[r+11]]+ib[e[r+12]]+ib[e[r+13]]+ib[e[r+14]]+ib[e[r+15]]).toLowerCase()}var ib;var bjr=Re(()=>{ib=[];for(let e=0;e<256;++e)ib.push((e+256).toString(16).slice(1))});function FSi(e,r,i){if(!r&&!e&&crypto.randomUUID)return crypto.randomUUID();return $Si(e,r,i)}function $Si(e,r,i){e=e||{};let a=e.random??e.rng?.()??lpt();if(a.length<16)throw Error("Random bytes length must be >= 16");if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,r){if(i=i||0,i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);for(let o=0;o<16;++o)r[i+o]=a[o];return r}return mjr(a)}var cpt;var yjr=Re(()=>{gjr();bjr();cpt=FSi});var vjr=Re(()=>{yjr()});var upt,USi,_jr=12,BI,GSi,zSi,VSi,HSi,qSi,YSi,WSi,Ejr;var wjr=Re(()=>{PC();pT();cT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();vjr();x0();upt=function(){var e=I(function(B,D,P,F){for(P=P||{},F=B.length;F--;P[B[F]]=D);return P},"o"),r=[1,4],i=[1,13],a=[1,12],o=[1,15],l=[1,16],h=[1,20],d=[1,19],p=[6,7,8],m=[1,26],y=[1,24],v=[1,25],w=[6,7,11],T=[1,6,13,15,16,19,22],x=[1,33],k=[1,34],A=[1,6,7,11,13,15,16,19,22],R={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:I(function(D,P,F,H,W,X,Q){var Y=X.length-1;switch(W){case 6:case 7:return H;case 8:H.getLogger().trace("Stop NL ");break;case 9:H.getLogger().trace("Stop EOF ");break;case 11:H.getLogger().trace("Stop NL2 ");break;case 12:H.getLogger().trace("Stop EOF2 ");break;case 15:H.getLogger().info("Node: ",X[Y].id),H.addNode(X[Y-1].length,X[Y].id,X[Y].descr,X[Y].type);break;case 16:H.getLogger().trace("Icon: ",X[Y]),H.decorateNode({icon:X[Y]});break;case 17:case 21:H.decorateNode({class:X[Y]});break;case 18:H.getLogger().trace("SPACELIST");break;case 19:H.getLogger().trace("Node: ",X[Y].id),H.addNode(0,X[Y].id,X[Y].descr,X[Y].type);break;case 20:H.decorateNode({icon:X[Y]});break;case 25:H.getLogger().trace("node found ..",X[Y-2]),this.$={id:X[Y-1],descr:X[Y-1],type:H.getType(X[Y-2],X[Y])};break;case 26:this.$={id:X[Y],descr:X[Y],type:H.nodeType.DEFAULT};break;case 27:H.getLogger().trace("node found ..",X[Y-3]),this.$={id:X[Y-3],descr:X[Y-1],type:H.getType(X[Y-2],X[Y])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:i,12:21,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},{6:i,9:22,12:11,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},{6:m,7:y,10:23,11:v},e(w,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:h,22:d}),e(w,[2,18]),e(w,[2,19]),e(w,[2,20]),e(w,[2,21]),e(w,[2,23]),e(w,[2,24]),e(w,[2,26],{19:[1,30]}),{20:[1,31]},{6:m,7:y,10:32,11:v},{1:[2,7],6:i,12:21,13:a,14:14,15:o,16:l,17:17,18:18,19:h,22:d},e(T,[2,14],{7:x,11:k}),e(A,[2,8]),e(A,[2,9]),e(A,[2,10]),e(w,[2,15]),e(w,[2,16]),e(w,[2,17]),{20:[1,35]},{21:[1,36]},e(T,[2,13],{7:x,11:k}),e(A,[2,11]),e(A,[2,12]),{21:[1,37]},e(w,[2,25]),e(w,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:I(function(D,P){if(P.recoverable)this.trace(D);else{var F=Error(D);throw F.hash=P,F}},"parseError"),parse:I(function(D){var P=this,F=[0],H=[],W=[null],X=[],Q=this.table,Y="",K=0,J=0,Z=0,j=2,ee=1,z=X.slice.call(arguments,1),ne=Object.create(this.lexer),ie={yy:{}};for(var se in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,se))ie.yy[se]=this.yy[se];if(ne.setInput(D,ie.yy),ie.yy.lexer=ne,ie.yy.parser=this,typeof ne.yylloc>"u")ne.yylloc={};var oe=ne.yylloc;X.push(oe);var he=ne.options&&ne.options.ranges;if(typeof ie.yy.parseError==="function")this.parseError=ie.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function ye(je){F.length=F.length-2*je,W.length=W.length-je,X.length=X.length-je}I(ye,"popStack");function Se(){var je=H.pop()||ne.lex()||ee;if(typeof je!=="number"){if(je instanceof Array)H=je,je=H.pop();je=P.symbols_[je]||je}return je}I(Se,"lex");var Ie,Ee,ze,Me,Xe,Ye,Qe={},xt,dt,zt,Kt;while(!0){if(ze=F[F.length-1],this.defaultActions[ze])Me=this.defaultActions[ze];else{if(Ie===null||typeof Ie>"u")Ie=Se();Me=Q[ze]&&Q[ze][Ie]}if(typeof Me>"u"||!Me.length||!Me[0]){var rr="";Kt=[];for(xt in Q[ze])if(this.terminals_[xt]&&xt>j)Kt.push("'"+this.terminals_[xt]+"'");if(ne.showPosition)rr="Parse error on line "+(K+1)+`: `+ne.showPosition()+` -Expecting `+Xt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'";else rr="Parse error on line "+(j+1)+": Unexpected "+(Ie==J?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'");this.parseError(rr,{text:ne.match,token:this.terminals_[Ie]||Ie,line:ne.yylineno,loc:se,expected:Xt})}if(Me[0]instanceof Array&&Me.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ue+", token: "+Ie);switch(Me[0]){case 1:if(F.push(Ie),K.push(ne.yytext),Q.push(ne.yylloc),F.push(Me[1]),Ie=null,!Ee){if(te=ne.yyleng,Y=ne.yytext,j=ne.yylineno,se=ne.yylloc,X>0)X--}else Ie=Ee,Ee=null;break;case 2:if(pt=this.productions_[Me[1]][1],Qe.$=K[K.length-pt],Qe._$={first_line:Q[Q.length-(pt||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(pt||1)].first_column,last_column:Q[Q.length-1].last_column},he)Qe._$.range=[Q[Q.length-(pt||1)].range[0],Q[Q.length-1].range[1]];if(je=this.performAction.apply(Qe,[Y,te,j,ie.yy,Me[1],K,Q].concat(z)),typeof je<"u")return je;if(pt)F=F.slice(0,-1*pt*2),K=K.slice(0,-1*pt),Q=Q.slice(0,-1*pt);F.push(this.productions_[Me[1]][0]),K.push(Qe.$),Q.push(Qe._$),Vt=Z[F[F.length-2]][F[F.length-1]],F.push(Vt);break;case 3:return!0}}return!0},"parse")},N=function(){var B={EOF:1,parseError:I(function(P,F){if(this.yy.parser)this.yy.parser.parseError(P,F);else throw Error(P)},"parseError"),setInput:I(function(D,P){if(this.yy=P||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var P=D.match(/(?:\r\n?|\n).*/g);if(P)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),D},"input"),unput:I(function(D){var P=D.length,F=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var H=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1)this.yylineno-=F.length-1;var K=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===H.length?this.yylloc.first_column:0)+H[H.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges)this.yylloc.range=[K[0],K[0]+this.yyleng-P];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+Kt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'";else rr="Parse error on line "+(K+1)+": Unexpected "+(Ie==ee?"end of input":"'"+(this.terminals_[Ie]||Ie)+"'");this.parseError(rr,{text:ne.match,token:this.terminals_[Ie]||Ie,line:ne.yylineno,loc:oe,expected:Kt})}if(Me[0]instanceof Array&&Me.length>1)throw Error("Parse Error: multiple actions possible at state: "+ze+", token: "+Ie);switch(Me[0]){case 1:if(F.push(Ie),W.push(ne.yytext),X.push(ne.yylloc),F.push(Me[1]),Ie=null,!Ee){if(J=ne.yyleng,Y=ne.yytext,K=ne.yylineno,oe=ne.yylloc,Z>0)Z--}else Ie=Ee,Ee=null;break;case 2:if(dt=this.productions_[Me[1]][1],Qe.$=W[W.length-dt],Qe._$={first_line:X[X.length-(dt||1)].first_line,last_line:X[X.length-1].last_line,first_column:X[X.length-(dt||1)].first_column,last_column:X[X.length-1].last_column},he)Qe._$.range=[X[X.length-(dt||1)].range[0],X[X.length-1].range[1]];if(Ye=this.performAction.apply(Qe,[Y,J,K,ie.yy,Me[1],W,X].concat(z)),typeof Ye<"u")return Ye;if(dt)F=F.slice(0,-1*dt*2),W=W.slice(0,-1*dt),X=X.slice(0,-1*dt);F.push(this.productions_[Me[1]][0]),W.push(Qe.$),X.push(Qe._$),zt=Q[F[F.length-2]][F[F.length-1]],F.push(zt);break;case 3:return!0}}return!0},"parse")},N=function(){var B={EOF:1,parseError:I(function(P,F){if(this.yy.parser)this.yy.parser.parseError(P,F);else throw Error(P)},"parseError"),setInput:I(function(D,P){if(this.yy=P||this.yy||{},this._input=D,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var D=this._input[0];this.yytext+=D,this.yyleng++,this.offset++,this.match+=D,this.matched+=D;var P=D.match(/(?:\r\n?|\n).*/g);if(P)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),D},"input"),unput:I(function(D){var P=D.length,F=D.split(/(?:\r\n?|\n)/g);this._input=D+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-P),this.offset-=P;var H=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),F.length-1)this.yylineno-=F.length-1;var W=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:F?(F.length===H.length?this.yylloc.first_column:0)+H[H.length-F.length].length-F[0].length:this.yylloc.first_column-P},this.options.ranges)this.yylloc.range=[W[0],W[0]+this.yyleng-P];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(D){this.unput(this.match.slice(D))},"less"),pastInput:I(function(){var D=this.matched.substr(0,this.matched.length-this.match.length);return(D.length>20?"...":"")+D.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var D=this.match;if(D.length<20)D+=this._input.substr(0,20-D.length);return(D.substr(0,20)+(D.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var D=this.pastInput(),P=Array(D.length+1).join("-");return D+this.upcomingInput()+` -`+P+"^"},"showPosition"),test_match:I(function(D,P){var F,H,K;if(this.options.backtrack_lexer){if(K={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)K.yylloc.range=this.yylloc.range.slice(0)}if(H=D[0].match(/(?:\r\n?|\n).*/g),H)this.yylineno+=H.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:H?H[H.length-1].length-H[H.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+D[0].length},this.yytext+=D[0],this.match+=D[0],this.matches=D,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(D[0].length),this.matched+=D[0],F=this.performAction.call(this,this.yy,this,P,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(F)return F;else if(this._backtrack){for(var Q in K)this[Q]=K[Q];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var D,P,F,H;if(!this._more)this.yytext="",this.match="";var K=this._currentRules();for(var Q=0;QP[0].length)){if(P=F,H=Q,this.options.backtrack_lexer)if(D=this.test_match(F,K[Q]),D!==!1)return D;else if(this._backtrack){P=!1;continue}else return!1;else if(!this.options.flex)break}if(P){if(D=this.test_match(P,K[H]),D!==!1)return D;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var P=this.next();if(P)return P;else return this.lex()},"lex"),begin:I(function(P){this.conditionStack.push(P)},"begin"),popState:I(function(){var P=this.conditionStack.length-1;if(P>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(P){if(P=this.conditionStack.length-1-Math.abs(P||0),P>=0)return this.conditionStack[P];else return"INITIAL"},"topState"),pushState:I(function(P){this.begin(P)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(P,F,H,K){var Q=K;switch(H){case 0:return P.getLogger().trace("Found comment",F.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:P.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return P.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:P.getLogger().trace("end icon"),this.popState();break;case 10:return P.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return P.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return P.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return P.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:P.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return P.getLogger().trace("description:",F.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),P.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),P.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),P.getLogger().trace("node end ...",F.yytext),"NODE_DEND";break;case 30:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),P.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),P.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return P.getLogger().trace("Long description:",F.yytext),20;break;case 36:return P.getLogger().trace("Long description:",F.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return B}();R.lexer=N;function L(){this.yy={}}return I(L,"Parser"),L.prototype=R,R.Parser=L,new L}();opt.parser=opt;MSi=opt,MI={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},DSi=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=MI,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{I(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level0?this.nodes[0]:null}addNode(e,r,i,a){Ze.info("addNode",e,r,i,a);let o=!1;if(this.nodes.length===0)this.baseLevel=e,e=0,o=!0;else if(this.baseLevel!==void 0)e=e-this.baseLevel,o=!1;let l=Ar(),h=l.mindmap?.padding??Fs.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2;break}let d={id:this.count++,nodeId:ho(r,l),level:e,descr:ho(i,l),type:a,children:[],width:l.mindmap?.maxNodeWidth??Fs.mindmap.maxNodeWidth,padding:h,isRoot:o},p=this.getParent(e);if(p)p.children.push(d),this.nodes.push(d);else if(o)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,r){switch(Ze.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let r=Ar(),i=this.nodes[this.nodes.length-1];if(e.icon)i.icon=ho(e.icon,r);if(e.class)i.class=ho(e.class,r)}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r,i=0,a=!1){if(e.level===0)e.section=void 0;else e.section=a?(i-1)%(gjr-1):r;if(e.children)for(let[o,l]of e.children.entries()){let h=e.level===0?o%(gjr-1):r;this.assignSections(l,h,i+1,a)}}flattenNodes(e,r){let i=Ar(),a=["mindmap-node"];if(e.isRoot===!0)a.push("section-root","section--1");else if(e.section!==void 0)a.push(`section-${e.section}`);if(e.class)a.push(e.class);let o=a.join(" "),l=I((d)=>{let m=(i.theme?.toLowerCase()??"").includes("redux");switch(d){case MI.CIRCLE:return"mindmapCircle";case MI.RECT:return"rect";case MI.ROUNDED_RECT:return"rounded";case MI.CLOUD:return"cloud";case MI.BANG:return"bang";case MI.HEXAGON:return"hexagon";case MI.DEFAULT:return m?"rounded":"defaultMindmapNode";case MI.NO_BORDER:default:return"rect"}},"getShapeFromType"),h={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:l(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:o,cssStyles:[],centerLabel:!0,look:i.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(h),e.children)for(let d of e.children)this.flattenNodes(d,r)}generateEdges(e,r){if(!e.children)return;let i=Ar();for(let a of e.children){let o="edge";if(a.section!==void 0)o+=` section-edge-${a.section}`;let l=e.level+1;o+=` edge-depth-${l}`;let h={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:i.look,classes:o,depth:e.level,section:a.section};r.push(h),this.generateEdges(a,r)}}getData(){let e=this.getMindmap(),r=Ar(),a=Jyr().layout!==void 0,o=r;if(!a)o.layout="cose-bilkent";if(!e)return{nodes:[],edges:[],config:o};Ze.debug("getData: mindmapRoot",e,r),this.assignSections(e,void 0,0,r.mindmap?.colorBy==="depth");let l=[],h=[];this.flattenNodes(e,l),this.generateEdges(e,h),Ze.debug(`getData: processed ${l.length} nodes and ${h.length} edges`);let d=new Map;for(let p of l)d.set(p.id,{shape:p.shape,width:p.width,height:p.height,padding:p.padding});return{nodes:l,edges:h,config:o,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(d),type:"mindmap",diagramId:"mindmap-"+spt()}}getLogger(){return Ze}},PSi=I(async(e,r,i,a)=>{Ze.debug(`Rendering mindmap diagram -`+e);let o=a.db,l=o.getData(),h=ly(r,l.config.securityLevel);if(l.type=a.type,l.layoutAlgorithm=oy(l.config.layout,{fallback:"cose-bilkent"}),l.diagramId=r,!o.getMindmap())return;l.nodes.forEach((w)=>{if(w.shape==="rounded")w.radius=15,w.taper=15,w.stroke="none",w.width=0,w.padding=15;else if(w.shape==="circle")w.padding=10;else if(w.shape==="rect")w.width=0,w.padding=10;else if(w.shape==="hexagon")w.width=0,w.height=0}),await sy(l,h);let{themeVariables:p}=ea(),{useGradient:m,gradientStart:y,gradientStop:E}=p;if(m&&y&&E){let w=h.attr("id"),T=h.append("defs").append("linearGradient").attr("id",`${w}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",E).attr("stop-opacity",1)}a1(h,l.config.mindmap?.padding??Fs.mindmap.padding,"mindmapDiagram",l.config.mindmap?.useMaxWidth??Fs.mindmap.useMaxWidth)},"draw"),BSi={draw:PSi},FSi=I((e)=>{let{theme:r,look:i}=e,a="";for(let o=0;oP[0].length)){if(P=F,H=X,this.options.backtrack_lexer)if(D=this.test_match(F,W[X]),D!==!1)return D;else if(this._backtrack){P=!1;continue}else return!1;else if(!this.options.flex)break}if(P){if(D=this.test_match(P,W[H]),D!==!1)return D;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var P=this.next();if(P)return P;else return this.lex()},"lex"),begin:I(function(P){this.conditionStack.push(P)},"begin"),popState:I(function(){var P=this.conditionStack.length-1;if(P>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(P){if(P=this.conditionStack.length-1-Math.abs(P||0),P>=0)return this.conditionStack[P];else return"INITIAL"},"topState"),pushState:I(function(P){this.begin(P)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(P,F,H,W){var X=W;switch(H){case 0:return P.getLogger().trace("Found comment",F.yytext),6;break;case 1:return 8;case 2:this.begin("CLASS");break;case 3:return this.popState(),16;break;case 4:this.popState();break;case 5:P.getLogger().trace("Begin icon"),this.begin("ICON");break;case 6:return P.getLogger().trace("SPACELINE"),6;break;case 7:return 7;case 8:return 15;case 9:P.getLogger().trace("end icon"),this.popState();break;case 10:return P.getLogger().trace("Exploding node"),this.begin("NODE"),19;break;case 11:return P.getLogger().trace("Cloud"),this.begin("NODE"),19;break;case 12:return P.getLogger().trace("Explosion Bang"),this.begin("NODE"),19;break;case 13:return P.getLogger().trace("Cloud Bang"),this.begin("NODE"),19;break;case 14:return this.begin("NODE"),19;break;case 15:return this.begin("NODE"),19;break;case 16:return this.begin("NODE"),19;break;case 17:return this.begin("NODE"),19;break;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin("NSTR2");break;case 22:return"NODE_DESCR";case 23:this.popState();break;case 24:P.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 25:return P.getLogger().trace("description:",F.yytext),"NODE_DESCR";break;case 26:this.popState();break;case 27:return this.popState(),P.getLogger().trace("node end ))"),"NODE_DEND";break;case 28:return this.popState(),P.getLogger().trace("node end )"),"NODE_DEND";break;case 29:return this.popState(),P.getLogger().trace("node end ...",F.yytext),"NODE_DEND";break;case 30:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 31:return this.popState(),P.getLogger().trace("node end (-"),"NODE_DEND";break;case 32:return this.popState(),P.getLogger().trace("node end (-"),"NODE_DEND";break;case 33:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 34:return this.popState(),P.getLogger().trace("node end (("),"NODE_DEND";break;case 35:return P.getLogger().trace("Long description:",F.yytext),20;break;case 36:return P.getLogger().trace("Long description:",F.yytext),20;break}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}};return B}();R.lexer=N;function L(){this.yy={}}return I(L,"Parser"),L.prototype=R,R.Parser=L,new L}();upt.parser=upt;USi=upt,BI={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},GSi=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=BI,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{I(this,"MindmapDB")}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let r=this.nodes.length-1;r>=0;r--)if(this.nodes[r].level0?this.nodes[0]:null}addNode(e,r,i,a){Ze.info("addNode",e,r,i,a);let o=!1;if(this.nodes.length===0)this.baseLevel=e,e=0,o=!0;else if(this.baseLevel!==void 0)e=e-this.baseLevel,o=!1;let l=Ar(),h=l.mindmap?.padding??Fs.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:h*=2;break}let d={id:this.count++,nodeId:ho(r,l),level:e,descr:ho(i,l),type:a,children:[],width:l.mindmap?.maxNodeWidth??Fs.mindmap.maxNodeWidth,padding:h,isRoot:o},p=this.getParent(e);if(p)p.children.push(d),this.nodes.push(d);else if(o)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(e,r){switch(Ze.debug("In get type",e,r),e){case"[":return this.nodeType.RECT;case"(":return r===")"?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case"((":return this.nodeType.CIRCLE;case")":return this.nodeType.CLOUD;case"))":return this.nodeType.BANG;case"{{":return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,r){this.elements[e]=r}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let r=Ar(),i=this.nodes[this.nodes.length-1];if(e.icon)i.icon=ho(e.icon,r);if(e.class)i.class=ho(e.class,r)}type2Str(e){switch(e){case this.nodeType.DEFAULT:return"no-border";case this.nodeType.RECT:return"rect";case this.nodeType.ROUNDED_RECT:return"rounded-rect";case this.nodeType.CIRCLE:return"circle";case this.nodeType.CLOUD:return"cloud";case this.nodeType.BANG:return"bang";case this.nodeType.HEXAGON:return"hexgon";default:return"no-border"}}assignSections(e,r,i=0,a=!1){if(e.level===0)e.section=void 0;else e.section=a?(i-1)%(_jr-1):r;if(e.children)for(let[o,l]of e.children.entries()){let h=e.level===0?o%(_jr-1):r;this.assignSections(l,h,i+1,a)}}flattenNodes(e,r){let i=Ar(),a=["mindmap-node"];if(e.isRoot===!0)a.push("section-root","section--1");else if(e.section!==void 0)a.push(`section-${e.section}`);if(e.class)a.push(e.class);let o=a.join(" "),l=I((d)=>{let m=(i.theme?.toLowerCase()??"").includes("redux");switch(d){case BI.CIRCLE:return"mindmapCircle";case BI.RECT:return"rect";case BI.ROUNDED_RECT:return"rounded";case BI.CLOUD:return"cloud";case BI.BANG:return"bang";case BI.HEXAGON:return"hexagon";case BI.DEFAULT:return m?"rounded":"defaultMindmapNode";case BI.NO_BORDER:default:return"rect"}},"getShapeFromType"),h={id:e.id.toString(),domId:"node_"+e.id.toString(),label:e.descr,labelType:"markdown",isGroup:!1,shape:l(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:o,cssStyles:[],centerLabel:!0,look:i.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(r.push(h),e.children)for(let d of e.children)this.flattenNodes(d,r)}generateEdges(e,r){if(!e.children)return;let i=Ar();for(let a of e.children){let o="edge";if(a.section!==void 0)o+=` section-edge-${a.section}`;let l=e.level+1;o+=` edge-depth-${l}`;let h={id:`edge_${e.id}_${a.id}`,start:e.id.toString(),end:a.id.toString(),type:"normal",curve:"basis",thickness:"normal",look:i.look,classes:o,depth:e.level,section:a.section};r.push(h),this.generateEdges(a,r)}}getData(){let e=this.getMindmap(),r=Ar(),a=ivr().layout!==void 0,o=r;if(!a)o.layout="cose-bilkent";if(!e)return{nodes:[],edges:[],config:o};Ze.debug("getData: mindmapRoot",e,r),this.assignSections(e,void 0,0,r.mindmap?.colorBy==="depth");let l=[],h=[];this.flattenNodes(e,l),this.generateEdges(e,h),Ze.debug(`getData: processed ${l.length} nodes and ${h.length} edges`);let d=new Map;for(let p of l)d.set(p.id,{shape:p.shape,width:p.width,height:p.height,padding:p.padding});return{nodes:l,edges:h,config:o,rootNode:e,markers:["point"],direction:"TB",nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(d),type:"mindmap",diagramId:"mindmap-"+cpt()}}getLogger(){return Ze}},zSi=I(async(e,r,i,a)=>{Ze.debug(`Rendering mindmap diagram +`+e);let o=a.db,l=o.getData(),h=ly(r,l.config.securityLevel);if(l.type=a.type,l.layoutAlgorithm=oy(l.config.layout,{fallback:"cose-bilkent"}),l.diagramId=r,!o.getMindmap())return;l.nodes.forEach((w)=>{if(w.shape==="rounded")w.radius=15,w.taper=15,w.stroke="none",w.width=0,w.padding=15;else if(w.shape==="circle")w.padding=10;else if(w.shape==="rect")w.width=0,w.padding=10;else if(w.shape==="hexagon")w.width=0,w.height=0}),await sy(l,h);let{themeVariables:p}=ea(),{useGradient:m,gradientStart:y,gradientStop:v}=p;if(m&&y&&v){let w=h.attr("id"),T=h.append("defs").append("linearGradient").attr("id",`${w}-gradient`).attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");T.append("stop").attr("offset","0%").attr("stop-color",y).attr("stop-opacity",1),T.append("stop").attr("offset","100%").attr("stop-color",v).attr("stop-opacity",1)}a1(h,l.config.mindmap?.padding??Fs.mindmap.padding,"mindmapDiagram",l.config.mindmap?.useMaxWidth??Fs.mindmap.useMaxWidth)},"draw"),VSi={draw:zSi},HSi=I((e)=>{let{theme:r,look:i}=e,a="";for(let o=0;o{let a="";for(let o=0;o{let a="";for(let o=0;o{let{theme:r}=e,i=e.svgId,a=r?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(r==="neutral"?1:0)],o=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none";return` + }`;return a},"genGradient"),YSi=I((e)=>{let{theme:r}=e,i=e.svgId,a=r?.includes("redux")?e.nodeBorder:e["cScaleLabel"+(r==="neutral"?1:0)],o=e.dropShadow?e.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none";return` .edge { stroke-width: 3; } - ${FSi(e)} + ${HSi(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } @@ -3189,18 +3189,18 @@ Expecting `+Xt.join(", ")+", got '"+(this.terminals_[Ie]||Ie)+"'";else rr="Parse fill: ${a}; color: ${a}; } - ${e.useGradient&&i&&e.mainBkg?$Si(e.THEME_COLOR_LIMIT,i,e.mainBkg):""} -`},"getStyles"),GSi=USi,mjr={get db(){return new DSi},renderer:BSi,parser:MSi,styles:GSi}});var lpt,zSi,vT,upt,cpt=0,hpt,VSi,HSi,yjr,qSi,YSi,dm,WSi,jSi,KSi,XSi,QSi,ZSi,JSi,eTi,tTi,rTi,nTi,iTi,aTi,vjr;var _jr=Re(()=>{A0();oI();vL();K1();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();x0();lpt=function(){var e=I(function(F,H,K,Q){for(K=K||{},Q=F.length;Q--;K[F[Q]]=H);return K},"o"),r=[1,4],i=[1,13],a=[1,12],o=[1,15],l=[1,16],h=[1,20],d=[1,19],p=[6,7,8],m=[1,26],y=[1,24],E=[1,25],w=[6,7,11],T=[1,31],x=[6,7,11,24],k=[1,6,13,16,17,20,23],A=[1,35],R=[1,36],N=[1,6,7,11,13,16,17,20,23],L=[1,38],B={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:I(function(H,K,Q,Z,Y,j,te){var X=j.length-1;switch(Y){case 6:case 7:return Z;case 8:Z.getLogger().trace("Stop NL ");break;case 9:Z.getLogger().trace("Stop EOF ");break;case 11:Z.getLogger().trace("Stop NL2 ");break;case 12:Z.getLogger().trace("Stop EOF2 ");break;case 15:Z.getLogger().info("Node: ",j[X-1].id),Z.addNode(j[X-2].length,j[X-1].id,j[X-1].descr,j[X-1].type,j[X]);break;case 16:Z.getLogger().info("Node: ",j[X].id),Z.addNode(j[X-1].length,j[X].id,j[X].descr,j[X].type);break;case 17:Z.getLogger().trace("Icon: ",j[X]),Z.decorateNode({icon:j[X]});break;case 18:case 23:Z.decorateNode({class:j[X]});break;case 19:Z.getLogger().trace("SPACELIST");break;case 20:Z.getLogger().trace("Node: ",j[X-1].id),Z.addNode(0,j[X-1].id,j[X-1].descr,j[X-1].type,j[X]);break;case 21:Z.getLogger().trace("Node: ",j[X].id),Z.addNode(0,j[X].id,j[X].descr,j[X].type);break;case 22:Z.decorateNode({icon:j[X]});break;case 27:Z.getLogger().trace("node found ..",j[X-2]),this.$={id:j[X-1],descr:j[X-1],type:Z.getType(j[X-2],j[X])};break;case 28:this.$={id:j[X],descr:j[X],type:0};break;case 29:Z.getLogger().trace("node found ..",j[X-3]),this.$={id:j[X-3],descr:j[X-1],type:Z.getType(j[X-2],j[X])};break;case 30:this.$=j[X-1]+j[X];break;case 31:this.$=j[X];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:i,12:21,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},{6:i,9:22,12:11,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},{6:m,7:y,10:23,11:E},e(w,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:h,23:d}),e(w,[2,19]),e(w,[2,21],{15:30,24:T}),e(w,[2,22]),e(w,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:m,7:y,10:34,11:E},{1:[2,7],6:i,12:21,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},e(k,[2,14],{7:A,11:R}),e(N,[2,8]),e(N,[2,9]),e(N,[2,10]),e(w,[2,16],{15:37,24:T}),e(w,[2,17]),e(w,[2,18]),e(w,[2,20],{24:L}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(k,[2,13],{7:A,11:R}),e(N,[2,11]),e(N,[2,12]),e(w,[2,15],{24:L}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:I(function(H,K){if(K.recoverable)this.trace(H);else{var Q=Error(H);throw Q.hash=K,Q}},"parseError"),parse:I(function(H){var K=this,Q=[0],Z=[],Y=[null],j=[],te=this.table,X="",W=0,J=0,z=0,ne=2,ie=1,le=j.slice.call(arguments,1),se=Object.create(this.lexer),he={yy:{}};for(var ye in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ye))he.yy[ye]=this.yy[ye];if(se.setInput(H,he.yy),he.yy.lexer=se,he.yy.parser=this,typeof se.yylloc>"u")se.yylloc={};var xe=se.yylloc;j.push(xe);var Ie=se.options&&se.options.ranges;if(typeof he.yy.parseError==="function")this.parseError=he.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ee(bt){Q.length=Q.length-2*bt,Y.length=Y.length-bt,j.length=j.length-bt}I(Ee,"popStack");function Ue(){var bt=Z.pop()||se.lex()||ie;if(typeof bt!=="number"){if(bt instanceof Array)Z=bt,bt=Z.pop();bt=K.symbols_[bt]||bt}return bt}I(Ue,"lex");var Me,Xe,je,Qe,St,pt,Vt={},Xt,rr,We,Nt;while(!0){if(je=Q[Q.length-1],this.defaultActions[je])Qe=this.defaultActions[je];else{if(Me===null||typeof Me>"u")Me=Ue();Qe=te[je]&&te[je][Me]}if(typeof Qe>"u"||!Qe.length||!Qe[0]){var ct="";Nt=[];for(Xt in te[je])if(this.terminals_[Xt]&&Xt>ne)Nt.push("'"+this.terminals_[Xt]+"'");if(se.showPosition)ct="Parse error on line "+(W+1)+`: -`+se.showPosition()+` -Expecting `+Nt.join(", ")+", got '"+(this.terminals_[Me]||Me)+"'";else ct="Parse error on line "+(W+1)+": Unexpected "+(Me==ie?"end of input":"'"+(this.terminals_[Me]||Me)+"'");this.parseError(ct,{text:se.match,token:this.terminals_[Me]||Me,line:se.yylineno,loc:xe,expected:Nt})}if(Qe[0]instanceof Array&&Qe.length>1)throw Error("Parse Error: multiple actions possible at state: "+je+", token: "+Me);switch(Qe[0]){case 1:if(Q.push(Me),Y.push(se.yytext),j.push(se.yylloc),Q.push(Qe[1]),Me=null,!Xe){if(J=se.yyleng,X=se.yytext,W=se.yylineno,xe=se.yylloc,z>0)z--}else Me=Xe,Xe=null;break;case 2:if(rr=this.productions_[Qe[1]][1],Vt.$=Y[Y.length-rr],Vt._$={first_line:j[j.length-(rr||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(rr||1)].first_column,last_column:j[j.length-1].last_column},Ie)Vt._$.range=[j[j.length-(rr||1)].range[0],j[j.length-1].range[1]];if(pt=this.performAction.apply(Vt,[X,J,W,he.yy,Qe[1],Y,j].concat(le)),typeof pt<"u")return pt;if(rr)Q=Q.slice(0,-1*rr*2),Y=Y.slice(0,-1*rr),j=j.slice(0,-1*rr);Q.push(this.productions_[Qe[1]][0]),Y.push(Vt.$),j.push(Vt._$),We=te[Q[Q.length-2]][Q[Q.length-1]],Q.push(We);break;case 3:return!0}}return!0},"parse")},D=function(){var F={EOF:1,parseError:I(function(K,Q){if(this.yy.parser)this.yy.parser.parseError(K,Q);else throw Error(K)},"parseError"),setInput:I(function(H,K){if(this.yy=K||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var K=H.match(/(?:\r\n?|\n).*/g);if(K)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),H},"input"),unput:I(function(H){var K=H.length,Q=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-K),this.offset-=K;var Z=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Q.length-1)this.yylineno-=Q.length-1;var Y=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Q?(Q.length===Z.length?this.yylloc.first_column:0)+Z[Z.length-Q.length].length-Q[0].length:this.yylloc.first_column-K},this.options.ranges)this.yylloc.range=[Y[0],Y[0]+this.yyleng-K];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(H){this.unput(this.match.slice(H))},"less"),pastInput:I(function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var H=this.match;if(H.length<20)H+=this._input.substr(0,20-H.length);return(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var H=this.pastInput(),K=Array(H.length+1).join("-");return H+this.upcomingInput()+` -`+K+"^"},"showPosition"),test_match:I(function(H,K){var Q,Z,Y;if(this.options.backtrack_lexer){if(Y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Y.yylloc.range=this.yylloc.range.slice(0)}if(Z=H[0].match(/(?:\r\n?|\n).*/g),Z)this.yylineno+=Z.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Z?Z[Z.length-1].length-Z[Z.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],Q=this.performAction.call(this,this.yy,this,K,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(Q)return Q;else if(this._backtrack){for(var j in Y)this[j]=Y[j];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var H,K,Q,Z;if(!this._more)this.yytext="",this.match="";var Y=this._currentRules();for(var j=0;jK[0].length)){if(K=Q,Z=j,this.options.backtrack_lexer)if(H=this.test_match(Q,Y[j]),H!==!1)return H;else if(this._backtrack){K=!1;continue}else return!1;else if(!this.options.flex)break}if(K){if(H=this.test_match(K,Y[Z]),H!==!1)return H;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var K=this.next();if(K)return K;else return this.lex()},"lex"),begin:I(function(K){this.conditionStack.push(K)},"begin"),popState:I(function(){var K=this.conditionStack.length-1;if(K>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(K){if(K=this.conditionStack.length-1-Math.abs(K||0),K>=0)return this.conditionStack[K];else return"INITIAL"},"topState"),pushState:I(function(K){this.begin(K)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(K,Q,Z,Y){var j=Y;switch(Z){case 0:return this.pushState("shapeData"),Q.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let te=/\n\s*/g;return Q.yytext=Q.yytext.replace(te,"
    "),24;break;case 4:return 24;case 5:this.popState();break;case 6:return K.getLogger().trace("Found comment",Q.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:K.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return K.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:K.getLogger().trace("end icon"),this.popState();break;case 16:return K.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return K.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return K.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return K.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:K.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return K.getLogger().trace("description:",Q.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),K.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),K.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),K.getLogger().trace("node end ...",Q.yytext),"NODE_DEND";break;case 36:return this.popState(),K.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),K.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),K.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),K.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),K.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return K.getLogger().trace("Long description:",Q.yytext),21;break;case 42:return K.getLogger().trace("Long description:",Q.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return F}();B.lexer=D;function P(){this.yy={}}return I(P,"Parser"),P.prototype=B,B.Parser=P,new P}();lpt.parser=lpt;zSi=lpt,vT=[],upt=[],hpt={},VSi=I(()=>{vT=[],upt=[],cpt=0,hpt={}},"clear"),HSi=I((e)=>{if(vT.length===0)return null;let r=vT[0].level,i=null;for(let a=vT.length-1;a>=0;a--){if(vT[a].level===r&&!i)i=vT[a];if(vT[a].leveld.parentId===o.id);for(let d of h){let p={id:d.id,parentId:o.id,label:ho(d.label??"",a),labelType:"markdown",isGroup:!1,ticket:d?.ticket,priority:d?.priority,assigned:d?.assigned,icon:d?.icon,shape:"kanbanItem",level:d.level,rx:5,ry:5,cssStyles:["text-align: left"]};r.push(p)}}return{nodes:r,edges:e,other:{},config:Ar()}},"getData"),YSi=I((e,r,i,a,o)=>{let l=Ar(),h=l.mindmap?.padding??Fs.mindmap.padding;switch(a){case dm.ROUNDED_RECT:case dm.RECT:case dm.HEXAGON:h*=2}let d={id:ho(r,l)||"kbn"+cpt++,level:e,label:ho(i,l),width:l.mindmap?.maxNodeWidth??Fs.mindmap.maxNodeWidth,padding:h,isGroup:!1};if(o!==void 0){let m;if(!o.includes(` + ${e.useGradient&&i&&e.mainBkg?qSi(e.THEME_COLOR_LIMIT,i,e.mainBkg):""} +`},"getStyles"),WSi=YSi,Ejr={get db(){return new GSi},renderer:VSi,parser:USi,styles:WSi}});var hpt,jSi,_T,fpt,dpt=0,ppt,KSi,XSi,Sjr,QSi,ZSi,dm,JSi,eTi,tTi,rTi,nTi,iTi,aTi,sTi,oTi,lTi,cTi,uTi,hTi,Tjr;var xjr=Re(()=>{A0();uI();EL();K1();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();x0();hpt=function(){var e=I(function(F,H,W,X){for(W=W||{},X=F.length;X--;W[F[X]]=H);return W},"o"),r=[1,4],i=[1,13],a=[1,12],o=[1,15],l=[1,16],h=[1,20],d=[1,19],p=[6,7,8],m=[1,26],y=[1,24],v=[1,25],w=[6,7,11],T=[1,31],x=[6,7,11,24],k=[1,6,13,16,17,20,23],A=[1,35],R=[1,36],N=[1,6,7,11,13,16,17,20,23],L=[1,38],B={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:I(function(H,W,X,Q,Y,K,J){var Z=K.length-1;switch(Y){case 6:case 7:return Q;case 8:Q.getLogger().trace("Stop NL ");break;case 9:Q.getLogger().trace("Stop EOF ");break;case 11:Q.getLogger().trace("Stop NL2 ");break;case 12:Q.getLogger().trace("Stop EOF2 ");break;case 15:Q.getLogger().info("Node: ",K[Z-1].id),Q.addNode(K[Z-2].length,K[Z-1].id,K[Z-1].descr,K[Z-1].type,K[Z]);break;case 16:Q.getLogger().info("Node: ",K[Z].id),Q.addNode(K[Z-1].length,K[Z].id,K[Z].descr,K[Z].type);break;case 17:Q.getLogger().trace("Icon: ",K[Z]),Q.decorateNode({icon:K[Z]});break;case 18:case 23:Q.decorateNode({class:K[Z]});break;case 19:Q.getLogger().trace("SPACELIST");break;case 20:Q.getLogger().trace("Node: ",K[Z-1].id),Q.addNode(0,K[Z-1].id,K[Z-1].descr,K[Z-1].type,K[Z]);break;case 21:Q.getLogger().trace("Node: ",K[Z].id),Q.addNode(0,K[Z].id,K[Z].descr,K[Z].type);break;case 22:Q.decorateNode({icon:K[Z]});break;case 27:Q.getLogger().trace("node found ..",K[Z-2]),this.$={id:K[Z-1],descr:K[Z-1],type:Q.getType(K[Z-2],K[Z])};break;case 28:this.$={id:K[Z],descr:K[Z],type:0};break;case 29:Q.getLogger().trace("node found ..",K[Z-3]),this.$={id:K[Z-3],descr:K[Z-1],type:Q.getType(K[Z-2],K[Z])};break;case 30:this.$=K[Z-1]+K[Z];break;case 31:this.$=K[Z];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},e(p,[2,3]),{1:[2,2]},e(p,[2,4]),e(p,[2,5]),{1:[2,6],6:i,12:21,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},{6:i,9:22,12:11,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},{6:m,7:y,10:23,11:v},e(w,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:h,23:d}),e(w,[2,19]),e(w,[2,21],{15:30,24:T}),e(w,[2,22]),e(w,[2,23]),e(x,[2,25]),e(x,[2,26]),e(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:m,7:y,10:34,11:v},{1:[2,7],6:i,12:21,13:a,14:14,16:o,17:l,18:17,19:18,20:h,23:d},e(k,[2,14],{7:A,11:R}),e(N,[2,8]),e(N,[2,9]),e(N,[2,10]),e(w,[2,16],{15:37,24:T}),e(w,[2,17]),e(w,[2,18]),e(w,[2,20],{24:L}),e(x,[2,31]),{21:[1,39]},{22:[1,40]},e(k,[2,13],{7:A,11:R}),e(N,[2,11]),e(N,[2,12]),e(w,[2,15],{24:L}),e(x,[2,30]),{22:[1,41]},e(x,[2,27]),e(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:I(function(H,W){if(W.recoverable)this.trace(H);else{var X=Error(H);throw X.hash=W,X}},"parseError"),parse:I(function(H){var W=this,X=[0],Q=[],Y=[null],K=[],J=this.table,Z="",j=0,ee=0,z=0,ne=2,ie=1,se=K.slice.call(arguments,1),oe=Object.create(this.lexer),he={yy:{}};for(var ye in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ye))he.yy[ye]=this.yy[ye];if(oe.setInput(H,he.yy),he.yy.lexer=oe,he.yy.parser=this,typeof oe.yylloc>"u")oe.yylloc={};var Se=oe.yylloc;K.push(Se);var Ie=oe.options&&oe.options.ranges;if(typeof he.yy.parseError==="function")this.parseError=he.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Ee(bt){X.length=X.length-2*bt,Y.length=Y.length-bt,K.length=K.length-bt}I(Ee,"popStack");function ze(){var bt=Q.pop()||oe.lex()||ie;if(typeof bt!=="number"){if(bt instanceof Array)Q=bt,bt=Q.pop();bt=W.symbols_[bt]||bt}return bt}I(ze,"lex");var Me,Xe,Ye,Qe,xt,dt,zt={},Kt,rr,je,Nt;while(!0){if(Ye=X[X.length-1],this.defaultActions[Ye])Qe=this.defaultActions[Ye];else{if(Me===null||typeof Me>"u")Me=ze();Qe=J[Ye]&&J[Ye][Me]}if(typeof Qe>"u"||!Qe.length||!Qe[0]){var ct="";Nt=[];for(Kt in J[Ye])if(this.terminals_[Kt]&&Kt>ne)Nt.push("'"+this.terminals_[Kt]+"'");if(oe.showPosition)ct="Parse error on line "+(j+1)+`: +`+oe.showPosition()+` +Expecting `+Nt.join(", ")+", got '"+(this.terminals_[Me]||Me)+"'";else ct="Parse error on line "+(j+1)+": Unexpected "+(Me==ie?"end of input":"'"+(this.terminals_[Me]||Me)+"'");this.parseError(ct,{text:oe.match,token:this.terminals_[Me]||Me,line:oe.yylineno,loc:Se,expected:Nt})}if(Qe[0]instanceof Array&&Qe.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ye+", token: "+Me);switch(Qe[0]){case 1:if(X.push(Me),Y.push(oe.yytext),K.push(oe.yylloc),X.push(Qe[1]),Me=null,!Xe){if(ee=oe.yyleng,Z=oe.yytext,j=oe.yylineno,Se=oe.yylloc,z>0)z--}else Me=Xe,Xe=null;break;case 2:if(rr=this.productions_[Qe[1]][1],zt.$=Y[Y.length-rr],zt._$={first_line:K[K.length-(rr||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(rr||1)].first_column,last_column:K[K.length-1].last_column},Ie)zt._$.range=[K[K.length-(rr||1)].range[0],K[K.length-1].range[1]];if(dt=this.performAction.apply(zt,[Z,ee,j,he.yy,Qe[1],Y,K].concat(se)),typeof dt<"u")return dt;if(rr)X=X.slice(0,-1*rr*2),Y=Y.slice(0,-1*rr),K=K.slice(0,-1*rr);X.push(this.productions_[Qe[1]][0]),Y.push(zt.$),K.push(zt._$),je=J[X[X.length-2]][X[X.length-1]],X.push(je);break;case 3:return!0}}return!0},"parse")},D=function(){var F={EOF:1,parseError:I(function(W,X){if(this.yy.parser)this.yy.parser.parseError(W,X);else throw Error(W)},"parseError"),setInput:I(function(H,W){if(this.yy=W||this.yy||{},this._input=H,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var W=H.match(/(?:\r\n?|\n).*/g);if(W)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),H},"input"),unput:I(function(H){var W=H.length,X=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-W),this.offset-=W;var Q=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),X.length-1)this.yylineno-=X.length-1;var Y=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:X?(X.length===Q.length?this.yylloc.first_column:0)+Q[Q.length-X.length].length-X[0].length:this.yylloc.first_column-W},this.options.ranges)this.yylloc.range=[Y[0],Y[0]+this.yyleng-W];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(H){this.unput(this.match.slice(H))},"less"),pastInput:I(function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var H=this.match;if(H.length<20)H+=this._input.substr(0,20-H.length);return(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var H=this.pastInput(),W=Array(H.length+1).join("-");return H+this.upcomingInput()+` +`+W+"^"},"showPosition"),test_match:I(function(H,W){var X,Q,Y;if(this.options.backtrack_lexer){if(Y={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)Y.yylloc.range=this.yylloc.range.slice(0)}if(Q=H[0].match(/(?:\r\n?|\n).*/g),Q)this.yylineno+=Q.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Q?Q[Q.length-1].length-Q[Q.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],X=this.performAction.call(this,this.yy,this,W,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(X)return X;else if(this._backtrack){for(var K in Y)this[K]=Y[K];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var H,W,X,Q;if(!this._more)this.yytext="",this.match="";var Y=this._currentRules();for(var K=0;KW[0].length)){if(W=X,Q=K,this.options.backtrack_lexer)if(H=this.test_match(X,Y[K]),H!==!1)return H;else if(this._backtrack){W=!1;continue}else return!1;else if(!this.options.flex)break}if(W){if(H=this.test_match(W,Y[Q]),H!==!1)return H;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var W=this.next();if(W)return W;else return this.lex()},"lex"),begin:I(function(W){this.conditionStack.push(W)},"begin"),popState:I(function(){var W=this.conditionStack.length-1;if(W>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(W){if(W=this.conditionStack.length-1-Math.abs(W||0),W>=0)return this.conditionStack[W];else return"INITIAL"},"topState"),pushState:I(function(W){this.begin(W)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(W,X,Q,Y){var K=Y;switch(Q){case 0:return this.pushState("shapeData"),X.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let J=/\n\s*/g;return X.yytext=X.yytext.replace(J,"
    "),24;break;case 4:return 24;case 5:this.popState();break;case 6:return W.getLogger().trace("Found comment",X.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:W.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return W.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:W.getLogger().trace("end icon"),this.popState();break;case 16:return W.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return W.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return W.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return W.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:W.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return W.getLogger().trace("description:",X.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),W.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),W.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),W.getLogger().trace("node end ...",X.yytext),"NODE_DEND";break;case 36:return this.popState(),W.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),W.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),W.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),W.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),W.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return W.getLogger().trace("Long description:",X.yytext),21;break;case 42:return W.getLogger().trace("Long description:",X.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return F}();B.lexer=D;function P(){this.yy={}}return I(P,"Parser"),P.prototype=B,B.Parser=P,new P}();hpt.parser=hpt;jSi=hpt,_T=[],fpt=[],ppt={},KSi=I(()=>{_T=[],fpt=[],dpt=0,ppt={}},"clear"),XSi=I((e)=>{if(_T.length===0)return null;let r=_T[0].level,i=null;for(let a=_T.length-1;a>=0;a--){if(_T[a].level===r&&!i)i=_T[a];if(_T[a].leveld.parentId===o.id);for(let d of h){let p={id:d.id,parentId:o.id,label:ho(d.label??"",a),labelType:"markdown",isGroup:!1,ticket:d?.ticket,priority:d?.priority,assigned:d?.assigned,icon:d?.icon,shape:"kanbanItem",level:d.level,rx:5,ry:5,cssStyles:["text-align: left"]};r.push(p)}}return{nodes:r,edges:e,other:{},config:Ar()}},"getData"),ZSi=I((e,r,i,a,o)=>{let l=Ar(),h=l.mindmap?.padding??Fs.mindmap.padding;switch(a){case dm.ROUNDED_RECT:case dm.RECT:case dm.HEXAGON:h*=2}let d={id:ho(r,l)||"kbn"+dpt++,level:e,label:ho(i,l),width:l.mindmap?.maxNodeWidth??Fs.mindmap.maxNodeWidth,padding:h,isGroup:!1};if(o!==void 0){let m;if(!o.includes(` `))m=`{ `+o+` }`;else m=o+` -`;let y=yC(m,{schema:bC});if(y.shape&&(y.shape!==y.shape.toLowerCase()||y.shape.includes("_")))throw Error(`No such shape: ${y.shape}. Shape names should be lowercase.`);if(y?.shape&&y.shape==="kanbanItem")d.shape=y?.shape;if(y?.label)d.label=y?.label;if(y?.icon)d.icon=y?.icon.toString();if(y?.assigned)d.assigned=y?.assigned.toString();if(y?.ticket)d.ticket=y?.ticket.toString();if(y?.priority)d.priority=y?.priority}let p=HSi(e);if(p)d.parentId=p.id||"kbn"+cpt++;else upt.push(d);vT.push(d)},"addNode"),dm={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},WSi=I((e,r)=>{switch(Ze.debug("In get type",e,r),e){case"[":return dm.RECT;case"(":return r===")"?dm.ROUNDED_RECT:dm.CLOUD;case"((":return dm.CIRCLE;case")":return dm.CLOUD;case"))":return dm.BANG;case"{{":return dm.HEXAGON;default:return dm.DEFAULT}},"getType"),jSi=I((e,r)=>{hpt[e]=r},"setElementForId"),KSi=I((e)=>{if(!e)return;let r=Ar(),i=vT[vT.length-1];if(e.icon)i.icon=ho(e.icon,r);if(e.class)i.cssClasses=ho(e.class,r)},"decorateNode"),XSi=I((e)=>{switch(e){case dm.DEFAULT:return"no-border";case dm.RECT:return"rect";case dm.ROUNDED_RECT:return"rounded-rect";case dm.CIRCLE:return"circle";case dm.CLOUD:return"cloud";case dm.BANG:return"bang";case dm.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),QSi=I(()=>Ze,"getLogger"),ZSi=I((e)=>hpt[e],"getElementById"),JSi={clear:VSi,addNode:YSi,getSections:yjr,getData:qSi,nodeType:dm,getType:WSi,setElementForId:jSi,decorateNode:KSi,type2Str:XSi,getLogger:QSi,getElementById:ZSi},eTi=JSi,tTi=I(async(e,r,i,a)=>{Ze.debug(`Rendering kanban diagram -`+e);let l=a.db.getData(),h=Ar();h.htmlLabels=!1;let d=Ou(r);for(let A of l.nodes)A.domId=`${r}-${A.id}`;let p=d.append("g");p.attr("class","sections");let m=d.append("g");m.attr("class","items");let y=l.nodes.filter((A)=>A.isGroup),E=0,w=10,T=[],x=25;for(let A of y){let R=h?.kanban?.sectionWidth||200;E=E+1,A.x=R*E+(E-1)*w/2,A.width=R,A.y=0,A.height=R*3,A.rx=5,A.ry=5,A.cssClasses=A.cssClasses+" section-"+E;let N=await TL(p,A);x=Math.max(x,N?.labelBBox?.height),T.push(N)}let k=0;for(let A of y){let R=T[k];k=k+1;let N=h?.kanban?.sectionWidth||200,L=-N*3/2+x,B=L,D=l.nodes.filter((H)=>H.parentId===A.id);for(let H of D){if(H.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");H.x=A.x,H.width=N-1.5*w;let Q=(await y3(m,H,{config:h})).node().getBBox();H.y=B+Q.height/2,await v3(H),B=H.y+Q.height/2+w/2}let P=R.cluster.select("rect"),F=Math.max(B-L+3*w,50)+(x-25);P.attr("height",F)}n3(void 0,d,h.mindmap?.padding??Fs.kanban.padding,h.mindmap?.useMaxWidth??Fs.kanban.useMaxWidth)},"draw"),rTi={draw:tTi},nTi=I((e)=>{let r="";for(let a=0;ae.darkMode?Zr(a,o):Xr(a,o),"adjuster");for(let a=0;a{switch(Ze.debug("In get type",e,r),e){case"[":return dm.RECT;case"(":return r===")"?dm.ROUNDED_RECT:dm.CLOUD;case"((":return dm.CIRCLE;case")":return dm.CLOUD;case"))":return dm.BANG;case"{{":return dm.HEXAGON;default:return dm.DEFAULT}},"getType"),eTi=I((e,r)=>{ppt[e]=r},"setElementForId"),tTi=I((e)=>{if(!e)return;let r=Ar(),i=_T[_T.length-1];if(e.icon)i.icon=ho(e.icon,r);if(e.class)i.cssClasses=ho(e.class,r)},"decorateNode"),rTi=I((e)=>{switch(e){case dm.DEFAULT:return"no-border";case dm.RECT:return"rect";case dm.ROUNDED_RECT:return"rounded-rect";case dm.CIRCLE:return"circle";case dm.CLOUD:return"cloud";case dm.BANG:return"bang";case dm.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),nTi=I(()=>Ze,"getLogger"),iTi=I((e)=>ppt[e],"getElementById"),aTi={clear:KSi,addNode:ZSi,getSections:Sjr,getData:QSi,nodeType:dm,getType:JSi,setElementForId:eTi,decorateNode:tTi,type2Str:rTi,getLogger:nTi,getElementById:iTi},sTi=aTi,oTi=I(async(e,r,i,a)=>{Ze.debug(`Rendering kanban diagram +`+e);let l=a.db.getData(),h=Ar();h.htmlLabels=!1;let d=Ou(r);for(let A of l.nodes)A.domId=`${r}-${A.id}`;let p=d.append("g");p.attr("class","sections");let m=d.append("g");m.attr("class","items");let y=l.nodes.filter((A)=>A.isGroup),v=0,w=10,T=[],x=25;for(let A of y){let R=h?.kanban?.sectionWidth||200;v=v+1,A.x=R*v+(v-1)*w/2,A.width=R,A.y=0,A.height=R*3,A.rx=5,A.ry=5,A.cssClasses=A.cssClasses+" section-"+v;let N=await CL(p,A);x=Math.max(x,N?.labelBBox?.height),T.push(N)}let k=0;for(let A of y){let R=T[k];k=k+1;let N=h?.kanban?.sectionWidth||200,L=-N*3/2+x,B=L,D=l.nodes.filter((H)=>H.parentId===A.id);for(let H of D){if(H.isGroup)throw Error("Groups within groups are not allowed in Kanban diagrams");H.x=A.x,H.width=N-1.5*w;let X=(await v3(m,H,{config:h})).node().getBBox();H.y=B+X.height/2,await _3(H),B=H.y+X.height/2+w/2}let P=R.cluster.select("rect"),F=Math.max(B-L+3*w,50)+(x-25);P.attr("height",F)}i3(void 0,d,h.mindmap?.padding??Fs.kanban.padding,h.mindmap?.useMaxWidth??Fs.kanban.useMaxWidth)},"draw"),lTi={draw:oTi},cTi=I((e)=>{let r="";for(let a=0;ae.darkMode?Zr(a,o):Xr(a,o),"adjuster");for(let a=0;a` + `}return r},"genSections"),uTi=I((e)=>` .edge { stroke-width: 3; } - ${nTi(e)} + ${cTi(e)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${e.git0}; } @@ -3277,15 +3277,15 @@ Expecting `+Nt.join(", ")+", got '"+(this.terminals_[Me]||Me)+"'";else ct="Parse dominant-baseline: middle; text-align: center; } - ${dT()} -`,"getStyles"),aTi=iTi,vjr={db:eTi,renderer:rTi,parser:zSi,styles:aTi}});function _oe(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i=o))i=o}return i}function XY(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i>a||i===void 0&&a>=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i>o||i===void 0&&o>=o))i=o}return i}function QY(e,r){let i=0;if(r===void 0){for(let a of e)if(a=+a)i+=a}else{let a=-1;for(let o of e)if(o=+r(o,++a,e))i+=o}return i}var dpt=()=>{};function sTi(e){return e.target.depth}function fpt(e){return e.depth}function ppt(e,r){return r-1-e.height}function Eoe(e,r){return e.sourceLinks.length?e.depth:r-1}function gpt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?XY(e.sourceLinks,sTi)-1:0}var mpt=Re(()=>{dpt()});function ZY(e){return function(){return e}}function Ejr(e,r){return qke(e.source,r.source)||e.index-r.index}function wjr(e,r){return qke(e.target,r.target)||e.index-r.index}function qke(e,r){return e.y0-r.y0}function bpt(e){return e.value}function oTi(e){return e.index}function lTi(e){return e.nodes}function cTi(e){return e.links}function Sjr(e,r){let i=e.get(r);if(!i)throw Error("missing: "+r);return i}function Tjr({nodes:e}){for(let r of e){let i=r.y0,a=i;for(let o of r.sourceLinks)o.y0=i+o.width/2,i+=o.width;for(let o of r.targetLinks)o.y1=a+o.width/2,a+=o.width}}function Yke(){let e=0,r=0,i=1,a=1,o=24,l=8,h,d=oTi,p=Eoe,m,y,E=lTi,w=cTi,T=6;function x(){let X={nodes:E.apply(null,arguments),links:w.apply(null,arguments)};return k(X),A(X),R(X),N(X),D(X),Tjr(X),X}x.update=function(X){return Tjr(X),X},x.nodeId=function(X){return arguments.length?(d=typeof X==="function"?X:ZY(X),x):d},x.nodeAlign=function(X){return arguments.length?(p=typeof X==="function"?X:ZY(X),x):p},x.nodeSort=function(X){return arguments.length?(m=X,x):m},x.nodeWidth=function(X){return arguments.length?(o=+X,x):o},x.nodePadding=function(X){return arguments.length?(l=h=+X,x):l},x.nodes=function(X){return arguments.length?(E=typeof X==="function"?X:ZY(X),x):E},x.links=function(X){return arguments.length?(w=typeof X==="function"?X:ZY(X),x):w},x.linkSort=function(X){return arguments.length?(y=X,x):y},x.size=function(X){return arguments.length?(e=r=0,i=+X[0],a=+X[1],x):[i-e,a-r]},x.extent=function(X){return arguments.length?(e=+X[0][0],i=+X[1][0],r=+X[0][1],a=+X[1][1],x):[[e,r],[i,a]]},x.iterations=function(X){return arguments.length?(T=+X,x):T};function k({nodes:X,links:W}){for(let[z,ne]of X.entries())ne.index=z,ne.sourceLinks=[],ne.targetLinks=[];let J=new Map(X.map((z,ne)=>[d(z,ne,X),z]));for(let[z,ne]of W.entries()){ne.index=z;let{source:ie,target:le}=ne;if(typeof ie!=="object")ie=ne.source=Sjr(J,ie);if(typeof le!=="object")le=ne.target=Sjr(J,le);ie.sourceLinks.push(ne),le.targetLinks.push(ne)}if(y!=null)for(let{sourceLinks:z,targetLinks:ne}of X)z.sort(y),ne.sort(y)}function A({nodes:X}){for(let W of X)W.value=W.fixedValue===void 0?Math.max(QY(W.sourceLinks,bpt),QY(W.targetLinks,bpt)):W.fixedValue}function R({nodes:X}){let W=X.length,J=new Set(X),z=new Set,ne=0;while(J.size){for(let ie of J){ie.depth=ne;for(let{target:le}of ie.sourceLinks)z.add(le)}if(++ne>W)throw Error("circular link");J=z,z=new Set}}function N({nodes:X}){let W=X.length,J=new Set(X),z=new Set,ne=0;while(J.size){for(let ie of J){ie.height=ne;for(let{source:le}of ie.targetLinks)z.add(le)}if(++ne>W)throw Error("circular link");J=z,z=new Set}}function L({nodes:X}){let W=_oe(X,(ne)=>ne.depth)+1,J=(i-e-o)/(W-1),z=Array(W);for(let ne of X){let ie=Math.max(0,Math.min(W-1,Math.floor(p.call(null,ne,W))));if(ne.layer=ie,ne.x0=e+ie*J,ne.x1=ne.x0+o,z[ie])z[ie].push(ne);else z[ie]=[ne]}if(m)for(let ne of z)ne.sort(m);return z}function B(X){let W=XY(X,(J)=>(a-r-(J.length-1)*h)/QY(J,bpt));for(let J of X){let z=r;for(let ne of J){ne.y0=z,ne.y1=z+ne.value*W,z=ne.y1+h;for(let ie of ne.sourceLinks)ie.width=ie.value*W}z=(a-z+h)/(J.length+1);for(let ne=0;neJ.length)-1)),B(W);for(let J=0;J0))continue;let ye=(se/he-le.y0)*W;le.y0+=ye,le.y1+=ye,Z(le)}if(m===void 0)ie.sort(qke);H(ie,J)}}function F(X,W,J){for(let z=X.length,ne=z-2;ne>=0;--ne){let ie=X[ne];for(let le of ie){let se=0,he=0;for(let{target:xe,value:Ie}of le.sourceLinks){let Ee=Ie*(xe.layer-le.layer);se+=te(le,xe)*Ee,he+=Ee}if(!(he>0))continue;let ye=(se/he-le.y0)*W;le.y0+=ye,le.y1+=ye,Z(le)}if(m===void 0)ie.sort(qke);H(ie,J)}}function H(X,W){let J=X.length>>1,z=X[J];Q(X,z.y0-h,J-1,W),K(X,z.y1+h,J+1,W),Q(X,a,X.length-1,W),K(X,r,0,W)}function K(X,W,J,z){for(;J0.000001)ne.y0+=ie,ne.y1+=ie;W=ne.y1+h}}function Q(X,W,J,z){for(;J>=0;--J){let ne=X[J],ie=(ne.y1-W)*z;if(ie>0.000001)ne.y0-=ie,ne.y1-=ie;W=ne.y0-h}}function Z({sourceLinks:X,targetLinks:W}){if(y===void 0){for(let{source:{sourceLinks:J}}of W)J.sort(wjr);for(let{target:{targetLinks:J}}of X)J.sort(Ejr)}}function Y(X){if(y===void 0)for(let{sourceLinks:W,targetLinks:J}of X)W.sort(wjr),J.sort(Ejr)}function j(X,W){let J=X.y0-(X.sourceLinks.length-1)*h/2;for(let{target:z,width:ne}of X.sourceLinks){if(z===W)break;J+=ne+h}for(let{source:z,width:ne}of W.targetLinks){if(z===X)break;J-=ne}return J}function te(X,W){let J=W.y0-(W.targetLinks.length-1)*h/2;for(let{source:z,width:ne}of W.targetLinks){if(z===X)break;J+=ne+h}for(let{target:z,width:ne}of X.sourceLinks){if(z===W)break;J-=ne}return J}return x}var xjr=Re(()=>{dpt();mpt()});function _pt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Cjr(){return new _pt}var ypt,vpt,TF=0.000001,uTi,Ept;var kjr=Re(()=>{ypt=Math.PI,vpt=2*ypt,uTi=vpt-TF;_pt.prototype=Cjr.prototype={constructor:_pt,moveTo:function(e,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+r)},closePath:function(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._+="Z"},lineTo:function(e,r){this._+="L"+(this._x1=+e)+","+(this._y1=+r)},quadraticCurveTo:function(e,r,i,a){this._+="Q"+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(e,r,i,a,o,l){this._+="C"+ +e+","+ +r+","+ +i+","+ +a+","+(this._x1=+o)+","+(this._y1=+l)},arcTo:function(e,r,i,a,o){e=+e,r=+r,i=+i,a=+a,o=+o;var l=this._x1,h=this._y1,d=i-e,p=a-r,m=l-e,y=h-r,E=m*m+y*y;if(o<0)throw Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=r);else if(!(E>TF));else if(!(Math.abs(y*d-p*m)>TF)||!o)this._+="L"+(this._x1=e)+","+(this._y1=r);else{var w=i-l,T=a-h,x=d*d+p*p,k=w*w+T*T,A=Math.sqrt(x),R=Math.sqrt(E),N=o*Math.tan((ypt-Math.acos((x+E-k)/(2*A*R)))/2),L=N/R,B=N/A;if(Math.abs(L-1)>TF)this._+="L"+(e+L*m)+","+(r+L*y);this._+="A"+o+","+o+",0,0,"+ +(y*w>m*T)+","+(this._x1=e+B*d)+","+(this._y1=r+B*p)}},arc:function(e,r,i,a,o,l){e=+e,r=+r,i=+i,l=!!l;var h=i*Math.cos(a),d=i*Math.sin(a),p=e+h,m=r+d,y=1^l,E=l?a-o:o-a;if(i<0)throw Error("negative radius: "+i);if(this._x1===null)this._+="M"+p+","+m;else if(Math.abs(this._x1-p)>TF||Math.abs(this._y1-m)>TF)this._+="L"+p+","+m;if(!i)return;if(E<0)E=E%vpt+vpt;if(E>uTi)this._+="A"+i+","+i+",0,1,"+y+","+(e-h)+","+(r-d)+"A"+i+","+i+",0,1,"+y+","+(this._x1=p)+","+(this._y1=m);else if(E>TF)this._+="A"+i+","+i+",0,"+ +(E>=ypt)+","+y+","+(this._x1=e+i*Math.cos(o))+","+(this._y1=r+i*Math.sin(o))},rect:function(e,r,i,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+r)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};Ept=Cjr});var Ajr=Re(()=>{kjr()});var Rjr;var Ijr=Re(()=>{Rjr=Array.prototype.slice});function Wke(e){return function(){return e}}function Ojr(e){return e[0]}function Njr(e){return e[1]}function hTi(e){return e.source}function dTi(e){return e.target}function fTi(e){var r=hTi,i=dTi,a=Ojr,o=Njr,l=null;function h(){var d,p=Rjr.call(arguments),m=r.apply(this,p),y=i.apply(this,p);if(!l)l=d=Ept();if(e(l,+a.apply(this,(p[0]=m,p)),+o.apply(this,p),+a.apply(this,(p[0]=y,p)),+o.apply(this,p)),d)return l=null,d+""||null}return h.source=function(d){return arguments.length?(r=d,h):r},h.target=function(d){return arguments.length?(i=d,h):i},h.x=function(d){return arguments.length?(a=typeof d==="function"?d:Wke(+d),h):a},h.y=function(d){return arguments.length?(o=typeof d==="function"?d:Wke(+d),h):o},h.context=function(d){return arguments.length?(l=d==null?null:d,h):l},h}function pTi(e,r,i,a,o){e.moveTo(r,i),e.bezierCurveTo(r=(r+a)/2,i,r,o,a,o)}function wpt(){return fTi(pTi)}var Ljr=Re(()=>{Ajr();Ijr()});var Mjr=Re(()=>{Ljr()});function gTi(e){return[e.source.x1,e.y0]}function mTi(e){return[e.target.x0,e.y1]}function jke(){return wpt().source(gTi).target(mTi)}var Djr=Re(()=>{Mjr()});var Pjr=Re(()=>{xjr();mpt();Djr()});var Spt,Kke,Qke,Zke,Xke,bTi,yTi,vTi,_Ti,ETi,wTi,STi,TTi,xTi,Bjr,CTi,kTi,ATi,RTi,ITi,OTi,NTi,LTi,Fjr;var $jr=Re(()=>{eo();Zs();Ja();dl();Pjr();Spt=function(){var e=I(function(d,p,m,y){for(m=m||{},y=d.length;y--;m[d[y]]=p);return m},"o"),r=[1,9],i=[1,10],a=[1,5,10,12],o={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:I(function(p,m,y,E,w,T,x){var k=T.length-1;switch(w){case 7:let A=E.findOrCreateNode(T[k-4].trim().replaceAll('""','"')),R=E.findOrCreateNode(T[k-2].trim().replaceAll('""','"')),N=parseFloat(T[k].trim());E.addLink(A,R,N);break;case 8:case 9:case 11:this.$=T[k];break;case 10:this.$=T[k-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:i},{1:[2,6],7:11,10:[1,12]},e(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(a,[2,8]),e(a,[2,9]),{19:[1,16]},e(a,[2,11]),{1:[2,1]},{1:[2,5]},e(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:i},{15:18,16:7,17:8,18:r,20:i},{18:[1,19]},e(i,[2,3]),{12:[1,20]},e(a,[2,10]),{15:21,16:7,17:8,18:r,20:i},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:I(function(p,m){if(m.recoverable)this.trace(p);else{var y=Error(p);throw y.hash=m,y}},"parseError"),parse:I(function(p){var m=this,y=[0],E=[],w=[null],T=[],x=this.table,k="",A=0,R=0,N=0,L=2,B=1,D=T.slice.call(arguments,1),P=Object.create(this.lexer),F={yy:{}};for(var H in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,H))F.yy[H]=this.yy[H];if(P.setInput(p,F.yy),F.yy.lexer=P,F.yy.parser=this,typeof P.yylloc>"u")P.yylloc={};var K=P.yylloc;T.push(K);var Q=P.options&&P.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Z(xe){y.length=y.length-2*xe,w.length=w.length-xe,T.length=T.length-xe}I(Z,"popStack");function Y(){var xe=E.pop()||P.lex()||B;if(typeof xe!=="number"){if(xe instanceof Array)E=xe,xe=E.pop();xe=m.symbols_[xe]||xe}return xe}I(Y,"lex");var j,te,X,W,J,z,ne={},ie,le,se,he;while(!0){if(X=y[y.length-1],this.defaultActions[X])W=this.defaultActions[X];else{if(j===null||typeof j>"u")j=Y();W=x[X]&&x[X][j]}if(typeof W>"u"||!W.length||!W[0]){var ye="";he=[];for(ie in x[X])if(this.terminals_[ie]&&ie>L)he.push("'"+this.terminals_[ie]+"'");if(P.showPosition)ye="Parse error on line "+(A+1)+`: + ${fT()} +`,"getStyles"),hTi=uTi,Tjr={db:sTi,renderer:lTi,parser:jSi,styles:hTi}});function Soe(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i=o))i=o}return i}function JY(e,r){let i;if(r===void 0){for(let a of e)if(a!=null&&(i>a||i===void 0&&a>=a))i=a}else{let a=-1;for(let o of e)if((o=r(o,++a,e))!=null&&(i>o||i===void 0&&o>=o))i=o}return i}function eW(e,r){let i=0;if(r===void 0){for(let a of e)if(a=+a)i+=a}else{let a=-1;for(let o of e)if(o=+r(o,++a,e))i+=o}return i}var gpt=()=>{};function dTi(e){return e.target.depth}function mpt(e){return e.depth}function bpt(e,r){return r-1-e.height}function Toe(e,r){return e.sourceLinks.length?e.depth:r-1}function ypt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?JY(e.sourceLinks,dTi)-1:0}var vpt=Re(()=>{gpt()});function tW(e){return function(){return e}}function Cjr(e,r){return jke(e.source,r.source)||e.index-r.index}function kjr(e,r){return jke(e.target,r.target)||e.index-r.index}function jke(e,r){return e.y0-r.y0}function _pt(e){return e.value}function fTi(e){return e.index}function pTi(e){return e.nodes}function gTi(e){return e.links}function Ajr(e,r){let i=e.get(r);if(!i)throw Error("missing: "+r);return i}function Rjr({nodes:e}){for(let r of e){let i=r.y0,a=i;for(let o of r.sourceLinks)o.y0=i+o.width/2,i+=o.width;for(let o of r.targetLinks)o.y1=a+o.width/2,a+=o.width}}function Kke(){let e=0,r=0,i=1,a=1,o=24,l=8,h,d=fTi,p=Toe,m,y,v=pTi,w=gTi,T=6;function x(){let Z={nodes:v.apply(null,arguments),links:w.apply(null,arguments)};return k(Z),A(Z),R(Z),N(Z),D(Z),Rjr(Z),Z}x.update=function(Z){return Rjr(Z),Z},x.nodeId=function(Z){return arguments.length?(d=typeof Z==="function"?Z:tW(Z),x):d},x.nodeAlign=function(Z){return arguments.length?(p=typeof Z==="function"?Z:tW(Z),x):p},x.nodeSort=function(Z){return arguments.length?(m=Z,x):m},x.nodeWidth=function(Z){return arguments.length?(o=+Z,x):o},x.nodePadding=function(Z){return arguments.length?(l=h=+Z,x):l},x.nodes=function(Z){return arguments.length?(v=typeof Z==="function"?Z:tW(Z),x):v},x.links=function(Z){return arguments.length?(w=typeof Z==="function"?Z:tW(Z),x):w},x.linkSort=function(Z){return arguments.length?(y=Z,x):y},x.size=function(Z){return arguments.length?(e=r=0,i=+Z[0],a=+Z[1],x):[i-e,a-r]},x.extent=function(Z){return arguments.length?(e=+Z[0][0],i=+Z[1][0],r=+Z[0][1],a=+Z[1][1],x):[[e,r],[i,a]]},x.iterations=function(Z){return arguments.length?(T=+Z,x):T};function k({nodes:Z,links:j}){for(let[z,ne]of Z.entries())ne.index=z,ne.sourceLinks=[],ne.targetLinks=[];let ee=new Map(Z.map((z,ne)=>[d(z,ne,Z),z]));for(let[z,ne]of j.entries()){ne.index=z;let{source:ie,target:se}=ne;if(typeof ie!=="object")ie=ne.source=Ajr(ee,ie);if(typeof se!=="object")se=ne.target=Ajr(ee,se);ie.sourceLinks.push(ne),se.targetLinks.push(ne)}if(y!=null)for(let{sourceLinks:z,targetLinks:ne}of Z)z.sort(y),ne.sort(y)}function A({nodes:Z}){for(let j of Z)j.value=j.fixedValue===void 0?Math.max(eW(j.sourceLinks,_pt),eW(j.targetLinks,_pt)):j.fixedValue}function R({nodes:Z}){let j=Z.length,ee=new Set(Z),z=new Set,ne=0;while(ee.size){for(let ie of ee){ie.depth=ne;for(let{target:se}of ie.sourceLinks)z.add(se)}if(++ne>j)throw Error("circular link");ee=z,z=new Set}}function N({nodes:Z}){let j=Z.length,ee=new Set(Z),z=new Set,ne=0;while(ee.size){for(let ie of ee){ie.height=ne;for(let{source:se}of ie.targetLinks)z.add(se)}if(++ne>j)throw Error("circular link");ee=z,z=new Set}}function L({nodes:Z}){let j=Soe(Z,(ne)=>ne.depth)+1,ee=(i-e-o)/(j-1),z=Array(j);for(let ne of Z){let ie=Math.max(0,Math.min(j-1,Math.floor(p.call(null,ne,j))));if(ne.layer=ie,ne.x0=e+ie*ee,ne.x1=ne.x0+o,z[ie])z[ie].push(ne);else z[ie]=[ne]}if(m)for(let ne of z)ne.sort(m);return z}function B(Z){let j=JY(Z,(ee)=>(a-r-(ee.length-1)*h)/eW(ee,_pt));for(let ee of Z){let z=r;for(let ne of ee){ne.y0=z,ne.y1=z+ne.value*j,z=ne.y1+h;for(let ie of ne.sourceLinks)ie.width=ie.value*j}z=(a-z+h)/(ee.length+1);for(let ne=0;neee.length)-1)),B(j);for(let ee=0;ee0))continue;let ye=(oe/he-se.y0)*j;se.y0+=ye,se.y1+=ye,Q(se)}if(m===void 0)ie.sort(jke);H(ie,ee)}}function F(Z,j,ee){for(let z=Z.length,ne=z-2;ne>=0;--ne){let ie=Z[ne];for(let se of ie){let oe=0,he=0;for(let{target:Se,value:Ie}of se.sourceLinks){let Ee=Ie*(Se.layer-se.layer);oe+=J(se,Se)*Ee,he+=Ee}if(!(he>0))continue;let ye=(oe/he-se.y0)*j;se.y0+=ye,se.y1+=ye,Q(se)}if(m===void 0)ie.sort(jke);H(ie,ee)}}function H(Z,j){let ee=Z.length>>1,z=Z[ee];X(Z,z.y0-h,ee-1,j),W(Z,z.y1+h,ee+1,j),X(Z,a,Z.length-1,j),W(Z,r,0,j)}function W(Z,j,ee,z){for(;ee0.000001)ne.y0+=ie,ne.y1+=ie;j=ne.y1+h}}function X(Z,j,ee,z){for(;ee>=0;--ee){let ne=Z[ee],ie=(ne.y1-j)*z;if(ie>0.000001)ne.y0-=ie,ne.y1-=ie;j=ne.y0-h}}function Q({sourceLinks:Z,targetLinks:j}){if(y===void 0){for(let{source:{sourceLinks:ee}}of j)ee.sort(kjr);for(let{target:{targetLinks:ee}}of Z)ee.sort(Cjr)}}function Y(Z){if(y===void 0)for(let{sourceLinks:j,targetLinks:ee}of Z)j.sort(kjr),ee.sort(Cjr)}function K(Z,j){let ee=Z.y0-(Z.sourceLinks.length-1)*h/2;for(let{target:z,width:ne}of Z.sourceLinks){if(z===j)break;ee+=ne+h}for(let{source:z,width:ne}of j.targetLinks){if(z===Z)break;ee-=ne}return ee}function J(Z,j){let ee=j.y0-(j.targetLinks.length-1)*h/2;for(let{source:z,width:ne}of j.targetLinks){if(z===Z)break;ee+=ne+h}for(let{target:z,width:ne}of Z.sourceLinks){if(z===j)break;ee-=ne}return ee}return x}var Ijr=Re(()=>{gpt();vpt()});function Spt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ojr(){return new Spt}var Ept,wpt,CF=0.000001,mTi,Tpt;var Njr=Re(()=>{Ept=Math.PI,wpt=2*Ept,mTi=wpt-CF;Spt.prototype=Ojr.prototype={constructor:Spt,moveTo:function(e,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+r)},closePath:function(){if(this._x1!==null)this._x1=this._x0,this._y1=this._y0,this._+="Z"},lineTo:function(e,r){this._+="L"+(this._x1=+e)+","+(this._y1=+r)},quadraticCurveTo:function(e,r,i,a){this._+="Q"+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function(e,r,i,a,o,l){this._+="C"+ +e+","+ +r+","+ +i+","+ +a+","+(this._x1=+o)+","+(this._y1=+l)},arcTo:function(e,r,i,a,o){e=+e,r=+r,i=+i,a=+a,o=+o;var l=this._x1,h=this._y1,d=i-e,p=a-r,m=l-e,y=h-r,v=m*m+y*y;if(o<0)throw Error("negative radius: "+o);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=r);else if(!(v>CF));else if(!(Math.abs(y*d-p*m)>CF)||!o)this._+="L"+(this._x1=e)+","+(this._y1=r);else{var w=i-l,T=a-h,x=d*d+p*p,k=w*w+T*T,A=Math.sqrt(x),R=Math.sqrt(v),N=o*Math.tan((Ept-Math.acos((x+v-k)/(2*A*R)))/2),L=N/R,B=N/A;if(Math.abs(L-1)>CF)this._+="L"+(e+L*m)+","+(r+L*y);this._+="A"+o+","+o+",0,0,"+ +(y*w>m*T)+","+(this._x1=e+B*d)+","+(this._y1=r+B*p)}},arc:function(e,r,i,a,o,l){e=+e,r=+r,i=+i,l=!!l;var h=i*Math.cos(a),d=i*Math.sin(a),p=e+h,m=r+d,y=1^l,v=l?a-o:o-a;if(i<0)throw Error("negative radius: "+i);if(this._x1===null)this._+="M"+p+","+m;else if(Math.abs(this._x1-p)>CF||Math.abs(this._y1-m)>CF)this._+="L"+p+","+m;if(!i)return;if(v<0)v=v%wpt+wpt;if(v>mTi)this._+="A"+i+","+i+",0,1,"+y+","+(e-h)+","+(r-d)+"A"+i+","+i+",0,1,"+y+","+(this._x1=p)+","+(this._y1=m);else if(v>CF)this._+="A"+i+","+i+",0,"+ +(v>=Ept)+","+y+","+(this._x1=e+i*Math.cos(o))+","+(this._y1=r+i*Math.sin(o))},rect:function(e,r,i,a){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+r)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function(){return this._}};Tpt=Ojr});var Ljr=Re(()=>{Njr()});var Mjr;var Djr=Re(()=>{Mjr=Array.prototype.slice});function Xke(e){return function(){return e}}function Pjr(e){return e[0]}function Bjr(e){return e[1]}function bTi(e){return e.source}function yTi(e){return e.target}function vTi(e){var r=bTi,i=yTi,a=Pjr,o=Bjr,l=null;function h(){var d,p=Mjr.call(arguments),m=r.apply(this,p),y=i.apply(this,p);if(!l)l=d=Tpt();if(e(l,+a.apply(this,(p[0]=m,p)),+o.apply(this,p),+a.apply(this,(p[0]=y,p)),+o.apply(this,p)),d)return l=null,d+""||null}return h.source=function(d){return arguments.length?(r=d,h):r},h.target=function(d){return arguments.length?(i=d,h):i},h.x=function(d){return arguments.length?(a=typeof d==="function"?d:Xke(+d),h):a},h.y=function(d){return arguments.length?(o=typeof d==="function"?d:Xke(+d),h):o},h.context=function(d){return arguments.length?(l=d==null?null:d,h):l},h}function _Ti(e,r,i,a,o){e.moveTo(r,i),e.bezierCurveTo(r=(r+a)/2,i,r,o,a,o)}function xpt(){return vTi(_Ti)}var Fjr=Re(()=>{Ljr();Djr()});var $jr=Re(()=>{Fjr()});function ETi(e){return[e.source.x1,e.y0]}function wTi(e){return[e.target.x0,e.y1]}function Qke(){return xpt().source(ETi).target(wTi)}var Ujr=Re(()=>{$jr()});var Gjr=Re(()=>{Ijr();vpt();Ujr()});var Cpt,Zke,e3e,t3e,Jke,STi,TTi,xTi,CTi,kTi,ATi,RTi,ITi,OTi,zjr,NTi,LTi,MTi,DTi,PTi,BTi,FTi,$Ti,Vjr;var Hjr=Re(()=>{eo();Zs();Ja();dl();Gjr();Cpt=function(){var e=I(function(d,p,m,y){for(m=m||{},y=d.length;y--;m[d[y]]=p);return m},"o"),r=[1,9],i=[1,10],a=[1,5,10,12],o={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:I(function(p,m,y,v,w,T,x){var k=T.length-1;switch(w){case 7:let A=v.findOrCreateNode(T[k-4].trim().replaceAll('""','"')),R=v.findOrCreateNode(T[k-2].trim().replaceAll('""','"')),N=parseFloat(T[k].trim());v.addLink(A,R,N);break;case 8:case 9:case 11:this.$=T[k];break;case 10:this.$=T[k-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:i},{1:[2,6],7:11,10:[1,12]},e(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(a,[2,8]),e(a,[2,9]),{19:[1,16]},e(a,[2,11]),{1:[2,1]},{1:[2,5]},e(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:i},{15:18,16:7,17:8,18:r,20:i},{18:[1,19]},e(i,[2,3]),{12:[1,20]},e(a,[2,10]),{15:21,16:7,17:8,18:r,20:i},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:I(function(p,m){if(m.recoverable)this.trace(p);else{var y=Error(p);throw y.hash=m,y}},"parseError"),parse:I(function(p){var m=this,y=[0],v=[],w=[null],T=[],x=this.table,k="",A=0,R=0,N=0,L=2,B=1,D=T.slice.call(arguments,1),P=Object.create(this.lexer),F={yy:{}};for(var H in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,H))F.yy[H]=this.yy[H];if(P.setInput(p,F.yy),F.yy.lexer=P,F.yy.parser=this,typeof P.yylloc>"u")P.yylloc={};var W=P.yylloc;T.push(W);var X=P.options&&P.options.ranges;if(typeof F.yy.parseError==="function")this.parseError=F.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function Q(Se){y.length=y.length-2*Se,w.length=w.length-Se,T.length=T.length-Se}I(Q,"popStack");function Y(){var Se=v.pop()||P.lex()||B;if(typeof Se!=="number"){if(Se instanceof Array)v=Se,Se=v.pop();Se=m.symbols_[Se]||Se}return Se}I(Y,"lex");var K,J,Z,j,ee,z,ne={},ie,se,oe,he;while(!0){if(Z=y[y.length-1],this.defaultActions[Z])j=this.defaultActions[Z];else{if(K===null||typeof K>"u")K=Y();j=x[Z]&&x[Z][K]}if(typeof j>"u"||!j.length||!j[0]){var ye="";he=[];for(ie in x[Z])if(this.terminals_[ie]&&ie>L)he.push("'"+this.terminals_[ie]+"'");if(P.showPosition)ye="Parse error on line "+(A+1)+`: `+P.showPosition()+` -Expecting `+he.join(", ")+", got '"+(this.terminals_[j]||j)+"'";else ye="Parse error on line "+(A+1)+": Unexpected "+(j==B?"end of input":"'"+(this.terminals_[j]||j)+"'");this.parseError(ye,{text:P.match,token:this.terminals_[j]||j,line:P.yylineno,loc:K,expected:he})}if(W[0]instanceof Array&&W.length>1)throw Error("Parse Error: multiple actions possible at state: "+X+", token: "+j);switch(W[0]){case 1:if(y.push(j),w.push(P.yytext),T.push(P.yylloc),y.push(W[1]),j=null,!te){if(R=P.yyleng,k=P.yytext,A=P.yylineno,K=P.yylloc,N>0)N--}else j=te,te=null;break;case 2:if(le=this.productions_[W[1]][1],ne.$=w[w.length-le],ne._$={first_line:T[T.length-(le||1)].first_line,last_line:T[T.length-1].last_line,first_column:T[T.length-(le||1)].first_column,last_column:T[T.length-1].last_column},Q)ne._$.range=[T[T.length-(le||1)].range[0],T[T.length-1].range[1]];if(z=this.performAction.apply(ne,[k,R,A,F.yy,W[1],w,T].concat(D)),typeof z<"u")return z;if(le)y=y.slice(0,-1*le*2),w=w.slice(0,-1*le),T=T.slice(0,-1*le);y.push(this.productions_[W[1]][0]),w.push(ne.$),T.push(ne._$),se=x[y[y.length-2]][y[y.length-1]],y.push(se);break;case 3:return!0}}return!0},"parse")},l=function(){var d={EOF:1,parseError:I(function(m,y){if(this.yy.parser)this.yy.parser.parseError(m,y);else throw Error(m)},"parseError"),setInput:I(function(p,m){if(this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);if(m)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),p},"input"),unput:I(function(p){var m=p.length,y=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var E=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1)this.yylineno-=y.length-1;var w=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===E.length?this.yylloc.first_column:0)+E[E.length-y.length].length-y[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[w[0],w[0]+this.yyleng-m];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+he.join(", ")+", got '"+(this.terminals_[K]||K)+"'";else ye="Parse error on line "+(A+1)+": Unexpected "+(K==B?"end of input":"'"+(this.terminals_[K]||K)+"'");this.parseError(ye,{text:P.match,token:this.terminals_[K]||K,line:P.yylineno,loc:W,expected:he})}if(j[0]instanceof Array&&j.length>1)throw Error("Parse Error: multiple actions possible at state: "+Z+", token: "+K);switch(j[0]){case 1:if(y.push(K),w.push(P.yytext),T.push(P.yylloc),y.push(j[1]),K=null,!J){if(R=P.yyleng,k=P.yytext,A=P.yylineno,W=P.yylloc,N>0)N--}else K=J,J=null;break;case 2:if(se=this.productions_[j[1]][1],ne.$=w[w.length-se],ne._$={first_line:T[T.length-(se||1)].first_line,last_line:T[T.length-1].last_line,first_column:T[T.length-(se||1)].first_column,last_column:T[T.length-1].last_column},X)ne._$.range=[T[T.length-(se||1)].range[0],T[T.length-1].range[1]];if(z=this.performAction.apply(ne,[k,R,A,F.yy,j[1],w,T].concat(D)),typeof z<"u")return z;if(se)y=y.slice(0,-1*se*2),w=w.slice(0,-1*se),T=T.slice(0,-1*se);y.push(this.productions_[j[1]][0]),w.push(ne.$),T.push(ne._$),oe=x[y[y.length-2]][y[y.length-1]],y.push(oe);break;case 3:return!0}}return!0},"parse")},l=function(){var d={EOF:1,parseError:I(function(m,y){if(this.yy.parser)this.yy.parser.parseError(m,y);else throw Error(m)},"parseError"),setInput:I(function(p,m){if(this.yy=m||this.yy||{},this._input=p,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var p=this._input[0];this.yytext+=p,this.yyleng++,this.offset++,this.match+=p,this.matched+=p;var m=p.match(/(?:\r\n?|\n).*/g);if(m)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),p},"input"),unput:I(function(p){var m=p.length,y=p.split(/(?:\r\n?|\n)/g);this._input=p+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var v=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),y.length-1)this.yylineno-=y.length-1;var w=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:y?(y.length===v.length?this.yylloc.first_column:0)+v[v.length-y.length].length-y[0].length:this.yylloc.first_column-m},this.options.ranges)this.yylloc.range=[w[0],w[0]+this.yyleng-m];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(p){this.unput(this.match.slice(p))},"less"),pastInput:I(function(){var p=this.matched.substr(0,this.matched.length-this.match.length);return(p.length>20?"...":"")+p.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var p=this.match;if(p.length<20)p+=this._input.substr(0,20-p.length);return(p.substr(0,20)+(p.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var p=this.pastInput(),m=Array(p.length+1).join("-");return p+this.upcomingInput()+` -`+m+"^"},"showPosition"),test_match:I(function(p,m){var y,E,w;if(this.options.backtrack_lexer){if(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)w.yylloc.range=this.yylloc.range.slice(0)}if(E=p[0].match(/(?:\r\n?|\n).*/g),E)this.yylineno+=E.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:E?E[E.length-1].length-E[E.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],y=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(y)return y;else if(this._backtrack){for(var T in w)this[T]=w[T];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var p,m,y,E;if(!this._more)this.yytext="",this.match="";var w=this._currentRules();for(var T=0;Tm[0].length)){if(m=y,E=T,this.options.backtrack_lexer)if(p=this.test_match(y,w[T]),p!==!1)return p;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(p=this.test_match(m,w[E]),p!==!1)return p;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var m=this.next();if(m)return m;else return this.lex()},"lex"),begin:I(function(m){this.conditionStack.push(m)},"begin"),popState:I(function(){var m=this.conditionStack.length-1;if(m>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:I(function(m){this.begin(m)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(m,y,E,w){var T=w;switch(E){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return d}();o.lexer=l;function h(){this.yy={}}return I(h,"Parser"),h.prototype=o,o.Parser=h,new h}();Spt.parser=Spt;Kke=Spt,Qke=[],Zke=[],Xke=new Map,bTi=I(()=>{Qke=[],Zke=[],Xke=new Map,qs()},"clear"),yTi=class{constructor(e,r,i=0){this.source=e,this.target=r,this.value=i}static{I(this,"SankeyLink")}},vTi=I((e,r,i)=>{Qke.push(new yTi(e,r,i))},"addLink"),_Ti=class{constructor(e){this.ID=e}static{I(this,"SankeyNode")}},ETi=I((e)=>{e=ai.sanitizeText(e,Ar());let r=Xke.get(e);if(r===void 0)r=new _Ti(e),Xke.set(e,r),Zke.push(r);return r},"findOrCreateNode"),wTi=I(()=>Zke,"getNodes"),STi=I(()=>Qke,"getLinks"),TTi=I(()=>({nodes:Zke.map((e)=>({id:e.ID})),links:Qke.map((e)=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),xTi={nodesMap:Xke,getConfig:I(()=>Ar().sankey,"getConfig"),getNodes:wTi,getLinks:STi,getGraph:TTi,addLink:vTi,findOrCreateNode:ETi,getAccTitle:oo,setAccTitle:Ys,getAccDescription:lo,setAccDescription:Js,getDiagramTitle:fo,setDiagramTitle:_o,clear:bTi},Bjr=class e{static{I(this,"Uid")}static{this.count=0}static next(r){return new e(r+ ++e.count)}constructor(r){this.id=r,this.href=`#${r}`}toString(){return"url("+this.href+")"}},CTi={left:fpt,right:ppt,center:gpt,justify:Eoe},kTi=I((e)=>{let r=0,i=0;for(let a of e){let o=a.value??0;if(o>r)r=o,i=a.layer??0}return i},"findCentralNodeLayer"),ATi=I(function(e,r,i,a){let{securityLevel:o,sankey:l}=Ar(),h=YV.sankey,d;if(o==="sandbox")d=xn("#i"+r);let p=o==="sandbox"?xn(d.nodes()[0].contentDocument.body):xn("body"),m=o==="sandbox"?p.select(`[id="${r}"]`):xn(`[id="${r}"]`),y=l?.width??h.width,E=l?.height??h.width,w=l?.useMaxWidth??h.useMaxWidth,T=l?.nodeAlignment??h.nodeAlignment,x=l?.prefix??h.prefix,k=l?.suffix??h.suffix,A=l?.showValues??h.showValues,R=l?.nodeWidth??h.nodeWidth??10,N=l?.nodePadding??h.nodePadding??12,L=l?.labelStyle??h.labelStyle??"legacy",B=l?.nodeColors??{},D=a.db.getGraph(),P=CTi[T];Yke().nodeId((z)=>z.id).nodeWidth(R).nodePadding(N+(A?15:0)).nodeAlign(P).extent([[0,0],[y,E]])(D);let H=kTi(D.nodes),K=VE(SJe),Q=I((z)=>B[z]??K(z),"getNodeColor");m.append("g").attr("class","nodes").selectAll(".node").data(D.nodes).join("g").attr("class","node").attr("id",(z)=>(z.uid=Bjr.next("node-")).id).attr("transform",function(z){return"translate("+z.x0+","+z.y0+")"}).attr("x",(z)=>z.x0).attr("y",(z)=>z.y0).append("rect").attr("height",(z)=>z.y1-z.y0).attr("width",(z)=>z.x1-z.x0).attr("fill",(z)=>Q(z.id));let Z=I(({id:z,value:ne})=>{if(!A)return z;return`${z} -${x}${Math.round(ne*100)/100}${k}`},"getText"),Y=I((z)=>{if(L==="outlined"){if((z.layer??0)j.selectAll(z?`.${z}`:"text").data(D.nodes).join("text").attr("class",z??null).attr("x",(ne)=>Y(ne).x).attr("y",(ne)=>(ne.y1+ne.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",(ne)=>Y(ne).anchor).text(Z),"appendLabel");if(L==="outlined")te("sankey-label-bg"),te("sankey-label-fg");else te();let X=m.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(D.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),W=l?.linkColor??"gradient";if(W==="gradient"){let z=X.append("linearGradient").attr("id",(ne)=>(ne.uid=Bjr.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(ne)=>ne.source.x1).attr("x2",(ne)=>ne.target.x0);z.append("stop").attr("offset","0%").attr("stop-color",(ne)=>Q(ne.source.id)),z.append("stop").attr("offset","100%").attr("stop-color",(ne)=>Q(ne.target.id))}let J;switch(W){case"gradient":J=I((z)=>z.uid,"coloring");break;case"source":J=I((z)=>Q(z.source.id),"coloring");break;case"target":J=I((z)=>Q(z.target.id),"coloring");break;default:J=W}X.append("path").attr("d",jke()).attr("stroke",J).attr("stroke-width",(z)=>Math.max(1,z.width)),n3(void 0,m,0,w)},"draw"),RTi={draw:ATi},ITi=I((e)=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` -`).trim(),"prepareTextForParsing"),OTi=I((e)=>`.label { +`+m+"^"},"showPosition"),test_match:I(function(p,m){var y,v,w;if(this.options.backtrack_lexer){if(w={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)w.yylloc.range=this.yylloc.range.slice(0)}if(v=p[0].match(/(?:\r\n?|\n).*/g),v)this.yylineno+=v.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:v?v[v.length-1].length-v[v.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+p[0].length},this.yytext+=p[0],this.match+=p[0],this.matches=p,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(p[0].length),this.matched+=p[0],y=this.performAction.call(this,this.yy,this,m,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(y)return y;else if(this._backtrack){for(var T in w)this[T]=w[T];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var p,m,y,v;if(!this._more)this.yytext="",this.match="";var w=this._currentRules();for(var T=0;Tm[0].length)){if(m=y,v=T,this.options.backtrack_lexer)if(p=this.test_match(y,w[T]),p!==!1)return p;else if(this._backtrack){m=!1;continue}else return!1;else if(!this.options.flex)break}if(m){if(p=this.test_match(m,w[v]),p!==!1)return p;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var m=this.next();if(m)return m;else return this.lex()},"lex"),begin:I(function(m){this.conditionStack.push(m)},"begin"),popState:I(function(){var m=this.conditionStack.length-1;if(m>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(m){if(m=this.conditionStack.length-1-Math.abs(m||0),m>=0)return this.conditionStack[m];else return"INITIAL"},"topState"),pushState:I(function(m){this.begin(m)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(m,y,v,w){var T=w;switch(v){case 0:return this.pushState("csv"),4;break;case 1:return this.pushState("csv"),4;break;case 2:return 10;case 3:return 5;case 4:return 12;case 5:return this.pushState("escaped_text"),18;break;case 6:return 20;case 7:return this.popState("escaped_text"),18;break;case 8:return 19}},"anonymous"),rules:[/^(?:sankey-beta\b)/i,/^(?:sankey\b)/i,/^(?:$)/i,/^(?:((\u000D\u000A)|(\u000A)))/i,/^(?:(\u002C))/i,/^(?:(\u0022))/i,/^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i,/^(?:(\u0022)(?!(\u0022)))/i,/^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],conditions:{csv:{rules:[2,3,4,5,6,7,8],inclusive:!1},escaped_text:{rules:[7,8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8],inclusive:!0}}};return d}();o.lexer=l;function h(){this.yy={}}return I(h,"Parser"),h.prototype=o,o.Parser=h,new h}();Cpt.parser=Cpt;Zke=Cpt,e3e=[],t3e=[],Jke=new Map,STi=I(()=>{e3e=[],t3e=[],Jke=new Map,qs()},"clear"),TTi=class{constructor(e,r,i=0){this.source=e,this.target=r,this.value=i}static{I(this,"SankeyLink")}},xTi=I((e,r,i)=>{e3e.push(new TTi(e,r,i))},"addLink"),CTi=class{constructor(e){this.ID=e}static{I(this,"SankeyNode")}},kTi=I((e)=>{e=ai.sanitizeText(e,Ar());let r=Jke.get(e);if(r===void 0)r=new CTi(e),Jke.set(e,r),t3e.push(r);return r},"findOrCreateNode"),ATi=I(()=>t3e,"getNodes"),RTi=I(()=>e3e,"getLinks"),ITi=I(()=>({nodes:t3e.map((e)=>({id:e.ID})),links:e3e.map((e)=>({source:e.source.ID,target:e.target.ID,value:e.value}))}),"getGraph"),OTi={nodesMap:Jke,getConfig:I(()=>Ar().sankey,"getConfig"),getNodes:ATi,getLinks:RTi,getGraph:ITi,addLink:xTi,findOrCreateNode:kTi,getAccTitle:oo,setAccTitle:Ys,getAccDescription:lo,setAccDescription:Js,getDiagramTitle:fo,setDiagramTitle:_o,clear:STi},zjr=class e{static{I(this,"Uid")}static{this.count=0}static next(r){return new e(r+ ++e.count)}constructor(r){this.id=r,this.href=`#${r}`}toString(){return"url("+this.href+")"}},NTi={left:mpt,right:bpt,center:ypt,justify:Toe},LTi=I((e)=>{let r=0,i=0;for(let a of e){let o=a.value??0;if(o>r)r=o,i=a.layer??0}return i},"findCentralNodeLayer"),MTi=I(function(e,r,i,a){let{securityLevel:o,sankey:l}=Ar(),h=KV.sankey,d;if(o==="sandbox")d=xn("#i"+r);let p=o==="sandbox"?xn(d.nodes()[0].contentDocument.body):xn("body"),m=o==="sandbox"?p.select(`[id="${r}"]`):xn(`[id="${r}"]`),y=l?.width??h.width,v=l?.height??h.width,w=l?.useMaxWidth??h.useMaxWidth,T=l?.nodeAlignment??h.nodeAlignment,x=l?.prefix??h.prefix,k=l?.suffix??h.suffix,A=l?.showValues??h.showValues,R=l?.nodeWidth??h.nodeWidth??10,N=l?.nodePadding??h.nodePadding??12,L=l?.labelStyle??h.labelStyle??"legacy",B=l?.nodeColors??{},D=a.db.getGraph(),P=NTi[T];Kke().nodeId((z)=>z.id).nodeWidth(R).nodePadding(N+(A?15:0)).nodeAlign(P).extent([[0,0],[y,v]])(D);let H=LTi(D.nodes),W=VE(CJe),X=I((z)=>B[z]??W(z),"getNodeColor");m.append("g").attr("class","nodes").selectAll(".node").data(D.nodes).join("g").attr("class","node").attr("id",(z)=>(z.uid=zjr.next("node-")).id).attr("transform",function(z){return"translate("+z.x0+","+z.y0+")"}).attr("x",(z)=>z.x0).attr("y",(z)=>z.y0).append("rect").attr("height",(z)=>z.y1-z.y0).attr("width",(z)=>z.x1-z.x0).attr("fill",(z)=>X(z.id));let Q=I(({id:z,value:ne})=>{if(!A)return z;return`${z} +${x}${Math.round(ne*100)/100}${k}`},"getText"),Y=I((z)=>{if(L==="outlined"){if((z.layer??0)K.selectAll(z?`.${z}`:"text").data(D.nodes).join("text").attr("class",z??null).attr("x",(ne)=>Y(ne).x).attr("y",(ne)=>(ne.y1+ne.y0)/2).attr("dy",`${A?"0":"0.35"}em`).attr("text-anchor",(ne)=>Y(ne).anchor).text(Q),"appendLabel");if(L==="outlined")J("sankey-label-bg"),J("sankey-label-fg");else J();let Z=m.append("g").attr("class","links").attr("fill","none").attr("stroke-opacity",0.5).selectAll(".link").data(D.links).join("g").attr("class","link").style("mix-blend-mode","multiply"),j=l?.linkColor??"gradient";if(j==="gradient"){let z=Z.append("linearGradient").attr("id",(ne)=>(ne.uid=zjr.next("linearGradient-")).id).attr("gradientUnits","userSpaceOnUse").attr("x1",(ne)=>ne.source.x1).attr("x2",(ne)=>ne.target.x0);z.append("stop").attr("offset","0%").attr("stop-color",(ne)=>X(ne.source.id)),z.append("stop").attr("offset","100%").attr("stop-color",(ne)=>X(ne.target.id))}let ee;switch(j){case"gradient":ee=I((z)=>z.uid,"coloring");break;case"source":ee=I((z)=>X(z.source.id),"coloring");break;case"target":ee=I((z)=>X(z.target.id),"coloring");break;default:ee=j}Z.append("path").attr("d",Qke()).attr("stroke",ee).attr("stroke-width",(z)=>Math.max(1,z.width)),i3(void 0,m,0,w)},"draw"),DTi={draw:MTi},PTi=I((e)=>e.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g,"").replaceAll(/([\n\r])+/g,` +`).trim(),"prepareTextForParsing"),BTi=I((e)=>`.label { font-family: ${e.fontFamily}; } @@ -3317,7 +3317,7 @@ ${x}${Math.round(ne*100)/100}${k}`},"getText"),Y=I((z)=>{if(L==="outlined"){if(( stroke-opacity: 0.5; mix-blend-mode: multiply; } -`,"getStyles"),NTi=OTi,LTi=Kke.parse.bind(Kke);Kke.parse=(e)=>LTi(ITi(e));Fjr={styles:NTi,parser:Kke,db:xTi,renderer:RTi}});var MTi,Ujr,DTi=1e4,PTi,BTi,Gjr,FTi,$Ti,UTi,GTi,zTi,zjr;var Vjr=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();MTi=Fs.packet,Ujr=class{constructor(){this.packet=[],this.setAccTitle=Ys,this.getAccTitle=oo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getAccDescription=lo,this.setAccDescription=Js}static{I(this,"PacketDB")}getConfig(){let e=bc({...MTi,...ea().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){qs(),this.packet=[]}},PTi=I((e,r)=>{Sh(e,r);let i=-1,a=[],o=1,{bitsPerRow:l}=r.getConfig();for(let{start:h,end:d,bits:p,label:m}of e.blocks){if(h!==void 0&&d!==void 0&&d{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*i)return[e,void 0];let a=r*i-1,o=r*i;return[{start:e.start,end:a,label:e.label,bits:a-e.start},{start:o,end:e.end,label:e.label,bits:e.end-o}]},"getNextFittingBlock"),Gjr={parser:{yy:void 0},parse:I(async(e)=>{let r=await lp("packet",e),i=Gjr.parser?.yy;if(!(i instanceof Ujr))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ze.debug(r),PTi(r,i)},"parse")},FTi=I((e,r,i,a)=>{let o=a.db,l=o.getConfig(),{rowHeight:h,paddingY:d,bitWidth:p,bitsPerRow:m}=l,y=o.getPacket(),E=o.getDiagramTitle(),w=h+d,T=w*(y.length+1)-(E?0:h),x=p*m+2,k=Ou(r);k.attr("viewBox",`0 0 ${x} ${T}`),Bl(k,T,x,l.useMaxWidth);for(let[A,R]of y.entries())$Ti(k,R,A,l);k.append("text").text(E).attr("x",x/2).attr("y",T-w/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),$Ti=I((e,r,i,{rowHeight:a,paddingX:o,paddingY:l,bitWidth:h,bitsPerRow:d,showBits:p,bitOrder:m})=>{let y=e.append("g"),E=i*(a+l)+l,w=m==="descending";for(let T of r){let x=T.end-T.start+1,k=T.start%d,R=(w?d-k-x:k)*h+1,N=x*h-o;if(y.append("rect").attr("x",R).attr("y",E).attr("width",N).attr("height",a).attr("class","packetBlock"),y.append("text").attr("x",R+N/2).attr("y",E+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(T.label),!p)continue;let[L,B]=w?[T.end,T.start]:[T.start,T.end],D=x===1,P=E-2;if(y.append("text").attr("x",R+(D?N/2:0)).attr("y",P).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",D?"middle":"start").text(L),!D)y.append("text").attr("x",R+N).attr("y",P).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(B)}},"drawWord"),UTi={draw:FTi},GTi={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},zTi=I(({packet:e}={})=>{let r=bc(GTi,e);return` +`,"getStyles"),FTi=BTi,$Ti=Zke.parse.bind(Zke);Zke.parse=(e)=>$Ti(PTi(e));Vjr={styles:FTi,parser:Zke,db:OTi,renderer:DTi}});var UTi,qjr,GTi=1e4,zTi,VTi,Yjr,HTi,qTi,YTi,WTi,jTi,Wjr;var jjr=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();UTi=Fs.packet,qjr=class{constructor(){this.packet=[],this.setAccTitle=Ys,this.getAccTitle=oo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getAccDescription=lo,this.setAccDescription=Js}static{I(this,"PacketDB")}getConfig(){let e=bc({...UTi,...ea().packet});if(e.showBits)e.paddingY+=10;return e}getPacket(){return this.packet}pushWord(e){if(e.length>0)this.packet.push(e)}clear(){qs(),this.packet=[]}},zTi=I((e,r)=>{Sh(e,r);let i=-1,a=[],o=1,{bitsPerRow:l}=r.getConfig();for(let{start:h,end:d,bits:p,label:m}of e.blocks){if(h!==void 0&&d!==void 0&&d{if(e.start===void 0)throw Error("start should have been set during first phase");if(e.end===void 0)throw Error("end should have been set during first phase");if(e.start>e.end)throw Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=r*i)return[e,void 0];let a=r*i-1,o=r*i;return[{start:e.start,end:a,label:e.label,bits:a-e.start},{start:o,end:e.end,label:e.label,bits:e.end-o}]},"getNextFittingBlock"),Yjr={parser:{yy:void 0},parse:I(async(e)=>{let r=await lp("packet",e),i=Yjr.parser?.yy;if(!(i instanceof qjr))throw Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Ze.debug(r),zTi(r,i)},"parse")},HTi=I((e,r,i,a)=>{let o=a.db,l=o.getConfig(),{rowHeight:h,paddingY:d,bitWidth:p,bitsPerRow:m}=l,y=o.getPacket(),v=o.getDiagramTitle(),w=h+d,T=w*(y.length+1)-(v?0:h),x=p*m+2,k=Ou(r);k.attr("viewBox",`0 0 ${x} ${T}`),Bl(k,T,x,l.useMaxWidth);for(let[A,R]of y.entries())qTi(k,R,A,l);k.append("text").text(v).attr("x",x/2).attr("y",T-w/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),qTi=I((e,r,i,{rowHeight:a,paddingX:o,paddingY:l,bitWidth:h,bitsPerRow:d,showBits:p,bitOrder:m})=>{let y=e.append("g"),v=i*(a+l)+l,w=m==="descending";for(let T of r){let x=T.end-T.start+1,k=T.start%d,R=(w?d-k-x:k)*h+1,N=x*h-o;if(y.append("rect").attr("x",R).attr("y",v).attr("width",N).attr("height",a).attr("class","packetBlock"),y.append("text").attr("x",R+N/2).attr("y",v+a/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(T.label),!p)continue;let[L,B]=w?[T.end,T.start]:[T.start,T.end],D=x===1,P=v-2;if(y.append("text").attr("x",R+(D?N/2:0)).attr("y",P).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",D?"middle":"start").text(L),!D)y.append("text").attr("x",R+N).attr("y",P).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(B)}},"drawWord"),YTi={draw:HTi},WTi={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},jTi=I(({packet:e}={})=>{let r=bc(WTi,e);return` .packetByte { font-size: ${r.byteFontSize}; } @@ -3340,7 +3340,7 @@ ${x}${Math.round(ne*100)/100}${k}`},"getText"),Y=I((z)=>{if(L==="outlined"){if(( stroke-width: ${r.blockStrokeWidth}; fill: ${r.blockFillColor}; } - `},"styles"),zjr={parser:Gjr,get db(){return new Ujr},renderer:UTi,styles:zTi}});function Yjr(e,r,i,a,o,l,h){let d=r.length,p=Math.min(h.width,h.height)/2;i.forEach((m,y)=>{if(m.entries.length!==d)return;let E=m.entries.map((w,T)=>{let x=2*Math.PI*T/d-Math.PI/2,k=Wjr(w,a,o,p),A=k*Math.cos(x),R=k*Math.sin(x);return{x:A,y:R}});if(l==="circle")e.append("path").attr("d",jjr(E,h.curveTension)).attr("class",`radarCurve-${y}`);else if(l==="polygon")e.append("polygon").attr("points",E.map((w)=>`${w.x},${w.y}`).join(" ")).attr("class",`radarCurve-${y}`)})}function Wjr(e,r,i,a){let o=Math.min(Math.max(e,r),i);return a*(o-r)/(i-r)}function jjr(e,r){let i=e.length,a=`M${e[0].x},${e[0].y}`;for(let o=0;o{let m=e.append("g").attr("transform",`translate(${o}, ${l+p*h})`);m.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${p}`),m.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(d.label)})}var JY,Jke=32,Hjr,rA,VTi,HTi,qjr,qTi,YTi,WTi,jTi,KTi,XTi,QTi,woe,ZTi,JTi,exi,txi,rxi,nxi,ixi,axi,sxi,oxi,Xjr;var Qjr=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();JY={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},Hjr={axes:[],curves:[],options:JY},rA=structuredClone(Hjr),VTi=Fs.radar,HTi=I(()=>bc({...VTi,...ea().radar}),"getConfig"),qjr=I(()=>rA.axes,"getAxes"),qTi=I(()=>rA.curves,"getCurves"),YTi=I(()=>rA.options,"getOptions"),WTi=I((e)=>{rA.axes=e.map((r)=>({name:r.name,label:r.label??r.name}))},"setAxes"),jTi=I((e)=>{rA.curves=e.map((r)=>({name:r.name,label:r.label??r.name,entries:KTi(r.entries)}))},"setCurves"),KTi=I((e)=>{if(e[0].axis==null)return e.map((i)=>i.value);let r=qjr();if(r.length===0)throw Error("Axes must be populated before curves for reference entries");return r.map((i)=>{let a=e.find((o)=>o.axis?.$refText===i.name);if(a===void 0)throw Error("Missing entry for axis "+i.label);return a.value})},"computeCurveEntries"),XTi=I((e)=>{let r=e.reduce((i,a)=>(i[a.name]=a,i),{});if(rA.options={showLegend:r.showLegend?.value??JY.showLegend,ticks:r.ticks?.value??JY.ticks,max:r.max?.value??JY.max,min:r.min?.value??JY.min,graticule:r.graticule?.value??JY.graticule},rA.options.ticks>Jke)Ze.warn(`Radar diagram ticks (${rA.options.ticks}) exceeds maximum allowed (${Jke}). Using ${Jke} instead.`),rA.options.ticks=Jke},"setOptions"),QTi=I(()=>{qs(),rA=structuredClone(Hjr)},"clear"),woe={getAxes:qjr,getCurves:qTi,getOptions:YTi,setAxes:WTi,setCurves:jTi,setOptions:XTi,getConfig:HTi,clear:QTi,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},ZTi=I((e)=>{Sh(e,woe);let{axes:r,curves:i,options:a}=e;woe.setAxes(r),woe.setCurves(i),woe.setOptions(a)},"populate"),JTi={parse:I(async(e)=>{let r=await lp("radar",e);Ze.debug(r),ZTi(r)},"parse")},exi=I((e,r,i,a)=>{let o=a.db,l=o.getAxes(),h=o.getCurves(),d=o.getOptions(),p=o.getConfig(),m=o.getDiagramTitle(),y=Ou(r),E=txi(y,p),w=d.max??Math.max(...h.map((k)=>Math.max(...k.entries))),T=d.min,x=Math.min(p.width,p.height)/2;rxi(E,l,x,d.ticks,d.graticule),nxi(E,l,x,p),Yjr(E,l,h,T,w,d.graticule,p),Kjr(E,h,d.showLegend,p),E.append("text").attr("class","radarTitle").text(m).attr("x",0).attr("y",-p.height/2-p.marginTop)},"draw"),txi=I((e,r)=>{let i=r.width+r.marginLeft+r.marginRight,a=r.height+r.marginTop+r.marginBottom,o={x:r.marginLeft+r.width/2,y:r.marginTop+r.height/2};return Bl(e,a,i,r.useMaxWidth??!0),e.attr("viewBox",`0 0 ${i} ${a}`).attr("overflow","visible"),e.append("g").attr("transform",`translate(${o.x}, ${o.y})`)},"drawFrame"),rxi=I((e,r,i,a,o)=>{if(o==="circle")for(let l=0;l{let E=2*y*Math.PI/l-Math.PI/2,w=d*Math.cos(E),T=d*Math.sin(E);return`${w},${T}`}).join(" ");e.append("polygon").attr("points",p).attr("class","radarGraticule")}}},"drawGraticule"),nxi=I((e,r,i,a)=>{let o=r.length;for(let l=0;l0.01?"start":p<-0.01?"end":"middle",E=m>0.01?"hanging":m<-0.01?"auto":"central",w=4;e.append("text").text(h).attr("x",i*a.axisLabelFactor*p+w*p).attr("y",i*a.axisLabelFactor*m+w*m).attr("text-anchor",y).attr("dominant-baseline",E).attr("class","radarAxisLabel")}},"drawAxes");I(Yjr,"drawCurves");I(Wjr,"relativeRadius");I(jjr,"closedRoundCurve");I(Kjr,"drawLegend");ixi={draw:exi},axi=I((e,r)=>{let i="";for(let a=0;a{if(m.entries.length!==d)return;let v=m.entries.map((w,T)=>{let x=2*Math.PI*T/d-Math.PI/2,k=Zjr(w,a,o,p),A=k*Math.cos(x),R=k*Math.sin(x);return{x:A,y:R}});if(l==="circle")e.append("path").attr("d",Jjr(v,h.curveTension)).attr("class",`radarCurve-${y}`);else if(l==="polygon")e.append("polygon").attr("points",v.map((w)=>`${w.x},${w.y}`).join(" ")).attr("class",`radarCurve-${y}`)})}function Zjr(e,r,i,a){let o=Math.min(Math.max(e,r),i);return a*(o-r)/(i-r)}function Jjr(e,r){let i=e.length,a=`M${e[0].x},${e[0].y}`;for(let o=0;o{let m=e.append("g").attr("transform",`translate(${o}, ${l+p*h})`);m.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${p}`),m.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(d.label)})}var rW,r3e=32,Kjr,nA,KTi,XTi,Xjr,QTi,ZTi,JTi,exi,txi,rxi,nxi,xoe,ixi,axi,sxi,oxi,lxi,cxi,uxi,hxi,dxi,fxi,tKr;var rKr=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();rW={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},Kjr={axes:[],curves:[],options:rW},nA=structuredClone(Kjr),KTi=Fs.radar,XTi=I(()=>bc({...KTi,...ea().radar}),"getConfig"),Xjr=I(()=>nA.axes,"getAxes"),QTi=I(()=>nA.curves,"getCurves"),ZTi=I(()=>nA.options,"getOptions"),JTi=I((e)=>{nA.axes=e.map((r)=>({name:r.name,label:r.label??r.name}))},"setAxes"),exi=I((e)=>{nA.curves=e.map((r)=>({name:r.name,label:r.label??r.name,entries:txi(r.entries)}))},"setCurves"),txi=I((e)=>{if(e[0].axis==null)return e.map((i)=>i.value);let r=Xjr();if(r.length===0)throw Error("Axes must be populated before curves for reference entries");return r.map((i)=>{let a=e.find((o)=>o.axis?.$refText===i.name);if(a===void 0)throw Error("Missing entry for axis "+i.label);return a.value})},"computeCurveEntries"),rxi=I((e)=>{let r=e.reduce((i,a)=>(i[a.name]=a,i),{});if(nA.options={showLegend:r.showLegend?.value??rW.showLegend,ticks:r.ticks?.value??rW.ticks,max:r.max?.value??rW.max,min:r.min?.value??rW.min,graticule:r.graticule?.value??rW.graticule},nA.options.ticks>r3e)Ze.warn(`Radar diagram ticks (${nA.options.ticks}) exceeds maximum allowed (${r3e}). Using ${r3e} instead.`),nA.options.ticks=r3e},"setOptions"),nxi=I(()=>{qs(),nA=structuredClone(Kjr)},"clear"),xoe={getAxes:Xjr,getCurves:QTi,getOptions:ZTi,setAxes:JTi,setCurves:exi,setOptions:rxi,getConfig:XTi,clear:nxi,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},ixi=I((e)=>{Sh(e,xoe);let{axes:r,curves:i,options:a}=e;xoe.setAxes(r),xoe.setCurves(i),xoe.setOptions(a)},"populate"),axi={parse:I(async(e)=>{let r=await lp("radar",e);Ze.debug(r),ixi(r)},"parse")},sxi=I((e,r,i,a)=>{let o=a.db,l=o.getAxes(),h=o.getCurves(),d=o.getOptions(),p=o.getConfig(),m=o.getDiagramTitle(),y=Ou(r),v=oxi(y,p),w=d.max??Math.max(...h.map((k)=>Math.max(...k.entries))),T=d.min,x=Math.min(p.width,p.height)/2;lxi(v,l,x,d.ticks,d.graticule),cxi(v,l,x,p),Qjr(v,l,h,T,w,d.graticule,p),eKr(v,h,d.showLegend,p),v.append("text").attr("class","radarTitle").text(m).attr("x",0).attr("y",-p.height/2-p.marginTop)},"draw"),oxi=I((e,r)=>{let i=r.width+r.marginLeft+r.marginRight,a=r.height+r.marginTop+r.marginBottom,o={x:r.marginLeft+r.width/2,y:r.marginTop+r.height/2};return Bl(e,a,i,r.useMaxWidth??!0),e.attr("viewBox",`0 0 ${i} ${a}`).attr("overflow","visible"),e.append("g").attr("transform",`translate(${o.x}, ${o.y})`)},"drawFrame"),lxi=I((e,r,i,a,o)=>{if(o==="circle")for(let l=0;l{let v=2*y*Math.PI/l-Math.PI/2,w=d*Math.cos(v),T=d*Math.sin(v);return`${w},${T}`}).join(" ");e.append("polygon").attr("points",p).attr("class","radarGraticule")}}},"drawGraticule"),cxi=I((e,r,i,a)=>{let o=r.length;for(let l=0;l0.01?"start":p<-0.01?"end":"middle",v=m>0.01?"hanging":m<-0.01?"auto":"central",w=4;e.append("text").text(h).attr("x",i*a.axisLabelFactor*p+w*p).attr("y",i*a.axisLabelFactor*m+w*m).attr("text-anchor",y).attr("dominant-baseline",v).attr("class","radarAxisLabel")}},"drawAxes");I(Qjr,"drawCurves");I(Zjr,"relativeRadius");I(Jjr,"closedRoundCurve");I(eKr,"drawLegend");uxi={draw:sxi},hxi=I((e,r)=>{let i="";for(let a=0;a{if(L==="outlined"){if(( fill-opacity: ${r.curveOpacity}; stroke: ${o}; } - `}return i},"genIndexStyles"),sxi=I((e)=>{let r=Kb(),i=ea(),a=bc(r,i.themeVariables),o=bc(a.radar,e);return{themeVariables:a,radarOptions:o}},"buildRadarStyleOptions"),oxi=I(({radar:e}={})=>{let{themeVariables:r,radarOptions:i}=sxi(e);return` + `}return i},"genIndexStyles"),dxi=I((e)=>{let r=Kb(),i=ea(),a=bc(r,i.themeVariables),o=bc(a.radar,e);return{themeVariables:a,radarOptions:o}},"buildRadarStyleOptions"),fxi=I(({radar:e}={})=>{let{themeVariables:r,radarOptions:i}=dxi(e);return` .radarTitle { font-size: ${r.fontSize}; color: ${r.titleColor}; @@ -3379,19 +3379,19 @@ ${x}${Math.round(ne*100)/100}${k}`},"getText"),Y=I((z)=>{if(L==="outlined"){if(( font-size: ${i.legendFontSize}px; dominant-baseline: hanging; } - ${axi(r,i)} - `},"styles"),Xjr={parser:JTi,db:woe,renderer:ixi,styles:oxi}});function iKr(e){switch(Ze.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return Ze.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function aKr(e){switch(Ze.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function sKr(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function oKr(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function lKr(e){return e.includes("==")?"thick":"normal"}function cKr(e){if(e.includes(".-"))return"dotted";return"solid"}function kpt(e,r){if(e===0||!Number.isInteger(e))throw Error("Columns must be an integer !== 0.");if(r<0||!Number.isInteger(r))throw Error("Position must be a non-negative integer."+r);if(e<0)return{px:r,py:0};if(e===1)return{px:0,py:r};let i=r%e,a=Math.floor(r/e);return{px:i,py:a}}function t3e(e,r,i=0,a=0,o=8){if(Ze.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",i),!e?.size?.width)e.size={width:i,height:a,x:0,y:0};let l=0,h=0;if(e.children?.length>0){for(let x of e.children)t3e(x,r,0,0,o);let d=Nxi(e);l=d.width,h=d.height,Ze.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",l,h);for(let x of e.children)if(x.size)Ze.debug(`abc95 Setting size of children of ${e.id} id=${x.id} ${l} ${h} ${JSON.stringify(x.size)}`),x.size.width=l*(x.widthInColumns??1)+o*((x.widthInColumns??1)-1),x.size.height=h,x.size.x=0,x.size.y=0,Ze.debug(`abc95 updating size of ${e.id} children child:${x.id} maxWidth:${l} maxHeight:${h}`);for(let x of e.children)t3e(x,r,l,h,o);let p=e.columns??-1,m=0;for(let x of e.children)m+=x.widthInColumns??1;let y=e.children.length;if(p>0&&p0?Math.min(e.children.length,p):e.children.length;if(x>0){let k=(w-x*o-o)/x;Ze.debug("abc95 (growing to fit) width",e.id,w,e.size?.width,k);for(let A of e.children)if(A.size)A.size.width=k}}e.size={width:w,height:T,x:0,y:0}}Ze.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function Opt(e,r,i=8){Ze.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let a=e.columns??-1;if(Ze.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){let o=e?.children[0]?.size?.width??0,l=e.children.length*o+(e.children.length-1)*i;Ze.debug("widthOfChildren 88",l,"posX");let h=new Map;{let E=0;for(let w of e.children){if(!w.size)continue;let{py:T}=kpt(a,E),x=h.get(T)??0;if(w.size.height>x)h.set(T,w.size.height);let k=w?.widthInColumns??1;if(a>0)k=Math.min(k,a-E%a);E+=k}}let d=new Map;{let E=0,w=[...h.keys()].sort((T,x)=>T-x);for(let T of w)d.set(T,E),E+=(h.get(T)??0)+i}let p=0;Ze.debug("abc91 block?.size?.x",e.id,e?.size?.x);let m=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-i,y=0;for(let E of e.children){let w=e;if(!E.size)continue;let{width:T,height:x}=E.size,{px:k,py:A}=kpt(a,p);if(A!=y)y=A,m=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-i,Ze.debug("New row in layout for block",e.id," and child ",E.id,y);if(Ze.debug(`abc89 layout blocks (child) id: ${E.id} Pos: ${p} (px, py) ${k},${A} (${w?.size?.x},${w?.size?.y}) parent: ${w.id} width: ${T}${i}`),w.size){let N=T/2;E.size.x=m+i+N,Ze.debug(`abc91 layout blocks (calc) px, pyid:${E.id} startingPos=X${m} new startingPosX${E.size.x} ${N} padding=${i} width=${T} halfWidth=${N} => x:${E.size.x} y:${E.size.y} ${E.widthInColumns} (width * (child?.w || 1)) / 2 ${T*(E?.widthInColumns??1)/2}`),m=E.size.x+N;let L=d.get(A)??0,B=h.get(A)??x;E.size.y=w.size.y-w.size.height/2+L+B/2+i,Ze.debug(`abc88 layout blocks (calc) px, pyid:${E.id}startingPosX${m}${i}${N}=>x:${E.size.x}y:${E.size.y}${E.widthInColumns}(width * (child?.w || 1)) / 2${T*(E?.widthInColumns??1)/2}`)}if(E.children)Opt(E,r,i);let R=E?.widthInColumns??1;if(a>0)R=Math.min(R,a-p%a);p+=R,Ze.debug("abc88 columnsPos",E,p)}}Ze.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function Npt(e,{minX:r,minY:i,maxX:a,maxY:o}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:l,y:h,width:d,height:p}=e.size;if(l-d/2a)a=l+d/2;if(h+p/2>o)o=h+p/2}if(e.children)for(let l of e.children)({minX:r,minY:i,maxX:a,maxY:o}=Npt(l,{minX:r,minY:i,maxX:a,maxY:o}));return{minX:r,minY:i,maxX:a,maxY:o}}function uKr(e){let r=e.getBlock("root");if(!r)return;let i=Ar()?.block?.padding??8;t3e(r,e,0,0,i),Opt(r,e,i),Ze.debug("getBlocks",JSON.stringify(r,null,2));let{minX:a,minY:o,maxX:l,maxY:h}=Npt(r),d=h-o,p=l-a;return{x:a,y:o,width:p,height:d}}function Lpt(e,r,i=!1){let a=e,o="default";if((a?.classes?.length||0)>0)o=(a?.classes??[]).join(" ");o=o+" flowchart-label";let l=(a?.classes??[]).flatMap((x)=>r.getClasses().get(x)?.styles??[]),h=0,d="rect",p;switch(a.type){case"round":h=5,d="rect";break;case"composite":h=0,d="composite",p=0;break;case"square":d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"block_arrow":d="block_arrow";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"rect_left_inv_arrow":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}let m=GEe(a?.styles??[]),y=a.label,E=a.size??{width:0,height:0,x:0,y:0},w=r.getDiagramId();return{labelStyle:m.labelStyle,shape:d,label:y,labelText:y,rx:h,ry:h,class:o,cssClasses:o,cssStyles:a?.styles??[],cssCompiledStyles:l,style:m.style,id:a.id,domId:w?`${w}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:E.width||void 0,height:E.height||void 0,wrappingWidth:E.width||Number.POSITIVE_INFINITY,x:E.x,y:E.y,positioned:i,intersect:void 0,padding:p??ea()?.block?.padding??0,widthInColumns:a.widthInColumns??1,colorIndex:a.colorIndex,look:ea().look}}async function hKr(e,r,i){let a=Lpt(r,i,!1);if(r.type==="group")return;let o=ea(),l=await y3(e,a,{config:o}),h=l.node()?.getBBox()??{width:0,height:0},d=i.getBlock(a.id);d.size={width:h.width,height:h.height,x:0,y:0,node:l},i.setBlock(d),l.remove()}async function dKr(e,r,i){let a=Lpt(r,i,!0);if(i.getBlock(a.id).type!=="space"){let l=ea(),h=await y3(e,a,{config:l});if(a.colorIndex!==void 0)ty(h,a.colorIndex,l.theme,l.themeVariables?.borderColorArray);r.intersect=a?.intersect,v3(a)}}async function r3e(e,r,i,a){for(let o of r)if(await a(e,o,i),o.children)await r3e(e,o.children,i,a)}async function fKr(e,r,i){await r3e(e,r,i,hKr)}async function pKr(e,r,i){await r3e(e,r,i,dKr)}async function gKr(e,r,i,a,o){let l=new Yh({multigraph:!0,compound:!0});l.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let h of i)if(h.size)l.setNode(h.id,{width:h.size.width,height:h.size.height,intersect:h.intersect});for(let h of r)if(h.start&&h.end){let d=a.getBlock(h.start),p=a.getBlock(h.end);if(d?.size&&p?.size){let m=d.size,y=p.size,E=[{x:m.x,y:m.y},{x:m.x+(y.x-m.x)/2,y:m.y+(y.y-m.y)/2},{x:y.x,y:y.y}],w=o?`${o}-${h.id}`:h.id,T=h.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",x=h.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",k=`${T} ${x} flowchart-link LS-a1 LE-b1`;if(xL(e,{...h,id:w,arrowTypeEnd:h.arrowTypeEnd,arrowTypeStart:h.arrowTypeStart,points:E,classes:k},{},"block",l.node(h.start),l.node(h.end),o),h.label)await _3(e,{...h,label:h.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:h.arrowTypeEnd,arrowTypeStart:h.arrowTypeStart,points:E,classes:k}),BH({...h,x:E[1].x,y:E[1].y},{originalPath:E})}}}var xpt,lxi,HC,Apt,Cpt,Zjr="color",Jjr="fill",cxi="bgFill",tKr=",",e3e,Rpt="",uxi,hxi,dxi,fxi,rKr=0,nKr,Ipt,Soe,pxi,eKr=0,gxi,mxi,bxi,yxi,vxi,_xi,Exi,wxi,Sxi,Txi,xxi,Cxi,kxi,Axi,Rxi,Tpt,Ixi,Oxi,Nxi,Lxi,Mxi,Dxi,mKr;var bKr=Re(()=>{oI();WE();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();FEe();x0();dl();tT();xpt=function(){var e=I(function(L,B,D,P){for(D=D||{},P=L.length;P--;D[L[P]]=B);return D},"o"),r=[1,15],i=[1,7],a=[1,13],o=[1,14],l=[1,19],h=[1,16],d=[1,17],p=[1,18],m=[8,30],y=[8,10,21,28,29,30,31,39,43,46],E=[1,23],w=[1,24],T=[8,10,15,16,21,28,29,30,31,39,43,46],x=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],A={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:I(function(B,D,P,F,H,K,Q){var Z=K.length-1;switch(H){case 4:F.getLogger().debug("Rule: separator (NL) ");break;case 5:F.getLogger().debug("Rule: separator (Space) ");break;case 6:F.getLogger().debug("Rule: separator (EOF) ");break;case 7:F.getLogger().debug("Rule: hierarchy: ",K[Z-1]),F.setHierarchy(K[Z-1]);break;case 8:F.getLogger().debug("Stop NL ");break;case 9:F.getLogger().debug("Stop EOF ");break;case 10:F.getLogger().debug("Stop NL2 ");break;case 11:F.getLogger().debug("Stop EOF2 ");break;case 12:F.getLogger().debug("Rule: statement: ",K[Z]),typeof K[Z].length==="number"?this.$=K[Z]:this.$=[K[Z]];break;case 13:F.getLogger().debug("Rule: statement #2: ",K[Z-1]),this.$=[K[Z-1]].concat(K[Z]);break;case 14:F.getLogger().debug("Rule: link: ",K[Z],B),this.$={edgeTypeStr:K[Z],label:""};break;case 15:F.getLogger().debug("Rule: LABEL link: ",K[Z-3],K[Z-1],K[Z]),this.$={edgeTypeStr:K[Z],label:K[Z-1]};break;case 18:let Y=parseInt(K[Z]),j=F.generateId();this.$={id:j,type:"space",label:"",width:Y,children:[]};break;case 23:F.getLogger().debug("Rule: (nodeStatement link node) ",K[Z-2],K[Z-1],K[Z]," typestr: ",K[Z-1].edgeTypeStr);let te=F.edgeStrToEdgeData(K[Z-1].edgeTypeStr),X=F.edgeStrToEdgeStartData(K[Z-1].edgeTypeStr),W=F.edgeStrToThickness(K[Z-1].edgeTypeStr),J=F.edgeStrToPattern(K[Z-1].edgeTypeStr);this.$=[{id:K[Z-2].id,label:K[Z-2].label,type:K[Z-2].type,directions:K[Z-2].directions},{id:K[Z-2].id+"-"+K[Z].id,start:K[Z-2].id,end:K[Z].id,label:K[Z-1].label,type:"edge",thickness:W,pattern:J,directions:K[Z].directions,arrowTypeEnd:te,arrowTypeStart:X},{id:K[Z].id,label:K[Z].label,type:F.typeStr2Type(K[Z].typeStr),directions:K[Z].directions}];break;case 24:F.getLogger().debug("Rule: nodeStatement (abc88 node size) ",K[Z-1],K[Z]),this.$={id:K[Z-1].id,label:K[Z-1].label,type:F.typeStr2Type(K[Z-1].typeStr),directions:K[Z-1].directions,widthInColumns:parseInt(K[Z],10)};break;case 25:F.getLogger().debug("Rule: nodeStatement (node) ",K[Z]),this.$={id:K[Z].id,label:K[Z].label,type:F.typeStr2Type(K[Z].typeStr),directions:K[Z].directions,widthInColumns:1};break;case 26:F.getLogger().debug("APA123",this?this:"na"),F.getLogger().debug("COLUMNS: ",K[Z]),this.$={type:"column-setting",columns:K[Z]==="auto"?-1:parseInt(K[Z])};break;case 27:F.getLogger().debug("Rule: id-block statement : ",K[Z-2],K[Z-1]);let z=F.generateId();this.$={...K[Z-2],type:"composite",children:K[Z-1]};break;case 28:F.getLogger().debug("Rule: blockStatement : ",K[Z-2],K[Z-1],K[Z]);let ne=F.generateId();this.$={id:ne,type:"composite",label:"",children:K[Z-1]};break;case 29:F.getLogger().debug("Rule: node (NODE_ID separator): ",K[Z]),this.$={id:K[Z]};break;case 30:F.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",K[Z-1],K[Z]),this.$={id:K[Z-1],label:K[Z].label,typeStr:K[Z].typeStr,directions:K[Z].directions};break;case 31:F.getLogger().debug("Rule: dirList: ",K[Z]),this.$=[K[Z]];break;case 32:F.getLogger().debug("Rule: dirList: ",K[Z-1],K[Z]),this.$=[K[Z-1]].concat(K[Z]);break;case 33:F.getLogger().debug("Rule: nodeShapeNLabel: ",K[Z-2],K[Z-1],K[Z]),this.$={typeStr:K[Z-2]+K[Z],label:K[Z-1]};break;case 34:F.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",K[Z-3],K[Z-2]," #3:",K[Z-1],K[Z]),this.$={typeStr:K[Z-3]+K[Z],label:K[Z-2],directions:K[Z-1]};break;case 35:case 36:this.$={type:"classDef",id:K[Z-1].trim(),css:K[Z].trim()};break;case 37:this.$={type:"applyClass",id:K[Z-1].trim(),styleClass:K[Z].trim()};break;case 38:this.$={type:"applyStyles",id:K[Z-1].trim(),stylesStr:K[Z].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:r,11:3,13:4,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:a,29:o,31:l,39:h,43:d,46:p},{8:[1,20]},e(m,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:r,21:i,28:a,29:o,31:l,39:h,43:d,46:p}),e(y,[2,16],{14:22,15:E,16:w}),e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),e(y,[2,21]),e(y,[2,22]),e(T,[2,25],{27:[1,25]}),e(y,[2,26]),{19:26,26:12,31:l},{10:r,11:27,13:4,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:a,29:o,31:l,39:h,43:d,46:p},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(x,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(m,[2,13]),{26:35,31:l},{31:[2,14]},{17:[1,36]},e(T,[2,24]),{10:r,11:37,13:4,14:22,15:E,16:w,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:a,29:o,31:l,39:h,43:d,46:p},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(x,[2,30]),{18:[1,43]},{18:[1,44]},e(T,[2,23]),{18:[1,45]},{30:[1,46]},e(y,[2,28]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(y,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(y,[2,27]),e(x,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(x,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:I(function(B,D){if(D.recoverable)this.trace(B);else{var P=Error(B);throw P.hash=D,P}},"parseError"),parse:I(function(B){var D=this,P=[0],F=[],H=[null],K=[],Q=this.table,Z="",Y=0,j=0,te=0,X=2,W=1,J=K.slice.call(arguments,1),z=Object.create(this.lexer),ne={yy:{}};for(var ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ie))ne.yy[ie]=this.yy[ie];if(z.setInput(B,ne.yy),ne.yy.lexer=z,ne.yy.parser=this,typeof z.yylloc>"u")z.yylloc={};var le=z.yylloc;K.push(le);var se=z.options&&z.options.ranges;if(typeof ne.yy.parseError==="function")this.parseError=ne.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function he(rr){P.length=P.length-2*rr,H.length=H.length-rr,K.length=K.length-rr}I(he,"popStack");function ye(){var rr=F.pop()||z.lex()||W;if(typeof rr!=="number"){if(rr instanceof Array)F=rr,rr=F.pop();rr=D.symbols_[rr]||rr}return rr}I(ye,"lex");var xe,Ie,Ee,Ue,Me,Xe,je={},Qe,St,pt,Vt;while(!0){if(Ee=P[P.length-1],this.defaultActions[Ee])Ue=this.defaultActions[Ee];else{if(xe===null||typeof xe>"u")xe=ye();Ue=Q[Ee]&&Q[Ee][xe]}if(typeof Ue>"u"||!Ue.length||!Ue[0]){var Xt="";Vt=[];for(Qe in Q[Ee])if(this.terminals_[Qe]&&Qe>X)Vt.push("'"+this.terminals_[Qe]+"'");if(z.showPosition)Xt="Parse error on line "+(Y+1)+`: + ${hxi(r,i)} + `},"styles"),tKr={parser:axi,db:xoe,renderer:uxi,styles:fxi}});function cKr(e){switch(Ze.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return Ze.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function uKr(e){switch(Ze.debug("typeStr2Type",e),e){case"==":return"thick";default:return"normal"}}function hKr(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function dKr(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function fKr(e){return e.includes("==")?"thick":"normal"}function pKr(e){if(e.includes(".-"))return"dotted";return"solid"}function Ipt(e,r){if(e===0||!Number.isInteger(e))throw Error("Columns must be an integer !== 0.");if(r<0||!Number.isInteger(r))throw Error("Position must be a non-negative integer."+r);if(e<0)return{px:r,py:0};if(e===1)return{px:0,py:r};let i=r%e,a=Math.floor(r/e);return{px:i,py:a}}function i3e(e,r,i=0,a=0,o=8){if(Ze.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",i),!e?.size?.width)e.size={width:i,height:a,x:0,y:0};let l=0,h=0;if(e.children?.length>0){for(let x of e.children)i3e(x,r,0,0,o);let d=Fxi(e);l=d.width,h=d.height,Ze.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",l,h);for(let x of e.children)if(x.size)Ze.debug(`abc95 Setting size of children of ${e.id} id=${x.id} ${l} ${h} ${JSON.stringify(x.size)}`),x.size.width=l*(x.widthInColumns??1)+o*((x.widthInColumns??1)-1),x.size.height=h,x.size.x=0,x.size.y=0,Ze.debug(`abc95 updating size of ${e.id} children child:${x.id} maxWidth:${l} maxHeight:${h}`);for(let x of e.children)i3e(x,r,l,h,o);let p=e.columns??-1,m=0;for(let x of e.children)m+=x.widthInColumns??1;let y=e.children.length;if(p>0&&p0?Math.min(e.children.length,p):e.children.length;if(x>0){let k=(w-x*o-o)/x;Ze.debug("abc95 (growing to fit) width",e.id,w,e.size?.width,k);for(let A of e.children)if(A.size)A.size.width=k}}e.size={width:w,height:T,x:0,y:0}}Ze.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function Mpt(e,r,i=8){Ze.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);let a=e.columns??-1;if(Ze.debug("layoutBlocks columns abc95",e.id,"=>",a,e),e.children&&e.children.length>0){let o=e?.children[0]?.size?.width??0,l=e.children.length*o+(e.children.length-1)*i;Ze.debug("widthOfChildren 88",l,"posX");let h=new Map;{let v=0;for(let w of e.children){if(!w.size)continue;let{py:T}=Ipt(a,v),x=h.get(T)??0;if(w.size.height>x)h.set(T,w.size.height);let k=w?.widthInColumns??1;if(a>0)k=Math.min(k,a-v%a);v+=k}}let d=new Map;{let v=0,w=[...h.keys()].sort((T,x)=>T-x);for(let T of w)d.set(T,v),v+=(h.get(T)??0)+i}let p=0;Ze.debug("abc91 block?.size?.x",e.id,e?.size?.x);let m=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-i,y=0;for(let v of e.children){let w=e;if(!v.size)continue;let{width:T,height:x}=v.size,{px:k,py:A}=Ipt(a,p);if(A!=y)y=A,m=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-i,Ze.debug("New row in layout for block",e.id," and child ",v.id,y);if(Ze.debug(`abc89 layout blocks (child) id: ${v.id} Pos: ${p} (px, py) ${k},${A} (${w?.size?.x},${w?.size?.y}) parent: ${w.id} width: ${T}${i}`),w.size){let N=T/2;v.size.x=m+i+N,Ze.debug(`abc91 layout blocks (calc) px, pyid:${v.id} startingPos=X${m} new startingPosX${v.size.x} ${N} padding=${i} width=${T} halfWidth=${N} => x:${v.size.x} y:${v.size.y} ${v.widthInColumns} (width * (child?.w || 1)) / 2 ${T*(v?.widthInColumns??1)/2}`),m=v.size.x+N;let L=d.get(A)??0,B=h.get(A)??x;v.size.y=w.size.y-w.size.height/2+L+B/2+i,Ze.debug(`abc88 layout blocks (calc) px, pyid:${v.id}startingPosX${m}${i}${N}=>x:${v.size.x}y:${v.size.y}${v.widthInColumns}(width * (child?.w || 1)) / 2${T*(v?.widthInColumns??1)/2}`)}if(v.children)Mpt(v,r,i);let R=v?.widthInColumns??1;if(a>0)R=Math.min(R,a-p%a);p+=R,Ze.debug("abc88 columnsPos",v,p)}}Ze.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function Dpt(e,{minX:r,minY:i,maxX:a,maxY:o}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){let{x:l,y:h,width:d,height:p}=e.size;if(l-d/2a)a=l+d/2;if(h+p/2>o)o=h+p/2}if(e.children)for(let l of e.children)({minX:r,minY:i,maxX:a,maxY:o}=Dpt(l,{minX:r,minY:i,maxX:a,maxY:o}));return{minX:r,minY:i,maxX:a,maxY:o}}function gKr(e){let r=e.getBlock("root");if(!r)return;let i=Ar()?.block?.padding??8;i3e(r,e,0,0,i),Mpt(r,e,i),Ze.debug("getBlocks",JSON.stringify(r,null,2));let{minX:a,minY:o,maxX:l,maxY:h}=Dpt(r),d=h-o,p=l-a;return{x:a,y:o,width:p,height:d}}function Ppt(e,r,i=!1){let a=e,o="default";if((a?.classes?.length||0)>0)o=(a?.classes??[]).join(" ");o=o+" flowchart-label";let l=(a?.classes??[]).flatMap((x)=>r.getClasses().get(x)?.styles??[]),h=0,d="rect",p;switch(a.type){case"round":h=5,d="rect";break;case"composite":h=0,d="composite",p=0;break;case"square":d="rect";break;case"diamond":d="question";break;case"hexagon":d="hexagon";break;case"block_arrow":d="block_arrow";break;case"odd":d="rect_left_inv_arrow";break;case"lean_right":d="lean_right";break;case"lean_left":d="lean_left";break;case"trapezoid":d="trapezoid";break;case"inv_trapezoid":d="inv_trapezoid";break;case"rect_left_inv_arrow":d="rect_left_inv_arrow";break;case"circle":d="circle";break;case"ellipse":d="ellipse";break;case"stadium":d="stadium";break;case"subroutine":d="subroutine";break;case"cylinder":d="cylinder";break;case"group":d="rect";break;case"doublecircle":d="doublecircle";break;default:d="rect"}let m=HEe(a?.styles??[]),y=a.label,v=a.size??{width:0,height:0,x:0,y:0},w=r.getDiagramId();return{labelStyle:m.labelStyle,shape:d,label:y,labelText:y,rx:h,ry:h,class:o,cssClasses:o,cssStyles:a?.styles??[],cssCompiledStyles:l,style:m.style,id:a.id,domId:w?`${w}-${a.id}`:a.id,isGroup:!1,directions:a.directions,width:v.width||void 0,height:v.height||void 0,wrappingWidth:v.width||Number.POSITIVE_INFINITY,x:v.x,y:v.y,positioned:i,intersect:void 0,padding:p??ea()?.block?.padding??0,widthInColumns:a.widthInColumns??1,colorIndex:a.colorIndex,look:ea().look}}async function mKr(e,r,i){let a=Ppt(r,i,!1);if(r.type==="group")return;let o=ea(),l=await v3(e,a,{config:o}),h=l.node()?.getBBox()??{width:0,height:0},d=i.getBlock(a.id);d.size={width:h.width,height:h.height,x:0,y:0,node:l},i.setBlock(d),l.remove()}async function bKr(e,r,i){let a=Ppt(r,i,!0);if(i.getBlock(a.id).type!=="space"){let l=ea(),h=await v3(e,a,{config:l});if(a.colorIndex!==void 0)ty(h,a.colorIndex,l.theme,l.themeVariables?.borderColorArray);r.intersect=a?.intersect,_3(a)}}async function a3e(e,r,i,a){for(let o of r)if(await a(e,o,i),o.children)await a3e(e,o.children,i,a)}async function yKr(e,r,i){await a3e(e,r,i,mKr)}async function vKr(e,r,i){await a3e(e,r,i,bKr)}async function _Kr(e,r,i,a,o){let l=new Yh({multigraph:!0,compound:!0});l.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(let h of i)if(h.size)l.setNode(h.id,{width:h.size.width,height:h.size.height,intersect:h.intersect});for(let h of r)if(h.start&&h.end){let d=a.getBlock(h.start),p=a.getBlock(h.end);if(d?.size&&p?.size){let m=d.size,y=p.size,v=[{x:m.x,y:m.y},{x:m.x+(y.x-m.x)/2,y:m.y+(y.y-m.y)/2},{x:y.x,y:y.y}],w=o?`${o}-${h.id}`:h.id,T=h.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal",x=h.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid",k=`${T} ${x} flowchart-link LS-a1 LE-b1`;if(kL(e,{...h,id:w,arrowTypeEnd:h.arrowTypeEnd,arrowTypeStart:h.arrowTypeStart,points:v,classes:k},{},"block",l.node(h.start),l.node(h.end),o),h.label)await E3(e,{...h,label:h.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:h.arrowTypeEnd,arrowTypeStart:h.arrowTypeStart,points:v,classes:k}),UH({...h,x:v[1].x,y:v[1].y},{originalPath:v})}}}var Apt,pxi,YC,Opt,Rpt,nKr="color",iKr="fill",gxi="bgFill",sKr=",",n3e,Npt="",mxi,bxi,yxi,vxi,oKr=0,lKr,Lpt,Coe,_xi,aKr=0,Exi,wxi,Sxi,Txi,xxi,Cxi,kxi,Axi,Rxi,Ixi,Oxi,Nxi,Lxi,Mxi,Dxi,kpt,Pxi,Bxi,Fxi,$xi,Uxi,Gxi,EKr;var wKr=Re(()=>{uI();WE();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();GEe();x0();dl();rT();Apt=function(){var e=I(function(L,B,D,P){for(D=D||{},P=L.length;P--;D[L[P]]=B);return D},"o"),r=[1,15],i=[1,7],a=[1,13],o=[1,14],l=[1,19],h=[1,16],d=[1,17],p=[1,18],m=[8,30],y=[8,10,21,28,29,30,31,39,43,46],v=[1,23],w=[1,24],T=[8,10,15,16,21,28,29,30,31,39,43,46],x=[8,10,15,16,21,27,28,29,30,31,39,43,46],k=[1,49],A={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:I(function(B,D,P,F,H,W,X){var Q=W.length-1;switch(H){case 4:F.getLogger().debug("Rule: separator (NL) ");break;case 5:F.getLogger().debug("Rule: separator (Space) ");break;case 6:F.getLogger().debug("Rule: separator (EOF) ");break;case 7:F.getLogger().debug("Rule: hierarchy: ",W[Q-1]),F.setHierarchy(W[Q-1]);break;case 8:F.getLogger().debug("Stop NL ");break;case 9:F.getLogger().debug("Stop EOF ");break;case 10:F.getLogger().debug("Stop NL2 ");break;case 11:F.getLogger().debug("Stop EOF2 ");break;case 12:F.getLogger().debug("Rule: statement: ",W[Q]),typeof W[Q].length==="number"?this.$=W[Q]:this.$=[W[Q]];break;case 13:F.getLogger().debug("Rule: statement #2: ",W[Q-1]),this.$=[W[Q-1]].concat(W[Q]);break;case 14:F.getLogger().debug("Rule: link: ",W[Q],B),this.$={edgeTypeStr:W[Q],label:""};break;case 15:F.getLogger().debug("Rule: LABEL link: ",W[Q-3],W[Q-1],W[Q]),this.$={edgeTypeStr:W[Q],label:W[Q-1]};break;case 18:let Y=parseInt(W[Q]),K=F.generateId();this.$={id:K,type:"space",label:"",width:Y,children:[]};break;case 23:F.getLogger().debug("Rule: (nodeStatement link node) ",W[Q-2],W[Q-1],W[Q]," typestr: ",W[Q-1].edgeTypeStr);let J=F.edgeStrToEdgeData(W[Q-1].edgeTypeStr),Z=F.edgeStrToEdgeStartData(W[Q-1].edgeTypeStr),j=F.edgeStrToThickness(W[Q-1].edgeTypeStr),ee=F.edgeStrToPattern(W[Q-1].edgeTypeStr);this.$=[{id:W[Q-2].id,label:W[Q-2].label,type:W[Q-2].type,directions:W[Q-2].directions},{id:W[Q-2].id+"-"+W[Q].id,start:W[Q-2].id,end:W[Q].id,label:W[Q-1].label,type:"edge",thickness:j,pattern:ee,directions:W[Q].directions,arrowTypeEnd:J,arrowTypeStart:Z},{id:W[Q].id,label:W[Q].label,type:F.typeStr2Type(W[Q].typeStr),directions:W[Q].directions}];break;case 24:F.getLogger().debug("Rule: nodeStatement (abc88 node size) ",W[Q-1],W[Q]),this.$={id:W[Q-1].id,label:W[Q-1].label,type:F.typeStr2Type(W[Q-1].typeStr),directions:W[Q-1].directions,widthInColumns:parseInt(W[Q],10)};break;case 25:F.getLogger().debug("Rule: nodeStatement (node) ",W[Q]),this.$={id:W[Q].id,label:W[Q].label,type:F.typeStr2Type(W[Q].typeStr),directions:W[Q].directions,widthInColumns:1};break;case 26:F.getLogger().debug("APA123",this?this:"na"),F.getLogger().debug("COLUMNS: ",W[Q]),this.$={type:"column-setting",columns:W[Q]==="auto"?-1:parseInt(W[Q])};break;case 27:F.getLogger().debug("Rule: id-block statement : ",W[Q-2],W[Q-1]);let z=F.generateId();this.$={...W[Q-2],type:"composite",children:W[Q-1]};break;case 28:F.getLogger().debug("Rule: blockStatement : ",W[Q-2],W[Q-1],W[Q]);let ne=F.generateId();this.$={id:ne,type:"composite",label:"",children:W[Q-1]};break;case 29:F.getLogger().debug("Rule: node (NODE_ID separator): ",W[Q]),this.$={id:W[Q]};break;case 30:F.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",W[Q-1],W[Q]),this.$={id:W[Q-1],label:W[Q].label,typeStr:W[Q].typeStr,directions:W[Q].directions};break;case 31:F.getLogger().debug("Rule: dirList: ",W[Q]),this.$=[W[Q]];break;case 32:F.getLogger().debug("Rule: dirList: ",W[Q-1],W[Q]),this.$=[W[Q-1]].concat(W[Q]);break;case 33:F.getLogger().debug("Rule: nodeShapeNLabel: ",W[Q-2],W[Q-1],W[Q]),this.$={typeStr:W[Q-2]+W[Q],label:W[Q-1]};break;case 34:F.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",W[Q-3],W[Q-2]," #3:",W[Q-1],W[Q]),this.$={typeStr:W[Q-3]+W[Q],label:W[Q-2],directions:W[Q-1]};break;case 35:case 36:this.$={type:"classDef",id:W[Q-1].trim(),css:W[Q].trim()};break;case 37:this.$={type:"applyClass",id:W[Q-1].trim(),styleClass:W[Q].trim()};break;case 38:this.$={type:"applyStyles",id:W[Q-1].trim(),stylesStr:W[Q].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:r,11:3,13:4,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:a,29:o,31:l,39:h,43:d,46:p},{8:[1,20]},e(m,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:r,21:i,28:a,29:o,31:l,39:h,43:d,46:p}),e(y,[2,16],{14:22,15:v,16:w}),e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),e(y,[2,21]),e(y,[2,22]),e(T,[2,25],{27:[1,25]}),e(y,[2,26]),{19:26,26:12,31:l},{10:r,11:27,13:4,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:a,29:o,31:l,39:h,43:d,46:p},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(x,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(m,[2,13]),{26:35,31:l},{31:[2,14]},{17:[1,36]},e(T,[2,24]),{10:r,11:37,13:4,14:22,15:v,16:w,19:5,20:6,21:i,22:8,23:9,24:10,25:11,26:12,28:a,29:o,31:l,39:h,43:d,46:p},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(x,[2,30]),{18:[1,43]},{18:[1,44]},e(T,[2,23]),{18:[1,45]},{30:[1,46]},e(y,[2,28]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(y,[2,38]),{36:[1,47]},{33:48,34:k},{15:[1,50]},e(y,[2,27]),e(x,[2,33]),{38:[1,51]},{33:52,34:k,38:[2,31]},{31:[2,15]},e(x,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:I(function(B,D){if(D.recoverable)this.trace(B);else{var P=Error(B);throw P.hash=D,P}},"parseError"),parse:I(function(B){var D=this,P=[0],F=[],H=[null],W=[],X=this.table,Q="",Y=0,K=0,J=0,Z=2,j=1,ee=W.slice.call(arguments,1),z=Object.create(this.lexer),ne={yy:{}};for(var ie in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ie))ne.yy[ie]=this.yy[ie];if(z.setInput(B,ne.yy),ne.yy.lexer=z,ne.yy.parser=this,typeof z.yylloc>"u")z.yylloc={};var se=z.yylloc;W.push(se);var oe=z.options&&z.options.ranges;if(typeof ne.yy.parseError==="function")this.parseError=ne.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function he(rr){P.length=P.length-2*rr,H.length=H.length-rr,W.length=W.length-rr}I(he,"popStack");function ye(){var rr=F.pop()||z.lex()||j;if(typeof rr!=="number"){if(rr instanceof Array)F=rr,rr=F.pop();rr=D.symbols_[rr]||rr}return rr}I(ye,"lex");var Se,Ie,Ee,ze,Me,Xe,Ye={},Qe,xt,dt,zt;while(!0){if(Ee=P[P.length-1],this.defaultActions[Ee])ze=this.defaultActions[Ee];else{if(Se===null||typeof Se>"u")Se=ye();ze=X[Ee]&&X[Ee][Se]}if(typeof ze>"u"||!ze.length||!ze[0]){var Kt="";zt=[];for(Qe in X[Ee])if(this.terminals_[Qe]&&Qe>Z)zt.push("'"+this.terminals_[Qe]+"'");if(z.showPosition)Kt="Parse error on line "+(Y+1)+`: `+z.showPosition()+` -Expecting `+Vt.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'";else Xt="Parse error on line "+(Y+1)+": Unexpected "+(xe==W?"end of input":"'"+(this.terminals_[xe]||xe)+"'");this.parseError(Xt,{text:z.match,token:this.terminals_[xe]||xe,line:z.yylineno,loc:le,expected:Vt})}if(Ue[0]instanceof Array&&Ue.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+xe);switch(Ue[0]){case 1:if(P.push(xe),H.push(z.yytext),K.push(z.yylloc),P.push(Ue[1]),xe=null,!Ie){if(j=z.yyleng,Z=z.yytext,Y=z.yylineno,le=z.yylloc,te>0)te--}else xe=Ie,Ie=null;break;case 2:if(St=this.productions_[Ue[1]][1],je.$=H[H.length-St],je._$={first_line:K[K.length-(St||1)].first_line,last_line:K[K.length-1].last_line,first_column:K[K.length-(St||1)].first_column,last_column:K[K.length-1].last_column},se)je._$.range=[K[K.length-(St||1)].range[0],K[K.length-1].range[1]];if(Xe=this.performAction.apply(je,[Z,j,Y,ne.yy,Ue[1],H,K].concat(J)),typeof Xe<"u")return Xe;if(St)P=P.slice(0,-1*St*2),H=H.slice(0,-1*St),K=K.slice(0,-1*St);P.push(this.productions_[Ue[1]][0]),H.push(je.$),K.push(je._$),pt=Q[P[P.length-2]][P[P.length-1]],P.push(pt);break;case 3:return!0}}return!0},"parse")},R=function(){var L={EOF:1,parseError:I(function(D,P){if(this.yy.parser)this.yy.parser.parseError(D,P);else throw Error(D)},"parseError"),setInput:I(function(B,D){if(this.yy=D||this.yy||{},this._input=B,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var B=this._input[0];this.yytext+=B,this.yyleng++,this.offset++,this.match+=B,this.matched+=B;var D=B.match(/(?:\r\n?|\n).*/g);if(D)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),B},"input"),unput:I(function(B){var D=B.length,P=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var F=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1)this.yylineno-=P.length-1;var H=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===F.length?this.yylloc.first_column:0)+F[F.length-P.length].length-P[0].length:this.yylloc.first_column-D},this.options.ranges)this.yylloc.range=[H[0],H[0]+this.yyleng-D];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +Expecting `+zt.join(", ")+", got '"+(this.terminals_[Se]||Se)+"'";else Kt="Parse error on line "+(Y+1)+": Unexpected "+(Se==j?"end of input":"'"+(this.terminals_[Se]||Se)+"'");this.parseError(Kt,{text:z.match,token:this.terminals_[Se]||Se,line:z.yylineno,loc:se,expected:zt})}if(ze[0]instanceof Array&&ze.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ee+", token: "+Se);switch(ze[0]){case 1:if(P.push(Se),H.push(z.yytext),W.push(z.yylloc),P.push(ze[1]),Se=null,!Ie){if(K=z.yyleng,Q=z.yytext,Y=z.yylineno,se=z.yylloc,J>0)J--}else Se=Ie,Ie=null;break;case 2:if(xt=this.productions_[ze[1]][1],Ye.$=H[H.length-xt],Ye._$={first_line:W[W.length-(xt||1)].first_line,last_line:W[W.length-1].last_line,first_column:W[W.length-(xt||1)].first_column,last_column:W[W.length-1].last_column},oe)Ye._$.range=[W[W.length-(xt||1)].range[0],W[W.length-1].range[1]];if(Xe=this.performAction.apply(Ye,[Q,K,Y,ne.yy,ze[1],H,W].concat(ee)),typeof Xe<"u")return Xe;if(xt)P=P.slice(0,-1*xt*2),H=H.slice(0,-1*xt),W=W.slice(0,-1*xt);P.push(this.productions_[ze[1]][0]),H.push(Ye.$),W.push(Ye._$),dt=X[P[P.length-2]][P[P.length-1]],P.push(dt);break;case 3:return!0}}return!0},"parse")},R=function(){var L={EOF:1,parseError:I(function(D,P){if(this.yy.parser)this.yy.parser.parseError(D,P);else throw Error(D)},"parseError"),setInput:I(function(B,D){if(this.yy=D||this.yy||{},this._input=B,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var B=this._input[0];this.yytext+=B,this.yyleng++,this.offset++,this.match+=B,this.matched+=B;var D=B.match(/(?:\r\n?|\n).*/g);if(D)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),B},"input"),unput:I(function(B){var D=B.length,P=B.split(/(?:\r\n?|\n)/g);this._input=B+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-D),this.offset-=D;var F=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),P.length-1)this.yylineno-=P.length-1;var H=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===F.length?this.yylloc.first_column:0)+F[F.length-P.length].length-P[0].length:this.yylloc.first_column-D},this.options.ranges)this.yylloc.range=[H[0],H[0]+this.yyleng-D];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(B){this.unput(this.match.slice(B))},"less"),pastInput:I(function(){var B=this.matched.substr(0,this.matched.length-this.match.length);return(B.length>20?"...":"")+B.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var B=this.match;if(B.length<20)B+=this._input.substr(0,20-B.length);return(B.substr(0,20)+(B.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var B=this.pastInput(),D=Array(B.length+1).join("-");return B+this.upcomingInput()+` -`+D+"^"},"showPosition"),test_match:I(function(B,D){var P,F,H;if(this.options.backtrack_lexer){if(H={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)H.yylloc.range=this.yylloc.range.slice(0)}if(F=B[0].match(/(?:\r\n?|\n).*/g),F)this.yylineno+=F.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:F?F[F.length-1].length-F[F.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+B[0].length},this.yytext+=B[0],this.match+=B[0],this.matches=B,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(B[0].length),this.matched+=B[0],P=this.performAction.call(this,this.yy,this,D,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(P)return P;else if(this._backtrack){for(var K in H)this[K]=H[K];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var B,D,P,F;if(!this._more)this.yytext="",this.match="";var H=this._currentRules();for(var K=0;KD[0].length)){if(D=P,F=K,this.options.backtrack_lexer)if(B=this.test_match(P,H[K]),B!==!1)return B;else if(this._backtrack){D=!1;continue}else return!1;else if(!this.options.flex)break}if(D){if(B=this.test_match(D,H[F]),B!==!1)return B;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var D=this.next();if(D)return D;else return this.lex()},"lex"),begin:I(function(D){this.conditionStack.push(D)},"begin"),popState:I(function(){var D=this.conditionStack.length-1;if(D>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(D){if(D=this.conditionStack.length-1-Math.abs(D||0),D>=0)return this.conditionStack[D];else return"INITIAL"},"topState"),pushState:I(function(D){this.begin(D)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(D,P,F,H){var K=H;switch(F){case 0:return D.getLogger().debug("Found block-beta"),10;break;case 1:return D.getLogger().debug("Found id-block"),29;break;case 2:return D.getLogger().debug("Found block"),10;break;case 3:D.getLogger().debug(".",P.yytext);break;case 4:D.getLogger().debug("_",P.yytext);break;case 5:return 5;case 6:return P.yytext=-1,28;break;case 7:return P.yytext=P.yytext.replace(/columns\s+/,""),D.getLogger().debug("COLUMNS (LEX)",P.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:D.getLogger().debug("LEX: POPPING STR:",P.yytext),this.popState();break;case 13:return D.getLogger().debug("LEX: STR end:",P.yytext),"STR";break;case 14:return P.yytext=P.yytext.replace(/space\:/,""),D.getLogger().debug("SPACE NUM (LEX)",P.yytext),21;break;case 15:return P.yytext="1",D.getLogger().debug("COLUMNS (LEX)",P.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),D.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),D.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),D.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),D.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),D.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),D.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),D.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),D.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),D.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),D.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),D.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),D.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return D.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return D.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return D.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return D.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return D.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return D.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return D.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),D.getLogger().debug("LEX ARR START"),37;break;case 74:return D.getLogger().debug("Lex: NODE_ID",P.yytext),31;break;case 75:return D.getLogger().debug("Lex: EOF",P.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:D.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:D.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return D.getLogger().debug("LEX: NODE_DESCR:",P.yytext),"NODE_DESCR";break;case 83:D.getLogger().debug("LEX POPPING"),this.popState();break;case 84:D.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (right): dir:",P.yytext),"DIR";break;case 86:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (left):",P.yytext),"DIR";break;case 87:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (x):",P.yytext),"DIR";break;case 88:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (y):",P.yytext),"DIR";break;case 89:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (up):",P.yytext),"DIR";break;case 90:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (down):",P.yytext),"DIR";break;case 91:return P.yytext="]>",D.getLogger().debug("Lex (ARROW_DIR end):",P.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return D.getLogger().debug("Lex: LINK","#"+P.yytext+"#"),15;break;case 93:return D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 94:return D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 95:return D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 96:return D.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 97:return D.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 98:return D.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return D.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),D.getLogger().debug("Lex: LINK","#"+P.yytext+"#"),15;break;case 102:return this.popState(),D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 103:return this.popState(),D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 104:return D.getLogger().debug("Lex: COLON",P.yytext),P.yytext=P.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return L}();A.lexer=R;function N(){this.yy={}}return I(N,"Parser"),N.prototype=A,A.Parser=N,new N}();xpt.parser=xpt;lxi=xpt,HC=new Map,Apt=[],Cpt=new Map,e3e=new Map,uxi=I((e)=>ai.sanitizeText(e,Ar()),"sanitizeText"),hxi=I(function(e,r=""){let i=e3e.get(e);if(!i)i={id:e,styles:[],textStyles:[]},e3e.set(e,i);if(r!==void 0&&r!==null)r.split(tKr).forEach((a)=>{let o=a.replace(/([^;]*);/,"$1").trim();if(RegExp(Zjr).exec(a)){let h=o.replace(Jjr,cxi).replace(Zjr,Jjr);i.textStyles.push(h)}i.styles.push(o)})},"addStyleClass"),dxi=I(function(e,r=""){let i=HC.get(e);if(r!==void 0&&r!==null)i.styles=r.split(tKr)},"addStyle2Node"),fxi=I(function(e,r){e.split(",").forEach(function(i){let a=HC.get(i);if(a===void 0){let o=i.trim();a={id:o,type:"na",children:[]},HC.set(o,a)}if(!a.classes)a.classes=[];a.classes.push(r)})},"setCssClass"),nKr=I((e,r)=>{let i=e.flat(),a=[],l=i.find((h)=>h?.type==="column-setting")?.columns??-1;for(let h of i){if(typeof l==="number"&&l>0&&h.type!=="column-setting"&&typeof h.widthInColumns==="number"&&h.widthInColumns>l)Ze.warn(`Block ${h.id} width ${h.widthInColumns} exceeds configured column width ${l}`);if(h.label)h.label=uxi(h.label);if(h.type==="classDef"){hxi(h.id,h.css);continue}if(h.type==="applyClass"){fxi(h.id,h?.styleClass??"");continue}if(h.type==="applyStyles"){if(h?.stylesStr)dxi(h.id,h?.stylesStr);continue}if(h.type==="column-setting")r.columns=h.columns??-1;else if(h.type==="edge"){let d=(Cpt.get(h.id)??0)+1;Cpt.set(h.id,d),h.id=d+"-"+h.id,Apt.push(h)}else{if(!h.label)if(h.type==="composite")h.label="";else h.label=h.id;let d=HC.get(h.id);if(d===void 0){if(h.type==="composite")h.colorIndex=rKr++;HC.set(h.id,h)}else{if(h.type!=="na")d.type=h.type;if(h.label!==h.id)d.label=h.label}if(h.children)nKr(h.children,h);if(h.type==="space"){let p=h.width??1;for(let m=0;m{Ze.debug("Clear called"),qs(),Soe={id:"root",type:"composite",children:[],columns:-1},HC=new Map([["root",Soe]]),Ipt=[],e3e=new Map,Apt=[],Cpt=new Map,Rpt="",rKr=0},"clear");I(iKr,"typeStr2Type");I(aKr,"edgeTypeStr2Type");I(sKr,"edgeStrToEdgeData");I(oKr,"edgeStrToEdgeStartData");I(lKr,"edgeStrToThickness");I(cKr,"edgeStrToPattern");gxi=I(()=>(eKr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+eKr),"generateId"),mxi=I((e)=>{Soe.children=e,nKr(e,Soe),Ipt=Soe.children},"setHierarchy"),bxi=I((e)=>{let r=HC.get(e);if(!r)return-1;if(r.columns)return r.columns;if(!r.children)return-1;return r.children.length},"getColumns"),yxi=I(()=>[...HC.values()],"getBlocksFlat"),vxi=I(()=>Ipt||[],"getBlocks"),_xi=I(()=>Apt,"getEdges"),Exi=I((e)=>HC.get(e),"getBlock"),wxi=I((e)=>{HC.set(e.id,e)},"setBlock"),Sxi=I((e)=>{Rpt=e},"setDiagramId"),Txi=I(()=>Rpt,"getDiagramId"),xxi=I(()=>Ze,"getLogger"),Cxi=I(function(){return e3e},"getClasses"),kxi={getConfig:I(()=>ea().block,"getConfig"),typeStr2Type:iKr,edgeTypeStr2Type:aKr,edgeStrToEdgeData:sKr,edgeStrToEdgeStartData:oKr,edgeStrToThickness:lKr,edgeStrToPattern:cKr,getLogger:xxi,getBlocksFlat:yxi,getBlocks:vxi,getEdges:_xi,setHierarchy:mxi,getBlock:Exi,setBlock:wxi,getColumns:bxi,getClasses:Cxi,clear:pxi,generateId:gxi,setDiagramId:Sxi,getDiagramId:Txi},Axi=kxi,Rxi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;dD[0].length)){if(D=P,F=W,this.options.backtrack_lexer)if(B=this.test_match(P,H[W]),B!==!1)return B;else if(this._backtrack){D=!1;continue}else return!1;else if(!this.options.flex)break}if(D){if(B=this.test_match(D,H[F]),B!==!1)return B;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var D=this.next();if(D)return D;else return this.lex()},"lex"),begin:I(function(D){this.conditionStack.push(D)},"begin"),popState:I(function(){var D=this.conditionStack.length-1;if(D>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(D){if(D=this.conditionStack.length-1-Math.abs(D||0),D>=0)return this.conditionStack[D];else return"INITIAL"},"topState"),pushState:I(function(D){this.begin(D)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:I(function(D,P,F,H){var W=H;switch(F){case 0:return D.getLogger().debug("Found block-beta"),10;break;case 1:return D.getLogger().debug("Found id-block"),29;break;case 2:return D.getLogger().debug("Found block"),10;break;case 3:D.getLogger().debug(".",P.yytext);break;case 4:D.getLogger().debug("_",P.yytext);break;case 5:return 5;case 6:return P.yytext=-1,28;break;case 7:return P.yytext=P.yytext.replace(/columns\s+/,""),D.getLogger().debug("COLUMNS (LEX)",P.yytext),28;break;case 8:this.pushState("md_string");break;case 9:return"MD_STR";case 10:this.popState();break;case 11:this.pushState("string");break;case 12:D.getLogger().debug("LEX: POPPING STR:",P.yytext),this.popState();break;case 13:return D.getLogger().debug("LEX: STR end:",P.yytext),"STR";break;case 14:return P.yytext=P.yytext.replace(/space\:/,""),D.getLogger().debug("SPACE NUM (LEX)",P.yytext),21;break;case 15:return P.yytext="1",D.getLogger().debug("COLUMNS (LEX)",P.yytext),21;break;case 16:return 42;case 17:return"LINKSTYLE";case 18:return"INTERPOLATE";case 19:return this.pushState("CLASSDEF"),39;break;case 20:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";break;case 21:return this.popState(),this.pushState("CLASSDEFID"),40;break;case 22:return this.popState(),41;break;case 23:return this.pushState("CLASS"),43;break;case 24:return this.popState(),this.pushState("CLASS_STYLE"),44;break;case 25:return this.popState(),45;break;case 26:return this.pushState("STYLE_STMNT"),46;break;case 27:return this.popState(),this.pushState("STYLE_DEFINITION"),47;break;case 28:return this.popState(),48;break;case 29:return this.pushState("acc_title"),"acc_title";break;case 30:return this.popState(),"acc_title_value";break;case 31:return this.pushState("acc_descr"),"acc_descr";break;case 32:return this.popState(),"acc_descr_value";break;case 33:this.pushState("acc_descr_multiline");break;case 34:this.popState();break;case 35:return"acc_descr_multiline_value";case 36:return 30;case 37:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 38:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 39:return this.popState(),D.getLogger().debug("Lex: ))"),"NODE_DEND";break;case 40:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 41:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 42:return this.popState(),D.getLogger().debug("Lex: (-"),"NODE_DEND";break;case 43:return this.popState(),D.getLogger().debug("Lex: -)"),"NODE_DEND";break;case 44:return this.popState(),D.getLogger().debug("Lex: (("),"NODE_DEND";break;case 45:return this.popState(),D.getLogger().debug("Lex: ]]"),"NODE_DEND";break;case 46:return this.popState(),D.getLogger().debug("Lex: ("),"NODE_DEND";break;case 47:return this.popState(),D.getLogger().debug("Lex: ])"),"NODE_DEND";break;case 48:return this.popState(),D.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 49:return this.popState(),D.getLogger().debug("Lex: /]"),"NODE_DEND";break;case 50:return this.popState(),D.getLogger().debug("Lex: )]"),"NODE_DEND";break;case 51:return this.popState(),D.getLogger().debug("Lex: )"),"NODE_DEND";break;case 52:return this.popState(),D.getLogger().debug("Lex: ]>"),"NODE_DEND";break;case 53:return this.popState(),D.getLogger().debug("Lex: ]"),"NODE_DEND";break;case 54:return D.getLogger().debug("Lexa: -)"),this.pushState("NODE"),35;break;case 55:return D.getLogger().debug("Lexa: (-"),this.pushState("NODE"),35;break;case 56:return D.getLogger().debug("Lexa: ))"),this.pushState("NODE"),35;break;case 57:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 58:return D.getLogger().debug("Lex: ((("),this.pushState("NODE"),35;break;case 59:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 60:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 61:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 62:return D.getLogger().debug("Lexc: >"),this.pushState("NODE"),35;break;case 63:return D.getLogger().debug("Lexa: (["),this.pushState("NODE"),35;break;case 64:return D.getLogger().debug("Lexa: )"),this.pushState("NODE"),35;break;case 65:return this.pushState("NODE"),35;break;case 66:return this.pushState("NODE"),35;break;case 67:return this.pushState("NODE"),35;break;case 68:return this.pushState("NODE"),35;break;case 69:return this.pushState("NODE"),35;break;case 70:return this.pushState("NODE"),35;break;case 71:return this.pushState("NODE"),35;break;case 72:return D.getLogger().debug("Lexa: ["),this.pushState("NODE"),35;break;case 73:return this.pushState("BLOCK_ARROW"),D.getLogger().debug("LEX ARR START"),37;break;case 74:return D.getLogger().debug("Lex: NODE_ID",P.yytext),31;break;case 75:return D.getLogger().debug("Lex: EOF",P.yytext),8;break;case 76:this.pushState("md_string");break;case 77:this.pushState("md_string");break;case 78:return"NODE_DESCR";case 79:this.popState();break;case 80:D.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 81:D.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 82:return D.getLogger().debug("LEX: NODE_DESCR:",P.yytext),"NODE_DESCR";break;case 83:D.getLogger().debug("LEX POPPING"),this.popState();break;case 84:D.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 85:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (right): dir:",P.yytext),"DIR";break;case 86:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (left):",P.yytext),"DIR";break;case 87:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (x):",P.yytext),"DIR";break;case 88:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (y):",P.yytext),"DIR";break;case 89:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (up):",P.yytext),"DIR";break;case 90:return P.yytext=P.yytext.replace(/^,\s*/,""),D.getLogger().debug("Lex (down):",P.yytext),"DIR";break;case 91:return P.yytext="]>",D.getLogger().debug("Lex (ARROW_DIR end):",P.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";break;case 92:return D.getLogger().debug("Lex: LINK","#"+P.yytext+"#"),15;break;case 93:return D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 94:return D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 95:return D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 96:return D.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 97:return D.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 98:return D.getLogger().debug("Lex: START_LINK",P.yytext),this.pushState("LLABEL"),16;break;case 99:this.pushState("md_string");break;case 100:return D.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";break;case 101:return this.popState(),D.getLogger().debug("Lex: LINK","#"+P.yytext+"#"),15;break;case 102:return this.popState(),D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 103:return this.popState(),D.getLogger().debug("Lex: LINK",P.yytext),15;break;case 104:return D.getLogger().debug("Lex: COLON",P.yytext),P.yytext=P.yytext.slice(1),27;break}},"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block:)/,/^(?:block\b)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[28],inclusive:!1},STYLE_STMNT:{rules:[27],inclusive:!1},CLASSDEFID:{rules:[22],inclusive:!1},CLASSDEF:{rules:[20,21],inclusive:!1},CLASS_STYLE:{rules:[25],inclusive:!1},CLASS:{rules:[24],inclusive:!1},LLABEL:{rules:[99,100,101,102,103],inclusive:!1},ARROW_DIR:{rules:[85,86,87,88,89,90,91],inclusive:!1},BLOCK_ARROW:{rules:[76,81,84],inclusive:!1},NODE:{rules:[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,80],inclusive:!1},md_string:{rules:[9,10,78,79],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[12,13,82,83],inclusive:!1},acc_descr_multiline:{rules:[34,35],inclusive:!1},acc_descr:{rules:[32],inclusive:!1},acc_title:{rules:[30],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,11,14,15,16,17,18,19,23,26,29,31,33,36,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,92,93,94,95,96,97,98,104],inclusive:!0}}};return L}();A.lexer=R;function N(){this.yy={}}return I(N,"Parser"),N.prototype=A,A.Parser=N,new N}();Apt.parser=Apt;pxi=Apt,YC=new Map,Opt=[],Rpt=new Map,n3e=new Map,mxi=I((e)=>ai.sanitizeText(e,Ar()),"sanitizeText"),bxi=I(function(e,r=""){let i=n3e.get(e);if(!i)i={id:e,styles:[],textStyles:[]},n3e.set(e,i);if(r!==void 0&&r!==null)r.split(sKr).forEach((a)=>{let o=a.replace(/([^;]*);/,"$1").trim();if(RegExp(nKr).exec(a)){let h=o.replace(iKr,gxi).replace(nKr,iKr);i.textStyles.push(h)}i.styles.push(o)})},"addStyleClass"),yxi=I(function(e,r=""){let i=YC.get(e);if(r!==void 0&&r!==null)i.styles=r.split(sKr)},"addStyle2Node"),vxi=I(function(e,r){e.split(",").forEach(function(i){let a=YC.get(i);if(a===void 0){let o=i.trim();a={id:o,type:"na",children:[]},YC.set(o,a)}if(!a.classes)a.classes=[];a.classes.push(r)})},"setCssClass"),lKr=I((e,r)=>{let i=e.flat(),a=[],l=i.find((h)=>h?.type==="column-setting")?.columns??-1;for(let h of i){if(typeof l==="number"&&l>0&&h.type!=="column-setting"&&typeof h.widthInColumns==="number"&&h.widthInColumns>l)Ze.warn(`Block ${h.id} width ${h.widthInColumns} exceeds configured column width ${l}`);if(h.label)h.label=mxi(h.label);if(h.type==="classDef"){bxi(h.id,h.css);continue}if(h.type==="applyClass"){vxi(h.id,h?.styleClass??"");continue}if(h.type==="applyStyles"){if(h?.stylesStr)yxi(h.id,h?.stylesStr);continue}if(h.type==="column-setting")r.columns=h.columns??-1;else if(h.type==="edge"){let d=(Rpt.get(h.id)??0)+1;Rpt.set(h.id,d),h.id=d+"-"+h.id,Opt.push(h)}else{if(!h.label)if(h.type==="composite")h.label="";else h.label=h.id;let d=YC.get(h.id);if(d===void 0){if(h.type==="composite")h.colorIndex=oKr++;YC.set(h.id,h)}else{if(h.type!=="na")d.type=h.type;if(h.label!==h.id)d.label=h.label}if(h.children)lKr(h.children,h);if(h.type==="space"){let p=h.width??1;for(let m=0;m{Ze.debug("Clear called"),qs(),Coe={id:"root",type:"composite",children:[],columns:-1},YC=new Map([["root",Coe]]),Lpt=[],n3e=new Map,Opt=[],Rpt=new Map,Npt="",oKr=0},"clear");I(cKr,"typeStr2Type");I(uKr,"edgeTypeStr2Type");I(hKr,"edgeStrToEdgeData");I(dKr,"edgeStrToEdgeStartData");I(fKr,"edgeStrToThickness");I(pKr,"edgeStrToPattern");Exi=I(()=>(aKr++,"id-"+Math.random().toString(36).substr(2,12)+"-"+aKr),"generateId"),wxi=I((e)=>{Coe.children=e,lKr(e,Coe),Lpt=Coe.children},"setHierarchy"),Sxi=I((e)=>{let r=YC.get(e);if(!r)return-1;if(r.columns)return r.columns;if(!r.children)return-1;return r.children.length},"getColumns"),Txi=I(()=>[...YC.values()],"getBlocksFlat"),xxi=I(()=>Lpt||[],"getBlocks"),Cxi=I(()=>Opt,"getEdges"),kxi=I((e)=>YC.get(e),"getBlock"),Axi=I((e)=>{YC.set(e.id,e)},"setBlock"),Rxi=I((e)=>{Npt=e},"setDiagramId"),Ixi=I(()=>Npt,"getDiagramId"),Oxi=I(()=>Ze,"getLogger"),Nxi=I(function(){return n3e},"getClasses"),Lxi={getConfig:I(()=>ea().block,"getConfig"),typeStr2Type:cKr,edgeTypeStr2Type:uKr,edgeStrToEdgeData:hKr,edgeStrToEdgeStartData:dKr,edgeStrToThickness:fKr,edgeStrToPattern:pKr,getLogger:Oxi,getBlocksFlat:Txi,getBlocks:xxi,getEdges:Cxi,setHierarchy:wxi,getBlock:kxi,setBlock:Axi,getColumns:Sxi,getClasses:Nxi,clear:_xi,generateId:Exi,setDiagramId:Rxi,getDiagramId:Ixi},Mxi=Lxi,Dxi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=hg(e.look),l=rm(i),h="";for(let d=0;d{let i=gR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),Ixi=I((e)=>`${Rxi(e)} +`}return h},"genColor"),kpt=I((e,r)=>{let i=yR,a=i(e,"r"),o=i(e,"g"),l=i(e,"b");return ep(a,o,l,r)},"fade"),Pxi=I((e)=>`${Dxi(e)} .label { font-family: ${e.fontFamily}; color: ${e.nodeTextColor||e.textColor}; @@ -3481,9 +3481,9 @@ Expecting `+Vt.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'";else Xt="Parse } .node .cluster { - // fill: ${Tpt(e.mainBkg,0.5)}; - fill: ${Tpt(e.clusterBkg,0.5)}; - stroke: ${Tpt(e.clusterBorder,0.2)}; + // fill: ${kpt(e.mainBkg,0.5)}; + fill: ${kpt(e.clusterBkg,0.5)}; + stroke: ${kpt(e.clusterBorder,0.2)}; box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px; stroke-width: 1px; } @@ -3518,11 +3518,11 @@ Expecting `+Vt.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'";else Xt="Parse font-size: 18px; fill: ${e.textColor}; } - ${dT()} -`,"getStyles"),Oxi=Ixi;I(kpt,"calculateBlockPosition");Nxi=I((e)=>{let r=0,i=0;for(let a of e.children){let{width:o,height:l,x:h,y:d}=a.size??{width:0,height:0,x:0,y:0};if(Ze.debug("getMaxChildSize abc95 child:",a.id,"width:",o,"height:",l,"x:",h,"y:",d,a.type),a.type==="space")continue;let p=o/(a.widthInColumns??1);if(p>r)r=p;if(l>i)i=l}return{width:r,height:i}},"getMaxChildSize");I(t3e,"setBlockSizes");I(Opt,"layoutBlocks");I(Npt,"findBounds");I(uKr,"layout");I(Lpt,"getNodeFromBlock");I(hKr,"calculateBlockSize");I(dKr,"insertBlockPositioned");I(r3e,"performOperations");I(fKr,"calculateBlockSizes");I(pKr,"insertBlocks");I(gKr,"insertEdges");Lxi=I(function(e,r){return r.db.getClasses()},"getClasses"),Mxi=I(async function(e,r,i,a){let{securityLevel:o,block:l}=ea(),h=a.db;h.setDiagramId(r);let d;if(o==="sandbox")d=xn("#i"+r);let p=o==="sandbox"?xn(d.nodes()[0].contentDocument.body):xn("body"),m=o==="sandbox"?p.select(`[id="${r}"]`):xn(`[id="${r}"]`);oEe(m,ea()),FH(m,["point","circle","cross"],a.type,r);let E=h.getBlocks(),w=h.getBlocksFlat(),T=h.getEdges(),x=m.insert("g").attr("class","block");await fKr(x,E,h);let k=uKr(h);await pKr(x,E,h),await gKr(x,T,w,h,r);let A=x.node()?.getBBox(),R=A&&Number.isFinite(A.width)&&Number.isFinite(A.height)?A:k;if(R){let N=Math.max(1,Math.round(0.125*(R.width/R.height))),L=R.height+N+10,B=R.width+10,{useMaxWidth:D}=l;Bl(m,L,B,!!D),Ze.debug("Here Bounds",k,R),m.attr("viewBox",`${R.x-5} ${R.y-5} ${R.width+10} ${R.height+10}`)}},"draw"),Dxi={draw:Mxi,getClasses:Lxi},mKr={parser:lxi,db:Axi,renderer:Dxi,styles:Oxi}});function TKr(e){return e.some((r)=>wKr.test(r))}function xKr(e){for(let r of e){let i=SKr.exec(r);if(i?.index&&i.index>0)return i.index}return 4}function CKr(e,r){return e.replace(/\bline\s+(\d+)\b/gi,(i,a)=>{let o=parseInt(a,10),l=r.get(o);return l?`line ${l}`:i})}function kKr(e){let r=e.split(` -`),i=new Map,a=-1;for(let[p,m]of r.entries())if(m.trim()==="treeView-beta"){a=p;break}if(a===-1)return{text:e,lineMap:i};let o=[];for(let p=a+1;p0){let o=e.substring(a).toLowerCase(),l=r?.extensionIcons;return l?.[o]??l?.[o.slice(1)]}return}function Dpt(e,r){if(e.includes(":"))return e;if(e in Toe.icons||!r)return`${Toe.prefix}:${e}`;return`${r}:${e}`}function Bpt(e,r){if(e.icon==="none")return;if(e.icon)return Dpt(e.icon,r.defaultIconPack);if(!r.showIcons)return;if(e.nodeType==="file"){let i=AKr(e.name,r);if(i==="none")return;if(i)return Dpt(i,r.defaultIconPack)}return`${Toe.prefix}:${e.nodeType==="directory"?"folder":"file"}`}var wKr,SKr,Pxi,yKr,vKr,_Kr,Bxi=" ",nA,Fxi,$xi,Uxi,Gxi,zxi,Vxi,Hxi,Mpt,qxi,Yxi,Toe,Ppt=14,Wxi=4,jxi=16,Kxi,Xxi,EKr,Qxi,Zxi,Jxi,eCi,tCi,rCi,nCi,RKr;var IKr=Re(()=>{kxe();Tv();A0();Pp();Ql();eo();Zs();Ja();rb();wKr=/[─━│┃└┗├┣]/,SKr=/[└┗├┣]/,Pxi=/[─━]/,yKr=/^[\s│┃]+$/,vKr=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,_Kr=/^\s*%%/;I(TKr,"isBoxDrawingFormat");I(xKr,"inferSegmentWidth");I(CKr,"remapErrorLines");I(kKr,"preprocessBoxDrawing");nA=new Wq(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),Fxi=I(()=>{nA.reset(),qs()},"clear"),$xi=I(()=>nA.records.stack[0],"getRoot"),Uxi=I(()=>nA.records.cnt,"getCount"),Gxi=Fs.treeView,zxi=I(()=>bc(Gxi,ea().treeView),"getConfig"),Vxi=I((e,r,i,a,o,l)=>{while(e<=nA.records.stack[nA.records.stack.length-1].level)nA.records.stack.pop();let h={id:nA.records.cnt++,level:e,name:r,nodeType:i,icon:o,cssClass:a,description:l,children:[]};nA.records.stack[nA.records.stack.length-1].children.push(h),nA.records.stack.push(h)},"addNode"),Hxi={clear:Fxi,addNode:Vxi,getRoot:$xi,getCount:Uxi,getConfig:zxi,getAccTitle:oo,getAccDescription:lo,getDiagramTitle:fo,setAccDescription:Js,setAccTitle:Ys,setDiagramTitle:_o},Mpt=Hxi,qxi=I((e)=>{Sh(e,Mpt);for(let r of e.nodes){let i=typeof r.indent==="number"?r.indent:0,a=r.name,o=a.endsWith("/");if(o)a=a.slice(0,-1);let l=o?"directory":"file",h=r.classAnnotation||void 0,d=r.iconAnnotation,p=d!==void 0?d||"none":void 0,m=r.descAnnotation||void 0,y=m?ho(m,ea()):void 0;Mpt.addNode(i,a,l,h,p,y)}},"populate"),Yxi={parse:I(async(e)=>{let{text:r,lineMap:i}=kKr(e);try{let a=await lp("treeView",r);Ze.debug(a),qxi(a)}catch(a){if(i.size>0&&a instanceof Error)a.message=CKr(a.message,i);throw a}},"parse")},Toe={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};I(AKr,"detectIcon");I(Dpt,"qualifyIcon");I(Bpt,"getNodeIcon");wH([{name:Toe.prefix,icons:Toe}]);Kxi=I(async(e,r)=>{let i=[],a=I((l)=>{let h=Bpt(l,r);if(h)i.push({icon:h,node:l});l.children.forEach(a)},"collect");a(e);let o=await Promise.all(i.map(async({icon:l,node:h})=>({id:h.id,svg:await Y_(l,{height:Ppt,width:Ppt})})));return new Map(o.map(({id:l,svg:h})=>[l,h]))},"resolveNodeIcons"),Xxi=I((e,r,i,a,o,l)=>{let h=a.append("g"),d="treeView-node-label";if(i.nodeType==="directory")d+=" treeView-node-dir";if(i.cssClass)d+=` ${i.cssClass}`;let p=Ppt+Wxi,m=Bpt(i,o),y=m!==void 0;if(m)h.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${e+o.paddingX}, ${r+o.paddingY})`).html(l.get(i.id)??"");let E=h.append("text").text(i.name).attr("dominant-baseline","middle").attr("class",d),{height:w,width:T}=E.node().getBBox(),x=w+o.paddingY*2,k=e+o.paddingX+(y?p:0);E.attr("x",k),E.attr("y",r+x/2);let A=k+T,R=T+o.paddingX*2+(y?p:0);if(i.BBox={x:e,y:r,width:R,height:x},i.cssClass?.split(/\s+/).includes("highlight"))h.insert("rect",":first-child").attr("x",e).attr("y",r+1).attr("width",0).attr("height",x-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:i,nodeGroup:h,labelRightEdge:A,centerY:r+x/2}},"positionLabel"),EKr=I((e,r,i,a,o,l)=>e.append("line").attr("x1",r).attr("y1",i).attr("x2",a).attr("y2",o).attr("stroke-width",l).attr("class","treeView-node-line"),"positionLine"),Qxi=I((e,r,i,a)=>{let o=0,l=0,h=[],d=I((y,E,w,T)=>{let x=T*(w.rowIndent+w.paddingX),k=Xxi(x,o,E,y,w,a);h.push(k);let{height:A,width:R}=E.BBox;EKr(y,x-w.rowIndent,o+A/2,x,o+A/2,w.lineThickness),l=Math.max(l,x+R),o+=A},"drawNode"),p=I((y,E=0)=>{d(e,y,i,E),y.children.forEach((k)=>{p(k,E+1)});let{x:w,y:T,height:x}=y.BBox;if(y.children.length){let{y:k,height:A}=y.children[y.children.length-1].BBox;EKr(e,w+i.paddingX,T+x,w+i.paddingX,k+A/2+i.lineThickness/2,i.lineThickness)}},"processNode");p(r);let m=h.filter((y)=>y.node.description);if(m.length>0){let E=Math.max(...h.map((w)=>w.labelRightEdge))+jxi;for(let w of m){let x=w.nodeGroup.append("text").text(w.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",E).attr("y",w.centerY).node().getBBox();l=Math.max(l,E+x.width+i.paddingX)}}for(let y of h)if(y.node.cssClass?.split(/\s+/).includes("highlight")){let E=y.nodeGroup.select(".treeView-highlight-bg");if(!E.empty()){let w=l-y.node.BBox.x+8;E.attr("width",w),l=Math.max(l,y.node.BBox.x+w+2)}}return{totalHeight:o,totalWidth:l}},"drawTree"),Zxi=I(async(e,r,i,a)=>{Ze.debug(`Rendering treeView diagram -`+e);let o=a.db,l=o.getRoot(),h=o.getConfig(),d=Ou(r),p=d.append("g");p.attr("class","tree-view");let m=await Kxi(l,h),{totalHeight:y,totalWidth:E}=Qxi(p,l,h,m);d.attr("viewBox",`-${h.lineThickness/2} 0 ${E} ${y}`),Bl(d,y,E,h.useMaxWidth)},"draw"),Jxi={draw:Zxi},eCi=Jxi,tCi={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},rCi=I(({treeView:e})=>{let{labelFontSize:r,labelColor:i,lineColor:a,iconColor:o,descriptionColor:l,highlightBg:h,highlightStroke:d}=bc(tCi,e);return` + ${fT()} +`,"getStyles"),Bxi=Pxi;I(Ipt,"calculateBlockPosition");Fxi=I((e)=>{let r=0,i=0;for(let a of e.children){let{width:o,height:l,x:h,y:d}=a.size??{width:0,height:0,x:0,y:0};if(Ze.debug("getMaxChildSize abc95 child:",a.id,"width:",o,"height:",l,"x:",h,"y:",d,a.type),a.type==="space")continue;let p=o/(a.widthInColumns??1);if(p>r)r=p;if(l>i)i=l}return{width:r,height:i}},"getMaxChildSize");I(i3e,"setBlockSizes");I(Mpt,"layoutBlocks");I(Dpt,"findBounds");I(gKr,"layout");I(Ppt,"getNodeFromBlock");I(mKr,"calculateBlockSize");I(bKr,"insertBlockPositioned");I(a3e,"performOperations");I(yKr,"calculateBlockSizes");I(vKr,"insertBlocks");I(_Kr,"insertEdges");$xi=I(function(e,r){return r.db.getClasses()},"getClasses"),Uxi=I(async function(e,r,i,a){let{securityLevel:o,block:l}=ea(),h=a.db;h.setDiagramId(r);let d;if(o==="sandbox")d=xn("#i"+r);let p=o==="sandbox"?xn(d.nodes()[0].contentDocument.body):xn("body"),m=o==="sandbox"?p.select(`[id="${r}"]`):xn(`[id="${r}"]`);uEe(m,ea()),GH(m,["point","circle","cross"],a.type,r);let v=h.getBlocks(),w=h.getBlocksFlat(),T=h.getEdges(),x=m.insert("g").attr("class","block");await yKr(x,v,h);let k=gKr(h);await vKr(x,v,h),await _Kr(x,T,w,h,r);let A=x.node()?.getBBox(),R=A&&Number.isFinite(A.width)&&Number.isFinite(A.height)?A:k;if(R){let N=Math.max(1,Math.round(0.125*(R.width/R.height))),L=R.height+N+10,B=R.width+10,{useMaxWidth:D}=l;Bl(m,L,B,!!D),Ze.debug("Here Bounds",k,R),m.attr("viewBox",`${R.x-5} ${R.y-5} ${R.width+10} ${R.height+10}`)}},"draw"),Gxi={draw:Uxi,getClasses:$xi},EKr={parser:pxi,db:Mxi,renderer:Gxi,styles:Bxi}});function RKr(e){return e.some((r)=>kKr.test(r))}function IKr(e){for(let r of e){let i=AKr.exec(r);if(i?.index&&i.index>0)return i.index}return 4}function OKr(e,r){return e.replace(/\bline\s+(\d+)\b/gi,(i,a)=>{let o=parseInt(a,10),l=r.get(o);return l?`line ${l}`:i})}function NKr(e){let r=e.split(` +`),i=new Map,a=-1;for(let[p,m]of r.entries())if(m.trim()==="treeView-beta"){a=p;break}if(a===-1)return{text:e,lineMap:i};let o=[];for(let p=a+1;p0){let o=e.substring(a).toLowerCase(),l=r?.extensionIcons;return l?.[o]??l?.[o.slice(1)]}return}function Fpt(e,r){if(e.includes(":"))return e;if(e in koe.icons||!r)return`${koe.prefix}:${e}`;return`${r}:${e}`}function Upt(e,r){if(e.icon==="none")return;if(e.icon)return Fpt(e.icon,r.defaultIconPack);if(!r.showIcons)return;if(e.nodeType==="file"){let i=LKr(e.name,r);if(i==="none")return;if(i)return Fpt(i,r.defaultIconPack)}return`${koe.prefix}:${e.nodeType==="directory"?"folder":"file"}`}var kKr,AKr,zxi,SKr,TKr,xKr,Vxi=" ",iA,Hxi,qxi,Yxi,Wxi,jxi,Kxi,Xxi,Bpt,Qxi,Zxi,koe,$pt=14,Jxi=4,eCi=16,tCi,rCi,CKr,nCi,iCi,aCi,sCi,oCi,lCi,cCi,MKr;var DKr=Re(()=>{Ixe();Tv();A0();Pp();Ql();eo();Zs();Ja();rb();kKr=/[─━│┃└┗├┣]/,AKr=/[└┗├┣]/,zxi=/[─━]/,SKr=/^[\s│┃]+$/,TKr=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,xKr=/^\s*%%/;I(RKr,"isBoxDrawingFormat");I(IKr,"inferSegmentWidth");I(OKr,"remapErrorLines");I(NKr,"preprocessBoxDrawing");iA=new Xq(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),Hxi=I(()=>{iA.reset(),qs()},"clear"),qxi=I(()=>iA.records.stack[0],"getRoot"),Yxi=I(()=>iA.records.cnt,"getCount"),Wxi=Fs.treeView,jxi=I(()=>bc(Wxi,ea().treeView),"getConfig"),Kxi=I((e,r,i,a,o,l)=>{while(e<=iA.records.stack[iA.records.stack.length-1].level)iA.records.stack.pop();let h={id:iA.records.cnt++,level:e,name:r,nodeType:i,icon:o,cssClass:a,description:l,children:[]};iA.records.stack[iA.records.stack.length-1].children.push(h),iA.records.stack.push(h)},"addNode"),Xxi={clear:Hxi,addNode:Kxi,getRoot:qxi,getCount:Yxi,getConfig:jxi,getAccTitle:oo,getAccDescription:lo,getDiagramTitle:fo,setAccDescription:Js,setAccTitle:Ys,setDiagramTitle:_o},Bpt=Xxi,Qxi=I((e)=>{Sh(e,Bpt);for(let r of e.nodes){let i=typeof r.indent==="number"?r.indent:0,a=r.name,o=a.endsWith("/");if(o)a=a.slice(0,-1);let l=o?"directory":"file",h=r.classAnnotation||void 0,d=r.iconAnnotation,p=d!==void 0?d||"none":void 0,m=r.descAnnotation||void 0,y=m?ho(m,ea()):void 0;Bpt.addNode(i,a,l,h,p,y)}},"populate"),Zxi={parse:I(async(e)=>{let{text:r,lineMap:i}=NKr(e);try{let a=await lp("treeView",r);Ze.debug(a),Qxi(a)}catch(a){if(i.size>0&&a instanceof Error)a.message=OKr(a.message,i);throw a}},"parse")},koe={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:''},file:{body:''}}};I(LKr,"detectIcon");I(Fpt,"qualifyIcon");I(Upt,"getNodeIcon");xH([{name:koe.prefix,icons:koe}]);tCi=I(async(e,r)=>{let i=[],a=I((l)=>{let h=Upt(l,r);if(h)i.push({icon:h,node:l});l.children.forEach(a)},"collect");a(e);let o=await Promise.all(i.map(async({icon:l,node:h})=>({id:h.id,svg:await Y_(l,{height:$pt,width:$pt})})));return new Map(o.map(({id:l,svg:h})=>[l,h]))},"resolveNodeIcons"),rCi=I((e,r,i,a,o,l)=>{let h=a.append("g"),d="treeView-node-label";if(i.nodeType==="directory")d+=" treeView-node-dir";if(i.cssClass)d+=` ${i.cssClass}`;let p=$pt+Jxi,m=Upt(i,o),y=m!==void 0;if(m)h.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${e+o.paddingX}, ${r+o.paddingY})`).html(l.get(i.id)??"");let v=h.append("text").text(i.name).attr("dominant-baseline","middle").attr("class",d),{height:w,width:T}=v.node().getBBox(),x=w+o.paddingY*2,k=e+o.paddingX+(y?p:0);v.attr("x",k),v.attr("y",r+x/2);let A=k+T,R=T+o.paddingX*2+(y?p:0);if(i.BBox={x:e,y:r,width:R,height:x},i.cssClass?.split(/\s+/).includes("highlight"))h.insert("rect",":first-child").attr("x",e).attr("y",r+1).attr("width",0).attr("height",x-2).attr("rx",3).attr("class","treeView-highlight-bg");return{node:i,nodeGroup:h,labelRightEdge:A,centerY:r+x/2}},"positionLabel"),CKr=I((e,r,i,a,o,l)=>e.append("line").attr("x1",r).attr("y1",i).attr("x2",a).attr("y2",o).attr("stroke-width",l).attr("class","treeView-node-line"),"positionLine"),nCi=I((e,r,i,a)=>{let o=0,l=0,h=[],d=I((y,v,w,T)=>{let x=T*(w.rowIndent+w.paddingX),k=rCi(x,o,v,y,w,a);h.push(k);let{height:A,width:R}=v.BBox;CKr(y,x-w.rowIndent,o+A/2,x,o+A/2,w.lineThickness),l=Math.max(l,x+R),o+=A},"drawNode"),p=I((y,v=0)=>{d(e,y,i,v),y.children.forEach((k)=>{p(k,v+1)});let{x:w,y:T,height:x}=y.BBox;if(y.children.length){let{y:k,height:A}=y.children[y.children.length-1].BBox;CKr(e,w+i.paddingX,T+x,w+i.paddingX,k+A/2+i.lineThickness/2,i.lineThickness)}},"processNode");p(r);let m=h.filter((y)=>y.node.description);if(m.length>0){let v=Math.max(...h.map((w)=>w.labelRightEdge))+eCi;for(let w of m){let x=w.nodeGroup.append("text").text(w.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",v).attr("y",w.centerY).node().getBBox();l=Math.max(l,v+x.width+i.paddingX)}}for(let y of h)if(y.node.cssClass?.split(/\s+/).includes("highlight")){let v=y.nodeGroup.select(".treeView-highlight-bg");if(!v.empty()){let w=l-y.node.BBox.x+8;v.attr("width",w),l=Math.max(l,y.node.BBox.x+w+2)}}return{totalHeight:o,totalWidth:l}},"drawTree"),iCi=I(async(e,r,i,a)=>{Ze.debug(`Rendering treeView diagram +`+e);let o=a.db,l=o.getRoot(),h=o.getConfig(),d=Ou(r),p=d.append("g");p.attr("class","tree-view");let m=await tCi(l,h),{totalHeight:y,totalWidth:v}=nCi(p,l,h,m);d.attr("viewBox",`-${h.lineThickness/2} 0 ${v} ${y}`),Bl(d,y,v,h.useMaxWidth)},"draw"),aCi={draw:iCi},sCi=aCi,oCi={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},lCi=I(({treeView:e})=>{let{labelFontSize:r,labelColor:i,lineColor:a,iconColor:o,descriptionColor:l,highlightBg:h,highlightStroke:d}=bc(oCi,e);return` .treeView-node-label { font-size: ${r}; fill: ${i}; @@ -3548,7 +3548,7 @@ Expecting `+Vt.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'";else Xt="Parse stroke: ${d}; stroke-width: 1; } - `},"styles"),nCi=rCi,RKr={db:Mpt,renderer:eCi,parser:Yxi,styles:nCi}});var $pt=Cr(function(xoe,Fpt){(function(r,i){if(typeof xoe==="object"&&typeof Fpt==="object")Fpt.exports=i();else if(typeof define==="function"&&define.amd)define([],i);else if(typeof xoe==="object")xoe.layoutBase=i();else r.layoutBase=i()})(xoe,function(){return function(e){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=r,i.i=function(a){return a},i.d=function(a,o,l){if(!i.o(a,o))Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:l})},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=28)}([function(e,r,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1000,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,e.exports=a},function(e,r,i){var a=i(2),o=i(8),l=i(9);function h(p,m,y){a.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=p,this.target=m}h.prototype=Object.create(a.prototype);for(var d in a)h[d]=a[d];h.prototype.getSource=function(){return this.source},h.prototype.getTarget=function(){return this.target},h.prototype.isInterGraph=function(){return this.isInterGraph},h.prototype.getLength=function(){return this.length},h.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},h.prototype.getBendpoints=function(){return this.bendpoints},h.prototype.getLca=function(){return this.lca},h.prototype.getSourceInLca=function(){return this.sourceInLca},h.prototype.getTargetInLca=function(){return this.targetInLca},h.prototype.getOtherEnd=function(p){if(this.source===p)return this.target;else if(this.target===p)return this.source;else throw"Node is not incident with this edge"},h.prototype.getOtherEndInGraph=function(p,m){var y=this.getOtherEnd(p),E=m.getGraphManager().getRoot();while(!0){if(y.getOwner()==m)return y;if(y.getOwner()==E)break;y=y.getOwner().getParent()}return null},h.prototype.updateLength=function(){var p=[,,,,];if(this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),p),!this.isOverlapingSourceAndTarget){if(this.lengthX=p[0]-p[2],this.lengthY=p[1]-p[3],Math.abs(this.lengthX)<1)this.lengthX=l.sign(this.lengthX);if(Math.abs(this.lengthY)<1)this.lengthY=l.sign(this.lengthY);this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)}},h.prototype.updateLengthSimple=function(){if(this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1)this.lengthX=l.sign(this.lengthX);if(Math.abs(this.lengthY)<1)this.lengthY=l.sign(this.lengthY);this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=h},function(e,r,i){function a(o){this.vGraphObject=o}e.exports=a},function(e,r,i){var a=i(2),o=i(10),l=i(13),h=i(0),d=i(16),p=i(5);function m(E,w,T,x){if(T==null&&x==null)x=w;if(a.call(this,x),E.graphManager!=null)E=E.graphManager;if(this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=x,this.edges=[],this.graphManager=E,T!=null&&w!=null)this.rect=new l(w.x,w.y,T.width,T.height);else this.rect=new l}m.prototype=Object.create(a.prototype);for(var y in a)m[y]=a[y];m.prototype.getEdges=function(){return this.edges},m.prototype.getChild=function(){return this.child},m.prototype.getOwner=function(){return this.owner},m.prototype.getWidth=function(){return this.rect.width},m.prototype.setWidth=function(E){this.rect.width=E},m.prototype.getHeight=function(){return this.rect.height},m.prototype.setHeight=function(E){this.rect.height=E},m.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},m.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},m.prototype.getCenter=function(){return new p(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},m.prototype.getLocation=function(){return new p(this.rect.x,this.rect.y)},m.prototype.getRect=function(){return this.rect},m.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},m.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},m.prototype.setRect=function(E,w){this.rect.x=E.x,this.rect.y=E.y,this.rect.width=w.width,this.rect.height=w.height},m.prototype.setCenter=function(E,w){this.rect.x=E-this.rect.width/2,this.rect.y=w-this.rect.height/2},m.prototype.setLocation=function(E,w){this.rect.x=E,this.rect.y=w},m.prototype.moveBy=function(E,w){this.rect.x+=E,this.rect.y+=w},m.prototype.getEdgeListToNode=function(E){var w=[],T,x=this;return x.edges.forEach(function(k){if(k.target==E){if(k.source!=x)throw"Incorrect edge source!";w.push(k)}}),w},m.prototype.getEdgesBetween=function(E){var w=[],T,x=this;return x.edges.forEach(function(k){if(!(k.source==x||k.target==x))throw"Incorrect edge source and/or target";if(k.target==E||k.source==E)w.push(k)}),w},m.prototype.getNeighborsList=function(){var E=new Set,w=this;return w.edges.forEach(function(T){if(T.source==w)E.add(T.target);else{if(T.target!=w)throw"Incorrect incidency!";E.add(T.source)}}),E},m.prototype.withChildren=function(){var E=new Set,w,T;if(E.add(this),this.child!=null){var x=this.child.getNodes();for(var k=0;kw)this.rect.x-=(this.labelWidth-w)/2,this.setWidth(this.labelWidth);else if(this.labelPosHorizontal=="right")this.setWidth(w+this.labelWidth)}if(this.labelHeight){if(this.labelPosVertical=="top")this.rect.y-=this.labelHeight,this.setHeight(T+this.labelHeight);else if(this.labelPosVertical=="center"&&this.labelHeight>T)this.rect.y-=(this.labelHeight-T)/2,this.setHeight(this.labelHeight);else if(this.labelPosVertical=="bottom")this.setHeight(T+this.labelHeight)}}}},m.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},m.prototype.transform=function(E){var w=this.rect.x;if(w>h.WORLD_BOUNDARY)w=h.WORLD_BOUNDARY;else if(w<-h.WORLD_BOUNDARY)w=-h.WORLD_BOUNDARY;var T=this.rect.y;if(T>h.WORLD_BOUNDARY)T=h.WORLD_BOUNDARY;else if(T<-h.WORLD_BOUNDARY)T=-h.WORLD_BOUNDARY;var x=new p(w,T),k=E.inverseTransformPoint(x);this.setLocation(k.x,k.y)},m.prototype.getLeft=function(){return this.rect.x},m.prototype.getRight=function(){return this.rect.x+this.rect.width},m.prototype.getTop=function(){return this.rect.y},m.prototype.getBottom=function(){return this.rect.y+this.rect.height},m.prototype.getParent=function(){if(this.owner==null)return null;return this.owner.getParent()},e.exports=m},function(e,r,i){var a=i(0);function o(){}for(var l in a)o[l]=a[l];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=0.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=0.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=0.3,o.COOLING_ADAPTATION_FACTOR=0.33,o.ADAPTATION_LOWER_NODE_LIMIT=1000,o.ADAPTATION_UPPER_NODE_LIMIT=5000,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=0.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=o},function(e,r,i){function a(o,l){if(o==null&&l==null)this.x=0,this.y=0;else this.x=o,this.y=l}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},e.exports=a},function(e,r,i){var a=i(2),o=i(10),l=i(0),h=i(7),d=i(3),p=i(1),m=i(13),y=i(12),E=i(11);function w(x,k,A){if(a.call(this,A),this.estimatedSize=o.MIN_VALUE,this.margin=l.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=x,k!=null&&k instanceof h)this.graphManager=k;else if(k!=null&&k instanceof Layout)this.graphManager=k.graphManager}w.prototype=Object.create(a.prototype);for(var T in a)w[T]=a[T];w.prototype.getNodes=function(){return this.nodes},w.prototype.getEdges=function(){return this.edges},w.prototype.getGraphManager=function(){return this.graphManager},w.prototype.getParent=function(){return this.parent},w.prototype.getLeft=function(){return this.left},w.prototype.getRight=function(){return this.right},w.prototype.getTop=function(){return this.top},w.prototype.getBottom=function(){return this.bottom},w.prototype.isConnected=function(){return this.isConnected},w.prototype.add=function(x,k,A){if(k==null&&A==null){var R=x;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(R)>-1)throw"Node already in graph!";return R.owner=this,this.getNodes().push(R),R}else{var N=x;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(A)>-1))throw"Source or target not in graph!";if(!(k.owner==A.owner&&k.owner==this))throw"Both owners must be this graph!";if(k.owner!=A.owner)return null;if(N.source=k,N.target=A,N.isInterGraph=!1,this.getEdges().push(N),k.edges.push(N),A!=k)A.edges.push(N);return N}},w.prototype.remove=function(x){var k=x;if(x instanceof d){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";var A=k.edges.slice(),R,N=A.length;for(var L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";if(R.source.edges.splice(D,1),R.target!=R.source)R.target.edges.splice(P,1);var B=R.source.owner.getEdges().indexOf(R);if(B==-1)throw"Not in owner's edge list!";R.source.owner.getEdges().splice(B,1)}},w.prototype.updateLeftTop=function(){var{MAX_VALUE:x,MAX_VALUE:k}=o,A,R,N,L=this.getNodes(),B=L.length;for(var D=0;DA)x=A;if(k>R)k=R}if(x==o.MAX_VALUE)return null;if(L[0].getParent().paddingLeft!=null)N=L[0].getParent().paddingLeft;else N=this.margin;return this.left=k-N,this.top=x-N,new y(this.left,this.top)},w.prototype.updateBounds=function(x){var k=o.MAX_VALUE,A=-o.MAX_VALUE,R=o.MAX_VALUE,N=-o.MAX_VALUE,L,B,D,P,F,H=this.nodes,K=H.length;for(var Q=0;QL)k=L;if(AD)R=D;if(NL)k=L;if(AD)R=D;if(N=this.nodes.length){var K=0;if(A.forEach(function(Q){if(Q.owner==x)K++}),K==this.nodes.length)this.isConnected=!0}},e.exports=w},function(e,r,i){var a,o=i(1);function l(h){a=i(6),this.layout=h,this.graphs=[],this.edges=[]}l.prototype.addRoot=function(){var h=this.layout.newGraph(),d=this.layout.newNode(null),p=this.add(h,d);return this.setRootGraph(p),this.rootGraph},l.prototype.add=function(h,d,p,m,y){if(p==null&&m==null&&y==null){if(h==null)throw"Graph is null!";if(d==null)throw"Parent node is null!";if(this.graphs.indexOf(h)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(h),h.parent!=null)throw"Already has a parent!";if(d.child!=null)throw"Already has a child!";return h.parent=d,d.child=h,h}else{y=p,m=d,p=h;var E=m.getOwner(),w=y.getOwner();if(!(E!=null&&E.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(w!=null&&w.getGraphManager()==this))throw"Target not in this graph mgr!";if(E==w)return p.isInterGraph=!1,E.add(p,m,y);else{if(p.isInterGraph=!0,p.source=m,p.target=y,this.edges.indexOf(p)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(p),!(p.source!=null&&p.target!=null))throw"Edge source and/or target is null!";if(!(p.source.edges.indexOf(p)==-1&&p.target.edges.indexOf(p)==-1))throw"Edge already in source and/or target incidency list!";return p.source.edges.push(p),p.target.edges.push(p),p}}},l.prototype.remove=function(h){if(h instanceof a){var d=h;if(d.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(d==this.rootGraph||d.parent!=null&&d.parent.graphManager==this))throw"Invalid parent node!";var p=[];p=p.concat(d.getEdges());var m,y=p.length;for(var E=0;E=h.getRight())d[0]+=Math.min(h.getX()-l.getX(),l.getRight()-h.getRight());else if(h.getX()<=l.getX()&&h.getRight()>=l.getRight())d[0]+=Math.min(l.getX()-h.getX(),h.getRight()-l.getRight());if(l.getY()<=h.getY()&&l.getBottom()>=h.getBottom())d[1]+=Math.min(h.getY()-l.getY(),l.getBottom()-h.getBottom());else if(h.getY()<=l.getY()&&h.getBottom()>=l.getBottom())d[1]+=Math.min(l.getY()-h.getY(),h.getBottom()-l.getBottom());var y=Math.abs((h.getCenterY()-l.getCenterY())/(h.getCenterX()-l.getCenterX()));if(h.getCenterY()===l.getCenterY()&&h.getCenterX()===l.getCenterX())y=1;var E=y*d[0],w=d[1]/y;if(d[0]E)return d[0]=p,d[1]=T,d[2]=y,d[3]=H,!1;else if(my)return d[0]=w,d[1]=m,d[2]=P,d[3]=E,!1;else if(py)d[0]=k,d[1]=A,Y=!0;else d[0]=x,d[1]=T,Y=!0;else if(te===W)if(p>y)d[0]=w,d[1]=T,Y=!0;else d[0]=R,d[1]=A,Y=!0;if(-X===W)if(y>p)d[2]=F,d[3]=H,j=!0;else d[2]=P,d[3]=D,j=!0;else if(X===W)if(y>p)d[2]=B,d[3]=D,j=!0;else d[2]=K,d[3]=H,j=!0;if(Y&&j)return!1;if(p>y)if(m>E)J=this.getCardinalDirection(te,W,4),z=this.getCardinalDirection(X,W,2);else J=this.getCardinalDirection(-te,W,3),z=this.getCardinalDirection(-X,W,1);else if(m>E)J=this.getCardinalDirection(-te,W,1),z=this.getCardinalDirection(-X,W,3);else J=this.getCardinalDirection(te,W,2),z=this.getCardinalDirection(X,W,4);if(!Y)switch(J){case 1:ie=T,ne=p+-L/W,d[0]=ne,d[1]=ie;break;case 2:ne=R,ie=m+N*W,d[0]=ne,d[1]=ie;break;case 3:ie=A,ne=p+L/W,d[0]=ne,d[1]=ie;break;case 4:ne=k,ie=m+-N*W,d[0]=ne,d[1]=ie;break}if(!j)switch(z){case 1:se=D,le=y+-Z/W,d[2]=le,d[3]=se;break;case 2:le=K,se=E+Q*W,d[2]=le,d[3]=se;break;case 3:se=H,le=y+Z/W,d[2]=le,d[3]=se;break;case 4:le=F,se=E+-Q*W,d[2]=le,d[3]=se;break}}return!1},o.getCardinalDirection=function(l,h,d){if(l>h)return d;else return 1+d%4},o.getIntersection=function(l,h,d,p){if(p==null)return this.getIntersection2(l,h,d);var{x:m,y}=l,{x:E,y:w}=h,{x:T,y:x}=d,{x:k,y:A}=p,R=void 0,N=void 0,L=void 0,B=void 0,D=void 0,P=void 0,F=void 0,H=void 0,K=void 0;if(L=w-y,D=m-E,F=E*y-m*w,B=A-x,P=T-k,H=k*x-T*A,K=L*P-B*D,K===0)return null;return R=(D*H-P*F)/K,N=(B*F-L*H)/K,new a(R,N)},o.angleOfVector=function(l,h,d,p){var m=void 0;if(l!==d){if(m=Math.atan((p-h)/(d-l)),d=0){var A=(-T+Math.sqrt(T*T-4*w*x))/(2*w),R=(-T-Math.sqrt(T*T-4*w*x))/(2*w),N=null;if(A>=0&&A<=1)return[A];if(R>=0&&R<=1)return[R];return N}else return null},o.HALF_PI=0.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,e.exports=o},function(e,r,i){function a(){}a.sign=function(o){if(o>0)return 1;else if(o<0)return-1;else return 0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},e.exports=a},function(e,r,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,e.exports=a},function(e,r,i){var a=function(){function m(y,E){for(var w=0;w"u"?"undefined":a(l);return l==null||h!="object"&&h!="function"},e.exports=o},function(e,r,i){function a(T){if(Array.isArray(T)){for(var x=0,k=Array(T.length);x0&&x){L.push(D[0]);while(L.length>0&&x){var P=L[0];L.splice(0,1),N.add(P);var F=P.getEdges();for(var R=0;R-1)D.splice(Z,1)}N=new Set,B=new Map}}return T},w.prototype.createDummyNodesForBendpoints=function(T){var x=[],k=T.source,A=this.graphManager.calcLowestCommonAncestor(T.source,T.target);for(var R=0;R0){var A=this.edgeToDummyNodes.get(k);for(var R=0;R=0)x.splice(H,1);var K=B.getNeighborsList();K.forEach(function(Y){if(k.indexOf(Y)<0){var j=A.get(Y),te=j-1;if(te==1)P.push(Y);A.set(Y,te)}})}if(k=k.concat(P),x.length==1||x.length==2)R=!0,N=x[0]}return N},w.prototype.setGraphManager=function(T){this.graphManager=T},e.exports=w},function(e,r,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},e.exports=a},function(e,r,i){var a=i(5);function o(l,h){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(l){this.lworldOrgX=l},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(l){this.lworldOrgY=l},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(l){this.lworldExtX=l},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(l){this.lworldExtY=l},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(l){this.ldeviceOrgX=l},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(l){this.ldeviceOrgY=l},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(l){this.ldeviceExtX=l},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(l){this.ldeviceExtY=l},o.prototype.transformX=function(l){var h=0,d=this.lworldExtX;if(d!=0)h=this.ldeviceOrgX+(l-this.lworldOrgX)*this.ldeviceExtX/d;return h},o.prototype.transformY=function(l){var h=0,d=this.lworldExtY;if(d!=0)h=this.ldeviceOrgY+(l-this.lworldOrgY)*this.ldeviceExtY/d;return h},o.prototype.inverseTransformX=function(l){var h=0,d=this.ldeviceExtX;if(d!=0)h=this.lworldOrgX+(l-this.ldeviceOrgX)*this.lworldExtX/d;return h},o.prototype.inverseTransformY=function(l){var h=0,d=this.ldeviceExtY;if(d!=0)h=this.lworldOrgY+(l-this.ldeviceOrgY)*this.lworldExtY/d;return h},o.prototype.inverseTransformPoint=function(l){var h=new a(this.inverseTransformX(l.x),this.inverseTransformY(l.y));return h},e.exports=o},function(e,r,i){function a(E){if(Array.isArray(E)){for(var w=0,T=Array(E.length);wl.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(this.coolingFactor*l.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(E-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-l.COOLING_ADAPTATION_FACTOR));this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT_INCREMENTAL}else{if(E>l.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(l.COOLING_ADAPTATION_FACTOR,1-(E-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*(1-l.COOLING_ADAPTATION_FACTOR));else this.coolingFactor=1;this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT}this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*l.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},m.prototype.calcSpringForces=function(){var E=this.getAllEdges(),w;for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:!0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T,x,k,A,R=this.getAllNodes(),N;if(this.useFRGridVariant){if(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&E)this.updateGrid();N=new Set;for(T=0;TL||N>L)E.gravitationForceX=-this.gravityConstant*k,E.gravitationForceY=-this.gravityConstant*A}else if(L=w.getEstimatedSize()*this.compoundGravityRangeFactor,R>L||N>L)E.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,E.gravitationForceY=-this.gravityConstant*A*this.compoundGravityConstant},m.prototype.isConverged=function(){var E,w=!1;if(this.totalIterations>this.maxIterations/3)w=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2;return E=this.totalDisplacement=R.length||L>=R[0].length))for(var B=0;Bm}}]),d}();e.exports=h},function(e,r,i){function a(){}a.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var l=Math.min(this.m,this.n);this.s=function(si){var hn=[];while(si-- >0)hn.push(0);return hn}(Math.min(this.m+1,this.n)),this.U=function(si){var hn=function Ii(Vn){if(Vn.length==0)return 0;else{var Ei=[];for(var yn=0;yn0)hn.push(0);return hn}(this.n),d=function(si){var hn=[];while(si-- >0)hn.push(0);return hn}(this.m),p=!0,m=!0,y=Math.min(this.m-1,this.n),E=Math.max(0,Math.min(this.n-2,this.m));for(var w=0;w=0;W--)if(this.s[W]!==0){for(var J=W+1;J=0;ye--){if(function(si,hn){return si&&hn}(ye0){var pt=void 0,Vt=void 0;for(pt=j-2;pt>=-1;pt--){if(pt===-1)break;if(Math.abs(h[pt])<=St+Qe*(Math.abs(this.s[pt])+Math.abs(this.s[pt+1]))){h[pt]=0;break}}if(pt===j-2)Vt=4;else{var Xt=void 0;for(Xt=j-1;Xt>=pt;Xt--){if(Xt===pt)break;var rr=(Xt!==j?Math.abs(h[Xt]):0)+(Xt!==pt+1?Math.abs(h[Xt-1]):0);if(Math.abs(this.s[Xt])<=St+Qe*rr){this.s[Xt]=0;break}}if(Xt===pt)Vt=3;else if(Xt===j-1)Vt=1;else Vt=2,pt=Xt}switch(pt++,Vt){case 1:{var We=h[j-2];h[j-2]=0;for(var Nt=j-2;Nt>=pt;Nt--){var ct=a.hypot(this.s[Nt],We),bt=this.s[Nt]/ct,Pe=We/ct;if(this.s[Nt]=ct,Nt!==pt)We=-Pe*h[Nt-1],h[Nt-1]=bt*h[Nt-1];if(m)for(var Ge=0;Ge=this.s[pt+1])break;var Et=this.s[pt];if(this.s[pt]=this.s[pt+1],this.s[pt+1]=Et,m&&ptMath.abs(l))h=l/o,h=Math.abs(o)*Math.sqrt(1+h*h);else if(l!=0)h=o/l,h=Math.abs(l)*Math.sqrt(1+h*h);else h=0;return h},e.exports=a},function(e,r,i){var a=function(){function h(d,p){for(var m=0;m2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,h),this.sequence1=d,this.sequence2=p,this.match_score=m,this.mismatch_penalty=y,this.gap_penalty=E,this.iMax=d.length+1,this.jMax=p.length+1,this.grid=Array(this.iMax);for(var w=0;w=0;d--){var p=this.listeners[d];if(p.event===l&&p.callback===h)this.listeners.splice(d,1)}},o.emit=function(l,h){for(var d=0;d{var r={45:(l,h,d)=>{var p={};p.layoutBase=d(551),p.CoSEConstants=d(806),p.CoSEEdge=d(767),p.CoSEGraph=d(880),p.CoSEGraphManager=d(578),p.CoSELayout=d(765),p.CoSENode=d(991),p.ConstraintHandler=d(902),l.exports=p},806:(l,h,d)=>{var p=d(551).FDLayoutConstants;function m(){}for(var y in p)m[y]=p[y];m.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,m.DEFAULT_RADIAL_SEPARATION=p.DEFAULT_EDGE_LENGTH,m.DEFAULT_COMPONENT_SEPERATION=60,m.TILE=!0,m.TILING_PADDING_VERTICAL=10,m.TILING_PADDING_HORIZONTAL=10,m.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,m.ENFORCE_CONSTRAINTS=!0,m.APPLY_LAYOUT=!0,m.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,m.TREE_REDUCTION_ON_INCREMENTAL=!0,m.PURE_INCREMENTAL=m.DEFAULT_INCREMENTAL,l.exports=m},767:(l,h,d)=>{var p=d(551).FDLayoutEdge;function m(E,w,T){p.call(this,E,w,T)}m.prototype=Object.create(p.prototype);for(var y in p)m[y]=p[y];l.exports=m},880:(l,h,d)=>{var p=d(551).LGraph;function m(E,w,T){p.call(this,E,w,T)}m.prototype=Object.create(p.prototype);for(var y in p)m[y]=p[y];l.exports=m},578:(l,h,d)=>{var p=d(551).LGraphManager;function m(E){p.call(this,E)}m.prototype=Object.create(p.prototype);for(var y in p)m[y]=p[y];l.exports=m},765:(l,h,d)=>{var p=d(551).FDLayout,m=d(578),y=d(880),E=d(991),w=d(767),T=d(806),x=d(902),k=d(551).FDLayoutConstants,A=d(551).LayoutConstants,R=d(551).Point,N=d(551).PointD,L=d(551).DimensionD,B=d(551).Layout,D=d(551).Integer,P=d(551).IGeometry,F=d(551).LGraph,H=d(551).Transform,K=d(551).LinkedList;function Q(){p.call(this),this.toBeTiled={},this.constraints={}}Q.prototype=Object.create(p.prototype);for(var Z in p)Q[Z]=p[Z];Q.prototype.newGraphManager=function(){var Y=new m(this);return this.graphManager=Y,Y},Q.prototype.newGraph=function(Y){return new y(null,this.graphManager,Y)},Q.prototype.newNode=function(Y){return new E(this.graphManager,Y)},Q.prototype.newEdge=function(Y){return new w(null,null,Y)},Q.prototype.initParameters=function(){if(p.prototype.initParameters.call(this,arguments),!this.isSubLayout){if(T.DEFAULT_EDGE_LENGTH<10)this.idealEdgeLength=10;else this.idealEdgeLength=T.DEFAULT_EDGE_LENGTH;this.useSmartIdealEdgeLengthCalculation=T.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=k.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=k.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=k.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1}},Q.prototype.initSpringEmbedder=function(){p.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/k.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=0.04,this.coolingAdjuster=1},Q.prototype.layout=function(){var Y=A.DEFAULT_CREATE_BENDS_AS_NEEDED;if(Y)this.createBendpoints(),this.graphManager.resetAllEdges();return this.level=0,this.classicLayout()},Q.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var Y=this.getFlatForest();if(Y.length>0)this.positionNodesRadially(Y);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var j=new Set(this.getAllNodes()),te=this.nodesWithGravity.filter(function(X){return j.has(X)});this.graphManager.setAllNodesToApplyGravitation(te),this.positionNodesRandomly()}}else if(T.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var j=new Set(this.getAllNodes()),te=this.nodesWithGravity.filter(function(J){return j.has(J)});this.graphManager.setAllNodesToApplyGravitation(te)}if(Object.keys(this.constraints).length>0)x.handleConstraints(this),this.initConstraintVariables();if(this.initSpringEmbedder(),T.APPLY_LAYOUT)this.runSpringEmbedder();return!0},Q.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%k.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.coolingCycle++,this.layoutQuality==0)this.coolingAdjuster=this.coolingCycle;else if(this.layoutQuality==1)this.coolingAdjuster=this.coolingCycle/3;this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var Y=new Set(this.getAllNodes()),j=this.nodesWithGravity.filter(function(W){return Y.has(W)});if(this.graphManager.setAllNodesToApplyGravitation(j),this.graphManager.updateBounds(),this.updateGrid(),T.PURE_INCREMENTAL)this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2;else this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;if(this.afterGrowthIterations%10==0)this.graphManager.updateBounds(),this.updateGrid();if(T.PURE_INCREMENTAL)this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100);else this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100);this.afterGrowthIterations++}var te=!this.isTreeGrowing&&!this.isGrowthFinished,X=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(te,X),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},Q.prototype.getPositionsData=function(){var Y=this.graphManager.getAllNodes(),j={};for(var te=0;te0)this.updateDisplacements();for(var te=0;te0)X.fixedNodeWeight=J}}if(this.constraints.relativePlacementConstraint){var z=new Map,ne=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(Ee){Y.fixedNodesOnHorizontal.add(Ee),Y.fixedNodesOnVertical.add(Ee)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var ie=this.constraints.alignmentConstraint.vertical;for(var te=0;te=2*Ee.length/3;Xe--)Ue=Math.floor(Math.random()*(Xe+1)),Me=Ee[Xe],Ee[Xe]=Ee[Ue],Ee[Ue]=Me;return Ee},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(Ee){if(Ee.left){var Ue=z.has(Ee.left)?z.get(Ee.left):Ee.left,Me=z.has(Ee.right)?z.get(Ee.right):Ee.right;if(!Y.nodesInRelativeHorizontal.includes(Ue))if(Y.nodesInRelativeHorizontal.push(Ue),Y.nodeToRelativeConstraintMapHorizontal.set(Ue,[]),Y.dummyToNodeForVerticalAlignment.has(Ue))Y.nodeToTempPositionMapHorizontal.set(Ue,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(Ue)[0]).getCenterX());else Y.nodeToTempPositionMapHorizontal.set(Ue,Y.idToNodeMap.get(Ue).getCenterX());if(!Y.nodesInRelativeHorizontal.includes(Me))if(Y.nodesInRelativeHorizontal.push(Me),Y.nodeToRelativeConstraintMapHorizontal.set(Me,[]),Y.dummyToNodeForVerticalAlignment.has(Me))Y.nodeToTempPositionMapHorizontal.set(Me,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(Me)[0]).getCenterX());else Y.nodeToTempPositionMapHorizontal.set(Me,Y.idToNodeMap.get(Me).getCenterX());Y.nodeToRelativeConstraintMapHorizontal.get(Ue).push({right:Me,gap:Ee.gap}),Y.nodeToRelativeConstraintMapHorizontal.get(Me).push({left:Ue,gap:Ee.gap})}else{var Xe=ne.has(Ee.top)?ne.get(Ee.top):Ee.top,je=ne.has(Ee.bottom)?ne.get(Ee.bottom):Ee.bottom;if(!Y.nodesInRelativeVertical.includes(Xe))if(Y.nodesInRelativeVertical.push(Xe),Y.nodeToRelativeConstraintMapVertical.set(Xe,[]),Y.dummyToNodeForHorizontalAlignment.has(Xe))Y.nodeToTempPositionMapVertical.set(Xe,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(Xe)[0]).getCenterY());else Y.nodeToTempPositionMapVertical.set(Xe,Y.idToNodeMap.get(Xe).getCenterY());if(!Y.nodesInRelativeVertical.includes(je))if(Y.nodesInRelativeVertical.push(je),Y.nodeToRelativeConstraintMapVertical.set(je,[]),Y.dummyToNodeForHorizontalAlignment.has(je))Y.nodeToTempPositionMapVertical.set(je,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(je)[0]).getCenterY());else Y.nodeToTempPositionMapVertical.set(je,Y.idToNodeMap.get(je).getCenterY());Y.nodeToRelativeConstraintMapVertical.get(Xe).push({bottom:je,gap:Ee.gap}),Y.nodeToRelativeConstraintMapVertical.get(je).push({top:Xe,gap:Ee.gap})}});else{var se=new Map,he=new Map;this.constraints.relativePlacementConstraint.forEach(function(Ee){if(Ee.left){var Ue=z.has(Ee.left)?z.get(Ee.left):Ee.left,Me=z.has(Ee.right)?z.get(Ee.right):Ee.right;if(se.has(Ue))se.get(Ue).push(Me);else se.set(Ue,[Me]);if(se.has(Me))se.get(Me).push(Ue);else se.set(Me,[Ue])}else{var Xe=ne.has(Ee.top)?ne.get(Ee.top):Ee.top,je=ne.has(Ee.bottom)?ne.get(Ee.bottom):Ee.bottom;if(he.has(Xe))he.get(Xe).push(je);else he.set(Xe,[je]);if(he.has(je))he.get(je).push(Xe);else he.set(je,[Xe])}});var ye=function(Ue,Me){var Xe=[],je=[],Qe=new K,St=new Set,pt=0;return Ue.forEach(function(Vt,Xt){if(!St.has(Xt)){Xe[pt]=[],je[pt]=!1;var rr=Xt;Qe.push(rr),St.add(rr),Xe[pt].push(rr);while(Qe.length!=0){if(rr=Qe.shift(),Me.has(rr))je[pt]=!0;var We=Ue.get(rr);We.forEach(function(Nt){if(!St.has(Nt))Qe.push(Nt),St.add(Nt),Xe[pt].push(Nt)})}pt++}}),{components:Xe,isFixed:je}},xe=ye(se,Y.fixedNodesOnHorizontal);this.componentsOnHorizontal=xe.components,this.fixedComponentsOnHorizontal=xe.isFixed;var Ie=ye(he,Y.fixedNodesOnVertical);this.componentsOnVertical=Ie.components,this.fixedComponentsOnVertical=Ie.isFixed}}},Q.prototype.updateDisplacements=function(){var Y=this;if(this.constraints.fixedNodeConstraint)this.constraints.fixedNodeConstraint.forEach(function(Ie){var Ee=Y.idToNodeMap.get(Ie.nodeId);Ee.displacementX=0,Ee.displacementY=0});if(this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var j=this.constraints.alignmentConstraint.vertical;for(var te=0;te1){var ne;for(ne=0;neX)X=Math.floor(z.y);J=Math.floor(z.x+T.DEFAULT_COMPONENT_SEPERATION)}this.transform(new N(A.WORLD_CENTER_X-z.x/2,A.WORLD_CENTER_Y-z.y/2))},Q.radialLayout=function(Y,j,te){var X=Math.max(this.maxDiagonalInTree(Y),T.DEFAULT_RADIAL_SEPARATION);Q.branchRadialLayout(j,null,0,359,0,X);var W=F.calculateBounds(Y),J=new H;J.setDeviceOrgX(W.getMinX()),J.setDeviceOrgY(W.getMinY()),J.setWorldOrgX(te.x),J.setWorldOrgY(te.y);for(var z=0;z1){var Xe=Me[0];Me.splice(0,1);var je=ye.indexOf(Xe);if(je>=0)ye.splice(je,1);Ee--,xe--}if(j!=null)Ue=(ye.indexOf(Me[0])+1)%Ee;else Ue=0;var Qe=Math.abs(X-te)/xe;for(var St=Ue;Ie!=xe;St=++St%Ee){var pt=ye[St].getOtherEnd(Y);if(pt==j)continue;var Vt=(te+Ie*Qe)%360,Xt=(Vt+Qe)%360;Q.branchRadialLayout(pt,Y,Vt,Xt,W+J,J),Ie++}},Q.maxDiagonalInTree=function(Y){var j=D.MIN_VALUE;for(var te=0;tej)j=W}return j},Q.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},Q.prototype.groupZeroDegreeMembers=function(){var Y=this,j={};this.memberGroups={},this.idToDummyNode={};var te=[],X=this.graphManager.getAllNodes();for(var W=0;W"u")j[ne]=[];j[ne]=j[ne].concat(J)}Object.keys(j).forEach(function(ie){if(j[ie].length>1){var le="DummyCompound_"+ie;Y.memberGroups[le]=j[ie];var se=j[ie][0].getParent(),he=new E(Y.graphManager);he.id=le,he.paddingLeft=se.paddingLeft||0,he.paddingRight=se.paddingRight||0,he.paddingBottom=se.paddingBottom||0,he.paddingTop=se.paddingTop||0,Y.idToDummyNode[le]=he;var ye=Y.getGraphManager().add(Y.newGraph(),he),xe=se.getChild();xe.add(he);for(var Ie=0;IeW)X.rect.x-=(X.labelWidth-W)/2,X.setWidth(X.labelWidth),X.labelMarginLeft=(X.labelWidth-W)/2;else if(X.labelPosHorizontal=="right")X.setWidth(W+X.labelWidth)}if(X.labelHeight){if(X.labelPosVertical=="top")X.rect.y-=X.labelHeight,X.setHeight(J+X.labelHeight),X.labelMarginTop=X.labelHeight;else if(X.labelPosVertical=="center"&&X.labelHeight>J)X.rect.y-=(X.labelHeight-J)/2,X.setHeight(X.labelHeight),X.labelMarginTop=(X.labelHeight-J)/2;else if(X.labelPosVertical=="bottom")X.setHeight(J+X.labelHeight)}}})},Q.prototype.repopulateCompounds=function(){for(var Y=this.compoundOrder.length-1;Y>=0;Y--){var j=this.compoundOrder[Y],{id:te,paddingLeft:X,paddingTop:W,labelMarginLeft:J,labelMarginTop:z}=j;this.adjustLocations(this.tiledMemberPack[te],j.rect.x,j.rect.y,X,W,J,z)}},Q.prototype.repopulateZeroDegreeMembers=function(){var Y=this,j=this.tiledZeroDegreePack;Object.keys(j).forEach(function(te){var X=Y.idToDummyNode[te],{paddingLeft:W,paddingTop:J,labelMarginLeft:z,labelMarginTop:ne}=X;Y.adjustLocations(j[te],X.rect.x,X.rect.y,W,J,z,ne)})},Q.prototype.getToBeTiled=function(Y){var j=Y.id;if(this.toBeTiled[j]!=null)return this.toBeTiled[j];var te=Y.getChild();if(te==null)return this.toBeTiled[j]=!1,!1;var X=te.getNodes();for(var W=0;W0)return this.toBeTiled[j]=!1,!1;if(J.getChild()==null){this.toBeTiled[J.id]=!1;continue}if(!this.getToBeTiled(J))return this.toBeTiled[j]=!1,!1}return this.toBeTiled[j]=!0,!0},Q.prototype.getNodeDegree=function(Y){var j=Y.id,te=Y.getEdges(),X=0;for(var W=0;Wse)se=ye.rect.height}te+=se+Y.verticalPadding}},Q.prototype.tileCompoundMembers=function(Y,j){var te=this;this.tiledMemberPack=[],Object.keys(Y).forEach(function(X){var W=j[X];if(te.tiledMemberPack[X]=te.tileNodes(Y[X],W.paddingLeft+W.paddingRight),W.rect.width=te.tiledMemberPack[X].width,W.rect.height=te.tiledMemberPack[X].height,W.setCenter(te.tiledMemberPack[X].centerX,te.tiledMemberPack[X].centerY),W.labelMarginLeft=0,W.labelMarginTop=0,T.NODE_DIMENSIONS_INCLUDE_LABELS){var J=W.rect.width,z=W.rect.height;if(W.labelWidth){if(W.labelPosHorizontal=="left")W.rect.x-=W.labelWidth,W.setWidth(J+W.labelWidth),W.labelMarginLeft=W.labelWidth;else if(W.labelPosHorizontal=="center"&&W.labelWidth>J)W.rect.x-=(W.labelWidth-J)/2,W.setWidth(W.labelWidth),W.labelMarginLeft=(W.labelWidth-J)/2;else if(W.labelPosHorizontal=="right")W.setWidth(J+W.labelWidth)}if(W.labelHeight){if(W.labelPosVertical=="top")W.rect.y-=W.labelHeight,W.setHeight(z+W.labelHeight),W.labelMarginTop=W.labelHeight;else if(W.labelPosVertical=="center"&&W.labelHeight>z)W.rect.y-=(W.labelHeight-z)/2,W.setHeight(W.labelHeight),W.labelMarginTop=(W.labelHeight-z)/2;else if(W.labelPosVertical=="bottom")W.setHeight(z+W.labelHeight)}}})},Q.prototype.tileNodes=function(Y,j){var te=this.tileNodesByFavoringDim(Y,j,!0),X=this.tileNodesByFavoringDim(Y,j,!1),W=this.getOrgRatio(te),J=this.getOrgRatio(X),z;if(Jne)ne=Ie.getWidth()});var ie=J/W,le=z/W,se=Math.pow(te-X,2)+4*(ie+X)*(le+te)*W,he=(X-te+Math.sqrt(se))/(2*(ie+X)),ye;if(j){if(ye=Math.ceil(he),ye==he)ye++}else ye=Math.floor(he);var xe=ye*(ie+X)-X;if(ne>xe)xe=ne;return xe+=X*2,xe},Q.prototype.tileNodesByFavoringDim=function(Y,j,te){var{TILING_PADDING_VERTICAL:X,TILING_PADDING_HORIZONTAL:W,TILING_COMPARE_BY:J}=T,z={rows:[],rowWidth:[],rowHeight:[],width:0,height:j,verticalPadding:X,horizontalPadding:W,centerX:0,centerY:0};if(J)z.idealRowWidth=this.calcIdealRowWidth(Y,te);var ne=function(Ee){return Ee.rect.width*Ee.rect.height},ie=function(Ee,Ue){return ne(Ue)-ne(Ee)};Y.sort(function(Ie,Ee){var Ue=ie;if(z.idealRowWidth)return Ue=J,Ue(Ie.id,Ee.id);return Ue(Ie,Ee)});var le=0,se=0;for(var he=0;he0)z+=Y.horizontalPadding;if(Y.rowWidth[te]=z,Y.width0)ne+=Y.verticalPadding;var ie=0;if(ne>Y.rowHeight[te])ie=Y.rowHeight[te],Y.rowHeight[te]=ne,ie=Y.rowHeight[te]-ie;Y.height+=ie,Y.rows[te].push(j)},Q.prototype.getShortestRowIndex=function(Y){var j=-1,te=Number.MAX_VALUE;for(var X=0;Xte)j=X,te=Y.rowWidth[X];return j},Q.prototype.canAddHorizontal=function(Y,j,te){if(Y.idealRowWidth){var X=Y.rows.length-1,W=Y.rowWidth[X];return W+j+Y.horizontalPadding<=Y.idealRowWidth}var J=this.getShortestRowIndex(Y);if(J<0)return!0;var z=Y.rowWidth[J];if(z+Y.horizontalPadding+j<=Y.width)return!0;var ne=0;if(Y.rowHeight[J]0)ne=te+Y.verticalPadding-Y.rowHeight[J]}var ie;if(Y.width-z>=j+Y.horizontalPadding)ie=(Y.height+ne)/(z+j+Y.horizontalPadding);else ie=(Y.height+ne)/Y.width;ne=te+Y.verticalPadding;var le;if(Y.widthJ&&j!=te){X.splice(-1,1),Y.rows[te].push(W),Y.rowWidth[j]=Y.rowWidth[j]-J,Y.rowWidth[te]=Y.rowWidth[te]+J,Y.width=Y.rowWidth[instance.getLongestRowIndex(Y)];var z=Number.MIN_VALUE;for(var ne=0;nez)z=X[ne].height;if(j>0)z+=Y.verticalPadding;var ie=Y.rowHeight[j]+Y.rowHeight[te];if(Y.rowHeight[j]=z,Y.rowHeight[te]0)for(var xe=W;xe<=J;xe++)ye[0]+=this.grid[xe][z-1].length+this.grid[xe][z].length-1;if(J0)for(var xe=z;xe<=ne;xe++)ye[3]+=this.grid[W-1][xe].length+this.grid[W][xe].length-1;var Ie=D.MAX_VALUE,Ee,Ue;for(var Me=0;Me{var p=d(551).FDLayoutNode,m=d(551).IMath;function y(w,T,x,k){p.call(this,w,T,x,k)}y.prototype=Object.create(p.prototype);for(var E in p)y[E]=p[E];y.prototype.calculateDisplacement=function(){var w=this.graphManager.getLayout();if(this.getChild()!=null&&this.fixedNodeWeight)this.displacementX+=w.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=w.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight;else this.displacementX+=w.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=w.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren;if(Math.abs(this.displacementX)>w.coolingFactor*w.maxNodeDisplacement)this.displacementX=w.coolingFactor*w.maxNodeDisplacement*m.sign(this.displacementX);if(Math.abs(this.displacementY)>w.coolingFactor*w.maxNodeDisplacement)this.displacementY=w.coolingFactor*w.maxNodeDisplacement*m.sign(this.displacementY);if(this.child&&this.child.getNodes().length>0)this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(w,T){var x=this.getChild().getNodes(),k;for(var A=0;A{function p(x){if(Array.isArray(x)){for(var k=0,A=Array(x.length);k0){var Kt=0;lr.forEach(function(Et){if(ze=="horizontal")gt.set(Et,R.has(Et)?N[R.get(Et)]:_e.get(Et)),Kt+=gt.get(Et);else gt.set(Et,R.has(Et)?L[R.get(Et)]:_e.get(Et)),Kt+=gt.get(Et)}),Kt=Kt/lr.length,Zt.forEach(function(Et){if(!Ce.has(Et))gt.set(Et,Kt)})}else{var In=0;Zt.forEach(function(Et){if(ze=="horizontal")In+=R.has(Et)?N[R.get(Et)]:_e.get(Et);else In+=R.has(Et)?L[R.get(Et)]:_e.get(Et)}),In=In/Zt.length,Zt.forEach(function(Et){gt.set(Et,In)})}});var qt=function(){var lr=ir.shift(),Kt=be.get(lr);Kt.forEach(function(In){if(gt.get(In.id)Et)Et=Ei;if(ynXn)Xn=yn}}catch(on){Bn=!0,si=on}finally{try{if(!Yt&&hn.return)hn.return()}finally{if(Bn)throw si}}var Li=(Kt+Et)/2-(In+Xn)/2,Ia=!0,tt=!1,Fn=void 0;try{for(var Hn=Zt[Symbol.iterator](),_t;!(Ia=(_t=Hn.next()).done);Ia=!0){var Sr=_t.value;gt.set(Sr,gt.get(Sr)+Li)}}catch(on){tt=!0,Fn=on}finally{try{if(!Ia&&Hn.return)Hn.return()}finally{if(tt)throw Fn}}})}return gt},Z=function(be){var ze=0,Ce=0,_e=0,ke=0;if(be.forEach(function(vt){if(vt.left)N[R.get(vt.left)]-N[R.get(vt.right)]>=0?ze++:Ce++;else L[R.get(vt.top)]-L[R.get(vt.bottom)]>=0?_e++:ke++}),ze>Ce&&_e>ke)for(var it=0;itCe)for(var ut=0;utke)for(var gt=0;gt1)k.fixedNodeConstraint.forEach(function(fe,be){X[be]=[fe.position.x,fe.position.y],W[be]=[N[R.get(fe.nodeId)],L[R.get(fe.nodeId)]]}),J=!0;else if(k.alignmentConstraint)(function(){var fe=0;if(k.alignmentConstraint.vertical){var be=k.alignmentConstraint.vertical,ze=function(gt){var vt=new Set;be[gt].forEach(function(cr){vt.add(cr)});var ir=new Set([].concat(p(vt)).filter(function(cr){return ne.has(cr)})),qt=void 0;if(ir.size>0)qt=N[R.get(ir.values().next().value)];else qt=K(vt).x;be[gt].forEach(function(cr){X[fe]=[qt,L[R.get(cr)]],W[fe]=[N[R.get(cr)],L[R.get(cr)]],fe++})};for(var Ce=0;Ce0)qt=N[R.get(ir.values().next().value)];else qt=K(vt).y;_e[gt].forEach(function(cr){X[fe]=[N[R.get(cr)],qt],W[fe]=[N[R.get(cr)],L[R.get(cr)]],fe++})};for(var it=0;it<_e.length;it++)ke(it);J=!0}if(k.relativePlacementConstraint)z=!0})();else if(k.relativePlacementConstraint){var he=0,ye=0;for(var xe=0;xehe)he=se[xe].length,ye=xe;if(he0){var bt={x:0,y:0};k.fixedNodeConstraint.forEach(function(fe,be){var ze={x:N[R.get(fe.nodeId)],y:L[R.get(fe.nodeId)]},Ce=fe.position,_e=H(Ce,ze);bt.x+=_e.x,bt.y+=_e.y}),bt.x/=k.fixedNodeConstraint.length,bt.y/=k.fixedNodeConstraint.length,N.forEach(function(fe,be){N[be]+=bt.x}),L.forEach(function(fe,be){L[be]+=bt.y}),k.fixedNodeConstraint.forEach(function(fe){N[R.get(fe.nodeId)]=fe.position.x,L[R.get(fe.nodeId)]=fe.position.y})}if(k.alignmentConstraint){if(k.alignmentConstraint.vertical){var Pe=k.alignmentConstraint.vertical,Ge=function(be){var ze=new Set;Pe[be].forEach(function(ke){ze.add(ke)});var Ce=new Set([].concat(p(ze)).filter(function(ke){return ne.has(ke)})),_e=void 0;if(Ce.size>0)_e=N[R.get(Ce.values().next().value)];else _e=K(ze).x;ze.forEach(function(ke){if(!ne.has(ke))N[R.get(ke)]=_e})};for(var qe=0;qe0)_e=L[R.get(Ce.values().next().value)];else _e=K(ze).y;ze.forEach(function(ke){if(!ne.has(ke))L[R.get(ke)]=_e})};for(var De=0;De{l.exports=e}},i={};function a(l){var h=i[l];if(h!==void 0)return h.exports;var d=i[l]={exports:{}};return r[l](d,d.exports,a),d.exports}var o=a(45);return o})()})});var OKr=Cr(function(koe,zpt){(function(r,i){if(typeof koe==="object"&&typeof zpt==="object")zpt.exports=i(Gpt());else if(typeof define==="function"&&define.amd)define(["cose-base"],i);else if(typeof koe==="object")koe.cytoscapeFcose=i(Gpt());else r.cytoscapeFcose=i(r.coseBase)})(koe,function(e){return(()=>{var r={658:(l)=>{l.exports=Object.assign!=null?Object.assign.bind(Object):function(h){for(var d=arguments.length,p=Array(d>1?d-1:0),m=1;m{var p=function(){function E(w,T){var x=[],k=!0,A=!1,R=void 0;try{for(var N=w[Symbol.iterator](),L;!(k=(L=N.next()).done);k=!0)if(x.push(L.value),T&&x.length===T)break}catch(B){A=!0,R=B}finally{try{if(!k&&N.return)N.return()}finally{if(A)throw R}}return x}return function(w,T){if(Array.isArray(w))return w;else if(Symbol.iterator in Object(w))return E(w,T);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=d(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(E){var w={};for(var T=0;T0)J.merge(le)});for(var z=0;z1){L=R[0],B=L.connectedEdges().length,R.forEach(function(W){if(W.connectedEdges().length0)x.set("dummy"+(x.size+1),F)}return H},y.relocateComponent=function(E,w,T){if(!T.fixedNodeConstraint){var{POSITIVE_INFINITY:x,NEGATIVE_INFINITY:k,POSITIVE_INFINITY:A,NEGATIVE_INFINITY:R}=Number;if(T.quality=="draft"){var N=!0,L=!1,B=void 0;try{for(var D=w.nodeIndexes[Symbol.iterator](),P;!(N=(P=D.next()).done);N=!0){var F=P.value,H=p(F,2),K=H[0],Q=H[1],Z=T.cy.getElementById(K);if(Z){var Y=Z.boundingBox(),j=w.xCoords[Q]-Y.w/2,te=w.xCoords[Q]+Y.w/2,X=w.yCoords[Q]-Y.h/2,W=w.yCoords[Q]+Y.h/2;if(jk)k=te;if(XR)R=W}}}catch(le){L=!0,B=le}finally{try{if(!N&&D.return)D.return()}finally{if(L)throw B}}var J=E.x-(k+x)/2,z=E.y-(R+A)/2;w.xCoords=w.xCoords.map(function(le){return le+J}),w.yCoords=w.yCoords.map(function(le){return le+z})}else{Object.keys(w).forEach(function(le){var se=w[le],he=se.getRect().x,ye=se.getRect().x+se.getRect().width,xe=se.getRect().y,Ie=se.getRect().y+se.getRect().height;if(hek)k=ye;if(xeR)R=Ie});var ne=E.x-(k+x)/2,ie=E.y-(R+A)/2;Object.keys(w).forEach(function(le){var se=w[le];se.setCenter(se.getCenterX()+ne,se.getCenterY()+ie)})}}},y.calcBoundingBox=function(E,w,T,x){var{MAX_SAFE_INTEGER:k,MIN_SAFE_INTEGER:A,MAX_SAFE_INTEGER:R,MIN_SAFE_INTEGER:N}=Number,L=void 0,B=void 0,D=void 0,P=void 0,F=E.descendants().not(":parent"),H=F.length;for(var K=0;KL)k=L;if(AD)R=D;if(N{var p=d(548),m=d(140).CoSELayout,y=d(140).CoSENode,E=d(140).layoutBase.PointD,w=d(140).layoutBase.DimensionD,T=d(140).layoutBase.LayoutConstants,x=d(140).layoutBase.FDLayoutConstants,k=d(140).CoSEConstants,A=function(N,L){var{cy:B,eles:D}=N,P=D.nodes(),F=D.edges(),H=void 0,K=void 0,Q=void 0,Z={};if(N.randomize)H=L.nodeIndexes,K=L.xCoords,Q=L.yCoords;var Y=function(le){return typeof le==="function"},j=function(le,se){if(Y(le))return le(se);else return le},te=p.calcParentsWithoutChildren(B,D),X=function ie(le,se,he,ye){var xe=se.length;for(var Ie=0;Ie0){var Qe=void 0;Qe=he.getGraphManager().add(he.newGraph(),Me),ie(Qe,Ue,he,ye)}}},W=function(le,se,he){var ye=0,xe=0;for(var Ie=0;Ie0)k.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=ye/xe;else if(!Y(N.idealEdgeLength))k.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=N.idealEdgeLength;else k.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=50;k.MIN_REPULSION_DIST=x.MIN_REPULSION_DIST=x.DEFAULT_EDGE_LENGTH/10,k.DEFAULT_RADIAL_SEPARATION=x.DEFAULT_EDGE_LENGTH}},J=function(le,se){if(se.fixedNodeConstraint)le.constraints.fixedNodeConstraint=se.fixedNodeConstraint;if(se.alignmentConstraint)le.constraints.alignmentConstraint=se.alignmentConstraint;if(se.relativePlacementConstraint)le.constraints.relativePlacementConstraint=se.relativePlacementConstraint};if(N.nestingFactor!=null)k.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=N.nestingFactor;if(N.gravity!=null)k.DEFAULT_GRAVITY_STRENGTH=x.DEFAULT_GRAVITY_STRENGTH=N.gravity;if(N.numIter!=null)k.MAX_ITERATIONS=x.MAX_ITERATIONS=N.numIter;if(N.gravityRange!=null)k.DEFAULT_GRAVITY_RANGE_FACTOR=x.DEFAULT_GRAVITY_RANGE_FACTOR=N.gravityRange;if(N.gravityCompound!=null)k.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH=N.gravityCompound;if(N.gravityRangeCompound!=null)k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=N.gravityRangeCompound;if(N.initialEnergyOnIncremental!=null)k.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.DEFAULT_COOLING_FACTOR_INCREMENTAL=N.initialEnergyOnIncremental;if(N.tilingCompareBy!=null)k.TILING_COMPARE_BY=N.tilingCompareBy;if(N.quality=="proof")T.QUALITY=2;else T.QUALITY=0;if(k.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.NODE_DIMENSIONS_INCLUDE_LABELS=N.nodeDimensionsIncludeLabels,k.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!N.randomize,k.ANIMATE=x.ANIMATE=T.ANIMATE=N.animate,k.TILE=N.tile,k.TILING_PADDING_VERTICAL=typeof N.tilingPaddingVertical==="function"?N.tilingPaddingVertical.call():N.tilingPaddingVertical,k.TILING_PADDING_HORIZONTAL=typeof N.tilingPaddingHorizontal==="function"?N.tilingPaddingHorizontal.call():N.tilingPaddingHorizontal,k.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!0,k.PURE_INCREMENTAL=!N.randomize,T.DEFAULT_UNIFORM_LEAF_NODE_SIZES=N.uniformNodeDimensions,N.step=="transformed")k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!1;if(N.step=="enforced")k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!1;if(N.step=="cose")k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!0;if(N.step=="all"){if(N.randomize)k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!0}if(N.fixedNodeConstraint||N.alignmentConstraint||N.relativePlacementConstraint)k.TREE_REDUCTION_ON_INCREMENTAL=!1;else k.TREE_REDUCTION_ON_INCREMENTAL=!0;var z=new m,ne=z.newGraphManager();return X(ne.addRoot(),p.getTopMostNodes(P),z,N),W(z,ne,F),J(z,N),z.runLayout(),Z};l.exports={coseLayout:A}},212:(l,h,d)=>{var p=function(){function N(L,B){for(var D=0;D0)if(!W){var J=D.eles.boundingBox();if(j.push({x:J.x1+J.w/2,y:J.y1+J.h/2}),D.randomize){var z=T(D);H.push(z)}if(D.quality=="default"||D.quality=="proof")Z.push(k(D,H[0])),E.relocateComponent(j[0],Z[0],D);else E.relocateComponent(j[0],H[0],D)}else{var ne=E.getTopMostNodes(D.eles.nodes());if(Y=E.connectComponents(P,D.eles,ne),Y.forEach(function(rr){var We=rr.boundingBox();j.push({x:We.x1+We.w/2,y:We.y1+We.h/2})}),D.randomize)Y.forEach(function(rr){D.eles=rr,H.push(T(D))});if(D.quality=="default"||D.quality=="proof"){var ie=P.collection();if(D.tile){var le=new Map,se=[],he=[],ye=0,xe={nodeIndexes:le,xCoords:se,yCoords:he},Ie=[];if(Y.forEach(function(rr,We){if(rr.edges().length==0)rr.nodes().forEach(function(Nt,ct){if(ie.merge(rr.nodes()[ct]),!Nt.isParent())xe.nodeIndexes.set(rr.nodes()[ct].id(),ye++),xe.xCoords.push(rr.nodes()[0].position().x),xe.yCoords.push(rr.nodes()[0].position().y)}),Ie.push(We)}),ie.length>1){var Ee=ie.boundingBox();j.push({x:Ee.x1+Ee.w/2,y:Ee.y1+Ee.h/2}),Y.push(ie),H.push(xe);for(var Ue=Ie.length-1;Ue>=0;Ue--)Y.splice(Ie[Ue],1),H.splice(Ie[Ue],1),j.splice(Ie[Ue],1)}}Y.forEach(function(rr,We){D.eles=rr,Z.push(k(D,H[We])),E.relocateComponent(j[We],Z[We],D)})}else Y.forEach(function(rr,We){E.relocateComponent(j[We],H[We],D)});var Me=new Set;if(Y.length>1){var Xe=[],je=F.filter(function(rr){return rr.css("display")=="none"});Y.forEach(function(rr,We){var Nt=void 0;if(D.quality=="draft")Nt=H[We].nodeIndexes;if(rr.nodes().not(je).length>0){var ct={};ct.edges=[],ct.nodes=[];var bt=void 0;if(rr.nodes().not(je).forEach(function(Pe){if(D.quality=="draft")if(!Pe.isParent())bt=Nt.get(Pe.id()),ct.nodes.push({x:H[We].xCoords[bt]-Pe.boundingbox().w/2,y:H[We].yCoords[bt]-Pe.boundingbox().h/2,width:Pe.boundingbox().w,height:Pe.boundingbox().h});else{var Ge=E.calcBoundingBox(Pe,H[We].xCoords,H[We].yCoords,Nt);ct.nodes.push({x:Ge.topLeftX,y:Ge.topLeftY,width:Ge.width,height:Ge.height})}else if(Z[We][Pe.id()])ct.nodes.push({x:Z[We][Pe.id()].getLeft(),y:Z[We][Pe.id()].getTop(),width:Z[We][Pe.id()].getWidth(),height:Z[We][Pe.id()].getHeight()})}),rr.edges().forEach(function(Pe){var Ge=Pe.source(),qe=Pe.target();if(Ge.css("display")!="none"&&qe.css("display")!="none"){if(D.quality=="draft"){var Ke=Nt.get(Ge.id()),Je=Nt.get(qe.id()),De=[],oe=[];if(Ge.isParent()){var pe=E.calcBoundingBox(Ge,H[We].xCoords,H[We].yCoords,Nt);De.push(pe.topLeftX+pe.width/2),De.push(pe.topLeftY+pe.height/2)}else De.push(H[We].xCoords[Ke]),De.push(H[We].yCoords[Ke]);if(qe.isParent()){var fe=E.calcBoundingBox(qe,H[We].xCoords,H[We].yCoords,Nt);oe.push(fe.topLeftX+fe.width/2),oe.push(fe.topLeftY+fe.height/2)}else oe.push(H[We].xCoords[Je]),oe.push(H[We].yCoords[Je]);ct.edges.push({startX:De[0],startY:De[1],endX:oe[0],endY:oe[1]})}else if(Z[We][Ge.id()]&&Z[We][qe.id()])ct.edges.push({startX:Z[We][Ge.id()].getCenterX(),startY:Z[We][Ge.id()].getCenterY(),endX:Z[We][qe.id()].getCenterX(),endY:Z[We][qe.id()].getCenterY()})}}),ct.nodes.length>0)Xe.push(ct),Me.add(We)}});var Qe=X.packComponents(Xe,D.randomize).shifts;if(D.quality=="draft")H.forEach(function(rr,We){var Nt=rr.xCoords.map(function(bt){return bt+Qe[We].dx}),ct=rr.yCoords.map(function(bt){return bt+Qe[We].dy});rr.xCoords=Nt,rr.yCoords=ct});else{var St=0;Me.forEach(function(rr){Object.keys(Z[rr]).forEach(function(We){var Nt=Z[rr][We];Nt.setCenter(Nt.getCenterX()+Qe[St].dx,Nt.getCenterY()+Qe[St].dy)}),St++})}}}var pt=function(We,Nt){if(D.quality=="default"||D.quality=="proof"){if(typeof We==="number")We=Nt;var ct=void 0,bt=void 0,Pe=We.data("id");if(Z.forEach(function(qe){if(Pe in qe)ct={x:qe[Pe].getRect().getCenterX(),y:qe[Pe].getRect().getCenterY()},bt=qe[Pe]}),D.nodeDimensionsIncludeLabels){if(bt.labelWidth){if(bt.labelPosHorizontal=="left")ct.x+=bt.labelWidth/2;else if(bt.labelPosHorizontal=="right")ct.x-=bt.labelWidth/2}if(bt.labelHeight){if(bt.labelPosVertical=="top")ct.y+=bt.labelHeight/2;else if(bt.labelPosVertical=="bottom")ct.y-=bt.labelHeight/2}}if(ct==null)ct={x:We.position("x"),y:We.position("y")};return{x:ct.x,y:ct.y}}else{var Ge=void 0;if(H.forEach(function(qe){var Ke=qe.nodeIndexes.get(We.id());if(Ke!=null)Ge={x:qe.xCoords[Ke],y:qe.yCoords[Ke]}}),Ge==null)Ge={x:We.position("x"),y:We.position("y")};return{x:Ge.x,y:Ge.y}}};if(D.quality=="default"||D.quality=="proof"||D.randomize){var Vt=E.calcParentsWithoutChildren(P,F),Xt=F.filter(function(rr){return rr.css("display")=="none"});if(D.eles=F.not(Xt),F.nodes().not(":parent").not(Xt).layoutPositions(B,D,pt),Vt.length>0)Vt.forEach(function(rr){rr.position(pt(rr))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),N}();l.exports=R},657:(l,h,d)=>{var p=d(548),m=d(140).layoutBase.Matrix,y=d(140).layoutBase.SVD,E=function(T){var{cy:x,eles:k}=T,A=k.nodes(),R=k.nodes(":parent"),N=new Map,L=new Map,B=new Map,D=[],P=[],F=[],H=[],K=[],Q=[],Z=[],Y=[],j=void 0,te=void 0,X=1e8,W=0.000000001,{piTol:J,samplingType:z,nodeSeparation:ne}=T,ie=void 0,le=function(){var ze=0,Ce=0,_e=!1;while(Ce=it){gt=ke[it++];var Zt=D[gt];for(var lr=0;lrqt)qt=K[In],cr=In}return cr},he=function(ze){var Ce=void 0;if(!ze){le();for(var _e=0;_e=1)break;qt=ir}for(var Zt=0;Zt=1)break;qt=ir}for(var Kt=0;Kt0)if(Ce.isParent())D[ze].push(B.get(Ce.id()));else D[ze].push(Ce.id())})});var Vt=function(ze){var Ce=L.get(ze),_e=void 0;N.get(ze).forEach(function(ke){if(x.getElementById(ke).isParent())_e=B.get(ke);else _e=ke;D[Ce].push(_e),D[L.get(_e)].push(ze)})},Xt=!0,rr=!1,We=void 0;try{for(var Nt=N.keys()[Symbol.iterator](),ct;!(Xt=(ct=Nt.next()).done);Xt=!0){var bt=ct.value;Vt(bt)}}catch(be){rr=!0,We=be}finally{try{if(!Xt&&Nt.return)Nt.return()}finally{if(rr)throw We}}te=L.size;var Pe=void 0;if(te>2){ie=te{var p=d(212),m=function(E){if(!E)return;E("layout","fcose",p)};if(typeof cytoscape<"u")m(cytoscape);l.exports=m},140:(l)=>{l.exports=e}},i={};function a(l){var h=i[l];if(h!==void 0)return h.exports;var d=i[l]={exports:{}};return r[l](d,d.exports,a),d.exports}var o=a(579);return o})()})});function Hpt(e,r){if(e===0)return r();let i=Math.random,a=e>>>0;Math.random=function(){a=a+1831565813>>>0;let o=a;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296};try{return r()}finally{Math.random=i}}function UKr(e,r,i){e.forEach((a)=>{r.add({group:"nodes",data:{type:"service",id:a.id,icon:a.icon,label:a.title,parent:a.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-service"})})}function GKr(e,r,i){e.forEach((a)=>{r.add({group:"nodes",data:{type:"junction",id:a.id,parent:a.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-junction"})})}function zKr(e,r){r.nodes().map((i)=>{let a=tW(i);if(a.type==="group")return;a.x=i.position().x,a.y=i.position().y,e.getElementById(a.id).attr("transform","translate("+(a.x||0)+","+(a.y||0)+")")})}function VKr(e,r){e.forEach((i)=>{r.add({group:"nodes",data:{type:"group",id:i.id,icon:i.icon,label:i.title,parent:i.in},classes:"node-group"})})}function HKr(e,r){e.forEach((i)=>{let{lhsId:a,rhsId:o,lhsInto:l,lhsGroup:h,rhsInto:d,lhsDir:p,rhsDir:m,rhsGroup:y,title:E}=i,w=qpt(i.lhsDir,i.rhsDir)?"segments":"straight",T={id:`${a}-${o}`,label:E,source:a,sourceDir:p,sourceArrow:l,sourceGroup:h,sourceEndpoint:p==="L"?"0 50%":p==="R"?"100% 50%":p==="T"?"50% 0":"50% 100%",target:o,targetDir:m,targetArrow:d,targetGroup:y,targetEndpoint:m==="L"?"0 50%":m==="R"?"100% 50%":m==="T"?"50% 0":"50% 100%"};r.add({group:"edges",data:T,classes:w})})}function qKr(e,r,i,a=[]){let o=I((w,T)=>{let x=new Map;for(let[k,A]of w.entries()){let R=`${k}`,N=0,L=[...A.entries()];if(L.length===1){x.set(R,L[0][1]);continue}for(let B=0;B{let T=new Map,x=new Map;return w.forEach(([k,A],R)=>{let N=e.getNode(R)?.in??"default",L=T.get(A)??new Map;if(!T.has(A))T.set(A,L);let B=x.get(k)??new Map;if(!x.has(k))x.set(k,B);for(let D of[L,B]){let P=D.get(N)??[];if(!D.has(N))D.set(N,P);P.push(R)}}),{horiz:[...o(T,"horizontal").values()].filter((k)=>k.length>1),vert:[...o(x,"vertical").values()].filter((k)=>k.length>1)}}),[h,d]=l.reduce(([w,T],{horiz:x,vert:k})=>[[...w,...x],[...T,...k]],[[],[]]),p=new Set;a.forEach((w)=>w.members.forEach((T)=>p.add(T)));let m=I((w)=>w.filter((T)=>!T.some((x)=>p.has(x))),"dropOverlapping"),y=m(h),E=m(d);return a.forEach((w)=>{if(w.members.length<2)return;if(w.direction==="row")y.push([...w.members]);else E.push([...w.members])}),{horizontal:y,vertical:E}}function YKr(e,r,i=[]){let a=[],o=r.getConfigField("iconSize"),l=r.getConfigField("idealEdgeLengthMultiplier"),h=l*o,d=new Set;i.forEach((y)=>{for(let E=0;E`${y[0]},${y[1]}`,"posToStr"),m=I((y)=>y.split(",").map((E)=>parseInt(E)),"strToPos");return e.forEach((y)=>{let E=new Map([...y.entries()].map(([k,A])=>[p(A),k])),w=[p([0,0])],T={},x={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(w.length>0){let k=w.shift();if(k){T[k]=1;let A=E.get(k);if(A){let R=m(k);Object.entries(x).forEach(([N,L])=>{let B=p([R[0]+L[0],R[1]+L[1]]),D=E.get(B);if(D&&!T[B]){if(w.push(B),d.has(`${A}|${D}`))return;a.push({[NKr[N]]:D,[NKr[iCi(N)]]:A,gap:l*o})}})}}}}),a}function WKr(e,r,i,a,o,{spatialMaps:l,groupAlignments:h}){return new Promise((d)=>{let p=xn("body").append("div").attr("id","cy").attr("style","display:none"),m=oT({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${o.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${o.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});p.remove(),VKr(i,m),UKr(e,m,o),GKr(r,m,o),HKr(a,m);let y=o.getLayoutHints(),E=qKr(o,l,h,y),w=YKr(l,o,y),T=o.getConfigField("iconSize"),x=o.getConfigField("idealEdgeLengthMultiplier")*T,k=0.5*T,A=o.getConfigField("edgeElasticity"),R=o.getConfigField("seed"),N=m.layout({name:"fcose",quality:"proof",randomize:o.getConfigField("randomize"),nodeSeparation:o.getConfigField("nodeSeparation"),numIter:o.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(L){let[B,D]=L.connectedNodes(),{parent:P}=tW(B),{parent:F}=tW(D);return P===F?x:k},edgeElasticity(L){let[B,D]=L.connectedNodes(),{parent:P}=tW(B),{parent:F}=tW(D);return P===F?A:0.001},alignmentConstraint:E,relativePlacementConstraint:w});N.one("layoutstop",()=>{function L(B,D,P,F){let H,K,{x:Q,y:Z}=B,{x:Y,y:j}=D;K=(F-Z+(Q-P)*(Z-j)/(Q-Y))/Math.sqrt(1+Math.pow((Z-j)/(Q-Y),2)),H=Math.sqrt(Math.pow(F-Z,2)+Math.pow(P-Q,2)-Math.pow(K,2));let te=Math.sqrt(Math.pow(Y-Q,2)+Math.pow(j-Z,2));H=H/te;let X=(Y-Q)*(F-Z)-(j-Z)*(P-Q);switch(!0){case X>=0:X=1;break;case X<0:X=-1;break}let W=(Y-Q)*(P-Q)+(j-Z)*(F-Z);switch(!0){case W>=0:W=1;break;case W<0:W=-1;break}return K=Math.abs(K)*X,H=H*W,{distances:K,weights:H}}I(L,"getSegmentWeights"),m.startBatch();for(let B of Object.values(m.edges()))if(B.data?.()){let{x:D,y:P}=B.source().position(),{x:F,y:H}=B.target().position();if(D!==F&&P!==H){let K=B.sourceEndpoint(),Q=B.targetEndpoint(),{sourceDir:Z}=PKr(B),[Y,j]=tM(Z)?[K.x,Q.y]:[Q.x,K.y],{weights:te,distances:X}=L(K,Q,Y,j);B.style("segment-distances",X),B.style("segment-weights",te)}}m.endBatch(),Hpt(R,()=>N.run())});try{Hpt(R,()=>N.run())}catch(L){if(L instanceof RangeError&&L.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw L}m.ready((L)=>{Ze.info("Ready",L),d(m)})})}var $Kr,NKr,LKr,n3e,iCi,MKr,Iv,tM,qpt,aCi,sCi,Vpt,oCi,lCi,cCi,uCi,hCi,DKr,PKr,tW,dCi,BKr,fCi,FKr,pCi,gCi,eW,Aoe,mCi,bCi,yCi,vCi,_Ci,ECi,jKr;var KKr=Re(()=>{Tv();A0();Bp();Pp();Ql();eo();Zs();Ja();rb();Rot();dl();$Kr=sv(OKr(),1),NKr={L:"left",R:"right",T:"top",B:"bottom"},LKr={L:I((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:I((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:I((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:I((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},n3e={L:I((e,r)=>e-r+2,"L"),R:I((e,r)=>e-2,"R"),T:I((e,r)=>e-r+2,"T"),B:I((e,r)=>e-2,"B")},iCi=I(function(e){if(Iv(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),MKr=I(function(e){let r=e;return r==="L"||r==="R"||r==="T"||r==="B"},"isArchitectureDirection"),Iv=I(function(e){let r=e;return r==="L"||r==="R"},"isArchitectureDirectionX"),tM=I(function(e){let r=e;return r==="T"||r==="B"},"isArchitectureDirectionY"),qpt=I(function(e,r){let i=Iv(e)&&tM(r),a=tM(e)&&Iv(r);return i||a},"isArchitectureDirectionXY"),aCi=I(function(e){let r=e[0],i=e[1],a=Iv(r)&&tM(i),o=tM(r)&&Iv(i);return a||o},"isArchitecturePairXY"),sCi=I(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),Vpt=I(function(e,r){let i=`${e}${r}`;return sCi(i)?i:void 0},"getArchitectureDirectionPair"),oCi=I(function([e,r],i){let a=i[0],o=i[1];if(Iv(a))if(tM(o))return[e+(a==="L"?-1:1),r+(o==="T"?1:-1)];else return[e+(a==="L"?-1:1),r];else if(Iv(o))return[e+(o==="L"?1:-1),r+(a==="T"?1:-1)];else return[e,r+(a==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),lCi=I(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),cCi=I(function(e,r){if(qpt(e,r))return"bend";else if(Iv(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),uCi=I(function(e){return e.type==="service"},"isArchitectureService"),hCi=I(function(e){return e.type==="junction"},"isArchitectureJunction"),DKr=I((e,r)=>{let[i,a]=[e,r].sort();return`${JSON.stringify(i)}-${JSON.stringify(a)}`},"architectureGroupAlignmentKey"),PKr=I((e)=>e.data(),"edgeData"),tW=I((e)=>e.data(),"nodeData"),dCi=Fs.architecture,BKr=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=Ys,this.getAccTitle=oo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getAccDescription=lo,this.setAccDescription=Js,this.clear()}static{I(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",qs()}addService({id:e,icon:r,in:i,title:a,iconText:o}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(i)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:r,iconText:o,title:a,edges:[],in:i})}getServices(){return[...this.nodes.values()].filter(uCi)}addJunction({id:e,in:r}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(r)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:r})}getJunctions(){return[...this.nodes.values()].filter(hCi)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:r,in:i,title:a}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(i)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:r,title:a,in:i})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:r,lhsDir:i,rhsDir:a,lhsInto:o,rhsInto:l,lhsGroup:h,rhsGroup:d,title:p}){if(!MKr(i))throw Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(i)}`);if(!MKr(a))throw Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(a)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(r)&&!this.groups.has(r))throw Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);let m=this.nodes.get(e).in,y=this.nodes.get(r).in;if(h&&m&&y&&m==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&m&&y&&m==y)throw Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let E={lhsId:e,lhsDir:i,lhsInto:o,lhsGroup:h,rhsId:r,rhsDir:a,rhsInto:l,rhsGroup:d,title:p};this.edges.push(E);let w=this.nodes.get(e),T=this.nodes.get(r);if(w&&T)w.edges.push(this.edges[this.edges.length-1]),T.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let r=new Set;e.members.forEach((i)=>{if(this.registeredIds.get(i)!=="node")throw Error(`align ${e.direction} references [${i}], which is not a service or junction`);if(r.has(i))throw Error(`align ${e.direction} lists [${i}] more than once`);r.add(i)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,r=new Map;for(let[h,d]of this.nodes.entries()){let p=new Map;for(let m of d.edges){let y=this.getNode(m.lhsId)?.in,E=this.getNode(m.rhsId)?.in;if(y&&E&&y!==E){let w=cCi(m.lhsDir,m.rhsDir);if(w!=="bend")e.set(DKr(y,E),w)}if(m.lhsId===h){let w=Vpt(m.lhsDir,m.rhsDir);if(w)p.set(w,m.rhsId)}else{let w=Vpt(m.rhsDir,m.lhsDir);if(w)p.set(w,m.lhsId)}}r.set(h,p)}let i=new Set,a=new Set(r.keys()),o=I((h)=>{let d=new Map([[h,[0,0]]]),p=[h];while(p.length>0){let m=p.shift();if(m){i.add(m),a.delete(m);let y=r.get(m);if(!y)throw Error(`BFS error: adjacency list for id ${m} not found. Please report this as a bug.`);let E=d.get(m);if(!E)throw Error(`BFS error: position for id ${m} not found in spatial map. Please report this as a bug.`);let[w,T]=E;y.forEach((x,k)=>{if(!i.has(x))d.set(x,oCi([w,T],k)),p.push(x)})}}return d},"BFS"),l=[];while(a.size>0){let h=a.values().next().value;l.push(o(h))}this.dataStructures={adjList:r,spatialMaps:l,groupAlignments:e}}return this.dataStructures}setElementForId(e,r){this.elements.set(e,r)}getElementById(e){return this.elements.get(e)}getConfig(){return bc({...dCi,...ea().architecture})}getConfigField(e){return this.getConfig()[e]}},fCi=I((e,r)=>{Sh(e,r),e.groups.map((i)=>r.addGroup(i)),e.services.map((i)=>r.addService({...i,type:"service"})),e.junctions.map((i)=>r.addJunction({...i,type:"junction"})),e.edges.map((i)=>r.addEdge(i)),e.alignments?.map((i)=>r.addLayoutHint({direction:i.direction,members:[...i.members]}))},"populateDb"),FKr={parser:{yy:void 0},parse:I(async(e)=>{let r=await lp("architecture",e);Ze.debug(r);let i=FKr.parser?.yy;if(!(i instanceof BKr))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");fCi(r,i)},"parse")},pCi=I((e)=>` + `},"styles"),cCi=lCi,MKr={db:Bpt,renderer:sCi,parser:Zxi,styles:cCi}});var zpt=Cr(function(Aoe,Gpt){(function(r,i){if(typeof Aoe==="object"&&typeof Gpt==="object")Gpt.exports=i();else if(typeof define==="function"&&define.amd)define([],i);else if(typeof Aoe==="object")Aoe.layoutBase=i();else r.layoutBase=i()})(Aoe,function(){return function(e){var r={};function i(a){if(r[a])return r[a].exports;var o=r[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=r,i.i=function(a){return a},i.d=function(a,o,l){if(!i.o(a,o))Object.defineProperty(a,o,{configurable:!1,enumerable:!0,get:l})},i.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(o,"a",o),o},i.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},i.p="",i(i.s=28)}([function(e,r,i){function a(){}a.QUALITY=1,a.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,a.DEFAULT_INCREMENTAL=!1,a.DEFAULT_ANIMATION_ON_LAYOUT=!0,a.DEFAULT_ANIMATION_DURING_LAYOUT=!1,a.DEFAULT_ANIMATION_PERIOD=50,a.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,a.DEFAULT_GRAPH_MARGIN=15,a.NODE_DIMENSIONS_INCLUDE_LABELS=!1,a.SIMPLE_NODE_SIZE=40,a.SIMPLE_NODE_HALF_SIZE=a.SIMPLE_NODE_SIZE/2,a.EMPTY_COMPOUND_NODE_SIZE=40,a.MIN_EDGE_LENGTH=1,a.WORLD_BOUNDARY=1e6,a.INITIAL_WORLD_BOUNDARY=a.WORLD_BOUNDARY/1000,a.WORLD_CENTER_X=1200,a.WORLD_CENTER_Y=900,e.exports=a},function(e,r,i){var a=i(2),o=i(8),l=i(9);function h(p,m,y){a.call(this,y),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=y,this.bendpoints=[],this.source=p,this.target=m}h.prototype=Object.create(a.prototype);for(var d in a)h[d]=a[d];h.prototype.getSource=function(){return this.source},h.prototype.getTarget=function(){return this.target},h.prototype.isInterGraph=function(){return this.isInterGraph},h.prototype.getLength=function(){return this.length},h.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},h.prototype.getBendpoints=function(){return this.bendpoints},h.prototype.getLca=function(){return this.lca},h.prototype.getSourceInLca=function(){return this.sourceInLca},h.prototype.getTargetInLca=function(){return this.targetInLca},h.prototype.getOtherEnd=function(p){if(this.source===p)return this.target;else if(this.target===p)return this.source;else throw"Node is not incident with this edge"},h.prototype.getOtherEndInGraph=function(p,m){var y=this.getOtherEnd(p),v=m.getGraphManager().getRoot();while(!0){if(y.getOwner()==m)return y;if(y.getOwner()==v)break;y=y.getOwner().getParent()}return null},h.prototype.updateLength=function(){var p=[,,,,];if(this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),p),!this.isOverlapingSourceAndTarget){if(this.lengthX=p[0]-p[2],this.lengthY=p[1]-p[3],Math.abs(this.lengthX)<1)this.lengthX=l.sign(this.lengthX);if(Math.abs(this.lengthY)<1)this.lengthY=l.sign(this.lengthY);this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)}},h.prototype.updateLengthSimple=function(){if(this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1)this.lengthX=l.sign(this.lengthX);if(Math.abs(this.lengthY)<1)this.lengthY=l.sign(this.lengthY);this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},e.exports=h},function(e,r,i){function a(o){this.vGraphObject=o}e.exports=a},function(e,r,i){var a=i(2),o=i(10),l=i(13),h=i(0),d=i(16),p=i(5);function m(v,w,T,x){if(T==null&&x==null)x=w;if(a.call(this,x),v.graphManager!=null)v=v.graphManager;if(this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=x,this.edges=[],this.graphManager=v,T!=null&&w!=null)this.rect=new l(w.x,w.y,T.width,T.height);else this.rect=new l}m.prototype=Object.create(a.prototype);for(var y in a)m[y]=a[y];m.prototype.getEdges=function(){return this.edges},m.prototype.getChild=function(){return this.child},m.prototype.getOwner=function(){return this.owner},m.prototype.getWidth=function(){return this.rect.width},m.prototype.setWidth=function(v){this.rect.width=v},m.prototype.getHeight=function(){return this.rect.height},m.prototype.setHeight=function(v){this.rect.height=v},m.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},m.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},m.prototype.getCenter=function(){return new p(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},m.prototype.getLocation=function(){return new p(this.rect.x,this.rect.y)},m.prototype.getRect=function(){return this.rect},m.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},m.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},m.prototype.setRect=function(v,w){this.rect.x=v.x,this.rect.y=v.y,this.rect.width=w.width,this.rect.height=w.height},m.prototype.setCenter=function(v,w){this.rect.x=v-this.rect.width/2,this.rect.y=w-this.rect.height/2},m.prototype.setLocation=function(v,w){this.rect.x=v,this.rect.y=w},m.prototype.moveBy=function(v,w){this.rect.x+=v,this.rect.y+=w},m.prototype.getEdgeListToNode=function(v){var w=[],T,x=this;return x.edges.forEach(function(k){if(k.target==v){if(k.source!=x)throw"Incorrect edge source!";w.push(k)}}),w},m.prototype.getEdgesBetween=function(v){var w=[],T,x=this;return x.edges.forEach(function(k){if(!(k.source==x||k.target==x))throw"Incorrect edge source and/or target";if(k.target==v||k.source==v)w.push(k)}),w},m.prototype.getNeighborsList=function(){var v=new Set,w=this;return w.edges.forEach(function(T){if(T.source==w)v.add(T.target);else{if(T.target!=w)throw"Incorrect incidency!";v.add(T.source)}}),v},m.prototype.withChildren=function(){var v=new Set,w,T;if(v.add(this),this.child!=null){var x=this.child.getNodes();for(var k=0;kw)this.rect.x-=(this.labelWidth-w)/2,this.setWidth(this.labelWidth);else if(this.labelPosHorizontal=="right")this.setWidth(w+this.labelWidth)}if(this.labelHeight){if(this.labelPosVertical=="top")this.rect.y-=this.labelHeight,this.setHeight(T+this.labelHeight);else if(this.labelPosVertical=="center"&&this.labelHeight>T)this.rect.y-=(this.labelHeight-T)/2,this.setHeight(this.labelHeight);else if(this.labelPosVertical=="bottom")this.setHeight(T+this.labelHeight)}}}},m.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},m.prototype.transform=function(v){var w=this.rect.x;if(w>h.WORLD_BOUNDARY)w=h.WORLD_BOUNDARY;else if(w<-h.WORLD_BOUNDARY)w=-h.WORLD_BOUNDARY;var T=this.rect.y;if(T>h.WORLD_BOUNDARY)T=h.WORLD_BOUNDARY;else if(T<-h.WORLD_BOUNDARY)T=-h.WORLD_BOUNDARY;var x=new p(w,T),k=v.inverseTransformPoint(x);this.setLocation(k.x,k.y)},m.prototype.getLeft=function(){return this.rect.x},m.prototype.getRight=function(){return this.rect.x+this.rect.width},m.prototype.getTop=function(){return this.rect.y},m.prototype.getBottom=function(){return this.rect.y+this.rect.height},m.prototype.getParent=function(){if(this.owner==null)return null;return this.owner.getParent()},e.exports=m},function(e,r,i){var a=i(0);function o(){}for(var l in a)o[l]=a[l];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=0.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=0.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=0.3,o.COOLING_ADAPTATION_FACTOR=0.33,o.ADAPTATION_LOWER_NODE_LIMIT=1000,o.ADAPTATION_UPPER_NODE_LIMIT=5000,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=0.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,e.exports=o},function(e,r,i){function a(o,l){if(o==null&&l==null)this.x=0,this.y=0;else this.x=o,this.y=l}a.prototype.getX=function(){return this.x},a.prototype.getY=function(){return this.y},a.prototype.setX=function(o){this.x=o},a.prototype.setY=function(o){this.y=o},a.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},a.prototype.getCopy=function(){return new a(this.x,this.y)},a.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},e.exports=a},function(e,r,i){var a=i(2),o=i(10),l=i(0),h=i(7),d=i(3),p=i(1),m=i(13),y=i(12),v=i(11);function w(x,k,A){if(a.call(this,A),this.estimatedSize=o.MIN_VALUE,this.margin=l.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=x,k!=null&&k instanceof h)this.graphManager=k;else if(k!=null&&k instanceof Layout)this.graphManager=k.graphManager}w.prototype=Object.create(a.prototype);for(var T in a)w[T]=a[T];w.prototype.getNodes=function(){return this.nodes},w.prototype.getEdges=function(){return this.edges},w.prototype.getGraphManager=function(){return this.graphManager},w.prototype.getParent=function(){return this.parent},w.prototype.getLeft=function(){return this.left},w.prototype.getRight=function(){return this.right},w.prototype.getTop=function(){return this.top},w.prototype.getBottom=function(){return this.bottom},w.prototype.isConnected=function(){return this.isConnected},w.prototype.add=function(x,k,A){if(k==null&&A==null){var R=x;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(R)>-1)throw"Node already in graph!";return R.owner=this,this.getNodes().push(R),R}else{var N=x;if(!(this.getNodes().indexOf(k)>-1&&this.getNodes().indexOf(A)>-1))throw"Source or target not in graph!";if(!(k.owner==A.owner&&k.owner==this))throw"Both owners must be this graph!";if(k.owner!=A.owner)return null;if(N.source=k,N.target=A,N.isInterGraph=!1,this.getEdges().push(N),k.edges.push(N),A!=k)A.edges.push(N);return N}},w.prototype.remove=function(x){var k=x;if(x instanceof d){if(k==null)throw"Node is null!";if(!(k.owner!=null&&k.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";var A=k.edges.slice(),R,N=A.length;for(var L=0;L-1&&P>-1))throw"Source and/or target doesn't know this edge!";if(R.source.edges.splice(D,1),R.target!=R.source)R.target.edges.splice(P,1);var B=R.source.owner.getEdges().indexOf(R);if(B==-1)throw"Not in owner's edge list!";R.source.owner.getEdges().splice(B,1)}},w.prototype.updateLeftTop=function(){var{MAX_VALUE:x,MAX_VALUE:k}=o,A,R,N,L=this.getNodes(),B=L.length;for(var D=0;DA)x=A;if(k>R)k=R}if(x==o.MAX_VALUE)return null;if(L[0].getParent().paddingLeft!=null)N=L[0].getParent().paddingLeft;else N=this.margin;return this.left=k-N,this.top=x-N,new y(this.left,this.top)},w.prototype.updateBounds=function(x){var k=o.MAX_VALUE,A=-o.MAX_VALUE,R=o.MAX_VALUE,N=-o.MAX_VALUE,L,B,D,P,F,H=this.nodes,W=H.length;for(var X=0;XL)k=L;if(AD)R=D;if(NL)k=L;if(AD)R=D;if(N=this.nodes.length){var W=0;if(A.forEach(function(X){if(X.owner==x)W++}),W==this.nodes.length)this.isConnected=!0}},e.exports=w},function(e,r,i){var a,o=i(1);function l(h){a=i(6),this.layout=h,this.graphs=[],this.edges=[]}l.prototype.addRoot=function(){var h=this.layout.newGraph(),d=this.layout.newNode(null),p=this.add(h,d);return this.setRootGraph(p),this.rootGraph},l.prototype.add=function(h,d,p,m,y){if(p==null&&m==null&&y==null){if(h==null)throw"Graph is null!";if(d==null)throw"Parent node is null!";if(this.graphs.indexOf(h)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(h),h.parent!=null)throw"Already has a parent!";if(d.child!=null)throw"Already has a child!";return h.parent=d,d.child=h,h}else{y=p,m=d,p=h;var v=m.getOwner(),w=y.getOwner();if(!(v!=null&&v.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(w!=null&&w.getGraphManager()==this))throw"Target not in this graph mgr!";if(v==w)return p.isInterGraph=!1,v.add(p,m,y);else{if(p.isInterGraph=!0,p.source=m,p.target=y,this.edges.indexOf(p)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(p),!(p.source!=null&&p.target!=null))throw"Edge source and/or target is null!";if(!(p.source.edges.indexOf(p)==-1&&p.target.edges.indexOf(p)==-1))throw"Edge already in source and/or target incidency list!";return p.source.edges.push(p),p.target.edges.push(p),p}}},l.prototype.remove=function(h){if(h instanceof a){var d=h;if(d.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(d==this.rootGraph||d.parent!=null&&d.parent.graphManager==this))throw"Invalid parent node!";var p=[];p=p.concat(d.getEdges());var m,y=p.length;for(var v=0;v=h.getRight())d[0]+=Math.min(h.getX()-l.getX(),l.getRight()-h.getRight());else if(h.getX()<=l.getX()&&h.getRight()>=l.getRight())d[0]+=Math.min(l.getX()-h.getX(),h.getRight()-l.getRight());if(l.getY()<=h.getY()&&l.getBottom()>=h.getBottom())d[1]+=Math.min(h.getY()-l.getY(),l.getBottom()-h.getBottom());else if(h.getY()<=l.getY()&&h.getBottom()>=l.getBottom())d[1]+=Math.min(l.getY()-h.getY(),h.getBottom()-l.getBottom());var y=Math.abs((h.getCenterY()-l.getCenterY())/(h.getCenterX()-l.getCenterX()));if(h.getCenterY()===l.getCenterY()&&h.getCenterX()===l.getCenterX())y=1;var v=y*d[0],w=d[1]/y;if(d[0]v)return d[0]=p,d[1]=T,d[2]=y,d[3]=H,!1;else if(my)return d[0]=w,d[1]=m,d[2]=P,d[3]=v,!1;else if(py)d[0]=k,d[1]=A,Y=!0;else d[0]=x,d[1]=T,Y=!0;else if(J===j)if(p>y)d[0]=w,d[1]=T,Y=!0;else d[0]=R,d[1]=A,Y=!0;if(-Z===j)if(y>p)d[2]=F,d[3]=H,K=!0;else d[2]=P,d[3]=D,K=!0;else if(Z===j)if(y>p)d[2]=B,d[3]=D,K=!0;else d[2]=W,d[3]=H,K=!0;if(Y&&K)return!1;if(p>y)if(m>v)ee=this.getCardinalDirection(J,j,4),z=this.getCardinalDirection(Z,j,2);else ee=this.getCardinalDirection(-J,j,3),z=this.getCardinalDirection(-Z,j,1);else if(m>v)ee=this.getCardinalDirection(-J,j,1),z=this.getCardinalDirection(-Z,j,3);else ee=this.getCardinalDirection(J,j,2),z=this.getCardinalDirection(Z,j,4);if(!Y)switch(ee){case 1:ie=T,ne=p+-L/j,d[0]=ne,d[1]=ie;break;case 2:ne=R,ie=m+N*j,d[0]=ne,d[1]=ie;break;case 3:ie=A,ne=p+L/j,d[0]=ne,d[1]=ie;break;case 4:ne=k,ie=m+-N*j,d[0]=ne,d[1]=ie;break}if(!K)switch(z){case 1:oe=D,se=y+-Q/j,d[2]=se,d[3]=oe;break;case 2:se=W,oe=v+X*j,d[2]=se,d[3]=oe;break;case 3:oe=H,se=y+Q/j,d[2]=se,d[3]=oe;break;case 4:se=F,oe=v+-X*j,d[2]=se,d[3]=oe;break}}return!1},o.getCardinalDirection=function(l,h,d){if(l>h)return d;else return 1+d%4},o.getIntersection=function(l,h,d,p){if(p==null)return this.getIntersection2(l,h,d);var{x:m,y}=l,{x:v,y:w}=h,{x:T,y:x}=d,{x:k,y:A}=p,R=void 0,N=void 0,L=void 0,B=void 0,D=void 0,P=void 0,F=void 0,H=void 0,W=void 0;if(L=w-y,D=m-v,F=v*y-m*w,B=A-x,P=T-k,H=k*x-T*A,W=L*P-B*D,W===0)return null;return R=(D*H-P*F)/W,N=(B*F-L*H)/W,new a(R,N)},o.angleOfVector=function(l,h,d,p){var m=void 0;if(l!==d){if(m=Math.atan((p-h)/(d-l)),d=0){var A=(-T+Math.sqrt(T*T-4*w*x))/(2*w),R=(-T-Math.sqrt(T*T-4*w*x))/(2*w),N=null;if(A>=0&&A<=1)return[A];if(R>=0&&R<=1)return[R];return N}else return null},o.HALF_PI=0.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,e.exports=o},function(e,r,i){function a(){}a.sign=function(o){if(o>0)return 1;else if(o<0)return-1;else return 0},a.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},a.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},e.exports=a},function(e,r,i){function a(){}a.MAX_VALUE=2147483647,a.MIN_VALUE=-2147483648,e.exports=a},function(e,r,i){var a=function(){function m(y,v){for(var w=0;w"u"?"undefined":a(l);return l==null||h!="object"&&h!="function"},e.exports=o},function(e,r,i){function a(T){if(Array.isArray(T)){for(var x=0,k=Array(T.length);x0&&x){L.push(D[0]);while(L.length>0&&x){var P=L[0];L.splice(0,1),N.add(P);var F=P.getEdges();for(var R=0;R-1)D.splice(Q,1)}N=new Set,B=new Map}}return T},w.prototype.createDummyNodesForBendpoints=function(T){var x=[],k=T.source,A=this.graphManager.calcLowestCommonAncestor(T.source,T.target);for(var R=0;R0){var A=this.edgeToDummyNodes.get(k);for(var R=0;R=0)x.splice(H,1);var W=B.getNeighborsList();W.forEach(function(Y){if(k.indexOf(Y)<0){var K=A.get(Y),J=K-1;if(J==1)P.push(Y);A.set(Y,J)}})}if(k=k.concat(P),x.length==1||x.length==2)R=!0,N=x[0]}return N},w.prototype.setGraphManager=function(T){this.graphManager=T},e.exports=w},function(e,r,i){function a(){}a.seed=1,a.x=0,a.nextDouble=function(){return a.x=Math.sin(a.seed++)*1e4,a.x-Math.floor(a.x)},e.exports=a},function(e,r,i){var a=i(5);function o(l,h){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(l){this.lworldOrgX=l},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(l){this.lworldOrgY=l},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(l){this.lworldExtX=l},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(l){this.lworldExtY=l},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(l){this.ldeviceOrgX=l},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(l){this.ldeviceOrgY=l},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(l){this.ldeviceExtX=l},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(l){this.ldeviceExtY=l},o.prototype.transformX=function(l){var h=0,d=this.lworldExtX;if(d!=0)h=this.ldeviceOrgX+(l-this.lworldOrgX)*this.ldeviceExtX/d;return h},o.prototype.transformY=function(l){var h=0,d=this.lworldExtY;if(d!=0)h=this.ldeviceOrgY+(l-this.lworldOrgY)*this.ldeviceExtY/d;return h},o.prototype.inverseTransformX=function(l){var h=0,d=this.ldeviceExtX;if(d!=0)h=this.lworldOrgX+(l-this.ldeviceOrgX)*this.lworldExtX/d;return h},o.prototype.inverseTransformY=function(l){var h=0,d=this.ldeviceExtY;if(d!=0)h=this.lworldOrgY+(l-this.ldeviceOrgY)*this.lworldExtY/d;return h},o.prototype.inverseTransformPoint=function(l){var h=new a(this.inverseTransformX(l.x),this.inverseTransformY(l.y));return h},e.exports=o},function(e,r,i){function a(v){if(Array.isArray(v)){for(var w=0,T=Array(v.length);wl.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(this.coolingFactor*l.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(v-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-l.COOLING_ADAPTATION_FACTOR));this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT_INCREMENTAL}else{if(v>l.ADAPTATION_LOWER_NODE_LIMIT)this.coolingFactor=Math.max(l.COOLING_ADAPTATION_FACTOR,1-(v-l.ADAPTATION_LOWER_NODE_LIMIT)/(l.ADAPTATION_UPPER_NODE_LIMIT-l.ADAPTATION_LOWER_NODE_LIMIT)*(1-l.COOLING_ADAPTATION_FACTOR));else this.coolingFactor=1;this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=l.MAX_NODE_DISPLACEMENT}this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*l.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},m.prototype.calcSpringForces=function(){var v=this.getAllEdges(),w;for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:!0,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,T,x,k,A,R=this.getAllNodes(),N;if(this.useFRGridVariant){if(this.totalIterations%l.GRID_CALCULATION_CHECK_PERIOD==1&&v)this.updateGrid();N=new Set;for(T=0;TL||N>L)v.gravitationForceX=-this.gravityConstant*k,v.gravitationForceY=-this.gravityConstant*A}else if(L=w.getEstimatedSize()*this.compoundGravityRangeFactor,R>L||N>L)v.gravitationForceX=-this.gravityConstant*k*this.compoundGravityConstant,v.gravitationForceY=-this.gravityConstant*A*this.compoundGravityConstant},m.prototype.isConverged=function(){var v,w=!1;if(this.totalIterations>this.maxIterations/3)w=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2;return v=this.totalDisplacement=R.length||L>=R[0].length))for(var B=0;Bm}}]),d}();e.exports=h},function(e,r,i){function a(){}a.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var l=Math.min(this.m,this.n);this.s=function(si){var dn=[];while(si-- >0)dn.push(0);return dn}(Math.min(this.m+1,this.n)),this.U=function(si){var dn=function Ii(Vn){if(Vn.length==0)return 0;else{var Ei=[];for(var vn=0;vn0)dn.push(0);return dn}(this.n),d=function(si){var dn=[];while(si-- >0)dn.push(0);return dn}(this.m),p=!0,m=!0,y=Math.min(this.m-1,this.n),v=Math.max(0,Math.min(this.n-2,this.m));for(var w=0;w=0;j--)if(this.s[j]!==0){for(var ee=j+1;ee=0;ye--){if(function(si,dn){return si&&dn}(ye0){var dt=void 0,zt=void 0;for(dt=K-2;dt>=-1;dt--){if(dt===-1)break;if(Math.abs(h[dt])<=xt+Qe*(Math.abs(this.s[dt])+Math.abs(this.s[dt+1]))){h[dt]=0;break}}if(dt===K-2)zt=4;else{var Kt=void 0;for(Kt=K-1;Kt>=dt;Kt--){if(Kt===dt)break;var rr=(Kt!==K?Math.abs(h[Kt]):0)+(Kt!==dt+1?Math.abs(h[Kt-1]):0);if(Math.abs(this.s[Kt])<=xt+Qe*rr){this.s[Kt]=0;break}}if(Kt===dt)zt=3;else if(Kt===K-1)zt=1;else zt=2,dt=Kt}switch(dt++,zt){case 1:{var je=h[K-2];h[K-2]=0;for(var Nt=K-2;Nt>=dt;Nt--){var ct=a.hypot(this.s[Nt],je),bt=this.s[Nt]/ct,Pe=je/ct;if(this.s[Nt]=ct,Nt!==dt)je=-Pe*h[Nt-1],h[Nt-1]=bt*h[Nt-1];if(m)for(var Ue=0;Ue=this.s[dt+1])break;var Et=this.s[dt];if(this.s[dt]=this.s[dt+1],this.s[dt+1]=Et,m&&dtMath.abs(l))h=l/o,h=Math.abs(o)*Math.sqrt(1+h*h);else if(l!=0)h=o/l,h=Math.abs(l)*Math.sqrt(1+h*h);else h=0;return h},e.exports=a},function(e,r,i){var a=function(){function h(d,p){for(var m=0;m2&&arguments[2]!==void 0?arguments[2]:1,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,v=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,h),this.sequence1=d,this.sequence2=p,this.match_score=m,this.mismatch_penalty=y,this.gap_penalty=v,this.iMax=d.length+1,this.jMax=p.length+1,this.grid=Array(this.iMax);for(var w=0;w=0;d--){var p=this.listeners[d];if(p.event===l&&p.callback===h)this.listeners.splice(d,1)}},o.emit=function(l,h){for(var d=0;d{var r={45:(l,h,d)=>{var p={};p.layoutBase=d(551),p.CoSEConstants=d(806),p.CoSEEdge=d(767),p.CoSEGraph=d(880),p.CoSEGraphManager=d(578),p.CoSELayout=d(765),p.CoSENode=d(991),p.ConstraintHandler=d(902),l.exports=p},806:(l,h,d)=>{var p=d(551).FDLayoutConstants;function m(){}for(var y in p)m[y]=p[y];m.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,m.DEFAULT_RADIAL_SEPARATION=p.DEFAULT_EDGE_LENGTH,m.DEFAULT_COMPONENT_SEPERATION=60,m.TILE=!0,m.TILING_PADDING_VERTICAL=10,m.TILING_PADDING_HORIZONTAL=10,m.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,m.ENFORCE_CONSTRAINTS=!0,m.APPLY_LAYOUT=!0,m.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,m.TREE_REDUCTION_ON_INCREMENTAL=!0,m.PURE_INCREMENTAL=m.DEFAULT_INCREMENTAL,l.exports=m},767:(l,h,d)=>{var p=d(551).FDLayoutEdge;function m(v,w,T){p.call(this,v,w,T)}m.prototype=Object.create(p.prototype);for(var y in p)m[y]=p[y];l.exports=m},880:(l,h,d)=>{var p=d(551).LGraph;function m(v,w,T){p.call(this,v,w,T)}m.prototype=Object.create(p.prototype);for(var y in p)m[y]=p[y];l.exports=m},578:(l,h,d)=>{var p=d(551).LGraphManager;function m(v){p.call(this,v)}m.prototype=Object.create(p.prototype);for(var y in p)m[y]=p[y];l.exports=m},765:(l,h,d)=>{var p=d(551).FDLayout,m=d(578),y=d(880),v=d(991),w=d(767),T=d(806),x=d(902),k=d(551).FDLayoutConstants,A=d(551).LayoutConstants,R=d(551).Point,N=d(551).PointD,L=d(551).DimensionD,B=d(551).Layout,D=d(551).Integer,P=d(551).IGeometry,F=d(551).LGraph,H=d(551).Transform,W=d(551).LinkedList;function X(){p.call(this),this.toBeTiled={},this.constraints={}}X.prototype=Object.create(p.prototype);for(var Q in p)X[Q]=p[Q];X.prototype.newGraphManager=function(){var Y=new m(this);return this.graphManager=Y,Y},X.prototype.newGraph=function(Y){return new y(null,this.graphManager,Y)},X.prototype.newNode=function(Y){return new v(this.graphManager,Y)},X.prototype.newEdge=function(Y){return new w(null,null,Y)},X.prototype.initParameters=function(){if(p.prototype.initParameters.call(this,arguments),!this.isSubLayout){if(T.DEFAULT_EDGE_LENGTH<10)this.idealEdgeLength=10;else this.idealEdgeLength=T.DEFAULT_EDGE_LENGTH;this.useSmartIdealEdgeLengthCalculation=T.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=k.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=k.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=k.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1}},X.prototype.initSpringEmbedder=function(){p.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/k.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=0.04,this.coolingAdjuster=1},X.prototype.layout=function(){var Y=A.DEFAULT_CREATE_BENDS_AS_NEEDED;if(Y)this.createBendpoints(),this.graphManager.resetAllEdges();return this.level=0,this.classicLayout()},X.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),!this.incremental){var Y=this.getFlatForest();if(Y.length>0)this.positionNodesRadially(Y);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var K=new Set(this.getAllNodes()),J=this.nodesWithGravity.filter(function(Z){return K.has(Z)});this.graphManager.setAllNodesToApplyGravitation(J),this.positionNodesRandomly()}}else if(T.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var K=new Set(this.getAllNodes()),J=this.nodesWithGravity.filter(function(ee){return K.has(ee)});this.graphManager.setAllNodesToApplyGravitation(J)}if(Object.keys(this.constraints).length>0)x.handleConstraints(this),this.initConstraintVariables();if(this.initSpringEmbedder(),T.APPLY_LAYOUT)this.runSpringEmbedder();return!0},X.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%k.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.coolingCycle++,this.layoutQuality==0)this.coolingAdjuster=this.coolingCycle;else if(this.layoutQuality==1)this.coolingAdjuster=this.coolingCycle/3;this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var Y=new Set(this.getAllNodes()),K=this.nodesWithGravity.filter(function(j){return Y.has(j)});if(this.graphManager.setAllNodesToApplyGravitation(K),this.graphManager.updateBounds(),this.updateGrid(),T.PURE_INCREMENTAL)this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2;else this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;if(this.afterGrowthIterations%10==0)this.graphManager.updateBounds(),this.updateGrid();if(T.PURE_INCREMENTAL)this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100);else this.coolingFactor=k.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100);this.afterGrowthIterations++}var J=!this.isTreeGrowing&&!this.isGrowthFinished,Z=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(J,Z),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},X.prototype.getPositionsData=function(){var Y=this.graphManager.getAllNodes(),K={};for(var J=0;J0)this.updateDisplacements();for(var J=0;J0)Z.fixedNodeWeight=ee}}if(this.constraints.relativePlacementConstraint){var z=new Map,ne=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(Ee){Y.fixedNodesOnHorizontal.add(Ee),Y.fixedNodesOnVertical.add(Ee)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var ie=this.constraints.alignmentConstraint.vertical;for(var J=0;J=2*Ee.length/3;Xe--)ze=Math.floor(Math.random()*(Xe+1)),Me=Ee[Xe],Ee[Xe]=Ee[ze],Ee[ze]=Me;return Ee},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(Ee){if(Ee.left){var ze=z.has(Ee.left)?z.get(Ee.left):Ee.left,Me=z.has(Ee.right)?z.get(Ee.right):Ee.right;if(!Y.nodesInRelativeHorizontal.includes(ze))if(Y.nodesInRelativeHorizontal.push(ze),Y.nodeToRelativeConstraintMapHorizontal.set(ze,[]),Y.dummyToNodeForVerticalAlignment.has(ze))Y.nodeToTempPositionMapHorizontal.set(ze,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(ze)[0]).getCenterX());else Y.nodeToTempPositionMapHorizontal.set(ze,Y.idToNodeMap.get(ze).getCenterX());if(!Y.nodesInRelativeHorizontal.includes(Me))if(Y.nodesInRelativeHorizontal.push(Me),Y.nodeToRelativeConstraintMapHorizontal.set(Me,[]),Y.dummyToNodeForVerticalAlignment.has(Me))Y.nodeToTempPositionMapHorizontal.set(Me,Y.idToNodeMap.get(Y.dummyToNodeForVerticalAlignment.get(Me)[0]).getCenterX());else Y.nodeToTempPositionMapHorizontal.set(Me,Y.idToNodeMap.get(Me).getCenterX());Y.nodeToRelativeConstraintMapHorizontal.get(ze).push({right:Me,gap:Ee.gap}),Y.nodeToRelativeConstraintMapHorizontal.get(Me).push({left:ze,gap:Ee.gap})}else{var Xe=ne.has(Ee.top)?ne.get(Ee.top):Ee.top,Ye=ne.has(Ee.bottom)?ne.get(Ee.bottom):Ee.bottom;if(!Y.nodesInRelativeVertical.includes(Xe))if(Y.nodesInRelativeVertical.push(Xe),Y.nodeToRelativeConstraintMapVertical.set(Xe,[]),Y.dummyToNodeForHorizontalAlignment.has(Xe))Y.nodeToTempPositionMapVertical.set(Xe,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(Xe)[0]).getCenterY());else Y.nodeToTempPositionMapVertical.set(Xe,Y.idToNodeMap.get(Xe).getCenterY());if(!Y.nodesInRelativeVertical.includes(Ye))if(Y.nodesInRelativeVertical.push(Ye),Y.nodeToRelativeConstraintMapVertical.set(Ye,[]),Y.dummyToNodeForHorizontalAlignment.has(Ye))Y.nodeToTempPositionMapVertical.set(Ye,Y.idToNodeMap.get(Y.dummyToNodeForHorizontalAlignment.get(Ye)[0]).getCenterY());else Y.nodeToTempPositionMapVertical.set(Ye,Y.idToNodeMap.get(Ye).getCenterY());Y.nodeToRelativeConstraintMapVertical.get(Xe).push({bottom:Ye,gap:Ee.gap}),Y.nodeToRelativeConstraintMapVertical.get(Ye).push({top:Xe,gap:Ee.gap})}});else{var oe=new Map,he=new Map;this.constraints.relativePlacementConstraint.forEach(function(Ee){if(Ee.left){var ze=z.has(Ee.left)?z.get(Ee.left):Ee.left,Me=z.has(Ee.right)?z.get(Ee.right):Ee.right;if(oe.has(ze))oe.get(ze).push(Me);else oe.set(ze,[Me]);if(oe.has(Me))oe.get(Me).push(ze);else oe.set(Me,[ze])}else{var Xe=ne.has(Ee.top)?ne.get(Ee.top):Ee.top,Ye=ne.has(Ee.bottom)?ne.get(Ee.bottom):Ee.bottom;if(he.has(Xe))he.get(Xe).push(Ye);else he.set(Xe,[Ye]);if(he.has(Ye))he.get(Ye).push(Xe);else he.set(Ye,[Xe])}});var ye=function(ze,Me){var Xe=[],Ye=[],Qe=new W,xt=new Set,dt=0;return ze.forEach(function(zt,Kt){if(!xt.has(Kt)){Xe[dt]=[],Ye[dt]=!1;var rr=Kt;Qe.push(rr),xt.add(rr),Xe[dt].push(rr);while(Qe.length!=0){if(rr=Qe.shift(),Me.has(rr))Ye[dt]=!0;var je=ze.get(rr);je.forEach(function(Nt){if(!xt.has(Nt))Qe.push(Nt),xt.add(Nt),Xe[dt].push(Nt)})}dt++}}),{components:Xe,isFixed:Ye}},Se=ye(oe,Y.fixedNodesOnHorizontal);this.componentsOnHorizontal=Se.components,this.fixedComponentsOnHorizontal=Se.isFixed;var Ie=ye(he,Y.fixedNodesOnVertical);this.componentsOnVertical=Ie.components,this.fixedComponentsOnVertical=Ie.isFixed}}},X.prototype.updateDisplacements=function(){var Y=this;if(this.constraints.fixedNodeConstraint)this.constraints.fixedNodeConstraint.forEach(function(Ie){var Ee=Y.idToNodeMap.get(Ie.nodeId);Ee.displacementX=0,Ee.displacementY=0});if(this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical){var K=this.constraints.alignmentConstraint.vertical;for(var J=0;J1){var ne;for(ne=0;neZ)Z=Math.floor(z.y);ee=Math.floor(z.x+T.DEFAULT_COMPONENT_SEPERATION)}this.transform(new N(A.WORLD_CENTER_X-z.x/2,A.WORLD_CENTER_Y-z.y/2))},X.radialLayout=function(Y,K,J){var Z=Math.max(this.maxDiagonalInTree(Y),T.DEFAULT_RADIAL_SEPARATION);X.branchRadialLayout(K,null,0,359,0,Z);var j=F.calculateBounds(Y),ee=new H;ee.setDeviceOrgX(j.getMinX()),ee.setDeviceOrgY(j.getMinY()),ee.setWorldOrgX(J.x),ee.setWorldOrgY(J.y);for(var z=0;z1){var Xe=Me[0];Me.splice(0,1);var Ye=ye.indexOf(Xe);if(Ye>=0)ye.splice(Ye,1);Ee--,Se--}if(K!=null)ze=(ye.indexOf(Me[0])+1)%Ee;else ze=0;var Qe=Math.abs(Z-J)/Se;for(var xt=ze;Ie!=Se;xt=++xt%Ee){var dt=ye[xt].getOtherEnd(Y);if(dt==K)continue;var zt=(J+Ie*Qe)%360,Kt=(zt+Qe)%360;X.branchRadialLayout(dt,Y,zt,Kt,j+ee,ee),Ie++}},X.maxDiagonalInTree=function(Y){var K=D.MIN_VALUE;for(var J=0;JK)K=j}return K},X.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},X.prototype.groupZeroDegreeMembers=function(){var Y=this,K={};this.memberGroups={},this.idToDummyNode={};var J=[],Z=this.graphManager.getAllNodes();for(var j=0;j"u")K[ne]=[];K[ne]=K[ne].concat(ee)}Object.keys(K).forEach(function(ie){if(K[ie].length>1){var se="DummyCompound_"+ie;Y.memberGroups[se]=K[ie];var oe=K[ie][0].getParent(),he=new v(Y.graphManager);he.id=se,he.paddingLeft=oe.paddingLeft||0,he.paddingRight=oe.paddingRight||0,he.paddingBottom=oe.paddingBottom||0,he.paddingTop=oe.paddingTop||0,Y.idToDummyNode[se]=he;var ye=Y.getGraphManager().add(Y.newGraph(),he),Se=oe.getChild();Se.add(he);for(var Ie=0;Iej)Z.rect.x-=(Z.labelWidth-j)/2,Z.setWidth(Z.labelWidth),Z.labelMarginLeft=(Z.labelWidth-j)/2;else if(Z.labelPosHorizontal=="right")Z.setWidth(j+Z.labelWidth)}if(Z.labelHeight){if(Z.labelPosVertical=="top")Z.rect.y-=Z.labelHeight,Z.setHeight(ee+Z.labelHeight),Z.labelMarginTop=Z.labelHeight;else if(Z.labelPosVertical=="center"&&Z.labelHeight>ee)Z.rect.y-=(Z.labelHeight-ee)/2,Z.setHeight(Z.labelHeight),Z.labelMarginTop=(Z.labelHeight-ee)/2;else if(Z.labelPosVertical=="bottom")Z.setHeight(ee+Z.labelHeight)}}})},X.prototype.repopulateCompounds=function(){for(var Y=this.compoundOrder.length-1;Y>=0;Y--){var K=this.compoundOrder[Y],{id:J,paddingLeft:Z,paddingTop:j,labelMarginLeft:ee,labelMarginTop:z}=K;this.adjustLocations(this.tiledMemberPack[J],K.rect.x,K.rect.y,Z,j,ee,z)}},X.prototype.repopulateZeroDegreeMembers=function(){var Y=this,K=this.tiledZeroDegreePack;Object.keys(K).forEach(function(J){var Z=Y.idToDummyNode[J],{paddingLeft:j,paddingTop:ee,labelMarginLeft:z,labelMarginTop:ne}=Z;Y.adjustLocations(K[J],Z.rect.x,Z.rect.y,j,ee,z,ne)})},X.prototype.getToBeTiled=function(Y){var K=Y.id;if(this.toBeTiled[K]!=null)return this.toBeTiled[K];var J=Y.getChild();if(J==null)return this.toBeTiled[K]=!1,!1;var Z=J.getNodes();for(var j=0;j0)return this.toBeTiled[K]=!1,!1;if(ee.getChild()==null){this.toBeTiled[ee.id]=!1;continue}if(!this.getToBeTiled(ee))return this.toBeTiled[K]=!1,!1}return this.toBeTiled[K]=!0,!0},X.prototype.getNodeDegree=function(Y){var K=Y.id,J=Y.getEdges(),Z=0;for(var j=0;joe)oe=ye.rect.height}J+=oe+Y.verticalPadding}},X.prototype.tileCompoundMembers=function(Y,K){var J=this;this.tiledMemberPack=[],Object.keys(Y).forEach(function(Z){var j=K[Z];if(J.tiledMemberPack[Z]=J.tileNodes(Y[Z],j.paddingLeft+j.paddingRight),j.rect.width=J.tiledMemberPack[Z].width,j.rect.height=J.tiledMemberPack[Z].height,j.setCenter(J.tiledMemberPack[Z].centerX,J.tiledMemberPack[Z].centerY),j.labelMarginLeft=0,j.labelMarginTop=0,T.NODE_DIMENSIONS_INCLUDE_LABELS){var ee=j.rect.width,z=j.rect.height;if(j.labelWidth){if(j.labelPosHorizontal=="left")j.rect.x-=j.labelWidth,j.setWidth(ee+j.labelWidth),j.labelMarginLeft=j.labelWidth;else if(j.labelPosHorizontal=="center"&&j.labelWidth>ee)j.rect.x-=(j.labelWidth-ee)/2,j.setWidth(j.labelWidth),j.labelMarginLeft=(j.labelWidth-ee)/2;else if(j.labelPosHorizontal=="right")j.setWidth(ee+j.labelWidth)}if(j.labelHeight){if(j.labelPosVertical=="top")j.rect.y-=j.labelHeight,j.setHeight(z+j.labelHeight),j.labelMarginTop=j.labelHeight;else if(j.labelPosVertical=="center"&&j.labelHeight>z)j.rect.y-=(j.labelHeight-z)/2,j.setHeight(j.labelHeight),j.labelMarginTop=(j.labelHeight-z)/2;else if(j.labelPosVertical=="bottom")j.setHeight(z+j.labelHeight)}}})},X.prototype.tileNodes=function(Y,K){var J=this.tileNodesByFavoringDim(Y,K,!0),Z=this.tileNodesByFavoringDim(Y,K,!1),j=this.getOrgRatio(J),ee=this.getOrgRatio(Z),z;if(eene)ne=Ie.getWidth()});var ie=ee/j,se=z/j,oe=Math.pow(J-Z,2)+4*(ie+Z)*(se+J)*j,he=(Z-J+Math.sqrt(oe))/(2*(ie+Z)),ye;if(K){if(ye=Math.ceil(he),ye==he)ye++}else ye=Math.floor(he);var Se=ye*(ie+Z)-Z;if(ne>Se)Se=ne;return Se+=Z*2,Se},X.prototype.tileNodesByFavoringDim=function(Y,K,J){var{TILING_PADDING_VERTICAL:Z,TILING_PADDING_HORIZONTAL:j,TILING_COMPARE_BY:ee}=T,z={rows:[],rowWidth:[],rowHeight:[],width:0,height:K,verticalPadding:Z,horizontalPadding:j,centerX:0,centerY:0};if(ee)z.idealRowWidth=this.calcIdealRowWidth(Y,J);var ne=function(Ee){return Ee.rect.width*Ee.rect.height},ie=function(Ee,ze){return ne(ze)-ne(Ee)};Y.sort(function(Ie,Ee){var ze=ie;if(z.idealRowWidth)return ze=ee,ze(Ie.id,Ee.id);return ze(Ie,Ee)});var se=0,oe=0;for(var he=0;he0)z+=Y.horizontalPadding;if(Y.rowWidth[J]=z,Y.width0)ne+=Y.verticalPadding;var ie=0;if(ne>Y.rowHeight[J])ie=Y.rowHeight[J],Y.rowHeight[J]=ne,ie=Y.rowHeight[J]-ie;Y.height+=ie,Y.rows[J].push(K)},X.prototype.getShortestRowIndex=function(Y){var K=-1,J=Number.MAX_VALUE;for(var Z=0;ZJ)K=Z,J=Y.rowWidth[Z];return K},X.prototype.canAddHorizontal=function(Y,K,J){if(Y.idealRowWidth){var Z=Y.rows.length-1,j=Y.rowWidth[Z];return j+K+Y.horizontalPadding<=Y.idealRowWidth}var ee=this.getShortestRowIndex(Y);if(ee<0)return!0;var z=Y.rowWidth[ee];if(z+Y.horizontalPadding+K<=Y.width)return!0;var ne=0;if(Y.rowHeight[ee]0)ne=J+Y.verticalPadding-Y.rowHeight[ee]}var ie;if(Y.width-z>=K+Y.horizontalPadding)ie=(Y.height+ne)/(z+K+Y.horizontalPadding);else ie=(Y.height+ne)/Y.width;ne=J+Y.verticalPadding;var se;if(Y.widthee&&K!=J){Z.splice(-1,1),Y.rows[J].push(j),Y.rowWidth[K]=Y.rowWidth[K]-ee,Y.rowWidth[J]=Y.rowWidth[J]+ee,Y.width=Y.rowWidth[instance.getLongestRowIndex(Y)];var z=Number.MIN_VALUE;for(var ne=0;nez)z=Z[ne].height;if(K>0)z+=Y.verticalPadding;var ie=Y.rowHeight[K]+Y.rowHeight[J];if(Y.rowHeight[K]=z,Y.rowHeight[J]0)for(var Se=j;Se<=ee;Se++)ye[0]+=this.grid[Se][z-1].length+this.grid[Se][z].length-1;if(ee0)for(var Se=z;Se<=ne;Se++)ye[3]+=this.grid[j-1][Se].length+this.grid[j][Se].length-1;var Ie=D.MAX_VALUE,Ee,ze;for(var Me=0;Me{var p=d(551).FDLayoutNode,m=d(551).IMath;function y(w,T,x,k){p.call(this,w,T,x,k)}y.prototype=Object.create(p.prototype);for(var v in p)y[v]=p[v];y.prototype.calculateDisplacement=function(){var w=this.graphManager.getLayout();if(this.getChild()!=null&&this.fixedNodeWeight)this.displacementX+=w.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=w.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight;else this.displacementX+=w.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=w.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren;if(Math.abs(this.displacementX)>w.coolingFactor*w.maxNodeDisplacement)this.displacementX=w.coolingFactor*w.maxNodeDisplacement*m.sign(this.displacementX);if(Math.abs(this.displacementY)>w.coolingFactor*w.maxNodeDisplacement)this.displacementY=w.coolingFactor*w.maxNodeDisplacement*m.sign(this.displacementY);if(this.child&&this.child.getNodes().length>0)this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},y.prototype.propogateDisplacementToChildren=function(w,T){var x=this.getChild().getNodes(),k;for(var A=0;A{function p(x){if(Array.isArray(x)){for(var k=0,A=Array(x.length);k0){var Xt=0;lr.forEach(function(Et){if(Ge=="horizontal")gt.set(Et,R.has(Et)?N[R.get(Et)]:we.get(Et)),Xt+=gt.get(Et);else gt.set(Et,R.has(Et)?L[R.get(Et)]:we.get(Et)),Xt+=gt.get(Et)}),Xt=Xt/lr.length,Zt.forEach(function(Et){if(!ke.has(Et))gt.set(Et,Xt)})}else{var In=0;Zt.forEach(function(Et){if(Ge=="horizontal")In+=R.has(Et)?N[R.get(Et)]:we.get(Et);else In+=R.has(Et)?L[R.get(Et)]:we.get(Et)}),In=In/Zt.length,Zt.forEach(function(Et){gt.set(Et,In)})}});var qt=function(){var lr=ir.shift(),Xt=be.get(lr);Xt.forEach(function(In){if(gt.get(In.id)Et)Et=Ei;if(vnXn)Xn=vn}}catch(ln){Bn=!0,si=ln}finally{try{if(!Yt&&dn.return)dn.return()}finally{if(Bn)throw si}}var Li=(Xt+Et)/2-(In+Xn)/2,Ia=!0,tt=!1,Fn=void 0;try{for(var Hn=Zt[Symbol.iterator](),_t;!(Ia=(_t=Hn.next()).done);Ia=!0){var Sr=_t.value;gt.set(Sr,gt.get(Sr)+Li)}}catch(ln){tt=!0,Fn=ln}finally{try{if(!Ia&&Hn.return)Hn.return()}finally{if(tt)throw Fn}}})}return gt},Q=function(be){var Ge=0,ke=0,we=0,Ae=0;if(be.forEach(function(vt){if(vt.left)N[R.get(vt.left)]-N[R.get(vt.right)]>=0?Ge++:ke++;else L[R.get(vt.top)]-L[R.get(vt.bottom)]>=0?we++:Ae++}),Ge>ke&&we>Ae)for(var at=0;atke)for(var ut=0;utAe)for(var gt=0;gt1)k.fixedNodeConstraint.forEach(function(fe,be){Z[be]=[fe.position.x,fe.position.y],j[be]=[N[R.get(fe.nodeId)],L[R.get(fe.nodeId)]]}),ee=!0;else if(k.alignmentConstraint)(function(){var fe=0;if(k.alignmentConstraint.vertical){var be=k.alignmentConstraint.vertical,Ge=function(gt){var vt=new Set;be[gt].forEach(function(cr){vt.add(cr)});var ir=new Set([].concat(p(vt)).filter(function(cr){return ne.has(cr)})),qt=void 0;if(ir.size>0)qt=N[R.get(ir.values().next().value)];else qt=W(vt).x;be[gt].forEach(function(cr){Z[fe]=[qt,L[R.get(cr)]],j[fe]=[N[R.get(cr)],L[R.get(cr)]],fe++})};for(var ke=0;ke0)qt=N[R.get(ir.values().next().value)];else qt=W(vt).y;we[gt].forEach(function(cr){Z[fe]=[N[R.get(cr)],qt],j[fe]=[N[R.get(cr)],L[R.get(cr)]],fe++})};for(var at=0;athe)he=oe[Se].length,ye=Se;if(he0){var bt={x:0,y:0};k.fixedNodeConstraint.forEach(function(fe,be){var Ge={x:N[R.get(fe.nodeId)],y:L[R.get(fe.nodeId)]},ke=fe.position,we=H(ke,Ge);bt.x+=we.x,bt.y+=we.y}),bt.x/=k.fixedNodeConstraint.length,bt.y/=k.fixedNodeConstraint.length,N.forEach(function(fe,be){N[be]+=bt.x}),L.forEach(function(fe,be){L[be]+=bt.y}),k.fixedNodeConstraint.forEach(function(fe){N[R.get(fe.nodeId)]=fe.position.x,L[R.get(fe.nodeId)]=fe.position.y})}if(k.alignmentConstraint){if(k.alignmentConstraint.vertical){var Pe=k.alignmentConstraint.vertical,Ue=function(be){var Ge=new Set;Pe[be].forEach(function(Ae){Ge.add(Ae)});var ke=new Set([].concat(p(Ge)).filter(function(Ae){return ne.has(Ae)})),we=void 0;if(ke.size>0)we=N[R.get(ke.values().next().value)];else we=W(Ge).x;Ge.forEach(function(Ae){if(!ne.has(Ae))N[R.get(Ae)]=we})};for(var qe=0;qe0)we=L[R.get(ke.values().next().value)];else we=W(Ge).y;Ge.forEach(function(Ae){if(!ne.has(Ae))L[R.get(Ae)]=we})};for(var De=0;De{l.exports=e}},i={};function a(l){var h=i[l];if(h!==void 0)return h.exports;var d=i[l]={exports:{}};return r[l](d,d.exports,a),d.exports}var o=a(45);return o})()})});var PKr=Cr(function(Ioe,qpt){(function(r,i){if(typeof Ioe==="object"&&typeof qpt==="object")qpt.exports=i(Hpt());else if(typeof define==="function"&&define.amd)define(["cose-base"],i);else if(typeof Ioe==="object")Ioe.cytoscapeFcose=i(Hpt());else r.cytoscapeFcose=i(r.coseBase)})(Ioe,function(e){return(()=>{var r={658:(l)=>{l.exports=Object.assign!=null?Object.assign.bind(Object):function(h){for(var d=arguments.length,p=Array(d>1?d-1:0),m=1;m{var p=function(){function v(w,T){var x=[],k=!0,A=!1,R=void 0;try{for(var N=w[Symbol.iterator](),L;!(k=(L=N.next()).done);k=!0)if(x.push(L.value),T&&x.length===T)break}catch(B){A=!0,R=B}finally{try{if(!k&&N.return)N.return()}finally{if(A)throw R}}return x}return function(w,T){if(Array.isArray(w))return w;else if(Symbol.iterator in Object(w))return v(w,T);else throw TypeError("Invalid attempt to destructure non-iterable instance")}}(),m=d(140).layoutBase.LinkedList,y={};y.getTopMostNodes=function(v){var w={};for(var T=0;T0)ee.merge(se)});for(var z=0;z1){L=R[0],B=L.connectedEdges().length,R.forEach(function(j){if(j.connectedEdges().length0)x.set("dummy"+(x.size+1),F)}return H},y.relocateComponent=function(v,w,T){if(!T.fixedNodeConstraint){var{POSITIVE_INFINITY:x,NEGATIVE_INFINITY:k,POSITIVE_INFINITY:A,NEGATIVE_INFINITY:R}=Number;if(T.quality=="draft"){var N=!0,L=!1,B=void 0;try{for(var D=w.nodeIndexes[Symbol.iterator](),P;!(N=(P=D.next()).done);N=!0){var F=P.value,H=p(F,2),W=H[0],X=H[1],Q=T.cy.getElementById(W);if(Q){var Y=Q.boundingBox(),K=w.xCoords[X]-Y.w/2,J=w.xCoords[X]+Y.w/2,Z=w.yCoords[X]-Y.h/2,j=w.yCoords[X]+Y.h/2;if(Kk)k=J;if(ZR)R=j}}}catch(se){L=!0,B=se}finally{try{if(!N&&D.return)D.return()}finally{if(L)throw B}}var ee=v.x-(k+x)/2,z=v.y-(R+A)/2;w.xCoords=w.xCoords.map(function(se){return se+ee}),w.yCoords=w.yCoords.map(function(se){return se+z})}else{Object.keys(w).forEach(function(se){var oe=w[se],he=oe.getRect().x,ye=oe.getRect().x+oe.getRect().width,Se=oe.getRect().y,Ie=oe.getRect().y+oe.getRect().height;if(hek)k=ye;if(SeR)R=Ie});var ne=v.x-(k+x)/2,ie=v.y-(R+A)/2;Object.keys(w).forEach(function(se){var oe=w[se];oe.setCenter(oe.getCenterX()+ne,oe.getCenterY()+ie)})}}},y.calcBoundingBox=function(v,w,T,x){var{MAX_SAFE_INTEGER:k,MIN_SAFE_INTEGER:A,MAX_SAFE_INTEGER:R,MIN_SAFE_INTEGER:N}=Number,L=void 0,B=void 0,D=void 0,P=void 0,F=v.descendants().not(":parent"),H=F.length;for(var W=0;WL)k=L;if(AD)R=D;if(N{var p=d(548),m=d(140).CoSELayout,y=d(140).CoSENode,v=d(140).layoutBase.PointD,w=d(140).layoutBase.DimensionD,T=d(140).layoutBase.LayoutConstants,x=d(140).layoutBase.FDLayoutConstants,k=d(140).CoSEConstants,A=function(N,L){var{cy:B,eles:D}=N,P=D.nodes(),F=D.edges(),H=void 0,W=void 0,X=void 0,Q={};if(N.randomize)H=L.nodeIndexes,W=L.xCoords,X=L.yCoords;var Y=function(se){return typeof se==="function"},K=function(se,oe){if(Y(se))return se(oe);else return se},J=p.calcParentsWithoutChildren(B,D),Z=function ie(se,oe,he,ye){var Se=oe.length;for(var Ie=0;Ie0){var Qe=void 0;Qe=he.getGraphManager().add(he.newGraph(),Me),ie(Qe,ze,he,ye)}}},j=function(se,oe,he){var ye=0,Se=0;for(var Ie=0;Ie0)k.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=ye/Se;else if(!Y(N.idealEdgeLength))k.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=N.idealEdgeLength;else k.DEFAULT_EDGE_LENGTH=x.DEFAULT_EDGE_LENGTH=50;k.MIN_REPULSION_DIST=x.MIN_REPULSION_DIST=x.DEFAULT_EDGE_LENGTH/10,k.DEFAULT_RADIAL_SEPARATION=x.DEFAULT_EDGE_LENGTH}},ee=function(se,oe){if(oe.fixedNodeConstraint)se.constraints.fixedNodeConstraint=oe.fixedNodeConstraint;if(oe.alignmentConstraint)se.constraints.alignmentConstraint=oe.alignmentConstraint;if(oe.relativePlacementConstraint)se.constraints.relativePlacementConstraint=oe.relativePlacementConstraint};if(N.nestingFactor!=null)k.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=x.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=N.nestingFactor;if(N.gravity!=null)k.DEFAULT_GRAVITY_STRENGTH=x.DEFAULT_GRAVITY_STRENGTH=N.gravity;if(N.numIter!=null)k.MAX_ITERATIONS=x.MAX_ITERATIONS=N.numIter;if(N.gravityRange!=null)k.DEFAULT_GRAVITY_RANGE_FACTOR=x.DEFAULT_GRAVITY_RANGE_FACTOR=N.gravityRange;if(N.gravityCompound!=null)k.DEFAULT_COMPOUND_GRAVITY_STRENGTH=x.DEFAULT_COMPOUND_GRAVITY_STRENGTH=N.gravityCompound;if(N.gravityRangeCompound!=null)k.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=x.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=N.gravityRangeCompound;if(N.initialEnergyOnIncremental!=null)k.DEFAULT_COOLING_FACTOR_INCREMENTAL=x.DEFAULT_COOLING_FACTOR_INCREMENTAL=N.initialEnergyOnIncremental;if(N.tilingCompareBy!=null)k.TILING_COMPARE_BY=N.tilingCompareBy;if(N.quality=="proof")T.QUALITY=2;else T.QUALITY=0;if(k.NODE_DIMENSIONS_INCLUDE_LABELS=x.NODE_DIMENSIONS_INCLUDE_LABELS=T.NODE_DIMENSIONS_INCLUDE_LABELS=N.nodeDimensionsIncludeLabels,k.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!N.randomize,k.ANIMATE=x.ANIMATE=T.ANIMATE=N.animate,k.TILE=N.tile,k.TILING_PADDING_VERTICAL=typeof N.tilingPaddingVertical==="function"?N.tilingPaddingVertical.call():N.tilingPaddingVertical,k.TILING_PADDING_HORIZONTAL=typeof N.tilingPaddingHorizontal==="function"?N.tilingPaddingHorizontal.call():N.tilingPaddingHorizontal,k.DEFAULT_INCREMENTAL=x.DEFAULT_INCREMENTAL=T.DEFAULT_INCREMENTAL=!0,k.PURE_INCREMENTAL=!N.randomize,T.DEFAULT_UNIFORM_LEAF_NODE_SIZES=N.uniformNodeDimensions,N.step=="transformed")k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!1;if(N.step=="enforced")k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!1;if(N.step=="cose")k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,k.ENFORCE_CONSTRAINTS=!1,k.APPLY_LAYOUT=!0;if(N.step=="all"){if(N.randomize)k.TRANSFORM_ON_CONSTRAINT_HANDLING=!0;else k.TRANSFORM_ON_CONSTRAINT_HANDLING=!1;k.ENFORCE_CONSTRAINTS=!0,k.APPLY_LAYOUT=!0}if(N.fixedNodeConstraint||N.alignmentConstraint||N.relativePlacementConstraint)k.TREE_REDUCTION_ON_INCREMENTAL=!1;else k.TREE_REDUCTION_ON_INCREMENTAL=!0;var z=new m,ne=z.newGraphManager();return Z(ne.addRoot(),p.getTopMostNodes(P),z,N),j(z,ne,F),ee(z,N),z.runLayout(),Q};l.exports={coseLayout:A}},212:(l,h,d)=>{var p=function(){function N(L,B){for(var D=0;D0)if(!j){var ee=D.eles.boundingBox();if(K.push({x:ee.x1+ee.w/2,y:ee.y1+ee.h/2}),D.randomize){var z=T(D);H.push(z)}if(D.quality=="default"||D.quality=="proof")Q.push(k(D,H[0])),v.relocateComponent(K[0],Q[0],D);else v.relocateComponent(K[0],H[0],D)}else{var ne=v.getTopMostNodes(D.eles.nodes());if(Y=v.connectComponents(P,D.eles,ne),Y.forEach(function(rr){var je=rr.boundingBox();K.push({x:je.x1+je.w/2,y:je.y1+je.h/2})}),D.randomize)Y.forEach(function(rr){D.eles=rr,H.push(T(D))});if(D.quality=="default"||D.quality=="proof"){var ie=P.collection();if(D.tile){var se=new Map,oe=[],he=[],ye=0,Se={nodeIndexes:se,xCoords:oe,yCoords:he},Ie=[];if(Y.forEach(function(rr,je){if(rr.edges().length==0)rr.nodes().forEach(function(Nt,ct){if(ie.merge(rr.nodes()[ct]),!Nt.isParent())Se.nodeIndexes.set(rr.nodes()[ct].id(),ye++),Se.xCoords.push(rr.nodes()[0].position().x),Se.yCoords.push(rr.nodes()[0].position().y)}),Ie.push(je)}),ie.length>1){var Ee=ie.boundingBox();K.push({x:Ee.x1+Ee.w/2,y:Ee.y1+Ee.h/2}),Y.push(ie),H.push(Se);for(var ze=Ie.length-1;ze>=0;ze--)Y.splice(Ie[ze],1),H.splice(Ie[ze],1),K.splice(Ie[ze],1)}}Y.forEach(function(rr,je){D.eles=rr,Q.push(k(D,H[je])),v.relocateComponent(K[je],Q[je],D)})}else Y.forEach(function(rr,je){v.relocateComponent(K[je],H[je],D)});var Me=new Set;if(Y.length>1){var Xe=[],Ye=F.filter(function(rr){return rr.css("display")=="none"});Y.forEach(function(rr,je){var Nt=void 0;if(D.quality=="draft")Nt=H[je].nodeIndexes;if(rr.nodes().not(Ye).length>0){var ct={};ct.edges=[],ct.nodes=[];var bt=void 0;if(rr.nodes().not(Ye).forEach(function(Pe){if(D.quality=="draft")if(!Pe.isParent())bt=Nt.get(Pe.id()),ct.nodes.push({x:H[je].xCoords[bt]-Pe.boundingbox().w/2,y:H[je].yCoords[bt]-Pe.boundingbox().h/2,width:Pe.boundingbox().w,height:Pe.boundingbox().h});else{var Ue=v.calcBoundingBox(Pe,H[je].xCoords,H[je].yCoords,Nt);ct.nodes.push({x:Ue.topLeftX,y:Ue.topLeftY,width:Ue.width,height:Ue.height})}else if(Q[je][Pe.id()])ct.nodes.push({x:Q[je][Pe.id()].getLeft(),y:Q[je][Pe.id()].getTop(),width:Q[je][Pe.id()].getWidth(),height:Q[je][Pe.id()].getHeight()})}),rr.edges().forEach(function(Pe){var Ue=Pe.source(),qe=Pe.target();if(Ue.css("display")!="none"&&qe.css("display")!="none"){if(D.quality=="draft"){var Ke=Nt.get(Ue.id()),Je=Nt.get(qe.id()),De=[],le=[];if(Ue.isParent()){var pe=v.calcBoundingBox(Ue,H[je].xCoords,H[je].yCoords,Nt);De.push(pe.topLeftX+pe.width/2),De.push(pe.topLeftY+pe.height/2)}else De.push(H[je].xCoords[Ke]),De.push(H[je].yCoords[Ke]);if(qe.isParent()){var fe=v.calcBoundingBox(qe,H[je].xCoords,H[je].yCoords,Nt);le.push(fe.topLeftX+fe.width/2),le.push(fe.topLeftY+fe.height/2)}else le.push(H[je].xCoords[Je]),le.push(H[je].yCoords[Je]);ct.edges.push({startX:De[0],startY:De[1],endX:le[0],endY:le[1]})}else if(Q[je][Ue.id()]&&Q[je][qe.id()])ct.edges.push({startX:Q[je][Ue.id()].getCenterX(),startY:Q[je][Ue.id()].getCenterY(),endX:Q[je][qe.id()].getCenterX(),endY:Q[je][qe.id()].getCenterY()})}}),ct.nodes.length>0)Xe.push(ct),Me.add(je)}});var Qe=Z.packComponents(Xe,D.randomize).shifts;if(D.quality=="draft")H.forEach(function(rr,je){var Nt=rr.xCoords.map(function(bt){return bt+Qe[je].dx}),ct=rr.yCoords.map(function(bt){return bt+Qe[je].dy});rr.xCoords=Nt,rr.yCoords=ct});else{var xt=0;Me.forEach(function(rr){Object.keys(Q[rr]).forEach(function(je){var Nt=Q[rr][je];Nt.setCenter(Nt.getCenterX()+Qe[xt].dx,Nt.getCenterY()+Qe[xt].dy)}),xt++})}}}var dt=function(je,Nt){if(D.quality=="default"||D.quality=="proof"){if(typeof je==="number")je=Nt;var ct=void 0,bt=void 0,Pe=je.data("id");if(Q.forEach(function(qe){if(Pe in qe)ct={x:qe[Pe].getRect().getCenterX(),y:qe[Pe].getRect().getCenterY()},bt=qe[Pe]}),D.nodeDimensionsIncludeLabels){if(bt.labelWidth){if(bt.labelPosHorizontal=="left")ct.x+=bt.labelWidth/2;else if(bt.labelPosHorizontal=="right")ct.x-=bt.labelWidth/2}if(bt.labelHeight){if(bt.labelPosVertical=="top")ct.y+=bt.labelHeight/2;else if(bt.labelPosVertical=="bottom")ct.y-=bt.labelHeight/2}}if(ct==null)ct={x:je.position("x"),y:je.position("y")};return{x:ct.x,y:ct.y}}else{var Ue=void 0;if(H.forEach(function(qe){var Ke=qe.nodeIndexes.get(je.id());if(Ke!=null)Ue={x:qe.xCoords[Ke],y:qe.yCoords[Ke]}}),Ue==null)Ue={x:je.position("x"),y:je.position("y")};return{x:Ue.x,y:Ue.y}}};if(D.quality=="default"||D.quality=="proof"||D.randomize){var zt=v.calcParentsWithoutChildren(P,F),Kt=F.filter(function(rr){return rr.css("display")=="none"});if(D.eles=F.not(Kt),F.nodes().not(":parent").not(Kt).layoutPositions(B,D,dt),zt.length>0)zt.forEach(function(rr){rr.position(dt(rr))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")}}]),N}();l.exports=R},657:(l,h,d)=>{var p=d(548),m=d(140).layoutBase.Matrix,y=d(140).layoutBase.SVD,v=function(T){var{cy:x,eles:k}=T,A=k.nodes(),R=k.nodes(":parent"),N=new Map,L=new Map,B=new Map,D=[],P=[],F=[],H=[],W=[],X=[],Q=[],Y=[],K=void 0,J=void 0,Z=1e8,j=0.000000001,{piTol:ee,samplingType:z,nodeSeparation:ne}=T,ie=void 0,se=function(){var Ge=0,ke=0,we=!1;while(ke=at){gt=Ae[at++];var Zt=D[gt];for(var lr=0;lrqt)qt=W[In],cr=In}return cr},he=function(Ge){var ke=void 0;if(!Ge){se();for(var we=0;we=1)break;qt=ir}for(var Zt=0;Zt=1)break;qt=ir}for(var Xt=0;Xt0)if(ke.isParent())D[Ge].push(B.get(ke.id()));else D[Ge].push(ke.id())})});var zt=function(Ge){var ke=L.get(Ge),we=void 0;N.get(Ge).forEach(function(Ae){if(x.getElementById(Ae).isParent())we=B.get(Ae);else we=Ae;D[ke].push(we),D[L.get(we)].push(Ge)})},Kt=!0,rr=!1,je=void 0;try{for(var Nt=N.keys()[Symbol.iterator](),ct;!(Kt=(ct=Nt.next()).done);Kt=!0){var bt=ct.value;zt(bt)}}catch(be){rr=!0,je=be}finally{try{if(!Kt&&Nt.return)Nt.return()}finally{if(rr)throw je}}J=L.size;var Pe=void 0;if(J>2){ie=J{var p=d(212),m=function(v){if(!v)return;v("layout","fcose",p)};if(typeof cytoscape<"u")m(cytoscape);l.exports=m},140:(l)=>{l.exports=e}},i={};function a(l){var h=i[l];if(h!==void 0)return h.exports;var d=i[l]={exports:{}};return r[l](d,d.exports,a),d.exports}var o=a(579);return o})()})});function Wpt(e,r){if(e===0)return r();let i=Math.random,a=e>>>0;Math.random=function(){a=a+1831565813>>>0;let o=a;return o=Math.imul(o^o>>>15,o|1),o^=o+Math.imul(o^o>>>7,o|61),((o^o>>>14)>>>0)/4294967296};try{return r()}finally{Math.random=i}}function qKr(e,r,i){e.forEach((a)=>{r.add({group:"nodes",data:{type:"service",id:a.id,icon:a.icon,label:a.title,parent:a.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-service"})})}function YKr(e,r,i){e.forEach((a)=>{r.add({group:"nodes",data:{type:"junction",id:a.id,parent:a.in,width:i.getConfigField("iconSize"),height:i.getConfigField("iconSize")},classes:"node-junction"})})}function WKr(e,r){r.nodes().map((i)=>{let a=iW(i);if(a.type==="group")return;a.x=i.position().x,a.y=i.position().y,e.getElementById(a.id).attr("transform","translate("+(a.x||0)+","+(a.y||0)+")")})}function jKr(e,r){e.forEach((i)=>{r.add({group:"nodes",data:{type:"group",id:i.id,icon:i.icon,label:i.title,parent:i.in},classes:"node-group"})})}function KKr(e,r){e.forEach((i)=>{let{lhsId:a,rhsId:o,lhsInto:l,lhsGroup:h,rhsInto:d,lhsDir:p,rhsDir:m,rhsGroup:y,title:v}=i,w=jpt(i.lhsDir,i.rhsDir)?"segments":"straight",T={id:`${a}-${o}`,label:v,source:a,sourceDir:p,sourceArrow:l,sourceGroup:h,sourceEndpoint:p==="L"?"0 50%":p==="R"?"100% 50%":p==="T"?"50% 0":"50% 100%",target:o,targetDir:m,targetArrow:d,targetGroup:y,targetEndpoint:m==="L"?"0 50%":m==="R"?"100% 50%":m==="T"?"50% 0":"50% 100%"};r.add({group:"edges",data:T,classes:w})})}function XKr(e,r,i,a=[]){let o=I((w,T)=>{let x=new Map;for(let[k,A]of w.entries()){let R=`${k}`,N=0,L=[...A.entries()];if(L.length===1){x.set(R,L[0][1]);continue}for(let B=0;B{let T=new Map,x=new Map;return w.forEach(([k,A],R)=>{let N=e.getNode(R)?.in??"default",L=T.get(A)??new Map;if(!T.has(A))T.set(A,L);let B=x.get(k)??new Map;if(!x.has(k))x.set(k,B);for(let D of[L,B]){let P=D.get(N)??[];if(!D.has(N))D.set(N,P);P.push(R)}}),{horiz:[...o(T,"horizontal").values()].filter((k)=>k.length>1),vert:[...o(x,"vertical").values()].filter((k)=>k.length>1)}}),[h,d]=l.reduce(([w,T],{horiz:x,vert:k})=>[[...w,...x],[...T,...k]],[[],[]]),p=new Set;a.forEach((w)=>w.members.forEach((T)=>p.add(T)));let m=I((w)=>w.filter((T)=>!T.some((x)=>p.has(x))),"dropOverlapping"),y=m(h),v=m(d);return a.forEach((w)=>{if(w.members.length<2)return;if(w.direction==="row")y.push([...w.members]);else v.push([...w.members])}),{horizontal:y,vertical:v}}function QKr(e,r,i=[]){let a=[],o=r.getConfigField("iconSize"),l=r.getConfigField("idealEdgeLengthMultiplier"),h=l*o,d=new Set;i.forEach((y)=>{for(let v=0;v`${y[0]},${y[1]}`,"posToStr"),m=I((y)=>y.split(",").map((v)=>parseInt(v)),"strToPos");return e.forEach((y)=>{let v=new Map([...y.entries()].map(([k,A])=>[p(A),k])),w=[p([0,0])],T={},x={L:[-1,0],R:[1,0],T:[0,1],B:[0,-1]};while(w.length>0){let k=w.shift();if(k){T[k]=1;let A=v.get(k);if(A){let R=m(k);Object.entries(x).forEach(([N,L])=>{let B=p([R[0]+L[0],R[1]+L[1]]),D=v.get(B);if(D&&!T[B]){if(w.push(B),d.has(`${A}|${D}`))return;a.push({[BKr[N]]:D,[BKr[uCi(N)]]:A,gap:l*o})}})}}}}),a}function ZKr(e,r,i,a,o,{spatialMaps:l,groupAlignments:h}){return new Promise((d)=>{let p=xn("body").append("div").attr("id","cy").attr("style","display:none"),m=lT({container:document.getElementById("cy"),style:[{selector:"edge",style:{"curve-style":"straight","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"edge[label]",style:{label:"data(label)"}},{selector:"edge.segments",style:{"curve-style":"segments","segment-weights":"0","segment-distances":[0.5],"edge-distances":"endpoints","source-endpoint":"data(sourceEndpoint)","target-endpoint":"data(targetEndpoint)"}},{selector:"node",style:{"compound-sizing-wrt-labels":"include"}},{selector:"node[label]",style:{"text-valign":"bottom","text-halign":"center","font-size":`${o.getConfigField("fontSize")}px`}},{selector:".node-service",style:{label:"data(label)",width:"data(width)",height:"data(height)"}},{selector:".node-junction",style:{width:"data(width)",height:"data(height)"}},{selector:".node-group",style:{padding:`${o.getConfigField("padding")}px`}}],layout:{name:"grid",boundingBox:{x1:0,x2:100,y1:0,y2:100}}});p.remove(),jKr(i,m),qKr(e,m,o),YKr(r,m,o),KKr(a,m);let y=o.getLayoutHints(),v=XKr(o,l,h,y),w=QKr(l,o,y),T=o.getConfigField("iconSize"),x=o.getConfigField("idealEdgeLengthMultiplier")*T,k=0.5*T,A=o.getConfigField("edgeElasticity"),R=o.getConfigField("seed"),N=m.layout({name:"fcose",quality:"proof",randomize:o.getConfigField("randomize"),nodeSeparation:o.getConfigField("nodeSeparation"),numIter:o.getConfigField("numIter"),styleEnabled:!1,animate:!1,nodeDimensionsIncludeLabels:!1,idealEdgeLength(L){let[B,D]=L.connectedNodes(),{parent:P}=iW(B),{parent:F}=iW(D);return P===F?x:k},edgeElasticity(L){let[B,D]=L.connectedNodes(),{parent:P}=iW(B),{parent:F}=iW(D);return P===F?A:0.001},alignmentConstraint:v,relativePlacementConstraint:w});N.one("layoutstop",()=>{function L(B,D,P,F){let H,W,{x:X,y:Q}=B,{x:Y,y:K}=D;W=(F-Q+(X-P)*(Q-K)/(X-Y))/Math.sqrt(1+Math.pow((Q-K)/(X-Y),2)),H=Math.sqrt(Math.pow(F-Q,2)+Math.pow(P-X,2)-Math.pow(W,2));let J=Math.sqrt(Math.pow(Y-X,2)+Math.pow(K-Q,2));H=H/J;let Z=(Y-X)*(F-Q)-(K-Q)*(P-X);switch(!0){case Z>=0:Z=1;break;case Z<0:Z=-1;break}let j=(Y-X)*(P-X)+(K-Q)*(F-Q);switch(!0){case j>=0:j=1;break;case j<0:j=-1;break}return W=Math.abs(W)*Z,H=H*j,{distances:W,weights:H}}I(L,"getSegmentWeights"),m.startBatch();for(let B of Object.values(m.edges()))if(B.data?.()){let{x:D,y:P}=B.source().position(),{x:F,y:H}=B.target().position();if(D!==F&&P!==H){let W=B.sourceEndpoint(),X=B.targetEndpoint(),{sourceDir:Q}=GKr(B),[Y,K]=nM(Q)?[W.x,X.y]:[X.x,W.y],{weights:J,distances:Z}=L(W,X,Y,K);B.style("segment-distances",Z),B.style("segment-weights",J)}}m.endBatch(),Wpt(R,()=>N.run())});try{Wpt(R,()=>N.run())}catch(L){if(L instanceof RangeError&&L.message.includes("Invalid array length"))throw Error("Architecture layout failed: a declared `align row|column` directive likely contradicts the edge directions, or two declared alignments overlap on a shared node. Check that the order of members in each `align` chain is consistent with the edges between them, and that no node appears in two `align` directives along the same axis.");throw L}m.ready((L)=>{Ze.info("Ready",L),d(m)})})}var HKr,BKr,FKr,s3e,uCi,$Kr,Iv,nM,jpt,hCi,dCi,Ypt,fCi,pCi,gCi,mCi,bCi,UKr,GKr,iW,yCi,zKr,vCi,VKr,_Ci,ECi,nW,Ooe,wCi,SCi,TCi,xCi,CCi,kCi,JKr;var eXr=Re(()=>{Tv();A0();Bp();Pp();Ql();eo();Zs();Ja();rb();Not();dl();HKr=sv(PKr(),1),BKr={L:"left",R:"right",T:"top",B:"bottom"},FKr={L:I((e)=>`${e},${e/2} 0,${e} 0,0`,"L"),R:I((e)=>`0,${e/2} ${e},0 ${e},${e}`,"R"),T:I((e)=>`0,0 ${e},0 ${e/2},${e}`,"T"),B:I((e)=>`${e/2},0 ${e},${e} 0,${e}`,"B")},s3e={L:I((e,r)=>e-r+2,"L"),R:I((e,r)=>e-2,"R"),T:I((e,r)=>e-r+2,"T"),B:I((e,r)=>e-2,"B")},uCi=I(function(e){if(Iv(e))return e==="L"?"R":"L";else return e==="T"?"B":"T"},"getOppositeArchitectureDirection"),$Kr=I(function(e){let r=e;return r==="L"||r==="R"||r==="T"||r==="B"},"isArchitectureDirection"),Iv=I(function(e){let r=e;return r==="L"||r==="R"},"isArchitectureDirectionX"),nM=I(function(e){let r=e;return r==="T"||r==="B"},"isArchitectureDirectionY"),jpt=I(function(e,r){let i=Iv(e)&&nM(r),a=nM(e)&&Iv(r);return i||a},"isArchitectureDirectionXY"),hCi=I(function(e){let r=e[0],i=e[1],a=Iv(r)&&nM(i),o=nM(r)&&Iv(i);return a||o},"isArchitecturePairXY"),dCi=I(function(e){return e!=="LL"&&e!=="RR"&&e!=="TT"&&e!=="BB"},"isValidArchitectureDirectionPair"),Ypt=I(function(e,r){let i=`${e}${r}`;return dCi(i)?i:void 0},"getArchitectureDirectionPair"),fCi=I(function([e,r],i){let a=i[0],o=i[1];if(Iv(a))if(nM(o))return[e+(a==="L"?-1:1),r+(o==="T"?1:-1)];else return[e+(a==="L"?-1:1),r];else if(Iv(o))return[e+(o==="L"?1:-1),r+(a==="T"?1:-1)];else return[e,r+(a==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),pCi=I(function(e){if(e==="LT"||e==="TL")return[1,1];else if(e==="BL"||e==="LB")return[1,-1];else if(e==="BR"||e==="RB")return[-1,-1];else return[-1,1]},"getArchitectureDirectionXYFactors"),gCi=I(function(e,r){if(jpt(e,r))return"bend";else if(Iv(e))return"horizontal";return"vertical"},"getArchitectureDirectionAlignment"),mCi=I(function(e){return e.type==="service"},"isArchitectureService"),bCi=I(function(e){return e.type==="junction"},"isArchitectureJunction"),UKr=I((e,r)=>{let[i,a]=[e,r].sort();return`${JSON.stringify(i)}-${JSON.stringify(a)}`},"architectureGroupAlignmentKey"),GKr=I((e)=>e.data(),"edgeData"),iW=I((e)=>e.data(),"nodeData"),yCi=Fs.architecture,zKr=class{constructor(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.elements=new Map,this.diagramId="",this.setAccTitle=Ys,this.getAccTitle=oo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getAccDescription=lo,this.setAccDescription=Js,this.clear()}static{I(this,"ArchitectureDB")}setDiagramId(e){this.diagramId=e}getDiagramId(){return this.diagramId}clear(){this.nodes=new Map,this.groups=new Map,this.edges=[],this.layoutHints=[],this.registeredIds=new Map,this.dataStructures=void 0,this.elements=new Map,this.diagramId="",qs()}addService({id:e,icon:r,in:i,title:a,iconText:o}){if(this.registeredIds.has(e))throw Error(`The service id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The service [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The service [${e}]'s parent does not exist. Please make sure the parent is created before this service`);if(this.registeredIds.get(i)==="node")throw Error(`The service [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"service",icon:r,iconText:o,title:a,edges:[],in:i})}getServices(){return[...this.nodes.values()].filter(mCi)}addJunction({id:e,in:r}){if(this.registeredIds.has(e))throw Error(`The junction id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(r!==void 0){if(e===r)throw Error(`The junction [${e}] cannot be placed within itself`);if(!this.registeredIds.has(r))throw Error(`The junction [${e}]'s parent does not exist. Please make sure the parent is created before this junction`);if(this.registeredIds.get(r)==="node")throw Error(`The junction [${e}]'s parent is not a group`)}this.registeredIds.set(e,"node"),this.nodes.set(e,{id:e,type:"junction",edges:[],in:r})}getJunctions(){return[...this.nodes.values()].filter(bCi)}getNodes(){return[...this.nodes.values()]}getNode(e){return this.nodes.get(e)??null}addGroup({id:e,icon:r,in:i,title:a}){if(this.registeredIds.has(e))throw Error(`The group id [${e}] is already in use by another ${this.registeredIds.get(e)}`);if(i!==void 0){if(e===i)throw Error(`The group [${e}] cannot be placed within itself`);if(!this.registeredIds.has(i))throw Error(`The group [${e}]'s parent does not exist. Please make sure the parent is created before this group`);if(this.registeredIds.get(i)==="node")throw Error(`The group [${e}]'s parent is not a group`)}this.registeredIds.set(e,"group"),this.groups.set(e,{id:e,icon:r,title:a,in:i})}getGroups(){return[...this.groups.values()]}addEdge({lhsId:e,rhsId:r,lhsDir:i,rhsDir:a,lhsInto:o,rhsInto:l,lhsGroup:h,rhsGroup:d,title:p}){if(!$Kr(i))throw Error(`Invalid direction given for left hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(i)}`);if(!$Kr(a))throw Error(`Invalid direction given for right hand side of edge ${e}--${r}. Expected (L,R,T,B) got ${String(a)}`);if(!this.nodes.has(e)&&!this.groups.has(e))throw Error(`The left-hand id [${e}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(!this.nodes.has(r)&&!this.groups.has(r))throw Error(`The right-hand id [${r}] does not yet exist. Please create the service/group before declaring an edge to it.`);let m=this.nodes.get(e).in,y=this.nodes.get(r).in;if(h&&m&&y&&m==y)throw Error(`The left-hand id [${e}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(d&&m&&y&&m==y)throw Error(`The right-hand id [${r}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let v={lhsId:e,lhsDir:i,lhsInto:o,lhsGroup:h,rhsId:r,rhsDir:a,rhsInto:l,rhsGroup:d,title:p};this.edges.push(v);let w=this.nodes.get(e),T=this.nodes.get(r);if(w&&T)w.edges.push(this.edges[this.edges.length-1]),T.edges.push(this.edges[this.edges.length-1])}getEdges(){return this.edges}addLayoutHint(e){if(e.members.length<2)throw Error(`An align directive requires at least two members; got ${e.members.length}`);let r=new Set;e.members.forEach((i)=>{if(this.registeredIds.get(i)!=="node")throw Error(`align ${e.direction} references [${i}], which is not a service or junction`);if(r.has(i))throw Error(`align ${e.direction} lists [${i}] more than once`);r.add(i)}),this.layoutHints.push(e)}getLayoutHints(){return this.layoutHints}getDataStructures(){if(this.dataStructures===void 0){let e=new Map,r=new Map;for(let[h,d]of this.nodes.entries()){let p=new Map;for(let m of d.edges){let y=this.getNode(m.lhsId)?.in,v=this.getNode(m.rhsId)?.in;if(y&&v&&y!==v){let w=gCi(m.lhsDir,m.rhsDir);if(w!=="bend")e.set(UKr(y,v),w)}if(m.lhsId===h){let w=Ypt(m.lhsDir,m.rhsDir);if(w)p.set(w,m.rhsId)}else{let w=Ypt(m.rhsDir,m.lhsDir);if(w)p.set(w,m.lhsId)}}r.set(h,p)}let i=new Set,a=new Set(r.keys()),o=I((h)=>{let d=new Map([[h,[0,0]]]),p=[h];while(p.length>0){let m=p.shift();if(m){i.add(m),a.delete(m);let y=r.get(m);if(!y)throw Error(`BFS error: adjacency list for id ${m} not found. Please report this as a bug.`);let v=d.get(m);if(!v)throw Error(`BFS error: position for id ${m} not found in spatial map. Please report this as a bug.`);let[w,T]=v;y.forEach((x,k)=>{if(!i.has(x))d.set(x,fCi([w,T],k)),p.push(x)})}}return d},"BFS"),l=[];while(a.size>0){let h=a.values().next().value;l.push(o(h))}this.dataStructures={adjList:r,spatialMaps:l,groupAlignments:e}}return this.dataStructures}setElementForId(e,r){this.elements.set(e,r)}getElementById(e){return this.elements.get(e)}getConfig(){return bc({...yCi,...ea().architecture})}getConfigField(e){return this.getConfig()[e]}},vCi=I((e,r)=>{Sh(e,r),e.groups.map((i)=>r.addGroup(i)),e.services.map((i)=>r.addService({...i,type:"service"})),e.junctions.map((i)=>r.addJunction({...i,type:"junction"})),e.edges.map((i)=>r.addEdge(i)),e.alignments?.map((i)=>r.addLayoutHint({direction:i.direction,members:[...i.members]}))},"populateDb"),VKr={parser:{yy:void 0},parse:I(async(e)=>{let r=await lp("architecture",e);Ze.debug(r);let i=VKr.parser?.yy;if(!(i instanceof zKr))throw Error("parser.parser?.yy was not a ArchitectureDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");vCi(r,i)},"parse")},_Ci=I((e)=>` .edge { stroke-width: ${e.archEdgeWidth}; stroke: ${e.archEdgeColor}; @@ -3579,19 +3579,19 @@ Expecting `+Vt.join(", ")+", got '"+(this.terminals_[xe]||xe)+"'";else Xt="Parse display: -webkit-box; -webkit-box-orient: vertical; } -`,"getStyles"),gCi=pCi;I(Hpt,"withSeededRandom");eW=I((e)=>`${e}`,"wrapIcon"),Aoe={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:eW('')},server:{body:eW('')},disk:{body:eW('')},internet:{body:eW('')},cloud:{body:eW('')},unknown:$et,blank:{body:eW("")}}},mCi=I(async function(e,r,i,a){let o=i.getConfigField("padding"),l=i.getConfigField("iconSize"),h=l/2,d=l/6,p=d/2;await Promise.all(r.edges().map(async(m)=>{let{source:y,sourceDir:E,sourceArrow:w,sourceGroup:T,target:x,targetDir:k,targetArrow:A,targetGroup:R,label:N}=PKr(m),{x:L,y:B}=m[0].sourceEndpoint(),{x:D,y:P}=m[0].midpoint(),{x:F,y:H}=m[0].targetEndpoint(),K=o+4;if(T)if(Iv(E))L+=E==="L"?-K:K;else B+=E==="T"?-K:K+18;if(R)if(Iv(k))F+=k==="L"?-K:K;else H+=k==="T"?-K:K+18;if(!T&&i.getNode(y)?.type==="junction")if(Iv(E))L+=E==="L"?h:-h;else B+=E==="T"?h:-h;if(!R&&i.getNode(x)?.type==="junction")if(Iv(k))F+=k==="L"?h:-h;else H+=k==="T"?h:-h;if(m[0]._private.rscratch){let Q=e.insert("g");if(Q.insert("path").attr("d",`M ${L},${B} L ${D},${P} L${F},${H} `).attr("class","edge").attr("id",`${a}-${j_(y,x,{prefix:"L"})}`),w){let Z=Iv(E)?n3e[E](L,d):L-p,Y=tM(E)?n3e[E](B,d):B-p;Q.insert("polygon").attr("points",LKr[E](d)).attr("transform",`translate(${Z},${Y})`).attr("class","arrow")}if(A){let Z=Iv(k)?n3e[k](F,d):F-p,Y=tM(k)?n3e[k](H,d):H-p;Q.insert("polygon").attr("points",LKr[k](d)).attr("transform",`translate(${Z},${Y})`).attr("class","arrow")}if(N){let Z=!qpt(E,k)?Iv(E)?"X":"Y":"XY",Y=0;if(Z==="X")Y=Math.abs(L-F);else if(Z==="Y")Y=Math.abs(B-H)/1.5;else Y=Math.abs(L-F)/2;let j=Q.append("g");if(await ug(j,N,{useHtmlLabels:!1,width:Y,classes:"architecture-service-label"},Ar()),j.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),Z==="X")j.attr("transform","translate("+D+", "+P+")");else if(Z==="Y")j.attr("transform","translate("+D+", "+P+") rotate(-90)");else if(Z==="XY"){let te=Vpt(E,k);if(te&&aCi(te)){let X=j.node().getBoundingClientRect(),[W,J]=lCi(te);j.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*W*J*45})`);let z=j.node().getBoundingClientRect();j.attr("transform",` - translate(${D}, ${P-X.height/2}) - translate(${W*z.width/2}, ${J*z.height/2}) - rotate(${-1*W*J*45}, 0, ${X.height/2}) - `)}}}}}))},"drawEdges"),bCi=I(async function(e,r,i,a){let l=i.getConfigField("padding")*0.75,h=i.getConfigField("fontSize"),p=i.getConfigField("iconSize")/2;await Promise.all(r.nodes().map(async(m)=>{let y=tW(m);if(y.type==="group"){let{h:E,w,x1:T,y1:x}=m.boundingBox(),k=e.append("rect");k.attr("id",`${a}-group-${y.id}`).attr("x",T+p).attr("y",x+p).attr("width",w).attr("height",E).attr("class","node-bkg");let A=e.append("g"),R=T,N=x;if(y.icon){let L=A.append("g");L.html(`${await Y_(y.icon,{height:l,width:l,fallbackPrefix:Aoe.prefix})}`),L.attr("transform","translate("+(R+p+1)+", "+(N+p+1)+")"),R+=l,N+=h/2-1-2}if(y.label){let L=A.append("g");await ug(L,y.label,{useHtmlLabels:!1,width:w,classes:"architecture-service-label"},Ar()),L.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),L.attr("transform","translate("+(R+p+4)+", "+(N+p+2)+")")}i.setElementForId(y.id,k)}}))},"drawGroups"),yCi=I(async function(e,r,i,a){let o=Ar();for(let l of i){let h=r.append("g"),d=e.getConfigField("iconSize");if(l.title){let E=h.append("g");await ug(E,l.title,{useHtmlLabels:!1,width:d*1.5,classes:"architecture-service-label"},o),E.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),E.attr("transform","translate("+d/2+", "+d+")")}let p=h.append("g");if(l.icon)p.html(`${await Y_(l.icon,{height:d,width:d,fallbackPrefix:Aoe.prefix})}`);else if(l.iconText){p.html(`${await Y_("blank",{height:d,width:d,fallbackPrefix:Aoe.prefix})}`);let T=p.append("g").append("foreignObject").attr("width",d).attr("height",d).append("div").attr("class","node-icon-text").attr("style",`height: ${d}px;`).append("div").html(ho(l.iconText,o)),x=parseInt(window.getComputedStyle(T.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;T.attr("style",`-webkit-line-clamp: ${Math.floor((d-2)/x)};`)}else p.append("path").attr("class","node-bkg").attr("id",`${a}-node-${l.id}`).attr("d",`M0,${d} V5 Q0,0 5,0 H${d-5} Q${d},0 ${d},5 V${d} Z`);h.attr("id",`${a}-service-${l.id}`).attr("class","architecture-service");let{width:m,height:y}=h.node().getBBox();l.width=m,l.height=y,e.setElementForId(l.id,h)}return 0},"drawServices"),vCi=I(function(e,r,i,a){i.forEach((o)=>{let l=r.append("g"),h=e.getConfigField("iconSize");l.append("g").append("rect").attr("id",`${a}-node-${o.id}`).attr("fill-opacity","0").attr("width",h).attr("height",h),l.attr("class","architecture-junction");let{width:p,height:m}=l._groups[0][0].getBBox();l.width=p,l.height=m,e.setElementForId(o.id,l)})},"drawJunctions");wH([{name:Aoe.prefix,icons:Aoe}]);oT.use($Kr.default);I(UKr,"addServices");I(GKr,"addJunctions");I(zKr,"positionNodes");I(VKr,"addGroups");I(HKr,"addEdges");I(qKr,"getAlignments");I(YKr,"getRelativeConstraints");I(WKr,"layoutArchitecture");_Ci=I(async(e,r,i,a)=>{let o=a.db;o.setDiagramId(r);let l=o.getServices(),h=o.getJunctions(),d=o.getGroups(),p=o.getEdges(),m=o.getDataStructures(),y=Ou(r),E=y.append("g");E.attr("class","architecture-edges");let w=y.append("g");w.attr("class","architecture-services");let T=y.append("g");T.attr("class","architecture-groups"),await yCi(o,w,l,r),vCi(o,w,h,r);let x=await WKr(l,h,d,p,o,m);await mCi(E,x,o,r),await bCi(T,x,o,r),zKr(o,x),n3(void 0,y,o.getConfigField("padding"),o.getConfigField("useMaxWidth"))},"draw"),ECi={draw:_Ci},jKr={parser:FKr,get db(){return new BKr},renderer:ECi,styles:gCi}});function JKr(){s3e={}}function eXr(){let e=kCi,{ast:r}=s3e,i=Kpt();if(!r)throw Error("No data for EventModel");return r.frames.forEach((a,o)=>{let l=oXr(a,r.dataEntities,i);e=a3e(e,{$kind:XKr,index:o,frame:a,textProps:l});let h=void 0;if(fXr(a))Ze.debug("source frame",a.sourceFrames),h=r.frames.filter((d)=>a.sourceFrames.some((p)=>p.$refText===d.name)),h.forEach((d)=>{e=a3e(e,{$kind:Ypt,index:o,frame:a,sourceFrame:d})});else e=a3e(e,{$kind:Ypt,index:o,frame:a})}),e={...e,sortedSwimlanesArray:Xpt(e.swimlanes)},e}function tXr(e){s3e.ast=void 0;let r=new Set;for(let i of e.frames){if(r.has(i.name)){let a=i.$cstNode?.range.start.line,o=a===void 0?"":` on line ${a+1}`;throw Error(`Duplicate event modeling frame ID "${i.name}"${o}`)}r.add(i.name)}s3e.ast=e}function Kpt(){return Fu}function rXr(e){let r=e.split(".");if(r.length===2)return r[0];return}function nXr(e){let r=e.split(".");if(r.length===2)return r[1];return e}function iXr(e,r){if(!r||r.length===0)return;return Object.values(e).find((i)=>i.namespace===r)}function i3e(e,r,i){return Math.max(r,...Object.keys(e).filter((a)=>{let o=Number.parseInt(a);return o>r&&oNumber.parseInt(a)))+1}function aXr(e,r){let i=rXr(e.entityIdentifier),a=iXr(r,i);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(a)return{index:a.index,label:a.namespace||Fu.labelUiAutomation};else if(i)return{index:i3e(r,0,100),label:Fu.labelUiAutomationPrefix+i};return{index:0,label:Fu.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(a)return{index:a.index,label:a.namespace||Fu.labelCommandReadModel};else if(i)return{index:i3e(r,100,200),label:Fu.labelCommandReadModelPrefix+i};return{index:100,label:Fu.labelCommandReadModel};case"evt":case"event":default:if(a)return{index:a.index,label:a.namespace||Fu.labelEvents};else if(i)return{index:i3e(r,200,300),label:Fu.labelEventsPrefix+i};return{index:200,label:Fu.labelEvents}}}function sXr(e){let{themeVariables:r}=ea();switch(e.modelEntityType){case"ui":return{fill:r.emUiFill??"white",stroke:r.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:r.emProcessorFill??"#edb3f6",stroke:r.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:r.emReadModelFill??"#d3f1a2",stroke:r.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:r.emCommandFill??"#bcd6fe",stroke:r.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:r.emEventFill??"#ffb778",stroke:r.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function oXr(e,r,i){let a=ea(),o=ho(nXr(e.entityIdentifier)??"",a),l,h={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
    "},p=`${qP(o,i.textMaxWidth,h)}`;if(e.dataInlineValue)l=e.dataInlineValue,l=l.substring(l.indexOf("{")+1),l=l.substring(0,l.lastIndexOf("}")-1),l=ho(l,a),l=qP(l,i.textMaxWidth,h),l=l.replaceAll(" "," ");if(e.dataReference){let x=r.find((k)=>k.name===e.dataReference?.$refText);if(x)l=x.dataBlockValue,l=l.substring(l.indexOf(`{ -`)+2),l=l.substring(0,l.lastIndexOf("}")-1),l=ho(l,a),l=qP(l,i.textMaxWidth,h),l=l.replaceAll(" "," "),l+="
    "}let m=l!==void 0;if(m)p+=`

    ${l}`;let y={fontSize:h.fontSize,fontWeight:h.fontWeight,fontFamily:h.fontFamily},E=One(p,y),w=m?E.width/3:E.width,T={content:p,width:w,height:E.height};return Ze.debug(`[${e.name}] ${e.entityIdentifier} text`,T),T}function lXr(e,r){let i=r,a=sXr(i.frame),o={width:i.textProps.width+2*Fu.boxTextPadding,height:i.textProps.height+2*Fu.boxTextPadding};return[{$kind:QKr,frame:i.frame,index:i.index,visual:a,dimension:o,textProps:i.textProps}]}function cXr(e,r,i){if(r===void 0)return Fu.contentStartX;if(r.index===e.index&&e.r)return e.r+Fu.boxPadding;if(i===void 0)return Fu.contentStartX;return i.r-Fu.boxOverlap+Fu.boxPadding}function uXr(e,r){let i=[...e.map((a)=>a.r),r];return Math.max(...i)}function Xpt(e){return Object.values(e).sort((r,i)=>r.index-i.index)}function hXr(e,r){let i=r,a=aXr(i.frame,e.swimlanes),o;if(a.index in e.swimlanes)o=e.swimlanes[a.index];else o={index:a.index,label:a.label,r:0,y:a.index*Fu.swimlaneMinHeight+Fu.swimlaneGap,height:Fu.swimlaneMinHeight,maxHeight:Fu.swimlaneMinHeight};let l=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,h=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,d={width:Math.max(Fu.boxMinWidth,Math.min(Fu.boxMaxWidth,i.dimension.width))+2*Fu.boxPadding,height:Math.max(Fu.boxMinHeight,Math.min(Fu.boxMaxHeight,i.dimension.height))+2*Fu.boxPadding},p=cXr(o,h,l),m=p+d.width+Fu.boxPadding,y=uXr(Object.values(e.swimlanes),m);o.r=p+d.width,o.maxHeight=Math.max(o.maxHeight,d.height),o.height=Math.max(Fu.swimlaneMinHeight,o.maxHeight)+2*Fu.swimlanePadding;let E={x:p,y:Fu.swimlanePadding+o.y,r:m,dimension:d,leftSibling:!1,swimlane:o,visual:i.visual,text:i.textProps.content,frame:i.frame,index:i.index},w={...e,boxes:[...e.boxes,E],swimlanes:{...e.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:a.index,previousFrame:i.frame,maxR:y},T=Xpt(w.swimlanes);if(T.length>0)T[0].y=0;for(let x=1;x0}function Wpt(e,r){if(r===void 0||r===null)return;return e.find((i)=>i.frame.name===r.name)}function pXr(e,r,i){if(i<0)return;for(let a=i;a>=0;a--){let o=e[a];if(o.swimlane.index!==r)return o}return}function gXr(e,r){let i=r;if(dXr(i.index,i.frame))return[];let a=Wpt(e.boxes,i.frame);if(a===void 0)throw Error(`Target box not found for frame ${i.frame.name}`);let o;if(i.sourceFrame)o=Wpt(e.boxes,i.sourceFrame);else{if(Yse(i.frame))return[];o=pXr(e.boxes,a.swimlane.index,i.index-1)}if(o===void 0)return[];return[{$kind:ZKr,frame:i.frame,index:i.index,sourceBox:o,targetBox:a}]}function mXr(e,r){let i=r,a={visual:{fill:"none",stroke:"#000"},source:{x:i.sourceBox.x,y:i.sourceBox.y},target:{x:i.targetBox.x,y:i.targetBox.y},sourceBox:i.sourceBox,targetBox:i.targetBox};return{...e,relations:[...e.relations,a]}}function bXr(e,r){let i=ACi[r.$kind];if(i===void 0||i===null)return[];let a=i(e,r);return Ze.debug("decided events",a),a}function yXr(e,r){let i=r.reduce((a,o)=>{let l=RCi[o.$kind];if(l===void 0||l===null)return a;return l(a,o)},e);return Ze.debug("evolve events",{state:e,newState:i,events:r}),i}function a3e(e,r){let i=bXr(e,r);return yXr(e,i)}function vXr(e,r){return(i)=>{let a=i.swimlane.y+r.swimlanePadding,o=e.append("g").attr("class","em-box");o.append("rect").attr("x",i.x).attr("y",a).attr("rx","3").attr("width",i.dimension.width).attr("height",i.dimension.height).attr("stroke",i.visual.stroke).attr("fill",i.visual.fill),o.append("foreignObject").attr("x",i.x+r.boxPadding).attr("y",a+10).attr("width",i.dimension.width-2*r.boxPadding).attr("height",i.dimension.height-2*r.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(i.text)}}function _Xr(e,r){return e>r}function EXr(e,r,i,a){return(o)=>{let l=o.sourceBox.swimlane.y+r.swimlanePadding,h=o.targetBox.swimlane.y+r.swimlanePadding,d=_Xr(l,h),p=o.sourceBox.x+o.sourceBox.dimension.width*2/3,m=o.targetBox.x+o.targetBox.dimension.width/3,y,E;if(Ze.debug(`rendering relation up=${d} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),d)y=l,E=h+o.targetBox.dimension.height;else y=l+o.sourceBox.dimension.height,E=h;let w=a.emRelationStroke??o.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",w).attr("stroke-width","1").attr("marker-end",`url(#${i})`).attr("d",`M${p} ${y} L${m} ${E}`)}}function wXr(e,r,i,a){return(o)=>{let l=e.append("g").attr("class","em-swimlane"),h=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",d=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";l.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",r+i.swimlanePadding).attr("height",o.height).attr("fill",h).attr("stroke",d),l.append("text").attr("font-weight",i.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}var XKr="position frame",QKr="frame positioned",Ypt="position relation",ZKr="relation positioned",wCi,SCi,TCi,xCi,CCi,s3e,Fu,kCi,ACi,RCi,jpt,ICi,OCi,NCi,LCi,MCi,DCi,PCi,SXr;var TXr=Re(()=>{Tv();Ql();eo();Zs();Ja();rb();rb();dl();wCi=I(function(e){Ze.debug("options str",e)},"setOptions"),SCi=I(function(){return{}},"getOptions"),TCi=I(function(){JKr(),qs()},"clear");I(JKr,"reset");xCi=Fs.eventmodeling,CCi=I(()=>bc({...xCi,...ea().eventmodeling}),"getConfig"),s3e={};I(eXr,"getState");I(tXr,"setAst");Fu={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};I(Kpt,"getDiagramProps");kCi={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};I(rXr,"extractNamespace");I(nXr,"extractName");I(iXr,"findSwimlaneByNamespace");I(i3e,"findNextAvailableIndex");I(aXr,"calculateSwimlaneProps");I(sXr,"calculateEntityVisualProps");I(oXr,"calculateTextProps");I(lXr,"decidePositionFrame");I(cXr,"calculateX");I(uXr,"calculateMaxRight");I(Xpt,"sortedSwimlanesArray");I(hXr,"evolveFramePositioned");I(dXr,"isFirstFrame");I(fXr,"hasSourceFrame");I(Wpt,"findBoxByFrame");I(pXr,"findBoxByLineIndex");I(gXr,"decidePositionRelation");I(mXr,"evolveRelationPositioned");ACi={[XKr]:lXr,[Ypt]:gXr},RCi={[QKr]:hXr,[ZKr]:mXr};I(bXr,"decide");I(yXr,"evolve");I(a3e,"dispatch");jpt={getConfig:CCi,preserveCommentsWhenParsing:!0,setOptions:wCi,getOptions:SCi,clear:TCi,setAccTitle:Ys,getAccTitle:oo,getAccDescription:lo,setAccDescription:Js,setDiagramTitle:_o,getDiagramTitle:fo,setAst:tXr,getDiagramProps:Kpt,getState:eXr},ICi={parse:I(async(e)=>{let r=await lp("eventmodeling",e);Ze.debug(r),jpt.setAst(r),Sh(r,jpt)},"parse")},OCi=Ar(),NCi=OCi?.eventmodeling;I(vXr,"renderD3Box");I(_Xr,"dirUpwards");I(EXr,"renderD3Relation");I(wXr,"renderD3Swimlane");LCi=I(function(e,r,i,a){if(Ze.debug("in eventmodeling renderer",e+` -`,"id:",r,i),!NCi)throw Error("EventModeling config not found");let o=a.db,{themeVariables:l,eventmodeling:h}=Ar(),d=xn(`[id="${r}"]`),p=o.getDiagramProps(),m=o.getState(),y=`em-arrowhead-${r}`,E=l.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(wXr(d,m.maxR,p,l)),m.boxes.forEach(vXr(d,p)),m.relations.forEach(EXr(d,p,y,l)),d.append("defs").append("marker").attr("id",y).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",E),Nre(void 0,d,h?.padding??30,h?.useMaxWidth)},"draw"),MCi={draw:LCi},DCi=I((e)=>"","getStyles"),PCi=DCi,SXr={parser:ICi,db:jpt,renderer:MCi,styles:PCi}});var Zpt,BCi,FCi,$Ci=14,rW=250,UCi=30,GCi=60,zCi=5,IXr,xXr,CXr,kXr,VCi,AXr,HCi,qCi,YCi,Qpt,WCi,jCi,OXr,o3e,RXr,nW,KCi,XCi,QCi,NXr;var LXr=Re(()=>{A0();Ql();eo();Zs();Ja();Na();Zpt=function(){var e=I(function(R,N,L,B){for(L=L||{},B=R.length;B--;L[R[B]]=N);return L},"o"),r=[1,4],i=[1,14],a=[1,12],o=[1,13],l=[6,7,8],h=[1,20],d=[1,18],p=[1,19],m=[6,7,11],y=[1,6,13,14],E=[1,23],w=[1,24],T=[1,6,7,11,13,14],x={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:I(function(N,L,B,D,P,F,H){var K=F.length-1;switch(P){case 6:case 7:return D;case 15:D.addNode(F[K-1].length,F[K].trim());break;case 16:D.addNode(0,F[K].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:a,14:o},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:i,12:15,13:a,14:o},{6:i,9:16,12:11,13:a,14:o},{6:h,7:d,10:17,11:p},e(m,[2,18],{14:[1,21]}),e(m,[2,16]),e(m,[2,17]),{6:h,7:d,10:22,11:p},{1:[2,7],6:i,12:15,13:a,14:o},e(y,[2,14],{7:E,11:w}),e(T,[2,8]),e(T,[2,9]),e(T,[2,10]),e(m,[2,15]),e(y,[2,13],{7:E,11:w}),e(T,[2,11]),e(T,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:I(function(N,L){if(L.recoverable)this.trace(N);else{var B=Error(N);throw B.hash=L,B}},"parseError"),parse:I(function(N){var L=this,B=[0],D=[],P=[null],F=[],H=this.table,K="",Q=0,Z=0,Y=0,j=2,te=1,X=F.slice.call(arguments,1),W=Object.create(this.lexer),J={yy:{}};for(var z in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,z))J.yy[z]=this.yy[z];if(W.setInput(N,J.yy),J.yy.lexer=W,J.yy.parser=this,typeof W.yylloc>"u")W.yylloc={};var ne=W.yylloc;F.push(ne);var ie=W.options&&W.options.ranges;if(typeof J.yy.parseError==="function")this.parseError=J.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function le(Vt){B.length=B.length-2*Vt,P.length=P.length-Vt,F.length=F.length-Vt}I(le,"popStack");function se(){var Vt=D.pop()||W.lex()||te;if(typeof Vt!=="number"){if(Vt instanceof Array)D=Vt,Vt=D.pop();Vt=L.symbols_[Vt]||Vt}return Vt}I(se,"lex");var he,ye,xe,Ie,Ee,Ue,Me={},Xe,je,Qe,St;while(!0){if(xe=B[B.length-1],this.defaultActions[xe])Ie=this.defaultActions[xe];else{if(he===null||typeof he>"u")he=se();Ie=H[xe]&&H[xe][he]}if(typeof Ie>"u"||!Ie.length||!Ie[0]){var pt="";St=[];for(Xe in H[xe])if(this.terminals_[Xe]&&Xe>j)St.push("'"+this.terminals_[Xe]+"'");if(W.showPosition)pt="Parse error on line "+(Q+1)+`: -`+W.showPosition()+` -Expecting `+St.join(", ")+", got '"+(this.terminals_[he]||he)+"'";else pt="Parse error on line "+(Q+1)+": Unexpected "+(he==te?"end of input":"'"+(this.terminals_[he]||he)+"'");this.parseError(pt,{text:W.match,token:this.terminals_[he]||he,line:W.yylineno,loc:ne,expected:St})}if(Ie[0]instanceof Array&&Ie.length>1)throw Error("Parse Error: multiple actions possible at state: "+xe+", token: "+he);switch(Ie[0]){case 1:if(B.push(he),P.push(W.yytext),F.push(W.yylloc),B.push(Ie[1]),he=null,!ye){if(Z=W.yyleng,K=W.yytext,Q=W.yylineno,ne=W.yylloc,Y>0)Y--}else he=ye,ye=null;break;case 2:if(je=this.productions_[Ie[1]][1],Me.$=P[P.length-je],Me._$={first_line:F[F.length-(je||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(je||1)].first_column,last_column:F[F.length-1].last_column},ie)Me._$.range=[F[F.length-(je||1)].range[0],F[F.length-1].range[1]];if(Ue=this.performAction.apply(Me,[K,Z,Q,J.yy,Ie[1],P,F].concat(X)),typeof Ue<"u")return Ue;if(je)B=B.slice(0,-1*je*2),P=P.slice(0,-1*je),F=F.slice(0,-1*je);B.push(this.productions_[Ie[1]][0]),P.push(Me.$),F.push(Me._$),Qe=H[B[B.length-2]][B[B.length-1]],B.push(Qe);break;case 3:return!0}}return!0},"parse")},k=function(){var R={EOF:1,parseError:I(function(L,B){if(this.yy.parser)this.yy.parser.parseError(L,B);else throw Error(L)},"parseError"),setInput:I(function(N,L){if(this.yy=L||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var L=N.match(/(?:\r\n?|\n).*/g);if(L)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),N},"input"),unput:I(function(N){var L=N.length,B=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var D=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1)this.yylineno-=B.length-1;var P=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===D.length?this.yylloc.first_column:0)+D[D.length-B.length].length-B[0].length:this.yylloc.first_column-L},this.options.ranges)this.yylloc.range=[P[0],P[0]+this.yyleng-L];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`,"getStyles"),ECi=_Ci;I(Wpt,"withSeededRandom");nW=I((e)=>`${e}`,"wrapIcon"),Ooe={prefix:"mermaid-architecture",height:80,width:80,icons:{database:{body:nW('')},server:{body:nW('')},disk:{body:nW('')},internet:{body:nW('')},cloud:{body:nW('')},unknown:zet,blank:{body:nW("")}}},wCi=I(async function(e,r,i,a){let o=i.getConfigField("padding"),l=i.getConfigField("iconSize"),h=l/2,d=l/6,p=d/2;await Promise.all(r.edges().map(async(m)=>{let{source:y,sourceDir:v,sourceArrow:w,sourceGroup:T,target:x,targetDir:k,targetArrow:A,targetGroup:R,label:N}=GKr(m),{x:L,y:B}=m[0].sourceEndpoint(),{x:D,y:P}=m[0].midpoint(),{x:F,y:H}=m[0].targetEndpoint(),W=o+4;if(T)if(Iv(v))L+=v==="L"?-W:W;else B+=v==="T"?-W:W+18;if(R)if(Iv(k))F+=k==="L"?-W:W;else H+=k==="T"?-W:W+18;if(!T&&i.getNode(y)?.type==="junction")if(Iv(v))L+=v==="L"?h:-h;else B+=v==="T"?h:-h;if(!R&&i.getNode(x)?.type==="junction")if(Iv(k))F+=k==="L"?h:-h;else H+=k==="T"?h:-h;if(m[0]._private.rscratch){let X=e.insert("g");if(X.insert("path").attr("d",`M ${L},${B} L ${D},${P} L${F},${H} `).attr("class","edge").attr("id",`${a}-${j_(y,x,{prefix:"L"})}`),w){let Q=Iv(v)?s3e[v](L,d):L-p,Y=nM(v)?s3e[v](B,d):B-p;X.insert("polygon").attr("points",FKr[v](d)).attr("transform",`translate(${Q},${Y})`).attr("class","arrow")}if(A){let Q=Iv(k)?s3e[k](F,d):F-p,Y=nM(k)?s3e[k](H,d):H-p;X.insert("polygon").attr("points",FKr[k](d)).attr("transform",`translate(${Q},${Y})`).attr("class","arrow")}if(N){let Q=!jpt(v,k)?Iv(v)?"X":"Y":"XY",Y=0;if(Q==="X")Y=Math.abs(L-F);else if(Q==="Y")Y=Math.abs(B-H)/1.5;else Y=Math.abs(L-F)/2;let K=X.append("g");if(await ug(K,N,{useHtmlLabels:!1,width:Y,classes:"architecture-service-label"},Ar()),K.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),Q==="X")K.attr("transform","translate("+D+", "+P+")");else if(Q==="Y")K.attr("transform","translate("+D+", "+P+") rotate(-90)");else if(Q==="XY"){let J=Ypt(v,k);if(J&&hCi(J)){let Z=K.node().getBoundingClientRect(),[j,ee]=pCi(J);K.attr("dominant-baseline","auto").attr("transform",`rotate(${-1*j*ee*45})`);let z=K.node().getBoundingClientRect();K.attr("transform",` + translate(${D}, ${P-Z.height/2}) + translate(${j*z.width/2}, ${ee*z.height/2}) + rotate(${-1*j*ee*45}, 0, ${Z.height/2}) + `)}}}}}))},"drawEdges"),SCi=I(async function(e,r,i,a){let l=i.getConfigField("padding")*0.75,h=i.getConfigField("fontSize"),p=i.getConfigField("iconSize")/2;await Promise.all(r.nodes().map(async(m)=>{let y=iW(m);if(y.type==="group"){let{h:v,w,x1:T,y1:x}=m.boundingBox(),k=e.append("rect");k.attr("id",`${a}-group-${y.id}`).attr("x",T+p).attr("y",x+p).attr("width",w).attr("height",v).attr("class","node-bkg");let A=e.append("g"),R=T,N=x;if(y.icon){let L=A.append("g");L.html(`${await Y_(y.icon,{height:l,width:l,fallbackPrefix:Ooe.prefix})}`),L.attr("transform","translate("+(R+p+1)+", "+(N+p+1)+")"),R+=l,N+=h/2-1-2}if(y.label){let L=A.append("g");await ug(L,y.label,{useHtmlLabels:!1,width:w,classes:"architecture-service-label"},Ar()),L.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","start").attr("text-anchor","start"),L.attr("transform","translate("+(R+p+4)+", "+(N+p+2)+")")}i.setElementForId(y.id,k)}}))},"drawGroups"),TCi=I(async function(e,r,i,a){let o=Ar();for(let l of i){let h=r.append("g"),d=e.getConfigField("iconSize");if(l.title){let v=h.append("g");await ug(v,l.title,{useHtmlLabels:!1,width:d*1.5,classes:"architecture-service-label"},o),v.attr("dy","1em").attr("alignment-baseline","middle").attr("dominant-baseline","middle").attr("text-anchor","middle"),v.attr("transform","translate("+d/2+", "+d+")")}let p=h.append("g");if(l.icon)p.html(`${await Y_(l.icon,{height:d,width:d,fallbackPrefix:Ooe.prefix})}`);else if(l.iconText){p.html(`${await Y_("blank",{height:d,width:d,fallbackPrefix:Ooe.prefix})}`);let T=p.append("g").append("foreignObject").attr("width",d).attr("height",d).append("div").attr("class","node-icon-text").attr("style",`height: ${d}px;`).append("div").html(ho(l.iconText,o)),x=parseInt(window.getComputedStyle(T.node(),null).getPropertyValue("font-size").replace(/\D/g,""))??16;T.attr("style",`-webkit-line-clamp: ${Math.floor((d-2)/x)};`)}else p.append("path").attr("class","node-bkg").attr("id",`${a}-node-${l.id}`).attr("d",`M0,${d} V5 Q0,0 5,0 H${d-5} Q${d},0 ${d},5 V${d} Z`);h.attr("id",`${a}-service-${l.id}`).attr("class","architecture-service");let{width:m,height:y}=h.node().getBBox();l.width=m,l.height=y,e.setElementForId(l.id,h)}return 0},"drawServices"),xCi=I(function(e,r,i,a){i.forEach((o)=>{let l=r.append("g"),h=e.getConfigField("iconSize");l.append("g").append("rect").attr("id",`${a}-node-${o.id}`).attr("fill-opacity","0").attr("width",h).attr("height",h),l.attr("class","architecture-junction");let{width:p,height:m}=l._groups[0][0].getBBox();l.width=p,l.height=m,e.setElementForId(o.id,l)})},"drawJunctions");xH([{name:Ooe.prefix,icons:Ooe}]);lT.use(HKr.default);I(qKr,"addServices");I(YKr,"addJunctions");I(WKr,"positionNodes");I(jKr,"addGroups");I(KKr,"addEdges");I(XKr,"getAlignments");I(QKr,"getRelativeConstraints");I(ZKr,"layoutArchitecture");CCi=I(async(e,r,i,a)=>{let o=a.db;o.setDiagramId(r);let l=o.getServices(),h=o.getJunctions(),d=o.getGroups(),p=o.getEdges(),m=o.getDataStructures(),y=Ou(r),v=y.append("g");v.attr("class","architecture-edges");let w=y.append("g");w.attr("class","architecture-services");let T=y.append("g");T.attr("class","architecture-groups"),await TCi(o,w,l,r),xCi(o,w,h,r);let x=await ZKr(l,h,d,p,o,m);await wCi(v,x,o,r),await SCi(T,x,o,r),WKr(o,x),i3(void 0,y,o.getConfigField("padding"),o.getConfigField("useMaxWidth"))},"draw"),kCi={draw:CCi},JKr={parser:VKr,get db(){return new zKr},renderer:kCi,styles:ECi}});function iXr(){c3e={}}function aXr(){let e=LCi,{ast:r}=c3e,i=Zpt();if(!r)throw Error("No data for EventModel");return r.frames.forEach((a,o)=>{let l=dXr(a,r.dataEntities,i);e=l3e(e,{$kind:tXr,index:o,frame:a,textProps:l});let h=void 0;if(yXr(a))Ze.debug("source frame",a.sourceFrames),h=r.frames.filter((d)=>a.sourceFrames.some((p)=>p.$refText===d.name)),h.forEach((d)=>{e=l3e(e,{$kind:Kpt,index:o,frame:a,sourceFrame:d})});else e=l3e(e,{$kind:Kpt,index:o,frame:a})}),e={...e,sortedSwimlanesArray:Jpt(e.swimlanes)},e}function sXr(e){c3e.ast=void 0;let r=new Set;for(let i of e.frames){if(r.has(i.name)){let a=i.$cstNode?.range.start.line,o=a===void 0?"":` on line ${a+1}`;throw Error(`Duplicate event modeling frame ID "${i.name}"${o}`)}r.add(i.name)}c3e.ast=e}function Zpt(){return Fu}function oXr(e){let r=e.split(".");if(r.length===2)return r[0];return}function lXr(e){let r=e.split(".");if(r.length===2)return r[1];return e}function cXr(e,r){if(!r||r.length===0)return;return Object.values(e).find((i)=>i.namespace===r)}function o3e(e,r,i){return Math.max(r,...Object.keys(e).filter((a)=>{let o=Number.parseInt(a);return o>r&&oNumber.parseInt(a)))+1}function uXr(e,r){let i=oXr(e.entityIdentifier),a=cXr(r,i);switch(e.modelEntityType){case"ui":case"pcr":case"processor":if(a)return{index:a.index,label:a.namespace||Fu.labelUiAutomation};else if(i)return{index:o3e(r,0,100),label:Fu.labelUiAutomationPrefix+i};return{index:0,label:Fu.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":if(a)return{index:a.index,label:a.namespace||Fu.labelCommandReadModel};else if(i)return{index:o3e(r,100,200),label:Fu.labelCommandReadModelPrefix+i};return{index:100,label:Fu.labelCommandReadModel};case"evt":case"event":default:if(a)return{index:a.index,label:a.namespace||Fu.labelEvents};else if(i)return{index:o3e(r,200,300),label:Fu.labelEventsPrefix+i};return{index:200,label:Fu.labelEvents}}}function hXr(e){let{themeVariables:r}=ea();switch(e.modelEntityType){case"ui":return{fill:r.emUiFill??"white",stroke:r.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:r.emProcessorFill??"#edb3f6",stroke:r.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:r.emReadModelFill??"#d3f1a2",stroke:r.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:r.emCommandFill??"#bcd6fe",stroke:r.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:r.emEventFill??"#ffb778",stroke:r.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}function dXr(e,r,i){let a=ea(),o=ho(lXr(e.entityIdentifier)??"",a),l,h={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"
    "},p=`${WP(o,i.textMaxWidth,h)}`;if(e.dataInlineValue)l=e.dataInlineValue,l=l.substring(l.indexOf("{")+1),l=l.substring(0,l.lastIndexOf("}")-1),l=ho(l,a),l=WP(l,i.textMaxWidth,h),l=l.replaceAll(" "," ");if(e.dataReference){let x=r.find((k)=>k.name===e.dataReference?.$refText);if(x)l=x.dataBlockValue,l=l.substring(l.indexOf(`{ +`)+2),l=l.substring(0,l.lastIndexOf("}")-1),l=ho(l,a),l=WP(l,i.textMaxWidth,h),l=l.replaceAll(" "," "),l+="
    "}let m=l!==void 0;if(m)p+=`

    ${l}`;let y={fontSize:h.fontSize,fontWeight:h.fontWeight,fontFamily:h.fontFamily},v=Mne(p,y),w=m?v.width/3:v.width,T={content:p,width:w,height:v.height};return Ze.debug(`[${e.name}] ${e.entityIdentifier} text`,T),T}function fXr(e,r){let i=r,a=hXr(i.frame),o={width:i.textProps.width+2*Fu.boxTextPadding,height:i.textProps.height+2*Fu.boxTextPadding};return[{$kind:rXr,frame:i.frame,index:i.index,visual:a,dimension:o,textProps:i.textProps}]}function pXr(e,r,i){if(r===void 0)return Fu.contentStartX;if(r.index===e.index&&e.r)return e.r+Fu.boxPadding;if(i===void 0)return Fu.contentStartX;return i.r-Fu.boxOverlap+Fu.boxPadding}function gXr(e,r){let i=[...e.map((a)=>a.r),r];return Math.max(...i)}function Jpt(e){return Object.values(e).sort((r,i)=>r.index-i.index)}function mXr(e,r){let i=r,a=uXr(i.frame,e.swimlanes),o;if(a.index in e.swimlanes)o=e.swimlanes[a.index];else o={index:a.index,label:a.label,r:0,y:a.index*Fu.swimlaneMinHeight+Fu.swimlaneGap,height:Fu.swimlaneMinHeight,maxHeight:Fu.swimlaneMinHeight};let l=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,h=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,d={width:Math.max(Fu.boxMinWidth,Math.min(Fu.boxMaxWidth,i.dimension.width))+2*Fu.boxPadding,height:Math.max(Fu.boxMinHeight,Math.min(Fu.boxMaxHeight,i.dimension.height))+2*Fu.boxPadding},p=pXr(o,h,l),m=p+d.width+Fu.boxPadding,y=gXr(Object.values(e.swimlanes),m);o.r=p+d.width,o.maxHeight=Math.max(o.maxHeight,d.height),o.height=Math.max(Fu.swimlaneMinHeight,o.maxHeight)+2*Fu.swimlanePadding;let v={x:p,y:Fu.swimlanePadding+o.y,r:m,dimension:d,leftSibling:!1,swimlane:o,visual:i.visual,text:i.textProps.content,frame:i.frame,index:i.index},w={...e,boxes:[...e.boxes,v],swimlanes:{...e.swimlanes,[`${o.index}`]:o},previousSwimlaneNumber:a.index,previousFrame:i.frame,maxR:y},T=Jpt(w.swimlanes);if(T.length>0)T[0].y=0;for(let x=1;x0}function Xpt(e,r){if(r===void 0||r===null)return;return e.find((i)=>i.frame.name===r.name)}function vXr(e,r,i){if(i<0)return;for(let a=i;a>=0;a--){let o=e[a];if(o.swimlane.index!==r)return o}return}function _Xr(e,r){let i=r;if(bXr(i.index,i.frame))return[];let a=Xpt(e.boxes,i.frame);if(a===void 0)throw Error(`Target box not found for frame ${i.frame.name}`);let o;if(i.sourceFrame)o=Xpt(e.boxes,i.sourceFrame);else{if(Kse(i.frame))return[];o=vXr(e.boxes,a.swimlane.index,i.index-1)}if(o===void 0)return[];return[{$kind:nXr,frame:i.frame,index:i.index,sourceBox:o,targetBox:a}]}function EXr(e,r){let i=r,a={visual:{fill:"none",stroke:"#000"},source:{x:i.sourceBox.x,y:i.sourceBox.y},target:{x:i.targetBox.x,y:i.targetBox.y},sourceBox:i.sourceBox,targetBox:i.targetBox};return{...e,relations:[...e.relations,a]}}function wXr(e,r){let i=MCi[r.$kind];if(i===void 0||i===null)return[];let a=i(e,r);return Ze.debug("decided events",a),a}function SXr(e,r){let i=r.reduce((a,o)=>{let l=DCi[o.$kind];if(l===void 0||l===null)return a;return l(a,o)},e);return Ze.debug("evolve events",{state:e,newState:i,events:r}),i}function l3e(e,r){let i=wXr(e,r);return SXr(e,i)}function TXr(e,r){return(i)=>{let a=i.swimlane.y+r.swimlanePadding,o=e.append("g").attr("class","em-box");o.append("rect").attr("x",i.x).attr("y",a).attr("rx","3").attr("width",i.dimension.width).attr("height",i.dimension.height).attr("stroke",i.visual.stroke).attr("fill",i.visual.fill),o.append("foreignObject").attr("x",i.x+r.boxPadding).attr("y",a+10).attr("width",i.dimension.width-2*r.boxPadding).attr("height",i.dimension.height-2*r.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(i.text)}}function xXr(e,r){return e>r}function CXr(e,r,i,a){return(o)=>{let l=o.sourceBox.swimlane.y+r.swimlanePadding,h=o.targetBox.swimlane.y+r.swimlanePadding,d=xXr(l,h),p=o.sourceBox.x+o.sourceBox.dimension.width*2/3,m=o.targetBox.x+o.targetBox.dimension.width/3,y,v;if(Ze.debug(`rendering relation up=${d} for `,{sourceBox:o.sourceBox,targetBox:o.targetBox}),d)y=l,v=h+o.targetBox.dimension.height;else y=l+o.sourceBox.dimension.height,v=h;let w=a.emRelationStroke??o.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",o.visual.fill).attr("stroke",w).attr("stroke-width","1").attr("marker-end",`url(#${i})`).attr("d",`M${p} ${y} L${m} ${v}`)}}function kXr(e,r,i,a){return(o)=>{let l=e.append("g").attr("class","em-swimlane"),h=a.emSwimlaneBackgroundOdd??"rgb(250,250,250)",d=a.emSwimlaneBackgroundStroke??"rgb(240,240,240)";l.append("rect").attr("x",0).attr("y",o.y).attr("rx","3").attr("width",r+i.swimlanePadding).attr("height",o.height).attr("fill",h).attr("stroke",d),l.append("text").attr("font-weight",i.swimlaneTextFontWeight).attr("x",30).attr("y",o.y+30).text(o.label)}}var tXr="position frame",rXr="frame positioned",Kpt="position relation",nXr="relation positioned",ACi,RCi,ICi,OCi,NCi,c3e,Fu,LCi,MCi,DCi,Qpt,PCi,BCi,FCi,$Ci,UCi,GCi,zCi,AXr;var RXr=Re(()=>{Tv();Ql();eo();Zs();Ja();rb();rb();dl();ACi=I(function(e){Ze.debug("options str",e)},"setOptions"),RCi=I(function(){return{}},"getOptions"),ICi=I(function(){iXr(),qs()},"clear");I(iXr,"reset");OCi=Fs.eventmodeling,NCi=I(()=>bc({...OCi,...ea().eventmodeling}),"getConfig"),c3e={};I(aXr,"getState");I(sXr,"setAst");Fu={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};I(Zpt,"getDiagramProps");LCi={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};I(oXr,"extractNamespace");I(lXr,"extractName");I(cXr,"findSwimlaneByNamespace");I(o3e,"findNextAvailableIndex");I(uXr,"calculateSwimlaneProps");I(hXr,"calculateEntityVisualProps");I(dXr,"calculateTextProps");I(fXr,"decidePositionFrame");I(pXr,"calculateX");I(gXr,"calculateMaxRight");I(Jpt,"sortedSwimlanesArray");I(mXr,"evolveFramePositioned");I(bXr,"isFirstFrame");I(yXr,"hasSourceFrame");I(Xpt,"findBoxByFrame");I(vXr,"findBoxByLineIndex");I(_Xr,"decidePositionRelation");I(EXr,"evolveRelationPositioned");MCi={[tXr]:fXr,[Kpt]:_Xr},DCi={[rXr]:mXr,[nXr]:EXr};I(wXr,"decide");I(SXr,"evolve");I(l3e,"dispatch");Qpt={getConfig:NCi,preserveCommentsWhenParsing:!0,setOptions:ACi,getOptions:RCi,clear:ICi,setAccTitle:Ys,getAccTitle:oo,getAccDescription:lo,setAccDescription:Js,setDiagramTitle:_o,getDiagramTitle:fo,setAst:sXr,getDiagramProps:Zpt,getState:aXr},PCi={parse:I(async(e)=>{let r=await lp("eventmodeling",e);Ze.debug(r),Qpt.setAst(r),Sh(r,Qpt)},"parse")},BCi=Ar(),FCi=BCi?.eventmodeling;I(TXr,"renderD3Box");I(xXr,"dirUpwards");I(CXr,"renderD3Relation");I(kXr,"renderD3Swimlane");$Ci=I(function(e,r,i,a){if(Ze.debug("in eventmodeling renderer",e+` +`,"id:",r,i),!FCi)throw Error("EventModeling config not found");let o=a.db,{themeVariables:l,eventmodeling:h}=Ar(),d=xn(`[id="${r}"]`),p=o.getDiagramProps(),m=o.getState(),y=`em-arrowhead-${r}`,v=l.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(kXr(d,m.maxR,p,l)),m.boxes.forEach(TXr(d,p)),m.relations.forEach(CXr(d,p,y,l)),d.append("defs").append("marker").attr("id",y).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",v),Dre(void 0,d,h?.padding??30,h?.useMaxWidth)},"draw"),UCi={draw:$Ci},GCi=I((e)=>"","getStyles"),zCi=GCi,AXr={parser:PCi,db:Qpt,renderer:UCi,styles:zCi}});var t0t,VCi,HCi,qCi=14,aW=250,YCi=30,WCi=60,jCi=5,DXr,IXr,OXr,NXr,KCi,LXr,XCi,QCi,ZCi,e0t,JCi,e4i,PXr,u3e,MXr,sW,t4i,r4i,n4i,BXr;var FXr=Re(()=>{A0();Ql();eo();Zs();Ja();Na();t0t=function(){var e=I(function(R,N,L,B){for(L=L||{},B=R.length;B--;L[R[B]]=N);return L},"o"),r=[1,4],i=[1,14],a=[1,12],o=[1,13],l=[6,7,8],h=[1,20],d=[1,18],p=[1,19],m=[6,7,11],y=[1,6,13,14],v=[1,23],w=[1,24],T=[1,6,7,11,13,14],x={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:I(function(N,L,B,D,P,F,H){var W=F.length-1;switch(P){case 6:case 7:return D;case 15:D.addNode(F[W-1].length,F[W].trim());break;case 16:D.addNode(0,F[W].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:r},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:r},{6:i,7:[1,10],9:9,12:11,13:a,14:o},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:i,12:15,13:a,14:o},{6:i,9:16,12:11,13:a,14:o},{6:h,7:d,10:17,11:p},e(m,[2,18],{14:[1,21]}),e(m,[2,16]),e(m,[2,17]),{6:h,7:d,10:22,11:p},{1:[2,7],6:i,12:15,13:a,14:o},e(y,[2,14],{7:v,11:w}),e(T,[2,8]),e(T,[2,9]),e(T,[2,10]),e(m,[2,15]),e(y,[2,13],{7:v,11:w}),e(T,[2,11]),e(T,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:I(function(N,L){if(L.recoverable)this.trace(N);else{var B=Error(N);throw B.hash=L,B}},"parseError"),parse:I(function(N){var L=this,B=[0],D=[],P=[null],F=[],H=this.table,W="",X=0,Q=0,Y=0,K=2,J=1,Z=F.slice.call(arguments,1),j=Object.create(this.lexer),ee={yy:{}};for(var z in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,z))ee.yy[z]=this.yy[z];if(j.setInput(N,ee.yy),ee.yy.lexer=j,ee.yy.parser=this,typeof j.yylloc>"u")j.yylloc={};var ne=j.yylloc;F.push(ne);var ie=j.options&&j.options.ranges;if(typeof ee.yy.parseError==="function")this.parseError=ee.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function se(zt){B.length=B.length-2*zt,P.length=P.length-zt,F.length=F.length-zt}I(se,"popStack");function oe(){var zt=D.pop()||j.lex()||J;if(typeof zt!=="number"){if(zt instanceof Array)D=zt,zt=D.pop();zt=L.symbols_[zt]||zt}return zt}I(oe,"lex");var he,ye,Se,Ie,Ee,ze,Me={},Xe,Ye,Qe,xt;while(!0){if(Se=B[B.length-1],this.defaultActions[Se])Ie=this.defaultActions[Se];else{if(he===null||typeof he>"u")he=oe();Ie=H[Se]&&H[Se][he]}if(typeof Ie>"u"||!Ie.length||!Ie[0]){var dt="";xt=[];for(Xe in H[Se])if(this.terminals_[Xe]&&Xe>K)xt.push("'"+this.terminals_[Xe]+"'");if(j.showPosition)dt="Parse error on line "+(X+1)+`: +`+j.showPosition()+` +Expecting `+xt.join(", ")+", got '"+(this.terminals_[he]||he)+"'";else dt="Parse error on line "+(X+1)+": Unexpected "+(he==J?"end of input":"'"+(this.terminals_[he]||he)+"'");this.parseError(dt,{text:j.match,token:this.terminals_[he]||he,line:j.yylineno,loc:ne,expected:xt})}if(Ie[0]instanceof Array&&Ie.length>1)throw Error("Parse Error: multiple actions possible at state: "+Se+", token: "+he);switch(Ie[0]){case 1:if(B.push(he),P.push(j.yytext),F.push(j.yylloc),B.push(Ie[1]),he=null,!ye){if(Q=j.yyleng,W=j.yytext,X=j.yylineno,ne=j.yylloc,Y>0)Y--}else he=ye,ye=null;break;case 2:if(Ye=this.productions_[Ie[1]][1],Me.$=P[P.length-Ye],Me._$={first_line:F[F.length-(Ye||1)].first_line,last_line:F[F.length-1].last_line,first_column:F[F.length-(Ye||1)].first_column,last_column:F[F.length-1].last_column},ie)Me._$.range=[F[F.length-(Ye||1)].range[0],F[F.length-1].range[1]];if(ze=this.performAction.apply(Me,[W,Q,X,ee.yy,Ie[1],P,F].concat(Z)),typeof ze<"u")return ze;if(Ye)B=B.slice(0,-1*Ye*2),P=P.slice(0,-1*Ye),F=F.slice(0,-1*Ye);B.push(this.productions_[Ie[1]][0]),P.push(Me.$),F.push(Me._$),Qe=H[B[B.length-2]][B[B.length-1]],B.push(Qe);break;case 3:return!0}}return!0},"parse")},k=function(){var R={EOF:1,parseError:I(function(L,B){if(this.yy.parser)this.yy.parser.parseError(L,B);else throw Error(L)},"parseError"),setInput:I(function(N,L){if(this.yy=L||this.yy||{},this._input=N,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var N=this._input[0];this.yytext+=N,this.yyleng++,this.offset++,this.match+=N,this.matched+=N;var L=N.match(/(?:\r\n?|\n).*/g);if(L)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),N},"input"),unput:I(function(N){var L=N.length,B=N.split(/(?:\r\n?|\n)/g);this._input=N+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var D=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),B.length-1)this.yylineno-=B.length-1;var P=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:B?(B.length===D.length?this.yylloc.first_column:0)+D[D.length-B.length].length-B[0].length:this.yylloc.first_column-L},this.options.ranges)this.yylloc.range=[P[0],P[0]+this.yyleng-L];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(N){this.unput(this.match.slice(N))},"less"),pastInput:I(function(){var N=this.matched.substr(0,this.matched.length-this.match.length);return(N.length>20?"...":"")+N.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var N=this.match;if(N.length<20)N+=this._input.substr(0,20-N.length);return(N.substr(0,20)+(N.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var N=this.pastInput(),L=Array(N.length+1).join("-");return N+this.upcomingInput()+` `+L+"^"},"showPosition"),test_match:I(function(N,L){var B,D,P;if(this.options.backtrack_lexer){if(P={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)P.yylloc.range=this.yylloc.range.slice(0)}if(D=N[0].match(/(?:\r\n?|\n).*/g),D)this.yylineno+=D.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:D?D[D.length-1].length-D[D.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+N[0].length},this.yytext+=N[0],this.match+=N[0],this.matches=N,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(N[0].length),this.matched+=N[0],B=this.performAction.call(this,this.yy,this,L,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(B)return B;else if(this._backtrack){for(var F in P)this[F]=P[F];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var N,L,B,D;if(!this._more)this.yytext="",this.match="";var P=this._currentRules();for(var F=0;FL[0].length)){if(L=B,D=F,this.options.backtrack_lexer)if(N=this.test_match(B,P[F]),N!==!1)return N;else if(this._backtrack){L=!1;continue}else return!1;else if(!this.options.flex)break}if(L){if(N=this.test_match(L,P[D]),N!==!1)return N;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var L=this.next();if(L)return L;else return this.lex()},"lex"),begin:I(function(L){this.conditionStack.push(L)},"begin"),popState:I(function(){var L=this.conditionStack.length-1;if(L>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(L){if(L=this.conditionStack.length-1-Math.abs(L||0),L>=0)return this.conditionStack[L];else return"INITIAL"},"topState"),pushState:I(function(L){this.begin(L)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(L,B,D,P){var F=P;switch(D){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return R}();x.lexer=k;function A(){this.yy={}}return I(A,"Parser"),A.prototype=x,x.Parser=A,new A}();Zpt.parser=Zpt;BCi=Zpt,FCi=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{I(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,qs()}getRoot(){return this.root}addNode(e,r){let i=ai.sanitizeText(r,Ar());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],_o(i);return}this.baseLevel??=e;let a=e-this.baseLevel+1;if(a<=0)a=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=a)this.stack.pop();let o=this.stack[this.stack.length-1].node,l={text:i,children:[]};o.children.push(l),this.stack.push({level:a,node:l})}getAccTitle(){return oo()}setAccTitle(e){Ys(e)}getAccDescription(){return lo()}setAccDescription(e){Js(e)}getDiagramTitle(){return fo()}setDiagramTitle(e){_o(e)}},IXr=82*Math.PI/180,xXr=Math.cos(IXr),CXr=Math.sin(IXr),kXr=I((e,r,i)=>{let a=e.node().getBBox(),o=a.width+r*2,l=a.height+r*2;Bl(e,l,o,i),e.attr("viewBox",`${a.x-r} ${a.y-r} ${o} ${l}`)},"applyPaddedViewBox"),VCi=I((e,r,i,a)=>{let l=a.db.getRoot();if(!l)return;let h=Ar(),{look:d,handDrawnSeed:p,themeVariables:m}=h,y=W_(h.fontSize)[0]??$Ci,E=d==="handDrawn",w=l.children??[],T=h.ishikawa?.diagramPadding??20,x=h.ishikawa?.useMaxWidth??!1,k=Ou(r),A=k.append("g").attr("class","ishikawa"),R=E?ln.svg(k.node()):void 0,N=R?{roughSvg:R,seed:p??0,lineColor:m?.lineColor??"#333",fillColor:m?.mainBkg??"#fff"}:void 0,L=`ishikawa-arrow-${r}`;if(!E)A.append("defs").append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let B=0,D=rW,P=E?void 0:nW(A,B,D,B,D,"ishikawa-spine");if(HCi(A,B,D,l.text,y,N),!w.length){if(E)nW(A,B,D,B,D,"ishikawa-spine",N);kXr(k,T,x);return}B-=20;let F=w.filter((W,J)=>J%2===0),H=w.filter((W,J)=>J%2===1),K=AXr(F),Q=AXr(H),Z=K.total+Q.total,Y=rW,j=rW;if(Z>0){let W=rW*2,J=rW*0.3;Y=Math.max(J,W*(K.total/Z)),j=Math.max(J,W*(Q.total/Z))}let te=y*2;if(Y=Math.max(Y,K.max*te),j=Math.max(j,Q.max*te),D=Math.max(Y,rW),P)P.attr("y1",D).attr("y2",D);A.select(".ishikawa-head-group").attr("transform",`translate(0,${D})`);let X=Math.ceil(w.length/2);for(let W=0;WMath.min(z,ne.getBBox().x),1/0)}if(E)nW(A,B,D,0,D,"ishikawa-spine",N);else{P.attr("x1",B);let W=`url(#${L})`;A.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",W)}kXr(k,T,x)},"draw"),AXr=I((e)=>{let r=I((i)=>i.children.reduce((a,o)=>a+1+r(o),0),"countDescendants");return e.reduce((i,a)=>{let o=r(a);return i.total+=o,i.max=Math.max(i.max,o),i},{total:0,max:0})},"sideStats"),HCi=I((e,r,i,a,o,l)=>{let h=Math.max(6,Math.floor(110/(o*0.6))),d=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${r},${i})`),p=o3e(d,OXr(a,h),0,0,"ishikawa-head-label","start",o),m=p.node().getBBox(),y=Math.max(60,m.width+6),E=Math.max(40,m.height*2+40),w=`M 0 ${-E/2} L 0 ${E/2} Q ${y*2.4} 0 0 ${-E/2} Z`;if(l){let T=l.roughSvg.path(w,{roughness:1.5,seed:l.seed,fill:l.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:l.lineColor,strokeWidth:2});d.insert(()=>T,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",w);p.attr("transform",`translate(${(y-m.width)/2-m.x+3},${-m.y-m.height/2})`)},"drawHead"),qCi=I((e,r)=>{let i=[],a=[],o=I((l,h,d)=>{let p=r===-1?[...l].reverse():l;for(let m of p){let y=i.length,E=m.children??[];if(i.push({depth:d,text:OXr(m.text,15),parentIndex:h,childCount:E.length}),d%2===0){if(a.push(y),E.length)o(E,y,d+1)}else{if(E.length)o(E,y,d+1);a.push(y)}}},"walk");return o(e,-1,2),{entries:i,yOrder:a}},"flattenTree"),YCi=I((e,r,i,a,o,l,h)=>{let d=e.append("g").attr("class","ishikawa-label-group"),m=o3e(d,r,i,a+11*o,"ishikawa-label cause","middle",l).node().getBBox();if(h){let y=h.roughSvg.rectangle(m.x-20,m.y-2,m.width+40,m.height+4,{roughness:1.5,seed:h.seed,fill:h.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:h.lineColor,strokeWidth:2});d.insert(()=>y,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",m.x-20).attr("y",m.y-2).attr("width",m.width+40).attr("height",m.height+4)},"drawCauseLabel"),Qpt=I((e,r,i,a,o,l)=>{let h=Math.sqrt(a*a+o*o);if(h===0)return;let d=a/h,p=o/h,m=6,y=-p*m,E=d*m,w=r,T=i,x=`M ${w} ${T} L ${w-d*m*2+y} ${T-p*m*2+E} L ${w-d*m*2-y} ${T-p*m*2-E} Z`,k=l.roughSvg.path(x,{roughness:1,seed:l.seed,fill:l.lineColor,fillStyle:"solid",stroke:l.lineColor,strokeWidth:1});e.append(()=>k)},"drawArrowMarker"),WCi=I((e,r,i,a,o,l,h,d)=>{let p=r.children??[],m=l*(p.length?1:0.2),y=-xXr*m,E=CXr*m*o,w=i+y,T=a+E;if(nW(e,i,a,w,T,"ishikawa-branch",d),d)Qpt(e,i,a,i-w,a-T,d);if(YCi(e,r.text,w,T,o,h,d),!p.length)return;let{entries:x,yOrder:k}=qCi(p,o),A=x.length,R=Array(A);for(let[P,F]of k.entries())R[F]=a+E*((P+1)/(A+1));let N=new Map;N.set(-1,{x0:i,y0:a,x1:w,y1:T,childCount:p.length,childrenDrawn:0});let L=-xXr,B=CXr*o,D=o<0?"ishikawa-label up":"ishikawa-label down";for(let[P,F]of x.entries()){let H=R[P],K=N.get(F.parentIndex),Q=e.append("g").attr("class","ishikawa-sub-group"),Z=0,Y=0,j=0;if(F.depth%2===0){let te=K.y1-K.y0;if(Z=RXr(K.x0,K.x1,te?(H-K.y0)/te:0.5),Y=H,j=Z-(F.childCount>0?GCi+F.childCount*zCi:UCi),nW(Q,Z,H,j,H,"ishikawa-sub-branch",d),d)Qpt(Q,Z,H,1,0,d);o3e(Q,F.text,j,H,"ishikawa-label align","end",h)}else{let te=K.childrenDrawn++;if(Z=RXr(K.x0,K.x1,(K.childCount-te)/(K.childCount+1)),Y=K.y0,j=Z+L*((H-Y)/B),nW(Q,Z,Y,j,H,"ishikawa-sub-branch",d),d)Qpt(Q,Z,Y,Z-j,Y-H,d);o3e(Q,F.text,j,H,D,"end",h)}if(F.childCount>0)N.set(P,{x0:Z,y0:Y,x1:j,y1:H,childCount:F.childCount,childrenDrawn:0})}},"drawBranch"),jCi=I((e)=>e.split(/|\n/),"splitLines"),OXr=I((e,r)=>{if(e.length<=r)return e;let i=[];for(let a of e.split(/\s+/)){let o=i.length-1;if(o>=0&&i[o].length+1+a.length<=r)i[o]+=" "+a;else i.push(a)}return i.join(` -`)},"wrapText"),o3e=I((e,r,i,a,o,l,h)=>{let d=jCi(r),p=h*1.05,m=e.append("text").attr("class",o).attr("text-anchor",l).attr("x",i).attr("y",a-(d.length-1)*p/2);for(let[y,E]of d.entries())m.append("tspan").attr("x",i).attr("dy",y===0?0:p).text(E);return m},"drawMultilineText"),RXr=I((e,r,i)=>e+(r-e)*i,"lerp"),nW=I((e,r,i,a,o,l,h)=>{if(h){let d=h.roughSvg.line(r,i,a,o,{roughness:1.5,seed:h.seed,stroke:h.lineColor,strokeWidth:2});e.append(()=>d).attr("class",l);return}return e.append("line").attr("class",l).attr("x1",r).attr("y1",i).attr("x2",a).attr("y2",o)},"drawLine"),KCi={draw:VCi},XCi=I((e)=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var L=this.next();if(L)return L;else return this.lex()},"lex"),begin:I(function(L){this.conditionStack.push(L)},"begin"),popState:I(function(){var L=this.conditionStack.length-1;if(L>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(L){if(L=this.conditionStack.length-1-Math.abs(L||0),L>=0)return this.conditionStack[L];else return"INITIAL"},"topState"),pushState:I(function(L){this.begin(L)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(L,B,D,P){var F=P;switch(D){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return R}();x.lexer=k;function A(){this.yy={}}return I(A,"Parser"),A.prototype=x,x.Parser=A,new A}();t0t.parser=t0t;VCi=t0t,HCi=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}static{I(this,"IshikawaDB")}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,qs()}getRoot(){return this.root}addNode(e,r){let i=ai.sanitizeText(r,Ar());if(!this.root){this.root={text:i,children:[]},this.stack=[{level:0,node:this.root}],_o(i);return}this.baseLevel??=e;let a=e-this.baseLevel+1;if(a<=0)a=1;while(this.stack.length>1&&this.stack[this.stack.length-1].level>=a)this.stack.pop();let o=this.stack[this.stack.length-1].node,l={text:i,children:[]};o.children.push(l),this.stack.push({level:a,node:l})}getAccTitle(){return oo()}setAccTitle(e){Ys(e)}getAccDescription(){return lo()}setAccDescription(e){Js(e)}getDiagramTitle(){return fo()}setDiagramTitle(e){_o(e)}},DXr=82*Math.PI/180,IXr=Math.cos(DXr),OXr=Math.sin(DXr),NXr=I((e,r,i)=>{let a=e.node().getBBox(),o=a.width+r*2,l=a.height+r*2;Bl(e,l,o,i),e.attr("viewBox",`${a.x-r} ${a.y-r} ${o} ${l}`)},"applyPaddedViewBox"),KCi=I((e,r,i,a)=>{let l=a.db.getRoot();if(!l)return;let h=Ar(),{look:d,handDrawnSeed:p,themeVariables:m}=h,y=W_(h.fontSize)[0]??qCi,v=d==="handDrawn",w=l.children??[],T=h.ishikawa?.diagramPadding??20,x=h.ishikawa?.useMaxWidth??!1,k=Ou(r),A=k.append("g").attr("class","ishikawa"),R=v?cn.svg(k.node()):void 0,N=R?{roughSvg:R,seed:p??0,lineColor:m?.lineColor??"#333",fillColor:m?.mainBkg??"#fff"}:void 0,L=`ishikawa-arrow-${r}`;if(!v)A.append("defs").append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let B=0,D=aW,P=v?void 0:sW(A,B,D,B,D,"ishikawa-spine");if(XCi(A,B,D,l.text,y,N),!w.length){if(v)sW(A,B,D,B,D,"ishikawa-spine",N);NXr(k,T,x);return}B-=20;let F=w.filter((j,ee)=>ee%2===0),H=w.filter((j,ee)=>ee%2===1),W=LXr(F),X=LXr(H),Q=W.total+X.total,Y=aW,K=aW;if(Q>0){let j=aW*2,ee=aW*0.3;Y=Math.max(ee,j*(W.total/Q)),K=Math.max(ee,j*(X.total/Q))}let J=y*2;if(Y=Math.max(Y,W.max*J),K=Math.max(K,X.max*J),D=Math.max(Y,aW),P)P.attr("y1",D).attr("y2",D);A.select(".ishikawa-head-group").attr("transform",`translate(0,${D})`);let Z=Math.ceil(w.length/2);for(let j=0;jMath.min(z,ne.getBBox().x),1/0)}if(v)sW(A,B,D,0,D,"ishikawa-spine",N);else{P.attr("x1",B);let j=`url(#${L})`;A.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",j)}NXr(k,T,x)},"draw"),LXr=I((e)=>{let r=I((i)=>i.children.reduce((a,o)=>a+1+r(o),0),"countDescendants");return e.reduce((i,a)=>{let o=r(a);return i.total+=o,i.max=Math.max(i.max,o),i},{total:0,max:0})},"sideStats"),XCi=I((e,r,i,a,o,l)=>{let h=Math.max(6,Math.floor(110/(o*0.6))),d=e.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${r},${i})`),p=u3e(d,PXr(a,h),0,0,"ishikawa-head-label","start",o),m=p.node().getBBox(),y=Math.max(60,m.width+6),v=Math.max(40,m.height*2+40),w=`M 0 ${-v/2} L 0 ${v/2} Q ${y*2.4} 0 0 ${-v/2} Z`;if(l){let T=l.roughSvg.path(w,{roughness:1.5,seed:l.seed,fill:l.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:l.lineColor,strokeWidth:2});d.insert(()=>T,":first-child").attr("class","ishikawa-head")}else d.insert("path",":first-child").attr("class","ishikawa-head").attr("d",w);p.attr("transform",`translate(${(y-m.width)/2-m.x+3},${-m.y-m.height/2})`)},"drawHead"),QCi=I((e,r)=>{let i=[],a=[],o=I((l,h,d)=>{let p=r===-1?[...l].reverse():l;for(let m of p){let y=i.length,v=m.children??[];if(i.push({depth:d,text:PXr(m.text,15),parentIndex:h,childCount:v.length}),d%2===0){if(a.push(y),v.length)o(v,y,d+1)}else{if(v.length)o(v,y,d+1);a.push(y)}}},"walk");return o(e,-1,2),{entries:i,yOrder:a}},"flattenTree"),ZCi=I((e,r,i,a,o,l,h)=>{let d=e.append("g").attr("class","ishikawa-label-group"),m=u3e(d,r,i,a+11*o,"ishikawa-label cause","middle",l).node().getBBox();if(h){let y=h.roughSvg.rectangle(m.x-20,m.y-2,m.width+40,m.height+4,{roughness:1.5,seed:h.seed,fill:h.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:h.lineColor,strokeWidth:2});d.insert(()=>y,":first-child").attr("class","ishikawa-label-box")}else d.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",m.x-20).attr("y",m.y-2).attr("width",m.width+40).attr("height",m.height+4)},"drawCauseLabel"),e0t=I((e,r,i,a,o,l)=>{let h=Math.sqrt(a*a+o*o);if(h===0)return;let d=a/h,p=o/h,m=6,y=-p*m,v=d*m,w=r,T=i,x=`M ${w} ${T} L ${w-d*m*2+y} ${T-p*m*2+v} L ${w-d*m*2-y} ${T-p*m*2-v} Z`,k=l.roughSvg.path(x,{roughness:1,seed:l.seed,fill:l.lineColor,fillStyle:"solid",stroke:l.lineColor,strokeWidth:1});e.append(()=>k)},"drawArrowMarker"),JCi=I((e,r,i,a,o,l,h,d)=>{let p=r.children??[],m=l*(p.length?1:0.2),y=-IXr*m,v=OXr*m*o,w=i+y,T=a+v;if(sW(e,i,a,w,T,"ishikawa-branch",d),d)e0t(e,i,a,i-w,a-T,d);if(ZCi(e,r.text,w,T,o,h,d),!p.length)return;let{entries:x,yOrder:k}=QCi(p,o),A=x.length,R=Array(A);for(let[P,F]of k.entries())R[F]=a+v*((P+1)/(A+1));let N=new Map;N.set(-1,{x0:i,y0:a,x1:w,y1:T,childCount:p.length,childrenDrawn:0});let L=-IXr,B=OXr*o,D=o<0?"ishikawa-label up":"ishikawa-label down";for(let[P,F]of x.entries()){let H=R[P],W=N.get(F.parentIndex),X=e.append("g").attr("class","ishikawa-sub-group"),Q=0,Y=0,K=0;if(F.depth%2===0){let J=W.y1-W.y0;if(Q=MXr(W.x0,W.x1,J?(H-W.y0)/J:0.5),Y=H,K=Q-(F.childCount>0?WCi+F.childCount*jCi:YCi),sW(X,Q,H,K,H,"ishikawa-sub-branch",d),d)e0t(X,Q,H,1,0,d);u3e(X,F.text,K,H,"ishikawa-label align","end",h)}else{let J=W.childrenDrawn++;if(Q=MXr(W.x0,W.x1,(W.childCount-J)/(W.childCount+1)),Y=W.y0,K=Q+L*((H-Y)/B),sW(X,Q,Y,K,H,"ishikawa-sub-branch",d),d)e0t(X,Q,Y,Q-K,Y-H,d);u3e(X,F.text,K,H,D,"end",h)}if(F.childCount>0)N.set(P,{x0:Q,y0:Y,x1:K,y1:H,childCount:F.childCount,childrenDrawn:0})}},"drawBranch"),e4i=I((e)=>e.split(/|\n/),"splitLines"),PXr=I((e,r)=>{if(e.length<=r)return e;let i=[];for(let a of e.split(/\s+/)){let o=i.length-1;if(o>=0&&i[o].length+1+a.length<=r)i[o]+=" "+a;else i.push(a)}return i.join(` +`)},"wrapText"),u3e=I((e,r,i,a,o,l,h)=>{let d=e4i(r),p=h*1.05,m=e.append("text").attr("class",o).attr("text-anchor",l).attr("x",i).attr("y",a-(d.length-1)*p/2);for(let[y,v]of d.entries())m.append("tspan").attr("x",i).attr("dy",y===0?0:p).text(v);return m},"drawMultilineText"),MXr=I((e,r,i)=>e+(r-e)*i,"lerp"),sW=I((e,r,i,a,o,l,h)=>{if(h){let d=h.roughSvg.line(r,i,a,o,{roughness:1.5,seed:h.seed,stroke:h.lineColor,strokeWidth:2});e.append(()=>d).attr("class",l);return}return e.append("line").attr("class",l).attr("x1",r).attr("y1",i).attr("x2",a).attr("y2",o)},"drawLine"),t4i={draw:KCi},r4i=I((e)=>` .ishikawa .ishikawa-spine, .ishikawa .ishikawa-branch, .ishikawa .ishikawa-sub-branch { @@ -3654,18 +3654,18 @@ Expecting `+St.join(", ")+", got '"+(this.terminals_[he]||he)+"'";else pt="Parse .ishikawa .ishikawa-label.down { dominant-baseline: hanging; } -`,"getStyles"),QCi=XCi,NXr={parser:BCi,get db(){return new FCi},renderer:KCi,styles:QCi}});function l3e(e,r){let i=JCi(e),a=i.filter((d)=>ZCi(d,e)),o=0,l=0,h=[];if(a.length>1){let d=BXr(a);for(let m=0;my.angle-m.angle);let p=a[a.length-1];for(let m=0;mx.radius*2)L=x.radius*2;if(w==null||w.width>L)w={circle:x,width:L,p1:y,p2:p,large:L>x.radius,sweep:!0}}if(w!=null)h.push(w),o+=t0t(w.circle.radius,w.width),p=y}}else{let d=e[0];for(let m=1;mMath.abs(d.radius-e[m].radius)){p=!0;break}if(p)o=l=0;else o=d.radius*d.radius*Math.PI,h.push({circle:d,p1:{x:d.x,y:d.y+d.radius},p2:{x:d.x-0.0000000001,y:d.y+d.radius},width:d.radius*2,large:!0,sweep:!0})}if(l/=2,r)r.area=o+l,r.arcArea=o,r.polygonArea=l,r.arcs=h,r.innerPoints=a,r.intersectionPoints=i;return o+l}function ZCi(e,r){return r.every((i)=>m2(e,i)=e+r)return 0;if(i<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);let a=e-(i*i-r*r+e*e)/(2*i),o=r-(i*i-e*e+r*r)/(2*i);return t0t(e,a)+t0t(r,o)}function PXr(e,r){let i=m2(e,r),a=e.radius,o=r.radius;if(i>=a+o||i<=Math.abs(a-o))return[];let l=(a*a-o*o+i*i)/(2*i),h=Math.sqrt(a*a-l*l),d=e.x+l*(r.x-e.x)/i,p=e.y+l*(r.y-e.y)/i,m=-(r.y-e.y)*(h/i),y=-(r.x-e.x)*(h/i);return[{x:d+m,y:p-y},{x:d-m,y:p+y}]}function BXr(e){let r={x:0,y:0};for(let i of e)r.x+=i.x,r.y+=i.y;return r.x/=e.length,r.y/=e.length,r}function e4i(e,r,i,a){a=a||{};let o=a.maxIterations||100,l=a.tolerance||0.0000000001,h=e(r),d=e(i),p=i-r;if(h*d>0)throw"Initial bisect points must have opposite signs";if(h===0)return r;if(d===0)return i;for(let m=0;m=0)r=y;if(Math.abs(p)r0t(r))}function iW(e,r){let i=0;for(let a=0;aD.fx-P.fx,R=r.slice(),N=r.slice(),L=r.slice(),B=r.slice();for(let D=0;D{let K=H.slice();return K.fx=H.fx,K.id=H.id,K});F.sort((H,K)=>H.id-K.id),i.history.push({x:x[0].slice(),fx:x[0].fx,simplex:F})}w=0;for(let F=0;F=x[T-1].fx){let F=!1;if(N.fx>P.fx)if(DI(L,1+y,R,-y,P),L.fx=e(L),L.fx=1)break;for(let H=1;Hd+l*o*p||m>=A)k=o;else{if(Math.abs(E)<=-h*p)return o;if(E*(k-x)>=0)k=x;x=o,A=m}return 0}for(let x=0;x<10;++x){if(DI(a.x,1,i.x,o,r),m=a.fx=e(a.x,a.fxprime),E=iW(a.fxprime,r),m>d+l*o*p||x&&m>=y)return T(w,o,y);if(Math.abs(E)<=-h*p)return o;if(E>=0)return T(o,w,m);y=m,w=o,o*=2}return o}function r4i(e,r,i){let a={x:r.slice(),fx:0,fxprime:r.slice()},o={x:r.slice(),fx:0,fxprime:r.slice()},l=r.slice(),h,d,p=1,m;i=i||{},m=i.maxIterations||r.length*20,a.fx=e(a.x,a.fxprime),h=a.fxprime.slice(),i0t(h,a.fxprime,-1);for(let y=0;y{let E={};for(let w=0;wo0t(e,r,a)-i,0,e+r)}function n4i(e,r={}){let i=r.distinct,a=e.map((d)=>Object.assign({},d));function o(d){return d.join(";")}if(i){let d=new Map;for(let p of a)for(let m=0;md===p?0:dl.sets.length===2).forEach((l)=>{let h=i[l.sets[0]],d=i[l.sets[1]],p=Math.sqrt(r[h].size/Math.PI),m=Math.sqrt(r[d].size/Math.PI),y=a0t(p,m,l.size);a[h][d]=a[d][h]=y;let E=0;if(l.size+0.0000000001>=Math.min(r[h].size,r[d].size))E=1;else if(l.size<=0.0000000001)E=-1;o[h][d]=o[d][h]=E}),{distances:a,constraints:o}}function a4i(e,r,i,a){for(let l=0;l0&&x<=E||w<0&&x>=E)continue;o+=2*k*k,r[2*l]+=4*k*(h-m),r[2*l+1]+=4*k*(d-y),r[2*p]+=4*k*(m-h),r[2*p+1]+=4*k*(y-d)}}return o}function s4i(e,r={}){let i=l4i(e,r),a=r.lossFunction||aW;if(e.length>=8){let o=o4i(e,r),l=a(o,e),h=a(i,e);if(l+0.00000001w.map((T)=>T/d));let p=(w,T)=>a4i(w,T,l,h),m=null;for(let w=0;wE.sets.length===2);for(let E of e){let w=E.weight!=null?E.weight:1,T=E.sets[0],x=E.sets[1];if(E.size+UXr>=Math.min(a[T].size,a[x].size))w=0;o[T].push({set:x,size:E.size,weight:w}),o[x].push({set:T,size:E.size,weight:w})}let l=[];Object.keys(o).forEach((E)=>{let w=0;for(let T=0;Te[h]));let l=a.weight!=null?a.weight:1;i+=l*(o-a.size)*(o-a.size)}return i}function GXr(e,r){let i=0;for(let a of r){if(a.sets.length===1)continue;let o;if(a.sets.length===2){let d=e[a.sets[0]],p=e[a.sets[1]];o=o0t(d.radius,p.radius,m2(d,p))}else o=l3e(a.sets.map((d)=>e[d]));let l=a.weight!=null?a.weight:1,h=Math.log((o+1)/(a.size+1));i+=l*h*h}return i}function c4i(e,r,i){if(i==null)e.sort((o,l)=>l.radius-o.radius);else e.sort(i);if(e.length>0){let o=e[0].x,l=e[0].y;for(let h of e)h.x-=o,h.y-=l}if(e.length===2){if(m2(e[0],e[1])1){let o=Math.atan2(e[1].x,e[1].y)-r,l=Math.cos(o),h=Math.sin(o);for(let d of e){let{x:p,y:m}=d;d.x=l*p-h*m,d.y=h*p+l*m}}if(e.length>2){let o=Math.atan2(e[2].x,e[2].y)-r;while(o<0)o+=2*Math.PI;while(o>2*Math.PI)o-=2*Math.PI;if(o>Math.PI){let l=e[1].y/(0.0000000001+e[1].x);for(let h of e){var a=(h.x+l*h.y)/(1+l*l);h.x=2*a-h.x,h.y=2*a*l-h.y}}}}function u4i(e){e.forEach((o)=>{o.parent=o});function r(o){if(o.parent!==o)o.parent=r(o.parent);return o.parent}function i(o,l){let h=r(o),d=r(l);h.parent=d}for(let o=0;o{delete o.parent}),Array.from(a.values())}function s0t(e){let r=(i)=>{let a=e.reduce((l,h)=>Math.max(l,h[i]+h.radius),Number.NEGATIVE_INFINITY),o=e.reduce((l,h)=>Math.min(l,h[i]-h.radius),Number.POSITIVE_INFINITY);return{max:a,min:o}};return{xRange:r("x"),yRange:r("y")}}function zXr(e,r,i){if(r==null)r=Math.PI/2;let a=qXr(e).map((m)=>Object.assign({},m)),o=u4i(a);for(let m of o){c4i(m,r,i);let y=s0t(m);m.size=(y.xRange.max-y.xRange.min)*(y.yRange.max-y.yRange.min),m.bounds=y}o.sort((m,y)=>y.size-m.size),a=o[0];let l=a.bounds,h=(l.xRange.max-l.xRange.min)/50;function d(m,y,E){if(!m)return;let w=m.bounds,T,x;if(y)T=l.xRange.max-w.xRange.min+h;else{T=l.xRange.max-w.xRange.max;let k=(w.xRange.max-w.xRange.min)/2-(l.xRange.max-l.xRange.min)/2;if(k<0)T+=k}if(E)x=l.yRange.max-w.yRange.min+h;else{x=l.yRange.max-w.yRange.max;let k=(w.yRange.max-w.yRange.min)/2-(l.yRange.max-l.yRange.min)/2;if(k<0)x+=k}for(let k of m)k.x+=T,k.y+=x,a.push(k)}let p=1;while(p({radius:y*T.radius,x:a+E+(T.x-h.min)*y,y:a+w+(T.y-d.min)*y,setid:T.setid})))}function HXr(e){let r={};for(let i of e)r[i.setid]=i;return r}function qXr(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function YXr(e={}){let r=!1,i=600,a=350,o=15,l=1000,h=Math.PI/2,d=!0,p=null,m=!0,y=!0,E=null,w=null,T=!1,x=null,k=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,A={},R=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],N=0,L=function(F){if(F in A)return A[F];var H=A[F]=R[N];if(N+=1,N>=R.length)N=0;return H},B=$Xr,D=aW;function P(F){let H=F.datum(),K=new Set;H.forEach((Ee)=>{if(Ee.size==0&&Ee.sets.length==1)K.add(Ee.sets[0])}),H=H.filter((Ee)=>!Ee.sets.some((Ue)=>K.has(Ue)));let Q={},Z={};if(H.length>0){let Ee=B(H,{lossFunction:D,distinct:T});if(d)Ee=zXr(Ee,h,w);Q=VXr(Ee,i,a,o,p),Z=jXr(Q,H,k)}let Y={};H.forEach((Ee)=>{if(Ee.label)Y[Ee.sets]=Ee.label});function j(Ee){if(Ee.sets in Y)return Y[Ee.sets];if(Ee.sets.length==1)return""+Ee.sets[0]}F.selectAll("svg").data([Q]).enter().append("svg");let te=F.select("svg");if(r)te.attr("viewBox",`0 0 ${i} ${a}`);else te.attr("width",i).attr("height",a);let X={},W=!1;te.selectAll(".venn-area path").each(function(Ee){let Ue=this.getAttribute("d");if(Ee.sets.length==1&&Ue&&!T)W=!0,X[Ee.sets[0]]=f4i(Ue)});function J(Ee){return(Ue)=>{let Me=Ee.sets.map((Xe)=>{let je=X[Xe],Qe=Q[Xe];if(!je)je={x:i/2,y:a/2,radius:1};if(!Qe)Qe={x:i/2,y:a/2,radius:1};return{x:je.x*(1-Ue)+Qe.x*Ue,y:je.y*(1-Ue)+Qe.y*Ue,radius:je.radius*(1-Ue)+Qe.radius*Ue}});return DXr(Me,x)}}let z=te.selectAll(".venn-area").data(H,(Ee)=>Ee.sets),ne=z.enter().append("g").attr("class",(Ee)=>`venn-area venn-${Ee.sets.length==1?"circle":"intersection"}${Ee.colour||Ee.color?" venn-coloured":""}`).attr("data-venn-sets",(Ee)=>Ee.sets.join("_")),ie=ne.append("path"),le=ne.append("text").attr("class","label").text((Ee)=>j(Ee)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",a/2);if(y)ie.style("fill-opacity","0").filter((Ee)=>Ee.sets.length==1).style("fill",(Ee)=>Ee.colour?Ee.colour:Ee.color?Ee.color:L(Ee.sets)).style("fill-opacity",".25"),le.style("fill",(Ee)=>{if(Ee.colour||Ee.color)return"#FFF";if(e.textFill)return e.textFill;return Ee.sets.length==1?L(Ee.sets):"#444"});function se(Ee){if(typeof Ee.transition==="function")return Ee.transition("venn").duration(l);return Ee}let he=F;if(W&&typeof he.transition==="function")he=se(F),he.selectAll("path").attrTween("d",J);else he.selectAll("path").attr("d",(Ee)=>DXr(Ee.sets.map((Ue)=>Q[Ue])),x);let ye=he.selectAll("text").filter((Ee)=>(Ee.sets in Z)).text((Ee)=>j(Ee)).attr("x",(Ee)=>Math.floor(Z[Ee.sets].x)).attr("y",(Ee)=>Math.floor(Z[Ee.sets].y));if(m)if(W)if("on"in ye)ye.on("end",Jpt(Q,j));else ye.each("end",Jpt(Q,j));else ye.each(Jpt(Q,j));let xe=se(z.exit()).remove();if(typeof z.transition==="function")xe.selectAll("path").attrTween("d",J);let Ie=xe.selectAll("text").attr("x",i/2).attr("y",a/2);if(E!==null)le.style("font-size","0px"),ye.style("font-size",E),Ie.style("font-size","0px");return{circles:Q,textCentres:Z,nodes:z,enter:ne,update:he,exit:xe}}return P.wrap=function(F){if(!arguments.length)return m;return m=F,P},P.useViewBox=function(){return r=!0,P},P.width=function(F){if(!arguments.length)return i;return i=F,P},P.height=function(F){if(!arguments.length)return a;return a=F,P},P.padding=function(F){if(!arguments.length)return o;return o=F,P},P.distinct=function(F){if(!arguments.length)return T;return T=F,P},P.colours=function(F){if(!arguments.length)return L;return L=F,P},P.colors=function(F){if(!arguments.length)return L;return L=F,P},P.fontSize=function(F){if(!arguments.length)return E;return E=F,P},P.round=function(F){if(!arguments.length)return x;return x=F,P},P.duration=function(F){if(!arguments.length)return l;return l=F,P},P.layoutFunction=function(F){if(!arguments.length)return B;return B=F,P},P.normalize=function(F){if(!arguments.length)return d;return d=F,P},P.scaleToFit=function(F){if(!arguments.length)return p;return p=F,P},P.styled=function(F){if(!arguments.length)return y;return y=F,P},P.orientation=function(F){if(!arguments.length)return h;return h=F,P},P.orientationOrder=function(F){if(!arguments.length)return w;return w=F,P},P.lossFunction=function(F){if(!arguments.length)return D;return D=F==="default"?aW:F==="logRatio"?GXr:F,P},P}function Jpt(e,r){return function(i){let a=this,o=e[i.sets[0]].radius||50,l=r(i)||"",h=l.split(/\s+/).reverse(),d=3,p=(l.length+h.length)/3,m=h.pop(),y=[m],E=0,w=1.1;a.textContent=null;let T=[];function x(L){let B=a.ownerDocument.createElementNS(a.namespaceURI,"tspan");return B.textContent=L,T.push(B),a.append(B),B}let k=x(m);while(!0){if(m=h.pop(),!m)break;y.push(m);let L=y.join(" ");if(k.textContent=L,L.length>p&&k.getComputedTextLength()>o)y.pop(),k.textContent=y.join(" "),y=[m],k=x(m),E++}let A=0.35-E*w/2,R=a.getAttribute("x"),N=a.getAttribute("y");T.forEach((L,B)=>{L.setAttribute("x",R),L.setAttribute("y",N),L.setAttribute("dy",`${A+B*w}em`)})}}function e0t(e,r,i){let a=r[0].radius-m2(r[0],e);for(let o=1;o=l)o=a[y],l=E}let h=FXr((y)=>-1*e0t({x:y[0],y:y[1]},e,r),[o.x,o.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,d={x:i?0:h[0],y:h[1]},p=!0;for(let y of e)if(m2(d,y)>y.radius){p=!1;break}for(let y of r)if(m2(d,y)y.p1))}function h4i(e){let r={},i=Object.keys(e);for(let a of i)r[a]=[];for(let a=0;a0)console.log("WARNING: area "+h+" not represented on screen")}return a}function d4i(e,r,i){let a=[];return a.push(` +`,"getStyles"),n4i=r4i,BXr={parser:VCi,get db(){return new HCi},renderer:t4i,styles:n4i}});function h3e(e,r){let i=a4i(e),a=i.filter((d)=>i4i(d,e)),o=0,l=0,h=[];if(a.length>1){let d=zXr(a);for(let m=0;my.angle-m.angle);let p=a[a.length-1];for(let m=0;mx.radius*2)L=x.radius*2;if(w==null||w.width>L)w={circle:x,width:L,p1:y,p2:p,large:L>x.radius,sweep:!0}}if(w!=null)h.push(w),o+=i0t(w.circle.radius,w.width),p=y}}else{let d=e[0];for(let m=1;mMath.abs(d.radius-e[m].radius)){p=!0;break}if(p)o=l=0;else o=d.radius*d.radius*Math.PI,h.push({circle:d,p1:{x:d.x,y:d.y+d.radius},p2:{x:d.x-0.0000000001,y:d.y+d.radius},width:d.radius*2,large:!0,sweep:!0})}if(l/=2,r)r.area=o+l,r.arcArea=o,r.polygonArea=l,r.arcs=h,r.innerPoints=a,r.intersectionPoints=i;return o+l}function i4i(e,r){return r.every((i)=>m2(e,i)=e+r)return 0;if(i<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);let a=e-(i*i-r*r+e*e)/(2*i),o=r-(i*i-e*e+r*r)/(2*i);return i0t(e,a)+i0t(r,o)}function GXr(e,r){let i=m2(e,r),a=e.radius,o=r.radius;if(i>=a+o||i<=Math.abs(a-o))return[];let l=(a*a-o*o+i*i)/(2*i),h=Math.sqrt(a*a-l*l),d=e.x+l*(r.x-e.x)/i,p=e.y+l*(r.y-e.y)/i,m=-(r.y-e.y)*(h/i),y=-(r.x-e.x)*(h/i);return[{x:d+m,y:p-y},{x:d-m,y:p+y}]}function zXr(e){let r={x:0,y:0};for(let i of e)r.x+=i.x,r.y+=i.y;return r.x/=e.length,r.y/=e.length,r}function s4i(e,r,i,a){a=a||{};let o=a.maxIterations||100,l=a.tolerance||0.0000000001,h=e(r),d=e(i),p=i-r;if(h*d>0)throw"Initial bisect points must have opposite signs";if(h===0)return r;if(d===0)return i;for(let m=0;m=0)r=y;if(Math.abs(p)a0t(r))}function oW(e,r){let i=0;for(let a=0;aD.fx-P.fx,R=r.slice(),N=r.slice(),L=r.slice(),B=r.slice();for(let D=0;D{let W=H.slice();return W.fx=H.fx,W.id=H.id,W});F.sort((H,W)=>H.id-W.id),i.history.push({x:x[0].slice(),fx:x[0].fx,simplex:F})}w=0;for(let F=0;F=x[T-1].fx){let F=!1;if(N.fx>P.fx)if(FI(L,1+y,R,-y,P),L.fx=e(L),L.fx=1)break;for(let H=1;Hd+l*o*p||m>=A)k=o;else{if(Math.abs(v)<=-h*p)return o;if(v*(k-x)>=0)k=x;x=o,A=m}return 0}for(let x=0;x<10;++x){if(FI(a.x,1,i.x,o,r),m=a.fx=e(a.x,a.fxprime),v=oW(a.fxprime,r),m>d+l*o*p||x&&m>=y)return T(w,o,y);if(Math.abs(v)<=-h*p)return o;if(v>=0)return T(o,w,m);y=m,w=o,o*=2}return o}function l4i(e,r,i){let a={x:r.slice(),fx:0,fxprime:r.slice()},o={x:r.slice(),fx:0,fxprime:r.slice()},l=r.slice(),h,d,p=1,m;i=i||{},m=i.maxIterations||r.length*20,a.fx=e(a.x,a.fxprime),h=a.fxprime.slice(),o0t(h,a.fxprime,-1);for(let y=0;y{let v={};for(let w=0;wu0t(e,r,a)-i,0,e+r)}function c4i(e,r={}){let i=r.distinct,a=e.map((d)=>Object.assign({},d));function o(d){return d.join(";")}if(i){let d=new Map;for(let p of a)for(let m=0;md===p?0:dl.sets.length===2).forEach((l)=>{let h=i[l.sets[0]],d=i[l.sets[1]],p=Math.sqrt(r[h].size/Math.PI),m=Math.sqrt(r[d].size/Math.PI),y=l0t(p,m,l.size);a[h][d]=a[d][h]=y;let v=0;if(l.size+0.0000000001>=Math.min(r[h].size,r[d].size))v=1;else if(l.size<=0.0000000001)v=-1;o[h][d]=o[d][h]=v}),{distances:a,constraints:o}}function h4i(e,r,i,a){for(let l=0;l0&&x<=v||w<0&&x>=v)continue;o+=2*k*k,r[2*l]+=4*k*(h-m),r[2*l+1]+=4*k*(d-y),r[2*p]+=4*k*(m-h),r[2*p+1]+=4*k*(y-d)}}return o}function d4i(e,r={}){let i=p4i(e,r),a=r.lossFunction||lW;if(e.length>=8){let o=f4i(e,r),l=a(o,e),h=a(i,e);if(l+0.00000001w.map((T)=>T/d));let p=(w,T)=>h4i(w,T,l,h),m=null;for(let w=0;wv.sets.length===2);for(let v of e){let w=v.weight!=null?v.weight:1,T=v.sets[0],x=v.sets[1];if(v.size+qXr>=Math.min(a[T].size,a[x].size))w=0;o[T].push({set:x,size:v.size,weight:w}),o[x].push({set:T,size:v.size,weight:w})}let l=[];Object.keys(o).forEach((v)=>{let w=0;for(let T=0;Te[h]));let l=a.weight!=null?a.weight:1;i+=l*(o-a.size)*(o-a.size)}return i}function YXr(e,r){let i=0;for(let a of r){if(a.sets.length===1)continue;let o;if(a.sets.length===2){let d=e[a.sets[0]],p=e[a.sets[1]];o=u0t(d.radius,p.radius,m2(d,p))}else o=h3e(a.sets.map((d)=>e[d]));let l=a.weight!=null?a.weight:1,h=Math.log((o+1)/(a.size+1));i+=l*h*h}return i}function g4i(e,r,i){if(i==null)e.sort((o,l)=>l.radius-o.radius);else e.sort(i);if(e.length>0){let o=e[0].x,l=e[0].y;for(let h of e)h.x-=o,h.y-=l}if(e.length===2){if(m2(e[0],e[1])1){let o=Math.atan2(e[1].x,e[1].y)-r,l=Math.cos(o),h=Math.sin(o);for(let d of e){let{x:p,y:m}=d;d.x=l*p-h*m,d.y=h*p+l*m}}if(e.length>2){let o=Math.atan2(e[2].x,e[2].y)-r;while(o<0)o+=2*Math.PI;while(o>2*Math.PI)o-=2*Math.PI;if(o>Math.PI){let l=e[1].y/(0.0000000001+e[1].x);for(let h of e){var a=(h.x+l*h.y)/(1+l*l);h.x=2*a-h.x,h.y=2*a*l-h.y}}}}function m4i(e){e.forEach((o)=>{o.parent=o});function r(o){if(o.parent!==o)o.parent=r(o.parent);return o.parent}function i(o,l){let h=r(o),d=r(l);h.parent=d}for(let o=0;o{delete o.parent}),Array.from(a.values())}function c0t(e){let r=(i)=>{let a=e.reduce((l,h)=>Math.max(l,h[i]+h.radius),Number.NEGATIVE_INFINITY),o=e.reduce((l,h)=>Math.min(l,h[i]-h.radius),Number.POSITIVE_INFINITY);return{max:a,min:o}};return{xRange:r("x"),yRange:r("y")}}function WXr(e,r,i){if(r==null)r=Math.PI/2;let a=XXr(e).map((m)=>Object.assign({},m)),o=m4i(a);for(let m of o){g4i(m,r,i);let y=c0t(m);m.size=(y.xRange.max-y.xRange.min)*(y.yRange.max-y.yRange.min),m.bounds=y}o.sort((m,y)=>y.size-m.size),a=o[0];let l=a.bounds,h=(l.xRange.max-l.xRange.min)/50;function d(m,y,v){if(!m)return;let w=m.bounds,T,x;if(y)T=l.xRange.max-w.xRange.min+h;else{T=l.xRange.max-w.xRange.max;let k=(w.xRange.max-w.xRange.min)/2-(l.xRange.max-l.xRange.min)/2;if(k<0)T+=k}if(v)x=l.yRange.max-w.yRange.min+h;else{x=l.yRange.max-w.yRange.max;let k=(w.yRange.max-w.yRange.min)/2-(l.yRange.max-l.yRange.min)/2;if(k<0)x+=k}for(let k of m)k.x+=T,k.y+=x,a.push(k)}let p=1;while(p({radius:y*T.radius,x:a+v+(T.x-h.min)*y,y:a+w+(T.y-d.min)*y,setid:T.setid})))}function KXr(e){let r={};for(let i of e)r[i.setid]=i;return r}function XXr(e){return Object.keys(e).map((i)=>Object.assign(e[i],{setid:i}))}function QXr(e={}){let r=!1,i=600,a=350,o=15,l=1000,h=Math.PI/2,d=!0,p=null,m=!0,y=!0,v=null,w=null,T=!1,x=null,k=e&&e.symmetricalTextCentre?e.symmetricalTextCentre:!1,A={},R=e&&e.colourScheme?e.colourScheme:e&&e.colorScheme?e.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],N=0,L=function(F){if(F in A)return A[F];var H=A[F]=R[N];if(N+=1,N>=R.length)N=0;return H},B=HXr,D=lW;function P(F){let H=F.datum(),W=new Set;H.forEach((Ee)=>{if(Ee.size==0&&Ee.sets.length==1)W.add(Ee.sets[0])}),H=H.filter((Ee)=>!Ee.sets.some((ze)=>W.has(ze)));let X={},Q={};if(H.length>0){let Ee=B(H,{lossFunction:D,distinct:T});if(d)Ee=WXr(Ee,h,w);X=jXr(Ee,i,a,o,p),Q=JXr(X,H,k)}let Y={};H.forEach((Ee)=>{if(Ee.label)Y[Ee.sets]=Ee.label});function K(Ee){if(Ee.sets in Y)return Y[Ee.sets];if(Ee.sets.length==1)return""+Ee.sets[0]}F.selectAll("svg").data([X]).enter().append("svg");let J=F.select("svg");if(r)J.attr("viewBox",`0 0 ${i} ${a}`);else J.attr("width",i).attr("height",a);let Z={},j=!1;J.selectAll(".venn-area path").each(function(Ee){let ze=this.getAttribute("d");if(Ee.sets.length==1&&ze&&!T)j=!0,Z[Ee.sets[0]]=v4i(ze)});function ee(Ee){return(ze)=>{let Me=Ee.sets.map((Xe)=>{let Ye=Z[Xe],Qe=X[Xe];if(!Ye)Ye={x:i/2,y:a/2,radius:1};if(!Qe)Qe={x:i/2,y:a/2,radius:1};return{x:Ye.x*(1-ze)+Qe.x*ze,y:Ye.y*(1-ze)+Qe.y*ze,radius:Ye.radius*(1-ze)+Qe.radius*ze}});return UXr(Me,x)}}let z=J.selectAll(".venn-area").data(H,(Ee)=>Ee.sets),ne=z.enter().append("g").attr("class",(Ee)=>`venn-area venn-${Ee.sets.length==1?"circle":"intersection"}${Ee.colour||Ee.color?" venn-coloured":""}`).attr("data-venn-sets",(Ee)=>Ee.sets.join("_")),ie=ne.append("path"),se=ne.append("text").attr("class","label").text((Ee)=>K(Ee)).attr("text-anchor","middle").attr("dy",".35em").attr("x",i/2).attr("y",a/2);if(y)ie.style("fill-opacity","0").filter((Ee)=>Ee.sets.length==1).style("fill",(Ee)=>Ee.colour?Ee.colour:Ee.color?Ee.color:L(Ee.sets)).style("fill-opacity",".25"),se.style("fill",(Ee)=>{if(Ee.colour||Ee.color)return"#FFF";if(e.textFill)return e.textFill;return Ee.sets.length==1?L(Ee.sets):"#444"});function oe(Ee){if(typeof Ee.transition==="function")return Ee.transition("venn").duration(l);return Ee}let he=F;if(j&&typeof he.transition==="function")he=oe(F),he.selectAll("path").attrTween("d",ee);else he.selectAll("path").attr("d",(Ee)=>UXr(Ee.sets.map((ze)=>X[ze])),x);let ye=he.selectAll("text").filter((Ee)=>(Ee.sets in Q)).text((Ee)=>K(Ee)).attr("x",(Ee)=>Math.floor(Q[Ee.sets].x)).attr("y",(Ee)=>Math.floor(Q[Ee.sets].y));if(m)if(j)if("on"in ye)ye.on("end",r0t(X,K));else ye.each("end",r0t(X,K));else ye.each(r0t(X,K));let Se=oe(z.exit()).remove();if(typeof z.transition==="function")Se.selectAll("path").attrTween("d",ee);let Ie=Se.selectAll("text").attr("x",i/2).attr("y",a/2);if(v!==null)se.style("font-size","0px"),ye.style("font-size",v),Ie.style("font-size","0px");return{circles:X,textCentres:Q,nodes:z,enter:ne,update:he,exit:Se}}return P.wrap=function(F){if(!arguments.length)return m;return m=F,P},P.useViewBox=function(){return r=!0,P},P.width=function(F){if(!arguments.length)return i;return i=F,P},P.height=function(F){if(!arguments.length)return a;return a=F,P},P.padding=function(F){if(!arguments.length)return o;return o=F,P},P.distinct=function(F){if(!arguments.length)return T;return T=F,P},P.colours=function(F){if(!arguments.length)return L;return L=F,P},P.colors=function(F){if(!arguments.length)return L;return L=F,P},P.fontSize=function(F){if(!arguments.length)return v;return v=F,P},P.round=function(F){if(!arguments.length)return x;return x=F,P},P.duration=function(F){if(!arguments.length)return l;return l=F,P},P.layoutFunction=function(F){if(!arguments.length)return B;return B=F,P},P.normalize=function(F){if(!arguments.length)return d;return d=F,P},P.scaleToFit=function(F){if(!arguments.length)return p;return p=F,P},P.styled=function(F){if(!arguments.length)return y;return y=F,P},P.orientation=function(F){if(!arguments.length)return h;return h=F,P},P.orientationOrder=function(F){if(!arguments.length)return w;return w=F,P},P.lossFunction=function(F){if(!arguments.length)return D;return D=F==="default"?lW:F==="logRatio"?YXr:F,P},P}function r0t(e,r){return function(i){let a=this,o=e[i.sets[0]].radius||50,l=r(i)||"",h=l.split(/\s+/).reverse(),d=3,p=(l.length+h.length)/3,m=h.pop(),y=[m],v=0,w=1.1;a.textContent=null;let T=[];function x(L){let B=a.ownerDocument.createElementNS(a.namespaceURI,"tspan");return B.textContent=L,T.push(B),a.append(B),B}let k=x(m);while(!0){if(m=h.pop(),!m)break;y.push(m);let L=y.join(" ");if(k.textContent=L,L.length>p&&k.getComputedTextLength()>o)y.pop(),k.textContent=y.join(" "),y=[m],k=x(m),v++}let A=0.35-v*w/2,R=a.getAttribute("x"),N=a.getAttribute("y");T.forEach((L,B)=>{L.setAttribute("x",R),L.setAttribute("y",N),L.setAttribute("dy",`${A+B*w}em`)})}}function n0t(e,r,i){let a=r[0].radius-m2(r[0],e);for(let o=1;o=l)o=a[y],l=v}let h=VXr((y)=>-1*n0t({x:y[0],y:y[1]},e,r),[o.x,o.y],{maxIterations:500,minErrorDelta:0.0000000001}).x,d={x:i?0:h[0],y:h[1]},p=!0;for(let y of e)if(m2(d,y)>y.radius){p=!1;break}for(let y of r)if(m2(d,y)y.p1))}function b4i(e){let r={},i=Object.keys(e);for(let a of i)r[a]=[];for(let a=0;a0)console.log("WARNING: area "+h+" not represented on screen")}return a}function y4i(e,r,i){let a=[];return a.push(` M`,e,r),a.push(` m`,-i,0),a.push(` a`,i,i,0,1,0,i*2,0),a.push(` -a`,i,i,0,1,0,-i*2,0),a.join(" ")}function f4i(e){let r=e.split(" ");return{x:Number.parseFloat(r[1]),y:Number.parseFloat(r[2]),radius:-Number.parseFloat(r[4])}}function KXr(e){if(e.length===0)return[];let r={};return l3e(e,r),r.arcs}function XXr(e,r){if(e.length===0)return"M 0 0";let i=Math.pow(10,r||0),a=r!=null?(l)=>Math.round(l*i)/i:(l)=>l;if(e.length==1){let l=e[0].circle;return d4i(a(l.x),a(l.y),a(l.radius))}let o=[` +a`,i,i,0,1,0,-i*2,0),a.join(" ")}function v4i(e){let r=e.split(" ");return{x:Number.parseFloat(r[1]),y:Number.parseFloat(r[2]),radius:-Number.parseFloat(r[4])}}function eQr(e){if(e.length===0)return[];let r={};return h3e(e,r),r.arcs}function tQr(e,r){if(e.length===0)return"M 0 0";let i=Math.pow(10,r||0),a=r!=null?(l)=>Math.round(l*i)/i:(l)=>l;if(e.length==1){let l=e[0].circle;return y4i(a(l.x),a(l.y),a(l.radius))}let o=[` M`,a(e[0].p2.x),a(e[0].p2.y)];for(let l of e){let h=a(l.circle.radius);o.push(` -A`,h,h,0,l.large?1:0,l.sweep?1:0,a(l.p1.x),a(l.p1.y))}return o.join(" ")}function DXr(e,r){return XXr(KXr(e),r)}function QXr(e,r={}){let{lossFunction:i,layoutFunction:a=$Xr,normalize:o=!0,orientation:l=Math.PI/2,orientationOrder:h,width:d=600,height:p=350,padding:m=15,scaleToFit:y=!1,symmetricalTextCentre:E=!1,distinct:w,round:T=2}=r,x=a(e,{lossFunction:i==="default"||!i?aW:i==="logRatio"?GXr:i,distinct:w});if(o)x=zXr(x,l,h);let k=VXr(x,d,p,m,y),A=jXr(k,e,E),R=new Map(Object.keys(k).map((B)=>[B,{set:B,x:k[B].x,y:k[B].y,radius:k[B].radius}])),N=e.map((B)=>{let D=B.sets.map((H)=>R.get(H)),P=KXr(D),F=XXr(P,T);return{circles:D,arcs:P,path:F,area:B,has:new Set(B.sets)}});function L(B){let D="";for(let P of N)if(P.has.size>B.length&&B.every((F)=>P.has.has(F)))D+=" "+P.path;return D}return N.map(({circles:B,arcs:D,path:P,area:F})=>({data:F,text:A[F.sets],circles:B,arcs:D,path:P,distinctPath:P+L(F.sets)}))}var UXr=0.0000000001;var ZXr=()=>{};function JXr(){return bc(k4i,ea().venn)}function eQr(e){let r=new Map;for(let i of e){let a=i.targets.join("|"),o=r.get(a);if(o)Object.assign(o,i.styles);else r.set(a,{...i.styles})}return r}function rM(e){return e.join("|")}function tQr(e,r,i,a,o,l){let h=e?.useDebugLayout??!1,p=i.select("svg").append("g").attr("class","venn-text-nodes"),m=new Map;for(let y of a){let E=rM(y.sets),w=m.get(E);if(w)w.push(y);else m.set(E,[y])}for(let[y,E]of m.entries()){let w=r.get(y);if(!w?.text)continue;let T=w.text.x,x=w.text.y,k=Math.min(...w.circles.map((te)=>te.radius)),A=Math.min(...w.circles.map((te)=>te.radius-Math.hypot(T-te.x,x-te.y))),R=Number.isFinite(A)?Math.max(0,A):0;if(R===0&&Number.isFinite(k))R=k*0.6;let N=p.append("g").attr("class","venn-text-area").attr("font-size",`${40*o}px`);if(h)N.append("circle").attr("class","venn-text-debug-circle").attr("cx",T).attr("cy",x).attr("r",R).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*o).attr("stroke-dasharray",`${6*o} ${4*o}`);let L=Math.max(80*o,R*2*0.95),B=Math.max(60*o,R*2*0.95),F=(w.data.label&&w.data.label.length>0?Math.min(32*o,R*0.25):0)+(E.length<=2?30*o:0),H=T-L/2,K=x-B/2+F,Q=Math.max(1,Math.ceil(Math.sqrt(E.length))),Z=Math.max(1,Math.ceil(E.length/Q)),Y=L/Q,j=B/Z;for(let[te,X]of E.entries()){let W=te%Q,J=Math.floor(te/Q),z=H+Y*(W+0.5),ne=K+j*(J+0.5);if(h)N.append("rect").attr("class","venn-text-debug-cell").attr("x",H+Y*W).attr("y",K+j*J).attr("width",Y).attr("height",j).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*o).attr("stroke-dasharray",`${4*o} ${3*o}`);let ie=Y*0.9,le=j*0.9,se=N.append("foreignObject").attr("class","venn-text-node-fo").attr("width",ie).attr("height",le).attr("x",z-ie/2).attr("y",ne-le/2).attr("overflow","visible"),he=l.get(X.id)?.color,ye=se.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(X.label??X.id);if(he)ye.style("color",he)}}}function rQr(e){let r=new Set(e.map((o)=>[...o.sets].sort().join("|"))),i=new Map(e.filter((o)=>o.sets.length===1&&o.size!==void 0).map((o)=>[o.sets[0],o.size])),a=[];for(let o of e){if(o.sets.length<3)continue;let l=[...o.sets].sort();for(let h=0;h0?[...e,...a]:e}var l0t,g4i,c0t,u0t,h0t,d0t,f0t,p0t=!1,m4i,b4i,Roe,y4i,v4i,_4i,E4i,c3e,w4i,S4i,T4i,x4i,C4i,k4i,A4i,R4i,I4i,O4i,N4i,L4i,nQr;var iQr=Re(()=>{A0();Ql();eo();Zs();Ja();dl();x0();ZXr();Na();l0t=function(){var e=I(function(N,L,B,D){for(B=B||{},D=N.length;D--;B[N[D]]=L);return B},"o"),r=[5,8],i=[7,8,11,12,17,19,22,24],a=[1,17],o=[1,18],l=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],h=[1,31],d=[1,39],p=[7,8,11,12,17,19,22,24,27],m=[1,57],y=[1,56],E=[1,58],w=[1,59],T=[1,60],x=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],k={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:I(function(L,B,D,P,F,H,K){var Q=H.length-1;switch(F){case 1:return H[Q-1];case 2:case 3:case 4:this.$=[];break;case 5:H[Q-1].push(H[Q]),this.$=H[Q-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=H[Q];break;case 8:P.setDiagramTitle(H[Q].substr(6)),this.$=H[Q].substr(6);break;case 9:if(P.addSubsetData([H[Q]],void 0,void 0),P.setIndentMode)P.setIndentMode(!0);break;case 10:if(P.addSubsetData([H[Q-1]],H[Q],void 0),P.setIndentMode)P.setIndentMode(!0);break;case 11:if(P.addSubsetData([H[Q-2]],void 0,parseFloat(H[Q])),P.setIndentMode)P.setIndentMode(!0);break;case 12:if(P.addSubsetData([H[Q-3]],H[Q-2],parseFloat(H[Q])),P.setIndentMode)P.setIndentMode(!0);break;case 13:if(H[Q].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[Q]);if(P.addSubsetData(H[Q],void 0,void 0),P.setIndentMode)P.setIndentMode(!0);break;case 14:if(H[Q-1].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[Q-1]);if(P.addSubsetData(H[Q-1],H[Q],void 0),P.setIndentMode)P.setIndentMode(!0);break;case 15:if(H[Q-2].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[Q-2]);if(P.addSubsetData(H[Q-2],void 0,parseFloat(H[Q])),P.setIndentMode)P.setIndentMode(!0);break;case 16:if(H[Q-3].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[Q-3]);if(P.addSubsetData(H[Q-3],H[Q-2],parseFloat(H[Q])),P.setIndentMode)P.setIndentMode(!0);break;case 17:case 18:case 19:P.addTextData(H[Q-1],H[Q],void 0);break;case 20:case 21:P.addTextData(H[Q-2],H[Q-1],H[Q]);break;case 23:P.addStyleData(H[Q-1],H[Q]);break;case 24:case 25:case 26:var Z=P.getCurrentSets();if(!Z)throw Error("text requires set");P.addTextData(Z,H[Q],void 0);break;case 27:case 28:var Z=P.getCurrentSets();if(!Z)throw Error("text requires set");P.addTextData(Z,H[Q-1],H[Q]);break;case 29:case 41:this.$=[H[Q]];break;case 30:case 42:this.$=[...H[Q-2],H[Q]];break;case 31:this.$=[H[Q-2],H[Q]];break;case 33:this.$=H[Q].join(" ");break;case 34:this.$=[H[Q]];break;case 35:H[Q-1].push(H[Q]),this.$=H[Q-1];break;case 43:case 44:this.$=H[Q];break}},"anonymous"),table:[e(r,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(r,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:a,21:o},{13:20,18:19,20:a,21:o},{13:20,18:21,20:a,21:o},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:a,21:o},e(i,[2,9],{14:[1,27],15:[1,28]}),e(l,[2,43]),e(l,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:h}),e(l,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:h},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:d,25:37,26:38,27:h},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:a,21:o},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(p,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(l,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:d,26:51},{16:m,20:y,21:[1,53],28:52,29:54,30:55,31:E,32:w,33:T},e(i,[2,12]),e(i,[2,16]),e(p,[2,30]),e(p,[2,31]),e(p,[2,32]),e(p,[2,33],{30:61,16:m,20:y,31:E,32:w,33:T}),e(x,[2,34]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),e(x,[2,39]),e(x,[2,40]),e(x,[2,35])],defaultActions:{6:[2,1]},parseError:I(function(L,B){if(B.recoverable)this.trace(L);else{var D=Error(L);throw D.hash=B,D}},"parseError"),parse:I(function(L){var B=this,D=[0],P=[],F=[null],H=[],K=this.table,Q="",Z=0,Y=0,j=0,te=2,X=1,W=H.slice.call(arguments,1),J=Object.create(this.lexer),z={yy:{}};for(var ne in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ne))z.yy[ne]=this.yy[ne];if(J.setInput(L,z.yy),z.yy.lexer=J,z.yy.parser=this,typeof J.yylloc>"u")J.yylloc={};var ie=J.yylloc;H.push(ie);var le=J.options&&J.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function se(Xt){D.length=D.length-2*Xt,F.length=F.length-Xt,H.length=H.length-Xt}I(se,"popStack");function he(){var Xt=P.pop()||J.lex()||X;if(typeof Xt!=="number"){if(Xt instanceof Array)P=Xt,Xt=P.pop();Xt=B.symbols_[Xt]||Xt}return Xt}I(he,"lex");var ye,xe,Ie,Ee,Ue,Me,Xe={},je,Qe,St,pt;while(!0){if(Ie=D[D.length-1],this.defaultActions[Ie])Ee=this.defaultActions[Ie];else{if(ye===null||typeof ye>"u")ye=he();Ee=K[Ie]&&K[Ie][ye]}if(typeof Ee>"u"||!Ee.length||!Ee[0]){var Vt="";pt=[];for(je in K[Ie])if(this.terminals_[je]&&je>te)pt.push("'"+this.terminals_[je]+"'");if(J.showPosition)Vt="Parse error on line "+(Z+1)+`: -`+J.showPosition()+` -Expecting `+pt.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'";else Vt="Parse error on line "+(Z+1)+": Unexpected "+(ye==X?"end of input":"'"+(this.terminals_[ye]||ye)+"'");this.parseError(Vt,{text:J.match,token:this.terminals_[ye]||ye,line:J.yylineno,loc:ie,expected:pt})}if(Ee[0]instanceof Array&&Ee.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+ye);switch(Ee[0]){case 1:if(D.push(ye),F.push(J.yytext),H.push(J.yylloc),D.push(Ee[1]),ye=null,!xe){if(Y=J.yyleng,Q=J.yytext,Z=J.yylineno,ie=J.yylloc,j>0)j--}else ye=xe,xe=null;break;case 2:if(Qe=this.productions_[Ee[1]][1],Xe.$=F[F.length-Qe],Xe._$={first_line:H[H.length-(Qe||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Qe||1)].first_column,last_column:H[H.length-1].last_column},le)Xe._$.range=[H[H.length-(Qe||1)].range[0],H[H.length-1].range[1]];if(Me=this.performAction.apply(Xe,[Q,Y,Z,z.yy,Ee[1],F,H].concat(W)),typeof Me<"u")return Me;if(Qe)D=D.slice(0,-1*Qe*2),F=F.slice(0,-1*Qe),H=H.slice(0,-1*Qe);D.push(this.productions_[Ee[1]][0]),F.push(Xe.$),H.push(Xe._$),St=K[D[D.length-2]][D[D.length-1]],D.push(St);break;case 3:return!0}}return!0},"parse")},A=function(){var N={EOF:1,parseError:I(function(B,D){if(this.yy.parser)this.yy.parser.parseError(B,D);else throw Error(B)},"parseError"),setInput:I(function(L,B){if(this.yy=B||this.yy||{},this._input=L,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var B=L.match(/(?:\r\n?|\n).*/g);if(B)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),L},"input"),unput:I(function(L){var B=L.length,D=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var P=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1)this.yylineno-=D.length-1;var F=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===P.length?this.yylloc.first_column:0)+P[P.length-D.length].length-D[0].length:this.yylloc.first_column-B},this.options.ranges)this.yylloc.range=[F[0],F[0]+this.yyleng-B];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +A`,h,h,0,l.large?1:0,l.sweep?1:0,a(l.p1.x),a(l.p1.y))}return o.join(" ")}function UXr(e,r){return tQr(eQr(e),r)}function rQr(e,r={}){let{lossFunction:i,layoutFunction:a=HXr,normalize:o=!0,orientation:l=Math.PI/2,orientationOrder:h,width:d=600,height:p=350,padding:m=15,scaleToFit:y=!1,symmetricalTextCentre:v=!1,distinct:w,round:T=2}=r,x=a(e,{lossFunction:i==="default"||!i?lW:i==="logRatio"?YXr:i,distinct:w});if(o)x=WXr(x,l,h);let k=jXr(x,d,p,m,y),A=JXr(k,e,v),R=new Map(Object.keys(k).map((B)=>[B,{set:B,x:k[B].x,y:k[B].y,radius:k[B].radius}])),N=e.map((B)=>{let D=B.sets.map((H)=>R.get(H)),P=eQr(D),F=tQr(P,T);return{circles:D,arcs:P,path:F,area:B,has:new Set(B.sets)}});function L(B){let D="";for(let P of N)if(P.has.size>B.length&&B.every((F)=>P.has.has(F)))D+=" "+P.path;return D}return N.map(({circles:B,arcs:D,path:P,area:F})=>({data:F,text:A[F.sets],circles:B,arcs:D,path:P,distinctPath:P+L(F.sets)}))}var qXr=0.0000000001;var nQr=()=>{};function iQr(){return bc(L4i,ea().venn)}function aQr(e){let r=new Map;for(let i of e){let a=i.targets.join("|"),o=r.get(a);if(o)Object.assign(o,i.styles);else r.set(a,{...i.styles})}return r}function iM(e){return e.join("|")}function sQr(e,r,i,a,o,l){let h=e?.useDebugLayout??!1,p=i.select("svg").append("g").attr("class","venn-text-nodes"),m=new Map;for(let y of a){let v=iM(y.sets),w=m.get(v);if(w)w.push(y);else m.set(v,[y])}for(let[y,v]of m.entries()){let w=r.get(y);if(!w?.text)continue;let T=w.text.x,x=w.text.y,k=Math.min(...w.circles.map((J)=>J.radius)),A=Math.min(...w.circles.map((J)=>J.radius-Math.hypot(T-J.x,x-J.y))),R=Number.isFinite(A)?Math.max(0,A):0;if(R===0&&Number.isFinite(k))R=k*0.6;let N=p.append("g").attr("class","venn-text-area").attr("font-size",`${40*o}px`);if(h)N.append("circle").attr("class","venn-text-debug-circle").attr("cx",T).attr("cy",x).attr("r",R).attr("fill","none").attr("stroke","purple").attr("stroke-width",1.5*o).attr("stroke-dasharray",`${6*o} ${4*o}`);let L=Math.max(80*o,R*2*0.95),B=Math.max(60*o,R*2*0.95),F=(w.data.label&&w.data.label.length>0?Math.min(32*o,R*0.25):0)+(v.length<=2?30*o:0),H=T-L/2,W=x-B/2+F,X=Math.max(1,Math.ceil(Math.sqrt(v.length))),Q=Math.max(1,Math.ceil(v.length/X)),Y=L/X,K=B/Q;for(let[J,Z]of v.entries()){let j=J%X,ee=Math.floor(J/X),z=H+Y*(j+0.5),ne=W+K*(ee+0.5);if(h)N.append("rect").attr("class","venn-text-debug-cell").attr("x",H+Y*j).attr("y",W+K*ee).attr("width",Y).attr("height",K).attr("fill","none").attr("stroke","teal").attr("stroke-width",1*o).attr("stroke-dasharray",`${4*o} ${3*o}`);let ie=Y*0.9,se=K*0.9,oe=N.append("foreignObject").attr("class","venn-text-node-fo").attr("width",ie).attr("height",se).attr("x",z-ie/2).attr("y",ne-se/2).attr("overflow","visible"),he=l.get(Z.id)?.color,ye=oe.append("xhtml:span").attr("class","venn-text-node").style("display","flex").style("width","100%").style("height","100%").style("white-space","normal").style("align-items","center").style("justify-content","center").style("text-align","center").style("overflow-wrap","normal").style("word-break","normal").text(Z.label??Z.id);if(he)ye.style("color",he)}}}function oQr(e){let r=new Set(e.map((o)=>[...o.sets].sort().join("|"))),i=new Map(e.filter((o)=>o.sets.length===1&&o.size!==void 0).map((o)=>[o.sets[0],o.size])),a=[];for(let o of e){if(o.sets.length<3)continue;let l=[...o.sets].sort();for(let h=0;h0?[...e,...a]:e}var h0t,E4i,d0t,f0t,p0t,g0t,m0t,b0t=!1,w4i,S4i,Noe,T4i,x4i,C4i,k4i,d3e,A4i,R4i,I4i,O4i,N4i,L4i,M4i,D4i,P4i,B4i,F4i,$4i,lQr;var cQr=Re(()=>{A0();Ql();eo();Zs();Ja();dl();x0();nQr();Na();h0t=function(){var e=I(function(N,L,B,D){for(B=B||{},D=N.length;D--;B[N[D]]=L);return B},"o"),r=[5,8],i=[7,8,11,12,17,19,22,24],a=[1,17],o=[1,18],l=[7,8,11,12,14,15,16,17,19,20,21,22,24,27],h=[1,31],d=[1,39],p=[7,8,11,12,17,19,22,24,27],m=[1,57],y=[1,56],v=[1,58],w=[1,59],T=[1,60],x=[7,8,11,12,16,17,19,20,22,24,27,31,32,33],k={trace:I(function(){},"trace"),yy:{},symbols_:{error:2,start:3,optNewlines:4,VENN:5,document:6,EOF:7,NEWLINE:8,line:9,statement:10,TITLE:11,SET:12,identifier:13,BRACKET_LABEL:14,COLON:15,NUMERIC:16,UNION:17,identifierList:18,TEXT:19,IDENTIFIER:20,STRING:21,INDENT_TEXT:22,indentedTextTail:23,STYLE:24,stylesOpt:25,styleField:26,COMMA:27,styleValue:28,valueTokens:29,valueToken:30,HEXCOLOR:31,RGBCOLOR:32,RGBACOLOR:33,$accept:0,$end:1},terminals_:{2:"error",5:"VENN",7:"EOF",8:"NEWLINE",11:"TITLE",12:"SET",14:"BRACKET_LABEL",15:"COLON",16:"NUMERIC",17:"UNION",19:"TEXT",20:"IDENTIFIER",21:"STRING",22:"INDENT_TEXT",24:"STYLE",27:"COMMA",31:"HEXCOLOR",32:"RGBCOLOR",33:"RGBACOLOR"},productions_:[0,[3,4],[4,0],[4,2],[6,0],[6,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,5],[10,2],[10,3],[10,4],[10,5],[10,3],[10,3],[10,3],[10,4],[10,4],[10,2],[10,3],[23,1],[23,1],[23,1],[23,2],[23,2],[25,1],[25,3],[26,3],[28,1],[28,1],[29,1],[29,2],[30,1],[30,1],[30,1],[30,1],[30,1],[18,1],[18,3],[13,1],[13,1]],performAction:I(function(L,B,D,P,F,H,W){var X=H.length-1;switch(F){case 1:return H[X-1];case 2:case 3:case 4:this.$=[];break;case 5:H[X-1].push(H[X]),this.$=H[X-1];break;case 6:this.$=[];break;case 7:case 22:case 32:case 36:case 37:case 38:case 39:case 40:this.$=H[X];break;case 8:P.setDiagramTitle(H[X].substr(6)),this.$=H[X].substr(6);break;case 9:if(P.addSubsetData([H[X]],void 0,void 0),P.setIndentMode)P.setIndentMode(!0);break;case 10:if(P.addSubsetData([H[X-1]],H[X],void 0),P.setIndentMode)P.setIndentMode(!0);break;case 11:if(P.addSubsetData([H[X-2]],void 0,parseFloat(H[X])),P.setIndentMode)P.setIndentMode(!0);break;case 12:if(P.addSubsetData([H[X-3]],H[X-2],parseFloat(H[X])),P.setIndentMode)P.setIndentMode(!0);break;case 13:if(H[X].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[X]);if(P.addSubsetData(H[X],void 0,void 0),P.setIndentMode)P.setIndentMode(!0);break;case 14:if(H[X-1].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[X-1]);if(P.addSubsetData(H[X-1],H[X],void 0),P.setIndentMode)P.setIndentMode(!0);break;case 15:if(H[X-2].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[X-2]);if(P.addSubsetData(H[X-2],void 0,parseFloat(H[X])),P.setIndentMode)P.setIndentMode(!0);break;case 16:if(H[X-3].length<2)throw Error("union requires multiple identifiers");if(P.validateUnionIdentifiers)P.validateUnionIdentifiers(H[X-3]);if(P.addSubsetData(H[X-3],H[X-2],parseFloat(H[X])),P.setIndentMode)P.setIndentMode(!0);break;case 17:case 18:case 19:P.addTextData(H[X-1],H[X],void 0);break;case 20:case 21:P.addTextData(H[X-2],H[X-1],H[X]);break;case 23:P.addStyleData(H[X-1],H[X]);break;case 24:case 25:case 26:var Q=P.getCurrentSets();if(!Q)throw Error("text requires set");P.addTextData(Q,H[X],void 0);break;case 27:case 28:var Q=P.getCurrentSets();if(!Q)throw Error("text requires set");P.addTextData(Q,H[X-1],H[X]);break;case 29:case 41:this.$=[H[X]];break;case 30:case 42:this.$=[...H[X-2],H[X]];break;case 31:this.$=[H[X-2],H[X]];break;case 33:this.$=H[X].join(" ");break;case 34:this.$=[H[X]];break;case 35:H[X-1].push(H[X]),this.$=H[X-1];break;case 43:case 44:this.$=H[X];break}},"anonymous"),table:[e(r,[2,2],{3:1,4:2}),{1:[3]},{5:[1,3],8:[1,4]},e(i,[2,4],{6:5}),e(r,[2,3]),{7:[1,6],8:[1,8],9:7,10:9,11:[1,10],12:[1,11],17:[1,12],19:[1,13],22:[1,14],24:[1,15]},{1:[2,1]},e(i,[2,5]),e(i,[2,6]),e(i,[2,7]),e(i,[2,8]),{13:16,20:a,21:o},{13:20,18:19,20:a,21:o},{13:20,18:21,20:a,21:o},{16:[1,25],20:[1,23],21:[1,24],23:22},{13:20,18:26,20:a,21:o},e(i,[2,9],{14:[1,27],15:[1,28]}),e(l,[2,43]),e(l,[2,44]),e(i,[2,13],{14:[1,29],15:[1,30],27:h}),e(l,[2,41]),{16:[1,34],20:[1,32],21:[1,33],27:h},e(i,[2,22]),e(i,[2,24],{14:[1,35]}),e(i,[2,25],{14:[1,36]}),e(i,[2,26]),{20:d,25:37,26:38,27:h},e(i,[2,10],{15:[1,40]}),{16:[1,41]},e(i,[2,14],{15:[1,42]}),{16:[1,43]},{13:44,20:a,21:o},e(i,[2,17],{14:[1,45]}),e(i,[2,18],{14:[1,46]}),e(i,[2,19]),e(i,[2,27]),e(i,[2,28]),e(i,[2,23],{27:[1,47]}),e(p,[2,29]),{15:[1,48]},{16:[1,49]},e(i,[2,11]),{16:[1,50]},e(i,[2,15]),e(l,[2,42]),e(i,[2,20]),e(i,[2,21]),{20:d,26:51},{16:m,20:y,21:[1,53],28:52,29:54,30:55,31:v,32:w,33:T},e(i,[2,12]),e(i,[2,16]),e(p,[2,30]),e(p,[2,31]),e(p,[2,32]),e(p,[2,33],{30:61,16:m,20:y,31:v,32:w,33:T}),e(x,[2,34]),e(x,[2,36]),e(x,[2,37]),e(x,[2,38]),e(x,[2,39]),e(x,[2,40]),e(x,[2,35])],defaultActions:{6:[2,1]},parseError:I(function(L,B){if(B.recoverable)this.trace(L);else{var D=Error(L);throw D.hash=B,D}},"parseError"),parse:I(function(L){var B=this,D=[0],P=[],F=[null],H=[],W=this.table,X="",Q=0,Y=0,K=0,J=2,Z=1,j=H.slice.call(arguments,1),ee=Object.create(this.lexer),z={yy:{}};for(var ne in this.yy)if(Object.prototype.hasOwnProperty.call(this.yy,ne))z.yy[ne]=this.yy[ne];if(ee.setInput(L,z.yy),z.yy.lexer=ee,z.yy.parser=this,typeof ee.yylloc>"u")ee.yylloc={};var ie=ee.yylloc;H.push(ie);var se=ee.options&&ee.options.ranges;if(typeof z.yy.parseError==="function")this.parseError=z.yy.parseError;else this.parseError=Object.getPrototypeOf(this).parseError;function oe(Kt){D.length=D.length-2*Kt,F.length=F.length-Kt,H.length=H.length-Kt}I(oe,"popStack");function he(){var Kt=P.pop()||ee.lex()||Z;if(typeof Kt!=="number"){if(Kt instanceof Array)P=Kt,Kt=P.pop();Kt=B.symbols_[Kt]||Kt}return Kt}I(he,"lex");var ye,Se,Ie,Ee,ze,Me,Xe={},Ye,Qe,xt,dt;while(!0){if(Ie=D[D.length-1],this.defaultActions[Ie])Ee=this.defaultActions[Ie];else{if(ye===null||typeof ye>"u")ye=he();Ee=W[Ie]&&W[Ie][ye]}if(typeof Ee>"u"||!Ee.length||!Ee[0]){var zt="";dt=[];for(Ye in W[Ie])if(this.terminals_[Ye]&&Ye>J)dt.push("'"+this.terminals_[Ye]+"'");if(ee.showPosition)zt="Parse error on line "+(Q+1)+`: +`+ee.showPosition()+` +Expecting `+dt.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'";else zt="Parse error on line "+(Q+1)+": Unexpected "+(ye==Z?"end of input":"'"+(this.terminals_[ye]||ye)+"'");this.parseError(zt,{text:ee.match,token:this.terminals_[ye]||ye,line:ee.yylineno,loc:ie,expected:dt})}if(Ee[0]instanceof Array&&Ee.length>1)throw Error("Parse Error: multiple actions possible at state: "+Ie+", token: "+ye);switch(Ee[0]){case 1:if(D.push(ye),F.push(ee.yytext),H.push(ee.yylloc),D.push(Ee[1]),ye=null,!Se){if(Y=ee.yyleng,X=ee.yytext,Q=ee.yylineno,ie=ee.yylloc,K>0)K--}else ye=Se,Se=null;break;case 2:if(Qe=this.productions_[Ee[1]][1],Xe.$=F[F.length-Qe],Xe._$={first_line:H[H.length-(Qe||1)].first_line,last_line:H[H.length-1].last_line,first_column:H[H.length-(Qe||1)].first_column,last_column:H[H.length-1].last_column},se)Xe._$.range=[H[H.length-(Qe||1)].range[0],H[H.length-1].range[1]];if(Me=this.performAction.apply(Xe,[X,Y,Q,z.yy,Ee[1],F,H].concat(j)),typeof Me<"u")return Me;if(Qe)D=D.slice(0,-1*Qe*2),F=F.slice(0,-1*Qe),H=H.slice(0,-1*Qe);D.push(this.productions_[Ee[1]][0]),F.push(Xe.$),H.push(Xe._$),xt=W[D[D.length-2]][D[D.length-1]],D.push(xt);break;case 3:return!0}}return!0},"parse")},A=function(){var N={EOF:1,parseError:I(function(B,D){if(this.yy.parser)this.yy.parser.parseError(B,D);else throw Error(B)},"parseError"),setInput:I(function(L,B){if(this.yy=B||this.yy||{},this._input=L,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges)this.yylloc.range=[0,0];return this.offset=0,this},"setInput"),input:I(function(){var L=this._input[0];this.yytext+=L,this.yyleng++,this.offset++,this.match+=L,this.matched+=L;var B=L.match(/(?:\r\n?|\n).*/g);if(B)this.yylineno++,this.yylloc.last_line++;else this.yylloc.last_column++;if(this.options.ranges)this.yylloc.range[1]++;return this._input=this._input.slice(1),L},"input"),unput:I(function(L){var B=L.length,D=L.split(/(?:\r\n?|\n)/g);this._input=L+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-B),this.offset-=B;var P=this.match.split(/(?:\r\n?|\n)/g);if(this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),D.length-1)this.yylineno-=D.length-1;var F=this.yylloc.range;if(this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:D?(D.length===P.length?this.yylloc.first_column:0)+P[P.length-D.length].length-D[0].length:this.yylloc.first_column-B},this.options.ranges)this.yylloc.range=[F[0],F[0]+this.yyleng-B];return this.yyleng=this.yytext.length,this},"unput"),more:I(function(){return this._more=!0,this},"more"),reject:I(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:I(function(L){this.unput(this.match.slice(L))},"less"),pastInput:I(function(){var L=this.matched.substr(0,this.matched.length-this.match.length);return(L.length>20?"...":"")+L.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:I(function(){var L=this.match;if(L.length<20)L+=this._input.substr(0,20-L.length);return(L.substr(0,20)+(L.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:I(function(){var L=this.pastInput(),B=Array(L.length+1).join("-");return L+this.upcomingInput()+` `+B+"^"},"showPosition"),test_match:I(function(L,B){var D,P,F;if(this.options.backtrack_lexer){if(F={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges)F.yylloc.range=this.yylloc.range.slice(0)}if(P=L[0].match(/(?:\r\n?|\n).*/g),P)this.yylineno+=P.length;if(this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:P?P[P.length-1].length-P[P.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,this.yyleng=this.yytext.length,this.options.ranges)this.yylloc.range=[this.offset,this.offset+=this.yyleng];if(this._more=!1,this._backtrack=!1,this._input=this._input.slice(L[0].length),this.matched+=L[0],D=this.performAction.call(this,this.yy,this,B,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input)this.done=!1;if(D)return D;else if(this._backtrack){for(var H in F)this[H]=F[H];return!1}return!1},"test_match"),next:I(function(){if(this.done)return this.EOF;if(!this._input)this.done=!0;var L,B,D,P;if(!this._more)this.yytext="",this.match="";var F=this._currentRules();for(var H=0;HB[0].length)){if(B=D,P=H,this.options.backtrack_lexer)if(L=this.test_match(D,F[H]),L!==!1)return L;else if(this._backtrack){B=!1;continue}else return!1;else if(!this.options.flex)break}if(B){if(L=this.test_match(B,F[P]),L!==!1)return L;return!1}if(this._input==="")return this.EOF;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var B=this.next();if(B)return B;else return this.lex()},"lex"),begin:I(function(B){this.conditionStack.push(B)},"begin"),popState:I(function(){var B=this.conditionStack.length-1;if(B>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(B){if(B=this.conditionStack.length-1-Math.abs(B||0),B>=0)return this.conditionStack[B];else return"INITIAL"},"topState"),pushState:I(function(B){this.begin(B)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(B,D,P,F){var H=F;switch(P){case 0:break;case 1:break;case 2:break;case 3:if(B.getIndentMode&&B.getIndentMode())return B.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(B.setIndentMode)B.setIndentMode(!1);this.begin("INITIAL"),this.unput(D.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(B.consumeIndentText)B.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return D.yytext=D.yytext.slice(2,-2),14;break;case 17:return D.yytext=D.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return N}();k.lexer=A;function R(){this.yy={}}return I(R,"Parser"),R.prototype=k,k.Parser=R,new R}();l0t.parser=l0t;g4i=l0t,c0t=[],u0t=[],h0t=[],d0t=new Set,m4i=I((e,r,i)=>{let a=c3e(e).sort(),o=i??10/Math.pow(e.length,2);if(f0t=a,a.length===1)d0t.add(a[0]);c0t.push({sets:a,size:o,label:r?Roe(r):void 0})},"addSubsetData"),b4i=I(()=>c0t,"getSubsetData"),Roe=I((e)=>{let r=e.trim();if(r.length>=2&&r.startsWith('"')&&r.endsWith('"'))return r.slice(1,-1);return r},"normalizeText"),y4i=I((e)=>e?Roe(e):e,"normalizeStyleValue"),v4i=I((e,r,i)=>{let a=Roe(r);u0t.push({sets:c3e(e).sort(),id:a,label:i?Roe(i):void 0})},"addTextData"),_4i=I((e,r)=>{let i=c3e(e).sort(),a={};for(let[o,l]of r)a[o]=y4i(l)??l;h0t.push({targets:i,styles:a})},"addStyleData"),E4i=I(()=>h0t,"getStyleData"),c3e=I((e)=>e.map((r)=>Roe(r)),"normalizeIdentifierList"),w4i=I((e)=>{let i=c3e(e).filter((a)=>!d0t.has(a));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),S4i=I(()=>u0t,"getTextData"),T4i=I(()=>f0t,"getCurrentSets"),x4i=I(()=>p0t,"getIndentMode"),C4i=I((e)=>{p0t=e},"setIndentMode"),k4i=Fs.venn;I(JXr,"getConfig");A4i=I(()=>{qs(),c0t.length=0,u0t.length=0,h0t.length=0,d0t.clear(),f0t=void 0,p0t=!1},"customClear"),R4i={getConfig:JXr,clear:A4i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js,addSubsetData:m4i,getSubsetData:b4i,addTextData:v4i,addStyleData:_4i,validateUnionIdentifiers:w4i,getTextData:S4i,getStyleData:E4i,getCurrentSets:T4i,getIndentMode:x4i,setIndentMode:C4i},I4i=I((e)=>` +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:I(function(){var B=this.next();if(B)return B;else return this.lex()},"lex"),begin:I(function(B){this.conditionStack.push(B)},"begin"),popState:I(function(){var B=this.conditionStack.length-1;if(B>0)return this.conditionStack.pop();else return this.conditionStack[0]},"popState"),_currentRules:I(function(){if(this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1])return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules;else return this.conditions.INITIAL.rules},"_currentRules"),topState:I(function(B){if(B=this.conditionStack.length-1-Math.abs(B||0),B>=0)return this.conditionStack[B];else return"INITIAL"},"topState"),pushState:I(function(B){this.begin(B)},"pushState"),stateStackSize:I(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:I(function(B,D,P,F){var H=F;switch(P){case 0:break;case 1:break;case 2:break;case 3:if(B.getIndentMode&&B.getIndentMode())return B.consumeIndentText=!0,this.begin("INITIAL"),22;break;case 4:break;case 5:if(B.setIndentMode)B.setIndentMode(!1);this.begin("INITIAL"),this.unput(D.yytext);break;case 6:return this.begin("bol"),8;break;case 7:break;case 8:break;case 9:return 7;case 10:return 11;case 11:return 5;case 12:return 12;case 13:return 17;case 14:if(B.consumeIndentText)B.consumeIndentText=!1;else return 19;break;case 15:return 24;case 16:return D.yytext=D.yytext.slice(2,-2),14;break;case 17:return D.yytext=D.yytext.slice(1,-1).trim(),14;break;case 18:return 16;case 19:return 31;case 20:return 33;case 21:return 32;case 22:return 20;case 23:return 21;case 24:return 27;case 25:return 15}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[ \t]+(?=[\n\r]))/i,/^(?:[ \t]+(?=text\b))/i,/^(?:[ \t]+)/i,/^(?:[^ \t\n\r])/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[ \t]+)/i,/^(?:$)/i,/^(?:title\s[^#\n;]+)/i,/^(?:venn-beta\b)/i,/^(?:set\b)/i,/^(?:union\b)/i,/^(?:text\b)/i,/^(?:style\b)/i,/^(?:\["[^\"]*"\])/i,/^(?:\[[^\]\"]+\])/i,/^(?:[+-]?(\d+(\.\d+)?|\.\d+))/i,/^(?:#[0-9a-fA-F]{3,8})/i,/^(?:rgba\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:rgb\(\s*[0-9.]+\s*[,]\s*[0-9.]+\s*[,]\s*[0-9.]+\s*\))/i,/^(?:[A-Za-z_][A-Za-z0-9\-_]*)/i,/^(?:"[^\"]*")/i,/^(?:,)/i,/^(?::)/i],conditions:{bol:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0},INITIAL:{rules:[0,1,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25],inclusive:!0}}};return N}();k.lexer=A;function R(){this.yy={}}return I(R,"Parser"),R.prototype=k,k.Parser=R,new R}();h0t.parser=h0t;E4i=h0t,d0t=[],f0t=[],p0t=[],g0t=new Set,w4i=I((e,r,i)=>{let a=d3e(e).sort(),o=i??10/Math.pow(e.length,2);if(m0t=a,a.length===1)g0t.add(a[0]);d0t.push({sets:a,size:o,label:r?Noe(r):void 0})},"addSubsetData"),S4i=I(()=>d0t,"getSubsetData"),Noe=I((e)=>{let r=e.trim();if(r.length>=2&&r.startsWith('"')&&r.endsWith('"'))return r.slice(1,-1);return r},"normalizeText"),T4i=I((e)=>e?Noe(e):e,"normalizeStyleValue"),x4i=I((e,r,i)=>{let a=Noe(r);f0t.push({sets:d3e(e).sort(),id:a,label:i?Noe(i):void 0})},"addTextData"),C4i=I((e,r)=>{let i=d3e(e).sort(),a={};for(let[o,l]of r)a[o]=T4i(l)??l;p0t.push({targets:i,styles:a})},"addStyleData"),k4i=I(()=>p0t,"getStyleData"),d3e=I((e)=>e.map((r)=>Noe(r)),"normalizeIdentifierList"),A4i=I((e)=>{let i=d3e(e).filter((a)=>!g0t.has(a));if(i.length>0)throw Error(`unknown set identifier: ${i.join(", ")}`)},"validateUnionIdentifiers"),R4i=I(()=>f0t,"getTextData"),I4i=I(()=>m0t,"getCurrentSets"),O4i=I(()=>b0t,"getIndentMode"),N4i=I((e)=>{b0t=e},"setIndentMode"),L4i=Fs.venn;I(iQr,"getConfig");M4i=I(()=>{qs(),d0t.length=0,f0t.length=0,p0t.length=0,g0t.clear(),m0t=void 0,b0t=!1},"customClear"),D4i={getConfig:iQr,clear:M4i,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js,addSubsetData:w4i,getSubsetData:S4i,addTextData:x4i,addStyleData:C4i,validateUnionIdentifiers:A4i,getTextData:R4i,getStyleData:k4i,getCurrentSets:I4i,getIndentMode:O4i,setIndentMode:N4i},P4i=I((e)=>` .venn-title { font-size: 32px; fill: ${e.vennTitleTextColor}; @@ -3687,7 +3687,7 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'";else Vt="Parse font-family: ${e.fontFamily}; color: ${e.vennSetTextColor}; } -`,"getStyles"),O4i=I4i;I(eQr,"buildStyleByKey");N4i=I((e,r,i,a)=>{let o=a.db,l=o.getConfig?.(),{themeVariables:h,look:d,handDrawnSeed:p}=ea(),m=d==="handDrawn",y=[h.venn1,h.venn2,h.venn3,h.venn4,h.venn5,h.venn6,h.venn7,h.venn8].filter(Boolean),E=o.getDiagramTitle?.(),w=o.getSubsetData(),T=o.getTextData(),x=eQr(o.getStyleData()),k=rQr(w),A=l?.width??800,R=l?.height??450,N=1600,L=A/1600,B=E?48*L:0,D=h.primaryTextColor??h.textColor,P=Ou(r);if(P.attr("viewBox",`0 0 ${A} ${R}`),E)P.append("text").text(E).attr("class","venn-title").attr("font-size",`${32*L}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*L).style("fill",h.vennTitleTextColor||h.titleColor);let F=xn(document.createElement("div")),H=YXr().width(A).height(R-B);F.datum(k).call(H);let K=m?ln.svg(F.select("svg").node()):void 0,Q=QXr(k,{width:A,height:R-B,padding:l?.padding??15}),Z=new Map;for(let X of Q){let W=rM([...X.data.sets].sort());Z.set(W,X)}if(T.length>0)tQr(l,Z,F,T,L,x);let Y=eu(h.background||"#f4f4f4");if(F.selectAll(".venn-circle").each(function(X,W){let J=xn(this),ne=rM([...X.sets].sort()),ie=x.get(ne),le=y.length>0?y[W%y.length]:void 0,se=ie?.fill||le||h.primaryColor;J.classed(`venn-set-${W%8}`,!0);let he=ie?.["fill-opacity"]??0.1,ye=ie?.stroke||se,xe=ie?.["stroke-width"]||`${5*L}`;if(m&&K){let Ee=Z.get(ne);if(Ee&&Ee.circles.length>0){let Ue=Ee.circles[0],Me=K.circle(Ue.x,Ue.y,Ue.radius*2,{roughness:0.7,seed:p,fill:s_e(se,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+W*60,stroke:ye,strokeWidth:parseFloat(String(xe))});J.select("path").remove(),J.node()?.insertBefore(Me,J.select("text").node())}}else J.select("path").style("fill",se).style("fill-opacity",he).style("stroke",ye).style("stroke-width",xe).style("stroke-opacity",0.95);let Ie=ie?.color||(Y?Xr(se,30):Zr(se,30));J.select("text").style("font-size",`${48*L}px`).style("fill",Ie)}),m&&K)F.selectAll(".venn-intersection").each(function(X){let W=xn(this),z=rM([...X.sets].sort()),ne=x.get(z),ie=ne?.fill;if(ie){let le=W.select("path"),se=le.attr("d");if(se){let he=K.path(se,{roughness:0.7,seed:p,fill:s_e(ie,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),ye=le.node();ye?.parentNode?.insertBefore(he,ye),le.remove()}}else W.select("path").style("fill-opacity",0);W.select("text").style("font-size",`${48*L}px`).style("fill",ne?.color??h.vennSetTextColor??D)});else F.selectAll(".venn-intersection text").style("font-size",`${48*L}px`).style("fill",(X)=>{let J=rM([...X.sets].sort());return x.get(J)?.color??h.vennSetTextColor??D}),F.selectAll(".venn-intersection path").style("fill-opacity",(X)=>{let J=rM([...X.sets].sort());return x.get(J)?.fill?1:0}).style("fill",(X)=>{let J=rM([...X.sets].sort());return x.get(J)?.fill??"transparent"});let j=P.append("g").attr("transform",`translate(0, ${B})`),te=F.select("svg").node();if(te&&"childNodes"in te)for(let X of[...te.childNodes])j.node()?.appendChild(X);Bl(P,R,A,l?.useMaxWidth??!0)},"draw");I(rM,"stableSetsKey");I(tQr,"renderTextNodes");I(rQr,"ensurePairwiseSubsets");L4i={draw:N4i},nQr={parser:g4i,db:R4i,renderer:L4i,styles:O4i}});function sQr(e){if(!e.length)return[];let r=[],i=[];return e.forEach((a)=>{let o={name:a.name,children:a.type==="Leaf"?void 0:[]};if(o.classSelector=a?.classSelector,a?.cssCompiledStyles)o.cssCompiledStyles=a.cssCompiledStyles;if(a.type==="Leaf"&&a.value!==void 0)o.value=a.value;while(i.length>0&&i[i.length-1].level>=a.level)i.pop();if(i.length===0)r.push(o);else{let l=i[i.length-1].node;if(l.children)l.children.push(o);else l.children=[o]}if(a.type!=="Leaf")i.push({node:o,level:a.level})}),r}var aQr,M4i,D4i,oQr,P4i=10,sW=10,Ioe=25,B4i,F4i,$4i,U4i,G4i,z4i,lQr;var cQr=Re(()=>{Tv();A0();fT();R0();Ql();eo();Zs();Ja();rb();dl();aQr=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Ys,this.getAccTitle=oo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getAccDescription=lo,this.setAccDescription=Js}static{I(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=Fs,r=ea();return bc({...e.treemap,...r.treemap??{}})}addNode(e,r){if(this.nodes.push(e),this.levels.set(e,r),r===0)this.outerNodes.push(e),this.root??=e}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,r){let i=this.classes.get(e)??{id:e,styles:[],textStyles:[]},a=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");if(a)a.forEach((o)=>{if(Tne(o))if(i?.textStyles)i.textStyles.push(o);else i.textStyles=[o];if(i?.styles)i.styles.push(o);else i.styles=[o]});this.classes.set(e,i)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){qs(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};I(sQr,"buildHierarchy");M4i=I((e,r)=>{Sh(e,r);let i=[];for(let l of e.TreemapRows??[])if(l.$type==="ClassDefStatement")r.addClass(l.className??"",l.styleText??"");for(let l of e.TreemapRows??[]){let h=l.item;if(!h)continue;let d=l.indent?parseInt(l.indent):0,p=D4i(h),m=h.classSelector?r.getStylesForClass(h.classSelector):[],y=m.length>0?m:void 0,E={level:d,name:p,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:y};i.push(E)}let a=sQr(i),o=I((l,h)=>{for(let d of l)if(r.addNode(d,h),d.children&&d.children.length>0)o(d.children,h+1)},"addNodesRecursively");o(a,0)},"populate"),D4i=I((e)=>e.name?String(e.name):"","getItemName"),oQr={parser:{yy:void 0},parse:I(async(e)=>{try{let i=await lp("treemap",e);Ze.debug("Treemap AST:",i);let a=oQr.parser?.yy;if(!(a instanceof aQr))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");M4i(i,a)}catch(r){throw Ze.error("Error parsing treemap:",r),r}},"parse")},B4i=I((e,r,i,a)=>{let o=a.db,l=o.getConfig(),h=l.padding??P4i,d=o.getDiagramTitle(),p=o.getRoot(),{themeVariables:m}=ea();if(!p)return;let y=d?30:0,E=Ou(r),w=l.nodeWidth?l.nodeWidth*sW:960,T=l.nodeHeight?l.nodeHeight*sW:500,x=w,k=T+y;E.attr("viewBox",`0 0 ${x} ${k}`),Bl(E,k,x,l.useMaxWidth);let A;try{let se=l.valueFormat||",";if(se==="$0,0")A=I((he)=>"$"+o3(",")(he),"valueFormat");else if(se.startsWith("$")&&se.includes(",")){let he=/\.\d+/.exec(se),ye=he?he[0]:"";A=I((xe)=>"$"+o3(","+ye)(xe),"valueFormat")}else if(se.startsWith("$")){let he=se.substring(1);A=I((ye)=>"$"+o3(he||"")(ye),"valueFormat")}else A=o3(se)}catch(se){Ze.error("Error creating format function:",se),A=o3(",")}let R=VE().range(["transparent",m.cScale0,m.cScale1,m.cScale2,m.cScale3,m.cScale4,m.cScale5,m.cScale6,m.cScale7,m.cScale8,m.cScale9,m.cScale10,m.cScale11]),N=VE().range(["transparent",m.cScalePeer0,m.cScalePeer1,m.cScalePeer2,m.cScalePeer3,m.cScalePeer4,m.cScalePeer5,m.cScalePeer6,m.cScalePeer7,m.cScalePeer8,m.cScalePeer9,m.cScalePeer10,m.cScalePeer11]),L=VE().range([m.cScaleLabel0,m.cScaleLabel1,m.cScaleLabel2,m.cScaleLabel3,m.cScaleLabel4,m.cScaleLabel5,m.cScaleLabel6,m.cScaleLabel7,m.cScaleLabel8,m.cScaleLabel9,m.cScaleLabel10,m.cScaleLabel11]);if(d)E.append("text").attr("x",x/2).attr("y",y/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);let B=E.append("g").attr("transform",`translate(0, ${y})`).attr("class","treemapContainer"),D=oH(p).sum((se)=>se.value??0).sort((se,he)=>(he.value??0)-(se.value??0)),F=N2e().size([w,T]).paddingTop((se)=>se.children&&se.children.length>0?Ioe+sW:0).paddingInner(h).paddingLeft((se)=>se.children&&se.children.length>0?sW:0).paddingRight((se)=>se.children&&se.children.length>0?sW:0).paddingBottom((se)=>se.children&&se.children.length>0?sW:0).round(!0)(D),H=F.descendants().filter((se)=>se.children&&se.children.length>0),K=B.selectAll(".treemapSection").data(H).enter().append("g").attr("class","treemapSection").attr("transform",(se)=>`translate(${se.x0},${se.y0})`);if(K.append("rect").attr("width",(se)=>se.x1-se.x0).attr("height",Ioe).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",0.6).attr("stroke-width",0.6).attr("style",(se)=>{if(se.depth===0)return"display: none;";return""}),K.append("clipPath").attr("id",(se,he)=>`clip-section-${r}-${he}`).append("rect").attr("width",(se)=>Math.max(0,se.x1-se.x0-12)).attr("height",Ioe),K.append("rect").attr("width",(se)=>se.x1-se.x0).attr("height",(se)=>se.y1-se.y0).attr("class",(se,he)=>`treemapSection section${he}`).attr("fill",(se)=>R(se.data.name)).attr("fill-opacity",0.6).attr("stroke",(se)=>N(se.data.name)).attr("stroke-width",2).attr("stroke-opacity",0.4).attr("style",(se)=>{if(se.depth===0)return"display: none;";let he=fa({cssCompiledStyles:se.data.cssCompiledStyles});return he.nodeStyles+";"+he.borderStyles.join(";")}),K.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",Ioe/2).attr("dominant-baseline","middle").text((se)=>se.depth===0?"":se.data.name).attr("font-weight","bold").attr("clip-path",(se,he)=>`url(#clip-section-${r}-${he})`).attr("style",(se)=>{if(se.depth===0)return"display: none;";let he="dominant-baseline: middle; font-size: 12px; fill:"+L(se.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",ye=fa({cssCompiledStyles:se.data.cssCompiledStyles});return he+ye.labelStyles.replace("color:","fill:")}).each(function(se){if(se.depth===0)return;let he=xn(this),ye=se.data.name;he.text(ye);let xe=se.x1-se.x0,Ie=6,Ee;if(l.showValues!==!1&&se.value){let Qe=xe-10,St=30,pt=10;Ee=Qe-30-10-Ie}else Ee=xe-Ie-6;let Me=Math.max(15,Ee),Xe=he.node();if(Xe.getComputedTextLength()>Me){let St=ye;while(St.length>0){if(St=ye.substring(0,St.length-1),St.length===0){if(he.text("..."),Xe.getComputedTextLength()>Me)he.text("");break}if(he.text(St+"..."),Xe.getComputedTextLength()<=Me)break}}}),l.showValues!==!1)K.append("text").attr("class","treemapSectionValue").attr("x",(se)=>se.x1-se.x0-10).attr("y",Ioe/2).attr("text-anchor","end").attr("dominant-baseline","middle").text((se)=>se.value?A(se.value):"").attr("font-style","italic").attr("style",(se)=>{if(se.depth===0)return"display: none;";let he="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(se.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",ye=fa({cssCompiledStyles:se.data.cssCompiledStyles});return he+ye.labelStyles.replace("color:","fill:")});let Q=F.leaves(),Z=Q.length>20,Y=Z?16:38,j=Z?14:28,te=Z?4:8,X=Z?4:6,W=Z?2:4,J=Z?8:10,z=Z?1:2,ne=B.selectAll(".treemapLeafGroup").data(Q).enter().append("g").attr("class",(se,he)=>`treemapNode treemapLeafGroup leaf${he}${se.data.classSelector?` ${se.data.classSelector}`:""}x`).attr("transform",(se)=>`translate(${se.x0},${se.y0})`);if(ne.append("rect").attr("width",(se)=>se.x1-se.x0).attr("height",(se)=>se.y1-se.y0).attr("class","treemapLeaf").attr("fill",(se)=>se.parent?R(se.parent.data.name):R(se.data.name)).attr("style",(se)=>fa({cssCompiledStyles:se.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",0.3).attr("stroke",(se)=>se.parent?R(se.parent.data.name):R(se.data.name)).attr("stroke-width",3),ne.append("clipPath").attr("id",(se,he)=>`clip-${r}-${he}`).append("rect").attr("width",(se)=>Math.max(0,se.x1-se.x0-4)).attr("height",(se)=>Math.max(0,se.y1-se.y0-4)),ne.append("text").attr("class","treemapLabel").attr("x",(se)=>(se.x1-se.x0)/2).attr("y",(se)=>(se.y1-se.y0)/2).attr("style",(se)=>{let he=`text-anchor: middle; dominant-baseline: middle; font-size: ${Y}px;fill:`+L(se.data.name)+";",ye=fa({cssCompiledStyles:se.data.cssCompiledStyles});return he+ye.labelStyles.replace("color:","fill:")}).attr("clip-path",(se,he)=>`url(#clip-${r}-${he})`).text((se)=>se.data.name).each(function(se){let he=xn(this),ye=se.x1-se.x0,xe=se.y1-se.y0,Ie=he.node(),Ee=ye-2*W,Ue=xe-2*W;if(EeEe&&Me>te)Me--,he.style("font-size",`${Me}px`);let je=Math.max(X,Math.min(j,Math.round(Me*Xe))),Qe=Me+z+je;while(Qe>Ue&&Me>te){if(Me--,je=Math.max(X,Math.min(j,Math.round(Me*Xe))),jeUe);}if(he.style("font-size",`${Me}px`),Z){if(MeEe||Me(he.x1-he.x0)/2).attr("y",function(he){return(he.y1-he.y0)/2}).attr("style",(he)=>{let ye=`text-anchor: middle; dominant-baseline: hanging; font-size: ${j}px;fill:`+L(he.data.name)+";",xe=fa({cssCompiledStyles:he.data.cssCompiledStyles});return ye+xe.labelStyles.replace("color:","fill:")}).attr("clip-path",(he,ye)=>`url(#clip-${r}-${ye})`).text((he)=>he.value?A(he.value):"").each(function(he){let ye=xn(this),xe=this.parentNode;if(!xe){ye.style("display","none");return}let Ie=xn(xe).select(".treemapLabel");if(Ie.empty()||Ie.style("display")==="none"){ye.style("display","none");return}let Ee=parseFloat(Ie.style("font-size")),Me=Math.max(X,Math.min(j,Math.round(Ee*0.6)));ye.style("font-size",`${Me}px`);let je=(he.y1-he.y0)/2+Ee/2+z;ye.attr("y",je);let Qe=he.x1-he.x0,Vt=he.y1-he.y0-4,Xt=Qe-2*W;if(ye.node().getComputedTextLength()>Xt||je+Me>Vt||Me{let r=Kb(),i=ea(),a=bc(r,i.themeVariables),o=bc(U4i,e),l=o.titleColor??a.titleColor,h=o.labelColor??a.textColor,d=o.valueColor??a.textColor;return` +`,"getStyles"),B4i=P4i;I(aQr,"buildStyleByKey");F4i=I((e,r,i,a)=>{let o=a.db,l=o.getConfig?.(),{themeVariables:h,look:d,handDrawnSeed:p}=ea(),m=d==="handDrawn",y=[h.venn1,h.venn2,h.venn3,h.venn4,h.venn5,h.venn6,h.venn7,h.venn8].filter(Boolean),v=o.getDiagramTitle?.(),w=o.getSubsetData(),T=o.getTextData(),x=aQr(o.getStyleData()),k=oQr(w),A=l?.width??800,R=l?.height??450,N=1600,L=A/1600,B=v?48*L:0,D=h.primaryTextColor??h.textColor,P=Ou(r);if(P.attr("viewBox",`0 0 ${A} ${R}`),v)P.append("text").text(v).attr("class","venn-title").attr("font-size",`${32*L}px`).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("x","50%").attr("y",32*L).style("fill",h.vennTitleTextColor||h.titleColor);let F=xn(document.createElement("div")),H=QXr().width(A).height(R-B);F.datum(k).call(H);let W=m?cn.svg(F.select("svg").node()):void 0,X=rQr(k,{width:A,height:R-B,padding:l?.padding??15}),Q=new Map;for(let Z of X){let j=iM([...Z.data.sets].sort());Q.set(j,Z)}if(T.length>0)sQr(l,Q,F,T,L,x);let Y=eu(h.background||"#f4f4f4");if(F.selectAll(".venn-circle").each(function(Z,j){let ee=xn(this),ne=iM([...Z.sets].sort()),ie=x.get(ne),se=y.length>0?y[j%y.length]:void 0,oe=ie?.fill||se||h.primaryColor;ee.classed(`venn-set-${j%8}`,!0);let he=ie?.["fill-opacity"]??0.1,ye=ie?.stroke||oe,Se=ie?.["stroke-width"]||`${5*L}`;if(m&&W){let Ee=Q.get(ne);if(Ee&&Ee.circles.length>0){let ze=Ee.circles[0],Me=W.circle(ze.x,ze.y,ze.radius*2,{roughness:0.7,seed:p,fill:c_e(oe,0.7),fillStyle:"hachure",fillWeight:2,hachureGap:8,hachureAngle:-41+j*60,stroke:ye,strokeWidth:parseFloat(String(Se))});ee.select("path").remove(),ee.node()?.insertBefore(Me,ee.select("text").node())}}else ee.select("path").style("fill",oe).style("fill-opacity",he).style("stroke",ye).style("stroke-width",Se).style("stroke-opacity",0.95);let Ie=ie?.color||(Y?Xr(oe,30):Zr(oe,30));ee.select("text").style("font-size",`${48*L}px`).style("fill",Ie)}),m&&W)F.selectAll(".venn-intersection").each(function(Z){let j=xn(this),z=iM([...Z.sets].sort()),ne=x.get(z),ie=ne?.fill;if(ie){let se=j.select("path"),oe=se.attr("d");if(oe){let he=W.path(oe,{roughness:0.7,seed:p,fill:c_e(ie,0.3),fillStyle:"cross-hatch",fillWeight:2,hachureGap:6,hachureAngle:60,stroke:"none"}),ye=se.node();ye?.parentNode?.insertBefore(he,ye),se.remove()}}else j.select("path").style("fill-opacity",0);j.select("text").style("font-size",`${48*L}px`).style("fill",ne?.color??h.vennSetTextColor??D)});else F.selectAll(".venn-intersection text").style("font-size",`${48*L}px`).style("fill",(Z)=>{let ee=iM([...Z.sets].sort());return x.get(ee)?.color??h.vennSetTextColor??D}),F.selectAll(".venn-intersection path").style("fill-opacity",(Z)=>{let ee=iM([...Z.sets].sort());return x.get(ee)?.fill?1:0}).style("fill",(Z)=>{let ee=iM([...Z.sets].sort());return x.get(ee)?.fill??"transparent"});let K=P.append("g").attr("transform",`translate(0, ${B})`),J=F.select("svg").node();if(J&&"childNodes"in J)for(let Z of[...J.childNodes])K.node()?.appendChild(Z);Bl(P,R,A,l?.useMaxWidth??!0)},"draw");I(iM,"stableSetsKey");I(sQr,"renderTextNodes");I(oQr,"ensurePairwiseSubsets");$4i={draw:F4i},lQr={parser:E4i,db:D4i,renderer:$4i,styles:B4i}});function hQr(e){if(!e.length)return[];let r=[],i=[];return e.forEach((a)=>{let o={name:a.name,children:a.type==="Leaf"?void 0:[]};if(o.classSelector=a?.classSelector,a?.cssCompiledStyles)o.cssCompiledStyles=a.cssCompiledStyles;if(a.type==="Leaf"&&a.value!==void 0)o.value=a.value;while(i.length>0&&i[i.length-1].level>=a.level)i.pop();if(i.length===0)r.push(o);else{let l=i[i.length-1].node;if(l.children)l.children.push(o);else l.children=[o]}if(a.type!=="Leaf")i.push({node:o,level:a.level})}),r}var uQr,U4i,G4i,dQr,z4i=10,cW=10,Loe=25,V4i,H4i,q4i,Y4i,W4i,j4i,fQr;var pQr=Re(()=>{Tv();A0();pT();R0();Ql();eo();Zs();Ja();rb();dl();uQr=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=Ys,this.getAccTitle=oo,this.setDiagramTitle=_o,this.getDiagramTitle=fo,this.getAccDescription=lo,this.setAccDescription=Js}static{I(this,"TreeMapDB")}getNodes(){return this.nodes}getConfig(){let e=Fs,r=ea();return bc({...e.treemap,...r.treemap??{}})}addNode(e,r){if(this.nodes.push(e),this.levels.set(e,r),r===0)this.outerNodes.push(e),this.root??=e}getRoot(){return{name:"",children:this.outerNodes}}addClass(e,r){let i=this.classes.get(e)??{id:e,styles:[],textStyles:[]},a=r.replace(/\\,/g,"§§§").replace(/,/g,";").replace(/§§§/g,",").split(";");if(a)a.forEach((o)=>{if(kne(o))if(i?.textStyles)i.textStyles.push(o);else i.textStyles=[o];if(i?.styles)i.styles.push(o);else i.styles=[o]});this.classes.set(e,i)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){qs(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};I(hQr,"buildHierarchy");U4i=I((e,r)=>{Sh(e,r);let i=[];for(let l of e.TreemapRows??[])if(l.$type==="ClassDefStatement")r.addClass(l.className??"",l.styleText??"");for(let l of e.TreemapRows??[]){let h=l.item;if(!h)continue;let d=l.indent?parseInt(l.indent):0,p=G4i(h),m=h.classSelector?r.getStylesForClass(h.classSelector):[],y=m.length>0?m:void 0,v={level:d,name:p,type:h.$type,value:h.value,classSelector:h.classSelector,cssCompiledStyles:y};i.push(v)}let a=hQr(i),o=I((l,h)=>{for(let d of l)if(r.addNode(d,h),d.children&&d.children.length>0)o(d.children,h+1)},"addNodesRecursively");o(a,0)},"populate"),G4i=I((e)=>e.name?String(e.name):"","getItemName"),dQr={parser:{yy:void 0},parse:I(async(e)=>{try{let i=await lp("treemap",e);Ze.debug("Treemap AST:",i);let a=dQr.parser?.yy;if(!(a instanceof uQr))throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");U4i(i,a)}catch(r){throw Ze.error("Error parsing treemap:",r),r}},"parse")},V4i=I((e,r,i,a)=>{let o=a.db,l=o.getConfig(),h=l.padding??z4i,d=o.getDiagramTitle(),p=o.getRoot(),{themeVariables:m}=ea();if(!p)return;let y=d?30:0,v=Ou(r),w=l.nodeWidth?l.nodeWidth*cW:960,T=l.nodeHeight?l.nodeHeight*cW:500,x=w,k=T+y;v.attr("viewBox",`0 0 ${x} ${k}`),Bl(v,k,x,l.useMaxWidth);let A;try{let oe=l.valueFormat||",";if(oe==="$0,0")A=I((he)=>"$"+l3(",")(he),"valueFormat");else if(oe.startsWith("$")&&oe.includes(",")){let he=/\.\d+/.exec(oe),ye=he?he[0]:"";A=I((Se)=>"$"+l3(","+ye)(Se),"valueFormat")}else if(oe.startsWith("$")){let he=oe.substring(1);A=I((ye)=>"$"+l3(he||"")(ye),"valueFormat")}else A=l3(oe)}catch(oe){Ze.error("Error creating format function:",oe),A=l3(",")}let R=VE().range(["transparent",m.cScale0,m.cScale1,m.cScale2,m.cScale3,m.cScale4,m.cScale5,m.cScale6,m.cScale7,m.cScale8,m.cScale9,m.cScale10,m.cScale11]),N=VE().range(["transparent",m.cScalePeer0,m.cScalePeer1,m.cScalePeer2,m.cScalePeer3,m.cScalePeer4,m.cScalePeer5,m.cScalePeer6,m.cScalePeer7,m.cScalePeer8,m.cScalePeer9,m.cScalePeer10,m.cScalePeer11]),L=VE().range([m.cScaleLabel0,m.cScaleLabel1,m.cScaleLabel2,m.cScaleLabel3,m.cScaleLabel4,m.cScaleLabel5,m.cScaleLabel6,m.cScaleLabel7,m.cScaleLabel8,m.cScaleLabel9,m.cScaleLabel10,m.cScaleLabel11]);if(d)v.append("text").attr("x",x/2).attr("y",y/2).attr("class","treemapTitle").attr("text-anchor","middle").attr("dominant-baseline","middle").text(d);let B=v.append("g").attr("transform",`translate(0, ${y})`).attr("class","treemapContainer"),D=uH(p).sum((oe)=>oe.value??0).sort((oe,he)=>(he.value??0)-(oe.value??0)),F=D2e().size([w,T]).paddingTop((oe)=>oe.children&&oe.children.length>0?Loe+cW:0).paddingInner(h).paddingLeft((oe)=>oe.children&&oe.children.length>0?cW:0).paddingRight((oe)=>oe.children&&oe.children.length>0?cW:0).paddingBottom((oe)=>oe.children&&oe.children.length>0?cW:0).round(!0)(D),H=F.descendants().filter((oe)=>oe.children&&oe.children.length>0),W=B.selectAll(".treemapSection").data(H).enter().append("g").attr("class","treemapSection").attr("transform",(oe)=>`translate(${oe.x0},${oe.y0})`);if(W.append("rect").attr("width",(oe)=>oe.x1-oe.x0).attr("height",Loe).attr("class","treemapSectionHeader").attr("fill","none").attr("fill-opacity",0.6).attr("stroke-width",0.6).attr("style",(oe)=>{if(oe.depth===0)return"display: none;";return""}),W.append("clipPath").attr("id",(oe,he)=>`clip-section-${r}-${he}`).append("rect").attr("width",(oe)=>Math.max(0,oe.x1-oe.x0-12)).attr("height",Loe),W.append("rect").attr("width",(oe)=>oe.x1-oe.x0).attr("height",(oe)=>oe.y1-oe.y0).attr("class",(oe,he)=>`treemapSection section${he}`).attr("fill",(oe)=>R(oe.data.name)).attr("fill-opacity",0.6).attr("stroke",(oe)=>N(oe.data.name)).attr("stroke-width",2).attr("stroke-opacity",0.4).attr("style",(oe)=>{if(oe.depth===0)return"display: none;";let he=fa({cssCompiledStyles:oe.data.cssCompiledStyles});return he.nodeStyles+";"+he.borderStyles.join(";")}),W.append("text").attr("class","treemapSectionLabel").attr("x",6).attr("y",Loe/2).attr("dominant-baseline","middle").text((oe)=>oe.depth===0?"":oe.data.name).attr("font-weight","bold").attr("clip-path",(oe,he)=>`url(#clip-section-${r}-${he})`).attr("style",(oe)=>{if(oe.depth===0)return"display: none;";let he="dominant-baseline: middle; font-size: 12px; fill:"+L(oe.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",ye=fa({cssCompiledStyles:oe.data.cssCompiledStyles});return he+ye.labelStyles.replace("color:","fill:")}).each(function(oe){if(oe.depth===0)return;let he=xn(this),ye=oe.data.name;he.text(ye);let Se=oe.x1-oe.x0,Ie=6,Ee;if(l.showValues!==!1&&oe.value){let Qe=Se-10,xt=30,dt=10;Ee=Qe-30-10-Ie}else Ee=Se-Ie-6;let Me=Math.max(15,Ee),Xe=he.node();if(Xe.getComputedTextLength()>Me){let xt=ye;while(xt.length>0){if(xt=ye.substring(0,xt.length-1),xt.length===0){if(he.text("..."),Xe.getComputedTextLength()>Me)he.text("");break}if(he.text(xt+"..."),Xe.getComputedTextLength()<=Me)break}}}),l.showValues!==!1)W.append("text").attr("class","treemapSectionValue").attr("x",(oe)=>oe.x1-oe.x0-10).attr("y",Loe/2).attr("text-anchor","end").attr("dominant-baseline","middle").text((oe)=>oe.value?A(oe.value):"").attr("font-style","italic").attr("style",(oe)=>{if(oe.depth===0)return"display: none;";let he="text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:"+L(oe.data.name)+"; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;",ye=fa({cssCompiledStyles:oe.data.cssCompiledStyles});return he+ye.labelStyles.replace("color:","fill:")});let X=F.leaves(),Q=X.length>20,Y=Q?16:38,K=Q?14:28,J=Q?4:8,Z=Q?4:6,j=Q?2:4,ee=Q?8:10,z=Q?1:2,ne=B.selectAll(".treemapLeafGroup").data(X).enter().append("g").attr("class",(oe,he)=>`treemapNode treemapLeafGroup leaf${he}${oe.data.classSelector?` ${oe.data.classSelector}`:""}x`).attr("transform",(oe)=>`translate(${oe.x0},${oe.y0})`);if(ne.append("rect").attr("width",(oe)=>oe.x1-oe.x0).attr("height",(oe)=>oe.y1-oe.y0).attr("class","treemapLeaf").attr("fill",(oe)=>oe.parent?R(oe.parent.data.name):R(oe.data.name)).attr("style",(oe)=>fa({cssCompiledStyles:oe.data.cssCompiledStyles}).nodeStyles).attr("fill-opacity",0.3).attr("stroke",(oe)=>oe.parent?R(oe.parent.data.name):R(oe.data.name)).attr("stroke-width",3),ne.append("clipPath").attr("id",(oe,he)=>`clip-${r}-${he}`).append("rect").attr("width",(oe)=>Math.max(0,oe.x1-oe.x0-4)).attr("height",(oe)=>Math.max(0,oe.y1-oe.y0-4)),ne.append("text").attr("class","treemapLabel").attr("x",(oe)=>(oe.x1-oe.x0)/2).attr("y",(oe)=>(oe.y1-oe.y0)/2).attr("style",(oe)=>{let he=`text-anchor: middle; dominant-baseline: middle; font-size: ${Y}px;fill:`+L(oe.data.name)+";",ye=fa({cssCompiledStyles:oe.data.cssCompiledStyles});return he+ye.labelStyles.replace("color:","fill:")}).attr("clip-path",(oe,he)=>`url(#clip-${r}-${he})`).text((oe)=>oe.data.name).each(function(oe){let he=xn(this),ye=oe.x1-oe.x0,Se=oe.y1-oe.y0,Ie=he.node(),Ee=ye-2*j,ze=Se-2*j;if(EeEe&&Me>J)Me--,he.style("font-size",`${Me}px`);let Ye=Math.max(Z,Math.min(K,Math.round(Me*Xe))),Qe=Me+z+Ye;while(Qe>ze&&Me>J){if(Me--,Ye=Math.max(Z,Math.min(K,Math.round(Me*Xe))),Yeze);}if(he.style("font-size",`${Me}px`),Q){if(MeEe||Me(he.x1-he.x0)/2).attr("y",function(he){return(he.y1-he.y0)/2}).attr("style",(he)=>{let ye=`text-anchor: middle; dominant-baseline: hanging; font-size: ${K}px;fill:`+L(he.data.name)+";",Se=fa({cssCompiledStyles:he.data.cssCompiledStyles});return ye+Se.labelStyles.replace("color:","fill:")}).attr("clip-path",(he,ye)=>`url(#clip-${r}-${ye})`).text((he)=>he.value?A(he.value):"").each(function(he){let ye=xn(this),Se=this.parentNode;if(!Se){ye.style("display","none");return}let Ie=xn(Se).select(".treemapLabel");if(Ie.empty()||Ie.style("display")==="none"){ye.style("display","none");return}let Ee=parseFloat(Ie.style("font-size")),Me=Math.max(Z,Math.min(K,Math.round(Ee*0.6)));ye.style("font-size",`${Me}px`);let Ye=(he.y1-he.y0)/2+Ee/2+z;ye.attr("y",Ye);let Qe=he.x1-he.x0,zt=he.y1-he.y0-4,Kt=Qe-2*j;if(ye.node().getComputedTextLength()>Kt||Ye+Me>zt||Me{let r=Kb(),i=ea(),a=bc(r,i.themeVariables),o=bc(Y4i,e),l=o.titleColor??a.titleColor,h=o.labelColor??a.textColor,d=o.valueColor??a.textColor;return` .treemapNode.section { stroke: ${o.sectionStrokeColor}; stroke-width: ${o.sectionStrokeWidth}; @@ -3710,66 +3710,66 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[ye]||ye)+"'";else Vt="Parse fill: ${l}; font-size: ${o.titleFontSize}; } - `},"getStyles"),z4i=G4i,lQr={parser:oQr,get db(){return new aQr},renderer:$4i,styles:z4i}});function oW(e){if(console&&console.error)console.error(`Error: ${e}`)}function Ooe(e){if(console&&console.warn)console.warn(`Warning: ${e}`)}function Noe(e){let r=new Date().getTime(),i=e();return{time:new Date().getTime()-r,value:i}}function Loe(e){function r(){}r.prototype=e;let i=new r;function a(){return typeof i.bar}return a(),a(),e;(0,eval)(e)}var lW=()=>{};function V4i(e){if(H4i(e))return e.LABEL;else return e.name}function H4i(e){return typeof e.LABEL==="string"&&e.LABEL!==""}class _T{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach((r)=>{r.accept(e)})}}class tu{constructor(e){this.idx=1,Object.assign(this,iA(e))}accept(e){e.visit(this)}}function u3e(e){return e.map(cW)}function cW(e){function r(i){return i.map(cW)}if(e instanceof Gd){let i={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(typeof e.label==="string")i.label=e.label;return i}else if(e instanceof zd)return{type:"Alternative",definition:r(e.definition)};else if(e instanceof Sf)return{type:"Option",idx:e.idx,definition:r(e.definition)};else if(e instanceof bg)return{type:"RepetitionMandatory",idx:e.idx,definition:r(e.definition)};else if(e instanceof yg)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:cW(new tu({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof B0)return{type:"RepetitionWithSeparator",idx:e.idx,separator:cW(new tu({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof xh)return{type:"Repetition",idx:e.idx,definition:r(e.definition)};else if(e instanceof F0)return{type:"Alternation",idx:e.idx,definition:r(e.definition)};else if(e instanceof tu){let i={type:"Terminal",name:e.terminalType.name,label:V4i(e.terminalType),idx:e.idx};if(typeof e.label==="string")i.terminalLabel=e.label;let a=e.terminalType.PATTERN;if(e.terminalType.PATTERN)i.pattern=a instanceof RegExp?a.source:a;return i}else if(e instanceof b2)return{type:"Rule",name:e.name,orgText:e.orgText,definition:r(e.definition)};else throw Error("non exhaustive match")}function iA(e){return Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0))}var Gd,b2,zd,Sf,bg,yg,xh,B0,F0;var h3e=Re(()=>{Gd=class Gd extends _T{constructor(e){super([]);this.idx=1,Object.assign(this,iA(e))}set definition(e){}get definition(){if(this.referencedRule!==void 0)return this.referencedRule.definition;return[]}accept(e){e.visit(this)}};b2=class b2 extends _T{constructor(e){super(e.definition);this.orgText="",Object.assign(this,iA(e))}};zd=class zd extends _T{constructor(e){super(e.definition);this.ignoreAmbiguities=!1,Object.assign(this,iA(e))}};Sf=class Sf extends _T{constructor(e){super(e.definition);this.idx=1,Object.assign(this,iA(e))}};bg=class bg extends _T{constructor(e){super(e.definition);this.idx=1,Object.assign(this,iA(e))}};yg=class yg extends _T{constructor(e){super(e.definition);this.idx=1,Object.assign(this,iA(e))}};xh=class xh extends _T{constructor(e){super(e.definition);this.idx=1,Object.assign(this,iA(e))}};B0=class B0 extends _T{constructor(e){super(e.definition);this.idx=1,Object.assign(this,iA(e))}};F0=class F0 extends _T{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition);this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,iA(e))}}});class y2{visit(e){let r=e;switch(r.constructor){case Gd:return this.visitNonTerminal(r);case zd:return this.visitAlternative(r);case Sf:return this.visitOption(r);case bg:return this.visitRepetitionMandatory(r);case yg:return this.visitRepetitionMandatoryWithSeparator(r);case B0:return this.visitRepetitionWithSeparator(r);case xh:return this.visitRepetition(r);case F0:return this.visitAlternation(r);case tu:return this.visitTerminal(r);case b2:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}var uQr=Re(()=>{h3e()});function g0t(e){return e instanceof zd||e instanceof Sf||e instanceof xh||e instanceof bg||e instanceof yg||e instanceof B0||e instanceof tu||e instanceof b2}function xF(e,r=[]){if(e instanceof Sf||e instanceof xh||e instanceof B0)return!0;if(e instanceof F0)return e.definition.some((a)=>xF(a,r));else if(e instanceof Gd&&r.includes(e))return!1;else if(e instanceof _T){if(e instanceof Gd)r.push(e);return e.definition.every((a)=>xF(a,r))}else return!1}function m0t(e){return e instanceof F0}function v2(e){if(e instanceof Gd)return"SUBRULE";else if(e instanceof Sf)return"OPTION";else if(e instanceof F0)return"OR";else if(e instanceof bg)return"AT_LEAST_ONE";else if(e instanceof yg)return"AT_LEAST_ONE_SEP";else if(e instanceof B0)return"MANY_SEP";else if(e instanceof xh)return"MANY";else if(e instanceof tu)return"CONSUME";else throw Error("non exhaustive match")}var hQr=Re(()=>{h3e()});var Ov=Re(()=>{h3e();uQr();hQr()});class nM{walk(e,r=[]){e.definition.forEach((i,a)=>{let o=e.definition.slice(a+1);if(i instanceof Gd)this.walkProdRef(i,o,r);else if(i instanceof tu)this.walkTerminal(i,o,r);else if(i instanceof zd)this.walkFlat(i,o,r);else if(i instanceof Sf)this.walkOption(i,o,r);else if(i instanceof bg)this.walkAtLeastOne(i,o,r);else if(i instanceof yg)this.walkAtLeastOneSep(i,o,r);else if(i instanceof B0)this.walkManySep(i,o,r);else if(i instanceof xh)this.walkMany(i,o,r);else if(i instanceof F0)this.walkOr(i,o,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,i){}walkProdRef(e,r,i){}walkFlat(e,r,i){let a=r.concat(i);this.walk(e,a)}walkOption(e,r,i){let a=r.concat(i);this.walk(e,a)}walkAtLeastOne(e,r,i){let a=[new Sf({definition:e.definition})].concat(r,i);this.walk(e,a)}walkAtLeastOneSep(e,r,i){let a=dQr(e,r,i);this.walk(e,a)}walkMany(e,r,i){let a=[new Sf({definition:e.definition})].concat(r,i);this.walk(e,a)}walkManySep(e,r,i){let a=dQr(e,r,i);this.walk(e,a)}walkOr(e,r,i){let a=r.concat(i);e.definition.forEach((o)=>{let l=new zd({definition:[o]});this.walk(l,a)})}}function dQr(e,r,i){return[new Sf({definition:[new tu({terminalType:e.separator})].concat(e.definition)})].concat(r,i)}var d3e=Re(()=>{Ov()});function CF(e){if(e instanceof Gd)return CF(e.referencedRule);else if(e instanceof tu)return W4i(e);else if(g0t(e))return q4i(e);else if(m0t(e))return Y4i(e);else throw Error("non exhaustive match")}function q4i(e){let r=[],i=e.definition,a=0,o=i.length>a,l,h=!0;while(o&&h)l=i[a],h=xF(l),r=r.concat(CF(l)),a=a+1,o=i.length>a;return[...new Set(r)]}function Y4i(e){let r=e.definition.map((i)=>CF(i));return[...new Set(r.flat())]}function W4i(e){return[e.terminalType]}var b0t=Re(()=>{Ov()});var f3e="_~IN~_";function pQr(e){let r={};return e.forEach((i)=>{let a=new fQr(i).startWalking();Object.assign(r,a)}),r}function j4i(e,r){return e.name+r+f3e}var fQr;var gQr=Re(()=>{d3e();b0t();Ov();fQr=class fQr extends nM{constructor(e){super();this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,i){}walkProdRef(e,r,i){let a=j4i(e.referencedRule,e.idx)+this.topProd.name,o=r.concat(i),l=new zd({definition:o}),h=CF(l);this.follows[a]=h}}});function Io(e){return e.charCodeAt(0)}function p3e(e,r){if(Array.isArray(e))e.forEach(function(i){r.push(i)});else r.push(e)}function uW(e,r){if(e[r]===!0)throw"duplicate flag "+r;let i=e[r];e[r]=!0}function kF(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function Moe(){throw Error("Internal Error - Should never get here!")}function y0t(e){return e.type==="Character"}var Doe,Poe,v0t;var mQr=Re(()=>{Doe=[];for(let e=Io("0");e<=Io("9");e++)Doe.push(e);Poe=[Io("_")].concat(Doe);for(let e=Io("a");e<=Io("z");e++)Poe.push(e);for(let e=Io("A");e<=Io("Z");e++)Poe.push(e);v0t=[Io(" "),Io("\f"),Io(` -`),Io("\r"),Io("\t"),Io("\v"),Io("\t"),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io("\u2028"),Io("\u2029"),Io(" "),Io(" "),Io(" "),Io("\uFEFF")]});class m3e{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let i={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};while(this.isRegExpFlag())switch(this.popChar()){case"g":uW(i,"global");break;case"i":uW(i,"ignoreCase");break;case"m":uW(i,"multiLine");break;case"u":uW(i,"unicode");break;case"y":uW(i,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;e.push(this.alternative());while(this.peekChar()==="|")this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;while(this.isTerm())e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){if(this.isAssertion())return this.assertion();else return this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}kF(r);let i=this.disjunction();return this.consumeChar(")"),{type:r,value:i,loc:this.loc(e)}}return Moe()}quantifier(e=!1){let r=void 0,i=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let o;if(this.isDigit())o=this.integerIncludingZero(),r={atLeast:a,atMost:o};else r={atLeast:a,atMost:1/0};this.consumeChar("}");break}if(e===!0&&r===void 0)return;kF(r);break}if(e===!0&&r===void 0)return;if(kF(r)){if(this.peekChar(0)==="?")this.consumeChar("?"),r.greedy=!1;else r.greedy=!0;return r.type="Quantifier",r.loc=this.loc(i),r}}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter())e=this.patternCharacter();if(kF(e)){if(e.loc=this.loc(r),this.isQuantifier())e.quantifier=this.quantifier();return e}return Moe()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Io(` -`),Io("\r"),Io("\u2028"),Io("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=Doe;break;case"D":e=Doe,r=!0;break;case"s":e=v0t;break;case"S":e=v0t,r=!0;break;case"w":e=Poe;break;case"W":e=Poe,r=!0;break}if(kF(e))return{type:"Set",value:e,complement:r};return Moe()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Io("\f");break;case"n":e=Io(` -`);break;case"r":e=Io("\r");break;case"t":e=Io("\t");break;case"v":e=Io("\v");break}if(kF(e))return{type:"Character",value:e};return Moe()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Io("\x00")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:Io(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` -`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:Io(e)}}}characterClass(){let e=[],r=!1;if(this.consumeChar("["),this.peekChar(0)==="^")this.consumeChar("^"),r=!0;while(this.isClassAtom()){let i=this.classAtom(),a=i.type==="Character";if(y0t(i)&&this.isRangeDash()){this.consumeChar("-");let o=this.classAtom(),l=o.type==="Character";if(y0t(o)){if(o.value{};function K4i(e){if(X4i(e))return e.LABEL;else return e.name}function X4i(e){return typeof e.LABEL==="string"&&e.LABEL!==""}class ET{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach((r)=>{r.accept(e)})}}class tu{constructor(e){this.idx=1,Object.assign(this,aA(e))}accept(e){e.visit(this)}}function f3e(e){return e.map(dW)}function dW(e){function r(i){return i.map(dW)}if(e instanceof Gd){let i={type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(typeof e.label==="string")i.label=e.label;return i}else if(e instanceof zd)return{type:"Alternative",definition:r(e.definition)};else if(e instanceof Sf)return{type:"Option",idx:e.idx,definition:r(e.definition)};else if(e instanceof bg)return{type:"RepetitionMandatory",idx:e.idx,definition:r(e.definition)};else if(e instanceof yg)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:dW(new tu({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof B0)return{type:"RepetitionWithSeparator",idx:e.idx,separator:dW(new tu({terminalType:e.separator})),definition:r(e.definition)};else if(e instanceof xh)return{type:"Repetition",idx:e.idx,definition:r(e.definition)};else if(e instanceof F0)return{type:"Alternation",idx:e.idx,definition:r(e.definition)};else if(e instanceof tu){let i={type:"Terminal",name:e.terminalType.name,label:K4i(e.terminalType),idx:e.idx};if(typeof e.label==="string")i.terminalLabel=e.label;let a=e.terminalType.PATTERN;if(e.terminalType.PATTERN)i.pattern=a instanceof RegExp?a.source:a;return i}else if(e instanceof b2)return{type:"Rule",name:e.name,orgText:e.orgText,definition:r(e.definition)};else throw Error("non exhaustive match")}function aA(e){return Object.fromEntries(Object.entries(e).filter(([,r])=>r!==void 0))}var Gd,b2,zd,Sf,bg,yg,xh,B0,F0;var p3e=Re(()=>{Gd=class Gd extends ET{constructor(e){super([]);this.idx=1,Object.assign(this,aA(e))}set definition(e){}get definition(){if(this.referencedRule!==void 0)return this.referencedRule.definition;return[]}accept(e){e.visit(this)}};b2=class b2 extends ET{constructor(e){super(e.definition);this.orgText="",Object.assign(this,aA(e))}};zd=class zd extends ET{constructor(e){super(e.definition);this.ignoreAmbiguities=!1,Object.assign(this,aA(e))}};Sf=class Sf extends ET{constructor(e){super(e.definition);this.idx=1,Object.assign(this,aA(e))}};bg=class bg extends ET{constructor(e){super(e.definition);this.idx=1,Object.assign(this,aA(e))}};yg=class yg extends ET{constructor(e){super(e.definition);this.idx=1,Object.assign(this,aA(e))}};xh=class xh extends ET{constructor(e){super(e.definition);this.idx=1,Object.assign(this,aA(e))}};B0=class B0 extends ET{constructor(e){super(e.definition);this.idx=1,Object.assign(this,aA(e))}};F0=class F0 extends ET{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition);this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,aA(e))}}});class y2{visit(e){let r=e;switch(r.constructor){case Gd:return this.visitNonTerminal(r);case zd:return this.visitAlternative(r);case Sf:return this.visitOption(r);case bg:return this.visitRepetitionMandatory(r);case yg:return this.visitRepetitionMandatoryWithSeparator(r);case B0:return this.visitRepetitionWithSeparator(r);case xh:return this.visitRepetition(r);case F0:return this.visitAlternation(r);case tu:return this.visitTerminal(r);case b2:return this.visitRule(r);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}var gQr=Re(()=>{p3e()});function y0t(e){return e instanceof zd||e instanceof Sf||e instanceof xh||e instanceof bg||e instanceof yg||e instanceof B0||e instanceof tu||e instanceof b2}function kF(e,r=[]){if(e instanceof Sf||e instanceof xh||e instanceof B0)return!0;if(e instanceof F0)return e.definition.some((a)=>kF(a,r));else if(e instanceof Gd&&r.includes(e))return!1;else if(e instanceof ET){if(e instanceof Gd)r.push(e);return e.definition.every((a)=>kF(a,r))}else return!1}function v0t(e){return e instanceof F0}function v2(e){if(e instanceof Gd)return"SUBRULE";else if(e instanceof Sf)return"OPTION";else if(e instanceof F0)return"OR";else if(e instanceof bg)return"AT_LEAST_ONE";else if(e instanceof yg)return"AT_LEAST_ONE_SEP";else if(e instanceof B0)return"MANY_SEP";else if(e instanceof xh)return"MANY";else if(e instanceof tu)return"CONSUME";else throw Error("non exhaustive match")}var mQr=Re(()=>{p3e()});var Ov=Re(()=>{p3e();gQr();mQr()});class aM{walk(e,r=[]){e.definition.forEach((i,a)=>{let o=e.definition.slice(a+1);if(i instanceof Gd)this.walkProdRef(i,o,r);else if(i instanceof tu)this.walkTerminal(i,o,r);else if(i instanceof zd)this.walkFlat(i,o,r);else if(i instanceof Sf)this.walkOption(i,o,r);else if(i instanceof bg)this.walkAtLeastOne(i,o,r);else if(i instanceof yg)this.walkAtLeastOneSep(i,o,r);else if(i instanceof B0)this.walkManySep(i,o,r);else if(i instanceof xh)this.walkMany(i,o,r);else if(i instanceof F0)this.walkOr(i,o,r);else throw Error("non exhaustive match")})}walkTerminal(e,r,i){}walkProdRef(e,r,i){}walkFlat(e,r,i){let a=r.concat(i);this.walk(e,a)}walkOption(e,r,i){let a=r.concat(i);this.walk(e,a)}walkAtLeastOne(e,r,i){let a=[new Sf({definition:e.definition})].concat(r,i);this.walk(e,a)}walkAtLeastOneSep(e,r,i){let a=bQr(e,r,i);this.walk(e,a)}walkMany(e,r,i){let a=[new Sf({definition:e.definition})].concat(r,i);this.walk(e,a)}walkManySep(e,r,i){let a=bQr(e,r,i);this.walk(e,a)}walkOr(e,r,i){let a=r.concat(i);e.definition.forEach((o)=>{let l=new zd({definition:[o]});this.walk(l,a)})}}function bQr(e,r,i){return[new Sf({definition:[new tu({terminalType:e.separator})].concat(e.definition)})].concat(r,i)}var g3e=Re(()=>{Ov()});function AF(e){if(e instanceof Gd)return AF(e.referencedRule);else if(e instanceof tu)return J4i(e);else if(y0t(e))return Q4i(e);else if(v0t(e))return Z4i(e);else throw Error("non exhaustive match")}function Q4i(e){let r=[],i=e.definition,a=0,o=i.length>a,l,h=!0;while(o&&h)l=i[a],h=kF(l),r=r.concat(AF(l)),a=a+1,o=i.length>a;return[...new Set(r)]}function Z4i(e){let r=e.definition.map((i)=>AF(i));return[...new Set(r.flat())]}function J4i(e){return[e.terminalType]}var _0t=Re(()=>{Ov()});var m3e="_~IN~_";function vQr(e){let r={};return e.forEach((i)=>{let a=new yQr(i).startWalking();Object.assign(r,a)}),r}function eki(e,r){return e.name+r+m3e}var yQr;var _Qr=Re(()=>{g3e();_0t();Ov();yQr=class yQr extends aM{constructor(e){super();this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,r,i){}walkProdRef(e,r,i){let a=eki(e.referencedRule,e.idx)+this.topProd.name,o=r.concat(i),l=new zd({definition:o}),h=AF(l);this.follows[a]=h}}});function Io(e){return e.charCodeAt(0)}function b3e(e,r){if(Array.isArray(e))e.forEach(function(i){r.push(i)});else r.push(e)}function fW(e,r){if(e[r]===!0)throw"duplicate flag "+r;let i=e[r];e[r]=!0}function RF(e){if(e===void 0)throw Error("Internal Error - Should never get here!");return!0}function Boe(){throw Error("Internal Error - Should never get here!")}function E0t(e){return e.type==="Character"}var Foe,$oe,w0t;var EQr=Re(()=>{Foe=[];for(let e=Io("0");e<=Io("9");e++)Foe.push(e);$oe=[Io("_")].concat(Foe);for(let e=Io("a");e<=Io("z");e++)$oe.push(e);for(let e=Io("A");e<=Io("Z");e++)$oe.push(e);w0t=[Io(" "),Io("\f"),Io(` +`),Io("\r"),Io("\t"),Io("\v"),Io("\t"),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io(" "),Io("\u2028"),Io("\u2029"),Io(" "),Io(" "),Io(" "),Io("\uFEFF")]});class v3e{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");let r=this.disjunction();this.consumeChar("/");let i={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};while(this.isRegExpFlag())switch(this.popChar()){case"g":fW(i,"global");break;case"i":fW(i,"ignoreCase");break;case"m":fW(i,"multiLine");break;case"u":fW(i,"unicode");break;case"y":fW(i,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:i,value:r,loc:this.loc(0)}}disjunction(){let e=[],r=this.idx;e.push(this.alternative());while(this.peekChar()==="|")this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(r)}}alternative(){let e=[],r=this.idx;while(this.isTerm())e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(r)}}term(){if(this.isAssertion())return this.assertion();else return this.atom()}assertion(){let e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let r;switch(this.popChar()){case"=":r="Lookahead";break;case"!":r="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":r="Lookbehind";break;case"!":r="NegativeLookbehind"}break}}RF(r);let i=this.disjunction();return this.consumeChar(")"),{type:r,value:i,loc:this.loc(e)}}return Boe()}quantifier(e=!1){let r=void 0,i=this.idx;switch(this.popChar()){case"*":r={atLeast:0,atMost:1/0};break;case"+":r={atLeast:1,atMost:1/0};break;case"?":r={atLeast:0,atMost:1};break;case"{":let a=this.integerIncludingZero();switch(this.popChar()){case"}":r={atLeast:a,atMost:a};break;case",":let o;if(this.isDigit())o=this.integerIncludingZero(),r={atLeast:a,atMost:o};else r={atLeast:a,atMost:1/0};this.consumeChar("}");break}if(e===!0&&r===void 0)return;RF(r);break}if(e===!0&&r===void 0)return;if(RF(r)){if(this.peekChar(0)==="?")this.consumeChar("?"),r.greedy=!1;else r.greedy=!0;return r.type="Quantifier",r.loc=this.loc(i),r}}atom(){let e,r=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter())e=this.patternCharacter();if(RF(e)){if(e.loc=this.loc(r),this.isQuantifier())e.quantifier=this.quantifier();return e}return Boe()}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[Io(` +`),Io("\r"),Io("\u2028"),Io("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,r=!1;switch(this.popChar()){case"d":e=Foe;break;case"D":e=Foe,r=!0;break;case"s":e=w0t;break;case"S":e=w0t,r=!0;break;case"w":e=$oe;break;case"W":e=$oe,r=!0;break}if(RF(e))return{type:"Set",value:e,complement:r};return Boe()}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=Io("\f");break;case"n":e=Io(` +`);break;case"r":e=Io("\r");break;case"t":e=Io("\t");break;case"v":e=Io("\v");break}if(RF(e))return{type:"Character",value:e};return Boe()}controlLetterEscapeAtom(){this.consumeChar("c");let e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:Io("\x00")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){let e=this.popChar();return{type:"Character",value:Io(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case` +`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:let e=this.popChar();return{type:"Character",value:Io(e)}}}characterClass(){let e=[],r=!1;if(this.consumeChar("["),this.peekChar(0)==="^")this.consumeChar("^"),r=!0;while(this.isClassAtom()){let i=this.classAtom(),a=i.type==="Character";if(E0t(i)&&this.isRangeDash()){this.consumeChar("-");let o=this.classAtom(),l=o.type==="Character";if(E0t(o)){if(o.value=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}var K4i,g3e,X4i;var bQr=Re(()=>{mQr();K4i=/[0-9a-fA-F]/,g3e=/[0-9]/,X4i=/[1-9]/});class AF{visitChildren(e){for(let r in e){let i=e[r];if(e.hasOwnProperty(r)){if(i.type!==void 0)this.visit(i);else if(Array.isArray(i))i.forEach((a)=>{this.visit(a)},this)}}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}var b3e=Re(()=>{bQr()});function RF(e){let r=e.toString();if(y3e.hasOwnProperty(r))return y3e[r];else{let i=Q4i.pattern(r);return y3e[r]=i,i}}function yQr(){y3e={}}var y3e,Q4i;var v3e=Re(()=>{b3e();y3e={},Q4i=new m3e});function EQr(e,r=!1){try{let i=RF(e);return _0t(i.value,{},i.flags.ignoreCase)}catch(i){if(i.message===_Qr){if(r)Ooe(`${Boe} Unable to optimize: < ${e.toString()} > +`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}}parseHexDigits(e){let r="";for(let a=0;a=this.input.length)throw Error("Unexpected end of input");this.idx++}loc(e){return{begin:e,end:this.idx}}}var tki,y3e,rki;var wQr=Re(()=>{EQr();tki=/[0-9a-fA-F]/,y3e=/[0-9]/,rki=/[1-9]/});class IF{visitChildren(e){for(let r in e){let i=e[r];if(e.hasOwnProperty(r)){if(i.type!==void 0)this.visit(i);else if(Array.isArray(i))i.forEach((a)=>{this.visit(a)},this)}}}visit(e){switch(e.type){case"Pattern":this.visitPattern(e);break;case"Flags":this.visitFlags(e);break;case"Disjunction":this.visitDisjunction(e);break;case"Alternative":this.visitAlternative(e);break;case"StartAnchor":this.visitStartAnchor(e);break;case"EndAnchor":this.visitEndAnchor(e);break;case"WordBoundary":this.visitWordBoundary(e);break;case"NonWordBoundary":this.visitNonWordBoundary(e);break;case"Lookahead":this.visitLookahead(e);break;case"NegativeLookahead":this.visitNegativeLookahead(e);break;case"Lookbehind":this.visitLookbehind(e);break;case"NegativeLookbehind":this.visitNegativeLookbehind(e);break;case"Character":this.visitCharacter(e);break;case"Set":this.visitSet(e);break;case"Group":this.visitGroup(e);break;case"GroupBackReference":this.visitGroupBackReference(e);break;case"Quantifier":this.visitQuantifier(e);break}this.visitChildren(e)}visitPattern(e){}visitFlags(e){}visitDisjunction(e){}visitAlternative(e){}visitStartAnchor(e){}visitEndAnchor(e){}visitWordBoundary(e){}visitNonWordBoundary(e){}visitLookahead(e){}visitNegativeLookahead(e){}visitLookbehind(e){}visitNegativeLookbehind(e){}visitCharacter(e){}visitSet(e){}visitGroup(e){}visitGroupBackReference(e){}visitQuantifier(e){}}var _3e=Re(()=>{wQr()});function OF(e){let r=e.toString();if(E3e.hasOwnProperty(r))return E3e[r];else{let i=nki.pattern(r);return E3e[r]=i,i}}function SQr(){E3e={}}var E3e,nki;var w3e=Re(()=>{_3e();E3e={},nki=new v3e});function CQr(e,r=!1){try{let i=OF(e);return S0t(i.value,{},i.flags.ignoreCase)}catch(i){if(i.message===xQr){if(r)Moe(`${Uoe} Unable to optimize: < ${e.toString()} > Complement Sets cannot be automatically optimized. This will disable the lexer's first char optimizations. See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`)}else{let a="";if(r)a=` This will disable the lexer's first char optimizations. - See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`;oW(`${Boe} + See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`;uW(`${Uoe} Failed parsing: < ${e.toString()} > Using the @chevrotain/regexp-to-ast library - Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+a)}}return[]}function _0t(e,r,i){switch(e.type){case"Disjunction":for(let o=0;o{if(typeof p==="number")_3e(p,r,i);else{let m=p;if(i===!0)for(let y=m.from;y<=m.to;y++)_3e(y,r,i);else{for(let y=m.from;y<=m.to&&y=hW){let y=m.from>=hW?m.from:hW,E=m.to,w=aA(y),T=aA(E);for(let x=w;x<=T;x++)r[x]=x}}}});break;case"Group":_0t(h.value,r,i);break;default:throw Error("Non Exhaustive Match")}let d=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&E0t(h)===!1||h.type!=="Group"&&d===!1)break}break;default:throw Error("non exhaustive match!")}return Object.values(r)}function _3e(e,r,i){let a=aA(e);if(r[a]=a,i===!0)Z4i(e,r)}function Z4i(e,r){let i=String.fromCharCode(e),a=i.toUpperCase();if(a!==i){let o=aA(a.charCodeAt(0));r[o]=o}else{let o=i.toLowerCase();if(o!==i){let l=aA(o.charCodeAt(0));r[l]=l}}}function vQr(e,r){return e.value.find((i)=>{if(typeof i==="number")return r.includes(i);else{let a=i;return r.find((o)=>a.from<=o&&o<=a.to)!==void 0}})}function E0t(e){let r=e.quantifier;if(r&&r.atLeast===0)return!0;if(!e.value)return!1;return Array.isArray(e.value)?e.value.every(E0t):E0t(e.value)}function E3e(e,r){if(r instanceof RegExp){let i=RF(r),a=new wQr(e);return a.visit(i),a.found}else{for(let i of r){let a=i.charCodeAt(0);if(e.includes(a))return!0}return!1}}var _Qr="Complement Sets are not supported for first char optimization",Boe=`Unable to use "first char" lexer optimizations: -`,wQr;var SQr=Re(()=>{b3e();lW();v3e();w0t();wQr=class wQr extends AF{constructor(e){super();this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found===!0)return;switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}visitCharacter(e){if(this.targetCharCodes.includes(e.value))this.found=!0}visitSet(e){if(e.complement){if(vQr(e,this.targetCharCodes)===void 0)this.found=!0}else if(vQr(e,this.targetCharCodes)!==void 0)this.found=!0}}});function xQr(e,r){r=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` -`],tracer:(N,L)=>L()},r);let i=r.tracer;i("initCharCodeToOptimizedIndexMap",()=>{yki()});let a;i("Reject Lexer.NA",()=>{a=e.filter((N)=>N[IF]!==cp.NA)});let o=!1,l;i("Transform Patterns",()=>{o=!1,l=a.map((N)=>{let L=N[IF];if(L instanceof RegExp){let B=L.source;if(B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!L.ignoreCase)return B;else if(B.length===2&&B[0]==="\\"&&!["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(B[1]))return B[1];else return TQr(L)}else if(typeof L==="function")return o=!0,{exec:L};else if(typeof L==="object")return o=!0,L;else if(typeof L==="string")if(L.length===1)return L;else{let B=L.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),D=new RegExp(B);return TQr(D)}else throw Error("non exhaustive match")})});let h,d,p,m,y;i("misc mapping",()=>{h=a.map((N)=>N.tokenTypeIdx),d=a.map((N)=>{let L=N.GROUP;if(L===cp.SKIPPED)return;else if(typeof L==="string")return L;else if(L===void 0)return!1;else throw Error("non exhaustive match")}),p=a.map((N)=>{let L=N.LONGER_ALT;if(L)return Array.isArray(L)?L.map((D)=>a.indexOf(D)):[a.indexOf(L)]}),m=a.map((N)=>N.PUSH_MODE),y=a.map((N)=>Object.hasOwn(N,"POP_MODE"))});let E;i("Line Terminator Handling",()=>{let N=NQr(r.lineTerminatorCharacters);if(E=a.map((L)=>!1),r.positionTracking!=="onlyOffset")E=a.map((L)=>{if(Object.hasOwn(L,"LINE_BREAKS"))return!!L.LINE_BREAKS;else return OQr(L,N)===!1&&E3e(N,L.PATTERN)})});let w,T,x,k;i("Misc Mapping #2",()=>{w=a.map(RQr),T=l.map(mki),x=a.reduce((N,L)=>{let B=L.GROUP;if(typeof B==="string"&&B!==cp.SKIPPED)N[B]=[];return N},{}),k=l.map((N,L)=>{let B=d[L]===void 0&&p[L]===void 0?J4i(a[L].PATTERN):void 0;return{pattern:l[L],asciiClass:B,longerAlt:p[L],canLineTerminator:E[L],matchType:B!==void 0?C3e:T[L]!==!1?T3e:w[L]?Foe:x3e,short:T[L],group:d[L],push:m[L],pop:y[L],tokenTypeIdx:h[L],tokenType:a[L]}})});let A=!0,R=[];if(!r.safeMode)i("First Char Optimization",()=>{R=a.reduce((N,L,B)=>{if(typeof L.PATTERN==="string"){let D=L.PATTERN.charCodeAt(0),P=aA(D);S0t(N,P,k[B])}else if(Array.isArray(L.START_CHARS_HINT)){let D;L.START_CHARS_HINT.forEach((P)=>{let F=typeof P==="string"?P.charCodeAt(0):P,H=aA(F);if(D!==H)D=H,S0t(N,H,k[B])})}else if(L.PATTERN instanceof RegExp)if(L.PATTERN.unicode){if(A=!1,r.ensureOptimizations)oW(`${Boe} Unable to analyze < ${L.PATTERN.toString()} > pattern. + Please open an issue at: https://github.com/chevrotain/chevrotain/issues`+a)}}return[]}function S0t(e,r,i){switch(e.type){case"Disjunction":for(let o=0;o{if(typeof p==="number")S3e(p,r,i);else{let m=p;if(i===!0)for(let y=m.from;y<=m.to;y++)S3e(y,r,i);else{for(let y=m.from;y<=m.to&&y=pW){let y=m.from>=pW?m.from:pW,v=m.to,w=sA(y),T=sA(v);for(let x=w;x<=T;x++)r[x]=x}}}});break;case"Group":S0t(h.value,r,i);break;default:throw Error("Non Exhaustive Match")}let d=h.quantifier!==void 0&&h.quantifier.atLeast===0;if(h.type==="Group"&&T0t(h)===!1||h.type!=="Group"&&d===!1)break}break;default:throw Error("non exhaustive match!")}return Object.values(r)}function S3e(e,r,i){let a=sA(e);if(r[a]=a,i===!0)iki(e,r)}function iki(e,r){let i=String.fromCharCode(e),a=i.toUpperCase();if(a!==i){let o=sA(a.charCodeAt(0));r[o]=o}else{let o=i.toLowerCase();if(o!==i){let l=sA(o.charCodeAt(0));r[l]=l}}}function TQr(e,r){return e.value.find((i)=>{if(typeof i==="number")return r.includes(i);else{let a=i;return r.find((o)=>a.from<=o&&o<=a.to)!==void 0}})}function T0t(e){let r=e.quantifier;if(r&&r.atLeast===0)return!0;if(!e.value)return!1;return Array.isArray(e.value)?e.value.every(T0t):T0t(e.value)}function T3e(e,r){if(r instanceof RegExp){let i=OF(r),a=new kQr(e);return a.visit(i),a.found}else{for(let i of r){let a=i.charCodeAt(0);if(e.includes(a))return!0}return!1}}var xQr="Complement Sets are not supported for first char optimization",Uoe=`Unable to use "first char" lexer optimizations: +`,kQr;var AQr=Re(()=>{_3e();hW();w3e();x0t();kQr=class kQr extends IF{constructor(e){super();this.targetCharCodes=e,this.found=!1}visitChildren(e){if(this.found===!0)return;switch(e.type){case"Lookahead":this.visitLookahead(e);return;case"NegativeLookahead":this.visitNegativeLookahead(e);return;case"Lookbehind":this.visitLookbehind(e);return;case"NegativeLookbehind":this.visitNegativeLookbehind(e);return}super.visitChildren(e)}visitCharacter(e){if(this.targetCharCodes.includes(e.value))this.found=!0}visitSet(e){if(e.complement){if(TQr(e,this.targetCharCodes)===void 0)this.found=!0}else if(TQr(e,this.targetCharCodes)!==void 0)this.found=!0}}});function IQr(e,r){r=Object.assign({safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",` +`],tracer:(N,L)=>L()},r);let i=r.tracer;i("initCharCodeToOptimizedIndexMap",()=>{Tki()});let a;i("Reject Lexer.NA",()=>{a=e.filter((N)=>N[NF]!==cp.NA)});let o=!1,l;i("Transform Patterns",()=>{o=!1,l=a.map((N)=>{let L=N[NF];if(L instanceof RegExp){let B=L.source;if(B.length===1&&B!=="^"&&B!=="$"&&B!=="."&&!L.ignoreCase)return B;else if(B.length===2&&B[0]==="\\"&&!["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"].includes(B[1]))return B[1];else return RQr(L)}else if(typeof L==="function")return o=!0,{exec:L};else if(typeof L==="object")return o=!0,L;else if(typeof L==="string")if(L.length===1)return L;else{let B=L.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),D=new RegExp(B);return RQr(D)}else throw Error("non exhaustive match")})});let h,d,p,m,y;i("misc mapping",()=>{h=a.map((N)=>N.tokenTypeIdx),d=a.map((N)=>{let L=N.GROUP;if(L===cp.SKIPPED)return;else if(typeof L==="string")return L;else if(L===void 0)return!1;else throw Error("non exhaustive match")}),p=a.map((N)=>{let L=N.LONGER_ALT;if(L)return Array.isArray(L)?L.map((D)=>a.indexOf(D)):[a.indexOf(L)]}),m=a.map((N)=>N.PUSH_MODE),y=a.map((N)=>Object.hasOwn(N,"POP_MODE"))});let v;i("Line Terminator Handling",()=>{let N=BQr(r.lineTerminatorCharacters);if(v=a.map((L)=>!1),r.positionTracking!=="onlyOffset")v=a.map((L)=>{if(Object.hasOwn(L,"LINE_BREAKS"))return!!L.LINE_BREAKS;else return PQr(L,N)===!1&&T3e(N,L.PATTERN)})});let w,T,x,k;i("Misc Mapping #2",()=>{w=a.map(MQr),T=l.map(wki),x=a.reduce((N,L)=>{let B=L.GROUP;if(typeof B==="string"&&B!==cp.SKIPPED)N[B]=[];return N},{}),k=l.map((N,L)=>{let B=d[L]===void 0&&p[L]===void 0?aki(a[L].PATTERN):void 0;return{pattern:l[L],asciiClass:B,longerAlt:p[L],canLineTerminator:v[L],matchType:B!==void 0?R3e:T[L]!==!1?k3e:w[L]?Goe:A3e,short:T[L],group:d[L],push:m[L],pop:y[L],tokenTypeIdx:h[L],tokenType:a[L]}})});let A=!0,R=[];if(!r.safeMode)i("First Char Optimization",()=>{R=a.reduce((N,L,B)=>{if(typeof L.PATTERN==="string"){let D=L.PATTERN.charCodeAt(0),P=sA(D);C0t(N,P,k[B])}else if(Array.isArray(L.START_CHARS_HINT)){let D;L.START_CHARS_HINT.forEach((P)=>{let F=typeof P==="string"?P.charCodeAt(0):P,H=sA(F);if(D!==H)D=H,C0t(N,H,k[B])})}else if(L.PATTERN instanceof RegExp)if(L.PATTERN.unicode){if(A=!1,r.ensureOptimizations)uW(`${Uoe} Unable to analyze < ${L.PATTERN.toString()} > pattern. The regexp unicode flag is not currently supported by the regexp-to-ast library. This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)}else{let D=EQr(L.PATTERN,r.ensureOptimizations);if(D.length===0)A=!1;D.forEach((P)=>{S0t(N,P,k[B])})}else{if(r.ensureOptimizations)oW(`${Boe} TokenType: <${L.name}> is using a custom token pattern without providing parameter. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`)}else{let D=CQr(L.PATTERN,r.ensureOptimizations);if(D.length===0)A=!1;D.forEach((P)=>{C0t(N,P,k[B])})}else{if(r.ensureOptimizations)uW(`${Uoe} TokenType: <${L.name}> is using a custom token pattern without providing parameter. This will disable the lexer's first char optimizations. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`);A=!1}return N},[])});return{emptyGroups:x,patternIdxToConfig:k,charCodeToPatternIdxToConfig:R,hasCustom:o,canBeOptimized:A}}function J4i(e){var r,i;if(!(e instanceof RegExp)||e.flags!=="")return;let a;try{a=RF(e)}catch(d){return}if(a.value.value.length!==1||a.value.value[0].value.length!==1)return;let o=a.value.value[0].value[0],l;while(o.type==="Group"){if(o.capturing||o.quantifier!==void 0&&l!==void 0||o.value.value.length!==1||o.value.value[0].value.length!==1)return;l=(r=o.quantifier)!==null&&r!==void 0?r:l,o=o.value.value[0].value[0]}if(o.type!=="Set"||o.complement||o.quantifier!==void 0&&l!==void 0)return;if(l=(i=o.quantifier)!==null&&i!==void 0?i:l,(l===null||l===void 0?void 0:l.atLeast)!==1||l.atMost!==1/0||!l.greedy)return;let h=new Uint8Array(128);for(let d of o.value){let p=typeof d==="number"?d:d.from,m=typeof d==="number"?d:d.to;if(p<0||m>=h.length)return;h.fill(1,p,m+1)}return h}function CQr(e,r){let i=[],a=tki(e);i=i.concat(a.errors);let o=rki(a.valid),l=o.valid;return i=i.concat(o.errors),i=i.concat(eki(l)),i=i.concat(uki(l)),i=i.concat(hki(l,r)),i=i.concat(dki(l)),i}function eki(e){let r=[],i=e.filter((a)=>a[IF]instanceof RegExp);return r=r.concat(iki(i)),r=r.concat(oki(i)),r=r.concat(lki(i)),r=r.concat(cki(i)),r=r.concat(aki(i)),r}function tki(e){let r=e.filter((o)=>!Object.hasOwn(o,IF)),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- missing static 'PATTERN' property",type:Tf.MISSING_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function rki(e){let r=e.filter((o)=>{let l=o[IF];return!(l instanceof RegExp)&&typeof l!=="function"&&!Object.hasOwn(l,"exec")&&typeof l!=="string"}),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Tf.INVALID_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function iki(e){class r extends AF{constructor(){super(...arguments);this.found=!1}visitEndAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=RF(l),d=new r;return d.visit(h),d.found}catch(h){return nki.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`);A=!1}return N},[])});return{emptyGroups:x,patternIdxToConfig:k,charCodeToPatternIdxToConfig:R,hasCustom:o,canBeOptimized:A}}function aki(e){var r,i;if(!(e instanceof RegExp)||e.flags!=="")return;let a;try{a=OF(e)}catch(d){return}if(a.value.value.length!==1||a.value.value[0].value.length!==1)return;let o=a.value.value[0].value[0],l;while(o.type==="Group"){if(o.capturing||o.quantifier!==void 0&&l!==void 0||o.value.value.length!==1||o.value.value[0].value.length!==1)return;l=(r=o.quantifier)!==null&&r!==void 0?r:l,o=o.value.value[0].value[0]}if(o.type!=="Set"||o.complement||o.quantifier!==void 0&&l!==void 0)return;if(l=(i=o.quantifier)!==null&&i!==void 0?i:l,(l===null||l===void 0?void 0:l.atLeast)!==1||l.atMost!==1/0||!l.greedy)return;let h=new Uint8Array(128);for(let d of o.value){let p=typeof d==="number"?d:d.from,m=typeof d==="number"?d:d.to;if(p<0||m>=h.length)return;h.fill(1,p,m+1)}return h}function OQr(e,r){let i=[],a=oki(e);i=i.concat(a.errors);let o=lki(a.valid),l=o.valid;return i=i.concat(o.errors),i=i.concat(ski(l)),i=i.concat(mki(l)),i=i.concat(bki(l,r)),i=i.concat(yki(l)),i}function ski(e){let r=[],i=e.filter((a)=>a[NF]instanceof RegExp);return r=r.concat(uki(i)),r=r.concat(fki(i)),r=r.concat(pki(i)),r=r.concat(gki(i)),r=r.concat(hki(i)),r}function oki(e){let r=e.filter((o)=>!Object.hasOwn(o,NF)),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- missing static 'PATTERN' property",type:Tf.MISSING_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function lki(e){let r=e.filter((o)=>{let l=o[NF];return!(l instanceof RegExp)&&typeof l!=="function"&&!Object.hasOwn(l,"exec")&&typeof l!=="string"}),i=r.map((o)=>({message:"Token Type: ->"+o.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:Tf.INVALID_PATTERN,tokenTypes:[o]})),a=e.filter((o)=>!r.includes(o));return{errors:i,valid:a}}function uki(e){class r extends IF{constructor(){super(...arguments);this.found=!1}visitEndAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=OF(l),d=new r;return d.visit(h),d.found}catch(h){return cki.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+o.name+`<- static 'PATTERN' cannot contain end of input anchor '$' - See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Tf.EOI_ANCHOR_FOUND,tokenTypes:[o]}))}function aki(e){return e.filter((a)=>a.PATTERN.test("")).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' must not match an empty string",type:Tf.EMPTY_MATCH_PATTERN,tokenTypes:[a]}))}function oki(e){class r extends AF{constructor(){super(...arguments);this.found=!1}visitStartAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=RF(l),d=new r;return d.visit(h),d.found}catch(h){return ski.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: + See chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Tf.EOI_ANCHOR_FOUND,tokenTypes:[o]}))}function hki(e){return e.filter((a)=>a.PATTERN.test("")).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' must not match an empty string",type:Tf.EMPTY_MATCH_PATTERN,tokenTypes:[a]}))}function fki(e){class r extends IF{constructor(){super(...arguments);this.found=!1}visitStartAnchor(o){this.found=!0}}return e.filter((o)=>{let l=o.PATTERN;try{let h=OF(l),d=new r;return d.visit(h),d.found}catch(h){return dki.test(l.source)}}).map((o)=>({message:`Unexpected RegExp Anchor Error: Token Type: ->`+o.name+`<- static 'PATTERN' cannot contain start of input anchor '^' - See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Tf.SOI_ANCHOR_FOUND,tokenTypes:[o]}))}function lki(e){return e.filter((a)=>{let o=a[IF];return o instanceof RegExp&&(o.multiline||o.global)}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Tf.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[a]}))}function cki(e){let r=[],i=e.map((l)=>e.reduce((h,d)=>{if(l.PATTERN.source===d.PATTERN.source&&!r.includes(d)&&d.PATTERN!==cp.NA)return r.push(d),h.push(d),h;return h},[]));return i=i.filter(Boolean),i.filter((l)=>l.length>1).map((l)=>{let h=l.map((p)=>p.name);return{message:`The same RegExp pattern ->${l[0].PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:Tf.DUPLICATE_PATTERNS_FOUND,tokenTypes:l}})}function uki(e){return e.filter((a)=>{if(!Object.hasOwn(a,"GROUP"))return!1;let o=a.GROUP;return o!==cp.SKIPPED&&o!==cp.NA&&typeof o!=="string"}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Tf.INVALID_GROUP_TYPE_FOUND,tokenTypes:[a]}))}function hki(e,r){return e.filter((o)=>o.PUSH_MODE!==void 0&&!r.includes(o.PUSH_MODE)).map((o)=>({message:`Token Type: ->${o.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${o.PUSH_MODE}<-which does not exist`,type:Tf.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[o]}))}function dki(e){let r=[],i=e.reduce((a,o,l)=>{let h=o.PATTERN;if(h===cp.NA)return a;if(typeof h==="string")a.push({str:h,idx:l,tokenType:o});else if(h instanceof RegExp&&pki(h))a.push({str:h.source,idx:l,tokenType:o});return a},[]);return e.forEach((a,o)=>{i.forEach(({str:l,idx:h,tokenType:d})=>{if(o${d.name}<- can never be matched. + See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:Tf.SOI_ANCHOR_FOUND,tokenTypes:[o]}))}function pki(e){return e.filter((a)=>{let o=a[NF];return o instanceof RegExp&&(o.multiline||o.global)}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:Tf.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[a]}))}function gki(e){let r=[],i=e.map((l)=>e.reduce((h,d)=>{if(l.PATTERN.source===d.PATTERN.source&&!r.includes(d)&&d.PATTERN!==cp.NA)return r.push(d),h.push(d),h;return h},[]));return i=i.filter(Boolean),i.filter((l)=>l.length>1).map((l)=>{let h=l.map((p)=>p.name);return{message:`The same RegExp pattern ->${l[0].PATTERN}<-has been used in all of the following Token Types: ${h.join(", ")} <-`,type:Tf.DUPLICATE_PATTERNS_FOUND,tokenTypes:l}})}function mki(e){return e.filter((a)=>{if(!Object.hasOwn(a,"GROUP"))return!1;let o=a.GROUP;return o!==cp.SKIPPED&&o!==cp.NA&&typeof o!=="string"}).map((a)=>({message:"Token Type: ->"+a.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:Tf.INVALID_GROUP_TYPE_FOUND,tokenTypes:[a]}))}function bki(e,r){return e.filter((o)=>o.PUSH_MODE!==void 0&&!r.includes(o.PUSH_MODE)).map((o)=>({message:`Token Type: ->${o.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${o.PUSH_MODE}<-which does not exist`,type:Tf.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[o]}))}function yki(e){let r=[],i=e.reduce((a,o,l)=>{let h=o.PATTERN;if(h===cp.NA)return a;if(typeof h==="string")a.push({str:h,idx:l,tokenType:o});else if(h instanceof RegExp&&_ki(h))a.push({str:h.source,idx:l,tokenType:o});return a},[]);return e.forEach((a,o)=>{i.forEach(({str:l,idx:h,tokenType:d})=>{if(o${d.name}<- can never be matched. Because it appears AFTER the Token Type ->${a.name}<-in the lexer's definition. -See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;r.push({message:p,type:Tf.UNREACHABLE_PATTERN,tokenTypes:[a,d]})}})}),r}function fki(e,r){if(r instanceof RegExp){if(gki(r))return!1;let i=r.exec(e);return i!==null&&i.index===0}else if(typeof r==="function")return r(e,0,[],{});else if(Object.hasOwn(r,"exec"))return r.exec(e,0,[],{});else if(typeof r==="string")return r===e;else throw Error("non exhaustive match")}function pki(e){return[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find((i)=>e.source.indexOf(i)!==-1)===void 0}function gki(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition -`,type:Tf.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE});if(!Object.hasOwn(e,w3e))a.push({message:"A MultiMode Lexer cannot be initialized without a <"+w3e+`> property in its definition -`,type:Tf.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY});if(Object.hasOwn(e,w3e)&&Object.hasOwn(e,dW)&&!Object.hasOwn(e.modes,e.defaultMode))a.push({message:`A MultiMode Lexer cannot be initialized with a ${dW}: <${e.defaultMode}>which does not exist -`,type:Tf.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST});if(Object.hasOwn(e,w3e))Object.keys(e.modes).forEach((o)=>{let l=e.modes[o];l.forEach((h,d)=>{if(h===void 0)a.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${d}> +See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;r.push({message:p,type:Tf.UNREACHABLE_PATTERN,tokenTypes:[a,d]})}})}),r}function vki(e,r){if(r instanceof RegExp){if(Eki(r))return!1;let i=r.exec(e);return i!==null&&i.index===0}else if(typeof r==="function")return r(e,0,[],{});else if(Object.hasOwn(r,"exec"))return r.exec(e,0,[],{});else if(typeof r==="string")return r===e;else throw Error("non exhaustive match")}function _ki(e){return[".","\\","[","]","|","^","$","(",")","?","*","+","{"].find((i)=>e.source.indexOf(i)!==-1)===void 0}function Eki(e){return/(\(\?=)|(\(\?!)|(\(\?<=)|(\(\? property in its definition +`,type:Tf.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE});if(!Object.hasOwn(e,x3e))a.push({message:"A MultiMode Lexer cannot be initialized without a <"+x3e+`> property in its definition +`,type:Tf.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY});if(Object.hasOwn(e,x3e)&&Object.hasOwn(e,gW)&&!Object.hasOwn(e.modes,e.defaultMode))a.push({message:`A MultiMode Lexer cannot be initialized with a ${gW}: <${e.defaultMode}>which does not exist +`,type:Tf.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST});if(Object.hasOwn(e,x3e))Object.keys(e.modes).forEach((o)=>{let l=e.modes[o];l.forEach((h,d)=>{if(h===void 0)a.push({message:`A Lexer cannot be initialized using an undefined Token Type. Mode:<${o}> at index: <${d}> `,type:Tf.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED});else if(Object.hasOwn(h,"LONGER_ALT"))(Array.isArray(h.LONGER_ALT)?h.LONGER_ALT:[h.LONGER_ALT]).forEach((m)=>{if(m!==void 0&&!l.includes(m))a.push({message:`A MultiMode Lexer cannot be initialized with a longer_alt <${m.name}> on token <${h.name}> outside of mode <${o}> -`,type:Tf.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})});return a}function AQr(e,r,i){let a=[],o=!1,h=Object.values(e.modes||{}).flat().filter(Boolean).filter((p)=>p[IF]!==cp.NA),d=NQr(i);if(r)h.forEach((p)=>{let m=OQr(p,d);if(m!==!1){let E={message:bki(p,m),type:m.issue,tokenType:p};a.push(E)}else if(Object.hasOwn(p,"LINE_BREAKS")){if(p.LINE_BREAKS===!0)o=!0}else if(E3e(d,p.PATTERN))o=!0});if(r&&!o)a.push({message:`Warning: No LINE_BREAKS Found. +`,type:Tf.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE})})})});return a}function LQr(e,r,i){let a=[],o=!1,h=Object.values(e.modes||{}).flat().filter(Boolean).filter((p)=>p[NF]!==cp.NA),d=BQr(i);if(r)h.forEach((p)=>{let m=PQr(p,d);if(m!==!1){let v={message:Ski(p,m),type:m.issue,tokenType:p};a.push(v)}else if(Object.hasOwn(p,"LINE_BREAKS")){if(p.LINE_BREAKS===!0)o=!0}else if(T3e(d,p.PATTERN))o=!0});if(r&&!o)a.push({message:`Warning: No LINE_BREAKS Found. This Lexer has been defined to track line and column information, But none of the Token Types can be identified as matching a line terminator. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS - for details.`,type:Tf.NO_LINE_BREAKS_FLAGS});return a}function RQr(e){let r=e.PATTERN;if(r instanceof RegExp)return!1;else if(typeof r==="function")return!0;else if(Object.hasOwn(r,"exec"))return!0;else if(typeof r==="string")return!1;else throw Error("non exhaustive match")}function mki(e){if(typeof e==="string"&&e.length===1)return e.charCodeAt(0);else return!1}function OQr(e,r){if(Object.hasOwn(e,"LINE_BREAKS"))return!1;else if(e.PATTERN instanceof RegExp){try{E3e(r,e.PATTERN)}catch(i){return{issue:Tf.IDENTIFY_TERMINATOR,errMsg:i.message}}return!1}else if(typeof e.PATTERN==="string")return!1;else if(RQr(e))return{issue:Tf.CUSTOM_LINE_BREAK};else throw Error("non exhaustive match")}function bki(e,r){if(r.issue===Tf.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. + for details.`,type:Tf.NO_LINE_BREAKS_FLAGS});return a}function MQr(e){let r=e.PATTERN;if(r instanceof RegExp)return!1;else if(typeof r==="function")return!0;else if(Object.hasOwn(r,"exec"))return!0;else if(typeof r==="string")return!1;else throw Error("non exhaustive match")}function wki(e){if(typeof e==="string"&&e.length===1)return e.charCodeAt(0);else return!1}function PQr(e,r){if(Object.hasOwn(e,"LINE_BREAKS"))return!1;else if(e.PATTERN instanceof RegExp){try{T3e(r,e.PATTERN)}catch(i){return{issue:Tf.IDENTIFY_TERMINATOR,errMsg:i.message}}return!1}else if(typeof e.PATTERN==="string")return!1;else if(MQr(e))return{issue:Tf.CUSTOM_LINE_BREAK};else throw Error("non exhaustive match")}function Ski(e,r){if(r.issue===Tf.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern. The problem is in the <${e.name}> Token Type Root cause: ${r.errMsg}. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR`;else if(r.issue===Tf.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the option. The problem is in the <${e.name}> Token Type - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;else throw Error("non exhaustive match")}function NQr(e){return e.map((i)=>{if(typeof i==="string")return i.charCodeAt(0);else return i})}function S0t(e,r,i){if(e[r]===void 0)e[r]=[i];else e[r].push(i)}function aA(e){return e255?255+~~(e/255):e}}var IF="PATTERN",dW="defaultMode",w3e="modes",T3e=0,Foe=1,x3e=2,C3e=3,nki,ski,IQr,hW=256,S3e;var w0t=Re(()=>{b3e();$oe();lW();SQr();v3e();nki=/[^\\][$]/;ski=/[^\\[][\^]|^\^/;IQr={test:function(e){let r=e.length;for(let i=this.lastIndex;i{i.isParent=i.categoryMatches.length>0})}function vki(e){let r=[...e],i=e,a=!0;while(a){i=i.map((l)=>l.CATEGORIES).flat().filter(Boolean);let o=i.filter((l)=>!r.includes(l));if(r=r.concat(o),o.length===0)a=!1;else i=o}return r}function _ki(e){e.forEach((r)=>{if(!T0t(r))DQr[LQr]=r,r.tokenTypeIdx=LQr++;if(MQr(r)&&!Array.isArray(r.CATEGORIES))r.CATEGORIES=[r.CATEGORIES];if(!MQr(r))r.CATEGORIES=[];if(!Ski(r))r.categoryMatches=[];if(!Tki(r))r.categoryMatchesMap={}})}function Eki(e){e.forEach((r)=>{r.categoryMatches=[],Object.keys(r.categoryMatchesMap).forEach((i)=>{r.categoryMatches.push(DQr[i].tokenTypeIdx)})})}function wki(e){e.forEach((r)=>{PQr([],r)})}function PQr(e,r){e.forEach((i)=>{r.categoryMatchesMap[i.tokenTypeIdx]=!0}),r.CATEGORIES.forEach((i)=>{let a=e.concat(r);if(!a.includes(i))PQr(a,i)})}function T0t(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}function MQr(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"CATEGORIES")}function Ski(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatches")}function Tki(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatchesMap")}function BQr(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}var LQr=1,DQr;var OF=Re(()=>{DQr={}});var x0t;var C0t=Re(()=>{x0t={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,r,i,a,o,l){return`unexpected character: ->${e.charAt(r)}<- at offset: ${r}, skipped ${i} characters.`}}});class cp{constructor(e,r=Uoe){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(a,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let l=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${a}>`);let{time:h,value:d}=Noe(o),p=h>10?console.warn:console.log;if(this.traceInitIndent time: ${h}ms`);return this.traceInitIndent--,d}else return o()},typeof r==="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. -a boolean 2nd argument is no longer supported`);this.config=Object.assign({},Uoe,r);let i=this.config.traceInitPerf;if(i===!0)this.traceInitMaxIdent=1/0,this.traceInitPerf=!0;else if(typeof i==="number")this.traceInitMaxIdent=i,this.traceInitPerf=!0;this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let a,o=!0;if(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Uoe.lineTerminatorsPattern)this.config.lineTerminatorsPattern=IQr;else if(this.config.lineTerminatorCharacters===Uoe.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. - For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');if(this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e))a={modes:{defaultMode:[...e]},defaultMode:dW};else o=!1,a=Object.assign({},e)}),this.config.skipValidations===!1)this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(kQr(a,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(AQr(a,this.trackStartLines,this.config.lineTerminatorCharacters))});a.modes=a.modes?a.modes:{},Object.entries(a.modes).forEach(([h,d])=>{a.modes[h]=d.filter((p)=>p!==void 0)});let l=Object.keys(a.modes);if(Object.entries(a.modes).forEach(([h,d])=>{this.TRACE_INIT(`Mode: <${h}> processing`,()=>{if(this.modes.push(h),this.config.skipValidations===!1)this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(CQr(d,l))});if(this.lexerDefinitionErrors.length===0){BI(d);let p;this.TRACE_INIT("analyzeTokenTypes",()=>{p=xQr(d,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[h]=p.patternIdxToConfig,this.charCodeToPatternIdxToConfig[h]=p.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,p.emptyGroups),this.hasCustom=p.hasCustom||this.hasCustom,this.canModeBeOptimized[h]=p.canBeOptimized}})}),this.defaultMode=a.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let d=this.lexerDefinitionErrors.map((p)=>p.message).join(`----------------------- + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK`;else throw Error("non exhaustive match")}function BQr(e){return e.map((i)=>{if(typeof i==="string")return i.charCodeAt(0);else return i})}function C0t(e,r,i){if(e[r]===void 0)e[r]=[i];else e[r].push(i)}function sA(e){return e255?255+~~(e/255):e}}var NF="PATTERN",gW="defaultMode",x3e="modes",k3e=0,Goe=1,A3e=2,R3e=3,cki,dki,DQr,pW=256,C3e;var x0t=Re(()=>{_3e();zoe();hW();AQr();w3e();cki=/[^\\][$]/;dki=/[^\\[][\^]|^\^/;DQr={test:function(e){let r=e.length;for(let i=this.lastIndex;i{i.isParent=i.categoryMatches.length>0})}function xki(e){let r=[...e],i=e,a=!0;while(a){i=i.map((l)=>l.CATEGORIES).flat().filter(Boolean);let o=i.filter((l)=>!r.includes(l));if(r=r.concat(o),o.length===0)a=!1;else i=o}return r}function Cki(e){e.forEach((r)=>{if(!k0t(r))UQr[FQr]=r,r.tokenTypeIdx=FQr++;if($Qr(r)&&!Array.isArray(r.CATEGORIES))r.CATEGORIES=[r.CATEGORIES];if(!$Qr(r))r.CATEGORIES=[];if(!Rki(r))r.categoryMatches=[];if(!Iki(r))r.categoryMatchesMap={}})}function kki(e){e.forEach((r)=>{r.categoryMatches=[],Object.keys(r.categoryMatchesMap).forEach((i)=>{r.categoryMatches.push(UQr[i].tokenTypeIdx)})})}function Aki(e){e.forEach((r)=>{GQr([],r)})}function GQr(e,r){e.forEach((i)=>{r.categoryMatchesMap[i.tokenTypeIdx]=!0}),r.CATEGORIES.forEach((i)=>{let a=e.concat(r);if(!a.includes(i))GQr(a,i)})}function k0t(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}function $Qr(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"CATEGORIES")}function Rki(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatches")}function Iki(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"categoryMatchesMap")}function zQr(e){return Object.hasOwn(e!==null&&e!==void 0?e:{},"tokenTypeIdx")}var FQr=1,UQr;var LF=Re(()=>{UQr={}});var A0t;var R0t=Re(()=>{A0t={buildUnableToPopLexerModeMessage(e){return`Unable to pop Lexer Mode after encountering Token ->${e.image}<- The Mode Stack is empty`},buildUnexpectedCharactersMessage(e,r,i,a,o,l){return`unexpected character: ->${e.charAt(r)}<- at offset: ${r}, skipped ${i} characters.`}}});class cp{constructor(e,r=Voe){if(this.lexerDefinition=e,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.cachedGroupKeys=[],this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=(a,o)=>{if(this.traceInitPerf===!0){this.traceInitIndent++;let l=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${a}>`);let{time:h,value:d}=Doe(o),p=h>10?console.warn:console.log;if(this.traceInitIndent time: ${h}ms`);return this.traceInitIndent--,d}else return o()},typeof r==="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object. +a boolean 2nd argument is no longer supported`);this.config=Object.assign({},Voe,r);let i=this.config.traceInitPerf;if(i===!0)this.traceInitMaxIdent=1/0,this.traceInitPerf=!0;else if(typeof i==="number")this.traceInitMaxIdent=i,this.traceInitPerf=!0;this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",()=>{let a,o=!0;if(this.TRACE_INIT("Lexer Config handling",()=>{if(this.config.lineTerminatorsPattern===Voe.lineTerminatorsPattern)this.config.lineTerminatorsPattern=DQr;else if(this.config.lineTerminatorCharacters===Voe.lineTerminatorCharacters)throw Error(`Error: Missing property on the Lexer config. + For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(r.safeMode&&r.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');if(this.trackStartLines=/full|onlyStart/i.test(this.config.positionTracking),this.trackEndLines=/full/i.test(this.config.positionTracking),Array.isArray(e))a={modes:{defaultMode:[...e]},defaultMode:gW};else o=!1,a=Object.assign({},e)}),this.config.skipValidations===!1)this.TRACE_INIT("performRuntimeChecks",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(NQr(a,this.trackStartLines,this.config.lineTerminatorCharacters))}),this.TRACE_INIT("performWarningRuntimeChecks",()=>{this.lexerDefinitionWarning=this.lexerDefinitionWarning.concat(LQr(a,this.trackStartLines,this.config.lineTerminatorCharacters))});a.modes=a.modes?a.modes:{},Object.entries(a.modes).forEach(([h,d])=>{a.modes[h]=d.filter((p)=>p!==void 0)});let l=Object.keys(a.modes);if(Object.entries(a.modes).forEach(([h,d])=>{this.TRACE_INIT(`Mode: <${h}> processing`,()=>{if(this.modes.push(h),this.config.skipValidations===!1)this.TRACE_INIT("validatePatterns",()=>{this.lexerDefinitionErrors=this.lexerDefinitionErrors.concat(OQr(d,l))});if(this.lexerDefinitionErrors.length===0){UI(d);let p;this.TRACE_INIT("analyzeTokenTypes",()=>{p=IQr(d,{lineTerminatorCharacters:this.config.lineTerminatorCharacters,positionTracking:r.positionTracking,ensureOptimizations:r.ensureOptimizations,safeMode:r.safeMode,tracer:this.TRACE_INIT})}),this.patternIdxToConfig[h]=p.patternIdxToConfig,this.charCodeToPatternIdxToConfig[h]=p.charCodeToPatternIdxToConfig,this.emptyGroups=Object.assign({},this.emptyGroups,p.emptyGroups),this.hasCustom=p.hasCustom||this.hasCustom,this.canModeBeOptimized[h]=p.canBeOptimized}})}),this.defaultMode=a.defaultMode,this.cachedGroupKeys=Object.keys(this.emptyGroups),this.lexerDefinitionErrors.length>0&&!this.config.deferDefinitionErrorsHandling){let d=this.lexerDefinitionErrors.map((p)=>p.message).join(`----------------------- `);throw Error(`Errors detected in definition of Lexer: -`+d)}this.lexerDefinitionWarning.forEach((h)=>{Ooe(h.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(o)this.handleModes=()=>{};if(this.trackStartLines===!1)this.computeNewColumn=(h)=>h;if(this.trackEndLines===!1)this.updateTokenEndLineColumnLocation=()=>{};if(/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);if(this.hasCustom)this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom;else this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let h=Object.entries(this.canModeBeOptimized).reduce((d,[p,m])=>{if(m===!1)d.push(p);return d},[]);if(r.ensureOptimizations&&h.length>0)throw Error(`Lexer Modes: < ${h.join(", ")} > cannot be optimized. +`+d)}this.lexerDefinitionWarning.forEach((h)=>{Moe(h.message)}),this.TRACE_INIT("Choosing sub-methods implementations",()=>{if(o)this.handleModes=()=>{};if(this.trackStartLines===!1)this.computeNewColumn=(h)=>h;if(this.trackEndLines===!1)this.updateTokenEndLineColumnLocation=()=>{};if(/full/i.test(this.config.positionTracking))this.createTokenInstance=this.createFullToken;else if(/onlyStart/i.test(this.config.positionTracking))this.createTokenInstance=this.createStartOnlyToken;else if(/onlyOffset/i.test(this.config.positionTracking))this.createTokenInstance=this.createOffsetOnlyToken;else throw Error(`Invalid config option: "${this.config.positionTracking}"`);if(this.hasCustom)this.addToken=this.addTokenUsingPush,this.handlePayload=this.handlePayloadWithCustom;else this.addToken=this.addTokenUsingMemberAccess,this.handlePayload=this.handlePayloadNoCustom}),this.TRACE_INIT("Failed Optimization Warnings",()=>{let h=Object.entries(this.canModeBeOptimized).reduce((d,[p,m])=>{if(m===!1)d.push(p);return d},[]);if(r.ensureOptimizations&&h.length>0)throw Error(`Lexer Modes: < ${h.join(", ")} > cannot be optimized. Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. - Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{yQr()}),this.TRACE_INIT("toFastProperties",()=>{Loe(this)})})}tokenize(e,r=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let a=this.lexerDefinitionErrors.map((o)=>o.message).join(`----------------------- + Or inspect the console log for details on how to resolve these issues.`)}),this.TRACE_INIT("clearRegExpParserCache",()=>{SQr()}),this.TRACE_INIT("toFastProperties",()=>{Poe(this)})})}tokenize(e,r=this.defaultMode){if(this.lexerDefinitionErrors.length>0){let a=this.lexerDefinitionErrors.map((o)=>o.message).join(`----------------------- `);throw Error(`Unable to Tokenize because Errors detected in definition of Lexer: -`+a)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let i,a,o,l,h,d,p,m,y,E,w,T,x,k,A,R=e,N=R.length,L=0,B=0,D=this.hasCustom?0:Math.floor(e.length/10),P=Array(D),F=[],H=this.trackStartLines?1:void 0,K=this.trackStartLines?1:void 0,Q={};for(let he=0;he{if(W.length===1&&he.tokenType.PUSH_MODE===void 0){let ye=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(he);F.push({offset:he.startOffset,line:he.startLine,column:he.startColumn,length:he.image.length,message:ye})}else{W.pop();let ye=W.at(-1);te=this.patternIdxToConfig[ye],X=this.charCodeToPatternIdxToConfig[ye],j=te.length;let xe=this.canModeBeOptimized[ye]&&this.config.safeMode===!1;if(X&&xe)z=!0;else z=!1}};function ie(he){W.push(he),X=this.charCodeToPatternIdxToConfig[he],te=this.patternIdxToConfig[he],j=te.length;let ye=this.canModeBeOptimized[he]&&this.config.safeMode===!1;if(X&&ye)z=!0;else z=!1}ie.call(this,r);let le,se=this.config.recoveryEnabled;while(Ld.length){d=l,y=l.length,p=m,le=Ue;break}}}break}}if(y!==-1){if(E=le.group,E!==void 0)if(d=d!==null?d:e.substring(L,L+y),w=le.tokenTypeIdx,T=this.createTokenInstance(d,L,w,le.tokenType,H,K,y),this.handlePayload(T,p),E===!1)B=this.addToken(P,B,T);else Q[E].push(T);if(Z===!0&&le.canLineTerminator===!0){let Ie=0,Ee,Ue;Y.lastIndex=0;do if(d=d!==null?d:e.substring(L,L+y),Ee=Y.test(d),Ee===!0)Ue=Y.lastIndex-1,Ie++;while(Ee===!0);if(Ie!==0)H=H+Ie,K=y-Ue,this.updateTokenEndLineColumnLocation(T,E,Ue,Ie,H,K,y);else K=this.computeNewColumn(K,y)}else K=this.computeNewColumn(K,y);L=L+y,this.handleModes(le,ne,ie,T)}else{let Ie=L,Ee=H,Ue=K,Me=se===!1;while(Me===!1&&L{w0t();lW();OF();C0t();v3e();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Tf||(Tf={}));Uoe={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` -`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:x0t,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Uoe);cp.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";cp.NA=/NOT_APPLICABLE/});function NF(e){if(k0t(e))return e.LABEL;else return e.name}function k0t(e){return typeof e.LABEL==="string"&&e.LABEL!==""}function to(e){return Cki(e)}function Cki(e){let r=e.pattern,i={};if(i.name=e.name,r!==void 0)i.PATTERN=r;if(Object.hasOwn(e,xki))throw`The parent property is no longer supported. -See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;if(Object.hasOwn(e,FQr))i.CATEGORIES=e[FQr];if(BI([i]),Object.hasOwn(e,$Qr))i.LABEL=e[$Qr];if(Object.hasOwn(e,UQr))i.GROUP=e[UQr];if(Object.hasOwn(e,zQr))i.POP_MODE=e[zQr];if(Object.hasOwn(e,GQr))i.PUSH_MODE=e[GQr];if(Object.hasOwn(e,VQr))i.LONGER_ALT=e[VQr];if(Object.hasOwn(e,HQr))i.LINE_BREAKS=e[HQr];if(Object.hasOwn(e,qQr))i.START_CHARS_HINT=e[qQr];return i}function LF(e,r,i,a,o,l,h,d){return{image:r,startOffset:i,endOffset:a,startLine:o,endLine:l,startColumn:h,endColumn:d,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Goe(e,r){return PI(e,r)}var xki="parent",FQr="categories",$Qr="label",UQr="group",GQr="push_mode",zQr="pop_mode",VQr="longer_alt",HQr="line_breaks",qQr="start_chars_hint",_2;var MF=Re(()=>{$oe();OF();_2=to({name:"EOF",pattern:cp.NA});BI([_2])});var k3e,YQr,qC;var pW=Re(()=>{MF();Ov();k3e={buildMismatchTokenMessage({expected:e,actual:r,previous:i,ruleName:a}){return`Expecting ${k0t(e)?`--> ${NF(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${r.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:r}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:r,previous:i,customUserDescription:a,ruleName:o}){let d=` +`+a)}return this.tokenizeInternal(e,r)}tokenizeInternal(e,r){let i,a,o,l,h,d,p,m,y,v,w,T,x,k,A,R=e,N=R.length,L=0,B=0,D=this.hasCustom?0:Math.floor(e.length/10),P=Array(D),F=[],H=this.trackStartLines?1:void 0,W=this.trackStartLines?1:void 0,X={};for(let he=0;he{if(j.length===1&&he.tokenType.PUSH_MODE===void 0){let ye=this.config.errorMessageProvider.buildUnableToPopLexerModeMessage(he);F.push({offset:he.startOffset,line:he.startLine,column:he.startColumn,length:he.image.length,message:ye})}else{j.pop();let ye=j.at(-1);J=this.patternIdxToConfig[ye],Z=this.charCodeToPatternIdxToConfig[ye],K=J.length;let Se=this.canModeBeOptimized[ye]&&this.config.safeMode===!1;if(Z&&Se)z=!0;else z=!1}};function ie(he){j.push(he),Z=this.charCodeToPatternIdxToConfig[he],J=this.patternIdxToConfig[he],K=J.length;let ye=this.canModeBeOptimized[he]&&this.config.safeMode===!1;if(Z&&ye)z=!0;else z=!1}ie.call(this,r);let se,oe=this.config.recoveryEnabled;while(Ld.length){d=l,y=l.length,p=m,se=ze;break}}}break}}if(y!==-1){if(v=se.group,v!==void 0)if(d=d!==null?d:e.substring(L,L+y),w=se.tokenTypeIdx,T=this.createTokenInstance(d,L,w,se.tokenType,H,W,y),this.handlePayload(T,p),v===!1)B=this.addToken(P,B,T);else X[v].push(T);if(Q===!0&&se.canLineTerminator===!0){let Ie=0,Ee,ze;Y.lastIndex=0;do if(d=d!==null?d:e.substring(L,L+y),Ee=Y.test(d),Ee===!0)ze=Y.lastIndex-1,Ie++;while(Ee===!0);if(Ie!==0)H=H+Ie,W=y-ze,this.updateTokenEndLineColumnLocation(T,v,ze,Ie,H,W,y);else W=this.computeNewColumn(W,y)}else W=this.computeNewColumn(W,y);L=L+y,this.handleModes(se,ne,ie,T)}else{let Ie=L,Ee=H,ze=W,Me=oe===!1;while(Me===!1&&L{x0t();hW();LF();R0t();w3e();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK",e[e.MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE=17]="MULTI_MODE_LEXER_LONGER_ALT_NOT_IN_CURRENT_MODE"})(Tf||(Tf={}));Voe={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[` +`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:A0t,traceInitPerf:!1,skipValidations:!1,recoveryEnabled:!0};Object.freeze(Voe);cp.SKIPPED="This marks a skipped Token pattern, this means each token identified by it will be consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.";cp.NA=/NOT_APPLICABLE/});function MF(e){if(I0t(e))return e.LABEL;else return e.name}function I0t(e){return typeof e.LABEL==="string"&&e.LABEL!==""}function to(e){return Nki(e)}function Nki(e){let r=e.pattern,i={};if(i.name=e.name,r!==void 0)i.PATTERN=r;if(Object.hasOwn(e,Oki))throw`The parent property is no longer supported. +See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`;if(Object.hasOwn(e,VQr))i.CATEGORIES=e[VQr];if(UI([i]),Object.hasOwn(e,HQr))i.LABEL=e[HQr];if(Object.hasOwn(e,qQr))i.GROUP=e[qQr];if(Object.hasOwn(e,WQr))i.POP_MODE=e[WQr];if(Object.hasOwn(e,YQr))i.PUSH_MODE=e[YQr];if(Object.hasOwn(e,jQr))i.LONGER_ALT=e[jQr];if(Object.hasOwn(e,KQr))i.LINE_BREAKS=e[KQr];if(Object.hasOwn(e,XQr))i.START_CHARS_HINT=e[XQr];return i}function DF(e,r,i,a,o,l,h,d){return{image:r,startOffset:i,endOffset:a,startLine:o,endLine:l,startColumn:h,endColumn:d,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function Hoe(e,r){return $I(e,r)}var Oki="parent",VQr="categories",HQr="label",qQr="group",YQr="push_mode",WQr="pop_mode",jQr="longer_alt",KQr="line_breaks",XQr="start_chars_hint",_2;var PF=Re(()=>{zoe();LF();_2=to({name:"EOF",pattern:cp.NA});UI([_2])});var I3e,QQr,WC;var bW=Re(()=>{PF();Ov();I3e={buildMismatchTokenMessage({expected:e,actual:r,previous:i,ruleName:a}){return`Expecting ${I0t(e)?`--> ${MF(e)} <--`:`token of type --> ${e.name} <--`} but found --> '${r.image}' <--`},buildNotAllInputParsedMessage({firstRedundant:e,ruleName:r}){return"Redundant input, expecting EOF but found: "+e.image},buildNoViableAltMessage({expectedPathsPerAlt:e,actual:r,previous:i,customUserDescription:a,ruleName:o}){let d=` but found: '`+r[0].image+"'";if(a)return"Expecting: "+a+d;else return`Expecting: one of these possible Token sequences: -${e.reduce((w,T)=>w.concat(T),[]).map((w)=>`[${w.map((T)=>NF(T)).join(", ")}]`).map((w,T)=>` ${T+1}. ${w}`).join(` +${e.reduce((w,T)=>w.concat(T),[]).map((w)=>`[${w.map((T)=>MF(T)).join(", ")}]`).map((w,T)=>` ${T+1}. ${w}`).join(` `)}`+d},buildEarlyExitMessage({expectedIterationPaths:e,actual:r,customUserDescription:i,ruleName:a}){let h=` but found: '`+r[0].image+"'";if(i)return"Expecting: "+i+h;else return`Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: - <${e.map((m)=>`[${m.map((y)=>NF(y)).join(",")}]`).join(" ,")}>`+h}};Object.freeze(k3e);YQr={buildRuleNotFoundError(e,r){return"Invalid grammar, reference to a rule which is not defined: ->"+r.nonTerminalName+`<- -inside top level rule: ->`+e.name+"<-"}},qC={buildDuplicateFoundError(e,r){function i(y){if(y instanceof tu)return y.terminalType.name;else if(y instanceof Gd)return y.nonTerminalName;else return""}let a=e.name,o=r[0],l=o.idx,h=v2(o),d=i(o),p=l>0,m=`->${h}${p?l:""}<- ${d?`with argument: ->${d}<-`:""} + <${e.map((m)=>`[${m.map((y)=>MF(y)).join(",")}]`).join(" ,")}>`+h}};Object.freeze(I3e);QQr={buildRuleNotFoundError(e,r){return"Invalid grammar, reference to a rule which is not defined: ->"+r.nonTerminalName+`<- +inside top level rule: ->`+e.name+"<-"}},WC={buildDuplicateFoundError(e,r){function i(y){if(y instanceof tu)return y.terminalType.name;else if(y instanceof Gd)return y.nonTerminalName;else return""}let a=e.name,o=r[0],l=o.idx,h=v2(o),d=i(o),p=l>0,m=`->${h}${p?l:""}<- ${d?`with argument: ->${d}<-`:""} appears more than once (${r.length} times) in the top level rule: ->${a}<-. For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES `;return m=m.replace(/[ \t]+/g," "),m=m.replace(/\s\s+/g,` @@ -3777,14 +3777,14 @@ inside top level rule: ->`+e.name+"<-"}},qC={buildDuplicateFoundError(e,r){funct The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <${e.name}>. To resolve this make sure each Terminal and Non-Terminal names are unique This is easy to accomplish by using the convention that Terminal names start with an uppercase letter -and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let r=e.prefixPath.map((o)=>NF(o)).join(", "),i=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix +and Non-Terminal names start with a lower case letter.`},buildAlternationPrefixAmbiguityError(e){let r=e.prefixPath.map((o)=>MF(o)).join(", "),i=e.alternation.idx===0?"":e.alternation.idx;return`Ambiguous alternatives: <${e.ambiguityIndices.join(" ,")}> due to common lookahead prefix in inside <${e.topLevelRule.name}> Rule, <${r}> may appears as a prefix path in all these alternatives. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX For Further details.`},buildAlternationAmbiguityError(e){let r=e.alternation.idx===0?"":e.alternation.idx,i=e.prefixPath.length===0,a=`Ambiguous Alternatives Detected: <${e.ambiguityIndices.join(" ,")}> in inside <${e.topLevelRule.name}> Rule, `;if(i)a+=`These alternatives are all empty (match no tokens), making them indistinguishable. Only the last alternative may be empty. -`;else{let o=e.prefixPath.map((l)=>NF(l)).join(", ");a+=`<${o}> may appears as a prefix path in all these alternatives. +`;else{let o=e.prefixPath.map((l)=>MF(l)).join(", ");a+=`<${o}> may appears as a prefix path in all these alternatives. `}return a+=`See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`,a},buildEmptyRepetitionError(e){let r=v2(e.repetition);if(e.repetition.idx!==0)r+=e.repetition.idx;return`The repetition <${r}> within Rule <${e.topLevelRule.name}> can never consume any tokens. This could lead to an infinite loop.`},buildTokenNameError(e){return"deprecated"},buildEmptyAlternationError(e){return`Ambiguous empty alternative: <${e.emptyChoiceIdx+1}> in inside <${e.topLevelRule.name}> Rule. @@ -3795,46 +3795,46 @@ rule: <${r}> can be invoked from itself (directly or indirectly) without consuming any Tokens. The grammar path that causes this is: ${a} To fix this refactor your grammar to remove the left recursion. -see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let r;if(e.topLevelRule instanceof b2)r=e.topLevelRule.name;else r=e.topLevelRule;return`Duplicate definition, rule: ->${r}<- is already defined in the grammar: ->${e.grammarName}<-`}}});function WQr(e,r){let i=new jQr(e,r);return i.resolveRefs(),i.errors}var jQr;var KQr=Re(()=>{E2();Ov();jQr=class jQr extends y2{constructor(e,r){super();this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach((e)=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(!r){let i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:i,type:fm.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}else e.referencedRule=r}}});function I3e(e,r,i=[]){i=[...i];let a=[],o=0;function l(d){return d.concat(e.slice(o+1))}function h(d){let p=I3e(l(d),r,i);return a.concat(p)}while(i.length{if(p.definition.length!==0)a=h(p.definition)}),a;else if(d instanceof tu)i.push(d.terminalType);else throw Error("non exhaustive match");o++}return a.push({partialPath:i,suffixDef:e.slice(o)}),a}function QQr(e,r,i,a){let l=["EXIT_NONE_TERMINAL"],h="EXIT_ALTERNATIVE",d=!1,p=r.length,m=p-a-1,y=[],E=[];E.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});while(E.length!==0){let w=E.pop();if(w==="EXIT_ALTERNATIVE"){if(d&&E.at(-1).idx<=m)E.pop();continue}let{def:T,idx:x,ruleStack:k,occurrenceStack:A}=w;if(T.length===0)continue;let R=T[0];if(R==="EXIT_NONE_TERMINAL"){let N={idx:x,def:T.slice(1),ruleStack:k.slice(0,-1),occurrenceStack:A.slice(0,-1)};E.push(N)}else if(R instanceof tu)if(x=0;N--){let L=R.definition[N],B={idx:x,def:L.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A};E.push(B),E.push("EXIT_ALTERNATIVE")}else if(R instanceof zd)E.push({idx:x,def:R.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A});else if(R instanceof b2)E.push(kki(R,x,k,A));else throw Error("non exhaustive match")}return y}function kki(e,r,i,a){let o=[...i];o.push(e.name);let l=[...a];return l.push(1),{idx:r,def:e.definition,ruleStack:o,occurrenceStack:l}}var XQr,A0t,zoe,R0t,A3e,I0t,R3e;var Voe=Re(()=>{b0t();d3e();Ov();XQr=class XQr extends nM{constructor(e,r){super();this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){if(!this.found)super.walk(e,r)}walkProdRef(e,r,i){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let a=r.concat(i);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){if(this.ruleStack.length===0)this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0;else this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop()}};A0t=class A0t extends XQr{constructor(e,r){super(e,r);this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,i){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let a=r.concat(i),o=new zd({definition:a});this.possibleTokTypes=CF(o),this.found=!0}}};zoe=class zoe extends nM{constructor(e,r){super();this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}};R0t=class R0t extends zoe{walkMany(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkMany(e,r,i)}};A3e=class A3e extends zoe{walkManySep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkManySep(e,r,i)}};I0t=class I0t extends zoe{walkAtLeastOne(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOne(e,r,i)}};R3e=class R3e extends zoe{walkAtLeastOneSep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOneSep(e,r,i)}}});function O3e(e){if(e instanceof Sf||e==="Option")return up.OPTION;else if(e instanceof xh||e==="Repetition")return up.REPETITION;else if(e instanceof bg||e==="RepetitionMandatory")return up.REPETITION_MANDATORY;else if(e instanceof yg||e==="RepetitionMandatoryWithSeparator")return up.REPETITION_MANDATORY_WITH_SEPARATOR;else if(e instanceof B0||e==="RepetitionWithSeparator")return up.REPETITION_WITH_SEPARATOR;else if(e instanceof F0||e==="Alternation")return up.ALTERNATION;else throw Error("non exhaustive match")}function JQr(e,r,i,a,o,l){let h=Hoe(e,r,i),d=sZr(h)?fW:PI;return l(h,a,d,o)}function eZr(e,r,i,a,o,l){let h=qoe(e,r,o,i),d=sZr(h)?fW:PI;return l(h[0],d,a)}function tZr(e,r,i,a){let o=e.length,l=e.every((h)=>h.every((d)=>d.length===1));if(r)return function(h){let d=h.map((p)=>p.GATE);for(let p=0;pp.flat()).reduce((p,m,y)=>(m.forEach((E)=>{if(!(E.tokenTypeIdx in p))p[E.tokenTypeIdx]=y;E.categoryMatches.forEach((w)=>{if(!Object.hasOwn(p,w))p[w]=y})}),p),{});return function(){let p=this.LA_FAST(1);return d[p.tokenTypeIdx]}}else return function(){for(let h=0;hl.length===1),o=e.length;if(a&&!i){let l=e.flat();if(l.length===1&&l[0].categoryMatches.length===0){let d=l[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===d}}else{let h=l.reduce((d,p,m)=>(d[p.tokenTypeIdx]=!0,p.categoryMatches.forEach((y)=>{d[y]=!0}),d),[]);return function(){let d=this.LA_FAST(1);return h[d.tokenTypeIdx]===!0}}}else return function(){e:for(let l=0;lI3e([h],1)),a=ZQr(i.length),o=i.map((h)=>{let d={};return h.forEach((p)=>{O0t(p.partialPath).forEach((y)=>{d[y]=!0})}),d}),l=i;for(let h=1;h<=r;h++){let d=l;l=ZQr(d.length);for(let p=0;p{O0t(A.partialPath).forEach((N)=>{o[p][N]=!0})})}}}}return a}function Hoe(e,r,i,a){let o=new N0t(e,up.ALTERNATION,a);return r.accept(o),iZr(o.result,i)}function qoe(e,r,i,a){let o=new N0t(e,i);r.accept(o);let l=o.result,d=new nZr(r,e,i).startWalking(),p=new zd({definition:l}),m=new zd({definition:d});return iZr([p,m],a)}function N3e(e,r){e:for(let i=0;i{let o=r[a];return i===o||o.categoryMatchesMap[i.tokenTypeIdx]})}function sZr(e){return e.every((r)=>r.every((i)=>i.every((a)=>a.categoryMatches.length===0)))}var up,nZr,N0t;var gW=Re(()=>{Voe();d3e();OF();Ov();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(up||(up={}));nZr=class nZr extends nM{constructor(e,r,i){super();this.topProd=e,this.targetOccurrence=r,this.targetProdType=i}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,i,a){if(e.idx===this.targetOccurrence&&this.targetProdType===r)return this.restDef=i.concat(a),!0;return!1}walkOption(e,r,i){if(!this.checkIsTarget(e,up.OPTION,r,i))super.walkOption(e,r,i)}walkAtLeastOne(e,r,i){if(!this.checkIsTarget(e,up.REPETITION_MANDATORY,r,i))super.walkOption(e,r,i)}walkAtLeastOneSep(e,r,i){if(!this.checkIsTarget(e,up.REPETITION_MANDATORY_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}walkMany(e,r,i){if(!this.checkIsTarget(e,up.REPETITION,r,i))super.walkOption(e,r,i)}walkManySep(e,r,i){if(!this.checkIsTarget(e,up.REPETITION_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}};N0t=class N0t extends y2{constructor(e,r,i){super();this.targetOccurrence=e,this.targetProdType=r,this.targetRef=i,this.result=[]}checkIsTarget(e,r){if(e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef))this.result=e.definition}visitOption(e){this.checkIsTarget(e,up.OPTION)}visitRepetition(e){this.checkIsTarget(e,up.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,up.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,up.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,up.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,up.ALTERNATION)}}});function oZr(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map((i)=>Object.assign({type:fm.CUSTOM_LOOKAHEAD_VALIDATION},i))}function lZr(e,r,i,a){let o=e.flatMap((p)=>Rki(p,i)),l=Dki(e,r,i),h=e.flatMap((p)=>Nki(p,i)),d=e.flatMap((p)=>Oki(p,e,a,i));return o.concat(l,h,d)}function Rki(e,r){let i=new uZr;e.accept(i);let a=i.allProductions,o=Object.groupBy(a,Iki),l=Object.fromEntries(Object.entries(o).filter(([d,p])=>p.length>1));return Object.values(l).map((d)=>{let p=d[0],m=r.buildDuplicateFoundError(e,d),y=v2(p),E={message:m,type:fm.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:y,occurrence:p.idx},w=cZr(p);if(w)E.parameter=w;return E})}function Iki(e){return`${v2(e)}_#_${e.idx}_#_${cZr(e)}`}function cZr(e){if(e instanceof tu)return e.terminalType.name;else if(e instanceof Gd)return e.nonTerminalName;else return""}function Oki(e,r,i,a){let o=[];if(r.reduce((h,d)=>{if(d.name===e.name)return h+1;return h},0)>1){let h=a.buildDuplicateRuleNameError({topLevelRule:e,grammarName:i});o.push({message:h,type:fm.DUPLICATE_RULE_NAME,ruleName:e.name})}return o}function hZr(e,r,i){let a=[],o;if(!r.includes(e))o=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${i}<-as it is not defined in any of the super grammars `,a.push({message:o,type:fm.INVALID_RULE_OVERRIDE,ruleName:e});return a}function L0t(e,r,i,a=[]){let o=[],l=L3e(r.definition);if(l.length===0)return[];else{let h=e.name;if(l.includes(e))o.push({message:i.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:a}),type:fm.LEFT_RECURSION,ruleName:h});let p=a.concat([e]),y=l.filter((E)=>!p.includes(E)).flatMap((E)=>{let w=[...a];return w.push(E),L0t(e,E,i,w)});return o.concat(y)}}function L3e(e){let r=[];if(e.length===0)return r;let i=e[0];if(i instanceof Gd)r.push(i.referencedRule);else if(i instanceof zd||i instanceof Sf||i instanceof bg||i instanceof yg||i instanceof B0||i instanceof xh)r=r.concat(L3e(i.definition));else if(i instanceof F0)r=i.definition.map((l)=>L3e(l.definition)).flat();else if(i instanceof tu);else throw Error("non exhaustive match");let a=xF(i),o=e.length>1;if(a&&o){let l=e.slice(1);return r.concat(L3e(l))}else return r}function dZr(e,r){let i=new M3e;return e.accept(i),i.alternations.flatMap((l)=>l.definition.slice(0,-1).flatMap((d,p)=>{if(QQr([d],[],PI,1).length===0)return[{message:r.buildEmptyAlternationError({topLevelRule:e,alternation:l,emptyChoiceIdx:p}),type:fm.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:l.idx,alternative:p+1}];else return[]}))}function fZr(e,r,i){let a=new M3e;e.accept(a);let o=a.alternations;return o=o.filter((h)=>h.ignoreAmbiguities!==!0),o.flatMap((h)=>{let d=h.idx,p=h.maxLookahead||r,m=Hoe(d,e,p,h),y=Lki(m,h,e,i),E=Mki(m,h,e,i);return y.concat(E)})}function Nki(e,r){let i=new M3e;return e.accept(i),i.alternations.flatMap((l)=>{if(l.definition.length>255)return[{message:r.buildTooManyAlternativesError({topLevelRule:e,alternation:l}),type:fm.TOO_MANY_ALTS,ruleName:e.name,occurrence:l.idx}];else return[]})}function gZr(e,r,i){let a=[];return e.forEach((o)=>{let l=new pZr;o.accept(l),l.allProductions.forEach((d)=>{let p=O3e(d),m=d.maxLookahead||r,y=d.idx;if(qoe(y,o,p,m)[0].flat().length===0){let T=i.buildEmptyRepetitionError({topLevelRule:o,repetition:d});a.push({message:T,type:fm.NO_NON_EMPTY_LOOKAHEAD,ruleName:o.name})}})}),a}function Lki(e,r,i,a){let o=[];return e.reduce((d,p,m)=>{if(r.definition[m].ignoreAmbiguities===!0)return d;return p.forEach((y)=>{let E=[m];if(e.forEach((w,T)=>{if(m!==T&&N3e(w,y)&&r.definition[T].ignoreAmbiguities!==!0)E.push(T)}),E.length>1&&!N3e(o,y))o.push(y),d.push({alts:E,path:y})}),d},[]).map((d)=>{let p=d.alts.map((y)=>y+1);return{message:a.buildAlternationAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:p,prefixPath:d.path}),type:fm.AMBIGUOUS_ALTS,ruleName:i.name,occurrence:r.idx,alternatives:d.alts}})}function Mki(e,r,i,a){let o=e.reduce((h,d,p)=>{let m=d.map((y)=>({idx:p,path:y}));return h.concat(m)},[]);return o.flatMap((h)=>{if(r.definition[h.idx].ignoreAmbiguities===!0)return[];let{idx:p,path:m}=h;return o.filter((w)=>r.definition[w.idx].ignoreAmbiguities!==!0&&w.idx{let T=[w.idx+1,p+1],x=r.idx===0?"":r.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:T,prefixPath:w.path}),type:fm.AMBIGUOUS_PREFIX_ALTS,ruleName:i.name,occurrence:x,alternatives:T}})})}function Dki(e,r,i){let a=[],o=r.map((l)=>l.name);return e.forEach((l)=>{let h=l.name;if(o.includes(h)){let d=i.buildNamespaceConflictError(l);a.push({message:d,type:fm.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),a}var uZr,M3e,pZr;var Yoe=Re(()=>{E2();Ov();gW();Voe();OF();uZr=class uZr extends y2{constructor(){super(...arguments);this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};M3e=class M3e extends y2{constructor(){super(...arguments);this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};pZr=class pZr extends y2{constructor(){super(...arguments);this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}});function mZr(e){let r=Object.assign({errMsgProvider:YQr},e),i={};return e.rules.forEach((a)=>{i[a.name]=a}),WQr(i,r.errMsgProvider)}function bZr(e){var r;let i=(r=e.errMsgProvider)!==null&&r!==void 0?r:qC;return lZr(e.rules,e.tokenTypes,i,e.grammarName)}var yZr=Re(()=>{KQr();Yoe();pW()});function iM(e){return vZr.includes(e.name)}var vZr,Woe,mW,D3e,P3e,B3e;var bW=Re(()=>{vZr=["MismatchedTokenException","NoViableAltException","EarlyExitException","NotAllInputParsedException"];Object.freeze(vZr);Woe=class Woe extends Error{constructor(e,r){super(e);if(this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}};mW=class mW extends Woe{constructor(e,r,i){super(e,r);this.previousToken=i,this.name="MismatchedTokenException"}};D3e=class D3e extends Woe{constructor(e,r,i){super(e,r);this.previousToken=i,this.name="NoViableAltException"}};P3e=class P3e extends Woe{constructor(e,r){super(e,r);this.name="NotAllInputParsedException"}};B3e=class B3e extends Woe{constructor(e,r,i){super(e,r);this.previousToken=i,this.name="EarlyExitException"}}});class P0t{initRecoverable(e){if(this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,"recoveryEnabled")?e.recoveryEnabled:Nv.recoveryEnabled,this.recoveryEnabled)this.attemptInRepetitionRecovery=Pki}getTokenToInsert(e){let r=LF(e,"",-1,-1,-1,-1,-1,-1);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,i,a){let o=this.findReSyncTokenType(),l=this.exportLexerState(),h=[],d=!1,p=this.LA_FAST(1),m=this.LA_FAST(1),y=()=>{let E=this.LA(0),w=this.errorMessageProvider.buildMismatchTokenMessage({expected:a,actual:p,previous:E,ruleName:this.getCurrRuleFullName()}),T=new mW(w,p,this.LA(0));T.resyncedTokens=h.slice(0,-1),this.SAVE_ERROR(T)};while(!d)if(this.tokenMatcher(m,a)){y();return}else if(i.call(this)){y(),e.apply(this,r);return}else if(this.tokenMatcher(m,o))d=!0;else m=this.SKIP_TOKEN(),this.addToResyncTokens(m,h);this.importLexerState(l)}shouldInRepetitionRecoveryBeTried(e,r,i){if(i===!1)return!1;if(this.tokenMatcher(this.LA_FAST(1),e))return!1;if(this.isBackTracking())return!1;if(this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))return!1;return!0}getNextPossibleTokenTypes(e){let r=e.ruleStack[0],a=this.getGAstProductions()[r];return new A0t(a,e).startWalking()}getFollowsForInRuleRecovery(e,r){let i=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(i)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let i=this.SKIP_TOKEN();return this.consumeToken(),i}throw new _Zr("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(r.length===0)return!1;let i=this.LA_FAST(1);return r.find((o)=>this.tokenMatcher(i,o))!==void 0}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e))return!1;return this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let r=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(r).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),r=this.LA_FAST(1),i=2;while(!0){let a=e.find((o)=>Goe(r,o));if(a!==void 0)return a;r=this.LA(i),i++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return M0t;let e=this.currRuleShortName,r=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(i)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK,i=this.RULE_STACK_IDX+1,a=Array(i);for(let o=0;othis.getFollowSetFromFollowKey(r)).flat()}getFollowSetFromFollowKey(e){if(e===M0t)return[_2];let r=e.ruleName+e.idxInCallingRule+f3e+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){if(!this.tokenMatcher(e,_2))r.push(e);return r}reSyncTo(e){let r=[],i=this.LA_FAST(1);while(this.tokenMatcher(i,e)===!1)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,r);return r.slice(0,-1)}attemptInRepetitionRecovery(e,r,i,a,o,l,h){}getCurrentGrammarPath(e,r){let i=this.getHumanReadableRuleStack(),a=this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1);return{ruleStack:i,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,r=Array(e);for(let i=0;i{MF();Voe();bW();E2();M0t={};_Zr=class _Zr extends Error{constructor(e){super(e);this.name=D0t}}});var F3e=256,$3e=512,joe=768,Koe=1024,Xoe=1280,yW=1536;class U3e{constructor(e){var r;this.maxLookahead=(r=e===null||e===void 0?void 0:e.maxLookahead)!==null&&r!==void 0?r:Nv.maxLookahead}validate(e){let r=this.validateNoLeftRecursion(e.rules);if(r.length===0){let i=this.validateEmptyOrAlternatives(e.rules),a=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),o=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...r,...i,...a,...o]}return r}validateNoLeftRecursion(e){return e.flatMap((r)=>L0t(r,r,qC))}validateEmptyOrAlternatives(e){return e.flatMap((r)=>dZr(r,qC))}validateAmbiguousAlternationAlternatives(e,r){return e.flatMap((i)=>fZr(i,r,qC))}validateSomeNonEmptyLookaheadPath(e,r){return gZr(e,r,qC)}buildLookaheadForAlternation(e){return JQr(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,tZr)}buildLookaheadForOptional(e){return eZr(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,O3e(e.prodType),rZr)}}var F0t=Re(()=>{pW();E2();Yoe();gW()});class $0t{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Nv.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,"maxLookahead")?e.maxLookahead:Nv.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,"lookaheadStrategy")?e.lookaheadStrategy:new U3e({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach((r)=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:i,repetition:a,option:o,repetitionMandatory:l,repetitionMandatoryWithSeparator:h,repetitionWithSeparator:d}=Bki(r);i.forEach((p)=>{let m=p.idx===0?"":p.idx;this.TRACE_INIT(`${v2(p)}${m}`,()=>{let y=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:p.idx,rule:r,maxLookahead:p.maxLookahead||this.maxLookahead,hasPredicates:p.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[r.name],F3e|p.idx,y)})}),a.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,joe,"Repetition",p.maxLookahead,v2(p))}),o.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,$3e,"Option",p.maxLookahead,v2(p))}),l.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Koe,"RepetitionMandatory",p.maxLookahead,v2(p))}),h.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,yW,"RepetitionMandatoryWithSeparator",p.maxLookahead,v2(p))}),d.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Xoe,"RepetitionWithSeparator",p.maxLookahead,v2(p))})})})}computeLookaheadFunc(e,r,i,a,o,l){this.TRACE_INIT(`${l}${r===0?"":r}`,()=>{let h=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a});this.setLaFuncCache(this.fullRuleNameToShort[e.name],i|r,h)})}setLaFuncCache(e,r,i){let a=this.lookAheadFuncsCache[e];if(a===void 0)a=[],this.lookAheadFuncsCache[e]=a;a[r]=i}}function Bki(e){G3e.reset(),e.accept(G3e);let r=G3e.dslMethods;return G3e.reset(),r}var EZr,G3e;var wZr=Re(()=>{E2();Ov();F0t();EZr=class EZr extends y2{constructor(){super(...arguments);this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};G3e=new EZr});function U0t(e,r){if(e.startOffset===-1)e.startOffset=r.startOffset,e.endOffset=r.endOffset;else if(e.endOffseth.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: +see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`},buildInvalidRuleNameError(e){return"deprecated"},buildDuplicateRuleNameError(e){let r;if(e.topLevelRule instanceof b2)r=e.topLevelRule.name;else r=e.topLevelRule;return`Duplicate definition, rule: ->${r}<- is already defined in the grammar: ->${e.grammarName}<-`}}});function ZQr(e,r){let i=new JQr(e,r);return i.resolveRefs(),i.errors}var JQr;var eZr=Re(()=>{E2();Ov();JQr=class JQr extends y2{constructor(e,r){super();this.nameToTopRule=e,this.errMsgProvider=r,this.errors=[]}resolveRefs(){Object.values(this.nameToTopRule).forEach((e)=>{this.currTopLevel=e,e.accept(this)})}visitNonTerminal(e){let r=this.nameToTopRule[e.nonTerminalName];if(!r){let i=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,e);this.errors.push({message:i,type:fm.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:e.nonTerminalName})}else e.referencedRule=r}}});function L3e(e,r,i=[]){i=[...i];let a=[],o=0;function l(d){return d.concat(e.slice(o+1))}function h(d){let p=L3e(l(d),r,i);return a.concat(p)}while(i.length{if(p.definition.length!==0)a=h(p.definition)}),a;else if(d instanceof tu)i.push(d.terminalType);else throw Error("non exhaustive match");o++}return a.push({partialPath:i,suffixDef:e.slice(o)}),a}function rZr(e,r,i,a){let l=["EXIT_NONE_TERMINAL"],h="EXIT_ALTERNATIVE",d=!1,p=r.length,m=p-a-1,y=[],v=[];v.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});while(v.length!==0){let w=v.pop();if(w==="EXIT_ALTERNATIVE"){if(d&&v.at(-1).idx<=m)v.pop();continue}let{def:T,idx:x,ruleStack:k,occurrenceStack:A}=w;if(T.length===0)continue;let R=T[0];if(R==="EXIT_NONE_TERMINAL"){let N={idx:x,def:T.slice(1),ruleStack:k.slice(0,-1),occurrenceStack:A.slice(0,-1)};v.push(N)}else if(R instanceof tu)if(x=0;N--){let L=R.definition[N],B={idx:x,def:L.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A};v.push(B),v.push("EXIT_ALTERNATIVE")}else if(R instanceof zd)v.push({idx:x,def:R.definition.concat(T.slice(1)),ruleStack:k,occurrenceStack:A});else if(R instanceof b2)v.push(Lki(R,x,k,A));else throw Error("non exhaustive match")}return y}function Lki(e,r,i,a){let o=[...i];o.push(e.name);let l=[...a];return l.push(1),{idx:r,def:e.definition,ruleStack:o,occurrenceStack:l}}var tZr,O0t,qoe,N0t,O3e,L0t,N3e;var Yoe=Re(()=>{_0t();g3e();Ov();tZr=class tZr extends aM{constructor(e,r){super();this.topProd=e,this.path=r,this.possibleTokTypes=[],this.nextProductionName="",this.nextProductionOccurrence=0,this.found=!1,this.isAtEndOfPath=!1}startWalking(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=[...this.path.ruleStack].reverse(),this.occurrenceStack=[...this.path.occurrenceStack].reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes}walk(e,r=[]){if(!this.found)super.walk(e,r)}walkProdRef(e,r,i){if(e.referencedRule.name===this.nextProductionName&&e.idx===this.nextProductionOccurrence){let a=r.concat(i);this.updateExpectedNext(),this.walk(e.referencedRule,a)}}updateExpectedNext(){if(this.ruleStack.length===0)this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0;else this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop()}};O0t=class O0t extends tZr{constructor(e,r){super(e,r);this.path=r,this.nextTerminalName="",this.nextTerminalOccurrence=0,this.nextTerminalName=this.path.lastTok.name,this.nextTerminalOccurrence=this.path.lastTokOccurrence}walkTerminal(e,r,i){if(this.isAtEndOfPath&&e.terminalType.name===this.nextTerminalName&&e.idx===this.nextTerminalOccurrence&&!this.found){let a=r.concat(i),o=new zd({definition:a});this.possibleTokTypes=AF(o),this.found=!0}}};qoe=class qoe extends aM{constructor(e,r){super();this.topRule=e,this.occurrence=r,this.result={token:void 0,occurrence:void 0,isEndOfRule:void 0}}startWalking(){return this.walk(this.topRule),this.result}};N0t=class N0t extends qoe{walkMany(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkMany(e,r,i)}};O3e=class O3e extends qoe{walkManySep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkManySep(e,r,i)}};L0t=class L0t extends qoe{walkAtLeastOne(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOne(e,r,i)}};N3e=class N3e extends qoe{walkAtLeastOneSep(e,r,i){if(e.idx===this.occurrence){let a=r.concat(i)[0];if(this.result.isEndOfRule=a===void 0,a instanceof tu)this.result.token=a.terminalType,this.result.occurrence=a.idx}else super.walkAtLeastOneSep(e,r,i)}}});function M3e(e){if(e instanceof Sf||e==="Option")return up.OPTION;else if(e instanceof xh||e==="Repetition")return up.REPETITION;else if(e instanceof bg||e==="RepetitionMandatory")return up.REPETITION_MANDATORY;else if(e instanceof yg||e==="RepetitionMandatoryWithSeparator")return up.REPETITION_MANDATORY_WITH_SEPARATOR;else if(e instanceof B0||e==="RepetitionWithSeparator")return up.REPETITION_WITH_SEPARATOR;else if(e instanceof F0||e==="Alternation")return up.ALTERNATION;else throw Error("non exhaustive match")}function iZr(e,r,i,a,o,l){let h=Woe(e,r,i),d=hZr(h)?mW:$I;return l(h,a,d,o)}function aZr(e,r,i,a,o,l){let h=joe(e,r,o,i),d=hZr(h)?mW:$I;return l(h[0],d,a)}function sZr(e,r,i,a){let o=e.length,l=e.every((h)=>h.every((d)=>d.length===1));if(r)return function(h){let d=h.map((p)=>p.GATE);for(let p=0;pp.flat()).reduce((p,m,y)=>(m.forEach((v)=>{if(!(v.tokenTypeIdx in p))p[v.tokenTypeIdx]=y;v.categoryMatches.forEach((w)=>{if(!Object.hasOwn(p,w))p[w]=y})}),p),{});return function(){let p=this.LA_FAST(1);return d[p.tokenTypeIdx]}}else return function(){for(let h=0;hl.length===1),o=e.length;if(a&&!i){let l=e.flat();if(l.length===1&&l[0].categoryMatches.length===0){let d=l[0].tokenTypeIdx;return function(){return this.LA_FAST(1).tokenTypeIdx===d}}else{let h=l.reduce((d,p,m)=>(d[p.tokenTypeIdx]=!0,p.categoryMatches.forEach((y)=>{d[y]=!0}),d),[]);return function(){let d=this.LA_FAST(1);return h[d.tokenTypeIdx]===!0}}}else return function(){e:for(let l=0;lL3e([h],1)),a=nZr(i.length),o=i.map((h)=>{let d={};return h.forEach((p)=>{M0t(p.partialPath).forEach((y)=>{d[y]=!0})}),d}),l=i;for(let h=1;h<=r;h++){let d=l;l=nZr(d.length);for(let p=0;p{M0t(A.partialPath).forEach((N)=>{o[p][N]=!0})})}}}}return a}function Woe(e,r,i,a){let o=new D0t(e,up.ALTERNATION,a);return r.accept(o),cZr(o.result,i)}function joe(e,r,i,a){let o=new D0t(e,i);r.accept(o);let l=o.result,d=new lZr(r,e,i).startWalking(),p=new zd({definition:l}),m=new zd({definition:d});return cZr([p,m],a)}function D3e(e,r){e:for(let i=0;i{let o=r[a];return i===o||o.categoryMatchesMap[i.tokenTypeIdx]})}function hZr(e){return e.every((r)=>r.every((i)=>i.every((a)=>a.categoryMatches.length===0)))}var up,lZr,D0t;var yW=Re(()=>{Yoe();g3e();LF();Ov();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(up||(up={}));lZr=class lZr extends aM{constructor(e,r,i){super();this.topProd=e,this.targetOccurrence=r,this.targetProdType=i}startWalking(){return this.walk(this.topProd),this.restDef}checkIsTarget(e,r,i,a){if(e.idx===this.targetOccurrence&&this.targetProdType===r)return this.restDef=i.concat(a),!0;return!1}walkOption(e,r,i){if(!this.checkIsTarget(e,up.OPTION,r,i))super.walkOption(e,r,i)}walkAtLeastOne(e,r,i){if(!this.checkIsTarget(e,up.REPETITION_MANDATORY,r,i))super.walkOption(e,r,i)}walkAtLeastOneSep(e,r,i){if(!this.checkIsTarget(e,up.REPETITION_MANDATORY_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}walkMany(e,r,i){if(!this.checkIsTarget(e,up.REPETITION,r,i))super.walkOption(e,r,i)}walkManySep(e,r,i){if(!this.checkIsTarget(e,up.REPETITION_WITH_SEPARATOR,r,i))super.walkOption(e,r,i)}};D0t=class D0t extends y2{constructor(e,r,i){super();this.targetOccurrence=e,this.targetProdType=r,this.targetRef=i,this.result=[]}checkIsTarget(e,r){if(e.idx===this.targetOccurrence&&this.targetProdType===r&&(this.targetRef===void 0||e===this.targetRef))this.result=e.definition}visitOption(e){this.checkIsTarget(e,up.OPTION)}visitRepetition(e){this.checkIsTarget(e,up.REPETITION)}visitRepetitionMandatory(e){this.checkIsTarget(e,up.REPETITION_MANDATORY)}visitRepetitionMandatoryWithSeparator(e){this.checkIsTarget(e,up.REPETITION_MANDATORY_WITH_SEPARATOR)}visitRepetitionWithSeparator(e){this.checkIsTarget(e,up.REPETITION_WITH_SEPARATOR)}visitAlternation(e){this.checkIsTarget(e,up.ALTERNATION)}}});function dZr(e){return e.lookaheadStrategy.validate({rules:e.rules,tokenTypes:e.tokenTypes,grammarName:e.grammarName}).map((i)=>Object.assign({type:fm.CUSTOM_LOOKAHEAD_VALIDATION},i))}function fZr(e,r,i,a){let o=e.flatMap((p)=>Dki(p,i)),l=Gki(e,r,i),h=e.flatMap((p)=>Fki(p,i)),d=e.flatMap((p)=>Bki(p,e,a,i));return o.concat(l,h,d)}function Dki(e,r){let i=new gZr;e.accept(i);let a=i.allProductions,o=Object.groupBy(a,Pki),l=Object.fromEntries(Object.entries(o).filter(([d,p])=>p.length>1));return Object.values(l).map((d)=>{let p=d[0],m=r.buildDuplicateFoundError(e,d),y=v2(p),v={message:m,type:fm.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:y,occurrence:p.idx},w=pZr(p);if(w)v.parameter=w;return v})}function Pki(e){return`${v2(e)}_#_${e.idx}_#_${pZr(e)}`}function pZr(e){if(e instanceof tu)return e.terminalType.name;else if(e instanceof Gd)return e.nonTerminalName;else return""}function Bki(e,r,i,a){let o=[];if(r.reduce((h,d)=>{if(d.name===e.name)return h+1;return h},0)>1){let h=a.buildDuplicateRuleNameError({topLevelRule:e,grammarName:i});o.push({message:h,type:fm.DUPLICATE_RULE_NAME,ruleName:e.name})}return o}function mZr(e,r,i){let a=[],o;if(!r.includes(e))o=`Invalid rule override, rule: ->${e}<- cannot be overridden in the grammar: ->${i}<-as it is not defined in any of the super grammars `,a.push({message:o,type:fm.INVALID_RULE_OVERRIDE,ruleName:e});return a}function P0t(e,r,i,a=[]){let o=[],l=P3e(r.definition);if(l.length===0)return[];else{let h=e.name;if(l.includes(e))o.push({message:i.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:a}),type:fm.LEFT_RECURSION,ruleName:h});let p=a.concat([e]),y=l.filter((v)=>!p.includes(v)).flatMap((v)=>{let w=[...a];return w.push(v),P0t(e,v,i,w)});return o.concat(y)}}function P3e(e){let r=[];if(e.length===0)return r;let i=e[0];if(i instanceof Gd)r.push(i.referencedRule);else if(i instanceof zd||i instanceof Sf||i instanceof bg||i instanceof yg||i instanceof B0||i instanceof xh)r=r.concat(P3e(i.definition));else if(i instanceof F0)r=i.definition.map((l)=>P3e(l.definition)).flat();else if(i instanceof tu);else throw Error("non exhaustive match");let a=kF(i),o=e.length>1;if(a&&o){let l=e.slice(1);return r.concat(P3e(l))}else return r}function bZr(e,r){let i=new B3e;return e.accept(i),i.alternations.flatMap((l)=>l.definition.slice(0,-1).flatMap((d,p)=>{if(rZr([d],[],$I,1).length===0)return[{message:r.buildEmptyAlternationError({topLevelRule:e,alternation:l,emptyChoiceIdx:p}),type:fm.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:l.idx,alternative:p+1}];else return[]}))}function yZr(e,r,i){let a=new B3e;e.accept(a);let o=a.alternations;return o=o.filter((h)=>h.ignoreAmbiguities!==!0),o.flatMap((h)=>{let d=h.idx,p=h.maxLookahead||r,m=Woe(d,e,p,h),y=$ki(m,h,e,i),v=Uki(m,h,e,i);return y.concat(v)})}function Fki(e,r){let i=new B3e;return e.accept(i),i.alternations.flatMap((l)=>{if(l.definition.length>255)return[{message:r.buildTooManyAlternativesError({topLevelRule:e,alternation:l}),type:fm.TOO_MANY_ALTS,ruleName:e.name,occurrence:l.idx}];else return[]})}function _Zr(e,r,i){let a=[];return e.forEach((o)=>{let l=new vZr;o.accept(l),l.allProductions.forEach((d)=>{let p=M3e(d),m=d.maxLookahead||r,y=d.idx;if(joe(y,o,p,m)[0].flat().length===0){let T=i.buildEmptyRepetitionError({topLevelRule:o,repetition:d});a.push({message:T,type:fm.NO_NON_EMPTY_LOOKAHEAD,ruleName:o.name})}})}),a}function $ki(e,r,i,a){let o=[];return e.reduce((d,p,m)=>{if(r.definition[m].ignoreAmbiguities===!0)return d;return p.forEach((y)=>{let v=[m];if(e.forEach((w,T)=>{if(m!==T&&D3e(w,y)&&r.definition[T].ignoreAmbiguities!==!0)v.push(T)}),v.length>1&&!D3e(o,y))o.push(y),d.push({alts:v,path:y})}),d},[]).map((d)=>{let p=d.alts.map((y)=>y+1);return{message:a.buildAlternationAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:p,prefixPath:d.path}),type:fm.AMBIGUOUS_ALTS,ruleName:i.name,occurrence:r.idx,alternatives:d.alts}})}function Uki(e,r,i,a){let o=e.reduce((h,d,p)=>{let m=d.map((y)=>({idx:p,path:y}));return h.concat(m)},[]);return o.flatMap((h)=>{if(r.definition[h.idx].ignoreAmbiguities===!0)return[];let{idx:p,path:m}=h;return o.filter((w)=>r.definition[w.idx].ignoreAmbiguities!==!0&&w.idx{let T=[w.idx+1,p+1],x=r.idx===0?"":r.idx;return{message:a.buildAlternationPrefixAmbiguityError({topLevelRule:i,alternation:r,ambiguityIndices:T,prefixPath:w.path}),type:fm.AMBIGUOUS_PREFIX_ALTS,ruleName:i.name,occurrence:x,alternatives:T}})})}function Gki(e,r,i){let a=[],o=r.map((l)=>l.name);return e.forEach((l)=>{let h=l.name;if(o.includes(h)){let d=i.buildNamespaceConflictError(l);a.push({message:d,type:fm.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:h})}}),a}var gZr,B3e,vZr;var Koe=Re(()=>{E2();Ov();yW();Yoe();LF();gZr=class gZr extends y2{constructor(){super(...arguments);this.allProductions=[]}visitNonTerminal(e){this.allProductions.push(e)}visitOption(e){this.allProductions.push(e)}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}visitAlternation(e){this.allProductions.push(e)}visitTerminal(e){this.allProductions.push(e)}};B3e=class B3e extends y2{constructor(){super(...arguments);this.alternations=[]}visitAlternation(e){this.alternations.push(e)}};vZr=class vZr extends y2{constructor(){super(...arguments);this.allProductions=[]}visitRepetitionWithSeparator(e){this.allProductions.push(e)}visitRepetitionMandatory(e){this.allProductions.push(e)}visitRepetitionMandatoryWithSeparator(e){this.allProductions.push(e)}visitRepetition(e){this.allProductions.push(e)}}});function EZr(e){let r=Object.assign({errMsgProvider:QQr},e),i={};return e.rules.forEach((a)=>{i[a.name]=a}),ZQr(i,r.errMsgProvider)}function wZr(e){var r;let i=(r=e.errMsgProvider)!==null&&r!==void 0?r:WC;return fZr(e.rules,e.tokenTypes,i,e.grammarName)}var SZr=Re(()=>{eZr();Koe();bW()});function sM(e){return TZr.includes(e.name)}var TZr,Xoe,vW,F3e,$3e,U3e;var _W=Re(()=>{TZr=["MismatchedTokenException","NoViableAltException","EarlyExitException","NotAllInputParsedException"];Object.freeze(TZr);Xoe=class Xoe extends Error{constructor(e,r){super(e);if(this.token=r,this.resyncedTokens=[],Object.setPrototypeOf(this,new.target.prototype),Error.captureStackTrace)Error.captureStackTrace(this,this.constructor)}};vW=class vW extends Xoe{constructor(e,r,i){super(e,r);this.previousToken=i,this.name="MismatchedTokenException"}};F3e=class F3e extends Xoe{constructor(e,r,i){super(e,r);this.previousToken=i,this.name="NoViableAltException"}};$3e=class $3e extends Xoe{constructor(e,r){super(e,r);this.name="NotAllInputParsedException"}};U3e=class U3e extends Xoe{constructor(e,r,i){super(e,r);this.previousToken=i,this.name="EarlyExitException"}}});class $0t{initRecoverable(e){if(this.firstAfterRepMap=[],this.resyncFollows={},this.recoveryEnabled=Object.hasOwn(e,"recoveryEnabled")?e.recoveryEnabled:Nv.recoveryEnabled,this.recoveryEnabled)this.attemptInRepetitionRecovery=zki}getTokenToInsert(e){let r=DF(e,"",-1,-1,-1,-1,-1,-1);return r.isInsertedInRecovery=!0,r}canTokenTypeBeInsertedInRecovery(e){return!0}canTokenTypeBeDeletedInRecovery(e){return!0}tryInRepetitionRecovery(e,r,i,a){let o=this.findReSyncTokenType(),l=this.exportLexerState(),h=[],d=!1,p=this.LA_FAST(1),m=this.LA_FAST(1),y=()=>{let v=this.LA(0),w=this.errorMessageProvider.buildMismatchTokenMessage({expected:a,actual:p,previous:v,ruleName:this.getCurrRuleFullName()}),T=new vW(w,p,this.LA(0));T.resyncedTokens=h.slice(0,-1),this.SAVE_ERROR(T)};while(!d)if(this.tokenMatcher(m,a)){y();return}else if(i.call(this)){y(),e.apply(this,r);return}else if(this.tokenMatcher(m,o))d=!0;else m=this.SKIP_TOKEN(),this.addToResyncTokens(m,h);this.importLexerState(l)}shouldInRepetitionRecoveryBeTried(e,r,i){if(i===!1)return!1;if(this.tokenMatcher(this.LA_FAST(1),e))return!1;if(this.isBackTracking())return!1;if(this.canPerformInRuleRecovery(e,this.getFollowsForInRuleRecovery(e,r)))return!1;return!0}getNextPossibleTokenTypes(e){let r=e.ruleStack[0],a=this.getGAstProductions()[r];return new O0t(a,e).startWalking()}getFollowsForInRuleRecovery(e,r){let i=this.getCurrentGrammarPath(e,r);return this.getNextPossibleTokenTypes(i)}tryInRuleRecovery(e,r){if(this.canRecoverWithSingleTokenInsertion(e,r))return this.getTokenToInsert(e);if(this.canRecoverWithSingleTokenDeletion(e)){let i=this.SKIP_TOKEN();return this.consumeToken(),i}throw new xZr("sad sad panda")}canPerformInRuleRecovery(e,r){return this.canRecoverWithSingleTokenInsertion(e,r)||this.canRecoverWithSingleTokenDeletion(e)}canRecoverWithSingleTokenInsertion(e,r){if(!this.canTokenTypeBeInsertedInRecovery(e))return!1;if(r.length===0)return!1;let i=this.LA_FAST(1);return r.find((o)=>this.tokenMatcher(i,o))!==void 0}canRecoverWithSingleTokenDeletion(e){if(!this.canTokenTypeBeDeletedInRecovery(e))return!1;return this.tokenMatcher(this.LA(2),e)}isInCurrentRuleReSyncSet(e){let r=this.getCurrFollowKey();return this.getFollowSetFromFollowKey(r).includes(e)}findReSyncTokenType(){let e=this.flattenFollowSet(),r=this.LA_FAST(1),i=2;while(!0){let a=e.find((o)=>Hoe(r,o));if(a!==void 0)return a;r=this.LA(i),i++}}getCurrFollowKey(){if(this.RULE_STACK_IDX===0)return B0t;let e=this.currRuleShortName,r=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(e),idxInCallingRule:r,inRule:this.shortRuleNameToFullName(i)}}buildFullFollowKeyStack(){let e=this.RULE_STACK,r=this.RULE_OCCURRENCE_STACK,i=this.RULE_STACK_IDX+1,a=Array(i);for(let o=0;othis.getFollowSetFromFollowKey(r)).flat()}getFollowSetFromFollowKey(e){if(e===B0t)return[_2];let r=e.ruleName+e.idxInCallingRule+m3e+e.inRule;return this.resyncFollows[r]}addToResyncTokens(e,r){if(!this.tokenMatcher(e,_2))r.push(e);return r}reSyncTo(e){let r=[],i=this.LA_FAST(1);while(this.tokenMatcher(i,e)===!1)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,r);return r.slice(0,-1)}attemptInRepetitionRecovery(e,r,i,a,o,l,h){}getCurrentGrammarPath(e,r){let i=this.getHumanReadableRuleStack(),a=this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1);return{ruleStack:i,occurrenceStack:a,lastTok:e,lastTokOccurrence:r}}getHumanReadableRuleStack(){let e=this.RULE_STACK_IDX+1,r=Array(e);for(let i=0;i{PF();Yoe();_W();E2();B0t={};xZr=class xZr extends Error{constructor(e){super(e);this.name=F0t}}});var G3e=256,z3e=512,Qoe=768,Zoe=1024,Joe=1280,EW=1536;class V3e{constructor(e){var r;this.maxLookahead=(r=e===null||e===void 0?void 0:e.maxLookahead)!==null&&r!==void 0?r:Nv.maxLookahead}validate(e){let r=this.validateNoLeftRecursion(e.rules);if(r.length===0){let i=this.validateEmptyOrAlternatives(e.rules),a=this.validateAmbiguousAlternationAlternatives(e.rules,this.maxLookahead),o=this.validateSomeNonEmptyLookaheadPath(e.rules,this.maxLookahead);return[...r,...i,...a,...o]}return r}validateNoLeftRecursion(e){return e.flatMap((r)=>P0t(r,r,WC))}validateEmptyOrAlternatives(e){return e.flatMap((r)=>bZr(r,WC))}validateAmbiguousAlternationAlternatives(e,r){return e.flatMap((i)=>yZr(i,r,WC))}validateSomeNonEmptyLookaheadPath(e,r){return _Zr(e,r,WC)}buildLookaheadForAlternation(e){return iZr(e.prodOccurrence,e.rule,e.maxLookahead,e.hasPredicates,e.dynamicTokensEnabled,sZr)}buildLookaheadForOptional(e){return aZr(e.prodOccurrence,e.rule,e.maxLookahead,e.dynamicTokensEnabled,M3e(e.prodType),oZr)}}var G0t=Re(()=>{bW();E2();Koe();yW()});class z0t{initLooksAhead(e){this.dynamicTokensEnabled=Object.hasOwn(e,"dynamicTokensEnabled")?e.dynamicTokensEnabled:Nv.dynamicTokensEnabled,this.maxLookahead=Object.hasOwn(e,"maxLookahead")?e.maxLookahead:Nv.maxLookahead,this.lookaheadStrategy=Object.hasOwn(e,"lookaheadStrategy")?e.lookaheadStrategy:new V3e({maxLookahead:this.maxLookahead}),this.lookAheadFuncsCache=[],this.currRuleLookaheadFuncs=[]}preComputeLookaheadFunctions(e){e.forEach((r)=>{this.TRACE_INIT(`${r.name} Rule Lookahead`,()=>{let{alternation:i,repetition:a,option:o,repetitionMandatory:l,repetitionMandatoryWithSeparator:h,repetitionWithSeparator:d}=Vki(r);i.forEach((p)=>{let m=p.idx===0?"":p.idx;this.TRACE_INIT(`${v2(p)}${m}`,()=>{let y=this.lookaheadStrategy.buildLookaheadForAlternation({prodOccurrence:p.idx,rule:r,maxLookahead:p.maxLookahead||this.maxLookahead,hasPredicates:p.hasPredicates,dynamicTokensEnabled:this.dynamicTokensEnabled});this.setLaFuncCache(this.fullRuleNameToShort[r.name],G3e|p.idx,y)})}),a.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Qoe,"Repetition",p.maxLookahead,v2(p))}),o.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,z3e,"Option",p.maxLookahead,v2(p))}),l.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Zoe,"RepetitionMandatory",p.maxLookahead,v2(p))}),h.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,EW,"RepetitionMandatoryWithSeparator",p.maxLookahead,v2(p))}),d.forEach((p)=>{this.computeLookaheadFunc(r,p.idx,Joe,"RepetitionWithSeparator",p.maxLookahead,v2(p))})})})}computeLookaheadFunc(e,r,i,a,o,l){this.TRACE_INIT(`${l}${r===0?"":r}`,()=>{let h=this.lookaheadStrategy.buildLookaheadForOptional({prodOccurrence:r,rule:e,maxLookahead:o||this.maxLookahead,dynamicTokensEnabled:this.dynamicTokensEnabled,prodType:a});this.setLaFuncCache(this.fullRuleNameToShort[e.name],i|r,h)})}setLaFuncCache(e,r,i){let a=this.lookAheadFuncsCache[e];if(a===void 0)a=[],this.lookAheadFuncsCache[e]=a;a[r]=i}}function Vki(e){H3e.reset(),e.accept(H3e);let r=H3e.dslMethods;return H3e.reset(),r}var CZr,H3e;var kZr=Re(()=>{E2();Ov();G0t();CZr=class CZr extends y2{constructor(){super(...arguments);this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}reset(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}}visitOption(e){this.dslMethods.option.push(e)}visitRepetitionWithSeparator(e){this.dslMethods.repetitionWithSeparator.push(e)}visitRepetitionMandatory(e){this.dslMethods.repetitionMandatory.push(e)}visitRepetitionMandatoryWithSeparator(e){this.dslMethods.repetitionMandatoryWithSeparator.push(e)}visitRepetition(e){this.dslMethods.repetition.push(e)}visitAlternation(e){this.dslMethods.alternation.push(e)}};H3e=new CZr});function V0t(e,r){if(e.startOffset===-1)e.startOffset=r.startOffset,e.endOffset=r.endOffset;else if(e.endOffseth.msg);throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: ${l.join(` `).replace(/\n/g,` - `)}`)}}};return i.prototype=a,i.prototype.constructor=i,i._RULE_NAMES=r,i}function CZr(e,r,i){let a=function(){};z0t(a,e+"BaseSemanticsWithDefaults");let o=Object.create(i.prototype);return r.forEach((l)=>{o[l]=Fki}),a.prototype=o,a.prototype.constructor=a,a}function $ki(e,r){return Uki(e,r)}function Uki(e,r){return r.filter((o)=>typeof e[o]==="function"===!1).map((o)=>({msg:`Missing visitor method: <${o}> on ${e.constructor.name} CST Visitor.`,type:V0t.MISSING_METHOD,methodName:o})).filter(Boolean)}var V0t;var kZr=Re(()=>{(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(V0t||(V0t={}))});class H0t{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,"nodeLocationTracking")?e.nodeLocationTracking:Nv.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=G0t,this.setNodeLocationFromNode=G0t,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular;else if(/onlyOffset/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=U0t,this.setNodeLocationFromNode=U0t,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular;else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let r=this.LA_FAST(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset,i.endLine=r.endLine,i.endColumn=r.endColumn;else i.startOffset=-1,i.startLine=-1,i.startColumn=-1}cstPostRuleOnlyOffset(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset;else i.startOffset=-1}cstPostTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];SZr(i,r,e),this.setNodeLocationFromToken(i.location,r)}cstPostNonTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];TZr(i,r,e),this.setNodeLocationFromNode(i.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=xZr(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=CZr(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}}var AZr=Re(()=>{kZr();E2()});class q0t{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){if(this.currIdx<=this.tokVectorLength-2)return this.consumeToken(),this.LA_FAST(1);else return FI}LA_FAST(e){let r=this.currIdx+e;return this.tokVector[r]}LA(e){let r=this.currIdx+e;if(r<0||this.tokVectorLength<=r)return FI;else return this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}}var RZr=Re(()=>{E2()});class Y0t{ACTION(e){return e.call(this)}consume(e,r,i){return this.consumeInternal(r,e,i)}subrule(e,r,i){return this.subruleInternal(r,e,i)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,i=vW){if(this.definedRulesNames.includes(e)){let l={message:qC.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:fm.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(l)}this.definedRulesNames.push(e);let a=this.defineRule(e,r,i);return this[e]=a,a}OVERRIDE_RULE(e,r,i=vW){let a=hZr(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);let o=this.defineRule(e,r,i);return this[e]=o,o}BACKTRACK(e,r){var i;let a=(i=e.coreRule)!==null&&i!==void 0?i:e;return function(){this.isBackTrackingStack.push(1);let o=this.saveRecogState();try{return a.apply(this,r),!0}catch(l){if(iM(l))return!1;else throw l}finally{this.reloadRecogState(o),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return u3e(Object.values(this.gastProductionsCache))}}var IZr=Re(()=>{bW();E2();pW();Yoe();Ov()});class W0t{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=fW,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. + `)}`)}}};return i.prototype=a,i.prototype.constructor=i,i._RULE_NAMES=r,i}function OZr(e,r,i){let a=function(){};q0t(a,e+"BaseSemanticsWithDefaults");let o=Object.create(i.prototype);return r.forEach((l)=>{o[l]=Hki}),a.prototype=o,a.prototype.constructor=a,a}function qki(e,r){return Yki(e,r)}function Yki(e,r){return r.filter((o)=>typeof e[o]==="function"===!1).map((o)=>({msg:`Missing visitor method: <${o}> on ${e.constructor.name} CST Visitor.`,type:Y0t.MISSING_METHOD,methodName:o})).filter(Boolean)}var Y0t;var NZr=Re(()=>{(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Y0t||(Y0t={}))});class W0t{initTreeBuilder(e){if(this.CST_STACK=[],this.outputCst=e.outputCst,this.nodeLocationTracking=Object.hasOwn(e,"nodeLocationTracking")?e.nodeLocationTracking:Nv.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=()=>{},this.cstFinallyStateUpdate=()=>{},this.cstPostTerminal=()=>{},this.cstPostNonTerminal=()=>{},this.cstPostRule=()=>{};else if(/full/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=H0t,this.setNodeLocationFromNode=H0t,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular;else if(/onlyOffset/i.test(this.nodeLocationTracking))if(this.recoveryEnabled)this.setNodeLocationFromToken=V0t,this.setNodeLocationFromNode=V0t,this.cstPostRule=()=>{},this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery;else this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular;else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=()=>{},this.setNodeLocationFromNode=()=>{},this.cstPostRule=()=>{},this.setInitialNodeLocation=()=>{};else throw Error(`Invalid config option: "${e.nodeLocationTracking}"`)}setInitialNodeLocationOnlyOffsetRecovery(e){e.location={startOffset:-1,endOffset:-1}}setInitialNodeLocationOnlyOffsetRegular(e){e.location={startOffset:this.LA_FAST(1).startOffset,endOffset:-1}}setInitialNodeLocationFullRecovery(e){e.location={startOffset:-1,startLine:-1,startColumn:-1,endOffset:-1,endLine:-1,endColumn:-1}}setInitialNodeLocationFullRegular(e){let r=this.LA_FAST(1);e.location={startOffset:r.startOffset,startLine:r.startLine,startColumn:r.startColumn,endOffset:-1,endLine:-1,endColumn:-1}}cstInvocationStateUpdate(e){let r={name:e,children:Object.create(null)};this.setInitialNodeLocation(r),this.CST_STACK.push(r)}cstFinallyStateUpdate(){this.CST_STACK.pop()}cstPostRuleFull(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset,i.endLine=r.endLine,i.endColumn=r.endColumn;else i.startOffset=-1,i.startLine=-1,i.startColumn=-1}cstPostRuleOnlyOffset(e){let r=this.LA(0),i=e.location;if(i.startOffset!==-1&&i.startOffset<=r.startOffset===!0)i.endOffset=r.endOffset;else i.startOffset=-1}cstPostTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];AZr(i,r,e),this.setNodeLocationFromToken(i.location,r)}cstPostNonTerminal(e,r){let i=this.CST_STACK[this.CST_STACK.length-1];RZr(i,r,e),this.setNodeLocationFromNode(i.location,e.location)}get currCSTNode(){let e=this;return e.CST_STACK[e.CST_STACK.length-1]}getBaseCstVisitorConstructor(){if(this.baseCstVisitorConstructor===void 0){let e=IZr(this.className,Object.keys(this.gastProductionsCache));return this.baseCstVisitorConstructor=e,e}return this.baseCstVisitorConstructor}getBaseCstVisitorConstructorWithDefaults(){if(this.baseCstVisitorWithDefaultsConstructor===void 0){let e=OZr(this.className,Object.keys(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=e,e}return this.baseCstVisitorWithDefaultsConstructor}getPreviousExplicitRuleShortName(){return this.RULE_STACK[this.RULE_STACK_IDX-1]}getLastExplicitRuleOccurrenceIndex(){return this.RULE_OCCURRENCE_STACK[this.RULE_OCCURRENCE_STACK_IDX]}}var LZr=Re(()=>{NZr();E2()});class j0t{initLexerAdapter(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1}set input(e){if(this.selfAnalysisDone!==!0)throw Error("Missing invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=e,this.tokVectorLength=e.length}get input(){return this.tokVector}SKIP_TOKEN(){if(this.currIdx<=this.tokVectorLength-2)return this.consumeToken(),this.LA_FAST(1);else return GI}LA_FAST(e){let r=this.currIdx+e;return this.tokVector[r]}LA(e){let r=this.currIdx+e;if(r<0||this.tokVectorLength<=r)return GI;else return this.tokVector[r]}consumeToken(){this.currIdx++}exportLexerState(){return this.currIdx}importLexerState(e){this.currIdx=e}resetLexerState(){this.currIdx=-1}moveToTerminatedState(){this.currIdx=this.tokVectorLength-1}getLexerPosition(){return this.exportLexerState()}}var MZr=Re(()=>{E2()});class K0t{ACTION(e){return e.call(this)}consume(e,r,i){return this.consumeInternal(r,e,i)}subrule(e,r,i){return this.subruleInternal(r,e,i)}option(e,r){return this.optionInternal(r,e)}or(e,r){return this.orInternal(r,e)}many(e,r){return this.manyInternal(e,r)}atLeastOne(e,r){return this.atLeastOneInternal(e,r)}CONSUME(e,r){return this.consumeInternal(e,0,r)}CONSUME1(e,r){return this.consumeInternal(e,1,r)}CONSUME2(e,r){return this.consumeInternal(e,2,r)}CONSUME3(e,r){return this.consumeInternal(e,3,r)}CONSUME4(e,r){return this.consumeInternal(e,4,r)}CONSUME5(e,r){return this.consumeInternal(e,5,r)}CONSUME6(e,r){return this.consumeInternal(e,6,r)}CONSUME7(e,r){return this.consumeInternal(e,7,r)}CONSUME8(e,r){return this.consumeInternal(e,8,r)}CONSUME9(e,r){return this.consumeInternal(e,9,r)}SUBRULE(e,r){return this.subruleInternal(e,0,r)}SUBRULE1(e,r){return this.subruleInternal(e,1,r)}SUBRULE2(e,r){return this.subruleInternal(e,2,r)}SUBRULE3(e,r){return this.subruleInternal(e,3,r)}SUBRULE4(e,r){return this.subruleInternal(e,4,r)}SUBRULE5(e,r){return this.subruleInternal(e,5,r)}SUBRULE6(e,r){return this.subruleInternal(e,6,r)}SUBRULE7(e,r){return this.subruleInternal(e,7,r)}SUBRULE8(e,r){return this.subruleInternal(e,8,r)}SUBRULE9(e,r){return this.subruleInternal(e,9,r)}OPTION(e){return this.optionInternal(e,0)}OPTION1(e){return this.optionInternal(e,1)}OPTION2(e){return this.optionInternal(e,2)}OPTION3(e){return this.optionInternal(e,3)}OPTION4(e){return this.optionInternal(e,4)}OPTION5(e){return this.optionInternal(e,5)}OPTION6(e){return this.optionInternal(e,6)}OPTION7(e){return this.optionInternal(e,7)}OPTION8(e){return this.optionInternal(e,8)}OPTION9(e){return this.optionInternal(e,9)}OR(e){return this.orInternal(e,0)}OR1(e){return this.orInternal(e,1)}OR2(e){return this.orInternal(e,2)}OR3(e){return this.orInternal(e,3)}OR4(e){return this.orInternal(e,4)}OR5(e){return this.orInternal(e,5)}OR6(e){return this.orInternal(e,6)}OR7(e){return this.orInternal(e,7)}OR8(e){return this.orInternal(e,8)}OR9(e){return this.orInternal(e,9)}MANY(e){this.manyInternal(0,e)}MANY1(e){this.manyInternal(1,e)}MANY2(e){this.manyInternal(2,e)}MANY3(e){this.manyInternal(3,e)}MANY4(e){this.manyInternal(4,e)}MANY5(e){this.manyInternal(5,e)}MANY6(e){this.manyInternal(6,e)}MANY7(e){this.manyInternal(7,e)}MANY8(e){this.manyInternal(8,e)}MANY9(e){this.manyInternal(9,e)}MANY_SEP(e){this.manySepFirstInternal(0,e)}MANY_SEP1(e){this.manySepFirstInternal(1,e)}MANY_SEP2(e){this.manySepFirstInternal(2,e)}MANY_SEP3(e){this.manySepFirstInternal(3,e)}MANY_SEP4(e){this.manySepFirstInternal(4,e)}MANY_SEP5(e){this.manySepFirstInternal(5,e)}MANY_SEP6(e){this.manySepFirstInternal(6,e)}MANY_SEP7(e){this.manySepFirstInternal(7,e)}MANY_SEP8(e){this.manySepFirstInternal(8,e)}MANY_SEP9(e){this.manySepFirstInternal(9,e)}AT_LEAST_ONE(e){this.atLeastOneInternal(0,e)}AT_LEAST_ONE1(e){return this.atLeastOneInternal(1,e)}AT_LEAST_ONE2(e){this.atLeastOneInternal(2,e)}AT_LEAST_ONE3(e){this.atLeastOneInternal(3,e)}AT_LEAST_ONE4(e){this.atLeastOneInternal(4,e)}AT_LEAST_ONE5(e){this.atLeastOneInternal(5,e)}AT_LEAST_ONE6(e){this.atLeastOneInternal(6,e)}AT_LEAST_ONE7(e){this.atLeastOneInternal(7,e)}AT_LEAST_ONE8(e){this.atLeastOneInternal(8,e)}AT_LEAST_ONE9(e){this.atLeastOneInternal(9,e)}AT_LEAST_ONE_SEP(e){this.atLeastOneSepFirstInternal(0,e)}AT_LEAST_ONE_SEP1(e){this.atLeastOneSepFirstInternal(1,e)}AT_LEAST_ONE_SEP2(e){this.atLeastOneSepFirstInternal(2,e)}AT_LEAST_ONE_SEP3(e){this.atLeastOneSepFirstInternal(3,e)}AT_LEAST_ONE_SEP4(e){this.atLeastOneSepFirstInternal(4,e)}AT_LEAST_ONE_SEP5(e){this.atLeastOneSepFirstInternal(5,e)}AT_LEAST_ONE_SEP6(e){this.atLeastOneSepFirstInternal(6,e)}AT_LEAST_ONE_SEP7(e){this.atLeastOneSepFirstInternal(7,e)}AT_LEAST_ONE_SEP8(e){this.atLeastOneSepFirstInternal(8,e)}AT_LEAST_ONE_SEP9(e){this.atLeastOneSepFirstInternal(9,e)}RULE(e,r,i=wW){if(this.definedRulesNames.includes(e)){let l={message:WC.buildDuplicateRuleNameError({topLevelRule:e,grammarName:this.className}),type:fm.DUPLICATE_RULE_NAME,ruleName:e};this.definitionErrors.push(l)}this.definedRulesNames.push(e);let a=this.defineRule(e,r,i);return this[e]=a,a}OVERRIDE_RULE(e,r,i=wW){let a=mZr(e,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(a);let o=this.defineRule(e,r,i);return this[e]=o,o}BACKTRACK(e,r){var i;let a=(i=e.coreRule)!==null&&i!==void 0?i:e;return function(){this.isBackTrackingStack.push(1);let o=this.saveRecogState();try{return a.apply(this,r),!0}catch(l){if(sM(l))return!1;else throw l}finally{this.reloadRecogState(o),this.isBackTrackingStack.pop()}}}getGAstProductions(){return this.gastProductionsCache}getSerializedGastProductions(){return f3e(Object.values(this.gastProductionsCache))}}var DZr=Re(()=>{_W();E2();bW();Koe();Ov()});class X0t{initRecognizerEngine(e,r){if(this.className=this.constructor.name,this.shortRuleNameToFull=[],this.fullRuleNameToShort={},this.ruleShortNameIdx=0,this.tokenMatcher=mW,this.subruleIdx=0,this.currRuleShortName=-1,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK=[],this.RULE_OCCURRENCE_STACK_IDX=-1,this.gastProductionsCache={},Object.hasOwn(r,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a property. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0 For Further details.`);if(Array.isArray(e)){if(e.length===0)throw Error(`A Token Vocabulary cannot be empty. Note that the first argument for the parser constructor is no longer a Token vector (since v4.0).`);if(typeof e[0].startOffset==="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument. See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0 - For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((o,l)=>(o[l.name]=l,o),{});else if(Object.hasOwn(e,"modes")&&Object.values(e.modes).flat().every(BQr)){let o=Object.values(e.modes).flat(),l=[...new Set(o)];this.tokensMap=l.reduce((h,d)=>(h[d.name]=d,h),{})}else if(typeof e==="object"&&e!==null)this.tokensMap=Object.assign({},e);else throw Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=_2;let a=(Object.hasOwn(e,"modes")?Object.values(e.modes).flat():Object.values(e)).every((o)=>{var l;return((l=o.categoryMatches)===null||l===void 0?void 0:l.length)==0});this.tokenMatcher=a?fW:PI,BI(Object.values(this.tokensMap))}defineRule(e,r,i){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' -Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let a=Object.hasOwn(i,"resyncEnabled")?i.resyncEnabled:vW.resyncEnabled,o=Object.hasOwn(i,"recoveryValueFunc")?i.recoveryValueFunc:vW.recoveryValueFunc,l=this.ruleShortNameIdx++;this.shortRuleNameToFull[l]=e,this.fullRuleNameToShort[e]=l;let h;if(this.outputCst===!0)h=function(...y){try{this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y);let E=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(E),E}catch(E){return this.invokeRuleCatch(E,a,o)}finally{this.ruleFinallyStateUpdate()}};else h=function(...y){try{return this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y)}catch(E){return this.invokeRuleCatch(E,a,o)}finally{this.ruleFinallyStateUpdate()}};return Object.assign(function(...y){this.onBeforeParse(e);try{return h.apply(this,y)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:r,coreRule:h})}invokeRuleCatch(e,r,i){let a=this.RULE_STACK_IDX===0,o=r&&!this.isBackTracking()&&this.recoveryEnabled;if(iM(e)){let l=e;if(o){let h=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(h))if(l.resyncedTokens=this.reSyncTo(h),this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return i(e);else{if(this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,l.partialCstResult=d}throw l}}else if(a)return this.moveToTerminatedState(),i(e);else throw l}else throw e}optionInternal(e,r){let i=$3e|r;return this.optionInternalLogic(e,r,i)}optionInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof e!=="function"){o=e.DEF;let l=e.GATE;if(l!==void 0){let h=a;a=()=>l.call(this)&&h.call(this)}}else o=e;if(a.call(this)===!0)return o.call(this);return}atLeastOneInternal(e,r){let i=Koe|e;return this.atLeastOneInternalLogic(e,r,i)}atLeastOneInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let l=r.GATE;if(l!==void 0){let h=a;a=()=>l.call(this)&&h.call(this)}}else o=r;if(a.call(this)===!0){let l=this.doSingleRepetition(o);while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(e,up.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,Koe,e,I0t)}atLeastOneSepFirstInternal(e,r){let i=yW|e;this.atLeastOneSepFirstInternalLogic(e,r,i)}atLeastOneSepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=()=>this.tokenMatcher(this.LA_FAST(1),o);while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,R3e],h,yW,e,R3e)}else throw this.raiseEarlyExitException(e,up.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let i=joe|e;return this.manyInternalLogic(e,r,i)}manyInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let h=r.GATE;if(h!==void 0){let d=a;a=()=>h.call(this)&&d.call(this)}}else o=r;let l=!0;while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,joe,e,R0t,l)}manySepFirstInternal(e,r){let i=Xoe|e;this.manySepFirstInternalLogic(e,r,i)}manySepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=()=>this.tokenMatcher(this.LA_FAST(1),o);while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,A3e],h,Xoe,e,A3e)}}repetitionSepSecondInternal(e,r,i,a,o){while(i())this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,a,o],i,yW,e,o)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){let i=F3e|r,a=Array.isArray(e)?e:e.DEF,l=this.currRuleLookaheadFuncs[i].call(this,a);if(l!==void 0)return a[l].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName];this.cstFinallyStateUpdate()}subruleInternal(e,r,i){let a;try{let o=i!==void 0?i.ARGS:void 0;return this.subruleIdx=r,a=e.coreRule.apply(this,o),this.cstPostNonTerminal(a,i!==void 0&&i.LABEL!==void 0?i.LABEL:e.ruleName),a}catch(o){throw this.subruleInternalError(o,i,e.ruleName)}}subruleInternalError(e,r,i){if(iM(e)&&e.partialCstResult!==void 0)this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:i),delete e.partialCstResult;throw e}consumeInternal(e,r,i){let a;try{let o=this.LA_FAST(1);if(this.tokenMatcher(o,e)===!0)this.consumeToken(),a=o;else this.consumeInternalError(e,o,i)}catch(o){a=this.consumeInternalRecovery(e,r,o)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:e.name,a),a}consumeInternalError(e,r,i){let a,o=this.LA(0);if(i!==void 0&&i.ERR_MSG)a=i.ERR_MSG;else a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:o,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new mW(a,r,o))}consumeInternalRecovery(e,r,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){let a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(o){if(o.name===D0t)throw i;else throw o}}else throw i}saveRecogState(){let e=this.errors,r=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let r=e.RULE_STACK;for(let i=0;i=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]}ruleInvocationStateUpdate(e,r,i){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=i,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),_2)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let r=0;r{bW();gW();Voe();E2();B0t();MF();OF()});class j0t{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,"errorMessageProvider")?e.errorMessageProvider:Nv.errorMessageProvider}SAVE_ERROR(e){if(iM(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;else throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,r,i){let a=this.getCurrRuleFullName(),o=this.getGAstProductions()[a],h=qoe(e,o,r,this.maxLookahead)[0],d=[];for(let m=1;m<=this.maxLookahead;m++)d.push(this.LA(m));let p=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:h,actual:d,previous:this.LA(0),customUserDescription:i,ruleName:a});throw this.SAVE_ERROR(new B3e(p,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){let i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],o=Hoe(e,a,this.maxLookahead),l=[];for(let p=1;p<=this.maxLookahead;p++)l.push(this.LA(p));let h=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:l,previous:h,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new D3e(d,this.LA(1),h))}}var NZr=Re(()=>{bW();gW();E2()});class K0t{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(i,a){return this.consumeInternalRecord(i,e,a)},this[`SUBRULE${r}`]=function(i,a){return this.subruleInternalRecord(i,e,a)},this[`OPTION${r}`]=function(i){return this.optionInternalRecord(i,e)},this[`OR${r}`]=function(i){return this.orInternalRecord(i,e)},this[`MANY${r}`]=function(i){this.manyInternalRecord(e,i)},this[`MANY_SEP${r}`]=function(i){this.manySepFirstInternalRecord(e,i)},this[`AT_LEAST_ONE${r}`]=function(i){this.atLeastOneInternalRecord(e,i)},this[`AT_LEAST_ONE_SEP${r}`]=function(i){this.atLeastOneSepFirstInternalRecord(e,i)}}this.consume=function(e,r,i){return this.consumeInternalRecord(r,e,i)},this.subrule=function(e,r,i){return this.subruleInternalRecord(r,e,i)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let i=r>0?r:"";delete e[`CONSUME${i}`],delete e[`SUBRULE${i}`],delete e[`OPTION${i}`],delete e[`OR${i}`],delete e[`MANY${i}`],delete e[`MANY_SEP${i}`],delete e[`AT_LEAST_ONE${i}`],delete e[`AT_LEAST_ONE_SEP${i}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return FI}topLevelRuleRecord(e,r){try{let i=new b2({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),r.call(this),this.recordingProdStack.pop(),i}catch(i){if(i.KNOWN_RECORDER_ERROR!==!0)try{i.message=i.message+` + For Further details.`)}if(Array.isArray(e))this.tokensMap=e.reduce((o,l)=>(o[l.name]=l,o),{});else if(Object.hasOwn(e,"modes")&&Object.values(e.modes).flat().every(zQr)){let o=Object.values(e.modes).flat(),l=[...new Set(o)];this.tokensMap=l.reduce((h,d)=>(h[d.name]=d,h),{})}else if(typeof e==="object"&&e!==null)this.tokensMap=Object.assign({},e);else throw Error(" argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap.EOF=_2;let a=(Object.hasOwn(e,"modes")?Object.values(e.modes).flat():Object.values(e)).every((o)=>{var l;return((l=o.categoryMatches)===null||l===void 0?void 0:l.length)==0});this.tokenMatcher=a?mW:$I,UI(Object.values(this.tokensMap))}defineRule(e,r,i){if(this.selfAnalysisDone)throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' +Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);let a=Object.hasOwn(i,"resyncEnabled")?i.resyncEnabled:wW.resyncEnabled,o=Object.hasOwn(i,"recoveryValueFunc")?i.recoveryValueFunc:wW.recoveryValueFunc,l=this.ruleShortNameIdx++;this.shortRuleNameToFull[l]=e,this.fullRuleNameToShort[e]=l;let h;if(this.outputCst===!0)h=function(...y){try{this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y);let v=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(v),v}catch(v){return this.invokeRuleCatch(v,a,o)}finally{this.ruleFinallyStateUpdate()}};else h=function(...y){try{return this.ruleInvocationStateUpdate(l,e,this.subruleIdx),r.apply(this,y)}catch(v){return this.invokeRuleCatch(v,a,o)}finally{this.ruleFinallyStateUpdate()}};return Object.assign(function(...y){this.onBeforeParse(e);try{return h.apply(this,y)}finally{this.onAfterParse(e)}},{ruleName:e,originalGrammarAction:r,coreRule:h})}invokeRuleCatch(e,r,i){let a=this.RULE_STACK_IDX===0,o=r&&!this.isBackTracking()&&this.recoveryEnabled;if(sM(e)){let l=e;if(o){let h=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(h))if(l.resyncedTokens=this.reSyncTo(h),this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];return d.recoveredNode=!0,d}else return i(e);else{if(this.outputCst){let d=this.CST_STACK[this.CST_STACK.length-1];d.recoveredNode=!0,l.partialCstResult=d}throw l}}else if(a)return this.moveToTerminatedState(),i(e);else throw l}else throw e}optionInternal(e,r){let i=z3e|r;return this.optionInternalLogic(e,r,i)}optionInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof e!=="function"){o=e.DEF;let l=e.GATE;if(l!==void 0){let h=a;a=()=>l.call(this)&&h.call(this)}}else o=e;if(a.call(this)===!0)return o.call(this);return}atLeastOneInternal(e,r){let i=Zoe|e;return this.atLeastOneInternalLogic(e,r,i)}atLeastOneInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let l=r.GATE;if(l!==void 0){let h=a;a=()=>l.call(this)&&h.call(this)}}else o=r;if(a.call(this)===!0){let l=this.doSingleRepetition(o);while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o)}else throw this.raiseEarlyExitException(e,up.REPETITION_MANDATORY,r.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[e,r],a,Zoe,e,L0t)}atLeastOneSepFirstInternal(e,r){let i=EW|e;this.atLeastOneSepFirstInternalLogic(e,r,i)}atLeastOneSepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=()=>this.tokenMatcher(this.LA_FAST(1),o);while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,N3e],h,EW,e,N3e)}else throw this.raiseEarlyExitException(e,up.REPETITION_MANDATORY_WITH_SEPARATOR,r.ERR_MSG)}manyInternal(e,r){let i=Qoe|e;return this.manyInternalLogic(e,r,i)}manyInternalLogic(e,r,i){let a=this.currRuleLookaheadFuncs[i],o;if(typeof r!=="function"){o=r.DEF;let h=r.GATE;if(h!==void 0){let d=a;a=()=>h.call(this)&&d.call(this)}}else o=r;let l=!0;while(a.call(this)===!0&&l===!0)l=this.doSingleRepetition(o);this.attemptInRepetitionRecovery(this.manyInternal,[e,r],a,Qoe,e,N0t,l)}manySepFirstInternal(e,r){let i=Joe|e;this.manySepFirstInternalLogic(e,r,i)}manySepFirstInternalLogic(e,r,i){let{DEF:a,SEP:o}=r;if(this.currRuleLookaheadFuncs[i].call(this)===!0){a.call(this);let h=()=>this.tokenMatcher(this.LA_FAST(1),o);while(this.tokenMatcher(this.LA_FAST(1),o)===!0)this.CONSUME(o),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,o,h,a,O3e],h,Joe,e,O3e)}}repetitionSepSecondInternal(e,r,i,a,o){while(i())this.CONSUME(r),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[e,r,i,a,o],i,EW,e,o)}doSingleRepetition(e){let r=this.getLexerPosition();return e.call(this),this.getLexerPosition()>r}orInternal(e,r){let i=G3e|r,a=Array.isArray(e)?e:e.DEF,l=this.currRuleLookaheadFuncs[i].call(this,a);if(l!==void 0)return a[l].ALT.call(this);this.raiseNoAltException(r,e.ERR_MSG)}ruleFinallyStateUpdate(){if(this.RULE_STACK_IDX--,this.RULE_OCCURRENCE_STACK_IDX--,this.RULE_STACK_IDX>=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName];this.cstFinallyStateUpdate()}subruleInternal(e,r,i){let a;try{let o=i!==void 0?i.ARGS:void 0;return this.subruleIdx=r,a=e.coreRule.apply(this,o),this.cstPostNonTerminal(a,i!==void 0&&i.LABEL!==void 0?i.LABEL:e.ruleName),a}catch(o){throw this.subruleInternalError(o,i,e.ruleName)}}subruleInternalError(e,r,i){if(sM(e)&&e.partialCstResult!==void 0)this.cstPostNonTerminal(e.partialCstResult,r!==void 0&&r.LABEL!==void 0?r.LABEL:i),delete e.partialCstResult;throw e}consumeInternal(e,r,i){let a;try{let o=this.LA_FAST(1);if(this.tokenMatcher(o,e)===!0)this.consumeToken(),a=o;else this.consumeInternalError(e,o,i)}catch(o){a=this.consumeInternalRecovery(e,r,o)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:e.name,a),a}consumeInternalError(e,r,i){let a,o=this.LA(0);if(i!==void 0&&i.ERR_MSG)a=i.ERR_MSG;else a=this.errorMessageProvider.buildMismatchTokenMessage({expected:e,actual:r,previous:o,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new vW(a,r,o))}consumeInternalRecovery(e,r,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){let a=this.getFollowsForInRuleRecovery(e,r);try{return this.tryInRuleRecovery(e,a)}catch(o){if(o.name===F0t)throw i;else throw o}}else throw i}saveRecogState(){let e=this.errors,r=this.RULE_STACK.slice(0,this.RULE_STACK_IDX+1);return{errors:e,lexerState:this.exportLexerState(),RULE_STACK:r,CST_STACK:this.CST_STACK}}reloadRecogState(e){this.errors=e.errors,this.importLexerState(e.lexerState);let r=e.RULE_STACK;for(let i=0;i=0)this.currRuleShortName=this.RULE_STACK[this.RULE_STACK_IDX],this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[this.currRuleShortName]}ruleInvocationStateUpdate(e,r,i){this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX]=i,this.RULE_STACK[++this.RULE_STACK_IDX]=e,this.currRuleShortName=e,this.currRuleLookaheadFuncs=this.lookAheadFuncsCache[e],this.cstInvocationStateUpdate(r)}isBackTracking(){return this.isBackTrackingStack.length!==0}getCurrRuleFullName(){let e=this.currRuleShortName;return this.shortRuleNameToFull[e]}shortRuleNameToFullName(e){return this.shortRuleNameToFull[e]}isAtEndOfInput(){return this.tokenMatcher(this.LA(1),_2)}reset(){this.resetLexerState(),this.subruleIdx=0,this.currRuleShortName=-1,this.currRuleLookaheadFuncs=[],this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK_IDX=-1,this.RULE_OCCURRENCE_STACK_IDX=-1,this.CST_STACK=[]}onBeforeParse(e){for(let r=0;r{_W();yW();Yoe();E2();U0t();PF();LF()});class Q0t{initErrorHandler(e){this._errors=[],this.errorMessageProvider=Object.hasOwn(e,"errorMessageProvider")?e.errorMessageProvider:Nv.errorMessageProvider}SAVE_ERROR(e){if(sM(e))return e.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:this.RULE_OCCURRENCE_STACK.slice(0,this.RULE_OCCURRENCE_STACK_IDX+1)},this._errors.push(e),e;else throw Error("Trying to save an Error which is not a RecognitionException")}get errors(){return[...this._errors]}set errors(e){this._errors=e}raiseEarlyExitException(e,r,i){let a=this.getCurrRuleFullName(),o=this.getGAstProductions()[a],h=joe(e,o,r,this.maxLookahead)[0],d=[];for(let m=1;m<=this.maxLookahead;m++)d.push(this.LA(m));let p=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:h,actual:d,previous:this.LA(0),customUserDescription:i,ruleName:a});throw this.SAVE_ERROR(new U3e(p,this.LA(1),this.LA(0)))}raiseNoAltException(e,r){let i=this.getCurrRuleFullName(),a=this.getGAstProductions()[i],o=Woe(e,a,this.maxLookahead),l=[];for(let p=1;p<=this.maxLookahead;p++)l.push(this.LA(p));let h=this.LA(0),d=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:o,actual:l,previous:h,customUserDescription:r,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new F3e(d,this.LA(1),h))}}var BZr=Re(()=>{_W();yW();E2()});class Z0t{initGastRecorder(e){this.recordingProdStack=[],this.RECORDING_PHASE=!1}enableRecording(){this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",()=>{for(let e=0;e<10;e++){let r=e>0?e:"";this[`CONSUME${r}`]=function(i,a){return this.consumeInternalRecord(i,e,a)},this[`SUBRULE${r}`]=function(i,a){return this.subruleInternalRecord(i,e,a)},this[`OPTION${r}`]=function(i){return this.optionInternalRecord(i,e)},this[`OR${r}`]=function(i){return this.orInternalRecord(i,e)},this[`MANY${r}`]=function(i){this.manyInternalRecord(e,i)},this[`MANY_SEP${r}`]=function(i){this.manySepFirstInternalRecord(e,i)},this[`AT_LEAST_ONE${r}`]=function(i){this.atLeastOneInternalRecord(e,i)},this[`AT_LEAST_ONE_SEP${r}`]=function(i){this.atLeastOneSepFirstInternalRecord(e,i)}}this.consume=function(e,r,i){return this.consumeInternalRecord(r,e,i)},this.subrule=function(e,r,i){return this.subruleInternalRecord(r,e,i)},this.option=function(e,r){return this.optionInternalRecord(r,e)},this.or=function(e,r){return this.orInternalRecord(r,e)},this.many=function(e,r){this.manyInternalRecord(e,r)},this.atLeastOne=function(e,r){this.atLeastOneInternalRecord(e,r)},this.ACTION=this.ACTION_RECORD,this.BACKTRACK=this.BACKTRACK_RECORD,this.LA=this.LA_RECORD})}disableRecording(){this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",()=>{let e=this;for(let r=0;r<10;r++){let i=r>0?r:"";delete e[`CONSUME${i}`],delete e[`SUBRULE${i}`],delete e[`OPTION${i}`],delete e[`OR${i}`],delete e[`MANY${i}`],delete e[`MANY_SEP${i}`],delete e[`AT_LEAST_ONE${i}`],delete e[`AT_LEAST_ONE_SEP${i}`]}delete e.consume,delete e.subrule,delete e.option,delete e.or,delete e.many,delete e.atLeastOne,delete e.ACTION,delete e.BACKTRACK,delete e.LA})}ACTION_RECORD(e){}BACKTRACK_RECORD(e,r){return()=>!0}LA_RECORD(e){return GI}topLevelRuleRecord(e,r){try{let i=new b2({definition:[],name:e});return i.name=e,this.recordingProdStack.push(i),r.call(this),this.recordingProdStack.pop(),i}catch(i){if(i.KNOWN_RECORDER_ERROR!==!0)try{i.message=i.message+` This error was thrown during the "grammar recording phase" For more info see: - https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(a){throw i}throw i}}optionInternalRecord(e,r){return Qoe.call(this,Sf,e,r)}atLeastOneInternalRecord(e,r){Qoe.call(this,bg,r,e)}atLeastOneSepFirstInternalRecord(e,r){Qoe.call(this,yg,r,e,LZr)}manyInternalRecord(e,r){Qoe.call(this,xh,r,e)}manySepFirstInternalRecord(e,r){Qoe.call(this,B0,r,e,LZr)}orInternalRecord(e,r){return zki.call(this,e,r)}subruleInternalRecord(e,r,i){if(z3e(r),!e||!Object.hasOwn(e,"ruleName")){let h=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}let a=this.recordingProdStack.at(-1),o=e.ruleName,l=new Gd({idx:r,nonTerminalName:o,label:i===null||i===void 0?void 0:i.LABEL,referencedRule:void 0});return a.definition.push(l),this.outputCst?Gki:V3e}consumeInternalRecord(e,r,i){if(z3e(r),!T0t(e)){let l=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> - inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let a=this.recordingProdStack.at(-1),o=new tu({idx:r,terminalType:e,label:i===null||i===void 0?void 0:i.LABEL});return a.definition.push(o),BZr}}function Qoe(e,r,i,a=!1){z3e(i);let o=this.recordingProdStack.at(-1),l=typeof r==="function"?r:r.DEF,h=new e({definition:[],idx:i});if(a)h.separator=r.SEP;if(Object.hasOwn(r,"MAX_LOOKAHEAD"))h.maxLookahead=r.MAX_LOOKAHEAD;return this.recordingProdStack.push(h),l.call(this),o.definition.push(h),this.recordingProdStack.pop(),V3e}function zki(e,r){z3e(r);let i=this.recordingProdStack.at(-1),a=Array.isArray(e)===!1,o=a===!1?e:e.DEF,l=new F0({definition:[],idx:r,ignoreAmbiguities:a&&e.IGNORE_AMBIGUITIES===!0});if(Object.hasOwn(e,"MAX_LOOKAHEAD"))l.maxLookahead=e.MAX_LOOKAHEAD;let h=o.some((d)=>typeof d.GATE==="function");return l.hasPredicates=h,i.definition.push(l),o.forEach((d)=>{let p=new zd({definition:[]});if(l.definition.push(p),Object.hasOwn(d,"IGNORE_AMBIGUITIES"))p.ignoreAmbiguities=d.IGNORE_AMBIGUITIES;else if(Object.hasOwn(d,"GATE"))p.ignoreAmbiguities=!0;this.recordingProdStack.push(p),d.ALT.call(this),this.recordingProdStack.pop()}),V3e}function DZr(e){return e===0?"":`${e}`}function z3e(e){if(e<0||e>MZr){let r=Error(`Invalid DSL Method idx value: <${e}> - Idx value must be a none negative value smaller than ${MZr+1}`);throw r.KNOWN_RECORDER_ERROR=!0,r}}var V3e,LZr=!0,MZr=255,PZr,BZr,Gki;var FZr=Re(()=>{Ov();$oe();OF();MF();E2();V3e={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(V3e);PZr=to({name:"RECORDING_PHASE_TOKEN",pattern:cp.NA});BI([PZr]);BZr=LF(PZr,`This IToken indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(BZr);Gki={name:`This CSTNode indicates the Parser is in Recording Phase - See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}}});class X0t{initPerformanceTracer(e){if(Object.hasOwn(e,"traceInitPerf")){let r=e.traceInitPerf,i=typeof r==="number";this.traceInitMaxIdent=i?r:1/0,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=Nv.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let i=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${e}>`);let{time:a,value:o}=Noe(r),l=a>10?console.warn:console.log;if(this.traceInitIndent time: ${a}ms`);return this.traceInitIndent--,o}else return r()}}var $Zr=Re(()=>{lW();E2()});function UZr(e,r){r.forEach((i)=>{let a=i.prototype;Object.getOwnPropertyNames(a).forEach((o)=>{if(o==="constructor")return;let l=Object.getOwnPropertyDescriptor(a,o);if(l&&(l.get||l.set))Object.defineProperty(e.prototype,o,l);else e.prototype[o]=i.prototype[o]})})}class Zoe{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{Loe(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach((a)=>{let l=this[a].originalGrammarAction,h;this.TRACE_INIT(`${a} Rule`,()=>{h=this.topLevelRuleRecord(a,l)}),this.gastProductionsCache[a]=h})}finally{this.disableRecording()}});let i=[];if(this.TRACE_INIT("Grammar Resolving",()=>{i=mZr({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(i)}),this.TRACE_INIT("Grammar Validations",()=>{if(i.length===0&&this.skipValidations===!1){let a=bZr({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:qC,grammarName:r}),o=oZr({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,o)}}),this.definitionErrors.length===0){if(this.recoveryEnabled)this.TRACE_INIT("computeAllProdsFollows",()=>{let a=pQr(Object.values(this.gastProductionsCache));this.resyncFollows=a});this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,o;(o=(a=this.lookaheadStrategy).initialize)===null||o===void 0||o.call(a,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})}if(!Zoe.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw e=this.definitionErrors.map((a)=>a.message),Error(`Parser Definition Errors detected: + https://chevrotain.io/docs/guide/internals.html#grammar-recording`}catch(a){throw i}throw i}}optionInternalRecord(e,r){return ele.call(this,Sf,e,r)}atLeastOneInternalRecord(e,r){ele.call(this,bg,r,e)}atLeastOneSepFirstInternalRecord(e,r){ele.call(this,yg,r,e,FZr)}manyInternalRecord(e,r){ele.call(this,xh,r,e)}manySepFirstInternalRecord(e,r){ele.call(this,B0,r,e,FZr)}orInternalRecord(e,r){return jki.call(this,e,r)}subruleInternalRecord(e,r,i){if(q3e(r),!e||!Object.hasOwn(e,"ruleName")){let h=Error(` argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw h.KNOWN_RECORDER_ERROR=!0,h}let a=this.recordingProdStack.at(-1),o=e.ruleName,l=new Gd({idx:r,nonTerminalName:o,label:i===null||i===void 0?void 0:i.LABEL,referencedRule:void 0});return a.definition.push(l),this.outputCst?Wki:Y3e}consumeInternalRecord(e,r,i){if(q3e(r),!k0t(e)){let l=Error(` argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}> + inside top level rule: <${this.recordingProdStack[0].name}>`);throw l.KNOWN_RECORDER_ERROR=!0,l}let a=this.recordingProdStack.at(-1),o=new tu({idx:r,terminalType:e,label:i===null||i===void 0?void 0:i.LABEL});return a.definition.push(o),zZr}}function ele(e,r,i,a=!1){q3e(i);let o=this.recordingProdStack.at(-1),l=typeof r==="function"?r:r.DEF,h=new e({definition:[],idx:i});if(a)h.separator=r.SEP;if(Object.hasOwn(r,"MAX_LOOKAHEAD"))h.maxLookahead=r.MAX_LOOKAHEAD;return this.recordingProdStack.push(h),l.call(this),o.definition.push(h),this.recordingProdStack.pop(),Y3e}function jki(e,r){q3e(r);let i=this.recordingProdStack.at(-1),a=Array.isArray(e)===!1,o=a===!1?e:e.DEF,l=new F0({definition:[],idx:r,ignoreAmbiguities:a&&e.IGNORE_AMBIGUITIES===!0});if(Object.hasOwn(e,"MAX_LOOKAHEAD"))l.maxLookahead=e.MAX_LOOKAHEAD;let h=o.some((d)=>typeof d.GATE==="function");return l.hasPredicates=h,i.definition.push(l),o.forEach((d)=>{let p=new zd({definition:[]});if(l.definition.push(p),Object.hasOwn(d,"IGNORE_AMBIGUITIES"))p.ignoreAmbiguities=d.IGNORE_AMBIGUITIES;else if(Object.hasOwn(d,"GATE"))p.ignoreAmbiguities=!0;this.recordingProdStack.push(p),d.ALT.call(this),this.recordingProdStack.pop()}),Y3e}function UZr(e){return e===0?"":`${e}`}function q3e(e){if(e<0||e>$Zr){let r=Error(`Invalid DSL Method idx value: <${e}> + Idx value must be a none negative value smaller than ${$Zr+1}`);throw r.KNOWN_RECORDER_ERROR=!0,r}}var Y3e,FZr=!0,$Zr=255,GZr,zZr,Wki;var VZr=Re(()=>{Ov();zoe();LF();PF();E2();Y3e={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Y3e);GZr=to({name:"RECORDING_PHASE_TOKEN",pattern:cp.NA});UI([GZr]);zZr=DF(GZr,`This IToken indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(zZr);Wki={name:`This CSTNode indicates the Parser is in Recording Phase + See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`,children:{}}});class J0t{initPerformanceTracer(e){if(Object.hasOwn(e,"traceInitPerf")){let r=e.traceInitPerf,i=typeof r==="number";this.traceInitMaxIdent=i?r:1/0,this.traceInitPerf=i?r>0:r}else this.traceInitMaxIdent=0,this.traceInitPerf=Nv.traceInitPerf;this.traceInitIndent=-1}TRACE_INIT(e,r){if(this.traceInitPerf===!0){this.traceInitIndent++;let i=Array(this.traceInitIndent+1).join("\t");if(this.traceInitIndent <${e}>`);let{time:a,value:o}=Doe(r),l=a>10?console.warn:console.log;if(this.traceInitIndent time: ${a}ms`);return this.traceInitIndent--,o}else return r()}}var HZr=Re(()=>{hW();E2()});function qZr(e,r){r.forEach((i)=>{let a=i.prototype;Object.getOwnPropertyNames(a).forEach((o)=>{if(o==="constructor")return;let l=Object.getOwnPropertyDescriptor(a,o);if(l&&(l.get||l.set))Object.defineProperty(e.prototype,o,l);else e.prototype[o]=i.prototype[o]})})}class tle{static performSelfAnalysis(e){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")}performSelfAnalysis(){this.TRACE_INIT("performSelfAnalysis",()=>{let e;this.selfAnalysisDone=!0;let r=this.className;this.TRACE_INIT("toFastProps",()=>{Poe(this)}),this.TRACE_INIT("Grammar Recording",()=>{try{this.enableRecording(),this.definedRulesNames.forEach((a)=>{let l=this[a].originalGrammarAction,h;this.TRACE_INIT(`${a} Rule`,()=>{h=this.topLevelRuleRecord(a,l)}),this.gastProductionsCache[a]=h})}finally{this.disableRecording()}});let i=[];if(this.TRACE_INIT("Grammar Resolving",()=>{i=EZr({rules:Object.values(this.gastProductionsCache)}),this.definitionErrors=this.definitionErrors.concat(i)}),this.TRACE_INIT("Grammar Validations",()=>{if(i.length===0&&this.skipValidations===!1){let a=wZr({rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),errMsgProvider:WC,grammarName:r}),o=dZr({lookaheadStrategy:this.lookaheadStrategy,rules:Object.values(this.gastProductionsCache),tokenTypes:Object.values(this.tokensMap),grammarName:r});this.definitionErrors=this.definitionErrors.concat(a,o)}}),this.definitionErrors.length===0){if(this.recoveryEnabled)this.TRACE_INIT("computeAllProdsFollows",()=>{let a=vQr(Object.values(this.gastProductionsCache));this.resyncFollows=a});this.TRACE_INIT("ComputeLookaheadFunctions",()=>{var a,o;(o=(a=this.lookaheadStrategy).initialize)===null||o===void 0||o.call(a,{rules:Object.values(this.gastProductionsCache)}),this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache))})}if(!tle.DEFER_DEFINITION_ERRORS_HANDLING&&this.definitionErrors.length!==0)throw e=this.definitionErrors.map((a)=>a.message),Error(`Parser Definition Errors detected: ${e.join(` ------------------------------- `)}`)})}constructor(e,r){this.definitionErrors=[],this.selfAnalysisDone=!1;let i=this;if(i.initErrorHandler(r),i.initLexerAdapter(),i.initLooksAhead(r),i.initRecognizerEngine(e,r),i.initRecoverable(r),i.initTreeBuilder(r),i.initGastRecorder(r),i.initPerformanceTracer(r),Object.hasOwn(r,"ignoredIssues"))throw Error(`The IParserConfig property has been deprecated. Please use the flag on the relevant DSL method instead. See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES - For further details.`);this.skipValidations=Object.hasOwn(r,"skipValidations")?r.skipValidations:Nv.skipValidations}}var FI,Nv,vW,fm,H3e;var E2=Re(()=>{lW();gQr();MF();pW();yZr();B0t();wZr();AZr();RZr();IZr();OZr();NZr();FZr();$Zr();Yoe();FI=LF(_2,"",-1,-1,-1,-1,-1,-1);Object.freeze(FI);Nv=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:k3e,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),vW=Object.freeze({recoveryValueFunc:()=>{return},resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(fm||(fm={}));Zoe.DEFER_DEFINITION_ERRORS_HANDLING=!1;UZr(Zoe,[P0t,$0t,H0t,q0t,W0t,Y0t,j0t,K0t,X0t]);H3e=class H3e extends Zoe{constructor(e,r=Nv){let i=Object.assign({},r);i.outputCst=!0;super(e,i)}}});var GZr=Re(()=>{Ov()});var zZr=Re(()=>{GZr()});var VZr=()=>{};var q3e=Re(()=>{E2();$oe();MF();gW();F0t();pW();bW();C0t();Ov();Ov();zZr();VZr()});function ZZr(e,r){let i=e.lexer.tokenize(r);if(i.errors.length>0){let o=i.errors[0],l=EW(o.offset)?o.offset:r.length,h=l+(EW(o.length)?o.length:0);throw Error(`Error lexing ${e.diagramType} diagram: ${o.message} at line ${o.line??1}, column ${o.column??1} [${l},${h})`)}e.parser.input=i.tokens;let a=e.entry();if(e.parser.errors.length>0)throw Error(`Error parsing ${e.diagramType} diagram: ${e.parser.errors[0].message}`);e.visit(a)}function BF(e,r,i){let a=[i];return a.index=r,a.input=e,a}function GJr(e,r,i){let a;try{a=JSON.parse(e)}catch(o){let l=o instanceof Error?o.message:String(o),h=D3i(l,e,r,i);if(!h){let d=0;try{new WZr(e).collect()}catch(p){if(p instanceof ab)d=p.offset}h=ngt(e,d,r,i)}throw new YZr(`Invalid JSON: ${l}`,h.line,h.column)}if(typeof a!=="object"||a===null||Array.isArray(a))throw new YZr("JSON value must have an object root",r,i);return{value:a,propertyOrder:new WZr(e).collect()}}var EW,hp,Hki="LR",qki,igt,Yki,ru,Wki,jki,Kki,Xki,Qki,Zki,Jki,e3i,t3i,r3i,n3i,i3i,a3i,s3i,o3i,l3i,c3i,JZr,DF,u3i,HZr,h3i,d3i,f3i,p3i,g3i,m3i,Joe,b3i,Z3e,y3i,v3i,eJr,tJr,_3i,E3i,w3i,l1,wW,agt,jp,S3i,UI,T3i,Z0t,$I,rJr,x3i,C3i,nJr,iJr,aJr,sgt,sJr,vg,oJr,J0t,lJr,cJr,uJr,hJr,dJr,fJr,pJr,gJr,mJr,bJr,k3i,yJr,vJr,_Jr,EJr,wJr,SJr,TJr,xJr,CJr,kJr,ogt,lgt,AJr,RJr,Y3e,IJr,W3e,OJr,j3e,NJr,ET,egt,K3e,LJr,tgt,X3e,Q3e,ele,tle,YC,rle,MJr,wT,rgt,DJr,PJr,BJr,FJr,$Jr,A3i,R3i,UJr,I3i,O3i,N3i,qZr,L3i,M3i,nle,YZr,ngt,D3i,ab,WZr,P3i,B3i,F3i,$3i,U3i,G3i,z3i,hy,jZr,PF,Q0t,V3i,H3i,q3i,Y3i,W3i,j3i,zJr,KZr,K3i,J3e,X3i,Q3i,Z3i,_W,XZr,J3i,eAi,QZr,tAi,rAi,nAi,iAi,aAi,sAi,VJr;var HJr=Re(()=>{MC();fT();lT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();q3e();q3e();q3e();dl();EW=I((e)=>e!==void 0&&e>=0,"isKnownLocation");I(ZZr,"runChevrotainParse");hp={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},qki=Fs.usecase,igt=I(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:Hki,relationshipCounter:0,noteCounter:0,accTitle:"",accDescription:"",ast:void 0,config:structuredClone(qki)}),"createModel"),Yki=I((e)=>{if(!(e.actors instanceof Map)||!(e.useCases instanceof Map)||!(e.systemBoundaries instanceof Map)||!Array.isArray(e.relationships)||!(e.notes instanceof Map)||!(e.jsonNodes instanceof Map)||!(e.classDefs instanceof Map)||!(e.symbols instanceof Map)||!["TB","TD","BT","RL","LR"].includes(e.direction)||!Number.isSafeInteger(e.relationshipCounter)||e.relationshipCounter<0||!Number.isSafeInteger(e.noteCounter)||e.noteCounter<0||typeof e.accTitle!=="string"||typeof e.accDescription!=="string"||!e.config)throw Error("Cannot commit an incomplete usecase model")},"assertCompleteModel"),ru=igt(),Wki=I(()=>structuredClone(ru.config),"getConfig"),jki=I(()=>ru.ast,"getAST"),Kki=I((e)=>{let r=structuredClone(e);Yki(r);let i=oo(),a=lo();try{Ys(r.accTitle),Js(r.accDescription),ru=r}catch(o){throw Ys(i),Js(a),o}},"commit"),Xki=I(()=>{ru=igt(),qs()},"clear"),Qki=I(()=>ru.actors,"getActors"),Zki=I((e)=>ru.actors.get(e),"getActor"),Jki=I(()=>ru.useCases,"getUseCases"),e3i=I((e)=>ru.useCases.get(e),"getUseCase"),t3i=I(()=>ru.systemBoundaries,"getSystemBoundaries"),r3i=I((e)=>ru.systemBoundaries.get(e),"getSystemBoundary"),n3i=I(()=>ru.relationships,"getRelationships"),i3i=I(()=>ru.notes,"getNotes"),a3i=I((e)=>ru.notes.get(e),"getNote"),s3i=I(()=>ru.jsonNodes,"getJsonNodes"),o3i=I((e)=>ru.jsonNodes.get(e),"getJsonNode"),l3i=I(()=>ru.classDefs,"getClassDefs"),c3i=I((e)=>ru.classDefs.get(e),"getClassDef"),JZr=I(()=>ru.direction,"getDirection"),DF=I((e)=>{let r=new Map;for(let i of["default",...e]){let a=ru.classDefs.get(i);if(!a)continue;for(let o of a.styles){let l=o.trim(),h=l.indexOf(":"),d=(h===-1?l:l.slice(0,h)).trim();if(d)r.set(d,l)}}return[...r.values()]},"getCompiledStyles"),u3i=I((e)=>e.replaceAll("~","~0").replaceAll("/","~1"),"escapeJsonPointerPart"),HZr=I((e)=>typeof e==="string"?e:e===null?"null":String(e),"displayJsonScalar"),h3i=I((e,r,i=(a)=>a)=>{let a=[],o=I((h,d,p)=>{a.push({key:i(h),accessibleKey:i(d),value:i(p)})},"append"),l=I((h,d,p)=>{if(Array.isArray(h)){if(h.length===0){o(d,d,"[]");return}if(h.every((y)=>y===null||["string","number","boolean"].includes(typeof y))){for(let[y,E]of h.entries())o(y===0?d:"",d,HZr(E));return}for(let[y,E]of h.entries())l(E,`${d}[${y}]`,`${p}/${y}`);return}if(h!==null&&typeof h==="object"){let m=h,y=r[p]??Object.keys(m);if(y.length===0){o(d,d,"{}");return}for(let E of y){let w=d?`${d}.${E}`:E;l(m[E],w,`${p}/${u3i(E)}`)}return}o(d,d,HZr(h))},"visit");return l(e,"",""),a},"flattenJsonRows"),d3i=I((e)=>{switch(e.type){case"hollow":return"usecaseActorHollow";case"awesome":return"usecaseActorAwesome";case"icon":return"usecaseActorIcon";case"normal":return"usecaseActor"}},"actorShape"),f3i=I((e)=>{if(e.shape==="ellipse")return e.business?"usecaseBusiness":"usecaseEllipse";return e.shape},"useCaseShape"),p3i=I((e)=>{switch(e){case hp.SOLID_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point"};case hp.BACK_ARROW:return{arrowTypeStart:"arrow_point",arrowTypeEnd:"none"};case hp.CIRCLE_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_circle"};case hp.CROSS_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_cross"};case hp.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:"arrow_circle",arrowTypeEnd:"none"};case hp.CROSS_ARROW_REVERSED:return{arrowTypeStart:"arrow_cross",arrowTypeEnd:"none"};case hp.LINE_SOLID:return{arrowTypeStart:"none",arrowTypeEnd:"none"}}},"associationMarkers"),g3i=I((e)=>{switch(e.type){case"include":case"extend":return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point",pattern:"dotted",label:e.type,labelType:"text"};case"generalization":return{arrowTypeStart:"none",arrowTypeEnd:"extension",pattern:"solid"};case"association":return{...p3i(e.arrowType),pattern:"solid",...e.label?{label:e.label}:{},...e.labelType?{labelType:e.labelType}:{}}}},"relationshipVisuals"),m3i=I((e)=>e.animate||e.animation?[`edge-animation-${e.animation??"fast"}`]:[],"animationClasses"),Joe=I((...e)=>e.filter((r)=>Boolean(r)).join(" "),"classNames"),b3i=I(()=>{let e=Ar(),r={...ru.config,...e.usecase},i=I((p)=>ho(p,e),"sanitize"),a=I((p)=>i(ru.actors.get(p)?.label??ru.useCases.get(p)?.label??ru.jsonNodes.get(p)?.id??ru.notes.get(p)?.label??p),"endpointLabel"),o=[],l=[],h=0,d=0;for(let p of ru.actors.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:d3i(p),isGroup:!1,padding:10,look:e.look,colorIndex:h++,cssClasses:Joe("default","usecase-actor",`usecase-actor-${p.type}`,p.business&&"usecase-business",...p.classes),cssStyles:[...p.styles],cssCompiledStyles:DF(p.classes),actorType:p.type,business:p.business,...p.icon?{icon:p.icon}:{},...p.stereotype?{stereotype:i(p.stereotype)}:{},...p.parentId?{parentId:p.parentId}:{}});for(let p of ru.useCases.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:f3i(p),isGroup:!1,padding:p.shape==="ellipse"?20:10,look:e.look,colorIndex:h++,cssClasses:Joe("default","usecase-element",`usecase-${p.shape}`,p.business&&"usecase-business",...p.classes),cssStyles:[...p.styles],cssCompiledStyles:DF(p.classes),business:p.business,...p.stereotype?{stereotype:i(p.stereotype)}:{},...p.parentId?{parentId:p.parentId}:{}});for(let p of ru.notes.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:"note",isGroup:!1,padding:10,look:e.look,cssClasses:"default usecase-note",cssStyles:[],cssCompiledStyles:DF([]),noteTarget:p.target,noteTargetLabel:i(ru.actors.get(p.target)?.label??ru.useCases.get(p.target)?.label??ru.jsonNodes.get(p.target)?.id??p.target)});for(let p of ru.jsonNodes.values())o.push({id:p.id,label:i(p.id),labelType:"text",shape:"usecaseJsonTable",isGroup:!1,padding:10,look:e.look,cssClasses:Joe("default","usecase-json-table",...p.classes),cssStyles:[...p.styles],cssCompiledStyles:DF(p.classes),jsonRows:h3i(p.value,p.propertyOrder,i)});for(let p of ru.systemBoundaries.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:"usecaseSystemBoundary",isGroup:!0,padding:20,look:e.look,colorIndex:d++,cssClasses:Joe("default","system-boundary",`system-boundary-${p.type}`,...p.classes),cssStyles:[...p.styles],cssCompiledStyles:DF(p.classes),boundaryType:p.type});for(let p of ru.relationships){let{label:m,...y}=g3i(p);l.push({id:p.id,start:p.source,end:p.target,source:p.source,target:p.target,sourceLabel:a(p.source),targetLabel:a(p.target),type:"edge",relationshipType:p.type,internal:!1,...y,...m!==void 0?{label:i(m)}:{},labelpos:"c",classes:Joe("default","relationship",`relationship-${p.type}`,...p.classes,...m3i(p)),style:[...p.styles],cssCompiledStyles:DF(p.classes),animate:p.animate,...p.animation?{animation:p.animation}:{},look:e.look,thickness:"normal",minlen:p.minlen,isUserDefinedId:p.explicitId})}for(let p of ru.notes.values())l.push({id:`${p.id}-edge`,start:p.id,end:p.target,source:p.id,target:p.target,type:"edge",relationshipType:"note",sourceLabel:a(p.id),targetLabel:a(p.target),internal:!0,pattern:"dotted",arrowTypeStart:"none",arrowTypeEnd:"none",labelpos:"c",classes:"default relationship relationship-note",style:[],cssCompiledStyles:DF([]),animate:!1,look:e.look,thickness:"normal",minlen:1,isUserDefinedId:!1});for(let p of o){if(p.wrappingWidth??=r.wrappingWidth,!p.isGroup&&!p.shape.startsWith("usecaseActor"))p.minWidth??=r.minNodeWidth;if(p.shape==="usecaseEllipse"||p.shape==="usecaseBusiness")p.spreadPorts=!0}return{nodes:o,edges:l,config:e,type:"usecase",layoutAlgorithm:"dagre",direction:JZr(),nodeSpacing:r.nodeSpacing,rankSpacing:r.rankSpacing,actorFontSize:r.actorFontSize,actorFontFamily:r.actorFontFamily,actorFontWeight:r.actorFontWeight,usecaseFontSize:r.usecaseFontSize,usecaseFontFamily:r.usecaseFontFamily,usecaseFontWeight:r.usecaseFontWeight,diagramPadding:r.diagramPadding,useMaxWidth:r.useMaxWidth,markers:["point","circle","cross","extension"]}},"getData"),Z3e={getConfig:Wki,createModel:igt,commit:Kki,getAST:jki,clear:Xki,setDiagramTitle:_o,getDiagramTitle:fo,setAccTitle:Ys,getAccTitle:oo,setAccDescription:Js,getAccDescription:lo,getActors:Qki,getActor:Zki,getUseCases:Jki,getUseCase:e3i,getSystemBoundaries:t3i,getSystemBoundary:r3i,getRelationships:n3i,getNotes:i3i,getNote:a3i,getJsonNodes:s3i,getJsonNode:o3i,getClassDefs:l3i,getClassDef:c3i,getDirection:JZr,getData:b3i};I(BF,"customMatch");y3i=I((e,r)=>{if(e[r]!=='"'||e[r+1]!=="`")return null;for(let i=r+2;i{if(e[r]!=="%"||e[r+1]!=="%")return null;for(let a=r-1;a>=0;a--){let o=e[a];if(o===` + For further details.`);this.skipValidations=Object.hasOwn(r,"skipValidations")?r.skipValidations:Nv.skipValidations}}var GI,Nv,wW,fm,W3e;var E2=Re(()=>{hW();_Qr();PF();bW();SZr();U0t();kZr();LZr();MZr();DZr();PZr();BZr();VZr();HZr();Koe();GI=DF(_2,"",-1,-1,-1,-1,-1,-1);Object.freeze(GI);Nv=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:I3e,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),wW=Object.freeze({recoveryValueFunc:()=>{return},resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",e[e.CUSTOM_LOOKAHEAD_VALIDATION=13]="CUSTOM_LOOKAHEAD_VALIDATION"})(fm||(fm={}));tle.DEFER_DEFINITION_ERRORS_HANDLING=!1;qZr(tle,[$0t,z0t,W0t,j0t,X0t,K0t,Q0t,Z0t,J0t]);W3e=class W3e extends tle{constructor(e,r=Nv){let i=Object.assign({},r);i.outputCst=!0;super(e,i)}}});var YZr=Re(()=>{Ov()});var WZr=Re(()=>{YZr()});var jZr=()=>{};var j3e=Re(()=>{E2();zoe();PF();yW();G0t();bW();_W();R0t();Ov();Ov();WZr();jZr()});function nJr(e,r){let i=e.lexer.tokenize(r);if(i.errors.length>0){let o=i.errors[0],l=TW(o.offset)?o.offset:r.length,h=l+(TW(o.length)?o.length:0);throw Error(`Error lexing ${e.diagramType} diagram: ${o.message} at line ${o.line??1}, column ${o.column??1} [${l},${h})`)}e.parser.input=i.tokens;let a=e.entry();if(e.parser.errors.length>0)throw Error(`Error parsing ${e.diagramType} diagram: ${e.parser.errors[0].message}`);e.visit(a)}function $F(e,r,i){let a=[i];return a.index=r,a.input=e,a}function YJr(e,r,i){let a;try{a=JSON.parse(e)}catch(o){let l=o instanceof Error?o.message:String(o),h=G3i(l,e,r,i);if(!h){let d=0;try{new ZZr(e).collect()}catch(p){if(p instanceof ab)d=p.offset}h=sgt(e,d,r,i)}throw new QZr(`Invalid JSON: ${l}`,h.line,h.column)}if(typeof a!=="object"||a===null||Array.isArray(a))throw new QZr("JSON value must have an object root",r,i);return{value:a,propertyOrder:new ZZr(e).collect()}}var TW,hp,Xki="LR",Qki,ogt,Zki,ru,Jki,e3i,t3i,r3i,n3i,i3i,a3i,s3i,o3i,l3i,c3i,u3i,h3i,d3i,f3i,p3i,g3i,iJr,BF,m3i,KZr,b3i,y3i,v3i,_3i,E3i,w3i,rle,S3i,tAe,T3i,x3i,aJr,sJr,C3i,k3i,A3i,l1,xW,lgt,jp,R3i,VI,I3i,tgt,zI,oJr,O3i,N3i,lJr,cJr,uJr,cgt,hJr,vg,dJr,rgt,fJr,pJr,gJr,mJr,bJr,yJr,vJr,_Jr,EJr,wJr,L3i,SJr,TJr,xJr,CJr,kJr,AJr,RJr,IJr,OJr,NJr,ugt,hgt,LJr,MJr,K3e,DJr,X3e,PJr,Q3e,BJr,wT,ngt,Z3e,FJr,igt,J3e,eAe,nle,ile,jC,ale,$Jr,ST,agt,UJr,GJr,zJr,VJr,HJr,M3i,D3i,qJr,P3i,B3i,F3i,XZr,$3i,U3i,sle,QZr,sgt,G3i,ab,ZZr,z3i,V3i,H3i,q3i,Y3i,W3i,j3i,hy,JZr,FF,egt,K3i,X3i,Q3i,Z3i,J3i,eAi,WJr,eJr,tAi,rAe,rAi,nAi,iAi,SW,tJr,aAi,sAi,rJr,oAi,lAi,cAi,uAi,hAi,dAi,jJr;var KJr=Re(()=>{PC();pT();cT();WE();K1();Qm();dg();ip();R0();Bp();Pp();I0();Ql();eo();Zs();Ja();j3e();j3e();j3e();dl();TW=I((e)=>e!==void 0&&e>=0,"isKnownLocation");I(nJr,"runChevrotainParse");hp={SOLID_ARROW:0,BACK_ARROW:1,LINE_SOLID:2,CIRCLE_ARROW:3,CROSS_ARROW:4,CIRCLE_ARROW_REVERSED:5,CROSS_ARROW_REVERSED:6},Qki=Fs.usecase,ogt=I(()=>({actors:new Map,useCases:new Map,systemBoundaries:new Map,relationships:[],notes:new Map,jsonNodes:new Map,classDefs:new Map,symbols:new Map,direction:Xki,relationshipCounter:0,noteCounter:0,accTitle:"",accDescription:"",ast:void 0,config:structuredClone(Qki)}),"createModel"),Zki=I((e)=>{if(!(e.actors instanceof Map)||!(e.useCases instanceof Map)||!(e.systemBoundaries instanceof Map)||!Array.isArray(e.relationships)||!(e.notes instanceof Map)||!(e.jsonNodes instanceof Map)||!(e.classDefs instanceof Map)||!(e.symbols instanceof Map)||!["TB","TD","BT","RL","LR"].includes(e.direction)||!Number.isSafeInteger(e.relationshipCounter)||e.relationshipCounter<0||!Number.isSafeInteger(e.noteCounter)||e.noteCounter<0||typeof e.accTitle!=="string"||typeof e.accDescription!=="string"||!e.config)throw Error("Cannot commit an incomplete usecase model")},"assertCompleteModel"),ru=ogt(),Jki=I(()=>structuredClone(ru.config),"getConfig"),e3i=I(()=>ru.ast,"getAST"),t3i=I((e)=>{let r=structuredClone(e);Zki(r);let i=oo(),a=lo();try{Ys(r.accTitle),Js(r.accDescription),ru=r}catch(o){throw Ys(i),Js(a),o}},"commit"),r3i=I(()=>{ru=ogt(),qs()},"clear"),n3i=I(()=>ru.actors,"getActors"),i3i=I((e)=>ru.actors.get(e),"getActor"),a3i=I(()=>ru.useCases,"getUseCases"),s3i=I((e)=>ru.useCases.get(e),"getUseCase"),o3i=I(()=>ru.systemBoundaries,"getSystemBoundaries"),l3i=I((e)=>ru.systemBoundaries.get(e),"getSystemBoundary"),c3i=I(()=>ru.relationships,"getRelationships"),u3i=I(()=>ru.notes,"getNotes"),h3i=I((e)=>ru.notes.get(e),"getNote"),d3i=I(()=>ru.jsonNodes,"getJsonNodes"),f3i=I((e)=>ru.jsonNodes.get(e),"getJsonNode"),p3i=I(()=>ru.classDefs,"getClassDefs"),g3i=I((e)=>ru.classDefs.get(e),"getClassDef"),iJr=I(()=>ru.direction,"getDirection"),BF=I((e)=>{let r=new Map;for(let i of["default",...e]){let a=ru.classDefs.get(i);if(!a)continue;for(let o of a.styles){let l=o.trim(),h=l.indexOf(":"),d=(h===-1?l:l.slice(0,h)).trim();if(d)r.set(d,l)}}return[...r.values()]},"getCompiledStyles"),m3i=I((e)=>e.replaceAll("~","~0").replaceAll("/","~1"),"escapeJsonPointerPart"),KZr=I((e)=>typeof e==="string"?e:e===null?"null":String(e),"displayJsonScalar"),b3i=I((e,r,i=(a)=>a)=>{let a=[],o=I((h,d,p)=>{a.push({key:i(h),accessibleKey:i(d),value:i(p)})},"append"),l=I((h,d,p)=>{if(Array.isArray(h)){if(h.length===0){o(d,d,"[]");return}if(h.every((y)=>y===null||["string","number","boolean"].includes(typeof y))){for(let[y,v]of h.entries())o(y===0?d:"",d,KZr(v));return}for(let[y,v]of h.entries())l(v,`${d}[${y}]`,`${p}/${y}`);return}if(h!==null&&typeof h==="object"){let m=h,y=r[p]??Object.keys(m);if(y.length===0){o(d,d,"{}");return}for(let v of y){let w=d?`${d}.${v}`:v;l(m[v],w,`${p}/${m3i(v)}`)}return}o(d,d,KZr(h))},"visit");return l(e,"",""),a},"flattenJsonRows"),y3i=I((e)=>{switch(e.type){case"hollow":return"usecaseActorHollow";case"awesome":return"usecaseActorAwesome";case"icon":return"usecaseActorIcon";case"normal":return"usecaseActor"}},"actorShape"),v3i=I((e)=>{if(e.shape==="ellipse")return e.business?"usecaseBusiness":"usecaseEllipse";return e.shape},"useCaseShape"),_3i=I((e)=>{switch(e){case hp.SOLID_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point"};case hp.BACK_ARROW:return{arrowTypeStart:"arrow_point",arrowTypeEnd:"none"};case hp.CIRCLE_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_circle"};case hp.CROSS_ARROW:return{arrowTypeStart:"none",arrowTypeEnd:"arrow_cross"};case hp.CIRCLE_ARROW_REVERSED:return{arrowTypeStart:"arrow_circle",arrowTypeEnd:"none"};case hp.CROSS_ARROW_REVERSED:return{arrowTypeStart:"arrow_cross",arrowTypeEnd:"none"};case hp.LINE_SOLID:return{arrowTypeStart:"none",arrowTypeEnd:"none"}}},"associationMarkers"),E3i=I((e)=>{switch(e.type){case"include":case"extend":return{arrowTypeStart:"none",arrowTypeEnd:"arrow_point",pattern:"dotted",label:e.type,labelType:"text"};case"generalization":return{arrowTypeStart:"none",arrowTypeEnd:"extension",pattern:"solid"};case"association":return{..._3i(e.arrowType),pattern:"solid",...e.label?{label:e.label}:{},...e.labelType?{labelType:e.labelType}:{}}}},"relationshipVisuals"),w3i=I((e)=>e.animate||e.animation?[`edge-animation-${e.animation??"fast"}`]:[],"animationClasses"),rle=I((...e)=>e.filter((r)=>Boolean(r)).join(" "),"classNames"),S3i=I(()=>{let e=Ar(),r={...ru.config,...e.usecase},i=I((p)=>ho(p,e),"sanitize"),a=I((p)=>i(ru.actors.get(p)?.label??ru.useCases.get(p)?.label??ru.jsonNodes.get(p)?.id??ru.notes.get(p)?.label??p),"endpointLabel"),o=[],l=[],h=0,d=0;for(let p of ru.actors.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:y3i(p),isGroup:!1,padding:10,look:e.look,colorIndex:h++,cssClasses:rle("default","usecase-actor",`usecase-actor-${p.type}`,p.business&&"usecase-business",...p.classes),cssStyles:[...p.styles],cssCompiledStyles:BF(p.classes),actorType:p.type,business:p.business,...p.icon?{icon:p.icon}:{},...p.stereotype?{stereotype:i(p.stereotype)}:{},...p.parentId?{parentId:p.parentId}:{}});for(let p of ru.useCases.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:v3i(p),isGroup:!1,padding:p.shape==="ellipse"?20:10,look:e.look,colorIndex:h++,cssClasses:rle("default","usecase-element",`usecase-${p.shape}`,p.business&&"usecase-business",...p.classes),cssStyles:[...p.styles],cssCompiledStyles:BF(p.classes),business:p.business,...p.stereotype?{stereotype:i(p.stereotype)}:{},...p.parentId?{parentId:p.parentId}:{}});for(let p of ru.notes.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:"note",isGroup:!1,padding:10,look:e.look,cssClasses:"default usecase-note",cssStyles:[],cssCompiledStyles:BF([]),noteTarget:p.target,noteTargetLabel:i(ru.actors.get(p.target)?.label??ru.useCases.get(p.target)?.label??ru.jsonNodes.get(p.target)?.id??p.target)});for(let p of ru.jsonNodes.values())o.push({id:p.id,label:i(p.id),labelType:"text",shape:"usecaseJsonTable",isGroup:!1,padding:10,look:e.look,cssClasses:rle("default","usecase-json-table",...p.classes),cssStyles:[...p.styles],cssCompiledStyles:BF(p.classes),jsonRows:b3i(p.value,p.propertyOrder,i)});for(let p of ru.systemBoundaries.values())o.push({id:p.id,label:i(p.label),labelType:p.labelType,shape:"usecaseSystemBoundary",isGroup:!0,padding:20,look:e.look,colorIndex:d++,cssClasses:rle("default","system-boundary",`system-boundary-${p.type}`,...p.classes),cssStyles:[...p.styles],cssCompiledStyles:BF(p.classes),boundaryType:p.type});for(let p of ru.relationships){let{label:m,...y}=E3i(p);l.push({id:p.id,start:p.source,end:p.target,source:p.source,target:p.target,sourceLabel:a(p.source),targetLabel:a(p.target),type:"edge",relationshipType:p.type,internal:!1,...y,...m!==void 0?{label:i(m)}:{},labelpos:"c",classes:rle("default","relationship",`relationship-${p.type}`,...p.classes,...w3i(p)),style:[...p.styles],cssCompiledStyles:BF(p.classes),animate:p.animate,...p.animation?{animation:p.animation}:{},look:e.look,thickness:"normal",minlen:p.minlen,isUserDefinedId:p.explicitId})}for(let p of ru.notes.values())l.push({id:`${p.id}-edge`,start:p.id,end:p.target,source:p.id,target:p.target,type:"edge",relationshipType:"note",sourceLabel:a(p.id),targetLabel:a(p.target),internal:!0,pattern:"dotted",arrowTypeStart:"none",arrowTypeEnd:"none",labelpos:"c",classes:"default relationship relationship-note",style:[],cssCompiledStyles:BF([]),animate:!1,look:e.look,thickness:"normal",minlen:1,isUserDefinedId:!1});for(let p of o){if(p.wrappingWidth??=r.wrappingWidth,!p.isGroup&&!p.shape.startsWith("usecaseActor"))p.minWidth??=r.minNodeWidth;if(p.shape==="usecaseEllipse"||p.shape==="usecaseBusiness")p.spreadPorts=!0}return{nodes:o,edges:l,config:e,type:"usecase",layoutAlgorithm:"dagre",direction:iJr(),nodeSpacing:r.nodeSpacing,rankSpacing:r.rankSpacing,actorFontSize:r.actorFontSize,actorFontFamily:r.actorFontFamily,actorFontWeight:r.actorFontWeight,usecaseFontSize:r.usecaseFontSize,usecaseFontFamily:r.usecaseFontFamily,usecaseFontWeight:r.usecaseFontWeight,diagramPadding:r.diagramPadding,useMaxWidth:r.useMaxWidth,markers:["point","circle","cross","extension"]}},"getData"),tAe={getConfig:Jki,createModel:ogt,commit:t3i,getAST:e3i,clear:r3i,setDiagramTitle:_o,getDiagramTitle:fo,setAccTitle:Ys,getAccTitle:oo,setAccDescription:Js,getAccDescription:lo,getActors:n3i,getActor:i3i,getUseCases:a3i,getUseCase:s3i,getSystemBoundaries:o3i,getSystemBoundary:l3i,getRelationships:c3i,getNotes:u3i,getNote:h3i,getJsonNodes:d3i,getJsonNode:f3i,getClassDefs:p3i,getClassDef:g3i,getDirection:iJr,getData:S3i};I($F,"customMatch");T3i=I((e,r)=>{if(e[r]!=='"'||e[r+1]!=="`")return null;for(let i=r+2;i{if(e[r]!=="%"||e[r+1]!=="%")return null;for(let a=r-1;a>=0;a--){let o=e[a];if(o===` `||o==="\r")break;if(o!==" "&&o!=="\t")return null}let i=r+2;while(i{for(let i=r-1;i>=0;i--){let a=e[i];if(a===` -`||a==="\r")return!0;if(a!==" "&&a!=="\t")return!1}return!0},"isIndentedLineStart"),tJr=I((e,r,i)=>{if(!eJr(e,r))return null;let a=i.exec(e.slice(r));return a?BF(e,r,a[0]):null},"matchAccessibilityLine"),_3i=I((e,r)=>{if(!eJr(e,r))return null;let i=/^accDescr[\t ]*{/.exec(e.slice(r));if(!i)return null;let a=e.indexOf("}",r+i[0].length);return a===-1?null:BF(e,r,e.slice(r,a+1))},"matchAccDescrBlock"),E3i=I((e,r)=>{if(e[r]!=="{")return null;let i=0,a=!1,o=!1;for(let l=r;l{let i=e.indexOf(">>",r);if(i===-1||/[\n\r]/.test(e.slice(r,i)))return null;let a=e.slice(r,i);return a.trim()?BF(e,r,a):null},"matchStereotypeText"),l1=to({name:"LABEL_TEXT",pattern:cp.NA}),wW=to({name:"WORD",pattern:cp.NA,categories:l1}),agt=to({name:"NUMBER",pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:l1}),jp=to({name:"IDENTIFIER",pattern:/\w+/,longer_alt:agt,categories:wW}),S3i=to({name:"HWS",pattern:/[\t ]+/,group:cp.SKIPPED}),UI=to({name:"MARKDOWN_STRING",pattern:y3i,start_chars_hint:['"'],line_breaks:!0}),T3i=to({name:"UNCLOSED_MARKDOWN_STRING",pattern:/"`[^]*/,line_breaks:!0}),Z0t=to({name:"COMMENT",pattern:v3i,start_chars_hint:["%"],line_breaks:!1}),$I=to({name:"NEWLINE",pattern:/\r\n|\n|\r/,line_breaks:!0}),rJr=to({name:"ACC_DESCR_BLOCK",pattern:_3i,start_chars_hint:["a"],line_breaks:!0}),x3i=/^accTitle[\t ]*:[^\n\r]*/,C3i=/^accDescr[\t ]*:[^\n\r]*/,nJr=to({name:"ACC_TITLE_LINE",pattern:I((e,r)=>tJr(e,r,x3i),"pattern"),start_chars_hint:["a"],line_breaks:!1}),iJr=to({name:"ACC_DESCR_LINE",pattern:I((e,r)=>tJr(e,r,C3i),"pattern"),start_chars_hint:["a"],line_breaks:!1}),aJr=to({name:"JSON_DECLARATION_START",pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:"jsonBody"}),sgt=to({name:"JSON_OBJECT_LITERAL",pattern:E3i,start_chars_hint:["{"],line_breaks:!0,pop_mode:!0}),sJr=to({name:"UNCLOSED_JSON_OBJECT_LITERAL",pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),vg=I((e,r)=>to({name:e,pattern:r,longer_alt:jp,categories:wW}),"keyword"),oJr=vg("USECASE",/usecase-beta/),J0t=vg("ACTOR",/actor/),lJr=vg("SYSTEM_BOUNDARY",/systemBoundary/),cJr=vg("END",/end/),uJr=vg("DIRECTION",/direction/),hJr=vg("TD",/TD/),dJr=vg("TB",/TB/),fJr=vg("BT",/BT/),pJr=vg("LR",/LR/),gJr=vg("RL",/RL/),mJr=vg("NOTE",/note/),bJr=vg("FOR",/for/),k3i=vg("JSON",/json/),yJr=vg("CLASS_DEF",/classDef/),vJr=vg("CLASS",/class/),_Jr=vg("STYLE",/style/),EJr=vg("INCLUDE",/include/i),wJr=vg("EXTEND",/extend/i),SJr=vg("TRUE",/true/),TJr=vg("FALSE",/false/),xJr=to({name:"GENERALIZATION",pattern:/--\|>/}),CJr=to({name:"DEPENDENCY_ARROW",pattern:/\.\.>/}),kJr=to({name:"STEREOTYPE_START",pattern:/<>/,pop_mode:!0}),lgt=to({name:"STEREOTYPE_TEXT",pattern:w3i,line_breaks:!1}),AJr=to({name:"UNCLOSED_STEREOTYPE_TEXT",pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),RJr=to({name:"CLASS_SEPARATOR",pattern:/:::/}),Y3e=to({name:"FORWARD_SOLID",pattern:/--+>/}),IJr=to({name:"BACKWARD_SOLID",pattern:/<--+/}),W3e=to({name:"FORWARD_CIRCLE",pattern:/--o/}),OJr=to({name:"BACKWARD_CIRCLE",pattern:/o--/}),j3e=to({name:"FORWARD_CROSS",pattern:/--x/}),NJr=to({name:"BACKWARD_CROSS",pattern:/x--/}),ET=to({name:"MARKERLESS_SOLID",pattern:/--+/}),egt=to({name:"METADATA_START",pattern:/@{/}),K3e=to({name:"AT",pattern:/@/,categories:l1}),LJr=to({name:"LBRACE",pattern:/{/}),tgt=to({name:"RBRACE",pattern:/}/}),X3e=to({name:"LBRACKET",pattern:/\[/}),Q3e=to({name:"RBRACKET",pattern:/]/}),ele=to({name:"LPAREN",pattern:/\(/}),tle=to({name:"RPAREN",pattern:/\)/}),YC=to({name:"COMMA",pattern:/,/,categories:l1}),rle=to({name:"COLON",pattern:/:/,categories:l1}),MJr=to({name:"HASH_COLOR",pattern:/#[\dA-Fa-f]+/,categories:l1}),wT=to({name:"PLAIN_STRING",pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),rgt=to({name:"CSS_IDENTIFIER",pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:l1}),DJr=to({name:"CSS_ESCAPED_COMMA",pattern:/\\,/,categories:l1}),PJr=to({name:"DASH",pattern:/-/,categories:l1}),BJr=to({name:"DOT",pattern:/\./,categories:l1}),FJr=to({name:"PERCENT",pattern:/%/,categories:l1}),$Jr=to({name:"CSS_PUNCTUATION",pattern:/[!#$&*+/=?^_|~]/,categories:l1}),A3i=to({name:"LABEL_PUNCTUATION",pattern:/[;<>\\`]/,categories:l1}),R3i=to({name:"LABEL_SYMBOL",pattern:/[^\t\n\r !-~]+/,categories:l1}),UJr=[l1,wW,S3i,UI,T3i,Z0t,$I,rJr,nJr,iJr,aJr,oJr,J0t,lJr,cJr,uJr,hJr,dJr,fJr,pJr,gJr,mJr,bJr,k3i,yJr,vJr,_Jr,EJr,wJr,SJr,TJr,xJr,CJr,kJr,RJr,Y3e,IJr,W3e,OJr,j3e,NJr,ET,egt,K3e,LJr,tgt,X3e,Q3e,ele,tle,YC,rle,MJr,wT,rgt,jp,agt,DJr,PJr,BJr,FJr,$Jr,A3i,R3i],I3i={defaultMode:"defaultMode",modes:{defaultMode:[...UJr],jsonBody:[sgt,sJr],stereotype:[ogt,lgt,AJr]}},O3i=[...UJr,sgt,sJr,ogt,lgt,AJr],N3i=new cp(I3i),qZr=I((e)=>Goe(e,l1)||e.tokenType===wT||e.tokenType===UI,"isLabelToken"),L3i={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},M3i=class extends H3e{static{I(this,"UsecaseParser")}constructor(){super(O3i,{nodeLocationTracking:"full"});this.RULE("start",()=>{this.CONSUME(oJr),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE("line",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:I(()=>this.SUBRULE(this.commentLine),"ALT")},{GATE:I(()=>this.isStatementStart(),"GATE"),ALT:I(()=>this.SUBRULE(this.statement),"ALT")}])}),this.RULE("statement",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.accTitleStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.accDescrStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.directionStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.actorStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.systemBoundaryStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.noteStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.jsonStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.classDefStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.classStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.styleStatement),"ALT")},{GATE:I(()=>this.isMetadataAssignment(),"GATE"),ALT:I(()=>this.SUBRULE(this.metadataAssignmentStatement),"ALT")},{GATE:I(()=>!this.isForbiddenPlantUmlStatement(),"GATE"),ALT:I(()=>this.SUBRULE(this.entityStatement),"ALT")}])}),this.RULE("lineEnd",()=>{this.OR([{ALT:I(()=>this.CONSUME($I),"ALT")},{ALT:I(()=>this.CONSUME(_2),"ALT")}])}),this.RULE("blankLine",()=>{this.CONSUME($I)}),this.RULE("commentLine",()=>{this.CONSUME(Z0t),this.SUBRULE(this.lineEnd)}),this.RULE("accTitleStatement",()=>{this.CONSUME(nJr),this.SUBRULE(this.lineEnd)}),this.RULE("accDescrStatement",()=>{this.OR([{ALT:I(()=>this.CONSUME(iJr),"ALT")},{ALT:I(()=>this.CONSUME(rJr),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("actorStatement",()=>{this.CONSUME(J0t),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:I(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(YC),this.SUBRULE2(this.actorItem)}),"ALT")},{ALT:I(()=>this.SUBRULE(this.relationTail),"ALT")}])}),this.SUBRULE(this.lineEnd)}),this.RULE("actorItem",()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE("actorName",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jp),this.OPTION(()=>{this.CONSUME(ele),this.SUBRULE(this.nodeLabel),this.CONSUME(tle)})},"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(UI),"ALT")}])}),this.RULE("actorDeclarationOnly",()=>{this.CONSUME(J0t),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(YC),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE("entityStatement",()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE("entityName",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jp),this.OPTION(()=>{this.OR2([{ALT:I(()=>{this.CONSUME(ele),this.SUBRULE(this.nodeLabel),this.CONSUME(tle)},"ALT")},{ALT:I(()=>{this.CONSUME(X3e),this.SUBRULE2(this.nodeLabel),this.CONSUME(Q3e)},"ALT")}])})},"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(UI),"ALT")}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE("nodeLabel",()=>{this.OR([{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(UI),"ALT")},{ALT:I(()=>this.AT_LEAST_ONE(()=>this.CONSUME(l1)),"ALT")}])}),this.RULE("useCaseMetadata",()=>{this.SUBRULE(this.metadata)}),this.RULE("relationTail",()=>{this.OPTION({GATE:I(()=>this.LA(1).tokenType===jp&&this.LA(2).tokenType===K3e,"GATE"),DEF:I(()=>{this.CONSUME(jp),this.CONSUME(K3e)},"DEF")}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE("arrow",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.semanticRelation),"ALT")},{ALT:I(()=>this.SUBRULE(this.forwardSolidOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.backwardSolidOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.markerlessSolidOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.forwardCircleOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.backwardCircleOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.forwardCrossOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.backwardCrossOperator),"ALT")}])}),this.RULE("forwardSolidOperator",()=>{this.CONSUME(Y3e)}),this.RULE("backwardSolidOperator",()=>{this.CONSUME(IJr),this.OPTION({GATE:I(()=>this.LA(0).image==="<--"&&this.hasLabeledRight([ET]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(ET)},"DEF")})}),this.RULE("markerlessSolidOperator",()=>{this.CONSUME(ET),this.OPTION({GATE:I(()=>this.LA(0).image==="--"&&this.hasLabeledRight([Y3e,ET,W3e,j3e]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:I(()=>this.CONSUME(Y3e),"ALT")},{ALT:I(()=>this.CONSUME2(ET),"ALT")},{ALT:I(()=>this.CONSUME(W3e),"ALT")},{ALT:I(()=>this.CONSUME(j3e),"ALT")}])},"DEF")})}),this.RULE("forwardCircleOperator",()=>{this.CONSUME(W3e)}),this.RULE("backwardCircleOperator",()=>{this.CONSUME(OJr),this.OPTION({GATE:I(()=>this.hasLabeledRight([ET]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(ET)},"DEF")})}),this.RULE("forwardCrossOperator",()=>{this.CONSUME(j3e)}),this.RULE("backwardCrossOperator",()=>{this.CONSUME(NJr),this.OPTION({GATE:I(()=>this.hasLabeledRight([ET]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(ET)},"DEF")})}),this.RULE("edgeLabel",()=>{this.OR([{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(UI),"ALT")},{ALT:I(()=>this.AT_LEAST_ONE(()=>this.CONSUME(l1)),"ALT")}])}),this.RULE("semanticRelation",()=>{this.OR([{ALT:I(()=>{this.CONSUME(CJr),this.CONSUME(rle),this.OR2([{ALT:I(()=>this.CONSUME(EJr),"ALT")},{ALT:I(()=>this.CONSUME(wJr),"ALT")}])},"ALT")},{ALT:I(()=>this.CONSUME(xJr),"ALT")}])}),this.RULE("metadata",()=>{this.CONSUME(egt),this.MANY(()=>this.CONSUME($I)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(YC)),this.MANY3(()=>this.CONSUME2($I))}),this.CONSUME(tgt)}),this.RULE("metadataProperty",()=>{this.OR([{ALT:I(()=>this.CONSUME(jp),"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")}]),this.CONSUME(rle),this.OR2([{ALT:I(()=>this.CONSUME2(jp),"ALT")},{ALT:I(()=>this.CONSUME2(wT),"ALT")},{ALT:I(()=>this.CONSUME(SJr),"ALT")},{ALT:I(()=>this.CONSUME(TJr),"ALT")}])}),this.RULE("metadataSeparator",()=>{this.OR([{ALT:I(()=>{this.CONSUME(YC),this.MANY(()=>this.CONSUME($I))},"ALT")},{ALT:I(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2($I)),this.OPTION(()=>this.CONSUME2(YC)),this.MANY2(()=>this.CONSUME3($I))},"ALT")}])}),this.RULE("systemBoundaryStatement",()=>{this.CONSUME(lJr),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(cJr),this.SUBRULE2(this.lineEnd)}),this.RULE("systemBoundaryName",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jp),this.OPTION(()=>{this.OR2([{ALT:I(()=>{this.CONSUME(ele),this.SUBRULE(this.nodeLabel),this.CONSUME(tle)},"ALT")},{ALT:I(()=>{this.CONSUME(X3e),this.SUBRULE2(this.nodeLabel),this.CONSUME(Q3e)},"ALT")}])})},"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(UI),"ALT")}])}),this.RULE("systemBoundaryContent",()=>{this.MANY(()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:I(()=>this.SUBRULE(this.commentLine),"ALT")},{ALT:I(()=>this.SUBRULE(this.boundaryElement),"ALT")}])})}),this.RULE("boundaryElement",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.actorDeclarationOnly),"ALT")},{ALT:I(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},"ALT")}])}),this.RULE("metadataAssignmentStatement",()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE("metadataAssignmentTarget",()=>{this.OR([{ALT:I(()=>this.CONSUME(jp),"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(UI),"ALT")}])}),this.RULE("noteStatement",()=>{this.CONSUME(mJr),this.CONSUME(bJr),this.CONSUME(jp),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE("stereotype",()=>{this.CONSUME(kJr),this.CONSUME(lgt),this.CONSUME(ogt)}),this.RULE("classSuffix",()=>{this.CONSUME(RJr),this.CONSUME(jp),this.MANY(()=>{this.CONSUME(YC),this.CONSUME2(jp)})}),this.RULE("jsonStatement",()=>{this.CONSUME(aJr),this.CONSUME(sgt),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE("directionStatement",()=>{this.CONSUME(uJr),this.OR([{ALT:I(()=>this.CONSUME(hJr),"ALT")},{ALT:I(()=>this.CONSUME(dJr),"ALT")},{ALT:I(()=>this.CONSUME(fJr),"ALT")},{ALT:I(()=>this.CONSUME(pJr),"ALT")},{ALT:I(()=>this.CONSUME(gJr),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("classDefStatement",()=>{this.CONSUME(yJr),this.CONSUME(jp),this.MANY(()=>{this.CONSUME(YC),this.CONSUME2(jp)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("classStatement",()=>{this.CONSUME(vJr),this.CONSUME(jp),this.MANY(()=>{this.CONSUME(YC),this.CONSUME2(jp)}),this.CONSUME3(jp),this.MANY2(()=>{this.CONSUME2(YC),this.CONSUME4(jp)}),this.SUBRULE(this.lineEnd)}),this.RULE("styleStatement",()=>{this.CONSUME(_Jr),this.CONSUME(jp),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("styles",()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(YC),this.SUBRULE2(this.styleValue)})}),this.RULE("styleValue",()=>{this.OR([{ALT:I(()=>this.CONSUME(wW),"ALT")},{ALT:I(()=>this.CONSUME(rgt),"ALT")},{ALT:I(()=>{this.CONSUME(ET),this.CONSUME2(wW)},"ALT")}]),this.CONSUME(rle),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE("styleComponent",()=>{this.OR([{ALT:I(()=>this.CONSUME(wW),"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")},{ALT:I(()=>this.CONSUME(agt),"ALT")},{ALT:I(()=>this.CONSUME(MJr),"ALT")},{ALT:I(()=>this.CONSUME(rgt),"ALT")},{ALT:I(()=>this.CONSUME(DJr),"ALT")},{ALT:I(()=>this.CONSUME(PJr),"ALT")},{ALT:I(()=>this.CONSUME(BJr),"ALT")},{ALT:I(()=>this.CONSUME(FJr),"ALT")},{ALT:I(()=>this.CONSUME($Jr),"ALT")},{ALT:I(()=>this.CONSUME(rle),"ALT")},{ALT:I(()=>this.CONSUME(ele),"ALT")},{ALT:I(()=>this.CONSUME(tle),"ALT")},{ALT:I(()=>this.CONSUME(X3e),"ALT")},{ALT:I(()=>this.CONSUME(Q3e),"ALT")},{ALT:I(()=>this.CONSUME(LJr),"ALT")},{ALT:I(()=>this.CONSUME(tgt),"ALT")},{ALT:I(()=>this.CONSUME(K3e),"ALT")},{ALT:I(()=>this.CONSUME(ET),"ALT")}])}),this.performSelfAnalysis()}isMetadataAssignment(){let e=this.LA(1).tokenType;return(e===jp||e===wT||e===UI)&&this.LA(2).tokenType===egt}isStatementStart(){let e=this.LA(1).tokenType;return e!==_2&&e!==$I&&e!==Z0t}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===jp&&L3i[this.LA(1).image.toLowerCase()]===!0}hasLabeledRight(e){if(!qZr(this.LA(1)))return!1;for(let r=2;;r++){let i=this.LA(r);if(e.includes(i.tokenType))return!0;if(!qZr(i))return!1}}},nle=new M3i,YZr=class extends Error{constructor(e,r,i){super(`${e} (line ${r}, column ${i})`);this.line=r,this.column=i,this.name="UsecaseJsonError"}static{I(this,"UsecaseJsonError")}},ngt=I((e,r,i,a)=>{let o=i,l=a,h=Math.min(Math.max(r,0),e.length);for(let d=0;d{let o=/\bposition (\d+)\b/u.exec(e);if(o)return ngt(r,Number.parseInt(o[1],10),i,a);let l=/\bline (\d+) column (\d+)\b/u.exec(e);if(l){let h=Number.parseInt(l[1],10),d=Number.parseInt(l[2],10);return{line:i+h-1,column:h===1?a+d-1:d}}if(/unexpected end|end of json input/iu.test(e))return ngt(r,r.length,i,a);return},"locationFromErrorMessage"),ab=class extends Error{constructor(e){super("Invalid JSON token");this.offset=e}static{I(this,"JsonWalkError")}},WZr=class{constructor(e){this.text=e,this.offset=0,this.propertyOrder={}}static{I(this,"PropertyOrderCollector")}collect(){if(this.skipWhitespace(),this.collectValue(""),this.skipWhitespace(),this.offset!==this.text.length)throw new ab(this.offset);return this.propertyOrder}collectValue(e){this.skipWhitespace();let r=this.text[this.offset];if(r==="{")this.collectObject(e);else if(r==="[")this.collectArray(e);else if(r==='"')this.readString(!1);else if(r==="t")this.consumeLiteral("true");else if(r==="f")this.consumeLiteral("false");else if(r==="n")this.consumeLiteral("null");else if(r==="-"||r>="0"&&r<="9")this.consumeNumber();else throw new ab(this.offset)}collectObject(e){this.offset++;let r=[],i=new Set;if(this.propertyOrder[e]=r,this.skipWhitespace(),this.text[this.offset]==="}"){this.offset++;return}while(this.offset{for(let i=r-1;i>=0;i--){let a=e[i];if(a===` +`||a==="\r")return!0;if(a!==" "&&a!=="\t")return!1}return!0},"isIndentedLineStart"),sJr=I((e,r,i)=>{if(!aJr(e,r))return null;let a=i.exec(e.slice(r));return a?$F(e,r,a[0]):null},"matchAccessibilityLine"),C3i=I((e,r)=>{if(!aJr(e,r))return null;let i=/^accDescr[\t ]*{/.exec(e.slice(r));if(!i)return null;let a=e.indexOf("}",r+i[0].length);return a===-1?null:$F(e,r,e.slice(r,a+1))},"matchAccDescrBlock"),k3i=I((e,r)=>{if(e[r]!=="{")return null;let i=0,a=!1,o=!1;for(let l=r;l{let i=e.indexOf(">>",r);if(i===-1||/[\n\r]/.test(e.slice(r,i)))return null;let a=e.slice(r,i);return a.trim()?$F(e,r,a):null},"matchStereotypeText"),l1=to({name:"LABEL_TEXT",pattern:cp.NA}),xW=to({name:"WORD",pattern:cp.NA,categories:l1}),lgt=to({name:"NUMBER",pattern:/(?:\d+\.\d+|\d+|\.\d+)(?:[A-Za-z]+)?/,categories:l1}),jp=to({name:"IDENTIFIER",pattern:/\w+/,longer_alt:lgt,categories:xW}),R3i=to({name:"HWS",pattern:/[\t ]+/,group:cp.SKIPPED}),VI=to({name:"MARKDOWN_STRING",pattern:T3i,start_chars_hint:['"'],line_breaks:!0}),I3i=to({name:"UNCLOSED_MARKDOWN_STRING",pattern:/"`[^]*/,line_breaks:!0}),tgt=to({name:"COMMENT",pattern:x3i,start_chars_hint:["%"],line_breaks:!1}),zI=to({name:"NEWLINE",pattern:/\r\n|\n|\r/,line_breaks:!0}),oJr=to({name:"ACC_DESCR_BLOCK",pattern:C3i,start_chars_hint:["a"],line_breaks:!0}),O3i=/^accTitle[\t ]*:[^\n\r]*/,N3i=/^accDescr[\t ]*:[^\n\r]*/,lJr=to({name:"ACC_TITLE_LINE",pattern:I((e,r)=>sJr(e,r,O3i),"pattern"),start_chars_hint:["a"],line_breaks:!1}),cJr=to({name:"ACC_DESCR_LINE",pattern:I((e,r)=>sJr(e,r,N3i),"pattern"),start_chars_hint:["a"],line_breaks:!1}),uJr=to({name:"JSON_DECLARATION_START",pattern:/json[\t ]+\w+[\t ]*@[\t ]*(?={)/,push_mode:"jsonBody"}),cgt=to({name:"JSON_OBJECT_LITERAL",pattern:k3i,start_chars_hint:["{"],line_breaks:!0,pop_mode:!0}),hJr=to({name:"UNCLOSED_JSON_OBJECT_LITERAL",pattern:/{[^]*/,line_breaks:!0,pop_mode:!0}),vg=I((e,r)=>to({name:e,pattern:r,longer_alt:jp,categories:xW}),"keyword"),dJr=vg("USECASE",/usecase-beta/),rgt=vg("ACTOR",/actor/),fJr=vg("SYSTEM_BOUNDARY",/systemBoundary/),pJr=vg("END",/end/),gJr=vg("DIRECTION",/direction/),mJr=vg("TD",/TD/),bJr=vg("TB",/TB/),yJr=vg("BT",/BT/),vJr=vg("LR",/LR/),_Jr=vg("RL",/RL/),EJr=vg("NOTE",/note/),wJr=vg("FOR",/for/),L3i=vg("JSON",/json/),SJr=vg("CLASS_DEF",/classDef/),TJr=vg("CLASS",/class/),xJr=vg("STYLE",/style/),CJr=vg("INCLUDE",/include/i),kJr=vg("EXTEND",/extend/i),AJr=vg("TRUE",/true/),RJr=vg("FALSE",/false/),IJr=to({name:"GENERALIZATION",pattern:/--\|>/}),OJr=to({name:"DEPENDENCY_ARROW",pattern:/\.\.>/}),NJr=to({name:"STEREOTYPE_START",pattern:/<>/,pop_mode:!0}),hgt=to({name:"STEREOTYPE_TEXT",pattern:A3i,line_breaks:!1}),LJr=to({name:"UNCLOSED_STEREOTYPE_TEXT",pattern:/[^\n\r]+/,line_breaks:!1,pop_mode:!0}),MJr=to({name:"CLASS_SEPARATOR",pattern:/:::/}),K3e=to({name:"FORWARD_SOLID",pattern:/--+>/}),DJr=to({name:"BACKWARD_SOLID",pattern:/<--+/}),X3e=to({name:"FORWARD_CIRCLE",pattern:/--o/}),PJr=to({name:"BACKWARD_CIRCLE",pattern:/o--/}),Q3e=to({name:"FORWARD_CROSS",pattern:/--x/}),BJr=to({name:"BACKWARD_CROSS",pattern:/x--/}),wT=to({name:"MARKERLESS_SOLID",pattern:/--+/}),ngt=to({name:"METADATA_START",pattern:/@{/}),Z3e=to({name:"AT",pattern:/@/,categories:l1}),FJr=to({name:"LBRACE",pattern:/{/}),igt=to({name:"RBRACE",pattern:/}/}),J3e=to({name:"LBRACKET",pattern:/\[/}),eAe=to({name:"RBRACKET",pattern:/]/}),nle=to({name:"LPAREN",pattern:/\(/}),ile=to({name:"RPAREN",pattern:/\)/}),jC=to({name:"COMMA",pattern:/,/,categories:l1}),ale=to({name:"COLON",pattern:/:/,categories:l1}),$Jr=to({name:"HASH_COLOR",pattern:/#[\dA-Fa-f]+/,categories:l1}),ST=to({name:"PLAIN_STRING",pattern:/"[^\n\r"]*"|'[^\n\r']*'/}),agt=to({name:"CSS_IDENTIFIER",pattern:/--[A-Z_a-z][\w-]*|[A-Z_a-z]\w*(?:-\w+)+/,categories:l1}),UJr=to({name:"CSS_ESCAPED_COMMA",pattern:/\\,/,categories:l1}),GJr=to({name:"DASH",pattern:/-/,categories:l1}),zJr=to({name:"DOT",pattern:/\./,categories:l1}),VJr=to({name:"PERCENT",pattern:/%/,categories:l1}),HJr=to({name:"CSS_PUNCTUATION",pattern:/[!#$&*+/=?^_|~]/,categories:l1}),M3i=to({name:"LABEL_PUNCTUATION",pattern:/[;<>\\`]/,categories:l1}),D3i=to({name:"LABEL_SYMBOL",pattern:/[^\t\n\r !-~]+/,categories:l1}),qJr=[l1,xW,R3i,VI,I3i,tgt,zI,oJr,lJr,cJr,uJr,dJr,rgt,fJr,pJr,gJr,mJr,bJr,yJr,vJr,_Jr,EJr,wJr,L3i,SJr,TJr,xJr,CJr,kJr,AJr,RJr,IJr,OJr,NJr,MJr,K3e,DJr,X3e,PJr,Q3e,BJr,wT,ngt,Z3e,FJr,igt,J3e,eAe,nle,ile,jC,ale,$Jr,ST,agt,jp,lgt,UJr,GJr,zJr,VJr,HJr,M3i,D3i],P3i={defaultMode:"defaultMode",modes:{defaultMode:[...qJr],jsonBody:[cgt,hJr],stereotype:[ugt,hgt,LJr]}},B3i=[...qJr,cgt,hJr,ugt,hgt,LJr],F3i=new cp(P3i),XZr=I((e)=>Hoe(e,l1)||e.tokenType===ST||e.tokenType===VI,"isLabelToken"),$3i={allowmixing:!0,newpage:!0,package:!0,rectangle:!0,skinparam:!0},U3i=class extends W3e{static{I(this,"UsecaseParser")}constructor(){super(B3i,{nodeLocationTracking:"full"});this.RULE("start",()=>{this.CONSUME(dJr),this.SUBRULE(this.lineEnd),this.MANY(()=>this.SUBRULE(this.line))}),this.RULE("line",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:I(()=>this.SUBRULE(this.commentLine),"ALT")},{GATE:I(()=>this.isStatementStart(),"GATE"),ALT:I(()=>this.SUBRULE(this.statement),"ALT")}])}),this.RULE("statement",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.accTitleStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.accDescrStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.directionStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.actorStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.systemBoundaryStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.noteStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.jsonStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.classDefStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.classStatement),"ALT")},{ALT:I(()=>this.SUBRULE(this.styleStatement),"ALT")},{GATE:I(()=>this.isMetadataAssignment(),"GATE"),ALT:I(()=>this.SUBRULE(this.metadataAssignmentStatement),"ALT")},{GATE:I(()=>!this.isForbiddenPlantUmlStatement(),"GATE"),ALT:I(()=>this.SUBRULE(this.entityStatement),"ALT")}])}),this.RULE("lineEnd",()=>{this.OR([{ALT:I(()=>this.CONSUME(zI),"ALT")},{ALT:I(()=>this.CONSUME(_2),"ALT")}])}),this.RULE("blankLine",()=>{this.CONSUME(zI)}),this.RULE("commentLine",()=>{this.CONSUME(tgt),this.SUBRULE(this.lineEnd)}),this.RULE("accTitleStatement",()=>{this.CONSUME(lJr),this.SUBRULE(this.lineEnd)}),this.RULE("accDescrStatement",()=>{this.OR([{ALT:I(()=>this.CONSUME(cJr),"ALT")},{ALT:I(()=>this.CONSUME(oJr),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("actorStatement",()=>{this.CONSUME(rgt),this.SUBRULE(this.actorItem),this.OPTION(()=>{this.OR([{ALT:I(()=>this.AT_LEAST_ONE(()=>{this.CONSUME(jC),this.SUBRULE2(this.actorItem)}),"ALT")},{ALT:I(()=>this.SUBRULE(this.relationTail),"ALT")}])}),this.SUBRULE(this.lineEnd)}),this.RULE("actorItem",()=>{this.SUBRULE(this.actorName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.stereotype)),this.OPTION3(()=>this.SUBRULE(this.classSuffix))}),this.RULE("actorName",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jp),this.OPTION(()=>{this.CONSUME(nle),this.SUBRULE(this.nodeLabel),this.CONSUME(ile)})},"ALT")},{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(VI),"ALT")}])}),this.RULE("actorDeclarationOnly",()=>{this.CONSUME(rgt),this.SUBRULE(this.actorItem),this.MANY(()=>{this.CONSUME(jC),this.SUBRULE2(this.actorItem)}),this.SUBRULE(this.lineEnd)}),this.RULE("entityStatement",()=>{this.SUBRULE(this.entityName),this.OPTION(()=>this.SUBRULE(this.relationTail)),this.SUBRULE(this.lineEnd)}),this.RULE("entityName",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jp),this.OPTION(()=>{this.OR2([{ALT:I(()=>{this.CONSUME(nle),this.SUBRULE(this.nodeLabel),this.CONSUME(ile)},"ALT")},{ALT:I(()=>{this.CONSUME(J3e),this.SUBRULE2(this.nodeLabel),this.CONSUME(eAe)},"ALT")}])})},"ALT")},{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(VI),"ALT")}]),this.OPTION2(()=>this.SUBRULE(this.useCaseMetadata)),this.OPTION3(()=>this.SUBRULE(this.stereotype)),this.OPTION4(()=>this.SUBRULE(this.classSuffix))}),this.RULE("nodeLabel",()=>{this.OR([{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(VI),"ALT")},{ALT:I(()=>this.AT_LEAST_ONE(()=>this.CONSUME(l1)),"ALT")}])}),this.RULE("useCaseMetadata",()=>{this.SUBRULE(this.metadata)}),this.RULE("relationTail",()=>{this.OPTION({GATE:I(()=>this.LA(1).tokenType===jp&&this.LA(2).tokenType===Z3e,"GATE"),DEF:I(()=>{this.CONSUME(jp),this.CONSUME(Z3e)},"DEF")}),this.SUBRULE(this.arrow),this.SUBRULE(this.entityName)}),this.RULE("arrow",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.semanticRelation),"ALT")},{ALT:I(()=>this.SUBRULE(this.forwardSolidOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.backwardSolidOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.markerlessSolidOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.forwardCircleOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.backwardCircleOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.forwardCrossOperator),"ALT")},{ALT:I(()=>this.SUBRULE(this.backwardCrossOperator),"ALT")}])}),this.RULE("forwardSolidOperator",()=>{this.CONSUME(K3e)}),this.RULE("backwardSolidOperator",()=>{this.CONSUME(DJr),this.OPTION({GATE:I(()=>this.LA(0).image==="<--"&&this.hasLabeledRight([wT]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(wT)},"DEF")})}),this.RULE("markerlessSolidOperator",()=>{this.CONSUME(wT),this.OPTION({GATE:I(()=>this.LA(0).image==="--"&&this.hasLabeledRight([K3e,wT,X3e,Q3e]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.OR([{ALT:I(()=>this.CONSUME(K3e),"ALT")},{ALT:I(()=>this.CONSUME2(wT),"ALT")},{ALT:I(()=>this.CONSUME(X3e),"ALT")},{ALT:I(()=>this.CONSUME(Q3e),"ALT")}])},"DEF")})}),this.RULE("forwardCircleOperator",()=>{this.CONSUME(X3e)}),this.RULE("backwardCircleOperator",()=>{this.CONSUME(PJr),this.OPTION({GATE:I(()=>this.hasLabeledRight([wT]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(wT)},"DEF")})}),this.RULE("forwardCrossOperator",()=>{this.CONSUME(Q3e)}),this.RULE("backwardCrossOperator",()=>{this.CONSUME(BJr),this.OPTION({GATE:I(()=>this.hasLabeledRight([wT]),"GATE"),DEF:I(()=>{this.SUBRULE(this.edgeLabel),this.CONSUME(wT)},"DEF")})}),this.RULE("edgeLabel",()=>{this.OR([{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(VI),"ALT")},{ALT:I(()=>this.AT_LEAST_ONE(()=>this.CONSUME(l1)),"ALT")}])}),this.RULE("semanticRelation",()=>{this.OR([{ALT:I(()=>{this.CONSUME(OJr),this.CONSUME(ale),this.OR2([{ALT:I(()=>this.CONSUME(CJr),"ALT")},{ALT:I(()=>this.CONSUME(kJr),"ALT")}])},"ALT")},{ALT:I(()=>this.CONSUME(IJr),"ALT")}])}),this.RULE("metadata",()=>{this.CONSUME(ngt),this.MANY(()=>this.CONSUME(zI)),this.OPTION(()=>{this.SUBRULE(this.metadataProperty),this.MANY2(()=>{this.SUBRULE(this.metadataSeparator),this.SUBRULE2(this.metadataProperty)}),this.OPTION2(()=>this.CONSUME(jC)),this.MANY3(()=>this.CONSUME2(zI))}),this.CONSUME(igt)}),this.RULE("metadataProperty",()=>{this.OR([{ALT:I(()=>this.CONSUME(jp),"ALT")},{ALT:I(()=>this.CONSUME(ST),"ALT")}]),this.CONSUME(ale),this.OR2([{ALT:I(()=>this.CONSUME2(jp),"ALT")},{ALT:I(()=>this.CONSUME2(ST),"ALT")},{ALT:I(()=>this.CONSUME(AJr),"ALT")},{ALT:I(()=>this.CONSUME(RJr),"ALT")}])}),this.RULE("metadataSeparator",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jC),this.MANY(()=>this.CONSUME(zI))},"ALT")},{ALT:I(()=>{this.AT_LEAST_ONE(()=>this.CONSUME2(zI)),this.OPTION(()=>this.CONSUME2(jC)),this.MANY2(()=>this.CONSUME3(zI))},"ALT")}])}),this.RULE("systemBoundaryStatement",()=>{this.CONSUME(fJr),this.SUBRULE(this.systemBoundaryName),this.OPTION(()=>this.SUBRULE(this.metadata)),this.OPTION2(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd),this.SUBRULE(this.systemBoundaryContent),this.CONSUME(pJr),this.SUBRULE2(this.lineEnd)}),this.RULE("systemBoundaryName",()=>{this.OR([{ALT:I(()=>{this.CONSUME(jp),this.OPTION(()=>{this.OR2([{ALT:I(()=>{this.CONSUME(nle),this.SUBRULE(this.nodeLabel),this.CONSUME(ile)},"ALT")},{ALT:I(()=>{this.CONSUME(J3e),this.SUBRULE2(this.nodeLabel),this.CONSUME(eAe)},"ALT")}])})},"ALT")},{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(VI),"ALT")}])}),this.RULE("systemBoundaryContent",()=>{this.MANY(()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.blankLine),"ALT")},{ALT:I(()=>this.SUBRULE(this.commentLine),"ALT")},{ALT:I(()=>this.SUBRULE(this.boundaryElement),"ALT")}])})}),this.RULE("boundaryElement",()=>{this.OR([{ALT:I(()=>this.SUBRULE(this.actorDeclarationOnly),"ALT")},{ALT:I(()=>{this.SUBRULE(this.entityName),this.SUBRULE(this.lineEnd)},"ALT")}])}),this.RULE("metadataAssignmentStatement",()=>{this.SUBRULE(this.metadataAssignmentTarget),this.SUBRULE(this.metadata),this.SUBRULE(this.lineEnd)}),this.RULE("metadataAssignmentTarget",()=>{this.OR([{ALT:I(()=>this.CONSUME(jp),"ALT")},{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(VI),"ALT")}])}),this.RULE("noteStatement",()=>{this.CONSUME(EJr),this.CONSUME(wJr),this.CONSUME(jp),this.SUBRULE(this.nodeLabel),this.SUBRULE(this.lineEnd)}),this.RULE("stereotype",()=>{this.CONSUME(NJr),this.CONSUME(hgt),this.CONSUME(ugt)}),this.RULE("classSuffix",()=>{this.CONSUME(MJr),this.CONSUME(jp),this.MANY(()=>{this.CONSUME(jC),this.CONSUME2(jp)})}),this.RULE("jsonStatement",()=>{this.CONSUME(uJr),this.CONSUME(cgt),this.OPTION(()=>this.SUBRULE(this.classSuffix)),this.SUBRULE(this.lineEnd)}),this.RULE("directionStatement",()=>{this.CONSUME(gJr),this.OR([{ALT:I(()=>this.CONSUME(mJr),"ALT")},{ALT:I(()=>this.CONSUME(bJr),"ALT")},{ALT:I(()=>this.CONSUME(yJr),"ALT")},{ALT:I(()=>this.CONSUME(vJr),"ALT")},{ALT:I(()=>this.CONSUME(_Jr),"ALT")}]),this.SUBRULE(this.lineEnd)}),this.RULE("classDefStatement",()=>{this.CONSUME(SJr),this.CONSUME(jp),this.MANY(()=>{this.CONSUME(jC),this.CONSUME2(jp)}),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("classStatement",()=>{this.CONSUME(TJr),this.CONSUME(jp),this.MANY(()=>{this.CONSUME(jC),this.CONSUME2(jp)}),this.CONSUME3(jp),this.MANY2(()=>{this.CONSUME2(jC),this.CONSUME4(jp)}),this.SUBRULE(this.lineEnd)}),this.RULE("styleStatement",()=>{this.CONSUME(xJr),this.CONSUME(jp),this.SUBRULE(this.styles),this.SUBRULE(this.lineEnd)}),this.RULE("styles",()=>{this.SUBRULE(this.styleValue),this.MANY(()=>{this.CONSUME(jC),this.SUBRULE2(this.styleValue)})}),this.RULE("styleValue",()=>{this.OR([{ALT:I(()=>this.CONSUME(xW),"ALT")},{ALT:I(()=>this.CONSUME(agt),"ALT")},{ALT:I(()=>{this.CONSUME(wT),this.CONSUME2(xW)},"ALT")}]),this.CONSUME(ale),this.AT_LEAST_ONE(()=>this.SUBRULE(this.styleComponent))}),this.RULE("styleComponent",()=>{this.OR([{ALT:I(()=>this.CONSUME(xW),"ALT")},{ALT:I(()=>this.CONSUME(ST),"ALT")},{ALT:I(()=>this.CONSUME(lgt),"ALT")},{ALT:I(()=>this.CONSUME($Jr),"ALT")},{ALT:I(()=>this.CONSUME(agt),"ALT")},{ALT:I(()=>this.CONSUME(UJr),"ALT")},{ALT:I(()=>this.CONSUME(GJr),"ALT")},{ALT:I(()=>this.CONSUME(zJr),"ALT")},{ALT:I(()=>this.CONSUME(VJr),"ALT")},{ALT:I(()=>this.CONSUME(HJr),"ALT")},{ALT:I(()=>this.CONSUME(ale),"ALT")},{ALT:I(()=>this.CONSUME(nle),"ALT")},{ALT:I(()=>this.CONSUME(ile),"ALT")},{ALT:I(()=>this.CONSUME(J3e),"ALT")},{ALT:I(()=>this.CONSUME(eAe),"ALT")},{ALT:I(()=>this.CONSUME(FJr),"ALT")},{ALT:I(()=>this.CONSUME(igt),"ALT")},{ALT:I(()=>this.CONSUME(Z3e),"ALT")},{ALT:I(()=>this.CONSUME(wT),"ALT")}])}),this.performSelfAnalysis()}isMetadataAssignment(){let e=this.LA(1).tokenType;return(e===jp||e===ST||e===VI)&&this.LA(2).tokenType===ngt}isStatementStart(){let e=this.LA(1).tokenType;return e!==_2&&e!==zI&&e!==tgt}isForbiddenPlantUmlStatement(){return this.LA(1).tokenType===jp&&$3i[this.LA(1).image.toLowerCase()]===!0}hasLabeledRight(e){if(!XZr(this.LA(1)))return!1;for(let r=2;;r++){let i=this.LA(r);if(e.includes(i.tokenType))return!0;if(!XZr(i))return!1}}},sle=new U3i,QZr=class extends Error{constructor(e,r,i){super(`${e} (line ${r}, column ${i})`);this.line=r,this.column=i,this.name="UsecaseJsonError"}static{I(this,"UsecaseJsonError")}},sgt=I((e,r,i,a)=>{let o=i,l=a,h=Math.min(Math.max(r,0),e.length);for(let d=0;d{let o=/\bposition (\d+)\b/u.exec(e);if(o)return sgt(r,Number.parseInt(o[1],10),i,a);let l=/\bline (\d+) column (\d+)\b/u.exec(e);if(l){let h=Number.parseInt(l[1],10),d=Number.parseInt(l[2],10);return{line:i+h-1,column:h===1?a+d-1:d}}if(/unexpected end|end of json input/iu.test(e))return sgt(r,r.length,i,a);return},"locationFromErrorMessage"),ab=class extends Error{constructor(e){super("Invalid JSON token");this.offset=e}static{I(this,"JsonWalkError")}},ZZr=class{constructor(e){this.text=e,this.offset=0,this.propertyOrder={}}static{I(this,"PropertyOrderCollector")}collect(){if(this.skipWhitespace(),this.collectValue(""),this.skipWhitespace(),this.offset!==this.text.length)throw new ab(this.offset);return this.propertyOrder}collectValue(e){this.skipWhitespace();let r=this.text[this.offset];if(r==="{")this.collectObject(e);else if(r==="[")this.collectArray(e);else if(r==='"')this.readString(!1);else if(r==="t")this.consumeLiteral("true");else if(r==="f")this.consumeLiteral("false");else if(r==="n")this.consumeLiteral("null");else if(r==="-"||r>="0"&&r<="9")this.consumeNumber();else throw new ab(this.offset)}collectObject(e){this.offset++;let r=[],i=new Set;if(this.propertyOrder[e]=r,this.skipWhitespace(),this.text[this.offset]==="}"){this.offset++;return}while(this.offset="1"&&this.text[this.offset]<="9")while(this.text[this.offset]>="0"&&this.text[this.offset]<="9")this.offset++;else throw new ab(this.offset);if(this.text[this.offset]==="."){if(this.offset++,this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new ab(this.offset);while(this.text[this.offset]>="0"&&this.text[this.offset]<="9")this.offset++}if(this.text[this.offset]==="e"||this.text[this.offset]==="E"){if(this.offset++,this.text[this.offset]==="+"||this.text[this.offset]==="-")this.offset++;if(this.text[this.offset]<"0"||this.text[this.offset]>"9")throw new ab(this.offset);while(this.text[this.offset]>="0"&&this.text[this.offset]<="9")this.offset++}}skipWhitespace(){while(this.offset({shape:e.type==="normal"?"actor":e.type==="hollow"?"actor-hollow":e.type==="awesome"?"actor-awesome":"actor-icon",...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"actor",actorType:e.type,business:e.business,labelType:e.labelType,...e.icon?{icon:e.icon}:{},...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"actorNode"),B3i=I((e)=>({shape:e.shape,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"usecase",useCaseShape:e.shape,business:e.business,labelType:e.labelType,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"useCaseNode"),F3i=I((e)=>({label:e.label,shape:"note",attrs:{kind:"note",target:e.target,labelType:e.labelType}}),"noteNode"),$3i=I((e)=>({label:e.id,shape:"json-table",...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"json",value:e.value,propertyOrder:e.propertyOrder,labelType:"text"}}),"jsonNode"),U3i=I((e)=>({id:e.id,source:e.source,target:e.target,...e.label?{label:e.label}:{},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{relationshipType:e.type,arrowType:e.arrowType,minlen:e.minlen,explicitId:e.explicitId,animate:e.animate,...e.animation?{animation:e.animation}:{},...e.labelType?{labelType:e.labelType}:{}}}),"relationshipEdge"),G3i=I((e)=>({id:`${e.id}-edge`,source:e.id,target:e.target,attrs:{relationshipType:"note",arrowType:hp.LINE_SOLID,pattern:"dotted",minlen:1,explicitId:!1,animate:!1,internal:!0}}),"noteEdge"),z3i=I((e,r,i,a)=>{let o={};for(let p of e.getActors().values())o[p.id]=P3i(p);for(let p of e.getUseCases().values())o[p.id]=B3i(p);for(let p of e.getNotes().values())o[p.id]=F3i(p);for(let p of e.getJsonNodes().values())o[p.id]=$3i(p);let l={};for(let p of e.getSystemBoundaries().values())l[p.id]={...p.label===p.id?{}:{title:p.label},nodes:[...p.members],...p.classes.length?{classes:[...p.classes]}:{},...p.styles.length?{styles:[...p.styles]}:{},attrs:{kind:"systemBoundary",boundaryType:p.type,labelType:p.labelType}};let h={};for(let p of e.getClassDefs().values())h[p.id]={styles:[...p.styles]};let d=e.getDirection();return{version:1,diagramType:"usecase",source:r,header:{keyword:"usecase",direction:d==="TD"?"TB":d,span:i},...e.getAccTitle()?{accTitle:e.getAccTitle()}:{},...e.getAccDescription()?{accDescr:e.getAccDescription()}:{},nodes:o,edges:[...e.getRelationships().map(U3i),...[...e.getNotes().values()].map(G3i)],groups:l,classDefs:h,statements:a}},"buildUsecaseGraphAST"),hy=I((e)=>`line ${e.line}, column ${e.column} [${e.span[0]},${e.span[1]})`,"locationText"),jZr=I((e)=>e===void 0?"":` (label "${e}")`,"labelSuffix"),PF=I((e)=>e.generated?e.label:void 0,"generatedFrom"),Q0t=I((e,r)=>{for(let i of r)if(!e.includes(i))e.push(i)},"pushUnique"),V3i=class{constructor(e){this.db=e,this.source="",this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=e.createModel()}static{I(this,"UsecaseModelBuilder")}reset(e){this.model=this.db.createModel(),this.source=e,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(e){this.elements.push(e)}addBoundary(e){this.boundaries.push(e)}addJson(e){this.jsonDrafts.push(e)}addRelationship(e){this.relationshipDrafts.push(e)}addNote(e){this.noteDrafts.push(e)}addMetadataAssignment(e,r,i,a){this.metadataAssignments.push({target:e,targetLocation:r,metadata:i,statement:a})}addClassDef(e,r){this.classDefinitions.push({ids:e,styles:r})}addClassAssignment(e,r){this.classAssignments.push({targets:e,classes:r})}addStyleAssignment(e,r,i){this.styleAssignments.push({target:e,location:r,styles:i})}setDirection(e){this.directions.push(e==="TD"?"TB":e)}setAccTitle(e){this.model.accTitle=e}setAccDescription(e){this.model.accDescription=e}setStatements(e){this.statements=e}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(e){let r=new Map,i=new Map,a=new Map,o=new Map;for(let p of this.relationshipDrafts)this.recordFirst(o,p.source.id,p.source.location.span[0]),this.recordFirst(o,p.target.id,p.target.location.span[0]);for(let p of this.elements)this.recordFirst(o,p.id,p.location.span[0]);for(let p of this.boundaries)this.recordFirst(o,p.id,p.location.span[0]);for(let p of this.jsonDrafts)this.recordFirst(o,p.id,p.location.span[0]);let l=[...this.elements.map((p)=>({offset:p.location.span[0],type:"element",value:p})),...this.boundaries.map((p)=>({offset:p.location.span[0],type:"boundary",value:p})),...this.jsonDrafts.map((p)=>({offset:p.location.span[0],type:"json",value:p})),...this.relationshipDrafts.filter((p)=>p.explicitId).map((p)=>({offset:p.explicitIdLocation.span[0],type:"edge",value:p}))].sort((p,m)=>p.offset-m.offset);for(let p of l)if(p.type==="element")this.collectElement(p.value,r,i);else if(p.type==="boundary")this.collectBoundary(p.value,r,a);else if(p.type==="json")this.registerUnique(r,p.value.id,"json",p.value.location,!1);else this.registerUnique(r,p.value.explicitId,"edge",p.value.explicitIdLocation,!1);this.materializeElements(i,o),this.materializeBoundaries(a,o),this.materializeJson(o);let h=this.materializeRelationships(r,i,o);this.reorderElements(i,o),this.applyMetadataAssignments(r,i,a,h),this.validateAndRefreshElements(i),this.refreshBoundaries(a,i),this.materializeNotes(r),this.applyClassDefinitions(),this.applyClassesAndStyles(r,h),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...r].map(([p,m])=>[p,m.kind]));let d=z3i(this,this.source,e,this.statements);return this.model.ast=d,this.db.commit(this.model),d}collectElement(e,r,i){let a=r.get(e.id),o=PF({generated:e.generated,label:e.label.text});if(a&&a.kind!==e.kind)this.conflict(`ID '${e.id}' is declared as both ${a.kind} and ${e.kind}`,e.location,a.location,o,PF(a));if(a&&(a.generated||e.generated))this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,a.location,o,PF(a));let l=i.get(e.id);if(!l){let h={kind:e.kind,id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],...e.parentId?{parentId:e.parentId,parentLocation:e.parentLocation}:{},...e.shape?{shape:e.shape}:{},...e.stereotype?{stereotype:e.stereotype,stereotypeLocation:e.location}:{}};this.applyDeclarationMetadata(h,e.metadata),i.set(e.id,h),r.set(e.id,{kind:e.kind,location:e.location,generated:e.generated,label:e.label.text});return}if(l.label.text!==e.label.text||l.label.type!==e.label.type)this.conflict(`ID '${e.id}' has conflicting labels`,e.location,l.location);if(e.shape&&l.shape&&e.shape!==l.shape)this.conflict(`Use case '${e.id}' has conflicting shapes`,e.location,l.location);if(e.parentId&&l.parentId&&e.parentId!==l.parentId)this.conflict(`Element '${e.id}' belongs to more than one system boundary`,e.parentLocation??e.location,l.parentLocation??l.location);if(e.stereotype&&l.stereotype&&e.stereotype!==l.stereotype)this.conflict(`Element '${e.id}' has conflicting stereotypes`,e.location,l.stereotypeLocation??l.location);l.shape??=e.shape,l.parentId??=e.parentId,l.parentLocation??=e.parentLocation,l.stereotype??=e.stereotype,l.stereotypeLocation??=e.stereotype?e.location:void 0,Q0t(l.classes,e.classes),this.applyDeclarationMetadata(l,e.metadata)}collectBoundary(e,r,i){let a=r.get(e.id),o=PF({generated:e.generated,label:e.label.text});if(a&&a.kind!=="boundary")this.conflict(`ID '${e.id}' is declared as both ${a.kind} and boundary`,e.location,a.location,o,PF(a));if(a&&(a.generated||e.generated))this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,a.location,o,PF(a));let l=i.get(e.id);if(l){if(l.label.text!==e.label.text||l.label.type!==e.label.type)this.conflict(`Boundary '${e.id}' has conflicting titles`,e.location,l.location);Q0t(l.classes,e.classes);return}i.set(e.id,{id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],styles:[],members:[]}),r.set(e.id,{kind:"boundary",location:e.location,generated:e.generated,label:e.label.text})}materializeElements(e,r){for(let i of[...e.values()].sort((a,o)=>(r.get(a.id)??0)-(r.get(o.id)??0)))this.setElementModel(i)}materializeBoundaries(e,r){for(let i of[...e.values()].sort((a,o)=>(r.get(a.id)??0)-(r.get(o.id)??0)))this.model.systemBoundaries.set(i.id,{id:i.id,label:i.label.text,labelType:i.label.type,type:i.type??"rect",members:[],classes:[...i.classes],styles:[...i.styles]})}materializeJson(e){for(let r of[...this.jsonDrafts].sort((i,a)=>(e.get(i.id)??0)-(e.get(a.id)??0)))this.model.jsonNodes.set(r.id,{id:r.id,value:r.value,propertyOrder:r.propertyOrder,classes:[...r.classes],styles:[]})}materializeRelationships(e,r,i){let a=new Map,o=0;for(let l of this.relationshipDrafts){let h=this.resolveEndpoint(l.source,e,r,i),d=this.resolveEndpoint(l.target,e,r,i);this.validateRelationship(l,h,d,e);let p=l.explicitId??`edge-${o++}`,m={id:p,explicitId:Boolean(l.explicitId),source:l.source.id,target:l.target.id,type:l.type,arrowType:l.arrowType,...l.label?{label:l.label.text,labelType:l.label.type}:{},minlen:l.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(m),a.set(p,{draft:l,relationship:m})}return this.model.relationshipCounter=o,a}resolveEndpoint(e,r,i,a){if(e.classesOnReference&&!e.declaration)throw Error(`Relationship endpoint '${e.id}' uses ::: without declaring the node at ${hy(e.location)}`);let o=r.get(e.id);if(o)return o.kind;return i.set(e.id,{kind:"usecase",id:e.id,label:e.label,location:e.location,generated:e.generated,shape:"ellipse",classes:[]}),r.set(e.id,{kind:"usecase",location:e.location,generated:e.generated,label:e.label.text}),this.recordFirst(a,e.id,e.location.span[0]),"usecase"}reorderElements(e,r){let i=new Map(this.model.actors),a=new Map(this.model.useCases);this.model.actors.clear(),this.model.useCases.clear();for(let o of[...e.values()].sort((l,h)=>(r.get(l.id)??0)-(r.get(h.id)??0))){if(!i.has(o.id)&&!a.has(o.id))this.setElementModel(o);let l=i.get(o.id)??this.model.actors.get(o.id),h=a.get(o.id)??this.model.useCases.get(o.id);if(l)this.model.actors.set(o.id,l);else if(h)this.model.useCases.set(o.id,h)}}applyMetadataAssignments(e,r,i,a){for(let o of this.metadataAssignments){let l=e.get(o.target);if(!l){let h=this.inferMetadataKind(o.metadata);throw Error(`Metadata target '${o.target}' is unresolved${h?` (metadata implies ${h})`:""} at ${hy(o.targetLocation)}`)}if(l.kind==="actor"||l.kind==="usecase")this.applyStandaloneElementMetadata(r.get(o.target),o.metadata);else if(l.kind==="boundary"){let h=i.get(o.target);for(let d of o.metadata.properties){if(d.key!=="type"||d.value!=="rect"&&d.value!=="package")this.invalidMetadata(o.target,l.kind,d);h.type=d.value}}else if(l.kind==="edge"){let h=a.get(o.target);if(!h)throw Error(`Metadata target '${o.target}' is not an explicit edge at ${hy(o.targetLocation)}`);o.statement.kind="edgeMetadata",o.statement.edges=[{id:o.target,span:o.statement.span,idSpan:o.targetLocation.span,...o.statement.metadata?{metadata:o.statement.metadata}:{}}],delete o.statement.nodes;for(let d of o.metadata.properties)if(d.key==="animate"&&typeof d.value==="boolean")h.relationship.animate=d.value;else if(d.key==="animation"&&(d.value==="fast"||d.value==="slow"))h.relationship.animation=d.value,h.relationship.animate=!0;else this.invalidMetadata(o.target,l.kind,d)}else for(let h of o.metadata.properties)this.invalidMetadata(o.target,l.kind,h)}for(let{relationship:o}of a.values())if(o.animation)o.animate=!0}applyStandaloneElementMetadata(e,r){for(let i of r.properties)if(e.kind==="actor")this.applyActorProperty(e,i,!0);else if(i.key==="business"&&typeof i.value==="boolean")e.business=i.value;else this.invalidMetadata(e.id,e.kind,i)}applyDeclarationMetadata(e,r){if(!r)return;for(let i of r.properties)if(e.kind==="actor")this.applyActorProperty(e,i,!1);else if(i.key==="business"&&typeof i.value==="boolean"){if(e.business!==void 0&&e.business!==i.value)this.conflict(`Use case '${e.id}' has conflicting business metadata`,i.location,e.location);e.business=i.value}else this.invalidMetadata(e.id,e.kind,i)}applyActorProperty(e,r,i){if(r.key==="type"&&(r.value==="normal"||r.value==="hollow"||r.value==="awesome")){if(!i&&e.actorType!==void 0&&e.actorType!==r.value)this.conflict(`Actor '${e.id}' has conflicting type metadata`,r.location,e.location);e.actorType=r.value}else if(r.key==="icon"&&typeof r.value==="string"){if(!i&&e.icon!==void 0&&e.icon!==r.value)this.conflict(`Actor '${e.id}' has conflicting icon metadata`,r.location,e.location);e.icon=r.value}else if(r.key==="business"&&typeof r.value==="boolean"){if(!i&&e.business!==void 0&&e.business!==r.value)this.conflict(`Actor '${e.id}' has conflicting business metadata`,r.location,e.location);e.business=r.value}else this.invalidMetadata(e.id,e.kind,r)}validateAndRefreshElements(e){for(let r of e.values()){let i=r.icon?"icon":r.actorType??"normal";if(r.kind==="actor"){if(r.icon&&r.actorType&&r.actorType!=="normal")throw Error(`Actor '${r.id}' cannot combine icon with type '${r.actorType}' at ${hy(r.location)}`);if(r.business&&(i==="icon"||i==="awesome"))throw Error(`Business actor '${r.id}' must use normal or hollow geometry at ${hy(r.location)}`)}else if((r.shape??"ellipse")==="rect"&&r.business)throw Error(`Rectangular use case '${r.id}' cannot be a business use case at ${hy(r.location)}`);this.setElementModel(r)}}refreshBoundaries(e,r){for(let i of e.values())i.members.length=0;for(let i of[...this.elements].sort((a,o)=>a.location.span[0]-o.location.span[0])){if(!i.parentId)continue;let a=e.get(i.parentId);if(!a)throw Error(`Parent boundary '${i.parentId}' for '${i.id}' is unresolved at ${hy(i.parentLocation??i.location)}`);if(!a.members.includes(i.id))a.members.push(i.id)}for(let i of r.values())if(i.parentId&&!e.has(i.parentId))throw Error(`Parent boundary '${i.parentId}' for '${i.id}' is unresolved at ${hy(i.parentLocation??i.location)}`);for(let i of e.values()){let a=this.model.systemBoundaries.get(i.id);a.type=i.type??"rect",a.members=[...i.members],a.classes=[...i.classes],a.styles=[...i.styles]}}materializeNotes(e){let r=0;for(let i of this.noteDrafts){let a=e.get(i.target);if(!a)throw Error(`Note target '${i.target}' is unresolved at ${hy(i.targetLocation)}`);if(a.kind!=="actor"&&a.kind!=="usecase")this.conflict(`Note target '${i.target}' must be an actor or use case, not ${a.kind}`,i.targetLocation,a.location);let o=`note-${r++}`;this.model.notes.set(o,{id:o,target:i.target,label:i.label.text,labelType:i.label.type})}this.model.noteCounter=r}applyClassDefinitions(){for(let e of this.classDefinitions)for(let r of e.ids)this.model.classDefs.set(r,{id:r,styles:[...e.styles]})}applyClassesAndStyles(e,r){for(let i of this.classAssignments)for(let a of i.targets)Q0t(this.getStylable(a.id,e,r,a.location).classes,i.classes);for(let i of this.styleAssignments)this.getStylable(i.target,e,r,i.location).styles.push(...i.styles)}getStylable(e,r,i,a){let o=r.get(e)?.kind,l=o==="actor"?this.model.actors.get(e):o==="usecase"?this.model.useCases.get(e):o==="boundary"?this.model.systemBoundaries.get(e):o==="json"?this.model.jsonNodes.get(e):o==="edge"?i.get(e)?.relationship:void 0;if(!l)throw Error(`Class/style target '${e}' is unresolved or anonymous at ${hy(a)}`);return l}validateRelationship(e,r,i,a){let o=I((l)=>l==="actor"||l==="usecase"||l==="json","allowed");if(!o(r))this.conflict(`Relationship source '${e.source.id}' cannot be ${r}`,e.source.location,a.get(e.source.id).location);if(!o(i))this.conflict(`Relationship target '${e.target.id}' cannot be ${i}`,e.target.location,a.get(e.target.id).location);if((e.type==="include"||e.type==="extend")&&(r!=="usecase"||i!=="usecase"))throw Error(`${e.type} relationship requires use-case endpoints at ${hy(e.location)}`);if(e.type==="generalization"&&(r!=="actor"&&r!=="usecase"||r!==i))throw Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${hy(e.location)}`);if(e.type==="association"&&(r==="json"||i==="json")&&![0,1,2].includes(e.arrowType))throw Error(`JSON relationship '${e.source.id}' to '${e.target.id}' permits only point, reversed-point, or markerless solid association at ${hy(e.location)}`)}setElementModel(e){if(e.kind==="actor"){let r=e.icon?"icon":e.actorType??"normal";this.model.useCases.delete(e.id),this.model.actors.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,type:r,...e.icon?{icon:e.icon}:{},business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.actors.get(e.id)?.styles??[]})}else this.model.actors.delete(e.id),this.model.useCases.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,shape:e.shape??"ellipse",business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.useCases.get(e.id)?.styles??[]})}inferMetadataKind(e){let r=new Set(["actor","usecase","boundary","edge"]);for(let i of e.properties)if(i.key==="icon")r.clear(),r.add("actor");else if(i.key==="animate"||i.key==="animation")r.clear(),r.add("edge");else if(i.key==="type"){if(r.clear(),i.value==="rect"||i.value==="package")r.add("boundary");else if(i.value==="normal"||i.value==="hollow"||i.value==="awesome")r.add("actor")}else if(i.key==="business")r.delete("boundary"),r.delete("edge");else return;return r.size===1?[...r][0]:void 0}invalidMetadata(e,r,i){throw Error(`Metadata property '${i.key}' is invalid for ${r} '${e}' at ${hy(i.location)}`)}registerUnique(e,r,i,a,o){let l=e.get(r);if(l)this.conflict(`ID '${r}' is declared more than once (${l.kind} and ${i})`,a,l.location,void 0,PF(l));e.set(r,{kind:i,location:a,generated:o})}recordFirst(e,r,i){let a=e.get(r);if(a===void 0||ithis.visit(p)),a=this.nodes(e,"relationTail")[0],o=i.map((p,m)=>this.actorOccurrence(r[m],p,!0));for(let p of i)this.builder.addElement(this.actorDraft(p));if(!a)return{kind:"node",span:[0,0],nodes:o};let l=this.visit(a);if(l.target.explicitDeclaration)this.builder.addElement(this.entityDraft(l.target));let h=this.relationshipDraft(i[0],l,this.nodeLocation(a));this.builder.addRelationship(h);let d=h.explicitId??`edge-${this.anonymousEdge++}`;return o.push(this.entityOccurrence(this.nodes(a.children,"entityName")[0],l.target,l.target.explicitDeclaration)),{kind:"edge",span:[0,0],nodes:o,edges:[{id:d,span:[0,0],...h.explicitIdLocation?{idSpan:h.explicitIdLocation.span}:{},...h.label?{labelSpan:h.label.span}:{}}]}}actorItem(e){let r=this.visit(this.nodes(e,"actorName")[0]),i=this.nodes(e,"metadata")[0],a=this.nodes(e,"stereotype")[0],o=this.nodes(e,"classSuffix")[0],l=o?this.visit(o):{classes:[],spans:[]};return{...r,...i?{metadata:this.visit(i)}:{},...a?{stereotype:this.visit(a)}:{},classes:l.classes,classSpans:l.spans}}actorName(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0];if(r){let o=this.nodes(e,"nodeLabel")[0],l=o?this.visit(o):this.tokenLabel(r);return{id:r.image,label:l,location:this.tokenLocation(r),generated:!1,classes:[],classSpans:[]}}let a=this.tokenLabel(i);return{id:this.generateId(a.text),label:a,location:this.tokenLocation(i),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(e){let r=this.nodes(e,"actorItem"),i=r.map((a)=>this.visit(a));for(let a of i)this.builder.addElement(this.actorDraft(a));return{kind:"node",span:[0,0],nodes:i.map((a,o)=>this.actorOccurrence(r[o],a,!0))}}entityStatement(e){let r=this.nodes(e,"entityName"),i=this.visit(r[0]),a=this.nodes(e,"relationTail")[0];if(!a)return i.explicitDeclaration=!0,i.shape??="ellipse",this.builder.addElement(this.entityDraft(i)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(r[0],i,!0)]};if(i.explicitDeclaration)this.builder.addElement(this.entityDraft(i));let o=this.visit(a);if(o.target.explicitDeclaration)this.builder.addElement(this.entityDraft(o.target));let l={source:this.endpoint(i),target:this.endpoint(o.target),location:this.nodeLocation(a),...o.explicitId?{explicitId:o.explicitId,explicitIdLocation:o.explicitIdLocation}:{},...o.arrow};this.builder.addRelationship(l);let h=l.explicitId??`edge-${this.anonymousEdge++}`;return{kind:"edge",span:[0,0],nodes:[this.entityOccurrence(r[0],i,i.explicitDeclaration),this.entityOccurrence(this.nodes(a.children,"entityName")[0],o.target,o.target.explicitDeclaration)],edges:[{id:h,span:[0,0],...l.explicitIdLocation?{idSpan:l.explicitIdLocation.span}:{},...l.label?{labelSpan:l.label.span}:{}}]}}entityName(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],a=this.nodes(e,"nodeLabel")[0],o=this.nodes(e,"useCaseMetadata")[0],l=this.nodes(e,"stereotype")[0],h=this.nodes(e,"classSuffix")[0],d=h?this.visit(h):{classes:[],spans:[]};if(r){let m=a?this.visit(a):this.tokenLabel(r),y=a?this.tokens(e,"LBRACKET").length?"rect":"ellipse":void 0;return{id:r.image,label:m,location:this.tokenLocation(r),generated:!1,...y?{shape:y}:{},...o?{metadata:this.visit(o)}:{},...l?{stereotype:this.visit(l)}:{},classes:d.classes,classSpans:d.spans,explicitDeclaration:Boolean(y||o||l)}}let p=this.tokenLabel(i);return{id:this.generateId(p.text),label:p,location:this.tokenLocation(i),generated:!0,...o?{metadata:this.visit(o)}:{},...l?{stereotype:this.visit(l)}:{},classes:d.classes,classSpans:d.spans,explicitDeclaration:Boolean(o||l)}}nodeLabel(e){let r=this.allTokens(e);if(r.length===1&&(r[0].tokenType.name==="PLAIN_STRING"||r[0].tokenType.name==="MARKDOWN_STRING"))return this.tokenLabel(r[0]);let i=[r[0].startOffset,(r.at(-1).endOffset??r.at(-1).startOffset)+1];return{text:this.source.slice(i[0],i[1]),type:"text",span:i}}useCaseMetadata(e){return this.visit(this.nodes(e,"metadata")[0])}relationTail(e){let r=this.tokens(e,"IDENTIFIER")[0];return{...r?{explicitId:r.image,explicitIdLocation:this.tokenLocation(r)}:{},arrow:this.visit(this.nodes(e,"arrow")[0]),target:this.visit(this.nodes(e,"entityName")[0])}}arrow(e){return this.visit(this.firstNode(e,"semanticRelation","forwardSolidOperator","backwardSolidOperator","markerlessSolidOperator","forwardCircleOperator","backwardCircleOperator","forwardCrossOperator","backwardCrossOperator"))}edgeLabel(e){return this.nodeLabel(e)}semanticRelation(e){if(this.tokens(e,"GENERALIZATION").length)return{type:"generalization",arrowType:hp.SOLID_ARROW,minlen:1};let r=this.tokens(e,"INCLUDE").length?"include":"extend",i=this.tokens(e,r==="include"?"INCLUDE":"EXTEND")[0];return{type:r,arrowType:hp.SOLID_ARROW,label:{text:r,type:"text",span:this.tokenSpan(i)},minlen:1}}metadata(e){return{properties:this.nodes(e,"metadataProperty").map((r)=>this.visit(r)),location:this.ctxLocation(e)}}metadataProperty(e){let r=this.allTokens(e).filter((h)=>h.tokenType.name!=="COLON"),i=r[0],a=r[1],o=a.tokenType.name==="TRUE"?!0:a.tokenType.name==="FALSE"?!1:this.decodePlain(a),l=[i.startOffset,(a.endOffset??a.startOffset)+1];return{key:this.decodePlain(i),value:o,span:l,keySpan:this.contentSpan(i),valueSpan:this.contentSpan(a),location:this.tokenLocation(i)}}metadataSeparator(e){return}systemBoundaryStatement(e){let r=this.visit(this.nodes(e,"systemBoundaryName")[0]),i=this.nodes(e,"classSuffix")[0],a=i?this.visit(i):{classes:[],spans:[]};r.classes=a.classes,this.builder.addBoundary(r);let o=this.parentBoundary;this.parentBoundary={id:r.id,location:r.location};let l=this.nodes(e,"systemBoundaryContent")[0],h=l?this.visit(l):[];this.parentBoundary=o;let d=this.tokens(e,"END")[0],p=this.nodes(e,"metadata")[0],m=p?this.visit(p):void 0,y={kind:"group",span:[0,0],group:r.id,idSpan:r.location.span,titleSpan:r.label.span,endSpan:this.tokenSpan(d),classSpans:a.spans,...m?{metadata:m.properties.map(({key:E,span:w,keySpan:T,valueSpan:x})=>({key:E,span:w,keySpan:T,valueSpan:x}))}:{},...h.length?{children:h}:{}};if(m)this.builder.addMetadataAssignment(r.id,r.location,m,y);return y}systemBoundaryName(e){let r=this.tokens(e,"IDENTIFIER")[0];if(r){let o=this.nodes(e,"nodeLabel")[0];return{id:r.image,label:o?this.visit(o):this.tokenLabel(r),location:this.tokenLocation(r),generated:!1,classes:[]}}let i=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],a=this.tokenLabel(i);return{id:this.generateId(a.text),label:a,location:this.tokenLocation(i),generated:!0,classes:[]}}systemBoundaryContent(e){return[...this.nodes(e,"blankLine"),...this.nodes(e,"commentLine"),...this.nodes(e,"boundaryElement")].sort((i,a)=>(i.location?.startOffset??0)-(a.location?.startOffset??0)).map((i)=>this.wrap(i,this.visit(i)))}boundaryElement(e){let r=this.nodes(e,"actorDeclarationOnly")[0];if(r)return this.visit(r);let i=this.nodes(e,"entityName")[0],a=this.visit(i);return a.explicitDeclaration=!0,a.shape??="ellipse",this.builder.addElement(this.entityDraft(a)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(i,a,!0)]}}metadataAssignmentStatement(e){let r=this.visit(this.nodes(e,"metadataAssignmentTarget")[0]),i=this.visit(this.nodes(e,"metadata")[0]),a={kind:"metadata",span:[0,0],nodes:[{id:r.id,span:r.location.span,idSpan:r.location.span}],metadata:i.properties.map(({key:o,span:l,keySpan:h,valueSpan:d})=>({key:o,span:l,keySpan:h,valueSpan:d}))};return this.builder.addMetadataAssignment(r.id,r.location,i,a),a}metadataAssignmentTarget(e){let r=this.allTokens(e)[0],i=this.tokenLabel(r);return{id:r.tokenType.name==="IDENTIFIER"?r.image:this.generateId(i.text),location:this.tokenLocation(r)}}noteStatement(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.visit(this.nodes(e,"nodeLabel")[0]);return this.builder.addNote({target:r.image,targetLocation:this.tokenLocation(r),label:i,location:this.ctxLocation(e)}),{kind:"note",span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:i.span,nodes:[{id:r.image,span:this.tokenSpan(r),idSpan:this.tokenSpan(r)}]}}stereotype(e){let r=this.tokens(e,"STEREOTYPE_TEXT")[0];return{value:r.image.trim(),span:this.tokenSpan(r)}}classSuffix(e){let r=this.tokens(e,"IDENTIFIER");return{classes:r.map((i)=>i.image),spans:r.map((i)=>this.tokenSpan(i))}}jsonStatement(e){let r=this.tokens(e,"JSON_DECLARATION_START")[0],i=this.tokens(e,"JSON_OBJECT_LITERAL")[0],a=/^json[\t ]+(\w+)/.exec(r.image),o=a[1],l=a[0].length-o.length,h={span:[r.startOffset+l,r.startOffset+l+o.length],line:r.startLine??1,column:(r.startColumn??1)+l},d=GJr(i.image,i.startLine??1,i.startColumn??1),p=this.nodes(e,"classSuffix")[0],m=p?this.visit(p):{classes:[],spans:[]},y={id:o,value:d.value,propertyOrder:d.propertyOrder,location:h,classes:m.classes};return this.builder.addJson(y),{kind:"json",span:[0,0],nodes:[{id:o,span:h.span,idSpan:h.span,defines:!0,classSpans:m.spans}],classSpans:m.spans}}directionStatement(e){let r=this.allTokens(e).find((i)=>["TD","TB","BT","RL","LR"].includes(i.tokenType.name));return this.builder.setDirection(r.image),{kind:"direction",span:[0,0]}}classDefStatement(e){let r=this.tokens(e,"IDENTIFIER"),i=this.visit(this.nodes(e,"styles")[0]);return this.builder.addClassDef(r.map((a)=>a.image),i),{kind:"classDef",span:[0,0],ref:r[0].image,refSpan:this.tokenSpan(r[0])}}classStatement(e){let r=this.tokens(e,"IDENTIFIER"),i=1;for(;i({id:l.image,location:this.tokenLocation(l)})),o=r.slice(i).map((l)=>l.image);return this.builder.addClassAssignment(a,o),{kind:"classAssign",span:[0,0],ref:o[0],refSpan:this.tokenSpan(r[i]),nodes:a.map(({id:l,location:h})=>({id:l,span:h.span,idSpan:h.span}))}}styleStatement(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.visit(this.nodes(e,"styles")[0]);return this.builder.addStyleAssignment(r.image,this.tokenLocation(r),i),{kind:"style",span:[0,0],nodes:[{id:r.image,span:this.tokenSpan(r),idSpan:this.tokenSpan(r)}]}}styles(e){return this.nodes(e,"styleValue").map((r)=>this.visit(r))}styleValue(e){let r=this.allTokens(e),i=[r[0].startOffset,(r.at(-1).endOffset??r.at(-1).startOffset)+1];return this.source.slice(i[0],i[1]).replaceAll("\\,",",")}styleComponent(e){return this.allTokens(e).map((r)=>r.image).join("")}forwardSolidOperator(e){let r=this.tokens(e,"FORWARD_SOLID")[0];return{type:"association",arrowType:hp.SOLID_ARROW,minlen:this.solidMinlen(r)}}backwardSolidOperator(e){let r=this.tokens(e,"BACKWARD_SOLID")[0],i=this.nodes(e,"edgeLabel")[0],a=i?this.tokens(e,"MARKERLESS_SOLID").at(-1):r;return{type:"association",arrowType:hp.BACK_ARROW,minlen:this.solidMinlen(a),...i?{label:this.visit(i)}:{}}}markerlessSolidOperator(e){let r=this.nodes(e,"edgeLabel")[0],i=this.allTokens(e);if(!r)return{type:"association",arrowType:hp.LINE_SOLID,minlen:this.solidMinlen(this.tokens(e,"MARKERLESS_SOLID")[0])};let a=i.at(-1),o=a.tokenType.name==="FORWARD_SOLID"?hp.SOLID_ARROW:a.tokenType.name==="FORWARD_CIRCLE"?hp.CIRCLE_ARROW:a.tokenType.name==="FORWARD_CROSS"?hp.CROSS_ARROW:hp.LINE_SOLID;return{type:"association",arrowType:o,label:this.visit(r),minlen:o===hp.SOLID_ARROW||o===hp.LINE_SOLID?this.solidMinlen(a):1}}forwardCircleOperator(e){return{type:"association",arrowType:hp.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(e){let r=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:hp.CIRCLE_ARROW_REVERSED,minlen:1,...r?{label:this.visit(r)}:{}}}forwardCrossOperator(e){return{type:"association",arrowType:hp.CROSS_ARROW,minlen:1}}backwardCrossOperator(e){let r=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:hp.CROSS_ARROW_REVERSED,minlen:1,...r?{label:this.visit(r)}:{}}}actorDraft(e){return{id:e.id,kind:"actor",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}entityDraft(e){return{id:e.id,kind:"usecase",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.shape?{shape:e.shape}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}endpoint(e,r=e.explicitDeclaration??!0){return{id:e.id,label:e.label,location:e.location,generated:e.generated,declaration:r,classesOnReference:e.classes.length>0}}relationshipDraft(e,r,i){return{source:this.endpoint(e,!0),target:this.endpoint(r.target),location:i,...r.explicitId?{explicitId:r.explicitId,explicitIdLocation:r.explicitIdLocation}:{},...r.arrow}}actorOccurrence(e,r,i){return{id:r.id,span:this.nodeSpan(e),idSpan:r.location.span,labelSpan:r.label.span,...i?{defines:!0}:{},...r.stereotype?{stereotypeSpan:r.stereotype.span}:{},...r.metadata?{metadata:r.metadata.properties.map(({key:a,span:o,keySpan:l,valueSpan:h})=>({key:a,span:o,keySpan:l,valueSpan:h}))}:{},...r.classSpans.length?{classSpans:r.classSpans}:{}}}entityOccurrence(e,r,i){return this.actorOccurrence(e,r,i)}wrap(e,r){if(r.kind==="blank"||r.kind==="comment")return r;r.span=this.nodeSpan(e);for(let i of r.edges??[])i.span=r.span;return r}tokenLabel(e){let r=e.tokenType.name==="MARKDOWN_STRING"?"markdown":"text",i=r==="markdown"?2:e.tokenType.name==="PLAIN_STRING"?1:0,a=this.tokenSpan(e,i);return{text:this.source.slice(a[0],a[1]),type:r,span:a}}decodePlain(e){return e.tokenType.name==="PLAIN_STRING"?e.image.slice(1,-1):e.image}contentSpan(e){return this.tokenSpan(e,e.tokenType.name==="PLAIN_STRING"?1:e.tokenType.name==="MARKDOWN_STRING"?2:0)}generateId(e){return e.replace(/\W/g,"_")}solidMinlen(e){return Math.max(1,(e.image.match(/-/g)?.length??2)-1)}nodeLocation(e){let r=this.allTokens(e.children)[0];return{span:this.nodeSpan(e),line:r.startLine??1,column:r.startColumn??1}}ctxLocation(e){let r=this.allTokens(e).filter((o)=>o.tokenType.name!=="NEWLINE"&&o.tokenType.name!=="EOF"),i=r[0],a=r.at(-1);return{span:[i.startOffset,Math.min(this.source.length,(a.endOffset??a.startOffset+a.image.length-1)+1)],line:i.startLine??1,column:i.startColumn??1}}tokenLocation(e){let r=e.tokenType.name==="PLAIN_STRING"?1:e.tokenType.name==="MARKDOWN_STRING"?2:0;return{span:this.tokenSpan(e,r),line:e.startLine??1,column:(e.startColumn??1)+r}}nodeSpan(e){let r=this.allTokens(e.children).filter((o)=>o.tokenType.name!=="NEWLINE"&&o.tokenType.name!=="EOF"),i=r[0],a=r.at(-1);if(!i||!a)throw Error("Usecase CST node has no source token");return[i.startOffset,Math.min(this.source.length,(a.endOffset??a.startOffset+a.image.length-1)+1)]}tokenSpan(e,r=0){return[e.startOffset+r,Math.min(this.source.length,(e.endOffset??e.startOffset+e.image.length-1)+1-r)]}nodes(e,r){return(e[r]??[]).filter((i)=>("children"in i))}tokens(e,r){return(e[r]??[]).filter((i)=>("tokenTypeIdx"in i))}firstNode(e,...r){for(let i of r){let a=this.nodes(e,i)[0];if(a)return a}throw Error(`Usecase CST is missing one of: ${r.join(", ")}`)}allTokens(e){let r=[];for(let i of Object.values(e))for(let a of i)if("tokenTypeIdx"in a)r.push(a);else r.push(...this.allTokens(a.children));return r.sort((i,a)=>i.startOffset-a.startOffset)}},Y3i=new q3i,W3i={parse:I(async(e)=>{Z3e.clear(),nle.input=[];try{ZZr({diagramType:"usecase",lexer:N3i,parser:nle,entry:I(()=>nle.start(),"entry"),visit:I((r)=>Y3i.build(r,e),"visit")},e)}catch(r){Z3e.clear();let i=nle.errors[0];if(i){let{token:a}=i,o=EW(a.startOffset)?a.startOffset:e.length,l=EW(a.endOffset)?a.endOffset+1:o,h=EW(a.startLine)?a.startLine:e.slice(0,o).split(/\r\n|\r|\n/).length,d=Math.max(e.lastIndexOf(` -`,o-1),e.lastIndexOf("\r",o-1)),p=EW(a.startColumn)?a.startColumn:o-d,m=r instanceof Error?r.message:String(r);throw Error(`${m} at line ${h}, column ${p} [${o},${l})`)}throw r}},"parse")},j3i=["point","circle","cross","extension"],zJr={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},KZr=I((e,r)=>{let[i,a]=[e,r].map((o)=>o.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element");return`usecase-${i}-${a}`},"usecaseDomId"),K3i=I((e)=>`usecase-${e.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element"}`,"usecaseNodeDomId"),J3e=I((e,r)=>{if(r!=="markdown")return e;return QEe(e).map((i)=>i.map((a)=>a.content).join(" ")).join(` -`)},"getAccessibleLabel"),X3i=I((e)=>{let r=J3e(e.label??e.id,e.labelType);if(zJr[e.shape]){let a=e.actorType&&e.actorType!=="normal"?`${e.actorType} `:"",o=e.business?"business ":"",l=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${o}${a}actor ${r}${l}`}if(e.shape==="note")return`Note for ${e.noteTargetLabel??e.noteTarget??""}: ${r}`;if(e.shape==="usecaseJsonTable"){let a=(e.jsonRows??[]).map((o)=>`${o.accessibleKey}: ${o.value}`).join("; ");return a?`${r}: ${a}`:r}let i=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${e.business?"business ":""}use case ${r}${i}`},"getUsecaseNodeAccessibleName"),Q3i=I((e)=>`${e.boundaryType} system boundary ${J3e(e.label??e.id,e.labelType)}`,"getUsecaseBoundaryAccessibleName"),Z3i=I((e)=>{if(e.relationshipType==="note")return"";return`${e.relationshipType==="association"&&e.label?`association ${J3e(e.label,e.labelType)}`:e.relationshipType} from ${e.sourceLabel} to ${e.targetLabel}`},"getUsecaseEdgeAccessibleName"),_W=I((e)=>e.replace(/&/g,"&").replace(//g,">"),"escapePlainLabel"),XZr=I((e)=>e.replace(/([*[\\\]_`])/g,"\\$1"),"escapeMarkdownMarkers"),J3i=I((e,r)=>{e.diagramId=r,e.markers=[...j3i];for(let i of e.nodes){let a=i;if(a.domId=K3i(i.id),i.label!==void 0&&i.labelType==="text")i.label=_W(i.label);if(i.stereotype)i.stereotype=_W(i.stereotype);if(!i.isGroup&&i.shape==="usecaseJsonTable")i.jsonRows=i.jsonRows?.map((o)=>({...o,key:_W(o.key),value:_W(o.value)}));if(!i.isGroup&&(i.shape==="usecaseEllipse"||i.shape==="rect")&&i.stereotype){let o=i.label??_W(i.id);i.label=`«${XZr(i.stereotype)}»
    ${i.labelType==="text"?XZr(o):o}`,i.labelType="markdown",a.hasFoldedStereotype=!0,delete i.stereotype}}for(let i of e.edges)if(i.label!==void 0&&i.labelType==="text")i.label=_W(i.label);return e},"prepareUsecaseLayoutData"),eAi=I((e,r,i)=>{for(let o of r.nodes){let l=typeof o.domId==="string"?o.domId:KZr(r.diagramId,o.id),h=e.select(`#${l}`),d=o.isGroup?"boundary":zJr[o.shape]?"actor":o.shape==="note"?"note":o.shape==="usecaseJsonTable"?"json":"usecase",p=i.nodes.get(o.id)??o.id;if(h.attr("data-usecase-id",o.id).attr("data-usecase-kind",d).attr("role","img").attr("aria-label",p),!o.isGroup&&(o.shape==="usecaseEllipse"||o.shape==="rect")&&"hasFoldedStereotype"in o&&o.hasFoldedStereotype===!0){let m=h.node(),y=m?.querySelector(".nodeLabel"),E=y?.querySelector("p")??y,w=E?.firstChild;if(E&&w?.nodeType===3){let T=E.ownerDocument.createElement("span");T.className="usecase-stereotype",E.insertBefore(T,w),T.appendChild(w)}else m?.querySelector(".label tspan tspan, .label tspan")?.classList.add("usecase-stereotype")}}let a=new Map(r.edges.map((o)=>[o.id,o]));e.selectAll('path[data-et="edge"]').each(function(){let o=a.get(this.getAttribute("data-id")??"");if(!o)return;let l=xn(this);if(l.attr("id",KZr(r.diagramId,o.id)).attr("data-usecase-id",o.id).attr("data-usecase-kind",o.internal?"note-connector":"relationship"),o.internal)l.attr("aria-hidden","true");else l.attr("role","img").attr("aria-label",i.edges.get(o.id)??o.id)})},"annotateUsecaseElements"),QZr=I((e,r)=>{e.style("--mermaid-usecase-actor-font-size",`${r.actorFontSize}px`).style("--mermaid-usecase-actor-font-family",r.actorFontFamily).style("--mermaid-usecase-actor-font-weight",r.actorFontWeight).style("--mermaid-usecase-font-size",`${r.usecaseFontSize}px`).style("--mermaid-usecase-font-family",r.usecaseFontFamily).style("--mermaid-usecase-font-weight",r.usecaseFontWeight)},"applyUsecaseFonts"),tAi=I(async(e,r,i,a)=>{Ze.info("Drawing usecase diagram (unified)",r);let{layout:o}=Ar(),l=a.db,h=l.getData(),d=new Map(h.nodes.map((E)=>[E.id,J3e(E.label??E.id,E.labelType)])),p={nodes:new Map(h.nodes.map((E)=>[E.id,E.isGroup?Q3i(E):X3i(E.shape==="note"?{...E,noteTargetLabel:d.get(E.noteTarget??"")}:E)])),edges:new Map(h.edges.map((E)=>[E.id,Z3i({...E,sourceLabel:d.get(E.source)??E.sourceLabel,targetLabel:d.get(E.target)??E.targetLabel})]))},m=ly(r,h.config.securityLevel);h.layoutAlgorithm=oy(o),J3i(h,r),QZr(m,h),await sy(h,m),eAi(m,h,p);let y=h.diagramPadding;Ts.insertTitle(m,"usecaseDiagramTitleText",0,l.getDiagramTitle?.()??""),a1(m,y,"usecaseDiagram",h.useMaxWidth),QZr(m,h)},"draw"),rAi={draw:tAi},nAi=I((e)=>({actorBkg:e.usecaseActorBkg??e.actorBkg??e.mainBkg,actorBorder:e.usecaseActorBorder??e.actorBorder??e.primaryColor,bkg:e.usecaseBkg??e.mainBkg,border:e.usecaseBorder??e.nodeBorder??e.primaryColor,boundaryBkg:e.usecaseBoundaryBkg??e.clusterBkg,boundaryBorder:e.usecaseBoundaryBorder??e.clusterBorder,includeLine:e.usecaseIncludeLine??e.lineColor,extendLine:e.usecaseExtendLine??e.lineColor}),"roleColors"),iAi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=ea().usecase?.colorScheme==="rotate",l=hg(e.look),h=l==="handDrawn",d=rm(i),p="";for(let m=0;m({shape:e.type==="normal"?"actor":e.type==="hollow"?"actor-hollow":e.type==="awesome"?"actor-awesome":"actor-icon",...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"actor",actorType:e.type,business:e.business,labelType:e.labelType,...e.icon?{icon:e.icon}:{},...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"actorNode"),V3i=I((e)=>({shape:e.shape,...e.label===e.id?{}:{label:e.label},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"usecase",useCaseShape:e.shape,business:e.business,labelType:e.labelType,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{}}}),"useCaseNode"),H3i=I((e)=>({label:e.label,shape:"note",attrs:{kind:"note",target:e.target,labelType:e.labelType}}),"noteNode"),q3i=I((e)=>({label:e.id,shape:"json-table",...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{kind:"json",value:e.value,propertyOrder:e.propertyOrder,labelType:"text"}}),"jsonNode"),Y3i=I((e)=>({id:e.id,source:e.source,target:e.target,...e.label?{label:e.label}:{},...e.classes.length?{classes:[...e.classes]}:{},...e.styles.length?{styles:[...e.styles]}:{},attrs:{relationshipType:e.type,arrowType:e.arrowType,minlen:e.minlen,explicitId:e.explicitId,animate:e.animate,...e.animation?{animation:e.animation}:{},...e.labelType?{labelType:e.labelType}:{}}}),"relationshipEdge"),W3i=I((e)=>({id:`${e.id}-edge`,source:e.id,target:e.target,attrs:{relationshipType:"note",arrowType:hp.LINE_SOLID,pattern:"dotted",minlen:1,explicitId:!1,animate:!1,internal:!0}}),"noteEdge"),j3i=I((e,r,i,a)=>{let o={};for(let p of e.getActors().values())o[p.id]=z3i(p);for(let p of e.getUseCases().values())o[p.id]=V3i(p);for(let p of e.getNotes().values())o[p.id]=H3i(p);for(let p of e.getJsonNodes().values())o[p.id]=q3i(p);let l={};for(let p of e.getSystemBoundaries().values())l[p.id]={...p.label===p.id?{}:{title:p.label},nodes:[...p.members],...p.classes.length?{classes:[...p.classes]}:{},...p.styles.length?{styles:[...p.styles]}:{},attrs:{kind:"systemBoundary",boundaryType:p.type,labelType:p.labelType}};let h={};for(let p of e.getClassDefs().values())h[p.id]={styles:[...p.styles]};let d=e.getDirection();return{version:1,diagramType:"usecase",source:r,header:{keyword:"usecase",direction:d==="TD"?"TB":d,span:i},...e.getAccTitle()?{accTitle:e.getAccTitle()}:{},...e.getAccDescription()?{accDescr:e.getAccDescription()}:{},nodes:o,edges:[...e.getRelationships().map(Y3i),...[...e.getNotes().values()].map(W3i)],groups:l,classDefs:h,statements:a}},"buildUsecaseGraphAST"),hy=I((e)=>`line ${e.line}, column ${e.column} [${e.span[0]},${e.span[1]})`,"locationText"),JZr=I((e)=>e===void 0?"":` (label "${e}")`,"labelSuffix"),FF=I((e)=>e.generated?e.label:void 0,"generatedFrom"),egt=I((e,r)=>{for(let i of r)if(!e.includes(i))e.push(i)},"pushUnique"),K3i=class{constructor(e){this.db=e,this.source="",this.statements=[],this.elements=[],this.boundaries=[],this.jsonDrafts=[],this.relationshipDrafts=[],this.noteDrafts=[],this.metadataAssignments=[],this.classAssignments=[],this.styleAssignments=[],this.classDefinitions=[],this.directions=[],this.model=e.createModel()}static{I(this,"UsecaseModelBuilder")}reset(e){this.model=this.db.createModel(),this.source=e,this.statements=[],this.elements.length=0,this.boundaries.length=0,this.jsonDrafts.length=0,this.relationshipDrafts.length=0,this.noteDrafts.length=0,this.metadataAssignments.length=0,this.classAssignments.length=0,this.styleAssignments.length=0,this.classDefinitions.length=0,this.directions.length=0}addElement(e){this.elements.push(e)}addBoundary(e){this.boundaries.push(e)}addJson(e){this.jsonDrafts.push(e)}addRelationship(e){this.relationshipDrafts.push(e)}addNote(e){this.noteDrafts.push(e)}addMetadataAssignment(e,r,i,a){this.metadataAssignments.push({target:e,targetLocation:r,metadata:i,statement:a})}addClassDef(e,r){this.classDefinitions.push({ids:e,styles:r})}addClassAssignment(e,r){this.classAssignments.push({targets:e,classes:r})}addStyleAssignment(e,r,i){this.styleAssignments.push({target:e,location:r,styles:i})}setDirection(e){this.directions.push(e==="TD"?"TB":e)}setAccTitle(e){this.model.accTitle=e}setAccDescription(e){this.model.accDescription=e}setStatements(e){this.statements=e}getActors(){return this.model.actors}getUseCases(){return this.model.useCases}getSystemBoundaries(){return this.model.systemBoundaries}getRelationships(){return this.model.relationships}getNotes(){return this.model.notes}getJsonNodes(){return this.model.jsonNodes}getClassDefs(){return this.model.classDefs}getDirection(){return this.model.direction}getAccTitle(){return this.model.accTitle}getAccDescription(){return this.model.accDescription}finalize(e){let r=new Map,i=new Map,a=new Map,o=new Map;for(let p of this.relationshipDrafts)this.recordFirst(o,p.source.id,p.source.location.span[0]),this.recordFirst(o,p.target.id,p.target.location.span[0]);for(let p of this.elements)this.recordFirst(o,p.id,p.location.span[0]);for(let p of this.boundaries)this.recordFirst(o,p.id,p.location.span[0]);for(let p of this.jsonDrafts)this.recordFirst(o,p.id,p.location.span[0]);let l=[...this.elements.map((p)=>({offset:p.location.span[0],type:"element",value:p})),...this.boundaries.map((p)=>({offset:p.location.span[0],type:"boundary",value:p})),...this.jsonDrafts.map((p)=>({offset:p.location.span[0],type:"json",value:p})),...this.relationshipDrafts.filter((p)=>p.explicitId).map((p)=>({offset:p.explicitIdLocation.span[0],type:"edge",value:p}))].sort((p,m)=>p.offset-m.offset);for(let p of l)if(p.type==="element")this.collectElement(p.value,r,i);else if(p.type==="boundary")this.collectBoundary(p.value,r,a);else if(p.type==="json")this.registerUnique(r,p.value.id,"json",p.value.location,!1);else this.registerUnique(r,p.value.explicitId,"edge",p.value.explicitIdLocation,!1);this.materializeElements(i,o),this.materializeBoundaries(a,o),this.materializeJson(o);let h=this.materializeRelationships(r,i,o);this.reorderElements(i,o),this.applyMetadataAssignments(r,i,a,h),this.validateAndRefreshElements(i),this.refreshBoundaries(a,i),this.materializeNotes(r),this.applyClassDefinitions(),this.applyClassesAndStyles(r,h),this.model.direction=this.directions.at(-1)??this.model.direction,this.model.symbols=new Map([...r].map(([p,m])=>[p,m.kind]));let d=j3i(this,this.source,e,this.statements);return this.model.ast=d,this.db.commit(this.model),d}collectElement(e,r,i){let a=r.get(e.id),o=FF({generated:e.generated,label:e.label.text});if(a&&a.kind!==e.kind)this.conflict(`ID '${e.id}' is declared as both ${a.kind} and ${e.kind}`,e.location,a.location,o,FF(a));if(a&&(a.generated||e.generated))this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,a.location,o,FF(a));let l=i.get(e.id);if(!l){let h={kind:e.kind,id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],...e.parentId?{parentId:e.parentId,parentLocation:e.parentLocation}:{},...e.shape?{shape:e.shape}:{},...e.stereotype?{stereotype:e.stereotype,stereotypeLocation:e.location}:{}};this.applyDeclarationMetadata(h,e.metadata),i.set(e.id,h),r.set(e.id,{kind:e.kind,location:e.location,generated:e.generated,label:e.label.text});return}if(l.label.text!==e.label.text||l.label.type!==e.label.type)this.conflict(`ID '${e.id}' has conflicting labels`,e.location,l.location);if(e.shape&&l.shape&&e.shape!==l.shape)this.conflict(`Use case '${e.id}' has conflicting shapes`,e.location,l.location);if(e.parentId&&l.parentId&&e.parentId!==l.parentId)this.conflict(`Element '${e.id}' belongs to more than one system boundary`,e.parentLocation??e.location,l.parentLocation??l.location);if(e.stereotype&&l.stereotype&&e.stereotype!==l.stereotype)this.conflict(`Element '${e.id}' has conflicting stereotypes`,e.location,l.stereotypeLocation??l.location);l.shape??=e.shape,l.parentId??=e.parentId,l.parentLocation??=e.parentLocation,l.stereotype??=e.stereotype,l.stereotypeLocation??=e.stereotype?e.location:void 0,egt(l.classes,e.classes),this.applyDeclarationMetadata(l,e.metadata)}collectBoundary(e,r,i){let a=r.get(e.id),o=FF({generated:e.generated,label:e.label.text});if(a&&a.kind!=="boundary")this.conflict(`ID '${e.id}' is declared as both ${a.kind} and boundary`,e.location,a.location,o,FF(a));if(a&&(a.generated||e.generated))this.conflict(`Generated ID '${e.id}' collides with another declaration`,e.location,a.location,o,FF(a));let l=i.get(e.id);if(l){if(l.label.text!==e.label.text||l.label.type!==e.label.type)this.conflict(`Boundary '${e.id}' has conflicting titles`,e.location,l.location);egt(l.classes,e.classes);return}i.set(e.id,{id:e.id,label:e.label,location:e.location,generated:e.generated,classes:[...e.classes],styles:[],members:[]}),r.set(e.id,{kind:"boundary",location:e.location,generated:e.generated,label:e.label.text})}materializeElements(e,r){for(let i of[...e.values()].sort((a,o)=>(r.get(a.id)??0)-(r.get(o.id)??0)))this.setElementModel(i)}materializeBoundaries(e,r){for(let i of[...e.values()].sort((a,o)=>(r.get(a.id)??0)-(r.get(o.id)??0)))this.model.systemBoundaries.set(i.id,{id:i.id,label:i.label.text,labelType:i.label.type,type:i.type??"rect",members:[],classes:[...i.classes],styles:[...i.styles]})}materializeJson(e){for(let r of[...this.jsonDrafts].sort((i,a)=>(e.get(i.id)??0)-(e.get(a.id)??0)))this.model.jsonNodes.set(r.id,{id:r.id,value:r.value,propertyOrder:r.propertyOrder,classes:[...r.classes],styles:[]})}materializeRelationships(e,r,i){let a=new Map,o=0;for(let l of this.relationshipDrafts){let h=this.resolveEndpoint(l.source,e,r,i),d=this.resolveEndpoint(l.target,e,r,i);this.validateRelationship(l,h,d,e);let p=l.explicitId??`edge-${o++}`,m={id:p,explicitId:Boolean(l.explicitId),source:l.source.id,target:l.target.id,type:l.type,arrowType:l.arrowType,...l.label?{label:l.label.text,labelType:l.label.type}:{},minlen:l.minlen,classes:[],styles:[],animate:!1};this.model.relationships.push(m),a.set(p,{draft:l,relationship:m})}return this.model.relationshipCounter=o,a}resolveEndpoint(e,r,i,a){if(e.classesOnReference&&!e.declaration)throw Error(`Relationship endpoint '${e.id}' uses ::: without declaring the node at ${hy(e.location)}`);let o=r.get(e.id);if(o)return o.kind;return i.set(e.id,{kind:"usecase",id:e.id,label:e.label,location:e.location,generated:e.generated,shape:"ellipse",classes:[]}),r.set(e.id,{kind:"usecase",location:e.location,generated:e.generated,label:e.label.text}),this.recordFirst(a,e.id,e.location.span[0]),"usecase"}reorderElements(e,r){let i=new Map(this.model.actors),a=new Map(this.model.useCases);this.model.actors.clear(),this.model.useCases.clear();for(let o of[...e.values()].sort((l,h)=>(r.get(l.id)??0)-(r.get(h.id)??0))){if(!i.has(o.id)&&!a.has(o.id))this.setElementModel(o);let l=i.get(o.id)??this.model.actors.get(o.id),h=a.get(o.id)??this.model.useCases.get(o.id);if(l)this.model.actors.set(o.id,l);else if(h)this.model.useCases.set(o.id,h)}}applyMetadataAssignments(e,r,i,a){for(let o of this.metadataAssignments){let l=e.get(o.target);if(!l){let h=this.inferMetadataKind(o.metadata);throw Error(`Metadata target '${o.target}' is unresolved${h?` (metadata implies ${h})`:""} at ${hy(o.targetLocation)}`)}if(l.kind==="actor"||l.kind==="usecase")this.applyStandaloneElementMetadata(r.get(o.target),o.metadata);else if(l.kind==="boundary"){let h=i.get(o.target);for(let d of o.metadata.properties){if(d.key!=="type"||d.value!=="rect"&&d.value!=="package")this.invalidMetadata(o.target,l.kind,d);h.type=d.value}}else if(l.kind==="edge"){let h=a.get(o.target);if(!h)throw Error(`Metadata target '${o.target}' is not an explicit edge at ${hy(o.targetLocation)}`);o.statement.kind="edgeMetadata",o.statement.edges=[{id:o.target,span:o.statement.span,idSpan:o.targetLocation.span,...o.statement.metadata?{metadata:o.statement.metadata}:{}}],delete o.statement.nodes;for(let d of o.metadata.properties)if(d.key==="animate"&&typeof d.value==="boolean")h.relationship.animate=d.value;else if(d.key==="animation"&&(d.value==="fast"||d.value==="slow"))h.relationship.animation=d.value,h.relationship.animate=!0;else this.invalidMetadata(o.target,l.kind,d)}else for(let h of o.metadata.properties)this.invalidMetadata(o.target,l.kind,h)}for(let{relationship:o}of a.values())if(o.animation)o.animate=!0}applyStandaloneElementMetadata(e,r){for(let i of r.properties)if(e.kind==="actor")this.applyActorProperty(e,i,!0);else if(i.key==="business"&&typeof i.value==="boolean")e.business=i.value;else this.invalidMetadata(e.id,e.kind,i)}applyDeclarationMetadata(e,r){if(!r)return;for(let i of r.properties)if(e.kind==="actor")this.applyActorProperty(e,i,!1);else if(i.key==="business"&&typeof i.value==="boolean"){if(e.business!==void 0&&e.business!==i.value)this.conflict(`Use case '${e.id}' has conflicting business metadata`,i.location,e.location);e.business=i.value}else this.invalidMetadata(e.id,e.kind,i)}applyActorProperty(e,r,i){if(r.key==="type"&&(r.value==="normal"||r.value==="hollow"||r.value==="awesome")){if(!i&&e.actorType!==void 0&&e.actorType!==r.value)this.conflict(`Actor '${e.id}' has conflicting type metadata`,r.location,e.location);e.actorType=r.value}else if(r.key==="icon"&&typeof r.value==="string"){if(!i&&e.icon!==void 0&&e.icon!==r.value)this.conflict(`Actor '${e.id}' has conflicting icon metadata`,r.location,e.location);e.icon=r.value}else if(r.key==="business"&&typeof r.value==="boolean"){if(!i&&e.business!==void 0&&e.business!==r.value)this.conflict(`Actor '${e.id}' has conflicting business metadata`,r.location,e.location);e.business=r.value}else this.invalidMetadata(e.id,e.kind,r)}validateAndRefreshElements(e){for(let r of e.values()){let i=r.icon?"icon":r.actorType??"normal";if(r.kind==="actor"){if(r.icon&&r.actorType&&r.actorType!=="normal")throw Error(`Actor '${r.id}' cannot combine icon with type '${r.actorType}' at ${hy(r.location)}`);if(r.business&&(i==="icon"||i==="awesome"))throw Error(`Business actor '${r.id}' must use normal or hollow geometry at ${hy(r.location)}`)}else if((r.shape??"ellipse")==="rect"&&r.business)throw Error(`Rectangular use case '${r.id}' cannot be a business use case at ${hy(r.location)}`);this.setElementModel(r)}}refreshBoundaries(e,r){for(let i of e.values())i.members.length=0;for(let i of[...this.elements].sort((a,o)=>a.location.span[0]-o.location.span[0])){if(!i.parentId)continue;let a=e.get(i.parentId);if(!a)throw Error(`Parent boundary '${i.parentId}' for '${i.id}' is unresolved at ${hy(i.parentLocation??i.location)}`);if(!a.members.includes(i.id))a.members.push(i.id)}for(let i of r.values())if(i.parentId&&!e.has(i.parentId))throw Error(`Parent boundary '${i.parentId}' for '${i.id}' is unresolved at ${hy(i.parentLocation??i.location)}`);for(let i of e.values()){let a=this.model.systemBoundaries.get(i.id);a.type=i.type??"rect",a.members=[...i.members],a.classes=[...i.classes],a.styles=[...i.styles]}}materializeNotes(e){let r=0;for(let i of this.noteDrafts){let a=e.get(i.target);if(!a)throw Error(`Note target '${i.target}' is unresolved at ${hy(i.targetLocation)}`);if(a.kind!=="actor"&&a.kind!=="usecase")this.conflict(`Note target '${i.target}' must be an actor or use case, not ${a.kind}`,i.targetLocation,a.location);let o=`note-${r++}`;this.model.notes.set(o,{id:o,target:i.target,label:i.label.text,labelType:i.label.type})}this.model.noteCounter=r}applyClassDefinitions(){for(let e of this.classDefinitions)for(let r of e.ids)this.model.classDefs.set(r,{id:r,styles:[...e.styles]})}applyClassesAndStyles(e,r){for(let i of this.classAssignments)for(let a of i.targets)egt(this.getStylable(a.id,e,r,a.location).classes,i.classes);for(let i of this.styleAssignments)this.getStylable(i.target,e,r,i.location).styles.push(...i.styles)}getStylable(e,r,i,a){let o=r.get(e)?.kind,l=o==="actor"?this.model.actors.get(e):o==="usecase"?this.model.useCases.get(e):o==="boundary"?this.model.systemBoundaries.get(e):o==="json"?this.model.jsonNodes.get(e):o==="edge"?i.get(e)?.relationship:void 0;if(!l)throw Error(`Class/style target '${e}' is unresolved or anonymous at ${hy(a)}`);return l}validateRelationship(e,r,i,a){let o=I((l)=>l==="actor"||l==="usecase"||l==="json","allowed");if(!o(r))this.conflict(`Relationship source '${e.source.id}' cannot be ${r}`,e.source.location,a.get(e.source.id).location);if(!o(i))this.conflict(`Relationship target '${e.target.id}' cannot be ${i}`,e.target.location,a.get(e.target.id).location);if((e.type==="include"||e.type==="extend")&&(r!=="usecase"||i!=="usecase"))throw Error(`${e.type} relationship requires use-case endpoints at ${hy(e.location)}`);if(e.type==="generalization"&&(r!=="actor"&&r!=="usecase"||r!==i))throw Error(`Generalization requires actor-to-actor or use-case-to-use-case endpoints at ${hy(e.location)}`);if(e.type==="association"&&(r==="json"||i==="json")&&![0,1,2].includes(e.arrowType))throw Error(`JSON relationship '${e.source.id}' to '${e.target.id}' permits only point, reversed-point, or markerless solid association at ${hy(e.location)}`)}setElementModel(e){if(e.kind==="actor"){let r=e.icon?"icon":e.actorType??"normal";this.model.useCases.delete(e.id),this.model.actors.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,type:r,...e.icon?{icon:e.icon}:{},business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.actors.get(e.id)?.styles??[]})}else this.model.actors.delete(e.id),this.model.useCases.set(e.id,{id:e.id,label:e.label.text,labelType:e.label.type,shape:e.shape??"ellipse",business:e.business??!1,...e.stereotype?{stereotype:e.stereotype}:{},...e.parentId?{parentId:e.parentId}:{},classes:[...e.classes],styles:this.model.useCases.get(e.id)?.styles??[]})}inferMetadataKind(e){let r=new Set(["actor","usecase","boundary","edge"]);for(let i of e.properties)if(i.key==="icon")r.clear(),r.add("actor");else if(i.key==="animate"||i.key==="animation")r.clear(),r.add("edge");else if(i.key==="type"){if(r.clear(),i.value==="rect"||i.value==="package")r.add("boundary");else if(i.value==="normal"||i.value==="hollow"||i.value==="awesome")r.add("actor")}else if(i.key==="business")r.delete("boundary"),r.delete("edge");else return;return r.size===1?[...r][0]:void 0}invalidMetadata(e,r,i){throw Error(`Metadata property '${i.key}' is invalid for ${r} '${e}' at ${hy(i.location)}`)}registerUnique(e,r,i,a,o){let l=e.get(r);if(l)this.conflict(`ID '${r}' is declared more than once (${l.kind} and ${i})`,a,l.location,void 0,FF(l));e.set(r,{kind:i,location:a,generated:o})}recordFirst(e,r,i){let a=e.get(r);if(a===void 0||ithis.visit(p)),a=this.nodes(e,"relationTail")[0],o=i.map((p,m)=>this.actorOccurrence(r[m],p,!0));for(let p of i)this.builder.addElement(this.actorDraft(p));if(!a)return{kind:"node",span:[0,0],nodes:o};let l=this.visit(a);if(l.target.explicitDeclaration)this.builder.addElement(this.entityDraft(l.target));let h=this.relationshipDraft(i[0],l,this.nodeLocation(a));this.builder.addRelationship(h);let d=h.explicitId??`edge-${this.anonymousEdge++}`;return o.push(this.entityOccurrence(this.nodes(a.children,"entityName")[0],l.target,l.target.explicitDeclaration)),{kind:"edge",span:[0,0],nodes:o,edges:[{id:d,span:[0,0],...h.explicitIdLocation?{idSpan:h.explicitIdLocation.span}:{},...h.label?{labelSpan:h.label.span}:{}}]}}actorItem(e){let r=this.visit(this.nodes(e,"actorName")[0]),i=this.nodes(e,"metadata")[0],a=this.nodes(e,"stereotype")[0],o=this.nodes(e,"classSuffix")[0],l=o?this.visit(o):{classes:[],spans:[]};return{...r,...i?{metadata:this.visit(i)}:{},...a?{stereotype:this.visit(a)}:{},classes:l.classes,classSpans:l.spans}}actorName(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0];if(r){let o=this.nodes(e,"nodeLabel")[0],l=o?this.visit(o):this.tokenLabel(r);return{id:r.image,label:l,location:this.tokenLocation(r),generated:!1,classes:[],classSpans:[]}}let a=this.tokenLabel(i);return{id:this.generateId(a.text),label:a,location:this.tokenLocation(i),generated:!0,classes:[],classSpans:[]}}actorDeclarationOnly(e){let r=this.nodes(e,"actorItem"),i=r.map((a)=>this.visit(a));for(let a of i)this.builder.addElement(this.actorDraft(a));return{kind:"node",span:[0,0],nodes:i.map((a,o)=>this.actorOccurrence(r[o],a,!0))}}entityStatement(e){let r=this.nodes(e,"entityName"),i=this.visit(r[0]),a=this.nodes(e,"relationTail")[0];if(!a)return i.explicitDeclaration=!0,i.shape??="ellipse",this.builder.addElement(this.entityDraft(i)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(r[0],i,!0)]};if(i.explicitDeclaration)this.builder.addElement(this.entityDraft(i));let o=this.visit(a);if(o.target.explicitDeclaration)this.builder.addElement(this.entityDraft(o.target));let l={source:this.endpoint(i),target:this.endpoint(o.target),location:this.nodeLocation(a),...o.explicitId?{explicitId:o.explicitId,explicitIdLocation:o.explicitIdLocation}:{},...o.arrow};this.builder.addRelationship(l);let h=l.explicitId??`edge-${this.anonymousEdge++}`;return{kind:"edge",span:[0,0],nodes:[this.entityOccurrence(r[0],i,i.explicitDeclaration),this.entityOccurrence(this.nodes(a.children,"entityName")[0],o.target,o.target.explicitDeclaration)],edges:[{id:h,span:[0,0],...l.explicitIdLocation?{idSpan:l.explicitIdLocation.span}:{},...l.label?{labelSpan:l.label.span}:{}}]}}entityName(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],a=this.nodes(e,"nodeLabel")[0],o=this.nodes(e,"useCaseMetadata")[0],l=this.nodes(e,"stereotype")[0],h=this.nodes(e,"classSuffix")[0],d=h?this.visit(h):{classes:[],spans:[]};if(r){let m=a?this.visit(a):this.tokenLabel(r),y=a?this.tokens(e,"LBRACKET").length?"rect":"ellipse":void 0;return{id:r.image,label:m,location:this.tokenLocation(r),generated:!1,...y?{shape:y}:{},...o?{metadata:this.visit(o)}:{},...l?{stereotype:this.visit(l)}:{},classes:d.classes,classSpans:d.spans,explicitDeclaration:Boolean(y||o||l)}}let p=this.tokenLabel(i);return{id:this.generateId(p.text),label:p,location:this.tokenLocation(i),generated:!0,...o?{metadata:this.visit(o)}:{},...l?{stereotype:this.visit(l)}:{},classes:d.classes,classSpans:d.spans,explicitDeclaration:Boolean(o||l)}}nodeLabel(e){let r=this.allTokens(e);if(r.length===1&&(r[0].tokenType.name==="PLAIN_STRING"||r[0].tokenType.name==="MARKDOWN_STRING"))return this.tokenLabel(r[0]);let i=[r[0].startOffset,(r.at(-1).endOffset??r.at(-1).startOffset)+1];return{text:this.source.slice(i[0],i[1]),type:"text",span:i}}useCaseMetadata(e){return this.visit(this.nodes(e,"metadata")[0])}relationTail(e){let r=this.tokens(e,"IDENTIFIER")[0];return{...r?{explicitId:r.image,explicitIdLocation:this.tokenLocation(r)}:{},arrow:this.visit(this.nodes(e,"arrow")[0]),target:this.visit(this.nodes(e,"entityName")[0])}}arrow(e){return this.visit(this.firstNode(e,"semanticRelation","forwardSolidOperator","backwardSolidOperator","markerlessSolidOperator","forwardCircleOperator","backwardCircleOperator","forwardCrossOperator","backwardCrossOperator"))}edgeLabel(e){return this.nodeLabel(e)}semanticRelation(e){if(this.tokens(e,"GENERALIZATION").length)return{type:"generalization",arrowType:hp.SOLID_ARROW,minlen:1};let r=this.tokens(e,"INCLUDE").length?"include":"extend",i=this.tokens(e,r==="include"?"INCLUDE":"EXTEND")[0];return{type:r,arrowType:hp.SOLID_ARROW,label:{text:r,type:"text",span:this.tokenSpan(i)},minlen:1}}metadata(e){return{properties:this.nodes(e,"metadataProperty").map((r)=>this.visit(r)),location:this.ctxLocation(e)}}metadataProperty(e){let r=this.allTokens(e).filter((h)=>h.tokenType.name!=="COLON"),i=r[0],a=r[1],o=a.tokenType.name==="TRUE"?!0:a.tokenType.name==="FALSE"?!1:this.decodePlain(a),l=[i.startOffset,(a.endOffset??a.startOffset)+1];return{key:this.decodePlain(i),value:o,span:l,keySpan:this.contentSpan(i),valueSpan:this.contentSpan(a),location:this.tokenLocation(i)}}metadataSeparator(e){return}systemBoundaryStatement(e){let r=this.visit(this.nodes(e,"systemBoundaryName")[0]),i=this.nodes(e,"classSuffix")[0],a=i?this.visit(i):{classes:[],spans:[]};r.classes=a.classes,this.builder.addBoundary(r);let o=this.parentBoundary;this.parentBoundary={id:r.id,location:r.location};let l=this.nodes(e,"systemBoundaryContent")[0],h=l?this.visit(l):[];this.parentBoundary=o;let d=this.tokens(e,"END")[0],p=this.nodes(e,"metadata")[0],m=p?this.visit(p):void 0,y={kind:"group",span:[0,0],group:r.id,idSpan:r.location.span,titleSpan:r.label.span,endSpan:this.tokenSpan(d),classSpans:a.spans,...m?{metadata:m.properties.map(({key:v,span:w,keySpan:T,valueSpan:x})=>({key:v,span:w,keySpan:T,valueSpan:x}))}:{},...h.length?{children:h}:{}};if(m)this.builder.addMetadataAssignment(r.id,r.location,m,y);return y}systemBoundaryName(e){let r=this.tokens(e,"IDENTIFIER")[0];if(r){let o=this.nodes(e,"nodeLabel")[0];return{id:r.image,label:o?this.visit(o):this.tokenLabel(r),location:this.tokenLocation(r),generated:!1,classes:[]}}let i=this.tokens(e,"PLAIN_STRING")[0]??this.tokens(e,"MARKDOWN_STRING")[0],a=this.tokenLabel(i);return{id:this.generateId(a.text),label:a,location:this.tokenLocation(i),generated:!0,classes:[]}}systemBoundaryContent(e){return[...this.nodes(e,"blankLine"),...this.nodes(e,"commentLine"),...this.nodes(e,"boundaryElement")].sort((i,a)=>(i.location?.startOffset??0)-(a.location?.startOffset??0)).map((i)=>this.wrap(i,this.visit(i)))}boundaryElement(e){let r=this.nodes(e,"actorDeclarationOnly")[0];if(r)return this.visit(r);let i=this.nodes(e,"entityName")[0],a=this.visit(i);return a.explicitDeclaration=!0,a.shape??="ellipse",this.builder.addElement(this.entityDraft(a)),{kind:"node",span:[0,0],nodes:[this.entityOccurrence(i,a,!0)]}}metadataAssignmentStatement(e){let r=this.visit(this.nodes(e,"metadataAssignmentTarget")[0]),i=this.visit(this.nodes(e,"metadata")[0]),a={kind:"metadata",span:[0,0],nodes:[{id:r.id,span:r.location.span,idSpan:r.location.span}],metadata:i.properties.map(({key:o,span:l,keySpan:h,valueSpan:d})=>({key:o,span:l,keySpan:h,valueSpan:d}))};return this.builder.addMetadataAssignment(r.id,r.location,i,a),a}metadataAssignmentTarget(e){let r=this.allTokens(e)[0],i=this.tokenLabel(r);return{id:r.tokenType.name==="IDENTIFIER"?r.image:this.generateId(i.text),location:this.tokenLocation(r)}}noteStatement(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.visit(this.nodes(e,"nodeLabel")[0]);return this.builder.addNote({target:r.image,targetLocation:this.tokenLocation(r),label:i,location:this.ctxLocation(e)}),{kind:"note",span:[0,0],ref:`note-${this.anonymousNote++}`,refSpan:i.span,nodes:[{id:r.image,span:this.tokenSpan(r),idSpan:this.tokenSpan(r)}]}}stereotype(e){let r=this.tokens(e,"STEREOTYPE_TEXT")[0];return{value:r.image.trim(),span:this.tokenSpan(r)}}classSuffix(e){let r=this.tokens(e,"IDENTIFIER");return{classes:r.map((i)=>i.image),spans:r.map((i)=>this.tokenSpan(i))}}jsonStatement(e){let r=this.tokens(e,"JSON_DECLARATION_START")[0],i=this.tokens(e,"JSON_OBJECT_LITERAL")[0],a=/^json[\t ]+(\w+)/.exec(r.image),o=a[1],l=a[0].length-o.length,h={span:[r.startOffset+l,r.startOffset+l+o.length],line:r.startLine??1,column:(r.startColumn??1)+l},d=YJr(i.image,i.startLine??1,i.startColumn??1),p=this.nodes(e,"classSuffix")[0],m=p?this.visit(p):{classes:[],spans:[]},y={id:o,value:d.value,propertyOrder:d.propertyOrder,location:h,classes:m.classes};return this.builder.addJson(y),{kind:"json",span:[0,0],nodes:[{id:o,span:h.span,idSpan:h.span,defines:!0,classSpans:m.spans}],classSpans:m.spans}}directionStatement(e){let r=this.allTokens(e).find((i)=>["TD","TB","BT","RL","LR"].includes(i.tokenType.name));return this.builder.setDirection(r.image),{kind:"direction",span:[0,0]}}classDefStatement(e){let r=this.tokens(e,"IDENTIFIER"),i=this.visit(this.nodes(e,"styles")[0]);return this.builder.addClassDef(r.map((a)=>a.image),i),{kind:"classDef",span:[0,0],ref:r[0].image,refSpan:this.tokenSpan(r[0])}}classStatement(e){let r=this.tokens(e,"IDENTIFIER"),i=1;for(;i({id:l.image,location:this.tokenLocation(l)})),o=r.slice(i).map((l)=>l.image);return this.builder.addClassAssignment(a,o),{kind:"classAssign",span:[0,0],ref:o[0],refSpan:this.tokenSpan(r[i]),nodes:a.map(({id:l,location:h})=>({id:l,span:h.span,idSpan:h.span}))}}styleStatement(e){let r=this.tokens(e,"IDENTIFIER")[0],i=this.visit(this.nodes(e,"styles")[0]);return this.builder.addStyleAssignment(r.image,this.tokenLocation(r),i),{kind:"style",span:[0,0],nodes:[{id:r.image,span:this.tokenSpan(r),idSpan:this.tokenSpan(r)}]}}styles(e){return this.nodes(e,"styleValue").map((r)=>this.visit(r))}styleValue(e){let r=this.allTokens(e),i=[r[0].startOffset,(r.at(-1).endOffset??r.at(-1).startOffset)+1];return this.source.slice(i[0],i[1]).replaceAll("\\,",",")}styleComponent(e){return this.allTokens(e).map((r)=>r.image).join("")}forwardSolidOperator(e){let r=this.tokens(e,"FORWARD_SOLID")[0];return{type:"association",arrowType:hp.SOLID_ARROW,minlen:this.solidMinlen(r)}}backwardSolidOperator(e){let r=this.tokens(e,"BACKWARD_SOLID")[0],i=this.nodes(e,"edgeLabel")[0],a=i?this.tokens(e,"MARKERLESS_SOLID").at(-1):r;return{type:"association",arrowType:hp.BACK_ARROW,minlen:this.solidMinlen(a),...i?{label:this.visit(i)}:{}}}markerlessSolidOperator(e){let r=this.nodes(e,"edgeLabel")[0],i=this.allTokens(e);if(!r)return{type:"association",arrowType:hp.LINE_SOLID,minlen:this.solidMinlen(this.tokens(e,"MARKERLESS_SOLID")[0])};let a=i.at(-1),o=a.tokenType.name==="FORWARD_SOLID"?hp.SOLID_ARROW:a.tokenType.name==="FORWARD_CIRCLE"?hp.CIRCLE_ARROW:a.tokenType.name==="FORWARD_CROSS"?hp.CROSS_ARROW:hp.LINE_SOLID;return{type:"association",arrowType:o,label:this.visit(r),minlen:o===hp.SOLID_ARROW||o===hp.LINE_SOLID?this.solidMinlen(a):1}}forwardCircleOperator(e){return{type:"association",arrowType:hp.CIRCLE_ARROW,minlen:1}}backwardCircleOperator(e){let r=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:hp.CIRCLE_ARROW_REVERSED,minlen:1,...r?{label:this.visit(r)}:{}}}forwardCrossOperator(e){return{type:"association",arrowType:hp.CROSS_ARROW,minlen:1}}backwardCrossOperator(e){let r=this.nodes(e,"edgeLabel")[0];return{type:"association",arrowType:hp.CROSS_ARROW_REVERSED,minlen:1,...r?{label:this.visit(r)}:{}}}actorDraft(e){return{id:e.id,kind:"actor",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}entityDraft(e){return{id:e.id,kind:"usecase",label:e.label,location:e.location,generated:e.generated,...this.parentBoundary?{parentId:this.parentBoundary.id,parentLocation:this.parentBoundary.location}:{},...e.shape?{shape:e.shape}:{},...e.metadata?{metadata:e.metadata}:{},...e.stereotype?{stereotype:e.stereotype.value,stereotypeSpan:e.stereotype.span}:{},classes:e.classes}}endpoint(e,r=e.explicitDeclaration??!0){return{id:e.id,label:e.label,location:e.location,generated:e.generated,declaration:r,classesOnReference:e.classes.length>0}}relationshipDraft(e,r,i){return{source:this.endpoint(e,!0),target:this.endpoint(r.target),location:i,...r.explicitId?{explicitId:r.explicitId,explicitIdLocation:r.explicitIdLocation}:{},...r.arrow}}actorOccurrence(e,r,i){return{id:r.id,span:this.nodeSpan(e),idSpan:r.location.span,labelSpan:r.label.span,...i?{defines:!0}:{},...r.stereotype?{stereotypeSpan:r.stereotype.span}:{},...r.metadata?{metadata:r.metadata.properties.map(({key:a,span:o,keySpan:l,valueSpan:h})=>({key:a,span:o,keySpan:l,valueSpan:h}))}:{},...r.classSpans.length?{classSpans:r.classSpans}:{}}}entityOccurrence(e,r,i){return this.actorOccurrence(e,r,i)}wrap(e,r){if(r.kind==="blank"||r.kind==="comment")return r;r.span=this.nodeSpan(e);for(let i of r.edges??[])i.span=r.span;return r}tokenLabel(e){let r=e.tokenType.name==="MARKDOWN_STRING"?"markdown":"text",i=r==="markdown"?2:e.tokenType.name==="PLAIN_STRING"?1:0,a=this.tokenSpan(e,i);return{text:this.source.slice(a[0],a[1]),type:r,span:a}}decodePlain(e){return e.tokenType.name==="PLAIN_STRING"?e.image.slice(1,-1):e.image}contentSpan(e){return this.tokenSpan(e,e.tokenType.name==="PLAIN_STRING"?1:e.tokenType.name==="MARKDOWN_STRING"?2:0)}generateId(e){return e.replace(/\W/g,"_")}solidMinlen(e){return Math.max(1,(e.image.match(/-/g)?.length??2)-1)}nodeLocation(e){let r=this.allTokens(e.children)[0];return{span:this.nodeSpan(e),line:r.startLine??1,column:r.startColumn??1}}ctxLocation(e){let r=this.allTokens(e).filter((o)=>o.tokenType.name!=="NEWLINE"&&o.tokenType.name!=="EOF"),i=r[0],a=r.at(-1);return{span:[i.startOffset,Math.min(this.source.length,(a.endOffset??a.startOffset+a.image.length-1)+1)],line:i.startLine??1,column:i.startColumn??1}}tokenLocation(e){let r=e.tokenType.name==="PLAIN_STRING"?1:e.tokenType.name==="MARKDOWN_STRING"?2:0;return{span:this.tokenSpan(e,r),line:e.startLine??1,column:(e.startColumn??1)+r}}nodeSpan(e){let r=this.allTokens(e.children).filter((o)=>o.tokenType.name!=="NEWLINE"&&o.tokenType.name!=="EOF"),i=r[0],a=r.at(-1);if(!i||!a)throw Error("Usecase CST node has no source token");return[i.startOffset,Math.min(this.source.length,(a.endOffset??a.startOffset+a.image.length-1)+1)]}tokenSpan(e,r=0){return[e.startOffset+r,Math.min(this.source.length,(e.endOffset??e.startOffset+e.image.length-1)+1-r)]}nodes(e,r){return(e[r]??[]).filter((i)=>("children"in i))}tokens(e,r){return(e[r]??[]).filter((i)=>("tokenTypeIdx"in i))}firstNode(e,...r){for(let i of r){let a=this.nodes(e,i)[0];if(a)return a}throw Error(`Usecase CST is missing one of: ${r.join(", ")}`)}allTokens(e){let r=[];for(let i of Object.values(e))for(let a of i)if("tokenTypeIdx"in a)r.push(a);else r.push(...this.allTokens(a.children));return r.sort((i,a)=>i.startOffset-a.startOffset)}},Z3i=new Q3i,J3i={parse:I(async(e)=>{tAe.clear(),sle.input=[];try{nJr({diagramType:"usecase",lexer:F3i,parser:sle,entry:I(()=>sle.start(),"entry"),visit:I((r)=>Z3i.build(r,e),"visit")},e)}catch(r){tAe.clear();let i=sle.errors[0];if(i){let{token:a}=i,o=TW(a.startOffset)?a.startOffset:e.length,l=TW(a.endOffset)?a.endOffset+1:o,h=TW(a.startLine)?a.startLine:e.slice(0,o).split(/\r\n|\r|\n/).length,d=Math.max(e.lastIndexOf(` +`,o-1),e.lastIndexOf("\r",o-1)),p=TW(a.startColumn)?a.startColumn:o-d,m=r instanceof Error?r.message:String(r);throw Error(`${m} at line ${h}, column ${p} [${o},${l})`)}throw r}},"parse")},eAi=["point","circle","cross","extension"],WJr={usecaseActor:!0,usecaseActorHollow:!0,usecaseActorAwesome:!0,usecaseActorIcon:!0},eJr=I((e,r)=>{let[i,a]=[e,r].map((o)=>o.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element");return`usecase-${i}-${a}`},"usecaseDomId"),tAi=I((e)=>`usecase-${e.replace(/[^\w-]+/g,"_").replace(/^_+|_+$/g,"")||"element"}`,"usecaseNodeDomId"),rAe=I((e,r)=>{if(r!=="markdown")return e;return ewe(e).map((i)=>i.map((a)=>a.content).join(" ")).join(` +`)},"getAccessibleLabel"),rAi=I((e)=>{let r=rAe(e.label??e.id,e.labelType);if(WJr[e.shape]){let a=e.actorType&&e.actorType!=="normal"?`${e.actorType} `:"",o=e.business?"business ":"",l=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${o}${a}actor ${r}${l}`}if(e.shape==="note")return`Note for ${e.noteTargetLabel??e.noteTarget??""}: ${r}`;if(e.shape==="usecaseJsonTable"){let a=(e.jsonRows??[]).map((o)=>`${o.accessibleKey}: ${o.value}`).join("; ");return a?`${r}: ${a}`:r}let i=e.stereotype?`, stereotype ${e.stereotype}`:"";return`${e.business?"business ":""}use case ${r}${i}`},"getUsecaseNodeAccessibleName"),nAi=I((e)=>`${e.boundaryType} system boundary ${rAe(e.label??e.id,e.labelType)}`,"getUsecaseBoundaryAccessibleName"),iAi=I((e)=>{if(e.relationshipType==="note")return"";return`${e.relationshipType==="association"&&e.label?`association ${rAe(e.label,e.labelType)}`:e.relationshipType} from ${e.sourceLabel} to ${e.targetLabel}`},"getUsecaseEdgeAccessibleName"),SW=I((e)=>e.replace(/&/g,"&").replace(//g,">"),"escapePlainLabel"),tJr=I((e)=>e.replace(/([*[\\\]_`])/g,"\\$1"),"escapeMarkdownMarkers"),aAi=I((e,r)=>{e.diagramId=r,e.markers=[...eAi];for(let i of e.nodes){let a=i;if(a.domId=tAi(i.id),i.label!==void 0&&i.labelType==="text")i.label=SW(i.label);if(i.stereotype)i.stereotype=SW(i.stereotype);if(!i.isGroup&&i.shape==="usecaseJsonTable")i.jsonRows=i.jsonRows?.map((o)=>({...o,key:SW(o.key),value:SW(o.value)}));if(!i.isGroup&&(i.shape==="usecaseEllipse"||i.shape==="rect")&&i.stereotype){let o=i.label??SW(i.id);i.label=`«${tJr(i.stereotype)}»
    ${i.labelType==="text"?tJr(o):o}`,i.labelType="markdown",a.hasFoldedStereotype=!0,delete i.stereotype}}for(let i of e.edges)if(i.label!==void 0&&i.labelType==="text")i.label=SW(i.label);return e},"prepareUsecaseLayoutData"),sAi=I((e,r,i)=>{for(let o of r.nodes){let l=typeof o.domId==="string"?o.domId:eJr(r.diagramId,o.id),h=e.select(`#${l}`),d=o.isGroup?"boundary":WJr[o.shape]?"actor":o.shape==="note"?"note":o.shape==="usecaseJsonTable"?"json":"usecase",p=i.nodes.get(o.id)??o.id;if(h.attr("data-usecase-id",o.id).attr("data-usecase-kind",d).attr("role","img").attr("aria-label",p),!o.isGroup&&(o.shape==="usecaseEllipse"||o.shape==="rect")&&"hasFoldedStereotype"in o&&o.hasFoldedStereotype===!0){let m=h.node(),y=m?.querySelector(".nodeLabel"),v=y?.querySelector("p")??y,w=v?.firstChild;if(v&&w?.nodeType===3){let T=v.ownerDocument.createElement("span");T.className="usecase-stereotype",v.insertBefore(T,w),T.appendChild(w)}else m?.querySelector(".label tspan tspan, .label tspan")?.classList.add("usecase-stereotype")}}let a=new Map(r.edges.map((o)=>[o.id,o]));e.selectAll('path[data-et="edge"]').each(function(){let o=a.get(this.getAttribute("data-id")??"");if(!o)return;let l=xn(this);if(l.attr("id",eJr(r.diagramId,o.id)).attr("data-usecase-id",o.id).attr("data-usecase-kind",o.internal?"note-connector":"relationship"),o.internal)l.attr("aria-hidden","true");else l.attr("role","img").attr("aria-label",i.edges.get(o.id)??o.id)})},"annotateUsecaseElements"),rJr=I((e,r)=>{e.style("--mermaid-usecase-actor-font-size",`${r.actorFontSize}px`).style("--mermaid-usecase-actor-font-family",r.actorFontFamily).style("--mermaid-usecase-actor-font-weight",r.actorFontWeight).style("--mermaid-usecase-font-size",`${r.usecaseFontSize}px`).style("--mermaid-usecase-font-family",r.usecaseFontFamily).style("--mermaid-usecase-font-weight",r.usecaseFontWeight)},"applyUsecaseFonts"),oAi=I(async(e,r,i,a)=>{Ze.info("Drawing usecase diagram (unified)",r);let{layout:o}=Ar(),l=a.db,h=l.getData(),d=new Map(h.nodes.map((v)=>[v.id,rAe(v.label??v.id,v.labelType)])),p={nodes:new Map(h.nodes.map((v)=>[v.id,v.isGroup?nAi(v):rAi(v.shape==="note"?{...v,noteTargetLabel:d.get(v.noteTarget??"")}:v)])),edges:new Map(h.edges.map((v)=>[v.id,iAi({...v,sourceLabel:d.get(v.source)??v.sourceLabel,targetLabel:d.get(v.target)??v.targetLabel})]))},m=ly(r,h.config.securityLevel);h.layoutAlgorithm=oy(o),aAi(h,r),rJr(m,h),await sy(h,m),sAi(m,h,p);let y=h.diagramPadding;Ts.insertTitle(m,"usecaseDiagramTitleText",0,l.getDiagramTitle?.()??""),a1(m,y,"usecaseDiagram",h.useMaxWidth),rJr(m,h)},"draw"),lAi={draw:oAi},cAi=I((e)=>({actorBkg:e.usecaseActorBkg??e.actorBkg??e.mainBkg,actorBorder:e.usecaseActorBorder??e.actorBorder??e.primaryColor,bkg:e.usecaseBkg??e.mainBkg,border:e.usecaseBorder??e.nodeBorder??e.primaryColor,boundaryBkg:e.usecaseBoundaryBkg??e.clusterBkg,boundaryBorder:e.usecaseBoundaryBorder??e.clusterBorder,includeLine:e.usecaseIncludeLine??e.lineColor,extendLine:e.usecaseExtendLine??e.lineColor}),"roleColors"),uAi=I((e)=>{let{theme:r,bkgColorArray:i,borderColorArray:a}=e;if(!nm(r,a))return"";let o=ea().usecase?.colorScheme==="rotate",l=hg(e.look),h=l==="handDrawn",d=rm(i),p="";for(let m=0;m{let r=nAi(e),i=hg(e.look)==="handDrawn";return` - ${iAi(e)} + `}return p},"genColor"),hAi=I((e)=>{let r=cAi(e),i=hg(e.look)==="handDrawn";return` + ${uAi(e)} & .usecase-actor { color: ${e.actorTextColor??e.primaryTextColor}; } @@ -4079,26 +4079,26 @@ ${i?"":` fill: ${e.mainBkg}; stroke: ${e.lineColor}; } -`},"getStyles"),sAi=aAi,VJr={parser:W3i,db:Z3e,renderer:rAi,styles:sAi}});function WJr(){return Ar()["wardley-beta"]}function jJr(e,r,i,a,o,l,h,d,p){dy.addNode({id:e,label:r,x:i,y:a,className:o,labelOffsetX:l,labelOffsetY:h,inertia:d,sourceStrategy:p})}function KJr(e,r,i=!1,a,o){dy.addLink({source:e,target:r,dashed:i,label:a,flow:o})}function XJr(e,r,i){dy.addTrend({nodeId:e,targetX:r,targetY:i})}function QJr(e,r,i){dy.addAnnotation({number:e,coordinates:r,text:i})}function ZJr(e,r,i){dy.addNote({text:e,x:r,y:i})}function JJr(e,r,i){dy.addAccelerator({name:e,x:r,y:i})}function een(e,r,i){dy.addDeaccelerator({name:e,x:r,y:i})}function ten(e,r){dy.setAnnotationsBox(e,r)}function ren(e,r){dy.setSize(e,r)}function nen(e){dy.startPipeline(e)}function ien(e,r){dy.addPipelineComponent(e,r)}function aen(e){dy.setAxes(e)}function sen(e){return dy.getNode(e)}function oen(e){return dy.resolveNodeId(e)}function len(){return dy.build()}function cen(){dy.clear(),qs()}var eAe,FF,qJr,oAi,lAi,YJr,cAi,dy,uAi,hAi,dAi,fAi,pAi,gAi,mAi,uen;var hen=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();eAe=I((e,r)=>{let i=e<=1?e*100:e;if(i<0||i>100)throw Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return i},"toPercent"),FF=I((e,r,i)=>({x:eAe(r,`${i} evolution`),y:eAe(e,`${i} visibility`)}),"toCoordinates"),qJr=I((e)=>{if(!e)return;if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward";return},"getFlowFromPort"),oAi=I((e)=>{if(!e?.startsWith("+"))return{};let i=/^\+'([^']*)'/.exec(e)?.[1];if(e.includes("<>"))return{flow:"bidirectional",label:i};if(e.includes("<"))return{flow:"backward",label:i};if(e.includes(">"))return{flow:"forward",label:i};return{label:i}},"extractFlowFromArrow"),lAi=I((e,r)=>{if(Sh(e,r),e.size)r.setSize(e.size.width,e.size.height);if(e.evolution){let i=e.evolution.stages.map((o)=>{if(o.secondName)return`${o.name.trim()} / ${o.secondName.trim()}`;return o.name.trim()}),a=e.evolution.stages.filter((o)=>o.boundary!==void 0).map((o)=>o.boundary);r.updateAxes({stages:i,stageBoundaries:a})}if(e.anchors.forEach((i)=>{let a=FF(i.visibility,i.evolution,`Anchor "${i.name}"`);r.addNode(i.name,i.name,a.x,a.y,"anchor")}),e.components.forEach((i)=>{let a=FF(i.visibility,i.evolution,`Component "${i.name}"`),o=i.label?(i.label.negX?-1:1)*i.label.offsetX:void 0,l=i.label?(i.label.negY?-1:1)*i.label.offsetY:void 0,h=i.decorator?.strategy;r.addNode(i.name,i.name,a.x,a.y,"component",o,l,i.inertia,h)}),e.notes.forEach((i)=>{let a=FF(i.visibility,i.evolution,`Note "${i.text}"`);r.addNote(i.text,a.x,a.y)}),e.pipelines.forEach((i)=>{let a=r.getNode(i.parent);if(!a||typeof a.y!=="number")throw Error(`Pipeline "${i.parent}" must reference an existing component with coordinates.`);let o=a.y;r.startPipeline(i.parent),i.components.forEach((l)=>{let h=`${i.parent}_${l.name}`,d=l.label?(l.label.negX?-1:1)*l.label.offsetX:void 0,p=l.label?(l.label.negY?-1:1)*l.label.offsetY:void 0,m=eAe(l.evolution,`Pipeline component "${l.name}" evolution`);r.addNode(h,l.name,m,o,"pipeline-component",d,p),r.addPipelineComponent(i.parent,h)})}),e.links.forEach((i)=>{let a=!!i.arrow&&(i.arrow.includes("-.->")||i.arrow.includes(".-.")),o=qJr(i.fromPort)??qJr(i.toPort),{flow:l,label:h}=oAi(i.arrow);if(!o&&l)o=l;let d=i.linkLabel,p=h??d;r.addLink(r.resolveNodeId(i.from),r.resolveNodeId(i.to),a,p,o)}),e.evolves.forEach((i)=>{let a=r.getNode(i.component);if(a?.y!==void 0){let o=eAe(i.target,`Evolve target for "${i.component}"`);r.addTrend(i.component,o,a.y)}}),e.annotations.length>0){let i=e.annotations[0],a=FF(i.x,i.y,"Annotations box");r.setAnnotationsBox(a.x,a.y)}e.annotation.forEach((i)=>{let a=FF(i.x,i.y,`Annotation ${i.number}`);r.addAnnotation(i.number,[{x:a.x,y:a.y}],i.text)}),e.accelerators.forEach((i)=>{let a=FF(i.x,i.y,`Accelerator "${i.name}"`);r.addAccelerator(i.name,a.x,a.y)}),e.deaccelerators.forEach((i)=>{let a=FF(i.x,i.y,`Deaccelerator "${i.name}"`);r.addDeaccelerator(i.name,a.x,a.y)})},"populateDb"),YJr={parser:{yy:void 0},parse:I(async(e)=>{let r=await lp("wardley",e);Ze.debug(r);let i=YJr.parser?.yy;if(!i||typeof i.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");lAi(r,i)},"parse")},cAi=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{I(this,"WardleyBuilder")}addNode(e){let r=this.nodes.get(e.id)??{id:e.id,label:e.label},i={...r,...e,className:e.className??r.className,labelOffsetX:e.labelOffsetX??r.labelOffsetX,labelOffsetY:e.labelOffsetY??r.labelOffsetY};this.nodes.set(e.id,i)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let r=this.nodes.get(e);if(r)r.isPipelineParent=!0}addPipelineComponent(e,r){let i=this.pipelines.get(e);if(i)i.componentIds.push(r);let a=this.nodes.get(r);if(a)a.inPipeline=!0}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,r){this.annotationsBox={x:e,y:r}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,r){this.size={width:e,height:r}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[r,i]of this.nodes)if(i.label===e)return r;return e}build(){let e=[];for(let r of this.nodes.values()){if(typeof r.x!=="number"||typeof r.y!=="number")throw Error(`Node "${r.label}" is missing coordinates`);e.push(r)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},dy=new cAi;I(WJr,"getConfig");I(jJr,"addNode");I(KJr,"addLink");I(XJr,"addTrend");I(QJr,"addAnnotation");I(ZJr,"addNote");I(JJr,"addAccelerator");I(een,"addDeaccelerator");I(ten,"setAnnotationsBox");I(ren,"setSize");I(nen,"startPipeline");I(ien,"addPipelineComponent");I(aen,"updateAxes");I(sen,"getNode");I(oen,"resolveNodeId");I(len,"getWardleyData");I(cen,"clear");uAi={getConfig:WJr,addNode:jJr,addLink:KJr,addTrend:XJr,addAnnotation:QJr,addNote:ZJr,addAccelerator:JJr,addDeaccelerator:een,setAnnotationsBox:ten,setSize:ren,startPipeline:nen,addPipelineComponent:ien,updateAxes:aen,getNode:sen,resolveNodeId:oen,getWardleyData:len,clear:cen,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},hAi=["Genesis","Custom Built","Product","Commodity"],dAi=I(()=>{let{themeVariables:e}=Ar();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),fAi=I(()=>{let e=Ar()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),pAi=I((e,r,i,a)=>{Ze.debug(`Rendering Wardley map -`+e);let o=fAi(),l=dAi(),h=o.nodeRadius*1.6,d=a.db,p=d.getWardleyData(),m=d.getDiagramTitle(),y=p.size?.width??o.width,E=p.size?.height??o.height,w=Ou(r);w.selectAll("*").remove(),Bl(w,E,y,o.useMaxWidth),w.attr("viewBox",`0 0 ${y} ${E}`);let T=w.append("g").attr("class","wardley-map"),x=w.append("defs");x.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.evolutionStroke).attr("stroke","none"),x.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.linkStroke).attr("stroke","none"),x.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",l.linkStroke).attr("stroke","none"),T.append("rect").attr("class","wardley-background").attr("width",y).attr("height",E).attr("fill",l.backgroundColor);let k=y-o.padding*2,A=E-o.padding*2;if(m)T.append("text").attr("class","wardley-title").attr("x",y/2).attr("y",o.padding/2).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(m);let R=I((z)=>o.padding+z/100*k,"projectX"),N=I((z)=>E-o.padding-z/100*A,"projectY"),L=T.append("g").attr("class","wardley-axes");L.append("line").attr("x1",o.padding).attr("x2",y-o.padding).attr("y1",E-o.padding).attr("y2",E-o.padding).attr("stroke",l.axisColor).attr("stroke-width",1),L.append("line").attr("x1",o.padding).attr("x2",o.padding).attr("y1",o.padding).attr("y2",E-o.padding).attr("stroke",l.axisColor).attr("stroke-width",1);let B=p.axes.xLabel??"Evolution",D=p.axes.yLabel??"Visibility";L.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",o.padding+k/2).attr("y",E-o.padding/4).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(B),L.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",o.padding/3).attr("y",o.padding+A/2).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${o.padding/3} ${o.padding+A/2})`).text(D);let P=p.axes.stages&&p.axes.stages.length>0?p.axes.stages:hAi;if(P.length>0){let z=T.append("g").attr("class","wardley-stages"),ne=p.axes.stageBoundaries,ie=[];if(ne&&ne.length===P.length){let le=0;ne.forEach((se)=>{ie.push({start:le,end:se}),le=se})}else{let le=1/P.length;P.forEach((se,he)=>{ie.push({start:he*le,end:(he+1)*le})})}P.forEach((le,se)=>{let he=ie[se],ye=o.padding+he.start*k,xe=o.padding+he.end*k,Ie=(ye+xe)/2;if(se>0)z.append("line").attr("x1",ye).attr("x2",ye).attr("y1",o.padding).attr("y2",E-o.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);z.append("text").attr("class","wardley-stage-label").attr("x",Ie).attr("y",E-o.padding/1.5).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize-2).attr("text-anchor","middle").text(le)})}if(o.showGrid){let z=T.append("g").attr("class","wardley-grid");for(let ne=1;ne<4;ne++){let ie=ne/4,le=o.padding+k*ie;z.append("line").attr("x1",le).attr("x2",le).attr("y1",o.padding).attr("y2",E-o.padding).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6"),z.append("line").attr("x1",o.padding).attr("x2",y-o.padding).attr("y1",E-o.padding-A*ie).attr("y2",E-o.padding-A*ie).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6")}}let F=new Map;if(p.nodes.forEach((z)=>{F.set(z.id,{x:R(z.x),y:N(z.y),node:z})}),p.pipelines.length>0){let z=T.append("g").attr("class","wardley-pipelines"),ne=T.append("g").attr("class","wardley-pipeline-links");p.pipelines.forEach((ie)=>{if(ie.componentIds.length===0)return;let le=ie.componentIds.map((xe)=>({id:xe,pos:F.get(xe),node:p.nodes.find((Ie)=>Ie.id===xe)})).filter((xe)=>xe.pos&&xe.node).sort((xe,Ie)=>xe.node.x-Ie.node.x);for(let xe=0;xe{let Ie=F.get(xe);if(Ie)se=Math.min(se,Ie.x),he=Math.max(he,Ie.x),ye=Ie.y}),se!==1/0&&he!==-1/0){let Ie=o.nodeRadius*4,Ee=ye-Ie/2,Ue=F.get(ie.nodeId);if(Ue){let Me=(se+he)/2;Ue.x=Me,Ue.y=Ee-h/6}z.append("rect").attr("class","wardley-pipeline-box").attr("x",se-15).attr("y",Ee).attr("width",he-se+30).attr("height",Ie).attr("fill","none").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let H=T.append("g").attr("class","wardley-links"),K=new Map;p.pipelines.forEach((z)=>{K.set(z.nodeId,new Set(z.componentIds))});let Q=p.links.filter((z)=>{if(!F.has(z.source)||!F.has(z.target))return!1;if(K.get(z.target)?.has(z.source))return!1;return!0});H.selectAll("line").data(Q).enter().append("line").attr("class",(z)=>`wardley-link${z.dashed?" wardley-link--dashed":""}`).attr("x1",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=p.nodes.find((Ie)=>Ie.id===z.source).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ie.x-ne.x,ye=ie.y-ne.y,xe=Math.sqrt(he*he+ye*ye);return ne.x+he/xe*se}).attr("y1",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=p.nodes.find((Ie)=>Ie.id===z.source).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ie.x-ne.x,ye=ie.y-ne.y,xe=Math.sqrt(he*he+ye*ye);return ne.y+ye/xe*se}).attr("x2",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=p.nodes.find((Ie)=>Ie.id===z.target).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ne.x-ie.x,ye=ne.y-ie.y,xe=Math.sqrt(he*he+ye*ye);return ie.x+he/xe*se}).attr("y2",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=p.nodes.find((Ie)=>Ie.id===z.target).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ne.x-ie.x,ye=ne.y-ie.y,xe=Math.sqrt(he*he+ye*ye);return ie.y+ye/xe*se}).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(z)=>z.dashed?"6 6":null).attr("marker-end",(z)=>{if(z.flow==="forward"||z.flow==="bidirectional")return`url(#link-arrow-end-${r})`;return null}).attr("marker-start",(z)=>{if(z.flow==="backward"||z.flow==="bidirectional")return`url(#link-arrow-start-${r})`;return null}),H.selectAll("text").data(Q.filter((z)=>z.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),le=(ne.x+ie.x)/2,se=ie.y-ne.y,he=ie.x-ne.x,ye=Math.sqrt(he*he+se*se),xe=8,Ie=se/ye;return le+Ie*8}).attr("y",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),le=(ne.y+ie.y)/2,se=ie.x-ne.x,he=ie.y-ne.y,ye=Math.sqrt(se*se+he*he),xe=8,Ie=-se/ye;return le+Ie*8}).attr("fill",l.axisTextColor).attr("font-size",o.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),le=(ne.x+ie.x)/2,se=(ne.y+ie.y)/2,he=ie.x-ne.x,ye=ie.y-ne.y,xe=Math.sqrt(he*he+ye*ye),Ie=8,Ee=ye/xe,Ue=-he/xe,Me=le+Ee*8,Xe=se+Ue*8,je=Math.atan2(ye,he)*180/Math.PI;if(je>90||je<-90)je+=180;return`rotate(${je} ${Me} ${Xe})`}).text((z)=>z.label);let Z=T.append("g").attr("class","wardley-trends"),Y=p.trends.map((z)=>{let ne=F.get(z.nodeId);if(!ne)return null;let ie=R(z.targetX),le=N(z.targetY),se=ie-ne.x,he=le-ne.y,ye=Math.sqrt(se*se+he*he),xe=o.nodeRadius+2,Ie=ye>xe?ie-se/ye*xe:ie,Ee=ye>xe?le-he/ye*xe:le;return{origin:ne,targetX:ie,targetY:le,adjustedX2:Ie,adjustedY2:Ee}}).filter((z)=>z!==null);Z.selectAll("line").data(Y).enter().append("line").attr("class","wardley-trend").attr("x1",(z)=>z.origin.x).attr("y1",(z)=>z.origin.y).attr("x2",(z)=>z.adjustedX2).attr("y2",(z)=>z.adjustedY2).attr("stroke",l.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);let te=T.append("g").attr("class","wardley-nodes").selectAll("g").data(p.nodes).enter().append("g").attr("class",(z)=>["wardley-node",z.className?`wardley-node--${z.className}`:""].filter(Boolean).join(" "));te.filter((z)=>z.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","#666").attr("stroke",l.componentStroke).attr("stroke-width",1),te.filter((z)=>z.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","#ccc").attr("stroke",l.componentStroke).attr("stroke-width",1),te.filter((z)=>z.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let X=te.filter((z)=>z.sourceStrategy==="market");X.append("circle").attr("class","wardley-market-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),te.filter((z)=>!z.isPipelineParent&&z.sourceStrategy!=="market"&&z.className!=="anchor").append("circle").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1);let W=o.nodeRadius*0.7,J=o.nodeRadius*1.2;if(X.append("line").attr("class","wardley-market-line").attr("x1",(z)=>F.get(z.id).x).attr("y1",(z)=>F.get(z.id).y-J).attr("x2",(z)=>F.get(z.id).x-J*Math.cos(Math.PI/6)).attr("y2",(z)=>F.get(z.id).y+J*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",(z)=>F.get(z.id).x-J*Math.cos(Math.PI/6)).attr("y1",(z)=>F.get(z.id).y+J*Math.sin(Math.PI/6)).attr("x2",(z)=>F.get(z.id).x+J*Math.cos(Math.PI/6)).attr("y2",(z)=>F.get(z.id).y+J*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),X.append("line").attr("class","wardley-market-line").attr("x1",(z)=>F.get(z.id).x+J*Math.cos(Math.PI/6)).attr("y1",(z)=>F.get(z.id).y+J*Math.sin(Math.PI/6)).attr("x2",(z)=>F.get(z.id).x).attr("y2",(z)=>F.get(z.id).y-J).attr("stroke",l.componentStroke).attr("stroke-width",1),X.append("circle").attr("class","wardley-market-dot").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y-J).attr("r",W).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",(z)=>F.get(z.id).x-J*Math.cos(Math.PI/6)).attr("cy",(z)=>F.get(z.id).y+J*Math.sin(Math.PI/6)).attr("r",W).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),X.append("circle").attr("class","wardley-market-dot").attr("cx",(z)=>F.get(z.id).x+J*Math.cos(Math.PI/6)).attr("cy",(z)=>F.get(z.id).y+J*Math.sin(Math.PI/6)).attr("r",W).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),te.filter((z)=>z.isPipelineParent===!0).append("rect").attr("x",(z)=>F.get(z.id).x-h/2).attr("y",(z)=>F.get(z.id).y-h/2).attr("width",h).attr("height",h).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1),te.filter((z)=>z.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h/2+15:o.nodeRadius+15;if(z.sourceStrategy)ie+=o.nodeRadius+10;return ne.x+ie}).attr("y1",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h:o.nodeRadius*2;return ne.y-ie/2}).attr("x2",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h/2+15:o.nodeRadius+15;if(z.sourceStrategy)ie+=o.nodeRadius+10;return ne.x+ie}).attr("y2",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h:o.nodeRadius*2;return ne.y+ie/2}).attr("stroke",l.componentStroke).attr("stroke-width",6),te.append("text").attr("x",(z)=>{let ne=F.get(z.id);if(z.className==="anchor")return z.labelOffsetX!==void 0?ne.x+z.labelOffsetX:ne.x;let ie=o.nodeLabelOffset;if(z.sourceStrategy&&z.labelOffsetX===void 0)ie+=10;let le=z.labelOffsetX??ie;return ne.x+le}).attr("y",(z)=>{let ne=F.get(z.id);if(z.className==="anchor")return z.labelOffsetY!==void 0?ne.y+z.labelOffsetY:ne.y-3;let ie=-o.nodeLabelOffset;if(z.sourceStrategy&&z.labelOffsetY===void 0)ie-=10;let le=z.labelOffsetY??ie;return ne.y+le}).attr("class","wardley-node-label").attr("fill",(z)=>{if(z.className==="evolved")return l.evolutionStroke;if(z.className==="anchor")return"#000";return l.componentLabelColor}).attr("font-size",o.labelFontSize).attr("font-weight",(z)=>z.className==="anchor"?"bold":"normal").attr("text-anchor",(z)=>z.className==="anchor"?"middle":"start").attr("dominant-baseline",(z)=>z.className==="anchor"?"middle":"auto").text((z)=>z.label),p.annotations.length>0){let z=T.append("g").attr("class","wardley-annotations");if(p.annotations.forEach((ne)=>{let ie=ne.coordinates.map((le)=>({x:R(le.x),y:N(le.y)}));if(ie.length>1)for(let le=0;le{let se=z.append("g").attr("class","wardley-annotation");se.append("circle").attr("cx",le.x).attr("cy",le.y).attr("r",10).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5),se.append("text").attr("x",le.x).attr("y",le.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.number)})}),p.annotationsBox){let ne=R(p.annotationsBox.x),ie=N(p.annotationsBox.y),le=10,se=16,he=11,ye=z.append("g").attr("class","wardley-annotations-box"),xe=[...p.annotations].filter((Ee)=>Ee.text).sort((Ee,Ue)=>Ee.number-Ue.number),Ie=[];if(xe.forEach((Ee,Ue)=>{let Me=ye.append("text").attr("x",ne+le).attr("y",ie+le+(Ue+1)*se).attr("font-size",he).attr("fill",l.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${Ee.number}. ${Ee.text}`);Ie.push(Me)}),Ie.length>0){let Ee=0,Ue=0;Ie.forEach((Vt)=>{let Xt=Vt.node(),rr=Xt.getComputedTextLength();Ee=Math.max(Ee,rr);let We=Xt.getBBox();Ue=Math.max(Ue,We.height)});let Me=Ee+le*2+105,Xe=xe.length*se+le*2+Ue/2,je=o.padding,Qe=y-o.padding-Me,St=o.padding,pt=E-o.padding-Xe;ne=Math.max(je,Math.min(ne,Qe)),ie=Math.max(St,Math.min(ie,pt)),Ie.forEach((Vt,Xt)=>{Vt.attr("x",ne+le).attr("y",ie+le+(Xt+1)*se)}),ye.insert("rect","text").attr("x",ne).attr("y",ie).attr("width",Me).attr("height",Xe).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(p.notes.length>0){let z=T.append("g").attr("class","wardley-notes");p.notes.forEach((ne)=>{let ie=R(ne.x),le=N(ne.y);z.append("text").attr("x",ie).attr("y",le).attr("text-anchor","start").attr("font-size",11).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.text)})}if(p.accelerators.length>0){let z=T.append("g").attr("class","wardley-accelerators");p.accelerators.forEach((ne)=>{let ie=R(ne.x),le=N(ne.y),se=60,he=30,ye=20,xe=` - M ${ie} ${le-15} - L ${ie+60-20} ${le-15} - L ${ie+60-20} ${le-15-8} - L ${ie+60} ${le} - L ${ie+60-20} ${le+15+8} - L ${ie+60-20} ${le+15} - L ${ie} ${le+15} +`},"getStyles"),dAi=hAi,jJr={parser:J3i,db:tAe,renderer:lAi,styles:dAi}});function ZJr(){return Ar()["wardley-beta"]}function JJr(e,r,i,a,o,l,h,d,p){dy.addNode({id:e,label:r,x:i,y:a,className:o,labelOffsetX:l,labelOffsetY:h,inertia:d,sourceStrategy:p})}function een(e,r,i=!1,a,o){dy.addLink({source:e,target:r,dashed:i,label:a,flow:o})}function ten(e,r,i){dy.addTrend({nodeId:e,targetX:r,targetY:i})}function ren(e,r,i){dy.addAnnotation({number:e,coordinates:r,text:i})}function nen(e,r,i){dy.addNote({text:e,x:r,y:i})}function ien(e,r,i){dy.addAccelerator({name:e,x:r,y:i})}function aen(e,r,i){dy.addDeaccelerator({name:e,x:r,y:i})}function sen(e,r){dy.setAnnotationsBox(e,r)}function oen(e,r){dy.setSize(e,r)}function len(e){dy.startPipeline(e)}function cen(e,r){dy.addPipelineComponent(e,r)}function uen(e){dy.setAxes(e)}function hen(e){return dy.getNode(e)}function den(e){return dy.resolveNodeId(e)}function fen(){return dy.build()}function pen(){dy.clear(),qs()}var nAe,UF,XJr,fAi,pAi,QJr,gAi,dy,mAi,bAi,yAi,vAi,_Ai,EAi,wAi,gen;var men=Re(()=>{Tv();A0();Ql();eo();Zs();Ja();rb();nAe=I((e,r)=>{let i=e<=1?e*100:e;if(i<0||i>100)throw Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return i},"toPercent"),UF=I((e,r,i)=>({x:nAe(r,`${i} evolution`),y:nAe(e,`${i} visibility`)}),"toCoordinates"),XJr=I((e)=>{if(!e)return;if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward";return},"getFlowFromPort"),fAi=I((e)=>{if(!e?.startsWith("+"))return{};let i=/^\+'([^']*)'/.exec(e)?.[1];if(e.includes("<>"))return{flow:"bidirectional",label:i};if(e.includes("<"))return{flow:"backward",label:i};if(e.includes(">"))return{flow:"forward",label:i};return{label:i}},"extractFlowFromArrow"),pAi=I((e,r)=>{if(Sh(e,r),e.size)r.setSize(e.size.width,e.size.height);if(e.evolution){let i=e.evolution.stages.map((o)=>{if(o.secondName)return`${o.name.trim()} / ${o.secondName.trim()}`;return o.name.trim()}),a=e.evolution.stages.filter((o)=>o.boundary!==void 0).map((o)=>o.boundary);r.updateAxes({stages:i,stageBoundaries:a})}if(e.anchors.forEach((i)=>{let a=UF(i.visibility,i.evolution,`Anchor "${i.name}"`);r.addNode(i.name,i.name,a.x,a.y,"anchor")}),e.components.forEach((i)=>{let a=UF(i.visibility,i.evolution,`Component "${i.name}"`),o=i.label?(i.label.negX?-1:1)*i.label.offsetX:void 0,l=i.label?(i.label.negY?-1:1)*i.label.offsetY:void 0,h=i.decorator?.strategy;r.addNode(i.name,i.name,a.x,a.y,"component",o,l,i.inertia,h)}),e.notes.forEach((i)=>{let a=UF(i.visibility,i.evolution,`Note "${i.text}"`);r.addNote(i.text,a.x,a.y)}),e.pipelines.forEach((i)=>{let a=r.getNode(i.parent);if(!a||typeof a.y!=="number")throw Error(`Pipeline "${i.parent}" must reference an existing component with coordinates.`);let o=a.y;r.startPipeline(i.parent),i.components.forEach((l)=>{let h=`${i.parent}_${l.name}`,d=l.label?(l.label.negX?-1:1)*l.label.offsetX:void 0,p=l.label?(l.label.negY?-1:1)*l.label.offsetY:void 0,m=nAe(l.evolution,`Pipeline component "${l.name}" evolution`);r.addNode(h,l.name,m,o,"pipeline-component",d,p),r.addPipelineComponent(i.parent,h)})}),e.links.forEach((i)=>{let a=!!i.arrow&&(i.arrow.includes("-.->")||i.arrow.includes(".-.")),o=XJr(i.fromPort)??XJr(i.toPort),{flow:l,label:h}=fAi(i.arrow);if(!o&&l)o=l;let d=i.linkLabel,p=h??d;r.addLink(r.resolveNodeId(i.from),r.resolveNodeId(i.to),a,p,o)}),e.evolves.forEach((i)=>{let a=r.getNode(i.component);if(a?.y!==void 0){let o=nAe(i.target,`Evolve target for "${i.component}"`);r.addTrend(i.component,o,a.y)}}),e.annotations.length>0){let i=e.annotations[0],a=UF(i.x,i.y,"Annotations box");r.setAnnotationsBox(a.x,a.y)}e.annotation.forEach((i)=>{let a=UF(i.x,i.y,`Annotation ${i.number}`);r.addAnnotation(i.number,[{x:a.x,y:a.y}],i.text)}),e.accelerators.forEach((i)=>{let a=UF(i.x,i.y,`Accelerator "${i.name}"`);r.addAccelerator(i.name,a.x,a.y)}),e.deaccelerators.forEach((i)=>{let a=UF(i.x,i.y,`Deaccelerator "${i.name}"`);r.addDeaccelerator(i.name,a.x,a.y)})},"populateDb"),QJr={parser:{yy:void 0},parse:I(async(e)=>{let r=await lp("wardley",e);Ze.debug(r);let i=QJr.parser?.yy;if(!i||typeof i.addNode!=="function")throw Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");pAi(r,i)},"parse")},gAi=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}static{I(this,"WardleyBuilder")}addNode(e){let r=this.nodes.get(e.id)??{id:e.id,label:e.label},i={...r,...e,className:e.className??r.className,labelOffsetX:e.labelOffsetX??r.labelOffsetX,labelOffsetY:e.labelOffsetY??r.labelOffsetY};this.nodes.set(e.id,i)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});let r=this.nodes.get(e);if(r)r.isPipelineParent=!0}addPipelineComponent(e,r){let i=this.pipelines.get(e);if(i)i.componentIds.push(r);let a=this.nodes.get(r);if(a)a.inPipeline=!0}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,r){this.annotationsBox={x:e,y:r}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,r){this.size={width:e,height:r}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(let[r,i]of this.nodes)if(i.label===e)return r;return e}build(){let e=[];for(let r of this.nodes.values()){if(typeof r.x!=="number"||typeof r.y!=="number")throw Error(`Node "${r.label}" is missing coordinates`);e.push(r)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},dy=new gAi;I(ZJr,"getConfig");I(JJr,"addNode");I(een,"addLink");I(ten,"addTrend");I(ren,"addAnnotation");I(nen,"addNote");I(ien,"addAccelerator");I(aen,"addDeaccelerator");I(sen,"setAnnotationsBox");I(oen,"setSize");I(len,"startPipeline");I(cen,"addPipelineComponent");I(uen,"updateAxes");I(hen,"getNode");I(den,"resolveNodeId");I(fen,"getWardleyData");I(pen,"clear");mAi={getConfig:ZJr,addNode:JJr,addLink:een,addTrend:ten,addAnnotation:ren,addNote:nen,addAccelerator:ien,addDeaccelerator:aen,setAnnotationsBox:sen,setSize:oen,startPipeline:len,addPipelineComponent:cen,updateAxes:uen,getNode:hen,resolveNodeId:den,getWardleyData:fen,clear:pen,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},bAi=["Genesis","Custom Built","Product","Commodity"],yAi=I(()=>{let{themeVariables:e}=Ar();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),vAi=I(()=>{let e=Ar()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),_Ai=I((e,r,i,a)=>{Ze.debug(`Rendering Wardley map +`+e);let o=vAi(),l=yAi(),h=o.nodeRadius*1.6,d=a.db,p=d.getWardleyData(),m=d.getDiagramTitle(),y=p.size?.width??o.width,v=p.size?.height??o.height,w=Ou(r);w.selectAll("*").remove(),Bl(w,v,y,o.useMaxWidth),w.attr("viewBox",`0 0 ${y} ${v}`);let T=w.append("g").attr("class","wardley-map"),x=w.append("defs");x.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.evolutionStroke).attr("stroke","none"),x.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.linkStroke).attr("stroke","none"),x.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",l.linkStroke).attr("stroke","none"),T.append("rect").attr("class","wardley-background").attr("width",y).attr("height",v).attr("fill",l.backgroundColor);let k=y-o.padding*2,A=v-o.padding*2;if(m)T.append("text").attr("class","wardley-title").attr("x",y/2).attr("y",o.padding/2).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(m);let R=I((z)=>o.padding+z/100*k,"projectX"),N=I((z)=>v-o.padding-z/100*A,"projectY"),L=T.append("g").attr("class","wardley-axes");L.append("line").attr("x1",o.padding).attr("x2",y-o.padding).attr("y1",v-o.padding).attr("y2",v-o.padding).attr("stroke",l.axisColor).attr("stroke-width",1),L.append("line").attr("x1",o.padding).attr("x2",o.padding).attr("y1",o.padding).attr("y2",v-o.padding).attr("stroke",l.axisColor).attr("stroke-width",1);let B=p.axes.xLabel??"Evolution",D=p.axes.yLabel??"Visibility";L.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",o.padding+k/2).attr("y",v-o.padding/4).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(B),L.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",o.padding/3).attr("y",o.padding+A/2).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${o.padding/3} ${o.padding+A/2})`).text(D);let P=p.axes.stages&&p.axes.stages.length>0?p.axes.stages:bAi;if(P.length>0){let z=T.append("g").attr("class","wardley-stages"),ne=p.axes.stageBoundaries,ie=[];if(ne&&ne.length===P.length){let se=0;ne.forEach((oe)=>{ie.push({start:se,end:oe}),se=oe})}else{let se=1/P.length;P.forEach((oe,he)=>{ie.push({start:he*se,end:(he+1)*se})})}P.forEach((se,oe)=>{let he=ie[oe],ye=o.padding+he.start*k,Se=o.padding+he.end*k,Ie=(ye+Se)/2;if(oe>0)z.append("line").attr("x1",ye).attr("x2",ye).attr("y1",o.padding).attr("y2",v-o.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",0.8);z.append("text").attr("class","wardley-stage-label").attr("x",Ie).attr("y",v-o.padding/1.5).attr("fill",l.axisTextColor).attr("font-size",o.axisFontSize-2).attr("text-anchor","middle").text(se)})}if(o.showGrid){let z=T.append("g").attr("class","wardley-grid");for(let ne=1;ne<4;ne++){let ie=ne/4,se=o.padding+k*ie;z.append("line").attr("x1",se).attr("x2",se).attr("y1",o.padding).attr("y2",v-o.padding).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6"),z.append("line").attr("x1",o.padding).attr("x2",y-o.padding).attr("y1",v-o.padding-A*ie).attr("y2",v-o.padding-A*ie).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6")}}let F=new Map;if(p.nodes.forEach((z)=>{F.set(z.id,{x:R(z.x),y:N(z.y),node:z})}),p.pipelines.length>0){let z=T.append("g").attr("class","wardley-pipelines"),ne=T.append("g").attr("class","wardley-pipeline-links");p.pipelines.forEach((ie)=>{if(ie.componentIds.length===0)return;let se=ie.componentIds.map((Se)=>({id:Se,pos:F.get(Se),node:p.nodes.find((Ie)=>Ie.id===Se)})).filter((Se)=>Se.pos&&Se.node).sort((Se,Ie)=>Se.node.x-Ie.node.x);for(let Se=0;Se{let Ie=F.get(Se);if(Ie)oe=Math.min(oe,Ie.x),he=Math.max(he,Ie.x),ye=Ie.y}),oe!==1/0&&he!==-1/0){let Ie=o.nodeRadius*4,Ee=ye-Ie/2,ze=F.get(ie.nodeId);if(ze){let Me=(oe+he)/2;ze.x=Me,ze.y=Ee-h/6}z.append("rect").attr("class","wardley-pipeline-box").attr("x",oe-15).attr("y",Ee).attr("width",he-oe+30).attr("height",Ie).attr("fill","none").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}let H=T.append("g").attr("class","wardley-links"),W=new Map;p.pipelines.forEach((z)=>{W.set(z.nodeId,new Set(z.componentIds))});let X=p.links.filter((z)=>{if(!F.has(z.source)||!F.has(z.target))return!1;if(W.get(z.target)?.has(z.source))return!1;return!0});H.selectAll("line").data(X).enter().append("line").attr("class",(z)=>`wardley-link${z.dashed?" wardley-link--dashed":""}`).attr("x1",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),oe=p.nodes.find((Ie)=>Ie.id===z.source).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ie.x-ne.x,ye=ie.y-ne.y,Se=Math.sqrt(he*he+ye*ye);return ne.x+he/Se*oe}).attr("y1",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),oe=p.nodes.find((Ie)=>Ie.id===z.source).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ie.x-ne.x,ye=ie.y-ne.y,Se=Math.sqrt(he*he+ye*ye);return ne.y+ye/Se*oe}).attr("x2",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),oe=p.nodes.find((Ie)=>Ie.id===z.target).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ne.x-ie.x,ye=ne.y-ie.y,Se=Math.sqrt(he*he+ye*ye);return ie.x+he/Se*oe}).attr("y2",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),oe=p.nodes.find((Ie)=>Ie.id===z.target).isPipelineParent?h/Math.sqrt(2):o.nodeRadius,he=ne.x-ie.x,ye=ne.y-ie.y,Se=Math.sqrt(he*he+ye*ye);return ie.y+ye/Se*oe}).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",(z)=>z.dashed?"6 6":null).attr("marker-end",(z)=>{if(z.flow==="forward"||z.flow==="bidirectional")return`url(#link-arrow-end-${r})`;return null}).attr("marker-start",(z)=>{if(z.flow==="backward"||z.flow==="bidirectional")return`url(#link-arrow-start-${r})`;return null}),H.selectAll("text").data(X.filter((z)=>z.label)).enter().append("text").attr("class","wardley-link-label").attr("x",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=(ne.x+ie.x)/2,oe=ie.y-ne.y,he=ie.x-ne.x,ye=Math.sqrt(he*he+oe*oe),Se=8,Ie=oe/ye;return se+Ie*8}).attr("y",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=(ne.y+ie.y)/2,oe=ie.x-ne.x,he=ie.y-ne.y,ye=Math.sqrt(oe*oe+he*he),Se=8,Ie=-oe/ye;return se+Ie*8}).attr("fill",l.axisTextColor).attr("font-size",o.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",(z)=>{let ne=F.get(z.source),ie=F.get(z.target),se=(ne.x+ie.x)/2,oe=(ne.y+ie.y)/2,he=ie.x-ne.x,ye=ie.y-ne.y,Se=Math.sqrt(he*he+ye*ye),Ie=8,Ee=ye/Se,ze=-he/Se,Me=se+Ee*8,Xe=oe+ze*8,Ye=Math.atan2(ye,he)*180/Math.PI;if(Ye>90||Ye<-90)Ye+=180;return`rotate(${Ye} ${Me} ${Xe})`}).text((z)=>z.label);let Q=T.append("g").attr("class","wardley-trends"),Y=p.trends.map((z)=>{let ne=F.get(z.nodeId);if(!ne)return null;let ie=R(z.targetX),se=N(z.targetY),oe=ie-ne.x,he=se-ne.y,ye=Math.sqrt(oe*oe+he*he),Se=o.nodeRadius+2,Ie=ye>Se?ie-oe/ye*Se:ie,Ee=ye>Se?se-he/ye*Se:se;return{origin:ne,targetX:ie,targetY:se,adjustedX2:Ie,adjustedY2:Ee}}).filter((z)=>z!==null);Q.selectAll("line").data(Y).enter().append("line").attr("class","wardley-trend").attr("x1",(z)=>z.origin.x).attr("y1",(z)=>z.origin.y).attr("x2",(z)=>z.adjustedX2).attr("y2",(z)=>z.adjustedY2).attr("stroke",l.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);let J=T.append("g").attr("class","wardley-nodes").selectAll("g").data(p.nodes).enter().append("g").attr("class",(z)=>["wardley-node",z.className?`wardley-node--${z.className}`:""].filter(Boolean).join(" "));J.filter((z)=>z.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","#666").attr("stroke",l.componentStroke).attr("stroke-width",1),J.filter((z)=>z.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","#ccc").attr("stroke",l.componentStroke).attr("stroke-width",1),J.filter((z)=>z.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);let Z=J.filter((z)=>z.sourceStrategy==="market");Z.append("circle").attr("class","wardley-market-overlay").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius*2).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),J.filter((z)=>!z.isPipelineParent&&z.sourceStrategy!=="market"&&z.className!=="anchor").append("circle").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y).attr("r",o.nodeRadius).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1);let j=o.nodeRadius*0.7,ee=o.nodeRadius*1.2;if(Z.append("line").attr("class","wardley-market-line").attr("x1",(z)=>F.get(z.id).x).attr("y1",(z)=>F.get(z.id).y-ee).attr("x2",(z)=>F.get(z.id).x-ee*Math.cos(Math.PI/6)).attr("y2",(z)=>F.get(z.id).y+ee*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),Z.append("line").attr("class","wardley-market-line").attr("x1",(z)=>F.get(z.id).x-ee*Math.cos(Math.PI/6)).attr("y1",(z)=>F.get(z.id).y+ee*Math.sin(Math.PI/6)).attr("x2",(z)=>F.get(z.id).x+ee*Math.cos(Math.PI/6)).attr("y2",(z)=>F.get(z.id).y+ee*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),Z.append("line").attr("class","wardley-market-line").attr("x1",(z)=>F.get(z.id).x+ee*Math.cos(Math.PI/6)).attr("y1",(z)=>F.get(z.id).y+ee*Math.sin(Math.PI/6)).attr("x2",(z)=>F.get(z.id).x).attr("y2",(z)=>F.get(z.id).y-ee).attr("stroke",l.componentStroke).attr("stroke-width",1),Z.append("circle").attr("class","wardley-market-dot").attr("cx",(z)=>F.get(z.id).x).attr("cy",(z)=>F.get(z.id).y-ee).attr("r",j).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),Z.append("circle").attr("class","wardley-market-dot").attr("cx",(z)=>F.get(z.id).x-ee*Math.cos(Math.PI/6)).attr("cy",(z)=>F.get(z.id).y+ee*Math.sin(Math.PI/6)).attr("r",j).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),Z.append("circle").attr("class","wardley-market-dot").attr("cx",(z)=>F.get(z.id).x+ee*Math.cos(Math.PI/6)).attr("cy",(z)=>F.get(z.id).y+ee*Math.sin(Math.PI/6)).attr("r",j).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),J.filter((z)=>z.isPipelineParent===!0).append("rect").attr("x",(z)=>F.get(z.id).x-h/2).attr("y",(z)=>F.get(z.id).y-h/2).attr("width",h).attr("height",h).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1),J.filter((z)=>z.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h/2+15:o.nodeRadius+15;if(z.sourceStrategy)ie+=o.nodeRadius+10;return ne.x+ie}).attr("y1",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h:o.nodeRadius*2;return ne.y-ie/2}).attr("x2",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h/2+15:o.nodeRadius+15;if(z.sourceStrategy)ie+=o.nodeRadius+10;return ne.x+ie}).attr("y2",(z)=>{let ne=F.get(z.id),ie=z.isPipelineParent?h:o.nodeRadius*2;return ne.y+ie/2}).attr("stroke",l.componentStroke).attr("stroke-width",6),J.append("text").attr("x",(z)=>{let ne=F.get(z.id);if(z.className==="anchor")return z.labelOffsetX!==void 0?ne.x+z.labelOffsetX:ne.x;let ie=o.nodeLabelOffset;if(z.sourceStrategy&&z.labelOffsetX===void 0)ie+=10;let se=z.labelOffsetX??ie;return ne.x+se}).attr("y",(z)=>{let ne=F.get(z.id);if(z.className==="anchor")return z.labelOffsetY!==void 0?ne.y+z.labelOffsetY:ne.y-3;let ie=-o.nodeLabelOffset;if(z.sourceStrategy&&z.labelOffsetY===void 0)ie-=10;let se=z.labelOffsetY??ie;return ne.y+se}).attr("class","wardley-node-label").attr("fill",(z)=>{if(z.className==="evolved")return l.evolutionStroke;if(z.className==="anchor")return"#000";return l.componentLabelColor}).attr("font-size",o.labelFontSize).attr("font-weight",(z)=>z.className==="anchor"?"bold":"normal").attr("text-anchor",(z)=>z.className==="anchor"?"middle":"start").attr("dominant-baseline",(z)=>z.className==="anchor"?"middle":"auto").text((z)=>z.label),p.annotations.length>0){let z=T.append("g").attr("class","wardley-annotations");if(p.annotations.forEach((ne)=>{let ie=ne.coordinates.map((se)=>({x:R(se.x),y:N(se.y)}));if(ie.length>1)for(let se=0;se{let oe=z.append("g").attr("class","wardley-annotation");oe.append("circle").attr("cx",se.x).attr("cy",se.y).attr("r",10).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5),oe.append("text").attr("x",se.x).attr("y",se.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.number)})}),p.annotationsBox){let ne=R(p.annotationsBox.x),ie=N(p.annotationsBox.y),se=10,oe=16,he=11,ye=z.append("g").attr("class","wardley-annotations-box"),Se=[...p.annotations].filter((Ee)=>Ee.text).sort((Ee,ze)=>Ee.number-ze.number),Ie=[];if(Se.forEach((Ee,ze)=>{let Me=ye.append("text").attr("x",ne+se).attr("y",ie+se+(ze+1)*oe).attr("font-size",he).attr("fill",l.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${Ee.number}. ${Ee.text}`);Ie.push(Me)}),Ie.length>0){let Ee=0,ze=0;Ie.forEach((zt)=>{let Kt=zt.node(),rr=Kt.getComputedTextLength();Ee=Math.max(Ee,rr);let je=Kt.getBBox();ze=Math.max(ze,je.height)});let Me=Ee+se*2+105,Xe=Se.length*oe+se*2+ze/2,Ye=o.padding,Qe=y-o.padding-Me,xt=o.padding,dt=v-o.padding-Xe;ne=Math.max(Ye,Math.min(ne,Qe)),ie=Math.max(xt,Math.min(ie,dt)),Ie.forEach((zt,Kt)=>{zt.attr("x",ne+se).attr("y",ie+se+(Kt+1)*oe)}),ye.insert("rect","text").attr("x",ne).attr("y",ie).attr("width",Me).attr("height",Xe).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(p.notes.length>0){let z=T.append("g").attr("class","wardley-notes");p.notes.forEach((ne)=>{let ie=R(ne.x),se=N(ne.y);z.append("text").attr("x",ie).attr("y",se).attr("text-anchor","start").attr("font-size",11).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.text)})}if(p.accelerators.length>0){let z=T.append("g").attr("class","wardley-accelerators");p.accelerators.forEach((ne)=>{let ie=R(ne.x),se=N(ne.y),oe=60,he=30,ye=20,Se=` + M ${ie} ${se-15} + L ${ie+60-20} ${se-15} + L ${ie+60-20} ${se-15-8} + L ${ie+60} ${se} + L ${ie+60-20} ${se+15+8} + L ${ie+60-20} ${se+15} + L ${ie} ${se+15} Z - `;z.append("path").attr("d",xe).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),z.append("text").attr("x",ie+30).attr("y",le+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.name)})}if(p.deaccelerators.length>0){let z=T.append("g").attr("class","wardley-deaccelerators");p.deaccelerators.forEach((ne)=>{let ie=R(ne.x),le=N(ne.y),se=60,he=30,ye=20,xe=` - M ${ie+60} ${le-15} - L ${ie+20} ${le-15} - L ${ie+20} ${le-15-8} - L ${ie} ${le} - L ${ie+20} ${le+15+8} - L ${ie+20} ${le+15} - L ${ie+60} ${le+15} + `;z.append("path").attr("d",Se).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),z.append("text").attr("x",ie+30).attr("y",se+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.name)})}if(p.deaccelerators.length>0){let z=T.append("g").attr("class","wardley-deaccelerators");p.deaccelerators.forEach((ne)=>{let ie=R(ne.x),se=N(ne.y),oe=60,he=30,ye=20,Se=` + M ${ie+60} ${se-15} + L ${ie+20} ${se-15} + L ${ie+20} ${se-15-8} + L ${ie} ${se} + L ${ie+20} ${se+15+8} + L ${ie+20} ${se+15} + L ${ie+60} ${se+15} Z - `;z.append("path").attr("d",xe).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),z.append("text").attr("x",ie+30).attr("y",le+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.name)})}},"draw"),gAi={draw:pAi},mAi=I(({wardley:e}={})=>{let r=Kb(),i=ea(),a=bc(r,i.themeVariables),o=bc(a.wardley,e);return` + `;z.append("path").attr("d",Se).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),z.append("text").attr("x",ie+30).attr("y",se+15+15).attr("text-anchor","middle").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(ne.name)})}},"draw"),EAi={draw:_Ai},wAi=I(({wardley:e}={})=>{let r=Kb(),i=ea(),a=bc(r,i.themeVariables),o=bc(a.wardley,e);return` .wardley-background { fill: ${o.backgroundColor}; } @@ -4156,7 +4156,7 @@ ${i?"":` .wardley-notes text { fill: ${o.axisTextColor}; } - `},"styles"),uen={parser:YJr,db:uAi,renderer:gAi,styles:mAi}});function ile(e){let r=e+1831565813|0;return r=Math.imul(r^r>>>15,r|1),r^=r+Math.imul(r^r>>>7,r|61),((r^r>>>14)>>>0)/4294967296}function pen(e){let r=0;for(let i=0;i{Tv();A0();Ql();eo();Zs();Ja();rb();fen=I(()=>({domains:new Map,transitions:[]}),"createDefaultData"),ale=fen(),bAi=I(()=>ale.domains,"getDomains"),yAi=I(()=>ale.transitions,"getTransitions"),vAi=I((e)=>{if(!e)return;for(let r of e){let i=r.domain,a=(r.items??[]).map((o)=>({label:o.label}));ale.domains.set(i,{name:i,items:a})}},"setDomains"),_Ai=I((e)=>{if(!e)return;ale.transitions=e.filter((r)=>{if(r.from===r.to)return Ze.warn(`Cynefin: self-loop transition on domain "${r.from}" is not meaningful and will be skipped.`),!1;return!0}).map((r)=>({from:r.from,to:r.to,label:r.label||void 0}))},"setTransitions"),EAi=I(()=>bc({...Fs.cynefin,...ea().cynefin}),"getConfig"),wAi=I(()=>{qs(),ale=fen()},"clear"),tAe={getDomains:bAi,getTransitions:yAi,setDomains:vAi,setTransitions:_Ai,getConfig:EAi,clear:wAi,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},SAi=I((e)=>{Sh(e,tAe),tAe.setDomains(e.domains),tAe.setTransitions(e.transitions)},"populate"),TAi={parse:I(async(e)=>{let r=await lp("cynefin",e);Ze.debug(r),SAi(r)},"parse")};I(ile,"seededRandom");I(pen,"hashString");I(gen,"resolveSeed");I(men,"generateFoldPath");I(ben,"generateHorizontalBoundary");I(yen,"generateCliffPath");I(ven,"generateConfusionPath");den={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},xAi=I((e,r)=>{let i=e/2,a=r/2;return{complex:{cx:i/2,cy:a/2,x:0,y:0,w:i,h:a},complicated:{cx:i+i/2,cy:a/2,x:i,y:0,w:i,h:a},chaotic:{cx:i/2,cy:a+a/2,x:0,y:a,w:i,h:a},clear:{cx:i+i/2,cy:a+a/2,x:i,y:a,w:i,h:a},confusion:{cx:i,cy:a,x:i*0.7,y:a*0.7,w:i*0.6,h:a*0.6}}},"getDomainLayouts"),CAi=I(()=>{let e=Kb(),r=ea();return bc(e,r.themeVariables).cynefin},"getCynefinDomainColors"),kAi=I((e,r,i,a)=>{let o=a.db,l=o.getDomains(),h=o.getTransitions(),d=o.getDiagramTitle(),p=o.getAccTitle(),m=o.getAccDescription(),y=o.getConfig(),E=CAi();Ze.debug("Rendering Cynefin diagram");let{width:w,height:T,padding:x,showDomainDescriptions:k,boundaryAmplitude:A}=y,R=w+x*2,N=T+x*2,L={complex:E.complexBg,complicated:E.complicatedBg,clear:E.clearBg,chaotic:E.chaoticBg,confusion:E.confusionBg},B=Ou(r);if(Bl(B,N,R,y.useMaxWidth??!0),B.attr("viewBox",`0 0 ${R} ${N}`),p)B.append("title").text(p);if(m)B.append("desc").text(m);let D=B.append("g").attr("transform",`translate(${x}, ${x})`),P=xAi(w,T),F=gen(y.seed,r),H=D.append("g").attr("class","cynefin-backgrounds"),K=["complex","complicated","chaotic","clear"];for(let z of K){let ne=P[z];H.append("rect").attr("class","cynefinDomain").attr("x",ne.x).attr("y",ne.y).attr("width",ne.w).attr("height",ne.h).attr("fill",L[z]).attr("fill-opacity",0.4).attr("stroke","none")}let Q=D.append("g").attr("class","cynefin-boundaries");Q.append("path").attr("class","cynefinBoundary").attr("d",men(w,T,F,A)).attr("fill","none"),Q.append("path").attr("class","cynefinBoundary").attr("d",ben(w,T,F+100,A)).attr("fill","none"),Q.append("path").attr("class","cynefinCliff").attr("d",yen(w,T)).attr("fill","none");let Z=w*0.15,Y=T*0.15;D.append("path").attr("class","cynefinConfusion").attr("d",ven(w/2,T/2,Z,Y)).attr("fill",L.confusion).attr("fill-opacity",0.5);let j=D.append("g").attr("class","cynefin-labels");for(let z of K){let ne=P[z];j.append("text").attr("class","cynefinDomainLabel").attr("x",ne.cx).attr("y",k?ne.cy-30:ne.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(z.charAt(0).toUpperCase()+z.slice(1))}if(j.append("text").attr("class","cynefinDomainLabel").attr("x",w/2).attr("y",k?T/2-10:T/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),k){let z=D.append("g").attr("class","cynefin-subtitles");for(let ne of K){let ie=P[ne],le=den[ne];z.append("text").attr("class","cynefinSubtitle").attr("x",ie.cx).attr("y",ie.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(le.model),z.append("text").attr("class","cynefinSubtitle").attr("x",ie.cx).attr("y",ie.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(le.practice)}z.append("text").attr("class","cynefinSubtitle").attr("x",w/2).attr("y",T/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(den.confusion.practice)}let te=D.append("g").attr("class","cynefin-items"),X=26,W=10,J=["complex","complicated","chaotic","clear","confusion"];for(let z of J){let ne=l.get(z);if(!ne||ne.items.length===0)continue;let ie=P[z],le=z==="confusion",se=ne.items,he=0;if(le&&ne.items.length>cgt)he=ne.items.length-cgt,se=ne.items.slice(0,cgt);let ye;if(le){let xe=k?22:14;ye=ie.cy+xe}else ye=ie.cy+(k?25:15);if([...se].forEach((xe,Ie)=>{let Ee=ye+Ie*(X+4),Ue=te.append("g"),Me=Ue.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",X/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(xe.label),Xe=xe.label.length*7,je=Me.node();if(je&&typeof je.getBBox==="function"){let pt=je.getBBox();if(pt.width>0)Xe=pt.width}let Qe=Xe+W*2,St=ie.cx-Qe/2;Ue.attr("transform",`translate(${St}, ${Ee})`),Ue.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",Qe).attr("height",X).attr("rx",4).attr("ry",4).attr("fill",L[z]).attr("fill-opacity",0.95),Me.attr("x",Qe/2).attr("y",X/2)}),he>0){let xe=ye+se.length*(X+4),Ie=`+${he} more`,Ee=te.append("g"),Ue=Ee.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",X/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(Ie),Me=Ie.length*7,Xe=Ue.node();if(Xe&&typeof Xe.getBBox==="function"){let St=Xe.getBBox();if(St.width>0)Me=St.width}let je=Me+W*2,Qe=ie.cx-je/2;Ee.attr("transform",`translate(${Qe}, ${xe})`),Ee.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",je).attr("height",X).attr("rx",4).attr("ry",4).attr("fill",L[z]).attr("fill-opacity",0.6),Ue.attr("x",je/2).attr("y",X/2)}}if(h.length>0){let z=B.select("defs").empty()?B.append("defs"):B.select("defs"),ne=`cynefin-arrow-${r}`;z.append("marker").attr("id",ne).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let ie=D.append("g").attr("class","cynefin-arrows");h.forEach((le)=>{let se=P[le.from],he=P[le.to];if(!se||!he)return;if(le.from===le.to){Ze.warn(`Cynefin renderer: skipping self-loop on domain "${le.from}"`);return}let{cx:ye,cy:xe}=se,{cx:Ie,cy:Ee}=he,Ue=(ye+Ie)/2,Me=(xe+Ee)/2,Xe=Ie-ye,je=Ee-xe,Qe=Math.sqrt(Xe*Xe+je*je),St=Qe*0.15,pt=-je/Qe,Vt=Xe/Qe,Xt=Ue+pt*St,rr=Me+Vt*St;if(ie.append("path").attr("class","cynefinArrowLine").attr("d",`M${ye},${xe} Q${Xt},${rr} ${Ie},${Ee}`).attr("fill","none").attr("marker-end",`url(#${ne})`),le.label)ie.append("text").attr("class","cynefinArrowLabel").attr("x",Xt).attr("y",rr-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(le.label)})}if(d)D.append("text").attr("class","cynefinTitle").attr("x",w/2).attr("y",-x/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d)},"draw"),AAi={draw:kAi},RAi=I(()=>{let e=Kb(),r=ea();return bc(e,r.themeVariables).cynefin},"getCynefinTheme"),IAi=I(()=>{let e=RAi();return` + `},"styles"),gen={parser:QJr,db:mAi,renderer:EAi,styles:wAi}});function ole(e){let r=e+1831565813|0;return r=Math.imul(r^r>>>15,r|1),r^=r+Math.imul(r^r>>>7,r|61),((r^r>>>14)>>>0)/4294967296}function ven(e){let r=0;for(let i=0;i{Tv();A0();Ql();eo();Zs();Ja();rb();yen=I(()=>({domains:new Map,transitions:[]}),"createDefaultData"),lle=yen(),SAi=I(()=>lle.domains,"getDomains"),TAi=I(()=>lle.transitions,"getTransitions"),xAi=I((e)=>{if(!e)return;for(let r of e){let i=r.domain,a=(r.items??[]).map((o)=>({label:o.label}));lle.domains.set(i,{name:i,items:a})}},"setDomains"),CAi=I((e)=>{if(!e)return;lle.transitions=e.filter((r)=>{if(r.from===r.to)return Ze.warn(`Cynefin: self-loop transition on domain "${r.from}" is not meaningful and will be skipped.`),!1;return!0}).map((r)=>({from:r.from,to:r.to,label:r.label||void 0}))},"setTransitions"),kAi=I(()=>bc({...Fs.cynefin,...ea().cynefin}),"getConfig"),AAi=I(()=>{qs(),lle=yen()},"clear"),iAe={getDomains:SAi,getTransitions:TAi,setDomains:xAi,setTransitions:CAi,getConfig:kAi,clear:AAi,setAccTitle:Ys,getAccTitle:oo,setDiagramTitle:_o,getDiagramTitle:fo,getAccDescription:lo,setAccDescription:Js},RAi=I((e)=>{Sh(e,iAe),iAe.setDomains(e.domains),iAe.setTransitions(e.transitions)},"populate"),IAi={parse:I(async(e)=>{let r=await lp("cynefin",e);Ze.debug(r),RAi(r)},"parse")};I(ole,"seededRandom");I(ven,"hashString");I(_en,"resolveSeed");I(Een,"generateFoldPath");I(wen,"generateHorizontalBoundary");I(Sen,"generateCliffPath");I(Ten,"generateConfusionPath");ben={complex:{model:"Probe → Sense → Respond",practice:"Emergent Practices"},complicated:{model:"Sense → Analyse → Respond",practice:"Good Practices"},clear:{model:"Sense → Categorise → Respond",practice:"Best Practices"},chaotic:{model:"Act → Sense → Respond",practice:"Novel Practices"},confusion:{model:"",practice:"Disorder"}},OAi=I((e,r)=>{let i=e/2,a=r/2;return{complex:{cx:i/2,cy:a/2,x:0,y:0,w:i,h:a},complicated:{cx:i+i/2,cy:a/2,x:i,y:0,w:i,h:a},chaotic:{cx:i/2,cy:a+a/2,x:0,y:a,w:i,h:a},clear:{cx:i+i/2,cy:a+a/2,x:i,y:a,w:i,h:a},confusion:{cx:i,cy:a,x:i*0.7,y:a*0.7,w:i*0.6,h:a*0.6}}},"getDomainLayouts"),NAi=I(()=>{let e=Kb(),r=ea();return bc(e,r.themeVariables).cynefin},"getCynefinDomainColors"),LAi=I((e,r,i,a)=>{let o=a.db,l=o.getDomains(),h=o.getTransitions(),d=o.getDiagramTitle(),p=o.getAccTitle(),m=o.getAccDescription(),y=o.getConfig(),v=NAi();Ze.debug("Rendering Cynefin diagram");let{width:w,height:T,padding:x,showDomainDescriptions:k,boundaryAmplitude:A}=y,R=w+x*2,N=T+x*2,L={complex:v.complexBg,complicated:v.complicatedBg,clear:v.clearBg,chaotic:v.chaoticBg,confusion:v.confusionBg},B=Ou(r);if(Bl(B,N,R,y.useMaxWidth??!0),B.attr("viewBox",`0 0 ${R} ${N}`),p)B.append("title").text(p);if(m)B.append("desc").text(m);let D=B.append("g").attr("transform",`translate(${x}, ${x})`),P=OAi(w,T),F=_en(y.seed,r),H=D.append("g").attr("class","cynefin-backgrounds"),W=["complex","complicated","chaotic","clear"];for(let z of W){let ne=P[z];H.append("rect").attr("class","cynefinDomain").attr("x",ne.x).attr("y",ne.y).attr("width",ne.w).attr("height",ne.h).attr("fill",L[z]).attr("fill-opacity",0.4).attr("stroke","none")}let X=D.append("g").attr("class","cynefin-boundaries");X.append("path").attr("class","cynefinBoundary").attr("d",Een(w,T,F,A)).attr("fill","none"),X.append("path").attr("class","cynefinBoundary").attr("d",wen(w,T,F+100,A)).attr("fill","none"),X.append("path").attr("class","cynefinCliff").attr("d",Sen(w,T)).attr("fill","none");let Q=w*0.15,Y=T*0.15;D.append("path").attr("class","cynefinConfusion").attr("d",Ten(w/2,T/2,Q,Y)).attr("fill",L.confusion).attr("fill-opacity",0.5);let K=D.append("g").attr("class","cynefin-labels");for(let z of W){let ne=P[z];K.append("text").attr("class","cynefinDomainLabel").attr("x",ne.cx).attr("y",k?ne.cy-30:ne.cy).attr("text-anchor","middle").attr("dominant-baseline","middle").text(z.charAt(0).toUpperCase()+z.slice(1))}if(K.append("text").attr("class","cynefinDomainLabel").attr("x",w/2).attr("y",k?T/2-10:T/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text("Confusion"),k){let z=D.append("g").attr("class","cynefin-subtitles");for(let ne of W){let ie=P[ne],se=ben[ne];z.append("text").attr("class","cynefinSubtitle").attr("x",ie.cx).attr("y",ie.cy-10).attr("text-anchor","middle").attr("dominant-baseline","middle").text(se.model),z.append("text").attr("class","cynefinSubtitle").attr("x",ie.cx).attr("y",ie.cy+5).attr("text-anchor","middle").attr("dominant-baseline","middle").text(se.practice)}z.append("text").attr("class","cynefinSubtitle").attr("x",w/2).attr("y",T/2+8).attr("text-anchor","middle").attr("dominant-baseline","middle").text(ben.confusion.practice)}let J=D.append("g").attr("class","cynefin-items"),Z=26,j=10,ee=["complex","complicated","chaotic","clear","confusion"];for(let z of ee){let ne=l.get(z);if(!ne||ne.items.length===0)continue;let ie=P[z],se=z==="confusion",oe=ne.items,he=0;if(se&&ne.items.length>dgt)he=ne.items.length-dgt,oe=ne.items.slice(0,dgt);let ye;if(se){let Se=k?22:14;ye=ie.cy+Se}else ye=ie.cy+(k?25:15);if([...oe].forEach((Se,Ie)=>{let Ee=ye+Ie*(Z+4),ze=J.append("g"),Me=ze.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",Z/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(Se.label),Xe=Se.label.length*7,Ye=Me.node();if(Ye&&typeof Ye.getBBox==="function"){let dt=Ye.getBBox();if(dt.width>0)Xe=dt.width}let Qe=Xe+j*2,xt=ie.cx-Qe/2;ze.attr("transform",`translate(${xt}, ${Ee})`),ze.insert("rect","text").attr("class","cynefinItem").attr("x",0).attr("y",0).attr("width",Qe).attr("height",Z).attr("rx",4).attr("ry",4).attr("fill",L[z]).attr("fill-opacity",0.95),Me.attr("x",Qe/2).attr("y",Z/2)}),he>0){let Se=ye+oe.length*(Z+4),Ie=`+${he} more`,Ee=J.append("g"),ze=Ee.append("text").attr("class","cynefinItemText").attr("x",0).attr("y",Z/2).attr("text-anchor","middle").attr("dominant-baseline","central").text(Ie),Me=Ie.length*7,Xe=ze.node();if(Xe&&typeof Xe.getBBox==="function"){let xt=Xe.getBBox();if(xt.width>0)Me=xt.width}let Ye=Me+j*2,Qe=ie.cx-Ye/2;Ee.attr("transform",`translate(${Qe}, ${Se})`),Ee.insert("rect","text").attr("class","cynefinItemOverflow").attr("x",0).attr("y",0).attr("width",Ye).attr("height",Z).attr("rx",4).attr("ry",4).attr("fill",L[z]).attr("fill-opacity",0.6),ze.attr("x",Ye/2).attr("y",Z/2)}}if(h.length>0){let z=B.select("defs").empty()?B.append("defs"):B.select("defs"),ne=`cynefin-arrow-${r}`;z.append("marker").attr("id",ne).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","cynefinArrowHead");let ie=D.append("g").attr("class","cynefin-arrows");h.forEach((se)=>{let oe=P[se.from],he=P[se.to];if(!oe||!he)return;if(se.from===se.to){Ze.warn(`Cynefin renderer: skipping self-loop on domain "${se.from}"`);return}let{cx:ye,cy:Se}=oe,{cx:Ie,cy:Ee}=he,ze=(ye+Ie)/2,Me=(Se+Ee)/2,Xe=Ie-ye,Ye=Ee-Se,Qe=Math.sqrt(Xe*Xe+Ye*Ye),xt=Qe*0.15,dt=-Ye/Qe,zt=Xe/Qe,Kt=ze+dt*xt,rr=Me+zt*xt;if(ie.append("path").attr("class","cynefinArrowLine").attr("d",`M${ye},${Se} Q${Kt},${rr} ${Ie},${Ee}`).attr("fill","none").attr("marker-end",`url(#${ne})`),se.label)ie.append("text").attr("class","cynefinArrowLabel").attr("x",Kt).attr("y",rr-6).attr("text-anchor","middle").attr("dominant-baseline","auto").text(se.label)})}if(d)D.append("text").attr("class","cynefinTitle").attr("x",w/2).attr("y",-x/2).attr("text-anchor","middle").attr("dominant-baseline","middle").text(d)},"draw"),MAi={draw:LAi},DAi=I(()=>{let e=Kb(),r=ea();return bc(e,r.themeVariables).cynefin},"getCynefinTheme"),PAi=I(()=>{let e=DAi();return` .cynefinDomain { stroke: none; } @@ -4217,8 +4217,8 @@ ${i?"":` font-weight: bold; fill: ${e.labelColor}; } - `},"styles"),OAi=IAi,_en={parser:TAi,db:tAe,renderer:AAi,styles:OAi}});var ugt="",hgt="",dgt="",fgt,rAe,aM,SW,NAi,Sen,Ten,LAi,MAi,DAi,PAi,BAi,FAi,$Ai,UAi,GAi,Ch,sb,zAi,VAi,HAi,xen,qAi,YAi,Kh,Cen,$F,WAi,jAi,pgt,sM,ST,KAi,wen,XAi,oM;var sle=Re(()=>{A0();eo();Zs();Ja();fgt=[],rAe=new Map,aM=I((e)=>ho(e,Ar()),"sanitizeText"),SW=I((e)=>{switch(e.type){case"terminal":return{...e,value:aM(e.value)};case"nonterminal":return{...e,name:aM(e.name)};case"sequence":return{...e,elements:e.elements.map(SW)};case"choice":return{...e,alternatives:e.alternatives.map(SW)};case"optional":return{...e,element:SW(e.element)};case"repetition":return{...e,element:SW(e.element),separator:e.separator?SW(e.separator):void 0};case"special":return{...e,text:aM(e.text)}}},"sanitizeAstNode"),NAi=I(()=>{ugt="",hgt="",dgt="",fgt.length=0,rAe.clear(),qs(),Ze.debug("[Railroad] Database cleared")},"clear"),Sen=I((e)=>{ugt=aM(e),Ze.debug("[Railroad] Title set:",e)},"setTitle"),Ten=I(()=>ugt,"getTitle"),LAi=I((e)=>{let r={...e,name:aM(e.name),definition:SW(e.definition),comment:e.comment?aM(e.comment):void 0};if(Ze.debug("[Railroad] Adding rule:",r.name),rAe.has(r.name))Ze.warn(`[Railroad] Rule '${r.name}' is already defined. Overwriting.`);fgt.push(r),rAe.set(r.name,r)},"addRule"),MAi=I(()=>fgt,"getRules"),DAi=I((e)=>rAe.get(e),"getRule"),PAi=I((e)=>{hgt=aM(e).replace(/^\s+/g,""),Ze.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),BAi=I(()=>hgt,"getAccTitle"),FAi=I((e)=>{dgt=aM(e).replace(/\n\s+/g,` -`),Ze.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),$Ai=I(()=>dgt,"getAccDescription"),UAi=Sen,GAi=Ten,Ch={clear:NAi,setTitle:Sen,getTitle:Ten,addRule:LAi,getRules:MAi,getRule:DAi,setAccTitle:PAi,getAccTitle:BAi,setAccDescription:FAi,getAccDescription:$Ai,setDiagramTitle:UAi,getDiagramTitle:GAi},sb={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},zAi=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,VAi=/^[\w "',.-]+$/,HAi=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),xen=I((e)=>{if(!e)return!1;return Object.keys(e).every((r)=>r==="railroad"||HAi.has(r))},"isRailroadStyleOptions"),qAi=I((e)=>{if(!e)return{};if("railroad"in e&&e.railroad)return e.railroad;return xen(e)?e:{}},"extractRailroadOverrides"),YAi=I((e)=>{if(!e||xen(e))return{};let{railroad:r,svgId:i,theme:a,look:o,...l}=e;return l},"extractThemeOverrides"),Kh=I((e,r)=>{if(typeof e!=="string")return r;let i=e.trim();return zAi.test(i)?i:r},"sanitizeColorValue"),Cen=I((e,r)=>{if(typeof e!=="string")return r;let i=e.trim();return VAi.test(i)?i:r},"sanitizeFontFamilyValue"),$F=I((e,r)=>{let i=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>=0?i:r},"sanitizeNumberValue"),WAi=I((e)=>{let r=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(r)&&r>0?r:void 0},"parseThemeFontSize"),jAi=I((e)=>{let r=Cen(e.fontFamily,sb.fontFamily),i=WAi(e.fontSize)??sb.fontSize;return{...sb,fontFamily:r,fontSize:i,terminalFill:Kh(e.secondBkg??e.secondaryColor,sb.terminalFill),terminalStroke:Kh(e.secondaryBorderColor??e.lineColor,sb.terminalStroke),terminalTextColor:Kh(e.secondaryTextColor??e.textColor,sb.terminalTextColor),nonTerminalFill:Kh(e.mainBkg??e.background,sb.nonTerminalFill),nonTerminalStroke:Kh(e.primaryBorderColor??e.lineColor,sb.nonTerminalStroke),nonTerminalTextColor:Kh(e.primaryTextColor??e.textColor,sb.nonTerminalTextColor),lineColor:Kh(e.lineColor,sb.lineColor),markerFill:Kh(e.lineColor,sb.markerFill),commentFill:Kh(e.labelBackground??e.tertiaryColor,sb.commentFill),commentStroke:Kh(e.tertiaryBorderColor??e.lineColor,sb.commentStroke),commentTextColor:Kh(e.tertiaryTextColor??e.textColor,sb.commentTextColor),specialFill:Kh(e.tertiaryColor??e.secondaryColor,sb.specialFill),specialStroke:Kh(e.tertiaryBorderColor??e.secondaryBorderColor,sb.specialStroke),ruleNameColor:Kh(e.titleColor??e.textColor,sb.ruleNameColor)}},"buildThemeDefaults"),pgt=I((e)=>{let r=ea(),i={...Kb(),...r.themeVariables??{},...YAi(e)},a=jAi(i),o={...r.railroad??{},...qAi(e)};return{compactMode:o.compactMode??a.compactMode,padding:$F(o.padding,a.padding),verticalSeparation:$F(o.verticalSeparation,a.verticalSeparation),horizontalSeparation:$F(o.horizontalSeparation,a.horizontalSeparation),arcRadius:$F(o.arcRadius,a.arcRadius),fontSize:$F(o.fontSize,a.fontSize),fontFamily:Cen(o.fontFamily,a.fontFamily),terminalFill:Kh(o.terminalFill,a.terminalFill),terminalStroke:Kh(o.terminalStroke,a.terminalStroke),terminalTextColor:Kh(o.terminalTextColor,a.terminalTextColor),nonTerminalFill:Kh(o.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:Kh(o.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:Kh(o.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:Kh(o.lineColor,a.lineColor),strokeWidth:$F(o.strokeWidth,a.strokeWidth),markerFill:Kh(o.markerFill,a.markerFill),commentFill:Kh(o.commentFill,a.commentFill),commentStroke:Kh(o.commentStroke,a.commentStroke),commentTextColor:Kh(o.commentTextColor,a.commentTextColor),specialFill:Kh(o.specialFill,a.specialFill),specialStroke:Kh(o.specialStroke,a.specialStroke),ruleNameColor:Kh(o.ruleNameColor,a.ruleNameColor),showMarkers:o.showMarkers??a.showMarkers,markerRadius:$F(o.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),sM=I((e)=>{let{fontFamily:r,fontSize:i,terminalFill:a,terminalStroke:o,terminalTextColor:l,nonTerminalFill:h,nonTerminalStroke:d,nonTerminalTextColor:p,lineColor:m,strokeWidth:y,markerFill:E,commentFill:w,commentStroke:T,commentTextColor:x,specialFill:k,specialStroke:A,ruleNameColor:R}=pgt(e);return` + `},"styles"),BAi=PAi,xen={parser:IAi,db:iAe,renderer:MAi,styles:BAi}});var fgt="",pgt="",ggt="",mgt,aAe,oM,CW,FAi,Aen,Ren,$Ai,UAi,GAi,zAi,VAi,HAi,qAi,YAi,WAi,Ch,sb,jAi,KAi,XAi,Ien,QAi,ZAi,Kh,Oen,GF,JAi,e5i,bgt,lM,TT,t5i,ken,r5i,cM;var cle=Re(()=>{A0();eo();Zs();Ja();mgt=[],aAe=new Map,oM=I((e)=>ho(e,Ar()),"sanitizeText"),CW=I((e)=>{switch(e.type){case"terminal":return{...e,value:oM(e.value)};case"nonterminal":return{...e,name:oM(e.name)};case"sequence":return{...e,elements:e.elements.map(CW)};case"choice":return{...e,alternatives:e.alternatives.map(CW)};case"optional":return{...e,element:CW(e.element)};case"repetition":return{...e,element:CW(e.element),separator:e.separator?CW(e.separator):void 0};case"special":return{...e,text:oM(e.text)}}},"sanitizeAstNode"),FAi=I(()=>{fgt="",pgt="",ggt="",mgt.length=0,aAe.clear(),qs(),Ze.debug("[Railroad] Database cleared")},"clear"),Aen=I((e)=>{fgt=oM(e),Ze.debug("[Railroad] Title set:",e)},"setTitle"),Ren=I(()=>fgt,"getTitle"),$Ai=I((e)=>{let r={...e,name:oM(e.name),definition:CW(e.definition),comment:e.comment?oM(e.comment):void 0};if(Ze.debug("[Railroad] Adding rule:",r.name),aAe.has(r.name))Ze.warn(`[Railroad] Rule '${r.name}' is already defined. Overwriting.`);mgt.push(r),aAe.set(r.name,r)},"addRule"),UAi=I(()=>mgt,"getRules"),GAi=I((e)=>aAe.get(e),"getRule"),zAi=I((e)=>{pgt=oM(e).replace(/^\s+/g,""),Ze.debug("[Railroad] Accessibility title set:",e)},"setAccTitle"),VAi=I(()=>pgt,"getAccTitle"),HAi=I((e)=>{ggt=oM(e).replace(/\n\s+/g,` +`),Ze.debug("[Railroad] Accessibility description set:",e)},"setAccDescription"),qAi=I(()=>ggt,"getAccDescription"),YAi=Aen,WAi=Ren,Ch={clear:FAi,setTitle:Aen,getTitle:Ren,addRule:$Ai,getRules:UAi,getRule:GAi,setAccTitle:zAi,getAccTitle:VAi,setAccDescription:HAi,getAccDescription:qAi,setDiagramTitle:YAi,getDiagramTitle:WAi},sb={compactMode:!1,padding:10,verticalSeparation:8,horizontalSeparation:10,arcRadius:10,fontSize:14,fontFamily:"monospace",terminalFill:"#FFFFC0",terminalStroke:"#000000",terminalTextColor:"#000000",nonTerminalFill:"#FFFFFF",nonTerminalStroke:"#000000",nonTerminalTextColor:"#000000",lineColor:"#000000",strokeWidth:2,markerFill:"#000000",commentFill:"#E8E8E8",commentStroke:"#888888",commentTextColor:"#666666",specialFill:"#F0E0FF",specialStroke:"#8800CC",ruleNameColor:"#000066",showMarkers:!0,markerRadius:5},jAi=/^#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})$|^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch)\([\d\s%+,./-]+\)$|^[a-z]+$/i,KAi=/^[\w "',.-]+$/,XAi=new Set(["compactMode","padding","verticalSeparation","horizontalSeparation","arcRadius","fontSize","fontFamily","terminalFill","terminalStroke","terminalTextColor","nonTerminalFill","nonTerminalStroke","nonTerminalTextColor","lineColor","strokeWidth","markerFill","commentFill","commentStroke","commentTextColor","specialFill","specialStroke","ruleNameColor","showMarkers","markerRadius"]),Ien=I((e)=>{if(!e)return!1;return Object.keys(e).every((r)=>r==="railroad"||XAi.has(r))},"isRailroadStyleOptions"),QAi=I((e)=>{if(!e)return{};if("railroad"in e&&e.railroad)return e.railroad;return Ien(e)?e:{}},"extractRailroadOverrides"),ZAi=I((e)=>{if(!e||Ien(e))return{};let{railroad:r,svgId:i,theme:a,look:o,...l}=e;return l},"extractThemeOverrides"),Kh=I((e,r)=>{if(typeof e!=="string")return r;let i=e.trim();return jAi.test(i)?i:r},"sanitizeColorValue"),Oen=I((e,r)=>{if(typeof e!=="string")return r;let i=e.trim();return KAi.test(i)?i:r},"sanitizeFontFamilyValue"),GF=I((e,r)=>{let i=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(i)&&i>=0?i:r},"sanitizeNumberValue"),JAi=I((e)=>{let r=typeof e==="number"?e:typeof e==="string"?Number.parseFloat(e):Number.NaN;return Number.isFinite(r)&&r>0?r:void 0},"parseThemeFontSize"),e5i=I((e)=>{let r=Oen(e.fontFamily,sb.fontFamily),i=JAi(e.fontSize)??sb.fontSize;return{...sb,fontFamily:r,fontSize:i,terminalFill:Kh(e.secondBkg??e.secondaryColor,sb.terminalFill),terminalStroke:Kh(e.secondaryBorderColor??e.lineColor,sb.terminalStroke),terminalTextColor:Kh(e.secondaryTextColor??e.textColor,sb.terminalTextColor),nonTerminalFill:Kh(e.mainBkg??e.background,sb.nonTerminalFill),nonTerminalStroke:Kh(e.primaryBorderColor??e.lineColor,sb.nonTerminalStroke),nonTerminalTextColor:Kh(e.primaryTextColor??e.textColor,sb.nonTerminalTextColor),lineColor:Kh(e.lineColor,sb.lineColor),markerFill:Kh(e.lineColor,sb.markerFill),commentFill:Kh(e.labelBackground??e.tertiaryColor,sb.commentFill),commentStroke:Kh(e.tertiaryBorderColor??e.lineColor,sb.commentStroke),commentTextColor:Kh(e.tertiaryTextColor??e.textColor,sb.commentTextColor),specialFill:Kh(e.tertiaryColor??e.secondaryColor,sb.specialFill),specialStroke:Kh(e.tertiaryBorderColor??e.secondaryBorderColor,sb.specialStroke),ruleNameColor:Kh(e.titleColor??e.textColor,sb.ruleNameColor)}},"buildThemeDefaults"),bgt=I((e)=>{let r=ea(),i={...Kb(),...r.themeVariables??{},...ZAi(e)},a=e5i(i),o={...r.railroad??{},...QAi(e)};return{compactMode:o.compactMode??a.compactMode,padding:GF(o.padding,a.padding),verticalSeparation:GF(o.verticalSeparation,a.verticalSeparation),horizontalSeparation:GF(o.horizontalSeparation,a.horizontalSeparation),arcRadius:GF(o.arcRadius,a.arcRadius),fontSize:GF(o.fontSize,a.fontSize),fontFamily:Oen(o.fontFamily,a.fontFamily),terminalFill:Kh(o.terminalFill,a.terminalFill),terminalStroke:Kh(o.terminalStroke,a.terminalStroke),terminalTextColor:Kh(o.terminalTextColor,a.terminalTextColor),nonTerminalFill:Kh(o.nonTerminalFill,a.nonTerminalFill),nonTerminalStroke:Kh(o.nonTerminalStroke,a.nonTerminalStroke),nonTerminalTextColor:Kh(o.nonTerminalTextColor,a.nonTerminalTextColor),lineColor:Kh(o.lineColor,a.lineColor),strokeWidth:GF(o.strokeWidth,a.strokeWidth),markerFill:Kh(o.markerFill,a.markerFill),commentFill:Kh(o.commentFill,a.commentFill),commentStroke:Kh(o.commentStroke,a.commentStroke),commentTextColor:Kh(o.commentTextColor,a.commentTextColor),specialFill:Kh(o.specialFill,a.specialFill),specialStroke:Kh(o.specialStroke,a.specialStroke),ruleNameColor:Kh(o.ruleNameColor,a.ruleNameColor),showMarkers:o.showMarkers??a.showMarkers,markerRadius:GF(o.markerRadius,a.markerRadius)}},"buildRailroadStyleOptions"),lM=I((e)=>{let{fontFamily:r,fontSize:i,terminalFill:a,terminalStroke:o,terminalTextColor:l,nonTerminalFill:h,nonTerminalStroke:d,nonTerminalTextColor:p,lineColor:m,strokeWidth:y,markerFill:v,commentFill:w,commentStroke:T,commentTextColor:x,specialFill:k,specialStroke:A,ruleNameColor:R}=bgt(e);return` .railroad-diagram { font-family: ${r}; font-size: ${i}px; @@ -4260,7 +4260,7 @@ ${i?"":` .railroad-start circle, .railroad-end circle { - fill: ${E}; + fill: ${v}; } .railroad-comment ellipse { @@ -4303,39 +4303,39 @@ ${i?"":` .railroad-group { /* Grouping container, no specific styles */ } -`},"getStyles"),ST=class{constructor(){this.d=""}static{I(this,"PathBuilder")}moveTo(e,r){return this.d+=`M ${e} ${r} `,this}lineTo(e,r){return this.d+=`L ${e} ${r} `,this}horizontalTo(e){return this.d+=`H ${e} `,this}verticalTo(e){return this.d+=`V ${e} `,this}arcTo(e,r,i,a,o,l,h){return this.d+=`A ${e} ${r} ${i} ${a?1:0} ${o?1:0} ${l} ${h} `,this}build(){return this.d.trim()}},KAi=class{constructor(e,r=pgt()){this.textCache=new Map,this.svg=e,this.config=r}static{I(this,"RailroadRenderer")}measureText(e){if(this.textCache.has(e))return this.textCache.get(e);let r=this.svg.append("text").attr("font-family",this.config.fontFamily).attr("font-size",this.config.fontSize).text(e),i=r.node().getBBox(),a={width:i.width,height:i.height};return r.remove(),this.textCache.set(e,a),a}renderTerminal(e,r){let i=this.measureText(r),a=i.width+this.config.padding*2,o=i.height+this.config.padding*2,l=e.append("g").attr("class","railroad-terminal");return l.append("rect").attr("x",0).attr("y",0).attr("width",a).attr("height",o).attr("rx",10).attr("ry",10),l.append("text").attr("x",a/2).attr("y",o/2).text(r),{element:l.node(),dimensions:{width:a,height:o,up:o/2,down:o/2}}}renderNonTerminal(e,r){let i=this.measureText(r),a=i.width+this.config.padding*2,o=i.height+this.config.padding*2,l=e.append("g").attr("class","railroad-nonterminal");return l.append("rect").attr("x",0).attr("y",0).attr("width",a).attr("height",o),l.append("text").attr("x",a/2).attr("y",o/2).text(r),{element:l.node(),dimensions:{width:a,height:o,up:o/2,down:o/2}}}renderSequence(e,r){let i=r.map((p)=>this.renderExpression(e,p)),a=0,o=0,l=0;for(let p of i)a+=p.dimensions.width,o=Math.max(o,p.dimensions.up),l=Math.max(l,p.dimensions.down);a+=(i.length-1)*this.config.horizontalSeparation;let h=e.append("g").attr("class","railroad-sequence"),d=0;for(let p=0;pthis.renderExpression(e,E)),a=0,o=0;for(let E of i)a=Math.max(a,E.dimensions.width),o+=E.dimensions.height;o+=(i.length-1)*this.config.verticalSeparation;let l=this.config.arcRadius,h=l*4,d=a+h,p=e.append("g").attr("class","railroad-choice"),m=0,y=o/2;for(let E of i){let w=m,T=w+E.dimensions.up,x=l*2+(a-E.dimensions.width)/2;p.node().appendChild(E.element).setAttribute("transform",`translate(${x}, ${w})`);let A=new ST,R=T>y;if(T===y)A.moveTo(0,y).lineTo(x,T);else A.moveTo(0,y).arcTo(l,l,0,!1,R,l,y+(R?l:-l)).lineTo(l,T-(R?l:-l)).arcTo(l,l,0,!1,!R,l*2,T).lineTo(x,T);p.append("path").attr("class","railroad-line").attr("d",A.build());let N=new ST,L=x+E.dimensions.width,B=d-l*2;if(T===y)N.moveTo(L,T).lineTo(d,y);else N.moveTo(L,T).lineTo(B,T).arcTo(l,l,0,!1,!R,d-l,T+(R?-l:l)).lineTo(d-l,y+(R?l:-l)).arcTo(l,l,0,!1,R,d,y);p.append("path").attr("class","railroad-line").attr("d",N.build()),m+=E.dimensions.height+this.config.verticalSeparation}return{element:p.node(),dimensions:{width:d,height:o,up:y,down:o-y}}}renderOptional(e,r){let i=this.renderExpression(e,r),a=this.config.arcRadius,o=a*2,l=i.dimensions.width+a*4,h=i.dimensions.height+o,d=e.append("g").attr("class","railroad-optional"),p=a*2,m=o;d.node().appendChild(i.element).setAttribute("transform",`translate(${p}, ${m})`);let E=m+i.dimensions.up,w=new ST().moveTo(0,E).lineTo(a*2,E);d.append("path").attr("class","railroad-line").attr("d",w.build());let T=new ST().moveTo(p+i.dimensions.width,E).lineTo(l,E);d.append("path").attr("class","railroad-line").attr("d",T.build());let x=new ST().moveTo(0,E).arcTo(a,a,0,!1,!1,a,E-a).lineTo(a,a).arcTo(a,a,0,!1,!0,a*2,0).lineTo(l-a*2,0).arcTo(a,a,0,!1,!0,l-a,a).lineTo(l-a,E-a).arcTo(a,a,0,!1,!1,l,E);return d.append("path").attr("class","railroad-line").attr("d",x.build()),{element:d.node(),dimensions:{width:l,height:h,up:E,down:h-E}}}renderRepetition(e,r,i){let a=this.renderExpression(e,r),o=this.config.arcRadius,l=o*2,h=a.dimensions.width+o*4,d=i===0,p=a.dimensions.height+l+(d?l:0),m=e.append("g").attr("class","railroad-repetition"),y=o*2,E=d?l:0;m.node().appendChild(a.element).setAttribute("transform",`translate(${y}, ${E})`);let T=E+a.dimensions.up;m.append("path").attr("class","railroad-line").attr("d",new ST().moveTo(0,T).lineTo(o*2,T).build()),m.append("path").attr("class","railroad-line").attr("d",new ST().moveTo(y+a.dimensions.width,T).lineTo(h,T).build());let x=E+a.dimensions.height+o,k=new ST().moveTo(y+a.dimensions.width,T).arcTo(o,o,0,!1,!0,y+a.dimensions.width+o,T+o).lineTo(y+a.dimensions.width+o,x).arcTo(o,o,0,!1,!0,y+a.dimensions.width,x+o).lineTo(o*2,x+o).arcTo(o,o,0,!1,!0,o,x).lineTo(o,T+o).arcTo(o,o,0,!1,!0,o*2,T);if(m.append("path").attr("class","railroad-line").attr("d",k.build()),d){let A=new ST().moveTo(0,T).arcTo(o,o,0,!1,!1,o,T-o).lineTo(o,o).arcTo(o,o,0,!1,!0,o*2,0).lineTo(h-o*2,0).arcTo(o,o,0,!1,!0,h-o,o).lineTo(h-o,T-o).arcTo(o,o,0,!1,!1,h,T);m.append("path").attr("class","railroad-line").attr("d",A.build())}return{element:m.node(),dimensions:{width:h,height:p,up:T,down:p-T}}}renderSpecial(e,r){let i=this.measureText("? "+r+" ?"),a=i.width+this.config.padding*2,o=i.height+this.config.padding*2,l=e.append("g").attr("class","railroad-special");return l.append("rect").attr("x",0).attr("y",0).attr("width",a).attr("height",o),l.append("text").attr("x",a/2).attr("y",o/2).text("? "+r+" ?"),{element:l.node(),dimensions:{width:a,height:o,up:o/2,down:o/2}}}renderExpression(e,r){switch(r.type){case"terminal":return this.renderTerminal(e,r.value);case"nonterminal":return this.renderNonTerminal(e,r.name);case"sequence":return this.renderSequence(e,r.elements);case"choice":return this.renderChoice(e,r.alternatives);case"optional":return this.renderOptional(e,r.element);case"repetition":return this.renderRepetition(e,r.element,r.min);case"special":return this.renderSpecial(e,r.text);default:throw Error(`Unknown node type: ${r.type}`)}}renderRule(e,r){let i=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${r})`),a=e.name+" =",o=this.measureText(a).width+20,l=o+20,h=i.append("g"),d=this.renderExpression(h,e.definition),p=Math.max(20,d.dimensions.up),m=p-d.dimensions.up;return h.attr("transform",`translate(${l}, ${m})`),i.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",p).text(a),i.append("g").attr("class","railroad-start").append("circle").attr("cx",o).attr("cy",p).attr("r",this.config.markerRadius),i.append("g").attr("class","railroad-end").append("circle").attr("cx",l+d.dimensions.width+10).attr("cy",p).attr("r",this.config.markerRadius),i.append("path").attr("class","railroad-line").attr("d",new ST().moveTo(o+this.config.markerRadius,p).lineTo(l,p).build()),i.append("path").attr("class","railroad-line").attr("d",new ST().moveTo(l+d.dimensions.width,p).lineTo(l+d.dimensions.width+10-this.config.markerRadius,p).build()),{height:Math.max(40,m+d.dimensions.height+this.config.padding*2),width:l+d.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let r=this.config.padding,i=0;for(let a of e){let o=this.renderRule(a,r);r+=o.height+this.config.verticalSeparation,i=Math.max(i,o.width)}return{width:i+this.config.padding*2,height:r+this.config.padding}}},wen=I((e,r,i)=>{Bl(e,r.height,r.width,i),e.attr("viewBox",`0 0 ${r.width} ${r.height}`)},"configureRailroadSvgSize"),XAi=I((e,r,i)=>{Ze.debug(`[Railroad] Rendering diagram -`+e);try{let a=Ou(r);a.attr("class","railroad-diagram");let l=ea().railroad?.useMaxWidth??!0,h=Ch.getRules();if(Ze.debug(`[Railroad] Rendering ${h.length} rules`),h.length===0){Ze.warn("[Railroad] No rules to render"),wen(a,{height:100,width:200},l);return}let p=new KAi(a,pgt()).renderDiagram(h);wen(a,p,l),Ze.debug("[Railroad] Render complete")}catch(a){throw Ze.error("[Railroad] Render error:",a),a}},"draw"),oM={draw:XAi}});var QAi,TW,ZAi,JAi,e5i,ken;var Aen=Re(()=>{sle();Tv();A0();eo();Zs();Ja();rb();QAi=hF().Railroad.parser.LangiumParser,TW=I((e)=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(TW);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(TW);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:TW(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:TW(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:TW(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),ZAi=I((e)=>({name:e.name,definition:TW(e.definition)}),"transformRule"),JAi=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(ZAi(r)))},"populateDb"),e5i={parse:I((e)=>{Ch.clear(),Ze.debug("[Railroad Parser] Starting Langium parse");let r=QAi.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new CI(r);let i=r.value;Ze.debug("[Railroad Parser] Parsed rules:",i.rules.length),JAi(i),Ze.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:Ch}},ken={parser:e5i,db:Ch,renderer:oM,styles:sM}});var t5i,nAe,r5i,Ren,n5i,i5i,a5i,s5i,o5i,Ien;var Oen=Re(()=>{sle();Tv();A0();eo();Zs();Ja();rb();t5i=dF().RailroadEbnf.parser.LangiumParser,nAe=I((e)=>{let r=e.alternatives.map(r5i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),r5i=I((e)=>{let r=e.elements.map(i5i);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),Ren=I((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return nAe(e.element);case"EbnfOptional":return{type:"optional",element:nAe(e.element)};case"EbnfRepetition":return{type:"repetition",element:nAe(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),n5i=I((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},Ren(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),i5i=I((e)=>e.postfixes.reduce((r,i)=>n5i(r,i),Ren(e.base)),"transformTerm"),a5i=I((e)=>({name:e.name,definition:nAe(e.definition)}),"transformRule"),s5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(a5i(r)))},"populateDb"),o5i={parse:I((e)=>{Ch.clear(),Ze.debug("[EBNF Parser] Starting Langium parse");let r=t5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new CI(r);let i=r.value;Ze.debug("[EBNF Parser] Parsed rules:",i.rules.length),s5i(i),Ze.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:Ch}},Ien={parser:o5i,db:Ch,renderer:oM,styles:sM}});var l5i,ggt,c5i,u5i,h5i,d5i,f5i,p5i,g5i,Nen;var Len=Re(()=>{sle();Tv();A0();eo();Zs();Ja();rb();l5i=fF().RailroadAbnf.parser.LangiumParser,ggt=I((e)=>{let r=e.alternatives.map(c5i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformAlternation"),c5i=I((e)=>{let r=e.elements.map(h5i);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformConcatenation"),u5i=I((e)=>{if(e.includes("*")){let[i,a]=e.split("*"),o=i?parseInt(i,10):0,l=a?parseInt(a,10):1/0;return{min:o,max:l}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),h5i=I((e)=>{let r=d5i(e.primary);if(!e.repeat)return r;let{min:i,max:a}=u5i(e.repeat);if(i===0&&a===1)return{type:"optional",element:r};return{type:"repetition",element:r,min:i,max:a}},"transformElement"),d5i=I((e)=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return ggt(e.element);case"AbnfOptionalGroup":return{type:"optional",element:ggt(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),f5i=I((e)=>({name:e.name,definition:ggt(e.definition)}),"transformRule"),p5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(f5i(r)))},"populateDb"),g5i={parse:I((e)=>{Ch.clear(),Ze.debug("[ABNF Parser] Starting Langium parse");let r=l5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new CI(r);let i=r.value;Ze.debug("[ABNF Parser] Parsed rules:",i.rules.length),p5i(i),Ze.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:Ch}},Nen={parser:g5i,db:Ch,renderer:oM,styles:sM}});var m5i,Den,b5i,y5i,Men,v5i,_5i,E5i,w5i,S5i,Pen;var Ben=Re(()=>{sle();Tv();A0();eo();Zs();Ja();rb();m5i=pF().RailroadPeg.parser.LangiumParser,Den=I((e)=>{let r=e.alternatives.map(b5i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformOrderedChoice"),b5i=I((e)=>{let r=e.elements.map(y5i);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),y5i=I((e)=>{let r=v5i(e.suffix);if(!e.operator)return r;return{type:"special",text:e.operator==="&"?`&${Men(r)}`:`!${Men(r)}`}},"transformPrefix"),Men=I((e)=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),v5i=I((e)=>{let r=_5i(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),_5i=I((e)=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return Den(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),E5i=I((e)=>({name:e.name,definition:Den(e.definition)}),"transformRule"),w5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(E5i(r)))},"populateDb"),S5i={parse:I((e)=>{Ch.clear(),Ze.debug("[PEG Parser] Starting Langium parse");let r=m5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new CI(r);let i=r.value;Ze.debug("[PEG Parser] Parsed rules:",i.rules.length),w5i(i),Ze.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:Ch}},Pen={parser:S5i,db:Ch,renderer:oM,styles:sM}});function KWe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var hP=KWe();function mlr(e){hP=e}var cP={exec:()=>null};function gV(e){let r=[];return(i)=>{let a=Math.max(0,Math.min(3,i-1)),o=r[a];return o||(o=e(a),r[a]=o),o}}function Pl(e,r=""){let i=typeof e=="string"?e:e.source,a={replace:(o,l)=>{let h=typeof l=="string"?l:l.source;return h=h.replace(Hb.caret,"$1"),i=i.replace(o,h),a},getRegex:()=>new RegExp(i,r)};return a}var uOn=((e="")=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^
    /i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(e)=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:gV((e)=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:gV((e)=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:gV((e)=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:gV((e)=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:gV((e)=>new RegExp(`^ {0,${e}}(?:)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:gV((e)=>new RegExp(`^ {0,${e}}>`))},hOn=/^(?:[ \t]*(?:\n|$))+/,dOn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,fOn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$te=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,pOn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,XWe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,blr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ylr=Pl(blr).replace(/bull/g,XWe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),gOn=Pl(blr).replace(/bull/g,XWe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),QWe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,mOn=/^[^\n]+/,ZWe=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bOn=Pl(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ZWe).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yOn=Pl(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,XWe).getRegex(),Ute="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",JWe=/|$))/,vOn=Pl("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",JWe).replace("tag",Ute).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vlr=(e)=>Pl(QWe).replace("hr",$te).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ute).getRegex(),_On=vlr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),EOn=vlr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),wOn=Pl(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",EOn).getRegex(),eje={blockquote:wOn,code:dOn,def:bOn,fences:fOn,heading:pOn,hr:$te,html:vOn,lheading:ylr,list:yOn,newline:hOn,paragraph:_On,table:cP,text:mOn},olr=Pl("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$te).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ute).getRegex(),SOn={...eje,lheading:gOn,table:olr,paragraph:Pl(QWe).replace("hr",$te).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",olr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Ute).getRegex()},TOn={...eje,html:Pl(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",JWe).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cP,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Pl(QWe).replace("hr",$te).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",ylr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},xOn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,COn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,_lr=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,kOn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",uOn?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),wlr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,LOn=Pl(wlr,"u").replace(/punct/g,rR).getRegex(),MOn=Pl(wlr,"u").replace(/punct/g,Elr).getRegex(),DOn=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,POn=Pl(DOn,"u").replace(/openQuote/g,ROn).replace(/punct/g,rR).getRegex(),Slr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",BOn=Pl(Slr,"gu").replace(/notPunctSpace/g,Gte).replace(/punctSpace/g,mV).replace(/punct/g,rR).getRegex(),FOn=Pl(Slr,"gu").replace(/notPunctSpace/g,OOn).replace(/punctSpace/g,IOn).replace(/punct/g,Elr).getRegex(),$On="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",UOn=Pl($On,"gu").replace(/notPunctSpace/g,Gte).replace(/punctSpace/g,mV).replace(/punct/g,rR).getRegex(),GOn=Pl("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Gte).replace(/punctSpace/g,mV).replace(/punct/g,rR).getRegex(),zOn="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",VOn=Pl(zOn,"gu").replace(/notPunctSpace/g,Gte).replace(/punctSpace/g,mV).replace(/punct/g,rR).getRegex(),HOn=Pl(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,rR).getRegex(),qOn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",YOn=Pl(qOn,"gu").replace(/notPunctSpace/g,Gte).replace(/punctSpace/g,mV).replace(/punct/g,rR).getRegex(),WOn=Pl(/\\(punct)/,"gu").replace(/punct/g,rR).getRegex(),jOn=Pl(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),KOn=Pl(JWe).replace("(?:-->|$)","-->").getRegex(),XOn=Pl("^comment|^|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",KOn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Tlr=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,fve=Pl(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Tlr).getRegex(),QOn=Pl(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",fve).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ZOn=Pl(/^!?\[(label)\]\[(ref)\]/).replace("label",fve).replace("ref",ZWe).getRegex(),JOn=Pl(/^!?\[(ref)\](?:\[\])?/).replace("ref",ZWe).getRegex(),llr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,eNn=Pl(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Tlr).getRegex(),tNn=Pl("reflink|nolink(?!\\()","g").replace("reflink",Pl(/^!?\[(label)\]\[(ref)\]/).replace("label",eNn).replace("ref",llr).getRegex()).replace("nolink",Pl(/^!?\[(ref)\](?:\[\])?/).replace("ref",llr).getRegex()).getRegex(),clr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,tje={_backpedal:cP,anyPunctuation:WOn,autolink:jOn,blockSkip:NOn,br:_lr,code:COn,del:cP,delLDelim:cP,delRDelim:cP,emStrongLDelim:LOn,emStrongRDelimAst:BOn,emStrongRDelimUnd:GOn,escape:xOn,link:QOn,nolink:JOn,punctuation:AOn,reflink:ZOn,reflinkSearch:tNn,tag:XOn,text:kOn,url:cP},rNn={...tje,emStrongLDelim:POn,emStrongRDelimAst:UOn,emStrongRDelimUnd:VOn,link:Pl(/^!?\[(label)\]\((.*?)\)/).replace("label",fve).getRegex(),reflink:Pl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fve).getRegex()},jWe={...tje,emStrongRDelimAst:FOn,emStrongLDelim:MOn,delLDelim:HOn,delRDelim:YOn,url:Pl(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",clr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Pl(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},ulr=(e)=>iNn[e];function ME(e,r){if(r){if(Hb.escapeTest.test(e))return e.replace(Hb.escapeReplace,ulr)}else if(Hb.escapeTestNoEncode.test(e))return e.replace(Hb.escapeReplaceNoEncode,ulr);return e}function hlr(e){try{e=encodeURI(e).replace(Hb.percentDecode,"%")}catch{return null}return e}function dlr(e,r){let i=e.replace(Hb.findPipe,(l,h,d)=>{let p=!1,m=h;for(;--m>=0&&d[m]==="\\";)p=!p;return p?"|":" |"}),a=i.split(Hb.splitPipe),o=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),r)if(a.length>r)a.splice(r);else for(;a.lengththis.renderExpression(e,p)),a=0,o=0,l=0;for(let p of i)a+=p.dimensions.width,o=Math.max(o,p.dimensions.up),l=Math.max(l,p.dimensions.down);a+=(i.length-1)*this.config.horizontalSeparation;let h=e.append("g").attr("class","railroad-sequence"),d=0;for(let p=0;pthis.renderExpression(e,v)),a=0,o=0;for(let v of i)a=Math.max(a,v.dimensions.width),o+=v.dimensions.height;o+=(i.length-1)*this.config.verticalSeparation;let l=this.config.arcRadius,h=l*4,d=a+h,p=e.append("g").attr("class","railroad-choice"),m=0,y=o/2;for(let v of i){let w=m,T=w+v.dimensions.up,x=l*2+(a-v.dimensions.width)/2;p.node().appendChild(v.element).setAttribute("transform",`translate(${x}, ${w})`);let A=new TT,R=T>y;if(T===y)A.moveTo(0,y).lineTo(x,T);else A.moveTo(0,y).arcTo(l,l,0,!1,R,l,y+(R?l:-l)).lineTo(l,T-(R?l:-l)).arcTo(l,l,0,!1,!R,l*2,T).lineTo(x,T);p.append("path").attr("class","railroad-line").attr("d",A.build());let N=new TT,L=x+v.dimensions.width,B=d-l*2;if(T===y)N.moveTo(L,T).lineTo(d,y);else N.moveTo(L,T).lineTo(B,T).arcTo(l,l,0,!1,!R,d-l,T+(R?-l:l)).lineTo(d-l,y+(R?l:-l)).arcTo(l,l,0,!1,R,d,y);p.append("path").attr("class","railroad-line").attr("d",N.build()),m+=v.dimensions.height+this.config.verticalSeparation}return{element:p.node(),dimensions:{width:d,height:o,up:y,down:o-y}}}renderOptional(e,r){let i=this.renderExpression(e,r),a=this.config.arcRadius,o=a*2,l=i.dimensions.width+a*4,h=i.dimensions.height+o,d=e.append("g").attr("class","railroad-optional"),p=a*2,m=o;d.node().appendChild(i.element).setAttribute("transform",`translate(${p}, ${m})`);let v=m+i.dimensions.up,w=new TT().moveTo(0,v).lineTo(a*2,v);d.append("path").attr("class","railroad-line").attr("d",w.build());let T=new TT().moveTo(p+i.dimensions.width,v).lineTo(l,v);d.append("path").attr("class","railroad-line").attr("d",T.build());let x=new TT().moveTo(0,v).arcTo(a,a,0,!1,!1,a,v-a).lineTo(a,a).arcTo(a,a,0,!1,!0,a*2,0).lineTo(l-a*2,0).arcTo(a,a,0,!1,!0,l-a,a).lineTo(l-a,v-a).arcTo(a,a,0,!1,!1,l,v);return d.append("path").attr("class","railroad-line").attr("d",x.build()),{element:d.node(),dimensions:{width:l,height:h,up:v,down:h-v}}}renderRepetition(e,r,i){let a=this.renderExpression(e,r),o=this.config.arcRadius,l=o*2,h=a.dimensions.width+o*4,d=i===0,p=a.dimensions.height+l+(d?l:0),m=e.append("g").attr("class","railroad-repetition"),y=o*2,v=d?l:0;m.node().appendChild(a.element).setAttribute("transform",`translate(${y}, ${v})`);let T=v+a.dimensions.up;m.append("path").attr("class","railroad-line").attr("d",new TT().moveTo(0,T).lineTo(o*2,T).build()),m.append("path").attr("class","railroad-line").attr("d",new TT().moveTo(y+a.dimensions.width,T).lineTo(h,T).build());let x=v+a.dimensions.height+o,k=new TT().moveTo(y+a.dimensions.width,T).arcTo(o,o,0,!1,!0,y+a.dimensions.width+o,T+o).lineTo(y+a.dimensions.width+o,x).arcTo(o,o,0,!1,!0,y+a.dimensions.width,x+o).lineTo(o*2,x+o).arcTo(o,o,0,!1,!0,o,x).lineTo(o,T+o).arcTo(o,o,0,!1,!0,o*2,T);if(m.append("path").attr("class","railroad-line").attr("d",k.build()),d){let A=new TT().moveTo(0,T).arcTo(o,o,0,!1,!1,o,T-o).lineTo(o,o).arcTo(o,o,0,!1,!0,o*2,0).lineTo(h-o*2,0).arcTo(o,o,0,!1,!0,h-o,o).lineTo(h-o,T-o).arcTo(o,o,0,!1,!1,h,T);m.append("path").attr("class","railroad-line").attr("d",A.build())}return{element:m.node(),dimensions:{width:h,height:p,up:T,down:p-T}}}renderSpecial(e,r){let i=this.measureText("? "+r+" ?"),a=i.width+this.config.padding*2,o=i.height+this.config.padding*2,l=e.append("g").attr("class","railroad-special");return l.append("rect").attr("x",0).attr("y",0).attr("width",a).attr("height",o),l.append("text").attr("x",a/2).attr("y",o/2).text("? "+r+" ?"),{element:l.node(),dimensions:{width:a,height:o,up:o/2,down:o/2}}}renderExpression(e,r){switch(r.type){case"terminal":return this.renderTerminal(e,r.value);case"nonterminal":return this.renderNonTerminal(e,r.name);case"sequence":return this.renderSequence(e,r.elements);case"choice":return this.renderChoice(e,r.alternatives);case"optional":return this.renderOptional(e,r.element);case"repetition":return this.renderRepetition(e,r.element,r.min);case"special":return this.renderSpecial(e,r.text);default:throw Error(`Unknown node type: ${r.type}`)}}renderRule(e,r){let i=this.svg.append("g").attr("class","railroad-rule").attr("transform",`translate(0, ${r})`),a=e.name+" =",o=this.measureText(a).width+20,l=o+20,h=i.append("g"),d=this.renderExpression(h,e.definition),p=Math.max(20,d.dimensions.up),m=p-d.dimensions.up;return h.attr("transform",`translate(${l}, ${m})`),i.append("g").attr("class","railroad-rule-name-group").append("text").attr("class","railroad-rule-name").attr("x",0).attr("y",p).text(a),i.append("g").attr("class","railroad-start").append("circle").attr("cx",o).attr("cy",p).attr("r",this.config.markerRadius),i.append("g").attr("class","railroad-end").append("circle").attr("cx",l+d.dimensions.width+10).attr("cy",p).attr("r",this.config.markerRadius),i.append("path").attr("class","railroad-line").attr("d",new TT().moveTo(o+this.config.markerRadius,p).lineTo(l,p).build()),i.append("path").attr("class","railroad-line").attr("d",new TT().moveTo(l+d.dimensions.width,p).lineTo(l+d.dimensions.width+10-this.config.markerRadius,p).build()),{height:Math.max(40,m+d.dimensions.height+this.config.padding*2),width:l+d.dimensions.width+10+this.config.markerRadius}}renderDiagram(e){let r=this.config.padding,i=0;for(let a of e){let o=this.renderRule(a,r);r+=o.height+this.config.verticalSeparation,i=Math.max(i,o.width)}return{width:i+this.config.padding*2,height:r+this.config.padding}}},ken=I((e,r,i)=>{Bl(e,r.height,r.width,i),e.attr("viewBox",`0 0 ${r.width} ${r.height}`)},"configureRailroadSvgSize"),r5i=I((e,r,i)=>{Ze.debug(`[Railroad] Rendering diagram +`+e);try{let a=Ou(r);a.attr("class","railroad-diagram");let l=ea().railroad?.useMaxWidth??!0,h=Ch.getRules();if(Ze.debug(`[Railroad] Rendering ${h.length} rules`),h.length===0){Ze.warn("[Railroad] No rules to render"),ken(a,{height:100,width:200},l);return}let p=new t5i(a,bgt()).renderDiagram(h);ken(a,p,l),Ze.debug("[Railroad] Render complete")}catch(a){throw Ze.error("[Railroad] Render error:",a),a}},"draw"),cM={draw:r5i}});var n5i,kW,i5i,a5i,s5i,Nen;var Len=Re(()=>{cle();Tv();A0();eo();Zs();Ja();rb();n5i=fF().Railroad.parser.LangiumParser,kW=I((e)=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{let r=e.elements.map(kW);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{let r=e.alternatives.map(kW);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:kW(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:kW(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:kW(e.element),min:0,max:1/0};default:throw Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),i5i=I((e)=>({name:e.name,definition:kW(e.definition)}),"transformRule"),a5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(i5i(r)))},"populateDb"),s5i={parse:I((e)=>{Ch.clear(),Ze.debug("[Railroad Parser] Starting Langium parse");let r=n5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new RI(r);let i=r.value;Ze.debug("[Railroad Parser] Parsed rules:",i.rules.length),a5i(i),Ze.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:Ch}},Nen={parser:s5i,db:Ch,renderer:cM,styles:lM}});var o5i,sAe,l5i,Men,c5i,u5i,h5i,d5i,f5i,Den;var Pen=Re(()=>{cle();Tv();A0();eo();Zs();Ja();rb();o5i=pF().RailroadEbnf.parser.LangiumParser,sAe=I((e)=>{let r=e.alternatives.map(l5i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformChoice"),l5i=I((e)=>{let r=e.elements.map(u5i);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),Men=I((e)=>{switch(e.$type){case"EbnfTerminal":return{type:"terminal",value:e.value};case"EbnfNonTerminal":return{type:"nonterminal",name:e.name};case"EbnfSpecial":return{type:"special",text:e.text};case"EbnfGroup":return sAe(e.element);case"EbnfOptional":return{type:"optional",element:sAe(e.element)};case"EbnfRepetition":return{type:"repetition",element:sAe(e.element),min:0,max:1/0};default:throw Error(`Unsupported EBNF primary node: ${e.$type}`)}},"transformPrimary"),c5i=I((e,r)=>{switch(r.$type){case"EbnfOptionalPostfix":return{type:"optional",element:e};case"EbnfZeroOrMorePostfix":return{type:"repetition",element:e,min:0,max:1/0};case"EbnfOneOrMorePostfix":return{type:"repetition",element:e,min:1,max:1/0};case"EbnfExceptionPostfix":return{type:"sequence",elements:[e,{type:"terminal",value:"-"},Men(r.except)]};default:throw Error(`Unsupported EBNF postfix node: ${r.$type}`)}},"transformPostfix"),u5i=I((e)=>e.postfixes.reduce((r,i)=>c5i(r,i),Men(e.base)),"transformTerm"),h5i=I((e)=>({name:e.name,definition:sAe(e.definition)}),"transformRule"),d5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(h5i(r)))},"populateDb"),f5i={parse:I((e)=>{Ch.clear(),Ze.debug("[EBNF Parser] Starting Langium parse");let r=o5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new RI(r);let i=r.value;Ze.debug("[EBNF Parser] Parsed rules:",i.rules.length),d5i(i),Ze.debug("[EBNF Parser] Parse complete")},"parse"),parser:{yy:Ch}},Den={parser:f5i,db:Ch,renderer:cM,styles:lM}});var p5i,ygt,g5i,m5i,b5i,y5i,v5i,_5i,E5i,Ben;var Fen=Re(()=>{cle();Tv();A0();eo();Zs();Ja();rb();p5i=gF().RailroadAbnf.parser.LangiumParser,ygt=I((e)=>{let r=e.alternatives.map(g5i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformAlternation"),g5i=I((e)=>{let r=e.elements.map(b5i);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformConcatenation"),m5i=I((e)=>{if(e.includes("*")){let[i,a]=e.split("*"),o=i?parseInt(i,10):0,l=a?parseInt(a,10):1/0;return{min:o,max:l}}let r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),b5i=I((e)=>{let r=y5i(e.primary);if(!e.repeat)return r;let{min:i,max:a}=m5i(e.repeat);if(i===0&&a===1)return{type:"optional",element:r};return{type:"repetition",element:r,min:i,max:a}},"transformElement"),y5i=I((e)=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return ygt(e.element);case"AbnfOptionalGroup":return{type:"optional",element:ygt(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),v5i=I((e)=>({name:e.name,definition:ygt(e.definition)}),"transformRule"),_5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(v5i(r)))},"populateDb"),E5i={parse:I((e)=>{Ch.clear(),Ze.debug("[ABNF Parser] Starting Langium parse");let r=p5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new RI(r);let i=r.value;Ze.debug("[ABNF Parser] Parsed rules:",i.rules.length),_5i(i),Ze.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:Ch}},Ben={parser:E5i,db:Ch,renderer:cM,styles:lM}});var w5i,Uen,S5i,T5i,$en,x5i,C5i,k5i,A5i,R5i,Gen;var zen=Re(()=>{cle();Tv();A0();eo();Zs();Ja();rb();w5i=mF().RailroadPeg.parser.LangiumParser,Uen=I((e)=>{let r=e.alternatives.map(S5i);if(r.length===1)return r[0];return{type:"choice",alternatives:r}},"transformOrderedChoice"),S5i=I((e)=>{let r=e.elements.map(T5i);if(r.length===1)return r[0];return{type:"sequence",elements:r}},"transformSequence"),T5i=I((e)=>{let r=x5i(e.suffix);if(!e.operator)return r;return{type:"special",text:e.operator==="&"?`&${$en(r)}`:`!${$en(r)}`}},"transformPrefix"),$en=I((e)=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),x5i=I((e)=>{let r=C5i(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),C5i=I((e)=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return Uen(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),k5i=I((e)=>({name:e.name,definition:Uen(e.definition)}),"transformRule"),A5i=I((e)=>{if(Sh(e,Ch),e.title)Ch.setTitle(e.title);e.rules.map((r)=>Ch.addRule(k5i(r)))},"populateDb"),R5i={parse:I((e)=>{Ch.clear(),Ze.debug("[PEG Parser] Starting Langium parse");let r=w5i.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new RI(r);let i=r.value;Ze.debug("[PEG Parser] Parsed rules:",i.rules.length),A5i(i),Ze.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:Ch}},Gen={parser:R5i,db:Ch,renderer:cM,styles:lM}});function ZWe(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fP=ZWe();function Elr(e){fP=e}var hP={exec:()=>null};function yV(e){let r=[];return(i)=>{let a=Math.max(0,Math.min(3,i-1)),o=r[a];return o||(o=e(a),r[a]=o),o}}function Pl(e,r=""){let i=typeof e=="string"?e:e.source,a={replace:(o,l)=>{let h=typeof l=="string"?l:l.source;return h=h.replace(Hb.caret,"$1"),i=i.replace(o,h),a},getRegex:()=>new RegExp(i,r)};return a}var mOn=((e="")=>{try{return!!new RegExp("(?<=1)(?/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:(e)=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:yV((e)=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:yV((e)=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:yV((e)=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:yV((e)=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:yV((e)=>new RegExp(`^ {0,${e}}(?:)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:yV((e)=>new RegExp(`^ {0,${e}}>`))},bOn=/^(?:[ \t]*(?:\n|$))+/,yOn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,vOn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zte=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_On=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,JWe=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,wlr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Slr=Pl(wlr).replace(/bull/g,JWe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),EOn=Pl(wlr).replace(/bull/g,JWe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),eje=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,wOn=/^[^\n]+/,tje=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,SOn=Pl(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",tje).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),TOn=Pl(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,JWe).getRegex(),Vte="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",rje=/|$))/,xOn=Pl("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|[^\\n]*\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",rje).replace("tag",Vte).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Tlr=(e)=>Pl(eje).replace("hr",zte).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vte).getRegex(),COn=Tlr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),kOn=Tlr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),AOn=Pl(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",kOn).getRegex(),nje={blockquote:AOn,code:yOn,def:SOn,fences:vOn,heading:_On,hr:zte,html:xOn,lheading:Slr,list:TOn,newline:bOn,paragraph:COn,table:hP,text:wOn},dlr=Pl("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",zte).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vte).getRegex(),ROn={...nje,lheading:EOn,table:dlr,paragraph:Pl(eje).replace("hr",zte).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dlr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vte).getRegex()},IOn={...nje,html:Pl(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",rje).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:hP,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Pl(eje).replace("hr",zte).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Slr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},OOn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,NOn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xlr=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,LOn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`+)[^`]+\k(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",mOn?"(?`+)[^`]+\k(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),klr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,$On=Pl(klr,"u").replace(/punct/g,aR).getRegex(),UOn=Pl(klr,"u").replace(/punct/g,Clr).getRegex(),GOn=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,zOn=Pl(GOn,"u").replace(/openQuote/g,DOn).replace(/punct/g,aR).getRegex(),Alr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",VOn=Pl(Alr,"gu").replace(/notPunctSpace/g,Hte).replace(/punctSpace/g,vV).replace(/punct/g,aR).getRegex(),HOn=Pl(Alr,"gu").replace(/notPunctSpace/g,BOn).replace(/punctSpace/g,POn).replace(/punct/g,Clr).getRegex(),qOn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",YOn=Pl(qOn,"gu").replace(/notPunctSpace/g,Hte).replace(/punctSpace/g,vV).replace(/punct/g,aR).getRegex(),WOn=Pl("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Hte).replace(/punctSpace/g,vV).replace(/punct/g,aR).getRegex(),jOn="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",KOn=Pl(jOn,"gu").replace(/notPunctSpace/g,Hte).replace(/punctSpace/g,vV).replace(/punct/g,aR).getRegex(),XOn=Pl(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,aR).getRegex(),QOn="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ZOn=Pl(QOn,"gu").replace(/notPunctSpace/g,Hte).replace(/punctSpace/g,vV).replace(/punct/g,aR).getRegex(),JOn=Pl(/\\(punct)/,"gu").replace(/punct/g,aR).getRegex(),eNn=Pl(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),tNn=Pl(rje).replace("(?:-->|$)","-->").getRegex(),rNn=Pl("^comment|^|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",tNn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Rlr=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,mve=Pl(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Rlr).getRegex(),nNn=Pl(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",mve).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),iNn=Pl(/^!?\[(label)\]\[(ref)\]/).replace("label",mve).replace("ref",tje).getRegex(),aNn=Pl(/^!?\[(ref)\](?:\[\])?/).replace("ref",tje).getRegex(),flr=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,sNn=Pl(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Rlr).getRegex(),oNn=Pl("reflink|nolink(?!\\()","g").replace("reflink",Pl(/^!?\[(label)\]\[(ref)\]/).replace("label",sNn).replace("ref",flr).getRegex()).replace("nolink",Pl(/^!?\[(ref)\](?:\[\])?/).replace("ref",flr).getRegex()).getRegex(),plr=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ije={_backpedal:hP,anyPunctuation:JOn,autolink:eNn,blockSkip:FOn,br:xlr,code:NOn,del:hP,delLDelim:hP,delRDelim:hP,emStrongLDelim:$On,emStrongRDelimAst:VOn,emStrongRDelimUnd:WOn,escape:OOn,link:nNn,nolink:aNn,punctuation:MOn,reflink:iNn,reflinkSearch:oNn,tag:rNn,text:LOn,url:hP},lNn={...ije,emStrongLDelim:zOn,emStrongRDelimAst:YOn,emStrongRDelimUnd:KOn,link:Pl(/^!?\[(label)\]\((.*?)\)/).replace("label",mve).getRegex(),reflink:Pl(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mve).getRegex()},QWe={...ije,emStrongRDelimAst:HOn,emStrongLDelim:UOn,delLDelim:XOn,delRDelim:ZOn,url:Pl(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",plr).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Pl(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},glr=(e)=>uNn[e];function ME(e,r){if(r){if(Hb.escapeTest.test(e))return e.replace(Hb.escapeReplace,glr)}else if(Hb.escapeTestNoEncode.test(e))return e.replace(Hb.escapeReplaceNoEncode,glr);return e}function mlr(e){try{e=encodeURI(e).replace(Hb.percentDecode,"%")}catch{return null}return e}function blr(e,r){let i=e.replace(Hb.findPipe,(l,h,d)=>{let p=!1,m=h;for(;--m>=0&&d[m]==="\\";)p=!p;return p?"|":" |"}),a=i.split(Hb.splitPipe),o=0;if(a[0].trim()||a.shift(),a.length>0&&!a.at(-1)?.trim()&&a.pop(),r)if(a.length>r)a.splice(r);else for(;a.length=0&&Hb.blankLine.test(r[i]);)i--;return r.length-i<=2?e:r.slice(0,i+1).join(` -`)}function pve(e){return e.toLowerCase().toUpperCase().toLowerCase()}function aNn(e,r){if(e.indexOf(r[1])===-1)return-1;let i=0;for(let a=0;a0?-2:-1}function sNn(e,r=0){let i=r,a="";for(let o of e)if(o==="\t"){let l=4-i%4;a+=" ".repeat(l),i+=l}else a+=o,i++;return a}function plr(e,r,i,a,o){let l=r.href,h=r.title||null,d=e[1].replace(o.other.outputLinkReplace,"$1"),p=e[0].charAt(0)==="!";a.state.inLink=!0;let m=a.state.linkEmitted,y=a.state.inRawBlock;a.state.linkEmitted=!1;let E=a.inlineTokens(d),w=a.state.linkEmitted;if(a.state.linkEmitted=m,a.state.inLink=!1,!p){if(w){a.state.inRawBlock=y;return}a.state.linkEmitted=!0}return{type:p?"image":"link",raw:i,href:l,title:h,text:d,tokens:E}}function oNn(e,r,i){let a=e.match(i.other.indentCodeCompensation);if(a===null)return r;let o=a[1];return r.split(` +`)}function bve(e){return e.toLowerCase().toUpperCase().toLowerCase()}function hNn(e,r){if(e.indexOf(r[1])===-1)return-1;let i=0;for(let a=0;a0?-2:-1}function dNn(e,r=0){let i=r,a="";for(let o of e)if(o==="\t"){let l=4-i%4;a+=" ".repeat(l),i+=l}else a+=o,i++;return a}function vlr(e,r,i,a,o){let l=r.href,h=r.title||null,d=e[1].replace(o.other.outputLinkReplace,"$1"),p=e[0].charAt(0)==="!";a.state.inLink=!0;let m=a.state.linkEmitted,y=a.state.inRawBlock;a.state.linkEmitted=!1;let v=a.inlineTokens(d),w=a.state.linkEmitted;if(a.state.linkEmitted=m,a.state.inLink=!1,!p){if(w){a.state.inRawBlock=y;return}a.state.linkEmitted=!0}return{type:p?"image":"link",raw:i,href:l,title:h,text:d,tokens:v}}function fNn(e,r,i){let a=e.match(i.other.indentCodeCompensation);if(a===null)return r;let o=a[1];return r.split(` `).map((l)=>{let h=l.match(i.other.beginningSpace);if(h===null)return l;let[d]=h;return l.slice(Math.min(d.length,o.length))}).join(` -`)}function glr(e,r,i,a){if(!r.includes("<"))return!1;for(let o=0;or.length-o)return!0;o+=h[0].length-1}}return!1}var gve=class{options;rules;lexer;constructor(e){this.options=e||hP}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let i=this.options.pedantic?r[0]:flr(r[0]),a=i.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i,codeBlockStyle:"indented",text:a}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let i=r[0],a=oNn(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=zN(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceTabChar.test(a))&&(i=a.trim())}return{type:"heading",raw:zN(r[0],` -`),depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:zN(r[0],` -`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let i=zN(r[0],` +`)}function _lr(e,r,i,a){if(!r.includes("<"))return!1;for(let o=0;or.length-o)return!0;o+=h[0].length-1}}return!1}var yve=class{options;rules;lexer;constructor(e){this.options=e||fP}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let i=this.options.pedantic?r[0]:ylr(r[0]),a=i.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i,codeBlockStyle:"indented",text:a}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let i=r[0],a=fNn(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:a}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let a=HN(i,"#");(this.options.pedantic||!a||this.rules.other.endingSpaceTabChar.test(a))&&(i=a.trim())}return{type:"heading",raw:HN(r[0],` +`),depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:HN(r[0],` +`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let i=HN(r[0],` `).split(` `),a="",o="",l=[];for(;i.length>0;){let h=!1,d=[],p;for(p=0;p1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),h=!1;for(;e;){let p=!1,m="",y="";if(!(r=l.exec(e))||this.rules.block.hr.test(e))break;m=r[0],e=e.substring(m.length);let E=sNn(r[2].split(` +`);continue}}return{type:"blockquote",raw:a,tokens:l,text:o}}}list(e){let r=this.rules.block.list.exec(e);if(r){let i=r[1].trim(),a=i.length>1,o={type:"list",raw:"",ordered:a,start:a?+i.slice(0,-1):"",loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:"[*+-]");let l=this.rules.other.listItemRegex(i),h=!1;for(;e;){let p=!1,m="",y="";if(!(r=l.exec(e))||this.rules.block.hr.test(e))break;m=r[0],e=e.substring(m.length);let v=dNn(r[2].split(` `,1)[0],r[1].length),w=e.split(` -`,1)[0],T=!E.trim(),x=0;if(this.options.pedantic?(x=2,y=E.trimStart()):T?x=r[1].length+1:(x=E.search(this.rules.other.nonSpaceChar),x=x>4?1:x,y=E.slice(x),x+=r[1].length),T&&this.rules.other.blankLine.test(w)&&(m+=w+` +`,1)[0],T=!v.trim(),x=0;if(this.options.pedantic?(x=2,y=v.trimStart()):T?x=r[1].length+1:(x=v.search(this.rules.other.nonSpaceChar),x=x>4?1:x,y=v.slice(x),x+=r[1].length),T&&this.rules.other.blankLine.test(w)&&(m+=w+` `,e=e.substring(w.length+1),p=!0),!p){let k=this.rules.other.nextBulletRegex(x),A=this.rules.other.hrRegex(x),R=this.rules.other.fencesBeginRegex(x),N=this.rules.other.headingBeginRegex(x),L=this.rules.other.htmlBeginRegex(x),B=this.rules.other.blockquoteBeginRegex(x);for(;e;){let D=e.split(` `,1)[0],P;if(w=D,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),P=w):P=w.replace(this.rules.other.tabCharGlobal," "),R.test(w)||N.test(w)||L.test(w)||B.test(w)||k.test(w)||A.test(w))break;if(P.search(this.rules.other.nonSpaceChar)>=x||!w.trim())y+=` -`+P.slice(x);else{if(T||E.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(E)||N.test(E)||A.test(E))break;y+=` +`+P.slice(x);else{if(T||v.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(v)||N.test(v)||A.test(v))break;y+=` `+w}T=!w.trim(),m+=D+` -`,e=e.substring(D.length+1),E=P.slice(x)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(h=!0)),o.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),o.raw+=m}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p of o.items)if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),!o.loose){let m=p.tokens.filter((E)=>E.type==="space"),y=m.length>0&&m.some((E)=>this.rules.other.anyLine.test(E.raw));o.loose=y}for(let p of o.items){let m=p.tokens[0];if(p.task&&(m?.type==="text"||m?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let E=this.lexer.inlineQueue.length-1;E>=0;E--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[E].src)){this.lexer.inlineQueue[E].src=this.lexer.inlineQueue[E].src.replace(this.rules.other.listReplaceTask,"");break}let y=this.rules.other.listTaskCheckbox.exec(p.raw);if(y){let E={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};p.checked=E.checked,o.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=E.raw+p.tokens[0].raw,p.tokens[0].text=E.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(E)):p.tokens.unshift({type:"paragraph",raw:E.raw,text:E.raw,tokens:[E]}):p.tokens.unshift(E)}}else p.task&&(p.task=!1)}if(o.loose)for(let p of o.items){p.loose=!0;for(let m of p.tokens)m.type==="text"&&(m.type="paragraph")}return o}}html(e){let r=this.rules.block.html.exec(e);if(r){let i=flr(r[0]);return{type:"html",block:!0,raw:i,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:i}}}def(e){let r=this.rules.block.def.exec(e);if(r){let i=pve(r[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:zN(r[0],` -`),href:a,title:o}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=dlr(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` -`):[],l={type:"table",raw:zN(r[0],` -`),header:[],align:[],rows:[]};if(i.length===a.length){for(let h of a)this.rules.other.tableAlignRight.test(h)?l.align.push("right"):this.rules.other.tableAlignCenter.test(h)?l.align.push("center"):this.rules.other.tableAlignLeft.test(h)?l.align.push("left"):l.align.push(null);for(let h=0;h({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[p]})));return l}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r){let i=r[1].trim();return{type:"heading",raw:zN(r[0],` +`,e=e.substring(D.length+1),v=P.slice(x)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(h=!0)),o.items.push({type:"list_item",raw:m,task:!!this.options.gfm&&this.rules.other.listIsTask.test(y),loose:!1,text:y,tokens:[]}),o.raw+=m}let d=o.items.at(-1);if(d)d.raw=d.raw.trimEnd(),d.text=d.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let p of o.items)if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),!o.loose){let m=p.tokens.filter((v)=>v.type==="space"),y=m.length>0&&m.some((v)=>this.rules.other.anyLine.test(v.raw));o.loose=y}for(let p of o.items){let m=p.tokens[0];if(p.task&&(m?.type==="text"||m?.type==="paragraph")){p.text=p.text.replace(this.rules.other.listReplaceTask,""),m.raw=m.raw.replace(this.rules.other.listReplaceTask,""),m.text=m.text.replace(this.rules.other.listReplaceTask,"");for(let v=this.lexer.inlineQueue.length-1;v>=0;v--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[v].src)){this.lexer.inlineQueue[v].src=this.lexer.inlineQueue[v].src.replace(this.rules.other.listReplaceTask,"");break}let y=this.rules.other.listTaskCheckbox.exec(p.raw);if(y){let v={type:"checkbox",raw:y[0]+" ",checked:y[0]!=="[ ]"};p.checked=v.checked,o.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=v.raw+p.tokens[0].raw,p.tokens[0].text=v.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(v)):p.tokens.unshift({type:"paragraph",raw:v.raw,text:v.raw,tokens:[v]}):p.tokens.unshift(v)}}else p.task&&(p.task=!1)}if(o.loose)for(let p of o.items){p.loose=!0;for(let m of p.tokens)m.type==="text"&&(m.type="paragraph")}return o}}html(e){let r=this.rules.block.html.exec(e);if(r){let i=ylr(r[0]);return{type:"html",block:!0,raw:i,pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:i}}}def(e){let r=this.rules.block.def.exec(e);if(r){let i=bve(r[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:HN(r[0],` +`),href:a,title:o}}}table(e){let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=blr(r[1]),a=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=r[3]?.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(` +`):[],l={type:"table",raw:HN(r[0],` +`),header:[],align:[],rows:[]};if(i.length===a.length){for(let h of a)this.rules.other.tableAlignRight.test(h)?l.align.push("right"):this.rules.other.tableAlignCenter.test(h)?l.align.push("center"):this.rules.other.tableAlignLeft.test(h)?l.align.push("left"):l.align.push(null);for(let h=0;h({text:d,tokens:this.lexer.inline(d),header:!1,align:l.align[p]})));return l}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r){let i=r[1].trim();return{type:"heading",raw:HN(r[0],` `),depth:r[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let i=r[1].charAt(r[1].length-1)===` -`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let i=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&glr(e,r[1],i,this.rules))return;let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let h=zN(a.slice(0,-1),"\\");if((a.length-h.length)%2===0)return}else{let h=aNn(r[2],"()");if(h===-2)return;if(h>-1){let d=(r[0].indexOf("!")===0?5:4)+r[1].length+h;r[2]=r[2].substring(0,h),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let o=r[2],l="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(o);h&&(o=h[1],l=h[3])}else l=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?o=o.slice(1):o=o.slice(1,-1)),plr(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let a=i[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&glr(e,i[1],a,this.rules))return;let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=r[pve(o)];if(!l){let h=i[0].charAt(0);return{type:"text",raw:h,text:h}}return plr(i,l,i[0],this.lexer,this.rules)}}emStrong(e,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[3])||!i||this.rules.inline.punctuation.exec(i)){let o=[...a[0]].length-1,l,h,d=o,p=0,m=a[0][0],y=i===m,E=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(E.lastIndex=0,r=r.slice(-1*e.length+o);(a=E.exec(r))!==null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(h=[...l].length,a[3]||a[4]){d+=h;continue}else if(a[5]||a[6]){if(o%3&&!((o+h)%3)){p+=h;continue}if(y)break}if(d-=h,d>0)continue;h=Math.min(h,h+d+p);let w=[...a[0]][0].length,T=e.slice(0,o+a.index+w+h);if(Math.min(o,h)%2){let k=T.slice(1,-1);return{type:"em",raw:T,text:k,tokens:this.lexer.inlineTokens(k)}}let x=T.slice(2,-2);return{type:"strong",raw:T,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e,r,i=""){let a=this.rules.inline.delLDelim.exec(e);if(!a)return;if(!a[1]||!i||this.rules.inline.punctuation.exec(i)){let o=[...a[0]].length-1,l,h,d=o,p=this.rules.inline.delRDelim;for(p.lastIndex=0,r=r.slice(-1*e.length+o);(a=p.exec(r))!==null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l||(h=[...l].length,h!==o))continue;if(a[3]||a[4]){d+=h;continue}if(d-=h,d>0)continue;h=Math.min(h,h+d);let m=[...a[0]][0].length,y=e.slice(0,o+a.index+m+h),E=y.slice(o,-o);return{type:"del",raw:y,text:E,tokens:this.lexer.inlineTokens(E)}}}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,autolink:!0,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,autolink:!0,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},nC=class e{tokens;options;state;inlineQueue;tokenizer;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||hP,this.options.tokenizer=this.options.tokenizer||new gve,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let i={other:Hb,block:dve.normal,inline:Bte.normal};this.options.pedantic?(i.block=dve.pedantic,i.inline=Bte.pedantic):this.options.gfm&&(i.block=dve.gfm,this.options.breaks?i.inline=Bte.breaks:i.inline=Bte.gfm),this.tokenizer.rules=i}static get rules(){return{block:dve,inline:Bte}}static lex(r,i){return new e(i).lex(r)}static lexInline(r,i){return new e(i).inlineTokens(r)}lex(r){r=r.replace(Hb.carriageReturn,` +`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let i=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&_lr(e,r[1],i,this.rules))return;let a=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(a)){if(!this.rules.other.endAngleBracket.test(a))return;let h=HN(a.slice(0,-1),"\\");if((a.length-h.length)%2===0)return}else{let h=hNn(r[2],"()");if(h===-2)return;if(h>-1){let d=(r[0].indexOf("!")===0?5:4)+r[1].length+h;r[2]=r[2].substring(0,h),r[0]=r[0].substring(0,d).trim(),r[3]=""}}let o=r[2],l="";if(this.options.pedantic){let h=this.rules.other.pedanticHrefTitle.exec(o);h&&(o=h[1],l=h[3])}else l=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(a)?o=o.slice(1):o=o.slice(1,-1)),vlr(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let a=i[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&_lr(e,i[1],a,this.rules))return;let o=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=r[bve(o)];if(!l){let h=i[0].charAt(0);return{type:"text",raw:h,text:h}}return vlr(i,l,i[0],this.lexer,this.rules)}}emStrong(e,r,i=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||!a[1]&&!a[2]&&!a[3]&&!a[4]||a[4]&&i.match(this.rules.other.unicodeAlphaNumeric))return;if(!(a[1]||a[3])||!i||this.rules.inline.punctuation.exec(i)){let o=[...a[0]].length-1,l,h,d=o,p=0,m=a[0][0],y=i===m,v=m==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(v.lastIndex=0,r=r.slice(-1*e.length+o);(a=v.exec(r))!==null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l)continue;if(h=[...l].length,a[3]||a[4]){d+=h;continue}else if(a[5]||a[6]){if(o%3&&!((o+h)%3)){p+=h;continue}if(y)break}if(d-=h,d>0)continue;h=Math.min(h,h+d+p);let w=[...a[0]][0].length,T=e.slice(0,o+a.index+w+h);if(Math.min(o,h)%2){let k=T.slice(1,-1);return{type:"em",raw:T,text:k,tokens:this.lexer.inlineTokens(k)}}let x=T.slice(2,-2);return{type:"strong",raw:T,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),a=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return a&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e,r,i=""){let a=this.rules.inline.delLDelim.exec(e);if(!a)return;if(!a[1]||!i||this.rules.inline.punctuation.exec(i)){let o=[...a[0]].length-1,l,h,d=o,p=this.rules.inline.delRDelim;for(p.lastIndex=0,r=r.slice(-1*e.length+o);(a=p.exec(r))!==null;){if(l=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!l||(h=[...l].length,h!==o))continue;if(a[3]||a[4]){d+=h;continue}if(d-=h,d>0)continue;h=Math.min(h,h+d);let m=[...a[0]][0].length,y=e.slice(0,o+a.index+m+h),v=y.slice(o,-o);return{type:"del",raw:y,text:v,tokens:this.lexer.inlineTokens(v)}}}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let i,a;return r[2]==="@"?(i=r[1],a="mailto:"+i):(i=r[1],a=i),{type:"link",raw:r[0],text:i,href:a,autolink:!0,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let r;if(r=this.rules.inline.url.exec(e)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(o!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,autolink:!0,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},aC=class e{tokens;options;state;inlineQueue;tokenizer;constructor(r){this.tokens=[],this.tokens.links=Object.create(null),this.options=r||fP,this.options.tokenizer=this.options.tokenizer||new yve,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let i={other:Hb,block:gve.normal,inline:Ute.normal};this.options.pedantic?(i.block=gve.pedantic,i.inline=Ute.pedantic):this.options.gfm&&(i.block=gve.gfm,this.options.breaks?i.inline=Ute.breaks:i.inline=Ute.gfm),this.tokenizer.rules=i}static get rules(){return{block:gve,inline:Ute}}static lex(r,i){return new e(i).lex(r)}static lexInline(r,i){return new e(i).inlineTokens(r)}lex(r){r=r.replace(Hb.carriageReturn,` `),this.blockTokens(r,this.tokens);for(let i=0;i(l=d.call({lexer:this},r,i))?(r=r.substring(l.raw.length),i.push(l),!0):!1))continue;if(l=this.tokenizer.space(r)){r=r.substring(l.raw.length);let d=i.at(-1);l.raw.length===1&&d!==void 0?d.raw+=` `:i.push(l);continue}if(l=this.tokenizer.code(r)){r=r.substring(l.raw.length);let d=i.at(-1);d?.type==="paragraph"||d?.type==="text"?(d.raw+=(d.raw.endsWith(` `)?"":` @@ -4349,7 +4349,7 @@ ${x}`,o=o.substring(0,o.length-T.text.length)+A.text;break}else if(w?.type==="li `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):i.push(l),a=h.length!==r.length,r=r.substring(l.raw.length);continue}if(l=this.tokenizer.text(r)){r=r.substring(l.raw.length);let d=i.at(-1);d?.type==="text"?(d.raw+=(d.raw.endsWith(` `)?"":` `)+l.raw,d.text+=` -`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):i.push(l);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,i}inline(r,i=[]){return this.inlineQueue.push({src:r,tokens:i}),i}linkInText(r){if(!r.includes("["))return!1;let i=this.tokenizer.rules.inline.link;for(let a of r.matchAll(this.tokenizer.rules.inline.blockSkip))if(i.test(a[0])&&r.charAt(a.index-1)!=="!")return!0;for(let a of r.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let o=a[0],l=o.lastIndexOf("[");if(!(o.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,pve(o.slice(l+1,-1))))&&!(l>1&&this.linkInText(o.slice(1,l-1))))return!0}return!1}inlineTokens(r,i=[]){this.tokenizer.lexer=this;let a=r;if(this.tokens.links&&r.includes("[")){let d=this.tokenizer.rules.inline.reflinkSearch,p=(m)=>{let y=m.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,pve(m.slice(y+1,-1))))return m;if(y>1&&m.charAt(0)!=="!"){let E=m.slice(1,y-1);if(this.linkInText(E))return"["+E.replace(d,p)+"]["+"a".repeat(m.length-y-2)+"]"}return"["+"a".repeat(m.length-2)+"]"};a=a.replace(d,p)}a=a.replace(this.tokenizer.rules.inline.anyPunctuation,(d)=>"+".repeat(d.length)),a=a.replace(this.tokenizer.rules.inline.blockSkip,(d,p,m)=>{let y=m?m.length:0;return d.slice(0,y)+"["+"a".repeat(d.length-y-2)+"]"}),a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let o=!1,l="",h=1/0;for(;r;){if(r.length(d=m.call({lexer:this},r,i))?(r=r.substring(d.raw.length),i.push(d),!0):!1))continue;if(d=this.tokenizer.escape(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.tag(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.link(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(d.raw.length);let m=i.at(-1);d.type==="text"&&m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):i.push(d);continue}if(d=this.tokenizer.emStrong(r,a,l)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.codespan(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.br(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.del(r,a,l)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.autolink(r)){r=r.substring(d.raw.length),i.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(r))){r=r.substring(d.raw.length),i.push(d);continue}let p=r;if(this.options.extensions?.startInline){let m=1/0,y=r.slice(1),E;this.options.extensions.startInline.forEach((w)=>{E=w.call({lexer:this},y),typeof E=="number"&&E>=0&&(m=Math.min(m,E))}),m<1/0&&m>=0&&(p=r.substring(0,m+1))}if(d=this.tokenizer.inlineText(p)){r=r.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),o=!0;let m=i.at(-1);m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):i.push(d);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return i}infiniteLoopError(r){let i="Infinite loop on byte: "+r;if(this.options.silent)console.error(i);else throw Error(i)}},mve=class{options;parser;constructor(e){this.options=e||hP}space(e){return""}code({text:e,lang:r,escaped:i}){let a=(r||"").match(Hb.notSpaceStart)?.[0],o=e?e.replace(Hb.endingNewline,"")+` +`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=d.text):i.push(l);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return this.state.top=!0,i}inline(r,i=[]){return this.inlineQueue.push({src:r,tokens:i}),i}linkInText(r){if(!r.includes("["))return!1;let i=this.tokenizer.rules.inline.link;for(let a of r.matchAll(this.tokenizer.rules.inline.blockSkip))if(i.test(a[0])&&r.charAt(a.index-1)!=="!")return!0;for(let a of r.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let o=a[0],l=o.lastIndexOf("[");if(!(o.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,bve(o.slice(l+1,-1))))&&!(l>1&&this.linkInText(o.slice(1,l-1))))return!0}return!1}inlineTokens(r,i=[]){this.tokenizer.lexer=this;let a=r;if(this.tokens.links&&r.includes("[")){let d=this.tokenizer.rules.inline.reflinkSearch,p=(m)=>{let y=m.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,bve(m.slice(y+1,-1))))return m;if(y>1&&m.charAt(0)!=="!"){let v=m.slice(1,y-1);if(this.linkInText(v))return"["+v.replace(d,p)+"]["+"a".repeat(m.length-y-2)+"]"}return"["+"a".repeat(m.length-2)+"]"};a=a.replace(d,p)}a=a.replace(this.tokenizer.rules.inline.anyPunctuation,(d)=>"+".repeat(d.length)),a=a.replace(this.tokenizer.rules.inline.blockSkip,(d,p,m)=>{let y=m?m.length:0;return d.slice(0,y)+"["+"a".repeat(d.length-y-2)+"]"}),a=this.options.hooks?.emStrongMask?.call({lexer:this},a)??a;let o=!1,l="",h=1/0;for(;r;){if(r.length(d=m.call({lexer:this},r,i))?(r=r.substring(d.raw.length),i.push(d),!0):!1))continue;if(d=this.tokenizer.escape(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.tag(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.link(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.reflink(r,this.tokens.links)){r=r.substring(d.raw.length);let m=i.at(-1);d.type==="text"&&m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):i.push(d);continue}if(d=this.tokenizer.emStrong(r,a,l)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.codespan(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.br(r)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.del(r,a,l)){r=r.substring(d.raw.length),i.push(d);continue}if(d=this.tokenizer.autolink(r)){r=r.substring(d.raw.length),i.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(r))){r=r.substring(d.raw.length),i.push(d);continue}let p=r;if(this.options.extensions?.startInline){let m=1/0,y=r.slice(1),v;this.options.extensions.startInline.forEach((w)=>{v=w.call({lexer:this},y),typeof v=="number"&&v>=0&&(m=Math.min(m,v))}),m<1/0&&m>=0&&(p=r.substring(0,m+1))}if(d=this.tokenizer.inlineText(p)){r=r.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(l=d.raw.slice(-1)),o=!0;let m=i.at(-1);m?.type==="text"?(m.raw+=d.raw,m.text+=d.text):i.push(d);continue}if(r){this.infiniteLoopError(r.charCodeAt(0));break}}return i}infiniteLoopError(r){let i="Infinite loop on byte: "+r;if(this.options.silent)console.error(i);else throw Error(i)}},vve=class{options;parser;constructor(e){this.options=e||fP}space(e){return""}code({text:e,lang:r,escaped:i}){let a=(r||"").match(Hb.notSpaceStart)?.[0],o=e?e.replace(Hb.endingNewline,"")+` `:"";return a?'
    '+(i?o:ME(o,!0))+`
    `:"
    "+(i?o:ME(o,!0))+`
    `}blockquote({tokens:e}){return`
    @@ -4367,8 +4367,8 @@ ${this.parser.parse(e)}
    `}tablerow({text:e}){return`
    ${e} `}tablecell(e){let r=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+r+` -`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${ME(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,text:i,tokens:a,autolink:o}){let l=o?ME(i,!0):this.parser.parseInline(a),h=hlr(e);if(h===null)return l;e=ME(h,o);let d='
    ",d}image({href:e,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let o=hlr(e);if(o===null)return ME(i);e=o;let l=`${ME(i)}{let h=o[l].flat(1/0);i=i.concat(this.walkTokens(h,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((i)=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let l=r.renderers[o.name];l?r.renderers[o.name]=function(...h){let d=o.renderer.apply(this,h);return d===!1&&(d=l.apply(this,h)),d}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=r[o.level];l?l.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),a.extensions=r),i.renderer){let o=this.defaults.renderer||new mve(this.defaults);for(let l in i.renderer){if(!(l in o))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let h=l,d=i.renderer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y||""}}a.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new gve(this.defaults);for(let l in i.tokenizer){if(!(l in o))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let h=l,d=i.tokenizer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Fte;for(let l in i.hooks){if(!(l in o))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let h=l,d=i.hooks[h],p=o[h];Fte.passThroughHooks.has(l)?o[h]=(m)=>{if(this.defaults.async&&Fte.passThroughHooksRespectAsync.has(l))return(async()=>{let E=await d.call(o,m);return p.call(o,E)})();let y=d.call(o,m);return p.call(o,y)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let E=await d.apply(o,m);return E===!1&&(E=await p.apply(o,m)),E})();let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(h){let d=[];return d.push(l.call(this,h)),o&&(d=d.concat(o.call(this,h))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return nC.lex(e,r??this.defaults)}parser(e,r){return iC.parse(e,r??this.defaults)}parseMarkdown(e){return(r,i)=>{let a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,d=await(o.hooks?await o.hooks.provideLexer(e):e?nC.lex:nC.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(d):d;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser(e):e?iC.parse:iC.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer(e):e?nC.lex:nC.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let d=(o.hooks?o.hooks.provideParser(e):e?iC.parse:iC.parseInline)(h,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(h){return l(h)}}}onError(e,r){return(i)=>{if(i.message+=` -Please report this to https://github.com/markedjs/marked.`,e){let a="

    An error occurred:

    "+ME(i.message+"",!0)+"
    ";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},uP=new lNn;function ku(e,r){return uP.parse(e,r)}ku.options=ku.setOptions=function(e){return uP.setOptions(e),ku.defaults=uP.defaults,mlr(ku.defaults),ku};ku.getDefaults=KWe;ku.defaults=hP;function cNn(...e){return uP.use(...e),ku.defaults=uP.defaults,mlr(ku.defaults),ku}ku.use=cNn;ku.walkTokens=function(e,r){return uP.walkTokens(e,r)};ku.parseInline=uP.parseInline;ku.Parser=iC;ku.parser=iC.parse;ku.Renderer=mve;ku.TextRenderer=rje;ku.Lexer=nC;ku.lexer=nC.lex;ku.Tokenizer=gve;ku.Hooks=Fte;ku.parse=ku;var{options:Zsa,setOptions:Jsa,walkTokens:eoa,parseInline:toa}=ku;var roa=iC.parse,noa=nC.lex;var kgr=sv(Cgr(),1);var Yte=kgr.default;class Wi extends Error{constructor(e,r){var i="KaTeX parse error: "+e,a,o,l=r&&r.loc;if(l&&l.start<=l.end){var h=l.lexer.input;if(a=l.start,o=l.end,a===h.length)i+=" at end of input: ";else i+=" at position "+(a+1)+": ";var d=h.slice(a,o).replace(/[^]/g,"$&̲"),p;if(a>15)p="…"+h.slice(a-15,a);else p=h.slice(0,a);var m;if(o+15e.replace(FDn,"-$1").toLowerCase(),UDn={"&":"&",">":">","<":"<",'"':""","'":"'"},GDn=/[&><"']/g,Yb=(e)=>String(e).replace(GDn,(r)=>UDn[r]),Pve=(e)=>{if(e.type==="ordgroup")if(e.body.length===1)return Pve(e.body[0]);else return e;else if(e.type==="color")if(e.body.length===1)return Pve(e.body[0]);else return e;else if(e.type==="font")return Pve(e.body);else return e},zDn=new Set(["mathord","textord","atom"]),cR=(e)=>zDn.has(Pve(e).type),VDn=(e)=>{var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);if(!r)return"_relative";if(r[2]!==":")return null;if(!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]))return null;return r[1].toLowerCase()},wje={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:(e)=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,r)=>(r.push(e),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:(e)=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:(e)=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1000,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:(e)=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:(e)=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function HDn(e){if(typeof e!=="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw Error("Unexpected schema type; settings must declare an explicit default.")}}function qDn(e){if(Object.prototype.hasOwnProperty.call(e,"default")&&e.default!==void 0)return e.default;var r=Array.isArray(e.type)?e.type[0]:e.type;return HDn(r)}function YDn(e,r,i,a){var o=Object.prototype.hasOwnProperty.call(i,r)?i[r]:void 0,l=Object.prototype.hasOwnProperty.call(a,"processor")?a.processor:void 0;e[r]=o!==void 0?l?l(o):o:qDn(a)}class Vve{constructor(e){if(e===void 0)e={};this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r of Object.keys(wje)){var i=wje[r];if(i)YDn(this,r,e,i)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=VDn(e.url);if(r==null)return!1;e.protocol=r}var i=typeof this.trust==="function"?this.trust(e):this.trust;return Boolean(i)}}class iR{constructor(e,r,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=i}sup(){return $k[WDn[this.id]]}sub(){return $k[jDn[this.id]]}fracNum(){return $k[KDn[this.id]]}fracDen(){return $k[XDn[this.id]]}cramp(){return $k[QDn[this.id]]}text(){return $k[ZDn[this.id]]}isTight(){return this.size>=2}}var Gje=0,Uve=1,xV=2,oR=3,Jte=4,FS=5,CV=6,lv=7,$k=[new iR(Gje,0,!1),new iR(Uve,0,!0),new iR(xV,1,!1),new iR(oR,1,!0),new iR(Jte,2,!1),new iR(FS,2,!0),new iR(CV,3,!1),new iR(lv,3,!0)],WDn=[Jte,FS,Jte,FS,CV,lv,CV,lv],jDn=[FS,FS,FS,FS,lv,lv,lv,lv],KDn=[xV,oR,Jte,FS,CV,lv,CV,lv],XDn=[oR,oR,FS,FS,lv,lv,lv,lv],QDn=[Uve,Uve,oR,oR,FS,FS,lv,lv],ZDn=[Gje,Uve,xV,oR,xV,oR,xV,oR],ul={DISPLAY:$k[Gje],TEXT:$k[xV],SCRIPT:$k[Jte],SCRIPTSCRIPT:$k[CV]},Sje=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function JDn(e){for(var r=0;r=o[0]&&e<=o[1])return i.name}}return null}var Bve=[];Sje.forEach((e)=>e.blocks.forEach((r)=>Bve.push(...r)));function hmr(e){for(var r=0;r=Bve[r]&&e<=Bve[r+1])return!0;return!1}var Kg=(e)=>e+" "+e,wV=80,e9n=function(r,i){return"M95,"+(622+r+i)+` +`}strong({tokens:e}){return`${this.parser.parseInline(e)}`}em({tokens:e}){return`${this.parser.parseInline(e)}`}codespan({text:e}){return`${ME(e,!0)}`}br(e){return"
    "}del({tokens:e}){return`${this.parser.parseInline(e)}`}link({href:e,title:r,text:i,tokens:a,autolink:o}){let l=o?ME(i,!0):this.parser.parseInline(a),h=mlr(e);if(h===null)return l;e=ME(h,o);let d='
    ",d}image({href:e,title:r,text:i,tokens:a}){a&&(i=this.parser.parseInline(a,this.parser.textRenderer));let o=mlr(e);if(o===null)return ME(i);e=o;let l=`${ME(i)}{let h=o[l].flat(1/0);i=i.concat(this.walkTokens(h,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.tokens,r)))}}return i}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((i)=>{let a={...i};if(a.async=this.defaults.async||a.async||!1,i.extensions&&(i.extensions.forEach((o)=>{if(!o.name)throw Error("extension name required");if("renderer"in o){let l=r.renderers[o.name];l?r.renderers[o.name]=function(...h){let d=o.renderer.apply(this,h);return d===!1&&(d=l.apply(this,h)),d}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw Error("extension level must be 'block' or 'inline'");let l=r[o.level];l?l.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),a.extensions=r),i.renderer){let o=this.defaults.renderer||new vve(this.defaults);for(let l in i.renderer){if(!(l in o))throw Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let h=l,d=i.renderer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y||""}}a.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new yve(this.defaults);for(let l in i.tokenizer){if(!(l in o))throw Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let h=l,d=i.tokenizer[h],p=o[h];o[h]=(...m)=>{let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new Gte;for(let l in i.hooks){if(!(l in o))throw Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let h=l,d=i.hooks[h],p=o[h];Gte.passThroughHooks.has(l)?o[h]=(m)=>{if(this.defaults.async&&Gte.passThroughHooksRespectAsync.has(l))return(async()=>{let v=await d.call(o,m);return p.call(o,v)})();let y=d.call(o,m);return p.call(o,y)}:o[h]=(...m)=>{if(this.defaults.async)return(async()=>{let v=await d.apply(o,m);return v===!1&&(v=await p.apply(o,m)),v})();let y=d.apply(o,m);return y===!1&&(y=p.apply(o,m)),y}}a.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,l=i.walkTokens;a.walkTokens=function(h){let d=[];return d.push(l.call(this,h)),o&&(d=d.concat(o.call(this,h))),d}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return aC.lex(e,r??this.defaults)}parser(e,r){return sC.parse(e,r??this.defaults)}parseMarkdown(e){return(r,i)=>{let a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=e),o.async)return(async()=>{let h=o.hooks?await o.hooks.preprocess(r):r,d=await(o.hooks?await o.hooks.provideLexer(e):e?aC.lex:aC.lexInline)(h,o),p=o.hooks?await o.hooks.processAllTokens(d):d;o.walkTokens&&await Promise.all(this.walkTokens(p,o.walkTokens));let m=await(o.hooks?await o.hooks.provideParser(e):e?sC.parse:sC.parseInline)(p,o);return o.hooks?await o.hooks.postprocess(m):m})().catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let h=(o.hooks?o.hooks.provideLexer(e):e?aC.lex:aC.lexInline)(r,o);o.hooks&&(h=o.hooks.processAllTokens(h)),o.walkTokens&&this.walkTokens(h,o.walkTokens);let d=(o.hooks?o.hooks.provideParser(e):e?sC.parse:sC.parseInline)(h,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(h){return l(h)}}}onError(e,r){return(i)=>{if(i.message+=` +Please report this to https://github.com/markedjs/marked.`,e){let a="

    An error occurred:

    "+ME(i.message+"",!0)+"
    ";return r?Promise.resolve(a):a}if(r)return Promise.reject(i);throw i}}},dP=new pNn;function ku(e,r){return dP.parse(e,r)}ku.options=ku.setOptions=function(e){return dP.setOptions(e),ku.defaults=dP.defaults,Elr(ku.defaults),ku};ku.getDefaults=ZWe;ku.defaults=fP;function gNn(...e){return dP.use(...e),ku.defaults=dP.defaults,Elr(ku.defaults),ku}ku.use=gNn;ku.walkTokens=function(e,r){return dP.walkTokens(e,r)};ku.parseInline=dP.parseInline;ku.Parser=sC;ku.parser=sC.parse;ku.Renderer=vve;ku.TextRenderer=aje;ku.Lexer=aC;ku.lexer=aC.lex;ku.Tokenizer=yve;ku.Hooks=Gte;ku.parse=ku;var{options:ooa,setOptions:loa,walkTokens:coa,parseInline:uoa}=ku;var hoa=sC.parse,doa=aC.lex;var Ngr=sv(Ogr(),1);var Kte=Ngr.default;class Wi extends Error{constructor(e,r){var i="KaTeX parse error: "+e,a,o,l=r&&r.loc;if(l&&l.start<=l.end){var h=l.lexer.input;if(a=l.start,o=l.end,a===h.length)i+=" at end of input: ";else i+=" at position "+(a+1)+": ";var d=h.slice(a,o).replace(/[^]/g,"$&̲"),p;if(a>15)p="…"+h.slice(a-15,a);else p=h.slice(0,a);var m;if(o+15e.replace(HDn,"-$1").toLowerCase(),YDn={"&":"&",">":">","<":"<",'"':""","'":"'"},WDn=/[&><"']/g,Yb=(e)=>String(e).replace(WDn,(r)=>YDn[r]),$ve=(e)=>{if(e.type==="ordgroup")if(e.body.length===1)return $ve(e.body[0]);else return e;else if(e.type==="color")if(e.body.length===1)return $ve(e.body[0]);else return e;else if(e.type==="font")return $ve(e.body);else return e},jDn=new Set(["mathord","textord","atom"]),dR=(e)=>jDn.has($ve(e).type),KDn=(e)=>{var r=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);if(!r)return"_relative";if(r[2]!==":")return null;if(!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]))return null;return r[1].toLowerCase()},xje={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:(e)=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,r)=>(r.push(e),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:(e)=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:(e)=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1000,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:(e)=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:(e)=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function XDn(e){if(typeof e!=="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw Error("Unexpected schema type; settings must declare an explicit default.")}}function QDn(e){if(Object.prototype.hasOwnProperty.call(e,"default")&&e.default!==void 0)return e.default;var r=Array.isArray(e.type)?e.type[0]:e.type;return XDn(r)}function ZDn(e,r,i,a){var o=Object.prototype.hasOwnProperty.call(i,r)?i[r]:void 0,l=Object.prototype.hasOwnProperty.call(a,"processor")?a.processor:void 0;e[r]=o!==void 0?l?l(o):o:QDn(a)}class Yve{constructor(e){if(e===void 0)e={};this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var r of Object.keys(xje)){var i=xje[r];if(i)ZDn(this,r,e,i)}}isTrusted(e){if("url"in e&&e.url&&!e.protocol){var r=KDn(e.url);if(r==null)return!1;e.protocol=r}var i=typeof this.trust==="function"?this.trust(e):this.trust;return Boolean(i)}}class oR{constructor(e,r,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=r,this.cramped=i}sup(){return Uk[JDn[this.id]]}sub(){return Uk[e9n[this.id]]}fracNum(){return Uk[t9n[this.id]]}fracDen(){return Uk[r9n[this.id]]}cramp(){return Uk[n9n[this.id]]}text(){return Uk[i9n[this.id]]}isTight(){return this.size>=2}}var Hje=0,Vve=1,AV=2,uR=3,rre=4,$S=5,RV=6,lv=7,Uk=[new oR(Hje,0,!1),new oR(Vve,0,!0),new oR(AV,1,!1),new oR(uR,1,!0),new oR(rre,2,!1),new oR($S,2,!0),new oR(RV,3,!1),new oR(lv,3,!0)],JDn=[rre,$S,rre,$S,RV,lv,RV,lv],e9n=[$S,$S,$S,$S,lv,lv,lv,lv],t9n=[AV,uR,rre,$S,RV,lv,RV,lv],r9n=[uR,uR,$S,$S,lv,lv,lv,lv],n9n=[Vve,Vve,uR,uR,$S,$S,lv,lv],i9n=[Hje,Vve,AV,uR,AV,uR,AV,uR],ul={DISPLAY:Uk[Hje],TEXT:Uk[AV],SCRIPT:Uk[rre],SCRIPTSCRIPT:Uk[RV]},Cje=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function a9n(e){for(var r=0;r=o[0]&&e<=o[1])return i.name}}return null}var Uve=[];Cje.forEach((e)=>e.blocks.forEach((r)=>Uve.push(...r)));function mmr(e){for(var r=0;r=Uve[r]&&e<=Uve[r+1])return!0;return!1}var Kg=(e)=>e+" "+e,xV=80,s9n=function(r,i){return"M95,"+(622+r+i)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -4379,7 +4379,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+r)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+r)+" "+i+"h400000v"+(40+r)+"h-400000z"},t9n=function(r,i){return"M263,"+(601+r+i)+`c0.7,0,18,39.7,52,119 +M`+(834+r)+" "+i+"h400000v"+(40+r)+"h-400000z"},o9n=function(r,i){return"M263,"+(601+r+i)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+r/2.084+" -"+r+` @@ -4389,7 +4389,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+r)+" "+i+"h400000v"+(40+r)+"h-400000z"},r9n=function(r,i){return"M983 "+(10+r+i)+` +M`+(1001+r)+" "+i+"h400000v"+(40+r)+"h-400000z"},l9n=function(r,i){return"M983 "+(10+r+i)+` l`+r/3.13+" -"+r+` c4,-6.7,10,-10,18,-10 H400000v`+(40+r)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -4398,7 +4398,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+r)+" "+i+"h400000v"+(40+r)+"h-400000z"},n9n=function(r,i){return"M424,"+(2398+r+i)+` +M`+(1001+r)+" "+i+"h400000v"+(40+r)+"h-400000z"},c9n=function(r,i){return"M424,"+(2398+r+i)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -4408,18 +4408,18 @@ v`+(40+r)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+r)+" "+i+` -h400000v`+(40+r)+"h-400000z"},i9n=function(r,i){return"M473,"+(2713+r+i)+` +h400000v`+(40+r)+"h-400000z"},u9n=function(r,i){return"M473,"+(2713+r+i)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+r/5.298+" -"+r+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+r)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+r)+" "+i+"h400000v"+(40+r)+"H1017.7z"},a9n=function(r){var i=r/2;return"M400000 "+r+" H0 L"+i+" 0 l65 45 L145 "+(r-80)+" H400000z"},s9n=function(r,i,a){var o=a-54-i-r;return"M702 "+(r+i)+"H400000"+(40+r)+` +606zM`+(1001+r)+" "+i+"h400000v"+(40+r)+"H1017.7z"},h9n=function(r){var i=r/2;return"M400000 "+r+" H0 L"+i+" 0 l65 45 L145 "+(r-80)+" H400000z"},d9n=function(r,i,a){var o=a-54-i-r;return"M702 "+(r+i)+"H400000"+(40+r)+` H742v`+o+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+i+"H400000v"+(40+r)+"H742z"},o9n=function(r,i,a){i=1000*i;var o="";switch(r){case"sqrtMain":o=e9n(i,wV);break;case"sqrtSize1":o=t9n(i,wV);break;case"sqrtSize2":o=r9n(i,wV);break;case"sqrtSize3":o=n9n(i,wV);break;case"sqrtSize4":o=i9n(i,wV);break;case"sqrtTall":o=s9n(i,wV,a)}return o},l9n=function(r,i){switch(r){case"⎜":return Kg("M291 0 H417 V"+i+" H291z");case"∣":return Kg("M145 0 H188 V"+i+" H145z");case"∥":return Kg("M145 0 H188 V"+i+" H145z")+Kg("M367 0 H410 V"+i+" H367z");case"⎟":return Kg("M457 0 H583 V"+i+" H457z");case"⎢":return Kg("M319 0 H403 V"+i+" H319z");case"⎥":return Kg("M263 0 H347 V"+i+" H263z");case"⎪":return Kg("M384 0 H504 V"+i+" H384z");case"⏐":return Kg("M312 0 H355 V"+i+" H312z");case"‖":return Kg("M257 0 H300 V"+i+" H257z")+Kg("M478 0 H521 V"+i+" H478z");default:return""}},Agr={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+i+"H400000v"+(40+r)+"H742z"},f9n=function(r,i,a){i=1000*i;var o="";switch(r){case"sqrtMain":o=s9n(i,xV);break;case"sqrtSize1":o=o9n(i,xV);break;case"sqrtSize2":o=l9n(i,xV);break;case"sqrtSize3":o=c9n(i,xV);break;case"sqrtSize4":o=u9n(i,xV);break;case"sqrtTall":o=d9n(i,xV,a)}return o},p9n=function(r,i){switch(r){case"⎜":return Kg("M291 0 H417 V"+i+" H291z");case"∣":return Kg("M145 0 H188 V"+i+" H145z");case"∥":return Kg("M145 0 H188 V"+i+" H145z")+Kg("M367 0 H410 V"+i+" H367z");case"⎟":return Kg("M457 0 H583 V"+i+" H457z");case"⎢":return Kg("M319 0 H403 V"+i+" H319z");case"⎥":return Kg("M263 0 H347 V"+i+" H263z");case"⎪":return Kg("M384 0 H504 V"+i+" H384z");case"⏐":return Kg("M312 0 H355 V"+i+" H312z");case"‖":return Kg("M257 0 H300 V"+i+" H257z")+Kg("M478 0 H521 V"+i+" H478z");default:return""}},Lgr={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -4590,7 +4590,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},c9n=function(r,i){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+i+` v1759 v84 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},g9n=function(r,i){switch(r){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+i+` v1759 v84 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+i+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+i+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+i+" v1759 h84z";case"vert":return"M145 15 v585 v"+i+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-i+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -4618,24 +4618,24 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error("Unknown stretchy delimiter.")}};function u9n(e){return"toText"in e}class mP{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createDocumentFragment();for(var r=0;r{if(u9n(e))return e.toText();throw Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var Tje={pt:1,mm:2.8452755905511813,cm:28.45275590551181,in:72.27,bp:1.00375,pc:12,dd:1.070008643042351,cc:12.84010371650821,nd:1.0669781931464175,nc:12.80373831775701,sp:0.0000152587890625,px:1.00375},h9n={ex:!0,em:!0,mu:!0},dmr=function(r){if(typeof r!=="string")r=r.unit;return r in Tje||r in h9n||r==="ex"},Jf=function(r,i){var a;if(r.unit in Tje)a=Tje[r.unit]/i.fontMetrics().ptPerEm/i.sizeMultiplier;else if(r.unit==="mu")a=i.fontMetrics().cssEmPerMu;else{var o;if(i.style.isTight())o=i.havingStyle(i.style.text());else o=i;if(r.unit==="ex")a=o.fontMetrics().xHeight;else if(r.unit==="em")a=o.fontMetrics().quad;else throw new Wi("Invalid unit: '"+r.unit+"'");if(o!==i)a*=o.sizeMultiplier/i.sizeMultiplier}return Math.min(r.number*a,i.maxSize)},oa=function(r){return+r.toFixed(4)+"em"},YN=function(r){return r.filter((i)=>i).join(" ")},zje=function(r){var i="";for(var a of Object.keys(r)){var o=r[a];if(o!==void 0)i+=$Dn(a)+":"+o+";"}return i},fmr=function(r,i,a){if(this.classes=r||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},i){if(i.style.isTight())this.classes.push("mtight");var o=i.getColor();if(o)this.style.color=o}},pmr=function(r){var i=document.createElement(r);i.className=YN(this.classes),Object.assign(i.style,this.style);for(var a of Object.keys(this.attributes))i.setAttribute(a,this.attributes[a]);for(var o=0;o/=\x00-\x1f]/,gmr=function(r){var i="<"+r;if(this.classes.length)i+=' class="'+Yb(YN(this.classes))+'"';var a=zje(this.style);if(a)i+=' style="'+Yb(a)+'"';for(var o of Object.keys(this.attributes)){if(d9n.test(o))throw new Wi("Invalid attribute name '"+o+"'");i+=" "+o+'="'+Yb(this.attributes[o])+'"'}i+=">";for(var l=0;l",i};class bP{constructor(e,r,i,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,fmr.call(this,e,i,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return pmr.call(this,"span")}toMarkup(){return gmr.call(this,"span")}}class ire{constructor(e,r,i,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,fmr.call(this,r,a),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return pmr.call(this,"a")}toMarkup(){return gmr.call(this,"a")}}class mmr{constructor(e,r,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+Yb(this.alt)+'0)r=document.createElement("span"),r.style.marginRight=oa(this.italic);if(this.classes.length>0)r=r||document.createElement("span"),r.className=YN(this.classes);if(Object.keys(this.style).length>0)r=r||document.createElement("span"),Object.assign(r.style,this.style);if(r)return r.appendChild(e),r;else return e}toMarkup(){var e=!1,r="0)i+="margin-right:"+oa(this.italic)+";";if(i+=zje(this.style),i)e=!0,r+=' style="'+Yb(i)+'"';var a=Yb(this.text);if(e)return r+=">",r+=a,r+="",r;else return a}}class Gk{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a';else return''}}class Gve{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);return r}toMarkup(){var e=" but got "+String(e)+".")}var m9n=(e)=>e instanceof bP||e instanceof ire||e instanceof mP,Uk={"AMS-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.68889,0,0,0.72222],"66":[0,0.68889,0,0,0.66667],"67":[0,0.68889,0,0,0.72222],"68":[0,0.68889,0,0,0.72222],"69":[0,0.68889,0,0,0.66667],"70":[0,0.68889,0,0,0.61111],"71":[0,0.68889,0,0,0.77778],"72":[0,0.68889,0,0,0.77778],"73":[0,0.68889,0,0,0.38889],"74":[0.16667,0.68889,0,0,0.5],"75":[0,0.68889,0,0,0.77778],"76":[0,0.68889,0,0,0.66667],"77":[0,0.68889,0,0,0.94445],"78":[0,0.68889,0,0,0.72222],"79":[0.16667,0.68889,0,0,0.77778],"80":[0,0.68889,0,0,0.61111],"81":[0.16667,0.68889,0,0,0.77778],"82":[0,0.68889,0,0,0.72222],"83":[0,0.68889,0,0,0.55556],"84":[0,0.68889,0,0,0.66667],"85":[0,0.68889,0,0,0.72222],"86":[0,0.68889,0,0,0.72222],"87":[0,0.68889,0,0,1],"88":[0,0.68889,0,0,0.72222],"89":[0,0.68889,0,0,0.72222],"90":[0,0.68889,0,0,0.66667],"107":[0,0.68889,0,0,0.55556],"160":[0,0,0,0,0.25],"165":[0,0.675,0.025,0,0.75],"174":[0.15559,0.69224,0,0,0.94666],"240":[0,0.68889,0,0,0.55556],"295":[0,0.68889,0,0,0.54028],"710":[0,0.825,0,0,2.33334],"732":[0,0.9,0,0,2.33334],"770":[0,0.825,0,0,2.33334],"771":[0,0.9,0,0,2.33334],"989":[0.08167,0.58167,0,0,0.77778],"1008":[0,0.43056,0.04028,0,0.66667],"8245":[0,0.54986,0,0,0.275],"8463":[0,0.68889,0,0,0.54028],"8487":[0,0.68889,0,0,0.72222],"8498":[0,0.68889,0,0,0.55556],"8502":[0,0.68889,0,0,0.66667],"8503":[0,0.68889,0,0,0.44445],"8504":[0,0.68889,0,0,0.66667],"8513":[0,0.68889,0,0,0.63889],"8592":[-0.03598,0.46402,0,0,0.5],"8594":[-0.03598,0.46402,0,0,0.5],"8602":[-0.13313,0.36687,0,0,1],"8603":[-0.13313,0.36687,0,0,1],"8606":[0.01354,0.52239,0,0,1],"8608":[0.01354,0.52239,0,0,1],"8610":[0.01354,0.52239,0,0,1.11111],"8611":[0.01354,0.52239,0,0,1.11111],"8619":[0,0.54986,0,0,1],"8620":[0,0.54986,0,0,1],"8621":[-0.13313,0.37788,0,0,1.38889],"8622":[-0.13313,0.36687,0,0,1],"8624":[0,0.69224,0,0,0.5],"8625":[0,0.69224,0,0,0.5],"8630":[0,0.43056,0,0,1],"8631":[0,0.43056,0,0,1],"8634":[0.08198,0.58198,0,0,0.77778],"8635":[0.08198,0.58198,0,0,0.77778],"8638":[0.19444,0.69224,0,0,0.41667],"8639":[0.19444,0.69224,0,0,0.41667],"8642":[0.19444,0.69224,0,0,0.41667],"8643":[0.19444,0.69224,0,0,0.41667],"8644":[0.1808,0.675,0,0,1],"8646":[0.1808,0.675,0,0,1],"8647":[0.1808,0.675,0,0,1],"8648":[0.19444,0.69224,0,0,0.83334],"8649":[0.1808,0.675,0,0,1],"8650":[0.19444,0.69224,0,0,0.83334],"8651":[0.01354,0.52239,0,0,1],"8652":[0.01354,0.52239,0,0,1],"8653":[-0.13313,0.36687,0,0,1],"8654":[-0.13313,0.36687,0,0,1],"8655":[-0.13313,0.36687,0,0,1],"8666":[0.13667,0.63667,0,0,1],"8667":[0.13667,0.63667,0,0,1],"8669":[-0.13313,0.37788,0,0,1],"8672":[-0.064,0.437,0,0,1.334],"8674":[-0.064,0.437,0,0,1.334],"8705":[0,0.825,0,0,0.5],"8708":[0,0.68889,0,0,0.55556],"8709":[0.08167,0.58167,0,0,0.77778],"8717":[0,0.43056,0,0,0.42917],"8722":[-0.03598,0.46402,0,0,0.5],"8724":[0.08198,0.69224,0,0,0.77778],"8726":[0.08167,0.58167,0,0,0.77778],"8733":[0,0.69224,0,0,0.77778],"8736":[0,0.69224,0,0,0.72222],"8737":[0,0.69224,0,0,0.72222],"8738":[0.03517,0.52239,0,0,0.72222],"8739":[0.08167,0.58167,0,0,0.22222],"8740":[0.25142,0.74111,0,0,0.27778],"8741":[0.08167,0.58167,0,0,0.38889],"8742":[0.25142,0.74111,0,0,0.5],"8756":[0,0.69224,0,0,0.66667],"8757":[0,0.69224,0,0,0.66667],"8764":[-0.13313,0.36687,0,0,0.77778],"8765":[-0.13313,0.37788,0,0,0.77778],"8769":[-0.13313,0.36687,0,0,0.77778],"8770":[-0.03625,0.46375,0,0,0.77778],"8774":[0.30274,0.79383,0,0,0.77778],"8776":[-0.01688,0.48312,0,0,0.77778],"8778":[0.08167,0.58167,0,0,0.77778],"8782":[0.06062,0.54986,0,0,0.77778],"8783":[0.06062,0.54986,0,0,0.77778],"8785":[0.08198,0.58198,0,0,0.77778],"8786":[0.08198,0.58198,0,0,0.77778],"8787":[0.08198,0.58198,0,0,0.77778],"8790":[0,0.69224,0,0,0.77778],"8791":[0.22958,0.72958,0,0,0.77778],"8796":[0.08198,0.91667,0,0,0.77778],"8806":[0.25583,0.75583,0,0,0.77778],"8807":[0.25583,0.75583,0,0,0.77778],"8808":[0.25142,0.75726,0,0,0.77778],"8809":[0.25142,0.75726,0,0,0.77778],"8812":[0.25583,0.75583,0,0,0.5],"8814":[0.20576,0.70576,0,0,0.77778],"8815":[0.20576,0.70576,0,0,0.77778],"8816":[0.30274,0.79383,0,0,0.77778],"8817":[0.30274,0.79383,0,0,0.77778],"8818":[0.22958,0.72958,0,0,0.77778],"8819":[0.22958,0.72958,0,0,0.77778],"8822":[0.1808,0.675,0,0,0.77778],"8823":[0.1808,0.675,0,0,0.77778],"8828":[0.13667,0.63667,0,0,0.77778],"8829":[0.13667,0.63667,0,0,0.77778],"8830":[0.22958,0.72958,0,0,0.77778],"8831":[0.22958,0.72958,0,0,0.77778],"8832":[0.20576,0.70576,0,0,0.77778],"8833":[0.20576,0.70576,0,0,0.77778],"8840":[0.30274,0.79383,0,0,0.77778],"8841":[0.30274,0.79383,0,0,0.77778],"8842":[0.13597,0.63597,0,0,0.77778],"8843":[0.13597,0.63597,0,0,0.77778],"8847":[0.03517,0.54986,0,0,0.77778],"8848":[0.03517,0.54986,0,0,0.77778],"8858":[0.08198,0.58198,0,0,0.77778],"8859":[0.08198,0.58198,0,0,0.77778],"8861":[0.08198,0.58198,0,0,0.77778],"8862":[0,0.675,0,0,0.77778],"8863":[0,0.675,0,0,0.77778],"8864":[0,0.675,0,0,0.77778],"8865":[0,0.675,0,0,0.77778],"8872":[0,0.69224,0,0,0.61111],"8873":[0,0.69224,0,0,0.72222],"8874":[0,0.69224,0,0,0.88889],"8876":[0,0.68889,0,0,0.61111],"8877":[0,0.68889,0,0,0.61111],"8878":[0,0.68889,0,0,0.72222],"8879":[0,0.68889,0,0,0.72222],"8882":[0.03517,0.54986,0,0,0.77778],"8883":[0.03517,0.54986,0,0,0.77778],"8884":[0.13667,0.63667,0,0,0.77778],"8885":[0.13667,0.63667,0,0,0.77778],"8888":[0,0.54986,0,0,1.11111],"8890":[0.19444,0.43056,0,0,0.55556],"8891":[0.19444,0.69224,0,0,0.61111],"8892":[0.19444,0.69224,0,0,0.61111],"8901":[0,0.54986,0,0,0.27778],"8903":[0.08167,0.58167,0,0,0.77778],"8905":[0.08167,0.58167,0,0,0.77778],"8906":[0.08167,0.58167,0,0,0.77778],"8907":[0,0.69224,0,0,0.77778],"8908":[0,0.69224,0,0,0.77778],"8909":[-0.03598,0.46402,0,0,0.77778],"8910":[0,0.54986,0,0,0.76042],"8911":[0,0.54986,0,0,0.76042],"8912":[0.03517,0.54986,0,0,0.77778],"8913":[0.03517,0.54986,0,0,0.77778],"8914":[0,0.54986,0,0,0.66667],"8915":[0,0.54986,0,0,0.66667],"8916":[0,0.69224,0,0,0.66667],"8918":[0.0391,0.5391,0,0,0.77778],"8919":[0.0391,0.5391,0,0,0.77778],"8920":[0.03517,0.54986,0,0,1.33334],"8921":[0.03517,0.54986,0,0,1.33334],"8922":[0.38569,0.88569,0,0,0.77778],"8923":[0.38569,0.88569,0,0,0.77778],"8926":[0.13667,0.63667,0,0,0.77778],"8927":[0.13667,0.63667,0,0,0.77778],"8928":[0.30274,0.79383,0,0,0.77778],"8929":[0.30274,0.79383,0,0,0.77778],"8934":[0.23222,0.74111,0,0,0.77778],"8935":[0.23222,0.74111,0,0,0.77778],"8936":[0.23222,0.74111,0,0,0.77778],"8937":[0.23222,0.74111,0,0,0.77778],"8938":[0.20576,0.70576,0,0,0.77778],"8939":[0.20576,0.70576,0,0,0.77778],"8940":[0.30274,0.79383,0,0,0.77778],"8941":[0.30274,0.79383,0,0,0.77778],"8994":[0.19444,0.69224,0,0,0.77778],"8995":[0.19444,0.69224,0,0,0.77778],"9416":[0.15559,0.69224,0,0,0.90222],"9484":[0,0.69224,0,0,0.5],"9488":[0,0.69224,0,0,0.5],"9492":[0,0.37788,0,0,0.5],"9496":[0,0.37788,0,0,0.5],"9585":[0.19444,0.68889,0,0,0.88889],"9586":[0.19444,0.74111,0,0,0.88889],"9632":[0,0.675,0,0,0.77778],"9633":[0,0.675,0,0,0.77778],"9650":[0,0.54986,0,0,0.72222],"9651":[0,0.54986,0,0,0.72222],"9654":[0.03517,0.54986,0,0,0.77778],"9660":[0,0.54986,0,0,0.72222],"9661":[0,0.54986,0,0,0.72222],"9664":[0.03517,0.54986,0,0,0.77778],"9674":[0.11111,0.69224,0,0,0.66667],"9733":[0.19444,0.69224,0,0,0.94445],"10003":[0,0.69224,0,0,0.83334],"10016":[0,0.69224,0,0,0.83334],"10731":[0.11111,0.69224,0,0,0.66667],"10846":[0.19444,0.75583,0,0,0.61111],"10877":[0.13667,0.63667,0,0,0.77778],"10878":[0.13667,0.63667,0,0,0.77778],"10885":[0.25583,0.75583,0,0,0.77778],"10886":[0.25583,0.75583,0,0,0.77778],"10887":[0.13597,0.63597,0,0,0.77778],"10888":[0.13597,0.63597,0,0,0.77778],"10889":[0.26167,0.75726,0,0,0.77778],"10890":[0.26167,0.75726,0,0,0.77778],"10891":[0.48256,0.98256,0,0,0.77778],"10892":[0.48256,0.98256,0,0,0.77778],"10901":[0.13667,0.63667,0,0,0.77778],"10902":[0.13667,0.63667,0,0,0.77778],"10933":[0.25142,0.75726,0,0,0.77778],"10934":[0.25142,0.75726,0,0,0.77778],"10935":[0.26167,0.75726,0,0,0.77778],"10936":[0.26167,0.75726,0,0,0.77778],"10937":[0.26167,0.75726,0,0,0.77778],"10938":[0.26167,0.75726,0,0,0.77778],"10949":[0.25583,0.75583,0,0,0.77778],"10950":[0.25583,0.75583,0,0,0.77778],"10955":[0.28481,0.79383,0,0,0.77778],"10956":[0.28481,0.79383,0,0,0.77778],"57350":[0.08167,0.58167,0,0,0.22222],"57351":[0.08167,0.58167,0,0,0.38889],"57352":[0.08167,0.58167,0,0,0.77778],"57353":[0,0.43056,0.04028,0,0.66667],"57356":[0.25142,0.75726,0,0,0.77778],"57357":[0.25142,0.75726,0,0,0.77778],"57358":[0.41951,0.91951,0,0,0.77778],"57359":[0.30274,0.79383,0,0,0.77778],"57360":[0.30274,0.79383,0,0,0.77778],"57361":[0.41951,0.91951,0,0,0.77778],"57366":[0.25142,0.75726,0,0,0.77778],"57367":[0.25142,0.75726,0,0,0.77778],"57368":[0.25142,0.75726,0,0,0.77778],"57369":[0.25142,0.75726,0,0,0.77778],"57370":[0.13597,0.63597,0,0,0.77778],"57371":[0.13597,0.63597,0,0,0.77778]},"Caligraphic-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.68333,0,0.19445,0.79847],"66":[0,0.68333,0.03041,0.13889,0.65681],"67":[0,0.68333,0.05834,0.13889,0.52653],"68":[0,0.68333,0.02778,0.08334,0.77139],"69":[0,0.68333,0.08944,0.11111,0.52778],"70":[0,0.68333,0.09931,0.11111,0.71875],"71":[0.09722,0.68333,0.0593,0.11111,0.59487],"72":[0,0.68333,0.00965,0.11111,0.84452],"73":[0,0.68333,0.07382,0,0.54452],"74":[0.09722,0.68333,0.18472,0.16667,0.67778],"75":[0,0.68333,0.01445,0.05556,0.76195],"76":[0,0.68333,0,0.13889,0.68972],"77":[0,0.68333,0,0.13889,1.2009],"78":[0,0.68333,0.14736,0.08334,0.82049],"79":[0,0.68333,0.02778,0.11111,0.79611],"80":[0,0.68333,0.08222,0.08334,0.69556],"81":[0.09722,0.68333,0,0.11111,0.81667],"82":[0,0.68333,0,0.08334,0.8475],"83":[0,0.68333,0.075,0.13889,0.60556],"84":[0,0.68333,0.25417,0,0.54464],"85":[0,0.68333,0.09931,0.08334,0.62583],"86":[0,0.68333,0.08222,0,0.61278],"87":[0,0.68333,0.08222,0.08334,0.98778],"88":[0,0.68333,0.14643,0.13889,0.7133],"89":[0.09722,0.68333,0.08222,0.08334,0.66834],"90":[0,0.68333,0.07944,0.13889,0.72473],"160":[0,0,0,0,0.25]},"Fraktur-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69141,0,0,0.29574],"34":[0,0.69141,0,0,0.21471],"38":[0,0.69141,0,0,0.73786],"39":[0,0.69141,0,0,0.21201],"40":[0.24982,0.74947,0,0,0.38865],"41":[0.24982,0.74947,0,0,0.38865],"42":[0,0.62119,0,0,0.27764],"43":[0.08319,0.58283,0,0,0.75623],"44":[0,0.10803,0,0,0.27764],"45":[0.08319,0.58283,0,0,0.75623],"46":[0,0.10803,0,0,0.27764],"47":[0.24982,0.74947,0,0,0.50181],"48":[0,0.47534,0,0,0.50181],"49":[0,0.47534,0,0,0.50181],"50":[0,0.47534,0,0,0.50181],"51":[0.18906,0.47534,0,0,0.50181],"52":[0.18906,0.47534,0,0,0.50181],"53":[0.18906,0.47534,0,0,0.50181],"54":[0,0.69141,0,0,0.50181],"55":[0.18906,0.47534,0,0,0.50181],"56":[0,0.69141,0,0,0.50181],"57":[0.18906,0.47534,0,0,0.50181],"58":[0,0.47534,0,0,0.21606],"59":[0.12604,0.47534,0,0,0.21606],"61":[-0.13099,0.36866,0,0,0.75623],"63":[0,0.69141,0,0,0.36245],"65":[0,0.69141,0,0,0.7176],"66":[0,0.69141,0,0,0.88397],"67":[0,0.69141,0,0,0.61254],"68":[0,0.69141,0,0,0.83158],"69":[0,0.69141,0,0,0.66278],"70":[0.12604,0.69141,0,0,0.61119],"71":[0,0.69141,0,0,0.78539],"72":[0.06302,0.69141,0,0,0.7203],"73":[0,0.69141,0,0,0.55448],"74":[0.12604,0.69141,0,0,0.55231],"75":[0,0.69141,0,0,0.66845],"76":[0,0.69141,0,0,0.66602],"77":[0,0.69141,0,0,1.04953],"78":[0,0.69141,0,0,0.83212],"79":[0,0.69141,0,0,0.82699],"80":[0.18906,0.69141,0,0,0.82753],"81":[0.03781,0.69141,0,0,0.82699],"82":[0,0.69141,0,0,0.82807],"83":[0,0.69141,0,0,0.82861],"84":[0,0.69141,0,0,0.66899],"85":[0,0.69141,0,0,0.64576],"86":[0,0.69141,0,0,0.83131],"87":[0,0.69141,0,0,1.04602],"88":[0,0.69141,0,0,0.71922],"89":[0.18906,0.69141,0,0,0.83293],"90":[0.12604,0.69141,0,0,0.60201],"91":[0.24982,0.74947,0,0,0.27764],"93":[0.24982,0.74947,0,0,0.27764],"94":[0,0.69141,0,0,0.49965],"97":[0,0.47534,0,0,0.50046],"98":[0,0.69141,0,0,0.51315],"99":[0,0.47534,0,0,0.38946],"100":[0,0.62119,0,0,0.49857],"101":[0,0.47534,0,0,0.40053],"102":[0.18906,0.69141,0,0,0.32626],"103":[0.18906,0.47534,0,0,0.5037],"104":[0.18906,0.69141,0,0,0.52126],"105":[0,0.69141,0,0,0.27899],"106":[0,0.69141,0,0,0.28088],"107":[0,0.69141,0,0,0.38946],"108":[0,0.69141,0,0,0.27953],"109":[0,0.47534,0,0,0.76676],"110":[0,0.47534,0,0,0.52666],"111":[0,0.47534,0,0,0.48885],"112":[0.18906,0.52396,0,0,0.50046],"113":[0.18906,0.47534,0,0,0.48912],"114":[0,0.47534,0,0,0.38919],"115":[0,0.47534,0,0,0.44266],"116":[0,0.62119,0,0,0.33301],"117":[0,0.47534,0,0,0.5172],"118":[0,0.52396,0,0,0.5118],"119":[0,0.52396,0,0,0.77351],"120":[0.18906,0.47534,0,0,0.38865],"121":[0.18906,0.47534,0,0,0.49884],"122":[0.18906,0.47534,0,0,0.39054],"160":[0,0,0,0,0.25],"8216":[0,0.69141,0,0,0.21471],"8217":[0,0.69141,0,0,0.21471],"58112":[0,0.62119,0,0,0.49749],"58113":[0,0.62119,0,0,0.4983],"58114":[0.18906,0.69141,0,0,0.33328],"58115":[0.18906,0.69141,0,0,0.32923],"58116":[0.18906,0.47534,0,0,0.50343],"58117":[0,0.69141,0,0,0.33301],"58118":[0,0.62119,0,0,0.33409],"58119":[0,0.47534,0,0,0.50073]},"Main-Bold":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.35],"34":[0,0.69444,0,0,0.60278],"35":[0.19444,0.69444,0,0,0.95833],"36":[0.05556,0.75,0,0,0.575],"37":[0.05556,0.75,0,0,0.95833],"38":[0,0.69444,0,0,0.89444],"39":[0,0.69444,0,0,0.31944],"40":[0.25,0.75,0,0,0.44722],"41":[0.25,0.75,0,0,0.44722],"42":[0,0.75,0,0,0.575],"43":[0.13333,0.63333,0,0,0.89444],"44":[0.19444,0.15556,0,0,0.31944],"45":[0,0.44444,0,0,0.38333],"46":[0,0.15556,0,0,0.31944],"47":[0.25,0.75,0,0,0.575],"48":[0,0.64444,0,0,0.575],"49":[0,0.64444,0,0,0.575],"50":[0,0.64444,0,0,0.575],"51":[0,0.64444,0,0,0.575],"52":[0,0.64444,0,0,0.575],"53":[0,0.64444,0,0,0.575],"54":[0,0.64444,0,0,0.575],"55":[0,0.64444,0,0,0.575],"56":[0,0.64444,0,0,0.575],"57":[0,0.64444,0,0,0.575],"58":[0,0.44444,0,0,0.31944],"59":[0.19444,0.44444,0,0,0.31944],"60":[0.08556,0.58556,0,0,0.89444],"61":[-0.10889,0.39111,0,0,0.89444],"62":[0.08556,0.58556,0,0,0.89444],"63":[0,0.69444,0,0,0.54305],"64":[0,0.69444,0,0,0.89444],"65":[0,0.68611,0,0,0.86944],"66":[0,0.68611,0,0,0.81805],"67":[0,0.68611,0,0,0.83055],"68":[0,0.68611,0,0,0.88194],"69":[0,0.68611,0,0,0.75555],"70":[0,0.68611,0,0,0.72361],"71":[0,0.68611,0,0,0.90416],"72":[0,0.68611,0,0,0.9],"73":[0,0.68611,0,0,0.43611],"74":[0,0.68611,0,0,0.59444],"75":[0,0.68611,0,0,0.90138],"76":[0,0.68611,0,0,0.69166],"77":[0,0.68611,0,0,1.09166],"78":[0,0.68611,0,0,0.9],"79":[0,0.68611,0,0,0.86388],"80":[0,0.68611,0,0,0.78611],"81":[0.19444,0.68611,0,0,0.86388],"82":[0,0.68611,0,0,0.8625],"83":[0,0.68611,0,0,0.63889],"84":[0,0.68611,0,0,0.8],"85":[0,0.68611,0,0,0.88472],"86":[0,0.68611,0.01597,0,0.86944],"87":[0,0.68611,0.01597,0,1.18888],"88":[0,0.68611,0,0,0.86944],"89":[0,0.68611,0.02875,0,0.86944],"90":[0,0.68611,0,0,0.70277],"91":[0.25,0.75,0,0,0.31944],"92":[0.25,0.75,0,0,0.575],"93":[0.25,0.75,0,0,0.31944],"94":[0,0.69444,0,0,0.575],"95":[0.31,0.13444,0.03194,0,0.575],"97":[0,0.44444,0,0,0.55902],"98":[0,0.69444,0,0,0.63889],"99":[0,0.44444,0,0,0.51111],"100":[0,0.69444,0,0,0.63889],"101":[0,0.44444,0,0,0.52708],"102":[0,0.69444,0.10903,0,0.35139],"103":[0.19444,0.44444,0.01597,0,0.575],"104":[0,0.69444,0,0,0.63889],"105":[0,0.69444,0,0,0.31944],"106":[0.19444,0.69444,0,0,0.35139],"107":[0,0.69444,0,0,0.60694],"108":[0,0.69444,0,0,0.31944],"109":[0,0.44444,0,0,0.95833],"110":[0,0.44444,0,0,0.63889],"111":[0,0.44444,0,0,0.575],"112":[0.19444,0.44444,0,0,0.63889],"113":[0.19444,0.44444,0,0,0.60694],"114":[0,0.44444,0,0,0.47361],"115":[0,0.44444,0,0,0.45361],"116":[0,0.63492,0,0,0.44722],"117":[0,0.44444,0,0,0.63889],"118":[0,0.44444,0.01597,0,0.60694],"119":[0,0.44444,0.01597,0,0.83055],"120":[0,0.44444,0,0,0.60694],"121":[0.19444,0.44444,0.01597,0,0.60694],"122":[0,0.44444,0,0,0.51111],"123":[0.25,0.75,0,0,0.575],"124":[0.25,0.75,0,0,0.31944],"125":[0.25,0.75,0,0,0.575],"126":[0.35,0.34444,0,0,0.575],"160":[0,0,0,0,0.25],"163":[0,0.69444,0,0,0.86853],"168":[0,0.69444,0,0,0.575],"172":[0,0.44444,0,0,0.76666],"176":[0,0.69444,0,0,0.86944],"177":[0.13333,0.63333,0,0,0.89444],"184":[0.17014,0,0,0,0.51111],"198":[0,0.68611,0,0,1.04166],"215":[0.13333,0.63333,0,0,0.89444],"216":[0.04861,0.73472,0,0,0.89444],"223":[0,0.69444,0,0,0.59722],"230":[0,0.44444,0,0,0.83055],"247":[0.13333,0.63333,0,0,0.89444],"248":[0.09722,0.54167,0,0,0.575],"305":[0,0.44444,0,0,0.31944],"338":[0,0.68611,0,0,1.16944],"339":[0,0.44444,0,0,0.89444],"567":[0.19444,0.44444,0,0,0.35139],"710":[0,0.69444,0,0,0.575],"711":[0,0.63194,0,0,0.575],"713":[0,0.59611,0,0,0.575],"714":[0,0.69444,0,0,0.575],"715":[0,0.69444,0,0,0.575],"728":[0,0.69444,0,0,0.575],"729":[0,0.69444,0,0,0.31944],"730":[0,0.69444,0,0,0.86944],"732":[0,0.69444,0,0,0.575],"733":[0,0.69444,0,0,0.575],"915":[0,0.68611,0,0,0.69166],"916":[0,0.68611,0,0,0.95833],"920":[0,0.68611,0,0,0.89444],"923":[0,0.68611,0,0,0.80555],"926":[0,0.68611,0,0,0.76666],"928":[0,0.68611,0,0,0.9],"931":[0,0.68611,0,0,0.83055],"933":[0,0.68611,0,0,0.89444],"934":[0,0.68611,0,0,0.83055],"936":[0,0.68611,0,0,0.89444],"937":[0,0.68611,0,0,0.83055],"8211":[0,0.44444,0.03194,0,0.575],"8212":[0,0.44444,0.03194,0,1.14999],"8216":[0,0.69444,0,0,0.31944],"8217":[0,0.69444,0,0,0.31944],"8220":[0,0.69444,0,0,0.60278],"8221":[0,0.69444,0,0,0.60278],"8224":[0.19444,0.69444,0,0,0.51111],"8225":[0.19444,0.69444,0,0,0.51111],"8242":[0,0.55556,0,0,0.34444],"8407":[0,0.72444,0.15486,0,0.575],"8463":[0,0.69444,0,0,0.66759],"8465":[0,0.69444,0,0,0.83055],"8467":[0,0.69444,0,0,0.47361],"8472":[0.19444,0.44444,0,0,0.74027],"8476":[0,0.69444,0,0,0.83055],"8501":[0,0.69444,0,0,0.70277],"8592":[-0.10889,0.39111,0,0,1.14999],"8593":[0.19444,0.69444,0,0,0.575],"8594":[-0.10889,0.39111,0,0,1.14999],"8595":[0.19444,0.69444,0,0,0.575],"8596":[-0.10889,0.39111,0,0,1.14999],"8597":[0.25,0.75,0,0,0.575],"8598":[0.19444,0.69444,0,0,1.14999],"8599":[0.19444,0.69444,0,0,1.14999],"8600":[0.19444,0.69444,0,0,1.14999],"8601":[0.19444,0.69444,0,0,1.14999],"8636":[-0.10889,0.39111,0,0,1.14999],"8637":[-0.10889,0.39111,0,0,1.14999],"8640":[-0.10889,0.39111,0,0,1.14999],"8641":[-0.10889,0.39111,0,0,1.14999],"8656":[-0.10889,0.39111,0,0,1.14999],"8657":[0.19444,0.69444,0,0,0.70277],"8658":[-0.10889,0.39111,0,0,1.14999],"8659":[0.19444,0.69444,0,0,0.70277],"8660":[-0.10889,0.39111,0,0,1.14999],"8661":[0.25,0.75,0,0,0.70277],"8704":[0,0.69444,0,0,0.63889],"8706":[0,0.69444,0.06389,0,0.62847],"8707":[0,0.69444,0,0,0.63889],"8709":[0.05556,0.75,0,0,0.575],"8711":[0,0.68611,0,0,0.95833],"8712":[0.08556,0.58556,0,0,0.76666],"8715":[0.08556,0.58556,0,0,0.76666],"8722":[0.13333,0.63333,0,0,0.89444],"8723":[0.13333,0.63333,0,0,0.89444],"8725":[0.25,0.75,0,0,0.575],"8726":[0.25,0.75,0,0,0.575],"8727":[-0.02778,0.47222,0,0,0.575],"8728":[-0.02639,0.47361,0,0,0.575],"8729":[-0.02639,0.47361,0,0,0.575],"8730":[0.18,0.82,0,0,0.95833],"8733":[0,0.44444,0,0,0.89444],"8734":[0,0.44444,0,0,1.14999],"8736":[0,0.69224,0,0,0.72222],"8739":[0.25,0.75,0,0,0.31944],"8741":[0.25,0.75,0,0,0.575],"8743":[0,0.55556,0,0,0.76666],"8744":[0,0.55556,0,0,0.76666],"8745":[0,0.55556,0,0,0.76666],"8746":[0,0.55556,0,0,0.76666],"8747":[0.19444,0.69444,0.12778,0,0.56875],"8764":[-0.10889,0.39111,0,0,0.89444],"8768":[0.19444,0.69444,0,0,0.31944],"8771":[0.00222,0.50222,0,0,0.89444],"8773":[0.027,0.638,0,0,0.894],"8776":[0.02444,0.52444,0,0,0.89444],"8781":[0.00222,0.50222,0,0,0.89444],"8801":[0.00222,0.50222,0,0,0.89444],"8804":[0.19667,0.69667,0,0,0.89444],"8805":[0.19667,0.69667,0,0,0.89444],"8810":[0.08556,0.58556,0,0,1.14999],"8811":[0.08556,0.58556,0,0,1.14999],"8826":[0.08556,0.58556,0,0,0.89444],"8827":[0.08556,0.58556,0,0,0.89444],"8834":[0.08556,0.58556,0,0,0.89444],"8835":[0.08556,0.58556,0,0,0.89444],"8838":[0.19667,0.69667,0,0,0.89444],"8839":[0.19667,0.69667,0,0,0.89444],"8846":[0,0.55556,0,0,0.76666],"8849":[0.19667,0.69667,0,0,0.89444],"8850":[0.19667,0.69667,0,0,0.89444],"8851":[0,0.55556,0,0,0.76666],"8852":[0,0.55556,0,0,0.76666],"8853":[0.13333,0.63333,0,0,0.89444],"8854":[0.13333,0.63333,0,0,0.89444],"8855":[0.13333,0.63333,0,0,0.89444],"8856":[0.13333,0.63333,0,0,0.89444],"8857":[0.13333,0.63333,0,0,0.89444],"8866":[0,0.69444,0,0,0.70277],"8867":[0,0.69444,0,0,0.70277],"8868":[0,0.69444,0,0,0.89444],"8869":[0,0.69444,0,0,0.89444],"8900":[-0.02639,0.47361,0,0,0.575],"8901":[-0.02639,0.47361,0,0,0.31944],"8902":[-0.02778,0.47222,0,0,0.575],"8968":[0.25,0.75,0,0,0.51111],"8969":[0.25,0.75,0,0,0.51111],"8970":[0.25,0.75,0,0,0.51111],"8971":[0.25,0.75,0,0,0.51111],"8994":[-0.13889,0.36111,0,0,1.14999],"8995":[-0.13889,0.36111,0,0,1.14999],"9651":[0.19444,0.69444,0,0,1.02222],"9657":[-0.02778,0.47222,0,0,0.575],"9661":[0.19444,0.69444,0,0,1.02222],"9667":[-0.02778,0.47222,0,0,0.575],"9711":[0.19444,0.69444,0,0,1.14999],"9824":[0.12963,0.69444,0,0,0.89444],"9825":[0.12963,0.69444,0,0,0.89444],"9826":[0.12963,0.69444,0,0,0.89444],"9827":[0.12963,0.69444,0,0,0.89444],"9837":[0,0.75,0,0,0.44722],"9838":[0.19444,0.69444,0,0,0.44722],"9839":[0.19444,0.69444,0,0,0.44722],"10216":[0.25,0.75,0,0,0.44722],"10217":[0.25,0.75,0,0,0.44722],"10815":[0,0.68611,0,0,0.9],"10927":[0.19667,0.69667,0,0,0.89444],"10928":[0.19667,0.69667,0,0,0.89444],"57376":[0.19444,0.69444,0,0,0]},"Main-BoldItalic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.11417,0,0.38611],"34":[0,0.69444,0.07939,0,0.62055],"35":[0.19444,0.69444,0.06833,0,0.94444],"37":[0.05556,0.75,0.12861,0,0.94444],"38":[0,0.69444,0.08528,0,0.88555],"39":[0,0.69444,0.12945,0,0.35555],"40":[0.25,0.75,0.15806,0,0.47333],"41":[0.25,0.75,0.03306,0,0.47333],"42":[0,0.75,0.14333,0,0.59111],"43":[0.10333,0.60333,0.03306,0,0.88555],"44":[0.19444,0.14722,0,0,0.35555],"45":[0,0.44444,0.02611,0,0.41444],"46":[0,0.14722,0,0,0.35555],"47":[0.25,0.75,0.15806,0,0.59111],"48":[0,0.64444,0.13167,0,0.59111],"49":[0,0.64444,0.13167,0,0.59111],"50":[0,0.64444,0.13167,0,0.59111],"51":[0,0.64444,0.13167,0,0.59111],"52":[0.19444,0.64444,0.13167,0,0.59111],"53":[0,0.64444,0.13167,0,0.59111],"54":[0,0.64444,0.13167,0,0.59111],"55":[0.19444,0.64444,0.13167,0,0.59111],"56":[0,0.64444,0.13167,0,0.59111],"57":[0,0.64444,0.13167,0,0.59111],"58":[0,0.44444,0.06695,0,0.35555],"59":[0.19444,0.44444,0.06695,0,0.35555],"61":[-0.10889,0.39111,0.06833,0,0.88555],"63":[0,0.69444,0.11472,0,0.59111],"64":[0,0.69444,0.09208,0,0.88555],"65":[0,0.68611,0,0,0.86555],"66":[0,0.68611,0.0992,0,0.81666],"67":[0,0.68611,0.14208,0,0.82666],"68":[0,0.68611,0.09062,0,0.87555],"69":[0,0.68611,0.11431,0,0.75666],"70":[0,0.68611,0.12903,0,0.72722],"71":[0,0.68611,0.07347,0,0.89527],"72":[0,0.68611,0.17208,0,0.8961],"73":[0,0.68611,0.15681,0,0.47166],"74":[0,0.68611,0.145,0,0.61055],"75":[0,0.68611,0.14208,0,0.89499],"76":[0,0.68611,0,0,0.69777],"77":[0,0.68611,0.17208,0,1.07277],"78":[0,0.68611,0.17208,0,0.8961],"79":[0,0.68611,0.09062,0,0.85499],"80":[0,0.68611,0.0992,0,0.78721],"81":[0.19444,0.68611,0.09062,0,0.85499],"82":[0,0.68611,0.02559,0,0.85944],"83":[0,0.68611,0.11264,0,0.64999],"84":[0,0.68611,0.12903,0,0.7961],"85":[0,0.68611,0.17208,0,0.88083],"86":[0,0.68611,0.18625,0,0.86555],"87":[0,0.68611,0.18625,0,1.15999],"88":[0,0.68611,0.15681,0,0.86555],"89":[0,0.68611,0.19803,0,0.86555],"90":[0,0.68611,0.14208,0,0.70888],"91":[0.25,0.75,0.1875,0,0.35611],"93":[0.25,0.75,0.09972,0,0.35611],"94":[0,0.69444,0.06709,0,0.59111],"95":[0.31,0.13444,0.09811,0,0.59111],"97":[0,0.44444,0.09426,0,0.59111],"98":[0,0.69444,0.07861,0,0.53222],"99":[0,0.44444,0.05222,0,0.53222],"100":[0,0.69444,0.10861,0,0.59111],"101":[0,0.44444,0.085,0,0.53222],"102":[0.19444,0.69444,0.21778,0,0.4],"103":[0.19444,0.44444,0.105,0,0.53222],"104":[0,0.69444,0.09426,0,0.59111],"105":[0,0.69326,0.11387,0,0.35555],"106":[0.19444,0.69326,0.1672,0,0.35555],"107":[0,0.69444,0.11111,0,0.53222],"108":[0,0.69444,0.10861,0,0.29666],"109":[0,0.44444,0.09426,0,0.94444],"110":[0,0.44444,0.09426,0,0.64999],"111":[0,0.44444,0.07861,0,0.59111],"112":[0.19444,0.44444,0.07861,0,0.59111],"113":[0.19444,0.44444,0.105,0,0.53222],"114":[0,0.44444,0.11111,0,0.50167],"115":[0,0.44444,0.08167,0,0.48694],"116":[0,0.63492,0.09639,0,0.385],"117":[0,0.44444,0.09426,0,0.62055],"118":[0,0.44444,0.11111,0,0.53222],"119":[0,0.44444,0.11111,0,0.76777],"120":[0,0.44444,0.12583,0,0.56055],"121":[0.19444,0.44444,0.105,0,0.56166],"122":[0,0.44444,0.13889,0,0.49055],"126":[0.35,0.34444,0.11472,0,0.59111],"160":[0,0,0,0,0.25],"168":[0,0.69444,0.11473,0,0.59111],"176":[0,0.69444,0,0,0.94888],"184":[0.17014,0,0,0,0.53222],"198":[0,0.68611,0.11431,0,1.02277],"216":[0.04861,0.73472,0.09062,0,0.88555],"223":[0.19444,0.69444,0.09736,0,0.665],"230":[0,0.44444,0.085,0,0.82666],"248":[0.09722,0.54167,0.09458,0,0.59111],"305":[0,0.44444,0.09426,0,0.35555],"338":[0,0.68611,0.11431,0,1.14054],"339":[0,0.44444,0.085,0,0.82666],"567":[0.19444,0.44444,0.04611,0,0.385],"710":[0,0.69444,0.06709,0,0.59111],"711":[0,0.63194,0.08271,0,0.59111],"713":[0,0.59444,0.10444,0,0.59111],"714":[0,0.69444,0.08528,0,0.59111],"715":[0,0.69444,0,0,0.59111],"728":[0,0.69444,0.10333,0,0.59111],"729":[0,0.69444,0.12945,0,0.35555],"730":[0,0.69444,0,0,0.94888],"732":[0,0.69444,0.11472,0,0.59111],"733":[0,0.69444,0.11472,0,0.59111],"915":[0,0.68611,0.12903,0,0.69777],"916":[0,0.68611,0,0,0.94444],"920":[0,0.68611,0.09062,0,0.88555],"923":[0,0.68611,0,0,0.80666],"926":[0,0.68611,0.15092,0,0.76777],"928":[0,0.68611,0.17208,0,0.8961],"931":[0,0.68611,0.11431,0,0.82666],"933":[0,0.68611,0.10778,0,0.88555],"934":[0,0.68611,0.05632,0,0.82666],"936":[0,0.68611,0.10778,0,0.88555],"937":[0,0.68611,0.0992,0,0.82666],"8211":[0,0.44444,0.09811,0,0.59111],"8212":[0,0.44444,0.09811,0,1.18221],"8216":[0,0.69444,0.12945,0,0.35555],"8217":[0,0.69444,0.12945,0,0.35555],"8220":[0,0.69444,0.16772,0,0.62055],"8221":[0,0.69444,0.07939,0,0.62055]},"Main-Italic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.12417,0,0.30667],"34":[0,0.69444,0.06961,0,0.51444],"35":[0.19444,0.69444,0.06616,0,0.81777],"37":[0.05556,0.75,0.13639,0,0.81777],"38":[0,0.69444,0.09694,0,0.76666],"39":[0,0.69444,0.12417,0,0.30667],"40":[0.25,0.75,0.16194,0,0.40889],"41":[0.25,0.75,0.03694,0,0.40889],"42":[0,0.75,0.14917,0,0.51111],"43":[0.05667,0.56167,0.03694,0,0.76666],"44":[0.19444,0.10556,0,0,0.30667],"45":[0,0.43056,0.02826,0,0.35778],"46":[0,0.10556,0,0,0.30667],"47":[0.25,0.75,0.16194,0,0.51111],"48":[0,0.64444,0.13556,0,0.51111],"49":[0,0.64444,0.13556,0,0.51111],"50":[0,0.64444,0.13556,0,0.51111],"51":[0,0.64444,0.13556,0,0.51111],"52":[0.19444,0.64444,0.13556,0,0.51111],"53":[0,0.64444,0.13556,0,0.51111],"54":[0,0.64444,0.13556,0,0.51111],"55":[0.19444,0.64444,0.13556,0,0.51111],"56":[0,0.64444,0.13556,0,0.51111],"57":[0,0.64444,0.13556,0,0.51111],"58":[0,0.43056,0.0582,0,0.30667],"59":[0.19444,0.43056,0.0582,0,0.30667],"61":[-0.13313,0.36687,0.06616,0,0.76666],"63":[0,0.69444,0.1225,0,0.51111],"64":[0,0.69444,0.09597,0,0.76666],"65":[0,0.68333,0,0,0.74333],"66":[0,0.68333,0.10257,0,0.70389],"67":[0,0.68333,0.14528,0,0.71555],"68":[0,0.68333,0.09403,0,0.755],"69":[0,0.68333,0.12028,0,0.67833],"70":[0,0.68333,0.13305,0,0.65277],"71":[0,0.68333,0.08722,0,0.77361],"72":[0,0.68333,0.16389,0,0.74333],"73":[0,0.68333,0.15806,0,0.38555],"74":[0,0.68333,0.14028,0,0.525],"75":[0,0.68333,0.14528,0,0.76888],"76":[0,0.68333,0,0,0.62722],"77":[0,0.68333,0.16389,0,0.89666],"78":[0,0.68333,0.16389,0,0.74333],"79":[0,0.68333,0.09403,0,0.76666],"80":[0,0.68333,0.10257,0,0.67833],"81":[0.19444,0.68333,0.09403,0,0.76666],"82":[0,0.68333,0.03868,0,0.72944],"83":[0,0.68333,0.11972,0,0.56222],"84":[0,0.68333,0.13305,0,0.71555],"85":[0,0.68333,0.16389,0,0.74333],"86":[0,0.68333,0.18361,0,0.74333],"87":[0,0.68333,0.18361,0,0.99888],"88":[0,0.68333,0.15806,0,0.74333],"89":[0,0.68333,0.19383,0,0.74333],"90":[0,0.68333,0.14528,0,0.61333],"91":[0.25,0.75,0.1875,0,0.30667],"93":[0.25,0.75,0.10528,0,0.30667],"94":[0,0.69444,0.06646,0,0.51111],"95":[0.31,0.12056,0.09208,0,0.51111],"97":[0,0.43056,0.07671,0,0.51111],"98":[0,0.69444,0.06312,0,0.46],"99":[0,0.43056,0.05653,0,0.46],"100":[0,0.69444,0.10333,0,0.51111],"101":[0,0.43056,0.07514,0,0.46],"102":[0.19444,0.69444,0.21194,0,0.30667],"103":[0.19444,0.43056,0.08847,0,0.46],"104":[0,0.69444,0.07671,0,0.51111],"105":[0,0.65536,0.1019,0,0.30667],"106":[0.19444,0.65536,0.14467,0,0.30667],"107":[0,0.69444,0.10764,0,0.46],"108":[0,0.69444,0.10333,0,0.25555],"109":[0,0.43056,0.07671,0,0.81777],"110":[0,0.43056,0.07671,0,0.56222],"111":[0,0.43056,0.06312,0,0.51111],"112":[0.19444,0.43056,0.06312,0,0.51111],"113":[0.19444,0.43056,0.08847,0,0.46],"114":[0,0.43056,0.10764,0,0.42166],"115":[0,0.43056,0.08208,0,0.40889],"116":[0,0.61508,0.09486,0,0.33222],"117":[0,0.43056,0.07671,0,0.53666],"118":[0,0.43056,0.10764,0,0.46],"119":[0,0.43056,0.10764,0,0.66444],"120":[0,0.43056,0.12042,0,0.46389],"121":[0.19444,0.43056,0.08847,0,0.48555],"122":[0,0.43056,0.12292,0,0.40889],"126":[0.35,0.31786,0.11585,0,0.51111],"160":[0,0,0,0,0.25],"168":[0,0.66786,0.10474,0,0.51111],"176":[0,0.69444,0,0,0.83129],"184":[0.17014,0,0,0,0.46],"198":[0,0.68333,0.12028,0,0.88277],"216":[0.04861,0.73194,0.09403,0,0.76666],"223":[0.19444,0.69444,0.10514,0,0.53666],"230":[0,0.43056,0.07514,0,0.71555],"248":[0.09722,0.52778,0.09194,0,0.51111],"338":[0,0.68333,0.12028,0,0.98499],"339":[0,0.43056,0.07514,0,0.71555],"710":[0,0.69444,0.06646,0,0.51111],"711":[0,0.62847,0.08295,0,0.51111],"713":[0,0.56167,0.10333,0,0.51111],"714":[0,0.69444,0.09694,0,0.51111],"715":[0,0.69444,0,0,0.51111],"728":[0,0.69444,0.10806,0,0.51111],"729":[0,0.66786,0.11752,0,0.30667],"730":[0,0.69444,0,0,0.83129],"732":[0,0.66786,0.11585,0,0.51111],"733":[0,0.69444,0.1225,0,0.51111],"915":[0,0.68333,0.13305,0,0.62722],"916":[0,0.68333,0,0,0.81777],"920":[0,0.68333,0.09403,0,0.76666],"923":[0,0.68333,0,0,0.69222],"926":[0,0.68333,0.15294,0,0.66444],"928":[0,0.68333,0.16389,0,0.74333],"931":[0,0.68333,0.12028,0,0.71555],"933":[0,0.68333,0.11111,0,0.76666],"934":[0,0.68333,0.05986,0,0.71555],"936":[0,0.68333,0.11111,0,0.76666],"937":[0,0.68333,0.10257,0,0.71555],"8211":[0,0.43056,0.09208,0,0.51111],"8212":[0,0.43056,0.09208,0,1.02222],"8216":[0,0.69444,0.12417,0,0.30667],"8217":[0,0.69444,0.12417,0,0.30667],"8220":[0,0.69444,0.1685,0,0.51444],"8221":[0,0.69444,0.06961,0,0.51444],"8463":[0,0.68889,0,0,0.54028]},"Main-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.27778],"34":[0,0.69444,0,0,0.5],"35":[0.19444,0.69444,0,0,0.83334],"36":[0.05556,0.75,0,0,0.5],"37":[0.05556,0.75,0,0,0.83334],"38":[0,0.69444,0,0,0.77778],"39":[0,0.69444,0,0,0.27778],"40":[0.25,0.75,0,0,0.38889],"41":[0.25,0.75,0,0,0.38889],"42":[0,0.75,0,0,0.5],"43":[0.08333,0.58333,0,0,0.77778],"44":[0.19444,0.10556,0,0,0.27778],"45":[0,0.43056,0,0,0.33333],"46":[0,0.10556,0,0,0.27778],"47":[0.25,0.75,0,0,0.5],"48":[0,0.64444,0,0,0.5],"49":[0,0.64444,0,0,0.5],"50":[0,0.64444,0,0,0.5],"51":[0,0.64444,0,0,0.5],"52":[0,0.64444,0,0,0.5],"53":[0,0.64444,0,0,0.5],"54":[0,0.64444,0,0,0.5],"55":[0,0.64444,0,0,0.5],"56":[0,0.64444,0,0,0.5],"57":[0,0.64444,0,0,0.5],"58":[0,0.43056,0,0,0.27778],"59":[0.19444,0.43056,0,0,0.27778],"60":[0.0391,0.5391,0,0,0.77778],"61":[-0.13313,0.36687,0,0,0.77778],"62":[0.0391,0.5391,0,0,0.77778],"63":[0,0.69444,0,0,0.47222],"64":[0,0.69444,0,0,0.77778],"65":[0,0.68333,0,0,0.75],"66":[0,0.68333,0,0,0.70834],"67":[0,0.68333,0,0,0.72222],"68":[0,0.68333,0,0,0.76389],"69":[0,0.68333,0,0,0.68056],"70":[0,0.68333,0,0,0.65278],"71":[0,0.68333,0,0,0.78472],"72":[0,0.68333,0,0,0.75],"73":[0,0.68333,0,0,0.36111],"74":[0,0.68333,0,0,0.51389],"75":[0,0.68333,0,0,0.77778],"76":[0,0.68333,0,0,0.625],"77":[0,0.68333,0,0,0.91667],"78":[0,0.68333,0,0,0.75],"79":[0,0.68333,0,0,0.77778],"80":[0,0.68333,0,0,0.68056],"81":[0.19444,0.68333,0,0,0.77778],"82":[0,0.68333,0,0,0.73611],"83":[0,0.68333,0,0,0.55556],"84":[0,0.68333,0,0,0.72222],"85":[0,0.68333,0,0,0.75],"86":[0,0.68333,0.01389,0,0.75],"87":[0,0.68333,0.01389,0,1.02778],"88":[0,0.68333,0,0,0.75],"89":[0,0.68333,0.025,0,0.75],"90":[0,0.68333,0,0,0.61111],"91":[0.25,0.75,0,0,0.27778],"92":[0.25,0.75,0,0,0.5],"93":[0.25,0.75,0,0,0.27778],"94":[0,0.69444,0,0,0.5],"95":[0.31,0.12056,0.02778,0,0.5],"97":[0,0.43056,0,0,0.5],"98":[0,0.69444,0,0,0.55556],"99":[0,0.43056,0,0,0.44445],"100":[0,0.69444,0,0,0.55556],"101":[0,0.43056,0,0,0.44445],"102":[0,0.69444,0.07778,0,0.30556],"103":[0.19444,0.43056,0.01389,0,0.5],"104":[0,0.69444,0,0,0.55556],"105":[0,0.66786,0,0,0.27778],"106":[0.19444,0.66786,0,0,0.30556],"107":[0,0.69444,0,0,0.52778],"108":[0,0.69444,0,0,0.27778],"109":[0,0.43056,0,0,0.83334],"110":[0,0.43056,0,0,0.55556],"111":[0,0.43056,0,0,0.5],"112":[0.19444,0.43056,0,0,0.55556],"113":[0.19444,0.43056,0,0,0.52778],"114":[0,0.43056,0,0,0.39167],"115":[0,0.43056,0,0,0.39445],"116":[0,0.61508,0,0,0.38889],"117":[0,0.43056,0,0,0.55556],"118":[0,0.43056,0.01389,0,0.52778],"119":[0,0.43056,0.01389,0,0.72222],"120":[0,0.43056,0,0,0.52778],"121":[0.19444,0.43056,0.01389,0,0.52778],"122":[0,0.43056,0,0,0.44445],"123":[0.25,0.75,0,0,0.5],"124":[0.25,0.75,0,0,0.27778],"125":[0.25,0.75,0,0,0.5],"126":[0.35,0.31786,0,0,0.5],"160":[0,0,0,0,0.25],"163":[0,0.69444,0,0,0.76909],"167":[0.19444,0.69444,0,0,0.44445],"168":[0,0.66786,0,0,0.5],"172":[0,0.43056,0,0,0.66667],"176":[0,0.69444,0,0,0.75],"177":[0.08333,0.58333,0,0,0.77778],"182":[0.19444,0.69444,0,0,0.61111],"184":[0.17014,0,0,0,0.44445],"198":[0,0.68333,0,0,0.90278],"215":[0.08333,0.58333,0,0,0.77778],"216":[0.04861,0.73194,0,0,0.77778],"223":[0,0.69444,0,0,0.5],"230":[0,0.43056,0,0,0.72222],"247":[0.08333,0.58333,0,0,0.77778],"248":[0.09722,0.52778,0,0,0.5],"305":[0,0.43056,0,0,0.27778],"338":[0,0.68333,0,0,1.01389],"339":[0,0.43056,0,0,0.77778],"567":[0.19444,0.43056,0,0,0.30556],"710":[0,0.69444,0,0,0.5],"711":[0,0.62847,0,0,0.5],"713":[0,0.56778,0,0,0.5],"714":[0,0.69444,0,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0,0,0.5],"729":[0,0.66786,0,0,0.27778],"730":[0,0.69444,0,0,0.75],"732":[0,0.66786,0,0,0.5],"733":[0,0.69444,0,0,0.5],"915":[0,0.68333,0,0,0.625],"916":[0,0.68333,0,0,0.83334],"920":[0,0.68333,0,0,0.77778],"923":[0,0.68333,0,0,0.69445],"926":[0,0.68333,0,0,0.66667],"928":[0,0.68333,0,0,0.75],"931":[0,0.68333,0,0,0.72222],"933":[0,0.68333,0,0,0.77778],"934":[0,0.68333,0,0,0.72222],"936":[0,0.68333,0,0,0.77778],"937":[0,0.68333,0,0,0.72222],"8211":[0,0.43056,0.02778,0,0.5],"8212":[0,0.43056,0.02778,0,1],"8216":[0,0.69444,0,0,0.27778],"8217":[0,0.69444,0,0,0.27778],"8220":[0,0.69444,0,0,0.5],"8221":[0,0.69444,0,0,0.5],"8224":[0.19444,0.69444,0,0,0.44445],"8225":[0.19444,0.69444,0,0,0.44445],"8230":[0,0.123,0,0,1.172],"8242":[0,0.55556,0,0,0.275],"8407":[0,0.71444,0.15382,0,0.5],"8463":[0,0.68889,0,0,0.54028],"8465":[0,0.69444,0,0,0.72222],"8467":[0,0.69444,0,0.11111,0.41667],"8472":[0.19444,0.43056,0,0.11111,0.63646],"8476":[0,0.69444,0,0,0.72222],"8501":[0,0.69444,0,0,0.61111],"8592":[-0.13313,0.36687,0,0,1],"8593":[0.19444,0.69444,0,0,0.5],"8594":[-0.13313,0.36687,0,0,1],"8595":[0.19444,0.69444,0,0,0.5],"8596":[-0.13313,0.36687,0,0,1],"8597":[0.25,0.75,0,0,0.5],"8598":[0.19444,0.69444,0,0,1],"8599":[0.19444,0.69444,0,0,1],"8600":[0.19444,0.69444,0,0,1],"8601":[0.19444,0.69444,0,0,1],"8614":[0.011,0.511,0,0,1],"8617":[0.011,0.511,0,0,1.126],"8618":[0.011,0.511,0,0,1.126],"8636":[-0.13313,0.36687,0,0,1],"8637":[-0.13313,0.36687,0,0,1],"8640":[-0.13313,0.36687,0,0,1],"8641":[-0.13313,0.36687,0,0,1],"8652":[0.011,0.671,0,0,1],"8656":[-0.13313,0.36687,0,0,1],"8657":[0.19444,0.69444,0,0,0.61111],"8658":[-0.13313,0.36687,0,0,1],"8659":[0.19444,0.69444,0,0,0.61111],"8660":[-0.13313,0.36687,0,0,1],"8661":[0.25,0.75,0,0,0.61111],"8704":[0,0.69444,0,0,0.55556],"8706":[0,0.69444,0.05556,0.08334,0.5309],"8707":[0,0.69444,0,0,0.55556],"8709":[0.05556,0.75,0,0,0.5],"8711":[0,0.68333,0,0,0.83334],"8712":[0.0391,0.5391,0,0,0.66667],"8715":[0.0391,0.5391,0,0,0.66667],"8722":[0.08333,0.58333,0,0,0.77778],"8723":[0.08333,0.58333,0,0,0.77778],"8725":[0.25,0.75,0,0,0.5],"8726":[0.25,0.75,0,0,0.5],"8727":[-0.03472,0.46528,0,0,0.5],"8728":[-0.05555,0.44445,0,0,0.5],"8729":[-0.05555,0.44445,0,0,0.5],"8730":[0.2,0.8,0,0,0.83334],"8733":[0,0.43056,0,0,0.77778],"8734":[0,0.43056,0,0,1],"8736":[0,0.69224,0,0,0.72222],"8739":[0.25,0.75,0,0,0.27778],"8741":[0.25,0.75,0,0,0.5],"8743":[0,0.55556,0,0,0.66667],"8744":[0,0.55556,0,0,0.66667],"8745":[0,0.55556,0,0,0.66667],"8746":[0,0.55556,0,0,0.66667],"8747":[0.19444,0.69444,0.11111,0,0.41667],"8764":[-0.13313,0.36687,0,0,0.77778],"8768":[0.19444,0.69444,0,0,0.27778],"8771":[-0.03625,0.46375,0,0,0.77778],"8773":[-0.022,0.589,0,0,0.778],"8776":[-0.01688,0.48312,0,0,0.77778],"8781":[-0.03625,0.46375,0,0,0.77778],"8784":[-0.133,0.673,0,0,0.778],"8801":[-0.03625,0.46375,0,0,0.77778],"8804":[0.13597,0.63597,0,0,0.77778],"8805":[0.13597,0.63597,0,0,0.77778],"8810":[0.0391,0.5391,0,0,1],"8811":[0.0391,0.5391,0,0,1],"8826":[0.0391,0.5391,0,0,0.77778],"8827":[0.0391,0.5391,0,0,0.77778],"8834":[0.0391,0.5391,0,0,0.77778],"8835":[0.0391,0.5391,0,0,0.77778],"8838":[0.13597,0.63597,0,0,0.77778],"8839":[0.13597,0.63597,0,0,0.77778],"8846":[0,0.55556,0,0,0.66667],"8849":[0.13597,0.63597,0,0,0.77778],"8850":[0.13597,0.63597,0,0,0.77778],"8851":[0,0.55556,0,0,0.66667],"8852":[0,0.55556,0,0,0.66667],"8853":[0.08333,0.58333,0,0,0.77778],"8854":[0.08333,0.58333,0,0,0.77778],"8855":[0.08333,0.58333,0,0,0.77778],"8856":[0.08333,0.58333,0,0,0.77778],"8857":[0.08333,0.58333,0,0,0.77778],"8866":[0,0.69444,0,0,0.61111],"8867":[0,0.69444,0,0,0.61111],"8868":[0,0.69444,0,0,0.77778],"8869":[0,0.69444,0,0,0.77778],"8872":[0.249,0.75,0,0,0.867],"8900":[-0.05555,0.44445,0,0,0.5],"8901":[-0.05555,0.44445,0,0,0.27778],"8902":[-0.03472,0.46528,0,0,0.5],"8904":[0.005,0.505,0,0,0.9],"8942":[0.03,0.903,0,0,0.278],"8943":[-0.19,0.313,0,0,1.172],"8945":[-0.1,0.823,0,0,1.282],"8968":[0.25,0.75,0,0,0.44445],"8969":[0.25,0.75,0,0,0.44445],"8970":[0.25,0.75,0,0,0.44445],"8971":[0.25,0.75,0,0,0.44445],"8994":[-0.14236,0.35764,0,0,1],"8995":[-0.14236,0.35764,0,0,1],"9136":[0.244,0.744,0,0,0.412],"9137":[0.244,0.745,0,0,0.412],"9651":[0.19444,0.69444,0,0,0.88889],"9657":[-0.03472,0.46528,0,0,0.5],"9661":[0.19444,0.69444,0,0,0.88889],"9667":[-0.03472,0.46528,0,0,0.5],"9711":[0.19444,0.69444,0,0,1],"9824":[0.12963,0.69444,0,0,0.77778],"9825":[0.12963,0.69444,0,0,0.77778],"9826":[0.12963,0.69444,0,0,0.77778],"9827":[0.12963,0.69444,0,0,0.77778],"9837":[0,0.75,0,0,0.38889],"9838":[0.19444,0.69444,0,0,0.38889],"9839":[0.19444,0.69444,0,0,0.38889],"10216":[0.25,0.75,0,0,0.38889],"10217":[0.25,0.75,0,0,0.38889],"10222":[0.244,0.744,0,0,0.412],"10223":[0.244,0.745,0,0,0.412],"10229":[0.011,0.511,0,0,1.609],"10230":[0.011,0.511,0,0,1.638],"10231":[0.011,0.511,0,0,1.859],"10232":[0.024,0.525,0,0,1.609],"10233":[0.024,0.525,0,0,1.638],"10234":[0.024,0.525,0,0,1.858],"10236":[0.011,0.511,0,0,1.638],"10815":[0,0.68333,0,0,0.75],"10927":[0.13597,0.63597,0,0,0.77778],"10928":[0.13597,0.63597,0,0,0.77778],"57376":[0.19444,0.69444,0,0,0]},"Math-BoldItalic":{"32":[0,0,0,0,0.25],"48":[0,0.44444,0,0,0.575],"49":[0,0.44444,0,0,0.575],"50":[0,0.44444,0,0,0.575],"51":[0.19444,0.44444,0,0,0.575],"52":[0.19444,0.44444,0,0,0.575],"53":[0.19444,0.44444,0,0,0.575],"54":[0,0.64444,0,0,0.575],"55":[0.19444,0.44444,0,0,0.575],"56":[0,0.64444,0,0,0.575],"57":[0.19444,0.44444,0,0,0.575],"65":[0,0.68611,0,0,0.86944],"66":[0,0.68611,0.04835,0,0.8664],"67":[0,0.68611,0.06979,0,0.81694],"68":[0,0.68611,0.03194,0,0.93812],"69":[0,0.68611,0.05451,0,0.81007],"70":[0,0.68611,0.15972,0,0.68889],"71":[0,0.68611,0,0,0.88673],"72":[0,0.68611,0.08229,0,0.98229],"73":[0,0.68611,0.07778,0,0.51111],"74":[0,0.68611,0.10069,0,0.63125],"75":[0,0.68611,0.06979,0,0.97118],"76":[0,0.68611,0,0,0.75555],"77":[0,0.68611,0.11424,0,1.14201],"78":[0,0.68611,0.11424,0,0.95034],"79":[0,0.68611,0.03194,0,0.83666],"80":[0,0.68611,0.15972,0,0.72309],"81":[0.19444,0.68611,0,0,0.86861],"82":[0,0.68611,0.00421,0,0.87235],"83":[0,0.68611,0.05382,0,0.69271],"84":[0,0.68611,0.15972,0,0.63663],"85":[0,0.68611,0.11424,0,0.80027],"86":[0,0.68611,0.25555,0,0.67778],"87":[0,0.68611,0.15972,0,1.09305],"88":[0,0.68611,0.07778,0,0.94722],"89":[0,0.68611,0.25555,0,0.67458],"90":[0,0.68611,0.06979,0,0.77257],"97":[0,0.44444,0,0,0.63287],"98":[0,0.69444,0,0,0.52083],"99":[0,0.44444,0,0,0.51342],"100":[0,0.69444,0,0,0.60972],"101":[0,0.44444,0,0,0.55361],"102":[0.19444,0.69444,0.11042,0,0.56806],"103":[0.19444,0.44444,0.03704,0,0.5449],"104":[0,0.69444,0,0,0.66759],"105":[0,0.69326,0,0,0.4048],"106":[0.19444,0.69326,0.0622,0,0.47083],"107":[0,0.69444,0.01852,0,0.6037],"108":[0,0.69444,0.0088,0,0.34815],"109":[0,0.44444,0,0,1.0324],"110":[0,0.44444,0,0,0.71296],"111":[0,0.44444,0,0,0.58472],"112":[0.19444,0.44444,0,0,0.60092],"113":[0.19444,0.44444,0.03704,0,0.54213],"114":[0,0.44444,0.03194,0,0.5287],"115":[0,0.44444,0,0,0.53125],"116":[0,0.63492,0,0,0.41528],"117":[0,0.44444,0,0,0.68102],"118":[0,0.44444,0.03704,0,0.56666],"119":[0,0.44444,0.02778,0,0.83148],"120":[0,0.44444,0,0,0.65903],"121":[0.19444,0.44444,0.03704,0,0.59028],"122":[0,0.44444,0.04213,0,0.55509],"160":[0,0,0,0,0.25],"915":[0,0.68611,0.15972,0,0.65694],"916":[0,0.68611,0,0,0.95833],"920":[0,0.68611,0.03194,0,0.86722],"923":[0,0.68611,0,0,0.80555],"926":[0,0.68611,0.07458,0,0.84125],"928":[0,0.68611,0.08229,0,0.98229],"931":[0,0.68611,0.05451,0,0.88507],"933":[0,0.68611,0.15972,0,0.67083],"934":[0,0.68611,0,0,0.76666],"936":[0,0.68611,0.11653,0,0.71402],"937":[0,0.68611,0.04835,0,0.8789],"945":[0,0.44444,0,0,0.76064],"946":[0.19444,0.69444,0.03403,0,0.65972],"947":[0.19444,0.44444,0.06389,0,0.59003],"948":[0,0.69444,0.03819,0,0.52222],"949":[0,0.44444,0,0,0.52882],"950":[0.19444,0.69444,0.06215,0,0.50833],"951":[0.19444,0.44444,0.03704,0,0.6],"952":[0,0.69444,0.03194,0,0.5618],"953":[0,0.44444,0,0,0.41204],"954":[0,0.44444,0,0,0.66759],"955":[0,0.69444,0,0,0.67083],"956":[0.19444,0.44444,0,0,0.70787],"957":[0,0.44444,0.06898,0,0.57685],"958":[0.19444,0.69444,0.03021,0,0.50833],"959":[0,0.44444,0,0,0.58472],"960":[0,0.44444,0.03704,0,0.68241],"961":[0.19444,0.44444,0,0,0.6118],"962":[0.09722,0.44444,0.07917,0,0.42361],"963":[0,0.44444,0.03704,0,0.68588],"964":[0,0.44444,0.13472,0,0.52083],"965":[0,0.44444,0.03704,0,0.63055],"966":[0.19444,0.44444,0,0,0.74722],"967":[0.19444,0.44444,0,0,0.71805],"968":[0.19444,0.69444,0.03704,0,0.75833],"969":[0,0.44444,0.03704,0,0.71782],"977":[0,0.69444,0,0,0.69155],"981":[0.19444,0.69444,0,0,0.7125],"982":[0,0.44444,0.03194,0,0.975],"1009":[0.19444,0.44444,0,0,0.6118],"1013":[0,0.44444,0,0,0.48333],"57649":[0,0.44444,0,0,0.39352],"57911":[0.19444,0.44444,0,0,0.43889]},"Math-Italic":{"32":[0,0,0,0,0.25],"48":[0,0.43056,0,0,0.5],"49":[0,0.43056,0,0,0.5],"50":[0,0.43056,0,0,0.5],"51":[0.19444,0.43056,0,0,0.5],"52":[0.19444,0.43056,0,0,0.5],"53":[0.19444,0.43056,0,0,0.5],"54":[0,0.64444,0,0,0.5],"55":[0.19444,0.43056,0,0,0.5],"56":[0,0.64444,0,0,0.5],"57":[0.19444,0.43056,0,0,0.5],"65":[0,0.68333,0,0.13889,0.75],"66":[0,0.68333,0.05017,0.08334,0.75851],"67":[0,0.68333,0.07153,0.08334,0.71472],"68":[0,0.68333,0.02778,0.05556,0.82792],"69":[0,0.68333,0.05764,0.08334,0.7382],"70":[0,0.68333,0.13889,0.08334,0.64306],"71":[0,0.68333,0,0.08334,0.78625],"72":[0,0.68333,0.08125,0.05556,0.83125],"73":[0,0.68333,0.07847,0.11111,0.43958],"74":[0,0.68333,0.09618,0.16667,0.55451],"75":[0,0.68333,0.07153,0.05556,0.84931],"76":[0,0.68333,0,0.02778,0.68056],"77":[0,0.68333,0.10903,0.08334,0.97014],"78":[0,0.68333,0.10903,0.08334,0.80347],"79":[0,0.68333,0.02778,0.08334,0.76278],"80":[0,0.68333,0.13889,0.08334,0.64201],"81":[0.19444,0.68333,0,0.08334,0.79056],"82":[0,0.68333,0.00773,0.08334,0.75929],"83":[0,0.68333,0.05764,0.08334,0.6132],"84":[0,0.68333,0.13889,0.08334,0.58438],"85":[0,0.68333,0.10903,0.02778,0.68278],"86":[0,0.68333,0.22222,0,0.58333],"87":[0,0.68333,0.13889,0,0.94445],"88":[0,0.68333,0.07847,0.08334,0.82847],"89":[0,0.68333,0.22222,0,0.58056],"90":[0,0.68333,0.07153,0.08334,0.68264],"97":[0,0.43056,0,0,0.52859],"98":[0,0.69444,0,0,0.42917],"99":[0,0.43056,0,0.05556,0.43276],"100":[0,0.69444,0,0.16667,0.52049],"101":[0,0.43056,0,0.05556,0.46563],"102":[0.19444,0.69444,0.10764,0.16667,0.48959],"103":[0.19444,0.43056,0.03588,0.02778,0.47697],"104":[0,0.69444,0,0,0.57616],"105":[0,0.65952,0,0,0.34451],"106":[0.19444,0.65952,0.05724,0,0.41181],"107":[0,0.69444,0.03148,0,0.5206],"108":[0,0.69444,0.01968,0.08334,0.29838],"109":[0,0.43056,0,0,0.87801],"110":[0,0.43056,0,0,0.60023],"111":[0,0.43056,0,0.05556,0.48472],"112":[0.19444,0.43056,0,0.08334,0.50313],"113":[0.19444,0.43056,0.03588,0.08334,0.44641],"114":[0,0.43056,0.02778,0.05556,0.45116],"115":[0,0.43056,0,0.05556,0.46875],"116":[0,0.61508,0,0.08334,0.36111],"117":[0,0.43056,0,0.02778,0.57246],"118":[0,0.43056,0.03588,0.02778,0.48472],"119":[0,0.43056,0.02691,0.08334,0.71592],"120":[0,0.43056,0,0.02778,0.57153],"121":[0.19444,0.43056,0.03588,0.05556,0.49028],"122":[0,0.43056,0.04398,0.05556,0.46505],"160":[0,0,0,0,0.25],"915":[0,0.68333,0.13889,0.08334,0.61528],"916":[0,0.68333,0,0.16667,0.83334],"920":[0,0.68333,0.02778,0.08334,0.76278],"923":[0,0.68333,0,0.16667,0.69445],"926":[0,0.68333,0.07569,0.08334,0.74236],"928":[0,0.68333,0.08125,0.05556,0.83125],"931":[0,0.68333,0.05764,0.08334,0.77986],"933":[0,0.68333,0.13889,0.05556,0.58333],"934":[0,0.68333,0,0.08334,0.66667],"936":[0,0.68333,0.11,0.05556,0.61222],"937":[0,0.68333,0.05017,0.08334,0.7724],"945":[0,0.43056,0.0037,0.02778,0.6397],"946":[0.19444,0.69444,0.05278,0.08334,0.56563],"947":[0.19444,0.43056,0.05556,0,0.51773],"948":[0,0.69444,0.03785,0.05556,0.44444],"949":[0,0.43056,0,0.08334,0.46632],"950":[0.19444,0.69444,0.07378,0.08334,0.4375],"951":[0.19444,0.43056,0.03588,0.05556,0.49653],"952":[0,0.69444,0.02778,0.08334,0.46944],"953":[0,0.43056,0,0.05556,0.35394],"954":[0,0.43056,0,0,0.57616],"955":[0,0.69444,0,0,0.58334],"956":[0.19444,0.43056,0,0.02778,0.60255],"957":[0,0.43056,0.06366,0.02778,0.49398],"958":[0.19444,0.69444,0.04601,0.11111,0.4375],"959":[0,0.43056,0,0.05556,0.48472],"960":[0,0.43056,0.03588,0,0.57003],"961":[0.19444,0.43056,0,0.08334,0.51702],"962":[0.09722,0.43056,0.07986,0.08334,0.36285],"963":[0,0.43056,0.03588,0,0.57141],"964":[0,0.43056,0.1132,0.02778,0.43715],"965":[0,0.43056,0.03588,0.02778,0.54028],"966":[0.19444,0.43056,0,0.08334,0.65417],"967":[0.19444,0.43056,0,0.05556,0.62569],"968":[0.19444,0.69444,0.03588,0.11111,0.65139],"969":[0,0.43056,0.03588,0,0.62245],"977":[0,0.69444,0,0.08334,0.59144],"981":[0.19444,0.69444,0,0.08334,0.59583],"982":[0,0.43056,0.02778,0,0.82813],"1009":[0.19444,0.43056,0,0.08334,0.51702],"1013":[0,0.43056,0,0.05556,0.4059],"57649":[0,0.43056,0,0.02778,0.32246],"57911":[0.19444,0.43056,0,0.08334,0.38403]},"SansSerif-Bold":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.36667],"34":[0,0.69444,0,0,0.55834],"35":[0.19444,0.69444,0,0,0.91667],"36":[0.05556,0.75,0,0,0.55],"37":[0.05556,0.75,0,0,1.02912],"38":[0,0.69444,0,0,0.83056],"39":[0,0.69444,0,0,0.30556],"40":[0.25,0.75,0,0,0.42778],"41":[0.25,0.75,0,0,0.42778],"42":[0,0.75,0,0,0.55],"43":[0.11667,0.61667,0,0,0.85556],"44":[0.10556,0.13056,0,0,0.30556],"45":[0,0.45833,0,0,0.36667],"46":[0,0.13056,0,0,0.30556],"47":[0.25,0.75,0,0,0.55],"48":[0,0.69444,0,0,0.55],"49":[0,0.69444,0,0,0.55],"50":[0,0.69444,0,0,0.55],"51":[0,0.69444,0,0,0.55],"52":[0,0.69444,0,0,0.55],"53":[0,0.69444,0,0,0.55],"54":[0,0.69444,0,0,0.55],"55":[0,0.69444,0,0,0.55],"56":[0,0.69444,0,0,0.55],"57":[0,0.69444,0,0,0.55],"58":[0,0.45833,0,0,0.30556],"59":[0.10556,0.45833,0,0,0.30556],"61":[-0.09375,0.40625,0,0,0.85556],"63":[0,0.69444,0,0,0.51945],"64":[0,0.69444,0,0,0.73334],"65":[0,0.69444,0,0,0.73334],"66":[0,0.69444,0,0,0.73334],"67":[0,0.69444,0,0,0.70278],"68":[0,0.69444,0,0,0.79445],"69":[0,0.69444,0,0,0.64167],"70":[0,0.69444,0,0,0.61111],"71":[0,0.69444,0,0,0.73334],"72":[0,0.69444,0,0,0.79445],"73":[0,0.69444,0,0,0.33056],"74":[0,0.69444,0,0,0.51945],"75":[0,0.69444,0,0,0.76389],"76":[0,0.69444,0,0,0.58056],"77":[0,0.69444,0,0,0.97778],"78":[0,0.69444,0,0,0.79445],"79":[0,0.69444,0,0,0.79445],"80":[0,0.69444,0,0,0.70278],"81":[0.10556,0.69444,0,0,0.79445],"82":[0,0.69444,0,0,0.70278],"83":[0,0.69444,0,0,0.61111],"84":[0,0.69444,0,0,0.73334],"85":[0,0.69444,0,0,0.76389],"86":[0,0.69444,0.01528,0,0.73334],"87":[0,0.69444,0.01528,0,1.03889],"88":[0,0.69444,0,0,0.73334],"89":[0,0.69444,0.0275,0,0.73334],"90":[0,0.69444,0,0,0.67223],"91":[0.25,0.75,0,0,0.34306],"93":[0.25,0.75,0,0,0.34306],"94":[0,0.69444,0,0,0.55],"95":[0.35,0.10833,0.03056,0,0.55],"97":[0,0.45833,0,0,0.525],"98":[0,0.69444,0,0,0.56111],"99":[0,0.45833,0,0,0.48889],"100":[0,0.69444,0,0,0.56111],"101":[0,0.45833,0,0,0.51111],"102":[0,0.69444,0.07639,0,0.33611],"103":[0.19444,0.45833,0.01528,0,0.55],"104":[0,0.69444,0,0,0.56111],"105":[0,0.69444,0,0,0.25556],"106":[0.19444,0.69444,0,0,0.28611],"107":[0,0.69444,0,0,0.53056],"108":[0,0.69444,0,0,0.25556],"109":[0,0.45833,0,0,0.86667],"110":[0,0.45833,0,0,0.56111],"111":[0,0.45833,0,0,0.55],"112":[0.19444,0.45833,0,0,0.56111],"113":[0.19444,0.45833,0,0,0.56111],"114":[0,0.45833,0.01528,0,0.37222],"115":[0,0.45833,0,0,0.42167],"116":[0,0.58929,0,0,0.40417],"117":[0,0.45833,0,0,0.56111],"118":[0,0.45833,0.01528,0,0.5],"119":[0,0.45833,0.01528,0,0.74445],"120":[0,0.45833,0,0,0.5],"121":[0.19444,0.45833,0.01528,0,0.5],"122":[0,0.45833,0,0,0.47639],"126":[0.35,0.34444,0,0,0.55],"160":[0,0,0,0,0.25],"168":[0,0.69444,0,0,0.55],"176":[0,0.69444,0,0,0.73334],"180":[0,0.69444,0,0,0.55],"184":[0.17014,0,0,0,0.48889],"305":[0,0.45833,0,0,0.25556],"567":[0.19444,0.45833,0,0,0.28611],"710":[0,0.69444,0,0,0.55],"711":[0,0.63542,0,0,0.55],"713":[0,0.63778,0,0,0.55],"728":[0,0.69444,0,0,0.55],"729":[0,0.69444,0,0,0.30556],"730":[0,0.69444,0,0,0.73334],"732":[0,0.69444,0,0,0.55],"733":[0,0.69444,0,0,0.55],"915":[0,0.69444,0,0,0.58056],"916":[0,0.69444,0,0,0.91667],"920":[0,0.69444,0,0,0.85556],"923":[0,0.69444,0,0,0.67223],"926":[0,0.69444,0,0,0.73334],"928":[0,0.69444,0,0,0.79445],"931":[0,0.69444,0,0,0.79445],"933":[0,0.69444,0,0,0.85556],"934":[0,0.69444,0,0,0.79445],"936":[0,0.69444,0,0,0.85556],"937":[0,0.69444,0,0,0.79445],"8211":[0,0.45833,0.03056,0,0.55],"8212":[0,0.45833,0.03056,0,1.10001],"8216":[0,0.69444,0,0,0.30556],"8217":[0,0.69444,0,0,0.30556],"8220":[0,0.69444,0,0,0.55834],"8221":[0,0.69444,0,0,0.55834]},"SansSerif-Italic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.05733,0,0.31945],"34":[0,0.69444,0.00316,0,0.5],"35":[0.19444,0.69444,0.05087,0,0.83334],"36":[0.05556,0.75,0.11156,0,0.5],"37":[0.05556,0.75,0.03126,0,0.83334],"38":[0,0.69444,0.03058,0,0.75834],"39":[0,0.69444,0.07816,0,0.27778],"40":[0.25,0.75,0.13164,0,0.38889],"41":[0.25,0.75,0.02536,0,0.38889],"42":[0,0.75,0.11775,0,0.5],"43":[0.08333,0.58333,0.02536,0,0.77778],"44":[0.125,0.08333,0,0,0.27778],"45":[0,0.44444,0.01946,0,0.33333],"46":[0,0.08333,0,0,0.27778],"47":[0.25,0.75,0.13164,0,0.5],"48":[0,0.65556,0.11156,0,0.5],"49":[0,0.65556,0.11156,0,0.5],"50":[0,0.65556,0.11156,0,0.5],"51":[0,0.65556,0.11156,0,0.5],"52":[0,0.65556,0.11156,0,0.5],"53":[0,0.65556,0.11156,0,0.5],"54":[0,0.65556,0.11156,0,0.5],"55":[0,0.65556,0.11156,0,0.5],"56":[0,0.65556,0.11156,0,0.5],"57":[0,0.65556,0.11156,0,0.5],"58":[0,0.44444,0.02502,0,0.27778],"59":[0.125,0.44444,0.02502,0,0.27778],"61":[-0.13,0.37,0.05087,0,0.77778],"63":[0,0.69444,0.11809,0,0.47222],"64":[0,0.69444,0.07555,0,0.66667],"65":[0,0.69444,0,0,0.66667],"66":[0,0.69444,0.08293,0,0.66667],"67":[0,0.69444,0.11983,0,0.63889],"68":[0,0.69444,0.07555,0,0.72223],"69":[0,0.69444,0.11983,0,0.59722],"70":[0,0.69444,0.13372,0,0.56945],"71":[0,0.69444,0.11983,0,0.66667],"72":[0,0.69444,0.08094,0,0.70834],"73":[0,0.69444,0.13372,0,0.27778],"74":[0,0.69444,0.08094,0,0.47222],"75":[0,0.69444,0.11983,0,0.69445],"76":[0,0.69444,0,0,0.54167],"77":[0,0.69444,0.08094,0,0.875],"78":[0,0.69444,0.08094,0,0.70834],"79":[0,0.69444,0.07555,0,0.73611],"80":[0,0.69444,0.08293,0,0.63889],"81":[0.125,0.69444,0.07555,0,0.73611],"82":[0,0.69444,0.08293,0,0.64584],"83":[0,0.69444,0.09205,0,0.55556],"84":[0,0.69444,0.13372,0,0.68056],"85":[0,0.69444,0.08094,0,0.6875],"86":[0,0.69444,0.1615,0,0.66667],"87":[0,0.69444,0.1615,0,0.94445],"88":[0,0.69444,0.13372,0,0.66667],"89":[0,0.69444,0.17261,0,0.66667],"90":[0,0.69444,0.11983,0,0.61111],"91":[0.25,0.75,0.15942,0,0.28889],"93":[0.25,0.75,0.08719,0,0.28889],"94":[0,0.69444,0.0799,0,0.5],"95":[0.35,0.09444,0.08616,0,0.5],"97":[0,0.44444,0.00981,0,0.48056],"98":[0,0.69444,0.03057,0,0.51667],"99":[0,0.44444,0.08336,0,0.44445],"100":[0,0.69444,0.09483,0,0.51667],"101":[0,0.44444,0.06778,0,0.44445],"102":[0,0.69444,0.21705,0,0.30556],"103":[0.19444,0.44444,0.10836,0,0.5],"104":[0,0.69444,0.01778,0,0.51667],"105":[0,0.67937,0.09718,0,0.23889],"106":[0.19444,0.67937,0.09162,0,0.26667],"107":[0,0.69444,0.08336,0,0.48889],"108":[0,0.69444,0.09483,0,0.23889],"109":[0,0.44444,0.01778,0,0.79445],"110":[0,0.44444,0.01778,0,0.51667],"111":[0,0.44444,0.06613,0,0.5],"112":[0.19444,0.44444,0.0389,0,0.51667],"113":[0.19444,0.44444,0.04169,0,0.51667],"114":[0,0.44444,0.10836,0,0.34167],"115":[0,0.44444,0.0778,0,0.38333],"116":[0,0.57143,0.07225,0,0.36111],"117":[0,0.44444,0.04169,0,0.51667],"118":[0,0.44444,0.10836,0,0.46111],"119":[0,0.44444,0.10836,0,0.68334],"120":[0,0.44444,0.09169,0,0.46111],"121":[0.19444,0.44444,0.10836,0,0.46111],"122":[0,0.44444,0.08752,0,0.43472],"126":[0.35,0.32659,0.08826,0,0.5],"160":[0,0,0,0,0.25],"168":[0,0.67937,0.06385,0,0.5],"176":[0,0.69444,0,0,0.73752],"184":[0.17014,0,0,0,0.44445],"305":[0,0.44444,0.04169,0,0.23889],"567":[0.19444,0.44444,0.04169,0,0.26667],"710":[0,0.69444,0.0799,0,0.5],"711":[0,0.63194,0.08432,0,0.5],"713":[0,0.60889,0.08776,0,0.5],"714":[0,0.69444,0.09205,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0.09483,0,0.5],"729":[0,0.67937,0.07774,0,0.27778],"730":[0,0.69444,0,0,0.73752],"732":[0,0.67659,0.08826,0,0.5],"733":[0,0.69444,0.09205,0,0.5],"915":[0,0.69444,0.13372,0,0.54167],"916":[0,0.69444,0,0,0.83334],"920":[0,0.69444,0.07555,0,0.77778],"923":[0,0.69444,0,0,0.61111],"926":[0,0.69444,0.12816,0,0.66667],"928":[0,0.69444,0.08094,0,0.70834],"931":[0,0.69444,0.11983,0,0.72222],"933":[0,0.69444,0.09031,0,0.77778],"934":[0,0.69444,0.04603,0,0.72222],"936":[0,0.69444,0.09031,0,0.77778],"937":[0,0.69444,0.08293,0,0.72222],"8211":[0,0.44444,0.08616,0,0.5],"8212":[0,0.44444,0.08616,0,1],"8216":[0,0.69444,0.07816,0,0.27778],"8217":[0,0.69444,0.07816,0,0.27778],"8220":[0,0.69444,0.14205,0,0.5],"8221":[0,0.69444,0.00316,0,0.5]},"SansSerif-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.31945],"34":[0,0.69444,0,0,0.5],"35":[0.19444,0.69444,0,0,0.83334],"36":[0.05556,0.75,0,0,0.5],"37":[0.05556,0.75,0,0,0.83334],"38":[0,0.69444,0,0,0.75834],"39":[0,0.69444,0,0,0.27778],"40":[0.25,0.75,0,0,0.38889],"41":[0.25,0.75,0,0,0.38889],"42":[0,0.75,0,0,0.5],"43":[0.08333,0.58333,0,0,0.77778],"44":[0.125,0.08333,0,0,0.27778],"45":[0,0.44444,0,0,0.33333],"46":[0,0.08333,0,0,0.27778],"47":[0.25,0.75,0,0,0.5],"48":[0,0.65556,0,0,0.5],"49":[0,0.65556,0,0,0.5],"50":[0,0.65556,0,0,0.5],"51":[0,0.65556,0,0,0.5],"52":[0,0.65556,0,0,0.5],"53":[0,0.65556,0,0,0.5],"54":[0,0.65556,0,0,0.5],"55":[0,0.65556,0,0,0.5],"56":[0,0.65556,0,0,0.5],"57":[0,0.65556,0,0,0.5],"58":[0,0.44444,0,0,0.27778],"59":[0.125,0.44444,0,0,0.27778],"61":[-0.13,0.37,0,0,0.77778],"63":[0,0.69444,0,0,0.47222],"64":[0,0.69444,0,0,0.66667],"65":[0,0.69444,0,0,0.66667],"66":[0,0.69444,0,0,0.66667],"67":[0,0.69444,0,0,0.63889],"68":[0,0.69444,0,0,0.72223],"69":[0,0.69444,0,0,0.59722],"70":[0,0.69444,0,0,0.56945],"71":[0,0.69444,0,0,0.66667],"72":[0,0.69444,0,0,0.70834],"73":[0,0.69444,0,0,0.27778],"74":[0,0.69444,0,0,0.47222],"75":[0,0.69444,0,0,0.69445],"76":[0,0.69444,0,0,0.54167],"77":[0,0.69444,0,0,0.875],"78":[0,0.69444,0,0,0.70834],"79":[0,0.69444,0,0,0.73611],"80":[0,0.69444,0,0,0.63889],"81":[0.125,0.69444,0,0,0.73611],"82":[0,0.69444,0,0,0.64584],"83":[0,0.69444,0,0,0.55556],"84":[0,0.69444,0,0,0.68056],"85":[0,0.69444,0,0,0.6875],"86":[0,0.69444,0.01389,0,0.66667],"87":[0,0.69444,0.01389,0,0.94445],"88":[0,0.69444,0,0,0.66667],"89":[0,0.69444,0.025,0,0.66667],"90":[0,0.69444,0,0,0.61111],"91":[0.25,0.75,0,0,0.28889],"93":[0.25,0.75,0,0,0.28889],"94":[0,0.69444,0,0,0.5],"95":[0.35,0.09444,0.02778,0,0.5],"97":[0,0.44444,0,0,0.48056],"98":[0,0.69444,0,0,0.51667],"99":[0,0.44444,0,0,0.44445],"100":[0,0.69444,0,0,0.51667],"101":[0,0.44444,0,0,0.44445],"102":[0,0.69444,0.06944,0,0.30556],"103":[0.19444,0.44444,0.01389,0,0.5],"104":[0,0.69444,0,0,0.51667],"105":[0,0.67937,0,0,0.23889],"106":[0.19444,0.67937,0,0,0.26667],"107":[0,0.69444,0,0,0.48889],"108":[0,0.69444,0,0,0.23889],"109":[0,0.44444,0,0,0.79445],"110":[0,0.44444,0,0,0.51667],"111":[0,0.44444,0,0,0.5],"112":[0.19444,0.44444,0,0,0.51667],"113":[0.19444,0.44444,0,0,0.51667],"114":[0,0.44444,0.01389,0,0.34167],"115":[0,0.44444,0,0,0.38333],"116":[0,0.57143,0,0,0.36111],"117":[0,0.44444,0,0,0.51667],"118":[0,0.44444,0.01389,0,0.46111],"119":[0,0.44444,0.01389,0,0.68334],"120":[0,0.44444,0,0,0.46111],"121":[0.19444,0.44444,0.01389,0,0.46111],"122":[0,0.44444,0,0,0.43472],"126":[0.35,0.32659,0,0,0.5],"160":[0,0,0,0,0.25],"168":[0,0.67937,0,0,0.5],"176":[0,0.69444,0,0,0.66667],"184":[0.17014,0,0,0,0.44445],"305":[0,0.44444,0,0,0.23889],"567":[0.19444,0.44444,0,0,0.26667],"710":[0,0.69444,0,0,0.5],"711":[0,0.63194,0,0,0.5],"713":[0,0.60889,0,0,0.5],"714":[0,0.69444,0,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0,0,0.5],"729":[0,0.67937,0,0,0.27778],"730":[0,0.69444,0,0,0.66667],"732":[0,0.67659,0,0,0.5],"733":[0,0.69444,0,0,0.5],"915":[0,0.69444,0,0,0.54167],"916":[0,0.69444,0,0,0.83334],"920":[0,0.69444,0,0,0.77778],"923":[0,0.69444,0,0,0.61111],"926":[0,0.69444,0,0,0.66667],"928":[0,0.69444,0,0,0.70834],"931":[0,0.69444,0,0,0.72222],"933":[0,0.69444,0,0,0.77778],"934":[0,0.69444,0,0,0.72222],"936":[0,0.69444,0,0,0.77778],"937":[0,0.69444,0,0,0.72222],"8211":[0,0.44444,0.02778,0,0.5],"8212":[0,0.44444,0.02778,0,1],"8216":[0,0.69444,0,0,0.27778],"8217":[0,0.69444,0,0,0.27778],"8220":[0,0.69444,0,0,0.5],"8221":[0,0.69444,0,0,0.5]},"Script-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.7,0.22925,0,0.80253],"66":[0,0.7,0.04087,0,0.90757],"67":[0,0.7,0.1689,0,0.66619],"68":[0,0.7,0.09371,0,0.77443],"69":[0,0.7,0.18583,0,0.56162],"70":[0,0.7,0.13634,0,0.89544],"71":[0,0.7,0.17322,0,0.60961],"72":[0,0.7,0.29694,0,0.96919],"73":[0,0.7,0.19189,0,0.80907],"74":[0.27778,0.7,0.19189,0,1.05159],"75":[0,0.7,0.31259,0,0.91364],"76":[0,0.7,0.19189,0,0.87373],"77":[0,0.7,0.15981,0,1.08031],"78":[0,0.7,0.3525,0,0.9015],"79":[0,0.7,0.08078,0,0.73787],"80":[0,0.7,0.08078,0,1.01262],"81":[0,0.7,0.03305,0,0.88282],"82":[0,0.7,0.06259,0,0.85],"83":[0,0.7,0.19189,0,0.86767],"84":[0,0.7,0.29087,0,0.74697],"85":[0,0.7,0.25815,0,0.79996],"86":[0,0.7,0.27523,0,0.62204],"87":[0,0.7,0.27523,0,0.80532],"88":[0,0.7,0.26006,0,0.94445],"89":[0,0.7,0.2939,0,0.70961],"90":[0,0.7,0.24037,0,0.8212],"160":[0,0,0,0,0.25]},"Size1-Regular":{"32":[0,0,0,0,0.25],"40":[0.35001,0.85,0,0,0.45834],"41":[0.35001,0.85,0,0,0.45834],"47":[0.35001,0.85,0,0,0.57778],"91":[0.35001,0.85,0,0,0.41667],"92":[0.35001,0.85,0,0,0.57778],"93":[0.35001,0.85,0,0,0.41667],"123":[0.35001,0.85,0,0,0.58334],"125":[0.35001,0.85,0,0,0.58334],"160":[0,0,0,0,0.25],"710":[0,0.72222,0,0,0.55556],"732":[0,0.72222,0,0,0.55556],"770":[0,0.72222,0,0,0.55556],"771":[0,0.72222,0,0,0.55556],"8214":[-0.00099,0.601,0,0,0.77778],"8593":[0.00001,0.6,0,0,0.66667],"8595":[0.00001,0.6,0,0,0.66667],"8657":[0.00001,0.6,0,0,0.77778],"8659":[0.00001,0.6,0,0,0.77778],"8719":[0.25001,0.75,0,0,0.94445],"8720":[0.25001,0.75,0,0,0.94445],"8721":[0.25001,0.75,0,0,1.05556],"8730":[0.35001,0.85,0,0,1],"8739":[-0.00599,0.606,0,0,0.33333],"8741":[-0.00599,0.606,0,0,0.55556],"8747":[0.30612,0.805,0.19445,0,0.47222],"8748":[0.306,0.805,0.19445,0,0.47222],"8749":[0.306,0.805,0.19445,0,0.47222],"8750":[0.30612,0.805,0.19445,0,0.47222],"8896":[0.25001,0.75,0,0,0.83334],"8897":[0.25001,0.75,0,0,0.83334],"8898":[0.25001,0.75,0,0,0.83334],"8899":[0.25001,0.75,0,0,0.83334],"8968":[0.35001,0.85,0,0,0.47222],"8969":[0.35001,0.85,0,0,0.47222],"8970":[0.35001,0.85,0,0,0.47222],"8971":[0.35001,0.85,0,0,0.47222],"9168":[-0.00099,0.601,0,0,0.66667],"10216":[0.35001,0.85,0,0,0.47222],"10217":[0.35001,0.85,0,0,0.47222],"10752":[0.25001,0.75,0,0,1.11111],"10753":[0.25001,0.75,0,0,1.11111],"10754":[0.25001,0.75,0,0,1.11111],"10756":[0.25001,0.75,0,0,0.83334],"10758":[0.25001,0.75,0,0,0.83334]},"Size2-Regular":{"32":[0,0,0,0,0.25],"40":[0.65002,1.15,0,0,0.59722],"41":[0.65002,1.15,0,0,0.59722],"47":[0.65002,1.15,0,0,0.81111],"91":[0.65002,1.15,0,0,0.47222],"92":[0.65002,1.15,0,0,0.81111],"93":[0.65002,1.15,0,0,0.47222],"123":[0.65002,1.15,0,0,0.66667],"125":[0.65002,1.15,0,0,0.66667],"160":[0,0,0,0,0.25],"710":[0,0.75,0,0,1],"732":[0,0.75,0,0,1],"770":[0,0.75,0,0,1],"771":[0,0.75,0,0,1],"8719":[0.55001,1.05,0,0,1.27778],"8720":[0.55001,1.05,0,0,1.27778],"8721":[0.55001,1.05,0,0,1.44445],"8730":[0.65002,1.15,0,0,1],"8747":[0.86225,1.36,0.44445,0,0.55556],"8748":[0.862,1.36,0.44445,0,0.55556],"8749":[0.862,1.36,0.44445,0,0.55556],"8750":[0.86225,1.36,0.44445,0,0.55556],"8896":[0.55001,1.05,0,0,1.11111],"8897":[0.55001,1.05,0,0,1.11111],"8898":[0.55001,1.05,0,0,1.11111],"8899":[0.55001,1.05,0,0,1.11111],"8968":[0.65002,1.15,0,0,0.52778],"8969":[0.65002,1.15,0,0,0.52778],"8970":[0.65002,1.15,0,0,0.52778],"8971":[0.65002,1.15,0,0,0.52778],"10216":[0.65002,1.15,0,0,0.61111],"10217":[0.65002,1.15,0,0,0.61111],"10752":[0.55001,1.05,0,0,1.51112],"10753":[0.55001,1.05,0,0,1.51112],"10754":[0.55001,1.05,0,0,1.51112],"10756":[0.55001,1.05,0,0,1.11111],"10758":[0.55001,1.05,0,0,1.11111]},"Size3-Regular":{"32":[0,0,0,0,0.25],"40":[0.95003,1.45,0,0,0.73611],"41":[0.95003,1.45,0,0,0.73611],"47":[0.95003,1.45,0,0,1.04445],"91":[0.95003,1.45,0,0,0.52778],"92":[0.95003,1.45,0,0,1.04445],"93":[0.95003,1.45,0,0,0.52778],"123":[0.95003,1.45,0,0,0.75],"125":[0.95003,1.45,0,0,0.75],"160":[0,0,0,0,0.25],"710":[0,0.75,0,0,1.44445],"732":[0,0.75,0,0,1.44445],"770":[0,0.75,0,0,1.44445],"771":[0,0.75,0,0,1.44445],"8730":[0.95003,1.45,0,0,1],"8968":[0.95003,1.45,0,0,0.58334],"8969":[0.95003,1.45,0,0,0.58334],"8970":[0.95003,1.45,0,0,0.58334],"8971":[0.95003,1.45,0,0,0.58334],"10216":[0.95003,1.45,0,0,0.75],"10217":[0.95003,1.45,0,0,0.75]},"Size4-Regular":{"32":[0,0,0,0,0.25],"40":[1.25003,1.75,0,0,0.79167],"41":[1.25003,1.75,0,0,0.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,0.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,0.58334],"123":[1.25003,1.75,0,0,0.80556],"125":[1.25003,1.75,0,0,0.80556],"160":[0,0,0,0,0.25],"710":[0,0.825,0,0,1.8889],"732":[0,0.825,0,0,1.8889],"770":[0,0.825,0,0,1.8889],"771":[0,0.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,0.63889],"8969":[1.25003,1.75,0,0,0.63889],"8970":[1.25003,1.75,0,0,0.63889],"8971":[1.25003,1.75,0,0,0.63889],"9115":[0.64502,1.155,0,0,0.875],"9116":[0.00001,0.6,0,0,0.875],"9117":[0.64502,1.155,0,0,0.875],"9118":[0.64502,1.155,0,0,0.875],"9119":[0.00001,0.6,0,0,0.875],"9120":[0.64502,1.155,0,0,0.875],"9121":[0.64502,1.155,0,0,0.66667],"9122":[-0.00099,0.601,0,0,0.66667],"9123":[0.64502,1.155,0,0,0.66667],"9124":[0.64502,1.155,0,0,0.66667],"9125":[-0.00099,0.601,0,0,0.66667],"9126":[0.64502,1.155,0,0,0.66667],"9127":[0.00001,0.9,0,0,0.88889],"9128":[0.65002,1.15,0,0,0.88889],"9129":[0.90001,0,0,0,0.88889],"9130":[0,0.3,0,0,0.88889],"9131":[0.00001,0.9,0,0,0.88889],"9132":[0.65002,1.15,0,0,0.88889],"9133":[0.90001,0,0,0,0.88889],"9143":[0.88502,0.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,0.80556],"10217":[1.25003,1.75,0,0,0.80556],"57344":[-0.00499,0.605,0,0,1.05556],"57345":[-0.00499,0.605,0,0,1.05556],"57680":[0,0.12,0,0,0.45],"57681":[0,0.12,0,0,0.45],"57682":[0,0.12,0,0,0.45],"57683":[0,0.12,0,0,0.45]},"Typewriter-Regular":{"32":[0,0,0,0,0.525],"33":[0,0.61111,0,0,0.525],"34":[0,0.61111,0,0,0.525],"35":[0,0.61111,0,0,0.525],"36":[0.08333,0.69444,0,0,0.525],"37":[0.08333,0.69444,0,0,0.525],"38":[0,0.61111,0,0,0.525],"39":[0,0.61111,0,0,0.525],"40":[0.08333,0.69444,0,0,0.525],"41":[0.08333,0.69444,0,0,0.525],"42":[0,0.52083,0,0,0.525],"43":[-0.08056,0.53055,0,0,0.525],"44":[0.13889,0.125,0,0,0.525],"45":[-0.08056,0.53055,0,0,0.525],"46":[0,0.125,0,0,0.525],"47":[0.08333,0.69444,0,0,0.525],"48":[0,0.61111,0,0,0.525],"49":[0,0.61111,0,0,0.525],"50":[0,0.61111,0,0,0.525],"51":[0,0.61111,0,0,0.525],"52":[0,0.61111,0,0,0.525],"53":[0,0.61111,0,0,0.525],"54":[0,0.61111,0,0,0.525],"55":[0,0.61111,0,0,0.525],"56":[0,0.61111,0,0,0.525],"57":[0,0.61111,0,0,0.525],"58":[0,0.43056,0,0,0.525],"59":[0.13889,0.43056,0,0,0.525],"60":[-0.05556,0.55556,0,0,0.525],"61":[-0.19549,0.41562,0,0,0.525],"62":[-0.05556,0.55556,0,0,0.525],"63":[0,0.61111,0,0,0.525],"64":[0,0.61111,0,0,0.525],"65":[0,0.61111,0,0,0.525],"66":[0,0.61111,0,0,0.525],"67":[0,0.61111,0,0,0.525],"68":[0,0.61111,0,0,0.525],"69":[0,0.61111,0,0,0.525],"70":[0,0.61111,0,0,0.525],"71":[0,0.61111,0,0,0.525],"72":[0,0.61111,0,0,0.525],"73":[0,0.61111,0,0,0.525],"74":[0,0.61111,0,0,0.525],"75":[0,0.61111,0,0,0.525],"76":[0,0.61111,0,0,0.525],"77":[0,0.61111,0,0,0.525],"78":[0,0.61111,0,0,0.525],"79":[0,0.61111,0,0,0.525],"80":[0,0.61111,0,0,0.525],"81":[0.13889,0.61111,0,0,0.525],"82":[0,0.61111,0,0,0.525],"83":[0,0.61111,0,0,0.525],"84":[0,0.61111,0,0,0.525],"85":[0,0.61111,0,0,0.525],"86":[0,0.61111,0,0,0.525],"87":[0,0.61111,0,0,0.525],"88":[0,0.61111,0,0,0.525],"89":[0,0.61111,0,0,0.525],"90":[0,0.61111,0,0,0.525],"91":[0.08333,0.69444,0,0,0.525],"92":[0.08333,0.69444,0,0,0.525],"93":[0.08333,0.69444,0,0,0.525],"94":[0,0.61111,0,0,0.525],"95":[0.09514,0,0,0,0.525],"96":[0,0.61111,0,0,0.525],"97":[0,0.43056,0,0,0.525],"98":[0,0.61111,0,0,0.525],"99":[0,0.43056,0,0,0.525],"100":[0,0.61111,0,0,0.525],"101":[0,0.43056,0,0,0.525],"102":[0,0.61111,0,0,0.525],"103":[0.22222,0.43056,0,0,0.525],"104":[0,0.61111,0,0,0.525],"105":[0,0.61111,0,0,0.525],"106":[0.22222,0.61111,0,0,0.525],"107":[0,0.61111,0,0,0.525],"108":[0,0.61111,0,0,0.525],"109":[0,0.43056,0,0,0.525],"110":[0,0.43056,0,0,0.525],"111":[0,0.43056,0,0,0.525],"112":[0.22222,0.43056,0,0,0.525],"113":[0.22222,0.43056,0,0,0.525],"114":[0,0.43056,0,0,0.525],"115":[0,0.43056,0,0,0.525],"116":[0,0.55358,0,0,0.525],"117":[0,0.43056,0,0,0.525],"118":[0,0.43056,0,0,0.525],"119":[0,0.43056,0,0,0.525],"120":[0,0.43056,0,0,0.525],"121":[0.22222,0.43056,0,0,0.525],"122":[0,0.43056,0,0,0.525],"123":[0.08333,0.69444,0,0,0.525],"124":[0.08333,0.69444,0,0,0.525],"125":[0.08333,0.69444,0,0,0.525],"126":[0,0.61111,0,0,0.525],"127":[0,0.61111,0,0,0.525],"160":[0,0,0,0,0.525],"176":[0,0.61111,0,0,0.525],"184":[0.19445,0,0,0,0.525],"305":[0,0.43056,0,0,0.525],"567":[0.22222,0.43056,0,0,0.525],"711":[0,0.56597,0,0,0.525],"713":[0,0.56555,0,0,0.525],"714":[0,0.61111,0,0,0.525],"715":[0,0.61111,0,0,0.525],"728":[0,0.61111,0,0,0.525],"730":[0,0.61111,0,0,0.525],"770":[0,0.61111,0,0,0.525],"771":[0,0.61111,0,0,0.525],"776":[0,0.61111,0,0,0.525],"915":[0,0.61111,0,0,0.525],"916":[0,0.61111,0,0,0.525],"920":[0,0.61111,0,0,0.525],"923":[0,0.61111,0,0,0.525],"926":[0,0.61111,0,0,0.525],"928":[0,0.61111,0,0,0.525],"931":[0,0.61111,0,0,0.525],"933":[0,0.61111,0,0,0.525],"934":[0,0.61111,0,0,0.525],"936":[0,0.61111,0,0,0.525],"937":[0,0.61111,0,0,0.525],"8216":[0,0.61111,0,0,0.525],"8217":[0,0.61111,0,0,0.525],"8242":[0,0.61111,0,0,0.525],"9251":[0.11111,0.21944,0,0,0.525]}};var hje={slant:[0.25,0.25,0.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[0.431,0.431,0.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[0.677,0.732,0.925],num2:[0.394,0.384,0.387],num3:[0.444,0.471,0.504],denom1:[0.686,0.752,1.025],denom2:[0.345,0.344,0.532],sup1:[0.413,0.503,0.504],sup2:[0.363,0.431,0.404],sup3:[0.289,0.286,0.294],sub1:[0.15,0.143,0.2],sub2:[0.247,0.286,0.4],supDrop:[0.386,0.353,0.494],subDrop:[0.05,0.071,0.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[0.25,0.25,0.25],defaultRuleThickness:[0.04,0.049,0.049],bigOpSpacing1:[0.111,0.111,0.111],bigOpSpacing2:[0.166,0.166,0.166],bigOpSpacing3:[0.2,0.2,0.2],bigOpSpacing4:[0.6,0.611,0.611],bigOpSpacing5:[0.1,0.143,0.143],sqrtRuleThickness:[0.04,0.04,0.04],ptPerEm:[10,10,10],doubleRuleSep:[0.2,0.2,0.2],arrayRuleWidth:[0.04,0.04,0.04],fboxsep:[0.3,0.3,0.3],fboxrule:[0.04,0.04,0.04]},Rgr={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function b9n(e,r){Uk[e]=r}function Vje(e,r,i){if(!Uk[r])throw Error("Font metrics not found for font: "+r+".");var a=e.charCodeAt(0),o=Uk[r][a];if(!o&&e[0]in Rgr)a=Rgr[e[0]].charCodeAt(0),o=Uk[r][a];if(!o&&i==="text"){if(hmr(a))o=Uk[r][77]}if(o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var dje={};function y9n(e){var r;if(e>=5)r=0;else if(e>=3)r=1;else r=2;if(!dje[r]){var i=dje[r]={cssEmPerMu:hje.quad[r]/18};for(var a of Object.keys(hje))i[a]=hje[a][r]}return dje[r]}var hf={math:{},text:{}};function Oe(e,r,i,a,o,l){if(hf[e][o]={font:r,group:i,replace:a},l&&a)hf[e][a]=hf[e][o]}var Fe="math",xi="text",ot="main",ar="ams",df="accent-token",Ka="bin",cv="close",RV="inner",yo="mathord",sg="op-token",PE="open",are="punct",ur="rel",uR="spacing",Lr="textord";Oe(Fe,ot,ur,"≡","\\equiv",!0);Oe(Fe,ot,ur,"≺","\\prec",!0);Oe(Fe,ot,ur,"≻","\\succ",!0);Oe(Fe,ot,ur,"∼","\\sim",!0);Oe(Fe,ot,ur,"⊥","\\perp");Oe(Fe,ot,ur,"⪯","\\preceq",!0);Oe(Fe,ot,ur,"⪰","\\succeq",!0);Oe(Fe,ot,ur,"≃","\\simeq",!0);Oe(Fe,ot,ur,"∣","\\mid",!0);Oe(Fe,ot,ur,"≪","\\ll",!0);Oe(Fe,ot,ur,"≫","\\gg",!0);Oe(Fe,ot,ur,"≍","\\asymp",!0);Oe(Fe,ot,ur,"∥","\\parallel");Oe(Fe,ot,ur,"⋈","\\bowtie",!0);Oe(Fe,ot,ur,"⌣","\\smile",!0);Oe(Fe,ot,ur,"⊑","\\sqsubseteq",!0);Oe(Fe,ot,ur,"⊒","\\sqsupseteq",!0);Oe(Fe,ot,ur,"≐","\\doteq",!0);Oe(Fe,ot,ur,"⌢","\\frown",!0);Oe(Fe,ot,ur,"∋","\\ni",!0);Oe(Fe,ot,ur,"∝","\\propto",!0);Oe(Fe,ot,ur,"⊢","\\vdash",!0);Oe(Fe,ot,ur,"⊣","\\dashv",!0);Oe(Fe,ot,ur,"∋","\\owns");Oe(Fe,ot,are,".","\\ldotp");Oe(Fe,ot,are,"⋅","\\cdotp");Oe(Fe,ot,are,"⋅","·");Oe(xi,ot,Lr,"⋅","·");Oe(Fe,ot,Lr,"#","\\#");Oe(xi,ot,Lr,"#","\\#");Oe(Fe,ot,Lr,"&","\\&");Oe(xi,ot,Lr,"&","\\&");Oe(Fe,ot,Lr,"ℵ","\\aleph",!0);Oe(Fe,ot,Lr,"∀","\\forall",!0);Oe(Fe,ot,Lr,"ℏ","\\hbar",!0);Oe(Fe,ot,Lr,"∃","\\exists",!0);Oe(Fe,ot,Lr,"∇","\\nabla",!0);Oe(Fe,ot,Lr,"♭","\\flat",!0);Oe(Fe,ot,Lr,"ℓ","\\ell",!0);Oe(Fe,ot,Lr,"♮","\\natural",!0);Oe(Fe,ot,Lr,"♣","\\clubsuit",!0);Oe(Fe,ot,Lr,"℘","\\wp",!0);Oe(Fe,ot,Lr,"♯","\\sharp",!0);Oe(Fe,ot,Lr,"♢","\\diamondsuit",!0);Oe(Fe,ot,Lr,"ℜ","\\Re",!0);Oe(Fe,ot,Lr,"♡","\\heartsuit",!0);Oe(Fe,ot,Lr,"ℑ","\\Im",!0);Oe(Fe,ot,Lr,"♠","\\spadesuit",!0);Oe(Fe,ot,Lr,"§","\\S",!0);Oe(xi,ot,Lr,"§","\\S");Oe(Fe,ot,Lr,"¶","\\P",!0);Oe(xi,ot,Lr,"¶","\\P");Oe(Fe,ot,Lr,"†","\\dag");Oe(xi,ot,Lr,"†","\\dag");Oe(xi,ot,Lr,"†","\\textdagger");Oe(Fe,ot,Lr,"‡","\\ddag");Oe(xi,ot,Lr,"‡","\\ddag");Oe(xi,ot,Lr,"‡","\\textdaggerdbl");Oe(Fe,ot,cv,"⎱","\\rmoustache",!0);Oe(Fe,ot,PE,"⎰","\\lmoustache",!0);Oe(Fe,ot,cv,"⟯","\\rgroup",!0);Oe(Fe,ot,PE,"⟮","\\lgroup",!0);Oe(Fe,ot,Ka,"∓","\\mp",!0);Oe(Fe,ot,Ka,"⊖","\\ominus",!0);Oe(Fe,ot,Ka,"⊎","\\uplus",!0);Oe(Fe,ot,Ka,"⊓","\\sqcap",!0);Oe(Fe,ot,Ka,"∗","\\ast");Oe(Fe,ot,Ka,"⊔","\\sqcup",!0);Oe(Fe,ot,Ka,"◯","\\bigcirc",!0);Oe(Fe,ot,Ka,"∙","\\bullet",!0);Oe(Fe,ot,Ka,"‡","\\ddagger");Oe(Fe,ot,Ka,"≀","\\wr",!0);Oe(Fe,ot,Ka,"⨿","\\amalg");Oe(Fe,ot,Ka,"&","\\And");Oe(Fe,ot,ur,"⟵","\\longleftarrow",!0);Oe(Fe,ot,ur,"⇐","\\Leftarrow",!0);Oe(Fe,ot,ur,"⟸","\\Longleftarrow",!0);Oe(Fe,ot,ur,"⟶","\\longrightarrow",!0);Oe(Fe,ot,ur,"⇒","\\Rightarrow",!0);Oe(Fe,ot,ur,"⟹","\\Longrightarrow",!0);Oe(Fe,ot,ur,"↔","\\leftrightarrow",!0);Oe(Fe,ot,ur,"⟷","\\longleftrightarrow",!0);Oe(Fe,ot,ur,"⇔","\\Leftrightarrow",!0);Oe(Fe,ot,ur,"⟺","\\Longleftrightarrow",!0);Oe(Fe,ot,ur,"↦","\\mapsto",!0);Oe(Fe,ot,ur,"⟼","\\longmapsto",!0);Oe(Fe,ot,ur,"↗","\\nearrow",!0);Oe(Fe,ot,ur,"↩","\\hookleftarrow",!0);Oe(Fe,ot,ur,"↪","\\hookrightarrow",!0);Oe(Fe,ot,ur,"↘","\\searrow",!0);Oe(Fe,ot,ur,"↼","\\leftharpoonup",!0);Oe(Fe,ot,ur,"⇀","\\rightharpoonup",!0);Oe(Fe,ot,ur,"↙","\\swarrow",!0);Oe(Fe,ot,ur,"↽","\\leftharpoondown",!0);Oe(Fe,ot,ur,"⇁","\\rightharpoondown",!0);Oe(Fe,ot,ur,"↖","\\nwarrow",!0);Oe(Fe,ot,ur,"⇌","\\rightleftharpoons",!0);Oe(Fe,ar,ur,"≮","\\nless",!0);Oe(Fe,ar,ur,"","\\@nleqslant");Oe(Fe,ar,ur,"","\\@nleqq");Oe(Fe,ar,ur,"⪇","\\lneq",!0);Oe(Fe,ar,ur,"≨","\\lneqq",!0);Oe(Fe,ar,ur,"","\\@lvertneqq");Oe(Fe,ar,ur,"⋦","\\lnsim",!0);Oe(Fe,ar,ur,"⪉","\\lnapprox",!0);Oe(Fe,ar,ur,"⊀","\\nprec",!0);Oe(Fe,ar,ur,"⋠","\\npreceq",!0);Oe(Fe,ar,ur,"⋨","\\precnsim",!0);Oe(Fe,ar,ur,"⪹","\\precnapprox",!0);Oe(Fe,ar,ur,"≁","\\nsim",!0);Oe(Fe,ar,ur,"","\\@nshortmid");Oe(Fe,ar,ur,"∤","\\nmid",!0);Oe(Fe,ar,ur,"⊬","\\nvdash",!0);Oe(Fe,ar,ur,"⊭","\\nvDash",!0);Oe(Fe,ar,ur,"⋪","\\ntriangleleft");Oe(Fe,ar,ur,"⋬","\\ntrianglelefteq",!0);Oe(Fe,ar,ur,"⊊","\\subsetneq",!0);Oe(Fe,ar,ur,"","\\@varsubsetneq");Oe(Fe,ar,ur,"⫋","\\subsetneqq",!0);Oe(Fe,ar,ur,"","\\@varsubsetneqq");Oe(Fe,ar,ur,"≯","\\ngtr",!0);Oe(Fe,ar,ur,"","\\@ngeqslant");Oe(Fe,ar,ur,"","\\@ngeqq");Oe(Fe,ar,ur,"⪈","\\gneq",!0);Oe(Fe,ar,ur,"≩","\\gneqq",!0);Oe(Fe,ar,ur,"","\\@gvertneqq");Oe(Fe,ar,ur,"⋧","\\gnsim",!0);Oe(Fe,ar,ur,"⪊","\\gnapprox",!0);Oe(Fe,ar,ur,"⊁","\\nsucc",!0);Oe(Fe,ar,ur,"⋡","\\nsucceq",!0);Oe(Fe,ar,ur,"⋩","\\succnsim",!0);Oe(Fe,ar,ur,"⪺","\\succnapprox",!0);Oe(Fe,ar,ur,"≆","\\ncong",!0);Oe(Fe,ar,ur,"","\\@nshortparallel");Oe(Fe,ar,ur,"∦","\\nparallel",!0);Oe(Fe,ar,ur,"⊯","\\nVDash",!0);Oe(Fe,ar,ur,"⋫","\\ntriangleright");Oe(Fe,ar,ur,"⋭","\\ntrianglerighteq",!0);Oe(Fe,ar,ur,"","\\@nsupseteqq");Oe(Fe,ar,ur,"⊋","\\supsetneq",!0);Oe(Fe,ar,ur,"","\\@varsupsetneq");Oe(Fe,ar,ur,"⫌","\\supsetneqq",!0);Oe(Fe,ar,ur,"","\\@varsupsetneqq");Oe(Fe,ar,ur,"⊮","\\nVdash",!0);Oe(Fe,ar,ur,"⪵","\\precneqq",!0);Oe(Fe,ar,ur,"⪶","\\succneqq",!0);Oe(Fe,ar,ur,"","\\@nsubseteqq");Oe(Fe,ar,Ka,"⊴","\\unlhd");Oe(Fe,ar,Ka,"⊵","\\unrhd");Oe(Fe,ar,ur,"↚","\\nleftarrow",!0);Oe(Fe,ar,ur,"↛","\\nrightarrow",!0);Oe(Fe,ar,ur,"⇍","\\nLeftarrow",!0);Oe(Fe,ar,ur,"⇏","\\nRightarrow",!0);Oe(Fe,ar,ur,"↮","\\nleftrightarrow",!0);Oe(Fe,ar,ur,"⇎","\\nLeftrightarrow",!0);Oe(Fe,ar,ur,"△","\\vartriangle");Oe(Fe,ar,Lr,"ℏ","\\hslash");Oe(Fe,ar,Lr,"▽","\\triangledown");Oe(Fe,ar,Lr,"◊","\\lozenge");Oe(Fe,ar,Lr,"Ⓢ","\\circledS");Oe(Fe,ar,Lr,"®","\\circledR");Oe(xi,ar,Lr,"®","\\circledR");Oe(Fe,ar,Lr,"∡","\\measuredangle",!0);Oe(Fe,ar,Lr,"∄","\\nexists");Oe(Fe,ar,Lr,"℧","\\mho");Oe(Fe,ar,Lr,"Ⅎ","\\Finv",!0);Oe(Fe,ar,Lr,"⅁","\\Game",!0);Oe(Fe,ar,Lr,"‵","\\backprime");Oe(Fe,ar,Lr,"▲","\\blacktriangle");Oe(Fe,ar,Lr,"▼","\\blacktriangledown");Oe(Fe,ar,Lr,"■","\\blacksquare");Oe(Fe,ar,Lr,"⧫","\\blacklozenge");Oe(Fe,ar,Lr,"★","\\bigstar");Oe(Fe,ar,Lr,"∢","\\sphericalangle",!0);Oe(Fe,ar,Lr,"∁","\\complement",!0);Oe(Fe,ar,Lr,"ð","\\eth",!0);Oe(xi,ot,Lr,"ð","ð");Oe(Fe,ar,Lr,"╱","\\diagup");Oe(Fe,ar,Lr,"╲","\\diagdown");Oe(Fe,ar,Lr,"□","\\square");Oe(Fe,ar,Lr,"□","\\Box");Oe(Fe,ar,Lr,"◊","\\Diamond");Oe(Fe,ar,Lr,"¥","\\yen",!0);Oe(xi,ar,Lr,"¥","\\yen",!0);Oe(Fe,ar,Lr,"✓","\\checkmark",!0);Oe(xi,ar,Lr,"✓","\\checkmark");Oe(Fe,ar,Lr,"ℶ","\\beth",!0);Oe(Fe,ar,Lr,"ℸ","\\daleth",!0);Oe(Fe,ar,Lr,"ℷ","\\gimel",!0);Oe(Fe,ar,Lr,"ϝ","\\digamma",!0);Oe(Fe,ar,Lr,"ϰ","\\varkappa");Oe(Fe,ar,PE,"┌","\\@ulcorner",!0);Oe(Fe,ar,cv,"┐","\\@urcorner",!0);Oe(Fe,ar,PE,"└","\\@llcorner",!0);Oe(Fe,ar,cv,"┘","\\@lrcorner",!0);Oe(Fe,ar,ur,"≦","\\leqq",!0);Oe(Fe,ar,ur,"⩽","\\leqslant",!0);Oe(Fe,ar,ur,"⪕","\\eqslantless",!0);Oe(Fe,ar,ur,"≲","\\lesssim",!0);Oe(Fe,ar,ur,"⪅","\\lessapprox",!0);Oe(Fe,ar,ur,"≊","\\approxeq",!0);Oe(Fe,ar,Ka,"⋖","\\lessdot");Oe(Fe,ar,ur,"⋘","\\lll",!0);Oe(Fe,ar,ur,"≶","\\lessgtr",!0);Oe(Fe,ar,ur,"⋚","\\lesseqgtr",!0);Oe(Fe,ar,ur,"⪋","\\lesseqqgtr",!0);Oe(Fe,ar,ur,"≑","\\doteqdot");Oe(Fe,ar,ur,"≓","\\risingdotseq",!0);Oe(Fe,ar,ur,"≒","\\fallingdotseq",!0);Oe(Fe,ar,ur,"∽","\\backsim",!0);Oe(Fe,ar,ur,"⋍","\\backsimeq",!0);Oe(Fe,ar,ur,"⫅","\\subseteqq",!0);Oe(Fe,ar,ur,"⋐","\\Subset",!0);Oe(Fe,ar,ur,"⊏","\\sqsubset",!0);Oe(Fe,ar,ur,"≼","\\preccurlyeq",!0);Oe(Fe,ar,ur,"⋞","\\curlyeqprec",!0);Oe(Fe,ar,ur,"≾","\\precsim",!0);Oe(Fe,ar,ur,"⪷","\\precapprox",!0);Oe(Fe,ar,ur,"⊲","\\vartriangleleft");Oe(Fe,ar,ur,"⊴","\\trianglelefteq");Oe(Fe,ar,ur,"⊨","\\vDash",!0);Oe(Fe,ar,ur,"⊪","\\Vvdash",!0);Oe(Fe,ar,ur,"⌣","\\smallsmile");Oe(Fe,ar,ur,"⌢","\\smallfrown");Oe(Fe,ar,ur,"≏","\\bumpeq",!0);Oe(Fe,ar,ur,"≎","\\Bumpeq",!0);Oe(Fe,ar,ur,"≧","\\geqq",!0);Oe(Fe,ar,ur,"⩾","\\geqslant",!0);Oe(Fe,ar,ur,"⪖","\\eqslantgtr",!0);Oe(Fe,ar,ur,"≳","\\gtrsim",!0);Oe(Fe,ar,ur,"⪆","\\gtrapprox",!0);Oe(Fe,ar,Ka,"⋗","\\gtrdot");Oe(Fe,ar,ur,"⋙","\\ggg",!0);Oe(Fe,ar,ur,"≷","\\gtrless",!0);Oe(Fe,ar,ur,"⋛","\\gtreqless",!0);Oe(Fe,ar,ur,"⪌","\\gtreqqless",!0);Oe(Fe,ar,ur,"≖","\\eqcirc",!0);Oe(Fe,ar,ur,"≗","\\circeq",!0);Oe(Fe,ar,ur,"≜","\\triangleq",!0);Oe(Fe,ar,ur,"∼","\\thicksim");Oe(Fe,ar,ur,"≈","\\thickapprox");Oe(Fe,ar,ur,"⫆","\\supseteqq",!0);Oe(Fe,ar,ur,"⋑","\\Supset",!0);Oe(Fe,ar,ur,"⊐","\\sqsupset",!0);Oe(Fe,ar,ur,"≽","\\succcurlyeq",!0);Oe(Fe,ar,ur,"⋟","\\curlyeqsucc",!0);Oe(Fe,ar,ur,"≿","\\succsim",!0);Oe(Fe,ar,ur,"⪸","\\succapprox",!0);Oe(Fe,ar,ur,"⊳","\\vartriangleright");Oe(Fe,ar,ur,"⊵","\\trianglerighteq");Oe(Fe,ar,ur,"⊩","\\Vdash",!0);Oe(Fe,ar,ur,"∣","\\shortmid");Oe(Fe,ar,ur,"∥","\\shortparallel");Oe(Fe,ar,ur,"≬","\\between",!0);Oe(Fe,ar,ur,"⋔","\\pitchfork",!0);Oe(Fe,ar,ur,"∝","\\varpropto");Oe(Fe,ar,ur,"◀","\\blacktriangleleft");Oe(Fe,ar,ur,"∴","\\therefore",!0);Oe(Fe,ar,ur,"∍","\\backepsilon");Oe(Fe,ar,ur,"▶","\\blacktriangleright");Oe(Fe,ar,ur,"∵","\\because",!0);Oe(Fe,ar,ur,"⋘","\\llless");Oe(Fe,ar,ur,"⋙","\\gggtr");Oe(Fe,ar,Ka,"⊲","\\lhd");Oe(Fe,ar,Ka,"⊳","\\rhd");Oe(Fe,ar,ur,"≂","\\eqsim",!0);Oe(Fe,ot,ur,"⋈","\\Join");Oe(Fe,ar,ur,"≑","\\Doteq",!0);Oe(Fe,ar,Ka,"∔","\\dotplus",!0);Oe(Fe,ar,Ka,"∖","\\smallsetminus");Oe(Fe,ar,Ka,"⋒","\\Cap",!0);Oe(Fe,ar,Ka,"⋓","\\Cup",!0);Oe(Fe,ar,Ka,"⩞","\\doublebarwedge",!0);Oe(Fe,ar,Ka,"⊟","\\boxminus",!0);Oe(Fe,ar,Ka,"⊞","\\boxplus",!0);Oe(Fe,ar,Ka,"⋇","\\divideontimes",!0);Oe(Fe,ar,Ka,"⋉","\\ltimes",!0);Oe(Fe,ar,Ka,"⋊","\\rtimes",!0);Oe(Fe,ar,Ka,"⋋","\\leftthreetimes",!0);Oe(Fe,ar,Ka,"⋌","\\rightthreetimes",!0);Oe(Fe,ar,Ka,"⋏","\\curlywedge",!0);Oe(Fe,ar,Ka,"⋎","\\curlyvee",!0);Oe(Fe,ar,Ka,"⊝","\\circleddash",!0);Oe(Fe,ar,Ka,"⊛","\\circledast",!0);Oe(Fe,ar,Ka,"⋅","\\centerdot");Oe(Fe,ar,Ka,"⊺","\\intercal",!0);Oe(Fe,ar,Ka,"⋒","\\doublecap");Oe(Fe,ar,Ka,"⋓","\\doublecup");Oe(Fe,ar,Ka,"⊠","\\boxtimes",!0);Oe(Fe,ar,ur,"⇢","\\dashrightarrow",!0);Oe(Fe,ar,ur,"⇠","\\dashleftarrow",!0);Oe(Fe,ar,ur,"⇇","\\leftleftarrows",!0);Oe(Fe,ar,ur,"⇆","\\leftrightarrows",!0);Oe(Fe,ar,ur,"⇚","\\Lleftarrow",!0);Oe(Fe,ar,ur,"↞","\\twoheadleftarrow",!0);Oe(Fe,ar,ur,"↢","\\leftarrowtail",!0);Oe(Fe,ar,ur,"↫","\\looparrowleft",!0);Oe(Fe,ar,ur,"⇋","\\leftrightharpoons",!0);Oe(Fe,ar,ur,"↶","\\curvearrowleft",!0);Oe(Fe,ar,ur,"↺","\\circlearrowleft",!0);Oe(Fe,ar,ur,"↰","\\Lsh",!0);Oe(Fe,ar,ur,"⇈","\\upuparrows",!0);Oe(Fe,ar,ur,"↿","\\upharpoonleft",!0);Oe(Fe,ar,ur,"⇃","\\downharpoonleft",!0);Oe(Fe,ot,ur,"⊶","\\origof",!0);Oe(Fe,ot,ur,"⊷","\\imageof",!0);Oe(Fe,ar,ur,"⊸","\\multimap",!0);Oe(Fe,ar,ur,"↭","\\leftrightsquigarrow",!0);Oe(Fe,ar,ur,"⇉","\\rightrightarrows",!0);Oe(Fe,ar,ur,"⇄","\\rightleftarrows",!0);Oe(Fe,ar,ur,"↠","\\twoheadrightarrow",!0);Oe(Fe,ar,ur,"↣","\\rightarrowtail",!0);Oe(Fe,ar,ur,"↬","\\looparrowright",!0);Oe(Fe,ar,ur,"↷","\\curvearrowright",!0);Oe(Fe,ar,ur,"↻","\\circlearrowright",!0);Oe(Fe,ar,ur,"↱","\\Rsh",!0);Oe(Fe,ar,ur,"⇊","\\downdownarrows",!0);Oe(Fe,ar,ur,"↾","\\upharpoonright",!0);Oe(Fe,ar,ur,"⇂","\\downharpoonright",!0);Oe(Fe,ar,ur,"⇝","\\rightsquigarrow",!0);Oe(Fe,ar,ur,"⇝","\\leadsto");Oe(Fe,ar,ur,"⇛","\\Rrightarrow",!0);Oe(Fe,ar,ur,"↾","\\restriction");Oe(Fe,ot,Lr,"‘","`");Oe(Fe,ot,Lr,"$","\\$");Oe(xi,ot,Lr,"$","\\$");Oe(xi,ot,Lr,"$","\\textdollar");Oe(Fe,ot,Lr,"%","\\%");Oe(xi,ot,Lr,"%","\\%");Oe(Fe,ot,Lr,"_","\\_");Oe(xi,ot,Lr,"_","\\_");Oe(xi,ot,Lr,"_","\\textunderscore");Oe(Fe,ot,Lr,"∠","\\angle",!0);Oe(Fe,ot,Lr,"∞","\\infty",!0);Oe(Fe,ot,Lr,"′","\\prime");Oe(Fe,ot,Lr,"△","\\triangle");Oe(Fe,ot,Lr,"Γ","\\Gamma",!0);Oe(Fe,ot,Lr,"Δ","\\Delta",!0);Oe(Fe,ot,Lr,"Θ","\\Theta",!0);Oe(Fe,ot,Lr,"Λ","\\Lambda",!0);Oe(Fe,ot,Lr,"Ξ","\\Xi",!0);Oe(Fe,ot,Lr,"Π","\\Pi",!0);Oe(Fe,ot,Lr,"Σ","\\Sigma",!0);Oe(Fe,ot,Lr,"Υ","\\Upsilon",!0);Oe(Fe,ot,Lr,"Φ","\\Phi",!0);Oe(Fe,ot,Lr,"Ψ","\\Psi",!0);Oe(Fe,ot,Lr,"Ω","\\Omega",!0);Oe(Fe,ot,Lr,"A","Α");Oe(Fe,ot,Lr,"B","Β");Oe(Fe,ot,Lr,"E","Ε");Oe(Fe,ot,Lr,"Z","Ζ");Oe(Fe,ot,Lr,"H","Η");Oe(Fe,ot,Lr,"I","Ι");Oe(Fe,ot,Lr,"K","Κ");Oe(Fe,ot,Lr,"M","Μ");Oe(Fe,ot,Lr,"N","Ν");Oe(Fe,ot,Lr,"O","Ο");Oe(Fe,ot,Lr,"P","Ρ");Oe(Fe,ot,Lr,"T","Τ");Oe(Fe,ot,Lr,"X","Χ");Oe(Fe,ot,Lr,"¬","\\neg",!0);Oe(Fe,ot,Lr,"¬","\\lnot");Oe(Fe,ot,Lr,"⊤","\\top");Oe(Fe,ot,Lr,"⊥","\\bot");Oe(Fe,ot,Lr,"∅","\\emptyset");Oe(Fe,ar,Lr,"∅","\\varnothing");Oe(Fe,ot,yo,"α","\\alpha",!0);Oe(Fe,ot,yo,"β","\\beta",!0);Oe(Fe,ot,yo,"γ","\\gamma",!0);Oe(Fe,ot,yo,"δ","\\delta",!0);Oe(Fe,ot,yo,"ϵ","\\epsilon",!0);Oe(Fe,ot,yo,"ζ","\\zeta",!0);Oe(Fe,ot,yo,"η","\\eta",!0);Oe(Fe,ot,yo,"θ","\\theta",!0);Oe(Fe,ot,yo,"ι","\\iota",!0);Oe(Fe,ot,yo,"κ","\\kappa",!0);Oe(Fe,ot,yo,"λ","\\lambda",!0);Oe(Fe,ot,yo,"μ","\\mu",!0);Oe(Fe,ot,yo,"ν","\\nu",!0);Oe(Fe,ot,yo,"ξ","\\xi",!0);Oe(Fe,ot,yo,"ο","\\omicron",!0);Oe(Fe,ot,yo,"π","\\pi",!0);Oe(Fe,ot,yo,"ρ","\\rho",!0);Oe(Fe,ot,yo,"σ","\\sigma",!0);Oe(Fe,ot,yo,"τ","\\tau",!0);Oe(Fe,ot,yo,"υ","\\upsilon",!0);Oe(Fe,ot,yo,"ϕ","\\phi",!0);Oe(Fe,ot,yo,"χ","\\chi",!0);Oe(Fe,ot,yo,"ψ","\\psi",!0);Oe(Fe,ot,yo,"ω","\\omega",!0);Oe(Fe,ot,yo,"ε","\\varepsilon",!0);Oe(Fe,ot,yo,"ϑ","\\vartheta",!0);Oe(Fe,ot,yo,"ϖ","\\varpi",!0);Oe(Fe,ot,yo,"ϱ","\\varrho",!0);Oe(Fe,ot,yo,"ς","\\varsigma",!0);Oe(Fe,ot,yo,"φ","\\varphi",!0);Oe(Fe,ot,Ka,"∗","*",!0);Oe(Fe,ot,Ka,"+","+");Oe(Fe,ot,Ka,"−","-",!0);Oe(Fe,ot,Ka,"⋅","\\cdot",!0);Oe(Fe,ot,Ka,"∘","\\circ",!0);Oe(Fe,ot,Ka,"÷","\\div",!0);Oe(Fe,ot,Ka,"±","\\pm",!0);Oe(Fe,ot,Ka,"×","\\times",!0);Oe(Fe,ot,Ka,"∩","\\cap",!0);Oe(Fe,ot,Ka,"∪","\\cup",!0);Oe(Fe,ot,Ka,"∖","\\setminus",!0);Oe(Fe,ot,Ka,"∧","\\land");Oe(Fe,ot,Ka,"∨","\\lor");Oe(Fe,ot,Ka,"∧","\\wedge",!0);Oe(Fe,ot,Ka,"∨","\\vee",!0);Oe(Fe,ot,Lr,"√","\\surd");Oe(Fe,ot,PE,"⟨","\\langle",!0);Oe(Fe,ot,PE,"∣","\\lvert");Oe(Fe,ot,PE,"∥","\\lVert");Oe(Fe,ot,cv,"?","?");Oe(Fe,ot,cv,"!","!");Oe(Fe,ot,cv,"⟩","\\rangle",!0);Oe(Fe,ot,cv,"∣","\\rvert");Oe(Fe,ot,cv,"∥","\\rVert");Oe(Fe,ot,ur,"=","=");Oe(Fe,ot,ur,":",":");Oe(Fe,ot,ur,"≈","\\approx",!0);Oe(Fe,ot,ur,"≅","\\cong",!0);Oe(Fe,ot,ur,"≥","\\ge");Oe(Fe,ot,ur,"≥","\\geq",!0);Oe(Fe,ot,ur,"←","\\gets");Oe(Fe,ot,ur,">","\\gt",!0);Oe(Fe,ot,ur,"∈","\\in",!0);Oe(Fe,ot,ur,"","\\@not");Oe(Fe,ot,ur,"⊂","\\subset",!0);Oe(Fe,ot,ur,"⊃","\\supset",!0);Oe(Fe,ot,ur,"⊆","\\subseteq",!0);Oe(Fe,ot,ur,"⊇","\\supseteq",!0);Oe(Fe,ar,ur,"⊈","\\nsubseteq",!0);Oe(Fe,ar,ur,"⊉","\\nsupseteq",!0);Oe(Fe,ot,ur,"⊨","\\models");Oe(Fe,ot,ur,"←","\\leftarrow",!0);Oe(Fe,ot,ur,"≤","\\le");Oe(Fe,ot,ur,"≤","\\leq",!0);Oe(Fe,ot,ur,"<","\\lt",!0);Oe(Fe,ot,ur,"→","\\rightarrow",!0);Oe(Fe,ot,ur,"→","\\to");Oe(Fe,ar,ur,"≱","\\ngeq",!0);Oe(Fe,ar,ur,"≰","\\nleq",!0);Oe(Fe,ot,uR," ","\\ ");Oe(Fe,ot,uR," ","\\space");Oe(Fe,ot,uR," ","\\nobreakspace");Oe(xi,ot,uR," ","\\ ");Oe(xi,ot,uR," "," ");Oe(xi,ot,uR," ","\\space");Oe(xi,ot,uR," ","\\nobreakspace");Oe(Fe,ot,uR,"","\\nobreak");Oe(Fe,ot,uR,"","\\allowbreak");Oe(Fe,ot,are,",",",");Oe(Fe,ot,are,";",";");Oe(Fe,ar,Ka,"⊼","\\barwedge",!0);Oe(Fe,ar,Ka,"⊻","\\veebar",!0);Oe(Fe,ot,Ka,"⊙","\\odot",!0);Oe(Fe,ot,Ka,"⊕","\\oplus",!0);Oe(Fe,ot,Ka,"⊗","\\otimes",!0);Oe(Fe,ot,Lr,"∂","\\partial",!0);Oe(Fe,ot,Ka,"⊘","\\oslash",!0);Oe(Fe,ar,Ka,"⊚","\\circledcirc",!0);Oe(Fe,ar,Ka,"⊡","\\boxdot",!0);Oe(Fe,ot,Ka,"△","\\bigtriangleup");Oe(Fe,ot,Ka,"▽","\\bigtriangledown");Oe(Fe,ot,Ka,"†","\\dagger");Oe(Fe,ot,Ka,"⋄","\\diamond");Oe(Fe,ot,Ka,"⋆","\\star");Oe(Fe,ot,Ka,"◃","\\triangleleft");Oe(Fe,ot,Ka,"▹","\\triangleright");Oe(Fe,ot,PE,"{","\\{");Oe(xi,ot,Lr,"{","\\{");Oe(xi,ot,Lr,"{","\\textbraceleft");Oe(Fe,ot,cv,"}","\\}");Oe(xi,ot,Lr,"}","\\}");Oe(xi,ot,Lr,"}","\\textbraceright");Oe(Fe,ot,PE,"{","\\lbrace");Oe(Fe,ot,cv,"}","\\rbrace");Oe(Fe,ot,PE,"[","\\lbrack",!0);Oe(xi,ot,Lr,"[","\\lbrack",!0);Oe(Fe,ot,cv,"]","\\rbrack",!0);Oe(xi,ot,Lr,"]","\\rbrack",!0);Oe(Fe,ot,PE,"(","\\lparen",!0);Oe(Fe,ot,cv,")","\\rparen",!0);Oe(xi,ot,Lr,"<","\\textless",!0);Oe(xi,ot,Lr,">","\\textgreater",!0);Oe(Fe,ot,PE,"⌊","\\lfloor",!0);Oe(Fe,ot,cv,"⌋","\\rfloor",!0);Oe(Fe,ot,PE,"⌈","\\lceil",!0);Oe(Fe,ot,cv,"⌉","\\rceil",!0);Oe(Fe,ot,Lr,"\\","\\backslash");Oe(Fe,ot,Lr,"∣","|");Oe(Fe,ot,Lr,"∣","\\vert");Oe(xi,ot,Lr,"|","\\textbar",!0);Oe(Fe,ot,Lr,"∥","\\|");Oe(Fe,ot,Lr,"∥","\\Vert");Oe(xi,ot,Lr,"∥","\\textbardbl");Oe(xi,ot,Lr,"~","\\textasciitilde");Oe(xi,ot,Lr,"\\","\\textbackslash");Oe(xi,ot,Lr,"^","\\textasciicircum");Oe(Fe,ot,ur,"↑","\\uparrow",!0);Oe(Fe,ot,ur,"⇑","\\Uparrow",!0);Oe(Fe,ot,ur,"↓","\\downarrow",!0);Oe(Fe,ot,ur,"⇓","\\Downarrow",!0);Oe(Fe,ot,ur,"↕","\\updownarrow",!0);Oe(Fe,ot,ur,"⇕","\\Updownarrow",!0);Oe(Fe,ot,sg,"∐","\\coprod");Oe(Fe,ot,sg,"⋁","\\bigvee");Oe(Fe,ot,sg,"⋀","\\bigwedge");Oe(Fe,ot,sg,"⨄","\\biguplus");Oe(Fe,ot,sg,"⋂","\\bigcap");Oe(Fe,ot,sg,"⋃","\\bigcup");Oe(Fe,ot,sg,"∫","\\int");Oe(Fe,ot,sg,"∫","\\intop");Oe(Fe,ot,sg,"∬","\\iint");Oe(Fe,ot,sg,"∭","\\iiint");Oe(Fe,ot,sg,"∏","\\prod");Oe(Fe,ot,sg,"∑","\\sum");Oe(Fe,ot,sg,"⨂","\\bigotimes");Oe(Fe,ot,sg,"⨁","\\bigoplus");Oe(Fe,ot,sg,"⨀","\\bigodot");Oe(Fe,ot,sg,"∮","\\oint");Oe(Fe,ot,sg,"∯","\\oiint");Oe(Fe,ot,sg,"∰","\\oiiint");Oe(Fe,ot,sg,"⨆","\\bigsqcup");Oe(Fe,ot,sg,"∫","\\smallint");Oe(xi,ot,RV,"…","\\textellipsis");Oe(Fe,ot,RV,"…","\\mathellipsis");Oe(xi,ot,RV,"…","\\ldots",!0);Oe(Fe,ot,RV,"…","\\ldots",!0);Oe(Fe,ot,RV,"⋯","\\@cdots",!0);Oe(Fe,ot,RV,"⋱","\\ddots",!0);Oe(Fe,ot,Lr,"⋮","\\varvdots");Oe(xi,ot,Lr,"⋮","\\varvdots");Oe(Fe,ot,df,"ˊ","\\acute");Oe(Fe,ot,df,"ˋ","\\grave");Oe(Fe,ot,df,"¨","\\ddot");Oe(Fe,ot,df,"~","\\tilde");Oe(Fe,ot,df,"ˉ","\\bar");Oe(Fe,ot,df,"˘","\\breve");Oe(Fe,ot,df,"ˇ","\\check");Oe(Fe,ot,df,"^","\\hat");Oe(Fe,ot,df,"⃗","\\vec");Oe(Fe,ot,df,"˙","\\dot");Oe(Fe,ot,df,"˚","\\mathring");Oe(Fe,ot,yo,"","\\@imath");Oe(Fe,ot,yo,"","\\@jmath");Oe(Fe,ot,Lr,"ı","ı");Oe(Fe,ot,Lr,"ȷ","ȷ");Oe(xi,ot,Lr,"ı","\\i",!0);Oe(xi,ot,Lr,"ȷ","\\j",!0);Oe(xi,ot,Lr,"ß","\\ss",!0);Oe(xi,ot,Lr,"æ","\\ae",!0);Oe(xi,ot,Lr,"œ","\\oe",!0);Oe(xi,ot,Lr,"ø","\\o",!0);Oe(xi,ot,Lr,"Æ","\\AE",!0);Oe(xi,ot,Lr,"Œ","\\OE",!0);Oe(xi,ot,Lr,"Ø","\\O",!0);Oe(xi,ot,df,"ˊ","\\'");Oe(xi,ot,df,"ˋ","\\`");Oe(xi,ot,df,"ˆ","\\^");Oe(xi,ot,df,"˜","\\~");Oe(xi,ot,df,"ˉ","\\=");Oe(xi,ot,df,"˘","\\u");Oe(xi,ot,df,"˙","\\.");Oe(xi,ot,df,"¸","\\c");Oe(xi,ot,df,"˚","\\r");Oe(xi,ot,df,"ˇ","\\v");Oe(xi,ot,df,"¨","\\\"");Oe(xi,ot,df,"˝","\\H");Oe(xi,ot,df,"◯","\\textcircled");var bmr={"--":!0,"---":!0,"``":!0,"''":!0};Oe(xi,ot,Lr,"–","--",!0);Oe(xi,ot,Lr,"–","\\textendash");Oe(xi,ot,Lr,"—","---",!0);Oe(xi,ot,Lr,"—","\\textemdash");Oe(xi,ot,Lr,"‘","`",!0);Oe(xi,ot,Lr,"‘","\\textquoteleft");Oe(xi,ot,Lr,"’","'",!0);Oe(xi,ot,Lr,"’","\\textquoteright");Oe(xi,ot,Lr,"“","``",!0);Oe(xi,ot,Lr,"“","\\textquotedblleft");Oe(xi,ot,Lr,"”","''",!0);Oe(xi,ot,Lr,"”","\\textquotedblright");Oe(Fe,ot,Lr,"°","\\degree",!0);Oe(xi,ot,Lr,"°","\\degree");Oe(xi,ot,Lr,"°","\\textdegree",!0);Oe(Fe,ot,Lr,"£","\\pounds");Oe(Fe,ot,Lr,"£","\\mathsterling",!0);Oe(xi,ot,Lr,"£","\\pounds");Oe(xi,ot,Lr,"£","\\textsterling",!0);Oe(Fe,ar,Lr,"✠","\\maltese");Oe(xi,ar,Lr,"✠","\\maltese");var Igr='0123456789/@."';for(Wte=0;Wte{var r=e.charCodeAt(0),i=e.charCodeAt(1),a=(r-55296)*1024+(i-56320)+65536;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return Fgr[o]}else if(120782<=a&&a<=120831){var l=Math.floor((a-120782)/10);return _9n[l]}else if(a===120485||a===120486)return Fgr[0];else if(120486{if(YN(e.classes)!==YN(r.classes)||e.skew!==r.skew||e.maxFontSize!==r.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var i=e.classes[0];if(i==="mbin"||i==="mord")return!1}for(var a of Object.keys(e.style))if(e.style[a]!==r.style[a])return!1;for(var o of Object.keys(r.style))if(e.style[o]!==r.style[o])return!1;return!0},ymr=(e)=>{for(var r=0;ri)i=h.height;if(h.depth>a)a=h.depth;if(h.maxFontSize>o)o=h.maxFontSize}r.height=i,r.depth=a,r.maxFontSize=o},Ui=function(r,i,a,o){var l=new bP(r,i,a,o);return qje(l),l},WN=(e,r,i,a)=>new bP(e,r,i,a),kV=function(r,i,a){var o=Ui([r],[],i);return o.height=Math.max(a||i.fontMetrics().defaultRuleThickness,i.minRuleThickness),o.style.borderBottomWidth=oa(o.height),o.maxFontSize=1,o},T9n=function(r,i,a,o){var l=new ire(r,i,a,o);return qje(l),l},hR=function(r){var i=new mP(r);return qje(i),i},AV=function(r,i){if(r instanceof mP)return Ui([],[r],i);return r},x9n=function(r){if(r.positionType==="individualShift"){var i=r.children,a=[i[0]],o=-i[0].shift-i[0].elem.depth,l=o;for(var h=1;h{var i=Ui(["mspace"],[],r),a=Jf(e,r);return i.style.marginRight=oa(a),i},Ove=(e,r,i)=>{var a,o;switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}if(r==="textbf"&&i==="textit")o="BoldItalic";else if(r==="textbf")o="Bold";else if(i==="textit")o="Italic";else o="Regular";return a+"-"+o},Ije={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},_mr={vec:["vec",0.471,0.714],oiintSize1:["oiintSize1",0.957,0.499],oiintSize2:["oiintSize2",1.472,0.659],oiiintSize1:["oiiintSize1",1.304,0.499],oiiintSize2:["oiiintSize2",1.98,0.659]},Emr=function(r,i){var a=_mr[r],o=a[0],l=a[1],h=a[2],d=new lR(o),p=new Gk([d],{width:oa(l),height:oa(h),style:"width:"+oa(l),viewBox:"0 0 "+1000*l+" "+1000*h,preserveAspectRatio:"xMinYMin"}),m=WN(["katex-overlay"],[p],i);return m.height=h,m.style.height=oa(h),m.style.width=oa(l),m},Zf={number:3,unit:"mu"},pP={number:4,unit:"mu"},nR={number:5,unit:"mu"},C9n={mord:{mop:Zf,mbin:pP,mrel:nR,minner:Zf},mop:{mord:Zf,mop:Zf,mrel:nR,minner:Zf},mbin:{mord:pP,mop:pP,mopen:pP,minner:pP},mrel:{mord:nR,mop:nR,mopen:nR,minner:nR},mopen:{},mclose:{mop:Zf,mbin:pP,mrel:nR,minner:Zf},mpunct:{mord:Zf,mop:Zf,mrel:nR,mopen:Zf,mclose:Zf,mpunct:Zf,minner:Zf},minner:{mord:Zf,mop:Zf,mbin:pP,mrel:nR,mopen:Zf,mpunct:Zf,minner:Zf}},k9n={mord:{mop:Zf},mop:{mord:Zf,mop:Zf},mbin:{},mrel:{},mopen:{},mclose:{mop:Zf},mpunct:{},minner:{mop:Zf}},wmr={},ere={},tre={};function Ba(e){var{type:r,names:i,htmlBuilder:a,mathmlBuilder:o}=e;for(var l=0;l{var A=k.classes[0],R=x.classes[0];if(A==="mbin"&&R9n.has(R))k.classes[0]="mord";else if(R==="mbin"&&A9n.has(A))x.classes[0]="mord"},{node:E},w,T),Oje(l,(x,k)=>{var A,R,N=Lje(k),L=Lje(x),B=N&&L?x.hasClass("mtight")?(A=k9n[N])==null?void 0:A[L]:(R=C9n[N])==null?void 0:R[L]:null;if(B)return vmr(B,m)},{node:E},w,T),l},Oje=function(r,i,a,o,l){if(o)r.push(o);var h=0;for(;h(w)=>{r.splice(E+1,0,w),h++})(h)}if(o)r.pop()},Smr=function(r){if(r instanceof mP||r instanceof ire||r instanceof bP&&r.hasClass("enclosing"))return r;return null},Nje=function(r,i){var a=Smr(r);if(a){var o=a.children;if(o.length){if(i==="right")return Nje(o[o.length-1],"right");else if(i==="left")return Nje(o[0],"left")}}return r},Lje=function(r,i){if(!r)return null;if(i)r=Nje(r,i);var a=r.classes[0];return O9n[a]||null},nre=function(r,i){var a=["nulldelimiter"].concat(r.baseSizingClasses());return Ui(i.concat(a))},Au=function(r,i,a){if(!r)return Ui();if(ere[r.type]){var o=ere[r.type](r,i);if(a&&i.size!==a.size){o=Ui(i.sizingClasses(a),[o],i);var l=i.sizeMultiplier/a.sizeMultiplier;o.height*=l,o.depth*=l}return o}else throw new Wi("Got group of unknown type: '"+r.type+"'")};function Nve(e,r){var i=Ui(["katex-base"],e,r),a=Ui(["katex-strut"]);if(a.style.height=oa(i.height+i.depth),i.depth)a.style.verticalAlign=oa(-i.depth);return i.children.unshift(a),i}function Mje(e,r){var i=null;if(e.length===1&&e[0].type==="tag")i=e[0].tag,e=e[0].body;var a=Xg(e,r,"root"),o;if(a.length===2&&a[1].hasClass("katex-tag"))o=a.pop();var l=[],h=[];for(var d=0;d0)l.push(Nve(h,r)),h=[];l.push(a[d])}if(h.length>0)l.push(Nve(h,r));var m;if(i)m=Nve(Xg(i,r,!0),r),m.classes=["katex-tag"],l.push(m);else if(o)l.push(o);var y=Ui(["katex-html"],l);if(y.setAttribute("aria-hidden","true"),m){var E=m.children[0];if(E.style.height=oa(y.height+y.depth),y.depth)E.style.verticalAlign=oa(-y.depth)}return y}function Tmr(e){return new mP(e)}class Zi{constructor(e,r,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=i||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var i=r[0],a=r[1];e.setAttribute(i,a)}if(this.classes.length>0)e.className=YN(this.classes);for(var o=0;o0)e+=' class ="'+Yb(YN(this.classes))+'"';e+=">";for(var o=0;o",e}toText(){return this.children.map((e)=>e.toText()).join("")}}class T0{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Yb(this.toText())}toText(){return this.text}}class Yje{constructor(e){if(this.width=void 0,this.character=void 0,this.width=e,e>=0.05555&&e<=0.05556)this.character=" ";else if(e>=0.1666&&e<=0.1667)this.character=" ";else if(e>=0.2222&&e<=0.2223)this.character=" ";else if(e>=0.2777&&e<=0.2778)this.character="  ";else if(e>=-0.05556&&e<=-0.05555)this.character=" ⁣";else if(e>=-0.1667&&e<=-0.1666)this.character=" ⁣";else if(e>=-0.2223&&e<=-0.2222)this.character=" ⁣";else if(e>=-0.2778&&e<=-0.2777)this.character=" ⁣";else this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);else{var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",oa(this.width)),e}}toMarkup(){if(this.character)return""+this.character+"";else return''}toText(){if(this.character)return this.character;else return" "}}var N9n=new Set(["\\imath","\\jmath"]),L9n=new Set(["mrow","mtable"]),$S=function(r,i,a){var o,l;if(hf[i][r]&&hf[i][r].replace&&r.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(bmr,r)&&((a==null||(o=a.fontFamily)==null?void 0:o.slice(4,6))==="tt"||(a==null||(l=a.font)==null?void 0:l.slice(4,6))==="tt")))r=hf[i][r].replace;return new T0(r)},Wje=function(r){if(r.length===1)return r[0];else return new Zi("mrow",r)},M9n={mathit:"italic",boldsymbol:(e)=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},jje=(e,r)=>{if(e.mode==="text"){if(r.fontFamily==="texttt")return"monospace";else if(r.fontFamily==="textsf")if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"sans-serif-bold-italic";else if(r.fontShape==="textit")return"sans-serif-italic";else if(r.fontWeight==="textbf")return"bold-sans-serif";else return"sans-serif";else if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";else if(r.fontShape==="textit")return"italic";else if(r.fontWeight==="textbf")return"bold"}var i=r.font;if(!i||i==="mathnormal")return null;var a=e.mode,o=M9n[i];if(o)return typeof o==="function"?o(e):o;var l=e.text;if(N9n.has(l))return null;if(hf[a][l]){var h=hf[a][l].replace;if(h)l=h}var d=Ije[i].fontName;if(Vje(l,d,a))return Ije[i].variant;return null};function fje(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var r=e.children[0];return r instanceof T0&&r.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var i=e.children[0];return i instanceof T0&&i.text===","}else return!1}var BE=function(r,i,a){if(r.length===1){var o=Vh(r[0],i);if(a&&o instanceof Zi&&o.type==="mo")o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em");return[o]}var l=[],h;for(var d=0;d=1&&(h.type==="mn"||fje(h))){var m=p.children[0];if(m instanceof Zi&&m.type==="mn")m.children=[...h.children,...m.children],l.pop()}else if(h.type==="mi"&&h.children.length===1){var y=h.children[0];if(y instanceof T0&&y.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var E=p.children[0];if(E instanceof T0&&E.text.length>0)E.text=E.text.slice(0,1)+"̸"+E.text.slice(1),l.pop()}}}l.push(p),h=p}return l},jN=function(r,i,a){return Wje(BE(r,i,a))},Vh=function(r,i){if(!r)return new Zi("mrow");if(tre[r.type])return tre[r.type](r,i);else throw new Wi("Got group of unknown type: '"+r.type+"'")};function $gr(e,r,i,a,o){var l=BE(e,i),h;if(l.length===1&&l[0]instanceof Zi&&L9n.has(l[0].type))h=l[0];else h=new Zi("mrow",l);var d=new Zi("annotation",[new T0(r)]);d.setAttribute("encoding","application/x-tex");var p=new Zi("semantics",[h,d]),m=new Zi("math",[p]);if(m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a)m.setAttribute("display","block");var y=o?"katex":"katex-mathml";return Ui([y],[m])}var D9n=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Ugr=[0.5,0.6,0.7,0.8,0.9,1,1.2,1.44,1.728,2.074,2.488],Ggr=function(r,i){return i.size<2?r:D9n[r-1][i.size-1]};class sR{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||sR.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Ugr[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(r,e),new sR(r)}havingStyle(e){if(this.style===e)return this;else return this.extend({style:e,size:Ggr(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){if(this.size===e&&this.textSize===e)return this;else return this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Ugr[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Ggr(sR.BASESIZE,e);if(this.size===r&&this.textSize===sR.BASESIZE&&this.style===e)return this;else return this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){if(e.size!==this.size)return["katex-sizing","reset-size"+e.size,"size"+this.size];else return[]}baseSizingClasses(){if(this.size!==sR.BASESIZE)return["katex-sizing","reset-size"+this.size,"size"+sR.BASESIZE];else return[]}fontMetrics(){if(!this._fontMetrics)this._fontMetrics=y9n(this.size);return this._fontMetrics}getColor(){if(this.phantom)return"transparent";else return this.color}}sR.BASESIZE=6;var xmr=(e)=>new sR({style:e.displayMode?ul.DISPLAY:ul.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Cmr=function(r,i){if(i.displayMode){var a=["katex-display"];if(i.leqno)a.push("leqno");if(i.fleqn)a.push("fleqn");r=Ui(a,[r])}return r},P9n=function(r,i,a){var o=xmr(a),l;if(a.output==="mathml")return $gr(r,i,o,a.displayMode,!0);else if(a.output==="html"){var h=Mje(r,o);l=Ui(["katex"],[h])}else{var d=$gr(r,i,o,a.displayMode,!1),p=Mje(r,o);l=Ui(["katex"],[d,p])}return Cmr(l,a)},B9n=function(r,i){var a=xmr(i),o=Mje(r,a),l=Ui(["katex"],[o]);return Cmr(l,i)},F9n={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Yve=function(r){var i=new Zi("mo",[new T0(F9n[r.replace(/^\\/,"")])]);return i.setAttribute("stretchy","true"),i},$9n={overrightarrow:[["rightarrow"],0.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],0.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],0.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],0.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],0.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],0.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],0.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],0.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],0.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],0.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],0.888,522,"xMaxYMin"],xlongequal:[["longequal"],0.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],0.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],0.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],0.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],0.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],0.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],0.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],0.888,342],undergroup:[["leftgroupunder","rightgroupunder"],0.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},U9n=new Set(["widehat","widecheck","widetilde","utilde"]),Wve=function(r,i){function a(){var p=400000,m=r.label.slice(1);if(U9n.has(m)&&"base"in r){var y=r.base.type==="ordgroup"?r.base.body.length:1,E,w,T;if(y>5)if(m==="widehat"||m==="widecheck")E=420,p=2364,T=0.42,w=m+"4";else E=312,p=2340,T=0.34,w="tilde4";else{var x=[1,1,2,2,3,3][y];if(m==="widehat"||m==="widecheck")p=[0,1062,2364,2364,2364][x],E=[0,239,300,360,420][x],T=[0,0.24,0.3,0.3,0.36,0.42][x],w=m+x;else p=[0,600,1033,2339,2340][x],E=[0,260,286,306,312][x],T=[0,0.26,0.286,0.3,0.306,0.34][x],w="tilde"+x}var k=new lR(w),A=new Gk([k],{width:"100%",height:oa(T),viewBox:"0 0 "+p+" "+E,preserveAspectRatio:"none"});return{span:WN([],[A],i),minWidth:0,height:T}}else{var R=[],N=$9n[m];if(!N)throw Error('No SVG data for "'+m+'".');var L=N[0],B=N[1],D=N[2],P=D/1000,F=L.length,H,K;if(F===1){if(N.length!==4)throw Error('Expected 4-tuple for single-path SVG data "'+m+'".');H=["hide-tail"],K=[N[3]]}else if(F===2)H=["halfarrow-left","halfarrow-right"],K=["xMinYMin","xMaxYMin"];else if(F===3)H=["brace-left","brace-center","brace-right"],K=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error(`Correct katexImagesData or update code here to support - `+F+" children.");for(var Q=0;Q0)l.style.minWidth=oa(h);return l},G9n=function(r,i,a,o,l){var h,d=r.height+r.depth+a+o;if(/fbox|color|angl/.test(i)){if(h=Ui(["katex-stretchy",i],[],l),i==="fbox"){var p=l.color&&l.getColor();if(p)h.style.borderColor=p}}else{var m=[];if(/^[bx]cancel$/.test(i))m.push(new Gve({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"}));if(/^x?cancel$/.test(i))m.push(new Gve({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var y=new Gk(m,{width:"100%",height:oa(d)});h=WN([],[y],l)}return h.height=d,h.style.height=oa(d),h},z9n=["bin","close","inner","open","punct","rel"],V9n=["accent-token","mathord","op-token","spacing","textord"],H9n=new Set(z9n),q9n=new Set(V9n);function Y9n(e){return H9n.has(e)}function gc(e,r){if(!e||e.type!==r)throw Error("Expected node of type "+r+", but got "+(e?"node of type "+e.type:String(e)));return e}function jve(e){var r=Kve(e);if(!r)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return r}function Kve(e){if(e.type==="atom"||q9n.has(e.type))return e;return null}function Kje(e,r,i){var a="";for(var o of e.body)if(o.type==="textord")a+=o.text;else if(i&&o.type==="spacing"&&o.text===" ")a+=" ";else throw new Wi(r,e);return a}var kmr=(e)=>{if(e instanceof U_)return e;if(m9n(e)&&e.children.length===1)return kmr(e.children[0])},Amr=(e,r)=>{var i,a,o;if(e&&e.type==="supsub")a=gc(e.base,"accent"),i=a.base,e.base=i,o=g9n(Au(e,r)),e.base=a;else a=gc(e,"accent"),i=a.base;var l=Au(i,r.havingCrampedStyle()),h=a.isShifty&&cR(i),d=0;if(h){var p,m;d=(p=(m=kmr(l))==null?void 0:m.skew)!=null?p:0}var y=a.label==="\\c",E=y?l.height+l.depth:Math.min(l.height,r.fontMetrics().xHeight),w;if(!a.isStretchy){var T,x;if(a.label==="\\vec")T=Emr("vec",r),x=_mr.vec[1];else if(T=qve({type:"textord",mode:a.mode,text:a.label},r),T=p9n(T),T.italic=0,x=T.width,y)E+=T.depth;w=Ui(["accent-body"],[T]);var k=a.label==="\\textcircled";if(k)w.classes.push("accent-full"),E=l.height;var A=d;if(!k)A-=x/2;if(w.style.left=oa(A),a.label==="\\textcircled")w.style.top=".2em";w=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-E},{type:"elem",elem:w}]})}else w=Wve(a,r),w=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:w,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+oa(2*d)+")",marginLeft:oa(2*d)}:void 0}]});var R=Ui(["mord","katex-accent"],[w],r);if(o)return o.children[0]=R,o.height=Math.max(R.height,o.height),o.classes[0]="mord",o;else return R};var W9n=(e,r)=>{var i=e.isStretchy?Yve(e.label):new Zi("mo",[$S(e.label,e.mode)]),a=new Zi("mover",[Vh(e.base,r),i]);return a.setAttribute("accent","true"),a},j9n=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e)=>"\\"+e).join("|"));Ba({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:(e,r)=>{var i=rre(r[0]),a=!j9n.test(e.funcName),o=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:o,base:i}},htmlBuilder:Amr,mathmlBuilder:W9n});Ba({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.","\\\"","\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(e,r)=>{var i=r[0],a=e.parser.mode;if(a==="math")$_({strict:e.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+e.funcName+" works only in text mode",report:!0}),a="text";return{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:i}}});Ba({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"accentUnder",mode:i.mode,label:a,base:o}},htmlBuilder:(e,r)=>{var i=Au(e.base,r),a=Wve(e,r),o=e.label==="\\utilde"?0.12:0,l=Wu({positionType:"top",positionData:i.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:i}]});return Ui(["mord","accentunder"],[l],r)},mathmlBuilder:(e,r)=>{var i=Yve(e.label),a=new Zi("munder",[Vh(e.base,r),i]);return a.setAttribute("accentunder","true"),a}});var Lve=(e)=>{var r=new Zi("mpadded",e?[e]:[]);return r.setAttribute("width","+0.6em"),r.setAttribute("lspace","0.3em"),r};Ba({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(e,r,i){var{parser:a,funcName:o}=e;return{type:"xArrow",mode:a.mode,label:o,body:r[0],below:i[0]}},htmlBuilder(e,r){var i=r.style,a=r.havingStyle(i.sup()),o=AV(Au(e.body,a,r),r),l=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(l+"-arrow-pad");var h;if(e.below)a=r.havingStyle(i.sub()),h=AV(Au(e.below,a,r),r),h.classes.push(l+"-arrow-pad");var d=Wve(e,r),p=-r.fontMetrics().axisHeight+0.5*d.height,m=-r.fontMetrics().axisHeight-0.5*d.height-0.111;if(o.depth>0.25||e.label==="\\xleftequilibrium")m-=o.depth;var y;if(h){var E=-r.fontMetrics().axisHeight+h.height+0.5*d.height+0.111;y=Wu({positionType:"individualShift",children:[{type:"elem",elem:o,shift:m},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:h,shift:E}]})}else y=Wu({positionType:"individualShift",children:[{type:"elem",elem:o,shift:m},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]}]});return Ui(["mrel","x-arrow"],[y],r)},mathmlBuilder(e,r){var i=Yve(e.label);i.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var o=Lve(Vh(e.body,r));if(e.below){var l=Lve(Vh(e.below,r));a=new Zi("munderover",[i,l,o])}else a=new Zi("mover",[i,o])}else if(e.below){var h=Lve(Vh(e.below,r));a=new Zi("munder",[i,h])}else a=Lve(),a=new Zi("mover",[i,a]);return a}});function K9n(e,r){var i=Xg(e.body,r,!0);return Ui([e.mclass],i,r)}function X9n(e,r){var i,a=BE(e.body,r);if(e.mclass==="minner")i=new Zi("mpadded",a);else if(e.mclass==="mord")if(e.isCharacterBox)i=a[0],i.type="mi";else i=new Zi("mi",a);else{if(e.isCharacterBox)i=a[0],i.type="mo";else i=new Zi("mo",a);if(e.mclass==="mbin")i.attributes.lspace="0.22em",i.attributes.rspace="0.22em";else if(e.mclass==="mpunct")i.attributes.lspace="0em",i.attributes.rspace="0.17em";else if(e.mclass==="mopen"||e.mclass==="mclose")i.attributes.lspace="0em",i.attributes.rspace="0em"}return i}Ba({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"mclass",mode:i.mode,mclass:"m"+a.slice(5),body:ag(o),isCharacterBox:cR(o)}},htmlBuilder:K9n,mathmlBuilder:X9n});var Xve=(e)=>{var r=e.type==="ordgroup"&&e.body.length?e.body[0]:e;if(r.type==="atom"&&(r.family==="bin"||r.family==="rel"))return"m"+r.family;else return"mord"};Ba({type:"mclass",names:["\\@binrel"],numArgs:2,handler(e,r){var i=e.parser;return{type:"mclass",mode:i.mode,mclass:Xve(r[0]),body:ag(r[1]),isCharacterBox:cR(r[1])}}});Ba({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(e,r){var{parser:i,funcName:a}=e,o=r[1],l=r[0],h;if(a!=="\\stackrel")h=Xve(o);else h="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ag(o)},p=a==="\\underset"?{type:"supsub",mode:l.mode,base:d,sub:l}:{type:"supsub",mode:l.mode,base:d,sup:l};return{type:"mclass",mode:i.mode,mclass:h,body:[p],isCharacterBox:cR(p)}}});Ba({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser;return{type:"pmb",mode:i.mode,mclass:Xve(r[0]),body:ag(r[0])}},htmlBuilder(e,r){var i=Xg(e.body,r,!0),a=Ui([e.mclass],i,r);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,r){var i=BE(e.body,r),a=new Zi("mstyle",i);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var Q9n={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},zgr=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),Vgr=(e)=>e.type==="textord"&&e.text==="@",Z9n=(e,r)=>(e.type==="mathord"||e.type==="atom")&&e.text===r;function J9n(e,r,i){var a=Q9n[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(a,[r[0]],[r[1]]);case"\\uparrow":case"\\downarrow":{var o=i.callFunction("\\\\cdleft",[r[0]],[]),l={type:"atom",text:a,mode:"math",family:"rel"},h=i.callFunction("\\Big",[l],[]),d=i.callFunction("\\\\cdright",[r[1]],[]),p={type:"ordgroup",mode:"math",body:[o,h,d]};return i.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return i.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function ePn(e){var r=[];e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();while(!0){r.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var i=e.fetch().text;if(i==="&"||i==="\\\\")e.consume();else if(i==="\\end"){if(r[r.length-1].length===0)r.pop();break}else throw new Wi("Expected \\\\ or \\cr or \\end",e.nextToken)}var a=[],o=[a];for(var l=0;lAV".includes(m))for(var E=0;E<2;E++){var w=!0;for(var T=p+1;TAV=|." after @',h[p]);var x=J9n(m,y,e),k={type:"styling",body:[x],mode:"math",style:"display",resetFont:!0};a.push(k),d=zgr()}if(l%2===0)a.push(d);else a.shift();a=[],o.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var A=Array(o[0].length).fill({type:"align",align:"c",pregap:0.25,postgap:0.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:Array(o.length+1).fill([])}}Ba({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e;return{type:"cdlabel",mode:i.mode,side:a.slice(4),label:r[0]}},htmlBuilder(e,r){var i=r.havingStyle(r.style.sup()),a=AV(Au(e.label,i,r),r);return a.classes.push("cd-label-"+e.side),a.style.bottom=oa(0.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,r){var i=new Zi("mrow",[Vh(e.label,r)]);if(i=new Zi("mpadded",[i]),i.setAttribute("width","0"),e.side==="left")i.setAttribute("lspace","-1width");return i.setAttribute("voffset","0.7em"),i=new Zi("mstyle",[i]),i.setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}});Ba({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(e,r){var i=e.parser;return{type:"cdlabelparent",mode:i.mode,fragment:r[0]}},htmlBuilder(e,r){var i=AV(Au(e.fragment,r),r);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder(e,r){return new Zi("mrow",[Vh(e.fragment,r)])}});Ba({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser,a=gc(r[0],"ordgroup"),o=Kje(a,"\\@char has non-numeric argument"),l=parseInt(o),h;if(isNaN(l))throw new Wi("\\@char has non-numeric argument "+o);else if(l<0||l>1114111)throw new Wi("\\@char with invalid code point "+o);else if(l<=65535)h=String.fromCharCode(l);else l-=65536,h=String.fromCharCode((l>>10)+55296,(l&1023)+56320);return{type:"textord",mode:i.mode,text:h}}});var tPn=(e,r)=>{var i=Xg(e.body,r.withColor(e.color),!1);return hR(i)},rPn=(e,r)=>{var i=BE(e.body,r.withColor(e.color)),a=new Zi("mstyle",i);return a.setAttribute("mathcolor",e.color),a};Ba({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(e,r){var i=e.parser,a=gc(r[0],"color-token").color,o=r[1];return{type:"color",mode:i.mode,color:a,body:ag(o)}},htmlBuilder:tPn,mathmlBuilder:rPn});Ba({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(e,r){var{parser:i,breakOnTokenText:a}=e,o=gc(r[0],"color-token").color;i.gullet.macros.set("\\current@color",o);var l=i.parseExpression(!0,a);return{type:"color",mode:i.mode,color:o,body:l}}});Ba({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var r=e.parser,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!$_({strict:r.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:r.mode,newLine:a,size:i&&gc(i,"size").value}},htmlBuilder(e,r){var i=Ui(["mspace"],[],r);if(e.newLine){if(i.classes.push("katex-newline"),e.size)i.style.marginTop=oa(Jf(e.size,r))}return i},mathmlBuilder(e,r){var i=new Zi("mspace");if(e.newLine){if(i.setAttribute("linebreak","newline"),e.size)i.setAttribute("height",oa(Jf(e.size,r)))}return i}});var Dje={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Rmr=(e)=>{var r=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new Wi("Expected a control sequence",e);return r},nPn=(e)=>{var r=e.gullet.popToken();if(r.text==="="){if(r=e.gullet.popToken(),r.text===" ")r=e.gullet.popToken()}return r},Imr=(e,r,i,a)=>{var o=e.gullet.macros.get(i.text);if(o==null)i.noexpand=!0,o={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)};e.gullet.macros.set(r,o,a)};Ba({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(e){var{parser:r,funcName:i}=e;r.consumeSpaces();var a=r.fetch();if(Dje[a.text]){if(i==="\\global"||i==="\\\\globallong")a.text=Dje[a.text];return gc(r.parseFunction(),"internal")}throw new Wi("Invalid token after macro prefix",a)}});Ba({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=r.gullet.popToken(),o=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Wi("Expected a control sequence",a);var l=0,h,d=[[]];while(r.gullet.future().text!=="{")if(a=r.gullet.popToken(),a.text==="#"){if(r.gullet.future().text==="{"){h=r.gullet.future(),d[l].push("{");break}if(a=r.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Wi('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==l+1)throw new Wi('Argument number "'+a.text+'" out of order');l++,d.push([])}else if(a.text==="EOF")throw new Wi("Expected a macro definition");else d[l].push(a.text);var p=r.gullet.consumeArg(),m=p.tokens;if(h)m.unshift(h);if(i==="\\edef"||i==="\\xdef")m=r.gullet.expandTokens(m),m.reverse();return r.gullet.macros.set(o,{tokens:m,numArgs:l,delimiters:d},i===Dje[i]),{type:"internal",mode:r.mode}}});Ba({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=Rmr(r.gullet.popToken());r.gullet.consumeSpaces();var o=nPn(r);return Imr(r,a,o,i==="\\\\globallet"),{type:"internal",mode:r.mode}}});Ba({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=Rmr(r.gullet.popToken()),o=r.gullet.popToken(),l=r.gullet.popToken();return Imr(r,a,l,i==="\\\\globalfuture"),r.gullet.pushToken(l),r.gullet.pushToken(o),{type:"internal",mode:r.mode}}});var Qte=function(r,i,a){var o=hf.math[r]&&hf.math[r].replace,l=Vje(o||r,i,a);if(!l)throw Error("Unsupported symbol "+r+" and font size "+i+".");return l},Xje=function(r,i,a,o){var l=a.havingBaseStyle(i),h=Ui(o.concat(l.sizingClasses(a)),[r],a),d=l.sizeMultiplier/a.sizeMultiplier;return h.height*=d,h.depth*=d,h.maxFontSize=l.sizeMultiplier,h},Omr=function(r,i,a){var o=i.havingBaseStyle(a),l=(1-i.sizeMultiplier/o.sizeMultiplier)*i.fontMetrics().axisHeight;r.classes.push("delimcenter"),r.style.top=oa(l),r.height-=l,r.depth+=l},iPn=function(r,i,a,o,l,h){var d=ov(r,"Main-Regular",l,o),p=Xje(d,i,o,h);if(a)Omr(p,o,i);return p},aPn=function(r,i,a,o){return ov(r,"Size"+i+"-Regular",a,o)},Nmr=function(r,i,a,o,l,h){var d=aPn(r,i,l,o),p=Xje(Ui(["delimsizing","size"+i],[d],o),ul.TEXT,o,h);if(a)Omr(p,o,ul.TEXT);return p},pje=function(r,i,a,o){var l;if(i==="Size1-Regular")l="delim-size1";else l="delim-size4";var h=Ui(["delimsizinginner",l],[Ui([],[ov(r,i,a,o)])]);return{type:"elem",elem:h}},gje=function(r,i,a){var o=Uk["Size4-Regular"][r.charCodeAt(0)]?Uk["Size4-Regular"][r.charCodeAt(0)][4]:Uk["Size1-Regular"][r.charCodeAt(0)][4],l=new lR("inner",l9n(r,Math.round(1000*i))),h=new Gk([l],{width:oa(o),height:oa(i),style:"width:"+oa(o),viewBox:"0 0 "+1000*o+" "+Math.round(1000*i),preserveAspectRatio:"xMinYMin"}),d=WN([],[h],a);return d.height=i,d.style.height=oa(i),d.style.width=oa(o),{type:"elem",elem:d}},Pje=0.008,Mve={type:"kern",size:-1*Pje},sPn=new Set(["|","\\lvert","\\rvert","\\vert"]),oPn=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Lmr=function(r,i,a,o,l,h){var d,p,m,y,E="",w=0;d=m=y=r,p=null;var T="Size1-Regular";if(r==="\\uparrow")m=y="⏐";else if(r==="\\Uparrow")m=y="‖";else if(r==="\\downarrow")d=m="⏐";else if(r==="\\Downarrow")d=m="‖";else if(r==="\\updownarrow")d="\\uparrow",m="⏐",y="\\downarrow";else if(r==="\\Updownarrow")d="\\Uparrow",m="‖",y="\\Downarrow";else if(sPn.has(r))m="∣",E="vert",w=333;else if(oPn.has(r))m="∥",E="doublevert",w=556;else if(r==="["||r==="\\lbrack")d="⎡",m="⎢",y="⎣",T="Size4-Regular",E="lbrack",w=667;else if(r==="]"||r==="\\rbrack")d="⎤",m="⎥",y="⎦",T="Size4-Regular",E="rbrack",w=667;else if(r==="\\lfloor"||r==="⌊")m=d="⎢",y="⎣",T="Size4-Regular",E="lfloor",w=667;else if(r==="\\lceil"||r==="⌈")d="⎡",m=y="⎢",T="Size4-Regular",E="lceil",w=667;else if(r==="\\rfloor"||r==="⌋")m=d="⎥",y="⎦",T="Size4-Regular",E="rfloor",w=667;else if(r==="\\rceil"||r==="⌉")d="⎤",m=y="⎥",T="Size4-Regular",E="rceil",w=667;else if(r==="("||r==="\\lparen")d="⎛",m="⎜",y="⎝",T="Size4-Regular",E="lparen",w=875;else if(r===")"||r==="\\rparen")d="⎞",m="⎟",y="⎠",T="Size4-Regular",E="rparen",w=875;else if(r==="\\{"||r==="\\lbrace")d="⎧",p="⎨",y="⎩",m="⎪",T="Size4-Regular";else if(r==="\\}"||r==="\\rbrace")d="⎫",p="⎬",y="⎭",m="⎪",T="Size4-Regular";else if(r==="\\lgroup"||r==="⟮")d="⎧",y="⎩",m="⎪",T="Size4-Regular";else if(r==="\\rgroup"||r==="⟯")d="⎫",y="⎭",m="⎪",T="Size4-Regular";else if(r==="\\lmoustache"||r==="⎰")d="⎧",y="⎭",m="⎪",T="Size4-Regular";else if(r==="\\rmoustache"||r==="⎱")d="⎫",y="⎩",m="⎪",T="Size4-Regular";var x=Qte(d,T,l),k=x.height+x.depth,A=Qte(m,T,l),R=A.height+A.depth,N=Qte(y,T,l),L=N.height+N.depth,B=0,D=1;if(p!==null){var P=Qte(p,T,l);B=P.height+P.depth,D=2}var F=k+L+B,H=Math.max(0,Math.ceil((i-F)/(D*R))),K=F+H*D*R,Q=o.fontMetrics().axisHeight;if(a)Q*=o.sizeMultiplier;var Z=K/2-Q,Y=[];if(E.length>0){var j=K-k-L,te=Math.round(K*1000),X=c9n(E,Math.round(j*1000)),W=new lR(E,X),J=oa(w/1000),z=oa(te/1000),ne=new Gk([W],{width:J,height:z,viewBox:"0 0 "+w+" "+te}),ie=WN([],[ne],o);ie.height=te/1000,ie.style.width=J,ie.style.height=z,Y.push({type:"elem",elem:ie})}else{if(Y.push(pje(y,T,l,o)),Y.push(Mve),p===null){var le=K-k-L+2*Pje;Y.push(gje(m,le,o))}else{var se=(K-k-L-B)/2+2*Pje;Y.push(gje(m,se,o)),Y.push(Mve),Y.push(pje(p,T,l,o)),Y.push(Mve),Y.push(gje(m,se,o))}Y.push(Mve),Y.push(pje(d,T,l,o))}var he=o.havingBaseStyle(ul.TEXT),ye=Wu({positionType:"bottom",positionData:Z,children:Y});return Xje(Ui(["delimsizing","mult"],[ye],he),ul.TEXT,o,h)},mje=80,bje=0.08,yje=function(r,i,a,o,l){var h=o9n(r,o,a),d=new lR(r,h),p=new Gk([d],{width:"400em",height:oa(i),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return WN(["hide-tail"],[p],l)},lPn=function(r,i){var a=i.havingBaseSizing(),o=Fmr("\\surd",r*a.sizeMultiplier,Bmr,a),l=a.sizeMultiplier,h=Math.max(0,i.minRuleThickness-i.fontMetrics().sqrtRuleThickness),d,p,m,y,E;if(o.type==="small"){if(y=1000+1000*h+mje,r<1)l=1;else if(r<1.4)l=0.7;p=(1+h+bje)/l,m=(1+h)/l,d=yje("sqrtMain",p,y,h,i),d.style.minWidth="0.853em",E=0.833/l}else if(o.type==="large")y=(1000+mje)*Zte[o.size],m=(Zte[o.size]+h)/l,p=(Zte[o.size]+h+bje)/l,d=yje("sqrtSize"+o.size,p,y,h,i),d.style.minWidth="1.02em",E=1/l;else p=r+h+bje,m=r+h,y=Math.floor(1000*r+h)+mje,d=yje("sqrtTall",p,y,h,i),d.style.minWidth="0.742em",E=1.056;return d.height=m,d.style.height=oa(p),{span:d,advanceWidth:E,ruleWidth:(i.fontMetrics().sqrtRuleThickness+h)*l}},Mmr=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),cPn=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Dmr=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Zte=[0,1.2,1.8,2.4,3],Pmr=function(r,i,a,o,l){if(r==="<"||r==="\\lt"||r==="⟨")r="\\langle";else if(r===">"||r==="\\gt"||r==="⟩")r="\\rangle";if(Mmr.has(r)||Dmr.has(r))return Nmr(r,i,!1,a,o,l);else if(cPn.has(r))return Lmr(r,Zte[i],!1,a,o,l);else throw new Wi("Illegal delimiter: '"+r+"'")},uPn=[{type:"small",style:ul.SCRIPTSCRIPT},{type:"small",style:ul.SCRIPT},{type:"small",style:ul.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hPn=[{type:"small",style:ul.SCRIPTSCRIPT},{type:"small",style:ul.SCRIPT},{type:"small",style:ul.TEXT},{type:"stack"}],Bmr=[{type:"small",style:ul.SCRIPTSCRIPT},{type:"small",style:ul.SCRIPT},{type:"small",style:ul.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],dPn=function(r){if(r.type==="small")return"Main-Regular";else if(r.type==="large")return"Size"+r.size+"-Regular";else if(r.type==="stack")return"Size4-Regular";else{var i=r.type;throw Error("Add support for delim type '"+i+"' here.")}},Fmr=function(r,i,a,o){var l=Math.min(2,3-o.style.size);for(var h=l;hi)return d}return a[a.length-1]},Bje=function(r,i,a,o,l,h){if(r==="<"||r==="\\lt"||r==="⟨")r="\\langle";else if(r===">"||r==="\\gt"||r==="⟩")r="\\rangle";var d;if(Dmr.has(r))d=uPn;else if(Mmr.has(r))d=Bmr;else d=hPn;var p=Fmr(r,i,d,o);if(p.type==="small")return iPn(r,p.style,a,o,l,h);else if(p.type==="large")return Nmr(r,p.size,a,o,l,h);else return Lmr(r,i,a,o,l,h)},vje=function(r,i,a,o,l,h){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,p=901,m=5/o.fontMetrics().ptPerEm,y=Math.max(i-d,a+d),E=Math.max(y/500*p,2*y-m);return Bje(r,E,!0,o,l,h)},Hgr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},fPn=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function qgr(e){return"isMiddle"in e}function Qve(e,r){var i=Kve(e);if(i&&fPn.has(i.text))return i;else if(i)throw new Wi("Invalid delimiter '"+i.text+"' after '"+r.funcName+"'",e);else throw new Wi("Invalid delimiter type '"+e.type+"'",e)}Ba({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(e,r)=>{var i=Qve(rre(r[0]),e);return{type:"delimsizing",mode:e.parser.mode,size:Hgr[e.funcName].size,mclass:Hgr[e.funcName].mclass,delim:i.text}},htmlBuilder:(e,r)=>{if(e.delim===".")return Ui([e.mclass]);return Pmr(e.delim,e.size,r,e.mode,[e.mclass])},mathmlBuilder:(e)=>{var r=[];if(e.delim!==".")r.push($S(e.delim,e.mode));var i=new Zi("mo",r);if(e.mclass==="mopen"||e.mclass==="mclose")i.setAttribute("fence","true");else i.setAttribute("fence","false");i.setAttribute("stretchy","true");var a=oa(Zte[e.size]);return i.setAttribute("minsize",a),i.setAttribute("maxsize",a),i}});function Ygr(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ba({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&typeof i!=="string")throw new Wi("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Qve(r[0],e).text,color:i}}});Ba({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=Qve(r[0],e),a=e.parser;++a.leftrightDepth;var o=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var l=gc(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:o,left:i.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,r)=>{Ygr(e);var i=Xg(e.body,r,!0,["mopen","mclose"]),a=0,o=0,l=!1;for(var h=0;h{Ygr(e);var i=BE(e.body,r);if(e.left!=="."){var a=new Zi("mo",[$S(e.left,e.mode)]);a.setAttribute("fence","true"),i.unshift(a)}if(e.right!=="."){var o=new Zi("mo",[$S(e.right,e.mode)]);if(o.setAttribute("fence","true"),e.rightColor)o.setAttribute("mathcolor",e.rightColor);i.push(o)}return Wje(i)}});Ba({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=Qve(r[0],e);if(!e.parser.leftrightDepth)throw new Wi("\\middle without preceding \\left",i);return{type:"middle",mode:e.parser.mode,delim:i.text}},htmlBuilder:(e,r)=>{var i;if(e.delim===".")i=nre(r,[]);else i=Pmr(e.delim,1,r,e.mode,[]),i.isMiddle={delim:e.delim,options:r};return i},mathmlBuilder:(e,r)=>{var i=e.delim==="\\vert"||e.delim==="|"?$S("|","text"):$S(e.delim,e.mode),a=new Zi("mo",[i]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var pPn=(e,r)=>{var i=AV(Au(e.body,r),r),a=e.label.slice(1),o=r.sizeMultiplier,l,h,d=cR(e.body);if(a==="sout")l=Ui(["katex-stretchy","katex-sout"]),l.height=r.fontMetrics().defaultRuleThickness/o,h=-0.5*r.fontMetrics().xHeight;else if(a==="phase"){var p=Jf({number:0.6,unit:"pt"},r),m=Jf({number:0.35,unit:"ex"},r),y=r.havingBaseSizing();o=o/y.sizeMultiplier;var E=i.height+i.depth+p+m;i.style.paddingLeft=oa(E/2+p);var w=Math.floor(1000*E*o),T=a9n(w),x=new Gk([new lR("phase",T)],{width:"400em",height:oa(w/1000),viewBox:"0 0 400000 "+w,preserveAspectRatio:"xMinYMin slice"});l=WN(["hide-tail"],[x],r),l.style.height=oa(E),h=i.depth+p+m}else{if(/cancel/.test(a)){if(!d)i.classes.push("cancel-pad")}else if(a==="angl")i.classes.push("anglpad");else i.classes.push("boxpad");var k,A,R=0;if(/box/.test(a))R=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness),k=r.fontMetrics().fboxsep+(a==="colorbox"?0:R),A=k;else if(a==="angl")R=Math.max(r.fontMetrics().defaultRuleThickness,r.minRuleThickness),k=4*R,A=Math.max(0,0.25-i.depth);else k=d?0.2:0,A=k;if(l=G9n(i,a,k,A,r),/fbox|boxed|fcolorbox/.test(a))l.style.borderStyle="solid",l.style.borderWidth=oa(R);else if(a==="angl"&&R!==0.049)l.style.borderTopWidth=oa(R),l.style.borderRightWidth=oa(R);if(h=i.depth+A,e.backgroundColor){if(l.style.backgroundColor=e.backgroundColor,e.borderColor)l.style.borderColor=e.borderColor}}var N;if(e.backgroundColor)N=Wu({positionType:"individualShift",children:[{type:"elem",elem:l,shift:h},{type:"elem",elem:i,shift:0}]});else{var L=/cancel|phase/.test(a)?["svg-align"]:[];N=Wu({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:l,shift:h,wrapperClasses:L}]})}if(/cancel/.test(a))N.height=i.height,N.depth=i.depth;if(/cancel/.test(a)&&!d)return Ui(["mord","cancel-lap"],[N],r);else return Ui(["mord"],[N],r)},gPn=(e,r)=>{var i,a=new Zi(e.label.includes("colorbox")?"mpadded":"menclose",[Vh(e.body,r)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=r.fontMetrics().fboxsep*r.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*i+"pt"),a.setAttribute("height","+"+2*i+"pt"),a.setAttribute("lspace",i+"pt"),a.setAttribute("voffset",i+"pt"),e.label==="\\fcolorbox"){var o=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness);a.setAttribute("style","border: "+oa(o)+" solid "+e.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}if(e.backgroundColor)a.setAttribute("mathbackground",e.backgroundColor);return a};Ba({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(e,r,i){var{parser:a,funcName:o}=e,l=gc(r[0],"color-token").color,h=r[1];return{type:"enclose",mode:a.mode,label:o,backgroundColor:l,body:h}},htmlBuilder:pPn,mathmlBuilder:gPn});Ba({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(e,r,i){var{parser:a,funcName:o}=e,l=gc(r[0],"color-token").color,h=gc(r[1],"color-token").color,d=r[2];return{type:"enclose",mode:a.mode,label:o,backgroundColor:h,borderColor:l,body:d}}});Ba({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(e,r){var i=e.parser;return{type:"enclose",mode:i.mode,label:"\\fbox",body:r[0]}}});Ba({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"enclose",mode:i.mode,label:a,body:o}}});Ba({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e;if(i.mode==="math")$_({strict:i.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var o=r[0];return{type:"enclose",mode:i.mode,label:a,body:o}}});Ba({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(e,r){var i=e.parser;return{type:"enclose",mode:i.mode,label:"\\angl",body:r[0]}}});var $mr={};function zk(e){var{type:r,names:i,props:a,handler:o,htmlBuilder:l,mathmlBuilder:h}=e,d={type:r,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o};for(var p=0;p{var r=e.parser.settings;if(!r.displayMode)throw new Wi("{"+e.envName+"} can be used only in display mode.")},mPn=new Set(["gather","gather*"]);function Qje(e){if(!e.includes("ed"))return!e.includes("*")}function KN(e,r,i){var{hskipBeforeAndAfter:a,addJot:o,cols:l,arraystretch:h,colSeparationType:d,autoTag:p,singleRow:m,emptySingleRow:y,maxNumCols:E,leqno:w}=r;if(e.gullet.beginGroup(),!m)e.gullet.macros.set("\\cr","\\\\\\relax");if(!h){var T=e.gullet.expandMacroAsText("\\arraystretch");if(T==null)h=1;else if(h=parseFloat(T),!h||h<0)throw new Wi("Invalid \\arraystretch: "+T)}e.gullet.beginGroup();var x=[],k=[x],A=[],R=[],N=p!=null?[]:void 0;function L(){if(p)e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){if(N)if(e.gullet.macros.get("\\df@tag"))N.push(e.subparse([new DE("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0);else N.push(Boolean(p)&&e.gullet.macros.get("\\@eqnsw")==="1")}L(),R.push(Wgr(e));while(!0){var D=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var P={type:"ordgroup",mode:e.mode,body:D};if(i)P={type:"styling",mode:e.mode,style:i,resetFont:!0,body:[P]};x.push(P);var F=e.fetch().text;if(F==="&"){if(E&&x.length===E)if(m||d)throw new Wi("Too many tab characters: &",e.nextToken);else $_({strict:e.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0});e.consume()}else if(F==="\\end"){if(B(),x.length===1&&P.type==="styling"&&P.body.length===1&&P.body[0].type==="ordgroup"&&P.body[0].body.length===0&&(k.length>1||!y)&&!Array.isArray(N==null?void 0:N[N.length-1])&&!(p&&(N==null?void 0:N[N.length-1])===!0))k.pop();if(R.length0)L+=0.25;m.push({pos:L,isDashed:oe[pe]})}}B(h[0]);for(a=0;a0){if(Z+=N,Foe))for(a=0;a=d)continue;var Me=void 0;if(o>0||r.hskipBeforeAndAfter){var Xe,je;if(Me=(Xe=(je=he)==null?void 0:je.pregap)!=null?Xe:w,Me!==0)X=Ui(["arraycolsep"],[]),X.style.width=oa(Me),te.push(X)}var Qe=[];for(a=0;a0){var bt=kV("katex-hline",i,y),Pe=kV("katex-hdashline",i,y),Ge=[{type:"elem",elem:ct,shift:0}];while(m.length>0){var qe=m.pop(),Ke=qe.pos-Y;if(qe.isDashed)Ge.push({type:"elem",elem:Pe,shift:Ke});else Ge.push({type:"elem",elem:bt,shift:Ke})}ct=Wu({positionType:"individualShift",children:Ge})}if(J.length===0)return Ui(["mord"],[ct],i);else{var Je=Wu({positionType:"individualShift",children:J}),De=Ui(["katex-tag"],[Je],i);return hR([ct,De])}},bPn={c:"center ",l:"left ",r:"right "},Hk=function(r,i){var a=[],o=new Zi("mtd",[],["mtr-glue"]),l=new Zi("mtd",[],["mml-eqn-num"]);for(var h=0;h0){var x=r.cols,k="",A=!1,R=0,N=x.length;if(x[0].type==="separator")w+="top ",R=1;if(x[x.length-1].type==="separator")w+="bottom ",N-=1;for(var L=R;L0?"left ":"",w+=K[K.length-1].length>0?"right ":"";for(var Q=1;Q0&&E)x=1;a[w]={type:"align",align:T,pregap:x,postgap:0}}return l.colSeparationType=E?"align":"alignat",l};zk({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,r){var i=Kve(r[0]),a=i?[r[0]]:gc(r[0],"ordgroup").body,o=a.map(function(h){var d=jve(h),p=d.text;if("lcr".includes(p))return{type:"align",align:p};else if(p==="|")return{type:"separator",separator:"|"};else if(p===":")return{type:"separator",separator:":"};throw new Wi("Unknown column alignment: "+p,h)}),l={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return KN(e.parser,l,Zje(e.envName))},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],i="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),i=o.fetch().text,!"lcr".includes(i))throw new Wi("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),a.cols=[{type:"align",align:i}]}}var l=KN(e.parser,a,Zje(e.envName)),h=Math.max(0,...l.body.map((d)=>d.length));return l.cols=Array(h).fill({type:"align",align:i}),r?{type:"leftright",mode:e.mode,body:[l],left:r[0],right:r[1],rightColor:void 0}:l},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var r={arraystretch:0.5},i=KN(e.parser,r,"script");return i.colSeparationType="small",i},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["subarray"],props:{numArgs:1},handler(e,r){var i=Kve(r[0]),a=i?[r[0]]:gc(r[0],"ordgroup").body,o=a.map(function(d){var p=jve(d),m=p.text;if("lc".includes(m))return{type:"align",align:m};throw new Wi("Unknown column alignment: "+m,d)});if(o.length>1)throw new Wi("{subarray} can contain only one column");var l={cols:o,hskipBeforeAndAfter:!1,arraystretch:0.5},h=KN(e.parser,l,"script");if(h.body.length>0&&h.body[0].length>1)throw new Wi("{subarray} can contain only one column");return h},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var r={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},i=KN(e.parser,r,Zje(e.envName));return{type:"leftright",mode:e.mode,body:[i],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Gmr,htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){if(mPn.has(e.envName))Zve(e);var r={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Qje(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return KN(e.parser,r,"display")},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Gmr,htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Zve(e);var r={autoTag:Qje(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return KN(e.parser,r,"display")},htmlBuilder:Vk,mathmlBuilder:Hk});zk({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Zve(e),ePn(e.parser)},htmlBuilder:Vk,mathmlBuilder:Hk});Tt("\\nonumber","\\gdef\\@eqnsw{0}");Tt("\\notag","\\nonumber");Ba({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,r){throw new Wi(e.funcName+" valid only within array environment")}});var jgr=$mr;Ba({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(e,r){var{parser:i,funcName:a}=e,o=r[0];if(o.type!=="ordgroup")throw new Wi("Invalid environment name",o);var l=Kje(o,"Environment name should contain only text characters and spaces",!0);if(a==="\\begin"){if(!Object.prototype.hasOwnProperty.call(jgr,l))throw new Wi("No such environment: "+l,o);var h=jgr[l],d=i.parseArguments("\\begin{"+l+"}",h),{args:p,optArgs:m}=d,y={mode:i.mode,envName:l,parser:i},E=h.handler(y,p,m);i.expect("\\end",!1);var w=i.nextToken,T=gc(i.parseFunction(),"environment");if(T.name!==l)throw new Wi("Mismatch: \\begin{"+l+"} matched by \\end{"+T.name+"}",w);return E}return{type:"environment",mode:i.mode,name:l,nameGroup:o}}});var yPn=(e,r)=>{var i=e.font,a=r.withFont(i);return Au(e.body,a)},vPn=(e,r)=>{var i=e.font,a=r.withFont(i);return Vh(e.body,a)},Kgr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Ba({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=rre(r[0]),l=a in Kgr?Kgr[a]:a;return{type:"font",mode:i.mode,font:l.slice(1),body:o}},htmlBuilder:yPn,mathmlBuilder:vPn});Ba({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"mclass",mode:i.mode,mclass:Xve(a),body:[{type:"font",mode:i.mode,font:"boldsymbol",body:a}],isCharacterBox:cR(a)}}});Ba({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(e,r)=>{var{parser:i,funcName:a,breakOnTokenText:o}=e,l=i.mode,h=i.parseExpression(!0,o);return{type:"font",mode:l,font:"math"+a.slice(1),body:{type:"ordgroup",mode:i.mode,body:h}}}});var _Pn=(e,r)=>{var i=r.style,a=i.fracNum(),o=i.fracDen(),l;l=r.havingStyle(a);var h=Au(e.numer,l,r);if(e.continued){var d=8.5/r.fontMetrics().ptPerEm,p=3.5/r.fontMetrics().ptPerEm;h.height=h.height0)x=3*w;else x=7*w;k=r.fontMetrics().denom1}else{if(E>0)T=r.fontMetrics().num2,x=w;else T=r.fontMetrics().num3,x=3*w;k=r.fontMetrics().denom2}var A;if(!y){var R=T-h.depth-(m.height-k);if(R{var i=new Zi("mfrac",[Vh(e.numer,r),Vh(e.denom,r)]);if(!e.hasBarLine)i.setAttribute("linethickness","0px");else if(e.barSize){var a=Jf(e.barSize,r);i.setAttribute("linethickness",oa(a))}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var l=new Zi("mo",[new T0(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(i),e.rightDelim!=null){var h=new Zi("mo",[new T0(e.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),o.push(h)}return Wje(o)}return i},zmr=(e,r)=>{if(!r)return e;var i={type:"styling",mode:e.mode,style:r,body:[e]};return i};Ba({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0],l=r[1],h,d=null,p=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":h=!0;break;case"\\\\atopfrac":h=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":h=!1,d="(",p=")";break;case"\\\\bracefrac":h=!1,d="\\{",p="\\}";break;case"\\\\brackfrac":h=!1,d="[",p="]";break;default:throw Error("Unrecognized genfrac command")}var m=a==="\\cfrac",y=null;if(m||a.startsWith("\\d"))y="display";else if(a.startsWith("\\t"))y="text";return zmr({type:"genfrac",mode:i.mode,numer:o,denom:l,continued:m,hasBarLine:h,leftDelim:d,rightDelim:p,barSize:null},y)},htmlBuilder:_Pn,mathmlBuilder:EPn});Ba({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(e){var{parser:r,funcName:i,token:a}=e,o;switch(i){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:o,token:a}}});var Xgr=["display","text","script","scriptscript"],Qgr=function(r){var i=null;if(r.length>0)i=r,i=i==="."?null:i;return i};Ba({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(e,r){var i=e.parser,a=r[4],o=r[5],l=rre(r[0]),h=l.type==="atom"&&l.family==="open"?Qgr(l.text):null,d=rre(r[1]),p=d.type==="atom"&&d.family==="close"?Qgr(d.text):null,m=gc(r[2],"size"),y,E=null;if(m.isBlank)y=!0;else E=m.value,y=E.number>0;var w=null,T=r[3];if(T.type==="ordgroup"){if(T.body.length>0){var x=gc(T.body[0],"textord");w=Xgr[Number(x.text)]}}else T=gc(T,"textord"),w=Xgr[Number(T.text)];return zmr({type:"genfrac",mode:i.mode,numer:a,denom:o,continued:!1,hasBarLine:y,barSize:E,leftDelim:h,rightDelim:p},w)}});Ba({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(e,r){var i=e.parser;e.funcName;var a=e.token;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:gc(r[0],"size").value,token:a}}});Ba({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(e,r)=>{var i=e.parser;e.funcName;var a=r[0],o=gc(r[1],"infix").size;if(!o)throw Error("\\\\abovefrac expected size, but got "+String(o));var l=r[2],h=o.number>0;return{type:"genfrac",mode:i.mode,numer:a,denom:l,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null}}});var Vmr=(e,r)=>{var i=r.style,a,o;if(e.type==="supsub")a=e.sup?Au(e.sup,r.havingStyle(i.sup()),r):Au(e.sub,r.havingStyle(i.sub()),r),o=gc(e.base,"horizBrace");else o=gc(e,"horizBrace");var l=Au(o.base,r.havingBaseStyle(ul.DISPLAY)),h=Wve(o,r),d;if(o.isOver)d=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:0.1},{type:"elem",elem:h,wrapperClasses:["svg-align"]}]});else d=Wu({positionType:"bottom",positionData:l.depth+0.1+h.height,children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:0.1},{type:"elem",elem:l}]});if(a){var p=Ui(["minner",o.isOver?"mover":"munder"],[d],r);if(o.isOver)d=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:0.2},{type:"elem",elem:a}]});else d=Wu({positionType:"bottom",positionData:p.depth+0.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:0.2},{type:"elem",elem:p}]})}return Ui(["minner",o.isOver?"mover":"munder"],[d],r)};var wPn=(e,r)=>{var i=Yve(e.label);return new Zi(e.isOver?"mover":"munder",[Vh(e.base,r),i])};Ba({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e;return{type:"horizBrace",mode:i.mode,label:a,isOver:a.includes("\\over"),base:r[0]}},htmlBuilder:Vmr,mathmlBuilder:wPn});Ba({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[1],o=gc(r[0],"url").url;if(!i.settings.isTrusted({command:"\\href",url:o}))return i.formatUnsupportedCmd("\\href");return{type:"href",mode:i.mode,href:o,body:ag(a)}},htmlBuilder:(e,r)=>{var i=Xg(e.body,r,!1);return T9n(e.href,[],i,r)},mathmlBuilder:(e,r)=>{var i=jN(e.body,r);if(!(i instanceof Zi))i=new Zi("mrow",[i]);return i.setAttribute("href",e.href),i}});Ba({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=gc(r[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:a}))return i.formatUnsupportedCmd("\\url");var o=[];for(var l=0;l{var{parser:i,funcName:a}=e;e.token;var o=gc(r[0],"raw").string,l=r[1];if(i.settings.strict)$_({strict:i.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var h,d={};switch(a){case"\\htmlClass":d.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":d.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":d.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{var p="{,}",m=[],y="";for(var E=0;E{var i=Xg(e.body,r,!1),a=["enclosing"];if(e.attributes.class)a.push(...e.attributes.class.trim().split(/\s+/));var o=Ui(a,i,r);for(var l of Object.entries(e.attributes)){var h=l[0],d=l[1];if(h!=="class")o.setAttribute(h,d)}return o},mathmlBuilder:(e,r)=>jN(e.body,r)});Ba({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,r)=>{var i=e.parser;return{type:"htmlmathml",mode:i.mode,html:ag(r[0]),mathml:ag(r[1])}},htmlBuilder:(e,r)=>{var i=Xg(e.html,r,!1);return hR(i)},mathmlBuilder:(e,r)=>jN(e.mathml,r)});var _je=function(r){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(r))return{number:+r,unit:"bp"};else{var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r);if(!i)throw new Wi("Invalid size: '"+r+"' in \\includegraphics");var a={number:+(i[1]+i[2]),unit:i[3]};if(!dmr(a))throw new Wi("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a}};Ba({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(e,r,i)=>{var a=e.parser,o={number:0,unit:"em"},l={number:0.9,unit:"em"},h={number:0,unit:"em"},d="";if(i[0]){var p=gc(i[0],"raw").string,m=p.split(",");for(var y=0;y{var i=Jf(e.height,r),a=0;if(e.totalheight.number>0)a=Jf(e.totalheight,r)-i;var o=0;if(e.width.number>0)o=Jf(e.width,r);var l={height:oa(i+a)};if(o>0)l.width=oa(o);if(a>0)l.verticalAlign=oa(-a);var h=new mmr(e.src,e.alt,l);return h.height=i,h.depth=a,h},mathmlBuilder:(e,r)=>{var i=new Zi("mglyph",[]);i.setAttribute("alt",e.alt);var a=Jf(e.height,r),o=0;if(e.totalheight.number>0)o=Jf(e.totalheight,r)-a,i.setAttribute("valign",oa(-o));if(i.setAttribute("height",oa(a+o)),e.width.number>0){var l=Jf(e.width,r);i.setAttribute("width",oa(l))}return i.setAttribute("src",e.src),i}});Ba({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e,o=gc(r[0],"size");if(i.settings.strict){var l=a[1]==="m",h=o.value.unit==="mu";if(l){if(!h)$_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" supports only mu units, "+("not "+o.value.unit+" units"),report:!0});if(i.mode!=="math")$_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" works only in math mode",report:!0})}else if(h)$_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" doesn't support mu units",report:!0})}return{type:"kern",mode:i.mode,dimension:o.value}},htmlBuilder(e,r){return vmr(e.dimension,r)},mathmlBuilder(e,r){var i=Jf(e.dimension,r);return new Yje(i)}});Ba({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"lap",mode:i.mode,alignment:a.slice(5),body:o}},htmlBuilder:(e,r)=>{var i;if(e.alignment==="clap")i=Ui([],[Au(e.body,r)]),i=Ui(["katex-inner"],[i],r);else i=Ui(["katex-inner"],[Au(e.body,r)]);var a=Ui(["katex-fix"],[]),o=Ui([e.alignment],[i,a],r),l=Ui(["katex-strut"]);if(l.style.height=oa(o.height+o.depth),o.depth)l.style.verticalAlign=oa(-o.depth);return o.children.unshift(l),o=Ui(["katex-thinbox"],[o],r),Ui(["mord","katex-vbox"],[o],r)},mathmlBuilder:(e,r)=>{var i=new Zi("mpadded",[Vh(e.body,r)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";i.setAttribute("lspace",a+"width")}return i.setAttribute("width","0px"),i}});Ba({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,r){var{funcName:i,parser:a}=e,o=a.mode;a.switchMode("math");var l=i==="\\("?"\\)":"$",h=a.parseExpression(!1,l);return a.expect(l),a.switchMode(o),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:h}}});Ba({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,r){throw new Wi("Mismatched "+e.funcName)}});var Zgr=(e,r)=>{switch(r.style.size){case ul.DISPLAY.size:return e.display;case ul.TEXT.size:return e.text;case ul.SCRIPT.size:return e.script;case ul.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ba({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(e,r)=>{var i=e.parser;return{type:"mathchoice",mode:i.mode,display:ag(r[0]),text:ag(r[1]),script:ag(r[2]),scriptscript:ag(r[3])}},htmlBuilder:(e,r)=>{var i=Zgr(e,r),a=Xg(i,r,!1);return hR(a)},mathmlBuilder:(e,r)=>{var i=Zgr(e,r);return jN(i,r)}});var Hmr=(e,r,i,a,o,l,h)=>{e=Ui([],[e]);var d=i&&cR(i),p,m;if(r){var y=Au(r,a.havingStyle(o.sup()),a);m={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-y.depth)}}if(i){var E=Au(i,a.havingStyle(o.sub()),a);p={elem:E,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-E.height)}}var w;if(m&&p){var T=a.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+h;w=Wu({positionType:"bottom",positionData:T,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:oa(-l)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:oa(l)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(p){var x=e.height-h;w=Wu({positionType:"top",positionData:x,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:oa(-l)},{type:"kern",size:p.kern},{type:"elem",elem:e}]})}else if(m){var k=e.depth+h;w=Wu({positionType:"bottom",positionData:k,children:[{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:oa(l)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else return e;var A=[w];if(p&&l!==0&&!d){var R=Ui(["mspace"],[],a);R.style.marginRight=oa(l),A.unshift(R)}return Ui(["mop","op-limits"],A,a)},qmr=new Set(["\\smallint"]),Ymr=(e,r)=>{var i,a,o=!1,l;if(e.type==="supsub")i=e.sup,a=e.sub,l=gc(e.base,"op"),o=!0;else l=gc(e,"op");var h=r.style,d=!1;if(h.size===ul.DISPLAY.size&&l.symbol&&!qmr.has(l.name))d=!0;var p,m;if(l.symbol){var y=d?"Size2-Regular":"Size1-Regular",E="";if(l.name==="\\oiint"||l.name==="\\oiiint")E=l.name.slice(1),l.name=E==="oiint"?"\\iint":"\\iiint";if(p=ov(l.name,y,"math",r,["mop","op-symbol",d?"large-op":"small-op"]),m=p.italic,E.length>0){var w=Emr(E+"Size"+(d?"2":"1"),r);p=Wu({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:w,shift:d?0.08:0}]}),l.name="\\"+E,p.classes.unshift("mop"),p.italic=m}}else if(l.body){var T=Xg(l.body,r,!0);if(T.length===1&&T[0]instanceof U_)p=T[0],p.classes[0]="mop";else p=Ui(["mop"],T,r)}else{var x=[];for(var k=1;k{var i;if(e.symbol){if(i=new Zi("mo",[$S(e.name,e.mode)]),qmr.has(e.name))i.setAttribute("largeop","false")}else if(e.body)i=new Zi("mo",BE(e.body,r));else{i=new Zi("mi",[new T0(e.name.slice(1))]);var a=new Zi("mo",[$S("⁡","text")]);if(e.parentIsSupSub)i=new Zi("mrow",[i,a]);else i=Tmr([i,a])}return i},TPn={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ba({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=a;if(o.length===1)o=TPn[o];return{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Ymr,mathmlBuilder:SPn});Ba({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"op",mode:i.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ag(a)}}});var xPn={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ba({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(e){var{parser:r,funcName:i}=e;return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:i}}});Ba({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(e){var{parser:r,funcName:i}=e;return{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:i}}});Ba({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(e){var{parser:r,funcName:i}=e,a=i;if(a.length===1)a=xPn[a];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}}});var Wmr=(e,r)=>{var i,a,o=!1,l;if(e.type==="supsub")i=e.sup,a=e.sub,l=gc(e.base,"operatorname"),o=!0;else l=gc(e,"operatorname");var h;if(l.body.length>0){var d=l.body.map((E)=>{var w="text"in E?E.text:void 0;if(typeof w==="string")return{type:"textord",mode:E.mode,text:w};else return E}),p=Xg(d,r.withFont("mathrm"),!0);for(var m=0;m{var i=BE(e.body,r.withFont("mathrm")),a=!0;for(var o=0;oy.toText()).join("");i=[new T0(d)]}var p=new Zi("mi",i);p.setAttribute("mathvariant","normal");var m=new Zi("mo",[$S("⁡","text")]);if(e.parentIsSupSub)return new Zi("mrow",[p,m]);else return Tmr([p,m])};Ba({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"operatorname",mode:i.mode,body:ag(o),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Wmr,mathmlBuilder:CPn});Tt("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");yP({type:"ordgroup",htmlBuilder(e,r){if(e.semisimple)return hR(Xg(e.body,r,!1));return Ui(["mord"],Xg(e.body,r,!0),r)},mathmlBuilder(e,r){return jN(e.body,r,!0)}});Ba({type:"overline",names:["\\overline"],numArgs:1,handler(e,r){var i=e.parser,a=r[0];return{type:"overline",mode:i.mode,body:a}},htmlBuilder(e,r){var i=Au(e.body,r.havingCrampedStyle()),a=kV("overline-line",r),o=r.fontMetrics().defaultRuleThickness,l=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:a},{type:"kern",size:o}]});return Ui(["mord","katex-overline"],[l],r)},mathmlBuilder(e,r){var i=new Zi("mo",[new T0("‾")]);i.setAttribute("stretchy","true");var a=new Zi("mover",[Vh(e.body,r),i]);return a.setAttribute("accent","true"),a}});Ba({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"phantom",mode:i.mode,body:ag(a)}},htmlBuilder:(e,r)=>{var i=Xg(e.body,r.withPhantom(),!1);return hR(i)},mathmlBuilder:(e,r)=>{var i=BE(e.body,r);return new Zi("mphantom",i)}});Tt("\\hphantom","\\smash{\\phantom{#1}}");Ba({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"vphantom",mode:i.mode,body:a}},htmlBuilder:(e,r)=>{var i=Ui(["katex-inner"],[Au(e.body,r.withPhantom())]),a=Ui(["katex-fix"],[]);return Ui(["mord","rlap"],[i,a],r)},mathmlBuilder:(e,r)=>{var i=BE(ag(e.body),r),a=new Zi("mphantom",i),o=new Zi("mpadded",[a]);return o.setAttribute("width","0px"),o}});Ba({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(e,r){var i=e.parser,a=gc(r[0],"size").value,o=r[1];return{type:"raisebox",mode:i.mode,dy:a,body:o}},htmlBuilder(e,r){var i=Au(e.body,r),a=Jf(e.dy,r);return Wu({positionType:"shift",positionData:-a,children:[{type:"elem",elem:i}]})},mathmlBuilder(e,r){var i=new Zi("mpadded",[Vh(e.body,r)]),a=e.dy.number+e.dy.unit;return i.setAttribute("voffset",a),i}});var jmr=(e,r)=>{var i=e.parser;return{type:"reflectbox",mode:i.mode,body:r[0]}};Ba({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:jmr,htmlBuilder(e,r){return Ui(["mord","reflectbox"],[Au(e.body,r)],r)},mathmlBuilder(e,r){return Vh(e.body,r)}});Ba({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:jmr});Ba({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){var r=e.parser;return{type:"internal",mode:r.mode}}});Ba({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(e,r,i){var a=e.parser,o=i[0],l=gc(r[0],"size"),h=gc(r[1],"size");return{type:"rule",mode:a.mode,shift:o&&gc(o,"size").value,width:l.value,height:h.value}},htmlBuilder(e,r){var i=Ui(["mord","katex-rule"],[],r),a=Jf(e.width,r),o=Jf(e.height,r),l=e.shift?Jf(e.shift,r):0;return i.style.borderRightWidth=oa(a),i.style.borderTopWidth=oa(o),i.style.bottom=oa(l),i.width=a,i.height=o+l,i.depth=-l,i.maxFontSize=o*1.125*r.sizeMultiplier,i},mathmlBuilder(e,r){var i=Jf(e.width,r),a=Jf(e.height,r),o=e.shift?Jf(e.shift,r):0,l=r.color&&r.getColor()||"black",h=new Zi("mspace");h.setAttribute("mathbackground",l),h.setAttribute("width",oa(i)),h.setAttribute("height",oa(a));var d=new Zi("mpadded",[h]);if(o>=0)d.setAttribute("height",oa(o));else d.setAttribute("height",oa(o)),d.setAttribute("depth",oa(-o));return d.setAttribute("voffset",oa(o)),d}});function Kmr(e,r,i){var a=Xg(e,r,!1),o=r.sizeMultiplier/i.sizeMultiplier;for(var l=0;l{var i=r.havingSize(e.size);return Kmr(e.body,i,r)};Ba({type:"sizing",names:Jgr,numArgs:0,allowedInText:!0,handler:(e,r)=>{var{breakOnTokenText:i,funcName:a,parser:o}=e,l=o.parseExpression(!1,i);return{type:"sizing",mode:o.mode,size:Jgr.indexOf(a)+1,body:l}},htmlBuilder:kPn,mathmlBuilder:(e,r)=>{var i=r.havingSize(e.size),a=BE(e.body,i),o=new Zi("mstyle",a);return o.setAttribute("mathsize",oa(i.sizeMultiplier)),o}});Ba({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,r,i)=>{var a=e.parser,o=!1,l=!1,h=i[0]&&gc(i[0],"ordgroup");if(h){var d;for(var p=0;p{var i=Ui([],[Au(e.body,r)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight)i.height=0;if(e.smashDepth)i.depth=0;if(e.smashHeight&&e.smashDepth)return Ui(["mord","katex-smash"],[i],r);if(i.children)for(var a=0;a{var i=new Zi("mpadded",[Vh(e.body,r)]);if(e.smashHeight)i.setAttribute("height","0px");if(e.smashDepth)i.setAttribute("depth","0px");return i}});Ba({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(e,r,i){var a=e.parser,o=i[0],l=r[0];return{type:"sqrt",mode:a.mode,body:l,index:o}},htmlBuilder(e,r){var i=Au(e.body,r.havingCrampedStyle());if(i.height===0)i.height=r.fontMetrics().xHeight;i=AV(i,r);var a=r.fontMetrics(),o=a.defaultRuleThickness,l=o;if(r.style.idi.height+i.depth+h)h=(h+w-i.height-i.depth)/2;var T=m.height-i.height-h-y;i.style.paddingLeft=oa(E);var x=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+T)},{type:"elem",elem:m},{type:"kern",size:y}]});if(!e.index)return Ui(["mord","sqrt"],[x],r);else{var k=r.havingStyle(ul.SCRIPTSCRIPT),A=Au(e.index,k,r),R=0.6*(x.height-x.depth),N=Wu({positionType:"shift",positionData:-R,children:[{type:"elem",elem:A}]}),L=Ui(["katex-root"],[N]);return Ui(["mord","sqrt"],[L,x],r)}},mathmlBuilder(e,r){var{body:i,index:a}=e;return a?new Zi("mroot",[Vh(i,r),Vh(a,r)]):new Zi("msqrt",[Vh(i,r)])}});var Fje={display:ul.DISPLAY,text:ul.TEXT,script:ul.SCRIPT,scriptscript:ul.SCRIPTSCRIPT};function APn(e){return e in Fje}Ba({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(e,r){var{breakOnTokenText:i,funcName:a,parser:o}=e,l=o.parseExpression(!0,i),h=a.slice(1,a.length-5);if(!APn(h))throw Error("Unknown style: "+h);return{type:"styling",mode:o.mode,style:h,body:l}},htmlBuilder(e,r){var i=Fje[e.style],a=r.havingStyle(i);if(e.resetFont)a=a.withFont("");return Kmr(e.body,a,r)},mathmlBuilder(e,r){var i=Fje[e.style],a=r.havingStyle(i);if(e.resetFont)a=a.withFont("");var o=BE(e.body,a),l=new Zi("mstyle",o),h={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=h[e.style];return l.setAttribute("scriptlevel",d[0]),l.setAttribute("displaystyle",d[1]),l}});var RPn=function(r,i){var a=r.base;if(!a)return null;else if(a.type==="op"){var o=a.limits&&(i.style.size===ul.DISPLAY.size||a.alwaysHandleSupSub);return o?Ymr:null}else if(a.type==="operatorname"){var l=a.alwaysHandleSupSub&&(i.style.size===ul.DISPLAY.size||a.limits);return l?Wmr:null}else if(a.type==="accent")return cR(a.base)?Amr:null;else if(a.type==="horizBrace"){var h=!r.sub;return h===a.isOver?Vmr:null}else return null};yP({type:"supsub",htmlBuilder(e,r){var i=RPn(e,r);if(i)return i(e,r);var{base:a,sup:o,sub:l}=e,h=Au(a,r),d,p,m=r.fontMetrics(),y=0,E=0,w=a&&cR(a);if(o){var T=r.havingStyle(r.style.sup());if(d=Au(o,T,r),!w)y=h.height-T.fontMetrics().supDrop*T.sizeMultiplier/r.sizeMultiplier}if(l){var x=r.havingStyle(r.style.sub());if(p=Au(l,x,r),!w)E=h.depth+x.fontMetrics().subDrop*x.sizeMultiplier/r.sizeMultiplier}var k;if(r.style===ul.DISPLAY)k=m.sup1;else if(r.style.cramped)k=m.sup3;else k=m.sup2;var A=r.sizeMultiplier,R=oa(0.5/m.ptPerEm/A),N=null;if(p){var L=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(h instanceof U_||L){var B;N=oa(-((B=h.italic)!=null?B:0))}}var D;if(d&&p){y=Math.max(y,k,d.depth+0.25*m.xHeight),E=Math.max(E,m.sub2);var P=m.defaultRuleThickness,F=4*P;if(y-d.depth-(p.height-E)0)y+=H,E-=H}var K=[{type:"elem",elem:p,shift:E,marginRight:R,marginLeft:N},{type:"elem",elem:d,shift:-y,marginRight:R}];D=Wu({positionType:"individualShift",children:K})}else if(p){E=Math.max(E,m.sub1,p.height-0.8*m.xHeight);var Q=[{type:"elem",elem:p,marginLeft:N,marginRight:R}];D=Wu({positionType:"shift",positionData:E,children:Q})}else if(d)y=Math.max(y,k,d.depth+0.25*m.xHeight),D=Wu({positionType:"shift",positionData:-y,children:[{type:"elem",elem:d,marginRight:R}]});else throw Error("supsub must have either sup or sub.");var Z=Lje(h,"right")||"mord";return Ui([Z],[h,Ui(["msupsub"],[D])],r)},mathmlBuilder(e,r){var i=!1,a,o;if(e.base&&e.base.type==="horizBrace"){if(o=!!e.sup,o===e.base.isOver)i=!0,a=e.base.isOver}if(e.base&&(e.base.type==="op"||e.base.type==="operatorname"))e.base.parentIsSupSub=!0;var l=[Vh(e.base,r)];if(e.sub)l.push(Vh(e.sub,r));if(e.sup)l.push(Vh(e.sup,r));var h;if(i)h=a?"mover":"munder";else if(!e.sub){var d=e.base;if(d&&d.type==="op"&&d.limits&&(r.style===ul.DISPLAY||d.alwaysHandleSupSub))h="mover";else if(d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||r.style===ul.DISPLAY))h="mover";else h="msup"}else if(!e.sup){var p=e.base;if(p&&p.type==="op"&&p.limits&&(r.style===ul.DISPLAY||p.alwaysHandleSupSub))h="munder";else if(p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||r.style===ul.DISPLAY))h="munder";else h="msub"}else{var m=e.base;if(m&&m.type==="op"&&m.limits&&r.style===ul.DISPLAY)h="munderover";else if(m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(r.style===ul.DISPLAY||m.limits))h="munderover";else h="msubsup"}return new Zi(h,l)}});yP({type:"atom",htmlBuilder(e,r){return Hje(e.text,e.mode,r,["m"+e.family])},mathmlBuilder(e,r){var i=new Zi("mo",[$S(e.text,e.mode)]);if(e.family==="bin"){var a=jje(e,r);if(a==="bold-italic")i.setAttribute("mathvariant",a)}else if(e.family==="punct")i.setAttribute("separator","true");else if(e.family==="open"||e.family==="close")i.setAttribute("stretchy","false");return i}});var Xmr={mi:"italic",mn:"normal",mtext:"normal"};yP({type:"mathord",htmlBuilder(e,r){return qve(e,r)},mathmlBuilder(e,r){var i=new Zi("mi",[$S(e.text,e.mode,r)]),a=jje(e,r)||"italic";if(a!==Xmr[i.type])i.setAttribute("mathvariant",a);return i}});yP({type:"textord",htmlBuilder(e,r){return qve(e,r)},mathmlBuilder(e,r){var i=$S(e.text,e.mode,r),a=jje(e,r)||"normal",o;if(e.mode==="text")o=new Zi("mtext",[i]);else if(/[0-9]/.test(e.text))o=new Zi("mn",[i]);else if(e.text==="\\prime")o=new Zi("mo",[i]);else o=new Zi("mi",[i]);if(a!==Xmr[o.type])o.setAttribute("mathvariant",a);return o}});var emr=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),tmr=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);yP({type:"spacing",htmlBuilder(e,r){var i=tmr.get(e.text),a=emr.get(e.text);if(i){var o=i.className||"";if(e.mode==="text"){var l=qve(e,r);return l.classes.push(o),l}else return Ui(["mspace",o],[Hje(e.text,e.mode,r)],r)}else if(a)return Ui(["mspace",a],[],r);else throw new Wi('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,r){var i;if(tmr.has(e.text))i=new Zi("mtext",[new T0(" ")]);else if(emr.has(e.text))return new Zi("mspace");else throw new Wi('Unknown type of space "'+e.text+'"');return i}});var rmr=()=>{var e=new Zi("mtd",[]);return e.setAttribute("width","50%"),e};yP({type:"tag",mathmlBuilder(e,r){var i=new Zi("mtable",[new Zi("mtr",[rmr(),new Zi("mtd",[jN(e.body,r)]),rmr(),new Zi("mtd",[jN(e.tag,r)])])]);return i.setAttribute("width","100%"),i}});var nmr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},imr={"\\textbf":"textbf","\\textmd":"textmd"},IPn={"\\textit":"textit","\\textup":"textup"},amr=(e,r)=>{var i=e.font;if(!i)return r;else if(nmr[i])return r.withTextFontFamily(nmr[i]);else if(imr[i])return r.withTextFontWeight(imr[i]);else if(i==="\\emph")return r.fontShape==="textit"?r.withTextFontShape("textup"):r.withTextFontShape("textit");return r.withTextFontShape(IPn[i])};Ba({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"text",mode:i.mode,body:ag(o),font:a}},htmlBuilder(e,r){var i=amr(e,r),a=Xg(e.body,i,!0);return Ui(["mord","text"],a,i)},mathmlBuilder(e,r){var i=amr(e,r);return jN(e.body,i)}});Ba({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser;return{type:"underline",mode:i.mode,body:r[0]}},htmlBuilder(e,r){var i=Au(e.body,r),a=kV("underline-line",r),o=r.fontMetrics().defaultRuleThickness,l=Wu({positionType:"top",positionData:i.height,children:[{type:"kern",size:o},{type:"elem",elem:a},{type:"kern",size:3*o},{type:"elem",elem:i}]});return Ui(["mord","katex-underline"],[l],r)},mathmlBuilder(e,r){var i=new Zi("mo",[new T0("‾")]);i.setAttribute("stretchy","true");var a=new Zi("munder",[Vh(e.body,r),i]);return a.setAttribute("accentunder","true"),a}});Ba({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(e,r){var i=e.parser;return{type:"vcenter",mode:i.mode,body:r[0]}},htmlBuilder(e,r){var i=Au(e.body,r),a=r.fontMetrics().axisHeight,o=0.5*(i.height-a-(i.depth+a));return Wu({positionType:"shift",positionData:o,children:[{type:"elem",elem:i}]})},mathmlBuilder(e,r){var i=new Zi("mpadded",[Vh(e.body,r)],["vcenter"]);return new Zi("mrow",[i])}});Ba({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(e,r,i){throw new Wi("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,r){var i=smr(e),a=[],o=r.havingStyle(r.style.text());for(var l=0;le.body.replace(/ /g,e.star?"␣":" "),qN=wmr,Qmr=`[ \r - ]`,OPn="\\\\[a-zA-Z@]+",NPn="\\\\[^\uD800-\uDFFF]",LPn="("+OPn+")"+Qmr+"*",MPn=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error("Unknown stretchy delimiter.")}};function m9n(e){return"toText"in e}class yP{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createDocumentFragment();for(var r=0;r{if(m9n(e))return e.toText();throw Error("Expected MathDomNode with toText, got "+e.constructor.name)}).join("")}}var kje={pt:1,mm:2.8452755905511813,cm:28.45275590551181,in:72.27,bp:1.00375,pc:12,dd:1.070008643042351,cc:12.84010371650821,nd:1.0669781931464175,nc:12.80373831775701,sp:0.0000152587890625,px:1.00375},b9n={ex:!0,em:!0,mu:!0},bmr=function(r){if(typeof r!=="string")r=r.unit;return r in kje||r in b9n||r==="ex"},Jf=function(r,i){var a;if(r.unit in kje)a=kje[r.unit]/i.fontMetrics().ptPerEm/i.sizeMultiplier;else if(r.unit==="mu")a=i.fontMetrics().cssEmPerMu;else{var o;if(i.style.isTight())o=i.havingStyle(i.style.text());else o=i;if(r.unit==="ex")a=o.fontMetrics().xHeight;else if(r.unit==="em")a=o.fontMetrics().quad;else throw new Wi("Invalid unit: '"+r.unit+"'");if(o!==i)a*=o.sizeMultiplier/i.sizeMultiplier}return Math.min(r.number*a,i.maxSize)},oa=function(r){return+r.toFixed(4)+"em"},jN=function(r){return r.filter((i)=>i).join(" ")},qje=function(r){var i="";for(var a of Object.keys(r)){var o=r[a];if(o!==void 0)i+=qDn(a)+":"+o+";"}return i},ymr=function(r,i,a){if(this.classes=r||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=a||{},i){if(i.style.isTight())this.classes.push("mtight");var o=i.getColor();if(o)this.style.color=o}},vmr=function(r){var i=document.createElement(r);i.className=jN(this.classes),Object.assign(i.style,this.style);for(var a of Object.keys(this.attributes))i.setAttribute(a,this.attributes[a]);for(var o=0;o/=\x00-\x1f]/,_mr=function(r){var i="<"+r;if(this.classes.length)i+=' class="'+Yb(jN(this.classes))+'"';var a=qje(this.style);if(a)i+=' style="'+Yb(a)+'"';for(var o of Object.keys(this.attributes)){if(y9n.test(o))throw new Wi("Invalid attribute name '"+o+"'");i+=" "+o+'="'+Yb(this.attributes[o])+'"'}i+=">";for(var l=0;l",i};class vP{constructor(e,r,i,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,ymr.call(this,e,i,a),this.children=r||[]}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return vmr.call(this,"span")}toMarkup(){return _mr.call(this,"span")}}class ore{constructor(e,r,i,a){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ymr.call(this,r,a),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,r){this.attributes[e]=r}hasClass(e){return this.classes.includes(e)}toNode(){return vmr.call(this,"a")}toMarkup(){return _mr.call(this,"a")}}class Emr{constructor(e,r,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=e,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");return e.src=this.src,e.alt=this.alt,e.className="mord",Object.assign(e.style,this.style),e}toMarkup(){var e=''+Yb(this.alt)+'0)r=document.createElement("span"),r.style.marginRight=oa(this.italic);if(this.classes.length>0)r=r||document.createElement("span"),r.className=jN(this.classes);if(Object.keys(this.style).length>0)r=r||document.createElement("span"),Object.assign(r.style,this.style);if(r)return r.appendChild(e),r;else return e}toMarkup(){var e=!1,r="0)i+="margin-right:"+oa(this.italic)+";";if(i+=qje(this.style),i)e=!0,r+=' style="'+Yb(i)+'"';var a=Yb(this.text);if(e)return r+=">",r+=a,r+="",r;else return a}}class zk{constructor(e,r){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=r||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"svg");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var a=0;a';else return''}}class Hve{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",r=document.createElementNS(e,"line");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);return r}toMarkup(){var e=" but got "+String(e)+".")}var w9n=(e)=>e instanceof vP||e instanceof ore||e instanceof yP,Gk={"AMS-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.68889,0,0,0.72222],"66":[0,0.68889,0,0,0.66667],"67":[0,0.68889,0,0,0.72222],"68":[0,0.68889,0,0,0.72222],"69":[0,0.68889,0,0,0.66667],"70":[0,0.68889,0,0,0.61111],"71":[0,0.68889,0,0,0.77778],"72":[0,0.68889,0,0,0.77778],"73":[0,0.68889,0,0,0.38889],"74":[0.16667,0.68889,0,0,0.5],"75":[0,0.68889,0,0,0.77778],"76":[0,0.68889,0,0,0.66667],"77":[0,0.68889,0,0,0.94445],"78":[0,0.68889,0,0,0.72222],"79":[0.16667,0.68889,0,0,0.77778],"80":[0,0.68889,0,0,0.61111],"81":[0.16667,0.68889,0,0,0.77778],"82":[0,0.68889,0,0,0.72222],"83":[0,0.68889,0,0,0.55556],"84":[0,0.68889,0,0,0.66667],"85":[0,0.68889,0,0,0.72222],"86":[0,0.68889,0,0,0.72222],"87":[0,0.68889,0,0,1],"88":[0,0.68889,0,0,0.72222],"89":[0,0.68889,0,0,0.72222],"90":[0,0.68889,0,0,0.66667],"107":[0,0.68889,0,0,0.55556],"160":[0,0,0,0,0.25],"165":[0,0.675,0.025,0,0.75],"174":[0.15559,0.69224,0,0,0.94666],"240":[0,0.68889,0,0,0.55556],"295":[0,0.68889,0,0,0.54028],"710":[0,0.825,0,0,2.33334],"732":[0,0.9,0,0,2.33334],"770":[0,0.825,0,0,2.33334],"771":[0,0.9,0,0,2.33334],"989":[0.08167,0.58167,0,0,0.77778],"1008":[0,0.43056,0.04028,0,0.66667],"8245":[0,0.54986,0,0,0.275],"8463":[0,0.68889,0,0,0.54028],"8487":[0,0.68889,0,0,0.72222],"8498":[0,0.68889,0,0,0.55556],"8502":[0,0.68889,0,0,0.66667],"8503":[0,0.68889,0,0,0.44445],"8504":[0,0.68889,0,0,0.66667],"8513":[0,0.68889,0,0,0.63889],"8592":[-0.03598,0.46402,0,0,0.5],"8594":[-0.03598,0.46402,0,0,0.5],"8602":[-0.13313,0.36687,0,0,1],"8603":[-0.13313,0.36687,0,0,1],"8606":[0.01354,0.52239,0,0,1],"8608":[0.01354,0.52239,0,0,1],"8610":[0.01354,0.52239,0,0,1.11111],"8611":[0.01354,0.52239,0,0,1.11111],"8619":[0,0.54986,0,0,1],"8620":[0,0.54986,0,0,1],"8621":[-0.13313,0.37788,0,0,1.38889],"8622":[-0.13313,0.36687,0,0,1],"8624":[0,0.69224,0,0,0.5],"8625":[0,0.69224,0,0,0.5],"8630":[0,0.43056,0,0,1],"8631":[0,0.43056,0,0,1],"8634":[0.08198,0.58198,0,0,0.77778],"8635":[0.08198,0.58198,0,0,0.77778],"8638":[0.19444,0.69224,0,0,0.41667],"8639":[0.19444,0.69224,0,0,0.41667],"8642":[0.19444,0.69224,0,0,0.41667],"8643":[0.19444,0.69224,0,0,0.41667],"8644":[0.1808,0.675,0,0,1],"8646":[0.1808,0.675,0,0,1],"8647":[0.1808,0.675,0,0,1],"8648":[0.19444,0.69224,0,0,0.83334],"8649":[0.1808,0.675,0,0,1],"8650":[0.19444,0.69224,0,0,0.83334],"8651":[0.01354,0.52239,0,0,1],"8652":[0.01354,0.52239,0,0,1],"8653":[-0.13313,0.36687,0,0,1],"8654":[-0.13313,0.36687,0,0,1],"8655":[-0.13313,0.36687,0,0,1],"8666":[0.13667,0.63667,0,0,1],"8667":[0.13667,0.63667,0,0,1],"8669":[-0.13313,0.37788,0,0,1],"8672":[-0.064,0.437,0,0,1.334],"8674":[-0.064,0.437,0,0,1.334],"8705":[0,0.825,0,0,0.5],"8708":[0,0.68889,0,0,0.55556],"8709":[0.08167,0.58167,0,0,0.77778],"8717":[0,0.43056,0,0,0.42917],"8722":[-0.03598,0.46402,0,0,0.5],"8724":[0.08198,0.69224,0,0,0.77778],"8726":[0.08167,0.58167,0,0,0.77778],"8733":[0,0.69224,0,0,0.77778],"8736":[0,0.69224,0,0,0.72222],"8737":[0,0.69224,0,0,0.72222],"8738":[0.03517,0.52239,0,0,0.72222],"8739":[0.08167,0.58167,0,0,0.22222],"8740":[0.25142,0.74111,0,0,0.27778],"8741":[0.08167,0.58167,0,0,0.38889],"8742":[0.25142,0.74111,0,0,0.5],"8756":[0,0.69224,0,0,0.66667],"8757":[0,0.69224,0,0,0.66667],"8764":[-0.13313,0.36687,0,0,0.77778],"8765":[-0.13313,0.37788,0,0,0.77778],"8769":[-0.13313,0.36687,0,0,0.77778],"8770":[-0.03625,0.46375,0,0,0.77778],"8774":[0.30274,0.79383,0,0,0.77778],"8776":[-0.01688,0.48312,0,0,0.77778],"8778":[0.08167,0.58167,0,0,0.77778],"8782":[0.06062,0.54986,0,0,0.77778],"8783":[0.06062,0.54986,0,0,0.77778],"8785":[0.08198,0.58198,0,0,0.77778],"8786":[0.08198,0.58198,0,0,0.77778],"8787":[0.08198,0.58198,0,0,0.77778],"8790":[0,0.69224,0,0,0.77778],"8791":[0.22958,0.72958,0,0,0.77778],"8796":[0.08198,0.91667,0,0,0.77778],"8806":[0.25583,0.75583,0,0,0.77778],"8807":[0.25583,0.75583,0,0,0.77778],"8808":[0.25142,0.75726,0,0,0.77778],"8809":[0.25142,0.75726,0,0,0.77778],"8812":[0.25583,0.75583,0,0,0.5],"8814":[0.20576,0.70576,0,0,0.77778],"8815":[0.20576,0.70576,0,0,0.77778],"8816":[0.30274,0.79383,0,0,0.77778],"8817":[0.30274,0.79383,0,0,0.77778],"8818":[0.22958,0.72958,0,0,0.77778],"8819":[0.22958,0.72958,0,0,0.77778],"8822":[0.1808,0.675,0,0,0.77778],"8823":[0.1808,0.675,0,0,0.77778],"8828":[0.13667,0.63667,0,0,0.77778],"8829":[0.13667,0.63667,0,0,0.77778],"8830":[0.22958,0.72958,0,0,0.77778],"8831":[0.22958,0.72958,0,0,0.77778],"8832":[0.20576,0.70576,0,0,0.77778],"8833":[0.20576,0.70576,0,0,0.77778],"8840":[0.30274,0.79383,0,0,0.77778],"8841":[0.30274,0.79383,0,0,0.77778],"8842":[0.13597,0.63597,0,0,0.77778],"8843":[0.13597,0.63597,0,0,0.77778],"8847":[0.03517,0.54986,0,0,0.77778],"8848":[0.03517,0.54986,0,0,0.77778],"8858":[0.08198,0.58198,0,0,0.77778],"8859":[0.08198,0.58198,0,0,0.77778],"8861":[0.08198,0.58198,0,0,0.77778],"8862":[0,0.675,0,0,0.77778],"8863":[0,0.675,0,0,0.77778],"8864":[0,0.675,0,0,0.77778],"8865":[0,0.675,0,0,0.77778],"8872":[0,0.69224,0,0,0.61111],"8873":[0,0.69224,0,0,0.72222],"8874":[0,0.69224,0,0,0.88889],"8876":[0,0.68889,0,0,0.61111],"8877":[0,0.68889,0,0,0.61111],"8878":[0,0.68889,0,0,0.72222],"8879":[0,0.68889,0,0,0.72222],"8882":[0.03517,0.54986,0,0,0.77778],"8883":[0.03517,0.54986,0,0,0.77778],"8884":[0.13667,0.63667,0,0,0.77778],"8885":[0.13667,0.63667,0,0,0.77778],"8888":[0,0.54986,0,0,1.11111],"8890":[0.19444,0.43056,0,0,0.55556],"8891":[0.19444,0.69224,0,0,0.61111],"8892":[0.19444,0.69224,0,0,0.61111],"8901":[0,0.54986,0,0,0.27778],"8903":[0.08167,0.58167,0,0,0.77778],"8905":[0.08167,0.58167,0,0,0.77778],"8906":[0.08167,0.58167,0,0,0.77778],"8907":[0,0.69224,0,0,0.77778],"8908":[0,0.69224,0,0,0.77778],"8909":[-0.03598,0.46402,0,0,0.77778],"8910":[0,0.54986,0,0,0.76042],"8911":[0,0.54986,0,0,0.76042],"8912":[0.03517,0.54986,0,0,0.77778],"8913":[0.03517,0.54986,0,0,0.77778],"8914":[0,0.54986,0,0,0.66667],"8915":[0,0.54986,0,0,0.66667],"8916":[0,0.69224,0,0,0.66667],"8918":[0.0391,0.5391,0,0,0.77778],"8919":[0.0391,0.5391,0,0,0.77778],"8920":[0.03517,0.54986,0,0,1.33334],"8921":[0.03517,0.54986,0,0,1.33334],"8922":[0.38569,0.88569,0,0,0.77778],"8923":[0.38569,0.88569,0,0,0.77778],"8926":[0.13667,0.63667,0,0,0.77778],"8927":[0.13667,0.63667,0,0,0.77778],"8928":[0.30274,0.79383,0,0,0.77778],"8929":[0.30274,0.79383,0,0,0.77778],"8934":[0.23222,0.74111,0,0,0.77778],"8935":[0.23222,0.74111,0,0,0.77778],"8936":[0.23222,0.74111,0,0,0.77778],"8937":[0.23222,0.74111,0,0,0.77778],"8938":[0.20576,0.70576,0,0,0.77778],"8939":[0.20576,0.70576,0,0,0.77778],"8940":[0.30274,0.79383,0,0,0.77778],"8941":[0.30274,0.79383,0,0,0.77778],"8994":[0.19444,0.69224,0,0,0.77778],"8995":[0.19444,0.69224,0,0,0.77778],"9416":[0.15559,0.69224,0,0,0.90222],"9484":[0,0.69224,0,0,0.5],"9488":[0,0.69224,0,0,0.5],"9492":[0,0.37788,0,0,0.5],"9496":[0,0.37788,0,0,0.5],"9585":[0.19444,0.68889,0,0,0.88889],"9586":[0.19444,0.74111,0,0,0.88889],"9632":[0,0.675,0,0,0.77778],"9633":[0,0.675,0,0,0.77778],"9650":[0,0.54986,0,0,0.72222],"9651":[0,0.54986,0,0,0.72222],"9654":[0.03517,0.54986,0,0,0.77778],"9660":[0,0.54986,0,0,0.72222],"9661":[0,0.54986,0,0,0.72222],"9664":[0.03517,0.54986,0,0,0.77778],"9674":[0.11111,0.69224,0,0,0.66667],"9733":[0.19444,0.69224,0,0,0.94445],"10003":[0,0.69224,0,0,0.83334],"10016":[0,0.69224,0,0,0.83334],"10731":[0.11111,0.69224,0,0,0.66667],"10846":[0.19444,0.75583,0,0,0.61111],"10877":[0.13667,0.63667,0,0,0.77778],"10878":[0.13667,0.63667,0,0,0.77778],"10885":[0.25583,0.75583,0,0,0.77778],"10886":[0.25583,0.75583,0,0,0.77778],"10887":[0.13597,0.63597,0,0,0.77778],"10888":[0.13597,0.63597,0,0,0.77778],"10889":[0.26167,0.75726,0,0,0.77778],"10890":[0.26167,0.75726,0,0,0.77778],"10891":[0.48256,0.98256,0,0,0.77778],"10892":[0.48256,0.98256,0,0,0.77778],"10901":[0.13667,0.63667,0,0,0.77778],"10902":[0.13667,0.63667,0,0,0.77778],"10933":[0.25142,0.75726,0,0,0.77778],"10934":[0.25142,0.75726,0,0,0.77778],"10935":[0.26167,0.75726,0,0,0.77778],"10936":[0.26167,0.75726,0,0,0.77778],"10937":[0.26167,0.75726,0,0,0.77778],"10938":[0.26167,0.75726,0,0,0.77778],"10949":[0.25583,0.75583,0,0,0.77778],"10950":[0.25583,0.75583,0,0,0.77778],"10955":[0.28481,0.79383,0,0,0.77778],"10956":[0.28481,0.79383,0,0,0.77778],"57350":[0.08167,0.58167,0,0,0.22222],"57351":[0.08167,0.58167,0,0,0.38889],"57352":[0.08167,0.58167,0,0,0.77778],"57353":[0,0.43056,0.04028,0,0.66667],"57356":[0.25142,0.75726,0,0,0.77778],"57357":[0.25142,0.75726,0,0,0.77778],"57358":[0.41951,0.91951,0,0,0.77778],"57359":[0.30274,0.79383,0,0,0.77778],"57360":[0.30274,0.79383,0,0,0.77778],"57361":[0.41951,0.91951,0,0,0.77778],"57366":[0.25142,0.75726,0,0,0.77778],"57367":[0.25142,0.75726,0,0,0.77778],"57368":[0.25142,0.75726,0,0,0.77778],"57369":[0.25142,0.75726,0,0,0.77778],"57370":[0.13597,0.63597,0,0,0.77778],"57371":[0.13597,0.63597,0,0,0.77778]},"Caligraphic-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.68333,0,0.19445,0.79847],"66":[0,0.68333,0.03041,0.13889,0.65681],"67":[0,0.68333,0.05834,0.13889,0.52653],"68":[0,0.68333,0.02778,0.08334,0.77139],"69":[0,0.68333,0.08944,0.11111,0.52778],"70":[0,0.68333,0.09931,0.11111,0.71875],"71":[0.09722,0.68333,0.0593,0.11111,0.59487],"72":[0,0.68333,0.00965,0.11111,0.84452],"73":[0,0.68333,0.07382,0,0.54452],"74":[0.09722,0.68333,0.18472,0.16667,0.67778],"75":[0,0.68333,0.01445,0.05556,0.76195],"76":[0,0.68333,0,0.13889,0.68972],"77":[0,0.68333,0,0.13889,1.2009],"78":[0,0.68333,0.14736,0.08334,0.82049],"79":[0,0.68333,0.02778,0.11111,0.79611],"80":[0,0.68333,0.08222,0.08334,0.69556],"81":[0.09722,0.68333,0,0.11111,0.81667],"82":[0,0.68333,0,0.08334,0.8475],"83":[0,0.68333,0.075,0.13889,0.60556],"84":[0,0.68333,0.25417,0,0.54464],"85":[0,0.68333,0.09931,0.08334,0.62583],"86":[0,0.68333,0.08222,0,0.61278],"87":[0,0.68333,0.08222,0.08334,0.98778],"88":[0,0.68333,0.14643,0.13889,0.7133],"89":[0.09722,0.68333,0.08222,0.08334,0.66834],"90":[0,0.68333,0.07944,0.13889,0.72473],"160":[0,0,0,0,0.25]},"Fraktur-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69141,0,0,0.29574],"34":[0,0.69141,0,0,0.21471],"38":[0,0.69141,0,0,0.73786],"39":[0,0.69141,0,0,0.21201],"40":[0.24982,0.74947,0,0,0.38865],"41":[0.24982,0.74947,0,0,0.38865],"42":[0,0.62119,0,0,0.27764],"43":[0.08319,0.58283,0,0,0.75623],"44":[0,0.10803,0,0,0.27764],"45":[0.08319,0.58283,0,0,0.75623],"46":[0,0.10803,0,0,0.27764],"47":[0.24982,0.74947,0,0,0.50181],"48":[0,0.47534,0,0,0.50181],"49":[0,0.47534,0,0,0.50181],"50":[0,0.47534,0,0,0.50181],"51":[0.18906,0.47534,0,0,0.50181],"52":[0.18906,0.47534,0,0,0.50181],"53":[0.18906,0.47534,0,0,0.50181],"54":[0,0.69141,0,0,0.50181],"55":[0.18906,0.47534,0,0,0.50181],"56":[0,0.69141,0,0,0.50181],"57":[0.18906,0.47534,0,0,0.50181],"58":[0,0.47534,0,0,0.21606],"59":[0.12604,0.47534,0,0,0.21606],"61":[-0.13099,0.36866,0,0,0.75623],"63":[0,0.69141,0,0,0.36245],"65":[0,0.69141,0,0,0.7176],"66":[0,0.69141,0,0,0.88397],"67":[0,0.69141,0,0,0.61254],"68":[0,0.69141,0,0,0.83158],"69":[0,0.69141,0,0,0.66278],"70":[0.12604,0.69141,0,0,0.61119],"71":[0,0.69141,0,0,0.78539],"72":[0.06302,0.69141,0,0,0.7203],"73":[0,0.69141,0,0,0.55448],"74":[0.12604,0.69141,0,0,0.55231],"75":[0,0.69141,0,0,0.66845],"76":[0,0.69141,0,0,0.66602],"77":[0,0.69141,0,0,1.04953],"78":[0,0.69141,0,0,0.83212],"79":[0,0.69141,0,0,0.82699],"80":[0.18906,0.69141,0,0,0.82753],"81":[0.03781,0.69141,0,0,0.82699],"82":[0,0.69141,0,0,0.82807],"83":[0,0.69141,0,0,0.82861],"84":[0,0.69141,0,0,0.66899],"85":[0,0.69141,0,0,0.64576],"86":[0,0.69141,0,0,0.83131],"87":[0,0.69141,0,0,1.04602],"88":[0,0.69141,0,0,0.71922],"89":[0.18906,0.69141,0,0,0.83293],"90":[0.12604,0.69141,0,0,0.60201],"91":[0.24982,0.74947,0,0,0.27764],"93":[0.24982,0.74947,0,0,0.27764],"94":[0,0.69141,0,0,0.49965],"97":[0,0.47534,0,0,0.50046],"98":[0,0.69141,0,0,0.51315],"99":[0,0.47534,0,0,0.38946],"100":[0,0.62119,0,0,0.49857],"101":[0,0.47534,0,0,0.40053],"102":[0.18906,0.69141,0,0,0.32626],"103":[0.18906,0.47534,0,0,0.5037],"104":[0.18906,0.69141,0,0,0.52126],"105":[0,0.69141,0,0,0.27899],"106":[0,0.69141,0,0,0.28088],"107":[0,0.69141,0,0,0.38946],"108":[0,0.69141,0,0,0.27953],"109":[0,0.47534,0,0,0.76676],"110":[0,0.47534,0,0,0.52666],"111":[0,0.47534,0,0,0.48885],"112":[0.18906,0.52396,0,0,0.50046],"113":[0.18906,0.47534,0,0,0.48912],"114":[0,0.47534,0,0,0.38919],"115":[0,0.47534,0,0,0.44266],"116":[0,0.62119,0,0,0.33301],"117":[0,0.47534,0,0,0.5172],"118":[0,0.52396,0,0,0.5118],"119":[0,0.52396,0,0,0.77351],"120":[0.18906,0.47534,0,0,0.38865],"121":[0.18906,0.47534,0,0,0.49884],"122":[0.18906,0.47534,0,0,0.39054],"160":[0,0,0,0,0.25],"8216":[0,0.69141,0,0,0.21471],"8217":[0,0.69141,0,0,0.21471],"58112":[0,0.62119,0,0,0.49749],"58113":[0,0.62119,0,0,0.4983],"58114":[0.18906,0.69141,0,0,0.33328],"58115":[0.18906,0.69141,0,0,0.32923],"58116":[0.18906,0.47534,0,0,0.50343],"58117":[0,0.69141,0,0,0.33301],"58118":[0,0.62119,0,0,0.33409],"58119":[0,0.47534,0,0,0.50073]},"Main-Bold":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.35],"34":[0,0.69444,0,0,0.60278],"35":[0.19444,0.69444,0,0,0.95833],"36":[0.05556,0.75,0,0,0.575],"37":[0.05556,0.75,0,0,0.95833],"38":[0,0.69444,0,0,0.89444],"39":[0,0.69444,0,0,0.31944],"40":[0.25,0.75,0,0,0.44722],"41":[0.25,0.75,0,0,0.44722],"42":[0,0.75,0,0,0.575],"43":[0.13333,0.63333,0,0,0.89444],"44":[0.19444,0.15556,0,0,0.31944],"45":[0,0.44444,0,0,0.38333],"46":[0,0.15556,0,0,0.31944],"47":[0.25,0.75,0,0,0.575],"48":[0,0.64444,0,0,0.575],"49":[0,0.64444,0,0,0.575],"50":[0,0.64444,0,0,0.575],"51":[0,0.64444,0,0,0.575],"52":[0,0.64444,0,0,0.575],"53":[0,0.64444,0,0,0.575],"54":[0,0.64444,0,0,0.575],"55":[0,0.64444,0,0,0.575],"56":[0,0.64444,0,0,0.575],"57":[0,0.64444,0,0,0.575],"58":[0,0.44444,0,0,0.31944],"59":[0.19444,0.44444,0,0,0.31944],"60":[0.08556,0.58556,0,0,0.89444],"61":[-0.10889,0.39111,0,0,0.89444],"62":[0.08556,0.58556,0,0,0.89444],"63":[0,0.69444,0,0,0.54305],"64":[0,0.69444,0,0,0.89444],"65":[0,0.68611,0,0,0.86944],"66":[0,0.68611,0,0,0.81805],"67":[0,0.68611,0,0,0.83055],"68":[0,0.68611,0,0,0.88194],"69":[0,0.68611,0,0,0.75555],"70":[0,0.68611,0,0,0.72361],"71":[0,0.68611,0,0,0.90416],"72":[0,0.68611,0,0,0.9],"73":[0,0.68611,0,0,0.43611],"74":[0,0.68611,0,0,0.59444],"75":[0,0.68611,0,0,0.90138],"76":[0,0.68611,0,0,0.69166],"77":[0,0.68611,0,0,1.09166],"78":[0,0.68611,0,0,0.9],"79":[0,0.68611,0,0,0.86388],"80":[0,0.68611,0,0,0.78611],"81":[0.19444,0.68611,0,0,0.86388],"82":[0,0.68611,0,0,0.8625],"83":[0,0.68611,0,0,0.63889],"84":[0,0.68611,0,0,0.8],"85":[0,0.68611,0,0,0.88472],"86":[0,0.68611,0.01597,0,0.86944],"87":[0,0.68611,0.01597,0,1.18888],"88":[0,0.68611,0,0,0.86944],"89":[0,0.68611,0.02875,0,0.86944],"90":[0,0.68611,0,0,0.70277],"91":[0.25,0.75,0,0,0.31944],"92":[0.25,0.75,0,0,0.575],"93":[0.25,0.75,0,0,0.31944],"94":[0,0.69444,0,0,0.575],"95":[0.31,0.13444,0.03194,0,0.575],"97":[0,0.44444,0,0,0.55902],"98":[0,0.69444,0,0,0.63889],"99":[0,0.44444,0,0,0.51111],"100":[0,0.69444,0,0,0.63889],"101":[0,0.44444,0,0,0.52708],"102":[0,0.69444,0.10903,0,0.35139],"103":[0.19444,0.44444,0.01597,0,0.575],"104":[0,0.69444,0,0,0.63889],"105":[0,0.69444,0,0,0.31944],"106":[0.19444,0.69444,0,0,0.35139],"107":[0,0.69444,0,0,0.60694],"108":[0,0.69444,0,0,0.31944],"109":[0,0.44444,0,0,0.95833],"110":[0,0.44444,0,0,0.63889],"111":[0,0.44444,0,0,0.575],"112":[0.19444,0.44444,0,0,0.63889],"113":[0.19444,0.44444,0,0,0.60694],"114":[0,0.44444,0,0,0.47361],"115":[0,0.44444,0,0,0.45361],"116":[0,0.63492,0,0,0.44722],"117":[0,0.44444,0,0,0.63889],"118":[0,0.44444,0.01597,0,0.60694],"119":[0,0.44444,0.01597,0,0.83055],"120":[0,0.44444,0,0,0.60694],"121":[0.19444,0.44444,0.01597,0,0.60694],"122":[0,0.44444,0,0,0.51111],"123":[0.25,0.75,0,0,0.575],"124":[0.25,0.75,0,0,0.31944],"125":[0.25,0.75,0,0,0.575],"126":[0.35,0.34444,0,0,0.575],"160":[0,0,0,0,0.25],"163":[0,0.69444,0,0,0.86853],"168":[0,0.69444,0,0,0.575],"172":[0,0.44444,0,0,0.76666],"176":[0,0.69444,0,0,0.86944],"177":[0.13333,0.63333,0,0,0.89444],"184":[0.17014,0,0,0,0.51111],"198":[0,0.68611,0,0,1.04166],"215":[0.13333,0.63333,0,0,0.89444],"216":[0.04861,0.73472,0,0,0.89444],"223":[0,0.69444,0,0,0.59722],"230":[0,0.44444,0,0,0.83055],"247":[0.13333,0.63333,0,0,0.89444],"248":[0.09722,0.54167,0,0,0.575],"305":[0,0.44444,0,0,0.31944],"338":[0,0.68611,0,0,1.16944],"339":[0,0.44444,0,0,0.89444],"567":[0.19444,0.44444,0,0,0.35139],"710":[0,0.69444,0,0,0.575],"711":[0,0.63194,0,0,0.575],"713":[0,0.59611,0,0,0.575],"714":[0,0.69444,0,0,0.575],"715":[0,0.69444,0,0,0.575],"728":[0,0.69444,0,0,0.575],"729":[0,0.69444,0,0,0.31944],"730":[0,0.69444,0,0,0.86944],"732":[0,0.69444,0,0,0.575],"733":[0,0.69444,0,0,0.575],"915":[0,0.68611,0,0,0.69166],"916":[0,0.68611,0,0,0.95833],"920":[0,0.68611,0,0,0.89444],"923":[0,0.68611,0,0,0.80555],"926":[0,0.68611,0,0,0.76666],"928":[0,0.68611,0,0,0.9],"931":[0,0.68611,0,0,0.83055],"933":[0,0.68611,0,0,0.89444],"934":[0,0.68611,0,0,0.83055],"936":[0,0.68611,0,0,0.89444],"937":[0,0.68611,0,0,0.83055],"8211":[0,0.44444,0.03194,0,0.575],"8212":[0,0.44444,0.03194,0,1.14999],"8216":[0,0.69444,0,0,0.31944],"8217":[0,0.69444,0,0,0.31944],"8220":[0,0.69444,0,0,0.60278],"8221":[0,0.69444,0,0,0.60278],"8224":[0.19444,0.69444,0,0,0.51111],"8225":[0.19444,0.69444,0,0,0.51111],"8242":[0,0.55556,0,0,0.34444],"8407":[0,0.72444,0.15486,0,0.575],"8463":[0,0.69444,0,0,0.66759],"8465":[0,0.69444,0,0,0.83055],"8467":[0,0.69444,0,0,0.47361],"8472":[0.19444,0.44444,0,0,0.74027],"8476":[0,0.69444,0,0,0.83055],"8501":[0,0.69444,0,0,0.70277],"8592":[-0.10889,0.39111,0,0,1.14999],"8593":[0.19444,0.69444,0,0,0.575],"8594":[-0.10889,0.39111,0,0,1.14999],"8595":[0.19444,0.69444,0,0,0.575],"8596":[-0.10889,0.39111,0,0,1.14999],"8597":[0.25,0.75,0,0,0.575],"8598":[0.19444,0.69444,0,0,1.14999],"8599":[0.19444,0.69444,0,0,1.14999],"8600":[0.19444,0.69444,0,0,1.14999],"8601":[0.19444,0.69444,0,0,1.14999],"8636":[-0.10889,0.39111,0,0,1.14999],"8637":[-0.10889,0.39111,0,0,1.14999],"8640":[-0.10889,0.39111,0,0,1.14999],"8641":[-0.10889,0.39111,0,0,1.14999],"8656":[-0.10889,0.39111,0,0,1.14999],"8657":[0.19444,0.69444,0,0,0.70277],"8658":[-0.10889,0.39111,0,0,1.14999],"8659":[0.19444,0.69444,0,0,0.70277],"8660":[-0.10889,0.39111,0,0,1.14999],"8661":[0.25,0.75,0,0,0.70277],"8704":[0,0.69444,0,0,0.63889],"8706":[0,0.69444,0.06389,0,0.62847],"8707":[0,0.69444,0,0,0.63889],"8709":[0.05556,0.75,0,0,0.575],"8711":[0,0.68611,0,0,0.95833],"8712":[0.08556,0.58556,0,0,0.76666],"8715":[0.08556,0.58556,0,0,0.76666],"8722":[0.13333,0.63333,0,0,0.89444],"8723":[0.13333,0.63333,0,0,0.89444],"8725":[0.25,0.75,0,0,0.575],"8726":[0.25,0.75,0,0,0.575],"8727":[-0.02778,0.47222,0,0,0.575],"8728":[-0.02639,0.47361,0,0,0.575],"8729":[-0.02639,0.47361,0,0,0.575],"8730":[0.18,0.82,0,0,0.95833],"8733":[0,0.44444,0,0,0.89444],"8734":[0,0.44444,0,0,1.14999],"8736":[0,0.69224,0,0,0.72222],"8739":[0.25,0.75,0,0,0.31944],"8741":[0.25,0.75,0,0,0.575],"8743":[0,0.55556,0,0,0.76666],"8744":[0,0.55556,0,0,0.76666],"8745":[0,0.55556,0,0,0.76666],"8746":[0,0.55556,0,0,0.76666],"8747":[0.19444,0.69444,0.12778,0,0.56875],"8764":[-0.10889,0.39111,0,0,0.89444],"8768":[0.19444,0.69444,0,0,0.31944],"8771":[0.00222,0.50222,0,0,0.89444],"8773":[0.027,0.638,0,0,0.894],"8776":[0.02444,0.52444,0,0,0.89444],"8781":[0.00222,0.50222,0,0,0.89444],"8801":[0.00222,0.50222,0,0,0.89444],"8804":[0.19667,0.69667,0,0,0.89444],"8805":[0.19667,0.69667,0,0,0.89444],"8810":[0.08556,0.58556,0,0,1.14999],"8811":[0.08556,0.58556,0,0,1.14999],"8826":[0.08556,0.58556,0,0,0.89444],"8827":[0.08556,0.58556,0,0,0.89444],"8834":[0.08556,0.58556,0,0,0.89444],"8835":[0.08556,0.58556,0,0,0.89444],"8838":[0.19667,0.69667,0,0,0.89444],"8839":[0.19667,0.69667,0,0,0.89444],"8846":[0,0.55556,0,0,0.76666],"8849":[0.19667,0.69667,0,0,0.89444],"8850":[0.19667,0.69667,0,0,0.89444],"8851":[0,0.55556,0,0,0.76666],"8852":[0,0.55556,0,0,0.76666],"8853":[0.13333,0.63333,0,0,0.89444],"8854":[0.13333,0.63333,0,0,0.89444],"8855":[0.13333,0.63333,0,0,0.89444],"8856":[0.13333,0.63333,0,0,0.89444],"8857":[0.13333,0.63333,0,0,0.89444],"8866":[0,0.69444,0,0,0.70277],"8867":[0,0.69444,0,0,0.70277],"8868":[0,0.69444,0,0,0.89444],"8869":[0,0.69444,0,0,0.89444],"8900":[-0.02639,0.47361,0,0,0.575],"8901":[-0.02639,0.47361,0,0,0.31944],"8902":[-0.02778,0.47222,0,0,0.575],"8968":[0.25,0.75,0,0,0.51111],"8969":[0.25,0.75,0,0,0.51111],"8970":[0.25,0.75,0,0,0.51111],"8971":[0.25,0.75,0,0,0.51111],"8994":[-0.13889,0.36111,0,0,1.14999],"8995":[-0.13889,0.36111,0,0,1.14999],"9651":[0.19444,0.69444,0,0,1.02222],"9657":[-0.02778,0.47222,0,0,0.575],"9661":[0.19444,0.69444,0,0,1.02222],"9667":[-0.02778,0.47222,0,0,0.575],"9711":[0.19444,0.69444,0,0,1.14999],"9824":[0.12963,0.69444,0,0,0.89444],"9825":[0.12963,0.69444,0,0,0.89444],"9826":[0.12963,0.69444,0,0,0.89444],"9827":[0.12963,0.69444,0,0,0.89444],"9837":[0,0.75,0,0,0.44722],"9838":[0.19444,0.69444,0,0,0.44722],"9839":[0.19444,0.69444,0,0,0.44722],"10216":[0.25,0.75,0,0,0.44722],"10217":[0.25,0.75,0,0,0.44722],"10815":[0,0.68611,0,0,0.9],"10927":[0.19667,0.69667,0,0,0.89444],"10928":[0.19667,0.69667,0,0,0.89444],"57376":[0.19444,0.69444,0,0,0]},"Main-BoldItalic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.11417,0,0.38611],"34":[0,0.69444,0.07939,0,0.62055],"35":[0.19444,0.69444,0.06833,0,0.94444],"37":[0.05556,0.75,0.12861,0,0.94444],"38":[0,0.69444,0.08528,0,0.88555],"39":[0,0.69444,0.12945,0,0.35555],"40":[0.25,0.75,0.15806,0,0.47333],"41":[0.25,0.75,0.03306,0,0.47333],"42":[0,0.75,0.14333,0,0.59111],"43":[0.10333,0.60333,0.03306,0,0.88555],"44":[0.19444,0.14722,0,0,0.35555],"45":[0,0.44444,0.02611,0,0.41444],"46":[0,0.14722,0,0,0.35555],"47":[0.25,0.75,0.15806,0,0.59111],"48":[0,0.64444,0.13167,0,0.59111],"49":[0,0.64444,0.13167,0,0.59111],"50":[0,0.64444,0.13167,0,0.59111],"51":[0,0.64444,0.13167,0,0.59111],"52":[0.19444,0.64444,0.13167,0,0.59111],"53":[0,0.64444,0.13167,0,0.59111],"54":[0,0.64444,0.13167,0,0.59111],"55":[0.19444,0.64444,0.13167,0,0.59111],"56":[0,0.64444,0.13167,0,0.59111],"57":[0,0.64444,0.13167,0,0.59111],"58":[0,0.44444,0.06695,0,0.35555],"59":[0.19444,0.44444,0.06695,0,0.35555],"61":[-0.10889,0.39111,0.06833,0,0.88555],"63":[0,0.69444,0.11472,0,0.59111],"64":[0,0.69444,0.09208,0,0.88555],"65":[0,0.68611,0,0,0.86555],"66":[0,0.68611,0.0992,0,0.81666],"67":[0,0.68611,0.14208,0,0.82666],"68":[0,0.68611,0.09062,0,0.87555],"69":[0,0.68611,0.11431,0,0.75666],"70":[0,0.68611,0.12903,0,0.72722],"71":[0,0.68611,0.07347,0,0.89527],"72":[0,0.68611,0.17208,0,0.8961],"73":[0,0.68611,0.15681,0,0.47166],"74":[0,0.68611,0.145,0,0.61055],"75":[0,0.68611,0.14208,0,0.89499],"76":[0,0.68611,0,0,0.69777],"77":[0,0.68611,0.17208,0,1.07277],"78":[0,0.68611,0.17208,0,0.8961],"79":[0,0.68611,0.09062,0,0.85499],"80":[0,0.68611,0.0992,0,0.78721],"81":[0.19444,0.68611,0.09062,0,0.85499],"82":[0,0.68611,0.02559,0,0.85944],"83":[0,0.68611,0.11264,0,0.64999],"84":[0,0.68611,0.12903,0,0.7961],"85":[0,0.68611,0.17208,0,0.88083],"86":[0,0.68611,0.18625,0,0.86555],"87":[0,0.68611,0.18625,0,1.15999],"88":[0,0.68611,0.15681,0,0.86555],"89":[0,0.68611,0.19803,0,0.86555],"90":[0,0.68611,0.14208,0,0.70888],"91":[0.25,0.75,0.1875,0,0.35611],"93":[0.25,0.75,0.09972,0,0.35611],"94":[0,0.69444,0.06709,0,0.59111],"95":[0.31,0.13444,0.09811,0,0.59111],"97":[0,0.44444,0.09426,0,0.59111],"98":[0,0.69444,0.07861,0,0.53222],"99":[0,0.44444,0.05222,0,0.53222],"100":[0,0.69444,0.10861,0,0.59111],"101":[0,0.44444,0.085,0,0.53222],"102":[0.19444,0.69444,0.21778,0,0.4],"103":[0.19444,0.44444,0.105,0,0.53222],"104":[0,0.69444,0.09426,0,0.59111],"105":[0,0.69326,0.11387,0,0.35555],"106":[0.19444,0.69326,0.1672,0,0.35555],"107":[0,0.69444,0.11111,0,0.53222],"108":[0,0.69444,0.10861,0,0.29666],"109":[0,0.44444,0.09426,0,0.94444],"110":[0,0.44444,0.09426,0,0.64999],"111":[0,0.44444,0.07861,0,0.59111],"112":[0.19444,0.44444,0.07861,0,0.59111],"113":[0.19444,0.44444,0.105,0,0.53222],"114":[0,0.44444,0.11111,0,0.50167],"115":[0,0.44444,0.08167,0,0.48694],"116":[0,0.63492,0.09639,0,0.385],"117":[0,0.44444,0.09426,0,0.62055],"118":[0,0.44444,0.11111,0,0.53222],"119":[0,0.44444,0.11111,0,0.76777],"120":[0,0.44444,0.12583,0,0.56055],"121":[0.19444,0.44444,0.105,0,0.56166],"122":[0,0.44444,0.13889,0,0.49055],"126":[0.35,0.34444,0.11472,0,0.59111],"160":[0,0,0,0,0.25],"168":[0,0.69444,0.11473,0,0.59111],"176":[0,0.69444,0,0,0.94888],"184":[0.17014,0,0,0,0.53222],"198":[0,0.68611,0.11431,0,1.02277],"216":[0.04861,0.73472,0.09062,0,0.88555],"223":[0.19444,0.69444,0.09736,0,0.665],"230":[0,0.44444,0.085,0,0.82666],"248":[0.09722,0.54167,0.09458,0,0.59111],"305":[0,0.44444,0.09426,0,0.35555],"338":[0,0.68611,0.11431,0,1.14054],"339":[0,0.44444,0.085,0,0.82666],"567":[0.19444,0.44444,0.04611,0,0.385],"710":[0,0.69444,0.06709,0,0.59111],"711":[0,0.63194,0.08271,0,0.59111],"713":[0,0.59444,0.10444,0,0.59111],"714":[0,0.69444,0.08528,0,0.59111],"715":[0,0.69444,0,0,0.59111],"728":[0,0.69444,0.10333,0,0.59111],"729":[0,0.69444,0.12945,0,0.35555],"730":[0,0.69444,0,0,0.94888],"732":[0,0.69444,0.11472,0,0.59111],"733":[0,0.69444,0.11472,0,0.59111],"915":[0,0.68611,0.12903,0,0.69777],"916":[0,0.68611,0,0,0.94444],"920":[0,0.68611,0.09062,0,0.88555],"923":[0,0.68611,0,0,0.80666],"926":[0,0.68611,0.15092,0,0.76777],"928":[0,0.68611,0.17208,0,0.8961],"931":[0,0.68611,0.11431,0,0.82666],"933":[0,0.68611,0.10778,0,0.88555],"934":[0,0.68611,0.05632,0,0.82666],"936":[0,0.68611,0.10778,0,0.88555],"937":[0,0.68611,0.0992,0,0.82666],"8211":[0,0.44444,0.09811,0,0.59111],"8212":[0,0.44444,0.09811,0,1.18221],"8216":[0,0.69444,0.12945,0,0.35555],"8217":[0,0.69444,0.12945,0,0.35555],"8220":[0,0.69444,0.16772,0,0.62055],"8221":[0,0.69444,0.07939,0,0.62055]},"Main-Italic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.12417,0,0.30667],"34":[0,0.69444,0.06961,0,0.51444],"35":[0.19444,0.69444,0.06616,0,0.81777],"37":[0.05556,0.75,0.13639,0,0.81777],"38":[0,0.69444,0.09694,0,0.76666],"39":[0,0.69444,0.12417,0,0.30667],"40":[0.25,0.75,0.16194,0,0.40889],"41":[0.25,0.75,0.03694,0,0.40889],"42":[0,0.75,0.14917,0,0.51111],"43":[0.05667,0.56167,0.03694,0,0.76666],"44":[0.19444,0.10556,0,0,0.30667],"45":[0,0.43056,0.02826,0,0.35778],"46":[0,0.10556,0,0,0.30667],"47":[0.25,0.75,0.16194,0,0.51111],"48":[0,0.64444,0.13556,0,0.51111],"49":[0,0.64444,0.13556,0,0.51111],"50":[0,0.64444,0.13556,0,0.51111],"51":[0,0.64444,0.13556,0,0.51111],"52":[0.19444,0.64444,0.13556,0,0.51111],"53":[0,0.64444,0.13556,0,0.51111],"54":[0,0.64444,0.13556,0,0.51111],"55":[0.19444,0.64444,0.13556,0,0.51111],"56":[0,0.64444,0.13556,0,0.51111],"57":[0,0.64444,0.13556,0,0.51111],"58":[0,0.43056,0.0582,0,0.30667],"59":[0.19444,0.43056,0.0582,0,0.30667],"61":[-0.13313,0.36687,0.06616,0,0.76666],"63":[0,0.69444,0.1225,0,0.51111],"64":[0,0.69444,0.09597,0,0.76666],"65":[0,0.68333,0,0,0.74333],"66":[0,0.68333,0.10257,0,0.70389],"67":[0,0.68333,0.14528,0,0.71555],"68":[0,0.68333,0.09403,0,0.755],"69":[0,0.68333,0.12028,0,0.67833],"70":[0,0.68333,0.13305,0,0.65277],"71":[0,0.68333,0.08722,0,0.77361],"72":[0,0.68333,0.16389,0,0.74333],"73":[0,0.68333,0.15806,0,0.38555],"74":[0,0.68333,0.14028,0,0.525],"75":[0,0.68333,0.14528,0,0.76888],"76":[0,0.68333,0,0,0.62722],"77":[0,0.68333,0.16389,0,0.89666],"78":[0,0.68333,0.16389,0,0.74333],"79":[0,0.68333,0.09403,0,0.76666],"80":[0,0.68333,0.10257,0,0.67833],"81":[0.19444,0.68333,0.09403,0,0.76666],"82":[0,0.68333,0.03868,0,0.72944],"83":[0,0.68333,0.11972,0,0.56222],"84":[0,0.68333,0.13305,0,0.71555],"85":[0,0.68333,0.16389,0,0.74333],"86":[0,0.68333,0.18361,0,0.74333],"87":[0,0.68333,0.18361,0,0.99888],"88":[0,0.68333,0.15806,0,0.74333],"89":[0,0.68333,0.19383,0,0.74333],"90":[0,0.68333,0.14528,0,0.61333],"91":[0.25,0.75,0.1875,0,0.30667],"93":[0.25,0.75,0.10528,0,0.30667],"94":[0,0.69444,0.06646,0,0.51111],"95":[0.31,0.12056,0.09208,0,0.51111],"97":[0,0.43056,0.07671,0,0.51111],"98":[0,0.69444,0.06312,0,0.46],"99":[0,0.43056,0.05653,0,0.46],"100":[0,0.69444,0.10333,0,0.51111],"101":[0,0.43056,0.07514,0,0.46],"102":[0.19444,0.69444,0.21194,0,0.30667],"103":[0.19444,0.43056,0.08847,0,0.46],"104":[0,0.69444,0.07671,0,0.51111],"105":[0,0.65536,0.1019,0,0.30667],"106":[0.19444,0.65536,0.14467,0,0.30667],"107":[0,0.69444,0.10764,0,0.46],"108":[0,0.69444,0.10333,0,0.25555],"109":[0,0.43056,0.07671,0,0.81777],"110":[0,0.43056,0.07671,0,0.56222],"111":[0,0.43056,0.06312,0,0.51111],"112":[0.19444,0.43056,0.06312,0,0.51111],"113":[0.19444,0.43056,0.08847,0,0.46],"114":[0,0.43056,0.10764,0,0.42166],"115":[0,0.43056,0.08208,0,0.40889],"116":[0,0.61508,0.09486,0,0.33222],"117":[0,0.43056,0.07671,0,0.53666],"118":[0,0.43056,0.10764,0,0.46],"119":[0,0.43056,0.10764,0,0.66444],"120":[0,0.43056,0.12042,0,0.46389],"121":[0.19444,0.43056,0.08847,0,0.48555],"122":[0,0.43056,0.12292,0,0.40889],"126":[0.35,0.31786,0.11585,0,0.51111],"160":[0,0,0,0,0.25],"168":[0,0.66786,0.10474,0,0.51111],"176":[0,0.69444,0,0,0.83129],"184":[0.17014,0,0,0,0.46],"198":[0,0.68333,0.12028,0,0.88277],"216":[0.04861,0.73194,0.09403,0,0.76666],"223":[0.19444,0.69444,0.10514,0,0.53666],"230":[0,0.43056,0.07514,0,0.71555],"248":[0.09722,0.52778,0.09194,0,0.51111],"338":[0,0.68333,0.12028,0,0.98499],"339":[0,0.43056,0.07514,0,0.71555],"710":[0,0.69444,0.06646,0,0.51111],"711":[0,0.62847,0.08295,0,0.51111],"713":[0,0.56167,0.10333,0,0.51111],"714":[0,0.69444,0.09694,0,0.51111],"715":[0,0.69444,0,0,0.51111],"728":[0,0.69444,0.10806,0,0.51111],"729":[0,0.66786,0.11752,0,0.30667],"730":[0,0.69444,0,0,0.83129],"732":[0,0.66786,0.11585,0,0.51111],"733":[0,0.69444,0.1225,0,0.51111],"915":[0,0.68333,0.13305,0,0.62722],"916":[0,0.68333,0,0,0.81777],"920":[0,0.68333,0.09403,0,0.76666],"923":[0,0.68333,0,0,0.69222],"926":[0,0.68333,0.15294,0,0.66444],"928":[0,0.68333,0.16389,0,0.74333],"931":[0,0.68333,0.12028,0,0.71555],"933":[0,0.68333,0.11111,0,0.76666],"934":[0,0.68333,0.05986,0,0.71555],"936":[0,0.68333,0.11111,0,0.76666],"937":[0,0.68333,0.10257,0,0.71555],"8211":[0,0.43056,0.09208,0,0.51111],"8212":[0,0.43056,0.09208,0,1.02222],"8216":[0,0.69444,0.12417,0,0.30667],"8217":[0,0.69444,0.12417,0,0.30667],"8220":[0,0.69444,0.1685,0,0.51444],"8221":[0,0.69444,0.06961,0,0.51444],"8463":[0,0.68889,0,0,0.54028]},"Main-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.27778],"34":[0,0.69444,0,0,0.5],"35":[0.19444,0.69444,0,0,0.83334],"36":[0.05556,0.75,0,0,0.5],"37":[0.05556,0.75,0,0,0.83334],"38":[0,0.69444,0,0,0.77778],"39":[0,0.69444,0,0,0.27778],"40":[0.25,0.75,0,0,0.38889],"41":[0.25,0.75,0,0,0.38889],"42":[0,0.75,0,0,0.5],"43":[0.08333,0.58333,0,0,0.77778],"44":[0.19444,0.10556,0,0,0.27778],"45":[0,0.43056,0,0,0.33333],"46":[0,0.10556,0,0,0.27778],"47":[0.25,0.75,0,0,0.5],"48":[0,0.64444,0,0,0.5],"49":[0,0.64444,0,0,0.5],"50":[0,0.64444,0,0,0.5],"51":[0,0.64444,0,0,0.5],"52":[0,0.64444,0,0,0.5],"53":[0,0.64444,0,0,0.5],"54":[0,0.64444,0,0,0.5],"55":[0,0.64444,0,0,0.5],"56":[0,0.64444,0,0,0.5],"57":[0,0.64444,0,0,0.5],"58":[0,0.43056,0,0,0.27778],"59":[0.19444,0.43056,0,0,0.27778],"60":[0.0391,0.5391,0,0,0.77778],"61":[-0.13313,0.36687,0,0,0.77778],"62":[0.0391,0.5391,0,0,0.77778],"63":[0,0.69444,0,0,0.47222],"64":[0,0.69444,0,0,0.77778],"65":[0,0.68333,0,0,0.75],"66":[0,0.68333,0,0,0.70834],"67":[0,0.68333,0,0,0.72222],"68":[0,0.68333,0,0,0.76389],"69":[0,0.68333,0,0,0.68056],"70":[0,0.68333,0,0,0.65278],"71":[0,0.68333,0,0,0.78472],"72":[0,0.68333,0,0,0.75],"73":[0,0.68333,0,0,0.36111],"74":[0,0.68333,0,0,0.51389],"75":[0,0.68333,0,0,0.77778],"76":[0,0.68333,0,0,0.625],"77":[0,0.68333,0,0,0.91667],"78":[0,0.68333,0,0,0.75],"79":[0,0.68333,0,0,0.77778],"80":[0,0.68333,0,0,0.68056],"81":[0.19444,0.68333,0,0,0.77778],"82":[0,0.68333,0,0,0.73611],"83":[0,0.68333,0,0,0.55556],"84":[0,0.68333,0,0,0.72222],"85":[0,0.68333,0,0,0.75],"86":[0,0.68333,0.01389,0,0.75],"87":[0,0.68333,0.01389,0,1.02778],"88":[0,0.68333,0,0,0.75],"89":[0,0.68333,0.025,0,0.75],"90":[0,0.68333,0,0,0.61111],"91":[0.25,0.75,0,0,0.27778],"92":[0.25,0.75,0,0,0.5],"93":[0.25,0.75,0,0,0.27778],"94":[0,0.69444,0,0,0.5],"95":[0.31,0.12056,0.02778,0,0.5],"97":[0,0.43056,0,0,0.5],"98":[0,0.69444,0,0,0.55556],"99":[0,0.43056,0,0,0.44445],"100":[0,0.69444,0,0,0.55556],"101":[0,0.43056,0,0,0.44445],"102":[0,0.69444,0.07778,0,0.30556],"103":[0.19444,0.43056,0.01389,0,0.5],"104":[0,0.69444,0,0,0.55556],"105":[0,0.66786,0,0,0.27778],"106":[0.19444,0.66786,0,0,0.30556],"107":[0,0.69444,0,0,0.52778],"108":[0,0.69444,0,0,0.27778],"109":[0,0.43056,0,0,0.83334],"110":[0,0.43056,0,0,0.55556],"111":[0,0.43056,0,0,0.5],"112":[0.19444,0.43056,0,0,0.55556],"113":[0.19444,0.43056,0,0,0.52778],"114":[0,0.43056,0,0,0.39167],"115":[0,0.43056,0,0,0.39445],"116":[0,0.61508,0,0,0.38889],"117":[0,0.43056,0,0,0.55556],"118":[0,0.43056,0.01389,0,0.52778],"119":[0,0.43056,0.01389,0,0.72222],"120":[0,0.43056,0,0,0.52778],"121":[0.19444,0.43056,0.01389,0,0.52778],"122":[0,0.43056,0,0,0.44445],"123":[0.25,0.75,0,0,0.5],"124":[0.25,0.75,0,0,0.27778],"125":[0.25,0.75,0,0,0.5],"126":[0.35,0.31786,0,0,0.5],"160":[0,0,0,0,0.25],"163":[0,0.69444,0,0,0.76909],"167":[0.19444,0.69444,0,0,0.44445],"168":[0,0.66786,0,0,0.5],"172":[0,0.43056,0,0,0.66667],"176":[0,0.69444,0,0,0.75],"177":[0.08333,0.58333,0,0,0.77778],"182":[0.19444,0.69444,0,0,0.61111],"184":[0.17014,0,0,0,0.44445],"198":[0,0.68333,0,0,0.90278],"215":[0.08333,0.58333,0,0,0.77778],"216":[0.04861,0.73194,0,0,0.77778],"223":[0,0.69444,0,0,0.5],"230":[0,0.43056,0,0,0.72222],"247":[0.08333,0.58333,0,0,0.77778],"248":[0.09722,0.52778,0,0,0.5],"305":[0,0.43056,0,0,0.27778],"338":[0,0.68333,0,0,1.01389],"339":[0,0.43056,0,0,0.77778],"567":[0.19444,0.43056,0,0,0.30556],"710":[0,0.69444,0,0,0.5],"711":[0,0.62847,0,0,0.5],"713":[0,0.56778,0,0,0.5],"714":[0,0.69444,0,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0,0,0.5],"729":[0,0.66786,0,0,0.27778],"730":[0,0.69444,0,0,0.75],"732":[0,0.66786,0,0,0.5],"733":[0,0.69444,0,0,0.5],"915":[0,0.68333,0,0,0.625],"916":[0,0.68333,0,0,0.83334],"920":[0,0.68333,0,0,0.77778],"923":[0,0.68333,0,0,0.69445],"926":[0,0.68333,0,0,0.66667],"928":[0,0.68333,0,0,0.75],"931":[0,0.68333,0,0,0.72222],"933":[0,0.68333,0,0,0.77778],"934":[0,0.68333,0,0,0.72222],"936":[0,0.68333,0,0,0.77778],"937":[0,0.68333,0,0,0.72222],"8211":[0,0.43056,0.02778,0,0.5],"8212":[0,0.43056,0.02778,0,1],"8216":[0,0.69444,0,0,0.27778],"8217":[0,0.69444,0,0,0.27778],"8220":[0,0.69444,0,0,0.5],"8221":[0,0.69444,0,0,0.5],"8224":[0.19444,0.69444,0,0,0.44445],"8225":[0.19444,0.69444,0,0,0.44445],"8230":[0,0.123,0,0,1.172],"8242":[0,0.55556,0,0,0.275],"8407":[0,0.71444,0.15382,0,0.5],"8463":[0,0.68889,0,0,0.54028],"8465":[0,0.69444,0,0,0.72222],"8467":[0,0.69444,0,0.11111,0.41667],"8472":[0.19444,0.43056,0,0.11111,0.63646],"8476":[0,0.69444,0,0,0.72222],"8501":[0,0.69444,0,0,0.61111],"8592":[-0.13313,0.36687,0,0,1],"8593":[0.19444,0.69444,0,0,0.5],"8594":[-0.13313,0.36687,0,0,1],"8595":[0.19444,0.69444,0,0,0.5],"8596":[-0.13313,0.36687,0,0,1],"8597":[0.25,0.75,0,0,0.5],"8598":[0.19444,0.69444,0,0,1],"8599":[0.19444,0.69444,0,0,1],"8600":[0.19444,0.69444,0,0,1],"8601":[0.19444,0.69444,0,0,1],"8614":[0.011,0.511,0,0,1],"8617":[0.011,0.511,0,0,1.126],"8618":[0.011,0.511,0,0,1.126],"8636":[-0.13313,0.36687,0,0,1],"8637":[-0.13313,0.36687,0,0,1],"8640":[-0.13313,0.36687,0,0,1],"8641":[-0.13313,0.36687,0,0,1],"8652":[0.011,0.671,0,0,1],"8656":[-0.13313,0.36687,0,0,1],"8657":[0.19444,0.69444,0,0,0.61111],"8658":[-0.13313,0.36687,0,0,1],"8659":[0.19444,0.69444,0,0,0.61111],"8660":[-0.13313,0.36687,0,0,1],"8661":[0.25,0.75,0,0,0.61111],"8704":[0,0.69444,0,0,0.55556],"8706":[0,0.69444,0.05556,0.08334,0.5309],"8707":[0,0.69444,0,0,0.55556],"8709":[0.05556,0.75,0,0,0.5],"8711":[0,0.68333,0,0,0.83334],"8712":[0.0391,0.5391,0,0,0.66667],"8715":[0.0391,0.5391,0,0,0.66667],"8722":[0.08333,0.58333,0,0,0.77778],"8723":[0.08333,0.58333,0,0,0.77778],"8725":[0.25,0.75,0,0,0.5],"8726":[0.25,0.75,0,0,0.5],"8727":[-0.03472,0.46528,0,0,0.5],"8728":[-0.05555,0.44445,0,0,0.5],"8729":[-0.05555,0.44445,0,0,0.5],"8730":[0.2,0.8,0,0,0.83334],"8733":[0,0.43056,0,0,0.77778],"8734":[0,0.43056,0,0,1],"8736":[0,0.69224,0,0,0.72222],"8739":[0.25,0.75,0,0,0.27778],"8741":[0.25,0.75,0,0,0.5],"8743":[0,0.55556,0,0,0.66667],"8744":[0,0.55556,0,0,0.66667],"8745":[0,0.55556,0,0,0.66667],"8746":[0,0.55556,0,0,0.66667],"8747":[0.19444,0.69444,0.11111,0,0.41667],"8764":[-0.13313,0.36687,0,0,0.77778],"8768":[0.19444,0.69444,0,0,0.27778],"8771":[-0.03625,0.46375,0,0,0.77778],"8773":[-0.022,0.589,0,0,0.778],"8776":[-0.01688,0.48312,0,0,0.77778],"8781":[-0.03625,0.46375,0,0,0.77778],"8784":[-0.133,0.673,0,0,0.778],"8801":[-0.03625,0.46375,0,0,0.77778],"8804":[0.13597,0.63597,0,0,0.77778],"8805":[0.13597,0.63597,0,0,0.77778],"8810":[0.0391,0.5391,0,0,1],"8811":[0.0391,0.5391,0,0,1],"8826":[0.0391,0.5391,0,0,0.77778],"8827":[0.0391,0.5391,0,0,0.77778],"8834":[0.0391,0.5391,0,0,0.77778],"8835":[0.0391,0.5391,0,0,0.77778],"8838":[0.13597,0.63597,0,0,0.77778],"8839":[0.13597,0.63597,0,0,0.77778],"8846":[0,0.55556,0,0,0.66667],"8849":[0.13597,0.63597,0,0,0.77778],"8850":[0.13597,0.63597,0,0,0.77778],"8851":[0,0.55556,0,0,0.66667],"8852":[0,0.55556,0,0,0.66667],"8853":[0.08333,0.58333,0,0,0.77778],"8854":[0.08333,0.58333,0,0,0.77778],"8855":[0.08333,0.58333,0,0,0.77778],"8856":[0.08333,0.58333,0,0,0.77778],"8857":[0.08333,0.58333,0,0,0.77778],"8866":[0,0.69444,0,0,0.61111],"8867":[0,0.69444,0,0,0.61111],"8868":[0,0.69444,0,0,0.77778],"8869":[0,0.69444,0,0,0.77778],"8872":[0.249,0.75,0,0,0.867],"8900":[-0.05555,0.44445,0,0,0.5],"8901":[-0.05555,0.44445,0,0,0.27778],"8902":[-0.03472,0.46528,0,0,0.5],"8904":[0.005,0.505,0,0,0.9],"8942":[0.03,0.903,0,0,0.278],"8943":[-0.19,0.313,0,0,1.172],"8945":[-0.1,0.823,0,0,1.282],"8968":[0.25,0.75,0,0,0.44445],"8969":[0.25,0.75,0,0,0.44445],"8970":[0.25,0.75,0,0,0.44445],"8971":[0.25,0.75,0,0,0.44445],"8994":[-0.14236,0.35764,0,0,1],"8995":[-0.14236,0.35764,0,0,1],"9136":[0.244,0.744,0,0,0.412],"9137":[0.244,0.745,0,0,0.412],"9651":[0.19444,0.69444,0,0,0.88889],"9657":[-0.03472,0.46528,0,0,0.5],"9661":[0.19444,0.69444,0,0,0.88889],"9667":[-0.03472,0.46528,0,0,0.5],"9711":[0.19444,0.69444,0,0,1],"9824":[0.12963,0.69444,0,0,0.77778],"9825":[0.12963,0.69444,0,0,0.77778],"9826":[0.12963,0.69444,0,0,0.77778],"9827":[0.12963,0.69444,0,0,0.77778],"9837":[0,0.75,0,0,0.38889],"9838":[0.19444,0.69444,0,0,0.38889],"9839":[0.19444,0.69444,0,0,0.38889],"10216":[0.25,0.75,0,0,0.38889],"10217":[0.25,0.75,0,0,0.38889],"10222":[0.244,0.744,0,0,0.412],"10223":[0.244,0.745,0,0,0.412],"10229":[0.011,0.511,0,0,1.609],"10230":[0.011,0.511,0,0,1.638],"10231":[0.011,0.511,0,0,1.859],"10232":[0.024,0.525,0,0,1.609],"10233":[0.024,0.525,0,0,1.638],"10234":[0.024,0.525,0,0,1.858],"10236":[0.011,0.511,0,0,1.638],"10815":[0,0.68333,0,0,0.75],"10927":[0.13597,0.63597,0,0,0.77778],"10928":[0.13597,0.63597,0,0,0.77778],"57376":[0.19444,0.69444,0,0,0]},"Math-BoldItalic":{"32":[0,0,0,0,0.25],"48":[0,0.44444,0,0,0.575],"49":[0,0.44444,0,0,0.575],"50":[0,0.44444,0,0,0.575],"51":[0.19444,0.44444,0,0,0.575],"52":[0.19444,0.44444,0,0,0.575],"53":[0.19444,0.44444,0,0,0.575],"54":[0,0.64444,0,0,0.575],"55":[0.19444,0.44444,0,0,0.575],"56":[0,0.64444,0,0,0.575],"57":[0.19444,0.44444,0,0,0.575],"65":[0,0.68611,0,0,0.86944],"66":[0,0.68611,0.04835,0,0.8664],"67":[0,0.68611,0.06979,0,0.81694],"68":[0,0.68611,0.03194,0,0.93812],"69":[0,0.68611,0.05451,0,0.81007],"70":[0,0.68611,0.15972,0,0.68889],"71":[0,0.68611,0,0,0.88673],"72":[0,0.68611,0.08229,0,0.98229],"73":[0,0.68611,0.07778,0,0.51111],"74":[0,0.68611,0.10069,0,0.63125],"75":[0,0.68611,0.06979,0,0.97118],"76":[0,0.68611,0,0,0.75555],"77":[0,0.68611,0.11424,0,1.14201],"78":[0,0.68611,0.11424,0,0.95034],"79":[0,0.68611,0.03194,0,0.83666],"80":[0,0.68611,0.15972,0,0.72309],"81":[0.19444,0.68611,0,0,0.86861],"82":[0,0.68611,0.00421,0,0.87235],"83":[0,0.68611,0.05382,0,0.69271],"84":[0,0.68611,0.15972,0,0.63663],"85":[0,0.68611,0.11424,0,0.80027],"86":[0,0.68611,0.25555,0,0.67778],"87":[0,0.68611,0.15972,0,1.09305],"88":[0,0.68611,0.07778,0,0.94722],"89":[0,0.68611,0.25555,0,0.67458],"90":[0,0.68611,0.06979,0,0.77257],"97":[0,0.44444,0,0,0.63287],"98":[0,0.69444,0,0,0.52083],"99":[0,0.44444,0,0,0.51342],"100":[0,0.69444,0,0,0.60972],"101":[0,0.44444,0,0,0.55361],"102":[0.19444,0.69444,0.11042,0,0.56806],"103":[0.19444,0.44444,0.03704,0,0.5449],"104":[0,0.69444,0,0,0.66759],"105":[0,0.69326,0,0,0.4048],"106":[0.19444,0.69326,0.0622,0,0.47083],"107":[0,0.69444,0.01852,0,0.6037],"108":[0,0.69444,0.0088,0,0.34815],"109":[0,0.44444,0,0,1.0324],"110":[0,0.44444,0,0,0.71296],"111":[0,0.44444,0,0,0.58472],"112":[0.19444,0.44444,0,0,0.60092],"113":[0.19444,0.44444,0.03704,0,0.54213],"114":[0,0.44444,0.03194,0,0.5287],"115":[0,0.44444,0,0,0.53125],"116":[0,0.63492,0,0,0.41528],"117":[0,0.44444,0,0,0.68102],"118":[0,0.44444,0.03704,0,0.56666],"119":[0,0.44444,0.02778,0,0.83148],"120":[0,0.44444,0,0,0.65903],"121":[0.19444,0.44444,0.03704,0,0.59028],"122":[0,0.44444,0.04213,0,0.55509],"160":[0,0,0,0,0.25],"915":[0,0.68611,0.15972,0,0.65694],"916":[0,0.68611,0,0,0.95833],"920":[0,0.68611,0.03194,0,0.86722],"923":[0,0.68611,0,0,0.80555],"926":[0,0.68611,0.07458,0,0.84125],"928":[0,0.68611,0.08229,0,0.98229],"931":[0,0.68611,0.05451,0,0.88507],"933":[0,0.68611,0.15972,0,0.67083],"934":[0,0.68611,0,0,0.76666],"936":[0,0.68611,0.11653,0,0.71402],"937":[0,0.68611,0.04835,0,0.8789],"945":[0,0.44444,0,0,0.76064],"946":[0.19444,0.69444,0.03403,0,0.65972],"947":[0.19444,0.44444,0.06389,0,0.59003],"948":[0,0.69444,0.03819,0,0.52222],"949":[0,0.44444,0,0,0.52882],"950":[0.19444,0.69444,0.06215,0,0.50833],"951":[0.19444,0.44444,0.03704,0,0.6],"952":[0,0.69444,0.03194,0,0.5618],"953":[0,0.44444,0,0,0.41204],"954":[0,0.44444,0,0,0.66759],"955":[0,0.69444,0,0,0.67083],"956":[0.19444,0.44444,0,0,0.70787],"957":[0,0.44444,0.06898,0,0.57685],"958":[0.19444,0.69444,0.03021,0,0.50833],"959":[0,0.44444,0,0,0.58472],"960":[0,0.44444,0.03704,0,0.68241],"961":[0.19444,0.44444,0,0,0.6118],"962":[0.09722,0.44444,0.07917,0,0.42361],"963":[0,0.44444,0.03704,0,0.68588],"964":[0,0.44444,0.13472,0,0.52083],"965":[0,0.44444,0.03704,0,0.63055],"966":[0.19444,0.44444,0,0,0.74722],"967":[0.19444,0.44444,0,0,0.71805],"968":[0.19444,0.69444,0.03704,0,0.75833],"969":[0,0.44444,0.03704,0,0.71782],"977":[0,0.69444,0,0,0.69155],"981":[0.19444,0.69444,0,0,0.7125],"982":[0,0.44444,0.03194,0,0.975],"1009":[0.19444,0.44444,0,0,0.6118],"1013":[0,0.44444,0,0,0.48333],"57649":[0,0.44444,0,0,0.39352],"57911":[0.19444,0.44444,0,0,0.43889]},"Math-Italic":{"32":[0,0,0,0,0.25],"48":[0,0.43056,0,0,0.5],"49":[0,0.43056,0,0,0.5],"50":[0,0.43056,0,0,0.5],"51":[0.19444,0.43056,0,0,0.5],"52":[0.19444,0.43056,0,0,0.5],"53":[0.19444,0.43056,0,0,0.5],"54":[0,0.64444,0,0,0.5],"55":[0.19444,0.43056,0,0,0.5],"56":[0,0.64444,0,0,0.5],"57":[0.19444,0.43056,0,0,0.5],"65":[0,0.68333,0,0.13889,0.75],"66":[0,0.68333,0.05017,0.08334,0.75851],"67":[0,0.68333,0.07153,0.08334,0.71472],"68":[0,0.68333,0.02778,0.05556,0.82792],"69":[0,0.68333,0.05764,0.08334,0.7382],"70":[0,0.68333,0.13889,0.08334,0.64306],"71":[0,0.68333,0,0.08334,0.78625],"72":[0,0.68333,0.08125,0.05556,0.83125],"73":[0,0.68333,0.07847,0.11111,0.43958],"74":[0,0.68333,0.09618,0.16667,0.55451],"75":[0,0.68333,0.07153,0.05556,0.84931],"76":[0,0.68333,0,0.02778,0.68056],"77":[0,0.68333,0.10903,0.08334,0.97014],"78":[0,0.68333,0.10903,0.08334,0.80347],"79":[0,0.68333,0.02778,0.08334,0.76278],"80":[0,0.68333,0.13889,0.08334,0.64201],"81":[0.19444,0.68333,0,0.08334,0.79056],"82":[0,0.68333,0.00773,0.08334,0.75929],"83":[0,0.68333,0.05764,0.08334,0.6132],"84":[0,0.68333,0.13889,0.08334,0.58438],"85":[0,0.68333,0.10903,0.02778,0.68278],"86":[0,0.68333,0.22222,0,0.58333],"87":[0,0.68333,0.13889,0,0.94445],"88":[0,0.68333,0.07847,0.08334,0.82847],"89":[0,0.68333,0.22222,0,0.58056],"90":[0,0.68333,0.07153,0.08334,0.68264],"97":[0,0.43056,0,0,0.52859],"98":[0,0.69444,0,0,0.42917],"99":[0,0.43056,0,0.05556,0.43276],"100":[0,0.69444,0,0.16667,0.52049],"101":[0,0.43056,0,0.05556,0.46563],"102":[0.19444,0.69444,0.10764,0.16667,0.48959],"103":[0.19444,0.43056,0.03588,0.02778,0.47697],"104":[0,0.69444,0,0,0.57616],"105":[0,0.65952,0,0,0.34451],"106":[0.19444,0.65952,0.05724,0,0.41181],"107":[0,0.69444,0.03148,0,0.5206],"108":[0,0.69444,0.01968,0.08334,0.29838],"109":[0,0.43056,0,0,0.87801],"110":[0,0.43056,0,0,0.60023],"111":[0,0.43056,0,0.05556,0.48472],"112":[0.19444,0.43056,0,0.08334,0.50313],"113":[0.19444,0.43056,0.03588,0.08334,0.44641],"114":[0,0.43056,0.02778,0.05556,0.45116],"115":[0,0.43056,0,0.05556,0.46875],"116":[0,0.61508,0,0.08334,0.36111],"117":[0,0.43056,0,0.02778,0.57246],"118":[0,0.43056,0.03588,0.02778,0.48472],"119":[0,0.43056,0.02691,0.08334,0.71592],"120":[0,0.43056,0,0.02778,0.57153],"121":[0.19444,0.43056,0.03588,0.05556,0.49028],"122":[0,0.43056,0.04398,0.05556,0.46505],"160":[0,0,0,0,0.25],"915":[0,0.68333,0.13889,0.08334,0.61528],"916":[0,0.68333,0,0.16667,0.83334],"920":[0,0.68333,0.02778,0.08334,0.76278],"923":[0,0.68333,0,0.16667,0.69445],"926":[0,0.68333,0.07569,0.08334,0.74236],"928":[0,0.68333,0.08125,0.05556,0.83125],"931":[0,0.68333,0.05764,0.08334,0.77986],"933":[0,0.68333,0.13889,0.05556,0.58333],"934":[0,0.68333,0,0.08334,0.66667],"936":[0,0.68333,0.11,0.05556,0.61222],"937":[0,0.68333,0.05017,0.08334,0.7724],"945":[0,0.43056,0.0037,0.02778,0.6397],"946":[0.19444,0.69444,0.05278,0.08334,0.56563],"947":[0.19444,0.43056,0.05556,0,0.51773],"948":[0,0.69444,0.03785,0.05556,0.44444],"949":[0,0.43056,0,0.08334,0.46632],"950":[0.19444,0.69444,0.07378,0.08334,0.4375],"951":[0.19444,0.43056,0.03588,0.05556,0.49653],"952":[0,0.69444,0.02778,0.08334,0.46944],"953":[0,0.43056,0,0.05556,0.35394],"954":[0,0.43056,0,0,0.57616],"955":[0,0.69444,0,0,0.58334],"956":[0.19444,0.43056,0,0.02778,0.60255],"957":[0,0.43056,0.06366,0.02778,0.49398],"958":[0.19444,0.69444,0.04601,0.11111,0.4375],"959":[0,0.43056,0,0.05556,0.48472],"960":[0,0.43056,0.03588,0,0.57003],"961":[0.19444,0.43056,0,0.08334,0.51702],"962":[0.09722,0.43056,0.07986,0.08334,0.36285],"963":[0,0.43056,0.03588,0,0.57141],"964":[0,0.43056,0.1132,0.02778,0.43715],"965":[0,0.43056,0.03588,0.02778,0.54028],"966":[0.19444,0.43056,0,0.08334,0.65417],"967":[0.19444,0.43056,0,0.05556,0.62569],"968":[0.19444,0.69444,0.03588,0.11111,0.65139],"969":[0,0.43056,0.03588,0,0.62245],"977":[0,0.69444,0,0.08334,0.59144],"981":[0.19444,0.69444,0,0.08334,0.59583],"982":[0,0.43056,0.02778,0,0.82813],"1009":[0.19444,0.43056,0,0.08334,0.51702],"1013":[0,0.43056,0,0.05556,0.4059],"57649":[0,0.43056,0,0.02778,0.32246],"57911":[0.19444,0.43056,0,0.08334,0.38403]},"SansSerif-Bold":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.36667],"34":[0,0.69444,0,0,0.55834],"35":[0.19444,0.69444,0,0,0.91667],"36":[0.05556,0.75,0,0,0.55],"37":[0.05556,0.75,0,0,1.02912],"38":[0,0.69444,0,0,0.83056],"39":[0,0.69444,0,0,0.30556],"40":[0.25,0.75,0,0,0.42778],"41":[0.25,0.75,0,0,0.42778],"42":[0,0.75,0,0,0.55],"43":[0.11667,0.61667,0,0,0.85556],"44":[0.10556,0.13056,0,0,0.30556],"45":[0,0.45833,0,0,0.36667],"46":[0,0.13056,0,0,0.30556],"47":[0.25,0.75,0,0,0.55],"48":[0,0.69444,0,0,0.55],"49":[0,0.69444,0,0,0.55],"50":[0,0.69444,0,0,0.55],"51":[0,0.69444,0,0,0.55],"52":[0,0.69444,0,0,0.55],"53":[0,0.69444,0,0,0.55],"54":[0,0.69444,0,0,0.55],"55":[0,0.69444,0,0,0.55],"56":[0,0.69444,0,0,0.55],"57":[0,0.69444,0,0,0.55],"58":[0,0.45833,0,0,0.30556],"59":[0.10556,0.45833,0,0,0.30556],"61":[-0.09375,0.40625,0,0,0.85556],"63":[0,0.69444,0,0,0.51945],"64":[0,0.69444,0,0,0.73334],"65":[0,0.69444,0,0,0.73334],"66":[0,0.69444,0,0,0.73334],"67":[0,0.69444,0,0,0.70278],"68":[0,0.69444,0,0,0.79445],"69":[0,0.69444,0,0,0.64167],"70":[0,0.69444,0,0,0.61111],"71":[0,0.69444,0,0,0.73334],"72":[0,0.69444,0,0,0.79445],"73":[0,0.69444,0,0,0.33056],"74":[0,0.69444,0,0,0.51945],"75":[0,0.69444,0,0,0.76389],"76":[0,0.69444,0,0,0.58056],"77":[0,0.69444,0,0,0.97778],"78":[0,0.69444,0,0,0.79445],"79":[0,0.69444,0,0,0.79445],"80":[0,0.69444,0,0,0.70278],"81":[0.10556,0.69444,0,0,0.79445],"82":[0,0.69444,0,0,0.70278],"83":[0,0.69444,0,0,0.61111],"84":[0,0.69444,0,0,0.73334],"85":[0,0.69444,0,0,0.76389],"86":[0,0.69444,0.01528,0,0.73334],"87":[0,0.69444,0.01528,0,1.03889],"88":[0,0.69444,0,0,0.73334],"89":[0,0.69444,0.0275,0,0.73334],"90":[0,0.69444,0,0,0.67223],"91":[0.25,0.75,0,0,0.34306],"93":[0.25,0.75,0,0,0.34306],"94":[0,0.69444,0,0,0.55],"95":[0.35,0.10833,0.03056,0,0.55],"97":[0,0.45833,0,0,0.525],"98":[0,0.69444,0,0,0.56111],"99":[0,0.45833,0,0,0.48889],"100":[0,0.69444,0,0,0.56111],"101":[0,0.45833,0,0,0.51111],"102":[0,0.69444,0.07639,0,0.33611],"103":[0.19444,0.45833,0.01528,0,0.55],"104":[0,0.69444,0,0,0.56111],"105":[0,0.69444,0,0,0.25556],"106":[0.19444,0.69444,0,0,0.28611],"107":[0,0.69444,0,0,0.53056],"108":[0,0.69444,0,0,0.25556],"109":[0,0.45833,0,0,0.86667],"110":[0,0.45833,0,0,0.56111],"111":[0,0.45833,0,0,0.55],"112":[0.19444,0.45833,0,0,0.56111],"113":[0.19444,0.45833,0,0,0.56111],"114":[0,0.45833,0.01528,0,0.37222],"115":[0,0.45833,0,0,0.42167],"116":[0,0.58929,0,0,0.40417],"117":[0,0.45833,0,0,0.56111],"118":[0,0.45833,0.01528,0,0.5],"119":[0,0.45833,0.01528,0,0.74445],"120":[0,0.45833,0,0,0.5],"121":[0.19444,0.45833,0.01528,0,0.5],"122":[0,0.45833,0,0,0.47639],"126":[0.35,0.34444,0,0,0.55],"160":[0,0,0,0,0.25],"168":[0,0.69444,0,0,0.55],"176":[0,0.69444,0,0,0.73334],"180":[0,0.69444,0,0,0.55],"184":[0.17014,0,0,0,0.48889],"305":[0,0.45833,0,0,0.25556],"567":[0.19444,0.45833,0,0,0.28611],"710":[0,0.69444,0,0,0.55],"711":[0,0.63542,0,0,0.55],"713":[0,0.63778,0,0,0.55],"728":[0,0.69444,0,0,0.55],"729":[0,0.69444,0,0,0.30556],"730":[0,0.69444,0,0,0.73334],"732":[0,0.69444,0,0,0.55],"733":[0,0.69444,0,0,0.55],"915":[0,0.69444,0,0,0.58056],"916":[0,0.69444,0,0,0.91667],"920":[0,0.69444,0,0,0.85556],"923":[0,0.69444,0,0,0.67223],"926":[0,0.69444,0,0,0.73334],"928":[0,0.69444,0,0,0.79445],"931":[0,0.69444,0,0,0.79445],"933":[0,0.69444,0,0,0.85556],"934":[0,0.69444,0,0,0.79445],"936":[0,0.69444,0,0,0.85556],"937":[0,0.69444,0,0,0.79445],"8211":[0,0.45833,0.03056,0,0.55],"8212":[0,0.45833,0.03056,0,1.10001],"8216":[0,0.69444,0,0,0.30556],"8217":[0,0.69444,0,0,0.30556],"8220":[0,0.69444,0,0,0.55834],"8221":[0,0.69444,0,0,0.55834]},"SansSerif-Italic":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0.05733,0,0.31945],"34":[0,0.69444,0.00316,0,0.5],"35":[0.19444,0.69444,0.05087,0,0.83334],"36":[0.05556,0.75,0.11156,0,0.5],"37":[0.05556,0.75,0.03126,0,0.83334],"38":[0,0.69444,0.03058,0,0.75834],"39":[0,0.69444,0.07816,0,0.27778],"40":[0.25,0.75,0.13164,0,0.38889],"41":[0.25,0.75,0.02536,0,0.38889],"42":[0,0.75,0.11775,0,0.5],"43":[0.08333,0.58333,0.02536,0,0.77778],"44":[0.125,0.08333,0,0,0.27778],"45":[0,0.44444,0.01946,0,0.33333],"46":[0,0.08333,0,0,0.27778],"47":[0.25,0.75,0.13164,0,0.5],"48":[0,0.65556,0.11156,0,0.5],"49":[0,0.65556,0.11156,0,0.5],"50":[0,0.65556,0.11156,0,0.5],"51":[0,0.65556,0.11156,0,0.5],"52":[0,0.65556,0.11156,0,0.5],"53":[0,0.65556,0.11156,0,0.5],"54":[0,0.65556,0.11156,0,0.5],"55":[0,0.65556,0.11156,0,0.5],"56":[0,0.65556,0.11156,0,0.5],"57":[0,0.65556,0.11156,0,0.5],"58":[0,0.44444,0.02502,0,0.27778],"59":[0.125,0.44444,0.02502,0,0.27778],"61":[-0.13,0.37,0.05087,0,0.77778],"63":[0,0.69444,0.11809,0,0.47222],"64":[0,0.69444,0.07555,0,0.66667],"65":[0,0.69444,0,0,0.66667],"66":[0,0.69444,0.08293,0,0.66667],"67":[0,0.69444,0.11983,0,0.63889],"68":[0,0.69444,0.07555,0,0.72223],"69":[0,0.69444,0.11983,0,0.59722],"70":[0,0.69444,0.13372,0,0.56945],"71":[0,0.69444,0.11983,0,0.66667],"72":[0,0.69444,0.08094,0,0.70834],"73":[0,0.69444,0.13372,0,0.27778],"74":[0,0.69444,0.08094,0,0.47222],"75":[0,0.69444,0.11983,0,0.69445],"76":[0,0.69444,0,0,0.54167],"77":[0,0.69444,0.08094,0,0.875],"78":[0,0.69444,0.08094,0,0.70834],"79":[0,0.69444,0.07555,0,0.73611],"80":[0,0.69444,0.08293,0,0.63889],"81":[0.125,0.69444,0.07555,0,0.73611],"82":[0,0.69444,0.08293,0,0.64584],"83":[0,0.69444,0.09205,0,0.55556],"84":[0,0.69444,0.13372,0,0.68056],"85":[0,0.69444,0.08094,0,0.6875],"86":[0,0.69444,0.1615,0,0.66667],"87":[0,0.69444,0.1615,0,0.94445],"88":[0,0.69444,0.13372,0,0.66667],"89":[0,0.69444,0.17261,0,0.66667],"90":[0,0.69444,0.11983,0,0.61111],"91":[0.25,0.75,0.15942,0,0.28889],"93":[0.25,0.75,0.08719,0,0.28889],"94":[0,0.69444,0.0799,0,0.5],"95":[0.35,0.09444,0.08616,0,0.5],"97":[0,0.44444,0.00981,0,0.48056],"98":[0,0.69444,0.03057,0,0.51667],"99":[0,0.44444,0.08336,0,0.44445],"100":[0,0.69444,0.09483,0,0.51667],"101":[0,0.44444,0.06778,0,0.44445],"102":[0,0.69444,0.21705,0,0.30556],"103":[0.19444,0.44444,0.10836,0,0.5],"104":[0,0.69444,0.01778,0,0.51667],"105":[0,0.67937,0.09718,0,0.23889],"106":[0.19444,0.67937,0.09162,0,0.26667],"107":[0,0.69444,0.08336,0,0.48889],"108":[0,0.69444,0.09483,0,0.23889],"109":[0,0.44444,0.01778,0,0.79445],"110":[0,0.44444,0.01778,0,0.51667],"111":[0,0.44444,0.06613,0,0.5],"112":[0.19444,0.44444,0.0389,0,0.51667],"113":[0.19444,0.44444,0.04169,0,0.51667],"114":[0,0.44444,0.10836,0,0.34167],"115":[0,0.44444,0.0778,0,0.38333],"116":[0,0.57143,0.07225,0,0.36111],"117":[0,0.44444,0.04169,0,0.51667],"118":[0,0.44444,0.10836,0,0.46111],"119":[0,0.44444,0.10836,0,0.68334],"120":[0,0.44444,0.09169,0,0.46111],"121":[0.19444,0.44444,0.10836,0,0.46111],"122":[0,0.44444,0.08752,0,0.43472],"126":[0.35,0.32659,0.08826,0,0.5],"160":[0,0,0,0,0.25],"168":[0,0.67937,0.06385,0,0.5],"176":[0,0.69444,0,0,0.73752],"184":[0.17014,0,0,0,0.44445],"305":[0,0.44444,0.04169,0,0.23889],"567":[0.19444,0.44444,0.04169,0,0.26667],"710":[0,0.69444,0.0799,0,0.5],"711":[0,0.63194,0.08432,0,0.5],"713":[0,0.60889,0.08776,0,0.5],"714":[0,0.69444,0.09205,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0.09483,0,0.5],"729":[0,0.67937,0.07774,0,0.27778],"730":[0,0.69444,0,0,0.73752],"732":[0,0.67659,0.08826,0,0.5],"733":[0,0.69444,0.09205,0,0.5],"915":[0,0.69444,0.13372,0,0.54167],"916":[0,0.69444,0,0,0.83334],"920":[0,0.69444,0.07555,0,0.77778],"923":[0,0.69444,0,0,0.61111],"926":[0,0.69444,0.12816,0,0.66667],"928":[0,0.69444,0.08094,0,0.70834],"931":[0,0.69444,0.11983,0,0.72222],"933":[0,0.69444,0.09031,0,0.77778],"934":[0,0.69444,0.04603,0,0.72222],"936":[0,0.69444,0.09031,0,0.77778],"937":[0,0.69444,0.08293,0,0.72222],"8211":[0,0.44444,0.08616,0,0.5],"8212":[0,0.44444,0.08616,0,1],"8216":[0,0.69444,0.07816,0,0.27778],"8217":[0,0.69444,0.07816,0,0.27778],"8220":[0,0.69444,0.14205,0,0.5],"8221":[0,0.69444,0.00316,0,0.5]},"SansSerif-Regular":{"32":[0,0,0,0,0.25],"33":[0,0.69444,0,0,0.31945],"34":[0,0.69444,0,0,0.5],"35":[0.19444,0.69444,0,0,0.83334],"36":[0.05556,0.75,0,0,0.5],"37":[0.05556,0.75,0,0,0.83334],"38":[0,0.69444,0,0,0.75834],"39":[0,0.69444,0,0,0.27778],"40":[0.25,0.75,0,0,0.38889],"41":[0.25,0.75,0,0,0.38889],"42":[0,0.75,0,0,0.5],"43":[0.08333,0.58333,0,0,0.77778],"44":[0.125,0.08333,0,0,0.27778],"45":[0,0.44444,0,0,0.33333],"46":[0,0.08333,0,0,0.27778],"47":[0.25,0.75,0,0,0.5],"48":[0,0.65556,0,0,0.5],"49":[0,0.65556,0,0,0.5],"50":[0,0.65556,0,0,0.5],"51":[0,0.65556,0,0,0.5],"52":[0,0.65556,0,0,0.5],"53":[0,0.65556,0,0,0.5],"54":[0,0.65556,0,0,0.5],"55":[0,0.65556,0,0,0.5],"56":[0,0.65556,0,0,0.5],"57":[0,0.65556,0,0,0.5],"58":[0,0.44444,0,0,0.27778],"59":[0.125,0.44444,0,0,0.27778],"61":[-0.13,0.37,0,0,0.77778],"63":[0,0.69444,0,0,0.47222],"64":[0,0.69444,0,0,0.66667],"65":[0,0.69444,0,0,0.66667],"66":[0,0.69444,0,0,0.66667],"67":[0,0.69444,0,0,0.63889],"68":[0,0.69444,0,0,0.72223],"69":[0,0.69444,0,0,0.59722],"70":[0,0.69444,0,0,0.56945],"71":[0,0.69444,0,0,0.66667],"72":[0,0.69444,0,0,0.70834],"73":[0,0.69444,0,0,0.27778],"74":[0,0.69444,0,0,0.47222],"75":[0,0.69444,0,0,0.69445],"76":[0,0.69444,0,0,0.54167],"77":[0,0.69444,0,0,0.875],"78":[0,0.69444,0,0,0.70834],"79":[0,0.69444,0,0,0.73611],"80":[0,0.69444,0,0,0.63889],"81":[0.125,0.69444,0,0,0.73611],"82":[0,0.69444,0,0,0.64584],"83":[0,0.69444,0,0,0.55556],"84":[0,0.69444,0,0,0.68056],"85":[0,0.69444,0,0,0.6875],"86":[0,0.69444,0.01389,0,0.66667],"87":[0,0.69444,0.01389,0,0.94445],"88":[0,0.69444,0,0,0.66667],"89":[0,0.69444,0.025,0,0.66667],"90":[0,0.69444,0,0,0.61111],"91":[0.25,0.75,0,0,0.28889],"93":[0.25,0.75,0,0,0.28889],"94":[0,0.69444,0,0,0.5],"95":[0.35,0.09444,0.02778,0,0.5],"97":[0,0.44444,0,0,0.48056],"98":[0,0.69444,0,0,0.51667],"99":[0,0.44444,0,0,0.44445],"100":[0,0.69444,0,0,0.51667],"101":[0,0.44444,0,0,0.44445],"102":[0,0.69444,0.06944,0,0.30556],"103":[0.19444,0.44444,0.01389,0,0.5],"104":[0,0.69444,0,0,0.51667],"105":[0,0.67937,0,0,0.23889],"106":[0.19444,0.67937,0,0,0.26667],"107":[0,0.69444,0,0,0.48889],"108":[0,0.69444,0,0,0.23889],"109":[0,0.44444,0,0,0.79445],"110":[0,0.44444,0,0,0.51667],"111":[0,0.44444,0,0,0.5],"112":[0.19444,0.44444,0,0,0.51667],"113":[0.19444,0.44444,0,0,0.51667],"114":[0,0.44444,0.01389,0,0.34167],"115":[0,0.44444,0,0,0.38333],"116":[0,0.57143,0,0,0.36111],"117":[0,0.44444,0,0,0.51667],"118":[0,0.44444,0.01389,0,0.46111],"119":[0,0.44444,0.01389,0,0.68334],"120":[0,0.44444,0,0,0.46111],"121":[0.19444,0.44444,0.01389,0,0.46111],"122":[0,0.44444,0,0,0.43472],"126":[0.35,0.32659,0,0,0.5],"160":[0,0,0,0,0.25],"168":[0,0.67937,0,0,0.5],"176":[0,0.69444,0,0,0.66667],"184":[0.17014,0,0,0,0.44445],"305":[0,0.44444,0,0,0.23889],"567":[0.19444,0.44444,0,0,0.26667],"710":[0,0.69444,0,0,0.5],"711":[0,0.63194,0,0,0.5],"713":[0,0.60889,0,0,0.5],"714":[0,0.69444,0,0,0.5],"715":[0,0.69444,0,0,0.5],"728":[0,0.69444,0,0,0.5],"729":[0,0.67937,0,0,0.27778],"730":[0,0.69444,0,0,0.66667],"732":[0,0.67659,0,0,0.5],"733":[0,0.69444,0,0,0.5],"915":[0,0.69444,0,0,0.54167],"916":[0,0.69444,0,0,0.83334],"920":[0,0.69444,0,0,0.77778],"923":[0,0.69444,0,0,0.61111],"926":[0,0.69444,0,0,0.66667],"928":[0,0.69444,0,0,0.70834],"931":[0,0.69444,0,0,0.72222],"933":[0,0.69444,0,0,0.77778],"934":[0,0.69444,0,0,0.72222],"936":[0,0.69444,0,0,0.77778],"937":[0,0.69444,0,0,0.72222],"8211":[0,0.44444,0.02778,0,0.5],"8212":[0,0.44444,0.02778,0,1],"8216":[0,0.69444,0,0,0.27778],"8217":[0,0.69444,0,0,0.27778],"8220":[0,0.69444,0,0,0.5],"8221":[0,0.69444,0,0,0.5]},"Script-Regular":{"32":[0,0,0,0,0.25],"65":[0,0.7,0.22925,0,0.80253],"66":[0,0.7,0.04087,0,0.90757],"67":[0,0.7,0.1689,0,0.66619],"68":[0,0.7,0.09371,0,0.77443],"69":[0,0.7,0.18583,0,0.56162],"70":[0,0.7,0.13634,0,0.89544],"71":[0,0.7,0.17322,0,0.60961],"72":[0,0.7,0.29694,0,0.96919],"73":[0,0.7,0.19189,0,0.80907],"74":[0.27778,0.7,0.19189,0,1.05159],"75":[0,0.7,0.31259,0,0.91364],"76":[0,0.7,0.19189,0,0.87373],"77":[0,0.7,0.15981,0,1.08031],"78":[0,0.7,0.3525,0,0.9015],"79":[0,0.7,0.08078,0,0.73787],"80":[0,0.7,0.08078,0,1.01262],"81":[0,0.7,0.03305,0,0.88282],"82":[0,0.7,0.06259,0,0.85],"83":[0,0.7,0.19189,0,0.86767],"84":[0,0.7,0.29087,0,0.74697],"85":[0,0.7,0.25815,0,0.79996],"86":[0,0.7,0.27523,0,0.62204],"87":[0,0.7,0.27523,0,0.80532],"88":[0,0.7,0.26006,0,0.94445],"89":[0,0.7,0.2939,0,0.70961],"90":[0,0.7,0.24037,0,0.8212],"160":[0,0,0,0,0.25]},"Size1-Regular":{"32":[0,0,0,0,0.25],"40":[0.35001,0.85,0,0,0.45834],"41":[0.35001,0.85,0,0,0.45834],"47":[0.35001,0.85,0,0,0.57778],"91":[0.35001,0.85,0,0,0.41667],"92":[0.35001,0.85,0,0,0.57778],"93":[0.35001,0.85,0,0,0.41667],"123":[0.35001,0.85,0,0,0.58334],"125":[0.35001,0.85,0,0,0.58334],"160":[0,0,0,0,0.25],"710":[0,0.72222,0,0,0.55556],"732":[0,0.72222,0,0,0.55556],"770":[0,0.72222,0,0,0.55556],"771":[0,0.72222,0,0,0.55556],"8214":[-0.00099,0.601,0,0,0.77778],"8593":[0.00001,0.6,0,0,0.66667],"8595":[0.00001,0.6,0,0,0.66667],"8657":[0.00001,0.6,0,0,0.77778],"8659":[0.00001,0.6,0,0,0.77778],"8719":[0.25001,0.75,0,0,0.94445],"8720":[0.25001,0.75,0,0,0.94445],"8721":[0.25001,0.75,0,0,1.05556],"8730":[0.35001,0.85,0,0,1],"8739":[-0.00599,0.606,0,0,0.33333],"8741":[-0.00599,0.606,0,0,0.55556],"8747":[0.30612,0.805,0.19445,0,0.47222],"8748":[0.306,0.805,0.19445,0,0.47222],"8749":[0.306,0.805,0.19445,0,0.47222],"8750":[0.30612,0.805,0.19445,0,0.47222],"8896":[0.25001,0.75,0,0,0.83334],"8897":[0.25001,0.75,0,0,0.83334],"8898":[0.25001,0.75,0,0,0.83334],"8899":[0.25001,0.75,0,0,0.83334],"8968":[0.35001,0.85,0,0,0.47222],"8969":[0.35001,0.85,0,0,0.47222],"8970":[0.35001,0.85,0,0,0.47222],"8971":[0.35001,0.85,0,0,0.47222],"9168":[-0.00099,0.601,0,0,0.66667],"10216":[0.35001,0.85,0,0,0.47222],"10217":[0.35001,0.85,0,0,0.47222],"10752":[0.25001,0.75,0,0,1.11111],"10753":[0.25001,0.75,0,0,1.11111],"10754":[0.25001,0.75,0,0,1.11111],"10756":[0.25001,0.75,0,0,0.83334],"10758":[0.25001,0.75,0,0,0.83334]},"Size2-Regular":{"32":[0,0,0,0,0.25],"40":[0.65002,1.15,0,0,0.59722],"41":[0.65002,1.15,0,0,0.59722],"47":[0.65002,1.15,0,0,0.81111],"91":[0.65002,1.15,0,0,0.47222],"92":[0.65002,1.15,0,0,0.81111],"93":[0.65002,1.15,0,0,0.47222],"123":[0.65002,1.15,0,0,0.66667],"125":[0.65002,1.15,0,0,0.66667],"160":[0,0,0,0,0.25],"710":[0,0.75,0,0,1],"732":[0,0.75,0,0,1],"770":[0,0.75,0,0,1],"771":[0,0.75,0,0,1],"8719":[0.55001,1.05,0,0,1.27778],"8720":[0.55001,1.05,0,0,1.27778],"8721":[0.55001,1.05,0,0,1.44445],"8730":[0.65002,1.15,0,0,1],"8747":[0.86225,1.36,0.44445,0,0.55556],"8748":[0.862,1.36,0.44445,0,0.55556],"8749":[0.862,1.36,0.44445,0,0.55556],"8750":[0.86225,1.36,0.44445,0,0.55556],"8896":[0.55001,1.05,0,0,1.11111],"8897":[0.55001,1.05,0,0,1.11111],"8898":[0.55001,1.05,0,0,1.11111],"8899":[0.55001,1.05,0,0,1.11111],"8968":[0.65002,1.15,0,0,0.52778],"8969":[0.65002,1.15,0,0,0.52778],"8970":[0.65002,1.15,0,0,0.52778],"8971":[0.65002,1.15,0,0,0.52778],"10216":[0.65002,1.15,0,0,0.61111],"10217":[0.65002,1.15,0,0,0.61111],"10752":[0.55001,1.05,0,0,1.51112],"10753":[0.55001,1.05,0,0,1.51112],"10754":[0.55001,1.05,0,0,1.51112],"10756":[0.55001,1.05,0,0,1.11111],"10758":[0.55001,1.05,0,0,1.11111]},"Size3-Regular":{"32":[0,0,0,0,0.25],"40":[0.95003,1.45,0,0,0.73611],"41":[0.95003,1.45,0,0,0.73611],"47":[0.95003,1.45,0,0,1.04445],"91":[0.95003,1.45,0,0,0.52778],"92":[0.95003,1.45,0,0,1.04445],"93":[0.95003,1.45,0,0,0.52778],"123":[0.95003,1.45,0,0,0.75],"125":[0.95003,1.45,0,0,0.75],"160":[0,0,0,0,0.25],"710":[0,0.75,0,0,1.44445],"732":[0,0.75,0,0,1.44445],"770":[0,0.75,0,0,1.44445],"771":[0,0.75,0,0,1.44445],"8730":[0.95003,1.45,0,0,1],"8968":[0.95003,1.45,0,0,0.58334],"8969":[0.95003,1.45,0,0,0.58334],"8970":[0.95003,1.45,0,0,0.58334],"8971":[0.95003,1.45,0,0,0.58334],"10216":[0.95003,1.45,0,0,0.75],"10217":[0.95003,1.45,0,0,0.75]},"Size4-Regular":{"32":[0,0,0,0,0.25],"40":[1.25003,1.75,0,0,0.79167],"41":[1.25003,1.75,0,0,0.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,0.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,0.58334],"123":[1.25003,1.75,0,0,0.80556],"125":[1.25003,1.75,0,0,0.80556],"160":[0,0,0,0,0.25],"710":[0,0.825,0,0,1.8889],"732":[0,0.825,0,0,1.8889],"770":[0,0.825,0,0,1.8889],"771":[0,0.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,0.63889],"8969":[1.25003,1.75,0,0,0.63889],"8970":[1.25003,1.75,0,0,0.63889],"8971":[1.25003,1.75,0,0,0.63889],"9115":[0.64502,1.155,0,0,0.875],"9116":[0.00001,0.6,0,0,0.875],"9117":[0.64502,1.155,0,0,0.875],"9118":[0.64502,1.155,0,0,0.875],"9119":[0.00001,0.6,0,0,0.875],"9120":[0.64502,1.155,0,0,0.875],"9121":[0.64502,1.155,0,0,0.66667],"9122":[-0.00099,0.601,0,0,0.66667],"9123":[0.64502,1.155,0,0,0.66667],"9124":[0.64502,1.155,0,0,0.66667],"9125":[-0.00099,0.601,0,0,0.66667],"9126":[0.64502,1.155,0,0,0.66667],"9127":[0.00001,0.9,0,0,0.88889],"9128":[0.65002,1.15,0,0,0.88889],"9129":[0.90001,0,0,0,0.88889],"9130":[0,0.3,0,0,0.88889],"9131":[0.00001,0.9,0,0,0.88889],"9132":[0.65002,1.15,0,0,0.88889],"9133":[0.90001,0,0,0,0.88889],"9143":[0.88502,0.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,0.80556],"10217":[1.25003,1.75,0,0,0.80556],"57344":[-0.00499,0.605,0,0,1.05556],"57345":[-0.00499,0.605,0,0,1.05556],"57680":[0,0.12,0,0,0.45],"57681":[0,0.12,0,0,0.45],"57682":[0,0.12,0,0,0.45],"57683":[0,0.12,0,0,0.45]},"Typewriter-Regular":{"32":[0,0,0,0,0.525],"33":[0,0.61111,0,0,0.525],"34":[0,0.61111,0,0,0.525],"35":[0,0.61111,0,0,0.525],"36":[0.08333,0.69444,0,0,0.525],"37":[0.08333,0.69444,0,0,0.525],"38":[0,0.61111,0,0,0.525],"39":[0,0.61111,0,0,0.525],"40":[0.08333,0.69444,0,0,0.525],"41":[0.08333,0.69444,0,0,0.525],"42":[0,0.52083,0,0,0.525],"43":[-0.08056,0.53055,0,0,0.525],"44":[0.13889,0.125,0,0,0.525],"45":[-0.08056,0.53055,0,0,0.525],"46":[0,0.125,0,0,0.525],"47":[0.08333,0.69444,0,0,0.525],"48":[0,0.61111,0,0,0.525],"49":[0,0.61111,0,0,0.525],"50":[0,0.61111,0,0,0.525],"51":[0,0.61111,0,0,0.525],"52":[0,0.61111,0,0,0.525],"53":[0,0.61111,0,0,0.525],"54":[0,0.61111,0,0,0.525],"55":[0,0.61111,0,0,0.525],"56":[0,0.61111,0,0,0.525],"57":[0,0.61111,0,0,0.525],"58":[0,0.43056,0,0,0.525],"59":[0.13889,0.43056,0,0,0.525],"60":[-0.05556,0.55556,0,0,0.525],"61":[-0.19549,0.41562,0,0,0.525],"62":[-0.05556,0.55556,0,0,0.525],"63":[0,0.61111,0,0,0.525],"64":[0,0.61111,0,0,0.525],"65":[0,0.61111,0,0,0.525],"66":[0,0.61111,0,0,0.525],"67":[0,0.61111,0,0,0.525],"68":[0,0.61111,0,0,0.525],"69":[0,0.61111,0,0,0.525],"70":[0,0.61111,0,0,0.525],"71":[0,0.61111,0,0,0.525],"72":[0,0.61111,0,0,0.525],"73":[0,0.61111,0,0,0.525],"74":[0,0.61111,0,0,0.525],"75":[0,0.61111,0,0,0.525],"76":[0,0.61111,0,0,0.525],"77":[0,0.61111,0,0,0.525],"78":[0,0.61111,0,0,0.525],"79":[0,0.61111,0,0,0.525],"80":[0,0.61111,0,0,0.525],"81":[0.13889,0.61111,0,0,0.525],"82":[0,0.61111,0,0,0.525],"83":[0,0.61111,0,0,0.525],"84":[0,0.61111,0,0,0.525],"85":[0,0.61111,0,0,0.525],"86":[0,0.61111,0,0,0.525],"87":[0,0.61111,0,0,0.525],"88":[0,0.61111,0,0,0.525],"89":[0,0.61111,0,0,0.525],"90":[0,0.61111,0,0,0.525],"91":[0.08333,0.69444,0,0,0.525],"92":[0.08333,0.69444,0,0,0.525],"93":[0.08333,0.69444,0,0,0.525],"94":[0,0.61111,0,0,0.525],"95":[0.09514,0,0,0,0.525],"96":[0,0.61111,0,0,0.525],"97":[0,0.43056,0,0,0.525],"98":[0,0.61111,0,0,0.525],"99":[0,0.43056,0,0,0.525],"100":[0,0.61111,0,0,0.525],"101":[0,0.43056,0,0,0.525],"102":[0,0.61111,0,0,0.525],"103":[0.22222,0.43056,0,0,0.525],"104":[0,0.61111,0,0,0.525],"105":[0,0.61111,0,0,0.525],"106":[0.22222,0.61111,0,0,0.525],"107":[0,0.61111,0,0,0.525],"108":[0,0.61111,0,0,0.525],"109":[0,0.43056,0,0,0.525],"110":[0,0.43056,0,0,0.525],"111":[0,0.43056,0,0,0.525],"112":[0.22222,0.43056,0,0,0.525],"113":[0.22222,0.43056,0,0,0.525],"114":[0,0.43056,0,0,0.525],"115":[0,0.43056,0,0,0.525],"116":[0,0.55358,0,0,0.525],"117":[0,0.43056,0,0,0.525],"118":[0,0.43056,0,0,0.525],"119":[0,0.43056,0,0,0.525],"120":[0,0.43056,0,0,0.525],"121":[0.22222,0.43056,0,0,0.525],"122":[0,0.43056,0,0,0.525],"123":[0.08333,0.69444,0,0,0.525],"124":[0.08333,0.69444,0,0,0.525],"125":[0.08333,0.69444,0,0,0.525],"126":[0,0.61111,0,0,0.525],"127":[0,0.61111,0,0,0.525],"160":[0,0,0,0,0.525],"176":[0,0.61111,0,0,0.525],"184":[0.19445,0,0,0,0.525],"305":[0,0.43056,0,0,0.525],"567":[0.22222,0.43056,0,0,0.525],"711":[0,0.56597,0,0,0.525],"713":[0,0.56555,0,0,0.525],"714":[0,0.61111,0,0,0.525],"715":[0,0.61111,0,0,0.525],"728":[0,0.61111,0,0,0.525],"730":[0,0.61111,0,0,0.525],"770":[0,0.61111,0,0,0.525],"771":[0,0.61111,0,0,0.525],"776":[0,0.61111,0,0,0.525],"915":[0,0.61111,0,0,0.525],"916":[0,0.61111,0,0,0.525],"920":[0,0.61111,0,0,0.525],"923":[0,0.61111,0,0,0.525],"926":[0,0.61111,0,0,0.525],"928":[0,0.61111,0,0,0.525],"931":[0,0.61111,0,0,0.525],"933":[0,0.61111,0,0,0.525],"934":[0,0.61111,0,0,0.525],"936":[0,0.61111,0,0,0.525],"937":[0,0.61111,0,0,0.525],"8216":[0,0.61111,0,0,0.525],"8217":[0,0.61111,0,0,0.525],"8242":[0,0.61111,0,0,0.525],"9251":[0.11111,0.21944,0,0,0.525]}};var pje={slant:[0.25,0.25,0.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[0.431,0.431,0.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[0.677,0.732,0.925],num2:[0.394,0.384,0.387],num3:[0.444,0.471,0.504],denom1:[0.686,0.752,1.025],denom2:[0.345,0.344,0.532],sup1:[0.413,0.503,0.504],sup2:[0.363,0.431,0.404],sup3:[0.289,0.286,0.294],sub1:[0.15,0.143,0.2],sub2:[0.247,0.286,0.4],supDrop:[0.386,0.353,0.494],subDrop:[0.05,0.071,0.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[0.25,0.25,0.25],defaultRuleThickness:[0.04,0.049,0.049],bigOpSpacing1:[0.111,0.111,0.111],bigOpSpacing2:[0.166,0.166,0.166],bigOpSpacing3:[0.2,0.2,0.2],bigOpSpacing4:[0.6,0.611,0.611],bigOpSpacing5:[0.1,0.143,0.143],sqrtRuleThickness:[0.04,0.04,0.04],ptPerEm:[10,10,10],doubleRuleSep:[0.2,0.2,0.2],arrayRuleWidth:[0.04,0.04,0.04],fboxsep:[0.3,0.3,0.3],fboxrule:[0.04,0.04,0.04]},Mgr={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function S9n(e,r){Gk[e]=r}function Yje(e,r,i){if(!Gk[r])throw Error("Font metrics not found for font: "+r+".");var a=e.charCodeAt(0),o=Gk[r][a];if(!o&&e[0]in Mgr)a=Mgr[e[0]].charCodeAt(0),o=Gk[r][a];if(!o&&i==="text"){if(mmr(a))o=Gk[r][77]}if(o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var gje={};function T9n(e){var r;if(e>=5)r=0;else if(e>=3)r=1;else r=2;if(!gje[r]){var i=gje[r]={cssEmPerMu:pje.quad[r]/18};for(var a of Object.keys(pje))i[a]=pje[a][r]}return gje[r]}var hf={math:{},text:{}};function Oe(e,r,i,a,o,l){if(hf[e][o]={font:r,group:i,replace:a},l&&a)hf[e][a]=hf[e][o]}var Fe="math",xi="text",ot="main",ar="ams",df="accent-token",Ka="bin",cv="close",NV="inner",yo="mathord",sg="op-token",PE="open",lre="punct",ur="rel",fR="spacing",Lr="textord";Oe(Fe,ot,ur,"≡","\\equiv",!0);Oe(Fe,ot,ur,"≺","\\prec",!0);Oe(Fe,ot,ur,"≻","\\succ",!0);Oe(Fe,ot,ur,"∼","\\sim",!0);Oe(Fe,ot,ur,"⊥","\\perp");Oe(Fe,ot,ur,"⪯","\\preceq",!0);Oe(Fe,ot,ur,"⪰","\\succeq",!0);Oe(Fe,ot,ur,"≃","\\simeq",!0);Oe(Fe,ot,ur,"∣","\\mid",!0);Oe(Fe,ot,ur,"≪","\\ll",!0);Oe(Fe,ot,ur,"≫","\\gg",!0);Oe(Fe,ot,ur,"≍","\\asymp",!0);Oe(Fe,ot,ur,"∥","\\parallel");Oe(Fe,ot,ur,"⋈","\\bowtie",!0);Oe(Fe,ot,ur,"⌣","\\smile",!0);Oe(Fe,ot,ur,"⊑","\\sqsubseteq",!0);Oe(Fe,ot,ur,"⊒","\\sqsupseteq",!0);Oe(Fe,ot,ur,"≐","\\doteq",!0);Oe(Fe,ot,ur,"⌢","\\frown",!0);Oe(Fe,ot,ur,"∋","\\ni",!0);Oe(Fe,ot,ur,"∝","\\propto",!0);Oe(Fe,ot,ur,"⊢","\\vdash",!0);Oe(Fe,ot,ur,"⊣","\\dashv",!0);Oe(Fe,ot,ur,"∋","\\owns");Oe(Fe,ot,lre,".","\\ldotp");Oe(Fe,ot,lre,"⋅","\\cdotp");Oe(Fe,ot,lre,"⋅","·");Oe(xi,ot,Lr,"⋅","·");Oe(Fe,ot,Lr,"#","\\#");Oe(xi,ot,Lr,"#","\\#");Oe(Fe,ot,Lr,"&","\\&");Oe(xi,ot,Lr,"&","\\&");Oe(Fe,ot,Lr,"ℵ","\\aleph",!0);Oe(Fe,ot,Lr,"∀","\\forall",!0);Oe(Fe,ot,Lr,"ℏ","\\hbar",!0);Oe(Fe,ot,Lr,"∃","\\exists",!0);Oe(Fe,ot,Lr,"∇","\\nabla",!0);Oe(Fe,ot,Lr,"♭","\\flat",!0);Oe(Fe,ot,Lr,"ℓ","\\ell",!0);Oe(Fe,ot,Lr,"♮","\\natural",!0);Oe(Fe,ot,Lr,"♣","\\clubsuit",!0);Oe(Fe,ot,Lr,"℘","\\wp",!0);Oe(Fe,ot,Lr,"♯","\\sharp",!0);Oe(Fe,ot,Lr,"♢","\\diamondsuit",!0);Oe(Fe,ot,Lr,"ℜ","\\Re",!0);Oe(Fe,ot,Lr,"♡","\\heartsuit",!0);Oe(Fe,ot,Lr,"ℑ","\\Im",!0);Oe(Fe,ot,Lr,"♠","\\spadesuit",!0);Oe(Fe,ot,Lr,"§","\\S",!0);Oe(xi,ot,Lr,"§","\\S");Oe(Fe,ot,Lr,"¶","\\P",!0);Oe(xi,ot,Lr,"¶","\\P");Oe(Fe,ot,Lr,"†","\\dag");Oe(xi,ot,Lr,"†","\\dag");Oe(xi,ot,Lr,"†","\\textdagger");Oe(Fe,ot,Lr,"‡","\\ddag");Oe(xi,ot,Lr,"‡","\\ddag");Oe(xi,ot,Lr,"‡","\\textdaggerdbl");Oe(Fe,ot,cv,"⎱","\\rmoustache",!0);Oe(Fe,ot,PE,"⎰","\\lmoustache",!0);Oe(Fe,ot,cv,"⟯","\\rgroup",!0);Oe(Fe,ot,PE,"⟮","\\lgroup",!0);Oe(Fe,ot,Ka,"∓","\\mp",!0);Oe(Fe,ot,Ka,"⊖","\\ominus",!0);Oe(Fe,ot,Ka,"⊎","\\uplus",!0);Oe(Fe,ot,Ka,"⊓","\\sqcap",!0);Oe(Fe,ot,Ka,"∗","\\ast");Oe(Fe,ot,Ka,"⊔","\\sqcup",!0);Oe(Fe,ot,Ka,"◯","\\bigcirc",!0);Oe(Fe,ot,Ka,"∙","\\bullet",!0);Oe(Fe,ot,Ka,"‡","\\ddagger");Oe(Fe,ot,Ka,"≀","\\wr",!0);Oe(Fe,ot,Ka,"⨿","\\amalg");Oe(Fe,ot,Ka,"&","\\And");Oe(Fe,ot,ur,"⟵","\\longleftarrow",!0);Oe(Fe,ot,ur,"⇐","\\Leftarrow",!0);Oe(Fe,ot,ur,"⟸","\\Longleftarrow",!0);Oe(Fe,ot,ur,"⟶","\\longrightarrow",!0);Oe(Fe,ot,ur,"⇒","\\Rightarrow",!0);Oe(Fe,ot,ur,"⟹","\\Longrightarrow",!0);Oe(Fe,ot,ur,"↔","\\leftrightarrow",!0);Oe(Fe,ot,ur,"⟷","\\longleftrightarrow",!0);Oe(Fe,ot,ur,"⇔","\\Leftrightarrow",!0);Oe(Fe,ot,ur,"⟺","\\Longleftrightarrow",!0);Oe(Fe,ot,ur,"↦","\\mapsto",!0);Oe(Fe,ot,ur,"⟼","\\longmapsto",!0);Oe(Fe,ot,ur,"↗","\\nearrow",!0);Oe(Fe,ot,ur,"↩","\\hookleftarrow",!0);Oe(Fe,ot,ur,"↪","\\hookrightarrow",!0);Oe(Fe,ot,ur,"↘","\\searrow",!0);Oe(Fe,ot,ur,"↼","\\leftharpoonup",!0);Oe(Fe,ot,ur,"⇀","\\rightharpoonup",!0);Oe(Fe,ot,ur,"↙","\\swarrow",!0);Oe(Fe,ot,ur,"↽","\\leftharpoondown",!0);Oe(Fe,ot,ur,"⇁","\\rightharpoondown",!0);Oe(Fe,ot,ur,"↖","\\nwarrow",!0);Oe(Fe,ot,ur,"⇌","\\rightleftharpoons",!0);Oe(Fe,ar,ur,"≮","\\nless",!0);Oe(Fe,ar,ur,"","\\@nleqslant");Oe(Fe,ar,ur,"","\\@nleqq");Oe(Fe,ar,ur,"⪇","\\lneq",!0);Oe(Fe,ar,ur,"≨","\\lneqq",!0);Oe(Fe,ar,ur,"","\\@lvertneqq");Oe(Fe,ar,ur,"⋦","\\lnsim",!0);Oe(Fe,ar,ur,"⪉","\\lnapprox",!0);Oe(Fe,ar,ur,"⊀","\\nprec",!0);Oe(Fe,ar,ur,"⋠","\\npreceq",!0);Oe(Fe,ar,ur,"⋨","\\precnsim",!0);Oe(Fe,ar,ur,"⪹","\\precnapprox",!0);Oe(Fe,ar,ur,"≁","\\nsim",!0);Oe(Fe,ar,ur,"","\\@nshortmid");Oe(Fe,ar,ur,"∤","\\nmid",!0);Oe(Fe,ar,ur,"⊬","\\nvdash",!0);Oe(Fe,ar,ur,"⊭","\\nvDash",!0);Oe(Fe,ar,ur,"⋪","\\ntriangleleft");Oe(Fe,ar,ur,"⋬","\\ntrianglelefteq",!0);Oe(Fe,ar,ur,"⊊","\\subsetneq",!0);Oe(Fe,ar,ur,"","\\@varsubsetneq");Oe(Fe,ar,ur,"⫋","\\subsetneqq",!0);Oe(Fe,ar,ur,"","\\@varsubsetneqq");Oe(Fe,ar,ur,"≯","\\ngtr",!0);Oe(Fe,ar,ur,"","\\@ngeqslant");Oe(Fe,ar,ur,"","\\@ngeqq");Oe(Fe,ar,ur,"⪈","\\gneq",!0);Oe(Fe,ar,ur,"≩","\\gneqq",!0);Oe(Fe,ar,ur,"","\\@gvertneqq");Oe(Fe,ar,ur,"⋧","\\gnsim",!0);Oe(Fe,ar,ur,"⪊","\\gnapprox",!0);Oe(Fe,ar,ur,"⊁","\\nsucc",!0);Oe(Fe,ar,ur,"⋡","\\nsucceq",!0);Oe(Fe,ar,ur,"⋩","\\succnsim",!0);Oe(Fe,ar,ur,"⪺","\\succnapprox",!0);Oe(Fe,ar,ur,"≆","\\ncong",!0);Oe(Fe,ar,ur,"","\\@nshortparallel");Oe(Fe,ar,ur,"∦","\\nparallel",!0);Oe(Fe,ar,ur,"⊯","\\nVDash",!0);Oe(Fe,ar,ur,"⋫","\\ntriangleright");Oe(Fe,ar,ur,"⋭","\\ntrianglerighteq",!0);Oe(Fe,ar,ur,"","\\@nsupseteqq");Oe(Fe,ar,ur,"⊋","\\supsetneq",!0);Oe(Fe,ar,ur,"","\\@varsupsetneq");Oe(Fe,ar,ur,"⫌","\\supsetneqq",!0);Oe(Fe,ar,ur,"","\\@varsupsetneqq");Oe(Fe,ar,ur,"⊮","\\nVdash",!0);Oe(Fe,ar,ur,"⪵","\\precneqq",!0);Oe(Fe,ar,ur,"⪶","\\succneqq",!0);Oe(Fe,ar,ur,"","\\@nsubseteqq");Oe(Fe,ar,Ka,"⊴","\\unlhd");Oe(Fe,ar,Ka,"⊵","\\unrhd");Oe(Fe,ar,ur,"↚","\\nleftarrow",!0);Oe(Fe,ar,ur,"↛","\\nrightarrow",!0);Oe(Fe,ar,ur,"⇍","\\nLeftarrow",!0);Oe(Fe,ar,ur,"⇏","\\nRightarrow",!0);Oe(Fe,ar,ur,"↮","\\nleftrightarrow",!0);Oe(Fe,ar,ur,"⇎","\\nLeftrightarrow",!0);Oe(Fe,ar,ur,"△","\\vartriangle");Oe(Fe,ar,Lr,"ℏ","\\hslash");Oe(Fe,ar,Lr,"▽","\\triangledown");Oe(Fe,ar,Lr,"◊","\\lozenge");Oe(Fe,ar,Lr,"Ⓢ","\\circledS");Oe(Fe,ar,Lr,"®","\\circledR");Oe(xi,ar,Lr,"®","\\circledR");Oe(Fe,ar,Lr,"∡","\\measuredangle",!0);Oe(Fe,ar,Lr,"∄","\\nexists");Oe(Fe,ar,Lr,"℧","\\mho");Oe(Fe,ar,Lr,"Ⅎ","\\Finv",!0);Oe(Fe,ar,Lr,"⅁","\\Game",!0);Oe(Fe,ar,Lr,"‵","\\backprime");Oe(Fe,ar,Lr,"▲","\\blacktriangle");Oe(Fe,ar,Lr,"▼","\\blacktriangledown");Oe(Fe,ar,Lr,"■","\\blacksquare");Oe(Fe,ar,Lr,"⧫","\\blacklozenge");Oe(Fe,ar,Lr,"★","\\bigstar");Oe(Fe,ar,Lr,"∢","\\sphericalangle",!0);Oe(Fe,ar,Lr,"∁","\\complement",!0);Oe(Fe,ar,Lr,"ð","\\eth",!0);Oe(xi,ot,Lr,"ð","ð");Oe(Fe,ar,Lr,"╱","\\diagup");Oe(Fe,ar,Lr,"╲","\\diagdown");Oe(Fe,ar,Lr,"□","\\square");Oe(Fe,ar,Lr,"□","\\Box");Oe(Fe,ar,Lr,"◊","\\Diamond");Oe(Fe,ar,Lr,"¥","\\yen",!0);Oe(xi,ar,Lr,"¥","\\yen",!0);Oe(Fe,ar,Lr,"✓","\\checkmark",!0);Oe(xi,ar,Lr,"✓","\\checkmark");Oe(Fe,ar,Lr,"ℶ","\\beth",!0);Oe(Fe,ar,Lr,"ℸ","\\daleth",!0);Oe(Fe,ar,Lr,"ℷ","\\gimel",!0);Oe(Fe,ar,Lr,"ϝ","\\digamma",!0);Oe(Fe,ar,Lr,"ϰ","\\varkappa");Oe(Fe,ar,PE,"┌","\\@ulcorner",!0);Oe(Fe,ar,cv,"┐","\\@urcorner",!0);Oe(Fe,ar,PE,"└","\\@llcorner",!0);Oe(Fe,ar,cv,"┘","\\@lrcorner",!0);Oe(Fe,ar,ur,"≦","\\leqq",!0);Oe(Fe,ar,ur,"⩽","\\leqslant",!0);Oe(Fe,ar,ur,"⪕","\\eqslantless",!0);Oe(Fe,ar,ur,"≲","\\lesssim",!0);Oe(Fe,ar,ur,"⪅","\\lessapprox",!0);Oe(Fe,ar,ur,"≊","\\approxeq",!0);Oe(Fe,ar,Ka,"⋖","\\lessdot");Oe(Fe,ar,ur,"⋘","\\lll",!0);Oe(Fe,ar,ur,"≶","\\lessgtr",!0);Oe(Fe,ar,ur,"⋚","\\lesseqgtr",!0);Oe(Fe,ar,ur,"⪋","\\lesseqqgtr",!0);Oe(Fe,ar,ur,"≑","\\doteqdot");Oe(Fe,ar,ur,"≓","\\risingdotseq",!0);Oe(Fe,ar,ur,"≒","\\fallingdotseq",!0);Oe(Fe,ar,ur,"∽","\\backsim",!0);Oe(Fe,ar,ur,"⋍","\\backsimeq",!0);Oe(Fe,ar,ur,"⫅","\\subseteqq",!0);Oe(Fe,ar,ur,"⋐","\\Subset",!0);Oe(Fe,ar,ur,"⊏","\\sqsubset",!0);Oe(Fe,ar,ur,"≼","\\preccurlyeq",!0);Oe(Fe,ar,ur,"⋞","\\curlyeqprec",!0);Oe(Fe,ar,ur,"≾","\\precsim",!0);Oe(Fe,ar,ur,"⪷","\\precapprox",!0);Oe(Fe,ar,ur,"⊲","\\vartriangleleft");Oe(Fe,ar,ur,"⊴","\\trianglelefteq");Oe(Fe,ar,ur,"⊨","\\vDash",!0);Oe(Fe,ar,ur,"⊪","\\Vvdash",!0);Oe(Fe,ar,ur,"⌣","\\smallsmile");Oe(Fe,ar,ur,"⌢","\\smallfrown");Oe(Fe,ar,ur,"≏","\\bumpeq",!0);Oe(Fe,ar,ur,"≎","\\Bumpeq",!0);Oe(Fe,ar,ur,"≧","\\geqq",!0);Oe(Fe,ar,ur,"⩾","\\geqslant",!0);Oe(Fe,ar,ur,"⪖","\\eqslantgtr",!0);Oe(Fe,ar,ur,"≳","\\gtrsim",!0);Oe(Fe,ar,ur,"⪆","\\gtrapprox",!0);Oe(Fe,ar,Ka,"⋗","\\gtrdot");Oe(Fe,ar,ur,"⋙","\\ggg",!0);Oe(Fe,ar,ur,"≷","\\gtrless",!0);Oe(Fe,ar,ur,"⋛","\\gtreqless",!0);Oe(Fe,ar,ur,"⪌","\\gtreqqless",!0);Oe(Fe,ar,ur,"≖","\\eqcirc",!0);Oe(Fe,ar,ur,"≗","\\circeq",!0);Oe(Fe,ar,ur,"≜","\\triangleq",!0);Oe(Fe,ar,ur,"∼","\\thicksim");Oe(Fe,ar,ur,"≈","\\thickapprox");Oe(Fe,ar,ur,"⫆","\\supseteqq",!0);Oe(Fe,ar,ur,"⋑","\\Supset",!0);Oe(Fe,ar,ur,"⊐","\\sqsupset",!0);Oe(Fe,ar,ur,"≽","\\succcurlyeq",!0);Oe(Fe,ar,ur,"⋟","\\curlyeqsucc",!0);Oe(Fe,ar,ur,"≿","\\succsim",!0);Oe(Fe,ar,ur,"⪸","\\succapprox",!0);Oe(Fe,ar,ur,"⊳","\\vartriangleright");Oe(Fe,ar,ur,"⊵","\\trianglerighteq");Oe(Fe,ar,ur,"⊩","\\Vdash",!0);Oe(Fe,ar,ur,"∣","\\shortmid");Oe(Fe,ar,ur,"∥","\\shortparallel");Oe(Fe,ar,ur,"≬","\\between",!0);Oe(Fe,ar,ur,"⋔","\\pitchfork",!0);Oe(Fe,ar,ur,"∝","\\varpropto");Oe(Fe,ar,ur,"◀","\\blacktriangleleft");Oe(Fe,ar,ur,"∴","\\therefore",!0);Oe(Fe,ar,ur,"∍","\\backepsilon");Oe(Fe,ar,ur,"▶","\\blacktriangleright");Oe(Fe,ar,ur,"∵","\\because",!0);Oe(Fe,ar,ur,"⋘","\\llless");Oe(Fe,ar,ur,"⋙","\\gggtr");Oe(Fe,ar,Ka,"⊲","\\lhd");Oe(Fe,ar,Ka,"⊳","\\rhd");Oe(Fe,ar,ur,"≂","\\eqsim",!0);Oe(Fe,ot,ur,"⋈","\\Join");Oe(Fe,ar,ur,"≑","\\Doteq",!0);Oe(Fe,ar,Ka,"∔","\\dotplus",!0);Oe(Fe,ar,Ka,"∖","\\smallsetminus");Oe(Fe,ar,Ka,"⋒","\\Cap",!0);Oe(Fe,ar,Ka,"⋓","\\Cup",!0);Oe(Fe,ar,Ka,"⩞","\\doublebarwedge",!0);Oe(Fe,ar,Ka,"⊟","\\boxminus",!0);Oe(Fe,ar,Ka,"⊞","\\boxplus",!0);Oe(Fe,ar,Ka,"⋇","\\divideontimes",!0);Oe(Fe,ar,Ka,"⋉","\\ltimes",!0);Oe(Fe,ar,Ka,"⋊","\\rtimes",!0);Oe(Fe,ar,Ka,"⋋","\\leftthreetimes",!0);Oe(Fe,ar,Ka,"⋌","\\rightthreetimes",!0);Oe(Fe,ar,Ka,"⋏","\\curlywedge",!0);Oe(Fe,ar,Ka,"⋎","\\curlyvee",!0);Oe(Fe,ar,Ka,"⊝","\\circleddash",!0);Oe(Fe,ar,Ka,"⊛","\\circledast",!0);Oe(Fe,ar,Ka,"⋅","\\centerdot");Oe(Fe,ar,Ka,"⊺","\\intercal",!0);Oe(Fe,ar,Ka,"⋒","\\doublecap");Oe(Fe,ar,Ka,"⋓","\\doublecup");Oe(Fe,ar,Ka,"⊠","\\boxtimes",!0);Oe(Fe,ar,ur,"⇢","\\dashrightarrow",!0);Oe(Fe,ar,ur,"⇠","\\dashleftarrow",!0);Oe(Fe,ar,ur,"⇇","\\leftleftarrows",!0);Oe(Fe,ar,ur,"⇆","\\leftrightarrows",!0);Oe(Fe,ar,ur,"⇚","\\Lleftarrow",!0);Oe(Fe,ar,ur,"↞","\\twoheadleftarrow",!0);Oe(Fe,ar,ur,"↢","\\leftarrowtail",!0);Oe(Fe,ar,ur,"↫","\\looparrowleft",!0);Oe(Fe,ar,ur,"⇋","\\leftrightharpoons",!0);Oe(Fe,ar,ur,"↶","\\curvearrowleft",!0);Oe(Fe,ar,ur,"↺","\\circlearrowleft",!0);Oe(Fe,ar,ur,"↰","\\Lsh",!0);Oe(Fe,ar,ur,"⇈","\\upuparrows",!0);Oe(Fe,ar,ur,"↿","\\upharpoonleft",!0);Oe(Fe,ar,ur,"⇃","\\downharpoonleft",!0);Oe(Fe,ot,ur,"⊶","\\origof",!0);Oe(Fe,ot,ur,"⊷","\\imageof",!0);Oe(Fe,ar,ur,"⊸","\\multimap",!0);Oe(Fe,ar,ur,"↭","\\leftrightsquigarrow",!0);Oe(Fe,ar,ur,"⇉","\\rightrightarrows",!0);Oe(Fe,ar,ur,"⇄","\\rightleftarrows",!0);Oe(Fe,ar,ur,"↠","\\twoheadrightarrow",!0);Oe(Fe,ar,ur,"↣","\\rightarrowtail",!0);Oe(Fe,ar,ur,"↬","\\looparrowright",!0);Oe(Fe,ar,ur,"↷","\\curvearrowright",!0);Oe(Fe,ar,ur,"↻","\\circlearrowright",!0);Oe(Fe,ar,ur,"↱","\\Rsh",!0);Oe(Fe,ar,ur,"⇊","\\downdownarrows",!0);Oe(Fe,ar,ur,"↾","\\upharpoonright",!0);Oe(Fe,ar,ur,"⇂","\\downharpoonright",!0);Oe(Fe,ar,ur,"⇝","\\rightsquigarrow",!0);Oe(Fe,ar,ur,"⇝","\\leadsto");Oe(Fe,ar,ur,"⇛","\\Rrightarrow",!0);Oe(Fe,ar,ur,"↾","\\restriction");Oe(Fe,ot,Lr,"‘","`");Oe(Fe,ot,Lr,"$","\\$");Oe(xi,ot,Lr,"$","\\$");Oe(xi,ot,Lr,"$","\\textdollar");Oe(Fe,ot,Lr,"%","\\%");Oe(xi,ot,Lr,"%","\\%");Oe(Fe,ot,Lr,"_","\\_");Oe(xi,ot,Lr,"_","\\_");Oe(xi,ot,Lr,"_","\\textunderscore");Oe(Fe,ot,Lr,"∠","\\angle",!0);Oe(Fe,ot,Lr,"∞","\\infty",!0);Oe(Fe,ot,Lr,"′","\\prime");Oe(Fe,ot,Lr,"△","\\triangle");Oe(Fe,ot,Lr,"Γ","\\Gamma",!0);Oe(Fe,ot,Lr,"Δ","\\Delta",!0);Oe(Fe,ot,Lr,"Θ","\\Theta",!0);Oe(Fe,ot,Lr,"Λ","\\Lambda",!0);Oe(Fe,ot,Lr,"Ξ","\\Xi",!0);Oe(Fe,ot,Lr,"Π","\\Pi",!0);Oe(Fe,ot,Lr,"Σ","\\Sigma",!0);Oe(Fe,ot,Lr,"Υ","\\Upsilon",!0);Oe(Fe,ot,Lr,"Φ","\\Phi",!0);Oe(Fe,ot,Lr,"Ψ","\\Psi",!0);Oe(Fe,ot,Lr,"Ω","\\Omega",!0);Oe(Fe,ot,Lr,"A","Α");Oe(Fe,ot,Lr,"B","Β");Oe(Fe,ot,Lr,"E","Ε");Oe(Fe,ot,Lr,"Z","Ζ");Oe(Fe,ot,Lr,"H","Η");Oe(Fe,ot,Lr,"I","Ι");Oe(Fe,ot,Lr,"K","Κ");Oe(Fe,ot,Lr,"M","Μ");Oe(Fe,ot,Lr,"N","Ν");Oe(Fe,ot,Lr,"O","Ο");Oe(Fe,ot,Lr,"P","Ρ");Oe(Fe,ot,Lr,"T","Τ");Oe(Fe,ot,Lr,"X","Χ");Oe(Fe,ot,Lr,"¬","\\neg",!0);Oe(Fe,ot,Lr,"¬","\\lnot");Oe(Fe,ot,Lr,"⊤","\\top");Oe(Fe,ot,Lr,"⊥","\\bot");Oe(Fe,ot,Lr,"∅","\\emptyset");Oe(Fe,ar,Lr,"∅","\\varnothing");Oe(Fe,ot,yo,"α","\\alpha",!0);Oe(Fe,ot,yo,"β","\\beta",!0);Oe(Fe,ot,yo,"γ","\\gamma",!0);Oe(Fe,ot,yo,"δ","\\delta",!0);Oe(Fe,ot,yo,"ϵ","\\epsilon",!0);Oe(Fe,ot,yo,"ζ","\\zeta",!0);Oe(Fe,ot,yo,"η","\\eta",!0);Oe(Fe,ot,yo,"θ","\\theta",!0);Oe(Fe,ot,yo,"ι","\\iota",!0);Oe(Fe,ot,yo,"κ","\\kappa",!0);Oe(Fe,ot,yo,"λ","\\lambda",!0);Oe(Fe,ot,yo,"μ","\\mu",!0);Oe(Fe,ot,yo,"ν","\\nu",!0);Oe(Fe,ot,yo,"ξ","\\xi",!0);Oe(Fe,ot,yo,"ο","\\omicron",!0);Oe(Fe,ot,yo,"π","\\pi",!0);Oe(Fe,ot,yo,"ρ","\\rho",!0);Oe(Fe,ot,yo,"σ","\\sigma",!0);Oe(Fe,ot,yo,"τ","\\tau",!0);Oe(Fe,ot,yo,"υ","\\upsilon",!0);Oe(Fe,ot,yo,"ϕ","\\phi",!0);Oe(Fe,ot,yo,"χ","\\chi",!0);Oe(Fe,ot,yo,"ψ","\\psi",!0);Oe(Fe,ot,yo,"ω","\\omega",!0);Oe(Fe,ot,yo,"ε","\\varepsilon",!0);Oe(Fe,ot,yo,"ϑ","\\vartheta",!0);Oe(Fe,ot,yo,"ϖ","\\varpi",!0);Oe(Fe,ot,yo,"ϱ","\\varrho",!0);Oe(Fe,ot,yo,"ς","\\varsigma",!0);Oe(Fe,ot,yo,"φ","\\varphi",!0);Oe(Fe,ot,Ka,"∗","*",!0);Oe(Fe,ot,Ka,"+","+");Oe(Fe,ot,Ka,"−","-",!0);Oe(Fe,ot,Ka,"⋅","\\cdot",!0);Oe(Fe,ot,Ka,"∘","\\circ",!0);Oe(Fe,ot,Ka,"÷","\\div",!0);Oe(Fe,ot,Ka,"±","\\pm",!0);Oe(Fe,ot,Ka,"×","\\times",!0);Oe(Fe,ot,Ka,"∩","\\cap",!0);Oe(Fe,ot,Ka,"∪","\\cup",!0);Oe(Fe,ot,Ka,"∖","\\setminus",!0);Oe(Fe,ot,Ka,"∧","\\land");Oe(Fe,ot,Ka,"∨","\\lor");Oe(Fe,ot,Ka,"∧","\\wedge",!0);Oe(Fe,ot,Ka,"∨","\\vee",!0);Oe(Fe,ot,Lr,"√","\\surd");Oe(Fe,ot,PE,"⟨","\\langle",!0);Oe(Fe,ot,PE,"∣","\\lvert");Oe(Fe,ot,PE,"∥","\\lVert");Oe(Fe,ot,cv,"?","?");Oe(Fe,ot,cv,"!","!");Oe(Fe,ot,cv,"⟩","\\rangle",!0);Oe(Fe,ot,cv,"∣","\\rvert");Oe(Fe,ot,cv,"∥","\\rVert");Oe(Fe,ot,ur,"=","=");Oe(Fe,ot,ur,":",":");Oe(Fe,ot,ur,"≈","\\approx",!0);Oe(Fe,ot,ur,"≅","\\cong",!0);Oe(Fe,ot,ur,"≥","\\ge");Oe(Fe,ot,ur,"≥","\\geq",!0);Oe(Fe,ot,ur,"←","\\gets");Oe(Fe,ot,ur,">","\\gt",!0);Oe(Fe,ot,ur,"∈","\\in",!0);Oe(Fe,ot,ur,"","\\@not");Oe(Fe,ot,ur,"⊂","\\subset",!0);Oe(Fe,ot,ur,"⊃","\\supset",!0);Oe(Fe,ot,ur,"⊆","\\subseteq",!0);Oe(Fe,ot,ur,"⊇","\\supseteq",!0);Oe(Fe,ar,ur,"⊈","\\nsubseteq",!0);Oe(Fe,ar,ur,"⊉","\\nsupseteq",!0);Oe(Fe,ot,ur,"⊨","\\models");Oe(Fe,ot,ur,"←","\\leftarrow",!0);Oe(Fe,ot,ur,"≤","\\le");Oe(Fe,ot,ur,"≤","\\leq",!0);Oe(Fe,ot,ur,"<","\\lt",!0);Oe(Fe,ot,ur,"→","\\rightarrow",!0);Oe(Fe,ot,ur,"→","\\to");Oe(Fe,ar,ur,"≱","\\ngeq",!0);Oe(Fe,ar,ur,"≰","\\nleq",!0);Oe(Fe,ot,fR," ","\\ ");Oe(Fe,ot,fR," ","\\space");Oe(Fe,ot,fR," ","\\nobreakspace");Oe(xi,ot,fR," ","\\ ");Oe(xi,ot,fR," "," ");Oe(xi,ot,fR," ","\\space");Oe(xi,ot,fR," ","\\nobreakspace");Oe(Fe,ot,fR,"","\\nobreak");Oe(Fe,ot,fR,"","\\allowbreak");Oe(Fe,ot,lre,",",",");Oe(Fe,ot,lre,";",";");Oe(Fe,ar,Ka,"⊼","\\barwedge",!0);Oe(Fe,ar,Ka,"⊻","\\veebar",!0);Oe(Fe,ot,Ka,"⊙","\\odot",!0);Oe(Fe,ot,Ka,"⊕","\\oplus",!0);Oe(Fe,ot,Ka,"⊗","\\otimes",!0);Oe(Fe,ot,Lr,"∂","\\partial",!0);Oe(Fe,ot,Ka,"⊘","\\oslash",!0);Oe(Fe,ar,Ka,"⊚","\\circledcirc",!0);Oe(Fe,ar,Ka,"⊡","\\boxdot",!0);Oe(Fe,ot,Ka,"△","\\bigtriangleup");Oe(Fe,ot,Ka,"▽","\\bigtriangledown");Oe(Fe,ot,Ka,"†","\\dagger");Oe(Fe,ot,Ka,"⋄","\\diamond");Oe(Fe,ot,Ka,"⋆","\\star");Oe(Fe,ot,Ka,"◃","\\triangleleft");Oe(Fe,ot,Ka,"▹","\\triangleright");Oe(Fe,ot,PE,"{","\\{");Oe(xi,ot,Lr,"{","\\{");Oe(xi,ot,Lr,"{","\\textbraceleft");Oe(Fe,ot,cv,"}","\\}");Oe(xi,ot,Lr,"}","\\}");Oe(xi,ot,Lr,"}","\\textbraceright");Oe(Fe,ot,PE,"{","\\lbrace");Oe(Fe,ot,cv,"}","\\rbrace");Oe(Fe,ot,PE,"[","\\lbrack",!0);Oe(xi,ot,Lr,"[","\\lbrack",!0);Oe(Fe,ot,cv,"]","\\rbrack",!0);Oe(xi,ot,Lr,"]","\\rbrack",!0);Oe(Fe,ot,PE,"(","\\lparen",!0);Oe(Fe,ot,cv,")","\\rparen",!0);Oe(xi,ot,Lr,"<","\\textless",!0);Oe(xi,ot,Lr,">","\\textgreater",!0);Oe(Fe,ot,PE,"⌊","\\lfloor",!0);Oe(Fe,ot,cv,"⌋","\\rfloor",!0);Oe(Fe,ot,PE,"⌈","\\lceil",!0);Oe(Fe,ot,cv,"⌉","\\rceil",!0);Oe(Fe,ot,Lr,"\\","\\backslash");Oe(Fe,ot,Lr,"∣","|");Oe(Fe,ot,Lr,"∣","\\vert");Oe(xi,ot,Lr,"|","\\textbar",!0);Oe(Fe,ot,Lr,"∥","\\|");Oe(Fe,ot,Lr,"∥","\\Vert");Oe(xi,ot,Lr,"∥","\\textbardbl");Oe(xi,ot,Lr,"~","\\textasciitilde");Oe(xi,ot,Lr,"\\","\\textbackslash");Oe(xi,ot,Lr,"^","\\textasciicircum");Oe(Fe,ot,ur,"↑","\\uparrow",!0);Oe(Fe,ot,ur,"⇑","\\Uparrow",!0);Oe(Fe,ot,ur,"↓","\\downarrow",!0);Oe(Fe,ot,ur,"⇓","\\Downarrow",!0);Oe(Fe,ot,ur,"↕","\\updownarrow",!0);Oe(Fe,ot,ur,"⇕","\\Updownarrow",!0);Oe(Fe,ot,sg,"∐","\\coprod");Oe(Fe,ot,sg,"⋁","\\bigvee");Oe(Fe,ot,sg,"⋀","\\bigwedge");Oe(Fe,ot,sg,"⨄","\\biguplus");Oe(Fe,ot,sg,"⋂","\\bigcap");Oe(Fe,ot,sg,"⋃","\\bigcup");Oe(Fe,ot,sg,"∫","\\int");Oe(Fe,ot,sg,"∫","\\intop");Oe(Fe,ot,sg,"∬","\\iint");Oe(Fe,ot,sg,"∭","\\iiint");Oe(Fe,ot,sg,"∏","\\prod");Oe(Fe,ot,sg,"∑","\\sum");Oe(Fe,ot,sg,"⨂","\\bigotimes");Oe(Fe,ot,sg,"⨁","\\bigoplus");Oe(Fe,ot,sg,"⨀","\\bigodot");Oe(Fe,ot,sg,"∮","\\oint");Oe(Fe,ot,sg,"∯","\\oiint");Oe(Fe,ot,sg,"∰","\\oiiint");Oe(Fe,ot,sg,"⨆","\\bigsqcup");Oe(Fe,ot,sg,"∫","\\smallint");Oe(xi,ot,NV,"…","\\textellipsis");Oe(Fe,ot,NV,"…","\\mathellipsis");Oe(xi,ot,NV,"…","\\ldots",!0);Oe(Fe,ot,NV,"…","\\ldots",!0);Oe(Fe,ot,NV,"⋯","\\@cdots",!0);Oe(Fe,ot,NV,"⋱","\\ddots",!0);Oe(Fe,ot,Lr,"⋮","\\varvdots");Oe(xi,ot,Lr,"⋮","\\varvdots");Oe(Fe,ot,df,"ˊ","\\acute");Oe(Fe,ot,df,"ˋ","\\grave");Oe(Fe,ot,df,"¨","\\ddot");Oe(Fe,ot,df,"~","\\tilde");Oe(Fe,ot,df,"ˉ","\\bar");Oe(Fe,ot,df,"˘","\\breve");Oe(Fe,ot,df,"ˇ","\\check");Oe(Fe,ot,df,"^","\\hat");Oe(Fe,ot,df,"⃗","\\vec");Oe(Fe,ot,df,"˙","\\dot");Oe(Fe,ot,df,"˚","\\mathring");Oe(Fe,ot,yo,"","\\@imath");Oe(Fe,ot,yo,"","\\@jmath");Oe(Fe,ot,Lr,"ı","ı");Oe(Fe,ot,Lr,"ȷ","ȷ");Oe(xi,ot,Lr,"ı","\\i",!0);Oe(xi,ot,Lr,"ȷ","\\j",!0);Oe(xi,ot,Lr,"ß","\\ss",!0);Oe(xi,ot,Lr,"æ","\\ae",!0);Oe(xi,ot,Lr,"œ","\\oe",!0);Oe(xi,ot,Lr,"ø","\\o",!0);Oe(xi,ot,Lr,"Æ","\\AE",!0);Oe(xi,ot,Lr,"Œ","\\OE",!0);Oe(xi,ot,Lr,"Ø","\\O",!0);Oe(xi,ot,df,"ˊ","\\'");Oe(xi,ot,df,"ˋ","\\`");Oe(xi,ot,df,"ˆ","\\^");Oe(xi,ot,df,"˜","\\~");Oe(xi,ot,df,"ˉ","\\=");Oe(xi,ot,df,"˘","\\u");Oe(xi,ot,df,"˙","\\.");Oe(xi,ot,df,"¸","\\c");Oe(xi,ot,df,"˚","\\r");Oe(xi,ot,df,"ˇ","\\v");Oe(xi,ot,df,"¨","\\\"");Oe(xi,ot,df,"˝","\\H");Oe(xi,ot,df,"◯","\\textcircled");var wmr={"--":!0,"---":!0,"``":!0,"''":!0};Oe(xi,ot,Lr,"–","--",!0);Oe(xi,ot,Lr,"–","\\textendash");Oe(xi,ot,Lr,"—","---",!0);Oe(xi,ot,Lr,"—","\\textemdash");Oe(xi,ot,Lr,"‘","`",!0);Oe(xi,ot,Lr,"‘","\\textquoteleft");Oe(xi,ot,Lr,"’","'",!0);Oe(xi,ot,Lr,"’","\\textquoteright");Oe(xi,ot,Lr,"“","``",!0);Oe(xi,ot,Lr,"“","\\textquotedblleft");Oe(xi,ot,Lr,"”","''",!0);Oe(xi,ot,Lr,"”","\\textquotedblright");Oe(Fe,ot,Lr,"°","\\degree",!0);Oe(xi,ot,Lr,"°","\\degree");Oe(xi,ot,Lr,"°","\\textdegree",!0);Oe(Fe,ot,Lr,"£","\\pounds");Oe(Fe,ot,Lr,"£","\\mathsterling",!0);Oe(xi,ot,Lr,"£","\\pounds");Oe(xi,ot,Lr,"£","\\textsterling",!0);Oe(Fe,ar,Lr,"✠","\\maltese");Oe(xi,ar,Lr,"✠","\\maltese");var Dgr='0123456789/@."';for(Xte=0;Xte{var r=e.charCodeAt(0),i=e.charCodeAt(1),a=(r-55296)*1024+(i-56320)+65536;if(119808<=a&&a<120484){var o=Math.floor((a-119808)/26);return Vgr[o]}else if(120782<=a&&a<=120831){var l=Math.floor((a-120782)/10);return C9n[l]}else if(a===120485||a===120486)return Vgr[0];else if(120486{if(jN(e.classes)!==jN(r.classes)||e.skew!==r.skew||e.maxFontSize!==r.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var i=e.classes[0];if(i==="mbin"||i==="mord")return!1}for(var a of Object.keys(e.style))if(e.style[a]!==r.style[a])return!1;for(var o of Object.keys(r.style))if(e.style[o]!==r.style[o])return!1;return!0},Smr=(e)=>{for(var r=0;ri)i=h.height;if(h.depth>a)a=h.depth;if(h.maxFontSize>o)o=h.maxFontSize}r.height=i,r.depth=a,r.maxFontSize=o},Ui=function(r,i,a,o){var l=new vP(r,i,a,o);return jje(l),l},KN=(e,r,i,a)=>new vP(e,r,i,a),IV=function(r,i,a){var o=Ui([r],[],i);return o.height=Math.max(a||i.fontMetrics().defaultRuleThickness,i.minRuleThickness),o.style.borderBottomWidth=oa(o.height),o.maxFontSize=1,o},I9n=function(r,i,a,o){var l=new ore(r,i,a,o);return jje(l),l},pR=function(r){var i=new yP(r);return jje(i),i},OV=function(r,i){if(r instanceof yP)return Ui([],[r],i);return r},O9n=function(r){if(r.positionType==="individualShift"){var i=r.children,a=[i[0]],o=-i[0].shift-i[0].elem.depth,l=o;for(var h=1;h{var i=Ui(["mspace"],[],r),a=Jf(e,r);return i.style.marginRight=oa(a),i},Mve=(e,r,i)=>{var a,o;switch(e){case"amsrm":a="AMS";break;case"textrm":a="Main";break;case"textsf":a="SansSerif";break;case"texttt":a="Typewriter";break;default:a=e}if(r==="textbf"&&i==="textit")o="BoldItalic";else if(r==="textbf")o="Bold";else if(i==="textit")o="Italic";else o="Regular";return a+"-"+o},Lje={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},xmr={vec:["vec",0.471,0.714],oiintSize1:["oiintSize1",0.957,0.499],oiintSize2:["oiintSize2",1.472,0.659],oiiintSize1:["oiiintSize1",1.304,0.499],oiiintSize2:["oiiintSize2",1.98,0.659]},Cmr=function(r,i){var a=xmr[r],o=a[0],l=a[1],h=a[2],d=new hR(o),p=new zk([d],{width:oa(l),height:oa(h),style:"width:"+oa(l),viewBox:"0 0 "+1000*l+" "+1000*h,preserveAspectRatio:"xMinYMin"}),m=KN(["katex-overlay"],[p],i);return m.height=h,m.style.height=oa(h),m.style.width=oa(l),m},Zf={number:3,unit:"mu"},mP={number:4,unit:"mu"},sR={number:5,unit:"mu"},N9n={mord:{mop:Zf,mbin:mP,mrel:sR,minner:Zf},mop:{mord:Zf,mop:Zf,mrel:sR,minner:Zf},mbin:{mord:mP,mop:mP,mopen:mP,minner:mP},mrel:{mord:sR,mop:sR,mopen:sR,minner:sR},mopen:{},mclose:{mop:Zf,mbin:mP,mrel:sR,minner:Zf},mpunct:{mord:Zf,mop:Zf,mrel:sR,mopen:Zf,mclose:Zf,mpunct:Zf,minner:Zf},minner:{mord:Zf,mop:Zf,mbin:mP,mrel:sR,mopen:Zf,mpunct:Zf,minner:Zf}},L9n={mord:{mop:Zf},mop:{mord:Zf,mop:Zf},mbin:{},mrel:{},mopen:{},mclose:{mop:Zf},mpunct:{},minner:{mop:Zf}},kmr={},nre={},ire={};function Ba(e){var{type:r,names:i,htmlBuilder:a,mathmlBuilder:o}=e;for(var l=0;l{var A=k.classes[0],R=x.classes[0];if(A==="mbin"&&D9n.has(R))k.classes[0]="mord";else if(R==="mbin"&&M9n.has(A))x.classes[0]="mord"},{node:v},w,T),Mje(l,(x,k)=>{var A,R,N=Pje(k),L=Pje(x),B=N&&L?x.hasClass("mtight")?(A=L9n[N])==null?void 0:A[L]:(R=N9n[N])==null?void 0:R[L]:null;if(B)return Tmr(B,m)},{node:v},w,T),l},Mje=function(r,i,a,o,l){if(o)r.push(o);var h=0;for(;h(w)=>{r.splice(v+1,0,w),h++})(h)}if(o)r.pop()},Amr=function(r){if(r instanceof yP||r instanceof ore||r instanceof vP&&r.hasClass("enclosing"))return r;return null},Dje=function(r,i){var a=Amr(r);if(a){var o=a.children;if(o.length){if(i==="right")return Dje(o[o.length-1],"right");else if(i==="left")return Dje(o[0],"left")}}return r},Pje=function(r,i){if(!r)return null;if(i)r=Dje(r,i);var a=r.classes[0];return B9n[a]||null},sre=function(r,i){var a=["nulldelimiter"].concat(r.baseSizingClasses());return Ui(i.concat(a))},Au=function(r,i,a){if(!r)return Ui();if(nre[r.type]){var o=nre[r.type](r,i);if(a&&i.size!==a.size){o=Ui(i.sizingClasses(a),[o],i);var l=i.sizeMultiplier/a.sizeMultiplier;o.height*=l,o.depth*=l}return o}else throw new Wi("Got group of unknown type: '"+r.type+"'")};function Dve(e,r){var i=Ui(["katex-base"],e,r),a=Ui(["katex-strut"]);if(a.style.height=oa(i.height+i.depth),i.depth)a.style.verticalAlign=oa(-i.depth);return i.children.unshift(a),i}function Bje(e,r){var i=null;if(e.length===1&&e[0].type==="tag")i=e[0].tag,e=e[0].body;var a=Xg(e,r,"root"),o;if(a.length===2&&a[1].hasClass("katex-tag"))o=a.pop();var l=[],h=[];for(var d=0;d0)l.push(Dve(h,r)),h=[];l.push(a[d])}if(h.length>0)l.push(Dve(h,r));var m;if(i)m=Dve(Xg(i,r,!0),r),m.classes=["katex-tag"],l.push(m);else if(o)l.push(o);var y=Ui(["katex-html"],l);if(y.setAttribute("aria-hidden","true"),m){var v=m.children[0];if(v.style.height=oa(y.height+y.depth),y.depth)v.style.verticalAlign=oa(-y.depth)}return y}function Rmr(e){return new yP(e)}class Zi{constructor(e,r,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=r||[],this.classes=i||[]}setAttribute(e,r){this.attributes[e]=r}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r of Object.entries(this.attributes)){var i=r[0],a=r[1];e.setAttribute(i,a)}if(this.classes.length>0)e.className=jN(this.classes);for(var o=0;o0)e+=' class ="'+Yb(jN(this.classes))+'"';e+=">";for(var o=0;o",e}toText(){return this.children.map((e)=>e.toText()).join("")}}class T0{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Yb(this.toText())}toText(){return this.text}}class Kje{constructor(e){if(this.width=void 0,this.character=void 0,this.width=e,e>=0.05555&&e<=0.05556)this.character=" ";else if(e>=0.1666&&e<=0.1667)this.character=" ";else if(e>=0.2222&&e<=0.2223)this.character=" ";else if(e>=0.2777&&e<=0.2778)this.character="  ";else if(e>=-0.05556&&e<=-0.05555)this.character=" ⁣";else if(e>=-0.1667&&e<=-0.1666)this.character=" ⁣";else if(e>=-0.2223&&e<=-0.2222)this.character=" ⁣";else if(e>=-0.2778&&e<=-0.2777)this.character=" ⁣";else this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);else{var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",oa(this.width)),e}}toMarkup(){if(this.character)return""+this.character+"";else return''}toText(){if(this.character)return this.character;else return" "}}var F9n=new Set(["\\imath","\\jmath"]),$9n=new Set(["mrow","mtable"]),US=function(r,i,a){var o,l;if(hf[i][r]&&hf[i][r].replace&&r.charCodeAt(0)!==55349&&!(Object.prototype.hasOwnProperty.call(wmr,r)&&((a==null||(o=a.fontFamily)==null?void 0:o.slice(4,6))==="tt"||(a==null||(l=a.font)==null?void 0:l.slice(4,6))==="tt")))r=hf[i][r].replace;return new T0(r)},Xje=function(r){if(r.length===1)return r[0];else return new Zi("mrow",r)},U9n={mathit:"italic",boldsymbol:(e)=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},Qje=(e,r)=>{if(e.mode==="text"){if(r.fontFamily==="texttt")return"monospace";else if(r.fontFamily==="textsf")if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"sans-serif-bold-italic";else if(r.fontShape==="textit")return"sans-serif-italic";else if(r.fontWeight==="textbf")return"bold-sans-serif";else return"sans-serif";else if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";else if(r.fontShape==="textit")return"italic";else if(r.fontWeight==="textbf")return"bold"}var i=r.font;if(!i||i==="mathnormal")return null;var a=e.mode,o=U9n[i];if(o)return typeof o==="function"?o(e):o;var l=e.text;if(F9n.has(l))return null;if(hf[a][l]){var h=hf[a][l].replace;if(h)l=h}var d=Lje[i].fontName;if(Yje(l,d,a))return Lje[i].variant;return null};function mje(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var r=e.children[0];return r instanceof T0&&r.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var i=e.children[0];return i instanceof T0&&i.text===","}else return!1}var BE=function(r,i,a){if(r.length===1){var o=Vh(r[0],i);if(a&&o instanceof Zi&&o.type==="mo")o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em");return[o]}var l=[],h;for(var d=0;d=1&&(h.type==="mn"||mje(h))){var m=p.children[0];if(m instanceof Zi&&m.type==="mn")m.children=[...h.children,...m.children],l.pop()}else if(h.type==="mi"&&h.children.length===1){var y=h.children[0];if(y instanceof T0&&y.text==="̸"&&(p.type==="mo"||p.type==="mi"||p.type==="mn")){var v=p.children[0];if(v instanceof T0&&v.text.length>0)v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),l.pop()}}}l.push(p),h=p}return l},XN=function(r,i,a){return Xje(BE(r,i,a))},Vh=function(r,i){if(!r)return new Zi("mrow");if(ire[r.type])return ire[r.type](r,i);else throw new Wi("Got group of unknown type: '"+r.type+"'")};function Hgr(e,r,i,a,o){var l=BE(e,i),h;if(l.length===1&&l[0]instanceof Zi&&$9n.has(l[0].type))h=l[0];else h=new Zi("mrow",l);var d=new Zi("annotation",[new T0(r)]);d.setAttribute("encoding","application/x-tex");var p=new Zi("semantics",[h,d]),m=new Zi("math",[p]);if(m.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a)m.setAttribute("display","block");var y=o?"katex":"katex-mathml";return Ui([y],[m])}var G9n=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],qgr=[0.5,0.6,0.7,0.8,0.9,1,1.2,1.44,1.728,2.074,2.488],Ygr=function(r,i){return i.size<2?r:G9n[r-1][i.size-1]};class cR{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.strict=void 0,this.style=e.style,this.color=e.color,this.size=e.size||cR.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=qgr[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this.strict=e.strict,this._fontMetrics=void 0}extend(e){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness,strict:this.strict};return Object.assign(r,e),new cR(r)}havingStyle(e){if(this.style===e)return this;else return this.extend({style:e,size:Ygr(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){if(this.size===e&&this.textSize===e)return this;else return this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:qgr[e-1]})}havingBaseStyle(e){e=e||this.style.text();var r=Ygr(cR.BASESIZE,e);if(this.size===r&&this.textSize===cR.BASESIZE&&this.style===e)return this;else return this.extend({style:e,size:r})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){if(e.size!==this.size)return["katex-sizing","reset-size"+e.size,"size"+this.size];else return[]}baseSizingClasses(){if(this.size!==cR.BASESIZE)return["katex-sizing","reset-size"+this.size,"size"+cR.BASESIZE];else return[]}fontMetrics(){if(!this._fontMetrics)this._fontMetrics=T9n(this.size);return this._fontMetrics}getColor(){if(this.phantom)return"transparent";else return this.color}}cR.BASESIZE=6;var Imr=(e)=>new cR({style:e.displayMode?ul.DISPLAY:ul.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness,strict:e.strict}),Omr=function(r,i){if(i.displayMode){var a=["katex-display"];if(i.leqno)a.push("leqno");if(i.fleqn)a.push("fleqn");r=Ui(a,[r])}return r},z9n=function(r,i,a){var o=Imr(a),l;if(a.output==="mathml")return Hgr(r,i,o,a.displayMode,!0);else if(a.output==="html"){var h=Bje(r,o);l=Ui(["katex"],[h])}else{var d=Hgr(r,i,o,a.displayMode,!1),p=Bje(r,o);l=Ui(["katex"],[d,p])}return Omr(l,a)},V9n=function(r,i){var a=Imr(i),o=Bje(r,a),l=Ui(["katex"],[o]);return Omr(l,i)},H9n={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Kve=function(r){var i=new Zi("mo",[new T0(H9n[r.replace(/^\\/,"")])]);return i.setAttribute("stretchy","true"),i},q9n={overrightarrow:[["rightarrow"],0.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],0.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],0.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],0.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],0.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],0.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],0.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],0.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],0.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],0.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],0.888,522,"xMaxYMin"],xlongequal:[["longequal"],0.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],0.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],0.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],0.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],0.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],0.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],0.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],0.888,342],undergroup:[["leftgroupunder","rightgroupunder"],0.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Y9n=new Set(["widehat","widecheck","widetilde","utilde"]),Xve=function(r,i){function a(){var p=400000,m=r.label.slice(1);if(Y9n.has(m)&&"base"in r){var y=r.base.type==="ordgroup"?r.base.body.length:1,v,w,T;if(y>5)if(m==="widehat"||m==="widecheck")v=420,p=2364,T=0.42,w=m+"4";else v=312,p=2340,T=0.34,w="tilde4";else{var x=[1,1,2,2,3,3][y];if(m==="widehat"||m==="widecheck")p=[0,1062,2364,2364,2364][x],v=[0,239,300,360,420][x],T=[0,0.24,0.3,0.3,0.36,0.42][x],w=m+x;else p=[0,600,1033,2339,2340][x],v=[0,260,286,306,312][x],T=[0,0.26,0.286,0.3,0.306,0.34][x],w="tilde"+x}var k=new hR(w),A=new zk([k],{width:"100%",height:oa(T),viewBox:"0 0 "+p+" "+v,preserveAspectRatio:"none"});return{span:KN([],[A],i),minWidth:0,height:T}}else{var R=[],N=q9n[m];if(!N)throw Error('No SVG data for "'+m+'".');var L=N[0],B=N[1],D=N[2],P=D/1000,F=L.length,H,W;if(F===1){if(N.length!==4)throw Error('Expected 4-tuple for single-path SVG data "'+m+'".');H=["hide-tail"],W=[N[3]]}else if(F===2)H=["halfarrow-left","halfarrow-right"],W=["xMinYMin","xMaxYMin"];else if(F===3)H=["brace-left","brace-center","brace-right"],W=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error(`Correct katexImagesData or update code here to support + `+F+" children.");for(var X=0;X0)l.style.minWidth=oa(h);return l},W9n=function(r,i,a,o,l){var h,d=r.height+r.depth+a+o;if(/fbox|color|angl/.test(i)){if(h=Ui(["katex-stretchy",i],[],l),i==="fbox"){var p=l.color&&l.getColor();if(p)h.style.borderColor=p}}else{var m=[];if(/^[bx]cancel$/.test(i))m.push(new Hve({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"}));if(/^x?cancel$/.test(i))m.push(new Hve({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var y=new zk(m,{width:"100%",height:oa(d)});h=KN([],[y],l)}return h.height=d,h.style.height=oa(d),h},j9n=["bin","close","inner","open","punct","rel"],K9n=["accent-token","mathord","op-token","spacing","textord"],X9n=new Set(j9n),Q9n=new Set(K9n);function Z9n(e){return X9n.has(e)}function gc(e,r){if(!e||e.type!==r)throw Error("Expected node of type "+r+", but got "+(e?"node of type "+e.type:String(e)));return e}function Qve(e){var r=Zve(e);if(!r)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return r}function Zve(e){if(e.type==="atom"||Q9n.has(e.type))return e;return null}function Zje(e,r,i){var a="";for(var o of e.body)if(o.type==="textord")a+=o.text;else if(i&&o.type==="spacing"&&o.text===" ")a+=" ";else throw new Wi(r,e);return a}var Nmr=(e)=>{if(e instanceof U_)return e;if(w9n(e)&&e.children.length===1)return Nmr(e.children[0])},Lmr=(e,r)=>{var i,a,o;if(e&&e.type==="supsub")a=gc(e.base,"accent"),i=a.base,e.base=i,o=E9n(Au(e,r)),e.base=a;else a=gc(e,"accent"),i=a.base;var l=Au(i,r.havingCrampedStyle()),h=a.isShifty&&dR(i),d=0;if(h){var p,m;d=(p=(m=Nmr(l))==null?void 0:m.skew)!=null?p:0}var y=a.label==="\\c",v=y?l.height+l.depth:Math.min(l.height,r.fontMetrics().xHeight),w;if(!a.isStretchy){var T,x;if(a.label==="\\vec")T=Cmr("vec",r),x=xmr.vec[1];else if(T=jve({type:"textord",mode:a.mode,text:a.label},r),T=_9n(T),T.italic=0,x=T.width,y)v+=T.depth;w=Ui(["accent-body"],[T]);var k=a.label==="\\textcircled";if(k)w.classes.push("accent-full"),v=l.height;var A=d;if(!k)A-=x/2;if(w.style.left=oa(A),a.label==="\\textcircled")w.style.top=".2em";w=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:-v},{type:"elem",elem:w}]})}else w=Xve(a,r),w=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"elem",elem:w,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+oa(2*d)+")",marginLeft:oa(2*d)}:void 0}]});var R=Ui(["mord","katex-accent"],[w],r);if(o)return o.children[0]=R,o.height=Math.max(R.height,o.height),o.classes[0]="mord",o;else return R};var J9n=(e,r)=>{var i=e.isStretchy?Kve(e.label):new Zi("mo",[US(e.label,e.mode)]),a=new Zi("mover",[Vh(e.base,r),i]);return a.setAttribute("accent","true"),a},ePn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((e)=>"\\"+e).join("|"));Ba({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],numArgs:1,handler:(e,r)=>{var i=are(r[0]),a=!ePn.test(e.funcName),o=!a||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:a,isShifty:o,base:i}},htmlBuilder:Lmr,mathmlBuilder:J9n});Ba({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.","\\\"","\\c","\\r","\\H","\\v","\\textcircled"],numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"],handler:(e,r)=>{var i=r[0],a=e.parser.mode;if(a==="math")$_({strict:e.parser.settings.strict,errorCode:"mathVsTextAccents",errorMsg:"LaTeX's accent "+e.funcName+" works only in text mode",report:!0}),a="text";return{type:"accent",mode:a,label:e.funcName,isStretchy:!1,isShifty:!0,base:i}}});Ba({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],numArgs:1,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"accentUnder",mode:i.mode,label:a,base:o}},htmlBuilder:(e,r)=>{var i=Au(e.base,r),a=Xve(e,r),o=e.label==="\\utilde"?0.12:0,l=Wu({positionType:"top",positionData:i.height,children:[{type:"elem",elem:a,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:i}]});return Ui(["mord","accentunder"],[l],r)},mathmlBuilder:(e,r)=>{var i=Kve(e.label),a=new Zi("munder",[Vh(e.base,r),i]);return a.setAttribute("accentunder","true"),a}});var Pve=(e)=>{var r=new Zi("mpadded",e?[e]:[]);return r.setAttribute("width","+0.6em"),r.setAttribute("lspace","0.3em"),r};Ba({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],numArgs:1,numOptionalArgs:1,handler(e,r,i){var{parser:a,funcName:o}=e;return{type:"xArrow",mode:a.mode,label:o,body:r[0],below:i[0]}},htmlBuilder(e,r){var i=r.style,a=r.havingStyle(i.sup()),o=OV(Au(e.body,a,r),r),l=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(l+"-arrow-pad");var h;if(e.below)a=r.havingStyle(i.sub()),h=OV(Au(e.below,a,r),r),h.classes.push(l+"-arrow-pad");var d=Xve(e,r),p=-r.fontMetrics().axisHeight+0.5*d.height,m=-r.fontMetrics().axisHeight-0.5*d.height-0.111;if(o.depth>0.25||e.label==="\\xleftequilibrium")m-=o.depth;var y;if(h){var v=-r.fontMetrics().axisHeight+h.height+0.5*d.height+0.111;y=Wu({positionType:"individualShift",children:[{type:"elem",elem:o,shift:m},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]},{type:"elem",elem:h,shift:v}]})}else y=Wu({positionType:"individualShift",children:[{type:"elem",elem:o,shift:m},{type:"elem",elem:d,shift:p,wrapperClasses:["svg-align"]}]});return Ui(["mrel","x-arrow"],[y],r)},mathmlBuilder(e,r){var i=Kve(e.label);i.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var a;if(e.body){var o=Pve(Vh(e.body,r));if(e.below){var l=Pve(Vh(e.below,r));a=new Zi("munderover",[i,l,o])}else a=new Zi("mover",[i,o])}else if(e.below){var h=Pve(Vh(e.below,r));a=new Zi("munder",[i,h])}else a=Pve(),a=new Zi("mover",[i,a]);return a}});function tPn(e,r){var i=Xg(e.body,r,!0);return Ui([e.mclass],i,r)}function rPn(e,r){var i,a=BE(e.body,r);if(e.mclass==="minner")i=new Zi("mpadded",a);else if(e.mclass==="mord")if(e.isCharacterBox)i=a[0],i.type="mi";else i=new Zi("mi",a);else{if(e.isCharacterBox)i=a[0],i.type="mo";else i=new Zi("mo",a);if(e.mclass==="mbin")i.attributes.lspace="0.22em",i.attributes.rspace="0.22em";else if(e.mclass==="mpunct")i.attributes.lspace="0em",i.attributes.rspace="0.17em";else if(e.mclass==="mopen"||e.mclass==="mclose")i.attributes.lspace="0em",i.attributes.rspace="0em"}return i}Ba({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],numArgs:1,primitive:!0,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"mclass",mode:i.mode,mclass:"m"+a.slice(5),body:ag(o),isCharacterBox:dR(o)}},htmlBuilder:tPn,mathmlBuilder:rPn});var Jve=(e)=>{var r=e.type==="ordgroup"&&e.body.length?e.body[0]:e;if(r.type==="atom"&&(r.family==="bin"||r.family==="rel"))return"m"+r.family;else return"mord"};Ba({type:"mclass",names:["\\@binrel"],numArgs:2,handler(e,r){var i=e.parser;return{type:"mclass",mode:i.mode,mclass:Jve(r[0]),body:ag(r[1]),isCharacterBox:dR(r[1])}}});Ba({type:"mclass",names:["\\stackrel","\\overset","\\underset"],numArgs:2,handler(e,r){var{parser:i,funcName:a}=e,o=r[1],l=r[0],h;if(a!=="\\stackrel")h=Jve(o);else h="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:a!=="\\stackrel",body:ag(o)},p=a==="\\underset"?{type:"supsub",mode:l.mode,base:d,sub:l}:{type:"supsub",mode:l.mode,base:d,sup:l};return{type:"mclass",mode:i.mode,mclass:h,body:[p],isCharacterBox:dR(p)}}});Ba({type:"pmb",names:["\\pmb"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser;return{type:"pmb",mode:i.mode,mclass:Jve(r[0]),body:ag(r[0])}},htmlBuilder(e,r){var i=Xg(e.body,r,!0),a=Ui([e.mclass],i,r);return a.style.textShadow="0.02em 0.01em 0.04px",a},mathmlBuilder(e,r){var i=BE(e.body,r),a=new Zi("mstyle",i);return a.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),a}});var nPn={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wgr=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),jgr=(e)=>e.type==="textord"&&e.text==="@",iPn=(e,r)=>(e.type==="mathord"||e.type==="atom")&&e.text===r;function aPn(e,r,i){var a=nPn[e];switch(a){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return i.callFunction(a,[r[0]],[r[1]]);case"\\uparrow":case"\\downarrow":{var o=i.callFunction("\\\\cdleft",[r[0]],[]),l={type:"atom",text:a,mode:"math",family:"rel"},h=i.callFunction("\\Big",[l],[]),d=i.callFunction("\\\\cdright",[r[1]],[]),p={type:"ordgroup",mode:"math",body:[o,h,d]};return i.callFunction("\\\\cdparent",[p],[])}case"\\\\cdlongequal":return i.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var m={type:"textord",text:"\\Vert",mode:"math"};return i.callFunction("\\Big",[m],[])}default:return{type:"textord",text:" ",mode:"math"}}}function sPn(e){var r=[];e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();while(!0){r.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var i=e.fetch().text;if(i==="&"||i==="\\\\")e.consume();else if(i==="\\end"){if(r[r.length-1].length===0)r.pop();break}else throw new Wi("Expected \\\\ or \\cr or \\end",e.nextToken)}var a=[],o=[a];for(var l=0;lAV".includes(m))for(var v=0;v<2;v++){var w=!0;for(var T=p+1;TAV=|." after @',h[p]);var x=aPn(m,y,e),k={type:"styling",body:[x],mode:"math",style:"display",resetFont:!0};a.push(k),d=Wgr()}if(l%2===0)a.push(d);else a.shift();a=[],o.push(a)}e.gullet.endGroup(),e.gullet.endGroup();var A=Array(o[0].length).fill({type:"align",align:"c",pregap:0.25,postgap:0.25});return{type:"array",mode:"math",body:o,arraystretch:1,addJot:!0,rowGaps:[null],cols:A,colSeparationType:"CD",hLinesBeforeRow:Array(o.length+1).fill([])}}Ba({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e;return{type:"cdlabel",mode:i.mode,side:a.slice(4),label:r[0]}},htmlBuilder(e,r){var i=r.havingStyle(r.style.sup()),a=OV(Au(e.label,i,r),r);return a.classes.push("cd-label-"+e.side),a.style.bottom=oa(0.8-a.depth),a.height=0,a.depth=0,a},mathmlBuilder(e,r){var i=new Zi("mrow",[Vh(e.label,r)]);if(i=new Zi("mpadded",[i]),i.setAttribute("width","0"),e.side==="left")i.setAttribute("lspace","-1width");return i.setAttribute("voffset","0.7em"),i=new Zi("mstyle",[i]),i.setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}});Ba({type:"cdlabelparent",names:["\\\\cdparent"],numArgs:1,handler(e,r){var i=e.parser;return{type:"cdlabelparent",mode:i.mode,fragment:r[0]}},htmlBuilder(e,r){var i=OV(Au(e.fragment,r),r);return i.classes.push("cd-vert-arrow"),i},mathmlBuilder(e,r){return new Zi("mrow",[Vh(e.fragment,r)])}});Ba({type:"textord",names:["\\@char"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser,a=gc(r[0],"ordgroup"),o=Zje(a,"\\@char has non-numeric argument"),l=parseInt(o),h;if(isNaN(l))throw new Wi("\\@char has non-numeric argument "+o);else if(l<0||l>1114111)throw new Wi("\\@char with invalid code point "+o);else if(l<=65535)h=String.fromCharCode(l);else l-=65536,h=String.fromCharCode((l>>10)+55296,(l&1023)+56320);return{type:"textord",mode:i.mode,text:h}}});var oPn=(e,r)=>{var i=Xg(e.body,r.withColor(e.color),!1);return pR(i)},lPn=(e,r)=>{var i=BE(e.body,r.withColor(e.color)),a=new Zi("mstyle",i);return a.setAttribute("mathcolor",e.color),a};Ba({type:"color",names:["\\textcolor"],numArgs:2,allowedInText:!0,argTypes:["color","original"],handler(e,r){var i=e.parser,a=gc(r[0],"color-token").color,o=r[1];return{type:"color",mode:i.mode,color:a,body:ag(o)}},htmlBuilder:oPn,mathmlBuilder:lPn});Ba({type:"color",names:["\\color"],numArgs:1,allowedInText:!0,argTypes:["color"],handler(e,r){var{parser:i,breakOnTokenText:a}=e,o=gc(r[0],"color-token").color;i.gullet.macros.set("\\current@color",o);var l=i.parseExpression(!0,a);return{type:"color",mode:i.mode,color:o,body:l}}});Ba({type:"cr",names:["\\\\"],numArgs:0,numOptionalArgs:0,allowedInText:!0,handler(e){var r=e.parser,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!$_({strict:r.settings.strict,errorCode:"newLineInDisplayMode",errorMsg:"In LaTeX, \\\\ or \\newline does nothing in display mode",report:!1});return{type:"cr",mode:r.mode,newLine:a,size:i&&gc(i,"size").value}},htmlBuilder(e,r){var i=Ui(["mspace"],[],r);if(e.newLine){if(i.classes.push("katex-newline"),e.size)i.style.marginTop=oa(Jf(e.size,r))}return i},mathmlBuilder(e,r){var i=new Zi("mspace");if(e.newLine){if(i.setAttribute("linebreak","newline"),e.size)i.setAttribute("height",oa(Jf(e.size,r)))}return i}});var Fje={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Mmr=(e)=>{var r=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new Wi("Expected a control sequence",e);return r},cPn=(e)=>{var r=e.gullet.popToken();if(r.text==="="){if(r=e.gullet.popToken(),r.text===" ")r=e.gullet.popToken()}return r},Dmr=(e,r,i,a)=>{var o=e.gullet.macros.get(i.text);if(o==null)i.noexpand=!0,o={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)};e.gullet.macros.set(r,o,a)};Ba({type:"internal",names:["\\global","\\long","\\\\globallong"],numArgs:0,allowedInText:!0,handler(e){var{parser:r,funcName:i}=e;r.consumeSpaces();var a=r.fetch();if(Fje[a.text]){if(i==="\\global"||i==="\\\\globallong")a.text=Fje[a.text];return gc(r.parseFunction(),"internal")}throw new Wi("Invalid token after macro prefix",a)}});Ba({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=r.gullet.popToken(),o=a.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o))throw new Wi("Expected a control sequence",a);var l=0,h,d=[[]];while(r.gullet.future().text!=="{")if(a=r.gullet.popToken(),a.text==="#"){if(r.gullet.future().text==="{"){h=r.gullet.future(),d[l].push("{");break}if(a=r.gullet.popToken(),!/^[1-9]$/.test(a.text))throw new Wi('Invalid argument number "'+a.text+'"');if(parseInt(a.text)!==l+1)throw new Wi('Argument number "'+a.text+'" out of order');l++,d.push([])}else if(a.text==="EOF")throw new Wi("Expected a macro definition");else d[l].push(a.text);var p=r.gullet.consumeArg(),m=p.tokens;if(h)m.unshift(h);if(i==="\\edef"||i==="\\xdef")m=r.gullet.expandTokens(m),m.reverse();return r.gullet.macros.set(o,{tokens:m,numArgs:l,delimiters:d},i===Fje[i]),{type:"internal",mode:r.mode}}});Ba({type:"internal",names:["\\let","\\\\globallet"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=Mmr(r.gullet.popToken());r.gullet.consumeSpaces();var o=cPn(r);return Dmr(r,a,o,i==="\\\\globallet"),{type:"internal",mode:r.mode}}});Ba({type:"internal",names:["\\futurelet","\\\\globalfuture"],numArgs:0,allowedInText:!0,primitive:!0,handler(e){var{parser:r,funcName:i}=e,a=Mmr(r.gullet.popToken()),o=r.gullet.popToken(),l=r.gullet.popToken();return Dmr(r,a,l,i==="\\\\globalfuture"),r.gullet.pushToken(l),r.gullet.pushToken(o),{type:"internal",mode:r.mode}}});var ere=function(r,i,a){var o=hf.math[r]&&hf.math[r].replace,l=Yje(o||r,i,a);if(!l)throw Error("Unsupported symbol "+r+" and font size "+i+".");return l},Jje=function(r,i,a,o){var l=a.havingBaseStyle(i),h=Ui(o.concat(l.sizingClasses(a)),[r],a),d=l.sizeMultiplier/a.sizeMultiplier;return h.height*=d,h.depth*=d,h.maxFontSize=l.sizeMultiplier,h},Pmr=function(r,i,a){var o=i.havingBaseStyle(a),l=(1-i.sizeMultiplier/o.sizeMultiplier)*i.fontMetrics().axisHeight;r.classes.push("delimcenter"),r.style.top=oa(l),r.height-=l,r.depth+=l},uPn=function(r,i,a,o,l,h){var d=ov(r,"Main-Regular",l,o),p=Jje(d,i,o,h);if(a)Pmr(p,o,i);return p},hPn=function(r,i,a,o){return ov(r,"Size"+i+"-Regular",a,o)},Bmr=function(r,i,a,o,l,h){var d=hPn(r,i,l,o),p=Jje(Ui(["delimsizing","size"+i],[d],o),ul.TEXT,o,h);if(a)Pmr(p,o,ul.TEXT);return p},bje=function(r,i,a,o){var l;if(i==="Size1-Regular")l="delim-size1";else l="delim-size4";var h=Ui(["delimsizinginner",l],[Ui([],[ov(r,i,a,o)])]);return{type:"elem",elem:h}},yje=function(r,i,a){var o=Gk["Size4-Regular"][r.charCodeAt(0)]?Gk["Size4-Regular"][r.charCodeAt(0)][4]:Gk["Size1-Regular"][r.charCodeAt(0)][4],l=new hR("inner",p9n(r,Math.round(1000*i))),h=new zk([l],{width:oa(o),height:oa(i),style:"width:"+oa(o),viewBox:"0 0 "+1000*o+" "+Math.round(1000*i),preserveAspectRatio:"xMinYMin"}),d=KN([],[h],a);return d.height=i,d.style.height=oa(i),d.style.width=oa(o),{type:"elem",elem:d}},$je=0.008,Bve={type:"kern",size:-1*$je},dPn=new Set(["|","\\lvert","\\rvert","\\vert"]),fPn=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),Fmr=function(r,i,a,o,l,h){var d,p,m,y,v="",w=0;d=m=y=r,p=null;var T="Size1-Regular";if(r==="\\uparrow")m=y="⏐";else if(r==="\\Uparrow")m=y="‖";else if(r==="\\downarrow")d=m="⏐";else if(r==="\\Downarrow")d=m="‖";else if(r==="\\updownarrow")d="\\uparrow",m="⏐",y="\\downarrow";else if(r==="\\Updownarrow")d="\\Uparrow",m="‖",y="\\Downarrow";else if(dPn.has(r))m="∣",v="vert",w=333;else if(fPn.has(r))m="∥",v="doublevert",w=556;else if(r==="["||r==="\\lbrack")d="⎡",m="⎢",y="⎣",T="Size4-Regular",v="lbrack",w=667;else if(r==="]"||r==="\\rbrack")d="⎤",m="⎥",y="⎦",T="Size4-Regular",v="rbrack",w=667;else if(r==="\\lfloor"||r==="⌊")m=d="⎢",y="⎣",T="Size4-Regular",v="lfloor",w=667;else if(r==="\\lceil"||r==="⌈")d="⎡",m=y="⎢",T="Size4-Regular",v="lceil",w=667;else if(r==="\\rfloor"||r==="⌋")m=d="⎥",y="⎦",T="Size4-Regular",v="rfloor",w=667;else if(r==="\\rceil"||r==="⌉")d="⎤",m=y="⎥",T="Size4-Regular",v="rceil",w=667;else if(r==="("||r==="\\lparen")d="⎛",m="⎜",y="⎝",T="Size4-Regular",v="lparen",w=875;else if(r===")"||r==="\\rparen")d="⎞",m="⎟",y="⎠",T="Size4-Regular",v="rparen",w=875;else if(r==="\\{"||r==="\\lbrace")d="⎧",p="⎨",y="⎩",m="⎪",T="Size4-Regular";else if(r==="\\}"||r==="\\rbrace")d="⎫",p="⎬",y="⎭",m="⎪",T="Size4-Regular";else if(r==="\\lgroup"||r==="⟮")d="⎧",y="⎩",m="⎪",T="Size4-Regular";else if(r==="\\rgroup"||r==="⟯")d="⎫",y="⎭",m="⎪",T="Size4-Regular";else if(r==="\\lmoustache"||r==="⎰")d="⎧",y="⎭",m="⎪",T="Size4-Regular";else if(r==="\\rmoustache"||r==="⎱")d="⎫",y="⎩",m="⎪",T="Size4-Regular";var x=ere(d,T,l),k=x.height+x.depth,A=ere(m,T,l),R=A.height+A.depth,N=ere(y,T,l),L=N.height+N.depth,B=0,D=1;if(p!==null){var P=ere(p,T,l);B=P.height+P.depth,D=2}var F=k+L+B,H=Math.max(0,Math.ceil((i-F)/(D*R))),W=F+H*D*R,X=o.fontMetrics().axisHeight;if(a)X*=o.sizeMultiplier;var Q=W/2-X,Y=[];if(v.length>0){var K=W-k-L,J=Math.round(W*1000),Z=g9n(v,Math.round(K*1000)),j=new hR(v,Z),ee=oa(w/1000),z=oa(J/1000),ne=new zk([j],{width:ee,height:z,viewBox:"0 0 "+w+" "+J}),ie=KN([],[ne],o);ie.height=J/1000,ie.style.width=ee,ie.style.height=z,Y.push({type:"elem",elem:ie})}else{if(Y.push(bje(y,T,l,o)),Y.push(Bve),p===null){var se=W-k-L+2*$je;Y.push(yje(m,se,o))}else{var oe=(W-k-L-B)/2+2*$je;Y.push(yje(m,oe,o)),Y.push(Bve),Y.push(bje(p,T,l,o)),Y.push(Bve),Y.push(yje(m,oe,o))}Y.push(Bve),Y.push(bje(d,T,l,o))}var he=o.havingBaseStyle(ul.TEXT),ye=Wu({positionType:"bottom",positionData:Q,children:Y});return Jje(Ui(["delimsizing","mult"],[ye],he),ul.TEXT,o,h)},vje=80,_je=0.08,Eje=function(r,i,a,o,l){var h=f9n(r,o,a),d=new hR(r,h),p=new zk([d],{width:"400em",height:oa(i),viewBox:"0 0 400000 "+a,preserveAspectRatio:"xMinYMin slice"});return KN(["hide-tail"],[p],l)},pPn=function(r,i){var a=i.havingBaseSizing(),o=Vmr("\\surd",r*a.sizeMultiplier,zmr,a),l=a.sizeMultiplier,h=Math.max(0,i.minRuleThickness-i.fontMetrics().sqrtRuleThickness),d,p,m,y,v;if(o.type==="small"){if(y=1000+1000*h+vje,r<1)l=1;else if(r<1.4)l=0.7;p=(1+h+_je)/l,m=(1+h)/l,d=Eje("sqrtMain",p,y,h,i),d.style.minWidth="0.853em",v=0.833/l}else if(o.type==="large")y=(1000+vje)*tre[o.size],m=(tre[o.size]+h)/l,p=(tre[o.size]+h+_je)/l,d=Eje("sqrtSize"+o.size,p,y,h,i),d.style.minWidth="1.02em",v=1/l;else p=r+h+_je,m=r+h,y=Math.floor(1000*r+h)+vje,d=Eje("sqrtTall",p,y,h,i),d.style.minWidth="0.742em",v=1.056;return d.height=m,d.style.height=oa(p),{span:d,advanceWidth:v,ruleWidth:(i.fontMetrics().sqrtRuleThickness+h)*l}},$mr=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),gPn=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),Umr=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),tre=[0,1.2,1.8,2.4,3],Gmr=function(r,i,a,o,l){if(r==="<"||r==="\\lt"||r==="⟨")r="\\langle";else if(r===">"||r==="\\gt"||r==="⟩")r="\\rangle";if($mr.has(r)||Umr.has(r))return Bmr(r,i,!1,a,o,l);else if(gPn.has(r))return Fmr(r,tre[i],!1,a,o,l);else throw new Wi("Illegal delimiter: '"+r+"'")},mPn=[{type:"small",style:ul.SCRIPTSCRIPT},{type:"small",style:ul.SCRIPT},{type:"small",style:ul.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],bPn=[{type:"small",style:ul.SCRIPTSCRIPT},{type:"small",style:ul.SCRIPT},{type:"small",style:ul.TEXT},{type:"stack"}],zmr=[{type:"small",style:ul.SCRIPTSCRIPT},{type:"small",style:ul.SCRIPT},{type:"small",style:ul.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],yPn=function(r){if(r.type==="small")return"Main-Regular";else if(r.type==="large")return"Size"+r.size+"-Regular";else if(r.type==="stack")return"Size4-Regular";else{var i=r.type;throw Error("Add support for delim type '"+i+"' here.")}},Vmr=function(r,i,a,o){var l=Math.min(2,3-o.style.size);for(var h=l;hi)return d}return a[a.length-1]},Uje=function(r,i,a,o,l,h){if(r==="<"||r==="\\lt"||r==="⟨")r="\\langle";else if(r===">"||r==="\\gt"||r==="⟩")r="\\rangle";var d;if(Umr.has(r))d=mPn;else if($mr.has(r))d=zmr;else d=bPn;var p=Vmr(r,i,d,o);if(p.type==="small")return uPn(r,p.style,a,o,l,h);else if(p.type==="large")return Bmr(r,p.size,a,o,l,h);else return Fmr(r,i,a,o,l,h)},wje=function(r,i,a,o,l,h){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,p=901,m=5/o.fontMetrics().ptPerEm,y=Math.max(i-d,a+d),v=Math.max(y/500*p,2*y-m);return Uje(r,v,!0,o,l,h)},Kgr={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},vPn=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function Xgr(e){return"isMiddle"in e}function e_e(e,r){var i=Zve(e);if(i&&vPn.has(i.text))return i;else if(i)throw new Wi("Invalid delimiter '"+i.text+"' after '"+r.funcName+"'",e);else throw new Wi("Invalid delimiter type '"+e.type+"'",e)}Ba({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],numArgs:1,argTypes:["primitive"],handler:(e,r)=>{var i=e_e(are(r[0]),e);return{type:"delimsizing",mode:e.parser.mode,size:Kgr[e.funcName].size,mclass:Kgr[e.funcName].mclass,delim:i.text}},htmlBuilder:(e,r)=>{if(e.delim===".")return Ui([e.mclass]);return Gmr(e.delim,e.size,r,e.mode,[e.mclass])},mathmlBuilder:(e)=>{var r=[];if(e.delim!==".")r.push(US(e.delim,e.mode));var i=new Zi("mo",r);if(e.mclass==="mopen"||e.mclass==="mclose")i.setAttribute("fence","true");else i.setAttribute("fence","false");i.setAttribute("stretchy","true");var a=oa(tre[e.size]);return i.setAttribute("minsize",a),i.setAttribute("maxsize",a),i}});function Qgr(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ba({type:"leftright-right",names:["\\right"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&typeof i!=="string")throw new Wi("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:e_e(r[0],e).text,color:i}}});Ba({type:"leftright",names:["\\left"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e_e(r[0],e),a=e.parser;++a.leftrightDepth;var o=a.parseExpression(!1);--a.leftrightDepth,a.expect("\\right",!1);var l=gc(a.parseFunction(),"leftright-right");return{type:"leftright",mode:a.mode,body:o,left:i.text,right:l.delim,rightColor:l.color}},htmlBuilder:(e,r)=>{Qgr(e);var i=Xg(e.body,r,!0,["mopen","mclose"]),a=0,o=0,l=!1;for(var h=0;h{Qgr(e);var i=BE(e.body,r);if(e.left!=="."){var a=new Zi("mo",[US(e.left,e.mode)]);a.setAttribute("fence","true"),i.unshift(a)}if(e.right!=="."){var o=new Zi("mo",[US(e.right,e.mode)]);if(o.setAttribute("fence","true"),e.rightColor)o.setAttribute("mathcolor",e.rightColor);i.push(o)}return Xje(i)}});Ba({type:"middle",names:["\\middle"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e_e(r[0],e);if(!e.parser.leftrightDepth)throw new Wi("\\middle without preceding \\left",i);return{type:"middle",mode:e.parser.mode,delim:i.text}},htmlBuilder:(e,r)=>{var i;if(e.delim===".")i=sre(r,[]);else i=Gmr(e.delim,1,r,e.mode,[]),i.isMiddle={delim:e.delim,options:r};return i},mathmlBuilder:(e,r)=>{var i=e.delim==="\\vert"||e.delim==="|"?US("|","text"):US(e.delim,e.mode),a=new Zi("mo",[i]);return a.setAttribute("fence","true"),a.setAttribute("lspace","0.05em"),a.setAttribute("rspace","0.05em"),a}});var _Pn=(e,r)=>{var i=OV(Au(e.body,r),r),a=e.label.slice(1),o=r.sizeMultiplier,l,h,d=dR(e.body);if(a==="sout")l=Ui(["katex-stretchy","katex-sout"]),l.height=r.fontMetrics().defaultRuleThickness/o,h=-0.5*r.fontMetrics().xHeight;else if(a==="phase"){var p=Jf({number:0.6,unit:"pt"},r),m=Jf({number:0.35,unit:"ex"},r),y=r.havingBaseSizing();o=o/y.sizeMultiplier;var v=i.height+i.depth+p+m;i.style.paddingLeft=oa(v/2+p);var w=Math.floor(1000*v*o),T=h9n(w),x=new zk([new hR("phase",T)],{width:"400em",height:oa(w/1000),viewBox:"0 0 400000 "+w,preserveAspectRatio:"xMinYMin slice"});l=KN(["hide-tail"],[x],r),l.style.height=oa(v),h=i.depth+p+m}else{if(/cancel/.test(a)){if(!d)i.classes.push("cancel-pad")}else if(a==="angl")i.classes.push("anglpad");else i.classes.push("boxpad");var k,A,R=0;if(/box/.test(a))R=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness),k=r.fontMetrics().fboxsep+(a==="colorbox"?0:R),A=k;else if(a==="angl")R=Math.max(r.fontMetrics().defaultRuleThickness,r.minRuleThickness),k=4*R,A=Math.max(0,0.25-i.depth);else k=d?0.2:0,A=k;if(l=W9n(i,a,k,A,r),/fbox|boxed|fcolorbox/.test(a))l.style.borderStyle="solid",l.style.borderWidth=oa(R);else if(a==="angl"&&R!==0.049)l.style.borderTopWidth=oa(R),l.style.borderRightWidth=oa(R);if(h=i.depth+A,e.backgroundColor){if(l.style.backgroundColor=e.backgroundColor,e.borderColor)l.style.borderColor=e.borderColor}}var N;if(e.backgroundColor)N=Wu({positionType:"individualShift",children:[{type:"elem",elem:l,shift:h},{type:"elem",elem:i,shift:0}]});else{var L=/cancel|phase/.test(a)?["svg-align"]:[];N=Wu({positionType:"individualShift",children:[{type:"elem",elem:i,shift:0},{type:"elem",elem:l,shift:h,wrapperClasses:L}]})}if(/cancel/.test(a))N.height=i.height,N.depth=i.depth;if(/cancel/.test(a)&&!d)return Ui(["mord","cancel-lap"],[N],r);else return Ui(["mord"],[N],r)},EPn=(e,r)=>{var i,a=new Zi(e.label.includes("colorbox")?"mpadded":"menclose",[Vh(e.body,r)]);switch(e.label){case"\\cancel":a.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":a.setAttribute("notation","downdiagonalstrike");break;case"\\phase":a.setAttribute("notation","phasorangle");break;case"\\sout":a.setAttribute("notation","horizontalstrike");break;case"\\fbox":a.setAttribute("notation","box");break;case"\\angl":a.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(i=r.fontMetrics().fboxsep*r.fontMetrics().ptPerEm,a.setAttribute("width","+"+2*i+"pt"),a.setAttribute("height","+"+2*i+"pt"),a.setAttribute("lspace",i+"pt"),a.setAttribute("voffset",i+"pt"),e.label==="\\fcolorbox"){var o=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness);a.setAttribute("style","border: "+oa(o)+" solid "+e.borderColor)}break;case"\\xcancel":a.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}if(e.backgroundColor)a.setAttribute("mathbackground",e.backgroundColor);return a};Ba({type:"enclose",names:["\\colorbox"],numArgs:2,allowedInText:!0,argTypes:["color","hbox"],handler(e,r,i){var{parser:a,funcName:o}=e,l=gc(r[0],"color-token").color,h=r[1];return{type:"enclose",mode:a.mode,label:o,backgroundColor:l,body:h}},htmlBuilder:_Pn,mathmlBuilder:EPn});Ba({type:"enclose",names:["\\fcolorbox"],numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"],handler(e,r,i){var{parser:a,funcName:o}=e,l=gc(r[0],"color-token").color,h=gc(r[1],"color-token").color,d=r[2];return{type:"enclose",mode:a.mode,label:o,backgroundColor:h,borderColor:l,body:d}}});Ba({type:"enclose",names:["\\fbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler(e,r){var i=e.parser;return{type:"enclose",mode:i.mode,label:"\\fbox",body:r[0]}}});Ba({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"enclose",mode:i.mode,label:a,body:o}}});Ba({type:"enclose",names:["\\sout"],numArgs:1,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e;if(i.mode==="math")$_({strict:i.settings.strict,errorCode:"mathVsSout",errorMsg:"LaTeX's \\sout works only in text mode",report:!0});var o=r[0];return{type:"enclose",mode:i.mode,label:a,body:o}}});Ba({type:"enclose",names:["\\angl"],numArgs:1,argTypes:["hbox"],allowedInText:!1,handler(e,r){var i=e.parser;return{type:"enclose",mode:i.mode,label:"\\angl",body:r[0]}}});var Hmr={};function Vk(e){var{type:r,names:i,props:a,handler:o,htmlBuilder:l,mathmlBuilder:h}=e,d={type:r,numArgs:a.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o};for(var p=0;p{var r=e.parser.settings;if(!r.displayMode)throw new Wi("{"+e.envName+"} can be used only in display mode.")},wPn=new Set(["gather","gather*"]);function eKe(e){if(!e.includes("ed"))return!e.includes("*")}function QN(e,r,i){var{hskipBeforeAndAfter:a,addJot:o,cols:l,arraystretch:h,colSeparationType:d,autoTag:p,singleRow:m,emptySingleRow:y,maxNumCols:v,leqno:w}=r;if(e.gullet.beginGroup(),!m)e.gullet.macros.set("\\cr","\\\\\\relax");if(!h){var T=e.gullet.expandMacroAsText("\\arraystretch");if(T==null)h=1;else if(h=parseFloat(T),!h||h<0)throw new Wi("Invalid \\arraystretch: "+T)}e.gullet.beginGroup();var x=[],k=[x],A=[],R=[],N=p!=null?[]:void 0;function L(){if(p)e.gullet.macros.set("\\@eqnsw","1",!0)}function B(){if(N)if(e.gullet.macros.get("\\df@tag"))N.push(e.subparse([new DE("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0);else N.push(Boolean(p)&&e.gullet.macros.get("\\@eqnsw")==="1")}L(),R.push(Zgr(e));while(!0){var D=e.parseExpression(!1,m?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var P={type:"ordgroup",mode:e.mode,body:D};if(i)P={type:"styling",mode:e.mode,style:i,resetFont:!0,body:[P]};x.push(P);var F=e.fetch().text;if(F==="&"){if(v&&x.length===v)if(m||d)throw new Wi("Too many tab characters: &",e.nextToken);else $_({strict:e.settings.strict,errorCode:"textEnv",errorMsg:"Too few columns specified in the {array} column argument.",report:!0});e.consume()}else if(F==="\\end"){if(B(),x.length===1&&P.type==="styling"&&P.body.length===1&&P.body[0].type==="ordgroup"&&P.body[0].body.length===0&&(k.length>1||!y)&&!Array.isArray(N==null?void 0:N[N.length-1])&&!(p&&(N==null?void 0:N[N.length-1])===!0))k.pop();if(R.length0)L+=0.25;m.push({pos:L,isDashed:le[pe]})}}B(h[0]);for(a=0;a0){if(Q+=N,Fle))for(a=0;a=d)continue;var Me=void 0;if(o>0||r.hskipBeforeAndAfter){var Xe,Ye;if(Me=(Xe=(Ye=he)==null?void 0:Ye.pregap)!=null?Xe:w,Me!==0)Z=Ui(["arraycolsep"],[]),Z.style.width=oa(Me),J.push(Z)}var Qe=[];for(a=0;a0){var bt=IV("katex-hline",i,y),Pe=IV("katex-hdashline",i,y),Ue=[{type:"elem",elem:ct,shift:0}];while(m.length>0){var qe=m.pop(),Ke=qe.pos-Y;if(qe.isDashed)Ue.push({type:"elem",elem:Pe,shift:Ke});else Ue.push({type:"elem",elem:bt,shift:Ke})}ct=Wu({positionType:"individualShift",children:Ue})}if(ee.length===0)return Ui(["mord"],[ct],i);else{var Je=Wu({positionType:"individualShift",children:ee}),De=Ui(["katex-tag"],[Je],i);return pR([ct,De])}},SPn={c:"center ",l:"left ",r:"right "},qk=function(r,i){var a=[],o=new Zi("mtd",[],["mtr-glue"]),l=new Zi("mtd",[],["mml-eqn-num"]);for(var h=0;h0){var x=r.cols,k="",A=!1,R=0,N=x.length;if(x[0].type==="separator")w+="top ",R=1;if(x[x.length-1].type==="separator")w+="bottom ",N-=1;for(var L=R;L0?"left ":"",w+=W[W.length-1].length>0?"right ":"";for(var X=1;X0&&v)x=1;a[w]={type:"align",align:T,pregap:x,postgap:0}}return l.colSeparationType=v?"align":"alignat",l};Vk({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,r){var i=Zve(r[0]),a=i?[r[0]]:gc(r[0],"ordgroup").body,o=a.map(function(h){var d=Qve(h),p=d.text;if("lcr".includes(p))return{type:"align",align:p};else if(p==="|")return{type:"separator",separator:"|"};else if(p===":")return{type:"separator",separator:":"};throw new Wi("Unknown column alignment: "+p,h)}),l={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return QN(e.parser,l,tKe(e.envName))},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var r={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],i="c",a={hskipBeforeAndAfter:!1,cols:[{type:"align",align:i}]};if(e.envName.charAt(e.envName.length-1)==="*"){var o=e.parser;if(o.consumeSpaces(),o.fetch().text==="["){if(o.consume(),o.consumeSpaces(),i=o.fetch().text,!"lcr".includes(i))throw new Wi("Expected l or c or r",o.nextToken);o.consume(),o.consumeSpaces(),o.expect("]"),o.consume(),a.cols=[{type:"align",align:i}]}}var l=QN(e.parser,a,tKe(e.envName)),h=Math.max(0,...l.body.map((d)=>d.length));return l.cols=Array(h).fill({type:"align",align:i}),r?{type:"leftright",mode:e.mode,body:[l],left:r[0],right:r[1],rightColor:void 0}:l},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var r={arraystretch:0.5},i=QN(e.parser,r,"script");return i.colSeparationType="small",i},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["subarray"],props:{numArgs:1},handler(e,r){var i=Zve(r[0]),a=i?[r[0]]:gc(r[0],"ordgroup").body,o=a.map(function(d){var p=Qve(d),m=p.text;if("lc".includes(m))return{type:"align",align:m};throw new Wi("Unknown column alignment: "+m,d)});if(o.length>1)throw new Wi("{subarray} can contain only one column");var l={cols:o,hskipBeforeAndAfter:!1,arraystretch:0.5},h=QN(e.parser,l,"script");if(h.body.length>0&&h.body[0].length>1)throw new Wi("{subarray} can contain only one column");return h},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var r={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},i=QN(e.parser,r,tKe(e.envName));return{type:"leftright",mode:e.mode,body:[i],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Ymr,htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){if(wPn.has(e.envName))t_e(e);var r={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:eKe(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return QN(e.parser,r,"display")},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Ymr,htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){t_e(e);var r={autoTag:eKe(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return QN(e.parser,r,"display")},htmlBuilder:Hk,mathmlBuilder:qk});Vk({type:"array",names:["CD"],props:{numArgs:0},handler(e){return t_e(e),sPn(e.parser)},htmlBuilder:Hk,mathmlBuilder:qk});St("\\nonumber","\\gdef\\@eqnsw{0}");St("\\notag","\\nonumber");Ba({type:"text",names:["\\hline","\\hdashline"],numArgs:0,allowedInText:!0,allowedInMath:!0,handler(e,r){throw new Wi(e.funcName+" valid only within array environment")}});var Jgr=Hmr;Ba({type:"environment",names:["\\begin","\\end"],numArgs:1,argTypes:["text"],handler(e,r){var{parser:i,funcName:a}=e,o=r[0];if(o.type!=="ordgroup")throw new Wi("Invalid environment name",o);var l=Zje(o,"Environment name should contain only text characters and spaces",!0);if(a==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Jgr,l))throw new Wi("No such environment: "+l,o);var h=Jgr[l],d=i.parseArguments("\\begin{"+l+"}",h),{args:p,optArgs:m}=d,y={mode:i.mode,envName:l,parser:i},v=h.handler(y,p,m);i.expect("\\end",!1);var w=i.nextToken,T=gc(i.parseFunction(),"environment");if(T.name!==l)throw new Wi("Mismatch: \\begin{"+l+"} matched by \\end{"+T.name+"}",w);return v}return{type:"environment",mode:i.mode,name:l,nameGroup:o}}});var TPn=(e,r)=>{var i=e.font,a=r.withFont(i);return Au(e.body,a)},xPn=(e,r)=>{var i=e.font,a=r.withFont(i);return Vh(e.body,a)},emr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Ba({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],numArgs:1,allowedInArgument:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=are(r[0]),l=a in emr?emr[a]:a;return{type:"font",mode:i.mode,font:l.slice(1),body:o}},htmlBuilder:TPn,mathmlBuilder:xPn});Ba({type:"mclass",names:["\\boldsymbol","\\bm"],numArgs:1,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"mclass",mode:i.mode,mclass:Jve(a),body:[{type:"font",mode:i.mode,font:"boldsymbol",body:a}],isCharacterBox:dR(a)}}});Ba({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],numArgs:0,allowedInText:!0,handler:(e,r)=>{var{parser:i,funcName:a,breakOnTokenText:o}=e,l=i.mode,h=i.parseExpression(!0,o);return{type:"font",mode:l,font:"math"+a.slice(1),body:{type:"ordgroup",mode:i.mode,body:h}}}});var CPn=(e,r)=>{var i=r.style,a=i.fracNum(),o=i.fracDen(),l;l=r.havingStyle(a);var h=Au(e.numer,l,r);if(e.continued){var d=8.5/r.fontMetrics().ptPerEm,p=3.5/r.fontMetrics().ptPerEm;h.height=h.height0)x=3*w;else x=7*w;k=r.fontMetrics().denom1}else{if(v>0)T=r.fontMetrics().num2,x=w;else T=r.fontMetrics().num3,x=3*w;k=r.fontMetrics().denom2}var A;if(!y){var R=T-h.depth-(m.height-k);if(R{var i=new Zi("mfrac",[Vh(e.numer,r),Vh(e.denom,r)]);if(!e.hasBarLine)i.setAttribute("linethickness","0px");else if(e.barSize){var a=Jf(e.barSize,r);i.setAttribute("linethickness",oa(a))}if(e.leftDelim!=null||e.rightDelim!=null){var o=[];if(e.leftDelim!=null){var l=new Zi("mo",[new T0(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),o.push(l)}if(o.push(i),e.rightDelim!=null){var h=new Zi("mo",[new T0(e.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),o.push(h)}return Xje(o)}return i},Wmr=(e,r)=>{if(!r)return e;var i={type:"styling",mode:e.mode,style:r,body:[e]};return i};Ba({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],numArgs:2,allowedInArgument:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0],l=r[1],h,d=null,p=null;switch(a){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":h=!0;break;case"\\\\atopfrac":h=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":h=!1,d="(",p=")";break;case"\\\\bracefrac":h=!1,d="\\{",p="\\}";break;case"\\\\brackfrac":h=!1,d="[",p="]";break;default:throw Error("Unrecognized genfrac command")}var m=a==="\\cfrac",y=null;if(m||a.startsWith("\\d"))y="display";else if(a.startsWith("\\t"))y="text";return Wmr({type:"genfrac",mode:i.mode,numer:o,denom:l,continued:m,hasBarLine:h,leftDelim:d,rightDelim:p,barSize:null},y)},htmlBuilder:CPn,mathmlBuilder:kPn});Ba({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],numArgs:0,infix:!0,handler(e){var{parser:r,funcName:i,token:a}=e,o;switch(i){case"\\over":o="\\frac";break;case"\\choose":o="\\binom";break;case"\\atop":o="\\\\atopfrac";break;case"\\brace":o="\\\\bracefrac";break;case"\\brack":o="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:o,token:a}}});var tmr=["display","text","script","scriptscript"],rmr=function(r){var i=null;if(r.length>0)i=r,i=i==="."?null:i;return i};Ba({type:"genfrac",names:["\\genfrac"],numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"],handler(e,r){var i=e.parser,a=r[4],o=r[5],l=are(r[0]),h=l.type==="atom"&&l.family==="open"?rmr(l.text):null,d=are(r[1]),p=d.type==="atom"&&d.family==="close"?rmr(d.text):null,m=gc(r[2],"size"),y,v=null;if(m.isBlank)y=!0;else v=m.value,y=v.number>0;var w=null,T=r[3];if(T.type==="ordgroup"){if(T.body.length>0){var x=gc(T.body[0],"textord");w=tmr[Number(x.text)]}}else T=gc(T,"textord"),w=tmr[Number(T.text)];return Wmr({type:"genfrac",mode:i.mode,numer:a,denom:o,continued:!1,hasBarLine:y,barSize:v,leftDelim:h,rightDelim:p},w)}});Ba({type:"infix",names:["\\above"],numArgs:1,argTypes:["size"],infix:!0,handler(e,r){var i=e.parser;e.funcName;var a=e.token;return{type:"infix",mode:i.mode,replaceWith:"\\\\abovefrac",size:gc(r[0],"size").value,token:a}}});Ba({type:"genfrac",names:["\\\\abovefrac"],numArgs:3,argTypes:["math","size","math"],handler:(e,r)=>{var i=e.parser;e.funcName;var a=r[0],o=gc(r[1],"infix").size;if(!o)throw Error("\\\\abovefrac expected size, but got "+String(o));var l=r[2],h=o.number>0;return{type:"genfrac",mode:i.mode,numer:a,denom:l,continued:!1,hasBarLine:h,barSize:o,leftDelim:null,rightDelim:null}}});var jmr=(e,r)=>{var i=r.style,a,o;if(e.type==="supsub")a=e.sup?Au(e.sup,r.havingStyle(i.sup()),r):Au(e.sub,r.havingStyle(i.sub()),r),o=gc(e.base,"horizBrace");else o=gc(e,"horizBrace");var l=Au(o.base,r.havingBaseStyle(ul.DISPLAY)),h=Xve(o,r),d;if(o.isOver)d=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:0.1},{type:"elem",elem:h,wrapperClasses:["svg-align"]}]});else d=Wu({positionType:"bottom",positionData:l.depth+0.1+h.height,children:[{type:"elem",elem:h,wrapperClasses:["svg-align"]},{type:"kern",size:0.1},{type:"elem",elem:l}]});if(a){var p=Ui(["minner",o.isOver?"mover":"munder"],[d],r);if(o.isOver)d=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:p},{type:"kern",size:0.2},{type:"elem",elem:a}]});else d=Wu({positionType:"bottom",positionData:p.depth+0.2+a.height+a.depth,children:[{type:"elem",elem:a},{type:"kern",size:0.2},{type:"elem",elem:p}]})}return Ui(["minner",o.isOver?"mover":"munder"],[d],r)};var APn=(e,r)=>{var i=Kve(e.label);return new Zi(e.isOver?"mover":"munder",[Vh(e.base,r),i])};Ba({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],numArgs:1,handler(e,r){var{parser:i,funcName:a}=e;return{type:"horizBrace",mode:i.mode,label:a,isOver:a.includes("\\over"),base:r[0]}},htmlBuilder:jmr,mathmlBuilder:APn});Ba({type:"href",names:["\\href"],numArgs:2,argTypes:["url","original"],allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[1],o=gc(r[0],"url").url;if(!i.settings.isTrusted({command:"\\href",url:o}))return i.formatUnsupportedCmd("\\href");return{type:"href",mode:i.mode,href:o,body:ag(a)}},htmlBuilder:(e,r)=>{var i=Xg(e.body,r,!1);return I9n(e.href,[],i,r)},mathmlBuilder:(e,r)=>{var i=XN(e.body,r);if(!(i instanceof Zi))i=new Zi("mrow",[i]);return i.setAttribute("href",e.href),i}});Ba({type:"href",names:["\\url"],numArgs:1,argTypes:["url"],allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=gc(r[0],"url").url;if(!i.settings.isTrusted({command:"\\url",url:a}))return i.formatUnsupportedCmd("\\url");var o=[];for(var l=0;l{var{parser:i,funcName:a}=e;e.token;var o=gc(r[0],"raw").string,l=r[1];if(i.settings.strict)$_({strict:i.settings.strict,errorCode:"htmlExtension",errorMsg:"HTML extension is disabled on strict mode",report:!0});var h,d={};switch(a){case"\\htmlClass":d.class=o,h={command:"\\htmlClass",class:o};break;case"\\htmlId":d.id=o,h={command:"\\htmlId",id:o};break;case"\\htmlStyle":d.style=o,h={command:"\\htmlStyle",style:o};break;case"\\htmlData":{var p="{,}",m=[],y="";for(var v=0;v{var i=Xg(e.body,r,!1),a=["enclosing"];if(e.attributes.class)a.push(...e.attributes.class.trim().split(/\s+/));var o=Ui(a,i,r);for(var l of Object.entries(e.attributes)){var h=l[0],d=l[1];if(h!=="class")o.setAttribute(h,d)}return o},mathmlBuilder:(e,r)=>XN(e.body,r)});Ba({type:"htmlmathml",names:["\\html@mathml"],numArgs:2,allowedInArgument:!0,allowedInText:!0,handler:(e,r)=>{var i=e.parser;return{type:"htmlmathml",mode:i.mode,html:ag(r[0]),mathml:ag(r[1])}},htmlBuilder:(e,r)=>{var i=Xg(e.html,r,!1);return pR(i)},mathmlBuilder:(e,r)=>XN(e.mathml,r)});var Sje=function(r){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(r))return{number:+r,unit:"bp"};else{var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r);if(!i)throw new Wi("Invalid size: '"+r+"' in \\includegraphics");var a={number:+(i[1]+i[2]),unit:i[3]};if(!bmr(a))throw new Wi("Invalid unit: '"+a.unit+"' in \\includegraphics.");return a}};Ba({type:"includegraphics",names:["\\includegraphics"],numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1,handler:(e,r,i)=>{var a=e.parser,o={number:0,unit:"em"},l={number:0.9,unit:"em"},h={number:0,unit:"em"},d="";if(i[0]){var p=gc(i[0],"raw").string,m=p.split(",");for(var y=0;y{var i=Jf(e.height,r),a=0;if(e.totalheight.number>0)a=Jf(e.totalheight,r)-i;var o=0;if(e.width.number>0)o=Jf(e.width,r);var l={height:oa(i+a)};if(o>0)l.width=oa(o);if(a>0)l.verticalAlign=oa(-a);var h=new Emr(e.src,e.alt,l);return h.height=i,h.depth=a,h},mathmlBuilder:(e,r)=>{var i=new Zi("mglyph",[]);i.setAttribute("alt",e.alt);var a=Jf(e.height,r),o=0;if(e.totalheight.number>0)o=Jf(e.totalheight,r)-a,i.setAttribute("valign",oa(-o));if(i.setAttribute("height",oa(a+o)),e.width.number>0){var l=Jf(e.width,r);i.setAttribute("width",oa(l))}return i.setAttribute("src",e.src),i}});Ba({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e,o=gc(r[0],"size");if(i.settings.strict){var l=a[1]==="m",h=o.value.unit==="mu";if(l){if(!h)$_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" supports only mu units, "+("not "+o.value.unit+" units"),report:!0});if(i.mode!=="math")$_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" works only in math mode",report:!0})}else if(h)$_({strict:i.settings.strict,errorCode:"mathVsTextUnits",errorMsg:"LaTeX's "+a+" doesn't support mu units",report:!0})}return{type:"kern",mode:i.mode,dimension:o.value}},htmlBuilder(e,r){return Tmr(e.dimension,r)},mathmlBuilder(e,r){var i=Jf(e.dimension,r);return new Kje(i)}});Ba({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"lap",mode:i.mode,alignment:a.slice(5),body:o}},htmlBuilder:(e,r)=>{var i;if(e.alignment==="clap")i=Ui([],[Au(e.body,r)]),i=Ui(["katex-inner"],[i],r);else i=Ui(["katex-inner"],[Au(e.body,r)]);var a=Ui(["katex-fix"],[]),o=Ui([e.alignment],[i,a],r),l=Ui(["katex-strut"]);if(l.style.height=oa(o.height+o.depth),o.depth)l.style.verticalAlign=oa(-o.depth);return o.children.unshift(l),o=Ui(["katex-thinbox"],[o],r),Ui(["mord","katex-vbox"],[o],r)},mathmlBuilder:(e,r)=>{var i=new Zi("mpadded",[Vh(e.body,r)]);if(e.alignment!=="rlap"){var a=e.alignment==="llap"?"-1":"-0.5";i.setAttribute("lspace",a+"width")}return i.setAttribute("width","0px"),i}});Ba({type:"styling",names:["\\(","$"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,r){var{funcName:i,parser:a}=e,o=a.mode;a.switchMode("math");var l=i==="\\("?"\\)":"$",h=a.parseExpression(!1,l);return a.expect(l),a.switchMode(o),{type:"styling",mode:a.mode,style:"text",resetFont:!0,body:h}}});Ba({type:"text",names:["\\)","\\]"],numArgs:0,allowedInText:!0,allowedInMath:!1,handler(e,r){throw new Wi("Mismatched "+e.funcName)}});var nmr=(e,r)=>{switch(r.style.size){case ul.DISPLAY.size:return e.display;case ul.TEXT.size:return e.text;case ul.SCRIPT.size:return e.script;case ul.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Ba({type:"mathchoice",names:["\\mathchoice"],numArgs:4,primitive:!0,handler:(e,r)=>{var i=e.parser;return{type:"mathchoice",mode:i.mode,display:ag(r[0]),text:ag(r[1]),script:ag(r[2]),scriptscript:ag(r[3])}},htmlBuilder:(e,r)=>{var i=nmr(e,r),a=Xg(i,r,!1);return pR(a)},mathmlBuilder:(e,r)=>{var i=nmr(e,r);return XN(i,r)}});var Kmr=(e,r,i,a,o,l,h)=>{e=Ui([],[e]);var d=i&&dR(i),p,m;if(r){var y=Au(r,a.havingStyle(o.sup()),a);m={elem:y,kern:Math.max(a.fontMetrics().bigOpSpacing1,a.fontMetrics().bigOpSpacing3-y.depth)}}if(i){var v=Au(i,a.havingStyle(o.sub()),a);p={elem:v,kern:Math.max(a.fontMetrics().bigOpSpacing2,a.fontMetrics().bigOpSpacing4-v.height)}}var w;if(m&&p){var T=a.fontMetrics().bigOpSpacing5+p.elem.height+p.elem.depth+p.kern+e.depth+h;w=Wu({positionType:"bottom",positionData:T,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:oa(-l)},{type:"kern",size:p.kern},{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:oa(l)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else if(p){var x=e.height-h;w=Wu({positionType:"top",positionData:x,children:[{type:"kern",size:a.fontMetrics().bigOpSpacing5},{type:"elem",elem:p.elem,marginLeft:oa(-l)},{type:"kern",size:p.kern},{type:"elem",elem:e}]})}else if(m){var k=e.depth+h;w=Wu({positionType:"bottom",positionData:k,children:[{type:"elem",elem:e},{type:"kern",size:m.kern},{type:"elem",elem:m.elem,marginLeft:oa(l)},{type:"kern",size:a.fontMetrics().bigOpSpacing5}]})}else return e;var A=[w];if(p&&l!==0&&!d){var R=Ui(["mspace"],[],a);R.style.marginRight=oa(l),A.unshift(R)}return Ui(["mop","op-limits"],A,a)},Xmr=new Set(["\\smallint"]),Qmr=(e,r)=>{var i,a,o=!1,l;if(e.type==="supsub")i=e.sup,a=e.sub,l=gc(e.base,"op"),o=!0;else l=gc(e,"op");var h=r.style,d=!1;if(h.size===ul.DISPLAY.size&&l.symbol&&!Xmr.has(l.name))d=!0;var p,m;if(l.symbol){var y=d?"Size2-Regular":"Size1-Regular",v="";if(l.name==="\\oiint"||l.name==="\\oiiint")v=l.name.slice(1),l.name=v==="oiint"?"\\iint":"\\iiint";if(p=ov(l.name,y,"math",r,["mop","op-symbol",d?"large-op":"small-op"]),m=p.italic,v.length>0){var w=Cmr(v+"Size"+(d?"2":"1"),r);p=Wu({positionType:"individualShift",children:[{type:"elem",elem:p,shift:0},{type:"elem",elem:w,shift:d?0.08:0}]}),l.name="\\"+v,p.classes.unshift("mop"),p.italic=m}}else if(l.body){var T=Xg(l.body,r,!0);if(T.length===1&&T[0]instanceof U_)p=T[0],p.classes[0]="mop";else p=Ui(["mop"],T,r)}else{var x=[];for(var k=1;k{var i;if(e.symbol){if(i=new Zi("mo",[US(e.name,e.mode)]),Xmr.has(e.name))i.setAttribute("largeop","false")}else if(e.body)i=new Zi("mo",BE(e.body,r));else{i=new Zi("mi",[new T0(e.name.slice(1))]);var a=new Zi("mo",[US("⁡","text")]);if(e.parentIsSupSub)i=new Zi("mrow",[i,a]);else i=Rmr([i,a])}return i},IPn={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ba({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],numArgs:0,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=a;if(o.length===1)o=IPn[o];return{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Qmr,mathmlBuilder:RPn});Ba({type:"op",names:["\\mathop"],numArgs:1,primitive:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"op",mode:i.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:ag(a)}}});var OPn={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ba({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],numArgs:0,handler(e){var{parser:r,funcName:i}=e;return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:i}}});Ba({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],numArgs:0,handler(e){var{parser:r,funcName:i}=e;return{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:i}}});Ba({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],numArgs:0,allowedInArgument:!0,handler(e){var{parser:r,funcName:i}=e,a=i;if(a.length===1)a=OPn[a];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:a}}});var Zmr=(e,r)=>{var i,a,o=!1,l;if(e.type==="supsub")i=e.sup,a=e.sub,l=gc(e.base,"operatorname"),o=!0;else l=gc(e,"operatorname");var h;if(l.body.length>0){var d=l.body.map((v)=>{var w="text"in v?v.text:void 0;if(typeof w==="string")return{type:"textord",mode:v.mode,text:w};else return v}),p=Xg(d,r.withFont("mathrm"),!0);for(var m=0;m{var i=BE(e.body,r.withFont("mathrm")),a=!0;for(var o=0;oy.toText()).join("");i=[new T0(d)]}var p=new Zi("mi",i);p.setAttribute("mathvariant","normal");var m=new Zi("mo",[US("⁡","text")]);if(e.parentIsSupSub)return new Zi("mrow",[p,m]);else return Rmr([p,m])};Ba({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],numArgs:1,handler:(e,r)=>{var{parser:i,funcName:a}=e,o=r[0];return{type:"operatorname",mode:i.mode,body:ag(o),alwaysHandleSupSub:a==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Zmr,mathmlBuilder:NPn});St("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");_P({type:"ordgroup",htmlBuilder(e,r){if(e.semisimple)return pR(Xg(e.body,r,!1));return Ui(["mord"],Xg(e.body,r,!0),r)},mathmlBuilder(e,r){return XN(e.body,r,!0)}});Ba({type:"overline",names:["\\overline"],numArgs:1,handler(e,r){var i=e.parser,a=r[0];return{type:"overline",mode:i.mode,body:a}},htmlBuilder(e,r){var i=Au(e.body,r.havingCrampedStyle()),a=IV("overline-line",r),o=r.fontMetrics().defaultRuleThickness,l=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:a},{type:"kern",size:o}]});return Ui(["mord","katex-overline"],[l],r)},mathmlBuilder(e,r){var i=new Zi("mo",[new T0("‾")]);i.setAttribute("stretchy","true");var a=new Zi("mover",[Vh(e.body,r),i]);return a.setAttribute("accent","true"),a}});Ba({type:"phantom",names:["\\phantom"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"phantom",mode:i.mode,body:ag(a)}},htmlBuilder:(e,r)=>{var i=Xg(e.body,r.withPhantom(),!1);return pR(i)},mathmlBuilder:(e,r)=>{var i=BE(e.body,r);return new Zi("mphantom",i)}});St("\\hphantom","\\smash{\\phantom{#1}}");Ba({type:"vphantom",names:["\\vphantom"],numArgs:1,allowedInText:!0,handler:(e,r)=>{var i=e.parser,a=r[0];return{type:"vphantom",mode:i.mode,body:a}},htmlBuilder:(e,r)=>{var i=Ui(["katex-inner"],[Au(e.body,r.withPhantom())]),a=Ui(["katex-fix"],[]);return Ui(["mord","rlap"],[i,a],r)},mathmlBuilder:(e,r)=>{var i=BE(ag(e.body),r),a=new Zi("mphantom",i),o=new Zi("mpadded",[a]);return o.setAttribute("width","0px"),o}});Ba({type:"raisebox",names:["\\raisebox"],numArgs:2,argTypes:["size","hbox"],allowedInText:!0,handler(e,r){var i=e.parser,a=gc(r[0],"size").value,o=r[1];return{type:"raisebox",mode:i.mode,dy:a,body:o}},htmlBuilder(e,r){var i=Au(e.body,r),a=Jf(e.dy,r);return Wu({positionType:"shift",positionData:-a,children:[{type:"elem",elem:i}]})},mathmlBuilder(e,r){var i=new Zi("mpadded",[Vh(e.body,r)]),a=e.dy.number+e.dy.unit;return i.setAttribute("voffset",a),i}});var Jmr=(e,r)=>{var i=e.parser;return{type:"reflectbox",mode:i.mode,body:r[0]}};Ba({type:"reflectbox",names:["\\reflectbox"],numArgs:1,argTypes:["hbox"],allowedInText:!0,handler:Jmr,htmlBuilder(e,r){return Ui(["mord","reflectbox"],[Au(e.body,r)],r)},mathmlBuilder(e,r){return Vh(e.body,r)}});Ba({type:"reflectbox",names:["\\mathreflectbox"],numArgs:1,argTypes:["math"],handler:Jmr});Ba({type:"internal",names:["\\relax"],numArgs:0,allowedInText:!0,allowedInArgument:!0,handler(e){var r=e.parser;return{type:"internal",mode:r.mode}}});Ba({type:"rule",names:["\\rule"],numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"],handler(e,r,i){var a=e.parser,o=i[0],l=gc(r[0],"size"),h=gc(r[1],"size");return{type:"rule",mode:a.mode,shift:o&&gc(o,"size").value,width:l.value,height:h.value}},htmlBuilder(e,r){var i=Ui(["mord","katex-rule"],[],r),a=Jf(e.width,r),o=Jf(e.height,r),l=e.shift?Jf(e.shift,r):0;return i.style.borderRightWidth=oa(a),i.style.borderTopWidth=oa(o),i.style.bottom=oa(l),i.width=a,i.height=o+l,i.depth=-l,i.maxFontSize=o*1.125*r.sizeMultiplier,i},mathmlBuilder(e,r){var i=Jf(e.width,r),a=Jf(e.height,r),o=e.shift?Jf(e.shift,r):0,l=r.color&&r.getColor()||"black",h=new Zi("mspace");h.setAttribute("mathbackground",l),h.setAttribute("width",oa(i)),h.setAttribute("height",oa(a));var d=new Zi("mpadded",[h]);if(o>=0)d.setAttribute("height",oa(o));else d.setAttribute("height",oa(o)),d.setAttribute("depth",oa(-o));return d.setAttribute("voffset",oa(o)),d}});function e1r(e,r,i){var a=Xg(e,r,!1),o=r.sizeMultiplier/i.sizeMultiplier;for(var l=0;l{var i=r.havingSize(e.size);return e1r(e.body,i,r)};Ba({type:"sizing",names:imr,numArgs:0,allowedInText:!0,handler:(e,r)=>{var{breakOnTokenText:i,funcName:a,parser:o}=e,l=o.parseExpression(!1,i);return{type:"sizing",mode:o.mode,size:imr.indexOf(a)+1,body:l}},htmlBuilder:LPn,mathmlBuilder:(e,r)=>{var i=r.havingSize(e.size),a=BE(e.body,i),o=new Zi("mstyle",a);return o.setAttribute("mathsize",oa(i.sizeMultiplier)),o}});Ba({type:"smash",names:["\\smash"],numArgs:1,numOptionalArgs:1,allowedInText:!0,handler:(e,r,i)=>{var a=e.parser,o=!1,l=!1,h=i[0]&&gc(i[0],"ordgroup");if(h){var d;for(var p=0;p{var i=Ui([],[Au(e.body,r)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight)i.height=0;if(e.smashDepth)i.depth=0;if(e.smashHeight&&e.smashDepth)return Ui(["mord","katex-smash"],[i],r);if(i.children)for(var a=0;a{var i=new Zi("mpadded",[Vh(e.body,r)]);if(e.smashHeight)i.setAttribute("height","0px");if(e.smashDepth)i.setAttribute("depth","0px");return i}});Ba({type:"sqrt",names:["\\sqrt"],numArgs:1,numOptionalArgs:1,handler(e,r,i){var a=e.parser,o=i[0],l=r[0];return{type:"sqrt",mode:a.mode,body:l,index:o}},htmlBuilder(e,r){var i=Au(e.body,r.havingCrampedStyle());if(i.height===0)i.height=r.fontMetrics().xHeight;i=OV(i,r);var a=r.fontMetrics(),o=a.defaultRuleThickness,l=o;if(r.style.idi.height+i.depth+h)h=(h+w-i.height-i.depth)/2;var T=m.height-i.height-h-y;i.style.paddingLeft=oa(v);var x=Wu({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+T)},{type:"elem",elem:m},{type:"kern",size:y}]});if(!e.index)return Ui(["mord","sqrt"],[x],r);else{var k=r.havingStyle(ul.SCRIPTSCRIPT),A=Au(e.index,k,r),R=0.6*(x.height-x.depth),N=Wu({positionType:"shift",positionData:-R,children:[{type:"elem",elem:A}]}),L=Ui(["katex-root"],[N]);return Ui(["mord","sqrt"],[L,x],r)}},mathmlBuilder(e,r){var{body:i,index:a}=e;return a?new Zi("mroot",[Vh(i,r),Vh(a,r)]):new Zi("msqrt",[Vh(i,r)])}});var Gje={display:ul.DISPLAY,text:ul.TEXT,script:ul.SCRIPT,scriptscript:ul.SCRIPTSCRIPT};function MPn(e){return e in Gje}Ba({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],numArgs:0,allowedInText:!0,primitive:!0,handler(e,r){var{breakOnTokenText:i,funcName:a,parser:o}=e,l=o.parseExpression(!0,i),h=a.slice(1,a.length-5);if(!MPn(h))throw Error("Unknown style: "+h);return{type:"styling",mode:o.mode,style:h,body:l}},htmlBuilder(e,r){var i=Gje[e.style],a=r.havingStyle(i);if(e.resetFont)a=a.withFont("");return e1r(e.body,a,r)},mathmlBuilder(e,r){var i=Gje[e.style],a=r.havingStyle(i);if(e.resetFont)a=a.withFont("");var o=BE(e.body,a),l=new Zi("mstyle",o),h={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=h[e.style];return l.setAttribute("scriptlevel",d[0]),l.setAttribute("displaystyle",d[1]),l}});var DPn=function(r,i){var a=r.base;if(!a)return null;else if(a.type==="op"){var o=a.limits&&(i.style.size===ul.DISPLAY.size||a.alwaysHandleSupSub);return o?Qmr:null}else if(a.type==="operatorname"){var l=a.alwaysHandleSupSub&&(i.style.size===ul.DISPLAY.size||a.limits);return l?Zmr:null}else if(a.type==="accent")return dR(a.base)?Lmr:null;else if(a.type==="horizBrace"){var h=!r.sub;return h===a.isOver?jmr:null}else return null};_P({type:"supsub",htmlBuilder(e,r){var i=DPn(e,r);if(i)return i(e,r);var{base:a,sup:o,sub:l}=e,h=Au(a,r),d,p,m=r.fontMetrics(),y=0,v=0,w=a&&dR(a);if(o){var T=r.havingStyle(r.style.sup());if(d=Au(o,T,r),!w)y=h.height-T.fontMetrics().supDrop*T.sizeMultiplier/r.sizeMultiplier}if(l){var x=r.havingStyle(r.style.sub());if(p=Au(l,x,r),!w)v=h.depth+x.fontMetrics().subDrop*x.sizeMultiplier/r.sizeMultiplier}var k;if(r.style===ul.DISPLAY)k=m.sup1;else if(r.style.cramped)k=m.sup3;else k=m.sup2;var A=r.sizeMultiplier,R=oa(0.5/m.ptPerEm/A),N=null;if(p){var L=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(h instanceof U_||L){var B;N=oa(-((B=h.italic)!=null?B:0))}}var D;if(d&&p){y=Math.max(y,k,d.depth+0.25*m.xHeight),v=Math.max(v,m.sub2);var P=m.defaultRuleThickness,F=4*P;if(y-d.depth-(p.height-v)0)y+=H,v-=H}var W=[{type:"elem",elem:p,shift:v,marginRight:R,marginLeft:N},{type:"elem",elem:d,shift:-y,marginRight:R}];D=Wu({positionType:"individualShift",children:W})}else if(p){v=Math.max(v,m.sub1,p.height-0.8*m.xHeight);var X=[{type:"elem",elem:p,marginLeft:N,marginRight:R}];D=Wu({positionType:"shift",positionData:v,children:X})}else if(d)y=Math.max(y,k,d.depth+0.25*m.xHeight),D=Wu({positionType:"shift",positionData:-y,children:[{type:"elem",elem:d,marginRight:R}]});else throw Error("supsub must have either sup or sub.");var Q=Pje(h,"right")||"mord";return Ui([Q],[h,Ui(["msupsub"],[D])],r)},mathmlBuilder(e,r){var i=!1,a,o;if(e.base&&e.base.type==="horizBrace"){if(o=!!e.sup,o===e.base.isOver)i=!0,a=e.base.isOver}if(e.base&&(e.base.type==="op"||e.base.type==="operatorname"))e.base.parentIsSupSub=!0;var l=[Vh(e.base,r)];if(e.sub)l.push(Vh(e.sub,r));if(e.sup)l.push(Vh(e.sup,r));var h;if(i)h=a?"mover":"munder";else if(!e.sub){var d=e.base;if(d&&d.type==="op"&&d.limits&&(r.style===ul.DISPLAY||d.alwaysHandleSupSub))h="mover";else if(d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||r.style===ul.DISPLAY))h="mover";else h="msup"}else if(!e.sup){var p=e.base;if(p&&p.type==="op"&&p.limits&&(r.style===ul.DISPLAY||p.alwaysHandleSupSub))h="munder";else if(p&&p.type==="operatorname"&&p.alwaysHandleSupSub&&(p.limits||r.style===ul.DISPLAY))h="munder";else h="msub"}else{var m=e.base;if(m&&m.type==="op"&&m.limits&&r.style===ul.DISPLAY)h="munderover";else if(m&&m.type==="operatorname"&&m.alwaysHandleSupSub&&(r.style===ul.DISPLAY||m.limits))h="munderover";else h="msubsup"}return new Zi(h,l)}});_P({type:"atom",htmlBuilder(e,r){return Wje(e.text,e.mode,r,["m"+e.family])},mathmlBuilder(e,r){var i=new Zi("mo",[US(e.text,e.mode)]);if(e.family==="bin"){var a=Qje(e,r);if(a==="bold-italic")i.setAttribute("mathvariant",a)}else if(e.family==="punct")i.setAttribute("separator","true");else if(e.family==="open"||e.family==="close")i.setAttribute("stretchy","false");return i}});var t1r={mi:"italic",mn:"normal",mtext:"normal"};_P({type:"mathord",htmlBuilder(e,r){return jve(e,r)},mathmlBuilder(e,r){var i=new Zi("mi",[US(e.text,e.mode,r)]),a=Qje(e,r)||"italic";if(a!==t1r[i.type])i.setAttribute("mathvariant",a);return i}});_P({type:"textord",htmlBuilder(e,r){return jve(e,r)},mathmlBuilder(e,r){var i=US(e.text,e.mode,r),a=Qje(e,r)||"normal",o;if(e.mode==="text")o=new Zi("mtext",[i]);else if(/[0-9]/.test(e.text))o=new Zi("mn",[i]);else if(e.text==="\\prime")o=new Zi("mo",[i]);else o=new Zi("mi",[i]);if(a!==t1r[o.type])o.setAttribute("mathvariant",a);return o}});var amr=new Map([["\\nobreak","nobreak"],["\\allowbreak","allowbreak"]]),smr=new Map([[" ",{}],["\\ ",{}],["~",{className:"nobreak"}],["\\space",{}],["\\nobreakspace",{className:"nobreak"}]]);_P({type:"spacing",htmlBuilder(e,r){var i=smr.get(e.text),a=amr.get(e.text);if(i){var o=i.className||"";if(e.mode==="text"){var l=jve(e,r);return l.classes.push(o),l}else return Ui(["mspace",o],[Wje(e.text,e.mode,r)],r)}else if(a)return Ui(["mspace",a],[],r);else throw new Wi('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,r){var i;if(smr.has(e.text))i=new Zi("mtext",[new T0(" ")]);else if(amr.has(e.text))return new Zi("mspace");else throw new Wi('Unknown type of space "'+e.text+'"');return i}});var omr=()=>{var e=new Zi("mtd",[]);return e.setAttribute("width","50%"),e};_P({type:"tag",mathmlBuilder(e,r){var i=new Zi("mtable",[new Zi("mtr",[omr(),new Zi("mtd",[XN(e.body,r)]),omr(),new Zi("mtd",[XN(e.tag,r)])])]);return i.setAttribute("width","100%"),i}});var lmr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},cmr={"\\textbf":"textbf","\\textmd":"textmd"},PPn={"\\textit":"textit","\\textup":"textup"},umr=(e,r)=>{var i=e.font;if(!i)return r;else if(lmr[i])return r.withTextFontFamily(lmr[i]);else if(cmr[i])return r.withTextFontWeight(cmr[i]);else if(i==="\\emph")return r.fontShape==="textit"?r.withTextFontShape("textup"):r.withTextFontShape("textit");return r.withTextFontShape(PPn[i])};Ba({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0,handler(e,r){var{parser:i,funcName:a}=e,o=r[0];return{type:"text",mode:i.mode,body:ag(o),font:a}},htmlBuilder(e,r){var i=umr(e,r),a=Xg(e.body,i,!0);return Ui(["mord","text"],a,i)},mathmlBuilder(e,r){var i=umr(e,r);return XN(e.body,i)}});Ba({type:"underline",names:["\\underline"],numArgs:1,allowedInText:!0,handler(e,r){var i=e.parser;return{type:"underline",mode:i.mode,body:r[0]}},htmlBuilder(e,r){var i=Au(e.body,r),a=IV("underline-line",r),o=r.fontMetrics().defaultRuleThickness,l=Wu({positionType:"top",positionData:i.height,children:[{type:"kern",size:o},{type:"elem",elem:a},{type:"kern",size:3*o},{type:"elem",elem:i}]});return Ui(["mord","katex-underline"],[l],r)},mathmlBuilder(e,r){var i=new Zi("mo",[new T0("‾")]);i.setAttribute("stretchy","true");var a=new Zi("munder",[Vh(e.body,r),i]);return a.setAttribute("accentunder","true"),a}});Ba({type:"vcenter",names:["\\vcenter"],numArgs:1,argTypes:["original"],allowedInText:!1,handler(e,r){var i=e.parser;return{type:"vcenter",mode:i.mode,body:r[0]}},htmlBuilder(e,r){var i=Au(e.body,r),a=r.fontMetrics().axisHeight,o=0.5*(i.height-a-(i.depth+a));return Wu({positionType:"shift",positionData:o,children:[{type:"elem",elem:i}]})},mathmlBuilder(e,r){var i=new Zi("mpadded",[Vh(e.body,r)],["vcenter"]);return new Zi("mrow",[i])}});Ba({type:"verb",names:["\\verb"],numArgs:0,allowedInText:!0,handler(e,r,i){throw new Wi("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,r){var i=hmr(e),a=[],o=r.havingStyle(r.style.text());for(var l=0;le.body.replace(/ /g,e.star?"␣":" "),WN=kmr,r1r=`[ \r + ]`,BPn="\\\\[a-zA-Z@]+",FPn="\\\\[^\uD800-\uDFFF]",$Pn="("+BPn+")"+r1r+"*",UPn=`\\\\( |[ \r ]+ -?)[ \r ]*`,$je="[̀-ͯ]",DPn=new RegExp($je+"+$"),PPn="("+Qmr+"+)|"+(MPn+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+($je+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+($je+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+LPn)+("|"+NPn+")");class Uje{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(PPn,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new DE("EOF",new F_(this,r,r));var i=this.tokenRegex.exec(e);if(i===null||i.index!==r)throw new Wi("Unexpected character: '"+e[r]+"'",new DE(e[r],new F_(this,r,r+1)));var a=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[a]===14){var o=e.indexOf(` -`,this.tokenRegex.lastIndex);if(o===-1)this.tokenRegex.lastIndex=e.length,$_({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0});else this.tokenRegex.lastIndex=o+1;return this.lex()}return new DE(a,new F_(this,r,this.tokenRegex.lastIndex))}}class Zmr{constructor(e,r){if(e===void 0)e={};if(r===void 0)r={};this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Wi("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))if(e[r]===void 0)delete this.current[r];else this.current[r]=e[r]}endGroups(){while(this.undefStack.length>0)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];else if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e];else return}set(e,r,i){if(i===void 0)i=!1;if(i){for(var a=0;a0)this.undefStack[this.undefStack.length-1][e]=r}else{var o=this.undefStack[this.undefStack.length-1];if(o&&!Object.prototype.hasOwnProperty.call(o,e))o[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0}if(r==null)delete this.current[e];else this.current[e]=r}}var BPn=Umr;Tt("\\noexpand",function(e){var r=e.popToken();if(e.isExpandable(r.text))r.noexpand=!0,r.treatAsRelax=!0;return{tokens:[r],numArgs:0}});Tt("\\expandafter",function(e){var r=e.popToken();return e.expandOnce(!0),{tokens:[r],numArgs:0}});Tt("\\@firstoftwo",function(e){var r=e.consumeArgs(2);return{tokens:r[0],numArgs:0}});Tt("\\@secondoftwo",function(e){var r=e.consumeArgs(2);return{tokens:r[1],numArgs:0}});Tt("\\@ifnextchar",function(e){var r=e.consumeArgs(3);e.consumeSpaces();var i=e.future();if(r[0].length===1&&r[0][0].text===i.text)return{tokens:r[1],numArgs:0};else return{tokens:r[2],numArgs:0}});Tt("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");Tt("\\TextOrMath",function(e){var r=e.consumeArgs(2);if(e.mode==="text")return{tokens:r[0],numArgs:0};else return{tokens:r[1],numArgs:0}});var omr={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Tt("\\char",function(e){var r=e.popToken(),i,a=0;if(r.text==="'")i=8,r=e.popToken();else if(r.text==='"')i=16,r=e.popToken();else if(r.text==="`")if(r=e.popToken(),r.text[0]==="\\")a=r.text.charCodeAt(1);else if(r.text==="EOF")throw new Wi("\\char` missing argument");else a=r.text.charCodeAt(0);else i=10;if(i){if(a=omr[r.text],a==null||a>=i)throw new Wi("Invalid base-"+i+" digit "+r.text);var o;while((o=omr[e.future().text])!=null&&o{var o=e.consumeArg().tokens;if(o.length!==1)throw new Wi("\\newcommand's first argument must be a macro name");var l=o[0].text,h=e.isDefined(l);if(h&&!r)throw new Wi("\\newcommand{"+l+"} attempting to redefine "+(l+"; use \\renewcommand"));if(!h&&!i)throw new Wi("\\renewcommand{"+l+"} when command "+l+" does not yet exist; use \\newcommand");var d=0;if(o=e.consumeArg().tokens,o.length===1&&o[0].text==="["){var p="",m=e.expandNextToken();while(m.text!=="]"&&m.text!=="EOF")p+=m.text,m=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new Wi("Invalid number of arguments: "+p);d=parseInt(p),o=e.consumeArg().tokens}if(!(h&&a))e.macros.set(l,{tokens:o,numArgs:d});return""};Tt("\\newcommand",(e)=>Jje(e,!1,!0,!1));Tt("\\renewcommand",(e)=>Jje(e,!0,!1,!1));Tt("\\providecommand",(e)=>Jje(e,!0,!0,!0));Tt("\\message",(e)=>{var r=e.consumeArgs(1)[0];return console.log(r.reverse().map((i)=>i.text).join("")),""});Tt("\\errmessage",(e)=>{var r=e.consumeArgs(1)[0];return console.error(r.reverse().map((i)=>i.text).join("")),""});Tt("\\show",(e)=>{var r=e.popToken(),i=r.text;return console.log(r,e.macros.get(i),qN[i],hf.math[i],hf.text[i]),""});Tt("\\bgroup","{");Tt("\\egroup","}");Tt("~","\\nobreakspace");Tt("\\lq","`");Tt("\\rq","'");Tt("\\aa","\\r a");Tt("\\AA","\\r A");Tt("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");Tt("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");Tt("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");Tt("ℬ","\\mathscr{B}");Tt("ℰ","\\mathscr{E}");Tt("ℱ","\\mathscr{F}");Tt("ℋ","\\mathscr{H}");Tt("ℐ","\\mathscr{I}");Tt("ℒ","\\mathscr{L}");Tt("ℳ","\\mathscr{M}");Tt("ℛ","\\mathscr{R}");Tt("ℭ","\\mathfrak{C}");Tt("ℌ","\\mathfrak{H}");Tt("ℨ","\\mathfrak{Z}");Tt("\\Bbbk","\\Bbb{k}");Tt("\\llap","\\mathllap{\\textrm{#1}}");Tt("\\rlap","\\mathrlap{\\textrm{#1}}");Tt("\\clap","\\mathclap{\\textrm{#1}}");Tt("\\mathstrut","\\vphantom{(}");Tt("\\underbar","\\underline{\\text{#1}}");Tt("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');Tt("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");Tt("\\ne","\\neq");Tt("≠","\\neq");Tt("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}"+"{\\mathrel{\\char`∉}}");Tt("∉","\\notin");Tt("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}"+"}{\\mathrel{\\char`≘}}");Tt("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");Tt("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");Tt("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}"+"{\\mathrel{\\char`≛}}");Tt("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}"+"{\\mathrel{\\char`≝}}");Tt("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}"+"{\\mathrel{\\char`≞}}");Tt("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");Tt("⟂","\\perp");Tt("‼","\\mathclose{!\\mkern-0.8mu!}");Tt("∌","\\notni");Tt("⌜","\\ulcorner");Tt("⌝","\\urcorner");Tt("⌞","\\llcorner");Tt("⌟","\\lrcorner");Tt("©","\\copyright");Tt("®","\\textregistered");Tt("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');Tt("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');Tt("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');Tt("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');Tt("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");Tt("⋮","\\vdots");Tt("\\varGamma","\\mathit{\\Gamma}");Tt("\\varDelta","\\mathit{\\Delta}");Tt("\\varTheta","\\mathit{\\Theta}");Tt("\\varLambda","\\mathit{\\Lambda}");Tt("\\varXi","\\mathit{\\Xi}");Tt("\\varPi","\\mathit{\\Pi}");Tt("\\varSigma","\\mathit{\\Sigma}");Tt("\\varUpsilon","\\mathit{\\Upsilon}");Tt("\\varPhi","\\mathit{\\Phi}");Tt("\\varPsi","\\mathit{\\Psi}");Tt("\\varOmega","\\mathit{\\Omega}");Tt("\\substack","\\begin{subarray}{c}#1\\end{subarray}");Tt("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");Tt("\\boxed","\\fbox{$\\displaystyle{#1}$}");Tt("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");Tt("\\implies","\\DOTSB\\;\\Longrightarrow\\;");Tt("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");Tt("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");Tt("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var lmr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},FPn=new Set(["bin","rel"]);Tt("\\dots",function(e){var r="\\dotso",i=e.expandAfterFuture().text;if(i in lmr)r=lmr[i];else if(i.slice(0,4)==="\\not")r="\\dotsb";else if(i in hf.math){if(FPn.has(hf.math[i].group))r="\\dotsb"}return r});var eKe={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Tt("\\dotso",function(e){var r=e.future().text;if(r in eKe)return"\\ldots\\,";else return"\\ldots"});Tt("\\dotsc",function(e){var r=e.future().text;if(r in eKe&&r!==",")return"\\ldots\\,";else return"\\ldots"});Tt("\\cdots",function(e){var r=e.future().text;if(r in eKe)return"\\@cdots\\,";else return"\\@cdots"});Tt("\\dotsb","\\cdots");Tt("\\dotsm","\\cdots");Tt("\\dotsi","\\!\\cdots");Tt("\\dotsx","\\ldots\\,");Tt("\\DOTSI","\\relax");Tt("\\DOTSB","\\relax");Tt("\\DOTSX","\\relax");Tt("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");Tt("\\,","\\tmspace+{3mu}{.1667em}");Tt("\\thinspace","\\,");Tt("\\>","\\mskip{4mu}");Tt("\\:","\\tmspace+{4mu}{.2222em}");Tt("\\medspace","\\:");Tt("\\;","\\tmspace+{5mu}{.2777em}");Tt("\\thickspace","\\;");Tt("\\!","\\tmspace-{3mu}{.1667em}");Tt("\\negthinspace","\\!");Tt("\\negmedspace","\\tmspace-{4mu}{.2222em}");Tt("\\negthickspace","\\tmspace-{5mu}{.277em}");Tt("\\enspace","\\kern.5em ");Tt("\\enskip","\\hskip.5em\\relax");Tt("\\quad","\\hskip1em\\relax");Tt("\\qquad","\\hskip2em\\relax");Tt("\\tag","\\@ifstar\\tag@literal\\tag@paren");Tt("\\tag@paren","\\tag@literal{({#1})}");Tt("\\tag@literal",(e)=>{if(e.macros.get("\\df@tag"))throw new Wi("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});Tt("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");Tt("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");Tt("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");Tt("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");Tt("\\newline","\\\\\\relax");Tt("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Jmr=oa(Uk["Main-Regular"][84][1]-0.7*Uk["Main-Regular"][65][1]);Tt("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Jmr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");Tt("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Jmr+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");Tt("\\hspace","\\@ifstar\\@hspacer\\@hspace");Tt("\\@hspace","\\hskip #1\\relax");Tt("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");Tt("\\ordinarycolon",":");Tt("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");Tt("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');Tt("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');Tt("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');Tt("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');Tt("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');Tt("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');Tt("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');Tt("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');Tt("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');Tt("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');Tt("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');Tt("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');Tt("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');Tt("∷","\\dblcolon");Tt("∹","\\eqcolon");Tt("≔","\\coloneqq");Tt("≕","\\eqqcolon");Tt("⩴","\\Coloneqq");Tt("\\ratio","\\vcentcolon");Tt("\\coloncolon","\\dblcolon");Tt("\\colonequals","\\coloneqq");Tt("\\coloncolonequals","\\Coloneqq");Tt("\\equalscolon","\\eqqcolon");Tt("\\equalscoloncolon","\\Eqqcolon");Tt("\\colonminus","\\coloneq");Tt("\\coloncolonminus","\\Coloneq");Tt("\\minuscolon","\\eqcolon");Tt("\\minuscoloncolon","\\Eqcolon");Tt("\\coloncolonapprox","\\Colonapprox");Tt("\\coloncolonsim","\\Colonsim");Tt("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Tt("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");Tt("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");Tt("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");Tt("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");Tt("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");Tt("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");Tt("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");Tt("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");Tt("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");Tt("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");Tt("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");Tt("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");Tt("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");Tt("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");Tt("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");Tt("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");Tt("\\nleqq","\\html@mathml{\\@nleqq}{≰}");Tt("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");Tt("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");Tt("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");Tt("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");Tt("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");Tt("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");Tt("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");Tt("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");Tt("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");Tt("\\imath","\\html@mathml{\\@imath}{ı}");Tt("\\jmath","\\html@mathml{\\@jmath}{ȷ}");Tt("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⟦}}");Tt("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}"+"{\\mathclose{\\char`⟧}}");Tt("⟦","\\llbracket");Tt("⟧","\\rrbracket");Tt("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⦃}}");Tt("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}"+"{\\mathclose{\\char`⦄}}");Tt("↤","\\mapsfrom");Tt("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");Tt("⦃","\\lBrace");Tt("⦄","\\rBrace");Tt("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}"+"{\\char`⦵}}");Tt("⦵","\\minuso");Tt("\\darr","\\downarrow");Tt("\\dArr","\\Downarrow");Tt("\\Darr","\\Downarrow");Tt("\\lang","\\langle");Tt("\\rang","\\rangle");Tt("\\uarr","\\uparrow");Tt("\\uArr","\\Uparrow");Tt("\\Uarr","\\Uparrow");Tt("\\N","\\mathbb{N}");Tt("\\R","\\mathbb{R}");Tt("\\Z","\\mathbb{Z}");Tt("\\alef","\\aleph");Tt("\\alefsym","\\aleph");Tt("\\Alpha","\\mathrm{A}");Tt("\\Beta","\\mathrm{B}");Tt("\\bull","\\bullet");Tt("\\Chi","\\mathrm{X}");Tt("\\clubs","\\clubsuit");Tt("\\cnums","\\mathbb{C}");Tt("\\Complex","\\mathbb{C}");Tt("\\Dagger","\\ddagger");Tt("\\diamonds","\\diamondsuit");Tt("\\empty","\\emptyset");Tt("\\Epsilon","\\mathrm{E}");Tt("\\Eta","\\mathrm{H}");Tt("\\exist","\\exists");Tt("\\harr","\\leftrightarrow");Tt("\\hArr","\\Leftrightarrow");Tt("\\Harr","\\Leftrightarrow");Tt("\\hearts","\\heartsuit");Tt("\\image","\\Im");Tt("\\infin","\\infty");Tt("\\Iota","\\mathrm{I}");Tt("\\isin","\\in");Tt("\\Kappa","\\mathrm{K}");Tt("\\larr","\\leftarrow");Tt("\\lArr","\\Leftarrow");Tt("\\Larr","\\Leftarrow");Tt("\\lrarr","\\leftrightarrow");Tt("\\lrArr","\\Leftrightarrow");Tt("\\Lrarr","\\Leftrightarrow");Tt("\\Mu","\\mathrm{M}");Tt("\\natnums","\\mathbb{N}");Tt("\\Nu","\\mathrm{N}");Tt("\\Omicron","\\mathrm{O}");Tt("\\plusmn","\\pm");Tt("\\rarr","\\rightarrow");Tt("\\rArr","\\Rightarrow");Tt("\\Rarr","\\Rightarrow");Tt("\\real","\\Re");Tt("\\reals","\\mathbb{R}");Tt("\\Reals","\\mathbb{R}");Tt("\\Rho","\\mathrm{P}");Tt("\\sdot","\\cdot");Tt("\\sect","\\S");Tt("\\spades","\\spadesuit");Tt("\\sub","\\subset");Tt("\\sube","\\subseteq");Tt("\\supe","\\supseteq");Tt("\\Tau","\\mathrm{T}");Tt("\\thetasym","\\vartheta");Tt("\\weierp","\\wp");Tt("\\Zeta","\\mathrm{Z}");Tt("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");Tt("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");Tt("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");Tt("\\bra","\\mathinner{\\langle{#1}|}");Tt("\\ket","\\mathinner{|{#1}\\rangle}");Tt("\\braket","\\mathinner{\\langle{#1}\\rangle}");Tt("\\Bra","\\left\\langle#1\\right|");Tt("\\Ket","\\left|#1\\right\\rangle");var e1r=(e)=>(r)=>{var i=r.consumeArg().tokens,a=r.consumeArg().tokens,o=r.consumeArg().tokens,l=r.consumeArg().tokens,h=r.macros.get("|"),d=r.macros.get("\\|");r.macros.beginGroup();var p=(E)=>(w)=>{if(e){if(w.macros.set("|",h),o.length)w.macros.set("\\|",d)}var T=E;if(!E&&o.length){var x=w.future();if(x.text==="|")w.popToken(),T=!0}return{tokens:T?o:a,numArgs:0}};if(r.macros.set("|",p(!1)),o.length)r.macros.set("\\|",p(!0));var m=r.consumeArg().tokens,y=r.expandTokens([...l,...m,...i]);return r.macros.endGroup(),{tokens:y.reverse(),numArgs:0}};Tt("\\bra@ket",e1r(!1));Tt("\\bra@set",e1r(!0));Tt("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");Tt("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");Tt("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");Tt("\\angln","{\\angl n}");Tt("\\blue","\\textcolor{##6495ed}{#1}");Tt("\\orange","\\textcolor{##ffa500}{#1}");Tt("\\pink","\\textcolor{##ff00af}{#1}");Tt("\\red","\\textcolor{##df0030}{#1}");Tt("\\green","\\textcolor{##28ae7b}{#1}");Tt("\\gray","\\textcolor{gray}{#1}");Tt("\\purple","\\textcolor{##9d38bd}{#1}");Tt("\\blueA","\\textcolor{##ccfaff}{#1}");Tt("\\blueB","\\textcolor{##80f6ff}{#1}");Tt("\\blueC","\\textcolor{##63d9ea}{#1}");Tt("\\blueD","\\textcolor{##11accd}{#1}");Tt("\\blueE","\\textcolor{##0c7f99}{#1}");Tt("\\tealA","\\textcolor{##94fff5}{#1}");Tt("\\tealB","\\textcolor{##26edd5}{#1}");Tt("\\tealC","\\textcolor{##01d1c1}{#1}");Tt("\\tealD","\\textcolor{##01a995}{#1}");Tt("\\tealE","\\textcolor{##208170}{#1}");Tt("\\greenA","\\textcolor{##b6ffb0}{#1}");Tt("\\greenB","\\textcolor{##8af281}{#1}");Tt("\\greenC","\\textcolor{##74cf70}{#1}");Tt("\\greenD","\\textcolor{##1fab54}{#1}");Tt("\\greenE","\\textcolor{##0d923f}{#1}");Tt("\\goldA","\\textcolor{##ffd0a9}{#1}");Tt("\\goldB","\\textcolor{##ffbb71}{#1}");Tt("\\goldC","\\textcolor{##ff9c39}{#1}");Tt("\\goldD","\\textcolor{##e07d10}{#1}");Tt("\\goldE","\\textcolor{##a75a05}{#1}");Tt("\\redA","\\textcolor{##fca9a9}{#1}");Tt("\\redB","\\textcolor{##ff8482}{#1}");Tt("\\redC","\\textcolor{##f9685d}{#1}");Tt("\\redD","\\textcolor{##e84d39}{#1}");Tt("\\redE","\\textcolor{##bc2612}{#1}");Tt("\\maroonA","\\textcolor{##ffbde0}{#1}");Tt("\\maroonB","\\textcolor{##ff92c6}{#1}");Tt("\\maroonC","\\textcolor{##ed5fa6}{#1}");Tt("\\maroonD","\\textcolor{##ca337c}{#1}");Tt("\\maroonE","\\textcolor{##9e034e}{#1}");Tt("\\purpleA","\\textcolor{##ddd7ff}{#1}");Tt("\\purpleB","\\textcolor{##c6b9fc}{#1}");Tt("\\purpleC","\\textcolor{##aa87ff}{#1}");Tt("\\purpleD","\\textcolor{##7854ab}{#1}");Tt("\\purpleE","\\textcolor{##543b78}{#1}");Tt("\\mintA","\\textcolor{##f5f9e8}{#1}");Tt("\\mintB","\\textcolor{##edf2df}{#1}");Tt("\\mintC","\\textcolor{##e0e5cc}{#1}");Tt("\\grayA","\\textcolor{##f6f7f7}{#1}");Tt("\\grayB","\\textcolor{##f0f1f2}{#1}");Tt("\\grayC","\\textcolor{##e3e5e6}{#1}");Tt("\\grayD","\\textcolor{##d6d8da}{#1}");Tt("\\grayE","\\textcolor{##babec2}{#1}");Tt("\\grayF","\\textcolor{##888d93}{#1}");Tt("\\grayG","\\textcolor{##626569}{#1}");Tt("\\grayH","\\textcolor{##3b3e40}{#1}");Tt("\\grayI","\\textcolor{##21242c}{#1}");Tt("\\kaBlue","\\textcolor{##314453}{#1}");Tt("\\kaGreen","\\textcolor{##71B307}{#1}");var t1r={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class r1r{constructor(e,r,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new Zmr(BPn,r.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new Uje(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){if(this.stack.length===0)this.pushToken(this.lexer.lex());return this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,i,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var o=this.consumeArg(["]"]);a=o.tokens,i=o.end}else{var l=this.consumeArg();a=l.tokens,r=l.start,i=l.end}return this.pushToken(new DE("EOF",i.loc)),this.pushTokens(a),new DE("",F_.range(r,i))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],i=e&&e.length>0;if(!i)this.consumeSpaces();var a=this.future(),o,l=0,h=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++l;else if(o.text==="}"){if(--l,l===-1)throw new Wi("Extra }",o)}else if(o.text==="EOF")throw new Wi("Unexpected end of input in a macro argument, expected '"+(e&&i?e[h]:"}")+"'",o);if(e&&i)if((l===0||l===1&&e[h]==="{")&&o.text===e[h]){if(++h,h===e.length){r.splice(-h,h);break}}else h=0}while(l!==0||i);if(a.text==="{"&&r[r.length-1].text==="}")r.pop(),r.shift();return r.reverse(),{tokens:r,start:a,end:o}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Wi("The length of delimiters doesn't match the number of args!");var i=r[0];for(var a=0;athis.settings.maxExpand)throw new Wi("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),i=r.text,a=!r.noexpand?this._getExpansion(i):null;if(a==null||e&&a.unexpandable){if(e&&a==null&&i[0]==="\\"&&!this.isDefined(i))throw new Wi("Undefined control sequence: "+i);return this.pushToken(r),!1}this.countExpansion(1);var o=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(var h=o.length-1;h>=0;--h){var d=o[h];if(d.text==="#"){if(h===0)throw new Wi("Incomplete placeholder at end of macro body",d);if(d=o[--h],d.text==="#")o.splice(h+1,1);else if(/^[1-9]$/.test(d.text))o.splice(h,2,...l[+d.text-1]);else throw new Wi("Not a valid argument number",d)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();if(e.treatAsRelax)e.text="\\relax";return e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new DE(e)]):void 0}expandTokens(e){var r=[],i=this.stack.length;this.pushTokens(e);while(this.stack.length>i)if(this.expandOnce(!0)===!1){var a=this.stack.pop();if(a.treatAsRelax)a.noexpand=!1,a.treatAsRelax=!1;r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);if(r)return r.map((i)=>i.text).join("");else return r}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var i=this.lexer.catcodes[e];if(i!=null&&i!==13)return}var a=typeof r==="function"?r(this):r;if(typeof a==="string"){var o=0;if(a.includes("#")){var l=a.replace(/##/g,"");while(l.includes("#"+(o+1)))++o}var h=new Uje(a,this.settings),d=[],p=h.lex();while(p.text!=="EOF")d.push(p),p=h.lex();d.reverse();var m={tokens:d,numArgs:o};return m}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(qN,e)||Object.prototype.hasOwnProperty.call(hf.math,e)||Object.prototype.hasOwnProperty.call(hf.text,e)||Object.prototype.hasOwnProperty.call(t1r,e)}isExpandable(e){var r=this.macros.get(e);if(r!=null)return typeof r==="string"||typeof r==="function"||!r.unexpandable;return Object.prototype.hasOwnProperty.call(qN,e)&&!qN[e].primitive}}var cmr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Dve=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Eje={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:"\\\"",math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},umr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class Jve{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new r1r(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0)r=!0;if(this.fetch().text!==e)throw new Wi("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());if(r)this.consume()}consume(){this.nextToken=null}fetch(){if(this.nextToken==null)this.nextToken=this.gullet.expandNextToken();return this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){if(!this.settings.globalGroup)this.gullet.beginGroup();if(this.settings.colorIsTextColor)this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);if(this.expect("EOF"),!this.settings.globalGroup)this.gullet.endGroup();return e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new DE("}")),this.gullet.pushTokens(e);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,i}parseExpression(e,r){var i=[];while(!0){if(this.mode==="math")this.consumeSpaces();var a=this.fetch();if(Jve.endOfExpression.has(a.text))break;if(r&&a.text===r)break;if(e&&qN[a.text]&&qN[a.text].infix)break;var o=this.parseAtom(r);if(!o)break;else if(o.type==="internal")continue;i.push(o)}if(this.mode==="text")this.formLigatures(i);return this.handleInfixNodes(i)}handleInfixNodes(e){var r=-1,i;for(var a=0;a=128){if(this.settings.strict){if(!hmr(r.charCodeAt(0)))$_({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e});else if(this.mode==="math")$_({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e})}l={type:"textord",mode:"text",loc:F_.range(e),text:r}}else return null;if(this.consume(),o)for(var m=0;m0?nI(Yq,--cT):0,Hq--,mg===10)Hq=1,uxe--;return mg}function uT(){if(mg=cT2||qq(mg)>3?"":" "}function A9r(e,r){while(--r&&uT())if(mg<48||mg>102||mg>57&&mg<65||mg>70&&mg<97)break;return dxe(e,xae()+(r<6&&aI()==32&&uT()==32))}function Bot(e){while(uT())switch(mg){case e:return cT;case 34:case 39:if(e!==34&&e!==39)Bot(mg);break;case 40:if(e===41)Bot(e);break;case 92:uT();break}return cT}function R9r(e,r){while(uT())if(e+mg===57)break;else if(e+mg===84&&aI()===47)break;return"/*"+dxe(r,cT-1)+"*"+NB(e===47?e:uT())}function I9r(e){while(!qq(aI()))uT();return dxe(e,cT)}function L9r(e){return C9r(pxe("",null,null,null,[""],e=x9r(e),0,[0],e))}function pxe(e,r,i,a,o,l,h,d,p){var m=0,y=0,E=h,w=0,T=0,x=0,k=1,A=1,R=1,N=0,L=0,B="",D=o,P=l,F=a,H=B;while(A)switch(x=L,L=uT()){case 40:if(x!=108&&nI(H,E-1)==58)N++,H+="(";else H+=fxe(L);break;case 41:N--,H+=")";break;case 34:case 39:case 91:H+=fxe(L);break;case 9:case 10:case 13:case 32:if(N>0){H+=NB(L);break}H+=k9r(x);break;case 92:H+=A9r(xae()-1,7);continue;case 47:switch(aI()){case 42:case 47:if(Vq(Yhi(R9r(uT(),xae()),r,i,p),p),(qq(x||1)==5||qq(aI()||1)==5)&&s2(H)&&iI(H,-1,void 0)!==" ")H+=" ";break;default:H+="/"}break;case 123*k:d[m++]=s2(H)*R;case 125*k:case 59:case 0:if(N>0&&L){H+=NB(L);break}switch(L){case 0:case 125:A=0;case 59+y:if(R==-1)H=Tae(H,/\f/g,"");if(T>0&&(s2(H)-E||k===0))Vq(T>32?N9r(H+";",a,i,E-1,p):N9r(Tae(H," ","")+";",a,i,E-2,p),p);break;case 59:H+=";";default:if(Vq(F=O9r(H,r,i,m,y,o,d,B,D=[],P=[],E,l),l),L===123)if(y===0)pxe(H,r,F,F,D,l,E,d,P);else{switch(w){case 99:if(nI(H,3)===110)break;case 108:if(nI(H,2)===97)break;default:y=0;case 100:case 109:case 115:}if(y)pxe(e,F,F,a&&Vq(O9r(e,F,F,0,0,o,d,B,o,D=[],E,P),P),o,P,E,d,a?D:P);else pxe(H,F,F,F,[""],P,0,d,P)}}m=y=T=0,k=R=1,B=H="",E=h;break;case 58:E=1+s2(H),T=x;default:if(k<1){if(L==123)--k;else if(L==125&&k++==0&&T9r()==125)continue}switch(H+=NB(L),L*k){case 38:R=y>0?1:(H+="\f",-1);break;case 44:if(N>0)break;d[m++]=(s2(H)-1)*R,R=1;break;case 64:if(aI()===45)H+=fxe(uT());w=aI(),y=E=s2(B=H+=I9r(xae())),L++;break;case 45:if(x===45&&s2(H)==2)k=0}}return l}function O9r(e,r,i,a,o,l,h,d,p,m,y,E){var w=o-1,T=o===0?l:[""],x=cxe(T);for(var k=0,A=0,R=0;k0?T[N]+" "+L:Tae(L,/&\f/g,T[N])))p[R++]=B;return hxe(e,r,i,o===0?axe:d,p,m,y,E)}function Yhi(e,r,i,a){return hxe(e,r,i,zq,NB(S9r()),iI(e,2,-2),0,a)}function N9r(e,r,i,a,o){return hxe(e,r,i,sxe,iI(e,0,a),iI(e,a+1,-1),a,o)}function gxe(e,r){var i="";for(var a=0;a/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),x5i=I(async()=>{await Promise.resolve().then(() => J9r());return{id:zen,diagram:Z9r}},"loader"),C5i={id:zen,detector:T5i,loader:x5i},k5i=C5i,Ven="flowchart-v2",A5i=I((e)=>/^\s*(graph|flowchart)/.test(e),"detector"),R5i=I(async()=>{await Promise.resolve().then(() => Kot());return{id:Ven,diagram:Iae}},"loader"),I5i={id:Ven,detector:A5i,loader:R5i},O5i=I5i,Hen="agentflow",N5i=I((e)=>/^\s*agentflow-beta\b/.test(e),"detector"),L5i=I(async()=>{await Promise.resolve().then(() => fPr());return{id:Hen,diagram:dPr}},"loader"),M5i={id:Hen,detector:N5i,loader:L5i},D5i=M5i,qen="swimlane",P5i=I((e)=>/^\s*swimlane-beta\b/.test(e),"detector"),B5i=I(async()=>{await Promise.resolve().then(() => gPr());return{id:qen,diagram:pPr}},"loader"),F5i={id:qen,detector:P5i,loader:B5i},$5i=F5i,Yen="er",U5i=I((e)=>/^\s*erDiagram/.test(e),"detector"),G5i=I(async()=>{await Promise.resolve().then(() => vPr());return{id:Yen,diagram:yPr}},"loader"),z5i={id:Yen,detector:U5i,loader:G5i},V5i=z5i,Wen="gitGraph",H5i=I((e)=>/^\s*gitGraph/.test(e),"detector"),q5i=I(async()=>{await Promise.resolve().then(() => vqr());return{id:Wen,diagram:yqr}},"loader"),Y5i={id:Wen,detector:H5i,loader:q5i},W5i=Y5i,jen="gantt",j5i=I((e)=>/^\s*gantt/.test(e),"detector"),K5i=I(async()=>{await Promise.resolve().then(() => Vqr());return{id:jen,diagram:zqr}},"loader"),X5i={id:jen,detector:j5i,loader:K5i},Q5i=X5i,Ken="info",Z5i=I((e)=>/^\s*info/.test(e),"detector"),J5i=I(async()=>{await Promise.resolve().then(() => qqr());return{id:Ken,diagram:Hqr}},"loader"),eRi={id:Ken,detector:Z5i,loader:J5i},Xen="pie",tRi=I((e)=>/^\s*pie/.test(e),"detector"),rRi=I(async()=>{await Promise.resolve().then(() => Kqr());return{id:Xen,diagram:jqr}},"loader"),nRi={id:Xen,detector:tRi,loader:rRi},Qen="quadrantChart",iRi=I((e)=>/^\s*quadrantChart/.test(e),"detector"),aRi=I(async()=>{await Promise.resolve().then(() => dYr());return{id:Qen,diagram:hYr}},"loader"),sRi={id:Qen,detector:iRi,loader:aRi},oRi=sRi,Zen="xychart",lRi=I((e)=>/^\s*xychart(-beta)?/.test(e),"detector"),cRi=I(async()=>{await Promise.resolve().then(() => MYr());return{id:Zen,diagram:LYr}},"loader"),uRi={id:Zen,detector:lRi,loader:cRi},hRi=uRi,Jen="requirement",dRi=I((e)=>/^\s*requirement(Diagram)?/.test(e),"detector"),fRi=I(async()=>{await Promise.resolve().then(() => BYr());return{id:Jen,diagram:PYr}},"loader"),pRi={id:Jen,detector:dRi,loader:fRi},gRi=pRi,etn="sequence",mRi=I((e)=>/^\s*sequenceDiagram/.test(e),"detector"),bRi=I(async()=>{await Promise.resolve().then(() => tWr());return{id:etn,diagram:eWr}},"loader"),yRi={id:etn,detector:mRi,loader:bRi},vRi=yRi,ttn="classDiagram",_Ri=I((e)=>/^\s*classDiagram/.test(e),"detector"),ERi=I(async()=>{await Promise.resolve().then(() => sWr());return{id:ttn,diagram:aWr}},"loader"),wRi={id:ttn,detector:_Ri,loader:ERi},SRi=wRi,rtn="stateDiagram",TRi=I((e)=>/^\s*stateDiagram/.test(e),"detector"),xRi=I(async()=>{await Promise.resolve().then(() => AWr());return{id:rtn,diagram:kWr}},"loader"),CRi={id:rtn,detector:TRi,loader:xRi},kRi=CRi,ntn="journey",ARi=I((e)=>/^\s*journey/.test(e),"detector"),RRi=I(async()=>{await Promise.resolve().then(() => FWr());return{id:ntn,diagram:BWr}},"loader"),IRi={id:ntn,detector:ARi,loader:RRi},ORi=IRi,iAe=4,ole=75,NRi=I((e)=>{let r=[];for(let o of e.split(/\s+/)){let l=[...o];while(l.length>ole)r.push(l.slice(0,ole).join("")),l=l.slice(ole);if(l.length>0)r.push(l.join(""))}let i=[],a="";for(let o of r){let l=a?`${a} ${o}`:o;if([...l].length>ole)i.push(a),a=o;else a=l}if(a)i.push(a);if(i.length>iAe){i.length=iAe;let o=i[iAe-1]??"";i[iAe-1]=`${[...o].slice(0,ole-3).join("")}...`}return i},"wrapErrorMessage"),LRi=I((e,r,i,a)=>{Ze.debug(`rendering svg for syntax error -`);let o=Ou(r),l=o.append("g"),h=NRi(a?.db.getErrorMessage?.()??""),d=h.length>0?500+h.length*56:512;o.attr("viewBox",`0 0 2412 ${d}`),Bl(o,100,d,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`),h.forEach((p,m)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+m*56).attr("font-size","42px").style("text-anchor","middle").text(p)})},"draw"),itn={draw:LRi},MRi=itn,mgt,DRi={clear(){mgt=void 0},setErrorMessage(e){mgt=e},getErrorMessage(){return mgt}},PRi={db:DRi,renderer:itn,parser:{parse:I(()=>{return},"parse")}},BRi=PRi,atn="flowchart-elk",FRi=I((e,r={})=>{if(/^\s*flowchart-elk/.test(e))return r.layout="elk",!0;return!1},"detector"),$Ri=I(async()=>{await Promise.resolve().then(() => Kot());return{id:atn,diagram:Iae}},"loader"),URi={id:atn,detector:FRi,loader:$Ri},GRi=URi,stn="timeline",zRi=I((e)=>/^\s*timeline/.test(e),"detector"),VRi=I(async()=>{await Promise.resolve().then(() => cjr());return{id:stn,diagram:ljr}},"loader"),HRi={id:stn,detector:zRi,loader:VRi},qRi=HRi,otn="mindmap",YRi=I((e)=>/^\s*mindmap/.test(e),"detector"),WRi=I(async()=>{await Promise.resolve().then(() => bjr());return{id:otn,diagram:mjr}},"loader"),jRi={id:otn,detector:YRi,loader:WRi},KRi=jRi,ltn="kanban",XRi=I((e)=>/^\s*kanban/.test(e),"detector"),QRi=I(async()=>{await Promise.resolve().then(() => _jr());return{id:ltn,diagram:vjr}},"loader"),ZRi={id:ltn,detector:XRi,loader:QRi},JRi=ZRi,ctn="sankey",eIi=I((e)=>/^\s*sankey(-beta)?/.test(e),"detector"),tIi=I(async()=>{await Promise.resolve().then(() => $jr());return{id:ctn,diagram:Fjr}},"loader"),rIi={id:ctn,detector:eIi,loader:tIi},nIi=rIi,utn="packet",iIi=I((e)=>/^\s*packet(-beta)?/.test(e),"detector"),aIi=I(async()=>{await Promise.resolve().then(() => Vjr());return{id:utn,diagram:zjr}},"loader"),sIi={id:utn,detector:iIi,loader:aIi},htn="radar",oIi=I((e)=>/^\s*radar-beta/.test(e),"detector"),lIi=I(async()=>{await Promise.resolve().then(() => Qjr());return{id:htn,diagram:Xjr}},"loader"),cIi={id:htn,detector:oIi,loader:lIi},dtn="block",uIi=I((e)=>/^\s*block(-beta)?/.test(e),"detector"),hIi=I(async()=>{await Promise.resolve().then(() => bKr());return{id:dtn,diagram:mKr}},"loader"),dIi={id:dtn,detector:uIi,loader:hIi},fIi=dIi,ftn="treeView",pIi=I((e)=>/^\s*treeView-beta/.test(e),"detector"),gIi=I(async()=>{await Promise.resolve().then(() => IKr());return{id:ftn,diagram:RKr}},"loader"),mIi={id:ftn,detector:pIi,loader:gIi},bIi=mIi,ptn="architecture",yIi=I((e)=>/^\s*architecture/.test(e),"detector"),vIi=I(async()=>{await Promise.resolve().then(() => KKr());return{id:ptn,diagram:jKr}},"loader"),_Ii={id:ptn,detector:yIi,loader:vIi},EIi=_Ii,gtn="eventmodeling",wIi=I((e)=>/^\s*eventmodeling/.test(e),"detector"),SIi=I(async()=>{await Promise.resolve().then(() => TXr());return{id:gtn,diagram:SXr}},"loader"),TIi={id:gtn,detector:wIi,loader:SIi},xIi=TIi,mtn="ishikawa",CIi=I((e)=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),kIi=I(async()=>{await Promise.resolve().then(() => LXr());return{id:mtn,diagram:NXr}},"loader"),AIi={id:mtn,detector:CIi,loader:kIi},btn="venn",RIi=I((e)=>/^\s*venn-beta/.test(e),"detector"),IIi=I(async()=>{await Promise.resolve().then(() => iQr());return{id:btn,diagram:nQr}},"loader"),OIi={id:btn,detector:RIi,loader:IIi},NIi=OIi,ytn="treemap",LIi=I((e)=>/^\s*treemap/.test(e),"detector"),MIi=I(async()=>{await Promise.resolve().then(() => cQr());return{id:ytn,diagram:lQr}},"loader"),DIi={id:ytn,detector:LIi,loader:MIi},vtn="usecase",PIi=I((e)=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),BIi=I(async()=>{await Promise.resolve().then(() => HJr());return{id:vtn,diagram:VJr}},"loader"),FIi={id:vtn,detector:PIi,loader:BIi},_tn="wardley",$Ii=I((e)=>/^\s*wardley-beta/i.test(e),"detector"),UIi=I(async()=>{await Promise.resolve().then(() => hen());return{id:_tn,diagram:uen}},"loader"),GIi={id:_tn,detector:$Ii,loader:UIi},zIi=GIi,Etn="cynefin",VIi=I((e)=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),HIi=I(async()=>{await Promise.resolve().then(() => Een());return{id:Etn,diagram:_en}},"loader"),qIi={id:Etn,detector:VIi,loader:HIi},wtn="railroad",YIi=I((e)=>/^\s*railroad-beta/i.test(e),"detector"),WIi=I(async()=>{await Promise.resolve().then(() => Aen());return{id:wtn,diagram:ken}},"loader"),jIi={id:wtn,detector:YIi,loader:WIi},Stn="railroadEbnf",KIi=I((e)=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),XIi=I(async()=>{await Promise.resolve().then(() => Oen());return{id:Stn,diagram:Ien}},"loader"),QIi={id:Stn,detector:KIi,loader:XIi},Ttn="railroadAbnf",ZIi=I((e)=>/^\s*railroad-abnf-beta/i.test(e),"detector"),JIi=I(async()=>{await Promise.resolve().then(() => Len());return{id:Ttn,diagram:Nen}},"loader"),e6i={id:Ttn,detector:ZIi,loader:JIi},xtn="railroadPeg",t6i=I((e)=>/^\s*railroad-peg-beta/i.test(e),"detector"),r6i=I(async()=>{await Promise.resolve().then(() => Ben());return{id:xtn,diagram:Pen}},"loader"),n6i={id:xtn,detector:t6i,loader:r6i},Fen=!1,oAe=I(()=>{if(Fen)return;Fen=!0,Lre("error",BRi,(e)=>e.toLowerCase().trim()==="error"),Lre("---",{db:{clear:I(()=>{},"clear")},styles:{},renderer:{draw:I(()=>{},"draw")},parser:{parse:I(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:I(()=>null,"init")},(e)=>e.toLowerCase().trimStart().startsWith("---")),U_e(GRi,KRi,EIi),U_e(D5i,k5i,JRi,SRi,V5i,Q5i,eRi,nRi,gRi,vRi,$5i,O5i,qRi,W5i,kRi,ORi,oRi,nIi,sIi,hRi,fIi,xIi,bIi,cIi,AIi,DIi,jIi,QIi,e6i,n6i,NIi,zIi,qIi,FIi)},"addDiagrams"),i6i=I(async()=>{Ze.debug("Loading registered diagrams");let r=(await Promise.allSettled(Object.entries(iL).map(async([i,{detector:a,loader:o}])=>{if(!o)return;try{q_e(i)}catch{try{let{diagram:l,id:h}=await o();Lre(h,l,a)}catch(l){throw Ze.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete iL[i],l}}}))).filter((i)=>i.status==="rejected");if(r.length>0){Ze.error(`Failed to load ${r.length} external diagrams`);for(let i of r)Ze.error(i);throw Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams"),a6i="graphics-document document";function Ctn(e,r){if(e.attr("role",a6i),r!=="")e.attr("aria-roledescription",r)}I(Ctn,"setA11yDiagramInfo");function ktn(e,r,i,a){if(e.insert===void 0)return;if(i){let o=`chart-desc-${a}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(i)}if(r){let o=`chart-title-${a}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(r)}}I(ktn,"addSVGa11yTitleDescription");var aAe=class e{constructor(r,i,a,o,l){this.type=r,this.text=i,this.db=a,this.parser=o,this.renderer=l}static{I(this,"Diagram")}static async fromText(r,i={}){let a=typeof r==="string"?{raw:r,cleaned:r}:r,o=ea(),l=zV(a.cleaned,o);try{q_e(l)}catch{let w=Hyr(l);if(!w)throw new mXe(`Diagram ${l} not found.`);let{id:T,diagram:x}=await w();Lre(T,x)}let{db:h,parser:d,renderer:p,init:m}=q_e(l);if(d.parser)d.parser.yy=h;if(h.clear?.(),m?.(o),i.title)h.setDiagramTitle?.(i.title);let y=a.cleaned;if(h.preserveCommentsWhenParsing&&a.withComments){let w=o.maxTextSize??Fs.maxTextSize;if(a.withComments.length>w)Ze.warn(`Comment-preserving source exceeds maxTextSize (${a.withComments.length} > ${w}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`);else y=a.withComments}let E=PSr(y)+` -`;if(a.frontmatterLineOffset)h.setFrontmatterLineOffset?.(a.frontmatterLineOffset);return await d.parse(E),new e(l,E,h,d,p)}async render(r,i){await this.renderer.draw(this.text,r,i,this)}getParser(){return this.parser}getType(){return this.type}},$en=[],s6i=I(()=>{$en.forEach((e)=>{e()}),$en=[]},"attachFunctions"),o6i=I((e)=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Atn(e){let r=gXe(e);if(!r)return{text:e,metadata:{}};let i=r.indent,a=i?r.body.split(` +?)[ \r ]*`,zje="[̀-ͯ]",GPn=new RegExp(zje+"+$"),zPn="("+r1r+"+)|"+(UPn+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(zje+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(zje+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+$Pn)+("|"+FPn+")");class Vje{constructor(e,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=r,this.tokenRegex=new RegExp(zPn,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,r){this.catcodes[e]=r}lex(){var e=this.input,r=this.tokenRegex.lastIndex;if(r===e.length)return new DE("EOF",new F_(this,r,r));var i=this.tokenRegex.exec(e);if(i===null||i.index!==r)throw new Wi("Unexpected character: '"+e[r]+"'",new DE(e[r],new F_(this,r,r+1)));var a=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[a]===14){var o=e.indexOf(` +`,this.tokenRegex.lastIndex);if(o===-1)this.tokenRegex.lastIndex=e.length,$_({strict:this.settings.strict,errorCode:"commentAtEnd",errorMsg:"% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)",report:!0});else this.tokenRegex.lastIndex=o+1;return this.lex()}return new DE(a,new F_(this,r,this.tokenRegex.lastIndex))}}class n1r{constructor(e,r){if(e===void 0)e={};if(r===void 0)r={};this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Wi("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var r of Object.keys(e))if(e[r]===void 0)delete this.current[r];else this.current[r]=e[r]}endGroups(){while(this.undefStack.length>0)this.endGroup()}has(e){return Object.prototype.hasOwnProperty.call(this.current,e)||Object.prototype.hasOwnProperty.call(this.builtins,e)}get(e){if(Object.prototype.hasOwnProperty.call(this.current,e))return this.current[e];else if(Object.prototype.hasOwnProperty.call(this.builtins,e))return this.builtins[e];else return}set(e,r,i){if(i===void 0)i=!1;if(i){for(var a=0;a0)this.undefStack[this.undefStack.length-1][e]=r}else{var o=this.undefStack[this.undefStack.length-1];if(o&&!Object.prototype.hasOwnProperty.call(o,e))o[e]=Object.prototype.hasOwnProperty.call(this.current,e)?this.current[e]:void 0}if(r==null)delete this.current[e];else this.current[e]=r}}var VPn=qmr;St("\\noexpand",function(e){var r=e.popToken();if(e.isExpandable(r.text))r.noexpand=!0,r.treatAsRelax=!0;return{tokens:[r],numArgs:0}});St("\\expandafter",function(e){var r=e.popToken();return e.expandOnce(!0),{tokens:[r],numArgs:0}});St("\\@firstoftwo",function(e){var r=e.consumeArgs(2);return{tokens:r[0],numArgs:0}});St("\\@secondoftwo",function(e){var r=e.consumeArgs(2);return{tokens:r[1],numArgs:0}});St("\\@ifnextchar",function(e){var r=e.consumeArgs(3);e.consumeSpaces();var i=e.future();if(r[0].length===1&&r[0][0].text===i.text)return{tokens:r[1],numArgs:0};else return{tokens:r[2],numArgs:0}});St("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");St("\\TextOrMath",function(e){var r=e.consumeArgs(2);if(e.mode==="text")return{tokens:r[0],numArgs:0};else return{tokens:r[1],numArgs:0}});var dmr={"0":0,"1":1,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"8":8,"9":9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};St("\\char",function(e){var r=e.popToken(),i,a=0;if(r.text==="'")i=8,r=e.popToken();else if(r.text==='"')i=16,r=e.popToken();else if(r.text==="`")if(r=e.popToken(),r.text[0]==="\\")a=r.text.charCodeAt(1);else if(r.text==="EOF")throw new Wi("\\char` missing argument");else a=r.text.charCodeAt(0);else i=10;if(i){if(a=dmr[r.text],a==null||a>=i)throw new Wi("Invalid base-"+i+" digit "+r.text);var o;while((o=dmr[e.future().text])!=null&&o{var o=e.consumeArg().tokens;if(o.length!==1)throw new Wi("\\newcommand's first argument must be a macro name");var l=o[0].text,h=e.isDefined(l);if(h&&!r)throw new Wi("\\newcommand{"+l+"} attempting to redefine "+(l+"; use \\renewcommand"));if(!h&&!i)throw new Wi("\\renewcommand{"+l+"} when command "+l+" does not yet exist; use \\newcommand");var d=0;if(o=e.consumeArg().tokens,o.length===1&&o[0].text==="["){var p="",m=e.expandNextToken();while(m.text!=="]"&&m.text!=="EOF")p+=m.text,m=e.expandNextToken();if(!p.match(/^\s*[0-9]+\s*$/))throw new Wi("Invalid number of arguments: "+p);d=parseInt(p),o=e.consumeArg().tokens}if(!(h&&a))e.macros.set(l,{tokens:o,numArgs:d});return""};St("\\newcommand",(e)=>rKe(e,!1,!0,!1));St("\\renewcommand",(e)=>rKe(e,!0,!1,!1));St("\\providecommand",(e)=>rKe(e,!0,!0,!0));St("\\message",(e)=>{var r=e.consumeArgs(1)[0];return console.log(r.reverse().map((i)=>i.text).join("")),""});St("\\errmessage",(e)=>{var r=e.consumeArgs(1)[0];return console.error(r.reverse().map((i)=>i.text).join("")),""});St("\\show",(e)=>{var r=e.popToken(),i=r.text;return console.log(r,e.macros.get(i),WN[i],hf.math[i],hf.text[i]),""});St("\\bgroup","{");St("\\egroup","}");St("~","\\nobreakspace");St("\\lq","`");St("\\rq","'");St("\\aa","\\r a");St("\\AA","\\r A");St("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");St("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");St("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");St("ℬ","\\mathscr{B}");St("ℰ","\\mathscr{E}");St("ℱ","\\mathscr{F}");St("ℋ","\\mathscr{H}");St("ℐ","\\mathscr{I}");St("ℒ","\\mathscr{L}");St("ℳ","\\mathscr{M}");St("ℛ","\\mathscr{R}");St("ℭ","\\mathfrak{C}");St("ℌ","\\mathfrak{H}");St("ℨ","\\mathfrak{Z}");St("\\Bbbk","\\Bbb{k}");St("\\llap","\\mathllap{\\textrm{#1}}");St("\\rlap","\\mathrlap{\\textrm{#1}}");St("\\clap","\\mathclap{\\textrm{#1}}");St("\\mathstrut","\\vphantom{(}");St("\\underbar","\\underline{\\text{#1}}");St("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');St("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");St("\\ne","\\neq");St("≠","\\neq");St("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}"+"{\\mathrel{\\char`∉}}");St("∉","\\notin");St("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}"+"}{\\mathrel{\\char`≘}}");St("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");St("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");St("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}"+"{\\mathrel{\\char`≛}}");St("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}"+"{\\mathrel{\\char`≝}}");St("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}"+"{\\mathrel{\\char`≞}}");St("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");St("⟂","\\perp");St("‼","\\mathclose{!\\mkern-0.8mu!}");St("∌","\\notni");St("⌜","\\ulcorner");St("⌝","\\urcorner");St("⌞","\\llcorner");St("⌟","\\lrcorner");St("©","\\copyright");St("®","\\textregistered");St("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');St("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');St("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');St("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');St("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");St("⋮","\\vdots");St("\\varGamma","\\mathit{\\Gamma}");St("\\varDelta","\\mathit{\\Delta}");St("\\varTheta","\\mathit{\\Theta}");St("\\varLambda","\\mathit{\\Lambda}");St("\\varXi","\\mathit{\\Xi}");St("\\varPi","\\mathit{\\Pi}");St("\\varSigma","\\mathit{\\Sigma}");St("\\varUpsilon","\\mathit{\\Upsilon}");St("\\varPhi","\\mathit{\\Phi}");St("\\varPsi","\\mathit{\\Psi}");St("\\varOmega","\\mathit{\\Omega}");St("\\substack","\\begin{subarray}{c}#1\\end{subarray}");St("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");St("\\boxed","\\fbox{$\\displaystyle{#1}$}");St("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");St("\\implies","\\DOTSB\\;\\Longrightarrow\\;");St("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");St("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");St("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var fmr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},HPn=new Set(["bin","rel"]);St("\\dots",function(e){var r="\\dotso",i=e.expandAfterFuture().text;if(i in fmr)r=fmr[i];else if(i.slice(0,4)==="\\not")r="\\dotsb";else if(i in hf.math){if(HPn.has(hf.math[i].group))r="\\dotsb"}return r});var nKe={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};St("\\dotso",function(e){var r=e.future().text;if(r in nKe)return"\\ldots\\,";else return"\\ldots"});St("\\dotsc",function(e){var r=e.future().text;if(r in nKe&&r!==",")return"\\ldots\\,";else return"\\ldots"});St("\\cdots",function(e){var r=e.future().text;if(r in nKe)return"\\@cdots\\,";else return"\\@cdots"});St("\\dotsb","\\cdots");St("\\dotsm","\\cdots");St("\\dotsi","\\!\\cdots");St("\\dotsx","\\ldots\\,");St("\\DOTSI","\\relax");St("\\DOTSB","\\relax");St("\\DOTSX","\\relax");St("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");St("\\,","\\tmspace+{3mu}{.1667em}");St("\\thinspace","\\,");St("\\>","\\mskip{4mu}");St("\\:","\\tmspace+{4mu}{.2222em}");St("\\medspace","\\:");St("\\;","\\tmspace+{5mu}{.2777em}");St("\\thickspace","\\;");St("\\!","\\tmspace-{3mu}{.1667em}");St("\\negthinspace","\\!");St("\\negmedspace","\\tmspace-{4mu}{.2222em}");St("\\negthickspace","\\tmspace-{5mu}{.277em}");St("\\enspace","\\kern.5em ");St("\\enskip","\\hskip.5em\\relax");St("\\quad","\\hskip1em\\relax");St("\\qquad","\\hskip2em\\relax");St("\\tag","\\@ifstar\\tag@literal\\tag@paren");St("\\tag@paren","\\tag@literal{({#1})}");St("\\tag@literal",(e)=>{if(e.macros.get("\\df@tag"))throw new Wi("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});St("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");St("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");St("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");St("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");St("\\newline","\\\\\\relax");St("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var i1r=oa(Gk["Main-Regular"][84][1]-0.7*Gk["Main-Regular"][65][1]);St("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+i1r+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");St("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+i1r+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");St("\\hspace","\\@ifstar\\@hspacer\\@hspace");St("\\@hspace","\\hskip #1\\relax");St("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");St("\\ordinarycolon",":");St("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");St("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');St("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');St("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');St("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');St("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');St("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');St("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');St("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');St("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');St("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');St("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');St("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');St("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');St("∷","\\dblcolon");St("∹","\\eqcolon");St("≔","\\coloneqq");St("≕","\\eqqcolon");St("⩴","\\Coloneqq");St("\\ratio","\\vcentcolon");St("\\coloncolon","\\dblcolon");St("\\colonequals","\\coloneqq");St("\\coloncolonequals","\\Coloneqq");St("\\equalscolon","\\eqqcolon");St("\\equalscoloncolon","\\Eqqcolon");St("\\colonminus","\\coloneq");St("\\coloncolonminus","\\Coloneq");St("\\minuscolon","\\eqcolon");St("\\minuscoloncolon","\\Eqcolon");St("\\coloncolonapprox","\\Colonapprox");St("\\coloncolonsim","\\Colonsim");St("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");St("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");St("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");St("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");St("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");St("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");St("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");St("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");St("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");St("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");St("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");St("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");St("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");St("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");St("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");St("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");St("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");St("\\nleqq","\\html@mathml{\\@nleqq}{≰}");St("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");St("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");St("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");St("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");St("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");St("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");St("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");St("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");St("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");St("\\imath","\\html@mathml{\\@imath}{ı}");St("\\jmath","\\html@mathml{\\@jmath}{ȷ}");St("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⟦}}");St("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}"+"{\\mathclose{\\char`⟧}}");St("⟦","\\llbracket");St("⟧","\\rrbracket");St("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}"+"{\\mathopen{\\char`⦃}}");St("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}"+"{\\mathclose{\\char`⦄}}");St("↤","\\mapsfrom");St("\\mapsfrom","\\html@mathml{\\mathrel{\\mathreflectbox{\\mapsto}}}{\\mathrel{\\char`↤}}");St("⦃","\\lBrace");St("⦄","\\rBrace");St("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}"+"{\\char`⦵}}");St("⦵","\\minuso");St("\\darr","\\downarrow");St("\\dArr","\\Downarrow");St("\\Darr","\\Downarrow");St("\\lang","\\langle");St("\\rang","\\rangle");St("\\uarr","\\uparrow");St("\\uArr","\\Uparrow");St("\\Uarr","\\Uparrow");St("\\N","\\mathbb{N}");St("\\R","\\mathbb{R}");St("\\Z","\\mathbb{Z}");St("\\alef","\\aleph");St("\\alefsym","\\aleph");St("\\Alpha","\\mathrm{A}");St("\\Beta","\\mathrm{B}");St("\\bull","\\bullet");St("\\Chi","\\mathrm{X}");St("\\clubs","\\clubsuit");St("\\cnums","\\mathbb{C}");St("\\Complex","\\mathbb{C}");St("\\Dagger","\\ddagger");St("\\diamonds","\\diamondsuit");St("\\empty","\\emptyset");St("\\Epsilon","\\mathrm{E}");St("\\Eta","\\mathrm{H}");St("\\exist","\\exists");St("\\harr","\\leftrightarrow");St("\\hArr","\\Leftrightarrow");St("\\Harr","\\Leftrightarrow");St("\\hearts","\\heartsuit");St("\\image","\\Im");St("\\infin","\\infty");St("\\Iota","\\mathrm{I}");St("\\isin","\\in");St("\\Kappa","\\mathrm{K}");St("\\larr","\\leftarrow");St("\\lArr","\\Leftarrow");St("\\Larr","\\Leftarrow");St("\\lrarr","\\leftrightarrow");St("\\lrArr","\\Leftrightarrow");St("\\Lrarr","\\Leftrightarrow");St("\\Mu","\\mathrm{M}");St("\\natnums","\\mathbb{N}");St("\\Nu","\\mathrm{N}");St("\\Omicron","\\mathrm{O}");St("\\plusmn","\\pm");St("\\rarr","\\rightarrow");St("\\rArr","\\Rightarrow");St("\\Rarr","\\Rightarrow");St("\\real","\\Re");St("\\reals","\\mathbb{R}");St("\\Reals","\\mathbb{R}");St("\\Rho","\\mathrm{P}");St("\\sdot","\\cdot");St("\\sect","\\S");St("\\spades","\\spadesuit");St("\\sub","\\subset");St("\\sube","\\subseteq");St("\\supe","\\supseteq");St("\\Tau","\\mathrm{T}");St("\\thetasym","\\vartheta");St("\\weierp","\\wp");St("\\Zeta","\\mathrm{Z}");St("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");St("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");St("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");St("\\bra","\\mathinner{\\langle{#1}|}");St("\\ket","\\mathinner{|{#1}\\rangle}");St("\\braket","\\mathinner{\\langle{#1}\\rangle}");St("\\Bra","\\left\\langle#1\\right|");St("\\Ket","\\left|#1\\right\\rangle");var a1r=(e)=>(r)=>{var i=r.consumeArg().tokens,a=r.consumeArg().tokens,o=r.consumeArg().tokens,l=r.consumeArg().tokens,h=r.macros.get("|"),d=r.macros.get("\\|");r.macros.beginGroup();var p=(v)=>(w)=>{if(e){if(w.macros.set("|",h),o.length)w.macros.set("\\|",d)}var T=v;if(!v&&o.length){var x=w.future();if(x.text==="|")w.popToken(),T=!0}return{tokens:T?o:a,numArgs:0}};if(r.macros.set("|",p(!1)),o.length)r.macros.set("\\|",p(!0));var m=r.consumeArg().tokens,y=r.expandTokens([...l,...m,...i]);return r.macros.endGroup(),{tokens:y.reverse(),numArgs:0}};St("\\bra@ket",a1r(!1));St("\\bra@set",a1r(!0));St("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");St("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");St("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");St("\\angln","{\\angl n}");St("\\blue","\\textcolor{##6495ed}{#1}");St("\\orange","\\textcolor{##ffa500}{#1}");St("\\pink","\\textcolor{##ff00af}{#1}");St("\\red","\\textcolor{##df0030}{#1}");St("\\green","\\textcolor{##28ae7b}{#1}");St("\\gray","\\textcolor{gray}{#1}");St("\\purple","\\textcolor{##9d38bd}{#1}");St("\\blueA","\\textcolor{##ccfaff}{#1}");St("\\blueB","\\textcolor{##80f6ff}{#1}");St("\\blueC","\\textcolor{##63d9ea}{#1}");St("\\blueD","\\textcolor{##11accd}{#1}");St("\\blueE","\\textcolor{##0c7f99}{#1}");St("\\tealA","\\textcolor{##94fff5}{#1}");St("\\tealB","\\textcolor{##26edd5}{#1}");St("\\tealC","\\textcolor{##01d1c1}{#1}");St("\\tealD","\\textcolor{##01a995}{#1}");St("\\tealE","\\textcolor{##208170}{#1}");St("\\greenA","\\textcolor{##b6ffb0}{#1}");St("\\greenB","\\textcolor{##8af281}{#1}");St("\\greenC","\\textcolor{##74cf70}{#1}");St("\\greenD","\\textcolor{##1fab54}{#1}");St("\\greenE","\\textcolor{##0d923f}{#1}");St("\\goldA","\\textcolor{##ffd0a9}{#1}");St("\\goldB","\\textcolor{##ffbb71}{#1}");St("\\goldC","\\textcolor{##ff9c39}{#1}");St("\\goldD","\\textcolor{##e07d10}{#1}");St("\\goldE","\\textcolor{##a75a05}{#1}");St("\\redA","\\textcolor{##fca9a9}{#1}");St("\\redB","\\textcolor{##ff8482}{#1}");St("\\redC","\\textcolor{##f9685d}{#1}");St("\\redD","\\textcolor{##e84d39}{#1}");St("\\redE","\\textcolor{##bc2612}{#1}");St("\\maroonA","\\textcolor{##ffbde0}{#1}");St("\\maroonB","\\textcolor{##ff92c6}{#1}");St("\\maroonC","\\textcolor{##ed5fa6}{#1}");St("\\maroonD","\\textcolor{##ca337c}{#1}");St("\\maroonE","\\textcolor{##9e034e}{#1}");St("\\purpleA","\\textcolor{##ddd7ff}{#1}");St("\\purpleB","\\textcolor{##c6b9fc}{#1}");St("\\purpleC","\\textcolor{##aa87ff}{#1}");St("\\purpleD","\\textcolor{##7854ab}{#1}");St("\\purpleE","\\textcolor{##543b78}{#1}");St("\\mintA","\\textcolor{##f5f9e8}{#1}");St("\\mintB","\\textcolor{##edf2df}{#1}");St("\\mintC","\\textcolor{##e0e5cc}{#1}");St("\\grayA","\\textcolor{##f6f7f7}{#1}");St("\\grayB","\\textcolor{##f0f1f2}{#1}");St("\\grayC","\\textcolor{##e3e5e6}{#1}");St("\\grayD","\\textcolor{##d6d8da}{#1}");St("\\grayE","\\textcolor{##babec2}{#1}");St("\\grayF","\\textcolor{##888d93}{#1}");St("\\grayG","\\textcolor{##626569}{#1}");St("\\grayH","\\textcolor{##3b3e40}{#1}");St("\\grayI","\\textcolor{##21242c}{#1}");St("\\kaBlue","\\textcolor{##314453}{#1}");St("\\kaGreen","\\textcolor{##71B307}{#1}");var s1r={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class o1r{constructor(e,r,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(e),this.macros=new n1r(VPn,r.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new Vje(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){if(this.stack.length===0)this.pushToken(this.lexer.lex());return this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var r,i,a;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken();var o=this.consumeArg(["]"]);a=o.tokens,i=o.end}else{var l=this.consumeArg();a=l.tokens,r=l.start,i=l.end}return this.pushToken(new DE("EOF",i.loc)),this.pushTokens(a),new DE("",F_.range(r,i))}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var r=[],i=e&&e.length>0;if(!i)this.consumeSpaces();var a=this.future(),o,l=0,h=0;do{if(o=this.popToken(),r.push(o),o.text==="{")++l;else if(o.text==="}"){if(--l,l===-1)throw new Wi("Extra }",o)}else if(o.text==="EOF")throw new Wi("Unexpected end of input in a macro argument, expected '"+(e&&i?e[h]:"}")+"'",o);if(e&&i)if((l===0||l===1&&e[h]==="{")&&o.text===e[h]){if(++h,h===e.length){r.splice(-h,h);break}}else h=0}while(l!==0||i);if(a.text==="{"&&r[r.length-1].text==="}")r.pop(),r.shift();return r.reverse(),{tokens:r,start:a,end:o}}consumeArgs(e,r){if(r){if(r.length!==e+1)throw new Wi("The length of delimiters doesn't match the number of args!");var i=r[0];for(var a=0;athis.settings.maxExpand)throw new Wi("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var r=this.popToken(),i=r.text,a=!r.noexpand?this._getExpansion(i):null;if(a==null||e&&a.unexpandable){if(e&&a==null&&i[0]==="\\"&&!this.isDefined(i))throw new Wi("Undefined control sequence: "+i);return this.pushToken(r),!1}this.countExpansion(1);var o=a.tokens,l=this.consumeArgs(a.numArgs,a.delimiters);if(a.numArgs){o=o.slice();for(var h=o.length-1;h>=0;--h){var d=o[h];if(d.text==="#"){if(h===0)throw new Wi("Incomplete placeholder at end of macro body",d);if(d=o[--h],d.text==="#")o.splice(h+1,1);else if(/^[1-9]$/.test(d.text))o.splice(h,2,...l[+d.text-1]);else throw new Wi("Not a valid argument number",d)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();if(e.treatAsRelax)e.text="\\relax";return e}}expandMacro(e){return this.macros.has(e)?this.expandTokens([new DE(e)]):void 0}expandTokens(e){var r=[],i=this.stack.length;this.pushTokens(e);while(this.stack.length>i)if(this.expandOnce(!0)===!1){var a=this.stack.pop();if(a.treatAsRelax)a.noexpand=!1,a.treatAsRelax=!1;r.push(a)}return this.countExpansion(r.length),r}expandMacroAsText(e){var r=this.expandMacro(e);if(r)return r.map((i)=>i.text).join("");else return r}_getExpansion(e){var r=this.macros.get(e);if(r==null)return r;if(e.length===1){var i=this.lexer.catcodes[e];if(i!=null&&i!==13)return}var a=typeof r==="function"?r(this):r;if(typeof a==="string"){var o=0;if(a.includes("#")){var l=a.replace(/##/g,"");while(l.includes("#"+(o+1)))++o}var h=new Vje(a,this.settings),d=[],p=h.lex();while(p.text!=="EOF")d.push(p),p=h.lex();d.reverse();var m={tokens:d,numArgs:o};return m}return a}isDefined(e){return this.macros.has(e)||Object.prototype.hasOwnProperty.call(WN,e)||Object.prototype.hasOwnProperty.call(hf.math,e)||Object.prototype.hasOwnProperty.call(hf.text,e)||Object.prototype.hasOwnProperty.call(s1r,e)}isExpandable(e){var r=this.macros.get(e);if(r!=null)return typeof r==="string"||typeof r==="function"||!r.unexpandable;return Object.prototype.hasOwnProperty.call(WN,e)&&!WN[e].primitive}}var pmr=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Fve=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),Tje={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:"\\\"",math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},gmr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class r_e{constructor(e,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new o1r(e,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(e,r){if(r===void 0)r=!0;if(this.fetch().text!==e)throw new Wi("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());if(r)this.consume()}consume(){this.nextToken=null}fetch(){if(this.nextToken==null)this.nextToken=this.gullet.expandNextToken();return this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){if(!this.settings.globalGroup)this.gullet.beginGroup();if(this.settings.colorIsTextColor)this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);if(this.expect("EOF"),!this.settings.globalGroup)this.gullet.endGroup();return e}finally{this.gullet.endGroups()}}subparse(e){var r=this.nextToken;this.consume(),this.gullet.pushToken(new DE("}")),this.gullet.pushTokens(e);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,i}parseExpression(e,r){var i=[];while(!0){if(this.mode==="math")this.consumeSpaces();var a=this.fetch();if(r_e.endOfExpression.has(a.text))break;if(r&&a.text===r)break;if(e&&WN[a.text]&&WN[a.text].infix)break;var o=this.parseAtom(r);if(!o)break;else if(o.type==="internal")continue;i.push(o)}if(this.mode==="text")this.formLigatures(i);return this.handleInfixNodes(i)}handleInfixNodes(e){var r=-1,i;for(var a=0;a=128){if(this.settings.strict){if(!mmr(r.charCodeAt(0)))$_({strict:this.settings.strict,errorCode:"unknownSymbol",errorMsg:'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),report:!0,token:e});else if(this.mode==="math")$_({strict:this.settings.strict,errorCode:"unicodeTextInMathMode",errorMsg:'Unicode text character "'+r[0]+'" used in math mode',report:!0,token:e})}l={type:"textord",mode:"text",loc:F_.range(e),text:r}}else return null;if(this.consume(),o)for(var m=0;m0?sI(Kq,--uT):0,Wq--,mg===10)Wq=1,fxe--;return mg}function hT(){if(mg=uT2||jq(mg)>3?"":" "}function L9r(e,r){while(--r&&hT())if(mg<48||mg>102||mg>57&&mg<65||mg>70&&mg<97)break;return gxe(e,Aae()+(r<6&&lI()==32&&hT()==32))}function Uot(e){while(hT())switch(mg){case e:return uT;case 34:case 39:if(e!==34&&e!==39)Uot(mg);break;case 40:if(e===41)Uot(e);break;case 92:hT();break}return uT}function M9r(e,r){while(hT())if(e+mg===57)break;else if(e+mg===84&&lI()===47)break;return"/*"+gxe(r,uT-1)+"*"+MB(e===47?e:hT())}function D9r(e){while(!jq(lI()))hT();return gxe(e,uT)}function F9r(e){return O9r(bxe("",null,null,null,[""],e=I9r(e),0,[0],e))}function bxe(e,r,i,a,o,l,h,d,p){var m=0,y=0,v=h,w=0,T=0,x=0,k=1,A=1,R=1,N=0,L=0,B="",D=o,P=l,F=a,H=B;while(A)switch(x=L,L=hT()){case 40:if(x!=108&&sI(H,v-1)==58)N++,H+="(";else H+=mxe(L);break;case 41:N--,H+=")";break;case 34:case 39:case 91:H+=mxe(L);break;case 9:case 10:case 13:case 32:if(N>0){H+=MB(L);break}H+=N9r(x);break;case 92:H+=L9r(Aae()-1,7);continue;case 47:switch(lI()){case 42:case 47:if(Yq(Zhi(M9r(hT(),Aae()),r,i,p),p),(jq(x||1)==5||jq(lI()||1)==5)&&s2(H)&&oI(H,-1,void 0)!==" ")H+=" ";break;default:H+="/"}break;case 123*k:d[m++]=s2(H)*R;case 125*k:case 59:case 0:if(N>0&&L){H+=MB(L);break}switch(L){case 0:case 125:A=0;case 59+y:if(R==-1)H=kae(H,/\f/g,"");if(T>0&&(s2(H)-v||k===0))Yq(T>32?B9r(H+";",a,i,v-1,p):B9r(kae(H," ","")+";",a,i,v-2,p),p);break;case 59:H+=";";default:if(Yq(F=P9r(H,r,i,m,y,o,d,B,D=[],P=[],v,l),l),L===123)if(y===0)bxe(H,r,F,F,D,l,v,d,P);else{switch(w){case 99:if(sI(H,3)===110)break;case 108:if(sI(H,2)===97)break;default:y=0;case 100:case 109:case 115:}if(y)bxe(e,F,F,a&&Yq(P9r(e,F,F,0,0,o,d,B,o,D=[],v,P),P),o,P,v,d,a?D:P);else bxe(H,F,F,F,[""],P,0,d,P)}}m=y=T=0,k=R=1,B=H="",v=h;break;case 58:v=1+s2(H),T=x;default:if(k<1){if(L==123)--k;else if(L==125&&k++==0&&R9r()==125)continue}switch(H+=MB(L),L*k){case 38:R=y>0?1:(H+="\f",-1);break;case 44:if(N>0)break;d[m++]=(s2(H)-1)*R,R=1;break;case 64:if(lI()===45)H+=mxe(hT());w=lI(),y=v=s2(B=H+=D9r(Aae())),L++;break;case 45:if(x===45&&s2(H)==2)k=0}}return l}function P9r(e,r,i,a,o,l,h,d,p,m,y,v){var w=o-1,T=o===0?l:[""],x=dxe(T);for(var k=0,A=0,R=0;k0?T[N]+" "+L:kae(L,/&\f/g,T[N])))p[R++]=B;return pxe(e,r,i,o===0?lxe:d,p,m,y,v)}function Zhi(e,r,i,a){return pxe(e,r,i,qq,MB(A9r()),oI(e,2,-2),0,a)}function B9r(e,r,i,a,o){return pxe(e,r,i,cxe,oI(e,0,a),oI(e,a+1,-1),a,o)}function yxe(e,r){var i="";for(var a=0;a/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),O5i=I(async()=>{await Promise.resolve().then(() => iPr());return{id:Wen,diagram:nPr}},"loader"),N5i={id:Wen,detector:I5i,loader:O5i},L5i=N5i,jen="flowchart-v2",M5i=I((e)=>/^\s*(graph|flowchart)/.test(e),"detector"),D5i=I(async()=>{await Promise.resolve().then(() => Zot());return{id:jen,diagram:Lae}},"loader"),P5i={id:jen,detector:M5i,loader:D5i},B5i=P5i,Ken="agentflow",F5i=I((e)=>/^\s*agentflow-beta\b/.test(e),"detector"),$5i=I(async()=>{await Promise.resolve().then(() => yPr());return{id:Ken,diagram:bPr}},"loader"),U5i={id:Ken,detector:F5i,loader:$5i},G5i=U5i,Xen="swimlane",z5i=I((e)=>/^\s*swimlane-beta\b/.test(e),"detector"),V5i=I(async()=>{await Promise.resolve().then(() => _Pr());return{id:Xen,diagram:vPr}},"loader"),H5i={id:Xen,detector:z5i,loader:V5i},q5i=H5i,Qen="er",Y5i=I((e)=>/^\s*erDiagram/.test(e),"detector"),W5i=I(async()=>{await Promise.resolve().then(() => TPr());return{id:Qen,diagram:SPr}},"loader"),j5i={id:Qen,detector:Y5i,loader:W5i},K5i=j5i,Zen="gitGraph",X5i=I((e)=>/^\s*gitGraph/.test(e),"detector"),Q5i=I(async()=>{await Promise.resolve().then(() => Tqr());return{id:Zen,diagram:Sqr}},"loader"),Z5i={id:Zen,detector:X5i,loader:Q5i},J5i=Z5i,Jen="gantt",eRi=I((e)=>/^\s*gantt/.test(e),"detector"),tRi=I(async()=>{await Promise.resolve().then(() => jqr());return{id:Jen,diagram:Wqr}},"loader"),rRi={id:Jen,detector:eRi,loader:tRi},nRi=rRi,etn="info",iRi=I((e)=>/^\s*info/.test(e),"detector"),aRi=I(async()=>{await Promise.resolve().then(() => Xqr());return{id:etn,diagram:Kqr}},"loader"),sRi={id:etn,detector:iRi,loader:aRi},ttn="pie",oRi=I((e)=>/^\s*pie/.test(e),"detector"),lRi=I(async()=>{await Promise.resolve().then(() => eYr());return{id:ttn,diagram:Jqr}},"loader"),cRi={id:ttn,detector:oRi,loader:lRi},rtn="quadrantChart",uRi=I((e)=>/^\s*quadrantChart/.test(e),"detector"),hRi=I(async()=>{await Promise.resolve().then(() => bYr());return{id:rtn,diagram:mYr}},"loader"),dRi={id:rtn,detector:uRi,loader:hRi},fRi=dRi,ntn="xychart",pRi=I((e)=>/^\s*xychart(-beta)?/.test(e),"detector"),gRi=I(async()=>{await Promise.resolve().then(() => $Yr());return{id:ntn,diagram:FYr}},"loader"),mRi={id:ntn,detector:pRi,loader:gRi},bRi=mRi,itn="requirement",yRi=I((e)=>/^\s*requirement(Diagram)?/.test(e),"detector"),vRi=I(async()=>{await Promise.resolve().then(() => zYr());return{id:itn,diagram:GYr}},"loader"),_Ri={id:itn,detector:yRi,loader:vRi},ERi=_Ri,atn="sequence",wRi=I((e)=>/^\s*sequenceDiagram/.test(e),"detector"),SRi=I(async()=>{await Promise.resolve().then(() => sWr());return{id:atn,diagram:aWr}},"loader"),TRi={id:atn,detector:wRi,loader:SRi},xRi=TRi,stn="classDiagram",CRi=I((e)=>/^\s*classDiagram/.test(e),"detector"),kRi=I(async()=>{await Promise.resolve().then(() => hWr());return{id:stn,diagram:uWr}},"loader"),ARi={id:stn,detector:CRi,loader:kRi},RRi=ARi,otn="stateDiagram",IRi=I((e)=>/^\s*stateDiagram/.test(e),"detector"),ORi=I(async()=>{await Promise.resolve().then(() => LWr());return{id:otn,diagram:NWr}},"loader"),NRi={id:otn,detector:IRi,loader:ORi},LRi=NRi,ltn="journey",MRi=I((e)=>/^\s*journey/.test(e),"detector"),DRi=I(async()=>{await Promise.resolve().then(() => VWr());return{id:ltn,diagram:zWr}},"loader"),PRi={id:ltn,detector:MRi,loader:DRi},BRi=PRi,oAe=4,ule=75,FRi=I((e)=>{let r=[];for(let o of e.split(/\s+/)){let l=[...o];while(l.length>ule)r.push(l.slice(0,ule).join("")),l=l.slice(ule);if(l.length>0)r.push(l.join(""))}let i=[],a="";for(let o of r){let l=a?`${a} ${o}`:o;if([...l].length>ule)i.push(a),a=o;else a=l}if(a)i.push(a);if(i.length>oAe){i.length=oAe;let o=i[oAe-1]??"";i[oAe-1]=`${[...o].slice(0,ule-3).join("")}...`}return i},"wrapErrorMessage"),$Ri=I((e,r,i,a)=>{Ze.debug(`rendering svg for syntax error +`);let o=Ou(r),l=o.append("g"),h=FRi(a?.db.getErrorMessage?.()??""),d=h.length>0?500+h.length*56:512;o.attr("viewBox",`0 0 2412 ${d}`),Bl(o,100,d,!0),l.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),l.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),l.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),l.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),l.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),l.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),l.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),l.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`),h.forEach((p,m)=>{l.append("text").attr("class","error-text").attr("x",1440).attr("y",510+m*56).attr("font-size","42px").style("text-anchor","middle").text(p)})},"draw"),ctn={draw:$Ri},URi=ctn,vgt,GRi={clear(){vgt=void 0},setErrorMessage(e){vgt=e},getErrorMessage(){return vgt}},zRi={db:GRi,renderer:ctn,parser:{parse:I(()=>{return},"parse")}},VRi=zRi,utn="flowchart-elk",HRi=I((e,r={})=>{if(/^\s*flowchart-elk/.test(e))return r.layout="elk",!0;return!1},"detector"),qRi=I(async()=>{await Promise.resolve().then(() => Zot());return{id:utn,diagram:Lae}},"loader"),YRi={id:utn,detector:HRi,loader:qRi},WRi=YRi,htn="timeline",jRi=I((e)=>/^\s*timeline/.test(e),"detector"),KRi=I(async()=>{await Promise.resolve().then(() => pjr());return{id:htn,diagram:fjr}},"loader"),XRi={id:htn,detector:jRi,loader:KRi},QRi=XRi,dtn="mindmap",ZRi=I((e)=>/^\s*mindmap/.test(e),"detector"),JRi=I(async()=>{await Promise.resolve().then(() => wjr());return{id:dtn,diagram:Ejr}},"loader"),eIi={id:dtn,detector:ZRi,loader:JRi},tIi=eIi,ftn="kanban",rIi=I((e)=>/^\s*kanban/.test(e),"detector"),nIi=I(async()=>{await Promise.resolve().then(() => xjr());return{id:ftn,diagram:Tjr}},"loader"),iIi={id:ftn,detector:rIi,loader:nIi},aIi=iIi,ptn="sankey",sIi=I((e)=>/^\s*sankey(-beta)?/.test(e),"detector"),oIi=I(async()=>{await Promise.resolve().then(() => Hjr());return{id:ptn,diagram:Vjr}},"loader"),lIi={id:ptn,detector:sIi,loader:oIi},cIi=lIi,gtn="packet",uIi=I((e)=>/^\s*packet(-beta)?/.test(e),"detector"),hIi=I(async()=>{await Promise.resolve().then(() => jjr());return{id:gtn,diagram:Wjr}},"loader"),dIi={id:gtn,detector:uIi,loader:hIi},mtn="radar",fIi=I((e)=>/^\s*radar-beta/.test(e),"detector"),pIi=I(async()=>{await Promise.resolve().then(() => rKr());return{id:mtn,diagram:tKr}},"loader"),gIi={id:mtn,detector:fIi,loader:pIi},btn="block",mIi=I((e)=>/^\s*block(-beta)?/.test(e),"detector"),bIi=I(async()=>{await Promise.resolve().then(() => wKr());return{id:btn,diagram:EKr}},"loader"),yIi={id:btn,detector:mIi,loader:bIi},vIi=yIi,ytn="treeView",_Ii=I((e)=>/^\s*treeView-beta/.test(e),"detector"),EIi=I(async()=>{await Promise.resolve().then(() => DKr());return{id:ytn,diagram:MKr}},"loader"),wIi={id:ytn,detector:_Ii,loader:EIi},SIi=wIi,vtn="architecture",TIi=I((e)=>/^\s*architecture/.test(e),"detector"),xIi=I(async()=>{await Promise.resolve().then(() => eXr());return{id:vtn,diagram:JKr}},"loader"),CIi={id:vtn,detector:TIi,loader:xIi},kIi=CIi,_tn="eventmodeling",AIi=I((e)=>/^\s*eventmodeling/.test(e),"detector"),RIi=I(async()=>{await Promise.resolve().then(() => RXr());return{id:_tn,diagram:AXr}},"loader"),IIi={id:_tn,detector:AIi,loader:RIi},OIi=IIi,Etn="ishikawa",NIi=I((e)=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),LIi=I(async()=>{await Promise.resolve().then(() => FXr());return{id:Etn,diagram:BXr}},"loader"),MIi={id:Etn,detector:NIi,loader:LIi},wtn="venn",DIi=I((e)=>/^\s*venn-beta/.test(e),"detector"),PIi=I(async()=>{await Promise.resolve().then(() => cQr());return{id:wtn,diagram:lQr}},"loader"),BIi={id:wtn,detector:DIi,loader:PIi},FIi=BIi,Stn="treemap",$Ii=I((e)=>/^\s*treemap/.test(e),"detector"),UIi=I(async()=>{await Promise.resolve().then(() => pQr());return{id:Stn,diagram:fQr}},"loader"),GIi={id:Stn,detector:$Ii,loader:UIi},Ttn="usecase",zIi=I((e)=>/^\s*usecase-beta(?:\s|$)/.test(e),"detector"),VIi=I(async()=>{await Promise.resolve().then(() => KJr());return{id:Ttn,diagram:jJr}},"loader"),HIi={id:Ttn,detector:zIi,loader:VIi},xtn="wardley",qIi=I((e)=>/^\s*wardley-beta/i.test(e),"detector"),YIi=I(async()=>{await Promise.resolve().then(() => men());return{id:xtn,diagram:gen}},"loader"),WIi={id:xtn,detector:qIi,loader:YIi},jIi=WIi,Ctn="cynefin",KIi=I((e)=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),XIi=I(async()=>{await Promise.resolve().then(() => Cen());return{id:Ctn,diagram:xen}},"loader"),QIi={id:Ctn,detector:KIi,loader:XIi},ktn="railroad",ZIi=I((e)=>/^\s*railroad-beta/i.test(e),"detector"),JIi=I(async()=>{await Promise.resolve().then(() => Len());return{id:ktn,diagram:Nen}},"loader"),e6i={id:ktn,detector:ZIi,loader:JIi},Atn="railroadEbnf",t6i=I((e)=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),r6i=I(async()=>{await Promise.resolve().then(() => Pen());return{id:Atn,diagram:Den}},"loader"),n6i={id:Atn,detector:t6i,loader:r6i},Rtn="railroadAbnf",i6i=I((e)=>/^\s*railroad-abnf-beta/i.test(e),"detector"),a6i=I(async()=>{await Promise.resolve().then(() => Fen());return{id:Rtn,diagram:Ben}},"loader"),s6i={id:Rtn,detector:i6i,loader:a6i},Itn="railroadPeg",o6i=I((e)=>/^\s*railroad-peg-beta/i.test(e),"detector"),l6i=I(async()=>{await Promise.resolve().then(() => zen());return{id:Itn,diagram:Gen}},"loader"),c6i={id:Itn,detector:o6i,loader:l6i},Ven=!1,uAe=I(()=>{if(Ven)return;Ven=!0,Pre("error",VRi,(e)=>e.toLowerCase().trim()==="error"),Pre("---",{db:{clear:I(()=>{},"clear")},styles:{},renderer:{draw:I(()=>{},"draw")},parser:{parse:I(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:I(()=>null,"init")},(e)=>e.toLowerCase().trimStart().startsWith("---")),V_e(WRi,tIi,kIi),V_e(G5i,L5i,aIi,RRi,K5i,nRi,sRi,cRi,ERi,xRi,q5i,B5i,QRi,J5i,LRi,BRi,fRi,cIi,dIi,bRi,vIi,OIi,SIi,gIi,MIi,GIi,e6i,n6i,s6i,c6i,FIi,jIi,QIi,HIi)},"addDiagrams"),u6i=I(async()=>{Ze.debug("Loading registered diagrams");let r=(await Promise.allSettled(Object.entries(sL).map(async([i,{detector:a,loader:o}])=>{if(!o)return;try{j_e(i)}catch{try{let{diagram:l,id:h}=await o();Pre(h,l,a)}catch(l){throw Ze.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete sL[i],l}}}))).filter((i)=>i.status==="rejected");if(r.length>0){Ze.error(`Failed to load ${r.length} external diagrams`);for(let i of r)Ze.error(i);throw Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams"),h6i="graphics-document document";function Otn(e,r){if(e.attr("role",h6i),r!=="")e.attr("aria-roledescription",r)}I(Otn,"setA11yDiagramInfo");function Ntn(e,r,i,a){if(e.insert===void 0)return;if(i){let o=`chart-desc-${a}`;e.attr("aria-describedby",o),e.insert("desc",":first-child").attr("id",o).text(i)}if(r){let o=`chart-title-${a}`;e.attr("aria-labelledby",o),e.insert("title",":first-child").attr("id",o).text(r)}}I(Ntn,"addSVGa11yTitleDescription");var lAe=class e{constructor(r,i,a,o,l){this.type=r,this.text=i,this.db=a,this.parser=o,this.renderer=l}static{I(this,"Diagram")}static async fromText(r,i={}){let a=typeof r==="string"?{raw:r,cleaned:r}:r,o=ea(),l=qV(a.cleaned,o);try{j_e(l)}catch{let w=Kyr(l);if(!w)throw new vXe(`Diagram ${l} not found.`);let{id:T,diagram:x}=await w();Pre(T,x)}let{db:h,parser:d,renderer:p,init:m}=j_e(l);if(d.parser)d.parser.yy=h;if(h.clear?.(),m?.(o),i.title)h.setDiagramTitle?.(i.title);let y=a.cleaned;if(h.preserveCommentsWhenParsing&&a.withComments){let w=o.maxTextSize??Fs.maxTextSize;if(a.withComments.length>w)Ze.warn(`Comment-preserving source exceeds maxTextSize (${a.withComments.length} > ${w}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`);else y=a.withComments}let v=GSr(y)+` +`;if(a.frontmatterLineOffset)h.setFrontmatterLineOffset?.(a.frontmatterLineOffset);return await d.parse(v),new e(l,v,h,d,p)}async render(r,i){await this.renderer.draw(this.text,r,i,this)}getParser(){return this.parser}getType(){return this.type}},Hen=[],d6i=I(()=>{Hen.forEach((e)=>{e()}),Hen=[]},"attachFunctions"),f6i=I((e)=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function Ltn(e){let r=yXe(e);if(!r)return{text:e,metadata:{}};let i=r.indent,a=i?r.body.split(` `).map((h)=>h.startsWith(i)?h.slice(i.length):h).join(` -`):r.body,o=yC(a,{schema:bC})??{};o=typeof o==="object"&&!Array.isArray(o)?o:{};let l={};if(o.displayMode)l.displayMode=o.displayMode.toString();if(o.title)l.title=o.title.toString();if(o.config)l.config=o.config;return{text:e.slice(r.length),metadata:l}}I(Atn,"extractFrontMatter");var l6i=I((e)=>e.replace(/\r\n?/g,` -`).replace(/<(\w+)([^>]*)>/g,(r,i,a)=>"<"+i+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),c6i=I((e)=>{let{text:r,metadata:i}=Atn(e),{displayMode:a,title:o,config:l={}}=i;if(a){if(!l.gantt)l.gantt={};l.gantt.displayMode=a}return{title:o,config:l,text:r}},"processFrontmatter"),u6i=I((e)=>{let r=Ts.detectInit(e)??{},i=Ts.detectDirective(e,"wrap");if(Array.isArray(i))r.wrap=i.some(({type:a})=>a==="wrap");else if(i?.type==="wrap")r.wrap=!0;return{text:ISr(e),directive:r}},"processDirectives");function vgt(e){let r=e,i=l6i(e),a=c6i(i),o=u6i(a.text),l=bc(a.config,o.directive),h=o.text,d=o6i(h),p=i.length>a.text.length?(i.substring(0,i.length-a.text.length).match(/\n/g)??[]).length:0;return{code:{raw:r,cleaned:d,withComments:h,frontmatterLineOffset:p},title:a.title,config:l}}I(vgt,"preprocessDiagram");function Rtn(e){let r=new TextEncoder().encode(e),i=Array.from(r,(a)=>String.fromCodePoint(a)).join("");return btoa(i)}I(Rtn,"toBase64");var h6i=50000,d6i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",f6i="sandbox",p6i="loose",g6i="http://www.w3.org/2000/svg",m6i="http://www.w3.org/1999/xlink",b6i="http://www.w3.org/1999/xhtml",y6i="100%",v6i="100%",_6i="border:0;margin:0;",E6i="margin:0",w6i="allow-top-navigation-by-user-activation allow-popups",S6i='The "iframe" tag is not supported by your browser.',T6i=["foreignobject"],x6i=["dominant-baseline"];function _gt(e){let r=vgt(e);Ore();let i;try{i=zV(r.code.cleaned,ea())}catch{i=void 0}return G_e(i),Qyr(r.config??{}),r}I(_gt,"processAndSetConfigs");async function Itn(e,r){oAe();try{let{code:i,config:a}=_gt(e);return{diagramType:(await aAe.fromText(i)).type,config:a}}catch(i){if(r?.suppressErrors)return!1;throw i}finally{G_e(void 0)}}I(Itn,"parse");var Uen=I((e,r,i=[])=>{let a=bXe(`{ ${i.join(" !important; ")} !important; }`);return`.${e} ${r} ${a}`},"cssImportantStyles"),C6i=I((e,r=new Map)=>{let i=new CSSStyleSheet;if(e.fontFamily!==void 0)i.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,i.cssRules.length);if(e.altFontFamily!==void 0)i.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,i.cssRules.length);if(r instanceof Map){let d=Mp(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach((p)=>{if(!BEe(p.styles))d.forEach((m)=>{i.insertRule(Uen(p.id,m,p.styles),i.cssRules.length)});if(!BEe(p.textStyles))i.insertRule(Uen(p.id,"tspan",(p?.textStyles||[]).map((m)=>m.replace("color","fill"))),i.cssRules.length)})}let a="";if(e.themeCSS!==void 0)if(typeof i.replaceSync==="function"){let o=new CSSStyleSheet;o.replaceSync(e.themeCSS),a=z_e(o)+` +`):r.body,o=_C(a,{schema:vC})??{};o=typeof o==="object"&&!Array.isArray(o)?o:{};let l={};if(o.displayMode)l.displayMode=o.displayMode.toString();if(o.title)l.title=o.title.toString();if(o.config)l.config=o.config;return{text:e.slice(r.length),metadata:l}}I(Ltn,"extractFrontMatter");var p6i=I((e)=>e.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(r,i,a)=>"<"+i+a.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),g6i=I((e)=>{let{text:r,metadata:i}=Ltn(e),{displayMode:a,title:o,config:l={}}=i;if(a){if(!l.gantt)l.gantt={};l.gantt.displayMode=a}return{title:o,config:l,text:r}},"processFrontmatter"),m6i=I((e)=>{let r=Ts.detectInit(e)??{},i=Ts.detectDirective(e,"wrap");if(Array.isArray(i))r.wrap=i.some(({type:a})=>a==="wrap");else if(i?.type==="wrap")r.wrap=!0;return{text:DSr(e),directive:r}},"processDirectives");function wgt(e){let r=e,i=p6i(e),a=g6i(i),o=m6i(a.text),l=bc(a.config,o.directive),h=o.text,d=f6i(h),p=i.length>a.text.length?(i.substring(0,i.length-a.text.length).match(/\n/g)??[]).length:0;return{code:{raw:r,cleaned:d,withComments:h,frontmatterLineOffset:p},title:a.title,config:l}}I(wgt,"preprocessDiagram");function Mtn(e){let r=new TextEncoder().encode(e),i=Array.from(r,(a)=>String.fromCodePoint(a)).join("");return btoa(i)}I(Mtn,"toBase64");var b6i=50000,y6i="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",v6i="sandbox",_6i="loose",E6i="http://www.w3.org/2000/svg",w6i="http://www.w3.org/1999/xlink",S6i="http://www.w3.org/1999/xhtml",T6i="100%",x6i="100%",C6i="border:0;margin:0;",k6i="margin:0",A6i="allow-top-navigation-by-user-activation allow-popups",R6i='The "iframe" tag is not supported by your browser.',I6i=["foreignobject"],O6i=["dominant-baseline"];function Sgt(e){let r=wgt(e);Mre();let i;try{i=qV(r.code.cleaned,ea())}catch{i=void 0}return H_e(i),rvr(r.config??{}),r}I(Sgt,"processAndSetConfigs");async function Dtn(e,r){uAe();try{let{code:i,config:a}=Sgt(e);return{diagramType:(await lAe.fromText(i)).type,config:a}}catch(i){if(r?.suppressErrors)return!1;throw i}finally{H_e(void 0)}}I(Dtn,"parse");var qen=I((e,r,i=[])=>{let a=_Xe(`{ ${i.join(" !important; ")} !important; }`);return`.${e} ${r} ${a}`},"cssImportantStyles"),N6i=I((e,r=new Map)=>{let i=new CSSStyleSheet;if(e.fontFamily!==void 0)i.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,i.cssRules.length);if(e.altFontFamily!==void 0)i.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,i.cssRules.length);if(r instanceof Map){let d=Mp(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach((p)=>{if(!UEe(p.styles))d.forEach((m)=>{i.insertRule(qen(p.id,m,p.styles),i.cssRules.length)});if(!UEe(p.textStyles))i.insertRule(qen(p.id,"tspan",(p?.textStyles||[]).map((m)=>m.replace("color","fill"))),i.cssRules.length)})}let a="";if(e.themeCSS!==void 0)if(typeof i.replaceSync==="function"){let o=new CSSStyleSheet;o.replaceSync(e.themeCSS),a=q_e(o)+` `}else a+=`${e.themeCSS} -`;return a+z_e(i)},"createCssStyles"),k6i=I((e,r)=>gxe(L9r(`${e}{${r}}`),D9r([I(function(a,o,l,h){if(a.type==="rule"&&Array.isArray(a.props)){if(a.parent&&a.parent.type===Sae)return;a.props=a.props.map((d)=>{if(d===e&&Array.isArray(a.children)&&a.children.every((m)=>{if(m.type!=="decl")return!1;return new Set(["font-family","font-size","fill"]).has(m.props)}))return d;if(!((d.startsWith(`${e} `)||d.startsWith(`${e}>`))&&!d.startsWith(`${e} ||`)))return`${e} ${d}`;return d})}else if(a.type.startsWith("@")){if(![m9r,y9r,oxe,_9r,"@container","@starting-style",Sae].includes(a.type))Ze.warn(`Removing unsupported at-rule ${a.type} from CSS`),a.type=zq}},"addNamespace"),M9r])),"compileCSS"),A6i=I((e,r,i,a)=>{let o=C6i(e,i),l=nvr(r,o,{...e.themeVariables,theme:e.theme,look:e.look},a);return k6i(a,l)},"createUserStyles"),R6i=I((e="",r,i)=>{let a=e;if(!i&&!r)a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#');return a=vC(a),a=a.replace(/
    /g,"
    "),a},"cleanUpSvgCode"),I6i=I((e="",r)=>{let i=r?.viewBox?.baseVal?.height?r.viewBox.baseVal.height+"px":v6i,a=Rtn(`${e}`);return``},"putIntoIFrame"),Gen=I((e,r,i,a,o)=>{let l=e.append("div");if(l.attr("id",i),a)l.attr("style",a);let h=l.append("svg").attr("id",r).attr("width","100%").attr("xmlns",g6i);if(o)h.attr("xmlns:xlink",o);return h.append("g"),e},"appendDivSvgG");function ygt(e,r){return e.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}I(ygt,"sandboxedIframe");var O6i=I((e,r,i,a)=>{e.getElementById(r)?.remove(),e.getElementById(i)?.remove(),e.getElementById(a)?.remove()},"removeExistingElements"),N6i=I(async function(e,r,i){oAe();let a=_gt(r),o=a.code;r=o.cleaned;let l=ea();if(Ze.debug(l),r.length>(l?.maxTextSize??h6i))r=d6i,o={raw:r,cleaned:r};let h=`#${e}`,d="i"+e,p="#"+d,m="d"+e,y="#"+m,E=I(()=>{let X=xn(T?p:y).node();if(X&&"remove"in X)X.remove()},"removeTempElements"),w=xn(document.body),T=l.securityLevel===f6i,x=l.securityLevel===p6i,k=l.fontFamily;if(i!==void 0){if(i)i.innerHTML="";if(T){let te=ygt(xn(i),d);w=xn(te.nodes()[0].contentDocument.body),w.node().style.margin="0"}else w=xn(i);Gen(w,e,m,`font-family: ${k}`,m6i)}else{if(O6i(document,e,m,d),T){let te=ygt(xn(document.body),d);w=xn(te.nodes()[0].contentDocument.body),w.node().style.margin="0"}else w=xn("body");Gen(w,e,m)}let A,R;try{A=await aAe.fromText(o,{title:a.title})}catch(te){if(l.suppressErrorRendering)throw E(),te;A=await aAe.fromText("error"),R=te,A.db.setErrorMessage?.(ett(te))}let N=w.select(y).node(),L=A.type,B=N.firstChild,D=B.firstChild,P=A.renderer.getClasses?.(r,A),F=A6i(l,L,P,h),H=document.createElement("style");H.innerHTML=F,B.insertBefore(H,D);try{await A.renderer.draw(r,e,"12.2.0",A)}catch(te){if(l.suppressErrorRendering)E();else MRi.draw(r,e,"12.2.0");throw te}let K=w.select(`${y} svg`),Q=A.db.getAccTitle?.(),Z=A.db.getAccDescription?.();Ntn(L,K,Q,Z);let j=I(()=>{w.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",b6i);let te=w.select(y).node().innerHTML;if(Ze.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),te=R6i(te,T,zE(l.arrowMarkerAbsolute)),T){let X=w.select(y+" svg").node();te=I6i(te,X)}else if(!x)te=Wb.sanitize(te,{ADD_TAGS:T6i,ADD_ATTR:x6i,HTML_INTEGRATION_POINTS:{foreignobject:!0}});return s6i(),te},"serializeSvg")();if(R)throw R;return E(),{diagramType:L,svg:j,bindFunctions:A.db.bindFunctions}},"renderDiagram"),L6i=I(async function(e,r,i){try{return await N6i(e,r,i)}finally{G_e(void 0)}},"render");function Otn(e={}){let r=Sd({},e);if(r?.fontFamily&&!r.themeVariables?.fontFamily){if(!r.themeVariables)r.themeVariables={};r.themeVariables.fontFamily=r.fontFamily}jyr(r);let i=AR.theme;if(r?.theme&&Object.hasOwn(Jk,r.theme))r.themeVariables=Jk[r.theme].getThemeVariables(r.themeVariables);else if(r){if(r.theme!=null&&r.theme!=="null")r.theme=i;r.themeVariables=Jk[i].getThemeVariables(r.themeVariables)}let a=typeof r==="object"?Wyr(r):yXe();sre(a.logLevel),oAe()}I(Otn,"initialize");var M6i=I((e,r={})=>{let{code:i}=vgt(e);return aAe.fromText(i,r)},"getDiagramFromText");function Ntn(e,r,i,a){Ctn(r,e),ktn(r,i,a,r.attr("id"))}I(Ntn,"addA11yInfo");var UF=Object.freeze({render:L6i,parse:Itn,getDiagramFromText:M6i,initialize:Otn,getConfig:ea,setConfig:vXe,getSiteConfig:yXe,updateSiteConfig:Kyr,reset:I(()=>{Ore()},"reset"),globalReset:I(()=>{Ore(AR)},"globalReset"),defaultConfig:AR});sre(ea().logLevel);Ore(ea());var D6i=I((e,r,i)=>{if(Ze.warn(e),zEe(e)){if(i)i(e.str,e.hash);r.push({...e,message:e.str,error:e})}else{if(i)i(e);if(e instanceof Error)r.push({str:e.message,message:e.message,hash:e.name,error:e})}},"handleError"),Ltn=I(async function(e={querySelector:".mermaid"}){try{await P6i(e)}catch(r){if(zEe(r))Ze.error(r.str);if(GI.parseError)GI.parseError(r);if(!e.suppressErrors)throw Ze.error("Use the suppressErrors option to suppress these errors"),r}},"run"),P6i=I(async function({postRenderCallback:e,querySelector:r,nodes:i}={querySelector:".mermaid"}){let a=UF.getConfig();Ze.debug(`${!e?"No ":""}Callback function found`);let o;if(i)o=i;else if(r)o=document.querySelectorAll(r);else throw Error("Nodes and querySelector are both undefined");if(Ze.debug(`Found ${o.length} diagrams`),a?.startOnLoad!==void 0)Ze.debug("Start On Load: "+a?.startOnLoad),UF.updateSiteConfig({startOnLoad:a?.startOnLoad});let l=new Ts.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),h,d=[];for(let p of Array.from(o)){if(Ze.info("Rendering diagram: "+p.id),p.getAttribute("data-processed"))continue;p.setAttribute("data-processed","true");let m=`mermaid-${l.next()}`;h=p.innerHTML,h=KEe(Ts.entityDecode(h)).trim().replace(//gi,"
    ");let y=Ts.detectInit(h);if(y)Ze.debug("Detected early reinit: ",y);try{let{svg:E,bindFunctions:w}=await Btn(m,h,p);if(p.innerHTML=E,e)await e(m);if(w)w(p)}catch(E){D6i(E,d,GI.parseError)}}if(d.length>0)throw d[0]},"runThrowsErrors"),Mtn=I(function(e){UF.initialize(e)},"initialize"),B6i=I(async function(e,r,i){if(Ze.warn("mermaid.init is deprecated. Please use run instead."),e)Mtn(e);let a={postRenderCallback:i,querySelector:".mermaid"};if(typeof r==="string")a.querySelector=r;else if(r)if(r instanceof HTMLElement)a.nodes=[r];else a.nodes=r;await Ltn(a)},"init"),F6i=I(async(e,{lazyLoad:r=!0}={})=>{if(oAe(),U_e(...e),r===!1)await i6i()},"registerExternalDiagrams"),Dtn=I(function(){if(GI.startOnLoad){let{startOnLoad:e}=UF.getConfig();if(e)GI.run().catch((r)=>Ze.error("Mermaid failed to initialize",r))}},"contentLoaded");if(typeof document<"u")window.addEventListener("load",Dtn,!1);var $6i=I(function(e){GI.parseError=e},"setParseErrorHandler"),sAe=[],bgt=!1,Ptn=I(async()=>{if(bgt)return;bgt=!0;while(sAe.length>0){let e=sAe.shift();if(e)try{await e()}catch(r){Ze.error("Error executing queue",r)}}bgt=!1},"executeQueue"),U6i=I(async(e,r)=>new Promise((i,a)=>{let o=I(()=>new Promise((l,h)=>{UF.parse(e,r).then((d)=>{l(d),i(d)},(d)=>{Ze.error("Error parsing",d),GI.parseError?.(d),h(d),a(d)})}),"performCall");sAe.push(o),Ptn().catch(a)}),"parse"),Btn=I((e,r,i)=>new Promise((a,o)=>{let l=I(()=>new Promise((h,d)=>{UF.render(e,r,i).then((p)=>{h(p),a(p)},(p)=>{Ze.error("Error parsing",p),GI.parseError?.(p),d(p),o(p)})}),"performCall");sAe.push(l),Ptn().catch(o)}),"render"),G6i=I(()=>Object.keys(iL).map((e)=>({id:e})),"getRegisteredDiagramsMetadata"),GI={startOnLoad:!0,mermaidAPI:UF,parse:U6i,render:Btn,init:B6i,run:Ltn,registerExternalDiagrams:F6i,registerLayoutLoaders:Pot,initialize:Mtn,parseError:void 0,contentLoaded:Dtn,setParseErrorHandler:$6i,detectType:zV,registerIconPacks:wH,getRegisteredDiagramsMetadata:G6i},Egt=GI;/*! Check if previously processed *//*! +`;return a+q_e(i)},"createCssStyles"),L6i=I((e,r)=>yxe(F9r(`${e}{${r}}`),U9r([I(function(a,o,l,h){if(a.type==="rule"&&Array.isArray(a.props)){if(a.parent&&a.parent.type===Cae)return;a.props=a.props.map((d)=>{if(d===e&&Array.isArray(a.children)&&a.children.every((m)=>{if(m.type!=="decl")return!1;return new Set(["font-family","font-size","fill"]).has(m.props)}))return d;if(!((d.startsWith(`${e} `)||d.startsWith(`${e}>`))&&!d.startsWith(`${e} ||`)))return`${e} ${d}`;return d})}else if(a.type.startsWith("@")){if(![E9r,S9r,uxe,x9r,"@container","@starting-style",Cae].includes(a.type))Ze.warn(`Removing unsupported at-rule ${a.type} from CSS`),a.type=qq}},"addNamespace"),$9r])),"compileCSS"),M6i=I((e,r,i,a)=>{let o=N6i(e,i),l=lvr(r,o,{...e.themeVariables,theme:e.theme,look:e.look},a);return L6i(a,l)},"createUserStyles"),D6i=I((e="",r,i)=>{let a=e;if(!i&&!r)a=a.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#');return a=EC(a),a=a.replace(/
    /g,"
    "),a},"cleanUpSvgCode"),P6i=I((e="",r)=>{let i=r?.viewBox?.baseVal?.height?r.viewBox.baseVal.height+"px":x6i,a=Mtn(`${e}`);return``},"putIntoIFrame"),Yen=I((e,r,i,a,o)=>{let l=e.append("div");if(l.attr("id",i),a)l.attr("style",a);let h=l.append("svg").attr("id",r).attr("width","100%").attr("xmlns",E6i);if(o)h.attr("xmlns:xlink",o);return h.append("g"),e},"appendDivSvgG");function Egt(e,r){return e.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}I(Egt,"sandboxedIframe");var B6i=I((e,r,i,a)=>{e.getElementById(r)?.remove(),e.getElementById(i)?.remove(),e.getElementById(a)?.remove()},"removeExistingElements"),F6i=I(async function(e,r,i){uAe();let a=Sgt(r),o=a.code;r=o.cleaned;let l=ea();if(Ze.debug(l),r.length>(l?.maxTextSize??b6i))r=y6i,o={raw:r,cleaned:r};let h=`#${e}`,d="i"+e,p="#"+d,m="d"+e,y="#"+m,v=I(()=>{let Z=xn(T?p:y).node();if(Z&&"remove"in Z)Z.remove()},"removeTempElements"),w=xn(document.body),T=l.securityLevel===v6i,x=l.securityLevel===_6i,k=l.fontFamily;if(i!==void 0){if(i)i.innerHTML="";if(T){let J=Egt(xn(i),d);w=xn(J.nodes()[0].contentDocument.body),w.node().style.margin="0"}else w=xn(i);Yen(w,e,m,`font-family: ${k}`,w6i)}else{if(B6i(document,e,m,d),T){let J=Egt(xn(document.body),d);w=xn(J.nodes()[0].contentDocument.body),w.node().style.margin="0"}else w=xn("body");Yen(w,e,m)}let A,R;try{A=await lAe.fromText(o,{title:a.title})}catch(J){if(l.suppressErrorRendering)throw v(),J;A=await lAe.fromText("error"),R=J,A.db.setErrorMessage?.(ntt(J))}let N=w.select(y).node(),L=A.type,B=N.firstChild,D=B.firstChild,P=A.renderer.getClasses?.(r,A),F=M6i(l,L,P,h),H=document.createElement("style");H.innerHTML=F,B.insertBefore(H,D);try{await A.renderer.draw(r,e,"12.2.0",A)}catch(J){if(l.suppressErrorRendering)v();else URi.draw(r,e,"12.2.0");throw J}let W=w.select(`${y} svg`),X=A.db.getAccTitle?.(),Q=A.db.getAccDescription?.();Btn(L,W,X,Q);let K=I(()=>{w.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",S6i);let J=w.select(y).node().innerHTML;if(Ze.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),J=D6i(J,T,zE(l.arrowMarkerAbsolute)),T){let Z=w.select(y+" svg").node();J=P6i(J,Z)}else if(!x)J=Wb.sanitize(J,{ADD_TAGS:I6i,ADD_ATTR:O6i,HTML_INTEGRATION_POINTS:{foreignobject:!0}});return d6i(),J},"serializeSvg")();if(R)throw R;return v(),{diagramType:L,svg:K,bindFunctions:A.db.bindFunctions}},"renderDiagram"),$6i=I(async function(e,r,i){try{return await F6i(e,r,i)}finally{H_e(void 0)}},"render");function Ptn(e={}){let r=Sd({},e);if(r?.fontFamily&&!r.themeVariables?.fontFamily){if(!r.themeVariables)r.themeVariables={};r.themeVariables.fontFamily=r.fontFamily}Jyr(r);let i=OR.theme;if(r?.theme&&Object.hasOwn(e3,r.theme))r.themeVariables=e3[r.theme].getThemeVariables(r.themeVariables);else if(r){if(r.theme!=null&&r.theme!=="null")r.theme=i;r.themeVariables=e3[i].getThemeVariables(r.themeVariables)}let a=typeof r==="object"?Zyr(r):EXe();cre(a.logLevel),uAe()}I(Ptn,"initialize");var U6i=I((e,r={})=>{let{code:i}=wgt(e);return lAe.fromText(i,r)},"getDiagramFromText");function Btn(e,r,i,a){Otn(r,e),Ntn(r,i,a,r.attr("id"))}I(Btn,"addA11yInfo");var zF=Object.freeze({render:$6i,parse:Dtn,getDiagramFromText:U6i,initialize:Ptn,getConfig:ea,setConfig:wXe,getSiteConfig:EXe,updateSiteConfig:evr,reset:I(()=>{Mre()},"reset"),globalReset:I(()=>{Mre(OR)},"globalReset"),defaultConfig:OR});cre(ea().logLevel);Mre(ea());var G6i=I((e,r,i)=>{if(Ze.warn(e),qEe(e)){if(i)i(e.str,e.hash);r.push({...e,message:e.str,error:e})}else{if(i)i(e);if(e instanceof Error)r.push({str:e.message,message:e.message,hash:e.name,error:e})}},"handleError"),Ftn=I(async function(e={querySelector:".mermaid"}){try{await z6i(e)}catch(r){if(qEe(r))Ze.error(r.str);if(HI.parseError)HI.parseError(r);if(!e.suppressErrors)throw Ze.error("Use the suppressErrors option to suppress these errors"),r}},"run"),z6i=I(async function({postRenderCallback:e,querySelector:r,nodes:i}={querySelector:".mermaid"}){let a=zF.getConfig();Ze.debug(`${!e?"No ":""}Callback function found`);let o;if(i)o=i;else if(r)o=document.querySelectorAll(r);else throw Error("Nodes and querySelector are both undefined");if(Ze.debug(`Found ${o.length} diagrams`),a?.startOnLoad!==void 0)Ze.debug("Start On Load: "+a?.startOnLoad),zF.updateSiteConfig({startOnLoad:a?.startOnLoad});let l=new Ts.InitIDGenerator(a.deterministicIds,a.deterministicIDSeed),h,d=[];for(let p of Array.from(o)){if(Ze.info("Rendering diagram: "+p.id),p.getAttribute("data-processed"))continue;p.setAttribute("data-processed","true");let m=`mermaid-${l.next()}`;h=p.innerHTML,h=ZEe(Ts.entityDecode(h)).trim().replace(//gi,"
    ");let y=Ts.detectInit(h);if(y)Ze.debug("Detected early reinit: ",y);try{let{svg:v,bindFunctions:w}=await ztn(m,h,p);if(p.innerHTML=v,e)await e(m);if(w)w(p)}catch(v){G6i(v,d,HI.parseError)}}if(d.length>0)throw d[0]},"runThrowsErrors"),$tn=I(function(e){zF.initialize(e)},"initialize"),V6i=I(async function(e,r,i){if(Ze.warn("mermaid.init is deprecated. Please use run instead."),e)$tn(e);let a={postRenderCallback:i,querySelector:".mermaid"};if(typeof r==="string")a.querySelector=r;else if(r)if(r instanceof HTMLElement)a.nodes=[r];else a.nodes=r;await Ftn(a)},"init"),H6i=I(async(e,{lazyLoad:r=!0}={})=>{if(uAe(),V_e(...e),r===!1)await u6i()},"registerExternalDiagrams"),Utn=I(function(){if(HI.startOnLoad){let{startOnLoad:e}=zF.getConfig();if(e)HI.run().catch((r)=>Ze.error("Mermaid failed to initialize",r))}},"contentLoaded");if(typeof document<"u")window.addEventListener("load",Utn,!1);var q6i=I(function(e){HI.parseError=e},"setParseErrorHandler"),cAe=[],_gt=!1,Gtn=I(async()=>{if(_gt)return;_gt=!0;while(cAe.length>0){let e=cAe.shift();if(e)try{await e()}catch(r){Ze.error("Error executing queue",r)}}_gt=!1},"executeQueue"),Y6i=I(async(e,r)=>new Promise((i,a)=>{let o=I(()=>new Promise((l,h)=>{zF.parse(e,r).then((d)=>{l(d),i(d)},(d)=>{Ze.error("Error parsing",d),HI.parseError?.(d),h(d),a(d)})}),"performCall");cAe.push(o),Gtn().catch(a)}),"parse"),ztn=I((e,r,i)=>new Promise((a,o)=>{let l=I(()=>new Promise((h,d)=>{zF.render(e,r,i).then((p)=>{h(p),a(p)},(p)=>{Ze.error("Error parsing",p),HI.parseError?.(p),d(p),o(p)})}),"performCall");cAe.push(l),Gtn().catch(o)}),"render"),W6i=I(()=>Object.keys(sL).map((e)=>({id:e})),"getRegisteredDiagramsMetadata"),HI={startOnLoad:!0,mermaidAPI:zF,parse:Y6i,render:ztn,init:V6i,run:Ftn,registerExternalDiagrams:H6i,registerLayoutLoaders:$ot,initialize:$tn,parseError:void 0,contentLoaded:Utn,setParseErrorHandler:q6i,detectType:qV,registerIconPacks:xH,getRegisteredDiagramsMetadata:W6i},Tgt=HI;/*! Check if previously processed *//*! * Wait for document loaded before starting the execution - */Egt.initialize({startOnLoad:!1,theme:"dark",securityLevel:"loose",fontFamily:"'JetBrains Mono', 'Inter', monospace",themeVariables:{darkMode:!0,background:"#090d16",primaryColor:"#00f2fe",primaryTextColor:"#f8fafc",primaryBorderColor:"#38bdf8",lineColor:"#a855f7",secondaryColor:"#1e293b",tertiaryColor:"#0f172a"}});function z6i(e){if(!e)return!1;if(/\\\w+/.test(e))return!0;if(/[\^_=<>~±×÷≠≤≥]/.test(e))return!0;if(/^\d/.test(e)){if(/^\d+(?:[.,]\d+)?(?:\s*[-–—]\s*\$?\d+(?:[.,]\d+)?)?$/.test(e))return!1}if(/^[a-zA-Z]$/.test(e)||/^[a-zA-Z]\s*[\+\-\*\/]\s*[a-zA-Z0-9]/.test(e))return!0;if(!/^\d/.test(e)&&!/\b(dollars?|cents?|usd|eur|gbp)\b/i.test(e))return!0;return!1}var V6i={name:"mathBlock",level:"block",start(e){let r=e.indexOf("$$"),i=e.indexOf("\\[");if(r===-1)return i===-1?void 0:i;if(i===-1)return r;return Math.min(r,i)},tokenizer(e){let r=/^\$\$([\s\S]+?)\$\$/.exec(e);if(r)return{type:"mathBlock",raw:r[0],text:r[1].trim()};let i=/^\\\[([\s\S]+?)\\\]/.exec(e);if(i)return{type:"mathBlock",raw:i[0],text:i[1].trim()}},renderer(e){try{return`
    ${nKe.renderToString(e.text,{displayMode:!0,throwOnError:!1,errorColor:"#f87171"})}
    `}catch(r){return`
    ${En(e.text)}
    `}}},H6i={name:"inlineMath",level:"inline",start(e){let r=e.indexOf("$"),i=e.indexOf("\\(");if(r===-1)return i===-1?void 0:i;if(i===-1)return r;return Math.min(r,i)},tokenizer(e){let r=/^\$([^\$\s](?:[^\$\n]*?[^\$\s])?)\$/.exec(e);if(r){let a=r[1].trim();if(!z6i(a))return;return{type:"inlineMath",raw:r[0],text:a}}let i=/^\\\(([\s\S]+?)\\\)/.exec(e);if(i)return{type:"inlineMath",raw:i[0],text:i[1].trim()}},renderer(e){try{return`${nKe.renderToString(e.text,{displayMode:!1,throwOnError:!1,errorColor:"#f87171"})}`}catch(r){return`${En(e.text)}`}}},q6i={NOTE:"ℹ️",TIP:"\uD83D\uDCA1",IMPORTANT:"\uD83D\uDCCC",WARNING:"⚠️",CAUTION:"\uD83D\uDED1"};function Y6i(e,r){let i=(r||"").trim().toLowerCase();if(["mermaid","diagram","chart","flowchart"].includes(i))return!0;if(!e)return!1;let a=e.replace(/%%\{[\s\S]*?\}%%/g,"").replace(/%%.*$/gm,"").trim();return/^(graph\s+(?:TD|TB|BT|RL|LR)|flowchart\s+(?:TD|TB|BT|RL|LR)|sequenceDiagram|classDiagram|stateDiagram(?:-v2)?|erDiagram|journey|gantt|pie|quadrantChart|requirementDiagram|gitGraph|C4(?:Context|Container|Component|Dynamic|Deployment)|mindmap|timeline|zenuml|sankey(?:-beta)?|xychart(?:-beta)?|block(?:-beta)?|packet(?:-beta)?|kanban|architecture(?:-beta)?)\b/i.test(a)}var W6i={code({text:e,lang:r}){if(Y6i(e,r)){let l="mermaid-"+Math.random().toString(36).substring(2,11);return` + */Tgt.initialize({startOnLoad:!1,theme:"dark",securityLevel:"loose",fontFamily:"'JetBrains Mono', 'Inter', monospace",themeVariables:{darkMode:!0,background:"#090d16",primaryColor:"#00f2fe",primaryTextColor:"#f8fafc",primaryBorderColor:"#38bdf8",lineColor:"#a855f7",secondaryColor:"#1e293b",tertiaryColor:"#0f172a"}});function j6i(e){if(!e)return!1;if(/\\\w+/.test(e))return!0;if(/[\^_=<>~±×÷≠≤≥]/.test(e))return!0;if(/^\d/.test(e)){if(/^\d+(?:[.,]\d+)?(?:\s*[-–—]\s*\$?\d+(?:[.,]\d+)?)?$/.test(e))return!1}if(/^[a-zA-Z]$/.test(e)||/^[a-zA-Z]\s*[\+\-\*\/]\s*[a-zA-Z0-9]/.test(e))return!0;if(!/^\d/.test(e)&&!/\b(dollars?|cents?|usd|eur|gbp)\b/i.test(e))return!0;return!1}var K6i={name:"mathBlock",level:"block",start(e){let r=e.indexOf("$$"),i=e.indexOf("\\[");if(r===-1)return i===-1?void 0:i;if(i===-1)return r;return Math.min(r,i)},tokenizer(e){let r=/^\$\$([\s\S]+?)\$\$/.exec(e);if(r)return{type:"mathBlock",raw:r[0],text:r[1].trim()};let i=/^\\\[([\s\S]+?)\\\]/.exec(e);if(i)return{type:"mathBlock",raw:i[0],text:i[1].trim()}},renderer(e){try{return`
    ${sKe.renderToString(e.text,{displayMode:!0,throwOnError:!1,errorColor:"#f87171"})}
    `}catch(r){return`
    ${nn(e.text)}
    `}}},X6i={name:"inlineMath",level:"inline",start(e){let r=e.indexOf("$"),i=e.indexOf("\\(");if(r===-1)return i===-1?void 0:i;if(i===-1)return r;return Math.min(r,i)},tokenizer(e){let r=/^\$([^\$\s](?:[^\$\n]*?[^\$\s])?)\$/.exec(e);if(r){let a=r[1].trim();if(!j6i(a))return;return{type:"inlineMath",raw:r[0],text:a}}let i=/^\\\(([\s\S]+?)\\\)/.exec(e);if(i)return{type:"inlineMath",raw:i[0],text:i[1].trim()}},renderer(e){try{return`${sKe.renderToString(e.text,{displayMode:!1,throwOnError:!1,errorColor:"#f87171"})}`}catch(r){return`${nn(e.text)}`}}},Q6i={NOTE:"ℹ️",TIP:"\uD83D\uDCA1",IMPORTANT:"\uD83D\uDCCC",WARNING:"⚠️",CAUTION:"\uD83D\uDED1"};function Z6i(e,r){let i=(r||"").trim().toLowerCase();if(["mermaid","diagram","chart","flowchart"].includes(i))return!0;if(!e)return!1;let a=e.replace(/%%\{[\s\S]*?\}%%/g,"").replace(/%%.*$/gm,"").trim();return/^(graph\s+(?:TD|TB|BT|RL|LR)|flowchart\s+(?:TD|TB|BT|RL|LR)|sequenceDiagram|classDiagram|stateDiagram(?:-v2)?|erDiagram|journey|gantt|pie|quadrantChart|requirementDiagram|gitGraph|C4(?:Context|Container|Component|Dynamic|Deployment)|mindmap|timeline|zenuml|sankey(?:-beta)?|xychart(?:-beta)?|block(?:-beta)?|packet(?:-beta)?|kanban|architecture(?:-beta)?)\b/i.test(a)}var J6i={code({text:e,lang:r}){if(Z6i(e,r)){let l="mermaid-"+Math.random().toString(36).substring(2,11);return`
    \uD83D\uDCCA Diagram Canvas @@ -4651,21 +4651,21 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, Theater - +
    -
    ${En(e)}
    +
    ${nn(e)}
    - + - `}let i=(r||"").trim().toLowerCase(),a=!!(i&&Yte.getLanguage(i)),o=a?Yte.highlight(e,{language:i,ignoreIllegals:!0}).value:En(e);return` + `}let i=(r||"").trim().toLowerCase(),a=!!(i&&Kte.getLanguage(i)),o=a?Kte.highlight(e,{language:i,ignoreIllegals:!0}).value:nn(e);return`
    ${i?i.toUpperCase():"TELEMETRY"} - +
    ${o}
    @@ -4674,7 +4674,7 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
    \uD83D\uDCC4 ${r} ↗ - `}let a=e.title?` title="${e.title}"`:"";return`${r}`}};ku.use({extensions:[V6i,H6i],renderer:W6i,breaks:!0,gfm:!0,hooks:{postprocess(e){return e=e.replace(/
    /g,'
    ').replace(/<\/table>/g,"
    "),e=e.replace(/
    \s*

    \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\s*)?([\s\S]*?)<\/blockquote>/gi,(r,i,a)=>{let o=i.toUpperCase(),l=q6i[o]||"ℹ️";return`

    ${l} ${o}

    ${a}

    `}),e}}});var at={sessions:[],stats:null,selectedSessionId:null,selectedSessionDetail:null,currentView:"dashboard",groupBy:localStorage.getItem("se_group_by")||"project",filterWorkspace:"",filterRuntime:"",dateFrom:"",dateTo:"",sortBy:"date",sortOrder:"desc",messageFilter:"ALL",searchQuery:"",searchResults:[],theme:localStorage.getItem("se_theme")||"dark",drilledProject:null,sessionStepSearch:"",sessionStepSort:"step_desc",projectFilters:{search:"",sort:"date_desc",dateFrom:"",dateTo:"",datePreset:"all"},liveInterval:parseInt(localStorage.getItem("se_live_interval")||"10000",10),lastSynced:new Date,activeTimelineSessionId:null,followStream:!0,tailEventSource:null,tailStreaming:!0,pendingStepsBuffer:[],renderedStepMap:new Map,theaterZoom:1,theaterPanX:0,theaterPanY:0,theaterRawSrc:"",fileViewerData:null,fileViewerMode:"preview",fileViewerWrap:!1,fileViewerTargetLine:null,fileViewerTargetLineEnd:null,fileFindQuery:"",fileFindCaseSensitive:!1,fileFindMatches:[],fileFindActiveIndex:-1,sessionFilesMap:new Map,agentMatrix:{scope:"global",type:"ALL",search:"",targetWorkspace:null,globalContext:null,workspaceContext:null},sessionMatrix:{lens:"active",type:"ALL",search:"",context:null,sessionId:null},sessionContextData:null},Ae={themeToggleBtn:document.getElementById("themeToggleBtn"),insightsBtn:document.getElementById("insightsBtn"),refreshBtn:document.getElementById("refreshBtn"),liveIntervalSelect:document.getElementById("liveIntervalSelect"),liveDot:document.getElementById("liveDot"),lastSyncLabel:document.getElementById("lastSyncLabel"),globalSearchInput:document.getElementById("globalSearchInput"),statsStrip:document.getElementById("statsStrip"),workspaceSelect:document.getElementById("workspaceSelect"),workspaceStrip:document.getElementById("workspaceStrip"),sortBySelect:document.getElementById("sortBySelect"),dateFromInput:document.getElementById("dateFromInput"),dateToInput:document.getElementById("dateToInput"),sessionCountBadge:document.getElementById("sessionCountBadge"),sessionGrid:document.getElementById("sessionGrid"),viewContainer:document.getElementById("viewContainer"),groupByControl:document.getElementById("groupByControl"),groupByBtns:document.querySelectorAll("#groupByControl .segment-btn"),runtimeControl:document.getElementById("runtimeControl"),runtimeBtns:document.querySelectorAll("#runtimeControl .segment-btn"),projectHeroBanner:document.getElementById("projectHeroBanner"),dashboardView:document.getElementById("dashboardView"),detailView:document.getElementById("detailView"),detailBackBtn:document.getElementById("detailBackBtn"),detailSessionId:document.getElementById("detailSessionId"),detailWorkspaceBadge:document.getElementById("detailWorkspaceBadge"),detailRuntimeBadge:document.getElementById("detailRuntimeBadge"),detailTime:document.getElementById("detailTime"),detailFilesBtn:document.getElementById("detailFilesBtn"),detailFilesCountBadge:document.getElementById("detailFilesCountBadge"),exportMdBtn:document.getElementById("exportMdBtn"),exportJsonBtn:document.getElementById("exportJsonBtn"),timelineContainer:document.getElementById("timelineContainer"),tailStreamControl:document.getElementById("tailStreamControl"),toggleStreamBtn:document.getElementById("toggleStreamBtn"),detailLiveDot:document.getElementById("detailLiveDot"),tailStatusLabel:document.getElementById("tailStatusLabel"),toggleFollowStreamBtn:document.getElementById("toggleFollowStreamBtn"),refreshTrailBtn:document.getElementById("refreshTrailBtn"),newStepsFloatingBtn:document.getElementById("newStepsFloatingBtn"),msgFilterChips:document.querySelectorAll(".msg-filter-chip"),sessionStepSearchInput:document.getElementById("sessionStepSearchInput"),clearSessionStepSearchBtn:document.getElementById("clearSessionStepSearchBtn"),sessionStepSortSelect:document.getElementById("sessionStepSortSelect"),detailStepCountBadge:document.getElementById("detailStepCountBadge"),resetSessionStepFiltersBtn:document.getElementById("resetSessionStepFiltersBtn"),datePresets:document.querySelectorAll(".date-preset-chip"),searchModal:document.getElementById("searchModal"),modalSearchInput:document.getElementById("modalSearchInput"),modalSearchResults:document.getElementById("modalSearchResults"),closeSearchModalBtn:document.getElementById("closeSearchModalBtn"),insightsModal:document.getElementById("insightsModal"),closeInsightsModalBtn:document.getElementById("closeInsightsModalBtn"),topToolsList:document.getElementById("topToolsList"),topPromptsList:document.getElementById("topPromptsList"),installSkillBtn:document.getElementById("installSkillBtn"),installSkillModal:document.getElementById("installSkillModal"),closeInstallModalBtn:document.getElementById("closeInstallModalBtn"),doInstallSkillBtn:document.getElementById("doInstallSkillBtn"),copyInstallCmdBtn:document.getElementById("copyInstallCmdBtn"),installStatusText:document.getElementById("installStatusText"),diagramTheaterModal:document.getElementById("diagramTheaterModal"),diagramTheaterTitleText:document.getElementById("diagramTheaterTitleText"),diagramTheaterViewport:document.getElementById("diagramTheaterViewport"),diagramTheaterSurface:document.getElementById("diagramTheaterSurface"),theaterZoomOutBtn:document.getElementById("theaterZoomOutBtn"),theaterZoomBadge:document.getElementById("theaterZoomBadge"),theaterZoomInBtn:document.getElementById("theaterZoomInBtn"),theaterZoomResetBtn:document.getElementById("theaterZoomResetBtn"),theaterFitBtn:document.getElementById("theaterFitBtn"),theaterCopySvgBtn:document.getElementById("theaterCopySvgBtn"),theaterCopySrcBtn:document.getElementById("theaterCopySrcBtn"),closeDiagramTheaterBtn:document.getElementById("closeDiagramTheaterBtn"),fileViewerModal:document.getElementById("fileViewerModal"),fileViewerIcon:document.getElementById("fileViewerIcon"),fileViewerFilename:document.getElementById("fileViewerFilename"),fileViewerPath:document.getElementById("fileViewerPath"),fileViewerLangBadge:document.getElementById("fileViewerLangBadge"),fileViewerLinesBadge:document.getElementById("fileViewerLinesBadge"),fileViewerSizeBadge:document.getElementById("fileViewerSizeBadge"),fileViewerModeControl:document.getElementById("fileViewerModeControl"),fileViewerWrapBtn:document.getElementById("fileViewerWrapBtn"),fileViewerCopyContentBtn:document.getElementById("fileViewerCopyContentBtn"),fileViewerCopyPathBtn:document.getElementById("fileViewerCopyPathBtn"),closeFileViewerBtn:document.getElementById("closeFileViewerBtn"),fileViewerBody:document.getElementById("fileViewerBody"),fileViewerLoading:document.getElementById("fileViewerLoading"),fileViewerError:document.getElementById("fileViewerError"),fileViewerMarkdown:document.getElementById("fileViewerMarkdown"),fileViewerCodeContainer:document.getElementById("fileViewerCodeContainer"),fileViewerLineNumbers:document.getElementById("fileViewerLineNumbers"),fileViewerCodeBlock:document.getElementById("fileViewerCodeBlock"),fileViewerImageContainer:document.getElementById("fileViewerImageContainer"),fileViewerImage:document.getElementById("fileViewerImage"),fileViewerOpenFindBtn:document.getElementById("fileViewerOpenFindBtn"),fileViewerFindWidget:document.getElementById("fileViewerFindWidget"),fileFindInput:document.getElementById("fileFindInput"),fileFindCaseBtn:document.getElementById("fileFindCaseBtn"),fileFindCountBadge:document.getElementById("fileFindCountBadge"),fileFindPrevBtn:document.getElementById("fileFindPrevBtn"),fileFindNextBtn:document.getElementById("fileFindNextBtn"),fileFindCloseBtn:document.getElementById("fileFindCloseBtn"),sessionFilesModal:document.getElementById("sessionFilesModal"),closeSessionFilesModalBtn:document.getElementById("closeSessionFilesModalBtn"),sessionFilesTotalCount:document.getElementById("sessionFilesTotalCount"),sessionFilesListContainer:document.getElementById("sessionFilesListContainer"),agentBrainBtn:document.getElementById("agentBrainBtn"),agentMatrixModal:document.getElementById("agentMatrixModal"),closeAgentMatrixModalBtn:document.getElementById("closeAgentMatrixModalBtn"),agentMatrixScopeControl:document.getElementById("agentMatrixScopeControl"),agentMatrixWorkspaceSegment:document.getElementById("agentMatrixWorkspaceSegment"),agentMatrixSearchInput:document.getElementById("agentMatrixSearchInput"),clearAgentMatrixSearchBtn:document.getElementById("clearAgentMatrixSearchBtn"),agentMatrixTotalCountBadge:document.getElementById("agentMatrixTotalCountBadge"),agentMatrixRulesCount:document.getElementById("agentMatrixRulesCount"),agentMatrixSkillsCount:document.getElementById("agentMatrixSkillsCount"),agentMatrixPluginsCount:document.getElementById("agentMatrixPluginsCount"),agentMatrixHooksCount:document.getElementById("agentMatrixHooksCount"),agentMatrixContent:document.getElementById("agentMatrixContent"),detailAgentContextBtn:document.getElementById("detailAgentContextBtn"),detailAgentContextCount:document.getElementById("detailAgentContextCount"),sessionContextModal:document.getElementById("sessionContextModal"),closeSessionContextModalBtn:document.getElementById("closeSessionContextModalBtn"),sessionContextIdBadge:document.getElementById("sessionContextIdBadge"),sessionContextContent:document.getElementById("sessionContextContent"),sessionMatrixTotalCountBadge:document.getElementById("sessionMatrixTotalCountBadge"),sessionMatrixLensControl:document.getElementById("sessionMatrixLensControl"),sessionMatrixSearchInput:document.getElementById("sessionMatrixSearchInput"),clearSessionMatrixSearchBtn:document.getElementById("clearSessionMatrixSearchBtn"),sessionMatrixChipAll:document.getElementById("sessionMatrixChipAll"),sessionMatrixChipSkills:document.getElementById("sessionMatrixChipSkills"),sessionMatrixChipSkillsLabel:document.getElementById("sessionMatrixChipSkillsLabel"),sessionMatrixChipMCP:document.getElementById("sessionMatrixChipMCP"),sessionMatrixChipNative:document.getElementById("sessionMatrixChipNative"),sessionMatrixChipRules:document.getElementById("sessionMatrixChipRules"),sessionMatrixChipOrch:document.getElementById("sessionMatrixChipOrch"),sessionMatrixInjectedVal:document.getElementById("sessionMatrixInjectedVal"),sessionMatrixMCPVal:document.getElementById("sessionMatrixMCPVal"),sessionMatrixDiversityVal:document.getElementById("sessionMatrixDiversityVal"),sessionMatrixOndemandVal:document.getElementById("sessionMatrixOndemandVal"),sessionMatrixReliabilityVal:document.getElementById("sessionMatrixReliabilityVal"),toast:document.getElementById("toastNotification")};document.addEventListener("DOMContentLoaded",()=>{j6i(),Q6i(),X6i(),sOi(),Xtn("all")});function j6i(){document.documentElement.setAttribute("data-theme",at.theme),Wtn()}function K6i(){at.theme=at.theme==="dark"?"light":"dark",document.documentElement.setAttribute("data-theme",at.theme),localStorage.setItem("se_theme",at.theme),Wtn()}function Wtn(){if(Ae.themeToggleBtn)Ae.themeToggleBtn.textContent=at.theme==="dark"?"☀️":"\uD83C\uDF19"}function ob(e){if(!Ae.toast)return;Ae.toast.textContent=e,Ae.toast.classList.add("active"),setTimeout(()=>{Ae.toast.classList.remove("active")},2500)}var lAe=null,wgt=null;function X6i(){if(Ae.liveIntervalSelect)Ae.liveIntervalSelect.value=String(at.liveInterval),Ae.liveIntervalSelect.addEventListener("change",(e)=>{Ftn(parseInt(e.target.value,10))});if(Ftn(at.liveInterval),wgt)clearInterval(wgt);wgt=setInterval(jtn,4000)}function Ftn(e){if(lAe)clearInterval(lAe),lAe=null;at.liveInterval=e,localStorage.setItem("se_live_interval",String(e));let r=Math.floor(e/1000);if(fetch("/api/watch-interval",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interval_seconds:r})}).catch(()=>{}),Ae.liveDot)if(e>0)Ae.liveDot.classList.add("active","pulsing"),Ae.liveDot.title=`Live Watch active (every ${e/1000}s)`;else Ae.liveDot.classList.remove("active","pulsing"),Ae.liveDot.title="Live Watch paused (Manual mode)";if(e>0)lAe=setInterval(()=>{Ktn(!0)},e)}function jtn(){if(!Ae.lastSyncLabel)return;let e=Math.floor((Date.now()-at.lastSynced.getTime())/1000);if(e<3)Ae.lastSyncLabel.textContent="Synced just now";else if(e<60)Ae.lastSyncLabel.textContent=`Synced ${e}s ago`;else{let r=Math.floor(e/60);Ae.lastSyncLabel.textContent=`Synced ${r}m ago`}}async function Ktn(e=!1){if(!e&&Ae.refreshBtn)Ae.refreshBtn.classList.add("spinning");try{if(await fetch("/api/refresh",{method:"POST"}).catch(()=>{}),await sA(),at.currentView==="detail"&&at.selectedSessionId)try{let r=await fetch(`/api/sessions/${at.selectedSessionId}`);if(r.ok){let i=await r.json();at.selectedSessionDetail=i,oA()}}catch(r){}if(at.lastSynced=new Date,jtn(),!e)ob("\uD83D\uDD04 Sessions refreshed")}catch(r){console.error("Refresh error:",r)}finally{if(!e&&Ae.refreshBtn)setTimeout(()=>Ae.refreshBtn.classList.remove("spinning"),500)}}function Q6i(){if(Ae.themeToggleBtn)Ae.themeToggleBtn.addEventListener("click",K6i);if(Ae.refreshBtn)Ae.refreshBtn.addEventListener("click",()=>Ktn(!1));if(Ae.insightsBtn)Ae.insightsBtn.addEventListener("click",hOi);if(Ae.closeInsightsModalBtn)Ae.closeInsightsModalBtn.addEventListener("click",ztn);if(Ae.installSkillBtn)Ae.installSkillBtn.addEventListener("click",dOi);if(Ae.closeInstallModalBtn)Ae.closeInstallModalBtn.addEventListener("click",Vtn);if(Ae.copyInstallCmdBtn)Ae.copyInstallCmdBtn.addEventListener("click",()=>{navigator.clipboard.writeText("make setup-session-wip"),ob("Command copied: make setup-session-wip")});if(Ae.doInstallSkillBtn)Ae.doInstallSkillBtn.addEventListener("click",fOi);if(Ae.globalSearchInput)Ae.globalSearchInput.addEventListener("focus",()=>{Tgt(),Ae.globalSearchInput.blur()});if(Ae.closeSearchModalBtn)Ae.closeSearchModalBtn.addEventListener("click",Cgt);if(Ae.modalSearchInput){let a;Ae.modalSearchInput.addEventListener("input",(o)=>{clearTimeout(a),a=setTimeout(()=>{J6i(o.target.value.trim())},250)})}if(window.addEventListener("keydown",(a)=>{if((a.metaKey||a.ctrlKey)&&a.key==="k")a.preventDefault(),Tgt();if((a.metaKey||a.ctrlKey)&&(a.key==="f"||a.key==="F")){if(Ae.fileViewerModal&&Ae.fileViewerModal.classList.contains("file-viewer-open"))a.preventDefault(),Igt()}if(a.key==="/"&&document.activeElement.tagName!=="INPUT"&&document.activeElement.tagName!=="TEXTAREA")a.preventDefault(),Tgt();if((a.key==="r"||a.key==="R")&&!a.metaKey&&!a.ctrlKey&&!a.altKey){if(at.currentView==="detail"&&document.activeElement.tagName!=="INPUT"&&document.activeElement.tagName!=="TEXTAREA")a.preventDefault(),cAe(!0)}if(a.key==="Escape"){if(Ae.fileViewerFindWidget&&Ae.fileViewerFindWidget.style.display!=="none")cle();else if(Ae.diagramTheaterModal&&Ae.diagramTheaterModal.classList.contains("theater-open"))Agt();else if(Ae.fileViewerModal&&Ae.fileViewerModal.classList.contains("file-viewer-open"))Rgt();else if(Ae.sessionFilesModal&&Ae.sessionFilesModal.classList.contains("active"))dle();else if(Ae.agentMatrixModal&&Ae.agentMatrixModal.classList.contains("active"))zgt();else if(Ae.sessionContextModal&&Ae.sessionContextModal.classList.contains("active"))gAe();else if(Ae.searchModal&&Ae.searchModal.classList.contains("active"))Cgt();else if(Ae.insightsModal&&Ae.insightsModal.classList.contains("active"))ztn();else if(Ae.installSkillModal&&Ae.installSkillModal.classList.contains("active"))Vtn();else if(at.currentView==="detail")lle()}}),Ae.workspaceSelect)Ae.workspaceSelect.addEventListener("change",(a)=>{let o=a.target.value;if(at.filterWorkspace=o,at.groupBy==="project")at.drilledProject=o||null;sA()});if(Ae.sortBySelect)Ae.sortBySelect.addEventListener("change",(a)=>{let o=a.target.value;if(o==="date_asc")at.sortBy="date",at.sortOrder="asc";else at.sortBy=o,at.sortOrder="desc";sA()});let e=()=>{if(at.dateFrom=Ae.dateFromInput?Ae.dateFromInput.value:"",at.dateTo=Ae.dateToInput?Ae.dateToInput.value:"",Ae.datePresets){if(Ae.datePresets.forEach((a)=>a.classList.remove("active")),!at.dateFrom&&!at.dateTo){let a=Array.from(Ae.datePresets).find((o)=>o.dataset.preset==="all");if(a)a.classList.add("active")}}sA()};if(Ae.dateFromInput)Ae.dateFromInput.addEventListener("change",e),Ae.dateFromInput.addEventListener("input",e);if(Ae.dateToInput)Ae.dateToInput.addEventListener("change",e),Ae.dateToInput.addEventListener("input",e);if(Ae.datePresets.forEach((a)=>{a.addEventListener("click",()=>{Xtn(a.dataset.preset)})}),Ae.msgFilterChips.forEach((a)=>{a.addEventListener("click",()=>{Ae.msgFilterChips.forEach((o)=>o.classList.remove("active")),a.classList.add("active"),at.messageFilter=a.dataset.filter,oA()})}),Ae.sessionStepSearchInput)Ae.sessionStepSearchInput.addEventListener("input",(a)=>{if(at.sessionStepSearch=a.target.value,Ae.clearSessionStepSearchBtn)Ae.clearSessionStepSearchBtn.style.display=at.sessionStepSearch?"inline-flex":"none";oA()});if(Ae.clearSessionStepSearchBtn)Ae.clearSessionStepSearchBtn.addEventListener("click",()=>{if(at.sessionStepSearch="",Ae.sessionStepSearchInput)Ae.sessionStepSearchInput.value="",Ae.sessionStepSearchInput.focus();Ae.clearSessionStepSearchBtn.style.display="none",oA()});if(Ae.sessionStepSortSelect)Ae.sessionStepSortSelect.addEventListener("change",(a)=>{at.sessionStepSort=a.target.value,oA()});if(Ae.resetSessionStepFiltersBtn)Ae.resetSessionStepFiltersBtn.addEventListener("click",()=>{Jtn()});if(Ae.detailBackBtn)Ae.detailBackBtn.addEventListener("click",lle);if(Ae.exportMdBtn)Ae.exportMdBtn.addEventListener("click",()=>Gtn("markdown"));if(Ae.exportJsonBtn)Ae.exportJsonBtn.addEventListener("click",()=>Gtn("json"));if(Ae.groupByBtns)Ae.groupByBtns.forEach((a)=>{a.addEventListener("click",()=>{Ae.groupByBtns.forEach((o)=>o.classList.remove("active")),a.classList.add("active"),at.groupBy=a.dataset.group,at.drilledProject=null,localStorage.setItem("se_group_by",at.groupBy),Ztn()})});if(Ae.runtimeBtns)Ae.runtimeBtns.forEach((a)=>{a.addEventListener("click",()=>{Ae.runtimeBtns.forEach((o)=>o.classList.remove("active")),a.classList.add("active"),at.filterRuntime=a.dataset.runtime||"",sA()})});if(Ae.toggleStreamBtn)Ae.toggleStreamBtn.addEventListener("click",(a)=>{if(a.stopPropagation(),at.tailStreaming)Pgt(!0);else if(at.selectedSessionId)nrn(at.selectedSessionId),cAe(!1)});if(Ae.toggleFollowStreamBtn)Ae.toggleFollowStreamBtn.addEventListener("click",()=>{if(at.followStream=!at.followStream,Ae.toggleFollowStreamBtn.classList.toggle("active",at.followStream),at.followStream)Utn(),cAe(!1)});if(Ae.refreshTrailBtn)Ae.refreshTrailBtn.addEventListener("click",()=>{cAe(!0)});if(Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.addEventListener("click",()=>{Utn()});window.addEventListener("scroll",()=>{if(at.currentView!=="detail")return;if(!((at.sessionStepSort||"step_desc")==="step_desc"?window.scrollY<=150:window.innerHeight+window.scrollY>=document.body.offsetHeight-150)){if(at.followStream){if(at.followStream=!1,Ae.toggleFollowStreamBtn)Ae.toggleFollowStreamBtn.classList.remove("active")}}else if(!at.pendingStepsBuffer||at.pendingStepsBuffer.length===0){if(Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none"}},{passive:!0});let r=null;window.addEventListener("resize",()=>{clearTimeout(r),r=setTimeout(()=>{if(Ae.sessionContextModal&&Ae.sessionContextModal.classList.contains("active"))zI();if(Ae.agentMatrixModal&&Ae.agentMatrixModal.classList.contains("active"))xW()},120)},{passive:!0});let i=document.getElementById("brandBtn");if(i)i.addEventListener("click",()=>{if(at.drilledProject=null,at.filterWorkspace="",Ae.workspaceSelect)Ae.workspaceSelect.value="";window.location.hash="#/",lle(),sA()});if(Ae.closeDiagramTheaterBtn)Ae.closeDiagramTheaterBtn.addEventListener("click",Agt);if(Ae.theaterZoomInBtn)Ae.theaterZoomInBtn.addEventListener("click",()=>{at.theaterZoom=Math.min(4,+(at.theaterZoom+0.25).toFixed(2)),GF()});if(Ae.theaterZoomOutBtn)Ae.theaterZoomOutBtn.addEventListener("click",()=>{at.theaterZoom=Math.max(0.4,+(at.theaterZoom-0.25).toFixed(2)),GF()});if(Ae.theaterZoomResetBtn)Ae.theaterZoomResetBtn.addEventListener("click",()=>{at.theaterZoom=1,at.theaterPanX=0,at.theaterPanY=0,GF()});if(Ae.theaterFitBtn)Ae.theaterFitBtn.addEventListener("click",()=>{at.theaterZoom=1,at.theaterPanX=0,at.theaterPanY=0,GF()});if(Ae.theaterCopySvgBtn)Ae.theaterCopySvgBtn.addEventListener("click",()=>{let a=Ae.diagramTheaterSurface?.querySelector("svg");if(a)copyToClipboard(a.outerHTML,"Diagram SVG copied to clipboard!");else ob("No SVG diagram found")});if(Ae.theaterCopySrcBtn)Ae.theaterCopySrcBtn.addEventListener("click",()=>{copyToClipboard(at.theaterRawSrc,"Diagram code copied to clipboard!")});if(Ae.diagramTheaterViewport)Ae.diagramTheaterViewport.addEventListener("mousedown",(a)=>{if(a.target.closest("button"))return;uAe=!0,Htn=a.clientX-at.theaterPanX,qtn=a.clientY-at.theaterPanY,Ae.diagramTheaterViewport.style.cursor="grabbing"}),window.addEventListener("mousemove",(a)=>{if(!uAe)return;at.theaterPanX=a.clientX-Htn,at.theaterPanY=a.clientY-qtn,GF()}),window.addEventListener("mouseup",()=>{if(uAe){if(uAe=!1,Ae.diagramTheaterViewport)Ae.diagramTheaterViewport.style.cursor="grab"}}),Ae.diagramTheaterViewport.addEventListener("wheel",(a)=>{if(a.ctrlKey||a.metaKey){a.preventDefault();let o=a.deltaY<0?0.15:-0.15;at.theaterZoom=Math.min(4,Math.max(0.4,+(at.theaterZoom+o).toFixed(2))),GF()}},{passive:!1});if(Ae.closeFileViewerBtn)Ae.closeFileViewerBtn.addEventListener("click",Rgt);if(Ae.fileViewerWrapBtn)Ae.fileViewerWrapBtn.addEventListener("click",()=>{at.fileViewerWrap=!at.fileViewerWrap,Ae.fileViewerWrapBtn.classList.toggle("active",at.fileViewerWrap),Ae.fileViewerWrapBtn.innerHTML=at.fileViewerWrap?"✓ Wrapped":"↩ Wrap";let a=Ae.fileViewerCodeContainer?.querySelector(".code-content-pre");if(a)a.classList.toggle("wrap-code",at.fileViewerWrap);ob(at.fileViewerWrap?"Line wrap enabled":"Line wrap disabled")});if(Ae.fileViewerCopyContentBtn)Ae.fileViewerCopyContentBtn.addEventListener("click",()=>{if(at.fileViewerData&&at.fileViewerData.content){copyToClipboard(at.fileViewerData.content,"File content copied to clipboard!");let a=Ae.fileViewerCopyContentBtn.innerHTML;Ae.fileViewerCopyContentBtn.innerHTML="✓ Copied!",Ae.fileViewerCopyContentBtn.classList.add("btn-action-success"),setTimeout(()=>{Ae.fileViewerCopyContentBtn.innerHTML=a,Ae.fileViewerCopyContentBtn.classList.remove("btn-action-success")},1500)}});if(Ae.fileViewerCopyPathBtn)Ae.fileViewerCopyPathBtn.addEventListener("click",()=>{if(at.fileViewerData&&at.fileViewerData.path){copyToClipboard(at.fileViewerData.path,"File path copied to clipboard!");let a=Ae.fileViewerCopyPathBtn.innerHTML;Ae.fileViewerCopyPathBtn.innerHTML="✓ Path Copied!",Ae.fileViewerCopyPathBtn.classList.add("btn-action-success"),setTimeout(()=>{Ae.fileViewerCopyPathBtn.innerHTML=a,Ae.fileViewerCopyPathBtn.classList.remove("btn-action-success")},1500)}});if(Ae.fileViewerPath)Ae.fileViewerPath.addEventListener("click",()=>{if(at.fileViewerData&&at.fileViewerData.path)copyToClipboard(at.fileViewerData.path,"File path copied to clipboard!"),Ae.fileViewerPath.classList.add("copied-flash"),setTimeout(()=>{Ae.fileViewerPath.classList.remove("copied-flash")},1500)});if(Ae.fileViewerModeControl)Ae.fileViewerModeControl.querySelectorAll(".segment-btn").forEach((a)=>{a.addEventListener("click",()=>{at.fileViewerMode=a.dataset.mode,srn()})});if(Ae.fileViewerOpenFindBtn)Ae.fileViewerOpenFindBtn.addEventListener("click",Igt);if(Ae.fileFindCloseBtn)Ae.fileFindCloseBtn.addEventListener("click",cle);if(Ae.fileFindCaseBtn)Ae.fileFindCaseBtn.addEventListener("click",pOi);if(Ae.fileFindNextBtn)Ae.fileFindNextBtn.addEventListener("click",dAe);if(Ae.fileFindPrevBtn)Ae.fileFindPrevBtn.addEventListener("click",fAe);if(Ae.fileFindInput)Ae.fileFindInput.addEventListener("input",()=>{fle()}),Ae.fileFindInput.addEventListener("keydown",(a)=>{if(a.key==="Enter")if(a.preventDefault(),a.shiftKey)fAe();else dAe();else if(a.key==="Escape")a.preventDefault(),cle();else if(a.key==="ArrowDown")a.preventDefault(),dAe();else if(a.key==="ArrowUp")a.preventDefault(),fAe()});if(Ae.detailFilesBtn)Ae.detailFilesBtn.addEventListener("click",lrn);if(Ae.closeSessionFilesModalBtn)Ae.closeSessionFilesModalBtn.addEventListener("click",dle);gOi()}function WC(e){let r=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${r}-${i}-${a}`}function Xtn(e){if(Ae.datePresets)Ae.datePresets.forEach((o)=>{o.classList.toggle("active",o.dataset.preset===e)});let r=new Date,i="",a="";switch(e){case"today":i=WC(r),a=WC(r);break;case"7d":{let o=new Date(r);o.setDate(o.getDate()-7),i=WC(o),a=WC(r);break}case"30d":{let o=new Date(r);o.setDate(o.getDate()-30),i=WC(o),a=WC(r);break}case"all":default:i="",a="";break}if(at.dateFrom=i,at.dateTo=a,Ae.dateFromInput)Ae.dateFromInput.value=i;if(Ae.dateToInput)Ae.dateToInput.value=a;sA()}async function sA(){try{let e=new URLSearchParams,r=at.filterWorkspace||(at.groupBy==="project"&&at.drilledProject?at.drilledProject:"");if(r)e.append("workspace",r);if(at.filterRuntime)e.append("runtime",at.filterRuntime);if(at.sortBy)e.append("sort_by",at.sortBy);if(at.sortOrder)e.append("sort_order",at.sortOrder);if(at.dateFrom)e.append("from",at.dateFrom);if(at.dateTo)e.append("to",at.dateTo);let i=await fetch(`/api/sessions?${e.toString()}`);if(!i.ok)throw Error(`HTTP error! status: ${i.status}`);let a=await i.json();at.sessions=a.sessions||[],at.stats=a.stats||null,eOi(),tOi(),Ztn()}catch(e){console.error("Failed to load sessions:",e),ob("❌ Error loading sessions")}}function Qtn(e){if(!e)return;e.classList.remove("updated"),e.offsetWidth,e.classList.add("updated"),setTimeout(()=>{e.classList.remove("updated")},650)}function Ngt(e,r=!1){if(!e||!Ae.detailAgentContextCount)return;let i=e.active_rules?e.active_rules.length:0,a=e.active_skills?e.active_skills.length:0,o=0;(e.mcp_servers||[]).forEach((y)=>{o+=(y.active_tools||[]).length});let l=e.native_tools?e.native_tools.length:0,h=e.subagents?e.subagents.length:0,d=i+a+o+l+h,p=Ae.detailAgentContextCount.textContent.trim(),m=parseInt(p,10);if(Ae.detailAgentContextCount.textContent=d.toString(),Ae.detailAgentContextBtn)Ae.detailAgentContextBtn.title=`${d} active agent elements (${i} rules • ${a} skills • ${o} MCP tools • ${l} native tools • ${h} subagents)`;if(r||!isNaN(m)&&m!==d)Qtn(Ae.detailAgentContextCount)}var Sgt=null;function Z6i(e){if(!e)return;if(Sgt)clearTimeout(Sgt);Sgt=setTimeout(()=>{fetch(`/api/sessions/${e}/context`).then((r)=>r.ok?r.json():null).then((r)=>{if(!r)return;if(at.sessionContextData=r,at.sessionMatrix.context=r,Ngt(r),Ae.sessionContextModal&&Ae.sessionContextModal.classList.contains("active"))zI()}).catch((r)=>console.warn("Live context sync error:",r))},350)}async function Lgt(e){try{let r=await fetch(`/api/sessions/${e}`);if(!r.ok)throw Error(`HTTP error! status: ${r.status}`);let i=await r.json();at.selectedSessionId=e,at.selectedSessionDetail=i,aOi(i),fetch(`/api/sessions/${e}/context`).then((a)=>a.ok?a.json():null).then((a)=>{if(!a)return;at.sessionContextData=a,at.sessionMatrix.context=a,Ngt(a,!1)}).catch((a)=>console.warn("Context fetch error:",a))}catch(r){console.error("Failed to load session detail:",r),ob(`❌ Error loading session detail: ${r.message}`)}}async function J6i(e){if(!e){Ae.modalSearchResults.innerHTML='
    \uD83D\uDD0D

    Type keywords to search across all prompt transcripts

    ';return}try{let r=new URLSearchParams({q:e}),i=at.filterWorkspace||(at.groupBy==="project"&&at.drilledProject?at.drilledProject:"");if(i)r.append("workspace",i);let a=await fetch(`/api/search?${r.toString()}`);if(!a.ok)throw Error(`Search error: ${a.status}`);let o=await a.json();cOi(o.results||[],e)}catch(r){console.error("Search failed:",r),Ae.modalSearchResults.innerHTML='

    Search error occurred.

    '}}function eOi(){if(!at.stats||!Ae.statsStrip)return;let e=at.stats;Ae.statsStrip.innerHTML=` + `}let a=e.title?` title="${e.title}"`:"";return`${r}`}};ku.use({extensions:[K6i,X6i],renderer:J6i,breaks:!0,gfm:!0,hooks:{postprocess(e){return e=e.replace(//g,'
    ').replace(/<\/table>/g,"
    "),e=e.replace(/
    \s*

    \[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\s*)?([\s\S]*?)<\/blockquote>/gi,(r,i,a)=>{let o=i.toUpperCase(),l=Q6i[o]||"ℹ️";return`

    ${l} ${o}

    ${a}

    `}),e}}});var nt={sessions:[],stats:null,selectedSessionId:null,selectedSessionDetail:null,currentView:"dashboard",groupBy:localStorage.getItem("se_group_by")||"project",filterWorkspace:"",filterRuntime:"",dateFrom:"",dateTo:"",sortBy:"active",sortOrder:"desc",dateGroupingMode:"active",messageFilter:"ALL",searchQuery:"",searchResults:[],theme:localStorage.getItem("se_theme")||"dark",drilledProject:null,sessionStepSearch:"",sessionStepSort:"step_desc",projectFilters:{search:"",sort:"active",dateFrom:"",dateTo:"",datePreset:"all",dateMode:"active"},liveInterval:parseInt(localStorage.getItem("se_live_interval")||"10000",10),lastSynced:new Date,activeTimelineSessionId:null,followStream:!0,tailEventSource:null,tailStreaming:!0,pendingStepsBuffer:[],renderedStepMap:new Map,theaterZoom:1,theaterPanX:0,theaterPanY:0,theaterRawSrc:"",fileViewerData:null,fileViewerMode:"preview",fileViewerWrap:!1,fileViewerTargetLine:null,fileViewerTargetLineEnd:null,fileFindQuery:"",fileFindCaseSensitive:!1,fileFindMatches:[],fileFindActiveIndex:-1,sessionFilesMap:new Map,sessionFiles:{lens:"catalog",type:"ALL",search:"",sort:"type_priority",records:[],telemetry:null,sessionId:null},agentMatrix:{scope:"global",type:"ALL",search:"",sort:"bloat_desc",targetWorkspace:null,globalContext:null,workspaceContext:null},sessionMatrix:{lens:"active",type:"ALL",search:"",sort:"calls_desc",context:null,sessionId:null},sessionContextData:null},ve={themeToggleBtn:document.getElementById("themeToggleBtn"),insightsBtn:document.getElementById("insightsBtn"),refreshBtn:document.getElementById("refreshBtn"),liveIntervalSelect:document.getElementById("liveIntervalSelect"),liveDot:document.getElementById("liveDot"),lastSyncLabel:document.getElementById("lastSyncLabel"),globalSearchInput:document.getElementById("globalSearchInput"),statsStrip:document.getElementById("statsStrip"),workspaceSelect:document.getElementById("workspaceSelect"),workspaceStrip:document.getElementById("workspaceStrip"),sortBySelect:document.getElementById("sortBySelect"),dateFromInput:document.getElementById("dateFromInput"),dateToInput:document.getElementById("dateToInput"),sessionCountBadge:document.getElementById("sessionCountBadge"),sessionGrid:document.getElementById("sessionGrid"),viewContainer:document.getElementById("viewContainer"),groupByControl:document.getElementById("groupByControl"),groupByBtns:document.querySelectorAll("#groupByControl .segment-btn"),runtimeControl:document.getElementById("runtimeControl"),runtimeBtns:document.querySelectorAll("#runtimeControl .segment-btn"),projectHeroBanner:document.getElementById("projectHeroBanner"),dashboardView:document.getElementById("dashboardView"),detailView:document.getElementById("detailView"),detailBackBtn:document.getElementById("detailBackBtn"),detailSessionCapsule:document.getElementById("detailSessionCapsule"),detailSessionId:document.getElementById("detailSessionId"),copySessionIdBtn:document.getElementById("copySessionIdBtn"),detailWorkspaceBadge:document.getElementById("detailWorkspaceBadge"),detailRuntimeBadge:document.getElementById("detailRuntimeBadge"),detailTemporalCapsule:document.getElementById("detailTemporalCapsule"),detailActivePill:document.getElementById("detailActivePill"),detailPulseDot:document.getElementById("detailPulseDot"),detailActiveTime:document.getElementById("detailActiveTime"),detailCreatedPill:document.getElementById("detailCreatedPill"),detailCreatedTime:document.getElementById("detailCreatedTime"),detailLifespanPill:document.getElementById("detailLifespanPill"),detailLifespanText:document.getElementById("detailLifespanText"),detailTime:document.getElementById("detailTime"),detailFilesBtn:document.getElementById("detailFilesBtn"),detailFilesCountBadge:document.getElementById("detailFilesCountBadge"),exportMdBtn:document.getElementById("exportMdBtn"),exportJsonBtn:document.getElementById("exportJsonBtn"),timelineContainer:document.getElementById("timelineContainer"),tailStreamControl:document.getElementById("tailStreamControl"),toggleStreamBtn:document.getElementById("toggleStreamBtn"),detailLiveDot:document.getElementById("detailLiveDot"),tailStatusLabel:document.getElementById("tailStatusLabel"),toggleFollowStreamBtn:document.getElementById("toggleFollowStreamBtn"),refreshTrailBtn:document.getElementById("refreshTrailBtn"),newStepsFloatingBtn:document.getElementById("newStepsFloatingBtn"),msgFilterChips:document.querySelectorAll(".msg-filter-chip"),sessionStepSearchInput:document.getElementById("sessionStepSearchInput"),clearSessionStepSearchBtn:document.getElementById("clearSessionStepSearchBtn"),sessionStepSortSelect:document.getElementById("sessionStepSortSelect"),detailStepCountBadge:document.getElementById("detailStepCountBadge"),resetSessionStepFiltersBtn:document.getElementById("resetSessionStepFiltersBtn"),datePresets:document.querySelectorAll(".date-preset-chip"),searchModal:document.getElementById("searchModal"),modalSearchInput:document.getElementById("modalSearchInput"),modalSearchResults:document.getElementById("modalSearchResults"),closeSearchModalBtn:document.getElementById("closeSearchModalBtn"),insightsModal:document.getElementById("insightsModal"),closeInsightsModalBtn:document.getElementById("closeInsightsModalBtn"),topToolsList:document.getElementById("topToolsList"),topPromptsList:document.getElementById("topPromptsList"),installSkillBtn:document.getElementById("installSkillBtn"),installSkillModal:document.getElementById("installSkillModal"),closeInstallModalBtn:document.getElementById("closeInstallModalBtn"),doInstallSkillBtn:document.getElementById("doInstallSkillBtn"),copyInstallCmdBtn:document.getElementById("copyInstallCmdBtn"),installStatusText:document.getElementById("installStatusText"),diagramTheaterModal:document.getElementById("diagramTheaterModal"),diagramTheaterTitleText:document.getElementById("diagramTheaterTitleText"),diagramTheaterViewport:document.getElementById("diagramTheaterViewport"),diagramTheaterSurface:document.getElementById("diagramTheaterSurface"),theaterZoomOutBtn:document.getElementById("theaterZoomOutBtn"),theaterZoomBadge:document.getElementById("theaterZoomBadge"),theaterZoomInBtn:document.getElementById("theaterZoomInBtn"),theaterZoomResetBtn:document.getElementById("theaterZoomResetBtn"),theaterFitBtn:document.getElementById("theaterFitBtn"),theaterCopySvgBtn:document.getElementById("theaterCopySvgBtn"),theaterCopySrcBtn:document.getElementById("theaterCopySrcBtn"),closeDiagramTheaterBtn:document.getElementById("closeDiagramTheaterBtn"),fileViewerModal:document.getElementById("fileViewerModal"),fileViewerIcon:document.getElementById("fileViewerIcon"),fileViewerFilename:document.getElementById("fileViewerFilename"),fileViewerPath:document.getElementById("fileViewerPath"),fileViewerLangBadge:document.getElementById("fileViewerLangBadge"),fileViewerLinesBadge:document.getElementById("fileViewerLinesBadge"),fileViewerSizeBadge:document.getElementById("fileViewerSizeBadge"),fileViewerModeControl:document.getElementById("fileViewerModeControl"),fileViewerWrapBtn:document.getElementById("fileViewerWrapBtn"),fileViewerCopyContentBtn:document.getElementById("fileViewerCopyContentBtn"),fileViewerCopyPathBtn:document.getElementById("fileViewerCopyPathBtn"),closeFileViewerBtn:document.getElementById("closeFileViewerBtn"),fileViewerBody:document.getElementById("fileViewerBody"),fileViewerLoading:document.getElementById("fileViewerLoading"),fileViewerError:document.getElementById("fileViewerError"),fileViewerMarkdown:document.getElementById("fileViewerMarkdown"),fileViewerCodeContainer:document.getElementById("fileViewerCodeContainer"),fileViewerLineNumbers:document.getElementById("fileViewerLineNumbers"),fileViewerCodeBlock:document.getElementById("fileViewerCodeBlock"),fileViewerImageContainer:document.getElementById("fileViewerImageContainer"),fileViewerImage:document.getElementById("fileViewerImage"),fileViewerOpenFindBtn:document.getElementById("fileViewerOpenFindBtn"),fileViewerFindWidget:document.getElementById("fileViewerFindWidget"),fileFindInput:document.getElementById("fileFindInput"),fileFindCaseBtn:document.getElementById("fileFindCaseBtn"),fileFindCountBadge:document.getElementById("fileFindCountBadge"),fileFindPrevBtn:document.getElementById("fileFindPrevBtn"),fileFindNextBtn:document.getElementById("fileFindNextBtn"),fileFindCloseBtn:document.getElementById("fileFindCloseBtn"),sessionFilesModal:document.getElementById("sessionFilesModal"),closeSessionFilesModalBtn:document.getElementById("closeSessionFilesModalBtn"),sessionFilesIdBadge:document.getElementById("sessionFilesIdBadge"),sessionFilesTotalCountBadge:document.getElementById("sessionFilesTotalCountBadge"),sessionFilesLensControl:document.getElementById("sessionFilesLensControl"),sessionFilesSortSelect:document.getElementById("sessionFilesSortSelect"),sessionFilesSearchInput:document.getElementById("sessionFilesSearchInput"),clearSessionFilesSearchBtn:document.getElementById("clearSessionFilesSearchBtn"),sessionFilesChipAll:document.getElementById("sessionFilesChipAll"),sessionFilesChipArtifacts:document.getElementById("sessionFilesChipArtifacts"),sessionFilesChipModified:document.getElementById("sessionFilesChipModified"),sessionFilesChipRead:document.getElementById("sessionFilesChipRead"),sessionFilesChipRefs:document.getElementById("sessionFilesChipRefs"),sessionFilesArtifactsVal:document.getElementById("sessionFilesArtifactsVal"),sessionFilesMutationsVal:document.getElementById("sessionFilesMutationsVal"),sessionFilesReadsVal:document.getElementById("sessionFilesReadsVal"),sessionFilesBlastVal:document.getElementById("sessionFilesBlastVal"),sessionFilesIntensityVal:document.getElementById("sessionFilesIntensityVal"),sessionFilesContent:document.getElementById("sessionFilesContent"),agentBrainBtn:document.getElementById("agentBrainBtn"),agentMatrixModal:document.getElementById("agentMatrixModal"),closeAgentMatrixModalBtn:document.getElementById("closeAgentMatrixModalBtn"),agentMatrixScopeControl:document.getElementById("agentMatrixScopeControl"),agentMatrixWorkspaceSegment:document.getElementById("agentMatrixWorkspaceSegment"),agentMatrixSortSelect:document.getElementById("agentMatrixSortSelect"),agentMatrixSearchInput:document.getElementById("agentMatrixSearchInput"),clearAgentMatrixSearchBtn:document.getElementById("clearAgentMatrixSearchBtn"),agentMatrixTotalCountBadge:document.getElementById("agentMatrixTotalCountBadge"),agentMatrixRulesCount:document.getElementById("agentMatrixRulesCount"),agentMatrixSkillsCount:document.getElementById("agentMatrixSkillsCount"),agentMatrixPluginsCount:document.getElementById("agentMatrixPluginsCount"),agentMatrixHooksCount:document.getElementById("agentMatrixHooksCount"),agentMatrixContent:document.getElementById("agentMatrixContent"),detailAgentContextBtn:document.getElementById("detailAgentContextBtn"),detailAgentContextCount:document.getElementById("detailAgentContextCount"),sessionContextModal:document.getElementById("sessionContextModal"),closeSessionContextModalBtn:document.getElementById("closeSessionContextModalBtn"),sessionContextIdBadge:document.getElementById("sessionContextIdBadge"),sessionContextContent:document.getElementById("sessionContextContent"),sessionMatrixTotalCountBadge:document.getElementById("sessionMatrixTotalCountBadge"),sessionMatrixLensControl:document.getElementById("sessionMatrixLensControl"),sessionMatrixSortSelect:document.getElementById("sessionMatrixSortSelect"),sessionMatrixSearchInput:document.getElementById("sessionMatrixSearchInput"),clearSessionMatrixSearchBtn:document.getElementById("clearSessionMatrixSearchBtn"),sessionMatrixChipAll:document.getElementById("sessionMatrixChipAll"),sessionMatrixChipSkills:document.getElementById("sessionMatrixChipSkills"),sessionMatrixChipSkillsLabel:document.getElementById("sessionMatrixChipSkillsLabel"),sessionMatrixChipMCP:document.getElementById("sessionMatrixChipMCP"),sessionMatrixChipNative:document.getElementById("sessionMatrixChipNative"),sessionMatrixChipRules:document.getElementById("sessionMatrixChipRules"),sessionMatrixChipOrch:document.getElementById("sessionMatrixChipOrch"),sessionMatrixInjectedVal:document.getElementById("sessionMatrixInjectedVal"),sessionMatrixMCPVal:document.getElementById("sessionMatrixMCPVal"),sessionMatrixDiversityVal:document.getElementById("sessionMatrixDiversityVal"),sessionMatrixOndemandVal:document.getElementById("sessionMatrixOndemandVal"),sessionMatrixReliabilityVal:document.getElementById("sessionMatrixReliabilityVal"),toast:document.getElementById("toastNotification")};document.addEventListener("DOMContentLoaded",()=>{eOi(),nOi(),rOi(),hOi(),rrn("all")});function eOi(){document.documentElement.setAttribute("data-theme",nt.theme),Jtn()}function tOi(){nt.theme=nt.theme==="dark"?"light":"dark",document.documentElement.setAttribute("data-theme",nt.theme),localStorage.setItem("se_theme",nt.theme),Jtn()}function Jtn(){if(ve.themeToggleBtn)ve.themeToggleBtn.textContent=nt.theme==="dark"?"☀️":"\uD83C\uDF19"}function ob(e){if(!ve.toast)return;ve.toast.textContent=e,ve.toast.classList.add("active"),setTimeout(()=>{ve.toast.classList.remove("active")},2500)}var hAe=null,xgt=null;function rOi(){if(ve.liveIntervalSelect)ve.liveIntervalSelect.value=String(nt.liveInterval),ve.liveIntervalSelect.addEventListener("change",(e)=>{Vtn(parseInt(e.target.value,10))});if(Vtn(nt.liveInterval),xgt)clearInterval(xgt);xgt=setInterval(ern,4000)}function Vtn(e){if(hAe)clearInterval(hAe),hAe=null;nt.liveInterval=e,localStorage.setItem("se_live_interval",String(e));let r=Math.floor(e/1000);if(fetch("/api/watch-interval",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({interval_seconds:r})}).catch(()=>{}),ve.liveDot)if(e>0)ve.liveDot.classList.add("active","pulsing"),ve.liveDot.title=`Live Watch active (every ${e/1000}s)`;else ve.liveDot.classList.remove("active","pulsing"),ve.liveDot.title="Live Watch paused (Manual mode)";if(e>0)hAe=setInterval(()=>{trn(!0)},e)}function ern(){if(!ve.lastSyncLabel)return;let e=Math.floor((Date.now()-nt.lastSynced.getTime())/1000);if(e<3)ve.lastSyncLabel.textContent="Synced just now";else if(e<60)ve.lastSyncLabel.textContent=`Synced ${e}s ago`;else{let r=Math.floor(e/60);ve.lastSyncLabel.textContent=`Synced ${r}m ago`}}async function trn(e=!1){if(!e&&ve.refreshBtn)ve.refreshBtn.classList.add("spinning");try{if(await fetch("/api/refresh",{method:"POST"}).catch(()=>{}),await oA(),nt.currentView==="detail"&&nt.selectedSessionId)try{let r=await fetch(`/api/sessions/${nt.selectedSessionId}`);if(r.ok){let i=await r.json();nt.selectedSessionDetail=i,uA()}}catch(r){}if(nt.lastSynced=new Date,ern(),!e)ob("\uD83D\uDD04 Sessions refreshed")}catch(r){console.error("Refresh error:",r)}finally{if(!e&&ve.refreshBtn)setTimeout(()=>ve.refreshBtn.classList.remove("spinning"),500)}}function nOi(){if(ve.themeToggleBtn)ve.themeToggleBtn.addEventListener("click",tOi);if(ve.refreshBtn)ve.refreshBtn.addEventListener("click",()=>trn(!1));if(ve.insightsBtn)ve.insightsBtn.addEventListener("click",mOi);if(ve.closeInsightsModalBtn)ve.closeInsightsModalBtn.addEventListener("click",Wtn);if(ve.installSkillBtn)ve.installSkillBtn.addEventListener("click",bOi);if(ve.closeInstallModalBtn)ve.closeInstallModalBtn.addEventListener("click",jtn);if(ve.copyInstallCmdBtn)ve.copyInstallCmdBtn.addEventListener("click",()=>{navigator.clipboard.writeText("make setup-session-wip"),ob("Command copied: make setup-session-wip")});if(ve.doInstallSkillBtn)ve.doInstallSkillBtn.addEventListener("click",yOi);let e=(o)=>{if(o)o.stopPropagation();let l=nt.activeTimelineSessionId||nt.selectedSessionDetail?.session?.id||ve.detailSessionId?.textContent?.trim();if(!l)return;if(copyToClipboard(l,`Session UUID copied to clipboard: ${l.slice(0,8)}...`),ve.copySessionIdBtn){ve.copySessionIdBtn.classList.add("copied");let h=ve.copySessionIdBtn.querySelector(".copy-label"),d=ve.copySessionIdBtn.querySelector(".copy-icon");if(h)h.textContent="Copied!";if(d)d.textContent="✓";setTimeout(()=>{if(ve.copySessionIdBtn.classList.remove("copied"),h)h.textContent="Copy";if(d)d.textContent="\uD83D\uDCCB"},1800)}};if(ve.copySessionIdBtn)ve.copySessionIdBtn.addEventListener("click",e);if(ve.detailSessionCapsule)ve.detailSessionCapsule.addEventListener("click",(o)=>{if(o.target.closest("#copySessionIdBtn"))return;e(o)});if(ve.globalSearchInput)ve.globalSearchInput.addEventListener("focus",()=>{kgt(),ve.globalSearchInput.blur()});if(ve.closeSearchModalBtn)ve.closeSearchModalBtn.addEventListener("click",Igt);if(ve.modalSearchInput){let o;ve.modalSearchInput.addEventListener("input",(l)=>{clearTimeout(o),o=setTimeout(()=>{aOi(l.target.value.trim())},250)})}if(window.addEventListener("keydown",(o)=>{if((o.metaKey||o.ctrlKey)&&o.key==="k")o.preventDefault(),kgt();if((o.metaKey||o.ctrlKey)&&(o.key==="f"||o.key==="F")){if(ve.fileViewerModal&&ve.fileViewerModal.classList.contains("file-viewer-open"))o.preventDefault(),Mgt()}if(o.key==="/"&&document.activeElement.tagName!=="INPUT"&&document.activeElement.tagName!=="TEXTAREA")o.preventDefault(),kgt();if((o.key==="r"||o.key==="R")&&!o.metaKey&&!o.ctrlKey&&!o.altKey){if(nt.currentView==="detail"&&document.activeElement.tagName!=="INPUT"&&document.activeElement.tagName!=="TEXTAREA")o.preventDefault(),dAe(!0)}if(o.key==="Escape"){if(ve.fileViewerFindWidget&&ve.fileViewerFindWidget.style.display!=="none")dle();else if(ve.diagramTheaterModal&&ve.diagramTheaterModal.classList.contains("theater-open"))Ngt();else if(ve.fileViewerModal&&ve.fileViewerModal.classList.contains("file-viewer-open"))Lgt();else if(ve.sessionFilesModal&&ve.sessionFilesModal.classList.contains("active"))RW();else if(ve.agentMatrixModal&&ve.agentMatrixModal.classList.contains("active"))Ygt();else if(ve.sessionContextModal&&ve.sessionContextModal.classList.contains("active"))yAe();else if(ve.searchModal&&ve.searchModal.classList.contains("active"))Igt();else if(ve.insightsModal&&ve.insightsModal.classList.contains("active"))Wtn();else if(ve.installSkillModal&&ve.installSkillModal.classList.contains("active"))jtn();else if(nt.currentView==="detail")hle()}}),ve.workspaceSelect)ve.workspaceSelect.addEventListener("change",(o)=>{let l=o.target.value;if(nt.filterWorkspace=l,nt.groupBy==="project")nt.drilledProject=l||null;oA()});if(ve.sortBySelect)ve.sortBySelect.addEventListener("change",(o)=>{let l=o.target.value;if(l==="date_asc")nt.sortBy="date",nt.sortOrder="asc";else nt.sortBy=l,nt.sortOrder="desc";oA()});let r=()=>{if(nt.dateFrom=ve.dateFromInput?ve.dateFromInput.value:"",nt.dateTo=ve.dateToInput?ve.dateToInput.value:"",ve.datePresets){if(ve.datePresets.forEach((o)=>o.classList.remove("active")),!nt.dateFrom&&!nt.dateTo){let o=Array.from(ve.datePresets).find((l)=>l.dataset.preset==="all");if(o)o.classList.add("active")}}oA()};if(ve.dateFromInput)ve.dateFromInput.addEventListener("change",r),ve.dateFromInput.addEventListener("input",r);if(ve.dateToInput)ve.dateToInput.addEventListener("change",r),ve.dateToInput.addEventListener("input",r);if(ve.datePresets.forEach((o)=>{o.addEventListener("click",()=>{rrn(o.dataset.preset)})}),ve.msgFilterChips.forEach((o)=>{o.addEventListener("click",()=>{ve.msgFilterChips.forEach((l)=>l.classList.remove("active")),o.classList.add("active"),nt.messageFilter=o.dataset.filter,uA()})}),ve.sessionStepSearchInput)ve.sessionStepSearchInput.addEventListener("input",(o)=>{if(nt.sessionStepSearch=o.target.value,ve.clearSessionStepSearchBtn)ve.clearSessionStepSearchBtn.style.display=nt.sessionStepSearch?"inline-flex":"none";uA()});if(ve.clearSessionStepSearchBtn)ve.clearSessionStepSearchBtn.addEventListener("click",()=>{if(nt.sessionStepSearch="",ve.sessionStepSearchInput)ve.sessionStepSearchInput.value="",ve.sessionStepSearchInput.focus();ve.clearSessionStepSearchBtn.style.display="none",uA()});if(ve.sessionStepSortSelect)ve.sessionStepSortSelect.addEventListener("change",(o)=>{nt.sessionStepSort=o.target.value,uA()});if(ve.resetSessionStepFiltersBtn)ve.resetSessionStepFiltersBtn.addEventListener("click",()=>{srn()});if(ve.detailBackBtn)ve.detailBackBtn.addEventListener("click",hle);if(ve.exportMdBtn)ve.exportMdBtn.addEventListener("click",()=>Ytn("markdown"));if(ve.exportJsonBtn)ve.exportJsonBtn.addEventListener("click",()=>Ytn("json"));if(ve.groupByBtns)ve.groupByBtns.forEach((o)=>{o.addEventListener("click",()=>{ve.groupByBtns.forEach((l)=>l.classList.remove("active")),o.classList.add("active"),nt.groupBy=o.dataset.group,nt.drilledProject=null,localStorage.setItem("se_group_by",nt.groupBy),irn()})});if(ve.runtimeBtns)ve.runtimeBtns.forEach((o)=>{o.addEventListener("click",()=>{ve.runtimeBtns.forEach((l)=>l.classList.remove("active")),o.classList.add("active"),nt.filterRuntime=o.dataset.runtime||"",oA()})});if(ve.toggleStreamBtn)ve.toggleStreamBtn.addEventListener("click",(o)=>{if(o.stopPropagation(),nt.tailStreaming)$gt(!0);else if(nt.selectedSessionId)urn(nt.selectedSessionId),dAe(!1)});if(ve.toggleFollowStreamBtn)ve.toggleFollowStreamBtn.addEventListener("click",()=>{if(nt.followStream=!nt.followStream,ve.toggleFollowStreamBtn.classList.toggle("active",nt.followStream),nt.followStream)qtn(),dAe(!1)});if(ve.refreshTrailBtn)ve.refreshTrailBtn.addEventListener("click",()=>{dAe(!0)});if(ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.addEventListener("click",()=>{qtn()});window.addEventListener("scroll",()=>{if(nt.currentView!=="detail")return;if(!((nt.sessionStepSort||"step_desc")==="step_desc"?window.scrollY<=150:window.innerHeight+window.scrollY>=document.body.offsetHeight-150)){if(nt.followStream){if(nt.followStream=!1,ve.toggleFollowStreamBtn)ve.toggleFollowStreamBtn.classList.remove("active")}}else if(!nt.pendingStepsBuffer||nt.pendingStepsBuffer.length===0){if(ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none"}},{passive:!0});let i=null;window.addEventListener("resize",()=>{clearTimeout(i),i=setTimeout(()=>{if(ve.sessionContextModal&&ve.sessionContextModal.classList.contains("active"))cA();if(ve.agentMatrixModal&&ve.agentMatrixModal.classList.contains("active"))HF();if(ve.sessionFilesModal&&ve.sessionFilesModal.classList.contains("active"))lA()},120)},{passive:!0});let a=document.getElementById("brandBtn");if(a)a.addEventListener("click",()=>{if(nt.drilledProject=null,nt.filterWorkspace="",ve.workspaceSelect)ve.workspaceSelect.value="";window.location.hash="#/",hle(),oA()});if(ve.closeDiagramTheaterBtn)ve.closeDiagramTheaterBtn.addEventListener("click",Ngt);if(ve.theaterZoomInBtn)ve.theaterZoomInBtn.addEventListener("click",()=>{nt.theaterZoom=Math.min(4,+(nt.theaterZoom+0.25).toFixed(2)),VF()});if(ve.theaterZoomOutBtn)ve.theaterZoomOutBtn.addEventListener("click",()=>{nt.theaterZoom=Math.max(0.4,+(nt.theaterZoom-0.25).toFixed(2)),VF()});if(ve.theaterZoomResetBtn)ve.theaterZoomResetBtn.addEventListener("click",()=>{nt.theaterZoom=1,nt.theaterPanX=0,nt.theaterPanY=0,VF()});if(ve.theaterFitBtn)ve.theaterFitBtn.addEventListener("click",()=>{nt.theaterZoom=1,nt.theaterPanX=0,nt.theaterPanY=0,VF()});if(ve.theaterCopySvgBtn)ve.theaterCopySvgBtn.addEventListener("click",()=>{let o=ve.diagramTheaterSurface?.querySelector("svg");if(o)copyToClipboard(o.outerHTML,"Diagram SVG copied to clipboard!");else ob("No SVG diagram found")});if(ve.theaterCopySrcBtn)ve.theaterCopySrcBtn.addEventListener("click",()=>{copyToClipboard(nt.theaterRawSrc,"Diagram code copied to clipboard!")});if(ve.diagramTheaterViewport)ve.diagramTheaterViewport.addEventListener("mousedown",(o)=>{if(o.target.closest("button"))return;fAe=!0,Ktn=o.clientX-nt.theaterPanX,Xtn=o.clientY-nt.theaterPanY,ve.diagramTheaterViewport.style.cursor="grabbing"}),window.addEventListener("mousemove",(o)=>{if(!fAe)return;nt.theaterPanX=o.clientX-Ktn,nt.theaterPanY=o.clientY-Xtn,VF()}),window.addEventListener("mouseup",()=>{if(fAe){if(fAe=!1,ve.diagramTheaterViewport)ve.diagramTheaterViewport.style.cursor="grab"}}),ve.diagramTheaterViewport.addEventListener("wheel",(o)=>{if(o.ctrlKey||o.metaKey){o.preventDefault();let l=o.deltaY<0?0.15:-0.15;nt.theaterZoom=Math.min(4,Math.max(0.4,+(nt.theaterZoom+l).toFixed(2))),VF()}},{passive:!1});if(ve.closeFileViewerBtn)ve.closeFileViewerBtn.addEventListener("click",Lgt);if(ve.fileViewerWrapBtn)ve.fileViewerWrapBtn.addEventListener("click",()=>{nt.fileViewerWrap=!nt.fileViewerWrap,ve.fileViewerWrapBtn.classList.toggle("active",nt.fileViewerWrap),ve.fileViewerWrapBtn.innerHTML=nt.fileViewerWrap?"✓ Wrapped":"↩ Wrap";let o=ve.fileViewerCodeContainer?.querySelector(".code-content-pre");if(o)o.classList.toggle("wrap-code",nt.fileViewerWrap);ob(nt.fileViewerWrap?"Line wrap enabled":"Line wrap disabled")});if(ve.fileViewerCopyContentBtn)ve.fileViewerCopyContentBtn.addEventListener("click",()=>{if(nt.fileViewerData&&nt.fileViewerData.content){copyToClipboard(nt.fileViewerData.content,"File content copied to clipboard!");let o=ve.fileViewerCopyContentBtn.innerHTML;ve.fileViewerCopyContentBtn.innerHTML="✓ Copied!",ve.fileViewerCopyContentBtn.classList.add("btn-action-success"),setTimeout(()=>{ve.fileViewerCopyContentBtn.innerHTML=o,ve.fileViewerCopyContentBtn.classList.remove("btn-action-success")},1500)}});if(ve.fileViewerCopyPathBtn)ve.fileViewerCopyPathBtn.addEventListener("click",()=>{if(nt.fileViewerData&&nt.fileViewerData.path){copyToClipboard(nt.fileViewerData.path,"File path copied to clipboard!");let o=ve.fileViewerCopyPathBtn.innerHTML;ve.fileViewerCopyPathBtn.innerHTML="✓ Path Copied!",ve.fileViewerCopyPathBtn.classList.add("btn-action-success"),setTimeout(()=>{ve.fileViewerCopyPathBtn.innerHTML=o,ve.fileViewerCopyPathBtn.classList.remove("btn-action-success")},1500)}});if(ve.fileViewerPath)ve.fileViewerPath.addEventListener("click",()=>{if(nt.fileViewerData&&nt.fileViewerData.path)copyToClipboard(nt.fileViewerData.path,"File path copied to clipboard!"),ve.fileViewerPath.classList.add("copied-flash"),setTimeout(()=>{ve.fileViewerPath.classList.remove("copied-flash")},1500)});if(ve.fileViewerModeControl)ve.fileViewerModeControl.querySelectorAll(".segment-btn").forEach((o)=>{o.addEventListener("click",()=>{nt.fileViewerMode=o.dataset.mode,drn()})});if(ve.fileViewerOpenFindBtn)ve.fileViewerOpenFindBtn.addEventListener("click",Mgt);if(ve.fileFindCloseBtn)ve.fileFindCloseBtn.addEventListener("click",dle);if(ve.fileFindCaseBtn)ve.fileFindCaseBtn.addEventListener("click",vOi);if(ve.fileFindNextBtn)ve.fileFindNextBtn.addEventListener("click",gAe);if(ve.fileFindPrevBtn)ve.fileFindPrevBtn.addEventListener("click",mAe);if(ve.fileFindInput)ve.fileFindInput.addEventListener("input",()=>{mle()}),ve.fileFindInput.addEventListener("keydown",(o)=>{if(o.key==="Enter")if(o.preventDefault(),o.shiftKey)mAe();else gAe();else if(o.key==="Escape")o.preventDefault(),dle();else if(o.key==="ArrowDown")o.preventDefault(),gAe();else if(o.key==="ArrowUp")o.preventDefault(),mAe()});SOi(),TOi()}function xT(e){let r=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${r}-${i}-${a}`}function bAe(e){return`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getMonth()]} ${e.getDate()}`}function rrn(e){if(ve.datePresets)ve.datePresets.forEach((o)=>{o.classList.toggle("active",o.dataset.preset===e)});let r=new Date,i="",a="";switch(e){case"today":i=xT(r),a=xT(r);break;case"7d":{let o=new Date(r);o.setDate(o.getDate()-7),i=xT(o),a=xT(r);break}case"30d":{let o=new Date(r);o.setDate(o.getDate()-30),i=xT(o),a=xT(r);break}case"all":default:i="",a="";break}if(nt.dateFrom=i,nt.dateTo=a,ve.dateFromInput)ve.dateFromInput.value=i;if(ve.dateToInput)ve.dateToInput.value=a;oA()}async function oA(){try{let e=new URLSearchParams,r=nt.filterWorkspace||(nt.groupBy==="project"&&nt.drilledProject?nt.drilledProject:"");if(r)e.append("workspace",r);if(nt.filterRuntime)e.append("runtime",nt.filterRuntime);if(nt.sortBy)e.append("sort_by",nt.sortBy);if(nt.sortOrder)e.append("sort_order",nt.sortOrder);if(nt.dateFrom)e.append("from",nt.dateFrom);if(nt.dateTo)e.append("to",nt.dateTo);e.append("tz_offset",new Date().getTimezoneOffset());let i=await fetch(`/api/sessions?${e.toString()}`);if(!i.ok)throw Error(`HTTP error! status: ${i.status}`);let a=await i.json();nt.sessions=a.sessions||[],nt.stats=a.stats||null,sOi(),oOi(),irn()}catch(e){console.error("Failed to load sessions:",e),ob("❌ Error loading sessions")}}function nrn(e){if(!e)return;e.classList.remove("updated"),e.offsetWidth,e.classList.add("updated"),setTimeout(()=>{e.classList.remove("updated")},650)}function Dgt(e,r=!1){if(!e||!ve.detailAgentContextCount)return;let i=e.active_rules?e.active_rules.length:0,a=e.active_skills?e.active_skills.length:0,o=0;(e.mcp_servers||[]).forEach((y)=>{o+=(y.active_tools||[]).length});let l=e.native_tools?e.native_tools.length:0,h=e.subagents?e.subagents.length:0,d=i+a+o+l+h,p=ve.detailAgentContextCount.textContent.trim(),m=parseInt(p,10);if(ve.detailAgentContextCount.textContent=d.toString(),ve.detailAgentContextBtn)ve.detailAgentContextBtn.title=`${d} active agent elements (${i} rules • ${a} skills • ${o} MCP tools • ${l} native tools • ${h} subagents)`;if(r||!isNaN(m)&&m!==d)nrn(ve.detailAgentContextCount)}var Cgt=null;function iOi(e){if(!e)return;if(Cgt)clearTimeout(Cgt);Cgt=setTimeout(()=>{fetch(`/api/sessions/${e}/context`).then((r)=>r.ok?r.json():null).then((r)=>{if(!r)return;if(nt.sessionContextData=r,nt.sessionMatrix.context=r,Dgt(r),ve.sessionContextModal&&ve.sessionContextModal.classList.contains("active"))cA()}).catch((r)=>console.warn("Live context sync error:",r))},350)}async function Pgt(e){try{let r=await fetch(`/api/sessions/${e}`);if(!r.ok)throw Error(`HTTP error! status: ${r.status}`);let i=await r.json();nt.selectedSessionId=e,nt.selectedSessionDetail=i,uOi(i),fetch(`/api/sessions/${e}/context`).then((a)=>a.ok?a.json():null).then((a)=>{if(!a)return;nt.sessionContextData=a,nt.sessionMatrix.context=a,Dgt(a,!1)}).catch((a)=>console.warn("Context fetch error:",a))}catch(r){console.error("Failed to load session detail:",r),ob(`❌ Error loading session detail: ${r.message}`)}}async function aOi(e){if(!e){ve.modalSearchResults.innerHTML='
    \uD83D\uDD0D

    Type keywords to search across all prompt transcripts

    ';return}try{let r=new URLSearchParams({q:e}),i=nt.filterWorkspace||(nt.groupBy==="project"&&nt.drilledProject?nt.drilledProject:"");if(i)r.append("workspace",i);r.append("tz_offset",new Date().getTimezoneOffset());let a=await fetch(`/api/search?${r.toString()}`);if(!a.ok)throw Error(`Search error: ${a.status}`);let o=await a.json();pOi(o.results||[],e)}catch(r){console.error("Search failed:",r),ve.modalSearchResults.innerHTML='

    Search error occurred.

    '}}function sOi(){if(!nt.stats||!ve.statsStrip)return;let e=nt.stats;ve.statsStrip.innerHTML=`
    \uD83D\uDCC2
    @@ -4710,30 +4710,30 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, Repositories
    - `}function tOi(){if(!at.stats||!at.stats.workspaces)return;let e=at.stats.workspaces||[],r=new Set,i=[];e.forEach((o)=>{if(!o)return;let l=String(o).trim();if(l===""||l==="workspace"||l==="aparv")return;if(l.includes(".")||l.includes("/")||l.includes("\\"))return;if(l.startsWith(".")||l.startsWith("_"))return;let h=l.toLowerCase();if(!r.has(h))r.add(h),i.push(l)}),i.sort((o,l)=>o.localeCompare(l,void 0,{sensitivity:"base"}));let a=at.filterWorkspace||(at.groupBy==="project"&&at.drilledProject?at.drilledProject:"")||"";if(Ae.workspaceSelect){let o=Array.from(Ae.workspaceSelect.options).map((h)=>h.value).filter(Boolean);if(o.length!==i.length||o.some((h,d)=>h!==i[d])||Ae.workspaceSelect.options.length<=1){let h='';i.forEach((d)=>{h+=``}),Ae.workspaceSelect.innerHTML=h}Ae.workspaceSelect.value=a}if(Ae.workspaceStrip){let o=``;i.slice(0,12).forEach((l)=>{o+=``}),Ae.workspaceStrip.innerHTML=o,Ae.workspaceStrip.querySelectorAll(".chip").forEach((l)=>{l.addEventListener("click",()=>{if(at.filterWorkspace=l.dataset.ws,at.groupBy==="project")at.drilledProject=l.dataset.ws||null;if(Ae.workspaceSelect)Ae.workspaceSelect.value=at.filterWorkspace;sA()})})}}function Ztn(){if(at.currentView==="detail")return;if(Ae.groupByBtns)Ae.groupByBtns.forEach((e)=>{e.classList.toggle("active",e.dataset.group===at.groupBy)});if(Ae.runtimeBtns)Ae.runtimeBtns.forEach((e)=>{e.classList.toggle("active",(e.dataset.runtime||"")===at.filterRuntime)});switch(at.groupBy){case"project":xgt();break;case"date":rOi();break;case"flat":default:nOi();break}}function xgt(){let e=Ae.viewContainer||Ae.sessionGrid;if(!e)return;if(at.drilledProject){let x=function(){let L=[...d],B=(at.projectFilters.search||"").trim().toLowerCase();if(B)L=L.filter((P)=>{let F=(P.id||"").toLowerCase().includes(B),H=(P.first_user_prompt_preview||"").toLowerCase().includes(B),K=(P.workspace||"").toLowerCase().includes(B),Q=(P.projects_touched||[]).some((Y)=>Y.toLowerCase().includes(B)),Z=!1;if(P.tool_calls_map)Z=Object.keys(P.tool_calls_map).some((Y)=>Y.toLowerCase().includes(B));return F||H||K||Q||Z});if(at.projectFilters.dateFrom||at.projectFilters.dateTo){let P=at.projectFilters.dateFrom?new Date(at.projectFilters.dateFrom+"T00:00:00Z").getTime():0,F=at.projectFilters.dateTo?new Date(at.projectFilters.dateTo+"T23:59:59.999Z").getTime():1/0;L=L.filter((H)=>{let K=new Date(H.created_at).getTime();return(H.last_message_at?new Date(H.last_message_at).getTime():K)>=P&&K<=F})}let D=at.projectFilters.sort||"date_desc";return L.sort((P,F)=>{switch(D){case"date_asc":return new Date(P.created_at)-new Date(F.created_at);case"steps_desc":return(F.step_count||0)-(P.step_count||0);case"messages_desc":return(F.user_message_count||0)-(P.user_message_count||0);case"tools_desc":return(F.tool_call_count||0)-(P.tool_call_count||0);case"size_desc":return(F.transcript_size_bytes||0)-(P.transcript_size_bytes||0);case"date_desc":default:return new Date(F.created_at)-new Date(P.created_at)}}),L},R=function(L){if(L.length===0)e.innerHTML=` + `}function oOi(){if(!nt.stats||!nt.stats.workspaces)return;let e=nt.stats.workspaces||[],r=new Set,i=[];e.forEach((o)=>{if(!o)return;let l=String(o).trim();if(l===""||l==="workspace"||l==="aparv")return;if(l.includes(".")||l.includes("/")||l.includes("\\"))return;if(l.startsWith(".")||l.startsWith("_"))return;let h=l.toLowerCase();if(!r.has(h))r.add(h),i.push(l)}),i.sort((o,l)=>o.localeCompare(l,void 0,{sensitivity:"base"}));let a=nt.filterWorkspace||(nt.groupBy==="project"&&nt.drilledProject?nt.drilledProject:"")||"";if(ve.workspaceSelect){let o=Array.from(ve.workspaceSelect.options).map((h)=>h.value).filter(Boolean);if(o.length!==i.length||o.some((h,d)=>h!==i[d])||ve.workspaceSelect.options.length<=1){let h='';i.forEach((d)=>{h+=``}),ve.workspaceSelect.innerHTML=h}ve.workspaceSelect.value=a}if(ve.workspaceStrip){let o=``;i.slice(0,12).forEach((l)=>{o+=``}),ve.workspaceStrip.innerHTML=o,ve.workspaceStrip.querySelectorAll(".chip").forEach((l)=>{l.addEventListener("click",()=>{if(nt.filterWorkspace=l.dataset.ws,nt.groupBy==="project")nt.drilledProject=l.dataset.ws||null;if(ve.workspaceSelect)ve.workspaceSelect.value=nt.filterWorkspace;oA()})})}}function irn(){if(nt.currentView==="detail")return;if(ve.groupByBtns)ve.groupByBtns.forEach((e)=>{e.classList.toggle("active",e.dataset.group===nt.groupBy)});if(ve.runtimeBtns)ve.runtimeBtns.forEach((e)=>{e.classList.toggle("active",(e.dataset.runtime||"")===nt.filterRuntime)});switch(nt.groupBy){case"project":Rgt();break;case"date":arn();break;case"flat":default:lOi();break}}function Rgt(){let e=ve.viewContainer||ve.sessionGrid;if(!e)return;if(nt.drilledProject){let x=function(){let L=[...d],B=(nt.projectFilters.search||"").trim().toLowerCase();if(B)L=L.filter((P)=>{let F=(P.id||"").toLowerCase().includes(B),H=(P.first_user_prompt_preview||"").toLowerCase().includes(B),W=(P.workspace||"").toLowerCase().includes(B),X=(P.projects_touched||[]).some((Y)=>Y.toLowerCase().includes(B)),Q=!1;if(P.tool_calls_map)Q=Object.keys(P.tool_calls_map).some((Y)=>Y.toLowerCase().includes(B));return F||H||W||X||Q});if(nt.projectFilters.dateFrom||nt.projectFilters.dateTo){let P=nt.projectFilters.dateFrom?new Date(nt.projectFilters.dateFrom+"T00:00:00").getTime():0,F=nt.projectFilters.dateTo?new Date(nt.projectFilters.dateTo+"T23:59:59.999").getTime():1/0;L=L.filter((H)=>{let W=new Date(H.created_at).getTime();return(H.last_message_at?new Date(H.last_message_at).getTime():W)>=P&&W<=F})}let D=nt.projectFilters.sort||"active";return L.sort((P,F)=>{switch(D){case"active":case"active_desc":{let H=P.last_message_at?new Date(P.last_message_at).getTime():new Date(P.created_at).getTime();return(F.last_message_at?new Date(F.last_message_at).getTime():new Date(F.created_at).getTime())-H}case"date_asc":return new Date(P.created_at)-new Date(F.created_at);case"date_desc":return new Date(F.created_at)-new Date(P.created_at);case"steps_desc":return(F.step_count||0)-(P.step_count||0);case"messages_desc":return(F.user_message_count||0)-(P.user_message_count||0);case"tools_desc":return(F.tool_call_count||0)-(P.tool_call_count||0);case"size_desc":return(F.transcript_size_bytes||0)-(P.transcript_size_bytes||0);default:{let H=P.last_message_at?new Date(P.last_message_at).getTime():new Date(P.created_at).getTime();return(F.last_message_at?new Date(F.last_message_at).getTime():new Date(F.created_at).getTime())-H}}}),L},R=function(L){if(L.length===0)e.innerHTML=`
    \uD83D\uDCC2
    -

    No sessions match project filters in ${En(h)}

    +

    No sessions match project filters in ${nn(h)}

    Try adjusting your search query, sort option, or date filter.

    - `,document.getElementById("emptyResetBtn")?.addEventListener("click",()=>{at.projectFilters={search:"",sort:"date_desc",dateFrom:"",dateTo:"",datePreset:"all"},xgt()});else e.innerHTML=`
    ${Mgt(L)}
    `,Dgt(e)},N=function(L,B){let D=document.getElementById("projectSessionCountBadge");if(D)D.textContent=`Showing ${L} of ${B} session${B===1?"":"s"}`;if(Ae.sessionCountBadge)Ae.sessionCountBadge.textContent=`${L} session${L===1?"":"s"} in ${h}`;let P=document.getElementById("resetProjectFiltersBtn"),F=Boolean(at.projectFilters.search||at.projectFilters.dateFrom||at.projectFilters.dateTo||at.projectFilters.datePreset!=="all"||at.projectFilters.sort!=="date_desc");if(P)P.style.display=F?"inline-block":"none"},h=at.drilledProject,d=at.sessions.filter((L)=>L.project_name===h||L.projects_touched&&L.projects_touched.includes(h)),p=at.stats&&at.stats.projects?at.stats.projects.find((L)=>L.name===h):null,m=p?p.is_git:h!=="Default",y=p?p.path:h==="Default"?"~":`/Users/aparv/Library/CloudStorage/OneDrive-Personal/G-Drive/Interviews/knowledge/${h}`,E=d.reduce((L,B)=>L+B.step_count,0),w=d.reduce((L,B)=>L+B.user_message_count,0),T=d.reduce((L,B)=>L+B.tool_call_count,0),k=x(),A=Boolean(at.projectFilters.search||at.projectFilters.dateFrom||at.projectFilters.dateTo||at.projectFilters.datePreset!=="all"||at.projectFilters.sort!=="date_desc");if(Ae.projectHeroBanner){Ae.projectHeroBanner.style.display="flex",Ae.projectHeroBanner.innerHTML=` + `,document.getElementById("emptyResetBtn")?.addEventListener("click",()=>{nt.projectFilters={search:"",sort:"active",dateFrom:"",dateTo:"",datePreset:"all"},Rgt()});else e.innerHTML=`
    ${Bgt(L)}
    `,Fgt(e)},N=function(L,B){let D=document.getElementById("projectSessionCountBadge");if(D)D.textContent=`Showing ${L} of ${B} session${B===1?"":"s"}`;if(ve.sessionCountBadge)ve.sessionCountBadge.textContent=`${L} session${L===1?"":"s"} in ${h}`;let P=document.getElementById("resetProjectFiltersBtn"),F=Boolean(nt.projectFilters.search||nt.projectFilters.dateFrom||nt.projectFilters.dateTo||nt.projectFilters.datePreset!=="all"||nt.projectFilters.sort!=="active");if(P)P.style.display=F?"inline-block":"none"},h=nt.drilledProject,d=nt.sessions.filter((L)=>L.project_name===h||L.projects_touched&&L.projects_touched.includes(h)),p=nt.stats&&nt.stats.projects?nt.stats.projects.find((L)=>L.name===h):null,m=p?p.is_git:h!=="Default",y=p?p.path:h==="Default"?"~":`/Users/aparv/Library/CloudStorage/OneDrive-Personal/G-Drive/Interviews/knowledge/${h}`,v=d.reduce((L,B)=>L+B.step_count,0),w=d.reduce((L,B)=>L+B.user_message_count,0),T=d.reduce((L,B)=>L+B.tool_call_count,0),k=x(),A=Boolean(nt.projectFilters.search||nt.projectFilters.dateFrom||nt.projectFilters.dateTo||nt.projectFilters.datePreset!=="all"||nt.projectFilters.sort!=="active");if(ve.projectHeroBanner){ve.projectHeroBanner.style.display="flex",ve.projectHeroBanner.innerHTML=`
    - \uD83D\uDCC1 ${En(h)} + \uD83D\uDCC1 ${nn(h)} ${m?"git repo":"folder"}
    -
    ${En(y)}
    +
    ${nn(y)}
    \uD83D\uDCC2 ${d.length} Total Sessions \uD83D\uDC64 ${w} Prompts ⚡ ${T} Tool Calls -
    @@ -4743,32 +4743,33 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
    Sort:
    Date: - + to - +
    - - - - + + + +
    @@ -4779,29 +4780,29 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
    - `,document.getElementById("projectHeroBackBtn")?.addEventListener("click",()=>{if(at.drilledProject=null,at.filterWorkspace="",at.projectFilters={search:"",sort:"date_desc",dateFrom:"",dateTo:"",datePreset:"all"},Ae.workspaceSelect)Ae.workspaceSelect.value="";window.location.hash="#/"}),document.getElementById("projectAgentContextBtn")?.addEventListener("click",()=>{Ggt(h)});let L=document.getElementById("projectSearchInput"),B=document.getElementById("clearProjectSearchBtn");if(L)L.addEventListener("input",(H)=>{if(at.projectFilters.search=H.target.value,B)B.style.display=at.projectFilters.search?"inline-flex":"none";let K=x();R(K),N(K.length,d.length)});if(B)B.addEventListener("click",()=>{if(at.projectFilters.search="",L)L.value="",L.focus();B.style.display="none";let H=x();R(H),N(H.length,d.length)});document.getElementById("projectSortSelect")?.addEventListener("change",(H)=>{at.projectFilters.sort=H.target.value;let K=x();R(K),N(K.length,d.length)});let D=document.getElementById("projectDateFrom"),P=document.getElementById("projectDateTo"),F=()=>{at.projectFilters.dateFrom=D?.value||"",at.projectFilters.dateTo=P?.value||"",at.projectFilters.datePreset="",document.querySelectorAll(".project-date-presets .date-preset-chip").forEach((K)=>K.classList.remove("active"));let H=x();R(H),N(H.length,d.length)};D?.addEventListener("change",F),P?.addEventListener("change",F),D?.addEventListener("input",F),P?.addEventListener("input",F),document.querySelectorAll(".project-date-presets .date-preset-chip").forEach((H)=>{H.addEventListener("click",()=>{document.querySelectorAll(".project-date-presets .date-preset-chip").forEach((Y)=>Y.classList.remove("active")),H.classList.add("active");let K=H.dataset.preset;at.projectFilters.datePreset=K;let Q=new Date;if(K==="all")at.projectFilters.dateFrom="",at.projectFilters.dateTo="";else if(K==="today"){let Y=WC(Q);at.projectFilters.dateFrom=Y,at.projectFilters.dateTo=Y}else if(K==="7d"){let Y=new Date(Q);Y.setDate(Y.getDate()-7),at.projectFilters.dateFrom=WC(Y),at.projectFilters.dateTo=WC(Q)}else if(K==="30d"){let Y=new Date(Q);Y.setDate(Y.getDate()-30),at.projectFilters.dateFrom=WC(Y),at.projectFilters.dateTo=WC(Q)}if(D)D.value=at.projectFilters.dateFrom;if(P)P.value=at.projectFilters.dateTo;let Z=x();R(Z),N(Z.length,d.length)})}),document.getElementById("resetProjectFiltersBtn")?.addEventListener("click",()=>{at.projectFilters={search:"",sort:"date_desc",dateFrom:"",dateTo:"",datePreset:"all"},xgt()})}if(Ae.sessionCountBadge)Ae.sessionCountBadge.textContent=`${k.length} session${k.length===1?"":"s"} in ${h}`;R(k);return}if(Ae.projectHeroBanner)Ae.projectHeroBanner.style.display="none";let r=at.stats&&at.stats.projects?at.stats.projects:[],i=new Map;at.sessions.forEach((h)=>{let d=h.project_name||"Default";if(!i.has(d))i.set(d,[]);i.get(d).push(h)});let a=Boolean(at.dateFrom||at.dateTo||at.filterWorkspace),o=r.map((h)=>{let d=i.get(h.name)||[],p=d.length;return{...h,display_session_count:a?p:h.session_count,count_in_filter:p,has_active_sessions:p>0,filtered_sessions:d}});if(at.filterWorkspace)o=o.filter((h)=>h.name.toLowerCase().includes(at.filterWorkspace.toLowerCase()));if(o.sort((h,d)=>{if(a){if(h.has_active_sessions&&!d.has_active_sessions)return-1;if(!h.has_active_sessions&&d.has_active_sessions)return 1}switch(at.sortBy){case"steps":return d.total_steps-h.total_steps;case"messages":return d.total_user_messages-h.total_user_messages;case"size":return d.total_steps+d.total_tool_calls-(h.total_steps+h.total_tool_calls);case"date":default:if(at.sortOrder==="asc")return new Date(h.last_active_at||0)-new Date(d.last_active_at||0);return new Date(d.last_active_at||0)-new Date(h.last_active_at||0)}}),Ae.sessionCountBadge){let h=o.filter((d)=>d.display_session_count>0).length;if(a)Ae.sessionCountBadge.textContent=`${at.sessions.length} sessions in ${h} active repos`;else Ae.sessionCountBadge.textContent=`${h} Active Repos (${o.length} Total)`}if(o.length===0){e.innerHTML=` + `,document.getElementById("projectHeroBackBtn")?.addEventListener("click",()=>{if(nt.drilledProject=null,nt.filterWorkspace="",nt.projectFilters={search:"",sort:"active",dateFrom:"",dateTo:"",datePreset:"all"},ve.workspaceSelect)ve.workspaceSelect.value="";window.location.hash="#/"}),document.getElementById("projectAgentContextBtn")?.addEventListener("click",()=>{qgt(h)});let L=document.getElementById("projectSearchInput"),B=document.getElementById("clearProjectSearchBtn");if(L)L.addEventListener("input",(H)=>{if(nt.projectFilters.search=H.target.value,B)B.style.display=nt.projectFilters.search?"inline-flex":"none";let W=x();R(W),N(W.length,d.length)});if(B)B.addEventListener("click",()=>{if(nt.projectFilters.search="",L)L.value="",L.focus();B.style.display="none";let H=x();R(H),N(H.length,d.length)});document.getElementById("projectSortSelect")?.addEventListener("change",(H)=>{nt.projectFilters.sort=H.target.value;let W=x();R(W),N(W.length,d.length)});let D=document.getElementById("projectDateFrom"),P=document.getElementById("projectDateTo"),F=()=>{nt.projectFilters.dateFrom=D?.value||"",nt.projectFilters.dateTo=P?.value||"",nt.projectFilters.datePreset="",document.querySelectorAll(".project-date-presets .date-preset-chip").forEach((W)=>W.classList.remove("active"));let H=x();R(H),N(H.length,d.length)};D?.addEventListener("change",F),P?.addEventListener("change",F),D?.addEventListener("input",F),P?.addEventListener("input",F),document.querySelectorAll(".project-date-presets .date-preset-chip").forEach((H)=>{H.addEventListener("click",()=>{document.querySelectorAll(".project-date-presets .date-preset-chip").forEach((Y)=>Y.classList.remove("active")),H.classList.add("active");let W=H.dataset.preset;nt.projectFilters.datePreset=W;let X=new Date;if(W==="all")nt.projectFilters.dateFrom="",nt.projectFilters.dateTo="";else if(W==="today"){let Y=xT(X);nt.projectFilters.dateFrom=Y,nt.projectFilters.dateTo=Y}else if(W==="7d"){let Y=new Date(X);Y.setDate(Y.getDate()-7),nt.projectFilters.dateFrom=xT(Y),nt.projectFilters.dateTo=xT(X)}else if(W==="30d"){let Y=new Date(X);Y.setDate(Y.getDate()-30),nt.projectFilters.dateFrom=xT(Y),nt.projectFilters.dateTo=xT(X)}if(D)D.value=nt.projectFilters.dateFrom;if(P)P.value=nt.projectFilters.dateTo;let Q=x();R(Q),N(Q.length,d.length)})}),document.getElementById("resetProjectFiltersBtn")?.addEventListener("click",()=>{nt.projectFilters={search:"",sort:"active",dateFrom:"",dateTo:"",datePreset:"all"},Rgt()})}if(ve.sessionCountBadge)ve.sessionCountBadge.textContent=`${k.length} session${k.length===1?"":"s"} in ${h}`;R(k);return}if(ve.projectHeroBanner)ve.projectHeroBanner.style.display="none";let r=nt.stats&&nt.stats.projects?nt.stats.projects:[],i=new Map;nt.sessions.forEach((h)=>{let d=h.project_name||"Default";if(!i.has(d))i.set(d,[]);i.get(d).push(h)});let a=Boolean(nt.dateFrom||nt.dateTo||nt.filterWorkspace),o=r.map((h)=>{let d=i.get(h.name)||[],p=d.length;return{...h,display_session_count:a?p:h.session_count,count_in_filter:p,has_active_sessions:p>0,filtered_sessions:d}});if(nt.filterWorkspace)o=o.filter((h)=>h.name.toLowerCase().includes(nt.filterWorkspace.toLowerCase()));if(o.sort((h,d)=>{if(a){if(h.has_active_sessions&&!d.has_active_sessions)return-1;if(!h.has_active_sessions&&d.has_active_sessions)return 1}switch(nt.sortBy){case"steps":return d.total_steps-h.total_steps;case"messages":return d.total_user_messages-h.total_user_messages;case"size":return d.total_steps+d.total_tool_calls-(h.total_steps+h.total_tool_calls);case"date":default:if(nt.sortOrder==="asc")return new Date(h.last_active_at||0)-new Date(d.last_active_at||0);return new Date(d.last_active_at||0)-new Date(h.last_active_at||0)}}),ve.sessionCountBadge){let h=o.filter((d)=>d.display_session_count>0).length;if(a)ve.sessionCountBadge.textContent=`${nt.sessions.length} sessions in ${h} active repos`;else ve.sessionCountBadge.textContent=`${h} Active Repos (${o.length} Total)`}if(o.length===0){e.innerHTML=`
    \uD83D\uDCC2

    No repositories found

    No project repositories matched your current filter.

    - `;return}let l='
    ';o.forEach((h)=>{let d=h.last_active_at?pAe(h.last_active_at):"No recorded activity",p="";if(h.recent_prompts&&h.recent_prompts.length>0)p=h.recent_prompts.map((y)=>` -
    - \uD83D\uDCAC ${En(y)} + `;return}let l='
    ';o.forEach((h)=>{let d=h.last_active_at?gle(h.last_active_at):"No recorded activity",p="";if(h.recent_prompts&&h.recent_prompts.length>0)p=h.recent_prompts.map((y)=>` +
    + \uD83D\uDCAC ${nn(y)}
    `).join("");else p='
    No user prompts recorded
    ';let m="";if(a)if(h.has_active_sessions)m=`✨ ${h.count_in_filter} of ${h.session_count} in filter`;else m='0 in filter';l+=` -
    +
    - \uD83D\uDCC1 ${En(h.name)} + \uD83D\uDCC1 ${nn(h.name)}
    ${m} ${h.is_git?"git repo":"folder"}
    -
    ${En(h.path)}
    +
    ${nn(h.path)}
    ${p} @@ -4821,68 +4822,102 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
    - `}),l+="
    ",e.innerHTML=l,e.querySelectorAll(".project-card").forEach((h)=>{h.addEventListener("click",()=>{let d=h.dataset.project;window.location.hash=`#/project/${encodeURIComponent(d)}`})})}function rOi(){if(Ae.projectHeroBanner)Ae.projectHeroBanner.style.display="none";let e=Ae.viewContainer||Ae.sessionGrid;if(!e)return;let r=at.sessions;if(Ae.sessionCountBadge)Ae.sessionCountBadge.textContent=`${r.length} session${r.length===1?"":"s"}`;if(r.length===0){e.innerHTML=` + `}),l+="
    ",e.innerHTML=l,e.querySelectorAll(".project-card").forEach((h)=>{h.addEventListener("click",()=>{let d=h.dataset.project;window.location.hash=`#/project/${encodeURIComponent(d)}`})})}function arn(){if(ve.projectHeroBanner)ve.projectHeroBanner.style.display="none";let e=ve.viewContainer||ve.sessionGrid;if(!e)return;let r=nt.sessions;if(ve.sessionCountBadge)ve.sessionCountBadge.textContent=`${r.length} session${r.length===1?"":"s"}`;if(r.length===0){e.innerHTML=`
    \uD83D\uDCC2

    No sessions found

    No Antigravity IDE sessions matched your filters.

    - `;return}let i=new Date,a=new Date(i.getFullYear(),i.getMonth(),i.getDate()),o=new Date(a);o.setDate(o.getDate()-1);let l=new Date(a);l.setDate(l.getDate()-7);let h={today:{title:"\uD83C\uDF1F Today",sessions:[]},yesterday:{title:"⚡ Yesterday",sessions:[]},thisWeek:{title:"\uD83D\uDCC5 Past 7 Days",sessions:[]},older:{title:"\uD83D\uDDD3️ Older",sessions:[]}};r.forEach((p)=>{let m=new Date(p.created_at);if(m>=a)h.today.sessions.push(p);else if(m>=o)h.yesterday.sessions.push(p);else if(m>=l)h.thisWeek.sessions.push(p);else h.older.sessions.push(p)});let d="";for(let p of["today","yesterday","thisWeek","older"]){let m=h[p];if(m.sessions.length===0)continue;d+=` + `;return}let i=new Date,a=new Date(i.getFullYear(),i.getMonth(),i.getDate()),o=new Date(a);o.setDate(o.getDate()-1);let l=new Date(a);l.setDate(l.getDate()-7);let h=nt.dateGroupingMode!=="created",d={today:{title:h?"\uD83C\uDF1F Active Today":"\uD83C\uDF1F Initiated Today",sessions:[]},yesterday:{title:h?"⚡ Active Yesterday":"⚡ Initiated Yesterday",sessions:[]},thisWeek:{title:h?"\uD83D\uDCC5 Active Past 7 Days":"\uD83D\uDCC5 Initiated Past 7 Days",sessions:[]},older:{title:h?"\uD83D\uDDD3️ Active Earlier":"\uD83D\uDDD3️ Initiated Earlier",sessions:[]}},p=nt.sortBy==="active"||nt.sortBy==="";r.forEach((y)=>{let v=h||p?y.last_message_at?new Date(y.last_message_at):new Date(y.created_at):new Date(y.created_at);if(v>=a)d.today.sessions.push(y);else if(v>=o)d.yesterday.sessions.push(y);else if(v>=l)d.thisWeek.sessions.push(y);else d.older.sessions.push(y)});let m=` +
    + + Partitioning ${r.length} sessions by ${h?"⚡ Last Active Recency":"\uD83C\uDF31 Inception Date"} + +
    + Partition by: +
    + + +
    +
    +
    + `;for(let y of["today","yesterday","thisWeek","older"]){let v=d[y];if(v.sessions.length===0)continue;m+=`
    - ${m.title} - ${m.sessions.length} session${m.sessions.length===1?"":"s"} + ${v.title} + ${v.sessions.length} session${v.sessions.length===1?"":"s"}
    - ${Mgt(m.sessions)} + ${Bgt(v.sessions)}
    - `}e.innerHTML=d,Dgt(e)}function nOi(){if(Ae.projectHeroBanner)Ae.projectHeroBanner.style.display="none";let e=Ae.viewContainer||Ae.sessionGrid;if(!e)return;let r=at.sessions;if(Ae.sessionCountBadge)Ae.sessionCountBadge.textContent=`${r.length} session${r.length===1?"":"s"}`;if(r.length===0){e.innerHTML=` + `}e.innerHTML=m,Fgt(e),e.querySelectorAll("#dateGroupModeControl .segment-btn").forEach((y)=>{y.addEventListener("click",()=>{nt.dateGroupingMode=y.dataset.mode,arn()})})}function lOi(){if(ve.projectHeroBanner)ve.projectHeroBanner.style.display="none";let e=ve.viewContainer||ve.sessionGrid;if(!e)return;let r=nt.sessions;if(ve.sessionCountBadge)ve.sessionCountBadge.textContent=`${r.length} session${r.length===1?"":"s"}`;if(r.length===0){e.innerHTML=`
    \uD83D\uDCC2

    No sessions found

    No Antigravity IDE sessions matched your filters.

    - `;return}e.innerHTML=`
    ${Mgt(r)}
    `,Dgt(e)}function iOi(e){let r=(e.runtime_mode||"ide").toLowerCase(),i=(e.provider||"antigravity").toLowerCase();if(r==="cli")return'⚡ CLI';if(r==="core")return'⚙️ Core';if(i==="claude")return'\uD83E\uDD16 Claude';if(i==="copilot")return'\uD83D\uDC19 Copilot';return'\uD83D\uDCBB IDE'}function Mgt(e){return e.map((r)=>{let i=hle(r.created_at),a=pAe(r.created_at),o=r.first_user_prompt_preview||"No explicit user prompt",l=Math.round((r.transcript_size_bytes||0)/1024);return` -
    + `;return}e.innerHTML=`
    ${Bgt(r)}
    `,Fgt(e)}function cOi(e){let r=(e.runtime_mode||"ide").toLowerCase(),i=(e.provider||"antigravity").toLowerCase();if(r==="cli")return'⚡ CLI';if(r==="core")return'⚙️ Core';if(i==="claude")return'\uD83E\uDD16 Claude';if(i==="copilot")return'\uD83D\uDC19 Copilot';return'\uD83D\uDCBB IDE'}function Bgt(e){let r=Date.now();return e.map((i)=>{let a=new Date(i.created_at),o=i.last_message_at?new Date(i.last_message_at):a,l=r-o.getTime()<10800000,h=Math.max(0,o.getTime()-a.getTime()),d=h>=86400000,p=Math.max(1,Math.round(h/86400000)),m=gle(o),y=sw(o),v=xT(a),w=sw(a),T=i.first_user_prompt_preview||"No explicit user prompt",x=Math.round((i.transcript_size_bytes||0)/1024);return` +
    -
    - - \uD83D\uDCC1 ${En(r.project_name||"Default")} +
    + + \uD83D\uDCC1 ${nn(i.project_name||"Default")} + + ${cOi(i)} + +
    +
    + + ${l?'':""} + ⚡ Active ${m} + + + \uD83C\uDF31 Inception: ${v} - ${iOi(r)}
    - ${a}
    -
    - "${En(o)}" +
    + ${d?` + + ⏳ ${p}d Span (${bAe(a)} ➔ ${bAe(o)}) + + `:''} +
    +
    + "${nn(T)}"
    - \uD83E\uDE9C ${r.step_count} - \uD83D\uDC64 ${r.user_message_count} - \uD83E\uDD16 ${r.agent_response_count} - ⚡ ${r.tool_call_count} - \uD83D\uDCBE ${l}KB + \uD83E\uDE9C ${i.step_count} + \uD83D\uDC64 ${i.user_message_count} + \uD83E\uDD16 ${i.agent_response_count} + ⚡ ${i.tool_call_count} + \uD83D\uDCBE ${x}KB
    - `}).join("")}function Dgt(e){e.querySelectorAll(".session-card").forEach((r)=>{r.addEventListener("click",()=>{window.location.hash=`#/session/${r.dataset.id}`})})}function aOi(e){if(at.currentView="detail",Ae.dashboardView)Ae.dashboardView.style.display="none";if(Ae.detailView)Ae.detailView.classList.add("active");let r=e.session;if(at.selectedSessionId=r.id,at.selectedSessionDetail=e,at.sessionStepSearch="",at.sessionStepSort="step_desc",at.messageFilter="ALL",at.followStream=!0,at.pendingStepsBuffer=[],Ae.toggleFollowStreamBtn)Ae.toggleFollowStreamBtn.classList.add("active");if(Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none";if(Ae.sessionStepSearchInput)Ae.sessionStepSearchInput.value="";if(Ae.clearSessionStepSearchBtn)Ae.clearSessionStepSearchBtn.style.display="none";if(Ae.sessionStepSortSelect)Ae.sessionStepSortSelect.value="step_desc";if(Ae.resetSessionStepFiltersBtn)Ae.resetSessionStepFiltersBtn.style.display="none";if(document.querySelectorAll(".msg-filter-chip").forEach((o)=>{if(o.dataset.filter==="ALL")o.classList.add("active");else o.classList.remove("active")}),Ae.detailSessionId)Ae.detailSessionId.textContent=r.id;if(Ae.detailWorkspaceBadge)Ae.detailWorkspaceBadge.textContent=`\uD83D\uDCC1 ${r.project_name||"Default"}`;if(Ae.detailRuntimeBadge){let o=(r.runtime_mode||"ide").toLowerCase(),l=(r.provider||"antigravity").toLowerCase();if(Ae.detailRuntimeBadge.style.display="inline-flex",Ae.detailRuntimeBadge.className="runtime-badge",o==="cli")Ae.detailRuntimeBadge.classList.add("runtime-cli"),Ae.detailRuntimeBadge.textContent="⚡ CLI",Ae.detailRuntimeBadge.title=`Antigravity CLI (${r.storage_dir||""})`;else if(o==="core")Ae.detailRuntimeBadge.classList.add("runtime-core"),Ae.detailRuntimeBadge.textContent="⚙️ Core",Ae.detailRuntimeBadge.title=`Antigravity Core (${r.storage_dir||""})`;else if(l==="claude")Ae.detailRuntimeBadge.classList.add("runtime-claude"),Ae.detailRuntimeBadge.textContent="\uD83E\uDD16 Claude",Ae.detailRuntimeBadge.title="Claude Code";else if(l==="copilot")Ae.detailRuntimeBadge.classList.add("runtime-copilot"),Ae.detailRuntimeBadge.textContent="\uD83D\uDC19 Copilot",Ae.detailRuntimeBadge.title="GitHub Copilot";else Ae.detailRuntimeBadge.classList.add("runtime-ide"),Ae.detailRuntimeBadge.textContent="\uD83D\uDCBB IDE",Ae.detailRuntimeBadge.title=`Antigravity IDE (${r.storage_dir||""})`}if(Ae.detailTime)Ae.detailTime.textContent=hle(r.created_at,!0);if(!window.location.hash.includes(r.id))window.location.hash=`#/session/${r.id}`;if(at.activeTimelineSessionId!==r.id){if(at.renderedStepMap.clear(),at.activeTimelineSessionId=r.id,Ae.timelineContainer)Ae.timelineContainer.innerHTML=""}$gt(e),oA(),nrn(r.id);let a=window.location.hash.match(/step=(\d+)/);if(a){let o=parseInt(a[1],10),l=at.renderedStepMap.get(o);if(l){l.scrollIntoView({behavior:"smooth",block:"center"});return}}window.scrollTo({top:0,behavior:"smooth"})}function lle(e=!0){if(Pgt(),at.currentView="dashboard",at.selectedSessionId=null,at.activeTimelineSessionId=null,at.renderedStepMap.clear(),at.pendingStepsBuffer=[],Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none";if(Ae.detailView)Ae.detailView.classList.remove("active");if(Ae.dashboardView)Ae.dashboardView.style.display="block";if(e&&window.location.hash.startsWith("#/session"))window.location.hash="#/"}function sOi(){window.addEventListener("hashchange",$tn),$tn()}function $tn(){let r=(window.location.hash||"#/").replace(/^#\/?/,"");if(r.startsWith("session/")){let i=r.slice(8),[a]=i.split("?");if(a){if(at.selectedSessionId!==a||at.currentView!=="detail")Lgt(a);return}}if(r.startsWith("project/")){let i=decodeURIComponent(r.slice(8));if(i){if(at.currentView==="detail")lle(!1);if(at.drilledProject=i,at.filterWorkspace=i,Ae.workspaceSelect)Ae.workspaceSelect.value=i;if(at.dateFrom="",at.dateTo="",at.datePreset="all",Ae.dateFromInput)Ae.dateFromInput.value="";if(Ae.dateToInput)Ae.dateToInput.value="";if(Ae.datePresets){Ae.datePresets.forEach((o)=>o.classList.remove("active"));let a=Array.from(Ae.datePresets).find((o)=>o.dataset.preset==="all");if(a)a.classList.add("active")}sA();return}}if(at.currentView==="detail")lle(!1);if(!r.startsWith("project/")&&!r.startsWith("session/")){if(at.drilledProject){if(at.drilledProject=null,at.filterWorkspace="",Ae.workspaceSelect)Ae.workspaceSelect.value="";sA()}}}function Jtn(){if(at.sessionStepSearch="",at.sessionStepSort="step_desc",at.messageFilter="ALL",at.pendingStepsBuffer=[],Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none";if(Ae.sessionStepSearchInput)Ae.sessionStepSearchInput.value="";if(Ae.clearSessionStepSearchBtn)Ae.clearSessionStepSearchBtn.style.display="none";if(Ae.sessionStepSortSelect)Ae.sessionStepSortSelect.value="step_desc";if(Ae.resetSessionStepFiltersBtn)Ae.resetSessionStepFiltersBtn.style.display="none";document.querySelectorAll(".msg-filter-chip").forEach((e)=>{if(e.dataset.filter==="ALL")e.classList.add("active");else e.classList.remove("active")}),oA()}function ern(){if(!at.selectedSessionDetail)return[];let r=(at.selectedSessionDetail.messages||[]).filter((o)=>{let l=o.type==="USER_INPUT",h=o.type==="PLANNER_RESPONSE",d=Boolean(o.tool_calls&&o.tool_calls.length>0),p=o.status==="ERROR"||o.type==="ERROR_MESSAGE",m=Boolean(o.content&&o.content.trim());if(at.messageFilter==="USER_INPUT")return l;if(at.messageFilter==="AGENT_RESPONSES")return h&&!d&&m;if(at.messageFilter==="DIALOGUE"){if(l)return!0;if(h&&!d&&m)return!0;return!1}if(at.messageFilter==="PLANNER_RESPONSE")return h;if(at.messageFilter==="TOOL_CALLS")return d;if(at.messageFilter==="ERROR")return p;return!0}),i=(at.sessionStepSearch||"").trim().toLowerCase();if(i)r=r.filter((o)=>{let l=(o.content||"").toLowerCase().includes(i),h=(o.thinking||"").toLowerCase().includes(i),d=String(o.step_index).includes(i),p=!1;if(o.tool_calls&&Array.isArray(o.tool_calls))p=o.tool_calls.some((m)=>(m.name||"").toLowerCase().includes(i)||(m.args_preview||"").toLowerCase().includes(i)||typeof m.args==="object"&&JSON.stringify(m.args).toLowerCase().includes(i));return l||h||d||p});let a=at.sessionStepSort||"step_desc";return r.sort((o,l)=>{let h=typeof o.step_index==="number"?o.step_index:parseInt(o.step_index,10)||0,d=typeof l.step_index==="number"?l.step_index:parseInt(l.step_index,10)||0;switch(a){case"step_asc":return h-d;case"time_desc":{let p=o.created_at?new Date(o.created_at).getTime()||0:0;return(l.created_at?new Date(l.created_at).getTime()||0:0)-p||d-h}case"time_asc":{let p=o.created_at?new Date(o.created_at).getTime()||0:0,m=l.created_at?new Date(l.created_at).getTime()||0:0;return p-m||h-d}case"tools_desc":{let p=(o.tool_calls||[]).length;return(l.tool_calls||[]).length-p||d-h}case"length_desc":{let p=(o.content||"").length+(o.thinking||"").length;return(l.content||"").length+(l.thinking||"").length-p||d-h}case"step_desc":default:return d-h}}),r}function trn(){if(!at.selectedSessionDetail)return;let e=at.selectedSessionDetail.messages||[],r=ern(),i=(at.sessionStepSearch||"").trim(),a=at.sessionStepSort||"step_desc",o=Boolean(i||a!=="step_desc"||at.messageFilter!=="ALL"),l=Ae.detailStepCountBadge||document.getElementById("detailStepCountBadge");if(l)if(r.length===e.length)l.textContent=`${e.length} step${e.length===1?"":"s"}`;else l.textContent=`Showing ${r.length} of ${e.length} steps`;let h=Ae.resetSessionStepFiltersBtn||document.getElementById("resetSessionStepFiltersBtn");if(h)h.style.display=o?"inline-flex":"none";let d=Ae.clearSessionStepSearchBtn||document.getElementById("clearSessionStepSearchBtn");if(d)d.style.display=i?"inline-flex":"none";let p=Ae.sessionStepSortSelect||document.getElementById("sessionStepSortSelect");if(p&&p.value!==a)p.value=a}function oA(){if(!Ae.timelineContainer||!at.selectedSessionDetail)return;let e=ern();if(trn(),e.length===0){Ae.timelineContainer.innerHTML=` + `}).join("")}function Fgt(e){e.querySelectorAll(".card-copy-btn").forEach((r)=>{r.addEventListener("click",(i)=>{i.stopPropagation();let a=r.dataset.uuid;if(!a)return;copyToClipboard(a,`Session UUID copied: ${a.slice(0,8)}...`),r.classList.add("copied");let o=r.querySelector(".copy-icon");if(o)o.textContent="✓";setTimeout(()=>{if(r.classList.remove("copied"),o)o.textContent="\uD83D\uDCCB"},1800)})}),e.querySelectorAll(".session-card").forEach((r)=>{r.addEventListener("click",(i)=>{if(i.target.closest(".card-copy-btn"))return;window.location.hash=`#/session/${r.dataset.id}`})})}function uOi(e){if(nt.currentView="detail",ve.dashboardView)ve.dashboardView.style.display="none";if(ve.detailView)ve.detailView.classList.add("active");let r=e.session;if(nt.selectedSessionId=r.id,nt.selectedSessionDetail=e,nt.sessionStepSearch="",nt.sessionStepSort="step_desc",nt.messageFilter="ALL",nt.followStream=!0,nt.pendingStepsBuffer=[],ve.toggleFollowStreamBtn)ve.toggleFollowStreamBtn.classList.add("active");if(ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none";if(ve.sessionStepSearchInput)ve.sessionStepSearchInput.value="";if(ve.clearSessionStepSearchBtn)ve.clearSessionStepSearchBtn.style.display="none";if(ve.sessionStepSortSelect)ve.sessionStepSortSelect.value="step_desc";if(ve.resetSessionStepFiltersBtn)ve.resetSessionStepFiltersBtn.style.display="none";if(document.querySelectorAll(".msg-filter-chip").forEach((v)=>{if(v.dataset.filter==="ALL")v.classList.add("active");else v.classList.remove("active")}),ve.detailSessionId)ve.detailSessionId.textContent=r.id,ve.detailSessionId.title=`Full Session UUID: ${r.id} +Click to copy`;if(ve.detailSessionCapsule)ve.detailSessionCapsule.title=`Full Session UUID: ${r.id} +Click to copy`;if(ve.detailWorkspaceBadge)ve.detailWorkspaceBadge.textContent=`\uD83D\uDCC1 ${r.project_name||"Default"}`;if(ve.detailRuntimeBadge){let v=(r.runtime_mode||"ide").toLowerCase(),w=(r.provider||"antigravity").toLowerCase();if(ve.detailRuntimeBadge.style.display="inline-flex",ve.detailRuntimeBadge.className="runtime-badge",v==="cli")ve.detailRuntimeBadge.classList.add("runtime-cli"),ve.detailRuntimeBadge.textContent="⚡ CLI",ve.detailRuntimeBadge.title=`Antigravity CLI (${r.storage_dir||""})`;else if(v==="core")ve.detailRuntimeBadge.classList.add("runtime-core"),ve.detailRuntimeBadge.textContent="⚙️ Core",ve.detailRuntimeBadge.title=`Antigravity Core (${r.storage_dir||""})`;else if(w==="claude")ve.detailRuntimeBadge.classList.add("runtime-claude"),ve.detailRuntimeBadge.textContent="\uD83E\uDD16 Claude",ve.detailRuntimeBadge.title="Claude Code";else if(w==="copilot")ve.detailRuntimeBadge.classList.add("runtime-copilot"),ve.detailRuntimeBadge.textContent="\uD83D\uDC19 Copilot",ve.detailRuntimeBadge.title="GitHub Copilot";else ve.detailRuntimeBadge.classList.add("runtime-ide"),ve.detailRuntimeBadge.textContent="\uD83D\uDCBB IDE",ve.detailRuntimeBadge.title=`Antigravity IDE (${r.storage_dir||""})`}let i=new Date(r.created_at),a=r.last_message_at?new Date(r.last_message_at):i,l=Date.now()-a.getTime()<10800000,h=Math.max(0,a.getTime()-i.getTime()),d=h>=86400000,p=Math.max(1,Math.round(h/86400000));if(ve.detailActiveTime)ve.detailActiveTime.textContent=`⚡ Active ${gle(a)}`,ve.detailActiveTime.title=`Last active message: ${sw(a,!0)}`;if(ve.detailActivePill)ve.detailActivePill.classList.toggle("is-live",l);if(ve.detailPulseDot)ve.detailPulseDot.style.display=l?"inline-block":"none";if(ve.detailCreatedTime)ve.detailCreatedTime.textContent=`\uD83C\uDF31 Initiated ${sw(i,!0)}`,ve.detailCreatedTime.title=`Session initiated: ${sw(i,!0)}`;if(ve.detailLifespanPill&&ve.detailLifespanText)if(d)ve.detailLifespanPill.style.display="inline-flex",ve.detailLifespanText.textContent=`⏳ ${p}d Span (${bAe(i)} ➔ ${bAe(a)})`,ve.detailLifespanPill.title=`Session active across ${p} days (from ${sw(i,!0)} to ${sw(a,!0)})`;else ve.detailLifespanPill.style.display="none";if(ve.detailTime)ve.detailTime.textContent=sw(r.created_at,!0);if(!window.location.hash.includes(r.id))window.location.hash=`#/session/${r.id}`;if(nt.activeTimelineSessionId!==r.id){if(nt.renderedStepMap.clear(),nt.activeTimelineSessionId=r.id,ve.timelineContainer)ve.timelineContainer.innerHTML=""}Hgt(e),uA(),urn(r.id);let y=window.location.hash.match(/step=(\d+)/);if(y){let v=parseInt(y[1],10),w=nt.renderedStepMap.get(v);if(w){w.scrollIntoView({behavior:"smooth",block:"center"});return}}window.scrollTo({top:0,behavior:"smooth"})}function hle(e=!0){if($gt(),nt.currentView="dashboard",nt.selectedSessionId=null,nt.activeTimelineSessionId=null,nt.renderedStepMap.clear(),nt.pendingStepsBuffer=[],ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none";if(ve.detailView)ve.detailView.classList.remove("active");if(ve.dashboardView)ve.dashboardView.style.display="block";if(e&&window.location.hash.startsWith("#/session"))window.location.hash="#/"}function hOi(){window.addEventListener("hashchange",Htn),Htn()}function Htn(){let r=(window.location.hash||"#/").replace(/^#\/?/,"");if(r.startsWith("session/")){let i=r.slice(8),[a]=i.split("?");if(a){if(nt.selectedSessionId!==a||nt.currentView!=="detail")Pgt(a);return}}if(r.startsWith("project/")){let i=decodeURIComponent(r.slice(8));if(i){if(nt.currentView==="detail")hle(!1);if(nt.drilledProject=i,nt.filterWorkspace=i,ve.workspaceSelect)ve.workspaceSelect.value=i;if(nt.dateFrom="",nt.dateTo="",nt.datePreset="all",ve.dateFromInput)ve.dateFromInput.value="";if(ve.dateToInput)ve.dateToInput.value="";if(ve.datePresets){ve.datePresets.forEach((o)=>o.classList.remove("active"));let a=Array.from(ve.datePresets).find((o)=>o.dataset.preset==="all");if(a)a.classList.add("active")}oA();return}}if(nt.currentView==="detail")hle(!1);if(!r.startsWith("project/")&&!r.startsWith("session/")){if(nt.drilledProject){if(nt.drilledProject=null,nt.filterWorkspace="",ve.workspaceSelect)ve.workspaceSelect.value="";oA()}}}function srn(){if(nt.sessionStepSearch="",nt.sessionStepSort="step_desc",nt.messageFilter="ALL",nt.pendingStepsBuffer=[],ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none";if(ve.sessionStepSearchInput)ve.sessionStepSearchInput.value="";if(ve.clearSessionStepSearchBtn)ve.clearSessionStepSearchBtn.style.display="none";if(ve.sessionStepSortSelect)ve.sessionStepSortSelect.value="step_desc";if(ve.resetSessionStepFiltersBtn)ve.resetSessionStepFiltersBtn.style.display="none";document.querySelectorAll(".msg-filter-chip").forEach((e)=>{if(e.dataset.filter==="ALL")e.classList.add("active");else e.classList.remove("active")}),uA()}function orn(){if(!nt.selectedSessionDetail)return[];let r=(nt.selectedSessionDetail.messages||[]).filter((o)=>{let l=o.type==="USER_INPUT",h=o.type==="PLANNER_RESPONSE",d=Boolean(o.tool_calls&&o.tool_calls.length>0),p=o.status==="ERROR"||o.type==="ERROR_MESSAGE",m=Boolean(o.content&&o.content.trim());if(nt.messageFilter==="USER_INPUT")return l;if(nt.messageFilter==="AGENT_RESPONSES")return h&&!d&&m;if(nt.messageFilter==="DIALOGUE"){if(l)return!0;if(h&&!d&&m)return!0;return!1}if(nt.messageFilter==="PLANNER_RESPONSE")return h;if(nt.messageFilter==="TOOL_CALLS")return d;if(nt.messageFilter==="ERROR")return p;return!0}),i=(nt.sessionStepSearch||"").trim().toLowerCase();if(i)r=r.filter((o)=>{let l=(o.content||"").toLowerCase().includes(i),h=(o.thinking||"").toLowerCase().includes(i),d=String(o.step_index).includes(i),p=!1;if(o.tool_calls&&Array.isArray(o.tool_calls))p=o.tool_calls.some((m)=>(m.name||"").toLowerCase().includes(i)||(m.args_preview||"").toLowerCase().includes(i)||typeof m.args==="object"&&JSON.stringify(m.args).toLowerCase().includes(i));return l||h||d||p});let a=nt.sessionStepSort||"step_desc";return r.sort((o,l)=>{let h=typeof o.step_index==="number"?o.step_index:parseInt(o.step_index,10)||0,d=typeof l.step_index==="number"?l.step_index:parseInt(l.step_index,10)||0;switch(a){case"step_asc":return h-d;case"time_desc":{let p=o.created_at?new Date(o.created_at).getTime()||0:0;return(l.created_at?new Date(l.created_at).getTime()||0:0)-p||d-h}case"time_asc":{let p=o.created_at?new Date(o.created_at).getTime()||0:0,m=l.created_at?new Date(l.created_at).getTime()||0:0;return p-m||h-d}case"tools_desc":{let p=(o.tool_calls||[]).length;return(l.tool_calls||[]).length-p||d-h}case"length_desc":{let p=(o.content||"").length+(o.thinking||"").length;return(l.content||"").length+(l.thinking||"").length-p||d-h}case"step_desc":default:return d-h}}),r}function lrn(){if(!nt.selectedSessionDetail)return;let e=nt.selectedSessionDetail.messages||[],r=orn(),i=(nt.sessionStepSearch||"").trim(),a=nt.sessionStepSort||"step_desc",o=Boolean(i||a!=="step_desc"||nt.messageFilter!=="ALL"),l=ve.detailStepCountBadge||document.getElementById("detailStepCountBadge");if(l)if(r.length===e.length)l.textContent=`${e.length} step${e.length===1?"":"s"}`;else l.textContent=`Showing ${r.length} of ${e.length} steps`;let h=ve.resetSessionStepFiltersBtn||document.getElementById("resetSessionStepFiltersBtn");if(h)h.style.display=o?"inline-flex":"none";let d=ve.clearSessionStepSearchBtn||document.getElementById("clearSessionStepSearchBtn");if(d)d.style.display=i?"inline-flex":"none";let p=ve.sessionStepSortSelect||document.getElementById("sessionStepSortSelect");if(p&&p.value!==a)p.value=a}function uA(){if(!ve.timelineContainer||!nt.selectedSessionDetail)return;let e=orn();if(lrn(),e.length===0){ve.timelineContainer.innerHTML=`
    \uD83D\uDD0D

    No matching steps found

    -

    ${stepQuery?`No steps match "${En(stepQuery)}"`:"No steps match the current filter selection."}

    +

    ${stepQuery?`No steps match "${nn(stepQuery)}"`:"No steps match the current filter selection."}

    - `,document.getElementById("clearStepSearchEmptyBtn")?.addEventListener("click",()=>{Jtn()});return}if(Ae.timelineContainer.innerHTML="",at.pendingStepsBuffer=[],Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none";let r=document.createDocumentFragment();for(let i of e){let a;if(at.renderedStepMap.has(i.step_index)){let o=at.renderedStepMap.get(i.step_index);if(o.dataset.status!==i.status){o.dataset.status=i.status;let l=document.createElement("div");l.innerHTML=ule(i),a=l.firstElementChild,at.renderedStepMap.set(i.step_index,a),CW(a)}else a=o}else{let o=document.createElement("div");o.innerHTML=ule(i),a=o.firstElementChild,at.renderedStepMap.set(i.step_index,a),CW(a)}if(a)a.id=`step-${i.step_index}`;r.appendChild(a)}Ae.timelineContainer.appendChild(r),Bgt(Ae.timelineContainer)}function ule(e){let r=e.type==="USER_INPUT",i=e.type==="PLANNER_RESPONSE",a=!r&&!i&&e.type!=="ERROR_MESSAGE",o=e.type==="ERROR_MESSAGE"||e.status==="ERROR",l=r?"User":i?"Agent":o?"Error":e.type,h=r?"\uD83D\uDC64":i?"\uD83E\uDD16":o?"⚠️":"⚙️",d=hle(e.created_at,!0),p=pAe(e.created_at),m="",y="";if(r||i){if(e.content&&e.content.trim())try{m=ku.parse(e.content)}catch(x){m=`

    ${En(e.content)}

    `}}else if(a){let x=e.content?e.content.length:0,k=x>1024?`${Math.round(x/1024)}KB`:`${x}B`;y=` + `,document.getElementById("clearStepSearchEmptyBtn")?.addEventListener("click",()=>{srn()});return}if(ve.timelineContainer.innerHTML="",nt.pendingStepsBuffer=[],ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none";let r=document.createDocumentFragment();for(let i of e){let a;if(nt.renderedStepMap.has(i.step_index)){let o=nt.renderedStepMap.get(i.step_index);if(o.dataset.status!==i.status){o.dataset.status=i.status;let l=document.createElement("div");l.innerHTML=fle(i),a=l.firstElementChild,nt.renderedStepMap.set(i.step_index,a),AW(a)}else a=o}else{let o=document.createElement("div");o.innerHTML=fle(i),a=o.firstElementChild,nt.renderedStepMap.set(i.step_index,a),AW(a)}if(a)a.id=`step-${i.step_index}`;r.appendChild(a)}ve.timelineContainer.appendChild(r),Ugt(ve.timelineContainer)}function fle(e){let r=e.type==="USER_INPUT",i=e.type==="PLANNER_RESPONSE",a=!r&&!i&&e.type!=="ERROR_MESSAGE",o=e.type==="ERROR_MESSAGE"||e.status==="ERROR",l=r?"User":i?"Agent":o?"Error":e.type,h=r?"\uD83D\uDC64":i?"\uD83E\uDD16":o?"⚠️":"⚙️",d=sw(e.created_at,!0),p=gle(e.created_at),m="",y="";if(r||i){if(e.content&&e.content.trim())try{m=ku.parse(e.content)}catch(x){m=`

    ${nn(e.content)}

    `}}else if(a){let x=e.content?e.content.length:0,k=x>1024?`${Math.round(x/1024)}KB`:`${x}B`;y=`
    - ⚙️ ${En(e.type)} output (${k}) + ⚙️ ${nn(e.type)} output (${k}) Click to toggle output -
    ${En(e.content||"")}
    +
    ${nn(e.content||"")}
    - `}else if(o)m=`
    ⚠️ ${En(e.content||"Unknown error")}
    `;let E="";if(e.has_thinking&&e.thinking){let x="";try{x=ku.parse(e.thinking)}catch(k){x=En(e.thinking)}E=` + `}else if(o)m=`
    ⚠️ ${nn(e.content||"Unknown error")}
    `;let v="";if(e.has_thinking&&e.thinking){let x="";try{x=ku.parse(e.thinking)}catch(k){x=nn(e.thinking)}v=`
    \uD83E\uDDE0 Reasoning / Inner Monologue (${e.thinking.length} chars)
    ${x}
    @@ -4894,30 +4929,30 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
    ${e.tool_calls.map((x)=>{let k=x.args||{},A=x.args?JSON.stringify(x.args,null,2):x.args_preview||"{}",R=k.AbsolutePath||k.TargetFile||k.path||k.file_path||(typeof k.file==="string"?k.file:""),N="";if(R&&typeof R==="string"){let B=R.replace(/^file:\/\//,""),D=B.split("/").pop()||B,P=k.StartLine?`#L${k.StartLine}${k.EndLine?`-L${k.EndLine}`:""}`:"",F=B+P;N=`
    - - + +
    `}let L="";if(k.ArtifactMetadata&&typeof k.ArtifactMetadata==="object"){let B=k.ArtifactMetadata.Summary||"Artifact",D=k.TargetFile||R;L=`
    - ✨ Artifact: ${En(B)} - ${D?``:""} + ✨ Artifact: ${nn(B)} + ${D?``:""}
    `}return`
    - \uD83D\uDEE0️ ${En(x.name)} + \uD83D\uDEE0️ ${nn(x.name)} ${N}
    - +
    ${L} -
    ${En(A)}
    +
    ${nn(A)}
    `}).join("")}
    `;let T=typeof e.step_index==="number"?e.step_index.toLocaleString():e.step_index??"0";return` -
    +
    ${T}
    @@ -4929,18 +4964,18 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, \uD83D\uDCC5 ${d} ${p?`(${p})`:""} - ${e.content?``:""} + ${e.content?``:""}
    - ${E} + ${v} ${m?`
    ${m}
    `:""} ${y} ${w}
    - `}function CW(e){if(!e)return;e.querySelectorAll(".copy-msg-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.content,"Message copied to clipboard!")}}),e.querySelectorAll(".copy-tool-args-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.args,"Tool arguments copied to clipboard!")}}),e.querySelectorAll(".toggle-mermaid-src-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation();let a=r.dataset.target,o=document.getElementById(a);if(o){let l=o.style.display==="none";o.style.display=l?"block":"none",r.textContent=l?"Hide Source":"Source",r.classList.toggle("active",l)}}}),e.querySelectorAll(".copy-mermaid-src-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.code,"Diagram code copied to clipboard!")}}),e.querySelectorAll(".copy-code-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.code,"Code copied to clipboard!")}}),e.querySelectorAll(".file-path-link").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation();let a=r.dataset.filepath||r.getAttribute("href");lM(a)}}),e.querySelectorAll(".file-link-quick-copy-btn").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation();let a=r.dataset.path;copyToClipboard(a,"File path copied to clipboard!");let o=r.textContent;r.textContent="✓",r.classList.add("copy-success"),setTimeout(()=>{r.textContent=o,r.classList.remove("copy-success")},1500)}}),e.querySelectorAll(".tool-file-pill").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation(),lM(r.dataset.filepath)}}),e.querySelectorAll(".tool-file-copy-btn").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation();let a=r.dataset.path;copyToClipboard(a,"File path copied to clipboard!");let o=r.textContent;r.textContent="✓",r.classList.add("copy-success"),setTimeout(()=>{r.textContent=o,r.classList.remove("copy-success")},1500)}}),e.querySelectorAll(".open-artifact-btn").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation(),lM(r.dataset.filepath)}}),Bgt(e)}function rrn(e){let r=e.type==="USER_INPUT",i=e.type==="PLANNER_RESPONSE",a=Boolean(e.tool_calls&&e.tool_calls.length>0),o=e.type==="ERROR_MESSAGE"||e.status==="ERROR",l=Boolean(e.content&&e.content.trim());if(at.messageFilter==="USER_INPUT"&&!r)return!1;if(at.messageFilter==="AGENT_RESPONSES"){if(!i||a||!l)return!1}if(at.messageFilter==="DIALOGUE"){if(!r&&!(i&&!a&&l))return!1}if(at.messageFilter==="PLANNER_RESPONSE"&&!i)return!1;if(at.messageFilter==="TOOL_CALLS"&&!a)return!1;if(at.messageFilter==="ERROR"&&!o)return!1;let h=(at.sessionStepSearch||"").trim().toLowerCase();if(!h)return!0;if(e.content&&e.content.toLowerCase().includes(h))return!0;if(e.thinking&&e.thinking.toLowerCase().includes(h))return!0;if(e.type&&e.type.toLowerCase().includes(h))return!0;if(e.tool_calls)for(let d of e.tool_calls){if(d.name&&d.name.toLowerCase().includes(h))return!0;if(d.args_preview&&d.args_preview.toLowerCase().includes(h))return!0}return!1}function Utn(){let e=at.pendingStepsBuffer||[];if(at.pendingStepsBuffer=[],Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none";if(at.followStream=!0,Ae.toggleFollowStreamBtn)Ae.toggleFollowStreamBtn.classList.add("active");let r=(at.sessionStepSort||"step_desc")==="step_desc";if(e.length>0){e.sort((i,a)=>i.step_index-a.step_index);for(let i of e){if(!rrn(i))continue;if(at.renderedStepMap.has(i.step_index))continue;let a=document.createElement("div");a.innerHTML=ule(i);let o=a.firstElementChild;if(o.classList.add("step-enter"),at.renderedStepMap.set(i.step_index,o),r)Ae.timelineContainer.prepend(o);else Ae.timelineContainer.appendChild(o);CW(o)}}if(r)window.scrollTo({top:0,behavior:"smooth"});else window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}function oOi(e){if(!at.selectedSessionDetail)return;if(!at.selectedSessionDetail.messages)at.selectedSessionDetail.messages=[];let r=at.selectedSessionDetail.messages.findIndex((h)=>h.step_index===e.step_index);if(r!==-1)at.selectedSessionDetail.messages[r]=e;else at.selectedSessionDetail.messages.push(e);if(trn(),$gt(at.selectedSessionDetail),Ae.sessionFilesModal&&Ae.sessionFilesModal.classList.contains("active"))Ugt();if(Z6i(at.selectedSessionId||at.selectedSessionDetail&&at.selectedSessionDetail.id),at.renderedStepMap.has(e.step_index)){let h=at.renderedStepMap.get(e.step_index);if(h.dataset.status!==e.status){h.dataset.status=e.status;let d=document.createElement("div");d.innerHTML=ule(e);let p=d.firstElementChild;h.replaceWith(p),at.renderedStepMap.set(e.step_index,p),CW(p)}return}if(!rrn(e))return;let i=(at.sessionStepSort||"step_desc")==="step_desc",a=i?window.scrollY<=150:window.innerHeight+window.scrollY>=document.body.offsetHeight-150;if(!at.followStream||!a){let h=at.pendingStepsBuffer.findIndex((p)=>p.step_index===e.step_index);if(h!==-1)at.pendingStepsBuffer[h]=e;else at.pendingStepsBuffer.push(e);let d=at.pendingStepsBuffer.length;if(Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.innerHTML=i?`${d} new step${d>1?"s":""} arrived ↑`:`${d} new step${d>1?"s":""} arrived ↓`,Ae.newStepsFloatingBtn.style.display="inline-flex";return}let o=document.createElement("div");o.innerHTML=ule(e);let l=o.firstElementChild;if(l.classList.add("step-enter"),at.renderedStepMap.set(e.step_index,l),i)Ae.timelineContainer.prepend(l);else Ae.timelineContainer.appendChild(l);if(CW(l),i)window.scrollTo({top:0,behavior:"smooth"});else l.scrollIntoView({behavior:"smooth",block:"end"});if(Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none"}function nrn(e){Pgt(!1),at.tailStreaming=!0;let r=-1;if((at.selectedSessionDetail&&at.selectedSessionDetail.messages||[]).forEach((l)=>{if(l.step_index>r)r=l.step_index}),Ae.tailStreamControl)Ae.tailStreamControl.classList.remove("paused"),Ae.tailStreamControl.classList.add("streaming");if(Ae.tailStatusLabel)Ae.tailStatusLabel.textContent="Live Stream";if(Ae.detailLiveDot)Ae.detailLiveDot.classList.add("active","pulsing");if(Ae.toggleStreamBtn)Ae.toggleStreamBtn.title="Click to Pause Live Streaming";let a=`/api/sessions/${encodeURIComponent(e)}/tail?last_step=${r}`,o=new EventSource(a);at.tailEventSource=o,o.addEventListener("connected",()=>{if(Ae.tailStatusLabel)Ae.tailStatusLabel.textContent="Live Stream ⚡"}),o.addEventListener("step",(l)=>{try{let h=JSON.parse(l.data);oOi(h)}catch(h){console.warn("Failed to parse SSE step event:",h)}}),o.onerror=()=>{if(at.tailStreaming){if(Ae.tailStatusLabel)Ae.tailStatusLabel.textContent="Reconnecting...";if(Ae.detailLiveDot)Ae.detailLiveDot.classList.remove("pulsing")}}}function Pgt(e=!1){if(at.tailEventSource)at.tailEventSource.close(),at.tailEventSource=null;if(e){if(at.tailStreaming=!1,Ae.tailStreamControl)Ae.tailStreamControl.classList.remove("streaming"),Ae.tailStreamControl.classList.add("paused");if(Ae.tailStatusLabel)Ae.tailStatusLabel.textContent="Stream Paused";if(Ae.detailLiveDot)Ae.detailLiveDot.classList.remove("pulsing");if(Ae.toggleStreamBtn)Ae.toggleStreamBtn.title="Click to Resume Live Streaming"}else{if(at.tailStreaming=!1,Ae.tailStreamControl)Ae.tailStreamControl.classList.remove("streaming","paused");if(Ae.detailLiveDot)Ae.detailLiveDot.classList.remove("pulsing")}}async function cAe(e=!0){let r=at.selectedSessionId||at.selectedSessionDetail&&at.selectedSessionDetail.session&&at.selectedSessionDetail.session.id;if(!r)return;if(Ae.refreshTrailBtn)Ae.refreshTrailBtn.classList.add("refreshing"),Ae.refreshTrailBtn.disabled=!0;try{let[i,a]=await Promise.all([fetch(`/api/sessions/${r}`),fetch(`/api/sessions/${r}/context`)]);if(i.ok){let o=await i.json();if(at.selectedSessionDetail=o,$gt(o,e),Ae.sessionFilesModal&&Ae.sessionFilesModal.classList.contains("active"))Ugt();if(at.pendingStepsBuffer=[],Ae.newStepsFloatingBtn)Ae.newStepsFloatingBtn.style.display="none";oA()}if(a.ok){let o=await a.json();if(at.sessionContextData=o,at.sessionMatrix.context=o,Ngt(o,e),Ae.sessionContextModal&&Ae.sessionContextModal.classList.contains("active"))zI()}if(e)ob("✨ Session trail, agent context & files synchronized")}catch(i){if(console.error("Session trail refresh failed:",i),e)ob(`❌ Refresh failed: ${i.message}`)}finally{if(Ae.refreshTrailBtn)setTimeout(()=>{Ae.refreshTrailBtn.classList.remove("refreshing"),Ae.refreshTrailBtn.disabled=!1},400)}}async function Bgt(e=document){let r=e.querySelectorAll('pre.mermaid:not([data-processed="true"])');if(!r.length)return;try{await Egt.run({nodes:Array.from(r),suppressErrors:!0})}catch(i){console.warn("Mermaid batch render warning:",i)}lOi(e)}function lOi(e=document){e.querySelectorAll('.canvas-container:not([data-zoom-initialized="true"])').forEach((r)=>{r.setAttribute("data-zoom-initialized","true");let i=r.querySelector(".canvas-content-surface"),a=r.querySelector(".canvas-viewport"),o=r.querySelector(".zoom-in-btn"),l=r.querySelector(".zoom-out-btn"),h=r.querySelector(".zoom-reset-btn"),d=r.querySelector(".theater-btn"),p=r.querySelector(".zoom-level-badge"),m=r.querySelector(".canvas-type-tag")?.textContent||"Diagram Canvas",y=r.querySelector(".mermaid-source-pre code")?.textContent||"";if(!i)return;let E=1,w=()=>{if(i.style.transform=`scale(${E})`,p)p.textContent=`${Math.round(E*100)}%`};if(o)o.addEventListener("click",(T)=>{T.stopPropagation(),E=Math.min(3,+(E+0.2).toFixed(2)),w()});if(l)l.addEventListener("click",(T)=>{T.stopPropagation(),E=Math.max(0.4,+(E-0.2).toFixed(2)),w()});if(h)h.addEventListener("click",(T)=>{T.stopPropagation(),E=1,w()});if(d)d.addEventListener("click",(T)=>{T.stopPropagation(),kgt(m,i.innerHTML,y)});if(a)a.addEventListener("dblclick",(T)=>{if(T.target.closest("button"))return;kgt(m,i.innerHTML,y)})})}function Gtn(e){if(!at.selectedSessionDetail)return;let r=at.selectedSessionDetail,i=r.session,a=r.messages||[];if(e==="json"){let o="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(r,null,2)),l=document.createElement("a");l.setAttribute("href",o),l.setAttribute("download",`session-${i.id}.json`),l.click(),ob("Downloaded session JSON!")}else if(e==="markdown"){let o=`# Conversation Session: ${i.id} + `}function AW(e){if(!e)return;e.querySelectorAll(".copy-msg-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.content,"Message copied to clipboard!")}}),e.querySelectorAll(".copy-tool-args-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.args,"Tool arguments copied to clipboard!")}}),e.querySelectorAll(".toggle-mermaid-src-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation();let a=r.dataset.target,o=document.getElementById(a);if(o){let l=o.style.display==="none";o.style.display=l?"block":"none",r.textContent=l?"Hide Source":"Source",r.classList.toggle("active",l)}}}),e.querySelectorAll(".copy-mermaid-src-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.code,"Diagram code copied to clipboard!")}}),e.querySelectorAll(".copy-code-btn").forEach((r)=>{r.onclick=(i)=>{i.stopPropagation(),copyToClipboard(r.dataset.code,"Code copied to clipboard!")}}),e.querySelectorAll(".file-path-link").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation();let a=r.dataset.filepath||r.getAttribute("href");uM(a)}}),e.querySelectorAll(".file-link-quick-copy-btn").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation();let a=r.dataset.path;copyToClipboard(a,"File path copied to clipboard!");let o=r.textContent;r.textContent="✓",r.classList.add("copy-success"),setTimeout(()=>{r.textContent=o,r.classList.remove("copy-success")},1500)}}),e.querySelectorAll(".tool-file-pill").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation(),uM(r.dataset.filepath)}}),e.querySelectorAll(".tool-file-copy-btn").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation();let a=r.dataset.path;copyToClipboard(a,"File path copied to clipboard!");let o=r.textContent;r.textContent="✓",r.classList.add("copy-success"),setTimeout(()=>{r.textContent=o,r.classList.remove("copy-success")},1500)}}),e.querySelectorAll(".open-artifact-btn").forEach((r)=>{r.onclick=(i)=>{i.preventDefault(),i.stopPropagation(),uM(r.dataset.filepath)}}),Ugt(e)}function crn(e){let r=e.type==="USER_INPUT",i=e.type==="PLANNER_RESPONSE",a=Boolean(e.tool_calls&&e.tool_calls.length>0),o=e.type==="ERROR_MESSAGE"||e.status==="ERROR",l=Boolean(e.content&&e.content.trim());if(nt.messageFilter==="USER_INPUT"&&!r)return!1;if(nt.messageFilter==="AGENT_RESPONSES"){if(!i||a||!l)return!1}if(nt.messageFilter==="DIALOGUE"){if(!r&&!(i&&!a&&l))return!1}if(nt.messageFilter==="PLANNER_RESPONSE"&&!i)return!1;if(nt.messageFilter==="TOOL_CALLS"&&!a)return!1;if(nt.messageFilter==="ERROR"&&!o)return!1;let h=(nt.sessionStepSearch||"").trim().toLowerCase();if(!h)return!0;if(e.content&&e.content.toLowerCase().includes(h))return!0;if(e.thinking&&e.thinking.toLowerCase().includes(h))return!0;if(e.type&&e.type.toLowerCase().includes(h))return!0;if(e.tool_calls)for(let d of e.tool_calls){if(d.name&&d.name.toLowerCase().includes(h))return!0;if(d.args_preview&&d.args_preview.toLowerCase().includes(h))return!0}return!1}function qtn(){let e=nt.pendingStepsBuffer||[];if(nt.pendingStepsBuffer=[],ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none";if(nt.followStream=!0,ve.toggleFollowStreamBtn)ve.toggleFollowStreamBtn.classList.add("active");let r=(nt.sessionStepSort||"step_desc")==="step_desc";if(e.length>0){e.sort((i,a)=>i.step_index-a.step_index);for(let i of e){if(!crn(i))continue;if(nt.renderedStepMap.has(i.step_index))continue;let a=document.createElement("div");a.innerHTML=fle(i);let o=a.firstElementChild;if(o.classList.add("step-enter"),nt.renderedStepMap.set(i.step_index,o),r)ve.timelineContainer.prepend(o);else ve.timelineContainer.appendChild(o);AW(o)}}if(r)window.scrollTo({top:0,behavior:"smooth"});else window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}function dOi(e){if(!nt.selectedSessionDetail)return;if(!nt.selectedSessionDetail.messages)nt.selectedSessionDetail.messages=[];let r=nt.selectedSessionDetail.messages.findIndex((h)=>h.step_index===e.step_index);if(r!==-1)nt.selectedSessionDetail.messages[r]=e;else nt.selectedSessionDetail.messages.push(e);if(lrn(),Hgt(nt.selectedSessionDetail),ve.sessionFilesModal&&ve.sessionFilesModal.classList.contains("active"))prn();if(iOi(nt.selectedSessionId||nt.selectedSessionDetail&&nt.selectedSessionDetail.id),nt.renderedStepMap.has(e.step_index)){let h=nt.renderedStepMap.get(e.step_index);if(h.dataset.status!==e.status){h.dataset.status=e.status;let d=document.createElement("div");d.innerHTML=fle(e);let p=d.firstElementChild;h.replaceWith(p),nt.renderedStepMap.set(e.step_index,p),AW(p)}return}if(!crn(e))return;let i=(nt.sessionStepSort||"step_desc")==="step_desc",a=i?window.scrollY<=150:window.innerHeight+window.scrollY>=document.body.offsetHeight-150;if(!nt.followStream||!a){let h=nt.pendingStepsBuffer.findIndex((p)=>p.step_index===e.step_index);if(h!==-1)nt.pendingStepsBuffer[h]=e;else nt.pendingStepsBuffer.push(e);let d=nt.pendingStepsBuffer.length;if(ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.innerHTML=i?`${d} new step${d>1?"s":""} arrived ↑`:`${d} new step${d>1?"s":""} arrived ↓`,ve.newStepsFloatingBtn.style.display="inline-flex";return}let o=document.createElement("div");o.innerHTML=fle(e);let l=o.firstElementChild;if(l.classList.add("step-enter"),nt.renderedStepMap.set(e.step_index,l),i)ve.timelineContainer.prepend(l);else ve.timelineContainer.appendChild(l);if(AW(l),i)window.scrollTo({top:0,behavior:"smooth"});else l.scrollIntoView({behavior:"smooth",block:"end"});if(ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none"}function urn(e){$gt(!1),nt.tailStreaming=!0;let r=-1;if((nt.selectedSessionDetail&&nt.selectedSessionDetail.messages||[]).forEach((l)=>{if(l.step_index>r)r=l.step_index}),ve.tailStreamControl)ve.tailStreamControl.classList.remove("paused"),ve.tailStreamControl.classList.add("streaming");if(ve.tailStatusLabel)ve.tailStatusLabel.textContent="Live Stream";if(ve.detailLiveDot)ve.detailLiveDot.classList.add("active","pulsing");if(ve.toggleStreamBtn)ve.toggleStreamBtn.title="Click to Pause Live Streaming";let a=`/api/sessions/${encodeURIComponent(e)}/tail?last_step=${r}`,o=new EventSource(a);nt.tailEventSource=o,o.addEventListener("connected",()=>{if(ve.tailStatusLabel)ve.tailStatusLabel.textContent="Live Stream ⚡"}),o.addEventListener("step",(l)=>{try{let h=JSON.parse(l.data);dOi(h)}catch(h){console.warn("Failed to parse SSE step event:",h)}}),o.onerror=()=>{if(nt.tailStreaming){if(ve.tailStatusLabel)ve.tailStatusLabel.textContent="Reconnecting...";if(ve.detailLiveDot)ve.detailLiveDot.classList.remove("pulsing")}}}function $gt(e=!1){if(nt.tailEventSource)nt.tailEventSource.close(),nt.tailEventSource=null;if(e){if(nt.tailStreaming=!1,ve.tailStreamControl)ve.tailStreamControl.classList.remove("streaming"),ve.tailStreamControl.classList.add("paused");if(ve.tailStatusLabel)ve.tailStatusLabel.textContent="Stream Paused";if(ve.detailLiveDot)ve.detailLiveDot.classList.remove("pulsing");if(ve.toggleStreamBtn)ve.toggleStreamBtn.title="Click to Resume Live Streaming"}else{if(nt.tailStreaming=!1,ve.tailStreamControl)ve.tailStreamControl.classList.remove("streaming","paused");if(ve.detailLiveDot)ve.detailLiveDot.classList.remove("pulsing")}}async function dAe(e=!0){let r=nt.selectedSessionId||nt.selectedSessionDetail&&nt.selectedSessionDetail.session&&nt.selectedSessionDetail.session.id;if(!r)return;if(ve.refreshTrailBtn)ve.refreshTrailBtn.classList.add("refreshing"),ve.refreshTrailBtn.disabled=!0;try{let[i,a]=await Promise.all([fetch(`/api/sessions/${r}`),fetch(`/api/sessions/${r}/context`)]);if(i.ok){let o=await i.json();if(nt.selectedSessionDetail=o,Hgt(o,e),ve.sessionFilesModal&&ve.sessionFilesModal.classList.contains("active"))prn();if(nt.pendingStepsBuffer=[],ve.newStepsFloatingBtn)ve.newStepsFloatingBtn.style.display="none";uA()}if(a.ok){let o=await a.json();if(nt.sessionContextData=o,nt.sessionMatrix.context=o,Dgt(o,e),ve.sessionContextModal&&ve.sessionContextModal.classList.contains("active"))cA()}if(e)ob("✨ Session trail, agent context & files synchronized")}catch(i){if(console.error("Session trail refresh failed:",i),e)ob(`❌ Refresh failed: ${i.message}`)}finally{if(ve.refreshTrailBtn)setTimeout(()=>{ve.refreshTrailBtn.classList.remove("refreshing"),ve.refreshTrailBtn.disabled=!1},400)}}async function Ugt(e=document){let r=e.querySelectorAll('pre.mermaid:not([data-processed="true"])');if(!r.length)return;try{await Tgt.run({nodes:Array.from(r),suppressErrors:!0})}catch(i){console.warn("Mermaid batch render warning:",i)}fOi(e)}function fOi(e=document){e.querySelectorAll('.canvas-container:not([data-zoom-initialized="true"])').forEach((r)=>{r.setAttribute("data-zoom-initialized","true");let i=r.querySelector(".canvas-content-surface"),a=r.querySelector(".canvas-viewport"),o=r.querySelector(".zoom-in-btn"),l=r.querySelector(".zoom-out-btn"),h=r.querySelector(".zoom-reset-btn"),d=r.querySelector(".theater-btn"),p=r.querySelector(".zoom-level-badge"),m=r.querySelector(".canvas-type-tag")?.textContent||"Diagram Canvas",y=r.querySelector(".mermaid-source-pre code")?.textContent||"";if(!i)return;let v=1,w=()=>{if(i.style.transform=`scale(${v})`,p)p.textContent=`${Math.round(v*100)}%`};if(o)o.addEventListener("click",(T)=>{T.stopPropagation(),v=Math.min(3,+(v+0.2).toFixed(2)),w()});if(l)l.addEventListener("click",(T)=>{T.stopPropagation(),v=Math.max(0.4,+(v-0.2).toFixed(2)),w()});if(h)h.addEventListener("click",(T)=>{T.stopPropagation(),v=1,w()});if(d)d.addEventListener("click",(T)=>{T.stopPropagation(),Ogt(m,i.innerHTML,y)});if(a)a.addEventListener("dblclick",(T)=>{if(T.target.closest("button"))return;Ogt(m,i.innerHTML,y)})})}function Ytn(e){if(!nt.selectedSessionDetail)return;let r=nt.selectedSessionDetail,i=r.session,a=r.messages||[];if(e==="json"){let o="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(r,null,2)),l=document.createElement("a");l.setAttribute("href",o),l.setAttribute("download",`session-${i.id}.json`),l.click(),ob("Downloaded session JSON!")}else if(e==="markdown"){let o=`# Conversation Session: ${i.id} -`;o+=`- **Date**: ${hle(i.created_at)} +`;o+=`- **Date**: ${sw(i.created_at)} `,o+=`- **Workspace**: ${i.workspace||i.project_name} `,o+=`- **Total Steps**: ${i.step_count} `,o+=`- **User Messages**: ${i.user_message_count} @@ -4948,7 +4983,7 @@ l0,-`+(i+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --- -`,a.forEach((d)=>{let m=d.type==="USER_INPUT"?"\uD83D\uDC64 **User**":"\uD83E\uDD16 **Agent**";if(o+=`### ${m} (Step ${d.step_index} • ${hle(d.created_at)}) +`,a.forEach((d)=>{let m=d.type==="USER_INPUT"?"\uD83D\uDC64 **User**":"\uD83E\uDD16 **Agent**";if(o+=`### ${m} (Step ${d.step_index} • ${sw(d.created_at)}) `,d.content)o+=`${d.content} @@ -4959,11 +4994,11 @@ ${JSON.stringify(y.args,null,2)} `}),o+=` `;o+=`--- -`});let l="data:text/markdown;charset=utf-8,"+encodeURIComponent(o),h=document.createElement("a");h.setAttribute("href",l),h.setAttribute("download",`session-${i.id}.md`),h.click(),ob("Downloaded session Markdown!")}}function Tgt(){if(!Ae.searchModal)return;if(Ae.searchModal.classList.add("active"),Ae.modalSearchInput)Ae.modalSearchInput.value="",setTimeout(()=>Ae.modalSearchInput.focus(),100)}function Cgt(){if(!Ae.searchModal)return;Ae.searchModal.classList.remove("active")}function cOi(e,r){if(!Ae.modalSearchResults)return;if(e.length===0){Ae.modalSearchResults.innerHTML=` +`});let l="data:text/markdown;charset=utf-8,"+encodeURIComponent(o),h=document.createElement("a");h.setAttribute("href",l),h.setAttribute("download",`session-${i.id}.md`),h.click(),ob("Downloaded session Markdown!")}}function kgt(){if(!ve.searchModal)return;if(ve.searchModal.classList.add("active"),ve.modalSearchInput)ve.modalSearchInput.value="",setTimeout(()=>ve.modalSearchInput.focus(),100)}function Igt(){if(!ve.searchModal)return;ve.searchModal.classList.remove("active")}function pOi(e,r){if(!ve.modalSearchResults)return;if(e.length===0){ve.modalSearchResults.innerHTML=`
    -

    No results found for "${En(r)}"

    +

    No results found for "${nn(r)}"

    - `;return}Ae.modalSearchResults.innerHTML=` + `;return}ve.modalSearchResults.innerHTML=`
    Found ${e.length} match${e.length===1?"":"es"}:
    @@ -4971,181 +5006,333 @@ ${JSON.stringify(y.args,null,2)} ${e.map((i)=>`
    - \uD83D\uDCC1 ${En(i.workspace||"Workspace")} - Step ${i.step_index} • ${pAe(i.created_at)} + \uD83D\uDCC1 ${nn(i.workspace||"Workspace")} + Step ${i.step_index} • ${gle(i.created_at)}
    - ${uOi(i.content_preview,r)} + ${gOi(i.content_preview,r)}
    `).join("")}
    - `,Ae.modalSearchResults.querySelectorAll(".search-result-item").forEach((i)=>{i.addEventListener("click",()=>{Cgt(),Lgt(i.dataset.sessionId)})})}function uOi(e,r){if(!e||!r)return En(e||"");let i=En(e),a=new RegExp(`(${irn(r)})`,"gi");return i.replace(a,'$1')}function hOi(){if(!Ae.insightsModal||!at.stats)return;let e=at.stats;if(Ae.topToolsList){let r=e.top_tool_calls||[];if(r.length===0)Ae.topToolsList.innerHTML='

    No tool call data available.

    ';else{let i=Math.max(...r.map((a)=>a.count),1);Ae.topToolsList.innerHTML=r.map((a)=>{let o=Math.round(a.count/i*100);return` + `,ve.modalSearchResults.querySelectorAll(".search-result-item").forEach((i)=>{i.addEventListener("click",()=>{Igt(),Pgt(i.dataset.sessionId)})})}function gOi(e,r){if(!e||!r)return nn(e||"");let i=nn(e),a=new RegExp(`(${hrn(r)})`,"gi");return i.replace(a,'$1')}function mOi(){if(!ve.insightsModal||!nt.stats)return;let e=nt.stats;if(ve.topToolsList){let r=e.top_tool_calls||[];if(r.length===0)ve.topToolsList.innerHTML='

    No tool call data available.

    ';else{let i=Math.max(...r.map((a)=>a.count),1);ve.topToolsList.innerHTML=r.map((a)=>{let o=Math.round(a.count/i*100);return`
    - \uD83D\uDEE0️ ${En(a.name)} + \uD83D\uDEE0️ ${nn(a.name)} ${a.count} call${a.count===1?"":"s"}
    - `}).join("")}}if(Ae.topPromptsList){let r=e.top_prompts||[];if(r.length===0)Ae.topPromptsList.innerHTML='

    No prompt patterns analyzed yet.

    ';else Ae.topPromptsList.innerHTML=r.map((i)=>` + `}).join("")}}if(ve.topPromptsList){let r=e.top_prompts||[];if(r.length===0)ve.topPromptsList.innerHTML='

    No prompt patterns analyzed yet.

    ';else ve.topPromptsList.innerHTML=r.map((i)=>`
    - "${En(i.prompt)}" + "${nn(i.prompt)}"
    ${i.count}x - +
    - `).join("")}Ae.insightsModal.classList.add("active")}function ztn(){if(!Ae.insightsModal)return;Ae.insightsModal.classList.remove("active")}function dOi(){if(!Ae.installSkillModal)return;if(Ae.installSkillModal.classList.add("active"),Ae.installStatusText)Ae.installStatusText.textContent=""}function Vtn(){if(!Ae.installSkillModal)return;Ae.installSkillModal.classList.remove("active")}async function fOi(){let e=document.querySelector('input[name="skillTarget"]:checked')?.value||"workspace";if(Ae.installStatusText)Ae.installStatusText.textContent="⏳ Installing skill...";if(Ae.doInstallSkillBtn)Ae.doInstallSkillBtn.disabled=!0;try{let r=await fetch("/api/skill/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:e})}),i=await r.json();if(r.ok&&i.success){if(Ae.installStatusText)Ae.installStatusText.textContent="✅ "+i.message;ob("✅ Skill installed: "+e)}else{if(Ae.installStatusText)Ae.installStatusText.textContent="❌ "+(i.message||"Installation failed");ob("❌ Installation error")}}catch(r){if(Ae.installStatusText)Ae.installStatusText.textContent="❌ "+r.message;ob("❌ "+r.message)}finally{if(Ae.doInstallSkillBtn)Ae.doInstallSkillBtn.disabled=!1}}window.copyToClipboard=function(e,r="Copied to clipboard!"){if(!navigator.clipboard){let i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),ob(r);return}navigator.clipboard.writeText(e).then(()=>{ob(r)}).catch((i)=>{console.error("Clipboard copy failed:",i)})};function hle(e,r=!1){if(!e)return"—";try{let i=new Date(e),a={month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"};if(r)a.second="2-digit";return i.toLocaleString(void 0,a)}catch(i){return e}}function pAe(e){if(!e)return"";try{let r=new Date(e),i=Math.floor((Date.now()-r.getTime())/1000);if(i<=0||i<60)return"just now";if(i<3600)return`${Math.floor(i/60)}m ago`;if(i<86400)return`${Math.floor(i/3600)}h ago`;let a=Math.floor(i/86400);if(a<30)return`${a}d ago`;let o=Math.floor(a/30);if(o<12)return`${o}mo ago`;return`${Math.floor(o/12)}y ago`}catch(r){return""}}function En(e){if(!e)return"";return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function irn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var uAe=!1,Htn=0,qtn=0;function kgt(e,r,i=""){if(!Ae.diagramTheaterModal||!Ae.diagramTheaterSurface)return;if(Ae.diagramTheaterTitleText)Ae.diagramTheaterTitleText.textContent=e||"Diagram Theater";Ae.diagramTheaterSurface.innerHTML=r,at.theaterRawSrc=i,at.theaterZoom=1.15,at.theaterPanX=0,at.theaterPanY=0,GF(),Ae.diagramTheaterModal.classList.add("theater-open"),document.body.style.overflow="hidden"}function Agt(){if(!Ae.diagramTheaterModal)return;Ae.diagramTheaterModal.classList.remove("theater-open"),document.body.style.overflow=""}function GF(){if(!Ae.diagramTheaterSurface)return;if(Ae.diagramTheaterSurface.style.transform=`scale(${at.theaterZoom}) translate(${at.theaterPanX}px, ${at.theaterPanY}px)`,Ae.theaterZoomBadge)Ae.theaterZoomBadge.textContent=`${Math.round(at.theaterZoom*100)}%`}function arn(e){switch((e||"").split(".").pop().toLowerCase()){case"md":case"markdown":return"\uD83D\uDCDD";case"go":return"\uD83D\uDC39";case"js":case"ts":case"jsx":case"tsx":return"⚡";case"py":return"\uD83D\uDC0D";case"rs":return"\uD83E\uDD80";case"json":case"yaml":case"yml":case"toml":return"⚙️";case"sh":case"bash":case"zsh":return"\uD83D\uDCBB";case"html":case"css":case"scss":return"\uD83C\uDFA8";case"png":case"jpg":case"jpeg":case"svg":case"webp":case"gif":return"\uD83D\uDDBC️";default:return"\uD83D\uDCC4"}}async function lM(e){if(!e||!Ae.fileViewerModal)return;let r=e.trim().replace(/^file:\/\//,""),i=null,a=null,o=r.indexOf("#");if(o!==-1){let h=r.substring(o+1);r=r.substring(0,o);let d=h.match(/L(\d+)(?:-L(\d+))?/i);if(d)i=parseInt(d[1],10),a=d[2]?parseInt(d[2],10):i}else{let h=r.match(/:(\d+)(?::(\d+))?$/);if(h)r=r.substring(0,h.index),i=parseInt(h[1],10),a=h[2]?parseInt(h[2],10):i}if(at.fileViewerTargetLine=i,at.fileViewerTargetLineEnd=a,at.fileViewerMode="preview",at.fileViewerWrap=!1,Ae.fileViewerModal.classList.add("file-viewer-open"),document.body.style.overflow="hidden",Ae.fileViewerLoading)Ae.fileViewerLoading.style.display="flex";if(Ae.fileViewerError)Ae.fileViewerError.style.display="none";if(Ae.fileViewerMarkdown)Ae.fileViewerMarkdown.style.display="none";if(Ae.fileViewerCodeContainer)Ae.fileViewerCodeContainer.style.display="none";if(Ae.fileViewerImageContainer)Ae.fileViewerImageContainer.style.display="none";if(Ae.fileViewerModeControl)Ae.fileViewerModeControl.style.display="none";let l=r.split("/").pop()||r;if(Ae.fileViewerFilename)Ae.fileViewerFilename.textContent=l;if(Ae.fileViewerPath)Ae.fileViewerPath.textContent=r;if(Ae.fileViewerIcon)Ae.fileViewerIcon.textContent=arn(r);try{let h=await fetch(`/api/file?path=${encodeURIComponent(r)}`);if(!h.ok){let p=await h.text();throw Error(p||`HTTP ${h.status}`)}let d=await h.json();at.fileViewerData=d,srn()}catch(h){if(Ae.fileViewerLoading)Ae.fileViewerLoading.style.display="none";if(Ae.fileViewerError)Ae.fileViewerError.style.display="block",Ae.fileViewerError.innerHTML=` + `).join("")}ve.insightsModal.classList.add("active")}function Wtn(){if(!ve.insightsModal)return;ve.insightsModal.classList.remove("active")}function bOi(){if(!ve.installSkillModal)return;if(ve.installSkillModal.classList.add("active"),ve.installStatusText)ve.installStatusText.textContent=""}function jtn(){if(!ve.installSkillModal)return;ve.installSkillModal.classList.remove("active")}async function yOi(){let e=document.querySelector('input[name="skillTarget"]:checked')?.value||"workspace";if(ve.installStatusText)ve.installStatusText.textContent="⏳ Installing skill...";if(ve.doInstallSkillBtn)ve.doInstallSkillBtn.disabled=!0;try{let r=await fetch("/api/skill/install",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({target:e})}),i=await r.json();if(r.ok&&i.success){if(ve.installStatusText)ve.installStatusText.textContent="✅ "+i.message;ob("✅ Skill installed: "+e)}else{if(ve.installStatusText)ve.installStatusText.textContent="❌ "+(i.message||"Installation failed");ob("❌ Installation error")}}catch(r){if(ve.installStatusText)ve.installStatusText.textContent="❌ "+r.message;ob("❌ "+r.message)}finally{if(ve.doInstallSkillBtn)ve.doInstallSkillBtn.disabled=!1}}window.copyToClipboard=function(e,r="Copied to clipboard!"){if(!navigator.clipboard){let i=document.createElement("textarea");i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),ob(r);return}navigator.clipboard.writeText(e).then(()=>{ob(r)}).catch((i)=>{console.error("Clipboard copy failed:",i)})};function sw(e,r=!1){if(!e)return"—";try{let i=new Date(e),a={month:"short",day:"numeric",year:"numeric",hour:"2-digit",minute:"2-digit"};if(r)a.second="2-digit";return i.toLocaleString(void 0,a)}catch(i){return e}}function gle(e){if(!e)return"";try{let r=new Date(e),i=Math.floor((Date.now()-r.getTime())/1000);if(i<=0||i<60)return"just now";if(i<3600)return`${Math.floor(i/60)}m ago`;if(i<86400)return`${Math.floor(i/3600)}h ago`;let a=Math.floor(i/86400);if(a<30)return`${a}d ago`;let o=Math.floor(a/30);if(o<12)return`${o}mo ago`;return`${Math.floor(o/12)}y ago`}catch(r){return""}}function nn(e){if(!e)return"";return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function hrn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var fAe=!1,Ktn=0,Xtn=0;function Ogt(e,r,i=""){if(!ve.diagramTheaterModal||!ve.diagramTheaterSurface)return;if(ve.diagramTheaterTitleText)ve.diagramTheaterTitleText.textContent=e||"Diagram Theater";ve.diagramTheaterSurface.innerHTML=r,nt.theaterRawSrc=i,nt.theaterZoom=1.15,nt.theaterPanX=0,nt.theaterPanY=0,VF(),ve.diagramTheaterModal.classList.add("theater-open"),document.body.style.overflow="hidden"}function Ngt(){if(!ve.diagramTheaterModal)return;ve.diagramTheaterModal.classList.remove("theater-open"),document.body.style.overflow=""}function VF(){if(!ve.diagramTheaterSurface)return;if(ve.diagramTheaterSurface.style.transform=`scale(${nt.theaterZoom}) translate(${nt.theaterPanX}px, ${nt.theaterPanY}px)`,ve.theaterZoomBadge)ve.theaterZoomBadge.textContent=`${Math.round(nt.theaterZoom*100)}%`}function Ggt(e){switch((e||"").split(".").pop().toLowerCase()){case"md":case"markdown":return"\uD83D\uDCDD";case"go":return"\uD83D\uDC39";case"js":case"ts":case"jsx":case"tsx":return"⚡";case"py":return"\uD83D\uDC0D";case"rs":return"\uD83E\uDD80";case"json":case"yaml":case"yml":case"toml":return"⚙️";case"sh":case"bash":case"zsh":return"\uD83D\uDCBB";case"html":case"css":case"scss":return"\uD83C\uDFA8";case"png":case"jpg":case"jpeg":case"svg":case"webp":case"gif":return"\uD83D\uDDBC️";default:return"\uD83D\uDCC4"}}async function uM(e){if(!e||!ve.fileViewerModal)return;let r=e.trim().replace(/^file:\/\//,""),i=null,a=null,o=r.indexOf("#");if(o!==-1){let h=r.substring(o+1);r=r.substring(0,o);let d=h.match(/L(\d+)(?:-L(\d+))?/i);if(d)i=parseInt(d[1],10),a=d[2]?parseInt(d[2],10):i}else{let h=r.match(/:(\d+)(?::(\d+))?$/);if(h)r=r.substring(0,h.index),i=parseInt(h[1],10),a=h[2]?parseInt(h[2],10):i}if(nt.fileViewerTargetLine=i,nt.fileViewerTargetLineEnd=a,nt.fileViewerMode="preview",nt.fileViewerWrap=!1,ve.fileViewerModal.classList.add("file-viewer-open"),document.body.style.overflow="hidden",ve.fileViewerLoading)ve.fileViewerLoading.style.display="flex";if(ve.fileViewerError)ve.fileViewerError.style.display="none";if(ve.fileViewerMarkdown)ve.fileViewerMarkdown.style.display="none";if(ve.fileViewerCodeContainer)ve.fileViewerCodeContainer.style.display="none";if(ve.fileViewerImageContainer)ve.fileViewerImageContainer.style.display="none";if(ve.fileViewerModeControl)ve.fileViewerModeControl.style.display="none";let l=r.split("/").pop()||r;if(ve.fileViewerFilename)ve.fileViewerFilename.textContent=l;if(ve.fileViewerPath)ve.fileViewerPath.textContent=r;if(ve.fileViewerIcon)ve.fileViewerIcon.textContent=Ggt(r);try{let h=await fetch(`/api/file?path=${encodeURIComponent(r)}`);if(!h.ok){let p=await h.text();throw Error(p||`HTTP ${h.status}`)}let d=await h.json();nt.fileViewerData=d,drn()}catch(h){if(ve.fileViewerLoading)ve.fileViewerLoading.style.display="none";if(ve.fileViewerError)ve.fileViewerError.style.display="block",ve.fileViewerError.innerHTML=`
    ⚠️ File Read Error
    -

    ${En(h.message)}

    - ${En(r)} - `}}function Rgt(){if(!Ae.fileViewerModal)return;cle(),Ae.fileViewerModal.classList.remove("file-viewer-open"),document.body.style.overflow="",at.fileViewerData=null}function srn(){let e=at.fileViewerData;if(!e)return;if(Ae.fileViewerLoading)Ae.fileViewerLoading.style.display="none";if(Ae.fileViewerError)Ae.fileViewerError.style.display="none";if(Ae.fileViewerMarkdown)Ae.fileViewerMarkdown.style.display="none";if(Ae.fileViewerCodeContainer)Ae.fileViewerCodeContainer.style.display="none";if(Ae.fileViewerImageContainer)Ae.fileViewerImageContainer.style.display="none";let r=(e.extension||"").replace(".","").toUpperCase()||"FILE";if(Ae.fileViewerLangBadge)Ae.fileViewerLangBadge.textContent=r;if(Ae.fileViewerLinesBadge)Ae.fileViewerLinesBadge.textContent=`${(e.line_count||0).toLocaleString()} lines`;if(Ae.fileViewerSizeBadge){let o=(e.size/1024).toFixed(1);Ae.fileViewerSizeBadge.textContent=e.size>1048576?`${(e.size/1048576).toFixed(2)} MB`:`${o} KB`}let i=e.extension===".md"||e.extension===".markdown";if(e.is_binary&&(e.content.startsWith("data:image/")||["PNG","JPG","JPEG","GIF","WEBP","ICO"].includes(r))){if(Ae.fileViewerImageContainer&&Ae.fileViewerImage)Ae.fileViewerImage.src=e.content,Ae.fileViewerImageContainer.style.display="flex";return}if(i){if(Ae.fileViewerModeControl)Ae.fileViewerModeControl.style.display="inline-flex",Ae.fileViewerModeControl.querySelectorAll(".segment-btn").forEach((o)=>{o.classList.toggle("active",o.dataset.mode===at.fileViewerMode)});if(at.fileViewerMode==="preview"){if(Ae.fileViewerMarkdown)Ae.fileViewerMarkdown.innerHTML=ku.parse(e.content),CW(Ae.fileViewerMarkdown),Ae.fileViewerMarkdown.style.display="block",Bgt(Ae.fileViewerMarkdown);return}}if(Ae.fileViewerWrapBtn)Ae.fileViewerWrapBtn.classList.toggle("active",at.fileViewerWrap),Ae.fileViewerWrapBtn.innerHTML=at.fileViewerWrap?"✓ Wrapped":"↩ Wrap";if(Ae.fileViewerCodeContainer&&Ae.fileViewerCodeBlock&&Ae.fileViewerLineNumbers){Ae.fileViewerCodeContainer.style.display="flex";let o=Ae.fileViewerCodeContainer.querySelector(".code-content-pre");if(o)o.classList.toggle("wrap-code",at.fileViewerWrap);let h=e.content.split(` -`).length,d="",p=at.fileViewerTargetLine,m=at.fileViewerTargetLineEnd||p;for(let T=1;T<=h;T++){let x=p&&T>=p&&T<=m;d+=`${T}`}Ae.fileViewerLineNumbers.innerHTML=d;let y=(e.extension||"").replace(".","").toLowerCase(),E=y&&Yte.getLanguage(y),w=E?Yte.highlight(e.content,{language:y,ignoreIllegals:!0}).value:En(e.content);if(p)w=w.split(` +

    ${nn(h.message)}

    + ${nn(r)} + `}}function Lgt(){if(!ve.fileViewerModal)return;dle(),ve.fileViewerModal.classList.remove("file-viewer-open"),document.body.style.overflow="",nt.fileViewerData=null}function drn(){let e=nt.fileViewerData;if(!e)return;if(ve.fileViewerLoading)ve.fileViewerLoading.style.display="none";if(ve.fileViewerError)ve.fileViewerError.style.display="none";if(ve.fileViewerMarkdown)ve.fileViewerMarkdown.style.display="none";if(ve.fileViewerCodeContainer)ve.fileViewerCodeContainer.style.display="none";if(ve.fileViewerImageContainer)ve.fileViewerImageContainer.style.display="none";let r=(e.extension||"").replace(".","").toUpperCase()||"FILE";if(ve.fileViewerLangBadge)ve.fileViewerLangBadge.textContent=r;if(ve.fileViewerLinesBadge)ve.fileViewerLinesBadge.textContent=`${(e.line_count||0).toLocaleString()} lines`;if(ve.fileViewerSizeBadge){let o=(e.size/1024).toFixed(1);ve.fileViewerSizeBadge.textContent=e.size>1048576?`${(e.size/1048576).toFixed(2)} MB`:`${o} KB`}let i=e.extension===".md"||e.extension===".markdown";if(e.is_binary&&(e.content.startsWith("data:image/")||["PNG","JPG","JPEG","GIF","WEBP","ICO"].includes(r))){if(ve.fileViewerImageContainer&&ve.fileViewerImage)ve.fileViewerImage.src=e.content,ve.fileViewerImageContainer.style.display="flex";return}if(i){if(ve.fileViewerModeControl)ve.fileViewerModeControl.style.display="inline-flex",ve.fileViewerModeControl.querySelectorAll(".segment-btn").forEach((o)=>{o.classList.toggle("active",o.dataset.mode===nt.fileViewerMode)});if(nt.fileViewerMode==="preview"){if(ve.fileViewerMarkdown)ve.fileViewerMarkdown.innerHTML=ku.parse(e.content),AW(ve.fileViewerMarkdown),ve.fileViewerMarkdown.style.display="block",Ugt(ve.fileViewerMarkdown);return}}if(ve.fileViewerWrapBtn)ve.fileViewerWrapBtn.classList.toggle("active",nt.fileViewerWrap),ve.fileViewerWrapBtn.innerHTML=nt.fileViewerWrap?"✓ Wrapped":"↩ Wrap";if(ve.fileViewerCodeContainer&&ve.fileViewerCodeBlock&&ve.fileViewerLineNumbers){ve.fileViewerCodeContainer.style.display="flex";let o=ve.fileViewerCodeContainer.querySelector(".code-content-pre");if(o)o.classList.toggle("wrap-code",nt.fileViewerWrap);let h=e.content.split(` +`).length,d="",p=nt.fileViewerTargetLine,m=nt.fileViewerTargetLineEnd||p;for(let T=1;T<=h;T++){let x=p&&T>=p&&T<=m;d+=`${T}`}ve.fileViewerLineNumbers.innerHTML=d;let y=(e.extension||"").replace(".","").toLowerCase(),v=y&&Kte.getLanguage(y),w=v?Kte.highlight(e.content,{language:y,ignoreIllegals:!0}).value:nn(e.content);if(p)w=w.split(` `).map((x,k)=>{let A=k+1;if(A>=p&&A<=m)return`${x}`;return x}).join(` -`);if(Ae.fileViewerCodeBlock.className=`hljs ${E?"language-"+y:""}`,Ae.fileViewerCodeBlock.innerHTML=w,p)setTimeout(()=>{let T=document.getElementById(`file-line-${p}`)||Ae.fileViewerLineNumbers.querySelector(`[data-line="${p}"]`);if(T)T.scrollIntoView({behavior:"smooth",block:"center"})},60)}if(Ae.fileViewerFindWidget&&Ae.fileViewerFindWidget.style.display!=="none"&&at.fileFindQuery)setTimeout(()=>fle(),40)}function Igt(){if(!Ae.fileViewerFindWidget||!Ae.fileFindInput)return;if(Ae.fileViewerFindWidget.style.display="flex",Ae.fileFindInput.focus(),Ae.fileFindInput.select(),Ae.fileFindInput.value.trim())fle()}function cle(){if(!Ae.fileViewerFindWidget)return;if(Ae.fileViewerFindWidget.style.display="none",orn(),at.fileFindQuery="",at.fileFindMatches=[],at.fileFindActiveIndex=-1,Ae.fileFindCountBadge)Ae.fileFindCountBadge.textContent="0 of 0",Ae.fileFindCountBadge.className="find-count-badge"}function pOi(){if(at.fileFindCaseSensitive=!at.fileFindCaseSensitive,Ae.fileFindCaseBtn)Ae.fileFindCaseBtn.classList.toggle("active",at.fileFindCaseSensitive);fle()}function orn(){[Ae.fileViewerMarkdown,Ae.fileViewerCodeBlock].forEach((r)=>{if(!r)return;r.querySelectorAll("mark.find-match").forEach((a)=>{let o=a.parentNode;if(!o)return;while(a.firstChild)o.insertBefore(a.firstChild,a);o.removeChild(a),o.normalize()})})}function fle(){orn(),at.fileFindMatches=[],at.fileFindActiveIndex=-1;let e=Ae.fileFindInput?Ae.fileFindInput.value:"";if(at.fileFindQuery=e,!e){if(Ae.fileFindCountBadge)Ae.fileFindCountBadge.textContent="0 of 0",Ae.fileFindCountBadge.className="find-count-badge";return}let r=at.fileFindCaseSensitive?"g":"gi",i;try{i=new RegExp(irn(e),r)}catch(m){return}let a=at.fileViewerMode==="preview"&&Ae.fileViewerMarkdown&&Ae.fileViewerMarkdown.style.display!=="none"?Ae.fileViewerMarkdown:Ae.fileViewerCodeBlock;if(!a)return;let o=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,{acceptNode(m){if(!m.nodeValue.trim())return NodeFilter.FILTER_SKIP;let y=m.parentNode;if(y&&(y.nodeName==="SCRIPT"||y.nodeName==="STYLE"||y.classList?.contains("find-match")))return NodeFilter.FILTER_REJECT;return NodeFilter.FILTER_ACCEPT}}),l=[],h;while(h=o.nextNode())l.push(h);let d=0;if(l.forEach((m)=>{let y=m.nodeValue;if(i.lastIndex=0,!i.test(y))return;i.lastIndex=0;let E=document.createDocumentFragment(),w=0,T;while((T=i.exec(y))!==null){if(T.index>w)E.appendChild(document.createTextNode(y.substring(w,T.index)));let x=document.createElement("mark");x.className="find-match",x.dataset.findIdx=d++,x.textContent=T[0],E.appendChild(x),at.fileFindMatches.push(x),w=i.lastIndex}if(w{i.classList.toggle("find-match-current",a===at.fileFindActiveIndex)}),Ae.fileFindCountBadge)Ae.fileFindCountBadge.textContent=`${at.fileFindActiveIndex+1} of ${e}`,Ae.fileFindCountBadge.className="find-count-badge has-matches";let r=at.fileFindMatches[at.fileFindActiveIndex];if(r)r.scrollIntoView({behavior:"smooth",block:"center"})}function dAe(){if(at.fileFindMatches.length===0)return;at.fileFindActiveIndex=(at.fileFindActiveIndex+1)%at.fileFindMatches.length,Fgt()}function fAe(){if(at.fileFindMatches.length===0)return;at.fileFindActiveIndex=(at.fileFindActiveIndex-1+at.fileFindMatches.length)%at.fileFindMatches.length,Fgt()}function $gt(e,r=!1){if(at.sessionFilesMap.clear(),!e||!e.messages){if(Ae.detailFilesCountBadge)Ae.detailFilesCountBadge.textContent="0";return}if(e.messages.forEach((i)=>{if(i.tool_calls)i.tool_calls.forEach((a)=>{let o=a.args||{},l=o.Path||o.path||o.AbsolutePath||o.TargetFile||o.file_path||o.FilePath;if(l&&typeof l==="string"){l=l.trim().replace(/^["']|["']$/g,"");let h=l.replace(/^file:\/\//,"");if(h&&!h.startsWith("{")){let d=h.split("/").pop()||h,p="read";if(a.name==="write_file"||a.name==="edit_file"||a.name==="write_to_file"||a.name==="replace_file_content")p="modified";if(o.ArtifactMetadata||h.includes("/brain/")||h.endsWith(".md")){if(o.ArtifactMetadata||h.includes("/brain/"))p="artifact"}if(!at.sessionFilesMap.has(h)||p==="artifact")at.sessionFilesMap.set(h,{path:h,name:d,type:p,tool:a.name,stepIndex:i.step_index})}}});if(i.content){let a=/\[([^\]]+)\]\((?:file:\/\/)?([^)]+)\)/g,o;while((o=a.exec(i.content))!==null){let l=o[2];if(l.startsWith("/")||l.startsWith("file://")){let h=l.replace(/^file:\/\//,"").split("#")[0],d=o[1]||h.split("/").pop()||h;if(!at.sessionFilesMap.has(h))at.sessionFilesMap.set(h,{path:h,name:d,type:"reference",tool:"markdown",stepIndex:i.step_index})}}}}),Ae.detailFilesCountBadge){let i=Ae.detailFilesCountBadge.textContent.trim(),a=parseInt(i,10),o=at.sessionFilesMap.size;if(Ae.detailFilesCountBadge.textContent=o.toString(),Ae.detailFilesBtn)Ae.detailFilesBtn.title=`${o} files and artifacts touched in this session (click to inspect drawer)`;if(r||!isNaN(a)&&a!==o)Qtn(Ae.detailFilesCountBadge)}}function Ugt(){if(!Ae.sessionFilesModal||!Ae.sessionFilesListContainer)return;let e=Array.from(at.sessionFilesMap.values());if(Ae.sessionFilesTotalCount)Ae.sessionFilesTotalCount.textContent=e.length.toString();if(e.length===0){Ae.sessionFilesListContainer.innerHTML=` -
    -
    \uD83D\uDCC4
    -

    No file operations or artifacts detected in this session.

    +`);if(ve.fileViewerCodeBlock.className=`hljs ${v?"language-"+y:""}`,ve.fileViewerCodeBlock.innerHTML=w,p)setTimeout(()=>{let T=document.getElementById(`file-line-${p}`)||ve.fileViewerLineNumbers.querySelector(`[data-line="${p}"]`);if(T)T.scrollIntoView({behavior:"smooth",block:"center"})},60)}if(ve.fileViewerFindWidget&&ve.fileViewerFindWidget.style.display!=="none"&&nt.fileFindQuery)setTimeout(()=>mle(),40)}function Mgt(){if(!ve.fileViewerFindWidget||!ve.fileFindInput)return;if(ve.fileViewerFindWidget.style.display="flex",ve.fileFindInput.focus(),ve.fileFindInput.select(),ve.fileFindInput.value.trim())mle()}function dle(){if(!ve.fileViewerFindWidget)return;if(ve.fileViewerFindWidget.style.display="none",frn(),nt.fileFindQuery="",nt.fileFindMatches=[],nt.fileFindActiveIndex=-1,ve.fileFindCountBadge)ve.fileFindCountBadge.textContent="0 of 0",ve.fileFindCountBadge.className="find-count-badge"}function vOi(){if(nt.fileFindCaseSensitive=!nt.fileFindCaseSensitive,ve.fileFindCaseBtn)ve.fileFindCaseBtn.classList.toggle("active",nt.fileFindCaseSensitive);mle()}function frn(){[ve.fileViewerMarkdown,ve.fileViewerCodeBlock].forEach((r)=>{if(!r)return;r.querySelectorAll("mark.find-match").forEach((a)=>{let o=a.parentNode;if(!o)return;while(a.firstChild)o.insertBefore(a.firstChild,a);o.removeChild(a),o.normalize()})})}function mle(){frn(),nt.fileFindMatches=[],nt.fileFindActiveIndex=-1;let e=ve.fileFindInput?ve.fileFindInput.value:"";if(nt.fileFindQuery=e,!e){if(ve.fileFindCountBadge)ve.fileFindCountBadge.textContent="0 of 0",ve.fileFindCountBadge.className="find-count-badge";return}let r=nt.fileFindCaseSensitive?"g":"gi",i;try{i=new RegExp(hrn(e),r)}catch(m){return}let a=nt.fileViewerMode==="preview"&&ve.fileViewerMarkdown&&ve.fileViewerMarkdown.style.display!=="none"?ve.fileViewerMarkdown:ve.fileViewerCodeBlock;if(!a)return;let o=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,{acceptNode(m){if(!m.nodeValue.trim())return NodeFilter.FILTER_SKIP;let y=m.parentNode;if(y&&(y.nodeName==="SCRIPT"||y.nodeName==="STYLE"||y.classList?.contains("find-match")))return NodeFilter.FILTER_REJECT;return NodeFilter.FILTER_ACCEPT}}),l=[],h;while(h=o.nextNode())l.push(h);let d=0;if(l.forEach((m)=>{let y=m.nodeValue;if(i.lastIndex=0,!i.test(y))return;i.lastIndex=0;let v=document.createDocumentFragment(),w=0,T;while((T=i.exec(y))!==null){if(T.index>w)v.appendChild(document.createTextNode(y.substring(w,T.index)));let x=document.createElement("mark");x.className="find-match",x.dataset.findIdx=d++,x.textContent=T[0],v.appendChild(x),nt.fileFindMatches.push(x),w=i.lastIndex}if(w{i.classList.toggle("find-match-current",a===nt.fileFindActiveIndex)}),ve.fileFindCountBadge)ve.fileFindCountBadge.textContent=`${nt.fileFindActiveIndex+1} of ${e}`,ve.fileFindCountBadge.className="find-count-badge has-matches";let r=nt.fileFindMatches[nt.fileFindActiveIndex];if(r)r.scrollIntoView({behavior:"smooth",block:"center"})}function gAe(){if(nt.fileFindMatches.length===0)return;nt.fileFindActiveIndex=(nt.fileFindActiveIndex+1)%nt.fileFindMatches.length,zgt()}function mAe(){if(nt.fileFindMatches.length===0)return;nt.fileFindActiveIndex=(nt.fileFindActiveIndex-1+nt.fileFindMatches.length)%nt.fileFindMatches.length,zgt()}function Agt(e){let r=(e||"").toLowerCase();switch(r){case".go":return"Go";case".js":case".mjs":case".cjs":return"JavaScript";case".ts":case".tsx":return"TypeScript";case".py":return"Python";case".rs":return"Rust";case".java":return"Java";case".c":case".cpp":case".h":case".hpp":return"C/C++";case".sh":case".bash":case".zsh":return"Shell";case".css":case".scss":case".sass":case".less":return"CSS";case".html":case".htm":return"HTML";case".md":case".markdown":return"Markdown";case".json":return"JSON";case".yaml":case".yml":return"YAML";case".toml":return"TOML";case".sql":return"SQL";case".png":case".jpg":case".jpeg":case".gif":case".svg":case".webp":return"Image";default:return r?r.replace(".","").toUpperCase():"Generic"}}function _Oi(e){switch(e){case"Go":return"#00add8";case"JavaScript":return"#f7df1e";case"TypeScript":return"#3178c6";case"Python":return"#3572a5";case"Rust":return"#dea584";case"CSS":return"#38bdf8";case"HTML":return"#e34c26";case"Markdown":return"#c084fc";case"JSON":return"#fbbf24";case"YAML":return"#cb171e";case"Shell":return"#89e051";case"Image":return"#ec4899";default:return"#94a3b8"}}function Qtn(e,r){if(!e)return"";if(r&&e.startsWith(r))return e.slice(r.length).replace(/^\/+/,"")||e.split("/").pop()||e;let i=e.indexOf("/brain/");if(i!==-1)return e.slice(i+1);let a=e.split("/").filter(Boolean);if(a.length>3)return a.slice(-3).join("/");return e}function Vgt(){return{totalFiles:0,totalTouches:0,totalArtifacts:0,totalModified:0,totalEdits:0,totalReads:0,readWriteRatio:"0.0",blastRadiusDirs:[],extensionSpectrum:[],churnHotspots:[]}}function EOi(e){let r=new Map;if(!e||!e.messages)return{records:[],telemetry:Vgt()};let i=e.session?.workspace||"";e.messages.forEach((R)=>{let N=typeof R.step_index==="number"?R.step_index:0,L=R.created_at||"";if(R.tool_calls&&Array.isArray(R.tool_calls))R.tool_calls.forEach((B)=>{let D=B.args||{},P=D.Path||D.path||D.AbsolutePath||D.TargetFile||D.target_file||D.file_path||D.FilePath||D.DirectoryPath||D.Dir;if(P&&typeof P==="string"){P=P.trim().replace(/^["']|["']$/g,"");let F=P.replace(/^file:\/\//,"").split("#")[0];if(F&&!F.startsWith("{")&&F!=="/"&&F.length>1){let H=F.split("/").pop()||F,W=H.includes(".")?"."+H.split(".").pop().toLowerCase():"",X=F.substring(0,F.lastIndexOf("/"))||"/",Q="read";if(B.name==="write_file"||B.name==="edit_file"||B.name==="write_to_file"||B.name==="replace_file_content"||B.name==="append_file"||B.name==="create_file")Q="modified";let Y=!1,K=null;if(D.ArtifactMetadata||B.name==="write_file"&&(F.includes("/brain/")||F.includes("/artifacts/"))||F.includes("/.user_uploaded/")){if(Y=!0,D.ArtifactMetadata&&typeof D.ArtifactMetadata==="object")K={summary:D.ArtifactMetadata.Summary||"",userFacing:D.ArtifactMetadata.UserFacing===!0,requestFeedback:D.ArtifactMetadata.RequestFeedback===!0}}else if(F.includes("/brain/")&&F.endsWith(".md"))Y=!0;let J=r.get(F);if(!J)J={path:F,relativePath:Qtn(F,i),name:H,extension:W,category:Agt(W),directory:X,type:Y?"artifact":Q,touchCount:0,churnCount:0,readCount:0,stepIndices:[],toolsUsed:new Set,artifactMetadata:K,operations:[]},r.set(F,J);if(Y){if(J.type="artifact",K&&!J.artifactMetadata)J.artifactMetadata=K}else if(Q==="modified"&&J.type!=="artifact")J.type="modified";if(J.touchCount++,Q==="modified")J.churnCount++;else J.readCount++;if(!J.stepIndices.includes(N))J.stepIndices.push(N);if(B.name)J.toolsUsed.add(B.name);J.operations.push({tool:B.name,type:Q,stepIndex:N,time:L})}}});if(R.content){let B=/\[([^\]]+)\]\((?:file:\/\/)?([^)#\s]+)(?:#[^)]*)?\)/g,D;while((D=B.exec(R.content))!==null){let P=D[2];if(P.startsWith("/")||P.startsWith("file://")){let F=P.replace(/^file:\/\//,"").split("#")[0];if(F&&!F.startsWith("{")&&F.length>1){let H=r.get(F),W=D[1]||"",X=F.split("/").pop()||F,Q=X.includes(".")?"."+X.split(".").pop().toLowerCase():"",Y=F.substring(0,F.lastIndexOf("/"))||"/",K=F.includes("/brain/");if(!H)H={path:F,relativePath:Qtn(F,i),name:X,extension:Q,category:Agt(Q),directory:Y,type:K?"artifact":"reference",touchCount:0,churnCount:0,readCount:0,stepIndices:[],toolsUsed:new Set,artifactMetadata:null,operations:[]},r.set(F,H);if(H.touchCount++,!H.stepIndices.includes(N))H.stepIndices.push(N);H.toolsUsed.add("markdown"),H.operations.push({tool:"markdown",type:"reference",stepIndex:N,time:L,label:W})}}}}});let a=Array.from(r.values()).map((R)=>(R.stepIndices.sort((N,L)=>N-L),R.firstStepIdx=R.stepIndices[0]??0,R.lastStepIdx=R.stepIndices[R.stepIndices.length-1]??0,R.toolsUsed=Array.from(R.toolsUsed),R)),o=a.length,l=0,h=0,d=0,p=0,m=0,y=new Set,v=new Map;a.forEach((R)=>{if(l+=R.touchCount,R.type==="artifact")h++;if(R.churnCount>0){if(d++,p+=R.churnCount,R.directory&&R.directory!=="/")y.add(R.directory)}m+=R.readCount;let N=R.extension||"no-ext";v.set(N,(v.get(N)||0)+1)});let w=p>0?(m/p).toFixed(1):m>0?`${m}.0`:"0.0",x=Array.from(v.entries()).sort((R,N)=>N[1]-R[1]).map(([R,N])=>{let L=o>0?Math.round(N/o*100):0,B=Agt(R==="no-ext"?"":R);return{extension:R,category:B,count:N,percentage:L,color:_Oi(B)}}),k=a.filter((R)=>R.churnCount>0).sort((R,N)=>N.churnCount-R.churnCount).slice(0,6),A={totalFiles:o,totalTouches:l,totalArtifacts:h,totalModified:d,totalEdits:p,totalReads:m,readWriteRatio:w,blastRadiusDirs:Array.from(y),extensionSpectrum:x,churnHotspots:k};return{records:a,telemetry:A}}function Hgt(e,r=!1){if(nt.sessionFilesMap.clear(),!e||!e.messages){if(ve.detailFilesCountBadge)ve.detailFilesCountBadge.textContent="0";nt.sessionFiles.records=[],nt.sessionFiles.telemetry=Vgt();return}let{records:i,telemetry:a}=EOi(e);if(i.forEach((o)=>nt.sessionFilesMap.set(o.path,o)),nt.sessionFiles.records=i,nt.sessionFiles.telemetry=a,nt.sessionFiles.sessionId=e.session?.id||nt.selectedSessionId,ve.detailFilesCountBadge){let o=ve.detailFilesCountBadge.textContent.trim(),l=parseInt(o,10),h=i.length;if(ve.detailFilesCountBadge.textContent=h.toString(),ve.detailFilesBtn)ve.detailFilesBtn.title=`${h} files & artifacts touched (${a.totalEdits} edits, ${a.totalArtifacts} artifacts) — click to inspect matrix`;if(r||!isNaN(l)&&l!==h)nrn(ve.detailFilesCountBadge)}if(ve.sessionFilesModal&&ve.sessionFilesModal.classList.contains("active"))lA()}function lA(){if(!ve.sessionFilesModal||!ve.sessionFilesContent)return;let e=nt.sessionFiles.records||[],r=nt.sessionFiles.telemetry||Vgt(),i=nt.sessionFiles.lens||"catalog",a=nt.sessionFiles.type||"ALL",o=(nt.sessionFiles.search||"").trim().toLowerCase();if(ve.sessionFilesIdBadge){let v=nt.sessionFiles.sessionId||nt.selectedSessionId||"";ve.sessionFilesIdBadge.textContent=v?v.slice(0,8):"Session",ve.sessionFilesIdBadge.title=v}if(ve.sessionFilesTotalCountBadge)ve.sessionFilesTotalCountBadge.textContent=`${r.totalFiles} files`;if(ve.sessionFilesArtifactsVal)ve.sessionFilesArtifactsVal.textContent=`${r.totalArtifacts} deliverables`;if(ve.sessionFilesMutationsVal)ve.sessionFilesMutationsVal.textContent=`${r.totalModified} files (${r.totalEdits} edits)`;if(ve.sessionFilesReadsVal)ve.sessionFilesReadsVal.textContent=`${r.totalReads} reads`;if(ve.sessionFilesBlastVal)ve.sessionFilesBlastVal.textContent=`${r.blastRadiusDirs.length} directories`;if(ve.sessionFilesIntensityVal)ve.sessionFilesIntensityVal.textContent=`${r.readWriteRatio}x read/write`;if(ve.sessionFilesChipAll)ve.sessionFilesChipAll.textContent=r.totalFiles.toString();if(ve.sessionFilesChipArtifacts)ve.sessionFilesChipArtifacts.textContent=r.totalArtifacts.toString();if(ve.sessionFilesChipModified)ve.sessionFilesChipModified.textContent=r.totalModified.toString();if(ve.sessionFilesChipRead){let v=e.filter((w)=>w.readCount>0&&w.type!=="artifact"&&w.churnCount===0).length;ve.sessionFilesChipRead.textContent=v.toString()}if(ve.sessionFilesChipRefs){let v=e.filter((w)=>w.type==="reference").length;ve.sessionFilesChipRefs.textContent=v.toString()}if(ve.sessionFilesLensControl)ve.sessionFilesLensControl.querySelectorAll(".segment-btn").forEach((v)=>{v.classList.toggle("active",v.dataset.lens===i)});let l=document.getElementById("sessionFilesFilterChips");if(l)l.style.display=i==="telemetry"?"none":"flex",l.querySelectorAll(".matrix-filter-chip").forEach((v)=>{v.classList.toggle("active",v.dataset.type===a)});if(i==="telemetry"){wOi(r);return}let h=e;if(i==="artifacts")h=h.filter((v)=>v.type==="artifact");else if(i==="mutations")h=h.filter((v)=>v.churnCount>0||v.type==="modified");else if(a==="ARTIFACT")h=h.filter((v)=>v.type==="artifact");else if(a==="MODIFIED")h=h.filter((v)=>v.churnCount>0||v.type==="modified");else if(a==="READ")h=h.filter((v)=>v.readCount>0&&v.churnCount===0&&v.type!=="artifact");else if(a==="REFERENCE")h=h.filter((v)=>v.type==="reference");if(o)h=h.filter((v)=>{let w=v.name.toLowerCase().includes(o),T=v.path.toLowerCase().includes(o),x=(v.extension||"").toLowerCase().includes(o),k=(v.category||"").toLowerCase().includes(o),A=(v.toolsUsed||[]).some((N)=>N.toLowerCase().includes(o)),R=v.artifactMetadata?.summary?v.artifactMetadata.summary.toLowerCase().includes(o):!1;return w||T||x||k||A||R});if(h.length===0){ve.sessionFilesContent.innerHTML=` +
    +
    \uD83D\uDD0D
    +

    No matching files or artifacts found

    +

    + No file operations match the active lens (${nn(i)}) and filters. Try adjusting your search query or selecting "All Touches". +

    - `;return}let r={artifact:0,modified:1,read:2,reference:3};e.sort((i,a)=>(r[i.type]??9)-(r[a.type]??9)),Ae.sessionFilesListContainer.innerHTML=e.map((i)=>{let a=i.type==="artifact"?'✨ Artifact':i.type==="modified"?'✏️ Modified':'\uD83D\uDC41️ Read';return` -
    -
    - ${arn(i.path)} -
    -
    - ${En(i.name)} + `;return}if(ve.sessionFilesSortSelect)ve.sessionFilesSortSelect.value=nt.sessionFiles.sort||"type_priority";let d=nt.sessionFiles.sort||"type_priority",p={artifact:0,modified:1,read:2,reference:3};h.sort((v,w)=>{switch(d){case"churn_desc":if(w.churnCount!==v.churnCount)return w.churnCount-v.churnCount;return w.touchCount-v.touchCount;case"last_touch":return w.lastStepIdx-v.lastStepIdx;case"first_touch":return v.firstStepIdx-w.firstStepIdx;case"reads_desc":if(w.readCount!==v.readCount)return w.readCount-v.readCount;return w.touchCount-v.touchCount;case"name_asc":return v.name.localeCompare(w.name);case"ext_asc":{let T=(v.extension||"").localeCompare(w.extension||"");if(T!==0)return T;return v.name.localeCompare(w.name)}case"type_priority":default:{let T=p[v.type]??9,x=p[w.type]??9;if(T!==x)return T-x;if(w.churnCount!==v.churnCount)return w.churnCount-v.churnCount;return w.touchCount-v.touchCount}}});let m=h.map((v)=>{let w=150;if(v.artifactMetadata?.summary)w+=60;if(v.stepIndices.length>3)w+=25;if(v.toolsUsed&&v.toolsUsed.length>2)w+=15;let T=v.type==="artifact",x=v.churnCount>0||v.type==="modified",k=v.type==="read"&&!x&&!T,A=T?"is-artifact":x?"is-modified":k?"is-read":"is-reference",R="";if(T)R='✨ Artifact';else if(x)R=`✏️ ${v.churnCount>1?v.churnCount+" Edits":"Modified"}`;else if(k)R=`\uD83D\uDC41️ ${v.readCount>1?v.readCount+" Reads":"Read"}`;else R='\uD83D\uDD17 Reference';let N=v.stepIndices.slice(0,5),L=v.stepIndices.length>5,B=v.stepIndices.length>1?`Span: #${v.firstStepIdx} ➔ #${v.lastStepIdx}`:`Step #${v.firstStepIdx}`;return{html:` +
    +
    +
    + ${Ggt(v.path)} + ${nn(v.name)} + ${v.extension?`${nn(v.extension)}`:""} +
    + ${R} +
    + +
    + ${nn(v.relativePath||v.path)} + +
    + + ${v.artifactMetadata&&v.artifactMetadata.summary?` +
    + ✨ Deliverable: ${nn(v.artifactMetadata.summary)} +
    + `:""} + +
    +
    + ${B} + Touched: + ${N.map((P)=>``).join("")} + ${L?`+${v.stepIndices.length-5}`:""} +
    + ${v.toolsUsed&&v.toolsUsed.length>0?` +
    + ${v.toolsUsed.map((P)=>`${nn(P)}`).join("")} +
    + `:""} +
    + +
    + +
    + + +
    +
    +
    + `,weight:w}}),y=ve.sessionFilesContent.clientWidth||window.innerWidth;ve.sessionFilesContent.innerHTML=Wgt(m,y),ve.sessionFilesContent.querySelectorAll(".step-marker-pill[data-step]").forEach((v)=>{v.onclick=(w)=>{w.stopPropagation(),ple(parseInt(v.dataset.step,10))}}),ve.sessionFilesContent.querySelectorAll(".session-file-open-btn").forEach((v)=>{v.onclick=(w)=>{w.stopPropagation(),RW(),uM(v.dataset.path)}}),ve.sessionFilesContent.querySelectorAll(".session-file-card").forEach((v)=>{v.onclick=(w)=>{if(w.target.closest("button"))return;RW(),uM(v.dataset.path)}}),ve.sessionFilesContent.querySelectorAll(".session-file-card-quick-copy, .copy-abs-path-btn").forEach((v)=>{v.onclick=(w)=>{w.stopPropagation(),copyToClipboard(v.dataset.path,"Absolute path copied to clipboard!")}}),ve.sessionFilesContent.querySelectorAll(".copy-rel-path-btn").forEach((v)=>{v.onclick=(w)=>{w.stopPropagation(),copyToClipboard(v.dataset.path,"Relative path copied to clipboard!")}})}function wOi(e){if(!ve.sessionFilesContent)return;let r=e.totalFiles||0,i=parseFloat(e.readWriteRatio)||0,a="\uD83C\uDFAF High Reconnaissance",o="#34d399";if(i<0.8)a="⚡ Rapid Direct Mutation",o="#fbbf24";else if(i<2)a="⚖️ Balanced Reconnaissance",o="#38bdf8";let l=` +
    + +
    +
    +
    + \uD83C\uDF08 + File Extension & Language Spectrum +
    + + ${e.extensionSpectrum.length} file types · ${r} unique files + +
    + +
    + ${e.extensionSpectrum.map((h)=>` +
    + `).join("")} +
    + +
    + ${e.extensionSpectrum.map((h)=>` +
    + + ${nn(h.extension)} + (${h.count} · ${h.percentage}%) +
    + `).join("")} +
    +
    + + +
    + +
    +
    + \uD83D\uDD2C + Reconnaissance & Churn Efficiency +
    +
    + + ${e.readWriteRatio}x + + ${a} - Step ${i.stepIndex} + +
    +

    + The agent conducted ${e.totalReads} reads across files before/between performing ${e.totalEdits} code mutations (${e.totalTouches} total operations). +

    +
    +
    +
    Inspected
    +
    ${e.totalReads}
    +
    +
    +
    Mutations
    +
    ${e.totalEdits}
    +
    +
    +
    Deliverables
    +
    ${e.totalArtifacts}
    -
    ${En(i.path)}
    -
    - - + + +
    +
    + \uD83C\uDFAF + Directory Blast Radius (${e.blastRadiusDirs.length} packages) +
    +

    + Code mutations spanned ${e.blastRadiusDirs.length} distinct directory modules across the monorepo: +

    +
    + ${e.blastRadiusDirs.length>0?e.blastRadiusDirs.map((h)=>` +
    + ${nn(h.split("/").slice(-3).join("/"))} + Module +
    + `).join(""):` +
    No file mutations recorded yet
    + `} +
    +
    + + +
    +
    + \uD83D\uDD25 + Top Churn Hotspots +
    +

    + Files modified most frequently across the agent session turns: +

    +
    + ${e.churnHotspots.length>0?e.churnHotspots.map((h)=>` +
    +
    + ${Ggt(h.path)} + ${nn(h.name)} +
    +
    + ✏️ ${h.churnCount}x +
    + ${h.stepIndices.slice(0,3).map((d)=>``).join("")} +
    +
    +
    + `).join(""):` +
    No files mutated in this session
    + `} +
    - `}).join(""),Ae.sessionFilesListContainer.querySelectorAll(".open-file-item-btn").forEach((i)=>{i.onclick=(a)=>{a.stopPropagation(),dle(),lM(i.dataset.path)}}),Ae.sessionFilesListContainer.querySelectorAll(".session-file-item").forEach((i)=>{i.onclick=()=>{dle(),lM(i.dataset.path)}}),Ae.sessionFilesListContainer.querySelectorAll(".copy-file-path-btn").forEach((i)=>{i.onclick=(a)=>{a.stopPropagation(),copyToClipboard(i.dataset.path,"File path copied to clipboard!")}})}function lrn(){if(!Ae.sessionFilesModal)return;Ugt(),Ae.sessionFilesModal.classList.add("active")}function dle(){if(Ae.sessionFilesModal)Ae.sessionFilesModal.classList.remove("active")}function gOi(){if(Ae.agentBrainBtn)Ae.agentBrainBtn.addEventListener("click",()=>{Ggt()});if(Ae.closeAgentMatrixModalBtn)Ae.closeAgentMatrixModalBtn.addEventListener("click",zgt);if(Ae.detailAgentContextBtn)Ae.detailAgentContextBtn.addEventListener("click",()=>{if(at.activeTimelineSessionId)urn(at.activeTimelineSessionId)});if(Ae.closeSessionContextModalBtn)Ae.closeSessionContextModalBtn.addEventListener("click",gAe);if(Ae.sessionMatrixLensControl)Ae.sessionMatrixLensControl.querySelectorAll(".segment-btn").forEach((i)=>{i.addEventListener("click",()=>{Ae.sessionMatrixLensControl.querySelectorAll(".segment-btn").forEach((a)=>a.classList.remove("active")),i.classList.add("active"),at.sessionMatrix.lens=i.dataset.lens,zI()})});let e=document.querySelectorAll(".session-matrix-filter-chips .matrix-filter-chip, .session-matrix-filter-chips .chip");if(e.forEach((i)=>{i.addEventListener("click",()=>{e.forEach((a)=>a.classList.remove("active")),i.classList.add("active"),at.sessionMatrix.type=i.dataset.type,zI()})}),Ae.sessionMatrixSearchInput)Ae.sessionMatrixSearchInput.addEventListener("input",(i)=>{if(at.sessionMatrix.search=i.target.value.trim().toLowerCase(),Ae.clearSessionMatrixSearchBtn)Ae.clearSessionMatrixSearchBtn.style.display=at.sessionMatrix.search?"inline-flex":"none";zI()});if(Ae.clearSessionMatrixSearchBtn)Ae.clearSessionMatrixSearchBtn.addEventListener("click",()=>{if(at.sessionMatrix.search="",Ae.sessionMatrixSearchInput)Ae.sessionMatrixSearchInput.value="";Ae.clearSessionMatrixSearchBtn.style.display="none",zI()});if(Ae.agentMatrixScopeControl)Ae.agentMatrixScopeControl.querySelectorAll(".segment-btn").forEach((i)=>{i.addEventListener("click",()=>{Ae.agentMatrixScopeControl.querySelectorAll(".segment-btn").forEach((a)=>a.classList.remove("active")),i.classList.add("active"),at.agentMatrix.scope=i.dataset.scope,xW()})});let r=document.querySelectorAll(".agent-matrix-filter-chips .matrix-filter-chip, .agent-matrix-filter-chips .chip");if(r.forEach((i)=>{i.addEventListener("click",()=>{r.forEach((a)=>a.classList.remove("active")),i.classList.add("active"),at.agentMatrix.type=i.dataset.type,xW()})}),Ae.agentMatrixSearchInput)Ae.agentMatrixSearchInput.addEventListener("input",(i)=>{if(at.agentMatrix.search=i.target.value.trim().toLowerCase(),Ae.clearAgentMatrixSearchBtn)Ae.clearAgentMatrixSearchBtn.style.display=at.agentMatrix.search?"inline-flex":"none";xW()});if(Ae.clearAgentMatrixSearchBtn)Ae.clearAgentMatrixSearchBtn.addEventListener("click",()=>{if(at.agentMatrix.search="",Ae.agentMatrixSearchInput)Ae.agentMatrixSearchInput.value="";Ae.clearAgentMatrixSearchBtn.style.display="none",xW()})}async function Ggt(e){if(!Ae.agentMatrixModal)return;let r=e||at.drilledProject||at.filterWorkspace||null;if(at.agentMatrix.targetWorkspace=r,Ae.agentMatrixWorkspaceSegment)if(r)Ae.agentMatrixWorkspaceSegment.textContent=`\uD83D\uDCC1 ${r}`,Ae.agentMatrixWorkspaceSegment.style.display="inline-block";else Ae.agentMatrixWorkspaceSegment.textContent="\uD83D\uDCC1 Workspace",Ae.agentMatrixWorkspaceSegment.style.display="inline-block";if(r&&at.agentMatrix.scope==="global"){if(at.agentMatrix.scope="workspace",Ae.agentMatrixScopeControl)Ae.agentMatrixScopeControl.querySelectorAll(".segment-btn").forEach((i)=>{i.classList.toggle("active",i.dataset.scope==="workspace")})}if(Ae.agentMatrixModal.classList.add("active"),Ae.agentMatrixContent)Ae.agentMatrixContent.innerHTML='
    Discovering agent rules, skills, and constitutions...
    ';try{let i=[fetch("/api/agent/context/global").then((l)=>l.json())];if(r)i.push(fetch(`/api/agent/context/workspace?workspace=${encodeURIComponent(r)}`).then((l)=>l.json()));let[a,o]=await Promise.all(i);at.agentMatrix.globalContext=a,at.agentMatrix.workspaceContext=o||null,xW()}catch(i){if(console.error("Failed to load agent context:",i),Ae.agentMatrixContent)Ae.agentMatrixContent.innerHTML=`
    Failed to discover agent context: ${En(i.message)}
    `}}function zgt(){if(Ae.agentMatrixModal)Ae.agentMatrixModal.classList.remove("active")}function crn(e,r){let i=3;if(r<768)i=1;else if(r<1200)i=2;let a=Array.from({length:i},()=>[]),o=Array(i).fill(0);return e.forEach((l)=>{let h=0,d=o[0];for(let p=1;p + `;ve.sessionFilesContent.innerHTML=l,ve.sessionFilesContent.querySelectorAll(".step-marker-pill[data-step]").forEach((h)=>{h.onclick=(d)=>{d.stopPropagation(),ple(parseInt(h.dataset.step,10))}})}function prn(){lA()}function grn(){if(!ve.sessionFilesModal)return;lA(),ve.sessionFilesModal.classList.add("active")}function SOi(){if(ve.detailFilesBtn)ve.detailFilesBtn.addEventListener("click",grn);if(ve.closeSessionFilesModalBtn)ve.closeSessionFilesModalBtn.addEventListener("click",RW);if(ve.sessionFilesLensControl)ve.sessionFilesLensControl.querySelectorAll(".segment-btn").forEach((r)=>{r.addEventListener("click",()=>{nt.sessionFiles.lens=r.dataset.lens||"catalog",lA()})});if(ve.sessionFilesSortSelect)ve.sessionFilesSortSelect.addEventListener("change",(r)=>{nt.sessionFiles.sort=r.target.value,lA()});let e=document.getElementById("sessionFilesFilterChips");if(e)e.querySelectorAll(".matrix-filter-chip").forEach((r)=>{r.addEventListener("click",()=>{nt.sessionFiles.type=r.dataset.type||"ALL",lA()})});if(ve.sessionFilesSearchInput){let r=null;ve.sessionFilesSearchInput.addEventListener("input",(i)=>{clearTimeout(r);let a=i.target.value;if(ve.clearSessionFilesSearchBtn)ve.clearSessionFilesSearchBtn.style.display=a?"inline-flex":"none";r=setTimeout(()=>{nt.sessionFiles.search=a,lA()},150)})}if(ve.clearSessionFilesSearchBtn)ve.clearSessionFilesSearchBtn.addEventListener("click",()=>{if(ve.sessionFilesSearchInput)ve.sessionFilesSearchInput.value="",ve.sessionFilesSearchInput.focus();ve.clearSessionFilesSearchBtn.style.display="none",nt.sessionFiles.search="",lA()})}function RW(){if(ve.sessionFilesModal)ve.sessionFilesModal.classList.remove("active")}function TOi(){if(ve.agentBrainBtn)ve.agentBrainBtn.addEventListener("click",()=>{qgt()});if(ve.closeAgentMatrixModalBtn)ve.closeAgentMatrixModalBtn.addEventListener("click",Ygt);if(ve.detailAgentContextBtn)ve.detailAgentContextBtn.addEventListener("click",()=>{if(nt.activeTimelineSessionId)mrn(nt.activeTimelineSessionId)});if(ve.closeSessionContextModalBtn)ve.closeSessionContextModalBtn.addEventListener("click",yAe);if(ve.sessionMatrixLensControl)ve.sessionMatrixLensControl.querySelectorAll(".segment-btn").forEach((i)=>{i.addEventListener("click",()=>{ve.sessionMatrixLensControl.querySelectorAll(".segment-btn").forEach((a)=>a.classList.remove("active")),i.classList.add("active"),nt.sessionMatrix.lens=i.dataset.lens,cA()})});if(ve.sessionMatrixSortSelect)ve.sessionMatrixSortSelect.addEventListener("change",(i)=>{nt.sessionMatrix.sort=i.target.value,cA()});let e=document.querySelectorAll(".session-matrix-filter-chips .matrix-filter-chip, .session-matrix-filter-chips .chip");if(e.forEach((i)=>{i.addEventListener("click",()=>{e.forEach((a)=>a.classList.remove("active")),i.classList.add("active"),nt.sessionMatrix.type=i.dataset.type,cA()})}),ve.sessionMatrixSearchInput)ve.sessionMatrixSearchInput.addEventListener("input",(i)=>{if(nt.sessionMatrix.search=i.target.value.trim().toLowerCase(),ve.clearSessionMatrixSearchBtn)ve.clearSessionMatrixSearchBtn.style.display=nt.sessionMatrix.search?"inline-flex":"none";cA()});if(ve.clearSessionMatrixSearchBtn)ve.clearSessionMatrixSearchBtn.addEventListener("click",()=>{if(nt.sessionMatrix.search="",ve.sessionMatrixSearchInput)ve.sessionMatrixSearchInput.value="";ve.clearSessionMatrixSearchBtn.style.display="none",cA()});if(ve.agentMatrixScopeControl)ve.agentMatrixScopeControl.querySelectorAll(".segment-btn").forEach((i)=>{i.addEventListener("click",()=>{ve.agentMatrixScopeControl.querySelectorAll(".segment-btn").forEach((a)=>a.classList.remove("active")),i.classList.add("active"),nt.agentMatrix.scope=i.dataset.scope,HF()})});if(ve.agentMatrixSortSelect)ve.agentMatrixSortSelect.addEventListener("change",(i)=>{nt.agentMatrix.sort=i.target.value,HF()});let r=document.querySelectorAll(".agent-matrix-filter-chips .matrix-filter-chip, .agent-matrix-filter-chips .chip");if(r.forEach((i)=>{i.addEventListener("click",()=>{r.forEach((a)=>a.classList.remove("active")),i.classList.add("active"),nt.agentMatrix.type=i.dataset.type,HF()})}),ve.agentMatrixSearchInput)ve.agentMatrixSearchInput.addEventListener("input",(i)=>{if(nt.agentMatrix.search=i.target.value.trim().toLowerCase(),ve.clearAgentMatrixSearchBtn)ve.clearAgentMatrixSearchBtn.style.display=nt.agentMatrix.search?"inline-flex":"none";HF()});if(ve.clearAgentMatrixSearchBtn)ve.clearAgentMatrixSearchBtn.addEventListener("click",()=>{if(nt.agentMatrix.search="",ve.agentMatrixSearchInput)ve.agentMatrixSearchInput.value="";ve.clearAgentMatrixSearchBtn.style.display="none",HF()})}async function qgt(e){if(!ve.agentMatrixModal)return;let r=e||nt.drilledProject||nt.filterWorkspace||null;if(nt.agentMatrix.targetWorkspace=r,ve.agentMatrixWorkspaceSegment)if(r)ve.agentMatrixWorkspaceSegment.textContent=`\uD83D\uDCC1 ${r}`,ve.agentMatrixWorkspaceSegment.style.display="inline-block";else ve.agentMatrixWorkspaceSegment.textContent="\uD83D\uDCC1 Workspace",ve.agentMatrixWorkspaceSegment.style.display="inline-block";if(r&&nt.agentMatrix.scope==="global"){if(nt.agentMatrix.scope="workspace",ve.agentMatrixScopeControl)ve.agentMatrixScopeControl.querySelectorAll(".segment-btn").forEach((i)=>{i.classList.toggle("active",i.dataset.scope==="workspace")})}if(ve.agentMatrixModal.classList.add("active"),ve.agentMatrixContent)ve.agentMatrixContent.innerHTML='
    Discovering agent rules, skills, and constitutions...
    ';try{let i=[fetch("/api/agent/context/global").then((l)=>l.json())];if(r)i.push(fetch(`/api/agent/context/workspace?workspace=${encodeURIComponent(r)}`).then((l)=>l.json()));let[a,o]=await Promise.all(i);nt.agentMatrix.globalContext=a,nt.agentMatrix.workspaceContext=o||null,HF()}catch(i){if(console.error("Failed to load agent context:",i),ve.agentMatrixContent)ve.agentMatrixContent.innerHTML=`
    Failed to discover agent context: ${nn(i.message)}
    `}}function Ygt(){if(ve.agentMatrixModal)ve.agentMatrixModal.classList.remove("active")}function Wgt(e,r){let i=3;if(r<768)i=1;else if(r<1200)i=2;let a=Array.from({length:i},()=>[]),o=Array(i).fill(0);return e.forEach((l)=>{let h=0,d=o[0];for(let p=1;p ${a.map((l)=>`
    ${l.join("")}
    `).join("")}
    - `}function xW(){if(!Ae.agentMatrixContent)return;let{scope:e,type:r,search:i,globalContext:a,workspaceContext:o}=at.agentMatrix;if(!a)return;let l=[],h=[],d=[],p=[],m=[];if(e==="global"||!o)l=a.rules||[],h=a.skills||[],d=a.plugins||[],p=a.mcp_servers||[],m=a.hooks||[];else if(e==="workspace")l=(o.rules||[]).filter((B)=>B.scope==="workspace"),h=(o.skills||[]).filter((B)=>B.scope==="workspace"),d=[],p=(o.mcp_servers||[]).filter((B)=>B.scope==="workspace"),m=(o.hooks||[]).filter((B)=>B.scope==="workspace");else l=o.rules||[],h=o.skills||[],d=a.plugins||[],p=o.mcp_servers||a.mcp_servers||[],m=o.hooks||a.hooks||[];if(Ae.agentMatrixRulesCount)Ae.agentMatrixRulesCount.textContent=l.length;if(Ae.agentMatrixSkillsCount)Ae.agentMatrixSkillsCount.textContent=h.length;if(Ae.agentMatrixPluginsCount)Ae.agentMatrixPluginsCount.textContent=d.length+p.length;if(Ae.agentMatrixHooksCount)Ae.agentMatrixHooksCount.textContent=m.length;let y=e==="workspace"&&o?o.preloaded_tokens_est||0:a.preloaded_tokens_est||0,E=e==="workspace"&&o?o.on_demand_tokens_est||0:a.on_demand_tokens_est||0,w=e==="workspace"&&o?o.total_words||0:a.total_words||0,T=y+E,x=document.getElementById("agentMatrixPreloadedVal"),k=document.getElementById("agentMatrixOndemandVal"),A=document.getElementById("agentMatrixTotalWordsVal");if(x)x.textContent=`~${y.toLocaleString()} tokens`;if(k)k.textContent=`~${E.toLocaleString()} tokens`;if(A)A.textContent=`${w.toLocaleString()} words (~${T.toLocaleString()} tokens)`;let R=[];if(r==="ALL"||r==="RULES")l.forEach((B)=>R.push({kind:"rule",data:B}));if(r==="ALL"||r==="SKILLS")h.forEach((B)=>R.push({kind:"skill",data:B}));if(r==="ALL"||r==="PLUGINS")d.forEach((B)=>R.push({kind:"plugin",data:B})),p.forEach((B)=>R.push({kind:"mcp",data:B}));if(r==="ALL"||r==="HOOKS")m.forEach((B)=>R.push({kind:"hook",data:B}));if(i)R=R.filter((B)=>{let D=B.data;return[D.name,D.title,D.description,D.file_path||D.path||D.command,D.provider,D.priority,D.trigger].filter(Boolean).join(" ").toLowerCase().includes(i)});if(Ae.agentMatrixTotalCountBadge)Ae.agentMatrixTotalCountBadge.textContent=`${R.length} item${R.length===1?"":"s"}`;if(R.length===0){Ae.agentMatrixContent.innerHTML=` + `}function HF(){if(!ve.agentMatrixContent)return;let{scope:e,type:r,search:i,globalContext:a,workspaceContext:o}=nt.agentMatrix;if(!a)return;let l=[],h=[],d=[],p=[],m=[];if(e==="global"||!o)l=a.rules||[],h=a.skills||[],d=a.plugins||[],p=a.mcp_servers||[],m=a.hooks||[];else if(e==="workspace")l=(o.rules||[]).filter((P)=>P.scope==="workspace"),h=(o.skills||[]).filter((P)=>P.scope==="workspace"),d=[],p=(o.mcp_servers||[]).filter((P)=>P.scope==="workspace"),m=(o.hooks||[]).filter((P)=>P.scope==="workspace");else l=o.rules||[],h=o.skills||[],d=a.plugins||[],p=o.mcp_servers||a.mcp_servers||[],m=o.hooks||a.hooks||[];if(ve.agentMatrixRulesCount)ve.agentMatrixRulesCount.textContent=l.length;if(ve.agentMatrixSkillsCount)ve.agentMatrixSkillsCount.textContent=h.length;if(ve.agentMatrixPluginsCount)ve.agentMatrixPluginsCount.textContent=d.length+p.length;if(ve.agentMatrixHooksCount)ve.agentMatrixHooksCount.textContent=m.length;let y=e==="workspace"&&o?o.preloaded_tokens_est||0:a.preloaded_tokens_est||0,v=e==="workspace"&&o?o.on_demand_tokens_est||0:a.on_demand_tokens_est||0,w=e==="workspace"&&o?o.total_words||0:a.total_words||0,T=y+v,x=document.getElementById("agentMatrixPreloadedVal"),k=document.getElementById("agentMatrixOndemandVal"),A=document.getElementById("agentMatrixTotalWordsVal");if(x)x.textContent=`~${y.toLocaleString()} tokens`;if(k)k.textContent=`~${v.toLocaleString()} tokens`;if(A)A.textContent=`${w.toLocaleString()} words (~${T.toLocaleString()} tokens)`;let R=[];if(r==="ALL"||r==="RULES")l.forEach((P)=>R.push({kind:"rule",data:P}));if(r==="ALL"||r==="SKILLS")h.forEach((P)=>R.push({kind:"skill",data:P}));if(r==="ALL"||r==="PLUGINS")d.forEach((P)=>R.push({kind:"plugin",data:P})),p.forEach((P)=>R.push({kind:"mcp",data:P}));if(r==="ALL"||r==="HOOKS")m.forEach((P)=>R.push({kind:"hook",data:P}));if(i)R=R.filter((P)=>{let F=P.data;return[F.name,F.title,F.description,F.file_path||F.path||F.command,F.provider,F.priority,F.trigger].filter(Boolean).join(" ").toLowerCase().includes(i)});if(ve.agentMatrixTotalCountBadge)ve.agentMatrixTotalCountBadge.textContent=`${R.length} item${R.length===1?"":"s"}`;if(R.length===0){ve.agentMatrixContent.innerHTML=`
    \uD83E\uDDE0

    No rules, skills, or instructions matching the active filter.

    - `;return}let N=[];R.forEach((B)=>{let D="",P=160;if(B.kind==="rule"){let F=B.data,H=(F.priority||"").includes("Constitutional")||F.name.includes("constitution")||F.name.includes("101");P=160,D=` + `;return}if(ve.agentMatrixSortSelect)ve.agentMatrixSortSelect.value=nt.agentMatrix.sort||"bloat_desc";let N=nt.agentMatrix.sort||"bloat_desc",L={workspace:0,global:1,cascade:2};R.sort((P,F)=>{let H=P.data||{},W=F.data||{};switch(N){case"lines_desc":return(W.line_count||0)-(H.line_count||0);case"scope":{let X=L[H.scope]??9,Q=L[W.scope]??9;if(X!==Q)return X-Q;return(H.name||H.title||"").localeCompare(W.name||W.title||"")}case"name_asc":return(H.name||H.title||"").localeCompare(W.name||W.title||"");case"bloat_desc":default:return(W.tokens_est||0)-(H.tokens_est||0)}});let B=[];R.forEach((P)=>{let F="",H=160;if(P.kind==="rule"){let W=P.data,X=(W.priority||"").includes("Constitutional")||W.name.includes("constitution")||W.name.includes("101");H=160,F=`
    - \uD83D\uDCDC ${En(F.title||F.name)} + \uD83D\uDCDC ${nn(W.title||W.name)}
    - ${F.scope} - ${En(F.priority||"Standard")} - ${F.trigger&&F.trigger!=="always_on"?`⚡ ${En(F.trigger)}`:""} + ${W.scope} + ${nn(W.priority||"Standard")} + ${W.trigger&&W.trigger!=="always_on"?`⚡ ${nn(W.trigger)}`:""}
    - ${En(F.provider||"antigravity")} + ${nn(W.provider||"antigravity")}
    -

    ${En(F.description||"No summary description available.")}

    +

    ${nn(W.description||"No summary description available.")}

    - ⚡ ~${(F.tokens_est||0).toLocaleString()} tok - \uD83D\uDD24 ${(F.word_count||0).toLocaleString()} words - \uD83D\uDCCF ${F.line_count} lines - \uD83D\uDCBE ${Math.max(1,Math.round(F.size_bytes/1024))} KB - ${F.workspace?`\uD83D\uDCC1 ${En(F.workspace)}`:""} + ⚡ ~${(W.tokens_est||0).toLocaleString()} tok + \uD83D\uDD24 ${(W.word_count||0).toLocaleString()} words + \uD83D\uDCCF ${W.line_count} lines + \uD83D\uDCBE ${Math.max(1,Math.round(W.size_bytes/1024))} KB + ${W.workspace?`\uD83D\uDCC1 ${nn(W.workspace)}`:""}
    - ${En(F.file_path)} + ${nn(W.file_path)}
    - - + +
    - `}else if(B.kind==="skill"){let F=B.data;P=165,D=` + `}else if(P.kind==="skill"){let W=P.data;H=165,F=`
    - ⚡ ${En(F.name)} + ⚡ ${nn(W.name)}
    - ${F.scope} - ${F.category?`${En(F.category)}`:""} - ${F.plugin_name?`\uD83E\uDDE9 ${En(F.plugin_name)}`:""} + ${W.scope} + ${W.category?`${nn(W.category)}`:""} + ${W.plugin_name?`\uD83E\uDDE9 ${nn(W.plugin_name)}`:""}
    - ${En(F.provider||"antigravity")} + ${nn(W.provider||"antigravity")}
    -

    ${En(F.description||"On-demand procedural runbook for agentic execution.")}

    +

    ${nn(W.description||"On-demand procedural runbook for agentic execution.")}

    - ⚡ ~${(F.tokens_est||0).toLocaleString()} tok - \uD83D\uDD24 ${(F.word_count||0).toLocaleString()} words - \uD83D\uDCCF ${F.line_count} lines - ${F.has_scripts?"\uD83D\uDEE0️ Scripts":""} - ${F.has_examples?"\uD83D\uDCA1 Examples":""} - ${F.has_references?"\uD83D\uDCDA References":""} - ${F.workspace?`\uD83D\uDCC1 ${En(F.workspace)}`:""} + ⚡ ~${(W.tokens_est||0).toLocaleString()} tok + \uD83D\uDD24 ${(W.word_count||0).toLocaleString()} words + \uD83D\uDCCF ${W.line_count} lines + ${W.has_scripts?"\uD83D\uDEE0️ Scripts":""} + ${W.has_examples?"\uD83D\uDCA1 Examples":""} + ${W.has_references?"\uD83D\uDCDA References":""} + ${W.workspace?`\uD83D\uDCC1 ${nn(W.workspace)}`:""}
    - ${En(F.file_path)} + ${nn(W.file_path)}
    - - + +
    - `}else if(B.kind==="plugin"){let F=B.data;P=140,D=` + `}else if(P.kind==="plugin"){let W=P.data;H=140,F=`
    - \uD83E\uDDE9 ${En(F.name)} + \uD83E\uDDE9 ${nn(W.name)} PLUGIN
    - v${En(F.version||"1.0.0")} + v${nn(W.version||"1.0.0")}
    -

    ${En(F.description||"Packaged agent customization bundle.")}

    +

    ${nn(W.description||"Packaged agent customization bundle.")}

    - ⚡ ${(F.skills||[]).length} skills - \uD83D\uDCCB ${(F.policies||[]).length} policies + ⚡ ${(W.skills||[]).length} skills + \uD83D\uDCCB ${(W.policies||[]).length} policies
    - ${En(F.path)} - + ${nn(W.path)} +
    - `}else if(B.kind==="mcp"){let F=B.data;P=130,D=` + `}else if(P.kind==="mcp"){let W=P.data;H=130,F=`
    - \uD83D\uDD0C ${En(F.name)} - MCP SERVER + \uD83D\uDD0C ${nn(W.name)} + MCP SERVER
    -

    Command: ${En(F.command||"custom")}

    +

    Command: ${nn(W.command||"custom")}

    - \uD83D\uDD27 ${(F.args||[]).join(" ")} + \uD83D\uDD27 ${(W.args||[]).join(" ")}
    - `}else if(B.kind==="hook"){let F=B.data;P=130,D=` + `}else if(P.kind==="hook"){let W=P.data;H=130,F=`
    - \uD83E\uDE9D ${En(F.name||F.event)} - ${En(F.event)} + \uD83E\uDE9D ${nn(W.name||W.event)} + ${nn(W.event)}
    -

    Matcher: ${En(F.matcher||"all")}

    +

    Matcher: ${nn(W.matcher||"all")}

    - ${En(F.command)} - + ${nn(W.command)} +
    - `}if(D)N.push({html:D,weight:P})});let L=Ae.agentMatrixContent.clientWidth||window.innerWidth;Ae.agentMatrixContent.innerHTML=crn(N,L),Ae.agentMatrixContent.querySelectorAll(".inspect-agent-file-btn").forEach((B)=>{B.onclick=(D)=>{D.stopPropagation(),lM(B.dataset.path)}}),Ae.agentMatrixContent.querySelectorAll(".copy-agent-path-btn").forEach((B)=>{B.onclick=(D)=>{D.stopPropagation(),copyToClipboard(B.dataset.path,"Path copied to clipboard!")}})}async function urn(e){if(!Ae.sessionContextModal||!Ae.sessionContextContent)return;let r=e||at.activeTimelineSessionId||at.sessionMatrix.sessionId;if(!r)return;if(at.sessionMatrix.sessionId=r,Ae.sessionContextIdBadge)Ae.sessionContextIdBadge.textContent=r.length>8?r.slice(0,8):r,Ae.sessionContextIdBadge.title=`Full Session UUID: ${r}`;Ae.sessionContextModal.classList.add("active"),Ae.sessionContextContent.innerHTML='
    Synthesizing holographic session matrix & tool telemetry...
    ';try{let i=await fetch(`/api/sessions/${r}/context`);if(!i.ok)throw Error(`HTTP ${i.status}`);let a=await i.json();at.sessionMatrix.context=a,zI()}catch(i){console.error("Failed to load session context:",i),Ae.sessionContextContent.innerHTML=`
    Error loading session matrix: ${En(i.message)}
    `}}function gAe(){if(Ae.sessionContextModal)Ae.sessionContextModal.classList.remove("active")}function Ogt(e){gAe();let r=document.getElementById(`step-${e}`)||document.querySelector(`.message-item[data-step="${e}"]`);if(!r){if(Ae.sessionStepSearchInput&&Ae.sessionStepSearchInput.value)Ae.sessionStepSearchInput.value="",at.sessionStepSearch="";if(at.messageFilter!=="ALL"){if(at.messageFilter="ALL",Ae.msgFilterChips)Ae.msgFilterChips.forEach((i)=>{i.classList.toggle("active",i.dataset.type==="ALL")})}if(typeof oA==="function")oA();r=document.getElementById(`step-${e}`)||document.querySelector(`.message-item[data-step="${e}"]`)}if(r){r.scrollIntoView({behavior:"smooth",block:"center"}),r.classList.remove("step-target-highlight");let i=r.querySelector(".message-card");if(i)i.classList.remove("step-target-highlight");if(r.offsetWidth,r.classList.add("step-target-highlight"),i)i.classList.add("step-target-highlight");setTimeout(()=>{if(r.classList.remove("step-target-highlight"),i)i.classList.remove("step-target-highlight")},2800),ob(`⚡ Navigated to Step #${e}`)}else ob(`Step #${e} recorded in session telemetry`)}function hAe(e){switch((e||"").toLowerCase()){case"vcs":return"#a855f7";case"build":return"#06b6d4";case"test":return"#f59e0b";case"process":return"#ec4899";case"inspect":return"#10b981";case"network":return"#38bdf8";case"runtime":return"#6366f1";case"filesystem":return"#14b8a6";default:return"#94a3b8"}}function Ytn(e){switch((e||"").toLowerCase()){case"vcs":return"\uD83C\uDF3F";case"build":return"⚙️";case"test":return"\uD83E\uDDEA";case"process":return"⚡";case"inspect":return"\uD83D\uDD0D";case"network":return"\uD83C\uDF10";case"runtime":return"\uD83D\uDCBB";case"filesystem":return"\uD83D\uDCC1";default:return"\uD83D\uDEE0️"}}function zI(){if(!Ae.sessionContextContent||!at.sessionMatrix.context)return;let e=at.sessionMatrix.context,{lens:r,type:i,search:a}=at.sessionMatrix,o=e.active_rules||[],l=e.active_skills||[],h=e.available_skills||[],d=e.mcp_servers||[],p=e.native_tools||[],m=e.tool_analytics||{total_tool_calls:0,total_mcp_calls:0,total_native_calls:0,unique_tools_used:0,tool_diversity_index:0,total_errors:0},y=e.subagents||[],E=e.slash_commands||[],w=e.active_tokens_est||0,T=e.on_demand_tokens_est||0,x=e.total_words_injected||0,k=[],A=[],R=0;d.forEach((X)=>{if(X.invoked_count>0||X.active_tools&&X.active_tools.length>0)R++;(X.active_tools||[]).forEach((W)=>k.push(W)),(X.dormant_tools||[]).forEach((W)=>{A.push({name:W,server_name:X.name,invoked_count:0})})});let N=m.total_tool_calls||0,L=m.total_errors||0,B=N>0?Math.max(0,Math.round((N-L)/N*100)):100,D=(m.tool_diversity_index*100).toFixed(1);if(Ae.sessionMatrixInjectedVal)Ae.sessionMatrixInjectedVal.textContent=`~${w.toLocaleString()} tok`;if(Ae.sessionMatrixMCPVal)Ae.sessionMatrixMCPVal.textContent=`${m.total_mcp_calls} calls (${k.length} tools)`;if(Ae.sessionMatrixDiversityVal)Ae.sessionMatrixDiversityVal.textContent=`${D}% (${m.unique_tools_used} distinct)`;if(Ae.sessionMatrixOndemandVal)Ae.sessionMatrixOndemandVal.textContent=`~${T.toLocaleString()} tok`;if(Ae.sessionMatrixReliabilityVal)Ae.sessionMatrixReliabilityVal.textContent=`${B}% (${L} err)`;let P=l.length+(r==="cascade"?h.length:0),F=k.length+(r==="cascade"?A.length:0),H=p.length,K=o.length,Q=y.length+E.length,Z=P+F+H+K+Q;if(Ae.sessionMatrixChipSkillsLabel)Ae.sessionMatrixChipSkillsLabel.textContent=r==="cascade"?"Skills (Active & Standby)":"Invoked Skills";if(Ae.sessionMatrixChipAll)Ae.sessionMatrixChipAll.textContent=Z;if(Ae.sessionMatrixChipSkills)Ae.sessionMatrixChipSkills.textContent=r==="cascade"&&l.length>0?`${l.length} / ${P}`:P;if(Ae.sessionMatrixChipMCP)Ae.sessionMatrixChipMCP.textContent=F;if(Ae.sessionMatrixChipNative)Ae.sessionMatrixChipNative.textContent=H;if(Ae.sessionMatrixChipRules)Ae.sessionMatrixChipRules.textContent=K;if(Ae.sessionMatrixChipOrch)Ae.sessionMatrixChipOrch.textContent=Q;if(r==="telemetry"){if(Ae.sessionMatrixTotalCountBadge)Ae.sessionMatrixTotalCountBadge.textContent="Telemetry Mode";let X=` + `}if(F)B.push({html:F,weight:H})});let D=ve.agentMatrixContent.clientWidth||window.innerWidth;ve.agentMatrixContent.innerHTML=Wgt(B,D),ve.agentMatrixContent.querySelectorAll(".inspect-agent-file-btn").forEach((P)=>{P.onclick=(F)=>{F.stopPropagation(),uM(P.dataset.path)}}),ve.agentMatrixContent.querySelectorAll(".copy-agent-path-btn").forEach((P)=>{P.onclick=(F)=>{F.stopPropagation(),copyToClipboard(P.dataset.path,"Path copied to clipboard!")}})}async function mrn(e){if(!ve.sessionContextModal||!ve.sessionContextContent)return;let r=e||nt.activeTimelineSessionId||nt.sessionMatrix.sessionId;if(!r)return;if(nt.sessionMatrix.sessionId=r,ve.sessionContextIdBadge)ve.sessionContextIdBadge.textContent=r.length>8?r.slice(0,8):r,ve.sessionContextIdBadge.title=`Full Session UUID: ${r}`;ve.sessionContextModal.classList.add("active"),ve.sessionContextContent.innerHTML='
    Synthesizing holographic session matrix & tool telemetry...
    ';try{let i=await fetch(`/api/sessions/${r}/context`);if(!i.ok)throw Error(`HTTP ${i.status}`);let a=await i.json();nt.sessionMatrix.context=a,cA()}catch(i){console.error("Failed to load session context:",i),ve.sessionContextContent.innerHTML=`
    Error loading session matrix: ${nn(i.message)}
    `}}function yAe(){if(ve.sessionContextModal)ve.sessionContextModal.classList.remove("active")}function ple(e){yAe(),RW();let r=document.getElementById(`step-${e}`)||document.querySelector(`.message-item[data-step="${e}"]`);if(!r){if(ve.sessionStepSearchInput&&ve.sessionStepSearchInput.value)ve.sessionStepSearchInput.value="",nt.sessionStepSearch="";if(nt.messageFilter!=="ALL"){if(nt.messageFilter="ALL",ve.msgFilterChips)ve.msgFilterChips.forEach((i)=>{i.classList.toggle("active",i.dataset.type==="ALL")})}if(typeof uA==="function")uA();r=document.getElementById(`step-${e}`)||document.querySelector(`.message-item[data-step="${e}"]`)}if(r){r.scrollIntoView({behavior:"smooth",block:"center"}),r.classList.remove("step-target-highlight");let i=r.querySelector(".message-card");if(i)i.classList.remove("step-target-highlight");if(r.offsetWidth,r.classList.add("step-target-highlight"),i)i.classList.add("step-target-highlight");setTimeout(()=>{if(r.classList.remove("step-target-highlight"),i)i.classList.remove("step-target-highlight")},2800),ob(`⚡ Navigated to Step #${e}`)}else ob(`Step #${e} recorded in session telemetry`)}function pAe(e){switch((e||"").toLowerCase()){case"vcs":return"#a855f7";case"build":return"#06b6d4";case"test":return"#f59e0b";case"process":return"#ec4899";case"inspect":return"#10b981";case"network":return"#38bdf8";case"runtime":return"#6366f1";case"filesystem":return"#14b8a6";default:return"#94a3b8"}}function Ztn(e){switch((e||"").toLowerCase()){case"vcs":return"\uD83C\uDF3F";case"build":return"⚙️";case"test":return"\uD83E\uDDEA";case"process":return"⚡";case"inspect":return"\uD83D\uDD0D";case"network":return"\uD83C\uDF10";case"runtime":return"\uD83D\uDCBB";case"filesystem":return"\uD83D\uDCC1";default:return"\uD83D\uDEE0️"}}function cA(){if(!ve.sessionContextContent||!nt.sessionMatrix.context)return;let e=nt.sessionMatrix.context,{lens:r,type:i,search:a}=nt.sessionMatrix,o=e.active_rules||[],l=e.active_skills||[],h=e.available_skills||[],d=e.mcp_servers||[],p=e.native_tools||[],m=e.tool_analytics||{total_tool_calls:0,total_mcp_calls:0,total_native_calls:0,unique_tools_used:0,tool_diversity_index:0,total_errors:0},y=e.subagents||[],v=e.slash_commands||[],w=e.active_tokens_est||0,T=e.on_demand_tokens_est||0,x=e.total_words_injected||0,k=[],A=[],R=0;d.forEach((z)=>{if(z.invoked_count>0||z.active_tools&&z.active_tools.length>0)R++;(z.active_tools||[]).forEach((ne)=>k.push(ne)),(z.dormant_tools||[]).forEach((ne)=>{A.push({name:ne,server_name:z.name,invoked_count:0})})});let N=m.total_tool_calls||0,L=m.total_errors||0,B=N>0?Math.max(0,Math.round((N-L)/N*100)):100,D=(m.tool_diversity_index*100).toFixed(1);if(ve.sessionMatrixInjectedVal)ve.sessionMatrixInjectedVal.textContent=`~${w.toLocaleString()} tok`;if(ve.sessionMatrixMCPVal)ve.sessionMatrixMCPVal.textContent=`${m.total_mcp_calls} calls (${k.length} tools)`;if(ve.sessionMatrixDiversityVal)ve.sessionMatrixDiversityVal.textContent=`${D}% (${m.unique_tools_used} distinct)`;if(ve.sessionMatrixOndemandVal)ve.sessionMatrixOndemandVal.textContent=`~${T.toLocaleString()} tok`;if(ve.sessionMatrixReliabilityVal)ve.sessionMatrixReliabilityVal.textContent=`${B}% (${L} err)`;let P=l.length+(r==="cascade"?h.length:0),F=k.length+(r==="cascade"?A.length:0),H=p.length,W=o.length,X=y.length+v.length,Q=P+F+H+W+X;if(ve.sessionMatrixChipSkillsLabel)ve.sessionMatrixChipSkillsLabel.textContent=r==="cascade"?"Skills (Active & Standby)":"Invoked Skills";if(ve.sessionMatrixChipAll)ve.sessionMatrixChipAll.textContent=Q;if(ve.sessionMatrixChipSkills)ve.sessionMatrixChipSkills.textContent=r==="cascade"&&l.length>0?`${l.length} / ${P}`:P;if(ve.sessionMatrixChipMCP)ve.sessionMatrixChipMCP.textContent=F;if(ve.sessionMatrixChipNative)ve.sessionMatrixChipNative.textContent=H;if(ve.sessionMatrixChipRules)ve.sessionMatrixChipRules.textContent=W;if(ve.sessionMatrixChipOrch)ve.sessionMatrixChipOrch.textContent=X;if(r==="telemetry"){if(ve.sessionMatrixTotalCountBadge)ve.sessionMatrixTotalCountBadge.textContent="Telemetry Mode";let z=`
    @@ -5216,342 +5403,342 @@ ${JSON.stringify(y.args,null,2)} Click any step pill to jump straight to that turn
    - `,W=[...k.map((ne)=>({...ne,kind:"mcp"})),...p.map((ne)=>({...ne,kind:"native"}))].sort((ne,ie)=>ie.invoked_count-ne.invoked_count);if(W.length===0)X+='
    No tool calls recorded in this session.
    ';else W.forEach((ne)=>{let ie=ne.kind==="mcp",le=ne.step_indices||[],se=le.slice(0,6),he=le.length>6;X+=` + `,ne=[...k.map((oe)=>({...oe,kind:"mcp"})),...p.map((oe)=>({...oe,kind:"native"}))].sort((oe,he)=>he.invoked_count-oe.invoked_count);if(ne.length===0)z+='
    No tool calls recorded in this session.
    ';else ne.forEach((oe)=>{let he=oe.kind==="mcp",ye=oe.step_indices||[],Se=ye.slice(0,6),Ie=ye.length>6;z+=`
    - ${ie?"\uD83D\uDD0C":"\uD83D\uDEE0️"} ${En(ne.name)} - ${ie?`${En(ne.server_name)}`:`${En(ne.category||"Agentic")}`} + ${he?"\uD83D\uDD0C":"\uD83D\uDEE0️"} ${nn(oe.name)} + ${he?`${nn(oe.server_name)}`:`${nn(oe.category||"Agentic")}`}
    - ${ne.invoked_count}x - ${ne.error_count>0?`${ne.error_count} err`:""} + ${oe.invoked_count}x + ${oe.error_count>0?`${oe.error_count} err`:""}
    Steps: - ${se.map((ye)=>``).join("")} - ${he?`+${le.length-6} more`:""} - ${ne.recent_args_summary?`${En(ne.recent_args_summary)}`:""} + ${Se.map((Ee)=>``).join("")} + ${Ie?`+${ye.length-6} more`:""} + ${oe.recent_args_summary?`${nn(oe.recent_args_summary)}`:""}
    - `});X+="
    ";let J=m.command_breakdown||[];if(J.length>0)X+=` + `});z+="
    ";let ie=m.command_breakdown||[];if(ie.length>0)z+=`
    - ⚡ Terminal Command Execution Spectrum (${J.length} binaries) + ⚡ Terminal Command Execution Spectrum (${ie.length} binaries) Decomposed by binary & operational category
    - ${J.map((ne)=>` -
    + ${ie.map((oe)=>` +
    `).join("")}
    - ${J.map((ne)=>{let ie=ne.step_indices||[],le=ie.slice(0,5),se=ie.length>5,he=hAe(ne.category);return` + ${ie.map((oe)=>{let he=oe.step_indices||[],ye=he.slice(0,5),Se=he.length>5,Ie=pAe(oe.category);return`
    - ${Ytn(ne.category)} - ${En(ne.label||ne.key)} - ${En(ne.category||"System")} + ${Ztn(oe.category)} + ${nn(oe.label||oe.key)} + ${nn(oe.category||"System")}
    - ${ne.count}x - (${ne.percentage}%) + ${oe.count}x + (${oe.percentage}%)
    - ${ne.recent_items&&ne.recent_items.length?` -
    - Recent: ${En(ne.recent_items[0])} + ${oe.recent_items&&oe.recent_items.length?` +
    + Recent: ${nn(oe.recent_items[0])}
    `:""}
    Steps: - ${le.map((ye)=>``).join("")} - ${se?`+${ie.length-5}`:""} + ${ye.map((Ee)=>``).join("")} + ${Se?`+${he.length-5}`:""}
    `}).join("")}
    - `;let z=m.file_breakdown||[];if(z.length>0)X+=` + `;let se=m.file_breakdown||[];if(se.length>0)z+=`
    - \uD83D\uDCC1 Filesystem Operations & Extensions (${z.length} types) + \uD83D\uDCC1 Filesystem Operations & Extensions (${se.length} types) Decomposed by target file extension & language
    - ${z.map((ne)=>{let ie=ne.step_indices||[],le=ie.slice(0,4);return` + ${se.map((oe)=>{let he=oe.step_indices||[],ye=he.slice(0,4);return`
    - ${En(ne.key)} - ${ne.count}x (${ne.percentage}%) + ${nn(oe.key)} + ${oe.count}x (${oe.percentage}%)
    - ${ne.recent_items&&ne.recent_items.length?` -
    - ${En(ne.recent_items[0])} + ${oe.recent_items&&oe.recent_items.length?` +
    + ${nn(oe.recent_items[0])}
    `:""}
    Steps: - ${le.map((se)=>``).join("")} - ${ie.length>4?`+${ie.length-4}`:""} + ${ye.map((Se)=>``).join("")} + ${he.length>4?`+${he.length-4}`:""}
    `}).join("")}
    - `;X+="
    ",Ae.sessionContextContent.innerHTML=X,Ae.sessionContextContent.querySelectorAll(".step-marker-pill[data-step]").forEach((ne)=>{ne.onclick=(ie)=>{ie.stopPropagation(),Ogt(parseInt(ne.dataset.step,10))}});return}let Y=[];if(i==="ALL"||i==="SKILLS"){if(l.forEach((X)=>Y.push({kind:"skill_active",data:X})),r==="cascade")h.forEach((X)=>Y.push({kind:"skill_dormant",data:X}))}if(i==="ALL"||i==="MCP")d.forEach((X)=>{if(r==="active"){if(X.invoked_count>0||X.active_tools&&X.active_tools.length>0)Y.push({kind:"mcp_server",data:X})}else Y.push({kind:"mcp_server",data:X})});if(i==="ALL"||i==="NATIVE")p.forEach((X)=>Y.push({kind:"native_tool",data:X}));if(i==="ALL"||i==="RULES")o.forEach((X)=>Y.push({kind:"rule",data:X}));if(i==="ALL"||i==="ORCHESTRATION")y.forEach((X)=>Y.push({kind:"subagent",data:X})),E.forEach((X)=>Y.push({kind:"command",data:X}));if(a)Y=Y.filter((X)=>{let W=X.data,J="";if(typeof W==="string")J=W;else if(X.kind==="mcp_server"){let z=(W.active_tools||[]).map((ie)=>`${ie.name} ${ie.recent_args_summary||""}`).join(" "),ne=(W.dormant_tools||[]).join(" ");J=`${W.name} ${W.command||""} ${(W.args||[]).join(" ")} ${z} ${ne}`}else J=[W.name,W.title,W.description,W.file_path||W.path||W.command,W.category,W.recent_args_summary].filter(Boolean).join(" ");return J.toLowerCase().includes(a)});if(Ae.sessionMatrixTotalCountBadge)Ae.sessionMatrixTotalCountBadge.textContent=`${Y.length} item${Y.length===1?"":"s"}`;if(Y.length===0){Ae.sessionContextContent.innerHTML=` + `;z+="
    ",ve.sessionContextContent.innerHTML=z,ve.sessionContextContent.querySelectorAll(".step-marker-pill[data-step]").forEach((oe)=>{oe.onclick=(he)=>{he.stopPropagation(),ple(parseInt(oe.dataset.step,10))}});return}let Y=[];if(i==="ALL"||i==="SKILLS"){if(l.forEach((z)=>Y.push({kind:"skill_active",data:z})),r==="cascade")h.forEach((z)=>Y.push({kind:"skill_dormant",data:z}))}if(i==="ALL"||i==="MCP")d.forEach((z)=>{if(r==="active"){if(z.invoked_count>0||z.active_tools&&z.active_tools.length>0)Y.push({kind:"mcp_server",data:z})}else Y.push({kind:"mcp_server",data:z})});if(i==="ALL"||i==="NATIVE")p.forEach((z)=>Y.push({kind:"native_tool",data:z}));if(i==="ALL"||i==="RULES")o.forEach((z)=>Y.push({kind:"rule",data:z}));if(i==="ALL"||i==="ORCHESTRATION")y.forEach((z)=>Y.push({kind:"subagent",data:z})),v.forEach((z)=>Y.push({kind:"command",data:z}));if(a)Y=Y.filter((z)=>{let ne=z.data,ie="";if(typeof ne==="string")ie=ne;else if(z.kind==="mcp_server"){let se=(ne.active_tools||[]).map((he)=>`${he.name} ${he.recent_args_summary||""}`).join(" "),oe=(ne.dormant_tools||[]).join(" ");ie=`${ne.name} ${ne.command||""} ${(ne.args||[]).join(" ")} ${se} ${oe}`}else ie=[ne.name,ne.title,ne.description,ne.file_path||ne.path||ne.command,ne.category,ne.recent_args_summary].filter(Boolean).join(" ");return ie.toLowerCase().includes(a)});if(ve.sessionMatrixTotalCountBadge)ve.sessionMatrixTotalCountBadge.textContent=`${Y.length} item${Y.length===1?"":"s"}`;if(Y.length===0){ve.sessionContextContent.innerHTML=`
    \uD83E\uDDE0
    -

    No session elements matching "${En(a||i)}".

    +

    No session elements matching "${nn(a||i)}".

    - `;return}let j=[];Y.forEach((X)=>{let W="",J=160;if(X.kind==="skill_active"||X.kind==="skill_dormant"){let z=X.data,ne=X.kind==="skill_active",ie=z.step_indices||[],le=ie.slice(0,6),se=ie.length>6,he=z.invocation_triggers||[];J=ne?210+(ie.length>0?55:0)+(he.length>0?45:0):145,W=` -
    + `;return}if(ve.sessionMatrixSortSelect)ve.sessionMatrixSortSelect.value=nt.sessionMatrix.sort||"calls_desc";let K=nt.sessionMatrix.sort||"calls_desc",J={workspace:0,global:1,cascade:2},Z={rule:0,skill_active:1,mcp_server:2,native_tool:3,subagent:4,command:5,skill_dormant:6};Y.sort((z,ne)=>{let ie=z.data||{},se=ne.data||{};switch(K){case"last_step":{let oe=ie.last_step_idx??ie.lastStepIdx??0;return(se.last_step_idx??se.lastStepIdx??0)-oe}case"bloat_desc":{let oe=ie.tokens_est||0;return(se.tokens_est||0)-oe}case"precedence":{let oe=J[ie.scope]??(Z[z.kind]??9),he=J[se.scope]??(Z[ne.kind]??9);if(oe!==he)return oe-he;let ye=typeof ie==="string"?ie:ie.name||ie.title||"",Se=typeof se==="string"?se:se.name||se.title||"";return ye.localeCompare(Se)}case"name_asc":{let oe=typeof ie==="string"?ie:ie.name||ie.title||"",he=typeof se==="string"?se:se.name||se.title||"";return oe.localeCompare(he)}case"calls_desc":default:{let oe=ie.invoked_count??0,he=se.invoked_count??0;if(he!==oe)return he-oe;let ye=ie.last_step_idx??ie.lastStepIdx??0;return(se.last_step_idx??se.lastStepIdx??0)-ye}}});let j=[];Y.forEach((z)=>{let ne="",ie=160;if(z.kind==="skill_active"||z.kind==="skill_dormant"){let se=z.data,oe=z.kind==="skill_active",he=se.step_indices||[],ye=he.slice(0,6),Se=he.length>6,Ie=se.invocation_triggers||[];ie=oe?210+(he.length>0?55:0)+(Ie.length>0?45:0):145,ne=` +
    - ⚡ ${En(z.name)} + ⚡ ${nn(se.name)}
    - ${z.scope} - ${z.category?`${En(z.category)}`:""} - ${z.plugin_name?`\uD83E\uDDE9 ${En(z.plugin_name)}`:""} - ${ne?`⚡ ${z.invoked_count}x Active`:'\uD83D\uDCA4 Standby'} + ${se.scope} + ${se.category?`${nn(se.category)}`:""} + ${se.plugin_name?`\uD83E\uDDE9 ${nn(se.plugin_name)}`:""} + ${oe?`⚡ ${se.invoked_count}x Active`:'\uD83D\uDCA4 Standby'}
    - ${En(z.provider||"antigravity")} + ${nn(se.provider||"antigravity")}
    -

    ${En(z.description||"On-demand procedural runbook for agentic execution.")}

    +

    ${nn(se.description||"On-demand procedural runbook for agentic execution.")}

    - ⚡ ~${(z.tokens_est||0).toLocaleString()} tok - \uD83D\uDD24 ${(z.word_count||0).toLocaleString()} words - \uD83D\uDCCF ${z.line_count||0} lines - ${z.has_scripts?"\uD83D\uDEE0️ Scripts":""} - ${z.has_examples?"\uD83D\uDCA1 Examples":""} - ${z.has_references?"\uD83D\uDCDA References":""} - ${z.workspace?`\uD83D\uDCC1 ${En(z.workspace)}`:""} + ⚡ ~${(se.tokens_est||0).toLocaleString()} tok + \uD83D\uDD24 ${(se.word_count||0).toLocaleString()} words + \uD83D\uDCCF ${se.line_count||0} lines + ${se.has_scripts?"\uD83D\uDEE0️ Scripts":""} + ${se.has_examples?"\uD83D\uDCA1 Examples":""} + ${se.has_references?"\uD83D\uDCDA References":""} + ${se.workspace?`\uD83D\uDCC1 ${nn(se.workspace)}`:""}
    - ${ne&&ie.length>0?` + ${oe&&he.length>0?`
    - ⚡ Execution Steps (${ie.length}) - Span: #${z.first_step_idx} ➔ #${z.last_step_idx} + ⚡ Execution Steps (${he.length}) + Span: #${se.first_step_idx} ➔ #${se.last_step_idx}
    Steps: - ${le.map((ye)=>``).join("")} - ${se?`+${ie.length-6} more`:""} + ${ye.map((Ee)=>``).join("")} + ${Se?`+${he.length-6} more`:""}
    `:""} - ${ne&&he.length>0?` + ${oe&&Ie.length>0?`
    \uD83C\uDFAF Invocation Triggers
    - ${he.map((ye)=>`${En(ye)}`).join("")} + ${Ie.map((Ee)=>`${nn(Ee)}`).join("")}
    `:""}
    - ${En(z.file_path)} + ${nn(se.file_path)}
    - - - ${ne?` - - + + + ${oe?` + + `:""}
    - `}else if(X.kind==="mcp_server"){let z=X.data,ne=z.invoked_count>0,ie=z.active_tools||[],le=z.dormant_tools||[];J=170+ie.length*75+(r==="cascade"&&le.length>0?50:0),W=` -
    + `}else if(z.kind==="mcp_server"){let se=z.data,oe=se.invoked_count>0,he=se.active_tools||[],ye=se.dormant_tools||[];ie=170+he.length*75+(r==="cascade"&&ye.length>0?50:0),ne=` +
    - \uD83D\uDD0C ${En(z.name)} + \uD83D\uDD0C ${nn(se.name)}
    - ${z.scope} - ${ne?`⚡ ${z.invoked_count} calls`:'\uD83D\uDCA4 Dormant'} + ${se.scope} + ${oe?`⚡ ${se.invoked_count} calls`:'\uD83D\uDCA4 Dormant'}
    - ${ie.length} active tool${ie.length===1?"":"s"} + ${he.length} active tool${he.length===1?"":"s"}

    - Command: ${En(z.command||"runtime dynamic")} ${(z.args||[]).map((se)=>En(se)).join(" ")} + Command: ${nn(se.command||"runtime dynamic")} ${(se.args||[]).map((Se)=>nn(Se)).join(" ")}

    - ${ie.length>0?` + ${he.length>0?`
    - ⚡ Active Tools (${ie.length}) + ⚡ Active Tools (${he.length})
    - ${ie.map((se)=>{let he=se.step_indices||[],ye=he.slice(0,5),xe=he.length>5;return` + ${he.map((Se)=>{let Ie=Se.step_indices||[],Ee=Ie.slice(0,5),ze=Ie.length>5;return`
    - ⚡ ${En(se.name)} - ${se.invoked_count}x + ⚡ ${nn(Se.name)} + ${Se.invoked_count}x
    Steps: - ${ye.map((Ie)=>``).join("")} - ${xe?`+${he.length-5}`:""} + ${Ee.map((Me)=>``).join("")} + ${ze?`+${Ie.length-5}`:""}
    - ${se.recent_args_summary?`
    args: ${En(se.recent_args_summary)}
    `:""} + ${Se.recent_args_summary?`
    args: ${nn(Se.recent_args_summary)}
    `:""}
    `}).join("")}
    `:""} - ${r==="cascade"&&le.length>0?` + ${r==="cascade"&&ye.length>0?`
    -
    \uD83D\uDCA4 Available Uncalled Tools (${le.length}):
    +
    \uD83D\uDCA4 Available Uncalled Tools (${ye.length}):
    - ${le.map((se)=>`${En(se)}`).join("")} + ${ye.map((Se)=>`${nn(Se)}`).join("")}
    `:""}
    - `}else if(X.kind==="native_tool"){let z=X.data,ne=z.step_indices||[],ie=ne.slice(0,6),le=ne.length>6,se=z.sub_breakdown||[],he=z.name==="run_command"||z.name==="bash"||z.name==="exec"||z.name==="terminal",ye=z.name==="read_file"||z.name==="write_file"||z.name==="edit_file"||z.name==="view_file";if(he)J=240+Math.min(se.length,5)*75;else if(ye)J=180+se.length*50;else J=160+(ne.length>0?40:0);if(W=` -
    + `}else if(z.kind==="native_tool"){let se=z.data,oe=se.step_indices||[],he=oe.slice(0,6),ye=oe.length>6,Se=se.sub_breakdown||[],Ie=se.name==="run_command"||se.name==="bash"||se.name==="exec"||se.name==="terminal",Ee=se.name==="read_file"||se.name==="write_file"||se.name==="edit_file"||se.name==="view_file";if(Ie)ie=240+Math.min(Se.length,5)*75;else if(Ee)ie=180+Se.length*50;else ie=160+(oe.length>0?40:0);if(ne=` +
    - ${he?"\uD83D\uDCBB":ye?"\uD83D\uDCC1":"\uD83D\uDEE0️"} ${En(z.name)} - ${En(z.category||"Agentic")} + ${Ie?"\uD83D\uDCBB":Ee?"\uD83D\uDCC1":"\uD83D\uDEE0️"} ${nn(se.name)} + ${nn(se.category||"Agentic")}
    - ${z.invoked_count}x + ${se.invoked_count}x

    - Native agent capability executing across ${ne.length} turns in the session timeline. + Native agent capability executing across ${oe.length} turns in the session timeline.

    - `,he&&se.length>0){let xe=se.slice(0,5),Ie=se.slice(5),Ee=(Ue)=>{let Me=Ue.step_indices||[],Xe=Me.slice(0,5),je=Me.length>5,Qe=hAe(Ue.category);return` + `,Ie&&Se.length>0){let ze=Se.slice(0,5),Me=Se.slice(5),Xe=(Ye)=>{let Qe=Ye.step_indices||[],xt=Qe.slice(0,5),dt=Qe.length>5,zt=pAe(Ye.category);return`
    - ${Ytn(Ue.category)} - ${En(Ue.label)} - ${En(Ue.category||"System")} + ${Ztn(Ye.category)} + ${nn(Ye.label)} + ${nn(Ye.category||"System")}
    - ${Ue.count}x - (${Ue.percentage}%) + ${Ye.count}x + (${Ye.percentage}%)
    - ${Ue.recent_items&&Ue.recent_items.length?` -
    - Recent: ${En(Ue.recent_items[0])} + ${Ye.recent_items&&Ye.recent_items.length?` +
    + Recent: ${nn(Ye.recent_items[0])}
    `:""}
    Steps: - ${Xe.map((St)=>``).join("")} - ${je?`+${Me.length-5}`:""} + ${xt.map((Kt)=>``).join("")} + ${dt?`+${Qe.length-5}`:""}
    - `};W+=` + `};ne+=`
    - ⚡ Command Spectrum (${se.length} types) + ⚡ Command Spectrum (${Se.length} types) - ${z.invoked_count} total executions + ${se.invoked_count} total executions
    -
    - ${se.map((Ue)=>` -
    +
    + ${Se.map((Ye)=>` +
    `).join("")}
    - ${xe.map(Ee).join("")} - ${Ie.length>0?` + ${ze.map(Xe).join("")} + ${Me.length>0?` - `:""}
    - `}else if(ye&&se.length>0)W+=` + `}else if(Ee&&Se.length>0)ne+=`
    - \uD83D\uDCC1 File Types Touched (${se.length}) + \uD83D\uDCC1 File Types Touched (${Se.length})
    - ${se.map((xe)=>{let Ie=xe.step_indices||[],Ee=Ie.slice(0,3);return` + ${Se.map((ze)=>{let Me=ze.step_indices||[],Xe=Me.slice(0,3);return`
    - ${En(xe.key)} - ${xe.count}x (${xe.percentage}%) + ${nn(ze.key)} + ${ze.count}x (${ze.percentage}%)
    - ${xe.recent_items&&xe.recent_items.length?` -
    - ${En(xe.recent_items[0])} + ${ze.recent_items&&ze.recent_items.length?` +
    + ${nn(ze.recent_items[0])}
    `:""}
    Steps: - ${Ee.map((Ue)=>``).join("")} - ${Ie.length>3?`+${Ie.length-3}`:""} + ${Xe.map((Ye)=>``).join("")} + ${Me.length>3?`+${Me.length-3}`:""}
    `}).join("")}
    - `;else W+=` + `;else ne+=`
    Steps: - ${ie.map((xe)=>``).join("")} - ${le?`+${ne.length-6} more`:""} + ${he.map((ze)=>``).join("")} + ${ye?`+${oe.length-6} more`:""}
    - `;W+=` + `;ne+=`
    - - + +
    - `}else if(X.kind==="rule"){let z=X.data,ne=(z.priority||"").includes("Constitutional")||z.name.includes("constitution")||z.name.includes("101");J=165,W=` + `}else if(z.kind==="rule"){let se=z.data,oe=(se.priority||"").includes("Constitutional")||se.name.includes("constitution")||se.name.includes("101");ie=165,ne=`
    - \uD83D\uDCDC ${En(z.title||z.name)} + \uD83D\uDCDC ${nn(se.title||se.name)}
    - ${z.scope} - ${En(z.priority||"Standard")} + ${se.scope} + ${nn(se.priority||"Standard")}
    -

    ${En(z.description||"Governing guideline for agent actions.")}

    +

    ${nn(se.description||"Governing guideline for agent actions.")}

    - ⚡ ~${(z.tokens_est||0).toLocaleString()} tok - \uD83D\uDD24 ${(z.word_count||0).toLocaleString()} words - \uD83D\uDCCF ${z.line_count||0} lines + ⚡ ~${(se.tokens_est||0).toLocaleString()} tok + \uD83D\uDD24 ${(se.word_count||0).toLocaleString()} words + \uD83D\uDCCF ${se.line_count||0} lines
    - ${En(z.file_path)} + ${nn(se.file_path)}
    - - + +
    - `}else if(X.kind==="subagent"){let z=X.data;J=130,W=` + `}else if(z.kind==="subagent"){let se=z.data;ie=130,ne=`
    @@ -5560,13 +5747,13 @@ ${JSON.stringify(y.args,null,2)}

    - ${En(z)} + ${nn(se)}

    Autonomous worker thread spawned with specialized instructions.
    - `}else if(X.kind==="command"){let z=X.data;J=130,W=` + `}else if(z.kind==="command"){let se=z.data;ie=130,ne=`
    @@ -5575,10 +5762,10 @@ ${JSON.stringify(y.args,null,2)}

    - ${En(z)} + ${nn(se)}

    Interactive slash workflow shortcut executed during session.
    - `}if(W)j.push({html:W,weight:J})});let te=Ae.sessionContextContent.clientWidth||window.innerWidth;Ae.sessionContextContent.innerHTML=crn(j,te),Ae.sessionContextContent.querySelectorAll(".step-marker-pill[data-step]").forEach((X)=>{X.onclick=(W)=>{W.stopPropagation(),Ogt(parseInt(X.dataset.step,10))}}),Ae.sessionContextContent.querySelectorAll(".inspect-agent-file-btn").forEach((X)=>{X.onclick=(W)=>{W.stopPropagation(),lM(X.dataset.path)}}),Ae.sessionContextContent.querySelectorAll(".copy-agent-path-btn").forEach((X)=>{X.onclick=(W)=>{W.stopPropagation(),copyToClipboard(X.dataset.path,"Path copied to clipboard!")}}),Ae.sessionContextContent.querySelectorAll(".sub-command-toggle-btn").forEach((X)=>{X.onclick=(W)=>{W.stopPropagation();let z=X.closest(".sub-command-matrix")?.querySelector(".sub-command-overflow");if(z){let ne=z.style.display==="none";z.style.display=ne?"flex":"none";let ie=X.dataset.count,le=X.dataset.overflow;X.innerHTML=ne?"\uD83D\uDD3C Collapse to top 5 commands":`✨ Show all ${ie} command types (+${le} more)`}}})}window.openDiagramTheater=kgt;window.closeDiagramTheater=Agt;window.openFileViewer=lM;window.closeFileViewer=Rgt;window.openFileFindWidget=Igt;window.closeFileFindWidget=cle;window.executeFileFind=fle;window.goToNextFindMatch=dAe;window.goToPrevFindMatch=fAe;window.openSessionFilesModal=lrn;window.closeSessionFilesModal=dle;window.openAgentBrainModal=Ggt;window.closeAgentMatrixModal=zgt;window.openSessionContextModal=urn;window.closeSessionContextModal=gAe;window.renderSessionMatrix=zI;window.jumpToTimelineStep=Ogt;window.loadSessionDetail=Lgt; + `}if(ne)j.push({html:ne,weight:ie})});let ee=ve.sessionContextContent.clientWidth||window.innerWidth;ve.sessionContextContent.innerHTML=Wgt(j,ee),ve.sessionContextContent.querySelectorAll(".step-marker-pill[data-step]").forEach((z)=>{z.onclick=(ne)=>{ne.stopPropagation(),ple(parseInt(z.dataset.step,10))}}),ve.sessionContextContent.querySelectorAll(".inspect-agent-file-btn").forEach((z)=>{z.onclick=(ne)=>{ne.stopPropagation(),uM(z.dataset.path)}}),ve.sessionContextContent.querySelectorAll(".copy-agent-path-btn").forEach((z)=>{z.onclick=(ne)=>{ne.stopPropagation(),copyToClipboard(z.dataset.path,"Path copied to clipboard!")}}),ve.sessionContextContent.querySelectorAll(".sub-command-toggle-btn").forEach((z)=>{z.onclick=(ne)=>{ne.stopPropagation();let se=z.closest(".sub-command-matrix")?.querySelector(".sub-command-overflow");if(se){let oe=se.style.display==="none";se.style.display=oe?"flex":"none";let he=z.dataset.count,ye=z.dataset.overflow;z.innerHTML=oe?"\uD83D\uDD3C Collapse to top 5 commands":`✨ Show all ${he} command types (+${ye} more)`}}})}window.openDiagramTheater=Ogt;window.closeDiagramTheater=Ngt;window.openFileViewer=uM;window.closeFileViewer=Lgt;window.openFileFindWidget=Mgt;window.closeFileFindWidget=dle;window.executeFileFind=mle;window.goToNextFindMatch=gAe;window.goToPrevFindMatch=mAe;window.openSessionFilesModal=grn;window.closeSessionFilesModal=RW;window.renderSessionFilesMatrix=lA;window.openAgentBrainModal=qgt;window.closeAgentMatrixModal=Ygt;window.openSessionContextModal=mrn;window.closeSessionContextModal=yAe;window.renderSessionMatrix=cA;window.jumpToTimelineStep=ple;window.loadSessionDetail=Pgt; diff --git a/tools/session-explorer/src/web/dist/index.html b/tools/session-explorer/src/web/dist/index.html index 77ce643..00d3992 100644 --- a/tools/session-explorer/src/web/dist/index.html +++ b/tools/session-explorer/src/web/dist/index.html @@ -99,8 +99,9 @@
    Sort: + + + + + + + + +
    + +
    + + +
    + + + + + +
    + + +
    +
    + ✨ Deliverables: + 0 deliverables +
    +
    + ✏️ Code Mutations: + 0 files (0 edits) +
    +
    + 👁️ Inspected Files: + 0 files (0 reads) +
    +
    + 🎯 Blast Radius: + 0 directories +
    +
    + 📈 Read/Write Ratio: + 0.0x +
    +
    + + + @@ -480,6 +585,15 @@

    📁 Workspace

    +
    + ⇅ + +
    +
    + ⇅ + +
    + + +
    + + + + + +
    + + +
    +
    + ✨ Deliverables: + 0 deliverables +
    +
    + ✏️ Code Mutations: + 0 files (0 edits) +
    +
    + 👁️ Inspected Files: + 0 files (0 reads) +
    +
    + 🎯 Blast Radius: + 0 directories +
    +
    + 📈 Read/Write Ratio: + 0.0x +
    +
    + + + @@ -480,6 +585,15 @@

    📁 Workspace

    +
    + ⇅ + +
    +
    + ⇅ + +