");
hasCode = true;
@@ -115,7 +115,7 @@ private static int CountIndentation(StringSlice slice)
protected override void Write(HtmlRenderer renderer, EnhancedCodeBlock block)
{
- if (block is AppliesToDirective appliesToDirective)
+ if (block is AppliesToCodeBlock appliesToDirective)
{
RenderAppliesToHtml(renderer, appliesToDirective);
return;
@@ -229,9 +229,9 @@ protected override void Write(HtmlRenderer renderer, EnhancedCodeBlock block)
}
[SuppressMessage("Reliability", "CA2012:Use ValueTasks correctly")]
- private static void RenderAppliesToHtml(HtmlRenderer renderer, AppliesToDirective appliesToDirective)
+ private static void RenderAppliesToHtml(HtmlRenderer renderer, AppliesToCodeBlock appliesToCodeBlock)
{
- var appliesTo = appliesToDirective.AppliesTo;
+ var appliesTo = appliesToCodeBlock.AppliesTo;
var slice = ApplicableToDirective.Create(appliesTo);
if (appliesTo is null || appliesTo == FrontMatter.ApplicableTo.All)
return;
diff --git a/src/Elastic.Markdown/Myst/CodeBlocks/EnhancedCodeBlockParser.cs b/src/Elastic.Markdown/Myst/CodeBlocks/EnhancedCodeBlockParser.cs
index 6269e3459..243c596e9 100644
--- a/src/Elastic.Markdown/Myst/CodeBlocks/EnhancedCodeBlockParser.cs
+++ b/src/Elastic.Markdown/Myst/CodeBlocks/EnhancedCodeBlockParser.cs
@@ -34,7 +34,7 @@ protected override EnhancedCodeBlock CreateFencedBlock(BlockProcessor processor)
var lineSpan = processor.Line.AsSpan();
var codeBlock = lineSpan.IndexOf("{applies_to}") > -1
- ? new AppliesToDirective(this, context)
+ ? new AppliesToCodeBlock(this, context)
{
IndentCount = processor.Indent
}
@@ -110,7 +110,7 @@ public override bool Close(BlockProcessor processor, Block block)
if (lines.Lines is null)
return base.Close(processor, block);
- if (codeBlock is not AppliesToDirective appliesToDirective)
+ if (codeBlock is not AppliesToCodeBlock appliesToDirective)
ProcessCodeBlock(lines, language, codeBlock, context);
else
ProcessAppliesToDirective(appliesToDirective, lines);
@@ -118,23 +118,23 @@ public override bool Close(BlockProcessor processor, Block block)
return base.Close(processor, block);
}
- private static void ProcessAppliesToDirective(AppliesToDirective appliesToDirective, StringLineGroup lines)
+ private static void ProcessAppliesToDirective(AppliesToCodeBlock appliesToCodeBlock, StringLineGroup lines)
{
var yaml = lines.ToSlice().AsSpan().ToString();
try
{
var applicableTo = YamlSerialization.Deserialize(yaml);
- appliesToDirective.AppliesTo = applicableTo;
- if (appliesToDirective.AppliesTo.Warnings is null)
+ appliesToCodeBlock.AppliesTo = applicableTo;
+ if (appliesToCodeBlock.AppliesTo.Warnings is null)
return;
- foreach (var warning in appliesToDirective.AppliesTo.Warnings)
- appliesToDirective.EmitWarning(warning);
+ foreach (var warning in appliesToCodeBlock.AppliesTo.Warnings)
+ appliesToCodeBlock.EmitWarning(warning);
applicableTo.Warnings = null;
}
catch (Exception e)
{
- appliesToDirective.EmitError($"Unable to parse applies_to directive: {yaml}", e);
+ appliesToCodeBlock.EmitError($"Unable to parse applies_to directive: {yaml}", e);
}
}
diff --git a/src/Elastic.Markdown/Myst/CodeBlocks/SupportedLanguages.cs b/src/Elastic.Markdown/Myst/CodeBlocks/SupportedLanguages.cs
index 4bca40a69..4ab170b06 100644
--- a/src/Elastic.Markdown/Myst/CodeBlocks/SupportedLanguages.cs
+++ b/src/Elastic.Markdown/Myst/CodeBlocks/SupportedLanguages.cs
@@ -27,6 +27,7 @@ public static class CodeBlock
{ "javascript", "js, jsx" }, // JavaScript
{ "json", "jsonc" }, // JSON
{ "kotlin", "kt" }, // Kotlin
+ { "mermaid", ""},
{ "markdown", "md, mkdown, mkd" }, // Markdown
{ "nginx", "nginxconf" }, // Nginx
{ "php", "" }, // PHP
diff --git a/src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs b/src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs
index b2a3cf803..9a5d37a40 100644
--- a/src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs
+++ b/src/Elastic.Markdown/Myst/Directives/DirectiveBlockParser.cs
@@ -46,7 +46,6 @@ public DirectiveBlockParser()
{ "grid", 26 },
{ "grid-item-card", 26 },
{ "card", 25 },
- { "mermaid", 20 },
{ "aside", 4 },
{ "margin", 4 },
{ "sidebar", 4 },
@@ -92,12 +91,6 @@ protected override DirectiveBlock CreateFencedBlock(BlockProcessor processor)
if (info.IndexOf("{figure-md}") > 0)
return new FigureBlock(this, context);
- // this is currently listed as unsupported
- // leaving the parsing in until we are confident we don't want this
- // for dev-docs
- if (info.IndexOf("{mermaid}") > 0)
- return new MermaidBlock(this, context);
-
if (info.IndexOf("{include}") > 0)
return new IncludeBlock(this, context);
diff --git a/src/Elastic.Markdown/Myst/Directives/DirectiveHtmlRenderer.cs b/src/Elastic.Markdown/Myst/Directives/DirectiveHtmlRenderer.cs
index 6721ac15a..d0bc0d327 100644
--- a/src/Elastic.Markdown/Myst/Directives/DirectiveHtmlRenderer.cs
+++ b/src/Elastic.Markdown/Myst/Directives/DirectiveHtmlRenderer.cs
@@ -29,9 +29,6 @@ protected override void Write(HtmlRenderer renderer, DirectiveBlock directiveBlo
switch (directiveBlock)
{
- case MermaidBlock mermaidBlock:
- WriteMermaid(renderer, mermaidBlock);
- return;
case FigureBlock imageBlock:
WriteFigure(renderer, imageBlock);
return;
@@ -206,12 +203,6 @@ private static void WriteTabItem(HtmlRenderer renderer, TabItemBlock block)
RenderRazorSlice(slice, renderer);
}
- private static void WriteMermaid(HtmlRenderer renderer, MermaidBlock block)
- {
- var slice = Mermaid.Create(new MermaidViewModel { DirectiveBlock = block });
- RenderRazorSliceRawContent(slice, renderer, block);
- }
-
private static void WriteLiteralIncludeBlock(HtmlRenderer renderer, IncludeBlock block)
{
if (!block.Found || block.IncludePath is null)
@@ -289,71 +280,7 @@ private static void WriteSettingsBlock(HtmlRenderer renderer, SettingsBlock bloc
}
[SuppressMessage("Reliability", "CA2012:Use ValueTasks correctly")]
- private static void RenderRazorSlice(RazorSlice slice, HtmlRenderer renderer) => slice.RenderAsync(renderer.Writer).GetAwaiter().GetResult();
-
- [SuppressMessage("Reliability", "CA2012:Use ValueTasks correctly")]
- private static void RenderRazorSliceRawContent(RazorSlice slice, HtmlRenderer renderer, DirectiveBlock obj)
- where T : DirectiveViewModel
- {
- var html = slice.RenderAsync().GetAwaiter().GetResult();
- var blocks = html.Split("[CONTENT]", 2, StringSplitOptions.RemoveEmptyEntries);
- _ = renderer.Write(blocks[0]);
- foreach (var o in obj)
- Render(o);
-
- _ = renderer.Write(blocks[1]);
-
- void RenderLeaf(LeafBlock p)
- {
- _ = renderer.WriteLeafRawLines(p, true, false, false);
- renderer.EnableHtmlForInline = false;
- foreach (var oo in p.Inline ?? [])
- {
- if (oo is SubstitutionLeaf sl)
- _ = renderer.Write(sl.Replacement);
- else if (oo is LiteralInline li)
- renderer.Write(li);
- else if (oo is LineBreakInline)
- _ = renderer.WriteLine();
- else if (oo is Role r)
- {
- _ = renderer.Write(new string(r.DelimiterChar, r.DelimiterCount));
- renderer.WriteChildren(r);
- }
-
- else
- _ = renderer.Write($"(LeafBlock: {oo.GetType().Name}");
- }
-
- renderer.EnableHtmlForInline = true;
- }
+ private static void RenderRazorSlice(RazorSlice slice, HtmlRenderer renderer) =>
+ slice.RenderAsync(renderer.Writer).GetAwaiter().GetResult();
- void RenderListBlock(ListBlock l)
- {
- foreach (var bb in l)
- {
- if (bb is LeafBlock lbi)
- RenderLeaf(lbi);
- else if (bb is ListItemBlock ll)
- {
- _ = renderer.Write(ll.TriviaBefore);
- _ = renderer.Write("-");
- foreach (var lll in ll)
- Render(lll);
- }
- else
- _ = renderer.Write($"(ListBlock: {l.GetType().Name}");
- }
- }
-
- void Render(Block o)
- {
- if (o is LeafBlock p)
- RenderLeaf(p);
- else if (o is ListBlock l)
- RenderListBlock(l);
- else
- _ = renderer.Write($"(Block: {o.GetType().Name}");
- }
- }
}
diff --git a/src/Elastic.Markdown/Myst/Directives/MermaidBlock.cs b/src/Elastic.Markdown/Myst/Directives/MermaidBlock.cs
deleted file mode 100644
index 92ff65313..000000000
--- a/src/Elastic.Markdown/Myst/Directives/MermaidBlock.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information
-namespace Elastic.Markdown.Myst.Directives;
-
-public class MermaidBlock(DirectiveBlockParser parser, ParserContext context) : DirectiveBlock(parser, context)
-{
- public override string Directive => "mermaid";
-
- public override void FinalizeAndValidate(ParserContext context)
- {
- }
-}
diff --git a/src/Elastic.Markdown/Slices/Directives/Code.cshtml b/src/Elastic.Markdown/Slices/Directives/Code.cshtml
index 5178bc778..cd8389727 100644
--- a/src/Elastic.Markdown/Slices/Directives/Code.cshtml
+++ b/src/Elastic.Markdown/Slices/Directives/Code.cshtml
@@ -1,13 +1,22 @@
@inherits RazorSlice
-
-
- @if (!string.IsNullOrEmpty(Model.Caption))
- {
-
- @Model.Caption
- ¶
-
- }
- @if (!string.IsNullOrEmpty(Model.ApiCallHeader)) { @Model.ApiCallHeader
}@(Model.RenderBlock())
+@if (Model.Language == "mermaid")
+{
+
+%%{init: {'theme': 'base', 'themeVariables': { 'fontSize': '1em'}}}%%
+ @(Model.RenderBlock())
+
+}
+else {
+
+
+ @if (!string.IsNullOrEmpty(Model.Caption))
+ {
+
+ @Model.Caption
+ ¶
+
+ }
+ @if (!string.IsNullOrEmpty(Model.ApiCallHeader)) { @Model.ApiCallHeader
}@(Model.RenderBlock())
+
-
+}
diff --git a/src/Elastic.Markdown/Slices/Directives/Mermaid.cshtml b/src/Elastic.Markdown/Slices/Directives/Mermaid.cshtml
deleted file mode 100644
index dd908b1b3..000000000
--- a/src/Elastic.Markdown/Slices/Directives/Mermaid.cshtml
+++ /dev/null
@@ -1,4 +0,0 @@
-@inherits RazorSlice
-
- [CONTENT]
-
\ No newline at end of file
diff --git a/src/Elastic.Markdown/Slices/Directives/_ViewModels.cs b/src/Elastic.Markdown/Slices/Directives/_ViewModels.cs
index 9680d896b..6f5a680f4 100644
--- a/src/Elastic.Markdown/Slices/Directives/_ViewModels.cs
+++ b/src/Elastic.Markdown/Slices/Directives/_ViewModels.cs
@@ -122,8 +122,6 @@ public class SettingsViewModel
public required Func RenderMarkdown { get; init; }
}
-public class MermaidViewModel : DirectiveViewModel;
-
public class StepperViewModel : DirectiveViewModel;
public class StepViewModel : DirectiveViewModel
diff --git a/src/Elastic.Markdown/Slices/Layout/_Scripts.cshtml b/src/Elastic.Markdown/Slices/Layout/_Scripts.cshtml
deleted file mode 100644
index 1d625db25..000000000
--- a/src/Elastic.Markdown/Slices/Layout/_Scripts.cshtml
+++ /dev/null
@@ -1,21 +0,0 @@
-@inherits RazorSlice
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/Elastic.Markdown/Slices/_Layout.cshtml b/src/Elastic.Markdown/Slices/_Layout.cshtml
index 0838d11c0..0913ece89 100644
--- a/src/Elastic.Markdown/Slices/_Layout.cshtml
+++ b/src/Elastic.Markdown/Slices/_Layout.cshtml
@@ -48,6 +48,11 @@
@await RenderBodyAsync()
+ @if (Model.CurrentDocument.HasMermaidBlock)
+ {
+
+
+ }
@await RenderPartialAsync(_PrevNextNav.Create(Model))
diff --git a/src/Elastic.Markdown/_static/mermaid.js b/src/Elastic.Markdown/_static/mermaid.js
new file mode 100644
index 000000000..ac509ac2e
--- /dev/null
+++ b/src/Elastic.Markdown/_static/mermaid.js
@@ -0,0 +1,2 @@
+!function(){var i=function(){mermaid.initialize({startOnLoad:!1,theme:"base",themeVariables:{fontFamily:"inherit",altFontFamily:"inherit",fontSize:"0.875em"},fontFamily:"inherit",altFontFamily:"inherit",sequence:{actorFontFamily:"inherit",noteFontFamily:"inherit",messageFontFamily:"inherit"},journey:{taskFontFamily:"inherit"}}),mermaid.run({nodes:document.querySelectorAll(".mermaid")})};document.addEventListener("htmx:load",function(){i()})}();
+//# sourceMappingURL=mermaid.js.map
diff --git a/src/Elastic.Markdown/_static/mermaid.js.map b/src/Elastic.Markdown/_static/mermaid.js.map
new file mode 100644
index 000000000..3f032a0f3
--- /dev/null
+++ b/src/Elastic.Markdown/_static/mermaid.js.map
@@ -0,0 +1 @@
+{"mappings":"C,A,WCAA,IAAI,EAAoB,WACpB,QAAQ,UAAU,CAAC,CACf,YAAa,CAAA,EAAO,MAAO,OAC3B,eAAgB,CACZ,WAAY,UACZ,cAAe,UACf,SAAU,SACd,EACA,WAAY,UAAW,cAAe,UACtC,SAAY,CACR,gBAAmB,UACnB,eAAkB,UAClB,kBAAqB,SACzB,EACA,QAAW,CACP,eAAkB,SACtB,CACJ,GACA,QAAQ,GAAG,CAAC,CACR,MAAO,SAAS,gBAAgB,CAAC,WACrC,EACJ,EAEA,SAAS,gBAAgB,CAAC,YAAa,WACnC,GACJ,E","sources":["","Assets/mermaid.js"],"sourcesContent":["(function () {\nvar $c5aff1012d4e5656$var$mermaidInitialize = function() {\n mermaid.initialize({\n startOnLoad: false,\n theme: 'base',\n themeVariables: {\n fontFamily: 'inherit',\n altFontFamily: 'inherit',\n fontSize: '0.875em'\n },\n fontFamily: 'inherit',\n altFontFamily: 'inherit',\n \"sequence\": {\n \"actorFontFamily\": \"inherit\",\n \"noteFontFamily\": \"inherit\",\n \"messageFontFamily\": \"inherit\"\n },\n \"journey\": {\n \"taskFontFamily\": \"inherit\"\n }\n });\n mermaid.run({\n nodes: document.querySelectorAll('.mermaid')\n });\n};\ndocument.addEventListener('htmx:load', function() {\n $c5aff1012d4e5656$var$mermaidInitialize();\n});\n\n})();\n//# sourceMappingURL=mermaid.js.map\n","var mermaidInitialize = function () {\n mermaid.initialize({\n startOnLoad: false, theme: 'base',\n themeVariables: {\n fontFamily: 'inherit',\n altFontFamily: 'inherit',\n fontSize: '0.875em',\n },\n fontFamily: 'inherit', altFontFamily: 'inherit',\n \"sequence\": {\n \"actorFontFamily\": \"inherit\",\n \"noteFontFamily\": \"inherit\",\n \"messageFontFamily\": \"inherit\"\n },\n \"journey\": {\n \"taskFontFamily\": \"inherit\"\n }\n });\n mermaid.run({\n nodes: document.querySelectorAll('.mermaid'),\n });\n}\n\ndocument.addEventListener('htmx:load', function () {\n mermaidInitialize()\n})\n"],"names":["$c5aff1012d4e5656$var$mermaidInitialize","mermaid","initialize","startOnLoad","theme","themeVariables","fontFamily","altFontFamily","fontSize","run","nodes","document","querySelectorAll","addEventListener"],"version":3,"file":"mermaid.js.map"}
\ No newline at end of file
diff --git a/src/Elastic.Markdown/_static/mermaid.tiny.js b/src/Elastic.Markdown/_static/mermaid.tiny.js
new file mode 100644
index 000000000..93676db60
--- /dev/null
+++ b/src/Elastic.Markdown/_static/mermaid.tiny.js
@@ -0,0 +1,1995 @@
+"use strict";var __esbuild_esm_mermaid_nm;(__esbuild_esm_mermaid_nm||={}).mermaid=(()=>{var wot=Object.create;var Fm=Object.defineProperty;var Eot=Object.getOwnPropertyDescriptor;var vot=Object.getOwnPropertyNames;var Aot=Object.getPrototypeOf,Lot=Object.prototype.hasOwnProperty;var a=(e,t)=>Fm(e,"name",{value:t,configurable:!0});var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var bs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Be=(e,t)=>{for(var r in t)Fm(e,r,{get:t[r],enumerable:!0})},qy=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of vot(t))!Lot.call(e,i)&&i!==r&&Fm(e,i,{get:()=>t[i],enumerable:!(n=Eot(t,i))||n.enumerable});return e},je=(e,t,r)=>(qy(e,t,"default"),r&&qy(r,t,"default")),Ki=(e,t,r)=>(r=e!=null?wot(Aot(e)):{},qy(t||!e||!e.__esModule?Fm(r,"default",{value:e,enumerable:!0}):r,e)),Rot=e=>qy(Fm({},"__esModule",{value:!0}),e);var Hy=bs((lC,cC)=>{"use strict";(function(e,t){typeof lC=="object"&&typeof cC<"u"?cC.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(lC,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",s="minute",o="hour",l="day",u="week",h="month",f="quarter",d="year",p="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:a(function(v){var R=["th","st","nd","rd"],B=v%100;return"["+v+(R[(B-20)%10]||R[B]||R[0])+"]"},"ordinal")},k=a(function(v,R,B){var I=String(v);return!I||I.length>=R?v:""+Array(R+1-I.length).join(B)+v},"m"),T={s:k,z:a(function(v){var R=-v.utcOffset(),B=Math.abs(R),I=Math.floor(B/60),M=B%60;return(R<=0?"+":"-")+k(I,2,"0")+":"+k(M,2,"0")},"z"),m:a(function v(R,B){if(R.date()1)return v(N[0])}else{var E=R.name;L[E]=R,M=E}return!I&&M&&(_=M),M||!I&&_},"t"),w=a(function(v,R){if(D(v))return v.clone();var B=typeof R=="object"?R:{};return B.date=v,B.args=arguments,new F(B)},"O"),A=T;A.l=$,A.i=D,A.w=function(v,R){return w(v,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var F=function(){function v(B){this.$L=$(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[C]=!0}a(v,"M");var R=v.prototype;return R.parse=function(B){this.$d=function(I){var M=I.date,O=I.utc;if(M===null)return new Date(NaN);if(A.u(M))return new Date;if(M instanceof Date)return new Date(M);if(typeof M=="string"&&!/Z$/i.test(M)){var N=M.match(g);if(N){var E=N[2]-1||0,V=(N[7]||"0").substring(0,3);return O?new Date(Date.UTC(N[1],E,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)):new Date(N[1],E,N[3]||1,N[4]||0,N[5]||0,N[6]||0,V)}}return new Date(M)}(B),this.init()},R.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},R.$utils=function(){return A},R.isValid=function(){return this.$d.toString()!==m},R.isSame=function(B,I){var M=w(B);return this.startOf(I)<=M&&M<=this.endOf(I)},R.isAfter=function(B,I){return w(B){"use strict";t7=Ki(Hy(),1),Yo={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},P={trace:a((...e)=>{},"trace"),debug:a((...e)=>{},"debug"),info:a((...e)=>{},"info"),warn:a((...e)=>{},"warn"),error:a((...e)=>{},"error"),fatal:a((...e)=>{},"fatal")},$m=a(function(e="fatal"){let t=Yo.fatal;typeof e=="string"?e.toLowerCase()in Yo&&(t=Yo[e]):typeof e=="number"&&(t=e),P.trace=()=>{},P.debug=()=>{},P.info=()=>{},P.warn=()=>{},P.error=()=>{},P.fatal=()=>{},t<=Yo.fatal&&(P.fatal=console.error?console.error.bind(console,$s("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$s("FATAL"))),t<=Yo.error&&(P.error=console.error?console.error.bind(console,$s("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$s("ERROR"))),t<=Yo.warn&&(P.warn=console.warn?console.warn.bind(console,$s("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$s("WARN"))),t<=Yo.info&&(P.info=console.info?console.info.bind(console,$s("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$s("INFO"))),t<=Yo.debug&&(P.debug=console.debug?console.debug.bind(console,$s("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$s("DEBUG"))),t<=Yo.trace&&(P.trace=console.debug?console.debug.bind(console,$s("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$s("TRACE")))},"setLogLevel"),$s=a(e=>`%c${(0,t7.default)().format("ss.SSS")} : ${e} : `,"format")});var Dot,Hh,uC,e7,Yy=x(()=>{"use strict";Dot=Object.freeze({left:0,top:0,width:16,height:16}),Hh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),uC=Object.freeze({...Dot,...Hh}),e7=Object.freeze({...uC,body:"",hidden:!1})});var Iot,r7,n7=x(()=>{"use strict";Yy();Iot=Object.freeze({width:null,height:null}),r7=Object.freeze({...Iot,...Hh})});var hC,Xy,i7=x(()=>{"use strict";hC=a((e,t,r,n="")=>{let i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let l=i.pop(),u=i.pop(),h={provider:i.length>0?i[0]:n,prefix:u,name:l};return t&&!Xy(h)?null:h}let s=i[0],o=s.split("-");if(o.length>1){let l={provider:n,prefix:o.shift(),name:o.join("-")};return t&&!Xy(l)?null:l}if(r&&n===""){let l={provider:n,prefix:"",name:s};return t&&!Xy(l,r)?null:l}return null},"stringToIcon"),Xy=a((e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1,"validateIconName")});function s7(e,t){let r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);let n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}var a7=x(()=>{"use strict";a(s7,"mergeIconTransformations")});function fC(e,t){let r=s7(e,t);for(let n in e7)n in Hh?n in e&&!(n in r)&&(r[n]=Hh[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}var o7=x(()=>{"use strict";Yy();a7();a(fC,"mergeIconData")});function l7(e,t){let r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function s(o){if(r[o])return i[o]=[];if(!(o in i)){i[o]=null;let l=n[o]&&n[o].parent,u=l&&s(l);u&&(i[o]=[l].concat(u))}return i[o]}return a(s,"resolve"),(t||Object.keys(r).concat(Object.keys(n))).forEach(s),i}var c7=x(()=>{"use strict";a(l7,"getIconsTree")});function u7(e,t,r){let n=e.icons,i=e.aliases||Object.create(null),s={};function o(l){s=fC(n[l]||i[l],s)}return a(o,"parse"),o(t),r.forEach(o),fC(e,s)}function dC(e,t){if(e.icons[t])return u7(e,t,[]);let r=l7(e,[t])[t];return r?u7(e,t,r):null}var h7=x(()=>{"use strict";o7();c7();a(u7,"internalGetIconData");a(dC,"getIconData")});function pC(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;let n=e.split(Not);if(n===null||!n.length)return e;let i=[],s=n.shift(),o=Mot.test(s);for(;;){if(o){let l=parseFloat(s);isNaN(l)?i.push(s):i.push(Math.ceil(l*t*r)/r)}else i.push(s);if(s=n.shift(),s===void 0)return i.join("");o=!o}}var Not,Mot,f7=x(()=>{"use strict";Not=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Mot=/^-?[0-9.]*[0-9]+[0-9.]*$/g;a(pC,"calculateSize")});function Oot(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;n>=0;){let i=e.indexOf(">",n),s=e.indexOf(""+t);if(i===-1||s===-1)break;let o=e.indexOf(">",s);if(o===-1)break;r+=e.slice(i+1,s).trim(),e=e.slice(0,n).trim()+e.slice(o+1)}return{defs:r,content:e}}function Pot(e,t){return e?""+e+" "+t:t}function d7(e,t,r){let n=Oot(e);return Pot(n.defs,t+n.content+r)}var p7=x(()=>{"use strict";a(Oot,"splitSVGDefs");a(Pot,"mergeDefsAndContent");a(d7,"wrapSVGContent")});function mC(e,t){let r={...uC,...e},n={...r7,...t},i={left:r.left,top:r.top,width:r.width,height:r.height},s=r.body;[r,n].forEach(y=>{let b=[],k=y.hFlip,T=y.vFlip,_=y.rotate;k?T?_+=2:(b.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),b.push("scale(-1 1)"),i.top=i.left=0):T&&(b.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),b.push("scale(1 -1)"),i.top=i.left=0);let L;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:L=i.height/2+i.top,b.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:b.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:L=i.width/2+i.left,b.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}_%2===1&&(i.left!==i.top&&(L=i.left,i.left=i.top,i.top=L),i.width!==i.height&&(L=i.width,i.width=i.height,i.height=L)),b.length&&(s=d7(s,''," "))});let o=n.width,l=n.height,u=i.width,h=i.height,f,d;o===null?(d=l===null?"1em":l==="auto"?h:l,f=pC(d,u/h)):(f=o==="auto"?u:o,d=l===null?pC(f,h/u):l==="auto"?h:l);let p={},m=a((y,b)=>{Bot(b)||(p[y]=b.toString())},"setAttr");m("width",f),m("height",d);let g=[i.left,i.top,u,h];return p.viewBox=g.join(" "),{attributes:p,viewBox:g,body:s}}var Bot,m7=x(()=>{"use strict";Yy();n7();f7();p7();Bot=a(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");a(mC,"iconToSVG")});function gC(e,t=$ot){let r=[],n;for(;n=Fot.exec(e);)r.push(n[1]);if(!r.length)return e;let i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(s=>{let o=typeof t=="function"?t(s):t+(Got++).toString(),l=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}var Fot,$ot,Got,g7=x(()=>{"use strict";Fot=/\sid="(\S+)"/g,$ot="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),Got=0;a(gC,"replaceIDs")});function yC(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in t)r+=" "+n+'="'+t[n]+'"';return'"}var y7=x(()=>{"use strict";a(yC,"iconToHTML")});var b7=bs((PNt,x7)=>{"use strict";var Yh=1e3,Xh=Yh*60,Kh=Xh*60,lu=Kh*24,Vot=lu*7,zot=lu*365.25;x7.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Wot(e);if(r==="number"&&isFinite(e))return t.long?jot(e):Uot(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Wot(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*zot;case"weeks":case"week":case"w":return r*Vot;case"days":case"day":case"d":return r*lu;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Kh;case"minutes":case"minute":case"mins":case"min":case"m":return r*Xh;case"seconds":case"second":case"secs":case"sec":case"s":return r*Yh;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}a(Wot,"parse");function Uot(e){var t=Math.abs(e);return t>=lu?Math.round(e/lu)+"d":t>=Kh?Math.round(e/Kh)+"h":t>=Xh?Math.round(e/Xh)+"m":t>=Yh?Math.round(e/Yh)+"s":e+"ms"}a(Uot,"fmtShort");function jot(e){var t=Math.abs(e);return t>=lu?Ky(e,t,lu,"day"):t>=Kh?Ky(e,t,Kh,"hour"):t>=Xh?Ky(e,t,Xh,"minute"):t>=Yh?Ky(e,t,Yh,"second"):e+" ms"}a(jot,"fmtLong");function Ky(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}a(Ky,"plural")});var T7=bs((FNt,k7)=>{"use strict";function qot(e){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=i,r.enabled=l,r.humanize=b7(),r.destroy=h,Object.keys(e).forEach(f=>{r[f]=e[f]}),r.names=[],r.skips=[],r.formatters={};function t(f){let d=0;for(let p=0;p{if(D==="%%")return"%";L++;let w=r.formatters[$];if(typeof w=="function"){let A=b[L];D=w.call(k,A),b.splice(L,1),L--}return D}),r.formatArgs.call(k,b),(k.log||r.log).apply(k,b)}return a(y,"debug"),y.namespace=f,y.useColors=r.useColors(),y.color=r.selectColor(f),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:a(()=>p!==null?p:(m!==r.namespaces&&(m=r.namespaces,g=r.enabled(f)),g),"get"),set:a(b=>{p=b},"set")}),typeof r.init=="function"&&r.init(y),y}a(r,"createDebug");function n(f,d){let p=r(this.namespace+(typeof d>"u"?":":d)+f);return p.log=this.log,p}a(n,"extend");function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let d=(typeof f=="string"?f:"").trim().replace(" ",",").split(",").filter(Boolean);for(let p of d)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}a(i,"enable");function s(f,d){let p=0,m=0,g=-1,y=0;for(;p"-"+d)].join(",");return r.enable(""),f}a(o,"disable");function l(f){for(let d of r.skips)if(s(f,d))return!1;for(let d of r.names)if(s(f,d))return!0;return!1}a(l,"enabled");function u(f){return f instanceof Error?f.stack||f.message:f}a(u,"coerce");function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return a(h,"destroy"),r.enable(r.load()),r}a(qot,"setup");k7.exports=qot});var S7=bs((ks,Qy)=>{"use strict";ks.formatArgs=Yot;ks.save=Xot;ks.load=Kot;ks.useColors=Hot;ks.storage=Qot();ks.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();ks.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Hot(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}a(Hot,"useColors");function Yot(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Qy.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}a(Yot,"formatArgs");ks.log=console.debug||console.log||(()=>{});function Xot(e){try{e?ks.storage.setItem("debug",e):ks.storage.removeItem("debug")}catch{}}a(Xot,"save");function Kot(){let e;try{e=ks.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}a(Kot,"load");function Qot(){try{return localStorage}catch{}}a(Qot,"localstorage");Qy.exports=T7()(ks);var{formatters:Zot}=Qy.exports;Zot.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var zNt,_7=x(()=>{"use strict";i7();h7();m7();g7();y7();zNt=Ki(S7(),1)});var Jot,xC,C7,w7,tlt,Fl,Qh=x(()=>{"use strict";zt();_7();Jot={body:'? ',height:80,width:80},xC=new Map,C7=new Map,w7=a(e=>{for(let t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(P.debug("Registering icon pack:",t.name),"loader"in t)C7.set(t.name,t.loader);else if("icons"in t)xC.set(t.name,t.icons);else throw P.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),tlt=a(async(e,t)=>{let r=hC(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);let n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=xC.get(n);if(!i){let o=C7.get(n);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await o(),prefix:n},xC.set(n,i)}catch(l){throw P.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}let s=dC(i,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),Fl=a(async(e,t)=>{let r;try{r=await tlt(e,t?.fallbackPrefix)}catch(s){P.error(s),r=Jot}let n=mC(r,t);return yC(gC(n.body),n.attributes)},"getIconSVG")});function Zy(e){for(var t=[],r=1;r{"use strict";a(Zy,"dedent")});var Jy,cu,E7,tx=x(()=>{"use strict";Jy=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,cu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,E7=/\s*%%.*\n/gm});var Zh,kC=x(()=>{"use strict";Zh=class extends Error{static{a(this,"UnknownDiagramError")}constructor(t){super(t),this.name="UnknownDiagramError"}}});var uu,Jh,ex,TC,v7,hu=x(()=>{"use strict";zt();tx();kC();uu={},Jh=a(function(e,t){e=e.replace(Jy,"").replace(cu,"").replace(E7,`
+`);for(let[r,{detector:n}]of Object.entries(uu))if(n(e,t))return r;throw new Zh(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),ex=a((...e)=>{for(let{id:t,detector:r,loader:n}of e)TC(t,r,n)},"registerLazyLoadedDiagrams"),TC=a((e,t,r)=>{uu[e]&&P.warn(`Detector with key ${e} already exists. Overwriting.`),uu[e]={detector:t,loader:r},P.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),v7=a(e=>uu[e].loader,"getDiagramLoader")});var Gm,A7,SC=x(()=>{"use strict";Gm=function(){var e=a(function(te,vt,It,yt){for(It=It||{},yt=te.length;yt--;It[te[yt]]=vt);return It},"o"),t=[1,24],r=[1,25],n=[1,26],i=[1,27],s=[1,28],o=[1,63],l=[1,64],u=[1,65],h=[1,66],f=[1,67],d=[1,68],p=[1,69],m=[1,29],g=[1,30],y=[1,31],b=[1,32],k=[1,33],T=[1,34],_=[1,35],L=[1,36],C=[1,37],D=[1,38],$=[1,39],w=[1,40],A=[1,41],F=[1,42],S=[1,43],v=[1,44],R=[1,45],B=[1,46],I=[1,47],M=[1,48],O=[1,50],N=[1,51],E=[1,52],V=[1,53],G=[1,54],J=[1,55],rt=[1,56],nt=[1,57],ct=[1,58],pt=[1,59],Lt=[1,60],bt=[14,42],ut=[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],it=[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],st=[1,82],X=[1,83],H=[1,84],at=[1,85],W=[12,14,42],mt=[12,14,33,42],q=[12,14,33,42,76,77,79,80],Z=[12,33],ye=[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],ot={trace:a(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:a(function(vt,It,yt,ht,wt,Q,Nt){var z=Q.length-1;switch(wt){case 3:ht.setDirection("TB");break;case 4:ht.setDirection("BT");break;case 5:ht.setDirection("RL");break;case 6:ht.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:ht.setC4Type(Q[z-3]);break;case 19:ht.setTitle(Q[z].substring(6)),this.$=Q[z].substring(6);break;case 20:ht.setAccDescription(Q[z].substring(15)),this.$=Q[z].substring(15);break;case 21:this.$=Q[z].trim(),ht.setTitle(this.$);break;case 22:case 23:this.$=Q[z].trim(),ht.setAccDescription(this.$);break;case 28:Q[z].splice(2,0,"ENTERPRISE"),ht.addPersonOrSystemBoundary(...Q[z]),this.$=Q[z];break;case 29:Q[z].splice(2,0,"SYSTEM"),ht.addPersonOrSystemBoundary(...Q[z]),this.$=Q[z];break;case 30:ht.addPersonOrSystemBoundary(...Q[z]),this.$=Q[z];break;case 31:Q[z].splice(2,0,"CONTAINER"),ht.addContainerBoundary(...Q[z]),this.$=Q[z];break;case 32:ht.addDeploymentNode("node",...Q[z]),this.$=Q[z];break;case 33:ht.addDeploymentNode("nodeL",...Q[z]),this.$=Q[z];break;case 34:ht.addDeploymentNode("nodeR",...Q[z]),this.$=Q[z];break;case 35:ht.popBoundaryParseStack();break;case 39:ht.addPersonOrSystem("person",...Q[z]),this.$=Q[z];break;case 40:ht.addPersonOrSystem("external_person",...Q[z]),this.$=Q[z];break;case 41:ht.addPersonOrSystem("system",...Q[z]),this.$=Q[z];break;case 42:ht.addPersonOrSystem("system_db",...Q[z]),this.$=Q[z];break;case 43:ht.addPersonOrSystem("system_queue",...Q[z]),this.$=Q[z];break;case 44:ht.addPersonOrSystem("external_system",...Q[z]),this.$=Q[z];break;case 45:ht.addPersonOrSystem("external_system_db",...Q[z]),this.$=Q[z];break;case 46:ht.addPersonOrSystem("external_system_queue",...Q[z]),this.$=Q[z];break;case 47:ht.addContainer("container",...Q[z]),this.$=Q[z];break;case 48:ht.addContainer("container_db",...Q[z]),this.$=Q[z];break;case 49:ht.addContainer("container_queue",...Q[z]),this.$=Q[z];break;case 50:ht.addContainer("external_container",...Q[z]),this.$=Q[z];break;case 51:ht.addContainer("external_container_db",...Q[z]),this.$=Q[z];break;case 52:ht.addContainer("external_container_queue",...Q[z]),this.$=Q[z];break;case 53:ht.addComponent("component",...Q[z]),this.$=Q[z];break;case 54:ht.addComponent("component_db",...Q[z]),this.$=Q[z];break;case 55:ht.addComponent("component_queue",...Q[z]),this.$=Q[z];break;case 56:ht.addComponent("external_component",...Q[z]),this.$=Q[z];break;case 57:ht.addComponent("external_component_db",...Q[z]),this.$=Q[z];break;case 58:ht.addComponent("external_component_queue",...Q[z]),this.$=Q[z];break;case 60:ht.addRel("rel",...Q[z]),this.$=Q[z];break;case 61:ht.addRel("birel",...Q[z]),this.$=Q[z];break;case 62:ht.addRel("rel_u",...Q[z]),this.$=Q[z];break;case 63:ht.addRel("rel_d",...Q[z]),this.$=Q[z];break;case 64:ht.addRel("rel_l",...Q[z]),this.$=Q[z];break;case 65:ht.addRel("rel_r",...Q[z]),this.$=Q[z];break;case 66:ht.addRel("rel_b",...Q[z]),this.$=Q[z];break;case 67:Q[z].splice(0,1),ht.addRel("rel",...Q[z]),this.$=Q[z];break;case 68:ht.updateElStyle("update_el_style",...Q[z]),this.$=Q[z];break;case 69:ht.updateRelStyle("update_rel_style",...Q[z]),this.$=Q[z];break;case 70:ht.updateLayoutConfig("update_layout_config",...Q[z]),this.$=Q[z];break;case 71:this.$=[Q[z]];break;case 72:Q[z].unshift(Q[z-1]),this.$=Q[z];break;case 73:case 75:this.$=Q[z].trim();break;case 74:let $t={};$t[Q[z-1].trim()]=Q[z].trim(),this.$=$t;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:t,23:r,24:n,26:i,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt},{13:70,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt},{13:71,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt},{13:72,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt},{13:73,19:20,20:21,21:22,22:t,23:r,24:n,26:i,28:s,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt},{14:[1,74]},e(bt,[2,13],{43:23,29:49,30:61,32:62,20:75,34:o,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt}),e(bt,[2,14]),e(ut,[2,16],{12:[1,76]}),e(bt,[2,36],{12:[1,77]}),e(it,[2,19]),e(it,[2,20]),{25:[1,78]},{27:[1,79]},e(it,[2,23]),{35:80,75:81,76:st,77:X,79:H,80:at},{35:86,75:81,76:st,77:X,79:H,80:at},{35:87,75:81,76:st,77:X,79:H,80:at},{35:88,75:81,76:st,77:X,79:H,80:at},{35:89,75:81,76:st,77:X,79:H,80:at},{35:90,75:81,76:st,77:X,79:H,80:at},{35:91,75:81,76:st,77:X,79:H,80:at},{35:92,75:81,76:st,77:X,79:H,80:at},{35:93,75:81,76:st,77:X,79:H,80:at},{35:94,75:81,76:st,77:X,79:H,80:at},{35:95,75:81,76:st,77:X,79:H,80:at},{35:96,75:81,76:st,77:X,79:H,80:at},{35:97,75:81,76:st,77:X,79:H,80:at},{35:98,75:81,76:st,77:X,79:H,80:at},{35:99,75:81,76:st,77:X,79:H,80:at},{35:100,75:81,76:st,77:X,79:H,80:at},{35:101,75:81,76:st,77:X,79:H,80:at},{35:102,75:81,76:st,77:X,79:H,80:at},{35:103,75:81,76:st,77:X,79:H,80:at},{35:104,75:81,76:st,77:X,79:H,80:at},e(W,[2,59]),{35:105,75:81,76:st,77:X,79:H,80:at},{35:106,75:81,76:st,77:X,79:H,80:at},{35:107,75:81,76:st,77:X,79:H,80:at},{35:108,75:81,76:st,77:X,79:H,80:at},{35:109,75:81,76:st,77:X,79:H,80:at},{35:110,75:81,76:st,77:X,79:H,80:at},{35:111,75:81,76:st,77:X,79:H,80:at},{35:112,75:81,76:st,77:X,79:H,80:at},{35:113,75:81,76:st,77:X,79:H,80:at},{35:114,75:81,76:st,77:X,79:H,80:at},{35:115,75:81,76:st,77:X,79:H,80:at},{20:116,29:49,30:61,32:62,34:o,36:l,37:u,38:h,39:f,40:d,41:p,43:23,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt},{12:[1,118],33:[1,117]},{35:119,75:81,76:st,77:X,79:H,80:at},{35:120,75:81,76:st,77:X,79:H,80:at},{35:121,75:81,76:st,77:X,79:H,80:at},{35:122,75:81,76:st,77:X,79:H,80:at},{35:123,75:81,76:st,77:X,79:H,80:at},{35:124,75:81,76:st,77:X,79:H,80:at},{35:125,75:81,76:st,77:X,79:H,80:at},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(bt,[2,15]),e(ut,[2,17],{21:22,19:130,22:t,23:r,24:n,26:i,28:s}),e(bt,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:r,24:n,26:i,28:s,34:o,36:l,37:u,38:h,39:f,40:d,41:p,44:m,45:g,46:y,47:b,48:k,49:T,50:_,51:L,52:C,53:D,54:$,55:w,56:A,57:F,58:S,59:v,60:R,61:B,62:I,63:M,64:O,65:N,66:E,67:V,68:G,69:J,70:rt,71:nt,72:ct,73:pt,74:Lt}),e(it,[2,21]),e(it,[2,22]),e(W,[2,39]),e(mt,[2,71],{75:81,35:132,76:st,77:X,79:H,80:at}),e(q,[2,73]),{78:[1,133]},e(q,[2,75]),e(q,[2,76]),e(W,[2,40]),e(W,[2,41]),e(W,[2,42]),e(W,[2,43]),e(W,[2,44]),e(W,[2,45]),e(W,[2,46]),e(W,[2,47]),e(W,[2,48]),e(W,[2,49]),e(W,[2,50]),e(W,[2,51]),e(W,[2,52]),e(W,[2,53]),e(W,[2,54]),e(W,[2,55]),e(W,[2,56]),e(W,[2,57]),e(W,[2,58]),e(W,[2,60]),e(W,[2,61]),e(W,[2,62]),e(W,[2,63]),e(W,[2,64]),e(W,[2,65]),e(W,[2,66]),e(W,[2,67]),e(W,[2,68]),e(W,[2,69]),e(W,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Z,[2,28]),e(Z,[2,29]),e(Z,[2,30]),e(Z,[2,31]),e(Z,[2,32]),e(Z,[2,33]),e(Z,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(ut,[2,18]),e(bt,[2,38]),e(mt,[2,72]),e(q,[2,74]),e(W,[2,24]),e(W,[2,35]),e(ye,[2,25]),e(ye,[2,26],{12:[1,138]}),e(ye,[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:a(function(vt,It){if(It.recoverable)this.trace(vt);else{var yt=new Error(vt);throw yt.hash=It,yt}},"parseError"),parse:a(function(vt){var It=this,yt=[0],ht=[],wt=[null],Q=[],Nt=this.table,z="",$t=0,U=0,Tt=0,gt=2,Yt=1,Mt=Q.slice.call(arguments,1),kt=Object.create(this.lexer),Ge={yy:{}};for(var Pt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Pt)&&(Ge.yy[Pt]=this.yy[Pt]);kt.setInput(vt,Ge.yy),Ge.yy.lexer=kt,Ge.yy.parser=this,typeof kt.yylloc>"u"&&(kt.yylloc={});var nr=kt.yylloc;Q.push(nr);var Ze=kt.options&&kt.options.ranges;typeof Ge.yy.parseError=="function"?this.parseError=Ge.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yr(jt){yt.length=yt.length-2*jt,wt.length=wt.length-jt,Q.length=Q.length-jt}a(yr,"popStack");function Je(){var jt;return jt=ht.pop()||kt.lex()||Yt,typeof jt!="number"&&(jt instanceof Array&&(ht=jt,jt=ht.pop()),jt=It.symbols_[jt]||jt),jt}a(Je,"lex");for(var ke,He,Te,ur,yn,we,Oe={},Ae,xe,he,ge;;){if(Te=yt[yt.length-1],this.defaultActions[Te]?ur=this.defaultActions[Te]:((ke===null||typeof ke>"u")&&(ke=Je()),ur=Nt[Te]&&Nt[Te][ke]),typeof ur>"u"||!ur.length||!ur[0]){var be="";ge=[];for(Ae in Nt[Te])this.terminals_[Ae]&&Ae>gt&&ge.push("'"+this.terminals_[Ae]+"'");kt.showPosition?be="Parse error on line "+($t+1)+`:
+`+kt.showPosition()+`
+Expecting `+ge.join(", ")+", got '"+(this.terminals_[ke]||ke)+"'":be="Parse error on line "+($t+1)+": Unexpected "+(ke==Yt?"end of input":"'"+(this.terminals_[ke]||ke)+"'"),this.parseError(be,{text:kt.match,token:this.terminals_[ke]||ke,line:kt.yylineno,loc:nr,expected:ge})}if(ur[0]instanceof Array&&ur.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Te+", token: "+ke);switch(ur[0]){case 1:yt.push(ke),wt.push(kt.yytext),Q.push(kt.yylloc),yt.push(ur[1]),ke=null,He?(ke=He,He=null):(U=kt.yyleng,z=kt.yytext,$t=kt.yylineno,nr=kt.yylloc,Tt>0&&Tt--);break;case 2:if(xe=this.productions_[ur[1]][1],Oe.$=wt[wt.length-xe],Oe._$={first_line:Q[Q.length-(xe||1)].first_line,last_line:Q[Q.length-1].last_line,first_column:Q[Q.length-(xe||1)].first_column,last_column:Q[Q.length-1].last_column},Ze&&(Oe._$.range=[Q[Q.length-(xe||1)].range[0],Q[Q.length-1].range[1]]),we=this.performAction.apply(Oe,[z,U,$t,Ge.yy,ur[1],wt,Q].concat(Mt)),typeof we<"u")return we;xe&&(yt=yt.slice(0,-1*xe*2),wt=wt.slice(0,-1*xe),Q=Q.slice(0,-1*xe)),yt.push(this.productions_[ur[1]][0]),wt.push(Oe.$),Q.push(Oe._$),he=Nt[yt[yt.length-2]][yt[yt.length-1]],yt.push(he);break;case 3:return!0}}return!0},"parse")},Jt=function(){var te={EOF:1,parseError:a(function(It,yt){if(this.yy.parser)this.yy.parser.parseError(It,yt);else throw new Error(It)},"parseError"),setInput:a(function(vt,It){return this.yy=It||this.yy||{},this._input=vt,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]),this.offset=0,this},"setInput"),input:a(function(){var vt=this._input[0];this.yytext+=vt,this.yyleng++,this.offset++,this.match+=vt,this.matched+=vt;var It=vt.match(/(?:\r\n?|\n).*/g);return It?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),vt},"input"),unput:a(function(vt){var It=vt.length,yt=vt.split(/(?:\r\n?|\n)/g);this._input=vt+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-It),this.offset-=It;var ht=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),yt.length-1&&(this.yylineno-=yt.length-1);var wt=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:yt?(yt.length===ht.length?this.yylloc.first_column:0)+ht[ht.length-yt.length].length-yt[0].length:this.yylloc.first_column-It},this.options.ranges&&(this.yylloc.range=[wt[0],wt[0]+this.yyleng-It]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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:a(function(vt){this.unput(this.match.slice(vt))},"less"),pastInput:a(function(){var vt=this.matched.substr(0,this.matched.length-this.match.length);return(vt.length>20?"...":"")+vt.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var vt=this.match;return vt.length<20&&(vt+=this._input.substr(0,20-vt.length)),(vt.substr(0,20)+(vt.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var vt=this.pastInput(),It=new Array(vt.length+1).join("-");return vt+this.upcomingInput()+`
+`+It+"^"},"showPosition"),test_match:a(function(vt,It){var yt,ht,wt;if(this.options.backtrack_lexer&&(wt={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&&(wt.yylloc.range=this.yylloc.range.slice(0))),ht=vt[0].match(/(?:\r\n?|\n).*/g),ht&&(this.yylineno+=ht.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ht?ht[ht.length-1].length-ht[ht.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+vt[0].length},this.yytext+=vt[0],this.match+=vt[0],this.matches=vt,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(vt[0].length),this.matched+=vt[0],yt=this.performAction.call(this,this.yy,this,It,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),yt)return yt;if(this._backtrack){for(var Q in wt)this[Q]=wt[Q];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var vt,It,yt,ht;this._more||(this.yytext="",this.match="");for(var wt=this._currentRules(),Q=0;QIt[0].length)){if(It=yt,ht=Q,this.options.backtrack_lexer){if(vt=this.test_match(yt,wt[Q]),vt!==!1)return vt;if(this._backtrack){It=!1;continue}else return!1}else if(!this.options.flex)break}return It?(vt=this.test_match(It,wt[ht]),vt!==!1?vt:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
+`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var It=this.next();return It||this.lex()},"lex"),begin:a(function(It){this.conditionStack.push(It)},"begin"),popState:a(function(){var It=this.conditionStack.length-1;return It>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(It){return It=this.conditionStack.length-1-Math.abs(It||0),It>=0?this.conditionStack[It]:"INITIAL"},"topState"),pushState:a(function(It){this.begin(It)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a(function(It,yt,ht,wt){var Q=wt;switch(ht){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:[],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 te}();ot.lexer=Jt;function ve(){this.yy={}}return a(ve,"Parser"),ve.prototype=ot,ot.Parser=ve,new ve}();Gm.parser=Gm;A7=Gm});var _C,Hr,tf=x(()=>{"use strict";_C=a((e,t,{depth:r=2,clobber:n=!1}={})=>{let i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>_C(e,s,i)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(s=>{typeof t[s]=="object"&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=_C(e[s],t[s],{depth:r-1,clobber:n})):(n||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),Hr=_C});var rx,L7,R7=x(()=>{"use strict";rx={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:a(e=>e>=255?255:e<0?0:e,"r"),g:a(e=>e>=255?255:e<0?0:e,"g"),b:a(e=>e>=255?255:e<0?0:e,"b"),h:a(e=>e%360,"h"),s:a(e=>e>=100?100:e<0?0:e,"s"),l:a(e=>e>=100?100:e<0?0:e,"l"),a:a(e=>e>=1?1:e<0?0:e,"a")},toLinear:a(e=>{let t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},"toLinear"),hue2rgb:a((e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?e+(t-e)*6*r:r<.5?t:r<.6666666666666666?e+(t-e)*(.6666666666666666-r)*6:e),"hue2rgb"),hsl2rgb:a(({h:e,s:t,l:r},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;let i=r<.5?r*(1+t):r+t-r*t,s=2*r-i;switch(n){case"r":return rx.hue2rgb(s,i,e+.3333333333333333)*255;case"g":return rx.hue2rgb(s,i,e)*255;case"b":return rx.hue2rgb(s,i,e-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:a(({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;let i=Math.max(e,t,r),s=Math.min(e,t,r),o=(i+s)/2;if(n==="l")return o*100;if(i===s)return 0;let l=i-s,u=o>.5?l/(2-i-s):l/(i+s);if(n==="s")return u*100;switch(i){case e:return((t-r)/l+(t{"use strict";elt={clamp:a((e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),"clamp"),round:a(e=>Math.round(e*1e10)/1e10,"round")},D7=elt});var rlt,N7,M7=x(()=>{"use strict";rlt={dec2hex:a(e=>{let t=Math.round(e).toString(16);return t.length>1?t:`0${t}`},"dec2hex")},N7=rlt});var nlt,de,Ja=x(()=>{"use strict";R7();I7();M7();nlt={channel:L7,lang:D7,unit:N7},de=nlt});var Xo,Rn,Vm=x(()=>{"use strict";Ja();Xo={};for(let e=0;e<=255;e++)Xo[e]=de.unit.dec2hex(e);Rn={ALL:0,RGB:1,HSL:2}});var CC,O7,P7=x(()=>{"use strict";Vm();CC=class{static{a(this,"Type")}constructor(){this.type=Rn.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Rn.ALL}is(t){return this.type===t}},O7=CC});var wC,B7,F7=x(()=>{"use strict";Ja();P7();Vm();wC=class{static{a(this,"Channels")}constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new O7}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Rn.ALL,this}_ensureHSL(){let t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=de.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=de.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=de.channel.rgb2hsl(t,"l"))}_ensureRGB(){let t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=de.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=de.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=de.channel.hsl2rgb(t,"b"))}get r(){let t=this.data,r=t.r;return!this.type.is(Rn.HSL)&&r!==void 0?r:(this._ensureHSL(),de.channel.hsl2rgb(t,"r"))}get g(){let t=this.data,r=t.g;return!this.type.is(Rn.HSL)&&r!==void 0?r:(this._ensureHSL(),de.channel.hsl2rgb(t,"g"))}get b(){let t=this.data,r=t.b;return!this.type.is(Rn.HSL)&&r!==void 0?r:(this._ensureHSL(),de.channel.hsl2rgb(t,"b"))}get h(){let t=this.data,r=t.h;return!this.type.is(Rn.RGB)&&r!==void 0?r:(this._ensureRGB(),de.channel.rgb2hsl(t,"h"))}get s(){let t=this.data,r=t.s;return!this.type.is(Rn.RGB)&&r!==void 0?r:(this._ensureRGB(),de.channel.rgb2hsl(t,"s"))}get l(){let t=this.data,r=t.l;return!this.type.is(Rn.RGB)&&r!==void 0?r:(this._ensureRGB(),de.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Rn.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Rn.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Rn.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Rn.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Rn.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Rn.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}},B7=wC});var ilt,$l,zm=x(()=>{"use strict";F7();ilt=new B7({r:0,g:0,b:0,a:0},"transparent"),$l=ilt});var $7,fu,EC=x(()=>{"use strict";zm();Vm();$7={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:a(e=>{if(e.charCodeAt(0)!==35)return;let t=e.match($7.re);if(!t)return;let r=t[1],n=parseInt(r,16),i=r.length,s=i%4===0,o=i>4,l=o?1:17,u=o?8:4,h=s?0:-1,f=o?255:15;return $l.set({r:(n>>u*(h+3)&f)*l,g:(n>>u*(h+2)&f)*l,b:(n>>u*(h+1)&f)*l,a:s?(n&f)*l/255:1},e)},"parse"),stringify:a(e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`#${Xo[Math.round(t)]}${Xo[Math.round(r)]}${Xo[Math.round(n)]}${Xo[Math.round(i*255)]}`:`#${Xo[Math.round(t)]}${Xo[Math.round(r)]}${Xo[Math.round(n)]}`},"stringify")},fu=$7});var nx,Wm,G7=x(()=>{"use strict";Ja();zm();nx={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:a(e=>{let t=e.match(nx.hueRe);if(t){let[,r,n]=t;switch(n){case"grad":return de.channel.clamp.h(parseFloat(r)*.9);case"rad":return de.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return de.channel.clamp.h(parseFloat(r)*360)}}return de.channel.clamp.h(parseFloat(e))},"_hue2deg"),parse:a(e=>{let t=e.charCodeAt(0);if(t!==104&&t!==72)return;let r=e.match(nx.re);if(!r)return;let[,n,i,s,o,l]=r;return $l.set({h:nx._hue2deg(n),s:de.channel.clamp.s(parseFloat(i)),l:de.channel.clamp.l(parseFloat(s)),a:o?de.channel.clamp.a(l?parseFloat(o)/100:parseFloat(o)):1},e)},"parse"),stringify:a(e=>{let{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${de.lang.round(t)}, ${de.lang.round(r)}%, ${de.lang.round(n)}%, ${i})`:`hsl(${de.lang.round(t)}, ${de.lang.round(r)}%, ${de.lang.round(n)}%)`},"stringify")},Wm=nx});var ix,vC,V7=x(()=>{"use strict";EC();ix={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:a(e=>{e=e.toLowerCase();let t=ix.colors[e];if(t)return fu.parse(t)},"parse"),stringify:a(e=>{let t=fu.stringify(e);for(let r in ix.colors)if(ix.colors[r]===t)return r},"stringify")},vC=ix});var z7,Um,W7=x(()=>{"use strict";Ja();zm();z7={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:a(e=>{let t=e.charCodeAt(0);if(t!==114&&t!==82)return;let r=e.match(z7.re);if(!r)return;let[,n,i,s,o,l,u,h,f]=r;return $l.set({r:de.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:de.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:de.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?de.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},e)},"parse"),stringify:a(e=>{let{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${de.lang.round(t)}, ${de.lang.round(r)}, ${de.lang.round(n)}, ${de.lang.round(i)})`:`rgb(${de.lang.round(t)}, ${de.lang.round(r)}, ${de.lang.round(n)})`},"stringify")},Um=z7});var slt,Dn,Ko=x(()=>{"use strict";EC();G7();V7();W7();Vm();slt={format:{keyword:vC,hex:fu,rgb:Um,rgba:Um,hsl:Wm,hsla:Wm},parse:a(e=>{if(typeof e!="string")return e;let t=fu.parse(e)||Um.parse(e)||Wm.parse(e)||vC.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},"parse"),stringify:a(e=>!e.changed&&e.color?e.color:e.type.is(Rn.HSL)||e.data.r===void 0?Wm.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Um.stringify(e):fu.stringify(e),"stringify")},Dn=slt});var alt,sx,AC=x(()=>{"use strict";Ja();Ko();alt=a((e,t)=>{let r=Dn.parse(e);for(let n in t)r[n]=de.channel.clamp[n](t[n]);return Dn.stringify(r)},"change"),sx=alt});var olt,Ci,LC=x(()=>{"use strict";Ja();zm();Ko();AC();olt=a((e,t,r=0,n=1)=>{if(typeof e!="number")return sx(e,{a:t});let i=$l.set({r:de.channel.clamp.r(e),g:de.channel.clamp.g(t),b:de.channel.clamp.b(r),a:de.channel.clamp.a(n)});return Dn.stringify(i)},"rgba"),Ci=olt});var llt,du,U7=x(()=>{"use strict";Ja();Ko();llt=a((e,t)=>de.lang.round(Dn.parse(e)[t]),"channel"),du=llt});var clt,j7,q7=x(()=>{"use strict";Ja();Ko();clt=a(e=>{let{r:t,g:r,b:n}=Dn.parse(e),i=.2126*de.channel.toLinear(t)+.7152*de.channel.toLinear(r)+.0722*de.channel.toLinear(n);return de.lang.round(i)},"luminance"),j7=clt});var ult,H7,Y7=x(()=>{"use strict";q7();ult=a(e=>j7(e)>=.5,"isLight"),H7=ult});var hlt,wi,X7=x(()=>{"use strict";Y7();hlt=a(e=>!H7(e),"isDark"),wi=hlt});var flt,ax,RC=x(()=>{"use strict";Ja();Ko();flt=a((e,t,r)=>{let n=Dn.parse(e),i=n[t],s=de.channel.clamp[t](i+r);return i!==s&&(n[t]=s),Dn.stringify(n)},"adjustChannel"),ax=flt});var dlt,qt,K7=x(()=>{"use strict";RC();dlt=a((e,t)=>ax(e,"l",t),"lighten"),qt=dlt});var plt,ee,Q7=x(()=>{"use strict";RC();plt=a((e,t)=>ax(e,"l",-t),"darken"),ee=plt});var mlt,ft,Z7=x(()=>{"use strict";Ko();AC();mlt=a((e,t)=>{let r=Dn.parse(e),n={};for(let i in t)t[i]&&(n[i]=r[i]+t[i]);return sx(e,n)},"adjust"),ft=mlt});var glt,J7,tI=x(()=>{"use strict";Ko();LC();glt=a((e,t,r=50)=>{let{r:n,g:i,b:s,a:o}=Dn.parse(e),{r:l,g:u,b:h,a:f}=Dn.parse(t),d=r/100,p=d*2-1,m=o-f,y=((p*m===-1?p:(p+m)/(1+p*m))+1)/2,b=1-y,k=n*y+l*b,T=i*y+u*b,_=s*y+h*b,L=o*d+f*(1-d);return Ci(k,T,_,L)},"mix"),J7=glt});var ylt,Wt,eI=x(()=>{"use strict";Ko();tI();ylt=a((e,t=100)=>{let r=Dn.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,J7(r,e,t)},"invert"),Wt=ylt});var rI=x(()=>{"use strict";LC();U7();X7();K7();Q7();Z7();eI()});var Gs=x(()=>{"use strict";rI()});var Gl,Vl,jm=x(()=>{"use strict";Gl="#ffffff",Vl="#f2f2f2"});var kn,ef=x(()=>{"use strict";Gs();kn=a((e,t)=>t?ft(e,{s:-40,l:10}):ft(e,{s:-40,l:-10}),"mkBorder")});var IC,nI,iI=x(()=>{"use strict";Gs();jm();ef();IC=class{static{a(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ft(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ft(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||kn(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||kn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||kn(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||kn(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Wt(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Wt(this.tertiaryColor),this.lineColor=this.lineColor||Wt(this.background),this.arrowheadColor=this.arrowheadColor||Wt(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?ee(this.secondaryColor,30):this.secondaryColor),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||ee(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Wt(this.lineColor),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||qt(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.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.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||ee(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ee(this.mainBkg,10)):(this.rowOdd=this.rowOdd||qt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||qt(this.mainBkg,5)),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||ft(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ft(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ft(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ft(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ft(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ft(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ft(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ft(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ft(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},nI=a(e=>{let t=new IC;return t.calculate(e),t},"getThemeVariables")});var NC,sI,aI=x(()=>{"use strict";Gs();ef();NC=class{static{a(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=qt(this.primaryColor,16),this.tertiaryColor=ft(this.primaryColor,{h:-160}),this.primaryBorderColor=Wt(this.background),this.secondaryBorderColor=kn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Wt(this.primaryColor),this.secondaryTextColor=Wt(this.secondaryColor),this.tertiaryTextColor=Wt(this.tertiaryColor),this.lineColor=Wt(this.background),this.textColor=Wt(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=qt(Wt("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ci(255,255,255,.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.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.sectionBkgColor=ee("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=ee(this.sectionBkgColor,10),this.taskBorderColor=Ci(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ci(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.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||qt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||ee(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=qt(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=qt(this.labelBackground,25),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.altSectionBkgColor=this.background,this.taskBkgColor=qt(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=this.darkTextColor,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=ft(this.primaryColor,{h:64}),this.fillType3=ft(this.secondaryColor,{h:64}),this.fillType4=ft(this.primaryColor,{h:-64}),this.fillType5=ft(this.secondaryColor,{h:-64}),this.fillType6=ft(this.primaryColor,{h:128}),this.fillType7=ft(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||ft(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ft(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ft(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ft(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ft(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ft(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ft(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ft(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ft(this.primaryColor,{h:330});for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},sI=a(e=>{let t=new NC;return t.calculate(e),t},"getThemeVariables")});var MC,zl,qm=x(()=>{"use strict";Gs();ef();jm();MC=class{static{a(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ft(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ft(this.primaryColor,{h:-160}),this.primaryBorderColor=kn(this.primaryColor,this.darkMode),this.secondaryBorderColor=kn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Wt(this.primaryColor),this.secondaryTextColor=Wt(this.secondaryColor),this.tertiaryTextColor=Wt(this.tertiaryColor),this.lineColor=Wt(this.background),this.textColor=Wt(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",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.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.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.sectionBkgColor=Ci(102,102,255,.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.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.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ft(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ft(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ft(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ft(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ft(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ft(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ft(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ft(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ft(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ee(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ee(this.tertiaryColor,40);for(let t=0;t{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}let r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},zl=a(e=>{let t=new MC;return t.calculate(e),t},"getThemeVariables")});var OC,oI,lI=x(()=>{"use strict";Gs();jm();ef();OC=class{static{a(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=qt("#cde498",10),this.primaryBorderColor=kn(this.primaryColor,this.darkMode),this.secondaryBorderColor=kn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Wt(this.primaryColor),this.secondaryTextColor=Wt(this.secondaryColor),this.tertiaryTextColor=Wt(this.primaryColor),this.lineColor=Wt(this.background),this.textColor=Wt(this.background),this.THEME_COLOR_LIMIT=12,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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=ee(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ft(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ft(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ft(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ft(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ft(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ft(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ft(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ft(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ft(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||ee(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||ee(this.tertiaryColor,40);for(let t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},oI=a(e=>{let t=new OC;return t.calculate(e),t},"getThemeVariables")});var PC,cI,uI=x(()=>{"use strict";Gs();ef();jm();PC=class{static{a(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=qt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ft(this.primaryColor,{h:-160}),this.primaryBorderColor=kn(this.primaryColor,this.darkMode),this.secondaryBorderColor=kn(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=kn(this.tertiaryColor,this.darkMode),this.primaryTextColor=Wt(this.primaryColor),this.secondaryTextColor=Wt(this.secondaryColor),this.tertiaryTextColor=Wt(this.tertiaryColor),this.lineColor=Wt(this.background),this.textColor=Wt(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.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.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||qt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=qt(this.contrast,55),this.border2=this.contrast,this.actorBorder=qt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,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 t=0;t{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},cI=a(e=>{let t=new PC;return t.calculate(e),t},"getThemeVariables")});var Vs,ox=x(()=>{"use strict";iI();aI();qm();lI();uI();Vs={base:{getThemeVariables:nI},dark:{getThemeVariables:sI},default:{getThemeVariables:zl},forest:{getThemeVariables:oI},neutral:{getThemeVariables:cI}}});var to,hI=x(()=>{"use strict";to={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,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,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,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,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,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:.75},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,showTitle:!0,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},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},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,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,padding:10,maxNodeWidth:200},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:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,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}});var fI,dI,pI,We,zs=x(()=>{"use strict";ox();hI();fI={...to,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:Vs.default.getThemeVariables(),sequence:{...to.sequence,messageFont:a(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:a(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:a(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...to.gantt,tickInterval:void 0,useWidth:void 0},c4:{...to.c4,useWidth:void 0,personFont:a(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:a(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:a(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:a(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:a(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:a(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:a(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:a(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:a(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:a(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:a(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:a(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:a(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:a(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:a(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:a(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:a(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:a(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:a(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:a(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:a(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:a(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...to.pie,useWidth:984},xyChart:{...to.xyChart,useWidth:void 0},requirement:{...to.requirement,useWidth:void 0},packet:{...to.packet},radar:{...to.radar}},dI=a((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...dI(e[n],"")]:[...r,t+n],[]),"keyify"),pI=new Set(dI(fI,"")),We=fI});var rf,xlt,BC=x(()=>{"use strict";zs();zt();rf=a(e=>{if(P.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>rf(t));return}for(let t of Object.keys(e)){if(P.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!pI.has(t)||e[t]==null){P.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){P.debug("sanitizing object",t),rf(e[t]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let n of r)t.includes(n)&&(P.debug("sanitizing css option",t),e[t]=xlt(e[t]))}if(e.themeVariables)for(let t of Object.keys(e.themeVariables)){let r=e.themeVariables[t];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}P.debug("After sanitization",e)}},"sanitizeDirective"),xlt=a(e=>{let t=0,r=0;for(let n of e){if(t{"use strict";tf();zt();ox();zs();BC();Wl=Object.freeze(We),Qi=Hr({},Wl),nf=[],Hm=Hr({},Wl),lx=a((e,t)=>{let r=Hr({},e),n={};for(let i of t)bI(i),n=Hr(n,i);if(r=Hr(r,n),n.theme&&n.theme in Vs){let i=Hr({},gI),s=Hr(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in Vs&&(r.themeVariables=Vs[r.theme].getThemeVariables(s))}return Hm=r,TI(Hm),Hm},"updateCurrentConfig"),FC=a(e=>(Qi=Hr({},Wl),Qi=Hr(Qi,e),e.theme&&Vs[e.theme]&&(Qi.themeVariables=Vs[e.theme].getThemeVariables(e.themeVariables)),lx(Qi,nf),Qi),"setSiteConfig"),yI=a(e=>{gI=Hr({},e)},"saveConfigFromInitialize"),xI=a(e=>(Qi=Hr(Qi,e),lx(Qi,nf),Qi),"updateSiteConfig"),$C=a(()=>Hr({},Qi),"getSiteConfig"),cx=a(e=>(TI(e),Hr(Hm,e),Re()),"setConfig"),Re=a(()=>Hr({},Hm),"getConfig"),bI=a(e=>{e&&(["secure",...Qi.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(P.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&bI(e[t])}))},"sanitize"),kI=a(e=>{rf(e),e.fontFamily&&!e.themeVariables?.fontFamily&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),nf.push(e),lx(Qi,nf)},"addDirective"),Ym=a((e=Qi)=>{nf=[],lx(e,nf)},"reset"),blt={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},mI={},klt=a(e=>{mI[e]||(P.warn(blt[e]),mI[e]=!0)},"issueWarning"),TI=a(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&klt("LAZY_LOAD_DEPRECATED")},"checkConfig")});function Li(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:fx;SI&&SI(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){let s=r(i);s!==i&&(Tlt(t)||(t[n]=s),i=s)}e[i]=!0}return e}function Llt(e){for(let t=0;t0&&arguments[0]!==void 0?arguments[0]:Glt(),t=a(Kt=>OI(Kt),"DOMPurify");if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==Jm.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,n=r,i=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:l,Element:u,NodeFilter:h,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:m}=e,g=u.prototype,y=Zm(g,"cloneNode"),b=Zm(g,"remove"),k=Zm(g,"nextSibling"),T=Zm(g,"childNodes"),_=Zm(g,"parentNode");if(typeof o=="function"){let Kt=r.createElement("template");Kt.content&&Kt.content.ownerDocument&&(r=Kt.content.ownerDocument)}let L,C="",{implementation:D,createNodeIterator:$,createDocumentFragment:w,getElementsByTagName:A}=r,{importNode:F}=n,S=RI();t.isSupported=typeof DI=="function"&&typeof _=="function"&&D&&D.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:v,ERB_EXPR:R,TMPLIT_EXPR:B,DATA_ATTR:I,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:O,ATTR_WHITESPACE:N,CUSTOM_ELEMENT:E}=LI,{IS_ALLOWED_URI:V}=LI,G=null,J=qe({},[...wI,...VC,...zC,...WC,...EI]),rt=null,nt=qe({},[...vI,...UC,...AI,...hx]),ct=Object.seal(II(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),pt=null,Lt=null,bt=!0,ut=!0,it=!1,st=!0,X=!1,H=!0,at=!1,W=!1,mt=!1,q=!1,Z=!1,ye=!1,ot=!0,Jt=!1,ve="user-content-",te=!0,vt=!1,It={},yt=null,ht=qe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),wt=null,Q=qe({},["audio","video","img","source","image","track"]),Nt=null,z=qe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$t="http://www.w3.org/1998/Math/MathML",U="http://www.w3.org/2000/svg",Tt="http://www.w3.org/1999/xhtml",gt=Tt,Yt=!1,Mt=null,kt=qe({},[$t,U,Tt],GC),Ge=qe({},["mi","mo","mn","ms","mtext"]),Pt=qe({},["annotation-xml"]),nr=qe({},["title","style","font","a","script"]),Ze=null,yr=["application/xhtml+xml","text/html"],Je="text/html",ke=null,He=null,Te=r.createElement("form"),ur=a(function(et){return et instanceof RegExp||et instanceof Function},"isRegexOrFunction"),yn=a(function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(He&&He===et)){if((!et||typeof et!="object")&&(et={}),et=pu(et),Ze=yr.indexOf(et.PARSER_MEDIA_TYPE)===-1?Je:et.PARSER_MEDIA_TYPE,ke=Ze==="application/xhtml+xml"?GC:fx,G=xa(et,"ALLOWED_TAGS")?qe({},et.ALLOWED_TAGS,ke):J,rt=xa(et,"ALLOWED_ATTR")?qe({},et.ALLOWED_ATTR,ke):nt,Mt=xa(et,"ALLOWED_NAMESPACES")?qe({},et.ALLOWED_NAMESPACES,GC):kt,Nt=xa(et,"ADD_URI_SAFE_ATTR")?qe(pu(z),et.ADD_URI_SAFE_ATTR,ke):z,wt=xa(et,"ADD_DATA_URI_TAGS")?qe(pu(Q),et.ADD_DATA_URI_TAGS,ke):Q,yt=xa(et,"FORBID_CONTENTS")?qe({},et.FORBID_CONTENTS,ke):ht,pt=xa(et,"FORBID_TAGS")?qe({},et.FORBID_TAGS,ke):{},Lt=xa(et,"FORBID_ATTR")?qe({},et.FORBID_ATTR,ke):{},It=xa(et,"USE_PROFILES")?et.USE_PROFILES:!1,bt=et.ALLOW_ARIA_ATTR!==!1,ut=et.ALLOW_DATA_ATTR!==!1,it=et.ALLOW_UNKNOWN_PROTOCOLS||!1,st=et.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=et.SAFE_FOR_TEMPLATES||!1,H=et.SAFE_FOR_XML!==!1,at=et.WHOLE_DOCUMENT||!1,q=et.RETURN_DOM||!1,Z=et.RETURN_DOM_FRAGMENT||!1,ye=et.RETURN_TRUSTED_TYPE||!1,mt=et.FORCE_BODY||!1,ot=et.SANITIZE_DOM!==!1,Jt=et.SANITIZE_NAMED_PROPS||!1,te=et.KEEP_CONTENT!==!1,vt=et.IN_PLACE||!1,V=et.ALLOWED_URI_REGEXP||NI,gt=et.NAMESPACE||Tt,Ge=et.MATHML_TEXT_INTEGRATION_POINTS||Ge,Pt=et.HTML_INTEGRATION_POINTS||Pt,ct=et.CUSTOM_ELEMENT_HANDLING||{},et.CUSTOM_ELEMENT_HANDLING&&ur(et.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ct.tagNameCheck=et.CUSTOM_ELEMENT_HANDLING.tagNameCheck),et.CUSTOM_ELEMENT_HANDLING&&ur(et.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ct.attributeNameCheck=et.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),et.CUSTOM_ELEMENT_HANDLING&&typeof et.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ct.allowCustomizedBuiltInElements=et.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),X&&(ut=!1),Z&&(q=!0),It&&(G=qe({},EI),rt=[],It.html===!0&&(qe(G,wI),qe(rt,vI)),It.svg===!0&&(qe(G,VC),qe(rt,UC),qe(rt,hx)),It.svgFilters===!0&&(qe(G,zC),qe(rt,UC),qe(rt,hx)),It.mathMl===!0&&(qe(G,WC),qe(rt,AI),qe(rt,hx))),et.ADD_TAGS&&(G===J&&(G=pu(G)),qe(G,et.ADD_TAGS,ke)),et.ADD_ATTR&&(rt===nt&&(rt=pu(rt)),qe(rt,et.ADD_ATTR,ke)),et.ADD_URI_SAFE_ATTR&&qe(Nt,et.ADD_URI_SAFE_ATTR,ke),et.FORBID_CONTENTS&&(yt===ht&&(yt=pu(yt)),qe(yt,et.FORBID_CONTENTS,ke)),te&&(G["#text"]=!0),at&&qe(G,["html","head","body"]),G.table&&(qe(G,["tbody"]),delete pt.tbody),et.TRUSTED_TYPES_POLICY){if(typeof et.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qm('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof et.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qm('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=et.TRUSTED_TYPES_POLICY,C=L.createHTML("")}else L===void 0&&(L=Vlt(m,i)),L!==null&&typeof C=="string"&&(C=L.createHTML(""));Ai&&Ai(et),He=et}},"_parseConfig"),we=qe({},[...VC,...zC,...Rlt]),Oe=qe({},[...WC,...Dlt]),Ae=a(function(et){let Bt=_(et);(!Bt||!Bt.tagName)&&(Bt={namespaceURI:gt,tagName:"template"});let Xt=fx(et.tagName),tr=fx(Bt.tagName);return Mt[et.namespaceURI]?et.namespaceURI===U?Bt.namespaceURI===Tt?Xt==="svg":Bt.namespaceURI===$t?Xt==="svg"&&(tr==="annotation-xml"||Ge[tr]):!!we[Xt]:et.namespaceURI===$t?Bt.namespaceURI===Tt?Xt==="math":Bt.namespaceURI===U?Xt==="math"&&Pt[tr]:!!Oe[Xt]:et.namespaceURI===Tt?Bt.namespaceURI===U&&!Pt[tr]||Bt.namespaceURI===$t&&!Ge[tr]?!1:!Oe[Xt]&&(nr[Xt]||!we[Xt]):!!(Ze==="application/xhtml+xml"&&Mt[et.namespaceURI]):!1},"_checkValidNamespace"),xe=a(function(et){Xm(t.removed,{element:et});try{_(et).removeChild(et)}catch{b(et)}},"_forceRemove"),he=a(function(et,Bt){try{Xm(t.removed,{attribute:Bt.getAttributeNode(et),from:Bt})}catch{Xm(t.removed,{attribute:null,from:Bt})}if(Bt.removeAttribute(et),et==="is")if(q||Z)try{xe(Bt)}catch{}else try{Bt.setAttribute(et,"")}catch{}},"_removeAttribute"),ge=a(function(et){let Bt=null,Xt=null;if(mt)et=" "+et;else{let xn=CI(et,/^[\r\n\t ]+/);Xt=xn&&xn[0]}Ze==="application/xhtml+xml"&>===Tt&&(et=''+et+"");let tr=L?L.createHTML(et):et;if(gt===Tt)try{Bt=new p().parseFromString(tr,Ze)}catch{}if(!Bt||!Bt.documentElement){Bt=D.createDocument(gt,"template",null);try{Bt.documentElement.innerHTML=Yt?C:tr}catch{}}let rn=Bt.body||Bt.documentElement;return et&&Xt&&rn.insertBefore(r.createTextNode(Xt),rn.childNodes[0]||null),gt===Tt?A.call(Bt,at?"html":"body")[0]:at?Bt.documentElement:rn},"_initDocument"),be=a(function(et){return $.call(et.ownerDocument||et,et,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),jt=a(function(et){return et instanceof d&&(typeof et.nodeName!="string"||typeof et.textContent!="string"||typeof et.removeChild!="function"||!(et.attributes instanceof f)||typeof et.removeAttribute!="function"||typeof et.setAttribute!="function"||typeof et.namespaceURI!="string"||typeof et.insertBefore!="function"||typeof et.hasChildNodes!="function")},"_isClobbered"),An=a(function(et){return typeof l=="function"&&et instanceof l},"_isNode");function ne(Kt,et,Bt){ux(Kt,Xt=>{Xt.call(t,et,Bt,He)})}a(ne,"_executeHooks");let Si=a(function(et){let Bt=null;if(ne(S.beforeSanitizeElements,et,null),jt(et))return xe(et),!0;let Xt=ke(et.nodeName);if(ne(S.uponSanitizeElement,et,{tagName:Xt,allowedTags:G}),et.hasChildNodes()&&!An(et.firstElementChild)&&Ei(/<[/\w!]/g,et.innerHTML)&&Ei(/<[/\w!]/g,et.textContent)||et.nodeType===Jm.progressingInstruction||H&&et.nodeType===Jm.comment&&Ei(/<[/\w]/g,et.data))return xe(et),!0;if(!G[Xt]||pt[Xt]){if(!pt[Xt]&&Pr(Xt)&&(ct.tagNameCheck instanceof RegExp&&Ei(ct.tagNameCheck,Xt)||ct.tagNameCheck instanceof Function&&ct.tagNameCheck(Xt)))return!1;if(te&&!yt[Xt]){let tr=_(et)||et.parentNode,rn=T(et)||et.childNodes;if(rn&&tr){let xn=rn.length;for(let Wr=xn-1;Wr>=0;--Wr){let Xi=y(rn[Wr],!0);Xi.__removalCount=(et.__removalCount||0)+1,tr.insertBefore(Xi,k(et))}}}return xe(et),!0}return et instanceof u&&!Ae(et)||(Xt==="noscript"||Xt==="noembed"||Xt==="noframes")&&Ei(/<\/no(script|embed|frames)/i,et.innerHTML)?(xe(et),!0):(X&&et.nodeType===Jm.text&&(Bt=et.textContent,ux([v,R,B],tr=>{Bt=Km(Bt,tr," ")}),et.textContent!==Bt&&(Xm(t.removed,{element:et.cloneNode()}),et.textContent=Bt)),ne(S.afterSanitizeElements,et,null),!1)},"_sanitizeElements"),fn=a(function(et,Bt,Xt){if(ot&&(Bt==="id"||Bt==="name")&&(Xt in r||Xt in Te))return!1;if(!(ut&&!Lt[Bt]&&Ei(I,Bt))){if(!(bt&&Ei(M,Bt))){if(!rt[Bt]||Lt[Bt]){if(!(Pr(et)&&(ct.tagNameCheck instanceof RegExp&&Ei(ct.tagNameCheck,et)||ct.tagNameCheck instanceof Function&&ct.tagNameCheck(et))&&(ct.attributeNameCheck instanceof RegExp&&Ei(ct.attributeNameCheck,Bt)||ct.attributeNameCheck instanceof Function&&ct.attributeNameCheck(Bt))||Bt==="is"&&ct.allowCustomizedBuiltInElements&&(ct.tagNameCheck instanceof RegExp&&Ei(ct.tagNameCheck,Xt)||ct.tagNameCheck instanceof Function&&ct.tagNameCheck(Xt))))return!1}else if(!Nt[Bt]){if(!Ei(V,Km(Xt,N,""))){if(!((Bt==="src"||Bt==="xlink:href"||Bt==="href")&&et!=="script"&&Elt(Xt,"data:")===0&&wt[et])){if(!(it&&!Ei(O,Km(Xt,N,"")))){if(Xt)return!1}}}}}}return!0},"_isValidAttribute"),Pr=a(function(et){return et!=="annotation-xml"&&CI(et,E)},"_isBasicCustomElement"),vr=a(function(et){ne(S.beforeSanitizeAttributes,et,null);let{attributes:Bt}=et;if(!Bt||jt(et))return;let Xt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:rt,forceKeepAttr:void 0},tr=Bt.length;for(;tr--;){let rn=Bt[tr],{name:xn,namespaceURI:Wr,value:Xi}=rn,iu=ke(xn),Ln=xn==="value"?Xi:vlt(Xi);if(Xt.attrName=iu,Xt.attrValue=Ln,Xt.keepAttr=!0,Xt.forceKeepAttr=void 0,ne(S.uponSanitizeAttribute,et,Xt),Ln=Xt.attrValue,Jt&&(iu==="id"||iu==="name")&&(he(xn,et),Ln=ve+Ln),H&&Ei(/((--!?|])>)|<\/(style|title)/i,Ln)){he(xn,et);continue}if(Xt.forceKeepAttr||(he(xn,et),!Xt.keepAttr))continue;if(!st&&Ei(/\/>/i,Ln)){he(xn,et);continue}X&&ux([v,R,B],ie=>{Ln=Km(Ln,ie," ")});let ya=ke(et.nodeName);if(fn(ya,iu,Ln)){if(L&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Wr)switch(m.getAttributeType(ya,iu)){case"TrustedHTML":{Ln=L.createHTML(Ln);break}case"TrustedScriptURL":{Ln=L.createScriptURL(Ln);break}}try{Wr?et.setAttributeNS(Wr,xn,Ln):et.setAttribute(xn,Ln),jt(et)?xe(et):_I(t.removed)}catch{}}}ne(S.afterSanitizeAttributes,et,null)},"_sanitizeAttributes"),ci=a(function Kt(et){let Bt=null,Xt=be(et);for(ne(S.beforeSanitizeShadowDOM,et,null);Bt=Xt.nextNode();)ne(S.uponSanitizeShadowNode,Bt,null),Si(Bt),vr(Bt),Bt.content instanceof s&&Kt(Bt.content);ne(S.afterSanitizeShadowDOM,et,null)},"_sanitizeShadowDOM");return t.sanitize=function(Kt){let et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Bt=null,Xt=null,tr=null,rn=null;if(Yt=!Kt,Yt&&(Kt=""),typeof Kt!="string"&&!An(Kt))if(typeof Kt.toString=="function"){if(Kt=Kt.toString(),typeof Kt!="string")throw Qm("dirty is not a string, aborting")}else throw Qm("toString is not a function");if(!t.isSupported)return Kt;if(W||yn(et),t.removed=[],typeof Kt=="string"&&(vt=!1),vt){if(Kt.nodeName){let Xi=ke(Kt.nodeName);if(!G[Xi]||pt[Xi])throw Qm("root node is forbidden and cannot be sanitized in-place")}}else if(Kt instanceof l)Bt=ge(""),Xt=Bt.ownerDocument.importNode(Kt,!0),Xt.nodeType===Jm.element&&Xt.nodeName==="BODY"||Xt.nodeName==="HTML"?Bt=Xt:Bt.appendChild(Xt);else{if(!q&&!X&&!at&&Kt.indexOf("<")===-1)return L&&ye?L.createHTML(Kt):Kt;if(Bt=ge(Kt),!Bt)return q?null:ye?C:""}Bt&&mt&&xe(Bt.firstChild);let xn=be(vt?Kt:Bt);for(;tr=xn.nextNode();)Si(tr),vr(tr),tr.content instanceof s&&ci(tr.content);if(vt)return Kt;if(q){if(Z)for(rn=w.call(Bt.ownerDocument);Bt.firstChild;)rn.appendChild(Bt.firstChild);else rn=Bt;return(rt.shadowroot||rt.shadowrootmode)&&(rn=F.call(n,rn,!0)),rn}let Wr=at?Bt.outerHTML:Bt.innerHTML;return at&&G["!doctype"]&&Bt.ownerDocument&&Bt.ownerDocument.doctype&&Bt.ownerDocument.doctype.name&&Ei(MI,Bt.ownerDocument.doctype.name)&&(Wr="
+`+Wr),X&&ux([v,R,B],Xi=>{Wr=Km(Wr,Xi," ")}),L&&ye?L.createHTML(Wr):Wr},t.setConfig=function(){let Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yn(Kt),W=!0},t.clearConfig=function(){He=null,W=!1},t.isValidAttribute=function(Kt,et,Bt){He||yn({});let Xt=ke(Kt),tr=ke(et);return fn(Xt,tr,Bt)},t.addHook=function(Kt,et){typeof et=="function"&&Xm(S[Kt],et)},t.removeHook=function(Kt,et){if(et!==void 0){let Bt=Clt(S[Kt],et);return Bt===-1?void 0:wlt(S[Kt],Bt,1)[0]}return _I(S[Kt])},t.removeHooks=function(Kt){S[Kt]=[]},t.removeAllHooks=function(){S=RI()},t}var DI,SI,Tlt,Slt,_lt,Ai,Ws,II,jC,qC,ux,Clt,_I,Xm,wlt,fx,GC,CI,Km,Elt,vlt,xa,Ei,Qm,wI,VC,zC,Rlt,WC,Dlt,EI,vI,UC,AI,hx,Ilt,Nlt,Mlt,Olt,Plt,NI,Blt,Flt,MI,$lt,LI,Jm,Glt,Vlt,RI,Ul,HC=x(()=>{"use strict";({entries:DI,setPrototypeOf:SI,isFrozen:Tlt,getPrototypeOf:Slt,getOwnPropertyDescriptor:_lt}=Object),{freeze:Ai,seal:Ws,create:II}=Object,{apply:jC,construct:qC}=typeof Reflect<"u"&&Reflect;Ai||(Ai=a(function(t){return t},"freeze"));Ws||(Ws=a(function(t){return t},"seal"));jC||(jC=a(function(t,r,n){return t.apply(r,n)},"apply"));qC||(qC=a(function(t,r){return new t(...r)},"construct"));ux=Li(Array.prototype.forEach),Clt=Li(Array.prototype.lastIndexOf),_I=Li(Array.prototype.pop),Xm=Li(Array.prototype.push),wlt=Li(Array.prototype.splice),fx=Li(String.prototype.toLowerCase),GC=Li(String.prototype.toString),CI=Li(String.prototype.match),Km=Li(String.prototype.replace),Elt=Li(String.prototype.indexOf),vlt=Li(String.prototype.trim),xa=Li(Object.prototype.hasOwnProperty),Ei=Li(RegExp.prototype.test),Qm=Alt(TypeError);a(Li,"unapply");a(Alt,"unconstruct");a(qe,"addToSet");a(Llt,"cleanArray");a(pu,"clone");a(Zm,"lookupGetter");wI=Ai(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),VC=Ai(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zC=Ai(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rlt=Ai(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),WC=Ai(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Dlt=Ai(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),EI=Ai(["#text"]),vI=Ai(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),UC=Ai(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),AI=Ai(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),hx=Ai(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ilt=Ws(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Nlt=Ws(/<%[\w\W]*|[\w\W]*%>/gm),Mlt=Ws(/\$\{[\w\W]*/gm),Olt=Ws(/^data-[\-\w.\u00B7-\uFFFF]+$/),Plt=Ws(/^aria-[\-\w]+$/),NI=Ws(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Blt=Ws(/^(?:\w+script|data):/i),Flt=Ws(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),MI=Ws(/^html$/i),$lt=Ws(/^[a-z][.\w]*(-[.\w]+)+$/i),LI=Object.freeze({__proto__:null,ARIA_ATTR:Plt,ATTR_WHITESPACE:Flt,CUSTOM_ELEMENT:$lt,DATA_ATTR:Olt,DOCTYPE_NAME:MI,ERB_EXPR:Nlt,IS_ALLOWED_URI:NI,IS_SCRIPT_OR_DATA:Blt,MUSTACHE_EXPR:Ilt,TMPLIT_EXPR:Mlt}),Jm={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Glt=a(function(){return typeof window>"u"?null:window},"getGlobal"),Vlt=a(function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null,i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));let s="dompurify"+(n?"#"+n:"");try{return t.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},"_createTrustedTypesPolicy"),RI=a(function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},"_createHooksMap");a(OI,"createDOMPurify");Ul=OI()});function Ult(){let e="data-temp-href-target";Ul.addHook("beforeSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Ul.addHook("afterSanitizeAttributes",t=>{t instanceof Element&&t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}var af,zlt,Wlt,BI,PI,er,jlt,qlt,Hlt,Ylt,FI,Xlt,Ne,Klt,Qlt,eo,YC,Zlt,Jlt,tct,XC,Tn,mu,jl,Rt,Fe=x(()=>{"use strict";HC();af=/
/gi,zlt=a(e=>e?FI(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),Wlt=(()=>{let e=!1;return()=>{e||(Ult(),e=!0)}})();a(Ult,"setupDompurifyHooks");BI=a(e=>(Wlt(),Ul.sanitize(e)),"removeScript"),PI=a((e,t)=>{if(t.flowchart?.htmlLabels!==!1){let r=t.securityLevel;r==="antiscript"||r==="strict"?e=BI(e):r!=="loose"&&(e=FI(e),e=e.replace(//g,">"),e=e.replace(/=/g,"="),e=Ylt(e))}return e},"sanitizeMore"),er=a((e,t)=>e&&(t.dompurifyConfig?e=Ul.sanitize(PI(e,t),t.dompurifyConfig).toString():e=Ul.sanitize(PI(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),jlt=a((e,t)=>typeof e=="string"?er(e,t):e.flat().map(r=>er(r,t)),"sanitizeTextOrArray"),qlt=a(e=>af.test(e),"hasBreaks"),Hlt=a(e=>e.split(af),"splitBreaks"),Ylt=a(e=>e.replace(/#br#/g,"
"),"placeholderToBreak"),FI=a(e=>e.replace(af,"#br#"),"breakToPlaceholder"),Xlt=a(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=t.replaceAll(/\(/g,"\\("),t=t.replaceAll(/\)/g,"\\)")),t},"getUrl"),Ne=a(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Klt=a(function(...e){let t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),Qlt=a(function(...e){let t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),eo=a(function(e){let t=e.split(/(,)/),r=[];for(let n=0;n0&&n+1Math.max(0,e.split(t).length-1),"countOccurrence"),Zlt=a((e,t)=>{let r=YC(e,"~"),n=YC(t,"~");return r===1&&n===1},"shouldCombineSets"),Jlt=a(e=>{let t=YC(e,"~"),r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);let n=[...e],i=n.indexOf("~"),s=n.lastIndexOf("~");for(;i!==-1&&s!==-1&&i!==s;)n[i]="<",n[s]=">",i=n.indexOf("~"),s=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),tct=a(()=>window.MathMLElement!==void 0,"isMathMLSupported"),XC=/\$\$(.*)\$\$/g,Tn=a(e=>(e.match(XC)?.length??0)>0,"hasKatex"),mu=a(async(e,t)=>{e=await jl(e,t);let r=document.createElement("div");r.innerHTML=e,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),jl=a(async(e,t)=>Tn(e)?tct()||t.legacyMathML||t.forceLegacyMathML?e.replace(XC,"Katex is unsupported in mermaid.tiny.js. Please use mermaid.js or mermaid.min.js."):e.replace(XC,"MathML is unsupported in this environment."):e,"renderKatex"),Rt={getRows:zlt,sanitizeText:er,sanitizeTextOrArray:jlt,hasBreaks:qlt,splitBreaks:Hlt,lineBreakRegex:af,removeScript:BI,getUrl:Xlt,evaluate:Ne,getMax:Klt,getMin:Qlt}});var ect,rct,Rr,ql,Gn=x(()=>{"use strict";zt();ect=a(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),rct=a(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),Rr=a(function(e,t,r,n){let i=rct(t,r,n);ect(e,i)},"configureSvgSize"),ql=a(function(e,t,r,n){let i=t.node().getBBox(),s=i.width,o=i.height;P.info(`SVG bounds: ${s}x${o}`,i);let l=0,u=0;P.info(`Graph bounds: ${l}x${u}`,e),l=s+r*2,u=o+r*2,P.info(`Calculated bounds: ${l}x${u}`),Rr(t,u,l,n);let h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox")});var dx,nct,$I,GI,KC=x(()=>{"use strict";zt();dx={},nct=a((e,t,r)=>{let n="";return e in dx&&dx[e]?n=dx[e](r):P.warn(`No theme found for ${e}`),` & {
+ font-family: ${r.fontFamily};
+ font-size: ${r.fontSize};
+ fill: ${r.textColor}
+ }
+ @keyframes edge-animation-frame {
+ from {
+ stroke-dashoffset: 0;
+ }
+ }
+ @keyframes dash {
+ to {
+ stroke-dashoffset: 0;
+ }
+ }
+ & .edge-animation-slow {
+ stroke-dasharray: 9,5 !important;
+ stroke-dashoffset: 900;
+ animation: dash 50s linear infinite;
+ stroke-linecap: round;
+ }
+ & .edge-animation-fast {
+ stroke-dasharray: 9,5 !important;
+ stroke-dashoffset: 900;
+ animation: dash 20s linear infinite;
+ stroke-linecap: round;
+ }
+ /* Classes common for multiple diagrams */
+
+ & .error-icon {
+ fill: ${r.errorBkgColor};
+ }
+ & .error-text {
+ fill: ${r.errorTextColor};
+ stroke: ${r.errorTextColor};
+ }
+
+ & .edge-thickness-normal {
+ stroke-width: 1px;
+ }
+ & .edge-thickness-thick {
+ stroke-width: 3.5px
+ }
+ & .edge-pattern-solid {
+ stroke-dasharray: 0;
+ }
+ & .edge-thickness-invisible {
+ stroke-width: 0;
+ fill: none;
+ }
+ & .edge-pattern-dashed{
+ stroke-dasharray: 3;
+ }
+ .edge-pattern-dotted {
+ stroke-dasharray: 2;
+ }
+
+ & .marker {
+ fill: ${r.lineColor};
+ stroke: ${r.lineColor};
+ }
+ & .marker.cross {
+ stroke: ${r.lineColor};
+ }
+
+ & svg {
+ font-family: ${r.fontFamily};
+ font-size: ${r.fontSize};
+ }
+ & p {
+ margin: 0
+ }
+
+ ${n}
+
+ ${t}
+`},"getStyles"),$I=a((e,t)=>{t!==void 0&&(dx[e]=t)},"addStylesForDiagram"),GI=nct});var tg={};Be(tg,{clear:()=>Ye,getAccDescription:()=>ar,getAccTitle:()=>ir,getDiagramTitle:()=>or,setAccDescription:()=>sr,setAccTitle:()=>rr,setDiagramTitle:()=>xr});var QC,ZC,JC,tw,Ye,rr,ir,sr,ar,xr,or,Sn=x(()=>{"use strict";Fe();$n();QC="",ZC="",JC="",tw=a(e=>er(e,Re()),"sanitizeText"),Ye=a(()=>{QC="",JC="",ZC=""},"clear"),rr=a(e=>{QC=tw(e).replace(/^\s+/g,"")},"setAccTitle"),ir=a(()=>QC,"getAccTitle"),sr=a(e=>{JC=tw(e).replace(/\n\s+/g,`
+`)},"setAccDescription"),ar=a(()=>JC,"getAccDescription"),xr=a(e=>{ZC=tw(e)},"setDiagramTitle"),or=a(()=>ZC,"getDiagramTitle")});var VI,ict,Y,eg,mx,rg,rw,sct,px,gu,ng,ew,pe=x(()=>{"use strict";hu();zt();$n();Fe();Gn();KC();Sn();VI=P,ict=$m,Y=Re,eg=cx,mx=Wl,rg=a(e=>er(e,Y()),"sanitizeText"),rw=ql,sct=a(()=>tg,"getCommonDb"),px={},gu=a((e,t,r)=>{px[e]&&VI.warn(`Diagram with id ${e} already registered. Overwriting.`),px[e]=t,r&&TC(e,r),$I(e,t.styles),t.injectUtils?.(VI,ict,Y,rg,rw,sct(),()=>{})},"registerDiagram"),ng=a(e=>{if(e in px)return px[e];throw new ew(e)},"getDiagram"),ew=class extends Error{static{a(this,"DiagramNotFoundError")}constructor(t){super(`Diagram ${t} not found.`)}}});var ka,Hl,Ri,ba,ro,ig,nw,iw,gx,yx,zI,act,oct,lct,cct,uct,hct,fct,dct,pct,mct,gct,yct,xct,bct,kct,Tct,Sct,WI,_ct,Cct,UI,wct,Ect,vct,Act,Yl,Lct,Rct,Dct,Ict,Nct,sg,sw=x(()=>{"use strict";pe();Fe();Sn();ka=[],Hl=[""],Ri="global",ba="",ro=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ig=[],nw="",iw=!1,gx=4,yx=2,act=a(function(){return zI},"getC4Type"),oct=a(function(e){zI=er(e,Y())},"setC4Type"),lct=a(function(e,t,r,n,i,s,o,l,u){if(e==null||t===void 0||t===null||r===void 0||r===null||n===void 0||n===null)return;let h={},f=ig.find(d=>d.from===t&&d.to===r);if(f?h=f:ig.push(h),h.type=e,h.from=t,h.to=r,h.label={text:n},i==null)h.techn={text:""};else if(typeof i=="object"){let[d,p]=Object.entries(i)[0];h[d]={text:p}}else h.techn={text:i};if(s==null)h.descr={text:""};else if(typeof s=="object"){let[d,p]=Object.entries(s)[0];h[d]={text:p}}else h.descr={text:s};if(typeof o=="object"){let[d,p]=Object.entries(o)[0];h[d]=p}else h.sprite=o;if(typeof l=="object"){let[d,p]=Object.entries(l)[0];h[d]=p}else h.tags=l;if(typeof u=="object"){let[d,p]=Object.entries(u)[0];h[d]=p}else h.link=u;h.wrap=Yl()},"addRel"),cct=a(function(e,t,r,n,i,s,o){if(t===null||r===null)return;let l={},u=ka.find(h=>h.alias===t);if(u&&t===u.alias?l=u:(l.alias=t,ka.push(l)),r==null?l.label={text:""}:l.label={text:r},n==null)l.descr={text:""};else if(typeof n=="object"){let[h,f]=Object.entries(n)[0];l[h]={text:f}}else l.descr={text:n};if(typeof i=="object"){let[h,f]=Object.entries(i)[0];l[h]=f}else l.sprite=i;if(typeof s=="object"){let[h,f]=Object.entries(s)[0];l[h]=f}else l.tags=s;if(typeof o=="object"){let[h,f]=Object.entries(o)[0];l[h]=f}else l.link=o;l.typeC4Shape={text:e},l.parentBoundary=Ri,l.wrap=Yl()},"addPersonOrSystem"),uct=a(function(e,t,r,n,i,s,o,l){if(t===null||r===null)return;let u={},h=ka.find(f=>f.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ka.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.sprite=s;if(typeof o=="object"){let[f,d]=Object.entries(o)[0];u[f]=d}else u.tags=o;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=Yl(),u.typeC4Shape={text:e},u.parentBoundary=Ri},"addContainer"),hct=a(function(e,t,r,n,i,s,o,l){if(t===null||r===null)return;let u={},h=ka.find(f=>f.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ka.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.techn={text:""};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.techn={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof s=="object"){let[f,d]=Object.entries(s)[0];u[f]=d}else u.sprite=s;if(typeof o=="object"){let[f,d]=Object.entries(o)[0];u[f]=d}else u.tags=o;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.wrap=Yl(),u.typeC4Shape={text:e},u.parentBoundary=Ri},"addComponent"),fct=a(function(e,t,r,n,i){if(e===null||t===null)return;let s={},o=ro.find(l=>l.alias===e);if(o&&e===o.alias?s=o:(s.alias=e,ro.push(s)),t==null?s.label={text:""}:s.label={text:t},r==null)s.type={text:"system"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];s[l]={text:u}}else s.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];s[l]=u}else s.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];s[l]=u}else s.link=i;s.parentBoundary=Ri,s.wrap=Yl(),ba=Ri,Ri=e,Hl.push(ba)},"addPersonOrSystemBoundary"),dct=a(function(e,t,r,n,i){if(e===null||t===null)return;let s={},o=ro.find(l=>l.alias===e);if(o&&e===o.alias?s=o:(s.alias=e,ro.push(s)),t==null?s.label={text:""}:s.label={text:t},r==null)s.type={text:"container"};else if(typeof r=="object"){let[l,u]=Object.entries(r)[0];s[l]={text:u}}else s.type={text:r};if(typeof n=="object"){let[l,u]=Object.entries(n)[0];s[l]=u}else s.tags=n;if(typeof i=="object"){let[l,u]=Object.entries(i)[0];s[l]=u}else s.link=i;s.parentBoundary=Ri,s.wrap=Yl(),ba=Ri,Ri=e,Hl.push(ba)},"addContainerBoundary"),pct=a(function(e,t,r,n,i,s,o,l){if(t===null||r===null)return;let u={},h=ro.find(f=>f.alias===t);if(h&&t===h.alias?u=h:(u.alias=t,ro.push(u)),r==null?u.label={text:""}:u.label={text:r},n==null)u.type={text:"node"};else if(typeof n=="object"){let[f,d]=Object.entries(n)[0];u[f]={text:d}}else u.type={text:n};if(i==null)u.descr={text:""};else if(typeof i=="object"){let[f,d]=Object.entries(i)[0];u[f]={text:d}}else u.descr={text:i};if(typeof o=="object"){let[f,d]=Object.entries(o)[0];u[f]=d}else u.tags=o;if(typeof l=="object"){let[f,d]=Object.entries(l)[0];u[f]=d}else u.link=l;u.nodeType=e,u.parentBoundary=Ri,u.wrap=Yl(),ba=Ri,Ri=t,Hl.push(ba)},"addDeploymentNode"),mct=a(function(){Ri=ba,Hl.pop(),ba=Hl.pop(),Hl.push(ba)},"popBoundaryParseStack"),gct=a(function(e,t,r,n,i,s,o,l,u,h,f){let d=ka.find(p=>p.alias===t);if(!(d===void 0&&(d=ro.find(p=>p.alias===t),d===void 0))){if(r!=null)if(typeof r=="object"){let[p,m]=Object.entries(r)[0];d[p]=m}else d.bgColor=r;if(n!=null)if(typeof n=="object"){let[p,m]=Object.entries(n)[0];d[p]=m}else d.fontColor=n;if(i!=null)if(typeof i=="object"){let[p,m]=Object.entries(i)[0];d[p]=m}else d.borderColor=i;if(s!=null)if(typeof s=="object"){let[p,m]=Object.entries(s)[0];d[p]=m}else d.shadowing=s;if(o!=null)if(typeof o=="object"){let[p,m]=Object.entries(o)[0];d[p]=m}else d.shape=o;if(l!=null)if(typeof l=="object"){let[p,m]=Object.entries(l)[0];d[p]=m}else d.sprite=l;if(u!=null)if(typeof u=="object"){let[p,m]=Object.entries(u)[0];d[p]=m}else d.techn=u;if(h!=null)if(typeof h=="object"){let[p,m]=Object.entries(h)[0];d[p]=m}else d.legendText=h;if(f!=null)if(typeof f=="object"){let[p,m]=Object.entries(f)[0];d[p]=m}else d.legendSprite=f}},"updateElStyle"),yct=a(function(e,t,r,n,i,s,o){let l=ig.find(u=>u.from===t&&u.to===r);if(l!==void 0){if(n!=null)if(typeof n=="object"){let[u,h]=Object.entries(n)[0];l[u]=h}else l.textColor=n;if(i!=null)if(typeof i=="object"){let[u,h]=Object.entries(i)[0];l[u]=h}else l.lineColor=i;if(s!=null)if(typeof s=="object"){let[u,h]=Object.entries(s)[0];l[u]=parseInt(h)}else l.offsetX=parseInt(s);if(o!=null)if(typeof o=="object"){let[u,h]=Object.entries(o)[0];l[u]=parseInt(h)}else l.offsetY=parseInt(o)}},"updateRelStyle"),xct=a(function(e,t,r){let n=gx,i=yx;if(typeof t=="object"){let s=Object.values(t)[0];n=parseInt(s)}else n=parseInt(t);if(typeof r=="object"){let s=Object.values(r)[0];i=parseInt(s)}else i=parseInt(r);n>=1&&(gx=n),i>=1&&(yx=i)},"updateLayoutConfig"),bct=a(function(){return gx},"getC4ShapeInRow"),kct=a(function(){return yx},"getC4BoundaryInRow"),Tct=a(function(){return Ri},"getCurrentBoundaryParse"),Sct=a(function(){return ba},"getParentBoundaryParse"),WI=a(function(e){return e==null?ka:ka.filter(t=>t.parentBoundary===e)},"getC4ShapeArray"),_ct=a(function(e){return ka.find(t=>t.alias===e)},"getC4Shape"),Cct=a(function(e){return Object.keys(WI(e))},"getC4ShapeKeys"),UI=a(function(e){return e==null?ro:ro.filter(t=>t.parentBoundary===e)},"getBoundaries"),wct=UI,Ect=a(function(){return ig},"getRels"),vct=a(function(){return nw},"getTitle"),Act=a(function(e){iw=e},"setWrap"),Yl=a(function(){return iw},"autoWrap"),Lct=a(function(){ka=[],ro=[{alias:"global",label:{text:"global"},type:{text:"global"},tags:null,link:null,parentBoundary:""}],ba="",Ri="global",Hl=[""],ig=[],Hl=[""],nw="",iw=!1,gx=4,yx=2},"clear"),Rct={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},Dct={FILLED:0,OPEN:1},Ict={LEFTOF:0,RIGHTOF:1,OVER:2},Nct=a(function(e){nw=er(e,Y())},"setTitle"),sg={addPersonOrSystem:cct,addPersonOrSystemBoundary:fct,addContainer:uct,addContainerBoundary:dct,addComponent:hct,addDeploymentNode:pct,popBoundaryParseStack:mct,addRel:lct,updateElStyle:gct,updateRelStyle:yct,updateLayoutConfig:xct,autoWrap:Yl,setWrap:Act,getC4ShapeArray:WI,getC4Shape:_ct,getC4ShapeKeys:Cct,getBoundaries:UI,getBoundarys:wct,getCurrentBoundaryParse:Tct,getParentBoundaryParse:Sct,getRels:Ect,getTitle:vct,getC4Type:act,getC4ShapeInRow:bct,getC4BoundaryInRow:kct,setAccTitle:rr,getAccTitle:ir,getAccDescription:ar,setAccDescription:sr,getConfig:a(()=>Y().c4,"getConfig"),clear:Lct,LINETYPE:Rct,ARROWTYPE:Dct,PLACEMENT:Ict,setTitle:Nct,setC4Type:oct}});function yu(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}var aw=x(()=>{"use strict";a(yu,"ascending")});function ow(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}var jI=x(()=>{"use strict";a(ow,"descending")});function xu(e){let t,r,n;e.length!==2?(t=yu,r=a((l,u)=>yu(e(l),u),"compare2"),n=a((l,u)=>e(l)-u,"delta")):(t=e===yu||e===ow?e:Mct,r=e,n=e);function i(l,u,h=0,f=l.length){if(h>>1;r(l[d],u)<0?h=d+1:f=d}while(h>>1;r(l[d],u)<=0?h=d+1:f=d}while(hh&&n(l[d-1],u)>-n(l[d],u)?d-1:d}return a(o,"center"),{left:i,center:o,right:s}}function Mct(){return 0}var lw=x(()=>{"use strict";aw();jI();a(xu,"bisector");a(Mct,"zero")});function cw(e){return e===null?NaN:+e}var qI=x(()=>{"use strict";a(cw,"number")});var HI,YI,Oct,Pct,uw,XI=x(()=>{"use strict";aw();lw();qI();HI=xu(yu),YI=HI.right,Oct=HI.left,Pct=xu(cw).center,uw=YI});function KI({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function Bct({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Fct({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function $ct(e){return e!==null&&typeof e=="object"?e.valueOf():e}var of,QI=x(()=>{"use strict";of=class extends Map{static{a(this,"InternMap")}constructor(t,r=$ct){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(let[n,i]of t)this.set(n,i)}get(t){return super.get(KI(this,t))}has(t){return super.has(KI(this,t))}set(t,r){return super.set(Bct(this,t),r)}delete(t){return super.delete(Fct(this,t))}};a(KI,"intern_get");a(Bct,"intern_set");a(Fct,"intern_delete");a($ct,"keyof")});function xx(e,t,r){let n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),s=n/Math.pow(10,i),o=s>=Gct?10:s>=Vct?5:s>=zct?2:1,l,u,h;return i<0?(h=Math.pow(10,-i)/o,l=Math.round(e*h),u=Math.round(t*h),l/ht&&--u,h=-h):(h=Math.pow(10,i)*o,l=Math.round(e/h),u=Math.round(t/h),l*ht&&--u),u0))return[];if(e===t)return[e];let n=t=i))return[];let l=s-i+1,u=new Array(l);if(n)if(o<0)for(let h=0;h{"use strict";Gct=Math.sqrt(50),Vct=Math.sqrt(10),zct=Math.sqrt(2);a(xx,"tickSpec");a(bx,"ticks");a(ag,"tickIncrement");a(lf,"tickStep")});function kx(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r=i)&&(r=i)}return r}var JI=x(()=>{"use strict";a(kx,"max")});function Tx(e,t){let r;if(t===void 0)for(let n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let i of e)(i=t(i,++n,e))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}var tN=x(()=>{"use strict";a(Tx,"min")});function Sx(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,s=new Array(i);++n{"use strict";a(Sx,"range")});var Xl=x(()=>{"use strict";XI();lw();JI();tN();eN();ZI();QI()});function hw(e){return e}var rN=x(()=>{"use strict";a(hw,"default")});function Wct(e){return"translate("+e+",0)"}function Uct(e){return"translate(0,"+e+")"}function jct(e){return t=>+e(t)}function qct(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function Hct(){return!this.__axis}function iN(e,t){var r=[],n=null,i=null,s=6,o=6,l=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=e===Cx||e===_x?-1:1,f=e===_x||e===fw?"x":"y",d=e===Cx||e===dw?Wct:Uct;function p(m){var g=n??(t.ticks?t.ticks.apply(t,r):t.domain()),y=i??(t.tickFormat?t.tickFormat.apply(t,r):hw),b=Math.max(s,0)+l,k=t.range(),T=+k[0]+u,_=+k[k.length-1]+u,L=(t.bandwidth?qct:jct)(t.copy(),u),C=m.selection?m.selection():m,D=C.selectAll(".domain").data([null]),$=C.selectAll(".tick").data(g,t).order(),w=$.exit(),A=$.enter().append("g").attr("class","tick"),F=$.select("line"),S=$.select("text");D=D.merge(D.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(A),F=F.merge(A.append("line").attr("stroke","currentColor").attr(f+"2",h*s)),S=S.merge(A.append("text").attr("fill","currentColor").attr(f,h*b).attr("dy",e===Cx?"0em":e===dw?"0.71em":"0.32em")),m!==C&&(D=D.transition(m),$=$.transition(m),F=F.transition(m),S=S.transition(m),w=w.transition(m).attr("opacity",nN).attr("transform",function(v){return isFinite(v=L(v))?d(v+u):this.getAttribute("transform")}),A.attr("opacity",nN).attr("transform",function(v){var R=this.parentNode.__axis;return d((R&&isFinite(R=R(v))?R:L(v))+u)})),w.remove(),D.attr("d",e===_x||e===fw?o?"M"+h*o+","+T+"H"+u+"V"+_+"H"+h*o:"M"+u+","+T+"V"+_:o?"M"+T+","+h*o+"V"+u+"H"+_+"V"+h*o:"M"+T+","+u+"H"+_),$.attr("opacity",1).attr("transform",function(v){return d(L(v)+u)}),F.attr(f+"2",h*s),S.attr(f,h*b).text(y),C.filter(Hct).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===fw?"start":e===_x?"end":"middle"),C.each(function(){this.__axis=L})}return a(p,"axis"),p.scale=function(m){return arguments.length?(t=m,p):t},p.ticks=function(){return r=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(r=m==null?[]:Array.from(m),p):r.slice()},p.tickValues=function(m){return arguments.length?(n=m==null?null:Array.from(m),p):n&&n.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(s=o=+m,p):s},p.tickSizeInner=function(m){return arguments.length?(s=+m,p):s},p.tickSizeOuter=function(m){return arguments.length?(o=+m,p):o},p.tickPadding=function(m){return arguments.length?(l=+m,p):l},p.offset=function(m){return arguments.length?(u=+m,p):u},p}function pw(e){return iN(Cx,e)}function mw(e){return iN(dw,e)}var Cx,fw,dw,_x,nN,sN=x(()=>{"use strict";rN();Cx=1,fw=2,dw=3,_x=4,nN=1e-6;a(Wct,"translateX");a(Uct,"translateY");a(jct,"number");a(qct,"center");a(Hct,"entering");a(iN,"axis");a(pw,"axisTop");a(mw,"axisBottom")});var aN=x(()=>{"use strict";sN()});function lN(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}function Kct(e,t){for(var r=0,n=e.length,i;r{"use strict";Yct={value:a(()=>{},"value")};a(lN,"dispatch");a(wx,"Dispatch");a(Xct,"parseTypenames");wx.prototype=lN.prototype={constructor:wx,on:a(function(e,t){var r=this._,n=Xct(e+"",r),i,s=-1,o=n.length;if(arguments.length<2){for(;++s0)for(var r=new Array(i),n=0,i,s;n{"use strict";cN()});var Ex,xw,bw=x(()=>{"use strict";Ex="http://www.w3.org/1999/xhtml",xw={svg:"http://www.w3.org/2000/svg",xhtml:Ex,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}});function no(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),xw.hasOwnProperty(t)?{space:xw[t],local:e}:e}var vx=x(()=>{"use strict";bw();a(no,"default")});function Qct(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Ex&&t.documentElement.namespaceURI===Ex?t.createElement(e):t.createElementNS(r,e)}}function Zct(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function og(e){var t=no(e);return(t.local?Zct:Qct)(t)}var kw=x(()=>{"use strict";vx();bw();a(Qct,"creatorInherit");a(Zct,"creatorFixed");a(og,"default")});function Jct(){}function Kl(e){return e==null?Jct:function(){return this.querySelector(e)}}var Ax=x(()=>{"use strict";a(Jct,"none");a(Kl,"default")});function Tw(e){typeof e!="function"&&(e=Kl(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Ta();Ax();a(Tw,"default")});function Sw(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var hN=x(()=>{"use strict";a(Sw,"array")});function tut(){return[]}function cf(e){return e==null?tut:function(){return this.querySelectorAll(e)}}var _w=x(()=>{"use strict";a(tut,"empty");a(cf,"default")});function eut(e){return function(){return Sw(e.apply(this,arguments))}}function Cw(e){typeof e=="function"?e=eut(e):e=cf(e);for(var t=this._groups,r=t.length,n=[],i=[],s=0;s{"use strict";Ta();hN();_w();a(eut,"arrayAll");a(Cw,"default")});function uf(e){return function(){return this.matches(e)}}function Lx(e){return function(t){return t.matches(e)}}var lg=x(()=>{"use strict";a(uf,"default");a(Lx,"childMatcher")});function nut(e){return function(){return rut.call(this.children,e)}}function iut(){return this.firstElementChild}function ww(e){return this.select(e==null?iut:nut(typeof e=="function"?e:Lx(e)))}var rut,dN=x(()=>{"use strict";lg();rut=Array.prototype.find;a(nut,"childFind");a(iut,"childFirst");a(ww,"default")});function aut(){return Array.from(this.children)}function out(e){return function(){return sut.call(this.children,e)}}function Ew(e){return this.selectAll(e==null?aut:out(typeof e=="function"?e:Lx(e)))}var sut,pN=x(()=>{"use strict";lg();sut=Array.prototype.filter;a(aut,"children");a(out,"childrenFilter");a(Ew,"default")});function vw(e){typeof e!="function"&&(e=uf(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Ta();lg();a(vw,"default")});function cg(e){return new Array(e.length)}var Aw=x(()=>{"use strict";a(cg,"default")});function Lw(){return new on(this._enter||this._groups.map(cg),this._parents)}function ug(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var Rw=x(()=>{"use strict";Aw();Ta();a(Lw,"default");a(ug,"EnterNode");ug.prototype={constructor:ug,appendChild:a(function(e){return this._parent.insertBefore(e,this._next)},"appendChild"),insertBefore:a(function(e,t){return this._parent.insertBefore(e,t)},"insertBefore"),querySelector:a(function(e){return this._parent.querySelector(e)},"querySelector"),querySelectorAll:a(function(e){return this._parent.querySelectorAll(e)},"querySelectorAll")}});function Dw(e){return function(){return e}}var gN=x(()=>{"use strict";a(Dw,"default")});function lut(e,t,r,n,i,s){for(var o=0,l,u=t.length,h=s.length;o=_&&(_=T+1);!(C=b[_])&&++_{"use strict";Ta();Rw();gN();a(lut,"bindIndex");a(cut,"bindKey");a(uut,"datum");a(Iw,"default");a(hut,"arraylike")});function Nw(){return new on(this._exit||this._groups.map(cg),this._parents)}var xN=x(()=>{"use strict";Aw();Ta();a(Nw,"default")});function Mw(e,t,r){var n=this.enter(),i=this,s=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?s.remove():r(s),n&&i?n.merge(i).order():i}var bN=x(()=>{"use strict";a(Mw,"default")});function Ow(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,s=n.length,o=Math.min(i,s),l=new Array(i),u=0;u{"use strict";Ta();a(Ow,"default")});function Pw(){for(var e=this._groups,t=-1,r=e.length;++t=0;)(o=n[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}var TN=x(()=>{"use strict";a(Pw,"default")});function Bw(e){e||(e=fut);function t(d,p){return d&&p?e(d.__data__,p.__data__):!d-!p}a(t,"compareNode");for(var r=this._groups,n=r.length,i=new Array(n),s=0;st?1:e>=t?0:NaN}var SN=x(()=>{"use strict";Ta();a(Bw,"default");a(fut,"ascending")});function Fw(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var _N=x(()=>{"use strict";a(Fw,"default")});function $w(){return Array.from(this)}var CN=x(()=>{"use strict";a($w,"default")});function Gw(){for(var e=this._groups,t=0,r=e.length;t{"use strict";a(Gw,"default")});function Vw(){let e=0;for(let t of this)++e;return e}var EN=x(()=>{"use strict";a(Vw,"default")});function zw(){return!this.node()}var vN=x(()=>{"use strict";a(zw,"default")});function Ww(e){for(var t=this._groups,r=0,n=t.length;r{"use strict";a(Ww,"default")});function dut(e){return function(){this.removeAttribute(e)}}function put(e){return function(){this.removeAttributeNS(e.space,e.local)}}function mut(e,t){return function(){this.setAttribute(e,t)}}function gut(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function yut(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function xut(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Uw(e,t){var r=no(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?put:dut:typeof t=="function"?r.local?xut:yut:r.local?gut:mut)(r,t))}var LN=x(()=>{"use strict";vx();a(dut,"attrRemove");a(put,"attrRemoveNS");a(mut,"attrConstant");a(gut,"attrConstantNS");a(yut,"attrFunction");a(xut,"attrFunctionNS");a(Uw,"default")});function hg(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var jw=x(()=>{"use strict";a(hg,"default")});function but(e){return function(){this.style.removeProperty(e)}}function kut(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Tut(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function qw(e,t,r){return arguments.length>1?this.each((t==null?but:typeof t=="function"?Tut:kut)(e,t,r??"")):Ql(this.node(),e)}function Ql(e,t){return e.style.getPropertyValue(t)||hg(e).getComputedStyle(e,null).getPropertyValue(t)}var Hw=x(()=>{"use strict";jw();a(but,"styleRemove");a(kut,"styleConstant");a(Tut,"styleFunction");a(qw,"default");a(Ql,"styleValue")});function Sut(e){return function(){delete this[e]}}function _ut(e,t){return function(){this[e]=t}}function Cut(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function Yw(e,t){return arguments.length>1?this.each((t==null?Sut:typeof t=="function"?Cut:_ut)(e,t)):this.node()[e]}var RN=x(()=>{"use strict";a(Sut,"propertyRemove");a(_ut,"propertyConstant");a(Cut,"propertyFunction");a(Yw,"default")});function DN(e){return e.trim().split(/^|\s+/)}function Xw(e){return e.classList||new IN(e)}function IN(e){this._node=e,this._names=DN(e.getAttribute("class")||"")}function NN(e,t){for(var r=Xw(e),n=-1,i=t.length;++n{"use strict";a(DN,"classArray");a(Xw,"classList");a(IN,"ClassList");IN.prototype={add:a(function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:a(function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:a(function(e){return this._names.indexOf(e)>=0},"contains")};a(NN,"classedAdd");a(MN,"classedRemove");a(wut,"classedTrue");a(Eut,"classedFalse");a(vut,"classedFunction");a(Kw,"default")});function Aut(){this.textContent=""}function Lut(e){return function(){this.textContent=e}}function Rut(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Qw(e){return arguments.length?this.each(e==null?Aut:(typeof e=="function"?Rut:Lut)(e)):this.node().textContent}var PN=x(()=>{"use strict";a(Aut,"textRemove");a(Lut,"textConstant");a(Rut,"textFunction");a(Qw,"default")});function Dut(){this.innerHTML=""}function Iut(e){return function(){this.innerHTML=e}}function Nut(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Zw(e){return arguments.length?this.each(e==null?Dut:(typeof e=="function"?Nut:Iut)(e)):this.node().innerHTML}var BN=x(()=>{"use strict";a(Dut,"htmlRemove");a(Iut,"htmlConstant");a(Nut,"htmlFunction");a(Zw,"default")});function Mut(){this.nextSibling&&this.parentNode.appendChild(this)}function Jw(){return this.each(Mut)}var FN=x(()=>{"use strict";a(Mut,"raise");a(Jw,"default")});function Out(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tE(){return this.each(Out)}var $N=x(()=>{"use strict";a(Out,"lower");a(tE,"default")});function eE(e){var t=typeof e=="function"?e:og(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var GN=x(()=>{"use strict";kw();a(eE,"default")});function Put(){return null}function rE(e,t){var r=typeof e=="function"?e:og(e),n=t==null?Put:typeof t=="function"?t:Kl(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}var VN=x(()=>{"use strict";kw();Ax();a(Put,"constantNull");a(rE,"default")});function But(){var e=this.parentNode;e&&e.removeChild(this)}function nE(){return this.each(But)}var zN=x(()=>{"use strict";a(But,"remove");a(nE,"default")});function Fut(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function $ut(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function iE(e){return this.select(e?$ut:Fut)}var WN=x(()=>{"use strict";a(Fut,"selection_cloneShallow");a($ut,"selection_cloneDeep");a(iE,"default")});function sE(e){return arguments.length?this.property("__data__",e):this.node().__data__}var UN=x(()=>{"use strict";a(sE,"default")});function Gut(e){return function(t){e.call(this,t,this.__data__)}}function Vut(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function zut(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,s;r{"use strict";a(Gut,"contextListener");a(Vut,"parseTypenames");a(zut,"onRemove");a(Wut,"onAdd");a(aE,"default")});function qN(e,t,r){var n=hg(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Uut(e,t){return function(){return qN(this,e,t)}}function jut(e,t){return function(){return qN(this,e,t.apply(this,arguments))}}function oE(e,t){return this.each((typeof t=="function"?jut:Uut)(e,t))}var HN=x(()=>{"use strict";jw();a(qN,"dispatchEvent");a(Uut,"dispatchConstant");a(jut,"dispatchFunction");a(oE,"default")});function*lE(){for(var e=this._groups,t=0,r=e.length;t{"use strict";a(lE,"default")});function on(e,t){this._groups=e,this._parents=t}function XN(){return new on([[document.documentElement]],cE)}function qut(){return this}var cE,Qo,Ta=x(()=>{"use strict";uN();fN();dN();pN();mN();yN();Rw();xN();bN();kN();TN();SN();_N();CN();wN();EN();vN();AN();LN();Hw();RN();ON();PN();BN();FN();$N();GN();VN();zN();WN();UN();jN();HN();YN();cE=[null];a(on,"Selection");a(XN,"selection");a(qut,"selection_selection");on.prototype=XN.prototype={constructor:on,select:Tw,selectAll:Cw,selectChild:ww,selectChildren:Ew,filter:vw,data:Iw,enter:Lw,exit:Nw,join:Mw,merge:Ow,selection:qut,order:Pw,sort:Bw,call:Fw,nodes:$w,node:Gw,size:Vw,empty:zw,each:Ww,attr:Uw,style:qw,property:Yw,classed:Kw,text:Qw,html:Zw,raise:Jw,lower:tE,append:eE,insert:rE,remove:nE,clone:iE,datum:sE,on:aE,dispatch:oE,[Symbol.iterator]:lE};Qo=XN});function xt(e){return typeof e=="string"?new on([[document.querySelector(e)]],[document.documentElement]):new on([[e]],cE)}var KN=x(()=>{"use strict";Ta();a(xt,"default")});var Sa=x(()=>{"use strict";lg();vx();KN();Ta();Ax();_w();Hw()});var QN=x(()=>{"use strict"});function Zl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function hf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}var uE=x(()=>{"use strict";a(Zl,"default");a(hf,"extend")});function Jl(){}function JN(){return this.rgb().formatHex()}function tht(){return this.rgb().formatHex8()}function eht(){return aM(this).formatHsl()}function tM(){return this.rgb().formatRgb()}function Ca(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Hut.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?eM(t):r===3?new Zn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Rx(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Rx(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Yut.exec(e))?new Zn(t[1],t[2],t[3],1):(t=Xut.exec(e))?new Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Kut.exec(e))?Rx(t[1],t[2],t[3],t[4]):(t=Qut.exec(e))?Rx(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zut.exec(e))?iM(t[1],t[2]/100,t[3]/100,1):(t=Jut.exec(e))?iM(t[1],t[2]/100,t[3]/100,t[4]):ZN.hasOwnProperty(e)?eM(ZN[e]):e==="transparent"?new Zn(NaN,NaN,NaN,0):null}function eM(e){return new Zn(e>>16&255,e>>8&255,e&255,1)}function Rx(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zn(e,t,r,n)}function fE(e){return e instanceof Jl||(e=Ca(e)),e?(e=e.rgb(),new Zn(e.r,e.g,e.b,e.opacity)):new Zn}function df(e,t,r,n){return arguments.length===1?fE(e):new Zn(e,t,r,n??1)}function Zn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function rM(){return`#${bu(this.r)}${bu(this.g)}${bu(this.b)}`}function rht(){return`#${bu(this.r)}${bu(this.g)}${bu(this.b)}${bu((isNaN(this.opacity)?1:this.opacity)*255)}`}function nM(){let e=Nx(this.opacity);return`${e===1?"rgb(":"rgba("}${ku(this.r)}, ${ku(this.g)}, ${ku(this.b)}${e===1?")":`, ${e})`}`}function Nx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ku(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bu(e){return e=ku(e),(e<16?"0":"")+e.toString(16)}function iM(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new _a(e,t,r,n)}function aM(e){if(e instanceof _a)return new _a(e.h,e.s,e.l,e.opacity);if(e instanceof Jl||(e=Ca(e)),!e)return new _a;if(e instanceof _a)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),s=Math.max(t,r,n),o=NaN,l=s-i,u=(s+i)/2;return l?(t===s?o=(r-n)/l+(r0&&u<1?0:o,new _a(o,l,u,e.opacity)}function oM(e,t,r,n){return arguments.length===1?aM(e):new _a(e,t,r,n??1)}function _a(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function sM(e){return e=(e||0)%360,e<0?e+360:e}function Dx(e){return Math.max(0,Math.min(1,e||0))}function hE(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}var fg,Ix,ff,dg,io,Hut,Yut,Xut,Kut,Qut,Zut,Jut,ZN,dE=x(()=>{"use strict";uE();a(Jl,"Color");fg=.7,Ix=1/fg,ff="\\s*([+-]?\\d+)\\s*",dg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hut=/^#([0-9a-f]{3,8})$/,Yut=new RegExp(`^rgb\\(${ff},${ff},${ff}\\)$`),Xut=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),Kut=new RegExp(`^rgba\\(${ff},${ff},${ff},${dg}\\)$`),Qut=new RegExp(`^rgba\\(${io},${io},${io},${dg}\\)$`),Zut=new RegExp(`^hsl\\(${dg},${io},${io}\\)$`),Jut=new RegExp(`^hsla\\(${dg},${io},${io},${dg}\\)$`),ZN={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};Zl(Jl,Ca,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:JN,formatHex:JN,formatHex8:tht,formatHsl:eht,formatRgb:tM,toString:tM});a(JN,"color_formatHex");a(tht,"color_formatHex8");a(eht,"color_formatHsl");a(tM,"color_formatRgb");a(Ca,"color");a(eM,"rgbn");a(Rx,"rgba");a(fE,"rgbConvert");a(df,"rgb");a(Zn,"Rgb");Zl(Zn,df,hf(Jl,{brighter(e){return e=e==null?Ix:Math.pow(Ix,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fg:Math.pow(fg,e),new Zn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zn(ku(this.r),ku(this.g),ku(this.b),Nx(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rM,formatHex:rM,formatHex8:rht,formatRgb:nM,toString:nM}));a(rM,"rgb_formatHex");a(rht,"rgb_formatHex8");a(nM,"rgb_formatRgb");a(Nx,"clampa");a(ku,"clampi");a(bu,"hex");a(iM,"hsla");a(aM,"hslConvert");a(oM,"hsl");a(_a,"Hsl");Zl(_a,oM,hf(Jl,{brighter(e){return e=e==null?Ix:Math.pow(Ix,e),new _a(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fg:Math.pow(fg,e),new _a(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Zn(hE(e>=240?e-240:e+120,i,n),hE(e,i,n),hE(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new _a(sM(this.h),Dx(this.s),Dx(this.l),Nx(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=Nx(this.opacity);return`${e===1?"hsl(":"hsla("}${sM(this.h)}, ${Dx(this.s)*100}%, ${Dx(this.l)*100}%${e===1?")":`, ${e})`}`}}));a(sM,"clamph");a(Dx,"clampt");a(hE,"hsl2rgb")});var lM,cM,uM=x(()=>{"use strict";lM=Math.PI/180,cM=180/Math.PI});function gM(e){if(e instanceof so)return new so(e.l,e.a,e.b,e.opacity);if(e instanceof Zo)return yM(e);e instanceof Zn||(e=fE(e));var t=yE(e.r),r=yE(e.g),n=yE(e.b),i=pE((.2225045*t+.7168786*r+.0606169*n)/fM),s,o;return t===r&&r===n?s=o=i:(s=pE((.4360747*t+.3850649*r+.1430804*n)/hM),o=pE((.0139322*t+.0971045*r+.7141733*n)/dM)),new so(116*i-16,500*(s-i),200*(i-o),e.opacity)}function xE(e,t,r,n){return arguments.length===1?gM(e):new so(e,t,r,n??1)}function so(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function pE(e){return e>nht?Math.pow(e,1/3):e/mM+pM}function mE(e){return e>pf?e*e*e:mM*(e-pM)}function gE(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yE(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function iht(e){if(e instanceof Zo)return new Zo(e.h,e.c,e.l,e.opacity);if(e instanceof so||(e=gM(e)),e.a===0&&e.b===0)return new Zo(NaN,0{"use strict";uE();dE();uM();Mx=18,hM=.96422,fM=1,dM=.82521,pM=4/29,pf=6/29,mM=3*pf*pf,nht=pf*pf*pf;a(gM,"labConvert");a(xE,"lab");a(so,"Lab");Zl(so,xE,hf(Jl,{brighter(e){return new so(this.l+Mx*(e??1),this.a,this.b,this.opacity)},darker(e){return new so(this.l-Mx*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=hM*mE(t),e=fM*mE(e),r=dM*mE(r),new Zn(gE(3.1338561*t-1.6168667*e-.4906146*r),gE(-.9787684*t+1.9161415*e+.033454*r),gE(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));a(pE,"xyz2lab");a(mE,"lab2xyz");a(gE,"lrgb2rgb");a(yE,"rgb2lrgb");a(iht,"hclConvert");a(pg,"hcl");a(Zo,"Hcl");a(yM,"hcl2lab");Zl(Zo,pg,hf(Jl,{brighter(e){return new Zo(this.h,this.c,this.l+Mx*(e??1),this.opacity)},darker(e){return new Zo(this.h,this.c,this.l-Mx*(e??1),this.opacity)},rgb(){return yM(this).rgb()}}))});var mf=x(()=>{"use strict";dE();xM()});function bE(e,t,r,n,i){var s=e*e,o=s*e;return((1-3*e+3*s-o)*t+(4-6*s+3*o)*r+(1+3*e+3*s-3*o)*n+o*i)/6}function kE(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],s=e[n+1],o=n>0?e[n-1]:2*i-s,l=n{"use strict";a(bE,"basis");a(kE,"default")});function SE(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],s=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return bE((r-n/t)*t,i,s,o,l)}}var bM=x(()=>{"use strict";TE();a(SE,"default")});var gf,_E=x(()=>{"use strict";gf=a(e=>()=>e,"default")});function kM(e,t){return function(r){return e+r*t}}function sht(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function TM(e,t){var r=t-e;return r?kM(e,r>180||r<-180?r-360*Math.round(r/360):r):gf(isNaN(e)?t:e)}function SM(e){return(e=+e)==1?Jo:function(t,r){return r-t?sht(t,r,e):gf(isNaN(t)?r:t)}}function Jo(e,t){var r=t-e;return r?kM(e,r):gf(isNaN(e)?t:e)}var CE=x(()=>{"use strict";_E();a(kM,"linear");a(sht,"exponential");a(TM,"hue");a(SM,"gamma");a(Jo,"nogamma")});function _M(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),s=new Array(r),o,l;for(o=0;o{"use strict";mf();TE();bM();CE();Tu=a(function e(t){var r=SM(t);function n(i,s){var o=r((i=df(i)).r,(s=df(s)).r),l=r(i.g,s.g),u=r(i.b,s.b),h=Jo(i.opacity,s.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=h(f),i+""}}return a(n,"rgb"),n.gamma=e,n},"rgbGamma")(1);a(_M,"rgbSpline");aht=_M(kE),oht=_M(SE)});function EE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(s){for(i=0;i{"use strict";a(EE,"default");a(CM,"isNumberArray")});function EM(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),s=new Array(r),o;for(o=0;o{"use strict";Ox();a(EM,"genericArray")});function vE(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var AM=x(()=>{"use strict";a(vE,"default")});function Vn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var mg=x(()=>{"use strict";a(Vn,"default")});function AE(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=tc(e[i],t[i]):n[i]=t[i];return function(s){for(i in r)n[i]=r[i](s);return n}}var LM=x(()=>{"use strict";Ox();a(AE,"default")});function lht(e){return function(){return e}}function cht(e){return function(t){return e(t)+""}}function yf(e,t){var r=RE.lastIndex=LE.lastIndex=0,n,i,s,o=-1,l=[],u=[];for(e=e+"",t=t+"";(n=RE.exec(e))&&(i=LE.exec(t));)(s=i.index)>r&&(s=t.slice(r,s),l[o]?l[o]+=s:l[++o]=s),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:Vn(n,i)})),r=LE.lastIndex;return r{"use strict";mg();RE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,LE=new RegExp(RE.source,"g");a(lht,"zero");a(cht,"one");a(yf,"default")});function tc(e,t){var r=typeof t,n;return t==null||r==="boolean"?gf(t):(r==="number"?Vn:r==="string"?(n=Ca(t))?(t=n,Tu):yf:t instanceof Ca?Tu:t instanceof Date?vE:CM(t)?EE:Array.isArray(t)?EM:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?AE:Vn)(e,t)}var Ox=x(()=>{"use strict";mf();wE();vM();AM();mg();LM();DE();_E();wM();a(tc,"default")});function Px(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var RM=x(()=>{"use strict";a(Px,"default")});function Fx(e,t,r,n,i,s){var o,l,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n{"use strict";DM=180/Math.PI,Bx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};a(Fx,"default")});function NM(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Bx:Fx(t.a,t.b,t.c,t.d,t.e,t.f)}function MM(e){return e==null?Bx:($x||($x=document.createElementNS("http://www.w3.org/2000/svg","g")),$x.setAttribute("transform",e),(e=$x.transform.baseVal.consolidate())?(e=e.matrix,Fx(e.a,e.b,e.c,e.d,e.e,e.f)):Bx)}var $x,OM=x(()=>{"use strict";IM();a(NM,"parseCss");a(MM,"parseSvg")});function PM(e,t,r,n){function i(h){return h.length?h.pop()+" ":""}a(i,"pop");function s(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push("translate(",null,t,null,r);g.push({i:y-4,x:Vn(h,d)},{i:y-2,x:Vn(f,p)})}else(d||p)&&m.push("translate("+d+t+p+r)}a(s,"translate");function o(h,f,d,p){h!==f?(h-f>180?f+=360:f-h>180&&(h+=360),p.push({i:d.push(i(d)+"rotate(",null,n)-2,x:Vn(h,f)})):f&&d.push(i(d)+"rotate("+f+n)}a(o,"rotate");function l(h,f,d,p){h!==f?p.push({i:d.push(i(d)+"skewX(",null,n)-2,x:Vn(h,f)}):f&&d.push(i(d)+"skewX("+f+n)}a(l,"skewX");function u(h,f,d,p,m,g){if(h!==d||f!==p){var y=m.push(i(m)+"scale(",null,",",null,")");g.push({i:y-4,x:Vn(h,d)},{i:y-2,x:Vn(f,p)})}else(d!==1||p!==1)&&m.push(i(m)+"scale("+d+","+p+")")}return a(u,"scale"),function(h,f){var d=[],p=[];return h=e(h),f=e(f),s(h.translateX,h.translateY,f.translateX,f.translateY,d,p),o(h.rotate,f.rotate,d,p),l(h.skewX,f.skewX,d,p),u(h.scaleX,h.scaleY,f.scaleX,f.scaleY,d,p),h=f=null,function(m){for(var g=-1,y=p.length,b;++g{"use strict";mg();OM();a(PM,"interpolateTransform");IE=PM(NM,"px, ","px)","deg)"),NE=PM(MM,", ",")",")")});function FM(e){return function(t,r){var n=e((t=pg(t)).h,(r=pg(r)).h),i=Jo(t.c,r.c),s=Jo(t.l,r.l),o=Jo(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=s(l),t.opacity=o(l),t+""}}}var ME,uht,$M=x(()=>{"use strict";mf();CE();a(FM,"hcl");ME=FM(TM),uht=FM(Jo)});var xf=x(()=>{"use strict";Ox();mg();RM();DE();BM();wE();$M()});function Tg(){return Su||(zM(hht),Su=bg.now()+zx)}function hht(){Su=0}function kg(){this._call=this._time=this._next=null}function Wx(e,t,r){var n=new kg;return n.restart(e,t,r),n}function WM(){Tg(),++bf;for(var e=Gx,t;e;)(t=Su-e._time)>=0&&e._call.call(void 0,t),e=e._next;--bf}function GM(){Su=(Vx=bg.now())+zx,bf=yg=0;try{WM()}finally{bf=0,dht(),Su=0}}function fht(){var e=bg.now(),t=e-Vx;t>VM&&(zx-=t,Vx=e)}function dht(){for(var e,t=Gx,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Gx=r);xg=e,OE(n)}function OE(e){if(!bf){yg&&(yg=clearTimeout(yg));var t=e-Su;t>24?(e<1/0&&(yg=setTimeout(GM,e-bg.now()-zx)),gg&&(gg=clearInterval(gg))):(gg||(Vx=bg.now(),gg=setInterval(fht,VM)),bf=1,zM(GM))}}var bf,yg,gg,VM,Gx,xg,Vx,Su,zx,bg,zM,PE=x(()=>{"use strict";bf=0,yg=0,gg=0,VM=1e3,Vx=0,Su=0,zx=0,bg=typeof performance=="object"&&performance.now?performance:Date,zM=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};a(Tg,"now");a(hht,"clearNow");a(kg,"Timer");kg.prototype=Wx.prototype={constructor:kg,restart:a(function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Tg():+r)+(t==null?0:+t),!this._next&&xg!==this&&(xg?xg._next=this:Gx=this,xg=this),this._call=e,this._time=r,OE()},"restart"),stop:a(function(){this._call&&(this._call=null,this._time=1/0,OE())},"stop")};a(Wx,"timer");a(WM,"timerFlush");a(GM,"wake");a(fht,"poke");a(dht,"nap");a(OE,"sleep")});function Sg(e,t,r){var n=new kg;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var UM=x(()=>{"use strict";PE();a(Sg,"default")});var Ux=x(()=>{"use strict";PE();UM()});function tl(e,t,r,n,i,s){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;ght(e,r,{name:t,index:n,group:i,on:pht,tween:mht,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:HM})}function Cg(e,t){var r=In(e,t);if(r.state>HM)throw new Error("too late; already scheduled");return r}function Jn(e,t){var r=In(e,t);if(r.state>jx)throw new Error("too late; already running");return r}function In(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function ght(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=Wx(s,0,r.time);function s(h){r.state=jM,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}a(s,"schedule");function o(h){var f,d,p,m;if(r.state!==jM)return u();for(f in n)if(m=n[f],m.name===r.name){if(m.state===jx)return Sg(o);m.state===qM?(m.state=_g,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete n[f]):+f{"use strict";yw();Ux();pht=gw("start","end","cancel","interrupt"),mht=[],HM=0,jM=1,qx=2,jx=3,qM=4,Hx=5,_g=6;a(tl,"default");a(Cg,"init");a(Jn,"set");a(In,"get");a(ght,"create")});function wg(e,t){var r=e.__transition,n,i,s=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){s=!1;continue}i=n.state>qx&&n.state{"use strict";Zi();a(wg,"default")});function BE(e){return this.each(function(){wg(this,e)})}var XM=x(()=>{"use strict";YM();a(BE,"default")});function yht(e,t){var r,n;return function(){var i=Jn(this,e),s=i.tween;if(s!==r){n=r=s;for(var o=0,l=n.length;o{"use strict";Zi();a(yht,"tweenRemove");a(xht,"tweenFunction");a(FE,"default");a(kf,"tweenValue")});function vg(e,t){var r;return(typeof t=="number"?Vn:t instanceof Ca?Tu:(r=Ca(t))?(t=r,Tu):yf)(e,t)}var $E=x(()=>{"use strict";mf();xf();a(vg,"default")});function bht(e){return function(){this.removeAttribute(e)}}function kht(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Tht(e,t,r){var n,i=r+"",s;return function(){var o=this.getAttribute(e);return o===i?null:o===n?s:s=t(n=o,r)}}function Sht(e,t,r){var n,i=r+"",s;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?s:s=t(n=o,r)}}function _ht(e,t,r){var n,i,s;return function(){var o,l=r(this),u;return l==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=l+"",o===u?null:o===n&&u===i?s:(i=u,s=t(n=o,l)))}}function Cht(e,t,r){var n,i,s;return function(){var o,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=l+"",o===u?null:o===n&&u===i?s:(i=u,s=t(n=o,l)))}}function GE(e,t){var r=no(e),n=r==="transform"?NE:vg;return this.attrTween(e,typeof t=="function"?(r.local?Cht:_ht)(r,n,kf(this,"attr."+e,t)):t==null?(r.local?kht:bht)(r):(r.local?Sht:Tht)(r,n,t))}var KM=x(()=>{"use strict";xf();Sa();Eg();$E();a(bht,"attrRemove");a(kht,"attrRemoveNS");a(Tht,"attrConstant");a(Sht,"attrConstantNS");a(_ht,"attrFunction");a(Cht,"attrFunctionNS");a(GE,"default")});function wht(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Eht(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function vht(e,t){var r,n;function i(){var s=t.apply(this,arguments);return s!==n&&(r=(n=s)&&Eht(e,s)),r}return a(i,"tween"),i._value=t,i}function Aht(e,t){var r,n;function i(){var s=t.apply(this,arguments);return s!==n&&(r=(n=s)&&wht(e,s)),r}return a(i,"tween"),i._value=t,i}function VE(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=no(e);return this.tween(r,(n.local?vht:Aht)(n,t))}var QM=x(()=>{"use strict";Sa();a(wht,"attrInterpolate");a(Eht,"attrInterpolateNS");a(vht,"attrTweenNS");a(Aht,"attrTween");a(VE,"default")});function Lht(e,t){return function(){Cg(this,e).delay=+t.apply(this,arguments)}}function Rht(e,t){return t=+t,function(){Cg(this,e).delay=t}}function zE(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Lht:Rht)(t,e)):In(this.node(),t).delay}var ZM=x(()=>{"use strict";Zi();a(Lht,"delayFunction");a(Rht,"delayConstant");a(zE,"default")});function Dht(e,t){return function(){Jn(this,e).duration=+t.apply(this,arguments)}}function Iht(e,t){return t=+t,function(){Jn(this,e).duration=t}}function WE(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Dht:Iht)(t,e)):In(this.node(),t).duration}var JM=x(()=>{"use strict";Zi();a(Dht,"durationFunction");a(Iht,"durationConstant");a(WE,"default")});function Nht(e,t){if(typeof t!="function")throw new Error;return function(){Jn(this,e).ease=t}}function UE(e){var t=this._id;return arguments.length?this.each(Nht(t,e)):In(this.node(),t).ease}var tO=x(()=>{"use strict";Zi();a(Nht,"easeConstant");a(UE,"default")});function Mht(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Jn(this,e).ease=r}}function jE(e){if(typeof e!="function")throw new Error;return this.each(Mht(this._id,e))}var eO=x(()=>{"use strict";Zi();a(Mht,"easeVarying");a(jE,"default")});function qE(e){typeof e!="function"&&(e=uf(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i{"use strict";Sa();_u();a(qE,"default")});function HE(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,s=Math.min(n,i),o=new Array(n),l=0;l{"use strict";_u();a(HE,"default")});function Oht(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Pht(e,t,r){var n,i,s=Oht(t)?Cg:Jn;return function(){var o=s(this,e),l=o.on;l!==n&&(i=(n=l).copy()).on(t,r),o.on=i}}function YE(e,t){var r=this._id;return arguments.length<2?In(this.node(),r).on.on(e):this.each(Pht(r,e,t))}var iO=x(()=>{"use strict";Zi();a(Oht,"start");a(Pht,"onFunction");a(YE,"default")});function Bht(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function XE(){return this.on("end.remove",Bht(this._id))}var sO=x(()=>{"use strict";a(Bht,"removeFunction");a(XE,"default")});function KE(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Kl(e));for(var n=this._groups,i=n.length,s=new Array(i),o=0;o{"use strict";Sa();_u();Zi();a(KE,"default")});function QE(e){var t=this._name,r=this._id;typeof e!="function"&&(e=cf(e));for(var n=this._groups,i=n.length,s=[],o=[],l=0;l{"use strict";Sa();_u();Zi();a(QE,"default")});function ZE(){return new Fht(this._groups,this._parents)}var Fht,lO=x(()=>{"use strict";Sa();Fht=Qo.prototype.constructor;a(ZE,"default")});function $ht(e,t){var r,n,i;return function(){var s=Ql(this,e),o=(this.style.removeProperty(e),Ql(this,e));return s===o?null:s===r&&o===n?i:i=t(r=s,n=o)}}function cO(e){return function(){this.style.removeProperty(e)}}function Ght(e,t,r){var n,i=r+"",s;return function(){var o=Ql(this,e);return o===i?null:o===n?s:s=t(n=o,r)}}function Vht(e,t,r){var n,i,s;return function(){var o=Ql(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),Ql(this,e))),o===u?null:o===n&&u===i?s:(i=u,s=t(n=o,l))}}function zht(e,t){var r,n,i,s="style."+t,o="end."+s,l;return function(){var u=Jn(this,e),h=u.on,f=u.value[s]==null?l||(l=cO(t)):void 0;(h!==r||i!==f)&&(n=(r=h).copy()).on(o,i=f),u.on=n}}function JE(e,t,r){var n=(e+="")=="transform"?IE:vg;return t==null?this.styleTween(e,$ht(e,n)).on("end.style."+e,cO(e)):typeof t=="function"?this.styleTween(e,Vht(e,n,kf(this,"style."+e,t))).each(zht(this._id,e)):this.styleTween(e,Ght(e,n,t),r).on("end.style."+e,null)}var uO=x(()=>{"use strict";xf();Sa();Zi();Eg();$E();a($ht,"styleNull");a(cO,"styleRemove");a(Ght,"styleConstant");a(Vht,"styleFunction");a(zht,"styleMaybeRemove");a(JE,"default")});function Wht(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Uht(e,t,r){var n,i;function s(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Wht(e,o,r)),n}return a(s,"tween"),s._value=t,s}function t3(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Uht(e,t,r??""))}var hO=x(()=>{"use strict";a(Wht,"styleInterpolate");a(Uht,"styleTween");a(t3,"default")});function jht(e){return function(){this.textContent=e}}function qht(e){return function(){var t=e(this);this.textContent=t??""}}function e3(e){return this.tween("text",typeof e=="function"?qht(kf(this,"text",e)):jht(e==null?"":e+""))}var fO=x(()=>{"use strict";Eg();a(jht,"textConstant");a(qht,"textFunction");a(e3,"default")});function Hht(e){return function(t){this.textContent=e.call(this,t)}}function Yht(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&Hht(i)),t}return a(n,"tween"),n._value=e,n}function r3(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Yht(e))}var dO=x(()=>{"use strict";a(Hht,"textInterpolate");a(Yht,"textTween");a(r3,"default")});function n3(){for(var e=this._name,t=this._id,r=Yx(),n=this._groups,i=n.length,s=0;s{"use strict";_u();Zi();a(n3,"default")});function i3(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(s,o){var l={value:o},u={value:a(function(){--i===0&&s()},"value")};r.each(function(){var h=Jn(this,n),f=h.on;f!==e&&(t=(e=f).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),h.on=t}),i===0&&s()})}var mO=x(()=>{"use strict";Zi();a(i3,"default")});function Di(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function gO(e){return Qo().transition(e)}function Yx(){return++Xht}var Xht,el,_u=x(()=>{"use strict";Sa();KM();QM();ZM();JM();tO();eO();rO();nO();iO();sO();aO();oO();lO();uO();hO();fO();dO();pO();Eg();mO();Xht=0;a(Di,"Transition");a(gO,"transition");a(Yx,"newId");el=Qo.prototype;Di.prototype=gO.prototype={constructor:Di,select:KE,selectAll:QE,selectChild:el.selectChild,selectChildren:el.selectChildren,filter:qE,merge:HE,selection:ZE,transition:n3,call:el.call,nodes:el.nodes,node:el.node,size:el.size,empty:el.empty,each:el.each,on:YE,attr:GE,attrTween:VE,style:JE,styleTween:t3,text:e3,textTween:r3,remove:XE,tween:FE,delay:zE,duration:WE,ease:UE,easeVarying:jE,end:i3,[Symbol.iterator]:el[Symbol.iterator]}});function Xx(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var yO=x(()=>{"use strict";a(Xx,"cubicInOut")});var s3=x(()=>{"use strict";yO()});function Qht(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function a3(e){var t,r;e instanceof Di?(t=e._id,e=e._name):(t=Yx(),(r=Kht).time=Tg(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,s=0;s{"use strict";_u();Zi();s3();Ux();Kht={time:null,delay:0,duration:250,ease:Xx};a(Qht,"inherit");a(a3,"default")});var bO=x(()=>{"use strict";Sa();XM();xO();Qo.prototype.interrupt=BE;Qo.prototype.transition=a3});var Kx=x(()=>{"use strict";bO()});var kO=x(()=>{"use strict"});var TO=x(()=>{"use strict"});var SO=x(()=>{"use strict"});function _O(e){return[+e[0],+e[1]]}function Zht(e){return[_O(e[0]),_O(e[1])]}function o3(e){return{type:e}}var LUt,RUt,DUt,IUt,NUt,MUt,CO=x(()=>{"use strict";Kx();kO();TO();SO();({abs:LUt,max:RUt,min:DUt}=Math);a(_O,"number1");a(Zht,"number2");IUt={name:"x",handles:["w","e"].map(o3),input:a(function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},"input"),output:a(function(e){return e&&[e[0][0],e[1][0]]},"output")},NUt={name:"y",handles:["n","s"].map(o3),input:a(function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},"input"),output:a(function(e){return e&&[e[0][1],e[1][1]]},"output")},MUt={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(o3),input:a(function(e){return e==null?null:Zht(e)},"input"),output:a(function(e){return e},"output")};a(o3,"type")});var wO=x(()=>{"use strict";CO()});function EO(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return EO;let r=10**t;return function(n){this._+=n[0];for(let i=1,s=n.length;i{"use strict";l3=Math.PI,c3=2*l3,Cu=1e-6,Jht=c3-Cu;a(EO,"append");a(tft,"appendRound");wu=class{static{a(this,"Path")}constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?EO:tft(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,s,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+s},${this._y1=+o}`}arcTo(t,r,n,i,s){if(t=+t,r=+r,n=+n,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,u=n-t,h=i-r,f=o-t,d=l-r,p=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>Cu)if(!(Math.abs(d*u-h*f)>Cu)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,g=i-l,y=u*u+h*h,b=m*m+g*g,k=Math.sqrt(y),T=Math.sqrt(p),_=s*Math.tan((l3-Math.acos((y+p-b)/(2*k*T)))/2),L=_/T,C=_/k;Math.abs(L-1)>Cu&&this._append`L${t+L*f},${r+L*d}`,this._append`A${s},${s},0,0,${+(d*m>f*g)},${this._x1=t+C*u},${this._y1=r+C*h}`}}arc(t,r,n,i,s,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=t+l,f=r+u,d=1^o,p=o?i-s:s-i;this._x1===null?this._append`M${h},${f}`:(Math.abs(this._x1-h)>Cu||Math.abs(this._y1-f)>Cu)&&this._append`L${h},${f}`,n&&(p<0&&(p=p%c3+c3),p>Jht?this._append`A${n},${n},0,1,${d},${t-l},${r-u}A${n},${n},0,1,${d},${this._x1=h},${this._y1=f}`:p>Cu&&this._append`A${n},${n},0,${+(p>=l3)},${d},${this._x1=t+n*Math.cos(s)},${this._y1=r+n*Math.sin(s)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};a(vO,"path");vO.prototype=wu.prototype});var u3=x(()=>{"use strict";AO()});var LO=x(()=>{"use strict"});var RO=x(()=>{"use strict"});var DO=x(()=>{"use strict"});var IO=x(()=>{"use strict"});var NO=x(()=>{"use strict"});var MO=x(()=>{"use strict"});var OO=x(()=>{"use strict"});function h3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Eu(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}var Ag=x(()=>{"use strict";a(h3,"default");a(Eu,"formatDecimalParts")});function wa(e){return e=Eu(Math.abs(e)),e?e[1]:NaN}var Lg=x(()=>{"use strict";Ag();a(wa,"default")});function f3(e,t){return function(r,n){for(var i=r.length,s=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),s.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return s.reverse().join(t)}}var PO=x(()=>{"use strict";a(f3,"default")});function d3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var BO=x(()=>{"use strict";a(d3,"default")});function ec(e){if(!(t=eft.exec(e)))throw new Error("invalid format: "+e);var t;return new Qx({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Qx(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 eft,p3=x(()=>{"use strict";eft=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;a(ec,"formatSpecifier");ec.prototype=Qx.prototype;a(Qx,"FormatSpecifier");Qx.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 m3(e){t:for(var t=e.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var FO=x(()=>{"use strict";a(m3,"default")});function y3(e,t){var r=Eu(e,t);if(!r)return e+"";var n=r[0],i=r[1],s=i-(g3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+Eu(e,Math.max(0,t+s-1))[0]}var g3,x3=x(()=>{"use strict";Ag();a(y3,"default")});function Zx(e,t){var r=Eu(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}var $O=x(()=>{"use strict";Ag();a(Zx,"default")});var b3,GO=x(()=>{"use strict";Ag();x3();$O();b3={"%":a((e,t)=>(e*100).toFixed(t),"%"),b:a(e=>Math.round(e).toString(2),"b"),c:a(e=>e+"","c"),d:h3,e:a((e,t)=>e.toExponential(t),"e"),f:a((e,t)=>e.toFixed(t),"f"),g:a((e,t)=>e.toPrecision(t),"g"),o:a(e=>Math.round(e).toString(8),"o"),p:a((e,t)=>Zx(e*100,t),"p"),r:Zx,s:y3,X:a(e=>Math.round(e).toString(16).toUpperCase(),"X"),x:a(e=>Math.round(e).toString(16),"x")}});function Jx(e){return e}var VO=x(()=>{"use strict";a(Jx,"default")});function k3(e){var t=e.grouping===void 0||e.thousands===void 0?Jx:f3(zO.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",s=e.numerals===void 0?Jx:d3(zO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function h(d){d=ec(d);var p=d.fill,m=d.align,g=d.sign,y=d.symbol,b=d.zero,k=d.width,T=d.comma,_=d.precision,L=d.trim,C=d.type;C==="n"?(T=!0,C="g"):b3[C]||(_===void 0&&(_=12),L=!0,C="g"),(b||p==="0"&&m==="=")&&(b=!0,p="0",m="=");var D=y==="$"?r:y==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",$=y==="$"?n:/[%p]/.test(C)?o:"",w=b3[C],A=/[defgprs%]/.test(C);_=_===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function F(S){var v=D,R=$,B,I,M;if(C==="c")R=w(S)+R,S="";else{S=+S;var O=S<0||1/S<0;if(S=isNaN(S)?u:w(Math.abs(S),_),L&&(S=m3(S)),O&&+S==0&&g!=="+"&&(O=!1),v=(O?g==="("?g:l:g==="-"||g==="("?"":g)+v,R=(C==="s"?WO[8+g3/3]:"")+R+(O&&g==="("?")":""),A){for(B=-1,I=S.length;++BM||M>57){R=(M===46?i+S.slice(B+1):S.slice(B))+R,S=S.slice(0,B);break}}}T&&!b&&(S=t(S,1/0));var N=v.length+S.length+R.length,E=N>1)+v+S+R+E.slice(N);break;default:S=E+v+S+R;break}return s(S)}return a(F,"format"),F.toString=function(){return d+""},F}a(h,"newFormat");function f(d,p){var m=h((d=ec(d),d.type="f",d)),g=Math.max(-8,Math.min(8,Math.floor(wa(p)/3)))*3,y=Math.pow(10,-g),b=WO[8+g/3];return function(k){return m(y*k)+b}}return a(f,"formatPrefix"),{format:h,formatPrefix:f}}var zO,WO,UO=x(()=>{"use strict";Lg();PO();BO();p3();FO();GO();x3();VO();zO=Array.prototype.map,WO=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];a(k3,"default")});function T3(e){return t2=k3(e),e2=t2.format,r2=t2.formatPrefix,t2}var t2,e2,r2,jO=x(()=>{"use strict";UO();T3({thousands:",",grouping:[3],currency:["$",""]});a(T3,"defaultLocale")});function n2(e){return Math.max(0,-wa(Math.abs(e)))}var qO=x(()=>{"use strict";Lg();a(n2,"default")});function i2(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3-wa(Math.abs(e)))}var HO=x(()=>{"use strict";Lg();a(i2,"default")});function s2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wa(t)-wa(e))+1}var YO=x(()=>{"use strict";Lg();a(s2,"default")});var S3=x(()=>{"use strict";jO();p3();qO();HO();YO()});var XO=x(()=>{"use strict"});var KO=x(()=>{"use strict"});var QO=x(()=>{"use strict"});var ZO=x(()=>{"use strict"});function rc(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var Rg=x(()=>{"use strict";a(rc,"initRange")});function rl(){var e=new of,t=[],r=[],n=_3;function i(s){let o=e.get(s);if(o===void 0){if(n!==_3)return n;e.set(s,o=t.push(s)-1)}return r[o%r.length]}return a(i,"scale"),i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new of;for(let o of s)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(s){return arguments.length?(r=Array.from(s),i):r.slice()},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return rl(t,r).unknown(n)},rc.apply(i,arguments),i}var _3,C3=x(()=>{"use strict";Xl();Rg();_3=Symbol("implicit");a(rl,"ordinal")});function Tf(){var e=rl().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,s,o,l=!1,u=0,h=0,f=.5;delete e.unknown;function d(){var p=t().length,m=i{"use strict";Xl();Rg();C3();a(Tf,"band")});function w3(e){return function(){return e}}var tP=x(()=>{"use strict";a(w3,"constants")});function E3(e){return+e}var eP=x(()=>{"use strict";a(E3,"number")});function Sf(e){return e}function v3(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:w3(isNaN(t)?NaN:.5)}function rft(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function nft(e,t,r){var n=e[0],i=e[1],s=t[0],o=t[1];return i2?ift:nft,u=h=null,d}a(f,"rescale");function d(p){return p==null||isNaN(p=+p)?s:(u||(u=l(e.map(n),t,r)))(n(o(p)))}return a(d,"scale"),d.invert=function(p){return o(i((h||(h=l(t,e.map(n),Vn)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,E3),f()):e.slice()},d.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},d.rangeRound=function(p){return t=Array.from(p),r=Px,f()},d.clamp=function(p){return arguments.length?(o=p?!0:Sf,f()):o!==Sf},d.interpolate=function(p){return arguments.length?(r=p,f()):r},d.unknown=function(p){return arguments.length?(s=p,d):s},function(p,m){return n=p,i=m,f()}}function Dg(){return sft()(Sf,Sf)}var rP,A3=x(()=>{"use strict";Xl();xf();tP();eP();rP=[0,1];a(Sf,"identity");a(v3,"normalize");a(rft,"clamper");a(nft,"bimap");a(ift,"polymap");a(a2,"copy");a(sft,"transformer");a(Dg,"continuous")});function L3(e,t,r,n){var i=lf(e,t,r),s;switch(n=ec(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(s=i2(i,o))&&(n.precision=s),r2(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=s2(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=n2(i))&&(n.precision=s-(n.type==="%")*2);break}}return e2(n)}var nP=x(()=>{"use strict";Xl();S3();a(L3,"tickFormat")});function aft(e){var t=e.domain;return e.ticks=function(r){var n=t();return bx(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return L3(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,s=n.length-1,o=n[i],l=n[s],u,h,f=10;for(l0;){if(h=ag(o,l,r),h===u)return n[i]=o,n[s]=l,t(n);if(h>0)o=Math.floor(o/h)*h,l=Math.ceil(l/h)*h;else if(h<0)o=Math.ceil(o*h)/h,l=Math.floor(l*h)/h;else break;u=h}return e},e}function Ea(){var e=Dg();return e.copy=function(){return a2(e,Ea())},rc.apply(e,arguments),aft(e)}var iP=x(()=>{"use strict";Xl();A3();Rg();nP();a(aft,"linearish");a(Ea,"linear")});function R3(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],s=e[n],o;return s{"use strict";a(R3,"nice")});function Dr(e,t,r,n){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a(i,"interval"),i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{let o=i(s),l=i.ceil(s);return s-o(t(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{let u=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s0))return u;let h;do u.push(h=new Date(+s)),t(s,l),e(s);while(hDr(o=>{if(o>=o)for(;e(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!s(o););else for(;--l>=0;)for(;t(o,1),!s(o););}),r&&(i.count=(s,o)=>(D3.setTime(+s),I3.setTime(+o),e(D3),e(I3),Math.floor(r(D3,I3))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(n?o=>n(o)%s===0:o=>i.count(0,o)%s===0):i)),i}var D3,I3,nl=x(()=>{"use strict";D3=new Date,I3=new Date;a(Dr,"timeInterval")});var ao,aP,N3=x(()=>{"use strict";nl();ao=Dr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ao.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Dr(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ao);aP=ao.range});var Ts,oP,M3=x(()=>{"use strict";nl();Ts=Dr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*1e3)},(e,t)=>(t-e)/1e3,e=>e.getUTCSeconds()),oP=Ts.range});var il,oft,o2,lft,O3=x(()=>{"use strict";nl();il=Dr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getMinutes()),oft=il.range,o2=Dr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*6e4)},(e,t)=>(t-e)/6e4,e=>e.getUTCMinutes()),lft=o2.range});var sl,cft,l2,uft,P3=x(()=>{"use strict";nl();sl=Dr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*1e3-e.getMinutes()*6e4)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getHours()),cft=sl.range,l2=Dr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*36e5)},(e,t)=>(t-e)/36e5,e=>e.getUTCHours()),uft=l2.range});var Us,hft,Ng,fft,c2,dft,B3=x(()=>{"use strict";nl();Us=Dr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1),hft=Us.range,Ng=Dr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>e.getUTCDate()-1),fft=Ng.range,c2=Dr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/864e5,e=>Math.floor(e/864e5)),dft=c2.range});function Lu(e){return Dr(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}function Ru(e){return Dr(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/6048e5)}var va,nc,u2,h2,lo,f2,d2,cP,pft,mft,gft,yft,xft,bft,Du,_f,uP,hP,ic,fP,dP,pP,kft,Tft,Sft,_ft,Cft,wft,F3=x(()=>{"use strict";nl();a(Lu,"timeWeekday");va=Lu(0),nc=Lu(1),u2=Lu(2),h2=Lu(3),lo=Lu(4),f2=Lu(5),d2=Lu(6),cP=va.range,pft=nc.range,mft=u2.range,gft=h2.range,yft=lo.range,xft=f2.range,bft=d2.range;a(Ru,"utcWeekday");Du=Ru(0),_f=Ru(1),uP=Ru(2),hP=Ru(3),ic=Ru(4),fP=Ru(5),dP=Ru(6),pP=Du.range,kft=_f.range,Tft=uP.range,Sft=hP.range,_ft=ic.range,Cft=fP.range,wft=dP.range});var al,Eft,p2,vft,$3=x(()=>{"use strict";nl();al=Dr(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),Eft=al.range,p2=Dr(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),vft=p2.range});var Ss,Aft,Aa,Lft,G3=x(()=>{"use strict";nl();Ss=Dr(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ss.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dr(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Aft=Ss.range,Aa=Dr(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Aa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Dr(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Lft=Aa.range});function gP(e,t,r,n,i,s){let o=[[Ts,1,1e3],[Ts,5,5*1e3],[Ts,15,15*1e3],[Ts,30,30*1e3],[s,1,6e4],[s,5,5*6e4],[s,15,15*6e4],[s,30,30*6e4],[i,1,36e5],[i,3,3*36e5],[i,6,6*36e5],[i,12,12*36e5],[n,1,864e5],[n,2,2*864e5],[r,1,6048e5],[t,1,2592e6],[t,3,3*2592e6],[e,1,31536e6]];function l(h,f,d){let p=fb).right(o,p);if(m===o.length)return e.every(lf(h/31536e6,f/31536e6,d));if(m===0)return ao.every(Math.max(lf(h,f,d),1));let[g,y]=o[p/o[m-1][2]{"use strict";Xl();N3();M3();O3();P3();B3();F3();$3();G3();a(gP,"ticker");[Dft,Ift]=gP(Aa,p2,Du,c2,l2,o2),[V3,z3]=gP(Ss,al,va,Us,sl,il)});var m2=x(()=>{"use strict";N3();M3();O3();P3();B3();F3();$3();G3();yP()});function W3(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function U3(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Mg(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function j3(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,s=e.days,o=e.shortDays,l=e.months,u=e.shortMonths,h=Og(i),f=Pg(i),d=Og(s),p=Pg(s),m=Og(o),g=Pg(o),y=Og(l),b=Pg(l),k=Og(u),T=Pg(u),_={a:O,A:N,b:E,B:V,c:null,d:_P,e:_P,f:edt,g:hdt,G:ddt,H:Zft,I:Jft,j:tdt,L:AP,m:rdt,M:ndt,p:G,q:J,Q:EP,s:vP,S:idt,u:sdt,U:adt,V:odt,w:ldt,W:cdt,x:null,X:null,y:udt,Y:fdt,Z:pdt,"%":wP},L={a:rt,A:nt,b:ct,B:pt,c:null,d:CP,e:CP,f:xdt,g:Adt,G:Rdt,H:mdt,I:gdt,j:ydt,L:RP,m:bdt,M:kdt,p:Lt,q:bt,Q:EP,s:vP,S:Tdt,u:Sdt,U:_dt,V:Cdt,w:wdt,W:Edt,x:null,X:null,y:vdt,Y:Ldt,Z:Ddt,"%":wP},C={a:F,A:S,b:v,B:R,c:B,d:TP,e:TP,f:Yft,g:kP,G:bP,H:SP,I:SP,j:Uft,L:Hft,m:Wft,M:jft,p:A,q:zft,Q:Kft,s:Qft,S:qft,u:Bft,U:Fft,V:$ft,w:Pft,W:Gft,x:I,X:M,y:kP,Y:bP,Z:Vft,"%":Xft};_.x=D(r,_),_.X=D(n,_),_.c=D(t,_),L.x=D(r,L),L.X=D(n,L),L.c=D(t,L);function D(ut,it){return function(st){var X=[],H=-1,at=0,W=ut.length,mt,q,Z;for(st instanceof Date||(st=new Date(+st));++H53)return null;"w"in X||(X.w=1),"Z"in X?(at=U3(Mg(X.y,0,1)),W=at.getUTCDay(),at=W>4||W===0?_f.ceil(at):_f(at),at=Ng.offset(at,(X.V-1)*7),X.y=at.getUTCFullYear(),X.m=at.getUTCMonth(),X.d=at.getUTCDate()+(X.w+6)%7):(at=W3(Mg(X.y,0,1)),W=at.getDay(),at=W>4||W===0?nc.ceil(at):nc(at),at=Us.offset(at,(X.V-1)*7),X.y=at.getFullYear(),X.m=at.getMonth(),X.d=at.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),W="Z"in X?U3(Mg(X.y,0,1)).getUTCDay():W3(Mg(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(W+5)%7:X.w+X.U*7-(W+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,U3(X)):W3(X)}}a($,"newParse");function w(ut,it,st,X){for(var H=0,at=it.length,W=st.length,mt,q;H=W)return-1;if(mt=it.charCodeAt(H++),mt===37){if(mt=it.charAt(H++),q=C[mt in xP?it.charAt(H++):mt],!q||(X=q(ut,st,X))<0)return-1}else if(mt!=st.charCodeAt(X++))return-1}return X}a(w,"parseSpecifier");function A(ut,it,st){var X=h.exec(it.slice(st));return X?(ut.p=f.get(X[0].toLowerCase()),st+X[0].length):-1}a(A,"parsePeriod");function F(ut,it,st){var X=m.exec(it.slice(st));return X?(ut.w=g.get(X[0].toLowerCase()),st+X[0].length):-1}a(F,"parseShortWeekday");function S(ut,it,st){var X=d.exec(it.slice(st));return X?(ut.w=p.get(X[0].toLowerCase()),st+X[0].length):-1}a(S,"parseWeekday");function v(ut,it,st){var X=k.exec(it.slice(st));return X?(ut.m=T.get(X[0].toLowerCase()),st+X[0].length):-1}a(v,"parseShortMonth");function R(ut,it,st){var X=y.exec(it.slice(st));return X?(ut.m=b.get(X[0].toLowerCase()),st+X[0].length):-1}a(R,"parseMonth");function B(ut,it,st){return w(ut,t,it,st)}a(B,"parseLocaleDateTime");function I(ut,it,st){return w(ut,r,it,st)}a(I,"parseLocaleDate");function M(ut,it,st){return w(ut,n,it,st)}a(M,"parseLocaleTime");function O(ut){return o[ut.getDay()]}a(O,"formatShortWeekday");function N(ut){return s[ut.getDay()]}a(N,"formatWeekday");function E(ut){return u[ut.getMonth()]}a(E,"formatShortMonth");function V(ut){return l[ut.getMonth()]}a(V,"formatMonth");function G(ut){return i[+(ut.getHours()>=12)]}a(G,"formatPeriod");function J(ut){return 1+~~(ut.getMonth()/3)}a(J,"formatQuarter");function rt(ut){return o[ut.getUTCDay()]}a(rt,"formatUTCShortWeekday");function nt(ut){return s[ut.getUTCDay()]}a(nt,"formatUTCWeekday");function ct(ut){return u[ut.getUTCMonth()]}a(ct,"formatUTCShortMonth");function pt(ut){return l[ut.getUTCMonth()]}a(pt,"formatUTCMonth");function Lt(ut){return i[+(ut.getUTCHours()>=12)]}a(Lt,"formatUTCPeriod");function bt(ut){return 1+~~(ut.getUTCMonth()/3)}return a(bt,"formatUTCQuarter"),{format:a(function(ut){var it=D(ut+="",_);return it.toString=function(){return ut},it},"format"),parse:a(function(ut){var it=$(ut+="",!1);return it.toString=function(){return ut},it},"parse"),utcFormat:a(function(ut){var it=D(ut+="",L);return it.toString=function(){return ut},it},"utcFormat"),utcParse:a(function(ut){var it=$(ut+="",!0);return it.toString=function(){return ut},it},"utcParse")}}function hr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",s=i.length;return n+(s[t.toLowerCase(),r]))}function Pft(e,t,r){var n=zn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Bft(e,t,r){var n=zn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Fft(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function $ft(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Gft(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function bP(e,t,r){var n=zn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kP(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Vft(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function zft(e,t,r){var n=zn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Wft(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function TP(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Uft(e,t,r){var n=zn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function SP(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function jft(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function qft(e,t,r){var n=zn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Hft(e,t,r){var n=zn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Yft(e,t,r){var n=zn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Xft(e,t,r){var n=Nft.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Kft(e,t,r){var n=zn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Qft(e,t,r){var n=zn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function _P(e,t){return hr(e.getDate(),t,2)}function Zft(e,t){return hr(e.getHours(),t,2)}function Jft(e,t){return hr(e.getHours()%12||12,t,2)}function tdt(e,t){return hr(1+Us.count(Ss(e),e),t,3)}function AP(e,t){return hr(e.getMilliseconds(),t,3)}function edt(e,t){return AP(e,t)+"000"}function rdt(e,t){return hr(e.getMonth()+1,t,2)}function ndt(e,t){return hr(e.getMinutes(),t,2)}function idt(e,t){return hr(e.getSeconds(),t,2)}function sdt(e){var t=e.getDay();return t===0?7:t}function adt(e,t){return hr(va.count(Ss(e)-1,e),t,2)}function LP(e){var t=e.getDay();return t>=4||t===0?lo(e):lo.ceil(e)}function odt(e,t){return e=LP(e),hr(lo.count(Ss(e),e)+(Ss(e).getDay()===4),t,2)}function ldt(e){return e.getDay()}function cdt(e,t){return hr(nc.count(Ss(e)-1,e),t,2)}function udt(e,t){return hr(e.getFullYear()%100,t,2)}function hdt(e,t){return e=LP(e),hr(e.getFullYear()%100,t,2)}function fdt(e,t){return hr(e.getFullYear()%1e4,t,4)}function ddt(e,t){var r=e.getDay();return e=r>=4||r===0?lo(e):lo.ceil(e),hr(e.getFullYear()%1e4,t,4)}function pdt(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+hr(t/60|0,"0",2)+hr(t%60,"0",2)}function CP(e,t){return hr(e.getUTCDate(),t,2)}function mdt(e,t){return hr(e.getUTCHours(),t,2)}function gdt(e,t){return hr(e.getUTCHours()%12||12,t,2)}function ydt(e,t){return hr(1+Ng.count(Aa(e),e),t,3)}function RP(e,t){return hr(e.getUTCMilliseconds(),t,3)}function xdt(e,t){return RP(e,t)+"000"}function bdt(e,t){return hr(e.getUTCMonth()+1,t,2)}function kdt(e,t){return hr(e.getUTCMinutes(),t,2)}function Tdt(e,t){return hr(e.getUTCSeconds(),t,2)}function Sdt(e){var t=e.getUTCDay();return t===0?7:t}function _dt(e,t){return hr(Du.count(Aa(e)-1,e),t,2)}function DP(e){var t=e.getUTCDay();return t>=4||t===0?ic(e):ic.ceil(e)}function Cdt(e,t){return e=DP(e),hr(ic.count(Aa(e),e)+(Aa(e).getUTCDay()===4),t,2)}function wdt(e){return e.getUTCDay()}function Edt(e,t){return hr(_f.count(Aa(e)-1,e),t,2)}function vdt(e,t){return hr(e.getUTCFullYear()%100,t,2)}function Adt(e,t){return e=DP(e),hr(e.getUTCFullYear()%100,t,2)}function Ldt(e,t){return hr(e.getUTCFullYear()%1e4,t,4)}function Rdt(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ic(e):ic.ceil(e),hr(e.getUTCFullYear()%1e4,t,4)}function Ddt(){return"+0000"}function wP(){return"%"}function EP(e){return+e}function vP(e){return Math.floor(+e/1e3)}var xP,zn,Nft,Mft,IP=x(()=>{"use strict";m2();a(W3,"localDate");a(U3,"utcDate");a(Mg,"newDate");a(j3,"formatLocale");xP={"-":"",_:" ",0:"0"},zn=/^\s*\d+/,Nft=/^%/,Mft=/[\\^$*+?|[\]().{}]/g;a(hr,"pad");a(Oft,"requote");a(Og,"formatRe");a(Pg,"formatLookup");a(Pft,"parseWeekdayNumberSunday");a(Bft,"parseWeekdayNumberMonday");a(Fft,"parseWeekNumberSunday");a($ft,"parseWeekNumberISO");a(Gft,"parseWeekNumberMonday");a(bP,"parseFullYear");a(kP,"parseYear");a(Vft,"parseZone");a(zft,"parseQuarter");a(Wft,"parseMonthNumber");a(TP,"parseDayOfMonth");a(Uft,"parseDayOfYear");a(SP,"parseHour24");a(jft,"parseMinutes");a(qft,"parseSeconds");a(Hft,"parseMilliseconds");a(Yft,"parseMicroseconds");a(Xft,"parseLiteralPercent");a(Kft,"parseUnixTimestamp");a(Qft,"parseUnixTimestampSeconds");a(_P,"formatDayOfMonth");a(Zft,"formatHour24");a(Jft,"formatHour12");a(tdt,"formatDayOfYear");a(AP,"formatMilliseconds");a(edt,"formatMicroseconds");a(rdt,"formatMonthNumber");a(ndt,"formatMinutes");a(idt,"formatSeconds");a(sdt,"formatWeekdayNumberMonday");a(adt,"formatWeekNumberSunday");a(LP,"dISO");a(odt,"formatWeekNumberISO");a(ldt,"formatWeekdayNumberSunday");a(cdt,"formatWeekNumberMonday");a(udt,"formatYear");a(hdt,"formatYearISO");a(fdt,"formatFullYear");a(ddt,"formatFullYearISO");a(pdt,"formatZone");a(CP,"formatUTCDayOfMonth");a(mdt,"formatUTCHour24");a(gdt,"formatUTCHour12");a(ydt,"formatUTCDayOfYear");a(RP,"formatUTCMilliseconds");a(xdt,"formatUTCMicroseconds");a(bdt,"formatUTCMonthNumber");a(kdt,"formatUTCMinutes");a(Tdt,"formatUTCSeconds");a(Sdt,"formatUTCWeekdayNumberMonday");a(_dt,"formatUTCWeekNumberSunday");a(DP,"UTCdISO");a(Cdt,"formatUTCWeekNumberISO");a(wdt,"formatUTCWeekdayNumberSunday");a(Edt,"formatUTCWeekNumberMonday");a(vdt,"formatUTCYear");a(Adt,"formatUTCYearISO");a(Ldt,"formatUTCFullYear");a(Rdt,"formatUTCFullYearISO");a(Ddt,"formatUTCZone");a(wP,"formatLiteralPercent");a(EP,"formatUnixTimestamp");a(vP,"formatUnixTimestampSeconds")});function q3(e){return Cf=j3(e),Iu=Cf.format,NP=Cf.parse,MP=Cf.utcFormat,OP=Cf.utcParse,Cf}var Cf,Iu,NP,MP,OP,PP=x(()=>{"use strict";IP();q3({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"]});a(q3,"defaultLocale")});var H3=x(()=>{"use strict";PP()});function Idt(e){return new Date(e)}function Ndt(e){return e instanceof Date?+e:+new Date(+e)}function BP(e,t,r,n,i,s,o,l,u,h){var f=Dg(),d=f.invert,p=f.domain,m=h(".%L"),g=h(":%S"),y=h("%I:%M"),b=h("%I %p"),k=h("%a %d"),T=h("%b %d"),_=h("%B"),L=h("%Y");function C(D){return(u(D){"use strict";m2();H3();A3();Rg();sP();a(Idt,"date");a(Ndt,"number");a(BP,"calendar");a(g2,"time")});var $P=x(()=>{"use strict";JO();iP();C3();FP()});function Y3(e){for(var t=e.length/6|0,r=new Array(t),n=0;n{"use strict";a(Y3,"default")});var X3,VP=x(()=>{"use strict";GP();X3=Y3("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab")});var zP=x(()=>{"use strict";VP()});function Ur(e){return a(function(){return e},"constant")}var y2=x(()=>{"use strict";a(Ur,"default")});function UP(e){return e>1?0:e<-1?wf:Math.acos(e)}function Q3(e){return e>=1?Bg:e<=-1?-Bg:Math.asin(e)}var K3,ti,sc,WP,x2,La,Nu,Wn,wf,Bg,Ef,b2=x(()=>{"use strict";K3=Math.abs,ti=Math.atan2,sc=Math.cos,WP=Math.max,x2=Math.min,La=Math.sin,Nu=Math.sqrt,Wn=1e-12,wf=Math.PI,Bg=wf/2,Ef=2*wf;a(UP,"acos");a(Q3,"asin")});function k2(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{let n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new wu(t)}var Z3=x(()=>{"use strict";u3();a(k2,"withPath")});function Mdt(e){return e.innerRadius}function Odt(e){return e.outerRadius}function Pdt(e){return e.startAngle}function Bdt(e){return e.endAngle}function Fdt(e){return e&&e.padAngle}function $dt(e,t,r,n,i,s,o,l){var u=r-e,h=n-t,f=o-i,d=l-s,p=d*u-f*h;if(!(p*pB*B+I*I&&(w=F,A=S),{cx:w,cy:A,x01:-f,y01:-d,x11:w*(i/C-1),y11:A*(i/C-1)}}function Ra(){var e=Mdt,t=Odt,r=Ur(0),n=null,i=Pdt,s=Bdt,o=Fdt,l=null,u=k2(h);function h(){var f,d,p=+e.apply(this,arguments),m=+t.apply(this,arguments),g=i.apply(this,arguments)-Bg,y=s.apply(this,arguments)-Bg,b=K3(y-g),k=y>g;if(l||(l=f=u()),mWn))l.moveTo(0,0);else if(b>Ef-Wn)l.moveTo(m*sc(g),m*La(g)),l.arc(0,0,m,g,y,!k),p>Wn&&(l.moveTo(p*sc(y),p*La(y)),l.arc(0,0,p,y,g,k));else{var T=g,_=y,L=g,C=y,D=b,$=b,w=o.apply(this,arguments)/2,A=w>Wn&&(n?+n.apply(this,arguments):Nu(p*p+m*m)),F=x2(K3(m-p)/2,+r.apply(this,arguments)),S=F,v=F,R,B;if(A>Wn){var I=Q3(A/p*La(w)),M=Q3(A/m*La(w));(D-=I*2)>Wn?(I*=k?1:-1,L+=I,C-=I):(D=0,L=C=(g+y)/2),($-=M*2)>Wn?(M*=k?1:-1,T+=M,_-=M):($=0,T=_=(g+y)/2)}var O=m*sc(T),N=m*La(T),E=p*sc(C),V=p*La(C);if(F>Wn){var G=m*sc(_),J=m*La(_),rt=p*sc(L),nt=p*La(L),ct;if(bWn?v>Wn?(R=T2(rt,nt,O,N,m,v,k),B=T2(G,J,E,V,m,v,k),l.moveTo(R.cx+R.x01,R.cy+R.y01),vWn)||!(D>Wn)?l.lineTo(E,V):S>Wn?(R=T2(E,V,G,J,p,-S,k),B=T2(O,N,rt,nt,p,-S,k),l.lineTo(R.cx+R.x01,R.cy+R.y01),S{"use strict";y2();b2();Z3();a(Mdt,"arcInnerRadius");a(Odt,"arcOuterRadius");a(Pdt,"arcStartAngle");a(Bdt,"arcEndAngle");a(Fdt,"arcPadAngle");a($dt,"intersect");a(T2,"cornerTangents");a(Ra,"default")});function Fg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}var cYt,J3=x(()=>{"use strict";cYt=Array.prototype.slice;a(Fg,"default")});function qP(e){this._context=e}function ol(e){return new qP(e)}var tv=x(()=>{"use strict";a(qP,"Linear");qP.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}},"point")};a(ol,"default")});function HP(e){return e[0]}function YP(e){return e[1]}var XP=x(()=>{"use strict";a(HP,"x");a(YP,"y")});function Da(e,t){var r=Ur(!0),n=null,i=ol,s=null,o=k2(l);e=typeof e=="function"?e:e===void 0?HP:Ur(e),t=typeof t=="function"?t:t===void 0?YP:Ur(t);function l(u){var h,f=(u=Fg(u)).length,d,p=!1,m;for(n==null&&(s=i(m=o())),h=0;h<=f;++h)!(h{"use strict";J3();y2();tv();Z3();XP();a(Da,"default")});function ev(e,t){return te?1:t>=e?0:NaN}var QP=x(()=>{"use strict";a(ev,"default")});function rv(e){return e}var ZP=x(()=>{"use strict";a(rv,"default")});function S2(){var e=rv,t=ev,r=null,n=Ur(0),i=Ur(Ef),s=Ur(0);function o(l){var u,h=(l=Fg(l)).length,f,d,p=0,m=new Array(h),g=new Array(h),y=+n.apply(this,arguments),b=Math.min(Ef,Math.max(-Ef,i.apply(this,arguments)-y)),k,T=Math.min(Math.abs(b)/h,s.apply(this,arguments)),_=T*(b<0?-1:1),L;for(u=0;u0&&(p+=L);for(t!=null?m.sort(function(C,D){return t(g[C],g[D])}):r!=null&&m.sort(function(C,D){return r(l[C],l[D])}),u=0,d=p?(b-h*_)/p:0;u0?L*d:0)+_,g[f]={data:l[f],index:u,value:L,startAngle:y,endAngle:k,padAngle:T};return g}return a(o,"pie"),o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Ur(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,r=null,o):t},o.sort=function(l){return arguments.length?(r=l,t=null,o):r},o.startAngle=function(l){return arguments.length?(n=typeof l=="function"?l:Ur(+l),o):n},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Ur(+l),o):i},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Ur(+l),o):s},o}var JP=x(()=>{"use strict";J3();y2();QP();ZP();b2();a(S2,"default")});function $g(e){return new _2(e,!0)}function Gg(e){return new _2(e,!1)}var _2,t9=x(()=>{"use strict";_2=class{static{a(this,"Bump")}constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}};a($g,"bumpX");a(Gg,"bumpY")});function _s(){}var Vg=x(()=>{"use strict";a(_s,"default")});function vf(e,t,r){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+t)/6,(e._y0+4*e._y1+r)/6)}function zg(e){this._context=e}function js(e){return new zg(e)}var Wg=x(()=>{"use strict";a(vf,"point");a(zg,"Basis");zg.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 3:vf(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};a(js,"default")});function e9(e){this._context=e}function C2(e){return new e9(e)}var r9=x(()=>{"use strict";Vg();Wg();a(e9,"BasisClosed");e9.prototype={areaStart:_s,areaEnd:_s,lineStart:a(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},"lineStart"),lineEnd:a(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}}},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};a(C2,"default")});function n9(e){this._context=e}function w2(e){return new n9(e)}var i9=x(()=>{"use strict";Wg();a(n9,"BasisOpen");n9.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:vf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t},"point")};a(w2,"default")});function s9(e,t){this._basis=new zg(e),this._beta=t}var nv,a9=x(()=>{"use strict";Wg();a(s9,"Bundle");s9.prototype={lineStart:a(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:a(function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var n=e[0],i=t[0],s=e[r]-n,o=t[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(n+u*s),this._beta*t[l]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:a(function(e,t){this._x.push(+e),this._y.push(+t)},"point")};nv=a(function e(t){function r(n){return t===1?new zg(n):new s9(n,t)}return a(r,"bundle"),r.beta=function(n){return e(+n)},r},"custom")(.85)});function Af(e,t,r){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-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function E2(e,t){this._context=e,this._k=(1-t)/6}var Ug,jg=x(()=>{"use strict";a(Af,"point");a(E2,"Cardinal");E2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Af(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Af(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};Ug=a(function e(t){function r(n){return new E2(n,t)}return a(r,"cardinal"),r.tension=function(n){return e(+n)},r},"custom")(0)});function v2(e,t){this._context=e,this._k=(1-t)/6}var iv,sv=x(()=>{"use strict";Vg();jg();a(v2,"CardinalClosed");v2.prototype={areaStart:_s,areaEnd:_s,lineStart:a(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},"lineStart"),lineEnd:a(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}}},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Af(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};iv=a(function e(t){function r(n){return new v2(n,t)}return a(r,"cardinal"),r.tension=function(n){return e(+n)},r},"custom")(0)});function A2(e,t){this._context=e,this._k=(1-t)/6}var av,ov=x(()=>{"use strict";jg();a(A2,"CardinalOpen");A2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,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:Af(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t},"point")};av=a(function e(t){function r(n){return new A2(n,t)}return a(r,"cardinal"),r.tension=function(n){return e(+n)},r},"custom")(0)});function qg(e,t,r){var n=e._x1,i=e._y1,s=e._x2,o=e._y2;if(e._l01_a>Wn){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Wn){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*h+e._x1*e._l23_2a-t*e._l12_2a)/f,o=(o*h+e._y1*e._l23_2a-r*e._l12_2a)/f}e._context.bezierCurveTo(n,i,s,o,e._x2,e._y2)}function o9(e,t){this._context=e,this._alpha=t}var Hg,L2=x(()=>{"use strict";b2();jg();a(qg,"point");a(o9,"CatmullRom");o9.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(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},"lineStart"),lineEnd:a(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:qg(this,e,t);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=t},"point")};Hg=a(function e(t){function r(n){return t?new o9(n,t):new E2(n,0)}return a(r,"catmullRom"),r.alpha=function(n){return e(+n)},r},"custom")(.5)});function l9(e,t){this._context=e,this._alpha=t}var lv,c9=x(()=>{"use strict";sv();Vg();L2();a(l9,"CatmullRomClosed");l9.prototype={areaStart:_s,areaEnd:_s,lineStart:a(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},"lineStart"),lineEnd:a(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}}},"lineEnd"),point:a(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:qg(this,e,t);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=t},"point")};lv=a(function e(t){function r(n){return t?new l9(n,t):new v2(n,0)}return a(r,"catmullRom"),r.alpha=function(n){return e(+n)},r},"custom")(.5)});function u9(e,t){this._context=e,this._alpha=t}var cv,h9=x(()=>{"use strict";ov();L2();a(u9,"CatmullRomOpen");u9.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(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},"lineStart"),lineEnd:a(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,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:qg(this,e,t);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=t},"point")};cv=a(function e(t){function r(n){return t?new u9(n,t):new A2(n,0)}return a(r,"catmullRom"),r.alpha=function(n){return e(+n)},r},"custom")(.5)});function f9(e){this._context=e}function R2(e){return new f9(e)}var d9=x(()=>{"use strict";Vg();a(f9,"LinearClosed");f9.prototype={areaStart:_s,areaEnd:_s,lineStart:a(function(){this._point=0},"lineStart"),lineEnd:a(function(){this._point&&this._context.closePath()},"lineEnd"),point:a(function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))},"point")};a(R2,"default")});function p9(e){return e<0?-1:1}function m9(e,t,r){var n=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(s*i+o*n)/(n+i);return(p9(s)+p9(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function g9(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function uv(e,t,r){var n=e._x0,i=e._y0,s=e._x1,o=e._y1,l=(s-n)/3;e._context.bezierCurveTo(n+l,i+l*t,s-l,o-l*r,s,o)}function D2(e){this._context=e}function y9(e){this._context=new x9(e)}function x9(e){this._context=e}function Yg(e){return new D2(e)}function Xg(e){return new y9(e)}var b9=x(()=>{"use strict";a(p9,"sign");a(m9,"slope3");a(g9,"slope2");a(uv,"point");a(D2,"MonotoneX");D2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:a(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uv(this,this._t0,g9(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:a(function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,uv(this,g9(this,r=m9(this,e,t)),r);break;default:uv(this,this._t0,r=m9(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}},"point")};a(y9,"MonotoneY");(y9.prototype=Object.create(D2.prototype)).point=function(e,t){D2.prototype.point.call(this,t,e)};a(x9,"ReflectContext");x9.prototype={moveTo:a(function(e,t){this._context.moveTo(t,e)},"moveTo"),closePath:a(function(){this._context.closePath()},"closePath"),lineTo:a(function(e,t){this._context.lineTo(t,e)},"lineTo"),bezierCurveTo:a(function(e,t,r,n,i,s){this._context.bezierCurveTo(t,e,n,r,s,i)},"bezierCurveTo")};a(Yg,"monotoneX");a(Xg,"monotoneY")});function T9(e){this._context=e}function k9(e){var t,r=e.length-1,n,i=new Array(r),s=new Array(r),o=new Array(r);for(i[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(o[t]-i[t+1])/s[t];for(s[r-1]=(e[r]+i[r-1])/2,t=0;t{"use strict";a(T9,"Natural");T9.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:a(function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=k9(e),i=k9(t),s=0,o=1;o{"use strict";a(I2,"Step");I2.prototype={areaStart:a(function(){this._line=0},"areaStart"),areaEnd:a(function(){this._line=NaN},"areaEnd"),lineStart:a(function(){this._x=this._y=NaN,this._point=0},"lineStart"),lineEnd:a(function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:a(function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t},"point")};a(Rf,"default");a(Kg,"stepBefore");a(Qg,"stepAfter")});var C9=x(()=>{"use strict";jP();KP();JP();r9();i9();Wg();t9();a9();sv();ov();jg();c9();h9();L2();d9();tv();b9();S9();_9()});var w9=x(()=>{"use strict"});var E9=x(()=>{"use strict"});function ac(e,t,r){this.k=e,this.x=t,this.y=r}function fv(e){for(;!e.__zoom;)if(!(e=e.parentNode))return hv;return e.__zoom}var hv,dv=x(()=>{"use strict";a(ac,"Transform");ac.prototype={constructor:ac,scale:a(function(e){return e===1?this:new ac(this.k*e,this.x,this.y)},"scale"),translate:a(function(e,t){return e===0&t===0?this:new ac(this.k,this.x+this.k*e,this.y+this.k*t)},"translate"),apply:a(function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},"apply"),applyX:a(function(e){return e*this.k+this.x},"applyX"),applyY:a(function(e){return e*this.k+this.y},"applyY"),invert:a(function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},"invert"),invertX:a(function(e){return(e-this.x)/this.k},"invertX"),invertY:a(function(e){return(e-this.y)/this.k},"invertY"),rescaleX:a(function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},"rescaleX"),rescaleY:a(function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},"rescaleY"),toString:a(function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"},"toString")};hv=new ac(1,0,0);fv.prototype=ac.prototype;a(fv,"transform")});var v9=x(()=>{"use strict"});var A9=x(()=>{"use strict";Kx();w9();E9();dv();v9()});var L9=x(()=>{"use strict";A9();dv()});var $e=x(()=>{"use strict";Xl();aN();wO();LO();mf();RO();DO();yw();QN();IO();s3();NO();OO();S3();XO();KO();xf();u3();QO();MO();ZO();$P();zP();Sa();C9();m2();H3();Ux();Kx();L9()});var R9=bs(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.BLANK_URL=Un.relativeFirstCharacters=Un.whitespaceEscapeCharsRegex=Un.urlSchemeRegex=Un.ctrlCharactersRegex=Un.htmlCtrlEntityRegex=Un.htmlEntitiesRegex=Un.invalidProtocolRegex=void 0;Un.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;Un.htmlEntitiesRegex=/(\w+)(^\w|;)?/g;Un.htmlCtrlEntityRegex=/&(newline|tab);/gi;Un.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;Un.urlSchemeRegex=/^.+(:|:)/gim;Un.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;Un.relativeFirstCharacters=[".","/"];Un.BLANK_URL="about:blank"});var Df=bs(N2=>{"use strict";Object.defineProperty(N2,"__esModule",{value:!0});N2.sanitizeUrl=void 0;var ui=R9();function Gdt(e){return ui.relativeFirstCharacters.indexOf(e[0])>-1}a(Gdt,"isRelativeUrlWithoutProtocol");function Vdt(e){var t=e.replace(ui.ctrlCharactersRegex,"");return t.replace(ui.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}a(Vdt,"decodeHtmlCharacters");function zdt(e){return URL.canParse(e)}a(zdt,"isValidUrl");function D9(e){try{return decodeURIComponent(e)}catch{return e}}a(D9,"decodeURI");function Wdt(e){if(!e)return ui.BLANK_URL;var t,r=D9(e.trim());do r=Vdt(r).replace(ui.htmlCtrlEntityRegex,"").replace(ui.ctrlCharactersRegex,"").replace(ui.whitespaceEscapeCharsRegex,"").trim(),r=D9(r),t=r.match(ui.ctrlCharactersRegex)||r.match(ui.htmlEntitiesRegex)||r.match(ui.htmlCtrlEntityRegex)||r.match(ui.whitespaceEscapeCharsRegex);while(t&&t.length>0);var n=r;if(!n)return ui.BLANK_URL;if(Gdt(n))return n;var i=n.trimStart(),s=i.match(ui.urlSchemeRegex);if(!s)return n;var o=s[0].toLowerCase().trim();if(ui.invalidProtocolRegex.test(o))return ui.BLANK_URL;var l=i.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return l;if(o==="http:"||o==="https:"){if(!zdt(l))return ui.BLANK_URL;var u=new URL(l);return u.protocol=u.protocol.toLowerCase(),u.hostname=u.hostname.toLowerCase(),u.toString()}return l}a(Wdt,"sanitizeUrl");N2.sanitizeUrl=Wdt});var pv,Mu,M2,I9,N9,M9,Ia,Zg,Jg=x(()=>{"use strict";pv=Ki(Df(),1);Fe();Mu=a((e,t)=>{let r=e.append("rect");if(r.attr("x",t.x),r.attr("y",t.y),r.attr("fill",t.fill),r.attr("stroke",t.stroke),r.attr("width",t.width),r.attr("height",t.height),t.name&&r.attr("name",t.name),t.rx&&r.attr("rx",t.rx),t.ry&&r.attr("ry",t.ry),t.attrs!==void 0)for(let n in t.attrs)r.attr(n,t.attrs[n]);return t.class&&r.attr("class",t.class),r},"drawRect"),M2=a((e,t)=>{let r={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};Mu(e,r).lower()},"drawBackgroundRect"),I9=a((e,t)=>{let r=t.text.replace(af," "),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.attr("class","legend"),n.style("text-anchor",t.anchor),t.class&&n.attr("class",t.class);let i=n.append("tspan");return i.attr("x",t.x+t.textMargin*2),i.text(r),n},"drawText"),N9=a((e,t,r,n)=>{let i=e.append("image");i.attr("x",t),i.attr("y",r);let s=(0,pv.sanitizeUrl)(n);i.attr("xlink:href",s)},"drawImage"),M9=a((e,t,r,n)=>{let i=e.append("use");i.attr("x",t),i.attr("y",r);let s=(0,pv.sanitizeUrl)(n);i.attr("xlink:href",`#${s}`)},"drawEmbeddedImage"),Ia=a(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),Zg=a(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj")});var O9,mv,P9,Udt,jdt,qdt,Hdt,Ydt,Xdt,Kdt,Qdt,Zdt,Jdt,tpt,ept,ll,Na,B9=x(()=>{"use strict";Fe();Jg();O9=Ki(Df(),1),mv=a(function(e,t){return Mu(e,t)},"drawRect"),P9=a(function(e,t,r,n,i,s){let o=e.append("image");o.attr("width",t),o.attr("height",r),o.attr("x",n),o.attr("y",i);let l=s.startsWith("data:image/png;base64")?s:(0,O9.sanitizeUrl)(s);o.attr("xlink:href",l)},"drawImage"),Udt=a((e,t,r)=>{let n=e.append("g"),i=0;for(let s of t){let o=s.textColor?s.textColor:"#444444",l=s.lineColor?s.lineColor:"#444444",u=s.offsetX?parseInt(s.offsetX):0,h=s.offsetY?parseInt(s.offsetY):0,f="";if(i===0){let p=n.append("line");p.attr("x1",s.startPoint.x),p.attr("y1",s.startPoint.y),p.attr("x2",s.endPoint.x),p.attr("y2",s.endPoint.y),p.attr("stroke-width","1"),p.attr("stroke",l),p.style("fill","none"),s.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)"),i=-1}else{let p=n.append("path");p.attr("fill","none").attr("stroke-width","1").attr("stroke",l).attr("d","Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx",s.startPoint.x).replaceAll("starty",s.startPoint.y).replaceAll("controlx",s.startPoint.x+(s.endPoint.x-s.startPoint.x)/2-(s.endPoint.x-s.startPoint.x)/4).replaceAll("controly",s.startPoint.y+(s.endPoint.y-s.startPoint.y)/2).replaceAll("stopx",s.endPoint.x).replaceAll("stopy",s.endPoint.y)),s.type!=="rel_b"&&p.attr("marker-end","url("+f+"#arrowhead)"),(s.type==="birel"||s.type==="rel_b")&&p.attr("marker-start","url("+f+"#arrowend)")}let d=r.messageFont();ll(r)(s.label.text,n,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+h,s.label.width,s.label.height,{fill:o},d),s.techn&&s.techn.text!==""&&(d=r.messageFont(),ll(r)("["+s.techn.text+"]",n,Math.min(s.startPoint.x,s.endPoint.x)+Math.abs(s.endPoint.x-s.startPoint.x)/2+u,Math.min(s.startPoint.y,s.endPoint.y)+Math.abs(s.endPoint.y-s.startPoint.y)/2+r.messageFontSize+5+h,Math.max(s.label.width,s.techn.width),s.techn.height,{fill:o,"font-style":"italic"},d))}},"drawRels"),jdt=a(function(e,t,r){let n=e.append("g"),i=t.bgColor?t.bgColor:"none",s=t.borderColor?t.borderColor:"#444444",o=t.fontColor?t.fontColor:"black",l={"stroke-width":1,"stroke-dasharray":"7.0,7.0"};t.nodeType&&(l={"stroke-width":1});let u={x:t.x,y:t.y,fill:i,stroke:s,width:t.width,height:t.height,rx:2.5,ry:2.5,attrs:l};mv(n,u);let h=r.boundaryFont();h.fontWeight="bold",h.fontSize=h.fontSize+2,h.fontColor=o,ll(r)(t.label.text,n,t.x,t.y+t.label.Y,t.width,t.height,{fill:"#444444"},h),t.type&&t.type.text!==""&&(h=r.boundaryFont(),h.fontColor=o,ll(r)(t.type.text,n,t.x,t.y+t.type.Y,t.width,t.height,{fill:"#444444"},h)),t.descr&&t.descr.text!==""&&(h=r.boundaryFont(),h.fontSize=h.fontSize-2,h.fontColor=o,ll(r)(t.descr.text,n,t.x,t.y+t.descr.Y,t.width,t.height,{fill:"#444444"},h))},"drawBoundary"),qdt=a(function(e,t,r){let n=t.bgColor?t.bgColor:r[t.typeC4Shape.text+"_bg_color"],i=t.borderColor?t.borderColor:r[t.typeC4Shape.text+"_border_color"],s=t.fontColor?t.fontColor:"#FFFFFF",o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";switch(t.typeC4Shape.text){case"person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII=";break;case"external_person":o="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAAB6ElEQVR4Xu2YLY+EMBCG9+dWr0aj0Wg0Go1Go0+j8Xdv2uTCvv1gpt0ebHKPuhDaeW4605Z9mJvx4AdXUyTUdd08z+u6flmWZRnHsWkafk9DptAwDPu+f0eAYtu2PEaGWuj5fCIZrBAC2eLBAnRCsEkkxmeaJp7iDJ2QMDdHsLg8SxKFEJaAo8lAXnmuOFIhTMpxxKATebo4UiFknuNo4OniSIXQyRxEA3YsnjGCVEjVXD7yLUAqxBGUyPv/Y4W2beMgGuS7kVQIBycH0fD+oi5pezQETxdHKmQKGk1eQEYldK+jw5GxPfZ9z7Mk0Qnhf1W1m3w//EUn5BDmSZsbR44QQLBEqrBHqOrmSKaQAxdnLArCrxZcM7A7ZKs4ioRq8LFC+NpC3WCBJsvpVw5edm9iEXFuyNfxXAgSwfrFQ1c0iNda8AdejvUgnktOtJQQxmcfFzGglc5WVCj7oDgFqU18boeFSs52CUh8LE8BIVQDT1ABrB0HtgSEYlX5doJnCwv9TXocKCaKbnwhdDKPq4lf3SwU3HLq4V/+WYhHVMa/3b4IlfyikAduCkcBc7mQ3/z/Qq/cTuikhkzB12Ae/mcJC9U+Vo8Ej1gWAtgbeGgFsAMHr50BIWOLCbezvhpBFUdY6EJuJ/QDW0XoMX60zZ0AAAAASUVORK5CYII=";break}let l=e.append("g");l.attr("class","person-man");let u=Ia();switch(t.typeC4Shape.text){case"person":case"external_person":case"system":case"external_system":case"container":case"external_container":case"component":case"external_component":u.x=t.x,u.y=t.y,u.fill=n,u.width=t.width,u.height=t.height,u.stroke=i,u.rx=2.5,u.ry=2.5,u.attrs={"stroke-width":.5},mv(l,u);break;case"system_db":case"external_system_db":case"container_db":case"external_container_db":case"component_db":case"external_component_db":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,-10 half,-10 half,-10c0,0 half,0 half,10l0,heightc0,10 -half,10 -half,10c0,0 -half,0 -half,-10l0,-height".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2).replaceAll("height",t.height)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc0,10 half,10 half,10c0,0 half,0 half,-10".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("half",t.width/2));break;case"system_queue":case"external_system_queue":case"container_queue":case"external_container_queue":case"component_queue":case"external_component_queue":l.append("path").attr("fill",n).attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startylwidth,0c5,0 5,half 5,halfc0,0 0,half -5,halfl-width,0c-5,0 -5,-half -5,-halfc0,0 0,-half 5,-half".replaceAll("startx",t.x).replaceAll("starty",t.y).replaceAll("width",t.width).replaceAll("half",t.height/2)),l.append("path").attr("fill","none").attr("stroke-width","0.5").attr("stroke",i).attr("d","Mstartx,startyc-5,0 -5,half -5,halfc0,half 5,half 5,half".replaceAll("startx",t.x+t.width).replaceAll("starty",t.y).replaceAll("half",t.height/2));break}let h=ept(r,t.typeC4Shape.text);switch(l.append("text").attr("fill",s).attr("font-family",h.fontFamily).attr("font-size",h.fontSize-2).attr("font-style","italic").attr("lengthAdjust","spacing").attr("textLength",t.typeC4Shape.width).attr("x",t.x+t.width/2-t.typeC4Shape.width/2).attr("y",t.y+t.typeC4Shape.Y).text("<<"+t.typeC4Shape.text+">>"),t.typeC4Shape.text){case"person":case"external_person":P9(l,48,48,t.x+t.width/2-24,t.y+t.image.Y,o);break}let f=r[t.typeC4Shape.text+"Font"]();return f.fontWeight="bold",f.fontSize=f.fontSize+2,f.fontColor=s,ll(r)(t.label.text,l,t.x,t.y+t.label.Y,t.width,t.height,{fill:s},f),f=r[t.typeC4Shape.text+"Font"](),f.fontColor=s,t.techn&&t.techn?.text!==""?ll(r)(t.techn.text,l,t.x,t.y+t.techn.Y,t.width,t.height,{fill:s,"font-style":"italic"},f):t.type&&t.type.text!==""&&ll(r)(t.type.text,l,t.x,t.y+t.type.Y,t.width,t.height,{fill:s,"font-style":"italic"},f),t.descr&&t.descr.text!==""&&(f=r.personFont(),f.fontColor=s,ll(r)(t.descr.text,l,t.x,t.y+t.descr.Y,t.width,t.height,{fill:s},f)),t.height},"drawC4Shape"),Hdt=a(function(e){e.append("defs").append("symbol").attr("id","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"),Ydt=a(function(e){e.append("defs").append("symbol").attr("id","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"),Xdt=a(function(e){e.append("defs").append("symbol").attr("id","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"),Kdt=a(function(e){e.append("defs").append("marker").attr("id","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"),Qdt=a(function(e){e.append("defs").append("marker").attr("id","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"),Zdt=a(function(e){e.append("defs").append("marker").attr("id","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"),Jdt=a(function(e){e.append("defs").append("marker").attr("id","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)},"insertDynamicNumber"),tpt=a(function(e){let r=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);r.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"),r.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"),ept=a((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"getC4ShapeFont"),ll=function(){function e(i,s,o,l,u,h,f){let d=s.append("text").attr("x",o+u/2).attr("y",l+h/2+5).style("text-anchor","middle").text(i);n(d,f)}a(e,"byText");function t(i,s,o,l,u,h,f,d){let{fontSize:p,fontFamily:m,fontWeight:g}=d,y=i.split(Rt.lineBreakRegex);for(let b=0;b{"use strict";rpt=typeof global=="object"&&global&&global.Object===Object&&global,P2=rpt});var npt,ipt,ln,qs=x(()=>{"use strict";gv();npt=typeof self=="object"&&self&&self.Object===Object&&self,ipt=P2||npt||Function("return this")(),ln=ipt});var spt,jn,Ou=x(()=>{"use strict";qs();spt=ln.Symbol,jn=spt});function lpt(e){var t=apt.call(e,t0),r=e[t0];try{e[t0]=void 0;var n=!0}catch{}var i=opt.call(e);return n&&(t?e[t0]=r:delete e[t0]),i}var F9,apt,opt,t0,$9,G9=x(()=>{"use strict";Ou();F9=Object.prototype,apt=F9.hasOwnProperty,opt=F9.toString,t0=jn?jn.toStringTag:void 0;a(lpt,"getRawTag");$9=lpt});function hpt(e){return upt.call(e)}var cpt,upt,V9,z9=x(()=>{"use strict";cpt=Object.prototype,upt=cpt.toString;a(hpt,"objectToString");V9=hpt});function ppt(e){return e==null?e===void 0?dpt:fpt:W9&&W9 in Object(e)?$9(e):V9(e)}var fpt,dpt,W9,ei,cl=x(()=>{"use strict";Ou();G9();z9();fpt="[object Null]",dpt="[object Undefined]",W9=jn?jn.toStringTag:void 0;a(ppt,"baseGetTag");ei=ppt});function mpt(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Ir,Cs=x(()=>{"use strict";a(mpt,"isObject");Ir=mpt});function kpt(e){if(!Ir(e))return!1;var t=ei(e);return t==ypt||t==xpt||t==gpt||t==bpt}var gpt,ypt,xpt,bpt,_n,e0=x(()=>{"use strict";cl();Cs();gpt="[object AsyncFunction]",ypt="[object Function]",xpt="[object GeneratorFunction]",bpt="[object Proxy]";a(kpt,"isFunction");_n=kpt});var Tpt,B2,U9=x(()=>{"use strict";qs();Tpt=ln["__core-js_shared__"],B2=Tpt});function Spt(e){return!!j9&&j9 in e}var j9,q9,H9=x(()=>{"use strict";U9();j9=function(){var e=/[^.]+$/.exec(B2&&B2.keys&&B2.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();a(Spt,"isMasked");q9=Spt});function wpt(e){if(e!=null){try{return Cpt.call(e)}catch{}try{return e+""}catch{}}return""}var _pt,Cpt,ul,yv=x(()=>{"use strict";_pt=Function.prototype,Cpt=_pt.toString;a(wpt,"toSource");ul=wpt});function Npt(e){if(!Ir(e)||q9(e))return!1;var t=_n(e)?Ipt:vpt;return t.test(ul(e))}var Ept,vpt,Apt,Lpt,Rpt,Dpt,Ipt,Y9,X9=x(()=>{"use strict";e0();H9();Cs();yv();Ept=/[\\^$.*+?()[\]{}|]/g,vpt=/^\[object .+?Constructor\]$/,Apt=Function.prototype,Lpt=Object.prototype,Rpt=Apt.toString,Dpt=Lpt.hasOwnProperty,Ipt=RegExp("^"+Rpt.call(Dpt).replace(Ept,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");a(Npt,"baseIsNative");Y9=Npt});function Mpt(e,t){return e?.[t]}var K9,Q9=x(()=>{"use strict";a(Mpt,"getValue");K9=Mpt});function Opt(e,t){var r=K9(e,t);return Y9(r)?r:void 0}var Ji,oc=x(()=>{"use strict";X9();Q9();a(Opt,"getNative");Ji=Opt});var Ppt,hl,r0=x(()=>{"use strict";oc();Ppt=Ji(Object,"create"),hl=Ppt});function Bpt(){this.__data__=hl?hl(null):{},this.size=0}var Z9,J9=x(()=>{"use strict";r0();a(Bpt,"hashClear");Z9=Bpt});function Fpt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tB,eB=x(()=>{"use strict";a(Fpt,"hashDelete");tB=Fpt});function zpt(e){var t=this.__data__;if(hl){var r=t[e];return r===$pt?void 0:r}return Vpt.call(t,e)?t[e]:void 0}var $pt,Gpt,Vpt,rB,nB=x(()=>{"use strict";r0();$pt="__lodash_hash_undefined__",Gpt=Object.prototype,Vpt=Gpt.hasOwnProperty;a(zpt,"hashGet");rB=zpt});function jpt(e){var t=this.__data__;return hl?t[e]!==void 0:Upt.call(t,e)}var Wpt,Upt,iB,sB=x(()=>{"use strict";r0();Wpt=Object.prototype,Upt=Wpt.hasOwnProperty;a(jpt,"hashHas");iB=jpt});function Hpt(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hl&&t===void 0?qpt:t,this}var qpt,aB,oB=x(()=>{"use strict";r0();qpt="__lodash_hash_undefined__";a(Hpt,"hashSet");aB=Hpt});function If(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{"use strict";J9();eB();nB();sB();oB();a(If,"Hash");If.prototype.clear=Z9;If.prototype.delete=tB;If.prototype.get=rB;If.prototype.has=iB;If.prototype.set=aB;xv=If});function Ypt(){this.__data__=[],this.size=0}var cB,uB=x(()=>{"use strict";a(Ypt,"listCacheClear");cB=Ypt});function Xpt(e,t){return e===t||e!==e&&t!==t}var Hs,Pu=x(()=>{"use strict";a(Xpt,"eq");Hs=Xpt});function Kpt(e,t){for(var r=e.length;r--;)if(Hs(e[r][0],t))return r;return-1}var lc,n0=x(()=>{"use strict";Pu();a(Kpt,"assocIndexOf");lc=Kpt});function Jpt(e){var t=this.__data__,r=lc(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Zpt.call(t,r,1),--this.size,!0}var Qpt,Zpt,hB,fB=x(()=>{"use strict";n0();Qpt=Array.prototype,Zpt=Qpt.splice;a(Jpt,"listCacheDelete");hB=Jpt});function tmt(e){var t=this.__data__,r=lc(t,e);return r<0?void 0:t[r][1]}var dB,pB=x(()=>{"use strict";n0();a(tmt,"listCacheGet");dB=tmt});function emt(e){return lc(this.__data__,e)>-1}var mB,gB=x(()=>{"use strict";n0();a(emt,"listCacheHas");mB=emt});function rmt(e,t){var r=this.__data__,n=lc(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var yB,xB=x(()=>{"use strict";n0();a(rmt,"listCacheSet");yB=rmt});function Nf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{"use strict";uB();fB();pB();gB();xB();a(Nf,"ListCache");Nf.prototype.clear=cB;Nf.prototype.delete=hB;Nf.prototype.get=dB;Nf.prototype.has=mB;Nf.prototype.set=yB;cc=Nf});var nmt,uc,F2=x(()=>{"use strict";oc();qs();nmt=Ji(ln,"Map"),uc=nmt});function imt(){this.size=0,this.__data__={hash:new xv,map:new(uc||cc),string:new xv}}var bB,kB=x(()=>{"use strict";lB();i0();F2();a(imt,"mapCacheClear");bB=imt});function smt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var TB,SB=x(()=>{"use strict";a(smt,"isKeyable");TB=smt});function amt(e,t){var r=e.__data__;return TB(t)?r[typeof t=="string"?"string":"hash"]:r.map}var hc,s0=x(()=>{"use strict";SB();a(amt,"getMapData");hc=amt});function omt(e){var t=hc(this,e).delete(e);return this.size-=t?1:0,t}var _B,CB=x(()=>{"use strict";s0();a(omt,"mapCacheDelete");_B=omt});function lmt(e){return hc(this,e).get(e)}var wB,EB=x(()=>{"use strict";s0();a(lmt,"mapCacheGet");wB=lmt});function cmt(e){return hc(this,e).has(e)}var vB,AB=x(()=>{"use strict";s0();a(cmt,"mapCacheHas");vB=cmt});function umt(e,t){var r=hc(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var LB,RB=x(()=>{"use strict";s0();a(umt,"mapCacheSet");LB=umt});function Mf(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{"use strict";kB();CB();EB();AB();RB();a(Mf,"MapCache");Mf.prototype.clear=bB;Mf.prototype.delete=_B;Mf.prototype.get=wB;Mf.prototype.has=vB;Mf.prototype.set=LB;Bu=Mf});function bv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hmt);var r=a(function(){var n=arguments,i=t?t.apply(this,n):n[0],s=r.cache;if(s.has(i))return s.get(i);var o=e.apply(this,n);return r.cache=s.set(i,o)||s,o},"memoized");return r.cache=new(bv.Cache||Bu),r}var hmt,Of,kv=x(()=>{"use strict";$2();hmt="Expected a function";a(bv,"memoize");bv.Cache=Bu;Of=bv});function fmt(){this.__data__=new cc,this.size=0}var DB,IB=x(()=>{"use strict";i0();a(fmt,"stackClear");DB=fmt});function dmt(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var NB,MB=x(()=>{"use strict";a(dmt,"stackDelete");NB=dmt});function pmt(e){return this.__data__.get(e)}var OB,PB=x(()=>{"use strict";a(pmt,"stackGet");OB=pmt});function mmt(e){return this.__data__.has(e)}var BB,FB=x(()=>{"use strict";a(mmt,"stackHas");BB=mmt});function ymt(e,t){var r=this.__data__;if(r instanceof cc){var n=r.__data__;if(!uc||n.length{"use strict";i0();F2();$2();gmt=200;a(ymt,"stackSet");$B=ymt});function Pf(e){var t=this.__data__=new cc(e);this.size=t.size}var co,a0=x(()=>{"use strict";i0();IB();MB();PB();FB();GB();a(Pf,"Stack");Pf.prototype.clear=DB;Pf.prototype.delete=NB;Pf.prototype.get=OB;Pf.prototype.has=BB;Pf.prototype.set=$B;co=Pf});var xmt,Bf,Tv=x(()=>{"use strict";oc();xmt=function(){try{var e=Ji(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Bf=xmt});function bmt(e,t,r){t=="__proto__"&&Bf?Bf(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var uo,Ff=x(()=>{"use strict";Tv();a(bmt,"baseAssignValue");uo=bmt});function kmt(e,t,r){(r!==void 0&&!Hs(e[t],r)||r===void 0&&!(t in e))&&uo(e,t,r)}var o0,Sv=x(()=>{"use strict";Ff();Pu();a(kmt,"assignMergeValue");o0=kmt});function Tmt(e){return function(t,r,n){for(var i=-1,s=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(s[u],u,s)===!1)break}return t}}var VB,zB=x(()=>{"use strict";a(Tmt,"createBaseFor");VB=Tmt});var Smt,$f,G2=x(()=>{"use strict";zB();Smt=VB(),$f=Smt});function Cmt(e,t){if(t)return e.slice();var r=e.length,n=jB?jB(r):new e.constructor(r);return e.copy(n),n}var qB,WB,_mt,UB,jB,V2,_v=x(()=>{"use strict";qs();qB=typeof exports=="object"&&exports&&!exports.nodeType&&exports,WB=qB&&typeof module=="object"&&module&&!module.nodeType&&module,_mt=WB&&WB.exports===qB,UB=_mt?ln.Buffer:void 0,jB=UB?UB.allocUnsafe:void 0;a(Cmt,"cloneBuffer");V2=Cmt});var wmt,Gf,Cv=x(()=>{"use strict";qs();wmt=ln.Uint8Array,Gf=wmt});function Emt(e){var t=new e.constructor(e.byteLength);return new Gf(t).set(new Gf(e)),t}var Vf,z2=x(()=>{"use strict";Cv();a(Emt,"cloneArrayBuffer");Vf=Emt});function vmt(e,t){var r=t?Vf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var W2,wv=x(()=>{"use strict";z2();a(vmt,"cloneTypedArray");W2=vmt});function Amt(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r{"use strict";a(Amt,"copyArray");U2=Amt});var HB,Lmt,YB,XB=x(()=>{"use strict";Cs();HB=Object.create,Lmt=function(){function e(){}return a(e,"object"),function(t){if(!Ir(t))return{};if(HB)return HB(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),YB=Lmt});function Rmt(e,t){return function(r){return e(t(r))}}var j2,vv=x(()=>{"use strict";a(Rmt,"overArg");j2=Rmt});var Dmt,zf,q2=x(()=>{"use strict";vv();Dmt=j2(Object.getPrototypeOf,Object),zf=Dmt});function Nmt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Imt;return e===r}var Imt,ho,Wf=x(()=>{"use strict";Imt=Object.prototype;a(Nmt,"isPrototype");ho=Nmt});function Mmt(e){return typeof e.constructor=="function"&&!ho(e)?YB(zf(e)):{}}var H2,Av=x(()=>{"use strict";XB();q2();Wf();a(Mmt,"initCloneObject");H2=Mmt});function Omt(e){return e!=null&&typeof e=="object"}var nn,Ys=x(()=>{"use strict";a(Omt,"isObjectLike");nn=Omt});function Bmt(e){return nn(e)&&ei(e)==Pmt}var Pmt,Lv,KB=x(()=>{"use strict";cl();Ys();Pmt="[object Arguments]";a(Bmt,"baseIsArguments");Lv=Bmt});var QB,Fmt,$mt,Gmt,Ma,Uf=x(()=>{"use strict";KB();Ys();QB=Object.prototype,Fmt=QB.hasOwnProperty,$mt=QB.propertyIsEnumerable,Gmt=Lv(function(){return arguments}())?Lv:function(e){return nn(e)&&Fmt.call(e,"callee")&&!$mt.call(e,"callee")},Ma=Gmt});var Vmt,Qt,Yr=x(()=>{"use strict";Vmt=Array.isArray,Qt=Vmt});function Wmt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zmt}var zmt,jf,Y2=x(()=>{"use strict";zmt=9007199254740991;a(Wmt,"isLength");jf=Wmt});function Umt(e){return e!=null&&jf(e.length)&&!_n(e)}var cn,Xs=x(()=>{"use strict";e0();Y2();a(Umt,"isArrayLike");cn=Umt});function jmt(e){return nn(e)&&cn(e)}var Fu,X2=x(()=>{"use strict";Xs();Ys();a(jmt,"isArrayLikeObject");Fu=jmt});function qmt(){return!1}var ZB,JB=x(()=>{"use strict";a(qmt,"stubFalse");ZB=qmt});var rF,tF,Hmt,eF,Ymt,Xmt,Oa,qf=x(()=>{"use strict";qs();JB();rF=typeof exports=="object"&&exports&&!exports.nodeType&&exports,tF=rF&&typeof module=="object"&&module&&!module.nodeType&&module,Hmt=tF&&tF.exports===rF,eF=Hmt?ln.Buffer:void 0,Ymt=eF?eF.isBuffer:void 0,Xmt=Ymt||ZB,Oa=Xmt});function egt(e){if(!nn(e)||ei(e)!=Kmt)return!1;var t=zf(e);if(t===null)return!0;var r=Jmt.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&nF.call(r)==tgt}var Kmt,Qmt,Zmt,nF,Jmt,tgt,iF,sF=x(()=>{"use strict";cl();q2();Ys();Kmt="[object Object]",Qmt=Function.prototype,Zmt=Object.prototype,nF=Qmt.toString,Jmt=Zmt.hasOwnProperty,tgt=nF.call(Object);a(egt,"isPlainObject");iF=egt});function Egt(e){return nn(e)&&jf(e.length)&&!!jr[ei(e)]}var rgt,ngt,igt,sgt,agt,ogt,lgt,cgt,ugt,hgt,fgt,dgt,pgt,mgt,ggt,ygt,xgt,bgt,kgt,Tgt,Sgt,_gt,Cgt,wgt,jr,aF,oF=x(()=>{"use strict";cl();Y2();Ys();rgt="[object Arguments]",ngt="[object Array]",igt="[object Boolean]",sgt="[object Date]",agt="[object Error]",ogt="[object Function]",lgt="[object Map]",cgt="[object Number]",ugt="[object Object]",hgt="[object RegExp]",fgt="[object Set]",dgt="[object String]",pgt="[object WeakMap]",mgt="[object ArrayBuffer]",ggt="[object DataView]",ygt="[object Float32Array]",xgt="[object Float64Array]",bgt="[object Int8Array]",kgt="[object Int16Array]",Tgt="[object Int32Array]",Sgt="[object Uint8Array]",_gt="[object Uint8ClampedArray]",Cgt="[object Uint16Array]",wgt="[object Uint32Array]",jr={};jr[ygt]=jr[xgt]=jr[bgt]=jr[kgt]=jr[Tgt]=jr[Sgt]=jr[_gt]=jr[Cgt]=jr[wgt]=!0;jr[rgt]=jr[ngt]=jr[mgt]=jr[igt]=jr[ggt]=jr[sgt]=jr[agt]=jr[ogt]=jr[lgt]=jr[cgt]=jr[ugt]=jr[hgt]=jr[fgt]=jr[dgt]=jr[pgt]=!1;a(Egt,"baseIsTypedArray");aF=Egt});function vgt(e){return function(t){return e(t)}}var Ks,$u=x(()=>{"use strict";a(vgt,"baseUnary");Ks=vgt});var lF,l0,Agt,Rv,Lgt,Qs,c0=x(()=>{"use strict";gv();lF=typeof exports=="object"&&exports&&!exports.nodeType&&exports,l0=lF&&typeof module=="object"&&module&&!module.nodeType&&module,Agt=l0&&l0.exports===lF,Rv=Agt&&P2.process,Lgt=function(){try{var e=l0&&l0.require&&l0.require("util").types;return e||Rv&&Rv.binding&&Rv.binding("util")}catch{}}(),Qs=Lgt});var cF,Rgt,fc,u0=x(()=>{"use strict";oF();$u();c0();cF=Qs&&Qs.isTypedArray,Rgt=cF?Ks(cF):aF,fc=Rgt});function Dgt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var h0,Dv=x(()=>{"use strict";a(Dgt,"safeGet");h0=Dgt});function Mgt(e,t,r){var n=e[t];(!(Ngt.call(e,t)&&Hs(n,r))||r===void 0&&!(t in e))&&uo(e,t,r)}var Igt,Ngt,fo,Hf=x(()=>{"use strict";Ff();Pu();Igt=Object.prototype,Ngt=Igt.hasOwnProperty;a(Mgt,"assignValue");fo=Mgt});function Ogt(e,t,r,n){var i=!r;r||(r={});for(var s=-1,o=t.length;++s{"use strict";Hf();Ff();a(Ogt,"copyObject");Zs=Ogt});function Pgt(e,t){for(var r=-1,n=Array(e);++r{"use strict";a(Pgt,"baseTimes");uF=Pgt});function $gt(e,t){var r=typeof e;return t=t??Bgt,!!t&&(r=="number"||r!="symbol"&&Fgt.test(e))&&e>-1&&e%1==0&&e{"use strict";Bgt=9007199254740991,Fgt=/^(?:0|[1-9]\d*)$/;a($gt,"isIndex");dc=$gt});function zgt(e,t){var r=Qt(e),n=!r&&Ma(e),i=!r&&!n&&Oa(e),s=!r&&!n&&!i&&fc(e),o=r||n||i||s,l=o?uF(e.length,String):[],u=l.length;for(var h in e)(t||Vgt.call(e,h))&&!(o&&(h=="length"||i&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||dc(h,u)))&&l.push(h);return l}var Ggt,Vgt,K2,Iv=x(()=>{"use strict";hF();Uf();Yr();qf();f0();u0();Ggt=Object.prototype,Vgt=Ggt.hasOwnProperty;a(zgt,"arrayLikeKeys");K2=zgt});function Wgt(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var fF,dF=x(()=>{"use strict";a(Wgt,"nativeKeysIn");fF=Wgt});function qgt(e){if(!Ir(e))return fF(e);var t=ho(e),r=[];for(var n in e)n=="constructor"&&(t||!jgt.call(e,n))||r.push(n);return r}var Ugt,jgt,pF,mF=x(()=>{"use strict";Cs();Wf();dF();Ugt=Object.prototype,jgt=Ugt.hasOwnProperty;a(qgt,"baseKeysIn");pF=qgt});function Hgt(e){return cn(e)?K2(e,!0):pF(e)}var ts,pc=x(()=>{"use strict";Iv();mF();Xs();a(Hgt,"keysIn");ts=Hgt});function Ygt(e){return Zs(e,ts(e))}var gF,yF=x(()=>{"use strict";Gu();pc();a(Ygt,"toPlainObject");gF=Ygt});function Xgt(e,t,r,n,i,s,o){var l=h0(e,r),u=h0(t,r),h=o.get(u);if(h){o0(e,r,h);return}var f=s?s(l,u,r+"",e,t,o):void 0,d=f===void 0;if(d){var p=Qt(u),m=!p&&Oa(u),g=!p&&!m&&fc(u);f=u,p||m||g?Qt(l)?f=l:Fu(l)?f=U2(l):m?(d=!1,f=V2(u,!0)):g?(d=!1,f=W2(u,!0)):f=[]:iF(u)||Ma(u)?(f=l,Ma(l)?f=gF(l):(!Ir(l)||_n(l))&&(f=H2(u))):d=!1}d&&(o.set(u,f),i(f,u,n,s,o),o.delete(u)),o0(e,r,f)}var xF,bF=x(()=>{"use strict";Sv();_v();wv();Ev();Av();Uf();Yr();X2();qf();e0();Cs();sF();u0();Dv();yF();a(Xgt,"baseMergeDeep");xF=Xgt});function kF(e,t,r,n,i){e!==t&&$f(t,function(s,o){if(i||(i=new co),Ir(s))xF(e,t,o,r,kF,n,i);else{var l=n?n(h0(e,o),s,o+"",e,t,i):void 0;l===void 0&&(l=s),o0(e,o,l)}},ts)}var TF,SF=x(()=>{"use strict";a0();Sv();G2();bF();Cs();pc();Dv();a(kF,"baseMerge");TF=kF});function Kgt(e){return e}var qn,fl=x(()=>{"use strict";a(Kgt,"identity");qn=Kgt});function Qgt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var _F,CF=x(()=>{"use strict";a(Qgt,"apply");_F=Qgt});function Zgt(e,t,r){return t=wF(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,s=wF(n.length-t,0),o=Array(s);++i{"use strict";CF();wF=Math.max;a(Zgt,"overRest");Q2=Zgt});function Jgt(e){return function(){return e}}var es,Mv=x(()=>{"use strict";a(Jgt,"constant");es=Jgt});var t0t,EF,vF=x(()=>{"use strict";Mv();Tv();fl();t0t=Bf?function(e,t){return Bf(e,"toString",{configurable:!0,enumerable:!1,value:es(t),writable:!0})}:qn,EF=t0t});function i0t(e){var t=0,r=0;return function(){var n=n0t(),i=r0t-(n-r);if(r=n,i>0){if(++t>=e0t)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var e0t,r0t,n0t,AF,LF=x(()=>{"use strict";e0t=800,r0t=16,n0t=Date.now;a(i0t,"shortOut");AF=i0t});var s0t,Z2,Ov=x(()=>{"use strict";vF();LF();s0t=AF(EF),Z2=s0t});function a0t(e,t){return Z2(Q2(e,t,qn),e+"")}var po,Yf=x(()=>{"use strict";fl();Nv();Ov();a(a0t,"baseRest");po=a0t});function o0t(e,t,r){if(!Ir(r))return!1;var n=typeof t;return(n=="number"?cn(r)&&dc(t,r.length):n=="string"&&t in r)?Hs(r[t],e):!1}var ws,Vu=x(()=>{"use strict";Pu();Xs();f0();Cs();a(o0t,"isIterateeCall");ws=o0t});function l0t(e){return po(function(t,r){var n=-1,i=r.length,s=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&ws(r[0],r[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++n{"use strict";Yf();Vu();a(l0t,"createAssigner");J2=l0t});var c0t,mc,Bv=x(()=>{"use strict";SF();Pv();c0t=J2(function(e,t,r){TF(e,t,r)}),mc=c0t});function Gv(e,t){if(!e)return t;let r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return u0t[r]??t}function p0t(e,t){let r=e.trim();if(r)return t.securityLevel!=="loose"?(0,IF.sanitizeUrl)(r):r}function OF(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function g0t(e){let t,r=0;e.forEach(i=>{r+=OF(i,t),t=i});let n=r/2;return Vv(e,n)}function y0t(e){return e.length===1?e[0]:g0t(e)}function b0t(e,t,r){let n=structuredClone(r);P.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();let i=25+e,s=Vv(n,i),o=10+e*.5,l=Math.atan2(n[0].y-s.y,n[0].x-s.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(l+Math.PI)*o+(n[0].x+s.x)/2,u.y=-Math.cos(l+Math.PI)*o+(n[0].y+s.y)/2):t==="end_right"?(u.x=Math.sin(l-Math.PI)*o+(n[0].x+s.x)/2-5,u.y=-Math.cos(l-Math.PI)*o+(n[0].y+s.y)/2-5):t==="end_left"?(u.x=Math.sin(l)*o+(n[0].x+s.x)/2-5,u.y=-Math.cos(l)*o+(n[0].y+s.y)/2-5):(u.x=Math.sin(l)*o+(n[0].x+s.x)/2,u.y=-Math.cos(l)*o+(n[0].y+s.y)/2),u}function zv(e){let t="",r="";for(let n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}function k0t(e){let t="",r="0123456789abcdef",n=r.length;for(let i=0;i{"use strict";IF=Ki(Df(),1);$e();Fe();BC();zt();hu();tf();kv();Bv();tx();$v="\u200B",u0t={curveBasis:js,curveBasisClosed:C2,curveBasisOpen:w2,curveBumpX:$g,curveBumpY:Gg,curveBundle:nv,curveCardinalClosed:iv,curveCardinalOpen:av,curveCardinal:Ug,curveCatmullRomClosed:lv,curveCatmullRomOpen:cv,curveCatmullRom:Hg,curveLinear:ol,curveLinearClosed:R2,curveMonotoneX:Yg,curveMonotoneY:Xg,curveNatural:Lf,curveStep:Rf,curveStepAfter:Qg,curveStepBefore:Kg},h0t=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,f0t=a(function(e,t){let r=NF(e,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let o=r.map(l=>l.args);rf(o),n=Hr(n,[...o])}else n=r.args;if(!n)return;let i=Jh(e,t),s="config";return n[s]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[s],delete n[s]),n},"detectInit"),NF=a(function(e,t=null){try{let r=new RegExp(`[%]{2}(?![{]${h0t.source})(?=[}][%]{2}).*
+`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),P.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let n,i=[];for(;(n=cu.exec(e))!==null;)if(n.index===cu.lastIndex&&cu.lastIndex++,n&&!t||t&&n[1]?.match(t)||t&&n[2]?.match(t)){let s=n[1]?n[1]:n[2],o=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:s,args:o})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(r){return P.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),MF=a(function(e){return e.replace(cu,"")},"removeDirectives"),d0t=a(function(e,t){for(let[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");a(Gv,"interpolateToCurve");a(p0t,"formatUrl");m0t=a((e,...t)=>{let r=e.split("."),n=r.length-1,i=r[n],s=window;for(let o=0;o{let r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Vv=a((e,t)=>{let r,n=t;for(let i of e){if(r){let s=OF(i,r);if(s===0)return r;if(s=1)return{x:i.x,y:i.y};if(o>0&&o<1)return{x:RF((1-o)*r.x+o*i.x,5),y:RF((1-o)*r.y+o*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),x0t=a((e,t,r)=>{P.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());let i=Vv(t,25),s=e?10:5,o=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(o)*s+(t[0].x+i.x)/2,l.y=-Math.cos(o)*s+(t[0].y+i.y)/2,l},"calcCardinalityPosition");a(b0t,"calcTerminalLabelPosition");a(zv,"getStylesFromArray");DF=0,Wv=a(()=>(DF++,"id-"+Math.random().toString(36).substr(2,12)+"-"+DF),"generateId");a(k0t,"makeRandomHex");Uv=a(e=>k0t(e.length),"random"),T0t=a(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"),S0t=a(function(e,t){let r=t.text.replace(Rt.lineBreakRegex," "),[,n]=mo(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);let s=i.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),i},"drawSimpleText"),jv=Of((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
"},r),Rt.lineBreakRegex.test(e)))return e;let n=e.split(" ").filter(Boolean),i=[],s="";return n.forEach((o,l)=>{let u=Hn(`${o} `,r),h=Hn(s,r);if(u>t){let{hyphenatedStrings:p,remainingWord:m}=_0t(o,t,"-",r);i.push(s,...p),s=m}else h+u>=t?(i.push(s),s=o):s=[s,o].filter(Boolean).join(" ");l+1===n.length&&i.push(s)}),i.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),_0t=Of((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...e],s=[],o="";return i.forEach((l,u)=>{let h=`${o}${l}`;if(Hn(h,n)>=t){let d=u+1,p=i.length===d,m=`${h}${r}`;s.push(p?h:m),o=""}else o=h}),{hyphenatedStrings:s,remainingWord:o}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);a(eb,"calculateTextHeight");a(Hn,"calculateTextWidth");qv=Of((e,t)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,s]=mo(r),o=["sans-serif",n],l=e.split(Rt.lineBreakRegex),u=[],h=xt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};let f=h.append("svg");for(let p of o){let m=0,g={width:0,height:0,lineHeight:0};for(let y of l){let b=T0t();b.text=y||$v;let k=S0t(f,b).style("font-size",s).style("font-weight",i).style("font-family",p),T=(k._groups||k)[0][0].getBBox();if(T.width===0&&T.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,T.width)),m=Math.round(T.height),g.height+=m,g.lineHeight=Math.round(Math.max(g.lineHeight,m))}u.push(g)}f.remove();let d=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[d]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Fv=class{constructor(t=!1,r){this.count=0;this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},C0t=a(function(e){return tb=tb||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),tb.innerHTML=e,unescape(tb.textContent)},"entityDecode");a(Hv,"isDetailedError");w0t=a((e,t,r,n)=>{if(!n)return;let i=e.node()?.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),mo=a(e=>{if(typeof e=="number")return[e,e+"px"];let t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");a(Nn,"cleanAndMerge");se={assignWithDepth:Hr,wrapLabel:jv,calculateTextHeight:eb,calculateTextWidth:Hn,calculateTextDimensions:qv,cleanAndMerge:Nn,detectInit:f0t,detectDirective:NF,isSubstringInArray:d0t,interpolateToCurve:Gv,calcLabelPosition:y0t,calcCardinalityPosition:x0t,calcTerminalLabelPosition:b0t,formatUrl:p0t,getStylesFromArray:zv,generateId:Wv,random:Uv,runFunc:m0t,entityDecode:C0t,insertTitle:w0t,parseFontSize:mo,InitIDGenerator:Fv},PF=a(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),t},"encodeEntities"),Yn=a(function(e){return e.replace(/fl°°/g,"").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),gc=a((e,t,{counter:r=0,prefix:n,suffix:i},s)=>s||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");a(qr,"handleUndefinedAttr")});function Pa(e,t,r,n,i){if(!t[e].width)if(r)t[e].text=jv(t[e].text,i,n),t[e].textLines=t[e].text.split(Rt.lineBreakRegex).length,t[e].width=i,t[e].height=eb(t[e].text,n);else{let s=t[e].text.split(Rt.lineBreakRegex);t[e].textLines=s.length;let o=0;t[e].height=0,t[e].width=0;for(let l of s)t[e].width=Math.max(Hn(l,n),t[e].width),o=eb(l,n),t[e].height=t[e].height+o}}function VF(e,t,r,n,i){let s=new sb(i);s.data.widthLimit=r.data.widthLimit/Math.min(Yv,n.length);for(let[o,l]of n.entries()){let u=0;l.image={width:0,height:0,Y:0},l.sprite&&(l.image.width=48,l.image.height=48,l.image.Y=u,u=l.image.Y+l.image.height);let h=l.wrap&&ae.wrap,f=rb(ae);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Pa("label",l,h,f,s.data.widthLimit),l.label.Y=u+8,u=l.label.Y+l.label.height,l.type&&l.type.text!==""){l.type.text="["+l.type.text+"]";let g=rb(ae);Pa("type",l,h,g,s.data.widthLimit),l.type.Y=u+5,u=l.type.Y+l.type.height}if(l.descr&&l.descr.text!==""){let g=rb(ae);g.fontSize=g.fontSize-2,Pa("descr",l,h,g,s.data.widthLimit),l.descr.Y=u+20,u=l.descr.Y+l.descr.height}if(o==0||o%Yv===0){let g=r.data.startx+ae.diagramMarginX,y=r.data.stopy+ae.diagramMarginY+u;s.setData(g,g,y,y)}else{let g=s.data.stopx!==s.data.startx?s.data.stopx+ae.diagramMarginX:s.data.startx,y=s.data.starty;s.setData(g,g,y,y)}s.name=l.alias;let d=i.db.getC4ShapeArray(l.alias),p=i.db.getC4ShapeKeys(l.alias);p.length>0&&GF(s,e,d,p),t=l.alias;let m=i.db.getBoundaries(t);m.length>0&&VF(e,t,s,m,i),l.alias!=="global"&&$F(e,l,s),r.data.stopy=Math.max(s.data.stopy+ae.c4ShapeMargin,r.data.stopy),r.data.stopx=Math.max(s.data.stopx+ae.c4ShapeMargin,r.data.stopx),nb=Math.max(nb,r.data.stopx),ib=Math.max(ib,r.data.stopy)}}var nb,ib,FF,Yv,ae,sb,Xv,d0,rb,E0t,$F,GF,rs,BF,v0t,A0t,L0t,Kv,zF=x(()=>{"use strict";$e();B9();zt();SC();Fe();sw();pe();tf();Ee();Gn();nb=0,ib=0,FF=4,Yv=2;Gm.yy=sg;ae={},sb=class{static{a(this,"Bounds")}constructor(t){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,Xv(t.db.getConfig())}setData(t,r,n,i){this.nextData.startx=this.data.startx=t,this.nextData.stopx=this.data.stopx=r,this.nextData.starty=this.data.starty=n,this.nextData.stopy=this.data.stopy=i}updateVal(t,r,n,i){t[r]===void 0?t[r]=n:t[r]=i(n,t[r])}insert(t){this.nextData.cnt=this.nextData.cnt+1;let r=this.nextData.startx===this.nextData.stopx?this.nextData.stopx+t.margin:this.nextData.stopx+t.margin*2,n=r+t.width,i=this.nextData.starty+t.margin*2,s=i+t.height;(r>=this.data.widthLimit||n>=this.data.widthLimit||this.nextData.cnt>FF)&&(r=this.nextData.startx+t.margin+ae.nextLinePaddingX,i=this.nextData.stopy+t.margin*2,this.nextData.stopx=n=r+t.width,this.nextData.starty=this.nextData.stopy,this.nextData.stopy=s=i+t.height,this.nextData.cnt=1),t.x=r,t.y=i,this.updateVal(this.data,"startx",r,Math.min),this.updateVal(this.data,"starty",i,Math.min),this.updateVal(this.data,"stopx",n,Math.max),this.updateVal(this.data,"stopy",s,Math.max),this.updateVal(this.nextData,"startx",r,Math.min),this.updateVal(this.nextData,"starty",i,Math.min),this.updateVal(this.nextData,"stopx",n,Math.max),this.updateVal(this.nextData,"stopy",s,Math.max)}init(t){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},Xv(t.db.getConfig())}bumpLastMargin(t){this.data.stopx+=t,this.data.stopy+=t}},Xv=a(function(e){Hr(ae,e),e.fontFamily&&(ae.personFontFamily=ae.systemFontFamily=ae.messageFontFamily=e.fontFamily),e.fontSize&&(ae.personFontSize=ae.systemFontSize=ae.messageFontSize=e.fontSize),e.fontWeight&&(ae.personFontWeight=ae.systemFontWeight=ae.messageFontWeight=e.fontWeight)},"setConf"),d0=a((e,t)=>({fontFamily:e[t+"FontFamily"],fontSize:e[t+"FontSize"],fontWeight:e[t+"FontWeight"]}),"c4ShapeFont"),rb=a(e=>({fontFamily:e.boundaryFontFamily,fontSize:e.boundaryFontSize,fontWeight:e.boundaryFontWeight}),"boundaryFont"),E0t=a(e=>({fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}),"messageFont");a(Pa,"calcC4ShapeTextWH");$F=a(function(e,t,r){t.x=r.data.startx,t.y=r.data.starty,t.width=r.data.stopx-r.data.startx,t.height=r.data.stopy-r.data.starty,t.label.y=ae.c4ShapeMargin-35;let n=t.wrap&&ae.wrap,i=rb(ae);i.fontSize=i.fontSize+2,i.fontWeight="bold";let s=Hn(t.label.text,i);Pa("label",t,n,i,s),Na.drawBoundary(e,t,ae)},"drawBoundary"),GF=a(function(e,t,r,n){let i=0;for(let s of n){i=0;let o=r[s],l=d0(ae,o.typeC4Shape.text);switch(l.fontSize=l.fontSize-2,o.typeC4Shape.width=Hn("\xAB"+o.typeC4Shape.text+"\xBB",l),o.typeC4Shape.height=l.fontSize+2,o.typeC4Shape.Y=ae.c4ShapePadding,i=o.typeC4Shape.Y+o.typeC4Shape.height-4,o.image={width:0,height:0,Y:0},o.typeC4Shape.text){case"person":case"external_person":o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height;break}o.sprite&&(o.image.width=48,o.image.height=48,o.image.Y=i,i=o.image.Y+o.image.height);let u=o.wrap&&ae.wrap,h=ae.width-ae.c4ShapePadding*2,f=d0(ae,o.typeC4Shape.text);if(f.fontSize=f.fontSize+2,f.fontWeight="bold",Pa("label",o,u,f,h),o.label.Y=i+8,i=o.label.Y+o.label.height,o.type&&o.type.text!==""){o.type.text="["+o.type.text+"]";let m=d0(ae,o.typeC4Shape.text);Pa("type",o,u,m,h),o.type.Y=i+5,i=o.type.Y+o.type.height}else if(o.techn&&o.techn.text!==""){o.techn.text="["+o.techn.text+"]";let m=d0(ae,o.techn.text);Pa("techn",o,u,m,h),o.techn.Y=i+5,i=o.techn.Y+o.techn.height}let d=i,p=o.label.width;if(o.descr&&o.descr.text!==""){let m=d0(ae,o.typeC4Shape.text);Pa("descr",o,u,m,h),o.descr.Y=i+20,i=o.descr.Y+o.descr.height,p=Math.max(o.label.width,o.descr.width),d=i-o.descr.textLines*5}p=p+ae.c4ShapePadding,o.width=Math.max(o.width||ae.width,p,ae.width),o.height=Math.max(o.height||ae.height,d,ae.height),o.margin=o.margin||ae.c4ShapeMargin,e.insert(o),Na.drawC4Shape(t,o,ae)}e.bumpLastMargin(ae.c4ShapeMargin)},"drawC4ShapeArray"),rs=class{static{a(this,"Point")}constructor(t,r){this.x=t,this.y=r}},BF=a(function(e,t){let r=e.x,n=e.y,i=t.x,s=t.y,o=r+e.width/2,l=n+e.height/2,u=Math.abs(r-i),h=Math.abs(n-s),f=h/u,d=e.height/e.width,p=null;return n==s&&ri?p=new rs(r,l):r==i&&ns&&(p=new rs(o,n)),r>i&&n=f?p=new rs(r,l+f*e.width/2):p=new rs(o-u/h*e.height/2,n+e.height):r=f?p=new rs(r+e.width,l+f*e.width/2):p=new rs(o+u/h*e.height/2,n+e.height):rs?d>=f?p=new rs(r+e.width,l-f*e.width/2):p=new rs(o+e.height/2*u/h,n):r>i&&n>s&&(d>=f?p=new rs(r,l-e.width/2*f):p=new rs(o-e.height/2*u/h,n)),p},"getIntersectPoint"),v0t=a(function(e,t){let r={x:0,y:0};r.x=t.x+t.width/2,r.y=t.y+t.height/2;let n=BF(e,r);r.x=e.x+e.width/2,r.y=e.y+e.height/2;let i=BF(t,r);return{startPoint:n,endPoint:i}},"getIntersectPoints"),A0t=a(function(e,t,r,n){let i=0;for(let s of t){i=i+1;let o=s.wrap&&ae.wrap,l=E0t(ae);n.db.getC4Type()==="C4Dynamic"&&(s.label.text=i+": "+s.label.text);let h=Hn(s.label.text,l);Pa("label",s,o,l,h),s.techn&&s.techn.text!==""&&(h=Hn(s.techn.text,l),Pa("techn",s,o,l,h)),s.descr&&s.descr.text!==""&&(h=Hn(s.descr.text,l),Pa("descr",s,o,l,h));let f=r(s.from),d=r(s.to),p=v0t(f,d);s.startPoint=p.startPoint,s.endPoint=p.endPoint}Na.drawRels(e,t,ae)},"drawRels");a(VF,"drawInsideBoundary");L0t=a(function(e,t,r,n){ae=Y().c4;let i=Y().securityLevel,s;i==="sandbox"&&(s=xt("#i"+t));let o=i==="sandbox"?xt(s.nodes()[0].contentDocument.body):xt("body"),l=n.db;n.db.setWrap(ae.wrap),FF=l.getC4ShapeInRow(),Yv=l.getC4BoundaryInRow(),P.debug(`C:${JSON.stringify(ae,null,2)}`);let u=i==="sandbox"?o.select(`[id="${t}"]`):xt(`[id="${t}"]`);Na.insertComputerIcon(u),Na.insertDatabaseIcon(u),Na.insertClockIcon(u);let h=new sb(n);h.setData(ae.diagramMarginX,ae.diagramMarginX,ae.diagramMarginY,ae.diagramMarginY),h.data.widthLimit=screen.availWidth,nb=ae.diagramMarginX,ib=ae.diagramMarginY;let f=n.db.getTitle(),d=n.db.getBoundaries("");VF(u,"",h,d,n),Na.insertArrowHead(u),Na.insertArrowEnd(u),Na.insertArrowCrossHead(u),Na.insertArrowFilledHead(u),A0t(u,n.db.getRels(),n.db.getC4Shape,n),h.data.stopx=nb,h.data.stopy=ib;let p=h.data,g=p.stopy-p.starty+2*ae.diagramMarginY,b=p.stopx-p.startx+2*ae.diagramMarginX;f&&u.append("text").text(f).attr("x",(p.stopx-p.startx)/2-4*ae.diagramMarginX).attr("y",p.starty+ae.diagramMarginY),Rr(u,g,b,ae.useMaxWidth);let k=f?60:0;u.attr("viewBox",p.startx-ae.diagramMarginX+" -"+(ae.diagramMarginY+k)+" "+b+" "+(g+k)),P.debug("models:",p)},"draw"),Kv={drawPersonOrSystemArray:GF,drawBoundary:$F,setConf:Xv,draw:L0t}});var R0t,WF,UF=x(()=>{"use strict";R0t=a(e=>`.person {
+ stroke: ${e.personBorder};
+ fill: ${e.personBkg};
+ }
+`,"getStyles"),WF=R0t});var jF={};Be(jF,{diagram:()=>D0t});var D0t,qF=x(()=>{"use strict";SC();sw();zF();UF();D0t={parser:A7,db:sg,renderer:Kv,styles:WF,init:a(({c4:e,wrap:t})=>{Kv.setConf(e),sg.setWrap(t)},"init")}});function u$(e){return typeof e>"u"||e===null}function O0t(e){return typeof e=="object"&&e!==null}function P0t(e){return Array.isArray(e)?e:u$(e)?[]:[e]}function B0t(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;rl&&(s=" ... ",t=n-l+s.length),r-n>l&&(o=" ...",r=n+l-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Zv(e,t){return Mn.repeat(" ",t-e.length)+e}function q0t(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var l="",u,h,f=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)h=Qv(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),d),l=Mn.repeat(" ",t.indent)+Zv((e.line-u+1).toString(),f)+" | "+h.str+`
+`+l;for(h=Qv(e.buffer,n[o],i[o],e.position,d),l+=Mn.repeat(" ",t.indent)+Zv((e.line+1).toString(),f)+" | "+h.str+`
+`,l+=Mn.repeat("-",t.indent+f+3+h.pos)+`^
+`,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)h=Qv(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),d),l+=Mn.repeat(" ",t.indent)+Zv((e.line+u+1).toString(),f)+" | "+h.str+`
+`;return l.replace(/\n$/,"")}function K0t(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Q0t(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(Y0t.indexOf(r)===-1)throw new ns('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=K0t(t.styleAliases||null),X0t.indexOf(this.kind)===-1)throw new ns('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}function XF(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function Z0t(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(a(n,"collectType"),t=0,r=arguments.length;t=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}function _1t(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Mn.isNegativeZero(e))return"-0.0";return r=e.toString(10),S1t.test(r)?r.replace("e",".e"):r}function C1t(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Mn.isNegativeZero(e))}function v1t(e){return e===null?!1:d$.exec(e)!==null||p$.exec(e)!==null}function A1t(e){var t,r,n,i,s,o,l,u=0,h=null,f,d,p;if(t=d$.exec(e),t===null&&(t=p$.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],d=+(t[11]||0),h=(f*60+d)*6e4,t[9]==="-"&&(h=-h)),p=new Date(Date.UTC(r,n,i,s,o,l,u)),h&&p.setTime(p.getTime()-h),p}function L1t(e){return e.toISOString()}function D1t(e){return e==="<<"||e===null}function N1t(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=s4;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8===0}function M1t(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=s4,o=0,l=[];for(t=0;t>16&255),l.push(o>>8&255),l.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(l.push(o>>16&255),l.push(o>>8&255),l.push(o&255)):r===18?(l.push(o>>10&255),l.push(o>>2&255)):r===12&&l.push(o>>4&255),new Uint8Array(l)}function O1t(e){var t="",r=0,n,i,s=e.length,o=s4;for(n=0;n>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function P1t(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}function G1t(e){if(e===null)return!0;var t=[],r,n,i,s,o,l=e;for(r=0,n=l.length;r>10)+55296,(e-65536&1023)+56320)}function syt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||m$,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function S$(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=H0t(r),new ns(t,r)}function me(e,t){throw S$(e,t)}function lb(e,t){e.onWarning&&e.onWarning.call(null,S$(e,t))}function yc(e,t,r,n){var i,s,o,l;if(t1&&(e.result+=Mn.repeat(`
+`,t-1))}function ayt(e,t,r){var n,i,s,o,l,u,h,f,d=e.kind,p=e.result,m;if(m=e.input.charCodeAt(e.position),is(m)||Kf(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(i=e.input.charCodeAt(e.position+1),is(i)||r&&Kf(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,l=!1;m!==0;){if(m===58){if(i=e.input.charCodeAt(e.position+1),is(i)||r&&Kf(i))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),is(n))break}else{if(e.position===e.lineStart&&hb(e)||r&&Kf(m))break;if(go(m))if(u=e.line,h=e.lineStart,f=e.lineIndent,Cn(e,!1,-1),e.lineIndent>=t){l=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=h,e.lineIndent=f;break}}l&&(yc(e,s,o,!1),o4(e,e.line-u),s=o=e.position,l=!1),Wu(m)||(o=e.position+1),m=e.input.charCodeAt(++e.position)}return yc(e,s,o,!1),e.result?!0:(e.kind=d,e.result=p,!1)}function oyt(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(yc(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else go(r)?(yc(e,n,i,!0),o4(e,Cn(e,!1,t)),n=i=e.position):e.position===e.lineStart&&hb(e)?me(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);me(e,"unexpected end of the stream within a single quoted scalar")}function lyt(e,t){var r,n,i,s,o,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return yc(e,r,e.position,!0),e.position++,!0;if(l===92){if(yc(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),go(l))Cn(e,!1,t);else if(l<256&&k$[l])e.result+=T$[l],e.position++;else if((o=ryt(l))>0){for(i=o,s=0;i>0;i--)l=e.input.charCodeAt(++e.position),(o=eyt(l))>=0?s=(s<<4)+o:me(e,"expected hexadecimal character");e.result+=iyt(s),e.position++}else me(e,"unknown escape sequence");r=n=e.position}else go(l)?(yc(e,r,n,!0),o4(e,Cn(e,!1,t)),r=n=e.position):e.position===e.lineStart&&hb(e)?me(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}me(e,"unexpected end of the stream within a double quoted scalar")}function cyt(e,t){var r=!0,n,i,s,o=e.tag,l,u=e.anchor,h,f,d,p,m,g=Object.create(null),y,b,k,T;if(T=e.input.charCodeAt(e.position),T===91)f=93,m=!1,l=[];else if(T===123)f=125,m=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),T=e.input.charCodeAt(++e.position);T!==0;){if(Cn(e,!0,t),T=e.input.charCodeAt(e.position),T===f)return e.position++,e.tag=o,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=l,!0;r?T===44&&me(e,"expected the node content, but found ','"):me(e,"missed comma between flow collection entries"),b=y=k=null,d=p=!1,T===63&&(h=e.input.charCodeAt(e.position+1),is(h)&&(d=p=!0,e.position++,Cn(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Zf(e,t,ab,!1,!0),b=e.tag,y=e.result,Cn(e,!0,t),T=e.input.charCodeAt(e.position),(p||e.line===n)&&T===58&&(d=!0,T=e.input.charCodeAt(++e.position),Cn(e,!0,t),Zf(e,t,ab,!1,!0),k=e.result),m?Qf(e,l,g,b,y,k,n,i,s):d?l.push(Qf(e,null,g,b,y,k,n,i,s)):l.push(y),Cn(e,!0,t),T=e.input.charCodeAt(e.position),T===44?(r=!0,T=e.input.charCodeAt(++e.position)):r=!1}me(e,"unexpected end of the stream within a flow collection")}function uyt(e,t){var r,n,i=Jv,s=!1,o=!1,l=t,u=0,h=!1,f,d;if(d=e.input.charCodeAt(e.position),d===124)n=!1;else if(d===62)n=!0;else return!1;for(e.kind="scalar",e.result="";d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)Jv===i?i=d===43?KF:Q1t:me(e,"repeat of a chomping mode identifier");else if((f=nyt(d))>=0)f===0?me(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?me(e,"repeat of an indentation width identifier"):(l=t+f-1,o=!0);else break;if(Wu(d)){do d=e.input.charCodeAt(++e.position);while(Wu(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!go(d)&&d!==0)}for(;d!==0;){for(a4(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndentl&&(l=e.lineIndent),go(d)){u++;continue}if(e.lineIndentt)&&u!==0)me(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(b&&(o=e.line,l=e.lineStart,u=e.position),Zf(e,t,ob,!0,i)&&(b?g=e.result:y=e.result),b||(Qf(e,d,p,m,g,y,o,l,u),m=g=y=null),Cn(e,!0,-1),T=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&T!==0)me(e,"bad indentation of a mapping entry");else if(e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndentt?u=1:e.lineIndent===t?u=0:e.lineIndent tag; it should be "scalar", not "'+e.kind+'"'),d=0,p=e.implicitTypes.length;d"),e.result!==null&&g.kind!==e.kind&&me(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):me(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function myt(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Cn(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!is(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&me(e,"directive name must not be less than one character in length");o!==0;){for(;Wu(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!go(o));break}if(go(o))break;for(r=e.position;o!==0&&!is(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&a4(e),xc.call(JF,n)?JF[n](e,n,i):lb(e,'unknown document directive "'+n+'"')}if(Cn(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Cn(e,!0,-1)):s&&me(e,"directives end mark is expected"),Zf(e,e.lineIndent-1,ob,!1,!0),Cn(e,!0,-1),e.checkLineBreaks&&J1t.test(e.input.slice(t,e.position))&&lb(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hb(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Cn(e,!0,-1));return}if(e.position"u"&&(r=t,t=null);var n=_$(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i=55296&&r<=56319&&t+1=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function I$(e){var t=/^\n* /;return t.test(e)}function jyt(e,t,r,n,i,s,o,l){var u,h=0,f=null,d=!1,p=!1,m=n!==-1,g=-1,y=Wyt(p0(e,0))&&Uyt(p0(e,e.length-1));if(t||o)for(u=0;u=65536?u+=2:u++){if(h=p0(e,u),!x0(h))return Xf;y=y&&i$(h,f,l),f=h}else{for(u=0;u=65536?u+=2:u++){if(h=p0(e,u),h===g0)d=!0,m&&(p=p||u-g-1>n&&e[g+1]!==" ",g=u);else if(!x0(h))return Xf;y=y&&i$(h,f,l),f=h}p=p||m&&u-g-1>n&&e[g+1]!==" "}return!d&&!p?y&&!o&&!i(e)?N$:s===y0?Xf:n4:r>9&&I$(e)?Xf:o?s===y0?Xf:n4:p?O$:M$}function qyt(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===y0?'""':"''";if(!e.noCompatMode&&(Pyt.indexOf(t)!==-1||Byt.test(t)))return e.quotingType===y0?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=n||e.flowLevel>-1&&r>=e.flowLevel;function u(h){return zyt(e,h)}switch(a(u,"testAmbiguity"),jyt(t,l,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case N$:return t;case n4:return"'"+t.replace(/'/g,"''")+"'";case M$:return"|"+s$(t,e.indent)+a$(r$(t,s));case O$:return">"+s$(t,e.indent)+a$(r$(Hyt(t,o),s));case Xf:return'"'+Yyt(t)+'"';default:throw new ns("impossible error: invalid scalar style")}}()}function s$(e,t){var r=I$(e)?String(t):"",n=e[e.length-1]===`
+`,i=n&&(e[e.length-2]===`
+`||e===`
+`),s=i?"+":n?"":"-";return r+s+`
+`}function a$(e){return e[e.length-1]===`
+`?e.slice(0,-1):e}function Hyt(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var h=e.indexOf(`
+`);return h=h!==-1?h:e.length,r.lastIndex=h,o$(e.slice(0,h),t)}(),i=e[0]===`
+`||e[0]===" ",s,o;o=r.exec(e);){var l=o[1],u=o[2];s=u[0]===" ",n+=l+(!i&&!s&&u!==""?`
+`:"")+o$(u,t),i=s}return n}function o$(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,l=0,u="";n=r.exec(e);)l=n.index,l-i>t&&(s=o>i?o:l,u+=`
+`+e.slice(i,s),i=s+1),o=l;return u+=`
+`,e.length-i>t&&o>i?u+=e.slice(i,o)+`
+`+e.slice(o+1):u+=e.slice(i),u.slice(1)}function Yyt(e){for(var t="",r=0,n,i=0;i=65536?i+=2:i++)r=p0(e,i),n=fi[r],!n&&x0(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||$yt(r);return t}function Xyt(e,t,r){var n="",i=e.tag,s,o,l;for(s=0,o=r.length;s"u"&&dl(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function l$(e,t,r,n){var i="",s=e.tag,o,l,u;for(o=0,l=r.length;o"u"&&dl(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=r4(e,t)),e.dump&&g0===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Kyt(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,l,u,h,f;for(o=0,l=s.length;o1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),dl(e,t,h,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function Qyt(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),l,u,h,f,d,p;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ns("sortKeys must be a boolean or a function");for(l=0,u=o.length;l1024,d&&(e.dump&&g0===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,d&&(p+=r4(e,t)),dl(e,t+1,f,!0,d)&&(e.dump&&g0===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=s,e.dump=i||"{}"}function c$(e,t,r){var n,i,s,o,l,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function dl(e,t,r,n,i,s,o){e.tag=null,e.dump=r,c$(e,r,!1)||c$(e,r,!0);var l=w$.call(e.dump),u=n,h;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=l==="[object Object]"||l==="[object Array]",d,p;if(f&&(d=e.duplicates.indexOf(r),p=d!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(f&&p&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(Qyt(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(Kyt(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?l$(e,t-1,e.dump,i):l$(e,t,e.dump,i),p&&(e.dump="&ref_"+d+e.dump)):(Xyt(e,t,e.dump),p&&(e.dump="&ref_"+d+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&qyt(e,e.dump,t,s,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ns("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function Zyt(e,t){var r=[],n=[],i,s;for(i4(e,r,n),i=0,s=n.length;i{"use strict";a(u$,"isNothing");a(O0t,"isObject");a(P0t,"toArray");a(B0t,"extend");a(F0t,"repeat");a($0t,"isNegativeZero");G0t=u$,V0t=O0t,z0t=P0t,W0t=F0t,U0t=$0t,j0t=B0t,Mn={isNothing:G0t,isObject:V0t,toArray:z0t,repeat:W0t,isNegativeZero:U0t,extend:j0t};a(h$,"formatError");a(m0,"YAMLException$1");m0.prototype=Object.create(Error.prototype);m0.prototype.constructor=m0;m0.prototype.toString=a(function(t){return this.name+": "+h$(this,t)},"toString");ns=m0;a(Qv,"getLine");a(Zv,"padStart");a(q0t,"makeSnippet");H0t=q0t,Y0t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],X0t=["scalar","sequence","mapping"];a(K0t,"compileStyleAliases");a(Q0t,"Type$1");hi=Q0t;a(XF,"compileList");a(Z0t,"compileMap");a(t4,"Schema$1");t4.prototype.extend=a(function(t){var r=[],n=[];if(t instanceof hi)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new ns("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof hi))throw new ns("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new ns("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new ns("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof hi))throw new ns("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(t4.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=XF(i,"implicit"),i.compiledExplicit=XF(i,"explicit"),i.compiledTypeMap=Z0t(i.compiledImplicit,i.compiledExplicit),i},"extend");J0t=t4,t1t=new hi("tag:yaml.org,2002:str",{kind:"scalar",construct:a(function(e){return e!==null?e:""},"construct")}),e1t=new hi("tag:yaml.org,2002:seq",{kind:"sequence",construct:a(function(e){return e!==null?e:[]},"construct")}),r1t=new hi("tag:yaml.org,2002:map",{kind:"mapping",construct:a(function(e){return e!==null?e:{}},"construct")}),n1t=new J0t({explicit:[t1t,e1t,r1t]});a(i1t,"resolveYamlNull");a(s1t,"constructYamlNull");a(a1t,"isNull");o1t=new hi("tag:yaml.org,2002:null",{kind:"scalar",resolve:i1t,construct:s1t,predicate:a1t,represent:{canonical:a(function(){return"~"},"canonical"),lowercase:a(function(){return"null"},"lowercase"),uppercase:a(function(){return"NULL"},"uppercase"),camelcase:a(function(){return"Null"},"camelcase"),empty:a(function(){return""},"empty")},defaultStyle:"lowercase"});a(l1t,"resolveYamlBoolean");a(c1t,"constructYamlBoolean");a(u1t,"isBoolean");h1t=new hi("tag:yaml.org,2002:bool",{kind:"scalar",resolve:l1t,construct:c1t,predicate:u1t,represent:{lowercase:a(function(e){return e?"true":"false"},"lowercase"),uppercase:a(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:a(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});a(f1t,"isHexCode");a(d1t,"isOctCode");a(p1t,"isDecCode");a(m1t,"resolveYamlInteger");a(g1t,"constructYamlInteger");a(y1t,"isInteger");x1t=new hi("tag:yaml.org,2002:int",{kind:"scalar",resolve:m1t,construct:g1t,predicate:y1t,represent:{binary:a(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:a(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:a(function(e){return e.toString(10)},"decimal"),hexadecimal:a(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),b1t=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");a(k1t,"resolveYamlFloat");a(T1t,"constructYamlFloat");S1t=/^[-+]?[0-9]+e/;a(_1t,"representYamlFloat");a(C1t,"isFloat");w1t=new hi("tag:yaml.org,2002:float",{kind:"scalar",resolve:k1t,construct:T1t,predicate:C1t,represent:_1t,defaultStyle:"lowercase"}),f$=n1t.extend({implicit:[o1t,h1t,x1t,w1t]}),E1t=f$,d$=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),p$=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]))?))?$");a(v1t,"resolveYamlTimestamp");a(A1t,"constructYamlTimestamp");a(L1t,"representYamlTimestamp");R1t=new hi("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:v1t,construct:A1t,instanceOf:Date,represent:L1t});a(D1t,"resolveYamlMerge");I1t=new hi("tag:yaml.org,2002:merge",{kind:"scalar",resolve:D1t}),s4=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
+\r`;a(N1t,"resolveYamlBinary");a(M1t,"constructYamlBinary");a(O1t,"representYamlBinary");a(P1t,"isBinary");B1t=new hi("tag:yaml.org,2002:binary",{kind:"scalar",resolve:N1t,construct:M1t,predicate:P1t,represent:O1t}),F1t=Object.prototype.hasOwnProperty,$1t=Object.prototype.toString;a(G1t,"resolveYamlOmap");a(V1t,"constructYamlOmap");z1t=new hi("tag:yaml.org,2002:omap",{kind:"sequence",resolve:G1t,construct:V1t}),W1t=Object.prototype.toString;a(U1t,"resolveYamlPairs");a(j1t,"constructYamlPairs");q1t=new hi("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:U1t,construct:j1t}),H1t=Object.prototype.hasOwnProperty;a(Y1t,"resolveYamlSet");a(X1t,"constructYamlSet");K1t=new hi("tag:yaml.org,2002:set",{kind:"mapping",resolve:Y1t,construct:X1t}),m$=E1t.extend({implicit:[R1t,I1t],explicit:[B1t,z1t,q1t,K1t]}),xc=Object.prototype.hasOwnProperty,ab=1,g$=2,y$=3,ob=4,Jv=1,Q1t=2,KF=3,Z1t=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,J1t=/[\x85\u2028\u2029]/,tyt=/[,\[\]\{\}]/,x$=/^(?:!|!!|![a-z\-]+!)$/i,b$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;a(QF,"_class");a(go,"is_EOL");a(Wu,"is_WHITE_SPACE");a(is,"is_WS_OR_EOL");a(Kf,"is_FLOW_INDICATOR");a(eyt,"fromHexCode");a(ryt,"escapedHexLen");a(nyt,"fromDecimalCode");a(ZF,"simpleEscapeSequence");a(iyt,"charFromCodepoint");k$=new Array(256),T$=new Array(256);for(zu=0;zu<256;zu++)k$[zu]=ZF(zu)?1:0,T$[zu]=ZF(zu);a(syt,"State$1");a(S$,"generateError");a(me,"throwError");a(lb,"throwWarning");JF={YAML:a(function(t,r,n){var i,s,o;t.version!==null&&me(t,"duplication of %YAML directive"),n.length!==1&&me(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&me(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&me(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&lb(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:a(function(t,r,n){var i,s;n.length!==2&&me(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],x$.test(i)||me(t,"ill-formed tag handle (first argument) of the TAG directive"),xc.call(t.tagMap,i)&&me(t,'there is a previously declared suffix for "'+i+'" tag handle'),b$.test(s)||me(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{me(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s},"handleTagDirective")};a(yc,"captureSegment");a(t$,"mergeMappings");a(Qf,"storeMappingPair");a(a4,"readLineBreak");a(Cn,"skipSeparationSpace");a(hb,"testDocumentSeparator");a(o4,"writeFoldedLines");a(ayt,"readPlainScalar");a(oyt,"readSingleQuotedScalar");a(lyt,"readDoubleQuotedScalar");a(cyt,"readFlowCollection");a(uyt,"readBlockScalar");a(e$,"readBlockSequence");a(hyt,"readBlockMapping");a(fyt,"readTagProperty");a(dyt,"readAnchorProperty");a(pyt,"readAlias");a(Zf,"composeNode");a(myt,"readDocument");a(_$,"loadDocuments");a(gyt,"loadAll$1");a(yyt,"load$1");xyt=gyt,byt=yyt,C$={loadAll:xyt,load:byt},w$=Object.prototype.toString,E$=Object.prototype.hasOwnProperty,l4=65279,kyt=9,g0=10,Tyt=13,Syt=32,_yt=33,Cyt=34,e4=35,wyt=37,Eyt=38,vyt=39,Ayt=42,v$=44,Lyt=45,cb=58,Ryt=61,Dyt=62,Iyt=63,Nyt=64,A$=91,L$=93,Myt=96,R$=123,Oyt=124,D$=125,fi={};fi[0]="\\0";fi[7]="\\a";fi[8]="\\b";fi[9]="\\t";fi[10]="\\n";fi[11]="\\v";fi[12]="\\f";fi[13]="\\r";fi[27]="\\e";fi[34]='\\"';fi[92]="\\\\";fi[133]="\\N";fi[160]="\\_";fi[8232]="\\L";fi[8233]="\\P";Pyt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Byt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;a(Fyt,"compileStyleMap");a($yt,"encodeHex");Gyt=1,y0=2;a(Vyt,"State");a(r$,"indentString");a(r4,"generateNextLine");a(zyt,"testImplicitResolving");a(ub,"isWhitespace");a(x0,"isPrintable");a(n$,"isNsCharOrWhitespace");a(i$,"isPlainSafe");a(Wyt,"isPlainSafeFirst");a(Uyt,"isPlainSafeLast");a(p0,"codePointAt");a(I$,"needIndentIndicator");N$=1,n4=2,M$=3,O$=4,Xf=5;a(jyt,"chooseScalarStyle");a(qyt,"writeScalar");a(s$,"blockHeader");a(a$,"dropEndingNewline");a(Hyt,"foldString");a(o$,"foldLine");a(Yyt,"escapeString");a(Xyt,"writeFlowSequence");a(l$,"writeBlockSequence");a(Kyt,"writeFlowMapping");a(Qyt,"writeBlockMapping");a(c$,"detectType");a(dl,"writeNode");a(Zyt,"getDuplicateReferences");a(i4,"inspectNode");a(Jyt,"dump$1");txt=Jyt,ext={dump:txt};a(c4,"renamed");Jf=f$,td=C$.load,Fne=C$.loadAll,$ne=ext.dump,Gne=c4("safeLoad","load"),Vne=c4("safeLoadAll","loadAll"),zne=c4("safeDump","dump")});function d4(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function V$(e){ju=e}function Tr(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:a((i,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Ii.caret,"$1"),r=r.replace(i,o),n},"replace"),getRegex:a(()=>new RegExp(r,t),"getRegex")};return n}function yo(e,t){if(t){if(Ii.escapeTest.test(e))return e.replace(Ii.escapeReplace,B$)}else if(Ii.escapeTestNoEncode.test(e))return e.replace(Ii.escapeReplaceNoEncode,B$);return e}function F$(e){try{e=encodeURI(e).replace(Ii.percentDecode,"%")}catch{return null}return e}function $$(e,t){let r=e.replace(Ii.findPipe,(s,o,l)=>{let u=!1,h=o;for(;--h>=0&&l[h]==="\\";)u=!u;return u?"|":" |"}),n=r.split(Ii.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length{let o=s.match(r.other.beginningSpace);if(o===null)return s;let[l]=o;return l.length>=i.length?s.slice(i.length):s}).join(`
+`)}function br(e,t){return Uu.parse(e,t)}var ju,T0,Ii,rxt,nxt,ixt,_0,sxt,p4,z$,W$,axt,m4,oxt,g4,lxt,cxt,mb,y4,uxt,U$,hxt,x4,P$,fxt,dxt,pxt,mxt,j$,gxt,gb,b4,q$,yxt,H$,xxt,bxt,kxt,Y$,Txt,Sxt,X$,_xt,Cxt,wxt,Ext,vxt,Axt,Lxt,pb,Rxt,K$,Q$,Dxt,k4,Ixt,h4,Nxt,db,b0,Mxt,B$,rd,Ba,nd,S0,Fa,ed,f4,Uu,Une,jne,qne,Hne,Yne,Xne,Kne,Z$=x(()=>{"use strict";a(d4,"_getDefaults");ju=d4();a(V$,"changeDefaults");T0={exec:a(()=>null,"exec")};a(Tr,"edit");Ii={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,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:/^,endAngleBracket:/>$/,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:a(e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),"listItemRegex"),nextBulletRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),"nextBulletRegex"),hrRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),"hrRegex"),fencesBeginRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),"fencesBeginRegex"),headingBeginRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),"headingBeginRegex"),htmlBeginRegex:a(e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),"htmlBeginRegex")},rxt=/^(?:[ \t]*(?:\n|$))+/,nxt=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ixt=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,sxt=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,p4=/(?:[*+-]|\d{1,9}[.)])/,z$=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,W$=Tr(z$).replace(/bull/g,p4).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(),axt=Tr(z$).replace(/bull/g,p4).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(),m4=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,oxt=/^[^\n]+/,g4=/(?!\s*\])(?:\\.|[^\[\]\\])+/,lxt=Tr(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",g4).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),cxt=Tr(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,p4).getRegex(),mb="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",y4=/|$))/,uxt=Tr("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",y4).replace("tag",mb).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U$=Tr(m4).replace("hr",_0).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","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),hxt=Tr(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",U$).getRegex(),x4={blockquote:hxt,code:nxt,def:lxt,fences:ixt,heading:sxt,hr:_0,html:uxt,lheading:W$,list:cxt,newline:rxt,paragraph:U$,table:T0,text:oxt},P$=Tr("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex(),fxt={...x4,lheading:axt,table:P$,paragraph:Tr(m4).replace("hr",_0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P$).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",mb).getRegex()},dxt={...x4,html:Tr(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)| \\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",y4).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:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:T0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Tr(m4).replace("hr",_0).replace("heading",` *#{1,6} *[^
+]`).replace("lheading",W$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pxt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mxt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,j$=/^( {2,}|\\)\n(?!\s*$)/,gxt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Y$=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Txt=Tr(Y$,"u").replace(/punct/g,gb).getRegex(),Sxt=Tr(Y$,"u").replace(/punct/g,H$).getRegex(),X$="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",_xt=Tr(X$,"gu").replace(/notPunctSpace/g,q$).replace(/punctSpace/g,b4).replace(/punct/g,gb).getRegex(),Cxt=Tr(X$,"gu").replace(/notPunctSpace/g,bxt).replace(/punctSpace/g,xxt).replace(/punct/g,H$).getRegex(),wxt=Tr("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,q$).replace(/punctSpace/g,b4).replace(/punct/g,gb).getRegex(),Ext=Tr(/\\(punct)/,"gu").replace(/punct/g,gb).getRegex(),vxt=Tr(/^<(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(),Axt=Tr(y4).replace("(?:-->|$)","-->").getRegex(),Lxt=Tr("^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Axt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),pb=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Rxt=Tr(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",pb).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),K$=Tr(/^!?\[(label)\]\[(ref)\]/).replace("label",pb).replace("ref",g4).getRegex(),Q$=Tr(/^!?\[(ref)\](?:\[\])?/).replace("ref",g4).getRegex(),Dxt=Tr("reflink|nolink(?!\\()","g").replace("reflink",K$).replace("nolink",Q$).getRegex(),k4={_backpedal:T0,anyPunctuation:Ext,autolink:vxt,blockSkip:kxt,br:j$,code:mxt,del:T0,emStrongLDelim:Txt,emStrongRDelimAst:_xt,emStrongRDelimUnd:wxt,escape:pxt,link:Rxt,nolink:Q$,punctuation:yxt,reflink:K$,reflinkSearch:Dxt,tag:Lxt,text:gxt,url:T0},Ixt={...k4,link:Tr(/^!?\[(label)\]\((.*?)\)/).replace("label",pb).getRegex(),reflink:Tr(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",pb).getRegex()},h4={...k4,emStrongRDelimAst:Cxt,emStrongLDelim:Sxt,url:Tr(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},B$=a(e=>Mxt[e],"getEscapeReplacement");a(yo,"escape");a(F$,"cleanUrl");a($$,"splitCells");a(k0,"rtrim");a(Oxt,"findClosingBracket");a(G$,"outputLink");a(Pxt,"indentCodeCompensation");rd=class{static{a(this,"_Tokenizer")}options;rules;lexer;constructor(t){this.options=t||ju}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:k0(n,`
+`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=Pxt(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=k0(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:k0(r[0],`
+`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=k0(r[0],`
+`).split(`
+`),i="",s="",o=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h1,s={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;t;){let h=!1,f="",d="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;f=r[0],t=t.substring(f.length);let p=r[2].split(`
+`,1)[0].replace(this.rules.other.listReplaceTabs,T=>" ".repeat(3*T.length)),m=t.split(`
+`,1)[0],g=!p.trim(),y=0;if(this.options.pedantic?(y=2,d=p.trimStart()):g?y=r[1].length+1:(y=r[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,d=p.slice(y),y+=r[1].length),g&&this.rules.other.blankLine.test(m)&&(f+=m+`
+`,t=t.substring(m.length+1),h=!0),!h){let T=this.rules.other.nextBulletRegex(y),_=this.rules.other.hrRegex(y),L=this.rules.other.fencesBeginRegex(y),C=this.rules.other.headingBeginRegex(y),D=this.rules.other.htmlBeginRegex(y);for(;t;){let $=t.split(`
+`,1)[0],w;if(m=$,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),w=m):w=m.replace(this.rules.other.tabCharGlobal," "),L.test(m)||C.test(m)||D.test(m)||T.test(m)||_.test(m))break;if(w.search(this.rules.other.nonSpaceChar)>=y||!m.trim())d+=`
+`+w.slice(y);else{if(g||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||L.test(p)||C.test(p)||_.test(p))break;d+=`
+`+m}!g&&!m.trim()&&(g=!0),f+=$+`
+`,t=t.substring($.length+1),p=w.slice(y)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(f)&&(l=!0));let b=null,k;this.options.gfm&&(b=this.rules.other.listIsTask.exec(d),b&&(k=b[0]!=="[ ] ",d=d.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:f,task:!!b,checked:k,loose:!1,text:d,tokens:[]}),s.raw+=f}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h=0;hp.type==="space"),d=f.length>0&&f.some(p=>this.rules.other.anyLine.test(p.raw));s.loose=d}if(s.loose)for(let h=0;h({text:u,tokens:this.lexer.inline(u),header:!1,align:o.align[h]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);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(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
+`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);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(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=k0(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=Oxt(r[2],"()");if(o>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(i);o&&(i=o[1],s=o[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),G$(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[i.toLowerCase()];if(!s){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return G$(n,s,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!n||this.rules.inline.punctuation.exec(n)){let o=[...i[0]].length-1,l,u,h=o,f=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+o);(i=d.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(u=[...l].length,i[3]||i[4]){h+=u;continue}else if((i[5]||i[6])&&o%3&&!((o+u)%3)){f+=u;continue}if(h-=u,h>0)continue;u=Math.min(u,u+h+f);let p=[...i[0]][0].length,m=t.slice(0,o+i.index+p+u);if(Math.min(o,u)%2){let y=m.slice(1,-1);return{type:"em",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let r;if(r=this.rules.inline.url.exec(t)){let n,i;if(r[2]==="@")n=r[0],i="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])?.[0]??"";while(s!==r[0]);n=r[0],r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Ba=class e{static{a(this,"_Lexer")}tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ju,this.options.tokenizer=this.options.tokenizer||new rd,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 r={other:Ii,block:db.normal,inline:b0.normal};this.options.pedantic?(r.block=db.pedantic,r.inline=b0.pedantic):this.options.gfm&&(r.block=db.gfm,this.options.breaks?r.inline=b0.breaks:r.inline=b0.gfm),this.tokenizer.rules=r}static get rules(){return{block:db,inline:b0}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(t){t=t.replace(Ii.carriageReturn,`
+`),this.blockTokens(t,this.tokens);for(let r=0;r(i=o.call({lexer:this},t,r))?(t=t.substring(i.raw.length),r.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let o=r.at(-1);i.raw.length===1&&o!==void 0?o.raw+=`
+`:r.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=`
+`+i.raw,o.text+=`
+`+i.text,this.inlineQueue.at(-1).src=o.text):r.push(i);continue}if(i=this.tokenizer.fences(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.heading(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.hr(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.blockquote(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.list(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.html(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.def(t)){t=t.substring(i.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=`
+`+i.raw,o.text+=`
+`+i.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});continue}if(i=this.tokenizer.table(t)){t=t.substring(i.raw.length),r.push(i);continue}if(i=this.tokenizer.lheading(t)){t=t.substring(i.raw.length),r.push(i);continue}let s=t;if(this.options.extensions?.startBlock){let o=1/0,l=t.slice(1),u;this.options.extensions.startBlock.forEach(h=>{u=h.call({lexer:this},l),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(s=t.substring(0,o+1))}if(this.state.top&&(i=this.tokenizer.paragraph(s))){let o=r.at(-1);n&&o?.type==="paragraph"?(o.raw+=`
+`+i.raw,o.text+=`
+`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i),n=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let o=r.at(-1);o?.type==="text"?(o.raw+=`
+`+i.raw,o.text+=`
+`+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(i);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n=t,i=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)l.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,o="";for(;t;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let h=r.at(-1);l.type==="text"&&h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(l=this.tokenizer.emStrong(t,n,o)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.del(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),r.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),r.push(l);continue}let u=t;if(this.options.extensions?.startInline){let h=1/0,f=t.slice(1),d;this.options.extensions.startInline.forEach(p=>{d=p.call({lexer:this},f),typeof d=="number"&&d>=0&&(h=Math.min(h,d))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(l=this.tokenizer.inlineText(u)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let h=r.at(-1);h?.type==="text"?(h.raw+=l.raw,h.text+=l.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return r}},nd=class{static{a(this,"_Renderer")}options;parser;constructor(t){this.options=t||ju}space(t){return""}code({text:t,lang:r,escaped:n}){let i=(r||"").match(Ii.notSpaceStart)?.[0],s=t.replace(Ii.endingNewline,"")+`
+`;return i?''+(n?s:yo(s,!0))+`
+`:""+(n?s:yo(s,!0))+`
+`}blockquote({tokens:t}){return`
+${this.parser.parse(t)}
+`}html({text:t}){return t}heading({tokens:t,depth:r}){return`${this.parser.parseInline(t)}
+`}hr(t){return`
+`}list(t){let r=t.ordered,n=t.start,i="";for(let l=0;l
+`+i+""+s+`>
+`}listitem(t){let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?t.tokens[0]?.type==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+yo(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`${r}
+`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`${this.parser.parseInline(t)}
+`}table(t){let r="",n="";for(let s=0;s${i}`),`
+
+`+r+`
+`+i+`
+`}tablerow({text:t}){return`
+${t}
+`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`${n}>
+`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${yo(t,!0)}
`}br(t){return"
"}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),s=F$(t);if(s===null)return i;t=s;let o='"+i+"",o}image({href:t,title:r,text:n}){let i=F$(t);if(i===null)return yo(n);t=i;let s=`
",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:yo(t.text)}},S0=class{static{a(this,"_TextRenderer")}strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Fa=class e{static{a(this,"_Parser")}options;renderer;textRenderer;constructor(t){this.options=t||ju,this.options.renderer=this.options.renderer||new nd,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new S0}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(t,r=!0){let n="";for(let i=0;i{let l=s[o].flat(1/0);n=n.concat(this.walkTokens(l,r))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=r.renderers[s.name];o?r.renderers[s.name]=function(...l){let u=s.renderer.apply(this,l);return u===!1&&(u=o.apply(this,l)),u}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[s.level];o?o.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new nd(this.defaults);for(let o in n.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let l=o,u=n.renderer[l],h=s[l];s[l]=(...f)=>{let d=u.apply(s,f);return d===!1&&(d=h.apply(s,f)),d||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new rd(this.defaults);for(let o in n.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,u=n.tokenizer[l],h=s[l];s[l]=(...f)=>{let d=u.apply(s,f);return d===!1&&(d=h.apply(s,f)),d}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new ed;for(let o in n.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let l=o,u=n.hooks[l],h=s[l];ed.passThroughHooks.has(o)?s[l]=f=>{if(this.defaults.async)return Promise.resolve(u.call(s,f)).then(p=>h.call(s,p));let d=u.call(s,f);return h.call(s,d)}:s[l]=(...f)=>{let d=u.apply(s,f);return d===!1&&(d=h.apply(s,f)),d}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,o=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(o.call(this,l)),s&&(u=u.concat(s.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ba.lex(t,r??this.defaults)}parser(t,r){return Fa.parse(t,r??this.defaults)}parseMarkdown(t){return a((n,i)=>{let s={...i},o={...this.defaults,...s},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return l(new 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 n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=t);let u=o.hooks?o.hooks.provideLexer():t?Ba.lex:Ba.lexInline,h=o.hooks?o.hooks.provideParser():t?Fa.parse:Fa.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(f=>u(f,o)).then(f=>o.hooks?o.hooks.processAllTokens(f):f).then(f=>o.walkTokens?Promise.all(this.walkTokens(f,o.walkTokens)).then(()=>f):f).then(f=>h(f,o)).then(f=>o.hooks?o.hooks.postprocess(f):f).catch(l);try{o.hooks&&(n=o.hooks.preprocess(n));let f=u(n,o);o.hooks&&(f=o.hooks.processAllTokens(f)),o.walkTokens&&this.walkTokens(f,o.walkTokens);let d=h(f,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(f){return l(f)}},"parse")}onError(t,r){return n=>{if(n.message+=`
+Please report this to https://github.com/markedjs/marked.`,t){let i="An error occurred:
"+yo(n.message+"",!0)+"
";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Uu=new f4;a(br,"marked");br.options=br.setOptions=function(e){return Uu.setOptions(e),br.defaults=Uu.defaults,V$(br.defaults),br};br.getDefaults=d4;br.defaults=ju;br.use=function(...e){return Uu.use(...e),br.defaults=Uu.defaults,V$(br.defaults),br};br.walkTokens=function(e,t){return Uu.walkTokens(e,t)};br.parseInline=Uu.parseInline;br.Parser=Fa;br.parser=Fa.parse;br.Renderer=nd;br.TextRenderer=S0;br.Lexer=Ba;br.lexer=Ba.lex;br.Tokenizer=rd;br.Hooks=ed;br.parse=br;Une=br.options,jne=br.setOptions,qne=br.use,Hne=br.walkTokens,Yne=br.parseInline,Xne=Fa.parse,Kne=Ba.lex});function Bxt(e,{markdownAutoWrap:t}){let n=e.replace(/
/g,`
+`).replace(/\n{2,}/g,`
+`),i=Zy(n);return t===!1?i.replace(/ /g," "):i}function J$(e,t={}){let r=Bxt(e,t),n=br.lexer(r),i=[[]],s=0;function o(l,u="normal"){l.type==="text"?l.text.split(`
+`).forEach((f,d)=>{d!==0&&(s++,i.push([])),f.split(" ").forEach(p=>{p=p.replace(/'/g,"'"),p&&i[s].push({content:p,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{o(h,l.type)}):l.type==="html"&&i[s].push({content:l.text,type:"normal"})}return a(o,"processNode"),n.forEach(l=>{l.type==="paragraph"?l.tokens?.forEach(u=>{o(u)}):l.type==="html"&&i[s].push({content:l.text,type:"normal"})}),i}function tG(e,{markdownAutoWrap:t}={}){let r=br.lexer(e);function n(i){return i.type==="text"?t===!1?i.text.replace(/\n */g,"
").replace(/ /g," "):i.text.replace(/\n */g,"
"):i.type==="strong"?`${i.tokens?.map(n).join("")}`:i.type==="em"?`${i.tokens?.map(n).join("")}`:i.type==="paragraph"?`${i.tokens?.map(n).join("")}
`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:`Unsupported markdown: ${i.type}`}return a(n,"output"),r.map(n).join("")}var eG=x(()=>{"use strict";Z$();bC();a(Bxt,"preprocessMarkdown");a(J$,"markdownToLines");a(tG,"markdownToHTML")});function Fxt(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}function $xt(e,t){let r=Fxt(t.content);return rG(e,[],r,t.type)}function rG(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];let[i,...s]=r,o=[...t,i];return e([{content:o.join(""),type:n}])?rG(e,o,s,n):(t.length===0&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}function nG(e,t){if(e.some(({content:r})=>r.includes(`
+`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return T4(e,t)}function T4(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";e[0].content===" "&&(i=" ",e.shift());let s=e.shift()??{content:" ",type:"normal"},o=[...n];if(i!==""&&o.push({content:i,type:"normal"}),o.push(s),t(o))return T4(e,t,r,o);if(n.length>0)r.push(n),e.unshift(s);else if(s.content){let[l,u]=$xt(t,s);r.push([l]),u.content&&e.unshift(u)}return T4(e,t,r)}var iG=x(()=>{"use strict";a(Fxt,"splitTextToChars");a($xt,"splitWordToFitWidth");a(rG,"splitWordToFitWidthRecursion");a(nG,"splitLineToFitWidth");a(T4,"splitLineToFitWidthRecursion")});function sG(e,t){t&&e.attr("style",t)}async function Gxt(e,t,r,n,i=!1){let s=e.append("foreignObject");s.attr("width",`${10*r}px`),s.attr("height",`${10*r}px`);let o=s.append("xhtml:div"),l=t.label;t.label&&Tn(t.label)&&(l=await jl(t.label.replace(Rt.lineBreakRegex,`
+`),Y()));let u=t.isNode?"nodeLabel":"edgeLabel",h=o.append("span");h.html(l),sG(h,t.labelStyle),h.attr("class",`${u} ${n}`),sG(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),o.style("max-width",r+"px"),o.style("text-align","center"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&o.attr("class","labelBkg");let f=o.node().getBoundingClientRect();return f.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),f=o.node().getBoundingClientRect()),s.node()}function S4(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}function Vxt(e,t,r){let n=e.append("text"),i=S4(n,1,t);_4(i,r);let s=i.node().getComputedTextLength();return n.remove(),s}function aG(e,t,r){let n=e.append("text"),i=S4(n,1,t);_4(i,[{content:r,type:"normal"}]);let s=i.node()?.getBoundingClientRect();return s&&n.remove(),s}function zxt(e,t,r,n=!1){let s=t.append("g"),o=s.insert("rect").attr("class","background").attr("style","stroke: none"),l=s.append("text").attr("y","-10.1"),u=0;for(let h of r){let f=a(p=>Vxt(s,1.1,p)<=e,"checkWidth"),d=f(h)?[h]:nG(h,f);for(let p of d){let m=S4(l,u,1.1);_4(m,p),u++}}if(n){let h=l.node().getBBox(),f=2;return o.attr("x",h.x-f).attr("y",h.y-f).attr("width",h.width+2*f).attr("height",h.height+2*f),s.node()}else return l.node()}function _4(e,t){e.text(""),t.forEach((r,n)=>{let i=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}function C4(e){return e.replace(/fa[bklrs]?:fa-[\w-]+/g,t=>``)}var Xn,$a=x(()=>{"use strict";pe();Fe();$e();zt();eG();Ee();iG();a(sG,"applyStyle");a(Gxt,"addHtmlSpan");a(S4,"createTspan");a(Vxt,"computeWidthOfText");a(aG,"computeDimensionOfText");a(zxt,"createFormattedText");a(_4,"updateTextContentAndStyles");a(C4,"replaceIconSubstring");Xn=a(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},h)=>{if(P.debug("XYZ createText",t,r,n,i,s,o,"addSvgBackground: ",u),s){let f=tG(t,h),d=C4(Yn(f)),p=t.replace(/\\\\/g,"\\"),m={isNode:o,label:Tn(t)?p:d,labelStyle:r.replace("fill:","color:")};return await Gxt(e,m,l,i,u)}else{let f=t.replace(/
/g,"
"),d=J$(f.replace("
","
"),h),p=zxt(l,e,d,t?u:!1);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");xt(p).attr("style",m)}else{let m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");xt(p).select("rect").attr("style",m.replace(/background:/g,"fill:"));let g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");xt(p).select("text").attr("style",g)}return p}},"createText")});function fe(e){let t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}function Js(e,t,r,n,i,s){let o=[],u=r-e,h=n-t,f=u/s,d=2*Math.PI/f,p=t+h/2;for(let m=0;m<=50;m++){let g=m/50,y=e+g*u,b=p+i*Math.sin(d*(y-e));o.push({x:y,y:b})}return o}function xb(e,t,r,n,i,s){let o=[],l=i*Math.PI/180,f=(s*Math.PI/180-l)/(n-1);for(let d=0;d{"use strict";$a();pe();$e();zs();Fe();Ee();Gt=a(async(e,t,r)=>{let n,i=t.useHtmlLabels||Ne(Y()?.htmlLabels);r?n=r:n="node default";let s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",qr(t.labelStyle)),l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];let u=await Xn(o,er(Yn(l),Y()),{useHtmlLabels:i,width:t.width||Y().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img}),h=u.getBBox(),f=(t?.padding??0)/2;if(i){let d=u.children[0],p=xt(u),m=d.getElementsByTagName("img");if(m){let g=l.replace(/
]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(b=>{function k(){if(y.style.display="flex",y.style.flexDirection="column",g){let T=Y().fontSize?Y().fontSize:window.getComputedStyle(document.body).fontSize,_=5,[L=We.fontSize]=mo(T),C=L*_+"px";y.style.minWidth=C,y.style.maxWidth=C}else y.style.width="100%";b(y)}a(k,"setupImage"),setTimeout(()=>{y.complete&&k()}),y.addEventListener("error",k),y.addEventListener("load",k)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return i?o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):o.attr("transform","translate(0, "+-h.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:h,halfPadding:f,label:o}},"labelHelper"),yb=a(async(e,t,r)=>{let n=r.useHtmlLabels||Ne(Y()?.flowchart?.htmlLabels),i=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await Xn(i,er(Yn(t),Y()),{useHtmlLabels:n,width:r.width||Y()?.flowchart?.wrappingWidth,style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),o=s.getBBox(),l=r.padding/2;if(Ne(Y()?.flowchart?.htmlLabels)){let u=s.children[0],h=xt(s);o=u.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}return n?i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):i.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:l,label:i}},"insertLabel"),Ct=a((e,t)=>{let r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Ft=a((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");a(fe,"createPathFromPoints");a(Js,"generateFullSineWavePoints");a(xb,"generateCirclePoints")});function Wxt(e,t){return e.intersect(t)}var oG,lG=x(()=>{"use strict";a(Wxt,"intersectNode");oG=Wxt});function Uxt(e,t,r,n){var i=e.x,s=e.y,o=i-n.x,l=s-n.y,u=Math.sqrt(t*t*l*l+r*r*o*o),h=Math.abs(t*r*o/u);n.x{"use strict";a(Uxt,"intersectEllipse");bb=Uxt});function jxt(e,t,r){return bb(e,t,t,r)}var cG,uG=x(()=>{"use strict";w4();a(jxt,"intersectCircle");cG=jxt});function qxt(e,t,r,n){var i,s,o,l,u,h,f,d,p,m,g,y,b,k,T;if(i=t.y-e.y,o=e.x-t.x,u=t.x*e.y-e.x*t.y,p=i*r.x+o*r.y+u,m=i*n.x+o*n.y+u,!(p!==0&&m!==0&&hG(p,m))&&(s=n.y-r.y,l=r.x-n.x,h=n.x*r.y-r.x*n.y,f=s*e.x+l*e.y+h,d=s*t.x+l*t.y+h,!(f!==0&&d!==0&&hG(f,d))&&(g=i*l-s*o,g!==0)))return y=Math.abs(g/2),b=o*h-l*u,k=b<0?(b-y)/g:(b+y)/g,b=s*u-i*h,T=b<0?(b-y)/g:(b+y)/g,{x:k,y:T}}function hG(e,t){return e*t>0}var fG,dG=x(()=>{"use strict";a(qxt,"intersectLine");a(hG,"sameSign");fG=qxt});function Hxt(e,t,r){let n=e.x,i=e.y,s=[],o=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(f){o=Math.min(o,f.x),l=Math.min(l,f.y)}):(o=Math.min(o,t.x),l=Math.min(l,t.y));let u=n-e.width/2-o,h=i-e.height/2-l;for(let f=0;f1&&s.sort(function(f,d){let p=f.x-r.x,m=f.y-r.y,g=Math.sqrt(p*p+m*m),y=d.x-r.x,b=d.y-r.y,k=Math.sqrt(y*y+b*b);return g{"use strict";dG();a(Hxt,"intersectPolygon");pG=Hxt});var Yxt,bc,E4=x(()=>{"use strict";Yxt=a((e,t)=>{var r=e.x,n=e.y,i=t.x-r,s=t.y-n,o=e.width/2,l=e.height/2,u,h;return Math.abs(s)*o>Math.abs(i)*l?(s<0&&(l=-l),u=s===0?0:l*i/s,h=l):(i<0&&(o=-o),u=o,h=i===0?0:o*s/i),{x:r+u,y:n+h}},"intersectRect"),bc=Yxt});var St,le=x(()=>{"use strict";lG();uG();w4();mG();E4();St={node:oG,circle:cG,ellipse:bb,polygon:pG,rect:bc}});var gG,xo,Xxt,v4,At,Et,oe=x(()=>{"use strict";pe();gG=a(e=>{let{handDrawnSeed:t}=Y();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),xo=a(e=>{let t=Xxt([...e.cssCompiledStyles||[],...e.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Xxt=a(e=>{let t=new Map;return e.forEach(r=>{let[n,i]=r.split(":");t.set(n.trim(),i?.trim())}),t},"styles2Map"),v4=a(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"),At=a(e=>{let{stylesArray:t}=xo(e),r=[],n=[],i=[],s=[];return t.forEach(o=>{let l=o[0];v4(l)?r.push(o.join(":")+" !important"):(n.push(o.join(":")+" !important"),l.includes("stroke")&&i.push(o.join(":")+" !important"),l==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:s}},"styles2String"),Et=a((e,t)=>{let{themeVariables:r,handDrawnSeed:n}=Y(),{nodeBorder:i,mainBkg:s}=r,{stylesMap:o}=xo(e);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||i,seed:n,strokeWidth:o.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides")});function A4(e,t,r){if(e&&e.length){let[n,i]=t,s=Math.PI/180*r,o=Math.cos(s),l=Math.sin(s);for(let u of e){let[h,f]=u;u[0]=(h-n)*o-(f-i)*l+n,u[1]=(h-n)*l+(f-i)*o+i}}}function Kxt(e,t){return e[0]===t[0]&&e[1]===t[1]}function Qxt(e,t,r,n=1){let i=r,s=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(i)for(let h of o)A4(h,l,i);let u=function(h,f,d){let p=[];for(let T of h){let _=[...T];Kxt(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&p.push(_)}let m=[];f=Math.max(f,.1);let g=[];for(let T of p)for(let _=0;_T.ymin<_.ymin?-1:T.ymin>_.ymin?1:T.x<_.x?-1:T.x>_.x?1:T.ymax===_.ymax?0:(T.ymax-_.ymax)/Math.abs(T.ymax-_.ymax)),!g.length)return m;let y=[],b=g[0].ymin,k=0;for(;y.length||g.length;){if(g.length){let T=-1;for(let _=0;_b);_++)T=_;g.splice(0,T+1).forEach(_=>{y.push({s:b,edge:_})})}if(y=y.filter(T=>!(T.edge.ymax<=b)),y.sort((T,_)=>T.edge.x===_.edge.x?0:(T.edge.x-_.edge.x)/Math.abs(T.edge.x-_.edge.x)),(d!==1||k%f==0)&&y.length>1)for(let T=0;T=y.length)break;let L=y[T].edge,C=y[_].edge;m.push([[Math.round(L.x),b],[Math.round(C.x),b]])}b+=d,y.forEach(T=>{T.edge.x=T.edge.x+d*T.edge.islope}),k++}return m}(o,s,n);if(i){for(let h of o)A4(h,l,-i);(function(h,f,d){let p=[];h.forEach(m=>p.push(...m)),A4(p,f,d)})(u,l,-i)}return u}function v0(e,t){var r;let n=t.hachureAngle+90,i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=i),Qxt(e,i,n,s||1)}function Ab(e){let t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}function R4(e,t){return e.type===t}function U4(e){let t=[],r=function(o){let l=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:Zxt,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:L4,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return l[l.length]={type:yG,text:""},l}(e),n="BOD",i=0,s=r[i];for(;!R4(s,yG);){let o=0,l=[];if(n==="BOD"){if(s.text!=="M"&&s.text!=="m")return U4("M0,0"+e);i++,o=kb[s.text],n=s.text}else R4(s,L4)?o=kb[n]:(i++,o=kb[s.text],n=s.text);if(!(i+of%2?h+r:h+t);s.push({key:"C",data:u}),t=u[4],r=u[5];break}case"Q":s.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{let u=l.map((h,f)=>f%2?h+r:h+t);s.push({key:"Q",data:u}),t=u[2],r=u[3];break}case"A":s.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],s.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":s.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{let u=l.map((h,f)=>f%2?h+r:h+t);s.push({key:"S",data:u}),t=u[2],r=u[3];break}case"T":s.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=n,r=i}return s}function EG(e){let t=[],r="",n=0,i=0,s=0,o=0,l=0,u=0;for(let{key:h,data:f}of e){switch(h){case"M":t.push({key:"M",data:[...f]}),[n,i]=f,[s,o]=f;break;case"C":t.push({key:"C",data:[...f]}),n=f[4],i=f[5],l=f[2],u=f[3];break;case"L":t.push({key:"L",data:[...f]}),[n,i]=f;break;case"H":n=f[0],t.push({key:"L",data:[n,i]});break;case"V":i=f[0],t.push({key:"L",data:[n,i]});break;case"S":{let d=0,p=0;r==="C"||r==="S"?(d=n+(n-l),p=i+(i-u)):(d=n,p=i),t.push({key:"C",data:[d,p,...f]}),l=f[0],u=f[1],n=f[2],i=f[3];break}case"T":{let[d,p]=f,m=0,g=0;r==="Q"||r==="T"?(m=n+(n-l),g=i+(i-u)):(m=n,g=i);let y=n+2*(m-n)/3,b=i+2*(g-i)/3,k=d+2*(m-d)/3,T=p+2*(g-p)/3;t.push({key:"C",data:[y,b,k,T,d,p]}),l=m,u=g,n=d,i=p;break}case"Q":{let[d,p,m,g]=f,y=n+2*(d-n)/3,b=i+2*(p-i)/3,k=m+2*(d-m)/3,T=g+2*(p-g)/3;t.push({key:"C",data:[y,b,k,T,m,g]}),l=d,u=p,n=m,i=g;break}case"A":{let d=Math.abs(f[0]),p=Math.abs(f[1]),m=f[2],g=f[3],y=f[4],b=f[5],k=f[6];d===0||p===0?(t.push({key:"C",data:[n,i,b,k,b,k]}),n=b,i=k):(n!==b||i!==k)&&(vG(n,i,b,k,d,p,m,g,y).forEach(function(T){t.push({key:"C",data:T})}),n=b,i=k);break}case"Z":t.push({key:"Z",data:[]}),n=s,i=o}r=h}return t}function C0(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function vG(e,t,r,n,i,s,o,l,u,h){let f=(d=o,Math.PI*d/180);var d;let p=[],m=0,g=0,y=0,b=0;if(h)[m,g,y,b]=h;else{[e,t]=C0(e,t,-f),[r,n]=C0(r,n,-f);let R=(e-r)/2,B=(t-n)/2,I=R*R/(i*i)+B*B/(s*s);I>1&&(I=Math.sqrt(I),i*=I,s*=I);let M=i*i,O=s*s,N=M*O-M*B*B-O*R*R,E=M*B*B+O*R*R,V=(l===u?-1:1)*Math.sqrt(Math.abs(N/E));y=V*i*B/s+(e+r)/2,b=V*-s*R/i+(t+n)/2,m=Math.asin(parseFloat(((t-b)/s).toFixed(9))),g=Math.asin(parseFloat(((n-b)/s).toFixed(9))),eg&&(m-=2*Math.PI),!u&&g>m&&(g-=2*Math.PI)}let k=g-m;if(Math.abs(k)>120*Math.PI/180){let R=g,B=r,I=n;g=u&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,p=vG(r=y+i*Math.cos(g),n=b+s*Math.sin(g),B,I,i,s,o,0,u,[g,R,y,b])}k=g-m;let T=Math.cos(m),_=Math.sin(m),L=Math.cos(g),C=Math.sin(g),D=Math.tan(k/4),$=4/3*i*D,w=4/3*s*D,A=[e,t],F=[e+$*_,t-w*T],S=[r+$*C,n-w*L],v=[r,n];if(F[0]=2*A[0]-F[0],F[1]=2*A[1]-F[1],h)return[F,S,v].concat(p);{p=[F,S,v].concat(p);let R=[];for(let B=0;B2){let i=[];for(let s=0;s2*Math.PI&&(m=0,g=2*Math.PI);let y=2*Math.PI/u.curveStepCount,b=Math.min(y/2,(g-m)/2),k=_G(b,h,f,d,p,m,g,1,u);if(!u.disableMultiStroke){let T=_G(b,h,f,d,p,m,g,1.5,u);k.push(...T)}return o&&(l?k.push(...kc(h,f,h+d*Math.cos(m),f+p*Math.sin(m),u),...kc(h,f,h+d*Math.cos(g),f+p*Math.sin(g),u)):k.push({op:"lineTo",data:[h,f]},{op:"lineTo",data:[h+d*Math.cos(m),f+p*Math.sin(m)]})),{type:"path",ops:k}}function kG(e,t){let r=EG(wG(U4(e))),n=[],i=[0,0],s=[0,0];for(let{key:o,data:l}of r)switch(o){case"M":s=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...kc(s[0],s[1],l[0],l[1],t)),s=[l[0],l[1]];break;case"C":{let[u,h,f,d,p,m]=l;n.push(...e2t(u,h,f,d,p,m,s,t)),s=[p,m];break}case"Z":n.push(...kc(s[0],s[1],i[0],i[1],t)),s=[i[0],i[1]]}return{type:"path",ops:n}}function D4(e,t){let r=[];for(let n of e)if(n.length){let i=t.maxRandomnessOffset||0,s=n.length;if(s>2){r.push({op:"move",data:[n[0][0]+_e(i,t),n[0][1]+_e(i,t)]});for(let o=1;o500?.4:-.0016668*u+1.233334;let f=i.maxRandomnessOffset||0;f*f*100>l&&(f=u/10);let d=f/2,p=.2+.2*RG(i),m=i.bowing*i.maxRandomnessOffset*(n-t)/200,g=i.bowing*i.maxRandomnessOffset*(e-r)/200;m=_e(m,i,h),g=_e(g,i,h);let y=[],b=a(()=>_e(d,i,h),"M"),k=a(()=>_e(f,i,h),"k"),T=i.preserveVertices;return s&&(o?y.push({op:"move",data:[e+(T?0:b()),t+(T?0:b())]}):y.push({op:"move",data:[e+(T?0:_e(f,i,h)),t+(T?0:_e(f,i,h))]})),o?y.push({op:"bcurveTo",data:[m+e+(r-e)*p+b(),g+t+(n-t)*p+b(),m+e+2*(r-e)*p+b(),g+t+2*(n-t)*p+b(),r+(T?0:b()),n+(T?0:b())]}):y.push({op:"bcurveTo",data:[m+e+(r-e)*p+k(),g+t+(n-t)*p+k(),m+e+2*(r-e)*p+k(),g+t+2*(n-t)*p+k(),r+(T?0:k()),n+(T?0:k())]}),y}function Tb(e,t,r){if(!e.length)return[];let n=[];n.push([e[0][0]+_e(t,r),e[0][1]+_e(t,r)]),n.push([e[0][0]+_e(t,r),e[0][1]+_e(t,r)]);for(let i=1;i3){let s=[],o=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+21&&i.push(l)):i.push(l),i.push(e[t+3])}else{let u=e[t+0],h=e[t+1],f=e[t+2],d=e[t+3],p=qu(u,h,.5),m=qu(h,f,.5),g=qu(f,d,.5),y=qu(p,m,.5),b=qu(m,g,.5),k=qu(y,b,.5);V4([u,p,y,k],0,r,i),V4([k,b,g,d],0,r,i)}var s,o;return i}function n2t(e,t){return vb(e,0,e.length,t)}function vb(e,t,r,n,i){let s=i||[],o=e[t],l=e[r-1],u=0,h=1;for(let f=t+1;fu&&(u=d,h=f)}return Math.sqrt(u)>n?(vb(e,t,h+1,n,s),vb(e,h,r,n,s)):(s.length||s.push(o),s.push(l)),s}function I4(e,t=.15,r){let n=[],i=(e.length-1)/3;for(let s=0;s0?vb(n,0,n.length,r):n}var E0,N4,M4,O4,P4,B4,ss,F4,Zxt,L4,yG,kb,Jxt,Es,sd,z4,Sb,W4,_t,ce=x(()=>{"use strict";a(A4,"t");a(Kxt,"e");a(Qxt,"s");a(v0,"n");E0=class{static{a(this,"o")}constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){let n=v0(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){let n=[];for(let i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}};a(Ab,"a");N4=class extends E0{static{a(this,"h")}fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let i=v0(t,Object.assign({},r,{hachureGap:n})),s=Math.PI/180*r.hachureAngle,o=[],l=.5*n*Math.cos(s),u=.5*n*Math.sin(s);for(let[h,f]of i)Ab([h,f])&&o.push([[h[0]-l,h[1]+u],[...f]],[[h[0]+l,h[1]-u],[...f]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}},M4=class extends E0{static{a(this,"r")}fillPolygons(t,r){let n=this._fillPolygons(t,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,i);return n.ops=n.ops.concat(s.ops),n}},O4=class{static{a(this,"i")}constructor(t){this.helper=t}fillPolygons(t,r){let n=v0(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){let n=[],i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);let o=i/4;for(let l of t){let u=Ab(l),h=u/i,f=Math.ceil(h)-1,d=u-f*i,p=(l[0][0]+l[1][0])/2-i/4,m=Math.min(l[0][1],l[1][1]);for(let g=0;g{let l=Ab(o),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2,f=o[0],d=o[1];f[0]>d[0]&&(f=o[1],d=o[0]);let p=Math.atan((d[1]-f[1])/(d[0]-f[0]));for(let m=0;m{let o=Ab(s),l=Math.round(o/(2*r)),u=s[0],h=s[1];u[0]>h[0]&&(u=s[1],h=s[0]);let f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d2*Math.PI&&($=0,w=2*Math.PI);let A=(w-$)/T.curveStepCount,F=[];for(let S=$;S<=w;S+=A)F.push([_+C*Math.cos(S),L+D*Math.sin(S)]);return F.push([_+C*Math.cos(w),L+D*Math.sin(w)]),F.push([_,L]),id([F],T)}(t,r,n,i,s,o,h));return h.stroke!==Es&&f.push(d),this._d("arc",f,h)}curve(t,r){let n=this._o(r),i=[],s=xG(t,n);if(n.fill&&n.fill!==Es)if(n.fillStyle==="solid"){let o=xG(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{let o=[],l=t;if(l.length){let u=typeof l[0][0]=="number"?[l]:l;for(let h of u)h.length<3?o.push(...h):h.length===3?o.push(...I4(CG([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):o.push(...I4(CG(h),10,(1+n.roughness)/2))}o.length&&i.push(id([o],n))}return n.stroke!==Es&&i.push(s),this._d("curve",i,n)}polygon(t,r){let n=this._o(r),i=[],s=_b(t,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(D4([t],n)):i.push(id([t],n))),n.stroke!==Es&&i.push(s),this._d("polygon",i,n)}path(t,r){let n=this._o(r),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let s=n.fill&&n.fill!=="transparent"&&n.fill!==Es,o=n.stroke!==Es,l=!!(n.simplification&&n.simplification<1),u=function(f,d,p){let m=EG(wG(U4(f))),g=[],y=[],b=[0,0],k=[],T=a(()=>{k.length>=4&&y.push(...I4(k,d)),k=[]},"i"),_=a(()=>{T(),y.length&&(g.push(y),y=[])},"c");for(let{key:C,data:D}of m)switch(C){case"M":_(),b=[D[0],D[1]],y.push(b);break;case"L":T(),y.push([D[0],D[1]]);break;case"C":if(!k.length){let $=y.length?y[y.length-1]:b;k.push([$[0],$[1]])}k.push([D[0],D[1]]),k.push([D[2],D[3]]),k.push([D[4],D[5]]);break;case"Z":T(),y.push([b[0],b[1]])}if(_(),!p)return g;let L=[];for(let C of g){let D=n2t(C,p);D.length&&L.push(D)}return L}(t,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=kG(t,n);if(s)if(n.fillStyle==="solid")if(u.length===1){let f=kG(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(f.ops)})}else i.push(D4(u,n));else i.push(id(u,n));return o&&(l?u.forEach(f=>{i.push(_b(f,!1,n))}):i.push(h)),this._d("path",i,n)}opsToPath(t,r){let n="";for(let i of t.ops){let s=typeof r=="number"&&r>=0?i.data.map(o=>+o.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":n+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":n+=`L${s[0]} ${s[1]} `}}return n.trim()}toPaths(t){let r=t.sets||[],n=t.options||this.defaultOptions,i=[];for(let s of r){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:Es};break;case"fillPath":o={d:this.opsToPath(s),stroke:Es,strokeWidth:0,fill:n.fill||Es};break;case"fillSketch":o=this.fillSketch(s,n)}o&&i.push(o)}return i}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Es,strokeWidth:n,fill:Es}}_mergedShape(t){return t.filter((r,n)=>n===0||r.op!=="move")}},z4=class{static{a(this,"st")}constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new sd(r)}draw(t){let r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(let o of r)switch(o.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,o,s),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";let l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,o,s,l),i.restore();break}case"fillSketch":this.fillSketch(i,o,n)}}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=i,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,i="nonzero"){t.beginPath();for(let s of r.ops){let o=typeof n=="number"&&n>=0?s.data.map(l=>+l.toFixed(n)):s.data;switch(s.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,i,s){let o=this.gen.line(t,r,n,i,s);return this.draw(o),o}rectangle(t,r,n,i,s){let o=this.gen.rectangle(t,r,n,i,s);return this.draw(o),o}ellipse(t,r,n,i,s){let o=this.gen.ellipse(t,r,n,i,s);return this.draw(o),o}circle(t,r,n,i){let s=this.gen.circle(t,r,n,i);return this.draw(s),s}linearPath(t,r){let n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){let n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,i,s,o,l=!1,u){let h=this.gen.arc(t,r,n,i,s,o,l,u);return this.draw(h),h}curve(t,r){let n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){let n=this.gen.path(t,r);return this.draw(n),n}},Sb="http://www.w3.org/2000/svg",W4=class{static{a(this,"ot")}constructor(t,r){this.svg=t,this.gen=new sd(r)}draw(t){let r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,s=i.createElementNS(Sb,"g"),o=t.options.fixedDecimalPlaceDigits;for(let l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(Sb,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(Sb,"path"),u.setAttribute("d",this.opsToPath(l,o)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&s.appendChild(u)}return s}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);let s=t.createElementNS(Sb,"path");return s.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),s.setAttribute("stroke",n.fill||""),s.setAttribute("stroke-width",i+""),s.setAttribute("fill","none"),n.fillLineDash&&s.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,i,s){let o=this.gen.line(t,r,n,i,s);return this.draw(o)}rectangle(t,r,n,i,s){let o=this.gen.rectangle(t,r,n,i,s);return this.draw(o)}ellipse(t,r,n,i,s){let o=this.gen.ellipse(t,r,n,i,s);return this.draw(o)}circle(t,r,n,i){let s=this.gen.circle(t,r,n,i);return this.draw(s)}linearPath(t,r){let n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){let n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,i,s,o,l=!1,u){let h=this.gen.arc(t,r,n,i,s,o,l,u);return this.draw(h)}curve(t,r){let n=this.gen.curve(t,r);return this.draw(n)}path(t,r){let n=this.gen.path(t,r);return this.draw(n)}},_t={canvas:a((e,t)=>new z4(e,t),"canvas"),svg:a((e,t)=>new W4(e,t),"svg"),generator:a(e=>new sd(e),"generator"),newSeed:a(()=>sd.newSeed(),"newSeed")}});function DG(e,t){let{labelStyles:r}=At(t);t.labelStyle=r;let n=Ft(t),i=n;n||(i="anchor");let s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=1,{cssStyles:l}=t,u=_t.svg(s),h=Et(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);let f=u.circle(0,0,o*2,h),d=s.insert(()=>f,":first-child");return d.attr("class","anchor").attr("style",qr(l)),Ct(t,d),t.intersect=function(p){return P.info("Circle intersect",t,o,p),St.circle(t,o,p)},s}var IG=x(()=>{"use strict";zt();re();le();oe();ce();Ee();a(DG,"anchor")});function NG(e,t,r,n,i,s,o){let u=(e+r)/2,h=(t+n)/2,f=Math.atan2(n-t,r-e),d=(r-e)/2,p=(n-t)/2,m=d/i,g=p/s,y=Math.sqrt(m**2+g**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");let b=Math.sqrt(1-y**2),k=u+b*s*Math.sin(f)*(o?-1:1),T=h-b*i*Math.cos(f)*(o?-1:1),_=Math.atan2((t-T)/s,(e-k)/i),C=Math.atan2((n-T)/s,(r-k)/i)-_;o&&C<0&&(C+=2*Math.PI),!o&&C>0&&(C-=2*Math.PI);let D=[];for(let $=0;$<20;$++){let w=$/19,A=_+w*C,F=k+i*Math.cos(A),S=T+s*Math.sin(A);D.push({x:F,y:S})}return D}async function MG(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=s.width+t.padding+20,l=s.height+t.padding,u=l/2,h=u/(2.5+l/50),{cssStyles:f}=t,d=[{x:o/2,y:-l/2},{x:-o/2,y:-l/2},...NG(-o/2,-l/2,-o/2,l/2,h,u,!1),{x:o/2,y:l/2},...NG(o/2,l/2,o/2,-l/2,h,u,!0)],p=_t.svg(i),m=Et(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=fe(d),y=p.path(g,m),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(${h/2}, 0)`),Ct(t,b),t.intersect=function(k){return St.polygon(t,d,k)},i}var OG=x(()=>{"use strict";re();le();oe();ce();a(NG,"generateArcPoints");a(MG,"bowTieRect")});function di(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}var pl=x(()=>{"use strict";a(di,"insertPolygonShape")});async function PG(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=s.height+t.padding,l=12,u=s.width+t.padding+l,h=0,f=u,d=-o,p=0,m=[{x:h+l,y:d},{x:f,y:d},{x:f,y:p},{x:h,y:p},{x:h,y:d+l},{x:h+l,y:d}],g,{cssStyles:y}=t;if(t.look==="handDrawn"){let b=_t.svg(i),k=Et(t,{}),T=fe(m),_=b.path(T,k);g=i.insert(()=>_,":first-child").attr("transform",`translate(${-u/2}, ${o/2})`),y&&g.attr("style",y)}else g=di(i,u,o,m);return n&&g.attr("style",n),Ct(t,g),t.intersect=function(b){return St.polygon(t,m,b)},i}var BG=x(()=>{"use strict";re();le();oe();ce();pl();re();a(PG,"card")});function FG(e,t){let{nodeStyles:r}=At(t);t.label="";let n=e.insert("g").attr("class",Ft(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,s=Math.max(28,t.width??0),o=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],l=_t.svg(n),u=Et(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=fe(o),f=l.path(h,u),d=n.insert(()=>f,":first-child");return i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(p){return St.polygon(t,o,p)},n}var $G=x(()=>{"use strict";le();ce();oe();re();a(FG,"choice")});async function GG(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,halfPadding:o}=await Gt(e,t,Ft(t)),l=s.width/2+o,u,{cssStyles:h}=t;if(t.look==="handDrawn"){let f=_t.svg(i),d=Et(t,{}),p=f.circle(0,0,l*2,d);u=i.insert(()=>p,":first-child"),u.attr("class","basic label-container").attr("style",qr(h))}else u=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0);return Ct(t,u),t.intersect=function(f){return P.info("Circle intersect",t,l,f),St.circle(t,l,f)},i}var VG=x(()=>{"use strict";zt();re();le();oe();ce();Ee();a(GG,"circle")});function i2t(e){let t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,i={x:n/2*t,y:n/2*r},s={x:-(n/2)*t,y:n/2*r},o={x:-(n/2)*t,y:-(n/2)*r},l={x:n/2*t,y:-(n/2)*r};return`M ${s.x},${s.y} L ${l.x},${l.y}
+ M ${i.x},${i.y} L ${o.x},${o.y}`}function zG(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r,t.label="";let i=e.insert("g").attr("class",Ft(t)).attr("id",t.domId??t.id),s=Math.max(30,t?.width??0),{cssStyles:o}=t,l=_t.svg(i),u=Et(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");let h=l.circle(0,0,s*2,u),f=i2t(s),d=l.path(f,u),p=i.insert(()=>h,":first-child");return p.insert(()=>d),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),Ct(t,p),t.intersect=function(m){return P.info("crossedCircle intersect",t,{radius:s,point:m}),St.circle(t,s,m)},i}var WG=x(()=>{"use strict";zt();re();oe();ce();le();a(i2t,"createLine");a(zG,"crossedCircle")});function Tc(e,t,r,n=100,i=0,s=180){let o=[],l=i*Math.PI/180,f=(s*Math.PI/180-l)/(n-1);for(let d=0;d_,":first-child").attr("stroke-opacity",0),L.insert(()=>k,":first-child"),L.attr("class","text"),f&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",n),L.attr("transform",`translate(${h}, 0)`),o.attr("transform",`translate(${-l/2+h-(s.x-(s.left??0))},${-u/2+(t.padding??0)/2-(s.y-(s.top??0))})`),Ct(t,L),t.intersect=function(C){return St.polygon(t,p,C)},i}var jG=x(()=>{"use strict";re();le();oe();ce();a(Tc,"generateCirclePoints");a(UG,"curlyBraceLeft")});function Sc(e,t,r,n=100,i=0,s=180){let o=[],l=i*Math.PI/180,f=(s*Math.PI/180-l)/(n-1);for(let d=0;d_,":first-child").attr("stroke-opacity",0),L.insert(()=>k,":first-child"),L.attr("class","text"),f&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",n),L.attr("transform",`translate(${-h}, 0)`),o.attr("transform",`translate(${-l/2+(t.padding??0)/2-(s.x-(s.left??0))},${-u/2+(t.padding??0)/2-(s.y-(s.top??0))})`),Ct(t,L),t.intersect=function(C){return St.polygon(t,p,C)},i}var HG=x(()=>{"use strict";re();le();oe();ce();a(Sc,"generateCirclePoints");a(qG,"curlyBraceRight")});function pi(e,t,r,n=100,i=0,s=180){let o=[],l=i*Math.PI/180,f=(s*Math.PI/180-l)/(n-1);for(let d=0;d$,":first-child").attr("stroke-opacity",0),w.insert(()=>T,":first-child"),w.insert(()=>C,":first-child"),w.attr("class","text"),f&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",f),n&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(${h-h/4}, 0)`),o.attr("transform",`translate(${-l/2+(t.padding??0)/2-(s.x-(s.left??0))},${-u/2+(t.padding??0)/2-(s.y-(s.top??0))})`),Ct(t,w),t.intersect=function(A){return St.polygon(t,m,A)},i}var XG=x(()=>{"use strict";re();le();oe();ce();a(pi,"generateCirclePoints");a(YG,"curlyBraces")});async function KG(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=80,l=20,u=Math.max(o,(s.width+(t.padding??0)*2)*1.25,t?.width??0),h=Math.max(l,s.height+(t.padding??0)*2,t?.height??0),f=h/2,{cssStyles:d}=t,p=_t.svg(i),m=Et(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=u,y=h,b=g-f,k=y/4,T=[{x:b,y:0},{x:k,y:0},{x:0,y:y/2},{x:k,y},{x:b,y},...xb(-b,-y/2,f,50,270,90)],_=fe(T),L=p.path(_,m),C=i.insert(()=>L,":first-child");return C.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",n),C.attr("transform",`translate(${-u/2}, ${-h/2})`),Ct(t,C),t.intersect=function(D){return St.polygon(t,T,D)},i}var QG=x(()=>{"use strict";re();le();oe();ce();a(KG,"curvedTrapezoid")});async function ZG(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+t.padding,t.width??0),u=l/2,h=u/(2.5+l/50),f=Math.max(s.height+h+t.padding,t.height??0),d,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=_t.svg(i),g=a2t(0,0,l,f,u,h),y=o2t(0,h,l,f,u,h),b=m.path(g,Et(t,{})),k=m.path(y,Et(t,{fill:"none"}));d=i.insert(()=>k,":first-child"),d=i.insert(()=>b,":first-child"),d.attr("class","basic label-container"),p&&d.attr("style",p)}else{let m=s2t(0,0,l,f,u,h);d=i.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",qr(p)).attr("style",n)}return d.attr("label-offset-y",h),d.attr("transform",`translate(${-l/2}, ${-(f/2+h)})`),Ct(t,d),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+(t.padding??0)/1.5-(s.y-(s.top??0))})`),t.intersect=function(m){let g=St.rect(t,m),y=g.x-(t.x??0);if(u!=0&&(Math.abs(y)<(t.width??0)/2||Math.abs(y)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-h)){let b=h*h*(1-y*y/(u*u));b>0&&(b=Math.sqrt(b)),b=h-b,m.y-(t.y??0)>0&&(b=-b),g.y+=b}return g},i}var s2t,a2t,o2t,JG=x(()=>{"use strict";re();le();oe();ce();Ee();s2t=a((e,t,r,n,i,s)=>[`M${e},${t+s}`,`a${i},${s} 0,0,0 ${r},0`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),a2t=a((e,t,r,n,i,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),o2t=a((e,t,r,n,i,s)=>[`M${e-r/2},${-n/2}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");a(ZG,"cylinder")});async function tV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=s.width+t.padding,u=s.height+t.padding,h=u*.2,f=-l/2,d=-u/2-h/2,{cssStyles:p}=t,m=_t.svg(i),g=Et(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d+h},{x:-f,y:d+h},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+h}],b=m.polygon(y.map(T=>[T.x,T.y]),g),k=i.insert(()=>b,":first-child");return k.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),o.attr("transform",`translate(${f+(t.padding??0)/2-(s.x-(s.left??0))}, ${d+h+(t.padding??0)/2-(s.y-(s.top??0))})`),Ct(t,k),t.intersect=function(T){return St.rect(t,T)},i}var eV=x(()=>{"use strict";re();le();oe();ce();a(tV,"dividedRectangle")});async function rV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,halfPadding:o}=await Gt(e,t,Ft(t)),u=s.width/2+o+5,h=s.width/2+o,f,{cssStyles:d}=t;if(t.look==="handDrawn"){let p=_t.svg(i),m=Et(t,{roughness:.2,strokeWidth:2.5}),g=Et(t,{roughness:.2,strokeWidth:1.5}),y=p.circle(0,0,u*2,m),b=p.circle(0,0,h*2,g);f=i.insert("g",":first-child"),f.attr("class",qr(t.cssClasses)).attr("style",qr(d)),f.node()?.appendChild(y),f.node()?.appendChild(b)}else{f=i.insert("g",":first-child");let p=f.insert("circle",":first-child"),m=f.insert("circle");f.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",u).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0)}return Ct(t,f),t.intersect=function(p){return P.info("DoubleCircle intersect",t,u,p),St.circle(t,u,p)},i}var nV=x(()=>{"use strict";zt();re();le();oe();ce();Ee();a(rV,"doublecircle")});function iV(e,t,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=At(t);t.label="",t.labelStyle=n;let s=e.insert("g").attr("class",Ft(t)).attr("id",t.domId??t.id),o=7,{cssStyles:l}=t,u=_t.svg(s),{nodeBorder:h}=r,f=Et(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(f.roughness=0);let d=u.circle(0,0,o*2,f),p=s.insert(()=>d,":first-child");return p.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),Ct(t,p),t.intersect=function(m){return P.info("filledCircle intersect",t,{radius:o,point:m}),St.circle(t,o,m)},s}var sV=x(()=>{"use strict";ce();zt();le();oe();re();a(iV,"filledCircle")});async function aV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=s.width+(t.padding??0),u=l+s.height,h=l+s.height,f=[{x:0,y:-u},{x:h,y:-u},{x:h/2,y:0}],{cssStyles:d}=t,p=_t.svg(i),m=Et(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=fe(f),y=p.path(g,m),b=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return d&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),t.width=l,t.height=u,Ct(t,b),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${-u/2+(t.padding??0)/2+(s.y-(s.top??0))})`),t.intersect=function(k){return P.info("Triangle intersect",t,f,k),St.polygon(t,f,k)},i}var oV=x(()=>{"use strict";zt();re();le();oe();ce();re();a(aV,"flippedTriangle")});function lV(e,t,{dir:r,config:{state:n,themeVariables:i}}){let{nodeStyles:s}=At(t);t.label="";let o=e.insert("g").attr("class",Ft(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,u=Math.max(70,t?.width??0),h=Math.max(10,t?.height??0);r==="LR"&&(u=Math.max(10,t?.width??0),h=Math.max(70,t?.height??0));let f=-1*u/2,d=-1*h/2,p=_t.svg(o),m=Et(t,{stroke:i.lineColor,fill:i.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=p.rectangle(f,d,u,h,m),y=o.insert(()=>g,":first-child");l&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",l),s&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",s),Ct(t,y);let b=n?.padding??0;return t.width&&t.height&&(t.width+=b/2||0,t.height+=b/2||0),t.intersect=function(k){return St.rect(t,k)},o}var cV=x(()=>{"use strict";ce();le();oe();re();a(lV,"forkJoin")});async function uV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let i=80,s=50,{shapeSvg:o,bbox:l}=await Gt(e,t,Ft(t)),u=Math.max(i,l.width+(t.padding??0)*2,t?.width??0),h=Math.max(s,l.height+(t.padding??0)*2,t?.height??0),f=h/2,{cssStyles:d}=t,p=_t.svg(o),m=Et(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-u/2,y:-h/2},{x:u/2-f,y:-h/2},...xb(-u/2+f,0,f,50,90,270),{x:u/2-f,y:h/2},{x:-u/2,y:h/2}],y=fe(g),b=p.path(y,m),k=o.insert(()=>b,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",n),Ct(t,k),t.intersect=function(T){return P.info("Pill intersect",t,{radius:f,point:T}),St.polygon(t,g,T)},o}var hV=x(()=>{"use strict";zt();re();le();oe();ce();a(uV,"halfRoundedRectangle")});async function fV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=4,l=s.height+t.padding,u=l/o,h=s.width+2*u+t.padding,f=[{x:u,y:0},{x:h-u,y:0},{x:h,y:-l/2},{x:h-u,y:-l},{x:u,y:-l},{x:0,y:-l/2}],d,{cssStyles:p}=t;if(t.look==="handDrawn"){let m=_t.svg(i),g=Et(t,{}),y=l2t(0,0,h,l,u),b=m.path(y,g);d=i.insert(()=>b,":first-child").attr("transform",`translate(${-h/2}, ${l/2})`),p&&d.attr("style",p)}else d=di(i,h,l,f);return n&&d.attr("style",n),t.width=h,t.height=l,Ct(t,d),t.intersect=function(m){return St.polygon(t,f,m)},i}var l2t,dV=x(()=>{"use strict";re();le();oe();ce();pl();l2t=a((e,t,r,n,i)=>[`M${e+i},${t}`,`L${e+r-i},${t}`,`L${e+r},${t-n/2}`,`L${e+r-i},${t-n}`,`L${e+i},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createHexagonPathD");a(fV,"hexagon")});async function pV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.label="",t.labelStyle=r;let{shapeSvg:i}=await Gt(e,t,Ft(t)),s=Math.max(30,t?.width??0),o=Math.max(30,t?.height??0),{cssStyles:l}=t,u=_t.svg(i),h=Et(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let f=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],d=fe(f),p=u.path(d,h),m=i.insert(()=>p,":first-child");return m.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(${-s/2}, ${-o/2})`),Ct(t,m),t.intersect=function(g){return P.info("Pill intersect",t,{points:f}),St.polygon(t,f,g)},i}var mV=x(()=>{"use strict";zt();re();le();oe();ce();a(pV,"hourglass")});async function gV(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=At(t);t.labelStyle=i;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,label:d}=await Gt(e,t,"icon-shape default"),p=t.pos==="t",m=l,g=l,{nodeBorder:y}=r,{stylesMap:b}=xo(t),k=-g/2,T=-m/2,_=t.label?8:0,L=_t.svg(h),C=Et(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");let D=L.rectangle(k,T,g,m,C),$=Math.max(g,f.width),w=m+f.height+_,A=L.rectangle(-$/2,-w/2,$,w,{...C,fill:"transparent",stroke:"none"}),F=h.insert(()=>D,":first-child"),S=h.insert(()=>A);if(t.icon){let v=h.append("g");v.html(`${await Fl(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let R=v.node().getBBox(),B=R.width,I=R.height,M=R.x,O=R.y;v.attr("transform",`translate(${-B/2-M},${p?f.height/2+_/2-I/2-O:-f.height/2-_/2-I/2-O})`),v.attr("style",`color: ${b.get("stroke")??y};`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-w/2:w/2-f.height})`),F.attr("transform",`translate(0,${p?f.height/2+_/2:-f.height/2-_/2})`),Ct(t,S),t.intersect=function(v){if(P.info("iconSquare intersect",t,v),!t.label)return St.rect(t,v);let R=t.x??0,B=t.y??0,I=t.height??0,M=[];return p?M=[{x:R-f.width/2,y:B-I/2},{x:R+f.width/2,y:B-I/2},{x:R+f.width/2,y:B-I/2+f.height+_},{x:R+g/2,y:B-I/2+f.height+_},{x:R+g/2,y:B+I/2},{x:R-g/2,y:B+I/2},{x:R-g/2,y:B-I/2+f.height+_},{x:R-f.width/2,y:B-I/2+f.height+_}]:M=[{x:R-g/2,y:B-I/2},{x:R+g/2,y:B-I/2},{x:R+g/2,y:B-I/2+m},{x:R+f.width/2,y:B-I/2+m},{x:R+f.width/2/2,y:B+I/2},{x:R-f.width/2,y:B+I/2},{x:R-f.width/2,y:B-I/2+m},{x:R-g/2,y:B-I/2+m}],St.polygon(t,M,v)},h}var yV=x(()=>{"use strict";ce();zt();Qh();le();oe();re();a(gV,"icon")});async function xV(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=At(t);t.labelStyle=i;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,label:d}=await Gt(e,t,"icon-shape default"),p=20,m=t.label?8:0,g=t.pos==="t",{nodeBorder:y,mainBkg:b}=r,{stylesMap:k}=xo(t),T=_t.svg(h),_=Et(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let L=k.get("fill");_.stroke=L??b;let C=h.append("g");t.icon&&C.html(`${await Fl(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let D=C.node().getBBox(),$=D.width,w=D.height,A=D.x,F=D.y,S=Math.max($,w)*Math.SQRT2+p*2,v=T.circle(0,0,S,_),R=Math.max(S,f.width),B=S+f.height+m,I=T.rectangle(-R/2,-B/2,R,B,{..._,fill:"transparent",stroke:"none"}),M=h.insert(()=>v,":first-child"),O=h.insert(()=>I);return C.attr("transform",`translate(${-$/2-A},${g?f.height/2+m/2-w/2-F:-f.height/2-m/2-w/2-F})`),C.attr("style",`color: ${k.get("stroke")??y};`),d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-B/2:B/2-f.height})`),M.attr("transform",`translate(0,${g?f.height/2+m/2:-f.height/2-m/2})`),Ct(t,O),t.intersect=function(N){return P.info("iconSquare intersect",t,N),St.rect(t,N)},h}var bV=x(()=>{"use strict";ce();zt();Qh();le();oe();re();a(xV,"iconCircle")});var mi,_c=x(()=>{"use strict";mi=a((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD")});async function kV(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=At(t);t.labelStyle=i;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,halfPadding:d,label:p}=await Gt(e,t,"icon-shape default"),m=t.pos==="t",g=l+d*2,y=l+d*2,{nodeBorder:b,mainBkg:k}=r,{stylesMap:T}=xo(t),_=-y/2,L=-g/2,C=t.label?8:0,D=_t.svg(h),$=Et(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let w=T.get("fill");$.stroke=w??k;let A=D.path(mi(_,L,y,g,5),$),F=Math.max(y,f.width),S=g+f.height+C,v=D.rectangle(-F/2,-S/2,F,S,{...$,fill:"transparent",stroke:"none"}),R=h.insert(()=>A,":first-child").attr("class","icon-shape2"),B=h.insert(()=>v);if(t.icon){let I=h.append("g");I.html(`${await Fl(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let M=I.node().getBBox(),O=M.width,N=M.height,E=M.x,V=M.y;I.attr("transform",`translate(${-O/2-E},${m?f.height/2+C/2-N/2-V:-f.height/2-C/2-N/2-V})`),I.attr("style",`color: ${T.get("stroke")??b};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-S/2:S/2-f.height})`),R.attr("transform",`translate(0,${m?f.height/2+C/2:-f.height/2-C/2})`),Ct(t,B),t.intersect=function(I){if(P.info("iconSquare intersect",t,I),!t.label)return St.rect(t,I);let M=t.x??0,O=t.y??0,N=t.height??0,E=[];return m?E=[{x:M-f.width/2,y:O-N/2},{x:M+f.width/2,y:O-N/2},{x:M+f.width/2,y:O-N/2+f.height+C},{x:M+y/2,y:O-N/2+f.height+C},{x:M+y/2,y:O+N/2},{x:M-y/2,y:O+N/2},{x:M-y/2,y:O-N/2+f.height+C},{x:M-f.width/2,y:O-N/2+f.height+C}]:E=[{x:M-y/2,y:O-N/2},{x:M+y/2,y:O-N/2},{x:M+y/2,y:O-N/2+g},{x:M+f.width/2,y:O-N/2+g},{x:M+f.width/2/2,y:O+N/2},{x:M-f.width/2,y:O+N/2},{x:M-f.width/2,y:O-N/2+g},{x:M-y/2,y:O-N/2+g}],St.polygon(t,E,I)},h}var TV=x(()=>{"use strict";ce();zt();Qh();le();oe();_c();re();a(kV,"iconRounded")});async function SV(e,t,{config:{themeVariables:r,flowchart:n}}){let{labelStyles:i}=At(t);t.labelStyle=i;let s=t.assetHeight??48,o=t.assetWidth??48,l=Math.max(s,o),u=n?.wrappingWidth;t.width=Math.max(l,u??0);let{shapeSvg:h,bbox:f,halfPadding:d,label:p}=await Gt(e,t,"icon-shape default"),m=t.pos==="t",g=l+d*2,y=l+d*2,{nodeBorder:b,mainBkg:k}=r,{stylesMap:T}=xo(t),_=-y/2,L=-g/2,C=t.label?8:0,D=_t.svg(h),$=Et(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let w=T.get("fill");$.stroke=w??k;let A=D.path(mi(_,L,y,g,.1),$),F=Math.max(y,f.width),S=g+f.height+C,v=D.rectangle(-F/2,-S/2,F,S,{...$,fill:"transparent",stroke:"none"}),R=h.insert(()=>A,":first-child"),B=h.insert(()=>v);if(t.icon){let I=h.append("g");I.html(`${await Fl(t.icon,{height:l,width:l,fallbackPrefix:""})} `);let M=I.node().getBBox(),O=M.width,N=M.height,E=M.x,V=M.y;I.attr("transform",`translate(${-O/2-E},${m?f.height/2+C/2-N/2-V:-f.height/2-C/2-N/2-V})`),I.attr("style",`color: ${T.get("stroke")??b};`)}return p.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${m?-S/2:S/2-f.height})`),R.attr("transform",`translate(0,${m?f.height/2+C/2:-f.height/2-C/2})`),Ct(t,B),t.intersect=function(I){if(P.info("iconSquare intersect",t,I),!t.label)return St.rect(t,I);let M=t.x??0,O=t.y??0,N=t.height??0,E=[];return m?E=[{x:M-f.width/2,y:O-N/2},{x:M+f.width/2,y:O-N/2},{x:M+f.width/2,y:O-N/2+f.height+C},{x:M+y/2,y:O-N/2+f.height+C},{x:M+y/2,y:O+N/2},{x:M-y/2,y:O+N/2},{x:M-y/2,y:O-N/2+f.height+C},{x:M-f.width/2,y:O-N/2+f.height+C}]:E=[{x:M-y/2,y:O-N/2},{x:M+y/2,y:O-N/2},{x:M+y/2,y:O-N/2+g},{x:M+f.width/2,y:O-N/2+g},{x:M+f.width/2/2,y:O+N/2},{x:M-f.width/2,y:O+N/2},{x:M-f.width/2,y:O-N/2+g},{x:M-y/2,y:O-N/2+g}],St.polygon(t,E,I)},h}var _V=x(()=>{"use strict";ce();zt();Qh();le();_c();oe();re();a(SV,"iconSquare")});async function CV(e,t,{config:{flowchart:r}}){let n=new Image;n.src=t?.img??"",await n.decode();let i=Number(n.naturalWidth.toString().replace("px","")),s=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/s;let{labelStyles:o}=At(t);t.labelStyle=o;let l=r?.wrappingWidth;t.defaultWidth=r?.wrappingWidth;let u=Math.max(t.label?l??0:0,t?.assetWidth??i),h=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:u,f=t.constraint==="on"?h/t.imageAspectRatio:t?.assetHeight??s;t.width=Math.max(h,l??0);let{shapeSvg:d,bbox:p,label:m}=await Gt(e,t,"image-shape default"),g=t.pos==="t",y=-h/2,b=-f/2,k=t.label?8:0,T=_t.svg(d),_=Et(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let L=T.rectangle(y,b,h,f,_),C=Math.max(h,p.width),D=f+p.height+k,$=T.rectangle(-C/2,-D/2,C,D,{..._,fill:"none",stroke:"none"}),w=d.insert(()=>L,":first-child"),A=d.insert(()=>$);if(t.img){let F=d.append("image");F.attr("href",t.img),F.attr("width",h),F.attr("height",f),F.attr("preserveAspectRatio","none"),F.attr("transform",`translate(${-h/2},${g?D/2-f:-D/2})`)}return m.attr("transform",`translate(${-p.width/2-(p.x-(p.left??0))},${g?-f/2-p.height/2-k/2:f/2-p.height/2+k/2})`),w.attr("transform",`translate(0,${g?p.height/2+k/2:-p.height/2-k/2})`),Ct(t,A),t.intersect=function(F){if(P.info("iconSquare intersect",t,F),!t.label)return St.rect(t,F);let S=t.x??0,v=t.y??0,R=t.height??0,B=[];return g?B=[{x:S-p.width/2,y:v-R/2},{x:S+p.width/2,y:v-R/2},{x:S+p.width/2,y:v-R/2+p.height+k},{x:S+h/2,y:v-R/2+p.height+k},{x:S+h/2,y:v+R/2},{x:S-h/2,y:v+R/2},{x:S-h/2,y:v-R/2+p.height+k},{x:S-p.width/2,y:v-R/2+p.height+k}]:B=[{x:S-h/2,y:v-R/2},{x:S+h/2,y:v-R/2},{x:S+h/2,y:v-R/2+f},{x:S+p.width/2,y:v-R/2+f},{x:S+p.width/2/2,y:v+R/2},{x:S-p.width/2,y:v+R/2},{x:S-p.width/2,y:v-R/2+f},{x:S-h/2,y:v-R/2+f}],St.polygon(t,B,F)},d}var wV=x(()=>{"use strict";ce();zt();le();oe();re();a(CV,"imageSquare")});async function EV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=Math.max(s.width+(t.padding??0)*2,t?.width??0),l=Math.max(s.height+(t.padding??0)*2,t?.height??0),u=[{x:0,y:0},{x:o,y:0},{x:o+3*l/6,y:-l},{x:-3*l/6,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=_t.svg(i),p=Et(t,{}),m=fe(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=di(i,o,l,u);return n&&h.attr("style",n),t.width=o,t.height=l,Ct(t,h),t.intersect=function(d){return St.polygon(t,u,d)},i}var vV=x(()=>{"use strict";re();le();oe();ce();pl();a(EV,"inv_trapezoid")});async function ml(e,t,r){let{labelStyles:n,nodeStyles:i}=At(t);t.labelStyle=n;let{shapeSvg:s,bbox:o}=await Gt(e,t,Ft(t)),l=Math.max(o.width+r.labelPaddingX*2,t?.width||0),u=Math.max(o.height+r.labelPaddingY*2,t?.height||0),h=-l/2,f=-u/2,d,{rx:p,ry:m}=t,{cssStyles:g}=t;if(r?.rx&&r.ry&&(p=r.rx,m=r.ry),t.look==="handDrawn"){let y=_t.svg(s),b=Et(t,{}),k=p||m?y.path(mi(h,f,l,u,p||0),b):y.rectangle(h,f,l,u,b);d=s.insert(()=>k,":first-child"),d.attr("class","basic label-container").attr("style",qr(g))}else d=s.insert("rect",":first-child"),d.attr("class","basic label-container").attr("style",i).attr("rx",qr(p)).attr("ry",qr(m)).attr("x",h).attr("y",f).attr("width",l).attr("height",u);return Ct(t,d),t.intersect=function(y){return St.rect(t,y)},s}var ad=x(()=>{"use strict";re();le();_c();oe();ce();Ee();a(ml,"drawRect")});async function AV(e,t){let{shapeSvg:r,bbox:n,label:i}=await Gt(e,t,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Ct(t,s),t.intersect=function(u){return St.rect(t,u)},r}var LV=x(()=>{"use strict";ad();re();le();a(AV,"labelRect")});async function RV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=Math.max(s.width+(t.padding??0),t?.width??0),l=Math.max(s.height+(t.padding??0),t?.height??0),u=[{x:0,y:0},{x:o+3*l/6,y:0},{x:o,y:-l},{x:-(3*l)/6,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=_t.svg(i),p=Et(t,{}),m=fe(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=di(i,o,l,u);return n&&h.attr("style",n),t.width=o,t.height=l,Ct(t,h),t.intersect=function(d){return St.polygon(t,u,d)},i}var DV=x(()=>{"use strict";re();le();oe();ce();pl();a(RV,"lean_left")});async function IV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=Math.max(s.width+(t.padding??0),t?.width??0),l=Math.max(s.height+(t.padding??0),t?.height??0),u=[{x:-3*l/6,y:0},{x:o,y:0},{x:o+3*l/6,y:-l},{x:0,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=_t.svg(i),p=Et(t,{}),m=fe(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=di(i,o,l,u);return n&&h.attr("style",n),t.width=o,t.height=l,Ct(t,h),t.intersect=function(d){return St.polygon(t,u,d)},i}var NV=x(()=>{"use strict";re();le();oe();ce();pl();a(IV,"lean_right")});function MV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.label="",t.labelStyle=r;let i=e.insert("g").attr("class",Ft(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(35,t?.width??0),l=Math.max(35,t?.height??0),u=7,h=[{x:o,y:0},{x:0,y:l+u/2},{x:o-2*u,y:l+u/2},{x:0,y:2*l},{x:o,y:l-u/2},{x:2*u,y:l-u/2}],f=_t.svg(i),d=Et(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=fe(h),m=f.path(p,d),g=i.insert(()=>m,":first-child");return s&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",n),g.attr("transform",`translate(-${o/2},${-l})`),Ct(t,g),t.intersect=function(y){return P.info("lightningBolt intersect",t,y),St.polygon(t,h,y)},i}var OV=x(()=>{"use strict";zt();re();oe();ce();le();re();a(MV,"lightningBolt")});async function PV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0),t.width??0),u=l/2,h=u/(2.5+l/50),f=Math.max(s.height+h+(t.padding??0),t.height??0),d=f*.1,p,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=_t.svg(i),y=u2t(0,0,l,f,u,h,d),b=h2t(0,h,l,f,u,h),k=Et(t,{}),T=g.path(y,k),_=g.path(b,k);i.insert(()=>_,":first-child").attr("class","line"),p=i.insert(()=>T,":first-child"),p.attr("class","basic label-container"),m&&p.attr("style",m)}else{let g=c2t(0,0,l,f,u,h,d);p=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",qr(m)).attr("style",n)}return p.attr("label-offset-y",h),p.attr("transform",`translate(${-l/2}, ${-(f/2+h)})`),Ct(t,p),o.attr("transform",`translate(${-(s.width/2)-(s.x-(s.left??0))}, ${-(s.height/2)+h-(s.y-(s.top??0))})`),t.intersect=function(g){let y=St.rect(t,g),b=y.x-(t.x??0);if(u!=0&&(Math.abs(b)<(t.width??0)/2||Math.abs(b)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-h)){let k=h*h*(1-b*b/(u*u));k>0&&(k=Math.sqrt(k)),k=h-k,g.y-(t.y??0)>0&&(k=-k),y.y+=k}return y},i}var c2t,u2t,h2t,BV=x(()=>{"use strict";re();le();oe();ce();Ee();c2t=a((e,t,r,n,i,s,o)=>[`M${e},${t+s}`,`a${i},${s} 0,0,0 ${r},0`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+s+o}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),u2t=a((e,t,r,n,i,s,o)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${i},${s} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${s} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+s+o}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),h2t=a((e,t,r,n,i,s)=>[`M${e-r/2},${-n/2}`,`a${i},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");a(PV,"linedCylinder")});async function FV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=u/4,f=u+h,{cssStyles:d}=t,p=_t.svg(i),m=Et(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-l/2-l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:f/2},...Js(-l/2-l/2*.1,f/2,l/2+l/2*.1,f/2,h,.8),{x:l/2+l/2*.1,y:-f/2},{x:-l/2-l/2*.1,y:-f/2},{x:-l/2,y:-f/2},{x:-l/2,y:f/2*1.1},{x:-l/2,y:-f/2}],y=p.polygon(g.map(k=>[k.x,k.y]),m),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",n),b.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(s.x-(s.left??0))},${-u/2+(t.padding??0)-h/2-(s.y-(s.top??0))})`),Ct(t,b),t.intersect=function(k){return St.polygon(t,g,k)},i}var $V=x(()=>{"use strict";re();le();ce();oe();a(FV,"linedWaveEdgedRect")});async function GV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=5,f=-l/2,d=-u/2,{cssStyles:p}=t,m=_t.svg(i),g=Et(t,{}),y=[{x:f-h,y:d+h},{x:f-h,y:d+u+h},{x:f+l-h,y:d+u+h},{x:f+l-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d+u-h},{x:f+l+h,y:d+u-h},{x:f+l+h,y:d-h},{x:f+h,y:d-h},{x:f+h,y:d},{x:f,y:d},{x:f,y:d+h}],b=[{x:f,y:d+h},{x:f+l-h,y:d+h},{x:f+l-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d},{x:f,y:d}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let k=fe(y),T=m.path(k,g),_=fe(b),L=m.path(_,{...g,fill:"none"}),C=i.insert(()=>L,":first-child");return C.insert(()=>T,":first-child"),C.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),o.attr("transform",`translate(${-(s.width/2)-h-(s.x-(s.left??0))}, ${-(s.height/2)+h-(s.y-(s.top??0))})`),Ct(t,C),t.intersect=function(D){return St.polygon(t,y,D)},i}var VV=x(()=>{"use strict";re();oe();ce();le();a(GV,"multiRect")});async function zV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=u/4,f=u+h,d=-l/2,p=-f/2,m=5,{cssStyles:g}=t,y=Js(d-m,p+f+m,d+l-m,p+f+m,h,.8),b=y?.[y.length-1],k=[{x:d-m,y:p+m},{x:d-m,y:p+f+m},...y,{x:d+l-m,y:b.y-m},{x:d+l,y:b.y-m},{x:d+l,y:b.y-2*m},{x:d+l+m,y:b.y-2*m},{x:d+l+m,y:p-m},{x:d+m,y:p-m},{x:d+m,y:p},{x:d,y:p},{x:d,y:p+m}],T=[{x:d,y:p+m},{x:d+l-m,y:p+m},{x:d+l-m,y:b.y-m},{x:d+l,y:b.y-m},{x:d+l,y:p},{x:d,y:p}],_=_t.svg(i),L=Et(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");let C=fe(k),D=_.path(C,L),$=fe(T),w=_.path($,L),A=i.insert(()=>D,":first-child");return A.insert(()=>w),A.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",n),A.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-(s.width/2)-m-(s.x-(s.left??0))}, ${-(s.height/2)+m-h/2-(s.y-(s.top??0))})`),Ct(t,A),t.intersect=function(F){return St.polygon(t,k,F)},i}var WV=x(()=>{"use strict";re();le();ce();oe();a(zV,"multiWaveEdgedRectangle")});async function UV(e,t,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=At(t);t.labelStyle=n,t.useHtmlLabels||Re().flowchart?.htmlLabels!==!1||(t.centerLabel=!0);let{shapeSvg:o,bbox:l}=await Gt(e,t,Ft(t)),u=Math.max(l.width+(t.padding??0)*2,t?.width??0),h=Math.max(l.height+(t.padding??0)*2,t?.height??0),f=-u/2,d=-h/2,{cssStyles:p}=t,m=_t.svg(o),g=Et(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=m.rectangle(f,d,u,h,g),b=o.insert(()=>y,":first-child");return b.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),Ct(t,b),t.intersect=function(k){return St.rect(t,k)},o}var jV=x(()=>{"use strict";ce();le();oe();re();$n();a(UV,"note")});async function qV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=s.width+t.padding,l=s.height+t.padding,u=o+l,h=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}],f,{cssStyles:d}=t;if(t.look==="handDrawn"){let p=_t.svg(i),m=Et(t,{}),g=f2t(0,0,u),y=p.path(g,m);f=i.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`),d&&f.attr("style",d)}else f=di(i,u,u,h);return n&&f.attr("style",n),Ct(t,f),t.intersect=function(p){return P.debug(`APA12 Intersect called SPLIT
+point:`,p,`
+node:
+`,t,`
+res:`,St.polygon(t,h,p)),St.polygon(t,h,p)},i}var f2t,HV=x(()=>{"use strict";zt();re();le();oe();ce();pl();f2t=a((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");a(qV,"question")});async function YV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0),t?.width??0),u=Math.max(s.height+(t.padding??0),t?.height??0),h=-l/2,f=-u/2,d=f/2,p=[{x:h+d,y:f},{x:h,y:0},{x:h+d,y:-f},{x:-h,y:-f},{x:-h,y:f}],{cssStyles:m}=t,g=_t.svg(i),y=Et(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let b=fe(p),k=g.path(b,y),T=i.insert(()=>k,":first-child");return T.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),T.attr("transform",`translate(${-d/2},0)`),o.attr("transform",`translate(${-d/2-s.width/2-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),Ct(t,T),t.intersect=function(_){return St.polygon(t,p,_)},i}var XV=x(()=>{"use strict";re();le();oe();ce();a(YV,"rect_left_inv_arrow")});function d2t(e,t){t&&e.attr("style",t)}async function p2t(e){let t=xt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),n=e.label;e.label&&Tn(e.label)&&(n=await jl(e.label.replace(Rt.lineBreakRegex,`
+`),Y()));let i=e.isNode?"nodeLabel":"edgeLabel";return r.html('"+n+""),d2t(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}var m2t,bo,Lb=x(()=>{"use strict";$e();zt();pe();Fe();Ee();a(d2t,"applyStyle");a(p2t,"addHtmlLabel");m2t=a(async(e,t,r,n)=>{let i=e||"";if(typeof i=="object"&&(i=i[0]),Ne(Y().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"
"),P.info("vertexText"+i);let s={isNode:n,label:Yn(i).replace(/fa[blrs]?:fa-[\w-]+/g,l=>``),labelStyle:t&&t.replace("fill:","color:")};return await p2t(s)}else{let s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let o=[];typeof i=="string"?o=i.split(/\\n|\n|
/gi):Array.isArray(i)?o=i:o=[];for(let l of o){let u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),r?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=l.trim(),s.appendChild(u)}return s}},"createLabel"),bo=m2t});async function KV(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let i;t.cssClasses?i="node "+t.cssClasses:i="node default";let s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=s.insert("g"),l=s.insert("g").attr("class","label").attr("style",n),u=t.description,h=t.label,f=l.node().appendChild(await bo(h,t.labelStyle,!0,!0)),d={width:0,height:0};if(Ne(Y()?.flowchart?.htmlLabels)){let w=f.children[0],A=xt(f);d=w.getBoundingClientRect(),A.attr("width",d.width),A.attr("height",d.height)}P.info("Text 2",u);let p=u||[],m=f.getBBox(),g=l.node().appendChild(await bo(p.join?p.join("
"):p,t.labelStyle,!0,!0)),y=g.children[0],b=xt(g);d=y.getBoundingClientRect(),b.attr("width",d.width),b.attr("height",d.height);let k=(t.padding||0)/2;xt(g).attr("transform","translate( "+(d.width>m.width?0:(m.width-d.width)/2)+", "+(m.height+k+5)+")"),xt(f).attr("transform","translate( "+(d.width(P.debug("Rough node insert CXC",F),S),":first-child"),D=s.insert(()=>(P.debug("Rough node insert CXC",F),F),":first-child")}else D=o.insert("rect",":first-child"),$=o.insert("line"),D.attr("class","outer title-state").attr("style",n).attr("x",-d.width/2-k).attr("y",-d.height/2-k).attr("width",d.width+(t.padding||0)).attr("height",d.height+(t.padding||0)),$.attr("class","divider").attr("x1",-d.width/2-k).attr("x2",d.width/2+k).attr("y1",-d.height/2-k+m.height+k).attr("y2",-d.height/2-k+m.height+k);return Ct(t,D),t.intersect=function(w){return St.rect(t,w)},s}var QV=x(()=>{"use strict";$e();Fe();re();Lb();le();oe();ce();pe();_c();zt();a(KV,"rectWithTitle")});async function ZV(e,t){let r={rx:5,ry:5,classes:"",labelPaddingX:(t?.padding||0)*1,labelPaddingY:(t?.padding||0)*1};return ml(e,t,r)}var JV=x(()=>{"use strict";ad();a(ZV,"roundedRect")});async function tz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=t?.padding??0,u=Math.max(s.width+(t.padding??0)*2,t?.width??0),h=Math.max(s.height+(t.padding??0)*2,t?.height??0),f=-s.width/2-l,d=-s.height/2-l,{cssStyles:p}=t,m=_t.svg(i),g=Et(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=[{x:f,y:d},{x:f+u+8,y:d},{x:f+u+8,y:d+h},{x:f-8,y:d+h},{x:f-8,y:d},{x:f,y:d},{x:f,y:d+h}],b=m.polygon(y.map(T=>[T.x,T.y]),g),k=i.insert(()=>b,":first-child");return k.attr("class","basic label-container").attr("style",qr(p)),n&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),p&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",n),o.attr("transform",`translate(${-u/2+4+(t.padding??0)-(s.x-(s.left??0))},${-h/2+(t.padding??0)-(s.y-(s.top??0))})`),Ct(t,k),t.intersect=function(T){return St.rect(t,T)},i}var ez=x(()=>{"use strict";re();le();oe();ce();Ee();a(tz,"shadedProcess")});async function rz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=-l/2,f=-u/2,{cssStyles:d}=t,p=_t.svg(i),m=Et(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:h,y:f},{x:h,y:f+u},{x:h+l,y:f+u},{x:h+l,y:f-u/2}],y=fe(g),b=p.path(y,m),k=i.insert(()=>b,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),n&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",n),k.attr("transform",`translate(0, ${u/4})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))}, ${-u/4+(t.padding??0)-(s.y-(s.top??0))})`),Ct(t,k),t.intersect=function(T){return St.polygon(t,g,T)},i}var nz=x(()=>{"use strict";re();le();oe();ce();a(rz,"slopedRect")});async function iz(e,t){let r={rx:0,ry:0,classes:"",labelPaddingX:(t?.padding||0)*2,labelPaddingY:(t?.padding||0)*1};return ml(e,t,r)}var sz=x(()=>{"use strict";ad();a(iz,"squareRect")});async function az(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=s.height+t.padding,l=s.width+o/4+t.padding,u,{cssStyles:h}=t;if(t.look==="handDrawn"){let f=_t.svg(i),d=Et(t,{}),p=mi(-l/2,-o/2,l,o,o/2),m=f.path(p,d);u=i.insert(()=>m,":first-child"),u.attr("class","basic label-container").attr("style",qr(h))}else u=i.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",o/2).attr("ry",o/2).attr("x",-l/2).attr("y",-o/2).attr("width",l).attr("height",o);return Ct(t,u),t.intersect=function(f){return St.rect(t,f)},i}var oz=x(()=>{"use strict";re();le();oe();ce();_c();Ee();a(az,"stadium")});async function lz(e,t){return ml(e,t,{rx:5,ry:5,classes:"flowchart-node"})}var cz=x(()=>{"use strict";ad();a(lz,"state")});function uz(e,t,{config:{themeVariables:r}}){let{labelStyles:n,nodeStyles:i}=At(t);t.labelStyle=n;let{cssStyles:s}=t,{lineColor:o,stateBorder:l,nodeBorder:u}=r,h=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),f=_t.svg(h),d=Et(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=f.circle(0,0,14,{...d,stroke:o,strokeWidth:2}),m=l??u,g=f.circle(0,0,5,{...d,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),y=h.insert(()=>p,":first-child");return y.insert(()=>g),s&&y.selectAll("path").attr("style",s),i&&y.selectAll("path").attr("style",i),Ct(t,y),t.intersect=function(b){return St.circle(t,7,b)},h}var hz=x(()=>{"use strict";ce();le();oe();re();a(uz,"stateEnd")});function fz(e,t,{config:{themeVariables:r}}){let{lineColor:n}=r,i=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),s;if(t.look==="handDrawn"){let l=_t.svg(i).circle(0,0,14,gG(n));s=i.insert(()=>l),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else s=i.insert("circle",":first-child"),s.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Ct(t,s),t.intersect=function(o){return St.circle(t,7,o)},i}var dz=x(()=>{"use strict";ce();le();oe();re();a(fz,"stateStart")});async function pz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=(t?.padding||0)/2,l=s.width+t.padding,u=s.height+t.padding,h=-s.width/2-o,f=-s.height/2-o,d=[{x:0,y:0},{x:l,y:0},{x:l,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(t.look==="handDrawn"){let p=_t.svg(i),m=Et(t,{}),g=p.rectangle(h-8,f,l+16,u,m),y=p.line(h,f,h,f+u,m),b=p.line(h+l,f,h+l,f+u,m);i.insert(()=>y,":first-child"),i.insert(()=>b,":first-child");let k=i.insert(()=>g,":first-child"),{cssStyles:T}=t;k.attr("class","basic label-container").attr("style",qr(T)),Ct(t,k)}else{let p=di(i,l,u,d);n&&p.attr("style",n),Ct(t,p)}return t.intersect=function(p){return St.polygon(t,d,p)},i}var mz=x(()=>{"use strict";re();le();oe();ce();pl();Ee();a(pz,"subroutine")});async function gz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=Math.max(s.width+(t.padding??0)*2,t?.width??0),l=Math.max(s.height+(t.padding??0)*2,t?.height??0),u=-o/2,h=-l/2,f=.2*l,d=.2*l,{cssStyles:p}=t,m=_t.svg(i),g=Et(t,{}),y=[{x:u-f/2,y:h},{x:u+o+f/2,y:h},{x:u+o+f/2,y:h+l},{x:u-f/2,y:h+l}],b=[{x:u+o-f/2,y:h+l},{x:u+o+f/2,y:h+l},{x:u+o+f/2,y:h+l-d}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let k=fe(y),T=m.path(k,g),_=fe(b),L=m.path(_,{...g,fillStyle:"solid"}),C=i.insert(()=>L,":first-child");return C.insert(()=>T,":first-child"),C.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),Ct(t,C),t.intersect=function(D){return St.polygon(t,y,D)},i}var yz=x(()=>{"use strict";re();oe();ce();le();a(gz,"taggedRect")});async function xz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=u/4,f=.2*l,d=.2*u,p=u+h,{cssStyles:m}=t,g=_t.svg(i),y=Et(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let b=[{x:-l/2-l/2*.1,y:p/2},...Js(-l/2-l/2*.1,p/2,l/2+l/2*.1,p/2,h,.8),{x:l/2+l/2*.1,y:-p/2},{x:-l/2-l/2*.1,y:-p/2}],k=-l/2+l/2*.1,T=-p/2-d*.4,_=[{x:k+l-f,y:(T+u)*1.4},{x:k+l,y:T+u-d},{x:k+l,y:(T+u)*.9},...Js(k+l,(T+u)*1.3,k+l-f,(T+u)*1.5,-u*.03,.5)],L=fe(b),C=g.path(L,y),D=fe(_),$=g.path(D,{...y,fillStyle:"solid"}),w=i.insert(()=>$,":first-child");return w.insert(()=>C,":first-child"),w.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",n),w.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))},${-u/2+(t.padding??0)-h/2-(s.y-(s.top??0))})`),Ct(t,w),t.intersect=function(A){return St.polygon(t,b,A)},i}var bz=x(()=>{"use strict";re();le();ce();oe();a(xz,"taggedWaveEdgedRectangle")});async function kz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=Math.max(s.width+t.padding,t?.width||0),l=Math.max(s.height+t.padding,t?.height||0),u=-o/2,h=-l/2,f=i.insert("rect",":first-child");return f.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",o).attr("height",l),Ct(t,f),t.intersect=function(d){return St.rect(t,d)},i}var Tz=x(()=>{"use strict";re();le();oe();a(kz,"text")});async function Sz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o,halfPadding:l}=await Gt(e,t,Ft(t)),u=t.look==="neo"?l*2:l,h=s.height+u,f=h/2,d=f/(2.5+h/50),p=s.width+d+u,{cssStyles:m}=t,g;if(t.look==="handDrawn"){let y=_t.svg(i),b=y2t(0,0,p,h,d,f),k=x2t(0,0,p,h,d,f),T=y.path(b,Et(t,{})),_=y.path(k,Et(t,{fill:"none"}));g=i.insert(()=>_,":first-child"),g=i.insert(()=>T,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let y=g2t(0,0,p,h,d,f);g=i.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",qr(m)).attr("style",n),g.attr("class","basic label-container"),m&&g.selectAll("path").attr("style",m),n&&g.selectAll("path").attr("style",n)}return g.attr("label-offset-x",d),g.attr("transform",`translate(${-p/2}, ${h/2} )`),o.attr("transform",`translate(${-(s.width/2)-d-(s.x-(s.left??0))}, ${-(s.height/2)-(s.y-(s.top??0))})`),Ct(t,g),t.intersect=function(y){let b=St.rect(t,y),k=b.y-(t.y??0);if(f!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(b.x-(t.x??0))>(t.width??0)/2-d)){let T=d*d*(1-k*k/(f*f));T!=0&&(T=Math.sqrt(Math.abs(T))),T=d-T,y.x-(t.x??0)>0&&(T=-T),b.x+=T}return b},i}var g2t,y2t,x2t,_z=x(()=>{"use strict";re();oe();ce();le();Ee();g2t=a((e,t,r,n,i,s)=>`M${e},${t}
+ a${i},${s} 0,0,1 0,${-n}
+ l${r},0
+ a${i},${s} 0,0,1 0,${n}
+ M${r},${-n}
+ a${i},${s} 0,0,0 0,${n}
+ l${-r},0`,"createCylinderPathD"),y2t=a((e,t,r,n,i,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${s} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${s} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),x2t=a((e,t,r,n,i,s)=>[`M${e+r/2},${-n/2}`,`a${i},${s} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");a(Sz,"tiltedCylinder")});async function Cz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=s.width+t.padding,l=s.height+t.padding,u=[{x:-3*l/6,y:0},{x:o+3*l/6,y:0},{x:o,y:-l},{x:0,y:-l}],h,{cssStyles:f}=t;if(t.look==="handDrawn"){let d=_t.svg(i),p=Et(t,{}),m=fe(u),g=d.path(m,p);h=i.insert(()=>g,":first-child").attr("transform",`translate(${-o/2}, ${l/2})`),f&&h.attr("style",f)}else h=di(i,o,l,u);return n&&h.attr("style",n),t.width=o,t.height=l,Ct(t,h),t.intersect=function(d){return St.polygon(t,u,d)},i}var wz=x(()=>{"use strict";re();le();oe();ce();pl();a(Cz,"trapezoid")});async function Ez(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=60,l=20,u=Math.max(o,s.width+(t.padding??0)*2,t?.width??0),h=Math.max(l,s.height+(t.padding??0)*2,t?.height??0),{cssStyles:f}=t,d=_t.svg(i),p=Et(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let m=[{x:-u/2*.8,y:-h/2},{x:u/2*.8,y:-h/2},{x:u/2,y:-h/2*.6},{x:u/2,y:h/2},{x:-u/2,y:h/2},{x:-u/2,y:-h/2*.6}],g=fe(m),y=d.path(g,p),b=i.insert(()=>y,":first-child");return b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",f),n&&t.look!=="handDrawn"&&b.selectChildren("path").attr("style",n),Ct(t,b),t.intersect=function(k){return St.polygon(t,m,k)},i}var vz=x(()=>{"use strict";re();le();oe();ce();a(Ez,"trapezoidalPentagon")});async function Az(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Ne(Y().flowchart?.htmlLabels),u=s.width+(t.padding??0),h=u+s.height,f=u+s.height,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-h}],{cssStyles:p}=t,m=_t.svg(i),g=Et(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=fe(d),b=m.path(y,g),k=i.insert(()=>b,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return p&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",p),n&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",n),t.width=u,t.height=h,Ct(t,k),o.attr("transform",`translate(${-s.width/2-(s.x-(s.left??0))}, ${h/2-(s.height+(t.padding??0)/(l?2:1)-(s.y-(s.top??0)))})`),t.intersect=function(T){return P.info("Triangle intersect",t,d,T),St.polygon(t,d,T)},i}var Lz=x(()=>{"use strict";zt();re();le();oe();ce();re();Fe();pe();a(Az,"triangle")});async function Rz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=u/8,f=u+h,{cssStyles:d}=t,m=70-l,g=m>0?m/2:0,y=_t.svg(i),b=Et(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");let k=[{x:-l/2-g,y:f/2},...Js(-l/2-g,f/2,l/2+g,f/2,h,.8),{x:l/2+g,y:-f/2},{x:-l/2-g,y:-f/2}],T=fe(k),_=y.path(T,b),L=i.insert(()=>_,":first-child");return L.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",n),L.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-l/2+(t.padding??0)-(s.x-(s.left??0))},${-u/2+(t.padding??0)-h-(s.y-(s.top??0))})`),Ct(t,L),t.intersect=function(C){return St.polygon(t,k,C)},i}var Dz=x(()=>{"use strict";re();le();ce();oe();a(Rz,"waveEdgedRectangle")});async function Iz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s}=await Gt(e,t,Ft(t)),o=100,l=50,u=Math.max(s.width+(t.padding??0)*2,t?.width??0),h=Math.max(s.height+(t.padding??0)*2,t?.height??0),f=u/h,d=u,p=h;d>p*f?p=d/f:d=p*f,d=Math.max(d,o),p=Math.max(p,l);let m=Math.min(p*.2,p/4),g=p+m*2,{cssStyles:y}=t,b=_t.svg(i),k=Et(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");let T=[{x:-d/2,y:g/2},...Js(-d/2,g/2,d/2,g/2,m,1),{x:d/2,y:-g/2},...Js(d/2,-g/2,-d/2,-g/2,m,-1)],_=fe(T),L=b.path(_,k),C=i.insert(()=>L,":first-child");return C.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",y),n&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",n),Ct(t,C),t.intersect=function(D){return St.polygon(t,T,D)},i}var Nz=x(()=>{"use strict";re();le();oe();ce();a(Iz,"waveRectangle")});async function Mz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let{shapeSvg:i,bbox:s,label:o}=await Gt(e,t,Ft(t)),l=Math.max(s.width+(t.padding??0)*2,t?.width??0),u=Math.max(s.height+(t.padding??0)*2,t?.height??0),h=5,f=-l/2,d=-u/2,{cssStyles:p}=t,m=_t.svg(i),g=Et(t,{}),y=[{x:f-h,y:d-h},{x:f-h,y:d+u},{x:f+l,y:d+u},{x:f+l,y:d-h}],b=`M${f-h},${d-h} L${f+l},${d-h} L${f+l},${d+u} L${f-h},${d+u} L${f-h},${d-h}
+ M${f-h},${d} L${f+l},${d}
+ M${f},${d-h} L${f},${d+u}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let k=m.path(b,g),T=i.insert(()=>k,":first-child");return T.attr("transform",`translate(${h/2}, ${h/2})`),T.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",p),n&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",n),o.attr("transform",`translate(${-(s.width/2)+h/2-(s.x-(s.left??0))}, ${-(s.height/2)+h/2-(s.y-(s.top??0))})`),Ct(t,T),t.intersect=function(_){return St.polygon(t,y,_)},i}var Oz=x(()=>{"use strict";re();oe();ce();le();a(Mz,"windowPane")});async function j4(e,t){let r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){let{themeVariables:E}=Re(),{background:V}=E,G={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${V}`]};await j4(e,G)}let n=Re();t.useHtmlLabels=n.htmlLabels;let i=n.er?.diagramPadding??10,s=n.er?.entityPadding??6,{cssStyles:o}=t,{labelStyles:l}=At(t);if(r.attributes.length===0&&t.label){let E={rx:0,ry:0,labelPaddingX:i,labelPaddingY:i*1.5,classes:""};Hn(t.label,n)+E.labelPaddingX*20){let E=f.width+i*2-(m+g+y+b);m+=E/_,g+=E/_,y>0&&(y+=E/_),b>0&&(b+=E/_)}let C=m+g+y+b,D=_t.svg(h),$=Et(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let w=Math.max(L.width+i*2,t?.width||0,C),A=Math.max(L.height+(p[0]||d)+s,t?.height||0),F=-w/2,S=-A/2;h.selectAll("g:not(:first-child)").each((E,V,G)=>{let J=xt(G[V]),rt=J.attr("transform"),nt=0,ct=0;if(rt){let Lt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(rt);Lt&&(nt=parseFloat(Lt[1]),ct=parseFloat(Lt[2]),J.attr("class").includes("attribute-name")?nt+=m:J.attr("class").includes("attribute-keys")?nt+=m+g:J.attr("class").includes("attribute-comment")&&(nt+=m+g+y))}J.attr("transform",`translate(${F+i/2+nt}, ${ct+S+f.height+s/2})`)}),h.select(".name").attr("transform","translate("+-f.width/2+", "+(S+s/2)+")");let v=D.rectangle(F,S,w,A,$),R=h.insert(()=>v,":first-child").attr("style",o.join("")),{themeVariables:B}=Re(),{rowEven:I,rowOdd:M,nodeBorder:O}=B;p.push(0);for(let[E,V]of p.entries()){if(E===0&&p.length>1)continue;let G=E%2===0&&V!==0,J=D.rectangle(F,f.height+S+V,w,f.height,{...$,fill:G?I:M,stroke:O});h.insert(()=>J,"g.label").attr("style",o.join("")).attr("class",`row-rect-${E%2===0?"even":"odd"}`)}let N=D.line(F,f.height+S,w+F,f.height+S,$);h.insert(()=>N).attr("class","divider"),N=D.line(m+F,f.height+S,m+F,A+S,$),h.insert(()=>N).attr("class","divider"),k&&(N=D.line(m+g+F,f.height+S,m+g+F,A+S,$),h.insert(()=>N).attr("class","divider")),T&&(N=D.line(m+g+y+F,f.height+S,m+g+y+F,A+S,$),h.insert(()=>N).attr("class","divider"));for(let E of p)N=D.line(F,f.height+S+E,w+F,f.height+S+E,$),h.insert(()=>N).attr("class","divider");return Ct(t,R),t.intersect=function(E){return St.rect(t,E)},h}async function A0(e,t,r,n=0,i=0,s=[],o=""){let l=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",o);t!==eo(t)&&(t=eo(t),t=t.replaceAll("<","<").replaceAll(">",">"));let u=l.node().appendChild(await Xn(l,t,{width:Hn(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let f=u.children[0];for(f.textContent=f.textContent.replaceAll("<","<").replaceAll(">",">");f.childNodes[0];)f=f.childNodes[0],f.textContent=f.textContent.replaceAll("<","<").replaceAll(">",">")}let h=u.getBBox();if(Ne(r.htmlLabels)){let f=u.children[0];f.style.textAlign="start";let d=xt(u);h=f.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}return h}var Pz=x(()=>{"use strict";re();le();oe();ce();ad();$n();$a();Fe();$e();Ee();a(j4,"erBox");a(A0,"addText")});async function Bz(e,t,r,n,i=r.class.padding??12){let s=n?0:3,o=e.insert("g").attr("class",Ft(t)).attr("id",t.domId||t.id),l=null,u=null,h=null,f=null,d=0,p=0,m=0;if(l=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let T=t.annotations[0];await Rb(l,{text:`\xAB${T}\xBB`},0),d=l.node().getBBox().height}u=o.insert("g").attr("class","label-group text"),await Rb(u,t,0,["font-weight: bolder"]);let g=u.node().getBBox();p=g.height,h=o.insert("g").attr("class","members-group text");let y=0;for(let T of t.members){let _=await Rb(h,T,y,[T.parseClassifier()]);y+=_+s}m=h.node().getBBox().height,m<=0&&(m=i/2),f=o.insert("g").attr("class","methods-group text");let b=0;for(let T of t.methods){let _=await Rb(f,T,b,[T.parseClassifier()]);b+=_+s}let k=o.node().getBBox();if(l!==null){let T=l.node().getBBox();l.attr("transform",`translate(${-T.width/2})`)}return u.attr("transform",`translate(${-g.width/2}, ${d})`),k=o.node().getBBox(),h.attr("transform",`translate(0, ${d+p+i*2})`),k=o.node().getBBox(),f.attr("transform",`translate(0, ${d+p+(m?m+i*4:i*2)})`),k=o.node().getBBox(),{shapeSvg:o,bbox:k}}async function Rb(e,t,r,n=[]){let i=e.insert("g").attr("class","label").attr("style",n.join("; ")),s=Re(),o="useHtmlLabels"in t?t.useHtmlLabels:Ne(s.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!o&&l.startsWith("\\")&&(l=l.substring(1)),Tn(l)&&(o=!0);let u=await Xn(i,rg(Yn(l)),{width:Hn(l,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s),h,f=1;if(o){let d=u.children[0],p=xt(u);f=d.innerHTML.split("
").length,d.innerHTML.includes("")&&(f+=d.innerHTML.split("").length-1);let m=d.getElementsByTagName("img");if(m){let g=l.replace(/
]*>/g,"").trim()==="";await Promise.all([...m].map(y=>new Promise(b=>{function k(){if(y.style.display="flex",y.style.flexDirection="column",g){let T=s.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,L=parseInt(T,10)*5+"px";y.style.minWidth=L,y.style.maxWidth=L}else y.style.width="100%";b(y)}a(k,"setupImage"),setTimeout(()=>{y.complete&&k()}),y.addEventListener("error",k),y.addEventListener("load",k)})))}h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}else{n.includes("font-weight: bolder")&&xt(u).selectAll("tspan").attr("font-weight",""),f=u.children.length;let d=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(d.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(d.textContent=d.textContent[0]+" "+d.textContent.substring(1))),d.textContent==="undefined"&&(d.textContent=""),h=u.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*f)+r)+")"),h.height}var Fz=x(()=>{"use strict";$e();$n();re();Ee();pe();$a();Fe();a(Bz,"textHelper");a(Rb,"addText")});async function $z(e,t){let r=Y(),n=r.class.padding??12,i=n,s=t.useHtmlLabels??Ne(r.htmlLabels)??!0,o=t;o.annotations=o.annotations??[],o.members=o.members??[],o.methods=o.methods??[];let{shapeSvg:l,bbox:u}=await Bz(e,t,r,s,i),{labelStyles:h,nodeStyles:f}=At(t);t.labelStyle=h,t.cssStyles=o.styles||"";let d=o.styles?.join(";")||f||"";t.cssStyles||(t.cssStyles=d.replaceAll("!important","").split(";"));let p=o.members.length===0&&o.methods.length===0&&!r.class?.hideEmptyMembersBox,m=_t.svg(l),g=Et(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=u.width,b=u.height;o.members.length===0&&o.methods.length===0?b+=i:o.members.length>0&&o.methods.length===0&&(b+=i*2);let k=-y/2,T=-b/2,_=m.rectangle(k-n,T-n-(p?n:o.members.length===0&&o.methods.length===0?-n/2:0),y+2*n,b+2*n+(p?n*2:o.members.length===0&&o.methods.length===0?-n:0),g),L=l.insert(()=>_,":first-child");L.attr("class","basic label-container");let C=L.node().getBBox();l.selectAll(".text").each((A,F,S)=>{let v=xt(S[F]),R=v.attr("transform"),B=0;if(R){let N=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);N&&(B=parseFloat(N[2]))}let I=B+T+n-(p?n:o.members.length===0&&o.methods.length===0?-n/2:0);s||(I-=4);let M=k;(v.attr("class").includes("label-group")||v.attr("class").includes("annotation-group"))&&(M=-v.node()?.getBBox().width/2||0,l.selectAll("text").each(function(O,N,E){window.getComputedStyle(E[N]).textAnchor==="middle"&&(M=0)})),v.attr("transform",`translate(${M}, ${I})`)});let D=l.select(".annotation-group").node().getBBox().height-(p?n/2:0)||0,$=l.select(".label-group").node().getBBox().height-(p?n/2:0)||0,w=l.select(".members-group").node().getBBox().height-(p?n/2:0)||0;if(o.members.length>0||o.methods.length>0||p){let A=m.line(C.x,D+$+T+n,C.x+C.width,D+$+T+n,g);l.insert(()=>A).attr("class","divider").attr("style",d)}if(p||o.members.length>0||o.methods.length>0){let A=m.line(C.x,D+$+w+T+i*2+n,C.x+C.width,D+$+w+T+n+i*2,g);l.insert(()=>A).attr("class","divider").attr("style",d)}if(o.look!=="handDrawn"&&l.selectAll("path").attr("style",d),L.select(":nth-child(2)").attr("style",d),l.selectAll(".divider").select("path").attr("style",d),t.labelStyle?l.selectAll("span").attr("style",t.labelStyle):l.selectAll("span").attr("style",d),!s){let A=RegExp(/color\s*:\s*([^;]*)/),F=A.exec(d);if(F){let S=F[0].replace("color","fill");l.selectAll("tspan").attr("style",S)}else if(h){let S=A.exec(h);if(S){let v=S[0].replace("color","fill");l.selectAll("tspan").attr("style",v)}}}return Ct(t,L),t.intersect=function(A){return St.rect(t,A)},l}var Gz=x(()=>{"use strict";re();pe();$e();ce();oe();le();Fz();Fe();a($z,"classBox")});async function Vz(e,t){let{labelStyles:r,nodeStyles:n}=At(t);t.labelStyle=r;let i=t,s=t,o=20,l=20,u="verifyMethod"in t,h=Ft(t),f=e.insert("g").attr("class",h).attr("id",t.domId??t.id),d;u?d=await gl(f,`<<${i.type}>>`,0,t.labelStyle):d=await gl(f,"<<Element>>",0,t.labelStyle);let p=d,m=await gl(f,i.name,p,t.labelStyle+"; font-weight: bold;");if(p+=m+l,u){let D=await gl(f,`${i.requirementId?`id: ${i.requirementId}`:""}`,p,t.labelStyle);p+=D;let $=await gl(f,`${i.text?`Text: ${i.text}`:""}`,p,t.labelStyle);p+=$;let w=await gl(f,`${i.risk?`Risk: ${i.risk}`:""}`,p,t.labelStyle);p+=w,await gl(f,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,p,t.labelStyle)}else{let D=await gl(f,`${s.type?`Type: ${s.type}`:""}`,p,t.labelStyle);p+=D,await gl(f,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,p,t.labelStyle)}let g=(f.node()?.getBBox().width??200)+o,y=(f.node()?.getBBox().height??200)+o,b=-g/2,k=-y/2,T=_t.svg(f),_=Et(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");let L=T.rectangle(b,k,g,y,_),C=f.insert(()=>L,":first-child");if(C.attr("class","basic label-container").attr("style",n),f.selectAll(".label").each((D,$,w)=>{let A=xt(w[$]),F=A.attr("transform"),S=0,v=0;if(F){let M=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(F);M&&(S=parseFloat(M[1]),v=parseFloat(M[2]))}let R=v-y/2,B=b+o/2;($===0||$===1)&&(B=S),A.attr("transform",`translate(${B}, ${R+o})`)}),p>d+m+l){let D=T.line(b,k+d+m+l,b+g,k+d+m+l,_);f.insert(()=>D).attr("style",n)}return Ct(t,C),t.intersect=function(D){return St.rect(t,D)},f}async function gl(e,t,r,n=""){if(t==="")return 0;let i=e.insert("g").attr("class","label").attr("style",n),s=Y(),o=s.htmlLabels??!0,l=await Xn(i,rg(Yn(t)),{width:Hn(t,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:n},s),u;if(o){let h=l.children[0],f=xt(l);u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{let h=l.children[0];for(let f of h.children)f.textContent=f.textContent.replaceAll(">",">").replaceAll("<","<"),n&&f.setAttribute("style",n);u=l.getBBox(),u.height+=6}return i.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}var zz=x(()=>{"use strict";re();le();oe();ce();Ee();pe();$a();$e();a(Vz,"requirementBox");a(gl,"addText")});async function Wz(e,t,{config:r}){let{labelStyles:n,nodeStyles:i}=At(t);t.labelStyle=n||"";let s=10,o=t.width;t.width=(t.width??200)-10;let{shapeSvg:l,bbox:u,label:h}=await Gt(e,t,Ft(t)),f=t.padding||10,d="",p;"ticket"in t&&t.ticket&&r?.kanban?.ticketBaseUrl&&(d=r?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),p=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",d).attr("target","_blank"));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},g,y;p?{label:g,bbox:y}=await yb(p,"ticket"in t&&t.ticket||"",m):{label:g,bbox:y}=await yb(l,"ticket"in t&&t.ticket||"",m);let{label:b,bbox:k}=await yb(l,"assigned"in t&&t.assigned||"",m);t.width=o;let T=10,_=t?.width||0,L=Math.max(y.height,k.height)/2,C=Math.max(u.height+T*2,t?.height||0)+L,D=-_/2,$=-C/2;h.attr("transform","translate("+(f-_/2)+", "+(-L-u.height/2)+")"),g.attr("transform","translate("+(f-_/2)+", "+(-L+u.height/2)+")"),b.attr("transform","translate("+(f+_/2-k.width-2*s)+", "+(-L+u.height/2)+")");let w,{rx:A,ry:F}=t,{cssStyles:S}=t;if(t.look==="handDrawn"){let v=_t.svg(l),R=Et(t,{}),B=A||F?v.path(mi(D,$,_,C,A||0),R):v.rectangle(D,$,_,C,R);w=l.insert(()=>B,":first-child"),w.attr("class","basic label-container").attr("style",S||null)}else{w=l.insert("rect",":first-child"),w.attr("class","basic label-container __APA__").attr("style",i).attr("rx",A??5).attr("ry",F??5).attr("x",D).attr("y",$).attr("width",_).attr("height",C);let v="priority"in t&&t.priority;if(v){let R=l.append("line"),B=D+2,I=$+Math.floor((A??0)/2),M=$+C-Math.floor((A??0)/2);R.attr("x1",B).attr("y1",I).attr("x2",B).attr("y2",M).attr("stroke-width","4").attr("stroke",b2t(v))}}return Ct(t,w),t.height=C,t.intersect=function(v){return St.rect(t,v)},l}var b2t,Uz=x(()=>{"use strict";re();le();_c();oe();ce();b2t=a(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");a(Wz,"kanbanItem")});function jz(e){return e in q4}var k2t,T2t,q4,H4=x(()=>{"use strict";IG();OG();BG();$G();VG();WG();jG();HG();XG();QG();JG();eV();nV();sV();oV();cV();hV();dV();mV();yV();bV();TV();_V();wV();vV();LV();DV();NV();OV();BV();$V();VV();WV();jV();HV();XV();QV();JV();ez();nz();sz();oz();cz();hz();dz();mz();yz();bz();Tz();_z();wz();vz();Lz();Dz();Nz();Oz();Pz();Gz();zz();Uz();k2t=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:iz},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:ZV},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:az},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:pz},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:ZG},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:GG},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:qV},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:fV},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:IV},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:RV},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Cz},{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:EV},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:rV},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:kz},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:PG},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:tz},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:fz},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:uz},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:lV},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:pV},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:UG},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:qG},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:YG},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:MV},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Rz},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:uV},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Sz},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:PV},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:KG},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:tV},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Az},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Mz},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:iV},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Ez},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:aV},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:rz},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:zV},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:GV},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:MG},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:zG},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:xz},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:gz},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Iz},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:YV},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:FV}],T2t=a(()=>{let t=[...Object.entries({state:lz,choice:FG,note:UV,rectWithTitle:KV,labelRect:AV,iconSquare:SV,iconCircle:xV,icon:gV,iconRounded:kV,imageSquare:CV,anchor:DG,kanbanItem:Wz,classBox:$z,erBox:j4,requirementBox:Vz}),...k2t.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),q4=T2t();a(jz,"isValidShape")});var S2t,Db,qz=x(()=>{"use strict";$e();fb();pe();zt();H4();Ee();Fe();Sn();S2t="flowchart-",Db=class{constructor(){this.vertexCounter=0;this.config=Y();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=rr;this.setAccDescription=sr;this.setDiagramTitle=xr;this.getAccTitle=ir;this.getAccDescription=ar;this.getDiagramTitle=or;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{a(this,"FlowDB")}sanitizeText(t){return Rt.sanitizeText(t,this.config)}lookUpDomId(t){for(let r of this.vertices.values())if(r.id===t)return r.domId;return t}addVertex(t,r,n,i,s,o,l={},u){if(!t||t.trim().length===0)return;let h;if(u!==void 0){let m;u.includes(`
+`)?m=u+`
+`:m=`{
+`+u+`
+}`,h=td(m,{schema:Jf})}let f=this.edges.find(m=>m.id===t);if(f){let m=h;m?.animate!==void 0&&(f.animate=m.animate),m?.animation!==void 0&&(f.animation=m.animation);return}let d,p=this.vertices.get(t);if(p===void 0&&(p={id:t,labelType:"text",domId:S2t+t+"-"+this.vertexCounter,styles:[],classes:[]},this.vertices.set(t,p)),this.vertexCounter++,r!==void 0?(this.config=Y(),d=this.sanitizeText(r.text.trim()),p.labelType=r.type,d.startsWith('"')&&d.endsWith('"')&&(d=d.substring(1,d.length-1)),p.text=d):p.text===void 0&&(p.text=t),n!==void 0&&(p.type=n),i?.forEach(m=>{p.styles.push(m)}),s?.forEach(m=>{p.classes.push(m)}),o!==void 0&&(p.dir=o),p.props===void 0?p.props=l:l!==void 0&&Object.assign(p.props,l),h!==void 0){if(h.shape){if(h.shape!==h.shape.toLowerCase()||h.shape.includes("_"))throw new Error(`No such shape: ${h.shape}. Shape names should be lowercase.`);if(!jz(h.shape))throw new Error(`No such shape: ${h.shape}.`);p.type=h?.shape}h?.label&&(p.text=h?.label),h?.icon&&(p.icon=h?.icon,!h.label?.trim()&&p.text===t&&(p.text="")),h?.form&&(p.form=h?.form),h?.pos&&(p.pos=h?.pos),h?.img&&(p.img=h?.img,!h.label?.trim()&&p.text===t&&(p.text="")),h?.constraint&&(p.constraint=h.constraint),h.w&&(p.assetWidth=Number(h.w)),h.h&&(p.assetHeight=Number(h.h))}}addSingleLink(t,r,n,i){let l={start:t,end:r,type:void 0,text:"",labelType:"text",classes:[],isUserDefinedId:!1,interpolate:this.edges.defaultInterpolate};P.info("abc78 Got edge...",l);let u=n.text;if(u!==void 0&&(l.text=this.sanitizeText(u.text.trim()),l.text.startsWith('"')&&l.text.endsWith('"')&&(l.text=l.text.substring(1,l.text.length-1)),l.labelType=u.type),n!==void 0&&(l.type=n.type,l.stroke=n.stroke,l.length=n.length>10?10:n.length),i&&!this.edges.some(h=>h.id===i))l.id=i,l.isUserDefinedId=!0;else{let h=this.edges.filter(f=>f.start===l.start&&f.end===l.end);h.length===0?l.id=gc(l.start,l.end,{counter:0,prefix:"L"}):l.id=gc(l.start,l.end,{counter:h.length+1,prefix:"L"})}if(this.edges.length<(this.config.maxEdges??500))P.info("Pushing edge..."),this.edges.push(l);else throw new 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(t){return t!==null&&typeof t=="object"&&"id"in t&&typeof t.id=="string"}addLink(t,r,n){let i=this.isLinkData(n)?n.id.replace("@",""):void 0;P.info("addLink",t,r,i);for(let s of t)for(let o of r){let l=s===t[t.length-1],u=o===r[0];l&&u?this.addSingleLink(s,o,n,i):this.addSingleLink(s,o,n,void 0)}}updateLinkInterpolate(t,r){t.forEach(n=>{n==="default"?this.edges.defaultInterpolate=r:this.edges[n].interpolate=r})}updateLink(t,r){t.forEach(n=>{if(typeof n=="number"&&n>=this.edges.length)throw new Error(`The index ${n} 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.)`);n==="default"?this.edges.defaultStyle=r:(this.edges[n].style=r,(this.edges[n]?.style?.length??0)>0&&!this.edges[n]?.style?.some(i=>i?.startsWith("fill"))&&this.edges[n]?.style?.push("fill:none"))})}addClass(t,r){let n=r.join().replace(/\\,/g,"\xA7\xA7\xA7").replace(/,/g,";").replace(/§§§/g,",").split(";");t.split(",").forEach(i=>{let s=this.classes.get(i);s===void 0&&(s={id:i,styles:[],textStyles:[]},this.classes.set(i,s)),n?.forEach(o=>{if(/color/.exec(o)){let l=o.replace("fill","bgFill");s.textStyles.push(l)}s.styles.push(o)})})}setDirection(t){this.direction=t,/.*/.exec(this.direction)&&(this.direction="LR"),/.*v/.exec(this.direction)&&(this.direction="TB"),this.direction==="TD"&&(this.direction="TB")}setClass(t,r){for(let n of t.split(",")){let i=this.vertices.get(n);i&&i.classes.push(r);let s=this.edges.find(l=>l.id===n);s&&s.classes.push(r);let o=this.subGraphLookup.get(n);o&&o.classes.push(r)}}setTooltip(t,r){if(r!==void 0){r=this.sanitizeText(r);for(let n of t.split(","))this.tooltips.set(this.version==="gen-1"?this.lookUpDomId(n):n,r)}}setClickFun(t,r,n){let i=this.lookUpDomId(t);if(Y().securityLevel!=="loose"||r===void 0)return;let s=[];if(typeof n=="string"){s=n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let l=0;l{let l=document.querySelector(`[id="${i}"]`);l!==null&&l.addEventListener("click",()=>{se.runFunc(r,...s)},!1)}))}setLink(t,r,n){t.split(",").forEach(i=>{let s=this.vertices.get(i);s!==void 0&&(s.link=se.formatUrl(r,this.config),s.linkTarget=n)}),this.setClass(t,"clickable")}getTooltip(t){return this.tooltips.get(t)}setClickEvent(t,r,n){t.split(",").forEach(i=>{this.setClickFun(i,r,n)}),this.setClass(t,"clickable")}bindFunctions(t){this.funs.forEach(r=>{r(t)})}getDirection(){return this.direction?.trim()}getVertices(){return this.vertices}getEdges(){return this.edges}getClasses(){return this.classes}setupToolTips(t){let r=xt(".mermaidTooltip");(r._groups||r)[0][0]===null&&(r=xt("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),xt(t).select("svg").selectAll("g.node").on("mouseover",s=>{let o=xt(s.currentTarget);if(o.attr("title")===null)return;let u=s.currentTarget?.getBoundingClientRect();r.transition().duration(200).style("opacity",".9"),r.text(o.attr("title")).style("left",window.scrollX+u.left+(u.right-u.left)/2+"px").style("top",window.scrollY+u.bottom+"px"),r.html(r.html().replace(/<br\/>/g,"
")),o.classed("hover",!0)}).on("mouseout",s=>{r.transition().duration(500).style("opacity",0),xt(s.currentTarget).classed("hover",!1)})}clear(t="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.subCount=0,this.tooltips=new Map,this.firstGraphFlag=!0,this.version=t,this.config=Y(),Ye()}setGen(t){this.version=t||"gen-2"}defaultStyle(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"}addSubGraph(t,r,n){let i=t.text.trim(),s=n.text;t===n&&/\s/.exec(n.text)&&(i=void 0);let o=a(f=>{let d={boolean:{},number:{},string:{}},p=[],m;return{nodeList:f.filter(function(y){let b=typeof y;return y.stmt&&y.stmt==="dir"?(m=y.value,!1):y.trim()===""?!1:b in d?d[b].hasOwnProperty(y)?!1:d[b][y]=!0:p.includes(y)?!1:p.push(y)}),dir:m}},"uniq"),{nodeList:l,dir:u}=o(r.flat());if(this.version==="gen-1")for(let f=0;f2e3)return{result:!1,count:0};if(this.posCrossRef[this.secCount]=r,this.subGraphs[r].id===t)return{result:!0,count:0};let i=0,s=1;for(;i=0){let l=this.indexNodes2(t,o);if(l.result)return{result:!0,count:s+l.count};s=s+l.count}i=i+1}return{result:!1,count:s}}getDepthFirstPos(t){return this.posCrossRef[t]}indexNodes(){this.secCount=-1,this.subGraphs.length>0&&this.indexNodes2("none",this.subGraphs.length-1)}getSubGraphs(){return this.subGraphs}firstGraph(){return this.firstGraphFlag?(this.firstGraphFlag=!1,!0):!1}destructStartLink(t){let r=t.trim(),n="arrow_open";switch(r[0]){case"<":n="arrow_point",r=r.slice(1);break;case"x":n="arrow_cross",r=r.slice(1);break;case"o":n="arrow_circle",r=r.slice(1);break}let i="normal";return r.includes("=")&&(i="thick"),r.includes(".")&&(i="dotted"),{type:n,stroke:i}}countChar(t,r){let n=r.length,i=0;for(let s=0;s":i="arrow_point",r.startsWith("<")&&(i="double_"+i,n=n.slice(1));break;case"o":i="arrow_circle",r.startsWith("o")&&(i="double_"+i,n=n.slice(1));break}let s="normal",o=n.length-1;n.startsWith("=")&&(s="thick"),n.startsWith("~")&&(s="invisible");let l=this.countChar(".",n);return l&&(s="dotted",o=l),{type:i,stroke:s,length:o}}destructLink(t,r){let n=this.destructEndLink(t),i;if(r){if(i=this.destructStartLink(r),i.stroke!==n.stroke)return{type:"INVALID",stroke:"INVALID"};if(i.type==="arrow_open")i.type=n.type;else{if(i.type!==n.type)return{type:"INVALID",stroke:"INVALID"};i.type="double_"+i.type}return i.type==="double_arrow"&&(i.type="double_arrow_point"),i.length=n.length,i}return n}exists(t,r){for(let n of t)if(n.nodes.includes(r))return!0;return!1}makeUniq(t,r){let n=[];return t.nodes.forEach((i,s)=>{this.exists(r,i)||n.push(t.nodes[s])}),{nodes:n}}getTypeFromVertex(t){if(t.img)return"imageSquare";if(t.icon)return t.form==="circle"?"iconCircle":t.form==="square"?"iconSquare":t.form==="rounded"?"iconRounded":"icon";switch(t.type){case"square":case void 0:return"squareRect";case"round":return"roundedRect";case"ellipse":return"ellipse";default:return t.type}}findNode(t,r){return t.find(n=>n.id===r)}destructEdgeType(t){let r="none",n="arrow_point";switch(t){case"arrow_point":case"arrow_circle":case"arrow_cross":n=t;break;case"double_arrow_point":case"double_arrow_circle":case"double_arrow_cross":r=t.replace("double_",""),n=r;break}return{arrowTypeStart:r,arrowTypeEnd:n}}addNodeFromVertex(t,r,n,i,s,o){let l=n.get(t.id),u=i.get(t.id)??!1,h=this.findNode(r,t.id);if(h)h.cssStyles=t.styles,h.cssCompiledStyles=this.getCompiledStyles(t.classes),h.cssClasses=t.classes.join(" ");else{let f={id:t.id,label:t.text,labelStyle:"",parentId:l,padding:s.flowchart?.padding||8,cssStyles:t.styles,cssCompiledStyles:this.getCompiledStyles(["default","node",...t.classes]),cssClasses:"default "+t.classes.join(" "),dir:t.dir,domId:t.domId,look:o,link:t.link,linkTarget:t.linkTarget,tooltip:this.getTooltip(t.id),icon:t.icon,pos:t.pos,img:t.img,assetWidth:t.assetWidth,assetHeight:t.assetHeight,constraint:t.constraint};u?r.push({...f,isGroup:!0,shape:"rect"}):r.push({...f,isGroup:!1,shape:this.getTypeFromVertex(t)})}}getCompiledStyles(t){let r=[];for(let n of t){let i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(s=>s.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(s=>s.trim()))}return r}getData(){let t=Y(),r=[],n=[],i=this.getSubGraphs(),s=new Map,o=new Map;for(let h=i.length-1;h>=0;h--){let f=i[h];f.nodes.length>0&&o.set(f.id,!0);for(let d of f.nodes)s.set(d,f.id)}for(let h=i.length-1;h>=0;h--){let f=i[h];r.push({id:f.id,label:f.title,labelStyle:"",parentId:s.get(f.id),padding:8,cssCompiledStyles:this.getCompiledStyles(f.classes),cssClasses:f.classes.join(" "),shape:"rect",dir:f.dir,isGroup:!0,look:t.look})}this.getVertices().forEach(h=>{this.addNodeFromVertex(h,r,s,o,t,t.look||"classic")});let u=this.getEdges();return u.forEach((h,f)=>{let{arrowTypeStart:d,arrowTypeEnd:p}=this.destructEdgeType(h.type),m=[...u.defaultStyle??[]];h.style&&m.push(...h.style);let g={id:gc(h.start,h.end,{counter:f,prefix:"L"},h.id),isUserDefinedId:h.isUserDefinedId,start:h.start,end:h.end,type:h.type??"normal",label:h.text,labelpos:"c",thickness:h.stroke,minlen:h.length,classes:h?.stroke==="invisible"?"":"edge-thickness-normal edge-pattern-solid flowchart-link",arrowTypeStart:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":d,arrowTypeEnd:h?.stroke==="invisible"||h?.type==="arrow_open"?"none":p,arrowheadStyle:"fill: #333",cssCompiledStyles:this.getCompiledStyles(h.classes),labelStyle:m,style:m,pattern:h.stroke,look:t.look,animate:h.animate,animation:h.animation,curve:h.interpolate||this.edges.defaultInterpolate||t.flowchart?.curve};n.push(g)}),{nodes:r,edges:n,other:{},config:t}}defaultConfig(){return mx.flowchart}}});var ko,od=x(()=>{"use strict";$e();ko=a((e,t)=>{let r;return t==="sandbox"&&(r=xt("#i"+e)),(t==="sandbox"?xt(r.nodes()[0].contentDocument.body):xt("body")).select(`[id="${e}"]`)},"getDiagramElement")});var yl,L0=x(()=>{"use strict";yl=a(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,r=e?.subGraphTitleMargin?.bottom??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins")});var Hz,_2t,C2t,w2t,E2t,v2t,A2t,Yz,ld,Xz,Ib=x(()=>{"use strict";pe();Fe();zt();L0();$e();ce();$a();E4();Lb();_c();oe();Hz=a(async(e,t)=>{P.info("Creating subgraph rect for ",t.id,t);let r=Y(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:s,clusterBorder:o}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:f}=At(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),p=Ne(r.flowchart.htmlLabels),m=d.insert("g").attr("class","cluster-label "),g=await Xn(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0}),y=g.getBBox();if(Ne(r.flowchart.htmlLabels)){let $=g.children[0],w=xt(g);y=$.getBoundingClientRect(),w.attr("width",y.width),w.attr("height",y.height)}let b=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let k=t.height,T=t.x-b/2,_=t.y-k/2;P.trace("Data ",t,JSON.stringify(t));let L;if(t.look==="handDrawn"){let $=_t.svg(d),w=Et(t,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:i}),A=$.path(mi(T,_,b,k,0),w);L=d.insert(()=>(P.debug("Rough node insert CXC",A),A),":first-child"),L.select("path:nth-child(2)").attr("style",h.join(";")),L.select("path").attr("style",f.join(";").replace("fill","stroke"))}else L=d.insert("rect",":first-child"),L.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",b).attr("height",k);let{subGraphTitleTopMargin:C}=yl(r);if(m.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+C})`),l){let $=m.select("span");$&&$.attr("style",l)}let D=L.node().getBBox();return t.offsetX=0,t.width=D.width,t.height=D.height,t.offsetY=y.height-t.padding/2,t.intersect=function($){return bc(t,$)},{cluster:d,labelBBox:y}},"rect"),_2t=a((e,t)=>{let r=e.insert("g").attr("class","note-cluster").attr("id",t.id),n=r.insert("rect",":first-child"),i=0*t.padding,s=i/2;n.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+i).attr("height",t.height+i).attr("fill","none");let o=n.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(l){return bc(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),C2t=a(async(e,t)=>{let r=Y(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:s,compositeBackground:o,compositeTitleBackground:l,nodeBorder:u}=n,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),f=h.insert("g",":first-child"),d=h.insert("g").attr("class","cluster-label"),p=h.append("rect"),m=d.node().appendChild(await bo(t.label,t.labelStyle,void 0,!0)),g=m.getBBox();if(Ne(r.flowchart.htmlLabels)){let A=m.children[0],F=xt(m);g=A.getBoundingClientRect(),F.attr("width",g.width),F.attr("height",g.height)}let y=0*t.padding,b=y/2,k=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+y;t.width<=g.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;let T=t.height+y,_=t.height+y-g.height-6,L=t.x-k/2,C=t.y-T/2;t.width=k;let D=t.y-t.height/2-b+g.height+2,$;if(t.look==="handDrawn"){let A=t.cssClasses.includes("statediagram-cluster-alt"),F=_t.svg(h),S=t.rx||t.ry?F.path(mi(L,C,k,T,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):F.rectangle(L,C,k,T,{seed:i});$=h.insert(()=>S,":first-child");let v=F.rectangle(L,D,k,_,{fill:A?s:o,fillStyle:A?"hachure":"solid",stroke:u,seed:i});$=h.insert(()=>S,":first-child"),p=h.insert(()=>v)}else $=f.insert("rect",":first-child"),$.attr("class","outer").attr("x",L).attr("y",C).attr("width",k).attr("height",T).attr("data-look",t.look),p.attr("class","inner").attr("x",L).attr("y",D).attr("width",k).attr("height",_);d.attr("transform",`translate(${t.x-g.width/2}, ${C+1-(Ne(r.flowchart.htmlLabels)?0:3)})`);let w=$.node().getBBox();return t.height=w.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(A){return bc(t,A)},{cluster:h,labelBBox:g}},"roundedWithTitle"),w2t=a(async(e,t)=>{P.info("Creating subgraph rect for ",t.id,t);let r=Y(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:s,clusterBorder:o}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:f}=At(t),d=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),p=Ne(r.flowchart.htmlLabels),m=d.insert("g").attr("class","cluster-label "),g=await Xn(m,t.label,{style:t.labelStyle,useHtmlLabels:p,isNode:!0,width:t.width}),y=g.getBBox();if(Ne(r.flowchart.htmlLabels)){let $=g.children[0],w=xt(g);y=$.getBoundingClientRect(),w.attr("width",y.width),w.attr("height",y.height)}let b=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(b-t.width)/2-t.padding:t.diff=-t.padding;let k=t.height,T=t.x-b/2,_=t.y-k/2;P.trace("Data ",t,JSON.stringify(t));let L;if(t.look==="handDrawn"){let $=_t.svg(d),w=Et(t,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:i}),A=$.path(mi(T,_,b,k,t.rx),w);L=d.insert(()=>(P.debug("Rough node insert CXC",A),A),":first-child"),L.select("path:nth-child(2)").attr("style",h.join(";")),L.select("path").attr("style",f.join(";").replace("fill","stroke"))}else L=d.insert("rect",":first-child"),L.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",T).attr("y",_).attr("width",b).attr("height",k);let{subGraphTitleTopMargin:C}=yl(r);if(m.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+C})`),l){let $=m.select("span");$&&$.attr("style",l)}let D=L.node().getBBox();return t.offsetX=0,t.width=D.width,t.height=D.height,t.offsetY=y.height-t.padding/2,t.intersect=function($){return bc(t,$)},{cluster:d,labelBBox:y}},"kanbanSection"),E2t=a((e,t)=>{let r=Y(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:s}=n,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),l=o.insert("g",":first-child"),u=0*t.padding,h=t.width+u;t.diff=-t.padding;let f=t.height+u,d=t.x-h/2,p=t.y-f/2;t.width=h;let m;if(t.look==="handDrawn"){let b=_t.svg(o).rectangle(d,p,h,f,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:i});m=o.insert(()=>b,":first-child")}else m=l.insert("rect",":first-child"),m.attr("class","divider").attr("x",d).attr("y",p).attr("width",h).attr("height",f).attr("data-look",t.look);let g=m.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return bc(t,y)},{cluster:o,labelBBox:{}}},"divider"),v2t=Hz,A2t={rect:Hz,squareRect:v2t,roundedWithTitle:C2t,noteGroup:_2t,divider:E2t,kanbanSection:w2t},Yz=new Map,ld=a(async(e,t)=>{let r=t.shape||"rect",n=await A2t[r](e,t);return Yz.set(t.id,n),n},"insertCluster"),Xz=a(()=>{Yz=new Map},"clear")});function Nb(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Xr(e),t=Xr(t);let[r,n]=[e.x,e.y],[i,s]=[t.x,t.y],o=i-r,l=s-n;return{angle:Math.atan(l/o),deltaX:o,deltaY:l}}var ta,Xr,Mb,Y4=x(()=>{"use strict";ta={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};a(Nb,"calculateDeltaAndAngle");Xr=a(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),Mb=a(e=>({x:a(function(t,r,n){let i=0,s=Xr(n[0]).x=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(ta,e.arrowTypeEnd)){let{angle:m,deltaX:g}=Nb(n[n.length-1],n[n.length-2]);i=ta[e.arrowTypeEnd]*Math.cos(m)*(g>=0?1:-1)}let o=Math.abs(Xr(t).x-Xr(n[n.length-1]).x),l=Math.abs(Xr(t).y-Xr(n[n.length-1]).y),u=Math.abs(Xr(t).x-Xr(n[0]).x),h=Math.abs(Xr(t).y-Xr(n[0]).y),f=ta[e.arrowTypeStart],d=ta[e.arrowTypeEnd],p=1;if(o0&&l0&&h=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(ta,e.arrowTypeEnd)){let{angle:m,deltaY:g}=Nb(n[n.length-1],n[n.length-2]);i=ta[e.arrowTypeEnd]*Math.abs(Math.sin(m))*(g>=0?1:-1)}let o=Math.abs(Xr(t).y-Xr(n[n.length-1]).y),l=Math.abs(Xr(t).x-Xr(n[n.length-1]).x),u=Math.abs(Xr(t).y-Xr(n[0]).y),h=Math.abs(Xr(t).x-Xr(n[0]).x),f=ta[e.arrowTypeStart],d=ta[e.arrowTypeEnd],p=1;if(o0&&l0&&h{"use strict";zt();Qz=a((e,t,r,n,i,s)=>{t.arrowTypeStart&&Kz(e,"start",t.arrowTypeStart,r,n,i,s),t.arrowTypeEnd&&Kz(e,"end",t.arrowTypeEnd,r,n,i,s)},"addEdgeMarkers"),L2t={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",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}},Kz=a((e,t,r,n,i,s,o)=>{let l=L2t[r];if(!l){P.warn(`Unknown arrow type: ${r}`);return}let u=l.type,f=`${i}_${s}-${u}${t==="start"?"Start":"End"}`;if(o&&o.trim()!==""){let d=o.replace(/[^\dA-Za-z]/g,"_"),p=`${f}_${d}`;if(!document.getElementById(p)){let m=document.getElementById(f);if(m){let g=m.cloneNode(!0);g.id=p,g.querySelectorAll("path, circle, line").forEach(b=>{b.setAttribute("stroke",o),l.fill&&b.setAttribute("fill",o)}),m.parentNode?.appendChild(g)}}e.attr(`marker-${t}`,`url(${n}#${p})`)}else e.attr(`marker-${t}`,`url(${n}#${f})`)},"addEdgeMarker")});function Ob(e,t){Y().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}function I2t(e){let t=[],r=[];for(let n=1;n5&&Math.abs(s.y-i.y)>5||i.y===s.y&&s.x===o.x&&Math.abs(s.x-i.x)>5&&Math.abs(s.y-o.y)>5)&&(t.push(s),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}var Pb,ri,eW,R0,Bb,Fb,R2t,D2t,Jz,tW,N2t,$b,X4=x(()=>{"use strict";pe();Fe();zt();$a();Ee();Y4();L0();$e();ce();Lb();Zz();oe();Pb=new Map,ri=new Map,eW=a(()=>{Pb.clear(),ri.clear()},"clear"),R0=a(e=>e?e.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),Bb=a(async(e,t)=>{let r=Ne(Y().flowchart.htmlLabels),n=await Xn(e,t.label,{style:R0(t.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});P.info("abc82",t,t.labelType);let i=e.insert("g").attr("class","edgeLabel"),s=i.insert("g").attr("class","label");s.node().appendChild(n);let o=n.getBBox();if(r){let u=n.children[0],h=xt(n);o=u.getBoundingClientRect(),h.attr("width",o.width),h.attr("height",o.height)}s.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),Pb.set(t.id,i),t.width=o.width,t.height=o.height;let l;if(t.startLabelLeft){let u=await bo(t.startLabelLeft,R0(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ri.get(t.id)||ri.set(t.id,{}),ri.get(t.id).startLeft=h,Ob(l,t.startLabelLeft)}if(t.startLabelRight){let u=await bo(t.startLabelRight,R0(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=h.node().appendChild(u),f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),ri.get(t.id)||ri.set(t.id,{}),ri.get(t.id).startRight=h,Ob(l,t.startLabelRight)}if(t.endLabelLeft){let u=await bo(t.endLabelLeft,R0(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ri.get(t.id)||ri.set(t.id,{}),ri.get(t.id).endLeft=h,Ob(l,t.endLabelLeft)}if(t.endLabelRight){let u=await bo(t.endLabelRight,R0(t.labelStyle)),h=e.insert("g").attr("class","edgeTerminals"),f=h.insert("g").attr("class","inner");l=f.node().appendChild(u);let d=u.getBBox();f.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),h.node().appendChild(u),ri.get(t.id)||ri.set(t.id,{}),ri.get(t.id).endRight=h,Ob(l,t.endLabelRight)}return n},"insertEdgeLabel");a(Ob,"setTerminalWidth");Fb=a((e,t)=>{P.debug("Moving label abc88 ",e.id,e.label,Pb.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath,n=Y(),{subGraphTitleTotalMargin:i}=yl(n);if(e.label){let s=Pb.get(e.id),o=e.x,l=e.y;if(r){let u=se.calcLabelPosition(r);P.debug("Moving label "+e.label+" from (",o,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(o=u.x,l=u.y)}s.attr("transform",`translate(${o}, ${l+i/2})`)}if(e.startLabelLeft){let s=ri.get(e.id).startLeft,o=e.x,l=e.y;if(r){let u=se.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.startLabelRight){let s=ri.get(e.id).startRight,o=e.x,l=e.y;if(r){let u=se.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelLeft){let s=ri.get(e.id).endLeft,o=e.x,l=e.y;if(r){let u=se.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}if(e.endLabelRight){let s=ri.get(e.id).endRight,o=e.x,l=e.y;if(r){let u=se.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=u.x,l=u.y}s.attr("transform",`translate(${o}, ${l})`)}},"positionEdgeLabel"),R2t=a((e,t)=>{let r=e.x,n=e.y,i=Math.abs(t.x-r),s=Math.abs(t.y-n),o=e.width/2,l=e.height/2;return i>=o||s>=l},"outsideNode"),D2t=a((e,t,r)=>{P.debug(`intersection calc abc89:
+ outsidePoint: ${JSON.stringify(t)}
+ insidePoint : ${JSON.stringify(r)}
+ node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);let n=e.x,i=e.y,s=Math.abs(n-r.x),o=e.width/2,l=r.xMath.abs(n-t.x)*u){let d=r.y{P.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(s=>{if(P.info("abc88 checking point",s,t),!R2t(t,s)&&!i){let o=D2t(t,n,s);P.debug("abc88 inside",s,n,o),P.debug("abc88 intersection",o,t);let l=!1;r.forEach(u=>{l=l||u.x===o.x&&u.y===o.y}),r.some(u=>u.x===o.x&&u.y===o.y)?P.warn("abc88 no intersect",o,r):r.push(o),i=!0}else P.warn("abc88 outside",s,n),n=s,i||r.push(s)}),P.debug("returning points",r),r},"cutPathAtIntersect");a(I2t,"extractCornerPoints");tW=a(function(e,t,r){let n=t.x-e.x,i=t.y-e.y,s=Math.sqrt(n*n+i*i),o=r/s;return{x:t.x-o*n,y:t.y-o*i}},"findAdjacentPoint"),N2t=a(function(e){let{cornerPointPositions:t}=I2t(e),r=[];for(let n=0;n10&&Math.abs(s.y-i.y)>=10){P.debug("Corner point fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));let m=5;o.x===l.x?p={x:h<0?l.x-m+d:l.x+m-d,y:f<0?l.y-d:l.y+d}:p={x:h<0?l.x-d:l.x+d,y:f<0?l.y-m+d:l.y+m-d}}else P.debug("Corner point skipping fixing",Math.abs(s.x-i.x),Math.abs(s.y-i.y));r.push(p,u)}else r.push(e[n]);return r},"fixCorners"),$b=a(function(e,t,r,n,i,s,o){let{handDrawnSeed:l}=Y(),u=t.points,h=!1,f=i;var d=s;let p=[];for(let A in t.cssCompiledStyles)v4(A)||p.push(t.cssCompiledStyles[A]);d.intersect&&f.intersect&&(u=u.slice(1,t.points.length-1),u.unshift(f.intersect(u[0])),P.debug("Last point APA12",t.start,"-->",t.end,u[u.length-1],d,d.intersect(u[u.length-1])),u.push(d.intersect(u[u.length-1]))),t.toCluster&&(P.info("to cluster abc88",r.get(t.toCluster)),u=Jz(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(P.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(u,null,2)),u=Jz(u.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let m=u.filter(A=>!Number.isNaN(A.y));m=N2t(m);let g=js;switch(g=ol,t.curve){case"linear":g=ol;break;case"basis":g=js;break;case"cardinal":g=Ug;break;case"bumpX":g=$g;break;case"bumpY":g=Gg;break;case"catmullRom":g=Hg;break;case"monotoneX":g=Yg;break;case"monotoneY":g=Xg;break;case"natural":g=Lf;break;case"step":g=Rf;break;case"stepAfter":g=Qg;break;case"stepBefore":g=Kg;break;default:g=js}let{x:y,y:b}=Mb(t),k=Da().x(y).y(b).curve(g),T;switch(t.thickness){case"normal":T="edge-thickness-normal";break;case"thick":T="edge-thickness-thick";break;case"invisible":T="edge-thickness-invisible";break;default:T="edge-thickness-normal"}switch(t.pattern){case"solid":T+=" edge-pattern-solid";break;case"dotted":T+=" edge-pattern-dotted";break;case"dashed":T+=" edge-pattern-dashed";break;default:T+=" edge-pattern-solid"}let _,L=k(m),C=Array.isArray(t.style)?t.style:t.style?[t.style]:[],D=C.find(A=>A?.startsWith("stroke:"));if(t.look==="handDrawn"){let A=_t.svg(e);Object.assign([],m);let F=A.path(L,{roughness:.3,seed:l});T+=" transition",_=xt(F).select("path").attr("id",t.id).attr("class"," "+T+(t.classes?" "+t.classes:"")).attr("style",C?C.reduce((v,R)=>v+";"+R,""):"");let S=_.attr("d");_.attr("d",S),e.node().appendChild(_.node())}else{let A=p.join(";"),F=C?C.reduce((R,B)=>R+B+";",""):"",S="";t.animate&&(S=" edge-animation-fast"),t.animation&&(S=" edge-animation-"+t.animation);let v=A?A+";"+F+";":F;_=e.append("path").attr("d",L).attr("id",t.id).attr("class"," "+T+(t.classes?" "+t.classes:"")+(S??"")).attr("style",v),D=v.match(/stroke:([^;]+)/)?.[1]}let $="";(Y().flowchart.arrowMarkerAbsolute||Y().state.arrowMarkerAbsolute)&&($=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,$=$.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),P.info("arrowTypeStart",t.arrowTypeStart),P.info("arrowTypeEnd",t.arrowTypeEnd),Qz(_,t,$,o,n,D);let w={};return h&&(w.updatedPath=u),w.originalPath=t.points,w},"insertEdge")});var M2t,O2t,P2t,B2t,F2t,$2t,G2t,V2t,z2t,W2t,U2t,j2t,q2t,H2t,Y2t,X2t,K2t,Gb,K4=x(()=>{"use strict";zt();M2t=a((e,t,r,n)=>{t.forEach(i=>{K2t[i](e,r,n)})},"insertMarkers"),O2t=a((e,t,r)=>{P.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),P2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),B2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),F2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).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")},"dependency"),$2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),G2t=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).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",r+"_"+t+"-pointStart").attr("class","marker "+t).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")},"point"),V2t=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).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",r+"_"+t+"-circleStart").attr("class","marker "+t).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")},"circle"),z2t=a((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).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",r+"_"+t+"-crossStart").attr("class","marker cross "+t).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")},"cross"),W2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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"),U2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).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",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).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"),j2t=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),q2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).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",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).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"),H2t=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Y2t=a((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-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"),X2t=a((e,t,r)=>{let n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),K2t={extension:O2t,composition:P2t,aggregation:B2t,dependency:F2t,lollipop:$2t,point:G2t,circle:V2t,cross:z2t,barb:W2t,only_one:U2t,zero_or_one:j2t,one_or_more:q2t,zero_or_more:H2t,requirement_arrow:Y2t,requirement_contains:X2t},Gb=M2t});async function cd(e,t,r){let n,i;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let s=t.shape?q4[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),i=await s(n,t,r)}else i=await s(e,t,r),n=i;return t.tooltip&&i.attr("title",t.tooltip),Vb.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}var Vb,rW,nW,D0,zb=x(()=>{"use strict";zt();H4();Vb=new Map;a(cd,"insertNode");rW=a((e,t)=>{Vb.set(t.id,e)},"setNodeElem"),nW=a(()=>{Vb.clear()},"clear"),D0=a(e=>{let t=Vb.get(e.id);P.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");let r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode")});var iW,sW=x(()=>{"use strict";$n();Fe();zt();Ib();X4();K4();zb();re();Ee();iW={common:Rt,getConfig:Re,insertCluster:ld,insertEdge:$b,insertEdgeLabel:Bb,insertMarkers:Gb,insertNode:cd,interpolateToCurve:Gv,labelHelper:Gt,log:P,positionEdgeLabel:Fb}});function Z2t(e){return typeof e=="symbol"||nn(e)&&ei(e)==Q2t}var Q2t,vs,Hu=x(()=>{"use strict";cl();Ys();Q2t="[object Symbol]";a(Z2t,"isSymbol");vs=Z2t});function J2t(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r{"use strict";a(J2t,"arrayMap");as=J2t});function lW(e){if(typeof e=="string")return e;if(Qt(e))return as(e,lW)+"";if(vs(e))return oW?oW.call(e):"";var t=e+"";return t=="0"&&1/e==-tbt?"-0":t}var tbt,aW,oW,cW,uW=x(()=>{"use strict";Ou();Yu();Yr();Hu();tbt=1/0,aW=jn?jn.prototype:void 0,oW=aW?aW.toString:void 0;a(lW,"baseToString");cW=lW});function rbt(e){for(var t=e.length;t--&&ebt.test(e.charAt(t)););return t}var ebt,hW,fW=x(()=>{"use strict";ebt=/\s/;a(rbt,"trimmedEndIndex");hW=rbt});function ibt(e){return e&&e.slice(0,hW(e)+1).replace(nbt,"")}var nbt,dW,pW=x(()=>{"use strict";fW();nbt=/^\s+/;a(ibt,"baseTrim");dW=ibt});function cbt(e){if(typeof e=="number")return e;if(vs(e))return mW;if(Ir(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ir(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dW(e);var r=abt.test(e);return r||obt.test(e)?lbt(e.slice(2),r?2:8):sbt.test(e)?mW:+e}var mW,sbt,abt,obt,lbt,gW,yW=x(()=>{"use strict";pW();Cs();Hu();mW=NaN,sbt=/^[-+]0x[0-9a-f]+$/i,abt=/^0b[01]+$/i,obt=/^0o[0-7]+$/i,lbt=parseInt;a(cbt,"toNumber");gW=cbt});function hbt(e){if(!e)return e===0?e:0;if(e=gW(e),e===xW||e===-xW){var t=e<0?-1:1;return t*ubt}return e===e?e:0}var xW,ubt,ud,Q4=x(()=>{"use strict";yW();xW=1/0,ubt=17976931348623157e292;a(hbt,"toFinite");ud=hbt});function fbt(e){var t=ud(e),r=t%1;return t===t?r?t-r:t:0}var To,hd=x(()=>{"use strict";Q4();a(fbt,"toInteger");To=fbt});var dbt,Wb,bW=x(()=>{"use strict";oc();qs();dbt=Ji(ln,"WeakMap"),Wb=dbt});function pbt(){}var sn,Z4=x(()=>{"use strict";a(pbt,"noop");sn=pbt});function mbt(e,t){for(var r=-1,n=e==null?0:e.length;++r{"use strict";a(mbt,"arrayEach");Ub=mbt});function gbt(e,t,r,n){for(var i=e.length,s=r+(n?1:-1);n?s--:++s{"use strict";a(gbt,"baseFindIndex");jb=gbt});function ybt(e){return e!==e}var kW,TW=x(()=>{"use strict";a(ybt,"baseIsNaN");kW=ybt});function xbt(e,t,r){for(var n=r-1,i=e.length;++n{"use strict";a(xbt,"strictIndexOf");SW=xbt});function bbt(e,t,r){return t===t?SW(e,t,r):jb(e,kW,r)}var fd,qb=x(()=>{"use strict";tA();TW();_W();a(bbt,"baseIndexOf");fd=bbt});function kbt(e,t){var r=e==null?0:e.length;return!!r&&fd(e,t,0)>-1}var Hb,eA=x(()=>{"use strict";qb();a(kbt,"arrayIncludes");Hb=kbt});var Tbt,CW,wW=x(()=>{"use strict";vv();Tbt=j2(Object.keys,Object),CW=Tbt});function Cbt(e){if(!ho(e))return CW(e);var t=[];for(var r in Object(e))_bt.call(e,r)&&r!="constructor"&&t.push(r);return t}var Sbt,_bt,dd,Yb=x(()=>{"use strict";Wf();wW();Sbt=Object.prototype,_bt=Sbt.hasOwnProperty;a(Cbt,"baseKeys");dd=Cbt});function wbt(e){return cn(e)?K2(e):dd(e)}var lr,So=x(()=>{"use strict";Iv();Yb();Xs();a(wbt,"keys");lr=wbt});var Ebt,vbt,Abt,ni,EW=x(()=>{"use strict";Hf();Gu();Pv();Xs();Wf();So();Ebt=Object.prototype,vbt=Ebt.hasOwnProperty,Abt=J2(function(e,t){if(ho(t)||cn(t)){Zs(t,lr(t),e);return}for(var r in t)vbt.call(t,r)&&fo(e,r,t[r])}),ni=Abt});function Dbt(e,t){if(Qt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||vs(e)?!0:Rbt.test(e)||!Lbt.test(e)||t!=null&&e in Object(t)}var Lbt,Rbt,pd,Xb=x(()=>{"use strict";Yr();Hu();Lbt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rbt=/^\w*$/;a(Dbt,"isKey");pd=Dbt});function Nbt(e){var t=Of(e,function(n){return r.size===Ibt&&r.clear(),n}),r=t.cache;return t}var Ibt,vW,AW=x(()=>{"use strict";kv();Ibt=500;a(Nbt,"memoizeCapped");vW=Nbt});var Mbt,Obt,Pbt,LW,RW=x(()=>{"use strict";AW();Mbt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Obt=/\\(\\)?/g,Pbt=vW(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Mbt,function(r,n,i,s){t.push(i?s.replace(Obt,"$1"):n||r)}),t}),LW=Pbt});function Bbt(e){return e==null?"":cW(e)}var Kb,rA=x(()=>{"use strict";uW();a(Bbt,"toString");Kb=Bbt});function Fbt(e,t){return Qt(e)?e:pd(e,t)?[e]:LW(Kb(e))}var Cc,I0=x(()=>{"use strict";Yr();Xb();RW();rA();a(Fbt,"castPath");Cc=Fbt});function Gbt(e){if(typeof e=="string"||vs(e))return e;var t=e+"";return t=="0"&&1/e==-$bt?"-0":t}var $bt,_o,md=x(()=>{"use strict";Hu();$bt=1/0;a(Gbt,"toKey");_o=Gbt});function Vbt(e,t){t=Cc(t,e);for(var r=0,n=t.length;e!=null&&r{"use strict";I0();md();a(Vbt,"baseGet");wc=Vbt});function zbt(e,t,r){var n=e==null?void 0:wc(e,t);return n===void 0?r:n}var DW,IW=x(()=>{"use strict";N0();a(zbt,"get");DW=zbt});function Wbt(e,t){for(var r=-1,n=t.length,i=e.length;++r{"use strict";a(Wbt,"arrayPush");gd=Wbt});function Ubt(e){return Qt(e)||Ma(e)||!!(NW&&e&&e[NW])}var NW,MW,OW=x(()=>{"use strict";Ou();Uf();Yr();NW=jn?jn.isConcatSpreadable:void 0;a(Ubt,"isFlattenable");MW=Ubt});function PW(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=MW),i||(i=[]);++s0&&r(l)?t>1?PW(l,t-1,r,n,i):gd(i,l):n||(i[i.length]=l)}return i}var Co,yd=x(()=>{"use strict";Qb();OW();a(PW,"baseFlatten");Co=PW});function jbt(e){var t=e==null?0:e.length;return t?Co(e,1):[]}var fr,Zb=x(()=>{"use strict";yd();a(jbt,"flatten");fr=jbt});function qbt(e){return Z2(Q2(e,void 0,fr),e+"")}var BW,FW=x(()=>{"use strict";Zb();Nv();Ov();a(qbt,"flatRest");BW=qbt});function Hbt(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n{"use strict";a(Hbt,"baseSlice");Jb=Hbt});function rkt(e){return ekt.test(e)}var Ybt,Xbt,Kbt,Qbt,Zbt,Jbt,tkt,ekt,$W,GW=x(()=>{"use strict";Ybt="\\ud800-\\udfff",Xbt="\\u0300-\\u036f",Kbt="\\ufe20-\\ufe2f",Qbt="\\u20d0-\\u20ff",Zbt=Xbt+Kbt+Qbt,Jbt="\\ufe0e\\ufe0f",tkt="\\u200d",ekt=RegExp("["+tkt+Ybt+Zbt+Jbt+"]");a(rkt,"hasUnicode");$W=rkt});function nkt(e,t,r,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(r=e[++i]);++i{"use strict";a(nkt,"arrayReduce");VW=nkt});function ikt(e,t){return e&&Zs(t,lr(t),e)}var WW,UW=x(()=>{"use strict";Gu();So();a(ikt,"baseAssign");WW=ikt});function skt(e,t){return e&&Zs(t,ts(t),e)}var jW,qW=x(()=>{"use strict";Gu();pc();a(skt,"baseAssignIn");jW=skt});function akt(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r{"use strict";a(akt,"arrayFilter");xd=akt});function okt(){return[]}var ek,iA=x(()=>{"use strict";a(okt,"stubArray");ek=okt});var lkt,ckt,HW,ukt,bd,rk=x(()=>{"use strict";tk();iA();lkt=Object.prototype,ckt=lkt.propertyIsEnumerable,HW=Object.getOwnPropertySymbols,ukt=HW?function(e){return e==null?[]:(e=Object(e),xd(HW(e),function(t){return ckt.call(e,t)}))}:ek,bd=ukt});function hkt(e,t){return Zs(e,bd(e),t)}var YW,XW=x(()=>{"use strict";Gu();rk();a(hkt,"copySymbols");YW=hkt});var fkt,dkt,nk,sA=x(()=>{"use strict";Qb();q2();rk();iA();fkt=Object.getOwnPropertySymbols,dkt=fkt?function(e){for(var t=[];e;)gd(t,bd(e)),e=zf(e);return t}:ek,nk=dkt});function pkt(e,t){return Zs(e,nk(e),t)}var KW,QW=x(()=>{"use strict";Gu();sA();a(pkt,"copySymbolsIn");KW=pkt});function mkt(e,t,r){var n=t(e);return Qt(e)?n:gd(n,r(e))}var ik,aA=x(()=>{"use strict";Qb();Yr();a(mkt,"baseGetAllKeys");ik=mkt});function gkt(e){return ik(e,lr,bd)}var M0,oA=x(()=>{"use strict";aA();rk();So();a(gkt,"getAllKeys");M0=gkt});function ykt(e){return ik(e,ts,nk)}var sk,lA=x(()=>{"use strict";aA();sA();pc();a(ykt,"getAllKeysIn");sk=ykt});var xkt,ak,ZW=x(()=>{"use strict";oc();qs();xkt=Ji(ln,"DataView"),ak=xkt});var bkt,ok,JW=x(()=>{"use strict";oc();qs();bkt=Ji(ln,"Promise"),ok=bkt});var kkt,Ec,cA=x(()=>{"use strict";oc();qs();kkt=Ji(ln,"Set"),Ec=kkt});var tU,Tkt,eU,rU,nU,iU,Skt,_kt,Ckt,wkt,Ekt,Xu,As,Ku=x(()=>{"use strict";ZW();F2();JW();cA();bW();cl();yv();tU="[object Map]",Tkt="[object Object]",eU="[object Promise]",rU="[object Set]",nU="[object WeakMap]",iU="[object DataView]",Skt=ul(ak),_kt=ul(uc),Ckt=ul(ok),wkt=ul(Ec),Ekt=ul(Wb),Xu=ei;(ak&&Xu(new ak(new ArrayBuffer(1)))!=iU||uc&&Xu(new uc)!=tU||ok&&Xu(ok.resolve())!=eU||Ec&&Xu(new Ec)!=rU||Wb&&Xu(new Wb)!=nU)&&(Xu=a(function(e){var t=ei(e),r=t==Tkt?e.constructor:void 0,n=r?ul(r):"";if(n)switch(n){case Skt:return iU;case _kt:return tU;case Ckt:return eU;case wkt:return rU;case Ekt:return nU}return t},"getTag"));As=Xu});function Lkt(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Akt.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var vkt,Akt,sU,aU=x(()=>{"use strict";vkt=Object.prototype,Akt=vkt.hasOwnProperty;a(Lkt,"initCloneArray");sU=Lkt});function Rkt(e,t){var r=t?Vf(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var oU,lU=x(()=>{"use strict";z2();a(Rkt,"cloneDataView");oU=Rkt});function Ikt(e){var t=new e.constructor(e.source,Dkt.exec(e));return t.lastIndex=e.lastIndex,t}var Dkt,cU,uU=x(()=>{"use strict";Dkt=/\w*$/;a(Ikt,"cloneRegExp");cU=Ikt});function Nkt(e){return fU?Object(fU.call(e)):{}}var hU,fU,dU,pU=x(()=>{"use strict";Ou();hU=jn?jn.prototype:void 0,fU=hU?hU.valueOf:void 0;a(Nkt,"cloneSymbol");dU=Nkt});function Jkt(e,t,r){var n=e.constructor;switch(t){case zkt:return Vf(e);case Mkt:case Okt:return new n(+e);case Wkt:return oU(e,r);case Ukt:case jkt:case qkt:case Hkt:case Ykt:case Xkt:case Kkt:case Qkt:case Zkt:return W2(e,r);case Pkt:return new n;case Bkt:case Gkt:return new n(e);case Fkt:return cU(e);case $kt:return new n;case Vkt:return dU(e)}}var Mkt,Okt,Pkt,Bkt,Fkt,$kt,Gkt,Vkt,zkt,Wkt,Ukt,jkt,qkt,Hkt,Ykt,Xkt,Kkt,Qkt,Zkt,mU,gU=x(()=>{"use strict";z2();lU();uU();pU();wv();Mkt="[object Boolean]",Okt="[object Date]",Pkt="[object Map]",Bkt="[object Number]",Fkt="[object RegExp]",$kt="[object Set]",Gkt="[object String]",Vkt="[object Symbol]",zkt="[object ArrayBuffer]",Wkt="[object DataView]",Ukt="[object Float32Array]",jkt="[object Float64Array]",qkt="[object Int8Array]",Hkt="[object Int16Array]",Ykt="[object Int32Array]",Xkt="[object Uint8Array]",Kkt="[object Uint8ClampedArray]",Qkt="[object Uint16Array]",Zkt="[object Uint32Array]";a(Jkt,"initCloneByTag");mU=Jkt});function eTt(e){return nn(e)&&As(e)==tTt}var tTt,yU,xU=x(()=>{"use strict";Ku();Ys();tTt="[object Map]";a(eTt,"baseIsMap");yU=eTt});var bU,rTt,kU,TU=x(()=>{"use strict";xU();$u();c0();bU=Qs&&Qs.isMap,rTt=bU?Ks(bU):yU,kU=rTt});function iTt(e){return nn(e)&&As(e)==nTt}var nTt,SU,_U=x(()=>{"use strict";Ku();Ys();nTt="[object Set]";a(iTt,"baseIsSet");SU=iTt});var CU,sTt,wU,EU=x(()=>{"use strict";_U();$u();c0();CU=Qs&&Qs.isSet,sTt=CU?Ks(CU):SU,wU=sTt});function lk(e,t,r,n,i,s){var o,l=t&aTt,u=t&oTt,h=t&lTt;if(r&&(o=i?r(e,n,i,s):r(e)),o!==void 0)return o;if(!Ir(e))return e;var f=Qt(e);if(f){if(o=sU(e),!l)return U2(e,o)}else{var d=As(e),p=d==AU||d==dTt;if(Oa(e))return V2(e,l);if(d==LU||d==vU||p&&!i){if(o=u||p?{}:H2(e),!l)return u?KW(e,jW(o,e)):YW(e,WW(o,e))}else{if(!Fr[d])return i?e:{};o=mU(e,d,l)}}s||(s=new co);var m=s.get(e);if(m)return m;s.set(e,o),wU(e)?e.forEach(function(b){o.add(lk(b,t,r,b,e,s))}):kU(e)&&e.forEach(function(b,k){o.set(k,lk(b,t,r,k,e,s))});var g=h?u?sk:M0:u?ts:lr,y=f?void 0:g(e);return Ub(y||e,function(b,k){y&&(k=b,b=e[k]),fo(o,k,lk(b,t,r,k,e,s))}),o}var aTt,oTt,lTt,vU,cTt,uTt,hTt,fTt,AU,dTt,pTt,mTt,LU,gTt,yTt,xTt,bTt,kTt,TTt,STt,_Tt,CTt,wTt,ETt,vTt,ATt,LTt,RTt,DTt,Fr,ck,uA=x(()=>{"use strict";a0();J4();Hf();UW();qW();_v();Ev();XW();QW();oA();lA();Ku();aU();gU();Av();Yr();qf();TU();Cs();EU();So();pc();aTt=1,oTt=2,lTt=4,vU="[object Arguments]",cTt="[object Array]",uTt="[object Boolean]",hTt="[object Date]",fTt="[object Error]",AU="[object Function]",dTt="[object GeneratorFunction]",pTt="[object Map]",mTt="[object Number]",LU="[object Object]",gTt="[object RegExp]",yTt="[object Set]",xTt="[object String]",bTt="[object Symbol]",kTt="[object WeakMap]",TTt="[object ArrayBuffer]",STt="[object DataView]",_Tt="[object Float32Array]",CTt="[object Float64Array]",wTt="[object Int8Array]",ETt="[object Int16Array]",vTt="[object Int32Array]",ATt="[object Uint8Array]",LTt="[object Uint8ClampedArray]",RTt="[object Uint16Array]",DTt="[object Uint32Array]",Fr={};Fr[vU]=Fr[cTt]=Fr[TTt]=Fr[STt]=Fr[uTt]=Fr[hTt]=Fr[_Tt]=Fr[CTt]=Fr[wTt]=Fr[ETt]=Fr[vTt]=Fr[pTt]=Fr[mTt]=Fr[LU]=Fr[gTt]=Fr[yTt]=Fr[xTt]=Fr[bTt]=Fr[ATt]=Fr[LTt]=Fr[RTt]=Fr[DTt]=!0;Fr[fTt]=Fr[AU]=Fr[kTt]=!1;a(lk,"baseClone");ck=lk});function NTt(e){return ck(e,ITt)}var ITt,Sr,hA=x(()=>{"use strict";uA();ITt=4;a(NTt,"clone");Sr=NTt});function PTt(e){return ck(e,MTt|OTt)}var MTt,OTt,fA,RU=x(()=>{"use strict";uA();MTt=1,OTt=4;a(PTt,"cloneDeep");fA=PTt});function BTt(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t{"use strict";a(BTt,"compact");wo=BTt});function $Tt(e){return this.__data__.set(e,FTt),this}var FTt,IU,NU=x(()=>{"use strict";FTt="__lodash_hash_undefined__";a($Tt,"setCacheAdd");IU=$Tt});function GTt(e){return this.__data__.has(e)}var MU,OU=x(()=>{"use strict";a(GTt,"setCacheHas");MU=GTt});function uk(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Bu;++t{"use strict";$2();NU();OU();a(uk,"SetCache");uk.prototype.add=uk.prototype.push=IU;uk.prototype.has=MU;kd=uk});function VTt(e,t){for(var r=-1,n=e==null?0:e.length;++r{"use strict";a(VTt,"arraySome");fk=VTt});function zTt(e,t){return e.has(t)}var Td,dk=x(()=>{"use strict";a(zTt,"cacheHas");Td=zTt});function jTt(e,t,r,n,i,s){var o=r&WTt,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var h=s.get(e),f=s.get(t);if(h&&f)return h==t&&f==e;var d=-1,p=!0,m=r&UTt?new kd:void 0;for(s.set(e,t),s.set(t,e);++d{"use strict";hk();dA();dk();WTt=1,UTt=2;a(jTt,"equalArrays");pk=jTt});function qTt(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var PU,BU=x(()=>{"use strict";a(qTt,"mapToArray");PU=qTt});function HTt(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Sd,mk=x(()=>{"use strict";a(HTt,"setToArray");Sd=HTt});function oSt(e,t,r,n,i,s,o){switch(r){case aSt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case sSt:return!(e.byteLength!=t.byteLength||!s(new Gf(e),new Gf(t)));case KTt:case QTt:case tSt:return Hs(+e,+t);case ZTt:return e.name==t.name&&e.message==t.message;case eSt:case nSt:return e==t+"";case JTt:var l=PU;case rSt:var u=n&YTt;if(l||(l=Sd),e.size!=t.size&&!u)return!1;var h=o.get(e);if(h)return h==t;n|=XTt,o.set(e,t);var f=pk(l(e),l(t),n,i,s,o);return o.delete(e),f;case iSt:if(mA)return mA.call(e)==mA.call(t)}return!1}var YTt,XTt,KTt,QTt,ZTt,JTt,tSt,eSt,rSt,nSt,iSt,sSt,aSt,FU,mA,$U,GU=x(()=>{"use strict";Ou();Cv();Pu();pA();BU();mk();YTt=1,XTt=2,KTt="[object Boolean]",QTt="[object Date]",ZTt="[object Error]",JTt="[object Map]",tSt="[object Number]",eSt="[object RegExp]",rSt="[object Set]",nSt="[object String]",iSt="[object Symbol]",sSt="[object ArrayBuffer]",aSt="[object DataView]",FU=jn?jn.prototype:void 0,mA=FU?FU.valueOf:void 0;a(oSt,"equalByTag");$U=oSt});function hSt(e,t,r,n,i,s){var o=r&lSt,l=M0(e),u=l.length,h=M0(t),f=h.length;if(u!=f&&!o)return!1;for(var d=u;d--;){var p=l[d];if(!(o?p in t:uSt.call(t,p)))return!1}var m=s.get(e),g=s.get(t);if(m&&g)return m==t&&g==e;var y=!0;s.set(e,t),s.set(t,e);for(var b=o;++d{"use strict";oA();lSt=1,cSt=Object.prototype,uSt=cSt.hasOwnProperty;a(hSt,"equalObjects");VU=hSt});function pSt(e,t,r,n,i,s){var o=Qt(e),l=Qt(t),u=o?UU:As(e),h=l?UU:As(t);u=u==WU?gk:u,h=h==WU?gk:h;var f=u==gk,d=h==gk,p=u==h;if(p&&Oa(e)){if(!Oa(t))return!1;o=!0,f=!1}if(p&&!f)return s||(s=new co),o||fc(e)?pk(e,t,r,n,i,s):$U(e,t,u,r,n,i,s);if(!(r&fSt)){var m=f&&jU.call(e,"__wrapped__"),g=d&&jU.call(t,"__wrapped__");if(m||g){var y=m?e.value():e,b=g?t.value():t;return s||(s=new co),i(y,b,r,n,s)}}return p?(s||(s=new co),VU(e,t,r,n,i,s)):!1}var fSt,WU,UU,gk,dSt,jU,qU,HU=x(()=>{"use strict";a0();pA();GU();zU();Ku();Yr();qf();u0();fSt=1,WU="[object Arguments]",UU="[object Array]",gk="[object Object]",dSt=Object.prototype,jU=dSt.hasOwnProperty;a(pSt,"baseIsEqualDeep");qU=pSt});function YU(e,t,r,n,i){return e===t?!0:e==null||t==null||!nn(e)&&!nn(t)?e!==e&&t!==t:qU(e,t,r,n,YU,i)}var yk,gA=x(()=>{"use strict";HU();Ys();a(YU,"baseIsEqual");yk=YU});function ySt(e,t,r,n){var i=r.length,s=i,o=!n;if(e==null)return!s;for(e=Object(e);i--;){var l=r[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i{"use strict";a0();gA();mSt=1,gSt=2;a(ySt,"baseIsMatch");XU=ySt});function xSt(e){return e===e&&!Ir(e)}var xk,yA=x(()=>{"use strict";Cs();a(xSt,"isStrictComparable");xk=xSt});function bSt(e){for(var t=lr(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,xk(i)]}return t}var QU,ZU=x(()=>{"use strict";yA();So();a(bSt,"getMatchData");QU=bSt});function kSt(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var bk,xA=x(()=>{"use strict";a(kSt,"matchesStrictComparable");bk=kSt});function TSt(e){var t=QU(e);return t.length==1&&t[0][2]?bk(t[0][0],t[0][1]):function(r){return r===e||XU(r,e,t)}}var JU,tj=x(()=>{"use strict";KU();ZU();xA();a(TSt,"baseMatches");JU=TSt});function SSt(e,t){return e!=null&&t in Object(e)}var ej,rj=x(()=>{"use strict";a(SSt,"baseHasIn");ej=SSt});function _St(e,t,r){t=Cc(t,e);for(var n=-1,i=t.length,s=!1;++n{"use strict";I0();Uf();Yr();f0();Y2();md();a(_St,"hasPath");kk=_St});function CSt(e,t){return e!=null&&kk(e,t,ej)}var Tk,kA=x(()=>{"use strict";rj();bA();a(CSt,"hasIn");Tk=CSt});function vSt(e,t){return pd(e)&&xk(t)?bk(_o(e),t):function(r){var n=DW(r,e);return n===void 0&&n===t?Tk(r,e):yk(t,n,wSt|ESt)}}var wSt,ESt,nj,ij=x(()=>{"use strict";gA();IW();kA();Xb();yA();xA();md();wSt=1,ESt=2;a(vSt,"baseMatchesProperty");nj=vSt});function ASt(e){return function(t){return t?.[e]}}var Sk,TA=x(()=>{"use strict";a(ASt,"baseProperty");Sk=ASt});function LSt(e){return function(t){return wc(t,e)}}var sj,aj=x(()=>{"use strict";N0();a(LSt,"basePropertyDeep");sj=LSt});function RSt(e){return pd(e)?Sk(_o(e)):sj(e)}var oj,lj=x(()=>{"use strict";TA();aj();Xb();md();a(RSt,"property");oj=RSt});function DSt(e){return typeof e=="function"?e:e==null?qn:typeof e=="object"?Qt(e)?nj(e[0],e[1]):JU(e):oj(e)}var Lr,Ni=x(()=>{"use strict";tj();ij();fl();Yr();lj();a(DSt,"baseIteratee");Lr=DSt});function ISt(e,t,r,n){for(var i=-1,s=e==null?0:e.length;++i{"use strict";a(ISt,"arrayAggregator");cj=ISt});function NSt(e,t){return e&&$f(e,t,lr)}var _d,_k=x(()=>{"use strict";G2();So();a(NSt,"baseForOwn");_d=NSt});function MSt(e,t){return function(r,n){if(r==null)return r;if(!cn(r))return e(r,n);for(var i=r.length,s=t?i:-1,o=Object(r);(t?s--:++s{"use strict";Xs();a(MSt,"createBaseEach");hj=MSt});var OSt,os,vc=x(()=>{"use strict";_k();fj();OSt=hj(_d),os=OSt});function PSt(e,t,r,n){return os(e,function(i,s,o){t(n,i,r(i),o)}),n}var dj,pj=x(()=>{"use strict";vc();a(PSt,"baseAggregator");dj=PSt});function BSt(e,t){return function(r,n){var i=Qt(r)?cj:dj,s=t?t():{};return i(r,e,Lr(n,2),s)}}var mj,gj=x(()=>{"use strict";uj();pj();Ni();Yr();a(BSt,"createAggregator");mj=BSt});var FSt,Ck,yj=x(()=>{"use strict";qs();FSt=a(function(){return ln.Date.now()},"now"),Ck=FSt});var xj,$St,GSt,Ac,bj=x(()=>{"use strict";Yf();Pu();Vu();pc();xj=Object.prototype,$St=xj.hasOwnProperty,GSt=po(function(e,t){e=Object(e);var r=-1,n=t.length,i=n>2?t[2]:void 0;for(i&&ws(t[0],t[1],i)&&(n=1);++r{"use strict";a(VSt,"arrayIncludesWith");wk=VSt});function WSt(e,t,r,n){var i=-1,s=Hb,o=!0,l=e.length,u=[],h=t.length;if(!l)return u;r&&(t=as(t,Ks(r))),n?(s=wk,o=!1):t.length>=zSt&&(s=Td,o=!1,t=new kd(t));t:for(;++i{"use strict";hk();eA();SA();Yu();$u();dk();zSt=200;a(WSt,"baseDifference");kj=WSt});var USt,Lc,Sj=x(()=>{"use strict";Tj();yd();Yf();X2();USt=po(function(e,t){return Fu(e)?kj(e,Co(t,1,Fu,!0)):[]}),Lc=USt});function jSt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var ii,_j=x(()=>{"use strict";a(jSt,"last");ii=jSt});function qSt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:To(t),Jb(e,t<0?0:t,n)):[]}var dn,Cj=x(()=>{"use strict";nA();hd();a(qSt,"drop");dn=qSt});function HSt(e,t,r){var n=e==null?0:e.length;return n?(t=r||t===void 0?1:To(t),t=n-t,Jb(e,0,t<0?0:t)):[]}var xl,wj=x(()=>{"use strict";nA();hd();a(HSt,"dropRight");xl=HSt});function YSt(e){return typeof e=="function"?e:qn}var Cd,Ek=x(()=>{"use strict";fl();a(YSt,"castFunction");Cd=YSt});function XSt(e,t){var r=Qt(e)?Ub:os;return r(e,Cd(t))}var tt,vk=x(()=>{"use strict";J4();vc();Ek();Yr();a(XSt,"forEach");tt=XSt});var Ej=x(()=>{"use strict";vk()});function KSt(e,t){for(var r=-1,n=e==null?0:e.length;++r{"use strict";a(KSt,"arrayEvery");vj=KSt});function QSt(e,t){var r=!0;return os(e,function(n,i,s){return r=!!t(n,i,s),r}),r}var Lj,Rj=x(()=>{"use strict";vc();a(QSt,"baseEvery");Lj=QSt});function ZSt(e,t,r){var n=Qt(e)?vj:Lj;return r&&ws(e,t,r)&&(t=void 0),n(e,Lr(t,3))}var gi,Dj=x(()=>{"use strict";Aj();Rj();Ni();Yr();Vu();a(ZSt,"every");gi=ZSt});function JSt(e,t){var r=[];return os(e,function(n,i,s){t(n,i,s)&&r.push(n)}),r}var Ak,_A=x(()=>{"use strict";vc();a(JSt,"baseFilter");Ak=JSt});function t_t(e,t){var r=Qt(e)?xd:Ak;return r(e,Lr(t,3))}var dr,CA=x(()=>{"use strict";tk();_A();Ni();Yr();a(t_t,"filter");dr=t_t});function e_t(e){return function(t,r,n){var i=Object(t);if(!cn(t)){var s=Lr(r,3);t=lr(t),r=a(function(l){return s(i[l],l,i)},"predicate")}var o=e(t,r,n);return o>-1?i[s?t[o]:o]:void 0}}var Ij,Nj=x(()=>{"use strict";Ni();Xs();So();a(e_t,"createFind");Ij=e_t});function n_t(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:To(r);return i<0&&(i=r_t(n+i,0)),jb(e,Lr(t,3),i)}var r_t,Mj,Oj=x(()=>{"use strict";tA();Ni();hd();r_t=Math.max;a(n_t,"findIndex");Mj=n_t});var i_t,Mi,Pj=x(()=>{"use strict";Nj();Oj();i_t=Ij(Mj),Mi=i_t});function s_t(e){return e&&e.length?e[0]:void 0}var Kn,Bj=x(()=>{"use strict";a(s_t,"head");Kn=s_t});var Fj=x(()=>{"use strict";Bj()});function a_t(e,t){var r=-1,n=cn(e)?Array(e.length):[];return os(e,function(i,s,o){n[++r]=t(i,s,o)}),n}var Lk,wA=x(()=>{"use strict";vc();Xs();a(a_t,"baseMap");Lk=a_t});function o_t(e,t){var r=Qt(e)?as:Lk;return r(e,Lr(t,3))}var Dt,wd=x(()=>{"use strict";Yu();Ni();wA();Yr();a(o_t,"map");Dt=o_t});function l_t(e,t){return Co(Dt(e,t),1)}var si,EA=x(()=>{"use strict";yd();wd();a(l_t,"flatMap");si=l_t});function c_t(e,t){return e==null?e:$f(e,Cd(t),ts)}var vA,$j=x(()=>{"use strict";G2();Ek();pc();a(c_t,"forIn");vA=c_t});function u_t(e,t){return e&&_d(e,Cd(t))}var AA,Gj=x(()=>{"use strict";_k();Ek();a(u_t,"forOwn");AA=u_t});var h_t,f_t,d_t,LA,Vj=x(()=>{"use strict";Ff();gj();h_t=Object.prototype,f_t=h_t.hasOwnProperty,d_t=mj(function(e,t,r){f_t.call(e,r)?e[r].push(t):uo(e,r,[t])}),LA=d_t});function p_t(e,t){return e>t}var zj,Wj=x(()=>{"use strict";a(p_t,"baseGt");zj=p_t});function y_t(e,t){return e!=null&&g_t.call(e,t)}var m_t,g_t,Uj,jj=x(()=>{"use strict";m_t=Object.prototype,g_t=m_t.hasOwnProperty;a(y_t,"baseHas");Uj=y_t});function x_t(e,t){return e!=null&&kk(e,t,Uj)}var Zt,qj=x(()=>{"use strict";jj();bA();a(x_t,"has");Zt=x_t});function k_t(e){return typeof e=="string"||!Qt(e)&&nn(e)&&ei(e)==b_t}var b_t,pn,Rk=x(()=>{"use strict";cl();Yr();Ys();b_t="[object String]";a(k_t,"isString");pn=k_t});function T_t(e,t){return as(t,function(r){return e[r]})}var Hj,Yj=x(()=>{"use strict";Yu();a(T_t,"baseValues");Hj=T_t});function S_t(e){return e==null?[]:Hj(e,lr(e))}var Ve,RA=x(()=>{"use strict";Yj();So();a(S_t,"values");Ve=S_t});function C_t(e,t,r,n){e=cn(e)?e:Ve(e),r=r&&!n?To(r):0;var i=e.length;return r<0&&(r=__t(i+r,0)),pn(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&fd(e,t,r)>-1}var __t,Kr,Xj=x(()=>{"use strict";qb();Xs();Rk();hd();RA();__t=Math.max;a(C_t,"includes");Kr=C_t});function E_t(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:To(r);return i<0&&(i=w_t(n+i,0)),fd(e,t,i)}var w_t,Dk,Kj=x(()=>{"use strict";qb();hd();w_t=Math.max;a(E_t,"indexOf");Dk=E_t});function D_t(e){if(e==null)return!0;if(cn(e)&&(Qt(e)||typeof e=="string"||typeof e.splice=="function"||Oa(e)||fc(e)||Ma(e)))return!e.length;var t=As(e);if(t==v_t||t==A_t)return!e.size;if(ho(e))return!dd(e).length;for(var r in e)if(R_t.call(e,r))return!1;return!0}var v_t,A_t,L_t,R_t,De,Ik=x(()=>{"use strict";Yb();Ku();Uf();Yr();Xs();qf();Wf();u0();v_t="[object Map]",A_t="[object Set]",L_t=Object.prototype,R_t=L_t.hasOwnProperty;a(D_t,"isEmpty");De=D_t});function N_t(e){return nn(e)&&ei(e)==I_t}var I_t,Qj,Zj=x(()=>{"use strict";cl();Ys();I_t="[object RegExp]";a(N_t,"baseIsRegExp");Qj=N_t});var Jj,M_t,ea,tq=x(()=>{"use strict";Zj();$u();c0();Jj=Qs&&Qs.isRegExp,M_t=Jj?Ks(Jj):Qj,ea=M_t});function O_t(e){return e===void 0}var Me,eq=x(()=>{"use strict";a(O_t,"isUndefined");Me=O_t});function P_t(e,t){return e{"use strict";a(P_t,"baseLt");Nk=P_t});function B_t(e,t){var r={};return t=Lr(t,3),_d(e,function(n,i,s){uo(r,i,t(n,i,s))}),r}var Qu,rq=x(()=>{"use strict";Ff();_k();Ni();a(B_t,"mapValues");Qu=B_t});function F_t(e,t,r){for(var n=-1,i=e.length;++n{"use strict";Hu();a(F_t,"baseExtremum");Ed=F_t});function $_t(e){return e&&e.length?Ed(e,qn,zj):void 0}var ls,nq=x(()=>{"use strict";Mk();Wj();fl();a($_t,"max");ls=$_t});function G_t(e){return e&&e.length?Ed(e,qn,Nk):void 0}var Ga,IA=x(()=>{"use strict";Mk();DA();fl();a(G_t,"min");Ga=G_t});function V_t(e,t){return e&&e.length?Ed(e,Lr(t,2),Nk):void 0}var Zu,iq=x(()=>{"use strict";Mk();Ni();DA();a(V_t,"minBy");Zu=V_t});function W_t(e){if(typeof e!="function")throw new TypeError(z_t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var z_t,sq,aq=x(()=>{"use strict";z_t="Expected a function";a(W_t,"negate");sq=W_t});function U_t(e,t,r,n){if(!Ir(e))return e;t=Cc(t,e);for(var i=-1,s=t.length,o=s-1,l=e;l!=null&&++i{"use strict";Hf();I0();f0();Cs();md();a(U_t,"baseSet");oq=U_t});function j_t(e,t,r){for(var n=-1,i=t.length,s={};++n{"use strict";N0();lq();I0();a(j_t,"basePickBy");Ok=j_t});function q_t(e,t){if(e==null)return{};var r=as(sk(e),function(n){return[n]});return t=Lr(t),Ok(e,r,function(n,i){return t(n,i[0])})}var cs,cq=x(()=>{"use strict";Yu();Ni();NA();lA();a(q_t,"pickBy");cs=q_t});function H_t(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var uq,hq=x(()=>{"use strict";a(H_t,"baseSortBy");uq=H_t});function Y_t(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,s=vs(e),o=t!==void 0,l=t===null,u=t===t,h=vs(t);if(!l&&!h&&!s&&e>t||s&&o&&u&&!l&&!h||n&&o&&u||!r&&u||!i)return 1;if(!n&&!s&&!h&&e{"use strict";Hu();a(Y_t,"compareAscending");fq=Y_t});function X_t(e,t,r){for(var n=-1,i=e.criteria,s=t.criteria,o=i.length,l=r.length;++n=l)return u;var h=r[n];return u*(h=="desc"?-1:1)}}return e.index-t.index}var pq,mq=x(()=>{"use strict";dq();a(X_t,"compareMultiple");pq=X_t});function K_t(e,t,r){t.length?t=as(t,function(s){return Qt(s)?function(o){return wc(o,s.length===1?s[0]:s)}:s}):t=[qn];var n=-1;t=as(t,Ks(Lr));var i=Lk(e,function(s,o,l){var u=as(t,function(h){return h(s)});return{criteria:u,index:++n,value:s}});return uq(i,function(s,o){return pq(s,o,r)})}var gq,yq=x(()=>{"use strict";Yu();N0();Ni();wA();hq();$u();mq();fl();Yr();a(K_t,"baseOrderBy");gq=K_t});var Q_t,xq,bq=x(()=>{"use strict";TA();Q_t=Sk("length"),xq=Q_t});function cCt(e){for(var t=kq.lastIndex=0;kq.test(e);)++t;return t}var Tq,Z_t,J_t,tCt,eCt,rCt,nCt,MA,OA,iCt,Sq,_q,Cq,sCt,wq,Eq,aCt,oCt,lCt,kq,vq,Aq=x(()=>{"use strict";Tq="\\ud800-\\udfff",Z_t="\\u0300-\\u036f",J_t="\\ufe20-\\ufe2f",tCt="\\u20d0-\\u20ff",eCt=Z_t+J_t+tCt,rCt="\\ufe0e\\ufe0f",nCt="["+Tq+"]",MA="["+eCt+"]",OA="\\ud83c[\\udffb-\\udfff]",iCt="(?:"+MA+"|"+OA+")",Sq="[^"+Tq+"]",_q="(?:\\ud83c[\\udde6-\\uddff]){2}",Cq="[\\ud800-\\udbff][\\udc00-\\udfff]",sCt="\\u200d",wq=iCt+"?",Eq="["+rCt+"]?",aCt="(?:"+sCt+"(?:"+[Sq,_q,Cq].join("|")+")"+Eq+wq+")*",oCt=Eq+wq+aCt,lCt="(?:"+[Sq+MA+"?",MA,_q,Cq,nCt].join("|")+")",kq=RegExp(OA+"(?="+OA+")|"+lCt+oCt,"g");a(cCt,"unicodeSize");vq=cCt});function uCt(e){return $W(e)?vq(e):xq(e)}var Lq,Rq=x(()=>{"use strict";bq();GW();Aq();a(uCt,"stringSize");Lq=uCt});function hCt(e,t){return Ok(e,t,function(r,n){return Tk(e,n)})}var Dq,Iq=x(()=>{"use strict";NA();kA();a(hCt,"basePick");Dq=hCt});var fCt,Ju,Nq=x(()=>{"use strict";Iq();FW();fCt=BW(function(e,t){return e==null?{}:Dq(e,t)}),Ju=fCt});function mCt(e,t,r,n){for(var i=-1,s=pCt(dCt((t-e)/(r||1)),0),o=Array(s);s--;)o[n?s:++i]=e,e+=r;return o}var dCt,pCt,Mq,Oq=x(()=>{"use strict";dCt=Math.ceil,pCt=Math.max;a(mCt,"baseRange");Mq=mCt});function gCt(e){return function(t,r,n){return n&&typeof n!="number"&&ws(t,r,n)&&(r=n=void 0),t=ud(t),r===void 0?(r=t,t=0):r=ud(r),n=n===void 0?t{"use strict";Oq();Vu();Q4();a(gCt,"createRange");Pq=gCt});var yCt,ra,Fq=x(()=>{"use strict";Bq();yCt=Pq(),ra=yCt});function xCt(e,t,r,n,i){return i(e,function(s,o,l){r=n?(n=!1,s):t(r,s,o,l)}),r}var $q,Gq=x(()=>{"use strict";a(xCt,"baseReduce");$q=xCt});function bCt(e,t,r){var n=Qt(e)?VW:$q,i=arguments.length<3;return n(e,Lr(t,4),r,i,os)}var pr,PA=x(()=>{"use strict";zW();vc();Ni();Gq();Yr();a(bCt,"reduce");pr=bCt});function kCt(e,t){var r=Qt(e)?xd:Ak;return r(e,sq(Lr(t,3)))}var Rc,Vq=x(()=>{"use strict";tk();_A();Ni();Yr();aq();a(kCt,"reject");Rc=kCt});function _Ct(e){if(e==null)return 0;if(cn(e))return pn(e)?Lq(e):e.length;var t=As(e);return t==TCt||t==SCt?e.size:dd(e).length}var TCt,SCt,BA,zq=x(()=>{"use strict";Yb();Ku();Xs();Rk();Rq();TCt="[object Map]",SCt="[object Set]";a(_Ct,"size");BA=_Ct});function CCt(e,t){var r;return os(e,function(n,i,s){return r=t(n,i,s),!r}),!!r}var Wq,Uq=x(()=>{"use strict";vc();a(CCt,"baseSome");Wq=CCt});function wCt(e,t,r){var n=Qt(e)?fk:Wq;return r&&ws(e,t,r)&&(t=void 0),n(e,Lr(t,3))}var O0,jq=x(()=>{"use strict";dA();Ni();Uq();Yr();Vu();a(wCt,"some");O0=wCt});var ECt,Eo,qq=x(()=>{"use strict";yd();yq();Yf();Vu();ECt=po(function(e,t){if(e==null)return[];var r=t.length;return r>1&&ws(e,t[0],t[1])?t=[]:r>2&&ws(t[0],t[1],t[2])&&(t=[t[0]]),gq(e,Co(t,1),[])}),Eo=ECt});var vCt,ACt,Hq,Yq=x(()=>{"use strict";cA();Z4();mk();vCt=1/0,ACt=Ec&&1/Sd(new Ec([,-0]))[1]==vCt?function(e){return new Ec(e)}:sn,Hq=ACt});function RCt(e,t,r){var n=-1,i=Hb,s=e.length,o=!0,l=[],u=l;if(r)o=!1,i=wk;else if(s>=LCt){var h=t?null:Hq(e);if(h)return Sd(h);o=!1,i=Td,u=new kd}else u=t?[]:l;t:for(;++n{"use strict";hk();eA();SA();dk();Yq();mk();LCt=200;a(RCt,"baseUniq");vd=RCt});var DCt,FA,Xq=x(()=>{"use strict";yd();Yf();Pk();X2();DCt=po(function(e){return vd(Co(e,1,Fu,!0))}),FA=DCt});function ICt(e){return e&&e.length?vd(e):[]}var Ad,Kq=x(()=>{"use strict";Pk();a(ICt,"uniq");Ad=ICt});function NCt(e,t){return e&&e.length?vd(e,Lr(t,2)):[]}var Qq,Zq=x(()=>{"use strict";Ni();Pk();a(NCt,"uniqBy");Qq=NCt});function OCt(e){var t=++MCt;return Kb(e)+t}var MCt,th,Jq=x(()=>{"use strict";rA();MCt=0;a(OCt,"uniqueId");th=OCt});function PCt(e,t,r){for(var n=-1,i=e.length,s=t.length,o={};++n{"use strict";a(PCt,"baseZipObject");tH=PCt});function BCt(e,t){return tH(e||[],t||[],fo)}var Bk,rH=x(()=>{"use strict";Hf();eH();a(BCt,"zipObject");Bk=BCt});var ue=x(()=>{"use strict";EW();hA();RU();DU();Mv();bj();Sj();Cj();wj();Ej();Dj();CA();Pj();Fj();EA();Zb();vk();$j();Gj();Vj();qj();fl();Xj();Kj();Yr();Ik();e0();Cs();tq();Rk();eq();So();_j();wd();rq();nq();Bv();IA();iq();Z4();yj();Nq();cq();Fq();PA();Vq();zq();jq();qq();Xq();Kq();Jq();RA();rH();});function iH(e,t){e[t]?e[t]++:e[t]=1}function sH(e,t){--e[t]||delete e[t]}function P0(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var o=i;i=s,s=o}return i+nH+s+nH+(Me(n)?FCt:n)}function $Ct(e,t,r,n){var i=""+t,s=""+r;if(!e&&i>s){var o=i;i=s,s=o}var l={v:i,w:s};return n&&(l.name=n),l}function $A(e,t){return P0(e,t.v,t.w,t.name)}var FCt,eh,nH,_r,Fk=x(()=>{"use strict";ue();FCt="\0",eh="\0",nH="",_r=class{static{a(this,"Graph")}constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=es(void 0),this._defaultEdgeLabelFn=es(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[eh]={}),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(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return _n(t)||(t=es(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return lr(this._nodes)}sources(){var t=this;return dr(this.nodes(),function(r){return De(t._in[r])})}sinks(){var t=this;return dr(this.nodes(),function(r){return De(t._out[r])})}setNodes(t,r){var n=arguments,i=this;return tt(t,function(s){n.length>1?i.setNode(s,r):i.setNode(s)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=eh,this._children[t]={},this._children[eh][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=a(n=>this.removeEdge(this._edgeObjs[n]),"removeEdge");delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],tt(this.children(t),n=>{this.setParent(n)}),delete this._children[t]),tt(lr(this._in[t]),r),delete this._in[t],delete this._preds[t],tt(lr(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Me(r))r=eh;else{r+="";for(var n=r;!Me(n);n=this.parent(n))if(n===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==eh)return r}}children(t){if(Me(t)&&(t=eh),this._isCompound){var r=this._children[t];if(r)return lr(r)}else{if(t===eh)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return lr(r)}successors(t){var r=this._sucs[t];if(r)return lr(r)}neighbors(t){var r=this.predecessors(t);if(r)return FA(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var n=this;tt(this._nodes,function(o,l){t(l)&&r.setNode(l,o)}),tt(this._edgeObjs,function(o){r.hasNode(o.v)&&r.hasNode(o.w)&&r.setEdge(o,n.edge(o))});var i={};function s(o){var l=n.parent(o);return l===void 0||r.hasNode(l)?(i[o]=l,l):l in i?i[l]:s(l)}return a(s,"findParent"),this._isCompound&&tt(r.nodes(),function(o){r.setParent(o,s(o))}),r}setDefaultEdgeLabel(t){return _n(t)||(t=es(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ve(this._edgeObjs)}setPath(t,r){var n=this,i=arguments;return pr(t,function(s,o){return i.length>1?n.setEdge(s,o,r):n.setEdge(s,o),o}),this}setEdge(){var t,r,n,i,s=!1,o=arguments[0];typeof o=="object"&&o!==null&&"v"in o?(t=o.v,r=o.w,n=o.name,arguments.length===2&&(i=arguments[1],s=!0)):(t=o,r=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],s=!0)),t=""+t,r=""+r,Me(n)||(n=""+n);var l=P0(this._isDirected,t,r,n);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,l))return s&&(this._edgeLabels[l]=i),this;if(!Me(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[l]=s?i:this._defaultEdgeLabelFn(t,r,n);var u=$Ct(this._isDirected,t,r,n);return t=u.v,r=u.w,Object.freeze(u),this._edgeObjs[l]=u,iH(this._preds[r],t),iH(this._sucs[t],r),this._in[r][l]=u,this._out[t][l]=u,this._edgeCount++,this}edge(t,r,n){var i=arguments.length===1?$A(this._isDirected,arguments[0]):P0(this._isDirected,t,r,n);return this._edgeLabels[i]}hasEdge(t,r,n){var i=arguments.length===1?$A(this._isDirected,arguments[0]):P0(this._isDirected,t,r,n);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(t,r,n){var i=arguments.length===1?$A(this._isDirected,arguments[0]):P0(this._isDirected,t,r,n),s=this._edgeObjs[i];return s&&(t=s.v,r=s.w,delete this._edgeLabels[i],delete this._edgeObjs[i],sH(this._preds[r],t),sH(this._sucs[t],r),delete this._in[r][i],delete this._out[t][i],this._edgeCount--),this}inEdges(t,r){var n=this._in[t];if(n){var i=Ve(n);return r?dr(i,function(s){return s.v===r}):i}}outEdges(t,r){var n=this._out[t];if(n){var i=Ve(n);return r?dr(i,function(s){return s.w===r}):i}}nodeEdges(t,r){var n=this.inEdges(t,r);if(n)return n.concat(this.outEdges(t,r))}};_r.prototype._nodeCount=0;_r.prototype._edgeCount=0;a(iH,"incrementOrInitEntry");a(sH,"decrementOrRemoveEntry");a(P0,"edgeArgsToId");a($Ct,"edgeArgsToObj");a($A,"edgeObjToId")});var na=x(()=>{"use strict";Fk()});function aH(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function GCt(e,t){if(e!=="_next"&&e!=="_prev")return t}var Gk,oH=x(()=>{"use strict";Gk=class{static{a(this,"List")}constructor(){var t={};t._next=t._prev=t,this._sentinel=t}dequeue(){var t=this._sentinel,r=t._prev;if(r!==t)return aH(r),r}enqueue(t){var r=this._sentinel;t._prev&&t._next&&aH(t),t._next=r._next,r._next._prev=t,r._next=t,t._prev=r}toString(){for(var t=[],r=this._sentinel,n=r._prev;n!==r;)t.push(JSON.stringify(n,GCt)),n=n._prev;return"["+t.join(", ")+"]"}};a(aH,"unlink");a(GCt,"filterOutLinks")});function lH(e,t){if(e.nodeCount()<=1)return[];var r=WCt(e,t||VCt),n=zCt(r.graph,r.buckets,r.zeroIdx);return fr(Dt(n,function(i){return e.outEdges(i.v,i.w)}))}function zCt(e,t,r){for(var n=[],i=t[t.length-1],s=t[0],o;e.nodeCount();){for(;o=s.dequeue();)GA(e,t,r,o);for(;o=i.dequeue();)GA(e,t,r,o);if(e.nodeCount()){for(var l=t.length-2;l>0;--l)if(o=t[l].dequeue(),o){n=n.concat(GA(e,t,r,o,!0));break}}}return n}function GA(e,t,r,n,i){var s=i?[]:void 0;return tt(e.inEdges(n.v),function(o){var l=e.edge(o),u=e.node(o.v);i&&s.push({v:o.v,w:o.w}),u.out-=l,VA(t,r,u)}),tt(e.outEdges(n.v),function(o){var l=e.edge(o),u=o.w,h=e.node(u);h.in-=l,VA(t,r,h)}),e.removeNode(n.v),s}function WCt(e,t){var r=new _r,n=0,i=0;tt(e.nodes(),function(l){r.setNode(l,{v:l,in:0,out:0})}),tt(e.edges(),function(l){var u=r.edge(l.v,l.w)||0,h=t(l),f=u+h;r.setEdge(l.v,l.w,f),i=Math.max(i,r.node(l.v).out+=h),n=Math.max(n,r.node(l.w).in+=h)});var s=ra(i+n+3).map(function(){return new Gk}),o=n+1;return tt(r.nodes(),function(l){VA(s,o,r.node(l))}),{graph:r,buckets:s,zeroIdx:o}}function VA(e,t,r){r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)}var VCt,cH=x(()=>{"use strict";ue();na();oH();VCt=es(1);a(lH,"greedyFAS");a(zCt,"doGreedyFAS");a(GA,"removeNode");a(WCt,"buildState");a(VA,"assignBucket")});function uH(e){var t=e.graph().acyclicer==="greedy"?lH(e,r(e)):UCt(e);tt(t,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,th("rev"))});function r(n){return function(i){return n.edge(i).weight}}a(r,"weightFn")}function UCt(e){var t=[],r={},n={};function i(s){Object.prototype.hasOwnProperty.call(n,s)||(n[s]=!0,r[s]=!0,tt(e.outEdges(s),function(o){Object.prototype.hasOwnProperty.call(r,o.w)?t.push(o):i(o.w)}),delete r[s])}return a(i,"dfs"),tt(e.nodes(),i),t}function hH(e){tt(e.edges(),function(t){var r=e.edge(t);if(r.reversed){e.removeEdge(t);var n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}var zA=x(()=>{"use strict";ue();cH();a(uH,"run");a(UCt,"dfsFAS");a(hH,"undo")});function vo(e,t,r,n){var i;do i=th(n);while(e.hasNode(i));return r.dummy=t,e.setNode(i,r),i}function dH(e){var t=new _r().setGraph(e.graph());return tt(e.nodes(),function(r){t.setNode(r,e.node(r))}),tt(e.edges(),function(r){var n=t.edge(r.v,r.w)||{weight:0,minlen:1},i=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),t}function Vk(e){var t=new _r({multigraph:e.isMultigraph()}).setGraph(e.graph());return tt(e.nodes(),function(r){e.children(r).length||t.setNode(r,e.node(r))}),tt(e.edges(),function(r){t.setEdge(r,e.edge(r))}),t}function WA(e,t){var r=e.x,n=e.y,i=t.x-r,s=t.y-n,o=e.width/2,l=e.height/2;if(!i&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var u,h;return Math.abs(s)*o>Math.abs(i)*l?(s<0&&(l=-l),u=l*i/s,h=l):(i<0&&(o=-o),u=o,h=o*s/i),{x:r+u,y:n+h}}function Dc(e){var t=Dt(ra(jA(e)+1),function(){return[]});return tt(e.nodes(),function(r){var n=e.node(r),i=n.rank;Me(i)||(t[i][n.order]=r)}),t}function pH(e){var t=Ga(Dt(e.nodes(),function(r){return e.node(r).rank}));tt(e.nodes(),function(r){var n=e.node(r);Zt(n,"rank")&&(n.rank-=t)})}function mH(e){var t=Ga(Dt(e.nodes(),function(s){return e.node(s).rank})),r=[];tt(e.nodes(),function(s){var o=e.node(s).rank-t;r[o]||(r[o]=[]),r[o].push(s)});var n=0,i=e.graph().nodeRankFactor;tt(r,function(s,o){Me(s)&&o%i!==0?--n:n&&tt(s,function(l){e.node(l).rank+=n})})}function UA(e,t,r,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=r,i.order=n),vo(e,"border",i,t)}function jA(e){return ls(Dt(e.nodes(),function(t){var r=e.node(t).rank;if(!Me(r))return r}))}function gH(e,t){var r={lhs:[],rhs:[]};return tt(e,function(n){t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function yH(e,t){var r=Ck();try{return t()}finally{console.log(e+" time: "+(Ck()-r)+"ms")}}function xH(e,t){return t()}var Ao=x(()=>{"use strict";ue();na();a(vo,"addDummyNode");a(dH,"simplify");a(Vk,"asNonCompoundGraph");a(WA,"intersectRect");a(Dc,"buildLayerMatrix");a(pH,"normalizeRanks");a(mH,"removeEmptyRanks");a(UA,"addBorderNode");a(jA,"maxRank");a(gH,"partition");a(yH,"time");a(xH,"notime")});function kH(e){function t(r){var n=e.children(r),i=e.node(r);if(n.length&&tt(n,t),Object.prototype.hasOwnProperty.call(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,o=i.maxRank+1;s{"use strict";ue();Ao();a(kH,"addBorderSegments");a(bH,"addBorderNode")});function _H(e){var t=e.graph().rankdir.toLowerCase();(t==="lr"||t==="rl")&&wH(e)}function CH(e){var t=e.graph().rankdir.toLowerCase();(t==="bt"||t==="rl")&&jCt(e),(t==="lr"||t==="rl")&&(qCt(e),wH(e))}function wH(e){tt(e.nodes(),function(t){SH(e.node(t))}),tt(e.edges(),function(t){SH(e.edge(t))})}function SH(e){var t=e.width;e.width=e.height,e.height=t}function jCt(e){tt(e.nodes(),function(t){qA(e.node(t))}),tt(e.edges(),function(t){var r=e.edge(t);tt(r.points,qA),Object.prototype.hasOwnProperty.call(r,"y")&&qA(r)})}function qA(e){e.y=-e.y}function qCt(e){tt(e.nodes(),function(t){HA(e.node(t))}),tt(e.edges(),function(t){var r=e.edge(t);tt(r.points,HA),Object.prototype.hasOwnProperty.call(r,"x")&&HA(r)})}function HA(e){var t=e.x;e.x=e.y,e.y=t}var EH=x(()=>{"use strict";ue();a(_H,"adjust");a(CH,"undo");a(wH,"swapWidthHeight");a(SH,"swapWidthHeightOne");a(jCt,"reverseY");a(qA,"reverseYOne");a(qCt,"swapXY");a(HA,"swapXYOne")});function vH(e){e.graph().dummyChains=[],tt(e.edges(),function(t){YCt(e,t)})}function YCt(e,t){var r=t.v,n=e.node(r).rank,i=t.w,s=e.node(i).rank,o=t.name,l=e.edge(t),u=l.labelRank;if(s!==n+1){e.removeEdge(t);var h=void 0,f,d;for(d=0,++n;n{"use strict";ue();Ao();a(vH,"run");a(YCt,"normalizeEdge");a(AH,"undo")});function B0(e){var t={};function r(n){var i=e.node(n);if(Object.prototype.hasOwnProperty.call(t,n))return i.rank;t[n]=!0;var s=Ga(Dt(e.outEdges(n),function(o){return r(o.w)-e.edge(o).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),i.rank=s}a(r,"dfs"),tt(e.sources(),r)}function rh(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var zk=x(()=>{"use strict";ue();a(B0,"longestPath");a(rh,"slack")});function Wk(e){var t=new _r({directed:!1}),r=e.nodes()[0],n=e.nodeCount();t.setNode(r,{});for(var i,s;XCt(t,e){"use strict";ue();na();zk();a(Wk,"feasibleTree");a(XCt,"tightTree");a(KCt,"findMinSlackEdge");a(QCt,"shiftRanks")});var RH=x(()=>{"use strict"});var KA=x(()=>{"use strict"});var GEe,QA=x(()=>{"use strict";ue();KA();GEe=es(1)});var DH=x(()=>{"use strict";QA()});var ZA=x(()=>{"use strict"});var IH=x(()=>{"use strict";ZA()});var QEe,NH=x(()=>{"use strict";ue();QEe=es(1)});function JA(e){var t={},r={},n=[];function i(s){if(Object.prototype.hasOwnProperty.call(r,s))throw new F0;Object.prototype.hasOwnProperty.call(t,s)||(r[s]=!0,t[s]=!0,tt(e.predecessors(s),i),delete r[s],n.push(s))}if(a(i,"visit"),tt(e.sinks(),i),BA(t)!==e.nodeCount())throw new F0;return n}function F0(){}var t5=x(()=>{"use strict";ue();JA.CycleException=F0;a(JA,"topsort");a(F0,"CycleException");F0.prototype=new Error});var MH=x(()=>{"use strict";t5()});function Uk(e,t,r){Qt(t)||(t=[t]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],s={};return tt(t,function(o){if(!e.hasNode(o))throw new Error("Graph does not have node: "+o);OH(e,o,r==="post",s,n,i)}),i}function OH(e,t,r,n,i,s){Object.prototype.hasOwnProperty.call(n,t)||(n[t]=!0,r||s.push(t),tt(i(t),function(o){OH(e,o,r,n,i,s)}),r&&s.push(t))}var e5=x(()=>{"use strict";ue();a(Uk,"dfs");a(OH,"doDfs")});function r5(e,t){return Uk(e,t,"post")}var PH=x(()=>{"use strict";e5();a(r5,"postorder")});function n5(e,t){return Uk(e,t,"pre")}var BH=x(()=>{"use strict";e5();a(n5,"preorder")});var FH=x(()=>{"use strict";KA();Fk()});var $H=x(()=>{"use strict";RH();QA();DH();IH();NH();MH();PH();BH();FH();ZA();t5()});function Nc(e){e=dH(e),B0(e);var t=Wk(e);s5(t),i5(t,e);for(var r,n;r=WH(t);)n=UH(t,e,r),jH(t,e,r,n)}function i5(e,t){var r=r5(e,e.nodes());r=r.slice(0,r.length-1),tt(r,function(n){rwt(e,t,n)})}function rwt(e,t,r){var n=e.node(r),i=n.parent;e.edge(r,i).cutvalue=VH(e,t,r)}function VH(e,t,r){var n=e.node(r),i=n.parent,s=!0,o=t.edge(r,i),l=0;return o||(s=!1,o=t.edge(i,r)),l=o.weight,tt(t.nodeEdges(r),function(u){var h=u.v===r,f=h?u.w:u.v;if(f!==i){var d=h===s,p=t.edge(u).weight;if(l+=d?p:-p,iwt(e,r,f)){var m=e.edge(r,f).cutvalue;l+=d?-m:m}}}),l}function s5(e,t){arguments.length<2&&(t=e.nodes()[0]),zH(e,{},1,t)}function zH(e,t,r,n,i){var s=r,o=e.node(n);return t[n]=!0,tt(e.neighbors(n),function(l){Object.prototype.hasOwnProperty.call(t,l)||(r=zH(e,t,r,l,n))}),o.low=s,o.lim=r++,i?o.parent=i:delete o.parent,r}function WH(e){return Mi(e.edges(),function(t){return e.edge(t).cutvalue<0})}function UH(e,t,r){var n=r.v,i=r.w;t.hasEdge(n,i)||(n=r.w,i=r.v);var s=e.node(n),o=e.node(i),l=s,u=!1;s.lim>o.lim&&(l=o,u=!0);var h=dr(t.edges(),function(f){return u===GH(e,e.node(f.v),l)&&u!==GH(e,e.node(f.w),l)});return Zu(h,function(f){return rh(t,f)})}function jH(e,t,r,n){var i=r.v,s=r.w;e.removeEdge(i,s),e.setEdge(n.v,n.w,{}),s5(e),i5(e,t),nwt(e,t)}function nwt(e,t){var r=Mi(e.nodes(),function(i){return!t.node(i).parent}),n=n5(e,r);n=n.slice(1),tt(n,function(i){var s=e.node(i).parent,o=t.edge(i,s),l=!1;o||(o=t.edge(s,i),l=!0),t.node(i).rank=t.node(s).rank+(l?o.minlen:-o.minlen)})}function iwt(e,t,r){return e.hasEdge(t,r)}function GH(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var qH=x(()=>{"use strict";ue();$H();Ao();XA();zk();Nc.initLowLimValues=s5;Nc.initCutValues=i5;Nc.calcCutValue=VH;Nc.leaveEdge=WH;Nc.enterEdge=UH;Nc.exchangeEdges=jH;a(Nc,"networkSimplex");a(i5,"initCutValues");a(rwt,"assignCutValue");a(VH,"calcCutValue");a(s5,"initLowLimValues");a(zH,"dfsAssignLowLim");a(WH,"leaveEdge");a(UH,"enterEdge");a(jH,"exchangeEdges");a(nwt,"updateRanks");a(iwt,"isTreeEdge");a(GH,"isDescendant")});function a5(e){switch(e.graph().ranker){case"network-simplex":HH(e);break;case"tight-tree":awt(e);break;case"longest-path":swt(e);break;default:HH(e)}}function awt(e){B0(e),Wk(e)}function HH(e){Nc(e)}var swt,o5=x(()=>{"use strict";XA();qH();zk();a(a5,"rank");swt=B0;a(awt,"tightTreeRanker");a(HH,"networkSimplexRanker")});function YH(e){var t=vo(e,"root",{},"_root"),r=owt(e),n=ls(Ve(r))-1,i=2*n+1;e.graph().nestingRoot=t,tt(e.edges(),function(o){e.edge(o).minlen*=i});var s=lwt(e)+1;tt(e.children(),function(o){XH(e,t,i,s,n,r,o)}),e.graph().nodeRankFactor=i}function XH(e,t,r,n,i,s,o){var l=e.children(o);if(!l.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:r});return}var u=UA(e,"_bt"),h=UA(e,"_bb"),f=e.node(o);e.setParent(u,o),f.borderTop=u,e.setParent(h,o),f.borderBottom=h,tt(l,function(d){XH(e,t,r,n,i,s,d);var p=e.node(d),m=p.borderTop?p.borderTop:d,g=p.borderBottom?p.borderBottom:d,y=p.borderTop?n:2*n,b=m!==g?1:i-s[o]+1;e.setEdge(u,m,{weight:y,minlen:b,nestingEdge:!0}),e.setEdge(g,h,{weight:y,minlen:b,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,u,{weight:0,minlen:i+s[o]})}function owt(e){var t={};function r(n,i){var s=e.children(n);s&&s.length&&tt(s,function(o){r(o,i+1)}),t[n]=i}return a(r,"dfs"),tt(e.children(),function(n){r(n,1)}),t}function lwt(e){return pr(e.edges(),function(t,r){return t+e.edge(r).weight},0)}function KH(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,tt(e.edges(),function(r){var n=e.edge(r);n.nestingEdge&&e.removeEdge(r)})}var QH=x(()=>{"use strict";ue();Ao();a(YH,"run");a(XH,"dfs");a(owt,"treeDepths");a(lwt,"sumWeights");a(KH,"cleanup")});function ZH(e,t,r){var n={},i;tt(r,function(s){for(var o=e.parent(s),l,u;o;){if(l=e.parent(o),l?(u=n[l],n[l]=o):(u=i,i=o),u&&u!==o){t.setEdge(u,o);return}o=l}})}var JH=x(()=>{"use strict";ue();a(ZH,"addSubgraphConstraints")});function tY(e,t,r){var n=uwt(e),i=new _r({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(s){return e.node(s)});return tt(e.nodes(),function(s){var o=e.node(s),l=e.parent(s);(o.rank===t||o.minRank<=t&&t<=o.maxRank)&&(i.setNode(s),i.setParent(s,l||n),tt(e[r](s),function(u){var h=u.v===s?u.w:u.v,f=i.edge(h,s),d=Me(f)?0:f.weight;i.setEdge(h,s,{weight:e.edge(u).weight+d})}),Object.prototype.hasOwnProperty.call(o,"minRank")&&i.setNode(s,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]}))}),i}function uwt(e){for(var t;e.hasNode(t=th("_root")););return t}var eY=x(()=>{"use strict";ue();na();a(tY,"buildLayerGraph");a(uwt,"createRootNode")});function rY(e,t){for(var r=0,n=1;n0;)f%2&&(d+=l[f+1]),f=f-1>>1,l[f]+=h.weight;u+=h.weight*d})),u}var nY=x(()=>{"use strict";ue();a(rY,"crossCount");a(hwt,"twoLayerCrossCount")});function iY(e){var t={},r=dr(e.nodes(),function(l){return!e.children(l).length}),n=ls(Dt(r,function(l){return e.node(l).rank})),i=Dt(ra(n+1),function(){return[]});function s(l){if(!Zt(t,l)){t[l]=!0;var u=e.node(l);i[u.rank].push(l),tt(e.successors(l),s)}}a(s,"dfs");var o=Eo(r,function(l){return e.node(l).rank});return tt(o,s),i}var sY=x(()=>{"use strict";ue();a(iY,"initOrder")});function aY(e,t){return Dt(t,function(r){var n=e.inEdges(r);if(n.length){var i=pr(n,function(s,o){var l=e.edge(o),u=e.node(o.v);return{sum:s.sum+l.weight*u.order,weight:s.weight+l.weight}},{sum:0,weight:0});return{v:r,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:r}})}var oY=x(()=>{"use strict";ue();a(aY,"barycenter")});function lY(e,t){var r={};tt(e,function(i,s){var o=r[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:s};Me(i.barycenter)||(o.barycenter=i.barycenter,o.weight=i.weight)}),tt(t.edges(),function(i){var s=r[i.v],o=r[i.w];!Me(s)&&!Me(o)&&(o.indegree++,s.out.push(r[i.w]))});var n=dr(r,function(i){return!i.indegree});return fwt(n)}function fwt(e){var t=[];function r(s){return function(o){o.merged||(Me(o.barycenter)||Me(s.barycenter)||o.barycenter>=s.barycenter)&&dwt(s,o)}}a(r,"handleIn");function n(s){return function(o){o.in.push(s),--o.indegree===0&&e.push(o)}}for(a(n,"handleOut");e.length;){var i=e.pop();t.push(i),tt(i.in.reverse(),r(i)),tt(i.out,n(i))}return Dt(dr(t,function(s){return!s.merged}),function(s){return Ju(s,["vs","i","barycenter","weight"])})}function dwt(e,t){var r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}var cY=x(()=>{"use strict";ue();a(lY,"resolveConflicts");a(fwt,"doResolveConflicts");a(dwt,"mergeEntries")});function hY(e,t){var r=gH(e,function(f){return Object.prototype.hasOwnProperty.call(f,"barycenter")}),n=r.lhs,i=Eo(r.rhs,function(f){return-f.i}),s=[],o=0,l=0,u=0;n.sort(pwt(!!t)),u=uY(s,i,u),tt(n,function(f){u+=f.vs.length,s.push(f.vs),o+=f.barycenter*f.weight,l+=f.weight,u=uY(s,i,u)});var h={vs:fr(s)};return l&&(h.barycenter=o/l,h.weight=l),h}function uY(e,t,r){for(var n;t.length&&(n=ii(t)).i<=r;)t.pop(),e.push(n.vs),r++;return r}function pwt(e){return function(t,r){return t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}}var fY=x(()=>{"use strict";ue();Ao();a(hY,"sort");a(uY,"consumeUnsortable");a(pwt,"compareWithBias")});function l5(e,t,r,n){var i=e.children(t),s=e.node(t),o=s?s.borderLeft:void 0,l=s?s.borderRight:void 0,u={};o&&(i=dr(i,function(g){return g!==o&&g!==l}));var h=aY(e,i);tt(h,function(g){if(e.children(g.v).length){var y=l5(e,g.v,r,n);u[g.v]=y,Object.prototype.hasOwnProperty.call(y,"barycenter")&&gwt(g,y)}});var f=lY(h,r);mwt(f,u);var d=hY(f,n);if(o&&(d.vs=fr([o,d.vs,l]),e.predecessors(o).length)){var p=e.node(e.predecessors(o)[0]),m=e.node(e.predecessors(l)[0]);Object.prototype.hasOwnProperty.call(d,"barycenter")||(d.barycenter=0,d.weight=0),d.barycenter=(d.barycenter*d.weight+p.order+m.order)/(d.weight+2),d.weight+=2}return d}function mwt(e,t){tt(e,function(r){r.vs=fr(r.vs.map(function(n){return t[n]?t[n].vs:n}))})}function gwt(e,t){Me(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}var dY=x(()=>{"use strict";ue();oY();cY();fY();a(l5,"sortSubgraph");a(mwt,"expandSubgraphs");a(gwt,"mergeBarycenters")});function gY(e){var t=jA(e),r=pY(e,ra(1,t+1),"inEdges"),n=pY(e,ra(t-1,-1,-1),"outEdges"),i=iY(e);mY(e,i);for(var s=Number.POSITIVE_INFINITY,o,l=0,u=0;u<4;++l,++u){ywt(l%2?r:n,l%4>=2),i=Dc(e);var h=rY(e,i);h{"use strict";ue();na();Ao();JH();eY();nY();sY();dY();a(gY,"order");a(pY,"buildLayerGraphs");a(ywt,"sweepLayerGraphs");a(mY,"assignOrder")});function xY(e){var t=bwt(e);tt(e.graph().dummyChains,function(r){for(var n=e.node(r),i=n.edgeObj,s=xwt(e,t,i.v,i.w),o=s.path,l=s.lca,u=0,h=o[u],f=!0;r!==i.w;){if(n=e.node(r),f){for(;(h=o[u])!==l&&e.node(h).maxRanko||l>t[u].lim));for(h=u,u=n;(u=e.parent(u))!==h;)s.push(u);return{path:i.concat(s.reverse()),lca:h}}function bwt(e){var t={},r=0;function n(i){var s=r;tt(e.children(i),n),t[i]={low:s,lim:r++}}return a(n,"dfs"),tt(e.children(),n),t}var bY=x(()=>{"use strict";ue();a(xY,"parentDummyChains");a(xwt,"findPath");a(bwt,"postorder")});function kwt(e,t){var r={};function n(i,s){var o=0,l=0,u=i.length,h=ii(s);return tt(s,function(f,d){var p=Swt(e,f),m=p?e.node(p).order:u;(p||f===h)&&(tt(s.slice(l,d+1),function(g){tt(e.predecessors(g),function(y){var b=e.node(y),k=b.order;(kh)&&kY(r,p,f)})})}a(n,"scan");function i(s,o){var l=-1,u,h=0;return tt(o,function(f,d){if(e.node(f).dummy==="border"){var p=e.predecessors(f);p.length&&(u=e.node(p[0]).order,n(o,h,d,l,u),h=d,l=u)}n(o,h,o.length,u,s.length)}),o}return a(i,"visitLayer"),pr(t,i),r}function Swt(e,t){if(e.node(t).dummy)return Mi(e.predecessors(t),function(r){return e.node(r).dummy})}function kY(e,t,r){if(t>r){var n=t;t=r,r=n}var i=e[t];i||(e[t]=i={}),i[r]=!0}function _wt(e,t,r){if(t>r){var n=t;t=r,r=n}return!!e[t]&&Object.prototype.hasOwnProperty.call(e[t],r)}function Cwt(e,t,r,n){var i={},s={},o={};return tt(t,function(l){tt(l,function(u,h){i[u]=u,s[u]=u,o[u]=h})}),tt(t,function(l){var u=-1;tt(l,function(h){var f=n(h);if(f.length){f=Eo(f,function(y){return o[y]});for(var d=(f.length-1)/2,p=Math.floor(d),m=Math.ceil(d);p<=m;++p){var g=f[p];s[h]===h&&u{"use strict";ue();na();Ao();a(kwt,"findType1Conflicts");a(Twt,"findType2Conflicts");a(Swt,"findOtherInnerSegmentNode");a(kY,"addConflict");a(_wt,"hasConflict");a(Cwt,"verticalAlignment");a(wwt,"horizontalCompaction");a(Ewt,"buildBlockGraph");a(vwt,"findSmallestWidthAlignment");a(Awt,"alignCoordinates");a(Lwt,"balance");a(TY,"positionX");a(Rwt,"sep");a(Dwt,"width")});function _Y(e){e=Vk(e),Iwt(e),AA(TY(e),function(t,r){e.node(r).x=t})}function Iwt(e){var t=Dc(e),r=e.graph().ranksep,n=0;tt(t,function(i){var s=ls(Dt(i,function(o){return e.node(o).height}));tt(i,function(o){e.node(o).y=n+s/2}),n+=s+r})}var CY=x(()=>{"use strict";ue();Ao();SY();a(_Y,"position");a(Iwt,"positionY")});function $0(e,t){var r=t&&t.debugTiming?yH:xH;r("layout",()=>{var n=r(" buildLayoutGraph",()=>Wwt(e));r(" runLayout",()=>Nwt(n,r)),r(" updateInputGraph",()=>Mwt(e,n))})}function Nwt(e,t){t(" makeSpaceForEdgeLabels",()=>Uwt(e)),t(" removeSelfEdges",()=>Jwt(e)),t(" acyclic",()=>uH(e)),t(" nestingGraph.run",()=>YH(e)),t(" rank",()=>a5(Vk(e))),t(" injectEdgeLabelProxies",()=>jwt(e)),t(" removeEmptyRanks",()=>mH(e)),t(" nestingGraph.cleanup",()=>KH(e)),t(" normalizeRanks",()=>pH(e)),t(" assignRankMinMax",()=>qwt(e)),t(" removeEdgeLabelProxies",()=>Hwt(e)),t(" normalize.run",()=>vH(e)),t(" parentDummyChains",()=>xY(e)),t(" addBorderSegments",()=>kH(e)),t(" order",()=>gY(e)),t(" insertSelfEdges",()=>tEt(e)),t(" adjustCoordinateSystem",()=>_H(e)),t(" position",()=>_Y(e)),t(" positionSelfEdges",()=>eEt(e)),t(" removeBorderNodes",()=>Zwt(e)),t(" normalize.undo",()=>AH(e)),t(" fixupEdgeLabelCoords",()=>Kwt(e)),t(" undoCoordinateSystem",()=>CH(e)),t(" translateGraph",()=>Ywt(e)),t(" assignNodeIntersects",()=>Xwt(e)),t(" reversePoints",()=>Qwt(e)),t(" acyclic.undo",()=>hH(e))}function Mwt(e,t){tt(e.nodes(),function(r){var n=e.node(r),i=t.node(r);n&&(n.x=i.x,n.y=i.y,t.children(r).length&&(n.width=i.width,n.height=i.height))}),tt(e.edges(),function(r){var n=e.edge(r),i=t.edge(r);n.points=i.points,Object.prototype.hasOwnProperty.call(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}function Wwt(e){var t=new _r({multigraph:!0,compound:!0}),r=u5(e.graph());return t.setGraph(mc({},Pwt,c5(r,Owt),Ju(r,Bwt))),tt(e.nodes(),function(n){var i=u5(e.node(n));t.setNode(n,Ac(c5(i,Fwt),$wt)),t.setParent(n,e.parent(n))}),tt(e.edges(),function(n){var i=u5(e.edge(n));t.setEdge(n,mc({},Vwt,c5(i,Gwt),Ju(i,zwt)))}),t}function Uwt(e){var t=e.graph();t.ranksep/=2,tt(e.edges(),function(r){var n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function jwt(e){tt(e.edges(),function(t){var r=e.edge(t);if(r.width&&r.height){var n=e.node(t.v),i=e.node(t.w),s={rank:(i.rank-n.rank)/2+n.rank,e:t};vo(e,"edge-proxy",s,"_ep")}})}function qwt(e){var t=0;tt(e.nodes(),function(r){var n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=ls(t,n.maxRank))}),e.graph().maxRank=t}function Hwt(e){tt(e.nodes(),function(t){var r=e.node(t);r.dummy==="edge-proxy"&&(e.edge(r.e).labelRank=r.rank,e.removeNode(t))})}function Ywt(e){var t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,i=0,s=e.graph(),o=s.marginx||0,l=s.marginy||0;function u(h){var f=h.x,d=h.y,p=h.width,m=h.height;t=Math.min(t,f-p/2),r=Math.max(r,f+p/2),n=Math.min(n,d-m/2),i=Math.max(i,d+m/2)}a(u,"getExtremes"),tt(e.nodes(),function(h){u(e.node(h))}),tt(e.edges(),function(h){var f=e.edge(h);Object.prototype.hasOwnProperty.call(f,"x")&&u(f)}),t-=o,n-=l,tt(e.nodes(),function(h){var f=e.node(h);f.x-=t,f.y-=n}),tt(e.edges(),function(h){var f=e.edge(h);tt(f.points,function(d){d.x-=t,d.y-=n}),Object.prototype.hasOwnProperty.call(f,"x")&&(f.x-=t),Object.prototype.hasOwnProperty.call(f,"y")&&(f.y-=n)}),s.width=r-t+o,s.height=i-n+l}function Xwt(e){tt(e.edges(),function(t){var r=e.edge(t),n=e.node(t.v),i=e.node(t.w),s,o;r.points?(s=r.points[0],o=r.points[r.points.length-1]):(r.points=[],s=i,o=n),r.points.unshift(WA(n,s)),r.points.push(WA(i,o))})}function Kwt(e){tt(e.edges(),function(t){var r=e.edge(t);if(Object.prototype.hasOwnProperty.call(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function Qwt(e){tt(e.edges(),function(t){var r=e.edge(t);r.reversed&&r.points.reverse()})}function Zwt(e){tt(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),n=e.node(r.borderTop),i=e.node(r.borderBottom),s=e.node(ii(r.borderLeft)),o=e.node(ii(r.borderRight));r.width=Math.abs(o.x-s.x),r.height=Math.abs(i.y-n.y),r.x=s.x+r.width/2,r.y=n.y+r.height/2}}),tt(e.nodes(),function(t){e.node(t).dummy==="border"&&e.removeNode(t)})}function Jwt(e){tt(e.edges(),function(t){if(t.v===t.w){var r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function tEt(e){var t=Dc(e);tt(t,function(r){var n=0;tt(r,function(i,s){var o=e.node(i);o.order=s+n,tt(o.selfEdges,function(l){vo(e,"selfedge",{width:l.label.width,height:l.label.height,rank:o.rank,order:s+ ++n,e:l.e,label:l.label},"_se")}),delete o.selfEdges})})}function eEt(e){tt(e.nodes(),function(t){var r=e.node(t);if(r.dummy==="selfedge"){var n=e.node(r.e.v),i=n.x+n.width/2,s=n.y,o=r.x-i,l=n.height/2;e.setEdge(r.e,r.label),e.removeNode(t),r.label.points=[{x:i+2*o/3,y:s-l},{x:i+5*o/6,y:s-l},{x:i+o,y:s},{x:i+5*o/6,y:s+l},{x:i+2*o/3,y:s+l}],r.label.x=r.x,r.label.y=r.y}})}function c5(e,t){return Qu(Ju(e,t),Number)}function u5(e){var t={};return tt(e,function(r,n){t[n.toLowerCase()]=r}),t}var Owt,Pwt,Bwt,Fwt,$wt,Gwt,Vwt,zwt,wY=x(()=>{"use strict";ue();na();TH();EH();zA();YA();o5();QH();yY();bY();CY();Ao();a($0,"layout");a(Nwt,"runLayout");a(Mwt,"updateInputGraph");Owt=["nodesep","edgesep","ranksep","marginx","marginy"],Pwt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},Bwt=["acyclicer","ranker","rankdir","align"],Fwt=["width","height"],$wt={width:0,height:0},Gwt=["minlen","weight","width","height","labeloffset"],Vwt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},zwt=["labelpos"];a(Wwt,"buildLayoutGraph");a(Uwt,"makeSpaceForEdgeLabels");a(jwt,"injectEdgeLabelProxies");a(qwt,"assignRankMinMax");a(Hwt,"removeEdgeLabelProxies");a(Ywt,"translateGraph");a(Xwt,"assignNodeIntersects");a(Kwt,"fixupEdgeLabelCoords");a(Qwt,"reversePointsForReversedEdges");a(Zwt,"removeBorderNodes");a(Jwt,"removeSelfEdges");a(tEt,"insertSelfEdges");a(eEt,"positionSelfEdges");a(c5,"selectNumberAttrs");a(u5,"canonicalize")});var h5=x(()=>{"use strict";zA();wY();YA();o5()});function ia(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:rEt(e),edges:nEt(e)};return Me(e.graph())||(t.value=Sr(e.graph())),t}function rEt(e){return Dt(e.nodes(),function(t){var r=e.node(t),n=e.parent(t),i={v:t};return Me(r)||(i.value=r),Me(n)||(i.parent=n),i})}function nEt(e){return Dt(e.edges(),function(t){var r=e.edge(t),n={v:t.v,w:t.w};return Me(t.name)||(n.name=t.name),Me(r)||(n.value=r),n})}var f5=x(()=>{"use strict";ue();Fk();a(ia,"write");a(rEt,"writeNodes");a(nEt,"writeEdges")});var ze,nh,AY,LY,jk,iEt,RY,DY,sEt,Ld,vY,IY,NY,MY,OY,PY=x(()=>{"use strict";zt();na();f5();ze=new Map,nh=new Map,AY=new Map,LY=a(()=>{nh.clear(),AY.clear(),ze.clear()},"clear"),jk=a((e,t)=>{let r=nh.get(t)||[];return P.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),iEt=a((e,t)=>{let r=nh.get(t)||[];return P.info("Descendants of ",t," is ",r),P.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||jk(e.v,t)||jk(e.w,t)||r.includes(e.w):(P.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),RY=a((e,t,r,n)=>{P.warn("Copying children of ",e,"root",n,"data",t.node(e),n);let i=t.children(e)||[];e!==n&&i.push(e),P.warn("Copying (nodes) clusterId",e,"nodes",i),i.forEach(s=>{if(t.children(s).length>0)RY(s,t,r,n);else{let o=t.node(s);P.info("cp ",s," to ",n," with parent ",e),r.setNode(s,o),n!==t.parent(s)&&(P.warn("Setting parent",s,t.parent(s)),r.setParent(s,t.parent(s))),e!==n&&s!==e?(P.debug("Setting parent",s,e),r.setParent(s,e)):(P.info("In copy ",e,"root",n,"data",t.node(e),n),P.debug("Not Setting parent for node=",s,"cluster!==rootId",e!==n,"node!==clusterId",s!==e));let l=t.edges(s);P.debug("Copying Edges",l),l.forEach(u=>{P.info("Edge",u);let h=t.edge(u.v,u.w,u.name);P.info("Edge data",h,n);try{iEt(u,n)?(P.info("Copying as ",u.v,u.w,h,u.name),r.setEdge(u.v,u.w,h,u.name),P.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):P.info("Skipping copy of edge ",u.v,"-->",u.w," rootId: ",n," clusterId:",e)}catch(f){P.error(f)}})}P.debug("Removing node",s),t.removeNode(s)})},"copy"),DY=a((e,t)=>{let r=t.children(e),n=[...r];for(let i of r)AY.set(i,e),n=[...n,...DY(i,t)];return n},"extractDescendants"),sEt=a((e,t,r)=>{let n=e.edges().filter(u=>u.v===t||u.w===t),i=e.edges().filter(u=>u.v===r||u.w===r),s=n.map(u=>({v:u.v===t?r:u.v,w:u.w===t?t:u.w})),o=i.map(u=>({v:u.v,w:u.w}));return s.filter(u=>o.some(h=>u.v===h.v&&u.w===h.w))},"findCommonEdges"),Ld=a((e,t,r)=>{let n=t.children(e);if(P.trace("Searching children of id ",e,n),n.length<1)return e;let i;for(let s of n){let o=Ld(s,t,r),l=sEt(t,r,o);if(o)if(l.length>0)i=o;else return o}return i},"findNonClusterChild"),vY=a(e=>!ze.has(e)||!ze.get(e).externalConnections?e:ze.has(e)?ze.get(e).id:e,"getAnchorId"),IY=a((e,t)=>{if(!e||t>10){P.debug("Opting out, no graph ");return}else P.debug("Opting in, graph ");e.nodes().forEach(function(r){e.children(r).length>0&&(P.warn("Cluster identified",r," Replacement id in edges: ",Ld(r,e,r)),nh.set(r,DY(r,e)),ze.set(r,{id:Ld(r,e,r),clusterData:e.node(r)}))}),e.nodes().forEach(function(r){let n=e.children(r),i=e.edges();n.length>0?(P.debug("Cluster identified",r,nh),i.forEach(s=>{let o=jk(s.v,r),l=jk(s.w,r);o^l&&(P.warn("Edge: ",s," leaves cluster ",r),P.warn("Descendants of XXX ",r,": ",nh.get(r)),ze.get(r).externalConnections=!0)})):P.debug("Not a cluster ",r,nh)});for(let r of ze.keys()){let n=ze.get(r).id,i=e.parent(n);i!==r&&ze.has(i)&&!ze.get(i).externalConnections&&(ze.get(r).id=i)}e.edges().forEach(function(r){let n=e.edge(r);P.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),P.warn("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(e.edge(r)));let i=r.v,s=r.w;if(P.warn("Fix XXX",ze,"ids:",r.v,r.w,"Translating: ",ze.get(r.v)," --- ",ze.get(r.w)),ze.get(r.v)||ze.get(r.w)){if(P.warn("Fixing and trying - removing XXX",r.v,r.w,r.name),i=vY(r.v),s=vY(r.w),e.removeEdge(r.v,r.w,r.name),i!==r.v){let o=e.parent(i);ze.get(o).externalConnections=!0,n.fromCluster=r.v}if(s!==r.w){let o=e.parent(s);ze.get(o).externalConnections=!0,n.toCluster=r.w}P.warn("Fix Replacing with XXX",i,s,r.name),e.setEdge(i,s,n,r.name)}}),P.warn("Adjusted Graph",ia(e)),NY(e,0),P.trace(ze)},"adjustClustersAndEdges"),NY=a((e,t)=>{if(P.warn("extractor - ",t,ia(e),e.children("D")),t>10){P.error("Bailing out");return}let r=e.nodes(),n=!1;for(let i of r){let s=e.children(i);n=n||s.length>0}if(!n){P.debug("Done, no node has children",e.nodes());return}P.debug("Nodes = ",r,t);for(let i of r)if(P.debug("Extracting node",i,ze,ze.has(i)&&!ze.get(i).externalConnections,!e.parent(i),e.node(i),e.children("D")," Depth ",t),!ze.has(i))P.debug("Not a cluster",i,t);else if(!ze.get(i).externalConnections&&e.children(i)&&e.children(i).length>0){P.warn("Cluster without external connections, without a parent and with children",i,t);let o=e.graph().rankdir==="TB"?"LR":"TB";ze.get(i)?.clusterData?.dir&&(o=ze.get(i).clusterData.dir,P.warn("Fixing dir",ze.get(i).clusterData.dir,o));let l=new _r({multigraph:!0,compound:!0}).setGraph({rankdir:o,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});P.warn("Old graph before copy",ia(e)),RY(i,e,l,i),e.setNode(i,{clusterNode:!0,id:i,clusterData:ze.get(i).clusterData,label:ze.get(i).label,graph:l}),P.warn("New graph after copy node: (",i,")",ia(l)),P.debug("Old graph after copy",ia(e))}else P.warn("Cluster ** ",i," **not meeting the criteria !externalConnections:",!ze.get(i).externalConnections," no parent: ",!e.parent(i)," children ",e.children(i)&&e.children(i).length>0,e.children("D"),t),P.debug(ze);r=e.nodes(),P.warn("New list of nodes",r);for(let i of r){let s=e.node(i);P.warn(" Now next level",i,s),s?.clusterNode&&NY(s.graph,t+1)}},"extractor"),MY=a((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(n=>{let i=e.children(n),s=MY(e,i);r=[...r,...s]}),r},"sorter"),OY=a(e=>MY(e,e.children()),"sortNodesByHierarchy")});var FY={};Be(FY,{render:()=>aEt});var BY,aEt,$Y=x(()=>{"use strict";h5();f5();na();K4();re();PY();zb();Ib();X4();zt();L0();pe();BY=a(async(e,t,r,n,i,s)=>{P.warn("Graph in recursive render:XAX",ia(t),i);let o=t.graph().rankdir;P.trace("Dir in recursive render - dir:",o);let l=e.insert("g").attr("class","root");t.nodes()?P.info("Recursive render XXX",t.nodes()):P.info("No nodes found for",t),t.edges().length>0&&P.info("Recursive edges",t.edge(t.edges()[0]));let u=l.insert("g").attr("class","clusters"),h=l.insert("g").attr("class","edgePaths"),f=l.insert("g").attr("class","edgeLabels"),d=l.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(y){let b=t.node(y);if(i!==void 0){let k=JSON.parse(JSON.stringify(i.clusterData));P.trace(`Setting data for parent cluster XXX
+ Node.id = `,y,`
+ data=`,k.height,`
+Parent cluster`,i.height),t.setNode(i.id,k),t.parent(y)||(P.trace("Setting parent",y,i.id),t.setParent(y,i.id,k))}if(P.info("(Insert) Node XXX"+y+": "+JSON.stringify(t.node(y))),b?.clusterNode){P.info("Cluster identified XBX",y,b.width,t.node(y));let{ranksep:k,nodesep:T}=t.graph();b.graph.setGraph({...b.graph.graph(),ranksep:k+25,nodesep:T});let _=await BY(d,b.graph,r,n,t.node(y),s),L=_.elem;Ct(b,L),b.diff=_.diff||0,P.info("New compound node after recursive render XAX",y,"width",b.width,"height",b.height),rW(L,b)}else t.children(y).length>0?(P.trace("Cluster - the non recursive path XBX",y,b.id,b,b.width,"Graph:",t),P.trace(Ld(b.id,t)),ze.set(b.id,{id:Ld(b.id,t),node:b})):(P.trace("Node - the non recursive path XAX",y,d,t.node(y),o),await cd(d,t.node(y),{config:s,dir:o}))})),await a(async()=>{let y=t.edges().map(async function(b){let k=t.edge(b.v,b.w,b.name);P.info("Edge "+b.v+" -> "+b.w+": "+JSON.stringify(b)),P.info("Edge "+b.v+" -> "+b.w+": ",b," ",JSON.stringify(t.edge(b))),P.info("Fix",ze,"ids:",b.v,b.w,"Translating: ",ze.get(b.v),ze.get(b.w)),await Bb(f,k)});await Promise.all(y)},"processEdges")(),P.info("Graph before layout:",JSON.stringify(ia(t))),P.info("############################################# XXX"),P.info("### Layout ### XXX"),P.info("############################################# XXX"),$0(t),P.info("Graph after layout:",JSON.stringify(ia(t)));let m=0,{subGraphTitleTotalMargin:g}=yl(s);return await Promise.all(OY(t).map(async function(y){let b=t.node(y);if(P.info("Position XBX => "+y+": ("+b.x,","+b.y,") width: ",b.width," height: ",b.height),b?.clusterNode)b.y+=g,P.info("A tainted cluster node XBX1",y,b.id,b.width,b.height,b.x,b.y,t.parent(y)),ze.get(b.id).node=b,D0(b);else if(t.children(y).length>0){P.info("A pure cluster node XBX1",y,b.id,b.x,b.y,b.width,b.height,t.parent(y)),b.height+=g,t.node(b.parentId);let k=b?.padding/2||0,T=b?.labelBBox?.height||0,_=T-k||0;P.debug("OffsetY",_,"labelHeight",T,"halfPadding",k),await ld(u,b),ze.get(b.id).node=b}else{let k=t.node(b.parentId);b.y+=g/2,P.info("A regular node XBX1 - using the padding",b.id,"parent",b.parentId,b.width,b.height,b.x,b.y,"offsetY",b.offsetY,"parent",k,k?.offsetY,b),D0(b)}})),t.edges().forEach(function(y){let b=t.edge(y);P.info("Edge "+y.v+" -> "+y.w+": "+JSON.stringify(b),b),b.points.forEach(L=>L.y+=g/2);let k=t.node(y.v);var T=t.node(y.w);let _=$b(h,b,ze,r,k,T,n);Fb(b,_)}),t.nodes().forEach(function(y){let b=t.node(y);P.info(y,b.type,b.diff),b.isGroup&&(m=b.diff)}),P.warn("Returning from recursive render XAX",l,m),{elem:l,diff:m}},"recursiveRender"),aEt=a(async(e,t)=>{let r=new _r({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=t.select("g");Gb(n,e.markers,e.type,e.diagramId),nW(),eW(),Xz(),LY(),e.nodes.forEach(s=>{r.setNode(s.id,{...s}),s.parentId&&r.setParent(s.id,s.parentId)}),P.debug("Edges:",e.edges),e.edges.forEach(s=>{if(s.start===s.end){let o=s.start,l=o+"---"+o+"---1",u=o+"---"+o+"---2",h=r.node(o);r.setNode(l,{domId:l,id:l,parentId:h.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),r.setParent(l,h.parentId),r.setNode(u,{domId:u,id:u,parentId:h.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),r.setParent(u,h.parentId);let f=structuredClone(s),d=structuredClone(s),p=structuredClone(s);f.label="",f.arrowTypeEnd="none",f.id=o+"-cyclic-special-1",d.arrowTypeStart="none",d.arrowTypeEnd="none",d.id=o+"-cyclic-special-mid",p.label="",h.isGroup&&(f.fromCluster=o,p.toCluster=o),p.id=o+"-cyclic-special-2",p.arrowTypeStart="none",r.setEdge(o,l,f,o+"-cyclic-special-0"),r.setEdge(l,u,d,o+"-cyclic-special-1"),r.setEdge(u,o,p,o+"-cyc{"use strict";sW();zt();G0={},d5=a(e=>{for(let t of e)G0[t.name]=t},"registerLayoutLoaders"),oEt=a(()=>{d5([{name:"dagre",loader:a(async()=>await Promise.resolve().then(()=>($Y(),FY)),"loader")}])},"registerDefaultLayoutLoaders");oEt();Lo=a(async(e,t)=>{if(!(e.layoutAlgorithm in G0))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);let r=G0[e.layoutAlgorithm];return(await r.loader()).render(e,t,iW,{algorithm:r.algorithm})},"render"),Mc=a((e="",{fallback:t="dagre"}={})=>{if(e in G0)return e;if(t in G0)return P.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm")});var Ro,lEt,cEt,Rd=x(()=>{"use strict";Gn();zt();Ro=a((e,t,r,n)=>{e.attr("class",r);let{width:i,height:s,x:o,y:l}=lEt(e,t);Rr(e,s,i,n);let u=cEt(o,l,i,s,t);e.attr("viewBox",u),P.debug(`viewBox configured: ${u} with padding: ${t}`)},"setupViewPortForSVG"),lEt=a((e,t)=>{let r=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:r.width+t*2,height:r.height+t*2,x:r.x,y:r.y}},"calculateDimensionsWithPadding"),cEt=a((e,t,r,n,i)=>`${e-i} ${t-i} ${r} ${n}`,"createViewBox")});var uEt,hEt,GY,VY=x(()=>{"use strict";$e();pe();zt();od();ih();Rd();Ee();uEt=a(function(e,t){return t.db.getClasses()},"getClasses"),hEt=a(async function(e,t,r,n){P.info("REF0:"),P.info("Drawing state diagram (v2)",t);let{securityLevel:i,flowchart:s,layout:o}=Y(),l;i==="sandbox"&&(l=xt("#i"+t));let u=i==="sandbox"?l.nodes()[0].contentDocument:document;P.debug("Before getData: ");let h=n.db.getData();P.debug("Data: ",h);let f=ko(t,i),d=n.db.getDirection();h.type=n.type,h.layoutAlgorithm=Mc(o),h.layoutAlgorithm==="dagre"&&o==="elk"&&P.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."),h.direction=d,h.nodeSpacing=s?.nodeSpacing||50,h.rankSpacing=s?.rankSpacing||50,h.markers=["point","circle","cross"],h.diagramId=t,P.debug("REF1:",h),await Lo(h,f);let p=h.config.flowchart?.diagramPadding??8;se.insertTitle(f,"flowchartTitleText",s?.titleTopMargin||0,n.db.getDiagramTitle()),Ro(f,p,"flowchart",s?.useMaxWidth||!1);for(let m of h.nodes){let g=xt(`#${t} [id="${m.id}"]`);if(!g||!m.link)continue;let y=u.createElementNS("http://www.w3.org/2000/svg","a");y.setAttributeNS("http://www.w3.org/2000/svg","class",m.cssClasses),y.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),i==="sandbox"?y.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):m.linkTarget&&y.setAttributeNS("http://www.w3.org/2000/svg","target",m.linkTarget);let b=g.insert(function(){return y},":first-child"),k=g.select(".label-container");k&&b.append(function(){return k.node()});let T=g.select(".label");T&&b.append(function(){return T.node()})}},"draw"),GY={getClasses:uEt,draw:hEt}});var p5,m5,zY=x(()=>{"use strict";p5=function(){var e=a(function(ya,ie,Se,Ie){for(Se=Se||{},Ie=ya.length;Ie--;Se[ya[Ie]]=ie);return Se},"o"),t=[1,4],r=[1,3],n=[1,5],i=[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],s=[2,2],o=[1,13],l=[1,14],u=[1,15],h=[1,16],f=[1,23],d=[1,25],p=[1,26],m=[1,27],g=[1,49],y=[1,48],b=[1,29],k=[1,30],T=[1,31],_=[1,32],L=[1,33],C=[1,44],D=[1,46],$=[1,42],w=[1,47],A=[1,43],F=[1,50],S=[1,45],v=[1,51],R=[1,52],B=[1,34],I=[1,35],M=[1,36],O=[1,37],N=[1,57],E=[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],V=[1,61],G=[1,60],J=[1,62],rt=[8,9,11,75,77,78],nt=[1,78],ct=[1,91],pt=[1,96],Lt=[1,95],bt=[1,92],ut=[1,88],it=[1,94],st=[1,90],X=[1,97],H=[1,93],at=[1,98],W=[1,89],mt=[8,9,10,11,40,75,77,78],q=[8,9,10,11,40,46,75,77,78],Z=[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],ye=[8,9,11,44,60,75,77,78,89,102,105,106,109,111,114,115,116],ot=[44,60,89,102,105,106,109,111,114,115,116],Jt=[1,121],ve=[1,122],te=[1,124],vt=[1,123],It=[44,60,62,74,89,102,105,106,109,111,114,115,116],yt=[1,133],ht=[1,147],wt=[1,148],Q=[1,149],Nt=[1,150],z=[1,135],$t=[1,137],U=[1,141],Tt=[1,142],gt=[1,143],Yt=[1,144],Mt=[1,145],kt=[1,146],Ge=[1,151],Pt=[1,152],nr=[1,131],Ze=[1,132],yr=[1,139],Je=[1,134],ke=[1,138],He=[1,136],Te=[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],ur=[1,154],yn=[1,156],we=[8,9,11],Oe=[8,9,10,11,14,44,60,89,105,106,109,111,114,115,116],Ae=[1,176],xe=[1,172],he=[1,173],ge=[1,177],be=[1,174],jt=[1,175],An=[77,116,119],ne=[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],Si=[10,106],fn=[31,49,51,53,55,57,62,64,66,67,69,71,116,117,118],Pr=[1,247],vr=[1,245],ci=[1,249],Kt=[1,243],et=[1,244],Bt=[1,246],Xt=[1,248],tr=[1,250],rn=[1,268],xn=[8,9,11,106],Wr=[8,9,10,11,60,84,105,106,109,110,111,112],Xi={trace:a(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,$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"},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]],performAction:a(function(ie,Se,Ie,Vt,Br,j,su){var K=j.length-1;switch(Br){case 2:this.$=[];break;case 3:(!Array.isArray(j[K])||j[K].length>0)&&j[K-1].push(j[K]),this.$=j[K-1];break;case 4:case 183:this.$=j[K];break;case 11:Vt.setDirection("TB"),this.$="TB";break;case 12:Vt.setDirection(j[K-1]),this.$=j[K-1];break;case 27:this.$=j[K-1].nodes;break;case 28:case 29:case 30:case 31:case 32:this.$=[];break;case 33:this.$=Vt.addSubGraph(j[K-6],j[K-1],j[K-4]);break;case 34:this.$=Vt.addSubGraph(j[K-3],j[K-1],j[K-3]);break;case 35:this.$=Vt.addSubGraph(void 0,j[K-1],void 0);break;case 37:this.$=j[K].trim(),Vt.setAccTitle(this.$);break;case 38:case 39:this.$=j[K].trim(),Vt.setAccDescription(this.$);break;case 43:this.$=j[K-1]+j[K];break;case 44:this.$=j[K];break;case 45:Vt.addVertex(j[K-1][j[K-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,j[K]),Vt.addLink(j[K-3].stmt,j[K-1],j[K-2]),this.$={stmt:j[K-1],nodes:j[K-1].concat(j[K-3].nodes)};break;case 46:Vt.addLink(j[K-2].stmt,j[K],j[K-1]),this.$={stmt:j[K],nodes:j[K].concat(j[K-2].nodes)};break;case 47:Vt.addLink(j[K-3].stmt,j[K-1],j[K-2]),this.$={stmt:j[K-1],nodes:j[K-1].concat(j[K-3].nodes)};break;case 48:this.$={stmt:j[K-1],nodes:j[K-1]};break;case 49:Vt.addVertex(j[K-1][j[K-1].length-1],void 0,void 0,void 0,void 0,void 0,void 0,j[K]),this.$={stmt:j[K-1],nodes:j[K-1],shapeData:j[K]};break;case 50:this.$={stmt:j[K],nodes:j[K]};break;case 51:this.$=[j[K]];break;case 52:Vt.addVertex(j[K-5][j[K-5].length-1],void 0,void 0,void 0,void 0,void 0,void 0,j[K-4]),this.$=j[K-5].concat(j[K]);break;case 53:this.$=j[K-4].concat(j[K]);break;case 54:this.$=j[K];break;case 55:this.$=j[K-2],Vt.setClass(j[K-2],j[K]);break;case 56:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"square");break;case 57:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"doublecircle");break;case 58:this.$=j[K-5],Vt.addVertex(j[K-5],j[K-2],"circle");break;case 59:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"ellipse");break;case 60:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"stadium");break;case 61:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"subroutine");break;case 62:this.$=j[K-7],Vt.addVertex(j[K-7],j[K-1],"rect",void 0,void 0,void 0,Object.fromEntries([[j[K-5],j[K-3]]]));break;case 63:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"cylinder");break;case 64:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"round");break;case 65:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"diamond");break;case 66:this.$=j[K-5],Vt.addVertex(j[K-5],j[K-2],"hexagon");break;case 67:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"odd");break;case 68:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"trapezoid");break;case 69:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"inv_trapezoid");break;case 70:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"lean_right");break;case 71:this.$=j[K-3],Vt.addVertex(j[K-3],j[K-1],"lean_left");break;case 72:this.$=j[K],Vt.addVertex(j[K]);break;case 73:j[K-1].text=j[K],this.$=j[K-1];break;case 74:case 75:j[K-2].text=j[K-1],this.$=j[K-2];break;case 76:this.$=j[K];break;case 77:var bn=Vt.destructLink(j[K],j[K-2]);this.$={type:bn.type,stroke:bn.stroke,length:bn.length,text:j[K-1]};break;case 78:var bn=Vt.destructLink(j[K],j[K-2]);this.$={type:bn.type,stroke:bn.stroke,length:bn.length,text:j[K-1],id:j[K-3]};break;case 79:this.$={text:j[K],type:"text"};break;case 80:this.$={text:j[K-1].text+""+j[K],type:j[K-1].type};break;case 81:this.$={text:j[K],type:"string"};break;case 82:this.$={text:j[K],type:"markdown"};break;case 83:var bn=Vt.destructLink(j[K]);this.$={type:bn.type,stroke:bn.stroke,length:bn.length};break;case 84:var bn=Vt.destructLink(j[K]);this.$={type:bn.type,stroke:bn.stroke,length:bn.length,id:j[K-1]};break;case 85:this.$=j[K-1];break;case 86:this.$={text:j[K],type:"text"};break;case 87:this.$={text:j[K-1].text+""+j[K],type:j[K-1].type};break;case 88:this.$={text:j[K],type:"string"};break;case 89:case 104:this.$={text:j[K],type:"markdown"};break;case 101:this.$={text:j[K],type:"text"};break;case 102:this.$={text:j[K-1].text+""+j[K],type:j[K-1].type};break;case 103:this.$={text:j[K],type:"text"};break;case 105:this.$=j[K-4],Vt.addClass(j[K-2],j[K]);break;case 106:this.$=j[K-4],Vt.setClass(j[K-2],j[K]);break;case 107:case 115:this.$=j[K-1],Vt.setClickEvent(j[K-1],j[K]);break;case 108:case 116:this.$=j[K-3],Vt.setClickEvent(j[K-3],j[K-2]),Vt.setTooltip(j[K-3],j[K]);break;case 109:this.$=j[K-2],Vt.setClickEvent(j[K-2],j[K-1],j[K]);break;case 110:this.$=j[K-4],Vt.setClickEvent(j[K-4],j[K-3],j[K-2]),Vt.setTooltip(j[K-4],j[K]);break;case 111:this.$=j[K-2],Vt.setLink(j[K-2],j[K]);break;case 112:this.$=j[K-4],Vt.setLink(j[K-4],j[K-2]),Vt.setTooltip(j[K-4],j[K]);break;case 113:this.$=j[K-4],Vt.setLink(j[K-4],j[K-2],j[K]);break;case 114:this.$=j[K-6],Vt.setLink(j[K-6],j[K-4],j[K]),Vt.setTooltip(j[K-6],j[K-2]);break;case 117:this.$=j[K-1],Vt.setLink(j[K-1],j[K]);break;case 118:this.$=j[K-3],Vt.setLink(j[K-3],j[K-2]),Vt.setTooltip(j[K-3],j[K]);break;case 119:this.$=j[K-3],Vt.setLink(j[K-3],j[K-2],j[K]);break;case 120:this.$=j[K-5],Vt.setLink(j[K-5],j[K-4],j[K]),Vt.setTooltip(j[K-5],j[K-2]);break;case 121:this.$=j[K-4],Vt.addVertex(j[K-2],void 0,void 0,j[K]);break;case 122:this.$=j[K-4],Vt.updateLink([j[K-2]],j[K]);break;case 123:this.$=j[K-4],Vt.updateLink(j[K-2],j[K]);break;case 124:this.$=j[K-8],Vt.updateLinkInterpolate([j[K-6]],j[K-2]),Vt.updateLink([j[K-6]],j[K]);break;case 125:this.$=j[K-8],Vt.updateLinkInterpolate(j[K-6],j[K-2]),Vt.updateLink(j[K-6],j[K]);break;case 126:this.$=j[K-6],Vt.updateLinkInterpolate([j[K-4]],j[K]);break;case 127:this.$=j[K-6],Vt.updateLinkInterpolate(j[K-4],j[K]);break;case 128:case 130:this.$=[j[K]];break;case 129:case 131:j[K-2].push(j[K]),this.$=j[K-2];break;case 133:this.$=j[K-1]+j[K];break;case 181:this.$=j[K];break;case 182:this.$=j[K-1]+""+j[K];break;case 184:this.$=j[K-1]+""+j[K];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}},"anonymous"),table:[{3:1,4:2,9:t,10:r,12:n},{1:[3]},e(i,s,{5:6}),{4:7,9:t,10:r,12:n},{4:8,9:t,10:r,12:n},{13:[1,9],14:[1,10]},{1:[2,1],6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:_,88:L,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R,121:B,122:I,123:M,124:O},e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{8:[1,54],9:[1,55],10:N,15:53,18:56},e(E,[2,3]),e(E,[2,4]),e(E,[2,5]),e(E,[2,6]),e(E,[2,7]),e(E,[2,8]),{8:V,9:G,11:J,21:58,41:59,72:63,75:[1,64],77:[1,66],78:[1,65]},{8:V,9:G,11:J,21:67},{8:V,9:G,11:J,21:68},{8:V,9:G,11:J,21:69},{8:V,9:G,11:J,21:70},{8:V,9:G,11:J,21:71},{8:V,9:G,10:[1,72],11:J,21:73},e(E,[2,36]),{35:[1,74]},{37:[1,75]},e(E,[2,39]),e(rt,[2,50],{18:76,39:77,10:N,40:nt}),{10:[1,79]},{10:[1,80]},{10:[1,81]},{10:[1,82]},{14:ct,44:pt,60:Lt,80:[1,86],89:bt,95:[1,83],97:[1,84],101:85,105:ut,106:it,109:st,111:X,114:H,115:at,116:W,120:87},e(E,[2,185]),e(E,[2,186]),e(E,[2,187]),e(E,[2,188]),e(mt,[2,51]),e(mt,[2,54],{46:[1,99]}),e(q,[2,72],{113:112,29:[1,100],44:g,48:[1,101],50:[1,102],52:[1,103],54:[1,104],56:[1,105],58:[1,106],60:y,63:[1,107],65:[1,108],67:[1,109],68:[1,110],70:[1,111],89:C,102:D,105:$,106:w,109:A,111:F,114:S,115:v,116:R}),e(Z,[2,181]),e(Z,[2,142]),e(Z,[2,143]),e(Z,[2,144]),e(Z,[2,145]),e(Z,[2,146]),e(Z,[2,147]),e(Z,[2,148]),e(Z,[2,149]),e(Z,[2,150]),e(Z,[2,151]),e(Z,[2,152]),e(i,[2,12]),e(i,[2,18]),e(i,[2,19]),{9:[1,113]},e(ye,[2,26],{18:114,10:N}),e(E,[2,27]),{42:115,43:38,44:g,45:39,47:40,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},e(E,[2,40]),e(E,[2,41]),e(E,[2,42]),e(ot,[2,76],{73:116,62:[1,118],74:[1,117]}),{76:119,79:120,80:Jt,81:ve,116:te,119:vt},{75:[1,125],77:[1,126]},e(It,[2,83]),e(E,[2,28]),e(E,[2,29]),e(E,[2,30]),e(E,[2,31]),e(E,[2,32]),{10:yt,12:ht,14:wt,27:Q,28:127,32:Nt,44:z,60:$t,75:U,80:[1,129],81:[1,130],83:140,84:Tt,85:gt,86:Yt,87:Mt,88:kt,89:Ge,90:Pt,91:128,105:nr,109:Ze,111:yr,114:Je,115:ke,116:He},e(Te,s,{5:153}),e(E,[2,37]),e(E,[2,38]),e(rt,[2,48],{44:ur}),e(rt,[2,49],{18:155,10:N,40:yn}),e(mt,[2,44]),{44:g,47:157,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},{102:[1,158],103:159,105:[1,160]},{44:g,47:161,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},{44:g,47:162,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},e(we,[2,107],{10:[1,163],96:[1,164]}),{80:[1,165]},e(we,[2,115],{120:167,10:[1,166],14:ct,44:pt,60:Lt,89:bt,105:ut,106:it,109:st,111:X,114:H,115:at,116:W}),e(we,[2,117],{10:[1,168]}),e(Oe,[2,183]),e(Oe,[2,170]),e(Oe,[2,171]),e(Oe,[2,172]),e(Oe,[2,173]),e(Oe,[2,174]),e(Oe,[2,175]),e(Oe,[2,176]),e(Oe,[2,177]),e(Oe,[2,178]),e(Oe,[2,179]),e(Oe,[2,180]),{44:g,47:169,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},{30:170,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:178,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:180,50:[1,179],67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:181,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:182,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:183,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{109:[1,184]},{30:185,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:186,65:[1,187],67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:188,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:189,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{30:190,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},e(Z,[2,182]),e(i,[2,20]),e(ye,[2,25]),e(rt,[2,46],{39:191,18:192,10:N,40:nt}),e(ot,[2,73],{10:[1,193]}),{10:[1,194]},{30:195,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{77:[1,196],79:197,116:te,119:vt},e(An,[2,79]),e(An,[2,81]),e(An,[2,82]),e(An,[2,168]),e(An,[2,169]),{76:198,79:120,80:Jt,81:ve,116:te,119:vt},e(It,[2,84]),{8:V,9:G,10:yt,11:J,12:ht,14:wt,21:200,27:Q,29:[1,199],32:Nt,44:z,60:$t,75:U,83:140,84:Tt,85:gt,86:Yt,87:Mt,88:kt,89:Ge,90:Pt,91:201,105:nr,109:Ze,111:yr,114:Je,115:ke,116:He},e(ne,[2,101]),e(ne,[2,103]),e(ne,[2,104]),e(ne,[2,157]),e(ne,[2,158]),e(ne,[2,159]),e(ne,[2,160]),e(ne,[2,161]),e(ne,[2,162]),e(ne,[2,163]),e(ne,[2,164]),e(ne,[2,165]),e(ne,[2,166]),e(ne,[2,167]),e(ne,[2,90]),e(ne,[2,91]),e(ne,[2,92]),e(ne,[2,93]),e(ne,[2,94]),e(ne,[2,95]),e(ne,[2,96]),e(ne,[2,97]),e(ne,[2,98]),e(ne,[2,99]),e(ne,[2,100]),{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,202],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:_,88:L,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R,121:B,122:I,123:M,124:O},{10:N,18:203},{44:[1,204]},e(mt,[2,43]),{10:[1,205],44:g,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:112,114:S,115:v,116:R},{10:[1,206]},{10:[1,207],106:[1,208]},e(Si,[2,128]),{10:[1,209],44:g,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:112,114:S,115:v,116:R},{10:[1,210],44:g,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:112,114:S,115:v,116:R},{80:[1,211]},e(we,[2,109],{10:[1,212]}),e(we,[2,111],{10:[1,213]}),{80:[1,214]},e(Oe,[2,184]),{80:[1,215],98:[1,216]},e(mt,[2,55],{113:112,44:g,60:y,89:C,102:D,105:$,106:w,109:A,111:F,114:S,115:v,116:R}),{31:[1,217],67:Ae,82:218,116:ge,117:be,118:jt},e(fn,[2,86]),e(fn,[2,88]),e(fn,[2,89]),e(fn,[2,153]),e(fn,[2,154]),e(fn,[2,155]),e(fn,[2,156]),{49:[1,219],67:Ae,82:218,116:ge,117:be,118:jt},{30:220,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{51:[1,221],67:Ae,82:218,116:ge,117:be,118:jt},{53:[1,222],67:Ae,82:218,116:ge,117:be,118:jt},{55:[1,223],67:Ae,82:218,116:ge,117:be,118:jt},{57:[1,224],67:Ae,82:218,116:ge,117:be,118:jt},{60:[1,225]},{64:[1,226],67:Ae,82:218,116:ge,117:be,118:jt},{66:[1,227],67:Ae,82:218,116:ge,117:be,118:jt},{30:228,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},{31:[1,229],67:Ae,82:218,116:ge,117:be,118:jt},{67:Ae,69:[1,230],71:[1,231],82:218,116:ge,117:be,118:jt},{67:Ae,69:[1,233],71:[1,232],82:218,116:ge,117:be,118:jt},e(rt,[2,45],{18:155,10:N,40:yn}),e(rt,[2,47],{44:ur}),e(ot,[2,75]),e(ot,[2,74]),{62:[1,234],67:Ae,82:218,116:ge,117:be,118:jt},e(ot,[2,77]),e(An,[2,80]),{77:[1,235],79:197,116:te,119:vt},{30:236,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},e(Te,s,{5:237}),e(ne,[2,102]),e(E,[2,35]),{43:238,44:g,45:39,47:40,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},{10:N,18:239},{10:Pr,60:vr,84:ci,92:240,105:Kt,107:241,108:242,109:et,110:Bt,111:Xt,112:tr},{10:Pr,60:vr,84:ci,92:251,104:[1,252],105:Kt,107:241,108:242,109:et,110:Bt,111:Xt,112:tr},{10:Pr,60:vr,84:ci,92:253,104:[1,254],105:Kt,107:241,108:242,109:et,110:Bt,111:Xt,112:tr},{105:[1,255]},{10:Pr,60:vr,84:ci,92:256,105:Kt,107:241,108:242,109:et,110:Bt,111:Xt,112:tr},{44:g,47:257,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},e(we,[2,108]),{80:[1,258]},{80:[1,259],98:[1,260]},e(we,[2,116]),e(we,[2,118],{10:[1,261]}),e(we,[2,119]),e(q,[2,56]),e(fn,[2,87]),e(q,[2,57]),{51:[1,262],67:Ae,82:218,116:ge,117:be,118:jt},e(q,[2,64]),e(q,[2,59]),e(q,[2,60]),e(q,[2,61]),{109:[1,263]},e(q,[2,63]),e(q,[2,65]),{66:[1,264],67:Ae,82:218,116:ge,117:be,118:jt},e(q,[2,67]),e(q,[2,68]),e(q,[2,70]),e(q,[2,69]),e(q,[2,71]),e([10,44,60,89,102,105,106,109,111,114,115,116],[2,85]),e(ot,[2,78]),{31:[1,265],67:Ae,82:218,116:ge,117:be,118:jt},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,266],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:_,88:L,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R,121:B,122:I,123:M,124:O},e(mt,[2,53]),{43:267,44:g,45:39,47:40,60:y,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R},e(we,[2,121],{106:rn}),e(xn,[2,130],{108:269,10:Pr,60:vr,84:ci,105:Kt,109:et,110:Bt,111:Xt,112:tr}),e(Wr,[2,132]),e(Wr,[2,134]),e(Wr,[2,135]),e(Wr,[2,136]),e(Wr,[2,137]),e(Wr,[2,138]),e(Wr,[2,139]),e(Wr,[2,140]),e(Wr,[2,141]),e(we,[2,122],{106:rn}),{10:[1,270]},e(we,[2,123],{106:rn}),{10:[1,271]},e(Si,[2,129]),e(we,[2,105],{106:rn}),e(we,[2,106],{113:112,44:g,60:y,89:C,102:D,105:$,106:w,109:A,111:F,114:S,115:v,116:R}),e(we,[2,110]),e(we,[2,112],{10:[1,272]}),e(we,[2,113]),{98:[1,273]},{51:[1,274]},{62:[1,275]},{66:[1,276]},{8:V,9:G,11:J,21:277},e(E,[2,34]),e(mt,[2,52]),{10:Pr,60:vr,84:ci,105:Kt,107:278,108:242,109:et,110:Bt,111:Xt,112:tr},e(Wr,[2,133]),{14:ct,44:pt,60:Lt,89:bt,101:279,105:ut,106:it,109:st,111:X,114:H,115:at,116:W,120:87},{14:ct,44:pt,60:Lt,89:bt,101:280,105:ut,106:it,109:st,111:X,114:H,115:at,116:W,120:87},{98:[1,281]},e(we,[2,120]),e(q,[2,58]),{30:282,67:Ae,80:xe,81:he,82:171,116:ge,117:be,118:jt},e(q,[2,66]),e(Te,s,{5:283}),e(xn,[2,131],{108:269,10:Pr,60:vr,84:ci,105:Kt,109:et,110:Bt,111:Xt,112:tr}),e(we,[2,126],{120:167,10:[1,284],14:ct,44:pt,60:Lt,89:bt,105:ut,106:it,109:st,111:X,114:H,115:at,116:W}),e(we,[2,127],{120:167,10:[1,285],14:ct,44:pt,60:Lt,89:bt,105:ut,106:it,109:st,111:X,114:H,115:at,116:W}),e(we,[2,114]),{31:[1,286],67:Ae,82:218,116:ge,117:be,118:jt},{6:11,7:12,8:o,9:l,10:u,11:h,20:17,22:18,23:19,24:20,25:21,26:22,27:f,32:[1,287],33:24,34:d,36:p,38:m,42:28,43:38,44:g,45:39,47:40,60:y,84:b,85:k,86:T,87:_,88:L,89:C,102:D,105:$,106:w,109:A,111:F,113:41,114:S,115:v,116:R,121:B,122:I,123:M,124:O},{10:Pr,60:vr,84:ci,92:288,105:Kt,107:241,108:242,109:et,110:Bt,111:Xt,112:tr},{10:Pr,60:vr,84:ci,92:289,105:Kt,107:241,108:242,109:et,110:Bt,111:Xt,112:tr},e(q,[2,62]),e(E,[2,33]),e(we,[2,124],{106:rn}),e(we,[2,125],{106:rn})],defaultActions:{},parseError:a(function(ie,Se){if(Se.recoverable)this.trace(ie);else{var Ie=new Error(ie);throw Ie.hash=Se,Ie}},"parseError"),parse:a(function(ie){var Se=this,Ie=[0],Vt=[],Br=[null],j=[],su=this.table,K="",bn=0,K8=0,Q8=0,Tot=2,Z8=1,Sot=j.slice.call(arguments,1),Fn=Object.create(this.lexer),au={yy:{}};for(var nC in this.yy)Object.prototype.hasOwnProperty.call(this.yy,nC)&&(au.yy[nC]=this.yy[nC]);Fn.setInput(ie,au.yy),au.yy.lexer=Fn,au.yy.parser=this,typeof Fn.yylloc>"u"&&(Fn.yylloc={});var iC=Fn.yylloc;j.push(iC);var _ot=Fn.options&&Fn.options.ranges;typeof au.yy.parseError=="function"?this.parseError=au.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function JIt(xs){Ie.length=Ie.length-2*xs,Br.length=Br.length-xs,j.length=j.length-xs}a(JIt,"popStack");function Cot(){var xs;return xs=Vt.pop()||Fn.lex()||Z8,typeof xs!="number"&&(xs instanceof Array&&(Vt=xs,xs=Vt.pop()),xs=Se.symbols_[xs]||xs),xs}a(Cot,"lex");for(var _i,sC,ou,Fs,tNt,aC,qh={},Uy,Ho,J8,jy;;){if(ou=Ie[Ie.length-1],this.defaultActions[ou]?Fs=this.defaultActions[ou]:((_i===null||typeof _i>"u")&&(_i=Cot()),Fs=su[ou]&&su[ou][_i]),typeof Fs>"u"||!Fs.length||!Fs[0]){var oC="";jy=[];for(Uy in su[ou])this.terminals_[Uy]&&Uy>Tot&&jy.push("'"+this.terminals_[Uy]+"'");Fn.showPosition?oC="Parse error on line "+(bn+1)+`:
+`+Fn.showPosition()+`
+Expecting `+jy.join(", ")+", got '"+(this.terminals_[_i]||_i)+"'":oC="Parse error on line "+(bn+1)+": Unexpected "+(_i==Z8?"end of input":"'"+(this.terminals_[_i]||_i)+"'"),this.parseError(oC,{text:Fn.match,token:this.terminals_[_i]||_i,line:Fn.yylineno,loc:iC,expected:jy})}if(Fs[0]instanceof Array&&Fs.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ou+", token: "+_i);switch(Fs[0]){case 1:Ie.push(_i),Br.push(Fn.yytext),j.push(Fn.yylloc),Ie.push(Fs[1]),_i=null,sC?(_i=sC,sC=null):(K8=Fn.yyleng,K=Fn.yytext,bn=Fn.yylineno,iC=Fn.yylloc,Q8>0&&Q8--);break;case 2:if(Ho=this.productions_[Fs[1]][1],qh.$=Br[Br.length-Ho],qh._$={first_line:j[j.length-(Ho||1)].first_line,last_line:j[j.length-1].last_line,first_column:j[j.length-(Ho||1)].first_column,last_column:j[j.length-1].last_column},_ot&&(qh._$.range=[j[j.length-(Ho||1)].range[0],j[j.length-1].range[1]]),aC=this.performAction.apply(qh,[K,K8,bn,au.yy,Fs[1],Br,j].concat(Sot)),typeof aC<"u")return aC;Ho&&(Ie=Ie.slice(0,-1*Ho*2),Br=Br.slice(0,-1*Ho),j=j.slice(0,-1*Ho)),Ie.push(this.productions_[Fs[1]][0]),Br.push(qh.$),j.push(qh._$),J8=su[Ie[Ie.length-2]][Ie[Ie.length-1]],Ie.push(J8);break;case 3:return!0}}return!0},"parse")},iu=function(){var ya={EOF:1,parseError:a(function(Se,Ie){if(this.yy.parser)this.yy.parser.parseError(Se,Ie);else throw new Error(Se)},"parseError"),setInput:a(function(ie,Se){return 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]),this.offset=0,this},"setInput"),input:a(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);return Se?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ie},"input"),unput:a(function(ie){var Se=ie.length,Ie=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 Vt=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Ie.length-1&&(this.yylineno-=Ie.length-1);var Br=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Ie?(Ie.length===Vt.length?this.yylloc.first_column:0)+Vt[Vt.length-Ie.length].length-Ie[0].length:this.yylloc.first_column-Se},this.options.ranges&&(this.yylloc.range=[Br[0],Br[0]+this.yyleng-Se]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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:a(function(ie){this.unput(this.match.slice(ie))},"less"),pastInput:a(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:a(function(){var ie=this.match;return ie.length<20&&(ie+=this._input.substr(0,20-ie.length)),(ie.substr(0,20)+(ie.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var ie=this.pastInput(),Se=new Array(ie.length+1).join("-");return ie+this.upcomingInput()+`
+`+Se+"^"},"showPosition"),test_match:a(function(ie,Se){var Ie,Vt,Br;if(this.options.backtrack_lexer&&(Br={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&&(Br.yylloc.range=this.yylloc.range.slice(0))),Vt=ie[0].match(/(?:\r\n?|\n).*/g),Vt&&(this.yylineno+=Vt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:Vt?Vt[Vt.length-1].length-Vt[Vt.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]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(ie[0].length),this.matched+=ie[0],Ie=this.performAction.call(this,this.yy,this,Se,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Ie)return Ie;if(this._backtrack){for(var j in Br)this[j]=Br[j];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var ie,Se,Ie,Vt;this._more||(this.yytext="",this.match="");for(var Br=this._currentRules(),j=0;jSe[0].length)){if(Se=Ie,Vt=j,this.options.backtrack_lexer){if(ie=this.test_match(Ie,Br[j]),ie!==!1)return ie;if(this._backtrack){Se=!1;continue}else return!1}else if(!this.options.flex)break}return Se?(ie=this.test_match(Se,Br[Vt]),ie!==!1?ie:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
+`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var Se=this.next();return Se||this.lex()},"lex"),begin:a(function(Se){this.conditionStack.push(Se)},"begin"),popState:a(function(){var Se=this.conditionStack.length-1;return Se>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(Se){return Se=this.conditionStack.length-1-Math.abs(Se||0),Se>=0?this.conditionStack[Se]:"INITIAL"},"topState"),pushState:a(function(Se){this.begin(Se)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{},performAction:a(function(Se,Ie,Vt,Br){var j=Br;switch(Vt){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"),Ie.yytext="",40;break;case 8:return this.pushState("shapeDataStr"),40;break;case 9:return this.popState(),40;break;case 10:let su=/\n\s*/g;return Ie.yytext=Ie.yytext.replace(su,"
"),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:return Se.lex.firstGraph()&&this.begin("dir"),12;break;case 36:return Se.lex.firstGraph()&&this.begin("dir"),12;break;case 37:return Se.lex.firstGraph()&&this.begin("dir"),12;break;case 38:return 27;case 39:return 32;case 40:return 98;case 41:return 98;case 42:return 98;case 43:return 98;case 44:return this.popState(),13;break;case 45:return this.popState(),14;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 121;case 56:return 122;case 57:return 123;case 58:return 124;case 59:return 78;case 60:return 105;case 61:return 111;case 62:return 46;case 63:return 60;case 64:return 44;case 65:return 8;case 66:return 106;case 67:return 115;case 68:return this.popState(),77;break;case 69:return this.pushState("edgeText"),75;break;case 70:return 119;case 71:return this.popState(),77;break;case 72:return this.pushState("thickEdgeText"),75;break;case 73:return 119;case 74:return this.popState(),77;break;case 75:return this.pushState("dottedEdgeText"),75;break;case 76:return 119;case 77:return 77;case 78:return this.popState(),53;break;case 79:return"TEXT";case 80:return this.pushState("ellipseText"),52;break;case 81:return this.popState(),55;break;case 82:return this.pushState("text"),54;break;case 83:return this.popState(),57;break;case 84:return this.pushState("text"),56;break;case 85:return 58;case 86:return this.pushState("text"),67;break;case 87:return this.popState(),64;break;case 88:return this.pushState("text"),63;break;case 89:return this.popState(),49;break;case 90:return this.pushState("text"),48;break;case 91:return this.popState(),69;break;case 92:return this.popState(),71;break;case 93:return 117;case 94:return this.pushState("trapText"),68;break;case 95:return this.pushState("trapText"),70;break;case 96:return 118;case 97:return 67;case 98:return 90;case 99:return"SEP";case 100:return 89;case 101:return 115;case 102:return 111;case 103:return 44;case 104:return 109;case 105:return 114;case 106:return 116;case 107:return this.popState(),62;break;case 108:return this.pushState("text"),62;break;case 109:return this.popState(),51;break;case 110:return this.pushState("text"),50;break;case 111:return this.popState(),31;break;case 112:return this.pushState("text"),29;break;case 113:return this.popState(),66;break;case 114:return this.pushState("text"),65;break;case 115:return"TEXT";case 116:return"QUOTE";case 117:return 9;case 118:return 10;case 119: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)/,/^(?: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]*)/,/^(?:[^\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)/,/^(?:$)/],conditions:{shapeDataEndBracket:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeDataStr:{rules:[9,10,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},shapeData:{rules:[8,11,12,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackargs:{rules:[17,18,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},callbackname:{rules:[14,15,16,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},href:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},click:{rules:[21,24,33,34,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dottedEdgeText:{rules:[21,24,74,76,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},thickEdgeText:{rules:[21,24,71,73,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},edgeText:{rules:[21,24,68,70,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},trapText:{rules:[21,24,77,80,82,84,88,90,91,92,93,94,95,108,110,112,114],inclusive:!1},ellipseText:{rules:[21,24,77,78,79,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},text:{rules:[21,24,77,80,81,82,83,84,87,88,89,90,94,95,107,108,109,110,111,112,113,114,115],inclusive:!1},vertex:{rules:[21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},dir:{rules:[21,24,44,45,46,47,48,49,50,51,52,53,54,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr_multiline:{rules:[5,6,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_descr:{rules:[3,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},acc_title:{rules:[1,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},md_string:{rules:[19,20,21,24,77,80,82,84,88,90,94,95,108,110,112,114],inclusive:!1},string:{rules:[21,22,23,24,77,80,82,84,88,90,94,95,108,110,112,114],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,71,72,74,75,77,80,82,84,85,86,88,90,94,95,96,97,98,99,100,101,102,103,104,105,106,108,110,112,114,116,117,118,119],inclusive:!0}}};return ya}();Xi.lexer=iu;function Ln(){this.yy={}}return a(Ln,"Parser"),Ln.prototype=Xi,Xi.Parser=Ln,new Ln}();p5.parser=p5;m5=p5});var WY,UY,jY=x(()=>{"use strict";zY();WY=Object.assign({},m5);WY.parse=e=>{let t=e.replace(/}\s*\n/g,`}
+`);return m5.parse(t)};UY=WY});var fEt,dEt,qY,HY=x(()=>{"use strict";Gs();fEt=a((e,t)=>{let r=du,n=r(e,"r"),i=r(e,"g"),s=r(e,"b");return Ci(n,i,s,t)},"fade"),dEt=a(e=>`.label {
+ font-family: ${e.fontFamily};
+ color: ${e.nodeTextColor||e.textColor};
+ }
+ .cluster-label text {
+ fill: ${e.titleColor};
+ }
+ .cluster-label span {
+ color: ${e.titleColor};
+ }
+ .cluster-label span p {
+ background-color: transparent;
+ }
+
+ .label text,span {
+ fill: ${e.nodeTextColor||e.textColor};
+ color: ${e.nodeTextColor||e.textColor};
+ }
+
+ .node rect,
+ .node circle,
+ .node ellipse,
+ .node polygon,
+ .node path {
+ fill: ${e.mainBkg};
+ stroke: ${e.nodeBorder};
+ stroke-width: 1px;
+ }
+ .rough-node .label text , .node .label text, .image-shape .label, .icon-shape .label {
+ text-anchor: middle;
+ }
+ // .flowchart-label .text-outer-tspan {
+ // text-anchor: middle;
+ // }
+ // .flowchart-label .text-inner-tspan {
+ // text-anchor: start;
+ // }
+
+ .node .katex path {
+ fill: #000;
+ stroke: #000;
+ stroke-width: 1px;
+ }
+
+ .rough-node .label,.node .label, .image-shape .label, .icon-shape .label {
+ text-align: center;
+ }
+ .node.clickable {
+ cursor: pointer;
+ }
+
+
+ .root .anchor path {
+ fill: ${e.lineColor} !important;
+ stroke-width: 0;
+ stroke: ${e.lineColor};
+ }
+
+ .arrowheadPath {
+ fill: ${e.arrowheadColor};
+ }
+
+ .edgePath .path {
+ stroke: ${e.lineColor};
+ stroke-width: 2.0px;
+ }
+
+ .flowchart-link {
+ stroke: ${e.lineColor};
+ fill: none;
+ }
+
+ .edgeLabel {
+ background-color: ${e.edgeLabelBackground};
+ p {
+ background-color: ${e.edgeLabelBackground};
+ }
+ rect {
+ opacity: 0.5;
+ background-color: ${e.edgeLabelBackground};
+ fill: ${e.edgeLabelBackground};
+ }
+ text-align: center;
+ }
+
+ /* For html labels only */
+ .labelBkg {
+ background-color: ${fEt(e.edgeLabelBackground,.5)};
+ // background-color:
+ }
+
+ .cluster rect {
+ fill: ${e.clusterBkg};
+ stroke: ${e.clusterBorder};
+ stroke-width: 1px;
+ }
+
+ .cluster text {
+ fill: ${e.titleColor};
+ }
+
+ .cluster span {
+ color: ${e.titleColor};
+ }
+ /* .cluster div {
+ color: ${e.titleColor};
+ } */
+
+ div.mermaidTooltip {
+ position: absolute;
+ text-align: center;
+ max-width: 200px;
+ padding: 2px;
+ font-family: ${e.fontFamily};
+ font-size: 12px;
+ background: ${e.tertiaryColor};
+ border: 1px solid ${e.border2};
+ border-radius: 2px;
+ pointer-events: none;
+ z-index: 100;
+ }
+
+ .flowchartTitleText {
+ text-anchor: middle;
+ font-size: 18px;
+ fill: ${e.textColor};
+ }
+
+ rect.text {
+ fill: none;
+ stroke-width: 0;
+ }
+
+ .icon-shape, .image-shape {
+ background-color: ${e.edgeLabelBackground};
+ p {
+ background-color: ${e.edgeLabelBackground};
+ padding: 2px;
+ }
+ rect {
+ opacity: 0.5;
+ background-color: ${e.edgeLabelBackground};
+ fill: ${e.edgeLabelBackground};
+ }
+ text-align: center;
+ }
+`,"getStyles"),qY=dEt});var g5={};Be(g5,{diagram:()=>pEt});var pEt,y5=x(()=>{"use strict";pe();qz();VY();jY();HY();pEt={parser:UY,get db(){return new Db},renderer:GY,styles:qY,init:a(e=>{e.flowchart||(e.flowchart={}),e.layout&&eg({layout:e.layout}),e.flowchart.arrowMarkerAbsolute=e.arrowMarkerAbsolute,eg({flowchart:{arrowMarkerAbsolute:e.arrowMarkerAbsolute}})},"init")}});var x5,ZY,JY=x(()=>{"use strict";x5=function(){var e=a(function(X,H,at,W){for(at=at||{},W=X.length;W--;at[X[W]]=H);return at},"o"),t=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],r=[1,10],n=[1,11],i=[1,12],s=[1,13],o=[1,20],l=[1,21],u=[1,22],h=[1,23],f=[1,24],d=[1,19],p=[1,25],m=[1,26],g=[1,18],y=[1,33],b=[1,34],k=[1,35],T=[1,36],_=[1,37],L=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],C=[1,42],D=[1,43],$=[1,52],w=[40,50,68,69],A=[1,63],F=[1,61],S=[1,58],v=[1,62],R=[1,64],B=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],I=[63,64,65,66,67],M=[1,81],O=[1,80],N=[1,78],E=[1,79],V=[6,10,42,47],G=[6,10,13,41,42,47,48,49],J=[1,89],rt=[1,88],nt=[1,87],ct=[19,56],pt=[1,98],Lt=[1,97],bt=[19,56,58,60],ut={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes: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:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:a(function(H,at,W,mt,q,Z,ye){var ot=Z.length-1;switch(q){case 1:break;case 2:this.$=[];break;case 3:Z[ot-1].push(Z[ot]),this.$=Z[ot-1];break;case 4:case 5:this.$=Z[ot];break;case 6:case 7:this.$=[];break;case 8:mt.addEntity(Z[ot-4]),mt.addEntity(Z[ot-2]),mt.addRelationship(Z[ot-4],Z[ot],Z[ot-2],Z[ot-3]);break;case 9:mt.addEntity(Z[ot-8]),mt.addEntity(Z[ot-4]),mt.addRelationship(Z[ot-8],Z[ot],Z[ot-4],Z[ot-5]),mt.setClass([Z[ot-8]],Z[ot-6]),mt.setClass([Z[ot-4]],Z[ot-2]);break;case 10:mt.addEntity(Z[ot-6]),mt.addEntity(Z[ot-2]),mt.addRelationship(Z[ot-6],Z[ot],Z[ot-2],Z[ot-3]),mt.setClass([Z[ot-6]],Z[ot-4]);break;case 11:mt.addEntity(Z[ot-6]),mt.addEntity(Z[ot-4]),mt.addRelationship(Z[ot-6],Z[ot],Z[ot-4],Z[ot-5]),mt.setClass([Z[ot-4]],Z[ot-2]);break;case 12:mt.addEntity(Z[ot-3]),mt.addAttributes(Z[ot-3],Z[ot-1]);break;case 13:mt.addEntity(Z[ot-5]),mt.addAttributes(Z[ot-5],Z[ot-1]),mt.setClass([Z[ot-5]],Z[ot-3]);break;case 14:mt.addEntity(Z[ot-2]);break;case 15:mt.addEntity(Z[ot-4]),mt.setClass([Z[ot-4]],Z[ot-2]);break;case 16:mt.addEntity(Z[ot]);break;case 17:mt.addEntity(Z[ot-2]),mt.setClass([Z[ot-2]],Z[ot]);break;case 18:mt.addEntity(Z[ot-6],Z[ot-4]),mt.addAttributes(Z[ot-6],Z[ot-1]);break;case 19:mt.addEntity(Z[ot-8],Z[ot-6]),mt.addAttributes(Z[ot-8],Z[ot-1]),mt.setClass([Z[ot-8]],Z[ot-3]);break;case 20:mt.addEntity(Z[ot-5],Z[ot-3]);break;case 21:mt.addEntity(Z[ot-7],Z[ot-5]),mt.setClass([Z[ot-7]],Z[ot-2]);break;case 22:mt.addEntity(Z[ot-3],Z[ot-1]);break;case 23:mt.addEntity(Z[ot-5],Z[ot-3]),mt.setClass([Z[ot-5]],Z[ot]);break;case 24:case 25:this.$=Z[ot].trim(),mt.setAccTitle(this.$);break;case 26:case 27:this.$=Z[ot].trim(),mt.setAccDescription(this.$);break;case 32:mt.setDirection("TB");break;case 33:mt.setDirection("BT");break;case 34:mt.setDirection("RL");break;case 35:mt.setDirection("LR");break;case 36:this.$=Z[ot-3],mt.addClass(Z[ot-2],Z[ot-1]);break;case 37:case 38:case 56:case 64:this.$=[Z[ot]];break;case 39:case 40:this.$=Z[ot-2].concat([Z[ot]]);break;case 41:this.$=Z[ot-2],mt.setClass(Z[ot-1],Z[ot]);break;case 42:this.$=Z[ot-3],mt.addCssStyles(Z[ot-2],Z[ot-1]);break;case 43:this.$=[Z[ot]];break;case 44:Z[ot-2].push(Z[ot]),this.$=Z[ot-2];break;case 46:this.$=Z[ot-1]+Z[ot];break;case 54:case 76:case 77:this.$=Z[ot].replace(/"/g,"");break;case 55:case 78:this.$=Z[ot];break;case 57:Z[ot].push(Z[ot-1]),this.$=Z[ot];break;case 58:this.$={type:Z[ot-1],name:Z[ot]};break;case 59:this.$={type:Z[ot-2],name:Z[ot-1],keys:Z[ot]};break;case 60:this.$={type:Z[ot-2],name:Z[ot-1],comment:Z[ot]};break;case 61:this.$={type:Z[ot-3],name:Z[ot-2],keys:Z[ot-1],comment:Z[ot]};break;case 62:case 63:case 66:this.$=Z[ot];break;case 65:Z[ot-2].push(Z[ot]),this.$=Z[ot-2];break;case 67:this.$=Z[ot].replace(/"/g,"");break;case 68:this.$={cardA:Z[ot],relType:Z[ot-1],cardB:Z[ot-2]};break;case 69:this.$=mt.Cardinality.ZERO_OR_ONE;break;case 70:this.$=mt.Cardinality.ZERO_OR_MORE;break;case 71:this.$=mt.Cardinality.ONE_OR_MORE;break;case 72:this.$=mt.Cardinality.ONLY_ONE;break;case 73:this.$=mt.Cardinality.MD_PARENT;break;case 74:this.$=mt.Identification.NON_IDENTIFYING;break;case 75:this.$=mt.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:r,24:n,26:i,28:s,29:14,30:15,31:16,32:17,33:o,34:l,35:u,36:h,37:f,40:d,43:p,44:m,50:g},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:27,11:9,22:r,24:n,26:i,28:s,29:14,30:15,31:16,32:17,33:o,34:l,35:u,36:h,37:f,40:d,43:p,44:m,50:g},e(t,[2,5]),e(t,[2,6]),e(t,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:y,64:b,65:k,66:T,67:_}),{23:[1,38]},{25:[1,39]},{27:[1,40]},e(t,[2,27]),e(t,[2,28]),e(t,[2,29]),e(t,[2,30]),e(t,[2,31]),e(L,[2,54]),e(L,[2,55]),e(t,[2,32]),e(t,[2,33]),e(t,[2,34]),e(t,[2,35]),{16:41,40:C,41:D},{16:44,40:C,41:D},{16:45,40:C,41:D},e(t,[2,4]),{11:46,40:d,50:g},{16:47,40:C,41:D},{18:48,19:[1,49],51:50,52:51,56:$},{11:53,40:d,50:g},{62:54,68:[1,55],69:[1,56]},e(w,[2,69]),e(w,[2,70]),e(w,[2,71]),e(w,[2,72]),e(w,[2,73]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),{13:A,38:57,41:F,42:S,45:59,46:60,48:v,49:R},e(B,[2,37]),e(B,[2,38]),{16:65,40:C,41:D,42:S},{13:A,38:66,41:F,42:S,45:59,46:60,48:v,49:R},{13:[1,67],15:[1,68]},e(t,[2,17],{61:32,12:69,17:[1,70],42:S,63:y,64:b,65:k,66:T,67:_}),{19:[1,71]},e(t,[2,14]),{18:72,19:[2,56],51:50,52:51,56:$},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:y,64:b,65:k,66:T,67:_},e(I,[2,74]),e(I,[2,75]),{6:M,10:O,39:77,42:N,47:E},{40:[1,82],41:[1,83]},e(V,[2,43],{46:84,13:A,41:F,48:v,49:R}),e(G,[2,45]),e(G,[2,50]),e(G,[2,51]),e(G,[2,52]),e(G,[2,53]),e(t,[2,41],{42:S}),{6:M,10:O,39:85,42:N,47:E},{14:86,40:J,50:rt,70:nt},{16:90,40:C,41:D},{11:91,40:d,50:g},{18:92,19:[1,93],51:50,52:51,56:$},e(t,[2,12]),{19:[2,57]},e(ct,[2,58],{54:94,55:95,57:96,59:pt,60:Lt}),e([19,56,59,60],[2,63]),e(t,[2,22],{15:[1,100],17:[1,99]}),e([40,50],[2,68]),e(t,[2,36]),{13:A,41:F,45:101,46:60,48:v,49:R},e(t,[2,47]),e(t,[2,48]),e(t,[2,49]),e(B,[2,39]),e(B,[2,40]),e(G,[2,46]),e(t,[2,42]),e(t,[2,8]),e(t,[2,76]),e(t,[2,77]),e(t,[2,78]),{13:[1,102],42:S},{13:[1,104],15:[1,103]},{19:[1,105]},e(t,[2,15]),e(ct,[2,59],{55:106,58:[1,107],60:Lt}),e(ct,[2,60]),e(bt,[2,64]),e(ct,[2,67]),e(bt,[2,66]),{18:108,19:[1,109],51:50,52:51,56:$},{16:110,40:C,41:D},e(V,[2,44],{46:84,13:A,41:F,48:v,49:R}),{14:111,40:J,50:rt,70:nt},{16:112,40:C,41:D},{14:113,40:J,50:rt,70:nt},e(t,[2,13]),e(ct,[2,61]),{57:114,59:pt},{19:[1,115]},e(t,[2,20]),e(t,[2,23],{17:[1,116],42:S}),e(t,[2,11]),{13:[1,117],42:S},e(t,[2,10]),e(bt,[2,65]),e(t,[2,18]),{18:118,19:[1,119],51:50,52:51,56:$},{14:120,40:J,50:rt,70:nt},{19:[1,121]},e(t,[2,21]),e(t,[2,9]),e(t,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:a(function(H,at){if(at.recoverable)this.trace(H);else{var W=new Error(H);throw W.hash=at,W}},"parseError"),parse:a(function(H){var at=this,W=[0],mt=[],q=[null],Z=[],ye=this.table,ot="",Jt=0,ve=0,te=0,vt=2,It=1,yt=Z.slice.call(arguments,1),ht=Object.create(this.lexer),wt={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(wt.yy[Q]=this.yy[Q]);ht.setInput(H,wt.yy),wt.yy.lexer=ht,wt.yy.parser=this,typeof ht.yylloc>"u"&&(ht.yylloc={});var Nt=ht.yylloc;Z.push(Nt);var z=ht.options&&ht.options.ranges;typeof wt.yy.parseError=="function"?this.parseError=wt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $t(He){W.length=W.length-2*He,q.length=q.length-He,Z.length=Z.length-He}a($t,"popStack");function U(){var He;return He=mt.pop()||ht.lex()||It,typeof He!="number"&&(He instanceof Array&&(mt=He,He=mt.pop()),He=at.symbols_[He]||He),He}a(U,"lex");for(var Tt,gt,Yt,Mt,kt,Ge,Pt={},nr,Ze,yr,Je;;){if(Yt=W[W.length-1],this.defaultActions[Yt]?Mt=this.defaultActions[Yt]:((Tt===null||typeof Tt>"u")&&(Tt=U()),Mt=ye[Yt]&&ye[Yt][Tt]),typeof Mt>"u"||!Mt.length||!Mt[0]){var ke="";Je=[];for(nr in ye[Yt])this.terminals_[nr]&&nr>vt&&Je.push("'"+this.terminals_[nr]+"'");ht.showPosition?ke="Parse error on line "+(Jt+1)+`:
+`+ht.showPosition()+`
+Expecting `+Je.join(", ")+", got '"+(this.terminals_[Tt]||Tt)+"'":ke="Parse error on line "+(Jt+1)+": Unexpected "+(Tt==It?"end of input":"'"+(this.terminals_[Tt]||Tt)+"'"),this.parseError(ke,{text:ht.match,token:this.terminals_[Tt]||Tt,line:ht.yylineno,loc:Nt,expected:Je})}if(Mt[0]instanceof Array&&Mt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Yt+", token: "+Tt);switch(Mt[0]){case 1:W.push(Tt),q.push(ht.yytext),Z.push(ht.yylloc),W.push(Mt[1]),Tt=null,gt?(Tt=gt,gt=null):(ve=ht.yyleng,ot=ht.yytext,Jt=ht.yylineno,Nt=ht.yylloc,te>0&&te--);break;case 2:if(Ze=this.productions_[Mt[1]][1],Pt.$=q[q.length-Ze],Pt._$={first_line:Z[Z.length-(Ze||1)].first_line,last_line:Z[Z.length-1].last_line,first_column:Z[Z.length-(Ze||1)].first_column,last_column:Z[Z.length-1].last_column},z&&(Pt._$.range=[Z[Z.length-(Ze||1)].range[0],Z[Z.length-1].range[1]]),Ge=this.performAction.apply(Pt,[ot,ve,Jt,wt.yy,Mt[1],q,Z].concat(yt)),typeof Ge<"u")return Ge;Ze&&(W=W.slice(0,-1*Ze*2),q=q.slice(0,-1*Ze),Z=Z.slice(0,-1*Ze)),W.push(this.productions_[Mt[1]][0]),q.push(Pt.$),Z.push(Pt._$),yr=ye[W[W.length-2]][W[W.length-1]],W.push(yr);break;case 3:return!0}}return!0},"parse")},it=function(){var X={EOF:1,parseError:a(function(at,W){if(this.yy.parser)this.yy.parser.parseError(at,W);else throw new Error(at)},"parseError"),setInput:a(function(H,at){return this.yy=at||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]),this.offset=0,this},"setInput"),input:a(function(){var H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var at=H.match(/(?:\r\n?|\n).*/g);return at?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},"input"),unput:a(function(H){var at=H.length,W=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-at),this.offset-=at;var mt=this.match.split(/(?:\r\n?|\n)/g);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 q=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:W?(W.length===mt.length?this.yylloc.first_column:0)+mt[mt.length-W.length].length-W[0].length:this.yylloc.first_column-at},this.options.ranges&&(this.yylloc.range=[q[0],q[0]+this.yyleng-at]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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:a(function(H){this.unput(this.match.slice(H))},"less"),pastInput:a(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:a(function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var H=this.pastInput(),at=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
+`+at+"^"},"showPosition"),test_match:a(function(H,at){var W,mt,q;if(this.options.backtrack_lexer&&(q={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&&(q.yylloc.range=this.yylloc.range.slice(0))),mt=H[0].match(/(?:\r\n?|\n).*/g),mt&&(this.yylineno+=mt.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:mt?mt[mt.length-1].length-mt[mt.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]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(H[0].length),this.matched+=H[0],W=this.performAction.call(this,this.yy,this,at,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),W)return W;if(this._backtrack){for(var Z in q)this[Z]=q[Z];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var H,at,W,mt;this._more||(this.yytext="",this.match="");for(var q=this._currentRules(),Z=0;Zat[0].length)){if(at=W,mt=Z,this.options.backtrack_lexer){if(H=this.test_match(W,q[Z]),H!==!1)return H;if(this._backtrack){at=!1;continue}else return!1}else if(!this.options.flex)break}return at?(H=this.test_match(at,q[mt]),H!==!1?H:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
+`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var at=this.next();return at||this.lex()},"lex"),begin:a(function(at){this.conditionStack.push(at)},"begin"),popState:a(function(){var at=this.conditionStack.length-1;return at>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(at){return at=this.conditionStack.length-1-Math.abs(at||0),at>=0?this.conditionStack[at]:"INITIAL"},"topState"),pushState:a(function(at){this.begin(at)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(at,W,mt,q){var Z=q;switch(mt){case 0:return this.begin("acc_title"),24;break;case 1:return this.popState(),"acc_title_value";break;case 2:return this.begin("acc_descr"),26;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 33;case 8:return 34;case 9:return 35;case 10:return 36;case 11:return 10;case 12:break;case 13:return 8;case 14:return 50;case 15:return 70;case 16:return 4;case 17:return this.begin("block"),17;break;case 18:return 49;case 19:return 49;case 20:return 42;case 21:return 15;case 22:return 13;case 23:break;case 24:return 59;case 25:return 56;case 26:return 56;case 27:return 60;case 28:break;case 29:return this.popState(),19;break;case 30:return W.yytext[0];case 31:return 20;case 32:return 21;case 33:return this.begin("style"),44;break;case 34:return this.popState(),10;break;case 35:break;case 36:return 13;case 37:return 42;case 38:return 49;case 39:return this.begin("style"),37;break;case 40:return 43;case 41:return 63;case 42:return 65;case 43:return 65;case 44:return 65;case 45:return 63;case 46:return 63;case 47:return 64;case 48:return 64;case 49:return 64;case 50:return 64;case 51:return 64;case 52:return 65;case 53:return 64;case 54:return 65;case 55:return 66;case 56:return 66;case 57:return 66;case 58:return 66;case 59:return 63;case 60:return 64;case 61:return 65;case 62:return 67;case 63:return 68;case 64:return 69;case 65:return 69;case 66:return 68;case 67:return 68;case 68:return 68;case 69:return 41;case 70:return 47;case 71:return 40;case 72:return 48;case 73:return W.yytext[0];case 74: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,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/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,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\[)/i,/^(?:\])/i,/^(?:style\b)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?::)/i,/^(?:,)/i,/^(?:#)/i,/^(?:classDef\b)/i,/^(?:class\b)/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,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:;)/i,/^(?:([^\x00-\x7F]|\w|-|\*)+)/i,/^(?:[0-9])/i,/^(?:.)/i,/^(?:$)/i],conditions:{style:{rules:[34,35,36,37,38,69,70],inclusive:!1},acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},block:{rules:[23,24,25,26,27,28,29,30],inclusive:!1},INITIAL:{rules:[0,2,4,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,31,32,33,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,65,66,67,68,71,72,73,74],inclusive:!0}}};return X}();ut.lexer=it;function st(){this.yy={}}return a(st,"Parser"),st.prototype=ut,ut.Parser=st,new st}();x5.parser=x5;ZY=x5});var qk,tX=x(()=>{"use strict";zt();pe();Sn();Ee();qk=class{constructor(){this.entities=new Map;this.relationships=[];this.classes=new Map;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=rr;this.getAccTitle=ir;this.setAccDescription=sr;this.getAccDescription=ar;this.setDiagramTitle=xr;this.getDiagramTitle=or;this.getConfig=a(()=>Y().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)}static{a(this,"ErDB")}addEntity(t,r=""){return this.entities.has(t)?!this.entities.get(t)?.alias&&r&&(this.entities.get(t).alias=r,P.info(`Add alias '${r}' to entity '${t}'`)):(this.entities.set(t,{id:`entity-${t}-${this.entities.size}`,label:t,attributes:[],alias:r,shape:"erBox",look:Y().look??"default",cssClasses:"default",cssStyles:[]}),P.info("Added new entity :",t)),this.entities.get(t)}getEntity(t){return this.entities.get(t)}getEntities(){return this.entities}getClasses(){return this.classes}addAttributes(t,r){let n=this.addEntity(t),i;for(i=r.length-1;i>=0;i--)r[i].keys||(r[i].keys=[]),r[i].comment||(r[i].comment=""),n.attributes.push(r[i]),P.debug("Added attribute ",r[i].name)}addRelationship(t,r,n,i){let s=this.entities.get(t),o=this.entities.get(n);if(!s||!o)return;let l={entityA:s.id,roleA:r,entityB:o.id,relSpec:i};this.relationships.push(l),P.debug("Added new relationship :",l)}getRelationships(){return this.relationships}getDirection(){return this.direction}setDirection(t){this.direction=t}getCompiledStyles(t){let r=[];for(let n of t){let i=this.classes.get(n);i?.styles&&(r=[...r,...i.styles??[]].map(s=>s.trim())),i?.textStyles&&(r=[...r,...i.textStyles??[]].map(s=>s.trim()))}return r}addCssStyles(t,r){for(let n of t){let i=this.entities.get(n);if(!r||!i)return;for(let s of r)i.cssStyles.push(s)}}addClass(t,r){t.forEach(n=>{let i=this.classes.get(n);i===void 0&&(i={id:n,styles:[],textStyles:[]},this.classes.set(n,i)),r&&r.forEach(function(s){if(/color/.exec(s)){let o=s.replace("fill","bgFill");i.textStyles.push(o)}i.styles.push(s)})})}setClass(t,r){for(let n of t){let i=this.entities.get(n);if(i)for(let s of r)i.cssClasses+=" "+s}}clear(){this.entities=new Map,this.classes=new Map,this.relationships=[],Ye()}getData(){let t=[],r=[],n=Y();for(let s of this.entities.keys()){let o=this.entities.get(s);o&&(o.cssCompiledStyles=this.getCompiledStyles(o.cssClasses.split(" ")),t.push(o))}let i=0;for(let s of this.relationships){let o={id:gc(s.entityA,s.entityB,{prefix:"id",counter:i++}),type:"normal",curve:"basis",start:s.entityA,end:s.entityB,label:s.roleA,labelpos:"c",thickness:"normal",classes:"relationshipLine",arrowTypeStart:s.relSpec.cardB.toLowerCase(),arrowTypeEnd:s.relSpec.cardA.toLowerCase(),pattern:s.relSpec.relType=="IDENTIFYING"?"solid":"dashed",look:n.look};r.push(o)}return{nodes:t,edges:r,other:{},config:n,direction:"TB"}}}});var b5={};Be(b5,{draw:()=>TEt});var TEt,eX=x(()=>{"use strict";pe();zt();od();ih();Rd();Ee();$e();TEt=a(async function(e,t,r,n){P.info("REF0:"),P.info("Drawing er diagram (unified)",t);let{securityLevel:i,er:s,layout:o}=Y(),l=n.db.getData(),u=ko(t,i);l.type=n.type,l.layoutAlgorithm=Mc(o),l.config.flowchart.nodeSpacing=s?.nodeSpacing||140,l.config.flowchart.rankSpacing=s?.rankSpacing||80,l.direction=n.db.getDirection(),l.markers=["only_one","zero_or_one","one_or_more","zero_or_more"],l.diagramId=t,await Lo(l,u),l.layoutAlgorithm==="elk"&&u.select(".edges").lower();let h=u.selectAll('[id*="-background"]');Array.from(h).length>0&&h.each(function(){let d=xt(this),m=d.attr("id").replace("-background",""),g=u.select(`#${CSS.escape(m)}`);if(!g.empty()){let y=g.attr("transform");d.attr("transform",y)}});let f=8;se.insertTitle(u,"erDiagramTitleText",s?.titleTopMargin??25,n.db.getDiagramTitle()),Ro(u,f,"erDiagram",s?.useMaxWidth??!0)},"draw")});var SEt,_Et,rX,nX=x(()=>{"use strict";Gs();SEt=a((e,t)=>{let r=du,n=r(e,"r"),i=r(e,"g"),s=r(e,"b");return Ci(n,i,s,t)},"fade"),_Et=a(e=>`
+ .entityBox {
+ fill: ${e.mainBkg};
+ stroke: ${e.nodeBorder};
+ }
+
+ .relationshipLabelBox {
+ fill: ${e.tertiaryColor};
+ opacity: 0.7;
+ background-color: ${e.tertiaryColor};
+ rect {
+ opacity: 0.5;
+ }
+ }
+
+ .labelBkg {
+ background-color: ${SEt(e.tertiaryColor,.5)};
+ }
+
+ .edgeLabel .label {
+ fill: ${e.nodeBorder};
+ font-size: 14px;
+ }
+
+ .label {
+ font-family: ${e.fontFamily};
+ color: ${e.nodeTextColor||e.textColor};
+ }
+
+ .edge-pattern-dashed {
+ stroke-dasharray: 8,8;
+ }
+
+ .node rect,
+ .node circle,
+ .node ellipse,
+ .node polygon
+ {
+ fill: ${e.mainBkg};
+ stroke: ${e.nodeBorder};
+ stroke-width: 1px;
+ }
+
+ .relationshipLine {
+ stroke: ${e.lineColor};
+ stroke-width: 1;
+ fill: none;
+ }
+
+ .marker {
+ fill: none !important;
+ stroke: ${e.lineColor} !important;
+ stroke-width: 1;
+ }
+`,"getStyles"),rX=_Et});var iX={};Be(iX,{diagram:()=>CEt});var CEt,sX=x(()=>{"use strict";JY();tX();eX();nX();CEt={parser:ZY,get db(){return new qk},renderer:b5,styles:rX}});function an(e){return typeof e=="object"&&e!==null&&typeof e.$type=="string"}function ai(e){return typeof e=="object"&&e!==null&&typeof e.$refText=="string"}function k5(e){return typeof e=="object"&&e!==null&&typeof e.name=="string"&&typeof e.type=="string"&&typeof e.path=="string"}function ah(e){return typeof e=="object"&&e!==null&&an(e.container)&&ai(e.reference)&&typeof e.message=="string"}function Va(e){return typeof e=="object"&&e!==null&&Array.isArray(e.content)}function Oc(e){return typeof e=="object"&&e!==null&&typeof e.tokenType=="object"}function V0(e){return Va(e)&&typeof e.fullText=="string"}var sh,za=x(()=>{"use strict";a(an,"isAstNode");a(ai,"isReference");a(k5,"isAstNodeDescription");a(ah,"isLinkingError");sh=class{static{a(this,"AbstractAstReflection")}constructor(){this.subtypes={},this.allSubtypes={}}isInstance(t,r){return an(t)&&this.isSubtype(t.$type,r)}isSubtype(t,r){if(t===r)return!0;let n=this.subtypes[t];n||(n=this.subtypes[t]={});let i=n[r];if(i!==void 0)return i;{let s=this.computeIsSubtype(t,r);return n[r]=s,s}}getAllSubTypes(t){let r=this.allSubtypes[t];if(r)return r;{let n=this.getAllTypes(),i=[];for(let s of n)this.isSubtype(s,t)&&i.push(s);return this.allSubtypes[t]=i,i}}};a(Va,"isCompositeCstNode");a(Oc,"isLeafCstNode");a(V0,"isRootCstNode")});function AEt(e){return typeof e=="string"?e:typeof e>"u"?"undefined":typeof e.toString=="function"?e.toString():Object.prototype.toString.call(e)}function Hk(e){return!!e&&typeof e[Symbol.iterator]=="function"}function kr(...e){if(e.length===1){let t=e[0];if(t instanceof Ls)return t;if(Hk(t))return new Ls(()=>t[Symbol.iterator](),r=>r.next());if(typeof t.length=="number")return new Ls(()=>({index:0}),r=>r.index1?new Ls(()=>({collIndex:0,arrIndex:0}),t=>{do{if(t.iterator){let r=t.iterator.next();if(!r.done)return r;t.iterator=void 0}if(t.array){if(t.arrIndex{"use strict";Ls=class e{static{a(this,"StreamImpl")}constructor(t,r){this.startFn=t,this.nextFn=r}iterator(){let t={state:this.startFn(),next:a(()=>this.nextFn(t.state),"next"),[Symbol.iterator]:()=>t};return t}[Symbol.iterator](){return this.iterator()}isEmpty(){return!!this.iterator().next().done}count(){let t=this.iterator(),r=0,n=t.next();for(;!n.done;)r++,n=t.next();return r}toArray(){let t=[],r=this.iterator(),n;do n=r.next(),n.value!==void 0&&t.push(n.value);while(!n.done);return t}toSet(){return new Set(this)}toMap(t,r){let n=this.map(i=>[t?t(i):i,r?r(i):i]);return new Map(n)}toString(){return this.join()}concat(t){return new e(()=>({first:this.startFn(),firstDone:!1,iterator:t[Symbol.iterator]()}),r=>{let n;if(!r.firstDone){do if(n=this.nextFn(r.first),!n.done)return n;while(!n.done);r.firstDone=!0}do if(n=r.iterator.next(),!n.done)return n;while(!n.done);return yi})}join(t=","){let r=this.iterator(),n="",i,s=!1;do i=r.next(),i.done||(s&&(n+=t),n+=AEt(i.value)),s=!0;while(!i.done);return n}indexOf(t,r=0){let n=this.iterator(),i=0,s=n.next();for(;!s.done;){if(i>=r&&s.value===t)return i;s=n.next(),i++}return-1}every(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(!t(n.value))return!1;n=r.next()}return!0}some(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return!0;n=r.next()}return!1}forEach(t){let r=this.iterator(),n=0,i=r.next();for(;!i.done;)t(i.value,n),i=r.next(),n++}map(t){return new e(this.startFn,r=>{let{done:n,value:i}=this.nextFn(r);return n?yi:{done:!1,value:t(i)}})}filter(t){return new e(this.startFn,r=>{let n;do if(n=this.nextFn(r),!n.done&&t(n.value))return n;while(!n.done);return yi})}nonNullable(){return this.filter(t=>t!=null)}reduce(t,r){let n=this.iterator(),i=r,s=n.next();for(;!s.done;)i===void 0?i=s.value:i=t(i,s.value),s=n.next();return i}reduceRight(t,r){return this.recursiveReduce(this.iterator(),t,r)}recursiveReduce(t,r,n){let i=t.next();if(i.done)return n;let s=this.recursiveReduce(t,r,n);return s===void 0?i.value:r(s,i.value)}find(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(t(n.value))return n.value;n=r.next()}}findIndex(t){let r=this.iterator(),n=0,i=r.next();for(;!i.done;){if(t(i.value))return n;i=r.next(),n++}return-1}includes(t){let r=this.iterator(),n=r.next();for(;!n.done;){if(n.value===t)return!0;n=r.next()}return!1}flatMap(t){return new e(()=>({this:this.startFn()}),r=>{do{if(r.iterator){let s=r.iterator.next();if(s.done)r.iterator=void 0;else return s}let{done:n,value:i}=this.nextFn(r.this);if(!n){let s=t(i);if(Hk(s))r.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}}while(r.iterator);return yi})}flat(t){if(t===void 0&&(t=1),t<=0)return this;let r=t>1?this.flat(t-1):this;return new e(()=>({this:r.startFn()}),n=>{do{if(n.iterator){let o=n.iterator.next();if(o.done)n.iterator=void 0;else return o}let{done:i,value:s}=r.nextFn(n.this);if(!i)if(Hk(s))n.iterator=s[Symbol.iterator]();else return{done:!1,value:s}}while(n.iterator);return yi})}head(){let r=this.iterator().next();if(!r.done)return r.value}tail(t=1){return new e(()=>{let r=this.startFn();for(let n=0;n