@vibe-forge/client 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +1 -1
- package/dist/assets/{arc-CwMXUVsq.js → arc-DgIxeTMg.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-CGxJV7KJ.js → blockDiagram-c4efeb88-CEAob3X9.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-BKhin7cY.js → c4Diagram-c83219d4-DwIxpDKd.js} +1 -1
- package/dist/assets/channel-DhtnrNJ6.js +1 -0
- package/dist/assets/{classDiagram-beda092f-BASmn22R.js → classDiagram-beda092f-Cz1q8u_0.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-BUk9rNBX.js → classDiagram-v2-2358418a-CImgTuwd.js} +1 -1
- package/dist/assets/clone-7bHB6YkC.js +1 -0
- package/dist/assets/{createText-1719965b-2XqnWjQY.js → createText-1719965b-C1_HJcCc.js} +1 -1
- package/dist/assets/devicon-BWlTeAUU.woff +0 -0
- package/dist/assets/devicon-CirD-cQx.ttf +0 -0
- package/dist/assets/devicon-Dg8iWy0i.svg +1211 -0
- package/dist/assets/devicon-TqfHp33-.eot +0 -0
- package/dist/assets/{edges-96097737-B7e32Jeg.js → edges-96097737-BU8qStzd.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-CCR2or72.js → erDiagram-0228fc6a-DNA1Fz2L.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-B72HWT9x.js → flowDb-c6c81e3f-DjiCStMN.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-WOi0KARY.js → flowDiagram-50d868cf-CSDi0-RD.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-_13Sz5Wh.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-i_Yd0LCE.js → flowchart-elk-definition-6af322e1-DrhIMas7.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-CFH9zF14.js → ganttDiagram-a2739b55-CTZnUP5z.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-DglKfMze.js → gitGraphDiagram-82fe8481-COOW7jTi.js} +1 -1
- package/dist/assets/{graph-BKbBNGPf.js → graph-CIkpD4Kx.js} +1 -1
- package/dist/assets/{index-5325376f-BK7F9nSl.js → index-5325376f-aVVRRTIu.js} +1 -1
- package/dist/assets/index-D1giUI7r.css +1 -0
- package/dist/assets/index-DRSI_ZIL.js +514 -0
- package/dist/assets/{infoDiagram-8eee0895-BLFL77_D.js → infoDiagram-8eee0895-DQpZ1LVD.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-CS9XctDL.js → journeyDiagram-c64418c1-DoKguIuk.js} +1 -1
- package/dist/assets/{layout-By3JZZGt.js → layout-Tnmha8Nh.js} +1 -1
- package/dist/assets/{line-9GUsXbwv.js → line-BQR2SOyl.js} +1 -1
- package/dist/assets/{linear-DzGV4E9N.js → linear-DlG0eemV.js} +1 -1
- package/dist/assets/{mermaid.core-CG3Ib42Q.js → mermaid.core-BnwYO0He.js} +6 -6
- package/dist/assets/{mindmap-definition-8da855dc-WQ3LPKJU.js → mindmap-definition-8da855dc-BllYwDID.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-DHVIUZiN.js → pieDiagram-a8764435-DwCkhPVc.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-C3G9Ye8-.js → quadrantDiagram-1e28029f-c40GKTU0.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-C9ES1D5G.js → requirementDiagram-08caed73-DnQp2Tk6.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-B4BKXclQ.js → sankeyDiagram-a04cb91d-CnJrs13b.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-DrgEb25G.js → sequenceDiagram-c5b8d532-1YBwnpKu.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-CF1XWARJ.js → stateDiagram-1ecb1508-BFBxQ6Fh.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-IO3i3yXv.js → stateDiagram-v2-c2b004d7-Dmechvv2.js} +1 -1
- package/dist/assets/{styles-b4e223ce-DACN9aSc.js → styles-b4e223ce-DWWfWX8O.js} +1 -1
- package/dist/assets/{styles-ca3715f6-bekm2WLP.js → styles-ca3715f6-CKKvZxaU.js} +1 -1
- package/dist/assets/{styles-d45a18b0-OzTDVBb8.js → styles-d45a18b0-dKMOUh9p.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-BWroJerr.js → svgDrawCommon-b86b1483-CBgjChPM.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-CCfRNigO.js → timeline-definition-faaaa080-NCt-HHmb.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-C3cbfVqN.js → xychartDiagram-f5964ef8-BJhXS4dG.js} +1 -1
- package/dist/index.html +2 -7
- package/index.html +0 -5
- package/package.json +11 -6
- package/src/App.tsx +2 -0
- package/src/api/README.md +26 -0
- package/src/api/automation.ts +88 -0
- package/src/api/base.ts +54 -0
- package/src/api/benchmark.ts +45 -0
- package/src/api/config.ts +24 -0
- package/src/api/knowledge.ts +72 -0
- package/src/api/projects.ts +15 -0
- package/src/api/sessions.ts +82 -0
- package/src/api/types.ts +20 -0
- package/src/api.ts +44 -269
- package/src/components/AutomationView/AutomationView.scss +5 -1
- package/src/components/AutomationView/RuleFormPanel.tsx +3 -2
- package/src/components/AutomationView/TaskList.scss +4 -6
- package/src/components/AutomationView/TaskList.tsx +2 -1
- package/src/components/AutomationView/TriggerList.scss +4 -1
- package/src/components/BenchmarkView/BenchmarkCasePanel.scss +267 -0
- package/src/components/BenchmarkView/BenchmarkCasePanel.tsx +309 -0
- package/src/components/BenchmarkView/BenchmarkSidebar.scss +182 -0
- package/src/components/BenchmarkView/BenchmarkSidebar.tsx +262 -0
- package/src/components/BenchmarkView/BenchmarkView.scss +78 -0
- package/src/components/BenchmarkView/index.tsx +197 -0
- package/src/components/BenchmarkView/types.ts +10 -0
- package/src/components/BenchmarkView/utils.ts +21 -0
- package/src/components/Chat.tsx +37 -29
- package/src/components/{chat/CodeBlock.tsx → CodeBlock.tsx} +3 -1
- package/src/components/ConfigView.tsx +7 -0
- package/src/components/{chat/MarkdownContent.tsx → MarkdownContent.tsx} +1 -1
- package/src/components/NavRail.tsx +7 -0
- package/src/components/chat/ChatHeader.scss +37 -19
- package/src/components/chat/ChatHeader.tsx +6 -9
- package/src/components/chat/ChatHistoryView.tsx +89 -45
- package/src/components/chat/CurrentTodoList.tsx +10 -9
- package/src/components/chat/{MessageItem.scss → Messages/MessageItem.scss} +14 -0
- package/src/components/chat/{MessageItem.tsx → Messages/MessageItem.tsx} +30 -8
- package/src/components/chat/{messageUtils.ts → Messages/message-utils.ts} +1 -1
- package/src/components/chat/{Sender.scss → Sender/Sender.scss} +80 -0
- package/src/components/chat/{Sender.tsx → Sender/Sender.tsx} +161 -5
- package/src/components/chat/tools/DefaultTool.tsx +184 -21
- package/src/components/chat/tools/adapter-claude/BashTool.scss +67 -51
- package/src/components/chat/tools/adapter-claude/BashTool.tsx +83 -49
- package/src/components/chat/tools/adapter-claude/GlobTool.scss +0 -79
- package/src/components/chat/tools/adapter-claude/GlobTool.tsx +16 -36
- package/src/components/chat/tools/adapter-claude/GrepTool.scss +0 -87
- package/src/components/chat/tools/adapter-claude/GrepTool.tsx +22 -41
- package/src/components/chat/tools/adapter-claude/LSTool.scss +0 -79
- package/src/components/chat/tools/adapter-claude/LSTool.tsx +15 -15
- package/src/components/chat/tools/adapter-claude/ReadTool.scss +0 -55
- package/src/components/chat/tools/adapter-claude/ReadTool.tsx +20 -42
- package/src/components/chat/tools/adapter-claude/TodoTool.scss +8 -23
- package/src/components/chat/tools/adapter-claude/TodoTool.tsx +24 -11
- package/src/components/chat/tools/adapter-claude/WriteTool.scss +21 -69
- package/src/components/chat/tools/adapter-claude/WriteTool.tsx +22 -58
- package/src/components/chat/tools/adapter-claude/index.ts +4 -10
- package/src/components/chat/tools/adapter-claude/utils.ts +54 -0
- package/src/components/chat/tools/core/ToolCallBox.scss +356 -0
- package/src/components/chat/{ToolGroup.tsx → tools/core/ToolGroup.tsx} +26 -7
- package/src/components/chat/{ToolRenderer.tsx → tools/core/ToolRenderer.tsx} +6 -4
- package/src/components/chat/tools/plugin-chrome-devtools/ChromeDevtoolsTool.scss +11 -0
- package/src/components/chat/tools/plugin-chrome-devtools/ChromeDevtoolsTool.tsx +75 -0
- package/src/components/chat/tools/plugin-chrome-devtools/index.ts +45 -0
- package/src/components/chat/tools/task/GetTaskInfoTool.scss +2 -27
- package/src/components/chat/tools/task/GetTaskInfoTool.tsx +48 -38
- package/src/components/chat/tools/task/ListTasksTool.scss +3 -28
- package/src/components/chat/tools/task/ListTasksTool.tsx +11 -8
- package/src/components/chat/tools/task/StartTasksTool.scss +3 -28
- package/src/components/chat/tools/task/StartTasksTool.tsx +14 -17
- package/src/components/chat/tools/task/components/TaskRow.scss +105 -0
- package/src/components/chat/tools/task/components/TaskRow.tsx +163 -0
- package/src/components/chat/tools/task/components/TaskToolCard.scss +15 -15
- package/src/components/chat/tools/task/components/TaskToolCard.tsx +8 -6
- package/src/components/config/ConfigSectionForm.tsx +12 -1
- package/src/components/config/channelDefinitions.ts +6 -0
- package/src/components/config/configSchema.ts +10 -1
- package/src/components/config/recordEditors/ChannelRecordEditor.scss +1 -0
- package/src/components/config/recordEditors/ChannelRecordEditor.tsx +397 -0
- package/src/components/config/recordEditors/index.tsx +1 -0
- package/src/components/knowledge-base/components/RuleItem.tsx +1 -1
- package/src/components/knowledge-base/components/SpecItem.tsx +1 -1
- package/src/hooks/chat/use-chat-interaction.ts +26 -0
- package/src/{components/chat/useChatModels.tsx → hooks/chat/use-chat-models.tsx} +46 -15
- package/src/hooks/chat/use-chat-permission-mode.ts +47 -0
- package/src/hooks/chat/use-chat-scroll.ts +51 -0
- package/src/hooks/chat/use-chat-session-actions.ts +147 -0
- package/src/hooks/chat/use-chat-session-messages.ts +250 -0
- package/src/hooks/chat/use-chat-session.ts +57 -0
- package/src/hooks/chat/use-chat-view.ts +39 -0
- package/src/main.tsx +10 -13
- package/src/resources/locales/en.json +66 -0
- package/src/resources/locales/zh.json +66 -0
- package/src/runtime-config.ts +52 -0
- package/src/vite-env.d.ts +11 -0
- package/src/ws.ts +5 -3
- package/vite.config.ts +12 -4
- package/dist/assets/channel-jbCEHqbG.js +0 -1
- package/dist/assets/clone-CCRKqS4L.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-Baslbgn4.js +0 -1
- package/dist/assets/index-B0qfCb1G.css +0 -1
- package/dist/assets/index-CNo75dYr.js +0 -497
- package/src/components/chat/ToolCallBox.scss +0 -137
- package/src/components/chat/useChatSession.ts +0 -370
- /package/src/components/{chat/CodeBlock.scss → CodeBlock.scss} +0 -0
- /package/src/components/chat/{MessageFooter.tsx → Messages/MessageFooter.tsx} +0 -0
- /package/src/components/chat/{CompletionMenu.scss → Sender/CompletionMenu.scss} +0 -0
- /package/src/components/chat/{CompletionMenu.tsx → Sender/CompletionMenu.tsx} +0 -0
- /package/src/components/chat/{ThinkingStatus.scss → Sender/ThinkingStatus.scss} +0 -0
- /package/src/components/chat/{ThinkingStatus.tsx → Sender/ThinkingStatus.tsx} +0 -0
- /package/src/components/chat/{ToolCallBox.tsx → tools/core/ToolCallBox.tsx} +0 -0
- /package/src/components/chat/{ToolGroup.scss → tools/core/ToolGroup.scss} +0 -0
- /package/src/{components/chat/safeSerialize.ts → utils/safe-serialize.ts} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-c83219d4-
|
|
2
|
-
import{s as jl,
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/c4Diagram-c83219d4-DwIxpDKd.js","assets/svgDrawCommon-b86b1483-CBgjChPM.js","assets/index-DRSI_ZIL.js","assets/index-D1giUI7r.css","assets/flowDiagram-50d868cf-CSDi0-RD.js","assets/flowDb-c6c81e3f-DjiCStMN.js","assets/graph-CIkpD4Kx.js","assets/layout-Tnmha8Nh.js","assets/styles-d45a18b0-dKMOUh9p.js","assets/index-5325376f-aVVRRTIu.js","assets/clone-7bHB6YkC.js","assets/edges-96097737-BU8qStzd.js","assets/createText-1719965b-C1_HJcCc.js","assets/line-BQR2SOyl.js","assets/array-BKyUJesY.js","assets/path-CbwjOpE9.js","assets/channel-DhtnrNJ6.js","assets/flowDiagram-v2-4f6560a1-_13Sz5Wh.js","assets/erDiagram-0228fc6a-DNA1Fz2L.js","assets/gitGraphDiagram-82fe8481-COOW7jTi.js","assets/ganttDiagram-a2739b55-CTZnUP5z.js","assets/linear-DlG0eemV.js","assets/init-Gi6I4Gst.js","assets/infoDiagram-8eee0895-DQpZ1LVD.js","assets/pieDiagram-a8764435-DwCkhPVc.js","assets/arc-DgIxeTMg.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-1e28029f-c40GKTU0.js","assets/xychartDiagram-f5964ef8-BJhXS4dG.js","assets/requirementDiagram-08caed73-DnQp2Tk6.js","assets/sequenceDiagram-c5b8d532-1YBwnpKu.js","assets/classDiagram-beda092f-Cz1q8u_0.js","assets/styles-b4e223ce-DWWfWX8O.js","assets/classDiagram-v2-2358418a-CImgTuwd.js","assets/stateDiagram-1ecb1508-BFBxQ6Fh.js","assets/styles-ca3715f6-CKKvZxaU.js","assets/stateDiagram-v2-c2b004d7-Dmechvv2.js","assets/journeyDiagram-c64418c1-DoKguIuk.js","assets/flowchart-elk-definition-6af322e1-DrhIMas7.js","assets/timeline-definition-faaaa080-NCt-HHmb.js","assets/mindmap-definition-8da855dc-BllYwDID.js","assets/sankeyDiagram-a04cb91d-CnJrs13b.js","assets/Tableau10-B-NsZVaP.js","assets/blockDiagram-c4efeb88-CEAob3X9.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{s as jl,c as Ul,d as Yl,_ as M,a as Vl}from"./index-DRSI_ZIL.js";function Gl(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];var r=Array.from(typeof t=="string"?[t]:t);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var n=r.reduce(function(a,l){var h=l.match(/\n([\t ]+|(?!\s).)/g);return h?a.concat(h.map(function(u){var d,c;return(c=(d=u.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&c!==void 0?c:0})):a},[]);if(n.length){var o=new RegExp(`
|
|
3
3
|
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(o,`
|
|
4
4
|
`)})}r[0]=r[0].replace(/^\r?\n/,"");var s=r[0];return e.forEach(function(a,l){var h=s.match(/(?:^|\n)( *)$/),u=h?h[1]:"",d=a;typeof a=="string"&&a.includes(`
|
|
5
5
|
`)&&(d=String(a).split(`
|
|
6
6
|
`).map(function(c,g){return g===0?c:""+u+c}).join(`
|
|
7
7
|
`)),s+=d+r[l+1]}),s}var vs={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitizeUrl=t.BLANK_URL=void 0;var e=/^([^\w]*)(javascript|data|vbscript)/im,i=/&#(\w+)(^\w|;)?/g,r=/&(newline|tab);/gi,n=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,o=/^.+(:|:)/gim,s=[".","/"];t.BLANK_URL="about:blank";function a(u){return s.indexOf(u[0])>-1}function l(u){var d=u.replace(n,"");return d.replace(i,function(c,g){return String.fromCharCode(g)})}function h(u){if(!u)return t.BLANK_URL;var d=l(u).replace(r,"").replace(n,"").trim();if(!d)return t.BLANK_URL;if(a(d))return d;var c=d.match(o);if(!c)return d;var g=c[0];return e.test(g)?t.BLANK_URL:d}t.sanitizeUrl=h})(vs);var Xl={value:()=>{}};function ks(){for(var t=0,e=arguments.length,i={},r;t<e;++t){if(!(r=arguments[t]+"")||r in i||/[\s.]/.test(r))throw new Error("illegal type: "+r);i[r]=[]}return new Ci(i)}function Ci(t){this._=t}function Kl(t,e){return t.trim().split(/^|\s+/).map(function(i){var r="",n=i.indexOf(".");if(n>=0&&(r=i.slice(n+1),i=i.slice(0,n)),i&&!e.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:r}})}Ci.prototype=ks.prototype={constructor:Ci,on:function(t,e){var i=this._,r=Kl(t+"",i),n,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((n=(t=r[o]).type)&&(n=Zl(i[n],t.name)))return n;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(n=(t=r[o]).type)i[n]=ho(i[n],t.name,e);else if(e==null)for(n in i)i[n]=ho(i[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var i in e)t[i]=e[i].slice();return new Ci(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var i=new Array(n),r=0,n,o;r<n;++r)i[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,n=o.length;r<n;++r)o[r].value.apply(e,i)},apply:function(t,e,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],n=0,o=r.length;n<o;++n)r[n].value.apply(e,i)}};function Zl(t,e){for(var i=0,r=t.length,n;i<r;++i)if((n=t[i]).name===e)return n.value}function ho(t,e,i){for(var r=0,n=t.length;r<n;++r)if(t[r].name===e){t[r]=Xl,t=t.slice(0,r).concat(t.slice(r+1));break}return i!=null&&t.push({name:e,value:i}),t}var qr="http://www.w3.org/1999/xhtml";const co={svg:"http://www.w3.org/2000/svg",xhtml:qr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vi(t){var e=t+="",i=e.indexOf(":");return i>=0&&(e=t.slice(0,i))!=="xmlns"&&(t=t.slice(i+1)),co.hasOwnProperty(e)?{space:co[e],local:t}:t}function Jl(t){return function(){var e=this.ownerDocument,i=this.namespaceURI;return i===qr&&e.documentElement.namespaceURI===qr?e.createElement(t):e.createElementNS(i,t)}}function Ql(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ss(t){var e=Vi(t);return(e.local?Ql:Jl)(e)}function th(){}function an(t){return t==null?th:function(){return this.querySelector(t)}}function eh(t){typeof t!="function"&&(t=an(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=new Array(s),l,h,u=0;u<s;++u)(l=o[u])&&(h=t.call(l,l.__data__,u,o))&&("__data__"in l&&(h.__data__=l.__data__),a[u]=h);return new rt(r,this._parents)}function ih(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function rh(){return[]}function ws(t){return t==null?rh:function(){return this.querySelectorAll(t)}}function nh(t){return function(){return ih(t.apply(this,arguments))}}function oh(t){typeof t=="function"?t=nh(t):t=ws(t);for(var e=this._groups,i=e.length,r=[],n=[],o=0;o<i;++o)for(var s=e[o],a=s.length,l,h=0;h<a;++h)(l=s[h])&&(r.push(t.call(l,l.__data__,h,s)),n.push(l));return new rt(r,n)}function Bs(t){return function(){return this.matches(t)}}function As(t){return function(e){return e.matches(t)}}var sh=Array.prototype.find;function ah(t){return function(){return sh.call(this.children,t)}}function lh(){return this.firstElementChild}function hh(t){return this.select(t==null?lh:ah(typeof t=="function"?t:As(t)))}var ch=Array.prototype.filter;function uh(){return Array.from(this.children)}function fh(t){return function(){return ch.call(this.children,t)}}function dh(t){return this.selectAll(t==null?uh:fh(typeof t=="function"?t:As(t)))}function ph(t){typeof t!="function"&&(t=Bs(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,h=0;h<s;++h)(l=o[h])&&t.call(l,l.__data__,h,o)&&a.push(l);return new rt(r,this._parents)}function Fs(t){return new Array(t.length)}function gh(){return new rt(this._enter||this._groups.map(Fs),this._parents)}function Si(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Si.prototype={constructor:Si,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function mh(t){return function(){return t}}function _h(t,e,i,r,n,o){for(var s=0,a,l=e.length,h=o.length;s<h;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):i[s]=new Si(t,o[s]);for(;s<l;++s)(a=e[s])&&(n[s]=a)}function yh(t,e,i,r,n,o,s){var a,l,h=new Map,u=e.length,d=o.length,c=new Array(u),g;for(a=0;a<u;++a)(l=e[a])&&(c[a]=g=s.call(l,l.__data__,a,e)+"",h.has(g)?n[a]=l:h.set(g,l));for(a=0;a<d;++a)g=s.call(t,o[a],a,o)+"",(l=h.get(g))?(r[a]=l,l.__data__=o[a],h.delete(g)):i[a]=new Si(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&h.get(c[a])===l&&(n[a]=l)}function Ch(t){return t.__data__}function xh(t,e){if(!arguments.length)return Array.from(this,Ch);var i=e?yh:_h,r=this._parents,n=this._groups;typeof t!="function"&&(t=mh(t));for(var o=n.length,s=new Array(o),a=new Array(o),l=new Array(o),h=0;h<o;++h){var u=r[h],d=n[h],c=d.length,g=bh(t.call(u,u&&u.__data__,h,r)),y=g.length,w=a[h]=new Array(y),k=s[h]=new Array(y),E=l[h]=new Array(c);i(u,d,w,k,E,g,e);for(var B=0,it=0,L,nt;B<y;++B)if(L=w[B]){for(B>=it&&(it=B+1);!(nt=k[it])&&++it<y;);L._next=nt||null}}return s=new rt(s,r),s._enter=a,s._exit=l,s}function bh(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Th(){return new rt(this._exit||this._groups.map(Fs),this._parents)}function vh(t,e,i){var r=this.enter(),n=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(n=e(n),n&&(n=n.selection())),i==null?o.remove():i(o),r&&n?r.merge(n).order():n}function kh(t){for(var e=t.selection?t.selection():t,i=this._groups,r=e._groups,n=i.length,o=r.length,s=Math.min(n,o),a=new Array(n),l=0;l<s;++l)for(var h=i[l],u=r[l],d=h.length,c=a[l]=new Array(d),g,y=0;y<d;++y)(g=h[y]||u[y])&&(c[y]=g);for(;l<n;++l)a[l]=i[l];return new rt(a,this._parents)}function Sh(){for(var t=this._groups,e=-1,i=t.length;++e<i;)for(var r=t[e],n=r.length-1,o=r[n],s;--n>=0;)(s=r[n])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function wh(t){t||(t=Bh);function e(d,c){return d&&c?t(d.__data__,c.__data__):!d-!c}for(var i=this._groups,r=i.length,n=new Array(r),o=0;o<r;++o){for(var s=i[o],a=s.length,l=n[o]=new Array(a),h,u=0;u<a;++u)(h=s[u])&&(l[u]=h);l.sort(e)}return new rt(n,this._parents).order()}function Bh(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ah(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Fh(){return Array.from(this)}function Lh(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length;n<o;++n){var s=r[n];if(s)return s}return null}function Eh(){let t=0;for(const e of this)++t;return t}function Oh(){return!this.node()}function Ih(t){for(var e=this._groups,i=0,r=e.length;i<r;++i)for(var n=e[i],o=0,s=n.length,a;o<s;++o)(a=n[o])&&t.call(a,a.__data__,o,n);return this}function Mh(t){return function(){this.removeAttribute(t)}}function Dh(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Nh(t,e){return function(){this.setAttribute(t,e)}}function Rh(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ph(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttribute(t):this.setAttribute(t,i)}}function $h(t,e){return function(){var i=e.apply(this,arguments);i==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function qh(t,e){var i=Vi(t);if(arguments.length<2){var r=this.node();return i.local?r.getAttributeNS(i.space,i.local):r.getAttribute(i)}return this.each((e==null?i.local?Dh:Mh:typeof e=="function"?i.local?$h:Ph:i.local?Rh:Nh)(i,e))}function Ls(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zh(t){return function(){this.style.removeProperty(t)}}function Wh(t,e,i){return function(){this.style.setProperty(t,e,i)}}function Hh(t,e,i){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,i)}}function jh(t,e,i){return arguments.length>1?this.each((e==null?zh:typeof e=="function"?Hh:Wh)(t,e,i??"")):fe(this.node(),t)}function fe(t,e){return t.style.getPropertyValue(e)||Ls(t).getComputedStyle(t,null).getPropertyValue(e)}function Uh(t){return function(){delete this[t]}}function Yh(t,e){return function(){this[t]=e}}function Vh(t,e){return function(){var i=e.apply(this,arguments);i==null?delete this[t]:this[t]=i}}function Gh(t,e){return arguments.length>1?this.each((e==null?Uh:typeof e=="function"?Vh:Yh)(t,e)):this.node()[t]}function Es(t){return t.trim().split(/^|\s+/)}function ln(t){return t.classList||new Os(t)}function Os(t){this._node=t,this._names=Es(t.getAttribute("class")||"")}Os.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Is(t,e){for(var i=ln(t),r=-1,n=e.length;++r<n;)i.add(e[r])}function Ms(t,e){for(var i=ln(t),r=-1,n=e.length;++r<n;)i.remove(e[r])}function Xh(t){return function(){Is(this,t)}}function Kh(t){return function(){Ms(this,t)}}function Zh(t,e){return function(){(e.apply(this,arguments)?Is:Ms)(this,t)}}function Jh(t,e){var i=Es(t+"");if(arguments.length<2){for(var r=ln(this.node()),n=-1,o=i.length;++n<o;)if(!r.contains(i[n]))return!1;return!0}return this.each((typeof e=="function"?Zh:e?Xh:Kh)(i,e))}function Qh(){this.textContent=""}function tc(t){return function(){this.textContent=t}}function ec(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ic(t){return arguments.length?this.each(t==null?Qh:(typeof t=="function"?ec:tc)(t)):this.node().textContent}function rc(){this.innerHTML=""}function nc(t){return function(){this.innerHTML=t}}function oc(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function sc(t){return arguments.length?this.each(t==null?rc:(typeof t=="function"?oc:nc)(t)):this.node().innerHTML}function ac(){this.nextSibling&&this.parentNode.appendChild(this)}function lc(){return this.each(ac)}function hc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function cc(){return this.each(hc)}function uc(t){var e=typeof t=="function"?t:Ss(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function fc(){return null}function dc(t,e){var i=typeof t=="function"?t:Ss(t),r=e==null?fc:typeof e=="function"?e:an(e);return this.select(function(){return this.insertBefore(i.apply(this,arguments),r.apply(this,arguments)||null)})}function pc(){var t=this.parentNode;t&&t.removeChild(this)}function gc(){return this.each(pc)}function mc(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function _c(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yc(t){return this.select(t?_c:mc)}function Cc(t){return arguments.length?this.property("__data__",t):this.node().__data__}function xc(t){return function(e){t.call(this,e,this.__data__)}}function bc(t){return t.trim().split(/^|\s+/).map(function(e){var i="",r=e.indexOf(".");return r>=0&&(i=e.slice(r+1),e=e.slice(0,r)),{type:e,name:i}})}function Tc(t){return function(){var e=this.__on;if(e){for(var i=0,r=-1,n=e.length,o;i<n;++i)o=e[i],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function vc(t,e,i){return function(){var r=this.__on,n,o=xc(e);if(r){for(var s=0,a=r.length;s<a;++s)if((n=r[s]).type===t.type&&n.name===t.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=o,n.options=i),n.value=e;return}}this.addEventListener(t.type,o,i),n={type:t.type,name:t.name,value:e,listener:o,options:i},r?r.push(n):this.__on=[n]}}function kc(t,e,i){var r=bc(t+""),n,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,h=a.length,u;l<h;++l)for(n=0,u=a[l];n<o;++n)if((s=r[n]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?vc:Tc,n=0;n<o;++n)this.each(a(r[n],e,i));return this}function Ds(t,e,i){var r=Ls(t),n=r.CustomEvent;typeof n=="function"?n=new n(e,i):(n=r.document.createEvent("Event"),i?(n.initEvent(e,i.bubbles,i.cancelable),n.detail=i.detail):n.initEvent(e,!1,!1)),t.dispatchEvent(n)}function Sc(t,e){return function(){return Ds(this,t,e)}}function wc(t,e){return function(){return Ds(this,t,e.apply(this,arguments))}}function Bc(t,e){return this.each((typeof e=="function"?wc:Sc)(t,e))}function*Ac(){for(var t=this._groups,e=0,i=t.length;e<i;++e)for(var r=t[e],n=0,o=r.length,s;n<o;++n)(s=r[n])&&(yield s)}var Ns=[null];function rt(t,e){this._groups=t,this._parents=e}function Je(){return new rt([[document.documentElement]],Ns)}function Fc(){return this}rt.prototype=Je.prototype={constructor:rt,select:eh,selectAll:oh,selectChild:hh,selectChildren:dh,filter:ph,data:xh,enter:gh,exit:Th,join:vh,merge:kh,selection:Fc,order:Sh,sort:wh,call:Ah,nodes:Fh,node:Lh,size:Eh,empty:Oh,each:Ih,attr:qh,style:jh,property:Gh,classed:Jh,text:ic,html:sc,raise:lc,lower:cc,append:uc,insert:dc,remove:gc,clone:yc,datum:Cc,on:kc,dispatch:Bc,[Symbol.iterator]:Ac};function st(t){return typeof t=="string"?new rt([[document.querySelector(t)]],[document.documentElement]):new rt([[t]],Ns)}function hn(t,e,i){t.prototype=e.prototype=i,i.constructor=t}function Rs(t,e){var i=Object.create(t.prototype);for(var r in e)i[r]=e[r];return i}function Qe(){}var Ue=.7,wi=1/Ue,ce="\\s*([+-]?\\d+)\\s*",Ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lc=/^#([0-9a-f]{3,8})$/,Ec=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),Oc=new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`),Ic=new RegExp(`^rgba\\(${ce},${ce},${ce},${Ye}\\)$`),Mc=new RegExp(`^rgba\\(${mt},${mt},${mt},${Ye}\\)$`),Dc=new RegExp(`^hsl\\(${Ye},${mt},${mt}\\)$`),Nc=new RegExp(`^hsla\\(${Ye},${mt},${mt},${Ye}\\)$`),uo={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};hn(Qe,Ve,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:fo,formatHex:fo,formatHex8:Rc,formatHsl:Pc,formatRgb:po,toString:po});function fo(){return this.rgb().formatHex()}function Rc(){return this.rgb().formatHex8()}function Pc(){return Ps(this).formatHsl()}function po(){return this.rgb().formatRgb()}function Ve(t){var e,i;return t=(t+"").trim().toLowerCase(),(e=Lc.exec(t))?(i=e[1].length,e=parseInt(e[1],16),i===6?go(e):i===3?new tt(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):i===8?di(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):i===4?di(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ec.exec(t))?new tt(e[1],e[2],e[3],1):(e=Oc.exec(t))?new tt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Ic.exec(t))?di(e[1],e[2],e[3],e[4]):(e=Mc.exec(t))?di(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Dc.exec(t))?yo(e[1],e[2]/100,e[3]/100,1):(e=Nc.exec(t))?yo(e[1],e[2]/100,e[3]/100,e[4]):uo.hasOwnProperty(t)?go(uo[t]):t==="transparent"?new tt(NaN,NaN,NaN,0):null}function go(t){return new tt(t>>16&255,t>>8&255,t&255,1)}function di(t,e,i,r){return r<=0&&(t=e=i=NaN),new tt(t,e,i,r)}function $c(t){return t instanceof Qe||(t=Ve(t)),t?(t=t.rgb(),new tt(t.r,t.g,t.b,t.opacity)):new tt}function zr(t,e,i,r){return arguments.length===1?$c(t):new tt(t,e,i,r??1)}function tt(t,e,i,r){this.r=+t,this.g=+e,this.b=+i,this.opacity=+r}hn(tt,zr,Rs(Qe,{brighter(t){return t=t==null?wi:Math.pow(wi,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ue:Math.pow(Ue,t),new tt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tt(jt(this.r),jt(this.g),jt(this.b),Bi(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:mo,formatHex:mo,formatHex8:qc,formatRgb:_o,toString:_o}));function mo(){return`#${Wt(this.r)}${Wt(this.g)}${Wt(this.b)}`}function qc(){return`#${Wt(this.r)}${Wt(this.g)}${Wt(this.b)}${Wt((isNaN(this.opacity)?1:this.opacity)*255)}`}function _o(){const t=Bi(this.opacity);return`${t===1?"rgb(":"rgba("}${jt(this.r)}, ${jt(this.g)}, ${jt(this.b)}${t===1?")":`, ${t})`}`}function Bi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function jt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Wt(t){return t=jt(t),(t<16?"0":"")+t.toString(16)}function yo(t,e,i,r){return r<=0?t=e=i=NaN:i<=0||i>=1?t=e=NaN:e<=0&&(t=NaN),new ct(t,e,i,r)}function Ps(t){if(t instanceof ct)return new ct(t.h,t.s,t.l,t.opacity);if(t instanceof Qe||(t=Ve(t)),!t)return new ct;if(t instanceof ct)return t;t=t.rgb();var e=t.r/255,i=t.g/255,r=t.b/255,n=Math.min(e,i,r),o=Math.max(e,i,r),s=NaN,a=o-n,l=(o+n)/2;return a?(e===o?s=(i-r)/a+(i<r)*6:i===o?s=(r-e)/a+2:s=(e-i)/a+4,a/=l<.5?o+n:2-o-n,s*=60):a=l>0&&l<1?0:s,new ct(s,a,l,t.opacity)}function zc(t,e,i,r){return arguments.length===1?Ps(t):new ct(t,e,i,r??1)}function ct(t,e,i,r){this.h=+t,this.s=+e,this.l=+i,this.opacity=+r}hn(ct,zc,Rs(Qe,{brighter(t){return t=t==null?wi:Math.pow(wi,t),new ct(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ue:Math.pow(Ue,t),new ct(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*e,n=2*i-r;return new tt(kr(t>=240?t-240:t+120,n,r),kr(t,n,r),kr(t<120?t+240:t-120,n,r),this.opacity)},clamp(){return new ct(Co(this.h),pi(this.s),pi(this.l),Bi(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(){const t=Bi(this.opacity);return`${t===1?"hsl(":"hsla("}${Co(this.h)}, ${pi(this.s)*100}%, ${pi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Co(t){return t=(t||0)%360,t<0?t+360:t}function pi(t){return Math.max(0,Math.min(1,t||0))}function kr(t,e,i){return(t<60?e+(i-e)*t/60:t<180?i:t<240?e+(i-e)*(240-t)/60:e)*255}const cn=t=>()=>t;function $s(t,e){return function(i){return t+i*e}}function Wc(t,e,i){return t=Math.pow(t,i),e=Math.pow(e,i)-t,i=1/i,function(r){return Math.pow(t+r*e,i)}}function Ix(t,e){var i=e-t;return i?$s(t,i>180||i<-180?i-360*Math.round(i/360):i):cn(isNaN(t)?e:t)}function Hc(t){return(t=+t)==1?qs:function(e,i){return i-e?Wc(e,i,t):cn(isNaN(e)?i:e)}}function qs(t,e){var i=e-t;return i?$s(t,i):cn(isNaN(t)?e:t)}const xo=function t(e){var i=Hc(e);function r(n,o){var s=i((n=zr(n)).r,(o=zr(o)).r),a=i(n.g,o.g),l=i(n.b,o.b),h=qs(n.opacity,o.opacity);return function(u){return n.r=s(u),n.g=a(u),n.b=l(u),n.opacity=h(u),n+""}}return r.gamma=t,r}(1);function Mt(t,e){return t=+t,e=+e,function(i){return t*(1-i)+e*i}}var Wr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Sr=new RegExp(Wr.source,"g");function jc(t){return function(){return t}}function Uc(t){return function(e){return t(e)+""}}function Yc(t,e){var i=Wr.lastIndex=Sr.lastIndex=0,r,n,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=Wr.exec(t))&&(n=Sr.exec(e));)(o=n.index)>i&&(o=e.slice(i,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:Mt(r,n)})),i=Sr.lastIndex;return i<e.length&&(o=e.slice(i),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?Uc(l[0].x):jc(e):(e=l.length,function(h){for(var u=0,d;u<e;++u)a[(d=l[u]).i]=d.x(h);return a.join("")})}var bo=180/Math.PI,Hr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function zs(t,e,i,r,n,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*i+e*r)&&(i-=t*l,r-=e*l),(a=Math.sqrt(i*i+r*r))&&(i/=a,r/=a,l/=a),t*r<e*i&&(t=-t,e=-e,l=-l,s=-s),{translateX:n,translateY:o,rotate:Math.atan2(e,t)*bo,skewX:Math.atan(l)*bo,scaleX:s,scaleY:a}}var gi;function Vc(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Hr:zs(e.a,e.b,e.c,e.d,e.e,e.f)}function Gc(t){return t==null||(gi||(gi=document.createElementNS("http://www.w3.org/2000/svg","g")),gi.setAttribute("transform",t),!(t=gi.transform.baseVal.consolidate()))?Hr:(t=t.matrix,zs(t.a,t.b,t.c,t.d,t.e,t.f))}function Ws(t,e,i,r){function n(h){return h.length?h.pop()+" ":""}function o(h,u,d,c,g,y){if(h!==d||u!==c){var w=g.push("translate(",null,e,null,i);y.push({i:w-4,x:Mt(h,d)},{i:w-2,x:Mt(u,c)})}else(d||c)&&g.push("translate("+d+e+c+i)}function s(h,u,d,c){h!==u?(h-u>180?u+=360:u-h>180&&(h+=360),c.push({i:d.push(n(d)+"rotate(",null,r)-2,x:Mt(h,u)})):u&&d.push(n(d)+"rotate("+u+r)}function a(h,u,d,c){h!==u?c.push({i:d.push(n(d)+"skewX(",null,r)-2,x:Mt(h,u)}):u&&d.push(n(d)+"skewX("+u+r)}function l(h,u,d,c,g,y){if(h!==d||u!==c){var w=g.push(n(g)+"scale(",null,",",null,")");y.push({i:w-4,x:Mt(h,d)},{i:w-2,x:Mt(u,c)})}else(d!==1||c!==1)&&g.push(n(g)+"scale("+d+","+c+")")}return function(h,u){var d=[],c=[];return h=t(h),u=t(u),o(h.translateX,h.translateY,u.translateX,u.translateY,d,c),s(h.rotate,u.rotate,d,c),a(h.skewX,u.skewX,d,c),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,d,c),h=u=null,function(g){for(var y=-1,w=c.length,k;++y<w;)d[(k=c[y]).i]=k.x(g);return d.join("")}}}var Xc=Ws(Vc,"px, ","px)","deg)"),Kc=Ws(Gc,", ",")",")"),de=0,De=0,Ae=0,Hs=1e3,Ai,Ne,Fi=0,Yt=0,Gi=0,Ge=typeof performance=="object"&&performance.now?performance:Date,js=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function un(){return Yt||(js(Zc),Yt=Ge.now()+Gi)}function Zc(){Yt=0}function Li(){this._call=this._time=this._next=null}Li.prototype=Us.prototype={constructor:Li,restart:function(t,e,i){if(typeof t!="function")throw new TypeError("callback is not a function");i=(i==null?un():+i)+(e==null?0:+e),!this._next&&Ne!==this&&(Ne?Ne._next=this:Ai=this,Ne=this),this._call=t,this._time=i,jr()},stop:function(){this._call&&(this._call=null,this._time=1/0,jr())}};function Us(t,e,i){var r=new Li;return r.restart(t,e,i),r}function Jc(){un(),++de;for(var t=Ai,e;t;)(e=Yt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--de}function To(){Yt=(Fi=Ge.now())+Gi,de=De=0;try{Jc()}finally{de=0,tu(),Yt=0}}function Qc(){var t=Ge.now(),e=t-Fi;e>Hs&&(Gi-=e,Fi=t)}function tu(){for(var t,e=Ai,i,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(i=e._next,e._next=null,e=t?t._next=i:Ai=i);Ne=t,jr(r)}function jr(t){if(!de){De&&(De=clearTimeout(De));var e=t-Yt;e>24?(t<1/0&&(De=setTimeout(To,t-Ge.now()-Gi)),Ae&&(Ae=clearInterval(Ae))):(Ae||(Fi=Ge.now(),Ae=setInterval(Qc,Hs)),de=1,js(To))}}function vo(t,e,i){var r=new Li;return e=e==null?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,i),r}var eu=ks("start","end","cancel","interrupt"),iu=[],Ys=0,ko=1,Ur=2,xi=3,So=4,Yr=5,bi=6;function Xi(t,e,i,r,n,o){var s=t.__transition;if(!s)t.__transition={};else if(i in s)return;ru(t,i,{name:e,index:r,group:n,on:eu,tween:iu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ys})}function fn(t,e){var i=ft(t,e);if(i.state>Ys)throw new Error("too late; already scheduled");return i}function xt(t,e){var i=ft(t,e);if(i.state>xi)throw new Error("too late; already running");return i}function ft(t,e){var i=t.__transition;if(!i||!(i=i[e]))throw new Error("transition not found");return i}function ru(t,e,i){var r=t.__transition,n;r[e]=i,i.timer=Us(o,0,i.time);function o(h){i.state=ko,i.timer.restart(s,i.delay,i.time),i.delay<=h&&s(h-i.delay)}function s(h){var u,d,c,g;if(i.state!==ko)return l();for(u in r)if(g=r[u],g.name===i.name){if(g.state===xi)return vo(s);g.state===So?(g.state=bi,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete r[u]):+u<e&&(g.state=bi,g.timer.stop(),g.on.call("cancel",t,t.__data__,g.index,g.group),delete r[u])}if(vo(function(){i.state===xi&&(i.state=So,i.timer.restart(a,i.delay,i.time),a(h))}),i.state=Ur,i.on.call("start",t,t.__data__,i.index,i.group),i.state===Ur){for(i.state=xi,n=new Array(c=i.tween.length),u=0,d=-1;u<c;++u)(g=i.tween[u].value.call(t,t.__data__,i.index,i.group))&&(n[++d]=g);n.length=d+1}}function a(h){for(var u=h<i.duration?i.ease.call(null,h/i.duration):(i.timer.restart(l),i.state=Yr,1),d=-1,c=n.length;++d<c;)n[d].call(t,u);i.state===Yr&&(i.on.call("end",t,t.__data__,i.index,i.group),l())}function l(){i.state=bi,i.timer.stop(),delete r[e];for(var h in r)return;delete t.__transition}}function nu(t,e){var i=t.__transition,r,n,o=!0,s;if(i){e=e==null?null:e+"";for(s in i){if((r=i[s]).name!==e){o=!1;continue}n=r.state>Ur&&r.state<Yr,r.state=bi,r.timer.stop(),r.on.call(n?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete i[s]}o&&delete t.__transition}}function ou(t){return this.each(function(){nu(this,t)})}function su(t,e){var i,r;return function(){var n=xt(this,t),o=n.tween;if(o!==i){r=i=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}n.tween=r}}function au(t,e,i){var r,n;if(typeof i!="function")throw new Error;return function(){var o=xt(this,t),s=o.tween;if(s!==r){n=(r=s).slice();for(var a={name:e,value:i},l=0,h=n.length;l<h;++l)if(n[l].name===e){n[l]=a;break}l===h&&n.push(a)}o.tween=n}}function lu(t,e){var i=this._id;if(t+="",arguments.length<2){for(var r=ft(this.node(),i).tween,n=0,o=r.length,s;n<o;++n)if((s=r[n]).name===t)return s.value;return null}return this.each((e==null?su:au)(i,t,e))}function dn(t,e,i){var r=t._id;return t.each(function(){var n=xt(this,r);(n.value||(n.value={}))[e]=i.apply(this,arguments)}),function(n){return ft(n,r).value[e]}}function Vs(t,e){var i;return(typeof e=="number"?Mt:e instanceof Ve?xo:(i=Ve(e))?(e=i,xo):Yc)(t,e)}function hu(t){return function(){this.removeAttribute(t)}}function cu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function uu(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttribute(t);return s===n?null:s===r?o:o=e(r=s,i)}}function fu(t,e,i){var r,n=i+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===n?null:s===r?o:o=e(r=s,i)}}function du(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function pu(t,e,i){var r,n,o;return function(){var s,a=i(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a)))}}function gu(t,e){var i=Vi(t),r=i==="transform"?Kc:Vs;return this.attrTween(t,typeof e=="function"?(i.local?pu:du)(i,r,dn(this,"attr."+t,e)):e==null?(i.local?cu:hu)(i):(i.local?fu:uu)(i,r,e))}function mu(t,e){return function(i){this.setAttribute(t,e.call(this,i))}}function _u(t,e){return function(i){this.setAttributeNS(t.space,t.local,e.call(this,i))}}function yu(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&_u(t,o)),i}return n._value=e,n}function Cu(t,e){var i,r;function n(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&mu(t,o)),i}return n._value=e,n}function xu(t,e){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;var r=Vi(t);return this.tween(i,(r.local?yu:Cu)(r,e))}function bu(t,e){return function(){fn(this,t).delay=+e.apply(this,arguments)}}function Tu(t,e){return e=+e,function(){fn(this,t).delay=e}}function vu(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?bu:Tu)(e,t)):ft(this.node(),e).delay}function ku(t,e){return function(){xt(this,t).duration=+e.apply(this,arguments)}}function Su(t,e){return e=+e,function(){xt(this,t).duration=e}}function wu(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?ku:Su)(e,t)):ft(this.node(),e).duration}function Bu(t,e){if(typeof e!="function")throw new Error;return function(){xt(this,t).ease=e}}function Au(t){var e=this._id;return arguments.length?this.each(Bu(e,t)):ft(this.node(),e).ease}function Fu(t,e){return function(){var i=e.apply(this,arguments);if(typeof i!="function")throw new Error;xt(this,t).ease=i}}function Lu(t){if(typeof t!="function")throw new Error;return this.each(Fu(this._id,t))}function Eu(t){typeof t!="function"&&(t=Bs(t));for(var e=this._groups,i=e.length,r=new Array(i),n=0;n<i;++n)for(var o=e[n],s=o.length,a=r[n]=[],l,h=0;h<s;++h)(l=o[h])&&t.call(l,l.__data__,h,o)&&a.push(l);return new Et(r,this._parents,this._name,this._id)}function Ou(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,i=t._groups,r=e.length,n=i.length,o=Math.min(r,n),s=new Array(r),a=0;a<o;++a)for(var l=e[a],h=i[a],u=l.length,d=s[a]=new Array(u),c,g=0;g<u;++g)(c=l[g]||h[g])&&(d[g]=c);for(;a<r;++a)s[a]=e[a];return new Et(s,this._parents,this._name,this._id)}function Iu(t){return(t+"").trim().split(/^|\s+/).every(function(e){var i=e.indexOf(".");return i>=0&&(e=e.slice(0,i)),!e||e==="start"})}function Mu(t,e,i){var r,n,o=Iu(e)?fn:xt;return function(){var s=o(this,t),a=s.on;a!==r&&(n=(r=a).copy()).on(e,i),s.on=n}}function Du(t,e){var i=this._id;return arguments.length<2?ft(this.node(),i).on.on(t):this.each(Mu(i,t,e))}function Nu(t){return function(){var e=this.parentNode;for(var i in this.__transition)if(+i!==t)return;e&&e.removeChild(this)}}function Ru(){return this.on("end.remove",Nu(this._id))}function Pu(t){var e=this._name,i=this._id;typeof t!="function"&&(t=an(t));for(var r=this._groups,n=r.length,o=new Array(n),s=0;s<n;++s)for(var a=r[s],l=a.length,h=o[s]=new Array(l),u,d,c=0;c<l;++c)(u=a[c])&&(d=t.call(u,u.__data__,c,a))&&("__data__"in u&&(d.__data__=u.__data__),h[c]=d,Xi(h[c],e,i,c,h,ft(u,i)));return new Et(o,this._parents,e,i)}function $u(t){var e=this._name,i=this._id;typeof t!="function"&&(t=ws(t));for(var r=this._groups,n=r.length,o=[],s=[],a=0;a<n;++a)for(var l=r[a],h=l.length,u,d=0;d<h;++d)if(u=l[d]){for(var c=t.call(u,u.__data__,d,l),g,y=ft(u,i),w=0,k=c.length;w<k;++w)(g=c[w])&&Xi(g,e,i,w,c,y);o.push(c),s.push(u)}return new Et(o,s,e,i)}var qu=Je.prototype.constructor;function zu(){return new qu(this._groups,this._parents)}function Wu(t,e){var i,r,n;return function(){var o=fe(this,t),s=(this.style.removeProperty(t),fe(this,t));return o===s?null:o===i&&s===r?n:n=e(i=o,r=s)}}function Gs(t){return function(){this.style.removeProperty(t)}}function Hu(t,e,i){var r,n=i+"",o;return function(){var s=fe(this,t);return s===n?null:s===r?o:o=e(r=s,i)}}function ju(t,e,i){var r,n,o;return function(){var s=fe(this,t),a=i(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),fe(this,t))),s===l?null:s===r&&l===n?o:(n=l,o=e(r=s,a))}}function Uu(t,e){var i,r,n,o="style."+e,s="end."+o,a;return function(){var l=xt(this,t),h=l.on,u=l.value[o]==null?a||(a=Gs(e)):void 0;(h!==i||n!==u)&&(r=(i=h).copy()).on(s,n=u),l.on=r}}function Yu(t,e,i){var r=(t+="")=="transform"?Xc:Vs;return e==null?this.styleTween(t,Wu(t,r)).on("end.style."+t,Gs(t)):typeof e=="function"?this.styleTween(t,ju(t,r,dn(this,"style."+t,e))).each(Uu(this._id,t)):this.styleTween(t,Hu(t,r,e),i).on("end.style."+t,null)}function Vu(t,e,i){return function(r){this.style.setProperty(t,e.call(this,r),i)}}function Gu(t,e,i){var r,n;function o(){var s=e.apply(this,arguments);return s!==n&&(r=(n=s)&&Vu(t,s,i)),r}return o._value=e,o}function Xu(t,e,i){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,Gu(t,e,i??""))}function Ku(t){return function(){this.textContent=t}}function Zu(t){return function(){var e=t(this);this.textContent=e??""}}function Ju(t){return this.tween("text",typeof t=="function"?Zu(dn(this,"text",t)):Ku(t==null?"":t+""))}function Qu(t){return function(e){this.textContent=t.call(this,e)}}function tf(t){var e,i;function r(){var n=t.apply(this,arguments);return n!==i&&(e=(i=n)&&Qu(n)),e}return r._value=t,r}function ef(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,tf(t))}function rf(){for(var t=this._name,e=this._id,i=Xs(),r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,h=0;h<a;++h)if(l=s[h]){var u=ft(l,e);Xi(l,t,i,h,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Et(r,this._parents,t,i)}function nf(){var t,e,i=this,r=i._id,n=i.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--n===0&&o()}};i.each(function(){var h=xt(this,r),u=h.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),h.on=e}),n===0&&o()})}var of=0;function Et(t,e,i,r){this._groups=t,this._parents=e,this._name=i,this._id=r}function Xs(){return++of}var wt=Je.prototype;Et.prototype={constructor:Et,select:Pu,selectAll:$u,selectChild:wt.selectChild,selectChildren:wt.selectChildren,filter:Eu,merge:Ou,selection:zu,transition:rf,call:wt.call,nodes:wt.nodes,node:wt.node,size:wt.size,empty:wt.empty,each:wt.each,on:Du,attr:gu,attrTween:xu,style:Yu,styleTween:Xu,text:Ju,textTween:ef,remove:Ru,tween:lu,delay:vu,duration:wu,ease:Au,easeVarying:Lu,end:nf,[Symbol.iterator]:wt[Symbol.iterator]};function sf(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var af={time:null,delay:0,duration:250,ease:sf};function lf(t,e){for(var i;!(i=t.__transition)||!(i=i[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return i}function hf(t){var e,i;t instanceof Et?(e=t._id,t=t._name):(e=Xs(),(i=af).time=un(),t=t==null?null:t+"");for(var r=this._groups,n=r.length,o=0;o<n;++o)for(var s=r[o],a=s.length,l,h=0;h<a;++h)(l=s[h])&&Xi(l,t,e,h,s,i||lf(l,e));return new Et(r,this._parents,t,e)}Je.prototype.interrupt=ou;Je.prototype.transition=hf;const Mx=Math.abs,Dx=Math.atan2,Nx=Math.cos,Rx=Math.max,Px=Math.min,$x=Math.sin,qx=Math.sqrt,wo=1e-12,pn=Math.PI,Bo=pn/2,zx=2*pn;function Wx(t){return t>1?0:t<-1?pn:Math.acos(t)}function Hx(t){return t>=1?Bo:t<=-1?-Bo:Math.asin(t)}function Ks(t){this._context=t}Ks.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function cf(t){return new Ks(t)}class Zs{constructor(e,i){this._context=e,this._x=i}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(e,i){switch(e=+e,i=+i,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,i):this._context.moveTo(e,i);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,i,e,i):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+i)/2,e,this._y0,e,i);break}}this._x0=e,this._y0=i}}function uf(t){return new Zs(t,!0)}function ff(t){return new Zs(t,!1)}function Nt(){}function Ei(t,e,i){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+i)/6)}function Ki(t){this._context=t}Ki.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ei(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},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Ei(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function df(t){return new Ki(t)}function Js(t){this._context=t}Js.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Ei(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function pf(t){return new Js(t)}function Qs(t){this._context=t}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:Ei(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function gf(t){return new Qs(t)}function ta(t,e){this._basis=new Ki(t),this._beta=e}ta.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,i=t.length-1;if(i>0)for(var r=t[0],n=e[0],o=t[i]-r,s=e[i]-n,a=-1,l;++a<=i;)l=a/i,this._basis.point(this._beta*t[a]+(1-this._beta)*(r+l*o),this._beta*e[a]+(1-this._beta)*(n+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const mf=function t(e){function i(r){return e===1?new Ki(r):new ta(r,e)}return i.beta=function(r){return t(+r)},i}(.85);function Oi(t,e,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function gn(t,e){this._context=t,this._k=(1-e)/6}gn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Oi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _f=function t(e){function i(r){return new gn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function mn(t,e){this._context=t,this._k=(1-e)/6}mn.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Oi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yf=function t(e){function i(r){return new mn(r,e)}return i.tension=function(r){return t(+r)},i}(0);function _n(t,e){this._context=t,this._k=(1-e)/6}_n.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:Oi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Cf=function t(e){function i(r){return new _n(r,e)}return i.tension=function(r){return t(+r)},i}(0);function yn(t,e,i){var r=t._x1,n=t._y1,o=t._x2,s=t._y2;if(t._l01_a>wo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,n=(n*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>wo){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*h+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*h+t._y1*t._l23_2a-i*t._l12_2a)/u}t._context.bezierCurveTo(r,n,o,s,t._x2,t._y2)}function ea(t,e){this._context=t,this._alpha=e}ea.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:yn(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const xf=function t(e){function i(r){return e?new ea(r,e):new gn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ia(t,e){this._context=t,this._alpha=e}ia.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:yn(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const bf=function t(e){function i(r){return e?new ia(r,e):new mn(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function ra(t,e){this._context=t,this._alpha=e}ra.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var i=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,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:yn(this,t,e);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=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Tf=function t(e){function i(r){return e?new ra(r,e):new _n(r,0)}return i.alpha=function(r){return t(+r)},i}(.5);function na(t){this._context=t}na.prototype={areaStart:Nt,areaEnd:Nt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function vf(t){return new na(t)}function Ao(t){return t<0?-1:1}function Fo(t,e,i){var r=t._x1-t._x0,n=e-t._x1,o=(t._y1-t._y0)/(r||n<0&&-0),s=(i-t._y1)/(n||r<0&&-0),a=(o*n+s*r)/(r+n);return(Ao(o)+Ao(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Lo(t,e){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-e)/2:e}function wr(t,e,i){var r=t._x0,n=t._y0,o=t._x1,s=t._y1,a=(o-r)/3;t._context.bezierCurveTo(r+a,n+a*e,o-a,s-a*i,o,s)}function Ii(t){this._context=t}Ii.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wr(this,this._t0,Lo(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var i=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,wr(this,Lo(this,i=Fo(this,t,e)),i);break;default:wr(this,this._t0,i=Fo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=i}}};function oa(t){this._context=new sa(t)}(oa.prototype=Object.create(Ii.prototype)).point=function(t,e){Ii.prototype.point.call(this,e,t)};function sa(t){this._context=t}sa.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,i,r,n,o){this._context.bezierCurveTo(e,t,r,i,o,n)}};function kf(t){return new Ii(t)}function Sf(t){return new oa(t)}function aa(t){this._context=t}aa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),i===2)this._context.lineTo(t[1],e[1]);else for(var r=Eo(t),n=Eo(e),o=0,s=1;s<i;++o,++s)this._context.bezierCurveTo(r[0][o],n[0][o],r[1][o],n[1][o],t[s],e[s]);(this._line||this._line!==0&&i===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function Eo(t){var e,i=t.length-1,r,n=new Array(i),o=new Array(i),s=new Array(i);for(n[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<i-1;++e)n[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(n[i-1]=2,o[i-1]=7,s[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)r=n[e]/o[e-1],o[e]-=r,s[e]-=r*s[e-1];for(n[i-1]=s[i-1]/o[i-1],e=i-2;e>=0;--e)n[e]=(s[e]-n[e+1])/o[e];for(o[i-1]=(t[i]+n[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-n[e+1];return[n,o]}function wf(t){return new aa(t)}function Zi(t,e){this._context=t,this._t=e}Zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,e)}break}}this._x=t,this._y=e}};function Bf(t){return new Zi(t,.5)}function Af(t){return new Zi(t,0)}function Ff(t){return new Zi(t,1)}function Re(t,e,i){this.k=t,this.x=e,this.y=i}Re.prototype={constructor:Re,scale:function(t){return t===1?this:new Re(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new Re(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};Re.prototype;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:la,setPrototypeOf:Oo,isFrozen:Lf,getPrototypeOf:Ef,getOwnPropertyDescriptor:Of}=Object;let{freeze:K,seal:at,create:Vr}=Object,{apply:Gr,construct:Xr}=typeof Reflect<"u"&&Reflect;K||(K=function(e){return e});at||(at=function(e){return e});Gr||(Gr=function(e,i){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return e.apply(i,n)});Xr||(Xr=function(e){for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return new e(...r)});const mi=Z(Array.prototype.forEach),If=Z(Array.prototype.lastIndexOf),Io=Z(Array.prototype.pop),Fe=Z(Array.prototype.push),Mf=Z(Array.prototype.splice),Ti=Z(String.prototype.toLowerCase),Br=Z(String.prototype.toString),Ar=Z(String.prototype.match),Le=Z(String.prototype.replace),Df=Z(String.prototype.indexOf),Nf=Z(String.prototype.trim),ht=Z(Object.prototype.hasOwnProperty),V=Z(RegExp.prototype.test),Ee=Rf(TypeError);function Z(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return Gr(t,e,r)}}function Rf(t){return function(){for(var e=arguments.length,i=new Array(e),r=0;r<e;r++)i[r]=arguments[r];return Xr(t,i)}}function F(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ti;Oo&&Oo(t,null);let r=e.length;for(;r--;){let n=e[r];if(typeof n=="string"){const o=i(n);o!==n&&(Lf(e)||(e[r]=o),n=o)}t[n]=!0}return t}function Pf(t){for(let e=0;e<t.length;e++)ht(t,e)||(t[e]=null);return t}function gt(t){const e=Vr(null);for(const[i,r]of la(t))ht(t,i)&&(Array.isArray(r)?e[i]=Pf(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=gt(r):e[i]=r);return e}function Oe(t,e){for(;t!==null;){const r=Of(t,e);if(r){if(r.get)return Z(r.get);if(typeof r.value=="function")return Z(r.value)}t=Ef(t)}function i(){return null}return i}const Mo=K(["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","search","section","select","shadow","slot","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"]),Fr=K(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Lr=K(["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"]),$f=K(["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"]),Er=K(["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"]),qf=K(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Do=K(["#text"]),No=K(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Or=K(["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","mask-type","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"]),Ro=K(["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"]),_i=K(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),zf=at(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wf=at(/<%[\w\W]*|[\w\W]*%>/gm),Hf=at(/\$\{[\w\W]*/gm),jf=at(/^data-[\-\w.\u00B7-\uFFFF]+$/),Uf=at(/^aria-[\-\w]+$/),ha=at(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yf=at(/^(?:\w+script|data):/i),Vf=at(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ca=at(/^html$/i),Gf=at(/^[a-z][.\w]*(-[.\w]+)+$/i);var Po=Object.freeze({__proto__:null,ARIA_ATTR:Uf,ATTR_WHITESPACE:Vf,CUSTOM_ELEMENT:Gf,DATA_ATTR:jf,DOCTYPE_NAME:ca,ERB_EXPR:Wf,IS_ALLOWED_URI:ha,IS_SCRIPT_OR_DATA:Yf,MUSTACHE_EXPR:zf,TMPLIT_EXPR:Hf});const Ie={element:1,text:3,progressingInstruction:7,comment:8,document:9},Xf=function(){return typeof window>"u"?null:window},Kf=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const n="data-tt-policy-suffix";i&&i.hasAttribute(n)&&(r=i.getAttribute(n));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},$o=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ua(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xf();const e=T=>ua(T);if(e.version="3.3.1",e.removed=[],!t||!t.document||t.document.nodeType!==Ie.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const r=i,n=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:h,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:c,trustedTypes:g}=t,y=l.prototype,w=Oe(y,"cloneNode"),k=Oe(y,"remove"),E=Oe(y,"nextSibling"),B=Oe(y,"childNodes"),it=Oe(y,"parentNode");if(typeof s=="function"){const T=i.createElement("template");T.content&&T.content.ownerDocument&&(i=T.content.ownerDocument)}let L,nt="";const{implementation:Te,createNodeIterator:ni,createDocumentFragment:oi,getElementsByTagName:hr}=i,{importNode:cr}=r;let q=$o();e.isSupported=typeof la=="function"&&typeof it=="function"&&Te&&Te.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Jt,ERB_EXPR:ve,TMPLIT_EXPR:ke,DATA_ATTR:ur,ARIA_ATTR:Tt,IS_SCRIPT_OR_DATA:$n,ATTR_WHITESPACE:Qt,CUSTOM_ELEMENT:lt}=Po;let{IS_ALLOWED_URI:qn}=Po,$=null;const zn=F({},[...Mo,...Fr,...Lr,...Er,...Do]);let z=null;const Wn=F({},[...No,...Or,...Ro,..._i]);let D=Object.seal(Vr(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}})),Se=null,fr=null;const te=Object.seal(Vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Hn=!0,dr=!0,jn=!1,Un=!0,ee=!1,si=!0,$t=!1,pr=!1,gr=!1,ie=!1,ai=!1,li=!1,Yn=!0,Vn=!1;const Nl="user-content-";let mr=!0,we=!1,re={},dt=null;const _r=F({},["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"]);let Gn=null;const Xn=F({},["audio","video","img","source","image","track"]);let yr=null;const Kn=F({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),hi="http://www.w3.org/1998/Math/MathML",ci="http://www.w3.org/2000/svg",vt="http://www.w3.org/1999/xhtml";let ne=vt,Cr=!1,xr=null;const Rl=F({},[hi,ci,vt],Br);let ui=F({},["mi","mo","mn","ms","mtext"]),fi=F({},["annotation-xml"]);const Pl=F({},["title","style","font","a","script"]);let Be=null;const $l=["application/xhtml+xml","text/html"],ql="text/html";let P=null,oe=null;const zl=i.createElement("form"),Zn=function(f){return f instanceof RegExp||f instanceof Function},br=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(oe&&oe===f)){if((!f||typeof f!="object")&&(f={}),f=gt(f),Be=$l.indexOf(f.PARSER_MEDIA_TYPE)===-1?ql:f.PARSER_MEDIA_TYPE,P=Be==="application/xhtml+xml"?Br:Ti,$=ht(f,"ALLOWED_TAGS")?F({},f.ALLOWED_TAGS,P):zn,z=ht(f,"ALLOWED_ATTR")?F({},f.ALLOWED_ATTR,P):Wn,xr=ht(f,"ALLOWED_NAMESPACES")?F({},f.ALLOWED_NAMESPACES,Br):Rl,yr=ht(f,"ADD_URI_SAFE_ATTR")?F(gt(Kn),f.ADD_URI_SAFE_ATTR,P):Kn,Gn=ht(f,"ADD_DATA_URI_TAGS")?F(gt(Xn),f.ADD_DATA_URI_TAGS,P):Xn,dt=ht(f,"FORBID_CONTENTS")?F({},f.FORBID_CONTENTS,P):_r,Se=ht(f,"FORBID_TAGS")?F({},f.FORBID_TAGS,P):gt({}),fr=ht(f,"FORBID_ATTR")?F({},f.FORBID_ATTR,P):gt({}),re=ht(f,"USE_PROFILES")?f.USE_PROFILES:!1,Hn=f.ALLOW_ARIA_ATTR!==!1,dr=f.ALLOW_DATA_ATTR!==!1,jn=f.ALLOW_UNKNOWN_PROTOCOLS||!1,Un=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ee=f.SAFE_FOR_TEMPLATES||!1,si=f.SAFE_FOR_XML!==!1,$t=f.WHOLE_DOCUMENT||!1,ie=f.RETURN_DOM||!1,ai=f.RETURN_DOM_FRAGMENT||!1,li=f.RETURN_TRUSTED_TYPE||!1,gr=f.FORCE_BODY||!1,Yn=f.SANITIZE_DOM!==!1,Vn=f.SANITIZE_NAMED_PROPS||!1,mr=f.KEEP_CONTENT!==!1,we=f.IN_PLACE||!1,qn=f.ALLOWED_URI_REGEXP||ha,ne=f.NAMESPACE||vt,ui=f.MATHML_TEXT_INTEGRATION_POINTS||ui,fi=f.HTML_INTEGRATION_POINTS||fi,D=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&Zn(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(D.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&Zn(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(D.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(D.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ee&&(dr=!1),ai&&(ie=!0),re&&($=F({},Do),z=[],re.html===!0&&(F($,Mo),F(z,No)),re.svg===!0&&(F($,Fr),F(z,Or),F(z,_i)),re.svgFilters===!0&&(F($,Lr),F(z,Or),F(z,_i)),re.mathMl===!0&&(F($,Er),F(z,Ro),F(z,_i))),f.ADD_TAGS&&(typeof f.ADD_TAGS=="function"?te.tagCheck=f.ADD_TAGS:($===zn&&($=gt($)),F($,f.ADD_TAGS,P))),f.ADD_ATTR&&(typeof f.ADD_ATTR=="function"?te.attributeCheck=f.ADD_ATTR:(z===Wn&&(z=gt(z)),F(z,f.ADD_ATTR,P))),f.ADD_URI_SAFE_ATTR&&F(yr,f.ADD_URI_SAFE_ATTR,P),f.FORBID_CONTENTS&&(dt===_r&&(dt=gt(dt)),F(dt,f.FORBID_CONTENTS,P)),f.ADD_FORBID_CONTENTS&&(dt===_r&&(dt=gt(dt)),F(dt,f.ADD_FORBID_CONTENTS,P)),mr&&($["#text"]=!0),$t&&F($,["html","head","body"]),$.table&&(F($,["tbody"]),delete Se.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ee('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ee('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=f.TRUSTED_TYPES_POLICY,nt=L.createHTML("")}else L===void 0&&(L=Kf(g,n)),L!==null&&typeof nt=="string"&&(nt=L.createHTML(""));K&&K(f),oe=f}},Jn=F({},[...Fr,...Lr,...$f]),Qn=F({},[...Er,...qf]),Wl=function(f){let m=it(f);(!m||!m.tagName)&&(m={namespaceURI:ne,tagName:"template"});const C=Ti(f.tagName),I=Ti(m.tagName);return xr[f.namespaceURI]?f.namespaceURI===ci?m.namespaceURI===vt?C==="svg":m.namespaceURI===hi?C==="svg"&&(I==="annotation-xml"||ui[I]):!!Jn[C]:f.namespaceURI===hi?m.namespaceURI===vt?C==="math":m.namespaceURI===ci?C==="math"&&fi[I]:!!Qn[C]:f.namespaceURI===vt?m.namespaceURI===ci&&!fi[I]||m.namespaceURI===hi&&!ui[I]?!1:!Qn[C]&&(Pl[C]||!Jn[C]):!!(Be==="application/xhtml+xml"&&xr[f.namespaceURI]):!1},pt=function(f){Fe(e.removed,{element:f});try{it(f).removeChild(f)}catch{k(f)}},qt=function(f,m){try{Fe(e.removed,{attribute:m.getAttributeNode(f),from:m})}catch{Fe(e.removed,{attribute:null,from:m})}if(m.removeAttribute(f),f==="is")if(ie||ai)try{pt(m)}catch{}else try{m.setAttribute(f,"")}catch{}},to=function(f){let m=null,C=null;if(gr)f="<remove></remove>"+f;else{const N=Ar(f,/^[\r\n\t ]+/);C=N&&N[0]}Be==="application/xhtml+xml"&&ne===vt&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const I=L?L.createHTML(f):f;if(ne===vt)try{m=new c().parseFromString(I,Be)}catch{}if(!m||!m.documentElement){m=Te.createDocument(ne,"template",null);try{m.documentElement.innerHTML=Cr?nt:I}catch{}}const H=m.body||m.documentElement;return f&&C&&H.insertBefore(i.createTextNode(C),H.childNodes[0]||null),ne===vt?hr.call(m,$t?"html":"body")[0]:$t?m.documentElement:H},eo=function(f){return ni.call(f.ownerDocument||f,f,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Tr=function(f){return f instanceof d&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof u)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},io=function(f){return typeof a=="function"&&f instanceof a};function kt(T,f,m){mi(T,C=>{C.call(e,f,m,oe)})}const ro=function(f){let m=null;if(kt(q.beforeSanitizeElements,f,null),Tr(f))return pt(f),!0;const C=P(f.nodeName);if(kt(q.uponSanitizeElement,f,{tagName:C,allowedTags:$}),si&&f.hasChildNodes()&&!io(f.firstElementChild)&&V(/<[/\w!]/g,f.innerHTML)&&V(/<[/\w!]/g,f.textContent)||f.nodeType===Ie.progressingInstruction||si&&f.nodeType===Ie.comment&&V(/<[/\w]/g,f.data))return pt(f),!0;if(!(te.tagCheck instanceof Function&&te.tagCheck(C))&&(!$[C]||Se[C])){if(!Se[C]&&oo(C)&&(D.tagNameCheck instanceof RegExp&&V(D.tagNameCheck,C)||D.tagNameCheck instanceof Function&&D.tagNameCheck(C)))return!1;if(mr&&!dt[C]){const I=it(f)||f.parentNode,H=B(f)||f.childNodes;if(H&&I){const N=H.length;for(let J=N-1;J>=0;--J){const St=w(H[J],!0);St.__removalCount=(f.__removalCount||0)+1,I.insertBefore(St,E(f))}}}return pt(f),!0}return f instanceof l&&!Wl(f)||(C==="noscript"||C==="noembed"||C==="noframes")&&V(/<\/no(script|embed|frames)/i,f.innerHTML)?(pt(f),!0):(ee&&f.nodeType===Ie.text&&(m=f.textContent,mi([Jt,ve,ke],I=>{m=Le(m,I," ")}),f.textContent!==m&&(Fe(e.removed,{element:f.cloneNode()}),f.textContent=m)),kt(q.afterSanitizeElements,f,null),!1)},no=function(f,m,C){if(Yn&&(m==="id"||m==="name")&&(C in i||C in zl))return!1;if(!(dr&&!fr[m]&&V(ur,m))){if(!(Hn&&V(Tt,m))){if(!(te.attributeCheck instanceof Function&&te.attributeCheck(m,f))){if(!z[m]||fr[m]){if(!(oo(f)&&(D.tagNameCheck instanceof RegExp&&V(D.tagNameCheck,f)||D.tagNameCheck instanceof Function&&D.tagNameCheck(f))&&(D.attributeNameCheck instanceof RegExp&&V(D.attributeNameCheck,m)||D.attributeNameCheck instanceof Function&&D.attributeNameCheck(m,f))||m==="is"&&D.allowCustomizedBuiltInElements&&(D.tagNameCheck instanceof RegExp&&V(D.tagNameCheck,C)||D.tagNameCheck instanceof Function&&D.tagNameCheck(C))))return!1}else if(!yr[m]){if(!V(qn,Le(C,Qt,""))){if(!((m==="src"||m==="xlink:href"||m==="href")&&f!=="script"&&Df(C,"data:")===0&&Gn[f])){if(!(jn&&!V($n,Le(C,Qt,"")))){if(C)return!1}}}}}}}return!0},oo=function(f){return f!=="annotation-xml"&&Ar(f,lt)},so=function(f){kt(q.beforeSanitizeAttributes,f,null);const{attributes:m}=f;if(!m||Tr(f))return;const C={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let I=m.length;for(;I--;){const H=m[I],{name:N,namespaceURI:J,value:St}=H,se=P(N),vr=St;let W=N==="value"?vr:Nf(vr);if(C.attrName=se,C.attrValue=W,C.keepAttr=!0,C.forceKeepAttr=void 0,kt(q.uponSanitizeAttribute,f,C),W=C.attrValue,Vn&&(se==="id"||se==="name")&&(qt(N,f),W=Nl+W),si&&V(/((--!?|])>)|<\/(style|title|textarea)/i,W)){qt(N,f);continue}if(se==="attributename"&&Ar(W,"href")){qt(N,f);continue}if(C.forceKeepAttr)continue;if(!C.keepAttr){qt(N,f);continue}if(!Un&&V(/\/>/i,W)){qt(N,f);continue}ee&&mi([Jt,ve,ke],lo=>{W=Le(W,lo," ")});const ao=P(f.nodeName);if(!no(ao,se,W)){qt(N,f);continue}if(L&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!J)switch(g.getAttributeType(ao,se)){case"TrustedHTML":{W=L.createHTML(W);break}case"TrustedScriptURL":{W=L.createScriptURL(W);break}}if(W!==vr)try{J?f.setAttributeNS(J,N,W):f.setAttribute(N,W),Tr(f)?pt(f):Io(e.removed)}catch{qt(N,f)}}kt(q.afterSanitizeAttributes,f,null)},Hl=function T(f){let m=null;const C=eo(f);for(kt(q.beforeSanitizeShadowDOM,f,null);m=C.nextNode();)kt(q.uponSanitizeShadowNode,m,null),ro(m),so(m),m.content instanceof o&&T(m.content);kt(q.afterSanitizeShadowDOM,f,null)};return e.sanitize=function(T){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},m=null,C=null,I=null,H=null;if(Cr=!T,Cr&&(T="<!-->"),typeof T!="string"&&!io(T))if(typeof T.toString=="function"){if(T=T.toString(),typeof T!="string")throw Ee("dirty is not a string, aborting")}else throw Ee("toString is not a function");if(!e.isSupported)return T;if(pr||br(f),e.removed=[],typeof T=="string"&&(we=!1),we){if(T.nodeName){const St=P(T.nodeName);if(!$[St]||Se[St])throw Ee("root node is forbidden and cannot be sanitized in-place")}}else if(T instanceof a)m=to("<!---->"),C=m.ownerDocument.importNode(T,!0),C.nodeType===Ie.element&&C.nodeName==="BODY"||C.nodeName==="HTML"?m=C:m.appendChild(C);else{if(!ie&&!ee&&!$t&&T.indexOf("<")===-1)return L&&li?L.createHTML(T):T;if(m=to(T),!m)return ie?null:li?nt:""}m&&gr&&pt(m.firstChild);const N=eo(we?T:m);for(;I=N.nextNode();)ro(I),so(I),I.content instanceof o&&Hl(I.content);if(we)return T;if(ie){if(ai)for(H=oi.call(m.ownerDocument);m.firstChild;)H.appendChild(m.firstChild);else H=m;return(z.shadowroot||z.shadowrootmode)&&(H=cr.call(r,H,!0)),H}let J=$t?m.outerHTML:m.innerHTML;return $t&&$["!doctype"]&&m.ownerDocument&&m.ownerDocument.doctype&&m.ownerDocument.doctype.name&&V(ca,m.ownerDocument.doctype.name)&&(J="<!DOCTYPE "+m.ownerDocument.doctype.name+`>
|
|
8
|
-
`+J),ee&&mi([Jt,ve,ke],St=>{J=Le(J,St," ")}),L&&li?L.createHTML(J):J},e.setConfig=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(T),pr=!0},e.clearConfig=function(){oe=null,pr=!1},e.isValidAttribute=function(T,f,m){oe||br({});const C=P(T),I=P(f);return no(C,I,m)},e.addHook=function(T,f){typeof f=="function"&&Fe(q[T],f)},e.removeHook=function(T,f){if(f!==void 0){const m=If(q[T],f);return m===-1?void 0:Mf(q[T],m,1)[0]}return Io(q[T])},e.removeHooks=function(T){q[T]=[]},e.removeAllHooks=function(){q=$o()},e}var pe=ua();const vi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return vi.hue2rgb(o,n,t+1/3)*255;case"g":return vi.hue2rgb(o,n,t)*255;case"b":return vi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Zf={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Jf={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},A={channel:vi,lang:Zf,unit:Jf},It={};for(let t=0;t<=255;t++)It[t]=A.unit.dec2hex(t);const j={ALL:0,RGB:1,HSL:2};class Qf{constructor(){this.type=j.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=j.ALL}is(e){return this.type===e}}class td{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Qf}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=j.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=A.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=A.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=A.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=A.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=A.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=A.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(j.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(j.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(j.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(j.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(j.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(j.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(j.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(j.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(j.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(j.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(j.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(j.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Ji=new td({r:0,g:0,b:0,a:0},"transparent"),ue={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(ue.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,h=o?0:-1,u=s?255:15;return Ji.set({r:(r>>l*(h+3)&u)*a,g:(r>>l*(h+2)&u)*a,b:(r>>l*(h+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${It[Math.round(e)]}${It[Math.round(i)]}${It[Math.round(r)]}${It[Math.round(n*255)]}`:`#${It[Math.round(e)]}${It[Math.round(i)]}${It[Math.round(r)]}`}},Ht={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:t=>{const e=t.match(Ht.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return A.channel.clamp.h(parseFloat(i)*.9);case"rad":return A.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return A.channel.clamp.h(parseFloat(i)*360)}}return A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ht.re);if(!i)return;const[,r,n,o,s,a]=i;return Ji.set({h:Ht._hue2deg(r),s:A.channel.clamp.s(parseFloat(n)),l:A.channel.clamp.l(parseFloat(o)),a:s?A.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${A.lang.round(e)}, ${A.lang.round(i)}%, ${A.lang.round(r)}%, ${n})`:`hsl(${A.lang.round(e)}, ${A.lang.round(i)}%, ${A.lang.round(r)}%)`}},$e={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:t=>{t=t.toLowerCase();const e=$e.colors[t];if(e)return ue.parse(e)},stringify:t=>{const e=ue.stringify(t);for(const i in $e.colors)if($e.colors[i]===e)return i}},Pe={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Pe.re);if(!i)return;const[,r,n,o,s,a,l,h,u]=i;return Ji.set({r:A.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:A.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:A.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?A.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${A.lang.round(e)}, ${A.lang.round(i)}, ${A.lang.round(r)}, ${A.lang.round(n)})`:`rgb(${A.lang.round(e)}, ${A.lang.round(i)}, ${A.lang.round(r)})`}},yt={format:{keyword:$e,hex:ue,rgb:Pe,rgba:Pe,hsl:Ht,hsla:Ht},parse:t=>{if(typeof t!="string")return t;const e=ue.parse(t)||Pe.parse(t)||Ht.parse(t)||$e.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(j.HSL)||t.data.r===void 0?Ht.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Pe.stringify(t):ue.stringify(t)},fa=(t,e)=>{const i=yt.parse(t);for(const r in e)i[r]=A.channel.clamp[r](e[r]);return yt.stringify(i)},qe=(t,e,i=0,r=1)=>{if(typeof t!="number")return fa(t,{a:e});const n=Ji.set({r:A.channel.clamp.r(t),g:A.channel.clamp.g(e),b:A.channel.clamp.b(i),a:A.channel.clamp.a(r)});return yt.stringify(n)},ed=t=>{const{r:e,g:i,b:r}=yt.parse(t),n=.2126*A.channel.toLinear(e)+.7152*A.channel.toLinear(i)+.0722*A.channel.toLinear(r);return A.lang.round(n)},id=t=>ed(t)>=.5,ti=t=>!id(t),da=(t,e,i)=>{const r=yt.parse(t),n=r[e],o=A.channel.clamp[e](n+i);return n!==o&&(r[e]=o),yt.stringify(r)},x=(t,e)=>da(t,"l",e),S=(t,e)=>da(t,"l",-e),p=(t,e)=>{const i=yt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return fa(t,r)},rd=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=yt.parse(t),{r:a,g:l,b:h,a:u}=yt.parse(e),d=i/100,c=d*2-1,g=s-u,w=((c*g===-1?c:(c+g)/(1+c*g))+1)/2,k=1-w,E=r*w+a*k,B=n*w+l*k,it=o*w+h*k,L=s*d+u*(1-d);return qe(E,B,it,L)},_=(t,e=100)=>{const i=yt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,rd(i,t,e)};var pa=typeof global=="object"&&global&&global.Object===Object&&global,nd=typeof self=="object"&&self&&self.Object===Object&&self,bt=pa||nd||Function("return this")(),Mi=bt.Symbol,ga=Object.prototype,od=ga.hasOwnProperty,sd=ga.toString,Me=Mi?Mi.toStringTag:void 0;function ad(t){var e=od.call(t,Me),i=t[Me];try{t[Me]=void 0;var r=!0}catch{}var n=sd.call(t);return r&&(e?t[Me]=i:delete t[Me]),n}var ld=Object.prototype,hd=ld.toString;function cd(t){return hd.call(t)}var ud="[object Null]",fd="[object Undefined]",qo=Mi?Mi.toStringTag:void 0;function xe(t){return t==null?t===void 0?fd:ud:qo&&qo in Object(t)?ad(t):cd(t)}function Xt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var dd="[object AsyncFunction]",pd="[object Function]",gd="[object GeneratorFunction]",md="[object Proxy]";function Cn(t){if(!Xt(t))return!1;var e=xe(t);return e==pd||e==gd||e==dd||e==md}var Ir=bt["__core-js_shared__"],zo=function(){var t=/[^.]+$/.exec(Ir&&Ir.keys&&Ir.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function _d(t){return!!zo&&zo in t}var yd=Function.prototype,Cd=yd.toString;function Kt(t){if(t!=null){try{return Cd.call(t)}catch{}try{return t+""}catch{}}return""}var xd=/[\\^$.*+?()[\]{}|]/g,bd=/^\[object .+?Constructor\]$/,Td=Function.prototype,vd=Object.prototype,kd=Td.toString,Sd=vd.hasOwnProperty,wd=RegExp("^"+kd.call(Sd).replace(xd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bd(t){if(!Xt(t)||_d(t))return!1;var e=Cn(t)?wd:bd;return e.test(Kt(t))}function Ad(t,e){return t==null?void 0:t[e]}function Zt(t,e){var i=Ad(t,e);return Bd(i)?i:void 0}var Xe=Zt(Object,"create");function Fd(){this.__data__=Xe?Xe(null):{},this.size=0}function Ld(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ed="__lodash_hash_undefined__",Od=Object.prototype,Id=Od.hasOwnProperty;function Md(t){var e=this.__data__;if(Xe){var i=e[t];return i===Ed?void 0:i}return Id.call(e,t)?e[t]:void 0}var Dd=Object.prototype,Nd=Dd.hasOwnProperty;function Rd(t){var e=this.__data__;return Xe?e[t]!==void 0:Nd.call(e,t)}var Pd="__lodash_hash_undefined__";function $d(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Xe&&e===void 0?Pd:e,this}function Vt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Vt.prototype.clear=Fd;Vt.prototype.delete=Ld;Vt.prototype.get=Md;Vt.prototype.has=Rd;Vt.prototype.set=$d;function qd(){this.__data__=[],this.size=0}function Qi(t,e){return t===e||t!==t&&e!==e}function tr(t,e){for(var i=t.length;i--;)if(Qi(t[i][0],e))return i;return-1}var zd=Array.prototype,Wd=zd.splice;function Hd(t){var e=this.__data__,i=tr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Wd.call(e,i,1),--this.size,!0}function jd(t){var e=this.__data__,i=tr(e,t);return i<0?void 0:e[i][1]}function Ud(t){return tr(this.__data__,t)>-1}function Yd(t,e){var i=this.__data__,r=tr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Ot(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Ot.prototype.clear=qd;Ot.prototype.delete=Hd;Ot.prototype.get=jd;Ot.prototype.has=Ud;Ot.prototype.set=Yd;var Ke=Zt(bt,"Map");function Vd(){this.size=0,this.__data__={hash:new Vt,map:new(Ke||Ot),string:new Vt}}function Gd(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function er(t,e){var i=t.__data__;return Gd(e)?i[typeof e=="string"?"string":"hash"]:i.map}function Xd(t){var e=er(this,t).delete(t);return this.size-=e?1:0,e}function Kd(t){return er(this,t).get(t)}function Zd(t){return er(this,t).has(t)}function Jd(t,e){var i=er(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function Pt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=Vd;Pt.prototype.delete=Xd;Pt.prototype.get=Kd;Pt.prototype.has=Zd;Pt.prototype.set=Jd;var Qd="Expected a function";function ei(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Qd);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(ei.Cache||Pt),i}ei.Cache=Pt;function tp(){this.__data__=new Ot,this.size=0}function ep(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function ip(t){return this.__data__.get(t)}function rp(t){return this.__data__.has(t)}var np=200;function op(t,e){var i=this.__data__;if(i instanceof Ot){var r=i.__data__;if(!Ke||r.length<np-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new Pt(r)}return i.set(t,e),this.size=i.size,this}function be(t){var e=this.__data__=new Ot(t);this.size=e.size}be.prototype.clear=tp;be.prototype.delete=ep;be.prototype.get=ip;be.prototype.has=rp;be.prototype.set=op;var Di=function(){try{var t=Zt(Object,"defineProperty");return t({},"",{}),t}catch{}}();function xn(t,e,i){e=="__proto__"&&Di?Di(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Kr(t,e,i){(i!==void 0&&!Qi(t[e],i)||i===void 0&&!(e in t))&&xn(t,e,i)}function sp(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++n];if(i(o[l],l,o)===!1)break}return e}}var ap=sp(),ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wo=ma&&typeof module=="object"&&module&&!module.nodeType&&module,lp=Wo&&Wo.exports===ma,Ho=lp?bt.Buffer:void 0,jo=Ho?Ho.allocUnsafe:void 0;function hp(t,e){if(e)return t.slice();var i=t.length,r=jo?jo(i):new t.constructor(i);return t.copy(r),r}var Uo=bt.Uint8Array;function cp(t){var e=new t.constructor(t.byteLength);return new Uo(e).set(new Uo(t)),e}function up(t,e){var i=e?cp(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function fp(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var Yo=Object.create,dp=function(){function t(){}return function(e){if(!Xt(e))return{};if(Yo)return Yo(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function _a(t,e){return function(i){return t(e(i))}}var ya=_a(Object.getPrototypeOf,Object),pp=Object.prototype;function ir(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||pp;return t===i}function gp(t){return typeof t.constructor=="function"&&!ir(t)?dp(ya(t)):{}}function ii(t){return t!=null&&typeof t=="object"}var mp="[object Arguments]";function Vo(t){return ii(t)&&xe(t)==mp}var Ca=Object.prototype,_p=Ca.hasOwnProperty,yp=Ca.propertyIsEnumerable,Ni=Vo(function(){return arguments}())?Vo:function(t){return ii(t)&&_p.call(t,"callee")&&!yp.call(t,"callee")},Ri=Array.isArray,Cp=9007199254740991;function xa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cp}function rr(t){return t!=null&&xa(t.length)&&!Cn(t)}function xp(t){return ii(t)&&rr(t)}function bp(){return!1}var ba=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Go=ba&&typeof module=="object"&&module&&!module.nodeType&&module,Tp=Go&&Go.exports===ba,Xo=Tp?bt.Buffer:void 0,vp=Xo?Xo.isBuffer:void 0,bn=vp||bp,kp="[object Object]",Sp=Function.prototype,wp=Object.prototype,Ta=Sp.toString,Bp=wp.hasOwnProperty,Ap=Ta.call(Object);function Fp(t){if(!ii(t)||xe(t)!=kp)return!1;var e=ya(t);if(e===null)return!0;var i=Bp.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ta.call(i)==Ap}var Lp="[object Arguments]",Ep="[object Array]",Op="[object Boolean]",Ip="[object Date]",Mp="[object Error]",Dp="[object Function]",Np="[object Map]",Rp="[object Number]",Pp="[object Object]",$p="[object RegExp]",qp="[object Set]",zp="[object String]",Wp="[object WeakMap]",Hp="[object ArrayBuffer]",jp="[object DataView]",Up="[object Float32Array]",Yp="[object Float64Array]",Vp="[object Int8Array]",Gp="[object Int16Array]",Xp="[object Int32Array]",Kp="[object Uint8Array]",Zp="[object Uint8ClampedArray]",Jp="[object Uint16Array]",Qp="[object Uint32Array]",O={};O[Up]=O[Yp]=O[Vp]=O[Gp]=O[Xp]=O[Kp]=O[Zp]=O[Jp]=O[Qp]=!0;O[Lp]=O[Ep]=O[Hp]=O[Op]=O[jp]=O[Ip]=O[Mp]=O[Dp]=O[Np]=O[Rp]=O[Pp]=O[$p]=O[qp]=O[zp]=O[Wp]=!1;function tg(t){return ii(t)&&xa(t.length)&&!!O[xe(t)]}function eg(t){return function(e){return t(e)}}var va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ze=va&&typeof module=="object"&&module&&!module.nodeType&&module,ig=ze&&ze.exports===va,Mr=ig&&pa.process,Ko=function(){try{var t=ze&&ze.require&&ze.require("util").types;return t||Mr&&Mr.binding&&Mr.binding("util")}catch{}}(),Zo=Ko&&Ko.isTypedArray,Tn=Zo?eg(Zo):tg;function Zr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var rg=Object.prototype,ng=rg.hasOwnProperty;function og(t,e,i){var r=t[e];(!(ng.call(t,e)&&Qi(r,i))||i===void 0&&!(e in t))&&xn(t,e,i)}function sg(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),n?xn(i,a,l):og(i,a,l)}return i}function ag(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var lg=9007199254740991,hg=/^(?:0|[1-9]\d*)$/;function ka(t,e){var i=typeof t;return e=e??lg,!!e&&(i=="number"||i!="symbol"&&hg.test(t))&&t>-1&&t%1==0&&t<e}var cg=Object.prototype,ug=cg.hasOwnProperty;function fg(t,e){var i=Ri(t),r=!i&&Ni(t),n=!i&&!r&&bn(t),o=!i&&!r&&!n&&Tn(t),s=i||r||n||o,a=s?ag(t.length,String):[],l=a.length;for(var h in t)(e||ug.call(t,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||ka(h,l)))&&a.push(h);return a}function dg(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var pg=Object.prototype,gg=pg.hasOwnProperty;function mg(t){if(!Xt(t))return dg(t);var e=ir(t),i=[];for(var r in t)r=="constructor"&&(e||!gg.call(t,r))||i.push(r);return i}function Sa(t){return rr(t)?fg(t,!0):mg(t)}function _g(t){return sg(t,Sa(t))}function yg(t,e,i,r,n,o,s){var a=Zr(t,i),l=Zr(e,i),h=s.get(l);if(h){Kr(t,i,h);return}var u=o?o(a,l,i+"",t,e,s):void 0,d=u===void 0;if(d){var c=Ri(l),g=!c&&bn(l),y=!c&&!g&&Tn(l);u=l,c||g||y?Ri(a)?u=a:xp(a)?u=fp(a):g?(d=!1,u=hp(l,!0)):y?(d=!1,u=up(l,!0)):u=[]:Fp(l)||Ni(l)?(u=a,Ni(a)?u=_g(a):(!Xt(a)||Cn(a))&&(u=gp(l))):d=!1}d&&(s.set(l,u),n(u,l,r,o,s),s.delete(l)),Kr(t,i,u)}function wa(t,e,i,r,n){t!==e&&ap(e,function(o,s){if(n||(n=new be),Xt(o))yg(t,e,s,i,wa,r,n);else{var a=r?r(Zr(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),Kr(t,s,a)}},Sa)}function Ba(t){return t}function Cg(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Jo=Math.max;function xg(t,e,i){return e=Jo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Jo(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),Cg(t,this,a)}}function bg(t){return function(){return t}}var Tg=Di?function(t,e){return Di(t,"toString",{configurable:!0,enumerable:!1,value:bg(e),writable:!0})}:Ba,vg=800,kg=16,Sg=Date.now;function wg(t){var e=0,i=0;return function(){var r=Sg(),n=kg-(r-i);if(i=r,n>0){if(++e>=vg)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Bg=wg(Tg);function Ag(t,e){return Bg(xg(t,e,Ba),t+"")}function Fg(t,e,i){if(!Xt(i))return!1;var r=typeof e;return(r=="number"?rr(i)&&ka(e,i.length):r=="string"&&e in i)?Qi(i[e],t):!1}function Lg(t){return Ag(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&Fg(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var Eg=Lg(function(t,e,i){wa(t,e,i)}),Og=_a(Object.keys,Object),Ig=Object.prototype,Mg=Ig.hasOwnProperty;function Dg(t){if(!ir(t))return Og(t);var e=[];for(var i in Object(t))Mg.call(t,i)&&i!="constructor"&&e.push(i);return e}var Jr=Zt(bt,"DataView"),Qr=Zt(bt,"Promise"),tn=Zt(bt,"Set"),en=Zt(bt,"WeakMap"),Qo="[object Map]",Ng="[object Object]",ts="[object Promise]",es="[object Set]",is="[object WeakMap]",rs="[object DataView]",Rg=Kt(Jr),Pg=Kt(Ke),$g=Kt(Qr),qg=Kt(tn),zg=Kt(en),zt=xe;(Jr&&zt(new Jr(new ArrayBuffer(1)))!=rs||Ke&&zt(new Ke)!=Qo||Qr&&zt(Qr.resolve())!=ts||tn&&zt(new tn)!=es||en&&zt(new en)!=is)&&(zt=function(t){var e=xe(t),i=e==Ng?t.constructor:void 0,r=i?Kt(i):"";if(r)switch(r){case Rg:return rs;case Pg:return Qo;case $g:return ts;case qg:return es;case zg:return is}return e});var Wg="[object Map]",Hg="[object Set]",jg=Object.prototype,Ug=jg.hasOwnProperty;function Dr(t){if(t==null)return!0;if(rr(t)&&(Ri(t)||typeof t=="string"||typeof t.splice=="function"||bn(t)||Tn(t)||Ni(t)))return!t.length;var e=zt(t);if(e==Wg||e==Hg)return!t.size;if(ir(t))return!Dg(t).length;for(var i in t)if(Ug.call(t,i))return!1;return!0}const Bt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},v={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},vn=function(t="fatal"){let e=Bt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Bt&&(e=Bt[t])):typeof t=="number"&&(e=t),v.trace=()=>{},v.debug=()=>{},v.info=()=>{},v.warn=()=>{},v.error=()=>{},v.fatal=()=>{},e<=Bt.fatal&&(v.fatal=console.error?console.error.bind(console,ot("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ot("FATAL"))),e<=Bt.error&&(v.error=console.error?console.error.bind(console,ot("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ot("ERROR"))),e<=Bt.warn&&(v.warn=console.warn?console.warn.bind(console,ot("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ot("WARN"))),e<=Bt.info&&(v.info=console.info?console.info.bind(console,ot("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ot("INFO"))),e<=Bt.debug&&(v.debug=console.debug?console.debug.bind(console,ot("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ot("DEBUG"))),e<=Bt.trace&&(v.trace=console.debug?console.debug.bind(console,ot("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ot("TRACE")))},ot=t=>`%c${Vl().format("ss.SSS")} : ${t} : `,ri=/<br\s*\/?>/gi,Yg=t=>t?Fa(t).replace(/\\n/g,"#br#").split("#br#"):[""],Vg=(()=>{let t=!1;return()=>{t||(Gg(),t=!0)}})();function Gg(){const t="data-temp-href-target";pe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),pe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Aa=t=>(Vg(),pe.sanitize(t)),ns=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Aa(t):r!=="loose"&&(t=Fa(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Jg(t))}return t},ge=(t,e)=>t&&(e.dompurifyConfig?t=pe.sanitize(ns(t,e),e.dompurifyConfig).toString():t=pe.sanitize(ns(t,e),{FORBID_TAGS:["style"]}).toString(),t),Xg=(t,e)=>typeof t=="string"?ge(t,e):t.flat().map(i=>ge(i,e)),Kg=t=>ri.test(t),Zg=t=>t.split(ri),Jg=t=>t.replace(/#br#/g,"<br/>"),Fa=t=>t.replace(ri,"#br#"),Qg=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},La=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),tm=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},em=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},jx=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];im(o,s)&&(n=o+","+s,r++,i.pop())}i.push(rm(n))}return i.join("")},rn=(t,e)=>Math.max(0,t.split(e).length-1),im=(t,e)=>{const i=rn(t,"~"),r=rn(e,"~");return i===1&&r===1},rm=t=>{const e=rn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},os=()=>window.MathMLElement!==void 0,nn=/\$\$(.*)\$\$/g,ss=t=>{var e;return(((e=t.match(nn))==null?void 0:e.length)??0)>0},Ux=async(t,e)=>{const i=document.createElement("div");i.innerHTML=await om(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},nm=async(t,e)=>{if(!ss(t))return t;if(!os()&&!e.legacyMathML)return t.replace(nn,"MathML is unsupported in this environment.");const{default:i}=await M(async()=>{const{default:r}=await import("./katex-CBSAILhF.js");return{default:r}},[]);return t.split(ri).map(r=>ss(r)?`
|
|
8
|
+
`+J),ee&&mi([Jt,ve,ke],St=>{J=Le(J,St," ")}),L&&li?L.createHTML(J):J},e.setConfig=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};br(T),pr=!0},e.clearConfig=function(){oe=null,pr=!1},e.isValidAttribute=function(T,f,m){oe||br({});const C=P(T),I=P(f);return no(C,I,m)},e.addHook=function(T,f){typeof f=="function"&&Fe(q[T],f)},e.removeHook=function(T,f){if(f!==void 0){const m=If(q[T],f);return m===-1?void 0:Mf(q[T],m,1)[0]}return Io(q[T])},e.removeHooks=function(T){q[T]=[]},e.removeAllHooks=function(){q=$o()},e}var pe=ua();const vi={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:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,o=2*i-n;switch(r){case"r":return vi.hue2rgb(o,n,t+1/3)*255;case"g":return vi.hue2rgb(o,n,t)*255;case"b":return vi.hue2rgb(o,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),o=Math.min(t,e,i),s=(n+o)/2;if(r==="l")return s*100;if(n===o)return 0;const a=n-o,l=s>.5?a/(2-n-o):a/(n+o);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},Zf={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},Jf={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},A={channel:vi,lang:Zf,unit:Jf},It={};for(let t=0;t<=255;t++)It[t]=A.unit.dec2hex(t);const j={ALL:0,RGB:1,HSL:2};class Qf{constructor(){this.type=j.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=j.ALL}is(e){return this.type===e}}class td{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new Qf}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=j.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=A.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=A.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=A.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=A.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=A.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=A.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(j.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(j.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(j.HSL)&&i!==void 0?i:(this._ensureHSL(),A.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(j.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(j.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(j.RGB)&&i!==void 0?i:(this._ensureRGB(),A.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(j.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(j.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(j.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(j.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(j.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(j.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Ji=new td({r:0,g:0,b:0,a:0},"transparent"),ue={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(ue.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,o=n%4===0,s=n>4,a=s?1:17,l=s?8:4,h=o?0:-1,u=s?255:15;return Ji.set({r:(r>>l*(h+3)&u)*a,g:(r>>l*(h+2)&u)*a,b:(r>>l*(h+1)&u)*a,a:o?(r&u)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${It[Math.round(e)]}${It[Math.round(i)]}${It[Math.round(r)]}${It[Math.round(n*255)]}`:`#${It[Math.round(e)]}${It[Math.round(i)]}${It[Math.round(r)]}`}},Ht={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:t=>{const e=t.match(Ht.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return A.channel.clamp.h(parseFloat(i)*.9);case"rad":return A.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return A.channel.clamp.h(parseFloat(i)*360)}}return A.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(Ht.re);if(!i)return;const[,r,n,o,s,a]=i;return Ji.set({h:Ht._hue2deg(r),s:A.channel.clamp.s(parseFloat(n)),l:A.channel.clamp.l(parseFloat(o)),a:s?A.channel.clamp.a(a?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:i,l:r,a:n}=t;return n<1?`hsla(${A.lang.round(e)}, ${A.lang.round(i)}%, ${A.lang.round(r)}%, ${n})`:`hsl(${A.lang.round(e)}, ${A.lang.round(i)}%, ${A.lang.round(r)}%)`}},$e={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:t=>{t=t.toLowerCase();const e=$e.colors[t];if(e)return ue.parse(e)},stringify:t=>{const e=ue.stringify(t);for(const i in $e.colors)if($e.colors[i]===e)return i}},Pe={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:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const i=t.match(Pe.re);if(!i)return;const[,r,n,o,s,a,l,h,u]=i;return Ji.set({r:A.channel.clamp.r(n?parseFloat(r)*2.55:parseFloat(r)),g:A.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:A.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?A.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`rgba(${A.lang.round(e)}, ${A.lang.round(i)}, ${A.lang.round(r)}, ${A.lang.round(n)})`:`rgb(${A.lang.round(e)}, ${A.lang.round(i)}, ${A.lang.round(r)})`}},yt={format:{keyword:$e,hex:ue,rgb:Pe,rgba:Pe,hsl:Ht,hsla:Ht},parse:t=>{if(typeof t!="string")return t;const e=ue.parse(t)||Pe.parse(t)||Ht.parse(t)||$e.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is(j.HSL)||t.data.r===void 0?Ht.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Pe.stringify(t):ue.stringify(t)},fa=(t,e)=>{const i=yt.parse(t);for(const r in e)i[r]=A.channel.clamp[r](e[r]);return yt.stringify(i)},qe=(t,e,i=0,r=1)=>{if(typeof t!="number")return fa(t,{a:e});const n=Ji.set({r:A.channel.clamp.r(t),g:A.channel.clamp.g(e),b:A.channel.clamp.b(i),a:A.channel.clamp.a(r)});return yt.stringify(n)},ed=t=>{const{r:e,g:i,b:r}=yt.parse(t),n=.2126*A.channel.toLinear(e)+.7152*A.channel.toLinear(i)+.0722*A.channel.toLinear(r);return A.lang.round(n)},id=t=>ed(t)>=.5,ti=t=>!id(t),da=(t,e,i)=>{const r=yt.parse(t),n=r[e],o=A.channel.clamp[e](n+i);return n!==o&&(r[e]=o),yt.stringify(r)},x=(t,e)=>da(t,"l",e),S=(t,e)=>da(t,"l",-e),p=(t,e)=>{const i=yt.parse(t),r={};for(const n in e)e[n]&&(r[n]=i[n]+e[n]);return fa(t,r)},rd=(t,e,i=50)=>{const{r,g:n,b:o,a:s}=yt.parse(t),{r:a,g:l,b:h,a:u}=yt.parse(e),d=i/100,c=d*2-1,g=s-u,w=((c*g===-1?c:(c+g)/(1+c*g))+1)/2,k=1-w,E=r*w+a*k,B=n*w+l*k,it=o*w+h*k,L=s*d+u*(1-d);return qe(E,B,it,L)},_=(t,e=100)=>{const i=yt.parse(t);return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,rd(i,t,e)};var pa=typeof global=="object"&&global&&global.Object===Object&&global,nd=typeof self=="object"&&self&&self.Object===Object&&self,bt=pa||nd||Function("return this")(),Mi=bt.Symbol,ga=Object.prototype,od=ga.hasOwnProperty,sd=ga.toString,Me=Mi?Mi.toStringTag:void 0;function ad(t){var e=od.call(t,Me),i=t[Me];try{t[Me]=void 0;var r=!0}catch{}var n=sd.call(t);return r&&(e?t[Me]=i:delete t[Me]),n}var ld=Object.prototype,hd=ld.toString;function cd(t){return hd.call(t)}var ud="[object Null]",fd="[object Undefined]",qo=Mi?Mi.toStringTag:void 0;function xe(t){return t==null?t===void 0?fd:ud:qo&&qo in Object(t)?ad(t):cd(t)}function Xt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var dd="[object AsyncFunction]",pd="[object Function]",gd="[object GeneratorFunction]",md="[object Proxy]";function Cn(t){if(!Xt(t))return!1;var e=xe(t);return e==pd||e==gd||e==dd||e==md}var Ir=bt["__core-js_shared__"],zo=function(){var t=/[^.]+$/.exec(Ir&&Ir.keys&&Ir.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function _d(t){return!!zo&&zo in t}var yd=Function.prototype,Cd=yd.toString;function Kt(t){if(t!=null){try{return Cd.call(t)}catch{}try{return t+""}catch{}}return""}var xd=/[\\^$.*+?()[\]{}|]/g,bd=/^\[object .+?Constructor\]$/,Td=Function.prototype,vd=Object.prototype,kd=Td.toString,Sd=vd.hasOwnProperty,wd=RegExp("^"+kd.call(Sd).replace(xd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Bd(t){if(!Xt(t)||_d(t))return!1;var e=Cn(t)?wd:bd;return e.test(Kt(t))}function Ad(t,e){return t==null?void 0:t[e]}function Zt(t,e){var i=Ad(t,e);return Bd(i)?i:void 0}var Xe=Zt(Object,"create");function Fd(){this.__data__=Xe?Xe(null):{},this.size=0}function Ld(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Ed="__lodash_hash_undefined__",Od=Object.prototype,Id=Od.hasOwnProperty;function Md(t){var e=this.__data__;if(Xe){var i=e[t];return i===Ed?void 0:i}return Id.call(e,t)?e[t]:void 0}var Dd=Object.prototype,Nd=Dd.hasOwnProperty;function Rd(t){var e=this.__data__;return Xe?e[t]!==void 0:Nd.call(e,t)}var Pd="__lodash_hash_undefined__";function $d(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=Xe&&e===void 0?Pd:e,this}function Vt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Vt.prototype.clear=Fd;Vt.prototype.delete=Ld;Vt.prototype.get=Md;Vt.prototype.has=Rd;Vt.prototype.set=$d;function qd(){this.__data__=[],this.size=0}function Qi(t,e){return t===e||t!==t&&e!==e}function tr(t,e){for(var i=t.length;i--;)if(Qi(t[i][0],e))return i;return-1}var zd=Array.prototype,Wd=zd.splice;function Hd(t){var e=this.__data__,i=tr(e,t);if(i<0)return!1;var r=e.length-1;return i==r?e.pop():Wd.call(e,i,1),--this.size,!0}function jd(t){var e=this.__data__,i=tr(e,t);return i<0?void 0:e[i][1]}function Ud(t){return tr(this.__data__,t)>-1}function Yd(t,e){var i=this.__data__,r=tr(i,t);return r<0?(++this.size,i.push([t,e])):i[r][1]=e,this}function Ot(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Ot.prototype.clear=qd;Ot.prototype.delete=Hd;Ot.prototype.get=jd;Ot.prototype.has=Ud;Ot.prototype.set=Yd;var Ke=Zt(bt,"Map");function Vd(){this.size=0,this.__data__={hash:new Vt,map:new(Ke||Ot),string:new Vt}}function Gd(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function er(t,e){var i=t.__data__;return Gd(e)?i[typeof e=="string"?"string":"hash"]:i.map}function Xd(t){var e=er(this,t).delete(t);return this.size-=e?1:0,e}function Kd(t){return er(this,t).get(t)}function Zd(t){return er(this,t).has(t)}function Jd(t,e){var i=er(this,t),r=i.size;return i.set(t,e),this.size+=i.size==r?0:1,this}function Pt(t){var e=-1,i=t==null?0:t.length;for(this.clear();++e<i;){var r=t[e];this.set(r[0],r[1])}}Pt.prototype.clear=Vd;Pt.prototype.delete=Xd;Pt.prototype.get=Kd;Pt.prototype.has=Zd;Pt.prototype.set=Jd;var Qd="Expected a function";function ei(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Qd);var i=function(){var r=arguments,n=e?e.apply(this,r):r[0],o=i.cache;if(o.has(n))return o.get(n);var s=t.apply(this,r);return i.cache=o.set(n,s)||o,s};return i.cache=new(ei.Cache||Pt),i}ei.Cache=Pt;function tp(){this.__data__=new Ot,this.size=0}function ep(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}function ip(t){return this.__data__.get(t)}function rp(t){return this.__data__.has(t)}var np=200;function op(t,e){var i=this.__data__;if(i instanceof Ot){var r=i.__data__;if(!Ke||r.length<np-1)return r.push([t,e]),this.size=++i.size,this;i=this.__data__=new Pt(r)}return i.set(t,e),this.size=i.size,this}function be(t){var e=this.__data__=new Ot(t);this.size=e.size}be.prototype.clear=tp;be.prototype.delete=ep;be.prototype.get=ip;be.prototype.has=rp;be.prototype.set=op;var Di=function(){try{var t=Zt(Object,"defineProperty");return t({},"",{}),t}catch{}}();function xn(t,e,i){e=="__proto__"&&Di?Di(t,e,{configurable:!0,enumerable:!0,value:i,writable:!0}):t[e]=i}function Kr(t,e,i){(i!==void 0&&!Qi(t[e],i)||i===void 0&&!(e in t))&&xn(t,e,i)}function sp(t){return function(e,i,r){for(var n=-1,o=Object(e),s=r(e),a=s.length;a--;){var l=s[++n];if(i(o[l],l,o)===!1)break}return e}}var ap=sp(),ma=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wo=ma&&typeof module=="object"&&module&&!module.nodeType&&module,lp=Wo&&Wo.exports===ma,Ho=lp?bt.Buffer:void 0,jo=Ho?Ho.allocUnsafe:void 0;function hp(t,e){if(e)return t.slice();var i=t.length,r=jo?jo(i):new t.constructor(i);return t.copy(r),r}var Uo=bt.Uint8Array;function cp(t){var e=new t.constructor(t.byteLength);return new Uo(e).set(new Uo(t)),e}function up(t,e){var i=e?cp(t.buffer):t.buffer;return new t.constructor(i,t.byteOffset,t.length)}function fp(t,e){var i=-1,r=t.length;for(e||(e=Array(r));++i<r;)e[i]=t[i];return e}var Yo=Object.create,dp=function(){function t(){}return function(e){if(!Xt(e))return{};if(Yo)return Yo(e);t.prototype=e;var i=new t;return t.prototype=void 0,i}}();function _a(t,e){return function(i){return t(e(i))}}var ya=_a(Object.getPrototypeOf,Object),pp=Object.prototype;function ir(t){var e=t&&t.constructor,i=typeof e=="function"&&e.prototype||pp;return t===i}function gp(t){return typeof t.constructor=="function"&&!ir(t)?dp(ya(t)):{}}function ii(t){return t!=null&&typeof t=="object"}var mp="[object Arguments]";function Vo(t){return ii(t)&&xe(t)==mp}var Ca=Object.prototype,_p=Ca.hasOwnProperty,yp=Ca.propertyIsEnumerable,Ni=Vo(function(){return arguments}())?Vo:function(t){return ii(t)&&_p.call(t,"callee")&&!yp.call(t,"callee")},Ri=Array.isArray,Cp=9007199254740991;function xa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cp}function rr(t){return t!=null&&xa(t.length)&&!Cn(t)}function xp(t){return ii(t)&&rr(t)}function bp(){return!1}var ba=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Go=ba&&typeof module=="object"&&module&&!module.nodeType&&module,Tp=Go&&Go.exports===ba,Xo=Tp?bt.Buffer:void 0,vp=Xo?Xo.isBuffer:void 0,bn=vp||bp,kp="[object Object]",Sp=Function.prototype,wp=Object.prototype,Ta=Sp.toString,Bp=wp.hasOwnProperty,Ap=Ta.call(Object);function Fp(t){if(!ii(t)||xe(t)!=kp)return!1;var e=ya(t);if(e===null)return!0;var i=Bp.call(e,"constructor")&&e.constructor;return typeof i=="function"&&i instanceof i&&Ta.call(i)==Ap}var Lp="[object Arguments]",Ep="[object Array]",Op="[object Boolean]",Ip="[object Date]",Mp="[object Error]",Dp="[object Function]",Np="[object Map]",Rp="[object Number]",Pp="[object Object]",$p="[object RegExp]",qp="[object Set]",zp="[object String]",Wp="[object WeakMap]",Hp="[object ArrayBuffer]",jp="[object DataView]",Up="[object Float32Array]",Yp="[object Float64Array]",Vp="[object Int8Array]",Gp="[object Int16Array]",Xp="[object Int32Array]",Kp="[object Uint8Array]",Zp="[object Uint8ClampedArray]",Jp="[object Uint16Array]",Qp="[object Uint32Array]",O={};O[Up]=O[Yp]=O[Vp]=O[Gp]=O[Xp]=O[Kp]=O[Zp]=O[Jp]=O[Qp]=!0;O[Lp]=O[Ep]=O[Hp]=O[Op]=O[jp]=O[Ip]=O[Mp]=O[Dp]=O[Np]=O[Rp]=O[Pp]=O[$p]=O[qp]=O[zp]=O[Wp]=!1;function tg(t){return ii(t)&&xa(t.length)&&!!O[xe(t)]}function eg(t){return function(e){return t(e)}}var va=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ze=va&&typeof module=="object"&&module&&!module.nodeType&&module,ig=ze&&ze.exports===va,Mr=ig&&pa.process,Ko=function(){try{var t=ze&&ze.require&&ze.require("util").types;return t||Mr&&Mr.binding&&Mr.binding("util")}catch{}}(),Zo=Ko&&Ko.isTypedArray,Tn=Zo?eg(Zo):tg;function Zr(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var rg=Object.prototype,ng=rg.hasOwnProperty;function og(t,e,i){var r=t[e];(!(ng.call(t,e)&&Qi(r,i))||i===void 0&&!(e in t))&&xn(t,e,i)}function sg(t,e,i,r){var n=!i;i||(i={});for(var o=-1,s=e.length;++o<s;){var a=e[o],l=void 0;l===void 0&&(l=t[a]),n?xn(i,a,l):og(i,a,l)}return i}function ag(t,e){for(var i=-1,r=Array(t);++i<t;)r[i]=e(i);return r}var lg=9007199254740991,hg=/^(?:0|[1-9]\d*)$/;function ka(t,e){var i=typeof t;return e=e??lg,!!e&&(i=="number"||i!="symbol"&&hg.test(t))&&t>-1&&t%1==0&&t<e}var cg=Object.prototype,ug=cg.hasOwnProperty;function fg(t,e){var i=Ri(t),r=!i&&Ni(t),n=!i&&!r&&bn(t),o=!i&&!r&&!n&&Tn(t),s=i||r||n||o,a=s?ag(t.length,String):[],l=a.length;for(var h in t)(e||ug.call(t,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||ka(h,l)))&&a.push(h);return a}function dg(t){var e=[];if(t!=null)for(var i in Object(t))e.push(i);return e}var pg=Object.prototype,gg=pg.hasOwnProperty;function mg(t){if(!Xt(t))return dg(t);var e=ir(t),i=[];for(var r in t)r=="constructor"&&(e||!gg.call(t,r))||i.push(r);return i}function Sa(t){return rr(t)?fg(t,!0):mg(t)}function _g(t){return sg(t,Sa(t))}function yg(t,e,i,r,n,o,s){var a=Zr(t,i),l=Zr(e,i),h=s.get(l);if(h){Kr(t,i,h);return}var u=o?o(a,l,i+"",t,e,s):void 0,d=u===void 0;if(d){var c=Ri(l),g=!c&&bn(l),y=!c&&!g&&Tn(l);u=l,c||g||y?Ri(a)?u=a:xp(a)?u=fp(a):g?(d=!1,u=hp(l,!0)):y?(d=!1,u=up(l,!0)):u=[]:Fp(l)||Ni(l)?(u=a,Ni(a)?u=_g(a):(!Xt(a)||Cn(a))&&(u=gp(l))):d=!1}d&&(s.set(l,u),n(u,l,r,o,s),s.delete(l)),Kr(t,i,u)}function wa(t,e,i,r,n){t!==e&&ap(e,function(o,s){if(n||(n=new be),Xt(o))yg(t,e,s,i,wa,r,n);else{var a=r?r(Zr(t,s),o,s+"",t,e,n):void 0;a===void 0&&(a=o),Kr(t,s,a)}},Sa)}function Ba(t){return t}function Cg(t,e,i){switch(i.length){case 0:return t.call(e);case 1:return t.call(e,i[0]);case 2:return t.call(e,i[0],i[1]);case 3:return t.call(e,i[0],i[1],i[2])}return t.apply(e,i)}var Jo=Math.max;function xg(t,e,i){return e=Jo(e===void 0?t.length-1:e,0),function(){for(var r=arguments,n=-1,o=Jo(r.length-e,0),s=Array(o);++n<o;)s[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=i(s),Cg(t,this,a)}}function bg(t){return function(){return t}}var Tg=Di?function(t,e){return Di(t,"toString",{configurable:!0,enumerable:!1,value:bg(e),writable:!0})}:Ba,vg=800,kg=16,Sg=Date.now;function wg(t){var e=0,i=0;return function(){var r=Sg(),n=kg-(r-i);if(i=r,n>0){if(++e>=vg)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Bg=wg(Tg);function Ag(t,e){return Bg(xg(t,e,Ba),t+"")}function Fg(t,e,i){if(!Xt(i))return!1;var r=typeof e;return(r=="number"?rr(i)&&ka(e,i.length):r=="string"&&e in i)?Qi(i[e],t):!1}function Lg(t){return Ag(function(e,i){var r=-1,n=i.length,o=n>1?i[n-1]:void 0,s=n>2?i[2]:void 0;for(o=t.length>3&&typeof o=="function"?(n--,o):void 0,s&&Fg(i[0],i[1],s)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=i[r];a&&t(e,a,r,o)}return e})}var Eg=Lg(function(t,e,i){wa(t,e,i)}),Og=_a(Object.keys,Object),Ig=Object.prototype,Mg=Ig.hasOwnProperty;function Dg(t){if(!ir(t))return Og(t);var e=[];for(var i in Object(t))Mg.call(t,i)&&i!="constructor"&&e.push(i);return e}var Jr=Zt(bt,"DataView"),Qr=Zt(bt,"Promise"),tn=Zt(bt,"Set"),en=Zt(bt,"WeakMap"),Qo="[object Map]",Ng="[object Object]",ts="[object Promise]",es="[object Set]",is="[object WeakMap]",rs="[object DataView]",Rg=Kt(Jr),Pg=Kt(Ke),$g=Kt(Qr),qg=Kt(tn),zg=Kt(en),zt=xe;(Jr&&zt(new Jr(new ArrayBuffer(1)))!=rs||Ke&&zt(new Ke)!=Qo||Qr&&zt(Qr.resolve())!=ts||tn&&zt(new tn)!=es||en&&zt(new en)!=is)&&(zt=function(t){var e=xe(t),i=e==Ng?t.constructor:void 0,r=i?Kt(i):"";if(r)switch(r){case Rg:return rs;case Pg:return Qo;case $g:return ts;case qg:return es;case zg:return is}return e});var Wg="[object Map]",Hg="[object Set]",jg=Object.prototype,Ug=jg.hasOwnProperty;function Dr(t){if(t==null)return!0;if(rr(t)&&(Ri(t)||typeof t=="string"||typeof t.splice=="function"||bn(t)||Tn(t)||Ni(t)))return!t.length;var e=zt(t);if(e==Wg||e==Hg)return!t.size;if(ir(t))return!Dg(t).length;for(var i in t)if(Ug.call(t,i))return!1;return!0}const Bt={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},v={trace:(...t)=>{},debug:(...t)=>{},info:(...t)=>{},warn:(...t)=>{},error:(...t)=>{},fatal:(...t)=>{}},vn=function(t="fatal"){let e=Bt.fatal;typeof t=="string"?(t=t.toLowerCase(),t in Bt&&(e=Bt[t])):typeof t=="number"&&(e=t),v.trace=()=>{},v.debug=()=>{},v.info=()=>{},v.warn=()=>{},v.error=()=>{},v.fatal=()=>{},e<=Bt.fatal&&(v.fatal=console.error?console.error.bind(console,ot("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ot("FATAL"))),e<=Bt.error&&(v.error=console.error?console.error.bind(console,ot("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ot("ERROR"))),e<=Bt.warn&&(v.warn=console.warn?console.warn.bind(console,ot("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ot("WARN"))),e<=Bt.info&&(v.info=console.info?console.info.bind(console,ot("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ot("INFO"))),e<=Bt.debug&&(v.debug=console.debug?console.debug.bind(console,ot("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ot("DEBUG"))),e<=Bt.trace&&(v.trace=console.debug?console.debug.bind(console,ot("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ot("TRACE")))},ot=t=>`%c${Yl().format("ss.SSS")} : ${t} : `,ri=/<br\s*\/?>/gi,Yg=t=>t?Fa(t).replace(/\\n/g,"#br#").split("#br#"):[""],Vg=(()=>{let t=!1;return()=>{t||(Gg(),t=!0)}})();function Gg(){const t="data-temp-href-target";pe.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),pe.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}const Aa=t=>(Vg(),pe.sanitize(t)),ns=(t,e)=>{var i;if(((i=e.flowchart)==null?void 0:i.htmlLabels)!==!1){const r=e.securityLevel;r==="antiscript"||r==="strict"?t=Aa(t):r!=="loose"&&(t=Fa(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=Jg(t))}return t},ge=(t,e)=>t&&(e.dompurifyConfig?t=pe.sanitize(ns(t,e),e.dompurifyConfig).toString():t=pe.sanitize(ns(t,e),{FORBID_TAGS:["style"]}).toString(),t),Xg=(t,e)=>typeof t=="string"?ge(t,e):t.flat().map(i=>ge(i,e)),Kg=t=>ri.test(t),Zg=t=>t.split(ri),Jg=t=>t.replace(/#br#/g,"<br/>"),Fa=t=>t.replace(ri,"#br#"),Qg=t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},La=t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),tm=function(...t){const e=t.filter(i=>!isNaN(i));return Math.max(...e)},em=function(...t){const e=t.filter(i=>!isNaN(i));return Math.min(...e)},jx=function(t){const e=t.split(/(,)/),i=[];for(let r=0;r<e.length;r++){let n=e[r];if(n===","&&r>0&&r+1<e.length){const o=e[r-1],s=e[r+1];im(o,s)&&(n=o+","+s,r++,i.pop())}i.push(rm(n))}return i.join("")},rn=(t,e)=>Math.max(0,t.split(e).length-1),im=(t,e)=>{const i=rn(t,"~"),r=rn(e,"~");return i===1&&r===1},rm=t=>{const e=rn(t,"~");let i=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),i=!0);const r=[...t];let n=r.indexOf("~"),o=r.lastIndexOf("~");for(;n!==-1&&o!==-1&&n!==o;)r[n]="<",r[o]=">",n=r.indexOf("~"),o=r.lastIndexOf("~");return i&&r.unshift("~"),r.join("")},os=()=>window.MathMLElement!==void 0,nn=/\$\$(.*)\$\$/g,ss=t=>{var e;return(((e=t.match(nn))==null?void 0:e.length)??0)>0},Ux=async(t,e)=>{const i=document.createElement("div");i.innerHTML=await om(t,e),i.id="katex-temp",i.style.visibility="hidden",i.style.position="absolute",i.style.top="0";const r=document.querySelector("body");r==null||r.insertAdjacentElement("beforeend",i);const n={width:i.clientWidth,height:i.clientHeight};return i.remove(),n},nm=async(t,e)=>{if(!ss(t))return t;if(!os()&&!e.legacyMathML)return t.replace(nn,"MathML is unsupported in this environment.");const{default:i}=await M(async()=>{const{default:r}=await import("./katex-CBSAILhF.js");return{default:r}},[]);return t.split(ri).map(r=>ss(r)?`
|
|
9
9
|
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
|
10
10
|
${r}
|
|
11
11
|
</div>
|
|
12
12
|
`:`<div>${r}</div>`).join("").replace(nn,(r,n)=>i.renderToString(n,{throwOnError:!0,displayMode:!0,output:os()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},om=async(t,e)=>ge(await nm(t,e),e),kn={getRows:Yg,sanitizeText:ge,sanitizeTextOrArray:Xg,hasBreaks:Kg,splitBreaks:Zg,lineBreakRegex:ri,removeScript:Aa,getUrl:Qg,evaluate:La,getMax:tm,getMin:em},X=(t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),nr="#ffffff",or="#f2f2f2";let sm=class{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(){var e,i,r,n,o,s,a,l,h,u,d;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||X(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||X(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||X(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||_(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||_(this.tertiaryColor),this.lineColor=this.lineColor||_(this.background),this.arrowheadColor=this.arrowheadColor||_(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?S(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||"grey",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||S(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||_(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||x(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.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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=S(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=S(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||_(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||x(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||S(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const c=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||p(this.mainBkg,{h:180,s:-15,l:c*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||p(this.mainBkg,{h:180,s:-15,l:c*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||p(this.primaryColor,{h:64}),this.fillType3=this.fillType3||p(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||p(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||p(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||p(this.primaryColor,{h:128}),this.fillType7=this.fillType7||p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-10}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||p(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?x(this.quadrant1Fill):S(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?S(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=x(this.git0,25),this.git1=x(this.git1,25),this.git2=x(this.git2,25),this.git3=x(this.git3,25),this.git4=x(this.git4,25),this.git5=x(this.git5,25),this.git6=x(this.git6,25),this.git7=x(this.git7,25)):(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||nr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||or}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const am=t=>{const e=new sm;return e.calculate(t),e};let lm=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=x(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=_(this.background),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=x(_("#323D47"),10),this.lineColor="calculated",this.border1="#81B1DB",this.border2=qe(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=S("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=S(this.sectionBkgColor,10),this.taskBorderColor=qe(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=qe(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.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,i,r,n,o,s,a,l,h,u,d;this.secondBkg=x(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=x(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.mainContrastColor,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=x(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.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=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(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||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||_(this["cScale"+c]);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScalePeer"+c]=this["cScalePeer"+c]||x(this["cScale"+c],10);for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{h:30,s:-30,l:-(-10+c*4)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{h:30,s:-30,l:-(-7+c*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["pie"+c]=this["cScale"+c];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?x(this.quadrant1Fill):S(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?S(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=x(this.secondaryColor,20),this.git1=x(this.pie2||this.secondaryColor,20),this.git2=x(this.pie3||this.tertiaryColor,20),this.git3=x(this.pie4||p(this.primaryColor,{h:-30}),20),this.git4=x(this.pie5||p(this.primaryColor,{h:-60}),20),this.git5=x(this.pie6||p(this.primaryColor,{h:-90}),10),this.git6=x(this.pie7||p(this.primaryColor,{h:60}),10),this.git7=x(this.pie8||p(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||_(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||_(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||x(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||x(this.background,2)}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const hm=t=>{const e=new lm;return e.calculate(t),e};let cm=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(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="#e8e8e8",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="grey",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=qe(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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var e,i,r,n,o,s,a,l,h,u,d;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScale"+c]=S(this["cScale"+c],10),this["cScalePeer"+c]=this["cScalePeer"+c]||S(this["cScale"+c],25);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||p(this["cScale"+c],{h:180});for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{h:30,l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{h:30,l:-(7+c*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||_(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||_(this.labelTextColor);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=x(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||p(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||p(this.primaryColor,{l:-10}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||p(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||p(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?x(this.quadrant1Fill):S(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=x(this.git0,25),this.git1=x(this.git1,25),this.git2=x(this.git2,25),this.git3=x(this.git3,25),this.git4=x(this.git4,25),this.git5=x(this.git5,25),this.git6=x(this.git6,25),this.git7=x(this.git7,25)):(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)),this.gitInv0=this.gitInv0||S(_(this.git0),25),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||_(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||_(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||nr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||or}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const um=t=>{const e=new cm;return e.calculate(t),e};let fm=class{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=x("#cde498",10),this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.primaryColor),this.lineColor=_(this.background),this.textColor=_(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="grey",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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,h,u,d;this.actorBorder=S(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.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||S(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||S(this.tertiaryColor,40);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScale"+c]=S(this["cScale"+c],10),this["cScalePeer"+c]=this["cScalePeer"+c]||S(this["cScale"+c],25);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||p(this["cScale"+c],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{h:30,s:-30,l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{h:30,s:-30,l:-(8+c*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||p(this.primaryColor,{l:-30}),this.pie5=this.pie5||p(this.secondaryColor,{l:-30}),this.pie6=this.pie6||p(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||p(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||p(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||p(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||p(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||p(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||p(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?x(this.quadrant1Fill):S(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||p(this.primaryColor,{h:-30}),this.git4=this.git4||p(this.primaryColor,{h:-60}),this.git5=this.git5||p(this.primaryColor,{h:-90}),this.git6=this.git6||p(this.primaryColor,{h:60}),this.git7=this.git7||p(this.primaryColor,{h:120}),this.darkMode?(this.git0=x(this.git0,25),this.git1=x(this.git1,25),this.git2=x(this.git2,25),this.git3=x(this.git3,25),this.git4=x(this.git4,25),this.git5=x(this.git5,25),this.git6=x(this.git6,25),this.git7=x(this.git7,25)):(this.git0=S(this.git0,25),this.git1=S(this.git1,25),this.git2=S(this.git2,25),this.git3=S(this.git3,25),this.git4=S(this.git4,25),this.git5=S(this.git5,25),this.git6=S(this.git6,25),this.git7=S(this.git7,25)),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||_(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||_(this.labelTextColor),this.gitBranchLabel4=this.gitBranchLabel4||this.labelTextColor,this.gitBranchLabel5=this.gitBranchLabel5||this.labelTextColor,this.gitBranchLabel6=this.gitBranchLabel6||this.labelTextColor,this.gitBranchLabel7=this.gitBranchLabel7||this.labelTextColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||nr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||or}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}};const dm=t=>{const e=new fm;return e.calculate(t),e};class pm{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=x(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=X(this.primaryColor,this.darkMode),this.secondaryBorderColor=X(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=X(this.tertiaryColor,this.darkMode),this.primaryTextColor=_(this.primaryColor),this.secondaryTextColor=_(this.secondaryColor),this.tertiaryTextColor=_(this.tertiaryColor),this.lineColor=_(this.background),this.textColor=_(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="calculated",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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,i,r,n,o,s,a,l,h,u,d;this.secondBkg=x(this.contrast,55),this.border2=this.contrast,this.actorBorder=x(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.lineColor,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 c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleInv"+c]=this["cScaleInv"+c]||_(this["cScale"+c]);for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this.darkMode?this["cScalePeer"+c]=this["cScalePeer"+c]||x(this["cScale"+c],10):this["cScalePeer"+c]=this["cScalePeer"+c]||S(this["cScale"+c],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["cScaleLabel"+c]=this["cScaleLabel"+c]||this.scaleLabelColor;for(let c=0;c<5;c++)this["surface"+c]=this["surface"+c]||p(this.mainBkg,{l:-(5+c*5)}),this["surfacePeer"+c]=this["surfacePeer"+c]||p(this.mainBkg,{l:-(8+c*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=x(this.contrast,30),this.sectionBkgColor2=x(this.contrast,30),this.taskBorderColor=S(this.contrast,10),this.taskBkgColor=this.contrast,this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor=this.text,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.gridColor=x(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=S(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.transitionColor=this.transitionColor||"#000",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||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128});for(let c=0;c<this.THEME_COLOR_LIMIT;c++)this["pie"+c]=this["cScale"+c];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||p(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||p(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||p(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||p(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||p(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||p(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||ti(this.quadrant1Fill)?x(this.quadrant1Fill):S(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((r=this.xyChart)==null?void 0:r.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((n=this.xyChart)==null?void 0:n.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((a=this.xyChart)==null?void 0:a.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((d=this.xyChart)==null?void 0:d.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=S(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||p(this.primaryColor,{h:-30}),this.git4=this.pie5||p(this.primaryColor,{h:-60}),this.git5=this.pie6||p(this.primaryColor,{h:-90}),this.git6=this.pie7||p(this.primaryColor,{h:60}),this.git7=this.pie8||p(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||_(this.git0),this.gitInv1=this.gitInv1||_(this.git1),this.gitInv2=this.gitInv2||_(this.git2),this.gitInv3=this.gitInv3||_(this.git3),this.gitInv4=this.gitInv4||_(this.git4),this.gitInv5=this.gitInv5||_(this.git5),this.gitInv6=this.gitInv6||_(this.git6),this.gitInv7=this.gitInv7||_(this.git7),this.branchLabelColor=this.branchLabelColor||this.labelTextColor,this.gitBranchLabel0=this.branchLabelColor,this.gitBranchLabel1="white",this.gitBranchLabel2=this.branchLabelColor,this.gitBranchLabel3="white",this.gitBranchLabel4=this.branchLabelColor,this.gitBranchLabel5=this.branchLabelColor,this.gitBranchLabel6=this.branchLabelColor,this.gitBranchLabel7=this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||nr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||or}calculate(e){if(typeof e!="object"){this.updateColors();return}const i=Object.keys(e);i.forEach(r=>{this[r]=e[r]}),this.updateColors(),i.forEach(r=>{this[r]=e[r]})}}const gm=t=>{const e=new pm;return e.calculate(t),e},Lt={base:{getThemeVariables:am},dark:{getThemeVariables:hm},default:{getThemeVariables:um},forest:{getThemeVariables:dm},neutral:{getThemeVariables:gm}},At={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,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"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!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,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,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},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},theme:"default",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","maxEdges"],legacyMathML:!1,deterministicIds:!1,fontSize:16},Ea={...At,deterministicIDSeed:void 0,themeCSS:void 0,themeVariables:Lt.default.getThemeVariables(),sequence:{...At.sequence,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{...At.gantt,tickInterval:void 0,useWidth:void 0},c4:{...At.c4,useWidth:void 0,personFont:function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},external_personFont:function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},systemFont:function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},external_systemFont:function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},system_dbFont:function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},external_system_dbFont:function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},system_queueFont:function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},external_system_queueFont:function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},containerFont:function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},external_containerFont:function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},container_dbFont:function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},external_container_dbFont:function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},container_queueFont:function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},external_container_queueFont:function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},componentFont:function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},external_componentFont:function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},component_dbFont:function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},external_component_dbFont:function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},component_queueFont:function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},external_component_queueFont:function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},boundaryFont:function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}}},pie:{...At.pie,useWidth:984},xyChart:{...At.xyChart,useWidth:void 0},requirement:{...At.requirement,useWidth:void 0},gitGraph:{...At.gitGraph,useMaxWidth:!1},sankey:{...At.sankey,useMaxWidth:!1}},Oa=(t,e="")=>Object.keys(t).reduce((i,r)=>Array.isArray(t[r])?i:typeof t[r]=="object"&&t[r]!==null?[...i,e+r,...Oa(t[r],"")]:[...i,e+r],[]),mm=new Set(Oa(Ea,"")),_m=Ea,Pi=t=>{if(v.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Pi(e));return}for(const e of Object.keys(t)){if(v.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!mm.has(e)||t[e]==null){v.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){v.debug("sanitizing object",e),Pi(t[e]);continue}const i=["themeCSS","fontFamily","altFontFamily"];for(const r of i)e.includes(r)&&(v.debug("sanitizing css option",e),t[e]=ym(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const i=t.themeVariables[e];i!=null&&i.match&&!i.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}v.debug("After sanitization",t)}},ym=t=>{let e=0,i=0;for(const r of t){if(e<i)return"{ /* ERROR: Unbalanced CSS */ }";r==="{"?e++:r==="}"&&i++}return e!==i?"{ /* ERROR: Unbalanced CSS */ }":t},Ia=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,We=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Cm=/\s*%%.*\n/gm;class Ma extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const me={},sr=function(t,e){t=t.replace(Ia,"").replace(We,"").replace(Cm,`
|
|
13
13
|
`);for(const[i,{detector:r}]of Object.entries(me))if(r(t,e))return i;throw new Ma(`No diagram type detected matching given configuration for text: ${t}`)},Da=(...t)=>{for(const{id:e,detector:i,loader:r}of t)Na(e,i,r)},Na=(t,e,i)=>{me[t]?v.error(`Detector with key ${t} already exists`):me[t]={detector:e,loader:i},v.debug(`Detector with key ${t} added${i?" with loader":""}`)},xm=t=>me[t].loader,on=(t,e,{depth:i=2,clobber:r=!1}={})=>{const n={depth:i,clobber:r};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(o=>on(t,o,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(o=>{t.includes(o)||t.push(o)}),t):t===void 0||i<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(o=>{typeof e[o]=="object"&&(t[o]===void 0||typeof t[o]=="object")?(t[o]===void 0&&(t[o]=Array.isArray(e[o])?[]:{}),t[o]=on(t[o],e[o],{depth:i-1,clobber:r})):(r||typeof t[o]!="object"&&typeof e[o]!="object")&&(t[o]=e[o])}),t)},U=on,bm="",Tm={curveBasis:df,curveBasisClosed:pf,curveBasisOpen:gf,curveBumpX:uf,curveBumpY:ff,curveBundle:mf,curveCardinalClosed:yf,curveCardinalOpen:Cf,curveCardinal:_f,curveCatmullRomClosed:bf,curveCatmullRomOpen:Tf,curveCatmullRom:xf,curveLinear:cf,curveLinearClosed:vf,curveMonotoneX:kf,curveMonotoneY:Sf,curveNatural:wf,curveStep:Bf,curveStepAfter:Ff,curveStepBefore:Af},vm=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,km=function(t,e){const i=Ra(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const s=i.map(a=>a.args);Pi(s),r=U(r,[...s])}else r=i.args;if(!r)return;let n=sr(t,e);const o="config";return r[o]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[o],delete r[o]),r},Ra=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${vm.source})(?=[}][%]{2}).*
|
|
14
|
-
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),v.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=We.exec(t))!==null;)if(r.index===We.lastIndex&&We.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return v.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Sm=function(t){return t.replace(We,"")},wm=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Bm(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Tm[i]??e}function Am(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?vs.sanitizeUrl(i):i}const Fm=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){v.error(`Function name: ${t} not found in window`);return}o[n](...e)};function Pa(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Lm(t){let e,i=0;t.forEach(n=>{i+=Pa(n,e),e=n});const r=i/2;return Sn(t,r)}function Em(t){return t.length===1?t[0]:Lm(t)}const as=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Sn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Pa(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:as((1-s)*i.x+s*n.x,5),y:as((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},Om=(t,e,i)=>{v.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Sn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function Im(t,e,i){const r=structuredClone(i);v.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Sn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Mm(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ls=0;const Dm=()=>(ls++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ls);function Nm(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const Rm=t=>Nm(t.length),Pm=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:""}},$m=function(t,e){const i=e.text.replace(kn.lineBreakRegex," "),[,r]=Bn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},qm=ei((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),kn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=$i(`${s} `,i),h=$i(o,i);if(l>e){const{hyphenatedStrings:c,remainingWord:g}=zm(s,e,"-",i);n.push(o,...c),o=g}else h+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),zm=ei((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if($i(h,r)>=e){const d=l+1,c=n.length===d,g=`${h}${i}`;o.push(c?h:g),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Wm(t,e){return wn(t,e).height}function $i(t,e){return wn(t,e).width}const wn=ei((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Bn(i),s=["sans-serif",r],a=t.split(kn.lineBreakRegex),l=[],h=st("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const u=h.append("svg");for(const c of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const k=Pm();k.text=w||bm;const E=$m(u,k).style("font-size",o).style("font-weight",n).style("font-family",c),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Hm{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let yi;const jm=function(t){return yi=yi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),yi.innerHTML=t,unescape(yi.textContent)};function $a(t){return"str"in t}const Um=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Bn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qa(t,e){return Eg({},t,e)}const He={assignWithDepth:U,wrapLabel:qm,calculateTextHeight:Wm,calculateTextWidth:$i,calculateTextDimensions:wn,cleanAndMerge:qa,detectInit:km,detectDirective:Ra,isSubstringInArray:wm,interpolateToCurve:Bm,calcLabelPosition:Em,calcCardinalityPosition:Om,calcTerminalLabelPosition:Im,formatUrl:Am,getStylesFromArray:Mm,generateId:Dm,random:Rm,runFunc:Fm,entityDecode:jm,insertTitle:Um,parseFontSize:Bn,InitIDGenerator:Hm},Ym=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Vm=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},hs="10.9.5",_e=Object.freeze(_m);let Q=U({},_e),za,ye=[],je=U({},_e);const ar=(t,e)=>{let i=U({},t),r={};for(const n of e)ja(n),r=U(r,n);if(i=U(i,r),r.theme&&r.theme in Lt){const n=U({},za),o=U(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Lt&&(i.themeVariables=Lt[i.theme].getThemeVariables(o))}return je=i,Ua(je),je},Gm=t=>(Q=U({},_e),Q=U(Q,t),t.theme&&Lt[t.theme]&&(Q.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables)),ar(Q,ye),Q),Xm=t=>{za=U({},t)},Km=t=>(Q=U(Q,t),ar(Q,ye),Q),Wa=()=>U({},Q),Ha=t=>(Ua(t),U(je,t),Ct()),Ct=()=>U({},je),ja=t=>{t&&(["secure",...Q.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(v.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&ja(t[e])}))},Zm=t=>{Pi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ye.push(t),ar(Q,ye)},qi=(t=Q)=>{ye=[],ar(t,ye)},Jm={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},cs={},Qm=t=>{cs[t]||(v.warn(Jm[t]),cs[t]=!0)},Ua=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Qm("LAZY_LOAD_DEPRECATED")},Ya="c4",t_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),e_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./c4Diagram-c83219d4-BKhin7cY.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ya,diagram:t}},i_={id:Ya,detector:t_,loader:e_},r_=i_,Va="flowchart",n_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},o_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./flowDiagram-50d868cf-WOi0KARY.js");return{diagram:e}},__vite__mapDeps([4,5,6,7,8,9,10,11,12,2,3,13,14,15,16]));return{id:Va,diagram:t}},s_={id:Va,detector:n_,loader:o_},a_=s_,Ga="flowchart-v2",l_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},h_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./flowDiagram-v2-4f6560a1-Baslbgn4.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,9,7,10,11,12,2,3,13,14,15,16]));return{id:Ga,diagram:t}},c_={id:Ga,detector:l_,loader:h_},u_=c_,Xa="er",f_=t=>/^\s*erDiagram/.test(t),d_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./erDiagram-0228fc6a-CCR2or72.js");return{diagram:e}},__vite__mapDeps([18,6,7,2,3,13,14,15]));return{id:Xa,diagram:t}},p_={id:Xa,detector:f_,loader:d_},g_=p_,Ka="gitGraph",m_=t=>/^\s*gitGraph/.test(t),__=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./gitGraphDiagram-82fe8481-DglKfMze.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Ka,diagram:t}},y_={id:Ka,detector:m_,loader:__},C_=y_,Za="gantt",x_=t=>/^\s*gantt/.test(t),b_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./ganttDiagram-a2739b55-CFH9zF14.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Za,diagram:t}},T_={id:Za,detector:x_,loader:b_},v_=T_,Ja="info",k_=t=>/^\s*info/.test(t),S_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./infoDiagram-8eee0895-BLFL77_D.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Ja,diagram:t}},w_={id:Ja,detector:k_,loader:S_},Qa="pie",B_=t=>/^\s*pie/.test(t),A_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./pieDiagram-a8764435-DHVIUZiN.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qa,diagram:t}},F_={id:Qa,detector:B_,loader:A_},tl="quadrantChart",L_=t=>/^\s*quadrantChart/.test(t),E_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./quadrantDiagram-1e28029f-C3G9Ye8-.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:tl,diagram:t}},O_={id:tl,detector:L_,loader:E_},I_=O_,el="xychart",M_=t=>/^\s*xychart-beta/.test(t),D_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./xychartDiagram-f5964ef8-C3cbfVqN.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:el,diagram:t}},N_={id:el,detector:M_,loader:D_},R_=N_,il="requirement",P_=t=>/^\s*requirement(Diagram)?/.test(t),$_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./requirementDiagram-08caed73-C9ES1D5G.js");return{diagram:e}},__vite__mapDeps([29,6,7,2,3,13,14,15]));return{id:il,diagram:t}},q_={id:il,detector:P_,loader:$_},z_=q_,rl="sequence",W_=t=>/^\s*sequenceDiagram/.test(t),H_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./sequenceDiagram-c5b8d532-DrgEb25G.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:rl,diagram:t}},j_={id:rl,detector:W_,loader:H_},U_=j_,nl="class",Y_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},V_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./classDiagram-beda092f-BASmn22R.js");return{diagram:e}},__vite__mapDeps([31,32,6,7,2,3,13,14,15]));return{id:nl,diagram:t}},G_={id:nl,detector:Y_,loader:V_},X_=G_,ol="classDiagram",K_=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Z_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./classDiagram-v2-2358418a-BUk9rNBX.js");return{diagram:e}},__vite__mapDeps([33,32,6,9,7,10,11,12,2,3,13,14,15]));return{id:ol,diagram:t}},J_={id:ol,detector:K_,loader:Z_},Q_=J_,sl="state",t0=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},e0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./stateDiagram-1ecb1508-CF1XWARJ.js");return{diagram:e}},__vite__mapDeps([34,35,6,7,2,3,13,14,15]));return{id:sl,diagram:t}},i0={id:sl,detector:t0,loader:e0},r0=i0,al="stateDiagram",n0=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},o0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./stateDiagram-v2-c2b004d7-IO3i3yXv.js");return{diagram:e}},__vite__mapDeps([36,35,6,9,7,10,11,12,2,3,13,14,15]));return{id:al,diagram:t}},s0={id:al,detector:n0,loader:o0},a0=s0,ll="journey",l0=t=>/^\s*journey/.test(t),h0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./journeyDiagram-c64418c1-CS9XctDL.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:ll,diagram:t}},c0={id:ll,detector:l0,loader:h0},u0=c0,f0=function(t,e){for(let i of e)t.attr(i[0],i[1])},d0=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},hl=function(t,e,i,r){const n=d0(e,i,r);f0(t,n)},p0=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;v.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;v.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,v.info(`Calculated bounds: ${a}x${l}`),hl(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},ki={},g0=(t,e,i)=>{let r="";return t in ki&&ki[t]?r=ki[t](i):v.warn(`No theme found for ${t}`),` & {
|
|
14
|
+
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),v.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=We.exec(t))!==null;)if(r.index===We.lastIndex&&We.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const o=r[1]?r[1]:r[2],s=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:o,args:s})}return n.length===0?{type:t,args:null}:n.length===1?n[0]:n}catch(i){return v.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Sm=function(t){return t.replace(We,"")},wm=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function Bm(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Tm[i]??e}function Am(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?vs.sanitizeUrl(i):i}const Fm=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let o=window;for(let s=0;s<r;s++)if(o=o[i[s]],!o){v.error(`Function name: ${t} not found in window`);return}o[n](...e)};function Pa(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Lm(t){let e,i=0;t.forEach(n=>{i+=Pa(n,e),e=n});const r=i/2;return Sn(t,r)}function Em(t){return t.length===1?t[0]:Lm(t)}const as=(t,e=2)=>{const i=Math.pow(10,e);return Math.round(t*i)/i},Sn=(t,e)=>{let i,r=e;for(const n of t){if(i){const o=Pa(n,i);if(o<r)r-=o;else{const s=r/o;if(s<=0)return i;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:as((1-s)*i.x+s*n.x,5),y:as((1-s)*i.y+s*n.y,5)}}}i=n}throw new Error("Could not find a suitable point for the given distance")},Om=(t,e,i)=>{v.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());const n=Sn(e,25),o=t?10:5,s=Math.atan2(e[0].y-n.y,e[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(s)*o+(e[0].x+n.x)/2,a.y=-Math.cos(s)*o+(e[0].y+n.y)/2,a};function Im(t,e,i){const r=structuredClone(i);v.info("our points",r),e!=="start_left"&&e!=="start_right"&&r.reverse();const n=25+t,o=Sn(r,n),s=10+t*.5,a=Math.atan2(r[0].y-o.y,r[0].x-o.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(a+Math.PI)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a+Math.PI)*s+(r[0].y+o.y)/2):e==="end_right"?(l.x=Math.sin(a-Math.PI)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a-Math.PI)*s+(r[0].y+o.y)/2-5):e==="end_left"?(l.x=Math.sin(a)*s+(r[0].x+o.x)/2-5,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2-5):(l.x=Math.sin(a)*s+(r[0].x+o.x)/2,l.y=-Math.cos(a)*s+(r[0].y+o.y)/2),l}function Mm(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let ls=0;const Dm=()=>(ls++,"id-"+Math.random().toString(36).substr(2,12)+"-"+ls);function Nm(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const Rm=t=>Nm(t.length),Pm=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:""}},$m=function(t,e){const i=e.text.replace(kn.lineBreakRegex," "),[,r]=Bn(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const o=n.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(i),n},qm=ei((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),kn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let o="";return r.forEach((s,a)=>{const l=$i(`${s} `,i),h=$i(o,i);if(l>e){const{hyphenatedStrings:c,remainingWord:g}=zm(s,e,"-",i);n.push(o,...c),o=g}else h+l>=e?(n.push(o),o=s):o=[o,s].filter(Boolean).join(" ");a+1===r.length&&n.push(o)}),n.filter(s=>s!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),zm=ei((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],o=[];let s="";return n.forEach((a,l)=>{const h=`${s}${a}`;if($i(h,r)>=e){const d=l+1,c=n.length===d,g=`${h}${i}`;o.push(c?h:g),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Wm(t,e){return wn(t,e).height}function $i(t,e){return wn(t,e).width}const wn=ei((t,e)=>{const{fontSize:i=12,fontFamily:r="Arial",fontWeight:n=400}=e;if(!t)return{width:0,height:0};const[,o]=Bn(i),s=["sans-serif",r],a=t.split(kn.lineBreakRegex),l=[],h=st("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const u=h.append("svg");for(const c of s){let g=0;const y={width:0,height:0,lineHeight:0};for(const w of a){const k=Pm();k.text=w||bm;const E=$m(u,k).style("font-size",o).style("font-weight",n).style("font-family",c),B=(E._groups||E)[0][0].getBBox();if(B.width===0&&B.height===0)throw new Error("svg element not in render tree");y.width=Math.round(Math.max(y.width,B.width)),g=Math.round(B.height),y.height+=g,y.lineHeight=Math.round(Math.max(y.lineHeight,g))}l.push(y)}u.remove();const d=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[d]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`);class Hm{constructor(e=!1,i){this.count=0,this.count=i?i.length:0,this.next=e?()=>this.count++:()=>Date.now()}}let yi;const jm=function(t){return yi=yi||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),yi.innerHTML=t,unescape(yi.textContent)};function $a(t){return"str"in t}const Um=(t,e,i,r)=>{var n;if(!r)return;const o=(n=t.node())==null?void 0:n.getBBox();o&&t.append("text").text(r).attr("x",o.x+o.width/2).attr("y",-i).attr("class",e)},Bn=t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]};function qa(t,e){return Eg({},t,e)}const He={assignWithDepth:U,wrapLabel:qm,calculateTextHeight:Wm,calculateTextWidth:$i,calculateTextDimensions:wn,cleanAndMerge:qa,detectInit:km,detectDirective:Ra,isSubstringInArray:wm,interpolateToCurve:Bm,calcLabelPosition:Em,calcCardinalityPosition:Om,calcTerminalLabelPosition:Im,formatUrl:Am,getStylesFromArray:Mm,generateId:Dm,random:Rm,runFunc:Fm,entityDecode:jm,insertTitle:Um,parseFontSize:Bn,InitIDGenerator:Hm},Ym=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},Vm=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},hs="10.9.5",_e=Object.freeze(_m);let Q=U({},_e),za,ye=[],je=U({},_e);const ar=(t,e)=>{let i=U({},t),r={};for(const n of e)ja(n),r=U(r,n);if(i=U(i,r),r.theme&&r.theme in Lt){const n=U({},za),o=U(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Lt&&(i.themeVariables=Lt[i.theme].getThemeVariables(o))}return je=i,Ua(je),je},Gm=t=>(Q=U({},_e),Q=U(Q,t),t.theme&&Lt[t.theme]&&(Q.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables)),ar(Q,ye),Q),Xm=t=>{za=U({},t)},Km=t=>(Q=U(Q,t),ar(Q,ye),Q),Wa=()=>U({},Q),Ha=t=>(Ua(t),U(je,t),Ct()),Ct=()=>U({},je),ja=t=>{t&&(["secure",...Q.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(v.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&ja(t[e])}))},Zm=t=>{Pi(t),t.fontFamily&&(!t.themeVariables||!t.themeVariables.fontFamily)&&(t.themeVariables={fontFamily:t.fontFamily}),ye.push(t),ar(Q,ye)},qi=(t=Q)=>{ye=[],ar(t,ye)},Jm={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},cs={},Qm=t=>{cs[t]||(v.warn(Jm[t]),cs[t]=!0)},Ua=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Qm("LAZY_LOAD_DEPRECATED")},Ya="c4",t_=t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),e_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./c4Diagram-c83219d4-DwIxpDKd.js");return{diagram:e}},__vite__mapDeps([0,1,2,3]));return{id:Ya,diagram:t}},i_={id:Ya,detector:t_,loader:e_},r_=i_,Va="flowchart",n_=(t,e)=>{var i,r;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},o_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./flowDiagram-50d868cf-CSDi0-RD.js");return{diagram:e}},__vite__mapDeps([4,5,6,7,8,9,10,11,12,2,3,13,14,15,16]));return{id:Va,diagram:t}},s_={id:Va,detector:n_,loader:o_},a_=s_,Ga="flowchart-v2",l_=(t,e)=>{var i,r,n;return((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-d3"||((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)&&((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)},h_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./flowDiagram-v2-4f6560a1-_13Sz5Wh.js");return{diagram:e}},__vite__mapDeps([17,5,8,6,9,7,10,11,12,2,3,13,14,15,16]));return{id:Ga,diagram:t}},c_={id:Ga,detector:l_,loader:h_},u_=c_,Xa="er",f_=t=>/^\s*erDiagram/.test(t),d_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./erDiagram-0228fc6a-DNA1Fz2L.js");return{diagram:e}},__vite__mapDeps([18,6,7,2,3,13,14,15]));return{id:Xa,diagram:t}},p_={id:Xa,detector:f_,loader:d_},g_=p_,Ka="gitGraph",m_=t=>/^\s*gitGraph/.test(t),__=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./gitGraphDiagram-82fe8481-COOW7jTi.js");return{diagram:e}},__vite__mapDeps([19,2,3]));return{id:Ka,diagram:t}},y_={id:Ka,detector:m_,loader:__},C_=y_,Za="gantt",x_=t=>/^\s*gantt/.test(t),b_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./ganttDiagram-a2739b55-CTZnUP5z.js");return{diagram:e}},__vite__mapDeps([20,2,3,21,22]));return{id:Za,diagram:t}},T_={id:Za,detector:x_,loader:b_},v_=T_,Ja="info",k_=t=>/^\s*info/.test(t),S_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./infoDiagram-8eee0895-DQpZ1LVD.js");return{diagram:e}},__vite__mapDeps([23,2,3]));return{id:Ja,diagram:t}},w_={id:Ja,detector:k_,loader:S_},Qa="pie",B_=t=>/^\s*pie/.test(t),A_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./pieDiagram-a8764435-DwCkhPVc.js");return{diagram:e}},__vite__mapDeps([24,2,3,25,15,26,22,14]));return{id:Qa,diagram:t}},F_={id:Qa,detector:B_,loader:A_},tl="quadrantChart",L_=t=>/^\s*quadrantChart/.test(t),E_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./quadrantDiagram-1e28029f-c40GKTU0.js");return{diagram:e}},__vite__mapDeps([27,2,3,21,22]));return{id:tl,diagram:t}},O_={id:tl,detector:L_,loader:E_},I_=O_,el="xychart",M_=t=>/^\s*xychart-beta/.test(t),D_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./xychartDiagram-f5964ef8-BJhXS4dG.js");return{diagram:e}},__vite__mapDeps([28,12,2,3,22,26,21,13,14,15]));return{id:el,diagram:t}},N_={id:el,detector:M_,loader:D_},R_=N_,il="requirement",P_=t=>/^\s*requirement(Diagram)?/.test(t),$_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./requirementDiagram-08caed73-DnQp2Tk6.js");return{diagram:e}},__vite__mapDeps([29,6,7,2,3,13,14,15]));return{id:il,diagram:t}},q_={id:il,detector:P_,loader:$_},z_=q_,rl="sequence",W_=t=>/^\s*sequenceDiagram/.test(t),H_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./sequenceDiagram-c5b8d532-1YBwnpKu.js");return{diagram:e}},__vite__mapDeps([30,1,2,3]));return{id:rl,diagram:t}},j_={id:rl,detector:W_,loader:H_},U_=j_,nl="class",Y_=(t,e)=>{var i;return((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},V_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./classDiagram-beda092f-Cz1q8u_0.js");return{diagram:e}},__vite__mapDeps([31,32,6,7,2,3,13,14,15]));return{id:nl,diagram:t}},G_={id:nl,detector:Y_,loader:V_},X_=G_,ol="classDiagram",K_=(t,e)=>{var i;return/^\s*classDiagram/.test(t)&&((i=e==null?void 0:e.class)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},Z_=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./classDiagram-v2-2358418a-CImgTuwd.js");return{diagram:e}},__vite__mapDeps([33,32,6,9,7,10,11,12,2,3,13,14,15]));return{id:ol,diagram:t}},J_={id:ol,detector:K_,loader:Z_},Q_=J_,sl="state",t0=(t,e)=>{var i;return((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},e0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./stateDiagram-1ecb1508-BFBxQ6Fh.js");return{diagram:e}},__vite__mapDeps([34,35,6,7,2,3,13,14,15]));return{id:sl,diagram:t}},i0={id:sl,detector:t0,loader:e0},r0=i0,al="stateDiagram",n0=(t,e)=>{var i;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((i=e==null?void 0:e.state)==null?void 0:i.defaultRenderer)==="dagre-wrapper")},o0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./stateDiagram-v2-c2b004d7-Dmechvv2.js");return{diagram:e}},__vite__mapDeps([36,35,6,9,7,10,11,12,2,3,13,14,15]));return{id:al,diagram:t}},s0={id:al,detector:n0,loader:o0},a0=s0,ll="journey",l0=t=>/^\s*journey/.test(t),h0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./journeyDiagram-c64418c1-DoKguIuk.js");return{diagram:e}},__vite__mapDeps([37,1,2,3,25,15]));return{id:ll,diagram:t}},c0={id:ll,detector:l0,loader:h0},u0=c0,f0=function(t,e){for(let i of e)t.attr(i[0],i[1])},d0=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},hl=function(t,e,i,r){const n=d0(e,i,r);f0(t,n)},p0=function(t,e,i,r){const n=e.node().getBBox(),o=n.width,s=n.height;v.info(`SVG bounds: ${o}x${s}`,n);let a=0,l=0;v.info(`Graph bounds: ${a}x${l}`,t),a=o+i*2,l=s+i*2,v.info(`Calculated bounds: ${a}x${l}`),hl(e,l,a,r);const h=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",h)},ki={},g0=(t,e,i)=>{let r="";return t in ki&&ki[t]?r=ki[t](i):v.warn(`No theme found for ${t}`),` & {
|
|
15
15
|
font-family: ${i.fontFamily};
|
|
16
16
|
font-size: ${i.fontSize};
|
|
17
17
|
fill: ${i.textColor}
|
|
@@ -62,7 +62,7 @@ import{s as jl,a as Ul,c as Yl,d as Vl,_ as M}from"./index-CNo75dYr.js";function
|
|
|
62
62
|
${e}
|
|
63
63
|
`},m0=(t,e)=>{e!==void 0&&(ki[t]=e)},_0=g0;let An="",Fn="",Ln="";const En=t=>ge(t,Ct()),y0=()=>{An="",Ln="",Fn=""},C0=t=>{An=En(t).replace(/^\s+/g,"")},x0=()=>An,b0=t=>{Ln=En(t).replace(/\n\s+/g,`
|
|
64
64
|
`)},T0=()=>Ln,v0=t=>{Fn=En(t)},k0=()=>Fn,S0=Object.freeze(Object.defineProperty({__proto__:null,clear:y0,getAccDescription:T0,getAccTitle:x0,getDiagramTitle:k0,setAccDescription:b0,setAccTitle:C0,setDiagramTitle:v0},Symbol.toStringTag,{value:"Module"})),w0=v,B0=vn,On=Ct,Kx=Ha,Zx=_e,A0=t=>ge(t,On()),F0=p0,L0=()=>S0,zi={},Wi=(t,e,i)=>{var r;if(zi[t])throw new Error(`Diagram ${t} already registered.`);zi[t]=e,i&&Na(t,i),m0(t,e.styles),(r=e.injectUtils)==null||r.call(e,w0,B0,On,A0,F0,L0(),()=>{})},In=t=>{if(t in zi)return zi[t];throw new E0(t)};class E0 extends Error{constructor(e){super(`Diagram ${e} not found.`)}}const O0=t=>{var e;const{securityLevel:i}=On();let r=st("body");if(i==="sandbox"){const s=((e=st(`#i${t}`).node())==null?void 0:e.contentDocument)??document;r=st(s.body)}return r.select(`#${t}`)},I0=(t,e,i)=>{v.debug(`rendering svg for syntax error
|
|
65
|
-
`);const r=O0(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),hl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},cl={draw:I0},M0=cl,D0={db:{},renderer:cl,parser:{parser:{yy:{}},parse:()=>{}}},N0=D0,ul="flowchart-elk",R0=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},P0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-6af322e1-
|
|
65
|
+
`);const r=O0(e),n=r.append("g");r.attr("viewBox","0 0 2412 512"),hl(r,100,512,!0),n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${i}`)},cl={draw:I0},M0=cl,D0={db:{},renderer:cl,parser:{parser:{yy:{}},parse:()=>{}}},N0=D0,ul="flowchart-elk",R0=(t,e)=>{var i;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},P0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./flowchart-elk-definition-6af322e1-DrhIMas7.js");return{diagram:e}},__vite__mapDeps([38,5,11,12,2,3,13,14,15]));return{id:ul,diagram:t}},$0={id:ul,detector:R0,loader:P0},q0=$0,fl="timeline",z0=t=>/^\s*timeline/.test(t),W0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./timeline-definition-faaaa080-NCt-HHmb.js");return{diagram:e}},__vite__mapDeps([39,2,3,25,15]));return{id:fl,diagram:t}},H0={id:fl,detector:z0,loader:W0},j0=H0,dl="mindmap",U0=t=>/^\s*mindmap/.test(t),Y0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./mindmap-definition-8da855dc-BllYwDID.js");return{diagram:e}},__vite__mapDeps([40,2,3,12]));return{id:dl,diagram:t}},V0={id:dl,detector:U0,loader:Y0},G0=V0,pl="sankey",X0=t=>/^\s*sankey-beta/.test(t),K0=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./sankeyDiagram-a04cb91d-CnJrs13b.js");return{diagram:e}},__vite__mapDeps([41,2,3,26,22,42]));return{id:pl,diagram:t}},Z0={id:pl,detector:X0,loader:K0},J0=Z0,gl="block",Q0=t=>/^\s*block-beta/.test(t),ty=async()=>{const{diagram:t}=await M(async()=>{const{diagram:e}=await import("./blockDiagram-c4efeb88-CEAob3X9.js");return{diagram:e}},__vite__mapDeps([43,10,6,11,12,2,3,13,14,15,16,26,22,42]));return{id:gl,diagram:t}},ey={id:gl,detector:Q0,loader:ty},iy=ey;let us=!1;const Mn=()=>{us||(us=!0,Wi("error",N0,t=>t.toLowerCase().trim()==="error"),Wi("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),Da(r_,Q_,X_,g_,v_,w_,F_,z_,U_,q0,u_,a_,G0,j0,C_,a0,r0,u0,I_,J0,R_,iy))};class ml{constructor(e,i={}){this.text=e,this.metadata=i,this.type="graph",this.text=Ym(e),this.text+=`
|
|
66
66
|
`;const r=Ct();try{this.type=sr(e,r)}catch(o){this.type="error",this.detectError=o}const n=In(this.type);v.debug("Type "+this.type),this.db=n.db,this.renderer=n.renderer,this.parser=n.parser,this.parser.parser.yy=this.db,this.init=n.init,this.parse()}parse(){var e,i,r,n,o;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e);const s=Ct();(r=this.init)==null||r.call(this,s),this.metadata.title&&((o=(n=this.db).setDiagramTitle)==null||o.call(n,this.metadata.title)),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const ry=async(t,e={})=>{const i=sr(t,Ct());try{In(i)}catch{const n=xm(i);if(!n)throw new Ma(`Diagram ${i} not found.`);const{id:o,diagram:s}=await n();Wi(o,s)}return new ml(t,e)};let fs=[];const ny=()=>{fs.forEach(t=>{t()}),fs=[]},oy="graphics-document document";function sy(t,e){t.attr("role",oy),e!==""&&t.attr("aria-roledescription",e)}function ay(t,e,i,r){if(t.insert!==void 0){if(i){const n=`chart-desc-${r}`;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n=`chart-title-${r}`;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}}const ly=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function _l(t){return typeof t>"u"||t===null}function hy(t){return typeof t=="object"&&t!==null}function cy(t){return Array.isArray(t)?t:_l(t)?[]:[t]}function uy(t,e){var i,r,n,o;if(e)for(o=Object.keys(e),i=0,r=o.length;i<r;i+=1)n=o[i],t[n]=e[n];return t}function fy(t,e){var i="",r;for(r=0;r<e;r+=1)i+=t;return i}function dy(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var py=_l,gy=hy,my=cy,_y=fy,yy=dy,Cy=uy,G={isNothing:py,isObject:gy,toArray:my,repeat:_y,isNegativeZero:yy,extend:Cy};function yl(t,e){var i="",r=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(i+='in "'+t.mark.name+'" '),i+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(i+=`
|
|
67
67
|
|
|
68
68
|
`+t.mark.snippet),r+" "+i):r}function Ze(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=yl(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ze.prototype=Object.create(Error.prototype);Ze.prototype.constructor=Ze;Ze.prototype.toString=function(e){return this.name+": "+yl(this,e)};var Ft=Ze;function Nr(t,e,i,r,n){var o="",s="",a=Math.floor(n/2)-1;return r-e>a&&(o=" ... ",e=r-a+o.length),i-r>a&&(s=" ...",i=r+a-s.length),{str:o+t.slice(e,i).replace(/\t/g,"→")+s,pos:r-e+o.length}}function Rr(t,e){return G.repeat(" ",e-t.length)+t}function xy(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],o,s=-1;o=i.exec(t.buffer);)n.push(o.index),r.push(o.index+o[0].length),t.position<=o.index&&s<0&&(s=r.length-2);s<0&&(s=r.length-1);var a="",l,h,u=Math.min(t.line+e.linesAfter,n.length).toString().length,d=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)h=Nr(t.buffer,r[s-l],n[s-l],t.position-(r[s]-r[s-l]),d),a=G.repeat(" ",e.indent)+Rr((t.line-l+1).toString(),u)+" | "+h.str+`
|
|
@@ -84,7 +84,7 @@ import{s as jl,a as Ul,c as Yl,d as Vl,_ as M}from"./index-CNo75dYr.js";function
|
|
|
84
84
|
.${t} ${e} { ${i.join(" !important; ")} !important; }`,_x=(t,e={})=>{var i;let r="";if(t.themeCSS!==void 0&&(r+=`
|
|
85
85
|
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
|
|
86
86
|
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
|
|
87
|
-
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Dr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const h=e[l];Dr(h.styles)||a.forEach(u=>{r+=xs(h.id,u,h.styles)}),Dr(h.textStyles)||(r+=xs(h.id,"tspan",h.textStyles))}}return r},yx=(t,e,i,r)=>{const n=_x(t,i),o=_0(e,n,t.themeVariables);return jl(
|
|
87
|
+
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Dr(e)){const a=t.htmlLabels||((i=t.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const l in e){const h=e[l];Dr(h.styles)||a.forEach(u=>{r+=xs(h.id,u,h.styles)}),Dr(h.textStyles)||(r+=xs(h.id,"tspan",h.textStyles))}}return r},yx=(t,e,i,r)=>{const n=_x(t,i),o=_0(e,n,t.themeVariables);return jl(Ul(`${r}{${o}}`),Vl)},Cx=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=Vm(r),r=r.replace(/<br>/g,"<br/>"),r},xx=(t="",e)=>{var i,r;const n=(r=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&r.height?e.viewBox.baseVal.height+"px":hx,o=btoa('<body style="'+ux+'">'+t+"</body>");return`<iframe style="width:${lx};height:${n};${cx}" src="data:text/html;base64,${o}" sandbox="${fx}">
|
|
88
88
|
${dx}
|
|
89
89
|
</iframe>`},bs=(t,e,i,r,n)=>{const o=t.append("div");o.attr("id",i),r&&o.attr("style",r);const s=o.append("svg").attr("id",e).attr("width","100%").attr("xmlns",ox);return n&&s.attr("xmlns:xlink",n),s.append("g"),t};function Ts(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const bx=(t,e,i,r)=>{var n,o,s;(n=t.getElementById(e))==null||n.remove(),(o=t.getElementById(i))==null||o.remove(),(s=t.getElementById(r))==null||s.remove()},Tx=async function(t,e,i){var r,n,o,s,a,l;Mn();const h=Ll(e);e=h.code;const u=Ct();v.debug(u),e.length>((u==null?void 0:u.maxTextSize)??ex)&&(e=ix);const d="#"+t,c="i"+t,g="#"+c,y="d"+t,w="#"+y;let k=st("body");const E=u.securityLevel===rx,B=u.securityLevel===nx,it=u.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),E){const lt=Ts(st(i),c);k=st(lt.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=st(i);bs(k,t,y,`font-family: ${it}`,sx)}else{if(bx(document,t,y,c),E){const lt=Ts(st("body"),c);k=st(lt.nodes()[0].contentDocument.body),k.node().style.margin=0}else k=st("body");bs(k,t,y)}let L,nt;try{L=await Pn(e,{title:h.title})}catch(lt){L=new ml("error"),nt=lt}const Te=k.select(w).node(),ni=L.type,oi=Te.firstChild,hr=oi.firstChild,cr=(n=(r=L.renderer).getClasses)==null?void 0:n.call(r,e,L),q=yx(u,ni,cr,d),Jt=document.createElement("style");Jt.innerHTML=q,oi.insertBefore(Jt,hr);try{await L.renderer.draw(e,t,hs,L)}catch(lt){throw M0.draw(e,t,hs),lt}const ve=k.select(`${w} svg`),ke=(s=(o=L.db).getAccTitle)==null?void 0:s.call(o),ur=(l=(a=L.db).getAccDescription)==null?void 0:l.call(a);kx(ni,ve,ke,ur),k.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",ax);let Tt=k.select(w).node().innerHTML;if(v.debug("config.arrowMarkerAbsolute",u.arrowMarkerAbsolute),Tt=Cx(Tt,E,La(u.arrowMarkerAbsolute)),E){const lt=k.select(w+" svg").node();Tt=xx(Tt,lt)}else B||(Tt=pe.sanitize(Tt,{ADD_TAGS:px,ADD_ATTR:gx,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ny(),nt)throw nt;const Qt=st(E?g:w).node();return Qt&&"remove"in Qt&&Qt.remove(),{svg:Tt,bindFunctions:L.db.bindFunctions}};function vx(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),Xm(t),t!=null&&t.theme&&t.theme in Lt?t.themeVariables=Lt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Lt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?Gm(t):Wa();vn(i.logLevel),Mn()}const Pn=(t,e={})=>{const{code:i}=Fl(t);return ry(i,e)};function kx(t,e,i,r){sy(e,t),ay(e,i,r,e.attr("id"))}const Gt=Object.freeze({render:Tx,parse:mx,getDiagramFromText:Pn,initialize:vx,getConfig:Ct,setConfig:Ha,getSiteConfig:Wa,updateSiteConfig:Km,reset:()=>{qi()},globalReset:()=>{qi(_e)},defaultConfig:_e});vn(Ct().logLevel);qi(Ct());const Sx=async()=>{v.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(me).map(async([i,{detector:r,loader:n}])=>{if(n)try{In(i)}catch{try{const{diagram:s,id:a}=await n();Wi(a,s,r)}catch(s){throw v.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete me[i],s}}}))).filter(i=>i.status==="rejected");if(e.length>0){v.error(`Failed to load ${e.length} external diagrams`);for(const i of e)v.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},wx=(t,e,i)=>{v.warn(t),$a(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},El=async function(t={querySelector:".mermaid"}){try{await Bx(t)}catch(e){if($a(e)&&v.error(e.str),ut.parseError&&ut.parseError(e),!t.suppressErrors)throw v.error("Use the suppressErrors option to suppress these errors"),e}},Bx=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=Gt.getConfig();v.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");v.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(v.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),Gt.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const o=new He.InitIDGenerator(r.deterministicIds,r.deterministicIDSeed);let s;const a=[];for(const l of Array.from(n)){v.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=l.innerHTML,s=Gl(He.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=He.detectInit(s);u&&v.debug("Detected early reinit: ",u);try{const{svg:d,bindFunctions:c}=await Dl(h,s,l);l.innerHTML=d,t&&await t(h),c&&c(l)}catch(d){wx(d,a,ut.parseError)}}if(a.length>0)throw a[0]},Ol=function(t){Gt.initialize(t)},Ax=async function(t,e,i){v.warn("mermaid.init is deprecated. Please use run instead."),t&&Ol(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await El(r)},Fx=async(t,{lazyLoad:e=!0}={})=>{Da(...t),e===!1&&await Sx()},Il=function(){if(ut.startOnLoad){const{startOnLoad:t}=Gt.getConfig();t&&ut.run().catch(e=>v.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
|
|
90
90
|
* Wait for document loaded before starting the execution
|