@launchsecure/launch-kit 0.0.16 → 0.0.18
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/dist/chart-client/assets/index--120d9P9.css +1 -0
- package/dist/chart-client/assets/index-D7x8nz-H.js +441 -0
- package/dist/chart-client/index.html +2 -2
- package/dist/client/assets/index-Bf8zdL3x.css +32 -0
- package/dist/client/assets/index-Ds9UP_cj.js +291 -0
- package/dist/client/index.html +2 -2
- package/dist/council-client/assets/index-CofZh7pS.css +1 -0
- package/dist/council-client/assets/index-Dc41S-R2.js +198 -0
- package/dist/council-client/index.html +21 -0
- package/dist/deck-client/assets/_baseUniq-2gclQXo7.js +1 -0
- package/dist/deck-client/assets/arc-DcMY5Wm0.js +1 -0
- package/dist/deck-client/assets/architectureDiagram-Q4EWVU46-B8iirmmJ.js +36 -0
- package/dist/deck-client/assets/blockDiagram-DXYQGD6D-B4JBLjmJ.js +132 -0
- package/dist/deck-client/assets/c4Diagram-AHTNJAMY-CojrJAk8.js +10 -0
- package/dist/deck-client/assets/channel-ERh5jKXV.js +1 -0
- package/dist/deck-client/assets/chunk-4BX2VUAB-Bmb_BMDo.js +1 -0
- package/dist/deck-client/assets/chunk-4TB4RGXK-CumBy8qe.js +206 -0
- package/dist/deck-client/assets/chunk-55IACEB6-Ka8Hb1wD.js +1 -0
- package/dist/deck-client/assets/chunk-EDXVE4YY-B3sIPiQo.js +1 -0
- package/dist/deck-client/assets/chunk-FMBD7UC4-C1tYkaqu.js +15 -0
- package/dist/deck-client/assets/chunk-OYMX7WX6-D7Wacbky.js +231 -0
- package/dist/deck-client/assets/chunk-QZHKN3VN-ChXI0vO3.js +1 -0
- package/dist/deck-client/assets/chunk-YZCP3GAM-BXhiqf8u.js +1 -0
- package/dist/deck-client/assets/classDiagram-6PBFFD2Q-CMi1Gaev.js +1 -0
- package/dist/deck-client/assets/classDiagram-v2-HSJHXN6E-CMi1Gaev.js +1 -0
- package/dist/deck-client/assets/clone-DfWhlD4X.js +1 -0
- package/dist/deck-client/assets/cose-bilkent-S5V4N54A-Bqp3p68D.js +1 -0
- package/dist/deck-client/assets/cytoscape.esm-BQk4lpUV.js +331 -0
- package/dist/deck-client/assets/dagre-KV5264BT-BS-rtyhZ.js +4 -0
- package/dist/deck-client/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/deck-client/assets/diagram-5BDNPKRD-BIrj9YGI.js +10 -0
- package/dist/deck-client/assets/diagram-G4DWMVQ6-noHWPIg4.js +24 -0
- package/dist/deck-client/assets/diagram-MMDJMWI5-C2qHxvqV.js +43 -0
- package/dist/deck-client/assets/diagram-TYMM5635-BytnGQr-.js +24 -0
- package/dist/deck-client/assets/erDiagram-SMLLAGMA-BfK5m2YQ.js +85 -0
- package/dist/deck-client/assets/flowDiagram-DWJPFMVM-Cq925G1Z.js +162 -0
- package/dist/deck-client/assets/ganttDiagram-T4ZO3ILL-DhhHPAmj.js +292 -0
- package/dist/deck-client/assets/gitGraphDiagram-UUTBAWPF-B3Lc0h9q.js +106 -0
- package/dist/deck-client/assets/graph-RTawgVWm.js +1 -0
- package/dist/deck-client/assets/index-765AIQ9z.css +1 -0
- package/dist/deck-client/assets/index-BfIfJXmS.js +476 -0
- package/dist/deck-client/assets/infoDiagram-42DDH7IO-BlR584kX.js +2 -0
- package/dist/deck-client/assets/init-Gi6I4Gst.js +1 -0
- package/dist/deck-client/assets/ishikawaDiagram-UXIWVN3A-DygKoNGY.js +70 -0
- package/dist/deck-client/assets/journeyDiagram-VCZTEJTY-BnaiYp9N.js +139 -0
- package/dist/deck-client/assets/kanban-definition-6JOO6SKY-BQBUBzJC.js +89 -0
- package/dist/deck-client/assets/katex-DkKDou_j.js +257 -0
- package/dist/deck-client/assets/layout-DeZ8HI1T.js +1 -0
- package/dist/deck-client/assets/linear-C6roLi_9.js +1 -0
- package/dist/deck-client/assets/min-CbUksbuI.js +1 -0
- package/dist/deck-client/assets/mindmap-definition-QFDTVHPH-iNxV62yN.js +96 -0
- package/dist/deck-client/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/deck-client/assets/pieDiagram-DEJITSTG-DHVA0jaG.js +30 -0
- package/dist/deck-client/assets/quadrantDiagram-34T5L4WZ-DBeKKLUQ.js +7 -0
- package/dist/deck-client/assets/requirementDiagram-MS252O5E-CBwITx7p.js +84 -0
- package/dist/deck-client/assets/sankeyDiagram-XADWPNL6-BtE-1YTU.js +10 -0
- package/dist/deck-client/assets/sequenceDiagram-FGHM5R23-DN96yPP2.js +157 -0
- package/dist/deck-client/assets/stateDiagram-FHFEXIEX-VUkKC2uJ.js +1 -0
- package/dist/deck-client/assets/stateDiagram-v2-QKLJ7IA2-CA0IjulK.js +1 -0
- package/dist/deck-client/assets/timeline-definition-GMOUNBTQ-oUeZhRns.js +120 -0
- package/dist/deck-client/assets/vennDiagram-DHZGUBPP-D87fK90n.js +34 -0
- package/dist/deck-client/assets/wardley-RL74JXVD-DYbYcpDp.js +162 -0
- package/dist/deck-client/assets/wardleyDiagram-NUSXRM2D-Ca_i0QRA.js +20 -0
- package/dist/deck-client/assets/xychartDiagram-5P7HB3ND-CUOJVIvq.js +7 -0
- package/dist/deck-client/index.html +21 -0
- package/dist/server/chart-serve.js +258 -273
- package/dist/server/cli.js +305 -713
- package/dist/server/council-entry.js +1418 -0
- package/dist/server/council-serve.js +1039 -0
- package/dist/server/deck-mcp-entry.js +1789 -0
- package/dist/server/deck-serve.js +1275 -0
- package/dist/server/deck-server/deck-mcp-entry.js +1789 -0
- package/dist/server/deck-server/deck-serve.js +1275 -0
- package/dist/server/fb-wizard.js +0 -0
- package/dist/server/graph-mcp-entry.js +268 -701
- package/dist/server/server/chart-serve.js +4643 -0
- package/dist/server/server/cli.js +13360 -0
- package/dist/server/server/fb-wizard.js +136 -0
- package/dist/server/server/graph-mcp-entry.js +6776 -0
- package/package.json +25 -18
- package/dist/chart-client/assets/index-BpQPtTuo.js +0 -441
- package/dist/chart-client/assets/index-CbZ13AXL.css +0 -1
- package/dist/client/assets/index-3ENenBk-.js +0 -291
- package/dist/client/assets/index-BCYw64M7.css +0 -32
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-BS-rtyhZ.js","assets/graph-RTawgVWm.js","assets/_baseUniq-2gclQXo7.js","assets/layout-DeZ8HI1T.js","assets/min-CbUksbuI.js","assets/clone-DfWhlD4X.js","assets/cose-bilkent-S5V4N54A-Bqp3p68D.js","assets/cytoscape.esm-BQk4lpUV.js","assets/c4Diagram-AHTNJAMY-CojrJAk8.js","assets/chunk-YZCP3GAM-BXhiqf8u.js","assets/flowDiagram-DWJPFMVM-Cq925G1Z.js","assets/chunk-FMBD7UC4-C1tYkaqu.js","assets/chunk-55IACEB6-Ka8Hb1wD.js","assets/chunk-EDXVE4YY-B3sIPiQo.js","assets/channel-ERh5jKXV.js","assets/erDiagram-SMLLAGMA-BfK5m2YQ.js","assets/gitGraphDiagram-UUTBAWPF-B3Lc0h9q.js","assets/chunk-4BX2VUAB-Bmb_BMDo.js","assets/chunk-QZHKN3VN-ChXI0vO3.js","assets/wardley-RL74JXVD-DYbYcpDp.js","assets/ganttDiagram-T4ZO3ILL-DhhHPAmj.js","assets/linear-C6roLi_9.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-BlR584kX.js","assets/pieDiagram-DEJITSTG-DHVA0jaG.js","assets/arc-DcMY5Wm0.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-DBeKKLUQ.js","assets/xychartDiagram-5P7HB3ND-CUOJVIvq.js","assets/requirementDiagram-MS252O5E-CBwITx7p.js","assets/sequenceDiagram-FGHM5R23-DN96yPP2.js","assets/classDiagram-6PBFFD2Q-CMi1Gaev.js","assets/chunk-4TB4RGXK-CumBy8qe.js","assets/classDiagram-v2-HSJHXN6E-CMi1Gaev.js","assets/stateDiagram-FHFEXIEX-VUkKC2uJ.js","assets/chunk-OYMX7WX6-D7Wacbky.js","assets/stateDiagram-v2-QKLJ7IA2-CA0IjulK.js","assets/journeyDiagram-VCZTEJTY-BnaiYp9N.js","assets/timeline-definition-GMOUNBTQ-oUeZhRns.js","assets/mindmap-definition-QFDTVHPH-iNxV62yN.js","assets/kanban-definition-6JOO6SKY-BQBUBzJC.js","assets/sankeyDiagram-XADWPNL6-BtE-1YTU.js","assets/diagram-TYMM5635-BytnGQr-.js","assets/diagram-MMDJMWI5-C2qHxvqV.js","assets/blockDiagram-DXYQGD6D-B4JBLjmJ.js","assets/diagram-5BDNPKRD-BIrj9YGI.js","assets/architectureDiagram-Q4EWVU46-B8iirmmJ.js","assets/diagram-G4DWMVQ6-noHWPIg4.js","assets/wardleyDiagram-NUSXRM2D-Ca_i0QRA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var KT=Object.defineProperty;var JT=(e,t,r)=>t in e?KT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ot=(e,t,r)=>JT(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function r(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(n){if(n.ep)return;n.ep=!0;const s=r(n);fetch(n.href,s)}})();var t_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vx(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cz(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){return this instanceof i?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,n.get?n:{enumerable:!0,get:function(){return e[i]}})}),r}var Gx={exports:{}},xc={},Xx={exports:{}},yt={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var Na=Symbol.for("react.element"),e_=Symbol.for("react.portal"),r_=Symbol.for("react.fragment"),i_=Symbol.for("react.strict_mode"),n_=Symbol.for("react.profiler"),s_=Symbol.for("react.provider"),o_=Symbol.for("react.context"),a_=Symbol.for("react.forward_ref"),l_=Symbol.for("react.suspense"),h_=Symbol.for("react.memo"),c_=Symbol.for("react.lazy"),Pm=Symbol.iterator;function u_(e){return e===null||typeof e!="object"?null:(e=Pm&&e[Pm]||e["@@iterator"],typeof e=="function"?e:null)}var Qx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zx=Object.assign,Kx={};function Js(e,t,r){this.props=e,this.context=t,this.refs=Kx,this.updater=r||Qx}Js.prototype.isReactComponent={};Js.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Js.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jx(){}Jx.prototype=Js.prototype;function pp(e,t,r){this.props=e,this.context=t,this.refs=Kx,this.updater=r||Qx}var gp=pp.prototype=new Jx;gp.constructor=pp;Zx(gp,Js.prototype);gp.isPureReactComponent=!0;var Dm=Array.isArray,tC=Object.prototype.hasOwnProperty,mp={current:null},eC={key:!0,ref:!0,__self:!0,__source:!0};function rC(e,t,r){var i,n={},s=null,o=null;if(t!=null)for(i in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)tC.call(t,i)&&!eC.hasOwnProperty(i)&&(n[i]=t[i]);var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){for(var l=Array(a),h=0;h<a;h++)l[h]=arguments[h+2];n.children=l}if(e&&e.defaultProps)for(i in a=e.defaultProps,a)n[i]===void 0&&(n[i]=a[i]);return{$$typeof:Na,type:e,key:s,ref:o,props:n,_owner:mp.current}}function d_(e,t){return{$$typeof:Na,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function yp(e){return typeof e=="object"&&e!==null&&e.$$typeof===Na}function f_(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Rm=/\/+/g;function yu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?f_(""+e.key):t.toString(36)}function Rl(e,t,r,i,n){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Na:case e_:o=!0}}if(o)return o=e,n=n(o),e=i===""?"."+yu(o,0):i,Dm(n)?(r="",e!=null&&(r=e.replace(Rm,"$&/")+"/"),Rl(n,t,r,"",function(h){return h})):n!=null&&(yp(n)&&(n=d_(n,r+(!n.key||o&&o.key===n.key?"":(""+n.key).replace(Rm,"$&/")+"/")+e)),t.push(n)),1;if(o=0,i=i===""?".":i+":",Dm(e))for(var a=0;a<e.length;a++){s=e[a];var l=i+yu(s,a);o+=Rl(s,t,r,l,n)}else if(l=u_(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=i+yu(s,a++),o+=Rl(s,t,r,l,n);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function al(e,t,r){if(e==null)return e;var i=[],n=0;return Rl(e,i,"","",function(s){return t.call(r,s,n++)}),i}function p_(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Oe={current:null},Nl={transition:null},g_={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Nl,ReactCurrentOwner:mp};function iC(){throw Error("act(...) is not supported in production builds of React.")}yt.Children={map:al,forEach:function(e,t,r){al(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return al(e,function(){t++}),t},toArray:function(e){return al(e,function(t){return t})||[]},only:function(e){if(!yp(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};yt.Component=Js;yt.Fragment=r_;yt.Profiler=n_;yt.PureComponent=pp;yt.StrictMode=i_;yt.Suspense=l_;yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=g_;yt.act=iC;yt.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=Zx({},e.props),n=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=mp.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)tC.call(t,l)&&!eC.hasOwnProperty(l)&&(i[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){a=Array(l);for(var h=0;h<l;h++)a[h]=arguments[h+2];i.children=a}return{$$typeof:Na,type:e.type,key:n,ref:s,props:i,_owner:o}};yt.createContext=function(e){return e={$$typeof:o_,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:s_,_context:e},e.Consumer=e};yt.createElement=rC;yt.createFactory=function(e){var t=rC.bind(null,e);return t.type=e,t};yt.createRef=function(){return{current:null}};yt.forwardRef=function(e){return{$$typeof:a_,render:e}};yt.isValidElement=yp;yt.lazy=function(e){return{$$typeof:c_,_payload:{_status:-1,_result:e},_init:p_}};yt.memo=function(e,t){return{$$typeof:h_,type:e,compare:t===void 0?null:t}};yt.startTransition=function(e){var t=Nl.transition;Nl.transition={};try{e()}finally{Nl.transition=t}};yt.unstable_act=iC;yt.useCallback=function(e,t){return Oe.current.useCallback(e,t)};yt.useContext=function(e){return Oe.current.useContext(e)};yt.useDebugValue=function(){};yt.useDeferredValue=function(e){return Oe.current.useDeferredValue(e)};yt.useEffect=function(e,t){return Oe.current.useEffect(e,t)};yt.useId=function(){return Oe.current.useId()};yt.useImperativeHandle=function(e,t,r){return Oe.current.useImperativeHandle(e,t,r)};yt.useInsertionEffect=function(e,t){return Oe.current.useInsertionEffect(e,t)};yt.useLayoutEffect=function(e,t){return Oe.current.useLayoutEffect(e,t)};yt.useMemo=function(e,t){return Oe.current.useMemo(e,t)};yt.useReducer=function(e,t,r){return Oe.current.useReducer(e,t,r)};yt.useRef=function(e){return Oe.current.useRef(e)};yt.useState=function(e){return Oe.current.useState(e)};yt.useSyncExternalStore=function(e,t,r){return Oe.current.useSyncExternalStore(e,t,r)};yt.useTransition=function(){return Oe.current.useTransition()};yt.version="18.3.1";Xx.exports=yt;var bt=Xx.exports;const zl=Vx(bt);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var m_=bt,y_=Symbol.for("react.element"),x_=Symbol.for("react.fragment"),C_=Object.prototype.hasOwnProperty,k_=m_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b_={key:!0,ref:!0,__self:!0,__source:!0};function nC(e,t,r){var i,n={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(i in t)C_.call(t,i)&&!b_.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)n[i]===void 0&&(n[i]=t[i]);return{$$typeof:y_,type:e,key:s,ref:o,props:n,_owner:k_.current}}xc.Fragment=x_;xc.jsx=nC;xc.jsxs=nC;Gx.exports=xc;var U=Gx.exports,dd={},sC={exports:{}},ir={},oC={exports:{}},aC={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(B,R){var N=B.length;B.push(R);t:for(;0<N;){var V=N-1>>>1,rt=B[V];if(0<n(rt,R))B[V]=R,B[N]=rt,N=V;else break t}}function r(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var R=B[0],N=B.pop();if(N!==R){B[0]=N;t:for(var V=0,rt=B.length,st=rt>>>1;V<st;){var pt=2*(V+1)-1,nt=B[pt],Ct=pt+1,$t=B[Ct];if(0>n(nt,N))Ct<rt&&0>n($t,nt)?(B[V]=$t,B[Ct]=N,V=Ct):(B[V]=nt,B[pt]=N,V=pt);else if(Ct<rt&&0>n($t,N))B[V]=$t,B[Ct]=N,V=Ct;else break t}}return R}function n(B,R){var N=B.sortIndex-R.sortIndex;return N!==0?N:B.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],h=[],c=1,u=null,f=3,d=!1,p=!1,g=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(B){for(var R=r(h);R!==null;){if(R.callback===null)i(h);else if(R.startTime<=B)i(h),R.sortIndex=R.expirationTime,t(l,R);else break;R=r(h)}}function v(B){if(g=!1,k(B),!p)if(r(l)!==null)p=!0,F(S);else{var R=r(h);R!==null&&I(v,R.startTime-B)}}function S(B,R){p=!1,g&&(g=!1,y(T),T=-1),d=!0;var N=f;try{for(k(R),u=r(l);u!==null&&(!(u.expirationTime>R)||B&&!M());){var V=u.callback;if(typeof V=="function"){u.callback=null,f=u.priorityLevel;var rt=V(u.expirationTime<=R);R=e.unstable_now(),typeof rt=="function"?u.callback=rt:u===r(l)&&i(l),k(R)}else i(l);u=r(l)}if(u!==null)var st=!0;else{var pt=r(h);pt!==null&&I(v,pt.startTime-R),st=!1}return st}finally{u=null,f=N,d=!1}}var _=!1,w=null,T=-1,z=5,A=-1;function M(){return!(e.unstable_now()-A<z)}function Y(){if(w!==null){var B=e.unstable_now();A=B;var R=!0;try{R=w(!0,B)}finally{R?H():(_=!1,w=null)}}else _=!1}var H;if(typeof C=="function")H=function(){C(Y)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,$=D.port2;D.port1.onmessage=Y,H=function(){$.postMessage(null)}}else H=function(){x(Y,0)};function F(B){w=B,_||(_=!0,H())}function I(B,R){T=x(function(){B(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_continueExecution=function(){p||d||(p=!0,F(S))},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(B){switch(f){case 1:case 2:case 3:var R=3;break;default:R=f}var N=f;f=R;try{return B()}finally{f=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(B,R){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var N=f;f=B;try{return R()}finally{f=N}},e.unstable_scheduleCallback=function(B,R,N){var V=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?V+N:V):N=V,B){case 1:var rt=-1;break;case 2:rt=250;break;case 5:rt=1073741823;break;case 4:rt=1e4;break;default:rt=5e3}return rt=N+rt,B={id:c++,callback:R,priorityLevel:B,startTime:N,expirationTime:rt,sortIndex:-1},N>V?(B.sortIndex=N,t(h,B),r(l)===null&&B===r(h)&&(g?(y(T),T=-1):g=!0,I(v,N-V))):(B.sortIndex=rt,t(l,B),p||d||(p=!0,F(S))),B},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(B){var R=f;return function(){var N=f;f=R;try{return B.apply(this,arguments)}finally{f=N}}}})(aC);oC.exports=aC;var v_=oC.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var w_=bt,er=v_;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var lC=new Set,la={};function In(e,t){Rs(e,t),Rs(e+"Capture",t)}function Rs(e,t){for(la[e]=t,e=0;e<t.length;e++)lC.add(t[e])}var di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fd=Object.prototype.hasOwnProperty,S_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Nm={},zm={};function T_(e){return fd.call(zm,e)?!0:fd.call(Nm,e)?!1:S_.test(e)?zm[e]=!0:(Nm[e]=!0,!1)}function __(e,t,r,i){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function B_(e,t,r,i){if(t===null||typeof t>"u"||__(e,t,r,i))return!0;if(i)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ie(e,t,r,i,n,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ie(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ie(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ie(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ie(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ie(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ie(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ie(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ie(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ie(e,5,!1,e.toLowerCase(),null,!1,!1)});var xp=/[\-:]([a-z])/g;function Cp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xp,Cp);pe[t]=new Ie(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xp,Cp);pe[t]=new Ie(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xp,Cp);pe[t]=new Ie(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ie(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ie("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ie(e,1,!1,e.toLowerCase(),null,!0,!0)});function kp(e,t,r,i){var n=pe.hasOwnProperty(t)?pe[t]:null;(n!==null?n.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(B_(t,r,n,i)&&(r=null),i||n===null?T_(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,i=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,i?e.setAttributeNS(i,t,r):e.setAttribute(t,r))))}var xi=w_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ll=Symbol.for("react.element"),rs=Symbol.for("react.portal"),is=Symbol.for("react.fragment"),bp=Symbol.for("react.strict_mode"),pd=Symbol.for("react.profiler"),hC=Symbol.for("react.provider"),cC=Symbol.for("react.context"),vp=Symbol.for("react.forward_ref"),gd=Symbol.for("react.suspense"),md=Symbol.for("react.suspense_list"),wp=Symbol.for("react.memo"),Ti=Symbol.for("react.lazy"),uC=Symbol.for("react.offscreen"),qm=Symbol.iterator;function ho(e){return e===null||typeof e!="object"?null:(e=qm&&e[qm]||e["@@iterator"],typeof e=="function"?e:null)}var Wt=Object.assign,xu;function Mo(e){if(xu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);xu=t&&t[1]||""}return`
|
|
35
|
+
`+xu+e}var Cu=!1;function ku(e,t){if(!e||Cu)return"";Cu=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var i=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){i=h}e.call(t.prototype)}else{try{throw Error()}catch(h){i=h}e()}}catch(h){if(h&&i&&typeof h.stack=="string"){for(var n=h.stack.split(`
|
|
36
|
+
`),s=i.stack.split(`
|
|
37
|
+
`),o=n.length-1,a=s.length-1;1<=o&&0<=a&&n[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(n[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||n[o]!==s[a]){var l=`
|
|
38
|
+
`+n[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Cu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Mo(e):""}function L_(e){switch(e.tag){case 5:return Mo(e.type);case 16:return Mo("Lazy");case 13:return Mo("Suspense");case 19:return Mo("SuspenseList");case 0:case 2:case 15:return e=ku(e.type,!1),e;case 11:return e=ku(e.type.render,!1),e;case 1:return e=ku(e.type,!0),e;default:return""}}function yd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case is:return"Fragment";case rs:return"Portal";case pd:return"Profiler";case bp:return"StrictMode";case gd:return"Suspense";case md:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cC:return(e.displayName||"Context")+".Consumer";case hC:return(e._context.displayName||"Context")+".Provider";case vp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wp:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case Ti:t=e._payload,e=e._init;try{return yd(e(t))}catch{}}return null}function E_(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yd(t);case 8:return t===bp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ji(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function F_(e){var t=dC(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){i=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function hl(e){e._valueTracker||(e._valueTracker=F_(e))}function fC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),i="";return e&&(i=dC(e)?e.checked?"true":"false":e.value),e=i,e!==r?(t.setValue(e),!0):!1}function ch(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function xd(e,t){var r=t.checked;return Wt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Wm(e,t){var r=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;r=ji(t.value!=null?t.value:r),e._wrapperState={initialChecked:i,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pC(e,t){t=t.checked,t!=null&&kp(e,"checked",t,!1)}function Cd(e,t){pC(e,t);var r=ji(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?kd(e,t.type,r):t.hasOwnProperty("defaultValue")&&kd(e,t.type,ji(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Hm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function kd(e,t,r){(t!=="number"||ch(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var $o=Array.isArray;function gs(e,t,r,i){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&i&&(e[r].defaultSelected=!0)}else{for(r=""+ji(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,i&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function bd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(j(91));return Wt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(j(92));if($o(r)){if(1<r.length)throw Error(j(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ji(r)}}function gC(e,t){var r=ji(t.value),i=ji(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),i!=null&&(e.defaultValue=""+i)}function Um(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function mC(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function vd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?mC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cl,yC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,i,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,i,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cl=cl||document.createElement("div"),cl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ha(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Uo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},A_=["Webkit","ms","Moz","O"];Object.keys(Uo).forEach(function(e){A_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Uo[t]=Uo[e]})});function xC(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Uo.hasOwnProperty(e)&&Uo[e]?(""+t).trim():t+"px"}function CC(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=r.indexOf("--")===0,n=xC(r,t[r],i);r==="float"&&(r="cssFloat"),i?e.setProperty(r,n):e[r]=n}}var M_=Wt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wd(e,t){if(t){if(M_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function Sd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Td=null;function Sp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _d=null,ms=null,ys=null;function Ym(e){if(e=Wa(e)){if(typeof _d!="function")throw Error(j(280));var t=e.stateNode;t&&(t=wc(t),_d(e.stateNode,e.type,t))}}function kC(e){ms?ys?ys.push(e):ys=[e]:ms=e}function bC(){if(ms){var e=ms,t=ys;if(ys=ms=null,Ym(e),t)for(e=0;e<t.length;e++)Ym(t[e])}}function vC(e,t){return e(t)}function wC(){}var bu=!1;function SC(e,t,r){if(bu)return e(t,r);bu=!0;try{return vC(e,t,r)}finally{bu=!1,(ms!==null||ys!==null)&&(wC(),bC())}}function ca(e,t){var r=e.stateNode;if(r===null)return null;var i=wc(r);if(i===null)return null;r=i[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(j(231,t,typeof r));return r}var Bd=!1;if(di)try{var co={};Object.defineProperty(co,"passive",{get:function(){Bd=!0}}),window.addEventListener("test",co,co),window.removeEventListener("test",co,co)}catch{Bd=!1}function $_(e,t,r,i,n,s,o,a,l){var h=Array.prototype.slice.call(arguments,3);try{t.apply(r,h)}catch(c){this.onError(c)}}var Yo=!1,uh=null,dh=!1,Ld=null,O_={onError:function(e){Yo=!0,uh=e}};function I_(e,t,r,i,n,s,o,a,l){Yo=!1,uh=null,$_.apply(O_,arguments)}function P_(e,t,r,i,n,s,o,a,l){if(I_.apply(this,arguments),Yo){if(Yo){var h=uh;Yo=!1,uh=null}else throw Error(j(198));dh||(dh=!0,Ld=h)}}function Pn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function TC(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Vm(e){if(Pn(e)!==e)throw Error(j(188))}function D_(e){var t=e.alternate;if(!t){if(t=Pn(e),t===null)throw Error(j(188));return t!==e?null:e}for(var r=e,i=t;;){var n=r.return;if(n===null)break;var s=n.alternate;if(s===null){if(i=n.return,i!==null){r=i;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===r)return Vm(n),e;if(s===i)return Vm(n),t;s=s.sibling}throw Error(j(188))}if(r.return!==i.return)r=n,i=s;else{for(var o=!1,a=n.child;a;){if(a===r){o=!0,r=n,i=s;break}if(a===i){o=!0,i=n,r=s;break}a=a.sibling}if(!o){for(a=s.child;a;){if(a===r){o=!0,r=s,i=n;break}if(a===i){o=!0,i=s,r=n;break}a=a.sibling}if(!o)throw Error(j(189))}}if(r.alternate!==i)throw Error(j(190))}if(r.tag!==3)throw Error(j(188));return r.stateNode.current===r?e:t}function _C(e){return e=D_(e),e!==null?BC(e):null}function BC(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=BC(e);if(t!==null)return t;e=e.sibling}return null}var LC=er.unstable_scheduleCallback,Gm=er.unstable_cancelCallback,R_=er.unstable_shouldYield,N_=er.unstable_requestPaint,Yt=er.unstable_now,z_=er.unstable_getCurrentPriorityLevel,Tp=er.unstable_ImmediatePriority,EC=er.unstable_UserBlockingPriority,fh=er.unstable_NormalPriority,q_=er.unstable_LowPriority,FC=er.unstable_IdlePriority,Cc=null,Hr=null;function W_(e){if(Hr&&typeof Hr.onCommitFiberRoot=="function")try{Hr.onCommitFiberRoot(Cc,e,void 0,(e.current.flags&128)===128)}catch{}}var Tr=Math.clz32?Math.clz32:U_,H_=Math.log,j_=Math.LN2;function U_(e){return e>>>=0,e===0?32:31-(H_(e)/j_|0)|0}var ul=64,dl=4194304;function Oo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ph(e,t){var r=e.pendingLanes;if(r===0)return 0;var i=0,n=e.suspendedLanes,s=e.pingedLanes,o=r&268435455;if(o!==0){var a=o&~n;a!==0?i=Oo(a):(s&=o,s!==0&&(i=Oo(s)))}else o=r&~n,o!==0?i=Oo(o):s!==0&&(i=Oo(s));if(i===0)return 0;if(t!==0&&t!==i&&!(t&n)&&(n=i&-i,s=t&-t,n>=s||n===16&&(s&4194240)!==0))return t;if(i&4&&(i|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)r=31-Tr(t),n=1<<r,i|=e[r],t&=~n;return i}function Y_(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function V_(e,t){for(var r=e.suspendedLanes,i=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-Tr(s),a=1<<o,l=n[o];l===-1?(!(a&r)||a&i)&&(n[o]=Y_(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}}function Ed(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function AC(){var e=ul;return ul<<=1,!(ul&4194240)&&(ul=64),e}function vu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function za(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tr(t),e[t]=r}function G_(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-Tr(r),s=1<<n;t[n]=0,i[n]=-1,e[n]=-1,r&=~s}}function _p(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var i=31-Tr(r),n=1<<i;n&t|e[i]&t&&(e[i]|=t),r&=~n}}var Lt=0;function MC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var $C,Bp,OC,IC,PC,Fd=!1,fl=[],Oi=null,Ii=null,Pi=null,ua=new Map,da=new Map,Li=[],X_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Xm(e,t){switch(e){case"focusin":case"focusout":Oi=null;break;case"dragenter":case"dragleave":Ii=null;break;case"mouseover":case"mouseout":Pi=null;break;case"pointerover":case"pointerout":ua.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":da.delete(t.pointerId)}}function uo(e,t,r,i,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:r,eventSystemFlags:i,nativeEvent:s,targetContainers:[n]},t!==null&&(t=Wa(t),t!==null&&Bp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Q_(e,t,r,i,n){switch(t){case"focusin":return Oi=uo(Oi,e,t,r,i,n),!0;case"dragenter":return Ii=uo(Ii,e,t,r,i,n),!0;case"mouseover":return Pi=uo(Pi,e,t,r,i,n),!0;case"pointerover":var s=n.pointerId;return ua.set(s,uo(ua.get(s)||null,e,t,r,i,n)),!0;case"gotpointercapture":return s=n.pointerId,da.set(s,uo(da.get(s)||null,e,t,r,i,n)),!0}return!1}function DC(e){var t=cn(e.target);if(t!==null){var r=Pn(t);if(r!==null){if(t=r.tag,t===13){if(t=TC(r),t!==null){e.blockedOn=t,PC(e.priority,function(){OC(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ql(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Ad(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);Td=i,r.target.dispatchEvent(i),Td=null}else return t=Wa(r),t!==null&&Bp(t),e.blockedOn=r,!1;t.shift()}return!0}function Qm(e,t,r){ql(e)&&r.delete(t)}function Z_(){Fd=!1,Oi!==null&&ql(Oi)&&(Oi=null),Ii!==null&&ql(Ii)&&(Ii=null),Pi!==null&&ql(Pi)&&(Pi=null),ua.forEach(Qm),da.forEach(Qm)}function fo(e,t){e.blockedOn===t&&(e.blockedOn=null,Fd||(Fd=!0,er.unstable_scheduleCallback(er.unstable_NormalPriority,Z_)))}function fa(e){function t(n){return fo(n,e)}if(0<fl.length){fo(fl[0],e);for(var r=1;r<fl.length;r++){var i=fl[r];i.blockedOn===e&&(i.blockedOn=null)}}for(Oi!==null&&fo(Oi,e),Ii!==null&&fo(Ii,e),Pi!==null&&fo(Pi,e),ua.forEach(t),da.forEach(t),r=0;r<Li.length;r++)i=Li[r],i.blockedOn===e&&(i.blockedOn=null);for(;0<Li.length&&(r=Li[0],r.blockedOn===null);)DC(r),r.blockedOn===null&&Li.shift()}var xs=xi.ReactCurrentBatchConfig,gh=!0;function K_(e,t,r,i){var n=Lt,s=xs.transition;xs.transition=null;try{Lt=1,Lp(e,t,r,i)}finally{Lt=n,xs.transition=s}}function J_(e,t,r,i){var n=Lt,s=xs.transition;xs.transition=null;try{Lt=4,Lp(e,t,r,i)}finally{Lt=n,xs.transition=s}}function Lp(e,t,r,i){if(gh){var n=Ad(e,t,r,i);if(n===null)Mu(e,t,i,mh,r),Xm(e,i);else if(Q_(n,e,t,r,i))i.stopPropagation();else if(Xm(e,i),t&4&&-1<X_.indexOf(e)){for(;n!==null;){var s=Wa(n);if(s!==null&&$C(s),s=Ad(e,t,r,i),s===null&&Mu(e,t,i,mh,r),s===n)break;n=s}n!==null&&i.stopPropagation()}else Mu(e,t,i,null,r)}}var mh=null;function Ad(e,t,r,i){if(mh=null,e=Sp(i),e=cn(e),e!==null)if(t=Pn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=TC(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return mh=e,null}function RC(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(z_()){case Tp:return 1;case EC:return 4;case fh:case q_:return 16;case FC:return 536870912;default:return 16}default:return 16}}var Fi=null,Ep=null,Wl=null;function NC(){if(Wl)return Wl;var e,t=Ep,r=t.length,i,n="value"in Fi?Fi.value:Fi.textContent,s=n.length;for(e=0;e<r&&t[e]===n[e];e++);var o=r-e;for(i=1;i<=o&&t[r-i]===n[s-i];i++);return Wl=n.slice(e,1<i?1-i:void 0)}function Hl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pl(){return!0}function Zm(){return!1}function nr(e){function t(r,i,n,s,o){this._reactName=r,this._targetInst=n,this.type=i,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(r=e[a],this[a]=r?r(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?pl:Zm,this.isPropagationStopped=Zm,this}return Wt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=pl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),t}var to={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fp=nr(to),qa=Wt({},to,{view:0,detail:0}),tB=nr(qa),wu,Su,po,kc=Wt({},qa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ap,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==po&&(po&&e.type==="mousemove"?(wu=e.screenX-po.screenX,Su=e.screenY-po.screenY):Su=wu=0,po=e),wu)},movementY:function(e){return"movementY"in e?e.movementY:Su}}),Km=nr(kc),eB=Wt({},kc,{dataTransfer:0}),rB=nr(eB),iB=Wt({},qa,{relatedTarget:0}),Tu=nr(iB),nB=Wt({},to,{animationName:0,elapsedTime:0,pseudoElement:0}),sB=nr(nB),oB=Wt({},to,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),aB=nr(oB),lB=Wt({},to,{data:0}),Jm=nr(lB),hB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cB={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},uB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dB(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=uB[e])?!!t[e]:!1}function Ap(){return dB}var fB=Wt({},qa,{key:function(e){if(e.key){var t=hB[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?cB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ap,charCode:function(e){return e.type==="keypress"?Hl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pB=nr(fB),gB=Wt({},kc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ty=nr(gB),mB=Wt({},qa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ap}),yB=nr(mB),xB=Wt({},to,{propertyName:0,elapsedTime:0,pseudoElement:0}),CB=nr(xB),kB=Wt({},kc,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bB=nr(kB),vB=[9,13,27,32],Mp=di&&"CompositionEvent"in window,Vo=null;di&&"documentMode"in document&&(Vo=document.documentMode);var wB=di&&"TextEvent"in window&&!Vo,zC=di&&(!Mp||Vo&&8<Vo&&11>=Vo),ey=" ",ry=!1;function qC(e,t){switch(e){case"keyup":return vB.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ns=!1;function SB(e,t){switch(e){case"compositionend":return WC(t);case"keypress":return t.which!==32?null:(ry=!0,ey);case"textInput":return e=t.data,e===ey&&ry?null:e;default:return null}}function TB(e,t){if(ns)return e==="compositionend"||!Mp&&qC(e,t)?(e=NC(),Wl=Ep=Fi=null,ns=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zC&&t.locale!=="ko"?null:t.data;default:return null}}var _B={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function iy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_B[e.type]:t==="textarea"}function HC(e,t,r,i){kC(i),t=yh(t,"onChange"),0<t.length&&(r=new Fp("onChange","change",null,r,i),e.push({event:r,listeners:t}))}var Go=null,pa=null;function BB(e){t1(e,0)}function bc(e){var t=as(e);if(fC(t))return e}function LB(e,t){if(e==="change")return t}var jC=!1;if(di){var _u;if(di){var Bu="oninput"in document;if(!Bu){var ny=document.createElement("div");ny.setAttribute("oninput","return;"),Bu=typeof ny.oninput=="function"}_u=Bu}else _u=!1;jC=_u&&(!document.documentMode||9<document.documentMode)}function sy(){Go&&(Go.detachEvent("onpropertychange",UC),pa=Go=null)}function UC(e){if(e.propertyName==="value"&&bc(pa)){var t=[];HC(t,pa,e,Sp(e)),SC(BB,t)}}function EB(e,t,r){e==="focusin"?(sy(),Go=t,pa=r,Go.attachEvent("onpropertychange",UC)):e==="focusout"&&sy()}function FB(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bc(pa)}function AB(e,t){if(e==="click")return bc(t)}function MB(e,t){if(e==="input"||e==="change")return bc(t)}function $B(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Er=typeof Object.is=="function"?Object.is:$B;function ga(e,t){if(Er(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var n=r[i];if(!fd.call(t,n)||!Er(e[n],t[n]))return!1}return!0}function oy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ay(e,t){var r=oy(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=t&&i>=t)return{node:r,offset:t-e};e=i}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=oy(r)}}function YC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?YC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function VC(){for(var e=window,t=ch();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=ch(e.document)}return t}function $p(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function OB(e){var t=VC(),r=e.focusedElem,i=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&YC(r.ownerDocument.documentElement,r)){if(i!==null&&$p(r)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,s=Math.min(i.start,n);i=i.end===void 0?s:Math.min(i.end,n),!e.extend&&s>i&&(n=i,i=s,s=n),n=ay(r,s);var o=ay(r,i);n&&o&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),s>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var IB=di&&"documentMode"in document&&11>=document.documentMode,ss=null,Md=null,Xo=null,$d=!1;function ly(e,t,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$d||ss==null||ss!==ch(i)||(i=ss,"selectionStart"in i&&$p(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Xo&&ga(Xo,i)||(Xo=i,i=yh(Md,"onSelect"),0<i.length&&(t=new Fp("onSelect","select",null,t,r),e.push({event:t,listeners:i}),t.target=ss)))}function gl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var os={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionend:gl("Transition","TransitionEnd")},Lu={},GC={};di&&(GC=document.createElement("div").style,"AnimationEvent"in window||(delete os.animationend.animation,delete os.animationiteration.animation,delete os.animationstart.animation),"TransitionEvent"in window||delete os.transitionend.transition);function vc(e){if(Lu[e])return Lu[e];if(!os[e])return e;var t=os[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in GC)return Lu[e]=t[r];return e}var XC=vc("animationend"),QC=vc("animationiteration"),ZC=vc("animationstart"),KC=vc("transitionend"),JC=new Map,hy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Qi(e,t){JC.set(e,t),In(t,[e])}for(var Eu=0;Eu<hy.length;Eu++){var Fu=hy[Eu],PB=Fu.toLowerCase(),DB=Fu[0].toUpperCase()+Fu.slice(1);Qi(PB,"on"+DB)}Qi(XC,"onAnimationEnd");Qi(QC,"onAnimationIteration");Qi(ZC,"onAnimationStart");Qi("dblclick","onDoubleClick");Qi("focusin","onFocus");Qi("focusout","onBlur");Qi(KC,"onTransitionEnd");Rs("onMouseEnter",["mouseout","mouseover"]);Rs("onMouseLeave",["mouseout","mouseover"]);Rs("onPointerEnter",["pointerout","pointerover"]);Rs("onPointerLeave",["pointerout","pointerover"]);In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));In("onBeforeInput",["compositionend","keypress","textInput","paste"]);In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RB=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function cy(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,P_(i,t,void 0,e),e.currentTarget=null}function t1(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],n=i.event;i=i.listeners;t:{var s=void 0;if(t)for(var o=i.length-1;0<=o;o--){var a=i[o],l=a.instance,h=a.currentTarget;if(a=a.listener,l!==s&&n.isPropagationStopped())break t;cy(n,a,h),s=l}else for(o=0;o<i.length;o++){if(a=i[o],l=a.instance,h=a.currentTarget,a=a.listener,l!==s&&n.isPropagationStopped())break t;cy(n,a,h),s=l}}}if(dh)throw e=Ld,dh=!1,Ld=null,e}function Ot(e,t){var r=t[Rd];r===void 0&&(r=t[Rd]=new Set);var i=e+"__bubble";r.has(i)||(e1(t,e,2,!1),r.add(i))}function Au(e,t,r){var i=0;t&&(i|=4),e1(r,e,i,t)}var ml="_reactListening"+Math.random().toString(36).slice(2);function ma(e){if(!e[ml]){e[ml]=!0,lC.forEach(function(r){r!=="selectionchange"&&(RB.has(r)||Au(r,!1,e),Au(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ml]||(t[ml]=!0,Au("selectionchange",!1,t))}}function e1(e,t,r,i){switch(RC(t)){case 1:var n=K_;break;case 4:n=J_;break;default:n=Lp}r=n.bind(null,t,r,e),n=void 0,!Bd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),i?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Mu(e,t,r,i,n){var s=i;if(!(t&1)&&!(t&2)&&i!==null)t:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var a=i.stateNode.containerInfo;if(a===n||a.nodeType===8&&a.parentNode===n)break;if(o===4)for(o=i.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;o=o.return}for(;a!==null;){if(o=cn(a),o===null)return;if(l=o.tag,l===5||l===6){i=s=o;continue t}a=a.parentNode}}i=i.return}SC(function(){var h=s,c=Sp(r),u=[];t:{var f=JC.get(e);if(f!==void 0){var d=Fp,p=e;switch(e){case"keypress":if(Hl(r)===0)break t;case"keydown":case"keyup":d=pB;break;case"focusin":p="focus",d=Tu;break;case"focusout":p="blur",d=Tu;break;case"beforeblur":case"afterblur":d=Tu;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=Km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=rB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=yB;break;case XC:case QC:case ZC:d=sB;break;case KC:d=CB;break;case"scroll":d=tB;break;case"wheel":d=bB;break;case"copy":case"cut":case"paste":d=aB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=ty}var g=(t&4)!==0,x=!g&&e==="scroll",y=g?f!==null?f+"Capture":null:f;g=[];for(var C=h,k;C!==null;){k=C;var v=k.stateNode;if(k.tag===5&&v!==null&&(k=v,y!==null&&(v=ca(C,y),v!=null&&g.push(ya(C,v,k)))),x)break;C=C.return}0<g.length&&(f=new d(f,p,null,r,c),u.push({event:f,listeners:g}))}}if(!(t&7)){t:{if(f=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",f&&r!==Td&&(p=r.relatedTarget||r.fromElement)&&(cn(p)||p[fi]))break t;if((d||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,d?(p=r.relatedTarget||r.toElement,d=h,p=p?cn(p):null,p!==null&&(x=Pn(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(d=null,p=h),d!==p)){if(g=Km,v="onMouseLeave",y="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(g=ty,v="onPointerLeave",y="onPointerEnter",C="pointer"),x=d==null?f:as(d),k=p==null?f:as(p),f=new g(v,C+"leave",d,r,c),f.target=x,f.relatedTarget=k,v=null,cn(c)===h&&(g=new g(y,C+"enter",p,r,c),g.target=k,g.relatedTarget=x,v=g),x=v,d&&p)e:{for(g=d,y=p,C=0,k=g;k;k=Yn(k))C++;for(k=0,v=y;v;v=Yn(v))k++;for(;0<C-k;)g=Yn(g),C--;for(;0<k-C;)y=Yn(y),k--;for(;C--;){if(g===y||y!==null&&g===y.alternate)break e;g=Yn(g),y=Yn(y)}g=null}else g=null;d!==null&&uy(u,f,d,g,!1),p!==null&&x!==null&&uy(u,x,p,g,!0)}}t:{if(f=h?as(h):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var S=LB;else if(iy(f))if(jC)S=MB;else{S=FB;var _=EB}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=AB);if(S&&(S=S(e,h))){HC(u,S,r,c);break t}_&&_(e,f,h),e==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&kd(f,"number",f.value)}switch(_=h?as(h):window,e){case"focusin":(iy(_)||_.contentEditable==="true")&&(ss=_,Md=h,Xo=null);break;case"focusout":Xo=Md=ss=null;break;case"mousedown":$d=!0;break;case"contextmenu":case"mouseup":case"dragend":$d=!1,ly(u,r,c);break;case"selectionchange":if(IB)break;case"keydown":case"keyup":ly(u,r,c)}var w;if(Mp)t:{switch(e){case"compositionstart":var T="onCompositionStart";break t;case"compositionend":T="onCompositionEnd";break t;case"compositionupdate":T="onCompositionUpdate";break t}T=void 0}else ns?qC(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(zC&&r.locale!=="ko"&&(ns||T!=="onCompositionStart"?T==="onCompositionEnd"&&ns&&(w=NC()):(Fi=c,Ep="value"in Fi?Fi.value:Fi.textContent,ns=!0)),_=yh(h,T),0<_.length&&(T=new Jm(T,e,null,r,c),u.push({event:T,listeners:_}),w?T.data=w:(w=WC(r),w!==null&&(T.data=w)))),(w=wB?SB(e,r):TB(e,r))&&(h=yh(h,"onBeforeInput"),0<h.length&&(c=new Jm("onBeforeInput","beforeinput",null,r,c),u.push({event:c,listeners:h}),c.data=w))}t1(u,t)})}function ya(e,t,r){return{instance:e,listener:t,currentTarget:r}}function yh(e,t){for(var r=t+"Capture",i=[];e!==null;){var n=e,s=n.stateNode;n.tag===5&&s!==null&&(n=s,s=ca(e,r),s!=null&&i.unshift(ya(e,s,n)),s=ca(e,t),s!=null&&i.push(ya(e,s,n))),e=e.return}return i}function Yn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uy(e,t,r,i,n){for(var s=t._reactName,o=[];r!==null&&r!==i;){var a=r,l=a.alternate,h=a.stateNode;if(l!==null&&l===i)break;a.tag===5&&h!==null&&(a=h,n?(l=ca(r,s),l!=null&&o.unshift(ya(r,l,a))):n||(l=ca(r,s),l!=null&&o.push(ya(r,l,a)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var NB=/\r\n?/g,zB=/\u0000|\uFFFD/g;function dy(e){return(typeof e=="string"?e:""+e).replace(NB,`
|
|
39
|
+
`).replace(zB,"")}function yl(e,t,r){if(t=dy(t),dy(e)!==t&&r)throw Error(j(425))}function xh(){}var Od=null,Id=null;function Pd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dd=typeof setTimeout=="function"?setTimeout:void 0,qB=typeof clearTimeout=="function"?clearTimeout:void 0,fy=typeof Promise=="function"?Promise:void 0,WB=typeof queueMicrotask=="function"?queueMicrotask:typeof fy<"u"?function(e){return fy.resolve(null).then(e).catch(HB)}:Dd;function HB(e){setTimeout(function(){throw e})}function $u(e,t){var r=t,i=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(i===0){e.removeChild(n),fa(t);return}i--}else r!=="$"&&r!=="$?"&&r!=="$!"||i++;r=n}while(r);fa(t)}function Di(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function py(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var eo=Math.random().toString(36).slice(2),Wr="__reactFiber$"+eo,xa="__reactProps$"+eo,fi="__reactContainer$"+eo,Rd="__reactEvents$"+eo,jB="__reactListeners$"+eo,UB="__reactHandles$"+eo;function cn(e){var t=e[Wr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[fi]||r[Wr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=py(e);e!==null;){if(r=e[Wr])return r;e=py(e)}return t}e=r,r=e.parentNode}return null}function Wa(e){return e=e[Wr]||e[fi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function as(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(j(33))}function wc(e){return e[xa]||null}var Nd=[],ls=-1;function Zi(e){return{current:e}}function Pt(e){0>ls||(e.current=Nd[ls],Nd[ls]=null,ls--)}function Mt(e,t){ls++,Nd[ls]=e.current,e.current=t}var Ui={},Se=Zi(Ui),je=Zi(!1),bn=Ui;function Ns(e,t){var r=e.type.contextTypes;if(!r)return Ui;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var n={},s;for(s in r)n[s]=t[s];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Ue(e){return e=e.childContextTypes,e!=null}function Ch(){Pt(je),Pt(Se)}function gy(e,t,r){if(Se.current!==Ui)throw Error(j(168));Mt(Se,t),Mt(je,r)}function r1(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return r;i=i.getChildContext();for(var n in i)if(!(n in t))throw Error(j(108,E_(e)||"Unknown",n));return Wt({},r,i)}function kh(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ui,bn=Se.current,Mt(Se,e),Mt(je,je.current),!0}function my(e,t,r){var i=e.stateNode;if(!i)throw Error(j(169));r?(e=r1(e,t,bn),i.__reactInternalMemoizedMergedChildContext=e,Pt(je),Pt(Se),Mt(Se,e)):Pt(je),Mt(je,r)}var ni=null,Sc=!1,Ou=!1;function i1(e){ni===null?ni=[e]:ni.push(e)}function YB(e){Sc=!0,i1(e)}function Ki(){if(!Ou&&ni!==null){Ou=!0;var e=0,t=Lt;try{var r=ni;for(Lt=1;e<r.length;e++){var i=r[e];do i=i(!0);while(i!==null)}ni=null,Sc=!1}catch(n){throw ni!==null&&(ni=ni.slice(e+1)),LC(Tp,Ki),n}finally{Lt=t,Ou=!1}}return null}var hs=[],cs=0,bh=null,vh=0,ar=[],lr=0,vn=null,si=1,oi="";function sn(e,t){hs[cs++]=vh,hs[cs++]=bh,bh=e,vh=t}function n1(e,t,r){ar[lr++]=si,ar[lr++]=oi,ar[lr++]=vn,vn=e;var i=si;e=oi;var n=32-Tr(i)-1;i&=~(1<<n),r+=1;var s=32-Tr(t)+n;if(30<s){var o=n-n%5;s=(i&(1<<o)-1).toString(32),i>>=o,n-=o,si=1<<32-Tr(t)+n|r<<n|i,oi=s+e}else si=1<<s|r<<n|i,oi=e}function Op(e){e.return!==null&&(sn(e,1),n1(e,1,0))}function Ip(e){for(;e===bh;)bh=hs[--cs],hs[cs]=null,vh=hs[--cs],hs[cs]=null;for(;e===vn;)vn=ar[--lr],ar[lr]=null,oi=ar[--lr],ar[lr]=null,si=ar[--lr],ar[lr]=null}var Je=null,Ke=null,Rt=!1,kr=null;function s1(e,t){var r=hr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function yy(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Je=e,Ke=Di(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Je=e,Ke=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=vn!==null?{id:si,overflow:oi}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=hr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Je=e,Ke=null,!0):!1;default:return!1}}function zd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qd(e){if(Rt){var t=Ke;if(t){var r=t;if(!yy(e,t)){if(zd(e))throw Error(j(418));t=Di(r.nextSibling);var i=Je;t&&yy(e,t)?s1(i,r):(e.flags=e.flags&-4097|2,Rt=!1,Je=e)}}else{if(zd(e))throw Error(j(418));e.flags=e.flags&-4097|2,Rt=!1,Je=e}}}function xy(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Je=e}function xl(e){if(e!==Je)return!1;if(!Rt)return xy(e),Rt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pd(e.type,e.memoizedProps)),t&&(t=Ke)){if(zd(e))throw o1(),Error(j(418));for(;t;)s1(e,t),t=Di(t.nextSibling)}if(xy(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(j(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ke=Di(e.nextSibling);break t}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ke=null}}else Ke=Je?Di(e.stateNode.nextSibling):null;return!0}function o1(){for(var e=Ke;e;)e=Di(e.nextSibling)}function zs(){Ke=Je=null,Rt=!1}function Pp(e){kr===null?kr=[e]:kr.push(e)}var VB=xi.ReactCurrentBatchConfig;function go(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(j(309));var i=r.stateNode}if(!i)throw Error(j(147,e));var n=i,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var a=n.refs;o===null?delete a[s]:a[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(j(284));if(!r._owner)throw Error(j(290,e))}return e}function Cl(e,t){throw e=Object.prototype.toString.call(t),Error(j(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Cy(e){var t=e._init;return t(e._payload)}function a1(e){function t(y,C){if(e){var k=y.deletions;k===null?(y.deletions=[C],y.flags|=16):k.push(C)}}function r(y,C){if(!e)return null;for(;C!==null;)t(y,C),C=C.sibling;return null}function i(y,C){for(y=new Map;C!==null;)C.key!==null?y.set(C.key,C):y.set(C.index,C),C=C.sibling;return y}function n(y,C){return y=qi(y,C),y.index=0,y.sibling=null,y}function s(y,C,k){return y.index=k,e?(k=y.alternate,k!==null?(k=k.index,k<C?(y.flags|=2,C):k):(y.flags|=2,C)):(y.flags|=1048576,C)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function a(y,C,k,v){return C===null||C.tag!==6?(C=qu(k,y.mode,v),C.return=y,C):(C=n(C,k),C.return=y,C)}function l(y,C,k,v){var S=k.type;return S===is?c(y,C,k.props.children,v,k.key):C!==null&&(C.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ti&&Cy(S)===C.type)?(v=n(C,k.props),v.ref=go(y,C,k),v.return=y,v):(v=Ql(k.type,k.key,k.props,null,y.mode,v),v.ref=go(y,C,k),v.return=y,v)}function h(y,C,k,v){return C===null||C.tag!==4||C.stateNode.containerInfo!==k.containerInfo||C.stateNode.implementation!==k.implementation?(C=Wu(k,y.mode,v),C.return=y,C):(C=n(C,k.children||[]),C.return=y,C)}function c(y,C,k,v,S){return C===null||C.tag!==7?(C=xn(k,y.mode,v,S),C.return=y,C):(C=n(C,k),C.return=y,C)}function u(y,C,k){if(typeof C=="string"&&C!==""||typeof C=="number")return C=qu(""+C,y.mode,k),C.return=y,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ll:return k=Ql(C.type,C.key,C.props,null,y.mode,k),k.ref=go(y,null,C),k.return=y,k;case rs:return C=Wu(C,y.mode,k),C.return=y,C;case Ti:var v=C._init;return u(y,v(C._payload),k)}if($o(C)||ho(C))return C=xn(C,y.mode,k,null),C.return=y,C;Cl(y,C)}return null}function f(y,C,k,v){var S=C!==null?C.key:null;if(typeof k=="string"&&k!==""||typeof k=="number")return S!==null?null:a(y,C,""+k,v);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case ll:return k.key===S?l(y,C,k,v):null;case rs:return k.key===S?h(y,C,k,v):null;case Ti:return S=k._init,f(y,C,S(k._payload),v)}if($o(k)||ho(k))return S!==null?null:c(y,C,k,v,null);Cl(y,k)}return null}function d(y,C,k,v,S){if(typeof v=="string"&&v!==""||typeof v=="number")return y=y.get(k)||null,a(C,y,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ll:return y=y.get(v.key===null?k:v.key)||null,l(C,y,v,S);case rs:return y=y.get(v.key===null?k:v.key)||null,h(C,y,v,S);case Ti:var _=v._init;return d(y,C,k,_(v._payload),S)}if($o(v)||ho(v))return y=y.get(k)||null,c(C,y,v,S,null);Cl(C,v)}return null}function p(y,C,k,v){for(var S=null,_=null,w=C,T=C=0,z=null;w!==null&&T<k.length;T++){w.index>T?(z=w,w=null):z=w.sibling;var A=f(y,w,k[T],v);if(A===null){w===null&&(w=z);break}e&&w&&A.alternate===null&&t(y,w),C=s(A,C,T),_===null?S=A:_.sibling=A,_=A,w=z}if(T===k.length)return r(y,w),Rt&&sn(y,T),S;if(w===null){for(;T<k.length;T++)w=u(y,k[T],v),w!==null&&(C=s(w,C,T),_===null?S=w:_.sibling=w,_=w);return Rt&&sn(y,T),S}for(w=i(y,w);T<k.length;T++)z=d(w,y,T,k[T],v),z!==null&&(e&&z.alternate!==null&&w.delete(z.key===null?T:z.key),C=s(z,C,T),_===null?S=z:_.sibling=z,_=z);return e&&w.forEach(function(M){return t(y,M)}),Rt&&sn(y,T),S}function g(y,C,k,v){var S=ho(k);if(typeof S!="function")throw Error(j(150));if(k=S.call(k),k==null)throw Error(j(151));for(var _=S=null,w=C,T=C=0,z=null,A=k.next();w!==null&&!A.done;T++,A=k.next()){w.index>T?(z=w,w=null):z=w.sibling;var M=f(y,w,A.value,v);if(M===null){w===null&&(w=z);break}e&&w&&M.alternate===null&&t(y,w),C=s(M,C,T),_===null?S=M:_.sibling=M,_=M,w=z}if(A.done)return r(y,w),Rt&&sn(y,T),S;if(w===null){for(;!A.done;T++,A=k.next())A=u(y,A.value,v),A!==null&&(C=s(A,C,T),_===null?S=A:_.sibling=A,_=A);return Rt&&sn(y,T),S}for(w=i(y,w);!A.done;T++,A=k.next())A=d(w,y,T,A.value,v),A!==null&&(e&&A.alternate!==null&&w.delete(A.key===null?T:A.key),C=s(A,C,T),_===null?S=A:_.sibling=A,_=A);return e&&w.forEach(function(Y){return t(y,Y)}),Rt&&sn(y,T),S}function x(y,C,k,v){if(typeof k=="object"&&k!==null&&k.type===is&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case ll:t:{for(var S=k.key,_=C;_!==null;){if(_.key===S){if(S=k.type,S===is){if(_.tag===7){r(y,_.sibling),C=n(_,k.props.children),C.return=y,y=C;break t}}else if(_.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ti&&Cy(S)===_.type){r(y,_.sibling),C=n(_,k.props),C.ref=go(y,_,k),C.return=y,y=C;break t}r(y,_);break}else t(y,_);_=_.sibling}k.type===is?(C=xn(k.props.children,y.mode,v,k.key),C.return=y,y=C):(v=Ql(k.type,k.key,k.props,null,y.mode,v),v.ref=go(y,C,k),v.return=y,y=v)}return o(y);case rs:t:{for(_=k.key;C!==null;){if(C.key===_)if(C.tag===4&&C.stateNode.containerInfo===k.containerInfo&&C.stateNode.implementation===k.implementation){r(y,C.sibling),C=n(C,k.children||[]),C.return=y,y=C;break t}else{r(y,C);break}else t(y,C);C=C.sibling}C=Wu(k,y.mode,v),C.return=y,y=C}return o(y);case Ti:return _=k._init,x(y,C,_(k._payload),v)}if($o(k))return p(y,C,k,v);if(ho(k))return g(y,C,k,v);Cl(y,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,C!==null&&C.tag===6?(r(y,C.sibling),C=n(C,k),C.return=y,y=C):(r(y,C),C=qu(k,y.mode,v),C.return=y,y=C),o(y)):r(y,C)}return x}var qs=a1(!0),l1=a1(!1),wh=Zi(null),Sh=null,us=null,Dp=null;function Rp(){Dp=us=Sh=null}function Np(e){var t=wh.current;Pt(wh),e._currentValue=t}function Wd(e,t,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===r)break;e=e.return}}function Cs(e,t){Sh=e,Dp=us=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(We=!0),e.firstContext=null)}function ur(e){var t=e._currentValue;if(Dp!==e)if(e={context:e,memoizedValue:t,next:null},us===null){if(Sh===null)throw Error(j(308));us=e,Sh.dependencies={lanes:0,firstContext:e}}else us=us.next=e;return t}var un=null;function zp(e){un===null?un=[e]:un.push(e)}function h1(e,t,r,i){var n=t.interleaved;return n===null?(r.next=r,zp(t)):(r.next=n.next,n.next=r),t.interleaved=r,pi(e,i)}function pi(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var _i=!1;function qp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function c1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function hi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ri(e,t,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,vt&2){var n=i.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),i.pending=t,pi(e,r)}return n=i.interleaved,n===null?(t.next=t,zp(i)):(t.next=n.next,n.next=t),i.interleaved=t,pi(e,r)}function jl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,_p(e,r)}}function ky(e,t){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var n=null,s=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};s===null?n=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?n=s=t:s=s.next=t}else n=s=t;r={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:i.shared,effects:i.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Th(e,t,r,i){var n=e.updateQueue;_i=!1;var s=n.firstBaseUpdate,o=n.lastBaseUpdate,a=n.shared.pending;if(a!==null){n.shared.pending=null;var l=a,h=l.next;l.next=null,o===null?s=h:o.next=h,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,a=c.lastBaseUpdate,a!==o&&(a===null?c.firstBaseUpdate=h:a.next=h,c.lastBaseUpdate=l))}if(s!==null){var u=n.baseState;o=0,c=h=l=null,a=s;do{var f=a.lane,d=a.eventTime;if((i&f)===f){c!==null&&(c=c.next={eventTime:d,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var p=e,g=a;switch(f=t,d=r,g.tag){case 1:if(p=g.payload,typeof p=="function"){u=p.call(d,u,f);break t}u=p;break t;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(d,u,f):p,f==null)break t;u=Wt({},u,f);break t;case 2:_i=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[a]:f.push(a))}else d={eventTime:d,lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},c===null?(h=c=d,l=u):c=c.next=d,o|=f;if(a=a.next,a===null){if(a=n.shared.pending,a===null)break;f=a,a=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(c===null&&(l=u),n.baseState=l,n.firstBaseUpdate=h,n.lastBaseUpdate=c,t=n.shared.interleaved,t!==null){n=t;do o|=n.lane,n=n.next;while(n!==t)}else s===null&&(n.shared.lanes=0);Sn|=o,e.lanes=o,e.memoizedState=u}}function by(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],n=i.callback;if(n!==null){if(i.callback=null,i=r,typeof n!="function")throw Error(j(191,n));n.call(i)}}}var Ha={},jr=Zi(Ha),Ca=Zi(Ha),ka=Zi(Ha);function dn(e){if(e===Ha)throw Error(j(174));return e}function Wp(e,t){switch(Mt(ka,t),Mt(Ca,e),Mt(jr,Ha),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:vd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=vd(t,e)}Pt(jr),Mt(jr,t)}function Ws(){Pt(jr),Pt(Ca),Pt(ka)}function u1(e){dn(ka.current);var t=dn(jr.current),r=vd(t,e.type);t!==r&&(Mt(Ca,e),Mt(jr,r))}function Hp(e){Ca.current===e&&(Pt(jr),Pt(Ca))}var Nt=Zi(0);function _h(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Iu=[];function jp(){for(var e=0;e<Iu.length;e++)Iu[e]._workInProgressVersionPrimary=null;Iu.length=0}var Ul=xi.ReactCurrentDispatcher,Pu=xi.ReactCurrentBatchConfig,wn=0,zt=null,te=null,se=null,Bh=!1,Qo=!1,ba=0,GB=0;function ye(){throw Error(j(321))}function Up(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Er(e[r],t[r]))return!1;return!0}function Yp(e,t,r,i,n,s){if(wn=s,zt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ul.current=e===null||e.memoizedState===null?KB:JB,e=r(i,n),Qo){s=0;do{if(Qo=!1,ba=0,25<=s)throw Error(j(301));s+=1,se=te=null,t.updateQueue=null,Ul.current=tL,e=r(i,n)}while(Qo)}if(Ul.current=Lh,t=te!==null&&te.next!==null,wn=0,se=te=zt=null,Bh=!1,t)throw Error(j(300));return e}function Vp(){var e=ba!==0;return ba=0,e}function zr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?zt.memoizedState=se=e:se=se.next=e,se}function dr(){if(te===null){var e=zt.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=se===null?zt.memoizedState:se.next;if(t!==null)se=t,te=e;else{if(e===null)throw Error(j(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},se===null?zt.memoizedState=se=e:se=se.next=e}return se}function va(e,t){return typeof t=="function"?t(e):t}function Du(e){var t=dr(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var i=te,n=i.baseQueue,s=r.pending;if(s!==null){if(n!==null){var o=n.next;n.next=s.next,s.next=o}i.baseQueue=n=s,r.pending=null}if(n!==null){s=n.next,i=i.baseState;var a=o=null,l=null,h=s;do{var c=h.lane;if((wn&c)===c)l!==null&&(l=l.next={lane:0,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null}),i=h.hasEagerState?h.eagerState:e(i,h.action);else{var u={lane:c,action:h.action,hasEagerState:h.hasEagerState,eagerState:h.eagerState,next:null};l===null?(a=l=u,o=i):l=l.next=u,zt.lanes|=c,Sn|=c}h=h.next}while(h!==null&&h!==s);l===null?o=i:l.next=a,Er(i,t.memoizedState)||(We=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=l,r.lastRenderedState=i}if(e=r.interleaved,e!==null){n=e;do s=n.lane,zt.lanes|=s,Sn|=s,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ru(e){var t=dr(),r=t.queue;if(r===null)throw Error(j(311));r.lastRenderedReducer=e;var i=r.dispatch,n=r.pending,s=t.memoizedState;if(n!==null){r.pending=null;var o=n=n.next;do s=e(s,o.action),o=o.next;while(o!==n);Er(s,t.memoizedState)||(We=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),r.lastRenderedState=s}return[s,i]}function d1(){}function f1(e,t){var r=zt,i=dr(),n=t(),s=!Er(i.memoizedState,n);if(s&&(i.memoizedState=n,We=!0),i=i.queue,Gp(m1.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||se!==null&&se.memoizedState.tag&1){if(r.flags|=2048,wa(9,g1.bind(null,r,i,n,t),void 0,null),ae===null)throw Error(j(349));wn&30||p1(r,t,n)}return n}function p1(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function g1(e,t,r,i){t.value=r,t.getSnapshot=i,y1(t)&&x1(e)}function m1(e,t,r){return r(function(){y1(t)&&x1(e)})}function y1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Er(e,r)}catch{return!0}}function x1(e){var t=pi(e,1);t!==null&&_r(t,e,1,-1)}function vy(e){var t=zr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:e},t.queue=e,e=e.dispatch=ZB.bind(null,zt,e),[t.memoizedState,e]}function wa(e,t,r,i){return e={tag:e,create:t,destroy:r,deps:i,next:null},t=zt.updateQueue,t===null?(t={lastEffect:null,stores:null},zt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,t.lastEffect=e)),e}function C1(){return dr().memoizedState}function Yl(e,t,r,i){var n=zr();zt.flags|=e,n.memoizedState=wa(1|t,r,void 0,i===void 0?null:i)}function Tc(e,t,r,i){var n=dr();i=i===void 0?null:i;var s=void 0;if(te!==null){var o=te.memoizedState;if(s=o.destroy,i!==null&&Up(i,o.deps)){n.memoizedState=wa(t,r,s,i);return}}zt.flags|=e,n.memoizedState=wa(1|t,r,s,i)}function wy(e,t){return Yl(8390656,8,e,t)}function Gp(e,t){return Tc(2048,8,e,t)}function k1(e,t){return Tc(4,2,e,t)}function b1(e,t){return Tc(4,4,e,t)}function v1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function w1(e,t,r){return r=r!=null?r.concat([e]):null,Tc(4,4,v1.bind(null,t,e),r)}function Xp(){}function S1(e,t){var r=dr();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&Up(t,i[1])?i[0]:(r.memoizedState=[e,t],e)}function T1(e,t){var r=dr();t=t===void 0?null:t;var i=r.memoizedState;return i!==null&&t!==null&&Up(t,i[1])?i[0]:(e=e(),r.memoizedState=[e,t],e)}function _1(e,t,r){return wn&21?(Er(r,t)||(r=AC(),zt.lanes|=r,Sn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,We=!0),e.memoizedState=r)}function XB(e,t){var r=Lt;Lt=r!==0&&4>r?r:4,e(!0);var i=Pu.transition;Pu.transition={};try{e(!1),t()}finally{Lt=r,Pu.transition=i}}function B1(){return dr().memoizedState}function QB(e,t,r){var i=zi(e);if(r={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null},L1(e))E1(t,r);else if(r=h1(e,t,r,i),r!==null){var n=Ae();_r(r,e,i,n),F1(r,t,i)}}function ZB(e,t,r){var i=zi(e),n={lane:i,action:r,hasEagerState:!1,eagerState:null,next:null};if(L1(e))E1(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,a=s(o,r);if(n.hasEagerState=!0,n.eagerState=a,Er(a,o)){var l=t.interleaved;l===null?(n.next=n,zp(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}finally{}r=h1(e,t,n,i),r!==null&&(n=Ae(),_r(r,e,i,n),F1(r,t,i))}}function L1(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function E1(e,t){Qo=Bh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function F1(e,t,r){if(r&4194240){var i=t.lanes;i&=e.pendingLanes,r|=i,t.lanes=r,_p(e,r)}}var Lh={readContext:ur,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},KB={readContext:ur,useCallback:function(e,t){return zr().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:wy,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Yl(4194308,4,v1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Yl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Yl(4,2,e,t)},useMemo:function(e,t){var r=zr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var i=zr();return t=r!==void 0?r(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=QB.bind(null,zt,e),[i.memoizedState,e]},useRef:function(e){var t=zr();return e={current:e},t.memoizedState=e},useState:vy,useDebugValue:Xp,useDeferredValue:function(e){return zr().memoizedState=e},useTransition:function(){var e=vy(!1),t=e[0];return e=XB.bind(null,e[1]),zr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=zt,n=zr();if(Rt){if(r===void 0)throw Error(j(407));r=r()}else{if(r=t(),ae===null)throw Error(j(349));wn&30||p1(i,t,r)}n.memoizedState=r;var s={value:r,getSnapshot:t};return n.queue=s,wy(m1.bind(null,i,s,e),[e]),i.flags|=2048,wa(9,g1.bind(null,i,s,r,t),void 0,null),r},useId:function(){var e=zr(),t=ae.identifierPrefix;if(Rt){var r=oi,i=si;r=(i&~(1<<32-Tr(i)-1)).toString(32)+r,t=":"+t+"R"+r,r=ba++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=GB++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},JB={readContext:ur,useCallback:S1,useContext:ur,useEffect:Gp,useImperativeHandle:w1,useInsertionEffect:k1,useLayoutEffect:b1,useMemo:T1,useReducer:Du,useRef:C1,useState:function(){return Du(va)},useDebugValue:Xp,useDeferredValue:function(e){var t=dr();return _1(t,te.memoizedState,e)},useTransition:function(){var e=Du(va)[0],t=dr().memoizedState;return[e,t]},useMutableSource:d1,useSyncExternalStore:f1,useId:B1,unstable_isNewReconciler:!1},tL={readContext:ur,useCallback:S1,useContext:ur,useEffect:Gp,useImperativeHandle:w1,useInsertionEffect:k1,useLayoutEffect:b1,useMemo:T1,useReducer:Ru,useRef:C1,useState:function(){return Ru(va)},useDebugValue:Xp,useDeferredValue:function(e){var t=dr();return te===null?t.memoizedState=e:_1(t,te.memoizedState,e)},useTransition:function(){var e=Ru(va)[0],t=dr().memoizedState;return[e,t]},useMutableSource:d1,useSyncExternalStore:f1,useId:B1,unstable_isNewReconciler:!1};function xr(e,t){if(e&&e.defaultProps){t=Wt({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Hd(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:Wt({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var _c={isMounted:function(e){return(e=e._reactInternals)?Pn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var i=Ae(),n=zi(e),s=hi(i,n);s.payload=t,r!=null&&(s.callback=r),t=Ri(e,s,n),t!==null&&(_r(t,e,n,i),jl(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var i=Ae(),n=zi(e),s=hi(i,n);s.tag=1,s.payload=t,r!=null&&(s.callback=r),t=Ri(e,s,n),t!==null&&(_r(t,e,n,i),jl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ae(),i=zi(e),n=hi(r,i);n.tag=2,t!=null&&(n.callback=t),t=Ri(e,n,i),t!==null&&(_r(t,e,i,r),jl(t,e,i))}};function Sy(e,t,r,i,n,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,s,o):t.prototype&&t.prototype.isPureReactComponent?!ga(r,i)||!ga(n,s):!0}function A1(e,t,r){var i=!1,n=Ui,s=t.contextType;return typeof s=="object"&&s!==null?s=ur(s):(n=Ue(t)?bn:Se.current,i=t.contextTypes,s=(i=i!=null)?Ns(e,n):Ui),t=new t(r,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=_c,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=s),t}function Ty(e,t,r,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,i),t.state!==e&&_c.enqueueReplaceState(t,t.state,null)}function jd(e,t,r,i){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},qp(e);var s=t.contextType;typeof s=="object"&&s!==null?n.context=ur(s):(s=Ue(t)?bn:Se.current,n.context=Ns(e,s)),n.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(Hd(e,t,s,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&_c.enqueueReplaceState(n,n.state,null),Th(e,r,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Hs(e,t){try{var r="",i=t;do r+=L_(i),i=i.return;while(i);var n=r}catch(s){n=`
|
|
40
|
+
Error generating stack: `+s.message+`
|
|
41
|
+
`+s.stack}return{value:e,source:t,stack:n,digest:null}}function Nu(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ud(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var eL=typeof WeakMap=="function"?WeakMap:Map;function M1(e,t,r){r=hi(-1,r),r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){Fh||(Fh=!0,ef=i),Ud(e,t)},r}function $1(e,t,r){r=hi(-1,r),r.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var n=t.value;r.payload=function(){return i(n)},r.callback=function(){Ud(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){Ud(e,t),typeof i!="function"&&(Ni===null?Ni=new Set([this]):Ni.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function _y(e,t,r){var i=e.pingCache;if(i===null){i=e.pingCache=new eL;var n=new Set;i.set(t,n)}else n=i.get(t),n===void 0&&(n=new Set,i.set(t,n));n.has(r)||(n.add(r),e=gL.bind(null,e,t,r),t.then(e,e))}function By(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ly(e,t,r,i,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=hi(-1,1),t.tag=2,Ri(r,t,1))),r.lanes|=1),e)}var rL=xi.ReactCurrentOwner,We=!1;function Be(e,t,r,i){t.child=e===null?l1(t,null,r,i):qs(t,e.child,r,i)}function Ey(e,t,r,i,n){r=r.render;var s=t.ref;return Cs(t,n),i=Yp(e,t,r,i,s,n),r=Vp(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,gi(e,t,n)):(Rt&&r&&Op(t),t.flags|=1,Be(e,t,i,n),t.child)}function Fy(e,t,r,i,n){if(e===null){var s=r.type;return typeof s=="function"&&!ig(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,O1(e,t,s,i,n)):(e=Ql(r.type,null,i,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&n)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:ga,r(o,i)&&e.ref===t.ref)return gi(e,t,n)}return t.flags|=1,e=qi(s,i),e.ref=t.ref,e.return=t,t.child=e}function O1(e,t,r,i,n){if(e!==null){var s=e.memoizedProps;if(ga(s,i)&&e.ref===t.ref)if(We=!1,t.pendingProps=i=s,(e.lanes&n)!==0)e.flags&131072&&(We=!0);else return t.lanes=e.lanes,gi(e,t,n)}return Yd(e,t,r,i,n)}function I1(e,t,r){var i=t.pendingProps,n=i.children,s=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mt(fs,Ze),Ze|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mt(fs,Ze),Ze|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=s!==null?s.baseLanes:r,Mt(fs,Ze),Ze|=i}else s!==null?(i=s.baseLanes|r,t.memoizedState=null):i=r,Mt(fs,Ze),Ze|=i;return Be(e,t,n,r),t.child}function P1(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Yd(e,t,r,i,n){var s=Ue(r)?bn:Se.current;return s=Ns(t,s),Cs(t,n),r=Yp(e,t,r,i,s,n),i=Vp(),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,gi(e,t,n)):(Rt&&i&&Op(t),t.flags|=1,Be(e,t,r,n),t.child)}function Ay(e,t,r,i,n){if(Ue(r)){var s=!0;kh(t)}else s=!1;if(Cs(t,n),t.stateNode===null)Vl(e,t),A1(t,r,i),jd(t,r,i,n),i=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,h=r.contextType;typeof h=="object"&&h!==null?h=ur(h):(h=Ue(r)?bn:Se.current,h=Ns(t,h));var c=r.getDerivedStateFromProps,u=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==i||l!==h)&&Ty(t,o,i,h),_i=!1;var f=t.memoizedState;o.state=f,Th(t,i,o,n),l=t.memoizedState,a!==i||f!==l||je.current||_i?(typeof c=="function"&&(Hd(t,r,c,i),l=t.memoizedState),(a=_i||Sy(t,r,a,i,f,l,h))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=l),o.props=i,o.state=l,o.context=h,i=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,c1(e,t),a=t.memoizedProps,h=t.type===t.elementType?a:xr(t.type,a),o.props=h,u=t.pendingProps,f=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=ur(l):(l=Ue(r)?bn:Se.current,l=Ns(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==u||f!==l)&&Ty(t,o,i,l),_i=!1,f=t.memoizedState,o.state=f,Th(t,i,o,n);var p=t.memoizedState;a!==u||f!==p||je.current||_i?(typeof d=="function"&&(Hd(t,r,d,i),p=t.memoizedState),(h=_i||Sy(t,r,h,i,f,p,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=p),o.props=i,o.state=p,o.context=l,i=h):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return Vd(e,t,r,i,s,n)}function Vd(e,t,r,i,n,s){P1(e,t);var o=(t.flags&128)!==0;if(!i&&!o)return n&&my(t,r,!1),gi(e,t,s);i=t.stateNode,rL.current=t;var a=o&&typeof r.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&o?(t.child=qs(t,e.child,null,s),t.child=qs(t,null,a,s)):Be(e,t,a,s),t.memoizedState=i.state,n&&my(t,r,!0),t.child}function D1(e){var t=e.stateNode;t.pendingContext?gy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gy(e,t.context,!1),Wp(e,t.containerInfo)}function My(e,t,r,i,n){return zs(),Pp(n),t.flags|=256,Be(e,t,r,i),t.child}var Gd={dehydrated:null,treeContext:null,retryLane:0};function Xd(e){return{baseLanes:e,cachePool:null,transitions:null}}function R1(e,t,r){var i=t.pendingProps,n=Nt.current,s=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(n&2)!==0),a?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Mt(Nt,n&1),e===null)return qd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=i.children,e=i.fallback,s?(i=t.mode,s=t.child,o={mode:"hidden",children:o},!(i&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Ec(o,i,0,null),e=xn(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Xd(r),t.memoizedState=Gd,e):Qp(t,o));if(n=e.memoizedState,n!==null&&(a=n.dehydrated,a!==null))return iL(e,t,o,i,a,n,r);if(s){s=i.fallback,o=t.mode,n=e.child,a=n.sibling;var l={mode:"hidden",children:i.children};return!(o&1)&&t.child!==n?(i=t.child,i.childLanes=0,i.pendingProps=l,t.deletions=null):(i=qi(n,l),i.subtreeFlags=n.subtreeFlags&14680064),a!==null?s=qi(a,s):(s=xn(s,o,r,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,o=e.child.memoizedState,o=o===null?Xd(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~r,t.memoizedState=Gd,i}return s=e.child,e=s.sibling,i=qi(s,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=r),i.return=t,i.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function Qp(e,t){return t=Ec({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kl(e,t,r,i){return i!==null&&Pp(i),qs(t,e.child,null,r),e=Qp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function iL(e,t,r,i,n,s,o){if(r)return t.flags&256?(t.flags&=-257,i=Nu(Error(j(422))),kl(e,t,o,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=i.fallback,n=t.mode,i=Ec({mode:"visible",children:i.children},n,0,null),s=xn(s,n,o,null),s.flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,t.mode&1&&qs(t,e.child,null,o),t.child.memoizedState=Xd(o),t.memoizedState=Gd,s);if(!(t.mode&1))return kl(e,t,o,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var a=i.dgst;return i=a,s=Error(j(419)),i=Nu(s,i,void 0),kl(e,t,o,i)}if(a=(o&e.childLanes)!==0,We||a){if(i=ae,i!==null){switch(o&-o){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(i.suspendedLanes|o)?0:n,n!==0&&n!==s.retryLane&&(s.retryLane=n,pi(e,n),_r(i,e,n,-1))}return rg(),i=Nu(Error(j(421))),kl(e,t,o,i)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=mL.bind(null,e),n._reactRetry=t,null):(e=s.treeContext,Ke=Di(n.nextSibling),Je=t,Rt=!0,kr=null,e!==null&&(ar[lr++]=si,ar[lr++]=oi,ar[lr++]=vn,si=e.id,oi=e.overflow,vn=t),t=Qp(t,i.children),t.flags|=4096,t)}function $y(e,t,r){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Wd(e.return,t,r)}function zu(e,t,r,i,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=r,s.tailMode=n)}function N1(e,t,r){var i=t.pendingProps,n=i.revealOrder,s=i.tail;if(Be(e,t,i.children,r),i=Nt.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$y(e,r,t);else if(e.tag===19)$y(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}i&=1}if(Mt(Nt,i),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&_h(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),zu(t,!1,n,r,s);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&_h(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}zu(t,!0,r,null,s);break;case"together":zu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vl(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function gi(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Sn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(j(153));if(t.child!==null){for(e=t.child,r=qi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=qi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function nL(e,t,r){switch(t.tag){case 3:D1(t),zs();break;case 5:u1(t);break;case 1:Ue(t.type)&&kh(t);break;case 4:Wp(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,n=t.memoizedProps.value;Mt(wh,i._currentValue),i._currentValue=n;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(Mt(Nt,Nt.current&1),t.flags|=128,null):r&t.child.childLanes?R1(e,t,r):(Mt(Nt,Nt.current&1),e=gi(e,t,r),e!==null?e.sibling:null);Mt(Nt,Nt.current&1);break;case 19:if(i=(r&t.childLanes)!==0,e.flags&128){if(i)return N1(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Mt(Nt,Nt.current),i)break;return null;case 22:case 23:return t.lanes=0,I1(e,t,r)}return gi(e,t,r)}var z1,Qd,q1,W1;z1=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Qd=function(){};q1=function(e,t,r,i){var n=e.memoizedProps;if(n!==i){e=t.stateNode,dn(jr.current);var s=null;switch(r){case"input":n=xd(e,n),i=xd(e,i),s=[];break;case"select":n=Wt({},n,{value:void 0}),i=Wt({},i,{value:void 0}),s=[];break;case"textarea":n=bd(e,n),i=bd(e,i),s=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=xh)}wd(r,i);var o;r=null;for(h in n)if(!i.hasOwnProperty(h)&&n.hasOwnProperty(h)&&n[h]!=null)if(h==="style"){var a=n[h];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else h!=="dangerouslySetInnerHTML"&&h!=="children"&&h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&h!=="autoFocus"&&(la.hasOwnProperty(h)?s||(s=[]):(s=s||[]).push(h,null));for(h in i){var l=i[h];if(a=n!=null?n[h]:void 0,i.hasOwnProperty(h)&&l!==a&&(l!=null||a!=null))if(h==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(h,r)),r=l;else h==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(h,l)):h==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(h,""+l):h!=="suppressContentEditableWarning"&&h!=="suppressHydrationWarning"&&(la.hasOwnProperty(h)?(l!=null&&h==="onScroll"&&Ot("scroll",e),s||a===l||(s=[])):(s=s||[]).push(h,l))}r&&(s=s||[]).push("style",r);var h=s;(t.updateQueue=h)&&(t.flags|=4)}};W1=function(e,t,r,i){r!==i&&(t.flags|=4)};function mo(e,t){if(!Rt)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=i,e.childLanes=r,t}function sL(e,t,r){var i=t.pendingProps;switch(Ip(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(t),null;case 1:return Ue(t.type)&&Ch(),xe(t),null;case 3:return i=t.stateNode,Ws(),Pt(je),Pt(Se),jp(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(xl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,kr!==null&&(sf(kr),kr=null))),Qd(e,t),xe(t),null;case 5:Hp(t);var n=dn(ka.current);if(r=t.type,e!==null&&t.stateNode!=null)q1(e,t,r,i,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(j(166));return xe(t),null}if(e=dn(jr.current),xl(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[Wr]=t,i[xa]=s,e=(t.mode&1)!==0,r){case"dialog":Ot("cancel",i),Ot("close",i);break;case"iframe":case"object":case"embed":Ot("load",i);break;case"video":case"audio":for(n=0;n<Io.length;n++)Ot(Io[n],i);break;case"source":Ot("error",i);break;case"img":case"image":case"link":Ot("error",i),Ot("load",i);break;case"details":Ot("toggle",i);break;case"input":Wm(i,s),Ot("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Ot("invalid",i);break;case"textarea":jm(i,s),Ot("invalid",i)}wd(r,s),n=null;for(var o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="children"?typeof a=="string"?i.textContent!==a&&(s.suppressHydrationWarning!==!0&&yl(i.textContent,a,e),n=["children",a]):typeof a=="number"&&i.textContent!==""+a&&(s.suppressHydrationWarning!==!0&&yl(i.textContent,a,e),n=["children",""+a]):la.hasOwnProperty(o)&&a!=null&&o==="onScroll"&&Ot("scroll",i)}switch(r){case"input":hl(i),Hm(i,s,!0);break;case"textarea":hl(i),Um(i);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(i.onclick=xh)}i=n,t.updateQueue=i,i!==null&&(t.flags|=4)}else{o=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=mC(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(r,{is:i.is}):(e=o.createElement(r),r==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,r),e[Wr]=t,e[xa]=i,z1(e,t,!1,!1),t.stateNode=e;t:{switch(o=Sd(r,i),r){case"dialog":Ot("cancel",e),Ot("close",e),n=i;break;case"iframe":case"object":case"embed":Ot("load",e),n=i;break;case"video":case"audio":for(n=0;n<Io.length;n++)Ot(Io[n],e);n=i;break;case"source":Ot("error",e),n=i;break;case"img":case"image":case"link":Ot("error",e),Ot("load",e),n=i;break;case"details":Ot("toggle",e),n=i;break;case"input":Wm(e,i),n=xd(e,i),Ot("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=Wt({},i,{value:void 0}),Ot("invalid",e);break;case"textarea":jm(e,i),n=bd(e,i),Ot("invalid",e);break;default:n=i}wd(r,n),a=n;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?CC(e,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&yC(e,l)):s==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ha(e,l):typeof l=="number"&&ha(e,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(la.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Ot("scroll",e):l!=null&&kp(e,s,l,o))}switch(r){case"input":hl(e),Hm(e,i,!1);break;case"textarea":hl(e),Um(e);break;case"option":i.value!=null&&e.setAttribute("value",""+ji(i.value));break;case"select":e.multiple=!!i.multiple,s=i.value,s!=null?gs(e,!!i.multiple,s,!1):i.defaultValue!=null&&gs(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=xh)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return xe(t),null;case 6:if(e&&t.stateNode!=null)W1(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(j(166));if(r=dn(ka.current),dn(jr.current),xl(t)){if(i=t.stateNode,r=t.memoizedProps,i[Wr]=t,(s=i.nodeValue!==r)&&(e=Je,e!==null))switch(e.tag){case 3:yl(i.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yl(i.nodeValue,r,(e.mode&1)!==0)}s&&(t.flags|=4)}else i=(r.nodeType===9?r:r.ownerDocument).createTextNode(i),i[Wr]=t,t.stateNode=i}return xe(t),null;case 13:if(Pt(Nt),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Rt&&Ke!==null&&t.mode&1&&!(t.flags&128))o1(),zs(),t.flags|=98560,s=!1;else if(s=xl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(j(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(j(317));s[Wr]=t}else zs(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;xe(t),s=!1}else kr!==null&&(sf(kr),kr=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Nt.current&1?ie===0&&(ie=3):rg())),t.updateQueue!==null&&(t.flags|=4),xe(t),null);case 4:return Ws(),Qd(e,t),e===null&&ma(t.stateNode.containerInfo),xe(t),null;case 10:return Np(t.type._context),xe(t),null;case 17:return Ue(t.type)&&Ch(),xe(t),null;case 19:if(Pt(Nt),s=t.memoizedState,s===null)return xe(t),null;if(i=(t.flags&128)!==0,o=s.rendering,o===null)if(i)mo(s,!1);else{if(ie!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=_h(e),o!==null){for(t.flags|=128,mo(s,!1),i=o.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;r!==null;)s=r,e=i,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Mt(Nt,Nt.current&1|2),t.child}e=e.sibling}s.tail!==null&&Yt()>js&&(t.flags|=128,i=!0,mo(s,!1),t.lanes=4194304)}else{if(!i)if(e=_h(o),e!==null){if(t.flags|=128,i=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),mo(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Rt)return xe(t),null}else 2*Yt()-s.renderingStartTime>js&&r!==1073741824&&(t.flags|=128,i=!0,mo(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(r=s.last,r!==null?r.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Yt(),t.sibling=null,r=Nt.current,Mt(Nt,i?r&1|2:r&1),t):(xe(t),null);case 22:case 23:return eg(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Ze&1073741824&&(xe(t),t.subtreeFlags&6&&(t.flags|=8192)):xe(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function oL(e,t){switch(Ip(t),t.tag){case 1:return Ue(t.type)&&Ch(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ws(),Pt(je),Pt(Se),jp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Hp(t),null;case 13:if(Pt(Nt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));zs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pt(Nt),null;case 4:return Ws(),null;case 10:return Np(t.type._context),null;case 22:case 23:return eg(),null;case 24:return null;default:return null}}var bl=!1,ve=!1,aL=typeof WeakSet=="function"?WeakSet:Set,X=null;function ds(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(i){Ut(e,t,i)}else r.current=null}function Zd(e,t,r){try{r()}catch(i){Ut(e,t,i)}}var Oy=!1;function lL(e,t){if(Od=gh,e=VC(),$p(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var n=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break t}var o=0,a=-1,l=-1,h=0,c=0,u=e,f=null;e:for(;;){for(var d;u!==r||n!==0&&u.nodeType!==3||(a=o+n),u!==s||i!==0&&u.nodeType!==3||(l=o+i),u.nodeType===3&&(o+=u.nodeValue.length),(d=u.firstChild)!==null;)f=u,u=d;for(;;){if(u===e)break e;if(f===r&&++h===n&&(a=o),f===s&&++c===i&&(l=o),(d=u.nextSibling)!==null)break;u=f,f=u.parentNode}u=d}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Id={focusedElem:e,selectionRange:r},gh=!1,X=t;X!==null;)if(t=X,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,X=e;else for(;X!==null;){t=X;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,x=p.memoizedState,y=t.stateNode,C=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:xr(t.type,g),x);y.__reactInternalSnapshotBeforeUpdate=C}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(v){Ut(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,X=e;break}X=t.return}return p=Oy,Oy=!1,p}function Zo(e,t,r){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&e)===e){var s=n.destroy;n.destroy=void 0,s!==void 0&&Zd(t,r,s)}n=n.next}while(n!==i)}}function Bc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var i=r.create;r.destroy=i()}r=r.next}while(r!==t)}}function Kd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function H1(e){var t=e.alternate;t!==null&&(e.alternate=null,H1(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Wr],delete t[xa],delete t[Rd],delete t[jB],delete t[UB])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function j1(e){return e.tag===5||e.tag===3||e.tag===4}function Iy(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||j1(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Jd(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=xh));else if(i!==4&&(e=e.child,e!==null))for(Jd(e,t,r),e=e.sibling;e!==null;)Jd(e,t,r),e=e.sibling}function tf(e,t,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(tf(e,t,r),e=e.sibling;e!==null;)tf(e,t,r),e=e.sibling}var ue=null,Cr=!1;function wi(e,t,r){for(r=r.child;r!==null;)U1(e,t,r),r=r.sibling}function U1(e,t,r){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(Cc,r)}catch{}switch(r.tag){case 5:ve||ds(r,t);case 6:var i=ue,n=Cr;ue=null,wi(e,t,r),ue=i,Cr=n,ue!==null&&(Cr?(e=ue,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):ue.removeChild(r.stateNode));break;case 18:ue!==null&&(Cr?(e=ue,r=r.stateNode,e.nodeType===8?$u(e.parentNode,r):e.nodeType===1&&$u(e,r),fa(e)):$u(ue,r.stateNode));break;case 4:i=ue,n=Cr,ue=r.stateNode.containerInfo,Cr=!0,wi(e,t,r),ue=i,Cr=n;break;case 0:case 11:case 14:case 15:if(!ve&&(i=r.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var s=n,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&Zd(r,t,o),n=n.next}while(n!==i)}wi(e,t,r);break;case 1:if(!ve&&(ds(r,t),i=r.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=r.memoizedProps,i.state=r.memoizedState,i.componentWillUnmount()}catch(a){Ut(r,t,a)}wi(e,t,r);break;case 21:wi(e,t,r);break;case 22:r.mode&1?(ve=(i=ve)||r.memoizedState!==null,wi(e,t,r),ve=i):wi(e,t,r);break;default:wi(e,t,r)}}function Py(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new aL),t.forEach(function(i){var n=yL.bind(null,e,i);r.has(i)||(r.add(i),i.then(n,n))})}}function yr(e,t){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var n=r[i];try{var s=e,o=t,a=o;t:for(;a!==null;){switch(a.tag){case 5:ue=a.stateNode,Cr=!1;break t;case 3:ue=a.stateNode.containerInfo,Cr=!0;break t;case 4:ue=a.stateNode.containerInfo,Cr=!0;break t}a=a.return}if(ue===null)throw Error(j(160));U1(s,o,n),ue=null,Cr=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(h){Ut(n,t,h)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Y1(t,e),t=t.sibling}function Y1(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yr(t,e),Pr(e),i&4){try{Zo(3,e,e.return),Bc(3,e)}catch(g){Ut(e,e.return,g)}try{Zo(5,e,e.return)}catch(g){Ut(e,e.return,g)}}break;case 1:yr(t,e),Pr(e),i&512&&r!==null&&ds(r,r.return);break;case 5:if(yr(t,e),Pr(e),i&512&&r!==null&&ds(r,r.return),e.flags&32){var n=e.stateNode;try{ha(n,"")}catch(g){Ut(e,e.return,g)}}if(i&4&&(n=e.stateNode,n!=null)){var s=e.memoizedProps,o=r!==null?r.memoizedProps:s,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&s.type==="radio"&&s.name!=null&&pC(n,s),Sd(a,o);var h=Sd(a,s);for(o=0;o<l.length;o+=2){var c=l[o],u=l[o+1];c==="style"?CC(n,u):c==="dangerouslySetInnerHTML"?yC(n,u):c==="children"?ha(n,u):kp(n,c,u,h)}switch(a){case"input":Cd(n,s);break;case"textarea":gC(n,s);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!s.multiple;var d=s.value;d!=null?gs(n,!!s.multiple,d,!1):f!==!!s.multiple&&(s.defaultValue!=null?gs(n,!!s.multiple,s.defaultValue,!0):gs(n,!!s.multiple,s.multiple?[]:"",!1))}n[xa]=s}catch(g){Ut(e,e.return,g)}}break;case 6:if(yr(t,e),Pr(e),i&4){if(e.stateNode===null)throw Error(j(162));n=e.stateNode,s=e.memoizedProps;try{n.nodeValue=s}catch(g){Ut(e,e.return,g)}}break;case 3:if(yr(t,e),Pr(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{fa(t.containerInfo)}catch(g){Ut(e,e.return,g)}break;case 4:yr(t,e),Pr(e);break;case 13:yr(t,e),Pr(e),n=e.child,n.flags&8192&&(s=n.memoizedState!==null,n.stateNode.isHidden=s,!s||n.alternate!==null&&n.alternate.memoizedState!==null||(Jp=Yt())),i&4&&Py(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(ve=(h=ve)||c,yr(t,e),ve=h):yr(t,e),Pr(e),i&8192){if(h=e.memoizedState!==null,(e.stateNode.isHidden=h)&&!c&&e.mode&1)for(X=e,c=e.child;c!==null;){for(u=X=c;X!==null;){switch(f=X,d=f.child,f.tag){case 0:case 11:case 14:case 15:Zo(4,f,f.return);break;case 1:ds(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){i=f,r=f.return;try{t=i,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){Ut(i,r,g)}}break;case 5:ds(f,f.return);break;case 22:if(f.memoizedState!==null){Ry(u);continue}}d!==null?(d.return=f,X=d):Ry(u)}c=c.sibling}t:for(c=null,u=e;;){if(u.tag===5){if(c===null){c=u;try{n=u.stateNode,h?(s=n.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(a=u.stateNode,l=u.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=xC("display",o))}catch(g){Ut(e,e.return,g)}}}else if(u.tag===6){if(c===null)try{u.stateNode.nodeValue=h?"":u.memoizedProps}catch(g){Ut(e,e.return,g)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break t;for(;u.sibling===null;){if(u.return===null||u.return===e)break t;c===u&&(c=null),u=u.return}c===u&&(c=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:yr(t,e),Pr(e),i&4&&Py(e);break;case 21:break;default:yr(t,e),Pr(e)}}function Pr(e){var t=e.flags;if(t&2){try{t:{for(var r=e.return;r!==null;){if(j1(r)){var i=r;break t}r=r.return}throw Error(j(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(ha(n,""),i.flags&=-33);var s=Iy(e);tf(e,s,n);break;case 3:case 4:var o=i.stateNode.containerInfo,a=Iy(e);Jd(e,a,o);break;default:throw Error(j(161))}}catch(l){Ut(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hL(e,t,r){X=e,V1(e)}function V1(e,t,r){for(var i=(e.mode&1)!==0;X!==null;){var n=X,s=n.child;if(n.tag===22&&i){var o=n.memoizedState!==null||bl;if(!o){var a=n.alternate,l=a!==null&&a.memoizedState!==null||ve;a=bl;var h=ve;if(bl=o,(ve=l)&&!h)for(X=n;X!==null;)o=X,l=o.child,o.tag===22&&o.memoizedState!==null?Ny(n):l!==null?(l.return=o,X=l):Ny(n);for(;s!==null;)X=s,V1(s),s=s.sibling;X=n,bl=a,ve=h}Dy(e)}else n.subtreeFlags&8772&&s!==null?(s.return=n,X=s):Dy(e)}}function Dy(e){for(;X!==null;){var t=X;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ve||Bc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!ve)if(r===null)i.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:xr(t.type,r.memoizedProps);i.componentDidUpdate(n,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&by(t,s,i);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}by(t,o,r)}break;case 5:var a=t.stateNode;if(r===null&&t.flags&4){r=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var h=t.alternate;if(h!==null){var c=h.memoizedState;if(c!==null){var u=c.dehydrated;u!==null&&fa(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(j(163))}ve||t.flags&512&&Kd(t)}catch(f){Ut(t,t.return,f)}}if(t===e){X=null;break}if(r=t.sibling,r!==null){r.return=t.return,X=r;break}X=t.return}}function Ry(e){for(;X!==null;){var t=X;if(t===e){X=null;break}var r=t.sibling;if(r!==null){r.return=t.return,X=r;break}X=t.return}}function Ny(e){for(;X!==null;){var t=X;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Bc(4,t)}catch(l){Ut(t,r,l)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var n=t.return;try{i.componentDidMount()}catch(l){Ut(t,n,l)}}var s=t.return;try{Kd(t)}catch(l){Ut(t,s,l)}break;case 5:var o=t.return;try{Kd(t)}catch(l){Ut(t,o,l)}}}catch(l){Ut(t,t.return,l)}if(t===e){X=null;break}var a=t.sibling;if(a!==null){a.return=t.return,X=a;break}X=t.return}}var cL=Math.ceil,Eh=xi.ReactCurrentDispatcher,Zp=xi.ReactCurrentOwner,cr=xi.ReactCurrentBatchConfig,vt=0,ae=null,Qt=null,fe=0,Ze=0,fs=Zi(0),ie=0,Sa=null,Sn=0,Lc=0,Kp=0,Ko=null,Ne=null,Jp=0,js=1/0,ii=null,Fh=!1,ef=null,Ni=null,vl=!1,Ai=null,Ah=0,Jo=0,rf=null,Gl=-1,Xl=0;function Ae(){return vt&6?Yt():Gl!==-1?Gl:Gl=Yt()}function zi(e){return e.mode&1?vt&2&&fe!==0?fe&-fe:VB.transition!==null?(Xl===0&&(Xl=AC()),Xl):(e=Lt,e!==0||(e=window.event,e=e===void 0?16:RC(e.type)),e):1}function _r(e,t,r,i){if(50<Jo)throw Jo=0,rf=null,Error(j(185));za(e,r,i),(!(vt&2)||e!==ae)&&(e===ae&&(!(vt&2)&&(Lc|=r),ie===4&&Ei(e,fe)),Ye(e,i),r===1&&vt===0&&!(t.mode&1)&&(js=Yt()+500,Sc&&Ki()))}function Ye(e,t){var r=e.callbackNode;V_(e,t);var i=ph(e,e===ae?fe:0);if(i===0)r!==null&&Gm(r),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(r!=null&&Gm(r),t===1)e.tag===0?YB(zy.bind(null,e)):i1(zy.bind(null,e)),WB(function(){!(vt&6)&&Ki()}),r=null;else{switch(MC(i)){case 1:r=Tp;break;case 4:r=EC;break;case 16:r=fh;break;case 536870912:r=FC;break;default:r=fh}r=ek(r,G1.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function G1(e,t){if(Gl=-1,Xl=0,vt&6)throw Error(j(327));var r=e.callbackNode;if(ks()&&e.callbackNode!==r)return null;var i=ph(e,e===ae?fe:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=Mh(e,i);else{t=i;var n=vt;vt|=2;var s=Q1();(ae!==e||fe!==t)&&(ii=null,js=Yt()+500,yn(e,t));do try{fL();break}catch(a){X1(e,a)}while(!0);Rp(),Eh.current=s,vt=n,Qt!==null?t=0:(ae=null,fe=0,t=ie)}if(t!==0){if(t===2&&(n=Ed(e),n!==0&&(i=n,t=nf(e,n))),t===1)throw r=Sa,yn(e,0),Ei(e,i),Ye(e,Yt()),r;if(t===6)Ei(e,i);else{if(n=e.current.alternate,!(i&30)&&!uL(n)&&(t=Mh(e,i),t===2&&(s=Ed(e),s!==0&&(i=s,t=nf(e,s))),t===1))throw r=Sa,yn(e,0),Ei(e,i),Ye(e,Yt()),r;switch(e.finishedWork=n,e.finishedLanes=i,t){case 0:case 1:throw Error(j(345));case 2:on(e,Ne,ii);break;case 3:if(Ei(e,i),(i&130023424)===i&&(t=Jp+500-Yt(),10<t)){if(ph(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){Ae(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Dd(on.bind(null,e,Ne,ii),t);break}on(e,Ne,ii);break;case 4:if(Ei(e,i),(i&4194240)===i)break;for(t=e.eventTimes,n=-1;0<i;){var o=31-Tr(i);s=1<<o,o=t[o],o>n&&(n=o),i&=~s}if(i=n,i=Yt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*cL(i/1960))-i,10<i){e.timeoutHandle=Dd(on.bind(null,e,Ne,ii),i);break}on(e,Ne,ii);break;case 5:on(e,Ne,ii);break;default:throw Error(j(329))}}}return Ye(e,Yt()),e.callbackNode===r?G1.bind(null,e):null}function nf(e,t){var r=Ko;return e.current.memoizedState.isDehydrated&&(yn(e,t).flags|=256),e=Mh(e,t),e!==2&&(t=Ne,Ne=r,t!==null&&sf(t)),e}function sf(e){Ne===null?Ne=e:Ne.push.apply(Ne,e)}function uL(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var i=0;i<r.length;i++){var n=r[i],s=n.getSnapshot;n=n.value;try{if(!Er(s(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ei(e,t){for(t&=~Kp,t&=~Lc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Tr(t),i=1<<r;e[r]=-1,t&=~i}}function zy(e){if(vt&6)throw Error(j(327));ks();var t=ph(e,0);if(!(t&1))return Ye(e,Yt()),null;var r=Mh(e,t);if(e.tag!==0&&r===2){var i=Ed(e);i!==0&&(t=i,r=nf(e,i))}if(r===1)throw r=Sa,yn(e,0),Ei(e,t),Ye(e,Yt()),r;if(r===6)throw Error(j(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,on(e,Ne,ii),Ye(e,Yt()),null}function tg(e,t){var r=vt;vt|=1;try{return e(t)}finally{vt=r,vt===0&&(js=Yt()+500,Sc&&Ki())}}function Tn(e){Ai!==null&&Ai.tag===0&&!(vt&6)&&ks();var t=vt;vt|=1;var r=cr.transition,i=Lt;try{if(cr.transition=null,Lt=1,e)return e()}finally{Lt=i,cr.transition=r,vt=t,!(vt&6)&&Ki()}}function eg(){Ze=fs.current,Pt(fs)}function yn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,qB(r)),Qt!==null)for(r=Qt.return;r!==null;){var i=r;switch(Ip(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Ch();break;case 3:Ws(),Pt(je),Pt(Se),jp();break;case 5:Hp(i);break;case 4:Ws();break;case 13:Pt(Nt);break;case 19:Pt(Nt);break;case 10:Np(i.type._context);break;case 22:case 23:eg()}r=r.return}if(ae=e,Qt=e=qi(e.current,null),fe=Ze=t,ie=0,Sa=null,Kp=Lc=Sn=0,Ne=Ko=null,un!==null){for(t=0;t<un.length;t++)if(r=un[t],i=r.interleaved,i!==null){r.interleaved=null;var n=i.next,s=r.pending;if(s!==null){var o=s.next;s.next=n,i.next=o}r.pending=i}un=null}return e}function X1(e,t){do{var r=Qt;try{if(Rp(),Ul.current=Lh,Bh){for(var i=zt.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}Bh=!1}if(wn=0,se=te=zt=null,Qo=!1,ba=0,Zp.current=null,r===null||r.return===null){ie=1,Sa=t,Qt=null;break}t:{var s=e,o=r.return,a=r,l=t;if(t=fe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var h=l,c=a,u=c.tag;if(!(c.mode&1)&&(u===0||u===11||u===15)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=By(o);if(d!==null){d.flags&=-257,Ly(d,o,a,s,t),d.mode&1&&_y(s,h,t),t=d,l=h;var p=t.updateQueue;if(p===null){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break t}else{if(!(t&1)){_y(s,h,t),rg();break t}l=Error(j(426))}}else if(Rt&&a.mode&1){var x=By(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),Ly(x,o,a,s,t),Pp(Hs(l,a));break t}}s=l=Hs(l,a),ie!==4&&(ie=2),Ko===null?Ko=[s]:Ko.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var y=M1(s,l,t);ky(s,y);break t;case 1:a=l;var C=s.type,k=s.stateNode;if(!(s.flags&128)&&(typeof C.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(Ni===null||!Ni.has(k)))){s.flags|=65536,t&=-t,s.lanes|=t;var v=$1(s,a,t);ky(s,v);break t}}s=s.return}while(s!==null)}K1(r)}catch(S){t=S,Qt===r&&r!==null&&(Qt=r=r.return);continue}break}while(!0)}function Q1(){var e=Eh.current;return Eh.current=Lh,e===null?Lh:e}function rg(){(ie===0||ie===3||ie===2)&&(ie=4),ae===null||!(Sn&268435455)&&!(Lc&268435455)||Ei(ae,fe)}function Mh(e,t){var r=vt;vt|=2;var i=Q1();(ae!==e||fe!==t)&&(ii=null,yn(e,t));do try{dL();break}catch(n){X1(e,n)}while(!0);if(Rp(),vt=r,Eh.current=i,Qt!==null)throw Error(j(261));return ae=null,fe=0,ie}function dL(){for(;Qt!==null;)Z1(Qt)}function fL(){for(;Qt!==null&&!R_();)Z1(Qt)}function Z1(e){var t=tk(e.alternate,e,Ze);e.memoizedProps=e.pendingProps,t===null?K1(e):Qt=t,Zp.current=null}function K1(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=oL(r,t),r!==null){r.flags&=32767,Qt=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ie=6,Qt=null;return}}else if(r=sL(r,t,Ze),r!==null){Qt=r;return}if(t=t.sibling,t!==null){Qt=t;return}Qt=t=e}while(t!==null);ie===0&&(ie=5)}function on(e,t,r){var i=Lt,n=cr.transition;try{cr.transition=null,Lt=1,pL(e,t,r,i)}finally{cr.transition=n,Lt=i}return null}function pL(e,t,r,i){do ks();while(Ai!==null);if(vt&6)throw Error(j(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(j(177));e.callbackNode=null,e.callbackPriority=0;var s=r.lanes|r.childLanes;if(G_(e,s),e===ae&&(Qt=ae=null,fe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||vl||(vl=!0,ek(fh,function(){return ks(),null})),s=(r.flags&15990)!==0,r.subtreeFlags&15990||s){s=cr.transition,cr.transition=null;var o=Lt;Lt=1;var a=vt;vt|=4,Zp.current=null,lL(e,r),Y1(r,e),OB(Id),gh=!!Od,Id=Od=null,e.current=r,hL(r),N_(),vt=a,Lt=o,cr.transition=s}else e.current=r;if(vl&&(vl=!1,Ai=e,Ah=n),s=e.pendingLanes,s===0&&(Ni=null),W_(r.stateNode),Ye(e,Yt()),t!==null)for(i=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],i(n.value,{componentStack:n.stack,digest:n.digest});if(Fh)throw Fh=!1,e=ef,ef=null,e;return Ah&1&&e.tag!==0&&ks(),s=e.pendingLanes,s&1?e===rf?Jo++:(Jo=0,rf=e):Jo=0,Ki(),null}function ks(){if(Ai!==null){var e=MC(Ah),t=cr.transition,r=Lt;try{if(cr.transition=null,Lt=16>e?16:e,Ai===null)var i=!1;else{if(e=Ai,Ai=null,Ah=0,vt&6)throw Error(j(331));var n=vt;for(vt|=4,X=e.current;X!==null;){var s=X,o=s.child;if(X.flags&16){var a=s.deletions;if(a!==null){for(var l=0;l<a.length;l++){var h=a[l];for(X=h;X!==null;){var c=X;switch(c.tag){case 0:case 11:case 15:Zo(8,c,s)}var u=c.child;if(u!==null)u.return=c,X=u;else for(;X!==null;){c=X;var f=c.sibling,d=c.return;if(H1(c),c===h){X=null;break}if(f!==null){f.return=d,X=f;break}X=d}}}var p=s.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var x=g.sibling;g.sibling=null,g=x}while(g!==null)}}X=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,X=o;else t:for(;X!==null;){if(s=X,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Zo(9,s,s.return)}var y=s.sibling;if(y!==null){y.return=s.return,X=y;break t}X=s.return}}var C=e.current;for(X=C;X!==null;){o=X;var k=o.child;if(o.subtreeFlags&2064&&k!==null)k.return=o,X=k;else t:for(o=C;X!==null;){if(a=X,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Bc(9,a)}}catch(S){Ut(a,a.return,S)}if(a===o){X=null;break t}var v=a.sibling;if(v!==null){v.return=a.return,X=v;break t}X=a.return}}if(vt=n,Ki(),Hr&&typeof Hr.onPostCommitFiberRoot=="function")try{Hr.onPostCommitFiberRoot(Cc,e)}catch{}i=!0}return i}finally{Lt=r,cr.transition=t}}return!1}function qy(e,t,r){t=Hs(r,t),t=M1(e,t,1),e=Ri(e,t,1),t=Ae(),e!==null&&(za(e,1,t),Ye(e,t))}function Ut(e,t,r){if(e.tag===3)qy(e,e,r);else for(;t!==null;){if(t.tag===3){qy(t,e,r);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ni===null||!Ni.has(i))){e=Hs(r,e),e=$1(t,e,1),t=Ri(t,e,1),e=Ae(),t!==null&&(za(t,1,e),Ye(t,e));break}}t=t.return}}function gL(e,t,r){var i=e.pingCache;i!==null&&i.delete(t),t=Ae(),e.pingedLanes|=e.suspendedLanes&r,ae===e&&(fe&r)===r&&(ie===4||ie===3&&(fe&130023424)===fe&&500>Yt()-Jp?yn(e,0):Kp|=r),Ye(e,t)}function J1(e,t){t===0&&(e.mode&1?(t=dl,dl<<=1,!(dl&130023424)&&(dl=4194304)):t=1);var r=Ae();e=pi(e,t),e!==null&&(za(e,t,r),Ye(e,r))}function mL(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),J1(e,r)}function yL(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(j(314))}i!==null&&i.delete(t),J1(e,r)}var tk;tk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||je.current)We=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return We=!1,nL(e,t,r);We=!!(e.flags&131072)}else We=!1,Rt&&t.flags&1048576&&n1(t,vh,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Vl(e,t),e=t.pendingProps;var n=Ns(t,Se.current);Cs(t,r),n=Yp(null,t,i,e,n,r);var s=Vp();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(i)?(s=!0,kh(t)):s=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,qp(t),n.updater=_c,t.stateNode=n,n._reactInternals=t,jd(t,i,e,r),t=Vd(null,t,i,!0,s,r)):(t.tag=0,Rt&&s&&Op(t),Be(null,t,n,r),t=t.child),t;case 16:i=t.elementType;t:{switch(Vl(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=CL(i),e=xr(i,e),n){case 0:t=Yd(null,t,i,e,r);break t;case 1:t=Ay(null,t,i,e,r);break t;case 11:t=Ey(null,t,i,e,r);break t;case 14:t=Fy(null,t,i,xr(i.type,e),r);break t}throw Error(j(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:xr(i,n),Yd(e,t,i,n,r);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:xr(i,n),Ay(e,t,i,n,r);case 3:t:{if(D1(t),e===null)throw Error(j(387));i=t.pendingProps,s=t.memoizedState,n=s.element,c1(e,t),Th(t,i,null,r);var o=t.memoizedState;if(i=o.element,s.isDehydrated)if(s={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){n=Hs(Error(j(423)),t),t=My(e,t,i,r,n);break t}else if(i!==n){n=Hs(Error(j(424)),t),t=My(e,t,i,r,n);break t}else for(Ke=Di(t.stateNode.containerInfo.firstChild),Je=t,Rt=!0,kr=null,r=l1(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(zs(),i===n){t=gi(e,t,r);break t}Be(e,t,i,r)}t=t.child}return t;case 5:return u1(t),e===null&&qd(t),i=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Pd(i,n)?o=null:s!==null&&Pd(i,s)&&(t.flags|=32),P1(e,t),Be(e,t,o,r),t.child;case 6:return e===null&&qd(t),null;case 13:return R1(e,t,r);case 4:return Wp(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=qs(t,null,i,r):Be(e,t,i,r),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:xr(i,n),Ey(e,t,i,n,r);case 7:return Be(e,t,t.pendingProps,r),t.child;case 8:return Be(e,t,t.pendingProps.children,r),t.child;case 12:return Be(e,t,t.pendingProps.children,r),t.child;case 10:t:{if(i=t.type._context,n=t.pendingProps,s=t.memoizedProps,o=n.value,Mt(wh,i._currentValue),i._currentValue=o,s!==null)if(Er(s.value,o)){if(s.children===n.children&&!je.current){t=gi(e,t,r);break t}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===i){if(s.tag===1){l=hi(-1,r&-r),l.tag=2;var h=s.updateQueue;if(h!==null){h=h.shared;var c=h.pending;c===null?l.next=l:(l.next=c.next,c.next=l),h.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Wd(s.return,r,t),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(j(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Wd(o,r,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Be(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,Cs(t,r),n=ur(n),i=i(n),t.flags|=1,Be(e,t,i,r),t.child;case 14:return i=t.type,n=xr(i,t.pendingProps),n=xr(i.type,n),Fy(e,t,i,n,r);case 15:return O1(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:xr(i,n),Vl(e,t),t.tag=1,Ue(i)?(e=!0,kh(t)):e=!1,Cs(t,r),A1(t,i,n),jd(t,i,n,r),Vd(null,t,i,!0,e,r);case 19:return N1(e,t,r);case 22:return I1(e,t,r)}throw Error(j(156,t.tag))};function ek(e,t){return LC(e,t)}function xL(e,t,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,r,i){return new xL(e,t,r,i)}function ig(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CL(e){if(typeof e=="function")return ig(e)?1:0;if(e!=null){if(e=e.$$typeof,e===vp)return 11;if(e===wp)return 14}return 2}function qi(e,t){var r=e.alternate;return r===null?(r=hr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ql(e,t,r,i,n,s){var o=2;if(i=e,typeof e=="function")ig(e)&&(o=1);else if(typeof e=="string")o=5;else t:switch(e){case is:return xn(r.children,n,s,t);case bp:o=8,n|=8;break;case pd:return e=hr(12,r,t,n|2),e.elementType=pd,e.lanes=s,e;case gd:return e=hr(13,r,t,n),e.elementType=gd,e.lanes=s,e;case md:return e=hr(19,r,t,n),e.elementType=md,e.lanes=s,e;case uC:return Ec(r,n,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hC:o=10;break t;case cC:o=9;break t;case vp:o=11;break t;case wp:o=14;break t;case Ti:o=16,i=null;break t}throw Error(j(130,e==null?e:typeof e,""))}return t=hr(o,r,t,n),t.elementType=e,t.type=i,t.lanes=s,t}function xn(e,t,r,i){return e=hr(7,e,i,t),e.lanes=r,e}function Ec(e,t,r,i){return e=hr(22,e,i,t),e.elementType=uC,e.lanes=r,e.stateNode={isHidden:!1},e}function qu(e,t,r){return e=hr(6,e,null,t),e.lanes=r,e}function Wu(e,t,r){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kL(e,t,r,i,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vu(0),this.expirationTimes=vu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vu(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function ng(e,t,r,i,n,s,o,a,l){return e=new kL(e,t,r,a,l),t===1?(t=1,s===!0&&(t|=8)):t=0,s=hr(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:i,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qp(s),e}function bL(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rs,key:i==null?null:""+i,children:e,containerInfo:t,implementation:r}}function rk(e){if(!e)return Ui;e=e._reactInternals;t:{if(Pn(e)!==e||e.tag!==1)throw Error(j(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(Ue(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(j(171))}if(e.tag===1){var r=e.type;if(Ue(r))return r1(e,r,t)}return t}function ik(e,t,r,i,n,s,o,a,l){return e=ng(r,i,!0,e,n,s,o,a,l),e.context=rk(null),r=e.current,i=Ae(),n=zi(r),s=hi(i,n),s.callback=t??null,Ri(r,s,n),e.current.lanes=n,za(e,n,i),Ye(e,i),e}function Fc(e,t,r,i){var n=t.current,s=Ae(),o=zi(n);return r=rk(r),t.context===null?t.context=r:t.pendingContext=r,t=hi(s,o),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=Ri(n,t,o),e!==null&&(_r(e,n,o,s),jl(e,n,o)),o}function $h(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Wy(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function sg(e,t){Wy(e,t),(e=e.alternate)&&Wy(e,t)}function vL(){return null}var nk=typeof reportError=="function"?reportError:function(e){console.error(e)};function og(e){this._internalRoot=e}Ac.prototype.render=og.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(j(409));Fc(e,t,null,null)};Ac.prototype.unmount=og.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Tn(function(){Fc(null,e,null,null)}),t[fi]=null}};function Ac(e){this._internalRoot=e}Ac.prototype.unstable_scheduleHydration=function(e){if(e){var t=IC();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Li.length&&t!==0&&t<Li[r].priority;r++);Li.splice(r,0,e),r===0&&DC(e)}};function ag(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Hy(){}function wL(e,t,r,i,n){if(n){if(typeof i=="function"){var s=i;i=function(){var h=$h(o);s.call(h)}}var o=ik(t,i,e,0,null,!1,!1,"",Hy);return e._reactRootContainer=o,e[fi]=o.current,ma(e.nodeType===8?e.parentNode:e),Tn(),o}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var a=i;i=function(){var h=$h(l);a.call(h)}}var l=ng(e,0,!1,null,null,!1,!1,"",Hy);return e._reactRootContainer=l,e[fi]=l.current,ma(e.nodeType===8?e.parentNode:e),Tn(function(){Fc(t,l,r,i)}),l}function $c(e,t,r,i,n){var s=r._reactRootContainer;if(s){var o=s;if(typeof n=="function"){var a=n;n=function(){var l=$h(o);a.call(l)}}Fc(t,o,e,n)}else o=wL(r,t,e,n,i);return $h(o)}$C=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Oo(t.pendingLanes);r!==0&&(_p(t,r|1),Ye(t,Yt()),!(vt&6)&&(js=Yt()+500,Ki()))}break;case 13:Tn(function(){var i=pi(e,1);if(i!==null){var n=Ae();_r(i,e,1,n)}}),sg(e,1)}};Bp=function(e){if(e.tag===13){var t=pi(e,134217728);if(t!==null){var r=Ae();_r(t,e,134217728,r)}sg(e,134217728)}};OC=function(e){if(e.tag===13){var t=zi(e),r=pi(e,t);if(r!==null){var i=Ae();_r(r,e,t,i)}sg(e,t)}};IC=function(){return Lt};PC=function(e,t){var r=Lt;try{return Lt=e,t()}finally{Lt=r}};_d=function(e,t,r){switch(t){case"input":if(Cd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var n=wc(i);if(!n)throw Error(j(90));fC(i),Cd(i,n)}}}break;case"textarea":gC(e,r);break;case"select":t=r.value,t!=null&&gs(e,!!r.multiple,t,!1)}};vC=tg;wC=Tn;var SL={usingClientEntryPoint:!1,Events:[Wa,as,wc,kC,bC,tg]},yo={findFiberByHostInstance:cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},TL={bundleType:yo.bundleType,version:yo.version,rendererPackageName:yo.rendererPackageName,rendererConfig:yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xi.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_C(e),e===null?null:e.stateNode},findFiberByHostInstance:yo.findFiberByHostInstance||vL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{Cc=wl.inject(TL),Hr=wl}catch{}}ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=SL;ir.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ag(t))throw Error(j(200));return bL(e,t,null,r)};ir.createRoot=function(e,t){if(!ag(e))throw Error(j(299));var r=!1,i="",n=nk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=ng(e,1,!1,null,null,r,!1,i,n),e[fi]=t.current,ma(e.nodeType===8?e.parentNode:e),new og(t)};ir.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(j(188)):(e=Object.keys(e).join(","),Error(j(268,e)));return e=_C(t),e=e===null?null:e.stateNode,e};ir.flushSync=function(e){return Tn(e)};ir.hydrate=function(e,t,r){if(!Mc(t))throw Error(j(200));return $c(null,e,t,!0,r)};ir.hydrateRoot=function(e,t,r){if(!ag(e))throw Error(j(405));var i=r!=null&&r.hydratedSources||null,n=!1,s="",o=nk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=ik(t,null,e,1,r??null,n,!1,s,o),e[fi]=t.current,ma(e),i)for(e=0;e<i.length;e++)r=i[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Ac(t)};ir.render=function(e,t,r){if(!Mc(t))throw Error(j(200));return $c(null,e,t,!1,r)};ir.unmountComponentAtNode=function(e){if(!Mc(e))throw Error(j(40));return e._reactRootContainer?(Tn(function(){$c(null,null,e,!1,function(){e._reactRootContainer=null,e[fi]=null})}),!0):!1};ir.unstable_batchedUpdates=tg;ir.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Mc(r))throw Error(j(200));if(e==null||e._reactInternals===void 0)throw Error(j(38));return $c(e,t,r,!1,i)};ir.version="18.3.1-next-f1338f8080-20240426";function sk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sk)}catch(e){console.error(e)}}sk(),sC.exports=ir;var _L=sC.exports,jy=_L;dd.createRoot=jy.createRoot,dd.hydrateRoot=jy.hydrateRoot;function BL(){return U.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[U.jsx("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}),U.jsx("path",{d:"M8 21h8"}),U.jsx("path",{d:"M12 17v4"}),U.jsx("path",{d:"M9.5 7.5 15 10l-5.5 2.5z",fill:"currentColor",stroke:"none"})]})}const LL={idle:{label:"Connected",dotClass:"connected"},delivered:{label:"Content delivered",dotClass:"connected"},feedback:{label:"Feedback needed",dotClass:"feedback"}};function EL({connected:e,theme:t,setTheme:r,status:i}){const n=t==="dark"?"light":"dark",s=e?LL[i]:{label:"Disconnected",dotClass:"disconnected"};return U.jsxs("header",{className:"sticky top-0 z-40 flex h-14 items-center border-b bg-background px-4 shadow-sm",children:[U.jsxs("span",{className:"flex items-center gap-2.5",children:[U.jsx("span",{className:"h-6 w-6 text-[hsl(var(--primary))]",children:U.jsx(BL,{})}),U.jsx("span",{className:"text-base font-semibold tracking-tight",children:"LaunchDeck"})]}),U.jsxs("div",{className:"ml-auto flex items-center gap-3",children:[U.jsxs("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[U.jsx("span",{className:`deck-status-dot ${s.dotClass}`}),s.label]}),U.jsx("button",{onClick:()=>r(n),className:"flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":`Switch to ${n} mode`,children:t==="dark"?U.jsxs("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:[U.jsx("circle",{cx:"12",cy:"12",r:"5"}),U.jsx("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]}):U.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:U.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})})})]})]})}function FL({content:e,theme:t}){const r=bt.useRef(null);return bt.useEffect(()=>{const i=r.current;if(!i)return;const n=i.contentDocument;if(!n)return;const s=document.documentElement.classList.contains("dark");n.open(),n.write(`
|
|
42
|
+
<!DOCTYPE html>
|
|
43
|
+
<html>
|
|
44
|
+
<head>
|
|
45
|
+
<meta charset="UTF-8">
|
|
46
|
+
<style>
|
|
47
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
48
|
+
html, body {
|
|
49
|
+
margin: 0; padding: 0; height: 100%;
|
|
50
|
+
color: ${s?"#e4e4e7":"#18181b"};
|
|
51
|
+
background: transparent;
|
|
52
|
+
}
|
|
53
|
+
</style>
|
|
54
|
+
</head>
|
|
55
|
+
<body>${e}</body>
|
|
56
|
+
</html>
|
|
57
|
+
`),n.close()},[e,t]),U.jsx("iframe",{ref:r,sandbox:"allow-same-origin",className:"w-full h-full border-0",title:"HTML Preview"})}const AL="modulepreload",ML=function(e){return"/"+e},Uy={},kt=function(t,r,i){let n=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),a=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));n=Promise.allSettled(r.map(l=>{if(l=ML(l),l in Uy)return;Uy[l]=!0;const h=l.endsWith(".css"),c=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const u=document.createElement("link");if(u.rel=h?"stylesheet":AL,h||(u.as="script"),u.crossOrigin="",u.href=l,a&&u.setAttribute("nonce",a),document.head.appendChild(u),h)return new Promise((f,d)=>{u.addEventListener("load",f),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return n.then(o=>{for(const a of o||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};var ok={exports:{}};(function(e,t){(function(r,i){e.exports=i()})(t_,function(){var r=1e3,i=6e4,n=36e5,s="millisecond",o="second",a="minute",l="hour",h="day",c="week",u="month",f="quarter",d="year",p="date",g="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var $=["th","st","nd","rd"],F=D%100;return"["+D+($[(F-20)%10]||$[F]||$[0])+"]"}},k=function(D,$,F){var I=String(D);return!I||I.length>=$?D:""+Array($+1-I.length).join(F)+D},v={s:k,z:function(D){var $=-D.utcOffset(),F=Math.abs($),I=Math.floor(F/60),B=F%60;return($<=0?"+":"-")+k(I,2,"0")+":"+k(B,2,"0")},m:function D($,F){if($.date()<F.date())return-D(F,$);var I=12*(F.year()-$.year())+(F.month()-$.month()),B=$.clone().add(I,u),R=F-B<0,N=$.clone().add(I+(R?-1:1),u);return+(-(I+(F-B)/(R?B-N:N-B))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:u,y:d,w:c,d:h,D:p,h:l,m:a,s:o,ms:s,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},S="en",_={};_[S]=C;var w="$isDayjsObject",T=function(D){return D instanceof Y||!(!D||!D[w])},z=function D($,F,I){var B;if(!$)return S;if(typeof $=="string"){var R=$.toLowerCase();_[R]&&(B=R),F&&(_[R]=F,B=R);var N=$.split("-");if(!B&&N.length>1)return D(N[0])}else{var V=$.name;_[V]=$,B=V}return!I&&B&&(S=B),B||!I&&S},A=function(D,$){if(T(D))return D.clone();var F=typeof $=="object"?$:{};return F.date=D,F.args=arguments,new Y(F)},M=v;M.l=z,M.i=T,M.w=function(D,$){return A(D,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var Y=function(){function D(F){this.$L=z(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[w]=!0}var $=D.prototype;return $.parse=function(F){this.$d=function(I){var B=I.date,R=I.utc;if(B===null)return new Date(NaN);if(M.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var N=B.match(x);if(N){var V=N[2]-1||0,rt=(N[7]||"0").substring(0,3);return R?new Date(Date.UTC(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,rt)):new Date(N[1],V,N[3]||1,N[4]||0,N[5]||0,N[6]||0,rt)}}return new Date(B)}(F),this.init()},$.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},$.$utils=function(){return M},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(F,I){var B=A(F);return this.startOf(I)<=B&&B<=this.endOf(I)},$.isAfter=function(F,I){return A(F)<this.startOf(I)},$.isBefore=function(F,I){return this.endOf(I)<A(F)},$.$g=function(F,I,B){return M.u(F)?this[I]:this.set(B,F)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(F,I){var B=this,R=!!M.u(I)||I,N=M.p(F),V=function(Ve,et){var ft=M.w(B.$u?Date.UTC(B.$y,et,Ve):new Date(B.$y,et,Ve),B);return R?ft:ft.endOf(h)},rt=function(Ve,et){return M.w(B.toDate()[Ve].apply(B.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(et)),B)},st=this.$W,pt=this.$M,nt=this.$D,Ct="set"+(this.$u?"UTC":"");switch(N){case d:return R?V(1,0):V(31,11);case u:return R?V(1,pt):V(0,pt+1);case c:var $t=this.$locale().weekStart||0,Kt=(st<$t?st+7:st)-$t;return V(R?nt-Kt:nt+(6-Kt),pt);case h:case p:return rt(Ct+"Hours",0);case l:return rt(Ct+"Minutes",1);case a:return rt(Ct+"Seconds",2);case o:return rt(Ct+"Milliseconds",3);default:return this.clone()}},$.endOf=function(F){return this.startOf(F,!1)},$.$set=function(F,I){var B,R=M.p(F),N="set"+(this.$u?"UTC":""),V=(B={},B[h]=N+"Date",B[p]=N+"Date",B[u]=N+"Month",B[d]=N+"FullYear",B[l]=N+"Hours",B[a]=N+"Minutes",B[o]=N+"Seconds",B[s]=N+"Milliseconds",B)[R],rt=R===h?this.$D+(I-this.$W):I;if(R===u||R===d){var st=this.clone().set(p,1);st.$d[V](rt),st.init(),this.$d=st.set(p,Math.min(this.$D,st.daysInMonth())).$d}else V&&this.$d[V](rt);return this.init(),this},$.set=function(F,I){return this.clone().$set(F,I)},$.get=function(F){return this[M.p(F)]()},$.add=function(F,I){var B,R=this;F=Number(F);var N=M.p(I),V=function(pt){var nt=A(R);return M.w(nt.date(nt.date()+Math.round(pt*F)),R)};if(N===u)return this.set(u,this.$M+F);if(N===d)return this.set(d,this.$y+F);if(N===h)return V(1);if(N===c)return V(7);var rt=(B={},B[a]=i,B[l]=n,B[o]=r,B)[N]||1,st=this.$d.getTime()+F*rt;return M.w(st,this)},$.subtract=function(F,I){return this.add(-1*F,I)},$.format=function(F){var I=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var R=F||"YYYY-MM-DDTHH:mm:ssZ",N=M.z(this),V=this.$H,rt=this.$m,st=this.$M,pt=B.weekdays,nt=B.months,Ct=B.meridiem,$t=function(et,ft,Et,Ft){return et&&(et[ft]||et(I,R))||Et[ft].slice(0,Ft)},Kt=function(et){return M.s(V%12||12,et,"0")},Ve=Ct||function(et,ft,Et){var Ft=et<12?"AM":"PM";return Et?Ft.toLowerCase():Ft};return R.replace(y,function(et,ft){return ft||function(Et){switch(Et){case"YY":return String(I.$y).slice(-2);case"YYYY":return M.s(I.$y,4,"0");case"M":return st+1;case"MM":return M.s(st+1,2,"0");case"MMM":return $t(B.monthsShort,st,nt,3);case"MMMM":return $t(nt,st);case"D":return I.$D;case"DD":return M.s(I.$D,2,"0");case"d":return String(I.$W);case"dd":return $t(B.weekdaysMin,I.$W,pt,2);case"ddd":return $t(B.weekdaysShort,I.$W,pt,3);case"dddd":return pt[I.$W];case"H":return String(V);case"HH":return M.s(V,2,"0");case"h":return Kt(1);case"hh":return Kt(2);case"a":return Ve(V,rt,!0);case"A":return Ve(V,rt,!1);case"m":return String(rt);case"mm":return M.s(rt,2,"0");case"s":return String(I.$s);case"ss":return M.s(I.$s,2,"0");case"SSS":return M.s(I.$ms,3,"0");case"Z":return N}return null}(et)||N.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(F,I,B){var R,N=this,V=M.p(I),rt=A(F),st=(rt.utcOffset()-this.utcOffset())*i,pt=this-rt,nt=function(){return M.m(N,rt)};switch(V){case d:R=nt()/12;break;case u:R=nt();break;case f:R=nt()/3;break;case c:R=(pt-st)/6048e5;break;case h:R=(pt-st)/864e5;break;case l:R=pt/n;break;case a:R=pt/i;break;case o:R=pt/r;break;default:R=pt}return B?R:M.a(R)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return _[this.$L]},$.locale=function(F,I){if(!F)return this.$L;var B=this.clone(),R=z(F,I,!0);return R&&(B.$L=R),B},$.clone=function(){return M.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},D}(),H=Y.prototype;return A.prototype=H,[["$ms",s],["$s",o],["$m",a],["$H",l],["$W",h],["$M",u],["$y",d],["$D",p]].forEach(function(D){H[D[1]]=function($){return this.$g($,D[0],D[1])}}),A.extend=function(D,$){return D.$i||(D($,Y,A),D.$i=!0),A},A.locale=z,A.isDayjs=T,A.unix=function(D){return A(1e3*D)},A.en=_[S],A.Ls=_,A.p={},A})})(ok);var $L=ok.exports;const OL=Vx($L);var ak=Object.defineProperty,m=(e,t)=>ak(e,"name",{value:t,configurable:!0}),IL=(e,t)=>{for(var r in t)ak(e,r,{get:t[r],enumerable:!0})},Jr={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},q={trace:m((...e)=>{},"trace"),debug:m((...e)=>{},"debug"),info:m((...e)=>{},"info"),warn:m((...e)=>{},"warn"),error:m((...e)=>{},"error"),fatal:m((...e)=>{},"fatal")},lg=m(function(e="fatal"){let t=Jr.fatal;typeof e=="string"?e.toLowerCase()in Jr&&(t=Jr[e]):typeof e=="number"&&(t=e),q.trace=()=>{},q.debug=()=>{},q.info=()=>{},q.warn=()=>{},q.error=()=>{},q.fatal=()=>{},t<=Jr.fatal&&(q.fatal=console.error?console.error.bind(console,or("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",or("FATAL"))),t<=Jr.error&&(q.error=console.error?console.error.bind(console,or("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",or("ERROR"))),t<=Jr.warn&&(q.warn=console.warn?console.warn.bind(console,or("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",or("WARN"))),t<=Jr.info&&(q.info=console.info?console.info.bind(console,or("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",or("INFO"))),t<=Jr.debug&&(q.debug=console.debug?console.debug.bind(console,or("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",or("DEBUG"))),t<=Jr.trace&&(q.trace=console.debug?console.debug.bind(console,or("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",or("TRACE")))},"setLogLevel"),or=m(e=>`%c${OL().format("ss.SSS")} : ${e} : `,"format");const Zl={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:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;switch(i){case"r":return Zl.hue2rgb(s,n,e+1/3)*255;case"g":return Zl.hue2rgb(s,n,e)*255;case"b":return Zl.hue2rgb(s,n,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const n=Math.max(e,t,r),s=Math.min(e,t,r),o=(n+s)/2;if(i==="l")return o*100;if(n===s)return 0;const a=n-s,l=o>.5?a/(2-n-s):a/(n+s);if(i==="s")return l*100;switch(n){case e:return((t-r)/a+(t<r?6:0))*60;case t:return((r-e)/a+2)*60;case r:return((e-t)/a+4)*60;default:return-1}}},PL={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},DL={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},dt={channel:Zl,lang:PL,unit:DL},Si={};for(let e=0;e<=255;e++)Si[e]=dt.unit.dec2hex(e);const Ce={ALL:0,RGB:1,HSL:2};class RL{constructor(){this.type=Ce.ALL}get(){return this.type}set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=Ce.ALL}is(t){return this.type===t}}class NL{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new RL}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=Ce.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=dt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=dt.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=dt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=dt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=dt.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=dt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(Ce.HSL)&&r!==void 0?r:(this._ensureHSL(),dt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(Ce.HSL)&&r!==void 0?r:(this._ensureHSL(),dt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(Ce.HSL)&&r!==void 0?r:(this._ensureHSL(),dt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(Ce.RGB)&&r!==void 0?r:(this._ensureRGB(),dt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(Ce.RGB)&&r!==void 0?r:(this._ensureRGB(),dt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(Ce.RGB)&&r!==void 0?r:(this._ensureRGB(),dt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(Ce.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(Ce.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(Ce.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(Ce.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(Ce.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(Ce.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Oc=new NL({r:0,g:0,b:0,a:0},"transparent"),bs={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(bs.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,s=n%4===0,o=n>4,a=o?1:17,l=o?8:4,h=s?0:-1,c=o?255:15;return Oc.set({r:(i>>l*(h+3)&c)*a,g:(i>>l*(h+2)&c)*a,b:(i>>l*(h+1)&c)*a,a:s?(i&c)*a/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Si[Math.round(t)]}${Si[Math.round(r)]}${Si[Math.round(i)]}${Si[Math.round(n*255)]}`:`#${Si[Math.round(t)]}${Si[Math.round(r)]}${Si[Math.round(i)]}`}},fn={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:e=>{const t=e.match(fn.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return dt.channel.clamp.h(parseFloat(r)*.9);case"rad":return dt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return dt.channel.clamp.h(parseFloat(r)*360)}}return dt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(fn.re);if(!r)return;const[,i,n,s,o,a]=r;return Oc.set({h:fn._hue2deg(i),s:dt.channel.clamp.s(parseFloat(n)),l:dt.channel.clamp.l(parseFloat(s)),a:o?dt.channel.clamp.a(a?parseFloat(o)/100:parseFloat(o)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${dt.lang.round(t)}, ${dt.lang.round(r)}%, ${dt.lang.round(i)}%, ${n})`:`hsl(${dt.lang.round(t)}, ${dt.lang.round(r)}%, ${dt.lang.round(i)}%)`}},ta={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:e=>{e=e.toLowerCase();const t=ta.colors[e];if(t)return bs.parse(t)},stringify:e=>{const t=bs.stringify(e);for(const r in ta.colors)if(ta.colors[r]===t)return r}},Po={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:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(Po.re);if(!r)return;const[,i,n,s,o,a,l,h,c]=r;return Oc.set({r:dt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:dt.channel.clamp.g(o?parseFloat(s)*2.55:parseFloat(s)),b:dt.channel.clamp.b(l?parseFloat(a)*2.55:parseFloat(a)),a:h?dt.channel.clamp.a(c?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${dt.lang.round(t)}, ${dt.lang.round(r)}, ${dt.lang.round(i)}, ${dt.lang.round(n)})`:`rgb(${dt.lang.round(t)}, ${dt.lang.round(r)}, ${dt.lang.round(i)})`}},Yr={format:{keyword:ta,hex:bs,rgb:Po,rgba:Po,hsl:fn,hsla:fn},parse:e=>{if(typeof e!="string")return e;const t=bs.parse(e)||Po.parse(e)||fn.parse(e)||ta.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Ce.HSL)||e.data.r===void 0?fn.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Po.stringify(e):bs.stringify(e)},lk=(e,t)=>{const r=Yr.parse(e);for(const i in t)r[i]=dt.channel.clamp[i](t[i]);return Yr.stringify(r)},Wi=(e,t,r=0,i=1)=>{if(typeof e!="number")return lk(e,{a:t});const n=Oc.set({r:dt.channel.clamp.r(e),g:dt.channel.clamp.g(t),b:dt.channel.clamp.b(r),a:dt.channel.clamp.a(i)});return Yr.stringify(n)},zL=e=>{const{r:t,g:r,b:i}=Yr.parse(e),n=.2126*dt.channel.toLinear(t)+.7152*dt.channel.toLinear(r)+.0722*dt.channel.toLinear(i);return dt.lang.round(n)},qL=e=>zL(e)>=.5,Ar=e=>!qL(e),hk=(e,t,r)=>{const i=Yr.parse(e),n=i[t],s=dt.channel.clamp[t](n+r);return n!==s&&(i[t]=s),Yr.stringify(i)},P=(e,t)=>hk(e,"l",t),O=(e,t)=>hk(e,"l",-t),b=(e,t)=>{const r=Yr.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return lk(e,i)},WL=(e,t,r=50)=>{const{r:i,g:n,b:s,a:o}=Yr.parse(e),{r:a,g:l,b:h,a:c}=Yr.parse(t),u=r/100,f=u*2-1,d=o-c,g=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,x=1-g,y=i*g+a*x,C=n*g+l*x,k=s*g+h*x,v=o*u+c*(1-u);return Wi(y,C,k,v)},E=(e,t=100)=>{const r=Yr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,WL(r,e,t)};/*! @license DOMPurify 3.4.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.2/LICENSE */const{entries:ck,setPrototypeOf:Yy,isFrozen:HL,getPrototypeOf:jL,getOwnPropertyDescriptor:UL}=Object;let{freeze:Me,seal:fr,create:Zn}=Object,{apply:of,construct:af}=typeof Reflect<"u"&&Reflect;Me||(Me=function(t){return t});fr||(fr=function(t){return t});of||(of=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return t.apply(r,n)});af||(af=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return new t(...i)});const xo=Zt(Array.prototype.forEach),YL=Zt(Array.prototype.lastIndexOf),Vy=Zt(Array.prototype.pop),Co=Zt(Array.prototype.push),VL=Zt(Array.prototype.splice),_e=Array.isArray,Do=Zt(String.prototype.toLowerCase),Hu=Zt(String.prototype.toString),Gy=Zt(String.prototype.match),Vn=Zt(String.prototype.replace),Xy=Zt(String.prototype.indexOf),GL=Zt(String.prototype.trim),XL=Zt(Number.prototype.toString),QL=Zt(Boolean.prototype.toString),Qy=typeof BigInt>"u"?null:Zt(BigInt.prototype.toString),Zy=typeof Symbol>"u"?null:Zt(Symbol.prototype.toString),jt=Zt(Object.prototype.hasOwnProperty),ko=Zt(Object.prototype.toString),he=Zt(RegExp.prototype.test),Sl=ZL(TypeError);function Zt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return of(e,t,i)}}function ZL(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return af(e,r)}}function gt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Do;if(Yy&&Yy(e,null),!_e(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const s=r(n);s!==n&&(HL(t)||(t[i]=s),n=s)}e[n]=!0}return e}function KL(e){for(let t=0;t<e.length;t++)jt(e,t)||(e[t]=null);return e}function Re(e){const t=Zn(null);for(const[r,i]of ck(e))jt(e,r)&&(_e(i)?t[r]=KL(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=Re(i):t[r]=i);return t}function JL(e){switch(typeof e){case"string":return e;case"number":return XL(e);case"boolean":return QL(e);case"bigint":return Qy?Qy(e):"0";case"symbol":return Zy?Zy(e):"Symbol()";case"undefined":return ko(e);case"function":case"object":{if(e===null)return ko(e);const t=e,r=Kn(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:ko(i)}return ko(e)}default:return ko(e)}}function Kn(e,t){for(;e!==null;){const i=UL(e,t);if(i){if(i.get)return Zt(i.get);if(typeof i.value=="function")return Zt(i.value)}e=jL(e)}function r(){return null}return r}function tE(e){try{return he(e,""),!0}catch{return!1}}const Ky=Me(["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"]),ju=Me(["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"]),Uu=Me(["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"]),eE=Me(["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"]),Yu=Me(["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"]),rE=Me(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jy=Me(["#text"]),t0=Me(["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"]),Vu=Me(["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"]),e0=Me(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),Tl=Me(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),iE=fr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),nE=fr(/<%[\w\W]*|[\w\W]*%>/gm),sE=fr(/\$\{[\w\W]*/gm),oE=fr(/^data-[\-\w.\u00B7-\uFFFF]+$/),aE=fr(/^aria-[\-\w]+$/),uk=fr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lE=fr(/^(?:\w+script|data):/i),hE=fr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dk=fr(/^html$/i),cE=fr(/^[a-z][.\w]*(-[.\w]+)+$/i);var r0=Object.freeze({__proto__:null,ARIA_ATTR:aE,ATTR_WHITESPACE:hE,CUSTOM_ELEMENT:cE,DATA_ATTR:oE,DOCTYPE_NAME:dk,ERB_EXPR:nE,IS_ALLOWED_URI:uk,IS_SCRIPT_OR_DATA:lE,MUSTACHE_EXPR:iE,TMPLIT_EXPR:sE});const bo={element:1,text:3,progressingInstruction:7,comment:8,document:9},uE=function(){return typeof window>"u"?null:window},dE=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(i=r.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},i0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function fk(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:uE();const t=at=>fk(at);if(t.version="3.4.2",t.removed=[],!e||!e.document||e.document.nodeType!==bo.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,n=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:o,Node:a,Element:l,NodeFilter:h,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:u,DOMParser:f,trustedTypes:d}=e,p=l.prototype,g=Kn(p,"cloneNode"),x=Kn(p,"remove"),y=Kn(p,"nextSibling"),C=Kn(p,"childNodes"),k=Kn(p,"parentNode");if(typeof o=="function"){const at=r.createElement("template");at.content&&at.content.ownerDocument&&(r=at.content.ownerDocument)}let v,S="";const{implementation:_,createNodeIterator:w,createDocumentFragment:T,getElementsByTagName:z}=r,{importNode:A}=i;let M=i0();t.isSupported=typeof ck=="function"&&typeof k=="function"&&_&&_.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Y,ERB_EXPR:H,TMPLIT_EXPR:D,DATA_ATTR:$,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:B,CUSTOM_ELEMENT:R}=r0;let{IS_ALLOWED_URI:N}=r0,V=null;const rt=gt({},[...Ky,...ju,...Uu,...Yu,...Jy]);let st=null;const pt=gt({},[...t0,...Vu,...e0,...Tl]);let nt=Object.seal(Zn(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}})),Ct=null,$t=null;const Kt=Object.seal(Zn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ve=!0,et=!0,ft=!1,Et=!0,Ft=!1,Ge=!0,ge=!1,Wn=!1,rl=!1,$r=!1,il=!1,nl=!1,xm=!0,Cm=!1;const km="user-content-";let ou=!0,ao=!1,Hn={},Or=null;const au=gt({},["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 bm=null;const vm=gt({},["audio","video","img","source","image","track"]);let lu=null;const wm=gt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),sl="http://www.w3.org/1998/Math/MathML",ol="http://www.w3.org/2000/svg",Ir="http://www.w3.org/1999/xhtml";let jn=Ir,hu=!1,cu=null;const UT=gt({},[sl,ol,Ir],Hu);let uu=gt({},["mi","mo","mn","ms","mtext"]),du=gt({},["annotation-xml"]);const YT=gt({},["title","style","font","a","script"]);let lo=null;const VT=["application/xhtml+xml","text/html"],GT="text/html";let Jt=null,Un=null;const XT=r.createElement("form"),Sm=function(L){return L instanceof RegExp||L instanceof Function},fu=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Un&&Un===L)return;(!L||typeof L!="object")&&(L={}),L=Re(L),lo=VT.indexOf(L.PARSER_MEDIA_TYPE)===-1?GT:L.PARSER_MEDIA_TYPE,Jt=lo==="application/xhtml+xml"?Hu:Do,V=jt(L,"ALLOWED_TAGS")&&_e(L.ALLOWED_TAGS)?gt({},L.ALLOWED_TAGS,Jt):rt,st=jt(L,"ALLOWED_ATTR")&&_e(L.ALLOWED_ATTR)?gt({},L.ALLOWED_ATTR,Jt):pt,cu=jt(L,"ALLOWED_NAMESPACES")&&_e(L.ALLOWED_NAMESPACES)?gt({},L.ALLOWED_NAMESPACES,Hu):UT,lu=jt(L,"ADD_URI_SAFE_ATTR")&&_e(L.ADD_URI_SAFE_ATTR)?gt(Re(wm),L.ADD_URI_SAFE_ATTR,Jt):wm,bm=jt(L,"ADD_DATA_URI_TAGS")&&_e(L.ADD_DATA_URI_TAGS)?gt(Re(vm),L.ADD_DATA_URI_TAGS,Jt):vm,Or=jt(L,"FORBID_CONTENTS")&&_e(L.FORBID_CONTENTS)?gt({},L.FORBID_CONTENTS,Jt):au,Ct=jt(L,"FORBID_TAGS")&&_e(L.FORBID_TAGS)?gt({},L.FORBID_TAGS,Jt):Re({}),$t=jt(L,"FORBID_ATTR")&&_e(L.FORBID_ATTR)?gt({},L.FORBID_ATTR,Jt):Re({}),Hn=jt(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?Re(L.USE_PROFILES):L.USE_PROFILES:!1,Ve=L.ALLOW_ARIA_ATTR!==!1,et=L.ALLOW_DATA_ATTR!==!1,ft=L.ALLOW_UNKNOWN_PROTOCOLS||!1,Et=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ft=L.SAFE_FOR_TEMPLATES||!1,Ge=L.SAFE_FOR_XML!==!1,ge=L.WHOLE_DOCUMENT||!1,$r=L.RETURN_DOM||!1,il=L.RETURN_DOM_FRAGMENT||!1,nl=L.RETURN_TRUSTED_TYPE||!1,rl=L.FORCE_BODY||!1,xm=L.SANITIZE_DOM!==!1,Cm=L.SANITIZE_NAMED_PROPS||!1,ou=L.KEEP_CONTENT!==!1,ao=L.IN_PLACE||!1,N=tE(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:uk,jn=typeof L.NAMESPACE=="string"?L.NAMESPACE:Ir,uu=jt(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?Re(L.MATHML_TEXT_INTEGRATION_POINTS):gt({},["mi","mo","mn","ms","mtext"]),du=jt(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?Re(L.HTML_INTEGRATION_POINTS):gt({},["annotation-xml"]);const W=jt(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?Re(L.CUSTOM_ELEMENT_HANDLING):Zn(null);if(nt=Zn(null),jt(W,"tagNameCheck")&&Sm(W.tagNameCheck)&&(nt.tagNameCheck=W.tagNameCheck),jt(W,"attributeNameCheck")&&Sm(W.attributeNameCheck)&&(nt.attributeNameCheck=W.attributeNameCheck),jt(W,"allowCustomizedBuiltInElements")&&typeof W.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=W.allowCustomizedBuiltInElements),Ft&&(et=!1),il&&($r=!0),Hn&&(V=gt({},Jy),st=Zn(null),Hn.html===!0&&(gt(V,Ky),gt(st,t0)),Hn.svg===!0&&(gt(V,ju),gt(st,Vu),gt(st,Tl)),Hn.svgFilters===!0&&(gt(V,Uu),gt(st,Vu),gt(st,Tl)),Hn.mathMl===!0&&(gt(V,Yu),gt(st,e0),gt(st,Tl))),Kt.tagCheck=null,Kt.attributeCheck=null,jt(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?Kt.tagCheck=L.ADD_TAGS:_e(L.ADD_TAGS)&&(V===rt&&(V=Re(V)),gt(V,L.ADD_TAGS,Jt))),jt(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?Kt.attributeCheck=L.ADD_ATTR:_e(L.ADD_ATTR)&&(st===pt&&(st=Re(st)),gt(st,L.ADD_ATTR,Jt))),jt(L,"ADD_URI_SAFE_ATTR")&&_e(L.ADD_URI_SAFE_ATTR)&>(lu,L.ADD_URI_SAFE_ATTR,Jt),jt(L,"FORBID_CONTENTS")&&_e(L.FORBID_CONTENTS)&&(Or===au&&(Or=Re(Or)),gt(Or,L.FORBID_CONTENTS,Jt)),jt(L,"ADD_FORBID_CONTENTS")&&_e(L.ADD_FORBID_CONTENTS)&&(Or===au&&(Or=Re(Or)),gt(Or,L.ADD_FORBID_CONTENTS,Jt)),ou&&(V["#text"]=!0),ge&>(V,["html","head","body"]),V.table&&(gt(V,["tbody"]),delete Ct.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw Sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=L.TRUSTED_TYPES_POLICY,S=v.createHTML("")}else v===void 0&&(v=dE(d,n)),v!==null&&typeof S=="string"&&(S=v.createHTML(""));Me&&Me(L),Un=L},Tm=gt({},[...ju,...Uu,...eE]),_m=gt({},[...Yu,...rE]),QT=function(L){let W=k(L);(!W||!W.tagName)&&(W={namespaceURI:jn,tagName:"template"});const Z=Do(L.tagName),At=Do(W.tagName);return cu[L.namespaceURI]?L.namespaceURI===ol?W.namespaceURI===Ir?Z==="svg":W.namespaceURI===sl?Z==="svg"&&(At==="annotation-xml"||uu[At]):!!Tm[Z]:L.namespaceURI===sl?W.namespaceURI===Ir?Z==="math":W.namespaceURI===ol?Z==="math"&&du[At]:!!_m[Z]:L.namespaceURI===Ir?W.namespaceURI===ol&&!du[At]||W.namespaceURI===sl&&!uu[At]?!1:!_m[Z]&&(YT[Z]||!Tm[Z]):!!(lo==="application/xhtml+xml"&&cu[L.namespaceURI]):!1},gr=function(L){Co(t.removed,{element:L});try{k(L).removeChild(L)}catch{x(L)}},en=function(L,W){try{Co(t.removed,{attribute:W.getAttributeNode(L),from:W})}catch{Co(t.removed,{attribute:null,from:W})}if(W.removeAttribute(L),L==="is")if($r||il)try{gr(W)}catch{}else try{W.setAttribute(L,"")}catch{}},Bm=function(L){let W=null,Z=null;if(rl)L="<remove></remove>"+L;else{const Gt=Gy(L,/^[\r\n\t ]+/);Z=Gt&&Gt[0]}lo==="application/xhtml+xml"&&jn===Ir&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const At=v?v.createHTML(L):L;if(jn===Ir)try{W=new f().parseFromString(At,lo)}catch{}if(!W||!W.documentElement){W=_.createDocument(jn,"template",null);try{W.documentElement.innerHTML=hu?S:At}catch{}}const me=W.body||W.documentElement;return L&&Z&&me.insertBefore(r.createTextNode(Z),me.childNodes[0]||null),jn===Ir?z.call(W,ge?"html":"body")[0]:ge?W.documentElement:me},Lm=function(L){return w.call(L.ownerDocument||L,L,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},pu=function(L){return L instanceof u&&(typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||!(L.attributes instanceof c)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function")},gu=function(L){return typeof a=="function"&&L instanceof a};function Kr(at,L,W){xo(at,Z=>{Z.call(t,L,W,Un)})}const Em=function(L){let W=null;if(Kr(M.beforeSanitizeElements,L,null),pu(L))return gr(L),!0;const Z=Jt(L.nodeName);if(Kr(M.uponSanitizeElement,L,{tagName:Z,allowedTags:V}),Ge&&L.hasChildNodes()&&!gu(L.firstElementChild)&&he(/<[/\w!]/g,L.innerHTML)&&he(/<[/\w!]/g,L.textContent)||Ge&&L.namespaceURI===Ir&&Z==="style"&&gu(L.firstElementChild)||L.nodeType===bo.progressingInstruction||Ge&&L.nodeType===bo.comment&&he(/<[/\w]/g,L.data))return gr(L),!0;if(Ct[Z]||!(Kt.tagCheck instanceof Function&&Kt.tagCheck(Z))&&!V[Z]){if(!Ct[Z]&&Am(Z)&&(nt.tagNameCheck instanceof RegExp&&he(nt.tagNameCheck,Z)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(Z)))return!1;if(ou&&!Or[Z]){const At=k(L)||L.parentNode,me=C(L)||L.childNodes;if(me&&At){const Gt=me.length;for(let Pe=Gt-1;Pe>=0;--Pe){const sr=g(me[Pe],!0);At.insertBefore(sr,y(L))}}}return gr(L),!0}return L instanceof l&&!QT(L)||(Z==="noscript"||Z==="noembed"||Z==="noframes")&&he(/<\/no(script|embed|frames)/i,L.innerHTML)?(gr(L),!0):(Ft&&L.nodeType===bo.text&&(W=L.textContent,xo([Y,H,D],At=>{W=Vn(W,At," ")}),L.textContent!==W&&(Co(t.removed,{element:L.cloneNode()}),L.textContent=W)),Kr(M.afterSanitizeElements,L,null),!1)},Fm=function(L,W,Z){if($t[W]||xm&&(W==="id"||W==="name")&&(Z in r||Z in XT))return!1;const At=st[W]||Kt.attributeCheck instanceof Function&&Kt.attributeCheck(W,L);if(!(et&&!$t[W]&&he($,W))){if(!(Ve&&he(F,W))){if(!At||$t[W]){if(!(Am(L)&&(nt.tagNameCheck instanceof RegExp&&he(nt.tagNameCheck,L)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(L))&&(nt.attributeNameCheck instanceof RegExp&&he(nt.attributeNameCheck,W)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(W,L))||W==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&he(nt.tagNameCheck,Z)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(Z))))return!1}else if(!lu[W]){if(!he(N,Vn(Z,B,""))){if(!((W==="src"||W==="xlink:href"||W==="href")&&L!=="script"&&Xy(Z,"data:")===0&&bm[L])){if(!(ft&&!he(I,Vn(Z,B,"")))){if(Z)return!1}}}}}}return!0},ZT=gt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Am=function(L){return!ZT[Do(L)]&&he(R,L)},Mm=function(L){Kr(M.beforeSanitizeAttributes,L,null);const{attributes:W}=L;if(!W||pu(L))return;const Z={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:st,forceKeepAttr:void 0};let At=W.length;for(;At--;){const me=W[At],{name:Gt,namespaceURI:Pe,value:sr}=me,mr=Jt(Gt),mu=sr;let ne=Gt==="value"?mu:GL(mu);if(Z.attrName=mr,Z.attrValue=ne,Z.keepAttr=!0,Z.forceKeepAttr=void 0,Kr(M.uponSanitizeAttribute,L,Z),ne=Z.attrValue,Cm&&(mr==="id"||mr==="name")&&Xy(ne,km)!==0&&(en(Gt,L),ne=km+ne),Ge&&he(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ne)){en(Gt,L);continue}if(mr==="attributename"&&Gy(ne,"href")){en(Gt,L);continue}if(Z.forceKeepAttr)continue;if(!Z.keepAttr){en(Gt,L);continue}if(!Et&&he(/\/>/i,ne)){en(Gt,L);continue}Ft&&xo([Y,H,D],Im=>{ne=Vn(ne,Im," ")});const Om=Jt(L.nodeName);if(!Fm(Om,mr,ne)){en(Gt,L);continue}if(v&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Pe)switch(d.getAttributeType(Om,mr)){case"TrustedHTML":{ne=v.createHTML(ne);break}case"TrustedScriptURL":{ne=v.createScriptURL(ne);break}}if(ne!==mu)try{Pe?L.setAttributeNS(Pe,Gt,ne):L.setAttribute(Gt,ne),pu(L)?gr(L):Vy(t.removed)}catch{en(Gt,L)}}Kr(M.afterSanitizeAttributes,L,null)},$m=function(L){let W=null;const Z=Lm(L);for(Kr(M.beforeSanitizeShadowDOM,L,null);W=Z.nextNode();)Kr(M.uponSanitizeShadowNode,W,null),Em(W),Mm(W),W.content instanceof s&&$m(W.content);Kr(M.afterSanitizeShadowDOM,L,null)};return t.sanitize=function(at){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=null,Z=null,At=null,me=null;if(hu=!at,hu&&(at="<!-->"),typeof at!="string"&&!gu(at)&&(at=JL(at),typeof at!="string"))throw Sl("dirty is not a string, aborting");if(!t.isSupported)return at;if(Wn||fu(L),t.removed=[],typeof at=="string"&&(ao=!1),ao){const sr=at.nodeName;if(typeof sr=="string"){const mr=Jt(sr);if(!V[mr]||Ct[mr])throw Sl("root node is forbidden and cannot be sanitized in-place")}}else if(at instanceof a)W=Bm("<!---->"),Z=W.ownerDocument.importNode(at,!0),Z.nodeType===bo.element&&Z.nodeName==="BODY"||Z.nodeName==="HTML"?W=Z:W.appendChild(Z);else{if(!$r&&!Ft&&!ge&&at.indexOf("<")===-1)return v&&nl?v.createHTML(at):at;if(W=Bm(at),!W)return $r?null:nl?S:""}W&&rl&&gr(W.firstChild);const Gt=Lm(ao?at:W);for(;At=Gt.nextNode();)Em(At),Mm(At),At.content instanceof s&&$m(At.content);if(ao)return at;if($r){if(Ft){W.normalize();let sr=W.innerHTML;xo([Y,H,D],mr=>{sr=Vn(sr,mr," ")}),W.innerHTML=sr}if(il)for(me=T.call(W.ownerDocument);W.firstChild;)me.appendChild(W.firstChild);else me=W;return(st.shadowroot||st.shadowrootmode)&&(me=A.call(i,me,!0)),me}let Pe=ge?W.outerHTML:W.innerHTML;return ge&&V["!doctype"]&&W.ownerDocument&&W.ownerDocument.doctype&&W.ownerDocument.doctype.name&&he(dk,W.ownerDocument.doctype.name)&&(Pe="<!DOCTYPE "+W.ownerDocument.doctype.name+`>
|
|
58
|
+
`+Pe),Ft&&xo([Y,H,D],sr=>{Pe=Vn(Pe,sr," ")}),v&&nl?v.createHTML(Pe):Pe},t.setConfig=function(){let at=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};fu(at),Wn=!0},t.clearConfig=function(){Un=null,Wn=!1},t.isValidAttribute=function(at,L,W){Un||fu({});const Z=Jt(at),At=Jt(L);return Fm(Z,At,W)},t.addHook=function(at,L){typeof L=="function"&&Co(M[at],L)},t.removeHook=function(at,L){if(L!==void 0){const W=YL(M[at],L);return W===-1?void 0:VL(M[at],W,1)[0]}return Vy(M[at])},t.removeHooks=function(at){M[at]=[]},t.removeAllHooks=function(){M=i0()},t}var Us=fk(),pk=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ea=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fE=/\s*%%.*\n/gm,Ss,gk=(Ss=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},m(Ss,"UnknownDiagramError"),Ss),_n={},hg=m(function(e,t){e=e.replace(pk,"").replace(ea,"").replace(fE,`
|
|
59
|
+
`);for(const[r,{detector:i}]of Object.entries(_n))if(i(e,t))return r;throw new gk(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),lf=m((...e)=>{for(const{id:t,detector:r,loader:i}of e)mk(t,r,i)},"registerLazyLoadedDiagrams"),mk=m((e,t,r)=>{_n[e]&&q.warn(`Detector with key ${e} already exists. Overwriting.`),_n[e]={detector:t,loader:r},q.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),pE=m(e=>_n[e].loader,"getDiagramLoader"),hf=m((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(s=>hf(e,s,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(s=>{e.includes(s)||e.push(s)}),e):e===void 0||r<=0?e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t:(t!==void 0&&typeof e=="object"&&typeof t=="object"&&Object.keys(t).forEach(s=>{typeof t[s]=="object"&&t[s]!==null&&(e[s]===void 0||typeof e[s]=="object")?(e[s]===void 0&&(e[s]=Array.isArray(t[s])?[]:{}),e[s]=hf(e[s],t[s],{depth:r-1,clobber:i})):(i||typeof e[s]!="object"&&typeof t[s]!="object")&&(e[s]=t[s])}),e)},"assignWithDepth"),ee=hf,Gr="#ffffff",Xr="#f2f2f2",ut=m((e,t)=>t?b(e,{s:-40,l:10}):b(e,{s:-40,l:-10}),"mkBorder"),Ts,gE=(Ts=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,n,s,o,a,l,h,c,u,f,d,p,g,x,y,C,k,v,S,_,w;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(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||P(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||O(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||O(this.mainBkg,10)):(this.rowOdd=this.rowOdd||P(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||P(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScale"+T]=O(this["cScale"+T],75);else for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScale"+T]=O(this["cScale"+T],25);for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScaleInv"+T]=this["cScaleInv"+T]||E(this["cScale"+T]);for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this.darkMode?this["cScalePeer"+T]=this["cScalePeer"+T]||P(this["cScale"+T],10):this["cScalePeer"+T]=this["cScalePeer"+T]||O(this["cScale"+T],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScaleLabel"+T]=this["cScaleLabel"+T]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let T=0;T<5;T++)this["surface"+T]=this["surface"+T]||b(this.mainBkg,{h:180,s:-15,l:t*(5+T*3)}),this["surfacePeer"+T]=this["surfacePeer"+T]||b(this.mainBkg,{h:180,s:-15,l:t*(8+T*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((a=this.radar)==null?void 0:a.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,dataLabelColor:((p=this.xyChart)==null?void 0:p.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((g=this.xyChart)==null?void 0:g.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((x=this.xyChart)==null?void 0:x.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((y=this.xyChart)==null?void 0:y.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((C=this.xyChart)==null?void 0:C.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((k=this.xyChart)==null?void 0:k.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((v=this.xyChart)==null?void 0:v.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((w=this.xyChart)==null?void 0:w.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?O(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Ts,"Theme"),Ts),mE=m(e=>{const t=new gE;return t.calculate(e),t},"getThemeVariables"),_s,yE=(_s=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=P(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=P(E("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Wi(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.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=O("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=O(this.sectionBkgColor,10),this.taskBorderColor=Wi(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Wi(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||P(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||O(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,n,s,o,a,l,h,c,u,f,d,p,g,x,y,C,k,v,S,_;this.secondBkg=P(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=P(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=P(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=E(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||E(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScalePeer"+w]=this["cScalePeer"+w]||P(this["cScale"+w],10);for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||b(this.mainBkg,{h:30,s:-30,l:-(-10+w*4)}),this["surfacePeer"+w]=this["surfacePeer"+w]||b(this.mainBkg,{h:30,s:-30,l:-(-7+w*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["pie"+w]=this["cScale"+w];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,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";for(let w=0;w<8;w++)this["venn"+(w+1)]=this["venn"+(w+1)]??P(this["cScale"+w],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"},this.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.background},this.radar={axisColor:((d=this.radar)==null?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:((p=this.radar)==null?void 0:p.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((x=this.radar)==null?void 0:x.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((C=this.radar)==null?void 0:C.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((v=this.radar)==null?void 0:v.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((_=this.radar)==null?void 0:_.legendFontSize)||12},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?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=P(this.secondaryColor,20),this.git1=P(this.pie2||this.secondaryColor,20),this.git2=P(this.pie3||this.tertiaryColor,20),this.git3=P(this.pie4||b(this.primaryColor,{h:-30}),20),this.git4=P(this.pie5||b(this.primaryColor,{h:-60}),20),this.git5=P(this.pie6||b(this.primaryColor,{h:-90}),10),this.git6=P(this.pie7||b(this.primaryColor,{h:60}),10),this.git7=P(this.pie8||b(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(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||P(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||P(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(_s,"Theme"),_s),xE=m(e=>{const t=new yE;return t.calculate(e),t},"getThemeVariables"),Bs,CE=(Bs=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Wi(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.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,n,s,o,a,l,h,c,u,f,d,p,g,x,y,C,k,v,S,_;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=O(this["cScale"+w],10),this["cScalePeer"+w]=this["cScalePeer"+w]||O(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||b(this["cScale"+w],{h:180});for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||b(this.mainBkg,{h:30,l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||b(this.mainBkg,{h:30,l:-(7+w*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||E(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||E(this.labelTextColor);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||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=this.border1,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.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||P(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||P(this.primaryColor,1),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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||b(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||b(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||b(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.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((a=this.radar)==null?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((c=this.radar)==null?void 0:c.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,dataLabelColor:((d=this.xyChart)==null?void 0:d.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((x=this.xyChart)==null?void 0:x.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((C=this.xyChart)==null?void 0:C.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((k=this.xyChart)==null?void 0:k.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((v=this.xyChart)==null?void 0:v.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||O(E(this.git0),25),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(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||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Bs,"Theme"),Bs),kE=m(e=>{const t=new CE;return t.calculate(e),t},"getThemeVariables"),Ls,bE=(Ls=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=P("#cde498",10),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.primaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,n,s,o,a,l,h,c,u,f,d,p,g,x,y,C,k,v,S,_;this.actorBorder=O(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||O(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||O(this.tertiaryColor,40);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=O(this["cScale"+w],10),this["cScalePeer"+w]=this["cScalePeer"+w]||O(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||b(this["cScale"+w],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||b(this.mainBkg,{h:30,s:-30,l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||b(this.mainBkg,{h:30,s:-30,l:-(8+w*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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||P(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||P(this.mainBkg,20),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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(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||b(this.primaryColor,{l:-30}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||b(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.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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.packet={startByteColor:this.primaryTextColor,endByteColor:this.primaryTextColor,labelColor:this.primaryTextColor,titleColor:this.primaryTextColor,blockStrokeColor:this.primaryTextColor,blockFillColor:this.mainBkg},this.radar={axisColor:((t=this.radar)==null?void 0:t.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((n=this.radar)==null?void 0:n.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((a=this.radar)==null?void 0:a.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((c=this.radar)==null?void 0:c.legendFontSize)||12},this.xyChart={backgroundColor:((u=this.xyChart)==null?void 0:u.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,dataLabelColor:((d=this.xyChart)==null?void 0:d.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((x=this.xyChart)==null?void 0:x.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((y=this.xyChart)==null?void 0:y.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((C=this.xyChart)==null?void 0:C.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((k=this.xyChart)==null?void 0:k.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((v=this.xyChart)==null?void 0:v.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||E(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||E(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||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Ls,"Theme"),Ls),vE=m(e=>{const t=new bE;return t.calculate(e),t},"getThemeVariables"),Es,wE=(Es=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=P(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.lineColor=E(this.background),this.textColor=E(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||P(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,n,s,o,a,l,h,c,u,f,d,p,g,x,y,C,k,v,S,_;this.secondBkg=P(this.contrast,55),this.border2=this.contrast,this.actorBorder=P(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||E(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||P(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||O(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||b(this.mainBkg,{l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||b(this.mainBkg,{l:-(8+w*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=P(this.contrast,30),this.sectionBkgColor2=P(this.contrast,30),this.taskBorderColor=O(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=P(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=O(this.critBkgColor,10),this.todayLineColor=this.critBkgColor,this.vertLineColor=this.critBkgColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,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=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128});for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["pie"+w]=this["cScale"+w];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";for(let w=0;w<8;w++)this["venn"+(w+1)]=this["venn"+(w+1)]??this["cScale"+w];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((i=this.xyChart)==null?void 0:i.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((d=this.radar)==null?void 0:d.axisColor)||this.lineColor,axisStrokeWidth:((p=this.radar)==null?void 0:p.axisStrokeWidth)||2,axisLabelFontSize:((g=this.radar)==null?void 0:g.axisLabelFontSize)||12,curveOpacity:((x=this.radar)==null?void 0:x.curveOpacity)||.5,curveStrokeWidth:((y=this.radar)==null?void 0:y.curveStrokeWidth)||2,graticuleColor:((C=this.radar)==null?void 0:C.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((k=this.radar)==null?void 0:k.graticuleStrokeWidth)||1,graticuleOpacity:((v=this.radar)==null?void 0:v.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((_=this.radar)==null?void 0:_.legendFontSize)||12},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=O(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||b(this.primaryColor,{h:-30}),this.git4=this.pie5||b(this.primaryColor,{h:-60}),this.git5=this.pie6||b(this.primaryColor,{h:-90}),this.git6=this.pie7||b(this.primaryColor,{h:60}),this.git7=this.pie8||b(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Es,"Theme"),Es),SE=m(e=>{const t=new wE;return t.calculate(e),t},"getThemeVariables"),Fs,TE=(Fs=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var s,o,a,l,h,c,u,f,d,p,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||P(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||b(t,{h:30}),this.cScale4=this.cScale4||b(t,{h:60}),this.cScale5=this.cScale5||b(t,{h:90}),this.cScale6=this.cScale6||b(t,{h:120}),this.cScale7=this.cScale7||b(t,{h:150}),this.cScale8=this.cScale8||b(t,{h:210,l:150}),this.cScale9=this.cScale9||b(t,{h:270}),this.cScale10=this.cScale10||b(t,{h:300}),this.cScale11=this.cScale11||b(t,{h:330}),this.darkMode)for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=O(this["cScale"+x],75);else for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=O(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||E(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||P(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||O(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||b(this.mainBkg,{h:180,s:-15,l:n*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||b(this.mainBkg,{h:180,s:-15,l:n*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Fs,"Theme"),Fs),_E=m(e=>{const t=new TE;return t.calculate(e),t},"getThemeVariables"),As,BE=(As=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=P(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=P(E("#323D47"),10),this.border1="#ccc",this.border2=Wi(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,n,s,o,a,l,h,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(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||P(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=O(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=O(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||E(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||P(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||O(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||b(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||b(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(As,"Theme"),As),LE=m(e=>{const t=new BE;return t.calculate(e),t},"getThemeVariables"),Ms,EE=(Ms=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ut("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var s,o,a,l,h,c,u,f,d,p,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||P(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=this.mainBkg;if(this.darkMode)for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=O(this["cScale"+x],75);else for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=O(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||E(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||P(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||O(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||b(this.mainBkg,{h:180,s:-15,l:n*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||b(this.mainBkg,{h:180,s:-15,l:n*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Ms,"Theme"),Ms),FE=m(e=>{const t=new EE;return t.calculate(e),t},"getThemeVariables"),$s,AE=($s=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=P(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=P(E("#323D47"),10),this.border1="#ccc",this.border2=Wi(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,n,s,o,a,l,h,c,u,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(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||P(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.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=O(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=O(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||E(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||P(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||O(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=this["cScaleLabel"+d]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||b(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||b(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m($s,"Theme"),$s),ME=m(e=>{const t=new AE;return t.calculate(e),t},"getThemeVariables"),Os,$E=(Os=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=ut(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var s,o,a,l,h,c,u,f,d,p,g;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor);const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||P(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||E(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||P(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||O(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||b(this.mainBkg,{h:180,s:-15,l:n*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||b(this.mainBkg,{h:180,s:-15,l:n*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((s=this.xyChart)==null?void 0:s.backgroundColor)||this.background,titleColor:((o=this.xyChart)==null?void 0:o.titleColor)||this.primaryTextColor,xAxisTitleColor:((a=this.xyChart)==null?void 0:a.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,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?O(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Os,"Theme"),Os),OE=m(e=>{const t=new $E;return t.calculate(e),t},"getThemeVariables"),Is,IE=(Is=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=P(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=E(this.background),this.secondaryBorderColor=ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ut(this.tertiaryColor,this.darkMode),this.primaryTextColor=E(this.primaryColor),this.secondaryTextColor=E(this.secondaryColor),this.tertiaryTextColor=E(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=P(E("#323D47"),10),this.border1="#ccc",this.border2=Wi(255,255,255,.25),this.arrowheadColor=E(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,n,s,o,a,l,h,c,u,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ut(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ut(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ut(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ut(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||E(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||E(this.tertiaryColor),this.lineColor=this.lineColor||E(this.background),this.arrowheadColor=this.arrowheadColor||E(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.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?O(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||O(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||E(this.lineColor),this.rootLabelColor="#FFFFFF",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||P(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.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||E(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||P(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||O(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=O(this["cScale"+d],75);const t=this.darkMode?-4:-1;for(let d=0;d<5;d++)this["surface"+d]=this["surface"+d]||b(this.mainBkg,{h:180,s:-15,l:t*(5+d*3)}),this["surfacePeer"+d]=this["surfacePeer"+d]||b(this.mainBkg,{h:180,s:-15,l:t*(8+d*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(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||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(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.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ar(this.quadrant1Fill)?P(this.quadrant1Fill):O(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:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((s=this.xyChart)==null?void 0:s.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((o=this.xyChart)==null?void 0:o.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((a=this.xyChart)==null?void 0:a.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.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?O(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||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)):(this.git0=O(this.git0,25),this.git1=O(this.git1,25),this.git2=O(this.git2,25),this.git3=O(this.git3,25),this.git4=O(this.git4,25),this.git5=O(this.git5,25),this.git6=O(this.git6,25),this.git7=O(this.git7,25)),this.gitInv0=this.gitInv0||E(this.git0),this.gitInv1=this.gitInv1||E(this.git1),this.gitInv2=this.gitInv2||E(this.git2),this.gitInv3=this.gitInv3||E(this.git3),this.gitInv4=this.gitInv4||E(this.git4),this.gitInv5=this.gitInv5||E(this.git5),this.gitInv6=this.gitInv6||E(this.git6),this.gitInv7=this.gitInv7||E(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.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||Gr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Xr}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},m(Is,"Theme"),Is),PE=m(e=>{const t=new IE;return t.calculate(e),t},"getThemeVariables"),ci={base:{getThemeVariables:mE},dark:{getThemeVariables:xE},default:{getThemeVariables:kE},forest:{getThemeVariables:vE},neutral:{getThemeVariables:SE},neo:{getThemeVariables:_E},"neo-dark":{getThemeVariables:LE},redux:{getThemeVariables:FE},"redux-dark":{getThemeVariables:ME},"redux-color":{getThemeVariables:OE},"redux-dark-color":{getThemeVariables:PE}},Xe={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},yk={...Xe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:ci.default.getThemeVariables(),sequence:{...Xe.sequence,messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:m(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:m(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Xe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Xe.c4,useWidth:void 0,personFont:m(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Xe.flowchart,inheritDir:!1},external_personFont:m(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:m(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:m(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:m(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:m(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:m(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:m(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:m(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:m(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:m(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:m(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:m(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:m(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:m(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:m(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:m(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:m(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:m(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:m(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:m(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:m(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Xe.pie,useWidth:984},xyChart:{...Xe.xyChart,useWidth:void 0},requirement:{...Xe.requirement,useWidth:void 0},packet:{...Xe.packet},treeView:{...Xe.treeView,useWidth:void 0},radar:{...Xe.radar},ishikawa:{...Xe.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...Xe.venn}},xk=m((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...xk(e[i],"")]:[...r,t+i],[]),"keyify"),DE=new Set(xk(yk,"")),Ck=yk,Oh=m(e=>{if(q.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Oh(t));return}for(const t of Object.keys(e)){if(q.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!DE.has(t)||e[t]==null){q.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){q.debug("sanitizing object",t),Oh(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(q.debug("sanitizing css option",t),e[t]=RE(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}q.debug("After sanitization",e)}},"sanitizeDirective"),RE=m(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Ys=Object.freeze(Ck),Ci=m(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),ze=ee({},Ys),Ih,Bn=[],ra=ee({},Ys),Ic=m((e,t)=>{let r=ee({},e),i={};for(const n of t)vk(n),i=ee(i,n);if(r=ee(r,i),i.theme&&i.theme in ci){const n=ee({},Ih),s=ee(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in ci&&(r.themeVariables=ci[r.theme].getThemeVariables(s))}return ra=r,Sk(ra),ra},"updateCurrentConfig"),NE=m(e=>(ze=ee({},Ys),ze=ee(ze,e),e.theme&&ci[e.theme]&&(ze.themeVariables=ci[e.theme].getThemeVariables(e.themeVariables)),Ic(ze,Bn),ze),"setSiteConfig"),zE=m(e=>{Ih=ee({},e)},"saveConfigFromInitialize"),qE=m(e=>(ze=ee(ze,e),Ic(ze,Bn),ze),"updateSiteConfig"),kk=m(()=>ee({},ze),"getSiteConfig"),bk=m(e=>(Sk(e),ee(ra,e),qt()),"setConfig"),qt=m(()=>ee({},ra),"getConfig"),vk=m(e=>{e&&(["secure",...ze.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(q.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&vk(e[t])}))},"sanitize"),WE=m(e=>{var t;Oh(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Bn.push(e),Ic(ze,Bn)},"addDirective"),Ph=m((e=ze)=>{Bn=[],Ic(e,Bn)},"reset"),HE={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},n0={},wk=m(e=>{n0[e]||(q.warn(HE[e]),n0[e]=!0)},"issueWarning"),Sk=m(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&wk("LAZY_LOAD_DEPRECATED")},"checkConfig"),uz=m(()=>{let e={};Ih&&(e=ee(e,Ih));for(const t of Bn)e=ee(e,t);return e},"getUserDefinedConfig"),$e=m(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&wk("FLOWCHART_HTML_LABELS_DEPRECATED"),Ci(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),ja=/<br\s*\/?>/gi,jE=m(e=>e?Bk(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),UE=(()=>{let e=!1;return()=>{e||(Tk(),e=!0)}})();function Tk(){const e="data-temp-href-target";Us.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Us.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}m(Tk,"setupDompurifyHooks");var _k=m(e=>(UE(),Us.sanitize(e)),"removeScript"),s0=m((e,t)=>{if($e(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=_k(e):r!=="loose"&&(e=Bk(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=XE(e))}return e},"sanitizeMore"),Fr=m((e,t)=>e&&(t.dompurifyConfig?e=Us.sanitize(s0(e,t),t.dompurifyConfig).toString():e=Us.sanitize(s0(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),YE=m((e,t)=>typeof e=="string"?Fr(e,t):e.flat().map(r=>Fr(r,t)),"sanitizeTextOrArray"),VE=m(e=>ja.test(e),"hasBreaks"),GE=m(e=>e.split(ja),"splitBreaks"),XE=m(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Bk=m(e=>e.replace(ja,"#br#"),"breakToPlaceholder"),QE=m(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),ZE=m(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),KE=m(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),o0=m(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let n=t[i];if(n===","&&i>0&&i+1<t.length){const s=t[i-1],o=t[i+1];JE(s,o)&&(n=s+","+o,i++,r.pop())}r.push(t3(n))}return r.join("")},"parseGenericTypes"),cf=m((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),JE=m((e,t)=>{const r=cf(e,"~"),i=cf(t,"~");return r===1&&i===1},"shouldCombineSets"),t3=m(e=>{const t=cf(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let n=i.indexOf("~"),s=i.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)i[n]="<",i[s]=">",n=i.indexOf("~"),s=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),a0=m(()=>window.MathMLElement!==void 0,"isMathMLSupported"),uf=/\$\$(.*)\$\$/g,Ta=m(e=>{var t;return(((t=e.match(uf))==null?void 0:t.length)??0)>0},"hasKatex"),dz=m(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Lk(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),e3=m(async(e,t)=>{if(!Ta(e))return e;if(!(a0()||t.legacyMathML||t.forceLegacyMathML))return e.replace(uf,"MathML is unsupported in this environment.");{const{default:r}=await kt(async()=>{const{default:n}=await import("./katex-DkKDou_j.js");return{default:n}},[]),i=t.forceLegacyMathML||!a0()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(ja).map(n=>Ta(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(uf,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Lk=m(async(e,t)=>Fr(await e3(e,t),t),"renderKatexSanitized"),Ua={getRows:jE,sanitizeText:Fr,sanitizeTextOrArray:YE,hasBreaks:VE,splitBreaks:GE,lineBreakRegex:ja,removeScript:_k,getUrl:QE,evaluate:Ci,getMax:ZE,getMin:KE},r3=m(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),i3=m(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Ek=m(function(e,t,r,i){const n=i3(t,r,i);r3(e,n)},"configureSvgSize"),n3=m(function(e,t,r,i){const n=t.node().getBBox(),s=n.width,o=n.height;q.info(`SVG bounds: ${s}x${o}`,n);let a=0,l=0;q.info(`Graph bounds: ${a}x${l}`,e),a=s+r*2,l=o+r*2,q.info(`Calculated bounds: ${a}x${l}`),Ek(t,l,a,i);const h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox"),Kl={},s3=m((e,t,r,i)=>{let n="";return e in Kl&&Kl[e]?n=Kl[e]({...r,svgId:i}):q.warn(`No theme found for ${e}`),` & {
|
|
60
|
+
font-family: ${r.fontFamily};
|
|
61
|
+
font-size: ${r.fontSize};
|
|
62
|
+
fill: ${r.textColor}
|
|
63
|
+
}
|
|
64
|
+
@keyframes edge-animation-frame {
|
|
65
|
+
from {
|
|
66
|
+
stroke-dashoffset: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
@keyframes dash {
|
|
70
|
+
to {
|
|
71
|
+
stroke-dashoffset: 0;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
& .edge-animation-slow {
|
|
75
|
+
stroke-dasharray: 9,5 !important;
|
|
76
|
+
stroke-dashoffset: 900;
|
|
77
|
+
animation: dash 50s linear infinite;
|
|
78
|
+
stroke-linecap: round;
|
|
79
|
+
}
|
|
80
|
+
& .edge-animation-fast {
|
|
81
|
+
stroke-dasharray: 9,5 !important;
|
|
82
|
+
stroke-dashoffset: 900;
|
|
83
|
+
animation: dash 20s linear infinite;
|
|
84
|
+
stroke-linecap: round;
|
|
85
|
+
}
|
|
86
|
+
/* Classes common for multiple diagrams */
|
|
87
|
+
|
|
88
|
+
& .error-icon {
|
|
89
|
+
fill: ${r.errorBkgColor};
|
|
90
|
+
}
|
|
91
|
+
& .error-text {
|
|
92
|
+
fill: ${r.errorTextColor};
|
|
93
|
+
stroke: ${r.errorTextColor};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
& .edge-thickness-normal {
|
|
97
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
98
|
+
}
|
|
99
|
+
& .edge-thickness-thick {
|
|
100
|
+
stroke-width: 3.5px
|
|
101
|
+
}
|
|
102
|
+
& .edge-pattern-solid {
|
|
103
|
+
stroke-dasharray: 0;
|
|
104
|
+
}
|
|
105
|
+
& .edge-thickness-invisible {
|
|
106
|
+
stroke-width: 0;
|
|
107
|
+
fill: none;
|
|
108
|
+
}
|
|
109
|
+
& .edge-pattern-dashed{
|
|
110
|
+
stroke-dasharray: 3;
|
|
111
|
+
}
|
|
112
|
+
.edge-pattern-dotted {
|
|
113
|
+
stroke-dasharray: 2;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
& .marker {
|
|
117
|
+
fill: ${r.lineColor};
|
|
118
|
+
stroke: ${r.lineColor};
|
|
119
|
+
}
|
|
120
|
+
& .marker.cross {
|
|
121
|
+
stroke: ${r.lineColor};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
& svg {
|
|
125
|
+
font-family: ${r.fontFamily};
|
|
126
|
+
font-size: ${r.fontSize};
|
|
127
|
+
}
|
|
128
|
+
& p {
|
|
129
|
+
margin: 0
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
${n}
|
|
133
|
+
.node .neo-node {
|
|
134
|
+
stroke: ${r.nodeBorder};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
138
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
139
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
[data-look="neo"].node path {
|
|
144
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
145
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[data-look="neo"].node .outer-path {
|
|
149
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[data-look="neo"].node .neo-line path {
|
|
153
|
+
stroke: ${r.nodeBorder};
|
|
154
|
+
filter: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
[data-look="neo"].node circle{
|
|
158
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
159
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
[data-look="neo"].node circle .state-start{
|
|
163
|
+
fill: #000000;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[data-look="neo"].icon-shape .icon {
|
|
167
|
+
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
168
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
172
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
173
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
${t}
|
|
177
|
+
`},"getStyles"),o3=m((e,t)=>{t!==void 0&&(Kl[e]=t)},"addStylesForDiagram"),a3=s3,Fk={};IL(Fk,{clear:()=>l3,getAccDescription:()=>d3,getAccTitle:()=>c3,getDiagramTitle:()=>p3,setAccDescription:()=>u3,setAccTitle:()=>h3,setDiagramTitle:()=>f3});var cg="",ug="",dg="",fg=m(e=>Fr(e,qt()),"sanitizeText"),l3=m(()=>{cg="",dg="",ug=""},"clear"),h3=m(e=>{cg=fg(e).replace(/^\s+/g,"")},"setAccTitle"),c3=m(()=>cg,"getAccTitle"),u3=m(e=>{dg=fg(e).replace(/\n\s+/g,`
|
|
178
|
+
`)},"setAccDescription"),d3=m(()=>dg,"getAccDescription"),f3=m(e=>{ug=fg(e)},"setDiagramTitle"),p3=m(()=>ug,"getDiagramTitle"),l0=q,g3=lg,wt=qt,fz=bk,pz=Ys,pg=m(e=>Fr(e,wt()),"sanitizeText"),m3=n3,y3=m(()=>Fk,"getCommonDb"),Dh={},Rh=m((e,t,r)=>{var i;Dh[e]&&l0.warn(`Diagram with id ${e} already registered. Overwriting.`),Dh[e]=t,r&&mk(e,r),o3(e,t.styles),(i=t.injectUtils)==null||i.call(t,l0,g3,wt,pg,m3,y3(),()=>{})},"registerDiagram"),df=m(e=>{if(e in Dh)return Dh[e];throw new x3(e)},"getDiagram"),Ps,x3=(Ps=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},m(Ps,"DiagramNotFoundError"),Ps),C3={value:()=>{}};function Ak(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new Jl(r)}function Jl(e){this._=e}function k3(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",n=r.indexOf(".");if(n>=0&&(i=r.slice(n+1),r=r.slice(0,n)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Jl.prototype=Ak.prototype={constructor:Jl,on:function(e,t){var r=this._,i=k3(e+"",r),n,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((n=(e=i[s]).type)&&(n=b3(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<o;)if(n=(e=i[s]).type)r[n]=h0(r[n],e.name,t);else if(t==null)for(n in r)r[n]=h0(r[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Jl(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,s;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],i=0,n=s.length;i<n;++i)s[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],n=0,s=i.length;n<s;++n)i[n].value.apply(t,r)}};function b3(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function h0(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=C3,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var ff="http://www.w3.org/1999/xhtml";const c0={svg:"http://www.w3.org/2000/svg",xhtml:ff,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),c0.hasOwnProperty(t)?{space:c0[t],local:e}:e}function v3(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ff&&t.documentElement.namespaceURI===ff?t.createElement(e):t.createElementNS(r,e)}}function w3(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Mk(e){var t=Pc(e);return(t.local?w3:v3)(t)}function S3(){}function gg(e){return e==null?S3:function(){return this.querySelector(e)}}function T3(e){typeof e!="function"&&(e=gg(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],o=s.length,a=i[n]=new Array(o),l,h,c=0;c<o;++c)(l=s[c])&&(h=e.call(l,l.__data__,c,s))&&("__data__"in l&&(h.__data__=l.__data__),a[c]=h);return new rr(i,this._parents)}function _3(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function B3(){return[]}function $k(e){return e==null?B3:function(){return this.querySelectorAll(e)}}function L3(e){return function(){return _3(e.apply(this,arguments))}}function E3(e){typeof e=="function"?e=L3(e):e=$k(e);for(var t=this._groups,r=t.length,i=[],n=[],s=0;s<r;++s)for(var o=t[s],a=o.length,l,h=0;h<a;++h)(l=o[h])&&(i.push(e.call(l,l.__data__,h,o)),n.push(l));return new rr(i,n)}function Ok(e){return function(){return this.matches(e)}}function Ik(e){return function(t){return t.matches(e)}}var F3=Array.prototype.find;function A3(e){return function(){return F3.call(this.children,e)}}function M3(){return this.firstElementChild}function $3(e){return this.select(e==null?M3:A3(typeof e=="function"?e:Ik(e)))}var O3=Array.prototype.filter;function I3(){return Array.from(this.children)}function P3(e){return function(){return O3.call(this.children,e)}}function D3(e){return this.selectAll(e==null?I3:P3(typeof e=="function"?e:Ik(e)))}function R3(e){typeof e!="function"&&(e=Ok(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],o=s.length,a=i[n]=[],l,h=0;h<o;++h)(l=s[h])&&e.call(l,l.__data__,h,s)&&a.push(l);return new rr(i,this._parents)}function Pk(e){return new Array(e.length)}function N3(){return new rr(this._enter||this._groups.map(Pk),this._parents)}function Nh(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nh.prototype={constructor:Nh,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function z3(e){return function(){return e}}function q3(e,t,r,i,n,s){for(var o=0,a,l=t.length,h=s.length;o<h;++o)(a=t[o])?(a.__data__=s[o],i[o]=a):r[o]=new Nh(e,s[o]);for(;o<l;++o)(a=t[o])&&(n[o]=a)}function W3(e,t,r,i,n,s,o){var a,l,h=new Map,c=t.length,u=s.length,f=new Array(c),d;for(a=0;a<c;++a)(l=t[a])&&(f[a]=d=o.call(l,l.__data__,a,t)+"",h.has(d)?n[a]=l:h.set(d,l));for(a=0;a<u;++a)d=o.call(e,s[a],a,s)+"",(l=h.get(d))?(i[a]=l,l.__data__=s[a],h.delete(d)):r[a]=new Nh(e,s[a]);for(a=0;a<c;++a)(l=t[a])&&h.get(f[a])===l&&(n[a]=l)}function H3(e){return e.__data__}function j3(e,t){if(!arguments.length)return Array.from(this,H3);var r=t?W3:q3,i=this._parents,n=this._groups;typeof e!="function"&&(e=z3(e));for(var s=n.length,o=new Array(s),a=new Array(s),l=new Array(s),h=0;h<s;++h){var c=i[h],u=n[h],f=u.length,d=U3(e.call(c,c&&c.__data__,h,i)),p=d.length,g=a[h]=new Array(p),x=o[h]=new Array(p),y=l[h]=new Array(f);r(c,u,g,x,y,d,t);for(var C=0,k=0,v,S;C<p;++C)if(v=g[C]){for(C>=k&&(k=C+1);!(S=x[k])&&++k<p;);v._next=S||null}}return o=new rr(o,i),o._enter=a,o._exit=l,o}function U3(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Y3(){return new rr(this._exit||this._groups.map(Pk),this._parents)}function V3(e,t,r){var i=this.enter(),n=this,s=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(n=t(n),n&&(n=n.selection())),r==null?s.remove():r(s),i&&n?i.merge(n).order():n}function G3(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,s=i.length,o=Math.min(n,s),a=new Array(n),l=0;l<o;++l)for(var h=r[l],c=i[l],u=h.length,f=a[l]=new Array(u),d,p=0;p<u;++p)(d=h[p]||c[p])&&(f[p]=d);for(;l<n;++l)a[l]=r[l];return new rr(a,this._parents)}function X3(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,s=i[n],o;--n>=0;)(o=i[n])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function Q3(e){e||(e=Z3);function t(u,f){return u&&f?e(u.__data__,f.__data__):!u-!f}for(var r=this._groups,i=r.length,n=new Array(i),s=0;s<i;++s){for(var o=r[s],a=o.length,l=n[s]=new Array(a),h,c=0;c<a;++c)(h=o[c])&&(l[c]=h);l.sort(t)}return new rr(n,this._parents).order()}function Z3(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function K3(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function J3(){return Array.from(this)}function tF(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,s=i.length;n<s;++n){var o=i[n];if(o)return o}return null}function eF(){let e=0;for(const t of this)++e;return e}function rF(){return!this.node()}function iF(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],s=0,o=n.length,a;s<o;++s)(a=n[s])&&e.call(a,a.__data__,s,n);return this}function nF(e){return function(){this.removeAttribute(e)}}function sF(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oF(e,t){return function(){this.setAttribute(e,t)}}function aF(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function lF(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function hF(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function cF(e,t){var r=Pc(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?sF:nF:typeof t=="function"?r.local?hF:lF:r.local?aF:oF)(r,t))}function Dk(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function uF(e){return function(){this.style.removeProperty(e)}}function dF(e,t,r){return function(){this.style.setProperty(e,t,r)}}function fF(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function pF(e,t,r){return arguments.length>1?this.each((t==null?uF:typeof t=="function"?fF:dF)(e,t,r??"")):Vs(this.node(),e)}function Vs(e,t){return e.style.getPropertyValue(t)||Dk(e).getComputedStyle(e,null).getPropertyValue(t)}function gF(e){return function(){delete this[e]}}function mF(e,t){return function(){this[e]=t}}function yF(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function xF(e,t){return arguments.length>1?this.each((t==null?gF:typeof t=="function"?yF:mF)(e,t)):this.node()[e]}function Rk(e){return e.trim().split(/^|\s+/)}function mg(e){return e.classList||new Nk(e)}function Nk(e){this._node=e,this._names=Rk(e.getAttribute("class")||"")}Nk.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function zk(e,t){for(var r=mg(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function qk(e,t){for(var r=mg(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function CF(e){return function(){zk(this,e)}}function kF(e){return function(){qk(this,e)}}function bF(e,t){return function(){(t.apply(this,arguments)?zk:qk)(this,e)}}function vF(e,t){var r=Rk(e+"");if(arguments.length<2){for(var i=mg(this.node()),n=-1,s=r.length;++n<s;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?bF:t?CF:kF)(r,t))}function wF(){this.textContent=""}function SF(e){return function(){this.textContent=e}}function TF(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _F(e){return arguments.length?this.each(e==null?wF:(typeof e=="function"?TF:SF)(e)):this.node().textContent}function BF(){this.innerHTML=""}function LF(e){return function(){this.innerHTML=e}}function EF(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function FF(e){return arguments.length?this.each(e==null?BF:(typeof e=="function"?EF:LF)(e)):this.node().innerHTML}function AF(){this.nextSibling&&this.parentNode.appendChild(this)}function MF(){return this.each(AF)}function $F(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function OF(){return this.each($F)}function IF(e){var t=typeof e=="function"?e:Mk(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function PF(){return null}function DF(e,t){var r=typeof e=="function"?e:Mk(e),i=t==null?PF:typeof t=="function"?t:gg(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function RF(){var e=this.parentNode;e&&e.removeChild(this)}function NF(){return this.each(RF)}function zF(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qF(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function WF(e){return this.select(e?qF:zF)}function HF(e){return arguments.length?this.property("__data__",e):this.node().__data__}function jF(e){return function(t){e.call(this,t,this.__data__)}}function UF(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function YF(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,s;r<n;++r)s=t[r],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++i]=s;++i?t.length=i:delete this.__on}}}function VF(e,t,r){return function(){var i=this.__on,n,s=jF(t);if(i){for(var o=0,a=i.length;o<a;++o)if((n=i[o]).type===e.type&&n.name===e.name){this.removeEventListener(n.type,n.listener,n.options),this.addEventListener(n.type,n.listener=s,n.options=r),n.value=t;return}}this.addEventListener(e.type,s,r),n={type:e.type,name:e.name,value:t,listener:s,options:r},i?i.push(n):this.__on=[n]}}function GF(e,t,r){var i=UF(e+""),n,s=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,h=a.length,c;l<h;++l)for(n=0,c=a[l];n<s;++n)if((o=i[n]).type===c.type&&o.name===c.name)return c.value}return}for(a=t?VF:YF,n=0;n<s;++n)this.each(a(i[n],t,r));return this}function Wk(e,t,r){var i=Dk(e),n=i.CustomEvent;typeof n=="function"?n=new n(t,r):(n=i.document.createEvent("Event"),r?(n.initEvent(t,r.bubbles,r.cancelable),n.detail=r.detail):n.initEvent(t,!1,!1)),e.dispatchEvent(n)}function XF(e,t){return function(){return Wk(this,e,t)}}function QF(e,t){return function(){return Wk(this,e,t.apply(this,arguments))}}function ZF(e,t){return this.each((typeof t=="function"?QF:XF)(e,t))}function*KF(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,s=i.length,o;n<s;++n)(o=i[n])&&(yield o)}var Hk=[null];function rr(e,t){this._groups=e,this._parents=t}function Ya(){return new rr([[document.documentElement]],Hk)}function JF(){return this}rr.prototype=Ya.prototype={constructor:rr,select:T3,selectAll:E3,selectChild:$3,selectChildren:D3,filter:R3,data:j3,enter:N3,exit:Y3,join:V3,merge:G3,selection:JF,order:X3,sort:Q3,call:K3,nodes:J3,node:tF,size:eF,empty:rF,each:iF,attr:cF,style:pF,property:xF,classed:vF,text:_F,html:FF,raise:MF,lower:OF,append:IF,insert:DF,remove:NF,clone:WF,datum:HF,on:GF,dispatch:ZF,[Symbol.iterator]:KF};function mt(e){return typeof e=="string"?new rr([[document.querySelector(e)]],[document.documentElement]):new rr([[e]],Hk)}function yg(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function jk(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Va(){}var _a=.7,zh=1/_a,vs="\\s*([+-]?\\d+)\\s*",Ba="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ur="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",t5=/^#([0-9a-f]{3,8})$/,e5=new RegExp(`^rgb\\(${vs},${vs},${vs}\\)$`),r5=new RegExp(`^rgb\\(${Ur},${Ur},${Ur}\\)$`),i5=new RegExp(`^rgba\\(${vs},${vs},${vs},${Ba}\\)$`),n5=new RegExp(`^rgba\\(${Ur},${Ur},${Ur},${Ba}\\)$`),s5=new RegExp(`^hsl\\(${Ba},${Ur},${Ur}\\)$`),o5=new RegExp(`^hsla\\(${Ba},${Ur},${Ur},${Ba}\\)$`),u0={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};yg(Va,La,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:d0,formatHex:d0,formatHex8:a5,formatHsl:l5,formatRgb:f0,toString:f0});function d0(){return this.rgb().formatHex()}function a5(){return this.rgb().formatHex8()}function l5(){return Uk(this).formatHsl()}function f0(){return this.rgb().formatRgb()}function La(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=t5.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?p0(t):r===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?_l(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?_l(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=e5.exec(e))?new He(t[1],t[2],t[3],1):(t=r5.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=i5.exec(e))?_l(t[1],t[2],t[3],t[4]):(t=n5.exec(e))?_l(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=s5.exec(e))?y0(t[1],t[2]/100,t[3]/100,1):(t=o5.exec(e))?y0(t[1],t[2]/100,t[3]/100,t[4]):u0.hasOwnProperty(e)?p0(u0[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function p0(e){return new He(e>>16&255,e>>8&255,e&255,1)}function _l(e,t,r,i){return i<=0&&(e=t=r=NaN),new He(e,t,r,i)}function h5(e){return e instanceof Va||(e=La(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function pf(e,t,r,i){return arguments.length===1?h5(e):new He(e,t,r,i??1)}function He(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}yg(He,pf,jk(Va,{brighter(e){return e=e==null?zh:Math.pow(zh,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_a:Math.pow(_a,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Cn(this.r),Cn(this.g),Cn(this.b),qh(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:g0,formatHex:g0,formatHex8:c5,formatRgb:m0,toString:m0}));function g0(){return`#${pn(this.r)}${pn(this.g)}${pn(this.b)}`}function c5(){return`#${pn(this.r)}${pn(this.g)}${pn(this.b)}${pn((isNaN(this.opacity)?1:this.opacity)*255)}`}function m0(){const e=qh(this.opacity);return`${e===1?"rgb(":"rgba("}${Cn(this.r)}, ${Cn(this.g)}, ${Cn(this.b)}${e===1?")":`, ${e})`}`}function qh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function pn(e){return e=Cn(e),(e<16?"0":"")+e.toString(16)}function y0(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new wr(e,t,r,i)}function Uk(e){if(e instanceof wr)return new wr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=La(e)),!e)return new wr;if(e instanceof wr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),s=Math.max(t,r,i),o=NaN,a=s-n,l=(s+n)/2;return a?(t===s?o=(r-i)/a+(r<i)*6:r===s?o=(i-t)/a+2:o=(t-r)/a+4,a/=l<.5?s+n:2-s-n,o*=60):a=l>0&&l<1?0:o,new wr(o,a,l,e.opacity)}function u5(e,t,r,i){return arguments.length===1?Uk(e):new wr(e,t,r,i??1)}function wr(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}yg(wr,u5,jk(Va,{brighter(e){return e=e==null?zh:Math.pow(zh,e),new wr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_a:Math.pow(_a,e),new wr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,n=2*r-i;return new He(Gu(e>=240?e-240:e+120,n,i),Gu(e,n,i),Gu(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new wr(x0(this.h),Bl(this.s),Bl(this.l),qh(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 e=qh(this.opacity);return`${e===1?"hsl(":"hsla("}${x0(this.h)}, ${Bl(this.s)*100}%, ${Bl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function x0(e){return e=(e||0)%360,e<0?e+360:e}function Bl(e){return Math.max(0,Math.min(1,e||0))}function Gu(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const xg=e=>()=>e;function Yk(e,t){return function(r){return e+r*t}}function d5(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function gz(e,t){var r=t-e;return r?Yk(e,r>180||r<-180?r-360*Math.round(r/360):r):xg(isNaN(e)?t:e)}function f5(e){return(e=+e)==1?Vk:function(t,r){return r-t?d5(t,r,e):xg(isNaN(t)?r:t)}}function Vk(e,t){var r=t-e;return r?Yk(e,r):xg(isNaN(e)?t:e)}const C0=function e(t){var r=f5(t);function i(n,s){var o=r((n=pf(n)).r,(s=pf(s)).r),a=r(n.g,s.g),l=r(n.b,s.b),h=Vk(n.opacity,s.opacity);return function(c){return n.r=o(c),n.g=a(c),n.b=l(c),n.opacity=h(c),n+""}}return i.gamma=e,i}(1);function Bi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var gf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xu=new RegExp(gf.source,"g");function p5(e){return function(){return e}}function g5(e){return function(t){return e(t)+""}}function m5(e,t){var r=gf.lastIndex=Xu.lastIndex=0,i,n,s,o=-1,a=[],l=[];for(e=e+"",t=t+"";(i=gf.exec(e))&&(n=Xu.exec(t));)(s=n.index)>r&&(s=t.slice(r,s),a[o]?a[o]+=s:a[++o]=s),(i=i[0])===(n=n[0])?a[o]?a[o]+=n:a[++o]=n:(a[++o]=null,l.push({i:o,x:Bi(i,n)})),r=Xu.lastIndex;return r<t.length&&(s=t.slice(r),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?g5(l[0].x):p5(t):(t=l.length,function(h){for(var c=0,u;c<t;++c)a[(u=l[c]).i]=u.x(h);return a.join("")})}var k0=180/Math.PI,mf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gk(e,t,r,i,n,s){var o,a,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(a=Math.sqrt(r*r+i*i))&&(r/=a,i/=a,l/=a),e*i<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:n,translateY:s,rotate:Math.atan2(t,e)*k0,skewX:Math.atan(l)*k0,scaleX:o,scaleY:a}}var Ll;function y5(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?mf:Gk(t.a,t.b,t.c,t.d,t.e,t.f)}function x5(e){return e==null||(Ll||(Ll=document.createElementNS("http://www.w3.org/2000/svg","g")),Ll.setAttribute("transform",e),!(e=Ll.transform.baseVal.consolidate()))?mf:(e=e.matrix,Gk(e.a,e.b,e.c,e.d,e.e,e.f))}function Xk(e,t,r,i){function n(h){return h.length?h.pop()+" ":""}function s(h,c,u,f,d,p){if(h!==u||c!==f){var g=d.push("translate(",null,t,null,r);p.push({i:g-4,x:Bi(h,u)},{i:g-2,x:Bi(c,f)})}else(u||f)&&d.push("translate("+u+t+f+r)}function o(h,c,u,f){h!==c?(h-c>180?c+=360:c-h>180&&(h+=360),f.push({i:u.push(n(u)+"rotate(",null,i)-2,x:Bi(h,c)})):c&&u.push(n(u)+"rotate("+c+i)}function a(h,c,u,f){h!==c?f.push({i:u.push(n(u)+"skewX(",null,i)-2,x:Bi(h,c)}):c&&u.push(n(u)+"skewX("+c+i)}function l(h,c,u,f,d,p){if(h!==u||c!==f){var g=d.push(n(d)+"scale(",null,",",null,")");p.push({i:g-4,x:Bi(h,u)},{i:g-2,x:Bi(c,f)})}else(u!==1||f!==1)&&d.push(n(d)+"scale("+u+","+f+")")}return function(h,c){var u=[],f=[];return h=e(h),c=e(c),s(h.translateX,h.translateY,c.translateX,c.translateY,u,f),o(h.rotate,c.rotate,u,f),a(h.skewX,c.skewX,u,f),l(h.scaleX,h.scaleY,c.scaleX,c.scaleY,u,f),h=c=null,function(d){for(var p=-1,g=f.length,x;++p<g;)u[(x=f[p]).i]=x.x(d);return u.join("")}}}var C5=Xk(y5,"px, ","px)","deg)"),k5=Xk(x5,", ",")",")"),Gs=0,Ro=0,vo=0,Qk=1e3,Wh,No,Hh=0,Ln=0,Dc=0,Ea=typeof performance=="object"&&performance.now?performance:Date,Zk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cg(){return Ln||(Zk(b5),Ln=Ea.now()+Dc)}function b5(){Ln=0}function jh(){this._call=this._time=this._next=null}jh.prototype=Kk.prototype={constructor:jh,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Cg():+r)+(t==null?0:+t),!this._next&&No!==this&&(No?No._next=this:Wh=this,No=this),this._call=e,this._time=r,yf()},stop:function(){this._call&&(this._call=null,this._time=1/0,yf())}};function Kk(e,t,r){var i=new jh;return i.restart(e,t,r),i}function v5(){Cg(),++Gs;for(var e=Wh,t;e;)(t=Ln-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Gs}function b0(){Ln=(Hh=Ea.now())+Dc,Gs=Ro=0;try{v5()}finally{Gs=0,S5(),Ln=0}}function w5(){var e=Ea.now(),t=e-Hh;t>Qk&&(Dc-=t,Hh=e)}function S5(){for(var e,t=Wh,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Wh=r);No=e,yf(i)}function yf(e){if(!Gs){Ro&&(Ro=clearTimeout(Ro));var t=e-Ln;t>24?(e<1/0&&(Ro=setTimeout(b0,e-Ea.now()-Dc)),vo&&(vo=clearInterval(vo))):(vo||(Hh=Ea.now(),vo=setInterval(w5,Qk)),Gs=1,Zk(b0))}}function v0(e,t,r){var i=new jh;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var T5=Ak("start","end","cancel","interrupt"),_5=[],Jk=0,w0=1,xf=2,th=3,S0=4,Cf=5,eh=6;function Rc(e,t,r,i,n,s){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;B5(e,r,{name:t,index:i,group:n,on:T5,tween:_5,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Jk})}function kg(e,t){var r=Mr(e,t);if(r.state>Jk)throw new Error("too late; already scheduled");return r}function Qr(e,t){var r=Mr(e,t);if(r.state>th)throw new Error("too late; already running");return r}function Mr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function B5(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Kk(s,0,r.time);function s(h){r.state=w0,r.timer.restart(o,r.delay,r.time),r.delay<=h&&o(h-r.delay)}function o(h){var c,u,f,d;if(r.state!==w0)return l();for(c in i)if(d=i[c],d.name===r.name){if(d.state===th)return v0(o);d.state===S0?(d.state=eh,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=eh,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(v0(function(){r.state===th&&(r.state=S0,r.timer.restart(a,r.delay,r.time),a(h))}),r.state=xf,r.on.call("start",e,e.__data__,r.index,r.group),r.state===xf){for(r.state=th,n=new Array(f=r.tween.length),c=0,u=-1;c<f;++c)(d=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(n[++u]=d);n.length=u+1}}function a(h){for(var c=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(l),r.state=Cf,1),u=-1,f=n.length;++u<f;)n[u].call(e,c);r.state===Cf&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=eh,r.timer.stop(),delete i[t];for(var h in i)return;delete e.__transition}}function L5(e,t){var r=e.__transition,i,n,s=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((i=r[o]).name!==t){s=!1;continue}n=i.state>xf&&i.state<Cf,i.state=eh,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[o]}s&&delete e.__transition}}function E5(e){return this.each(function(){L5(this,e)})}function F5(e,t){var r,i;return function(){var n=Qr(this,e),s=n.tween;if(s!==r){i=r=s;for(var o=0,a=i.length;o<a;++o)if(i[o].name===t){i=i.slice(),i.splice(o,1);break}}n.tween=i}}function A5(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var s=Qr(this,e),o=s.tween;if(o!==i){n=(i=o).slice();for(var a={name:t,value:r},l=0,h=n.length;l<h;++l)if(n[l].name===t){n[l]=a;break}l===h&&n.push(a)}s.tween=n}}function M5(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Mr(this.node(),r).tween,n=0,s=i.length,o;n<s;++n)if((o=i[n]).name===e)return o.value;return null}return this.each((t==null?F5:A5)(r,e,t))}function bg(e,t,r){var i=e._id;return e.each(function(){var n=Qr(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Mr(n,i).value[t]}}function t2(e,t){var r;return(typeof t=="number"?Bi:t instanceof La?C0:(r=La(t))?(t=r,C0):m5)(e,t)}function $5(e){return function(){this.removeAttribute(e)}}function O5(e){return function(){this.removeAttributeNS(e.space,e.local)}}function I5(e,t,r){var i,n=r+"",s;return function(){var o=this.getAttribute(e);return o===n?null:o===i?s:s=t(i=o,r)}}function P5(e,t,r){var i,n=r+"",s;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===i?s:s=t(i=o,r)}}function D5(e,t,r){var i,n,s;return function(){var o,a=r(this),l;return a==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=a+"",o===l?null:o===i&&l===n?s:(n=l,s=t(i=o,a)))}}function R5(e,t,r){var i,n,s;return function(){var o,a=r(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=a+"",o===l?null:o===i&&l===n?s:(n=l,s=t(i=o,a)))}}function N5(e,t){var r=Pc(e),i=r==="transform"?k5:t2;return this.attrTween(e,typeof t=="function"?(r.local?R5:D5)(r,i,bg(this,"attr."+e,t)):t==null?(r.local?O5:$5)(r):(r.local?P5:I5)(r,i,t))}function z5(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function q5(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function W5(e,t){var r,i;function n(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&q5(e,s)),r}return n._value=t,n}function H5(e,t){var r,i;function n(){var s=t.apply(this,arguments);return s!==i&&(r=(i=s)&&z5(e,s)),r}return n._value=t,n}function j5(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=Pc(e);return this.tween(r,(i.local?W5:H5)(i,t))}function U5(e,t){return function(){kg(this,e).delay=+t.apply(this,arguments)}}function Y5(e,t){return t=+t,function(){kg(this,e).delay=t}}function V5(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?U5:Y5)(t,e)):Mr(this.node(),t).delay}function G5(e,t){return function(){Qr(this,e).duration=+t.apply(this,arguments)}}function X5(e,t){return t=+t,function(){Qr(this,e).duration=t}}function Q5(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?G5:X5)(t,e)):Mr(this.node(),t).duration}function Z5(e,t){if(typeof t!="function")throw new Error;return function(){Qr(this,e).ease=t}}function K5(e){var t=this._id;return arguments.length?this.each(Z5(t,e)):Mr(this.node(),t).ease}function J5(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Qr(this,e).ease=r}}function tA(e){if(typeof e!="function")throw new Error;return this.each(J5(this._id,e))}function eA(e){typeof e!="function"&&(e=Ok(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var s=t[n],o=s.length,a=i[n]=[],l,h=0;h<o;++h)(l=s[h])&&e.call(l,l.__data__,h,s)&&a.push(l);return new mi(i,this._parents,this._name,this._id)}function rA(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,s=Math.min(i,n),o=new Array(i),a=0;a<s;++a)for(var l=t[a],h=r[a],c=l.length,u=o[a]=new Array(c),f,d=0;d<c;++d)(f=l[d]||h[d])&&(u[d]=f);for(;a<i;++a)o[a]=t[a];return new mi(o,this._parents,this._name,this._id)}function iA(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function nA(e,t,r){var i,n,s=iA(t)?kg:Qr;return function(){var o=s(this,e),a=o.on;a!==i&&(n=(i=a).copy()).on(t,r),o.on=n}}function sA(e,t){var r=this._id;return arguments.length<2?Mr(this.node(),r).on.on(e):this.each(nA(r,e,t))}function oA(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function aA(){return this.on("end.remove",oA(this._id))}function lA(e){var t=this._name,r=this._id;typeof e!="function"&&(e=gg(e));for(var i=this._groups,n=i.length,s=new Array(n),o=0;o<n;++o)for(var a=i[o],l=a.length,h=s[o]=new Array(l),c,u,f=0;f<l;++f)(c=a[f])&&(u=e.call(c,c.__data__,f,a))&&("__data__"in c&&(u.__data__=c.__data__),h[f]=u,Rc(h[f],t,r,f,h,Mr(c,r)));return new mi(s,this._parents,t,r)}function hA(e){var t=this._name,r=this._id;typeof e!="function"&&(e=$k(e));for(var i=this._groups,n=i.length,s=[],o=[],a=0;a<n;++a)for(var l=i[a],h=l.length,c,u=0;u<h;++u)if(c=l[u]){for(var f=e.call(c,c.__data__,u,l),d,p=Mr(c,r),g=0,x=f.length;g<x;++g)(d=f[g])&&Rc(d,t,r,g,f,p);s.push(f),o.push(c)}return new mi(s,o,t,r)}var cA=Ya.prototype.constructor;function uA(){return new cA(this._groups,this._parents)}function dA(e,t){var r,i,n;return function(){var s=Vs(this,e),o=(this.style.removeProperty(e),Vs(this,e));return s===o?null:s===r&&o===i?n:n=t(r=s,i=o)}}function e2(e){return function(){this.style.removeProperty(e)}}function fA(e,t,r){var i,n=r+"",s;return function(){var o=Vs(this,e);return o===n?null:o===i?s:s=t(i=o,r)}}function pA(e,t,r){var i,n,s;return function(){var o=Vs(this,e),a=r(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Vs(this,e))),o===l?null:o===i&&l===n?s:(n=l,s=t(i=o,a))}}function gA(e,t){var r,i,n,s="style."+t,o="end."+s,a;return function(){var l=Qr(this,e),h=l.on,c=l.value[s]==null?a||(a=e2(t)):void 0;(h!==r||n!==c)&&(i=(r=h).copy()).on(o,n=c),l.on=i}}function mA(e,t,r){var i=(e+="")=="transform"?C5:t2;return t==null?this.styleTween(e,dA(e,i)).on("end.style."+e,e2(e)):typeof t=="function"?this.styleTween(e,pA(e,i,bg(this,"style."+e,t))).each(gA(this._id,e)):this.styleTween(e,fA(e,i,t),r).on("end.style."+e,null)}function yA(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function xA(e,t,r){var i,n;function s(){var o=t.apply(this,arguments);return o!==n&&(i=(n=o)&&yA(e,o,r)),i}return s._value=t,s}function CA(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,xA(e,t,r??""))}function kA(e){return function(){this.textContent=e}}function bA(e){return function(){var t=e(this);this.textContent=t??""}}function vA(e){return this.tween("text",typeof e=="function"?bA(bg(this,"text",e)):kA(e==null?"":e+""))}function wA(e){return function(t){this.textContent=e.call(this,t)}}function SA(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&wA(n)),t}return i._value=e,i}function TA(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,SA(e))}function _A(){for(var e=this._name,t=this._id,r=r2(),i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],a=o.length,l,h=0;h<a;++h)if(l=o[h]){var c=Mr(l,t);Rc(l,e,r,h,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new mi(i,this._parents,e,r)}function BA(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--n===0&&s()}};r.each(function(){var h=Qr(this,i),c=h.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),h.on=t}),n===0&&s()})}var LA=0;function mi(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function r2(){return++LA}var ti=Ya.prototype;mi.prototype={constructor:mi,select:lA,selectAll:hA,selectChild:ti.selectChild,selectChildren:ti.selectChildren,filter:eA,merge:rA,selection:uA,transition:_A,call:ti.call,nodes:ti.nodes,node:ti.node,size:ti.size,empty:ti.empty,each:ti.each,on:sA,attr:N5,attrTween:j5,style:mA,styleTween:CA,text:vA,textTween:TA,remove:aA,tween:M5,delay:V5,duration:Q5,ease:K5,easeVarying:tA,end:BA,[Symbol.iterator]:ti[Symbol.iterator]};function EA(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var FA={time:null,delay:0,duration:250,ease:EA};function AA(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function MA(e){var t,r;e instanceof mi?(t=e._id,e=e._name):(t=r2(),(r=FA).time=Cg(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,s=0;s<n;++s)for(var o=i[s],a=o.length,l,h=0;h<a;++h)(l=o[h])&&Rc(l,e,t,h,o,r||AA(l,t));return new mi(i,this._parents,e,t)}Ya.prototype.interrupt=E5;Ya.prototype.transition=MA;const kf=Math.PI,bf=2*kf,an=1e-6,$A=bf-an;function i2(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function OA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return i2;const r=10**t;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class IA{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?i2:OA(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,i,n){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,r,i,n,s,o){this._append`C${+t},${+r},${+i},${+n},${this._x1=+s},${this._y1=+o}`}arcTo(t,r,i,n,s){if(t=+t,r=+r,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,a=this._y1,l=i-t,h=n-r,c=o-t,u=a-r,f=c*c+u*u;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>an)if(!(Math.abs(u*l-h*c)>an)||!s)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-o,p=n-a,g=l*l+h*h,x=d*d+p*p,y=Math.sqrt(g),C=Math.sqrt(f),k=s*Math.tan((kf-Math.acos((g+f-x)/(2*y*C)))/2),v=k/C,S=k/y;Math.abs(v-1)>an&&this._append`L${t+v*c},${r+v*u}`,this._append`A${s},${s},0,0,${+(u*d>c*p)},${this._x1=t+S*l},${this._y1=r+S*h}`}}arc(t,r,i,n,s,o){if(t=+t,r=+r,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(n),l=i*Math.sin(n),h=t+a,c=r+l,u=1^o,f=o?n-s:s-n;this._x1===null?this._append`M${h},${c}`:(Math.abs(this._x1-h)>an||Math.abs(this._y1-c)>an)&&this._append`L${h},${c}`,i&&(f<0&&(f=f%bf+bf),f>$A?this._append`A${i},${i},0,1,${u},${t-a},${r-l}A${i},${i},0,1,${u},${this._x1=h},${this._y1=c}`:f>an&&this._append`A${i},${i},0,${+(f>=kf)},${u},${this._x1=t+i*Math.cos(s)},${this._y1=r+i*Math.sin(s)}`)}rect(t,r,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}}function Gn(e){return function(){return e}}const mz=Math.abs,yz=Math.atan2,xz=Math.cos,Cz=Math.max,kz=Math.min,bz=Math.sin,vz=Math.sqrt,T0=1e-12,vg=Math.PI,_0=vg/2,wz=2*vg;function Sz(e){return e>1?0:e<-1?vg:Math.acos(e)}function Tz(e){return e>=1?_0:e<=-1?-_0:Math.asin(e)}function PA(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const i=Math.floor(r);if(!(i>=0))throw new RangeError(`invalid digits: ${r}`);t=i}return e},()=>new IA(t)}function DA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function n2(e){this._context=e}n2.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ia(e){return new n2(e)}function RA(e){return e[0]}function NA(e){return e[1]}function zA(e,t){var r=Gn(!0),i=null,n=ia,s=null,o=PA(a);e=typeof e=="function"?e:e===void 0?RA:Gn(e),t=typeof t=="function"?t:t===void 0?NA:Gn(t);function a(l){var h,c=(l=DA(l)).length,u,f=!1,d;for(i==null&&(s=n(d=o())),h=0;h<=c;++h)!(h<c&&r(u=l[h],h,l))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+e(u,h,l),+t(u,h,l));if(d)return s=null,d+""||null}return a.x=function(l){return arguments.length?(e=typeof l=="function"?l:Gn(+l),a):e},a.y=function(l){return arguments.length?(t=typeof l=="function"?l:Gn(+l),a):t},a.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Gn(!!l),a):r},a.curve=function(l){return arguments.length?(n=l,i!=null&&(s=n(i)),a):n},a.context=function(l){return arguments.length?(l==null?i=s=null:s=n(i=l),a):i},a}class s2{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function o2(e){return new s2(e,!0)}function a2(e){return new s2(e,!1)}function Yi(){}function Uh(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Nc(e){this._context=e}Nc.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:Uh(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vf(e){return new Nc(e)}function l2(e){this._context=e}l2.prototype={areaStart:Yi,areaEnd:Yi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qA(e){return new l2(e)}function h2(e){this._context=e}h2.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Uh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function WA(e){return new h2(e)}function c2(e,t){this._basis=new Nc(e),this._beta=t}c2.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],n=t[0],s=e[r]-i,o=t[r]-n,a=-1,l;++a<=r;)l=a/r,this._basis.point(this._beta*e[a]+(1-this._beta)*(i+l*s),this._beta*t[a]+(1-this._beta)*(n+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const HA=function e(t){function r(i){return t===1?new Nc(i):new c2(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function Yh(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function wg(e,t){this._context=e,this._k=(1-t)/6}wg.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:Yh(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Yh(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const u2=function e(t){function r(i){return new wg(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Sg(e,t){this._context=e,this._k=(1-t)/6}Sg.prototype={areaStart:Yi,areaEnd:Yi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yh(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const jA=function e(t){function r(i){return new Sg(i,t)}return r.tension=function(i){return e(+i)},r}(0);function Tg(e,t){this._context=e,this._k=(1-t)/6}Tg.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yh(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const UA=function e(t){function r(i){return new Tg(i,t)}return r.tension=function(i){return e(+i)},r}(0);function _g(e,t,r){var i=e._x1,n=e._y1,s=e._x2,o=e._y2;if(e._l01_a>T0){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>T0){var h=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*h+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*h+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(i,n,s,o,e._x2,e._y2)}function d2(e,t){this._context=e,this._alpha=t}d2.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_g(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const f2=function e(t){function r(i){return t?new d2(i,t):new wg(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function p2(e,t){this._context=e,this._alpha=t}p2.prototype={areaStart:Yi,areaEnd:Yi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_g(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const YA=function e(t){function r(i){return t?new p2(i,t):new Sg(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function g2(e,t){this._context=e,this._alpha=t}g2.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:_g(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const VA=function e(t){function r(i){return t?new g2(i,t):new Tg(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function m2(e){this._context=e}m2.prototype={areaStart:Yi,areaEnd:Yi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function GA(e){return new m2(e)}function B0(e){return e<0?-1:1}function L0(e,t,r){var i=e._x1-e._x0,n=t-e._x1,s=(e._y1-e._y0)/(i||n<0&&-0),o=(r-e._y1)/(n||i<0&&-0),a=(s*n+o*i)/(i+n);return(B0(s)+B0(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function E0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Qu(e,t,r){var i=e._x0,n=e._y0,s=e._x1,o=e._y1,a=(s-i)/3;e._context.bezierCurveTo(i+a,n+a*t,s-a,o-a*r,s,o)}function Vh(e){this._context=e}Vh.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:Qu(this,this._t0,E0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Qu(this,E0(this,r=L0(this,e,t)),r);break;default:Qu(this,this._t0,r=L0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function y2(e){this._context=new x2(e)}(y2.prototype=Object.create(Vh.prototype)).point=function(e,t){Vh.prototype.point.call(this,t,e)};function x2(e){this._context=e}x2.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,i,n,s){this._context.bezierCurveTo(t,e,i,r,s,n)}};function C2(e){return new Vh(e)}function k2(e){return new y2(e)}function b2(e){this._context=e}b2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var i=F0(e),n=F0(t),s=0,o=1;o<r;++s,++o)this._context.bezierCurveTo(i[0][s],n[0][s],i[1][s],n[1][s],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function F0(e){var t,r=e.length-1,i,n=new Array(r),s=new Array(r),o=new Array(r);for(n[0]=0,s[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,s[t]=4,o[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,s[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/s[t-1],s[t]-=i,o[t]-=i*o[t-1];for(n[r-1]=o[r-1]/s[r-1],t=r-2;t>=0;--t)n[t]=(o[t]-n[t+1])/s[t];for(s[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)s[t]=2*e[t+1]-n[t+1];return[n,s]}function v2(e){return new b2(e)}function zc(e,t){this._context=e,this._t=t}zc.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function w2(e){return new zc(e,.5)}function S2(e){return new zc(e,0)}function T2(e){return new zc(e,1)}function zo(e,t,r){this.k=e,this.x=t,this.y=r}zo.prototype={constructor:zo,scale:function(e){return e===1?this:new zo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};zo.prototype;var XA=m(e=>{var n;const{securityLevel:t}=wt();let r=mt("body");if(t==="sandbox"){const o=((n=mt(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=mt(o.body)}return r.select(`#${e}`)},"selectSvgElement");function Bg(e){return typeof e>"u"||e===null}m(Bg,"isNothing");function _2(e){return typeof e=="object"&&e!==null}m(_2,"isObject");function B2(e){return Array.isArray(e)?e:Bg(e)?[]:[e]}m(B2,"toArray");function L2(e,t){var r,i,n,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)n=s[r],e[n]=t[n];return e}m(L2,"extend");function E2(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}m(E2,"repeat");function F2(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}m(F2,"isNegativeZero");var QA=Bg,ZA=_2,KA=B2,JA=E2,tM=F2,eM=L2,re={isNothing:QA,isObject:ZA,toArray:KA,repeat:JA,isNegativeZero:tM,extend:eM};function Lg(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
179
|
+
|
|
180
|
+
`+e.mark.snippet),i+" "+r):i}m(Lg,"formatError");function Xs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Lg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}m(Xs,"YAMLException$1");Xs.prototype=Object.create(Error.prototype);Xs.prototype.constructor=Xs;Xs.prototype.toString=m(function(t){return this.name+": "+Lg(this,t)},"toString");var qe=Xs;function rh(e,t,r,i,n){var s="",o="",a=Math.floor(n/2)-1;return i-t>a&&(s=" ... ",t=i-a+s.length),r-i>a&&(o=" ...",r=i+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+o,pos:i-t+s.length}}m(rh,"getLine");function ih(e,t){return re.repeat(" ",t-e.length)+e}m(ih,"padStart");function A2(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],n=[],s,o=-1;s=r.exec(e.buffer);)n.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a="",l,h,c=Math.min(e.line+t.linesAfter,n.length).toString().length,u=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)h=rh(e.buffer,i[o-l],n[o-l],e.position-(i[o]-i[o-l]),u),a=re.repeat(" ",t.indent)+ih((e.line-l+1).toString(),c)+" | "+h.str+`
|
|
181
|
+
`+a;for(h=rh(e.buffer,i[o],n[o],e.position,u),a+=re.repeat(" ",t.indent)+ih((e.line+1).toString(),c)+" | "+h.str+`
|
|
182
|
+
`,a+=re.repeat("-",t.indent+c+3+h.pos)+`^
|
|
183
|
+
`,l=1;l<=t.linesAfter&&!(o+l>=n.length);l++)h=rh(e.buffer,i[o+l],n[o+l],e.position-(i[o]-i[o+l]),u),a+=re.repeat(" ",t.indent)+ih((e.line+l+1).toString(),c)+" | "+h.str+`
|
|
184
|
+
`;return a.replace(/\n$/,"")}m(A2,"makeSnippet");var rM=A2,iM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nM=["scalar","sequence","mapping"];function M2(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}m(M2,"compileStyleAliases");function $2(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(iM.indexOf(r)===-1)throw new qe('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=M2(t.styleAliases||null),nM.indexOf(this.kind)===-1)throw new qe('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}m($2,"Type$1");var we=$2;function wf(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(s,o){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(n=o)}),r[n]=i}),r}m(wf,"compileList");function O2(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(n){n.multi?(e.multi[n.kind].push(n),e.multi.fallback.push(n)):e[n.kind][n.tag]=e.fallback[n.tag]=n}for(m(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}m(O2,"compileMap");function Gh(e){return this.extend(e)}m(Gh,"Schema$1");Gh.prototype.extend=m(function(t){var r=[],i=[];if(t instanceof we)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new qe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof we))throw new qe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new qe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new qe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof we))throw new qe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(Gh.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=wf(n,"implicit"),n.compiledExplicit=wf(n,"explicit"),n.compiledTypeMap=O2(n.compiledImplicit,n.compiledExplicit),n},"extend");var sM=Gh,oM=new we("tag:yaml.org,2002:str",{kind:"scalar",construct:m(function(e){return e!==null?e:""},"construct")}),aM=new we("tag:yaml.org,2002:seq",{kind:"sequence",construct:m(function(e){return e!==null?e:[]},"construct")}),lM=new we("tag:yaml.org,2002:map",{kind:"mapping",construct:m(function(e){return e!==null?e:{}},"construct")}),hM=new sM({explicit:[oM,aM,lM]});function I2(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}m(I2,"resolveYamlNull");function P2(){return null}m(P2,"constructYamlNull");function D2(e){return e===null}m(D2,"isNull");var cM=new we("tag:yaml.org,2002:null",{kind:"scalar",resolve:I2,construct:P2,predicate:D2,represent:{canonical:m(function(){return"~"},"canonical"),lowercase:m(function(){return"null"},"lowercase"),uppercase:m(function(){return"NULL"},"uppercase"),camelcase:m(function(){return"Null"},"camelcase"),empty:m(function(){return""},"empty")},defaultStyle:"lowercase"});function R2(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}m(R2,"resolveYamlBoolean");function N2(e){return e==="true"||e==="True"||e==="TRUE"}m(N2,"constructYamlBoolean");function z2(e){return Object.prototype.toString.call(e)==="[object Boolean]"}m(z2,"isBoolean");var uM=new we("tag:yaml.org,2002:bool",{kind:"scalar",resolve:R2,construct:N2,predicate:z2,represent:{lowercase:m(function(e){return e?"true":"false"},"lowercase"),uppercase:m(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:m(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function q2(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}m(q2,"isHexCode");function W2(e){return 48<=e&&e<=55}m(W2,"isOctCode");function H2(e){return 48<=e&&e<=57}m(H2,"isDecCode");function j2(e){if(e===null)return!1;var t=e.length,r=0,i=!1,n;if(!t)return!1;if(n=e[r],(n==="-"||n==="+")&&(n=e[++r]),n==="0"){if(r+1===t)return!0;if(n=e[++r],n==="b"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(n!=="0"&&n!=="1")return!1;i=!0}return i&&n!=="_"}if(n==="x"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!q2(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!W2(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!H2(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}m(j2,"resolveYamlInteger");function U2(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}m(U2,"constructYamlInteger");function Y2(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!re.isNegativeZero(e)}m(Y2,"isInteger");var dM=new we("tag:yaml.org,2002:int",{kind:"scalar",resolve:j2,construct:U2,predicate:Y2,represent:{binary:m(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:m(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:m(function(e){return e.toString(10)},"decimal"),hexadecimal:m(function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),fM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function V2(e){return!(e===null||!fM.test(e)||e[e.length-1]==="_")}m(V2,"resolveYamlFloat");function G2(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}m(G2,"constructYamlFloat");var pM=/^[-+]?[0-9]+e/;function X2(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(re.isNegativeZero(e))return"-0.0";return r=e.toString(10),pM.test(r)?r.replace("e",".e"):r}m(X2,"representYamlFloat");function Q2(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||re.isNegativeZero(e))}m(Q2,"isFloat");var gM=new we("tag:yaml.org,2002:float",{kind:"scalar",resolve:V2,construct:G2,predicate:Q2,represent:X2,defaultStyle:"lowercase"}),Z2=hM.extend({implicit:[cM,uM,dM,gM]}),mM=Z2,K2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),J2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function tb(e){return e===null?!1:K2.exec(e)!==null||J2.exec(e)!==null}m(tb,"resolveYamlTimestamp");function eb(e){var t,r,i,n,s,o,a,l=0,h=null,c,u,f;if(t=K2.exec(e),t===null&&(t=J2.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(r,i,n));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],u=+(t[11]||0),h=(c*60+u)*6e4,t[9]==="-"&&(h=-h)),f=new Date(Date.UTC(r,i,n,s,o,a,l)),h&&f.setTime(f.getTime()-h),f}m(eb,"constructYamlTimestamp");function rb(e){return e.toISOString()}m(rb,"representYamlTimestamp");var yM=new we("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:tb,construct:eb,instanceOf:Date,represent:rb});function ib(e){return e==="<<"||e===null}m(ib,"resolveYamlMerge");var xM=new we("tag:yaml.org,2002:merge",{kind:"scalar",resolve:ib}),Eg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
185
|
+
\r`;function nb(e){if(e===null)return!1;var t,r,i=0,n=e.length,s=Eg;for(r=0;r<n;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}m(nb,"resolveYamlBinary");function sb(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,s=Eg,o=0,a=[];for(t=0;t<n;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(i.charAt(t));return r=n%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}m(sb,"constructYamlBinary");function ob(e){var t="",r=0,i,n,s=e.length,o=Eg;for(i=0;i<s;i++)i%3===0&&i&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[i];return n=s%3,n===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):n===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):n===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}m(ob,"representYamlBinary");function ab(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}m(ab,"isBinary");var CM=new we("tag:yaml.org,2002:binary",{kind:"scalar",resolve:nb,construct:sb,predicate:ab,represent:ob}),kM=Object.prototype.hasOwnProperty,bM=Object.prototype.toString;function lb(e){if(e===null)return!0;var t=[],r,i,n,s,o,a=e;for(r=0,i=a.length;r<i;r+=1){if(n=a[r],o=!1,bM.call(n)!=="[object Object]")return!1;for(s in n)if(kM.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}m(lb,"resolveYamlOmap");function hb(e){return e!==null?e:[]}m(hb,"constructYamlOmap");var vM=new we("tag:yaml.org,2002:omap",{kind:"sequence",resolve:lb,construct:hb}),wM=Object.prototype.toString;function cb(e){if(e===null)return!0;var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(i=o[t],wM.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;s[t]=[n[0],i[n[0]]]}return!0}m(cb,"resolveYamlPairs");function ub(e){if(e===null)return[];var t,r,i,n,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)i=o[t],n=Object.keys(i),s[t]=[n[0],i[n[0]]];return s}m(ub,"constructYamlPairs");var SM=new we("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cb,construct:ub}),TM=Object.prototype.hasOwnProperty;function db(e){if(e===null)return!0;var t,r=e;for(t in r)if(TM.call(r,t)&&r[t]!==null)return!1;return!0}m(db,"resolveYamlSet");function fb(e){return e!==null?e:{}}m(fb,"constructYamlSet");var _M=new we("tag:yaml.org,2002:set",{kind:"mapping",resolve:db,construct:fb}),pb=mM.extend({implicit:[yM,xM],explicit:[CM,vM,SM,_M]}),Vi=Object.prototype.hasOwnProperty,Xh=1,gb=2,mb=3,Qh=4,Zu=1,BM=2,A0=3,LM=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,EM=/[\x85\u2028\u2029]/,FM=/[,\[\]\{\}]/,yb=/^(?:!|!!|![a-z\-]+!)$/i,xb=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Sf(e){return Object.prototype.toString.call(e)}m(Sf,"_class");function Br(e){return e===10||e===13}m(Br,"is_EOL");function Hi(e){return e===9||e===32}m(Hi,"is_WHITE_SPACE");function Le(e){return e===9||e===32||e===10||e===13}m(Le,"is_WS_OR_EOL");function gn(e){return e===44||e===91||e===93||e===123||e===125}m(gn,"is_FLOW_INDICATOR");function Cb(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}m(Cb,"fromHexCode");function kb(e){return e===120?2:e===117?4:e===85?8:0}m(kb,"escapedHexLen");function bb(e){return 48<=e&&e<=57?e-48:-1}m(bb,"fromDecimalCode");function Tf(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
186
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}m(Tf,"simpleEscapeSequence");function vb(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}m(vb,"charFromCodepoint");function Fg(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}m(Fg,"setProperty");var wb=new Array(256),Sb=new Array(256);for(rn=0;rn<256;rn++)wb[rn]=Tf(rn)?1:0,Sb[rn]=Tf(rn);var rn;function Tb(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||pb,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}m(Tb,"State$1");function Ag(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=rM(r),new qe(t,r)}m(Ag,"generateError");function it(e,t){throw Ag(e,t)}m(it,"throwError");function Fa(e,t){e.onWarning&&e.onWarning.call(null,Ag(e,t))}m(Fa,"throwWarning");var M0={YAML:m(function(t,r,i){var n,s,o;t.version!==null&&it(t,"duplication of %YAML directive"),i.length!==1&&it(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&it(t,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&it(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Fa(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:m(function(t,r,i){var n,s;i.length!==2&&it(t,"TAG directive accepts exactly two arguments"),n=i[0],s=i[1],yb.test(n)||it(t,"ill-formed tag handle (first argument) of the TAG directive"),Vi.call(t.tagMap,n)&&it(t,'there is a previously declared suffix for "'+n+'" tag handle'),xb.test(s)||it(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{it(t,"tag prefix is malformed: "+s)}t.tagMap[n]=s},"handleTagDirective")};function ui(e,t,r,i){var n,s,o,a;if(t<r){if(a=e.input.slice(t,r),i)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||it(e,"expected valid JSON character");else LM.test(a)&&it(e,"the stream contains non-printable characters");e.result+=a}}m(ui,"captureSegment");function _f(e,t,r,i){var n,s,o,a;for(re.isObject(r)||it(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),o=0,a=n.length;o<a;o+=1)s=n[o],Vi.call(t,s)||(Fg(t,s,r[s]),i[s]=!0)}m(_f,"mergeMappings");function mn(e,t,r,i,n,s,o,a,l){var h,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),h=0,c=n.length;h<c;h+=1)Array.isArray(n[h])&&it(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Sf(n[h])==="[object Object]"&&(n[h]="[object Object]");if(typeof n=="object"&&Sf(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,c=s.length;h<c;h+=1)_f(e,t,s[h],r);else _f(e,t,s,r);else!e.json&&!Vi.call(r,n)&&Vi.call(t,n)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=l||e.position,it(e,"duplicated mapping key")),Fg(t,n,s),delete r[n];return t}m(mn,"storeMappingPair");function qc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):it(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}m(qc,"readLineBreak");function Vt(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Hi(n);)n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&n===35)do n=e.input.charCodeAt(++e.position);while(n!==10&&n!==13&&n!==0);if(Br(n))for(qc(e),n=e.input.charCodeAt(e.position),i++,e.lineIndent=0;n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&Fa(e,"deficient indentation"),i}m(Vt,"skipSeparationSpace");function Ga(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Le(r)))}m(Ga,"testDocumentSeparator");function Wc(e,t){t===1?e.result+=" ":t>1&&(e.result+=re.repeat(`
|
|
187
|
+
`,t-1))}m(Wc,"writeFoldedLines");function _b(e,t,r){var i,n,s,o,a,l,h,c,u=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Le(d)||gn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=e.input.charCodeAt(e.position+1),Le(n)||r&&gn(n)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Le(n)||r&&gn(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Le(i))break}else{if(e.position===e.lineStart&&Ga(e)||r&&gn(d))break;if(Br(d))if(l=e.line,h=e.lineStart,c=e.lineIndent,Vt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=l,e.lineStart=h,e.lineIndent=c;break}}a&&(ui(e,s,o,!1),Wc(e,e.line-l),s=o=e.position,a=!1),Hi(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return ui(e,s,o,!1),e.result?!0:(e.kind=u,e.result=f,!1)}m(_b,"readPlainScalar");function Bb(e,t){var r,i,n;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=n=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ui(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,n=e.position;else return!0;else Br(r)?(ui(e,i,n,!0),Wc(e,Vt(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Ga(e)?it(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);it(e,"unexpected end of the stream within a single quoted scalar")}m(Bb,"readSingleQuotedScalar");function Lb(e,t){var r,i,n,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ui(e,r,e.position,!0),e.position++,!0;if(a===92){if(ui(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Br(a))Vt(e,!1,t);else if(a<256&&wb[a])e.result+=Sb[a],e.position++;else if((o=kb(a))>0){for(n=o,s=0;n>0;n--)a=e.input.charCodeAt(++e.position),(o=Cb(a))>=0?s=(s<<4)+o:it(e,"expected hexadecimal character");e.result+=vb(s),e.position++}else it(e,"unknown escape sequence");r=i=e.position}else Br(a)?(ui(e,r,i,!0),Wc(e,Vt(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ga(e)?it(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}it(e,"unexpected end of the stream within a double quoted scalar")}m(Lb,"readDoubleQuotedScalar");function Eb(e,t){var r=!0,i,n,s,o=e.tag,a,l=e.anchor,h,c,u,f,d,p=Object.create(null),g,x,y,C;if(C=e.input.charCodeAt(e.position),C===91)c=93,d=!1,a=[];else if(C===123)c=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),C=e.input.charCodeAt(++e.position);C!==0;){if(Vt(e,!0,t),C=e.input.charCodeAt(e.position),C===c)return e.position++,e.tag=o,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=a,!0;r?C===44&&it(e,"expected the node content, but found ','"):it(e,"missed comma between flow collection entries"),x=g=y=null,u=f=!1,C===63&&(h=e.input.charCodeAt(e.position+1),Le(h)&&(u=f=!0,e.position++,Vt(e,!0,t))),i=e.line,n=e.lineStart,s=e.position,En(e,t,Xh,!1,!0),x=e.tag,g=e.result,Vt(e,!0,t),C=e.input.charCodeAt(e.position),(f||e.line===i)&&C===58&&(u=!0,C=e.input.charCodeAt(++e.position),Vt(e,!0,t),En(e,t,Xh,!1,!0),y=e.result),d?mn(e,a,p,x,g,y,i,n,s):u?a.push(mn(e,null,p,x,g,y,i,n,s)):a.push(g),Vt(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(r=!0,C=e.input.charCodeAt(++e.position)):r=!1}it(e,"unexpected end of the stream within a flow collection")}m(Eb,"readFlowCollection");function Fb(e,t){var r,i,n=Zu,s=!1,o=!1,a=t,l=0,h=!1,c,u;if(u=e.input.charCodeAt(e.position),u===124)i=!1;else if(u===62)i=!0;else return!1;for(e.kind="scalar",e.result="";u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)Zu===n?n=u===43?A0:BM:it(e,"repeat of a chomping mode identifier");else if((c=bb(u))>=0)c===0?it(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?it(e,"repeat of an indentation width identifier"):(a=t+c-1,o=!0);else break;if(Hi(u)){do u=e.input.charCodeAt(++e.position);while(Hi(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Br(u)&&u!==0)}for(;u!==0;){for(qc(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Br(u)){l++;continue}if(e.lineIndent<a){n===A0?e.result+=re.repeat(`
|
|
188
|
+
`,s?1+l:l):n===Zu&&s&&(e.result+=`
|
|
189
|
+
`);break}for(i?Hi(u)?(h=!0,e.result+=re.repeat(`
|
|
190
|
+
`,s?1+l:l)):h?(h=!1,e.result+=re.repeat(`
|
|
191
|
+
`,l+1)):l===0?s&&(e.result+=" "):e.result+=re.repeat(`
|
|
192
|
+
`,l):e.result+=re.repeat(`
|
|
193
|
+
`,s?1+l:l),s=!0,o=!0,l=0,r=e.position;!Br(u)&&u!==0;)u=e.input.charCodeAt(++e.position);ui(e,r,e.position,!1)}return!0}m(Fb,"readBlockScalar");function Bf(e,t){var r,i=e.tag,n=e.anchor,s=[],o,a=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,it(e,"tab characters must not be used in indentation")),!(l!==45||(o=e.input.charCodeAt(e.position+1),!Le(o))));){if(a=!0,e.position++,Vt(e,!0,-1)&&e.lineIndent<=t){s.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,En(e,t,mb,!1,!0),s.push(e.result),Vt(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)it(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=s,!0):!1}m(Bf,"readBlockSequence");function Ab(e,t,r){var i,n,s,o,a,l,h=e.tag,c=e.anchor,u={},f=Object.create(null),d=null,p=null,g=null,x=!1,y=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=u),C=e.input.charCodeAt(e.position);C!==0;){if(!x&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,it(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(C===63||C===58)&&Le(i))C===63?(x&&(mn(e,u,f,d,p,null,o,a,l),d=p=g=null),y=!0,x=!0,n=!0):x?(x=!1,n=!0):it(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=i;else{if(o=e.line,a=e.lineStart,l=e.position,!En(e,r,gb,!1,!0))break;if(e.line===s){for(C=e.input.charCodeAt(e.position);Hi(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),Le(C)||it(e,"a whitespace character is expected after the key-value separator within a block mapping"),x&&(mn(e,u,f,d,p,null,o,a,l),d=p=g=null),y=!0,x=!1,n=!1,d=e.tag,p=e.result;else if(y)it(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=c,!0}else if(y)it(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=c,!0}if((e.line===s||e.lineIndent>t)&&(x&&(o=e.line,a=e.lineStart,l=e.position),En(e,t,Qh,!0,n)&&(x?p=e.result:g=e.result),x||(mn(e,u,f,d,p,g,o,a,l),d=p=g=null),Vt(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&C!==0)it(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return x&&mn(e,u,f,d,p,null,o,a,l),y&&(e.tag=h,e.anchor=c,e.kind="mapping",e.result=u),y}m(Ab,"readBlockMapping");function Mb(e){var t,r=!1,i=!1,n,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&it(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(i=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):it(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Le(o);)o===33&&(i?it(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),yb.test(n)||it(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),FM.test(s)&&it(e,"tag suffix cannot contain flow indicator characters")}s&&!xb.test(s)&&it(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{it(e,"tag name is malformed: "+s)}return r?e.tag=s:Vi.call(e.tagMap,n)?e.tag=e.tagMap[n]+s:n==="!"?e.tag="!"+s:n==="!!"?e.tag="tag:yaml.org,2002:"+s:it(e,'undeclared tag handle "'+n+'"'),!0}m(Mb,"readTagProperty");function $b(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&it(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Le(r)&&!gn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&it(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}m($b,"readAnchorProperty");function Ob(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Le(i)&&!gn(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&it(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Vi.call(e.anchorMap,r)||it(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Vt(e,!0,-1),!0}m(Ob,"readAlias");function En(e,t,r,i,n){var s,o,a,l=1,h=!1,c=!1,u,f,d,p,g,x;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Qh===r||mb===r,i&&Vt(e,!0,-1)&&(h=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;Mb(e)||$b(e);)Vt(e,!0,-1)?(h=!0,a=s,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):a=!1;if(a&&(a=h||n),(l===1||Qh===r)&&(Xh===r||gb===r?g=t:g=t+1,x=e.position-e.lineStart,l===1?a&&(Bf(e,x)||Ab(e,x,g))||Eb(e,g)?c=!0:(o&&Fb(e,g)||Bb(e,g)||Lb(e,g)?c=!0:Ob(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&it(e,"alias node should not have any properties")):_b(e,g,Xh===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=a&&Bf(e,x))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&it(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),u=0,f=e.implicitTypes.length;u<f;u+=1)if(p=e.implicitTypes[u],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Vi.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],u=0,f=d.length;u<f;u+=1)if(e.tag.slice(0,d[u].tag.length)===d[u].tag){p=d[u];break}p||it(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&it(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):it(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||c}m(En,"composeNode");function Ib(e){var t=e.position,r,i,n,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Vt(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Le(o);)o=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&it(e,"directive name must not be less than one character in length");o!==0;){for(;Hi(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Br(o));break}if(Br(o))break;for(r=e.position;o!==0&&!Le(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}o!==0&&qc(e),Vi.call(M0,i)?M0[i](e,i,n):Fa(e,'unknown document directive "'+i+'"')}if(Vt(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Vt(e,!0,-1)):s&&it(e,"directives end mark is expected"),En(e,e.lineIndent-1,Qh,!1,!0),Vt(e,!0,-1),e.checkLineBreaks&&EM.test(e.input.slice(t,e.position))&&Fa(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ga(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Vt(e,!0,-1));return}if(e.position<e.length-1)it(e,"end of the stream or a document separator is expected");else return}m(Ib,"readDocument");function Mg(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
194
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new Tb(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,it(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Ib(r);return r.documents}m(Mg,"loadDocuments");function AM(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Mg(e,r);if(typeof t!="function")return i;for(var n=0,s=i.length;n<s;n+=1)t(i[n])}m(AM,"loadAll$1");function Pb(e,t){var r=Mg(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new qe("expected a single document in the stream, but found more")}}m(Pb,"load$1");var MM=Pb,$M={load:MM},Db=Object.prototype.toString,Rb=Object.prototype.hasOwnProperty,$g=65279,OM=9,Aa=10,IM=13,PM=32,DM=33,RM=34,Lf=35,NM=37,zM=38,qM=39,WM=42,Nb=44,HM=45,Zh=58,jM=61,UM=62,YM=63,VM=64,zb=91,qb=93,GM=96,Wb=123,XM=124,Hb=125,Te={};Te[0]="\\0";Te[7]="\\a";Te[8]="\\b";Te[9]="\\t";Te[10]="\\n";Te[11]="\\v";Te[12]="\\f";Te[13]="\\r";Te[27]="\\e";Te[34]='\\"';Te[92]="\\\\";Te[133]="\\N";Te[160]="\\_";Te[8232]="\\L";Te[8233]="\\P";var QM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],ZM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function jb(e,t){var r,i,n,s,o,a,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,s=i.length;n<s;n+=1)o=i[n],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),l=e.compiledTypeMap.fallback[o],l&&Rb.call(l.styleAliases,a)&&(a=l.styleAliases[a]),r[o]=a;return r}m(jb,"compileStyleMap");function Ub(e){var t,r,i;if(t=e.toString(16).toUpperCase(),e<=255)r="x",i=2;else if(e<=65535)r="u",i=4;else if(e<=4294967295)r="U",i=8;else throw new qe("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+re.repeat("0",i-t.length)+t}m(Ub,"encodeHex");var KM=1,Ma=2;function Yb(e){this.schema=e.schema||pb,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=re.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=jb(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ma:KM,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}m(Yb,"State");function Ef(e,t){for(var r=re.repeat(" ",t),i=0,n=-1,s="",o,a=e.length;i<a;)n=e.indexOf(`
|
|
195
|
+
`,i),n===-1?(o=e.slice(i),i=a):(o=e.slice(i,n+1),i=n+1),o.length&&o!==`
|
|
196
|
+
`&&(s+=r),s+=o;return s}m(Ef,"indentString");function Kh(e,t){return`
|
|
197
|
+
`+re.repeat(" ",e.indent*t)}m(Kh,"generateNextLine");function Vb(e,t){var r,i,n;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(n=e.implicitTypes[r],n.resolve(t))return!0;return!1}m(Vb,"testImplicitResolving");function $a(e){return e===PM||e===OM}m($a,"isWhitespace");function Qs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==$g||65536<=e&&e<=1114111}m(Qs,"isPrintable");function Ff(e){return Qs(e)&&e!==$g&&e!==IM&&e!==Aa}m(Ff,"isNsCharOrWhitespace");function Af(e,t,r){var i=Ff(e),n=i&&!$a(e);return(r?i:i&&e!==Nb&&e!==zb&&e!==qb&&e!==Wb&&e!==Hb)&&e!==Lf&&!(t===Zh&&!n)||Ff(t)&&!$a(t)&&e===Lf||t===Zh&&n}m(Af,"isPlainSafe");function Gb(e){return Qs(e)&&e!==$g&&!$a(e)&&e!==HM&&e!==YM&&e!==Zh&&e!==Nb&&e!==zb&&e!==qb&&e!==Wb&&e!==Hb&&e!==Lf&&e!==zM&&e!==WM&&e!==DM&&e!==XM&&e!==jM&&e!==UM&&e!==qM&&e!==RM&&e!==NM&&e!==VM&&e!==GM}m(Gb,"isPlainSafeFirst");function Xb(e){return!$a(e)&&e!==Zh}m(Xb,"isPlainSafeLast");function ps(e,t){var r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}m(ps,"codePointAt");function Og(e){var t=/^\n* /;return t.test(e)}m(Og,"needIndentIndicator");var Qb=1,Mf=2,Zb=3,Kb=4,Jn=5;function Jb(e,t,r,i,n,s,o,a){var l,h=0,c=null,u=!1,f=!1,d=i!==-1,p=-1,g=Gb(ps(e,0))&&Xb(ps(e,e.length-1));if(t||o)for(l=0;l<e.length;h>=65536?l+=2:l++){if(h=ps(e,l),!Qs(h))return Jn;g=g&&Af(h,c,a),c=h}else{for(l=0;l<e.length;h>=65536?l+=2:l++){if(h=ps(e,l),h===Aa)u=!0,d&&(f=f||l-p-1>i&&e[p+1]!==" ",p=l);else if(!Qs(h))return Jn;g=g&&Af(h,c,a),c=h}f=f||d&&l-p-1>i&&e[p+1]!==" "}return!u&&!f?g&&!o&&!n(e)?Qb:s===Ma?Jn:Mf:r>9&&Og(e)?Jn:o?s===Ma?Jn:Mf:f?Kb:Zb}m(Jb,"chooseScalarStyle");function tv(e,t,r,i,n){e.dump=function(){if(t.length===0)return e.quotingType===Ma?'""':"''";if(!e.noCompatMode&&(QM.indexOf(t)!==-1||ZM.test(t)))return e.quotingType===Ma?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=i||e.flowLevel>-1&&r>=e.flowLevel;function l(h){return Vb(e,h)}switch(m(l,"testAmbiguity"),Jb(t,a,e.indent,o,l,e.quotingType,e.forceQuotes&&!i,n)){case Qb:return t;case Mf:return"'"+t.replace(/'/g,"''")+"'";case Zb:return"|"+$f(t,e.indent)+Of(Ef(t,s));case Kb:return">"+$f(t,e.indent)+Of(Ef(ev(t,o),s));case Jn:return'"'+rv(t)+'"';default:throw new qe("impossible error: invalid scalar style")}}()}m(tv,"writeScalar");function $f(e,t){var r=Og(e)?String(t):"",i=e[e.length-1]===`
|
|
198
|
+
`,n=i&&(e[e.length-2]===`
|
|
199
|
+
`||e===`
|
|
200
|
+
`),s=n?"+":i?"":"-";return r+s+`
|
|
201
|
+
`}m($f,"blockHeader");function Of(e){return e[e.length-1]===`
|
|
202
|
+
`?e.slice(0,-1):e}m(Of,"dropEndingNewline");function ev(e,t){for(var r=/(\n+)([^\n]*)/g,i=function(){var h=e.indexOf(`
|
|
203
|
+
`);return h=h!==-1?h:e.length,r.lastIndex=h,If(e.slice(0,h),t)}(),n=e[0]===`
|
|
204
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],l=o[2];s=l[0]===" ",i+=a+(!n&&!s&&l!==""?`
|
|
205
|
+
`:"")+If(l,t),n=s}return i}m(ev,"foldString");function If(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,s,o=0,a=0,l="";i=r.exec(e);)a=i.index,a-n>t&&(s=o>n?o:a,l+=`
|
|
206
|
+
`+e.slice(n,s),n=s+1),o=a;return l+=`
|
|
207
|
+
`,e.length-n>t&&o>n?l+=e.slice(n,o)+`
|
|
208
|
+
`+e.slice(o+1):l+=e.slice(n),l.slice(1)}m(If,"foldLine");function rv(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=ps(e,n),i=Te[r],!i&&Qs(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||Ub(r);return t}m(rv,"escapeString");function iv(e,t,r){var i="",n=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(Vr(e,t,a,!1,!1)||typeof a>"u"&&Vr(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}m(iv,"writeFlowSequence");function Pf(e,t,r,i){var n="",s=e.tag,o,a,l;for(o=0,a=r.length;o<a;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(Vr(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Vr(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=Kh(e,t)),e.dump&&Aa===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=s,e.dump=n||"[]"}m(Pf,"writeBlockSequence");function nv(e,t,r){var i="",n=e.tag,s=Object.keys(r),o,a,l,h,c;for(o=0,a=s.length;o<a;o+=1)c="",i!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=s[o],h=r[l],e.replacer&&(h=e.replacer.call(r,l,h)),Vr(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Vr(e,t,h,!1,!1)&&(c+=e.dump,i+=c));e.tag=n,e.dump="{"+i+"}"}m(nv,"writeFlowMapping");function sv(e,t,r,i){var n="",s=e.tag,o=Object.keys(r),a,l,h,c,u,f;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new qe("sortKeys must be a boolean or a function");for(a=0,l=o.length;a<l;a+=1)f="",(!i||n!=="")&&(f+=Kh(e,t)),h=o[a],c=r[h],e.replacer&&(c=e.replacer.call(r,h,c)),Vr(e,t+1,h,!0,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Aa===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=Kh(e,t)),Vr(e,t+1,c,!0,u)&&(e.dump&&Aa===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=s,e.dump=n||"{}"}m(sv,"writeBlockMapping");function Df(e,t,r){var i,n,s,o,a,l;for(n=r?e.explicitTypes:e.implicitTypes,s=0,o=n.length;s<o;s+=1)if(a=n[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(l=e.styleMap[a.tag]||a.defaultStyle,Db.call(a.represent)==="[object Function]")i=a.represent(t,l);else if(Rb.call(a.represent,l))i=a.represent[l](t,l);else throw new qe("!<"+a.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}m(Df,"detectType");function Vr(e,t,r,i,n,s,o){e.tag=null,e.dump=r,Df(e,r,!1)||Df(e,r,!0);var a=Db.call(e.dump),l=i,h;i&&(i=e.flowLevel<0||e.flowLevel>t);var c=a==="[object Object]"||a==="[object Array]",u,f;if(c&&(u=e.duplicates.indexOf(r),f=u!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(c&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),a==="[object Object]")i&&Object.keys(e.dump).length!==0?(sv(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(nv(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Pf(e,t-1,e.dump,n):Pf(e,t,e.dump,n),f&&(e.dump="&ref_"+u+e.dump)):(iv(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&tv(e,e.dump,t,s,l);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new qe("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}m(Vr,"writeNode");function ov(e,t){var r=[],i=[],n,s;for(Jh(e,r,i),n=0,s=i.length;n<s;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(s)}m(ov,"getDuplicateReferences");function Jh(e,t,r){var i,n,s;if(e!==null&&typeof e=="object")if(n=t.indexOf(e),n!==-1)r.indexOf(n)===-1&&r.push(n);else if(t.push(e),Array.isArray(e))for(n=0,s=e.length;n<s;n+=1)Jh(e[n],t,r);else for(i=Object.keys(e),n=0,s=i.length;n<s;n+=1)Jh(e[i[n]],t,r)}m(Jh,"inspectNode");function JM(e,t){t=t||{};var r=new Yb(t);r.noRefs||ov(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Vr(r,0,i,!0,!0)?r.dump+`
|
|
209
|
+
`:""}m(JM,"dump$1");function t$(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}m(t$,"renamed");var e$=Z2,r$=$M.load;/*! Bundled license information:
|
|
210
|
+
|
|
211
|
+
js-yaml/dist/js-yaml.mjs:
|
|
212
|
+
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
213
|
+
*/var wo=m((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),be={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},$0={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function qo(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Dt(e),t=Dt(t);const[r,i]=[e.x,e.y],[n,s]=[t.x,t.y],o=n-r,a=s-i;return{angle:Math.atan(a/o),deltaX:o,deltaY:a}}m(qo,"calculateDeltaAndAngle");var Dt=m(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),i$=m(e=>({x:m(function(t,r,i){let n=0;const s=Dt(i[0]).x<Dt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(be,e.arrowTypeStart)){const{angle:d,deltaX:p}=qo(i[0],i[1]);n=be[e.arrowTypeStart]*Math.cos(d)*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(be,e.arrowTypeEnd)){const{angle:d,deltaX:p}=qo(i[i.length-1],i[i.length-2]);n=be[e.arrowTypeEnd]*Math.cos(d)*(p>=0?1:-1)}const o=Math.abs(Dt(t).x-Dt(i[i.length-1]).x),a=Math.abs(Dt(t).y-Dt(i[i.length-1]).y),l=Math.abs(Dt(t).x-Dt(i[0]).x),h=Math.abs(Dt(t).y-Dt(i[0]).y),c=be[e.arrowTypeStart],u=be[e.arrowTypeEnd],f=1;if(o<u&&o>0&&a<u){let d=u+f-o;d*=s==="right"?-1:1,n-=d}if(l<c&&l>0&&h<c){let d=c+f-l;d*=s==="right"?-1:1,n+=d}return Dt(t).x+n},"x"),y:m(function(t,r,i){let n=0;const s=Dt(i[0]).y<Dt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(be,e.arrowTypeStart)){const{angle:d,deltaY:p}=qo(i[0],i[1]);n=be[e.arrowTypeStart]*Math.abs(Math.sin(d))*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(be,e.arrowTypeEnd)){const{angle:d,deltaY:p}=qo(i[i.length-1],i[i.length-2]);n=be[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(p>=0?1:-1)}const o=Math.abs(Dt(t).y-Dt(i[i.length-1]).y),a=Math.abs(Dt(t).x-Dt(i[i.length-1]).x),l=Math.abs(Dt(t).y-Dt(i[0]).y),h=Math.abs(Dt(t).x-Dt(i[0]).x),c=be[e.arrowTypeStart],u=be[e.arrowTypeEnd],f=1;if(o<u&&o>0&&a<u){let d=u+f-o;d*=s==="up"?-1:1,n-=d}if(l<c&&l>0&&h<c){let d=c+f-l;d*=s==="up"?-1:1,n+=d}return Dt(t).y+n},"y")}),"getLineFunctionsWithOffset"),av={},oe={};Object.defineProperty(oe,"__esModule",{value:!0});oe.BLANK_URL=oe.relativeFirstCharacters=oe.whitespaceEscapeCharsRegex=oe.urlSchemeRegex=oe.ctrlCharactersRegex=oe.htmlCtrlEntityRegex=oe.htmlEntitiesRegex=oe.invalidProtocolRegex=void 0;oe.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;oe.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;oe.htmlCtrlEntityRegex=/&(newline|tab);/gi;oe.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;oe.urlSchemeRegex=/^.+(:|:)/gim;oe.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;oe.relativeFirstCharacters=[".","/"];oe.BLANK_URL="about:blank";Object.defineProperty(av,"__esModule",{value:!0});var n$=av.sanitizeUrl=l$,ke=oe;function s$(e){return ke.relativeFirstCharacters.indexOf(e[0])>-1}function o$(e){var t=e.replace(ke.ctrlCharactersRegex,"");return t.replace(ke.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function a$(e){return URL.canParse(e)}function O0(e){try{return decodeURIComponent(e)}catch{return e}}function l$(e){if(!e)return ke.BLANK_URL;var t,r=O0(e.trim());do r=o$(r).replace(ke.htmlCtrlEntityRegex,"").replace(ke.ctrlCharactersRegex,"").replace(ke.whitespaceEscapeCharsRegex,"").trim(),r=O0(r),t=r.match(ke.ctrlCharactersRegex)||r.match(ke.htmlEntitiesRegex)||r.match(ke.htmlCtrlEntityRegex)||r.match(ke.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return ke.BLANK_URL;if(s$(i))return i;var n=i.trimStart(),s=n.match(ke.urlSchemeRegex);if(!s)return i;var o=s[0].toLowerCase().trim();if(ke.invalidProtocolRegex.test(o))return ke.BLANK_URL;var a=n.replace(/\\/g,"/");if(o==="mailto:"||o.includes("://"))return a;if(o==="http:"||o==="https:"){if(!a$(a))return ke.BLANK_URL;var l=new URL(a);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return a}var lv=typeof global=="object"&&global&&global.Object===Object&&global,h$=typeof self=="object"&&self&&self.Object===Object&&self,Zr=lv||h$||Function("return this")(),tc=Zr.Symbol,hv=Object.prototype,c$=hv.hasOwnProperty,u$=hv.toString,So=tc?tc.toStringTag:void 0;function d$(e){var t=c$.call(e,So),r=e[So];try{e[So]=void 0;var i=!0}catch{}var n=u$.call(e);return i&&(t?e[So]=r:delete e[So]),n}var f$=Object.prototype,p$=f$.toString;function g$(e){return p$.call(e)}var m$="[object Null]",y$="[object Undefined]",I0=tc?tc.toStringTag:void 0;function ro(e){return e==null?e===void 0?y$:m$:I0&&I0 in Object(e)?d$(e):g$(e)}function Dn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var x$="[object AsyncFunction]",C$="[object Function]",k$="[object GeneratorFunction]",b$="[object Proxy]";function Ig(e){if(!Dn(e))return!1;var t=ro(e);return t==C$||t==k$||t==x$||t==b$}var Ku=Zr["__core-js_shared__"],P0=function(){var e=/[^.]+$/.exec(Ku&&Ku.keys&&Ku.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function v$(e){return!!P0&&P0 in e}var w$=Function.prototype,S$=w$.toString;function Rn(e){if(e!=null){try{return S$.call(e)}catch{}try{return e+""}catch{}}return""}var T$=/[\\^$.*+?()[\]{}|]/g,_$=/^\[object .+?Constructor\]$/,B$=Function.prototype,L$=Object.prototype,E$=B$.toString,F$=L$.hasOwnProperty,A$=RegExp("^"+E$.call(F$).replace(T$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M$(e){if(!Dn(e)||v$(e))return!1;var t=Ig(e)?A$:_$;return t.test(Rn(e))}function $$(e,t){return e==null?void 0:e[t]}function Nn(e,t){var r=$$(e,t);return M$(r)?r:void 0}var Oa=Nn(Object,"create");function O$(){this.__data__=Oa?Oa(null):{},this.size=0}function I$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var P$="__lodash_hash_undefined__",D$=Object.prototype,R$=D$.hasOwnProperty;function N$(e){var t=this.__data__;if(Oa){var r=t[e];return r===P$?void 0:r}return R$.call(t,e)?t[e]:void 0}var z$=Object.prototype,q$=z$.hasOwnProperty;function W$(e){var t=this.__data__;return Oa?t[e]!==void 0:q$.call(t,e)}var H$="__lodash_hash_undefined__";function j$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Oa&&t===void 0?H$:t,this}function Fn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Fn.prototype.clear=O$;Fn.prototype.delete=I$;Fn.prototype.get=N$;Fn.prototype.has=W$;Fn.prototype.set=j$;function U$(){this.__data__=[],this.size=0}function Hc(e,t){return e===t||e!==e&&t!==t}function jc(e,t){for(var r=e.length;r--;)if(Hc(e[r][0],t))return r;return-1}var Y$=Array.prototype,V$=Y$.splice;function G$(e){var t=this.__data__,r=jc(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():V$.call(t,r,1),--this.size,!0}function X$(e){var t=this.__data__,r=jc(t,e);return r<0?void 0:t[r][1]}function Q$(e){return jc(this.__data__,e)>-1}function Z$(e,t){var r=this.__data__,i=jc(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function ki(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}ki.prototype.clear=U$;ki.prototype.delete=G$;ki.prototype.get=X$;ki.prototype.has=Q$;ki.prototype.set=Z$;var Ia=Nn(Zr,"Map");function K$(){this.size=0,this.__data__={hash:new Fn,map:new(Ia||ki),string:new Fn}}function J$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Uc(e,t){var r=e.__data__;return J$(t)?r[typeof t=="string"?"string":"hash"]:r.map}function t4(e){var t=Uc(this,e).delete(e);return this.size-=t?1:0,t}function e4(e){return Uc(this,e).get(e)}function r4(e){return Uc(this,e).has(e)}function i4(e,t){var r=Uc(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Ji(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ji.prototype.clear=K$;Ji.prototype.delete=t4;Ji.prototype.get=e4;Ji.prototype.has=r4;Ji.prototype.set=i4;var n4="Expected a function";function Xa(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(n4);var r=function(){var i=arguments,n=t?t.apply(this,i):i[0],s=r.cache;if(s.has(n))return s.get(n);var o=e.apply(this,i);return r.cache=s.set(n,o)||s,o};return r.cache=new(Xa.Cache||Ji),r}Xa.Cache=Ji;function s4(){this.__data__=new ki,this.size=0}function o4(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function a4(e){return this.__data__.get(e)}function l4(e){return this.__data__.has(e)}var h4=200;function c4(e,t){var r=this.__data__;if(r instanceof ki){var i=r.__data__;if(!Ia||i.length<h4-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ji(i)}return r.set(e,t),this.size=r.size,this}function io(e){var t=this.__data__=new ki(e);this.size=t.size}io.prototype.clear=s4;io.prototype.delete=o4;io.prototype.get=a4;io.prototype.has=l4;io.prototype.set=c4;var ec=function(){try{var e=Nn(Object,"defineProperty");return e({},"",{}),e}catch{}}();function Pg(e,t,r){t=="__proto__"&&ec?ec(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Rf(e,t,r){(r!==void 0&&!Hc(e[t],r)||r===void 0&&!(t in e))&&Pg(e,t,r)}function u4(e){return function(t,r,i){for(var n=-1,s=Object(t),o=i(t),a=o.length;a--;){var l=o[++n];if(r(s[l],l,s)===!1)break}return t}}var d4=u4(),cv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,D0=cv&&typeof module=="object"&&module&&!module.nodeType&&module,f4=D0&&D0.exports===cv,R0=f4?Zr.Buffer:void 0,N0=R0?R0.allocUnsafe:void 0;function p4(e,t){if(t)return e.slice();var r=e.length,i=N0?N0(r):new e.constructor(r);return e.copy(i),i}var z0=Zr.Uint8Array;function g4(e){var t=new e.constructor(e.byteLength);return new z0(t).set(new z0(e)),t}function m4(e,t){var r=t?g4(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function y4(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var q0=Object.create,x4=function(){function e(){}return function(t){if(!Dn(t))return{};if(q0)return q0(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function uv(e,t){return function(r){return e(t(r))}}var dv=uv(Object.getPrototypeOf,Object),C4=Object.prototype;function Yc(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||C4;return e===r}function k4(e){return typeof e.constructor=="function"&&!Yc(e)?x4(dv(e)):{}}function Qa(e){return e!=null&&typeof e=="object"}var b4="[object Arguments]";function W0(e){return Qa(e)&&ro(e)==b4}var fv=Object.prototype,v4=fv.hasOwnProperty,w4=fv.propertyIsEnumerable,rc=W0(function(){return arguments}())?W0:function(e){return Qa(e)&&v4.call(e,"callee")&&!w4.call(e,"callee")},ic=Array.isArray,S4=9007199254740991;function pv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S4}function Vc(e){return e!=null&&pv(e.length)&&!Ig(e)}function T4(e){return Qa(e)&&Vc(e)}function _4(){return!1}var gv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H0=gv&&typeof module=="object"&&module&&!module.nodeType&&module,B4=H0&&H0.exports===gv,j0=B4?Zr.Buffer:void 0,L4=j0?j0.isBuffer:void 0,Dg=L4||_4,E4="[object Object]",F4=Function.prototype,A4=Object.prototype,mv=F4.toString,M4=A4.hasOwnProperty,$4=mv.call(Object);function O4(e){if(!Qa(e)||ro(e)!=E4)return!1;var t=dv(e);if(t===null)return!0;var r=M4.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&mv.call(r)==$4}var I4="[object Arguments]",P4="[object Array]",D4="[object Boolean]",R4="[object Date]",N4="[object Error]",z4="[object Function]",q4="[object Map]",W4="[object Number]",H4="[object Object]",j4="[object RegExp]",U4="[object Set]",Y4="[object String]",V4="[object WeakMap]",G4="[object ArrayBuffer]",X4="[object DataView]",Q4="[object Float32Array]",Z4="[object Float64Array]",K4="[object Int8Array]",J4="[object Int16Array]",tO="[object Int32Array]",eO="[object Uint8Array]",rO="[object Uint8ClampedArray]",iO="[object Uint16Array]",nO="[object Uint32Array]",It={};It[Q4]=It[Z4]=It[K4]=It[J4]=It[tO]=It[eO]=It[rO]=It[iO]=It[nO]=!0;It[I4]=It[P4]=It[G4]=It[D4]=It[X4]=It[R4]=It[N4]=It[z4]=It[q4]=It[W4]=It[H4]=It[j4]=It[U4]=It[Y4]=It[V4]=!1;function sO(e){return Qa(e)&&pv(e.length)&&!!It[ro(e)]}function oO(e){return function(t){return e(t)}}var yv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,na=yv&&typeof module=="object"&&module&&!module.nodeType&&module,aO=na&&na.exports===yv,Ju=aO&&lv.process,U0=function(){try{var e=na&&na.require&&na.require("util").types;return e||Ju&&Ju.binding&&Ju.binding("util")}catch{}}(),Y0=U0&&U0.isTypedArray,Rg=Y0?oO(Y0):sO;function Nf(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var lO=Object.prototype,hO=lO.hasOwnProperty;function cO(e,t,r){var i=e[t];(!(hO.call(e,t)&&Hc(i,r))||r===void 0&&!(t in e))&&Pg(e,t,r)}function uO(e,t,r,i){var n=!r;r||(r={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),n?Pg(r,a,l):cO(r,a,l)}return r}function dO(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var fO=9007199254740991,pO=/^(?:0|[1-9]\d*)$/;function xv(e,t){var r=typeof e;return t=t??fO,!!t&&(r=="number"||r!="symbol"&&pO.test(e))&&e>-1&&e%1==0&&e<t}var gO=Object.prototype,mO=gO.hasOwnProperty;function yO(e,t){var r=ic(e),i=!r&&rc(e),n=!r&&!i&&Dg(e),s=!r&&!i&&!n&&Rg(e),o=r||i||n||s,a=o?dO(e.length,String):[],l=a.length;for(var h in e)(t||mO.call(e,h))&&!(o&&(h=="length"||n&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||xv(h,l)))&&a.push(h);return a}function xO(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var CO=Object.prototype,kO=CO.hasOwnProperty;function bO(e){if(!Dn(e))return xO(e);var t=Yc(e),r=[];for(var i in e)i=="constructor"&&(t||!kO.call(e,i))||r.push(i);return r}function Cv(e){return Vc(e)?yO(e,!0):bO(e)}function vO(e){return uO(e,Cv(e))}function wO(e,t,r,i,n,s,o){var a=Nf(e,r),l=Nf(t,r),h=o.get(l);if(h){Rf(e,r,h);return}var c=s?s(a,l,r+"",e,t,o):void 0,u=c===void 0;if(u){var f=ic(l),d=!f&&Dg(l),p=!f&&!d&&Rg(l);c=l,f||d||p?ic(a)?c=a:T4(a)?c=y4(a):d?(u=!1,c=p4(l,!0)):p?(u=!1,c=m4(l,!0)):c=[]:O4(l)||rc(l)?(c=a,rc(a)?c=vO(a):(!Dn(a)||Ig(a))&&(c=k4(l))):u=!1}u&&(o.set(l,c),n(c,l,i,s,o),o.delete(l)),Rf(e,r,c)}function kv(e,t,r,i,n){e!==t&&d4(t,function(s,o){if(n||(n=new io),Dn(s))wO(e,t,o,r,kv,i,n);else{var a=i?i(Nf(e,o),s,o+"",e,t,n):void 0;a===void 0&&(a=s),Rf(e,o,a)}},Cv)}function bv(e){return e}function SO(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var V0=Math.max;function TO(e,t,r){return t=V0(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,s=V0(i.length-t,0),o=Array(s);++n<s;)o[n]=i[t+n];n=-1;for(var a=Array(t+1);++n<t;)a[n]=i[n];return a[t]=r(o),SO(e,this,a)}}function _O(e){return function(){return e}}var BO=ec?function(e,t){return ec(e,"toString",{configurable:!0,enumerable:!1,value:_O(t),writable:!0})}:bv,LO=800,EO=16,FO=Date.now;function AO(e){var t=0,r=0;return function(){var i=FO(),n=EO-(i-r);if(r=i,n>0){if(++t>=LO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var MO=AO(BO);function $O(e,t){return MO(TO(e,t,bv),e+"")}function OO(e,t,r){if(!Dn(r))return!1;var i=typeof t;return(i=="number"?Vc(r)&&xv(t,r.length):i=="string"&&t in r)?Hc(r[t],e):!1}function IO(e){return $O(function(t,r){var i=-1,n=r.length,s=n>1?r[n-1]:void 0,o=n>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(n--,s):void 0,o&&OO(r[0],r[1],o)&&(s=n<3?void 0:s,n=1),t=Object(t);++i<n;){var a=r[i];a&&e(t,a,i,s)}return t})}var PO=IO(function(e,t,r){kv(e,t,r)}),DO="",RO={curveBasis:vf,curveBasisClosed:qA,curveBasisOpen:WA,curveBumpX:o2,curveBumpY:a2,curveBundle:HA,curveCardinalClosed:jA,curveCardinalOpen:UA,curveCardinal:u2,curveCatmullRomClosed:YA,curveCatmullRomOpen:VA,curveCatmullRom:f2,curveLinear:ia,curveLinearClosed:GA,curveMonotoneX:C2,curveMonotoneY:k2,curveNatural:v2,curveStep:w2,curveStepAfter:T2,curveStepBefore:S2},NO=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,zO=m(function(e,t){const r=vv(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const o=r.map(a=>a.args);Oh(o),i=ee(i,[...o])}else i=r.args;if(!i)return;let n=hg(e,t);const s="config";return i[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[s],delete i[s]),i},"detectInit"),vv=m(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${NO.source})(?=[}][%]{2}).*
|
|
214
|
+
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),q.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let s;const o=[];for(;(s=ea.exec(e))!==null;)if(s.index===ea.lastIndex&&ea.lastIndex++,s&&!t||t&&((r=s[1])!=null&&r.match(t))||t&&((i=s[2])!=null&&i.match(t))){const a=s[1]?s[1]:s[2],l=s[3]?s[3].trim():s[4]?JSON.parse(s[4].trim()):null;o.push({type:a,args:l})}return o.length===0?{type:e,args:null}:o.length===1?o[0]:o}catch(n){return q.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),qO=m(function(e){return e.replace(ea,"")},"removeDirectives"),WO=m(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Ng(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return RO[r]??t}m(Ng,"interpolateToCurve");function wv(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?n$(r):r}m(wv,"formatUrl");var HO=m((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let s=window;for(let o=0;o<i;o++)if(s=s[r[o]],!s){q.error(`Function name: ${e} not found in window`);return}s[n](...t)},"runFunc");function zg(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}m(zg,"distance");function Sv(e){let t,r=0;e.forEach(n=>{r+=zg(n,t),t=n});const i=r/2;return qg(e,i)}m(Sv,"traverseEdge");function Tv(e){return e.length===1?e[0]:Sv(e)}m(Tv,"calcLabelPosition");var G0=m((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),qg=m((e,t)=>{let r,i=t;for(const n of e){if(r){const s=zg(n,r);if(s===0)return r;if(s<i)i-=s;else{const o=i/s;if(o<=0)return r;if(o>=1)return{x:n.x,y:n.y};if(o>0&&o<1)return{x:G0((1-o)*r.x+o*n.x,5),y:G0((1-o)*r.y+o*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),jO=m((e,t,r)=>{q.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=qg(t,25),s=e?10:5,o=Math.atan2(t[0].y-n.y,t[0].x-n.x),a={x:0,y:0};return a.x=Math.sin(o)*s+(t[0].x+n.x)/2,a.y=-Math.cos(o)*s+(t[0].y+n.y)/2,a},"calcCardinalityPosition");function _v(e,t,r){const i=structuredClone(r);q.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,s=qg(i,n),o=10+e*.5,a=Math.atan2(i[0].y-s.y,i[0].x-s.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(a+Math.PI)*o+(i[0].x+s.x)/2,l.y=-Math.cos(a+Math.PI)*o+(i[0].y+s.y)/2):t==="end_right"?(l.x=Math.sin(a-Math.PI)*o+(i[0].x+s.x)/2-5,l.y=-Math.cos(a-Math.PI)*o+(i[0].y+s.y)/2-5):t==="end_left"?(l.x=Math.sin(a)*o+(i[0].x+s.x)/2-5,l.y=-Math.cos(a)*o+(i[0].y+s.y)/2-5):(l.x=Math.sin(a)*o+(i[0].x+s.x)/2,l.y=-Math.cos(a)*o+(i[0].y+s.y)/2),l}m(_v,"calcTerminalLabelPosition");function Bv(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}m(Bv,"getStylesFromArray");var X0=0,UO=m(()=>(X0++,"id-"+Math.random().toString(36).substr(2,12)+"-"+X0),"generateId");function Lv(e){let t="";const r="0123456789abcdef",i=r.length;for(let n=0;n<e;n++)t+=r.charAt(Math.floor(Math.random()*i));return t}m(Lv,"makeRandomHex");var YO=m(e=>Lv(e.length),"random"),VO=m(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),GO=m(function(e,t){const r=t.text.replace(Ua.lineBreakRegex," "),[,i]=Gc(t.fontSize),n=e.append("text");n.attr("x",t.x),n.attr("y",t.y),n.style("text-anchor",t.anchor),n.style("font-family",t.fontFamily),n.style("font-size",i),n.style("font-weight",t.fontWeight),n.attr("fill",t.fill),t.class!==void 0&&n.attr("class",t.class);const s=n.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.attr("fill",t.fill),s.text(r),n},"drawSimpleText"),XO=Xa((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ua.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let s="";return i.forEach((o,a)=>{const l=yi(`${o} `,r),h=yi(s,r);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=QO(o,t,"-",r);n.push(s,...f),s=d}else h+l>=t?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===i.length&&n.push(s)}),n.filter(o=>o!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),QO=Xa((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],s=[];let o="";return n.forEach((a,l)=>{const h=`${o}${a}`;if(yi(h,i)>=t){const u=l+1,f=n.length===u,d=`${h}${r}`;s.push(f?h:d),o=""}else o=h}),{hyphenatedStrings:s,remainingWord:o}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function Ev(e,t){return Wg(e,t).height}m(Ev,"calculateTextHeight");function yi(e,t){return Wg(e,t).width}m(yi,"calculateTextWidth");var Wg=Xa((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,s]=Gc(r),o=["sans-serif",i],a=e.split(Ua.lineBreakRegex),l=[],h=mt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const c=h.append("svg");for(const f of o){let d=0;const p={width:0,height:0,lineHeight:0};for(const g of a){const x=VO();x.text=g||DO;const y=GO(c,x).style("font-size",s).style("font-weight",n).style("font-family",f),C=(y._groups||y)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,C.width)),d=Math.round(C.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}l.push(p)}c.remove();const u=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[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ds,ZO=(Ds=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},m(Ds,"InitIDGenerator"),Ds),El,KO=m(function(e){return El=El||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),El.innerHTML=e,unescape(El.textContent)},"entityDecode");function Hg(e){return"str"in e}m(Hg,"isDetailedError");var JO=m((e,t,r,i)=>{var s;if(!i)return;const n=(s=e.node())==null?void 0:s.getBBox();n&&e.append("text").text(i).attr("text-anchor","middle").attr("x",n.x+n.width/2).attr("y",-r).attr("class",t)},"insertTitle"),Gc=m(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function jg(e,t){return PO({},e,t)}m(jg,"cleanAndMerge");var Sr={assignWithDepth:ee,wrapLabel:XO,calculateTextHeight:Ev,calculateTextWidth:yi,calculateTextDimensions:Wg,cleanAndMerge:jg,detectInit:zO,detectDirective:vv,isSubstringInArray:WO,interpolateToCurve:Ng,calcLabelPosition:Tv,calcCardinalityPosition:jO,calcTerminalLabelPosition:_v,formatUrl:wv,getStylesFromArray:Bv,generateId:UO,random:YO,runFunc:HO,entityDecode:KO,insertTitle:JO,isLabelCoordinateInPath:Fv,parseFontSize:Gc,InitIDGenerator:ZO},tI=m(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),An=m(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),_z=m((e,t,{counter:r=0,prefix:i,suffix:n},s)=>s||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function le(e){return e??null}m(le,"handleUndefinedAttr");function Fv(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,s=>Math.round(parseFloat(s)).toString());return n.includes(r.toString())||n.includes(i.toString())}m(Fv,"isLabelCoordinateInPath");var Ug=m(({flowchart:e})=>{var n,s;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function Av(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const i=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(n=>new Promise(s=>{function o(){if(n.style.display="flex",n.style.flexDirection="column",i){const a=wt().fontSize?wt().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[h=Ck.fontSize]=Gc(a),c=h*l+"px";n.style.minWidth=c,n.style.maxWidth=c}else n.style.width="100%";s(n)}m(o,"setupImage"),setTimeout(()=>{n.complete&&o()}),n.addEventListener("error",o),n.addEventListener("load",o)})))}m(Av,"configureLabelImages");var eI=m(e=>{const{handDrawnSeed:t}=wt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),no=m(e=>{const t=rI([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),rI=m(e=>{const t=new Map;return e.forEach(r=>{const[i,n]=r.split(":");t.set(i.trim(),n==null?void 0:n.trim())}),t},"styles2Map"),Mv=m(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),J=m(e=>{const{stylesArray:t}=no(e),r=[],i=[],n=[],s=[];return t.forEach(o=>{const a=o[0];Mv(a)?r.push(o.join(":")+" !important"):(i.push(o.join(":")+" !important"),a.includes("stroke")&&n.push(o.join(":")+" !important"),a==="fill"&&s.push(o.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:s}},"styles2String"),K=m((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=wt(),{nodeBorder:n,mainBkg:s}=r,{stylesMap:o}=no(e);return Object.assign({roughness:.7,fill:o.get("fill")||s,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:o.get("stroke")||n,seed:i,strokeWidth:((l=o.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:iI(o.get("stroke-dasharray"))},t)},"userNodeOverrides"),iI=m(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const n=isNaN(t[0])?0:t[0];return[n,n]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const nI=Object.freeze({left:0,top:0,width:16,height:16}),nc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),$v=Object.freeze({...nI,...nc}),sI=Object.freeze({...$v,body:"",hidden:!1}),oI=Object.freeze({width:null,height:null}),aI=Object.freeze({...oI,...nc}),lI=(e,t,r,i="")=>{const n=e.split(":");if(e.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const a=n.pop(),l=n.pop(),h={provider:n.length>0?n[0]:i,prefix:l,name:a};return td(h)?h:null}const s=n[0],o=s.split("-");if(o.length>1){const a={provider:i,prefix:o.shift(),name:o.join("-")};return td(a)?a:null}if(r&&i===""){const a={provider:i,prefix:"",name:s};return td(a,r)?a:null}return null},td=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function hI(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function Q0(e,t){const r=hI(e,t);for(const i in sI)i in nc?i in e&&!(i in r)&&(r[i]=nc[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function cI(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function s(o){if(r[o])return n[o]=[];if(!(o in n)){n[o]=null;const a=i[o]&&i[o].parent,l=a&&s(a);l&&(n[o]=[a].concat(l))}return n[o]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(s),n}function Z0(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let s={};function o(a){s=Q0(i[a]||n[a],s)}return o(t),r.forEach(o),Q0(e,s)}function uI(e,t){if(e.icons[t])return Z0(e,t,[]);const r=cI(e,[t])[t];return r?Z0(e,t,r):null}const dI=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fI=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function K0(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(dI);if(i===null||!i.length)return e;const n=[];let s=i.shift(),o=fI.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?n.push(s):n.push(Math.ceil(a*t*r)/r)}else n.push(s);if(s=i.shift(),s===void 0)return n.join("");o=!o}}function pI(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),s=e.indexOf("</"+t);if(n===-1||s===-1)break;const o=e.indexOf(">",s);if(o===-1)break;r+=e.slice(n+1,s).trim(),e=e.slice(0,i).trim()+e.slice(o+1)}return{defs:r,content:e}}function gI(e,t){return e?"<defs>"+e+"</defs>"+t:t}function mI(e,t,r){const i=pI(e);return gI(i.defs,t+i.content+r)}const yI=e=>e==="unset"||e==="undefined"||e==="none";function xI(e,t){const r={...$v,...e},i={...aI,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let s=r.body;[r,i].forEach(g=>{const x=[],y=g.hFlip,C=g.vFlip;let k=g.rotate;y?C?k+=2:(x.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),x.push("scale(-1 1)"),n.top=n.left=0):C&&(x.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),x.push("scale(1 -1)"),n.top=n.left=0);let v;switch(k<0&&(k-=Math.floor(k/4)*4),k=k%4,k){case 1:v=n.height/2+n.top,x.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:x.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:v=n.width/2+n.left,x.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}k%2===1&&(n.left!==n.top&&(v=n.left,n.left=n.top,n.top=v),n.width!==n.height&&(v=n.width,n.width=n.height,n.height=v)),x.length&&(s=mI(s,'<g transform="'+x.join(" ")+'">',"</g>"))});const o=i.width,a=i.height,l=n.width,h=n.height;let c,u;o===null?(u=a===null?"1em":a==="auto"?h:a,c=K0(u,l/h)):(c=o==="auto"?l:o,u=a===null?K0(c,h/l):a==="auto"?h:a);const f={},d=(g,x)=>{yI(x)||(f[g]=x.toString())};d("width",c),d("height",u);const p=[n.left,n.top,l,h];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:s}}const CI=/\sid="(\S+)"/g,J0=new Map;function kI(e){e=e.replace(/[0-9]+$/,"")||"a";const t=J0.get(e)||0;return J0.set(e,t+1),t?`${e}${t}`:e}function bI(e){const t=[];let r;for(;r=CI.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(n=>{const s=kI(n),o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function vI(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function Yg(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var zn=Yg();function Ov(e){zn=e}var sa={exec:()=>null};function St(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Ee.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,t)};return i}var wI=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ee={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},SI=/^(?:[ \t]*(?:\n|$))+/,TI=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_I=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Za=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,BI=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vg=/(?:[*+-]|\d{1,9}[.)])/,Iv=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Pv=St(Iv).replace(/bull/g,Vg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),LI=St(Iv).replace(/bull/g,Vg).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Gg=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,EI=/^[^\n]+/,Xg=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,FI=St(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Xg).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),AI=St(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vg).getRegex(),Xc="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Qg=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,MI=St("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Qg).replace("tag",Xc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Dv=St(Gg).replace("hr",Za).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xc).getRegex(),$I=St(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Dv).getRegex(),Zg={blockquote:$I,code:TI,def:FI,fences:_I,heading:BI,hr:Za,html:MI,lheading:Pv,list:AI,newline:SI,paragraph:Dv,table:sa,text:EI},tx=St("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Za).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xc).getRegex(),OI={...Zg,lheading:LI,table:tx,paragraph:St(Gg).replace("hr",Za).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",tx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Xc).getRegex()},II={...Zg,html:St(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Qg).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:St(Gg).replace("hr",Za).replace("heading",` *#{1,6} *[^
|
|
215
|
+
]`).replace("lheading",Pv).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},PI=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,DI=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Rv=/^( {2,}|\\)\n(?!\s*$)/,RI=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Qc=/[\p{P}\p{S}]/u,Kg=/[\s\p{P}\p{S}]/u,Nv=/[^\s\p{P}\p{S}]/u,NI=St(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Kg).getRegex(),zv=/(?!~)[\p{P}\p{S}]/u,zI=/(?!~)[\s\p{P}\p{S}]/u,qI=/(?:[^\s\p{P}\p{S}]|~)/u,WI=St(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",wI?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),qv=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,HI=St(qv,"u").replace(/punct/g,Qc).getRegex(),jI=St(qv,"u").replace(/punct/g,zv).getRegex(),Wv="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",UI=St(Wv,"gu").replace(/notPunctSpace/g,Nv).replace(/punctSpace/g,Kg).replace(/punct/g,Qc).getRegex(),YI=St(Wv,"gu").replace(/notPunctSpace/g,qI).replace(/punctSpace/g,zI).replace(/punct/g,zv).getRegex(),VI=St("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Nv).replace(/punctSpace/g,Kg).replace(/punct/g,Qc).getRegex(),GI=St(/\\(punct)/,"gu").replace(/punct/g,Qc).getRegex(),XI=St(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),QI=St(Qg).replace("(?:-->|$)","-->").getRegex(),ZI=St("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",QI).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),sc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,KI=St(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",sc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Hv=St(/^!?\[(label)\]\[(ref)\]/).replace("label",sc).replace("ref",Xg).getRegex(),jv=St(/^!?\[(ref)\](?:\[\])?/).replace("ref",Xg).getRegex(),JI=St("reflink|nolink(?!\\()","g").replace("reflink",Hv).replace("nolink",jv).getRegex(),ex=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Jg={_backpedal:sa,anyPunctuation:GI,autolink:XI,blockSkip:WI,br:Rv,code:DI,del:sa,emStrongLDelim:HI,emStrongRDelimAst:UI,emStrongRDelimUnd:VI,escape:PI,link:KI,nolink:jv,punctuation:NI,reflink:Hv,reflinkSearch:JI,tag:ZI,text:RI,url:sa},tP={...Jg,link:St(/^!?\[(label)\]\((.*?)\)/).replace("label",sc).getRegex(),reflink:St(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",sc).getRegex()},zf={...Jg,emStrongRDelimAst:YI,emStrongLDelim:jI,url:St(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ex).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:St(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ex).getRegex()},eP={...zf,br:St(Rv).replace("{2,}","*").getRegex(),text:St(zf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Fl={normal:Zg,gfm:OI,pedantic:II},To={normal:Jg,gfm:zf,breaks:eP,pedantic:tP},rP={"&":"&","<":"<",">":">",'"':""","'":"'"},rx=e=>rP[e];function Dr(e,t){if(t){if(Ee.escapeTest.test(e))return e.replace(Ee.escapeReplace,rx)}else if(Ee.escapeTestNoEncode.test(e))return e.replace(Ee.escapeReplaceNoEncode,rx);return e}function ix(e){try{e=encodeURI(e).replace(Ee.percentDecode,"%")}catch{return null}return e}function nx(e,t){var s;let r=e.replace(Ee.findPipe,(o,a,l)=>{let h=!1,c=a;for(;--c>=0&&l[c]==="\\";)h=!h;return h?"|":" |"}),i=r.split(Ee.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(Ee.slashPipe,"|");return i}function _o(e,t,r){let i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function iP(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function sx(e,t,r,i,n){let s=t.href,o=t.title||null,a=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,l}function nP(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
216
|
+
`).map(s=>{let o=s.match(r.other.beginningSpace);if(o===null)return s;let[a]=o;return a.length>=n.length?s.slice(n.length):s}).join(`
|
|
217
|
+
`)}var oc=class{constructor(t){ot(this,"options");ot(this,"rules");ot(this,"lexer");this.options=t||zn}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:_o(i,`
|
|
218
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=nP(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let n=_o(i,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(i=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:_o(r[0],`
|
|
219
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=_o(r[0],`
|
|
220
|
+
`).split(`
|
|
221
|
+
`),n="",s="",o=[];for(;i.length>0;){let a=!1,l=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))l.push(i[h]),a=!0;else if(!a)l.push(i[h]);else break;i=i.slice(h);let c=l.join(`
|
|
222
|
+
`),u=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
223
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
224
|
+
${c}`:c,s=s?`${s}
|
|
225
|
+
${u}`:u;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,o,!0),this.lexer.state.top=f,i.length===0)break;let d=o.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let p=d,g=p.raw+`
|
|
226
|
+
`+i.join(`
|
|
227
|
+
`),x=this.blockquote(g);o[o.length-1]=x,n=n.substring(0,n.length-p.raw.length)+x.raw,s=s.substring(0,s.length-p.text.length)+x.text;break}else if((d==null?void 0:d.type)==="list"){let p=d,g=p.raw+`
|
|
228
|
+
`+i.join(`
|
|
229
|
+
`),x=this.list(g);o[o.length-1]=x,n=n.substring(0,n.length-d.raw.length)+x.raw,s=s.substring(0,s.length-p.raw.length)+x.raw,i=g.substring(o.at(-1).raw.length).split(`
|
|
230
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:o,text:s}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,s={type:"list",raw:"",ordered:n,start:n?+i.slice(0,-1):"",loose:!1,items:[]};i=n?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=n?i:"[*+-]");let o=this.rules.other.listItemRegex(i),a=!1;for(;t;){let h=!1,c="",u="";if(!(r=o.exec(t))||this.rules.block.hr.test(t))break;c=r[0],t=t.substring(c.length);let f=r[2].split(`
|
|
231
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),d=t.split(`
|
|
232
|
+
`,1)[0],p=!f.trim(),g=0;if(this.options.pedantic?(g=2,u=f.trimStart()):p?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,u=f.slice(g),g+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(c+=d+`
|
|
233
|
+
`,t=t.substring(d.length+1),h=!0),!h){let C=this.rules.other.nextBulletRegex(g),k=this.rules.other.hrRegex(g),v=this.rules.other.fencesBeginRegex(g),S=this.rules.other.headingBeginRegex(g),_=this.rules.other.htmlBeginRegex(g);for(;t;){let w=t.split(`
|
|
234
|
+
`,1)[0],T;if(d=w,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),T=d):T=d.replace(this.rules.other.tabCharGlobal," "),v.test(d)||S.test(d)||_.test(d)||C.test(d)||k.test(d))break;if(T.search(this.rules.other.nonSpaceChar)>=g||!d.trim())u+=`
|
|
235
|
+
`+T.slice(g);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||v.test(f)||S.test(f)||k.test(f))break;u+=`
|
|
236
|
+
`+d}!p&&!d.trim()&&(p=!0),c+=w+`
|
|
237
|
+
`,t=t.substring(w.length+1),f=T.slice(g)}}s.loose||(a?s.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(a=!0));let x=null,y;this.options.gfm&&(x=this.rules.other.listIsTask.exec(u),x&&(y=x[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:c,task:!!x,checked:y,loose:!1,text:u,tokens:[]}),s.raw+=c}let l=s.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let h=0;h<s.items.length;h++)if(this.lexer.state.top=!1,s.items[h].tokens=this.lexer.blockTokens(s.items[h].text,[]),!s.loose){let c=s.items[h].tokens.filter(f=>f.type==="space"),u=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));s.loose=u}if(s.loose)for(let h=0;h<s.items.length;h++)s.items[h].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:n,title:s}}}table(t){var a;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=nx(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(a=r[3])!=null&&a.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
238
|
+
`):[],o={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===n.length){for(let l of n)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<i.length;l++)o.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:o.align[l]});for(let l of s)o.rows.push(nx(l,o.header.length).map((h,c)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:o.align[c]})));return o}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
|
|
239
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let o=_o(i.slice(0,-1),"\\");if((i.length-o.length)%2===0)return}else{let o=iP(r[2],"()");if(o===-2)return;if(o>-1){let a=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,a).trim(),r[3]=""}}let n=r[2],s="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(n);o&&(n=o[1],s=o[3])}else s=r[3]?r[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?n=n.slice(1):n=n.slice(1,-1)),sx(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let n=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[n.toLowerCase()];if(!s){let o=i[0].charAt(0);return{type:"text",raw:o,text:o}}return sx(i,s,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let n=this.rules.inline.emStrongLDelim.exec(t);if(!(!n||n[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!i||this.rules.inline.punctuation.exec(i))){let s=[...n[0]].length-1,o,a,l=s,h=0,c=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,r=r.slice(-1*t.length+s);(n=c.exec(r))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(a=[...o].length,n[3]||n[4]){l+=a;continue}else if((n[5]||n[6])&&s%3&&!((s+a)%3)){h+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+h);let u=[...n[0]][0].length,f=t.slice(0,s+n.index+u+a);if(Math.min(s,a)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(i),s=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&s&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,n;return r[2]==="@"?(i=r[1],n="mailto:"+i):(i=r[1],n=i),{type:"link",raw:r[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let n,s;if(r[2]==="@")n=r[0],s="mailto:"+n;else{let o;do o=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(o!==r[0]);n=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},br=class qf{constructor(t){ot(this,"tokens");ot(this,"options");ot(this,"state");ot(this,"tokenizer");ot(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||zn,this.options.tokenizer=this.options.tokenizer||new oc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Ee,block:Fl.normal,inline:To.normal};this.options.pedantic?(r.block=Fl.pedantic,r.inline=To.pedantic):this.options.gfm&&(r.block=Fl.gfm,this.options.breaks?r.inline=To.breaks:r.inline=To.gfm),this.tokenizer.rules=r}static get rules(){return{block:Fl,inline:To}}static lex(t,r){return new qf(r).lex(t)}static lexInline(t,r){return new qf(r).inlineTokens(t)}lex(t){t=t.replace(Ee.carriageReturn,`
|
|
240
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var n,s,o;for(this.options.pedantic&&(t=t.replace(Ee.tabCharGlobal," ").replace(Ee.spaceLine,""));t;){let a;if((s=(n=this.options.extensions)==null?void 0:n.block)!=null&&s.some(h=>(a=h.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let h=r.at(-1);a.raw.length===1&&h!==void 0?h.raw+=`
|
|
241
|
+
`:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
242
|
+
`)?"":`
|
|
243
|
+
`)+a.raw,h.text+=`
|
|
244
|
+
`+a.text,this.inlineQueue.at(-1).src=h.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
245
|
+
`)?"":`
|
|
246
|
+
`)+a.raw,h.text+=`
|
|
247
|
+
`+a.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let l=t;if((o=this.options.extensions)!=null&&o.startBlock){let h=1/0,c=t.slice(1),u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},c),typeof u=="number"&&u>=0&&(h=Math.min(h,u))}),h<1/0&&h>=0&&(l=t.substring(0,h+1))}if(this.state.top&&(a=this.tokenizer.paragraph(l))){let h=r.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
248
|
+
`)?"":`
|
|
249
|
+
`)+a.raw,h.text+=`
|
|
250
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(a),i=l.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
251
|
+
`)?"":`
|
|
252
|
+
`)+a.raw,h.text+=`
|
|
253
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(a);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,h,c,u,f;let i=t,n=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)s=n[2]?n[2].length:0,i=i.slice(0,n.index+s)+"["+"a".repeat(n[0].length-s-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((h=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:h.call({lexer:this},i))??i;let o=!1,a="";for(;t;){o||(a=""),o=!1;let d;if((u=(c=this.options.extensions)==null?void 0:c.inline)!=null&&u.some(g=>(d=g.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let g=r.at(-1);d.type==="text"&&(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,a)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let p=t;if((f=this.options.extensions)!=null&&f.startInline){let g=1/0,x=t.slice(1),y;this.options.extensions.startInline.forEach(C=>{y=C.call({lexer:this},x),typeof y=="number"&&y>=0&&(g=Math.min(g,y))}),g<1/0&&g>=0&&(p=t.substring(0,g+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(a=d.raw.slice(-1)),o=!0;let g=r.at(-1);(g==null?void 0:g.type)==="text"?(g.raw+=d.raw,g.text+=d.text):r.push(d);continue}if(t){let g="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return r}},ac=class{constructor(t){ot(this,"options");ot(this,"parser");this.options=t||zn}space(t){return""}code({text:t,lang:r,escaped:i}){var o;let n=(o=(r||"").match(Ee.notSpaceStart))==null?void 0:o[0],s=t.replace(Ee.endingNewline,"")+`
|
|
254
|
+
`;return n?'<pre><code class="language-'+Dr(n)+'">'+(i?s:Dr(s,!0))+`</code></pre>
|
|
255
|
+
`:"<pre><code>"+(i?s:Dr(s,!0))+`</code></pre>
|
|
256
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
257
|
+
${this.parser.parse(t)}</blockquote>
|
|
258
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
259
|
+
`}hr(t){return`<hr>
|
|
260
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let a=0;a<t.items.length;a++){let l=t.items[a];n+=this.listitem(l)}let s=r?"ol":"ul",o=r&&i!==1?' start="'+i+'"':"";return"<"+s+o+`>
|
|
261
|
+
`+n+"</"+s+`>
|
|
262
|
+
`}listitem(t){var i;let r="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=n+" "+Dr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):r+=n+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
263
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
264
|
+
`}table(t){let r="",i="";for(let s=0;s<t.header.length;s++)i+=this.tablecell(t.header[s]);r+=this.tablerow({text:i});let n="";for(let s=0;s<t.rows.length;s++){let o=t.rows[s];i="";for(let a=0;a<o.length;a++)i+=this.tablecell(o[a]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
265
|
+
<thead>
|
|
266
|
+
`+r+`</thead>
|
|
267
|
+
`+n+`</table>
|
|
268
|
+
`}tablerow({text:t}){return`<tr>
|
|
269
|
+
${t}</tr>
|
|
270
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
271
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Dr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let n=this.parser.parseInline(i),s=ix(t);if(s===null)return n;t=s;let o='<a href="'+t+'"';return r&&(o+=' title="'+Dr(r)+'"'),o+=">"+n+"</a>",o}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let s=ix(t);if(s===null)return Dr(i);t=s;let o=`<img src="${t}" alt="${i}"`;return r&&(o+=` title="${Dr(r)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Dr(t.text)}},tm=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},vr=class Wf{constructor(t){ot(this,"options");ot(this,"renderer");ot(this,"textRenderer");this.options=t||zn,this.options.renderer=this.options.renderer||new ac,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new tm}static parse(t,r){return new Wf(r).parse(t)}static parseInline(t,r){return new Wf(r).parseInline(t)}parse(t,r=!0){var n,s;let i="";for(let o=0;o<t.length;o++){let a=t[o];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[a.type]){let h=a,c=this.options.extensions.renderers[h.type].call({parser:this},h);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){i+=c||"";continue}}let l=a;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"def":{i+=this.renderer.def(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let h=l,c=this.renderer.text(h);for(;o+1<t.length&&t[o+1].type==="text";)h=t[++o],c+=`
|
|
272
|
+
`+this.renderer.text(h);r?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):i+=c;continue}default:{let h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(t,r=this.renderer){var n,s;let i="";for(let o=0;o<t.length;o++){let a=t[o];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[a.type]){let h=this.options.extensions.renderers[a.type].call({parser:this},a);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=h||"";continue}}let l=a;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{let h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},Dl,Wo=(Dl=class{constructor(t){ot(this,"options");ot(this,"block");this.options=t||zn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?br.lex:br.lexInline}provideParser(){return this.block?vr.parse:vr.parseInline}},ot(Dl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ot(Dl,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Dl),sP=class{constructor(...t){ot(this,"defaults",Yg());ot(this,"options",this.setOptions);ot(this,"parse",this.parseMarkdown(!0));ot(this,"parseInline",this.parseMarkdown(!1));ot(this,"Parser",vr);ot(this,"Renderer",ac);ot(this,"TextRenderer",tm);ot(this,"Lexer",br);ot(this,"Tokenizer",oc);ot(this,"Hooks",Wo);this.use(...t)}walkTokens(t,r){var n,s;let i=[];for(let o of t)switch(i=i.concat(r.call(this,o)),o.type){case"table":{let a=o;for(let l of a.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of a.rows)for(let h of l)i=i.concat(this.walkTokens(h.tokens,r));break}case"list":{let a=o;i=i.concat(this.walkTokens(a.items,r));break}default:{let a=o;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[a.type]?this.defaults.extensions.childTokens[a.type].forEach(l=>{let h=a[l].flat(1/0);i=i.concat(this.walkTokens(h,r))}):a.tokens&&(i=i.concat(this.walkTokens(a.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let n={...i};if(n.async=this.defaults.async||n.async||!1,i.extensions&&(i.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=r.renderers[s.name];o?r.renderers[s.name]=function(...a){let l=s.renderer.apply(this,a);return l===!1&&(l=o.apply(this,a)),l}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=r[s.level];o?o.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),n.extensions=r),i.renderer){let s=this.defaults.renderer||new ac(this.defaults);for(let o in i.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let a=o,l=i.renderer[a],h=s[a];s[a]=(...c)=>{let u=l.apply(s,c);return u===!1&&(u=h.apply(s,c)),u||""}}n.renderer=s}if(i.tokenizer){let s=this.defaults.tokenizer||new oc(this.defaults);for(let o in i.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let a=o,l=i.tokenizer[a],h=s[a];s[a]=(...c)=>{let u=l.apply(s,c);return u===!1&&(u=h.apply(s,c)),u}}n.tokenizer=s}if(i.hooks){let s=this.defaults.hooks||new Wo;for(let o in i.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let a=o,l=i.hooks[a],h=s[a];Wo.passThroughHooks.has(o)?s[a]=c=>{if(this.defaults.async&&Wo.passThroughHooksRespectAsync.has(o))return(async()=>{let f=await l.call(s,c);return h.call(s,f)})();let u=l.call(s,c);return h.call(s,u)}:s[a]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(s,c);return f===!1&&(f=await h.apply(s,c)),f})();let u=l.apply(s,c);return u===!1&&(u=h.apply(s,c)),u}}n.hooks=s}if(i.walkTokens){let s=this.defaults.walkTokens,o=i.walkTokens;n.walkTokens=function(a){let l=[];return l.push(o.call(this,a)),s&&(l=l.concat(s.call(this,a))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return br.lex(t,r??this.defaults)}parser(t,r){return vr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},s={...this.defaults,...n},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let a=s.hooks?await s.hooks.preprocess(r):r,l=await(s.hooks?await s.hooks.provideLexer():t?br.lex:br.lexInline)(a,s),h=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(h,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():t?vr.parse:vr.parseInline)(h,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));let a=(s.hooks?s.hooks.provideLexer():t?br.lex:br.lexInline)(r,s);s.hooks&&(a=s.hooks.processAllTokens(a)),s.walkTokens&&this.walkTokens(a,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():t?vr.parse:vr.parseInline)(a,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(a){return o(a)}}}onError(t,r){return i=>{if(i.message+=`
|
|
273
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Dr(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},Mn=new sP;function Tt(e,t){return Mn.parse(e,t)}Tt.options=Tt.setOptions=function(e){return Mn.setOptions(e),Tt.defaults=Mn.defaults,Ov(Tt.defaults),Tt};Tt.getDefaults=Yg;Tt.defaults=zn;Tt.use=function(...e){return Mn.use(...e),Tt.defaults=Mn.defaults,Ov(Tt.defaults),Tt};Tt.walkTokens=function(e,t){return Mn.walkTokens(e,t)};Tt.parseInline=Mn.parseInline;Tt.Parser=vr;Tt.parser=vr.parse;Tt.Renderer=ac;Tt.TextRenderer=tm;Tt.Lexer=br;Tt.lexer=br.lex;Tt.Tokenizer=oc;Tt.Hooks=Wo;Tt.parse=Tt;Tt.options;Tt.setOptions;Tt.use;Tt.walkTokens;Tt.parseInline;vr.parse;br.lex;function Uv(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var n=i.reduce(function(a,l){var h=l.match(/\n([\t ]+|(?!\s).)/g);return h?a.concat(h.map(function(c){var u,f;return(f=(u=c.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0})):a},[]);if(n.length){var s=new RegExp(`
|
|
274
|
+
[ ]{`+Math.min.apply(Math,n)+"}","g");i=i.map(function(a){return a.replace(s,`
|
|
275
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var o=i[0];return t.forEach(function(a,l){var h=o.match(/(?:^|\n)( *)$/),c=h?h[1]:"",u=a;typeof a=="string"&&a.includes(`
|
|
276
|
+
`)&&(u=String(a).split(`
|
|
277
|
+
`).map(function(f,d){return d===0?f:""+c+f}).join(`
|
|
278
|
+
`)),o+=u+i[l+1]}),o}var oP={body:'<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>',height:80,width:80},Hf=new Map,Yv=new Map,aP=m(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(q.debug("Registering icon pack:",t.name),"loader"in t)Yv.set(t.name,t.loader);else if("icons"in t)Hf.set(t.name,t.icons);else throw q.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Vv=m(async(e,t)=>{const r=lI(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let n=Hf.get(i);if(!n){const o=Yv.get(i);if(!o)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await o(),prefix:i},Hf.set(i,n)}catch(a){throw q.error(a),new Error(`Failed to load icon set: ${r.prefix}`)}}const s=uI(n,r.name);if(!s)throw new Error(`Icon not found: ${e}`);return s},"getRegisteredIconData"),lP=m(async e=>{try{return await Vv(e),!0}catch{return!1}},"isIconAvailable"),Ka=m(async(e,t,r)=>{let i;try{i=await Vv(e,t==null?void 0:t.fallbackPrefix)}catch(o){q.error(o),i=oP}const n=xI(i,t),s=vI(bI(n.body),{...n.attributes,...r});return Fr(s,qt())},"getIconSVG");function Gv(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
279
|
+
`).replace(/\n{2,}/g,`
|
|
280
|
+
`);return Uv(i)}m(Gv,"preprocessMarkdown");function Xv(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}m(Xv,"nonMarkdownToLines");function Qv(e,t={}){const r=Gv(e,t),i=Tt.lexer(r),n=[[]];let s=0;function o(a,l="normal"){a.type==="text"?a.text.split(`
|
|
281
|
+
`).forEach((c,u)=>{u!==0&&(s++,n.push([])),c.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&n[s].push({content:f,type:l})})}):a.type==="strong"||a.type==="em"?a.tokens.forEach(h=>{o(h,a.type)}):a.type==="html"&&n[s].push({content:a.text,type:"normal"})}return m(o,"processNode"),i.forEach(a=>{var l;a.type==="paragraph"?(l=a.tokens)==null||l.forEach(h=>{o(h)}):a.type==="html"?n[s].push({content:a.text,type:"normal"}):n[s].push({content:a.raw,type:"normal"})}),n}m(Qv,"markdownToLines");function Zv(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}m(Zv,"nonMarkdownToHTML");function Kv(e,{markdownAutoWrap:t}={}){const r=Tt.lexer(e);function i(n){var s,o,a;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(s=n.tokens)==null?void 0:s.map(i).join("")}</strong>`:n.type==="em"?`<em>${(o=n.tokens)==null?void 0:o.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(a=n.tokens)==null?void 0:a.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(q.warn(`Unsupported markdown: ${n.type}`),n.raw)}return m(i,"output"),r.map(i).join("")}m(Kv,"markdownToHTML");function Jv(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}m(Jv,"splitTextToChars");function tw(e,t){const r=Jv(t.content);return em(e,[],r,t.type)}m(tw,"splitWordToFitWidth");function em(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...s]=r,o=[...t,n];return e([{content:o.join(""),type:i}])?em(e,o,s,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}m(em,"splitWordToFitWidthRecursion");function ew(e,t){if(e.some(({content:r})=>r.includes(`
|
|
282
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return lc(e,t)}m(ew,"splitLineToFitWidth");function lc(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let n="";e[0].content===" "&&(n=" ",e.shift());const s=e.shift()??{content:" ",type:"normal"},o=[...i];if(n!==""&&o.push({content:n,type:"normal"}),o.push(s),t(o))return lc(e,t,r,o);if(i.length>0)r.push(i),e.unshift(s);else if(s.content){const[a,l]=tw(t,s);r.push([a]),l.content&&e.unshift(l)}return lc(e,t,r)}m(lc,"splitLineToFitWidthRecursion");function jf(e,t){t&&e.attr("style",t)}m(jf,"applyStyle");var ox=16384;async function rw(e,t,r,i,n=!1,s=qt()){const o=e.append("foreignObject");o.attr("width",`${Math.min(10*r,ox)}px`),o.attr("height",`${Math.min(10*r,ox)}px`);const a=o.append("xhtml:div"),l=Ta(t.label)?await Lk(t.label.replace(Ua.lineBreakRegex,`
|
|
283
|
+
`),s):Fr(t.label,s),h=t.isNode?"nodeLabel":"edgeLabel",c=a.append("span");c.html(l),jf(c,t.labelStyle),c.attr("class",`${h} ${i}`),jf(a,t.labelStyle),a.style("display","table-cell"),a.style("white-space","nowrap"),a.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(a.style("max-width",r+"px"),a.style("text-align","center")),a.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&a.attr("class","labelBkg");let u=a.node().getBoundingClientRect();return u.width===r&&(a.style("display","table"),a.style("white-space","break-spaces"),a.style("width",r+"px"),u=a.node().getBoundingClientRect()),o.node()}m(rw,"addHtmlSpan");function Zc(e,t,r,i=!1){const n=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&n.attr("text-anchor","middle"),n}m(Zc,"createTspan");function iw(e,t,r){const i=e.append("text"),n=Zc(i,1,t);Kc(n,r);const s=n.node().getComputedTextLength();return i.remove(),s}m(iw,"computeWidthOfText");function hP(e,t,r){var o;const i=e.append("text"),n=Zc(i,1,t);Kc(n,[{content:r,type:"normal"}]);const s=(o=n.node())==null?void 0:o.getBoundingClientRect();return s&&i.remove(),s}m(hP,"computeDimensionOfText");function nw(e,t,r,i=!1,n=!1){const o=t.append("g"),a=o.insert("rect").attr("class","background").attr("style","stroke: none"),l=o.append("text").attr("y","-10.1");n&&l.attr("text-anchor","middle");let h=0;for(const c of r){const u=m(d=>iw(o,1.1,d)<=e,"checkWidth"),f=u(c)?[c]:ew(c,u);for(const d of f){const p=Zc(l,h,1.1,n);Kc(p,d),h++}}if(i){const c=l.node().getBBox(),u=2;return a.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),o.node()}else return l.node()}m(nw,"createFormattedText");function Uf(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}m(Uf,"decodeHTMLEntities");function Kc(e,t){e.text(""),t.forEach((r,i)=>{const n=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?n.text(Uf(r.content)):n.text(" "+Uf(r.content))})}m(Kc,"updateTextContentAndStyles");async function sw(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,s,o)=>(r.push((async()=>{const a=`${s}:${o}`;return await lP(a)?await Ka(a,void 0,{class:"label-icon"}):`<i class='${Fr(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}m(sw,"replaceIconSubstring");var bi=m(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:s=!0,markdown:o=!0,isNode:a=!0,width:l=200,addSvgBackground:h=!1}={},c)=>{if(q.debug("XYZ createText",t,r,i,n,s,a,"addSvgBackground: ",h),s){const u=o?Kv(t,c):Zv(t),f=await sw(An(u),c),d=t.replace(/\\\\/g,"\\"),p={isNode:a,label:Ta(t)?d:f,labelStyle:r.replace("fill:","color:")};return await rw(e,p,l,n,h,c)}else{const u=An(t.replace(/<br\s*\/?>/g,"<br/>")),f=o?Qv(u.replace("<br>","<br/>"),c):Xv(u),d=nw(l,e,f,t?h:!1,!a);if(a){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");mt(d).attr("style",p)}else{const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");mt(d).select("rect").attr("style",p.replace(/background:/g,"fill:"));const g=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");mt(d).select("text").attr("style",g)}return i?mt(d).selectAll("tspan.text-outer-tspan").classed("title-row",!0):mt(d).selectAll("tspan.text-outer-tspan").classed("row",!0),d}},"createText");function ed(e,t,r){if(e&&e.length){const[i,n]=t,s=Math.PI/180*r,o=Math.cos(s),a=Math.sin(s);for(const l of e){const[h,c]=l;l[0]=(h-i)*o-(c-n)*a+i,l[1]=(h-i)*a+(c-n)*o+n}}}function cP(e,t){return e[0]===t[0]&&e[1]===t[1]}function uP(e,t,r,i=1){const n=r,s=Math.max(t,.1),o=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,a=[0,0];if(n)for(const h of o)ed(h,a,n);const l=function(h,c,u){const f=[];for(const C of h){const k=[...C];cP(k[0],k[k.length-1])||k.push([k[0][0],k[0][1]]),k.length>2&&f.push(k)}const d=[];c=Math.max(c,.1);const p=[];for(const C of f)for(let k=0;k<C.length-1;k++){const v=C[k],S=C[k+1];if(v[1]!==S[1]){const _=Math.min(v[1],S[1]);p.push({ymin:_,ymax:Math.max(v[1],S[1]),x:_===v[1]?v[0]:S[0],islope:(S[0]-v[0])/(S[1]-v[1])})}}if(p.sort((C,k)=>C.ymin<k.ymin?-1:C.ymin>k.ymin?1:C.x<k.x?-1:C.x>k.x?1:C.ymax===k.ymax?0:(C.ymax-k.ymax)/Math.abs(C.ymax-k.ymax)),!p.length)return d;let g=[],x=p[0].ymin,y=0;for(;g.length||p.length;){if(p.length){let C=-1;for(let k=0;k<p.length&&!(p[k].ymin>x);k++)C=k;p.splice(0,C+1).forEach(k=>{g.push({s:x,edge:k})})}if(g=g.filter(C=>!(C.edge.ymax<=x)),g.sort((C,k)=>C.edge.x===k.edge.x?0:(C.edge.x-k.edge.x)/Math.abs(C.edge.x-k.edge.x)),(u!==1||y%c==0)&&g.length>1)for(let C=0;C<g.length;C+=2){const k=C+1;if(k>=g.length)break;const v=g[C].edge,S=g[k].edge;d.push([[Math.round(v.x),x],[Math.round(S.x),x]])}x+=u,g.forEach(C=>{C.edge.x=C.edge.x+u*C.edge.islope}),y++}return d}(o,s,i);if(n){for(const h of o)ed(h,a,-n);(function(h,c,u){const f=[];h.forEach(d=>f.push(...d)),ed(f,c,u)})(l,a,-n)}return l}function Ja(e,t){var r;const i=t.hachureAngle+90;let n=t.hachureGap;n<0&&(n=4*t.strokeWidth),n=Math.round(Math.max(n,.1));let s=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(s=n),uP(e,n,i,s||1)}class rm{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=Ja(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const n of t)i.push(...this.helper.doubleLineOps(n[0][0],n[0][1],n[1][0],n[1][1],r));return i}}function Jc(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class dP extends rm{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=Ja(t,Object.assign({},r,{hachureGap:i})),s=Math.PI/180*r.hachureAngle,o=[],a=.5*i*Math.cos(s),l=.5*i*Math.sin(s);for(const[h,c]of n)Jc([h,c])&&o.push([[h[0]-a,h[1]+l],[...c]],[[h[0]+a,h[1]-l],[...c]]);return{type:"fillSketch",ops:this.renderLines(o,r)}}}class fP extends rm{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),s=this._fillPolygons(t,n);return i.ops=i.ops.concat(s.ops),i}}class pP{constructor(t){this.helper=t}fillPolygons(t,r){const i=Ja(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);const o=n/4;for(const a of t){const l=Jc(a),h=l/n,c=Math.ceil(h)-1,u=l-c*n,f=(a[0][0]+a[1][0])/2-n/4,d=Math.min(a[0][1],a[1][1]);for(let p=0;p<c;p++){const g=d+u+p*n,x=f-o+2*Math.random()*o,y=g-o+2*Math.random()*o,C=this.helper.ellipse(x,y,s,s,r);i.push(...C.ops)}}return{type:"fillSketch",ops:i}}}class gP{constructor(t){this.helper=t}fillPolygons(t,r){const i=Ja(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,n=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,s=[];return t.forEach(o=>{const a=Jc(o),l=Math.floor(a/(i+n)),h=(a+n-l*(i+n))/2;let c=o[0],u=o[1];c[0]>u[0]&&(c=o[1],u=o[0]);const f=Math.atan((u[1]-c[1])/(u[0]-c[0]));for(let d=0;d<l;d++){const p=d*(i+n),g=p+i,x=[c[0]+p*Math.cos(f)+h*Math.cos(f),c[1]+p*Math.sin(f)+h*Math.sin(f)],y=[c[0]+g*Math.cos(f)+h*Math.cos(f),c[1]+g*Math.sin(f)+h*Math.sin(f)];s.push(...this.helper.doubleLineOps(x[0],x[1],y[0],y[1],r))}}),s}}class mP{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,n=r.zigzagOffset<0?i:r.zigzagOffset,s=Ja(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(s,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach(s=>{const o=Jc(s),a=Math.round(o/(2*r));let l=s[0],h=s[1];l[0]>h[0]&&(l=s[1],h=s[0]);const c=Math.atan((h[1]-l[1])/(h[0]-l[0]));for(let u=0;u<a;u++){const f=2*u*r,d=2*(u+1)*r,p=Math.sqrt(2*Math.pow(r,2)),g=[l[0]+f*Math.cos(c),l[1]+f*Math.sin(c)],x=[l[0]+d*Math.cos(c),l[1]+d*Math.sin(c)],y=[g[0]+p*Math.cos(c+Math.PI/4),g[1]+p*Math.sin(c+Math.PI/4)];n.push(...this.helper.doubleLineOps(g[0],g[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],i))}}),n}}const De={};class yP{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const xP=0,rd=1,ax=2,Al={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function id(e,t){return e.type===t}function im(e){const t=[],r=function(o){const a=new Array;for(;o!=="";)if(o.match(/^([ \t\r\n,]+)/))o=o.substr(RegExp.$1.length);else if(o.match(/^([aAcChHlLmMqQsStTvVzZ])/))a[a.length]={type:xP,text:RegExp.$1},o=o.substr(RegExp.$1.length);else{if(!o.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];a[a.length]={type:rd,text:`${parseFloat(RegExp.$1)}`},o=o.substr(RegExp.$1.length)}return a[a.length]={type:ax,text:""},a}(e);let i="BOD",n=0,s=r[n];for(;!id(s,ax);){let o=0;const a=[];if(i==="BOD"){if(s.text!=="M"&&s.text!=="m")return im("M0,0"+e);n++,o=Al[s.text],i=s.text}else id(s,rd)?o=Al[i]:(n++,o=Al[s.text],i=s.text);if(!(n+o<r.length))throw new Error("Path data ended short");for(let l=n;l<n+o;l++){const h=r[l];if(!id(h,rd))throw new Error("Param not a number: "+i+","+h.text);a[a.length]=+h.text}if(typeof Al[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:a};t.push(l),n+=o,s=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function ow(e){let t=0,r=0,i=0,n=0;const s=[];for(const{key:o,data:a}of e)switch(o){case"M":s.push({key:"M",data:[...a]}),[t,r]=a,[i,n]=a;break;case"m":t+=a[0],r+=a[1],s.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":s.push({key:"L",data:[...a]}),[t,r]=a;break;case"l":t+=a[0],r+=a[1],s.push({key:"L",data:[t,r]});break;case"C":s.push({key:"C",data:[...a]}),t=a[4],r=a[5];break;case"c":{const l=a.map((h,c)=>c%2?h+r:h+t);s.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":s.push({key:"Q",data:[...a]}),t=a[2],r=a[3];break;case"q":{const l=a.map((h,c)=>c%2?h+r:h+t);s.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":s.push({key:"A",data:[...a]}),t=a[5],r=a[6];break;case"a":t+=a[5],r+=a[6],s.push({key:"A",data:[a[0],a[1],a[2],a[3],a[4],t,r]});break;case"H":s.push({key:"H",data:[...a]}),t=a[0];break;case"h":t+=a[0],s.push({key:"H",data:[t]});break;case"V":s.push({key:"V",data:[...a]}),r=a[0];break;case"v":r+=a[0],s.push({key:"V",data:[r]});break;case"S":s.push({key:"S",data:[...a]}),t=a[2],r=a[3];break;case"s":{const l=a.map((h,c)=>c%2?h+r:h+t);s.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":s.push({key:"T",data:[...a]}),t=a[0],r=a[1];break;case"t":t+=a[0],r+=a[1],s.push({key:"T",data:[t,r]});break;case"Z":case"z":s.push({key:"Z",data:[]}),t=i,r=n}return s}function aw(e){const t=[];let r="",i=0,n=0,s=0,o=0,a=0,l=0;for(const{key:h,data:c}of e){switch(h){case"M":t.push({key:"M",data:[...c]}),[i,n]=c,[s,o]=c;break;case"C":t.push({key:"C",data:[...c]}),i=c[4],n=c[5],a=c[2],l=c[3];break;case"L":t.push({key:"L",data:[...c]}),[i,n]=c;break;case"H":i=c[0],t.push({key:"L",data:[i,n]});break;case"V":n=c[0],t.push({key:"L",data:[i,n]});break;case"S":{let u=0,f=0;r==="C"||r==="S"?(u=i+(i-a),f=n+(n-l)):(u=i,f=n),t.push({key:"C",data:[u,f,...c]}),a=c[0],l=c[1],i=c[2],n=c[3];break}case"T":{const[u,f]=c;let d=0,p=0;r==="Q"||r==="T"?(d=i+(i-a),p=n+(n-l)):(d=i,p=n);const g=i+2*(d-i)/3,x=n+2*(p-n)/3,y=u+2*(d-u)/3,C=f+2*(p-f)/3;t.push({key:"C",data:[g,x,y,C,u,f]}),a=d,l=p,i=u,n=f;break}case"Q":{const[u,f,d,p]=c,g=i+2*(u-i)/3,x=n+2*(f-n)/3,y=d+2*(u-d)/3,C=p+2*(f-p)/3;t.push({key:"C",data:[g,x,y,C,d,p]}),a=u,l=f,i=d,n=p;break}case"A":{const u=Math.abs(c[0]),f=Math.abs(c[1]),d=c[2],p=c[3],g=c[4],x=c[5],y=c[6];u===0||f===0?(t.push({key:"C",data:[i,n,x,y,x,y]}),i=x,n=y):(i!==x||n!==y)&&(lw(i,n,x,y,u,f,d,p,g).forEach(function(C){t.push({key:"C",data:C})}),i=x,n=y);break}case"Z":t.push({key:"Z",data:[]}),i=s,n=o}r=h}return t}function Bo(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function lw(e,t,r,i,n,s,o,a,l,h){const c=(u=o,Math.PI*u/180);var u;let f=[],d=0,p=0,g=0,x=0;if(h)[d,p,g,x]=h;else{[e,t]=Bo(e,t,-c),[r,i]=Bo(r,i,-c);const H=(e-r)/2,D=(t-i)/2;let $=H*H/(n*n)+D*D/(s*s);$>1&&($=Math.sqrt($),n*=$,s*=$);const F=n*n,I=s*s,B=F*I-F*D*D-I*H*H,R=F*D*D+I*H*H,N=(a===l?-1:1)*Math.sqrt(Math.abs(B/R));g=N*n*D/s+(e+r)/2,x=N*-s*H/n+(t+i)/2,d=Math.asin(parseFloat(((t-x)/s).toFixed(9))),p=Math.asin(parseFloat(((i-x)/s).toFixed(9))),e<g&&(d=Math.PI-d),r<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>120*Math.PI/180){const H=p,D=r,$=i;p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=lw(r=g+n*Math.cos(p),i=x+s*Math.sin(p),D,$,n,s,o,0,l,[p,H,g,x])}y=p-d;const C=Math.cos(d),k=Math.sin(d),v=Math.cos(p),S=Math.sin(p),_=Math.tan(y/4),w=4/3*n*_,T=4/3*s*_,z=[e,t],A=[e+w*k,t-T*C],M=[r+w*S,i-T*v],Y=[r,i];if(A[0]=2*z[0]-A[0],A[1]=2*z[1]-A[1],h)return[A,M,Y].concat(f);{f=[A,M,Y].concat(f);const H=[];for(let D=0;D<f.length;D+=3){const $=Bo(f[D][0],f[D][1],c),F=Bo(f[D+1][0],f[D+1][1],c),I=Bo(f[D+2][0],f[D+2][1],c);H.push([$[0],$[1],F[0],F[1],I[0],I[1]])}return H}}const CP={randOffset:function(e,t){return ct(e,t)},randOffsetWithRange:function(e,t,r){return hc(e,t,r)},ellipse:function(e,t,r,i,n){const s=cw(r,i,n);return Yf(e,t,n,s).opset},doubleLineOps:function(e,t,r,i,n){return Gi(e,t,r,i,n,!0)}};function hw(e,t,r,i,n){return{type:"path",ops:Gi(e,t,r,i,n)}}function nh(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let s=0;s<i-1;s++)n.push(...Gi(e[s][0],e[s][1],e[s+1][0],e[s+1][1],r));return t&&n.push(...Gi(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?hw(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function kP(e,t,r,i,n){return function(s,o){return nh(s,!0,o)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function lx(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Ml(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:Ml(r[0],1.5*(1+.22*t.roughness),ux(t));for(let s=1;s<r.length;s++){const o=r[s];if(o.length){const a=Ml(o,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:Ml(o,1.5*(1+.22*t.roughness),ux(t));for(const h of a)h.op!=="move"&&i.push(h);for(const h of l)h.op!=="move"&&n.push(h)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function cw(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),n=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),s=2*Math.PI/n;let o=Math.abs(e/2),a=Math.abs(t/2);const l=1-r.curveFitting;return o+=ct(o*l,r),a+=ct(a*l,r),{increment:s,rx:o,ry:a}}function Yf(e,t,r,i){const[n,s]=dx(i.increment,e,t,i.rx,i.ry,1,i.increment*hc(.1,hc(.4,1,r),r),r);let o=cc(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[a]=dx(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=cc(a,null,r);o=o.concat(l)}return{estimatedPoints:s,opset:{type:"path",ops:o}}}function hx(e,t,r,i,n,s,o,a,l){const h=e,c=t;let u=Math.abs(r/2),f=Math.abs(i/2);u+=ct(.01*u,l),f+=ct(.01*f,l);let d=n,p=s;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,x=Math.min(g/2,(p-d)/2),y=fx(x,h,c,u,f,d,p,1,l);if(!l.disableMultiStroke){const C=fx(x,h,c,u,f,d,p,1.5,l);y.push(...C)}return o&&(a?y.push(...Gi(h,c,h+u*Math.cos(d),c+f*Math.sin(d),l),...Gi(h,c,h+u*Math.cos(p),c+f*Math.sin(p),l)):y.push({op:"lineTo",data:[h,c]},{op:"lineTo",data:[h+u*Math.cos(d),c+f*Math.sin(d)]})),{type:"path",ops:y}}function cx(e,t){const r=aw(ow(im(e))),i=[];let n=[0,0],s=[0,0];for(const{key:o,data:a}of r)switch(o){case"M":s=[a[0],a[1]],n=[a[0],a[1]];break;case"L":i.push(...Gi(s[0],s[1],a[0],a[1],t)),s=[a[0],a[1]];break;case"C":{const[l,h,c,u,f,d]=a;i.push(...bP(l,h,c,u,f,d,s,t)),s=[f,d];break}case"Z":i.push(...Gi(s[0],s[1],n[0],n[1],t)),s=[n[0],n[1]]}return{type:"path",ops:i}}function nd(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,s=i.length;if(s>2){r.push({op:"move",data:[i[0][0]+ct(n,t),i[0][1]+ct(n,t)]});for(let o=1;o<s;o++)r.push({op:"lineTo",data:[i[o][0]+ct(n,t),i[o][1]+ct(n,t)]})}}return{type:"fillPath",ops:r}}function Xn(e,t){return function(r,i){let n=r.fillStyle||"hachure";if(!De[n])switch(n){case"zigzag":De[n]||(De[n]=new dP(i));break;case"cross-hatch":De[n]||(De[n]=new fP(i));break;case"dots":De[n]||(De[n]=new pP(i));break;case"dashed":De[n]||(De[n]=new gP(i));break;case"zigzag-line":De[n]||(De[n]=new mP(i));break;default:n="hachure",De[n]||(De[n]=new rm(i))}return De[n]}(t,CP).fillPolygons(e,t)}function ux(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function uw(e){return e.randomizer||(e.randomizer=new yP(e.seed||0)),e.randomizer.next()}function hc(e,t,r,i=1){return r.roughness*i*(uw(r)*(t-e)+e)}function ct(e,t,r=1){return hc(-e,e,t,r)}function Gi(e,t,r,i,n,s=!1){const o=s?n.disableMultiStrokeFill:n.disableMultiStroke,a=Vf(e,t,r,i,n,!0,!1);if(o)return a;const l=Vf(e,t,r,i,n,!0,!0);return a.concat(l)}function Vf(e,t,r,i,n,s,o){const a=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(a);let h=1;h=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>a&&(c=l/10);const u=c/2,f=.2+.2*uw(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,p=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=ct(d,n,h),p=ct(p,n,h);const g=[],x=()=>ct(u,n,h),y=()=>ct(c,n,h),C=n.preserveVertices;return o?g.push({op:"move",data:[e+(C?0:x()),t+(C?0:x())]}):g.push({op:"move",data:[e+(C?0:ct(c,n,h)),t+(C?0:ct(c,n,h))]}),o?g.push({op:"bcurveTo",data:[d+e+(r-e)*f+x(),p+t+(i-t)*f+x(),d+e+2*(r-e)*f+x(),p+t+2*(i-t)*f+x(),r+(C?0:x()),i+(C?0:x())]}):g.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),p+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),p+t+2*(i-t)*f+y(),r+(C?0:y()),i+(C?0:y())]}),g}function Ml(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+ct(t,r),e[0][1]+ct(t,r)]),i.push([e[0][0]+ct(t,r),e[0][1]+ct(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+ct(t,r),e[n][1]+ct(t,r)]),n===e.length-1&&i.push([e[n][0]+ct(t,r),e[n][1]+ct(t,r)]);return cc(i,null,r)}function cc(e,t,r){const i=e.length,n=[];if(i>3){const s=[],o=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let a=1;a+2<i;a++){const l=e[a];s[0]=[l[0],l[1]],s[1]=[l[0]+(o*e[a+1][0]-o*e[a-1][0])/6,l[1]+(o*e[a+1][1]-o*e[a-1][1])/6],s[2]=[e[a+1][0]+(o*e[a][0]-o*e[a+2][0])/6,e[a+1][1]+(o*e[a][1]-o*e[a+2][1])/6],s[3]=[e[a+1][0],e[a+1][1]],n.push({op:"bcurveTo",data:[s[1][0],s[1][1],s[2][0],s[2][1],s[3][0],s[3][1]]})}}else i===3?(n.push({op:"move",data:[e[1][0],e[1][1]]}),n.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&n.push(...Vf(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function dx(e,t,r,i,n,s,o,a){const l=[],h=[];if(a.roughness===0){e/=4,h.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let c=0;c<=2*Math.PI;c+=e){const u=[t+i*Math.cos(c),r+n*Math.sin(c)];l.push(u),h.push(u)}h.push([t+i*Math.cos(0),r+n*Math.sin(0)]),h.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const c=ct(.5,a)-Math.PI/2;h.push([ct(s,a)+t+.9*i*Math.cos(c-e),ct(s,a)+r+.9*n*Math.sin(c-e)]);const u=2*Math.PI+c-.01;for(let f=c;f<u;f+=e){const d=[ct(s,a)+t+i*Math.cos(f),ct(s,a)+r+n*Math.sin(f)];l.push(d),h.push(d)}h.push([ct(s,a)+t+i*Math.cos(c+2*Math.PI+.5*o),ct(s,a)+r+n*Math.sin(c+2*Math.PI+.5*o)]),h.push([ct(s,a)+t+.98*i*Math.cos(c+o),ct(s,a)+r+.98*n*Math.sin(c+o)]),h.push([ct(s,a)+t+.9*i*Math.cos(c+.5*o),ct(s,a)+r+.9*n*Math.sin(c+.5*o)])}return[h,l]}function fx(e,t,r,i,n,s,o,a,l){const h=s+ct(.1,l),c=[];c.push([ct(a,l)+t+.9*i*Math.cos(h-e),ct(a,l)+r+.9*n*Math.sin(h-e)]);for(let u=h;u<=o;u+=e)c.push([ct(a,l)+t+i*Math.cos(u),ct(a,l)+r+n*Math.sin(u)]);return c.push([t+i*Math.cos(o),r+n*Math.sin(o)]),c.push([t+i*Math.cos(o),r+n*Math.sin(o)]),cc(c,null,l)}function bP(e,t,r,i,n,s,o,a){const l=[],h=[a.maxRandomnessOffset||1,(a.maxRandomnessOffset||1)+.3];let c=[0,0];const u=a.disableMultiStroke?1:2,f=a.preserveVertices;for(let d=0;d<u;d++)d===0?l.push({op:"move",data:[o[0],o[1]]}):l.push({op:"move",data:[o[0]+(f?0:ct(h[0],a)),o[1]+(f?0:ct(h[0],a))]}),c=f?[n,s]:[n+ct(h[d],a),s+ct(h[d],a)],l.push({op:"bcurveTo",data:[e+ct(h[d],a),t+ct(h[d],a),r+ct(h[d],a),i+ct(h[d],a),c[0],c[1]]});return l}function Lo(e){return[...e]}function px(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(Lo(e[0]),Lo(e[1]),Lo(e[2]),Lo(e[2]));else{const n=[];n.push(e[0],e[0]);for(let a=1;a<e.length;a++)n.push(e[a]),a===e.length-1&&n.push(e[a]);const s=[],o=1-t;i.push(Lo(n[0]));for(let a=1;a+2<n.length;a++){const l=n[a];s[0]=[l[0],l[1]],s[1]=[l[0]+(o*n[a+1][0]-o*n[a-1][0])/6,l[1]+(o*n[a+1][1]-o*n[a-1][1])/6],s[2]=[n[a+1][0]+(o*n[a][0]-o*n[a+2][0])/6,n[a+1][1]+(o*n[a][1]-o*n[a+2][1])/6],s[3]=[n[a+1][0],n[a+1][1]],i.push(s[1],s[2],s[3])}}return i}function sh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function vP(e,t,r){const i=sh(t,r);if(i===0)return sh(e,t);let n=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return n=Math.max(0,Math.min(1,n)),sh(e,ln(t,r,n))}function ln(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Gf(e,t,r,i){const n=i||[];if(function(a,l){const h=a[l+0],c=a[l+1],u=a[l+2],f=a[l+3];let d=3*c[0]-2*h[0]-f[0];d*=d;let p=3*c[1]-2*h[1]-f[1];p*=p;let g=3*u[0]-2*f[0]-h[0];g*=g;let x=3*u[1]-2*f[1]-h[1];return x*=x,d<g&&(d=g),p<x&&(p=x),d+p}(e,t)<r){const a=e[t+0];n.length?(s=n[n.length-1],o=a,Math.sqrt(sh(s,o))>1&&n.push(a)):n.push(a),n.push(e[t+3])}else{const l=e[t+0],h=e[t+1],c=e[t+2],u=e[t+3],f=ln(l,h,.5),d=ln(h,c,.5),p=ln(c,u,.5),g=ln(f,d,.5),x=ln(d,p,.5),y=ln(g,x,.5);Gf([l,f,g,y],0,r,n),Gf([y,x,p,u],0,r,n)}var s,o;return n}function wP(e,t){return uc(e,0,e.length,t)}function uc(e,t,r,i,n){const s=n||[],o=e[t],a=e[r-1];let l=0,h=1;for(let c=t+1;c<r-1;++c){const u=vP(e[c],o,a);u>l&&(l=u,h=c)}return Math.sqrt(l)>i?(uc(e,t,h+1,i,s),uc(e,h,r,i,s)):(s.length||s.push(o),s.push(a)),s}function sd(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let s=0;s<n;s++)Gf(e,3*s,t,i);return r&&r>0?uc(i,0,i.length,r):i}const Qe="none";class dc{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,n,s){const o=this._o(s);return this._d("line",[hw(t,r,i,n,o)],o)}rectangle(t,r,i,n,s){const o=this._o(s),a=[],l=kP(t,r,i,n,o);if(o.fill){const h=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];o.fillStyle==="solid"?a.push(nd([h],o)):a.push(Xn([h],o))}return o.stroke!==Qe&&a.push(l),this._d("rectangle",a,o)}ellipse(t,r,i,n,s){const o=this._o(s),a=[],l=cw(i,n,o),h=Yf(t,r,o,l);if(o.fill)if(o.fillStyle==="solid"){const c=Yf(t,r,o,l).opset;c.type="fillPath",a.push(c)}else a.push(Xn([h.estimatedPoints],o));return o.stroke!==Qe&&a.push(h.opset),this._d("ellipse",a,o)}circle(t,r,i,n){const s=this.ellipse(t,r,i,i,n);return s.shape="circle",s}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[nh(t,!1,i)],i)}arc(t,r,i,n,s,o,a=!1,l){const h=this._o(l),c=[],u=hx(t,r,i,n,s,o,a,!0,h);if(a&&h.fill)if(h.fillStyle==="solid"){const f=Object.assign({},h);f.disableMultiStroke=!0;const d=hx(t,r,i,n,s,o,!0,!1,f);d.type="fillPath",c.push(d)}else c.push(function(f,d,p,g,x,y,C){const k=f,v=d;let S=Math.abs(p/2),_=Math.abs(g/2);S+=ct(.01*S,C),_+=ct(.01*_,C);let w=x,T=y;for(;w<0;)w+=2*Math.PI,T+=2*Math.PI;T-w>2*Math.PI&&(w=0,T=2*Math.PI);const z=(T-w)/C.curveStepCount,A=[];for(let M=w;M<=T;M+=z)A.push([k+S*Math.cos(M),v+_*Math.sin(M)]);return A.push([k+S*Math.cos(T),v+_*Math.sin(T)]),A.push([k,v]),Xn([A],C)}(t,r,i,n,s,o,h));return h.stroke!==Qe&&c.push(u),this._d("arc",c,h)}curve(t,r){const i=this._o(r),n=[],s=lx(t,i);if(i.fill&&i.fill!==Qe)if(i.fillStyle==="solid"){const o=lx(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(o.ops)})}else{const o=[],a=t;if(a.length){const l=typeof a[0][0]=="number"?[a]:a;for(const h of l)h.length<3?o.push(...h):h.length===3?o.push(...sd(px([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):o.push(...sd(px(h),10,(1+i.roughness)/2))}o.length&&n.push(Xn([o],i))}return i.stroke!==Qe&&n.push(s),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],s=nh(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(nd([t],i)):n.push(Xn([t],i))),i.stroke!==Qe&&n.push(s),this._d("polygon",n,i)}path(t,r){const i=this._o(r),n=[];if(!t)return this._d("path",n,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const s=i.fill&&i.fill!=="transparent"&&i.fill!==Qe,o=i.stroke!==Qe,a=!!(i.simplification&&i.simplification<1),l=function(c,u,f){const d=aw(ow(im(c))),p=[];let g=[],x=[0,0],y=[];const C=()=>{y.length>=4&&g.push(...sd(y,u)),y=[]},k=()=>{C(),g.length&&(p.push(g),g=[])};for(const{key:S,data:_}of d)switch(S){case"M":k(),x=[_[0],_[1]],g.push(x);break;case"L":C(),g.push([_[0],_[1]]);break;case"C":if(!y.length){const w=g.length?g[g.length-1]:x;y.push([w[0],w[1]])}y.push([_[0],_[1]]),y.push([_[2],_[3]]),y.push([_[4],_[5]]);break;case"Z":C(),g.push([x[0],x[1]])}if(k(),!f)return p;const v=[];for(const S of p){const _=wP(S,f);_.length&&v.push(_)}return v}(t,1,a?4-4*(i.simplification||1):(1+i.roughness)/2),h=cx(t,i);if(s)if(i.fillStyle==="solid")if(l.length===1){const c=cx(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));n.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else n.push(nd(l,i));else n.push(Xn(l,i));return o&&(a?l.forEach(c=>{n.push(nh(c,!1,i))}):n.push(h)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const s=typeof r=="number"&&r>=0?n.data.map(o=>+o.toFixed(r)):n.data;switch(n.op){case"move":i+=`M${s[0]} ${s[1]} `;break;case"bcurveTo":i+=`C${s[0]} ${s[1]}, ${s[2]} ${s[3]}, ${s[4]} ${s[5]} `;break;case"lineTo":i+=`L${s[0]} ${s[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const s of r){let o=null;switch(s.type){case"path":o={d:this.opsToPath(s),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Qe};break;case"fillPath":o={d:this.opsToPath(s),stroke:Qe,strokeWidth:0,fill:i.fill||Qe};break;case"fillSketch":o=this.fillSketch(s,i)}o&&n.push(o)}return n}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||Qe,strokeWidth:i,fill:Qe}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class SP{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new dc(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,s=t.options.fixedDecimalPlaceDigits;for(const o of r)switch(o.type){case"path":n.save(),n.strokeStyle=i.stroke==="none"?"transparent":i.stroke,n.lineWidth=i.strokeWidth,i.strokeLineDash&&n.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(n.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(n,o,s),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const a=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,o,s,a),n.restore();break}case"fillSketch":this.fillSketch(n,o,i)}}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=n,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,n="nonzero"){t.beginPath();for(const s of r.ops){const o=typeof i=="number"&&i>=0?s.data.map(a=>+a.toFixed(i)):s.data;switch(s.op){case"move":t.moveTo(o[0],o[1]);break;case"bcurveTo":t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);break;case"lineTo":t.lineTo(o[0],o[1])}}r.type==="fillPath"?t.fill(n):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,n,s){const o=this.gen.line(t,r,i,n,s);return this.draw(o),o}rectangle(t,r,i,n,s){const o=this.gen.rectangle(t,r,i,n,s);return this.draw(o),o}ellipse(t,r,i,n,s){const o=this.gen.ellipse(t,r,i,n,s);return this.draw(o),o}circle(t,r,i,n){const s=this.gen.circle(t,r,i,n);return this.draw(s),s}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,n,s,o,a=!1,l){const h=this.gen.arc(t,r,i,n,s,o,a,l);return this.draw(h),h}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const $l="http://www.w3.org/2000/svg";class TP{constructor(t,r){this.svg=t,this.gen=new dc(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,s=n.createElementNS($l,"g"),o=t.options.fixedDecimalPlaceDigits;for(const a of r){let l=null;switch(a.type){case"path":l=n.createElementNS($l,"path"),l.setAttribute("d",this.opsToPath(a,o)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=n.createElementNS($l,"path"),l.setAttribute("d",this.opsToPath(a,o)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(n,a,i)}l&&s.appendChild(l)}return s}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const s=t.createElementNS($l,"path");return s.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),s.setAttribute("stroke",i.fill||""),s.setAttribute("stroke-width",n+""),s.setAttribute("fill","none"),i.fillLineDash&&s.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&s.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),s}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,s){const o=this.gen.line(t,r,i,n,s);return this.draw(o)}rectangle(t,r,i,n,s){const o=this.gen.rectangle(t,r,i,n,s);return this.draw(o)}ellipse(t,r,i,n,s){const o=this.gen.ellipse(t,r,i,n,s);return this.draw(o)}circle(t,r,i,n){const s=this.gen.circle(t,r,i,n);return this.draw(s)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,n,s,o,a=!1,l){const h=this.gen.arc(t,r,i,n,s,o,a,l);return this.draw(h)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var Q={canvas:(e,t)=>new SP(e,t),svg:(e,t)=>new TP(e,t),generator:e=>new dc(e),newSeed:()=>dc.newSeed()},ht=m(async(e,t,r)=>{var d,p;let i;const n=t.useHtmlLabels||Ci((d=wt())==null?void 0:d.htmlLabels);r?i=r:i="node default";const s=e.insert("g").attr("class",i).attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",le(t.labelStyle));let a;t.label===void 0?a="":a=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,h=t.labelType==="markdown",c=await bi(o,Fr(An(a),wt()),{useHtmlLabels:n,width:t.width||((p=wt().flowchart)==null?void 0:p.wrappingWidth),classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:h},wt());let u=c.getBBox();const f=((t==null?void 0:t.padding)??0)/2;if(n){const g=c.children[0],x=mt(c);await Av(g,a),u=g.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height)}return n?o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"):o.attr("transform","translate(0, "+-u.height/2+")"),t.centerLabel&&o.attr("transform","translate("+-u.width/2+", "+-u.height/2+")"),o.insert("rect",":first-child"),{shapeSvg:s,bbox:u,halfPadding:f,label:o}},"labelHelper"),od=m(async(e,t,r)=>{var l,h;const i=r.useHtmlLabels??$e(wt()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),s=await bi(n,Fr(An(t),wt()),{useHtmlLabels:i,width:r.width||((h=(l=wt())==null?void 0:l.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let o=s.getBBox();const a=r.padding/2;if($e(wt())){const c=s.children[0],u=mt(s);o=c.getBoundingClientRect(),u.attr("width",o.width),u.attr("height",o.height)}return i?n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"):n.attr("transform","translate(0, "+-o.height/2+")"),r.centerLabel&&n.attr("transform","translate("+-o.width/2+", "+-o.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:e,bbox:o,halfPadding:a,label:n}},"insertLabel"),tt=m((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),lt=m((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function xt(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}m(xt,"createPathFromPoints");function Xi(e,t,r,i,n,s){const o=[],l=r-e,h=i-t,c=l/s,u=2*Math.PI/c,f=t+h/2;for(let d=0;d<=50;d++){const p=d/50,g=e+p*l,x=f+n*Math.sin(u*(g-e));o.push({x:g,y:x})}return o}m(Xi,"generateFullSineWavePoints");function Pa(e,t,r,i,n,s){const o=[],a=n*Math.PI/180,c=(s*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:-d,y:-p})}return o}m(Pa,"generateCirclePoints");function Xf(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const n=t.find(l=>l.getAttribute("fill")!=="none"),s=t.find(l=>l.getAttribute("stroke")!=="none"),o=m((l,h)=>(l==null?void 0:l.getAttribute(h))??void 0,"getAttr");if(n){const l={fill:o(n,"fill"),"fill-opacity":o(n,"fill-opacity")??"1"};Object.entries(l).forEach(([h,c])=>{c&&r.setAttribute(h,c)})}if(s){const l={stroke:o(s,"stroke"),"stroke-width":o(s,"stroke-width")??"1","stroke-opacity":o(s,"stroke-opacity")??"1"};Object.entries(l).forEach(([h,c])=>{c&&r.setAttribute(h,c)})}const a=document.createElementNS("http://www.w3.org/2000/svg","g");return a.appendChild(r),a}m(Xf,"mergePaths");var _P=m((e,t)=>{var r=e.x,i=e.y,n=t.x-r,s=t.y-i,o=e.width/2,a=e.height/2,l,h;return Math.abs(s)*o>Math.abs(n)*a?(s<0&&(a=-a),l=s===0?0:a*n/s,h=a):(n<0&&(o=-o),l=o,h=n===0?0:o*s/n),{x:r+l,y:i+h}},"intersectRect"),so=_P,BP=m(async(e,t,r,i=!1,n=!1)=>{let s=t||"";typeof s=="object"&&(s=s[0]);const o=wt(),a=$e(o);return await bi(e,s,{style:r,isTitle:i,useHtmlLabels:a,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},o)},"createLabel"),Mi=BP,tn=m((e,t,r,i,n)=>["M",e+n,t,"H",e+r-n,"A",n,n,0,0,1,e+r,t+n,"V",t+i-n,"A",n,n,0,0,1,e+r-n,t+i,"H",e+n,"A",n,n,0,0,1,e,t+i-n,"V",t+n,"A",n,n,0,0,1,e+n,t,"Z"].join(" "),"createRoundedRectPathD"),dw=m(async(e,t)=>{q.info("Creating subgraph rect for ",t.id,t);const r=wt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:a,nodeStyles:l,borderStyles:h,backgroundStyles:c}=J(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=$e(r),d=u.insert("g").attr("class","cluster-label ");let p;t.labelType==="markdown"?p=await bi(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}):p=await Mi(d,t.label,t.labelStyle||"",!1,!0);let g=p.getBBox();if($e(r)){const w=p.children[0],T=mt(p);g=w.getBoundingClientRect(),T.attr("width",g.width),T.attr("height",g.height)}const x=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,C=t.x-x/2,k=t.y-y/2;q.trace("Data ",t,JSON.stringify(t));let v;if(t.look==="handDrawn"){const w=Q.svg(u),T=K(t,{roughness:.7,fill:s,stroke:o,fillWeight:3,seed:n}),z=w.path(tn(C,k,x,y,0),T);v=u.insert(()=>(q.debug("Rough node insert CXC",z),z),":first-child"),v.select("path:nth-child(2)").attr("style",h.join(";")),v.select("path").attr("style",c.join(";").replace("fill","stroke"))}else v=u.insert("rect",":first-child"),v.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",C).attr("y",k).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:S}=Ug(r);if(d.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),a){const w=d.select("span");w&&w.attr("style",a)}const _=v.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=g.height-t.padding/2,t.intersect=function(w){return so(t,w)},{cluster:u,labelBBox:g}},"rect"),LP=m((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),n=0*t.padding,s=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-s).attr("y",t.y-t.height/2-s).attr("width",t.width+n).attr("height",t.height+n).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(a){return so(t,a)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),EP=m(async(e,t)=>{const r=wt(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:s,compositeBackground:o,compositeTitleBackground:a,nodeBorder:l}=i,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),c=h.insert("g",":first-child"),u=h.insert("g").attr("class","cluster-label");let f=h.append("rect");const d=await Mi(u,t.label,t.labelStyle,void 0,!0);let p=d.getBBox();if($e(r)){const z=d.children[0],A=mt(d);p=z.getBoundingClientRect(),A.attr("width",p.width),A.attr("height",p.height)}const g=0*t.padding,x=g/2,y=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+g;t.width<=p.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height+g,k=t.height+g-p.height-6,v=t.x-y/2,S=t.y-C/2;t.width=y;const _=t.y-t.height/2-x+p.height+2;let w;if(t.look==="handDrawn"){const z=t.cssClasses.includes("statediagram-cluster-alt"),A=Q.svg(h),M=t.rx||t.ry?A.path(tn(v,S,y,C,10),{roughness:.7,fill:a,fillStyle:"solid",stroke:l,seed:n}):A.rectangle(v,S,y,C,{seed:n});w=h.insert(()=>M,":first-child");const Y=A.rectangle(v,_,y,k,{fill:z?s:o,fillStyle:z?"hachure":"solid",stroke:l,seed:n});w=h.insert(()=>M,":first-child"),f=h.insert(()=>Y)}else w=c.insert("rect",":first-child"),w.attr("class","outer").attr("x",v).attr("y",S).attr("width",y).attr("height",C).attr("data-look",t.look),f.attr("class","inner").attr("x",v).attr("y",_).attr("width",y).attr("height",k);u.attr("transform",`translate(${t.x-p.width/2}, ${S+1-($e(r)?0:3)})`);const T=w.node().getBBox();return t.height=T.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(z){return so(t,z)},{cluster:h,labelBBox:p}},"roundedWithTitle"),FP=m(async(e,t)=>{q.info("Creating subgraph rect for ",t.id,t);const r=wt(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:s,clusterBorder:o}=i,{labelStyles:a,nodeStyles:l,borderStyles:h,backgroundStyles:c}=J(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=$e(r),d=u.insert("g").attr("class","cluster-label "),p=await bi(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let g=p.getBBox();if($e(r)){const w=p.children[0],T=mt(p);g=w.getBoundingClientRect(),T.attr("width",g.width),T.attr("height",g.height)}const x=t.width<=g.width+t.padding?g.width+t.padding:t.width;t.width<=g.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,C=t.x-x/2,k=t.y-y/2;q.trace("Data ",t,JSON.stringify(t));let v;if(t.look==="handDrawn"){const w=Q.svg(u),T=K(t,{roughness:.7,fill:s,stroke:o,fillWeight:4,seed:n}),z=w.path(tn(C,k,x,y,t.rx),T);v=u.insert(()=>(q.debug("Rough node insert CXC",z),z),":first-child"),v.select("path:nth-child(2)").attr("style",h.join(";")),v.select("path").attr("style",c.join(";").replace("fill","stroke"))}else v=u.insert("rect",":first-child"),v.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",C).attr("y",k).attr("width",x).attr("height",y);const{subGraphTitleTopMargin:S}=Ug(r);if(d.attr("transform",`translate(${t.x-g.width/2}, ${t.y-t.height/2+S})`),a){const w=d.select("span");w&&w.attr("style",a)}const _=v.node().getBBox();return t.offsetX=0,t.width=_.width,t.height=_.height,t.offsetY=g.height-t.padding/2,t.intersect=function(w){return so(t,w)},{cluster:u,labelBBox:g}},"kanbanSection"),AP=m((e,t)=>{const r=wt(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:s}=i,o=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),a=o.insert("g",":first-child"),l=0*t.padding,h=t.width+l;t.diff=-t.padding;const c=t.height+l,u=t.x-h/2,f=t.y-c/2;t.width=h;let d;if(t.look==="handDrawn"){const x=Q.svg(o).rectangle(u,f,h,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:s,seed:n});d=o.insert(()=>x,":first-child")}else{d=a.insert("rect",":first-child");let g="outer";t.look,g="divider",d.attr("class",g).attr("x",u).attr("y",f).attr("width",h).attr("height",c).attr("data-look",t.look)}const p=d.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(g){return so(t,g)},{cluster:o,labelBBox:{}}},"divider"),MP=dw,$P={rect:dw,squareRect:MP,roundedWithTitle:EP,noteGroup:LP,divider:AP,kanbanSection:FP},fw=new Map,OP=m(async(e,t)=>{const r=t.shape||"rect",i=await $P[r](e,t);return fw.set(t.id,i),i},"insertCluster"),Mz=m(()=>{fw=new Map},"clear");function pw(e,t){return e.intersect(t)}m(pw,"intersectNode");var IP=pw;function gw(e,t,r,i){var n=e.x,s=e.y,o=n-i.x,a=s-i.y,l=Math.sqrt(t*t*a*a+r*r*o*o),h=Math.abs(t*r*o/l);i.x<n&&(h=-h);var c=Math.abs(t*r*a/l);return i.y<s&&(c=-c),{x:n+h,y:s+c}}m(gw,"intersectEllipse");var mw=gw;function yw(e,t,r){return mw(e,t,t,r)}m(yw,"intersectCircle");var PP=yw;function xw(e,t,r,i){{const n=t.y-e.y,s=e.x-t.x,o=t.x*e.y-e.x*t.y,a=n*r.x+s*r.y+o,l=n*i.x+s*i.y+o,h=1e-6;if(a!==0&&l!==0&&Qf(a,l))return;const c=i.y-r.y,u=r.x-i.x,f=i.x*r.y-r.x*i.y,d=c*e.x+u*e.y+f,p=c*t.x+u*t.y+f;if(Math.abs(d)<h&&Math.abs(p)<h&&Qf(d,p))return;const g=n*u-c*s;if(g===0)return;const x=Math.abs(g/2);let y=s*f-u*o;const C=y<0?(y-x)/g:(y+x)/g;y=c*o-n*f;const k=y<0?(y-x)/g:(y+x)/g;return{x:C,y:k}}}m(xw,"intersectLine");function Qf(e,t){return e*t>0}m(Qf,"sameSign");var DP=xw;function Cw(e,t,r){let i=e.x,n=e.y,s=[],o=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(c){o=Math.min(o,c.x),a=Math.min(a,c.y)}):(o=Math.min(o,t.x),a=Math.min(a,t.y));let l=i-e.width/2-o,h=n-e.height/2-a;for(let c=0;c<t.length;c++){let u=t[c],f=t[c<t.length-1?c+1:0],d=DP(e,r,{x:l+u.x,y:h+u.y},{x:l+f.x,y:h+f.y});d&&s.push(d)}return s.length?(s.length>1&&s.sort(function(c,u){let f=c.x-r.x,d=c.y-r.y,p=Math.sqrt(f*f+d*d),g=u.x-r.x,x=u.y-r.y,y=Math.sqrt(g*g+x*x);return p<y?-1:p===y?0:1}),s[0]):e}m(Cw,"intersectPolygon");var RP=Cw,G={node:IP,circle:PP,ellipse:mw,polygon:RP,rect:so};function kw(e,t){const{labelStyles:r}=J(t);t.labelStyle=r;const i=lt(t);let n=i;i||(n="anchor");const s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=1,{cssStyles:a}=t,l=Q.svg(s),h=K(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const c=l.circle(0,0,o*2,h),u=s.insert(()=>c,":first-child");return u.attr("class","anchor").attr("style",le(a)),tt(t,u),t.intersect=function(f){return q.info("Circle intersect",t,o,f),G.circle(t,o,f)},s}m(kw,"anchor");function Zf(e,t,r,i,n,s,o){const l=(e+r)/2,h=(t+i)/2,c=Math.atan2(i-t,r-e),u=(r-e)/2,f=(i-t)/2,d=u/n,p=f/s,g=Math.sqrt(d**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const x=Math.sqrt(1-g**2),y=l+x*s*Math.sin(c)*(o?-1:1),C=h-x*n*Math.cos(c)*(o?-1:1),k=Math.atan2((t-C)/s,(e-y)/n);let S=Math.atan2((i-C)/s,(r-y)/n)-k;o&&S<0&&(S+=2*Math.PI),!o&&S>0&&(S-=2*Math.PI);const _=[];for(let w=0;w<20;w++){const T=w/19,z=k+T*S,A=y+n*Math.cos(z),M=C+s*Math.sin(z);_.push({x:A,y:M})}return _}m(Zf,"generateArcPoints");function bw(e,t,r){const[i,n]=[t,r].sort((s,o)=>o-s);return n*(1-Math.sqrt(1-(e/i/2)**2))}m(bw,"calculateArcSagitta");async function vw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,a=m(z=>z+o,"calcTotalHeight"),l=m(z=>{const A=z/2;return[A/(2.5+z/50),A]},"calcEllipseRadius"),{shapeSvg:h,bbox:c}=await ht(e,t,lt(t)),u=a(t!=null&&t.height?t==null?void 0:t.height:c.height),[f,d]=l(u),p=bw(u,f,d),x=(t!=null&&t.width?t==null?void 0:t.width:c.width)+s*2+p-p,y=u,{cssStyles:C}=t,k=[{x:x/2,y:-y/2},{x:-x/2,y:-y/2},...Zf(-x/2,-y/2,-x/2,y/2,f,d,!1),{x:x/2,y:y/2},...Zf(x/2,y/2,x/2,-y/2,f,d,!0)],v=Q.svg(h),S=K(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const _=xt(k),w=v.path(_,S),T=h.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(${f/2}, 0)`),tt(t,T),t.intersect=function(z){return G.polygon(t,k,z)},h}m(vw,"bowTieRect");function vi(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(n){return n.x+","+n.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}m(vi,"insertPolygonShape");var Ol=12;async function ww(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?28:n,o=t.look==="neo"?24:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?s*2:s+Ol),c=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?o*2:o),u=0,f=h,d=-c,p=0,g=[{x:u+Ol,y:d},{x:f,y:d},{x:f,y:p},{x:u,y:p},{x:u,y:d+Ol},{x:u+Ol,y:d}];let x;const{cssStyles:y}=t;if(t.look==="handDrawn"){const C=Q.svg(a),k=K(t,{}),v=xt(g),S=C.path(v,k);x=a.insert(()=>S,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),y&&x.attr("style",y)}else x=vi(a,h,c,g);return i&&x.attr("style",i),tt(t,x),t.intersect=function(C){return G.polygon(t,g,C)},a}m(ww,"card");function Sw(e,t){const{nodeStyles:r}=J(t);t.label="";const i=e.insert("g").attr("class",lt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,s=Math.max(28,t.width??0),o=[{x:0,y:s/2},{x:s/2,y:0},{x:0,y:-s/2},{x:-s/2,y:0}],a=Q.svg(i),l=K(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=xt(o),c=a.path(h,l),u=i.insert(()=>c,":first-child");return n&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return G.polygon(t,o,f)},i}m(Sw,"choice");async function nm(e,t,r){const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i;const{shapeSvg:s,bbox:o,halfPadding:a}=await ht(e,t,lt(t)),l=16,h=(r==null?void 0:r.padding)??a,c=t.look==="neo"?o.width/2+l*2:o.width/2+h;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=Q.svg(s),p=K(t,{}),g=d.circle(0,0,c*2,p);u=s.insert(()=>g,":first-child"),u.attr("class","basic label-container").attr("style",le(f))}else u=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0);return tt(t,u),t.calcIntersect=function(d,p){const g=d.width/2;return G.circle(d,g,p)},t.intersect=function(d){return q.info("Circle intersect",t,c,d),G.circle(t,c,d)},s}m(nm,"circle");function Tw(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,n={x:i/2*t,y:i/2*r},s={x:-(i/2)*t,y:i/2*r},o={x:-(i/2)*t,y:-(i/2)*r},a={x:i/2*t,y:-(i/2)*r};return`M ${s.x},${s.y} L ${a.x},${a.y}
|
|
284
|
+
M ${n.x},${n.y} L ${o.x},${o.y}`}m(Tw,"createLine");function _w(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",lt(t)).attr("id",t.domId??t.id),s=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:o}=t,a=Q.svg(n),l=K(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const h=a.circle(0,0,s*2,l),c=Tw(s),u=a.path(c,l),f=n.insert(()=>h,":first-child");return f.insert(()=>u),f.attr("class","outer-path"),o&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),tt(t,f),t.intersect=function(d){return q.info("crossedCircle intersect",t,{radius:s,point:d}),G.circle(t,s,d)},n}m(_w,"crossedCircle");function ei(e,t,r,i=100,n=0,s=180){const o=[],a=n*Math.PI/180,c=(s*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:-d,y:-p})}return o}m(ei,"generateCirclePoints");async function Bw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await ht(e,t,lt(t)),a=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,h=s.width+a,c=s.height+l,u=Math.max(5,c*.1),{cssStyles:f}=t,d=[...ei(h/2,-c/2,u,30,-90,0),{x:-h/2-u,y:u},...ei(h/2+u*2,-u,u,20,-180,-270),...ei(h/2+u*2,u,u,20,-90,-180),{x:-h/2-u,y:-c/2},...ei(h/2,c/2,u,20,0,90)],p=[{x:h/2,y:-c/2-u},{x:-h/2,y:-c/2-u},...ei(h/2,-c/2,u,20,-90,0),{x:-h/2-u,y:-u},...ei(h/2+h*.1,-u,u,20,-180,-270),...ei(h/2+h*.1,u,u,20,-90,-180),{x:-h/2-u,y:c/2},...ei(h/2,c/2,u,20,0,90),{x:-h/2,y:c/2+u},{x:h/2,y:c/2+u}],g=Q.svg(n),x=K(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=xt(d).replace("Z",""),k=g.path(C,x),v=xt(p),S=g.path(v,{...x}),_=n.insert("g",":first-child");return _.insert(()=>S,":first-child").attr("stroke-opacity",0),_.insert(()=>k,":first-child"),_.attr("class","text"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${u}, 0)`),o.attr("transform",`translate(${-h/2+u-(s.x-(s.left??0))},${-c/2+(t.padding??0)/2-(s.y-(s.top??0))})`),tt(t,_),t.intersect=function(w){return G.polygon(t,p,w)},n}m(Bw,"curlyBraceLeft");function ri(e,t,r,i=100,n=0,s=180){const o=[],a=n*Math.PI/180,c=(s*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:d,y:p})}return o}m(ri,"generateCirclePoints");async function Lw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await ht(e,t,lt(t)),a=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,h=s.width+(t.look==="neo"?a*2:a),c=s.height+(t.look==="neo"?l*2:l),u=Math.max(5,c*.1),{cssStyles:f}=t,d=[...ri(h/2,-c/2,u,20,-90,0),{x:h/2+u,y:-u},...ri(h/2+u*2,-u,u,20,-180,-270),...ri(h/2+u*2,u,u,20,-90,-180),{x:h/2+u,y:c/2},...ri(h/2,c/2,u,20,0,90)],p=[{x:-h/2,y:-c/2-u},{x:h/2,y:-c/2-u},...ri(h/2,-c/2,u,20,-90,0),{x:h/2+u,y:-u},...ri(h/2+u*2,-u,u,20,-180,-270),...ri(h/2+u*2,u,u,20,-90,-180),{x:h/2+u,y:c/2},...ri(h/2,c/2,u,20,0,90),{x:h/2,y:c/2+u},{x:-h/2,y:c/2+u}],g=Q.svg(n),x=K(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=xt(d).replace("Z",""),k=g.path(C,x),v=xt(p),S=g.path(v,{...x}),_=n.insert("g",":first-child");return _.insert(()=>S,":first-child").attr("stroke-opacity",0),_.insert(()=>k,":first-child"),_.attr("class","text"),f&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-u}, 0)`),o.attr("transform",`translate(${-h/2+(t.padding??0)/2-(s.x-(s.left??0))},${-c/2+(t.padding??0)/2-(s.y-(s.top??0))})`),tt(t,_),t.intersect=function(w){return G.polygon(t,p,w)},n}m(Lw,"curlyBraceRight");function ce(e,t,r,i=100,n=0,s=180){const o=[],a=n*Math.PI/180,c=(s*Math.PI/180-a)/(i-1);for(let u=0;u<i;u++){const f=a+u*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);o.push({x:-d,y:-p})}return o}m(ce,"generateCirclePoints");async function Ew(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await ht(e,t,lt(t)),a=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,h=s.width+(t.look==="neo"?a*2:a),c=s.height+(t.look==="neo"?l*2:l),u=Math.max(5,c*.1),{cssStyles:f}=t,d=[...ce(h/2,-c/2,u,30,-90,0),{x:-h/2-u,y:u},...ce(h/2+u*2,-u,u,20,-180,-270),...ce(h/2+u*2,u,u,20,-90,-180),{x:-h/2-u,y:-c/2},...ce(h/2,c/2,u,20,0,90)],p=[...ce(-h/2+u+u/2,-c/2,u,20,-90,-180),{x:h/2-u/2,y:u},...ce(-h/2-u/2,-u,u,20,0,90),...ce(-h/2-u/2,u,u,20,-90,0),{x:h/2-u/2,y:-u},...ce(-h/2+u+u/2,c/2,u,30,-180,-270)],g=[{x:h/2,y:-c/2-u},{x:-h/2,y:-c/2-u},...ce(h/2,-c/2,u,20,-90,0),{x:-h/2-u,y:-u},...ce(h/2+u*2,-u,u,20,-180,-270),...ce(h/2+u*2,u,u,20,-90,-180),{x:-h/2-u,y:c/2},...ce(h/2,c/2,u,20,0,90),{x:-h/2,y:c/2+u},{x:h/2-u-u/2,y:c/2+u},...ce(-h/2+u+u/2,-c/2,u,20,-90,-180),{x:h/2-u/2,y:u},...ce(-h/2-u/2,-u,u,20,0,90),...ce(-h/2-u/2,u,u,20,-90,0),{x:h/2-u/2,y:-u},...ce(-h/2+u+u/2,c/2,u,30,-180,-270)],x=Q.svg(n),y=K(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const k=xt(d).replace("Z",""),v=x.path(k,y),_=xt(p).replace("Z",""),w=x.path(_,y),T=xt(g),z=x.path(T,{...y}),A=n.insert("g",":first-child");return A.insert(()=>z,":first-child").attr("stroke-opacity",0),A.insert(()=>v,":first-child"),A.insert(()=>w,":first-child"),A.attr("class","text"),f&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${u-u/4}, 0)`),o.attr("transform",`translate(${-h/2+(t.padding??0)/2-(s.x-(s.left??0))},${-c/2+(t.padding??0)/2-(s.y-(s.top??0))})`),tt(t,A),t.intersect=function(M){return G.polygon(t,g,M)},n}m(Ew,"curlyBraces");async function Fw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,a=20,l=5,{shapeSvg:h,bbox:c}=await ht(e,t,lt(t)),u=Math.max(a,(c.width+s*2)*1.25,(t==null?void 0:t.width)??0),f=Math.max(l,c.height+o*2,(t==null?void 0:t.height)??0),d=f/2,{cssStyles:p}=t,g=Q.svg(h),x=K(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=u,C=f,k=y-d,v=C/4,S=[{x:k,y:0},{x:v,y:0},{x:0,y:C/2},{x:v,y:C},{x:k,y:C},...Pa(-k,-C/2,d,50,270,90)],_=xt(S),w=g.path(_,x),T=h.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),T.attr("transform",`translate(${-u/2}, ${-f/2})`),tt(t,T),t.intersect=function(z){return G.polygon(t,S,z)},h}m(Fw,"curvedTrapezoid");var NP=m((e,t,r,i,n,s)=>[`M${e},${t+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),zP=m((e,t,r,i,n,s)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),qP=m((e,t,r,i,n,s)=>[`M${e-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),gx=8,mx=8;async function Aw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?24:n,o=t.look==="neo"?24:n;if(t.width||t.height){const x=t.width??0;t.width=(t.width??0)-o,t.width<mx&&(t.width=mx);const C=x/2/(2.5+x/50);t.height=(t.height??0)-s-C*3,t.height<gx&&(t.height=gx)}const{shapeSvg:a,bbox:l,label:h}=await ht(e,t,lt(t)),c=(t.width?t.width:l.width)+o,u=c/2,f=u/(2.5+c/50),d=(t.height?t.height:l.height)+s+f;let p;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Q.svg(a),y=zP(0,0,c,d,u,f),C=qP(0,f,c,d,u,f),k=K(t,{}),v=x.path(y,k),S=x.path(C,K(t,{fill:"none"}));p=a.insert(()=>S,":first-child"),p=a.insert(()=>v,":first-child"),p.attr("class","basic label-container"),g&&p.attr("style",g)}else{const x=NP(0,0,c,d,u,f);p=a.insert("path",":first-child").attr("d",x).attr("class","basic label-container outer-path").attr("style",le(g)).attr("style",i)}return p.attr("label-offset-y",f),p.attr("transform",`translate(${-c/2}, ${-(d/2+f)})`),tt(t,p),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(t.padding??0)/1.5-(l.y-(l.top??0))})`),t.intersect=function(x){const y=G.rect(t,x),C=y.x-(t.x??0);if(u!=0&&(Math.abs(C)<(t.width??0)/2||Math.abs(C)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-f)){let k=f*f*(1-C*C/(u*u));k>0&&(k=Math.sqrt(k)),k=f-k,x.y-(t.y??0)>0&&(k=-k),y.y+=k}return y},a}m(Aw,"cylinder");async function Mw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?16:t.padding??0,{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=a.width+n,c=a.height+s,u=c*.2,f=-h/2,d=-c/2-u/2,{cssStyles:p}=t,g=Q.svg(o),x=K(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:f,y:d+u},{x:-f,y:d+u},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+u}],C=g.polygon(y.map(v=>[v.x,v.y]),x),k=o.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),l.attr("transform",`translate(${f+(t.padding??0)/2-(a.x-(a.left??0))}, ${d+u+(t.padding??0)/2-(a.y-(a.top??0))})`),tt(t,k),t.intersect=function(v){return G.rect(t,v)},o}m(Mw,"dividedRectangle");async function $w(e,t){var d,p;const{labelStyles:r,nodeStyles:i}=J(t),n=t.look==="neo"?12:5;t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(o??0),c=h-n;let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const g=Q.svg(a),x=K(t,{roughness:.2,strokeWidth:2.5}),y=K(t,{roughness:.2,strokeWidth:1.5}),C=g.circle(0,0,h*2,x),k=g.circle(0,0,c*2,y);u=a.insert("g",":first-child"),u.attr("class",le(t.cssClasses)).attr("style",le(f)),(d=u.node())==null||d.appendChild(C),(p=u.node())==null||p.appendChild(k)}else{u=a.insert("g",":first-child");const g=u.insert("circle",":first-child"),x=u.insert("circle");u.attr("class","basic label-container").attr("style",i),g.attr("class","outer-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0),x.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return tt(t,u),t.intersect=function(g){return q.info("DoubleCircle intersect",t,h,g),G.circle(t,h,g)},a}m($w,"doublecircle");function Ow(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=J(t);t.label="",t.labelStyle=i;const s=e.insert("g").attr("class",lt(t)).attr("id",t.domId??t.id),o=7,{cssStyles:a}=t,l=Q.svg(s),{nodeBorder:h}=r,c=K(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const u=l.circle(0,0,o*2,c),f=s.insert(()=>u,":first-child");return f.selectAll("path").attr("style",`fill: ${h} !important;`),a&&a.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",a),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),tt(t,f),t.intersect=function(d){return q.info("filledCircle intersect",t,{radius:o,point:d}),G.circle(t,o,d)},s}m(Ow,"filledCircle");var yx=10,xx=10;async function Iw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<yx&&(t.height=yx),t.width=((t==null?void 0:t.width)??0)-s-s/2,t.width<xx&&(t.width=xx));const{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:a.width)+(s??0),c=t!=null&&t.height?t==null?void 0:t.height:h+a.height,u=c,f=[{x:0,y:-c},{x:u,y:-c},{x:u/2,y:0}],{cssStyles:d}=t,p=Q.svg(o),g=K(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=xt(f),y=p.path(x,g),C=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");return d&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),t.width=h,t.height=c,tt(t,C),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-c/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(k){return q.info("Triangle intersect",t,f,k),G.polygon(t,f,k)},o}m(Iw,"flippedTriangle");function Pw(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:s}=J(t);t.label="";const o=e.insert("g").attr("class",lt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),h=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),h=Math.max(70,(t==null?void 0:t.height)??0));const c=-1*l/2,u=-1*h/2,f=Q.svg(o),d=K(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=f.rectangle(c,u,l,h,d),g=o.insert(()=>p,":first-child");a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),s&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",s),tt(t,g);const x=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(y){return G.rect(t,y)},o}m(Pw,"forkJoin");async function Dw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=15,s=10,o=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-a*2,t.height<s&&(t.height=s),t.width=((t==null?void 0:t.width)??0)-o*2,t.width<n&&(t.width=n));const{shapeSvg:l,bbox:h}=await ht(e,t,lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,h.width))+o*2,u=(t!=null&&t.height?t==null?void 0:t.height:Math.max(s,h.height))+a*2,f=u/2,{cssStyles:d}=t,p=Q.svg(l),g=K(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=[{x:-c/2,y:-u/2},{x:c/2-f,y:-u/2},...Pa(-c/2+f,0,f,50,90,270),{x:c/2-f,y:u/2},{x:-c/2,y:u/2}],y=xt(x),C=p.path(y,g),k=l.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),tt(t,k),t.intersect=function(v){return q.info("Pill intersect",t,{radius:f,point:v}),G.polygon(t,x,v)},l}m(Dw,"halfRoundedRectangle");var WP=m((e,t,r,i,n)=>[`M${e+n},${t}`,`L${e+r-n},${t}`,`L${e+r},${t-i/2}`,`L${e+r-n},${t-i}`,`L${e+n},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function Rw(e,t){const{labelStyles:r,nodeStyles:i}=J(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const s=t.padding??0,o=70,a=32,l=t.look==="neo"?o:s,h=t.look==="neo"?a:s;if(t.width||t.height){const k=(t.height??0)/n;t.width=((t==null?void 0:t.width)??0)-2*k-h,t.height=(t.height??0)-l}const{shapeSvg:c,bbox:u}=await ht(e,t,lt(t)),f=(t!=null&&t.height?t==null?void 0:t.height:u.height)+l,d=f/n,p=(t!=null&&t.width?t==null?void 0:t.width:u.width)+2*d+h,g=[{x:d,y:0},{x:p-d,y:0},{x:p,y:-f/2},{x:p-d,y:-f},{x:d,y:-f},{x:0,y:-f/2}];let x;const{cssStyles:y}=t;if(t.look==="handDrawn"){const C=Q.svg(c),k=K(t,{}),v=WP(0,0,p,f,d),S=C.path(v,k);x=c.insert(()=>S,":first-child").attr("transform",`translate(${-p/2}, ${f/2})`),y&&x.attr("style",y)}else x=vi(c,p,f,g);return i&&x.attr("style",i),t.width=p,t.height=f,tt(t,x),t.intersect=function(C){return G.polygon(t,g,C)},c}m(Rw,"hexagon");async function Nw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await ht(e,t,lt(t)),s=Math.max(30,(t==null?void 0:t.width)??0),o=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:a}=t,l=Q.svg(n),h=K(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const c=[{x:0,y:0},{x:s,y:0},{x:0,y:o},{x:s,y:o}],u=xt(c),f=l.path(u,h),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container outer-path"),a&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",a),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-s/2}, ${-o/2})`),tt(t,d),t.intersect=function(p){return q.info("Pill intersect",t,{points:c}),G.polygon(t,c,p)},n}m(Nw,"hourglass");async function zw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const s=t.assetHeight??48,o=t.assetWidth??48,a=Math.max(s,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,label:u}=await ht(e,t,"icon-shape default"),f=t.pos==="t",d=a,p=a,{nodeBorder:g}=r,{stylesMap:x}=no(t),y=-p/2,C=-d/2,k=t.label?8:0,v=Q.svg(h),S=K(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const _=v.rectangle(y,C,p,d,S),w=Math.max(p,c.width),T=d+c.height+k,z=v.rectangle(-w/2,-T/2,w,T,{...S,fill:"transparent",stroke:"none"}),A=h.insert(()=>_,":first-child"),M=h.insert(()=>z);if(t.icon){const Y=h.append("g");Y.html(`<g>${await Ka(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const H=Y.node().getBBox(),D=H.width,$=H.height,F=H.x,I=H.y;Y.attr("transform",`translate(${-D/2-F},${f?c.height/2+k/2-$/2-I:-c.height/2-k/2-$/2-I})`),Y.attr("style",`color: ${x.get("stroke")??g};`)}return u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${f?-T/2:T/2-c.height})`),A.attr("transform",`translate(0,${f?c.height/2+k/2:-c.height/2-k/2})`),tt(t,M),t.intersect=function(Y){if(q.info("iconSquare intersect",t,Y),!t.label)return G.rect(t,Y);const H=t.x??0,D=t.y??0,$=t.height??0;let F=[];return f?F=[{x:H-c.width/2,y:D-$/2},{x:H+c.width/2,y:D-$/2},{x:H+c.width/2,y:D-$/2+c.height+k},{x:H+p/2,y:D-$/2+c.height+k},{x:H+p/2,y:D+$/2},{x:H-p/2,y:D+$/2},{x:H-p/2,y:D-$/2+c.height+k},{x:H-c.width/2,y:D-$/2+c.height+k}]:F=[{x:H-p/2,y:D-$/2},{x:H+p/2,y:D-$/2},{x:H+p/2,y:D-$/2+d},{x:H+c.width/2,y:D-$/2+d},{x:H+c.width/2/2,y:D+$/2},{x:H-c.width/2,y:D+$/2},{x:H-c.width/2,y:D-$/2+d},{x:H-p/2,y:D-$/2+d}],G.polygon(t,F,Y)},h}m(zw,"icon");async function qw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const s=t.assetHeight??48,o=t.assetWidth??48,a=Math.max(s,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,label:u}=await ht(e,t,"icon-shape default"),f=20,d=t.label?8:0,p=t.pos==="t",{nodeBorder:g,mainBkg:x}=r,{stylesMap:y}=no(t),C=Q.svg(h),k=K(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=y.get("fill");k.stroke=v??x;const S=h.append("g");t.icon&&S.html(`<g>${await Ka(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const _=S.node().getBBox(),w=_.width,T=_.height,z=_.x,A=_.y,M=Math.max(w,T)*Math.SQRT2+f*2,Y=C.circle(0,0,M,k),H=Math.max(M,c.width),D=M+c.height+d,$=C.rectangle(-H/2,-D/2,H,D,{...k,fill:"transparent",stroke:"none"}),F=h.insert(()=>Y,":first-child"),I=h.insert(()=>$);return S.attr("transform",`translate(${-w/2-z},${p?c.height/2+d/2-T/2-A:-c.height/2-d/2-T/2-A})`),S.attr("style",`color: ${y.get("stroke")??g};`),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-D/2:D/2-c.height})`),F.attr("transform",`translate(0,${p?c.height/2+d/2:-c.height/2-d/2})`),tt(t,I),t.intersect=function(B){return q.info("iconSquare intersect",t,B),G.rect(t,B)},h}m(qw,"iconCircle");async function Ww(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const s=t.assetHeight??48,o=t.assetWidth??48,a=Math.max(s,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,halfPadding:u,label:f}=await ht(e,t,"icon-shape default"),d=t.pos==="t",p=a+u*2,g=a+u*2,{nodeBorder:x,mainBkg:y}=r,{stylesMap:C}=no(t),k=-g/2,v=-p/2,S=t.label?8:0,_=Q.svg(h),w=K(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const T=C.get("fill");w.stroke=T??y;const z=_.path(tn(k,v,g,p,5),w),A=Math.max(g,c.width),M=p+c.height+S,Y=_.rectangle(-A/2,-M/2,A,M,{...w,fill:"transparent",stroke:"none"}),H=h.insert(()=>z,":first-child").attr("class","icon-shape2"),D=h.insert(()=>Y);if(t.icon){const $=h.append("g");$.html(`<g>${await Ka(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const F=$.node().getBBox(),I=F.width,B=F.height,R=F.x,N=F.y;$.attr("transform",`translate(${-I/2-R},${d?c.height/2+S/2-B/2-N:-c.height/2-S/2-B/2-N})`),$.attr("style",`color: ${C.get("stroke")??x};`)}return f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${d?-M/2:M/2-c.height})`),H.attr("transform",`translate(0,${d?c.height/2+S/2:-c.height/2-S/2})`),tt(t,D),t.intersect=function($){if(q.info("iconSquare intersect",t,$),!t.label)return G.rect(t,$);const F=t.x??0,I=t.y??0,B=t.height??0;let R=[];return d?R=[{x:F-c.width/2,y:I-B/2},{x:F+c.width/2,y:I-B/2},{x:F+c.width/2,y:I-B/2+c.height+S},{x:F+g/2,y:I-B/2+c.height+S},{x:F+g/2,y:I+B/2},{x:F-g/2,y:I+B/2},{x:F-g/2,y:I-B/2+c.height+S},{x:F-c.width/2,y:I-B/2+c.height+S}]:R=[{x:F-g/2,y:I-B/2},{x:F+g/2,y:I-B/2},{x:F+g/2,y:I-B/2+p},{x:F+c.width/2,y:I-B/2+p},{x:F+c.width/2/2,y:I+B/2},{x:F-c.width/2,y:I+B/2},{x:F-c.width/2,y:I-B/2+p},{x:F-g/2,y:I-B/2+p}],G.polygon(t,R,$)},h}m(Ww,"iconRounded");async function Hw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=J(t);t.labelStyle=n;const s=t.assetHeight??48,o=t.assetWidth??48,a=Math.max(s,o),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(a,l??0);const{shapeSvg:h,bbox:c,halfPadding:u,label:f}=await ht(e,t,"icon-shape default"),d=t.pos==="t",p=a+u*2,g=a+u*2,{nodeBorder:x,mainBkg:y}=r,{stylesMap:C}=no(t),k=-g/2,v=-p/2,S=t.label?8:0,_=Q.svg(h),w=K(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const T=C.get("fill");w.stroke=T??y;const z=_.path(tn(k,v,g,p,.1),w),A=Math.max(g,c.width),M=p+c.height+S,Y=_.rectangle(-A/2,-M/2,A,M,{...w,fill:"transparent",stroke:"none"}),H=h.insert(()=>z,":first-child"),D=h.insert(()=>Y);if(t.icon){const $=h.append("g");$.html(`<g>${await Ka(t.icon,{height:a,width:a,fallbackPrefix:""})}</g>`);const F=$.node().getBBox(),I=F.width,B=F.height,R=F.x,N=F.y;$.attr("transform",`translate(${-I/2-R},${d?c.height/2+S/2-B/2-N:-c.height/2-S/2-B/2-N})`),$.attr("style",`color: ${C.get("stroke")??x};`)}return f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${d?-M/2:M/2-c.height})`),H.attr("transform",`translate(0,${d?c.height/2+S/2:-c.height/2-S/2})`),tt(t,D),t.intersect=function($){if(q.info("iconSquare intersect",t,$),!t.label)return G.rect(t,$);const F=t.x??0,I=t.y??0,B=t.height??0;let R=[];return d?R=[{x:F-c.width/2,y:I-B/2},{x:F+c.width/2,y:I-B/2},{x:F+c.width/2,y:I-B/2+c.height+S},{x:F+g/2,y:I-B/2+c.height+S},{x:F+g/2,y:I+B/2},{x:F-g/2,y:I+B/2},{x:F-g/2,y:I-B/2+c.height+S},{x:F-c.width/2,y:I-B/2+c.height+S}]:R=[{x:F-g/2,y:I-B/2},{x:F+g/2,y:I-B/2},{x:F+g/2,y:I-B/2+p},{x:F+c.width/2,y:I-B/2+p},{x:F+c.width/2/2,y:I+B/2},{x:F-c.width/2,y:I+B/2},{x:F-c.width/2,y:I-B/2+p},{x:F-g/2,y:I-B/2+p}],G.polygon(t,R,$)},h}m(Hw,"iconSquare");async function jw(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const n=Number(i.naturalWidth.toString().replace("px","")),s=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/s;const{labelStyles:o}=J(t);t.labelStyle=o;const a=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?a??0:0,(t==null?void 0:t.assetWidth)??n),h=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,c=t.constraint==="on"?h/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??s;t.width=Math.max(h,a??0);const{shapeSvg:u,bbox:f,label:d}=await ht(e,t,"image-shape default"),p=t.pos==="t",g=-h/2,x=-c/2,y=t.label?8:0,C=Q.svg(u),k=K(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=C.rectangle(g,x,h,c,k),S=Math.max(h,f.width),_=c+f.height+y,w=C.rectangle(-S/2,-_/2,S,_,{...k,fill:"none",stroke:"none"}),T=u.insert(()=>v,":first-child"),z=u.insert(()=>w);if(t.img){const A=u.append("image");A.attr("href",t.img),A.attr("width",h),A.attr("height",c),A.attr("preserveAspectRatio","none"),A.attr("transform",`translate(${-h/2},${p?_/2-c:-_/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-c/2-f.height/2-y/2:c/2-f.height/2+y/2})`),T.attr("transform",`translate(0,${p?f.height/2+y/2:-f.height/2-y/2})`),tt(t,z),t.intersect=function(A){if(q.info("iconSquare intersect",t,A),!t.label)return G.rect(t,A);const M=t.x??0,Y=t.y??0,H=t.height??0;let D=[];return p?D=[{x:M-f.width/2,y:Y-H/2},{x:M+f.width/2,y:Y-H/2},{x:M+f.width/2,y:Y-H/2+f.height+y},{x:M+h/2,y:Y-H/2+f.height+y},{x:M+h/2,y:Y+H/2},{x:M-h/2,y:Y+H/2},{x:M-h/2,y:Y-H/2+f.height+y},{x:M-f.width/2,y:Y-H/2+f.height+y}]:D=[{x:M-h/2,y:Y-H/2},{x:M+h/2,y:Y-H/2},{x:M+h/2,y:Y-H/2+c},{x:M+f.width/2,y:Y-H/2+c},{x:M+f.width/2/2,y:Y+H/2},{x:M-f.width/2,y:Y+H/2},{x:M-f.width/2,y:Y-H/2+c},{x:M-h/2,y:Y-H/2+c}],G.polygon(t,D,A)},u}m(jw,"imageSquare");async function Uw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=n,o=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=Math.max(l.width+(o??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l.height+(s??0)*2,(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Q.svg(a),g=K(t,{}),x=xt(u),y=p.path(x,g);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),d&&f.attr("style",d)}else f=vi(a,h,c,u);return i&&f.attr("style",i),t.width=h,t.height=c,tt(t,f),t.intersect=function(p){return G.polygon(t,u,p)},a}m(Uw,"inv_trapezoid");async function tl(e,t,r){const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i;const{shapeSvg:s,bbox:o}=await ht(e,t,lt(t)),a=Math.max(o.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(o.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),h=-a/2,c=-l/2;let u,{rx:f,ry:d}=t;const{cssStyles:p}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const g=Q.svg(s),x=K(t,{}),y=f||d?g.path(tn(h,c,a,l,f||0),x):g.rectangle(h,c,a,l,x);u=s.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",le(p))}else u=s.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",n).attr("rx",le(f)).attr("ry",le(d)).attr("x",h).attr("y",c).attr("width",a).attr("height",l);return tt(t,u),t.calcIntersect=function(g,x){return G.rect(g,x)},t.intersect=function(g){return G.rect(t,g)},s}m(tl,"drawRect");async function Yw(e,t){const{shapeSvg:r,bbox:i,label:n}=await ht(e,t,"label"),s=r.insert("rect",":first-child");return s.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),n.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),tt(t,s),t.intersect=function(l){return G.rect(t,l)},r}m(Yw,"labelRect");async function Vw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=n,o=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=((t==null?void 0:t.height)??l.height)+s,c=((t==null?void 0:t.width)??l.width)+o,u=[{x:0,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:-(3*h)/6,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Q.svg(a),g=K(t,{}),x=xt(u),y=p.path(x,g);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=vi(a,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,tt(t,f),t.intersect=function(p){return G.polygon(t,u,p)},a}m(Vw,"lean_left");async function Gw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=n,o=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=((t==null?void 0:t.height)??l.height)+s,c=((t==null?void 0:t.width)??l.width)+o,u=[{x:-3*h/6,y:0},{x:c,y:0},{x:c+3*h/6,y:-h},{x:0,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Q.svg(a),g=K(t,{}),x=xt(u),y=p.path(x,g);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=vi(a,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,tt(t,f),t.intersect=function(p){return G.polygon(t,u,p)},a}m(Gw,"lean_right");function Xw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",lt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(35,(t==null?void 0:t.width)??0),a=Math.max(35,(t==null?void 0:t.height)??0),l=7,h=[{x:o,y:0},{x:0,y:a+l/2},{x:o-2*l,y:a+l/2},{x:0,y:2*a},{x:o,y:a-l/2},{x:2*l,y:a-l/2}],c=Q.svg(n),u=K(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const f=xt(h),d=c.path(f,u),p=n.insert(()=>d,":first-child");return p.attr("class","outer-path"),s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${o/2},${-a})`),tt(t,p),t.intersect=function(g){return q.info("lightningBolt intersect",t,g),G.polygon(t,h,g)},n}m(Xw,"lightningBolt");var HP=m((e,t,r,i,n,s,o)=>[`M${e},${t+s}`,`a${n},${s} 0,0,0 ${r},0`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+o}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),jP=m((e,t,r,i,n,s,o)=>[`M${e},${t+s}`,`M${e+r},${t+s}`,`a${n},${s} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${s} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+s+o}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),UP=m((e,t,r,i,n,s)=>[`M${e-r/2},${-i/2}`,`a${n},${s} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Cx=10,kx=10;async function Qw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?24:n;if(t.width||t.height){const y=t.width??0;t.width=(t.width??0)-s,t.width<kx&&(t.width=kx);const k=y/2/(2.5+y/50);t.height=(t.height??0)-o-k*3,t.height<Cx&&(t.height=Cx)}const{shapeSvg:a,bbox:l,label:h}=await ht(e,t,lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+s*2,u=c/2,f=u/(2.5+c/50),d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+f+o*2,p=d*.1;let g;const{cssStyles:x}=t;if(t.look==="handDrawn"){const y=Q.svg(a),C=jP(0,0,c,d,u,f,p),k=UP(0,f,c,d,u,f),v=K(t,{}),S=y.path(C,v),_=y.path(k,v);a.insert(()=>_,":first-child").attr("class","line"),g=a.insert(()=>S,":first-child"),g.attr("class","basic label-container"),x&&g.attr("style",x)}else{const y=HP(0,0,c,d,u,f,p);g=a.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",le(x)).attr("style",i)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-c/2}, ${-(d/2+f)})`),tt(t,g),h.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+f-(l.y-(l.top??0))})`),t.intersect=function(y){const C=G.rect(t,y),k=C.x-(t.x??0);if(u!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(C.y-(t.y??0))>(t.height??0)/2-f)){let v=f*f*(1-k*k/(u*u));v>0&&(v=Math.sqrt(v)),v=f-v,y.y-(t.y??0)>0&&(v=-v),C.y+=v}return C},a}m(Qw,"linedCylinder");async function Zw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;if(t.width||t.height){const v=t.width;t.width=(v??0)*10/11-s*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.height<10&&(t.height=10)}const{shapeSvg:a,bbox:l,label:h}=await ht(e,t,lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(s??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(o??0)*2,f=t.look==="neo"?u/4:u/8,d=u+f,{cssStyles:p}=t,g=Q.svg(a),x=K(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=[{x:-c/2-c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:d/2},...Xi(-c/2-c/2*.1,d/2,c/2+c/2*.1,d/2,f,.8),{x:c/2+c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:-d/2},{x:-c/2,y:-d/2},{x:-c/2,y:d/2*1.1},{x:-c/2,y:-d/2}],C=g.polygon(y.map(v=>[v.x,v.y]),x),k=a.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-c/2+(t.padding??0)+c/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-f/2-(l.y-(l.top??0))})`),tt(t,k),t.intersect=function(v){return G.polygon(t,y,v)},a}m(Zw,"linedWaveEdgedRect");async function Kw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,a=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-2*a,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-2*a,10));const{shapeSvg:l,bbox:h,label:c}=await ht(e,t,lt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+s*2+2*a,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+o*2+2*a,d=u-2*a,p=f-2*a,g=-d/2,x=-p/2,{cssStyles:y}=t,C=Q.svg(l),k=K(t,{}),v=[{x:g-a,y:x+a},{x:g-a,y:x+p+a},{x:g+d-a,y:x+p+a},{x:g+d-a,y:x+p},{x:g+d,y:x+p},{x:g+d,y:x+p-a},{x:g+d+a,y:x+p-a},{x:g+d+a,y:x-a},{x:g+a,y:x-a},{x:g+a,y:x},{x:g,y:x},{x:g,y:x+a}],S=[{x:g,y:x+a},{x:g+d-a,y:x+a},{x:g+d-a,y:x+p},{x:g+d,y:x+p},{x:g+d,y:x},{x:g,y:x}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const _=xt(v);let w=C.path(_,k);const T=xt(S);let z=C.path(T,k);t.look!=="handDrawn"&&(w=Xf(w),z=Xf(z));const A=l.insert("g",":first-child");return A.insert(()=>w),A.insert(()=>z),A.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(h.width/2)-a-(h.x-(h.left??0))}, ${-(h.height/2)+a-(h.y-(h.top??0))})`),tt(t,A),t.intersect=function(M){return G.polygon(t,v,M)},l}m(Kw,"multiRect");async function Jw(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await ht(e,t,lt(t)),a=t.padding??0,l=t.look==="neo"?16:a,h=t.look==="neo"?12:a;let c=!0;(t.width||t.height)&&(c=!1,t.width=((t==null?void 0:t.width)??0)-l*2,t.height=((t==null?void 0:t.height)??0)-h*3);const u=Math.max(s.width,(t==null?void 0:t.width)??0)+l*2,f=Math.max(s.height,(t==null?void 0:t.height)??0)+h*3,d=t.look==="neo"?f/4:f/8,p=f+(c?d/2:-d/2),g=-u/2,x=-p/2,y=10,{cssStyles:C}=t,k=Xi(g-y,x+p+y,g+u-y,x+p+y,d,.8),v=k==null?void 0:k[k.length-1],S=[{x:g-y,y:x+y},{x:g-y,y:x+p+y},...k,{x:g+u-y,y:v.y-y},{x:g+u,y:v.y-y},{x:g+u,y:v.y-2*y},{x:g+u+y,y:v.y-2*y},{x:g+u+y,y:x-y},{x:g+y,y:x-y},{x:g+y,y:x},{x:g,y:x},{x:g,y:x+y}],_=[{x:g,y:x+y},{x:g+u-y,y:x+y},{x:g+u-y,y:v.y-y},{x:g+u,y:v.y-y},{x:g+u,y:x},{x:g,y:x}],w=Q.svg(n),T=K(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const z=xt(S),A=w.path(z,T),M=xt(_),Y=w.path(M,T),H=n.insert(()=>A,":first-child");return H.insert(()=>Y),H.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&H.selectAll("path").attr("style",i),H.attr("transform",`translate(0,${-d/2})`),o.attr("transform",`translate(${-(s.width/2)-y-(s.x-(s.left??0))}, ${-(s.height/2)+y-d/2-(s.y-(s.top??0))})`),tt(t,H),t.intersect=function(D){return G.polygon(t,S,D)},n}m(Jw,"multiWaveEdgedRectangle");async function tS(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i,t.useHtmlLabels||$e(qt())||(t.centerLabel=!0);const{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-h/2,f=-c/2,{cssStyles:d}=t,p=Q.svg(o),g=K(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=p.rectangle(u,f,h,c,g),y=o.insert(()=>x,":first-child");return y.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),d&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",d),n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),tt(t,y),t.intersect=function(C){return G.rect(t,C)},o}m(tS,"note");var YP=m((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function eS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s}=await ht(e,t,lt(t)),o=s.width+(t.padding??0),a=s.height+(t.padding??0),l=o+a,h=.5,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=Q.svg(n),p=K(t,{}),g=YP(0,0,l),x=d.path(g,p);u=n.insert(()=>x,":first-child").attr("transform",`translate(${-l/2+h}, ${l/2})`),f&&u.attr("style",f)}else u=vi(n,l,l,c),u.attr("transform",`translate(${-l/2+h}, ${l/2})`);return i&&u.attr("style",i),tt(t,u),t.calcIntersect=function(d,p){const g=d.width,x=[{x:g/2,y:0},{x:g,y:-g/2},{x:g/2,y:-g},{x:0,y:-g/2}],y=G.polygon(d,x,p);return{x:y.x-.5,y:y.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}m(eS,"question");async function rS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?21:n??0,o=t.look==="neo"?12:n??0,{shapeSvg:a,bbox:l,label:h}=await ht(e,t,lt(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?s*2:s),u=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?o*2:o),f=-c/2,d=-u/2,p=d/2,g=[{x:f+p,y:d},{x:f,y:0},{x:f+p,y:-d},{x:-f,y:-d},{x:-f,y:d}],{cssStyles:x}=t,y=Q.svg(a),C=K(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=xt(g),v=y.path(k,C),S=a.insert(()=>v,":first-child");return S.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),S.attr("transform",`translate(${-p/2},0)`),h.attr("transform",`translate(${-p/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),tt(t,S),t.intersect=function(_){return G.polygon(t,g,_)},a}m(rS,"rect_left_inv_arrow");async function iS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const s=e.insert("g").attr("class",n).attr("id",t.domId||t.id),o=s.insert("g"),a=s.insert("g").attr("class","label").attr("style",i),l=t.description,h=t.label,c=await Mi(a,h,t.labelStyle,!0,!0);let u={width:0,height:0};if($e(wt())){const T=c.children[0],z=mt(c);u=T.getBoundingClientRect(),z.attr("width",u.width),z.attr("height",u.height)}q.info("Text 2",l);const f=l||[],d=c.getBBox(),p=await Mi(a,Array.isArray(f)?f.join("<br/>"):f,t.labelStyle,!0,!0),g=p.children[0],x=mt(p);u=g.getBoundingClientRect(),x.attr("width",u.width),x.attr("height",u.height);const y=(t.padding||0)/2;mt(p).attr("transform","translate( "+(u.width>d.width?0:(d.width-u.width)/2)+", "+(d.height+y+5)+")"),mt(c).attr("transform","translate( "+(u.width<d.width?0:-(d.width-u.width)/2)+", 0)"),u=a.node().getBBox(),a.attr("transform","translate("+-u.width/2+", "+(-u.height/2-y+3)+")");const C=u.width+(t.padding||0),k=u.height+(t.padding||0),v=-u.width/2-y,S=-u.height/2-y;let _,w;if(t.look==="handDrawn"){const T=Q.svg(s),z=K(t,{}),A=T.path(tn(v,S,C,k,t.rx||0),z),M=T.line(-u.width/2-y,-u.height/2-y+d.height+y,u.width/2+y,-u.height/2-y+d.height+y,z);w=s.insert(()=>(q.debug("Rough node insert CXC",A),M),":first-child"),_=s.insert(()=>(q.debug("Rough node insert CXC",A),A),":first-child")}else _=o.insert("rect",":first-child"),w=o.insert("line"),_.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-y).attr("y",-u.height/2-y).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),w.attr("class","divider").attr("x1",-u.width/2-y).attr("x2",u.width/2+y).attr("y1",-u.height/2-y+d.height+y).attr("y2",-u.height/2-y+d.height+y);return tt(t,_),t.intersect=function(T){return G.rect(t,T)},s}m(iS,"rectWithTitle");async function nS(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,n={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return tl(e,t,n)}m(nS,"roundedRect");var nn=8;async function sS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0,{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=((t==null?void 0:t.width)??a.width)+n*2+(t.look==="neo"?nn:nn*2),c=((t==null?void 0:t.height)??a.height)+s*2,u=h-nn,f=c,d=nn-h/2,p=-c/2,{cssStyles:g}=t,x=Q.svg(o),y=K(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:d,y:p},{x:d+u,y:p},{x:d+u,y:p+f},{x:d-nn,y:p+f},{x:d-nn,y:p},{x:d,y:p},{x:d,y:p+f}],k=x.polygon(C.map(S=>[S.x,S.y]),y),v=o.insert(()=>k,":first-child");return v.attr("class","basic label-container outer-path").attr("style",le(g)),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),g&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${nn/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),tt(t,v),t.intersect=function(S){return G.rect(t,S)},o}m(sS,"shadedProcess");async function oS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-o*2,10));const{shapeSvg:a,bbox:l,label:h}=await ht(e,t,lt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+s*2,u=((t!=null&&t.height?t==null?void 0:t.height:l.height)+o*2)*1.5,f=c,d=u/1.5,p=-f/2,g=-d/2,{cssStyles:x}=t,y=Q.svg(a),C=K(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:p,y:g},{x:p,y:g+d},{x:p+f,y:g+d},{x:p+f,y:g-d/2}],v=xt(k),S=y.path(v,C),_=a.insert(()=>S,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",x),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),_.attr("transform",`translate(0, ${d/4})`),h.attr("transform",`translate(${-f/2+(t.padding??0)-(l.x-(l.left??0))}, ${-d/4+(t.padding??0)-(l.y-(l.top??0))})`),tt(t,_),t.intersect=function(w){return G.polygon(t,k,w)},a}m(oS,"slopedRect");async function aS(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,s={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return tl(e,t,s)}m(aS,"squareRect");async function lS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?20:n,o=t.look==="neo"?12:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=l.height+(t.look==="neo"?o*2:o),c=l.width+h/4+(t.look==="neo"?s*2:s),u=h/2,{cssStyles:f}=t,d=Q.svg(a),p=K(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:-c/2+u,y:-h/2},{x:c/2-u,y:-h/2},...Pa(-c/2+u,0,u,50,90,270),{x:c/2-u,y:h/2},...Pa(c/2-u,0,u,50,270,450)],x=xt(g),y=d.path(x,p),C=a.insert(()=>y,":first-child");return C.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),tt(t,C),t.intersect=function(k){return G.polygon(t,g,k)},a}m(lS,"stadium");async function hS(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return tl(e,t,r)}m(hS,"state");function cS(e,t,{config:{themeVariables:r}}){var C,k;const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i;const{cssStyles:s}=t,{lineColor:o,stateBorder:a,nodeBorder:l,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const c=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=Q.svg(c),f=K(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=u.circle(0,0,t.width,{...f,stroke:o,strokeWidth:2}),p=a??l,g=(t.width??0)*5/14,x=u.circle(0,0,g,{...f,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>d,":first-child");if(y.insert(()=>x),t.look!=="handDrawn"&&y.attr("class","outer-path"),s&&y.selectAll("path").attr("style",s),n&&y.selectAll("path").attr("style",n),t.width<25&&h&&t.look!=="handDrawn"){const v=((k=(C=e.node())==null?void 0:C.ownerSVGElement)==null?void 0:k.id)??"",S=v?`${v}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${S})`)}return tt(t,y),t.intersect=function(v){return G.circle(t,(t.width??0)/2,v)},c}m(cS,"stateEnd");function uS(e,t,{config:{themeVariables:r}}){var a,l;const{lineColor:i,nodeShadow:n}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if(t.look==="handDrawn"){const c=Q.svg(s).circle(0,0,t.width,eI(i));o=s.insert(()=>c),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else o=s.insert("circle",":first-child"),o.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&n&&t.look!=="handDrawn"){const h=((l=(a=e.node())==null?void 0:a.ownerSVGElement)==null?void 0:l.id)??"",c=h?`${h}-drop-shadow-small`:"drop-shadow-small";o.attr("style",`filter:url(#${c})`)}return tt(t,o),t.intersect=function(h){return G.circle(t,(t.width??7)/2,h)},s}m(uS,"stateStart");var Qn=8;async function dS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,s=t.look==="neo"?28:n,o=t.look==="neo"?12:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=((t==null?void 0:t.width)??l.width)+2*Qn+s,c=((t==null?void 0:t.height)??l.height)+o,u=h-2*Qn,f=c,d=-h/2,p=-c/2,g=[{x:0,y:0},{x:u,y:0},{x:u,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:u+8,y:0},{x:u+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(t.look==="handDrawn"){const x=Q.svg(a),y=K(t,{}),C=x.rectangle(d,p,u+16,f,y),k=x.line(d+Qn,p,d+Qn,p+f,y),v=x.line(d+Qn+u,p,d+Qn+u,p+f,y);a.insert(()=>k,":first-child"),a.insert(()=>v,":first-child");const S=a.insert(()=>C,":first-child"),{cssStyles:_}=t;S.attr("class","basic label-container").attr("style",le(_)),tt(t,S)}else{const x=vi(a,u,f,g);i&&x.attr("style",i),tt(t,x)}return t.intersect=function(x){return G.polygon(t,g,x)},a}m(dS,"subroutine");var ad=.2;async function fS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-o*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-ad*(t.height+o*2),10));const{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+o*2,c=ad*h,u=ad*h,d=(t!=null&&t.width?t==null?void 0:t.width:l.width)+s*2+c-c,p=h,g=-d/2,x=-p/2,{cssStyles:y}=t,C=Q.svg(a),k=K(t,{}),v=[{x:g-c/2,y:x},{x:g+d+c/2,y:x},{x:g+d+c/2,y:x+p},{x:g-c/2,y:x+p}],S=[{x:g+d-c/2,y:x+p},{x:g+d+c/2,y:x+p},{x:g+d+c/2,y:x+p-u}];t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const _=xt(v),w=C.path(_,k),T=xt(S),z=C.path(T,{...k,fillStyle:"solid"}),A=a.insert(()=>z,":first-child");return A.insert(()=>w,":first-child"),A.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),tt(t,A),t.intersect=function(M){return G.polygon(t,v,M)},a}m(fS,"taggedRect");async function pS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,label:o}=await ht(e,t,lt(t)),a=Math.max(s.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(s.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=l/8,c=.2*a,u=.2*l,f=l+h,{cssStyles:d}=t,p=Q.svg(n),g=K(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=[{x:-a/2-a/2*.1,y:f/2},...Xi(-a/2-a/2*.1,f/2,a/2+a/2*.1,f/2,h,.8),{x:a/2+a/2*.1,y:-f/2},{x:-a/2-a/2*.1,y:-f/2}],y=-a/2+a/2*.1,C=-f/2-u*.4,k=[{x:y+a-c,y:(C+l)*1.3},{x:y+a,y:C+l-u},{x:y+a,y:(C+l)*.9},...Xi(y+a,(C+l)*1.25,y+a-c,(C+l)*1.3,-l*.02,.5)],v=xt(x),S=p.path(v,g),_=xt(k),w=p.path(_,{...g,fillStyle:"solid"}),T=n.insert(()=>w,":first-child");return T.insert(()=>S,":first-child"),T.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-h/2})`),o.attr("transform",`translate(${-a/2+(t.padding??0)-(s.x-(s.left??0))},${-l/2+(t.padding??0)-h/2-(s.y-(s.top??0))})`),tt(t,T),t.intersect=function(z){return G.polygon(t,x,z)},n}m(pS,"taggedWaveEdgedRectangle");async function gS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s}=await ht(e,t,lt(t)),o=Math.max(s.width+(t.padding??0),(t==null?void 0:t.width)||0),a=Math.max(s.height+(t.padding??0),(t==null?void 0:t.height)||0),l=-o/2,h=-a/2,c=n.insert("rect",":first-child");return c.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",h).attr("width",o).attr("height",a),tt(t,c),t.intersect=function(u){return G.rect(t,u)},n}m(gS,"text");var VP=m((e,t,r,i,n,s)=>`M${e},${t}
|
|
285
|
+
a${n},${s} 0,0,1 0,${-i}
|
|
286
|
+
l${r},0
|
|
287
|
+
a${n},${s} 0,0,1 0,${i}
|
|
288
|
+
M${r},${-i}
|
|
289
|
+
a${n},${s} 0,0,0 0,${i}
|
|
290
|
+
l${-r},0`,"createCylinderPathD"),GP=m((e,t,r,i,n,s)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${s} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${s} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),XP=m((e,t,r,i,n,s)=>[`M${e+r/2},${-i/2}`,`a${n},${s} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),bx=5,vx=10;async function mS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?12:n/2;if(t.width||t.height){const g=t.height??0;t.height=(t.height??0)-s,t.height<bx&&(t.height=bx);const y=g/2/(2.5+g/50);t.width=(t.width??0)-s-y*3,t.width<vx&&(t.width=vx)}const{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=(t.height?t.height:a.height)+s,c=h/2,u=c/(2.5+h/50),f=(t.width?t.width:a.width)+u+s,{cssStyles:d}=t;let p;if(t.look==="handDrawn"){const g=Q.svg(o),x=GP(0,0,f,h,u,c),y=XP(0,0,f,h,u,c),C=g.path(x,K(t,{})),k=g.path(y,K(t,{fill:"none"}));p=o.insert(()=>k,":first-child"),p=o.insert(()=>C,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{const g=VP(0,0,f,h,u,c);p=o.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",le(d)).attr("style",i),p.attr("class","basic label-container outer-path"),d&&p.selectAll("path").attr("style",d),i&&p.selectAll("path").attr("style",i)}return p.attr("label-offset-x",u),p.attr("transform",`translate(${-f/2}, ${h/2} )`),l.attr("transform",`translate(${-(a.width/2)-u-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),tt(t,p),t.intersect=function(g){const x=G.rect(t,g),y=x.y-(t.y??0);if(c!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-u)){let C=u*u*(1-y*y/(c*c));C!=0&&(C=Math.sqrt(Math.abs(C))),C=u-C,g.x-(t.x??0)>0&&(C=-C),x.x+=C}return x},o}m(mS,"tiltedCylinder");async function yS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=(t.look==="neo",n),o=t.look==="neo"?n*2:n,{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=((t==null?void 0:t.height)??l.height)+s,c=((t==null?void 0:t.width)??l.width)+o,u=[{x:-3*h/6,y:0},{x:c+3*h/6,y:0},{x:c,y:-h},{x:0,y:-h}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Q.svg(a),g=K(t,{}),x=xt(u),y=p.path(x,g);f=a.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),d&&f.attr("style",d)}else f=vi(a,c,h,u);return i&&f.attr("style",i),t.width=c,t.height=h,tt(t,f),t.intersect=function(p){return G.polygon(t,u,p)},a}m(yS,"trapezoid");async function xS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n,a=15,l=5;(t.width||t.height)&&(t.height=(t.height??0)-o*2,t.height<l&&(t.height=l),t.width=(t.width??0)-s*2,t.width<a&&(t.width=a));const{shapeSvg:h,bbox:c}=await ht(e,t,lt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+s*2,f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+o*2,{cssStyles:d}=t,p=Q.svg(h),g=K(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=[{x:-u/2*.8,y:-f/2},{x:u/2*.8,y:-f/2},{x:u/2,y:-f/2*.6},{x:u/2,y:f/2},{x:-u/2,y:f/2},{x:-u/2,y:-f/2*.6}],y=xt(x),C=p.path(y,g),k=h.insert(()=>C,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),tt(t,k),t.intersect=function(v){return G.polygon(t,x,v)},h}m(xS,"trapezoidalPentagon");var wx=10,Sx=10;async function CS(e,t){var v;const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-s)/2,t.width<Sx&&(t.width=Sx),t.height=(t==null?void 0:t.height)??0,t.height<wx&&(t.height=wx));const{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=Ci((v=wt().flowchart)==null?void 0:v.htmlLabels),c=(t!=null&&t.width?t==null?void 0:t.width:a.width)+s,u=t!=null&&t.height?t==null?void 0:t.height:c+a.height,f=u,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-u}],{cssStyles:p}=t,g=Q.svg(o),x=K(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=xt(d),C=g.path(y,x),k=o.insert(()=>C,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return p&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=u,tt(t,k),l.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${u/2-(a.height+(t.padding??0)/(h?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(S){return q.info("Triangle intersect",t,d,S),G.polygon(t,d,S)},o}m(CS,"triangle");async function kS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?12:n;let a=!0;(t.width||t.height)&&(a=!1,t.width=((t==null?void 0:t.width)??0)-s*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-o*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:h,label:c}=await ht(e,t,lt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(s??0)*2,f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(o??0)*2,d=t.look==="neo"?f/4:f/8,p=f+(a?d:-d),{cssStyles:g}=t,y=14-u,C=y>0?y/2:0,k=Q.svg(l),v=K(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const S=[{x:-u/2-C,y:p/2},...Xi(-u/2-C,p/2,u/2+C,p/2,d,.8),{x:u/2+C,y:-p/2},{x:-u/2-C,y:-p/2}],_=xt(S),w=k.path(_,v),T=l.insert(()=>w,":first-child");return T.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-u/2+(t.padding??0)-(h.x-(h.left??0))},${-f/2+(t.padding??0)-d-(h.y-(h.top??0))})`),tt(t,T),t.intersect=function(z){return G.polygon(t,S,z)},l}m(kS,"waveEdgedRectangle");async function bS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.padding??0,s=t.look==="neo"?16:n,o=t.look==="neo"?20:n;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const v=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-o-v*(20/9)),t.width=t.width-s*2}const{shapeSvg:a,bbox:l}=await ht(e,t,lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+s*2,c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+o,u=c/8,f=c+u*2,{cssStyles:d}=t,p=Q.svg(a),g=K(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=[{x:-h/2,y:f/2},...Xi(-h/2,f/2,h/2,f/2,u,1),{x:h/2,y:-f/2},...Xi(h/2,-f/2,-h/2,-f/2,u,-1)],y=xt(x),C=p.path(y,g),k=a.insert(()=>C,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),tt(t,k),t.intersect=function(v){return G.polygon(t,x,v)},a}m(bS,"waveRectangle");var Ht=10;async function vS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,s=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-Ht,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-Ht,10));const{shapeSvg:o,bbox:a,label:l}=await ht(e,t,lt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:a.width)+n*2+Ht,c=(t!=null&&t.height?t==null?void 0:t.height:a.height)+s*2+Ht,u=h-Ht,f=c-Ht,d=-u/2,p=-f/2,{cssStyles:g}=t,x=Q.svg(o),y=K(t,{}),C=[{x:d-Ht,y:p-Ht},{x:d-Ht,y:p+f},{x:d+u,y:p+f},{x:d+u,y:p-Ht}],k=`M${d-Ht},${p-Ht} L${d+u},${p-Ht} L${d+u},${p+f} L${d-Ht},${p+f} L${d-Ht},${p-Ht}
|
|
291
|
+
M${d-Ht},${p} L${d+u},${p}
|
|
292
|
+
M${d},${p-Ht} L${d},${p+f}`;t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const v=x.path(k,y),S=o.insert(()=>v,":first-child");return S.attr("transform",`translate(${Ht/2}, ${Ht/2})`),S.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(a.width/2)+Ht/2-(a.x-(a.left??0))}, ${-(a.height/2)+Ht/2-(a.y-(a.top??0))})`),tt(t,S),t.intersect=function(_){return G.polygon(t,C,_)},o}m(vS,"windowPane");var Tx=new Set(["redux-color","redux-dark-color"]),QP=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function sm(e,t){var Ct,$t,Kt,Ve;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=qt(),{rowEven:s,rowOdd:o,nodeBorder:a,borderColorArray:l}=n;if(t.look==="handDrawn"){const{themeVariables:et}=qt(),{background:ft}=et,Et={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${ft}`]};await sm(e,Et)}const h=qt();t.useHtmlLabels=h.htmlLabels;let c=((Ct=h.er)==null?void 0:Ct.diagramPadding)??10,u=(($t=h.er)==null?void 0:$t.entityPadding)??6;const{cssStyles:f}=t,{labelStyles:d,nodeStyles:p}=J(t);if(r.attributes.length===0&&t.label){const et={rx:0,ry:0,labelPaddingX:c,labelPaddingY:c*1.5};yi(t.label,h)+et.labelPaddingX*2<h.er.minEntityWidth&&(t.width=h.er.minEntityWidth);const ft=await tl(e,t,et);if(i!=null&&Tx.has(i)){const Et=r.colorIndex??0;ft.attr("data-color-id",`color-${Et%l.length}`)}if(!Ci(h.htmlLabels)){const Et=ft.select("text"),Ft=(Kt=Et.node())==null?void 0:Kt.getBBox();Et.attr("transform",`translate(${-Ft.width/2}, 0)`)}return ft}h.htmlLabels||(c*=1.25,u*=1.25);let g=lt(t);g||(g="node default");const x=e.insert("g").attr("class",g).attr("id",t.domId||t.id),y=await ts(x,t.label??"",h,0,0,["name"],d);y.height+=u;let C=0;const k=[],v=[];let S=0,_=0,w=0,T=0,z=!0,A=!0;for(const et of r.attributes){const ft=await ts(x,et.type,h,0,C,["attribute-type"],d);S=Math.max(S,ft.width+c);const Et=await ts(x,et.name,h,0,C,["attribute-name"],d);_=Math.max(_,Et.width+c);const Ft=await ts(x,et.keys.join(),h,0,C,["attribute-keys"],d);w=Math.max(w,Ft.width+c);const Ge=await ts(x,et.comment,h,0,C,["attribute-comment"],d);T=Math.max(T,Ge.width+c);const ge=Math.max(ft.height,Et.height,Ft.height,Ge.height)+u;v.push({yOffset:C,rowHeight:ge}),C+=ge}let M=4;w<=c&&(z=!1,w=0,M--),T<=c&&(A=!1,T=0,M--);const Y=x.node().getBBox();if(y.width+c*2-(S+_+w+T)>0){const et=y.width+c*2-(S+_+w+T);S+=et/M,_+=et/M,w>0&&(w+=et/M),T>0&&(T+=et/M)}const H=S+_+w+T,D=Q.svg(x),$=K(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let F=0;v.length>0&&(F=v.reduce((et,ft)=>et+((ft==null?void 0:ft.rowHeight)??0),0));const I=Math.max(Y.width+c*2,(t==null?void 0:t.width)||0,H),B=Math.max((F??0)+y.height,(t==null?void 0:t.height)||0),R=-I/2,N=-B/2;if(x.selectAll("g:not(:first-child)").each((et,ft,Et)=>{const Ft=mt(Et[ft]),Ge=Ft.attr("transform");let ge=0,Wn=0;if(Ge){const $r=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ge);$r&&(ge=parseFloat($r[1]),Wn=parseFloat($r[2]),Ft.attr("class").includes("attribute-name")?ge+=S:Ft.attr("class").includes("attribute-keys")?ge+=S+_:Ft.attr("class").includes("attribute-comment")&&(ge+=S+_+w))}Ft.attr("transform",`translate(${R+c/2+ge}, ${Wn+N+y.height+u/2})`)}),x.select(".name").attr("transform","translate("+-y.width/2+", "+(N+u/2)+")"),i!=null&&Tx.has(i)){const et=r.colorIndex??0;x.attr("data-color-id",`color-${et%l.length}`)}const V=D.rectangle(R,N,I,B,$),rt=x.insert(()=>V,":first-child").attr("class","outer-path").attr("style",f.join(""));k.push(0);for(const[et,ft]of v.entries()){const Ft=(et+1)%2===0&&ft.yOffset!==0,Ge=D.rectangle(R,y.height+N+(ft==null?void 0:ft.yOffset),I,ft==null?void 0:ft.rowHeight,{...$,fill:Ft?s:o,stroke:a});x.insert(()=>Ge,"g.label").attr("style",f.join("")).attr("class",`row-rect-${Ft?"even":"odd"}`)}const st=1e-4;let pt=es(R,y.height+N,I+R,y.height+N,st),nt=D.polygon(pt.map(et=>[et.x,et.y]),$);if(x.insert(()=>nt).attr("class","divider"),pt=es(S+R,y.height+N,S+R,B+N,st),nt=D.polygon(pt.map(et=>[et.x,et.y]),$),x.insert(()=>nt).attr("class","divider"),z){const et=S+_+R;pt=es(et,y.height+N,et,B+N,st),nt=D.polygon(pt.map(ft=>[ft.x,ft.y]),$),x.insert(()=>nt).attr("class","divider")}if(A){const et=S+_+w+R;pt=es(et,y.height+N,et,B+N,st),nt=D.polygon(pt.map(ft=>[ft.x,ft.y]),$),x.insert(()=>nt).attr("class","divider")}for(const et of k){const ft=y.height+N+et;pt=es(R,ft,I+R,ft,st),nt=D.polygon(pt.map(Et=>[Et.x,Et.y]),$),x.insert(()=>nt).attr("class","divider")}if(tt(t,rt),p&&t.look!=="handDrawn")if(i!=null&&QP.has(i))x.selectAll("path").attr("style",p);else{const et=p.split(";"),ft=(Ve=et==null?void 0:et.filter(Et=>Et.includes("stroke")))==null?void 0:Ve.map(Et=>`${Et}`).join("; ");x.selectAll("path").attr("style",ft??""),x.selectAll(".row-rect-even path").attr("style",p)}return t.intersect=function(et){return G.rect(t,et)},x}m(sm,"erBox");async function ts(e,t,r,i=0,n=0,s=[],o=""){const a=e.insert("g").attr("class",`label ${s.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",o);t!==o0(t)&&(t=o0(t),t=t.replaceAll("<","<").replaceAll(">",">"));const l=a.node().appendChild(await bi(a,t,{width:yi(t,r)+100,style:o,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let c=l.children[0];for(c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">");c.childNodes[0];)c=c.childNodes[0],c.textContent=c.textContent.replaceAll("<","<").replaceAll(">",">")}let h=l.getBBox();if(Ci(r.htmlLabels)){const c=l.children[0];c.style.textAlign="start";const u=mt(l);h=c.getBoundingClientRect(),u.attr("width",h.width),u.attr("height",h.height)}return h}m(ts,"addText");function es(e,t,r,i,n){return e===r?[{x:e-n/2,y:t},{x:e+n/2,y:t},{x:r+n/2,y:i},{x:r-n/2,y:i}]:[{x:e,y:t-n/2},{x:e,y:t+n/2},{x:r,y:i+n/2},{x:r,y:i-n/2}]}m(es,"lineToPolygon");async function wS(e,t,r,i,n=r.class.padding??12){const s=i?0:3,o=e.insert("g").attr("class",lt(t)).attr("id",t.domId||t.id);let a=null,l=null,h=null,c=null,u=0,f=0,d=0;if(a=o.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const C=t.annotations[0];await Ho(a,{text:`«${C}»`},0),u=a.node().getBBox().height}l=o.insert("g").attr("class","label-group text"),await Ho(l,t,0,["font-weight: bolder"]);const p=l.node().getBBox();f=p.height,h=o.insert("g").attr("class","members-group text");let g=0;for(const C of t.members){const k=await Ho(h,C,g,[C.parseClassifier()]);g+=k+s}d=h.node().getBBox().height,d<=0&&(d=n/2),c=o.insert("g").attr("class","methods-group text");let x=0;for(const C of t.methods){const k=await Ho(c,C,x,[C.parseClassifier()]);x+=k+s}let y=o.node().getBBox();if(a!==null){const C=a.node().getBBox();a.attr("transform",`translate(${-C.width/2})`)}return l.attr("transform",`translate(${-p.width/2}, ${u})`),y=o.node().getBBox(),h.attr("transform",`translate(0, ${u+f+n*2})`),y=o.node().getBBox(),c.attr("transform",`translate(0, ${u+f+(d?d+n*4:n*2)})`),y=o.node().getBBox(),{shapeSvg:o,bbox:y}}m(wS,"textHelper");async function Ho(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),s=qt();let o="useHtmlLabels"in t?t.useHtmlLabels:Ci(s.htmlLabels)??!0,a="";"text"in t?a=t.text:a=t.label,!o&&a.startsWith("\\")&&(a=a.substring(1)),Ta(a)&&(o=!0);const l=await bi(n,pg(An(a)),{width:yi(a,s)+50,classes:"markdown-node-label",useHtmlLabels:o},s);let h,c=1;if(o){const u=l.children[0],f=mt(l);c=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(c+=u.innerHTML.split("<mrow>").length-1);const d=u.getElementsByTagName("img");if(d){const p=a.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(g=>new Promise(x=>{function y(){var C;if(g.style.display="flex",g.style.flexDirection="column",p){const k=((C=s.fontSize)==null?void 0:C.toString())??window.getComputedStyle(document.body).fontSize,S=parseInt(k,10)*5+"px";g.style.minWidth=S,g.style.maxWidth=S}else g.style.width="100%";x(g)}m(y,"setupImage"),setTimeout(()=>{g.complete&&y()}),g.addEventListener("error",y),g.addEventListener("load",y)})))}h=u.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}else{i.includes("font-weight: bolder")&&mt(l).selectAll("tspan").attr("font-weight",""),c=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(u.textContent=a[0]+a.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),a[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),h=l.getBBox()}return n.attr("transform","translate(0,"+(-h.height/(2*c)+r)+")"),h.height}m(Ho,"addText");async function SS(e,t){var D,$;const r=wt(),{themeVariables:i}=r,{useGradient:n}=i,s=r.class.padding??12,o=s,a=t.useHtmlLabels??Ci(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:h,bbox:c}=await wS(e,t,r,a,o),{labelStyles:u,nodeStyles:f}=J(t);t.labelStyle=u,t.cssStyles=l.styles||"";const d=((D=l.styles)==null?void 0:D.join(";"))||f||"";t.cssStyles||(t.cssStyles=d.replaceAll("!important","").split(";"));const p=l.members.length===0&&l.methods.length===0&&!(($=r.class)!=null&&$.hideEmptyMembersBox),g=Q.svg(h),x=K(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const y=Math.max(t.width??0,c.width);let C=Math.max(t.height??0,c.height);const k=(t.height??0)>c.height;l.members.length===0&&l.methods.length===0?C+=o:l.members.length>0&&l.methods.length===0&&(C+=o*2);const v=-y/2,S=-C/2;let _=p?s*2:l.members.length===0&&l.methods.length===0?-s:0;k&&(_=s*2);const w=g.rectangle(v-s,S-s-(p?s:l.members.length===0&&l.methods.length===0?-s/2:0),y+2*s,C+2*s+_,x),T=h.insert(()=>w,":first-child");T.attr("class","basic label-container outer-path");const z=T.node().getBBox(),A=h.select(".annotation-group").node().getBBox().height-(p?s/2:0)||0,M=h.select(".label-group").node().getBBox().height-(p?s/2:0)||0,Y=h.select(".members-group").node().getBBox().height-(p?s/2:0)||0,H=(A+M+S+s-(S-s-(p?s:l.members.length===0&&l.methods.length===0?-s/2:0)))/2;if(h.selectAll(".text").each((F,I,B)=>{var pt,nt;const R=mt(B[I]),N=R.attr("transform");let V=0;if(N){const $t=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(N);$t&&(V=parseFloat($t[2]))}let rt=V+S+s-(p?s:l.members.length===0&&l.methods.length===0?-s/2:0);if(R.attr("class").includes("methods-group")){const Ct=Math.max(Y,o/2);k?rt=Math.max(H,A+M+Ct+S+o*2+s)+o*2:rt=A+M+Ct+S+o*4+s}l.members.length===0&&l.methods.length===0&&((pt=r.class)!=null&&pt.hideEmptyMembersBox)&&(l.annotations.length>0?rt=V-o:rt=V),a||(rt-=4);let st=v;(R.attr("class").includes("label-group")||R.attr("class").includes("annotation-group"))&&(st=-((nt=R.node())==null?void 0:nt.getBBox().width)/2||0,h.selectAll("text").each(function(Ct,$t,Kt){window.getComputedStyle(Kt[$t]).textAnchor==="middle"&&(st=0)})),R.attr("transform",`translate(${st}, ${rt})`)}),l.members.length>0||l.methods.length>0||p){const F=A+M+S+s,I=g.line(z.x,F,z.x+z.width,F+.001,x);h.insert(()=>I).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(p||l.members.length>0||l.methods.length>0){const F=A+M+Y+S+o*2+s,I=g.line(z.x,k?Math.max(H,F):F,z.x+z.width,(k?Math.max(H,F):F)+.001,x);h.insert(()=>I).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(l.look!=="handDrawn"&&h.selectAll("path").attr("style",d),T.select(":nth-child(2)").attr("style",d),h.selectAll(".divider").select("path").attr("style",d),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",d),!a){const F=RegExp(/color\s*:\s*([^;]*)/),I=F.exec(d);if(I){const B=I[0].replace("color","fill");h.selectAll("tspan").attr("style",B)}else if(u){const B=F.exec(u);if(B){const R=B[0].replace("color","fill");h.selectAll("tspan").attr("style",R)}}}return tt(t,T),t.intersect=function(F){return G.rect(t,F)},h}m(SS,"classBox");async function TS(e,t){var z,A;const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const n=t,s=t,o=20,a=20,l="verifyMethod"in t,h=lt(t),{themeVariables:c}=wt(),{borderColorArray:u,requirementEdgeLabelBackground:f}=c,d=e.insert("g").attr("class",h).attr("id",t.domId??t.id);let p;l?p=await Rr(d,`<<${n.type}>>`,0,t.labelStyle):p=await Rr(d,"<<Element>>",0,t.labelStyle);let g=p;const x=await Rr(d,n.name,g,t.labelStyle+"; font-weight: bold;");if(g+=x+a,l){const M=await Rr(d,`${n.requirementId?`ID: ${n.requirementId}`:""}`,g,t.labelStyle);g+=M;const Y=await Rr(d,`${n.text?`Text: ${n.text}`:""}`,g,t.labelStyle);g+=Y;const H=await Rr(d,`${n.risk?`Risk: ${n.risk}`:""}`,g,t.labelStyle);g+=H,await Rr(d,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,g,t.labelStyle)}else{const M=await Rr(d,`${s.type?`Type: ${s.type}`:""}`,g,t.labelStyle);g+=M,await Rr(d,`${s.docRef?`Doc Ref: ${s.docRef}`:""}`,g,t.labelStyle)}const y=(((z=d.node())==null?void 0:z.getBBox().width)??200)+o,C=(((A=d.node())==null?void 0:A.getBBox().height)??200)+o,k=-y/2,v=-C/2,S=Q.svg(d),_=K(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=S.rectangle(k,v,y,C,_),T=d.insert(()=>w,":first-child");if(T.attr("class","basic label-container outer-path").attr("style",i),u!=null&&u.length){const M=t.colorIndex??0;d.attr("data-color-id",`color-${M%u.length}`)}if(d.selectAll(".label").each((M,Y,H)=>{const D=mt(H[Y]),$=D.attr("transform");let F=0,I=0;if($){const V=RegExp(/translate\(([^,]+),([^)]+)\)/).exec($);V&&(F=parseFloat(V[1]),I=parseFloat(V[2]))}const B=I-C/2;let R=k+o/2;(Y===0||Y===1)&&(R=F),D.attr("transform",`translate(${R}, ${B+o})`)}),g>p+x+a){const M=v+p+x+a;let Y;if(t.look==="neo"){const $=[[k,M],[k+y,M],[k+y,M+.001],[k,M+.001]];Y=S.polygon($,_)}else Y=S.line(k,M,k+y,M,_);d.insert(()=>Y).attr("class","divider")}return tt(t,T),t.intersect=function(M){return G.rect(t,M)},i&&t.look!=="handDrawn"&&(f||u!=null&&u.length)&&d.selectAll("path").attr("style",i),d}m(TS,"requirementBox");async function Rr(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),s=wt(),o=s.htmlLabels??!0,a=await bi(n,pg(An(t)),{width:yi(t,s)+50,classes:"markdown-node-label",useHtmlLabels:o,style:i},s);let l;if(o){const h=a.children[0],c=mt(a);l=h.getBoundingClientRect(),c.attr("width",l.width),c.attr("height",l.height)}else{const h=a.children[0];for(const c of h.children)i&&c.setAttribute("style",i);l=a.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}m(Rr,"addText");var ZP=m(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function _S(e,t,{config:r}){var Y,H;const{labelStyles:i,nodeStyles:n}=J(t);t.labelStyle=i||"";const s=10,o=t.width;t.width=(t.width??200)-10;const{shapeSvg:a,bbox:l,label:h}=await ht(e,t,lt(t)),c=t.padding||10;let u="",f;"ticket"in t&&t.ticket&&((Y=r==null?void 0:r.kanban)!=null&&Y.ticketBaseUrl)&&(u=(H=r==null?void 0:r.kanban)==null?void 0:H.ticketBaseUrl.replace("#TICKET#",t.ticket),f=a.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let p,g;f?{label:p,bbox:g}=await od(f,"ticket"in t&&t.ticket||"",d):{label:p,bbox:g}=await od(a,"ticket"in t&&t.ticket||"",d);const{label:x,bbox:y}=await od(a,"assigned"in t&&t.assigned||"",d);t.width=o;const C=10,k=(t==null?void 0:t.width)||0,v=Math.max(g.height,y.height)/2,S=Math.max(l.height+C*2,(t==null?void 0:t.height)||0)+v,_=-k/2,w=-S/2;h.attr("transform","translate("+(c-k/2)+", "+(-v-l.height/2)+")"),p.attr("transform","translate("+(c-k/2)+", "+(-v+l.height/2)+")"),x.attr("transform","translate("+(c+k/2-y.width-2*s)+", "+(-v+l.height/2)+")");let T;const{rx:z,ry:A}=t,{cssStyles:M}=t;if(t.look==="handDrawn"){const D=Q.svg(a),$=K(t,{}),F=z||A?D.path(tn(_,w,k,S,z||0),$):D.rectangle(_,w,k,S,$);T=a.insert(()=>F,":first-child"),T.attr("class","basic label-container").attr("style",M||null)}else{T=a.insert("rect",":first-child"),T.attr("class","basic label-container __APA__").attr("style",n).attr("rx",z??5).attr("ry",A??5).attr("x",_).attr("y",w).attr("width",k).attr("height",S);const D="priority"in t&&t.priority;if(D){const $=a.append("line"),F=_+2,I=w+Math.floor((z??0)/2),B=w+S-Math.floor((z??0)/2);$.attr("x1",F).attr("y1",I).attr("x2",F).attr("y2",B).attr("stroke-width","4").attr("stroke",ZP(D))}}return tt(t,T),t.height=S,t.intersect=function(D){return G.rect(t,D)},a}m(_S,"kanbanItem");async function BS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:o,label:a}=await ht(e,t,lt(t)),l=s.width+10*o,h=s.height+8*o,c=.15*l,{cssStyles:u}=t,f=s.width+20,d=s.height+20,p=Math.max(l,f),g=Math.max(h,d);a.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`);let x;const y=`M0 0
|
|
293
|
+
a${c},${c} 1 0,0 ${p*.25},${-1*g*.1}
|
|
294
|
+
a${c},${c} 1 0,0 ${p*.25},0
|
|
295
|
+
a${c},${c} 1 0,0 ${p*.25},0
|
|
296
|
+
a${c},${c} 1 0,0 ${p*.25},${g*.1}
|
|
297
|
+
|
|
298
|
+
a${c},${c} 1 0,0 ${p*.15},${g*.33}
|
|
299
|
+
a${c*.8},${c*.8} 1 0,0 0,${g*.34}
|
|
300
|
+
a${c},${c} 1 0,0 ${-1*p*.15},${g*.33}
|
|
301
|
+
|
|
302
|
+
a${c},${c} 1 0,0 ${-1*p*.25},${g*.15}
|
|
303
|
+
a${c},${c} 1 0,0 ${-1*p*.25},0
|
|
304
|
+
a${c},${c} 1 0,0 ${-1*p*.25},0
|
|
305
|
+
a${c},${c} 1 0,0 ${-1*p*.25},${-1*g*.15}
|
|
306
|
+
|
|
307
|
+
a${c},${c} 1 0,0 ${-1*p*.1},${-1*g*.33}
|
|
308
|
+
a${c*.8},${c*.8} 1 0,0 0,${-1*g*.34}
|
|
309
|
+
a${c},${c} 1 0,0 ${p*.1},${-1*g*.33}
|
|
310
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const C=Q.svg(n),k=K(t,{}),v=C.path(y,k);x=n.insert(()=>v,":first-child"),x.attr("class","basic label-container").attr("style",le(u))}else x=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return x.attr("transform",`translate(${-p/2}, ${-g/2})`),tt(t,x),t.calcIntersect=function(C,k){return G.rect(C,k)},t.intersect=function(C){return q.info("Bang intersect",t,C),G.rect(t,C)},n}m(BS,"bang");async function LS(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:o,label:a}=await ht(e,t,lt(t)),l=s.width+2*o,h=s.height+2*o,c=.15*l,u=.25*l,f=.35*l,d=.2*l,{cssStyles:p}=t;let g;const x=`M0 0
|
|
311
|
+
a${c},${c} 0 0,1 ${l*.25},${-1*l*.1}
|
|
312
|
+
a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
|
|
313
|
+
a${u},${u} 1 0,1 ${l*.35},${l*.2}
|
|
314
|
+
|
|
315
|
+
a${c},${c} 1 0,1 ${l*.15},${h*.35}
|
|
316
|
+
a${d},${d} 1 0,1 ${-1*l*.15},${h*.65}
|
|
317
|
+
|
|
318
|
+
a${u},${c} 1 0,1 ${-1*l*.25},${l*.15}
|
|
319
|
+
a${f},${f} 1 0,1 ${-1*l*.5},0
|
|
320
|
+
a${c},${c} 1 0,1 ${-1*l*.25},${-1*l*.15}
|
|
321
|
+
|
|
322
|
+
a${c},${c} 1 0,1 ${-1*l*.1},${-1*h*.35}
|
|
323
|
+
a${d},${d} 1 0,1 ${l*.1},${-1*h*.65}
|
|
324
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const y=Q.svg(n),C=K(t,{}),k=y.path(x,C);g=n.insert(()=>k,":first-child"),g.attr("class","basic label-container").attr("style",le(p))}else g=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return a.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),g.attr("transform",`translate(${-l/2}, ${-h/2})`),tt(t,g),t.calcIntersect=function(y,C){return G.rect(y,C)},t.intersect=function(y){return q.info("Cloud intersect",t,y),G.rect(t,y)},n}m(LS,"cloud");async function ES(e,t){const{labelStyles:r,nodeStyles:i}=J(t);t.labelStyle=r;const{shapeSvg:n,bbox:s,halfPadding:o,label:a}=await ht(e,t,lt(t)),l=s.width+8*o,h=s.height+2*o,c=5,u=t.look==="neo"?`
|
|
325
|
+
M${-l/2} ${h/2-c}
|
|
326
|
+
v${-h+2*c}
|
|
327
|
+
q0,-${c} ${c},-${c}
|
|
328
|
+
h${l-2*c}
|
|
329
|
+
q${c},0 ${c},${c}
|
|
330
|
+
v${h-c}
|
|
331
|
+
H${-l/2}
|
|
332
|
+
Z
|
|
333
|
+
`:`
|
|
334
|
+
M${-l/2} ${h/2-c}
|
|
335
|
+
v${-h+2*c}
|
|
336
|
+
q0,-${c} ${c},-${c}
|
|
337
|
+
h${l-2*c}
|
|
338
|
+
q${c},0 ${c},${c}
|
|
339
|
+
v${h-2*c}
|
|
340
|
+
q0,${c} ${-c},${c}
|
|
341
|
+
h${-(l-2*c)}
|
|
342
|
+
q${-c},0 ${-c},${-c}
|
|
343
|
+
Z
|
|
344
|
+
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const f=n.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",h/2).attr("x2",l/2).attr("y2",h/2),a.attr("transform",`translate(${-s.width/2}, ${-s.height/2})`),n.append(()=>a.node()),tt(t,f),t.calcIntersect=function(d,p){return G.rect(d,p)},t.intersect=function(d){return G.rect(t,d)},n}m(ES,"defaultMindmapNode");async function FS(e,t){const r={padding:t.padding??0};return nm(e,t,r)}m(FS,"mindmapCircle");var KP=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:aS},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:nS},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:lS},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:dS},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Aw},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:nm},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:BS},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:LS},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:eS},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Rw},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Gw},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:Vw},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:yS},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:Uw},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:$w},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:gS},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:ww},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:sS},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:uS},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:cS},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Pw},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Nw},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Bw},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:Lw},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Ew},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:Xw},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:kS},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Dw},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:mS},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Qw},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Fw},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Mw},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:CS},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:vS},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Ow},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:xS},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Iw},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:oS},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Jw},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:Kw},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:vw},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:_w},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:pS},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:fS},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:bS},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:rS},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:Zw}],JP=m(()=>{const t=[...Object.entries({state:hS,choice:Sw,note:tS,rectWithTitle:iS,labelRect:Yw,iconSquare:Hw,iconCircle:qw,icon:zw,iconRounded:Ww,imageSquare:jw,anchor:kw,kanbanItem:_S,mindmapCircle:FS,defaultMindmapNode:ES,classBox:SS,erBox:sm,requirementBox:TS}),...KP.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),AS=JP();function tD(e){return e in AS}m(tD,"isValidShape");var tu=new Map;async function MS(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const s=t.shape?AS[t.shape]:void 0;if(!s)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let o;r.config.securityLevel==="sandbox"?o="_top":t.linkTarget&&(o=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",o??null),n=await s(i,t,r)}else n=await s(e,t,r),i=n;return i.attr("data-look",le(t.look)),t.tooltip&&n.attr("title",t.tooltip),tu.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}m(MS,"insertNode");var $z=m((e,t)=>{tu.set(t.id,e)},"setNodeElem"),Oz=m(()=>{tu.clear()},"clear"),Iz=m(e=>{const t=tu.get(e.id);q.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),eD=m((e,t,r,i,n,s=!1,o)=>{t.arrowTypeStart&&_x(e,"start",t.arrowTypeStart,r,i,n,s,o),t.arrowTypeEnd&&_x(e,"end",t.arrowTypeEnd,r,i,n,s,o)},"addEdgeMarkers"),rD={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},iD=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],_x=m((e,t,r,i,n,s,o=!1,a)=>{var p;const l=rD[r],h=l&&iD.includes(l.type);if(!l){q.warn(`Unknown arrow type: ${r}`);return}const c=l.type,d=`${n}_${s}-${c}${t==="start"?"Start":"End"}${o&&h?"-margin":""}`;if(a&&a.trim()!==""){const g=a.replace(/[^\dA-Za-z]/g,"_"),x=`${d}_${g}`;if(!document.getElementById(x)){const y=document.getElementById(d);if(y){const C=y.cloneNode(!0);C.id=x,C.querySelectorAll("path, circle, line").forEach(v=>{v.setAttribute("stroke",a),l.fill&&v.setAttribute("fill",a)}),(p=y.parentNode)==null||p.appendChild(C)}}e.attr(`marker-${t}`,`url(${i}#${x})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},"addEdgeMarker"),nD=m(e=>{var t,r;return typeof e=="string"?e:(r=(t=wt())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),fc=new Map,de=new Map,Pz=m(()=>{fc.clear(),de.clear()},"clear"),Eo=m(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),sD=m(async(e,t)=>{const r=wt();let i=$e(r);const{labelStyles:n}=J(t);t.labelStyle=n;const s=e.insert("g").attr("class","edgeLabel"),o=s.insert("g").attr("class","label").attr("data-id",t.id),a=t.labelType==="markdown",h=await bi(e,t.label,{style:Eo(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:a,width:a?void 0:void 0},r);o.node().appendChild(h),q.info("abc82",t,t.labelType);let c=h.getBBox(),u=c;if(i){const d=h.children[0],p=mt(h);c=d.getBoundingClientRect(),u=c,p.attr("width",c.width),p.attr("height",c.height)}else{const d=mt(h).select("text").node();d&&typeof d.getBBox=="function"&&(u=d.getBBox())}o.attr("transform",wo(u,i)),fc.set(t.id,s),t.width=c.width,t.height=c.height;let f;if(t.startLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),g=await Mi(p,t.startLabelLeft,Eo(t.labelStyle)||"",!1,!1);f=g;let x=g.getBBox();if(i){const y=g.children[0],C=mt(g);x=y.getBoundingClientRect(),C.attr("width",x.width),C.attr("height",x.height)}p.attr("transform",wo(x,i)),de.get(t.id)||de.set(t.id,{}),de.get(t.id).startLeft=d,jo(f,t.startLabelLeft)}if(t.startLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),g=await Mi(p,t.startLabelRight,Eo(t.labelStyle)||"",!1,!1);f=g,p.node().appendChild(g);let x=g.getBBox();if(i){const y=g.children[0],C=mt(g);x=y.getBoundingClientRect(),C.attr("width",x.width),C.attr("height",x.height)}p.attr("transform",wo(x,i)),de.get(t.id)||de.set(t.id,{}),de.get(t.id).startRight=d,jo(f,t.startLabelRight)}if(t.endLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),g=await Mi(p,t.endLabelLeft,Eo(t.labelStyle)||"",!1,!1);f=g;let x=g.getBBox();if(i){const y=g.children[0],C=mt(g);x=y.getBoundingClientRect(),C.attr("width",x.width),C.attr("height",x.height)}p.attr("transform",wo(x,i)),d.node().appendChild(g),de.get(t.id)||de.set(t.id,{}),de.get(t.id).endLeft=d,jo(f,t.endLabelLeft)}if(t.endLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),g=await Mi(p,t.endLabelRight,Eo(t.labelStyle)||"",!1,!1);f=g;let x=g.getBBox();if(i){const y=g.children[0],C=mt(g);x=y.getBoundingClientRect(),C.attr("width",x.width),C.attr("height",x.height)}p.attr("transform",wo(x,i)),d.node().appendChild(g),de.get(t.id)||de.set(t.id,{}),de.get(t.id).endRight=d,jo(f,t.endLabelRight)}return h},"insertEdgeLabel");function jo(e,t){$e(wt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}m(jo,"setTerminalWidth");var oD=m((e,t)=>{q.debug("Moving label abc88 ",e.id,e.label,fc.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=wt(),{subGraphTitleTotalMargin:n}=Ug(i);if(e.label){const s=fc.get(e.id);let o=e.x,a=e.y;if(r){const l=Sr.calcLabelPosition(r);q.debug("Moving label "+e.label+" from (",o,",",a,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(o=l.x,a=l.y)}s.attr("transform",`translate(${o}, ${a+n/2})`)}if(e.startLabelLeft){const s=de.get(e.id).startLeft;let o=e.x,a=e.y;if(r){const l=Sr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}if(e.startLabelRight){const s=de.get(e.id).startRight;let o=e.x,a=e.y;if(r){const l=Sr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}if(e.endLabelLeft){const s=de.get(e.id).endLeft;let o=e.x,a=e.y;if(r){const l=Sr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}if(e.endLabelRight){const s=de.get(e.id).endRight;let o=e.x,a=e.y;if(r){const l=Sr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);o=l.x,a=l.y}s.attr("transform",`translate(${o}, ${a})`)}},"positionEdgeLabel"),aD=m((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),s=Math.abs(t.y-i),o=e.width/2,a=e.height/2;return n>=o||s>=a},"outsideNode"),lD=m((e,t,r)=>{q.debug(`intersection calc abc89:
|
|
345
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
346
|
+
insidePoint : ${JSON.stringify(r)}
|
|
347
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,s=Math.abs(i-r.x),o=e.width/2;let a=r.x<t.x?o-s:o+s;const l=e.height/2,h=Math.abs(t.y-r.y),c=Math.abs(t.x-r.x);if(Math.abs(n-t.y)*o>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-n:n-l-t.y;a=c*u/h;const f={x:r.x<t.x?r.x+a:r.x-c+a,y:r.y<t.y?r.y+h-u:r.y-h+u};return a===0&&(f.x=t.x,f.y=t.y),c===0&&(f.x=t.x),h===0&&(f.y=t.y),q.debug(`abc89 top/bottom calc, Q ${h}, q ${u}, R ${c}, r ${a}`,f),f}else{r.x<t.x?a=t.x-o-i:a=i-o-t.x;let u=h*a/c,f=r.x<t.x?r.x+c-a:r.x-c+a,d=r.y<t.y?r.y+u:r.y-u;return q.debug(`sides calc abc89, Q ${h}, q ${u}, R ${c}, r ${a}`,{_x:f,_y:d}),a===0&&(f=t.x,d=t.y),c===0&&(f=t.x),h===0&&(d=t.y),{x:f,y:d}}},"intersection"),Bx=m((e,t)=>{q.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(s=>{if(q.info("abc88 checking point",s,t),!aD(t,s)&&!n){const o=lD(t,i,s);q.debug("abc88 inside",s,i,o),q.debug("abc88 intersection",o,t);let a=!1;r.forEach(l=>{a=a||l.x===o.x&&l.y===o.y}),r.some(l=>l.x===o.x&&l.y===o.y)?q.warn("abc88 no intersect",o,r):r.push(o),n=!0}else q.warn("abc88 outside",s,i),i=s,n||r.push(s)}),q.debug("returning points",r),r},"cutPathAtIntersect");function $S(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],s=e[i],o=e[i+1];(n.x===s.x&&s.y===o.y&&Math.abs(s.x-o.x)>5&&Math.abs(s.y-n.y)>5||n.y===s.y&&s.x===o.x&&Math.abs(s.x-n.x)>5&&Math.abs(s.y-o.y)>5)&&(t.push(s),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}m($S,"extractCornerPoints");var Lx=m(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,s=Math.sqrt(i*i+n*n),o=r/s;return{x:t.x-o*i,y:t.y-o*n}},"findAdjacentPoint"),hD=m(function(e){const{cornerPointPositions:t}=$S(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],s=e[i+1],o=e[i],a=Lx(n,o,5),l=Lx(s,o,5),h=l.x-a.x,c=l.y-a.y;r.push(a);const u=Math.sqrt(2)*2;let f={x:o.x,y:o.y};if(Math.abs(s.x-n.x)>10&&Math.abs(s.y-n.y)>=10){q.debug("Corner point fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));const d=5;o.x===a.x?f={x:h<0?a.x-d+u:a.x+d-u,y:c<0?a.y-u:a.y+u}:f={x:h<0?a.x-u:a.x+u,y:c<0?a.y-d+u:a.y+d-u}}else q.debug("Corner point skipping fixing",Math.abs(s.x-n.x),Math.abs(s.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),cD=m((e,t,r)=>{const i=e-t-r,n=2,s=2,o=n+s,a=Math.floor(i/o),l=Array(a).fill(`${n} ${s}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),uD=m(function(e,t,r,i,n,s,o,a=!1){var I;if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l}=wt();let h=t.points,c=!1;const u=n;var f=s;const d=[];for(const B in t.cssCompiledStyles)Mv(B)||d.push(t.cssCompiledStyles[B]);q.debug("UIO intersect check",t.points,f.x,u.x),f.intersect&&u.intersect&&!a&&(h=h.slice(1,t.points.length-1),h.unshift(u.intersect(h[0])),q.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],f,f.intersect(h[h.length-1])),h.push(f.intersect(h[h.length-1])));const p=btoa(JSON.stringify(h));t.toCluster&&(q.info("to cluster abc88",r.get(t.toCluster)),h=Bx(t.points,r.get(t.toCluster).node),c=!0),t.fromCluster&&(q.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=Bx(h.reverse(),r.get(t.fromCluster).node).reverse(),c=!0);let g=h.filter(B=>!Number.isNaN(B.y));const x=nD(t.curve);x!=="rounded"&&(g=hD(g));let y=ia;switch(x){case"linear":y=ia;break;case"basis":y=vf;break;case"cardinal":y=u2;break;case"bumpX":y=o2;break;case"bumpY":y=a2;break;case"catmullRom":y=f2;break;case"monotoneX":y=C2;break;case"monotoneY":y=k2;break;case"natural":y=v2;break;case"step":y=w2;break;case"stepAfter":y=T2;break;case"stepBefore":y=S2;break;case"rounded":y=ia;break;default:y=vf}const{x:C,y:k}=i$(t),v=zA().x(C).y(k).curve(y);let S;switch(t.thickness){case"normal":S="edge-thickness-normal";break;case"thick":S="edge-thickness-thick";break;case"invisible":S="edge-thickness-invisible";break;default:S="edge-thickness-normal"}switch(t.pattern){case"solid":S+=" edge-pattern-solid";break;case"dotted":S+=" edge-pattern-dotted";break;case"dashed":S+=" edge-pattern-dashed";break;default:S+=" edge-pattern-solid"}let _,w=x==="rounded"?OS(IS(g,t),5):v(g);const T=Array.isArray(t.style)?t.style:[t.style];let z=T.find(B=>B==null?void 0:B.startsWith("stroke:")),A="";t.animate&&(A="edge-animation-fast"),t.animation&&(A="edge-animation-"+t.animation);let M=!1;if(t.look==="handDrawn"){const B=Q.svg(e);Object.assign([],g);const R=B.path(w,{roughness:.3,seed:l});S+=" transition",_=mt(R).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(A?" "+A:"")).attr("style",T?T.reduce((V,rt)=>V+";"+rt,""):"");let N=_.attr("d");_.attr("d",N),e.node().appendChild(_.node())}else{const B=d.join(";"),R=T?T.reduce((nt,Ct)=>nt+Ct+";",""):"",N=(B?B+";"+R+";":R)+";"+(T?T.reduce((nt,Ct)=>nt+";"+Ct,""):"");_=e.append("path").attr("d",w).attr("id",`${o}-${t.id}`).attr("class"," "+S+(t.classes?" "+t.classes:"")+(A?" "+A:"")).attr("style",N),z=(I=N.match(/stroke:([^;]+)/))==null?void 0:I[1],M=t.animate===!0||!!t.animation||B.includes("animation");const V=_.node(),rt=typeof V.getTotalLength=="function"?V.getTotalLength():0,st=$0[t.arrowTypeStart]||0,pt=$0[t.arrowTypeEnd]||0;if(t.look==="neo"&&!M){const Ct=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?cD(rt,st,pt):`0 ${st} ${rt-st-pt} ${pt}`}; stroke-dashoffset: 0;`;_.attr("style",Ct+_.attr("style"))}}_.attr("data-edge",!0),_.attr("data-et","edge"),_.attr("data-id",t.id),_.attr("data-points",p),_.attr("data-look",le(t.look)),t.showPoints&&g.forEach(B=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",B.x).attr("cy",B.y)});let Y="";(wt().flowchart.arrowMarkerAbsolute||wt().state.arrowMarkerAbsolute)&&(Y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Y=Y.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),q.info("arrowTypeStart",t.arrowTypeStart),q.info("arrowTypeEnd",t.arrowTypeEnd);const H=!M&&(t==null?void 0:t.look)==="neo";eD(_,t,Y,o,i,H,z);const D=Math.floor(h.length/2),$=h[D];Sr.isLabelCoordinateInPath($,_.attr("d"))||(c=!0);let F={};return c&&(F.updatedPath=h),F.originalPath=t.points,F},"insertEdge");function OS(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let s=0;s<i;s++){const o=e[s],a=e[s-1],l=e[s+1];if(s===0)r+=`M${o.x},${o.y}`;else if(s===i-1)r+=`L${o.x},${o.y}`;else{const h=o.x-a.x,c=o.y-a.y,u=l.x-o.x,f=l.y-o.y,d=Math.hypot(h,c),p=Math.hypot(u,f);if(d<n||p<n){r+=`L${o.x},${o.y}`;continue}const g=h/d,x=c/d,y=u/p,C=f/p,k=g*y+x*C,v=Math.max(-1,Math.min(1,k)),S=Math.acos(v);if(S<n||Math.abs(Math.PI-S)<n){r+=`L${o.x},${o.y}`;continue}const _=Math.min(t/Math.sin(S/2),d/2,p/2),w=o.x-g*_,T=o.y-x*_,z=o.x+y*_,A=o.y+C*_;r+=`L${w},${T}`,r+=`Q${o.x},${o.y} ${z},${A}`}}return r}m(OS,"generateRoundedPath");function Kf(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}m(Kf,"calculateDeltaAndAngle");function IS(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&be[t.arrowTypeStart]){const n=be[t.arrowTypeStart],s=e[0],o=e[1],{angle:a}=Kf(s,o),l=n*Math.cos(a),h=n*Math.sin(a);r[0].x=s.x+l,r[0].y=s.y+h}const i=e.length;if(i>=2&&be[t.arrowTypeEnd]){const n=be[t.arrowTypeEnd],s=e[i-1],o=e[i-2],{angle:a}=Kf(o,s),l=n*Math.cos(a),h=n*Math.sin(a);r[i-1].x=s.x-l,r[i-1].y=s.y-h}return r}m(IS,"applyMarkerOffsetsToPoints");var dD=m((e,t,r,i)=>{t.forEach(n=>{ID[n](e,r,i)})},"insertMarkers"),fD=m((e,t,r)=>{q.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),pD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),gD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),mD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),yD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),xD=m((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),CD=m((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),kD=m((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),bD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),vD=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{transitionColor:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${s}`)},"barbNeo"),wD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),SD=m((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),TD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),_D=m((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),BD=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{strokeWidth:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${s}`)},"only_one_neo"),LD=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:o}=n,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");a.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),a.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${s}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${s}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${s}`)},"zero_or_one_neo"),ED=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{strokeWidth:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${s}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${s}`)},"one_or_more_neo"),FD=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{strokeWidth:s,mainBkg:o}=n,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");a.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${s}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${s}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${s}`)},"zero_or_more_neo"),AD=m((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
348
|
+
L20,10
|
|
349
|
+
M20,10
|
|
350
|
+
L0,20`)},"requirement_arrow"),MD=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{strokeWidth:s}=n;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${s}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
351
|
+
L20,10
|
|
352
|
+
M20,10
|
|
353
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),$D=m((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),OD=m((e,t,r)=>{const i=qt(),{themeVariables:n}=i,{strokeWidth:s}=n,o=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${s}`)},"requirement_contains_neo"),ID={extension:fD,composition:pD,aggregation:gD,dependency:mD,lollipop:yD,point:xD,circle:CD,cross:kD,barb:bD,barbNeo:vD,only_one:wD,zero_or_one:SD,one_or_more:TD,zero_or_more:_D,only_one_neo:BD,zero_or_one_neo:LD,one_or_more_neo:ED,zero_or_more_neo:FD,requirement_arrow:AD,requirement_contains:$D,requirement_arrow_neo:MD,requirement_contains_neo:OD},PD=dD,DD={common:Ua,getConfig:qt,insertCluster:OP,insertEdge:uD,insertEdgeLabel:sD,insertMarkers:PD,insertNode:MS,interpolateToCurve:Ng,labelHelper:ht,log:q,positionEdgeLabel:oD},Da={},PS=m(e=>{for(const t of e)Da[t.name]=t},"registerLayoutLoaders"),RD=m(()=>{PS([{name:"dagre",loader:m(async()=>await kt(()=>import("./dagre-KV5264BT-BS-rtyhZ.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:m(async()=>await kt(()=>import("./cose-bilkent-S5V4N54A-Bqp3p68D.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");RD();var Dz=m(async(e,t)=>{if(!(e.layoutAlgorithm in Da))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const c of e.nodes){const u=c.domId||c.id;c.domId=`${e.diagramId}-${u}`}const r=Da[e.layoutAlgorithm],i=await r.loader(),{theme:n,themeVariables:s}=e.config,{useGradient:o,gradientStart:a,gradientStop:l}=s,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${n!=null&&n.includes("dark")?"#FFFFFF":"#000000"}`),o){const c=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");c.append("svg:stop").attr("offset","0%").attr("stop-color",a).attr("stop-opacity",1),c.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,DD,{algorithm:r.algorithm})},"render"),Rz=m((e="",{fallback:t="dagre"}={})=>{if(e in Da)return e;if(t in Da)return q.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),DS="comm",RS="rule",NS="decl",ND="@import",zD="@namespace",qD="@keyframes",WD="@layer",HD=Math.abs,oa=String.fromCharCode;function zS(e){return e.trim()}function Jf(e,t,r){return e.replace(t,r)}function ws(e,t){return e.charCodeAt(t)|0}function Zs(e,t,r){return e.slice(t,r)}function qr(e){return e.length}function jD(e){return e.length}function Il(e,t){return t.push(e),e}var eu=1,Ks=1,qS=0,pr=0,Xt=0,oo="";function om(e,t,r,i,n,s,o,a){return{value:e,root:t,parent:r,type:i,props:n,children:s,line:eu,column:Ks,length:o,return:"",siblings:a}}function UD(){return Xt}function YD(){return Xt=pr>0?ws(oo,--pr):0,Ks--,Xt===10&&(Ks=1,eu--),Xt}function Lr(){return Xt=pr<qS?ws(oo,pr++):0,Ks++,Xt===10&&(Ks=1,eu++),Xt}function $i(){return ws(oo,pr)}function oh(){return pr}function ru(e,t){return Zs(oo,e,t)}function Ra(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function VD(e){return eu=Ks=1,qS=qr(oo=e),pr=0,[]}function GD(e){return oo="",e}function ld(e){return zS(ru(pr-1,tp(e===91?e+2:e===40?e+1:e)))}function XD(e){for(;(Xt=$i())&&Xt<33;)Lr();return Ra(e)>2||Ra(Xt)>3?"":" "}function QD(e,t){for(;--t&&Lr()&&!(Xt<48||Xt>102||Xt>57&&Xt<65||Xt>70&&Xt<97););return ru(e,oh()+(t<6&&$i()==32&&Lr()==32))}function tp(e){for(;Lr();)switch(Xt){case e:return pr;case 34:case 39:e!==34&&e!==39&&tp(Xt);break;case 40:e===41&&tp(e);break;case 92:Lr();break}return pr}function ZD(e,t){for(;Lr()&&e+Xt!==57;)if(e+Xt===84&&$i()===47)break;return"/*"+ru(t,pr-1)+"*"+oa(e===47?e:Lr())}function KD(e){for(;!Ra($i());)Lr();return ru(e,pr)}function JD(e){return GD(ah("",null,null,null,[""],e=VD(e),0,[0],e))}function ah(e,t,r,i,n,s,o,a,l){for(var h=0,c=0,u=o,f=0,d=0,p=0,g=1,x=1,y=1,C=0,k=0,v="",S=n,_=s,w=i,T=v;x;)switch(p=k,k=Lr()){case 40:p!=108&&ws(T,u-1)==58?(C++,T+="("):T+=ld(k);break;case 41:C--,T+=")";break;case 34:case 39:case 91:T+=ld(k);break;case 9:case 10:case 13:case 32:if(C>0){T+=oa(k);break}T+=XD(p);break;case 92:T+=QD(oh()-1,7);continue;case 47:switch($i()){case 42:case 47:Il(tR(ZD(Lr(),oh()),t,r,l),l),(Ra(p||1)==5||Ra($i()||1)==5)&&qr(T)&&Zs(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*g:a[h++]=qr(T)*y;case 125*g:case 59:case 0:if(C>0&&k){T+=oa(k);break}switch(k){case 0:case 125:x=0;case 59+c:y==-1&&(T=Jf(T,/\f/g,"")),d>0&&(qr(T)-u||g===0)&&Il(d>32?Fx(T+";",i,r,u-1,l):Fx(Jf(T," ","")+";",i,r,u-2,l),l);break;case 59:T+=";";default:if(Il(w=Ex(T,t,r,h,c,n,a,v,S=[],_=[],u,s),s),k===123)if(c===0)ah(T,t,w,w,S,s,u,a,_);else{switch(f){case 99:if(ws(T,3)===110)break;case 108:if(ws(T,2)===97)break;default:c=0;case 100:case 109:case 115:}c?ah(e,w,w,i&&Il(Ex(e,w,w,0,0,n,a,v,n,S=[],u,_),_),n,_,u,a,i?S:_):ah(T,w,w,w,[""],_,0,a,_)}}h=c=d=0,g=y=1,v=T="",u=o;break;case 58:u=1+qr(T),d=p;default:if(g<1){if(k==123)--g;else if(k==125&&g++==0&&YD()==125)continue}switch(T+=oa(k),k*g){case 38:y=c>0?1:(T+="\f",-1);break;case 44:if(C>0)break;a[h++]=(qr(T)-1)*y,y=1;break;case 64:$i()===45&&(T+=ld(Lr())),f=$i(),c=u=qr(v=T+=KD(oh())),k++;break;case 45:p===45&&qr(T)==2&&(g=0)}}return s}function Ex(e,t,r,i,n,s,o,a,l,h,c,u){for(var f=n-1,d=n===0?s:[""],p=jD(d),g=0,x=0,y=0;g<i;++g)for(var C=0,k=Zs(e,f+1,f=HD(x=o[g])),v=e;C<p;++C)(v=zS(x>0?d[C]+" "+k:Jf(k,/&\f/g,d[C])))&&(l[y++]=v);return om(e,t,r,n===0?RS:a,l,h,c,u)}function tR(e,t,r,i){return om(e,t,r,DS,oa(UD()),Zs(e,2,-2),0,i)}function Fx(e,t,r,i,n){return om(e,t,r,NS,Zs(e,0,i),Zs(e,i+1,-1),i,n)}function ep(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function eR(e,t,r,i){switch(e.type){case WD:if(e.children.length)break;case ND:case zD:case NS:return e.return=e.return||e.value;case DS:return"";case qD:return e.return=e.value+"{"+ep(e.children,i)+"}";case RS:if(!qr(e.value=e.props.join(",")))return""}return qr(r=ep(e.children,i))?e.return=e.value+"{"+r+"}":""}var rR=uv(Object.keys,Object),iR=Object.prototype,nR=iR.hasOwnProperty;function sR(e){if(!Yc(e))return rR(e);var t=[];for(var r in Object(e))nR.call(e,r)&&r!="constructor"&&t.push(r);return t}var rp=Nn(Zr,"DataView"),ip=Nn(Zr,"Promise"),np=Nn(Zr,"Set"),sp=Nn(Zr,"WeakMap"),Ax="[object Map]",oR="[object Object]",Mx="[object Promise]",$x="[object Set]",Ox="[object WeakMap]",Ix="[object DataView]",aR=Rn(rp),lR=Rn(Ia),hR=Rn(ip),cR=Rn(np),uR=Rn(sp),hn=ro;(rp&&hn(new rp(new ArrayBuffer(1)))!=Ix||Ia&&hn(new Ia)!=Ax||ip&&hn(ip.resolve())!=Mx||np&&hn(new np)!=$x||sp&&hn(new sp)!=Ox)&&(hn=function(e){var t=ro(e),r=t==oR?e.constructor:void 0,i=r?Rn(r):"";if(i)switch(i){case aR:return Ix;case lR:return Ax;case hR:return Mx;case cR:return $x;case uR:return Ox}return t});var dR="[object Map]",fR="[object Set]",pR=Object.prototype,gR=pR.hasOwnProperty;function Px(e){if(e==null)return!0;if(Vc(e)&&(ic(e)||typeof e=="string"||typeof e.splice=="function"||Dg(e)||Rg(e)||rc(e)))return!e.length;var t=hn(e);if(t==dR||t==fR)return!e.size;if(Yc(e))return!sR(e).length;for(var r in e)if(gR.call(e,r))return!1;return!0}var WS="c4",mR=m(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),yR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-CojrJAk8.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:WS,diagram:e}},"loader"),xR={id:WS,detector:mR,loader:yR},CR=xR,HS="flowchart",kR=m((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),bR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-Cq925G1Z.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:HS,diagram:e}},"loader"),vR={id:HS,detector:kR,loader:bR},wR=vR,jS="flowchart-v2",SR=m((e,t)=>{var r,i,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),TR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-Cq925G1Z.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:jS,diagram:e}},"loader"),_R={id:jS,detector:SR,loader:TR},BR=_R,US="er",LR=m(e=>/^\s*erDiagram/.test(e),"detector"),ER=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-BfK5m2YQ.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:US,diagram:e}},"loader"),FR={id:US,detector:LR,loader:ER},AR=FR,YS="gitGraph",MR=m(e=>/^\s*gitGraph/.test(e),"detector"),$R=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-B3Lc0h9q.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:YS,diagram:e}},"loader"),OR={id:YS,detector:MR,loader:$R},IR=OR,VS="gantt",PR=m(e=>/^\s*gantt/.test(e),"detector"),DR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-DhhHPAmj.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:VS,diagram:e}},"loader"),RR={id:VS,detector:PR,loader:DR},NR=RR,GS="info",zR=m(e=>/^\s*info/.test(e),"detector"),qR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-BlR584kX.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:GS,diagram:e}},"loader"),WR={id:GS,detector:zR,loader:qR},XS="pie",HR=m(e=>/^\s*pie/.test(e),"detector"),jR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-DHVA0jaG.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:XS,diagram:e}},"loader"),UR={id:XS,detector:HR,loader:jR},QS="quadrantChart",YR=m(e=>/^\s*quadrantChart/.test(e),"detector"),VR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-DBeKKLUQ.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:QS,diagram:e}},"loader"),GR={id:QS,detector:YR,loader:VR},XR=GR,ZS="xychart",QR=m(e=>/^\s*xychart(-beta)?/.test(e),"detector"),ZR=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-CUOJVIvq.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:ZS,diagram:e}},"loader"),KR={id:ZS,detector:QR,loader:ZR},JR=KR,KS="requirement",t6=m(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),e6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-CBwITx7p.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:KS,diagram:e}},"loader"),r6={id:KS,detector:t6,loader:e6},i6=r6,JS="sequence",n6=m(e=>/^\s*sequenceDiagram/.test(e),"detector"),s6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-DN96yPP2.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:JS,diagram:e}},"loader"),o6={id:JS,detector:n6,loader:s6},a6=o6,tT="class",l6=m((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),h6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-CMi1Gaev.js");return{diagram:t}},__vite__mapDeps([32,33,11,9,12,13]));return{id:tT,diagram:e}},"loader"),c6={id:tT,detector:l6,loader:h6},u6=c6,eT="classDiagram",d6=m((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),f6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-CMi1Gaev.js");return{diagram:t}},__vite__mapDeps([34,33,11,9,12,13]));return{id:eT,diagram:e}},"loader"),p6={id:eT,detector:d6,loader:f6},g6=p6,rT="state",m6=m((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),y6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-VUkKC2uJ.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:rT,diagram:e}},"loader"),x6={id:rT,detector:m6,loader:y6},C6=x6,iT="stateDiagram",k6=m((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),b6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-CA0IjulK.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:iT,diagram:e}},"loader"),v6={id:iT,detector:k6,loader:b6},w6=v6,nT="journey",S6=m(e=>/^\s*journey/.test(e),"detector"),T6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-BnaiYp9N.js");return{diagram:t}},__vite__mapDeps([38,11,9,26]));return{id:nT,diagram:e}},"loader"),_6={id:nT,detector:S6,loader:T6},B6=_6,L6=m((e,t,r)=>{q.debug(`rendering svg for syntax error
|
|
354
|
+
`);const i=XA(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),Ek(i,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 ${r}`)},"draw"),sT={draw:L6},E6=sT,F6={db:{},renderer:sT,parser:{parse:m(()=>{},"parse")}},A6=F6,oT="flowchart-elk",M6=m((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),$6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-Cq925G1Z.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:oT,diagram:e}},"loader"),O6={id:oT,detector:M6,loader:$6},I6=O6,aT="timeline",P6=m(e=>/^\s*timeline/.test(e),"detector"),D6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ-oUeZhRns.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:aT,diagram:e}},"loader"),R6={id:aT,detector:P6,loader:D6},N6=R6,lT="mindmap",z6=m(e=>/^\s*mindmap/.test(e),"detector"),q6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH-iNxV62yN.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:lT,diagram:e}},"loader"),W6={id:lT,detector:z6,loader:q6},H6=W6,hT="kanban",j6=m(e=>/^\s*kanban/.test(e),"detector"),U6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY-BQBUBzJC.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:hT,diagram:e}},"loader"),Y6={id:hT,detector:j6,loader:U6},V6=Y6,cT="sankey",G6=m(e=>/^\s*sankey(-beta)?/.test(e),"detector"),X6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6-BtE-1YTU.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:cT,diagram:e}},"loader"),Q6={id:cT,detector:G6,loader:X6},Z6=Q6,uT="packet",K6=m(e=>/^\s*packet(-beta)?/.test(e),"detector"),J6=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-TYMM5635-BytnGQr-.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:uT,diagram:e}},"loader"),t8={id:uT,detector:K6,loader:J6},dT="radar",e8=m(e=>/^\s*radar-beta/.test(e),"detector"),r8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5-C2qHxvqV.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:dT,diagram:e}},"loader"),i8={id:dT,detector:e8,loader:r8},fT="block",n8=m(e=>/^\s*block(-beta)?/.test(e),"detector"),s8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D-B4JBLjmJ.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:fT,diagram:e}},"loader"),o8={id:fT,detector:n8,loader:s8},a8=o8,pT="treeView",l8=m(e=>/^\s*treeView-beta/.test(e),"detector"),h8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD-BIrj9YGI.js");return{diagram:t}},__vite__mapDeps([46,17,18,19,4,2]));return{id:pT,diagram:e}},"loader"),c8={id:pT,detector:l8,loader:h8},u8=c8,gT="architecture",d8=m(e=>/^\s*architecture/.test(e),"detector"),f8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46-B8iirmmJ.js");return{diagram:t}},__vite__mapDeps([47,17,19,4,2,7]));return{id:gT,diagram:e}},"loader"),p8={id:gT,detector:d8,loader:f8},g8=p8,mT="ishikawa",m8=m(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),y8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A-DygKoNGY.js");return{diagram:t}},[]);return{id:mT,diagram:e}},"loader"),x8={id:mT,detector:m8,loader:y8},yT="venn",C8=m(e=>/^\s*venn-beta/.test(e),"detector"),k8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP-D87fK90n.js");return{diagram:t}},[]);return{id:yT,diagram:e}},"loader"),b8={id:yT,detector:C8,loader:k8},v8=b8,xT="treemap",w8=m(e=>/^\s*treemap/.test(e),"detector"),S8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6-noHWPIg4.js");return{diagram:t}},__vite__mapDeps([48,13,17,19,4,2,23,27,22]));return{id:xT,diagram:e}},"loader"),T8={id:xT,detector:w8,loader:S8},CT="wardley-beta",_8=m(e=>/^\s*wardley-beta/i.test(e),"detector"),B8=m(async()=>{const{diagram:e}=await kt(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D-Ca_i0QRA.js");return{diagram:t}},__vite__mapDeps([49,17,19,4,2]));return{id:CT,diagram:e}},"loader"),L8={id:CT,detector:_8,loader:B8},E8=L8,Dx=!1,iu=m(()=>{Dx||(Dx=!0,Rh("error",A6,e=>e.toLowerCase().trim()==="error"),Rh("---",{db:{clear:m(()=>{},"clear")},styles:{},renderer:{draw:m(()=>{},"draw")},parser:{parse:m(()=>{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")},"parse")},init:m(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),lf(I6,H6,g8),lf(CR,V6,g6,u6,AR,NR,WR,UR,i6,a6,BR,wR,N6,IR,w6,C6,B6,XR,Z6,t8,JR,a8,u8,i8,x8,T8,v8,E8))},"addDiagrams"),F8=m(async()=>{q.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(_n).map(async([r,{detector:i,loader:n}])=>{if(n)try{df(r)}catch{try{const{diagram:s,id:o}=await n();Rh(o,s,i)}catch(s){throw q.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete _n[r],s}}}))).filter(r=>r.status==="rejected");if(t.length>0){q.error(`Failed to load ${t.length} external diagrams`);for(const r of t)q.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),A8="graphics-document document";function kT(e,t){e.attr("role",A8),t!==""&&e.attr("aria-roledescription",t)}m(kT,"setA11yDiagramInfo");function bT(e,t,r,i){if(e.insert!==void 0){if(r){const n=`chart-desc-${i}`;e.attr("aria-describedby",n),e.insert("desc",":first-child").attr("id",n).text(r)}if(t){const n=`chart-title-${i}`;e.attr("aria-labelledby",n),e.insert("title",":first-child").attr("id",n).text(t)}}}m(bT,"addSVGa11yTitleDescription");var kn,op=(kn=class{constructor(t,r,i,n,s){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=s}static async fromText(t,r={}){var h,c;const i=qt(),n=hg(t,i);t=tI(t)+`
|
|
355
|
+
`;try{df(n)}catch{const u=pE(n);if(!u)throw new gk(`Diagram ${n} not found.`);const{id:f,diagram:d}=await u();Rh(f,d)}const{db:s,parser:o,renderer:a,init:l}=df(n);return o.parser&&(o.parser.yy=s),(h=s.clear)==null||h.call(s),l==null||l(i),r.title&&((c=s.setDiagramTitle)==null||c.call(s,r.title)),await o.parse(t),new kn(n,t,s,o,a)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},m(kn,"Diagram"),kn),Rx=[],M8=m(()=>{Rx.forEach(e=>{e()}),Rx=[]},"attachFunctions"),$8=m(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function vT(e){const t=e.match(pk);if(!t)return{text:e,metadata:{}};let r=r$(t[1],{schema:e$})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:e.slice(t[0].length),metadata:i}}m(vT,"extractFrontMatter");var O8=m(e=>e.replace(/\r\n?/g,`
|
|
356
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),I8=m(e=>{const{text:t,metadata:r}=vT(e),{displayMode:i,title:n,config:s={}}=r;return i&&(s.gantt||(s.gantt={}),s.gantt.displayMode=i),{title:n,config:s,text:t}},"processFrontmatter"),P8=m(e=>{const t=Sr.detectInit(e)??{},r=Sr.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:qO(e),directive:t}},"processDirectives");function am(e){const t=O8(e),r=I8(t),i=P8(r.text),n=jg(r.config,i.directive);return e=$8(i.text),{code:e,title:r.title,config:n}}m(am,"preprocessDiagram");function wT(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}m(wT,"toBase64");var D8=5e4,R8="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",N8="sandbox",z8="loose",q8="http://www.w3.org/2000/svg",W8="http://www.w3.org/1999/xlink",H8="http://www.w3.org/1999/xhtml",j8="100%",U8="100%",Y8="border:0;margin:0;",V8="margin:0",G8="allow-top-navigation-by-user-activation allow-popups",X8='The "iframe" tag is not supported by your browser.',Q8=["foreignobject"],Z8=["dominant-baseline"];function lm(e){const t=am(e);return Ph(),WE(t.config??{}),t}m(lm,"processAndSetConfigs");async function ST(e,t){iu();try{const{code:r,config:i}=lm(e);return{diagramType:(await _T(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}m(ST,"parse");var Nx=m((e,t,r=[])=>`
|
|
357
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),K8=m((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
358
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
359
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
360
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const o=$e(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(a=>{Px(a.styles)||o.forEach(l=>{r+=Nx(a.id,l,a.styles)}),Px(a.textStyles)||(r+=Nx(a.id,"tspan",((a==null?void 0:a.textStyles)||[]).map(l=>l.replace("color","fill"))))})}return r},"createCssStyles"),J8=m((e,t,r,i)=>{const n=K8(e,r),s=a3(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return ep(JD(`${i}{${s}}`),eR)},"createUserStyles"),tN=m((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=An(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),eN=m((e="",t)=>{var n,s;const r=(s=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&s.height?t.viewBox.baseVal.height+"px":U8,i=wT(`<body style="${V8}">${e}</body>`);return`<iframe style="width:${j8};height:${r};${Y8}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${G8}">
|
|
361
|
+
${X8}
|
|
362
|
+
</iframe>`},"putIntoIFrame"),zx=m((e,t,r,i,n)=>{const s=e.append("div");s.attr("id",r),i&&s.attr("style",i);const o=s.append("svg").attr("id",t).attr("width","100%").attr("xmlns",q8);return n&&o.attr("xmlns:xlink",n),o.append("g"),e},"appendDivSvgG");function ap(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}m(ap,"sandboxedIframe");var rN=m((e,t,r,i)=>{var n,s,o;(n=e.getElementById(t))==null||n.remove(),(s=e.getElementById(r))==null||s.remove(),(o=e.getElementById(i))==null||o.remove()},"removeExistingElements"),iN=m(async function(e,t,r){var Y,H,D,$,F,I;iu();const i=lm(t);t=i.code;const n=qt();q.debug(n),t.length>((n==null?void 0:n.maxTextSize)??D8)&&(t=R8);const s="#"+e,o="i"+e,a="#"+o,l="d"+e,h="#"+l,c=m(()=>{const R=mt(f?a:h).node();R&&"remove"in R&&R.remove()},"removeTempElements");let u=mt("body");const f=n.securityLevel===N8,d=n.securityLevel===z8,p=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const B=ap(mt(r),o);u=mt(B.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=mt(r);zx(u,e,l,`font-family: ${p}`,W8)}else{if(rN(document,e,l,o),f){const B=ap(mt("body"),o);u=mt(B.nodes()[0].contentDocument.body),u.node().style.margin=0}else u=mt("body");zx(u,e,l)}let g,x;try{g=await op.fromText(t,{title:i.title})}catch(B){if(n.suppressErrorRendering)throw c(),B;g=await op.fromText("error"),x=B}const y=u.select(h).node(),C=g.type,k=y.firstChild,v=k.firstChild,S=(H=(Y=g.renderer).getClasses)==null?void 0:H.call(Y,t,g),_=J8(n,C,S,s),w=document.createElement("style");w.innerHTML=_,k.insertBefore(w,v);try{await g.renderer.draw(t,e,"11.14.0",g)}catch(B){throw n.suppressErrorRendering?c():E6.draw(t,e,"11.14.0"),B}const T=u.select(`${h} svg`),z=($=(D=g.db).getAccTitle)==null?void 0:$.call(D),A=(I=(F=g.db).getAccDescription)==null?void 0:I.call(F);BT(C,T,z,A),u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",H8);let M=u.select(h).node().innerHTML;if(q.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),M=tN(M,f,Ci(n.arrowMarkerAbsolute)),f){const B=u.select(h+" svg").node();M=eN(M,B)}else d||(M=Us.sanitize(M,{ADD_TAGS:Q8,ADD_ATTR:Z8,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(M8(),x)throw x;return c(),{diagramType:C,svg:M,bindFunctions:g.db.bindFunctions}},"render");function TT(e={}){var i;const t=ee({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),zE(t),t!=null&&t.theme&&t.theme in ci?t.themeVariables=ci[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=ci.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?NE(t):kk();lg(r.logLevel),iu()}m(TT,"initialize");var _T=m((e,t={})=>{const{code:r}=am(e);return op.fromText(r,t)},"getDiagramFromText");function BT(e,t,r,i){kT(t,e),bT(t,r,i,t.attr("id"))}m(BT,"addA11yInfo");var $n=Object.freeze({render:iN,parse:ST,getDiagramFromText:_T,initialize:TT,getConfig:qt,setConfig:bk,getSiteConfig:kk,updateSiteConfig:qE,reset:m(()=>{Ph()},"reset"),globalReset:m(()=>{Ph(Ys)},"globalReset"),defaultConfig:Ys});lg(qt().logLevel);Ph(qt());var nN=m((e,t,r)=>{q.warn(e),Hg(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),LT=m(async function(e={querySelector:".mermaid"}){try{await sN(e)}catch(t){if(Hg(t)&&q.error(t.str),tr.parseError&&tr.parseError(t),!e.suppressErrors)throw q.error("Use the suppressErrors option to suppress these errors"),t}},"run"),sN=m(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=$n.getConfig();q.debug(`${e?"":"No "}Callback function found`);let n;if(r)n=r;else if(t)n=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");q.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(q.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),$n.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const s=new Sr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let o;const a=[];for(const l of Array.from(n)){if(q.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const h=`mermaid-${s.next()}`;o=l.innerHTML,o=Uv(Sr.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const c=Sr.detectInit(o);c&&q.debug("Detected early reinit: ",c);try{const{svg:u,bindFunctions:f}=await MT(h,o,l);l.innerHTML=u,e&&await e(h),f&&f(l)}catch(u){nN(u,a,tr.parseError)}}if(a.length>0)throw a[0]},"runThrowsErrors"),ET=m(function(e){$n.initialize(e)},"initialize"),oN=m(async function(e,t,r){q.warn("mermaid.init is deprecated. Please use run instead."),e&&ET(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await LT(i)},"init"),aN=m(async(e,{lazyLoad:t=!0}={})=>{iu(),lf(...e),t===!1&&await F8()},"registerExternalDiagrams"),FT=m(function(){if(tr.startOnLoad){const{startOnLoad:e}=$n.getConfig();e&&tr.run().catch(t=>q.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",FT,!1);var lN=m(function(e){tr.parseError=e},"setParseErrorHandler"),pc=[],hd=!1,AT=m(async()=>{if(!hd){for(hd=!0;pc.length>0;){const e=pc.shift();if(e)try{await e()}catch(t){q.error("Error executing queue",t)}}hd=!1}},"executeQueue"),hN=m(async(e,t)=>new Promise((r,i)=>{const n=m(()=>new Promise((s,o)=>{$n.parse(e,t).then(a=>{s(a),r(a)},a=>{var l;q.error("Error parsing",a),(l=tr.parseError)==null||l.call(tr,a),o(a),i(a)})}),"performCall");pc.push(n),AT().catch(i)}),"parse"),MT=m((e,t,r)=>new Promise((i,n)=>{const s=m(()=>new Promise((o,a)=>{$n.render(e,t,r).then(l=>{o(l),i(l)},l=>{var h;q.error("Error parsing",l),(h=tr.parseError)==null||h.call(tr,l),a(l),n(l)})}),"performCall");pc.push(s),AT().catch(n)}),"render"),cN=m(()=>Object.keys(_n).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),tr={startOnLoad:!0,mermaidAPI:$n,parse:hN,render:MT,init:oN,run:LT,registerExternalDiagrams:aN,registerLayoutLoaders:PS,initialize:ET,parseError:void 0,contentLoaded:FT,setParseErrorHandler:lN,detectType:hg,registerIconPacks:aP,getRegisteredDiagramsMetadata:cN},lp=tr;/*! Check if previously processed *//*!
|
|
363
|
+
* Wait for document loaded before starting the execution
|
|
364
|
+
*/let hp=null;function uN(){const t=document.documentElement.classList.contains("dark")?"dark":"default";hp!==t&&(lp.initialize({startOnLoad:!1,theme:t,securityLevel:"loose",fontFamily:"'DM Sans', system-ui, sans-serif",suppressErrorRendering:!0}),hp=t)}function dN({content:e,onError:t,theme:r,version:i}){const n=bt.useRef(null),[s,o]=bt.useState(null);return bt.useEffect(()=>{o(null)},[e,i]),bt.useEffect(()=>{hp=null},[r]),bt.useEffect(()=>{if(!n.current||!e.trim())return;uN();const a=`mermaid-${Date.now()}-${Math.random().toString(36).slice(2,8)}`;lp.parse(e.trim()).then(()=>lp.render(a,e.trim())).then(({svg:l})=>{n.current&&(n.current.innerHTML=l)}).catch(l=>{var c;const h=String(l);o(h),n.current&&(n.current.innerHTML=""),(c=document.getElementById(a))==null||c.remove(),t==null||t(h,e.trim())})},[e,r,i]),U.jsxs("div",{className:"relative flex-1 min-h-0",children:[U.jsx("div",{ref:n,className:`mermaid-container flex items-center justify-center ${s?"hidden":""}`}),s&&U.jsx("div",{className:"flex h-full items-center justify-center",children:U.jsxs("div",{className:"text-center text-muted-foreground",children:[U.jsx("p",{className:"text-sm font-medium",children:"Diagram syntax error — reported to Claude"}),U.jsx("p",{className:"mt-1 text-xs",children:"Waiting for corrected diagram..."})]})})]})}function hm(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var qn=hm();function $T(e){qn=e}var aa={exec:()=>null};function _t(e,t=""){let r=typeof e=="string"?e:e.source;const i={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(Fe.caret,"$1"),r=r.replace(n,o),i},getRegex:()=>new RegExp(r,t)};return i}var Fe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},fN=/^(?:[ \t]*(?:\n|$))+/,pN=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,gN=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,el=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,mN=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,cm=/(?:[*+-]|\d{1,9}[.)])/,OT=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,IT=_t(OT).replace(/bull/g,cm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),yN=_t(OT).replace(/bull/g,cm).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),um=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,xN=/^[^\n]+/,dm=/(?!\s*\])(?:\\.|[^\[\]\\])+/,CN=_t(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dm).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),kN=_t(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,cm).getRegex(),nu="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",fm=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,bN=_t("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",fm).replace("tag",nu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),PT=_t(um).replace("hr",el).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nu).getRegex(),vN=_t(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",PT).getRegex(),pm={blockquote:vN,code:pN,def:CN,fences:gN,heading:mN,hr:el,html:bN,lheading:IT,list:kN,newline:fN,paragraph:PT,table:aa,text:xN},qx=_t("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",el).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nu).getRegex(),wN={...pm,lheading:yN,table:qx,paragraph:_t(um).replace("hr",el).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qx).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",nu).getRegex()},SN={...pm,html:_t(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",fm).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:aa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:_t(um).replace("hr",el).replace("heading",` *#{1,6} *[^
|
|
365
|
+
]`).replace("lheading",IT).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},TN=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_N=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,DT=/^( {2,}|\\)\n(?!\s*$)/,BN=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,su=/[\p{P}\p{S}]/u,gm=/[\s\p{P}\p{S}]/u,RT=/[^\s\p{P}\p{S}]/u,LN=_t(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,gm).getRegex(),NT=/(?!~)[\p{P}\p{S}]/u,EN=/(?!~)[\s\p{P}\p{S}]/u,FN=/(?:[^\s\p{P}\p{S}]|~)/u,AN=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,zT=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,MN=_t(zT,"u").replace(/punct/g,su).getRegex(),$N=_t(zT,"u").replace(/punct/g,NT).getRegex(),qT="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ON=_t(qT,"gu").replace(/notPunctSpace/g,RT).replace(/punctSpace/g,gm).replace(/punct/g,su).getRegex(),IN=_t(qT,"gu").replace(/notPunctSpace/g,FN).replace(/punctSpace/g,EN).replace(/punct/g,NT).getRegex(),PN=_t("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,RT).replace(/punctSpace/g,gm).replace(/punct/g,su).getRegex(),DN=_t(/\\(punct)/,"gu").replace(/punct/g,su).getRegex(),RN=_t(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),NN=_t(fm).replace("(?:-->|$)","-->").getRegex(),zN=_t("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",NN).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gc=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,qN=_t(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",gc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),WT=_t(/^!?\[(label)\]\[(ref)\]/).replace("label",gc).replace("ref",dm).getRegex(),HT=_t(/^!?\[(ref)\](?:\[\])?/).replace("ref",dm).getRegex(),WN=_t("reflink|nolink(?!\\()","g").replace("reflink",WT).replace("nolink",HT).getRegex(),mm={_backpedal:aa,anyPunctuation:DN,autolink:RN,blockSkip:AN,br:DT,code:_N,del:aa,emStrongLDelim:MN,emStrongRDelimAst:ON,emStrongRDelimUnd:PN,escape:TN,link:qN,nolink:HT,punctuation:LN,reflink:WT,reflinkSearch:WN,tag:zN,text:BN,url:aa},HN={...mm,link:_t(/^!?\[(label)\]\((.*?)\)/).replace("label",gc).getRegex(),reflink:_t(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gc).getRegex()},cp={...mm,emStrongRDelimAst:IN,emStrongLDelim:$N,url:_t(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},jN={...cp,br:_t(DT).replace("{2,}","*").getRegex(),text:_t(cp.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Pl={normal:pm,gfm:wN,pedantic:SN},Fo={normal:mm,gfm:cp,breaks:jN,pedantic:HN},UN={"&":"&","<":"<",">":">",'"':""","'":"'"},Wx=e=>UN[e];function Nr(e,t){if(t){if(Fe.escapeTest.test(e))return e.replace(Fe.escapeReplace,Wx)}else if(Fe.escapeTestNoEncode.test(e))return e.replace(Fe.escapeReplaceNoEncode,Wx);return e}function Hx(e){try{e=encodeURI(e).replace(Fe.percentDecode,"%")}catch{return null}return e}function jx(e,t){var s;const r=e.replace(Fe.findPipe,(o,a,l)=>{let h=!1,c=a;for(;--c>=0&&l[c]==="\\";)h=!h;return h?"|":" |"}),i=r.split(Fe.splitPipe);let n=0;if(i[0].trim()||i.shift(),i.length>0&&!((s=i.at(-1))!=null&&s.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;n<i.length;n++)i[n]=i[n].trim().replace(Fe.slashPipe,"|");return i}function Ao(e,t,r){const i=e.length;if(i===0)return"";let n=0;for(;n<i&&e.charAt(i-n-1)===t;)n++;return e.slice(0,i-n)}function YN(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function Ux(e,t,r,i,n){const s=t.href,o=t.title||null,a=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;const l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:o,text:a,tokens:i.inlineTokens(a)};return i.state.inLink=!1,l}function VN(e,t,r){const i=e.match(r.other.indentCodeCompensation);if(i===null)return t;const n=i[1];return t.split(`
|
|
366
|
+
`).map(s=>{const o=s.match(r.other.beginningSpace);if(o===null)return s;const[a]=o;return a.length>=n.length?s.slice(n.length):s}).join(`
|
|
367
|
+
`)}var mc=class{constructor(e){ot(this,"options");ot(this,"rules");ot(this,"lexer");this.options=e||qn}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ao(r,`
|
|
368
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],i=VN(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const i=Ao(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ao(t[0],`
|
|
369
|
+
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=Ao(t[0],`
|
|
370
|
+
`).split(`
|
|
371
|
+
`),i="",n="";const s=[];for(;r.length>0;){let o=!1;const a=[];let l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))a.push(r[l]),o=!0;else if(!o)a.push(r[l]);else break;r=r.slice(l);const h=a.join(`
|
|
372
|
+
`),c=h.replace(this.rules.other.blockquoteSetextReplace,`
|
|
373
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
374
|
+
${h}`:h,n=n?`${n}
|
|
375
|
+
${c}`:c;const u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=u,r.length===0)break;const f=s.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){const d=f,p=d.raw+`
|
|
376
|
+
`+r.join(`
|
|
377
|
+
`),g=this.blockquote(p);s[s.length-1]=g,i=i.substring(0,i.length-d.raw.length)+g.raw,n=n.substring(0,n.length-d.text.length)+g.text;break}else if((f==null?void 0:f.type)==="list"){const d=f,p=d.raw+`
|
|
378
|
+
`+r.join(`
|
|
379
|
+
`),g=this.list(p);s[s.length-1]=g,i=i.substring(0,i.length-f.raw.length)+g.raw,n=n.substring(0,n.length-d.raw.length)+g.raw,r=p.substring(s.at(-1).raw.length).split(`
|
|
380
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:s,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const i=r.length>1,n={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const s=this.rules.other.listItemRegex(r);let o=!1;for(;e;){let l=!1,h="",c="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let u=t[2].split(`
|
|
381
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),f=e.split(`
|
|
382
|
+
`,1)[0],d=!u.trim(),p=0;if(this.options.pedantic?(p=2,c=u.trimStart()):d?p=t[1].length+1:(p=t[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,c=u.slice(p),p+=t[1].length),d&&this.rules.other.blankLine.test(f)&&(h+=f+`
|
|
383
|
+
`,e=e.substring(f.length+1),l=!0),!l){const y=this.rules.other.nextBulletRegex(p),C=this.rules.other.hrRegex(p),k=this.rules.other.fencesBeginRegex(p),v=this.rules.other.headingBeginRegex(p),S=this.rules.other.htmlBeginRegex(p);for(;e;){const _=e.split(`
|
|
384
|
+
`,1)[0];let w;if(f=_,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting," "),w=f):w=f.replace(this.rules.other.tabCharGlobal," "),k.test(f)||v.test(f)||S.test(f)||y.test(f)||C.test(f))break;if(w.search(this.rules.other.nonSpaceChar)>=p||!f.trim())c+=`
|
|
385
|
+
`+w.slice(p);else{if(d||u.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(u)||v.test(u)||C.test(u))break;c+=`
|
|
386
|
+
`+f}!d&&!f.trim()&&(d=!0),h+=_+`
|
|
387
|
+
`,e=e.substring(_.length+1),u=w.slice(p)}}n.loose||(o?n.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(o=!0));let g=null,x;this.options.gfm&&(g=this.rules.other.listIsTask.exec(c),g&&(x=g[0]!=="[ ] ",c=c.replace(this.rules.other.listReplaceTask,""))),n.items.push({type:"list_item",raw:h,task:!!g,checked:x,loose:!1,text:c,tokens:[]}),n.raw+=h}const a=n.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let l=0;l<n.items.length;l++)if(this.lexer.state.top=!1,n.items[l].tokens=this.lexer.blockTokens(n.items[l].text,[]),!n.loose){const h=n.items[l].tokens.filter(u=>u.type==="space"),c=h.length>0&&h.some(u=>this.rules.other.anyLine.test(u.raw));n.loose=c}if(n.loose)for(let l=0;l<n.items.length;l++)n.items[l].loose=!0;return n}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:i,title:n}}}table(e){var o;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const r=jx(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(o=t[3])!=null&&o.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
388
|
+
`):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===i.length){for(const a of i)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(const a of n)s.rows.push(jx(a,s.header.length).map((l,h)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[h]})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
|
|
389
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const s=Ao(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=YN(t[2],"()");if(s===-2)return;if(s>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],n=s[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Ux(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[i.toLowerCase()];if(!n){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return Ux(r,n,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...i[0]].length-1;let o,a,l=s,h=0;const c=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+s);(i=c.exec(t))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){l+=a;continue}else if((i[5]||i[6])&&s%3&&!((s+a)%3)){h+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+h);const u=[...i[0]][0].length,f=e.slice(0,s+i.index+u+a);if(Math.min(s,a)%2){const p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}const d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,i;return t[2]==="@"?(r=t[1],i="mailto:"+r):(r=t[1],i=r),{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let i,n;if(t[2]==="@")i=t[0],n="mailto:"+i;else{let s;do s=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(s!==t[0]);i=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},ai=class up{constructor(t){ot(this,"tokens");ot(this,"options");ot(this,"state");ot(this,"tokenizer");ot(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||qn,this.options.tokenizer=this.options.tokenizer||new mc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Fe,block:Pl.normal,inline:Fo.normal};this.options.pedantic?(r.block=Pl.pedantic,r.inline=Fo.pedantic):this.options.gfm&&(r.block=Pl.gfm,this.options.breaks?r.inline=Fo.breaks:r.inline=Fo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Pl,inline:Fo}}static lex(t,r){return new up(r).lex(t)}static lexInline(t,r){return new up(r).inlineTokens(t)}lex(t){t=t.replace(Fe.carriageReturn,`
|
|
390
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var n,s,o;for(this.options.pedantic&&(t=t.replace(Fe.tabCharGlobal," ").replace(Fe.spaceLine,""));t;){let a;if((s=(n=this.options.extensions)==null?void 0:n.block)!=null&&s.some(h=>(a=h.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);const h=r.at(-1);a.raw.length===1&&h!==void 0?h.raw+=`
|
|
391
|
+
`:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
392
|
+
`+a.raw,h.text+=`
|
|
393
|
+
`+a.text,this.inlineQueue.at(-1).src=h.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
394
|
+
`+a.raw,h.text+=`
|
|
395
|
+
`+a.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let l=t;if((o=this.options.extensions)!=null&&o.startBlock){let h=1/0;const c=t.slice(1);let u;this.options.extensions.startBlock.forEach(f=>{u=f.call({lexer:this},c),typeof u=="number"&&u>=0&&(h=Math.min(h,u))}),h<1/0&&h>=0&&(l=t.substring(0,h+1))}if(this.state.top&&(a=this.tokenizer.paragraph(l))){const h=r.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=`
|
|
396
|
+
`+a.raw,h.text+=`
|
|
397
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(a),i=l.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);const h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=`
|
|
398
|
+
`+a.raw,h.text+=`
|
|
399
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(a);continue}if(t){const h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var a,l,h;let i=t,n=null;if(this.tokens.links){const c=Object.keys(this.tokens.links);if(c.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)c.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,n.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,o="";for(;t;){s||(o=""),s=!1;let c;if((l=(a=this.options.extensions)==null?void 0:a.inline)!=null&&l.some(f=>(c=f.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);const f=r.at(-1);c.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=c.raw,f.text+=c.text):r.push(c);continue}if(c=this.tokenizer.emStrong(t,i,o)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.del(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),r.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((h=this.options.extensions)!=null&&h.startInline){let f=1/0;const d=t.slice(1);let p;this.options.extensions.startInline.forEach(g=>{p=g.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(u=t.substring(0,f+1))}if(c=this.tokenizer.inlineText(u)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),s=!0;const f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=c.raw,f.text+=c.text):r.push(c);continue}if(t){const f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},yc=class{constructor(e){ot(this,"options");ot(this,"parser");this.options=e||qn}space(e){return""}code({text:e,lang:t,escaped:r}){var s;const i=(s=(t||"").match(Fe.notSpaceStart))==null?void 0:s[0],n=e.replace(Fe.endingNewline,"")+`
|
|
400
|
+
`;return i?'<pre><code class="language-'+Nr(i)+'">'+(r?n:Nr(n,!0))+`</code></pre>
|
|
401
|
+
`:"<pre><code>"+(r?n:Nr(n,!0))+`</code></pre>
|
|
402
|
+
`}blockquote({tokens:e}){return`<blockquote>
|
|
403
|
+
${this.parser.parse(e)}</blockquote>
|
|
404
|
+
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
405
|
+
`}hr(e){return`<hr>
|
|
406
|
+
`}list(e){const t=e.ordered,r=e.start;let i="";for(let o=0;o<e.items.length;o++){const a=e.items[o];i+=this.listitem(a)}const n=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+n+s+`>
|
|
407
|
+
`+i+"</"+n+`>
|
|
408
|
+
`}listitem(e){var r;let t="";if(e.task){const i=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+Nr(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):t+=i+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
|
|
409
|
+
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
410
|
+
`}table(e){let t="",r="";for(let n=0;n<e.header.length;n++)r+=this.tablecell(e.header[n]);t+=this.tablerow({text:r});let i="";for(let n=0;n<e.rows.length;n++){const s=e.rows[n];r="";for(let o=0;o<s.length;o++)r+=this.tablecell(s[o]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
411
|
+
<thead>
|
|
412
|
+
`+t+`</thead>
|
|
413
|
+
`+i+`</table>
|
|
414
|
+
`}tablerow({text:e}){return`<tr>
|
|
415
|
+
${e}</tr>
|
|
416
|
+
`}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
417
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Nr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const i=this.parser.parseInline(r),n=Hx(e);if(n===null)return i;e=n;let s='<a href="'+e+'"';return t&&(s+=' title="'+Nr(t)+'"'),s+=">"+i+"</a>",s}image({href:e,title:t,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));const n=Hx(e);if(n===null)return Nr(r);e=n;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${Nr(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Nr(e.text)}},ym=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},li=class dp{constructor(t){ot(this,"options");ot(this,"renderer");ot(this,"textRenderer");this.options=t||qn,this.options.renderer=this.options.renderer||new yc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ym}static parse(t,r){return new dp(r).parse(t)}static parseInline(t,r){return new dp(r).parseInline(t)}parse(t,r=!0){var n,s;let i="";for(let o=0;o<t.length;o++){const a=t[o];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[a.type]){const h=a,c=this.options.extensions.renderers[h.type].call({parser:this},h);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(h.type)){i+=c||"";continue}}const l=a;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let h=l,c=this.renderer.text(h);for(;o+1<t.length&&t[o+1].type==="text";)h=t[++o],c+=`
|
|
418
|
+
`+this.renderer.text(h);r?i+=this.renderer.paragraph({type:"paragraph",raw:c,text:c,tokens:[{type:"text",raw:c,text:c,escaped:!0}]}):i+=c;continue}default:{const h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}parseInline(t,r=this.renderer){var n,s;let i="";for(let o=0;o<t.length;o++){const a=t[o];if((s=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&s[a.type]){const h=this.options.extensions.renderers[a.type].call({parser:this},a);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){i+=h||"";continue}}const l=a;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{const h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return i}},ud,lh=(ud=class{constructor(e){ot(this,"options");ot(this,"block");this.options=e||qn}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?ai.lex:ai.lexInline}provideParser(){return this.block?li.parse:li.parseInline}},ot(ud,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),ud),GN=class{constructor(...e){ot(this,"defaults",hm());ot(this,"options",this.setOptions);ot(this,"parse",this.parseMarkdown(!0));ot(this,"parseInline",this.parseMarkdown(!1));ot(this,"Parser",li);ot(this,"Renderer",yc);ot(this,"TextRenderer",ym);ot(this,"Lexer",ai);ot(this,"Tokenizer",mc);ot(this,"Hooks",lh);this.use(...e)}walkTokens(e,t){var i,n;let r=[];for(const s of e)switch(r=r.concat(t.call(this,s)),s.type){case"table":{const o=s;for(const a of o.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of o.rows)for(const l of a)r=r.concat(this.walkTokens(l.tokens,t));break}case"list":{const o=s;r=r.concat(this.walkTokens(o.items,t));break}default:{const o=s;(n=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&n[o.type]?this.defaults.extensions.childTokens[o.type].forEach(a=>{const l=o[a].flat(1/0);r=r.concat(this.walkTokens(l,t))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){const s=t.renderers[n.name];s?t.renderers[n.name]=function(...o){let a=n.renderer.apply(this,o);return a===!1&&(a=s.apply(this,o)),a}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[n.level];s?s.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),i.extensions=t),r.renderer){const n=this.defaults.renderer||new yc(this.defaults);for(const s in r.renderer){if(!(s in n))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const o=s,a=r.renderer[o],l=n[o];n[o]=(...h)=>{let c=a.apply(n,h);return c===!1&&(c=l.apply(n,h)),c||""}}i.renderer=n}if(r.tokenizer){const n=this.defaults.tokenizer||new mc(this.defaults);for(const s in r.tokenizer){if(!(s in n))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const o=s,a=r.tokenizer[o],l=n[o];n[o]=(...h)=>{let c=a.apply(n,h);return c===!1&&(c=l.apply(n,h)),c}}i.tokenizer=n}if(r.hooks){const n=this.defaults.hooks||new lh;for(const s in r.hooks){if(!(s in n))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const o=s,a=r.hooks[o],l=n[o];lh.passThroughHooks.has(s)?n[o]=h=>{if(this.defaults.async)return Promise.resolve(a.call(n,h)).then(u=>l.call(n,u));const c=a.call(n,h);return l.call(n,c)}:n[o]=(...h)=>{let c=a.apply(n,h);return c===!1&&(c=l.apply(n,h)),c}}i.hooks=n}if(r.walkTokens){const n=this.defaults.walkTokens,s=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(s.call(this,o)),n&&(a=a.concat(n.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ai.lex(e,t??this.defaults)}parser(e,t){return li.parse(e,t??this.defaults)}parseMarkdown(e){return(r,i)=>{const n={...i},s={...this.defaults,...n},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&n.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const a=s.hooks?s.hooks.provideLexer():e?ai.lex:ai.lexInline,l=s.hooks?s.hooks.provideParser():e?li.parse:li.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(h=>a(h,s)).then(h=>s.hooks?s.hooks.processAllTokens(h):h).then(h=>s.walkTokens?Promise.all(this.walkTokens(h,s.walkTokens)).then(()=>h):h).then(h=>l(h,s)).then(h=>s.hooks?s.hooks.postprocess(h):h).catch(o);try{s.hooks&&(r=s.hooks.preprocess(r));let h=a(r,s);s.hooks&&(h=s.hooks.processAllTokens(h)),s.walkTokens&&this.walkTokens(h,s.walkTokens);let c=l(h,s);return s.hooks&&(c=s.hooks.postprocess(c)),c}catch(h){return o(h)}}}onError(e,t){return r=>{if(r.message+=`
|
|
419
|
+
Please report this to https://github.com/markedjs/marked.`,e){const i="<p>An error occurred:</p><pre>"+Nr(r.message+"",!0)+"</pre>";return t?Promise.resolve(i):i}if(t)return Promise.reject(r);throw r}}},On=new GN;function Bt(e,t){return On.parse(e,t)}Bt.options=Bt.setOptions=function(e){return On.setOptions(e),Bt.defaults=On.defaults,$T(Bt.defaults),Bt};Bt.getDefaults=hm;Bt.defaults=qn;Bt.use=function(...e){return On.use(...e),Bt.defaults=On.defaults,$T(Bt.defaults),Bt};Bt.walkTokens=function(e,t){return On.walkTokens(e,t)};Bt.parseInline=On.parseInline;Bt.Parser=li;Bt.parser=li.parse;Bt.Renderer=yc;Bt.TextRenderer=ym;Bt.Lexer=ai;Bt.lexer=ai.lex;Bt.Tokenizer=mc;Bt.Hooks=lh;Bt.parse=Bt;Bt.options;Bt.setOptions;Bt.use;Bt.walkTokens;Bt.parseInline;li.parse;ai.lex;function XN({content:e,theme:t}){const r=bt.useRef(null),i=bt.useMemo(()=>Bt.parse(e,{async:!1}),[e]);return bt.useEffect(()=>{const n=r.current;if(!n)return;const s=n.contentDocument;if(!s)return;const o=document.documentElement.classList.contains("dark");s.open(),s.write(`
|
|
420
|
+
<!DOCTYPE html>
|
|
421
|
+
<html>
|
|
422
|
+
<head>
|
|
423
|
+
<meta charset="UTF-8">
|
|
424
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100..1000&display=swap" rel="stylesheet">
|
|
425
|
+
<style>
|
|
426
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
427
|
+
html, body {
|
|
428
|
+
margin: 0;
|
|
429
|
+
padding: 1rem;
|
|
430
|
+
font-family: 'DM Sans', system-ui, sans-serif;
|
|
431
|
+
font-size: 14px;
|
|
432
|
+
line-height: 1.7;
|
|
433
|
+
color: ${o?"#e4e4e7":"#18181b"};
|
|
434
|
+
background: transparent;
|
|
435
|
+
}
|
|
436
|
+
h1, h2, h3, h4, h5, h6 { margin: 1em 0 0.5em; font-weight: 700; }
|
|
437
|
+
h1 { font-size: 1.75em; }
|
|
438
|
+
h2 { font-size: 1.4em; }
|
|
439
|
+
h3 { font-size: 1.15em; }
|
|
440
|
+
p { margin: 0.5em 0; }
|
|
441
|
+
ul, ol { padding-left: 1.5em; margin: 0.5em 0; }
|
|
442
|
+
code {
|
|
443
|
+
font-family: ui-monospace, monospace;
|
|
444
|
+
font-size: 0.85em;
|
|
445
|
+
background: ${o?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.06)"};
|
|
446
|
+
padding: 0.15em 0.35em;
|
|
447
|
+
border-radius: 4px;
|
|
448
|
+
}
|
|
449
|
+
pre {
|
|
450
|
+
background: ${o?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"};
|
|
451
|
+
padding: 0.75em 1em;
|
|
452
|
+
border-radius: 6px;
|
|
453
|
+
overflow-x: auto;
|
|
454
|
+
margin: 0.75em 0;
|
|
455
|
+
}
|
|
456
|
+
pre code { background: none; padding: 0; }
|
|
457
|
+
a { color: ${o?"#a78bfa":"#7c3aed"}; }
|
|
458
|
+
blockquote {
|
|
459
|
+
border-left: 3px solid ${o?"rgba(255,255,255,0.15)":"rgba(0,0,0,0.15)"};
|
|
460
|
+
padding-left: 1em;
|
|
461
|
+
margin: 0.75em 0;
|
|
462
|
+
color: ${o?"#a1a1aa":"#71717a"};
|
|
463
|
+
}
|
|
464
|
+
table { border-collapse: collapse; width: 100%; margin: 0.75em 0; }
|
|
465
|
+
th, td {
|
|
466
|
+
border: 1px solid ${o?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)"};
|
|
467
|
+
padding: 0.4em 0.75em;
|
|
468
|
+
text-align: left;
|
|
469
|
+
}
|
|
470
|
+
th { font-weight: 600; background: ${o?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.03)"}; }
|
|
471
|
+
hr { border: none; border-top: 1px solid ${o?"rgba(255,255,255,0.1)":"rgba(0,0,0,0.1)"}; margin: 1.5em 0; }
|
|
472
|
+
</style>
|
|
473
|
+
</head>
|
|
474
|
+
<body>${i}</body>
|
|
475
|
+
</html>
|
|
476
|
+
`),s.close()},[i,t]),U.jsx("iframe",{ref:r,sandbox:"allow-same-origin",className:"w-full h-full border-0",title:"Markdown Preview"})}function QN({options:e,selections:t,onToggle:r}){return e.length===0?U.jsx("p",{className:"text-sm text-muted-foreground",children:"No options provided."}):U.jsx("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:e.map(i=>{const n=!!t[i.id];return U.jsxs("button",{className:`deck-option-card text-left ${n?"selected":""}`,onClick:()=>r(i.id),children:[U.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[U.jsx("span",{className:`flex h-4 w-4 shrink-0 items-center justify-center rounded border text-xs transition-colors ${n?"border-primary bg-primary text-primary-foreground":"border-muted-foreground/30"}`,children:n&&U.jsx("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:U.jsx("path",{d:"M5 13l4 4L19 7"})})}),U.jsx("span",{className:"text-sm font-medium",children:i.label})]}),i.description&&U.jsx("p",{className:"ml-6 text-xs text-muted-foreground",children:i.description}),i.preview&&U.jsx("pre",{className:"ml-6 mt-2 overflow-auto rounded bg-muted p-2 text-xs",children:i.preview})]},i.id)})})}function ZN({src:e}){return U.jsx("iframe",{src:e,className:"w-full h-full border-0",title:"Generated Visualization"})}function cd(e,t,r){const i=new Blob([t],{type:r}),n=URL.createObjectURL(i),s=document.createElement("a");s.href=n,s.download=e,s.click(),URL.revokeObjectURL(n)}function KN(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")||"download"}function JN(){return U.jsx("div",{className:"flex h-full items-center justify-center",children:U.jsx("div",{className:"text-center text-muted-foreground/20",children:U.jsx("svg",{className:"mx-auto h-12 w-12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:U.jsx("path",{d:"M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"})})})})}function tz(e,t,r,i,n,s){switch(e.type){case"html":return U.jsx(FL,{content:e.content??"",theme:n});case"mermaid":return U.jsx(dN,{content:e.content??"",onError:i,theme:n,version:s});case"markdown":return U.jsx(XN,{content:e.content??"",theme:n});case"iframe":return U.jsx(ZN,{src:e.src??""});case"options":return U.jsx(QN,{options:e.options??[],selections:t,onToggle:r});default:return U.jsxs("div",{className:"p-4 text-muted-foreground",children:["Unknown block type: ",e.type]})}}function ez({sessions:e,activeSessionIndex:t,onSessionChange:r,onCloseSession:i,onToggleSelection:n,onMermaidError:s,theme:o}){const[a,l]=bt.useState(0),h=e[t]??null,c=bt.useCallback(()=>{if(!h)return;const f=h.blocks[a]??h.blocks[0];if(!f)return;const d=KN(f.label||h.id);switch(f.type){case"html":cd(`${d}.html`,f.content??"","text/html");break;case"mermaid":{const p=document.querySelector(`[data-block-index="${a}"] .mermaid-container svg`);if(p){const x=new XMLSerializer().serializeToString(p),y="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(x),C=new Image;C.onload=()=>{const v=document.createElement("canvas");v.width=C.width*2,v.height=C.height*2;const S=v.getContext("2d");S.scale(2,2);const _=document.querySelector(".deck-canvas");_&&(S.fillStyle=getComputedStyle(_).backgroundColor,S.fillRect(0,0,C.width,C.height)),S.drawImage(C,0,0);const w=v.toDataURL("image/png"),T=document.createElement("a");T.href=w,T.download=`${d}.png`,T.click()},C.src=y}break}case"markdown":cd(`${d}.md`,f.content??"","text/markdown");break;case"options":{const p={options:f.options??[],selections:Object.fromEntries(Object.entries(h.selections).filter(([,g])=>g))};cd(`${d}.json`,JSON.stringify(p,null,2),"application/json");break}}},[h,a]);if(e.length===0)return U.jsx("div",{className:"deck-canvas flex-1 min-h-0",children:U.jsx(JN,{})});const u=h?h.blocks[a]??h.blocks[0]:null;return U.jsxs("div",{className:"deck-canvas flex flex-1 min-h-0 flex-col",children:[U.jsx("div",{className:"flex items-center gap-0 border-b border-border px-2 overflow-x-auto",children:e.map((f,d)=>U.jsxs("div",{className:"flex items-center group",children:[U.jsxs("button",{className:`deck-tab flex items-center gap-1.5 ${d===t?"active":""}`,onClick:()=>{r(d),l(0)},children:[f.mode==="feedback"&&U.jsx("span",{className:"deck-status-dot feedback"}),f.id]}),U.jsx("button",{className:"h-4 w-4 flex items-center justify-center rounded text-muted-foreground/50 hover:text-foreground hover:bg-accent opacity-0 group-hover:opacity-100 transition-opacity -ml-1 mr-1",onClick:p=>{p.stopPropagation(),i(f.id)},"aria-label":`Close ${f.id}`,children:U.jsx("svg",{className:"h-3 w-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:U.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]},f.id))}),h&&h.blocks.length>1&&U.jsx("div",{className:"flex gap-1 border-b border-border/50 px-4 bg-muted/20",children:h.blocks.map((f,d)=>U.jsx("button",{className:`deck-tab text-xs ${d===a?"active":""}`,onClick:()=>l(d),children:f.label},d))}),h&&U.jsx("div",{className:"flex flex-1 min-h-0 flex-col overflow-auto p-6",children:h.blocks.map((f,d)=>U.jsx("div",{"data-block-index":d,className:`flex-1 min-h-0 ${d===a?"":"hidden"}`,children:tz(f,h.selections,n,s,o,h.version)},d))}),h&&u&&U.jsx(rz,{block:u,onDownload:c})]})}const Yx=U.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[U.jsx("path",{d:"M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"}),U.jsx("polyline",{points:"7 10 12 15 17 10"}),U.jsx("line",{x1:"12",y1:"15",x2:"12",y2:"3"})]});function rz({block:e,onDownload:t}){const[r,i]=bt.useState(!1);if(e.type==="iframe"&&e.src){const n=e.src.replace("/deck-files/","/deck-download/"),s=n,o=n.replace("blast-radius.html","blast-radius-report.md"),a=n.replace("blast-radius.html","contract.md"),l=n.replace("blast-radius.html","contract.json");return U.jsxs("div",{className:"fixed right-6 bottom-32 z-10 flex flex-col items-center gap-3",children:[r&&U.jsxs(U.Fragment,{children:[U.jsx("a",{href:l,download:"contract.json",className:"flex h-10 w-10 items-center justify-center rounded-full bg-emerald-600 text-white shadow-lg transition-transform hover:scale-110 text-[8px] font-bold leading-none text-center",title:"Download Contract (JSON)",onClick:()=>i(!1),children:"CTR"}),U.jsx("a",{href:a,download:"contract.md",className:"flex h-10 w-10 items-center justify-center rounded-full bg-emerald-600 text-white shadow-lg transition-transform hover:scale-110 text-[10px] font-bold leading-none",title:"Download Contract (Markdown)",onClick:()=>i(!1),children:".md"}),U.jsx("a",{href:o,download:"blast-radius-report.md",className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110 text-[10px] font-bold leading-none",title:"Download Report",onClick:()=>i(!1),children:".md"}),U.jsx("a",{href:s,download:"blast-radius.html",className:"flex h-10 w-10 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110 text-[10px] font-bold leading-none",title:"Download HTML",onClick:()=>i(!1),children:".html"})]}),U.jsx("button",{onClick:()=>i(!r),className:"flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110","aria-label":"Download options",title:"Download",children:Yx})]})}return U.jsx("button",{onClick:t,className:"fixed right-6 bottom-32 z-10 flex h-12 w-12 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-lg transition-transform hover:scale-110","aria-label":"Download",title:"Download",children:Yx})}function iz({active:e,prompt:t,onSubmit:r}){const[i,n]=bt.useState(""),s=bt.useRef(null);bt.useEffect(()=>{e&&s.current&&s.current.focus()},[e]),bt.useEffect(()=>{const l=s.current;l&&(l.style.height="auto",l.style.height=Math.min(l.scrollHeight,120)+"px")},[i]);const o=()=>{e&&(r(i.trim()),n(""))},a=l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),o())};return U.jsxs("div",{className:`border-t bg-background transition-opacity ${e?"opacity-100":"opacity-40 pointer-events-none"}`,children:[e&&t&&U.jsx("div",{className:"border-b px-4 py-2 text-xs font-medium text-primary",children:t}),e&&!t&&U.jsx("div",{className:"border-b px-4 py-2 text-xs text-muted-foreground",children:"Claude is waiting for your feedback..."}),U.jsxs("div",{className:"flex items-end gap-2 p-3",children:[U.jsx("textarea",{ref:s,value:i,onChange:l=>n(l.target.value),onKeyDown:a,placeholder:e?"Type your feedback...":"Waiting for content...",disabled:!e,rows:1,className:"flex-1 resize-none rounded-lg border bg-muted/50 px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-primary disabled:cursor-not-allowed disabled:opacity-50"}),U.jsx("button",{onClick:o,disabled:!e,className:"flex h-9 items-center rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground transition-colors hover:bg-primary/90 disabled:cursor-not-allowed disabled:opacity-50",children:"Done"})]}),e&&U.jsx("div",{className:"px-4 pb-2 text-[10px] text-muted-foreground/60",children:"Enter to submit · Shift+Enter for newline"})]})}const jT="LaunchDeck";let hh=null;function nz(){"Notification"in window&&Notification.permission==="default"&&Notification.requestPermission()}function sz(e,t){if("Notification"in window&&Notification.permission==="granted"&&document.hidden){const r=e==="feedback"?t||"Claude is waiting for your feedback":"Claude sent new content";new Notification("LaunchDeck",{body:r,icon:"/favicon.ico"})}document.hidden&&oz(e==="feedback")}function oz(e){fp();let t=!0;const r=e?"● LaunchDeck — Feedback needed":"● LaunchDeck — New content";hh=setInterval(()=>{document.title=t?r:jT,t=!t},1e3)}function fp(){hh&&(clearInterval(hh),hh=null),document.title=jT}function az({theme:e,setTheme:t}){const[r,i]=bt.useState(!1),[n,s]=bt.useState([]),[o,a]=bt.useState(0),l=bt.useRef(null),h=bt.useRef();bt.useEffect(()=>{nz()},[]),bt.useEffect(()=>{const y=()=>fp(),C=()=>{document.documentElement.classList.toggle("deck-hidden-tab",document.hidden)};return window.addEventListener("focus",y),document.addEventListener("visibilitychange",C),()=>{window.removeEventListener("focus",y),document.removeEventListener("visibilitychange",C)}},[]);const c=bt.useCallback(()=>{const y=window.location.protocol==="https:"?"wss:":"ws:",C=new WebSocket(`${y}//${window.location.host}`);C.onopen=()=>i(!0),C.onclose=()=>{i(!1),l.current=null,h.current=setTimeout(c,2e3)},C.onerror=()=>C.close(),C.onmessage=k=>{try{const v=JSON.parse(k.data);if(v.type==="session"&&v.session){const S={id:v.session,mode:v.mode??"show",blocks:v.blocks??[],prompt:v.prompt,selections:{}};s(_=>{const w=_.findIndex(T=>T.id===v.session);if(w>=0){const T=[..._];return S.version=_[w].version+1,T[w]=S,T}return S.version=1,[..._,S]}),s(_=>{const w=_.findIndex(T=>T.id===v.session);return w>=0&&a(w),_}),sz(v.mode??"show",v.prompt)}v.type==="clear_session"&&v.session&&(s(S=>S.filter(w=>w.id!==v.session)),a(S=>Math.min(S,Math.max(0,n.length-2)))),v.type==="clear_all"&&(s([]),a(0))}catch{}},l.current=C},[]);bt.useEffect(()=>(c(),()=>{var y;clearTimeout(h.current),(y=l.current)==null||y.close()}),[c]);const u=n[o]??null,f=bt.useCallback(y=>{!u||u.mode!=="feedback"||!l.current||(l.current.send(JSON.stringify({type:"feedback",session:u.id,comment:y,selections:Object.keys(u.selections).length>0?u.selections:void 0})),s(C=>C.map(k=>k.id===u.id?{...k,mode:"show"}:k)),fp())},[u]),d=bt.useCallback(y=>{u&&s(C=>C.map(k=>k.id===u.id?{...k,selections:{...k.selections,[y]:!k.selections[y]}}:k))},[u]),p=bt.useCallback(y=>{l.current&&l.current.send(JSON.stringify({type:"session_closed",session:y})),s(C=>C.filter(v=>v.id!==y)),a(C=>Math.min(C,Math.max(0,n.length-2)))},[n.length]),g=bt.useCallback((y,C)=>{l.current&&l.current.send(JSON.stringify({type:"render_error",error:y,source:C}))},[]),x=u?u.mode==="feedback"?"feedback":"delivered":"idle";return U.jsxs("div",{className:"flex h-screen flex-col overflow-hidden bg-background text-foreground",children:[U.jsx(EL,{connected:r,theme:e,setTheme:t,status:x}),U.jsx("div",{className:"flex flex-1 min-h-0 flex-col",children:U.jsx(ez,{sessions:n,activeSessionIndex:o,onSessionChange:a,onCloseSession:p,onToggleSelection:d,onMermaidError:g,theme:e})}),U.jsx(iz,{active:(u==null?void 0:u.mode)==="feedback",prompt:u==null?void 0:u.prompt,onSubmit:f})]})}function lz({children:e}){const[t,r]=zl.useState(()=>localStorage.getItem("launchdeck-theme")||"dark"),i=zl.useCallback(n=>{r(n),localStorage.setItem("launchdeck-theme",n);const s=n==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":n;document.documentElement.classList.toggle("dark",s==="dark")},[]);return zl.useEffect(()=>{const n=t==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t;document.documentElement.classList.toggle("dark",n==="dark")},[t]),U.jsx(az,{theme:t,setTheme:i})}dd.createRoot(document.getElementById("root")).render(U.jsx(zl.StrictMode,{children:U.jsx(lz,{})}));export{Fk as $,pz as A,Wi as B,IL as C,qt as D,m3 as E,jg as F,Ck as G,YO as H,XA as I,e$ as J,kE as K,Ta as L,dz as M,Gc as N,QE as O,Lk as P,o0 as Q,zA as R,vf as S,UO as T,ja as U,Ar as V,P as W,O as X,n3 as Y,DO as Z,m as _,c3 as a,oO as a$,PA as a0,_0 as a1,T0 as a2,wz as a3,xz as a4,bz as a5,kz as a6,mz as a7,vg as a8,vz as a9,oD as aA,sD as aB,hP as aC,hk as aD,DA as aE,uz as aF,Vc as aG,ic as aH,bv as aI,t_ as aJ,Vx as aK,Ka as aL,aP as aM,oP as aN,xg as aO,Bi as aP,La as aQ,C0 as aR,m5 as aS,uO as aT,Cv as aU,dv as aV,g4 as aW,tc as aX,m4 as aY,Qa as aZ,hn as a_,yz as aa,Gn as ab,Tz as ac,Sz as ad,Cz as ae,OP as af,MS as ag,Iz as ah,i$ as ai,$e as aj,bi as ak,wo as al,Ug as am,Bv as an,An as ao,Av as ap,dt as aq,Yr as ar,Q as as,PD as at,Oz as au,Pz as av,Mz as aw,tt as ax,$z as ay,uD as az,h3 as b,U0 as b0,Dn as b1,y4 as b2,Dg as b3,p4 as b4,k4 as b5,io as b6,cO as b7,$O as b8,T4 as b9,Ji as bA,z0 as bB,Rg as bC,pv as bD,np as bE,cz as bF,kt as bG,_O as ba,Ig as bb,Px as bc,J as bd,Mv as be,He as bf,h5 as bg,yg as bh,jk as bi,Va as bj,Vk as bk,gz as bl,OL as bm,MO as bn,TO as bo,OO as bp,Hc as bq,d4 as br,Pg as bs,xv as bt,PO as bu,ro as bv,yO as bw,sR as bx,Xa as by,rc as bz,wt as c,mt as d,Ek as e,ee as f,d3 as g,yi as h,Fr as i,n$ as j,Ua as k,q as l,Ev as m,fz as n,Rz as o,f3 as p,p3 as q,Dz as r,u3 as s,r$ as t,Sr as u,tD as v,XO as w,_z as x,Us as y,l3 as z};
|